mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-06 22:07:44 +08:00
main
87 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
69f15883f7 |
feat(auth): sync an existing OpenDesign session into hosted Studio (#1234)
* feat(auth): sync an existing OpenDesign session into hosted Studio Hosted Studio signs in through the OpenDesign account service, but a visitor already signed in to OpenDesign still had to sign in again (and was offered Google One Tap) when opening Studio. On the first signed-out account read of a page load, Studio now keeps the page visible, shows a syncing avatar, holds Google One Tap and runs one `prompt=none` sign-in in a hidden same-origin frame: - With an OpenDesign session the callback sets the Studio session cookie, the account is read again and the avatar appears without navigation. First-time visitors get their Studio account created by the callback. - Without one, or after 5 seconds, Studio shows its normal signed-out state and Google One Tap may prompt as before. - The frame lands on a tiny `/auth/silent-complete` page. A state-bound HttpOnly cookie marks the silent attempt so the callback returns quietly (`od_sso=miss`) instead of `auth_cancelled=1` or an error response, and a concurrent interactive sign-in keeps its normal behaviour. - The sync never runs mid-session, in local Studio, the desktop shell, embedded frames or for automated agents. Signing out of Studio stays product-local: it opts the browser out of the sync and of Google One Tap until the user signs in again, and the header now publishes the signed-out account before private caches are cleared so the page switches in one render instead of flashing. Sign-in tracking reports these attempts with `source_detail=silent_sync` (success with sync duration, cancelled when there is no OpenDesign session, failure otherwise). * fix(auth): isolate silent sign-in from interactive OIDC transactions A background prompt=none attempt shared the om_oidc_tx / om_auth_attr cookies with interactive sign-in, so an ordinary Studio visit in one tab could overwrite or clear the transaction of a sign-in in flight in another tab and leave that tab on a 401 error page. - Silent attempts carry an `s.` state prefix, so the callback classifies them from the query alone, even after their cookie expired. - Their transaction secret, return path and attribution live in a state-named cookie (om_oidc_silent_<hash>, 120s); the silent login and callback never write or clear the shared interactive cookies, and the interactive callback never clears a pending silent cookie. - Cover both two-tab orderings, interactive cancel during a pending silent attempt, an expired silent cookie and a forged return path. * fix(auth): keep the OpenDesign session on a hosted Studio sign-out OPEND-6189 REQ-03 (AC5): signing out of Studio signs out of Studio only; the OpenDesign website stays signed in. /auth/logout called the IdP end-session endpoint for every session with a cached id_token, which deleted the upstream OpenDesign session by `sid`. - Browser sessions no longer end the upstream session on logout; the cached id_token is still dropped. - Desktop-client sessions keep the OPEND-5726 behavior: the desktop handoff exchange marks the session, and only marked sessions call end-session (best effort, never exposed to the client). - Tests: hosted logout makes no end-session call and still revokes the local session; marked desktop sessions still end the upstream session and tolerate upstream failures. |
||
|
|
7a50a7f470 |
fix(tracking): align cloud auth, billing, MCP catalog, media, and OpenGame supply telemetry (OPEND-6157) (#1227)
* fix(tracking): align cloud auth, billing, MCP catalog, media, and OpenGame supply telemetry (OPEND-6157) * fix(tracking): confirm game readiness before recording play success * fix(tracking): derive guest recovery hook_id and inject static game-ready signal * fix(tracking): guard play unknown after ready and align saving failureStage * test(tracking): align FableModelHub cloud allowlist budget to 50 |
||
|
|
4e2a9ed88a |
feat(game,studio): sync 12.2 OpenGame main features and dogfooding fixes (#1228)
* fix(studio,auth): surgical dogfooding fixes for P1-21, P0-07, P1-13, and P1-17 * feat(game): restore OpenGame Studio landing hero, composer controls, and strategy genre * feat(game): restore template market search, leaderboards, and community strategy games * chore(game): sync 262 updated game template covers from opengame * feat(game): add 27 missing community games for Fable 5.2 prerequisite * feat(game): add Claude Fable 5.2 game hub and spotlight banner for Stage 1 cloud * feat(studio,cloud): add Plus upgrade badge in media model pickers with server entitlement check * feat(studio): adapt Black Friday launch modal to OpenGame flagship image offer * fix(game,studio): consume requested game navigation, label official templates on leaderboards, and gate Fable hero video on viewport visibility --------- Co-authored-by: heggria <bshengtao@gmail.com> |
||
|
|
b8c810dfa3 |
feat(tracking): tag navigation clicks with nav_layout (top) (#1225)
* feat(tracking): tag navigation clicks and creative page views with nav_layout Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * test(tracking): assert nav_layout on creative page views and document the field Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local> Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> |
||
|
|
c75aeb11c9 |
feat(studio,cloud): align account hierarchy, popover quota, dynamic console URLs, and workspace entitlement sync (#1221)
* feat(studio): align Account settings hierarchy and account popover quota/balance Reorganize the Settings Account and Subscription & usage views and port the top-right account menu balance/quota presentation from opengame/openmotion#981: - Show plan tier under the user name, remaining Design Plan quota bar (or wallet balance fallback), and the round avatar quota ring in ApplicationAccountMenu, with focus/visibility billing refresh. - Remove the duplicate Personal workspace and Personal access tokens entries from the top-right account popover. - Place the upgrade banner and Connected to OpenDesign summary (with compact plan & available balance chips and a Subscription & usage jump button) at the top of Settings > Account, above Model gateway, multi-workspace switching, Connected applications, and PAT. - Deduplicate Account vs Subscription & usage tabs so the full PlanUsagePanel lives only on Subscription & usage without a redundant Manage subscription link, and hide the Workspaces section for single-workspace accounts. - Add a best-effort parallel billing/snapshot read in OpenDesignModelGateway.getBillingSummary to expose tightest 5h/7d Design Plan quota without degrading plan or balance when unavailable. * fix(billing): derive OpenDesign console and pricing URLs from deployment origin * fix(workspace): sync media model catalog and entitlement state on workspace switch * fix(studio): polish boot copy, Super Agent placeholder, MCP hero badge, and parameter help Port remaining launch-review UX fixes onto main: - Localize the pre-i18n boot loading copy in studio/index.html to OpenDesign. - Remove the green background override on .om-mcp-h1-od so the OpenDesign badge matches the client badge family. - Simplify the static Super Agent coming-soon card to one plain sentence and two actions, updating RouteViewport, styles, 10-locale copy, and GameStage1 tests. - Clarify the Advanced parameters JSON helper text and unify the OpenGame template count to 274+ on the MCP page. - Tighten vertical spacing on the Skills section heading. * fix(cloud,studio): gate billing snapshot quota fetch, move url test to cloud suite, deduplicate plan labels, and drop SuperAgent hunks - Add includeQuota option (default false) to getBillingSummary and pass includeQuota: true only in /motion-api/account/summary so /motion-api/models/status skips /billing/snapshot. - Bound /billing/snapshot requests to 1500ms and fall back silently to null on timeout or error, with unit and route tests covering both skipping and timeout fallback. - Move tests/opendesign-urls.test.ts to tests/cloud/opendesign-urls.test.ts so it runs in test:cloud and typecheck:cloud and satisfies ci-scope.test.mjs. - Extract isDisplayablePlan and extend planLabel in studio/src/motion/BalanceEntry.tsx for reuse in AccountSettings and ApplicationChrome. - Strip SuperAgentPromptPage hunks from this PR so #1226 lands without conflicts while keeping the 274+ template label on McpConnectionPage. --------- Co-authored-by: heggria <bshengtao@gmail.com> |
||
|
|
bed3904c90 |
revert(game): roll back today's OpenGame syncs (#1209–#1216) (#1219)
* Revert "feat(studio): bring the OpenGame Explore refresh to OpenMotion (#1215)" This reverts commit |
||
|
|
39ca1c83b1 |
revert(studio): roll back the signed-in plans-dialog upgrade path (#1197, #1194, #1187) (#1217)
* Revert "feat(studio): after a paid-path sign-in, open the plans dialog directly (stacked on #1187 + #1194) (#1197)" This reverts commit |
||
|
|
b580799767 |
feat(game): add the OpenGame Leaderboards tab to the Game Studio market (#1214)
Port OpenGame's Leaderboards (排行榜) tab into the Stage 1 Game Studio market, placed after All games with the same label, featured style and bar-chart icon. Selecting it replaces the masonry with the ranked boards; searching or changing the sort from the tab returns to All games, as in OpenGame. - Port GameLeaderboards, gameLeaderboardData, gameMarketTrends with the bundled trend snapshot (no remote loader), the board styles and the pointing-hand cue. Boards: regional gameplay trends, blue-ocean opportunities, WeChat Mini Game earners, viral on social and new games. The external H5 board only appears when a caller passes external games; Stage 1 has no external feed, so it stays hidden. - Stage 1 actions: a board entry opens the game's detail page (?game=), Remix takes the existing Remix path (Agent launch modal), and an opportunity opens the launch modal with its original-game brief. No POST, no inline play. - Tracking: the reportLeaderboard* reporters send two dedicated OpenGame events, opengame_leaderboard_view and opengame_leaderboard_click, registered in tracking/events.ts and the cloud allowlist (budget 49). - Shared impressions hook gains OpenGame's standalone mode for board headers; register the Remix Icon bar-chart glyphs in the sprite. - Copy in game-studio-ui.json with OpenGame's translations for all locales. Co-authored-by: heggria <bshengtao@gmail.com> |
||
|
|
05fc0d6b9b |
feat(studio): enable TOP 100 brand stories by default in template library (#1205)
* feat(studio): enable TOP 100 brand stories by default in template library * test(studio): assert brand series cards under top-100-brands collection in workspace navigation * fix(studio): gate TOP 100 brand series grid on complete catalog and scope impression observer helper * fix(studio): suppress TOP 100 brand-grid skeletons when catalog loading fails --------- Co-authored-by: qiqi <qiqi@qiqideMacBook-Pro.local> |
||
|
|
655b1663ff |
[OPEND-5629] feat(search,skills): port zero-result skill fallback, simplified skill detail, and contribution anchors to main (#1202)
* [OPEND-5629] feat(search,skills): port zero-result skill fallback, simplified skill detail, and contribution anchors to main * fix(motion): prune unimplemented palette telemetry, document copy_method/fallback, and strengthen skill relevance tests --------- Co-authored-by: qiqi <qiqi@qiqideMacBook-Pro.local> |
||
|
|
752b23b552 |
fix(telemetry,guide): fix template_project_result schema drop, guide open resilience, and upload error classification (#1201)
* fix(telemetry,guide): fix template_project_result schema drop, guide open resilience, and upload error classification * fix(motion): address review feedback on worker upload errors, guide telemetry, and producer tests --------- Co-authored-by: qiqi <qiqi@qiqideMacBook-Pro.local> |
||
|
|
add7f1ef98 |
feat(studio): after a paid-path sign-in, open the plans dialog directly (stacked on #1187 + #1194) (#1197)
* feat(studio): resume the upgrade step after a guest signs in from an upgrade surface A guest who meets an upgrade surface (blocked generation modal, Agent media gate, header Pricing, Black Friday banner) must sign in first, and the upgrade step was dropped once they came back signed in. Save a short-lived upgrade intent (hook id + gate attribution, 30 min TTL) when the guest starts signing in; when the account comes back on Free or Go, EntitlementModalHost reopens the upgrade modal once for the same surface with a fresh entry id. Plus and above drop it. One Tap's own Free/Go Pricing redirect clears it to avoid a double prompt. Storage is the source of truth across windows; the in-memory copy is used only when the latest save could not reach storage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): resume the upgrade step only from upgrade surfaces - Keep an upgrade intent only for upgrade surfaces (blocked generation and plan gates, Agent media gate, header Pricing, Black Friday entries). A plain guest sign-in (header/settings sign-in, template use, MCP, assets) now replaces any saved intent instead of reopening an upgrade modal. - Forget the intent when sign-in is cancelled (auth_cancelled), on sign-out, and when the account is signed in but the plan cannot be known, so the modal never appears later out of context. - Report the resumed modal with gate_reason=resumed_after_signin instead of plan_locked, so it is not counted as a real plan gate or a guest prompt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): keep the Agent media sign-in from model settings as an upgrade surface The Agent media gate opens /settings/models?entry_from=agent_media_*; its sign-in guide opened the settings_signin guest modal, which no longer keeps an upgrade intent. Open it as agent_media_gate (guest_signin) instead, and save the intent on the direct login path too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): forget the upgrade intent on a plain direct sign-in from model settings The direct-login branch of the model-settings sign-in guide (desktop, or no guest modal / account page) kept an earlier upgrade intent when the entry was not an Agent media gate. Clear it there, as the other plain sign-ins do, and cover the branch in the test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(studio): send signed-in upgrade clicks straight to the plans dialog A signed-in account that clicks header Pricing, the Black Friday banner, the Explore Black Friday hero, the model hub promo or the upgrade modal now opens the console plans dialog (/dashboard?billing=plan) instead of public Pricing, where it had to pick a plan and press subscribe again before reaching the same dialog. The link keeps the same od_entry_* and utm fields, so attribution is unchanged. Browser cloud mode goes through /auth/upgrade-handoff bound to the expected account; desktop and handoff-disabled builds open the console directly. Guests, dev auth mode and an unknown account keep public Pricing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(studio): open the plans dialog when a guest signs in from an upgrade surface A guest who signs in from a paid path (blocked generation, Agent media gate, header Pricing, Black Friday banner/hero/hub) and comes back on Free or Go now goes straight to the OpenDesign plans dialog (/dashboard?billing=plan) with the original od_entry_id, utm_source and interval=monthly, instead of reopening the in-app upgrade modal. The modal stays as the fallback when the dialog cannot open (popup blocked inside an iframe). Plain sign-ins and paid plans still show nothing. New event upgrade_resume_open measures it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): report an unsupported plans dialog as unavailable, not popup_blocked Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): fall back to the upgrade modal when the desktop browser cannot open; allow upgrade_resume_open in cloud tracking Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): report whether an external page actually opened so the resume can fall back openExternalUrl now resolves false when neither the desktop host nor the browser opened the page, and openBillingAndRefreshOnFocus returns that as opened; the sign-in resume shows the in-app upgrade modal in that case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): open the browser fallback without window features so a successful open is detected Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(studio): open the plans dialog from model hub View plans and report destination on upgrade clicks - Model hub availability "View plans": a signed-in (non-dev) account now opens the console plans dialog directly (utm_medium=model_hub_plans) instead of Settings › Subscription first. Guests still go to sign-in. - Every upgrade click reports destination=amr_plans|landing_pricing, derived from the address it opens: header Pricing, Black Friday banner/hero/hub pill, MAGI-2 modal, upgrade modal, settings subscription links, empty-catalog Upgrade to Plus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): clear the upgrade intent on every plain sign-in and mark checkout only after the plans dialog opens Plain sign-in starts (header menu, template use, assets, history, session recovery) now build the login address with plainSignInUrl, which forgets an upgrade intent saved by an earlier upgrade click; a guard test keeps buildLoginUrl to upgrade surfaces that save their intent. The resumed upgrade sets the checkout-return marker only when the plans dialog actually opened, so a blocked or unavailable open no longer reports a checkout refresh on the next focus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(studio): build every console plans address with one shared builder campaignPlansHref, campaignPricingHref, buildSubscriptionUrl and the Magi2 modal now share consolePlansUrl / upgradeHandoffHref / consolePlansHref, so the /auth/upgrade-handoff contract and the console path normalization live in one place. A consoleUrl ending in /dashboard no longer becomes /dashboard/dashboard, and a missing consoleUrl falls back to /cloud/dashboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): keep configured console bases as given when building the plans address Only the bare production host falls back to /cloud/dashboard; a configured console such as https://console.example.test keeps /dashboard, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): mark the model hub checkout return only after the plans page opened A blocked window no longer leaves a pending checkout that reports a false entitlement_refresh_result on the next focus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(cloud): raise the allowlist budget to 47 for upgrade_resume_open main's OpenGame Stage 1 (#1198) filled the 46-event budget; this PR adds upgrade_resume_open, so the budget moves to 47. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zhanghuihua <zhanghuihua@Mac.lan> |
||
|
|
69846729b9 |
feat(studio): send signed-in upgrade clicks straight to the plans dialog (#1194)
* feat(studio): send signed-in upgrade clicks straight to the plans dialog A signed-in account that clicks header Pricing, the Black Friday banner, the Explore Black Friday hero, the model hub promo or the upgrade modal now opens the console plans dialog (/dashboard?billing=plan) instead of public Pricing, where it had to pick a plan and press subscribe again before reaching the same dialog. The link keeps the same od_entry_* and utm fields, so attribution is unchanged. Browser cloud mode goes through /auth/upgrade-handoff bound to the expected account; desktop and handoff-disabled builds open the console directly. Guests, dev auth mode and an unknown account keep public Pricing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(studio): open the plans dialog from model hub View plans and report destination on upgrade clicks - Model hub availability "View plans": a signed-in (non-dev) account now opens the console plans dialog directly (utm_medium=model_hub_plans) instead of Settings › Subscription first. Guests still go to sign-in. - Every upgrade click reports destination=amr_plans|landing_pricing, derived from the address it opens: header Pricing, Black Friday banner/hero/hub pill, MAGI-2 modal, upgrade modal, settings subscription links, empty-catalog Upgrade to Plus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(studio): build every console plans address with one shared builder campaignPlansHref, campaignPricingHref, buildSubscriptionUrl and the Magi2 modal now share consolePlansUrl / upgradeHandoffHref / consolePlansHref, so the /auth/upgrade-handoff contract and the console path normalization live in one place. A consoleUrl ending in /dashboard no longer becomes /dashboard/dashboard, and a missing consoleUrl falls back to /cloud/dashboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): keep configured console bases as given when building the plans address Only the bare production host falls back to /cloud/dashboard; a configured console such as https://console.example.test keeps /dashboard, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): mark the model hub checkout return only after the plans page opened A blocked window no longer leaves a pending checkout that reports a false entitlement_refresh_result on the next focus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zhanghuihua <zhanghuihua@Mac.lan> |
||
|
|
1765dd0b0b |
[OPEND-5936] OpenGame Stage 1 Cloud Launch: read-only MCP catalog, cookieless static play, 21-section skill & Game Studio (#1198)
* feat(game-static-play): add 274-template R2 zip packaging, cookieless static play deploy, and verification pipeline * feat(game-skill): port 21-section OpenGame skill with dual-mode workflow and fast-play path * feat(onboarding): upgrade Cloud MCP install guide and add shared OpenGame prompt builders * feat(game-catalog): sync 274 official templates, 4 kits, downloads manifest, and game contract * feat(cloud-mcp): add read-only game catalog, free asset search, guest catalog API, redirects, and Docker packaging * feat(opengame): enable Stage 1 Game Studio routing, feature flags, and analytics * feat(opengame): add Stage 1 market, multi-client modal, Cursor HTTP fix, SuperAgent prompt, and i18n * fix(opengame): align nullable GameCardWithMeta fields and add opengame-catalog MCP capability * test(mcp-onboarding): update registered public tool count from 22 to 24 for Stage 1 game tools * chore(game-catalog): register 26 verified live R2 in-repo template bundles in game-downloads.json * fix(opengame): address Stage 1 review feedback and failing CI lanes - Send no play URL when GAME_PLAY_PUBLIC_ORIGIN is unset instead of a main-site path that no route serves; Studio falls back to bundled in-repo templates - Keep legacy-host 301 redirects on the configured origin for network-path inputs - Correct the BlenderKit page host in the asset search allowlist - Reuse the shared withdrawn list, TOP earning tag, curated order and comparator in Studio - Remove the unused shared prompt module; the shipped builders stay covered by Studio tests - Drop the blurred launch backdrop and the in-dialog copy notices in favour of Toasts - Describe the shipped read-only Game Studio boundary and 24-tool MCP contract in the architecture - Schedule the game skill and static play suites in CI and budget the three OpenGame events * fix(game-static-play): retry stalled template bundle downloads before failing the run * fix(game-asset-search): size the pagination cursor limit for every supported query A 200-unit query with non-ASCII, control or lone-surrogate characters produced a cursor longer than the 512-character limit, so nextCursor was rejected by both the decoder and the public schema. Share one limit derived from the worst-case JSON/base64url expansion and add a round-trip test for maximum-length queries. * fix(game-asset-search): accept BlenderKit pages on www.blendkit.com and guide licence checks www.blenderkit.com now redirects to www.blendkit.com and the upstream catalog returns that host, so requiring www.blenderkit.com dropped every BlenderKit result. Restore the live host, pin a real upstream row in tests, and tell Agents to confirm the licence on the source page when a source omits it. * fix(deploy): forward game play origin and legacy redirect hosts to the API deploy/.env.example and deploy/k8s/configmap.yaml declared GAME_PLAY_PUBLIC_ORIGIN and APP_REDIRECT_FROM_HOSTS, but neither the compose api service nor the reference api Deployment passed them to the process. Wire both and assert that every reference ConfigMap key is read by a workload. * Address review: keep legacy-host writes, enforce play-origin isolation, share catalog constants - Legacy-host redirects answer GET/HEAD with 301 and every other method with 308, so MCP and API writes keep their method and body. - parseConfig rejects a GAME_PLAY_PUBLIC_ORIGIN that is not https (loopback http excepted), carries a path, or shares or sits under the APP_PUBLIC_ORIGIN host. - The template id pattern, bundle key prefix, withdrawn set and TOP tag predicate live in shared/game-contract.ts; static play, deploy/verify scripts and the catalog service reuse them and the shared bundle URL builder. - Remove unused game-contract and model-catalog exports. - Update the MCP contract, AGENTS.md, README and docs to the 24-name phase-one surface and document the read-only OpenGame tools and guest catalog routes. * fix(game-static-play): make the full play-site upload resumable Upload through the S3 SDK instead of one aws CLI process per file, skip objects whose ETag already matches the local MD5, retry each request with backoff, and write assets before entry pages and the manifest. Give large bundle downloads time for a slow link. Record the provisioned bucket, domain and remaining header rule in the runbook. * feat(game-static-play): harden live play verification and add manual R2 publish workflow * fix(opengame): raise prompt/remix maxLength for >4k OG-13 test and reset notes on target change * fix(mcp): register resources/templates/list handler for Codex MCP compliance * chore(game-catalog): register uploaded tidebreaker bundle for 274/274 R2 CDN parity --------- Co-authored-by: heggria <bshengtao@gmail.com> |
||
|
|
19ef57d637 |
feat(studio): resume the upgrade step after a guest signs in from an upgrade surface (#1187)
* feat(studio): resume the upgrade step after a guest signs in from an upgrade surface A guest who meets an upgrade surface (blocked generation modal, Agent media gate, header Pricing, Black Friday banner) must sign in first, and the upgrade step was dropped once they came back signed in. Save a short-lived upgrade intent (hook id + gate attribution, 30 min TTL) when the guest starts signing in; when the account comes back on Free or Go, EntitlementModalHost reopens the upgrade modal once for the same surface with a fresh entry id. Plus and above drop it. One Tap's own Free/Go Pricing redirect clears it to avoid a double prompt. Storage is the source of truth across windows; the in-memory copy is used only when the latest save could not reach storage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): resume the upgrade step only from upgrade surfaces - Keep an upgrade intent only for upgrade surfaces (blocked generation and plan gates, Agent media gate, header Pricing, Black Friday entries). A plain guest sign-in (header/settings sign-in, template use, MCP, assets) now replaces any saved intent instead of reopening an upgrade modal. - Forget the intent when sign-in is cancelled (auth_cancelled), on sign-out, and when the account is signed in but the plan cannot be known, so the modal never appears later out of context. - Report the resumed modal with gate_reason=resumed_after_signin instead of plan_locked, so it is not counted as a real plan gate or a guest prompt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): keep the Agent media sign-in from model settings as an upgrade surface The Agent media gate opens /settings/models?entry_from=agent_media_*; its sign-in guide opened the settings_signin guest modal, which no longer keeps an upgrade intent. Open it as agent_media_gate (guest_signin) instead, and save the intent on the direct login path too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): forget the upgrade intent on a plain direct sign-in from model settings The direct-login branch of the model-settings sign-in guide (desktop, or no guest modal / account page) kept an earlier upgrade intent when the entry was not an Agent media gate. Clear it there, as the other plain sign-ins do, and cover the branch in the test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
4255ce013e |
fix(export): recover first-frame timeouts and verify encoded frames (#1189)
* fix(render): recover first-frame screenshot timeouts at lower concurrency * fix(render): type diagnostic lookup keys and tracked reasons * fix(export): verify playable frames and report failed checks * Type export verification checks against the telemetry allowlist --------- Co-authored-by: qindong <qindong@qindongs-MacBook-Pro.local> |
||
|
|
ff8f564717 |
feat(tracking): report entry_id on settings subscription clicks (#1188)
Settings Manage subscription / View plans / Go to console / Top up and the empty model catalog Upgrade to Plus link mint a fresh od_entry_id in the address they open, but their ui_click carried no entry_id, so the click could not be joined to the Pricing visit and payment AMR attributes to it. Each click now reports the od_entry_id of the address it actually opens (prepared on pointer down, or rebuilt for keyboard activation); the desktop path opens that same address. The empty catalog notice also passes it to the checkout-return refresh. Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
d3817f6e3f |
Recover transient cloud login and export failures and guide client updates (#1176)
* Recover transient cloud login and export failures and guide client updates * Run source update guidance regression in PR CI * Verify renderer failure causes from worker to telemetry sink --------- Co-authored-by: qindong <qindong@qindongs-MacBook-Pro.local> |
||
|
|
68fa773d02 |
feat(studio): port Black Friday conversion cards, console plan panel, and Pricing back-nav fix (#1164)
* feat(studio): port Black Friday conversion cards, console plan panel, and Pricing back-nav fix * fix(studio): document console plan click actions and remove unused locale keys * fix(studio): freeze campaign clock in ModelHub test and prune unused metric locale keys --------- Co-authored-by: 罗高 <luogao@users.noreply.github.com> |
||
|
|
6aab6c517a |
[OPEND-5751] feat(auth): bring Google One Tap (#1047) to main (#1131)
* feat(auth): integrate Google One Tap across cloud backend, Studio web, and desktop handoff (#1047) * feat(auth): integrate Google One Tap across cloud backend, desktop handoff, and studio web * fix(auth): address L1 review findings for One Tap S2S, desktop handoff, and cloud tracking * fix(auth): resolve all round-2 L1 review blockers for Google One Tap * fix(motion): harden One Tap K8s egress, atomic provenance, post-commit logout barrier, consent, tracking retry, and loopback CSP * fix(motion): propagate AMR sessionProof across One Tap, OIDC, and desktop handoff-ticket flows * fix(motion): close R4 L1 blockers (post-proof logout barrier, upgrade-handoff 503 fail-closed, atomic getdel, server consent cookie) * fix(motion): enforce One Tap logout revocation inside resolveBrowserSession and block unbound Pricing redirect on active-session 401/403 * fix(motion): align One Tap binding revocation TTL to full 7-day session lifetime and keep upgrade-handoff 401 fail-closed on reload * fix(motion): fail closed on Redis/DB errors in One Tap revocation check and never downgrade expired om_session on upgrade-handoff * fix(motion): retain One Tap revocation binding for full session TTL and bind upgrade-handoff 503 retries to requireAuth/expectedAppUserId * fix(motion): cryptographically bind upgrade-handoff 503 retries to originating session before DB/AMR enrichment * fix(motion): bind signed-in PricingEntry and 503 reload cookie to originating session/account and guard readSessionProof errors * fix(motion): redirect unbound upgrade-handoff 503 via same-origin 303 to session-bound URL so F5 reloads never lose binding * fix(k8s): align AMR One Tap internal URL and NetworkPolicy with nexu namespace * fix(ci): narrow desktop-handoff union types and remove false-positive secret/internal-link hits in One Tap files * fix(studio): align One Tap 2s delay, SHOW-04 reload recovery, and ERR-06/07 failure CTA * fix(studio): align One Tap banned account copy with standalone login page (OPEND-5763) * fix(auth): address PR #1047 review findings (upgrade-handoff recovery, CSP, unified tracking privacy & rate limit, source scan) * fix(auth): gate upgrade-handoff on isOneTapConfigured, decouple tracking toggle from deviceIdConsented, and bound logout-epoch map * fix(ci): resolve backend typecheck, dock short-host floor, ci-scope, and source privacy scan (cherry picked from commit |
||
|
|
3b56272dfe |
[OPEND-5496][OPEND-5807] feat(tracking): cloud allowlist, per-user identity, and dual-write Tracert telemetry (#1130)
* [OPEND-5496] feat(cloud-tracking): add cloud allowlist, cloud_web channel, and monetization attribution * test(studio): assert resolution gate attribution payload in AssetComposer * fix(cloud-tracking): address Looper review (restore tests, rotate entry_id, deploy env, docs) * fix(studio): pass native job.model.modelId for failure-gate attribution * feat(tracking): add Tracert v0.6.0 dual reporting, canonical user identity, and env-only PostHog config Integrate @powerformer/tracert@0.6.0 alongside existing PostHog telemetry for both Studio browser and cloud API server reporting while keeping self-hosted deployments strictly opt-in with zero hardcoded tokens. - Add shared runtime tracking config validation and CSP-safe HTML injection so Studio hydrates tracking config in 0 RTT when enabled and skips downloading the lazy Tracert chunk when OPENMOTION_TRACERT_SPM_A is unset. - Dual-write closed-schema Studio events and server-side account_sign_in_result across PostHog and Tracert using identical event_id and occurred_at values, keeping auto-collection plugins disabled and registering graceful TracertNode shutdown. - Align browser and server user identity on AMR appUserId (falling back to local user.id only when self-hosted), attach workspace_id/workspace_role/plan_tier as user context, preserve anonymous device_id across passive signed-out reloads, and rotate identity on explicit sign-out. - Remove hardcoded PostHog credentials in shared/tracking-config.json so standalone tracking is strictly env-driven. - Allowlist only the SHA-256 digest of the SDK's default public Collector endpoint in bundled Studio JS assets in .github/scripts/motion-scan.mjs. * fix(tracking): preserve equivalent Tracert init loads, clear expired SDK identity, and drain PostHog queues on shutdown * fix(tracking): propagate render telemetryOptOut, isolate browser queue across identity changes, and wire production identity sync * fix(tracking): isolate identity sync module and guard non-browser tracking init --------- Co-authored-by: qiqi <qiqi@qiqideMBP.lan> Co-authored-by: 罗高 <luogao@users.noreply.github.com> |
||
|
|
9d8f0696af |
feat(tracking): add Black Friday hero, model hub impressions, and remix-to-generation tracking (#1101)
* feat(tracking): add Black Friday hero, model hub impressions, and remix-to-generation tracking
Port the Cloud-compatible Black Friday and ModelHub analytics from #1067 onto main, wired directly to main's shared entitlement hook registry, global checkout-return refresh host, and template impression observer:
- Register bf_hero and bf_hub in shared/entitlement-hooks.ts (shared by tracking/events.ts, src/cloud-tracking.ts, and EntitlementModalHost), and extend the closed tracking schema for copy_prompt/copy_status/prompt_edited, hub_videos card surface_view, and hub_id/template_id/prompt_edited on asset_generation_submit_result.
- Split campaignPricingUrl mediums into openmotion_bf_hero (utm_medium=hero) and openmotion_bf_hub (utm_medium=model_hub) while keeping od_entry_source=openmotion_manage_subscription for AMR attribution.
- Add once-per-load bf_hero surface_view and bf_hero checkout-return tracking on ExploreBlackFridayHero, plus ModelHub showcase card impressions (via useTemplateImpressions), bf_hub promo pill attribution, category_select, open_detail, copy_prompt status, and start_use with template source handoff.
- Prevent impression spam and burst drops on Cloud: disable ModelHub's useTemplateImpressions observer while the lightbox dialog is open (avoiding idle timer loops and spurious close-time impressions), deduplicate showcase card impressions across remounts per page session, and raise the shared Cloud studioTracker queue capacity (maxQueue=1024, flushIntervalMs=500) in src/cloud-tracking.ts while keeping each PostHog /batch/ payload within 16 events / 64 KB.
- Attach campaign_id on AccountSettings view_plans clicks during the Black Friday window.
- Address review feedback from #1067: consume AssetDraft.source on successful submit, prompt reset, StudioIdeas prompt apply, or empty-prompt hub navigation (clearing both React state and in-memory studioDrafts without persisting) so later unrelated generations are not misattributed, and document all new hooks, mediums, and hub fields in tracking/README.md.
Backport-of: #1067 (partial, from commit
|
||
|
|
8acd05be45 |
[OPEND-5628] feat(studio,cloud,tracking): Web Cloud login & monetization touchpoints, guest gates, and hook_id telemetry (#995)
* [OPEND-5628] feat(studio,cloud,tracking): add Web Cloud login & monetization touchpoints, guest gates, and hook_id telemetry * fix(studio): compress promo hero clip under 1 MiB and update token/campaign tests * fix(cloud,studio): address PR #995 review feedback (tracking opt-out/ingest/preferences, responsive modal, cloud/guest gating) * feat(studio): add U6 Plus resolution cap & insufficient balance gates * fix(studio,cloud): address review feedback & lazy-load tracking in gate cards * fix(cloud,studio): keep cloud tracking preference deployment-locked with accurate copy * feat(tracking,studio): register and emit entitlement_refresh_result on checkout return * fix(tracking,studio): report unavailable billing refresh as failure with tests and docs * docs(tracking): keep account_sign_in_result paragraph contiguous * fix(studio,cloud): handle size-based resolution cap, rate-limit tracking, clear stale auth attr, and reduced-motion/i18n * fix(studio,cloud): gate header sign-in promo on cloud web mode and honor TRUST_PROXY_HOPS for tracking rate limit * fix(studio): respect --om-desktop-safe-top in EntitlementPromoModal mask * feat(studio): open commercial upgrade modal directly on 2K/4K resolution click instead of inline card * fix(cloud,studio): harden tracking body limit/stable id/env docs, gate 1.5K & dimensions, prune unused cards, preserve safe-top, gate promo copy * fix(studio,deploy): resolve catalogue default resolution for cap check, fix mobile models grid span, forward tracking env in compose * fix(cloud): fall back to OPENMOTION_POSTHOG_KEY when OPENMOTION_POSTHOG_TOKEN is empty * fix(entitlements,cloud): harden tracking ingest, shared hook ids, account store, BYOK guard, and font token --------- Co-authored-by: qiqi <qiqi@qiqideMBP.lan> |
||
|
|
09999a3b66 |
feat(studio): port template discovery and cloud AMR job attribution (#1065)
Co-authored-by: lefarcen <935902669@qq.com> |
||
|
|
aee63c56ac |
merge(cloud): promote feat/cloud-container-p1 to main (#932)
* feat(cloud): add P1 database schema, migrations, contracts, and shared infrastructure
Establish the Wave 2A container-first cloud foundation:
- Add Drizzle ORM, pg, AWS S3 SDK, ioredis, BullMQ, and promote locked Hono, MCP server, Zod, Sharp, and Jose dependencies while removing @powerformer/vela-cli.
- Define all 5 PostgreSQL schema domains (24 tables) with Drizzle SQL migrations and atomic CAS refcount + two-phase GC helpers.
- Add shared contracts (auth scopes/roles, errors, events, BullMQ jobs, storage) and infrastructure modules (config with production dev-auth safety latch, redacting logger, dual-client StorageService with canonical CORS, RedisEventBus/HotTextCache/RateLimiter, QueueService, ShutdownCoordinator).
- Extract shared/version.ts, shared/browser-executable.ts, shared/project-validation.ts, and add scripts/init-s3.ts plus deterministic unit tests.
* fix(cloud): address verifier findings in auth scopes, BullMQ jobIds, CAS metadata merge, and S3 CORS
- Enforce strict scope check in hasScope() without role-based privilege escalation.
- Replace colon separators in BullMQ render_thumbnail custom jobId with double underscores (BullMQ v5 rejects ':').
- Guard against null metadata in CAS refcount delta normalization and upsert conflict updates so PostgreSQL JSONB never turns objects into arrays.
- Restrict S3 CORS loopback sibling aliases to loopback APP_PUBLIC_ORIGIN values only, preventing localhost leakage in production.
- Add regression unit tests covering all four fixes.
* feat(deploy): add multi-target cloud Dockerfile, Compose stack, and K8s/KEDA manifests
Implement Wave 2B-5 container and Kubernetes deployment baseline for P1 cloud refactor:
- Single multi-target deploy/Dockerfile (node:26.11.1-bookworm-slim) with api, worker-media, worker-render, and catalog-sync targets, shared /app/fonts/ catalog parity across api and worker-render, and zero Chromium/FFmpeg binaries on api.
- Local-prod parity deploy/docker-compose.yml and deploy/.env.example with Postgres 17, Redis 7 (noeviction), MinIO + s3-init CORS bootstrap, db-migrate, catalog-sync, read-only rootfs api/workers, and configurable RENDER_SHM_SIZE/RENDER_MEM_LIMIT.
- Kubernetes, KEDA ScaledObject (BullMQ render-export, minReplicaCount=0, cooldownPeriod=300), PodSecurity restricted manifests, least-privilege secret projection (zero OPENDESIGN/OIDC/SESSION_SECRET in worker-render), and default-deny NetworkPolicy under deploy/k8s/.
- Updated deploy/README.md for Streamable HTTP /mcp and K8s/KEDA deployment, plus cleaned .dockerignore.
* feat(cloud): add catalog CAS sync, zero-copy cloning, welcome bootstrap, and catalog routes
Implement Wave 2B-1 (catalog-cas) for the P1 cloud container refactor:
- scripts/sync-catalog-cas.ts: idempotent CLI ingestion of built-in templates (including GSAP relative rewrite and openmotion-welcome shared assets) and repository catalog templates into S3 catalog/blobs/{sha256} and Postgres catalog_templates + catalog_template_files with optional media metadata, supporting --dry-run, --limit, --builtin-only, --repo-only, --template, and --fetch-remote
- src/services/catalog-service.ts: CatalogPort and CatalogService providing PG-backed listing/search/detail, presigned GET asset resolution, PG-only HEAD metadata lookup, and O(1) zero-copy template cloning with blob_scope='catalog' (zero S3 copies, zero workspace_blobs writes)
- src/services/welcome-bootstrap.ts: idempotent per-workspace ensureWelcomeProject using SELECT ... FOR UPDATE and workspaces.welcome_bootstrapped_at
- src/routes/catalog.ts: Hono catalog sub-router with 302 presigned GET, PG-only HEAD, inline guide serving, and AuthContext/workspace-isolated clone endpoints
- tests/cloud/catalog-cas.test.ts: deterministic unit tests using real Drizzle ORM against an in-memory PG mock, in-memory S3 mock, and real repository fixtures
* fix(deploy): address verifier findings in MinIO healthcheck, Dockerfile runtime files, KEDA scaling, and OIDC/ASR config
Resolve all 4 audit findings from verifier review:
- Switch MinIO healthcheck in deploy/docker-compose.yml to ['CMD', 'mc', 'ready', 'local'] (ubi-micro image lacks curl).
- Copy template-library.ts, library/design/, library/skills/, and scripts/zip.mjs into deploy/Dockerfile prod-base and remove the duplicate vendor copy from catalog-sync (keeping library/templates/catalog/ excluded from prod-base).
- Set KEDA minReplicaCount: 1 to avoid BullMQ v5 prioritized ZSET scale-from-zero deadlock, omit spec.replicas on worker-render-deployment.yaml, align KEDA auth comments, and include openmotion-keda-redis-auth template in deploy/k8s/secret.example.yaml.
- Align OIDC_CALLBACK_URL to /auth/callback and wire optional OPENDESIGN_ASR_URL across configmap.yaml, api-deployment.yaml, and worker-media-deployment.yaml.
* feat(cloud): add asset library, export service, and media/render workers
Implements Wave 2B-4 (assets-workers) for P1 cloud containerization:
- AssetLibraryService and Hono asset routes: presigned upload tickets (including companion font license staging keys), ownership-validated upload confirm, SSRF-hardened public URL import, CRUD/versioning, atomic sorted-sha256 CAS refcount decrements on hard delete, direct PG HEAD metadata, and 302 presigned GET downloads/thumbnails.
- ExportService and Hono export routes: O(1) locked snapshot freeze including studio-manual-edits.json and studio-motion.json, single-active-export enforcement via partial unique index, Redis SSE progress, cancellation via om:cancel:{jobId}, direct PG HEAD metadata, and 302 presigned downloads.
- Unified worker entrypoint (WORKER_ROLE=media|render) with ShutdownCoordinator drain: media-ingest (upload_commit, url_fetch, SDR PNG stripping, sharp thumbnails, offloaded Studio probe/thumbnail/waveform/loudness/freeze-frame/read jobs), media-generate (remote_id persisted before polling, attempts: 1), two-phase blob-gc (deleting blobs, thumbnails, and derived prefixes), and render-export (strictly allowlisted secret-stripping render-env.ts, studio render parity script injection, isolated hyperframes execution, verify-export, health heartbeat, and unconditional /tmp cleanup).
- Deterministic unit tests covering assets/exports CAS, media workers/GC, and render env stripping/parity/cleanup.
* fix(catalog): support mounted sub-router prefixes in wildcard source routes
Match templates/:id/source/* and template-source/:id/* by path segments while validating the captured template ID and optional basePath suffix so mounting createCatalogRoutes with basePath='' under /api or /motion-api works cleanly and preserves traversal rejection.
* feat(cloud): add auth, Streamable HTTP MCP, and unified OpenDesign model gateway
Implement Wave 2B-2 cloud auth, remote Streamable HTTP /mcp, and unified platform model gateway:
- Auth layer (src/auth/**): dual-mode AUTH_MODE=oidc|dev Hono middleware, PG-authoritative browser sessions (auth_sessions + optional Redis cache + HttpOnly/SameSite=Lax/Secure cookies + CSRF Origin checks), OIDC Authorization Code + PKCE + jose JWKS verification, SHA-256 PAT lifecycle with strict non-escalating scopes, OAuth 2.1 proxy/delegated endpoints (RFC 9728, RFC 8414, RFC 7591 DCR, PKCE S256, token rotation, RFC 7009 revoke), and strict Bearer-only /mcp enforcement.
- Streamable HTTP /mcp (src/mcp/**, shared/*, .mcp.json): @modelcontextprotocol/server@2.4.0 stateless per-request execution with Redis-backed owner-bound Mcp-Session-Id state (24h TTL) and RedisEventBus SSE channel, 10 MiB body limit, all 22 registered openmotion_* domain tools with explicit P2 gating (FEATURE_DEFERRED_P2 / 501), 3-way cloud openmotion_import_assets (prepare_upload/upload_ticket, SSRF-hardened url, zero-copy library_asset CAS refcount++), cloud-safe engine resource resolution, and Streamable HTTP + legacy stdio union transport in shared/integration.ts.
- Unified Platform Model Gateway (src/services/*, src/routes/{models,account}.ts): direct S2S OpenDesignModelGateway (zero vela-cli, zero BYOK secret storage), deterministic FFmpeg-decodable MockModelGateway (PNG/MP4/WAV), and /motion-api/{models,account}/* Hono routes.
- Tests (tests/cloud/{auth-oidc-dev,mcp-http,model-gateway}.test.ts): ephemeral node:crypto keys only.
* fix(cloud): address verifier-2 findings in snapshot CLI, SSRF, font uploads, and worker concurrency
Addresses all 4 findings from #33:
- Switch defaultRenderCompositionThumbnail to hyperframes@0.9.7 snapshot subcommand (--at, --no-end, optional --composition id, --json) with sharp resize and forward allowlisted payload.settings onto hyperframes render CLI args.
- Strip trailing FQDN dots in validatePublicImportUrl and safePublicHttpsFetchToFile before SSRF host/IP checks.
- Detect font binaries (wOF2/wOFF/OTTO/TTF) in project_asset upload_commit to bypass ffprobe/thumbnailing and promote font + companion license directly to CAS and project_files; explicitly reject project_archive in upload_commit.
- Lock parent projects row FOR UPDATE before project_files refcount overwrite calculations, roll back failed url_fetch queue dispatches (job + idempotency_receipts), map upstream cancelled generation state to cancelled, and prevent duplicate failed SSE events.
* Harden cloud import URL SSRF checks and OAuth redirect validation
Normalize trailing-dot hostnames and reject single-label, loopback,
and .localhost/.local/.internal/.home.arpa destinations in
validatePublicImportUrl, and disallow userinfo in OAuth redirect URIs.
Add regression tests covering all trailing-dot and single-label SSRF
bypass patterns.
* Fix OAuth refresh race, consent CSRF, OIDC workspace validation, and import rollback
- Require atomic revokeOAuthTokenById() success during OAuth 2.1 refresh_token
rotation so concurrent refresh requests cannot mint duplicate token pairs.
- Require single-use consent_token whenever auth cache is configured on
POST /oauth/authorize to prevent CSRF bypass when omitted.
- Validate requestedWorkspaceId as UUID (400 INVALID_ARGUMENT) and enforce
403 WORKSPACE_FORBIDDEN for unowned workspaces (including brand-new users)
in OidcService.verifyBearerJwt().
- Roll back upload_tickets processing state and mark queued media_ingest jobs
failed on BullMQ enqueue failure in CloudImportAssetsService, skipping
completed idempotency_receipts when all items fail enqueue so retries succeed.
- Apply P2 pre-validation gating and asset read formatting consistently to the
openmotion_assets compatibility alias alongside openmotion_assets_use.
- Add regression tests covering all four fixes.
* feat(cloud): implement diskless Studio router and cloud workspace/version services
Add Wave 2B-3 cloud workspace, project files, unified PG version/history, archive ZIP, asset names, and work rounds services backed strictly by PostgreSQL, S3 CAS, HotTextCache, and RedisEventBus with zero local projectDir disk writes.
Implement the Option B diskless Studio Hono router atop @hyperframes/{core,parsers,lint,studio-server} (pure virtual-FS preview bundler, linter, info, timeline, DOM/GSAP AST mutations, direct PG-metadata HEAD responses, 302 presigned binary redirects with Cache-Control and Vary, unified PG history, render/media queue dispatch, container font catalog, SSE events, and product /motion-api routers) with deterministic unit tests.
* fix(cloud): address Wave 2B-3 preview, version numbering, runtime, render, RBAC, and Studio route review findings
Resolve all 6 review findings on diskless Studio and cloud workspace services:
- Accept root-relative gsapBaseUrl in preview-bundler and pass revision signature (not raw HTML) to previewEtag so GET /preview and /preview/comp/* return 200 with valid ETags.
- Compute nextVersionNumber monotonically via COALESCE(MAX(version_number), 0) inside FOR UPDATE transactions across commitChanges, checkpoint, and restoreVersion to prevent uq_project_versions_number collisions after undo.
- Serve pre-built browser runtime IIFE from @hyperframes/core/runtime-script on GET /api/runtime.js.
- Align render routes with worker-render resultJson (bytes/outputName), failed status mapping, composition/variables input, ?download=1 attachment disposition, and Drizzle cause.code 23505 handling.
- Enforce RBAC role and PAT scope checks across all Studio and /motion-api routes and add workspaceId defense-in-depth predicates on history and session updates.
- Answer HEAD directly on thumbnail/image-thumbnail routes, accept PUT /selection with { selection }, handle GET /api/open-in-desktop, and support multi-file uploads with ?dir and w320 thumbnail spec.
* feat(cloud): wire stateless API entrypoint, retire legacy backend, align CI and tests
Complete Wave 2C-1 cloud container backend integration:
- Add stateless Hono API server entrypoint (src/entrypoints/api.ts) exporting createApiApp(deps), serveStaticAsset, and startApiServer with ShutdownCoordinator graceful shutdown, health probes (/api/health/live, /api/health/ready, /api/health), dual-mode OIDC/dev auth + OAuth 2.1 routes, bounded first-access WelcomeBootstrapService, Streamable HTTP /mcp with Bearer-only auth and all 22 domain tools wired to real services, catalog/product/diskless-Studio routes, explicit 501 FEATURE_DEFERRED_P2 endpoints, read-only GSAP/design-system/MCP-UI assets, and SPA fallback.
- Wire PlatformModelGateway into src/entrypoints/worker.ts for media workers and slim server.ts to delegate to src/entrypoints/api.ts.
- Retire legacy local filesystem, stdio MCP, desktop browser/daemon, BYOK provider, and npm-packaging backend modules; decouple retained and P2 modules while keeping all deploy/Dockerfile COPY targets and shared/provider-registry.ts intact.
- Update package.json scripts and resolve package-lock.json (@emnapi/wasi-threads@1.2.3) so npm ci succeeds cleanly.
- Update scripts/check.ts (HTTP .mcp.json + recursive src/**/*.ts stripTypeScriptTypes check), .github/maintainability/knip.json, CI/release workflows, README source links, and retained backend tests.
- Add end-to-end tests/cloud/api-integration.test.ts verifying createApiApp() across health probes, auth/MCP Bearer isolation, welcome bootstrap, projects/Studio/MCP editing, models/catalog/P2 501 routes, and static/SPA routing.
* feat(studio): wire Cloud P1 Studio UI, Streamable HTTP MCP handbook and architecture docs
Retire local-only host UI (embedded WebBrowser, local Codex AssetChat/conversations polling, Local Agents CLI launcher, and BYOK API-key/BaseURL settings forms) and wire Studio to the container-first Cloud P1 backend:
- Account & Auth: wire OIDC sign-in/out, AUTH_MODE=dev local dev indicator, workspace switcher, and Personal Access Token (PAT) lifecycle management using ODUI components and floating Toasts.
- Unified OpenDesign Model Gateway: replace BYOK provider configuration with unified gateway status, MODEL_GATEWAY_MODE=mock banner, catalog sync, and workspace default selection while preserving open-design-ui registry consumers and studio-native-controls.json compliance.
- Cloud Transfers & Resilience: implement 3-step presigned S3 upload flow (tickets -> PUT -> confirm), remote-worker heartbeat polling via /api/environment/ffmpeg, and graceful 501 FEATURE_DEFERRED_P2 states across Design Studio, Brand Kit capture, ASR transcription, and Review Comments.
- Streamable HTTP MCP Handbook & i18n: switch McpConnectionPage, AgentConnectionDialog, mcpCapabilities, and shared/integration.ts to Streamable HTTP /mcp (OAuth 2.1 + PAT, ChatGPT Cloud on public HTTPS, 3-way cloud openmotion_import_assets, all 22 domain tools) with synchronized translations across all 10 non-English locales and updated tests.
- Docs & Guidelines: update docs/product/architecture.md, AGENTS.md, and CLAUDE.md for the container-first Hono/Postgres/Redis/S3 CAS architecture and Streamable HTTP MCP boundaries.
* fix(cloud): address Wave 2C-1 review findings (auth, optimistic lock, cache, CI tests)
Address all 4 review findings from Wave 2C-1 backend verification (#47):
- Mount authWithWelcome middleware on /api/media-jobs/* in src/entrypoints/api.ts so Studio /api/media-jobs/:jobId/progress receives AuthContext.
- Enforce expectedRevision and expectedVersionId optimistic concurrency validation on assetNames-only and metadata-only openmotion_edit_project MCP calls, forwarding expectedRevision to AssetNamesService.updateAssetNames.
- Wire authCache into createPlatformModelGateway(config, { opendesign: { cache: authCache } }) and deduplicate handleTranscriptsRoute in src/entrypoints/api.ts.
- Fix tests/release-workflows.test.mjs, tests/tracking-device.test.ts, tests/tracking-task-ledger.test.ts, tests/hosted-template-catalog.test.ts, tests/registry.test.ts, tests/dsh-distribution.test.ts, and tests/ci-scope.test.mjs; remove obsolete legacy tests (tests/brand-story-tracking.test.ts, tests/vision-runtime-native.test.mjs, tests/dsh-integration.test.ts) and remove LFS-dependent tests/library-install.test.mjs from the non-LFS ci.yml cloud job (retained in motion-candidate.yml).
- Add regression tests in tests/cloud/api-integration.test.ts covering /api/media-jobs/* auth, assetNames-only VERSION_CONFLICT enforcement, and OpenDesignModelGateway authCache reuse.
* fix(studio,docs): align PAT scopes, API routes, locales, and architecture spec
Follow up on Cloud Phase 1 Studio & docs review findings:
- Align AccountSettings PAT scope names and authMethod values with src/contracts/auth.ts, omit explicit scopes on PAT creation so the server intersects DEFAULT_PAT_SCOPES with workspace role, and parse flat CreatedPatResult responses.
- Route motionApi session/mode calls to /motion-api instead of removed /design-api and fetch server version in ResourceSettings from /api/health.
- Fill all newly added Cloud Phase 1 i18n keys across all 9 remaining non-English locales (ja, ko, de, fr, ru, es, pt-BR, it, tr) in mcp-ui.json, settings-ui.json, and transcript-ui.json.
- Align docs/product/architecture.md with actual studio/build output path, Drizzle schema table names, S3 CAS keyspaces, and /api/projects/:id/files/* route.
* fix(cloud,deps): refresh lockfile for Node 26.11.1, declare @hyperframes/lint, decouple onboarding scripts
- Promote already-locked @hyperframes/lint@0.9.7 to direct dependencies in package.json (imported by src/studio/engine/lint-project.ts).
- Regenerate package-lock.json inside node:26.11.1-bookworm-slim (npm 11.20.0) so optional wasm32 transitive deps (@emnapi/runtime, bundled @emnapi/core) match deploy/Dockerfile and CI.
- Replace removed ../workspace.ts dynamic imports in scripts/codex-host-handoff.mjs and scripts/install-onboarding.mjs with a local defaultDataDirectory() helper preserving MOTION_DATA_DIR / Application Support / .motion-data semantics for live callers (scripts/install-guide.mjs, tests/install-guide.test.ts, integrations/dsh/install.ts).
Verified npm ci and npm ci --omit=dev inside node:26.11.1-bookworm-slim, npm ci on host Node 24.13.0, npm run check, tsc -p tsconfig.cloud.json --noEmit, and tests/install-guide.test.ts (13/13).
* fix(build,docker): disable Studio sourcemaps by default in container build
Allow toggling Studio Vite sourcemaps via STUDIO_SOURCEMAP (defaulting to true for local/CI builds) and default ARG STUDIO_SOURCEMAP=false in deploy/Dockerfile deps-build stage. Prevents Rollup heap OOM on 4 GiB Docker/Colima VMs and omits public .js.map files from production container images.
Verified npm run typecheck:studio, STUDIO_SOURCEMAP=false npm run build:studio (0 .map files), docker buildx build --check --target api -f deploy/Dockerfile ., and npm run check.
* fix(deploy): switch local Docker Compose S3 service from MinIO to RustFS
Replace unavailable minio/minio image in deploy/docker-compose.yml with multi-arch Apache-2.0 rustfs/rustfs:1.0.6, configuring RUSTFS_* env vars and /health/ready healthcheck. Update local S3 references in deploy/README.md, deploy/.env.example, and docs/product/architecture.md to RustFS locally (S3/R2 in cloud).
Verified docker compose -f deploy/docker-compose.yml config --quiet, motion-scan.mjs privacyFindings (0), and git diff --check.
* fix(mcp,worker-media): wire project targetPath and snapshot commits for cloud asset imports
- Compute deterministic projectPath-validated targetPath (fonts/<safe> for fonts, assets/imported/<ticketId-or-jobId>.<ext> for media) in src/mcp/import-assets.ts during prepare_upload (stored on upload_tickets.target_path), upload_ticket import, and url import, and include optional targetPath/expectedSha256 on urlFetchPayloadSchema.
- In src/workers/media-ingest.ts (purpose=project_asset), recompute canonical projects.revision inside the FOR UPDATE project transaction, advance monotonic versionNumber and history seq, insert project_versions, project_version_files, and project_history_entries with sorted workspace CAS refcount deltas, and publish the updated project revision on om:project:{wid}:{pid}.
- In handleUrlFetchJob, promote as project_asset when both targetProjectId and targetPath are set while preserving library_asset for HTTP /motion-api/assets/import-url, and verify expectedSha256 when provided.
- Add deterministic end-to-end integration test covering CloudImportAssetsService (prepare_upload + upload_ticket image/font + url) -> validateMediaIngestPayload -> handleUploadCommitJob / handleUrlFetchJob.
Verified tsc -p tsconfig.cloud.json --noEmit, tsc -p tsconfig.backend.json --noEmit, tests/cloud/*.test.ts (87/87 pass), npm run check, and git diff --check.
* fix(api,routes): complete Studio UI <-> cloud backend wiring parity
- Mount POST /motion-api/preview/open in src/routes/projects.ts (authenticated under /motion-api/preview/*) returning top-level ok/activeId/projectId/projectTitle/revision/sessionId/exportJob.
- Align WorkspaceStatus and ProjectCatalog shapes across GET /motion-api/project/status, POST /motion-api/projects, POST /motion-api/projects/:id/open, PATCH /motion-api/projects/:id, POST/PATCH /motion-api/sessions, POST /motion-api/sessions/:id/open, POST /motion-api/sessions/:id/artifacts, POST /motion-api/sessions/:id/messages, and POST /motion-api/templates/:id/open (accepting optional expectedRevision/expectedProjectId/instruction in cloneBodySchema and idempotent caller session id + instruction alias in WorkspaceService).
- Mount POST /motion-api/phase1/call delegating to mcpDispatcher.dispatch (mapping isError to structured HTTP 400/403/404/409/501 responses), include top-level currentVersionId on openmotion_get_project, and support sort/update/import_to_project in openmotion_assets_use.
- Align GenerationJob serialization with shared/gateway.ts (numeric epoch timestamps, model object, assets/libraryAssets/saveToLibrary) and mount GET /motion-api/generations, POST /motion-api/generations/:id/cancel, GET/PUT/POST /motion-api/tracking/preferences, and GET /motion-api/health.
- Add end-to-end Studio wiring parity regression tests in tests/cloud/api-integration.test.ts.
Verified tsc -p tsconfig.cloud.json --noEmit, tsc -p tsconfig.backend.json --noEmit, tests/cloud/*.test.ts (88/88 pass), npm run check, and git diff --check.
* feat(cloud): add Mark-and-Sweep CAS GC, window-aligned presigned GET URLs, and preview proxy writer
Implements Feishu review optimizations c3, c4, and c1 (writer half):
- c3 (CAS GC): Replace ref_count-only deletion in src/db/cas.ts and
src/workers/blob-gc.ts with authoritative SQL Mark-and-Sweep verifying
NOT EXISTS across project_files, project_version_files, asset_versions,
and active upload_tickets (state IN ('issued','uploaded','processing')),
raise default grace period to 7 days (604800s), add self-healing
reconcileDriftedBlobRefCounts() at sweep start, and guard
finalizeBlobDeletion with live-reference NOT EXISTS checks.
- c4 (Presigned GET caching): Align StorageService.presignGet signingDate
to fixed UTC cache windows (default 3600s, expiresIn >= 2x window) with
public/private immutable ResponseCacheControl for immutable CAS keys
while preserving opt-out and backward compatibility.
- c1 (Preview proxy writer): Add generate_preview_proxy job contract and
colon-free jobId builder (proxy__<wid>__<sha256>), non-blocking
best-effort enqueue after upload_commit/url_fetch, and idempotent
FFmpeg/Sharp transcoding to derived/{sha256}/proxy.{mp4,webp,m4a} with
frozen workspace_blobs.metadata.previewProxy persistence and /tmp cleanup.
- Tests: Add deterministic regression tests in tests/cloud/infra-db.test.ts
and tests/cloud/worker-media.test.ts covering c3, c4, and c1.
* feat(worker-media): wire QueueService into media-ingest and presign cache window in worker runtime
Pass QueueService into processMediaIngestJob inside startMediaWorker so
upload_commit and url_fetch automatically enqueue generate_preview_proxy
jobs, and forward optional S3_PRESIGN_CACHE_WINDOW_SEC to StorageService.
* feat(cloud): add preview origin isolation, proxy track serving, and edit-window coalescing
Implement Feishu architecture review optimizations (c1 reader, c2, c5) and unified P1 config defaults:
- Config (src/infra/config.ts): raise BLOB_GC_GRACE_SECONDS default to 604800 (7d), add S3_PRESIGN_CACHE_WINDOW_SEC (3600), PREVIEW_PUBLIC_ORIGIN, PREVIEW_TOKEN_TTL_SEC (900), and HISTORY_COALESCE_WINDOW_MS (4000).
- Cookie-less preview subdomain isolation (c5): add timing-safe HMAC-SHA256 project-scoped preview tokens (src/auth/preview-token.ts), Preview Host Isolation middleware in src/entrypoints/api.ts blocking non-preview/mutating routes with 403 PREVIEW_ORIGIN_ISOLATED and ignoring cookies, POST /api/projects/:id/preview-token, previewOrigin in /__hyperframes_config, S3 CORS origin wiring, and dedicated K8s Ingress/ConfigMap rules.
- Dual-track preview proxy reader (c1): serve ready workspace_blobs.metadata.previewProxy on GET/HEAD /api/projects/:id/preview/* with X-OpenMotion-Media-Track: proxy, ?original=1/?raw=1 bypass, and seamless fallback to original CAS blobs.
- High-frequency edit-window coalescing (c2): coalesce rapid interactive Studio edits within HISTORY_COALESCE_WINDOW_MS via delta project_version_files upserts/deletes and exact sorted CAS refcount deltas while preserving immutability for export-referenced, pinned, checkpoint, restore, redo-branched, MCP/agent, and post-window versions; document Option 1 (S3 manifest.json) as P2 scaling path in docs/product/architecture.md.
- Add deterministic cloud regression tests across api-integration, studio-diskless, and version-optimistic-lock suites.
* fix(cloud): support versioned GSAP plugin paths and align Compose GC grace default
- Strip optional gsap@<version>/(dist/) prefix under /api/vendor/gsap/* in src/studio/routes/lint-selection-system.ts and restrict resolved files to safe JS/map filenames so /api/vendor/gsap/gsap@3.15.0/dist/MotionPathPlugin.min.js returns 200 while blocking package.json/traversal paths.
- Update BLOB_GC_GRACE_SECONDS default in deploy/docker-compose.yml from 86400 to 604800 to match src/infra/config.ts, K8s ConfigMap, and deploy docs.
- Add regression assertions in tests/cloud/api-integration.test.ts for versioned GSAP plugin serving (main & preview origins) and traversal rejection.
* feat(auth): support HS256 OIDC ID tokens and RFC 9207 iss verification for OpenDesign
Allow OidcService to authenticate against Better Auth / Vela OIDC providers that omit jwks_uri (disableJwtPlugin: true) and sign ID tokens with HS256 using OIDC_CLIENT_SECRET. Enforces strict algorithm-confusion guards, optional RFC 9207 iss verification on /auth/callback, error-state cleanup, and keeps Bearer JWT verification restricted to asymmetric JWKS.
* fix(ci): eliminate cloud gitleaks false positives and install FFmpeg for cloud tests (#773)
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* fix(studio): refresh history from project SSE events (#772)
Co-authored-by: lefarcen <935902669@qq.com>
* fix(cloud): hydrate template cloning and enable CORS on project-local preview media (#769)
* fix(cloud): wire template cloning on sessions/projects and hydrate catalog LFS blobs
* fix(cloud): set crossorigin=anonymous on project-local preview media for S3 302 audio
* fix(cloud): address PR review feedback on template creation and catalog sync
---------
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* feat(studio): add client-side browser export with cloud original media fallback (#762)
* feat(studio): add client-side browser export with cloud original media fallback
* fix(studio): auto-select live html capture for delayed layers
* ci: allowlist false-positive cloud fixtures in gitleaks
* ci: install ffmpeg for cloud media worker tests
* fix(studio): address browser export isolation, capture, opacity, composition, and audio rate reviews
Address all 7 inline review threads on PR #762:
- Gate browser export on the currently open composition (openComposition) for both explicit engine='browser' and the persisted toggle, falling back to the server render path for other compositions, and disable the panel toggle when another composition is selected.
- Preserve cookie-less preview origin isolation (PREVIEW_PUBLIC_ORIGIN): reject cross-origin/opaque-sandbox preview iframes in preflight, runBrowserExport, and RenderQueue, and remove the unsafe app-origin preview fallback in resolveIsolatablePreviewUrl while preserving same-origin pathname and ?variables query overrides.
- Auto-select snapdom-live for animated HTML layers regardless of start time (including start: 0 keyframed, CSS/Web-animated, and initially hidden elements) and stop double-applying keyframe opacity/transforms over live seeked DOM captures.
- Convert timeline playDuration to source-buffer duration (playDuration * rate, clamped to maxSourceSpan) when scheduling AudioBufferSourceNode.start for non-1x playbackRate clips.
- Add unit regressions and real headless Chromium verification for 2x/0.5x OfflineAudioContext duration and snapdom-live zero-start fade / single-opacity compositing.
---------
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* feat(studio): add scoped cross-origin preview bridge (#774)
Co-authored-by: lefarcen <935902669@qq.com>
* ci(deploy): add GHCR multi-target image workflow and wire missing API K8s env keys (#771)
* ci(deploy): add GHCR multi-target image workflow and wire missing API K8s env keys
* ci(deploy): harden container-images workflow per PR review
- Add .dockerignore and LICENSE to push path filters so all Dockerfile inputs trigger rebuilds
- Gate :latest promotion to manual workflow_dispatch on refs/heads/main after the 'standalone' CI check passes
- Guard both jobs to nexu-io/openmotion and derive the lowercased GHCR owner and OCI source URL from GitHub context
- Collapse the four target builds into a strategy.matrix.include job with isolated per-target GHA cache scopes
* ci(deploy): gate :latest on latest ci.yml standalone run
Replace the any-success check-runs count in prepare with a check against
the latest Motion standalone checks (ci.yml) run on main for the exact
commit SHA, failing closed if any matching run is active or if the most
recent run or its latest standalone job did not succeed.
* [OPEND-5496] feat(studio): integrate cross-origin picker and playback (#777)
* feat(studio): connect preview bridge to element picker
* feat(studio): add cross-origin preview playback
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] fix(studio): restore cloud history, element probes and scene playback (#784)
* feat(studio): connect preview bridge to element picker
* feat(studio): add cross-origin preview playback
* fix(studio): synchronize cloud undo and redo with restored files
* fix(studio): expose source element availability on cloud routes
* fix(studio): mount preview scripts with their composition scene
* fix(studio): accept element operations sent by the editor
---------
Co-authored-by: lefarcen <935902669@qq.com>
* feat(cloud): add @openmotion/observability web Sentry monitoring and sourcemap pipeline (#763)
* feat(cloud): add @openmotion/observability web Sentry monitoring and sourcemap pipeline
* refactor(observability): make Sentry lazy-loaded, drop FSL vite plugin, add usage guide
---------
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* [OPEND-5496] fix(studio): restore cloud history, animated edits and scene posters (#786)
* feat(studio): connect preview bridge to element picker
* feat(studio): add cross-origin preview playback
* fix(studio): synchronize cloud undo and redo with restored files
* fix(studio): expose source element availability on cloud routes
* fix(studio): mount preview scripts with their composition scene
* fix(studio): accept element operations sent by the editor
* fix(studio): render and restore cloud versions in history
* fix(studio): persist animated title drags in scene templates
* fix(studio): render scene posters and await queued thumbnails
* test(cloud): await diskless history fixture responses
* fix(studio): deliver cloud file and history changes across clients
* fix(studio): persist edits from scoped isolated preview picks
* fix(studio): retain implicit animation endpoints during path drags
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] feat(studio): deliver isolated canvas edits and uninterrupted preview renewal (#797)
* feat(studio): connect preview bridge to element picker
* feat(studio): add cross-origin preview playback
* fix(studio): synchronize cloud undo and redo with restored files
* fix(studio): expose source element availability on cloud routes
* fix(studio): mount preview scripts with their composition scene
* fix(studio): accept element operations sent by the editor
* fix(studio): render and restore cloud versions in history
* fix(studio): persist animated title drags in scene templates
* fix(studio): render scene posters and await queued thumbnails
* test(cloud): await diskless history fixture responses
* fix(studio): deliver cloud file and history changes across clients
* fix(studio): persist edits from scoped isolated preview picks
* fix(studio): retain implicit animation endpoints during path drags
* feat(studio): edit isolated previews and renew project asset access in place
* fix(studio): restore the runtime position after a disconnected preview expires
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] perf(studio): reuse preview builds and keep canvas drags responsive (#799)
* feat(studio): connect preview bridge to element picker
* feat(studio): add cross-origin preview playback
* fix(studio): synchronize cloud undo and redo with restored files
* fix(studio): expose source element availability on cloud routes
* fix(studio): mount preview scripts with their composition scene
* fix(studio): accept element operations sent by the editor
* fix(studio): render and restore cloud versions in history
* fix(studio): persist animated title drags in scene templates
* fix(studio): render scene posters and await queued thumbnails
* test(cloud): await diskless history fixture responses
* fix(studio): deliver cloud file and history changes across clients
* fix(studio): persist edits from scoped isolated preview picks
* fix(studio): retain implicit animation endpoints during path drags
* feat(studio): edit isolated previews and renew project asset access in place
* fix(studio): restore the runtime position after a disconnected preview expires
* perf(studio): share revision-scoped preview builds and spread lease renewals
* fix(studio): keep canvas drag positions visible until the save settles
* fix(preview): recover isolated frames after temporary build pressure
* fix(studio): translate the preview capacity notice in every locale
---------
Co-authored-by: lefarcen <935902669@qq.com>
* feat(cloud): close media direct/multipart/instant upload, sprite/waveform pipeline, MCP ingest placeholders, optimization hints, and streaming export (#800)
* feat(cloud): close media direct/multipart/instant upload, sprite/waveform pipeline, MCP ingest placeholders, and streaming export
* feat(studio): surface non-blocking background media optimization status across sidebar and timeline
---------
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* [OPEND-5496] feat(studio): restore editing controls in isolated previews (#802)
* feat(studio): connect timeline, layer selection and inline text across preview origins
* fix(studio): support legacy clip identities and verify isolated edit revisions
* test(studio): verify scoped variable editing without loading source resources
---------
Co-authored-by: lefarcen <935902669@qq.com>
* fix(cloud): hydrate referenced media only on worker-render, bound portrait/low-bitrate proxy bloat, and skip SVG media_probe (#804)
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* perf(studio): open projects without blocking on workspace hydration (#807)
Co-authored-by: lefarcen <935902669@qq.com>
* feat(cloud): align auth with AMR internal identity, project grants, and DCR hardening (#770)
* feat(cloud): align auth with AMR internal identity, project grants, and DCR hardening
Implement OpenMotion Cloud Login & Remote MCP authorization alignment on top of feat/cloud-container-p1:
- Add AMR internal identity client (<=60s cache keyed by authUserId + externalWorkspaceId), AMR workspace/member projection, 401 auth_required on banned/deleting/deleted/revoked accounts, and 503 auth_unavailable on AMR unreachability without clearing sessions/drafts.
- Switch OpenDesign downstream gateway calls from Authorization: Bearer to x-internal-token + x-workspace-* 4-tuple headers and /api/internal/billing/summary/:appUserId.
- Add project_grants table, projects.owner_user_id, auto-grant on agent project creation, GET/POST/DELETE /motion-api/projects/:id/grants, and enforce project-level agent access across project files, exports, project asset uploads/imports, media generation jobs, and archive exports (keeping preview_token isolated).
- Harden OAuth 2.1 DCR with redirect_uri allowlist (loopback + configured HTTPS hosts), per-IP rate limiting (429), hourly unused-client cleanup, RFC 9207 iss parameter, enhanced consent UI with switch-account (prompt=login), and Connected Apps revocation UI.
- Add Studio A01/A03 draft preservation & 401/503 auth recovery bar, per-project Agent Access dialog, structured request audit logging, and remove requires_local_executor from Streamable HTTP Codex plugin manifest.
* fix(cloud): enforce project grants on template clone, MCP asset import & media jobs, add RFC 9207 iss on deny, and fix Studio/gitleaks checks
---------
Co-authored-by: heggria <bshengtao@gmail.com>
* Promote validated cloud branch merges to default test (#813)
Co-authored-by: lefarcen <935902669@qq.com>
* Return the complete cloud MCP template catalog (#814)
Co-authored-by: lefarcen <935902669@qq.com>
* Reduce redundant workspace reads in idle and background tabs (#817)
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Reduce startup requests and downloads for project links (#818)
* Reduce avoidable project entry requests and eager downloads
* Present the first usable frame without waiting for soundtrack buffering
* Open existing Studio projects in a single guarded activation
* Open the project workspace independently of preview media
* Show authored clip names while timeline media loads
* Reduce project startup reads and idle workspace requests
---------
Co-authored-by: lefarcen <935902669@qq.com>
* Restore isolated Studio editing and derive timeline previews from source media (#827)
Co-authored-by: lefarcen <935902669@qq.com>
* ci(cloud-test): add gated Orbit cluster-pull publication for feat/cloud-container-p1 (#822)
* ci(cloud-test): add gated Orbit cluster-pull publication for feat/cloud-container-p1
* fix(ci): publish full SHA image tags, read ORBIT_API_URL from vars, and schedule sync tests
* Advance isolated edit preconditions across acknowledged local writes (#831)
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Reduce Studio edit traffic and complete composition canvas drops (#832)
* [OPEND-5496] Reuse Studio preview code and complete composition canvas drops
* Reuse keyframe reads during layout changes and hydrate promoted previews
* Refresh keyframes once when a timing edit reloads the preview
---------
Co-authored-by: lefarcen <935902669@qq.com>
* Preserve video poster paths when copying nested composition clips (#835)
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Guide remote agent transcription and fix caption retries (#833)
* [OPEND-5496] Describe client-side transcription in remote MCP discovery
* [OPEND-5496] Replay remote caption commands with their original results
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Share clip move semantics between Studio and remote MCP (#845)
* Share single-clip move semantics between Studio and remote MCP
* Plan the optimistic drag and durable move from the same start
* Reconcile clip animations in one move and document the cloud command
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Avoid unchanged composition reads after timeline edits (#836)
* Reuse the active composition source when refreshing its poster
* Cover opening and reopening the cloud motion catalog
* Reuse unchanged composition keyframes after scoped edits
* Publish selection transitions once and consume pending history refreshes
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Step shared project history and name edits at commit (#846)
* Step shared project history and name edits at commit
* Preserve one project history entry across a Studio gesture
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Unify Studio and remote project editing rules (#850)
* Document the shared project editing contract
* [OPEND-5496] Share project editing commands across Studio and remote MCP
* Commit timeline track and paint order together for legacy and current clips
* Narrow command failures in both backend compiler configurations
* Fix reconnect, caption roots and whole-path drag parity found in browser acceptance
* Exercise isolated pointer deltas and playhead mode in the preview bridge
* Keep ripple deletion on its authored lane and preserve locked track controls
* Respect attribute selector indices when pasting beside a source element
* Preserve authored zero-duration holds during canvas drags
---------
Co-authored-by: lefarcen <935902669@qq.com>
* ci(cloud-test): publish Orbit cluster-pull releases via /api/automation/v1/publications (#857)
* Read cloud Motion templates from published Prism content (#859)
* Import the published Prism Motion catalog into cloud project services
* Expose editable Motion templates and safely reuse template clone requests
* Verify that a template handoff carries its session request identity
* Remove scheduled Prism imports and keep the original contributor catalog workflow
* Read Prism Motion on demand with stale-while-revalidate caching
* Serve Studio gallery pages from the cached CMS publication
* Read built-in template sources lazily in the cloud API
* Prepare only the selected published template before cloning
* Document request-driven CMS reads and preserve clone types
* Reject conflicting lengths during shared template downloads
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Fix isolated canvas saves in compositions with dynamic animation targets (#867)
* Keep dynamic letter animations independent from canvas layer moves
* Cover isolated welcome canvas moves through the batch save route
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Keep rapid history actions ordered and avoid unrelated preview reloads (#872)
* Serialize cloud history inputs and return the next steps with each restore
* Scope history preview reloads and animation reads to affected sources
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Avoid unrelated reads when selecting items in the editor (#870)
* Keep canvas selection and focus changes from refreshing unrelated editor data
* Refresh worker availability when Studio becomes visible
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Keep video and audio rows separated during track moves (#874)
* Reflow all timeline display rows together when moving clips across lanes
* Keep implicit text above authored tracks when rebuilding display lanes
* Exclude the local Studio dependency link from source control
* Verify authored lane and compacted host rows after a move
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Keep timeline trims visible while the isolated preview refreshes (#873)
* Keep released clip trims visible while the isolated preview catches up
* Preserve source in-points when a trim only changes timing
* Exclude the local Studio dependency link from source control
* Keep timeline moves visible while isolated preview snapshots refresh
---------
Co-authored-by: lefarcen <935902669@qq.com>
* [OPEND-5496] Apply concurrent Studio and MCP editing intents to current project content (#882)
* Reapply stable-target editing intents to current project source
* Submit isolated canvas gestures to the shared project edit executor
* Verify stable canvas identities before applying stale editing intents
* Reconcile Studio projections when an edit commits on a newer source
* Guard stale stacking snapshots and cover generated welcome template identities
* Protect open source drafts and verify concurrent Studio edit receipts
* Document the project source and read-only playback boundary
* chore: ensure PR CI
---------
Co-authored-by: lefarcen <935902669@qq.com>
Co-authored-by: open-design-crew[bot] <4197780+open-design-crew[bot]@users.noreply.github.com>
* Serve Motion templates without waiting for the CMS on first access (#863)
* Serve the current template catalog while the initial CMS download runs
* Distinguish unpublished catalog availability from missing templates
* chore: ensure PR CI
---------
Co-authored-by: lefarcen <935902669@qq.com>
Co-authored-by: open-design-crew[bot] <4197780+open-design-crew[bot]@users.noreply.github.com>
* [OPEND-5496] Restore the Motion effects component catalog and project installation (#875)
* Serve and install the pinned motion component registry in cloud Studio
* Mount effect fragments from nested scenes and expose installation through MCP
---------
Co-authored-by: lefarcen <935902669@qq.com>
* fix(cloud): allow bundled vendor dist paths in preview, archive, and render (#879)
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* feat(studio): unify editor asset loading and add client-side composition thumbnails (#884)
* feat(studio): unify editor asset loading and add client-side composition thumbnails
Unify initial editor asset readiness across file tree, timeline, active composition media, and bounded client-side timeline composition thumbnail capture, while fixing repeated fallback tiles on cloud HTML composition strips.
- Gate workspace interaction and global hotkeys behind a single debounced loading overlay with monotonic progress, bounded retries, 4xx fast-fail, 8s skip escape hatch, and post-unlock non-blocking failure toasts with in-place retry.
- Filter decorative avatars/logos/insets out of cloud fallback posters and render clean non-repeating single-title fallback strips instead of tiled icons.
- Capture real multi-frame composition filmstrips in the browser via a serialized offscreen iframe (@zumer/snapdom + direct canvas/WebGL preserveDrawingBuffer fast-path), persisted in IndexedDB and served from an in-memory LRU cache across switches.
- Integrate up to 4 playhead-nearest uncached composition clips into the initial loading gate with a 4.5s timeout ceiling, streaming remaining clips progressively in a priority queue (interaction > gate > visible > overscan) and caching project file trees via stale-while-revalidate.
* fix(studio): bound HEAD probes, ref-count thumbnail URLs, and drop overlay backdrop blur
---------
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* merge(cloud): sync feat/cloud-container-p1 with main (
|
||
|
|
74a3d1e79d |
Revert "feat(super-agent): add Super Agent workspace, Artifact Viewer, unified resource hub, and Agent Runtimes (#808)" (#877)
Some checks failed
Motion standalone checks / Template library policy (push) Has been cancelled
Motion standalone checks / Maintainability report (push) Has been cancelled
Motion standalone checks / Source checks (push) Has been cancelled
Motion standalone checks / Workspace reliability (macos-15) (push) Has been cancelled
Motion standalone checks / Workspace reliability (windows-2025) (push) Has been cancelled
Motion standalone checks / Studio regression (1/2) (push) Has been cancelled
Motion standalone checks / Studio regression (2/2) (push) Has been cancelled
Motion standalone checks / Distribution browser regression (push) Has been cancelled
Motion standalone checks / Distribution regression (push) Has been cancelled
Motion standalone checks / standalone (push) Has been cancelled
DSH integration / Optional DSH plugin (push) Has been cancelled
Motion release controls / controls (push) Has been cancelled
Update README star history / refresh (push) Has been cancelled
Reverts commit
|
||
|
|
216e12abfe |
feat(super-agent): add Super Agent workspace, Artifact Viewer, unified resource hub, and Agent Runtimes (#808)
* feat(super-agent): add Super Agent workspace, Artifact Viewer, and unified resource hub * fix(super-agent): align merge with main and mode composer controls * wip(super-agent): save local Super Agent updates before merging origin/main * feat(super-agent): add cloud share, game handoff, browser annotations, review fixes, and UI craft guidelines * feat(arch): add cross-platform MCP hub, desktop shell, batch/triggers, and unified Web Publish Implement OpenMotion's cross-platform MCP-first architecture and desktop packaging: - Streamable HTTP MCP gateway (/mcp) with scoped Bearer tokens and unified Stdio/HTTP dispatch - Multi-runtime Agent routing (local-direct, outbound local-bridge with macOS/Linux/Windows scripts, remote-service) - Shared Batch Content Optimization and webhook/schedule Trigger engine across HTTP, MCP, and Super Agent - Generalized HTML Web Publish service (design, game, motion, and standalone html targets) with shared Studio WebPublishPopover and Design Deploy compatibility facade - Standalone Electron desktop shell (desktop/) for macOS, Windows, and Linux with multi-platform icon pipeline, WebGL splash/OpenDesign sign-in flow, auto-updater, and diagnostic export - Static asset compression/caching (editor-server.ts), bounded LRU lifecycle helpers, and visibility-aware polling - Comprehensive unit, HTTP, MCP, performance, and desktop test suites * docs(arch): add cross-platform MCP architecture guide and interactive boundary map Document the five-layer cross-platform MCP architecture, desktop packaging boundaries, batch/trigger automation, and generalized HTML Web Publish pipeline in docs/cross-platform-mcp-architecture.md and docs/architecture-map.html. * fix(ci): schedule new backend tests, fix WorkspaceStore import, and harden Codex/runtime shutdown * feat(super-agent): refine Artifact Viewer, CodeViewer styles, runtime/share handlers, and tests * fix(ci): resolve remaining gitleaks, WebMCP tracking, i18n, menuStyle, and tokenGate checks * chore(ci): remove accidental node_modules symlink from worktree commit * fix(tracking): register motion_cloud_share tool and openmotion_cloud_share actions * fix(account): avoid treating plain-text HTTP 403 prose as structured error code * feat(super-agent): refine artifact viewer toolbar, game presentation, and cloud share trigger * test(package): exercise openmotion_cloud_share in packaged phase1 smoke E2E * fix(cloud-share): rotate file identity on entry path change and allow stop after project deletion * test(e2e): verify MCP web deploy, game lifecycle, and fix preview asset CSP * fix(super-agent): add persistent live progress dock and Continue recovery UX * fix(design): allow sandboxed preview CORS fetches and preserve top-row preview thumbnails * feat(super-agent): refine WebPublishPopover and ArtifactBrowserPane styles and tests * fix(bridge,ci): forward workingDir to bridge/remote runtimes, sync standalone Codex events, and align tracking/CI suites * fix(ci): keep 1800ms active-project polling in useWorkspace and update MCP tool count to 36 * fix(web-publish,server): stop prior slug on new_link, allow deleted-project unpublish/status, avoid bfcache SSE socket exhaustion, and await active turn cleanup * chore(distribution): raise default npm package budget to 26 MiB Baseline main is already at 23.69 MiB compressed (98.7% of the previous 24 MiB budget after Game Studio assets), and adding Super Agent, Artifact Viewer, WebPublish, Local Agent discovery/bridge, and 10-locale i18n adds +0.38 MiB compressed with no new offline media (24.06 MiB total). Update MAX_BYTES in .github/scripts/npm-package-size.py and document the 26 MiB budget in CONTRIBUTING.md. * feat(super-agent): add Game Studio Super Agent mode, masonry showcase, and artifact viewer enhancements |
||
|
|
deca7fd805 |
fix(tracking): join feedback events with an opaque minted id (#674)
The feedback card asks the user to rate a render, and the four feedback events
could not be joined to the render that prompted them: `studioUsageProperties`
copies only the keys the event registry declares, and none of them declared an
identifier.
The first attempt registered `render_id: 'uuid'` and forwarded `job.id`. That
value is the server render job id, shaped `<project>_2026-11-10_10-00-00`, so
the `uuid` rule rejected every real value and the join stayed broken while the
test passed on a synthetic id. That id also embeds the project id and a
timestamp, which the tracking contract deliberately keeps in the browser, so
widening the rule to `code` was not an option.
`requestStudioFeedback` now mints an opaque uuid for each prompt and forwards
that, so `shown`, `dismissed`, `interview_click` and `feedback` for one render
share a join key that carries nothing about the project. `useRenderQueue` no
longer passes the server job id, the trigger ignores a caller-supplied id, and
`tracking/README.md` describes the retained value as a browser-minted
identifier rather than a render-job id.
Validation:
- `npx vitest run --config studio/vitest.config.ts studio/src/components/feedback/feedbackTrigger.test.ts`
passes, including a new case asserting a caller-supplied job id is replaced.
- `tests/studio-tracking.test.ts` keeps the four-event uuid assertion green and
adds the negative case that a `<project>_<timestamp>` id is dropped, which is
why the rule stays `uuid`.
- `npm run typecheck:studio` and `npm run check` pass.
One pre-existing failure remains in `tests/studio-tracking.test.ts` on Windows
and is unrelated: the audio producer scan matches
`file.endsWith('/audioFxTelemetry.ts')` while the glob returns backslash
separators, so the `audio_fx_*` events are never collected. A clean checkout
gives the same six passing and one failing.
|
||
|
|
9060f47d0d |
feat(scenario): add dual-mode Workflows workspace, shared Assets, and MCP write-back (#781)
* Add scenario workflows foundation, Design asset import and Wave 1 contracts
Implement the Wave 1 scenario workflow contracts, shared domain service,
Design Studio binary asset import, ZIP bundle exporter and Studio boundary
files while preserving the 22 public MCP tools:
- Shared browser-safe contracts in shared/scenarios.ts, shared/scenario-runs.ts
and shared/scenario-content.ts covering all five scenarios, 21 scenario
commands, starter HTML recipes, idempotent HTML image embedding, localized
social drafting and Agent handoff builders.
- Design Studio binary asset import via DesignProjects.importBinaryFile(),
openmotion_design_edit action=import_asset, POST /api/design/projects/:id/import-asset
and designClient.importAsset().
- Domain service (gateway/scenario-runs.ts), ZIP bundle builder
(gateway/scenario-bundle.ts) and HTTP download route (gateway/scenario-http.ts),
wired under openmotion_assets_use action=scenario with tracking schema parity.
- Studio scenario client, scenarioCovers.ts, stepContract.ts and ODUI-compliant
boundary stubs for parallel Wave 2 UI implementation.
- Node test coverage in tests/scenario-content.test.ts, tests/scenario-runs.test.ts,
tests/scenario-bundle.test.ts and tests/design-import-asset.test.ts registered
in .github/workflows/ci.yml.
* Implement scenario workflow step workbenches and unit tests
- Add reusable BindingSlot with pool picker, chip removal and drag-and-drop
- Implement BriefStep with dynamic brief fields, debounced autosave, revisions, downstream prompt seeding, AI influencer script editor, Gemini 4 Neon rail/availability and Black Friday discount badge
- Implement WebPageStep with starter/template/existing project creation, live viewport preview, live HTML slot targeting, single and chained Embed all, and design version previews
- Implement MediaStep (image, video, audio) and MotionPanel with scene/audio tabs, catalog model picker, offscreen-pausing video, offline provider-setup recovery with upload/workspace import, and Motion project creation/linking
- Implement SocialPackStep with offline drafting, regeneration variants, character/title limit counters, hashtags, media reordering and token-only live card previews
- Implement ExportHubStep with step overview, pool readiness checks, ZIP bundle export with persistent download card and Agent handoff actions
- Wire StepRouter with token-only opaque steps.css and add Vitest suites for all five step workbenches
* Implement scenario workflow shell, shared asset pool, and run state
Add useScenarioRun state hook with auto-resume, lazy run creation, optimistic revision conflict recovery, visibility-aware job polling, and window focus refresh. Implement ScenarioCard, ScenarioHub, ScenarioHeader, ScenarioStepper, PoolItemPreview, AssetPoolPanel, IterationHistory, StepExportMenu, ScenarioWorkspace, opaque token-only scenario.css, and Studio unit tests.
* Wire scenario workflow navigation, routing, MCP handbook, 10-locale i18n and docs
Implements Worker D integration for end-to-end scenario workflows:
- Routing & URLs: scenario/scenarios pages with category, run UUID, and step validation plus breadcrumb labels
- Top nav & Explore: Workflows split tab with 3-column mega menu, ExploreSpotlight primary workflow CTAs + 5th AI Influencer slide, ScenarioHighlights rail, CapabilityIndex Workflows column, landing cross-links, and WorkspaceFrame host wiring
- MCP handbook: scenario-workflows capability (preserving exact 22 phase-1 tool union), scenario-black-friday and design-embed-assets recipes, and setup-prefixed Black Friday handoff
- 10-locale i18n: scenario-ui.json (526 keys x 10 locales covering shared/scenarios.ts plus all scenario-shell and scenario-steps UI keys), studio-navigation-ui.json, and mcp-ui.json updates
- Docs & tests: mcp-phase1-tools.md, product architecture, scenario-workflows.md guide, openmotion-design SKILL note, and full Vitest + Node MCP test coverage
* Register scenario stylesheets in tokenGate and complete 10-locale i18n coverage
- Register scenarioNavigation.css, scenario.css and steps.css in
studio/src/styles/tokenGate.test.ts and define the four remaining
token-only scenario CSS classes (.om-scenario-host,
.om-scenario-header-category, .om-scenario-step-tab-title,
.om-scenario-history--empty).
- Add the missing 'Download started' translation across all 10 non-English
locales in studio/src/i18n/scenario-ui.json for 100% 10-locale coverage.
* Fix Scenario Workflows Wave 3 E2E and visual findings
- Treat full content-step selection as an unfiltered export bundle so README.md and unattached uploaded pool files are included
- Auto-activate newly saved iterations in ScenarioRuns.addIteration while preserving promote for older versions
- Suppress duplicate raw error toasts on SCENARIO_CONFLICT after useScenarioRun displays the localized conflict notice
- Map raw step statuses, pool kinds, job states, and copy tone/promo code labels through localized UI keys across all 10 locales
- Restore light/dark Explore hero CTA contrast hierarchy and make the Workflows mega menu compact so the footer is visible without clipping at 1440x900
- Stack the scenario step header vertically below 767px to avoid squeezing the step title on mobile viewports
* fix(scenario): replace alarming export-hub step warning stack with calm readiness hint
* feat(scenario): replace intimidating brief form with guided fill-in-the-blanks prompt composer
* polish(scenario): auto-size inline blank pills snugly to text content
* feat(scenario): add guided page composer, filter layouts, and codify workflow UX rules
* Enhance scenario workflows with semantic step colors, icons, and unified composers
Add consistent semantic color-coding and richer icons across the scenario
workflow shell and every step workbench without removing any capability:
- ScenarioStepper & ScenarioWorkspace: add step-type color accents (brief,
image, web-page, video, audio, social-pack, export-hub), flow connectors,
live progress bar, tinted step header badge, Step N / M pill, and next-step
icon cues.
- ScenarioHeader, ScenarioCard & AssetPoolPanel: color-code category pills,
step preview chips, shared asset pool header/filter chips, and asset kind
badges using existing packages/design-system tokens.
- MediaStep, SocialPackStep, WebPageStep, BriefStep, MotionPanel, BindingSlot
& ExportHubStep: unify Media and Social steps into single composer cards
matching Brief and WebPage, render official PlatformIcon glyphs for social
channels, add colored section/slot/stat icons, and remove redundant orphan
toolbars while preserving all generation, upload, embed, edit, compare,
MCP handoff, and ZIP export actions.
- Update studio/src/i18n/scenario-ui.json across all 10 non-English locales.
* Refine scenario workflows layout, controls, and dual-track MCP write-back
- Refine input and Select dropdown borders across design-system adapter/application CSS and workflow steps, eliminating thick stacked outlines and clipped option borders
- Flatten nested wireframes and unify top chrome, stepper, step composers, and open canvas sections with plain consumer-product terminology and 10-locale translations
- Add desktop drag-resizer, keyboard/double-click reset, persistence, and collapse/reopen toggle with auto-expand on pick for the right Shared assets sidebar
- Add StepCapabilityBar for in-step direct image/video generation alongside run-bound MCP write-back prompts and window focus/visibility sync across creation steps
- Consolidate workflow export actions into the header and Shared assets sidebar and fix backend text-ref type narrowing in scenario bundle generation
* feat(scenario): add dual-mode Agent mode, preview stage, draft history, and polish UX
Add Step-by-step and Agent mode workspace views with grouped Skills pipeline, concise MCP prompt generation, visual preview stage, draft history dialog, selective Assets import/export, 10-locale i18n coverage, and tokenGate CSS fixes.
* fix(i18n): remove duplicate base-dictionary overrides from scenario-ui.json
Drop duplicate '{count} selected' and 'Copied. Paste into your Agent.' entries from scenario-ui.json so ProjectArchives and TemplateLibraryDialog retain their canonical translations.
* feat(scenario): add stage preview artwork, refine Agent Teams UX and disclosure styling
* fix(scenario): address PR #781 review feedback across steps, templates, HTML embed and side-effect mutations
---------
Co-authored-by: pftom <pftom@pftomdeMacBook-Pro.local>
|
||
|
|
ba3aaf2f60 |
feat(game-studio): add Game Studio with local game service and MCP game tools (#767)
* feat(game-studio): add Game Studio tab, local game service and MCP game tools Game Studio page with template waterfall, My games sidebar, landscape/portrait choice and auto-open of Agent-created drafts; local game projects service with rooms, playtest, simulate and cover capture; openmotion_game_* MCP tools; openmotion-game handbook ported from the MIT higgsfield-ai/skills handbook; coop-3d and arcade-2d starter kits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(game-studio): register game tools, dedupe handbook provenance, fix search and code reload Register the openmotion_game_* tools in MCP counts, onboarding scenarios and tracking dimensions; keep them out of WebMCP. Move the shared MIT provenance note to PROVENANCE.md. Studio search now matches localized titles, and the Code tab reloads its source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(game-studio): harden game service and fix invite copy and code fullscreen Case-insensitive reserved paths and request-id saves; sandbox CSP for game documents; WebSocket fragment count, time and buffer limits; AST-based determinism check; single-player start for playtest and cover capture; atomic batch writes with rollback. Studio: clipboard-write for embedded games and Code-tab fullscreen on the stage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(game-studio): trim KayKit characters below 1 MiB for the storage policy Keep 12 common clips per character (meshes, skin and bones unchanged) so Knight.glb and Mage.glb stay ordinary Git files; update the character README and the 3D handbook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(game-studio): hand drafts to the user's Agent; derive the WebSocket test nonce Drafts show "Waiting for your Agent" until the Agent sets building. The draft page offers Copy instruction and Open in Codex (prefill only) with the full instruction: game id, brief and steps. GET /api/games/:id/handoff returns it for any workspace draft, including drafts created elsewhere and remixes; creation now includes the portrait layout in the instruction. Tests derive the RFC 6455 sample nonce at runtime so release scanning stays strict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(game-studio): spin the detail status only while the Agent is building Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(game-studio): exercise all twelve game tools in the packaged MCP smoke test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(game-studio): vendor acorn so packaged builds can run the game rules sandbox Packaged builds ship without node_modules, so openmotion_game_simulate failed with "Cannot find module 'acorn'". Ship acorn 8.19.0 (MIT, license in the file header) under shared/vendor and import it relatively. Verified in a node_modules-free copy of the phase1 file list: create plus reference simulation wins at tick 809. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(game-studio): resolve browser and trailer dependencies from the host runtime root Packaged builds install npm dependencies under the data directory, so playtest, cover capture and trailer recording failed with "Cannot find module 'puppeteer-core'" and the trailer looked for HyperFrames in the plugin folder. Server and phase1 hosts now pass their runtime root; puppeteer, HyperFrames checks, the trailer's Phase1Service and render queue use it (source checkouts fall back to the plugin root). Verified in a node_modules-free phase1 file copy: playtest, cover, simulate, publish and a trailer through ready. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(game-studio): isolate catalog entries, smoke-test solo logic and run the game suite in CI Review follow-ups: - The catalog skips and reports a game folder it cannot read (an orphan or malformed game.json) instead of failing GET /api/games; create and remix remove their folder when a step fails, so a partial create no longer leaves an orphan. - Validation runs the bounded logic.js smoke check for every game with rules. Single-player games follow validateAction as live play does, the loop stops when the game ends, and a kit game missing logic.js is reported. Room checks stay multiplayer-only. - tests/game-projects.test.ts runs in the Distribution browser lane (Chrome and native export cases skip themselves when unavailable) and leaves the unscheduled list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(game-studio): stabilize scrolling and animate build indicator * fix(game-studio): validate runtime before browser discovery Resolve the requested runtime dependencies before detecting Chrome so missing-runtime diagnostics remain deterministic on Linux. Preserve all tests and emit failed Game Studio assertions as GitHub check annotations. * fix(game-studio): stop waiting for network silence during capture Wait for the document load and visible canvas while retaining room, startup and runtime assertions. Add a real polling regression that reproduces the 20-second navigation timeout and verifies successful background responses during capture. --------- Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zhanghuihua <zhanghuihua@Mac.lan> Co-authored-by: stevenguotj <stevenguotj@stevengotjdeMBP.lan> |
||
|
|
dd142f9565 |
[OPEND-5521] Add Cinema Studio template gallery and generation presets (#729)
* Add Cinema Studio template browsing and generation drafts * fix(studio): complete Cinema help translations and restore shelf heading --------- Co-authored-by: qiqi <qiqi@qiqideMBP.lan> |
||
|
|
f94275793c |
feat(studio): add Black Friday top banner and Pricing entry with attribution (#731)
* feat(studio): add Black Friday top banner and Pricing header entry * feat(tracking): attribute Black Friday banner and Pricing entry clicks Add od_origin/od_entry_source/od_entry_id/od_entry_at and UTM fields to the banner and header Pricing links, report the banner impression and the claim/close/Pricing clicks with campaign_id and the click's entry_id, and use design-system tokens for the Pricing icon colors and header radii. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(studio): localize the Black Friday banner and bound its campaign window Move banner and Pricing campaign copy into campaign-ui.json for all supported locales, show the campaign only until 2026-12-05 00:00 Beijing time, keep a dismissed banner hidden for the rest of the local day, and re-check the window and day each minute so open pages update without reloading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): keep the countdown day unit out of one-letter messages The one-letter "d" message translated to German "T", which the reverse lookup then matched for the editor's T inset label. Use a descriptive key and keep English "d" in code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(tracking): send the AMR-registered OpenMotion entry source AMR drops an attribution whose od_entry_source is not registered, entry id included. Send openmotion_manage_subscription for the banner and header Pricing links and tell them apart by utm_medium and the click event's entry_id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(studio): start the Black Friday campaign at 2026-11-21 18:00 Beijing time The banner, the Pricing 50% OFF badge and the campaign fields on links and events start at 2026-11-21 18:00 +08:00 and still end at 2026-12-05 00:00. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: hazel-ye <80680199+hazel-ye@users.noreply.github.com> Co-authored-by: zhanghuihua <zhanghuihua@Mac.lan> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
492fe2b2cd |
[OPEND-5528] Restore Motion Studio catalog browsing and direct template details (#725)
Add the full Motion Studio catalog and direct editor entry. Restore the last available project from Explore and open templates in their existing detail views. Preserve the blank-project card from main and share industry ordering across the two shelves. |
||
|
|
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> |
||
|
|
82eb020582 | Show design templates on the Design Studio landing (#718) | ||
|
|
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. |
||
|
|
1c00882623 |
Remove the API directory from Studio navigation (#706)
Co-authored-by: bone3deep1962-collab <bone3deep1962@gmail.com> |
||
|
|
ef577a7844 |
feat(design): integrate Open Design HTML workflows, MCP tools, and Design Studio editor (#699)
* feat(design): add Design Studio project contract and locale resources * feat(design): port Open Design templates, systems, skills, craft and scenario guides * feat(design): add shared design-projects service, HTTP adapter, 4 MCP tools and openmotion-design Skill * feat(design): add Design Studio HTML preview editor, scene tabs, Explore and MCP handbook entries * feat(design): polish Design Studio UI, live preview bridge, packaging and stdio MCP E2E tests - Upgrade Design Studio visual design: editorial hero and elevated composer dock with Design System swatches, Design Skill picker, and example prompt pills; edge-to-edge ScaledPreviewThumb gallery cards; dot-grid device frame canvas with dimension captions; syntax-highlighted line-numbered CodeViewer; inline project rename and Open-in actions; symmetrical 8-card Explore template shelf - Keep preview bridge mounted for live HTML previews without iframe reloads on tool toggle, prevent overlay pointer capture from swallowing annotation popover clicks, and eliminate redundant initial raw preview fetches - Complete all 10 non-English locale dictionaries in design-ui.json and design-editor-ui.json - Register library/design and docs/design-studio.md in distribution packaging, include openmotion-design in package Skill checks, exercise all 4 openmotion_design_* tools in phase1-package.mjs, and schedule design test suites in CI - Add live stdio MCP subprocess E2E coverage and CodeViewer/DesignProjectList Vitest coverage * chore(design): remove redundant More studios dropdown from DesignSceneTabs * feat(design): add Mobile App scenario with 390x844 phone preview default * perf(design): freeze idle rAF/WebGL/CSS animations in preview thumbs and unmount offscreen iframes * feat(design): reuse Motion Brand Kits for Design Studio picker with hover preview and detail modal * feat(design): add Motion-aligned Design template detail preview modal with responsive stage and navigation * feat(design): support @ mention autocomplete and composable multi-select templates, skills and prompts in composer * fix(design): unify studio bar tab heights to eliminate layout shift between image and design scenes * fix(design): keep Design Studio sub-navigation bar on a single responsive row * feat(design): move Design Studio composer to floating bottom dock with scrollable middle template gallery * chore(design): assign dedicated mobile-app templates from Open Design catalog without overlap with prototype * feat(design): curate flagship-first template ordering and clean gallery-first card styling * fix(design): constrain BrandKitPicker popover max-width and scroll container height to prevent overflow * fix(design): align active scene tab styling with Text-to-Image and match search input and button heights * fix(design): center editor toolbar with 3-column grid and remove idle pill background on annotation tools * refactor(design): move Preview/Code and viewport selector into canvas toolbar and use compact annotation icons * fix(design): remove inner textarea focus ring and align composer border radii * fix(design): match filter input height to 32px md Button height * fix(design): eliminate leaked media-surface border on composer textarea and align template detail stage with Motion * docs(design): include mobile-app in Design Studio scenario documentation * feat(design): make Copy to Agent prompts self-contained with MCP install and live workspace setup * fix(design): replace opaque region fill with crisp translucent marquee and smart popover placement * fix(design): remove internal-link demo URL and duplicate i18n keys that overwrote Studio translations * feat(design): keep drawn pen strokes visible during compose, add visual previews in annotations, and focus on click * fix(design): make toolbar Comments counter button toggle the Comments panel with active state * fix(design): auto-size project title input and remove leaked media-surface fill and gap * test(design): pass anchor in phase1 package comment smoke and target platform-export scenario by data attribute * fix(design): address PR review findings on entry restore, preview isolation, coordinates, save revisions, and icons * fix(design): reject overlapping write/delete paths, enable conflict overwrite retry, and hoist optional annotation bindings * fix(design): fetch latest project and file before rebasing discarded code draft * fix(design): clear codeLoading in finally when discard reload fails --------- Co-authored-by: pftom <pftom@pftomdeMacBook-Pro.local> Co-authored-by: pftom <pftom@pftomdeMBP.lan> Co-authored-by: pftom <pftom@Mac.lan> |
||
|
|
28b15d279c |
Remove the return-to-project button from template details (#694)
Co-authored-by: Q-baobao <Q-baobao@users.noreply.github.com> |
||
|
|
58fcfeb3ce |
feat(settings): guide sign-in and upgrades toward multimodal generation (#670)
* feat(settings): guide sign-in and upgrades toward multimodal generation Signed-out people now see what signing in unlocks on the Account page: image, video, voiceover and music generation without API keys, included with Plus, Pro and Max. Free and Go accounts get an upgrade card that opens the subscription page with its own entry source (openmotion_account_upgrade) and reports the existing view_plans click. A dated campaign line (accountOffer.ts) shows beside both guides; its copy is a placeholder until the commercial terms are confirmed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(settings): present the account guides as plan cards Restyle both guides as plan cards: a large title with a badge, one sentence on what Plus unlocks, the capability chips, the offer line and the actions. The border uses the design-system brand-to-accent gradient. - Signed out: "Sign in to start multimodal generation" with a "Plus and above" badge, so signing in no longer reads as unlocking generation. - Free and Go: the plan name leads, with "Upgrade to Plus" and "Manage subscription" side by side; the duplicate link below the metrics is hidden. - The offer line becomes "Annual offer" until a discount and end date are confirmed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(settings): address review on the account plan cards - Offer note: state the standing annual price instead of placeholder campaign copy. AMR public pricing bills Plus, Pro and Max yearly at 70% of twelve monthly list prices ($168 / $840 / $1,680 against $20 / $100 / $200), so the note reads "cost 30% less when billed yearly" and has no end date. activeAccountOffer keeps optional start/end windows for real campaigns, with boundary tests. - Entry source: AMR drops attribution for unregistered od_entry_source values, so the upgrade link uses the registered openmotion_manage_subscription source; the ui_click element (view_plans vs manage_subscription) separates the two buttons. tracking/README.md documents both links. - Token gate: mark the upgrade card with data-guide="upgrade" instead of an unstyled class. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(byok): target the signed-out plan guide in the account harness The signed-out Account page renders .om-plan-guide instead of the summary card, so sign-in clicks the guide's button and the post-sign-out check waits for the guide heading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
73d6a38daf |
feat(tracking): report Explore, the creative navigation, Studio pages and the model hub (#667)
* feat(tracking): report Explore, the creative navigation and Studio pages Add page views and clicks for Explore, the top creative navigation, the Design/Cinema/Sound/Motion Studio pages, the API page and model overviews, and report Studio-form generations with their Studio, scene and model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(tracking): report a model chosen in the creative menu as select_model Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(tracking): report the model hub page Add a model_hub page view (hub, signed-in state) and clicks for its header, hero, video wall, video detail and availability section, by catalogue id only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(tracking): keep the chosen model and require the navigation page Send a catalogue model key provider:modelId as model_provider + model_id (custom providers send neither), and make CreativeNavigation's trackingPage required instead of keeping an unreachable fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: zhanghuihua <zhanghuihua@Mac.lan> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local> |
||
|
|
492540ffc2 |
feat(mcp): split library Skills into openmotion_list_skills / openmotion_get_skill (#648)
* feat(mcp): split library Skills into openmotion_list_skills / openmotion_get_skill Skills no longer ride on the template tools. list_templates returns templates only (no kind=skill rows, no skillTotal) and get_template rejects Skill IDs with a pointer to openmotion_get_skill. The new tools reuse the same repository/hosted readers and content-addressed object store. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(studio): point Skill copy prompts and MCP examples to openmotion_get_skill Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: register Skill tools in the MCP handbook and update tool-count tests - Templates capability lists openmotion_list_skills / openmotion_get_skill; technique studio scenarios compose openmotion_get_skill. - Tool counts +2; the WebMCP tracking integration test flushes between calls so 23 tools x 3 events stay within the bounded browser queue (64). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(mcp): ship Skill tools in CMS/package mode, add handbook capability and refresh counts - CMS mode reads the library/skills shipped with the application and never waits on the template publication, so list_skills/get_skill work offline and in the packaged phase-one ZIP. - Phase-one package E2E calls openmotion_list_skills and openmotion_get_skill. - Handbook gets a Skill-discovery capability (zh-CN copy included). - Growth teardown Skill reads its scripts via openmotion_get_skill. - Public counts: 18 MCP names (17 capabilities) and 23 WebMCP page tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zhanghuihua <zhanghuihua@Mac.lan> |
||
|
|
c8c6d9e7df |
[OPEND-5455] Add the Black Friday template and Skill collection (#647)
* Add the Black Friday template and Skill collection * Keep Black Friday covers and mobile text visible * Enter Black Friday from Explore and reuse Skill details --------- Co-authored-by: Q-baobao <Q-baobao@users.noreply.github.com> |
||
|
|
ee08d20577 |
feat(templates): add local reference video recovery (#614)
* feat(templates): recover empty searches with reference creation * fix(templates): remove undefined form classes * fix(templates): match task aliases against catalog purposes * feat(templates): open reference creation from the library home * refine(templates): feature the reference link below gallery actions * refine(templates): align reference forms and show the entry across categories * feat(templates): track reference video recovery flow * fix(templates): retain reference drafts during search --------- Co-authored-by: qiqi <qiqi@qiqideMBP.lan> |
||
|
|
6d865cb28e |
[OPEND-5413] feat(templates): unify interactive motion guide previews (#615)
Unify each template’s existing guide preview, preserve its authored content, support declared drafts and native project continuation, and register privacy-preserving guide analytics. Includes reviewed retry, source-bundle, handbook and build-path fixes. Latest main conflicts are resolved; all 15 checks pass. |
||
|
|
942457a98e |
Connect Explore, media scenes and studios in the creative workspace (#637)
* Connect Explore, media scenes and studios in the creative workspace * Keep the related template preview open while retrying playback * Exercise the project MCP entry in the review handoff browser test * Ship the Studio soundtrack and complete navigation translations * Localize Studio entry points and searchable destination names --------- Co-authored-by: pftom <26423749+pftom@users.noreply.github.com> |
||
|
|
58812fe15d |
feat(install): carry campaign attribution through setup (#638)
* feat(install): carry campaign attribution through setup * fix(install): keep attribution sources outside release scan private links * feat(install): record attribution funnel start * fix(install): record attribution before host registration * fix(install): finish attribution after setup * fix(worker): use the full Cloudflare account id * fix(install): load attribution from extracted app --------- Co-authored-by: lefarcen <935902669@qq.com> |
||
|
|
1e7e1861f5 |
[OPEND-5412] feat(studio): improve template details and handoff (#584)
* feat(studio): refine template details and project handoff * feat(tracking): measure template handoff and enable approved details * test(studio): align handoff and related preview regressions * fix(tracking): link editable handoff intent to operation results * fix(studio): preserve and unblock template creation recovery * Preserve template handoff requirements in every locale * fix(studio): keep guide return and short brand previews usable * test(browser): make brand story selection deterministic --------- Co-authored-by: qiqi <qiqi@qiqideMBP.lan> |
||
|
|
d7527cac57 |
feat(studio): add anchored video review comments and annotations (#629)
* feat(studio): add anchored video review comments and annotations * fix(studio): restore hover and active feedback for review tools * fix(review): align dock regressions and tracking contracts * fix(i18n): translate saved review context labels * fix(studio): keep comment capture surface transparent * feat(mcp): complete review comment data handoff guidance * test: include review handoff dependency and isolate edit assertions * fix: preserve playback when opening whole-video comments |
||
|
|
ff22a47ca6 |
fix(tracking): report actionable MCP and export failures (#613)
* fix(tracking): report actionable MCP and export failures * test: fix polling and packaged onboarding regressions * fix(tracking): deduplicate cancellation and classify nested validation * fix(tracking): report a missing tool action before variant ambiguity --------- Co-authored-by: 罗高 <luogao@users.noreply.github.com> |