@12ui/design 0.2.75 → 0.2.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -116
- package/SKILL.md +33 -28
- package/dist/cli-arguments.d.ts.map +1 -1
- package/dist/cli-arguments.js +21 -7
- package/dist/cli-arguments.js.map +1 -1
- package/dist/cli-capabilities.d.ts +3 -2
- package/dist/cli-capabilities.d.ts.map +1 -1
- package/dist/cli-capabilities.js +2 -1
- package/dist/cli-capabilities.js.map +1 -1
- package/dist/cli-codex-readiness.d.ts +6 -0
- package/dist/cli-codex-readiness.d.ts.map +1 -1
- package/dist/cli-codex-readiness.js +12 -12
- package/dist/cli-codex-readiness.js.map +1 -1
- package/dist/cli-help/design.d.ts +2 -2
- package/dist/cli-help/design.d.ts.map +1 -1
- package/dist/cli-help/design.js +3 -1
- package/dist/cli-help/design.js.map +1 -1
- package/dist/cli-help/index.d.ts +19 -9
- package/dist/cli-help/index.d.ts.map +1 -1
- package/dist/cli-help/scene.d.ts +15 -5
- package/dist/cli-help/scene.d.ts.map +1 -1
- package/dist/cli-help/scene.js +44 -0
- package/dist/cli-help/scene.js.map +1 -1
- package/dist/cli-help/workflow.d.ts +2 -2
- package/dist/cli-help/workflow.d.ts.map +1 -1
- package/dist/cli-help/workflow.js +4 -3
- package/dist/cli-help/workflow.js.map +1 -1
- package/dist/cli-review-command.d.ts.map +1 -1
- package/dist/cli-review-command.js +2 -0
- package/dist/cli-review-command.js.map +1 -1
- package/dist/cli-run.d.ts.map +1 -1
- package/dist/cli-run.js +6 -0
- package/dist/cli-run.js.map +1 -1
- package/dist/cli-scene-command.d.ts.map +1 -1
- package/dist/cli-scene-command.js +39 -6
- package/dist/cli-scene-command.js.map +1 -1
- package/dist/cli-usage.d.ts.map +1 -1
- package/dist/cli-usage.js +8 -6
- package/dist/cli-usage.js.map +1 -1
- package/dist/cli-workspace-draw.d.ts +1 -11
- package/dist/cli-workspace-draw.d.ts.map +1 -1
- package/dist/cli-workspace-draw.js +17 -18
- package/dist/cli-workspace-draw.js.map +1 -1
- package/dist/cli-workspace-runner.d.ts +30 -0
- package/dist/cli-workspace-runner.d.ts.map +1 -0
- package/dist/cli-workspace-runner.js +105 -0
- package/dist/cli-workspace-runner.js.map +1 -0
- package/dist/legacy-skill-catalog.d.ts.map +1 -1
- package/dist/legacy-skill-catalog.js +26 -2
- package/dist/legacy-skill-catalog.js.map +1 -1
- package/dist/mcp-slate-command.d.ts +9 -0
- package/dist/mcp-slate-command.d.ts.map +1 -1
- package/dist/mcp-slate-command.js +19 -5
- package/dist/mcp-slate-command.js.map +1 -1
- package/dist/mcp-slate-image.js +1 -1
- package/dist/mcp-slate-image.js.map +1 -1
- package/dist/mcp-slate-tool-defs.js +1 -1
- package/dist/mcp-slate-tool-defs.js.map +1 -1
- package/dist/mcp-slate-ui-copy.d.ts +403 -33
- package/dist/mcp-slate-ui-copy.d.ts.map +1 -1
- package/dist/mcp-slate-ui-copy.js +247 -57
- package/dist/mcp-slate-ui-copy.js.map +1 -1
- package/dist/mcp-slate-ui-icu.d.ts +47 -0
- package/dist/mcp-slate-ui-icu.d.ts.map +1 -0
- package/dist/mcp-slate-ui-icu.js +229 -0
- package/dist/mcp-slate-ui-icu.js.map +1 -0
- package/dist/mcp-slate-ui-locale-match.d.ts +12 -0
- package/dist/mcp-slate-ui-locale-match.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locale-match.js +34 -0
- package/dist/mcp-slate-ui-locale-match.js.map +1 -0
- package/dist/mcp-slate-ui-locales/de-DE.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/de-DE.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/de-DE.js +217 -0
- package/dist/mcp-slate-ui-locales/de-DE.js.map +1 -0
- package/dist/mcp-slate-ui-locales/es-419.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/es-419.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/es-419.js +217 -0
- package/dist/mcp-slate-ui-locales/es-419.js.map +1 -0
- package/dist/mcp-slate-ui-locales/es-ES.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/es-ES.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/es-ES.js +217 -0
- package/dist/mcp-slate-ui-locales/es-ES.js.map +1 -0
- package/dist/mcp-slate-ui-locales/fr-FR.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/fr-FR.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/fr-FR.js +217 -0
- package/dist/mcp-slate-ui-locales/fr-FR.js.map +1 -0
- package/dist/mcp-slate-ui-locales/hi-IN.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/hi-IN.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/hi-IN.js +217 -0
- package/dist/mcp-slate-ui-locales/hi-IN.js.map +1 -0
- package/dist/mcp-slate-ui-locales/index.d.ts +11 -0
- package/dist/mcp-slate-ui-locales/index.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/index.js +34 -0
- package/dist/mcp-slate-ui-locales/index.js.map +1 -0
- package/dist/mcp-slate-ui-locales/it-IT.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/it-IT.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/it-IT.js +217 -0
- package/dist/mcp-slate-ui-locales/it-IT.js.map +1 -0
- package/dist/mcp-slate-ui-locales/ja-JP.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/ja-JP.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/ja-JP.js +217 -0
- package/dist/mcp-slate-ui-locales/ja-JP.js.map +1 -0
- package/dist/mcp-slate-ui-locales/ko-KR.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/ko-KR.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/ko-KR.js +217 -0
- package/dist/mcp-slate-ui-locales/ko-KR.js.map +1 -0
- package/dist/mcp-slate-ui-locales/pt-BR.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/pt-BR.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/pt-BR.js +217 -0
- package/dist/mcp-slate-ui-locales/pt-BR.js.map +1 -0
- package/dist/mcp-slate-ui-locales/zh-CN.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/zh-CN.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/zh-CN.js +217 -0
- package/dist/mcp-slate-ui-locales/zh-CN.js.map +1 -0
- package/dist/mcp-slate-ui-locales/zh-TW.d.ts +9 -0
- package/dist/mcp-slate-ui-locales/zh-TW.d.ts.map +1 -0
- package/dist/mcp-slate-ui-locales/zh-TW.js +217 -0
- package/dist/mcp-slate-ui-locales/zh-TW.js.map +1 -0
- package/dist/mcp-slate-ui-script-bridge.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-bridge.js +8 -9
- package/dist/mcp-slate-ui-script-bridge.js.map +1 -1
- package/dist/mcp-slate-ui-script-dialog.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-dialog.js +60 -30
- package/dist/mcp-slate-ui-script-dialog.js.map +1 -1
- package/dist/mcp-slate-ui-script-inline.d.ts +9 -6
- package/dist/mcp-slate-ui-script-inline.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-inline.js +91 -46
- package/dist/mcp-slate-ui-script-inline.js.map +1 -1
- package/dist/mcp-slate-ui-script-inspiration-collage.d.ts +20 -0
- package/dist/mcp-slate-ui-script-inspiration-collage.d.ts.map +1 -0
- package/dist/mcp-slate-ui-script-inspiration-collage.js +68 -0
- package/dist/mcp-slate-ui-script-inspiration-collage.js.map +1 -0
- package/dist/mcp-slate-ui-script-inspiration-grid.d.ts +26 -0
- package/dist/mcp-slate-ui-script-inspiration-grid.d.ts.map +1 -0
- package/dist/mcp-slate-ui-script-inspiration-grid.js +246 -0
- package/dist/mcp-slate-ui-script-inspiration-grid.js.map +1 -0
- package/dist/mcp-slate-ui-script-inspiration.d.ts +10 -9
- package/dist/mcp-slate-ui-script-inspiration.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-inspiration.js +161 -120
- package/dist/mcp-slate-ui-script-inspiration.js.map +1 -1
- package/dist/mcp-slate-ui-script-l10n.d.ts +29 -0
- package/dist/mcp-slate-ui-script-l10n.d.ts.map +1 -0
- package/dist/mcp-slate-ui-script-l10n.js +135 -0
- package/dist/mcp-slate-ui-script-l10n.js.map +1 -0
- package/dist/mcp-slate-ui-script-more.d.ts +3 -2
- package/dist/mcp-slate-ui-script-more.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-more.js +19 -18
- package/dist/mcp-slate-ui-script-more.js.map +1 -1
- package/dist/mcp-slate-ui-script-pause.d.ts +33 -0
- package/dist/mcp-slate-ui-script-pause.d.ts.map +1 -0
- package/dist/mcp-slate-ui-script-pause.js +217 -0
- package/dist/mcp-slate-ui-script-pause.js.map +1 -0
- package/dist/mcp-slate-ui-script-remote.d.ts +2 -0
- package/dist/mcp-slate-ui-script-remote.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-remote.js +39 -6
- package/dist/mcp-slate-ui-script-remote.js.map +1 -1
- package/dist/mcp-slate-ui-script-scribble.js +1 -1
- package/dist/mcp-slate-ui-script-select.js +6 -6
- package/dist/mcp-slate-ui-script-stage.d.ts +3 -2
- package/dist/mcp-slate-ui-script-stage.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-stage.js +31 -19
- package/dist/mcp-slate-ui-script-stage.js.map +1 -1
- package/dist/mcp-slate-ui-script-state.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-state.js +77 -57
- package/dist/mcp-slate-ui-script-state.js.map +1 -1
- package/dist/mcp-slate-ui-script.d.ts +2 -2
- package/dist/mcp-slate-ui-script.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script.js +21 -7
- package/dist/mcp-slate-ui-script.js.map +1 -1
- package/dist/mcp-slate-ui-styles-dialog.d.ts +6 -7
- package/dist/mcp-slate-ui-styles-dialog.d.ts.map +1 -1
- package/dist/mcp-slate-ui-styles-dialog.js +13 -29
- package/dist/mcp-slate-ui-styles-dialog.js.map +1 -1
- package/dist/mcp-slate-ui-styles-inspiration.d.ts +18 -0
- package/dist/mcp-slate-ui-styles-inspiration.d.ts.map +1 -0
- package/dist/mcp-slate-ui-styles-inspiration.js +43 -0
- package/dist/mcp-slate-ui-styles-inspiration.js.map +1 -0
- package/dist/mcp-slate-ui-styles-pause.d.ts +10 -0
- package/dist/mcp-slate-ui-styles-pause.d.ts.map +1 -0
- package/dist/mcp-slate-ui-styles-pause.js +25 -0
- package/dist/mcp-slate-ui-styles-pause.js.map +1 -0
- package/dist/mcp-slate-ui-styles-stage.d.ts +10 -6
- package/dist/mcp-slate-ui-styles-stage.d.ts.map +1 -1
- package/dist/mcp-slate-ui-styles-stage.js +24 -16
- package/dist/mcp-slate-ui-styles-stage.js.map +1 -1
- package/dist/mcp-slate-ui-styles.d.ts +12 -5
- package/dist/mcp-slate-ui-styles.d.ts.map +1 -1
- package/dist/mcp-slate-ui-styles.js +38 -21
- package/dist/mcp-slate-ui-styles.js.map +1 -1
- package/dist/mcp-slate-ui.d.ts +11 -3
- package/dist/mcp-slate-ui.d.ts.map +1 -1
- package/dist/mcp-slate-ui.js +24 -16
- package/dist/mcp-slate-ui.js.map +1 -1
- package/dist/mcp-workflow-tools.js +3 -3
- package/dist/mcp-workflow-tools.js.map +1 -1
- package/dist/mosaic-bands.d.ts +44 -0
- package/dist/mosaic-bands.d.ts.map +1 -0
- package/dist/mosaic-bands.js +153 -0
- package/dist/mosaic-bands.js.map +1 -0
- package/dist/review-discovery.d.ts.map +1 -1
- package/dist/review-discovery.js +36 -54
- package/dist/review-discovery.js.map +1 -1
- package/dist/review-page.d.ts.map +1 -1
- package/dist/review-page.js +2 -1
- package/dist/review-page.js.map +1 -1
- package/dist/review-run-roots.d.ts +40 -0
- package/dist/review-run-roots.d.ts.map +1 -0
- package/dist/review-run-roots.js +94 -0
- package/dist/review-run-roots.js.map +1 -0
- package/dist/review-server.d.ts +2 -0
- package/dist/review-server.d.ts.map +1 -1
- package/dist/review-server.js +2 -0
- package/dist/review-server.js.map +1 -1
- package/dist/review-types.d.ts +10 -0
- package/dist/review-types.d.ts.map +1 -1
- package/dist/scene/camera-diagnostics.d.ts +61 -0
- package/dist/scene/camera-diagnostics.d.ts.map +1 -0
- package/dist/scene/camera-diagnostics.js +166 -0
- package/dist/scene/camera-diagnostics.js.map +1 -0
- package/dist/scene/camera-solve.d.ts +2 -0
- package/dist/scene/camera-solve.d.ts.map +1 -1
- package/dist/scene/camera-solve.js +59 -42
- package/dist/scene/camera-solve.js.map +1 -1
- package/dist/scene/capture.d.ts +24 -0
- package/dist/scene/capture.d.ts.map +1 -1
- package/dist/scene/capture.js +53 -2
- package/dist/scene/capture.js.map +1 -1
- package/dist/scene/convert-run.d.ts +30 -0
- package/dist/scene/convert-run.d.ts.map +1 -0
- package/dist/scene/convert-run.js +135 -0
- package/dist/scene/convert-run.js.map +1 -0
- package/dist/scene/media-query.d.ts +21 -0
- package/dist/scene/media-query.d.ts.map +1 -0
- package/dist/scene/media-query.js +208 -0
- package/dist/scene/media-query.js.map +1 -0
- package/dist/scene/page-css.d.ts +38 -0
- package/dist/scene/page-css.d.ts.map +1 -0
- package/dist/scene/page-css.js +210 -0
- package/dist/scene/page-css.js.map +1 -0
- package/dist/scene/page-images.d.ts +33 -0
- package/dist/scene/page-images.d.ts.map +1 -0
- package/dist/scene/page-images.js +53 -0
- package/dist/scene/page-images.js.map +1 -0
- package/dist/scene/page-merge.d.ts +41 -0
- package/dist/scene/page-merge.d.ts.map +1 -0
- package/dist/scene/page-merge.js +197 -0
- package/dist/scene/page-merge.js.map +1 -0
- package/dist/scene/responsive-bands.d.ts +19 -0
- package/dist/scene/responsive-bands.d.ts.map +1 -0
- package/dist/scene/responsive-bands.js +25 -0
- package/dist/scene/responsive-bands.js.map +1 -0
- package/dist/scene/scene-index.d.ts +10 -0
- package/dist/scene/scene-index.d.ts.map +1 -0
- package/dist/scene/scene-index.js +43 -0
- package/dist/scene/scene-index.js.map +1 -0
- package/dist/scene/scene-merge.d.ts +29 -0
- package/dist/scene/scene-merge.d.ts.map +1 -0
- package/dist/scene/scene-merge.js +130 -0
- package/dist/scene/scene-merge.js.map +1 -0
- package/dist/scene/scene-verbs.d.ts +1 -1
- package/dist/scene/scene-verbs.d.ts.map +1 -1
- package/dist/scene/scene-verbs.js +1 -1
- package/dist/scene/scene-verbs.js.map +1 -1
- package/dist/scene/serve-detach.d.ts +23 -0
- package/dist/scene/serve-detach.d.ts.map +1 -0
- package/dist/scene/serve-detach.js +92 -0
- package/dist/scene/serve-detach.js.map +1 -0
- package/dist/scene/static-server.d.ts +2 -0
- package/dist/scene/static-server.d.ts.map +1 -1
- package/dist/scene/static-server.js +3 -0
- package/dist/scene/static-server.js.map +1 -1
- package/dist/scene/symmetric-eigen.d.ts +12 -0
- package/dist/scene/symmetric-eigen.d.ts.map +1 -0
- package/dist/scene/symmetric-eigen.js +43 -0
- package/dist/scene/symmetric-eigen.js.map +1 -0
- package/dist/slate-actions.d.ts +3 -3
- package/dist/slate-actions.d.ts.map +1 -1
- package/dist/slate-actions.js +9 -8
- package/dist/slate-actions.js.map +1 -1
- package/dist/slate-browser-host-script.d.ts +4 -0
- package/dist/slate-browser-host-script.d.ts.map +1 -1
- package/dist/slate-browser-host-script.js +25 -6
- package/dist/slate-browser-host-script.js.map +1 -1
- package/dist/slate-browser-host.d.ts +2 -1
- package/dist/slate-browser-host.d.ts.map +1 -1
- package/dist/slate-browser-host.js +18 -5
- package/dist/slate-browser-host.js.map +1 -1
- package/dist/slate-commit.js +7 -7
- package/dist/slate-commit.js.map +1 -1
- package/dist/slate-corpus.d.ts.map +1 -1
- package/dist/slate-corpus.js +3 -2
- package/dist/slate-corpus.js.map +1 -1
- package/dist/slate-edit-runner.d.ts.map +1 -1
- package/dist/slate-edit-runner.js +5 -4
- package/dist/slate-edit-runner.js.map +1 -1
- package/dist/slate-editability.d.ts +2 -0
- package/dist/slate-editability.d.ts.map +1 -1
- package/dist/slate-editability.js +1 -1
- package/dist/slate-editability.js.map +1 -1
- package/dist/slate-errors.d.ts +7 -1
- package/dist/slate-errors.d.ts.map +1 -1
- package/dist/slate-errors.js +3 -2
- package/dist/slate-errors.js.map +1 -1
- package/dist/slate-handoff-options.d.ts +2 -1
- package/dist/slate-handoff-options.d.ts.map +1 -1
- package/dist/slate-handoff-options.js +2 -2
- package/dist/slate-handoff-options.js.map +1 -1
- package/dist/slate-handoff.js +1 -1
- package/dist/slate-handoff.js.map +1 -1
- package/dist/slate-image-executor.d.ts +18 -1
- package/dist/slate-image-executor.d.ts.map +1 -1
- package/dist/slate-image-executor.js +1 -0
- package/dist/slate-image-executor.js.map +1 -1
- package/dist/slate-inspiration.js +2 -2
- package/dist/slate-inspiration.js.map +1 -1
- package/dist/slate-local-image.d.ts.map +1 -1
- package/dist/slate-local-image.js +4 -1
- package/dist/slate-local-image.js.map +1 -1
- package/dist/slate-lock.js +1 -1
- package/dist/slate-lock.js.map +1 -1
- package/dist/slate-resume.js +6 -6
- package/dist/slate-resume.js.map +1 -1
- package/dist/slate-round-params.d.ts +3 -0
- package/dist/slate-round-params.d.ts.map +1 -1
- package/dist/slate-round-params.js +5 -0
- package/dist/slate-round-params.js.map +1 -1
- package/dist/slate-round-queries.d.ts +18 -0
- package/dist/slate-round-queries.d.ts.map +1 -0
- package/dist/slate-round-queries.js +29 -0
- package/dist/slate-round-queries.js.map +1 -0
- package/dist/slate-round-runner.d.ts.map +1 -1
- package/dist/slate-round-runner.js +12 -9
- package/dist/slate-round-runner.js.map +1 -1
- package/dist/slate-round-search.js +5 -5
- package/dist/slate-round-search.js.map +1 -1
- package/dist/slate-run-action.d.ts.map +1 -1
- package/dist/slate-run-action.js +2 -1
- package/dist/slate-run-action.js.map +1 -1
- package/dist/slate-runner-context.d.ts +3 -1
- package/dist/slate-runner-context.d.ts.map +1 -1
- package/dist/slate-runner-context.js +4 -3
- package/dist/slate-runner-context.js.map +1 -1
- package/dist/slate-runner-failure.d.ts +7 -1
- package/dist/slate-runner-failure.d.ts.map +1 -1
- package/dist/slate-runner-failure.js +6 -5
- package/dist/slate-runner-failure.js.map +1 -1
- package/dist/slate-runtime.d.ts.map +1 -1
- package/dist/slate-runtime.js +1 -0
- package/dist/slate-runtime.js.map +1 -1
- package/dist/slate-versions.js +3 -3
- package/dist/slate-versions.js.map +1 -1
- package/dist/slate-view-contract.d.ts +62 -1
- package/dist/slate-view-contract.d.ts.map +1 -1
- package/dist/slate-view-contract.js +30 -0
- package/dist/slate-view-contract.js.map +1 -1
- package/dist/slate-view.d.ts.map +1 -1
- package/dist/slate-view.js +19 -3
- package/dist/slate-view.js.map +1 -1
- package/dist/slate-workspace-parse.d.ts.map +1 -1
- package/dist/slate-workspace-parse.js +22 -0
- package/dist/slate-workspace-parse.js.map +1 -1
- package/dist/slate-workspace-types.d.ts +2 -0
- package/dist/slate-workspace-types.d.ts.map +1 -1
- package/dist/workflow/adapter-12ui.d.ts.map +1 -1
- package/dist/workflow/adapter-12ui.js +3 -5
- package/dist/workflow/adapter-12ui.js.map +1 -1
- package/dist/workflow/providers.d.ts.map +1 -1
- package/dist/workflow/providers.js +5 -2
- package/dist/workflow/providers.js.map +1 -1
- package/dist/workflow/recipes.d.ts +1 -2
- package/dist/workflow/recipes.d.ts.map +1 -1
- package/dist/workflow/recipes.js +6 -18
- package/dist/workflow/recipes.js.map +1 -1
- package/dist/workflow/routing.d.ts.map +1 -1
- package/dist/workflow/routing.js +3 -1
- package/dist/workflow/routing.js.map +1 -1
- package/dist/workflow/types.d.ts +7 -0
- package/dist/workflow/types.d.ts.map +1 -1
- package/dist/workflow/types.js +7 -0
- package/dist/workflow/types.js.map +1 -1
- package/dist/workspace-draw-client.d.ts +42 -1
- package/dist/workspace-draw-client.d.ts.map +1 -1
- package/dist/workspace-draw-client.js +56 -7
- package/dist/workspace-draw-client.js.map +1 -1
- package/dist/workspace-draw-codex.d.ts +9 -4
- package/dist/workspace-draw-codex.d.ts.map +1 -1
- package/dist/workspace-draw-codex.js +17 -3
- package/dist/workspace-draw-codex.js.map +1 -1
- package/dist/workspace-draw-messages.d.ts +24 -0
- package/dist/workspace-draw-messages.d.ts.map +1 -1
- package/dist/workspace-draw-messages.js +26 -2
- package/dist/workspace-draw-messages.js.map +1 -1
- package/dist/workspace-draw-run.d.ts +19 -1
- package/dist/workspace-draw-run.d.ts.map +1 -1
- package/dist/workspace-draw-run.js +76 -3
- package/dist/workspace-draw-run.js.map +1 -1
- package/dist/workspace-draw-store.d.ts +2 -0
- package/dist/workspace-draw-store.d.ts.map +1 -1
- package/dist/workspace-draw-store.js +3 -1
- package/dist/workspace-draw-store.js.map +1 -1
- package/dist/workspace-draw-types.d.ts +1 -0
- package/dist/workspace-draw-types.d.ts.map +1 -1
- package/dist/workspace-draw-types.js +1 -0
- package/dist/workspace-draw-types.js.map +1 -1
- package/dist/workspace-origin.d.ts +15 -0
- package/dist/workspace-origin.d.ts.map +1 -0
- package/dist/workspace-origin.js +36 -0
- package/dist/workspace-origin.js.map +1 -0
- package/dist/workspace-runner-children.d.ts +28 -0
- package/dist/workspace-runner-children.d.ts.map +1 -0
- package/dist/workspace-runner-children.js +112 -0
- package/dist/workspace-runner-children.js.map +1 -0
- package/dist/workspace-runner-client.d.ts +41 -0
- package/dist/workspace-runner-client.d.ts.map +1 -0
- package/dist/workspace-runner-client.js +63 -0
- package/dist/workspace-runner-client.js.map +1 -0
- package/dist/workspace-runner-main.d.ts +56 -0
- package/dist/workspace-runner-main.d.ts.map +1 -0
- package/dist/workspace-runner-main.js +350 -0
- package/dist/workspace-runner-main.js.map +1 -0
- package/dist/workspace-runner-policy.d.ts +40 -0
- package/dist/workspace-runner-policy.d.ts.map +1 -0
- package/dist/workspace-runner-policy.js +47 -0
- package/dist/workspace-runner-policy.js.map +1 -0
- package/dist/workspace-runner-spawn.d.ts +42 -0
- package/dist/workspace-runner-spawn.d.ts.map +1 -0
- package/dist/workspace-runner-spawn.js +60 -0
- package/dist/workspace-runner-spawn.js.map +1 -0
- package/dist/workspace-runner-stop.d.ts +25 -0
- package/dist/workspace-runner-stop.d.ts.map +1 -0
- package/dist/workspace-runner-stop.js +44 -0
- package/dist/workspace-runner-stop.js.map +1 -0
- package/dist/workspace-runner-store.d.ts +26 -0
- package/dist/workspace-runner-store.d.ts.map +1 -0
- package/dist/workspace-runner-store.js +114 -0
- package/dist/workspace-runner-store.js.map +1 -0
- package/open-design.json +2 -2
- package/package.json +2 -2
- package/runtime/codex-conversion/src/images/native-invoke.mjs +24 -5
- package/runtime/codex-conversion/src/images/native.mjs +3 -2
- package/skills/12ui-design/SKILL.md +79 -19
- package/skills/12ui-design/agents/openai.yaml +2 -0
- package/skills/12ui-design/improve.md +1 -5
- package/skills/12ui-design/inspire.md +5 -8
- package/skills/12ui-design/outputs.md +2 -23
- package/skills/12ui-design/scene.md +27 -156
- package/skills/12ui-design/session.md +0 -161
|
@@ -1,172 +1,43 @@
|
|
|
1
1
|
# Rebuild a design image as a live 3D scene
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
illustrated scene) as a live Three.js scene with real geometry, materials, light and a few interactions, not a
|
|
5
|
-
projection of the picture. Solve the camera from landmarks, model the objects, then check the result from the source
|
|
6
|
-
camera and from 15 degrees either side. Everything runs on this machine through `12ui scene`: no account, no model
|
|
7
|
-
call, no network. `12ui scene --help` lists the tools and `12ui scene <verb> --help` explains each one.
|
|
3
|
+
Real geometry and light, the page as real HTML over it, 2-3 clicks and drag orbit. `12ui convert` builds the page layer in the background while you model the scene; then merge the two, render and fix. `12ui scene <verb> --help` explains each verb.
|
|
8
4
|
|
|
9
|
-
|
|
5
|
+
- **Model the objects.** The source goes on geometry only as a flat printed surface (a screen, a label, a poster).
|
|
6
|
+
- **Page text stays the converted HTML.** Do not rebuild its text, buttons, logo or fonts yourself.
|
|
7
|
+
- **Hold at +-15 degrees.** No object turns into a card, no floor smears, no edge opens.
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
real lights and shadows. If it is solid in the picture it is solid in the scene.
|
|
13
|
-
- **Use the source image only as a reference** for colour, layout and mood, and as a texture on **flat printed things**
|
|
14
|
-
(a screen, a label, a poster, a sleeve print). Never paint the whole picture onto geometry, and never bake shading
|
|
15
|
-
or a reflection into a texture that should be lit.
|
|
16
|
-
- **It must hold at +-15 degrees and beyond.** You are trading some landing-view exactness (proportions, exact colour,
|
|
17
|
-
a display font) for a scene that is real from every angle. That is the point. Say so in your report.
|
|
18
|
-
- **Everything is modelled procedurally.** There is no image-to-mesh step: a box, lathe, extrusion or instanced
|
|
19
|
-
field covers the objects a design image shows.
|
|
20
|
-
- Budget 12 to 20 render passes. Stop when passes stop improving the worst mismatch.
|
|
9
|
+
**1. Start.** Run this first, in the folder with `source.png`. Convert's `auto` engine uses Codex when it is ready and the 12ui API otherwise. `convert-run` must be a new folder: a retry uses a new name. `serve --detach` prints a pid: stop that server only with `kill <pid>`.
|
|
21
10
|
|
|
22
|
-
|
|
11
|
+
nohup 12ui convert source.png --output html --engine auto --out-dir convert-run > convert.log 2>&1 < /dev/null &
|
|
12
|
+
12ui scene init .
|
|
13
|
+
12ui scene serve . --port <port> --detach
|
|
23
14
|
|
|
24
|
-
|
|
15
|
+
**2. Camera: solve once.** Pick 6-8 landmarks, corners of clearly rectangular objects read to the pixel, at least one off the main plane. Write `spec.json` (format in `12ui scene solve --help`), run `12ui scene solve spec.json --out cam.json`, paste its `camera.js` line into `camera.js` and set `PIVOT` to the subject centre. rms 1-4 px is good; fix one misread landmark or pin fov at most once, then accept it. If the output starts with `degenerate`, do what its first warning says. Place objects by ray or rect, not by eye: `12ui scene ray cam.json --plane-y 0 u,v` lands an object's base on the ground; `12ui scene rect cam.json --corners "TLu,TLv;TRu,TRv;BRu,BRv;BLu,BLv" --plane-y 0` poses a flat rectangle.
|
|
25
16
|
|
|
26
|
-
|
|
27
|
-
12ui scene serve <scene-dir> --port <port>
|
|
28
|
-
|
|
29
|
-
`init` writes the starter (`index.html`, `camera.js`, `scene.js`, `lib.js`, `gobo.js`, `main.js`) and three.js r186 in
|
|
30
|
-
`vendor/` (no build step, an importmap), and refuses to overwrite anything already there. `serve` binds 127.0.0.1 and
|
|
31
|
-
prints its PID; stop it by that PID when done, never by a name pattern.
|
|
32
|
-
|
|
33
|
-
The starter already gives you the renderer, tone mapping, the solved camera, a contain-fit frame, orbit about a pivot,
|
|
34
|
-
click-to-toggle actions, and the capture contract (`window.__ready`, `window.__scene.{actions,setOrbit,setAction,reset,render}`).
|
|
35
|
-
`buildScene(scene, renderer, camera)` gets the renderer (PMREM env maps) and camera (gobos, overlays).
|
|
36
|
-
You write `scene.js` (split into modules by object once it grows: `box.js`, `floor.js`, `textures.js`, `actions.js`).
|
|
37
|
-
Page text and buttons are real DOM inside `#stage`, positioned in source pixels.
|
|
38
|
-
|
|
39
|
-
## 1. Camera first
|
|
40
|
-
|
|
41
|
-
Everything else is placed through the camera, so solve it before modelling anything.
|
|
42
|
-
|
|
43
|
-
1. Read the source at full size. Pick **6 to 8 landmarks**: corners of the most clearly rectangular objects (a box, a
|
|
44
|
-
screen, a table edge, a sleeve, a book), read to the pixel. Include at least one landmark off the main plane, or
|
|
45
|
-
the field of view is ambiguous. Read them yourself from the image; zoom crops help. If a landmark residual is
|
|
46
|
-
large later, you misread it.
|
|
47
|
-
2. Write `spec.json` and solve (`12ui scene solve --help` has the format). World coordinates are yours: choose a
|
|
48
|
-
unit (an object height of 1, or a floor at y = 0), let unknown dimensions be `free`, pin a scale with `"fix"`.
|
|
49
|
-
|
|
50
|
-
12ui scene solve spec.json --out cam.json
|
|
51
|
-
|
|
52
|
-
rms should be 1 to 4 px. Roll is pinned to 0 unless you set `"solve_roll": true`. Read the `warnings` and
|
|
53
|
-
`fovSensitivity`: flat-lay and table shots are near top-down and coplanar, where fov is not determined by
|
|
54
|
-
landmarks. Pin it (`"fix": {"fov": 35}`; 20-30 product shot, 35-50 normal, 60+ wide) or add an off-plane landmark
|
|
55
|
-
such as an object's top edge above its base. A non-square object of unknown depth: fix its width, `free` its depth.
|
|
56
|
-
3. Paste the printed `camera.js` line into the starter's `camera.js` (degrees, same keys as `cam.json`, plus the `clip`
|
|
57
|
-
near/far, which must stay tight: far/near under about 100). Set `PIVOT` to the subject centre.
|
|
58
|
-
4. **Place objects by ray, not by eye.** Cast the source pixel of an object's base onto the ground plane, or solve a
|
|
59
|
-
rectangle directly, then check with `project`:
|
|
60
|
-
|
|
61
|
-
12ui scene ray cam.json --plane-y 0 836,691 1237,749
|
|
62
|
-
12ui scene rect cam.json --corners "TLu,TLv;TRu,TRv;BRu,BRv;BLu,BLv" --plane-y 0
|
|
63
|
-
12ui scene rect cam.json --corners "TLu,TLv;TRu,TRv;BRu,BRv;BLu,BLv" --width 0.6 --height 0.4
|
|
64
|
-
12ui scene project cam.json 0.1,0,0.3
|
|
65
|
-
|
|
66
|
-
`--plane-y` is a rectangle flat on a surface; `--width` and `--height` are a tilted one of known size. Render once
|
|
67
|
-
with plain grey boxes at the solved positions. If the silhouettes overlay the source, the rest is modelling and
|
|
68
|
-
light. If not, fix the camera now: nothing downstream repairs it. A rectangle seen from one view is ambiguous in
|
|
69
|
-
lean versus depth (give `--width` alone to solve the other side); use what you know (it rests on the floor, it
|
|
70
|
-
leans on the wall) and force draw order when something ends up inside another object.
|
|
71
|
-
|
|
72
|
-
## 2. Model and material, per object type
|
|
17
|
+
**3. Model, while convert runs.** Leave the page text to convert. Build each object in `scene.js` as the table says. Thin parts get real thickness. Colours: `12ui scene colors source.png --box x0,y0,x1,y1`. Light like the source: one key placed by the shadows, a low fill, `contactShadow` under things; keep textures light. Add 2-3 click actions on separate objects (`apply(t)`, as in the starter `scene.js`); drag orbit is built in.
|
|
73
18
|
|
|
74
19
|
| Object | Build |
|
|
75
20
|
|---|---|
|
|
76
|
-
| Box, carton, crate, wall, table | `BoxGeometry` with real wall thickness, or five walls plus hinged flaps
|
|
77
|
-
| Book, card,
|
|
78
|
-
| Cup, jar, bottle, vinyl,
|
|
21
|
+
| Box, carton, crate, wall, table | `BoxGeometry` with real wall thickness, or five walls plus hinged flaps; bevel edges. |
|
|
22
|
+
| Book, card, phone, laptop, sleeve | `slabGeometry(w,h,t,r)` from `lib.js`; a page block and boards for a book. |
|
|
23
|
+
| Cup, jar, bottle, vinyl, lamp | `LatheGeometry` from a profile read off the silhouette. |
|
|
79
24
|
| Logos, rings, outlines, ribbons | `ExtrudeGeometry` of a `Shape`, or a canvas texture if it is printed flat. |
|
|
80
|
-
| Rows of small things (keys, grass, bricks
|
|
81
|
-
| Terrain, sand, cloth | Displaced plane plus a grain
|
|
82
|
-
| Flat printed surface | Canvas texture, or the source region
|
|
83
|
-
|
|
84
|
-
Materials: `MeshStandardMaterial` or `MeshPhysicalMaterial` (clearcoat for lacquer, glass, varnish; roughness map for
|
|
85
|
-
scuffs). Make surface textures procedural on a canvas (`canvasTex`, `grain` in `lib.js`): fibres and speckle for kraft
|
|
86
|
-
or paper, weave for cloth, streaks for brushed metal, value noise for concrete. **Sample the source for colour** before
|
|
87
|
-
you tune: `12ui scene colors source.png --box x0,y0,x1,y1` gives the hex to use; comparing regions against a render
|
|
88
|
-
afterwards gives brightness ratios to correct light, not paint.
|
|
89
|
-
|
|
90
|
-
Give thin parts real thickness (a sleeve, card or book is 1 to 2 percent of its width, not zero), and keep it consistent
|
|
91
|
-
with the source's shadow length: a long crisp shadow from a thin object means a low light, not a thicker object.
|
|
92
|
-
Glossy discs, lacquer and glass want an environment map, not more lights: `studioEnv(renderer)` from `lib.js`,
|
|
93
|
-
assigned to those materials only.
|
|
94
|
-
|
|
95
|
-
Light like the source: one key (spot or directional) placed by where the shadows fall, a low hemisphere or ambient
|
|
96
|
-
fill, a warm or cool bounce on the side faces if they read lit. Add `contactShadow` under everything that sits on a
|
|
97
|
-
surface. For a glossy floor use `reflections()` from `lib.js` (mirrored, jittered copies with fade) and a sheen strip;
|
|
98
|
-
planar reflection is often the biggest single win. Window light and leaf shadows: a `SpotLight.map` gobo drawn in
|
|
99
|
-
source-image pixels and resampled through the solved camera, so it lands where drawn and stays real light: the
|
|
100
|
-
starter's `gobo.js` (its header has the recipe and the orientation, which is verified; do not flip anything by hand).
|
|
101
|
-
Volumetric beams: an additive open cone. Use `ACESFilmicToneMapping`, `SRGBColorSpace`, and shadow bias about -0.0004.
|
|
102
|
-
Do not use `PCFSoftShadowMap` (removed in r186).
|
|
103
|
-
|
|
104
|
-
## 3. Layout and page text
|
|
105
|
-
|
|
106
|
-
Real DOM for real page text: headline, nav, buttons, body copy, callout labels, in `#stage` at source pixel
|
|
107
|
-
coordinates. Pick the display font by rendering candidate faces at the measured cap height in a strip next to a source
|
|
108
|
-
crop and choosing the closest glyph shapes, then fit the measured line width with a `scaleX` on a span (`data-fit`).
|
|
109
|
-
|
|
110
|
-
Fonts are local only. Copy a `.ttf`, `.otf` or `.woff2` into the scene folder (from the user's project or an installed
|
|
111
|
-
system font) and load it with `@font-face { src: url(./file.woff2) }`, or use a face that is already installed. Never
|
|
112
|
-
link a hosted font stylesheet: capture blocks it, and its `remote requests blocked` and `fonts:` lines show a missing
|
|
113
|
-
face. Leader lines are SVG whose end dots track 3D anchors (`Object3D.getWorldPosition(v).project(camera)`), so they
|
|
114
|
-
follow the orbit. Never render page text into the 3D scene.
|
|
115
|
-
|
|
116
|
-
## 4. Screens and app UI
|
|
117
|
-
|
|
118
|
-
- **Flat and static** (default): flatten the screen quad to a texture, then map it on the screen face of the device
|
|
119
|
-
slab. Remove painted glare and shadows in the crop, cover any bezel bleed, and light the screen with an emissive map
|
|
120
|
-
so it reads as lit.
|
|
121
|
-
|
|
122
|
-
12ui scene rectify source.png --corners "TLu,TLv;TRu,TRv;BRu,BRv;BLu,BLv" --size 1200x800 --out screen.png
|
|
123
|
-
|
|
124
|
-
- **Live and editable screens**, only if the user asks for one. Optional, needs network: `12ui convert <crop.png> --output html`.
|
|
125
|
-
Put the result in a `CSS3DRenderer` layer (`vendor/addons/renderers/CSS3DRenderer.js`) with the same camera, or as
|
|
126
|
-
an iframe texture; keep the rectified crop as the offline default in the report.
|
|
127
|
-
- A wall of screens, a dashboard, cards on a wall: same recipe per screen, one rectified crop each.
|
|
128
|
-
|
|
129
|
-
## 5. The self-review loop (this is the work)
|
|
130
|
-
|
|
131
|
-
After every pass, render and compare:
|
|
132
|
-
|
|
133
|
-
12ui scene capture http://127.0.0.1:<port>/index.html --out-dir shots/i01 --size 1536x1024
|
|
134
|
-
12ui scene sheet source.png shots/i01/landing.png shots/i01/az-15.png shots/i01/az+15.png --out shots/i01/sheet.png
|
|
135
|
-
12ui scene blend source.png shots/i01/landing.png --out shots/i01/blend.png
|
|
136
|
-
12ui scene colors source.png shots/i01/landing.png --exclude "x0,y0,x1,y1;x0,y0,x1,y1"
|
|
137
|
-
|
|
138
|
-
`capture` writes `landing`, `az-15/-10/+10/+15` and `act-<name>` (each action at t = 1), then prints
|
|
139
|
-
`remote requests blocked: N`, `fonts: N loaded, M failed` and any console errors. A blocked count above 0 is a defect:
|
|
140
|
-
the scene reached for something off this machine; make it local. If capture reports that Chromium is missing, run the
|
|
141
|
-
install command it prints once, then retry. Custom views: `half=0:0:lid=0.5` (name=azimuth:elevation:action=t,...).
|
|
142
|
-
Debug an object with `--hide vinyl` (name substring; name your groups), `--eval "js"`, `--size 900x600` for fast passes.
|
|
143
|
-
|
|
144
|
-
`colors` lists the worst cells of a grid; `--exclude` the boxes covered by DOM text (or `--exclude-dom boxes.json`),
|
|
145
|
-
or the text cells read as error. `--region "name:x0,y0,x1,y1;name:x0,y0,x1,y1"` compares named regions instead.
|
|
146
|
-
|
|
147
|
-
Open the sheet and the blend (source, render, 50 percent overlay, difference) and look. Fix the **single largest
|
|
148
|
-
mismatch** in this order: camera and silhouettes, object proportions, light direction and value, colour, then texture
|
|
149
|
-
detail. Log one line per pass (what looked wrong, what you changed). Look at `az-15` and `az+15` every time: if an
|
|
150
|
-
object turns into a card, a floor smears, or an edge opens, that is a real defect the landing view hides. Stop when
|
|
151
|
-
the biggest gap left is texture realism. Headless software GL is slow (a few fps); do not chase framerate, but keep
|
|
152
|
-
triangle counts sane (under about 500k) and do not run 9-tap reflections on everything.
|
|
25
|
+
| Rows of small things (keys, grass, bricks) | `InstancedMesh`, jittered per instance in scale, rotation, colour. |
|
|
26
|
+
| Terrain, sand, cloth | Displaced plane with gentle, low-frequency relief plus a grain bump map; never a photo. |
|
|
27
|
+
| Flat printed surface | Canvas texture, or the source region flattened with `12ui scene rectify`. |
|
|
153
28
|
|
|
154
|
-
|
|
29
|
+
**4. Merge, when convert is done.** Run `12ui scene merge convert-run .`. It reads the run the way its engine wrote it, puts the page's styles in `<head>` and its body in `#stage` at the source frame, copies the files the page uses, and lists its images, with the source box `x0,y0,x1,y1` where the run declares one. While convert is still running it says so and writes nothing: keep modelling and merge later. Then:
|
|
30
|
+
- Run it again with `--drop <image>,...` naming the image(s) the 3D scene replaces; it removes every `<img>` and `url()` using them. Each merge replaces the last one, edits inside it included, so do the steps below after it.
|
|
31
|
+
- In `index.html`, clear the background of the box that held the 3D image and of any wrapper over the 3D area, so the canvas under `#stage` shows through. Panels over flat page area keep theirs.
|
|
32
|
+
- Capture blocks remote fonts. If merge printed `fonts:`, fetch them and point the page at the local copy:
|
|
155
33
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
a bucket tipping upright. Also give pointer-drag or arrow-key orbit clamped to +-15 degrees, and one or two labelled
|
|
161
|
-
buttons in `#stage` that call `__scene.toggle(name)`. Verify with a real click in the headless page as well as
|
|
162
|
-
`setAction`, and capture each action at t = 1 from the landing camera.
|
|
34
|
+
mkdir -p fonts && grep -o 'https://fonts.googleapis.com/[^"]*' index.html | xargs curl -s > fonts/fonts.css
|
|
35
|
+
for u in $(grep -o 'https://fonts.gstatic.com/[^)]*' fonts/fonts.css); do curl -s "$u" -o "fonts/${u##*/}"; done
|
|
36
|
+
perl -pi -e 's#https://fonts.gstatic.com/[^)]*/##' fonts/fonts.css
|
|
37
|
+
perl -pi -e 's#https://fonts.googleapis.com/[^"]*#fonts/fonts.css#' index.html
|
|
163
38
|
|
|
164
|
-
|
|
39
|
+
If convert fails, or merge says it stopped, recover it as the CLI prints: `12ui next convert-run`, then the `12ui resume` it names. If convert still fails, report that it failed and stop.
|
|
165
40
|
|
|
166
|
-
|
|
167
|
-
the contact sheet and captures, the capture's `remote requests blocked` and `fonts:` lines, and the remaining gaps
|
|
168
|
-
against the source (fonts, texture realism, proportions). Do not claim a pixel match; claim a real scene that reads as
|
|
169
|
-
the source from the landing camera and holds at +-15 degrees.
|
|
41
|
+
**5. Check.** Run `12ui scene capture http://127.0.0.1:<port>/index.html --out-dir shots/i01 --orbit=-15,15` (a new `shots/iNN` each time) and look at `landing`, `az-15` and `az+15`; `remote requests blocked` above 0 is a defect. Fix the biggest mismatch first (placement, silhouettes, light, colour) and capture again. Stop when landing reads as the source and +-15 holds.
|
|
170
42
|
|
|
171
|
-
|
|
172
|
-
name pattern. Keep output small: `init` copies three.js once per scene folder, and captures go under `shots/`.
|
|
43
|
+
**6. Report** in two lines: the URL and what you built (objects, interactions); the landing capture path and what still differs.
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
# Persistent local workflow
|
|
2
|
-
|
|
3
|
-
Use one local workspace for related work. The CLI and MCP share the same operation service; choose whichever is available. Neither preparation nor artifact import needs a 12ui account. A session handoff lets this conversation use its native tools without extracting credentials or launching a nested coding agent.
|
|
4
|
-
|
|
5
|
-
## Prepare and import
|
|
6
|
-
|
|
7
|
-
Import an existing reference once:
|
|
8
|
-
|
|
9
|
-
12ui workflow import <image.png> --workspace <workspace> --media-type image/png --role reference
|
|
10
|
-
|
|
11
|
-
Use an absolute source path when the file is outside the workspace. Relative imported paths resolve inside the workspace, not the shell's current directory. The returned artifact identifies stored bytes by path, hash, size and media type. Put returned artifact objects in the request's `inputs`; do not invent hashes or use expiring remote URLs as durable input identities.
|
|
12
|
-
|
|
13
|
-
Write a request JSON file. A new design direction can start with:
|
|
14
|
-
|
|
15
|
-
```json
|
|
16
|
-
{
|
|
17
|
-
"capability": "image",
|
|
18
|
-
"prompt": "Design an editorial architecture homepage with warm materials, clear project navigation and restrained typography. Use the attached references as visual context.",
|
|
19
|
-
"inputs": [],
|
|
20
|
-
"output": { "kind": "image" }
|
|
21
|
-
}
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
12ui workflow prepare <request.json> --workspace <workspace> --key <stable-operation-key>
|
|
25
|
-
|
|
26
|
-
Preparation returns the persistent operation ID. Reusing the same key with the same request recovers that operation; changed intent needs a new key. Use separate operations for candidates, selected-page expansion, image edits, labels and implementation so dependent work can reuse verified outputs.
|
|
27
|
-
|
|
28
|
-
`text`, `image`, `image-edit`, `code` and `convert` are distinct capabilities. Output kinds are `json`, `image`, `html` and `project`; JSON may include an output schema. Keep provider credentials, environment dumps and private authentication state out of prompts, parameters and result files.
|
|
29
|
-
|
|
30
|
-
## Execute in the current session
|
|
31
|
-
|
|
32
|
-
12ui workflow execute <operation-id> --workspace <workspace> --providers session --session-capabilities image
|
|
33
|
-
|
|
34
|
-
Declare the capability of this request only after confirming its tool is available. For an image edit use `image-edit`; for implementation use `code`. A session route returns a handoff with the frozen prompt, input artifacts, expected output, public parameters, work/evidence directories and `attemptNumber`. Keep that attempt number with the returned result or failure; it prevents an old session from settling a newer attempt. Use its selected project directory for implementation; do not edit a different project. This claims the operation before generation. Execute it once using the available native tool, preserve its returned output, and register that output. Do not mistake the handoff for a generated result.
|
|
35
|
-
|
|
36
|
-
Write a result JSON file using actual existing local files:
|
|
37
|
-
|
|
38
|
-
```json
|
|
39
|
-
{
|
|
40
|
-
"files": [
|
|
41
|
-
{ "path": "/absolute/generated-image.png", "mediaType": "image/png", "role": "candidate" }
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
For structured text, use `value` with the requested JSON object. Include `providerRequestId` and `usage` only when actually supplied by the provider; do not estimate missing quota or image price from an account-wide percentage.
|
|
47
|
-
|
|
48
|
-
12ui workflow register <operation-id> --workspace <workspace> --attempt <handoff-attempt-number> --result <result.json>
|
|
49
|
-
12ui workflow status <operation-id> --workspace <workspace>
|
|
50
|
-
|
|
51
|
-
Registration copies and hashes file artifacts. Use the registered artifacts as inputs to the next prepared operation. Continue from this stored state after a restart, conversation change or executor change. Registration and schema validation establish an artifact contract, not visual approval; inspect the image/browser before accepting it for dependent work.
|
|
52
|
-
|
|
53
|
-
For an `implement` operation, the service records a baseline of the explicit `projectCwd` before the handoff. Make the actual changes in that project, then register a normal result with `value` containing your report and optional `files` for real additional receipts. Registration compares the project with its saved baseline and adds verified project-change evidence and changed-file artifacts automatically. Do not fabricate that evidence JSON or use a provider receipt as proof of implementation. No changed files produces `project_no_changes`; a claimed no-op is not a successful implementation. Report actual browser/test checks separately: verified file changes do not prove those checks passed, and the service does not invent validation evidence.
|
|
54
|
-
|
|
55
|
-
For a successful recipe plan, prepare its dependent operations deterministically:
|
|
56
|
-
|
|
57
|
-
12ui workflow continue <plan-operation-id> --workspace <workspace>
|
|
58
|
-
|
|
59
|
-
Continue returns `readyOperationIds`, children, verified artifacts and waiting/blocked state. It does not execute models. Execute each ready operation with the intended provider policy, register its result, then continue the same parent plan again. Draft continuation creates candidate image operations; branch continuation unlocks later slots only after their actual dependency artifacts exist. A redesign plan continues to a draft plan, then to its candidate images. Repeated continuation reuses child IDs. Generic prepared requests have no recipe expansion; prepare their next dependent operation explicitly from registered artifacts.
|
|
60
|
-
|
|
61
|
-
## Provider selection and cost
|
|
62
|
-
|
|
63
|
-
12ui workflow capabilities --session-capabilities text,image,image-edit,code
|
|
64
|
-
|
|
65
|
-
Only declare the subset actually available. Without a session image tool, a Codex or Claude text CLI is not an image provider. Default routing considers session, Codex, Claude, OpenAI and 12ui in order, filtering for the requested capability and explicit funding permission. Limit `--providers` when a particular execution boundary is required.
|
|
66
|
-
|
|
67
|
-
Subscription execution consumes the user's model allowance and local resources. OpenAI API execution requires its key and authorization; 12ui execution requires its service credentials and authorization. Set `--allow-paid openai` or `--allow-paid 12ui` only when the user has authorized that provider's spend for this work. A configured key alone does not authorize either. Preparation does not imply authorization for later paid fallback.
|
|
68
|
-
|
|
69
|
-
The OpenAI adapter requires an explicit account-available model: set public `parameters.model` on a generic request, or use `OPENAI_MODEL` for text/generated HTML and `OPENAI_IMAGE_MODEL` for images. `OPENAI_API_KEY` and `TWELVE_UI_API_KEY` identify separately funded routes; never put keys in requests or results. Native subprocesses remove API-key/provider overrides from their environment. Codex text/code execution is unavailable unless the user trusts their existing CLI configuration, including configured tools and hooks: pass `--trust-codex-config` on execution or discovery only with that authorization. Its read-only text sandbox does not isolate remote tool effects. This opt-in is independent of paid-provider authorization and is unnecessary for the current session's tools. Claude uses supported safe mode, empty MCP configuration and a fixed file-tool set for code; it cannot run shell tests, and its text path currently rejects image attachments. Run project checks in the parent session. Use the session for visual planning, labels and review when it can inspect images. OpenAI code produces HTML without running a project; 12ui code uses its conversion path. Neither is an implementation executor for an existing project.
|
|
70
|
-
|
|
71
|
-
An unavailable provider can be skipped before dispatch. After a dispatch, a failure is not permission to buy the same work elsewhere. Follow the saved failure disposition: only a recorded proof of non-dispatch or a terminal no-output failure can make another provider eligible. An ambiguous outcome stays in reconciliation; preserve it and recover the actual result before any new dispatch. Do not clear state, change the key or repeatedly execute a handoff to work around this boundary.
|
|
72
|
-
|
|
73
|
-
If a session tool refuses, is denied permission or has an uncertain outcome, preserve that evidence and record a failure JSON containing `code`, `message` and `disposition`:
|
|
74
|
-
|
|
75
|
-
12ui workflow fail <operation-id> --workspace <workspace> --attempt <handoff-attempt-number> --failure <failure.json>
|
|
76
|
-
|
|
77
|
-
Use `terminal-stop` for refusals or permission denials and `ambiguous` when dispatch/output is uncertain. Neither permits fallback. Use `not-dispatched` or `terminal-no-output` only with actual evidence establishing that outcome; elapsed time, a missing screenshot or a new session is not proof. An ambiguous operation can be completed by registering its recovered original result, not by downgrading the failure to enable another call.
|
|
78
|
-
|
|
79
|
-
An accepted hosted job with a failed download, or a completed response whose output is malformed, remains in reconciliation under its original operation and attempt. Recover the original provider output and dependencies, validate them and register them against that same attempt. Keep provider IDs and retained responses; do not regenerate or switch providers to repair a delivery failure. Refusals and permission denials remain terminal stops.
|
|
80
|
-
|
|
81
|
-
## Recipes and MCP
|
|
82
|
-
|
|
83
|
-
Workflow recipes prepare the same persistent operations. They are request builders, not a hosted pipeline or a guarantee that images/code have already been generated.
|
|
84
|
-
|
|
85
|
-
| Recipe | Input JSON | Prepared work |
|
|
86
|
-
| --- | --- | --- |
|
|
87
|
-
| `draft` | `concept`, optional `candidates`, `references`, `retain`, `content`, `aspect` | Text plan of distinct candidate prompts; continue it to prepare image operations. |
|
|
88
|
-
| `branch` | `concept`, approved `source`, optional `scope`, `maxScreens`, `references` | Text plan of pages and ordered viewport slots; preserve the existing root and generate only additional slots. |
|
|
89
|
-
| `edit` | `source`, `prompt`, optional `references`, `quality` | Image edit of the first source. |
|
|
90
|
-
| `redesign` | `source`, `direction`, optional `references` | Text concept/retain/corpus-query plan; image generation and implementation are subsequent operations. |
|
|
91
|
-
| `labels` | `source`, optional `context` | JSON labels and proposed interactions; not working behavior. |
|
|
92
|
-
| `review` | `source`, optional `target`, `context`, `criteria` | Evidence-based visual findings and limitations; no numeric quality score, runtime verification or automatic repair. |
|
|
93
|
-
| `convert` | `source`, optional `prompt`, `output`, `native` | Editable HTML/code by default. LayerDoc requires explicit native conversion and its supported provider. |
|
|
94
|
-
| `implement` | absolute existing `projectCwd`, `targets`, optional `prompt` | Code changes in that selected project; preserve source changes and verify real behavior. |
|
|
95
|
-
|
|
96
|
-
Image paths inside recipe JSON and file paths inside result JSON are relative to the workspace unless absolute. The JSON specification/result file passed to the CLI itself is read relative to the shell's current directory. For example, save `{"concept":"An editorial architecture homepage","candidates":4}` as the draft specification:
|
|
97
|
-
|
|
98
|
-
12ui workflow draft <draft-spec.json> --workspace <workspace> --key <draft-plan-key>
|
|
99
|
-
|
|
100
|
-
Execute that operation with a text-capable session, register the JSON plan, and continue it to obtain stable candidate operation IDs. Inspect candidate images before selecting one for branch or implementation. Check installed help before relying on optional fields; generic `prepare` remains available for an explicit request.
|
|
101
|
-
|
|
102
|
-
## Capture, review and portable output
|
|
103
|
-
|
|
104
|
-
Capture a running local or public page with local Chromium:
|
|
105
|
-
|
|
106
|
-
12ui workflow capture <http-or-https-url> --workspace <workspace> --width 1440 --height 900 --full-page
|
|
107
|
-
|
|
108
|
-
This stores screenshot, DOM and manifest artifacts without model work. It uses a fresh unauthenticated browser, not the user's signed-in browser profile. Inspect `requestedUrl`, `capturedUrl` and `redirected` plus the actual image before treating it as application evidence. For an authenticated interface, capture with an available authorized session browser and import that screenshot instead. Chromium must already be available locally.
|
|
109
|
-
|
|
110
|
-
Prepare a review specification with current screenshot `source`, optional approved `target` and `criteria`:
|
|
111
|
-
|
|
112
|
-
12ui workflow review <review-spec.json> --workspace <workspace> --key <review-key>
|
|
113
|
-
|
|
114
|
-
Execute and register its findings like any text operation with image inputs. A screenshot review cannot prove route behavior, accessibility-tree semantics or tests. Use actual browser and project tools for those checks; prepare only justified corrections after inspection.
|
|
115
|
-
|
|
116
|
-
For session-generated HTML, register the entrypoint and every asset with their original relative paths. For example:
|
|
117
|
-
|
|
118
|
-
```json
|
|
119
|
-
{
|
|
120
|
-
"files": [
|
|
121
|
-
{ "path": "/absolute/generated/index.html", "mediaType": "text/html", "role": "entrypoint", "relativePath": "index.html" },
|
|
122
|
-
{ "path": "/absolute/generated/assets/style.css", "mediaType": "text/css", "role": "asset", "relativePath": "assets/style.css" }
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
Preserve image, font, script and stylesheet mappings; copying only the HTML can break its references. The SDK's `collectBundleFiles(directory, entrypoint)` returns mapped file entries for an isolated generated-output directory; register those entries through the same operation service. Never collect a whole existing project checkout or credential directory. Project changes stay in the selected project; provider receipts alone are not a portable project.
|
|
128
|
-
|
|
129
|
-
12ui workflow export <operation-id> --workspace <workspace> --destination <new-output-directory>
|
|
130
|
-
|
|
131
|
-
Export verifies stored bytes and retains the logical paths. A new or empty directory is required; an identical previous export is reused and differing existing files are refused. Export does not execute a model, convert to another native format, publish a site or validate browser behavior.
|
|
132
|
-
|
|
133
|
-
## Prototype interaction labels
|
|
134
|
-
|
|
135
|
-
For an existing converted branch, prepare labels from its actual DOM candidates and known destinations:
|
|
136
|
-
|
|
137
|
-
12ui prototype <run-dir> --labels workflow --workspace <workspace>
|
|
138
|
-
|
|
139
|
-
This performs local browser inventory/analysis and returns `awaiting_labels` with stable operation IDs. It does not dispatch a model or read hosted credentials. Execute each prepared operation through the shared workflow service with an available text provider, then register its JSON using the handoff's attempt number. For a dispatched/reconciling operation, recover its existing result instead of executing again. Repeat the same prototype command once those operations succeed; it consumes the exact completed results and runs the normal build/runtime gates. Legacy branch resume will not replace an `awaiting_labels` pause with hosted label calls.
|
|
140
|
-
|
|
141
|
-
These operations freeze the real candidate IDs, screen, destinations and source HTML/plan/completion evidence. Generic image `workflow labels` annotations cannot be substituted. Each candidate requires exactly one supported action; unknown navigation targets, duplicate IDs and contradictory payloads are rejected before success. Ambiguous controls should be `none`; local-page outputs permit only navigation to known real pages or `none`. Existing links/forms and deterministic rules retain precedence. A prototype dialog demonstrates behavior; it does not execute a backend task.
|
|
142
|
-
|
|
143
|
-
For converted branches, a semantic dropdown may label any evidenced menu trigger, regardless of its analyzer kind. Registration preserves the supplied option strings. The existing builder normalizes and deduplicates them; fewer than three usable choices produce an inert control with a recorded `dropdown_options_incomplete` degradation.
|
|
144
|
-
|
|
145
|
-
The prototype manifest records source custody, operation IDs, provider, funding and reported usage. Its label `costMicros` counts only new hosted prototype-label calls; zero there does not imply free workflow model execution. Repeating preparation or moving the saved branch/workspace preserves IDs when the bound source content and candidate facts are unchanged. The source binding covers HTML, plan, completion and candidate facts, not a snapshot of every remotely linked asset.
|
|
146
|
-
|
|
147
|
-
Standalone prototype still defaults to `--labels none`. Explicit `--labels 12ui` selects the older hosted per-screen route; it is separate from these local workflow operations.
|
|
148
|
-
|
|
149
|
-
## Verified native LayerDoc
|
|
150
|
-
|
|
151
|
-
Native LayerDoc registration requires a canonical public LayerDoc v2 document with role `layerdoc` and `relativePath: "document.layerdoc.json"`, a role `layerdoc-assets` sidecar mapped to `layerdoc-assets.json`, and every referenced raster as a mapped role `asset` file. The sidecar uses schema `12ui.layerdoc-assets.v1`; its `assets` maps each canonical `artifactId` to `{path, sha256, mediaType}`. Paths identify retained local bytes. All files need portable relative mappings, and hashes, media types and declared pixel dimensions must agree with those bytes. Keep canonical artifact identities; do not insert invented URLs or relabel arbitrary JSON as LayerDoc.
|
|
152
|
-
|
|
153
|
-
Read a completed native operation locally:
|
|
154
|
-
|
|
155
|
-
12ui workflow layerdoc <operation-id> --workspace <workspace>
|
|
156
|
-
|
|
157
|
-
The SDK equivalents are `loadWorkflowLayerDoc({workspace, operationId})` and, for a relocated exported directory, `loadLayerDocBundle({directory})`. They return the canonical `document`, absolute `documentPath` and `manifestPath`, plus `assets` keyed by artifact ID with verified local `path`, `relativePath`, `sha256` and `mediaType`. Raster dimensions are validated against the document. This is a verified local reader contract, not an offline editor or a new conversion.
|
|
158
|
-
|
|
159
|
-
The standard hosted `12ui convert <layerdoc.json>` path does not consume this sidecar bundle. It requires supported hydrated HTTP asset references; uploading local assets and hydrating those references needs a separate API path that is not supplied by the reader. Do not upload the raw canonical JSON alone and claim its local assets will follow.
|
|
160
|
-
|
|
161
|
-
The MCP equivalents are `design.workflow.prepare`, `design.workflow.execute`, `design.workflow.register`, `design.workflow.continue`, `design.workflow.fail`, `design.workflow.status`, `design.workflow.import`, `design.workflow.capabilities`, `design.workflow.capture`, `design.workflow.export` and `design.workflow.layerdoc`. Recipes use `design.workflow.prepare` with `recipe` and `input`; registration and failure use the handoff's `attemptNumber`. MCP execution and discovery accept `trustCodexConfig` for the same explicit Codex configuration trust boundary. Use the tool's supplied schema. They call the same service and obey the same provider authorization, custody and reconciliation rules as the CLI. Do not log into 12ui merely to prepare, inspect or register local operations.
|