@12ui/design 0.2.80 → 0.2.81
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 +1 -3
- package/SKILL.md +2 -8
- package/dist/cli-help/design.d.ts +1 -1
- package/dist/cli-help/design.d.ts.map +1 -1
- package/dist/cli-help/design.js +0 -1
- package/dist/cli-help/design.js.map +1 -1
- package/dist/cli-help/index.d.ts +1 -1
- package/dist/cli-workspace-draw.d.ts.map +1 -1
- package/dist/cli-workspace-draw.js +2 -0
- package/dist/cli-workspace-draw.js.map +1 -1
- package/dist/cli-workspace-runner.d.ts.map +1 -1
- package/dist/cli-workspace-runner.js +2 -1
- package/dist/cli-workspace-runner.js.map +1 -1
- package/dist/corpus-client.d.ts +3 -0
- package/dist/corpus-client.d.ts.map +1 -1
- package/dist/corpus-client.js +2 -0
- package/dist/corpus-client.js.map +1 -1
- package/dist/corpus-public-renditions.d.ts +33 -0
- package/dist/corpus-public-renditions.d.ts.map +1 -0
- package/dist/corpus-public-renditions.js +55 -0
- package/dist/corpus-public-renditions.js.map +1 -0
- package/dist/legacy-skill-catalog.d.ts.map +1 -1
- package/dist/legacy-skill-catalog.js +11 -0
- package/dist/legacy-skill-catalog.js.map +1 -1
- package/dist/mcp-slate-command.d.ts +0 -2
- package/dist/mcp-slate-command.d.ts.map +1 -1
- package/dist/mcp-slate-command.js +0 -4
- package/dist/mcp-slate-command.js.map +1 -1
- package/dist/mcp-slate-resource.d.ts.map +1 -1
- package/dist/mcp-slate-resource.js +6 -4
- package/dist/mcp-slate-resource.js.map +1 -1
- package/dist/mcp-slate-tool-defs.d.ts.map +1 -1
- package/dist/mcp-slate-tool-defs.js +8 -6
- package/dist/mcp-slate-tool-defs.js.map +1 -1
- package/dist/mcp-slate-tools.d.ts.map +1 -1
- package/dist/mcp-slate-tools.js +8 -1
- package/dist/mcp-slate-tools.js.map +1 -1
- package/dist/mcp-slate-ui-copy.d.ts +88 -208
- package/dist/mcp-slate-ui-copy.d.ts.map +1 -1
- package/dist/mcp-slate-ui-copy.js +58 -159
- package/dist/mcp-slate-ui-copy.js.map +1 -1
- package/dist/mcp-slate-ui-locales/de-DE.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/de-DE.js +44 -83
- package/dist/mcp-slate-ui-locales/de-DE.js.map +1 -1
- package/dist/mcp-slate-ui-locales/es-419.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/es-419.js +44 -83
- package/dist/mcp-slate-ui-locales/es-419.js.map +1 -1
- package/dist/mcp-slate-ui-locales/es-ES.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/es-ES.js +44 -83
- package/dist/mcp-slate-ui-locales/es-ES.js.map +1 -1
- package/dist/mcp-slate-ui-locales/fr-FR.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/fr-FR.js +44 -83
- package/dist/mcp-slate-ui-locales/fr-FR.js.map +1 -1
- package/dist/mcp-slate-ui-locales/hi-IN.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/hi-IN.js +44 -83
- package/dist/mcp-slate-ui-locales/hi-IN.js.map +1 -1
- package/dist/mcp-slate-ui-locales/it-IT.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/it-IT.js +44 -83
- package/dist/mcp-slate-ui-locales/it-IT.js.map +1 -1
- package/dist/mcp-slate-ui-locales/ja-JP.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/ja-JP.js +44 -83
- package/dist/mcp-slate-ui-locales/ja-JP.js.map +1 -1
- package/dist/mcp-slate-ui-locales/ko-KR.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/ko-KR.js +44 -83
- package/dist/mcp-slate-ui-locales/ko-KR.js.map +1 -1
- package/dist/mcp-slate-ui-locales/pt-BR.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/pt-BR.js +44 -83
- package/dist/mcp-slate-ui-locales/pt-BR.js.map +1 -1
- package/dist/mcp-slate-ui-locales/zh-CN.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/zh-CN.js +44 -83
- package/dist/mcp-slate-ui-locales/zh-CN.js.map +1 -1
- package/dist/mcp-slate-ui-locales/zh-TW.d.ts.map +1 -1
- package/dist/mcp-slate-ui-locales/zh-TW.js +44 -83
- package/dist/mcp-slate-ui-locales/zh-TW.js.map +1 -1
- package/dist/mcp-slate-ui-script-bridge.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-bridge.js +19 -7
- package/dist/mcp-slate-ui-script-bridge.js.map +1 -1
- package/dist/mcp-slate-ui-script-browser.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-browser.js +0 -3
- package/dist/mcp-slate-ui-script-browser.js.map +1 -1
- package/dist/mcp-slate-ui-script-designs.d.ts +17 -0
- package/dist/mcp-slate-ui-script-designs.d.ts.map +1 -0
- package/dist/mcp-slate-ui-script-designs.js +365 -0
- package/dist/mcp-slate-ui-script-designs.js.map +1 -0
- package/dist/mcp-slate-ui-script-edit.d.ts +9 -0
- package/dist/mcp-slate-ui-script-edit.d.ts.map +1 -0
- package/dist/mcp-slate-ui-script-edit.js +71 -0
- package/dist/mcp-slate-ui-script-edit.js.map +1 -0
- package/dist/mcp-slate-ui-script-inline.d.ts +3 -9
- package/dist/mcp-slate-ui-script-inline.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-inline.js +28 -155
- package/dist/mcp-slate-ui-script-inline.js.map +1 -1
- package/dist/mcp-slate-ui-script-inspiration-collage.d.ts +13 -12
- package/dist/mcp-slate-ui-script-inspiration-collage.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-inspiration-collage.js +24 -24
- package/dist/mcp-slate-ui-script-inspiration-collage.js.map +1 -1
- package/dist/mcp-slate-ui-script-inspiration-gallery.d.ts +23 -0
- package/dist/mcp-slate-ui-script-inspiration-gallery.d.ts.map +1 -0
- package/dist/mcp-slate-ui-script-inspiration-gallery.js +221 -0
- package/dist/mcp-slate-ui-script-inspiration-gallery.js.map +1 -0
- package/dist/mcp-slate-ui-script-inspiration-grid.d.ts +14 -21
- package/dist/mcp-slate-ui-script-inspiration-grid.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-inspiration-grid.js +124 -196
- package/dist/mcp-slate-ui-script-inspiration-grid.js.map +1 -1
- package/dist/mcp-slate-ui-script-inspiration.d.ts +8 -9
- package/dist/mcp-slate-ui-script-inspiration.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-inspiration.js +213 -130
- package/dist/mcp-slate-ui-script-inspiration.js.map +1 -1
- package/dist/mcp-slate-ui-script-l10n.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-l10n.js +2 -0
- package/dist/mcp-slate-ui-script-l10n.js.map +1 -1
- package/dist/mcp-slate-ui-script-more.d.ts +4 -33
- package/dist/mcp-slate-ui-script-more.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-more.js +6 -279
- package/dist/mcp-slate-ui-script-more.js.map +1 -1
- package/dist/mcp-slate-ui-script-pause.d.ts +10 -6
- package/dist/mcp-slate-ui-script-pause.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-pause.js +45 -30
- package/dist/mcp-slate-ui-script-pause.js.map +1 -1
- package/dist/mcp-slate-ui-script-references.d.ts +19 -0
- package/dist/mcp-slate-ui-script-references.d.ts.map +1 -0
- package/dist/mcp-slate-ui-script-references.js +102 -0
- package/dist/mcp-slate-ui-script-references.js.map +1 -0
- package/dist/mcp-slate-ui-script-remote.d.ts +13 -12
- package/dist/mcp-slate-ui-script-remote.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-remote.js +46 -27
- package/dist/mcp-slate-ui-script-remote.js.map +1 -1
- package/dist/mcp-slate-ui-script-scribble.d.ts +2 -2
- package/dist/mcp-slate-ui-script-scribble.js +7 -7
- package/dist/mcp-slate-ui-script-select.d.ts +4 -9
- package/dist/mcp-slate-ui-script-select.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-select.js +13 -37
- package/dist/mcp-slate-ui-script-select.js.map +1 -1
- package/dist/mcp-slate-ui-script-stage.d.ts +4 -10
- package/dist/mcp-slate-ui-script-stage.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-stage.js +28 -141
- package/dist/mcp-slate-ui-script-stage.js.map +1 -1
- package/dist/mcp-slate-ui-script-state.d.ts +1 -1
- package/dist/mcp-slate-ui-script-state.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-state.js +9 -4
- package/dist/mcp-slate-ui-script-state.js.map +1 -1
- package/dist/mcp-slate-ui-script-viewer.d.ts +18 -0
- package/dist/mcp-slate-ui-script-viewer.d.ts.map +1 -0
- package/dist/mcp-slate-ui-script-viewer.js +405 -0
- package/dist/mcp-slate-ui-script-viewer.js.map +1 -0
- package/dist/mcp-slate-ui-script.d.ts +4 -5
- package/dist/mcp-slate-ui-script.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script.js +12 -13
- package/dist/mcp-slate-ui-script.js.map +1 -1
- package/dist/mcp-slate-ui-styles-designs.d.ts +10 -0
- package/dist/mcp-slate-ui-styles-designs.d.ts.map +1 -0
- package/dist/mcp-slate-ui-styles-designs.js +121 -0
- package/dist/mcp-slate-ui-styles-designs.js.map +1 -0
- package/dist/mcp-slate-ui-styles-inspiration.d.ts +13 -13
- package/dist/mcp-slate-ui-styles-inspiration.d.ts.map +1 -1
- package/dist/mcp-slate-ui-styles-inspiration.js +67 -33
- package/dist/mcp-slate-ui-styles-inspiration.js.map +1 -1
- package/dist/mcp-slate-ui-styles-pause.d.ts +2 -2
- package/dist/mcp-slate-ui-styles-pause.d.ts.map +1 -1
- package/dist/mcp-slate-ui-styles-pause.js +4 -8
- package/dist/mcp-slate-ui-styles-pause.js.map +1 -1
- package/dist/mcp-slate-ui-styles-stage.d.ts +3 -22
- package/dist/mcp-slate-ui-styles-stage.d.ts.map +1 -1
- package/dist/mcp-slate-ui-styles-stage.js +6 -74
- package/dist/mcp-slate-ui-styles-stage.js.map +1 -1
- package/dist/mcp-slate-ui-styles.d.ts +12 -19
- package/dist/mcp-slate-ui-styles.d.ts.map +1 -1
- package/dist/mcp-slate-ui-styles.js +97 -100
- package/dist/mcp-slate-ui-styles.js.map +1 -1
- package/dist/mcp-slate-ui.d.ts +12 -12
- package/dist/mcp-slate-ui.d.ts.map +1 -1
- package/dist/mcp-slate-ui.js +24 -23
- package/dist/mcp-slate-ui.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -0
- package/dist/server.js.map +1 -1
- package/dist/slate-actions.d.ts +22 -1
- package/dist/slate-actions.d.ts.map +1 -1
- package/dist/slate-actions.js +46 -2
- package/dist/slate-actions.js.map +1 -1
- package/dist/slate-browser-host.d.ts +8 -7
- package/dist/slate-browser-host.d.ts.map +1 -1
- package/dist/slate-browser-host.js +13 -10
- package/dist/slate-browser-host.js.map +1 -1
- package/dist/slate-browser-server.d.ts.map +1 -1
- package/dist/slate-browser-server.js +10 -4
- package/dist/slate-browser-server.js.map +1 -1
- package/dist/slate-commit.d.ts.map +1 -1
- package/dist/slate-commit.js +12 -5
- package/dist/slate-commit.js.map +1 -1
- package/dist/slate-handoff.d.ts.map +1 -1
- package/dist/slate-handoff.js +2 -3
- package/dist/slate-handoff.js.map +1 -1
- package/dist/slate-ids.d.ts +2 -1
- package/dist/slate-ids.d.ts.map +1 -1
- package/dist/slate-ids.js +3 -2
- package/dist/slate-ids.js.map +1 -1
- package/dist/slate-reference-ids.d.ts.map +1 -1
- package/dist/slate-reference-ids.js +1 -0
- package/dist/slate-reference-ids.js.map +1 -1
- package/dist/slate-round-prompt.d.ts +19 -0
- package/dist/slate-round-prompt.d.ts.map +1 -1
- package/dist/slate-round-prompt.js +22 -0
- package/dist/slate-round-prompt.js.map +1 -1
- package/dist/slate-round-runner.d.ts.map +1 -1
- package/dist/slate-round-runner.js +16 -12
- package/dist/slate-round-runner.js.map +1 -1
- package/dist/slate-round-search.d.ts.map +1 -1
- package/dist/slate-round-search.js +2 -0
- package/dist/slate-round-search.js.map +1 -1
- package/dist/slate-runtime.d.ts +3 -0
- 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-site-references-capture.d.ts +20 -0
- package/dist/slate-site-references-capture.d.ts.map +1 -0
- package/dist/slate-site-references-capture.js +119 -0
- package/dist/slate-site-references-capture.js.map +1 -0
- package/dist/slate-site-references-client.d.ts +35 -0
- package/dist/slate-site-references-client.d.ts.map +1 -0
- package/dist/slate-site-references-client.js +36 -0
- package/dist/slate-site-references-client.js.map +1 -0
- package/dist/slate-site-references-local.d.ts +6 -0
- package/dist/slate-site-references-local.d.ts.map +1 -0
- package/dist/slate-site-references-local.js +63 -0
- package/dist/slate-site-references-local.js.map +1 -0
- package/dist/slate-site-references-suggest.d.ts +36 -0
- package/dist/slate-site-references-suggest.d.ts.map +1 -0
- package/dist/slate-site-references-suggest.js +144 -0
- package/dist/slate-site-references-suggest.js.map +1 -0
- package/dist/slate-site-references.d.ts +57 -0
- package/dist/slate-site-references.d.ts.map +1 -0
- package/dist/slate-site-references.js +129 -0
- package/dist/slate-site-references.js.map +1 -0
- package/dist/slate-view-contract.d.ts +29 -1
- package/dist/slate-view-contract.d.ts.map +1 -1
- package/dist/slate-view.d.ts.map +1 -1
- package/dist/slate-view.js +5 -0
- package/dist/slate-view.js.map +1 -1
- package/dist/slate-workspace-parse.d.ts +2 -0
- package/dist/slate-workspace-parse.d.ts.map +1 -1
- package/dist/slate-workspace-parse.js +20 -3
- package/dist/slate-workspace-parse.js.map +1 -1
- package/dist/slate-workspace-types.d.ts +17 -2
- package/dist/slate-workspace-types.d.ts.map +1 -1
- package/dist/workspace-draw-messages.d.ts +27 -5
- package/dist/workspace-draw-messages.d.ts.map +1 -1
- package/dist/workspace-draw-messages.js +29 -3
- package/dist/workspace-draw-messages.js.map +1 -1
- package/dist/workspace-draw-run.d.ts +12 -0
- package/dist/workspace-draw-run.d.ts.map +1 -1
- package/dist/workspace-draw-run.js +47 -18
- package/dist/workspace-draw-run.js.map +1 -1
- package/dist/workspace-draw-types.d.ts +2 -1
- 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-runner-main.d.ts +5 -0
- package/dist/workspace-runner-main.d.ts.map +1 -1
- package/dist/workspace-runner-main.js +15 -3
- package/dist/workspace-runner-main.js.map +1 -1
- package/open-design.json +2 -13
- package/package.json +1 -1
- package/skills/12ui-design/SKILL.md +7 -8
- package/dist/mcp-slate-ui-script-dialog.d.ts +0 -21
- package/dist/mcp-slate-ui-script-dialog.d.ts.map +0 -1
- package/dist/mcp-slate-ui-script-dialog.js +0 -351
- package/dist/mcp-slate-ui-script-dialog.js.map +0 -1
- package/dist/mcp-slate-ui-script-progress.d.ts +0 -7
- package/dist/mcp-slate-ui-script-progress.d.ts.map +0 -1
- package/dist/mcp-slate-ui-script-progress.js +0 -9
- package/dist/mcp-slate-ui-script-progress.js.map +0 -1
- package/dist/mcp-slate-ui-styles-dialog.d.ts +0 -20
- package/dist/mcp-slate-ui-styles-dialog.d.ts.map +0 -1
- package/dist/mcp-slate-ui-styles-dialog.js +0 -87
- package/dist/mcp-slate-ui-styles-dialog.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-command.js","sourceRoot":"","sources":["../src/mcp-slate-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAsB,MAAM,wBAAwB,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAcjF;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EAA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AC,KAAK,CAAC,EAAE,CAC9C,CAAC;IACJ,CAAC;SAAM,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC;QAC3C,KAAK,CAAC,IAAI,CACR,4CAA4C,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,uCAAuC,CAAC,CAAC,CAAC,SAAS,+GAA+G,OAAO,IAAI,OAAO,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,uCAAuC,OAAO,CAAC,IAAI,gDAAgD,CAAC,CAAC,CAAC,EAAE,GAAG,CACjY,CAAC;IACJ,CAAC;SAAM,IAAI,IAAI,EAAE,SAAS,EAAE,CAAC;QAC3B,KAAK,CAAC,IAAI,CACR,4MAA4M,EAC5M,iCAAiC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,mCAAmC,CAC7F,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,IAAI,CACR,4GAA4G,EAC5G,8EAA8E,CAC/E,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,IAAI,CACR,OAAO,CAAC,OAAO;QACb,CAAC,CAAC,gFAAgF,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG;QAC7H,CAAC,CAAC,gEAAgE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,CAAC,qBAAqB,eAAe,8JAA8J,CAC/S,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-resource.d.ts","sourceRoot":"","sources":["../src/mcp-slate-resource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp-slate-resource.d.ts","sourceRoot":"","sources":["../src/mcp-slate-resource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAoBvF,eAAO,MAAM,cAAc,EAAE,QAO5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAO,QAAQ,EAAsB,CAAC;AAErE,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,KAAG,kBAY/C,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { ErrorCode, McpError } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { SLATE_RESOURCE_MIME_TYPE, SLATE_RESOURCE_URI } from './mcp-slate-names.js';
|
|
3
3
|
import { SLATE_UI_HTML } from './mcp-slate-ui.js';
|
|
4
|
+
import { CORPUS_PUBLIC_RENDITION_ORIGIN } from './corpus-public-renditions.js';
|
|
4
5
|
/**
|
|
5
6
|
* The workspace view as an MCP Apps `ui://` resource. `_meta.ui` is the open MCP
|
|
6
7
|
* Apps declaration (a border around the card); `_meta["openai/ui"]` is the
|
|
7
|
-
* Codex/ChatGPT extension that says which display modes the view supports.
|
|
8
|
-
* `csp`
|
|
9
|
-
*
|
|
8
|
+
* Codex/ChatGPT extension that says which display modes the view supports. The one
|
|
9
|
+
* `csp` domain declared is the public rendition origin: inspiration pictures load
|
|
10
|
+
* straight from it (as the hosted resource declares), and the view makes no other
|
|
11
|
+
* request of its own, so the host's default (nothing else external) is right.
|
|
10
12
|
*/
|
|
11
13
|
const SLATE_RESOURCE_META = {
|
|
12
|
-
ui: { prefersBorder: true },
|
|
14
|
+
ui: { prefersBorder: true, csp: { connectDomains: [], resourceDomains: [CORPUS_PUBLIC_RENDITION_ORIGIN] } },
|
|
13
15
|
'openai/ui': { availableDisplayModes: ['inline', 'fullscreen'], preferredDisplayMode: 'inline' },
|
|
14
16
|
};
|
|
15
17
|
export const SLATE_RESOURCE = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-resource.js","sourceRoot":"","sources":["../src/mcp-slate-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAGzE,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp-slate-resource.js","sourceRoot":"","sources":["../src/mcp-slate-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAGzE,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;;;;;;GAOG;AAEH,MAAM,mBAAmB,GAAG;IAC1B,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,cAAc,EAAE,EAAc,EAAE,eAAe,EAAE,CAAC,8BAA8B,CAAa,EAAE,EAAE;IACnI,WAAW,EAAE,EAAE,qBAAqB,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,EAAE,oBAAoB,EAAE,QAAQ,EAAE;CACjG,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAa;IACtC,GAAG,EAAE,kBAAkB;IACvB,IAAI,EAAE,uBAAuB;IAC7B,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,qMAAqM;IAClN,QAAQ,EAAE,wBAAwB;IAClC,KAAK,EAAE,mBAAmB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAe,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC;AAErE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAsB,EAAE;IACnE,IAAI,GAAG,KAAK,kBAAkB,EAAE,CAAC;QAC/B,MAAM,IAAI,QAAQ,CAAC,SAAS,CAAC,aAAa,EAAE,qBAAqB,GAAG,EAAE,CAAC,CAAC;IAC1E,CAAC;IACD,OAAO;QACL,QAAQ,EAAE,CAAC;gBACT,GAAG,EAAE,kBAAkB;gBACvB,QAAQ,EAAE,wBAAwB;gBAClC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,mBAAmB;aAC3B,CAAC;KACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-tool-defs.d.ts","sourceRoot":"","sources":["../src/mcp-slate-tool-defs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AA+C/D,8GAA8G;AAC9G,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBjC,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp-slate-tool-defs.d.ts","sourceRoot":"","sources":["../src/mcp-slate-tool-defs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AA+C/D,8GAA8G;AAC9G,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBjC,CAAC;AAiCF,eAAO,MAAM,sBAAsB,EAAE,IAAI,EA4KxC,CAAC"}
|
|
@@ -22,7 +22,7 @@ const runDirProperty = {
|
|
|
22
22
|
const arrayOf = (items = {}) => ({ type: 'array', items });
|
|
23
23
|
const nullable = (type) => ({ type: [type, 'null'] });
|
|
24
24
|
const uuidPattern = '^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$';
|
|
25
|
-
const referenceIdPattern = '^(?:gen|logo-gen)-[A-Za-z0-9._-]{1,120}$';
|
|
25
|
+
const referenceIdPattern = '^(?:gen|logo-gen|site)-[A-Za-z0-9._-]{1,120}$';
|
|
26
26
|
/** The view every reader returns. Permissive on purpose: the schema names the shape, the code enforces it. */
|
|
27
27
|
export const slateViewOutputSchema = {
|
|
28
28
|
type: 'object',
|
|
@@ -57,10 +57,12 @@ const workActionSchema = {
|
|
|
57
57
|
required: ['kind'],
|
|
58
58
|
properties: {
|
|
59
59
|
kind: { type: 'string', enum: ['round', 'edit'] },
|
|
60
|
-
mode: { type: 'string', enum: ['new', 'like'] },
|
|
60
|
+
mode: { type: 'string', enum: ['new', 'like', 'branch'], description: 'new: fresh options; like: close to fromVersionId; branch: more pages of the product grown from fromVersionId.' },
|
|
61
61
|
note: { type: 'string', maxLength: 600 },
|
|
62
|
+
brief: { type: 'string', maxLength: 2000, description: 'Round and continue only: the design prompt as the user edited it on the screen; it becomes the workspace\'s prompt.' },
|
|
62
63
|
fromVersionId: { type: 'string' },
|
|
63
64
|
count: { type: 'integer', enum: [1, 2, 4, 6, 8, 12], description: 'Options to draw in a round: 1, 2, 4, 6, 8 or 12 (default 6).' },
|
|
65
|
+
pages: { type: 'array', maxItems: 8, items: { type: 'string', maxLength: 60 }, description: 'Branch only: the page names to draw, one option each (none: four default pages).' },
|
|
64
66
|
versionId: { type: 'string' },
|
|
65
67
|
prompt: { type: 'string', description: 'The edit instruction. Optional when strokes are sent.' },
|
|
66
68
|
strokes: { type: 'array', maxItems: 24, items: strokeSchema },
|
|
@@ -74,11 +76,11 @@ const opIdProperty = {
|
|
|
74
76
|
export const SLATE_TOOL_DEFINITIONS = [
|
|
75
77
|
{
|
|
76
78
|
name: SLATE_SHOW_TOOL,
|
|
77
|
-
title: '
|
|
79
|
+
title: 'Show design workspace',
|
|
78
80
|
description: 'Show the 12ui Design workspace for a finished draft run: its options as an interactive card (one large image, the other options as thumbnails, and Select) the user opens into a workspace to design, edit, branch and convert. Returns the options, versions, rounds, the selection, the file paths and the continuation command as text too. Reads only. Omit runDir for the most recent draft run.',
|
|
79
81
|
inputSchema: { type: 'object', additionalProperties: false, properties: { runDir: runDirProperty } },
|
|
80
82
|
outputSchema: slateViewOutputSchema,
|
|
81
|
-
annotations: { ...readOnlyAnnotations, title: '
|
|
83
|
+
annotations: { ...readOnlyAnnotations, title: 'Show design workspace' },
|
|
82
84
|
_meta: { ...uiResource, 'openai/ui': { preferredModelDisplayMode: 'inline' } },
|
|
83
85
|
},
|
|
84
86
|
{
|
|
@@ -91,11 +93,11 @@ export const SLATE_TOOL_DEFINITIONS = [
|
|
|
91
93
|
},
|
|
92
94
|
{
|
|
93
95
|
name: SLATE_OPEN_TOOL,
|
|
94
|
-
title: '
|
|
96
|
+
title: 'Open design workspace',
|
|
95
97
|
description: 'Open the Design workspace of the most recent finished draft run, or an empty state when there is none.',
|
|
96
98
|
inputSchema: { type: 'object', additionalProperties: false, properties: {} },
|
|
97
99
|
outputSchema: slateViewOutputSchema,
|
|
98
|
-
annotations: { ...readOnlyAnnotations, title: '
|
|
100
|
+
annotations: { ...readOnlyAnnotations, title: 'Open design workspace' },
|
|
99
101
|
_meta: { ...uiResource, 'openai/ui': { entrypoints: [{ type: 'global' }] } },
|
|
100
102
|
},
|
|
101
103
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-tool-defs.js","sourceRoot":"","sources":["../src/mcp-slate-tool-defs.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;;;;;;GAOG;AAEH,MAAM,UAAU,GAAG,EAAE,EAAE,EAAE,EAAE,WAAW,EAA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AM,oBAAoB,CAAC;AAE3D,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,OAE1C,CAAC;AAEF,+GAA+G;AAC/G,eAAO,MAAM,sBAAsB,GAAI,UAAS,gBAAqB,MAErD,MAAM,MAAM,EAAE,gBAAgB,OAAO,KAAG,OAAO,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"mcp-slate-tools.d.ts","sourceRoot":"","sources":["../src/mcp-slate-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AA8BzE,OAAO,EAA0C,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,OAE1C,CAAC;AAEF,+GAA+G;AAC/G,eAAO,MAAM,sBAAsB,GAAI,UAAS,gBAAqB,MAErD,MAAM,MAAM,EAAE,gBAAgB,OAAO,KAAG,OAAO,CAAC,cAAc,CAwC7E,CAAC"}
|
package/dist/mcp-slate-tools.js
CHANGED
|
@@ -10,7 +10,14 @@ export const createSlateToolHandler = (context = {}) => {
|
|
|
10
10
|
try {
|
|
11
11
|
const input = inputRecord(argumentsValue);
|
|
12
12
|
switch (name) {
|
|
13
|
-
case SLATE_SHOW_TOOL:
|
|
13
|
+
case SLATE_SHOW_TOOL: {
|
|
14
|
+
// The screen is being shown: its References tab's websites are gathered (once per workspace and server).
|
|
15
|
+
const shown = await showWorkspace(input, runtime);
|
|
16
|
+
const runDir = shown.structuredContent?.runDir;
|
|
17
|
+
if (typeof runDir === 'string' && runDir)
|
|
18
|
+
runtime.gatherReferences(runDir);
|
|
19
|
+
return shown;
|
|
20
|
+
}
|
|
14
21
|
case SLATE_DATA_TOOL:
|
|
15
22
|
return await showWorkspace(input, runtime);
|
|
16
23
|
case SLATE_OPEN_TOOL:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-tools.js","sourceRoot":"","sources":["../src/mcp-slate-tools.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,UAAU,EACV,eAAe,EACf,YAAY,EACZ,SAAS,EACT,aAAa,EACb,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAyB,MAAM,oBAAoB,CAAC;AAEnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAW,EAAE,CAAC,CACnD,gBAAsC,CAAC,QAAQ,CAAC,IAAI,CAAC,CACvD,CAAC;AAEF,+GAA+G;AAC/G,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,UAA4B,EAAE,EAAE,EAAE;IACvE,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IACtC,OAAO,KAAK,EAAE,IAAY,EAAE,cAAuB,EAA2B,EAAE;QAC9E,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;YAC1C,QAAQ,IAAI,EAAE,CAAC;gBACb,KAAK,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp-slate-tools.js","sourceRoot":"","sources":["../src/mcp-slate-tools.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,sBA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aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAC7C,KAAK,eAAe;oBAClB,OAAO,MAAM,aAAa,CAAC,OAAO,CAAC,CAAC;gBACtC,KAAK,gBAAgB;oBACnB,OAAO,MAAM,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAC3C,KAAK,oBAAoB;oBACvB,OAAO,MAAM,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAC/C,KAAK,kBAAkB;oBACrB,OAAO,MAAM,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAC7C,KAAK,sBAAsB;oBACzB,OAAO,MAAM,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBACjD,KAAK,eAAe;oBAClB,OAAO,MAAM,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAC1C,KAAK,kBAAkB;oBACrB,OAAO,MAAM,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAC7C,KAAK,iBAAiB;oBACpB,OAAO,MAAM,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAC5C,KAAK,cAAc;oBACjB,OAAO,MAAM,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBACzC,KAAK,iBAAiB;oBACpB,OAAO,MAAM,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAC5C;oBACE,MAAM,IAAI,KAAK,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { SlateConvertOutput } from './slate-view-contract.js';
|
|
2
1
|
/**
|
|
3
2
|
* Every word the Design workspace screen shows, in English, in one place: the source catalogue the translations in
|
|
4
3
|
* `mcp-slate-ui-locales/` follow key for key, and the fallback for any key a locale lacks. The script receives every
|
|
@@ -23,82 +22,61 @@ export declare const SLATE_UI_COPY: {
|
|
|
23
22
|
readonly empty: "No finished draft run was found. Start one, then open this again.";
|
|
24
23
|
readonly tabDesigns: "Designs";
|
|
25
24
|
readonly tabInspiration: "Inspiration";
|
|
25
|
+
readonly tabReferences: "References";
|
|
26
26
|
readonly openWorkspace: "Open workspace";
|
|
27
27
|
readonly closeWorkspace: "Close workspace";
|
|
28
|
+
readonly referencesFinding: "Finding sites…";
|
|
29
|
+
readonly referencesNone: "No websites";
|
|
30
|
+
readonly referencesOpenSite: "Open site";
|
|
28
31
|
readonly select: "Select";
|
|
29
32
|
readonly selected: "Selected";
|
|
30
33
|
readonly edit: "Edit";
|
|
31
34
|
readonly branch: "Branch";
|
|
32
|
-
readonly convert: "Convert";
|
|
33
35
|
readonly generate: "Generate";
|
|
34
36
|
readonly apply: "Apply";
|
|
35
|
-
readonly send: "Send";
|
|
36
37
|
readonly search: "Search";
|
|
37
38
|
readonly resume: "Resume";
|
|
38
39
|
readonly cancel: "Cancel";
|
|
39
|
-
readonly clear: "Clear";
|
|
40
40
|
readonly undo: "Undo";
|
|
41
41
|
readonly change: "Change";
|
|
42
42
|
readonly continueRound: "Continue";
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
43
|
+
readonly choose: "Build this";
|
|
44
|
+
readonly chosen: "Building";
|
|
45
|
+
readonly expand: "Expand";
|
|
46
|
+
readonly more: "More";
|
|
47
|
+
readonly perRound: "Designs per round";
|
|
48
|
+
readonly expandName: "Open {name}";
|
|
49
|
+
readonly drawingName: "{name}, drawing";
|
|
50
|
+
readonly actionsFor: "Actions for {name}";
|
|
51
|
+
readonly versionPage: "{label}, {page}";
|
|
52
|
+
readonly pageName: "Page {n}";
|
|
53
|
+
readonly fromLabel: "from {label}";
|
|
54
|
+
readonly branchOf: "Branch of {label}";
|
|
55
|
+
readonly fedBy: "Inspiration used";
|
|
56
|
+
readonly readyOf: "{n} of {m}";
|
|
57
|
+
readonly showEarlier: "Earlier rounds";
|
|
58
|
+
readonly previous: "Previous";
|
|
59
|
+
readonly next: "Next";
|
|
60
|
+
readonly close: "Close";
|
|
61
|
+
readonly zoomIn: "Zoom in";
|
|
62
|
+
readonly zoomOut: "Zoom out";
|
|
63
|
+
readonly zoomFit: "Fit";
|
|
64
|
+
readonly zoomActual: "Actual size";
|
|
65
|
+
readonly editChange: "Describe a change";
|
|
66
|
+
readonly drawOnDesign: "Draw on the design";
|
|
67
|
+
readonly branchPages: "Pages (optional), e.g. about, sign in, settings";
|
|
53
68
|
readonly pauseLabel: "Before drawing";
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
readonly pauseStarting: "Starting.";
|
|
69
|
+
readonly pauseHeld: "Paused";
|
|
70
|
+
readonly pauseStarting: "Starting";
|
|
57
71
|
readonly pauseDrawsFrom: "Option {label} will be drawn from this reference.";
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly pauseNone: "Choose at least one reference.";
|
|
61
|
-
readonly pauseAtMost: "{n} at most, one per option.";
|
|
62
|
-
readonly pauseFrom: "{m, plural, one {Every option is drawn from # reference.} other {{n} options are drawn from # references, in turn.}}";
|
|
63
|
-
readonly scribbleHint: "Draw on the image to show where. An X or a circle is enough.";
|
|
64
|
-
readonly editAria: "Edit instruction";
|
|
65
|
-
readonly editPlaceholder: "Optional if you drew on the image. For example, make the headline larger.";
|
|
66
|
-
readonly editHelp: "Applies the change to {label} and saves the result as a new version.";
|
|
67
|
-
readonly editHelpMarks: "Marks only: the change is inferred from what you drew.";
|
|
72
|
+
readonly pauseNoReference: "No reference";
|
|
73
|
+
readonly pauseAtMost: "{n} at most";
|
|
68
74
|
readonly editTooLong: "This instruction is too long. Shorten it by {n, plural, one {# character} other {# characters}}.";
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly branchHelp: "Your agent expands this design into more pages and app states.";
|
|
72
|
-
readonly convertLabel: "Format";
|
|
73
|
-
readonly serviceGroup: "12ui service";
|
|
74
|
-
readonly qualityLabel: "Quality";
|
|
75
|
-
readonly qualityHelp: "Higher quality takes longer.";
|
|
76
|
-
readonly fast: "Fast";
|
|
77
|
-
readonly standard: "Standard";
|
|
78
|
-
readonly pro: "Pro";
|
|
79
|
-
readonly widthLabel: "Width";
|
|
80
|
-
readonly widthPlaceholder: "Pixels";
|
|
81
|
-
readonly widthHelp: "Optional. Output width in pixels; blank keeps the original size.";
|
|
82
|
-
readonly layoutsLabel: "Layouts";
|
|
83
|
-
readonly layoutsHelp: "How carefully the layouts adapt to other screen sizes.";
|
|
84
|
-
readonly inspirationLabel: "Search inspiration";
|
|
85
|
-
readonly inspirationPlaceholder: "What style are you looking for?";
|
|
86
|
-
readonly inspirationEmpty: "Search for a style to pick references for your next options.";
|
|
87
|
-
readonly inspirationNoMatches: "No matches. Try different words.";
|
|
88
|
-
readonly searching: "Searching.";
|
|
75
|
+
readonly inspirationEmpty: "No results yet";
|
|
76
|
+
readonly inspirationNoMatches: "No matches";
|
|
89
77
|
readonly eightAtMost: "Eight at most.";
|
|
90
78
|
readonly searchFailed: "Search failed: {message}";
|
|
91
79
|
readonly tryAgain: "Try again in {n, plural, one {# second} other {# seconds}}.";
|
|
92
|
-
readonly queryFrom: "Search used for {count, plural, one {round {rounds}} other {rounds {rounds}}}.";
|
|
93
|
-
readonly queryNewestOthers: "Search used for {count, plural, one {round {rounds}} other {rounds {rounds}}}. {otherCount, plural, one {Round {others} used a different search.} other {Rounds {others} used different searches.}}";
|
|
94
|
-
readonly queryLastSearch: "Your last search.";
|
|
95
|
-
readonly queryCut: "A search takes the first {n} characters.";
|
|
96
|
-
readonly resultsMax: "{n, plural, one {# result} other {# results}}, the most a search returns.";
|
|
97
|
-
readonly resultsCount: "{n, plural, one {# result.} other {# results.}}";
|
|
98
|
-
readonly usedIn: "Used in {places}";
|
|
99
|
-
readonly usedPlace: "{options, plural, =0 {round {round}} one {round {round}, option {labels}} other {round {round}, options {labels}}}";
|
|
100
|
-
readonly usedSeparator: "; ";
|
|
101
|
-
readonly selectionDraws: "{m, plural, one {# selected. Draws {n} new options from it.} other {# selected. Draws {n} new options from them.}}";
|
|
102
80
|
readonly roundRunning: "Wait for the running round to finish.";
|
|
103
81
|
readonly roundHeading: "Round {n}";
|
|
104
82
|
readonly likeTitle: "Like {label}";
|
|
@@ -109,16 +87,12 @@ export declare const SLATE_UI_COPY: {
|
|
|
109
87
|
readonly versionTitle: "{label}: {prompt}";
|
|
110
88
|
readonly versionTitleMarks: "{label}: drawn marks only";
|
|
111
89
|
readonly referenceName: "Reference {description}";
|
|
112
|
-
readonly optionsGroup: "Options";
|
|
113
90
|
readonly fileMissing: "File missing on this Mac";
|
|
114
91
|
readonly fileChanged: "This file changed on disk";
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly pickMissing: "The picked image is missing on this Mac. Select it again.";
|
|
120
|
-
readonly pickChanged: "The picked image changed on disk. Select a different version.";
|
|
121
|
-
readonly sent: "Sent to the agent.";
|
|
92
|
+
readonly selectedRefused: "Started the build from {label} and saved it, but the host did not take the message: {detail}";
|
|
93
|
+
readonly couldNotSelect: "Could not start the build: {detail}";
|
|
94
|
+
readonly pickMissing: "The picked image is missing on this Mac. Build another version.";
|
|
95
|
+
readonly pickChanged: "The picked image changed on disk. Build a different version.";
|
|
122
96
|
readonly sentRefused: "Recorded the request, but the host did not take the message: {detail}";
|
|
123
97
|
readonly designing: "Designing.";
|
|
124
98
|
readonly designingProgress: "Designing. {n} of {m} ready.";
|
|
@@ -141,32 +115,11 @@ export declare const SLATE_UI_COPY: {
|
|
|
141
115
|
readonly requestFailed: "The request failed.";
|
|
142
116
|
readonly pictureNotReturned: "No picture came back.";
|
|
143
117
|
readonly noView: "The tool result has no workspace.";
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
*/
|
|
150
|
-
export declare const SLATE_FORMAT_COPY: {
|
|
151
|
-
readonly formatAssets: "Assets";
|
|
152
|
-
readonly formatResponsiveHtml: "Responsive HTML";
|
|
153
|
-
readonly formatFixedHtml: "Fixed HTML";
|
|
154
|
-
readonly convertHelpLocalHtml: "Editable HTML and CSS, built on this Mac.";
|
|
155
|
-
readonly convertHelpLocalReact: "Editable React components and CSS, built on this Mac.";
|
|
156
|
-
readonly convertHelpLocalAssets: "The design's images as separate files, cut out on this Mac.";
|
|
157
|
-
readonly convertHelpServiceHtml: "Responsive HTML that adapts to screen widths, built by 12ui.";
|
|
158
|
-
readonly convertHelpServiceLayerdoc: "An editable layered document, built by 12ui.";
|
|
159
|
-
readonly convertHelpServiceHtmlFixed: "Fixed-width HTML that matches the picture, built by 12ui.";
|
|
160
|
-
readonly convertHelpServiceSvg: "A vector SVG, built by 12ui.";
|
|
161
|
-
readonly convertHelpServicePng: "A PNG image at the width you choose, made by 12ui.";
|
|
162
|
-
readonly convertHelpServiceJpg: "A JPG image at the width you choose, made by 12ui.";
|
|
163
|
-
readonly convertHelpServiceWebp: "A WebP image at the width you choose, made by 12ui.";
|
|
164
|
-
readonly convertHelpServicePdf: "A PDF file with editable layers, made by 12ui.";
|
|
165
|
-
readonly convertHelpServicePsd: "A PSD file with editable layers, made by 12ui.";
|
|
166
|
-
readonly convertHelpServicePptx: "A PowerPoint file with editable layers, made by 12ui.";
|
|
167
|
-
readonly convertHelpServiceSketch: "A Sketch file with editable layers, made by 12ui.";
|
|
168
|
-
readonly convertHelpRemoteHtml: "Your agent builds editable HTML from this image in your project.";
|
|
169
|
-
readonly convertHelpRemoteReact: "Your agent builds React components from this image in your project.";
|
|
118
|
+
readonly briefLabel: "Design prompt";
|
|
119
|
+
readonly briefPlaceholder: "Describe what to design";
|
|
120
|
+
readonly selectedCount: "{n} selected";
|
|
121
|
+
readonly startsIn: "Starts in {n} s";
|
|
122
|
+
readonly removeReference: "Remove {name}";
|
|
170
123
|
};
|
|
171
124
|
/**
|
|
172
125
|
* The words of the browser page `12ui workspace open` serves around the screen (a tab of the person's own browser):
|
|
@@ -323,105 +276,65 @@ export declare const SLATE_UI_MESSAGES: {
|
|
|
323
276
|
readonly browserRequestSent: "Request sent";
|
|
324
277
|
readonly browserAgentHasIt: "Your agent has it. You can close this tab.";
|
|
325
278
|
readonly browserSessionAnswered: "The session answered {status}.";
|
|
326
|
-
readonly formatAssets: "Assets";
|
|
327
|
-
readonly formatResponsiveHtml: "Responsive HTML";
|
|
328
|
-
readonly formatFixedHtml: "Fixed HTML";
|
|
329
|
-
readonly convertHelpLocalHtml: "Editable HTML and CSS, built on this Mac.";
|
|
330
|
-
readonly convertHelpLocalReact: "Editable React components and CSS, built on this Mac.";
|
|
331
|
-
readonly convertHelpLocalAssets: "The design's images as separate files, cut out on this Mac.";
|
|
332
|
-
readonly convertHelpServiceHtml: "Responsive HTML that adapts to screen widths, built by 12ui.";
|
|
333
|
-
readonly convertHelpServiceLayerdoc: "An editable layered document, built by 12ui.";
|
|
334
|
-
readonly convertHelpServiceHtmlFixed: "Fixed-width HTML that matches the picture, built by 12ui.";
|
|
335
|
-
readonly convertHelpServiceSvg: "A vector SVG, built by 12ui.";
|
|
336
|
-
readonly convertHelpServicePng: "A PNG image at the width you choose, made by 12ui.";
|
|
337
|
-
readonly convertHelpServiceJpg: "A JPG image at the width you choose, made by 12ui.";
|
|
338
|
-
readonly convertHelpServiceWebp: "A WebP image at the width you choose, made by 12ui.";
|
|
339
|
-
readonly convertHelpServicePdf: "A PDF file with editable layers, made by 12ui.";
|
|
340
|
-
readonly convertHelpServicePsd: "A PSD file with editable layers, made by 12ui.";
|
|
341
|
-
readonly convertHelpServicePptx: "A PowerPoint file with editable layers, made by 12ui.";
|
|
342
|
-
readonly convertHelpServiceSketch: "A Sketch file with editable layers, made by 12ui.";
|
|
343
|
-
readonly convertHelpRemoteHtml: "Your agent builds editable HTML from this image in your project.";
|
|
344
|
-
readonly convertHelpRemoteReact: "Your agent builds React components from this image in your project.";
|
|
345
279
|
readonly title: "Design workspace";
|
|
346
280
|
readonly empty: "No finished draft run was found. Start one, then open this again.";
|
|
347
281
|
readonly tabDesigns: "Designs";
|
|
348
282
|
readonly tabInspiration: "Inspiration";
|
|
283
|
+
readonly tabReferences: "References";
|
|
349
284
|
readonly openWorkspace: "Open workspace";
|
|
350
285
|
readonly closeWorkspace: "Close workspace";
|
|
286
|
+
readonly referencesFinding: "Finding sites…";
|
|
287
|
+
readonly referencesNone: "No websites";
|
|
288
|
+
readonly referencesOpenSite: "Open site";
|
|
351
289
|
readonly select: "Select";
|
|
352
290
|
readonly selected: "Selected";
|
|
353
291
|
readonly edit: "Edit";
|
|
354
292
|
readonly branch: "Branch";
|
|
355
|
-
readonly convert: "Convert";
|
|
356
293
|
readonly generate: "Generate";
|
|
357
294
|
readonly apply: "Apply";
|
|
358
|
-
readonly send: "Send";
|
|
359
295
|
readonly search: "Search";
|
|
360
296
|
readonly resume: "Resume";
|
|
361
297
|
readonly cancel: "Cancel";
|
|
362
|
-
readonly clear: "Clear";
|
|
363
298
|
readonly undo: "Undo";
|
|
364
299
|
readonly change: "Change";
|
|
365
300
|
readonly continueRound: "Continue";
|
|
366
|
-
readonly
|
|
367
|
-
readonly
|
|
368
|
-
readonly
|
|
369
|
-
readonly
|
|
370
|
-
readonly
|
|
371
|
-
readonly
|
|
372
|
-
readonly
|
|
373
|
-
readonly
|
|
374
|
-
readonly
|
|
375
|
-
readonly
|
|
301
|
+
readonly choose: "Build this";
|
|
302
|
+
readonly chosen: "Building";
|
|
303
|
+
readonly expand: "Expand";
|
|
304
|
+
readonly more: "More";
|
|
305
|
+
readonly perRound: "Designs per round";
|
|
306
|
+
readonly expandName: "Open {name}";
|
|
307
|
+
readonly drawingName: "{name}, drawing";
|
|
308
|
+
readonly actionsFor: "Actions for {name}";
|
|
309
|
+
readonly versionPage: "{label}, {page}";
|
|
310
|
+
readonly pageName: "Page {n}";
|
|
311
|
+
readonly fromLabel: "from {label}";
|
|
312
|
+
readonly branchOf: "Branch of {label}";
|
|
313
|
+
readonly fedBy: "Inspiration used";
|
|
314
|
+
readonly readyOf: "{n} of {m}";
|
|
315
|
+
readonly showEarlier: "Earlier rounds";
|
|
316
|
+
readonly previous: "Previous";
|
|
317
|
+
readonly next: "Next";
|
|
318
|
+
readonly close: "Close";
|
|
319
|
+
readonly zoomIn: "Zoom in";
|
|
320
|
+
readonly zoomOut: "Zoom out";
|
|
321
|
+
readonly zoomFit: "Fit";
|
|
322
|
+
readonly zoomActual: "Actual size";
|
|
323
|
+
readonly editChange: "Describe a change";
|
|
324
|
+
readonly drawOnDesign: "Draw on the design";
|
|
325
|
+
readonly branchPages: "Pages (optional), e.g. about, sign in, settings";
|
|
376
326
|
readonly pauseLabel: "Before drawing";
|
|
377
|
-
readonly
|
|
378
|
-
readonly
|
|
379
|
-
readonly pauseStarting: "Starting.";
|
|
327
|
+
readonly pauseHeld: "Paused";
|
|
328
|
+
readonly pauseStarting: "Starting";
|
|
380
329
|
readonly pauseDrawsFrom: "Option {label} will be drawn from this reference.";
|
|
381
|
-
readonly
|
|
382
|
-
readonly
|
|
383
|
-
readonly pauseNone: "Choose at least one reference.";
|
|
384
|
-
readonly pauseAtMost: "{n} at most, one per option.";
|
|
385
|
-
readonly pauseFrom: "{m, plural, one {Every option is drawn from # reference.} other {{n} options are drawn from # references, in turn.}}";
|
|
386
|
-
readonly scribbleHint: "Draw on the image to show where. An X or a circle is enough.";
|
|
387
|
-
readonly editAria: "Edit instruction";
|
|
388
|
-
readonly editPlaceholder: "Optional if you drew on the image. For example, make the headline larger.";
|
|
389
|
-
readonly editHelp: "Applies the change to {label} and saves the result as a new version.";
|
|
390
|
-
readonly editHelpMarks: "Marks only: the change is inferred from what you drew.";
|
|
330
|
+
readonly pauseNoReference: "No reference";
|
|
331
|
+
readonly pauseAtMost: "{n} at most";
|
|
391
332
|
readonly editTooLong: "This instruction is too long. Shorten it by {n, plural, one {# character} other {# characters}}.";
|
|
392
|
-
readonly
|
|
393
|
-
readonly
|
|
394
|
-
readonly branchHelp: "Your agent expands this design into more pages and app states.";
|
|
395
|
-
readonly convertLabel: "Format";
|
|
396
|
-
readonly serviceGroup: "12ui service";
|
|
397
|
-
readonly qualityLabel: "Quality";
|
|
398
|
-
readonly qualityHelp: "Higher quality takes longer.";
|
|
399
|
-
readonly fast: "Fast";
|
|
400
|
-
readonly standard: "Standard";
|
|
401
|
-
readonly pro: "Pro";
|
|
402
|
-
readonly widthLabel: "Width";
|
|
403
|
-
readonly widthPlaceholder: "Pixels";
|
|
404
|
-
readonly widthHelp: "Optional. Output width in pixels; blank keeps the original size.";
|
|
405
|
-
readonly layoutsLabel: "Layouts";
|
|
406
|
-
readonly layoutsHelp: "How carefully the layouts adapt to other screen sizes.";
|
|
407
|
-
readonly inspirationLabel: "Search inspiration";
|
|
408
|
-
readonly inspirationPlaceholder: "What style are you looking for?";
|
|
409
|
-
readonly inspirationEmpty: "Search for a style to pick references for your next options.";
|
|
410
|
-
readonly inspirationNoMatches: "No matches. Try different words.";
|
|
411
|
-
readonly searching: "Searching.";
|
|
333
|
+
readonly inspirationEmpty: "No results yet";
|
|
334
|
+
readonly inspirationNoMatches: "No matches";
|
|
412
335
|
readonly eightAtMost: "Eight at most.";
|
|
413
336
|
readonly searchFailed: "Search failed: {message}";
|
|
414
337
|
readonly tryAgain: "Try again in {n, plural, one {# second} other {# seconds}}.";
|
|
415
|
-
readonly queryFrom: "Search used for {count, plural, one {round {rounds}} other {rounds {rounds}}}.";
|
|
416
|
-
readonly queryNewestOthers: "Search used for {count, plural, one {round {rounds}} other {rounds {rounds}}}. {otherCount, plural, one {Round {others} used a different search.} other {Rounds {others} used different searches.}}";
|
|
417
|
-
readonly queryLastSearch: "Your last search.";
|
|
418
|
-
readonly queryCut: "A search takes the first {n} characters.";
|
|
419
|
-
readonly resultsMax: "{n, plural, one {# result} other {# results}}, the most a search returns.";
|
|
420
|
-
readonly resultsCount: "{n, plural, one {# result.} other {# results.}}";
|
|
421
|
-
readonly usedIn: "Used in {places}";
|
|
422
|
-
readonly usedPlace: "{options, plural, =0 {round {round}} one {round {round}, option {labels}} other {round {round}, options {labels}}}";
|
|
423
|
-
readonly usedSeparator: "; ";
|
|
424
|
-
readonly selectionDraws: "{m, plural, one {# selected. Draws {n} new options from it.} other {# selected. Draws {n} new options from them.}}";
|
|
425
338
|
readonly roundRunning: "Wait for the running round to finish.";
|
|
426
339
|
readonly roundHeading: "Round {n}";
|
|
427
340
|
readonly likeTitle: "Like {label}";
|
|
@@ -432,16 +345,12 @@ export declare const SLATE_UI_MESSAGES: {
|
|
|
432
345
|
readonly versionTitle: "{label}: {prompt}";
|
|
433
346
|
readonly versionTitleMarks: "{label}: drawn marks only";
|
|
434
347
|
readonly referenceName: "Reference {description}";
|
|
435
|
-
readonly optionsGroup: "Options";
|
|
436
348
|
readonly fileMissing: "File missing on this Mac";
|
|
437
349
|
readonly fileChanged: "This file changed on disk";
|
|
438
|
-
readonly
|
|
439
|
-
readonly
|
|
440
|
-
readonly
|
|
441
|
-
readonly
|
|
442
|
-
readonly pickMissing: "The picked image is missing on this Mac. Select it again.";
|
|
443
|
-
readonly pickChanged: "The picked image changed on disk. Select a different version.";
|
|
444
|
-
readonly sent: "Sent to the agent.";
|
|
350
|
+
readonly selectedRefused: "Started the build from {label} and saved it, but the host did not take the message: {detail}";
|
|
351
|
+
readonly couldNotSelect: "Could not start the build: {detail}";
|
|
352
|
+
readonly pickMissing: "The picked image is missing on this Mac. Build another version.";
|
|
353
|
+
readonly pickChanged: "The picked image changed on disk. Build a different version.";
|
|
445
354
|
readonly sentRefused: "Recorded the request, but the host did not take the message: {detail}";
|
|
446
355
|
readonly designing: "Designing.";
|
|
447
356
|
readonly designingProgress: "Designing. {n} of {m} ready.";
|
|
@@ -464,6 +373,11 @@ export declare const SLATE_UI_MESSAGES: {
|
|
|
464
373
|
readonly requestFailed: "The request failed.";
|
|
465
374
|
readonly pictureNotReturned: "No picture came back.";
|
|
466
375
|
readonly noView: "The tool result has no workspace.";
|
|
376
|
+
readonly briefLabel: "Design prompt";
|
|
377
|
+
readonly briefPlaceholder: "Describe what to design";
|
|
378
|
+
readonly selectedCount: "{n} selected";
|
|
379
|
+
readonly startsIn: "Starts in {n} s";
|
|
380
|
+
readonly removeReference: "Remove {name}";
|
|
467
381
|
};
|
|
468
382
|
export type SlateUiCopy = typeof SLATE_UI_COPY;
|
|
469
383
|
export type SlateUiMessageKey = keyof typeof SLATE_UI_MESSAGES;
|
|
@@ -473,43 +387,9 @@ export type SlateUiMessages = {
|
|
|
473
387
|
};
|
|
474
388
|
/** The catalogue keys the browser page around the screen uses (it carries only these). */
|
|
475
389
|
export declare const SLATE_BROWSER_PAGE_KEYS: readonly ["title", "browserSessionEnded", "browserRunAgain", "browserNotRunning", "browserChoiceSent", "browserRequestSent", "browserAgentHasIt", "browserSessionAnswered"];
|
|
476
|
-
/**
|
|
477
|
-
* The choices of the Convert dialog's Format select, in the order it offers
|
|
478
|
-
* them: three local formats (an unlabeled group), then the 12ui service
|
|
479
|
-
* formats. Labels of the service group come from the conversion catalogue so
|
|
480
|
-
* this list cannot drift from the CLI; `react` and `assets` are the two local
|
|
481
|
-
* exports the catalogue does not carry (see cli-local-export.ts). `value` is
|
|
482
|
-
* unique across the two engines (`html` exists in both). `labelKey` names the
|
|
483
|
-
* catalogue message of a label that carries words (its English equals `label`);
|
|
484
|
-
* a product or file name has none and is shown as it is.
|
|
485
|
-
*/
|
|
486
|
-
type ConvertChoice = {
|
|
487
|
-
value: string;
|
|
488
|
-
engine: 'local' | 'service';
|
|
489
|
-
output: SlateConvertOutput;
|
|
490
|
-
label: string;
|
|
491
|
-
labelKey?: SlateUiMessageKey;
|
|
492
|
-
};
|
|
493
|
-
export declare const SLATE_CONVERT_CHOICES: readonly ConvertChoice[];
|
|
494
|
-
/**
|
|
495
|
-
* The hosted target's Format select: the two outputs an agent can build in the user's own project from the image, both
|
|
496
|
-
* `engine: 'local'` on the wire. There is no service group (the hosted server has no 12ui service), and no Assets (that
|
|
497
|
-
* needs the CLI on the person's machine).
|
|
498
|
-
*/
|
|
499
|
-
export declare const SLATE_REMOTE_CONVERT_CHOICES: readonly ConvertChoice[];
|
|
500
|
-
/** The catalogue message of the line under the Format select, keyed by the choice's value. */
|
|
501
|
-
export declare const SLATE_CONVERT_DESCRIPTION_KEYS: Readonly<Record<string, SlateUiMessageKey>>;
|
|
502
|
-
/** The hosted target's lines: its agent builds in the person's own project, so nothing is built on a Mac or by 12ui. */
|
|
503
|
-
export declare const SLATE_REMOTE_CONVERT_DESCRIPTION_KEYS: Readonly<Record<string, SlateUiMessageKey>>;
|
|
504
|
-
/** The English lines, by choice value, for the copy tests and the CLI's own words. */
|
|
505
|
-
export declare const SLATE_CONVERT_DESCRIPTIONS: Readonly<Record<string, string>>;
|
|
506
|
-
export declare const SLATE_REMOTE_CONVERT_DESCRIPTIONS: Readonly<Record<string, string>>;
|
|
507
|
-
/** The widest output the CLI accepts (`MAX_IMAGE_OUTPUT_WIDTH`, pinned equal by a test; that module needs sharp). */
|
|
508
|
-
export declare const SLATE_CONVERT_MAX_WIDTH = 8192;
|
|
509
390
|
/** How many options the Generate more panel offers, and the one it starts on. A control, so it is not in the copy. */
|
|
510
391
|
export declare const SLATE_MORE_COUNTS: {
|
|
511
392
|
readonly choices: readonly [1, 2, 4, 6, 8, 12];
|
|
512
393
|
readonly initial: 6;
|
|
513
394
|
};
|
|
514
|
-
export {};
|
|
515
395
|
//# sourceMappingURL=mcp-slate-ui-copy.d.ts.map
|