mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-02 13:09:31 +08:00
feat/openmotion-lambda-render
15 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
19621e86e7 |
docs(mcp): name the public media tool and correct the caching it describes (#680)
The provider documentation still named `openmotion_asset_models`, a tool that is not part of the public contract. It also described the `models` read as returning cached advisory hints, which it does not: `gateway/media-use.ts` returns only providers, catalogues and the setup flag from that branch, while the `mediaEntitlement`, plan and balance hints come from `action=inspect`. Both sentences now name `openmotion_media_use(action=models)` and say what it does: it reads the provider model catalogue without refreshing billing or exposing balances, with `refresh=true` refreshing that catalogue. The advisory hints stay attributed to ordinary gateway status and `action=inspect`. Validation: - npm run check - no `openmotion_asset_models` reference remains in the two files |
||
|
|
bccb40cc97 |
Share one OpenDesign sign-in across all workspaces on a computer (#787)
* Share one OpenDesign sign-in across all workspaces on a computer Each data directory used to keep its own connector credentials, so a Studio opened on its own and an Agent host started with another MOTION_DATA_DIR, installation or channel signed in separately. The account (credentials, session, model catalogue and private connector) now lives in one per-user directory; MOTION_ACCOUNT_DIR overrides it and temporary workspaces stay isolated. An existing workspace sign-in moves there once. Cached plan and catalogue are tied to the key and session they were read for, and the shared connector installation runs npm once under a process lock. * Keep connectors per workspace and never resurrect a signed-out account Connector versions differ between channels, so each workspace keeps its own runtime and a workspace signed in through the shared account prepares it on first use. A legacy sign-in moves only into a shared directory that has never held an account, under a process lock, and the same directory reached through another spelling is recognised by device and inode. Temporary-directory checks resolve Windows short names, and a catalogue read for an older session is not written over a newer one. * Bring along a workspace sign-in made after the shared account's last change A shared directory that was signed out earlier no longer discards a newer sign-in another workspace made with an earlier release; only sign-ins older than the shared directory's last sign-in, cancel or sign-out are dropped. * Make legacy account migration atomic, align storage docs, and avoid personal paths in tests - Stage legacy account files to temporary paths with 0600 permissions before renaming them into the shared directory, rolling back any committed file on failure so the workspace keeps its only copy and no shared marker is left behind. - Add regression tests covering copy failures on both empty shared directories and directories with an existing sign-out marker. - Replace personal-path-shaped strings in sharedAccountDirectory tests with synthetic paths to satisfy the release source privacy scan. - Update model-gateway, provider-settings, architecture and account skill docs to separate workspace-local account/runtime from the per-user account directory. |
||
|
|
fa7b03f296 |
fix(studio): streamline provider hierarchy, verified media capabilities, and model editing (#760)
* fix(studio): streamline model provider detail hierarchy and catalog toolbar Separate connection status from inline capability metadata in the provider header, compact the configured OpenDesign account callout into a balanced horizontal banner with a secondary manage action, replace cryptic icon-only sort controls with a labeled sort selector, hide redundant ungrouped headers and unfiltered count rows, deduplicate identical model titles/IDs, highlight active default models, and sort configured providers ahead of unconfigured ones. * fix(studio): promote modality tabs and unify provider header and filter menu Fold configured paid OpenDesign account identity, capitalized plan badge and manage action directly into the provider header instead of showing a redundant card, promote model modalities into segmented tabs with live counts above search, merge sorting under the single Filter menu with human-readable Default order, and pin active default models to the top of default order. * fix(studio): remove redundant model filter menu, use Text modality label and unify segmented toolbar Drop the over-granular model filter/sort dropdown in favor of modality segmented tabs and search, rename the text model modality to Text (文本 in zh-CN) without affecting General display language or editor text layers, remove the duplicate total count beside Models when tabs are visible, and pair the raised segmented control with the search field on a single aligned row. * fix(studio): show verified media capabilities, streamline model editor and unify provider hierarchy - Replace non-executable LLM capability/input/token-limit controls in ModelEditor with directly visible model types (when editable), structured schema-backed default parameters and collapsed raw JSON fallback. - Hide the model edit menu on managed OpenDesign account and local Codex rows, and render verified read-only media capability hints derived from provider metadata and shared generation options (gracefully omitted when absent). - Unify multimodal model rows to two lines with one recognizable product name on managed providers and informative inline endpoint IDs on BYOK/API providers. - Pin and badge Official channels (OpenDesign account and OpenDesign Cloud API) together in the sidebar, sink setupRequired presets without empty Models sections, replace generic Built-in provider subtitles with accurate role/protocol labels, compact the local Agent status bar without duplicate sync/search controls, and disclose non-media protocol limits on Anthropic/Google connections. * fix(studio): remove redundant clear-filters bar under model search * fix(studio): define provider header badge rules for tokenGate and align byok browser selector * fix(studio): preserve numeric/text drafts, re-check choice requires and align provider docs --------- Co-authored-by: bone3deep1962-collab <bone3deep1962@gmail.com> |
||
|
|
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> |
||
|
|
f3884e656e |
Fix OpenDesign sign-in connector setup on Homebrew Node and explain failures (#716)
* Find npm for the OpenDesign connector on Homebrew Node and report why preparation failed Packaged installations omit the connector, so the service installs it with npm on first sign-in. The npm path was derived as `<execPath>/../lib/node_modules/npm`. `process.execPath` is the resolved binary, so a Homebrew Node reports its Cellar directory, where npm lives under `libexec`; npm never started, every attempt failed within ~70 ms as `connector_unavailable`, and the cause was discarded. - Move connector discovery and installation to gateway/account-connector.ts. npm is looked up via `npm_execpath`, beside Node (including Homebrew's libexec layout), then by following `npm` on PATH. - Classify failures as npm_missing, install_failed or start_failed. The local log keeps the npm output; telemetry adds only `connector_problem`. - The account summary carries a manual command that installs into the private `<data>/account/runtime` directory, which the next Retry finds without a restart and regardless of the service's PATH, replacing the `npm -g` advice. - The npm installer prepares the connector during setup, while the terminal's npm and proxy settings are available; failures stay non-fatal. * Show the sign-in component failure with Retry and a copyable install command When the connector is unavailable the account panel now offers Retry instead of "Sign in again" and shows the install command in a copyable block below the reason, using design-system tokens. * Address review: bound installer preparation, shell-safe command, reuse code block - The installer prepares the connector before host registration, so a host starting the service cannot run a second npm into the same directory, and stops after 60 seconds; the service installs it at sign-in otherwise. - The manual command single-quotes the directory on POSIX shells. - An explicit OPENMOTION_ACCOUNT_CLI path gets no install command, since the private installation would not be used. - A data directory that cannot be created is reported as install_failed. - The panel reuses the shared code block and a Copy command button, as the Agent settings do, instead of a new style. - Test the failure telemetry against the event schema. * Use a neutral install path in the account panel test The release content scan rejects home-directory paths in source. * Ask to check the configured connector path instead of offering a hidden command When OPENMOTION_ACCOUNT_CLI names the connector, the summary omits the install command, so the failure message no longer refers to one. --------- Co-authored-by: heggria <bshengtao@gmail.com> |
||
|
|
bfe83e68a8 |
Fix OpenDesign sign-in handoff, Free/Go media guidance and Codex discovery (#704)
* Wait for the service's authorization expiry before cancelling OpenDesign sign-in OpenMotion killed the connector ten minutes after a sign-in started, but the account service keeps a device authorization open for fifteen minutes and the connector already waits for that expiry. Killing it early made the connector cancel an authorization the user was still completing in the browser, so a sign-in finished in minutes 10-15 failed and had to be repeated. Keep a 16-minute backstop only, so the service's own expiry decides. * Open the subscription page in the sign-in browser with an account intent Manage subscription and Upgrade to Plus were plain links inside Studio. When an Agent host shows Studio in its own browser, they opened there, while the connector had signed the user in through the system default browser, so OpenDesign asked the user to sign in again before upgrading. Nothing checked that the browser held the same account, so a purchase could land on another account. The local service now builds the entry-tagged dashboard address, requests a one-time account intent with the installation's control key for a confirmed production sign-in, and opens /login?intentId=... in the system default browser. The console then confirms the account before continuing to the plan page. Without an intent the plain dashboard opens; when no browser can be launched, Studio opens the returned link itself. * Report Free and Go accounts as not including media whatever their balance Free and Go plans entitle text models only; account credits never unlock media models on them. The hint reported not-included only for a non-positive balance, so a new account with a signup grant or a Go subscriber with its allowance got unknown. Agents then skipped the Go upgrade guidance and sent a user who had just bought Go back to the generic setup page. Free and Go now report not-included regardless of balance; hasBalance is still returned for balance messages. * Accept Codex in media discovery and document its image route Settings lets users pick Codex for images, but openmotion_media_use rejected provider=codex with invalid_enum, so an Agent following that choice failed to list Codex models. Discovery (inspect, reference, models) now accepts Codex and returns a Codex provider guide. Project-direct generate still does not accept Codex and now says to use openmotion_assets_use with codex:image-generation, which already supports it. * Keep a subscription link when the fallback popup is blocked The fallback opened the subscription page only after the local service replied, when browsers no longer treat the click as a user gesture. A blocked popup now leaves a Continue in browser link next to the button. The standalone button and link keep their content width. |
||
|
|
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> |
||
|
|
fcbaa2b029 |
feat: unify captions, editing and platform exports (#547)
* feat: add transcription and unified caption editing workflows * Fix caption integration regressions and align explicit timeline modes * Update bundled adapter and render fixtures for caption preview integration * Resolve caption parsing from the isolated native runtime Avoid importing native dependencies from the dependency-free ZIP at server startup. Load the HTML parser from the installed runtime for caption operations and cover isolated server import plus caption authoring. * fix: preserve caption panel widths and manual editing intent * fix: retain new caption selection during preview refresh Keep newly created captions selected while the preview replaces its old clip list. Cover the stale-preview ordering with a failing-before/passing-after regression and verify pacing draft cancellation and recreation in Chromium. |
||
|
|
8402d42d8d |
Give each Skill rule one owner and link to it (#538)
* docs(skills): drop recreate copies of shared reference-video rules The recreate entry and its rebuild reference repeated three sentences that the shared production reference-video method already owns: the cover-image/unreachable-link rule, the blocked-not-passed rule for missing runtime tools, and the bounded repair rule. Keep them only in the shared reference and link to it. - recreate SKILL.md keeps the links and drops the restated sentences. - rebuild.md sends an explicitly requested revision to verify.md. - verify.md links the shared bounded repair guidance directly instead of going through rebuild.md. - The layering test now rejects these phrases in recreate and video-to-template start/rebuild documents. No routing, Tool or runtime behavior changes. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * docs(skills): move provider guides into the media Skill Provider guides now live under skills/openmotion-media/references/providers and are canonical media workflow sections. The production sections keep the same names and return the same bodies so older resource URIs keep working. media_use inspect/reference and the HTTP reference route return media URIs. Request templates are written as openmotion_assets_use arguments, so the job procedure no longer needs a conversion section. Shell wire examples move to the add-byok-provider contributor Skill. The Cloud recovery rules and the MCP instructions point to the single job procedure instead of repeating it. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * docs(skills): keep preview handoff and project loop rules in native.md The creative entries, the production entry, the shared context and the runtime adapter now link to the editable preview handoff instead of restating when and how to open it. Recreation no longer repeats the import/save/conflict loop, and template delivery no longer repeats the paused zero-second rule; its test now checks that it links instead. Codex-specific calls (open_in_codex, IAB visibility, navigate_to_codex_page) move into one "Codex host calls" subsection so the handoff steps read the same for every host. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * docs(skills): stop restating entry routing outside the entries The shared context keeps only the rule for changing entries mid-task and points to the Skill descriptions and the production navigation table for each entry's scope. AGENTS.md and docs/skills.md link to the routing summary instead of repeating the per-entry rules. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * docs(skills): give each entry its own rule for generated media The media planning reference no longer names the creative entries or carries their per-route rules. Its motion-first paragraph is split by owner: the original-film plan moves to director, the keep-the-cut rule for reference footage moves to recreate, and the replace-in-place rule moves to template-to-video and production. Planning keeps the mechanism (the calling entry sets each asset's role) and the default for standalone requests. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * docs(skills): share first-run delivery rules from the template catalog The first-run reply, next-step invitation and failure rules apply to both the template and the recreation route, so they move from the template entry's first-use reference into the shared templates reference. Recreation no longer reads another entry's internal file; template-to-video keeps its first-run execution steps and links to the shared delivery section. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * docs(skills): drop director forwarders and shorten connection rules The shared context now keeps only the connection rules that are not in production.md (announce OpenMotion, report tool use only after a host call, disclose failures early, keep planning during recovery) and links to the diagnosis steps. The capability-priority section links to the material tool policy instead of restating it, and both sections are now Chinese like the rest of the page. The director motion-review and production-decisions files only forwarded to the production bodies. Remove them; the workflow aliases still resolve the old director resource URIs and links. docs/skills.md records when the openmotion-reference-video compatibility entry can be removed. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * docs: count sixteen public MCP names in translated READMEs and Skills The English README already lists sixteen registered names including one compatibility alias. Bring the Chinese and Japanese READMEs, docs/skills.md and the media kit in line, and stop the video-to-template Skill from naming a stale tool count. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * docs(skills): remove the last restated rules between Skill files A shingle scan across skills/ found a few rules still written out in two places. Keep each in one owner and link to it: - The shared context states once which entry owns review and export scope (now in Chinese); native.md links to it. - edit.md links the continuing-edit preview rule instead of repeating its show-or-queue sentence. - The director and production entries drop the read-before-write sentence that the shared context already requires. - video-to-template links the shared fidelity check without repeating its last sentence; recreate's verify step points to the generated-shot match standard in the entry. - The media Skill description no longer names the video entries. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * test(skills): guard Skill layering against restated rules Add checks that the media Skill names no video entry, that one entry links to another creative entry only through its SKILL.md, that no twelve-token run of text is copied between Skill files (provider guides share a template and are exempt from each other), and that each moved rule still has its owner heading and the entry links that point to it. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * docs: describe the removed director forwarders and the sixteen-name MCP surface The architecture row no longer says old director Markdown paths forward to the production bodies; the resource URIs and old links still resolve, but the forwarding files are gone. The media kit now gives one tool surface: sixteen registered names, with generation reachable through the public media and asset tools. 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> |
||
|
|
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> |
||
|
|
2cfef027cd |
fix(media): expose reference images and route audio by model (#475)
Expose project reference images through the public media tool and route Cloud speech/music by the selected model. Preserve native fal sound-effect text inputs, including both ElevenLabs SFX V3 endpoint spellings. Add regression coverage and localized guidance. |
||
|
|
210bfdcebc |
refactor: centralize provider management and hide text-only entries (#442)
* refactor: centralize provider registration and configuration * fix: hide text-only providers in settings * test: keep the OpenAI provider fixture visible in navigation coverage The provider list now hides text-only entries. The navigation regression fixture overrode the OpenAI preset with text-only kinds and no media models, so the provider disappeared from the list and the click target no longer existed. Mirror the registry preset (text, image and audio kinds) so the history restoration coverage still exercises a visible provider. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) * fix(providers): expose only public connection fields * test: handle macOS process reaping in cancellation coverage --------- 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> |
||
|
|
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> |