@12ui/design 0.2.92 → 0.2.94
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/SKILL.md +1 -1
- package/dist/branch-client.d.ts +8 -0
- package/dist/branch-client.d.ts.map +1 -1
- package/dist/branch-client.js +1 -0
- package/dist/branch-client.js.map +1 -1
- package/dist/branch-completion.d.ts +2 -0
- package/dist/branch-completion.d.ts.map +1 -1
- package/dist/branch-completion.js +1 -1
- package/dist/branch-completion.js.map +1 -1
- package/dist/branch-core/branch-planner.d.ts +25 -11
- package/dist/branch-core/branch-planner.d.ts.map +1 -1
- package/dist/branch-core/branch-planner.js +67 -25
- package/dist/branch-core/branch-planner.js.map +1 -1
- package/dist/branch-core/branch-scope.d.ts +73 -0
- package/dist/branch-core/branch-scope.d.ts.map +1 -0
- package/dist/branch-core/branch-scope.js +88 -0
- package/dist/branch-core/branch-scope.js.map +1 -0
- package/dist/branch-core/index.d.ts +2 -1
- package/dist/branch-core/index.d.ts.map +1 -1
- package/dist/branch-core/index.js +1 -0
- package/dist/branch-core/index.js.map +1 -1
- package/dist/branch-execution.d.ts +14 -1
- package/dist/branch-execution.d.ts.map +1 -1
- package/dist/branch-execution.js +56 -13
- package/dist/branch-execution.js.map +1 -1
- package/dist/branch-identity.d.ts +22 -1
- package/dist/branch-identity.d.ts.map +1 -1
- package/dist/branch-identity.js +23 -4
- package/dist/branch-identity.js.map +1 -1
- package/dist/branch-local-client.d.ts.map +1 -1
- package/dist/branch-local-client.js +2 -1
- package/dist/branch-local-client.js.map +1 -1
- package/dist/branch-local-plan.d.ts +3 -0
- package/dist/branch-local-plan.d.ts.map +1 -1
- package/dist/branch-local-plan.js +1 -0
- package/dist/branch-local-plan.js.map +1 -1
- package/dist/branch-page-conversion.js +1 -1
- package/dist/branch-page-conversion.js.map +1 -1
- package/dist/branch-page-rollover.js +2 -2
- package/dist/branch-page-rollover.js.map +1 -1
- package/dist/branch-plan.d.ts +9 -0
- package/dist/branch-plan.d.ts.map +1 -1
- package/dist/branch-plan.js +3 -0
- package/dist/branch-plan.js.map +1 -1
- package/dist/branch-run-outcome.d.ts +24 -0
- package/dist/branch-run-outcome.d.ts.map +1 -0
- package/dist/branch-run-outcome.js +31 -0
- package/dist/branch-run-outcome.js.map +1 -0
- package/dist/branch-run-record.d.ts +13 -0
- package/dist/branch-run-record.d.ts.map +1 -1
- package/dist/branch-run-record.js.map +1 -1
- package/dist/branch-run-supersede.d.ts +41 -0
- package/dist/branch-run-supersede.d.ts.map +1 -0
- package/dist/branch-run-supersede.js +64 -0
- package/dist/branch-run-supersede.js.map +1 -0
- package/dist/cli-arguments.d.ts.map +1 -1
- package/dist/cli-arguments.js +1 -0
- package/dist/cli-arguments.js.map +1 -1
- package/dist/cli-branch-command.d.ts.map +1 -1
- package/dist/cli-branch-command.js +13 -1
- package/dist/cli-branch-command.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 +2 -1
- package/dist/cli-help/design.js.map +1 -1
- package/dist/cli-help/index.d.ts +2 -2
- package/dist/cli-workspace-command.d.ts.map +1 -1
- package/dist/cli-workspace-command.js +3 -0
- package/dist/cli-workspace-command.js.map +1 -1
- package/dist/mcp-slate-tools.d.ts +8 -1
- package/dist/mcp-slate-tools.d.ts.map +1 -1
- package/dist/mcp-slate-tools.js +67 -35
- package/dist/mcp-slate-tools.js.map +1 -1
- package/dist/mcp-slate-ui-copy.d.ts +16 -6
- package/dist/mcp-slate-ui-copy.d.ts.map +1 -1
- package/dist/mcp-slate-ui-copy.js +11 -4
- 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 +8 -3
- 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 +8 -3
- 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 +8 -3
- 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 +8 -3
- 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 +8 -3
- 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 +7 -2
- 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 +7 -2
- 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 +8 -3
- 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 +8 -3
- 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 +8 -3
- 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 +8 -3
- package/dist/mcp-slate-ui-locales/zh-TW.js.map +1 -1
- package/dist/mcp-slate-ui-script-designs.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-designs.js +25 -4
- package/dist/mcp-slate-ui-script-designs.js.map +1 -1
- package/dist/mcp-slate-ui-script-inspiration-gallery.d.ts +4 -2
- package/dist/mcp-slate-ui-script-inspiration-gallery.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-inspiration-gallery.js +21 -3
- package/dist/mcp-slate-ui-script-inspiration-gallery.js.map +1 -1
- package/dist/mcp-slate-ui-script-loading.d.ts +11 -0
- package/dist/mcp-slate-ui-script-loading.d.ts.map +1 -0
- package/dist/mcp-slate-ui-script-loading.js +19 -0
- package/dist/mcp-slate-ui-script-loading.js.map +1 -0
- package/dist/mcp-slate-ui-script-references.d.ts +7 -2
- package/dist/mcp-slate-ui-script-references.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-references.js +16 -5
- package/dist/mcp-slate-ui-script-references.js.map +1 -1
- package/dist/mcp-slate-ui-script-remote.js +2 -2
- package/dist/mcp-slate-ui-script-state.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-state.js +3 -1
- package/dist/mcp-slate-ui-script-state.js.map +1 -1
- package/dist/mcp-slate-ui-script-viewer.d.ts +4 -3
- package/dist/mcp-slate-ui-script-viewer.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script-viewer.js +13 -4
- package/dist/mcp-slate-ui-script-viewer.js.map +1 -1
- package/dist/mcp-slate-ui-script.d.ts +1 -1
- package/dist/mcp-slate-ui-script.d.ts.map +1 -1
- package/dist/mcp-slate-ui-script.js +2 -0
- package/dist/mcp-slate-ui-script.js.map +1 -1
- package/dist/mcp-slate-ui-styles-designs.d.ts.map +1 -1
- package/dist/mcp-slate-ui-styles-designs.js +7 -0
- package/dist/mcp-slate-ui-styles-designs.js.map +1 -1
- package/dist/mcp-slate-ui-styles-loading-effects.d.ts +14 -0
- package/dist/mcp-slate-ui-styles-loading-effects.d.ts.map +1 -0
- package/dist/mcp-slate-ui-styles-loading-effects.js +67 -0
- package/dist/mcp-slate-ui-styles-loading-effects.js.map +1 -0
- package/dist/mcp-slate-ui-styles-loading.d.ts +11 -4
- package/dist/mcp-slate-ui-styles-loading.d.ts.map +1 -1
- package/dist/mcp-slate-ui-styles-loading.js +17 -14
- package/dist/mcp-slate-ui-styles-loading.js.map +1 -1
- package/dist/mcp-slate-workspace-tools.js +2 -2
- package/dist/mcp-slate-workspace-tools.js.map +1 -1
- package/dist/prototype-browsers.d.ts +8 -2
- package/dist/prototype-browsers.d.ts.map +1 -1
- package/dist/prototype-browsers.js +11 -5
- package/dist/prototype-browsers.js.map +1 -1
- package/dist/server.js +3 -3
- package/dist/server.js.map +1 -1
- package/dist/slate-branch-runner.d.ts.map +1 -1
- package/dist/slate-branch-runner.js +19 -2
- package/dist/slate-branch-runner.js.map +1 -1
- package/dist/slate-retry.d.ts +2 -1
- package/dist/slate-retry.d.ts.map +1 -1
- package/dist/slate-retry.js +32 -0
- package/dist/slate-retry.js.map +1 -1
- package/dist/slate-run-action.js +9 -4
- package/dist/slate-run-action.js.map +1 -1
- package/dist/slate-site-gathering.d.ts +13 -0
- package/dist/slate-site-gathering.d.ts.map +1 -0
- package/dist/slate-site-gathering.js +21 -0
- package/dist/slate-site-gathering.js.map +1 -0
- package/dist/slate-site-references-capture.d.ts +25 -4
- package/dist/slate-site-references-capture.d.ts.map +1 -1
- package/dist/slate-site-references-capture.js +66 -22
- package/dist/slate-site-references-capture.js.map +1 -1
- package/dist/slate-site-references-client.d.ts +3 -1
- package/dist/slate-site-references-client.d.ts.map +1 -1
- package/dist/slate-site-references-client.js +2 -0
- package/dist/slate-site-references-client.js.map +1 -1
- package/dist/slate-site-references-local.d.ts +9 -3
- package/dist/slate-site-references-local.d.ts.map +1 -1
- package/dist/slate-site-references-local.js +42 -17
- package/dist/slate-site-references-local.js.map +1 -1
- package/dist/slate-site-references.d.ts +24 -4
- package/dist/slate-site-references.d.ts.map +1 -1
- package/dist/slate-site-references.js +104 -20
- package/dist/slate-site-references.js.map +1 -1
- package/dist/slate-view-contract.d.ts +20 -1
- package/dist/slate-view-contract.d.ts.map +1 -1
- package/dist/slate-view-contract.js +3 -1
- package/dist/slate-view-contract.js.map +1 -1
- package/dist/slate-view.d.ts +7 -0
- package/dist/slate-view.d.ts.map +1 -1
- package/dist/slate-view.js +19 -2
- package/dist/slate-view.js.map +1 -1
- package/dist/slate-workspace-parse.d.ts.map +1 -1
- package/dist/slate-workspace-parse.js +5 -0
- package/dist/slate-workspace-parse.js.map +1 -1
- package/dist/slate-workspace-types.d.ts +10 -0
- package/dist/slate-workspace-types.d.ts.map +1 -1
- package/dist/workspace-draw-branch.d.ts +2 -1
- package/dist/workspace-draw-branch.d.ts.map +1 -1
- package/dist/workspace-draw-branch.js +14 -5
- package/dist/workspace-draw-branch.js.map +1 -1
- package/dist/workspace-draw-client.d.ts +1 -0
- package/dist/workspace-draw-client.d.ts.map +1 -1
- package/dist/workspace-draw-client.js +6 -3
- package/dist/workspace-draw-client.js.map +1 -1
- package/dist/workspace-draw-messages.d.ts +13 -0
- package/dist/workspace-draw-messages.d.ts.map +1 -1
- package/dist/workspace-draw-messages.js +17 -0
- package/dist/workspace-draw-messages.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 +2 -0
- package/dist/workspace-draw-types.js.map +1 -1
- package/open-design.json +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-ui-script-state.js","sourceRoot":"","sources":["../src/mcp-slate-ui-script-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"mcp-slate-ui-script-state.js","sourceRoot":"","sources":["../src/mcp-slate-ui-script-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgUvC,CAAC"}
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
* - Edit: draw on the design (the scribble layer, mcp-slate-ui-script-scribble.ts; the view fits the design while
|
|
9
9
|
* drawing) and/or type a change, then Enter. The edit runs at once and the view closes onto the Designs tab, where
|
|
10
10
|
* the new version is already a loading tile next to its source.
|
|
11
|
-
* - Branch:
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* - Branch: Continue this page or Other pages (page names optional, comma separated, in a field only that choice
|
|
12
|
+
* shows), then Enter; a line under the bar says what the checked choice does. It runs the branch pipeline on this
|
|
13
|
+
* design: this page continued below its first screen, or other pages of the same product; each screen lands on the
|
|
14
|
+
* branch's board in the Designs tab (mcp-slate-ui-script-board.ts).
|
|
14
15
|
*
|
|
15
16
|
* Opened from a branch's board, the view shows the screen's whole column as the continuous page it is (a web page flush,
|
|
16
17
|
* app states framed one by one), at the port's width, scrolling down; left and right step across the board's columns.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-ui-script-viewer.d.ts","sourceRoot":"","sources":["../src/mcp-slate-ui-script-viewer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mcp-slate-ui-script-viewer.d.ts","sourceRoot":"","sources":["../src/mcp-slate-ui-script-viewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,eAAe,QA2gB3B,CAAC"}
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
* - Edit: draw on the design (the scribble layer, mcp-slate-ui-script-scribble.ts; the view fits the design while
|
|
9
9
|
* drawing) and/or type a change, then Enter. The edit runs at once and the view closes onto the Designs tab, where
|
|
10
10
|
* the new version is already a loading tile next to its source.
|
|
11
|
-
* - Branch:
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* - Branch: Continue this page or Other pages (page names optional, comma separated, in a field only that choice
|
|
12
|
+
* shows), then Enter; a line under the bar says what the checked choice does. It runs the branch pipeline on this
|
|
13
|
+
* design: this page continued below its first screen, or other pages of the same product; each screen lands on the
|
|
14
|
+
* branch's board in the Designs tab (mcp-slate-ui-script-board.ts).
|
|
14
15
|
*
|
|
15
16
|
* Opened from a branch's board, the view shows the screen's whole column as the continuous page it is (a web page flush,
|
|
16
17
|
* app states framed one by one), at the port's width, scrolling down; left and right step across the board's columns.
|
|
@@ -331,6 +332,11 @@ export const SLATE_UI_VIEWER = String.raw `
|
|
|
331
332
|
seg.appendChild(b);
|
|
332
333
|
});
|
|
333
334
|
form.appendChild(seg);
|
|
335
|
+
// What the checked choice does, in a line of its own under the bar: continue this page below the first screen, or
|
|
336
|
+
// design other pages of the same product (whose names, optional, go in the field that only that choice shows).
|
|
337
|
+
var hint = el("p", "lvhint", t(branchScope() === "site" ? "branchSiteHint" : "branchPageHint"));
|
|
338
|
+
hint.id = "lvhint-" + lv.id;
|
|
339
|
+
seg.setAttribute("aria-describedby", hint.id);
|
|
334
340
|
if (branchScope() === "site") {
|
|
335
341
|
var input = el("input");
|
|
336
342
|
input.type = "text";
|
|
@@ -348,7 +354,10 @@ export const SLATE_UI_VIEWER = String.raw `
|
|
|
348
354
|
form.appendChild(lv.els.apply);
|
|
349
355
|
form.appendChild(iconAction(t("cancel"), ICON.close, function () { setViewerMode(null); }));
|
|
350
356
|
form.addEventListener("submit", function (e) { e.preventDefault(); commitViewer(); });
|
|
351
|
-
|
|
357
|
+
var bar = el("div", "lvbranch");
|
|
358
|
+
bar.appendChild(form);
|
|
359
|
+
bar.appendChild(hint);
|
|
360
|
+
return bar;
|
|
352
361
|
}
|
|
353
362
|
function viewerReady() {
|
|
354
363
|
var lv = state.lv;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-ui-script-viewer.js","sourceRoot":"","sources":["../src/mcp-slate-ui-script-viewer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mcp-slate-ui-script-viewer.js","sourceRoot":"","sources":["../src/mcp-slate-ui-script-viewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2gBxC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The workspace view's script, assembled from single-purpose fragments that
|
|
3
3
|
* share one scope: bridge (host protocol), state (view state, picture queue,
|
|
4
4
|
* polling, what the ops say), l10n (the person's language and every word, `t(key)`), inline (the card), select (Select), inspiration (the tabs and the Inspiration tab), stage
|
|
5
|
-
* (fullscreen), pause (the inspiration pause of the hosted server), edit (what the large view's Edit sends), more (the Generate more tile and its panel), scribble (the drawing layer of Edit), the hosted and browser targets' words, then the handshake, last, so every function and
|
|
5
|
+
* (fullscreen), pause (the inspiration pause of the hosted server), edit (what the large view's Edit sends), more (the Generate more tile and its panel), scribble (the drawing layer of Edit), the hosted and browser targets' words, the hover peek, the loading surface's clock, then the handshake, last, so every function and
|
|
6
6
|
* variable exists before the first message can arrive. The tool names come
|
|
7
7
|
* from the view contract (SLATE_UI_TOOLS), not from the server's own module.
|
|
8
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-ui-script.d.ts","sourceRoot":"","sources":["../src/mcp-slate-ui-script.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp-slate-ui-script.d.ts","sourceRoot":"","sources":["../src/mcp-slate-ui-script.ts"],"names":[],"mappings":"AAuBA;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AA2B3D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,aAAa,KAAG,MA0B/C,CAAC;AAEb,eAAO,MAAM,eAAe,QAA8B,CAAC"}
|
|
@@ -8,6 +8,7 @@ import { SLATE_UI_DESIGNS } from './mcp-slate-ui-script-designs.js';
|
|
|
8
8
|
import { SLATE_UI_EDIT } from './mcp-slate-ui-script-edit.js';
|
|
9
9
|
import { SLATE_UI_INLINE } from './mcp-slate-ui-script-inline.js';
|
|
10
10
|
import { SLATE_UI_INSPIRATION } from './mcp-slate-ui-script-inspiration.js';
|
|
11
|
+
import { SLATE_UI_LOADING } from './mcp-slate-ui-script-loading.js';
|
|
11
12
|
import { buildSlateUiL10n } from './mcp-slate-ui-script-l10n.js';
|
|
12
13
|
import { SLATE_UI_MORE } from './mcp-slate-ui-script-more.js';
|
|
13
14
|
import { SLATE_UI_PEEK } from './mcp-slate-ui-script-peek.js';
|
|
@@ -70,6 +71,7 @@ export const buildSlateUiScript = (target) => [
|
|
|
70
71
|
SLATE_UI_REMOTE,
|
|
71
72
|
SLATE_UI_BROWSER,
|
|
72
73
|
SLATE_UI_PEEK,
|
|
74
|
+
SLATE_UI_LOADING,
|
|
73
75
|
HANDSHAKE,
|
|
74
76
|
'})();',
|
|
75
77
|
].join('\n');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-ui-script.js","sourceRoot":"","sources":["../src/mcp-slate-ui-script.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;A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;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"mcp-slate-ui-styles-designs.d.ts","sourceRoot":"","sources":["../src/mcp-slate-ui-styles-designs.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,QA0HnC,CAAC"}
|
|
@@ -36,6 +36,10 @@ export const SLATE_UI_DESIGNS_STYLES = String.raw `
|
|
|
36
36
|
.dcaption { min-width: 0; flex: 1 1 0; font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
37
37
|
.dcaption + .spacer { display: none; }
|
|
38
38
|
.dstat { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; }
|
|
39
|
+
/* A branch that ended without a screen says why in words: it takes the row's free width and wraps, never a tooltip. */
|
|
40
|
+
.dstat.said { flex: 1 1 260px; min-width: 0; flex-wrap: wrap; row-gap: 6px; }
|
|
41
|
+
.dsaid { min-width: 0; flex: 1 1 200px; color: var(--text); line-height: 1.4; }
|
|
42
|
+
.dstat .dretry { position: static; box-shadow: none; background: var(--fill); }
|
|
39
43
|
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
|
|
40
44
|
.dot.run { background: var(--ring); animation: pulse 1.2s ease-in-out infinite; }
|
|
41
45
|
.dot.err { background: var(--danger); }
|
|
@@ -119,6 +123,9 @@ export const SLATE_UI_DESIGNS_STYLES = String.raw `
|
|
|
119
123
|
.lvmode { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-solid); color: var(--inverse-text); }
|
|
120
124
|
input.lvinput { flex: 1 1 auto; min-width: 0; padding: 8px 6px; border: 0; background: transparent; color: var(--text); font: inherit; }
|
|
121
125
|
input.lvinput:focus-visible { outline: none; }
|
|
126
|
+
/* The branch bar, and the line under it saying what the checked choice does. */
|
|
127
|
+
.lvbranch { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(720px, 100%); }
|
|
128
|
+
.lvhint { margin: 0; max-width: 100%; color: var(--text2); font-size: 12px; text-align: center; }
|
|
122
129
|
@media (prefers-reduced-motion: reduce) { .dot.run { animation: none; } button.dface { transition: none; } .dpick { transition: none; } }
|
|
123
130
|
/* The scribble layer of the large view's edit lies exactly over the picture. */
|
|
124
131
|
.scribble { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-ui-styles-designs.js","sourceRoot":"","sources":["../src/mcp-slate-ui-styles-designs.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"mcp-slate-ui-styles-designs.js","sourceRoot":"","sources":["../src/mcp-slate-ui-styles-designs.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0HhD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What plays across the loading surface's dots (mcp-slate-ui-styles-loading.ts picks one with LOADING_EFFECT). Each is
|
|
3
|
+
* a background painted under the dot mask, fixed to the frame so every loading tile is a window onto the same field,
|
|
4
|
+
* and each keyframe loop ends exactly where it starts, so every pass is identical.
|
|
5
|
+
*
|
|
6
|
+
* The dots' own ink is `--dot` (dim, at rest), `--dot-mid` and `--dot-hi` (the crest); the colour effects mix the host's
|
|
7
|
+
* accent (`--ring`) toward two neighbouring hues in oklch, so they follow the person's Codex accent and theme.
|
|
8
|
+
*
|
|
9
|
+
* Every animation name starts with `dotwave`: the script keeps all of them on the frame's clock
|
|
10
|
+
* (mcp-slate-ui-script-loading.ts), so a tile built later joins the wave in step.
|
|
11
|
+
*/
|
|
12
|
+
export type LoadingEffect = 'shimmer' | 'ripple' | 'hue' | 'aurora' | 'fireflies';
|
|
13
|
+
export declare const LOADING_EFFECTS: Record<LoadingEffect, string>;
|
|
14
|
+
//# sourceMappingURL=mcp-slate-ui-styles-loading-effects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-slate-ui-styles-loading-effects.d.ts","sourceRoot":"","sources":["../src/mcp-slate-ui-styles-loading-effects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,WAAW,CAAC;AAelF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CA0DzD,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const SEL = 'img.shimmer, .shimmer:not(img)::before';
|
|
2
|
+
/**
|
|
3
|
+
* The band effects' geometry. The gradient is one picture 360% of the frame, larger than the frame at every keyframe,
|
|
4
|
+
* so the frame never sees two copies of it: a picture smaller than its travel tiles, and a slanted band does not meet
|
|
5
|
+
* itself across the seam between tiles (the cut-off second pass, evidence 12ui/loading-dots). The band's stops sit
|
|
6
|
+
* close to the middle so it is as wide on screen as before; from -205 to -42 it starts and ends just off the frame.
|
|
7
|
+
*/
|
|
8
|
+
const BAND = String.raw `
|
|
9
|
+
background-size: 360vw 360vh;
|
|
10
|
+
background-repeat: no-repeat;`;
|
|
11
|
+
const BAND_KEYFRAMES = (name) => `@keyframes ${name} { from { background-position: -205vw -205vh; } to { background-position: -42vw -42vh; } }`;
|
|
12
|
+
export const LOADING_EFFECTS = {
|
|
13
|
+
// A soft crest of brighter ink with a faint echo behind it, travelling diagonally.
|
|
14
|
+
shimmer: String.raw `
|
|
15
|
+
${SEL} {
|
|
16
|
+
background-image: linear-gradient(118deg, var(--dot) 41.1%, var(--dot-mid) 43.9%, var(--dot) 45.8%, var(--dot-mid) 47.5%, var(--dot-hi) 50%, var(--dot-mid) 52.2%, var(--dot) 55%);${BAND}
|
|
17
|
+
animation: dotwave 2.4s cubic-bezier(.45, .05, .55, .95) infinite;
|
|
18
|
+
}
|
|
19
|
+
${BAND_KEYFRAMES('dotwave')}`,
|
|
20
|
+
// Rings spreading from the middle of the frame like water, a sharp front and a soft wake; one ring spacing per loop.
|
|
21
|
+
ripple: String.raw `
|
|
22
|
+
@property --dotwave-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
|
|
23
|
+
${SEL} {
|
|
24
|
+
background-image: repeating-radial-gradient(circle at 50% 50%, var(--dot) var(--dotwave-r), var(--dot) calc(var(--dotwave-r) + 64px), var(--dot-mid) calc(var(--dotwave-r) + 128px), var(--dot-hi) calc(var(--dotwave-r) + 158px), var(--dot) calc(var(--dotwave-r) + 176px), var(--dot) calc(var(--dotwave-r) + 210px));
|
|
25
|
+
animation: dotwave-ripple 2.6s linear infinite;
|
|
26
|
+
}
|
|
27
|
+
@keyframes dotwave-ripple { from { --dotwave-r: 0px; } to { --dotwave-r: 210px; } }`,
|
|
28
|
+
// The shimmer's crest in colour: the accent, flanked by its two neighbouring hues.
|
|
29
|
+
hue: String.raw `
|
|
30
|
+
${SEL} {
|
|
31
|
+
--hue-a: color-mix(in oklch, var(--ring) 55%, #19c3c0);
|
|
32
|
+
--hue-b: color-mix(in oklch, var(--ring) 55%, #d24dff);
|
|
33
|
+
background-image: linear-gradient(118deg, var(--dot) 40%, color-mix(in srgb, var(--hue-a) 30%, transparent) 43.5%, color-mix(in srgb, var(--hue-a) 70%, transparent) 46.5%, var(--ring) 50%, color-mix(in srgb, var(--hue-b) 70%, transparent) 53%, color-mix(in srgb, var(--hue-b) 30%, transparent) 55.5%, var(--dot) 58%);${BAND}
|
|
34
|
+
animation: dotwave-hue 2.8s cubic-bezier(.45, .05, .55, .95) infinite;
|
|
35
|
+
}
|
|
36
|
+
${BAND_KEYFRAMES('dotwave-hue')}`,
|
|
37
|
+
// Slow drifting glows in the accent's hues behind the dim ink, wandering and returning (alternate), never looping.
|
|
38
|
+
aurora: String.raw `
|
|
39
|
+
${SEL} {
|
|
40
|
+
--aur-a: color-mix(in srgb, color-mix(in oklch, var(--ring) 60%, #19c3c0) 62%, transparent);
|
|
41
|
+
--aur-b: color-mix(in srgb, color-mix(in oklch, var(--ring) 55%, #d24dff) 58%, transparent);
|
|
42
|
+
--aur-c: color-mix(in srgb, var(--ring) 55%, transparent);
|
|
43
|
+
background-color: var(--dot);
|
|
44
|
+
background-image: radial-gradient(closest-side, var(--aur-a), transparent), radial-gradient(closest-side, var(--aur-b), transparent), radial-gradient(closest-side, var(--aur-c), transparent);
|
|
45
|
+
background-size: 90vw 70vh, 80vw 90vh, 70vw 60vh;
|
|
46
|
+
background-repeat: no-repeat;
|
|
47
|
+
animation: dotwave-aurora 7s ease-in-out infinite alternate;
|
|
48
|
+
}
|
|
49
|
+
@keyframes dotwave-aurora {
|
|
50
|
+
0% { background-position: -30vw -20vh, 60vw 40vh, 10vw 70vh; }
|
|
51
|
+
50% { background-position: 30vw 30vh, 0vw -20vh, 60vw 10vh; }
|
|
52
|
+
100% { background-position: 50vw -10vh, -20vw 50vh, 40vw 60vh; }
|
|
53
|
+
}`,
|
|
54
|
+
// Soft glints drifting through the dots on two crossing paths, one of them in the accent, like fireflies.
|
|
55
|
+
fireflies: String.raw `
|
|
56
|
+
${SEL} {
|
|
57
|
+
--fly-a: color-mix(in srgb, var(--text) 50%, transparent);
|
|
58
|
+
--fly-b: color-mix(in srgb, var(--ring) 70%, transparent);
|
|
59
|
+
background-color: var(--dot);
|
|
60
|
+
background-image: radial-gradient(circle, var(--fly-a), transparent 26px), radial-gradient(circle, var(--fly-b), transparent 32px), radial-gradient(circle, var(--dot-mid), transparent 44px);
|
|
61
|
+
background-size: 157px 139px, 233px 211px, 307px 277px;
|
|
62
|
+
background-position: 0 0, 0 0, 0 0;
|
|
63
|
+
animation: dotwave-fireflies 7s linear infinite;
|
|
64
|
+
}
|
|
65
|
+
@keyframes dotwave-fireflies { to { background-position: 157px 139px, -233px 211px, 307px -277px; } }`,
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=mcp-slate-ui-styles-loading-effects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-slate-ui-styles-loading-effects.js","sourceRoot":"","sources":["../src/mcp-slate-ui-styles-loading-effects.ts"],"names":[],"mappings":"AAaA,MAAM,GAAG,GAAG,wCAAwC,CAAC;AAErD;;;;;GAKG;AACH,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAA;;kCAEW,CAAC;AACnC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,cAAc,IAAI,4FAA4F,CAAC;AAExJ,MAAM,CAAC,MAAM,eAAe,GAAkC;IAC5D,mFAAmF;IACnF,OAAO,EAAE,MAAM,CAAC,GAAG,CAAA;IACjB,GAAG;yLACkL,IAAI;;;IAGzL,cAAc,CAAC,SAAS,CAAC,EAAE;IAE7B,qHAAqH;IACrH,MAAM,EAAE,MAAM,CAAC,GAAG,CAAA;;IAEhB,GAAG;;;;sFAI+E;IAEpF,mFAAmF;IACnF,GAAG,EAAE,MAAM,CAAC,GAAG,CAAA;IACb,GAAG;;;mUAG4T,IAAI;;;IAGnU,cAAc,CAAC,aAAa,CAAC,EAAE;IAEjC,mHAAmH;IACnH,MAAM,EAAE,MAAM,CAAC,GAAG,CAAA;IAChB,GAAG;;;;;;;;;;;;;;IAcH;IAEF,0GAA0G;IAC1G,SAAS,EAAE,MAAM,CAAC,GAAG,CAAA;IACnB,GAAG;;;;;;;;;wGASiG;CACvG,CAAC"}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
+
import { type LoadingEffect } from './mcp-slate-ui-styles-loading-effects.js';
|
|
1
2
|
/**
|
|
2
3
|
* The loading surface, everywhere a picture is on its way (`.shimmer`): an Inspiration or References tile until its
|
|
3
4
|
* picture lands, the skeleton tiles of a first search, a reference site whose screenshot is still being captured, and a
|
|
4
5
|
* design slot while it is drawn.
|
|
5
6
|
*
|
|
6
|
-
* A field of fine dots in the host's ink
|
|
7
|
-
* travelling diagonally. The
|
|
8
|
-
*
|
|
7
|
+
* A field of fine, dim dots in the host's ink with an effect playing across them (mcp-slate-ui-styles-loading-effects.ts;
|
|
8
|
+
* the shimmer: one soft crest with a faint echo, travelling diagonally). The effect is fixed to the frame
|
|
9
|
+
* (`background-attachment: fixed`) and kept on the frame's clock (mcp-slate-ui-script-loading.ts), so every loading tile
|
|
10
|
+
* on screen is a window onto the same wave and a grid of them reads as one calm surface rather than many blinking boxes.
|
|
9
11
|
*
|
|
10
12
|
* - On a picture (`img.shimmer`, no pixels yet) the dots are the picture's own mask, so its tile's ground shows between
|
|
11
13
|
* them; on anything else they are an overlay (`::before`) over the element's own ground, under its content.
|
|
12
|
-
* - The colours are the host's ink (`--text`) mixed into transparency, so Codex's light and dark themes drive it
|
|
14
|
+
* - The colours are the host's ink (`--text`) mixed into transparency, so Codex's light and dark themes drive it; at rest
|
|
15
|
+
* the dots stay dim (9%) so the crest carries the motion.
|
|
13
16
|
* - Reduced motion: still dots, no wave.
|
|
14
17
|
* - Chosen over the web's light band (apps/web generatedDesignPromptEdit.css) side by side in light and dark (evidence
|
|
15
18
|
* 12ui/slate-ui-polish/loading): the band must stay faint not to glare in light, and then all but vanishes on dark.
|
|
19
|
+
* The other effects sit side by side in evidence 12ui/loading-dots.
|
|
16
20
|
*/
|
|
21
|
+
/** The one switch: which effect plays across the dots. */
|
|
22
|
+
export declare const LOADING_EFFECT: LoadingEffect;
|
|
23
|
+
export declare const loadingStyles: (effect: LoadingEffect) => string;
|
|
17
24
|
export declare const SLATE_UI_LOADING_STYLES: string;
|
|
18
25
|
//# sourceMappingURL=mcp-slate-ui-styles-loading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-ui-styles-loading.d.ts","sourceRoot":"","sources":["../src/mcp-slate-ui-styles-loading.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mcp-slate-ui-styles-loading.d.ts","sourceRoot":"","sources":["../src/mcp-slate-ui-styles-loading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAE/F;;;;;;;;;;;;;;;;;;GAkBG;AAEH,0DAA0D;AAC1D,eAAO,MAAM,cAAc,EAAE,aAAyB,CAAC;AAEvD,eAAO,MAAM,aAAa,GAAI,QAAQ,aAAa,KAAG,MAerD,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAgC,CAAC"}
|
|
@@ -1,37 +1,40 @@
|
|
|
1
|
+
import { LOADING_EFFECTS } from './mcp-slate-ui-styles-loading-effects.js';
|
|
1
2
|
/**
|
|
2
3
|
* The loading surface, everywhere a picture is on its way (`.shimmer`): an Inspiration or References tile until its
|
|
3
4
|
* picture lands, the skeleton tiles of a first search, a reference site whose screenshot is still being captured, and a
|
|
4
5
|
* design slot while it is drawn.
|
|
5
6
|
*
|
|
6
|
-
* A field of fine dots in the host's ink
|
|
7
|
-
* travelling diagonally. The
|
|
8
|
-
*
|
|
7
|
+
* A field of fine, dim dots in the host's ink with an effect playing across them (mcp-slate-ui-styles-loading-effects.ts;
|
|
8
|
+
* the shimmer: one soft crest with a faint echo, travelling diagonally). The effect is fixed to the frame
|
|
9
|
+
* (`background-attachment: fixed`) and kept on the frame's clock (mcp-slate-ui-script-loading.ts), so every loading tile
|
|
10
|
+
* on screen is a window onto the same wave and a grid of them reads as one calm surface rather than many blinking boxes.
|
|
9
11
|
*
|
|
10
12
|
* - On a picture (`img.shimmer`, no pixels yet) the dots are the picture's own mask, so its tile's ground shows between
|
|
11
13
|
* them; on anything else they are an overlay (`::before`) over the element's own ground, under its content.
|
|
12
|
-
* - The colours are the host's ink (`--text`) mixed into transparency, so Codex's light and dark themes drive it
|
|
14
|
+
* - The colours are the host's ink (`--text`) mixed into transparency, so Codex's light and dark themes drive it; at rest
|
|
15
|
+
* the dots stay dim (9%) so the crest carries the motion.
|
|
13
16
|
* - Reduced motion: still dots, no wave.
|
|
14
17
|
* - Chosen over the web's light band (apps/web generatedDesignPromptEdit.css) side by side in light and dark (evidence
|
|
15
18
|
* 12ui/slate-ui-polish/loading): the band must stay faint not to glare in light, and then all but vanishes on dark.
|
|
19
|
+
* The other effects sit side by side in evidence 12ui/loading-dots.
|
|
16
20
|
*/
|
|
17
|
-
|
|
21
|
+
/** The one switch: which effect plays across the dots. */
|
|
22
|
+
export const LOADING_EFFECT = 'shimmer';
|
|
23
|
+
export const loadingStyles = (effect) => String.raw `
|
|
18
24
|
.shimmer, .shimmer:not(img)::before {
|
|
19
|
-
--dot: color-mix(in srgb, var(--text)
|
|
20
|
-
--dot-mid: color-mix(in srgb, var(--text)
|
|
21
|
-
--dot-hi: color-mix(in srgb, var(--text)
|
|
25
|
+
--dot: color-mix(in srgb, var(--text) 9%, transparent);
|
|
26
|
+
--dot-mid: color-mix(in srgb, var(--text) 22%, transparent);
|
|
27
|
+
--dot-hi: color-mix(in srgb, var(--text) 50%, transparent);
|
|
22
28
|
}
|
|
23
29
|
img.shimmer, .shimmer:not(img)::before {
|
|
24
30
|
background-color: transparent;
|
|
25
|
-
background-image: linear-gradient(118deg, var(--dot) 34%, var(--dot-mid) 39%, var(--dot) 42.5%, var(--dot-mid) 45.5%, var(--dot-hi) 50%, var(--dot-mid) 54%, var(--dot) 59%);
|
|
26
|
-
background-size: 200vw 200vh;
|
|
27
31
|
background-attachment: fixed;
|
|
28
32
|
-webkit-mask: radial-gradient(circle, #000 1.15px, transparent 1.75px) 0 0 / 9px 9px;
|
|
29
33
|
mask: radial-gradient(circle, #000 1.15px, transparent 1.75px) 0 0 / 9px 9px;
|
|
30
|
-
animation: dotwave 2.4s cubic-bezier(.45, .05, .55, .95) infinite;
|
|
31
34
|
}
|
|
32
35
|
.shimmer:not(img)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
|
|
33
|
-
.skelgrid > .skeleton { position: relative; overflow: hidden; background: var(--fill); }
|
|
34
|
-
@
|
|
35
|
-
@media (prefers-reduced-motion: reduce) { .shimmer { animation: none; } .shimmer:not(img)::before { animation: none; background-image: none; background-color: var(--dot-mid); } img.shimmer { background-image: none; background-color: var(--dot-mid); } }
|
|
36
|
+
.skelgrid > .skeleton { position: relative; overflow: hidden; background: var(--fill); }${LOADING_EFFECTS[effect]}
|
|
37
|
+
@media (prefers-reduced-motion: reduce) { .shimmer { animation: none; } .shimmer:not(img)::before { animation: none; background-image: none; background-color: var(--dot-mid); } img.shimmer { animation: none; background-image: none; background-color: var(--dot-mid); } }
|
|
36
38
|
`;
|
|
39
|
+
export const SLATE_UI_LOADING_STYLES = loadingStyles(LOADING_EFFECT);
|
|
37
40
|
//# sourceMappingURL=mcp-slate-ui-styles-loading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-ui-styles-loading.js","sourceRoot":"","sources":["../src/mcp-slate-ui-styles-loading.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mcp-slate-ui-styles-loading.js","sourceRoot":"","sources":["../src/mcp-slate-ui-styles-loading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAsB,MAAM,0CAA0C,CAAC;AAE/F;;;;;;;;;;;;;;;;;;GAkBG;AAEH,0DAA0D;AAC1D,MAAM,CAAC,MAAM,cAAc,GAAkB,SAAS,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAqB,EAAU,EAAE,CAAC,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;4FAakB,eAAe,CAAC,MAAM,CAAC;;CAElH,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { copyAdoptedPick, recordPick } from './slate-pick.js';
|
|
|
11
11
|
import { namedReferenceIds } from './slate-reference-ids.js';
|
|
12
12
|
import { ensureReferenceImage } from './slate-reference-store.js';
|
|
13
13
|
import { resumeAction, runAction } from './slate-run-action.js';
|
|
14
|
-
import { buildView, emptyView } from './slate-view.js';
|
|
14
|
+
import { buildView, emptyView, viewStamp } from './slate-view.js';
|
|
15
15
|
import { readVersionBytes } from './slate-versions.js';
|
|
16
16
|
import { findVersion, loadWorkspaceAt } from './slate-workspace-store.js';
|
|
17
17
|
/**
|
|
@@ -128,7 +128,7 @@ export const statusResult = async (input, runtime) => {
|
|
|
128
128
|
const root = await resolveSlateRunDir(input.runDir);
|
|
129
129
|
const { workspace } = await loadWorkspaceAt(root, runtime.now);
|
|
130
130
|
const liveness = await readLiveness(root, workspace, runtime.now().getTime());
|
|
131
|
-
const stamp =
|
|
131
|
+
const stamp = viewStamp(root, workspace.rev, liveness.digest);
|
|
132
132
|
if (typeof input.since === 'string' && input.since === stamp) {
|
|
133
133
|
return { content: [{ type: 'text', text: 'unchanged' }], structuredContent: { unchanged: true, stamp } };
|
|
134
134
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-slate-workspace-tools.js","sourceRoot":"","sources":["../src/mcp-slate-workspace-tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAA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AAM,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpD,MAAM,EAAE,GAAG,MAAM,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IACnE,OAAO,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,IAAI,mCAAmC,CAAC,CAAC;AACjG,CAAC,CAAC"}
|
|
@@ -4,6 +4,12 @@ export type PrototypeBrowserProvisioning = {
|
|
|
4
4
|
environment: NodeJS.ProcessEnv;
|
|
5
5
|
installCommand: string;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* What every Chromium user in this CLI launches: `chromium.launch()` headless, which Playwright runs on its headless
|
|
9
|
+
* shell (prototype stages, redesign capture, scene capture, the References capture). The full Chromium download (a
|
|
10
|
+
* headed browser, about 340 MB more) is never used, so neither the install nor its named command fetches it.
|
|
11
|
+
*/
|
|
12
|
+
export declare const BROWSER_INSTALL_ARGS: readonly ["install", "--only-shell", "chromium"];
|
|
7
13
|
/**
|
|
8
14
|
* Keeps Playwright beside the managed CLI instead of letting Playwright derive
|
|
9
15
|
* a second cache root from HOME. An existing managed launcher identifies the
|
|
@@ -18,8 +24,8 @@ export declare const resolvePrototypeBrowserProvisioning: (args?: {
|
|
|
18
24
|
}) => Promise<PrototypeBrowserProvisioning>;
|
|
19
25
|
export declare const isMissingPrototypeBrowserOutput: (output: string) => boolean;
|
|
20
26
|
/**
|
|
21
|
-
* Installs Chromium into the managed browsers path, the same
|
|
22
|
-
* above names. Only the References tab's capture calls it: that capture runs
|
|
27
|
+
* Installs Chromium's headless shell into the managed browsers path, the same
|
|
28
|
+
* install the command above names. Only the References tab's capture calls it: that capture runs
|
|
23
29
|
* unattended (the workspace runner, or the draw command while the person
|
|
24
30
|
* chooses), so nobody would read the command, and a fresh home has no browser.
|
|
25
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prototype-browsers.d.ts","sourceRoot":"","sources":["../src/prototype-browsers.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,4BAA4B,GAAG;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC,UAAU,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;
|
|
1
|
+
{"version":3,"file":"prototype-browsers.d.ts","sourceRoot":"","sources":["../src/prototype-browsers.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,4BAA4B,GAAG;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC,UAAU,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAoBF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,kDAAmD,CAAC;AAiBrF;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,GAAU,OAAM;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACnB,KAAG,OAAO,CAAC,4BAA4B,CAmB5C,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,QAAQ,MAAM,KAAG,OAGhE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,cAAc,IAAI,CAAC,4BAA4B,EAAE,aAAa,CAAC,EAC/D,gBAAe,MAAiC,KAC/C,OAAO,CAAC,IAAI,CAcd,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,GAAI,MAAM;IACnD,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,IAAI,CAAC,4BAA4B,EAAE,cAAc,GAAG,gBAAgB,CAAC,CAAC;IACpF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,MAMH,CAAC"}
|
|
@@ -11,11 +11,17 @@ const installedPlaywrightCli = () => {
|
|
|
11
11
|
const playwrightRequire = createRequire(testManifest);
|
|
12
12
|
return path.join(path.dirname(playwrightRequire.resolve('playwright/package.json')), 'cli.js');
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* What every Chromium user in this CLI launches: `chromium.launch()` headless, which Playwright runs on its headless
|
|
16
|
+
* shell (prototype stages, redesign capture, scene capture, the References capture). The full Chromium download (a
|
|
17
|
+
* headed browser, about 340 MB more) is never used, so neither the install nor its named command fetches it.
|
|
18
|
+
*/
|
|
19
|
+
export const BROWSER_INSTALL_ARGS = ['install', '--only-shell', 'chromium'];
|
|
14
20
|
const browserInstallCommand = (args) => {
|
|
15
21
|
if (args.platform === 'win32') {
|
|
16
|
-
return `set "PLAYWRIGHT_BROWSERS_PATH=${args.browsersPath}" && ${quoteWindowsArgument(process.execPath)} ${quoteWindowsArgument(args.playwrightCli)}
|
|
22
|
+
return `set "PLAYWRIGHT_BROWSERS_PATH=${args.browsersPath}" && ${quoteWindowsArgument(process.execPath)} ${quoteWindowsArgument(args.playwrightCli)} ${BROWSER_INSTALL_ARGS.join(' ')}`;
|
|
17
23
|
}
|
|
18
|
-
return `PLAYWRIGHT_BROWSERS_PATH=${quotePosixArgument(args.browsersPath)} ${quotePosixArgument(process.execPath)} ${quotePosixArgument(args.playwrightCli)}
|
|
24
|
+
return `PLAYWRIGHT_BROWSERS_PATH=${quotePosixArgument(args.browsersPath)} ${quotePosixArgument(process.execPath)} ${quotePosixArgument(args.playwrightCli)} ${BROWSER_INSTALL_ARGS.join(' ')}`;
|
|
19
25
|
};
|
|
20
26
|
/**
|
|
21
27
|
* Keeps Playwright beside the managed CLI instead of letting Playwright derive
|
|
@@ -46,14 +52,14 @@ export const resolvePrototypeBrowserProvisioning = async (args = {}) => {
|
|
|
46
52
|
export const isMissingPrototypeBrowserOutput = (output) => (/Executable doesn't exist at/u.test(output)
|
|
47
53
|
&& /playwright install/u.test(output));
|
|
48
54
|
/**
|
|
49
|
-
* Installs Chromium into the managed browsers path, the same
|
|
50
|
-
* above names. Only the References tab's capture calls it: that capture runs
|
|
55
|
+
* Installs Chromium's headless shell into the managed browsers path, the same
|
|
56
|
+
* install the command above names. Only the References tab's capture calls it: that capture runs
|
|
51
57
|
* unattended (the workspace runner, or the draw command while the person
|
|
52
58
|
* chooses), so nobody would read the command, and a fresh home has no browser.
|
|
53
59
|
*/
|
|
54
60
|
export const installPrototypeBrowser = async (provisioning, playwrightCli = installedPlaywrightCli()) => {
|
|
55
61
|
await new Promise((resolve, reject) => {
|
|
56
|
-
const child = spawn(process.execPath, [playwrightCli,
|
|
62
|
+
const child = spawn(process.execPath, [playwrightCli, ...BROWSER_INSTALL_ARGS], {
|
|
57
63
|
env: provisioning.environment,
|
|
58
64
|
stdio: ['ignore', 'ignore', 'pipe'],
|
|
59
65
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prototype-browsers.js","sourceRoot":"","sources":["../src/prototype-browsers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,aAAa,EACb,+BAA+B,GAChC,MAAM,sBAAsB,CAAC;AAS9B,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,CACpD,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CACtC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,CACtD,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,C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';
|
|
7
7
|
import { callMcpTool, createMcpCorpusDependencies, createMcpToolDependencies, } from './mcp-tool-handler.js';
|
|
8
8
|
import { lazyCorpus } from './slate-corpus.js';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { startRoundCaption } from './slate-captions-local.js';
|
|
10
|
+
import { startLocalTabs } from './slate-site-references-local.js';
|
|
11
11
|
import { listSlateResources, readSlateResource } from './mcp-slate-resource.js';
|
|
12
12
|
import { SLATE_TOOL_DEFINITIONS, createSlateToolHandler, isSlateTool, } from './mcp-slate-tools.js';
|
|
13
13
|
/** Construct the transport without reading credentials; local workflow and slate tools need none. */
|
|
@@ -30,7 +30,7 @@ export const createMcpServer = (options) => {
|
|
|
30
30
|
const slateTools = createSlateToolHandler({
|
|
31
31
|
// The workspace's free reference search reads the same optional-auth corpus configuration, lazily.
|
|
32
32
|
corpus: lazyCorpus(resolveCorpusConfig),
|
|
33
|
-
gatherReferences:
|
|
33
|
+
gatherReferences: startLocalTabs,
|
|
34
34
|
captionRound: (root, roundId) => { startRoundCaption(root, roundId); },
|
|
35
35
|
...options.slate,
|
|
36
36
|
});
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,yBAAyB,GAE1B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAA4C,MAAM,aAAa,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,WAAW,EACX,2BAA2B,EAC3B,yBAAyB,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