The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
fix(studio): complete MVP validation and add review screenshots
xiaoche-hub0b0d2abad3b7
diff --git a/docs/reviews/motion-mvp/README.md b/docs/reviews/motion-mvp/README.mdnew file mode 100644index 00000000..eeb0c0e3--- /dev/null+++ b/docs/reviews/motion-mvp/README.md@@ -0,0 +1,9 @@+# Motion MVP review screenshots++Captured from the local Studio build on 2026-11-09 using a disposable interaction-audit project. English text inside the video is project content, not untranslated editor chrome.++- [Editor](editor.png): compact asset cards, type filters, preview controls and timeline.+- [Project drawer](project-drawer.png): project navigation overlays the editor instead of adding another column.+- [Expanded preview](expanded-preview.png): preview fills the editor surface without invoking browser fullscreen.++These screenshots document representative UI states, not exhaustive acceptance of all export formats or host platforms. See the pull request validation notes for automated and manual coverage.diff --git a/docs/reviews/motion-mvp/editor.png b/docs/reviews/motion-mvp/editor.pngnew file mode 100644index 00000000..18811a40Binary files /dev/null and b/docs/reviews/motion-mvp/editor.png differdiff --git a/docs/reviews/motion-mvp/expanded-preview.png b/docs/reviews/motion-mvp/expanded-preview.pngnew file mode 100644index 00000000..92d32eceBinary files /dev/null and b/docs/reviews/motion-mvp/expanded-preview.png differdiff --git a/docs/reviews/motion-mvp/project-drawer.png b/docs/reviews/motion-mvp/project-drawer.pngnew file mode 100644index 00000000..2d89f085Binary files /dev/null and b/docs/reviews/motion-mvp/project-drawer.png differdiff --git a/scripts/export-adapters.ts b/scripts/export-adapters.tsindex 42edf799..09caae86 100644--- a/scripts/export-adapters.ts+++ b/scripts/export-adapters.ts@@ -57,8 +57,9 @@ export async function exportAdapters(runtimePath: string, dataPath: string, outp}}for (const directory of ['skills', 'docs']) await readDocuments(directory);+ for (const name of ['web/design-system/remix-icon-LICENSE.txt', 'web/design-system/remix-icon-NOTICE.txt']) documents.push({ name: path.basename(name), data: await readFile(path.join(runtime, name)) });for (const name of ['AGENTS.md', 'CLAUDE.md']) documents.push({ name, data: await readFile(path.join(runtime, name)) });- const filmIcon = (await readFile(path.join(runtime, 'web/design-system/icons.svg'), 'utf8')).match(/<symbol id="icon-film" viewBox="0 0 24 24">([\s\S]*?)<\/symbol>/)?.[1];+ const filmIcon = (await readFile(path.join(runtime, 'web/design-system/icons.svg'), 'utf8')).match(/<symbol id="icon-film" viewBox="0 0 24 24"[^>]*>([\s\S]*?)<\/symbol>/)?.[1];assert(filmIcon, 'Missing shared film icon.');await mkdir(path.dirname(output), { recursive: true });await mkdir(output); // EEXIST deliberately leaves an earlier export untouched.@@ -83,7 +84,7 @@ export async function exportAdapters(runtimePath: string, dataPath: string, outpexamples_zh: ['查看可用的视频模板和制作流程', '修改当前视频工程并导出成片'],examples_en: ['List video templates and the production workflow', 'Edit the current video project and export it'], minWorkbuddyVersion: '4.22.15' });text('mcp.json', { mcpServers: { motion: info.transport } });- text('icon.svg', `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#282828" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">${filmIcon}</svg>\n`);+ text('icon.svg', `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#282828" stroke="none">${filmIcon}</svg>\n`);}else {const manifest = { name: 'motion', version: pkg.version, description: 'OpenDesign Motion with the shared local MCP runtime.', author: { name: 'OpenDesign' }, skills: './skills/', mcpServers: './.mcp.json' };diff --git a/studio/src/components/ui/menuStyle.test.ts b/studio/src/components/ui/menuStyle.test.tsindex 8e762be2..e2221212 100644--- a/studio/src/components/ui/menuStyle.test.ts+++ b/studio/src/components/ui/menuStyle.test.ts@@ -53,7 +53,7 @@ describe("menu style", () => {it("is the panel of every role=menu, wherever its element is written", () => {const unowned = files- .filter(({ text }) => text.includes('role="menu"'))+ .filter(({ text }) => /<[A-Za-z][\w.]*\s[^>]*\brole="menu"/.test(text)).filter(({ name, text }) => !NOT_ROW_MENUS.has(name) && !text.includes("menuClasses.panel")).map(({ name }) => name);expect(unowned).toEqual([]);diff --git a/studio/src/i18n/editorErrors.ts b/studio/src/i18n/editorErrors.tsindex e77dabbc..e2f2dfbc 100644--- a/studio/src/i18n/editorErrors.ts+++ b/studio/src/i18n/editorErrors.ts@@ -1,8 +1,8 @@-import messages from './zh-CN.json';+import { isKnownMessage } from './messages';import type { Translate } from './I18n';export function historyFailureMessage(message: string, t: Translate): string {- if (Object.hasOwn(messages, message)) return t(message);+ if (isKnownMessage(message)) return t(message);if (/conflict|changed|version mismatch/i.test(message)) return t('The project changed. Refresh the editor before trying again.');if (/network|fetch|connect/i.test(message)) return t('Cannot connect to the preview service. Check the connection and retry.');return t('The operation could not be completed. Check the project and retry.');@@ -15,6 +15,6 @@ export function splitFailureMessage(error: unknown): string {if (message.startsWith('Cut conflict:')) return 'The project changed during splitting. Refresh the editor and retry.';if (message.startsWith('Failed to read ') || message.startsWith('Missing content version for ')) return 'Cannot read the latest clip source. Refresh the editor and retry.';if (message === 'Clip is missing a patchable target.') return 'This clip cannot be split. Select a different clip.';- if (Object.hasOwn(messages, message)) return message;+ if (isKnownMessage(message)) return message;return 'Could not split the clip. Check the current clip and retry.';}diff --git a/studio/src/i18n/messages.test.ts b/studio/src/i18n/messages.test.tsindex fd23f6af..0a97ab5c 100644--- a/studio/src/i18n/messages.test.ts+++ b/studio/src/i18n/messages.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from 'vitest';-import { dictionaries, languages, translate } from './messages';+import { dictionaries, languages, translate, mvpMessages, isKnownMessage } from './messages';describe('editor language resources', () => {it('offers the eleven requested languages and a complete vocabulary in each dictionary', () => {@@ -43,3 +43,19 @@ describe('editor language resources', () => {}});});++// The audit adds Chinese/English messages without claiming new translations for+// the other nine locales; their existing shared vocabulary must stay complete.+it('keeps MVP additions separate, interpolated and safe to fall back to English', () => {+ for (const [source, translated] of Object.entries(mvpMessages['zh-CN']!)) {+ expect(dictionaries['zh-CN'][source]).toBeUndefined();+ expect(isKnownMessage(source)).toBe(true);+ expect(typeof translated).toBe('string');+ const values = Object.fromEntries([...source.matchAll(/\{(\w+)\}/g)].map(match => [match[1], 'sample']));+ expect(translate('zh-CN', source, values)).not.toMatch(/\{\w+\}/);+ expect(translate('zh-CN', source, values)).not.toBe(source);+ for (const { locale } of languages.filter(language => language.locale !== 'zh-CN')) {+ expect(translate(locale, source, values)).toBe(translate('en', source, values));+ }+ }+});diff --git a/studio/src/i18n/messages.ts b/studio/src/i18n/messages.tsindex a07f78db..90318918 100644--- a/studio/src/i18n/messages.ts+++ b/studio/src/i18n/messages.ts@@ -46,9 +46,11 @@ const singular: Record<string, string> = {};const pluralRules = Object.fromEntries(languages.map(({ locale }) => [locale, new Intl.PluralRules(locale)]));+export const isKnownMessage = (message: string): boolean => Object.hasOwn(zhCN, message) || Object.hasOwn(mvpZhCN, message);+/** Accept legacy Chinese labels and already-localized built-in labels. */export function sourceMessage(message: string, locale: Locale = 'zh-CN'): string {- if (Object.hasOwn(zhCN, message) || Object.hasOwn(mvpZhCN, message)) return message;+ if (isKnownMessage(message)) return message;return reverse[locale]?.get(message) ?? reverse['zh-CN'].get(message) ?? Object.values(reverse).map(index => index.get(message)).find(Boolean) ?? message;}diff --git a/studio/src/motion/workspace.css b/studio/src/motion/workspace.cssindex ddb33db5..a4bda2f7 100644--- a/studio/src/motion/workspace.css+++ b/studio/src/motion/workspace.css@@ -32,7 +32,7 @@.motion-sidebar-footer small { font-size: 10px; margin-top: 4px; color: var(--motion-dim); }.motion-workspace-menu { display: inline-flex; flex-shrink: 0; }.motion-sidebar-backdrop { position: fixed; inset: 0; background: var(--motion-overlay); z-index: 100; }-.motion-sidebar-drawer { position: fixed; inset: 0 auto 0 0; width: min(260px, calc(100vw - 32px)); z-index: 101; outline: none; box-shadow: 8px 0 24px rgb(0 0 0 / .12); }+.motion-sidebar-drawer { position: fixed; inset: 0 auto 0 0; width: min(260px, calc(100vw - 32px)); z-index: 101; outline: none; box-shadow: var(--motion-shadow-md); }.motion-sidebar-drawer .motion-sidebar { width: 100%; height: 100%; padding-top: 11.5px; }.motion-workspace-notice { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 8px 18px; color: var(--motion-danger); background: var(--motion-danger-soft); font-size: 12px; flex-shrink: 0; }/* Project navigation overlays the editor at every viewport size. */diff --git a/studio/src/styles/hex-baseline.json b/studio/src/styles/hex-baseline.jsonindex a8b06819..8b957a13 100644--- a/studio/src/styles/hex-baseline.json+++ b/studio/src/styles/hex-baseline.json@@ -1,5 +1,5 @@{- "total": 226,+ "total": 221,"files": {"studio/src/captions/components/CaptionOverlay.tsx": 5,"studio/src/captions/components/CaptionTimeline.tsx": 11,@@ -43,7 +43,6 @@"studio/src/player/components/BeatStrip.tsx": 6,"studio/src/player/components/CompositionThumbnail.tsx": 2,"studio/src/player/components/PlayerControls.tsx": 1,- "studio/src/player/components/SpeedMenu.tsx": 2,"studio/src/styles/components.css": 48,"studio/src/webmcp/webmcpTestUtils.ts": 1}diff --git a/tests/adapters.test.ts b/tests/adapters.test.tsindex dfd3a2ab..16d97ee6 100644--- a/tests/adapters.test.ts+++ b/tests/adapters.test.ts@@ -19,6 +19,7 @@ test('local adapters share one runtime, launch outside its cwd and preserve prevfor (const host of exported.hosts) {const scope = JSON.parse(await readFile(path.join(output, host, 'openmotion/scope.json'), 'utf8'));assert.equal(scope.mcpProfile, 'phase1');+ assert.equal(await readFile(path.join(output, host, 'openmotion/remix-icon-LICENSE.txt'), 'utf8'), await readFile(path.join(source, 'web/design-system/remix-icon-LICENSE.txt'), 'utf8'));const { readdir } = await import('node:fs/promises');assert.deepEqual((await readdir(path.join(output, host, 'openmotion/skills'))).sort(), ['motion-director', 'motion-production', 'motion-recreate', 'motion-template-to-video', 'motion-video-to-template']);for (const skill of ['motion-template-to-video', 'motion-video-to-template']) {@@ -99,7 +100,7 @@ test('bundled runtime adapters preserve the Node preload and launch with a minimawait cp(process.execPath, node);await mkdir(path.join(runtime, 'docs'));for (const name of ['AGENTS.md', 'CLAUDE.md']) await writeFile(path.join(runtime, name), '# Fixture');- for (const filename of ['scripts/export-adapters.ts', 'scripts/package.ts', 'scripts/distribution.ts', 'shared/entry.ts', 'shared/integration.ts', 'shared/workflow.ts', 'shared/workflow-entry.js', 'web/design-system/icons.svg']) {+ for (const filename of ['scripts/export-adapters.ts', 'scripts/package.ts', 'scripts/distribution.ts', 'shared/entry.ts', 'shared/integration.ts', 'shared/workflow.ts', 'shared/workflow-entry.js', 'web/design-system/icons.svg', 'web/design-system/remix-icon-LICENSE.txt', 'web/design-system/remix-icon-NOTICE.txt']) {await mkdir(path.dirname(path.join(runtime, filename)), { recursive: true });await cp(path.join(source, filename), path.join(runtime, filename));}@@ -130,7 +131,7 @@ test('failed adapter writes remove only the new output and preserve runtime andawait mkdir(path.join(runtime, 'skills'), { recursive: true }); await mkdir(path.join(runtime, 'docs'));for (const name of ['AGENTS.md', 'CLAUDE.md', 'mcp.ts']) await writeFile(path.join(runtime, name), '');await mkdir(path.join(runtime, 'web/design-system'), { recursive: true });- await cp(path.join(source, 'web/design-system/icons.svg'), path.join(runtime, 'web/design-system/icons.svg'));+ for (const name of ['icons.svg', 'remix-icon-LICENSE.txt', 'remix-icon-NOTICE.txt']) await cp(path.join(source, 'web/design-system', name), path.join(runtime, 'web/design-system', name));await writeFile(path.join(runtime, 'package.json'), JSON.stringify({ version: '0.6.1-' + 'a'.repeat(260) }));await assert.rejects(exportAdapters(runtime, data, output), { code: 'ENAMETOOLONG' });assert.equal(existsSync(output), false);