@mcoda/mswarm 0.1.135-codali.12 → 0.1.135-codali.18
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/dist/vendor/codali/cli/TerminalArtifacts.d.ts +5 -0
- package/dist/vendor/codali/cli/TerminalArtifacts.d.ts.map +1 -0
- package/dist/vendor/codali/cli/TerminalArtifacts.js +26 -0
- package/dist/vendor/codali/cli/TerminalCommand.d.ts.map +1 -1
- package/dist/vendor/codali/cli/TerminalCommand.js +363 -62
- package/dist/vendor/codali/cli/TerminalInput.d.ts +7 -0
- package/dist/vendor/codali/cli/TerminalInput.d.ts.map +1 -1
- package/dist/vendor/codali/cli/TerminalInput.js +53 -7
- package/dist/vendor/codali/cli/TerminalModels.d.ts +6 -0
- package/dist/vendor/codali/cli/TerminalModels.d.ts.map +1 -0
- package/dist/vendor/codali/cli/TerminalModels.js +45 -0
- package/dist/vendor/codali/cli/TerminalPlan.d.ts +40 -0
- package/dist/vendor/codali/cli/TerminalPlan.d.ts.map +1 -0
- package/dist/vendor/codali/cli/TerminalPlan.js +37 -0
- package/dist/vendor/codali/cli/tui/TerminalCells.d.ts +6 -0
- package/dist/vendor/codali/cli/tui/TerminalCells.d.ts.map +1 -0
- package/dist/vendor/codali/cli/tui/TerminalCells.js +47 -0
- package/dist/vendor/codali/cli/tui/TerminalEditor.d.ts +22 -0
- package/dist/vendor/codali/cli/tui/TerminalEditor.d.ts.map +1 -0
- package/dist/vendor/codali/cli/tui/TerminalEditor.js +88 -0
- package/dist/vendor/codali/cli/tui/TerminalPresentation.d.ts +4 -0
- package/dist/vendor/codali/cli/tui/TerminalPresentation.d.ts.map +1 -0
- package/dist/vendor/codali/cli/tui/TerminalPresentation.js +68 -0
- package/dist/vendor/codali/cli/tui/TerminalScreen.d.ts +49 -0
- package/dist/vendor/codali/cli/tui/TerminalScreen.d.ts.map +1 -0
- package/dist/vendor/codali/cli/tui/TerminalScreen.js +130 -0
- package/dist/vendor/codali/cli/tui/TerminalTui.d.ts +78 -0
- package/dist/vendor/codali/cli/tui/TerminalTui.d.ts.map +1 -0
- package/dist/vendor/codali/cli/tui/TerminalTui.js +469 -0
- package/dist/vendor/codali/cli.d.ts.map +1 -1
- package/dist/vendor/codali/cli.js +4 -2
- package/dist/vendor/codali/config/OrchestrationConfig.d.ts +15 -0
- package/dist/vendor/codali/config/OrchestrationConfig.d.ts.map +1 -1
- package/dist/vendor/codali/config/OrchestrationConfig.js +19 -1
- package/dist/vendor/codali/connectors/media/MediaJobStore.d.ts +2 -1
- package/dist/vendor/codali/connectors/media/MediaJobStore.d.ts.map +1 -1
- package/dist/vendor/codali/connectors/media/MediaJobStore.js +11 -3
- package/dist/vendor/codali/runtime/InteractionRouter.d.ts +30 -0
- package/dist/vendor/codali/runtime/InteractionRouter.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/InteractionRouter.js +53 -0
- package/dist/vendor/codali/runtime/PreparedMemory.d.ts +3 -0
- package/dist/vendor/codali/runtime/PreparedMemory.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/PreparedMemory.js +30 -0
- package/dist/vendor/codali/runtime/ReviewCoordinator.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/ReviewCoordinator.js +8 -2
- package/dist/vendor/codali/runtime/SessionController.d.ts +27 -1
- package/dist/vendor/codali/runtime/SessionController.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/SessionController.js +276 -33
- package/dist/vendor/codali/session/SessionStore.d.ts +5 -1
- package/dist/vendor/codali/session/SessionStore.d.ts.map +1 -1
- package/dist/vendor/codali/session/SessionStore.js +11 -2
- package/package.json +7 -4
|
@@ -9,15 +9,22 @@ export declare class TerminalInput extends Transform {
|
|
|
9
9
|
private pasted;
|
|
10
10
|
private bytes;
|
|
11
11
|
private overflow;
|
|
12
|
+
private escapeTimer?;
|
|
13
|
+
private escapeNotified;
|
|
14
|
+
private mousePending;
|
|
12
15
|
constructor(options: {
|
|
13
16
|
onPaste: (text: string) => void;
|
|
14
17
|
onRejected: (reason: string) => void;
|
|
15
18
|
maxPasteBytes?: number;
|
|
19
|
+
onEscape?: () => void;
|
|
20
|
+
onWheel?: (direction: -1 | 1) => void;
|
|
16
21
|
});
|
|
17
22
|
private append;
|
|
23
|
+
private forward;
|
|
18
24
|
private consume;
|
|
19
25
|
_transform(chunk: Buffer, _encoding: BufferEncoding, callback: TransformCallback): void;
|
|
20
26
|
_flush(callback: TransformCallback): void;
|
|
27
|
+
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
21
28
|
}
|
|
22
29
|
/** readline exposes the current editable line and cursor; refresh preserves multiline content. */
|
|
23
30
|
export declare const insertTerminalPaste: (readline: Interface, text: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TerminalInput.d.ts","sourceRoot":"","sources":["../../src/cli/TerminalInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS/C,qFAAqF;AACrF,qBAAa,aAAc,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"TerminalInput.d.ts","sourceRoot":"","sources":["../../src/cli/TerminalInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS/C,qFAAqF;AACrF,qBAAa,aAAc,SAAQ,SAAS;IAU9B,OAAO,CAAC,QAAQ,CAAC,OAAO;IATpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IACrD,OAAO,CAAC,OAAO,CAAM;IACrB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,KAAK,CAAK;IAClB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,WAAW,CAAC,CAAiB;IACrC,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,YAAY,CAAM;gBACG,OAAO,EAAE;QAAE,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,CAAA;KAAE;IACrM,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,OAAO;IAmBf,OAAO,CAAC,OAAO;IAmBN,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI;IAevF,MAAM,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;IAQzC,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI;CACvF;AAED,kGAAkG;AAClG,eAAO,MAAM,mBAAmB,GAAI,UAAU,SAAS,EAAE,MAAM,MAAM,KAAG,IAOvE,CAAC"}
|
|
@@ -19,6 +19,8 @@ export class TerminalInput extends Transform {
|
|
|
19
19
|
this.pasted = "";
|
|
20
20
|
this.bytes = 0;
|
|
21
21
|
this.overflow = false;
|
|
22
|
+
this.escapeNotified = false;
|
|
23
|
+
this.mousePending = "";
|
|
22
24
|
}
|
|
23
25
|
append(text) {
|
|
24
26
|
this.bytes += Buffer.byteLength(text);
|
|
@@ -29,6 +31,36 @@ export class TerminalInput extends Transform {
|
|
|
29
31
|
else if (!this.overflow)
|
|
30
32
|
this.pasted += text;
|
|
31
33
|
}
|
|
34
|
+
forward(text) {
|
|
35
|
+
if (this.options.onWheel) {
|
|
36
|
+
text = this.mousePending + text;
|
|
37
|
+
this.mousePending = "";
|
|
38
|
+
text = text.replace(/\x1b\[<(\d+);(\d+);(\d+)([Mm])/g, (_match, code, _x, _y, end) => {
|
|
39
|
+
const button = Number(code);
|
|
40
|
+
if (end === "M" && (button & 64) && (button & 3) < 2)
|
|
41
|
+
this.options.onWheel?.((button & 1) ? 1 : -1);
|
|
42
|
+
return "";
|
|
43
|
+
});
|
|
44
|
+
const partial = /\x1b\[<[0-9;]{0,40}$/.exec(text);
|
|
45
|
+
if (partial) {
|
|
46
|
+
this.mousePending = partial[0];
|
|
47
|
+
text = text.slice(0, partial.index);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// A standalone Escape can share a read with the next paste marker. Notify
|
|
51
|
+
// it before delivering that paste instead of leaving readline's escape
|
|
52
|
+
// timeout pending while the paste callback observes the old modal state.
|
|
53
|
+
let escapes = 0;
|
|
54
|
+
if (this.options.onEscape)
|
|
55
|
+
while (text.endsWith("\u001b")) {
|
|
56
|
+
text = text.slice(0, -1);
|
|
57
|
+
escapes++;
|
|
58
|
+
}
|
|
59
|
+
if (text)
|
|
60
|
+
this.push(text);
|
|
61
|
+
for (let index = 0; index < escapes; index++)
|
|
62
|
+
this.options.onEscape();
|
|
63
|
+
}
|
|
32
64
|
consume(text) {
|
|
33
65
|
this.pending += text;
|
|
34
66
|
while (this.pending) {
|
|
@@ -39,8 +71,8 @@ export class TerminalInput extends Transform {
|
|
|
39
71
|
const ready = this.pending.slice(0, this.pending.length - keep);
|
|
40
72
|
if (this.pasting)
|
|
41
73
|
this.append(ready);
|
|
42
|
-
else
|
|
43
|
-
this.
|
|
74
|
+
else
|
|
75
|
+
this.forward(ready);
|
|
44
76
|
this.pending = keep ? this.pending.slice(-keep) : "";
|
|
45
77
|
return;
|
|
46
78
|
}
|
|
@@ -58,15 +90,25 @@ export class TerminalInput extends Transform {
|
|
|
58
90
|
this.overflow = false;
|
|
59
91
|
}
|
|
60
92
|
else {
|
|
61
|
-
|
|
62
|
-
this.push(ready);
|
|
93
|
+
this.forward(ready);
|
|
63
94
|
this.pasting = true;
|
|
64
95
|
}
|
|
65
96
|
}
|
|
66
97
|
}
|
|
67
98
|
_transform(chunk, _encoding, callback) {
|
|
68
99
|
try {
|
|
69
|
-
|
|
100
|
+
if (this.escapeTimer)
|
|
101
|
+
clearTimeout(this.escapeTimer);
|
|
102
|
+
const text = this.decoder.write(chunk);
|
|
103
|
+
// Notify a standalone Escape promptly, but retain its prefix so a delayed
|
|
104
|
+
// bracketed-paste marker still cannot turn pasted newlines into commands.
|
|
105
|
+
if (this.escapeNotified && this.pending === "\u001b" && !text.startsWith("["))
|
|
106
|
+
this.pending = "";
|
|
107
|
+
this.escapeNotified = false;
|
|
108
|
+
this.consume(text);
|
|
109
|
+
if (!this.pasting && this.pending === "\u001b" && this.options.onEscape) {
|
|
110
|
+
this.escapeTimer = setTimeout(() => { this.escapeNotified = true; this.options.onEscape?.(); }, 100);
|
|
111
|
+
}
|
|
70
112
|
callback();
|
|
71
113
|
}
|
|
72
114
|
catch (error) {
|
|
@@ -75,17 +117,21 @@ export class TerminalInput extends Transform {
|
|
|
75
117
|
}
|
|
76
118
|
_flush(callback) {
|
|
77
119
|
try {
|
|
120
|
+
if (this.escapeTimer)
|
|
121
|
+
clearTimeout(this.escapeTimer);
|
|
78
122
|
this.consume(this.decoder.end());
|
|
79
123
|
if (this.pasting)
|
|
80
124
|
this.options.onRejected("Incomplete paste discarded");
|
|
81
|
-
else if (this.pending)
|
|
82
|
-
this.
|
|
125
|
+
else if (this.pending && !(this.pending === "\u001b" && this.escapeNotified))
|
|
126
|
+
this.forward(this.pending);
|
|
83
127
|
callback();
|
|
84
128
|
}
|
|
85
129
|
catch (error) {
|
|
86
130
|
callback(error);
|
|
87
131
|
}
|
|
88
132
|
}
|
|
133
|
+
_destroy(error, callback) { if (this.escapeTimer)
|
|
134
|
+
clearTimeout(this.escapeTimer); callback(error); }
|
|
89
135
|
}
|
|
90
136
|
/** readline exposes the current editable line and cursor; refresh preserves multiline content. */
|
|
91
137
|
export const insertTerminalPaste = (readline, text) => {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ModelOperation, type ResolvedOrchestrationConfig } from "../config/OrchestrationConfig.js";
|
|
2
|
+
export declare const terminalModelOperation: (binding: string) => ModelOperation;
|
|
3
|
+
export declare const proposeTerminalModel: (resolved: ResolvedOrchestrationConfig, binding: string, modelId: string) => ResolvedOrchestrationConfig;
|
|
4
|
+
/** Preserve concurrent edits; the caller must validate live entitlement before saving. */
|
|
5
|
+
export declare const saveTerminalModel: (previous: ResolvedOrchestrationConfig, next: ResolvedOrchestrationConfig, signal: AbortSignal) => Promise<void>;
|
|
6
|
+
//# sourceMappingURL=TerminalModels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalModels.d.ts","sourceRoot":"","sources":["../../src/cli/TerminalModels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqH,KAAK,cAAc,EAAE,KAAK,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAG5N,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,KAAG,cAMxD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,UAAU,2BAA2B,EAAE,SAAS,MAAM,EAAE,SAAS,MAAM,KAAG,2BAY9G,CAAC;AAEF,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,GAAU,UAAU,2BAA2B,EAAE,MAAM,2BAA2B,EAAE,QAAQ,WAAW,KAAG,OAAO,CAAC,IAAI,CAWnJ,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { configuredEmbeddingSpace, loadOrchestrationConfig, orchestrationHash, resolveBinding, validateOrchestrationConfig } from "../config/OrchestrationConfig.js";
|
|
2
|
+
import { atomicWriteJson, withStateLock } from "../session/AtomicState.js";
|
|
3
|
+
export const terminalModelOperation = (binding) => {
|
|
4
|
+
if (binding === "embedding")
|
|
5
|
+
return "embeddings";
|
|
6
|
+
if (binding === "image")
|
|
7
|
+
return "images.generations";
|
|
8
|
+
if (binding === "audio")
|
|
9
|
+
return "audio.generations";
|
|
10
|
+
if (binding === "video")
|
|
11
|
+
return "videos.generations";
|
|
12
|
+
return "chat.completions";
|
|
13
|
+
};
|
|
14
|
+
export const proposeTerminalModel = (resolved, binding, modelId) => {
|
|
15
|
+
const config = structuredClone(resolved.config);
|
|
16
|
+
if (!Object.prototype.hasOwnProperty.call(config.bindings, binding))
|
|
17
|
+
throw new Error(`Unknown configured binding: ${binding}`);
|
|
18
|
+
if (!Object.prototype.hasOwnProperty.call(config.models, modelId))
|
|
19
|
+
throw new Error(`Unknown configured model: ${modelId}`);
|
|
20
|
+
const previousSpace = config.bindings.embedding && config.bindings.embedding.enabled !== false ? configuredEmbeddingSpace(config) : undefined;
|
|
21
|
+
const old = config.bindings[binding];
|
|
22
|
+
config.bindings[binding] = { enabled: true, candidates: [modelId],
|
|
23
|
+
...((binding === "embedding" ? previousSpace?.label ?? old.embeddingSpace : old.embeddingSpace) ? { embeddingSpace: binding === "embedding" ? previousSpace?.label ?? old.embeddingSpace : old.embeddingSpace } : {}) };
|
|
24
|
+
validateOrchestrationConfig(config);
|
|
25
|
+
resolveBinding(config, binding, terminalModelOperation(binding));
|
|
26
|
+
if (previousSpace && configuredEmbeddingSpace(config).id !== previousSpace.id)
|
|
27
|
+
throw new Error("Embedding space would change. Use a new configuration and a fresh session to rebuild a separate index; the current index cannot be reused.");
|
|
28
|
+
return { config, source: resolved.source, hash: orchestrationHash(config) };
|
|
29
|
+
};
|
|
30
|
+
/** Preserve concurrent edits; the caller must validate live entitlement before saving. */
|
|
31
|
+
export const saveTerminalModel = async (previous, next, signal) => {
|
|
32
|
+
if (next.source !== previous.source)
|
|
33
|
+
throw new Error("Model selection must retain the shared configuration source");
|
|
34
|
+
validateOrchestrationConfig(next.config);
|
|
35
|
+
if (next.hash !== orchestrationHash(next.config))
|
|
36
|
+
throw new Error("Model configuration hash mismatch");
|
|
37
|
+
signal.throwIfAborted();
|
|
38
|
+
await withStateLock(previous.source, async () => {
|
|
39
|
+
const current = await loadOrchestrationConfig(previous.source);
|
|
40
|
+
if (current.hash !== previous.hash)
|
|
41
|
+
throw new Error("Configuration changed on disk; use /config reload and review the selection again");
|
|
42
|
+
signal.throwIfAborted();
|
|
43
|
+
await atomicWriteJson(previous.source, next.config);
|
|
44
|
+
});
|
|
45
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { WorkState } from "../session/WorkTypes.js";
|
|
2
|
+
export declare const inspectPlanDiff: (state: WorkState, from?: number, to?: number) => {
|
|
3
|
+
fromRevision: number;
|
|
4
|
+
toRevision: number;
|
|
5
|
+
tasks: {
|
|
6
|
+
id: string;
|
|
7
|
+
before?: {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
phaseId: string | undefined;
|
|
11
|
+
requirementIds: string[];
|
|
12
|
+
dependsOn: string[];
|
|
13
|
+
allowedPaths: string[];
|
|
14
|
+
} | undefined;
|
|
15
|
+
after?: {
|
|
16
|
+
id: string;
|
|
17
|
+
title: string;
|
|
18
|
+
phaseId: string | undefined;
|
|
19
|
+
requirementIds: string[];
|
|
20
|
+
dependsOn: string[];
|
|
21
|
+
allowedPaths: string[];
|
|
22
|
+
} | undefined;
|
|
23
|
+
}[];
|
|
24
|
+
phases: {
|
|
25
|
+
id: string;
|
|
26
|
+
before?: {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
29
|
+
dependsOn: string[];
|
|
30
|
+
exitRequirementIds: string[];
|
|
31
|
+
} | undefined;
|
|
32
|
+
after?: {
|
|
33
|
+
id: string;
|
|
34
|
+
title: string;
|
|
35
|
+
dependsOn: string[];
|
|
36
|
+
exitRequirementIds: string[];
|
|
37
|
+
} | undefined;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=TerminalPlan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalPlan.d.ts","sourceRoot":"","sources":["../../src/cli/TerminalPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,yBAAyB,CAAC;AAiB9E,eAAO,MAAM,eAAe,GAAI,OAAO,SAAS,EAAE,OAAO,MAAM,EAAE,KAAK,MAAM;;;;YARS,MAAM;;;;;;;;;;;;;;;;;;;YAAN,MAAM;;;;;;;;;;;;;;CA0B1F,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const taskContract = (task) => ({
|
|
2
|
+
id: task.id, title: task.title, phaseId: task.phaseId,
|
|
3
|
+
requirementIds: [...task.requirementIds].sort(), dependsOn: [...task.dependsOn].sort(), allowedPaths: [...task.allowedPaths].sort(),
|
|
4
|
+
});
|
|
5
|
+
const phaseContract = (phase) => ({
|
|
6
|
+
id: phase.id, title: phase.title, dependsOn: [...phase.dependsOn].sort(), exitRequirementIds: [...phase.exitRequirementIds].sort(),
|
|
7
|
+
});
|
|
8
|
+
const differences = (before, after) => {
|
|
9
|
+
const old = new Map(before.map(item => [item.id, item]));
|
|
10
|
+
const next = new Map(after.map(item => [item.id, item]));
|
|
11
|
+
return [...new Set([...old.keys(), ...next.keys()])].sort()
|
|
12
|
+
.filter(id => JSON.stringify(old.get(id)) !== JSON.stringify(next.get(id)))
|
|
13
|
+
.map(id => ({ id, before: old.get(id), after: next.get(id) }));
|
|
14
|
+
};
|
|
15
|
+
export const inspectPlanDiff = (state, from, to) => {
|
|
16
|
+
const current = state.planRevision ?? 1;
|
|
17
|
+
const history = state.planHistory ?? [];
|
|
18
|
+
const toRevision = to ?? current;
|
|
19
|
+
const previous = history.filter(item => item.revision < toRevision).reduce((latest, item) => Math.max(latest, item.revision), 0);
|
|
20
|
+
const fromRevision = from ?? (previous || toRevision);
|
|
21
|
+
const snapshot = (revision) => {
|
|
22
|
+
if (!Number.isSafeInteger(revision) || revision < 1)
|
|
23
|
+
throw new Error("Plan revisions must be positive integers");
|
|
24
|
+
if (revision === current)
|
|
25
|
+
return { tasks: state.tasks, phases: state.phases ?? [] };
|
|
26
|
+
const saved = history.find(item => item.revision === revision);
|
|
27
|
+
if (!saved)
|
|
28
|
+
throw new Error(`Unknown plan revision ${revision}`);
|
|
29
|
+
return saved;
|
|
30
|
+
};
|
|
31
|
+
const before = snapshot(fromRevision);
|
|
32
|
+
const after = snapshot(toRevision);
|
|
33
|
+
return { fromRevision, toRevision,
|
|
34
|
+
tasks: differences(before.tasks.map(taskContract), after.tasks.map(taskContract)),
|
|
35
|
+
phases: differences(before.phases.map(phaseContract), after.phases.map(phaseContract)),
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const graphemes: (text: string) => string[];
|
|
2
|
+
export declare const cells: (text: string) => number;
|
|
3
|
+
export declare const fitCells: (text: string, width: number, ellipsis?: boolean) => string;
|
|
4
|
+
export declare const wrapCells: (text: string, width: number) => string[];
|
|
5
|
+
export declare const padCells: (text: string, width: number) => string;
|
|
6
|
+
//# sourceMappingURL=TerminalCells.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalCells.d.ts","sourceRoot":"","sources":["../../../src/cli/tui/TerminalCells.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,MAAM,EAA2G,CAAC;AAC3J,eAAO,MAAM,KAAK,GAAI,MAAM,MAAM,KAAG,MAAuE,CAAC;AAG7G,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,kBAAgB,KAAG,MAYxE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,KAAG,MAAM,EAY7D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,KAAG,MAGtD,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/// <reference lib="es2022.intl" />
|
|
2
|
+
import stringWidth from "string-width";
|
|
3
|
+
const segmenter = new Intl.Segmenter(undefined, { granularity: "grapheme" });
|
|
4
|
+
export const graphemes = (text) => /^[\x20-\x7e]*$/.test(text) ? text.split("") : [...segmenter.segment(text)].map(part => part.segment);
|
|
5
|
+
export const cells = (text) => /^[\x20-\x7e]*$/.test(text) ? text.length : stringWidth(text);
|
|
6
|
+
const finiteWidth = (width) => Number.isFinite(width) ? Math.max(0, Math.floor(width)) : 0;
|
|
7
|
+
export const fitCells = (text, width, ellipsis = false) => {
|
|
8
|
+
const limit = finiteWidth(width);
|
|
9
|
+
if (!limit)
|
|
10
|
+
return "";
|
|
11
|
+
if (cells(text) <= limit)
|
|
12
|
+
return text;
|
|
13
|
+
const suffix = ellipsis ? "…" : "";
|
|
14
|
+
let result = "", used = 0;
|
|
15
|
+
for (const part of graphemes(text)) {
|
|
16
|
+
const size = cells(part);
|
|
17
|
+
if (used + size > limit - cells(suffix))
|
|
18
|
+
break;
|
|
19
|
+
result += part;
|
|
20
|
+
used += size;
|
|
21
|
+
}
|
|
22
|
+
return result + suffix;
|
|
23
|
+
};
|
|
24
|
+
export const wrapCells = (text, width) => {
|
|
25
|
+
const limit = Math.max(1, finiteWidth(width));
|
|
26
|
+
return text.split("\n").flatMap(line => {
|
|
27
|
+
const rows = [];
|
|
28
|
+
let current = "", used = 0;
|
|
29
|
+
for (const original of graphemes(line)) {
|
|
30
|
+
const part = cells(original) > limit ? "?" : original;
|
|
31
|
+
const size = cells(part);
|
|
32
|
+
if (used + size > limit) {
|
|
33
|
+
rows.push(current);
|
|
34
|
+
current = "";
|
|
35
|
+
used = 0;
|
|
36
|
+
}
|
|
37
|
+
current += part;
|
|
38
|
+
used += size;
|
|
39
|
+
}
|
|
40
|
+
rows.push(current);
|
|
41
|
+
return rows;
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
export const padCells = (text, width) => {
|
|
45
|
+
const clipped = fitCells(text, width);
|
|
46
|
+
return clipped + " ".repeat(Math.max(0, finiteWidth(width) - cells(clipped)));
|
|
47
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Cursor offsets are UTF-16 boundaries of complete graphemes, never terminal cells. */
|
|
2
|
+
export declare class TerminalEditor {
|
|
3
|
+
history: string[];
|
|
4
|
+
private readonly limit;
|
|
5
|
+
text: string;
|
|
6
|
+
cursor: number;
|
|
7
|
+
private historyIndex;
|
|
8
|
+
private draft;
|
|
9
|
+
constructor(history?: string[], limit?: number);
|
|
10
|
+
set(text: string): void;
|
|
11
|
+
insert(text: string): boolean;
|
|
12
|
+
move(direction: -1 | 1): void;
|
|
13
|
+
delete(backward: boolean): void;
|
|
14
|
+
home(): void;
|
|
15
|
+
end(): void;
|
|
16
|
+
vertical(direction: -1 | 1): boolean;
|
|
17
|
+
clear(): void;
|
|
18
|
+
killWord(): void;
|
|
19
|
+
previous(direction: -1 | 1): void;
|
|
20
|
+
submit(): string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=TerminalEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalEditor.d.ts","sourceRoot":"","sources":["../../../src/cli/tui/TerminalEditor.ts"],"names":[],"mappings":"AAEA,wFAAwF;AACxF,qBAAa,cAAc;IAKN,OAAO,EAAE,MAAM,EAAE;IAAO,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJjE,IAAI,SAAM;IACV,MAAM,SAAK;IACX,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,KAAK,CAAM;gBACA,OAAO,GAAE,MAAM,EAAO,EAAmB,KAAK,SAAS;IAC1E,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IACvB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAK7B,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI;IAI7B,MAAM,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAK/B,IAAI,IAAI,IAAI;IACZ,GAAG,IAAI,IAAI;IACX,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO;IAUpC,KAAK,IAAI,IAAI;IACb,QAAQ,IAAI,IAAI;IAKhB,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI;IAKjC,MAAM,IAAI,MAAM;CAKjB"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { cells, graphemes } from "./TerminalCells.js";
|
|
2
|
+
/** Cursor offsets are UTF-16 boundaries of complete graphemes, never terminal cells. */
|
|
3
|
+
export class TerminalEditor {
|
|
4
|
+
constructor(history = [], limit = 262144) {
|
|
5
|
+
this.history = history;
|
|
6
|
+
this.limit = limit;
|
|
7
|
+
this.text = "";
|
|
8
|
+
this.cursor = 0;
|
|
9
|
+
this.historyIndex = -1;
|
|
10
|
+
this.draft = "";
|
|
11
|
+
}
|
|
12
|
+
set(text) { this.text = text; this.cursor = text.length; this.historyIndex = -1; }
|
|
13
|
+
insert(text) {
|
|
14
|
+
const next = this.text.slice(0, this.cursor) + text + this.text.slice(this.cursor);
|
|
15
|
+
if (Buffer.byteLength(next) > this.limit)
|
|
16
|
+
return false;
|
|
17
|
+
this.text = next;
|
|
18
|
+
this.cursor += text.length;
|
|
19
|
+
this.historyIndex = -1;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
move(direction) {
|
|
23
|
+
if (direction < 0)
|
|
24
|
+
this.cursor -= graphemes(this.text.slice(0, this.cursor)).at(-1)?.length ?? 0;
|
|
25
|
+
else
|
|
26
|
+
this.cursor += graphemes(this.text.slice(this.cursor))[0]?.length ?? 0;
|
|
27
|
+
}
|
|
28
|
+
delete(backward) {
|
|
29
|
+
const old = this.cursor;
|
|
30
|
+
this.move(backward ? -1 : 1);
|
|
31
|
+
const start = Math.min(old, this.cursor), end = Math.max(old, this.cursor);
|
|
32
|
+
this.text = this.text.slice(0, start) + this.text.slice(end);
|
|
33
|
+
this.cursor = start;
|
|
34
|
+
}
|
|
35
|
+
home() { this.cursor = this.cursor === 0 ? 0 : this.text.lastIndexOf("\n", this.cursor - 1) + 1; }
|
|
36
|
+
end() { const next = this.text.indexOf("\n", this.cursor); this.cursor = next < 0 ? this.text.length : next; }
|
|
37
|
+
vertical(direction) {
|
|
38
|
+
const start = this.cursor === 0 ? 0 : this.text.lastIndexOf("\n", this.cursor - 1) + 1;
|
|
39
|
+
const column = cells(this.text.slice(start, this.cursor));
|
|
40
|
+
let target, end;
|
|
41
|
+
if (direction < 0) {
|
|
42
|
+
if (start === 0)
|
|
43
|
+
return false;
|
|
44
|
+
end = start - 1;
|
|
45
|
+
target = end === 0 ? 0 : this.text.lastIndexOf("\n", end - 1) + 1;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const next = this.text.indexOf("\n", this.cursor);
|
|
49
|
+
if (next < 0)
|
|
50
|
+
return false;
|
|
51
|
+
target = next + 1;
|
|
52
|
+
const following = this.text.indexOf("\n", target);
|
|
53
|
+
end = following < 0 ? this.text.length : following;
|
|
54
|
+
}
|
|
55
|
+
let width = 0;
|
|
56
|
+
this.cursor = target;
|
|
57
|
+
for (const part of graphemes(this.text.slice(target, end))) {
|
|
58
|
+
if (width + cells(part) > column)
|
|
59
|
+
break;
|
|
60
|
+
width += cells(part);
|
|
61
|
+
this.cursor += part.length;
|
|
62
|
+
}
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
clear() { this.set(""); }
|
|
66
|
+
killWord() {
|
|
67
|
+
const before = this.text.slice(0, this.cursor);
|
|
68
|
+
const match = before.match(/(?:\s+|\S+\s*)$/u);
|
|
69
|
+
if (match) {
|
|
70
|
+
this.text = before.slice(0, -match[0].length) + this.text.slice(this.cursor);
|
|
71
|
+
this.cursor -= match[0].length;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
previous(direction) {
|
|
75
|
+
if (this.historyIndex < 0)
|
|
76
|
+
this.draft = this.text;
|
|
77
|
+
this.historyIndex = Math.max(-1, Math.min(this.history.length - 1, this.historyIndex - direction));
|
|
78
|
+
this.text = this.historyIndex < 0 ? this.draft : this.history[this.historyIndex];
|
|
79
|
+
this.cursor = this.text.length;
|
|
80
|
+
}
|
|
81
|
+
submit() {
|
|
82
|
+
const text = this.text;
|
|
83
|
+
if (text.trim())
|
|
84
|
+
this.history = [text, ...this.history.filter(item => item !== text)].slice(0, 500);
|
|
85
|
+
this.clear();
|
|
86
|
+
return text;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalPresentation.d.ts","sourceRoot":"","sources":["../../../src/cli/tui/TerminalPresentation.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,MAAM,OAAO,KAAG,MAoB1D,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,MAOpB,CAAC;AAEb,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MA4B9C,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const record = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
2
|
+
const fragment = (value) => typeof value === "string" ? value.slice(0, 120) : "";
|
|
3
|
+
export const toolActivity = (name, args) => {
|
|
4
|
+
const data = record(args), file = fragment(data.path ?? data.file), query = fragment(data.query);
|
|
5
|
+
switch (name) {
|
|
6
|
+
case "read_file": return `Reading ${file || "a file"}`;
|
|
7
|
+
case "write_file": return `Updating ${file || "a file"}`;
|
|
8
|
+
case "prepare_edit": return `Checking ${file || "the code"} before editing`;
|
|
9
|
+
case "list_files":
|
|
10
|
+
case "docdex_tree": return `Exploring ${file || "the workspace"}`;
|
|
11
|
+
case "search":
|
|
12
|
+
case "search_files":
|
|
13
|
+
case "docdex_search": return query ? `Searching for “${query}”` : "Searching the project";
|
|
14
|
+
case "run_shell": return `Running ${fragment([data.command, ...(Array.isArray(data.args) ? data.args.filter(x => typeof x === "string") : [])].join(" "))}`;
|
|
15
|
+
case "docdex_symbols":
|
|
16
|
+
case "docdex_ast": return `Understanding the structure of ${file || "the code"}`;
|
|
17
|
+
case "docdex_impact_graph": return `Checking what depends on ${file || "this code"}`;
|
|
18
|
+
case "work_claim": return "Starting the next task";
|
|
19
|
+
case "work_verify": return "Reviewing the work and its checks";
|
|
20
|
+
case "work_complete": return "Checking that every requirement is complete";
|
|
21
|
+
case "work_checkpoint": return "Saving progress";
|
|
22
|
+
case "work_plan":
|
|
23
|
+
case "work_refine": return "Updating the work plan";
|
|
24
|
+
case "work_status": return "Checking progress";
|
|
25
|
+
case "work_block": return "Recording what needs attention";
|
|
26
|
+
default: return name.replace(/_/g, " ");
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export const terminalHelp = () => [
|
|
30
|
+
"GET STARTED", " Just type a message. Ask a question, inspect your project, or request a change.", "",
|
|
31
|
+
"CONVERSATION", " /new Start fresh; keep the saved session", " /sessions Browse saved conversations", " /resume ID Pick up a saved session", " /continue Resume the active work", " /stop Stop safely and keep progress", " /quit Close Codali", "",
|
|
32
|
+
"WORK & REVIEW", " /status Current workspace and progress", " /goal · /plan · /tasks · /decisions", " /diff Inspect workspace changes", " /review Review the current work", " /artifacts Browse, open or export generated files", "",
|
|
33
|
+
"MODELS & LIMITS", " /usage Tokens, model calls and account limits", " /model · /models Inspect or select model routes", " /effort low · medium · high · max", " /permissions plan · ask · workspace", " /config Inspect, validate or reload configuration", "",
|
|
34
|
+
"CONTEXT & RECOVERY", " /context · /compact · /checkpoint · /fork", " /tools · /mcp · /docdex", " /reconcile · /reconcile-media · /retention", "",
|
|
35
|
+
"KEYBOARD & MOUSE", " Enter Send or queue a message", " Alt+Enter New line (Ctrl+J also works)", " Wheel / PgUp↓ Scroll messages and command views", " Ctrl+End Return to the latest message", " Shift+drag Select text in mouse-aware terminals", " Ctrl+O Show tool details", " Ctrl+P / Ctrl+R Commands / input history", " Tab Complete a command or @file", " Ctrl+S Interrupt and steer", " Esc / Ctrl+C Cancel; Esc also closes views",
|
|
36
|
+
].join("\n");
|
|
37
|
+
export const terminalUsage = (value) => {
|
|
38
|
+
const data = record(value), usage = record(data.session), turn = record(data.turn);
|
|
39
|
+
const number = (v) => typeof v === "number" && Number.isFinite(v) ? v.toLocaleString("en-US") : "—";
|
|
40
|
+
const total = Number(usage.tokens) || 0, input = Number(usage.inputTokens) || 0;
|
|
41
|
+
const filled = Math.max(0, Math.min(24, Math.round(total ? 24 * input / total : 0)));
|
|
42
|
+
const lines = ["SESSION USAGE", "", ` ${number(usage.tokens)} tokens${usage.estimated ? " · includes estimates" : ""}`,
|
|
43
|
+
` ${"━".repeat(filled)}${"░".repeat(24 - filled)} input / output`, "",
|
|
44
|
+
` Input ${number(usage.inputTokens)}`, ` Output ${number(usage.outputTokens)}`,
|
|
45
|
+
` Model calls ${number(usage.modelCalls)}`, ` Tool calls ${number(usage.toolCalls)}`, "",
|
|
46
|
+
"LATEST TURN", ` ${number(turn.tokens)} tokens · ${number(turn.modelCalls)} model calls · ${number(turn.toolCalls)} tool calls`, "",
|
|
47
|
+
"Session totals accumulate. Turn limits restart for each message; uncertain requests keep their reservations.", "", "ACCOUNT LIMITS"];
|
|
48
|
+
for (const [provider, raw] of Object.entries(record(data.server))) {
|
|
49
|
+
lines.push("", ` ${provider}`);
|
|
50
|
+
const item = record(raw);
|
|
51
|
+
if (item.available === false)
|
|
52
|
+
lines.push(` ${fragment(item.error) || "Usage is unavailable from this provider."}`);
|
|
53
|
+
else {
|
|
54
|
+
const describe = (value, indent = " ") => {
|
|
55
|
+
if (Array.isArray(value))
|
|
56
|
+
return value.flatMap((entry, index) => [`${indent}${index + 1}.`, ...describe(entry, indent + " ")]);
|
|
57
|
+
if (value && typeof value === "object")
|
|
58
|
+
return Object.entries(value).flatMap(([key, entry]) => {
|
|
59
|
+
const label = key.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/_/g, " ");
|
|
60
|
+
return entry && typeof entry === "object" ? [`${indent}${label}`, ...describe(entry, indent + " ")] : [`${indent}${label}: ${typeof entry === "number" ? number(entry) : entry ?? "—"}`];
|
|
61
|
+
});
|
|
62
|
+
return [`${indent}${String(value)}`];
|
|
63
|
+
};
|
|
64
|
+
lines.push(...describe(raw));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return lines.join("\n");
|
|
68
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type BlockKind = "user" | "assistant" | "tool" | "error" | "notice";
|
|
2
|
+
export interface TranscriptBlock {
|
|
3
|
+
id: string;
|
|
4
|
+
kind: BlockKind;
|
|
5
|
+
title: string;
|
|
6
|
+
text: string;
|
|
7
|
+
summary?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TerminalOverlay {
|
|
10
|
+
title: string;
|
|
11
|
+
lines: string[];
|
|
12
|
+
offset: number;
|
|
13
|
+
choices?: string[];
|
|
14
|
+
selected?: number;
|
|
15
|
+
hint?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface TerminalScreenState {
|
|
18
|
+
workspace: string;
|
|
19
|
+
branch?: string;
|
|
20
|
+
session?: string;
|
|
21
|
+
version: string;
|
|
22
|
+
profile: string;
|
|
23
|
+
busy: boolean;
|
|
24
|
+
activity: string;
|
|
25
|
+
route: string;
|
|
26
|
+
effort: string;
|
|
27
|
+
permissions: string;
|
|
28
|
+
tokens: number;
|
|
29
|
+
queued: number;
|
|
30
|
+
draft: string;
|
|
31
|
+
cursor: number;
|
|
32
|
+
blocks: TranscriptBlock[];
|
|
33
|
+
scroll: number;
|
|
34
|
+
expanded: boolean;
|
|
35
|
+
overlay?: TerminalOverlay;
|
|
36
|
+
suggestions?: string[];
|
|
37
|
+
selectedSuggestion?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface TerminalFrame {
|
|
40
|
+
lines: string[];
|
|
41
|
+
cursor?: {
|
|
42
|
+
row: number;
|
|
43
|
+
column: number;
|
|
44
|
+
};
|
|
45
|
+
transcriptRows: number;
|
|
46
|
+
viewportRows: number;
|
|
47
|
+
}
|
|
48
|
+
export declare const renderTerminalScreen: (state: TerminalScreenState, columns: number, rows: number, color?: boolean) => TerminalFrame;
|
|
49
|
+
//# sourceMappingURL=TerminalScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalScreen.d.ts","sourceRoot":"","sources":["../../../src/cli/tui/TerminalScreen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC3E,MAAM,WAAW,eAAe;IAAG,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAAE;AAChH,MAAM,WAAW,eAAe;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CAAE;AAC1I,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IACvF,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IACpF,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAC9D,MAAM,EAAE,eAAe,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAC7D,OAAO,CAAC,EAAE,eAAe,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAChF;AACD,MAAM,WAAW,aAAa;IAAG,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;CAAE;AAc3I,eAAO,MAAM,oBAAoB,GAAI,OAAO,mBAAmB,EAAE,SAAS,MAAM,EAAE,MAAM,MAAM,EAAE,eAAY,KAAG,aAmF9G,CAAC"}
|