Files
openmotion/package.json
Tom Huang 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>
2026-11-20 14:38:40 +08:00

109 lines
4.8 KiB
JSON

{
"name": "openmotion",
"version": "0.0.1",
"private": true,
"type": "module",
"engines": {
"node": ">=22.18.0"
},
"scripts": {
"dev": "npm run build:studio && node --env-file=.env.development --experimental-strip-types server.ts",
"studio:dev": "vite --config studio/vite.dev.config.ts",
"mcp": "node --experimental-strip-types mcp.ts",
"start": "node --experimental-strip-types preview.ts",
"test": "node --experimental-strip-types --test tests/*.test.ts",
"check": "node --experimental-strip-types scripts/check.ts",
"package:plugin": "node --experimental-strip-types scripts/package.ts",
"package:phase1": "npm run build:studio && node --experimental-strip-types scripts/package.ts --mcp-profile=phase1",
"package:test": "node scripts/test-package.mjs",
"package:npm": "npm run build:studio && node scripts/package-npm.mjs",
"build:studio": "npm run build:inline && npm run build:template-cards && vite build --config studio/vite.config.ts && node scripts/build-template-guide.mjs",
"build:tracking": "tsc -p tracking/tsconfig.json",
"typecheck:studio": "tsc -p studio/tsconfig.json",
"design:tokens": "node --experimental-strip-types scripts/design-tokens.ts",
"design:check": "node --experimental-strip-types scripts/design-check.ts",
"pretest": "npm run build:studio",
"prepackage:plugin": "npm run build:studio",
"test:studio": "vitest run --config studio/vitest.config.ts",
"verify:export": "node --experimental-strip-types scripts/verify-export.ts",
"catalog:import": "node --experimental-strip-types scripts/import-hyperframes.ts",
"catalog:covers": "node --experimental-strip-types scripts/cache-template-covers.ts",
"catalog:metadata": "node --experimental-strip-types scripts/sync-template-metadata.ts",
"export:adapters": "node --experimental-strip-types scripts/export-adapters.ts",
"storage:check": "node --experimental-strip-types scripts/check-repository-storage.ts",
"templates:check": "node --experimental-strip-types scripts/check-template-library.ts",
"templates:export": "node --experimental-strip-types scripts/template-library.ts export",
"templates:manifest": "node --experimental-strip-types scripts/template-library.ts manifest",
"media:prepare": "node --experimental-strip-types scripts/prepare-pr-media.ts",
"media:pull": "node --experimental-strip-types scripts/repository-media.ts",
"components:dev": "vite --config packages/open-design-ui/vite.config.ts --host 127.0.0.1",
"components:build": "vite build --config packages/open-design-ui/vite.config.ts",
"build:open-design-ui": "node scripts/build-open-design-ui.mjs",
"design:dev": "node packages/design-system/workbench/server.js",
"design:test": "node --test packages/design-system/workbench/*.test.js",
"build:inline": "node scripts/build-inline-ui.mjs",
"typecheck:backend": "tsc -p tsconfig.backend.json",
"typecheck:template-cards": "tsc -p mcp-ui/tsconfig.json",
"build:template-cards": "npm run typecheck:template-cards && node --experimental-strip-types scripts/build-template-cards.mjs",
"design:metrics": "node scripts/ui-metrics.ts"
},
"dependencies": {
"@hyperframes/core": "0.9.7",
"@hyperframes/parsers": "0.9.7",
"@hyperframes/player": "0.9.7",
"@hyperframes/sdk": "0.9.7",
"@hyperframes/shader-transitions": "0.9.7",
"@hyperframes/studio-server": "0.9.7",
"acorn": "8.19.0",
"fontkit": "2.0.4",
"gsap": "3.15.0",
"hyperframes": "0.9.7",
"pptxgenjs": "4.0.1",
"puppeteer-core": "25.16.0"
},
"overrides": {
"undici": "7.30.1",
"@modelcontextprotocol/server": "2.4.0"
},
"devDependencies": {
"@base-ui/react": "1.7.0",
"@codemirror/autocomplete": "6.20.4",
"@codemirror/commands": "6.11.1",
"@codemirror/lang-css": "6.3.1",
"@codemirror/lang-html": "6.4.12",
"@codemirror/lang-javascript": "6.2.5",
"@codemirror/lang-markdown": "6.5.2",
"@codemirror/language": "6.13.1",
"@codemirror/search": "6.7.2",
"@codemirror/state": "6.7.6",
"@codemirror/view": "6.40.0",
"@lezer/highlight": "1.2.5",
"@lezer/javascript": "1.5.6",
"@mcp-b/global": "5.0.1",
"@modelcontextprotocol/ext-apps": "2.0.4",
"@phosphor-icons/react": "2.1.10",
"@powerformer/vela-cli": "0.1.10",
"@tailwindcss/vite": "4.3.3",
"@tanstack/react-virtual": "3.14.25",
"@types/node": "22.19.1",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "4.7.0",
"cn": "0.2.4",
"dockview-react": "8.3.1",
"esbuild": "0.28.2",
"fake-indexeddb": "6.2.5",
"happy-dom": "21.0.4",
"jsdom": "30.1.3",
"mediabunny": "1.45.3",
"postcss": "8.5.32",
"react": "19.2.9",
"react-dom": "19.2.9",
"tailwindcss": "4.3.3",
"typescript": "5.9.3",
"vite": "6.4.5",
"vitest": "4.1.12",
"zustand": "5.0.11"
}
}