agent-dealer 0.1.2 → 0.1.4
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/bundle/server/dist/adapters/agent-deck-deliver.test.js +52 -0
- package/bundle/server/dist/adapters/agent-deck.js +140 -0
- package/bundle/server/dist/queue/answers.test.js +117 -0
- package/bundle/server/dist/queue/approve-deliver.js +62 -0
- package/bundle/server/dist/queue/dispatcher.js +176 -2
- package/bundle/server/dist/queue/plan-gate.test.js +55 -0
- package/bundle/server/dist/queue/send-gate.test.js +108 -0
- package/bundle/server/dist/repository/outbound-drafts.js +62 -0
- package/bundle/server/dist/repository/runs.js +17 -1
- package/bundle/server/dist/routes/index.js +41 -17
- package/bundle/server/dist/runners/claude-args.js +24 -0
- package/bundle/server/dist/runners/claude.js +9 -18
- package/bundle/server/dist/runners/claude.test.js +58 -0
- package/bundle/server/dist/runners/persist.js +46 -7
- package/bundle/server/dist/runners/prompts.js +87 -1
- package/bundle/server/dist/runners/prompts.test.js +92 -0
- package/bundle/server/dist/runners/reflect.js +1 -1
- package/bundle/server/dist/runners/stream-json.js +51 -0
- package/bundle/server/dist/runners/stream-json.test.js +95 -0
- package/bundle/server/dist/usage-summary.js +9 -4
- package/bundle/server/package.json +3 -2
- package/bundle/server/static-ui/assets/index-Cc-h06U6.js +78 -0
- package/bundle/server/static-ui/assets/index-DKnME33I.css +1 -0
- package/bundle/server/static-ui/index.html +2 -2
- package/bundle/shared/dist/budget.d.ts +1 -1
- package/bundle/shared/dist/budget.js +3 -3
- package/bundle/shared/dist/index.d.ts +351 -129
- package/bundle/shared/dist/index.js +19 -0
- package/bundle/shared/dist/outbound-draft.d.ts +192 -0
- package/bundle/shared/dist/outbound-draft.js +46 -0
- package/bundle/shared/dist/outbound-draft.test.d.ts +1 -0
- package/bundle/shared/dist/outbound-draft.test.js +34 -0
- package/bundle/shared/dist/plan-triage.d.ts +317 -0
- package/bundle/shared/dist/plan-triage.js +65 -0
- package/bundle/shared/dist/plan-triage.test.d.ts +1 -0
- package/bundle/shared/dist/plan-triage.test.js +66 -0
- package/bundle/shared/package.json +1 -1
- package/package.json +3 -2
- package/bundle/server/static-ui/assets/index-ChdPKYDd.css +0 -1
- package/bundle/server/static-ui/assets/index-hIzZ8TM8.js +0 -77
|
@@ -3,11 +3,13 @@ export * from "./runtime.js";
|
|
|
3
3
|
export * from "./agents.js";
|
|
4
4
|
export * from "./budget.js";
|
|
5
5
|
export * from "./execution.js";
|
|
6
|
+
export * from "./plan-triage.js";
|
|
7
|
+
export * from "./outbound-draft.js";
|
|
6
8
|
export declare const RunStatus: z.ZodEnum<["queued", "plan_pending", "plan_approved", "running", "review", "done", "failed", "cancelled"]>;
|
|
7
9
|
export type RunStatus = z.infer<typeof RunStatus>;
|
|
8
10
|
export declare const TaskCategory: z.ZodEnum<["code", "communication", "email", "research", "content", "other"]>;
|
|
9
11
|
export type TaskCategory = z.infer<typeof TaskCategory>;
|
|
10
|
-
export declare const ArtifactKind: z.ZodEnum<["task_snapshot", "draft_plan", "approved_plan", "acceptance_criteria", "transcript", "stream_trace", "usage", "agent_session", "execution_result", "diff", "pr", "email_draft", "slack_draft", "document", "research_brief", "deliverable", "feedback", "playbook_patch", "reflect_status", "linear_sync"]>;
|
|
12
|
+
export declare const ArtifactKind: z.ZodEnum<["task_snapshot", "draft_plan", "approved_plan", "plan_triage", "plan_answers", "acceptance_criteria", "transcript", "stream_trace", "usage", "agent_session", "execution_result", "diff", "pr", "email_draft", "slack_draft", "document", "research_brief", "deliverable", "feedback", "playbook_patch", "reflect_status", "linear_sync", "send_receipt"]>;
|
|
11
13
|
export type ArtifactKind = z.infer<typeof ArtifactKind>;
|
|
12
14
|
export declare const RunPhase: z.ZodEnum<["plan", "execute", "reflect"]>;
|
|
13
15
|
export type RunPhase = z.infer<typeof RunPhase>;
|
|
@@ -27,18 +29,18 @@ export declare const PlaybookPatchContent: z.ZodObject<{
|
|
|
27
29
|
}, "strip", z.ZodTypeAny, {
|
|
28
30
|
status: "proposed" | "applied" | "dismissed";
|
|
29
31
|
playbookId: string;
|
|
32
|
+
rationale: string;
|
|
30
33
|
previousBody: string;
|
|
31
34
|
proposedBody: string;
|
|
32
|
-
rationale: string;
|
|
33
35
|
trigger: "retry" | "approve";
|
|
34
36
|
playbookTitle?: string | undefined;
|
|
35
37
|
appliedAt?: string | undefined;
|
|
36
38
|
}, {
|
|
37
39
|
status: "proposed" | "applied" | "dismissed";
|
|
38
40
|
playbookId: string;
|
|
41
|
+
rationale: string;
|
|
39
42
|
previousBody: string;
|
|
40
43
|
proposedBody: string;
|
|
41
|
-
rationale: string;
|
|
42
44
|
trigger: "retry" | "approve";
|
|
43
45
|
playbookTitle?: string | undefined;
|
|
44
46
|
appliedAt?: string | undefined;
|
|
@@ -49,11 +51,11 @@ export declare const ReflectStatusContent: z.ZodObject<{
|
|
|
49
51
|
trigger: z.ZodEnum<["retry", "approve"]>;
|
|
50
52
|
error: z.ZodOptional<z.ZodString>;
|
|
51
53
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
status: "
|
|
54
|
+
status: "pending" | "failed" | "completed" | "skipped";
|
|
53
55
|
trigger: "retry" | "approve";
|
|
54
56
|
error?: string | undefined;
|
|
55
57
|
}, {
|
|
56
|
-
status: "
|
|
58
|
+
status: "pending" | "failed" | "completed" | "skipped";
|
|
57
59
|
trigger: "retry" | "approve";
|
|
58
60
|
error?: string | undefined;
|
|
59
61
|
}>;
|
|
@@ -118,9 +120,15 @@ export declare const UsageContent: z.ZodObject<{
|
|
|
118
120
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
119
121
|
model: z.ZodOptional<z.ZodString>;
|
|
120
122
|
numTurns: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
/** Resolved --max-turns cap enforced when this phase ran (snapshot at persist time). */
|
|
124
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
/** Resolved --max-budget-usd cap enforced when this phase ran (snapshot at persist time). */
|
|
126
|
+
maxBudgetUsd: z.ZodOptional<z.ZodNumber>;
|
|
121
127
|
}, "strip", z.ZodTypeAny, {
|
|
122
128
|
runtime: "claude_code" | "cursor_local";
|
|
123
129
|
phase: "plan" | "execute" | "reflect";
|
|
130
|
+
maxTurns?: number | undefined;
|
|
131
|
+
maxBudgetUsd?: number | undefined;
|
|
124
132
|
totalCostUsd?: number | undefined;
|
|
125
133
|
inputTokens?: number | undefined;
|
|
126
134
|
outputTokens?: number | undefined;
|
|
@@ -132,6 +140,8 @@ export declare const UsageContent: z.ZodObject<{
|
|
|
132
140
|
}, {
|
|
133
141
|
runtime: "claude_code" | "cursor_local";
|
|
134
142
|
phase: "plan" | "execute" | "reflect";
|
|
143
|
+
maxTurns?: number | undefined;
|
|
144
|
+
maxBudgetUsd?: number | undefined;
|
|
135
145
|
totalCostUsd?: number | undefined;
|
|
136
146
|
inputTokens?: number | undefined;
|
|
137
147
|
outputTokens?: number | undefined;
|
|
@@ -155,9 +165,15 @@ export declare const UsageLineItem: z.ZodObject<{
|
|
|
155
165
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
156
166
|
model: z.ZodOptional<z.ZodString>;
|
|
157
167
|
numTurns: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
/** Resolved --max-turns cap enforced when this phase ran (snapshot at persist time). */
|
|
169
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
/** Resolved --max-budget-usd cap enforced when this phase ran (snapshot at persist time). */
|
|
171
|
+
maxBudgetUsd: z.ZodOptional<z.ZodNumber>;
|
|
158
172
|
}, "strip", z.ZodTypeAny, {
|
|
159
173
|
runtime: "claude_code" | "cursor_local";
|
|
160
174
|
phase: "plan" | "execute" | "reflect";
|
|
175
|
+
maxTurns?: number | undefined;
|
|
176
|
+
maxBudgetUsd?: number | undefined;
|
|
161
177
|
totalCostUsd?: number | undefined;
|
|
162
178
|
inputTokens?: number | undefined;
|
|
163
179
|
outputTokens?: number | undefined;
|
|
@@ -169,6 +185,8 @@ export declare const UsageLineItem: z.ZodObject<{
|
|
|
169
185
|
}, {
|
|
170
186
|
runtime: "claude_code" | "cursor_local";
|
|
171
187
|
phase: "plan" | "execute" | "reflect";
|
|
188
|
+
maxTurns?: number | undefined;
|
|
189
|
+
maxBudgetUsd?: number | undefined;
|
|
172
190
|
totalCostUsd?: number | undefined;
|
|
173
191
|
inputTokens?: number | undefined;
|
|
174
192
|
outputTokens?: number | undefined;
|
|
@@ -178,10 +196,16 @@ export declare const UsageLineItem: z.ZodObject<{
|
|
|
178
196
|
model?: string | undefined;
|
|
179
197
|
numTurns?: number | undefined;
|
|
180
198
|
}>;
|
|
199
|
+
/** From usage artifact snapshot; falls back to current resolve for legacy rows. */
|
|
200
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
maxBudgetUsd: z.ZodOptional<z.ZodNumber>;
|
|
181
202
|
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
label: string;
|
|
182
204
|
usage: {
|
|
183
205
|
runtime: "claude_code" | "cursor_local";
|
|
184
206
|
phase: "plan" | "execute" | "reflect";
|
|
207
|
+
maxTurns?: number | undefined;
|
|
208
|
+
maxBudgetUsd?: number | undefined;
|
|
185
209
|
totalCostUsd?: number | undefined;
|
|
186
210
|
inputTokens?: number | undefined;
|
|
187
211
|
outputTokens?: number | undefined;
|
|
@@ -191,11 +215,15 @@ export declare const UsageLineItem: z.ZodObject<{
|
|
|
191
215
|
model?: string | undefined;
|
|
192
216
|
numTurns?: number | undefined;
|
|
193
217
|
};
|
|
194
|
-
|
|
218
|
+
maxTurns?: number | undefined;
|
|
219
|
+
maxBudgetUsd?: number | undefined;
|
|
195
220
|
}, {
|
|
221
|
+
label: string;
|
|
196
222
|
usage: {
|
|
197
223
|
runtime: "claude_code" | "cursor_local";
|
|
198
224
|
phase: "plan" | "execute" | "reflect";
|
|
225
|
+
maxTurns?: number | undefined;
|
|
226
|
+
maxBudgetUsd?: number | undefined;
|
|
199
227
|
totalCostUsd?: number | undefined;
|
|
200
228
|
inputTokens?: number | undefined;
|
|
201
229
|
outputTokens?: number | undefined;
|
|
@@ -205,7 +233,8 @@ export declare const UsageLineItem: z.ZodObject<{
|
|
|
205
233
|
model?: string | undefined;
|
|
206
234
|
numTurns?: number | undefined;
|
|
207
235
|
};
|
|
208
|
-
|
|
236
|
+
maxTurns?: number | undefined;
|
|
237
|
+
maxBudgetUsd?: number | undefined;
|
|
209
238
|
}>;
|
|
210
239
|
export type UsageLineItem = z.infer<typeof UsageLineItem>;
|
|
211
240
|
export declare const UsageSummary: z.ZodObject<{
|
|
@@ -222,9 +251,15 @@ export declare const UsageSummary: z.ZodObject<{
|
|
|
222
251
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
223
252
|
model: z.ZodOptional<z.ZodString>;
|
|
224
253
|
numTurns: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
/** Resolved --max-turns cap enforced when this phase ran (snapshot at persist time). */
|
|
255
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
256
|
+
/** Resolved --max-budget-usd cap enforced when this phase ran (snapshot at persist time). */
|
|
257
|
+
maxBudgetUsd: z.ZodOptional<z.ZodNumber>;
|
|
225
258
|
}, "strip", z.ZodTypeAny, {
|
|
226
259
|
runtime: "claude_code" | "cursor_local";
|
|
227
260
|
phase: "plan" | "execute" | "reflect";
|
|
261
|
+
maxTurns?: number | undefined;
|
|
262
|
+
maxBudgetUsd?: number | undefined;
|
|
228
263
|
totalCostUsd?: number | undefined;
|
|
229
264
|
inputTokens?: number | undefined;
|
|
230
265
|
outputTokens?: number | undefined;
|
|
@@ -236,6 +271,8 @@ export declare const UsageSummary: z.ZodObject<{
|
|
|
236
271
|
}, {
|
|
237
272
|
runtime: "claude_code" | "cursor_local";
|
|
238
273
|
phase: "plan" | "execute" | "reflect";
|
|
274
|
+
maxTurns?: number | undefined;
|
|
275
|
+
maxBudgetUsd?: number | undefined;
|
|
239
276
|
totalCostUsd?: number | undefined;
|
|
240
277
|
inputTokens?: number | undefined;
|
|
241
278
|
outputTokens?: number | undefined;
|
|
@@ -245,10 +282,16 @@ export declare const UsageSummary: z.ZodObject<{
|
|
|
245
282
|
model?: string | undefined;
|
|
246
283
|
numTurns?: number | undefined;
|
|
247
284
|
}>;
|
|
285
|
+
/** From usage artifact snapshot; falls back to current resolve for legacy rows. */
|
|
286
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
maxBudgetUsd: z.ZodOptional<z.ZodNumber>;
|
|
248
288
|
}, "strip", z.ZodTypeAny, {
|
|
289
|
+
label: string;
|
|
249
290
|
usage: {
|
|
250
291
|
runtime: "claude_code" | "cursor_local";
|
|
251
292
|
phase: "plan" | "execute" | "reflect";
|
|
293
|
+
maxTurns?: number | undefined;
|
|
294
|
+
maxBudgetUsd?: number | undefined;
|
|
252
295
|
totalCostUsd?: number | undefined;
|
|
253
296
|
inputTokens?: number | undefined;
|
|
254
297
|
outputTokens?: number | undefined;
|
|
@@ -258,11 +301,15 @@ export declare const UsageSummary: z.ZodObject<{
|
|
|
258
301
|
model?: string | undefined;
|
|
259
302
|
numTurns?: number | undefined;
|
|
260
303
|
};
|
|
261
|
-
|
|
304
|
+
maxTurns?: number | undefined;
|
|
305
|
+
maxBudgetUsd?: number | undefined;
|
|
262
306
|
}, {
|
|
307
|
+
label: string;
|
|
263
308
|
usage: {
|
|
264
309
|
runtime: "claude_code" | "cursor_local";
|
|
265
310
|
phase: "plan" | "execute" | "reflect";
|
|
311
|
+
maxTurns?: number | undefined;
|
|
312
|
+
maxBudgetUsd?: number | undefined;
|
|
266
313
|
totalCostUsd?: number | undefined;
|
|
267
314
|
inputTokens?: number | undefined;
|
|
268
315
|
outputTokens?: number | undefined;
|
|
@@ -272,29 +319,36 @@ export declare const UsageSummary: z.ZodObject<{
|
|
|
272
319
|
model?: string | undefined;
|
|
273
320
|
numTurns?: number | undefined;
|
|
274
321
|
};
|
|
275
|
-
|
|
322
|
+
maxTurns?: number | undefined;
|
|
323
|
+
maxBudgetUsd?: number | undefined;
|
|
276
324
|
}>, "many">;
|
|
277
325
|
total: z.ZodObject<{
|
|
278
326
|
totalCostUsd: z.ZodNumber;
|
|
279
327
|
inputTokens: z.ZodNumber;
|
|
280
328
|
outputTokens: z.ZodNumber;
|
|
281
329
|
durationMs: z.ZodNumber;
|
|
330
|
+
numTurns: z.ZodNumber;
|
|
282
331
|
}, "strip", z.ZodTypeAny, {
|
|
283
332
|
totalCostUsd: number;
|
|
284
333
|
inputTokens: number;
|
|
285
334
|
outputTokens: number;
|
|
286
335
|
durationMs: number;
|
|
336
|
+
numTurns: number;
|
|
287
337
|
}, {
|
|
288
338
|
totalCostUsd: number;
|
|
289
339
|
inputTokens: number;
|
|
290
340
|
outputTokens: number;
|
|
291
341
|
durationMs: number;
|
|
342
|
+
numTurns: number;
|
|
292
343
|
}>;
|
|
293
344
|
}, "strip", z.ZodTypeAny, {
|
|
294
345
|
lines: {
|
|
346
|
+
label: string;
|
|
295
347
|
usage: {
|
|
296
348
|
runtime: "claude_code" | "cursor_local";
|
|
297
349
|
phase: "plan" | "execute" | "reflect";
|
|
350
|
+
maxTurns?: number | undefined;
|
|
351
|
+
maxBudgetUsd?: number | undefined;
|
|
298
352
|
totalCostUsd?: number | undefined;
|
|
299
353
|
inputTokens?: number | undefined;
|
|
300
354
|
outputTokens?: number | undefined;
|
|
@@ -304,19 +358,24 @@ export declare const UsageSummary: z.ZodObject<{
|
|
|
304
358
|
model?: string | undefined;
|
|
305
359
|
numTurns?: number | undefined;
|
|
306
360
|
};
|
|
307
|
-
|
|
361
|
+
maxTurns?: number | undefined;
|
|
362
|
+
maxBudgetUsd?: number | undefined;
|
|
308
363
|
}[];
|
|
309
364
|
total: {
|
|
310
365
|
totalCostUsd: number;
|
|
311
366
|
inputTokens: number;
|
|
312
367
|
outputTokens: number;
|
|
313
368
|
durationMs: number;
|
|
369
|
+
numTurns: number;
|
|
314
370
|
};
|
|
315
371
|
}, {
|
|
316
372
|
lines: {
|
|
373
|
+
label: string;
|
|
317
374
|
usage: {
|
|
318
375
|
runtime: "claude_code" | "cursor_local";
|
|
319
376
|
phase: "plan" | "execute" | "reflect";
|
|
377
|
+
maxTurns?: number | undefined;
|
|
378
|
+
maxBudgetUsd?: number | undefined;
|
|
320
379
|
totalCostUsd?: number | undefined;
|
|
321
380
|
inputTokens?: number | undefined;
|
|
322
381
|
outputTokens?: number | undefined;
|
|
@@ -326,13 +385,15 @@ export declare const UsageSummary: z.ZodObject<{
|
|
|
326
385
|
model?: string | undefined;
|
|
327
386
|
numTurns?: number | undefined;
|
|
328
387
|
};
|
|
329
|
-
|
|
388
|
+
maxTurns?: number | undefined;
|
|
389
|
+
maxBudgetUsd?: number | undefined;
|
|
330
390
|
}[];
|
|
331
391
|
total: {
|
|
332
392
|
totalCostUsd: number;
|
|
333
393
|
inputTokens: number;
|
|
334
394
|
outputTokens: number;
|
|
335
395
|
durationMs: number;
|
|
396
|
+
numTurns: number;
|
|
336
397
|
};
|
|
337
398
|
}>;
|
|
338
399
|
export type UsageSummary = z.infer<typeof UsageSummary>;
|
|
@@ -342,12 +403,12 @@ export declare const AgentSessionContent: z.ZodObject<{
|
|
|
342
403
|
sessionId: z.ZodString;
|
|
343
404
|
}, "strip", z.ZodTypeAny, {
|
|
344
405
|
runtime: "claude_code" | "cursor_local";
|
|
345
|
-
phase: "plan" | "execute" | "reflect";
|
|
346
406
|
sessionId: string;
|
|
407
|
+
phase: "plan" | "execute" | "reflect";
|
|
347
408
|
}, {
|
|
348
409
|
runtime: "claude_code" | "cursor_local";
|
|
349
|
-
phase: "plan" | "execute" | "reflect";
|
|
350
410
|
sessionId: string;
|
|
411
|
+
phase: "plan" | "execute" | "reflect";
|
|
351
412
|
}>;
|
|
352
413
|
export type AgentSessionContent = z.infer<typeof AgentSessionContent>;
|
|
353
414
|
export declare const ExecutionResultContent: z.ZodObject<{
|
|
@@ -461,18 +522,18 @@ export declare const Run: z.ZodObject<{
|
|
|
461
522
|
playbookId: string | null;
|
|
462
523
|
createdAt: string;
|
|
463
524
|
updatedAt: string;
|
|
464
|
-
title: string;
|
|
465
525
|
description: string | null;
|
|
526
|
+
executeModel: string | null;
|
|
527
|
+
title: string;
|
|
466
528
|
source: "manual" | "linear";
|
|
467
529
|
externalId: string | null;
|
|
468
530
|
externalLabel: string | null;
|
|
469
|
-
taskCategory: "code" | "
|
|
531
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
470
532
|
repo: string | null;
|
|
471
533
|
artifactWorkspace: string | null;
|
|
472
534
|
agentId: string | null;
|
|
473
535
|
agentName: string | null;
|
|
474
536
|
planModel: string | null;
|
|
475
|
-
executeModel: string | null;
|
|
476
537
|
lineageId: string | null;
|
|
477
538
|
acceptanceCriteria: string | null;
|
|
478
539
|
approvalGatesJson: string | null;
|
|
@@ -486,18 +547,18 @@ export declare const Run: z.ZodObject<{
|
|
|
486
547
|
playbookId: string | null;
|
|
487
548
|
createdAt: string;
|
|
488
549
|
updatedAt: string;
|
|
489
|
-
title: string;
|
|
490
550
|
description: string | null;
|
|
551
|
+
executeModel: string | null;
|
|
552
|
+
title: string;
|
|
491
553
|
source: "manual" | "linear";
|
|
492
554
|
externalId: string | null;
|
|
493
555
|
externalLabel: string | null;
|
|
494
|
-
taskCategory: "code" | "
|
|
556
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
495
557
|
repo: string | null;
|
|
496
558
|
artifactWorkspace: string | null;
|
|
497
559
|
agentId: string | null;
|
|
498
560
|
agentName: string | null;
|
|
499
561
|
planModel: string | null;
|
|
500
|
-
executeModel: string | null;
|
|
501
562
|
lineageId: string | null;
|
|
502
563
|
acceptanceCriteria: string | null;
|
|
503
564
|
approvalGatesJson: string | null;
|
|
@@ -507,7 +568,7 @@ export type Run = z.infer<typeof Run>;
|
|
|
507
568
|
export declare const Artifact: z.ZodObject<{
|
|
508
569
|
id: z.ZodString;
|
|
509
570
|
runId: z.ZodString;
|
|
510
|
-
kind: z.ZodEnum<["task_snapshot", "draft_plan", "approved_plan", "acceptance_criteria", "transcript", "stream_trace", "usage", "agent_session", "execution_result", "diff", "pr", "email_draft", "slack_draft", "document", "research_brief", "deliverable", "feedback", "playbook_patch", "reflect_status", "linear_sync"]>;
|
|
571
|
+
kind: z.ZodEnum<["task_snapshot", "draft_plan", "approved_plan", "plan_triage", "plan_answers", "acceptance_criteria", "transcript", "stream_trace", "usage", "agent_session", "execution_result", "diff", "pr", "email_draft", "slack_draft", "document", "research_brief", "deliverable", "feedback", "playbook_patch", "reflect_status", "linear_sync", "send_receipt"]>;
|
|
511
572
|
contentJson: z.ZodNullable<z.ZodString>;
|
|
512
573
|
blobPath: z.ZodNullable<z.ZodString>;
|
|
513
574
|
author: z.ZodEnum<["human", "agent", "system"]>;
|
|
@@ -516,7 +577,7 @@ export declare const Artifact: z.ZodObject<{
|
|
|
516
577
|
id: string;
|
|
517
578
|
createdAt: string;
|
|
518
579
|
runId: string;
|
|
519
|
-
kind: "task_snapshot" | "draft_plan" | "approved_plan" | "
|
|
580
|
+
kind: "slack_draft" | "email_draft" | "task_snapshot" | "draft_plan" | "approved_plan" | "plan_triage" | "plan_answers" | "acceptance_criteria" | "transcript" | "stream_trace" | "usage" | "agent_session" | "execution_result" | "diff" | "pr" | "document" | "research_brief" | "deliverable" | "feedback" | "playbook_patch" | "reflect_status" | "linear_sync" | "send_receipt";
|
|
520
581
|
contentJson: string | null;
|
|
521
582
|
blobPath: string | null;
|
|
522
583
|
author: "system" | "human" | "agent";
|
|
@@ -524,7 +585,7 @@ export declare const Artifact: z.ZodObject<{
|
|
|
524
585
|
id: string;
|
|
525
586
|
createdAt: string;
|
|
526
587
|
runId: string;
|
|
527
|
-
kind: "task_snapshot" | "draft_plan" | "approved_plan" | "
|
|
588
|
+
kind: "slack_draft" | "email_draft" | "task_snapshot" | "draft_plan" | "approved_plan" | "plan_triage" | "plan_answers" | "acceptance_criteria" | "transcript" | "stream_trace" | "usage" | "agent_session" | "execution_result" | "diff" | "pr" | "document" | "research_brief" | "deliverable" | "feedback" | "playbook_patch" | "reflect_status" | "linear_sync" | "send_receipt";
|
|
528
589
|
contentJson: string | null;
|
|
529
590
|
blobPath: string | null;
|
|
530
591
|
author: "system" | "human" | "agent";
|
|
@@ -623,13 +684,13 @@ export declare const CreateRunInput: z.ZodObject<{
|
|
|
623
684
|
}, "strip", z.ZodTypeAny, {
|
|
624
685
|
status: "queued" | "plan_pending" | "plan_approved";
|
|
625
686
|
title: string;
|
|
626
|
-
taskCategory: "code" | "
|
|
687
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
627
688
|
agentId: string;
|
|
628
689
|
description?: string | undefined;
|
|
690
|
+
executeModel?: string | null | undefined;
|
|
629
691
|
repo?: string | undefined;
|
|
630
692
|
artifactWorkspace?: string | undefined;
|
|
631
693
|
planModel?: string | null | undefined;
|
|
632
|
-
executeModel?: string | null | undefined;
|
|
633
694
|
acceptanceCriteria?: string | undefined;
|
|
634
695
|
budget?: {
|
|
635
696
|
plan?: {
|
|
@@ -650,11 +711,11 @@ export declare const CreateRunInput: z.ZodObject<{
|
|
|
650
711
|
agentId: string;
|
|
651
712
|
status?: "queued" | "plan_pending" | "plan_approved" | undefined;
|
|
652
713
|
description?: string | undefined;
|
|
653
|
-
|
|
714
|
+
executeModel?: string | null | undefined;
|
|
715
|
+
taskCategory?: "code" | "email" | "communication" | "research" | "content" | "other" | undefined;
|
|
654
716
|
repo?: string | undefined;
|
|
655
717
|
artifactWorkspace?: string | undefined;
|
|
656
718
|
planModel?: string | null | undefined;
|
|
657
|
-
executeModel?: string | null | undefined;
|
|
658
719
|
acceptanceCriteria?: string | undefined;
|
|
659
720
|
budget?: {
|
|
660
721
|
plan?: {
|
|
@@ -740,8 +801,8 @@ export declare const AgentConfigInput: z.ZodObject<{
|
|
|
740
801
|
runtime: "claude_code" | "cursor_local";
|
|
741
802
|
deckId?: string | undefined;
|
|
742
803
|
playbookId?: string | undefined;
|
|
743
|
-
planModel?: string | null | undefined;
|
|
744
804
|
executeModel?: string | null | undefined;
|
|
805
|
+
planModel?: string | null | undefined;
|
|
745
806
|
budget?: {
|
|
746
807
|
plan?: {
|
|
747
808
|
maxTurns?: number | null | undefined;
|
|
@@ -760,8 +821,8 @@ export declare const AgentConfigInput: z.ZodObject<{
|
|
|
760
821
|
runtime: "claude_code" | "cursor_local";
|
|
761
822
|
deckId?: string | undefined;
|
|
762
823
|
playbookId?: string | undefined;
|
|
763
|
-
planModel?: string | null | undefined;
|
|
764
824
|
executeModel?: string | null | undefined;
|
|
825
|
+
planModel?: string | null | undefined;
|
|
765
826
|
budget?: {
|
|
766
827
|
plan?: {
|
|
767
828
|
maxTurns?: number | null | undefined;
|
|
@@ -806,26 +867,26 @@ export declare const UpdatePlanInput: z.ZodObject<{
|
|
|
806
867
|
}, "strip", z.ZodTypeAny, {
|
|
807
868
|
approve: boolean;
|
|
808
869
|
planMarkdown: string;
|
|
809
|
-
planModel?: string | null | undefined;
|
|
810
870
|
executeModel?: string | null | undefined;
|
|
811
|
-
|
|
871
|
+
executeBudget?: {
|
|
812
872
|
maxTurns?: number | null | undefined;
|
|
813
873
|
maxBudgetUsd?: number | null | undefined;
|
|
814
874
|
} | null | undefined;
|
|
815
|
-
|
|
875
|
+
planModel?: string | null | undefined;
|
|
876
|
+
planBudget?: {
|
|
816
877
|
maxTurns?: number | null | undefined;
|
|
817
878
|
maxBudgetUsd?: number | null | undefined;
|
|
818
879
|
} | null | undefined;
|
|
819
880
|
}, {
|
|
820
881
|
planMarkdown: string;
|
|
821
|
-
approve?: boolean | undefined;
|
|
822
|
-
planModel?: string | null | undefined;
|
|
823
882
|
executeModel?: string | null | undefined;
|
|
824
|
-
|
|
883
|
+
executeBudget?: {
|
|
825
884
|
maxTurns?: number | null | undefined;
|
|
826
885
|
maxBudgetUsd?: number | null | undefined;
|
|
827
886
|
} | null | undefined;
|
|
828
|
-
|
|
887
|
+
approve?: boolean | undefined;
|
|
888
|
+
planModel?: string | null | undefined;
|
|
889
|
+
planBudget?: {
|
|
829
890
|
maxTurns?: number | null | undefined;
|
|
830
891
|
maxBudgetUsd?: number | null | undefined;
|
|
831
892
|
} | null | undefined;
|
|
@@ -872,14 +933,32 @@ export declare const RetryRunInput: z.ZodObject<{
|
|
|
872
933
|
/** @deprecated execution retry uses executeModel */
|
|
873
934
|
planModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
874
935
|
executeModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
936
|
+
executeBudget: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
937
|
+
maxTurns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
938
|
+
maxBudgetUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
939
|
+
}, "strip", z.ZodTypeAny, {
|
|
940
|
+
maxTurns?: number | null | undefined;
|
|
941
|
+
maxBudgetUsd?: number | null | undefined;
|
|
942
|
+
}, {
|
|
943
|
+
maxTurns?: number | null | undefined;
|
|
944
|
+
maxBudgetUsd?: number | null | undefined;
|
|
945
|
+
}>>>;
|
|
875
946
|
}, "strip", z.ZodTypeAny, {
|
|
876
947
|
feedback: string;
|
|
877
|
-
planModel?: string | null | undefined;
|
|
878
948
|
executeModel?: string | null | undefined;
|
|
949
|
+
executeBudget?: {
|
|
950
|
+
maxTurns?: number | null | undefined;
|
|
951
|
+
maxBudgetUsd?: number | null | undefined;
|
|
952
|
+
} | null | undefined;
|
|
953
|
+
planModel?: string | null | undefined;
|
|
879
954
|
}, {
|
|
880
955
|
feedback: string;
|
|
881
|
-
planModel?: string | null | undefined;
|
|
882
956
|
executeModel?: string | null | undefined;
|
|
957
|
+
executeBudget?: {
|
|
958
|
+
maxTurns?: number | null | undefined;
|
|
959
|
+
maxBudgetUsd?: number | null | undefined;
|
|
960
|
+
} | null | undefined;
|
|
961
|
+
planModel?: string | null | undefined;
|
|
883
962
|
}>;
|
|
884
963
|
export type RetryRunInput = z.infer<typeof RetryRunInput>;
|
|
885
964
|
export declare const LinearCandidate: z.ZodObject<{
|
|
@@ -1337,18 +1416,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1337
1416
|
playbookId: string | null;
|
|
1338
1417
|
createdAt: string;
|
|
1339
1418
|
updatedAt: string;
|
|
1340
|
-
title: string;
|
|
1341
1419
|
description: string | null;
|
|
1420
|
+
executeModel: string | null;
|
|
1421
|
+
title: string;
|
|
1342
1422
|
source: "manual" | "linear";
|
|
1343
1423
|
externalId: string | null;
|
|
1344
1424
|
externalLabel: string | null;
|
|
1345
|
-
taskCategory: "code" | "
|
|
1425
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1346
1426
|
repo: string | null;
|
|
1347
1427
|
artifactWorkspace: string | null;
|
|
1348
1428
|
agentId: string | null;
|
|
1349
1429
|
agentName: string | null;
|
|
1350
1430
|
planModel: string | null;
|
|
1351
|
-
executeModel: string | null;
|
|
1352
1431
|
lineageId: string | null;
|
|
1353
1432
|
acceptanceCriteria: string | null;
|
|
1354
1433
|
approvalGatesJson: string | null;
|
|
@@ -1362,18 +1441,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1362
1441
|
playbookId: string | null;
|
|
1363
1442
|
createdAt: string;
|
|
1364
1443
|
updatedAt: string;
|
|
1365
|
-
title: string;
|
|
1366
1444
|
description: string | null;
|
|
1445
|
+
executeModel: string | null;
|
|
1446
|
+
title: string;
|
|
1367
1447
|
source: "manual" | "linear";
|
|
1368
1448
|
externalId: string | null;
|
|
1369
1449
|
externalLabel: string | null;
|
|
1370
|
-
taskCategory: "code" | "
|
|
1450
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1371
1451
|
repo: string | null;
|
|
1372
1452
|
artifactWorkspace: string | null;
|
|
1373
1453
|
agentId: string | null;
|
|
1374
1454
|
agentName: string | null;
|
|
1375
1455
|
planModel: string | null;
|
|
1376
|
-
executeModel: string | null;
|
|
1377
1456
|
lineageId: string | null;
|
|
1378
1457
|
acceptanceCriteria: string | null;
|
|
1379
1458
|
approvalGatesJson: string | null;
|
|
@@ -1416,18 +1495,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1416
1495
|
playbookId: string | null;
|
|
1417
1496
|
createdAt: string;
|
|
1418
1497
|
updatedAt: string;
|
|
1419
|
-
title: string;
|
|
1420
1498
|
description: string | null;
|
|
1499
|
+
executeModel: string | null;
|
|
1500
|
+
title: string;
|
|
1421
1501
|
source: "manual" | "linear";
|
|
1422
1502
|
externalId: string | null;
|
|
1423
1503
|
externalLabel: string | null;
|
|
1424
|
-
taskCategory: "code" | "
|
|
1504
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1425
1505
|
repo: string | null;
|
|
1426
1506
|
artifactWorkspace: string | null;
|
|
1427
1507
|
agentId: string | null;
|
|
1428
1508
|
agentName: string | null;
|
|
1429
1509
|
planModel: string | null;
|
|
1430
|
-
executeModel: string | null;
|
|
1431
1510
|
lineageId: string | null;
|
|
1432
1511
|
acceptanceCriteria: string | null;
|
|
1433
1512
|
approvalGatesJson: string | null;
|
|
@@ -1441,18 +1520,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1441
1520
|
playbookId: string | null;
|
|
1442
1521
|
createdAt: string;
|
|
1443
1522
|
updatedAt: string;
|
|
1444
|
-
title: string;
|
|
1445
1523
|
description: string | null;
|
|
1524
|
+
executeModel: string | null;
|
|
1525
|
+
title: string;
|
|
1446
1526
|
source: "manual" | "linear";
|
|
1447
1527
|
externalId: string | null;
|
|
1448
1528
|
externalLabel: string | null;
|
|
1449
|
-
taskCategory: "code" | "
|
|
1529
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1450
1530
|
repo: string | null;
|
|
1451
1531
|
artifactWorkspace: string | null;
|
|
1452
1532
|
agentId: string | null;
|
|
1453
1533
|
agentName: string | null;
|
|
1454
1534
|
planModel: string | null;
|
|
1455
|
-
executeModel: string | null;
|
|
1456
1535
|
lineageId: string | null;
|
|
1457
1536
|
acceptanceCriteria: string | null;
|
|
1458
1537
|
approvalGatesJson: string | null;
|
|
@@ -1495,18 +1574,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1495
1574
|
playbookId: string | null;
|
|
1496
1575
|
createdAt: string;
|
|
1497
1576
|
updatedAt: string;
|
|
1498
|
-
title: string;
|
|
1499
1577
|
description: string | null;
|
|
1578
|
+
executeModel: string | null;
|
|
1579
|
+
title: string;
|
|
1500
1580
|
source: "manual" | "linear";
|
|
1501
1581
|
externalId: string | null;
|
|
1502
1582
|
externalLabel: string | null;
|
|
1503
|
-
taskCategory: "code" | "
|
|
1583
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1504
1584
|
repo: string | null;
|
|
1505
1585
|
artifactWorkspace: string | null;
|
|
1506
1586
|
agentId: string | null;
|
|
1507
1587
|
agentName: string | null;
|
|
1508
1588
|
planModel: string | null;
|
|
1509
|
-
executeModel: string | null;
|
|
1510
1589
|
lineageId: string | null;
|
|
1511
1590
|
acceptanceCriteria: string | null;
|
|
1512
1591
|
approvalGatesJson: string | null;
|
|
@@ -1520,18 +1599,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1520
1599
|
playbookId: string | null;
|
|
1521
1600
|
createdAt: string;
|
|
1522
1601
|
updatedAt: string;
|
|
1523
|
-
title: string;
|
|
1524
1602
|
description: string | null;
|
|
1603
|
+
executeModel: string | null;
|
|
1604
|
+
title: string;
|
|
1525
1605
|
source: "manual" | "linear";
|
|
1526
1606
|
externalId: string | null;
|
|
1527
1607
|
externalLabel: string | null;
|
|
1528
|
-
taskCategory: "code" | "
|
|
1608
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1529
1609
|
repo: string | null;
|
|
1530
1610
|
artifactWorkspace: string | null;
|
|
1531
1611
|
agentId: string | null;
|
|
1532
1612
|
agentName: string | null;
|
|
1533
1613
|
planModel: string | null;
|
|
1534
|
-
executeModel: string | null;
|
|
1535
1614
|
lineageId: string | null;
|
|
1536
1615
|
acceptanceCriteria: string | null;
|
|
1537
1616
|
approvalGatesJson: string | null;
|
|
@@ -1574,18 +1653,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1574
1653
|
playbookId: string | null;
|
|
1575
1654
|
createdAt: string;
|
|
1576
1655
|
updatedAt: string;
|
|
1577
|
-
title: string;
|
|
1578
1656
|
description: string | null;
|
|
1657
|
+
executeModel: string | null;
|
|
1658
|
+
title: string;
|
|
1579
1659
|
source: "manual" | "linear";
|
|
1580
1660
|
externalId: string | null;
|
|
1581
1661
|
externalLabel: string | null;
|
|
1582
|
-
taskCategory: "code" | "
|
|
1662
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1583
1663
|
repo: string | null;
|
|
1584
1664
|
artifactWorkspace: string | null;
|
|
1585
1665
|
agentId: string | null;
|
|
1586
1666
|
agentName: string | null;
|
|
1587
1667
|
planModel: string | null;
|
|
1588
|
-
executeModel: string | null;
|
|
1589
1668
|
lineageId: string | null;
|
|
1590
1669
|
acceptanceCriteria: string | null;
|
|
1591
1670
|
approvalGatesJson: string | null;
|
|
@@ -1599,18 +1678,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1599
1678
|
playbookId: string | null;
|
|
1600
1679
|
createdAt: string;
|
|
1601
1680
|
updatedAt: string;
|
|
1602
|
-
title: string;
|
|
1603
1681
|
description: string | null;
|
|
1682
|
+
executeModel: string | null;
|
|
1683
|
+
title: string;
|
|
1604
1684
|
source: "manual" | "linear";
|
|
1605
1685
|
externalId: string | null;
|
|
1606
1686
|
externalLabel: string | null;
|
|
1607
|
-
taskCategory: "code" | "
|
|
1687
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1608
1688
|
repo: string | null;
|
|
1609
1689
|
artifactWorkspace: string | null;
|
|
1610
1690
|
agentId: string | null;
|
|
1611
1691
|
agentName: string | null;
|
|
1612
1692
|
planModel: string | null;
|
|
1613
|
-
executeModel: string | null;
|
|
1614
1693
|
lineageId: string | null;
|
|
1615
1694
|
acceptanceCriteria: string | null;
|
|
1616
1695
|
approvalGatesJson: string | null;
|
|
@@ -1653,18 +1732,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1653
1732
|
playbookId: string | null;
|
|
1654
1733
|
createdAt: string;
|
|
1655
1734
|
updatedAt: string;
|
|
1656
|
-
title: string;
|
|
1657
1735
|
description: string | null;
|
|
1736
|
+
executeModel: string | null;
|
|
1737
|
+
title: string;
|
|
1658
1738
|
source: "manual" | "linear";
|
|
1659
1739
|
externalId: string | null;
|
|
1660
1740
|
externalLabel: string | null;
|
|
1661
|
-
taskCategory: "code" | "
|
|
1741
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1662
1742
|
repo: string | null;
|
|
1663
1743
|
artifactWorkspace: string | null;
|
|
1664
1744
|
agentId: string | null;
|
|
1665
1745
|
agentName: string | null;
|
|
1666
1746
|
planModel: string | null;
|
|
1667
|
-
executeModel: string | null;
|
|
1668
1747
|
lineageId: string | null;
|
|
1669
1748
|
acceptanceCriteria: string | null;
|
|
1670
1749
|
approvalGatesJson: string | null;
|
|
@@ -1678,18 +1757,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1678
1757
|
playbookId: string | null;
|
|
1679
1758
|
createdAt: string;
|
|
1680
1759
|
updatedAt: string;
|
|
1681
|
-
title: string;
|
|
1682
1760
|
description: string | null;
|
|
1761
|
+
executeModel: string | null;
|
|
1762
|
+
title: string;
|
|
1683
1763
|
source: "manual" | "linear";
|
|
1684
1764
|
externalId: string | null;
|
|
1685
1765
|
externalLabel: string | null;
|
|
1686
|
-
taskCategory: "code" | "
|
|
1766
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1687
1767
|
repo: string | null;
|
|
1688
1768
|
artifactWorkspace: string | null;
|
|
1689
1769
|
agentId: string | null;
|
|
1690
1770
|
agentName: string | null;
|
|
1691
1771
|
planModel: string | null;
|
|
1692
|
-
executeModel: string | null;
|
|
1693
1772
|
lineageId: string | null;
|
|
1694
1773
|
acceptanceCriteria: string | null;
|
|
1695
1774
|
approvalGatesJson: string | null;
|
|
@@ -1732,18 +1811,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1732
1811
|
playbookId: string | null;
|
|
1733
1812
|
createdAt: string;
|
|
1734
1813
|
updatedAt: string;
|
|
1735
|
-
title: string;
|
|
1736
1814
|
description: string | null;
|
|
1815
|
+
executeModel: string | null;
|
|
1816
|
+
title: string;
|
|
1737
1817
|
source: "manual" | "linear";
|
|
1738
1818
|
externalId: string | null;
|
|
1739
1819
|
externalLabel: string | null;
|
|
1740
|
-
taskCategory: "code" | "
|
|
1820
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1741
1821
|
repo: string | null;
|
|
1742
1822
|
artifactWorkspace: string | null;
|
|
1743
1823
|
agentId: string | null;
|
|
1744
1824
|
agentName: string | null;
|
|
1745
1825
|
planModel: string | null;
|
|
1746
|
-
executeModel: string | null;
|
|
1747
1826
|
lineageId: string | null;
|
|
1748
1827
|
acceptanceCriteria: string | null;
|
|
1749
1828
|
approvalGatesJson: string | null;
|
|
@@ -1757,18 +1836,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1757
1836
|
playbookId: string | null;
|
|
1758
1837
|
createdAt: string;
|
|
1759
1838
|
updatedAt: string;
|
|
1760
|
-
title: string;
|
|
1761
1839
|
description: string | null;
|
|
1840
|
+
executeModel: string | null;
|
|
1841
|
+
title: string;
|
|
1762
1842
|
source: "manual" | "linear";
|
|
1763
1843
|
externalId: string | null;
|
|
1764
1844
|
externalLabel: string | null;
|
|
1765
|
-
taskCategory: "code" | "
|
|
1845
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1766
1846
|
repo: string | null;
|
|
1767
1847
|
artifactWorkspace: string | null;
|
|
1768
1848
|
agentId: string | null;
|
|
1769
1849
|
agentName: string | null;
|
|
1770
1850
|
planModel: string | null;
|
|
1771
|
-
executeModel: string | null;
|
|
1772
1851
|
lineageId: string | null;
|
|
1773
1852
|
acceptanceCriteria: string | null;
|
|
1774
1853
|
approvalGatesJson: string | null;
|
|
@@ -1811,18 +1890,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1811
1890
|
playbookId: string | null;
|
|
1812
1891
|
createdAt: string;
|
|
1813
1892
|
updatedAt: string;
|
|
1814
|
-
title: string;
|
|
1815
1893
|
description: string | null;
|
|
1894
|
+
executeModel: string | null;
|
|
1895
|
+
title: string;
|
|
1816
1896
|
source: "manual" | "linear";
|
|
1817
1897
|
externalId: string | null;
|
|
1818
1898
|
externalLabel: string | null;
|
|
1819
|
-
taskCategory: "code" | "
|
|
1899
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1820
1900
|
repo: string | null;
|
|
1821
1901
|
artifactWorkspace: string | null;
|
|
1822
1902
|
agentId: string | null;
|
|
1823
1903
|
agentName: string | null;
|
|
1824
1904
|
planModel: string | null;
|
|
1825
|
-
executeModel: string | null;
|
|
1826
1905
|
lineageId: string | null;
|
|
1827
1906
|
acceptanceCriteria: string | null;
|
|
1828
1907
|
approvalGatesJson: string | null;
|
|
@@ -1836,23 +1915,106 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1836
1915
|
playbookId: string | null;
|
|
1837
1916
|
createdAt: string;
|
|
1838
1917
|
updatedAt: string;
|
|
1918
|
+
description: string | null;
|
|
1919
|
+
executeModel: string | null;
|
|
1839
1920
|
title: string;
|
|
1921
|
+
source: "manual" | "linear";
|
|
1922
|
+
externalId: string | null;
|
|
1923
|
+
externalLabel: string | null;
|
|
1924
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1925
|
+
repo: string | null;
|
|
1926
|
+
artifactWorkspace: string | null;
|
|
1927
|
+
agentId: string | null;
|
|
1928
|
+
agentName: string | null;
|
|
1929
|
+
planModel: string | null;
|
|
1930
|
+
lineageId: string | null;
|
|
1931
|
+
acceptanceCriteria: string | null;
|
|
1932
|
+
approvalGatesJson: string | null;
|
|
1933
|
+
budgetJson: string | null;
|
|
1934
|
+
}>, "many">;
|
|
1935
|
+
awaitingAnswerRuns: z.ZodArray<z.ZodObject<{
|
|
1936
|
+
id: z.ZodString;
|
|
1937
|
+
source: z.ZodEnum<["manual", "linear"]>;
|
|
1938
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
1939
|
+
/** Human-readable external id, e.g. ENG-123 for Linear */
|
|
1940
|
+
externalLabel: z.ZodNullable<z.ZodString>;
|
|
1941
|
+
taskCategory: z.ZodEnum<["code", "communication", "email", "research", "content", "other"]>;
|
|
1942
|
+
title: z.ZodString;
|
|
1943
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1944
|
+
repo: z.ZodNullable<z.ZodString>;
|
|
1945
|
+
artifactWorkspace: z.ZodNullable<z.ZodString>;
|
|
1946
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
1947
|
+
agentName: z.ZodNullable<z.ZodString>;
|
|
1948
|
+
deckId: z.ZodNullable<z.ZodString>;
|
|
1949
|
+
deckName: z.ZodNullable<z.ZodString>;
|
|
1950
|
+
playbookId: z.ZodNullable<z.ZodString>;
|
|
1951
|
+
runtime: z.ZodNullable<z.ZodEnum<["claude_code", "cursor_local"]>>;
|
|
1952
|
+
/** Task override for planning; null = agent default */
|
|
1953
|
+
planModel: z.ZodNullable<z.ZodString>;
|
|
1954
|
+
/** Task override for execution; null = agent default */
|
|
1955
|
+
executeModel: z.ZodNullable<z.ZodString>;
|
|
1956
|
+
status: z.ZodEnum<["queued", "plan_pending", "plan_approved", "running", "review", "done", "failed", "cancelled"]>;
|
|
1957
|
+
lineageId: z.ZodNullable<z.ZodString>;
|
|
1958
|
+
acceptanceCriteria: z.ZodNullable<z.ZodString>;
|
|
1959
|
+
approvalGatesJson: z.ZodNullable<z.ZodString>;
|
|
1960
|
+
budgetJson: z.ZodNullable<z.ZodString>;
|
|
1961
|
+
createdAt: z.ZodString;
|
|
1962
|
+
updatedAt: z.ZodString;
|
|
1963
|
+
}, "strip", z.ZodTypeAny, {
|
|
1964
|
+
status: "queued" | "plan_pending" | "plan_approved" | "running" | "review" | "done" | "failed" | "cancelled";
|
|
1965
|
+
id: string;
|
|
1966
|
+
runtime: "claude_code" | "cursor_local" | null;
|
|
1967
|
+
deckId: string | null;
|
|
1968
|
+
deckName: string | null;
|
|
1969
|
+
playbookId: string | null;
|
|
1970
|
+
createdAt: string;
|
|
1971
|
+
updatedAt: string;
|
|
1840
1972
|
description: string | null;
|
|
1973
|
+
executeModel: string | null;
|
|
1974
|
+
title: string;
|
|
1841
1975
|
source: "manual" | "linear";
|
|
1842
1976
|
externalId: string | null;
|
|
1843
1977
|
externalLabel: string | null;
|
|
1844
|
-
taskCategory: "code" | "
|
|
1978
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1845
1979
|
repo: string | null;
|
|
1846
1980
|
artifactWorkspace: string | null;
|
|
1847
1981
|
agentId: string | null;
|
|
1848
1982
|
agentName: string | null;
|
|
1849
1983
|
planModel: string | null;
|
|
1984
|
+
lineageId: string | null;
|
|
1985
|
+
acceptanceCriteria: string | null;
|
|
1986
|
+
approvalGatesJson: string | null;
|
|
1987
|
+
budgetJson: string | null;
|
|
1988
|
+
}, {
|
|
1989
|
+
status: "queued" | "plan_pending" | "plan_approved" | "running" | "review" | "done" | "failed" | "cancelled";
|
|
1990
|
+
id: string;
|
|
1991
|
+
runtime: "claude_code" | "cursor_local" | null;
|
|
1992
|
+
deckId: string | null;
|
|
1993
|
+
deckName: string | null;
|
|
1994
|
+
playbookId: string | null;
|
|
1995
|
+
createdAt: string;
|
|
1996
|
+
updatedAt: string;
|
|
1997
|
+
description: string | null;
|
|
1850
1998
|
executeModel: string | null;
|
|
1999
|
+
title: string;
|
|
2000
|
+
source: "manual" | "linear";
|
|
2001
|
+
externalId: string | null;
|
|
2002
|
+
externalLabel: string | null;
|
|
2003
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2004
|
+
repo: string | null;
|
|
2005
|
+
artifactWorkspace: string | null;
|
|
2006
|
+
agentId: string | null;
|
|
2007
|
+
agentName: string | null;
|
|
2008
|
+
planModel: string | null;
|
|
1851
2009
|
lineageId: string | null;
|
|
1852
2010
|
acceptanceCriteria: string | null;
|
|
1853
2011
|
approvalGatesJson: string | null;
|
|
1854
2012
|
budgetJson: string | null;
|
|
1855
2013
|
}>, "many">;
|
|
2014
|
+
openQuestionCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2015
|
+
pendingSendCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2016
|
+
sentRunIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2017
|
+
autoApprovedRunIds: z.ZodArray<z.ZodString, "many">;
|
|
1856
2018
|
runs: z.ZodArray<z.ZodObject<{
|
|
1857
2019
|
id: z.ZodString;
|
|
1858
2020
|
source: z.ZodEnum<["manual", "linear"]>;
|
|
@@ -1890,18 +2052,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1890
2052
|
playbookId: string | null;
|
|
1891
2053
|
createdAt: string;
|
|
1892
2054
|
updatedAt: string;
|
|
1893
|
-
title: string;
|
|
1894
2055
|
description: string | null;
|
|
2056
|
+
executeModel: string | null;
|
|
2057
|
+
title: string;
|
|
1895
2058
|
source: "manual" | "linear";
|
|
1896
2059
|
externalId: string | null;
|
|
1897
2060
|
externalLabel: string | null;
|
|
1898
|
-
taskCategory: "code" | "
|
|
2061
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1899
2062
|
repo: string | null;
|
|
1900
2063
|
artifactWorkspace: string | null;
|
|
1901
2064
|
agentId: string | null;
|
|
1902
2065
|
agentName: string | null;
|
|
1903
2066
|
planModel: string | null;
|
|
1904
|
-
executeModel: string | null;
|
|
1905
2067
|
lineageId: string | null;
|
|
1906
2068
|
acceptanceCriteria: string | null;
|
|
1907
2069
|
approvalGatesJson: string | null;
|
|
@@ -1915,18 +2077,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
1915
2077
|
playbookId: string | null;
|
|
1916
2078
|
createdAt: string;
|
|
1917
2079
|
updatedAt: string;
|
|
1918
|
-
title: string;
|
|
1919
2080
|
description: string | null;
|
|
2081
|
+
executeModel: string | null;
|
|
2082
|
+
title: string;
|
|
1920
2083
|
source: "manual" | "linear";
|
|
1921
2084
|
externalId: string | null;
|
|
1922
2085
|
externalLabel: string | null;
|
|
1923
|
-
taskCategory: "code" | "
|
|
2086
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
1924
2087
|
repo: string | null;
|
|
1925
2088
|
artifactWorkspace: string | null;
|
|
1926
2089
|
agentId: string | null;
|
|
1927
2090
|
agentName: string | null;
|
|
1928
2091
|
planModel: string | null;
|
|
1929
|
-
executeModel: string | null;
|
|
1930
2092
|
lineageId: string | null;
|
|
1931
2093
|
acceptanceCriteria: string | null;
|
|
1932
2094
|
approvalGatesJson: string | null;
|
|
@@ -2036,18 +2198,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2036
2198
|
playbookId: string | null;
|
|
2037
2199
|
createdAt: string;
|
|
2038
2200
|
updatedAt: string;
|
|
2039
|
-
title: string;
|
|
2040
2201
|
description: string | null;
|
|
2202
|
+
executeModel: string | null;
|
|
2203
|
+
title: string;
|
|
2041
2204
|
source: "manual" | "linear";
|
|
2042
2205
|
externalId: string | null;
|
|
2043
2206
|
externalLabel: string | null;
|
|
2044
|
-
taskCategory: "code" | "
|
|
2207
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2045
2208
|
repo: string | null;
|
|
2046
2209
|
artifactWorkspace: string | null;
|
|
2047
2210
|
agentId: string | null;
|
|
2048
2211
|
agentName: string | null;
|
|
2049
2212
|
planModel: string | null;
|
|
2050
|
-
executeModel: string | null;
|
|
2051
2213
|
lineageId: string | null;
|
|
2052
2214
|
acceptanceCriteria: string | null;
|
|
2053
2215
|
approvalGatesJson: string | null;
|
|
@@ -2062,18 +2224,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2062
2224
|
playbookId: string | null;
|
|
2063
2225
|
createdAt: string;
|
|
2064
2226
|
updatedAt: string;
|
|
2065
|
-
title: string;
|
|
2066
2227
|
description: string | null;
|
|
2228
|
+
executeModel: string | null;
|
|
2229
|
+
title: string;
|
|
2067
2230
|
source: "manual" | "linear";
|
|
2068
2231
|
externalId: string | null;
|
|
2069
2232
|
externalLabel: string | null;
|
|
2070
|
-
taskCategory: "code" | "
|
|
2233
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2071
2234
|
repo: string | null;
|
|
2072
2235
|
artifactWorkspace: string | null;
|
|
2073
2236
|
agentId: string | null;
|
|
2074
2237
|
agentName: string | null;
|
|
2075
2238
|
planModel: string | null;
|
|
2076
|
-
executeModel: string | null;
|
|
2077
2239
|
lineageId: string | null;
|
|
2078
2240
|
acceptanceCriteria: string | null;
|
|
2079
2241
|
approvalGatesJson: string | null;
|
|
@@ -2088,18 +2250,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2088
2250
|
playbookId: string | null;
|
|
2089
2251
|
createdAt: string;
|
|
2090
2252
|
updatedAt: string;
|
|
2091
|
-
title: string;
|
|
2092
2253
|
description: string | null;
|
|
2254
|
+
executeModel: string | null;
|
|
2255
|
+
title: string;
|
|
2093
2256
|
source: "manual" | "linear";
|
|
2094
2257
|
externalId: string | null;
|
|
2095
2258
|
externalLabel: string | null;
|
|
2096
|
-
taskCategory: "code" | "
|
|
2259
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2097
2260
|
repo: string | null;
|
|
2098
2261
|
artifactWorkspace: string | null;
|
|
2099
2262
|
agentId: string | null;
|
|
2100
2263
|
agentName: string | null;
|
|
2101
2264
|
planModel: string | null;
|
|
2102
|
-
executeModel: string | null;
|
|
2103
2265
|
lineageId: string | null;
|
|
2104
2266
|
acceptanceCriteria: string | null;
|
|
2105
2267
|
approvalGatesJson: string | null;
|
|
@@ -2114,18 +2276,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2114
2276
|
playbookId: string | null;
|
|
2115
2277
|
createdAt: string;
|
|
2116
2278
|
updatedAt: string;
|
|
2117
|
-
title: string;
|
|
2118
2279
|
description: string | null;
|
|
2280
|
+
executeModel: string | null;
|
|
2281
|
+
title: string;
|
|
2119
2282
|
source: "manual" | "linear";
|
|
2120
2283
|
externalId: string | null;
|
|
2121
2284
|
externalLabel: string | null;
|
|
2122
|
-
taskCategory: "code" | "
|
|
2285
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2123
2286
|
repo: string | null;
|
|
2124
2287
|
artifactWorkspace: string | null;
|
|
2125
2288
|
agentId: string | null;
|
|
2126
2289
|
agentName: string | null;
|
|
2127
2290
|
planModel: string | null;
|
|
2128
|
-
executeModel: string | null;
|
|
2129
2291
|
lineageId: string | null;
|
|
2130
2292
|
acceptanceCriteria: string | null;
|
|
2131
2293
|
approvalGatesJson: string | null;
|
|
@@ -2140,18 +2302,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2140
2302
|
playbookId: string | null;
|
|
2141
2303
|
createdAt: string;
|
|
2142
2304
|
updatedAt: string;
|
|
2143
|
-
title: string;
|
|
2144
2305
|
description: string | null;
|
|
2306
|
+
executeModel: string | null;
|
|
2307
|
+
title: string;
|
|
2145
2308
|
source: "manual" | "linear";
|
|
2146
2309
|
externalId: string | null;
|
|
2147
2310
|
externalLabel: string | null;
|
|
2148
|
-
taskCategory: "code" | "
|
|
2311
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2149
2312
|
repo: string | null;
|
|
2150
2313
|
artifactWorkspace: string | null;
|
|
2151
2314
|
agentId: string | null;
|
|
2152
2315
|
agentName: string | null;
|
|
2153
2316
|
planModel: string | null;
|
|
2154
|
-
executeModel: string | null;
|
|
2155
2317
|
lineageId: string | null;
|
|
2156
2318
|
acceptanceCriteria: string | null;
|
|
2157
2319
|
approvalGatesJson: string | null;
|
|
@@ -2166,18 +2328,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2166
2328
|
playbookId: string | null;
|
|
2167
2329
|
createdAt: string;
|
|
2168
2330
|
updatedAt: string;
|
|
2169
|
-
title: string;
|
|
2170
2331
|
description: string | null;
|
|
2332
|
+
executeModel: string | null;
|
|
2333
|
+
title: string;
|
|
2171
2334
|
source: "manual" | "linear";
|
|
2172
2335
|
externalId: string | null;
|
|
2173
2336
|
externalLabel: string | null;
|
|
2174
|
-
taskCategory: "code" | "
|
|
2337
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2175
2338
|
repo: string | null;
|
|
2176
2339
|
artifactWorkspace: string | null;
|
|
2177
2340
|
agentId: string | null;
|
|
2178
2341
|
agentName: string | null;
|
|
2179
2342
|
planModel: string | null;
|
|
2180
|
-
executeModel: string | null;
|
|
2181
2343
|
lineageId: string | null;
|
|
2182
2344
|
acceptanceCriteria: string | null;
|
|
2183
2345
|
approvalGatesJson: string | null;
|
|
@@ -2192,23 +2354,52 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2192
2354
|
playbookId: string | null;
|
|
2193
2355
|
createdAt: string;
|
|
2194
2356
|
updatedAt: string;
|
|
2195
|
-
title: string;
|
|
2196
2357
|
description: string | null;
|
|
2358
|
+
executeModel: string | null;
|
|
2359
|
+
title: string;
|
|
2197
2360
|
source: "manual" | "linear";
|
|
2198
2361
|
externalId: string | null;
|
|
2199
2362
|
externalLabel: string | null;
|
|
2200
|
-
taskCategory: "code" | "
|
|
2363
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2201
2364
|
repo: string | null;
|
|
2202
2365
|
artifactWorkspace: string | null;
|
|
2203
2366
|
agentId: string | null;
|
|
2204
2367
|
agentName: string | null;
|
|
2205
2368
|
planModel: string | null;
|
|
2369
|
+
lineageId: string | null;
|
|
2370
|
+
acceptanceCriteria: string | null;
|
|
2371
|
+
approvalGatesJson: string | null;
|
|
2372
|
+
budgetJson: string | null;
|
|
2373
|
+
}[];
|
|
2374
|
+
awaitingAnswerRuns: {
|
|
2375
|
+
status: "queued" | "plan_pending" | "plan_approved" | "running" | "review" | "done" | "failed" | "cancelled";
|
|
2376
|
+
id: string;
|
|
2377
|
+
runtime: "claude_code" | "cursor_local" | null;
|
|
2378
|
+
deckId: string | null;
|
|
2379
|
+
deckName: string | null;
|
|
2380
|
+
playbookId: string | null;
|
|
2381
|
+
createdAt: string;
|
|
2382
|
+
updatedAt: string;
|
|
2383
|
+
description: string | null;
|
|
2206
2384
|
executeModel: string | null;
|
|
2385
|
+
title: string;
|
|
2386
|
+
source: "manual" | "linear";
|
|
2387
|
+
externalId: string | null;
|
|
2388
|
+
externalLabel: string | null;
|
|
2389
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2390
|
+
repo: string | null;
|
|
2391
|
+
artifactWorkspace: string | null;
|
|
2392
|
+
agentId: string | null;
|
|
2393
|
+
agentName: string | null;
|
|
2394
|
+
planModel: string | null;
|
|
2207
2395
|
lineageId: string | null;
|
|
2208
2396
|
acceptanceCriteria: string | null;
|
|
2209
2397
|
approvalGatesJson: string | null;
|
|
2210
2398
|
budgetJson: string | null;
|
|
2211
2399
|
}[];
|
|
2400
|
+
openQuestionCounts: Record<string, number>;
|
|
2401
|
+
pendingSendCounts: Record<string, number>;
|
|
2402
|
+
autoApprovedRunIds: string[];
|
|
2212
2403
|
runs: {
|
|
2213
2404
|
status: "queued" | "plan_pending" | "plan_approved" | "running" | "review" | "done" | "failed" | "cancelled";
|
|
2214
2405
|
id: string;
|
|
@@ -2218,18 +2409,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2218
2409
|
playbookId: string | null;
|
|
2219
2410
|
createdAt: string;
|
|
2220
2411
|
updatedAt: string;
|
|
2221
|
-
title: string;
|
|
2222
2412
|
description: string | null;
|
|
2413
|
+
executeModel: string | null;
|
|
2414
|
+
title: string;
|
|
2223
2415
|
source: "manual" | "linear";
|
|
2224
2416
|
externalId: string | null;
|
|
2225
2417
|
externalLabel: string | null;
|
|
2226
|
-
taskCategory: "code" | "
|
|
2418
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2227
2419
|
repo: string | null;
|
|
2228
2420
|
artifactWorkspace: string | null;
|
|
2229
2421
|
agentId: string | null;
|
|
2230
2422
|
agentName: string | null;
|
|
2231
2423
|
planModel: string | null;
|
|
2232
|
-
executeModel: string | null;
|
|
2233
2424
|
lineageId: string | null;
|
|
2234
2425
|
acceptanceCriteria: string | null;
|
|
2235
2426
|
approvalGatesJson: string | null;
|
|
@@ -2237,6 +2428,7 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2237
2428
|
}[];
|
|
2238
2429
|
agentDeckOnline: boolean;
|
|
2239
2430
|
agentIssueCount: number;
|
|
2431
|
+
sentRunIds?: string[] | undefined;
|
|
2240
2432
|
}, {
|
|
2241
2433
|
agents: {
|
|
2242
2434
|
issues: {
|
|
@@ -2271,18 +2463,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2271
2463
|
playbookId: string | null;
|
|
2272
2464
|
createdAt: string;
|
|
2273
2465
|
updatedAt: string;
|
|
2274
|
-
title: string;
|
|
2275
2466
|
description: string | null;
|
|
2467
|
+
executeModel: string | null;
|
|
2468
|
+
title: string;
|
|
2276
2469
|
source: "manual" | "linear";
|
|
2277
2470
|
externalId: string | null;
|
|
2278
2471
|
externalLabel: string | null;
|
|
2279
|
-
taskCategory: "code" | "
|
|
2472
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2280
2473
|
repo: string | null;
|
|
2281
2474
|
artifactWorkspace: string | null;
|
|
2282
2475
|
agentId: string | null;
|
|
2283
2476
|
agentName: string | null;
|
|
2284
2477
|
planModel: string | null;
|
|
2285
|
-
executeModel: string | null;
|
|
2286
2478
|
lineageId: string | null;
|
|
2287
2479
|
acceptanceCriteria: string | null;
|
|
2288
2480
|
approvalGatesJson: string | null;
|
|
@@ -2297,18 +2489,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2297
2489
|
playbookId: string | null;
|
|
2298
2490
|
createdAt: string;
|
|
2299
2491
|
updatedAt: string;
|
|
2300
|
-
title: string;
|
|
2301
2492
|
description: string | null;
|
|
2493
|
+
executeModel: string | null;
|
|
2494
|
+
title: string;
|
|
2302
2495
|
source: "manual" | "linear";
|
|
2303
2496
|
externalId: string | null;
|
|
2304
2497
|
externalLabel: string | null;
|
|
2305
|
-
taskCategory: "code" | "
|
|
2498
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2306
2499
|
repo: string | null;
|
|
2307
2500
|
artifactWorkspace: string | null;
|
|
2308
2501
|
agentId: string | null;
|
|
2309
2502
|
agentName: string | null;
|
|
2310
2503
|
planModel: string | null;
|
|
2311
|
-
executeModel: string | null;
|
|
2312
2504
|
lineageId: string | null;
|
|
2313
2505
|
acceptanceCriteria: string | null;
|
|
2314
2506
|
approvalGatesJson: string | null;
|
|
@@ -2323,18 +2515,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2323
2515
|
playbookId: string | null;
|
|
2324
2516
|
createdAt: string;
|
|
2325
2517
|
updatedAt: string;
|
|
2326
|
-
title: string;
|
|
2327
2518
|
description: string | null;
|
|
2519
|
+
executeModel: string | null;
|
|
2520
|
+
title: string;
|
|
2328
2521
|
source: "manual" | "linear";
|
|
2329
2522
|
externalId: string | null;
|
|
2330
2523
|
externalLabel: string | null;
|
|
2331
|
-
taskCategory: "code" | "
|
|
2524
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2332
2525
|
repo: string | null;
|
|
2333
2526
|
artifactWorkspace: string | null;
|
|
2334
2527
|
agentId: string | null;
|
|
2335
2528
|
agentName: string | null;
|
|
2336
2529
|
planModel: string | null;
|
|
2337
|
-
executeModel: string | null;
|
|
2338
2530
|
lineageId: string | null;
|
|
2339
2531
|
acceptanceCriteria: string | null;
|
|
2340
2532
|
approvalGatesJson: string | null;
|
|
@@ -2349,18 +2541,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2349
2541
|
playbookId: string | null;
|
|
2350
2542
|
createdAt: string;
|
|
2351
2543
|
updatedAt: string;
|
|
2352
|
-
title: string;
|
|
2353
2544
|
description: string | null;
|
|
2545
|
+
executeModel: string | null;
|
|
2546
|
+
title: string;
|
|
2354
2547
|
source: "manual" | "linear";
|
|
2355
2548
|
externalId: string | null;
|
|
2356
2549
|
externalLabel: string | null;
|
|
2357
|
-
taskCategory: "code" | "
|
|
2550
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2358
2551
|
repo: string | null;
|
|
2359
2552
|
artifactWorkspace: string | null;
|
|
2360
2553
|
agentId: string | null;
|
|
2361
2554
|
agentName: string | null;
|
|
2362
2555
|
planModel: string | null;
|
|
2363
|
-
executeModel: string | null;
|
|
2364
2556
|
lineageId: string | null;
|
|
2365
2557
|
acceptanceCriteria: string | null;
|
|
2366
2558
|
approvalGatesJson: string | null;
|
|
@@ -2375,18 +2567,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2375
2567
|
playbookId: string | null;
|
|
2376
2568
|
createdAt: string;
|
|
2377
2569
|
updatedAt: string;
|
|
2378
|
-
title: string;
|
|
2379
2570
|
description: string | null;
|
|
2571
|
+
executeModel: string | null;
|
|
2572
|
+
title: string;
|
|
2380
2573
|
source: "manual" | "linear";
|
|
2381
2574
|
externalId: string | null;
|
|
2382
2575
|
externalLabel: string | null;
|
|
2383
|
-
taskCategory: "code" | "
|
|
2576
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2384
2577
|
repo: string | null;
|
|
2385
2578
|
artifactWorkspace: string | null;
|
|
2386
2579
|
agentId: string | null;
|
|
2387
2580
|
agentName: string | null;
|
|
2388
2581
|
planModel: string | null;
|
|
2389
|
-
executeModel: string | null;
|
|
2390
2582
|
lineageId: string | null;
|
|
2391
2583
|
acceptanceCriteria: string | null;
|
|
2392
2584
|
approvalGatesJson: string | null;
|
|
@@ -2401,18 +2593,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2401
2593
|
playbookId: string | null;
|
|
2402
2594
|
createdAt: string;
|
|
2403
2595
|
updatedAt: string;
|
|
2404
|
-
title: string;
|
|
2405
2596
|
description: string | null;
|
|
2597
|
+
executeModel: string | null;
|
|
2598
|
+
title: string;
|
|
2406
2599
|
source: "manual" | "linear";
|
|
2407
2600
|
externalId: string | null;
|
|
2408
2601
|
externalLabel: string | null;
|
|
2409
|
-
taskCategory: "code" | "
|
|
2602
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2410
2603
|
repo: string | null;
|
|
2411
2604
|
artifactWorkspace: string | null;
|
|
2412
2605
|
agentId: string | null;
|
|
2413
2606
|
agentName: string | null;
|
|
2414
2607
|
planModel: string | null;
|
|
2415
|
-
executeModel: string | null;
|
|
2416
2608
|
lineageId: string | null;
|
|
2417
2609
|
acceptanceCriteria: string | null;
|
|
2418
2610
|
approvalGatesJson: string | null;
|
|
@@ -2427,23 +2619,52 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2427
2619
|
playbookId: string | null;
|
|
2428
2620
|
createdAt: string;
|
|
2429
2621
|
updatedAt: string;
|
|
2430
|
-
title: string;
|
|
2431
2622
|
description: string | null;
|
|
2623
|
+
executeModel: string | null;
|
|
2624
|
+
title: string;
|
|
2432
2625
|
source: "manual" | "linear";
|
|
2433
2626
|
externalId: string | null;
|
|
2434
2627
|
externalLabel: string | null;
|
|
2435
|
-
taskCategory: "code" | "
|
|
2628
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2436
2629
|
repo: string | null;
|
|
2437
2630
|
artifactWorkspace: string | null;
|
|
2438
2631
|
agentId: string | null;
|
|
2439
2632
|
agentName: string | null;
|
|
2440
2633
|
planModel: string | null;
|
|
2634
|
+
lineageId: string | null;
|
|
2635
|
+
acceptanceCriteria: string | null;
|
|
2636
|
+
approvalGatesJson: string | null;
|
|
2637
|
+
budgetJson: string | null;
|
|
2638
|
+
}[];
|
|
2639
|
+
awaitingAnswerRuns: {
|
|
2640
|
+
status: "queued" | "plan_pending" | "plan_approved" | "running" | "review" | "done" | "failed" | "cancelled";
|
|
2641
|
+
id: string;
|
|
2642
|
+
runtime: "claude_code" | "cursor_local" | null;
|
|
2643
|
+
deckId: string | null;
|
|
2644
|
+
deckName: string | null;
|
|
2645
|
+
playbookId: string | null;
|
|
2646
|
+
createdAt: string;
|
|
2647
|
+
updatedAt: string;
|
|
2648
|
+
description: string | null;
|
|
2441
2649
|
executeModel: string | null;
|
|
2650
|
+
title: string;
|
|
2651
|
+
source: "manual" | "linear";
|
|
2652
|
+
externalId: string | null;
|
|
2653
|
+
externalLabel: string | null;
|
|
2654
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2655
|
+
repo: string | null;
|
|
2656
|
+
artifactWorkspace: string | null;
|
|
2657
|
+
agentId: string | null;
|
|
2658
|
+
agentName: string | null;
|
|
2659
|
+
planModel: string | null;
|
|
2442
2660
|
lineageId: string | null;
|
|
2443
2661
|
acceptanceCriteria: string | null;
|
|
2444
2662
|
approvalGatesJson: string | null;
|
|
2445
2663
|
budgetJson: string | null;
|
|
2446
2664
|
}[];
|
|
2665
|
+
openQuestionCounts: Record<string, number>;
|
|
2666
|
+
pendingSendCounts: Record<string, number>;
|
|
2667
|
+
autoApprovedRunIds: string[];
|
|
2447
2668
|
runs: {
|
|
2448
2669
|
status: "queued" | "plan_pending" | "plan_approved" | "running" | "review" | "done" | "failed" | "cancelled";
|
|
2449
2670
|
id: string;
|
|
@@ -2453,18 +2674,18 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2453
2674
|
playbookId: string | null;
|
|
2454
2675
|
createdAt: string;
|
|
2455
2676
|
updatedAt: string;
|
|
2456
|
-
title: string;
|
|
2457
2677
|
description: string | null;
|
|
2678
|
+
executeModel: string | null;
|
|
2679
|
+
title: string;
|
|
2458
2680
|
source: "manual" | "linear";
|
|
2459
2681
|
externalId: string | null;
|
|
2460
2682
|
externalLabel: string | null;
|
|
2461
|
-
taskCategory: "code" | "
|
|
2683
|
+
taskCategory: "code" | "email" | "communication" | "research" | "content" | "other";
|
|
2462
2684
|
repo: string | null;
|
|
2463
2685
|
artifactWorkspace: string | null;
|
|
2464
2686
|
agentId: string | null;
|
|
2465
2687
|
agentName: string | null;
|
|
2466
2688
|
planModel: string | null;
|
|
2467
|
-
executeModel: string | null;
|
|
2468
2689
|
lineageId: string | null;
|
|
2469
2690
|
acceptanceCriteria: string | null;
|
|
2470
2691
|
approvalGatesJson: string | null;
|
|
@@ -2472,6 +2693,7 @@ export declare const QueueSnapshot: z.ZodObject<{
|
|
|
2472
2693
|
}[];
|
|
2473
2694
|
agentDeckOnline: boolean;
|
|
2474
2695
|
agentIssueCount: number;
|
|
2696
|
+
sentRunIds?: string[] | undefined;
|
|
2475
2697
|
}>;
|
|
2476
2698
|
export type QueueSnapshot = z.infer<typeof QueueSnapshot>;
|
|
2477
2699
|
export declare const VALID_TRANSITIONS: Record<RunStatus, RunStatus[]>;
|