@claudexor/schema 3.10.5 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-capabilities.d.ts +24 -0
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +5 -0
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/attempt-execution.d.ts +112 -0
- package/dist/attempt-execution.d.ts.map +1 -0
- package/dist/attempt-execution.js +15 -0
- package/dist/attempt-execution.js.map +1 -0
- package/dist/budget.d.ts +76 -0
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +12 -0
- package/dist/budget.js.map +1 -1
- package/dist/control-harness-list.d.ts +18 -0
- package/dist/control-harness-list.d.ts.map +1 -1
- package/dist/control-harness-models.d.ts +1042 -0
- package/dist/control-harness-models.d.ts.map +1 -0
- package/dist/control-harness-models.js +47 -0
- package/dist/control-harness-models.js.map +1 -0
- package/dist/control-operation-responses.d.ts +73 -21
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +6 -0
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +270 -85
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +12 -1
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-execution.d.ts +6 -0
- package/dist/control-run-execution.d.ts.map +1 -1
- package/dist/control-run-execution.js +6 -0
- package/dist/control-run-execution.js.map +1 -1
- package/dist/control-thread-apply.d.ts +12 -0
- package/dist/control-thread-apply.d.ts.map +1 -1
- package/dist/control.d.ts +181 -146
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +25 -33
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +36 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/decision.d.ts +16 -8
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +5 -0
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +8 -0
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +1 -0
- package/dist/delivery.js.map +1 -1
- package/dist/events.d.ts +20 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +23 -1
- package/dist/events.js.map +1 -1
- package/dist/files-manifest.d.ts +501 -0
- package/dist/files-manifest.d.ts.map +1 -0
- package/dist/files-manifest.js +77 -0
- package/dist/files-manifest.js.map +1 -0
- package/dist/harness-model.d.ts +86 -0
- package/dist/harness-model.d.ts.map +1 -0
- package/dist/harness-model.js +34 -0
- package/dist/harness-model.js.map +1 -0
- package/dist/harness.d.ts +183 -27
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +19 -31
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +379 -56
- package/dist/mcp-run-result.d.ts.map +1 -1
- package/dist/mcp-run-result.js +3 -0
- package/dist/mcp-run-result.js.map +1 -1
- package/dist/model-operation.d.ts +1371 -0
- package/dist/model-operation.d.ts.map +1 -1
- package/dist/model-operation.js +36 -0
- package/dist/model-operation.js.map +1 -1
- package/dist/processing.d.ts +94 -0
- package/dist/processing.d.ts.map +1 -0
- package/dist/processing.js +45 -0
- package/dist/processing.js.map +1 -0
- package/dist/readiness.d.ts +14 -0
- package/dist/readiness.d.ts.map +1 -1
- package/dist/run-facts.d.ts +28 -28
- package/dist/run-facts.js +4 -4
- package/dist/run-facts.js.map +1 -1
- package/dist/run-strategy.d.ts +1 -0
- package/dist/run-strategy.d.ts.map +1 -1
- package/dist/run-strategy.js +2 -0
- package/dist/run-strategy.js.map +1 -1
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +3 -1
- package/dist/status-projection.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +22 -1
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +9 -0
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +2 -0
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +263 -41
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +5 -8
- package/dist/telemetry.js.map +1 -1
- package/dist/workproduct.d.ts +4 -4
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js +4 -4
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +14 -11
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +14 -9
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +25 -0
- package/generated/AttemptExecutionEvidence.schema.json +187 -0
- package/generated/BudgetLease.schema.json +39 -0
- package/generated/ControlApplyCheckRequest.schema.json +7 -0
- package/generated/ControlApplyRequest.schema.json +7 -0
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +25 -0
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +25 -0
- package/generated/ControlDeliveryResponse.schema.json +10 -0
- package/generated/ControlHarnessAccountCatalog.schema.json +208 -0
- package/generated/ControlHarnessAccountModelsResponse.schema.json +320 -0
- package/generated/ControlHarnessListResponse.schema.json +25 -0
- package/generated/ControlHarnessModelsQueryResponse.schema.json +347 -0
- package/generated/ControlHarnessModelsResponse.schema.json +89 -0
- package/generated/ControlModelAccountCatalogResponse.schema.json +339 -0
- package/generated/ControlModelCatalogQueryResponse.schema.json +346 -0
- package/generated/ControlModelCatalogResponse.schema.json +86 -0
- package/generated/ControlModelOperationDetail.schema.json +39 -0
- package/generated/ControlModelSourcesAccountsResponse.schema.json +61 -0
- package/generated/ControlModelSourcesQueryResponse.schema.json +98 -0
- package/generated/ControlRunAgainDraft.schema.json +29 -0
- package/generated/ControlRunDecisionRequest.schema.json +4 -3
- package/generated/ControlRunDecisionResponse.schema.json +2 -1
- package/generated/ControlRunDetail.schema.json +234 -28
- package/generated/ControlRunListResponse.schema.json +18 -4
- package/generated/ControlRunStartRequest.schema.json +29 -0
- package/generated/ControlRunSummary.schema.json +18 -4
- package/generated/ControlThreadApplyResponse.schema.json +10 -0
- package/generated/ControlThreadDetail.schema.json +9 -4
- package/generated/ControlThreadTurnRequest.schema.json +45 -0
- package/generated/DecisionRecord.schema.json +8 -1
- package/generated/HarnessEvent.schema.json +146 -0
- package/generated/HarnessManifest.schema.json +25 -0
- package/generated/HarnessModel.schema.json +89 -0
- package/generated/HarnessStatusDto.schema.json +25 -0
- package/generated/JournaledRunCreatedPayload.schema.json +37 -0
- package/generated/McpRunHandleResult.schema.json +205 -9
- package/generated/McpRunToolResult.schema.json +196 -9
- package/generated/ModelCallRequest.schema.json +9 -0
- package/generated/ModelCallResult.schema.json +124 -0
- package/generated/ProcessingCapability.schema.json +95 -0
- package/generated/ProcessingCostBasis.schema.json +45 -0
- package/generated/ProcessingPreference.schema.json +15 -0
- package/generated/ProcessingReceipt.schema.json +94 -0
- package/generated/RunFacts.schema.json +6 -1
- package/generated/RunTelemetry.schema.json +168 -1
- package/generated/TaskContract.schema.json +9 -0
- package/generated/UsageCostBasis.schema.json +31 -0
- package/generated/UsageCostSummary.schema.json +44 -0
- package/generated/WorkProduct.schema.json +4 -3
- package/generated/WorkspaceEnvelope.schema.json +25 -5
- package/generated/WorkspaceFilesManifest.schema.json +160 -0
- package/generated/WorkspaceKind.schema.json +13 -0
- package/package.json +2 -2
package/dist/control.d.ts
CHANGED
|
@@ -11,16 +11,19 @@ export declare const ControlReviewerPanelEntry: z.ZodObject<{
|
|
|
11
11
|
/** Optional per-reviewer effort hint, passed to that harness only. */
|
|
12
12
|
effort: z.ZodOptional<z.ZodString>;
|
|
13
13
|
credentialProfileId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
14
15
|
}, "strict", z.ZodTypeAny, {
|
|
15
16
|
harness: string;
|
|
16
17
|
model?: string | undefined;
|
|
17
18
|
effort?: string | undefined;
|
|
18
19
|
credentialProfileId?: string | undefined;
|
|
20
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
19
21
|
}, {
|
|
20
22
|
harness: string;
|
|
21
23
|
model?: string | undefined;
|
|
22
24
|
effort?: string | undefined;
|
|
23
25
|
credentialProfileId?: string | undefined;
|
|
26
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
24
27
|
}>;
|
|
25
28
|
export type ControlReviewerPanelEntry = z.infer<typeof ControlReviewerPanelEntry>;
|
|
26
29
|
export declare const ControlRunStartRequest: z.ZodObject<{
|
|
@@ -65,14 +68,20 @@ export declare const ControlRunStartRequest: z.ZodObject<{
|
|
|
65
68
|
isolation: z.ZodDefault<z.ZodEnum<["envelope", "live"]>>;
|
|
66
69
|
delegated: z.ZodDefault<z.ZodBoolean>;
|
|
67
70
|
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
71
|
+
workspaceKind: z.ZodOptional<z.ZodEnum<["git", "directory"]>>;
|
|
72
|
+
scopePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
68
73
|
}, "strict", z.ZodTypeAny, {
|
|
69
74
|
isolation: "envelope" | "live";
|
|
70
75
|
delegated: boolean;
|
|
71
76
|
workspaceRoot?: string | undefined;
|
|
77
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
78
|
+
scopePaths?: string[] | undefined;
|
|
72
79
|
}, {
|
|
73
80
|
isolation?: "envelope" | "live" | undefined;
|
|
74
81
|
delegated?: boolean | undefined;
|
|
75
82
|
workspaceRoot?: string | undefined;
|
|
83
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
84
|
+
scopePaths?: string[] | undefined;
|
|
76
85
|
}>>;
|
|
77
86
|
harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
78
87
|
primaryHarness: z.ZodOptional<z.ZodString>;
|
|
@@ -86,6 +95,7 @@ export declare const ControlRunStartRequest: z.ZodObject<{
|
|
|
86
95
|
* per-harness settings default. */
|
|
87
96
|
models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
88
97
|
effort: z.ZodOptional<z.ZodString>;
|
|
98
|
+
processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
89
99
|
/** Harness-scoped effort map (harness id → effort). Specific beats general:
|
|
90
100
|
* an entry here wins over the scalar `effort` and the per-harness settings
|
|
91
101
|
* default, analogous to `models`. Exact Retry replays the frozen
|
|
@@ -206,16 +216,19 @@ export declare const ControlRunStartRequest: z.ZodObject<{
|
|
|
206
216
|
/** Optional per-reviewer effort hint, passed to that harness only. */
|
|
207
217
|
effort: z.ZodOptional<z.ZodString>;
|
|
208
218
|
credentialProfileId: z.ZodOptional<z.ZodString>;
|
|
219
|
+
processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
209
220
|
}, "strict", z.ZodTypeAny, {
|
|
210
221
|
harness: string;
|
|
211
222
|
model?: string | undefined;
|
|
212
223
|
effort?: string | undefined;
|
|
213
224
|
credentialProfileId?: string | undefined;
|
|
225
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
214
226
|
}, {
|
|
215
227
|
harness: string;
|
|
216
228
|
model?: string | undefined;
|
|
217
229
|
effort?: string | undefined;
|
|
218
230
|
credentialProfileId?: string | undefined;
|
|
231
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
219
232
|
}>, "many">>;
|
|
220
233
|
/** Per-run auth route override (subscription/api_key/auto). */
|
|
221
234
|
authPreference: z.ZodOptional<z.ZodEnum<["subscription", "api_key", "auto"]>>;
|
|
@@ -275,6 +288,8 @@ export declare const ControlRunStartRequest: z.ZodObject<{
|
|
|
275
288
|
isolation: "envelope" | "live";
|
|
276
289
|
delegated: boolean;
|
|
277
290
|
workspaceRoot?: string | undefined;
|
|
291
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
292
|
+
scopePaths?: string[] | undefined;
|
|
278
293
|
};
|
|
279
294
|
harnesses?: string[] | undefined;
|
|
280
295
|
primaryHarness?: string | undefined;
|
|
@@ -282,6 +297,7 @@ export declare const ControlRunStartRequest: z.ZodObject<{
|
|
|
282
297
|
model?: string | undefined;
|
|
283
298
|
models?: Record<string, string> | undefined;
|
|
284
299
|
effort?: string | undefined;
|
|
300
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
285
301
|
efforts?: Record<string, string> | undefined;
|
|
286
302
|
review?: boolean | undefined;
|
|
287
303
|
reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
@@ -329,6 +345,7 @@ export declare const ControlRunStartRequest: z.ZodObject<{
|
|
|
329
345
|
model?: string | undefined;
|
|
330
346
|
effort?: string | undefined;
|
|
331
347
|
credentialProfileId?: string | undefined;
|
|
348
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
332
349
|
}[] | undefined;
|
|
333
350
|
authPreference?: "api_key" | "auto" | "subscription" | undefined;
|
|
334
351
|
credentialProfileId?: string | null | undefined;
|
|
@@ -356,6 +373,8 @@ export declare const ControlRunStartRequest: z.ZodObject<{
|
|
|
356
373
|
isolation?: "envelope" | "live" | undefined;
|
|
357
374
|
delegated?: boolean | undefined;
|
|
358
375
|
workspaceRoot?: string | undefined;
|
|
376
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
377
|
+
scopePaths?: string[] | undefined;
|
|
359
378
|
} | undefined;
|
|
360
379
|
harnesses?: string[] | undefined;
|
|
361
380
|
primaryHarness?: string | undefined;
|
|
@@ -363,6 +382,7 @@ export declare const ControlRunStartRequest: z.ZodObject<{
|
|
|
363
382
|
model?: string | undefined;
|
|
364
383
|
models?: Record<string, string> | undefined;
|
|
365
384
|
effort?: string | undefined;
|
|
385
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
366
386
|
efforts?: Record<string, string> | undefined;
|
|
367
387
|
review?: boolean | undefined;
|
|
368
388
|
reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
@@ -410,6 +430,7 @@ export declare const ControlRunStartRequest: z.ZodObject<{
|
|
|
410
430
|
model?: string | undefined;
|
|
411
431
|
effort?: string | undefined;
|
|
412
432
|
credentialProfileId?: string | undefined;
|
|
433
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
413
434
|
}[] | undefined;
|
|
414
435
|
authPreference?: "api_key" | "auto" | "subscription" | undefined;
|
|
415
436
|
credentialProfileId?: string | null | undefined;
|
|
@@ -459,14 +480,20 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
|
|
|
459
480
|
isolation: z.ZodDefault<z.ZodEnum<["envelope", "live"]>>;
|
|
460
481
|
delegated: z.ZodDefault<z.ZodBoolean>;
|
|
461
482
|
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
483
|
+
workspaceKind: z.ZodOptional<z.ZodEnum<["git", "directory"]>>;
|
|
484
|
+
scopePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
462
485
|
}, "strict", z.ZodTypeAny, {
|
|
463
486
|
isolation: "envelope" | "live";
|
|
464
487
|
delegated: boolean;
|
|
465
488
|
workspaceRoot?: string | undefined;
|
|
489
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
490
|
+
scopePaths?: string[] | undefined;
|
|
466
491
|
}, {
|
|
467
492
|
isolation?: "envelope" | "live" | undefined;
|
|
468
493
|
delegated?: boolean | undefined;
|
|
469
494
|
workspaceRoot?: string | undefined;
|
|
495
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
496
|
+
scopePaths?: string[] | undefined;
|
|
470
497
|
}>>;
|
|
471
498
|
harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
472
499
|
primaryHarness: z.ZodOptional<z.ZodString>;
|
|
@@ -474,6 +501,7 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
|
|
|
474
501
|
model: z.ZodOptional<z.ZodString>;
|
|
475
502
|
models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
476
503
|
effort: z.ZodOptional<z.ZodString>;
|
|
504
|
+
processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
477
505
|
efforts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
478
506
|
review: z.ZodOptional<z.ZodBoolean>;
|
|
479
507
|
reviewerModels: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodString>>;
|
|
@@ -558,16 +586,19 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
|
|
|
558
586
|
/** Optional per-reviewer effort hint, passed to that harness only. */
|
|
559
587
|
effort: z.ZodOptional<z.ZodString>;
|
|
560
588
|
credentialProfileId: z.ZodOptional<z.ZodString>;
|
|
589
|
+
processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
561
590
|
}, "strict", z.ZodTypeAny, {
|
|
562
591
|
harness: string;
|
|
563
592
|
model?: string | undefined;
|
|
564
593
|
effort?: string | undefined;
|
|
565
594
|
credentialProfileId?: string | undefined;
|
|
595
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
566
596
|
}, {
|
|
567
597
|
harness: string;
|
|
568
598
|
model?: string | undefined;
|
|
569
599
|
effort?: string | undefined;
|
|
570
600
|
credentialProfileId?: string | undefined;
|
|
601
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
571
602
|
}>, "many">>;
|
|
572
603
|
authPreference: z.ZodOptional<z.ZodEnum<["subscription", "api_key", "auto"]>>;
|
|
573
604
|
credentialProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -597,6 +628,8 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
|
|
|
597
628
|
isolation: "envelope" | "live";
|
|
598
629
|
delegated: boolean;
|
|
599
630
|
workspaceRoot?: string | undefined;
|
|
631
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
632
|
+
scopePaths?: string[] | undefined;
|
|
600
633
|
};
|
|
601
634
|
harnesses?: string[] | undefined;
|
|
602
635
|
primaryHarness?: string | undefined;
|
|
@@ -604,6 +637,7 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
|
|
|
604
637
|
model?: string | undefined;
|
|
605
638
|
models?: Record<string, string> | undefined;
|
|
606
639
|
effort?: string | undefined;
|
|
640
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
607
641
|
efforts?: Record<string, string> | undefined;
|
|
608
642
|
review?: boolean | undefined;
|
|
609
643
|
reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
@@ -650,6 +684,7 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
|
|
|
650
684
|
model?: string | undefined;
|
|
651
685
|
effort?: string | undefined;
|
|
652
686
|
credentialProfileId?: string | undefined;
|
|
687
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
653
688
|
}[] | undefined;
|
|
654
689
|
authPreference?: "api_key" | "auto" | "subscription" | undefined;
|
|
655
690
|
credentialProfileId?: string | null | undefined;
|
|
@@ -678,6 +713,8 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
|
|
|
678
713
|
isolation?: "envelope" | "live" | undefined;
|
|
679
714
|
delegated?: boolean | undefined;
|
|
680
715
|
workspaceRoot?: string | undefined;
|
|
716
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
717
|
+
scopePaths?: string[] | undefined;
|
|
681
718
|
} | undefined;
|
|
682
719
|
harnesses?: string[] | undefined;
|
|
683
720
|
primaryHarness?: string | undefined;
|
|
@@ -685,6 +722,7 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
|
|
|
685
722
|
model?: string | undefined;
|
|
686
723
|
models?: Record<string, string> | undefined;
|
|
687
724
|
effort?: string | undefined;
|
|
725
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
688
726
|
efforts?: Record<string, string> | undefined;
|
|
689
727
|
review?: boolean | undefined;
|
|
690
728
|
reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
@@ -731,6 +769,7 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
|
|
|
731
769
|
model?: string | undefined;
|
|
732
770
|
effort?: string | undefined;
|
|
733
771
|
credentialProfileId?: string | undefined;
|
|
772
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
734
773
|
}[] | undefined;
|
|
735
774
|
authPreference?: "api_key" | "auto" | "subscription" | undefined;
|
|
736
775
|
credentialProfileId?: string | null | undefined;
|
|
@@ -822,14 +861,20 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
822
861
|
isolation: z.ZodDefault<z.ZodEnum<["envelope", "live"]>>;
|
|
823
862
|
delegated: z.ZodDefault<z.ZodBoolean>;
|
|
824
863
|
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
864
|
+
workspaceKind: z.ZodOptional<z.ZodEnum<["git", "directory"]>>;
|
|
865
|
+
scopePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
825
866
|
}, "strict", z.ZodTypeAny, {
|
|
826
867
|
isolation: "envelope" | "live";
|
|
827
868
|
delegated: boolean;
|
|
828
869
|
workspaceRoot?: string | undefined;
|
|
870
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
871
|
+
scopePaths?: string[] | undefined;
|
|
829
872
|
}, {
|
|
830
873
|
isolation?: "envelope" | "live" | undefined;
|
|
831
874
|
delegated?: boolean | undefined;
|
|
832
875
|
workspaceRoot?: string | undefined;
|
|
876
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
877
|
+
scopePaths?: string[] | undefined;
|
|
833
878
|
}>>;
|
|
834
879
|
harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
835
880
|
primaryHarness: z.ZodOptional<z.ZodString>;
|
|
@@ -843,6 +888,7 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
843
888
|
* per-harness settings default. */
|
|
844
889
|
models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
845
890
|
effort: z.ZodOptional<z.ZodString>;
|
|
891
|
+
processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
846
892
|
/** Harness-scoped effort map (harness id → effort). Specific beats general:
|
|
847
893
|
* an entry here wins over the scalar `effort` and the per-harness settings
|
|
848
894
|
* default, analogous to `models`. Exact Retry replays the frozen
|
|
@@ -963,16 +1009,19 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
963
1009
|
/** Optional per-reviewer effort hint, passed to that harness only. */
|
|
964
1010
|
effort: z.ZodOptional<z.ZodString>;
|
|
965
1011
|
credentialProfileId: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
966
1013
|
}, "strict", z.ZodTypeAny, {
|
|
967
1014
|
harness: string;
|
|
968
1015
|
model?: string | undefined;
|
|
969
1016
|
effort?: string | undefined;
|
|
970
1017
|
credentialProfileId?: string | undefined;
|
|
1018
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
971
1019
|
}, {
|
|
972
1020
|
harness: string;
|
|
973
1021
|
model?: string | undefined;
|
|
974
1022
|
effort?: string | undefined;
|
|
975
1023
|
credentialProfileId?: string | undefined;
|
|
1024
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
976
1025
|
}>, "many">>;
|
|
977
1026
|
/** Per-run auth route override (subscription/api_key/auto). */
|
|
978
1027
|
authPreference: z.ZodOptional<z.ZodEnum<["subscription", "api_key", "auto"]>>;
|
|
@@ -1032,6 +1081,8 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1032
1081
|
isolation: "envelope" | "live";
|
|
1033
1082
|
delegated: boolean;
|
|
1034
1083
|
workspaceRoot?: string | undefined;
|
|
1084
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
1085
|
+
scopePaths?: string[] | undefined;
|
|
1035
1086
|
};
|
|
1036
1087
|
harnesses?: string[] | undefined;
|
|
1037
1088
|
primaryHarness?: string | undefined;
|
|
@@ -1039,6 +1090,7 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1039
1090
|
model?: string | undefined;
|
|
1040
1091
|
models?: Record<string, string> | undefined;
|
|
1041
1092
|
effort?: string | undefined;
|
|
1093
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
1042
1094
|
efforts?: Record<string, string> | undefined;
|
|
1043
1095
|
review?: boolean | undefined;
|
|
1044
1096
|
reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
@@ -1086,6 +1138,7 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1086
1138
|
model?: string | undefined;
|
|
1087
1139
|
effort?: string | undefined;
|
|
1088
1140
|
credentialProfileId?: string | undefined;
|
|
1141
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
1089
1142
|
}[] | undefined;
|
|
1090
1143
|
authPreference?: "api_key" | "auto" | "subscription" | undefined;
|
|
1091
1144
|
credentialProfileId?: string | null | undefined;
|
|
@@ -1113,6 +1166,8 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1113
1166
|
isolation?: "envelope" | "live" | undefined;
|
|
1114
1167
|
delegated?: boolean | undefined;
|
|
1115
1168
|
workspaceRoot?: string | undefined;
|
|
1169
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
1170
|
+
scopePaths?: string[] | undefined;
|
|
1116
1171
|
} | undefined;
|
|
1117
1172
|
harnesses?: string[] | undefined;
|
|
1118
1173
|
primaryHarness?: string | undefined;
|
|
@@ -1120,6 +1175,7 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1120
1175
|
model?: string | undefined;
|
|
1121
1176
|
models?: Record<string, string> | undefined;
|
|
1122
1177
|
effort?: string | undefined;
|
|
1178
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
1123
1179
|
efforts?: Record<string, string> | undefined;
|
|
1124
1180
|
review?: boolean | undefined;
|
|
1125
1181
|
reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
@@ -1167,6 +1223,7 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1167
1223
|
model?: string | undefined;
|
|
1168
1224
|
effort?: string | undefined;
|
|
1169
1225
|
credentialProfileId?: string | undefined;
|
|
1226
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
1170
1227
|
}[] | undefined;
|
|
1171
1228
|
authPreference?: "api_key" | "auto" | "subscription" | undefined;
|
|
1172
1229
|
credentialProfileId?: string | null | undefined;
|
|
@@ -1217,6 +1274,8 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1217
1274
|
isolation: "envelope" | "live";
|
|
1218
1275
|
delegated: boolean;
|
|
1219
1276
|
workspaceRoot?: string | undefined;
|
|
1277
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
1278
|
+
scopePaths?: string[] | undefined;
|
|
1220
1279
|
};
|
|
1221
1280
|
harnesses?: string[] | undefined;
|
|
1222
1281
|
primaryHarness?: string | undefined;
|
|
@@ -1224,6 +1283,7 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1224
1283
|
model?: string | undefined;
|
|
1225
1284
|
models?: Record<string, string> | undefined;
|
|
1226
1285
|
effort?: string | undefined;
|
|
1286
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
1227
1287
|
efforts?: Record<string, string> | undefined;
|
|
1228
1288
|
review?: boolean | undefined;
|
|
1229
1289
|
reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
@@ -1271,6 +1331,7 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1271
1331
|
model?: string | undefined;
|
|
1272
1332
|
effort?: string | undefined;
|
|
1273
1333
|
credentialProfileId?: string | undefined;
|
|
1334
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
1274
1335
|
}[] | undefined;
|
|
1275
1336
|
authPreference?: "api_key" | "auto" | "subscription" | undefined;
|
|
1276
1337
|
credentialProfileId?: string | null | undefined;
|
|
@@ -1309,6 +1370,8 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1309
1370
|
isolation?: "envelope" | "live" | undefined;
|
|
1310
1371
|
delegated?: boolean | undefined;
|
|
1311
1372
|
workspaceRoot?: string | undefined;
|
|
1373
|
+
workspaceKind?: "directory" | "git" | undefined;
|
|
1374
|
+
scopePaths?: string[] | undefined;
|
|
1312
1375
|
} | undefined;
|
|
1313
1376
|
harnesses?: string[] | undefined;
|
|
1314
1377
|
primaryHarness?: string | undefined;
|
|
@@ -1316,6 +1379,7 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1316
1379
|
model?: string | undefined;
|
|
1317
1380
|
models?: Record<string, string> | undefined;
|
|
1318
1381
|
effort?: string | undefined;
|
|
1382
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
1319
1383
|
efforts?: Record<string, string> | undefined;
|
|
1320
1384
|
review?: boolean | undefined;
|
|
1321
1385
|
reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
@@ -1363,6 +1427,7 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
|
|
|
1363
1427
|
model?: string | undefined;
|
|
1364
1428
|
effort?: string | undefined;
|
|
1365
1429
|
credentialProfileId?: string | undefined;
|
|
1430
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
1366
1431
|
}[] | undefined;
|
|
1367
1432
|
authPreference?: "api_key" | "auto" | "subscription" | undefined;
|
|
1368
1433
|
credentialProfileId?: string | null | undefined;
|
|
@@ -1485,7 +1550,7 @@ export type ControlRouteInfo = z.infer<typeof ControlRouteInfo>;
|
|
|
1485
1550
|
* is null unless a patch exists; `adopted` is true when the live in-place tree
|
|
1486
1551
|
* was actually mutated this turn (decoupled from a clean review — see applyState).
|
|
1487
1552
|
*/
|
|
1488
|
-
export declare const RunApplyState: z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted"]>;
|
|
1553
|
+
export declare const RunApplyState: z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted", "discarded"]>;
|
|
1489
1554
|
export type RunApplyState = z.infer<typeof RunApplyState>;
|
|
1490
1555
|
/**
|
|
1491
1556
|
* The run's MUTABLE delivery/apply state, persisted as its own typed artifact
|
|
@@ -1495,24 +1560,30 @@ export type RunApplyState = z.infer<typeof RunApplyState>;
|
|
|
1495
1560
|
* retention GC and the summarizeRun result projection.
|
|
1496
1561
|
*/
|
|
1497
1562
|
export declare const RunDeliveryState: z.ZodObject<{
|
|
1498
|
-
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted"]>>;
|
|
1563
|
+
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted", "discarded"]>>;
|
|
1564
|
+
appliedPaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1565
|
+
discardedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1499
1566
|
deliveredAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1500
1567
|
revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1501
1568
|
postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1502
1569
|
}, "strip", z.ZodTypeAny, {
|
|
1503
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
1570
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
1571
|
+
appliedPaths?: string[] | undefined;
|
|
1572
|
+
discardedAt?: string | null | undefined;
|
|
1504
1573
|
deliveredAt: string | null;
|
|
1505
1574
|
revertAnchorId: string | null;
|
|
1506
1575
|
postTurnSha: string | null;
|
|
1507
1576
|
}, {
|
|
1508
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
1577
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
1578
|
+
appliedPaths?: string[] | undefined;
|
|
1579
|
+
discardedAt?: string | null | undefined;
|
|
1509
1580
|
deliveredAt?: string | null | undefined;
|
|
1510
1581
|
revertAnchorId?: string | null | undefined;
|
|
1511
1582
|
postTurnSha?: string | null | undefined;
|
|
1512
1583
|
}>;
|
|
1513
1584
|
export type RunDeliveryState = z.infer<typeof RunDeliveryState>;
|
|
1514
1585
|
export declare const ControlRunResult: z.ZodObject<{
|
|
1515
|
-
kind: z.ZodDefault<z.ZodEnum<["patch", "answer", "plan", "report", "none"]>>;
|
|
1586
|
+
kind: z.ZodDefault<z.ZodEnum<["patch", "files", "answer", "plan", "report", "none"]>>;
|
|
1516
1587
|
diffStat: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1517
1588
|
files: z.ZodNumber;
|
|
1518
1589
|
additions: z.ZodNumber;
|
|
@@ -1530,7 +1601,7 @@ export declare const ControlRunResult: z.ZodObject<{
|
|
|
1530
1601
|
/** True when the live in-place tree was mutated this turn (regardless of review). */
|
|
1531
1602
|
adopted: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
1532
1603
|
/** Honest application state (decoupled from clean-terminal). */
|
|
1533
|
-
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted"]>>;
|
|
1604
|
+
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted", "discarded"]>>;
|
|
1534
1605
|
preTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1535
1606
|
postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1536
1607
|
revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1540,7 +1611,7 @@ export declare const ControlRunResult: z.ZodObject<{
|
|
|
1540
1611
|
* revert time and refuses (fail loud) if the working tree changed since. */
|
|
1541
1612
|
revertable: z.ZodDefault<z.ZodBoolean>;
|
|
1542
1613
|
}, "strip", z.ZodTypeAny, {
|
|
1543
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
1614
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
1544
1615
|
diffStat: {
|
|
1545
1616
|
files: number;
|
|
1546
1617
|
additions: number;
|
|
@@ -1548,13 +1619,13 @@ export declare const ControlRunResult: z.ZodObject<{
|
|
|
1548
1619
|
} | null;
|
|
1549
1620
|
blockers: number;
|
|
1550
1621
|
adopted: boolean | null;
|
|
1551
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
1622
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
1552
1623
|
preTurnSha: string | null;
|
|
1553
1624
|
postTurnSha: string | null;
|
|
1554
1625
|
revertAnchorId: string | null;
|
|
1555
1626
|
revertable: boolean;
|
|
1556
1627
|
}, {
|
|
1557
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
1628
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
1558
1629
|
diffStat?: {
|
|
1559
1630
|
files: number;
|
|
1560
1631
|
additions: number;
|
|
@@ -1562,7 +1633,7 @@ export declare const ControlRunResult: z.ZodObject<{
|
|
|
1562
1633
|
} | null | undefined;
|
|
1563
1634
|
blockers?: number | undefined;
|
|
1564
1635
|
adopted?: boolean | null | undefined;
|
|
1565
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
1636
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
1566
1637
|
preTurnSha?: string | null | undefined;
|
|
1567
1638
|
postTurnSha?: string | null | undefined;
|
|
1568
1639
|
revertAnchorId?: string | null | undefined;
|
|
@@ -1683,16 +1754,19 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
1683
1754
|
/** Optional per-reviewer effort hint, passed to that harness only. */
|
|
1684
1755
|
effort: z.ZodOptional<z.ZodString>;
|
|
1685
1756
|
credentialProfileId: z.ZodOptional<z.ZodString>;
|
|
1757
|
+
processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
1686
1758
|
}, "strict", z.ZodTypeAny, {
|
|
1687
1759
|
harness: string;
|
|
1688
1760
|
model?: string | undefined;
|
|
1689
1761
|
effort?: string | undefined;
|
|
1690
1762
|
credentialProfileId?: string | undefined;
|
|
1763
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
1691
1764
|
}, {
|
|
1692
1765
|
harness: string;
|
|
1693
1766
|
model?: string | undefined;
|
|
1694
1767
|
effort?: string | undefined;
|
|
1695
1768
|
credentialProfileId?: string | undefined;
|
|
1769
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
1696
1770
|
}>, "many">>;
|
|
1697
1771
|
protectedPathApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1698
1772
|
path: z.ZodString;
|
|
@@ -1866,7 +1940,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
1866
1940
|
toolWarningsTotal: z.ZodDefault<z.ZodNumber>;
|
|
1867
1941
|
/** Honest terminal outcome (what the turn did): patch/answer/plan/report/none. */
|
|
1868
1942
|
result: z.ZodDefault<z.ZodObject<{
|
|
1869
|
-
kind: z.ZodDefault<z.ZodEnum<["patch", "answer", "plan", "report", "none"]>>;
|
|
1943
|
+
kind: z.ZodDefault<z.ZodEnum<["patch", "files", "answer", "plan", "report", "none"]>>;
|
|
1870
1944
|
diffStat: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1871
1945
|
files: z.ZodNumber;
|
|
1872
1946
|
additions: z.ZodNumber;
|
|
@@ -1884,7 +1958,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
1884
1958
|
/** True when the live in-place tree was mutated this turn (regardless of review). */
|
|
1885
1959
|
adopted: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
1886
1960
|
/** Honest application state (decoupled from clean-terminal). */
|
|
1887
|
-
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted"]>>;
|
|
1961
|
+
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted", "discarded"]>>;
|
|
1888
1962
|
preTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1889
1963
|
postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1890
1964
|
revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1894,7 +1968,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
1894
1968
|
* revert time and refuses (fail loud) if the working tree changed since. */
|
|
1895
1969
|
revertable: z.ZodDefault<z.ZodBoolean>;
|
|
1896
1970
|
}, "strip", z.ZodTypeAny, {
|
|
1897
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
1971
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
1898
1972
|
diffStat: {
|
|
1899
1973
|
files: number;
|
|
1900
1974
|
additions: number;
|
|
@@ -1902,13 +1976,13 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
1902
1976
|
} | null;
|
|
1903
1977
|
blockers: number;
|
|
1904
1978
|
adopted: boolean | null;
|
|
1905
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
1979
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
1906
1980
|
preTurnSha: string | null;
|
|
1907
1981
|
postTurnSha: string | null;
|
|
1908
1982
|
revertAnchorId: string | null;
|
|
1909
1983
|
revertable: boolean;
|
|
1910
1984
|
}, {
|
|
1911
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
1985
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
1912
1986
|
diffStat?: {
|
|
1913
1987
|
files: number;
|
|
1914
1988
|
additions: number;
|
|
@@ -1916,7 +1990,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
1916
1990
|
} | null | undefined;
|
|
1917
1991
|
blockers?: number | undefined;
|
|
1918
1992
|
adopted?: boolean | null | undefined;
|
|
1919
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
1993
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
1920
1994
|
preTurnSha?: string | null | undefined;
|
|
1921
1995
|
postTurnSha?: string | null | undefined;
|
|
1922
1996
|
revertAnchorId?: string | null | undefined;
|
|
@@ -1927,7 +2001,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
1927
2001
|
* the typed failure. Null while the run is not terminal / has no facts. */
|
|
1928
2002
|
outcomeFacts: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1929
2003
|
lifecycle: z.ZodEnum<["succeeded", "failed", "cancelled", "interrupted"]>;
|
|
1930
|
-
noChanges: z.ZodDefault<z.ZodBoolean
|
|
2004
|
+
noChanges: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
1931
2005
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
1932
2006
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
1933
2007
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1967,7 +2041,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
1967
2041
|
}>>;
|
|
1968
2042
|
}, "strict", z.ZodTypeAny, {
|
|
1969
2043
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
1970
|
-
noChanges: boolean;
|
|
2044
|
+
noChanges: boolean | null;
|
|
1971
2045
|
checks: "failed" | "not_configured" | "passed";
|
|
1972
2046
|
review: "approved" | "blocked" | "not_run";
|
|
1973
2047
|
review_requested?: boolean | undefined;
|
|
@@ -1983,7 +2057,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
1983
2057
|
} | undefined;
|
|
1984
2058
|
}, {
|
|
1985
2059
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
1986
|
-
noChanges?: boolean | undefined;
|
|
2060
|
+
noChanges?: boolean | null | undefined;
|
|
1987
2061
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1988
2062
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1989
2063
|
review_requested?: boolean | undefined;
|
|
@@ -2136,6 +2210,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
2136
2210
|
model?: string | undefined;
|
|
2137
2211
|
effort?: string | undefined;
|
|
2138
2212
|
credentialProfileId?: string | undefined;
|
|
2213
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
2139
2214
|
}[] | undefined;
|
|
2140
2215
|
protectedPathApprovals?: {
|
|
2141
2216
|
path: string;
|
|
@@ -2204,7 +2279,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
2204
2279
|
outputReadyState: "diagnostic" | "finalizing" | "pending" | "ready";
|
|
2205
2280
|
toolWarningsTotal: number;
|
|
2206
2281
|
result: {
|
|
2207
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
2282
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
2208
2283
|
diffStat: {
|
|
2209
2284
|
files: number;
|
|
2210
2285
|
additions: number;
|
|
@@ -2212,7 +2287,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
2212
2287
|
} | null;
|
|
2213
2288
|
blockers: number;
|
|
2214
2289
|
adopted: boolean | null;
|
|
2215
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
2290
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
2216
2291
|
preTurnSha: string | null;
|
|
2217
2292
|
postTurnSha: string | null;
|
|
2218
2293
|
revertAnchorId: string | null;
|
|
@@ -2220,7 +2295,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
2220
2295
|
};
|
|
2221
2296
|
outcomeFacts: {
|
|
2222
2297
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
2223
|
-
noChanges: boolean;
|
|
2298
|
+
noChanges: boolean | null;
|
|
2224
2299
|
checks: "failed" | "not_configured" | "passed";
|
|
2225
2300
|
review: "approved" | "blocked" | "not_run";
|
|
2226
2301
|
review_requested?: boolean | undefined;
|
|
@@ -2313,6 +2388,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
2313
2388
|
model?: string | undefined;
|
|
2314
2389
|
effort?: string | undefined;
|
|
2315
2390
|
credentialProfileId?: string | undefined;
|
|
2391
|
+
processingPreference?: "economy" | "fast" | "standard" | undefined;
|
|
2316
2392
|
}[] | undefined;
|
|
2317
2393
|
protectedPathApprovals?: {
|
|
2318
2394
|
path: string;
|
|
@@ -2381,7 +2457,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
2381
2457
|
outputReadyState?: "diagnostic" | "finalizing" | "pending" | "ready" | undefined;
|
|
2382
2458
|
toolWarningsTotal?: number | undefined;
|
|
2383
2459
|
result?: {
|
|
2384
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
2460
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
2385
2461
|
diffStat?: {
|
|
2386
2462
|
files: number;
|
|
2387
2463
|
additions: number;
|
|
@@ -2389,7 +2465,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
2389
2465
|
} | null | undefined;
|
|
2390
2466
|
blockers?: number | undefined;
|
|
2391
2467
|
adopted?: boolean | null | undefined;
|
|
2392
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
2468
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
2393
2469
|
preTurnSha?: string | null | undefined;
|
|
2394
2470
|
postTurnSha?: string | null | undefined;
|
|
2395
2471
|
revertAnchorId?: string | null | undefined;
|
|
@@ -2397,7 +2473,7 @@ export declare const ControlRunSummary: z.ZodObject<{
|
|
|
2397
2473
|
} | undefined;
|
|
2398
2474
|
outcomeFacts?: {
|
|
2399
2475
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
2400
|
-
noChanges?: boolean | undefined;
|
|
2476
|
+
noChanges?: boolean | null | undefined;
|
|
2401
2477
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2402
2478
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2403
2479
|
review_requested?: boolean | undefined;
|
|
@@ -2446,6 +2522,7 @@ export type ControlRunSummary = z.infer<typeof ControlRunSummary>;
|
|
|
2446
2522
|
export declare const ControlEvidenceIntegrity: z.ZodEnum<["complete", "incomplete", "unavailable"]>;
|
|
2447
2523
|
export type ControlEvidenceIntegrity = z.infer<typeof ControlEvidenceIntegrity>;
|
|
2448
2524
|
export declare const ControlBudgetSnapshot: z.ZodObject<{
|
|
2525
|
+
cashKnowledge: z.ZodOptional<z.ZodEnum<["exact", "estimated", "unknown"]>>;
|
|
2449
2526
|
paidBudget: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2450
2527
|
kind: z.ZodLiteral<"unlimited">;
|
|
2451
2528
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -2476,6 +2553,7 @@ export declare const ControlBudgetSnapshot: z.ZodObject<{
|
|
|
2476
2553
|
source: z.ZodDefault<z.ZodEnum<["decision", "events", "settings", "unknown"]>>;
|
|
2477
2554
|
evidence: z.ZodDefault<z.ZodEnum<["complete", "incomplete", "unavailable"]>>;
|
|
2478
2555
|
}, "strip", z.ZodTypeAny, {
|
|
2556
|
+
cashKnowledge?: "estimated" | "exact" | "unknown" | undefined;
|
|
2479
2557
|
paidBudget: {
|
|
2480
2558
|
kind: "unlimited";
|
|
2481
2559
|
} | {
|
|
@@ -2490,6 +2568,7 @@ export declare const ControlBudgetSnapshot: z.ZodObject<{
|
|
|
2490
2568
|
source: "decision" | "events" | "settings" | "unknown";
|
|
2491
2569
|
evidence: "complete" | "incomplete" | "unavailable";
|
|
2492
2570
|
}, {
|
|
2571
|
+
cashKnowledge?: "estimated" | "exact" | "unknown" | undefined;
|
|
2493
2572
|
paidBudget?: {
|
|
2494
2573
|
kind: "unlimited";
|
|
2495
2574
|
} | {
|
|
@@ -2779,6 +2858,7 @@ export declare const ApplyTarget: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
2779
2858
|
}>]>;
|
|
2780
2859
|
export type ApplyTarget = z.infer<typeof ApplyTarget>;
|
|
2781
2860
|
export declare const ControlApplyCheckRequest: z.ZodObject<{
|
|
2861
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
2782
2862
|
target: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2783
2863
|
kind: z.ZodLiteral<"original_project">;
|
|
2784
2864
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -2796,6 +2876,7 @@ export declare const ControlApplyCheckRequest: z.ZodObject<{
|
|
|
2796
2876
|
root: string;
|
|
2797
2877
|
}>]>>;
|
|
2798
2878
|
}, "strict", z.ZodTypeAny, {
|
|
2879
|
+
paths?: string[] | undefined;
|
|
2799
2880
|
target: {
|
|
2800
2881
|
kind: "original_project";
|
|
2801
2882
|
} | {
|
|
@@ -2803,6 +2884,7 @@ export declare const ControlApplyCheckRequest: z.ZodObject<{
|
|
|
2803
2884
|
root: string;
|
|
2804
2885
|
};
|
|
2805
2886
|
}, {
|
|
2887
|
+
paths?: string[] | undefined;
|
|
2806
2888
|
target?: {
|
|
2807
2889
|
kind: "original_project";
|
|
2808
2890
|
} | {
|
|
@@ -2812,6 +2894,7 @@ export declare const ControlApplyCheckRequest: z.ZodObject<{
|
|
|
2812
2894
|
}>;
|
|
2813
2895
|
export type ControlApplyCheckRequest = z.infer<typeof ControlApplyCheckRequest>;
|
|
2814
2896
|
export declare const ControlApplyRequest: z.ZodObject<{
|
|
2897
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
2815
2898
|
target: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2816
2899
|
kind: z.ZodLiteral<"original_project">;
|
|
2817
2900
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -2832,6 +2915,7 @@ export declare const ControlApplyRequest: z.ZodObject<{
|
|
|
2832
2915
|
branch: z.ZodOptional<z.ZodString>;
|
|
2833
2916
|
message: z.ZodOptional<z.ZodString>;
|
|
2834
2917
|
}, "strict", z.ZodTypeAny, {
|
|
2918
|
+
paths?: string[] | undefined;
|
|
2835
2919
|
target: {
|
|
2836
2920
|
kind: "original_project";
|
|
2837
2921
|
} | {
|
|
@@ -2842,6 +2926,7 @@ export declare const ControlApplyRequest: z.ZodObject<{
|
|
|
2842
2926
|
branch?: string | undefined;
|
|
2843
2927
|
message?: string | undefined;
|
|
2844
2928
|
}, {
|
|
2929
|
+
paths?: string[] | undefined;
|
|
2845
2930
|
target?: {
|
|
2846
2931
|
kind: "original_project";
|
|
2847
2932
|
} | {
|
|
@@ -2858,10 +2943,10 @@ export type ControlApplyRequest = z.infer<typeof ControlApplyRequest>;
|
|
|
2858
2943
|
* v0.8 "apply: human_review" dead end: a typed, auditable unblock path instead
|
|
2859
2944
|
* of a read-only review queue.
|
|
2860
2945
|
*/
|
|
2861
|
-
export declare const RunDecisionAction: z.ZodEnum<["accept_clean_patch", "rerun_with_feedback", "accept_risk", "override_needs_human", "revert_run"]>;
|
|
2946
|
+
export declare const RunDecisionAction: z.ZodEnum<["accept_clean_patch", "rerun_with_feedback", "accept_risk", "override_needs_human", "revert_run", "discard"]>;
|
|
2862
2947
|
export type RunDecisionAction = z.infer<typeof RunDecisionAction>;
|
|
2863
2948
|
export declare const ControlRunDecisionRequest: z.ZodObject<{
|
|
2864
|
-
action: z.ZodEnum<["accept_clean_patch", "rerun_with_feedback", "accept_risk", "override_needs_human", "revert_run"]>;
|
|
2949
|
+
action: z.ZodEnum<["accept_clean_patch", "rerun_with_feedback", "accept_risk", "override_needs_human", "revert_run", "discard"]>;
|
|
2865
2950
|
/** Findings the decision targets (override/accept_risk). */
|
|
2866
2951
|
findingIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2867
2952
|
/** Reviewer feedback to seed a rerun turn. */
|
|
@@ -2887,7 +2972,7 @@ export declare const ControlRunDecisionRequest: z.ZodObject<{
|
|
|
2887
2972
|
root: string;
|
|
2888
2973
|
}>]>>;
|
|
2889
2974
|
}, "strict", z.ZodTypeAny, {
|
|
2890
|
-
action: "accept_clean_patch" | "accept_risk" | "override_needs_human" | "rerun_with_feedback" | "revert_run";
|
|
2975
|
+
action: "accept_clean_patch" | "accept_risk" | "discard" | "override_needs_human" | "rerun_with_feedback" | "revert_run";
|
|
2891
2976
|
findingIds: string[];
|
|
2892
2977
|
feedback?: string | undefined;
|
|
2893
2978
|
acceptedRisks: string[];
|
|
@@ -2899,7 +2984,7 @@ export declare const ControlRunDecisionRequest: z.ZodObject<{
|
|
|
2899
2984
|
root: string;
|
|
2900
2985
|
} | undefined;
|
|
2901
2986
|
}, {
|
|
2902
|
-
action: "accept_clean_patch" | "accept_risk" | "override_needs_human" | "rerun_with_feedback" | "revert_run";
|
|
2987
|
+
action: "accept_clean_patch" | "accept_risk" | "discard" | "override_needs_human" | "rerun_with_feedback" | "revert_run";
|
|
2903
2988
|
findingIds?: string[] | undefined;
|
|
2904
2989
|
feedback?: string | undefined;
|
|
2905
2990
|
acceptedRisks?: string[] | undefined;
|
|
@@ -2914,18 +2999,18 @@ export declare const ControlRunDecisionRequest: z.ZodObject<{
|
|
|
2914
2999
|
export type ControlRunDecisionRequest = z.infer<typeof ControlRunDecisionRequest>;
|
|
2915
3000
|
export declare const ControlRunDecisionResponse: z.ZodObject<{
|
|
2916
3001
|
accepted: z.ZodBoolean;
|
|
2917
|
-
status: z.ZodEnum<["applied", "requeued", "rejected", "unsupported"]>;
|
|
3002
|
+
status: z.ZodEnum<["applied", "requeued", "rejected", "unsupported", "discarded"]>;
|
|
2918
3003
|
/** New run id when the decision re-enqueues a turn (rerun_with_feedback). */
|
|
2919
3004
|
newRunId: z.ZodOptional<z.ZodString>;
|
|
2920
3005
|
message: z.ZodOptional<z.ZodString>;
|
|
2921
3006
|
}, "strip", z.ZodTypeAny, {
|
|
2922
3007
|
accepted: boolean;
|
|
2923
|
-
status: "applied" | "rejected" | "requeued" | "unsupported";
|
|
3008
|
+
status: "applied" | "discarded" | "rejected" | "requeued" | "unsupported";
|
|
2924
3009
|
newRunId?: string | undefined;
|
|
2925
3010
|
message?: string | undefined;
|
|
2926
3011
|
}, {
|
|
2927
3012
|
accepted: boolean;
|
|
2928
|
-
status: "applied" | "rejected" | "requeued" | "unsupported";
|
|
3013
|
+
status: "applied" | "discarded" | "rejected" | "requeued" | "unsupported";
|
|
2929
3014
|
newRunId?: string | undefined;
|
|
2930
3015
|
message?: string | undefined;
|
|
2931
3016
|
}>;
|
|
@@ -3034,7 +3119,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3034
3119
|
strategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<["race", "attempts", "until_clean", "deep_scan", "create"]>>>;
|
|
3035
3120
|
n: z.ZodOptional<z.ZodNumber>;
|
|
3036
3121
|
result: z.ZodDefault<z.ZodObject<{
|
|
3037
|
-
kind: z.ZodDefault<z.ZodEnum<["patch", "answer", "plan", "report", "none"]>>;
|
|
3122
|
+
kind: z.ZodDefault<z.ZodEnum<["patch", "files", "answer", "plan", "report", "none"]>>;
|
|
3038
3123
|
diffStat: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
3039
3124
|
files: z.ZodNumber;
|
|
3040
3125
|
additions: z.ZodNumber;
|
|
@@ -3052,7 +3137,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3052
3137
|
/** True when the live in-place tree was mutated this turn (regardless of review). */
|
|
3053
3138
|
adopted: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
3054
3139
|
/** Honest application state (decoupled from clean-terminal). */
|
|
3055
|
-
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted"]>>;
|
|
3140
|
+
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted", "discarded"]>>;
|
|
3056
3141
|
preTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3057
3142
|
postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3058
3143
|
revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -3062,7 +3147,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3062
3147
|
* revert time and refuses (fail loud) if the working tree changed since. */
|
|
3063
3148
|
revertable: z.ZodDefault<z.ZodBoolean>;
|
|
3064
3149
|
}, "strip", z.ZodTypeAny, {
|
|
3065
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
3150
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
3066
3151
|
diffStat: {
|
|
3067
3152
|
files: number;
|
|
3068
3153
|
additions: number;
|
|
@@ -3070,13 +3155,13 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3070
3155
|
} | null;
|
|
3071
3156
|
blockers: number;
|
|
3072
3157
|
adopted: boolean | null;
|
|
3073
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
3158
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
3074
3159
|
preTurnSha: string | null;
|
|
3075
3160
|
postTurnSha: string | null;
|
|
3076
3161
|
revertAnchorId: string | null;
|
|
3077
3162
|
revertable: boolean;
|
|
3078
3163
|
}, {
|
|
3079
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
3164
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
3080
3165
|
diffStat?: {
|
|
3081
3166
|
files: number;
|
|
3082
3167
|
additions: number;
|
|
@@ -3084,7 +3169,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3084
3169
|
} | null | undefined;
|
|
3085
3170
|
blockers?: number | undefined;
|
|
3086
3171
|
adopted?: boolean | null | undefined;
|
|
3087
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
3172
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
3088
3173
|
preTurnSha?: string | null | undefined;
|
|
3089
3174
|
postTurnSha?: string | null | undefined;
|
|
3090
3175
|
revertAnchorId?: string | null | undefined;
|
|
@@ -3092,7 +3177,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3092
3177
|
}>>;
|
|
3093
3178
|
outcomeFacts: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
3094
3179
|
lifecycle: z.ZodEnum<["succeeded", "failed", "cancelled", "interrupted"]>;
|
|
3095
|
-
noChanges: z.ZodDefault<z.ZodBoolean
|
|
3180
|
+
noChanges: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
3096
3181
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
3097
3182
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
3098
3183
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3132,7 +3217,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3132
3217
|
}>>;
|
|
3133
3218
|
}, "strict", z.ZodTypeAny, {
|
|
3134
3219
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
3135
|
-
noChanges: boolean;
|
|
3220
|
+
noChanges: boolean | null;
|
|
3136
3221
|
checks: "failed" | "not_configured" | "passed";
|
|
3137
3222
|
review: "approved" | "blocked" | "not_run";
|
|
3138
3223
|
review_requested?: boolean | undefined;
|
|
@@ -3148,7 +3233,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3148
3233
|
} | undefined;
|
|
3149
3234
|
}, {
|
|
3150
3235
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
3151
|
-
noChanges?: boolean | undefined;
|
|
3236
|
+
noChanges?: boolean | null | undefined;
|
|
3152
3237
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
3153
3238
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
3154
3239
|
review_requested?: boolean | undefined;
|
|
@@ -3205,7 +3290,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3205
3290
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
3206
3291
|
n?: number | undefined;
|
|
3207
3292
|
result: {
|
|
3208
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
3293
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
3209
3294
|
diffStat: {
|
|
3210
3295
|
files: number;
|
|
3211
3296
|
additions: number;
|
|
@@ -3213,7 +3298,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3213
3298
|
} | null;
|
|
3214
3299
|
blockers: number;
|
|
3215
3300
|
adopted: boolean | null;
|
|
3216
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
3301
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
3217
3302
|
preTurnSha: string | null;
|
|
3218
3303
|
postTurnSha: string | null;
|
|
3219
3304
|
revertAnchorId: string | null;
|
|
@@ -3221,7 +3306,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3221
3306
|
};
|
|
3222
3307
|
outcomeFacts: {
|
|
3223
3308
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
3224
|
-
noChanges: boolean;
|
|
3309
|
+
noChanges: boolean | null;
|
|
3225
3310
|
checks: "failed" | "not_configured" | "passed";
|
|
3226
3311
|
review: "approved" | "blocked" | "not_run";
|
|
3227
3312
|
review_requested?: boolean | undefined;
|
|
@@ -3254,7 +3339,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3254
3339
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
3255
3340
|
n?: number | undefined;
|
|
3256
3341
|
result?: {
|
|
3257
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
3342
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
3258
3343
|
diffStat?: {
|
|
3259
3344
|
files: number;
|
|
3260
3345
|
additions: number;
|
|
@@ -3262,7 +3347,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3262
3347
|
} | null | undefined;
|
|
3263
3348
|
blockers?: number | undefined;
|
|
3264
3349
|
adopted?: boolean | null | undefined;
|
|
3265
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
3350
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
3266
3351
|
preTurnSha?: string | null | undefined;
|
|
3267
3352
|
postTurnSha?: string | null | undefined;
|
|
3268
3353
|
revertAnchorId?: string | null | undefined;
|
|
@@ -3270,7 +3355,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
|
|
|
3270
3355
|
} | undefined;
|
|
3271
3356
|
outcomeFacts?: {
|
|
3272
3357
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
3273
|
-
noChanges?: boolean | undefined;
|
|
3358
|
+
noChanges?: boolean | null | undefined;
|
|
3274
3359
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
3275
3360
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
3276
3361
|
review_requested?: boolean | undefined;
|
|
@@ -3326,7 +3411,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3326
3411
|
strategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<["race", "attempts", "until_clean", "deep_scan", "create"]>>>;
|
|
3327
3412
|
n: z.ZodOptional<z.ZodNumber>;
|
|
3328
3413
|
result: z.ZodDefault<z.ZodObject<{
|
|
3329
|
-
kind: z.ZodDefault<z.ZodEnum<["patch", "answer", "plan", "report", "none"]>>;
|
|
3414
|
+
kind: z.ZodDefault<z.ZodEnum<["patch", "files", "answer", "plan", "report", "none"]>>;
|
|
3330
3415
|
diffStat: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
3331
3416
|
files: z.ZodNumber;
|
|
3332
3417
|
additions: z.ZodNumber;
|
|
@@ -3344,7 +3429,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3344
3429
|
/** True when the live in-place tree was mutated this turn (regardless of review). */
|
|
3345
3430
|
adopted: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
3346
3431
|
/** Honest application state (decoupled from clean-terminal). */
|
|
3347
|
-
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted"]>>;
|
|
3432
|
+
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted", "discarded"]>>;
|
|
3348
3433
|
preTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3349
3434
|
postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3350
3435
|
revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -3354,7 +3439,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3354
3439
|
* revert time and refuses (fail loud) if the working tree changed since. */
|
|
3355
3440
|
revertable: z.ZodDefault<z.ZodBoolean>;
|
|
3356
3441
|
}, "strip", z.ZodTypeAny, {
|
|
3357
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
3442
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
3358
3443
|
diffStat: {
|
|
3359
3444
|
files: number;
|
|
3360
3445
|
additions: number;
|
|
@@ -3362,13 +3447,13 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3362
3447
|
} | null;
|
|
3363
3448
|
blockers: number;
|
|
3364
3449
|
adopted: boolean | null;
|
|
3365
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
3450
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
3366
3451
|
preTurnSha: string | null;
|
|
3367
3452
|
postTurnSha: string | null;
|
|
3368
3453
|
revertAnchorId: string | null;
|
|
3369
3454
|
revertable: boolean;
|
|
3370
3455
|
}, {
|
|
3371
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
3456
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
3372
3457
|
diffStat?: {
|
|
3373
3458
|
files: number;
|
|
3374
3459
|
additions: number;
|
|
@@ -3376,7 +3461,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3376
3461
|
} | null | undefined;
|
|
3377
3462
|
blockers?: number | undefined;
|
|
3378
3463
|
adopted?: boolean | null | undefined;
|
|
3379
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
3464
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
3380
3465
|
preTurnSha?: string | null | undefined;
|
|
3381
3466
|
postTurnSha?: string | null | undefined;
|
|
3382
3467
|
revertAnchorId?: string | null | undefined;
|
|
@@ -3384,7 +3469,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3384
3469
|
}>>;
|
|
3385
3470
|
outcomeFacts: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
3386
3471
|
lifecycle: z.ZodEnum<["succeeded", "failed", "cancelled", "interrupted"]>;
|
|
3387
|
-
noChanges: z.ZodDefault<z.ZodBoolean
|
|
3472
|
+
noChanges: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
3388
3473
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
3389
3474
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
3390
3475
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3424,7 +3509,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3424
3509
|
}>>;
|
|
3425
3510
|
}, "strict", z.ZodTypeAny, {
|
|
3426
3511
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
3427
|
-
noChanges: boolean;
|
|
3512
|
+
noChanges: boolean | null;
|
|
3428
3513
|
checks: "failed" | "not_configured" | "passed";
|
|
3429
3514
|
review: "approved" | "blocked" | "not_run";
|
|
3430
3515
|
review_requested?: boolean | undefined;
|
|
@@ -3440,7 +3525,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3440
3525
|
} | undefined;
|
|
3441
3526
|
}, {
|
|
3442
3527
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
3443
|
-
noChanges?: boolean | undefined;
|
|
3528
|
+
noChanges?: boolean | null | undefined;
|
|
3444
3529
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
3445
3530
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
3446
3531
|
review_requested?: boolean | undefined;
|
|
@@ -3497,7 +3582,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3497
3582
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
3498
3583
|
n?: number | undefined;
|
|
3499
3584
|
result: {
|
|
3500
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
3585
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
3501
3586
|
diffStat: {
|
|
3502
3587
|
files: number;
|
|
3503
3588
|
additions: number;
|
|
@@ -3505,7 +3590,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3505
3590
|
} | null;
|
|
3506
3591
|
blockers: number;
|
|
3507
3592
|
adopted: boolean | null;
|
|
3508
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
3593
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
3509
3594
|
preTurnSha: string | null;
|
|
3510
3595
|
postTurnSha: string | null;
|
|
3511
3596
|
revertAnchorId: string | null;
|
|
@@ -3513,7 +3598,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3513
3598
|
};
|
|
3514
3599
|
outcomeFacts: {
|
|
3515
3600
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
3516
|
-
noChanges: boolean;
|
|
3601
|
+
noChanges: boolean | null;
|
|
3517
3602
|
checks: "failed" | "not_configured" | "passed";
|
|
3518
3603
|
review: "approved" | "blocked" | "not_run";
|
|
3519
3604
|
review_requested?: boolean | undefined;
|
|
@@ -3546,7 +3631,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3546
3631
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
3547
3632
|
n?: number | undefined;
|
|
3548
3633
|
result?: {
|
|
3549
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
3634
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
3550
3635
|
diffStat?: {
|
|
3551
3636
|
files: number;
|
|
3552
3637
|
additions: number;
|
|
@@ -3554,7 +3639,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3554
3639
|
} | null | undefined;
|
|
3555
3640
|
blockers?: number | undefined;
|
|
3556
3641
|
adopted?: boolean | null | undefined;
|
|
3557
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
3642
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
3558
3643
|
preTurnSha?: string | null | undefined;
|
|
3559
3644
|
postTurnSha?: string | null | undefined;
|
|
3560
3645
|
revertAnchorId?: string | null | undefined;
|
|
@@ -3562,7 +3647,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3562
3647
|
} | undefined;
|
|
3563
3648
|
outcomeFacts?: {
|
|
3564
3649
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
3565
|
-
noChanges?: boolean | undefined;
|
|
3650
|
+
noChanges?: boolean | null | undefined;
|
|
3566
3651
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
3567
3652
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
3568
3653
|
review_requested?: boolean | undefined;
|
|
@@ -3671,7 +3756,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3671
3756
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
3672
3757
|
n?: number | undefined;
|
|
3673
3758
|
result: {
|
|
3674
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
3759
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
3675
3760
|
diffStat: {
|
|
3676
3761
|
files: number;
|
|
3677
3762
|
additions: number;
|
|
@@ -3679,7 +3764,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3679
3764
|
} | null;
|
|
3680
3765
|
blockers: number;
|
|
3681
3766
|
adopted: boolean | null;
|
|
3682
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
3767
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
3683
3768
|
preTurnSha: string | null;
|
|
3684
3769
|
postTurnSha: string | null;
|
|
3685
3770
|
revertAnchorId: string | null;
|
|
@@ -3687,7 +3772,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3687
3772
|
};
|
|
3688
3773
|
outcomeFacts: {
|
|
3689
3774
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
3690
|
-
noChanges: boolean;
|
|
3775
|
+
noChanges: boolean | null;
|
|
3691
3776
|
checks: "failed" | "not_configured" | "passed";
|
|
3692
3777
|
review: "approved" | "blocked" | "not_run";
|
|
3693
3778
|
review_requested?: boolean | undefined;
|
|
@@ -3750,7 +3835,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3750
3835
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
3751
3836
|
n?: number | undefined;
|
|
3752
3837
|
result?: {
|
|
3753
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
3838
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
3754
3839
|
diffStat?: {
|
|
3755
3840
|
files: number;
|
|
3756
3841
|
additions: number;
|
|
@@ -3758,7 +3843,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3758
3843
|
} | null | undefined;
|
|
3759
3844
|
blockers?: number | undefined;
|
|
3760
3845
|
adopted?: boolean | null | undefined;
|
|
3761
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
3846
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
3762
3847
|
preTurnSha?: string | null | undefined;
|
|
3763
3848
|
postTurnSha?: string | null | undefined;
|
|
3764
3849
|
revertAnchorId?: string | null | undefined;
|
|
@@ -3766,7 +3851,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
|
|
|
3766
3851
|
} | undefined;
|
|
3767
3852
|
outcomeFacts?: {
|
|
3768
3853
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
3769
|
-
noChanges?: boolean | undefined;
|
|
3854
|
+
noChanges?: boolean | null | undefined;
|
|
3770
3855
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
3771
3856
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
3772
3857
|
review_requested?: boolean | undefined;
|
|
@@ -4184,7 +4269,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4184
4269
|
strategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<["race", "attempts", "until_clean", "deep_scan", "create"]>>>;
|
|
4185
4270
|
n: z.ZodOptional<z.ZodNumber>;
|
|
4186
4271
|
result: z.ZodDefault<z.ZodObject<{
|
|
4187
|
-
kind: z.ZodDefault<z.ZodEnum<["patch", "answer", "plan", "report", "none"]>>;
|
|
4272
|
+
kind: z.ZodDefault<z.ZodEnum<["patch", "files", "answer", "plan", "report", "none"]>>;
|
|
4188
4273
|
diffStat: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
4189
4274
|
files: z.ZodNumber;
|
|
4190
4275
|
additions: z.ZodNumber;
|
|
@@ -4202,7 +4287,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4202
4287
|
/** True when the live in-place tree was mutated this turn (regardless of review). */
|
|
4203
4288
|
adopted: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
4204
4289
|
/** Honest application state (decoupled from clean-terminal). */
|
|
4205
|
-
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted"]>>;
|
|
4290
|
+
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted", "discarded"]>>;
|
|
4206
4291
|
preTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4207
4292
|
postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4208
4293
|
revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -4212,7 +4297,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4212
4297
|
* revert time and refuses (fail loud) if the working tree changed since. */
|
|
4213
4298
|
revertable: z.ZodDefault<z.ZodBoolean>;
|
|
4214
4299
|
}, "strip", z.ZodTypeAny, {
|
|
4215
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
4300
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
4216
4301
|
diffStat: {
|
|
4217
4302
|
files: number;
|
|
4218
4303
|
additions: number;
|
|
@@ -4220,13 +4305,13 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4220
4305
|
} | null;
|
|
4221
4306
|
blockers: number;
|
|
4222
4307
|
adopted: boolean | null;
|
|
4223
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
4308
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
4224
4309
|
preTurnSha: string | null;
|
|
4225
4310
|
postTurnSha: string | null;
|
|
4226
4311
|
revertAnchorId: string | null;
|
|
4227
4312
|
revertable: boolean;
|
|
4228
4313
|
}, {
|
|
4229
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
4314
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
4230
4315
|
diffStat?: {
|
|
4231
4316
|
files: number;
|
|
4232
4317
|
additions: number;
|
|
@@ -4234,7 +4319,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4234
4319
|
} | null | undefined;
|
|
4235
4320
|
blockers?: number | undefined;
|
|
4236
4321
|
adopted?: boolean | null | undefined;
|
|
4237
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
4322
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
4238
4323
|
preTurnSha?: string | null | undefined;
|
|
4239
4324
|
postTurnSha?: string | null | undefined;
|
|
4240
4325
|
revertAnchorId?: string | null | undefined;
|
|
@@ -4242,7 +4327,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4242
4327
|
}>>;
|
|
4243
4328
|
outcomeFacts: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
4244
4329
|
lifecycle: z.ZodEnum<["succeeded", "failed", "cancelled", "interrupted"]>;
|
|
4245
|
-
noChanges: z.ZodDefault<z.ZodBoolean
|
|
4330
|
+
noChanges: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
4246
4331
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
4247
4332
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
4248
4333
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4282,7 +4367,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4282
4367
|
}>>;
|
|
4283
4368
|
}, "strict", z.ZodTypeAny, {
|
|
4284
4369
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
4285
|
-
noChanges: boolean;
|
|
4370
|
+
noChanges: boolean | null;
|
|
4286
4371
|
checks: "failed" | "not_configured" | "passed";
|
|
4287
4372
|
review: "approved" | "blocked" | "not_run";
|
|
4288
4373
|
review_requested?: boolean | undefined;
|
|
@@ -4298,7 +4383,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4298
4383
|
} | undefined;
|
|
4299
4384
|
}, {
|
|
4300
4385
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
4301
|
-
noChanges?: boolean | undefined;
|
|
4386
|
+
noChanges?: boolean | null | undefined;
|
|
4302
4387
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
4303
4388
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
4304
4389
|
review_requested?: boolean | undefined;
|
|
@@ -4355,7 +4440,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4355
4440
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
4356
4441
|
n?: number | undefined;
|
|
4357
4442
|
result: {
|
|
4358
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
4443
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
4359
4444
|
diffStat: {
|
|
4360
4445
|
files: number;
|
|
4361
4446
|
additions: number;
|
|
@@ -4363,7 +4448,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4363
4448
|
} | null;
|
|
4364
4449
|
blockers: number;
|
|
4365
4450
|
adopted: boolean | null;
|
|
4366
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
4451
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
4367
4452
|
preTurnSha: string | null;
|
|
4368
4453
|
postTurnSha: string | null;
|
|
4369
4454
|
revertAnchorId: string | null;
|
|
@@ -4371,7 +4456,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4371
4456
|
};
|
|
4372
4457
|
outcomeFacts: {
|
|
4373
4458
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
4374
|
-
noChanges: boolean;
|
|
4459
|
+
noChanges: boolean | null;
|
|
4375
4460
|
checks: "failed" | "not_configured" | "passed";
|
|
4376
4461
|
review: "approved" | "blocked" | "not_run";
|
|
4377
4462
|
review_requested?: boolean | undefined;
|
|
@@ -4404,7 +4489,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4404
4489
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
4405
4490
|
n?: number | undefined;
|
|
4406
4491
|
result?: {
|
|
4407
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
4492
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
4408
4493
|
diffStat?: {
|
|
4409
4494
|
files: number;
|
|
4410
4495
|
additions: number;
|
|
@@ -4412,7 +4497,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4412
4497
|
} | null | undefined;
|
|
4413
4498
|
blockers?: number | undefined;
|
|
4414
4499
|
adopted?: boolean | null | undefined;
|
|
4415
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
4500
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
4416
4501
|
preTurnSha?: string | null | undefined;
|
|
4417
4502
|
postTurnSha?: string | null | undefined;
|
|
4418
4503
|
revertAnchorId?: string | null | undefined;
|
|
@@ -4420,7 +4505,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4420
4505
|
} | undefined;
|
|
4421
4506
|
outcomeFacts?: {
|
|
4422
4507
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
4423
|
-
noChanges?: boolean | undefined;
|
|
4508
|
+
noChanges?: boolean | null | undefined;
|
|
4424
4509
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
4425
4510
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
4426
4511
|
review_requested?: boolean | undefined;
|
|
@@ -4529,7 +4614,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4529
4614
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
4530
4615
|
n?: number | undefined;
|
|
4531
4616
|
result: {
|
|
4532
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
4617
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
4533
4618
|
diffStat: {
|
|
4534
4619
|
files: number;
|
|
4535
4620
|
additions: number;
|
|
@@ -4537,7 +4622,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4537
4622
|
} | null;
|
|
4538
4623
|
blockers: number;
|
|
4539
4624
|
adopted: boolean | null;
|
|
4540
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
4625
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
4541
4626
|
preTurnSha: string | null;
|
|
4542
4627
|
postTurnSha: string | null;
|
|
4543
4628
|
revertAnchorId: string | null;
|
|
@@ -4545,7 +4630,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4545
4630
|
};
|
|
4546
4631
|
outcomeFacts: {
|
|
4547
4632
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
4548
|
-
noChanges: boolean;
|
|
4633
|
+
noChanges: boolean | null;
|
|
4549
4634
|
checks: "failed" | "not_configured" | "passed";
|
|
4550
4635
|
review: "approved" | "blocked" | "not_run";
|
|
4551
4636
|
review_requested?: boolean | undefined;
|
|
@@ -4608,7 +4693,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4608
4693
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
4609
4694
|
n?: number | undefined;
|
|
4610
4695
|
result?: {
|
|
4611
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
4696
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
4612
4697
|
diffStat?: {
|
|
4613
4698
|
files: number;
|
|
4614
4699
|
additions: number;
|
|
@@ -4616,7 +4701,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4616
4701
|
} | null | undefined;
|
|
4617
4702
|
blockers?: number | undefined;
|
|
4618
4703
|
adopted?: boolean | null | undefined;
|
|
4619
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
4704
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
4620
4705
|
preTurnSha?: string | null | undefined;
|
|
4621
4706
|
postTurnSha?: string | null | undefined;
|
|
4622
4707
|
revertAnchorId?: string | null | undefined;
|
|
@@ -4624,7 +4709,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4624
4709
|
} | undefined;
|
|
4625
4710
|
outcomeFacts?: {
|
|
4626
4711
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
4627
|
-
noChanges?: boolean | undefined;
|
|
4712
|
+
noChanges?: boolean | null | undefined;
|
|
4628
4713
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
4629
4714
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
4630
4715
|
review_requested?: boolean | undefined;
|
|
@@ -4718,7 +4803,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4718
4803
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
4719
4804
|
n?: number | undefined;
|
|
4720
4805
|
result: {
|
|
4721
|
-
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
4806
|
+
kind: "answer" | "files" | "none" | "patch" | "plan" | "report";
|
|
4722
4807
|
diffStat: {
|
|
4723
4808
|
files: number;
|
|
4724
4809
|
additions: number;
|
|
@@ -4726,7 +4811,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4726
4811
|
} | null;
|
|
4727
4812
|
blockers: number;
|
|
4728
4813
|
adopted: boolean | null;
|
|
4729
|
-
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
4814
|
+
applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
|
|
4730
4815
|
preTurnSha: string | null;
|
|
4731
4816
|
postTurnSha: string | null;
|
|
4732
4817
|
revertAnchorId: string | null;
|
|
@@ -4734,7 +4819,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4734
4819
|
};
|
|
4735
4820
|
outcomeFacts: {
|
|
4736
4821
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
4737
|
-
noChanges: boolean;
|
|
4822
|
+
noChanges: boolean | null;
|
|
4738
4823
|
checks: "failed" | "not_configured" | "passed";
|
|
4739
4824
|
review: "approved" | "blocked" | "not_run";
|
|
4740
4825
|
review_requested?: boolean | undefined;
|
|
@@ -4828,7 +4913,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4828
4913
|
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
4829
4914
|
n?: number | undefined;
|
|
4830
4915
|
result?: {
|
|
4831
|
-
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
4916
|
+
kind?: "answer" | "files" | "none" | "patch" | "plan" | "report" | undefined;
|
|
4832
4917
|
diffStat?: {
|
|
4833
4918
|
files: number;
|
|
4834
4919
|
additions: number;
|
|
@@ -4836,7 +4921,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4836
4921
|
} | null | undefined;
|
|
4837
4922
|
blockers?: number | undefined;
|
|
4838
4923
|
adopted?: boolean | null | undefined;
|
|
4839
|
-
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
4924
|
+
applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
|
|
4840
4925
|
preTurnSha?: string | null | undefined;
|
|
4841
4926
|
postTurnSha?: string | null | undefined;
|
|
4842
4927
|
revertAnchorId?: string | null | undefined;
|
|
@@ -4844,7 +4929,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4844
4929
|
} | undefined;
|
|
4845
4930
|
outcomeFacts?: {
|
|
4846
4931
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
4847
|
-
noChanges?: boolean | undefined;
|
|
4932
|
+
noChanges?: boolean | null | undefined;
|
|
4848
4933
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
4849
4934
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
4850
4935
|
review_requested?: boolean | undefined;
|
|
@@ -4893,57 +4978,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
|
|
|
4893
4978
|
}[] | undefined;
|
|
4894
4979
|
}>;
|
|
4895
4980
|
export type ControlThreadDetail = z.infer<typeof ControlThreadDetail>;
|
|
4896
|
-
|
|
4897
|
-
* Models enumerable for one harness. `source` is honest about provenance:
|
|
4898
|
-
* "api" when the adapter implemented a real enumeration (raw-api / OpenAI
|
|
4899
|
-
* `GET /v1/models`), "manifest" when the list is the manifest's known-good
|
|
4900
|
-
* hint set, "none" when the harness has no model truth source at all (the
|
|
4901
|
-
* list is then empty and explicit models are refused under strict model-truth validation).
|
|
4902
|
-
*/
|
|
4903
|
-
export declare const ControlHarnessModelsResponse: z.ZodObject<{
|
|
4904
|
-
harnessId: z.ZodString;
|
|
4905
|
-
models: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4906
|
-
id: z.ZodString;
|
|
4907
|
-
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4908
|
-
context_window: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
4909
|
-
routes: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodEnum<["local_session", "api_key"]>, "many">>>;
|
|
4910
|
-
}, "strip", z.ZodTypeAny, {
|
|
4911
|
-
id: string;
|
|
4912
|
-
label: string | null;
|
|
4913
|
-
context_window: number | null;
|
|
4914
|
-
routes: ("api_key" | "local_session")[] | null;
|
|
4915
|
-
}, {
|
|
4916
|
-
id: string;
|
|
4917
|
-
label?: string | null | undefined;
|
|
4918
|
-
context_window?: number | null | undefined;
|
|
4919
|
-
routes?: ("api_key" | "local_session")[] | null | undefined;
|
|
4920
|
-
}>, "many">>;
|
|
4921
|
-
source: z.ZodEnum<["api", "manifest", "none"]>;
|
|
4922
|
-
/** Freshness note for manifest-sourced lists: the vendor CLI version the
|
|
4923
|
-
* known-model hints were last verified against (null for api/none). */
|
|
4924
|
-
verifiedAgainst: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4925
|
-
}, "strip", z.ZodTypeAny, {
|
|
4926
|
-
harnessId: string;
|
|
4927
|
-
models: {
|
|
4928
|
-
id: string;
|
|
4929
|
-
label: string | null;
|
|
4930
|
-
context_window: number | null;
|
|
4931
|
-
routes: ("api_key" | "local_session")[] | null;
|
|
4932
|
-
}[];
|
|
4933
|
-
source: "api" | "manifest" | "none";
|
|
4934
|
-
verifiedAgainst: string | null;
|
|
4935
|
-
}, {
|
|
4936
|
-
harnessId: string;
|
|
4937
|
-
models?: {
|
|
4938
|
-
id: string;
|
|
4939
|
-
label?: string | null | undefined;
|
|
4940
|
-
context_window?: number | null | undefined;
|
|
4941
|
-
routes?: ("api_key" | "local_session")[] | null | undefined;
|
|
4942
|
-
}[] | undefined;
|
|
4943
|
-
source: "api" | "manifest" | "none";
|
|
4944
|
-
verifiedAgainst?: string | null | undefined;
|
|
4945
|
-
}>;
|
|
4946
|
-
export type ControlHarnessModelsResponse = z.infer<typeof ControlHarnessModelsResponse>;
|
|
4981
|
+
export { ControlHarnessModelsResponse, ControlHarnessAccountCatalog, ControlHarnessAccountModelsResponse, ControlHarnessModelsQueryResponse, } from "./control-harness-models.js";
|
|
4947
4982
|
export declare const ControlSettingsSnapshot: z.ZodObject<{
|
|
4948
4983
|
sources: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4949
4984
|
/** Automatic-expiry policy for one interactive answer wait. */
|