mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-02 03:09:23 +08:00
feat/openmotion-lambda-render
8 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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> |
||
|
|
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 |
||
|
|
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> |
||
|
|
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> |
||
|
|
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> |