mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-05 01:49:52 +08:00
feat/openmotion-lambda-render
9 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2757e52d87 |
fix(media): enforce OpenDesign parameter contracts, CLI errors, and first-frame references (#732)
* fix(media): enforce OpenDesign parameter contracts, CLI errors, and first-frame references - Validate paired aspect_ratio/resolution and mutually exclusive size/output parameters for OpenDesign account and Cloud image models even when capabilities.profiles are absent. - Classify local vela CLI flag errors without HTTP status codes as invalid_request instead of misreporting network or sign-in failures. - Expose maxInputImages on OpenDesign account video models and forward first-frame images via `vela video gen --first-frame`. - Enforce the 2 MiB OpenDesign reference image upload limit before queueing account or Cloud media jobs. - Reset draft.parameters on model or modality switches in AssetComposer, and restrict reference pickers and "Use as reference" / "Edit as new version" actions to image assets. - Update provider/assets/architecture documentation and add backend and Studio regression tests. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * docs(mcp): align FAQ, schemas, and docs with account first-frame and 2 MiB limit - Update the MCP Connect reference-image FAQ and all 10 locale translations in studio/src/i18n/mcp-ui.json to reflect OpenDesign account first-frame video support (one image) and the 2 MiB upload limit. - Propagate the 2 MiB OpenDesign reference image upload limit (while keeping 20 MB for other local adapters) to shared/phase1-tools.ts, mcp-tools.ts, docs/model-gateway.md, and skills/openmotion-media/references/jobs.md. - Extend tests/mcp-onboarding.test.ts to verify the updated FAQ and schema copy. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --------- Co-authored-by: Awek-015 <zhouhaoran@refly.ai> Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> |
||
|
|
664be50861 |
Clarify multimodal entitlement and Plus onboarding (#545)
* Clarify multimodal entitlement and Plus onboarding * Address follow-up review notes on asset chat refresh and account UI --------- Co-authored-by: Awek-015 <zhouhaoran@refly.ai> |
||
|
|
d25ff0b0cd |
feat(media): offer checked OpenDesign speech voices with a default (#487)
OpenDesign speech models elevenlabs-v3 and byteplus-tts-2 now offer voices checked against the media API, defaulting to the first. The adapters fill the default when no voice is given, without writing it into saved model defaults. Other non-empty voice IDs still pass through; other speech models keep a required voice ID. |
||
|
|
6a0165fc51 |
Show the service reason when an OpenDesign account generation fails (#471)
* Show the service reason when an OpenDesign account generation fails Account media commands report failures as '<text> (code, HTTP status)', which the connector error parser did not read, so every refused submission told the user to check their connection and sign in again. Parse that suffix (keeping only the status and code, never connector output) and map known service codes to fixed messages: a request the model does not accept, a model outside the plan, low balance, a rate limit, a provider failure, an unconfirmed execution, or an expired sign-in. A failure while reading or downloading an accepted task now asks the user to check that task instead of suggesting another paid submission. The asset job card translates the failure details, with zh-CN text for the new messages. * Keep the sign-in hint on task read 401s and guard message translations A 401 while reading an accepted task now says to sign out and sign in again as well as to check the original task: the account still reports signed-in after a media 401, so the generic "result could not be read" message left no recovery step. Account media failure messages are exported as accountMediaMessages and a Studio test asserts that each one is a dictionary key, so rewording a gateway message cannot silently fall back to English. The two "Account changed" errors and an unrecognized task status are now translated too. --------- Co-authored-by: heggria <bshengtao@gmail.com> |
||
|
|
890d56328d |
Save generated media to workspace assets with local save recovery (#448)
* Save generated media to workspace assets with local save recovery * Fix POSIX cancellation test state and fixture publication races * Align unified asset schema checks and recovery documentation * End unrecoverable save retries as terminal task failures When the retained outputs manifest is missing, unreadable or no longer references staged bytes, retry_save previously threw without persisting anything, so a failed job kept savePending and offered a retry that could never succeed. - Validate the retained manifest and its staged bytes before queueing a save retry. - Record a terminal failure and clear savePending when nothing is left to save. - Apply the same check when a claimed recovery worker starts, so a vanished manifest cannot recreate the stuck state. - Assert the cleared state alongside the rejection, and document the terminal outcome. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) * Stop offering save retries for unavailable retained outputs * Use decodable account music fixtures for automatic asset saving --------- Co-authored-by: 罗高 <luogao@users.noreply.github.com> |
||
|
|
8a28bc198f |
Edit images and generate music with OpenDesign account models (#445)
* Edit images and generate music with OpenDesign account models - Map audio_music catalogue rows to text-to-audio account models and run `audio music`, with an optional whole-second duration. - Mark account image models whose catalogue publishes `edits` with supportsImageReference and run `image edit --image` with the job's snapshotted reference. - Accept one image reference for any model that reports supportsImageReference in the gateway, the Studio asset composer and the MCP tool descriptions. - Reject a caller mode that differs from an account model's catalogue mode, so speech and music cannot be swapped on one model. - Update provider docs, media skills and READMEs. * fix(render): retry socket-buffer failures with fewer workers (#443) Co-authored-by: 罗高 <luogao@users.noreply.github.com> * [OPEND-5344] feat(skills): streamline unchanged template file delivery (#440) * feat(skills): streamline unchanged template file delivery * test(ci): run unchanged template delivery regressions * fix(skills): exclude render outputs and caches from template packages HTML packaging for unchanged template delivery only filtered tool caches, so a project that had produced a Studio render shipped renders/*.mp4 (and dist/, output/ or arbitrary .hyperframes cache files) inside HTML/ and HTML.zip while the receipt still pinned the revision and claimed sourceUnchanged. Mirror the WorkspaceStore non-source directories and restrict .hyperframes to the pinned native entries plus history-id, so the package holds exactly the pinned source. Extend the delivery test fixture with render outputs and cache files and assert the receipt, the written tree and the ZIP contain only pinned source. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) * fix(skills): reject unpinned drift and quoted CSS imports in template packaging HTML packaging accepted any file the workspace added after the pinned project read, so a native manifest or ordinary source written mid-delivery was shipped under the old revision with sourceUnchanged: true, and the second scan could not notice because both scans contained it. Packaging now requires the scanned source set to equal the pinned inventory plus editor-only metadata (.hyperframes/history-id), and dotted entries mirror WorkspaceStore caches. Quoted CSS @import targets were also missed by the dependency scan, so a missing or remote stylesheet still produced dependencies: "local". Quoted imports are now resolved relative to their containing file, including inside HTML <style>. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) * fix(skills): scope quoted import validation to active CSS * fix(skills): ship vendored dist dependencies in template packages Excluding `dist` at any depth mirrored the WorkspaceStore revision and dropped files the page actually loads, so packaging `vendor/gsap-3.14.2/dist/gsap.min.js` was skipped and the dependency check then rejected decision-tree, nyt-graph and product-promo with MISSING_DEPENDENCY. Keep render outputs, node_modules and caches out of the package but treat store-ignored dist trees as packageable non-revision content: scan them, ship them, and allow them outside the pinned inventory while unpinned source additions still fail. Restore a `vendor/.../dist/...` dependency case in the delivery tests and describe the packaging rule accurately. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) --------- Co-authored-by: bone3deep1962-collab <bone3deep1962@gmail.com> Co-authored-by: 罗高 <luogao@users.noreply.github.com> * Expect the enlarged account catalogue in the settings browser check The shared account fixture now publishes five media models (image, video, speech, a non-editing image model and music) and maps the music row into the account catalogue, so the account provider renders seven model rows instead of five. The browser check waited for exactly five rows and would have timed out; it now expects the seven rows the fixture produces, alongside the two language models. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) * fix(installer): recover Windows host setup and legacy workspaces (#434) * fix(installer): recover Windows host setup and legacy workspaces * fix(installer): preserve registered Harness bundles across failures * fix(runtime): preserve kill signal for native spawn cancellation --------- Co-authored-by: stevenguotj <stevenguotj@stevenguotjdeMacBook-Pro.local> * Restore optional npm installation and the existing release workflow (#444) * Restore optional npm installation and manual release workflows * Localize the optional npm README sections and align the install.md note Translate the new optional npm installation section in README.zh-CN.md, docs/README.zh-CN.md and docs/README.ja.md so the shipped localized READMEs keep localized headings, instructions and link labels next to the existing source-install prompt. Reword docs/release-guide.md to describe docs/install.md the same way as docs/release-workflows.md: it is not a generator input, but the source repository entry that routes explicitly selected npm installations to the published stable or test guide while install.md remains the default route. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) --------- Co-authored-by: bone3deep1962-collab <bone3deep1962@gmail.com> Co-authored-by: 罗高 <luogao@users.noreply.github.com> * List Claude Motion before CapCut across the localized READMEs (#453) Co-authored-by: joeylee12629-star <236967869+joeylee12629-star@users.noreply.github.com> * [OPEND-5342] Select media by content need and prefer matching OpenMotion capabilities (#439) * [OPEND-5342] Keep media sourcing within OpenMotion workflows * [OPEND-5342] Route media tools by content need and capability --------- Co-authored-by: bone3deep1962-collab <bone3deep1962@gmail.com> * Add unified asset use, media reads and per-action MCP telemetry (#455) * Add unified asset use tool with bounded media reads * Track asset tool actions across MCP transports --------- Co-authored-by: 罗高 <luogao@users.noreply.github.com> --------- Co-authored-by: heggria <bshengtao@gmail.com> Co-authored-by: open-design-crew[bot] <299007234+open-design-crew[bot]@users.noreply.github.com> Co-authored-by: 罗高 <luogao@users.noreply.github.com> Co-authored-by: MasonJJ <jinmeihong@refly.ai> Co-authored-by: bone3deep1962-collab <bone3deep1962@gmail.com> Co-authored-by: stevenguotj <stevenguotj@stevenguotjdeMacBook-Pro.local> Co-authored-by: Joey-nexu <joeylee12629@gmail.com> Co-authored-by: joeylee12629-star <236967869+joeylee12629-star@users.noreply.github.com> |
||
|
|
88bf8804b6 |
Complete OpenDesign sign-in: failure handling, recovery, account panel and install-time connector (#423)
* Classify OpenDesign sign-in failures and handle billing refusals Request the connector's jsonl-v1 sign-in stages under a per-attempt ID and accept persisted credentials only when the control key, its ID, the runtime key and the account ID are all present. Failed attempts report setup_failed, authorization_expired or credentials_rejected from the furthest stage reached, with the matching copy, and the service logs the attempt progress without URLs, codes, identities or credentials. Read an empty subscription tier as the Free plan. A failed billing read clears plan and balance, keeps the session, keeps the HTTP status and service code, and offers a refresh. A 401 from the billing read marks the account reauth-required: account models become unavailable with an explicit reason and Settings offers "Sign in again". * Complete account image tasks and list connector speech models Simulating the account flows with the pinned vela-cli 0.1.10 binary showed two contract mismatches with the real connector: - `image get --json` prints the downloaded asset instead of the task once the task has succeeded, so every account image job failed with an unexpected-task error. A ready asset without a task ID now completes the image job. - `media models` reports speech models as `audio_speech` (and music as `audio_music`), so no account speech model was ever listed. Speech models now map to text-to-speech; music models stay excluded. The fixture now mirrors both outputs, and the account reference documents the connector's image parameter constraints. * Classify OpenDesign sign-in failures and handle billing refusals Request the connector's jsonl-v1 sign-in stages under a per-attempt ID and accept persisted credentials only when the control key, its ID, the runtime key and the account ID are all present. Failed attempts report setup_failed, authorization_expired or credentials_rejected from the furthest stage reached, with the matching copy, and the service logs the attempt progress without URLs, codes, identities or credentials. Read an empty subscription tier as the Free plan. A failed billing read clears plan and balance, keeps the session, keeps the HTTP status and service code, and offers a refresh. A 401 from the billing read marks the account reauth-required: account models become unavailable with an explicit reason and Settings offers "Sign in again". * Complete account image tasks and list connector speech models Simulating the account flows with the pinned vela-cli 0.1.10 binary showed two contract mismatches with the real connector: - `image get --json` prints the downloaded asset instead of the task once the task has succeeded, so every account image job failed with an unexpected-task error. A ready asset without a task ID now completes the image job. - `media models` reports speech models as `audio_speech` (and music as `audio_music`), so no account speech model was ever listed. Speech models now map to text-to-speech; music models stay excluded. The fixture now mirrors both outputs, and the account reference documents the connector's image parameter constraints. * Resume interrupted OpenDesign sign-ins and keep undelivered revocations A sign-in whose credentials were saved but not yet confirmed by the service now lets the connector confirm them on the next attempt. That resumed attempt has no activation link; if the service refuses it, the connector rolls it back and the same sign-in continues with a new authorization and link. When the connector keeps credentials unconfirmed because the service could not be reached (5xx, 408, 429, network), the attempt reports setup_failed instead of credentials_rejected, since the next sign-in completes it. Sign-out reads the connector's revocation result. If the service could not be reached, the connector has already cleared the keys locally and keeps a revocation record, so the credentials file stays. Revocations are retried on the first account status read after startup and on each refresh, never alongside a sign-in or sign-out, and the file is removed once nothing is left to revoke. * Explain how to install Vela when the sign-in connector is unavailable * Prepare the account connector at startup and clarify the sign-in panel Install the connector in the background after the service starts so the first sign-in does not wait for npm; sign-in shares a preparation still running and retries one that failed. The account summary now reports whether the connector opened the activation page and when the browser approved the sign-in while the session and models are being set up. The panel keeps the activation link as a fallback, leading with it only when the browser did not open, shows a syncing step with no action, offers Retry after connection failures and a feedback link after rejected credentials, shows the email once, and says account models stay usable when billing cannot be read. Each finished sign-in attempt reports one account_sign_in_result event with its outcome, last stage, error kind and timings, and no account data. * Report unreachable token exchange and credential writes as retryable setup failures A failed token exchange or credential write accepted and stored nothing, so it no longer reads as rejected credentials: a network failure during the exchange or a local credentials write failure now reports setup_failed, and the panel offers Retry instead of the contact-us feedback link. Exchange and persist failures the connector actually rejects still report credentials_rejected. The fixture connector emits both scenarios, and the failure-classification test asserts the retryable codes next to the unchanged rejection cases. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) * Install the account connector with the source checkout's locked dependencies Source installations now get @powerformer/vela-cli@0.1.10 from npm ci as a locked devDependency, so sign-in no longer downloads the connector at runtime. Application artifacts are built with --omit=dev and still exclude it. The account service prefers the locked package, then an exact vela on PATH, then the private install under the data directory, which stays as the fallback for installations without the locked package. * Give the install command when the account connector is unavailable The connector_unavailable message now tells the user to run npm install -g @powerformer/vela-cli@0.1.10 in a terminal and sign in again. The next sign-in finds the exact vela on PATH, so no restart is needed. * Explain declined billing requests and refresh metrics after sign-in * Read production billing through the authenticated summary API * Rediscover the Vela connector when retrying sign-in --------- Co-authored-by: heggria <bshengtao@gmail.com> Co-authored-by: stevenguotj <stevenguotj@stevenguotjdeMacBook-Pro.local> Co-authored-by: 罗高 <luogao@users.noreply.github.com> |
||
|
|
6fe9291b04 |
fix: complete default onboarding across source, CLI and plugin installs (#408)
* fix: complete automatic onboarding across installation entry points * test: run onboarding regressions in CI and align host guidance * test: isolate bootstrap onboarding from ambient Codex sessions * test: publish synthetic account credentials atomically * fix: rebind a vanished source registration during install preflight The source preflight aborted the whole install with a raw realpath ENOENT when the previously registered checkout had been deleted or moved, which is exactly the uninstalled-source state sourceMarketplacePlan exists to rebind. Resolve the recorded source defensively: a missing or non-directory path is reported as a stale registration to replace, and rollback skips restoring a path that no longer exists. Refusals for foreign, non-local, ambiguous or actively installed sources are unchanged. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) * fix: preserve installed marketplace sources on inventory failures * fix: recover verified stale sources and preserve onboarding delivery state --------- Co-authored-by: bone3deep1962-collab <bone3deep1962@gmail.com> Co-authored-by: 罗高 <luogao@users.noreply.github.com> |
||
|
|
61ee4787c8 |
Unify Home navigation, provider settings, and local Agent selection (#393)
* Unify Studio navigation, provider settings, and local Agent workflows * Serve the public provider notice from the editor file handler The provider icon set added by this branch publishes packages/design-system/providers/NOTICE.md through publicDesignFiles, but serveEditorFile rejected .md because its MIME table only knew application assets. The distribution regression test requests every public design file and got 404 for the notice, so the attribution file was unreachable in the editor package. Map .md like the existing application server does (text/plain, UTF-8) so the published notice is served with its bytes intact. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) * Include the provider icon manifest in the bundled adapter fixture export-adapters.ts and the bundled runtime import packages/design-system/index.js, which now also imports provider-icons.js to publish the provider artwork. The adapter fixture copied every runtime file the export reads except that new module, so the bundled launch failed with ERR_MODULE_NOT_FOUND for provider-icons.js in the distribution regression job. Copy the icon manifest into the fixture alongside index.js, matching the runtime distribution list that already ships it. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) --------- Co-authored-by: pftom <pftom@pftomdeMacBook-Pro.local> Co-authored-by: 罗高 <luogao@users.noreply.github.com> |