@claudexor/schema 1.0.0 → 2.0.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 +88 -16
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +49 -18
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +22 -6
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +113 -48
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +60 -45
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +1423 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +317 -0
- package/dist/auth.js.map +1 -0
- package/dist/budget.d.ts +133 -16
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +65 -22
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +449 -115
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +114 -41
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +6 -6
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +31 -7
- package/dist/context.js.map +1 -1
- package/dist/control-operation-responses.d.ts +1172 -0
- package/dist/control-operation-responses.d.ts.map +1 -0
- package/dist/control-operation-responses.js +35 -0
- package/dist/control-operation-responses.js.map +1 -0
- package/dist/control-run-detail.d.ts +443 -242
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +72 -17
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +88 -0
- package/dist/control-run-retry.d.ts.map +1 -0
- package/dist/control-run-retry.js +40 -0
- package/dist/control-run-retry.js.map +1 -0
- package/dist/control-run-scope.d.ts +25 -0
- package/dist/control-run-scope.d.ts.map +1 -0
- package/dist/control-run-scope.js +22 -0
- package/dist/control-run-scope.js.map +1 -0
- package/dist/control-secret.d.ts +90 -0
- package/dist/control-secret.d.ts.map +1 -0
- package/dist/control-secret.js +35 -0
- package/dist/control-secret.js.map +1 -0
- package/dist/control-spec.d.ts +592 -0
- package/dist/control-spec.d.ts.map +1 -0
- package/dist/control-spec.js +85 -0
- package/dist/control-spec.js.map +1 -0
- package/dist/control-thread-apply.d.ts +175 -0
- package/dist/control-thread-apply.d.ts.map +1 -0
- package/dist/control-thread-apply.js +31 -0
- package/dist/control-thread-apply.js.map +1 -0
- package/dist/control-trust.d.ts +74 -10
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +31 -11
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1391 -878
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +468 -310
- package/dist/control.js.map +1 -1
- package/dist/decision.d.ts +10 -10
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +62 -15
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +99 -0
- package/dist/delivery.d.ts.map +1 -0
- package/dist/delivery.js +19 -0
- package/dist/delivery.js.map +1 -0
- package/dist/events.d.ts +25 -2
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +25 -4
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +25 -5
- package/dist/gate.js.map +1 -1
- package/dist/harness.d.ts +558 -175
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +207 -82
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +185 -0
- package/dist/operation.d.ts.map +1 -0
- package/dist/operation.js +50 -0
- package/dist/operation.js.map +1 -0
- package/dist/orchestrate.d.ts +127 -22
- package/dist/orchestrate.d.ts.map +1 -1
- package/dist/orchestrate.js +61 -7
- package/dist/orchestrate.js.map +1 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +4 -1
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +29 -0
- package/dist/problem.d.ts.map +1 -0
- package/dist/problem.js +17 -0
- package/dist/problem.js.map +1 -0
- package/dist/project.d.ts +97 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +27 -0
- package/dist/project.js.map +1 -0
- package/dist/quota.d.ts +251 -0
- package/dist/quota.d.ts.map +1 -0
- package/dist/quota.js +46 -0
- package/dist/quota.js.map +1 -0
- package/dist/raw.d.ts +195 -0
- package/dist/raw.d.ts.map +1 -0
- package/dist/raw.js +58 -0
- package/dist/raw.js.map +1 -0
- package/dist/recovery.d.ts +515 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +93 -0
- package/dist/recovery.js.map +1 -0
- package/dist/request-requirements.d.ts +36 -0
- package/dist/request-requirements.d.ts.map +1 -0
- package/dist/request-requirements.js +26 -0
- package/dist/request-requirements.js.map +1 -0
- package/dist/review.d.ts +26 -26
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +50 -10
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +10 -10
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +19 -4
- package/dist/route.js.map +1 -1
- package/dist/setup.d.ts +9766 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +450 -0
- package/dist/setup.js.map +1 -0
- package/dist/spec.d.ts +174 -57
- package/dist/spec.d.ts.map +1 -1
- package/dist/spec.js +69 -16
- package/dist/spec.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +25 -21
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +1560 -58
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +97 -18
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +233 -60
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +97 -15
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +68 -41
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +45 -11
- package/dist/thread.js.map +1 -1
- package/dist/workproduct.d.ts +3 -3
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +12 -3
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +53 -11
- package/generated/BudgetLease.schema.json +55 -6
- package/generated/BudgetObservation.schema.json +28 -7
- package/generated/ConformanceReport.schema.json +49 -0
- package/generated/ControlApplyCheckResponse.schema.json +34 -0
- package/generated/ControlArtifactListResponse.schema.json +57 -0
- package/generated/ControlAuthReadinessRefreshRequest.schema.json +38 -0
- package/generated/ControlAuthReadinessRefreshResponse.schema.json +85 -0
- package/generated/ControlDeliveryResponse.schema.json +136 -0
- package/generated/ControlHandshakeRequest.schema.json +26 -0
- package/generated/ControlHandshakeResponse.schema.json +30 -0
- package/generated/ControlHarnessListResponse.schema.json +103 -12
- package/generated/ControlHarnessSettingsPatch.schema.json +0 -12
- package/generated/ControlJournalEvent.schema.json +42 -0
- package/generated/ControlJournalExportReceipt.schema.json +49 -0
- package/generated/ControlJournalInspection.schema.json +149 -0
- package/generated/ControlJournalQuarantineReceipt.schema.json +55 -0
- package/generated/ControlJournalQuarantineRequest.schema.json +24 -0
- package/generated/ControlJournalValidation.schema.json +181 -0
- package/generated/ControlOperationCatalog.schema.json +128 -0
- package/generated/ControlOperationDescriptor.schema.json +110 -0
- package/generated/ControlProblem.schema.json +59 -0
- package/generated/ControlProject.schema.json +42 -0
- package/generated/ControlProjectListResponse.schema.json +54 -0
- package/generated/ControlProjectRegisterRequest.schema.json +19 -0
- package/generated/ControlProjectRelinkRequest.schema.json +19 -0
- package/generated/ControlQueuedRunInfo.schema.json +4 -2
- package/generated/ControlQuotaResponse.schema.json +176 -0
- package/generated/ControlResource.schema.json +59 -0
- package/generated/ControlRunAgainDraft.schema.json +499 -0
- package/generated/ControlRunDetail.schema.json +197 -30
- package/generated/ControlRunListResponse.schema.json +797 -0
- package/generated/ControlRunRetryResponse.schema.json +54 -0
- package/generated/ControlRunStartRequest.schema.json +83 -55
- package/generated/ControlRunStartResponse.schema.json +78 -0
- package/generated/ControlRunSummary.schema.json +140 -20
- package/generated/ControlSecretListResponse.schema.json +8 -14
- package/generated/ControlSecretMutationResponse.schema.json +32 -0
- package/generated/ControlSecretSetRequest.schema.json +27 -0
- package/generated/ControlSettingsSnapshot.schema.json +118 -44
- package/generated/ControlSettingsUpdateRequest.schema.json +110 -40
- package/generated/ControlSetupJob.schema.json +763 -65
- package/generated/ControlSetupJobCreateRequest.schema.json +11 -13
- package/generated/ControlSetupJobEvent.schema.json +861 -5
- package/generated/ControlSetupJobListFilter.schema.json +35 -0
- package/generated/ControlSetupJobListResponse.schema.json +763 -65
- package/generated/ControlSetupJobSnapshot.schema.json +870 -0
- package/generated/ControlSpecAnswersRequest.schema.json +74 -0
- package/generated/ControlSpecQuestionsRequest.schema.json +128 -2
- package/generated/ControlSpecSession.schema.json +249 -0
- package/generated/ControlSpecSessionListResponse.schema.json +261 -0
- package/generated/ControlThread.schema.json +20 -2
- package/generated/ControlThreadApplyResponse.schema.json +139 -0
- package/generated/ControlThreadDetail.schema.json +32 -4
- package/generated/ControlThreadListResponse.schema.json +20 -2
- package/generated/ControlThreadTurnRequest.schema.json +373 -0
- package/generated/ControlThreadTurnResponse.schema.json +73 -0
- package/generated/ControlThreadUpdateRequest.schema.json +1 -1
- package/generated/ControlTrustListResponse.schema.json +6 -0
- package/generated/ControlTrustState.schema.json +6 -0
- package/generated/ControlTrustUpdateRequest.schema.json +65 -3
- package/generated/ControlUploadCreateRequest.schema.json +37 -0
- package/generated/ControlUploadFinalizeRequest.schema.json +17 -0
- package/generated/ControlUploadStatus.schema.json +40 -0
- package/generated/DecisionRecord.schema.json +6 -3
- package/generated/GlobalConfig.schema.json +105 -58
- package/generated/HarnessEvent.schema.json +201 -10
- package/generated/HarnessManifest.schema.json +63 -12
- package/generated/HarnessStatusDto.schema.json +103 -12
- package/generated/OrchestrateContract.schema.json +32 -6
- package/generated/OrchestratePlan.schema.json +20 -0
- package/generated/OrchestratePlanProgress.schema.json +61 -0
- package/generated/PaidBudget.schema.json +42 -0
- package/generated/Project.schema.json +45 -0
- package/generated/ProjectConfig.schema.json +45 -18
- package/generated/RawContextPacket.schema.json +184 -0
- package/generated/RawGitPatchEnvelope.schema.json +70 -0
- package/generated/RunTelemetry.schema.json +80 -0
- package/generated/SecretMetadata.schema.json +4 -7
- package/generated/SpecPack.schema.json +118 -7
- package/generated/TaskContract.schema.json +159 -26
- package/generated/TestCommandInvocation.schema.json +45 -0
- package/generated/Thread.schema.json +62 -6
- package/generated/ThreadTurn.schema.json +24 -11
- package/generated/TrustConfig.schema.json +77 -0
- package/package.json +1 -1
- package/generated/ControlSetupJobConfirmRequest.schema.json +0 -18
- package/generated/ControlSpecFreezeRequest.schema.json +0 -83
|
@@ -0,0 +1,1172 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ControlRunStartResponse: z.ZodUnion<[z.ZodObject<{
|
|
3
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
4
|
+
runId: z.ZodString;
|
|
5
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
runDir: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
runId: string;
|
|
9
|
+
runDir: string;
|
|
10
|
+
jobId?: string | undefined;
|
|
11
|
+
taskId?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
runId: string;
|
|
14
|
+
runDir: string;
|
|
15
|
+
jobId?: string | undefined;
|
|
16
|
+
taskId?: string | undefined;
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
jobId: z.ZodString;
|
|
19
|
+
state: z.ZodEnum<["queued", "running", "blocked", "succeeded", "no_op", "ungated", "review_not_run", "failed", "cancelled", "interrupted_unknown", "cost_unverifiable", "exhausted_overshoot", "exhausted", "not_converged", "stuck_no_progress"]>;
|
|
20
|
+
error: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
state: "failed" | "cancelled" | "running" | "interrupted_unknown" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | "queued" | "succeeded";
|
|
23
|
+
jobId: string;
|
|
24
|
+
error?: string | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
state: "failed" | "cancelled" | "running" | "interrupted_unknown" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | "queued" | "succeeded";
|
|
27
|
+
jobId: string;
|
|
28
|
+
error?: string | undefined;
|
|
29
|
+
}>]>;
|
|
30
|
+
export type ControlRunStartResponse = z.infer<typeof ControlRunStartResponse>;
|
|
31
|
+
export declare const ControlRunListResponse: z.ZodObject<{
|
|
32
|
+
runs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
33
|
+
jobId: z.ZodString;
|
|
34
|
+
runId: z.ZodString;
|
|
35
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
state: z.ZodEnum<["queued", "running", "blocked", "succeeded", "no_op", "ungated", "review_not_run", "failed", "cancelled", "interrupted_unknown", "cost_unverifiable", "exhausted_overshoot", "exhausted", "not_converged", "stuck_no_progress"]>;
|
|
37
|
+
runDir: z.ZodOptional<z.ZodString>;
|
|
38
|
+
error: z.ZodOptional<z.ZodString>;
|
|
39
|
+
failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
phase: z.ZodDefault<z.ZodString>;
|
|
41
|
+
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
42
|
+
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
safeMessage: z.ZodString;
|
|
45
|
+
rawDetailRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
logRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
47
|
+
eventRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
48
|
+
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
harnessId: string | null;
|
|
52
|
+
attemptId: string | null;
|
|
53
|
+
runDir: string | null;
|
|
54
|
+
phase: string;
|
|
55
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
56
|
+
safeMessage: string;
|
|
57
|
+
rawDetailRef: string | null;
|
|
58
|
+
logRefs: string[];
|
|
59
|
+
eventRefs: string[];
|
|
60
|
+
nextActions: string[];
|
|
61
|
+
}, {
|
|
62
|
+
safeMessage: string;
|
|
63
|
+
harnessId?: string | null | undefined;
|
|
64
|
+
attemptId?: string | null | undefined;
|
|
65
|
+
runDir?: string | null | undefined;
|
|
66
|
+
phase?: string | undefined;
|
|
67
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
68
|
+
rawDetailRef?: string | null | undefined;
|
|
69
|
+
logRefs?: string[] | undefined;
|
|
70
|
+
eventRefs?: string[] | undefined;
|
|
71
|
+
nextActions?: string[] | undefined;
|
|
72
|
+
}>>>;
|
|
73
|
+
project: z.ZodDefault<z.ZodObject<{
|
|
74
|
+
kind: z.ZodDefault<z.ZodEnum<["project", "none"]>>;
|
|
75
|
+
root: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
projectName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
context: z.ZodDefault<z.ZodEnum<["off", "auto"]>>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
kind: "none" | "project";
|
|
80
|
+
root: string | null;
|
|
81
|
+
context: "off" | "auto";
|
|
82
|
+
projectName: string | null;
|
|
83
|
+
}, {
|
|
84
|
+
kind?: "none" | "project" | undefined;
|
|
85
|
+
root?: string | null | undefined;
|
|
86
|
+
context?: "off" | "auto" | undefined;
|
|
87
|
+
projectName?: string | null | undefined;
|
|
88
|
+
}>>;
|
|
89
|
+
mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "audit", "agent", "orchestrate"]>>;
|
|
90
|
+
strategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<["race", "attempts", "until_clean", "swarm", "create"]>>>;
|
|
91
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
92
|
+
harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
93
|
+
primaryHarness: z.ZodOptional<z.ZodString>;
|
|
94
|
+
routingGoal: z.ZodOptional<z.ZodEnum<["auto", "quality", "economy"]>>;
|
|
95
|
+
model: z.ZodOptional<z.ZodString>;
|
|
96
|
+
reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
97
|
+
harness: z.ZodString;
|
|
98
|
+
model: z.ZodOptional<z.ZodString>;
|
|
99
|
+
effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
|
|
100
|
+
}, "strict", z.ZodTypeAny, {
|
|
101
|
+
harness: string;
|
|
102
|
+
model?: string | undefined;
|
|
103
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
harness: string;
|
|
106
|
+
model?: string | undefined;
|
|
107
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
108
|
+
}>, "many">>;
|
|
109
|
+
protectedPathApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
110
|
+
path: z.ZodString;
|
|
111
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, "strict", z.ZodTypeAny, {
|
|
113
|
+
path: string;
|
|
114
|
+
reason?: string | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
path: string;
|
|
117
|
+
reason?: string | undefined;
|
|
118
|
+
}>, "many">>;
|
|
119
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
paidBudget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
121
|
+
kind: z.ZodLiteral<"unlimited">;
|
|
122
|
+
}, "strict", z.ZodTypeAny, {
|
|
123
|
+
kind: "unlimited";
|
|
124
|
+
}, {
|
|
125
|
+
kind: "unlimited";
|
|
126
|
+
}>, z.ZodObject<{
|
|
127
|
+
kind: z.ZodLiteral<"finite">;
|
|
128
|
+
maxUsd: z.ZodNumber;
|
|
129
|
+
}, "strict", z.ZodTypeAny, {
|
|
130
|
+
kind: "finite";
|
|
131
|
+
maxUsd: number;
|
|
132
|
+
}, {
|
|
133
|
+
kind: "finite";
|
|
134
|
+
maxUsd: number;
|
|
135
|
+
}>]>>;
|
|
136
|
+
spendUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
137
|
+
spendEstimated: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
access: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
|
|
139
|
+
requestedAccess: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
|
|
140
|
+
effectiveAccess: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
|
|
141
|
+
externalContextPolicy: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
|
|
142
|
+
webRequired: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
webMode: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
|
|
144
|
+
webEvidence: z.ZodDefault<z.ZodObject<{
|
|
145
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
146
|
+
mode: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
|
|
147
|
+
effectiveMode: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
|
|
148
|
+
attempted: z.ZodDefault<z.ZodBoolean>;
|
|
149
|
+
satisfied: z.ZodDefault<z.ZodBoolean>;
|
|
150
|
+
status: z.ZodDefault<z.ZodEnum<["none", "attempted", "satisfied", "failed", "unverified"]>>;
|
|
151
|
+
tool: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
152
|
+
target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
154
|
+
rawDetailRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
available: z.ZodDefault<z.ZodBoolean>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
|
|
158
|
+
available: boolean;
|
|
159
|
+
mode: "off" | "auto" | "cached" | "live";
|
|
160
|
+
target: string | null;
|
|
161
|
+
tool: string | null;
|
|
162
|
+
required: boolean;
|
|
163
|
+
attempted: boolean;
|
|
164
|
+
rawDetailRef: string | null;
|
|
165
|
+
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
166
|
+
satisfied: boolean;
|
|
167
|
+
errorSummary: string | null;
|
|
168
|
+
}, {
|
|
169
|
+
status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
|
|
170
|
+
available?: boolean | undefined;
|
|
171
|
+
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
172
|
+
target?: string | null | undefined;
|
|
173
|
+
tool?: string | null | undefined;
|
|
174
|
+
required?: boolean | undefined;
|
|
175
|
+
attempted?: boolean | undefined;
|
|
176
|
+
rawDetailRef?: string | null | undefined;
|
|
177
|
+
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
178
|
+
satisfied?: boolean | undefined;
|
|
179
|
+
errorSummary?: string | null | undefined;
|
|
180
|
+
}>>;
|
|
181
|
+
requestRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
182
|
+
capability: z.ZodLiteral<"browser">;
|
|
183
|
+
harness_id: z.ZodString;
|
|
184
|
+
eligible: z.ZodBoolean;
|
|
185
|
+
requested: z.ZodBoolean;
|
|
186
|
+
effective: z.ZodBoolean;
|
|
187
|
+
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible"]>;
|
|
188
|
+
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
189
|
+
}, "strip", z.ZodTypeAny, {
|
|
190
|
+
requested: boolean;
|
|
191
|
+
effective: boolean;
|
|
192
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
193
|
+
evidence_refs: string[];
|
|
194
|
+
harness_id: string;
|
|
195
|
+
eligible: boolean;
|
|
196
|
+
capability: "browser";
|
|
197
|
+
}, {
|
|
198
|
+
requested: boolean;
|
|
199
|
+
effective: boolean;
|
|
200
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
201
|
+
harness_id: string;
|
|
202
|
+
eligible: boolean;
|
|
203
|
+
capability: "browser";
|
|
204
|
+
evidence_refs?: string[] | undefined;
|
|
205
|
+
}>, "many">>;
|
|
206
|
+
toolPermissionPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
207
|
+
outputReadyState: z.ZodDefault<z.ZodEnum<["pending", "finalizing", "ready", "diagnostic"]>>;
|
|
208
|
+
toolWarningsTotal: z.ZodDefault<z.ZodNumber>;
|
|
209
|
+
result: z.ZodDefault<z.ZodObject<{
|
|
210
|
+
kind: z.ZodDefault<z.ZodEnum<["patch", "answer", "plan", "report", "none"]>>;
|
|
211
|
+
diffStat: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
212
|
+
files: z.ZodNumber;
|
|
213
|
+
additions: z.ZodNumber;
|
|
214
|
+
deletions: z.ZodNumber;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
files: number;
|
|
217
|
+
additions: number;
|
|
218
|
+
deletions: number;
|
|
219
|
+
}, {
|
|
220
|
+
files: number;
|
|
221
|
+
additions: number;
|
|
222
|
+
deletions: number;
|
|
223
|
+
}>>>;
|
|
224
|
+
blockers: z.ZodDefault<z.ZodNumber>;
|
|
225
|
+
adopted: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
226
|
+
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted"]>>;
|
|
227
|
+
preTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
228
|
+
postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
229
|
+
revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
230
|
+
revertable: z.ZodDefault<z.ZodBoolean>;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
233
|
+
diffStat: {
|
|
234
|
+
files: number;
|
|
235
|
+
additions: number;
|
|
236
|
+
deletions: number;
|
|
237
|
+
} | null;
|
|
238
|
+
blockers: number;
|
|
239
|
+
adopted: boolean | null;
|
|
240
|
+
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
241
|
+
preTurnSha: string | null;
|
|
242
|
+
postTurnSha: string | null;
|
|
243
|
+
revertAnchorId: string | null;
|
|
244
|
+
revertable: boolean;
|
|
245
|
+
}, {
|
|
246
|
+
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
247
|
+
diffStat?: {
|
|
248
|
+
files: number;
|
|
249
|
+
additions: number;
|
|
250
|
+
deletions: number;
|
|
251
|
+
} | null | undefined;
|
|
252
|
+
blockers?: number | undefined;
|
|
253
|
+
adopted?: boolean | null | undefined;
|
|
254
|
+
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
255
|
+
preTurnSha?: string | null | undefined;
|
|
256
|
+
postTurnSha?: string | null | undefined;
|
|
257
|
+
revertAnchorId?: string | null | undefined;
|
|
258
|
+
revertable?: boolean | undefined;
|
|
259
|
+
}>>;
|
|
260
|
+
waitingOnUser: z.ZodDefault<z.ZodBoolean>;
|
|
261
|
+
route: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
262
|
+
requestedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
263
|
+
observedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
264
|
+
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
265
|
+
verified: z.ZodDefault<z.ZodBoolean>;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
harnessId: string | null;
|
|
268
|
+
requestedModel: string | null;
|
|
269
|
+
observedModel: string | null;
|
|
270
|
+
verified: boolean;
|
|
271
|
+
}, {
|
|
272
|
+
harnessId?: string | null | undefined;
|
|
273
|
+
requestedModel?: string | null | undefined;
|
|
274
|
+
observedModel?: string | null | undefined;
|
|
275
|
+
verified?: boolean | undefined;
|
|
276
|
+
}>>>;
|
|
277
|
+
tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
278
|
+
program: z.ZodString;
|
|
279
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
280
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
281
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
282
|
+
}, "strict", z.ZodTypeAny, {
|
|
283
|
+
program: string;
|
|
284
|
+
args: string[];
|
|
285
|
+
envAllowlist: string[];
|
|
286
|
+
cwd?: string | undefined;
|
|
287
|
+
}, {
|
|
288
|
+
program: string;
|
|
289
|
+
cwd?: string | undefined;
|
|
290
|
+
args?: string[] | undefined;
|
|
291
|
+
envAllowlist?: string[] | undefined;
|
|
292
|
+
}>, "many">>;
|
|
293
|
+
specId: z.ZodOptional<z.ZodString>;
|
|
294
|
+
specHash: z.ZodOptional<z.ZodString>;
|
|
295
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
296
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
297
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
state: "failed" | "cancelled" | "running" | "interrupted_unknown" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | "queued" | "succeeded";
|
|
300
|
+
runId: string;
|
|
301
|
+
project: {
|
|
302
|
+
kind: "none" | "project";
|
|
303
|
+
root: string | null;
|
|
304
|
+
context: "off" | "auto";
|
|
305
|
+
projectName: string | null;
|
|
306
|
+
};
|
|
307
|
+
jobId: string;
|
|
308
|
+
failure: {
|
|
309
|
+
harnessId: string | null;
|
|
310
|
+
attemptId: string | null;
|
|
311
|
+
runDir: string | null;
|
|
312
|
+
phase: string;
|
|
313
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
314
|
+
safeMessage: string;
|
|
315
|
+
rawDetailRef: string | null;
|
|
316
|
+
logRefs: string[];
|
|
317
|
+
eventRefs: string[];
|
|
318
|
+
nextActions: string[];
|
|
319
|
+
} | null;
|
|
320
|
+
webEvidence: {
|
|
321
|
+
status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
|
|
322
|
+
available: boolean;
|
|
323
|
+
mode: "off" | "auto" | "cached" | "live";
|
|
324
|
+
target: string | null;
|
|
325
|
+
tool: string | null;
|
|
326
|
+
required: boolean;
|
|
327
|
+
attempted: boolean;
|
|
328
|
+
rawDetailRef: string | null;
|
|
329
|
+
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
330
|
+
satisfied: boolean;
|
|
331
|
+
errorSummary: string | null;
|
|
332
|
+
};
|
|
333
|
+
requestRequirements: {
|
|
334
|
+
requested: boolean;
|
|
335
|
+
effective: boolean;
|
|
336
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
337
|
+
evidence_refs: string[];
|
|
338
|
+
harness_id: string;
|
|
339
|
+
eligible: boolean;
|
|
340
|
+
capability: "browser";
|
|
341
|
+
}[];
|
|
342
|
+
outputReadyState: "pending" | "finalizing" | "ready" | "diagnostic";
|
|
343
|
+
toolWarningsTotal: number;
|
|
344
|
+
result: {
|
|
345
|
+
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
346
|
+
diffStat: {
|
|
347
|
+
files: number;
|
|
348
|
+
additions: number;
|
|
349
|
+
deletions: number;
|
|
350
|
+
} | null;
|
|
351
|
+
blockers: number;
|
|
352
|
+
adopted: boolean | null;
|
|
353
|
+
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
354
|
+
preTurnSha: string | null;
|
|
355
|
+
postTurnSha: string | null;
|
|
356
|
+
revertAnchorId: string | null;
|
|
357
|
+
revertable: boolean;
|
|
358
|
+
};
|
|
359
|
+
waitingOnUser: boolean;
|
|
360
|
+
route: {
|
|
361
|
+
harnessId: string | null;
|
|
362
|
+
requestedModel: string | null;
|
|
363
|
+
observedModel: string | null;
|
|
364
|
+
verified: boolean;
|
|
365
|
+
} | null;
|
|
366
|
+
startedAt?: string | undefined;
|
|
367
|
+
createdAt?: string | undefined;
|
|
368
|
+
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
369
|
+
prompt?: string | undefined;
|
|
370
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
371
|
+
error?: string | undefined;
|
|
372
|
+
harnesses?: string[] | undefined;
|
|
373
|
+
runDir?: string | undefined;
|
|
374
|
+
model?: string | undefined;
|
|
375
|
+
tests?: {
|
|
376
|
+
program: string;
|
|
377
|
+
args: string[];
|
|
378
|
+
envAllowlist: string[];
|
|
379
|
+
cwd?: string | undefined;
|
|
380
|
+
}[] | undefined;
|
|
381
|
+
n?: number | undefined;
|
|
382
|
+
taskId?: string | undefined;
|
|
383
|
+
primaryHarness?: string | undefined;
|
|
384
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
385
|
+
paidBudget?: {
|
|
386
|
+
kind: "unlimited";
|
|
387
|
+
} | {
|
|
388
|
+
kind: "finite";
|
|
389
|
+
maxUsd: number;
|
|
390
|
+
} | undefined;
|
|
391
|
+
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
392
|
+
protectedPathApprovals?: {
|
|
393
|
+
path: string;
|
|
394
|
+
reason?: string | undefined;
|
|
395
|
+
}[] | undefined;
|
|
396
|
+
specId?: string | undefined;
|
|
397
|
+
specHash?: string | undefined;
|
|
398
|
+
reviewerPanel?: {
|
|
399
|
+
harness: string;
|
|
400
|
+
model?: string | undefined;
|
|
401
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
402
|
+
}[] | undefined;
|
|
403
|
+
strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
|
|
404
|
+
spendUsd?: number | null | undefined;
|
|
405
|
+
spendEstimated?: boolean | undefined;
|
|
406
|
+
requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
407
|
+
effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
408
|
+
webRequired?: boolean | undefined;
|
|
409
|
+
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
410
|
+
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
411
|
+
finishedAt?: string | undefined;
|
|
412
|
+
}, {
|
|
413
|
+
state: "failed" | "cancelled" | "running" | "interrupted_unknown" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | "queued" | "succeeded";
|
|
414
|
+
runId: string;
|
|
415
|
+
jobId: string;
|
|
416
|
+
startedAt?: string | undefined;
|
|
417
|
+
createdAt?: string | undefined;
|
|
418
|
+
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
419
|
+
prompt?: string | undefined;
|
|
420
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
421
|
+
error?: string | undefined;
|
|
422
|
+
harnesses?: string[] | undefined;
|
|
423
|
+
runDir?: string | undefined;
|
|
424
|
+
model?: string | undefined;
|
|
425
|
+
tests?: {
|
|
426
|
+
program: string;
|
|
427
|
+
cwd?: string | undefined;
|
|
428
|
+
args?: string[] | undefined;
|
|
429
|
+
envAllowlist?: string[] | undefined;
|
|
430
|
+
}[] | undefined;
|
|
431
|
+
project?: {
|
|
432
|
+
kind?: "none" | "project" | undefined;
|
|
433
|
+
root?: string | null | undefined;
|
|
434
|
+
context?: "off" | "auto" | undefined;
|
|
435
|
+
projectName?: string | null | undefined;
|
|
436
|
+
} | undefined;
|
|
437
|
+
n?: number | undefined;
|
|
438
|
+
taskId?: string | undefined;
|
|
439
|
+
primaryHarness?: string | undefined;
|
|
440
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
441
|
+
paidBudget?: {
|
|
442
|
+
kind: "unlimited";
|
|
443
|
+
} | {
|
|
444
|
+
kind: "finite";
|
|
445
|
+
maxUsd: number;
|
|
446
|
+
} | undefined;
|
|
447
|
+
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
448
|
+
protectedPathApprovals?: {
|
|
449
|
+
path: string;
|
|
450
|
+
reason?: string | undefined;
|
|
451
|
+
}[] | undefined;
|
|
452
|
+
specId?: string | undefined;
|
|
453
|
+
specHash?: string | undefined;
|
|
454
|
+
reviewerPanel?: {
|
|
455
|
+
harness: string;
|
|
456
|
+
model?: string | undefined;
|
|
457
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
458
|
+
}[] | undefined;
|
|
459
|
+
failure?: {
|
|
460
|
+
safeMessage: string;
|
|
461
|
+
harnessId?: string | null | undefined;
|
|
462
|
+
attemptId?: string | null | undefined;
|
|
463
|
+
runDir?: string | null | undefined;
|
|
464
|
+
phase?: string | undefined;
|
|
465
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
466
|
+
rawDetailRef?: string | null | undefined;
|
|
467
|
+
logRefs?: string[] | undefined;
|
|
468
|
+
eventRefs?: string[] | undefined;
|
|
469
|
+
nextActions?: string[] | undefined;
|
|
470
|
+
} | null | undefined;
|
|
471
|
+
strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
|
|
472
|
+
spendUsd?: number | null | undefined;
|
|
473
|
+
spendEstimated?: boolean | undefined;
|
|
474
|
+
requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
475
|
+
effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
476
|
+
webRequired?: boolean | undefined;
|
|
477
|
+
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
478
|
+
webEvidence?: {
|
|
479
|
+
status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
|
|
480
|
+
available?: boolean | undefined;
|
|
481
|
+
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
482
|
+
target?: string | null | undefined;
|
|
483
|
+
tool?: string | null | undefined;
|
|
484
|
+
required?: boolean | undefined;
|
|
485
|
+
attempted?: boolean | undefined;
|
|
486
|
+
rawDetailRef?: string | null | undefined;
|
|
487
|
+
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
488
|
+
satisfied?: boolean | undefined;
|
|
489
|
+
errorSummary?: string | null | undefined;
|
|
490
|
+
} | undefined;
|
|
491
|
+
requestRequirements?: {
|
|
492
|
+
requested: boolean;
|
|
493
|
+
effective: boolean;
|
|
494
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
495
|
+
harness_id: string;
|
|
496
|
+
eligible: boolean;
|
|
497
|
+
capability: "browser";
|
|
498
|
+
evidence_refs?: string[] | undefined;
|
|
499
|
+
}[] | undefined;
|
|
500
|
+
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
501
|
+
outputReadyState?: "pending" | "finalizing" | "ready" | "diagnostic" | undefined;
|
|
502
|
+
toolWarningsTotal?: number | undefined;
|
|
503
|
+
result?: {
|
|
504
|
+
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
505
|
+
diffStat?: {
|
|
506
|
+
files: number;
|
|
507
|
+
additions: number;
|
|
508
|
+
deletions: number;
|
|
509
|
+
} | null | undefined;
|
|
510
|
+
blockers?: number | undefined;
|
|
511
|
+
adopted?: boolean | null | undefined;
|
|
512
|
+
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
513
|
+
preTurnSha?: string | null | undefined;
|
|
514
|
+
postTurnSha?: string | null | undefined;
|
|
515
|
+
revertAnchorId?: string | null | undefined;
|
|
516
|
+
revertable?: boolean | undefined;
|
|
517
|
+
} | undefined;
|
|
518
|
+
waitingOnUser?: boolean | undefined;
|
|
519
|
+
route?: {
|
|
520
|
+
harnessId?: string | null | undefined;
|
|
521
|
+
requestedModel?: string | null | undefined;
|
|
522
|
+
observedModel?: string | null | undefined;
|
|
523
|
+
verified?: boolean | undefined;
|
|
524
|
+
} | null | undefined;
|
|
525
|
+
finishedAt?: string | undefined;
|
|
526
|
+
}>, "many">>;
|
|
527
|
+
}, "strict", z.ZodTypeAny, {
|
|
528
|
+
runs: {
|
|
529
|
+
state: "failed" | "cancelled" | "running" | "interrupted_unknown" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | "queued" | "succeeded";
|
|
530
|
+
runId: string;
|
|
531
|
+
project: {
|
|
532
|
+
kind: "none" | "project";
|
|
533
|
+
root: string | null;
|
|
534
|
+
context: "off" | "auto";
|
|
535
|
+
projectName: string | null;
|
|
536
|
+
};
|
|
537
|
+
jobId: string;
|
|
538
|
+
failure: {
|
|
539
|
+
harnessId: string | null;
|
|
540
|
+
attemptId: string | null;
|
|
541
|
+
runDir: string | null;
|
|
542
|
+
phase: string;
|
|
543
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
544
|
+
safeMessage: string;
|
|
545
|
+
rawDetailRef: string | null;
|
|
546
|
+
logRefs: string[];
|
|
547
|
+
eventRefs: string[];
|
|
548
|
+
nextActions: string[];
|
|
549
|
+
} | null;
|
|
550
|
+
webEvidence: {
|
|
551
|
+
status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
|
|
552
|
+
available: boolean;
|
|
553
|
+
mode: "off" | "auto" | "cached" | "live";
|
|
554
|
+
target: string | null;
|
|
555
|
+
tool: string | null;
|
|
556
|
+
required: boolean;
|
|
557
|
+
attempted: boolean;
|
|
558
|
+
rawDetailRef: string | null;
|
|
559
|
+
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
560
|
+
satisfied: boolean;
|
|
561
|
+
errorSummary: string | null;
|
|
562
|
+
};
|
|
563
|
+
requestRequirements: {
|
|
564
|
+
requested: boolean;
|
|
565
|
+
effective: boolean;
|
|
566
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
567
|
+
evidence_refs: string[];
|
|
568
|
+
harness_id: string;
|
|
569
|
+
eligible: boolean;
|
|
570
|
+
capability: "browser";
|
|
571
|
+
}[];
|
|
572
|
+
outputReadyState: "pending" | "finalizing" | "ready" | "diagnostic";
|
|
573
|
+
toolWarningsTotal: number;
|
|
574
|
+
result: {
|
|
575
|
+
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
576
|
+
diffStat: {
|
|
577
|
+
files: number;
|
|
578
|
+
additions: number;
|
|
579
|
+
deletions: number;
|
|
580
|
+
} | null;
|
|
581
|
+
blockers: number;
|
|
582
|
+
adopted: boolean | null;
|
|
583
|
+
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
584
|
+
preTurnSha: string | null;
|
|
585
|
+
postTurnSha: string | null;
|
|
586
|
+
revertAnchorId: string | null;
|
|
587
|
+
revertable: boolean;
|
|
588
|
+
};
|
|
589
|
+
waitingOnUser: boolean;
|
|
590
|
+
route: {
|
|
591
|
+
harnessId: string | null;
|
|
592
|
+
requestedModel: string | null;
|
|
593
|
+
observedModel: string | null;
|
|
594
|
+
verified: boolean;
|
|
595
|
+
} | null;
|
|
596
|
+
startedAt?: string | undefined;
|
|
597
|
+
createdAt?: string | undefined;
|
|
598
|
+
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
599
|
+
prompt?: string | undefined;
|
|
600
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
601
|
+
error?: string | undefined;
|
|
602
|
+
harnesses?: string[] | undefined;
|
|
603
|
+
runDir?: string | undefined;
|
|
604
|
+
model?: string | undefined;
|
|
605
|
+
tests?: {
|
|
606
|
+
program: string;
|
|
607
|
+
args: string[];
|
|
608
|
+
envAllowlist: string[];
|
|
609
|
+
cwd?: string | undefined;
|
|
610
|
+
}[] | undefined;
|
|
611
|
+
n?: number | undefined;
|
|
612
|
+
taskId?: string | undefined;
|
|
613
|
+
primaryHarness?: string | undefined;
|
|
614
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
615
|
+
paidBudget?: {
|
|
616
|
+
kind: "unlimited";
|
|
617
|
+
} | {
|
|
618
|
+
kind: "finite";
|
|
619
|
+
maxUsd: number;
|
|
620
|
+
} | undefined;
|
|
621
|
+
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
622
|
+
protectedPathApprovals?: {
|
|
623
|
+
path: string;
|
|
624
|
+
reason?: string | undefined;
|
|
625
|
+
}[] | undefined;
|
|
626
|
+
specId?: string | undefined;
|
|
627
|
+
specHash?: string | undefined;
|
|
628
|
+
reviewerPanel?: {
|
|
629
|
+
harness: string;
|
|
630
|
+
model?: string | undefined;
|
|
631
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
632
|
+
}[] | undefined;
|
|
633
|
+
strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
|
|
634
|
+
spendUsd?: number | null | undefined;
|
|
635
|
+
spendEstimated?: boolean | undefined;
|
|
636
|
+
requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
637
|
+
effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
638
|
+
webRequired?: boolean | undefined;
|
|
639
|
+
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
640
|
+
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
641
|
+
finishedAt?: string | undefined;
|
|
642
|
+
}[];
|
|
643
|
+
}, {
|
|
644
|
+
runs?: {
|
|
645
|
+
state: "failed" | "cancelled" | "running" | "interrupted_unknown" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | "queued" | "succeeded";
|
|
646
|
+
runId: string;
|
|
647
|
+
jobId: string;
|
|
648
|
+
startedAt?: string | undefined;
|
|
649
|
+
createdAt?: string | undefined;
|
|
650
|
+
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
651
|
+
prompt?: string | undefined;
|
|
652
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
653
|
+
error?: string | undefined;
|
|
654
|
+
harnesses?: string[] | undefined;
|
|
655
|
+
runDir?: string | undefined;
|
|
656
|
+
model?: string | undefined;
|
|
657
|
+
tests?: {
|
|
658
|
+
program: string;
|
|
659
|
+
cwd?: string | undefined;
|
|
660
|
+
args?: string[] | undefined;
|
|
661
|
+
envAllowlist?: string[] | undefined;
|
|
662
|
+
}[] | undefined;
|
|
663
|
+
project?: {
|
|
664
|
+
kind?: "none" | "project" | undefined;
|
|
665
|
+
root?: string | null | undefined;
|
|
666
|
+
context?: "off" | "auto" | undefined;
|
|
667
|
+
projectName?: string | null | undefined;
|
|
668
|
+
} | undefined;
|
|
669
|
+
n?: number | undefined;
|
|
670
|
+
taskId?: string | undefined;
|
|
671
|
+
primaryHarness?: string | undefined;
|
|
672
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
673
|
+
paidBudget?: {
|
|
674
|
+
kind: "unlimited";
|
|
675
|
+
} | {
|
|
676
|
+
kind: "finite";
|
|
677
|
+
maxUsd: number;
|
|
678
|
+
} | undefined;
|
|
679
|
+
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
680
|
+
protectedPathApprovals?: {
|
|
681
|
+
path: string;
|
|
682
|
+
reason?: string | undefined;
|
|
683
|
+
}[] | undefined;
|
|
684
|
+
specId?: string | undefined;
|
|
685
|
+
specHash?: string | undefined;
|
|
686
|
+
reviewerPanel?: {
|
|
687
|
+
harness: string;
|
|
688
|
+
model?: string | undefined;
|
|
689
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
690
|
+
}[] | undefined;
|
|
691
|
+
failure?: {
|
|
692
|
+
safeMessage: string;
|
|
693
|
+
harnessId?: string | null | undefined;
|
|
694
|
+
attemptId?: string | null | undefined;
|
|
695
|
+
runDir?: string | null | undefined;
|
|
696
|
+
phase?: string | undefined;
|
|
697
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
698
|
+
rawDetailRef?: string | null | undefined;
|
|
699
|
+
logRefs?: string[] | undefined;
|
|
700
|
+
eventRefs?: string[] | undefined;
|
|
701
|
+
nextActions?: string[] | undefined;
|
|
702
|
+
} | null | undefined;
|
|
703
|
+
strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
|
|
704
|
+
spendUsd?: number | null | undefined;
|
|
705
|
+
spendEstimated?: boolean | undefined;
|
|
706
|
+
requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
707
|
+
effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
708
|
+
webRequired?: boolean | undefined;
|
|
709
|
+
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
710
|
+
webEvidence?: {
|
|
711
|
+
status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
|
|
712
|
+
available?: boolean | undefined;
|
|
713
|
+
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
714
|
+
target?: string | null | undefined;
|
|
715
|
+
tool?: string | null | undefined;
|
|
716
|
+
required?: boolean | undefined;
|
|
717
|
+
attempted?: boolean | undefined;
|
|
718
|
+
rawDetailRef?: string | null | undefined;
|
|
719
|
+
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
720
|
+
satisfied?: boolean | undefined;
|
|
721
|
+
errorSummary?: string | null | undefined;
|
|
722
|
+
} | undefined;
|
|
723
|
+
requestRequirements?: {
|
|
724
|
+
requested: boolean;
|
|
725
|
+
effective: boolean;
|
|
726
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
727
|
+
harness_id: string;
|
|
728
|
+
eligible: boolean;
|
|
729
|
+
capability: "browser";
|
|
730
|
+
evidence_refs?: string[] | undefined;
|
|
731
|
+
}[] | undefined;
|
|
732
|
+
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
733
|
+
outputReadyState?: "pending" | "finalizing" | "ready" | "diagnostic" | undefined;
|
|
734
|
+
toolWarningsTotal?: number | undefined;
|
|
735
|
+
result?: {
|
|
736
|
+
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
737
|
+
diffStat?: {
|
|
738
|
+
files: number;
|
|
739
|
+
additions: number;
|
|
740
|
+
deletions: number;
|
|
741
|
+
} | null | undefined;
|
|
742
|
+
blockers?: number | undefined;
|
|
743
|
+
adopted?: boolean | null | undefined;
|
|
744
|
+
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
745
|
+
preTurnSha?: string | null | undefined;
|
|
746
|
+
postTurnSha?: string | null | undefined;
|
|
747
|
+
revertAnchorId?: string | null | undefined;
|
|
748
|
+
revertable?: boolean | undefined;
|
|
749
|
+
} | undefined;
|
|
750
|
+
waitingOnUser?: boolean | undefined;
|
|
751
|
+
route?: {
|
|
752
|
+
harnessId?: string | null | undefined;
|
|
753
|
+
requestedModel?: string | null | undefined;
|
|
754
|
+
observedModel?: string | null | undefined;
|
|
755
|
+
verified?: boolean | undefined;
|
|
756
|
+
} | null | undefined;
|
|
757
|
+
finishedAt?: string | undefined;
|
|
758
|
+
}[] | undefined;
|
|
759
|
+
}>;
|
|
760
|
+
export type ControlRunListResponse = z.infer<typeof ControlRunListResponse>;
|
|
761
|
+
export declare const ControlArtifactListResponse: z.ZodObject<{
|
|
762
|
+
runId: z.ZodString;
|
|
763
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
764
|
+
path: z.ZodString;
|
|
765
|
+
kind: z.ZodEnum<["file", "directory"]>;
|
|
766
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
767
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
768
|
+
}, "strip", z.ZodTypeAny, {
|
|
769
|
+
path: string;
|
|
770
|
+
kind: "file" | "directory";
|
|
771
|
+
mime?: string | undefined;
|
|
772
|
+
bytes?: number | undefined;
|
|
773
|
+
}, {
|
|
774
|
+
path: string;
|
|
775
|
+
kind: "file" | "directory";
|
|
776
|
+
mime?: string | undefined;
|
|
777
|
+
bytes?: number | undefined;
|
|
778
|
+
}>, "many">>;
|
|
779
|
+
}, "strict", z.ZodTypeAny, {
|
|
780
|
+
runId: string;
|
|
781
|
+
artifacts: {
|
|
782
|
+
path: string;
|
|
783
|
+
kind: "file" | "directory";
|
|
784
|
+
mime?: string | undefined;
|
|
785
|
+
bytes?: number | undefined;
|
|
786
|
+
}[];
|
|
787
|
+
}, {
|
|
788
|
+
runId: string;
|
|
789
|
+
artifacts?: {
|
|
790
|
+
path: string;
|
|
791
|
+
kind: "file" | "directory";
|
|
792
|
+
mime?: string | undefined;
|
|
793
|
+
bytes?: number | undefined;
|
|
794
|
+
}[] | undefined;
|
|
795
|
+
}>;
|
|
796
|
+
export type ControlArtifactListResponse = z.infer<typeof ControlArtifactListResponse>;
|
|
797
|
+
export declare const ControlApplyCheckResponse: z.ZodObject<{
|
|
798
|
+
ok: z.ZodBoolean;
|
|
799
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
800
|
+
stderr: z.ZodString;
|
|
801
|
+
}, "strict", z.ZodTypeAny, {
|
|
802
|
+
code: number | null;
|
|
803
|
+
ok: boolean;
|
|
804
|
+
stderr: string;
|
|
805
|
+
}, {
|
|
806
|
+
code: number | null;
|
|
807
|
+
ok: boolean;
|
|
808
|
+
stderr: string;
|
|
809
|
+
}>;
|
|
810
|
+
export type ControlApplyCheckResponse = z.infer<typeof ControlApplyCheckResponse>;
|
|
811
|
+
export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
812
|
+
mode: z.ZodEnum<["artifact_only", "apply", "branch", "commit", "pr"]>;
|
|
813
|
+
applied: z.ZodBoolean;
|
|
814
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
815
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
816
|
+
prUrl: z.ZodOptional<z.ZodString>;
|
|
817
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
818
|
+
treeMutated: z.ZodOptional<z.ZodBoolean>;
|
|
819
|
+
refused: z.ZodOptional<z.ZodBoolean>;
|
|
820
|
+
finalVerify: z.ZodObject<{
|
|
821
|
+
attempted: z.ZodBoolean;
|
|
822
|
+
base_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
823
|
+
applied_cleanly: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
824
|
+
gates_passed: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
825
|
+
gates: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
826
|
+
id: z.ZodString;
|
|
827
|
+
status: z.ZodString;
|
|
828
|
+
}, "strip", z.ZodTypeAny, {
|
|
829
|
+
status: string;
|
|
830
|
+
id: string;
|
|
831
|
+
}, {
|
|
832
|
+
status: string;
|
|
833
|
+
id: string;
|
|
834
|
+
}>, "many">>;
|
|
835
|
+
duration_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
836
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
837
|
+
}, "strip", z.ZodTypeAny, {
|
|
838
|
+
reason: string | null;
|
|
839
|
+
duration_ms: number | null;
|
|
840
|
+
base_sha: string | null;
|
|
841
|
+
attempted: boolean;
|
|
842
|
+
applied_cleanly: boolean | null;
|
|
843
|
+
gates_passed: boolean | null;
|
|
844
|
+
gates: {
|
|
845
|
+
status: string;
|
|
846
|
+
id: string;
|
|
847
|
+
}[];
|
|
848
|
+
}, {
|
|
849
|
+
attempted: boolean;
|
|
850
|
+
reason?: string | null | undefined;
|
|
851
|
+
duration_ms?: number | null | undefined;
|
|
852
|
+
base_sha?: string | null | undefined;
|
|
853
|
+
applied_cleanly?: boolean | null | undefined;
|
|
854
|
+
gates_passed?: boolean | null | undefined;
|
|
855
|
+
gates?: {
|
|
856
|
+
status: string;
|
|
857
|
+
id: string;
|
|
858
|
+
}[] | undefined;
|
|
859
|
+
}>;
|
|
860
|
+
targetPreimageSha: z.ZodString;
|
|
861
|
+
}, "strict", z.ZodTypeAny, {
|
|
862
|
+
mode: "apply" | "commit" | "branch" | "pr" | "artifact_only";
|
|
863
|
+
applied: boolean;
|
|
864
|
+
finalVerify: {
|
|
865
|
+
reason: string | null;
|
|
866
|
+
duration_ms: number | null;
|
|
867
|
+
base_sha: string | null;
|
|
868
|
+
attempted: boolean;
|
|
869
|
+
applied_cleanly: boolean | null;
|
|
870
|
+
gates_passed: boolean | null;
|
|
871
|
+
gates: {
|
|
872
|
+
status: string;
|
|
873
|
+
id: string;
|
|
874
|
+
}[];
|
|
875
|
+
};
|
|
876
|
+
targetPreimageSha: string;
|
|
877
|
+
detail?: string | undefined;
|
|
878
|
+
commit?: string | undefined;
|
|
879
|
+
branch?: string | undefined;
|
|
880
|
+
prUrl?: string | undefined;
|
|
881
|
+
treeMutated?: boolean | undefined;
|
|
882
|
+
refused?: boolean | undefined;
|
|
883
|
+
}, {
|
|
884
|
+
mode: "apply" | "commit" | "branch" | "pr" | "artifact_only";
|
|
885
|
+
applied: boolean;
|
|
886
|
+
finalVerify: {
|
|
887
|
+
attempted: boolean;
|
|
888
|
+
reason?: string | null | undefined;
|
|
889
|
+
duration_ms?: number | null | undefined;
|
|
890
|
+
base_sha?: string | null | undefined;
|
|
891
|
+
applied_cleanly?: boolean | null | undefined;
|
|
892
|
+
gates_passed?: boolean | null | undefined;
|
|
893
|
+
gates?: {
|
|
894
|
+
status: string;
|
|
895
|
+
id: string;
|
|
896
|
+
}[] | undefined;
|
|
897
|
+
};
|
|
898
|
+
targetPreimageSha: string;
|
|
899
|
+
detail?: string | undefined;
|
|
900
|
+
commit?: string | undefined;
|
|
901
|
+
branch?: string | undefined;
|
|
902
|
+
prUrl?: string | undefined;
|
|
903
|
+
treeMutated?: boolean | undefined;
|
|
904
|
+
refused?: boolean | undefined;
|
|
905
|
+
}>;
|
|
906
|
+
export type ControlDeliveryResponse = z.infer<typeof ControlDeliveryResponse>;
|
|
907
|
+
export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
908
|
+
prompt: z.ZodDefault<z.ZodString>;
|
|
909
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
910
|
+
resourceId: z.ZodString;
|
|
911
|
+
}, "strict", z.ZodTypeAny, {
|
|
912
|
+
resourceId: string;
|
|
913
|
+
}, {
|
|
914
|
+
resourceId: string;
|
|
915
|
+
}>, "many">>;
|
|
916
|
+
mode: z.ZodDefault<z.ZodEnum<["ask", "plan", "audit", "agent", "orchestrate"]>>;
|
|
917
|
+
scope: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
918
|
+
kind: z.ZodLiteral<"project">;
|
|
919
|
+
root: z.ZodString;
|
|
920
|
+
context: z.ZodDefault<z.ZodEnum<["auto"]>>;
|
|
921
|
+
}, "strict", z.ZodTypeAny, {
|
|
922
|
+
kind: "project";
|
|
923
|
+
root: string;
|
|
924
|
+
context: "auto";
|
|
925
|
+
}, {
|
|
926
|
+
kind: "project";
|
|
927
|
+
root: string;
|
|
928
|
+
context?: "auto" | undefined;
|
|
929
|
+
}>, z.ZodObject<{
|
|
930
|
+
kind: z.ZodLiteral<"none">;
|
|
931
|
+
}, "strict", z.ZodTypeAny, {
|
|
932
|
+
kind: "none";
|
|
933
|
+
}, {
|
|
934
|
+
kind: "none";
|
|
935
|
+
}>]>>;
|
|
936
|
+
execution: z.ZodDefault<z.ZodObject<{
|
|
937
|
+
isolation: z.ZodDefault<z.ZodEnum<["envelope", "live"]>>;
|
|
938
|
+
}, "strict", z.ZodTypeAny, {
|
|
939
|
+
isolation: "live" | "envelope";
|
|
940
|
+
}, {
|
|
941
|
+
isolation?: "live" | "envelope" | undefined;
|
|
942
|
+
}>>;
|
|
943
|
+
harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
944
|
+
primaryHarness: z.ZodOptional<z.ZodString>;
|
|
945
|
+
routingGoal: z.ZodOptional<z.ZodEnum<["auto", "quality", "economy"]>>;
|
|
946
|
+
model: z.ZodOptional<z.ZodString>;
|
|
947
|
+
models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
948
|
+
effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
|
|
949
|
+
reviewerModels: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodString>>;
|
|
950
|
+
reviewerEfforts: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>>;
|
|
951
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
952
|
+
attempts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
953
|
+
untilClean: z.ZodOptional<z.ZodBoolean>;
|
|
954
|
+
swarm: z.ZodOptional<z.ZodBoolean>;
|
|
955
|
+
create: z.ZodOptional<z.ZodBoolean>;
|
|
956
|
+
synthesis: z.ZodOptional<z.ZodEnum<["auto", "always", "never"]>>;
|
|
957
|
+
paidBudget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
958
|
+
kind: z.ZodLiteral<"unlimited">;
|
|
959
|
+
}, "strict", z.ZodTypeAny, {
|
|
960
|
+
kind: "unlimited";
|
|
961
|
+
}, {
|
|
962
|
+
kind: "unlimited";
|
|
963
|
+
}>, z.ZodObject<{
|
|
964
|
+
kind: z.ZodLiteral<"finite">;
|
|
965
|
+
maxUsd: z.ZodNumber;
|
|
966
|
+
}, "strict", z.ZodTypeAny, {
|
|
967
|
+
kind: "finite";
|
|
968
|
+
maxUsd: number;
|
|
969
|
+
}, {
|
|
970
|
+
kind: "finite";
|
|
971
|
+
maxUsd: number;
|
|
972
|
+
}>]>>;
|
|
973
|
+
access: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
|
|
974
|
+
web: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
|
|
975
|
+
externalContextPolicy: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
|
|
976
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
977
|
+
tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
978
|
+
program: z.ZodString;
|
|
979
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
980
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
981
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
982
|
+
}, "strict", z.ZodTypeAny, {
|
|
983
|
+
program: string;
|
|
984
|
+
args: string[];
|
|
985
|
+
envAllowlist: string[];
|
|
986
|
+
cwd?: string | undefined;
|
|
987
|
+
}, {
|
|
988
|
+
program: string;
|
|
989
|
+
cwd?: string | undefined;
|
|
990
|
+
args?: string[] | undefined;
|
|
991
|
+
envAllowlist?: string[] | undefined;
|
|
992
|
+
}>, "many">>;
|
|
993
|
+
protectedPathApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
994
|
+
path: z.ZodString;
|
|
995
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
996
|
+
}, "strict", z.ZodTypeAny, {
|
|
997
|
+
path: string;
|
|
998
|
+
reason?: string | undefined;
|
|
999
|
+
}, {
|
|
1000
|
+
path: string;
|
|
1001
|
+
reason?: string | undefined;
|
|
1002
|
+
}>, "many">>;
|
|
1003
|
+
specPath: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
specId: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
specHash: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
retryOf: z.ZodOptional<z.ZodString>;
|
|
1010
|
+
planRunId: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1012
|
+
harness: z.ZodString;
|
|
1013
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
|
|
1015
|
+
}, "strict", z.ZodTypeAny, {
|
|
1016
|
+
harness: string;
|
|
1017
|
+
model?: string | undefined;
|
|
1018
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1019
|
+
}, {
|
|
1020
|
+
harness: string;
|
|
1021
|
+
model?: string | undefined;
|
|
1022
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1023
|
+
}>, "many">>;
|
|
1024
|
+
authPreference: z.ZodOptional<z.ZodEnum<["subscription", "api_key", "auto"]>>;
|
|
1025
|
+
autonomy: z.ZodOptional<z.ZodEnum<["suggest", "auto_safe", "auto_full"]>>;
|
|
1026
|
+
maxToolCalls: z.ZodOptional<z.ZodNumber>;
|
|
1027
|
+
}, "turnId" | "retryOf" | "scope" | "execution" | "threadId" | "parentRunId">, "strict", z.ZodTypeAny, {
|
|
1028
|
+
mode: "ask" | "plan" | "audit" | "agent" | "orchestrate";
|
|
1029
|
+
prompt: string;
|
|
1030
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1031
|
+
web?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1032
|
+
attachments?: {
|
|
1033
|
+
resourceId: string;
|
|
1034
|
+
}[] | undefined;
|
|
1035
|
+
browser?: boolean | undefined;
|
|
1036
|
+
planRunId?: string | undefined;
|
|
1037
|
+
models?: Record<string, string> | undefined;
|
|
1038
|
+
harnesses?: string[] | undefined;
|
|
1039
|
+
model?: string | undefined;
|
|
1040
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1041
|
+
tests?: {
|
|
1042
|
+
program: string;
|
|
1043
|
+
args: string[];
|
|
1044
|
+
envAllowlist: string[];
|
|
1045
|
+
cwd?: string | undefined;
|
|
1046
|
+
}[] | undefined;
|
|
1047
|
+
autonomy?: "suggest" | "auto_safe" | "auto_full" | undefined;
|
|
1048
|
+
n?: number | undefined;
|
|
1049
|
+
primaryHarness?: string | undefined;
|
|
1050
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
1051
|
+
reviewerModels?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
|
|
1052
|
+
reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", "low" | "medium" | "high" | "xhigh" | "max">> | undefined;
|
|
1053
|
+
attempts?: number | null | undefined;
|
|
1054
|
+
untilClean?: boolean | undefined;
|
|
1055
|
+
swarm?: boolean | undefined;
|
|
1056
|
+
create?: boolean | undefined;
|
|
1057
|
+
synthesis?: "auto" | "never" | "always" | undefined;
|
|
1058
|
+
paidBudget?: {
|
|
1059
|
+
kind: "unlimited";
|
|
1060
|
+
} | {
|
|
1061
|
+
kind: "finite";
|
|
1062
|
+
maxUsd: number;
|
|
1063
|
+
} | undefined;
|
|
1064
|
+
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1065
|
+
protectedPathApprovals?: {
|
|
1066
|
+
path: string;
|
|
1067
|
+
reason?: string | undefined;
|
|
1068
|
+
}[] | undefined;
|
|
1069
|
+
specPath?: string | undefined;
|
|
1070
|
+
specId?: string | undefined;
|
|
1071
|
+
specHash?: string | undefined;
|
|
1072
|
+
reviewerPanel?: {
|
|
1073
|
+
harness: string;
|
|
1074
|
+
model?: string | undefined;
|
|
1075
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1076
|
+
}[] | undefined;
|
|
1077
|
+
authPreference?: "auto" | "subscription" | "api_key" | undefined;
|
|
1078
|
+
maxToolCalls?: number | undefined;
|
|
1079
|
+
}, {
|
|
1080
|
+
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
1081
|
+
prompt?: string | undefined;
|
|
1082
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1083
|
+
web?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1084
|
+
attachments?: {
|
|
1085
|
+
resourceId: string;
|
|
1086
|
+
}[] | undefined;
|
|
1087
|
+
browser?: boolean | undefined;
|
|
1088
|
+
planRunId?: string | undefined;
|
|
1089
|
+
models?: Record<string, string> | undefined;
|
|
1090
|
+
harnesses?: string[] | undefined;
|
|
1091
|
+
model?: string | undefined;
|
|
1092
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1093
|
+
tests?: {
|
|
1094
|
+
program: string;
|
|
1095
|
+
cwd?: string | undefined;
|
|
1096
|
+
args?: string[] | undefined;
|
|
1097
|
+
envAllowlist?: string[] | undefined;
|
|
1098
|
+
}[] | undefined;
|
|
1099
|
+
autonomy?: "suggest" | "auto_safe" | "auto_full" | undefined;
|
|
1100
|
+
n?: number | undefined;
|
|
1101
|
+
primaryHarness?: string | undefined;
|
|
1102
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
1103
|
+
reviewerModels?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
|
|
1104
|
+
reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", "low" | "medium" | "high" | "xhigh" | "max">> | undefined;
|
|
1105
|
+
attempts?: number | null | undefined;
|
|
1106
|
+
untilClean?: boolean | undefined;
|
|
1107
|
+
swarm?: boolean | undefined;
|
|
1108
|
+
create?: boolean | undefined;
|
|
1109
|
+
synthesis?: "auto" | "never" | "always" | undefined;
|
|
1110
|
+
paidBudget?: {
|
|
1111
|
+
kind: "unlimited";
|
|
1112
|
+
} | {
|
|
1113
|
+
kind: "finite";
|
|
1114
|
+
maxUsd: number;
|
|
1115
|
+
} | undefined;
|
|
1116
|
+
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1117
|
+
protectedPathApprovals?: {
|
|
1118
|
+
path: string;
|
|
1119
|
+
reason?: string | undefined;
|
|
1120
|
+
}[] | undefined;
|
|
1121
|
+
specPath?: string | undefined;
|
|
1122
|
+
specId?: string | undefined;
|
|
1123
|
+
specHash?: string | undefined;
|
|
1124
|
+
reviewerPanel?: {
|
|
1125
|
+
harness: string;
|
|
1126
|
+
model?: string | undefined;
|
|
1127
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1128
|
+
}[] | undefined;
|
|
1129
|
+
authPreference?: "auto" | "subscription" | "api_key" | undefined;
|
|
1130
|
+
maxToolCalls?: number | undefined;
|
|
1131
|
+
}>;
|
|
1132
|
+
export type ControlThreadTurnRequest = z.infer<typeof ControlThreadTurnRequest>;
|
|
1133
|
+
export declare const ControlThreadTurnResponse: z.ZodUnion<[z.ZodObject<{
|
|
1134
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
1135
|
+
runId: z.ZodString;
|
|
1136
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
1137
|
+
runDir: z.ZodString;
|
|
1138
|
+
} & {
|
|
1139
|
+
threadId: z.ZodString;
|
|
1140
|
+
turnId: z.ZodString;
|
|
1141
|
+
}, "strip", z.ZodTypeAny, {
|
|
1142
|
+
turnId: string;
|
|
1143
|
+
runId: string;
|
|
1144
|
+
runDir: string;
|
|
1145
|
+
threadId: string;
|
|
1146
|
+
jobId?: string | undefined;
|
|
1147
|
+
taskId?: string | undefined;
|
|
1148
|
+
}, {
|
|
1149
|
+
turnId: string;
|
|
1150
|
+
runId: string;
|
|
1151
|
+
runDir: string;
|
|
1152
|
+
threadId: string;
|
|
1153
|
+
jobId?: string | undefined;
|
|
1154
|
+
taskId?: string | undefined;
|
|
1155
|
+
}>, z.ZodObject<{
|
|
1156
|
+
jobId: z.ZodString;
|
|
1157
|
+
threadId: z.ZodString;
|
|
1158
|
+
turnId: z.ZodString;
|
|
1159
|
+
state: z.ZodString;
|
|
1160
|
+
}, "strict", z.ZodTypeAny, {
|
|
1161
|
+
state: string;
|
|
1162
|
+
turnId: string;
|
|
1163
|
+
jobId: string;
|
|
1164
|
+
threadId: string;
|
|
1165
|
+
}, {
|
|
1166
|
+
state: string;
|
|
1167
|
+
turnId: string;
|
|
1168
|
+
jobId: string;
|
|
1169
|
+
threadId: string;
|
|
1170
|
+
}>]>;
|
|
1171
|
+
export type ControlThreadTurnResponse = z.infer<typeof ControlThreadTurnResponse>;
|
|
1172
|
+
//# sourceMappingURL=control-operation-responses.d.ts.map
|