@mcpview/compose 0.13.0 → 0.14.0

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.
Files changed (155) hide show
  1. package/CHANGELOG.md +120 -0
  2. package/README.md +131 -2
  3. package/esm/_dnt.polyfills.d.ts +11 -11
  4. package/esm/_dnt.polyfills.d.ts.map +1 -1
  5. package/esm/_dnt.polyfills.js +14 -14
  6. package/esm/src/code-mode/board.d.ts +18 -2
  7. package/esm/src/code-mode/board.d.ts.map +1 -1
  8. package/esm/src/code-mode/board.js +74 -2
  9. package/esm/src/code-mode/chain.d.ts +26 -1
  10. package/esm/src/code-mode/chain.d.ts.map +1 -1
  11. package/esm/src/code-mode/chain.js +248 -89
  12. package/esm/src/code-mode/connections.d.ts +1 -0
  13. package/esm/src/code-mode/connections.d.ts.map +1 -1
  14. package/esm/src/code-mode/connections.js +1 -0
  15. package/esm/src/code-mode/errors.d.ts +80 -0
  16. package/esm/src/code-mode/errors.d.ts.map +1 -0
  17. package/esm/src/code-mode/errors.js +140 -0
  18. package/esm/src/code-mode/guest-worker.d.ts +11 -0
  19. package/esm/src/code-mode/guest-worker.d.ts.map +1 -0
  20. package/esm/src/code-mode/guest-worker.js +80 -0
  21. package/esm/src/code-mode/layout-publisher.d.ts +69 -0
  22. package/esm/src/code-mode/layout-publisher.d.ts.map +1 -0
  23. package/esm/src/code-mode/layout-publisher.js +85 -0
  24. package/esm/src/code-mode/layout-runs.d.ts +35 -0
  25. package/esm/src/code-mode/layout-runs.d.ts.map +1 -0
  26. package/esm/src/code-mode/layout-runs.js +130 -0
  27. package/esm/src/code-mode/layout.d.ts +20 -0
  28. package/esm/src/code-mode/layout.d.ts.map +1 -0
  29. package/esm/src/code-mode/layout.js +54 -0
  30. package/esm/src/code-mode/mod.d.ts +4 -1
  31. package/esm/src/code-mode/mod.d.ts.map +1 -1
  32. package/esm/src/code-mode/mod.js +3 -0
  33. package/esm/src/code-mode/panel-contexts.d.ts +25 -0
  34. package/esm/src/code-mode/panel-contexts.d.ts.map +1 -0
  35. package/esm/src/code-mode/panel-contexts.js +115 -0
  36. package/esm/src/code-mode/providers.d.ts +3 -0
  37. package/esm/src/code-mode/providers.d.ts.map +1 -1
  38. package/esm/src/code-mode/sandbox-core.d.ts +61 -0
  39. package/esm/src/code-mode/sandbox-core.d.ts.map +1 -0
  40. package/esm/src/code-mode/sandbox-core.js +424 -0
  41. package/esm/src/code-mode/sandbox.d.ts +68 -7
  42. package/esm/src/code-mode/sandbox.d.ts.map +1 -1
  43. package/esm/src/code-mode/sandbox.js +180 -119
  44. package/esm/src/code-mode/sync.d.ts +11 -0
  45. package/esm/src/code-mode/sync.d.ts.map +1 -0
  46. package/esm/src/code-mode/sync.js +42 -0
  47. package/esm/src/code-mode/tool.d.ts +1 -1
  48. package/esm/src/code-mode/tool.d.ts.map +1 -1
  49. package/esm/src/code-mode/tool.js +14 -0
  50. package/esm/src/code-mode/worker-host.d.ts +70 -0
  51. package/esm/src/code-mode/worker-host.d.ts.map +1 -0
  52. package/esm/src/code-mode/worker-host.js +355 -0
  53. package/esm/src/code-mode/worker-protocol.d.ts +44 -0
  54. package/esm/src/code-mode/worker-protocol.d.ts.map +1 -0
  55. package/esm/src/code-mode/worker-protocol.js +7 -0
  56. package/esm/src/host/renderer/css/panel-controls.d.ts.map +1 -1
  57. package/esm/src/host/renderer/css/panel-controls.js +5 -1
  58. package/esm/src/host/renderer/html-generator.js +2 -2
  59. package/esm/src/host/renderer/js/card-height.d.ts +11 -1
  60. package/esm/src/host/renderer/js/card-height.d.ts.map +1 -1
  61. package/esm/src/host/renderer/js/card-height.js +57 -10
  62. package/esm/src/host/renderer/js/event-bus.d.ts +11 -0
  63. package/esm/src/host/renderer/js/event-bus.d.ts.map +1 -1
  64. package/esm/src/host/renderer/js/event-bus.js +49 -8
  65. package/esm/src/host/renderer/js/intrinsic-layout.d.ts +26 -0
  66. package/esm/src/host/renderer/js/intrinsic-layout.d.ts.map +1 -0
  67. package/esm/src/host/renderer/js/intrinsic-layout.js +44 -0
  68. package/esm/src/host/renderer/panel-controls.d.ts +7 -0
  69. package/esm/src/host/renderer/panel-controls.js +1 -0
  70. package/esm/src/host/renderer/panel-movement.d.ts.map +1 -1
  71. package/esm/src/host/renderer/panel-movement.js +5 -1
  72. package/esm/src/host/renderer/panel-resizing.d.ts.map +1 -1
  73. package/esm/src/host/renderer/panel-resizing.js +36 -0
  74. package/esm/src/host/renderer/panel-snapshot.d.ts +11 -0
  75. package/esm/src/host/renderer/panel-snapshot.d.ts.map +1 -0
  76. package/esm/src/host/renderer/panel-snapshot.js +65 -0
  77. package/esm/src/version.d.ts +1 -1
  78. package/esm/src/version.js +1 -1
  79. package/package.json +9 -1
  80. package/script/_dnt.polyfills.d.ts +11 -11
  81. package/script/_dnt.polyfills.d.ts.map +1 -1
  82. package/script/_dnt.polyfills.js +14 -14
  83. package/script/src/code-mode/board.d.ts +18 -2
  84. package/script/src/code-mode/board.d.ts.map +1 -1
  85. package/script/src/code-mode/board.js +81 -2
  86. package/script/src/code-mode/chain.d.ts +26 -1
  87. package/script/src/code-mode/chain.d.ts.map +1 -1
  88. package/script/src/code-mode/chain.js +247 -88
  89. package/script/src/code-mode/connections.d.ts +1 -0
  90. package/script/src/code-mode/connections.d.ts.map +1 -1
  91. package/script/src/code-mode/connections.js +1 -0
  92. package/script/src/code-mode/errors.d.ts +80 -0
  93. package/script/src/code-mode/errors.d.ts.map +1 -0
  94. package/script/src/code-mode/errors.js +148 -0
  95. package/script/src/code-mode/guest-worker.d.ts +11 -0
  96. package/script/src/code-mode/guest-worker.d.ts.map +1 -0
  97. package/script/src/code-mode/guest-worker.js +105 -0
  98. package/script/src/code-mode/layout-publisher.d.ts +69 -0
  99. package/script/src/code-mode/layout-publisher.d.ts.map +1 -0
  100. package/script/src/code-mode/layout-publisher.js +88 -0
  101. package/script/src/code-mode/layout-runs.d.ts +35 -0
  102. package/script/src/code-mode/layout-runs.d.ts.map +1 -0
  103. package/script/src/code-mode/layout-runs.js +134 -0
  104. package/script/src/code-mode/layout.d.ts +20 -0
  105. package/script/src/code-mode/layout.d.ts.map +1 -0
  106. package/script/src/code-mode/layout.js +57 -0
  107. package/script/src/code-mode/mod.d.ts +4 -1
  108. package/script/src/code-mode/mod.d.ts.map +1 -1
  109. package/script/src/code-mode/mod.js +14 -1
  110. package/script/src/code-mode/panel-contexts.d.ts +25 -0
  111. package/script/src/code-mode/panel-contexts.d.ts.map +1 -0
  112. package/script/src/code-mode/panel-contexts.js +118 -0
  113. package/script/src/code-mode/providers.d.ts +3 -0
  114. package/script/src/code-mode/providers.d.ts.map +1 -1
  115. package/script/src/code-mode/sandbox-core.d.ts +61 -0
  116. package/script/src/code-mode/sandbox-core.d.ts.map +1 -0
  117. package/script/src/code-mode/sandbox-core.js +430 -0
  118. package/script/src/code-mode/sandbox.d.ts +68 -7
  119. package/script/src/code-mode/sandbox.d.ts.map +1 -1
  120. package/script/src/code-mode/sandbox.js +188 -121
  121. package/script/src/code-mode/sync.d.ts +11 -0
  122. package/script/src/code-mode/sync.d.ts.map +1 -0
  123. package/script/src/code-mode/sync.js +51 -0
  124. package/script/src/code-mode/tool.d.ts +1 -1
  125. package/script/src/code-mode/tool.d.ts.map +1 -1
  126. package/script/src/code-mode/tool.js +14 -0
  127. package/script/src/code-mode/worker-host.d.ts +70 -0
  128. package/script/src/code-mode/worker-host.d.ts.map +1 -0
  129. package/script/src/code-mode/worker-host.js +389 -0
  130. package/script/src/code-mode/worker-protocol.d.ts +44 -0
  131. package/script/src/code-mode/worker-protocol.d.ts.map +1 -0
  132. package/script/src/code-mode/worker-protocol.js +8 -0
  133. package/script/src/host/renderer/css/panel-controls.d.ts.map +1 -1
  134. package/script/src/host/renderer/css/panel-controls.js +5 -1
  135. package/script/src/host/renderer/html-generator.js +2 -2
  136. package/script/src/host/renderer/js/card-height.d.ts +11 -1
  137. package/script/src/host/renderer/js/card-height.d.ts.map +1 -1
  138. package/script/src/host/renderer/js/card-height.js +57 -10
  139. package/script/src/host/renderer/js/event-bus.d.ts +11 -0
  140. package/script/src/host/renderer/js/event-bus.d.ts.map +1 -1
  141. package/script/src/host/renderer/js/event-bus.js +50 -8
  142. package/script/src/host/renderer/js/intrinsic-layout.d.ts +26 -0
  143. package/script/src/host/renderer/js/intrinsic-layout.d.ts.map +1 -0
  144. package/script/src/host/renderer/js/intrinsic-layout.js +48 -0
  145. package/script/src/host/renderer/panel-controls.d.ts +7 -0
  146. package/script/src/host/renderer/panel-controls.js +4 -1
  147. package/script/src/host/renderer/panel-movement.d.ts.map +1 -1
  148. package/script/src/host/renderer/panel-movement.js +5 -1
  149. package/script/src/host/renderer/panel-resizing.d.ts.map +1 -1
  150. package/script/src/host/renderer/panel-resizing.js +36 -0
  151. package/script/src/host/renderer/panel-snapshot.d.ts +11 -0
  152. package/script/src/host/renderer/panel-snapshot.d.ts.map +1 -0
  153. package/script/src/host/renderer/panel-snapshot.js +69 -0
  154. package/script/src/version.d.ts +1 -1
  155. package/script/src/version.js +1 -1
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ /**
3
+ * Machine-readable failures of the Code Mode `execute` tool.
4
+ *
5
+ * An MCP host usually forwards only `error.message` to the model, so the message
6
+ * itself is the contract, in the format shared with other MCPView Code Mode
7
+ * servers:
8
+ *
9
+ * [execute] <CODE>: <detail>. Recovery: <recovery>.
10
+ *
11
+ * Guest programs see the same errors as `Error` objects that also carry
12
+ * `code`, `recovery` and `context`, so a program can branch on `e.code`.
13
+ *
14
+ * @module code-mode/errors
15
+ */
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.CodeModeError = exports.POSSIBLE_EFFECTS_RECOVERY = exports.CODE_MODE_ERROR_CODES = void 0;
18
+ exports.formatCodeModeError = formatCodeModeError;
19
+ exports.isCodeModeError = isCodeModeError;
20
+ exports.codeModeErrorFromFields = codeModeErrorFromFields;
21
+ exports.withPossibleEffects = withPossibleEffects;
22
+ /** Every code the Code Mode tool can report. Codes are API: never rename one. */
23
+ exports.CODE_MODE_ERROR_CODES = [
24
+ // Input checked before the program runs.
25
+ "INVALID_INPUT",
26
+ "PARAMS_INVALID",
27
+ "SAVED_CHAINS_UNAVAILABLE",
28
+ "SAVE_NAME_INVALID",
29
+ "SAVE_NAME_CONFLICT",
30
+ "SAVE_CATALOG_FULL",
31
+ "SAVE_FAILED",
32
+ "CATALOG_ERROR",
33
+ // The guest program and its sandbox.
34
+ "GUEST_ERROR",
35
+ "RESOURCE_LIMIT",
36
+ "TIME_LIMIT",
37
+ "RESULT_INVALID",
38
+ "GUEST_STALLED",
39
+ "UNAWAITED_OPERATION",
40
+ "OPERATION_LIMIT",
41
+ "ARGUMENT_INVALID",
42
+ "OPERATION_FAILED",
43
+ "SANDBOX_UNAVAILABLE",
44
+ "SANDBOX_FAILED",
45
+ // Providers and the board.
46
+ "PROVIDER_UNKNOWN",
47
+ "SNIPPET_NOT_APPROVED",
48
+ "PROVIDER_UNAVAILABLE",
49
+ "PROVIDER_ERROR",
50
+ "PROVIDER_RESULT_INVALID",
51
+ "RECEIPT_TOO_LARGE",
52
+ "PANEL_INVALID",
53
+ "SYNC_INVALID",
54
+ // After an upstream call was dispatched.
55
+ "EXECUTION_FAILED",
56
+ "INTERRUPTED",
57
+ ];
58
+ /** Recovery suffix used once an upstream operation may have completed. */
59
+ exports.POSSIBLE_EFFECTS_RECOVERY = "One or more upstream operations may have completed. Check their effects before replaying the chain";
60
+ function sentence(text) {
61
+ const trimmed = text.trim();
62
+ return /[.!?]$/.test(trimmed) ? trimmed : `${trimmed}.`;
63
+ }
64
+ /**
65
+ * Render `[execute] CODE: detail. Recovery: recovery.`
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * formatCodeModeError("TIME_LIMIT", "The program used its 2000 ms of CPU", "Split the work");
70
+ * // "[execute] TIME_LIMIT: The program used its 2000 ms of CPU. Recovery: Split the work."
71
+ * ```
72
+ */
73
+ function formatCodeModeError(code, detail, recovery) {
74
+ return `[execute] ${code}: ${detail.trim().replace(/[.!?]$/, "")}. Recovery: ${sentence(recovery)}`;
75
+ }
76
+ /**
77
+ * A Code Mode failure with a stable code, a recovery hint and context.
78
+ *
79
+ * @example
80
+ * ```ts
81
+ * throw new CodeModeError("PROVIDER_UNKNOWN", "No provider is configured as cad", "Use one of the listed aliases", {
82
+ * context: { available: ["slicer"] },
83
+ * });
84
+ * ```
85
+ */
86
+ class CodeModeError extends Error {
87
+ name = "CodeModeError";
88
+ code;
89
+ /** What went wrong, without the code prefix or the recovery hint. */
90
+ detail;
91
+ recovery;
92
+ context;
93
+ effects;
94
+ constructor(code, detail, recovery, options = {}) {
95
+ super(formatCodeModeError(code, detail, recovery));
96
+ this.code = code;
97
+ this.detail = detail;
98
+ this.recovery = recovery;
99
+ this.context = freezeContext(options.context ?? {});
100
+ this.effects = options.effects ?? "none";
101
+ }
102
+ /** Plain fields, safe to post across a worker boundary. */
103
+ toJSON() {
104
+ return {
105
+ code: this.code,
106
+ detail: this.detail,
107
+ recovery: this.recovery,
108
+ context: this.context,
109
+ effects: this.effects,
110
+ };
111
+ }
112
+ }
113
+ exports.CodeModeError = CodeModeError;
114
+ function freezeContext(value) {
115
+ const entries = Object.entries(value).filter(([, item]) => typeof item === "string" || typeof item === "number" || typeof item === "boolean" ||
116
+ (Array.isArray(item) && item.every((entry) => typeof entry === "string"))).map(([key, item]) => [key, Array.isArray(item) ? Object.freeze([...item]) : item]);
117
+ return Object.freeze(Object.fromEntries(entries));
118
+ }
119
+ /** True for a {@link CodeModeError}. */
120
+ function isCodeModeError(error) {
121
+ return error instanceof CodeModeError;
122
+ }
123
+ const KNOWN_CODES = new Set(exports.CODE_MODE_ERROR_CODES);
124
+ /**
125
+ * Rebuild an error from {@link CodeModeErrorFields}, for example after it
126
+ * crossed a worker boundary. Returns undefined for any other shape.
127
+ */
128
+ function codeModeErrorFromFields(value) {
129
+ if (!value || typeof value !== "object")
130
+ return undefined;
131
+ const fields = value;
132
+ if (typeof fields.code !== "string" || !KNOWN_CODES.has(fields.code) ||
133
+ typeof fields.detail !== "string" || typeof fields.recovery !== "string" ||
134
+ (fields.effects !== "none" && fields.effects !== "possible") ||
135
+ !fields.context || typeof fields.context !== "object" || Array.isArray(fields.context)) {
136
+ return undefined;
137
+ }
138
+ return new CodeModeError(fields.code, fields.detail, fields.recovery, {
139
+ context: fields.context,
140
+ effects: fields.effects,
141
+ });
142
+ }
143
+ /** The same failure, reported once an upstream operation may have completed. */
144
+ function withPossibleEffects(error) {
145
+ if (error.effects === "possible")
146
+ return error;
147
+ return new CodeModeError(error.code, error.detail, `${error.recovery.trim().replace(/[.!?]$/, "")}. ${exports.POSSIBLE_EFFECTS_RECOVERY}`, { context: error.context, effects: "possible" });
148
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Worker entry for Code Mode programs. It owns one QuickJS VM, runs one
3
+ * program, and asks the host for each api operation. The host terminates the
4
+ * worker afterwards. Loaded by `worker-host.ts` under Deno (Web Worker) and
5
+ * Node (`node:worker_threads`); keep it free of top-level await, which the
6
+ * CommonJS npm build rejects.
7
+ *
8
+ * @module code-mode/guest-worker
9
+ */
10
+ import "../../_dnt.polyfills.js";
11
+ //# sourceMappingURL=guest-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guest-worker.d.ts","sourceRoot":"","sources":["../../../src/src/code-mode/guest-worker.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,yBAAyB,CAAC"}
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ /**
27
+ * Worker entry for Code Mode programs. It owns one QuickJS VM, runs one
28
+ * program, and asks the host for each api operation. The host terminates the
29
+ * worker afterwards. Loaded by `worker-host.ts` under Deno (Web Worker) and
30
+ * Node (`node:worker_threads`); keep it free of top-level await, which the
31
+ * CommonJS npm build rejects.
32
+ *
33
+ * @module code-mode/guest-worker
34
+ */
35
+ require("../../_dnt.polyfills.js");
36
+ const dntShim = __importStar(require("../../_dnt.shims.js"));
37
+ const quickjs_emscripten_1 = require("quickjs-emscripten");
38
+ const errors_js_1 = require("./errors.js");
39
+ const sandbox_core_js_1 = require("./sandbox-core.js");
40
+ /** The host port, or undefined when this module is loaded outside a worker. */
41
+ function connect() {
42
+ const deno = dntShim.dntGlobalThis.Deno;
43
+ if (typeof deno?.version?.deno === "string") {
44
+ const workerScope = dntShim.dntGlobalThis
45
+ .WorkerGlobalScope;
46
+ if (typeof workerScope !== "function" || !(dntShim.dntGlobalThis instanceof workerScope)) {
47
+ return Promise.resolve(undefined);
48
+ }
49
+ const scope = dntShim.dntGlobalThis;
50
+ return Promise.resolve({
51
+ post: (message) => scope.postMessage(message),
52
+ listen: (handler) => scope.addEventListener("message", (event) => handler(event.data)),
53
+ });
54
+ }
55
+ return Promise.resolve().then(() => __importStar(require("node:worker_threads"))).then(({ parentPort }) => {
56
+ if (!parentPort)
57
+ return undefined;
58
+ return {
59
+ post: (message) => parentPort.postMessage(message),
60
+ listen: (handler) => parentPort.on("message", handler),
61
+ };
62
+ });
63
+ }
64
+ void connect().then((port) => {
65
+ if (!port)
66
+ return;
67
+ const waiting = new Map();
68
+ let nextCall = 0;
69
+ let started = false;
70
+ port.listen((message) => {
71
+ if (message.type === "reply") {
72
+ const waiter = waiting.get(message.id);
73
+ if (!waiter)
74
+ return;
75
+ waiting.delete(message.id);
76
+ if (message.ok)
77
+ waiter.resolve(JSON.parse(message.json));
78
+ else {
79
+ waiter.reject((0, errors_js_1.codeModeErrorFromFields)(message.error) ??
80
+ new errors_js_1.CodeModeError("OPERATION_FAILED", "The operation failed", "Retry once"));
81
+ }
82
+ return;
83
+ }
84
+ if (message.type !== "run" || started)
85
+ return;
86
+ started = true;
87
+ const cancel = new Int32Array(message.cancel);
88
+ (0, quickjs_emscripten_1.getQuickJS)().then((quickjs) => (0, sandbox_core_js_1.runVm)({
89
+ quickjs,
90
+ code: message.code,
91
+ params: message.params,
92
+ limits: message.limits,
93
+ isCancelled: () => Atomics.load(cancel, 0) === 1,
94
+ call: (operation, args) => new Promise((resolve, reject) => {
95
+ const id = nextCall++;
96
+ waiting.set(id, { resolve, reject });
97
+ port.post({ type: "call", id, operation, args });
98
+ }),
99
+ })).then((value) => port.post({ type: "done", value }), (error) => port.post({
100
+ type: "fail",
101
+ error: (error instanceof errors_js_1.CodeModeError ? error : new errors_js_1.CodeModeError("SANDBOX_FAILED", "The sandbox failed while running the program", "Run the program again")).toJSON(),
102
+ }));
103
+ });
104
+ port.post({ type: "ready" });
105
+ });
@@ -0,0 +1,69 @@
1
+ /** Browser-side transport for user-edited Code Mode dashboard layouts. @module */
2
+ import { capturePanelLayout } from "../host/renderer/panel-controls.js";
3
+ import type { PanelLayoutSnapshot } from "./layout.js";
4
+ /** The conversation receives a reference to the staged geometry. */
5
+ export interface SnippetLayoutReceipt {
6
+ /** Execution reference supplied by the server that owns the snippet. */
7
+ runId: string;
8
+ /** Monotonic revision within this mounted board. */
9
+ revision: number;
10
+ /** Whether the server has acknowledged this revision for saving. */
11
+ status: "pending" | "ready" | "failed";
12
+ }
13
+ /** State available to an App's translated layout feedback and retry controls. */
14
+ export type SnippetLayoutStatus = SnippetLayoutReceipt["status"] | "local" | "restore-failed";
15
+ /** MCP Apps host methods and the board's context writer, which can aggregate panel selections. */
16
+ export interface SnippetBoardLayoutOptions {
17
+ /** Connected MCP App providing the negotiated capabilities and the staging callback. */
18
+ host: {
19
+ getHostCapabilities(): {
20
+ serverTools?: unknown;
21
+ updateModelContext?: {
22
+ structuredContent?: unknown;
23
+ text?: unknown;
24
+ };
25
+ } | undefined;
26
+ callServerTool(params: {
27
+ name: string;
28
+ arguments: {
29
+ runId: string;
30
+ revision: number;
31
+ layout: PanelLayoutSnapshot;
32
+ };
33
+ }, options: {
34
+ signal: AbortSignal;
35
+ }): Promise<{
36
+ structuredContent?: unknown;
37
+ isError?: boolean;
38
+ }>;
39
+ };
40
+ /** The board's context writer, shared with the panels in this App. */
41
+ updateContext(update: {
42
+ structuredContent: {
43
+ snippetLayout: SnippetLayoutReceipt;
44
+ };
45
+ } | {
46
+ content: {
47
+ type: "text";
48
+ text: string;
49
+ }[];
50
+ }): Promise<object>;
51
+ /** App-only callback that stages the geometry and returns the matching run ID and revision. */
52
+ stageTool: string;
53
+ /** Execution metadata from the tool result. Without a reference, edits stay local. */
54
+ runId?: unknown;
55
+ /** Previously saved geometry supplied on replay. */
56
+ savedLayout?: unknown;
57
+ /** Signals the end of this board's display lifetime. */
58
+ signal: AbortSignal;
59
+ /** Receives updates for the App's own feedback, including recoverable errors. */
60
+ onStatus?(status: SnippetLayoutStatus): void;
61
+ }
62
+ /**
63
+ * Install the controls and restore a saved layout on a mounted board. Each
64
+ * committed gesture stages its geometry and publishes an acknowledgement for
65
+ * the next model turn. Pass the board's context writer when other panels share
66
+ * its context. The returned callback retries the current layout after an error.
67
+ */
68
+ export declare function connectSnippetBoardLayout(board: Parameters<typeof capturePanelLayout>[0], { host, updateContext, stageTool, runId, savedLayout, signal, onStatus }: SnippetBoardLayoutOptions): () => Promise<void>;
69
+ //# sourceMappingURL=layout-publisher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-publisher.d.ts","sourceRoot":"","sources":["../../../src/src/code-mode/layout-publisher.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,OAAO,EACL,kBAAkB,EAInB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,oEAAoE;AACpE,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;CACxC;AAED,iFAAiF;AACjF,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAC,QAAQ,CAAC,GAAG,OAAO,GAAG,gBAAgB,CAAC;AAE9F,kGAAkG;AAClG,MAAM,WAAW,yBAAyB;IACxC,wFAAwF;IACxF,IAAI,EAAE;QACJ,mBAAmB,IAAI;YACrB,WAAW,CAAC,EAAE,OAAO,CAAC;YACtB,kBAAkB,CAAC,EAAE;gBAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC;gBAAC,IAAI,CAAC,EAAE,OAAO,CAAA;aAAE,CAAC;SACtE,GAAG,SAAS,CAAC;QACd,cAAc,CACZ,MAAM,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,SAAS,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,QAAQ,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,mBAAmB,CAAA;aAAE,CAAC;SAC7E,EACD,OAAO,EAAE;YAAE,MAAM,EAAE,WAAW,CAAA;SAAE,GAC/B,OAAO,CAAC;YAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC;YAAC,OAAO,CAAC,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC;KAChE,CAAC;IACF,sEAAsE;IACtE,aAAa,CACX,MAAM,EACF;QAAE,iBAAiB,EAAE;YAAE,aAAa,EAAE,oBAAoB,CAAA;SAAE,CAAA;KAAE,GAC9D;QAAE,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,GAChD,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB,+FAA+F;IAC/F,SAAS,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oDAAoD;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wDAAwD;IACxD,MAAM,EAAE,WAAW,CAAC;IACpB,iFAAiF;IACjF,QAAQ,CAAC,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC9C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAC/C,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,EACtE,yBAAyB,GAC1B,MAAM,OAAO,CAAC,IAAI,CAAC,CA4ErB"}
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.connectSnippetBoardLayout = connectSnippetBoardLayout;
4
+ /** Browser-side transport for user-edited Code Mode dashboard layouts. @module */
5
+ const panel_controls_js_1 = require("../host/renderer/panel-controls.js");
6
+ /**
7
+ * Install the controls and restore a saved layout on a mounted board. Each
8
+ * committed gesture stages its geometry and publishes an acknowledgement for
9
+ * the next model turn. Pass the board's context writer when other panels share
10
+ * its context. The returned callback retries the current layout after an error.
11
+ */
12
+ function connectSnippetBoardLayout(board, { host, updateContext, stageTool, runId, savedLayout, signal, onStatus }) {
13
+ (0, panel_controls_js_1.installPanelMovement)(board, signal);
14
+ (0, panel_controls_js_1.installPanelResizing)(board, signal);
15
+ if (!signal.aborted && savedLayout !== undefined && !(0, panel_controls_js_1.restorePanelLayout)(board, savedLayout)) {
16
+ onStatus?.("restore-failed");
17
+ }
18
+ const capabilities = host.getHostCapabilities();
19
+ const formats = capabilities?.updateModelContext;
20
+ const structured = typeof formats?.structuredContent === "object" &&
21
+ formats.structuredContent !== null;
22
+ const text = typeof formats?.text === "object" && formats.text !== null;
23
+ let latest = 0;
24
+ let contextSent = Promise.resolve();
25
+ function sendReceipt(receipt) {
26
+ // Wait for the preceding context write even if the host delivers requests out of order.
27
+ const next = contextSent.then(async () => {
28
+ signal.throwIfAborted();
29
+ if (receipt.status !== "pending" && receipt.revision !== latest)
30
+ return;
31
+ const value = { snippetLayout: receipt };
32
+ // Once sent, an App-wide context update may include live selections from
33
+ // other panels. Let its acknowledgement settle even if this board closes.
34
+ const response = await updateContext(structured
35
+ ? { structuredContent: value }
36
+ : { content: [{ type: "text", text: JSON.stringify(value) }] });
37
+ if ("isError" in response && response.isError)
38
+ throw new Error("Layout receipt rejected");
39
+ });
40
+ contextSent = next.catch(() => { });
41
+ return next;
42
+ }
43
+ async function commit() {
44
+ if (signal.aborted)
45
+ return;
46
+ if (typeof runId !== "string" || !capabilities?.serverTools || !(structured || text)) {
47
+ onStatus?.("local");
48
+ return;
49
+ }
50
+ const layout = (0, panel_controls_js_1.capturePanelLayout)(board);
51
+ if (!layout) {
52
+ onStatus?.("local");
53
+ return;
54
+ }
55
+ const revision = ++latest;
56
+ const current = () => latest === revision && !signal.aborted;
57
+ onStatus?.("pending");
58
+ try {
59
+ const [staged] = await Promise.all([
60
+ host.callServerTool({ name: stageTool, arguments: { runId, revision, layout } }, {
61
+ signal,
62
+ }),
63
+ sendReceipt({ runId, revision, status: "pending" }),
64
+ ]);
65
+ const ack = staged.structuredContent;
66
+ if (staged.isError || !ack || typeof ack !== "object" ||
67
+ !("runId" in ack) || ack.runId !== runId ||
68
+ !("revision" in ack) || ack.revision !== revision) {
69
+ throw new Error("Layout revision not acknowledged");
70
+ }
71
+ if (!current())
72
+ return;
73
+ await sendReceipt({ runId, revision, status: "ready" });
74
+ if (current())
75
+ onStatus?.("ready");
76
+ }
77
+ catch {
78
+ if (!current())
79
+ return;
80
+ onStatus?.("failed");
81
+ // Leave retry available even when a disconnected host rejects the failure notice.
82
+ await sendReceipt({ runId, revision, status: "failed" }).catch(() => { });
83
+ }
84
+ }
85
+ const events = board;
86
+ events.addEventListener("compose-panel-layout-committed", commit, { signal });
87
+ return commit;
88
+ }
@@ -0,0 +1,35 @@
1
+ /** Scoped layout drafts for saved Code Mode dashboards. @module */
2
+ import "../../_dnt.polyfills.js";
3
+ import { type PanelLayoutSnapshot } from "./layout.js";
4
+ /** Accepted widths per stable panel ID. Use an empty list for a fixed-width viewer. */
5
+ export type PanelWidths = ReadonlyMap<string, readonly number[]>;
6
+ /** Correlate app gestures and explicit snippet saves within a trusted execution scope. */
7
+ export declare class BoardLayoutRuns<Receipt = void> {
8
+ private readonly runs;
9
+ private readonly referenceTtlMs;
10
+ private readonly maxPendingReferences;
11
+ /** Pass the reference lifetime and capacity used by the snippet catalog. */
12
+ constructor(options?: {
13
+ referenceTtlMs?: number;
14
+ maxPendingReferences?: number;
15
+ });
16
+ /** Register a successful run and return the saved layout if it fits today's panel declarations. */
17
+ open(scope: string, runId: string, panels: PanelWidths, replayedName?: string, savedLayout?: unknown): PanelLayoutSnapshot | undefined;
18
+ private find;
19
+ /** Bind the name only after the scoped catalog has successfully saved the program. */
20
+ saved(scope: string, runId: string, name: string): void;
21
+ /** Acknowledge a committed layout, including an identical retry after a lost response. */
22
+ stage(scope: string, runId: unknown, revision: unknown, snapshot: unknown): {
23
+ runId: string;
24
+ revision: number;
25
+ };
26
+ /** Return only acknowledged geometry for save or update. An update must target a bound name. */
27
+ selected(scope: string, runId: string, revision?: unknown, updateName?: string): PanelLayoutSnapshot | undefined;
28
+ /**
29
+ * Apply the explicit update once per named board revision. Retain only the
30
+ * latest receipt per bound name until this execution expires. A failed
31
+ * write can be retried, and an older in-flight write finishes before a newer one.
32
+ */
33
+ commitUpdate(scope: string, runId: string, revision: number, name: string, write: (layout: PanelLayoutSnapshot) => Promise<Receipt>): Promise<Receipt>;
34
+ }
35
+ //# sourceMappingURL=layout-runs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-runs.d.ts","sourceRoot":"","sources":["../../../src/src/code-mode/layout-runs.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE9E,uFAAuF;AACvF,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;AA0BjE,0FAA0F;AAC1F,qBAAa,eAAe,CAAC,OAAO,GAAG,IAAI;IACzC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAwC;IAC7D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;IAE9C,4EAA4E;gBAChE,OAAO,GAAE;QAAE,cAAc,CAAC,EAAE,MAAM,CAAC;QAAC,oBAAoB,CAAC,EAAE,MAAM,CAAA;KAAO;IAUpF,mGAAmG;IACnG,IAAI,CACF,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,WAAW,EACnB,YAAY,CAAC,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,OAAO,GACpB,mBAAmB,GAAG,SAAS;IAuBlC,OAAO,CAAC,IAAI;IAKZ,sFAAsF;IACtF,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAQvD,0FAA0F;IAC1F,KAAK,CACH,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,OAAO,GAChB;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;IAuBtC,gGAAgG;IAChG,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,OAAO,EAClB,UAAU,CAAC,EAAE,MAAM,GAClB,mBAAmB,GAAG,SAAS;IAgBlC;;;;OAIG;IACG,YAAY,CAChB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,OAAO,CAAC,GACvD,OAAO,CAAC,OAAO,CAAC;CAiBpB"}
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoardLayoutRuns = void 0;
4
+ /** Scoped layout drafts for saved Code Mode dashboards. @module */
5
+ require("../../_dnt.polyfills.js");
6
+ const layout_js_1 = require("./layout.js");
7
+ function matchesBoard(value, panels) {
8
+ return (0, layout_js_1.isPanelLayoutSnapshot)(value) && value.order.length === panels.size &&
9
+ value.order.every((id) => panels.has(id)) &&
10
+ value.widths.every(({ panel, width }) => panels.get(panel)?.includes(width));
11
+ }
12
+ function copyLayout({ order, widths, placements }) {
13
+ return {
14
+ version: 1,
15
+ order: [...order],
16
+ widths: widths.map(({ panel, width }) => ({ panel, width })),
17
+ placements: placements.map(({ panel, beside, side }) => ({ panel, beside, side })),
18
+ };
19
+ }
20
+ /** Correlate app gestures and explicit snippet saves within a trusted execution scope. */
21
+ class BoardLayoutRuns {
22
+ runs = new Map();
23
+ referenceTtlMs;
24
+ maxPendingReferences;
25
+ /** Pass the reference lifetime and capacity used by the snippet catalog. */
26
+ constructor(options = {}) {
27
+ this.referenceTtlMs = options.referenceTtlMs ?? 10 * 60_000;
28
+ this.maxPendingReferences = options.maxPendingReferences ?? 1024;
29
+ for (const limit of [this.referenceTtlMs, this.maxPendingReferences]) {
30
+ if (!Number.isSafeInteger(limit) || limit <= 0) {
31
+ throw new RangeError("Invalid reference limit");
32
+ }
33
+ }
34
+ }
35
+ /** Register a successful run and return the saved layout if it fits today's panel declarations. */
36
+ open(scope, runId, panels, replayedName, savedLayout) {
37
+ if (!scope.trim() || !runId.trim()) {
38
+ throw new TypeError("Dashboard runs require a scope and run ID");
39
+ }
40
+ const now = Date.now();
41
+ if ((this.runs.get(runId)?.expiresAt ?? 0) > now) {
42
+ throw new Error("Dashboard execution already registered");
43
+ }
44
+ for (const [key, run] of this.runs) {
45
+ if (run.expiresAt > now && this.runs.size < this.maxPendingReferences)
46
+ break;
47
+ this.runs.delete(key);
48
+ }
49
+ const initial = matchesBoard(savedLayout, panels) ? copyLayout(savedLayout) : undefined;
50
+ this.runs.set(runId, {
51
+ scope,
52
+ panels: new Map(Array.from(panels, ([id, widths]) => [id, [...widths]])),
53
+ names: new Map(replayedName === undefined ? [] : [[replayedName, undefined]]),
54
+ initial,
55
+ expiresAt: now + this.referenceTtlMs,
56
+ });
57
+ return initial && copyLayout(initial);
58
+ }
59
+ find(scope, runId) {
60
+ const run = this.runs.get(runId);
61
+ if (run?.scope === scope && run.expiresAt > Date.now())
62
+ return run;
63
+ }
64
+ /** Bind the name only after the scoped catalog has successfully saved the program. */
65
+ saved(scope, runId, name) {
66
+ const run = this.find(scope, runId);
67
+ if (!run || run.names.has(name))
68
+ return;
69
+ // Cap both bound aliases and retained receipts. A dropped alias can be reopened normally.
70
+ if (run.names.size >= 32)
71
+ run.names.delete(run.names.keys().next().value);
72
+ run.names.set(name, undefined);
73
+ }
74
+ /** Acknowledge a committed layout, including an identical retry after a lost response. */
75
+ stage(scope, runId, revision, snapshot) {
76
+ const run = typeof runId === "string" && this.find(scope, runId);
77
+ if (!run || typeof runId !== "string") {
78
+ throw new Error("Dashboard execution expired or unavailable. Reopen the dashboard.");
79
+ }
80
+ if (typeof revision !== "number" || !Number.isSafeInteger(revision) || revision < 1 ||
81
+ !matchesBoard(snapshot, run.panels)) {
82
+ throw new Error("Invalid layout for this dashboard execution.");
83
+ }
84
+ const layout = copyLayout(snapshot);
85
+ if (run.draft && (revision < run.draft.revision ||
86
+ (revision === run.draft.revision &&
87
+ JSON.stringify(layout) !== JSON.stringify(run.draft.layout)))) {
88
+ throw new Error("The dashboard layout revision is stale.");
89
+ }
90
+ run.draft = { revision, layout };
91
+ return { runId, revision };
92
+ }
93
+ /** Return only acknowledged geometry for save or update. An update must target a bound name. */
94
+ selected(scope, runId, revision, updateName) {
95
+ const run = this.find(scope, runId);
96
+ if (revision === undefined && updateName === undefined && !run?.draft) {
97
+ return run?.initial && copyLayout(run.initial);
98
+ }
99
+ if (!run?.draft || revision !== run.draft.revision) {
100
+ throw new Error("Use the latest ready snippetLayout runId and revision from the dashboard.");
101
+ }
102
+ if (updateName !== undefined && !run.names.has(updateName)) {
103
+ throw new Error("This dashboard belongs to a different snippet. Open or save the requested snippet first.");
104
+ }
105
+ return copyLayout(run.draft.layout);
106
+ }
107
+ /**
108
+ * Apply the explicit update once per named board revision. Retain only the
109
+ * latest receipt per bound name until this execution expires. A failed
110
+ * write can be retried, and an older in-flight write finishes before a newer one.
111
+ */
112
+ async commitUpdate(scope, runId, revision, name, write) {
113
+ const layout = this.selected(scope, runId, revision, name);
114
+ if (!layout)
115
+ throw new Error("The dashboard has no acknowledged layout.");
116
+ const run = this.runs.get(runId);
117
+ const previous = run.names.get(name);
118
+ if (previous?.revision === revision)
119
+ return await previous.receipt;
120
+ const receipt = (previous?.receipt ?? Promise.resolve())
121
+ .catch(() => { })
122
+ .then(() => write(layout));
123
+ run.names.set(name, { revision, receipt });
124
+ try {
125
+ return await receipt;
126
+ }
127
+ catch (error) {
128
+ if (run.names.get(name)?.receipt === receipt)
129
+ run.names.set(name, undefined);
130
+ throw error;
131
+ }
132
+ }
133
+ }
134
+ exports.BoardLayoutRuns = BoardLayoutRuns;
@@ -0,0 +1,20 @@
1
+ /** Versioned layout preferences for a Code Mode dashboard. @module */
2
+ /** User-selected panel positions and supported widths, independent of ERP data and chat context. */
3
+ import "../../_dnt.polyfills.js";
4
+ export type PanelLayoutSnapshot = {
5
+ readonly version: 1;
6
+ /** Panel IDs in the template's original slot order. */
7
+ readonly order: readonly string[];
8
+ readonly widths: readonly {
9
+ readonly panel: string;
10
+ readonly width: number;
11
+ }[];
12
+ readonly placements: readonly {
13
+ readonly panel: string;
14
+ readonly beside: string;
15
+ readonly side: "left" | "right" | "below";
16
+ }[];
17
+ };
18
+ /** Validate an untrusted JSON snapshot, including placement anchors and their dependencies. */
19
+ export declare function isPanelLayoutSnapshot(value: unknown): value is PanelLayoutSnapshot;
20
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/src/code-mode/layout.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oGAAoG;AACpG,OAAO,yBAAyB,CAAC;AAEjC,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpB,uDAAuD;IACvD,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,SAAS;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/E,QAAQ,CAAC,UAAU,EAAE,SAAS;QAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;KAC3C,EAAE,CAAC;CACL,CAAC;AAiBF,+FAA+F;AAC/F,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB,CAsClF"}