@claudexor/schema 2.1.3 → 3.0.1
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 +32 -24
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +20 -11
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +166 -0
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +63 -2
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +5 -5
- package/dist/budget.d.ts +4 -4
- package/dist/config.d.ts +59 -41
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -6
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +6 -6
- package/dist/control-operation-responses.d.ts +190 -97
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +14 -1
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +347 -215
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +34 -7
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-thread-apply.d.ts +5 -5
- package/dist/control-trust.d.ts +6 -6
- package/dist/control.d.ts +769 -306
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +164 -61
- package/dist/control.js.map +1 -1
- package/dist/credential-profile.d.ts +400 -1
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +109 -4
- package/dist/credential-profile.js.map +1 -1
- package/dist/decision.d.ts +78 -14
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +53 -20
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +3 -3
- package/dist/delivery.js +1 -1
- package/dist/delivery.js.map +1 -1
- package/dist/events.d.ts +32 -6
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +45 -11
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +4 -4
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +2 -2
- package/dist/gate.js.map +1 -1
- package/dist/harness.d.ts +137 -47
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +65 -16
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +66 -7
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +29 -2
- package/dist/operation.js.map +1 -1
- package/dist/output-schema.d.ts +40 -0
- package/dist/output-schema.d.ts.map +1 -0
- package/dist/output-schema.js +109 -0
- package/dist/output-schema.js.map +1 -0
- package/dist/plan.d.ts +206 -0
- package/dist/plan.d.ts.map +1 -0
- package/dist/plan.js +107 -0
- package/dist/plan.js.map +1 -0
- package/dist/primitives.d.ts +14 -10
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +14 -11
- package/dist/primitives.js.map +1 -1
- package/dist/project.d.ts +75 -0
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +17 -0
- package/dist/project.js.map +1 -1
- package/dist/quota.d.ts +119 -0
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +22 -0
- package/dist/quota.js.map +1 -1
- package/dist/raw.d.ts +4 -4
- package/dist/readiness.d.ts +14 -7
- package/dist/readiness.d.ts.map +1 -1
- package/dist/run-strategy.d.ts +17 -0
- package/dist/run-strategy.d.ts.map +1 -0
- package/dist/run-strategy.js +47 -0
- package/dist/run-strategy.js.map +1 -0
- package/dist/setup.d.ts +160 -160
- package/dist/status-projection.d.ts +78 -0
- package/dist/status-projection.d.ts.map +1 -0
- package/dist/status-projection.js +171 -0
- package/dist/status-projection.js.map +1 -0
- package/dist/task.d.ts +48 -316
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +3 -60
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +89 -89
- package/dist/thread.d.ts +167 -32
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +92 -28
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +4 -6
- package/generated/ApplyEligibility.schema.json +1 -1
- package/generated/BudgetLease.schema.json +1 -2
- package/generated/ConformanceReport.schema.json +1 -2
- package/generated/ContinuityDisclosure.schema.json +74 -0
- package/generated/ControlApplyRequest.schema.json +1 -2
- package/generated/ControlCredentialProfileUpdateRequest.schema.json +20 -0
- package/generated/ControlCredentialProfileUpdateResponse.schema.json +142 -0
- package/generated/ControlCredentialProfilesResponse.schema.json +126 -2
- package/generated/ControlDeliveryResponse.schema.json +0 -1
- package/generated/ControlHandshakeResponse.schema.json +31 -3
- package/generated/ControlHarnessListResponse.schema.json +11 -6
- package/generated/ControlHarnessSettingsPatch.schema.json +4 -0
- package/generated/ControlOperationCatalog.schema.json +16 -1
- package/generated/ControlOperationDescriptor.schema.json +15 -0
- package/generated/ControlProject.schema.json +35 -0
- package/generated/ControlProjectListResponse.schema.json +35 -0
- package/generated/ControlProjectOutputsResponse.schema.json +57 -0
- package/generated/ControlQueuedRunInfo.schema.json +2 -11
- package/generated/ControlQuotaResponse.schema.json +42 -0
- package/generated/ControlRunAgainDraft.schema.json +37 -35
- package/generated/ControlRunDecisionRequest.schema.json +0 -1
- package/generated/ControlRunDetail.schema.json +292 -213
- package/generated/ControlRunListResponse.schema.json +88 -27
- package/generated/ControlRunStartRequest.schema.json +37 -35
- package/generated/ControlRunStartResponse.schema.json +2 -11
- package/generated/ControlRunSummary.schema.json +88 -27
- package/generated/ControlSettingsSnapshot.schema.json +6 -11
- package/generated/ControlSettingsUpdateRequest.schema.json +5 -10
- package/generated/ControlThread.schema.json +21 -3
- package/generated/ControlThreadApplyResponse.schema.json +0 -1
- package/generated/ControlThreadCreateRequest.schema.json +12 -3
- package/generated/ControlThreadDetail.schema.json +174 -16
- package/generated/ControlThreadListResponse.schema.json +60 -3
- package/generated/ControlThreadTurnRequest.schema.json +40 -34
- package/generated/ControlThreadUpdateRequest.schema.json +19 -0
- package/generated/DecisionRecord.schema.json +73 -33
- package/generated/GateResult.schema.json +1 -2
- package/generated/GlobalConfig.schema.json +7 -12
- package/generated/HarnessManifest.schema.json +11 -6
- package/generated/HarnessStatusDto.schema.json +11 -6
- package/generated/LaneCheckpoint.schema.json +59 -0
- package/generated/McpRunHandleResult.schema.json +234 -0
- package/generated/McpRunToolResult.schema.json +124 -2
- package/generated/RoutePrimaryDivergedPayload.schema.json +56 -0
- package/generated/RunEvent.schema.json +9 -5
- package/generated/RunTelemetry.schema.json +2 -4
- package/generated/TaskContract.schema.json +3 -135
- package/generated/Thread.schema.json +21 -3
- package/generated/ThreadTurn.schema.json +88 -0
- package/package.json +2 -2
- package/dist/control-spec.d.ts +0 -603
- package/dist/control-spec.d.ts.map +0 -1
- package/dist/control-spec.js +0 -87
- package/dist/control-spec.js.map +0 -1
- package/dist/orchestrate.d.ts +0 -556
- package/dist/orchestrate.d.ts.map +0 -1
- package/dist/orchestrate.js +0 -356
- package/dist/orchestrate.js.map +0 -1
- package/dist/spec.d.ts +0 -678
- package/dist/spec.d.ts.map +0 -1
- package/dist/spec.js +0 -186
- package/dist/spec.js.map +0 -1
- package/generated/ControlSpecAnswersRequest.schema.json +0 -74
- package/generated/ControlSpecQuestionsRequest.schema.json +0 -209
- package/generated/ControlSpecSession.schema.json +0 -261
- package/generated/ControlSpecSessionListResponse.schema.json +0 -273
- package/generated/OrchestrateContract.schema.json +0 -119
- package/generated/OrchestratePlan.schema.json +0 -264
- package/generated/OrchestratePlanProgress.schema.json +0 -164
- package/generated/SessionReboundLineage.schema.json +0 -73
- package/generated/SpecPack.schema.json +0 -483
|
@@ -16,14 +16,14 @@ export declare const ControlRunStartResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
16
16
|
taskId?: string | undefined;
|
|
17
17
|
}>, z.ZodObject<{
|
|
18
18
|
jobId: z.ZodString;
|
|
19
|
-
state: z.ZodEnum<["queued", "running", "
|
|
19
|
+
state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
|
|
20
20
|
error: z.ZodOptional<z.ZodString>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
state: "failed" | "cancelled" | "running" | "
|
|
22
|
+
state: "failed" | "cancelled" | "running" | "succeeded" | "interrupted" | "queued";
|
|
23
23
|
jobId: string;
|
|
24
24
|
error?: string | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
state: "failed" | "cancelled" | "running" | "
|
|
26
|
+
state: "failed" | "cancelled" | "running" | "succeeded" | "interrupted" | "queued";
|
|
27
27
|
jobId: string;
|
|
28
28
|
error?: string | undefined;
|
|
29
29
|
}>]>;
|
|
@@ -33,7 +33,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
33
33
|
jobId: z.ZodString;
|
|
34
34
|
runId: z.ZodString;
|
|
35
35
|
taskId: z.ZodOptional<z.ZodString>;
|
|
36
|
-
state: z.ZodEnum<["queued", "running", "
|
|
36
|
+
state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
|
|
37
37
|
runDir: z.ZodOptional<z.ZodString>;
|
|
38
38
|
error: z.ZodOptional<z.ZodString>;
|
|
39
39
|
failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -86,8 +86,8 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
86
86
|
context?: "off" | "auto" | undefined;
|
|
87
87
|
projectName?: string | null | undefined;
|
|
88
88
|
}>>;
|
|
89
|
-
mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "
|
|
90
|
-
strategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<["race", "attempts", "until_clean", "
|
|
89
|
+
mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
|
|
90
|
+
strategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<["race", "attempts", "until_clean", "deep_scan", "create"]>>>;
|
|
91
91
|
prompt: z.ZodOptional<z.ZodString>;
|
|
92
92
|
harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
93
93
|
primaryHarness: z.ZodOptional<z.ZodString>;
|
|
@@ -198,7 +198,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
198
198
|
rawDetailRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
199
199
|
available: z.ZodDefault<z.ZodBoolean>;
|
|
200
200
|
}, "strip", z.ZodTypeAny, {
|
|
201
|
-
status: "failed" | "none" | "attempted" | "
|
|
201
|
+
status: "failed" | "none" | "attempted" | "unverified" | "satisfied";
|
|
202
202
|
available: boolean;
|
|
203
203
|
target: string | null;
|
|
204
204
|
mode: "off" | "auto" | "cached" | "live";
|
|
@@ -210,7 +210,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
210
210
|
satisfied: boolean;
|
|
211
211
|
errorSummary: string | null;
|
|
212
212
|
}, {
|
|
213
|
-
status?: "failed" | "none" | "attempted" | "
|
|
213
|
+
status?: "failed" | "none" | "attempted" | "unverified" | "satisfied" | undefined;
|
|
214
214
|
available?: boolean | undefined;
|
|
215
215
|
target?: string | null | undefined;
|
|
216
216
|
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -274,6 +274,9 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
274
274
|
revertable: z.ZodDefault<z.ZodBoolean>;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
276
|
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
277
|
+
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
278
|
+
revertAnchorId: string | null;
|
|
279
|
+
postTurnSha: string | null;
|
|
277
280
|
diffStat: {
|
|
278
281
|
files: number;
|
|
279
282
|
additions: number;
|
|
@@ -281,13 +284,13 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
281
284
|
} | null;
|
|
282
285
|
blockers: number;
|
|
283
286
|
adopted: boolean | null;
|
|
284
|
-
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
285
287
|
preTurnSha: string | null;
|
|
286
|
-
postTurnSha: string | null;
|
|
287
|
-
revertAnchorId: string | null;
|
|
288
288
|
revertable: boolean;
|
|
289
289
|
}, {
|
|
290
290
|
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
291
|
+
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
292
|
+
revertAnchorId?: string | null | undefined;
|
|
293
|
+
postTurnSha?: string | null | undefined;
|
|
291
294
|
diffStat?: {
|
|
292
295
|
files: number;
|
|
293
296
|
additions: number;
|
|
@@ -295,12 +298,28 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
295
298
|
} | null | undefined;
|
|
296
299
|
blockers?: number | undefined;
|
|
297
300
|
adopted?: boolean | null | undefined;
|
|
298
|
-
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
299
301
|
preTurnSha?: string | null | undefined;
|
|
300
|
-
postTurnSha?: string | null | undefined;
|
|
301
|
-
revertAnchorId?: string | null | undefined;
|
|
302
302
|
revertable?: boolean | undefined;
|
|
303
303
|
}>>;
|
|
304
|
+
outcomeFacts: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
305
|
+
lifecycle: z.ZodEnum<["succeeded", "failed", "cancelled", "interrupted"]>;
|
|
306
|
+
noChanges: z.ZodDefault<z.ZodBoolean>;
|
|
307
|
+
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
308
|
+
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
309
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted"]>>>;
|
|
310
|
+
}, "strict", z.ZodTypeAny, {
|
|
311
|
+
review: "not_run" | "approved" | "blocked";
|
|
312
|
+
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null;
|
|
313
|
+
checks: "passed" | "failed" | "not_configured";
|
|
314
|
+
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
315
|
+
noChanges: boolean;
|
|
316
|
+
}, {
|
|
317
|
+
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
318
|
+
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
319
|
+
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null | undefined;
|
|
320
|
+
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
321
|
+
noChanges?: boolean | undefined;
|
|
322
|
+
}>>>;
|
|
304
323
|
waitingOnUser: z.ZodDefault<z.ZodBoolean>;
|
|
305
324
|
route: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
306
325
|
requestedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -324,24 +343,29 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
324
343
|
cwd: z.ZodOptional<z.ZodString>;
|
|
325
344
|
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
326
345
|
}, "strict", z.ZodTypeAny, {
|
|
327
|
-
program: string;
|
|
328
346
|
args: string[];
|
|
347
|
+
program: string;
|
|
329
348
|
envAllowlist: string[];
|
|
330
349
|
cwd?: string | undefined;
|
|
331
350
|
}, {
|
|
332
351
|
program: string;
|
|
333
|
-
cwd?: string | undefined;
|
|
334
352
|
args?: string[] | undefined;
|
|
353
|
+
cwd?: string | undefined;
|
|
335
354
|
envAllowlist?: string[] | undefined;
|
|
336
355
|
}>, "many">>;
|
|
337
|
-
specId: z.ZodOptional<z.ZodString>;
|
|
338
|
-
specHash: z.ZodOptional<z.ZodString>;
|
|
339
356
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
340
357
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
341
358
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
342
359
|
}, "strip", z.ZodTypeAny, {
|
|
343
|
-
state: "failed" | "cancelled" | "running" | "
|
|
360
|
+
state: "failed" | "cancelled" | "running" | "succeeded" | "interrupted" | "queued";
|
|
344
361
|
runId: string;
|
|
362
|
+
outcomeFacts: {
|
|
363
|
+
review: "not_run" | "approved" | "blocked";
|
|
364
|
+
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null;
|
|
365
|
+
checks: "passed" | "failed" | "not_configured";
|
|
366
|
+
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
367
|
+
noChanges: boolean;
|
|
368
|
+
} | null;
|
|
345
369
|
project: {
|
|
346
370
|
kind: "none" | "project";
|
|
347
371
|
root: string | null;
|
|
@@ -362,7 +386,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
362
386
|
nextActions: string[];
|
|
363
387
|
} | null;
|
|
364
388
|
webEvidence: {
|
|
365
|
-
status: "failed" | "none" | "attempted" | "
|
|
389
|
+
status: "failed" | "none" | "attempted" | "unverified" | "satisfied";
|
|
366
390
|
available: boolean;
|
|
367
391
|
target: string | null;
|
|
368
392
|
mode: "off" | "auto" | "cached" | "live";
|
|
@@ -387,6 +411,9 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
387
411
|
toolWarningsTotal: number;
|
|
388
412
|
result: {
|
|
389
413
|
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
414
|
+
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
415
|
+
revertAnchorId: string | null;
|
|
416
|
+
postTurnSha: string | null;
|
|
390
417
|
diffStat: {
|
|
391
418
|
files: number;
|
|
392
419
|
additions: number;
|
|
@@ -394,10 +421,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
394
421
|
} | null;
|
|
395
422
|
blockers: number;
|
|
396
423
|
adopted: boolean | null;
|
|
397
|
-
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
398
424
|
preTurnSha: string | null;
|
|
399
|
-
postTurnSha: string | null;
|
|
400
|
-
revertAnchorId: string | null;
|
|
401
425
|
revertable: boolean;
|
|
402
426
|
};
|
|
403
427
|
waitingOnUser: boolean;
|
|
@@ -410,22 +434,22 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
410
434
|
startedAt?: string | undefined;
|
|
411
435
|
error?: string | undefined;
|
|
412
436
|
createdAt?: string | undefined;
|
|
413
|
-
mode?: "ask" | "plan" | "
|
|
437
|
+
mode?: "ask" | "plan" | "agent" | undefined;
|
|
414
438
|
prompt?: string | undefined;
|
|
415
439
|
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
416
440
|
harnesses?: string[] | undefined;
|
|
417
441
|
runDir?: string | undefined;
|
|
418
442
|
model?: string | undefined;
|
|
419
443
|
tests?: {
|
|
420
|
-
program: string;
|
|
421
444
|
args: string[];
|
|
445
|
+
program: string;
|
|
422
446
|
envAllowlist: string[];
|
|
423
447
|
cwd?: string | undefined;
|
|
424
448
|
}[] | undefined;
|
|
425
|
-
n?: number | undefined;
|
|
426
449
|
taskId?: string | undefined;
|
|
427
450
|
primaryHarness?: string | undefined;
|
|
428
451
|
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
452
|
+
n?: number | undefined;
|
|
429
453
|
paidBudget?: {
|
|
430
454
|
kind: "unlimited";
|
|
431
455
|
} | {
|
|
@@ -437,14 +461,12 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
437
461
|
path: string;
|
|
438
462
|
reason?: string | undefined;
|
|
439
463
|
}[] | undefined;
|
|
440
|
-
specId?: string | undefined;
|
|
441
|
-
specHash?: string | undefined;
|
|
442
464
|
reviewerPanel?: {
|
|
443
465
|
harness: string;
|
|
444
466
|
model?: string | undefined;
|
|
445
467
|
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
446
468
|
}[] | undefined;
|
|
447
|
-
strategy?: "
|
|
469
|
+
strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
|
|
448
470
|
spendUsd?: number | null | undefined;
|
|
449
471
|
spendEstimated?: boolean | undefined;
|
|
450
472
|
inputTokens?: number | null | undefined;
|
|
@@ -470,22 +492,29 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
470
492
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
471
493
|
finishedAt?: string | undefined;
|
|
472
494
|
}, {
|
|
473
|
-
state: "failed" | "cancelled" | "running" | "
|
|
495
|
+
state: "failed" | "cancelled" | "running" | "succeeded" | "interrupted" | "queued";
|
|
474
496
|
runId: string;
|
|
475
497
|
jobId: string;
|
|
476
498
|
startedAt?: string | undefined;
|
|
477
499
|
error?: string | undefined;
|
|
478
500
|
createdAt?: string | undefined;
|
|
479
|
-
mode?: "ask" | "plan" | "
|
|
501
|
+
mode?: "ask" | "plan" | "agent" | undefined;
|
|
480
502
|
prompt?: string | undefined;
|
|
481
503
|
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
482
504
|
harnesses?: string[] | undefined;
|
|
483
505
|
runDir?: string | undefined;
|
|
506
|
+
outcomeFacts?: {
|
|
507
|
+
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
508
|
+
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
509
|
+
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null | undefined;
|
|
510
|
+
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
511
|
+
noChanges?: boolean | undefined;
|
|
512
|
+
} | null | undefined;
|
|
484
513
|
model?: string | undefined;
|
|
485
514
|
tests?: {
|
|
486
515
|
program: string;
|
|
487
|
-
cwd?: string | undefined;
|
|
488
516
|
args?: string[] | undefined;
|
|
517
|
+
cwd?: string | undefined;
|
|
489
518
|
envAllowlist?: string[] | undefined;
|
|
490
519
|
}[] | undefined;
|
|
491
520
|
project?: {
|
|
@@ -494,10 +523,10 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
494
523
|
context?: "off" | "auto" | undefined;
|
|
495
524
|
projectName?: string | null | undefined;
|
|
496
525
|
} | undefined;
|
|
497
|
-
n?: number | undefined;
|
|
498
526
|
taskId?: string | undefined;
|
|
499
527
|
primaryHarness?: string | undefined;
|
|
500
528
|
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
529
|
+
n?: number | undefined;
|
|
501
530
|
paidBudget?: {
|
|
502
531
|
kind: "unlimited";
|
|
503
532
|
} | {
|
|
@@ -509,8 +538,6 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
509
538
|
path: string;
|
|
510
539
|
reason?: string | undefined;
|
|
511
540
|
}[] | undefined;
|
|
512
|
-
specId?: string | undefined;
|
|
513
|
-
specHash?: string | undefined;
|
|
514
541
|
reviewerPanel?: {
|
|
515
542
|
harness: string;
|
|
516
543
|
model?: string | undefined;
|
|
@@ -528,7 +555,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
528
555
|
eventRefs?: string[] | undefined;
|
|
529
556
|
nextActions?: string[] | undefined;
|
|
530
557
|
} | null | undefined;
|
|
531
|
-
strategy?: "
|
|
558
|
+
strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
|
|
532
559
|
spendUsd?: number | null | undefined;
|
|
533
560
|
spendEstimated?: boolean | undefined;
|
|
534
561
|
inputTokens?: number | null | undefined;
|
|
@@ -552,7 +579,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
552
579
|
webRequired?: boolean | undefined;
|
|
553
580
|
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
554
581
|
webEvidence?: {
|
|
555
|
-
status?: "failed" | "none" | "attempted" | "
|
|
582
|
+
status?: "failed" | "none" | "attempted" | "unverified" | "satisfied" | undefined;
|
|
556
583
|
available?: boolean | undefined;
|
|
557
584
|
target?: string | null | undefined;
|
|
558
585
|
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -578,6 +605,9 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
578
605
|
toolWarningsTotal?: number | undefined;
|
|
579
606
|
result?: {
|
|
580
607
|
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
608
|
+
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
609
|
+
revertAnchorId?: string | null | undefined;
|
|
610
|
+
postTurnSha?: string | null | undefined;
|
|
581
611
|
diffStat?: {
|
|
582
612
|
files: number;
|
|
583
613
|
additions: number;
|
|
@@ -585,10 +615,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
585
615
|
} | null | undefined;
|
|
586
616
|
blockers?: number | undefined;
|
|
587
617
|
adopted?: boolean | null | undefined;
|
|
588
|
-
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
589
618
|
preTurnSha?: string | null | undefined;
|
|
590
|
-
postTurnSha?: string | null | undefined;
|
|
591
|
-
revertAnchorId?: string | null | undefined;
|
|
592
619
|
revertable?: boolean | undefined;
|
|
593
620
|
} | undefined;
|
|
594
621
|
waitingOnUser?: boolean | undefined;
|
|
@@ -602,8 +629,15 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
602
629
|
}>, "many">>;
|
|
603
630
|
}, "strict", z.ZodTypeAny, {
|
|
604
631
|
runs: {
|
|
605
|
-
state: "failed" | "cancelled" | "running" | "
|
|
632
|
+
state: "failed" | "cancelled" | "running" | "succeeded" | "interrupted" | "queued";
|
|
606
633
|
runId: string;
|
|
634
|
+
outcomeFacts: {
|
|
635
|
+
review: "not_run" | "approved" | "blocked";
|
|
636
|
+
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null;
|
|
637
|
+
checks: "passed" | "failed" | "not_configured";
|
|
638
|
+
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
639
|
+
noChanges: boolean;
|
|
640
|
+
} | null;
|
|
607
641
|
project: {
|
|
608
642
|
kind: "none" | "project";
|
|
609
643
|
root: string | null;
|
|
@@ -624,7 +658,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
624
658
|
nextActions: string[];
|
|
625
659
|
} | null;
|
|
626
660
|
webEvidence: {
|
|
627
|
-
status: "failed" | "none" | "attempted" | "
|
|
661
|
+
status: "failed" | "none" | "attempted" | "unverified" | "satisfied";
|
|
628
662
|
available: boolean;
|
|
629
663
|
target: string | null;
|
|
630
664
|
mode: "off" | "auto" | "cached" | "live";
|
|
@@ -649,6 +683,9 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
649
683
|
toolWarningsTotal: number;
|
|
650
684
|
result: {
|
|
651
685
|
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
686
|
+
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
687
|
+
revertAnchorId: string | null;
|
|
688
|
+
postTurnSha: string | null;
|
|
652
689
|
diffStat: {
|
|
653
690
|
files: number;
|
|
654
691
|
additions: number;
|
|
@@ -656,10 +693,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
656
693
|
} | null;
|
|
657
694
|
blockers: number;
|
|
658
695
|
adopted: boolean | null;
|
|
659
|
-
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
660
696
|
preTurnSha: string | null;
|
|
661
|
-
postTurnSha: string | null;
|
|
662
|
-
revertAnchorId: string | null;
|
|
663
697
|
revertable: boolean;
|
|
664
698
|
};
|
|
665
699
|
waitingOnUser: boolean;
|
|
@@ -672,22 +706,22 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
672
706
|
startedAt?: string | undefined;
|
|
673
707
|
error?: string | undefined;
|
|
674
708
|
createdAt?: string | undefined;
|
|
675
|
-
mode?: "ask" | "plan" | "
|
|
709
|
+
mode?: "ask" | "plan" | "agent" | undefined;
|
|
676
710
|
prompt?: string | undefined;
|
|
677
711
|
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
678
712
|
harnesses?: string[] | undefined;
|
|
679
713
|
runDir?: string | undefined;
|
|
680
714
|
model?: string | undefined;
|
|
681
715
|
tests?: {
|
|
682
|
-
program: string;
|
|
683
716
|
args: string[];
|
|
717
|
+
program: string;
|
|
684
718
|
envAllowlist: string[];
|
|
685
719
|
cwd?: string | undefined;
|
|
686
720
|
}[] | undefined;
|
|
687
|
-
n?: number | undefined;
|
|
688
721
|
taskId?: string | undefined;
|
|
689
722
|
primaryHarness?: string | undefined;
|
|
690
723
|
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
724
|
+
n?: number | undefined;
|
|
691
725
|
paidBudget?: {
|
|
692
726
|
kind: "unlimited";
|
|
693
727
|
} | {
|
|
@@ -699,14 +733,12 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
699
733
|
path: string;
|
|
700
734
|
reason?: string | undefined;
|
|
701
735
|
}[] | undefined;
|
|
702
|
-
specId?: string | undefined;
|
|
703
|
-
specHash?: string | undefined;
|
|
704
736
|
reviewerPanel?: {
|
|
705
737
|
harness: string;
|
|
706
738
|
model?: string | undefined;
|
|
707
739
|
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
708
740
|
}[] | undefined;
|
|
709
|
-
strategy?: "
|
|
741
|
+
strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
|
|
710
742
|
spendUsd?: number | null | undefined;
|
|
711
743
|
spendEstimated?: boolean | undefined;
|
|
712
744
|
inputTokens?: number | null | undefined;
|
|
@@ -734,22 +766,29 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
734
766
|
}[];
|
|
735
767
|
}, {
|
|
736
768
|
runs?: {
|
|
737
|
-
state: "failed" | "cancelled" | "running" | "
|
|
769
|
+
state: "failed" | "cancelled" | "running" | "succeeded" | "interrupted" | "queued";
|
|
738
770
|
runId: string;
|
|
739
771
|
jobId: string;
|
|
740
772
|
startedAt?: string | undefined;
|
|
741
773
|
error?: string | undefined;
|
|
742
774
|
createdAt?: string | undefined;
|
|
743
|
-
mode?: "ask" | "plan" | "
|
|
775
|
+
mode?: "ask" | "plan" | "agent" | undefined;
|
|
744
776
|
prompt?: string | undefined;
|
|
745
777
|
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
746
778
|
harnesses?: string[] | undefined;
|
|
747
779
|
runDir?: string | undefined;
|
|
780
|
+
outcomeFacts?: {
|
|
781
|
+
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
782
|
+
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
783
|
+
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null | undefined;
|
|
784
|
+
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
785
|
+
noChanges?: boolean | undefined;
|
|
786
|
+
} | null | undefined;
|
|
748
787
|
model?: string | undefined;
|
|
749
788
|
tests?: {
|
|
750
789
|
program: string;
|
|
751
|
-
cwd?: string | undefined;
|
|
752
790
|
args?: string[] | undefined;
|
|
791
|
+
cwd?: string | undefined;
|
|
753
792
|
envAllowlist?: string[] | undefined;
|
|
754
793
|
}[] | undefined;
|
|
755
794
|
project?: {
|
|
@@ -758,10 +797,10 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
758
797
|
context?: "off" | "auto" | undefined;
|
|
759
798
|
projectName?: string | null | undefined;
|
|
760
799
|
} | undefined;
|
|
761
|
-
n?: number | undefined;
|
|
762
800
|
taskId?: string | undefined;
|
|
763
801
|
primaryHarness?: string | undefined;
|
|
764
802
|
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
803
|
+
n?: number | undefined;
|
|
765
804
|
paidBudget?: {
|
|
766
805
|
kind: "unlimited";
|
|
767
806
|
} | {
|
|
@@ -773,8 +812,6 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
773
812
|
path: string;
|
|
774
813
|
reason?: string | undefined;
|
|
775
814
|
}[] | undefined;
|
|
776
|
-
specId?: string | undefined;
|
|
777
|
-
specHash?: string | undefined;
|
|
778
815
|
reviewerPanel?: {
|
|
779
816
|
harness: string;
|
|
780
817
|
model?: string | undefined;
|
|
@@ -792,7 +829,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
792
829
|
eventRefs?: string[] | undefined;
|
|
793
830
|
nextActions?: string[] | undefined;
|
|
794
831
|
} | null | undefined;
|
|
795
|
-
strategy?: "
|
|
832
|
+
strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
|
|
796
833
|
spendUsd?: number | null | undefined;
|
|
797
834
|
spendEstimated?: boolean | undefined;
|
|
798
835
|
inputTokens?: number | null | undefined;
|
|
@@ -816,7 +853,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
816
853
|
webRequired?: boolean | undefined;
|
|
817
854
|
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
818
855
|
webEvidence?: {
|
|
819
|
-
status?: "failed" | "none" | "attempted" | "
|
|
856
|
+
status?: "failed" | "none" | "attempted" | "unverified" | "satisfied" | undefined;
|
|
820
857
|
available?: boolean | undefined;
|
|
821
858
|
target?: string | null | undefined;
|
|
822
859
|
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -842,6 +879,9 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
842
879
|
toolWarningsTotal?: number | undefined;
|
|
843
880
|
result?: {
|
|
844
881
|
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
882
|
+
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
883
|
+
revertAnchorId?: string | null | undefined;
|
|
884
|
+
postTurnSha?: string | null | undefined;
|
|
845
885
|
diffStat?: {
|
|
846
886
|
files: number;
|
|
847
887
|
additions: number;
|
|
@@ -849,10 +889,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
849
889
|
} | null | undefined;
|
|
850
890
|
blockers?: number | undefined;
|
|
851
891
|
adopted?: boolean | null | undefined;
|
|
852
|
-
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
853
892
|
preTurnSha?: string | null | undefined;
|
|
854
|
-
postTurnSha?: string | null | undefined;
|
|
855
|
-
revertAnchorId?: string | null | undefined;
|
|
856
893
|
revertable?: boolean | undefined;
|
|
857
894
|
} | undefined;
|
|
858
895
|
waitingOnUser?: boolean | undefined;
|
|
@@ -902,6 +939,42 @@ export declare const ControlArtifactListResponse: z.ZodObject<{
|
|
|
902
939
|
}[] | undefined;
|
|
903
940
|
}>;
|
|
904
941
|
export type ControlArtifactListResponse = z.infer<typeof ControlArtifactListResponse>;
|
|
942
|
+
export declare const ControlProjectOutputsResponse: z.ZodObject<{
|
|
943
|
+
projectId: z.ZodString;
|
|
944
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
945
|
+
path: z.ZodString;
|
|
946
|
+
kind: z.ZodEnum<["file", "directory"]>;
|
|
947
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
948
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
949
|
+
}, "strip", z.ZodTypeAny, {
|
|
950
|
+
path: string;
|
|
951
|
+
kind: "file" | "directory";
|
|
952
|
+
mime?: string | undefined;
|
|
953
|
+
bytes?: number | undefined;
|
|
954
|
+
}, {
|
|
955
|
+
path: string;
|
|
956
|
+
kind: "file" | "directory";
|
|
957
|
+
mime?: string | undefined;
|
|
958
|
+
bytes?: number | undefined;
|
|
959
|
+
}>, "many">>;
|
|
960
|
+
}, "strict", z.ZodTypeAny, {
|
|
961
|
+
projectId: string;
|
|
962
|
+
artifacts: {
|
|
963
|
+
path: string;
|
|
964
|
+
kind: "file" | "directory";
|
|
965
|
+
mime?: string | undefined;
|
|
966
|
+
bytes?: number | undefined;
|
|
967
|
+
}[];
|
|
968
|
+
}, {
|
|
969
|
+
projectId: string;
|
|
970
|
+
artifacts?: {
|
|
971
|
+
path: string;
|
|
972
|
+
kind: "file" | "directory";
|
|
973
|
+
mime?: string | undefined;
|
|
974
|
+
bytes?: number | undefined;
|
|
975
|
+
}[] | undefined;
|
|
976
|
+
}>;
|
|
977
|
+
export type ControlProjectOutputsResponse = z.infer<typeof ControlProjectOutputsResponse>;
|
|
905
978
|
export declare const ControlApplyCheckResponse: z.ZodObject<{
|
|
906
979
|
ok: z.ZodBoolean;
|
|
907
980
|
code: z.ZodNullable<z.ZodNumber>;
|
|
@@ -917,7 +990,7 @@ export declare const ControlApplyCheckResponse: z.ZodObject<{
|
|
|
917
990
|
}>;
|
|
918
991
|
export type ControlApplyCheckResponse = z.infer<typeof ControlApplyCheckResponse>;
|
|
919
992
|
export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
920
|
-
mode: z.ZodEnum<["
|
|
993
|
+
mode: z.ZodEnum<["apply", "branch", "commit", "pr"]>;
|
|
921
994
|
applied: z.ZodBoolean;
|
|
922
995
|
branch: z.ZodOptional<z.ZodString>;
|
|
923
996
|
commit: z.ZodOptional<z.ZodString>;
|
|
@@ -967,7 +1040,7 @@ export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
|
967
1040
|
}>;
|
|
968
1041
|
targetPreimageSha: z.ZodString;
|
|
969
1042
|
}, "strict", z.ZodTypeAny, {
|
|
970
|
-
mode: "apply" | "commit" | "branch" | "pr"
|
|
1043
|
+
mode: "apply" | "commit" | "branch" | "pr";
|
|
971
1044
|
applied: boolean;
|
|
972
1045
|
finalVerify: {
|
|
973
1046
|
reason: string | null;
|
|
@@ -989,7 +1062,7 @@ export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
|
989
1062
|
treeMutated?: boolean | undefined;
|
|
990
1063
|
refused?: boolean | undefined;
|
|
991
1064
|
}, {
|
|
992
|
-
mode: "apply" | "commit" | "branch" | "pr"
|
|
1065
|
+
mode: "apply" | "commit" | "branch" | "pr";
|
|
993
1066
|
applied: boolean;
|
|
994
1067
|
finalVerify: {
|
|
995
1068
|
attempted: boolean;
|
|
@@ -1022,7 +1095,7 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1022
1095
|
}, {
|
|
1023
1096
|
resourceId: string;
|
|
1024
1097
|
}>, "many">>;
|
|
1025
|
-
mode: z.ZodDefault<z.ZodEnum<["ask", "plan", "
|
|
1098
|
+
mode: z.ZodDefault<z.ZodEnum<["ask", "plan", "agent"]>>;
|
|
1026
1099
|
scope: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1027
1100
|
kind: z.ZodLiteral<"project">;
|
|
1028
1101
|
root: z.ZodString;
|
|
@@ -1060,8 +1133,9 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1060
1133
|
n: z.ZodOptional<z.ZodNumber>;
|
|
1061
1134
|
attempts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1062
1135
|
untilClean: z.ZodOptional<z.ZodBoolean>;
|
|
1063
|
-
|
|
1136
|
+
deepScan: z.ZodOptional<z.ZodBoolean>;
|
|
1064
1137
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
1138
|
+
council: z.ZodOptional<z.ZodBoolean>;
|
|
1065
1139
|
synthesis: z.ZodOptional<z.ZodEnum<["auto", "always", "never"]>>;
|
|
1066
1140
|
paidBudget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1067
1141
|
kind: z.ZodLiteral<"unlimited">;
|
|
@@ -1089,14 +1163,14 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1089
1163
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1090
1164
|
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1091
1165
|
}, "strict", z.ZodTypeAny, {
|
|
1092
|
-
program: string;
|
|
1093
1166
|
args: string[];
|
|
1167
|
+
program: string;
|
|
1094
1168
|
envAllowlist: string[];
|
|
1095
1169
|
cwd?: string | undefined;
|
|
1096
1170
|
}, {
|
|
1097
1171
|
program: string;
|
|
1098
|
-
cwd?: string | undefined;
|
|
1099
1172
|
args?: string[] | undefined;
|
|
1173
|
+
cwd?: string | undefined;
|
|
1100
1174
|
envAllowlist?: string[] | undefined;
|
|
1101
1175
|
}>, "many">>;
|
|
1102
1176
|
protectedPathApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1109,14 +1183,24 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1109
1183
|
path: string;
|
|
1110
1184
|
reason?: string | undefined;
|
|
1111
1185
|
}>, "many">>;
|
|
1112
|
-
specPath: z.ZodOptional<z.ZodString>;
|
|
1113
|
-
specId: z.ZodOptional<z.ZodString>;
|
|
1114
|
-
specHash: z.ZodOptional<z.ZodString>;
|
|
1115
1186
|
threadId: z.ZodOptional<z.ZodString>;
|
|
1116
1187
|
turnId: z.ZodOptional<z.ZodString>;
|
|
1117
1188
|
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1118
1189
|
retryOf: z.ZodOptional<z.ZodString>;
|
|
1119
1190
|
planRunId: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
planRef: z.ZodOptional<z.ZodObject<{
|
|
1192
|
+
runId: z.ZodString;
|
|
1193
|
+
sha256: z.ZodString;
|
|
1194
|
+
path: z.ZodString;
|
|
1195
|
+
}, "strict", z.ZodTypeAny, {
|
|
1196
|
+
path: string;
|
|
1197
|
+
sha256: string;
|
|
1198
|
+
runId: string;
|
|
1199
|
+
}, {
|
|
1200
|
+
path: string;
|
|
1201
|
+
sha256: string;
|
|
1202
|
+
runId: string;
|
|
1203
|
+
}>>;
|
|
1120
1204
|
reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1121
1205
|
harness: z.ZodString;
|
|
1122
1206
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1132,14 +1216,17 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1132
1216
|
}>, "many">>;
|
|
1133
1217
|
authPreference: z.ZodOptional<z.ZodEnum<["subscription", "api_key", "auto"]>>;
|
|
1134
1218
|
credentialProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1135
|
-
|
|
1136
|
-
maxToolCalls: z.ZodOptional<z.ZodNumber>;
|
|
1219
|
+
delegate: z.ZodOptional<z.ZodBoolean>;
|
|
1137
1220
|
maxSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1138
1221
|
denyPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1139
1222
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1140
1223
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
1141
|
-
}, "
|
|
1142
|
-
|
|
1224
|
+
}, "threadId" | "turnId" | "retryOf" | "scope" | "execution" | "parentRunId"> & {
|
|
1225
|
+
/** Implement-plan only: explicitly proceed although the plan still has
|
|
1226
|
+
* open questions (D17). Recorded on the turn for provenance. */
|
|
1227
|
+
overridePlanReadiness: z.ZodOptional<z.ZodBoolean>;
|
|
1228
|
+
}, "strict", z.ZodTypeAny, {
|
|
1229
|
+
mode: "ask" | "plan" | "agent";
|
|
1143
1230
|
prompt: string;
|
|
1144
1231
|
web?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1145
1232
|
instructions?: string | undefined;
|
|
@@ -1149,26 +1236,31 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1149
1236
|
}[] | undefined;
|
|
1150
1237
|
browser?: boolean | undefined;
|
|
1151
1238
|
planRunId?: string | undefined;
|
|
1239
|
+
planRef?: {
|
|
1240
|
+
path: string;
|
|
1241
|
+
sha256: string;
|
|
1242
|
+
runId: string;
|
|
1243
|
+
} | undefined;
|
|
1152
1244
|
models?: Record<string, string> | undefined;
|
|
1153
1245
|
harnesses?: string[] | undefined;
|
|
1154
1246
|
model?: string | undefined;
|
|
1155
1247
|
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1156
1248
|
tests?: {
|
|
1157
|
-
program: string;
|
|
1158
1249
|
args: string[];
|
|
1250
|
+
program: string;
|
|
1159
1251
|
envAllowlist: string[];
|
|
1160
1252
|
cwd?: string | undefined;
|
|
1161
1253
|
}[] | undefined;
|
|
1162
|
-
autonomy?: "suggest" | "auto_safe" | "auto_full" | undefined;
|
|
1163
|
-
n?: number | undefined;
|
|
1164
1254
|
primaryHarness?: string | undefined;
|
|
1165
1255
|
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
1166
1256
|
reviewerModels?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
|
|
1167
1257
|
reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", "low" | "medium" | "high" | "xhigh" | "max">> | undefined;
|
|
1258
|
+
n?: number | undefined;
|
|
1168
1259
|
attempts?: number | null | undefined;
|
|
1169
1260
|
untilClean?: boolean | undefined;
|
|
1170
|
-
|
|
1261
|
+
deepScan?: boolean | undefined;
|
|
1171
1262
|
create?: boolean | undefined;
|
|
1263
|
+
council?: boolean | undefined;
|
|
1172
1264
|
synthesis?: "auto" | "never" | "always" | undefined;
|
|
1173
1265
|
paidBudget?: {
|
|
1174
1266
|
kind: "unlimited";
|
|
@@ -1181,9 +1273,6 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1181
1273
|
path: string;
|
|
1182
1274
|
reason?: string | undefined;
|
|
1183
1275
|
}[] | undefined;
|
|
1184
|
-
specPath?: string | undefined;
|
|
1185
|
-
specId?: string | undefined;
|
|
1186
|
-
specHash?: string | undefined;
|
|
1187
1276
|
reviewerPanel?: {
|
|
1188
1277
|
harness: string;
|
|
1189
1278
|
model?: string | undefined;
|
|
@@ -1191,15 +1280,16 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1191
1280
|
}[] | undefined;
|
|
1192
1281
|
authPreference?: "auto" | "subscription" | "api_key" | undefined;
|
|
1193
1282
|
credentialProfileId?: string | null | undefined;
|
|
1194
|
-
|
|
1283
|
+
delegate?: boolean | undefined;
|
|
1195
1284
|
maxSeconds?: number | undefined;
|
|
1196
1285
|
denyPaths?: string[] | undefined;
|
|
1197
1286
|
outputSchema?: Record<string, unknown> | undefined;
|
|
1198
1287
|
maxTurns?: number | undefined;
|
|
1288
|
+
overridePlanReadiness?: boolean | undefined;
|
|
1199
1289
|
}, {
|
|
1200
1290
|
web?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1201
1291
|
instructions?: string | undefined;
|
|
1202
|
-
mode?: "ask" | "plan" | "
|
|
1292
|
+
mode?: "ask" | "plan" | "agent" | undefined;
|
|
1203
1293
|
prompt?: string | undefined;
|
|
1204
1294
|
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1205
1295
|
attachments?: {
|
|
@@ -1207,26 +1297,31 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1207
1297
|
}[] | undefined;
|
|
1208
1298
|
browser?: boolean | undefined;
|
|
1209
1299
|
planRunId?: string | undefined;
|
|
1300
|
+
planRef?: {
|
|
1301
|
+
path: string;
|
|
1302
|
+
sha256: string;
|
|
1303
|
+
runId: string;
|
|
1304
|
+
} | undefined;
|
|
1210
1305
|
models?: Record<string, string> | undefined;
|
|
1211
1306
|
harnesses?: string[] | undefined;
|
|
1212
1307
|
model?: string | undefined;
|
|
1213
1308
|
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1214
1309
|
tests?: {
|
|
1215
1310
|
program: string;
|
|
1216
|
-
cwd?: string | undefined;
|
|
1217
1311
|
args?: string[] | undefined;
|
|
1312
|
+
cwd?: string | undefined;
|
|
1218
1313
|
envAllowlist?: string[] | undefined;
|
|
1219
1314
|
}[] | undefined;
|
|
1220
|
-
autonomy?: "suggest" | "auto_safe" | "auto_full" | undefined;
|
|
1221
|
-
n?: number | undefined;
|
|
1222
1315
|
primaryHarness?: string | undefined;
|
|
1223
1316
|
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
1224
1317
|
reviewerModels?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
|
|
1225
1318
|
reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", "low" | "medium" | "high" | "xhigh" | "max">> | undefined;
|
|
1319
|
+
n?: number | undefined;
|
|
1226
1320
|
attempts?: number | null | undefined;
|
|
1227
1321
|
untilClean?: boolean | undefined;
|
|
1228
|
-
|
|
1322
|
+
deepScan?: boolean | undefined;
|
|
1229
1323
|
create?: boolean | undefined;
|
|
1324
|
+
council?: boolean | undefined;
|
|
1230
1325
|
synthesis?: "auto" | "never" | "always" | undefined;
|
|
1231
1326
|
paidBudget?: {
|
|
1232
1327
|
kind: "unlimited";
|
|
@@ -1239,9 +1334,6 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1239
1334
|
path: string;
|
|
1240
1335
|
reason?: string | undefined;
|
|
1241
1336
|
}[] | undefined;
|
|
1242
|
-
specPath?: string | undefined;
|
|
1243
|
-
specId?: string | undefined;
|
|
1244
|
-
specHash?: string | undefined;
|
|
1245
1337
|
reviewerPanel?: {
|
|
1246
1338
|
harness: string;
|
|
1247
1339
|
model?: string | undefined;
|
|
@@ -1249,11 +1341,12 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1249
1341
|
}[] | undefined;
|
|
1250
1342
|
authPreference?: "auto" | "subscription" | "api_key" | undefined;
|
|
1251
1343
|
credentialProfileId?: string | null | undefined;
|
|
1252
|
-
|
|
1344
|
+
delegate?: boolean | undefined;
|
|
1253
1345
|
maxSeconds?: number | undefined;
|
|
1254
1346
|
denyPaths?: string[] | undefined;
|
|
1255
1347
|
outputSchema?: Record<string, unknown> | undefined;
|
|
1256
1348
|
maxTurns?: number | undefined;
|
|
1349
|
+
overridePlanReadiness?: boolean | undefined;
|
|
1257
1350
|
}>;
|
|
1258
1351
|
export type ControlThreadTurnRequest = z.infer<typeof ControlThreadTurnRequest>;
|
|
1259
1352
|
export declare const ControlThreadTurnResponse: z.ZodUnion<[z.ZodObject<{
|
|
@@ -1265,17 +1358,17 @@ export declare const ControlThreadTurnResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
1265
1358
|
threadId: z.ZodString;
|
|
1266
1359
|
turnId: z.ZodString;
|
|
1267
1360
|
}, "strip", z.ZodTypeAny, {
|
|
1361
|
+
threadId: string;
|
|
1268
1362
|
turnId: string;
|
|
1269
1363
|
runId: string;
|
|
1270
1364
|
runDir: string;
|
|
1271
|
-
threadId: string;
|
|
1272
1365
|
jobId?: string | undefined;
|
|
1273
1366
|
taskId?: string | undefined;
|
|
1274
1367
|
}, {
|
|
1368
|
+
threadId: string;
|
|
1275
1369
|
turnId: string;
|
|
1276
1370
|
runId: string;
|
|
1277
1371
|
runDir: string;
|
|
1278
|
-
threadId: string;
|
|
1279
1372
|
jobId?: string | undefined;
|
|
1280
1373
|
taskId?: string | undefined;
|
|
1281
1374
|
}>, z.ZodObject<{
|
|
@@ -1285,14 +1378,14 @@ export declare const ControlThreadTurnResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
1285
1378
|
state: z.ZodString;
|
|
1286
1379
|
}, "strict", z.ZodTypeAny, {
|
|
1287
1380
|
state: string;
|
|
1381
|
+
threadId: string;
|
|
1288
1382
|
turnId: string;
|
|
1289
1383
|
jobId: string;
|
|
1290
|
-
threadId: string;
|
|
1291
1384
|
}, {
|
|
1292
1385
|
state: string;
|
|
1386
|
+
threadId: string;
|
|
1293
1387
|
turnId: string;
|
|
1294
1388
|
jobId: string;
|
|
1295
|
-
threadId: string;
|
|
1296
1389
|
}>]>;
|
|
1297
1390
|
export type ControlThreadTurnResponse = z.infer<typeof ControlThreadTurnResponse>;
|
|
1298
1391
|
//# sourceMappingURL=control-operation-responses.d.ts.map
|