zelio-cli 0.0.0-stage → 0.1.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +185 -2
- package/dist/attachments.js +121 -0
- package/dist/attachments.js.map +1 -0
- package/dist/cli.js +496 -0
- package/dist/cli.js.map +1 -0
- package/dist/cloud/board.js +311 -0
- package/dist/cloud/board.js.map +1 -0
- package/dist/cloud/command.js +281 -0
- package/dist/cloud/command.js.map +1 -0
- package/dist/cloud/config.js +132 -0
- package/dist/cloud/config.js.map +1 -0
- package/dist/cloud/credentials.js +134 -0
- package/dist/cloud/credentials.js.map +1 -0
- package/dist/cloud/login.js +165 -0
- package/dist/cloud/login.js.map +1 -0
- package/dist/cloud/pair.js +110 -0
- package/dist/cloud/pair.js.map +1 -0
- package/dist/cloud/pkce.js +16 -0
- package/dist/cloud/pkce.js.map +1 -0
- package/dist/cloud/push-nudge.js +65 -0
- package/dist/cloud/push-nudge.js.map +1 -0
- package/dist/cloud/relay.js +134 -0
- package/dist/cloud/relay.js.map +1 -0
- package/dist/cloud/token.js +66 -0
- package/dist/cloud/token.js.map +1 -0
- package/dist/cloud/tunnel.js +474 -0
- package/dist/cloud/tunnel.js.map +1 -0
- package/dist/db/db.js +1741 -0
- package/dist/db/db.js.map +1 -0
- package/dist/db/lifecycle.js +146 -0
- package/dist/db/lifecycle.js.map +1 -0
- package/dist/limits.js +35 -0
- package/dist/limits.js.map +1 -0
- package/dist/metrics.js +30 -0
- package/dist/metrics.js.map +1 -0
- package/dist/orchestrator/claude-session.js +208 -0
- package/dist/orchestrator/claude-session.js.map +1 -0
- package/dist/orchestrator/codex-session.js +326 -0
- package/dist/orchestrator/codex-session.js.map +1 -0
- package/dist/orchestrator/contract.js +184 -0
- package/dist/orchestrator/contract.js.map +1 -0
- package/dist/orchestrator/explore.js +176 -0
- package/dist/orchestrator/explore.js.map +1 -0
- package/dist/orchestrator/new-task-prompt.js +51 -0
- package/dist/orchestrator/new-task-prompt.js.map +1 -0
- package/dist/orchestrator/pi-session.js +228 -0
- package/dist/orchestrator/pi-session.js.map +1 -0
- package/dist/orchestrator/prompt.js +110 -0
- package/dist/orchestrator/prompt.js.map +1 -0
- package/dist/orchestrator/research.js +178 -0
- package/dist/orchestrator/research.js.map +1 -0
- package/dist/orchestrator/runtime.js +1207 -0
- package/dist/orchestrator/runtime.js.map +1 -0
- package/dist/orchestrator/session.js +2 -0
- package/dist/orchestrator/session.js.map +1 -0
- package/dist/orchestrator/types.js +2 -0
- package/dist/orchestrator/types.js.map +1 -0
- package/dist/orchestrator/web.js +276 -0
- package/dist/orchestrator/web.js.map +1 -0
- package/dist/repo/index.js +188 -0
- package/dist/repo/index.js.map +1 -0
- package/dist/repo/instructions.js +58 -0
- package/dist/repo/instructions.js.map +1 -0
- package/dist/repo/linked-boards.js +137 -0
- package/dist/repo/linked-boards.js.map +1 -0
- package/dist/repo/project-repos.js +78 -0
- package/dist/repo/project-repos.js.map +1 -0
- package/dist/run/actions.js +257 -0
- package/dist/run/actions.js.map +1 -0
- package/dist/run/auto-review.js +102 -0
- package/dist/run/auto-review.js.map +1 -0
- package/dist/run/bash-guard.js +183 -0
- package/dist/run/bash-guard.js.map +1 -0
- package/dist/run/claude-runtime.js +270 -0
- package/dist/run/claude-runtime.js.map +1 -0
- package/dist/run/claude-stream.js +306 -0
- package/dist/run/claude-stream.js.map +1 -0
- package/dist/run/codex-client.js +202 -0
- package/dist/run/codex-client.js.map +1 -0
- package/dist/run/codex-runtime.js +460 -0
- package/dist/run/codex-runtime.js.map +1 -0
- package/dist/run/consult.js +105 -0
- package/dist/run/consult.js.map +1 -0
- package/dist/run/context.js +87 -0
- package/dist/run/context.js.map +1 -0
- package/dist/run/diff.js +238 -0
- package/dist/run/diff.js.map +1 -0
- package/dist/run/evidence.js +48 -0
- package/dist/run/evidence.js.map +1 -0
- package/dist/run/finish.js +408 -0
- package/dist/run/finish.js.map +1 -0
- package/dist/run/handoff.js +51 -0
- package/dist/run/handoff.js.map +1 -0
- package/dist/run/harness-runtime.js +31 -0
- package/dist/run/harness-runtime.js.map +1 -0
- package/dist/run/harnesses.js +273 -0
- package/dist/run/harnesses.js.map +1 -0
- package/dist/run/issue.js +79 -0
- package/dist/run/issue.js.map +1 -0
- package/dist/run/keep-awake.js +58 -0
- package/dist/run/keep-awake.js.map +1 -0
- package/dist/run/lead.js +159 -0
- package/dist/run/lead.js.map +1 -0
- package/dist/run/manager.js +2546 -0
- package/dist/run/manager.js.map +1 -0
- package/dist/run/mentions.js +35 -0
- package/dist/run/mentions.js.map +1 -0
- package/dist/run/merge-watch.js +425 -0
- package/dist/run/merge-watch.js.map +1 -0
- package/dist/run/models.js +88 -0
- package/dist/run/models.js.map +1 -0
- package/dist/run/phases.js +23 -0
- package/dist/run/phases.js.map +1 -0
- package/dist/run/pi-rpc.js +439 -0
- package/dist/run/pi-rpc.js.map +1 -0
- package/dist/run/piped-check.js +56 -0
- package/dist/run/piped-check.js.map +1 -0
- package/dist/run/pr-checks.js +67 -0
- package/dist/run/pr-checks.js.map +1 -0
- package/dist/run/pr-merge.js +121 -0
- package/dist/run/pr-merge.js.map +1 -0
- package/dist/run/profiles.js +43 -0
- package/dist/run/profiles.js.map +1 -0
- package/dist/run/prompt.js +388 -0
- package/dist/run/prompt.js.map +1 -0
- package/dist/run/pull-request.js +23 -0
- package/dist/run/pull-request.js.map +1 -0
- package/dist/run/red-check.js +130 -0
- package/dist/run/red-check.js.map +1 -0
- package/dist/run/result-tool.js +93 -0
- package/dist/run/result-tool.js.map +1 -0
- package/dist/run/result.js +113 -0
- package/dist/run/result.js.map +1 -0
- package/dist/run/retro.js +346 -0
- package/dist/run/retro.js.map +1 -0
- package/dist/run/settings.js +27 -0
- package/dist/run/settings.js.map +1 -0
- package/dist/run/skills.js +146 -0
- package/dist/run/skills.js.map +1 -0
- package/dist/run/tests-first.js +146 -0
- package/dist/run/tests-first.js.map +1 -0
- package/dist/run/thinking.js +41 -0
- package/dist/run/thinking.js.map +1 -0
- package/dist/run/types.js +2 -0
- package/dist/run/types.js.map +1 -0
- package/dist/run/watchdog.js +259 -0
- package/dist/run/watchdog.js.map +1 -0
- package/dist/run/workflow.js +277 -0
- package/dist/run/workflow.js.map +1 -0
- package/dist/run/worktree.js +354 -0
- package/dist/run/worktree.js.map +1 -0
- package/dist/server/app.js +2946 -0
- package/dist/server/app.js.map +1 -0
- package/dist/server/auth.js +93 -0
- package/dist/server/auth.js.map +1 -0
- package/dist/server/demo.js +96 -0
- package/dist/server/demo.js.map +1 -0
- package/dist/server/idempotency.js +104 -0
- package/dist/server/idempotency.js.map +1 -0
- package/dist/server/port.js +36 -0
- package/dist/server/port.js.map +1 -0
- package/dist/server/principal.js +93 -0
- package/dist/server/principal.js.map +1 -0
- package/dist/server/repo-picker.js +18 -0
- package/dist/server/repo-picker.js.map +1 -0
- package/dist/server/terminal.js +285 -0
- package/dist/server/terminal.js.map +1 -0
- package/dist/setup/components.js +98 -0
- package/dist/setup/components.js.map +1 -0
- package/dist/setup/config.js +102 -0
- package/dist/setup/config.js.map +1 -0
- package/dist/setup/ink-ui.js +189 -0
- package/dist/setup/ink-ui.js.map +1 -0
- package/dist/setup/onboarding.js +167 -0
- package/dist/setup/onboarding.js.map +1 -0
- package/dist/setup/run.js +70 -0
- package/dist/setup/run.js.map +1 -0
- package/dist/skills.js +151 -0
- package/dist/skills.js.map +1 -0
- package/dist/ticket-cli.js +157 -0
- package/dist/ticket-cli.js.map +1 -0
- package/dist/version.js +13 -0
- package/dist/version.js.map +1 -0
- package/dist/voice/index.js +69 -0
- package/dist/voice/index.js.map +1 -0
- package/dist/voice/moonshine.js +247 -0
- package/dist/voice/moonshine.js.map +1 -0
- package/dist/voice/wav.js +54 -0
- package/dist/voice/wav.js.map +1 -0
- package/dist/voice/whisper.js +491 -0
- package/dist/voice/whisper.js.map +1 -0
- package/dist/web/assets/index-CCQMrUIF.js +255 -0
- package/dist/web/assets/index-lzGSgTRQ.css +1 -0
- package/dist/web/icons/apple-touch-icon.png +0 -0
- package/dist/web/icons/icon-192.png +0 -0
- package/dist/web/icons/icon-512.png +0 -0
- package/dist/web/icons/maskable-512.png +0 -0
- package/dist/web/index.html +21 -0
- package/dist/web/manifest.webmanifest +30 -0
- package/dist/web/sw.js +185 -0
- package/package.json +96 -4
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { basename } from "node:path";
|
|
2
|
+
import { CodexClient } from "../run/codex-client.js";
|
|
3
|
+
import { createClaudePlanner } from "./claude-session.js";
|
|
4
|
+
import { PiPlannerSession } from "./pi-session.js";
|
|
5
|
+
const KILL_GRACE_MS = 2_000;
|
|
6
|
+
const CODEX_NOTE = "On Codex you have a read-only shell and a native web_search. Use web_search for " +
|
|
7
|
+
"discovery and a read-only shell curl for a public page. There is no explore tool. " +
|
|
8
|
+
"Zelio's role and read-only rules win over unrelated global guidance.";
|
|
9
|
+
const clip = (value, max) => {
|
|
10
|
+
const text = value.replace(/\s+/g, " ").trim();
|
|
11
|
+
return text.length > max ? text.slice(0, max - 1) + "…" : text;
|
|
12
|
+
};
|
|
13
|
+
function effort(level) {
|
|
14
|
+
if (!level)
|
|
15
|
+
return undefined;
|
|
16
|
+
if (level === "off" || level === "minimal" || level === "low")
|
|
17
|
+
return "low";
|
|
18
|
+
return level;
|
|
19
|
+
}
|
|
20
|
+
function labelFor(item) {
|
|
21
|
+
if (item.type === "commandExecution") {
|
|
22
|
+
return item.command ? "Running " + clip(item.command, 44) : "Running a command";
|
|
23
|
+
}
|
|
24
|
+
if (item.type === "fileChange") {
|
|
25
|
+
const path = item.changes?.find((change) => change.path)?.path;
|
|
26
|
+
return path ? "Editing " + clip(path, 46) : "Editing files";
|
|
27
|
+
}
|
|
28
|
+
if (item.type === "webSearch") {
|
|
29
|
+
return item.query
|
|
30
|
+
? "Searching the web for “" + clip(item.query, 32) + "”"
|
|
31
|
+
: "Searching the web";
|
|
32
|
+
}
|
|
33
|
+
if (item.type === "mcpToolCall")
|
|
34
|
+
return item.tool ? "Using " + clip(item.tool, 40) : "Using a tool";
|
|
35
|
+
return item.type ? clip(item.type, 40) : "Working";
|
|
36
|
+
}
|
|
37
|
+
function toolName(item) {
|
|
38
|
+
if (item.type === "commandExecution")
|
|
39
|
+
return "bash";
|
|
40
|
+
if (item.type === "fileChange")
|
|
41
|
+
return "edit";
|
|
42
|
+
if (item.type === "webSearch")
|
|
43
|
+
return "web_search";
|
|
44
|
+
return item.tool ?? item.type ?? "tool";
|
|
45
|
+
}
|
|
46
|
+
function toolArgs(item) {
|
|
47
|
+
if (item.type === "commandExecution")
|
|
48
|
+
return { command: item.command ?? "" };
|
|
49
|
+
if (item.type === "fileChange") {
|
|
50
|
+
return { path: item.changes?.find((change) => change.path)?.path ?? "" };
|
|
51
|
+
}
|
|
52
|
+
if (item.type === "webSearch")
|
|
53
|
+
return { query: item.query ?? "" };
|
|
54
|
+
if (item.type === "mcpToolCall")
|
|
55
|
+
return item.arguments ?? {};
|
|
56
|
+
return {};
|
|
57
|
+
}
|
|
58
|
+
function isTool(item) {
|
|
59
|
+
return (item.type === "commandExecution" ||
|
|
60
|
+
item.type === "fileChange" ||
|
|
61
|
+
item.type === "webSearch" ||
|
|
62
|
+
item.type === "mcpToolCall");
|
|
63
|
+
}
|
|
64
|
+
class EventQueue {
|
|
65
|
+
items = [];
|
|
66
|
+
wake;
|
|
67
|
+
done = false;
|
|
68
|
+
events = this.iterate();
|
|
69
|
+
push(event) {
|
|
70
|
+
this.items.push(event);
|
|
71
|
+
const wake = this.wake;
|
|
72
|
+
this.wake = undefined;
|
|
73
|
+
wake?.();
|
|
74
|
+
}
|
|
75
|
+
finish() {
|
|
76
|
+
this.done = true;
|
|
77
|
+
const wake = this.wake;
|
|
78
|
+
this.wake = undefined;
|
|
79
|
+
wake?.();
|
|
80
|
+
}
|
|
81
|
+
async *iterate() {
|
|
82
|
+
for (;;) {
|
|
83
|
+
if (this.items.length === 0) {
|
|
84
|
+
if (this.done)
|
|
85
|
+
return;
|
|
86
|
+
// oxlint-disable-next-line no-await-in-loop
|
|
87
|
+
await new Promise((resolve) => {
|
|
88
|
+
this.wake = resolve;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
const event = this.items.shift();
|
|
92
|
+
if (!event)
|
|
93
|
+
continue;
|
|
94
|
+
yield event;
|
|
95
|
+
if (event.type === "exit")
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Codex over app-server for one planning conversation. The thread is
|
|
102
|
+
* ephemeral: a plan is a single turn, and the planner never writes history to
|
|
103
|
+
* the person's Codex home.
|
|
104
|
+
*/
|
|
105
|
+
export class CodexPlannerSession {
|
|
106
|
+
client;
|
|
107
|
+
options;
|
|
108
|
+
queue = new EventQueue();
|
|
109
|
+
textDeltas = new Set();
|
|
110
|
+
threadId = null;
|
|
111
|
+
turnId = null;
|
|
112
|
+
finished = false;
|
|
113
|
+
wasAborted = false;
|
|
114
|
+
killTimer;
|
|
115
|
+
events;
|
|
116
|
+
constructor(options) {
|
|
117
|
+
this.options = options;
|
|
118
|
+
this.client = new CodexClient(options.command, options.cwd);
|
|
119
|
+
this.events = this.queue.events;
|
|
120
|
+
void this.run(options);
|
|
121
|
+
}
|
|
122
|
+
async run(options) {
|
|
123
|
+
try {
|
|
124
|
+
await this.client.initialize();
|
|
125
|
+
const thread = (await this.client.request("thread/start", {
|
|
126
|
+
ephemeral: true,
|
|
127
|
+
cwd: options.cwd,
|
|
128
|
+
baseInstructions: options.systemPrompt + "\n\n" + CODEX_NOTE,
|
|
129
|
+
model: options.model?.trim() || undefined,
|
|
130
|
+
sandbox: "read-only",
|
|
131
|
+
approvalPolicy: "never",
|
|
132
|
+
config: {
|
|
133
|
+
web_search: "live",
|
|
134
|
+
project_doc_max_bytes: 0,
|
|
135
|
+
skills: { include_instructions: false, bundled: { enabled: false } },
|
|
136
|
+
},
|
|
137
|
+
}));
|
|
138
|
+
this.threadId = thread.thread?.id ?? null;
|
|
139
|
+
if (!this.threadId)
|
|
140
|
+
throw new Error("Codex did not return a planner thread id");
|
|
141
|
+
await this.startTurn(options.prompt, true);
|
|
142
|
+
for await (const notification of this.client.events) {
|
|
143
|
+
if (notification.method === "__exit") {
|
|
144
|
+
const exit = notification.params;
|
|
145
|
+
this.finish({
|
|
146
|
+
type: "exit",
|
|
147
|
+
code: exit.code,
|
|
148
|
+
stderr: exit.stderr,
|
|
149
|
+
timedOut: false,
|
|
150
|
+
spawnError: exit.spawnError,
|
|
151
|
+
});
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
if (notification.method === "turn/completed") {
|
|
155
|
+
const params = notification.params;
|
|
156
|
+
const status = params.turn?.status;
|
|
157
|
+
if (status === "completed" || status === "interrupted") {
|
|
158
|
+
if (this.wasAborted) {
|
|
159
|
+
this.finish({ type: "exit", code: null, stderr: "", timedOut: true });
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
this.queue.push({ type: "settled" });
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
this.finish({
|
|
167
|
+
type: "exit",
|
|
168
|
+
code: 1,
|
|
169
|
+
stderr: params.turn?.error?.message ?? "Codex planner turn failed",
|
|
170
|
+
timedOut: false,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
this.handle(notification);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
catch (error) {
|
|
179
|
+
this.finish({
|
|
180
|
+
type: "exit",
|
|
181
|
+
code: null,
|
|
182
|
+
stderr: error instanceof Error ? error.message : "Codex planner failed to start",
|
|
183
|
+
timedOut: false,
|
|
184
|
+
spawnError: true,
|
|
185
|
+
});
|
|
186
|
+
this.client.kill();
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
async startTurn(text, includeImages) {
|
|
190
|
+
if (!this.threadId)
|
|
191
|
+
throw new Error("Codex planner has no thread");
|
|
192
|
+
const input = [{ type: "text", text }];
|
|
193
|
+
for (const image of includeImages ? (this.options.images ?? []) : []) {
|
|
194
|
+
input.push({
|
|
195
|
+
type: "image",
|
|
196
|
+
url: "data:" + image.mimeType + ";base64," + image.data,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
const started = (await this.client.request("turn/start", {
|
|
200
|
+
threadId: this.threadId,
|
|
201
|
+
input,
|
|
202
|
+
model: this.options.model?.trim() || undefined,
|
|
203
|
+
effort: effort(this.options.thinking),
|
|
204
|
+
sandboxPolicy: { type: "readOnly", networkAccess: true },
|
|
205
|
+
}));
|
|
206
|
+
this.turnId = started.turn?.id ?? null;
|
|
207
|
+
}
|
|
208
|
+
handle(notification) {
|
|
209
|
+
if (notification.method === "error") {
|
|
210
|
+
const params = notification.params;
|
|
211
|
+
if (params.willRetry)
|
|
212
|
+
return;
|
|
213
|
+
this.finish({
|
|
214
|
+
type: "exit",
|
|
215
|
+
code: 1,
|
|
216
|
+
stderr: params.error?.message ?? "Codex planner reported an error",
|
|
217
|
+
timedOut: false,
|
|
218
|
+
});
|
|
219
|
+
this.client.kill();
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
if (notification.method === "item/agentMessage/delta") {
|
|
223
|
+
const params = notification.params;
|
|
224
|
+
if (params.itemId)
|
|
225
|
+
this.textDeltas.add(params.itemId);
|
|
226
|
+
if (params.delta)
|
|
227
|
+
this.queue.push({ type: "text", text: params.delta });
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
if (notification.method !== "item/started" && notification.method !== "item/completed") {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
const item = notification.params.item;
|
|
234
|
+
if (!item)
|
|
235
|
+
return;
|
|
236
|
+
if (notification.method === "item/started" && isTool(item)) {
|
|
237
|
+
this.queue.push({
|
|
238
|
+
type: "tool_start",
|
|
239
|
+
tool: toolName(item),
|
|
240
|
+
args: toolArgs(item),
|
|
241
|
+
label: labelFor(item),
|
|
242
|
+
});
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
if (notification.method === "item/completed" && isTool(item)) {
|
|
246
|
+
const failed = item.status === "failed" || Boolean(item.error);
|
|
247
|
+
this.queue.push({ type: "tool_end", tool: toolName(item), isError: failed });
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
if (item.type === "agentMessage" && item.id && item.text && !this.textDeltas.has(item.id)) {
|
|
251
|
+
this.queue.push({ type: "text", text: item.text });
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
finish(event) {
|
|
255
|
+
if (this.finished)
|
|
256
|
+
return;
|
|
257
|
+
this.finished = true;
|
|
258
|
+
clearTimeout(this.killTimer);
|
|
259
|
+
this.queue.push(event);
|
|
260
|
+
this.queue.finish();
|
|
261
|
+
}
|
|
262
|
+
steer(text) {
|
|
263
|
+
if (!this.threadId || !this.turnId || this.finished)
|
|
264
|
+
return;
|
|
265
|
+
void this.client
|
|
266
|
+
.request("turn/steer", {
|
|
267
|
+
threadId: this.threadId,
|
|
268
|
+
expectedTurnId: this.turnId,
|
|
269
|
+
input: [{ type: "text", text }],
|
|
270
|
+
})
|
|
271
|
+
.catch(() => { });
|
|
272
|
+
}
|
|
273
|
+
interrupt() {
|
|
274
|
+
if (!this.threadId || !this.turnId || this.finished)
|
|
275
|
+
return;
|
|
276
|
+
void this.client
|
|
277
|
+
.request("turn/interrupt", { threadId: this.threadId, turnId: this.turnId })
|
|
278
|
+
.catch(() => { });
|
|
279
|
+
}
|
|
280
|
+
prompt(text) {
|
|
281
|
+
if (!this.threadId || this.finished)
|
|
282
|
+
return;
|
|
283
|
+
void this.startTurn(text, false).catch((error) => {
|
|
284
|
+
this.finish({
|
|
285
|
+
type: "exit",
|
|
286
|
+
code: null,
|
|
287
|
+
stderr: error instanceof Error ? error.message : "Codex wrap-up failed",
|
|
288
|
+
timedOut: false,
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
close() {
|
|
293
|
+
if (this.finished)
|
|
294
|
+
return;
|
|
295
|
+
this.client.close();
|
|
296
|
+
}
|
|
297
|
+
abort() {
|
|
298
|
+
if (this.finished || this.wasAborted)
|
|
299
|
+
return;
|
|
300
|
+
this.wasAborted = true;
|
|
301
|
+
this.interrupt();
|
|
302
|
+
this.killTimer = setTimeout(() => this.client.kill(), KILL_GRACE_MS);
|
|
303
|
+
}
|
|
304
|
+
get aborted() {
|
|
305
|
+
return this.wasAborted;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
export function createCodexPlanner(command, model) {
|
|
309
|
+
return (request) => new CodexPlannerSession({
|
|
310
|
+
...request,
|
|
311
|
+
command,
|
|
312
|
+
model: request.model ?? model,
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
export function createPlanner(command, model) {
|
|
316
|
+
if (basename(command) === "codex")
|
|
317
|
+
return createCodexPlanner(command, model);
|
|
318
|
+
if (basename(command) === "claude")
|
|
319
|
+
return createClaudePlanner(command, model);
|
|
320
|
+
return (request) => new PiPlannerSession({
|
|
321
|
+
...request,
|
|
322
|
+
command,
|
|
323
|
+
model: request.model ?? model,
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
//# sourceMappingURL=codex-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-session.js","sourceRoot":"","sources":["../../src/orchestrator/codex-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,WAAW,EAA0B,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAInD,MAAM,aAAa,GAAG,KAAK,CAAC;AAE5B,MAAM,UAAU,GACd,kFAAkF;IAClF,oFAAoF;IACpF,sEAAsE,CAAC;AAezE,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,GAAW,EAAU,E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AC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC7E,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC/E,OAAO,CAAC,OAAO,EAAE,EAAE,CACjB,IAAI,gBAAgB,CAAC;QACnB,GAAG,OAAO;QACV,OAAO;QACP,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,KAAK;KAC9B,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What both planners must produce, word for word.
|
|
3
|
+
*
|
|
4
|
+
* Two doors write cards: the chat in the panel and the new-task dialog. They
|
|
5
|
+
* have different doctrine — one is helping a person decide, the other is
|
|
6
|
+
* writing a card from a description they already gave — but they emit the same
|
|
7
|
+
* JSON to the same parser, and the rules for what makes a card checkable are
|
|
8
|
+
* not a matter of taste. Sharing the text is cheaper than keeping two copies in
|
|
9
|
+
* step, and a field that exists in one door's schema and not the other's is a
|
|
10
|
+
* bug the parser would only find late.
|
|
11
|
+
*
|
|
12
|
+
* Deliberately not here: when to draft, how to ask, how to split. Those are each
|
|
13
|
+
* door's own business.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* How many separately-checkable behaviours one card may carry before it is two
|
|
17
|
+
* cards wearing one title. Four is enough for a behaviour, its reload, and its
|
|
18
|
+
* failure case; beyond that the card is a project, and the run it starts proves
|
|
19
|
+
* that by taking an hour and writing a harness of its own to check it.
|
|
20
|
+
*/
|
|
21
|
+
export const MAX_CARD_CHECKS = 4;
|
|
22
|
+
/**
|
|
23
|
+
* How many facts a card may carry into the run. Six is enough to name the
|
|
24
|
+
* writer, the reader, the test, and a reuse target without turning the card
|
|
25
|
+
* into a second transcript; the parser clamps it because a prompt is a request.
|
|
26
|
+
*/
|
|
27
|
+
export const MAX_CARD_CONTEXT = 6;
|
|
28
|
+
/** One fact is a line, not a paragraph. The parser clips it at a word boundary. */
|
|
29
|
+
export const MAX_CONTEXT_CHARS = 400;
|
|
30
|
+
/**
|
|
31
|
+
* The checks inside an acceptance sentence, by the separators a card actually
|
|
32
|
+
* uses: `;` between behaviours, and a full stop before a new capitalised or
|
|
33
|
+
* bracketed clause. Deliberately generous about what counts as a check: a card
|
|
34
|
+
* that reads as five things is five things whether or not it was punctuated
|
|
35
|
+
* like it.
|
|
36
|
+
*/
|
|
37
|
+
export function acceptanceChecks(acceptance) {
|
|
38
|
+
return acceptance
|
|
39
|
+
.split(/;|\.\s+(?=[A-Z(`"'])/)
|
|
40
|
+
.map((part) => part.trim().replace(/\.$/, ""))
|
|
41
|
+
.filter((part) => part.length > 0);
|
|
42
|
+
}
|
|
43
|
+
/** Cards whose acceptance asks for more than one ticket's worth of proof. */
|
|
44
|
+
export function oversizedCards(cards) {
|
|
45
|
+
return cards
|
|
46
|
+
.map((card) => ({ title: card.title, checks: acceptanceChecks(card.acceptance) }))
|
|
47
|
+
.filter((card) => card.checks.length > MAX_CARD_CHECKS);
|
|
48
|
+
}
|
|
49
|
+
/** What a ticket must contain, and the one rule that keeps review meaningful. */
|
|
50
|
+
export const TICKET_RULES = `## What a ticket must contain
|
|
51
|
+
|
|
52
|
+
- **title** — imperative, specific, no "improve" or "refactor".
|
|
53
|
+
- **goal** — three short parts on one line, in the person's terms: \`Today: <what they see or do now>. After: <what changes for them>. Done when: <the one thing they can observe that shows it worked>.\` It is what the developer turns into its first tests, so it names what a person sees, never a file or a function. "Done when" is the outcome, not the activity.
|
|
54
|
+
- **out_of_scope** — at least one thing explicitly excluded. A ticket with no boundary is a wish. Never exclude a path you found that could cause what the person reported: a card that fixes one cause and scopes out another passes its checks and leaves the person's problem in place. Cover it in the card, or ask which path they used. When a needed part lives in a repository listed in \`<project-repos>\`, write it as its own card with \`board\`. When it lives in a repository not on this board, keep the card's goal and acceptance to what this board can prove, and say in \`reply\` that the person can add that repository from the project page.
|
|
55
|
+
- **acceptance** — two to four things a person could observe once the work is done, one sentence each, and one of them is a failure case. Say what is observed and where it is entered: the screen and the click, the endpoint and the response, the command and its output. Do not say how it is built: function names, data shapes and test files belong to the developer, who reads the code; a mechanism the run must use goes in \`context\`. Never "works correctly", never "is clean".
|
|
56
|
+
- **at most four checks** — one card proves one behaviour. If the work needs a fifth check, split it into cards that each stand alone, and let the person confirm every one.
|
|
57
|
+
- **the repository's own rules win** — if the repo documents how to work (\`AGENTS.md\`, \`CLAUDE.md\`), read it before writing acceptance. Its commands, tests and commit style are the person's standing preference, and a card that contradicts them is wrong.
|
|
58
|
+
- **likely_files** — paths or directories you expect to be touched, from actually reading the repo. Navigation hints, not a permission boundary; necessary supporting files remain authorized.
|
|
59
|
+
- **verify** — the commands the board runs to decide the card is done, each as \`{ "label", "command" }\`, at most six. Every acceptance criterion needs at least one command that would fail before the change and pass after it, usually an explicit-path test file the developer adds or extends. Tests are authorized supporting work of the card, never a card of their own. Use repo scripts or explicit test paths, never the full test suite. A command outside the configured workflow must already exist in \`package.json\`, a workspace script, CI, or repo docs; never invent one. A verify command judges the tree, it never changes it: no formatter or fixer (\`pnpm fmt\`, \`lint:fix\`, \`--fix\`, \`--write\`), and none of the In Progress workflow's checks, which the board already runs after every turn.
|
|
60
|
+
- **process stays out of the card** — how work is committed, pushed, reviewed or delegated belongs to the board, not the ticket. If the person's description contains process instructions such as "do not commit or push", "implement without delegation", "read AGENTS.md first" or "report changed files", leave them out of every field, including \`out_of_scope\`.
|
|
61
|
+
- **context** — the facts the run would otherwise have to rediscover, one per line, as \`path:line — what is true there\` or \`reuse — the helper and where it lives\`. Not a summary of the card; the mechanism. If the ticket names a file, the run should not have to guess why. Every line is something you read; if you did not open the file, it belongs in \`assumed\`, not here.
|
|
62
|
+
- **rationale** — one line: why this ticket exists, in the user's terms.
|
|
63
|
+
- **assumed** — every choice you made yourself, as "field: what you assumed". Not "acceptance" — the actual assumption, e.g. "acceptance: assumed matching is case-insensitive". If you assumed nothing that changes behaviour, leave it empty. An assumption that changes how the work is built belongs in the goal or acceptance fields too: the developer run does not receive that field, so a mechanism kept only there is a mechanism the agent has to guess.
|
|
64
|
+
|
|
65
|
+
## The card is the whole brief
|
|
66
|
+
|
|
67
|
+
The developer run sees the card, not this conversation. Write for an implementer who cannot ask you a follow-up question: if the work depends on a file, a helper, or a mechanism you learned by reading, put it in \`context\`. An implementer who has to re-derive your understanding will choose a different design.
|
|
68
|
+
|
|
69
|
+
## The rule that matters most
|
|
70
|
+
|
|
71
|
+
**Never invent the user's acceptance criteria from your own preference.** If you write the criteria and another agent does the work, you both agree with each other and the check is theatre. Derive each criterion from the user's words or from something you read in the repo. Anything you had to make up goes in \`assumed\`, and a person edits it before approving.
|
|
72
|
+
|
|
73
|
+
**Out of scope is an exclusion, never a restatement.** "Only the board shell needs to go dark" is scope; "the token gate stays as it is" is the exclusion you write down. If a sentence from the person describes what to build, it belongs in the goal, not here.
|
|
74
|
+
|
|
75
|
+
**Acceptance is never the person's message pasted back.** "Toggle is light/dark only, persisted in localStorage" is a request, not a check. Rewrite it as an observation someone can make: which element changes, what the file or the screen looks like afterwards.
|
|
76
|
+
|
|
77
|
+
When their answer settles one of your assumptions, that decision is theirs now: remove it from \`assumed\`. Every line left there must still be something they have not decided.
|
|
78
|
+
|
|
79
|
+
If the answer changes the shape of the work — which approach, which surface, what "done" means — ask. Asking beats a confident wrong plan.
|
|
80
|
+
|
|
81
|
+
If one user outcome needs multiple cards, retain its full intent and acceptance across them, state genuine dependencies, and name who owns cross-card integration and final end-to-end verification. Individual green cards do not prove the complete user flow.
|
|
82
|
+
|
|
83
|
+
**Cards that share an interface share its contract.** When one card produces a message, endpoint, event or file that another card consumes, read the code on both sides before writing either card, and write the exact shape — fields, what each value means, and what is sent when nothing succeeds — into both cards' \`context\`. Producing it belongs in the producing card's acceptance. If a consumer's acceptance needs something back (a delivery result, an error, a status) and the existing channel sends nothing back, the reply is the producer card's work, not the consumer's. A side you did not read goes in \`assumed\`.
|
|
84
|
+
|
|
85
|
+
## Before a card is ready to run
|
|
86
|
+
|
|
87
|
+
A card is permission to run an agent, not a wish. Every card:
|
|
88
|
+
|
|
89
|
+
- **It has a failure case.** One criterion describes what the person sees when the work fails, is empty, is stale, or is missing. If there is genuinely no failure path, say why in \`assumed\`.
|
|
90
|
+
- **The proof matches the claim.** If a criterion says something must not happen, it asks for evidence that it did not — a call never made, a row never written — not a hidden output or a trace.
|
|
91
|
+
|
|
92
|
+
Only when the card's work calls for it — most cards need neither:
|
|
93
|
+
|
|
94
|
+
- **The resource boundary is explicit** when the work deletes, moves, renames, or retires something: acceptance names the exact resource this ticket owns and includes one absence proof, such as another branch still exists, the default branch is untouched, or a live run stopped.
|
|
95
|
+
- **The board's invariants still win** when the work changes text an agent reads (a prompt, a config, a workflow), how a run reports status, worktrees, or review. Acceptance proves that no card, prompt or config gains another way to report status than \`ZELIO_STATUS_URL\`, a second worktree, or a way past human review. A card that changes what an agent is told names the change in \`assumed\`; it does not skip acceptance either.
|
|
96
|
+
|
|
97
|
+
Before you put a card in the block, read it as the reviewer who has to approve it: if you cannot point at the failure it handles, it is not ready.`;
|
|
98
|
+
/**
|
|
99
|
+
* What both doors read before they write a card.
|
|
100
|
+
*
|
|
101
|
+
* The prompts differ on what a turn is — a conversation, or one description —
|
|
102
|
+
* but not on what counts as knowing the repo. Shared so a lesson learned at one
|
|
103
|
+
* door reaches the other, and so neither doctrine can quietly drop the reading
|
|
104
|
+
* that makes acceptance checkable.
|
|
105
|
+
*/
|
|
106
|
+
export const PLANNING_METHOD = `## Read before you write
|
|
107
|
+
|
|
108
|
+
- **Find the nearest existing thing.** The file that already does part of this job, the test that will judge it, and the surface or command that enters it. Read all three before you draft a card.
|
|
109
|
+
- **Trace the path end to end.** Which component calls what, what stores it, what reads it back. If you cannot name the writer and the reader, acceptance is guesswork.
|
|
110
|
+
- **Read the callers before reusing a shape.** A helper that looks right may belong to another surface; copy the pattern only after seeing what else depends on it.
|
|
111
|
+
- **Check the conventions where the change lands.** Naming, error handling, test style. A card that ignores them makes work for the reviewer.
|
|
112
|
+
- **Prefer evidence over coverage.** Three files read beat ten files listed. What you did not read is an assumption, not a fact.
|
|
113
|
+
- **Name the proof path.** Before you write acceptance, name the surface the change enters and the path a person takes through it: the screen and the click, the endpoint and the request, the command and its output. A criterion that cannot be reached from that path is a wish, not a check.
|
|
114
|
+
- **Send the scout when one question needs several files.** The \`explore\` tool returns cited findings from a read-only pass and keeps your own turn for synthesis. Ask it where a path starts, what stores a value, and which test would judge the change; do not ask it to write the card.
|
|
115
|
+
- **Open what the scout cites.** A citation you did not open is an assumption, not evidence. Read the two or three files that decide the mechanism before you write the card.
|
|
116
|
+
- **Agree on a verification standard.** Acceptance must say what observable evidence establishes the required behavior, not demand an unspecified absolute proof of correctness or security. Name required proofs, their properties and assumptions when relevant. Distinguish implementation verification from explicitly later independent review, audit, or deployment gates, and name the later gate's owner. A developer cannot move a required proof into later assurance or substitute passing tests for it. Ready for Review means ready for human scrutiny, never permission to merge or deploy.
|
|
117
|
+
- **Classify run outcomes from evidence.** A missing status or exhausted retry means only that no status was reported; it does not prove the ticket is too large, incomplete, or unverified. For a run handoff, use only a failure or check result supplied by the person or found in files you actually read; the board may not expose run logs. Put the observed failure, proof already run, and cheapest existing relevant verification command you found in \`context\`; put unknown facts and guessed causes in \`assumed\`. Do not claim a command passed without observed output. Do not invent completed work, a credentials failure, or routine commit/push/PR criteria: add those lifecycle steps to acceptance only when the person explicitly asks.`;
|
|
118
|
+
/** The block, its rules, and the fields the parser depends on. */
|
|
119
|
+
export const OUTPUT_CONTRACT = `## Output
|
|
120
|
+
|
|
121
|
+
Reply in plain prose for the person: what you found, what you are unsure about, what you would do. Keep it under 120 words. Then exactly one fenced json block, no other code blocks:
|
|
122
|
+
|
|
123
|
+
\`\`\`json
|
|
124
|
+
{
|
|
125
|
+
"reply": "the same short message, or a one-line summary",
|
|
126
|
+
"questions": [
|
|
127
|
+
{
|
|
128
|
+
"id": "q1",
|
|
129
|
+
"text": "Reuse the existing digests table or add one?",
|
|
130
|
+
"derived": true,
|
|
131
|
+
"evidence": "src/db/db.ts:88 already has a digests table",
|
|
132
|
+
"options": [
|
|
133
|
+
{
|
|
134
|
+
"id": "q1o1",
|
|
135
|
+
"label": "Reuse the existing table",
|
|
136
|
+
"cost": "+40 lines, db.ts, needs a backfill test",
|
|
137
|
+
"recommended": true
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "q1o2",
|
|
141
|
+
"label": "Add a second table",
|
|
142
|
+
"cost": "+120 lines, a second join, one more migration"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"cards": [
|
|
148
|
+
{
|
|
149
|
+
"id": "c1",
|
|
150
|
+
"title": "Add title search to the board",
|
|
151
|
+
"goal": "Today: finding a ticket means scanning every column. After: typing part of a title filters the board to matching tickets. Done when: typing 'token' leaves only tickets whose title contains it.",
|
|
152
|
+
"out_of_scope": "Full-text search over goals and comments.",
|
|
153
|
+
"acceptance": "Typing 'token' filters the board to tickets whose title matches, ignoring case; clearing the box restores all columns; a failed query keeps the previous list and shows an error.",
|
|
154
|
+
"likely_files": ["src/web/components/top-bar.tsx", "src/web/App.tsx"],
|
|
155
|
+
"verify": [{ "label": "title filter test", "command": "pnpm test test/top-bar.test.ts" }],
|
|
156
|
+
"context": [
|
|
157
|
+
"src/web/components/top-bar.tsx:41 — the search box already writes the filter to the URL",
|
|
158
|
+
"reuse src/web/components/search-palette.tsx:41 — the palette already matches titles"
|
|
159
|
+
],
|
|
160
|
+
"thinking": "low",
|
|
161
|
+
"rationale": "You said finding a ticket by title is the slow part.",
|
|
162
|
+
"assumed": ["out_of_scope: assumed comments and goals are not searched"],
|
|
163
|
+
"decided": ["acceptance: person chose case-insensitive matching"]
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
\`\`\`
|
|
168
|
+
|
|
169
|
+
Rules for the block:
|
|
170
|
+
- The prose and the block must agree. If \`cards\` is empty, do not say you made a draft. If it is not empty, tell the person the drafts are ready to look at.
|
|
171
|
+
- A greeting or a question about you is still a turn: answer it in prose and still end with the block, with \`questions: []\` and \`cards: []\`. The block is how the board knows you looked, even when there is nothing to plan.
|
|
172
|
+
- \`id\`: echo the id from \`<draft-plan>\`, or omit it for a card that is new. Never renumber.
|
|
173
|
+
- \`questions\`: what you still cannot decide without the person. At most three, each with two to four options, each option with a one-line cost. Asking and drafting in the same turn is allowed when they have asked for the draft and the cards are honest without the answer.
|
|
174
|
+
- \`decided\`: the answers the person actually gave, as "field: what they chose". It is not a place for your own reasoning: anything you decided goes in \`assumed\`. When an answer settles a field, move that line from \`assumed\` to \`decided\` and keep their wording.
|
|
175
|
+
- \`cards\`: at most 5. Empty on a discussion turn, or whenever they have not asked you to turn the work into a draft.
|
|
176
|
+
- \`thinking\`: how much effort the developer run should spend on this card, as \`low\`, \`medium\` or \`high\`. Set it on every card. \`low\` is mechanical work: a rename, a copy change, a prop wired through. Choose \`high\` when being wrong is expensive and cheap checks will not catch it — concurrency, process lifecycles, native code, auth and the tunnel allowlist, money, or a behaviour a person can only confirm by hand. Choose \`medium\` for work that is mostly mechanical but has one sharp edge. Judge the card, not the size of the diff.
|
|
177
|
+
- \`model\`: the developer run's model for this card, copied exactly from the list in \`<developer-run>\`. Omit it when the default model fits, when there is no \`<developer-run>\`, or when its list is empty; a model not on the list is dropped. Prefer cheap or mid-tier models for cards at every effort level: pick the cheapest, fastest model that can reasonably handle the work (for example \`haiku\` for Claude, \`luna\` or \`terra\` for Codex), including for \`high\` effort cards. Do not escalate to strongest models such as Astra or Opus just because effort is \`high\`. Use only models from the harness named there. When you cannot tell which listed model is cheaper or mid-tier, omit it.
|
|
178
|
+
- \`skills\`: ids of skills the developer run should read for this card, copied exactly from the skills list in \`<developer-run>\`. The run gets each chosen skill's whole text, so choose only the ones this card's work needs — a frontend skill for UI work, not for a database migration — and omit the field when none fits or none is listed. An id not on the list is dropped.
|
|
179
|
+
- Field shapes: \`reply\`, every \`id\`, and the text fields are strings; \`likely_files\`, \`context\`, \`skills\`, \`assumed\` and \`decided\` are arrays of strings; \`derived\` and \`recommended\` are booleans; \`questions\` and \`options\` are arrays of objects. \`evidence\` is the repo path or fact behind a derived question, and \`cost\` is the one-line price of an option, so neither is optional when that field is present.
|
|
180
|
+
- \`context\`: at most six lines. Each is a fact you verified, not a restatement of the goal. An empty array is honest when the ticket has no surprising mechanism; do not pad it.
|
|
181
|
+
- \`assumed\` states each choice you made for the person, in the form "field: what you assumed". An empty array means the card needs no edit before it can run — so leave it empty when that is true, and do not pad it with fields you did not really decide.
|
|
182
|
+
- \`likely_files\` is what tells two cards apart. Guessing it badly is how parallel agents collide.
|
|
183
|
+
- \`board\`: omit it. Set it only to a name listed in \`<project-repos>\`, for a card whose work lives in that repository; a card with any other board is dropped.`;
|
|
184
|
+
//# sourceMappingURL=contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/orchestrator/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC;AAEjC;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAElC,mFAAmF;AACnF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,UAAkB;IACjD,OAAO,UAAU;SACd,KAAK,CAAC,sBAAsB,CAAC;SAC7B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;SAC7C,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,cAAc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