@claudexor/schema 3.1.2 → 3.2.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 +157 -129
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +4 -2
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +462 -273
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +25 -2
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +17 -17
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +1 -1
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +475 -475
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/budget.d.ts +62 -59
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +6 -1
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +320 -316
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +26 -19
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +38 -38
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/context.js.map +1 -1
- package/dist/control-auth-route.d.ts +46 -0
- package/dist/control-auth-route.d.ts.map +1 -0
- package/dist/control-auth-route.js +24 -0
- package/dist/control-auth-route.js.map +1 -0
- package/dist/control-gc.d.ts +15 -15
- package/dist/control-gc.d.ts.map +1 -1
- package/dist/control-gc.js +1 -1
- package/dist/control-gc.js.map +1 -1
- package/dist/control-harness-list.d.ts +896 -0
- package/dist/control-harness-list.d.ts.map +1 -0
- package/dist/control-harness-list.js +13 -0
- package/dist/control-harness-list.js.map +1 -0
- package/dist/control-operation-responses.d.ts +630 -628
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +5 -1
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +2113 -1578
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +7 -1
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +16 -16
- package/dist/control-run-retry.d.ts.map +1 -1
- package/dist/control-run-retry.js +1 -1
- package/dist/control-run-retry.js.map +1 -1
- package/dist/control-run-scope.d.ts +2 -2
- package/dist/control-run-scope.d.ts.map +1 -1
- package/dist/control-run-scope.js +1 -1
- package/dist/control-run-scope.js.map +1 -1
- package/dist/control-secret.d.ts +7 -7
- package/dist/control-secret.d.ts.map +1 -1
- package/dist/control-secret.js +1 -1
- package/dist/control-secret.js.map +1 -1
- package/dist/control-thread-apply.d.ts +65 -65
- package/dist/control-thread-apply.d.ts.map +1 -1
- package/dist/control-thread-apply.js +1 -1
- package/dist/control-thread-apply.js.map +1 -1
- package/dist/control-trust.d.ts +23 -23
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +1 -1
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1523 -2354
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +23 -45
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +3203 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -0
- package/dist/credential-profile-snapshot.js +28 -0
- package/dist/credential-profile-snapshot.js.map +1 -0
- package/dist/credential-profile.d.ts +122 -107
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +12 -6
- package/dist/credential-profile.js.map +1 -1
- package/dist/decision.d.ts +121 -121
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +2 -1
- package/dist/decision.js.map +1 -1
- package/dist/deep-scan.d.ts +5 -5
- package/dist/deep-scan.d.ts.map +1 -1
- package/dist/deep-scan.js +1 -1
- package/dist/deep-scan.js.map +1 -1
- package/dist/delegation.d.ts +13 -13
- package/dist/delegation.d.ts.map +1 -1
- package/dist/delegation.js +1 -1
- package/dist/delegation.js.map +1 -1
- package/dist/delivery.d.ts +32 -32
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +1 -1
- package/dist/delivery.js.map +1 -1
- package/dist/effort.d.ts +1 -1
- package/dist/effort.d.ts.map +1 -1
- package/dist/effort.js +1 -1
- package/dist/effort.js.map +1 -1
- package/dist/events.d.ts +55 -35
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +20 -1
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +7 -7
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +1 -1
- package/dist/gate.js.map +1 -1
- package/dist/git-capability.d.ts +23 -0
- package/dist/git-capability.d.ts.map +1 -0
- package/dist/git-capability.js +15 -0
- package/dist/git-capability.js.map +1 -0
- package/dist/harness.d.ts +417 -400
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +11 -25
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +10 -0
- package/dist/interaction.d.ts.map +1 -0
- package/dist/interaction.js +2 -0
- package/dist/interaction.js.map +1 -0
- package/dist/operation.d.ts +113 -113
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +1 -1
- package/dist/operation.js.map +1 -1
- package/dist/output-schema-dialect.d.ts +1 -1
- package/dist/output-schema-dialect.d.ts.map +1 -1
- package/dist/output-schema-dialect.js +1 -1
- package/dist/output-schema-dialect.js.map +1 -1
- package/dist/output-schema.d.ts +2 -2
- package/dist/output-schema.js +2 -2
- package/dist/plan.d.ts +29 -29
- package/dist/plan.d.ts.map +1 -1
- package/dist/plan.js +2 -2
- package/dist/plan.js.map +1 -1
- package/dist/primitives.d.ts +3 -5
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +4 -6
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +6 -6
- package/dist/problem.d.ts.map +1 -1
- package/dist/problem.js +1 -1
- package/dist/problem.js.map +1 -1
- package/dist/project.d.ts +87 -25
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +21 -1
- package/dist/project.js.map +1 -1
- package/dist/quota.d.ts +72 -48
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +6 -2
- package/dist/quota.js.map +1 -1
- package/dist/rate-limit.d.ts +20 -0
- package/dist/rate-limit.d.ts.map +1 -0
- package/dist/rate-limit.js +24 -0
- package/dist/rate-limit.js.map +1 -0
- package/dist/raw.d.ts +16 -16
- package/dist/raw.d.ts.map +1 -1
- package/dist/raw.js +1 -1
- package/dist/raw.js.map +1 -1
- package/dist/readiness.d.ts +242 -242
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +1 -1
- package/dist/readiness.js.map +1 -1
- package/dist/recovery.d.ts +106 -106
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +1 -1
- package/dist/recovery.js.map +1 -1
- package/dist/request-requirements.d.ts +9 -9
- package/dist/request-requirements.d.ts.map +1 -1
- package/dist/request-requirements.js +1 -1
- package/dist/request-requirements.js.map +1 -1
- package/dist/review.d.ts +29 -29
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +1 -1
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +11 -11
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +1 -1
- package/dist/route.js.map +1 -1
- package/dist/run-applicability.d.ts +764 -0
- package/dist/run-applicability.d.ts.map +1 -0
- package/dist/run-applicability.js +56 -0
- package/dist/run-applicability.js.map +1 -0
- package/dist/run-facts.d.ts +628 -0
- package/dist/run-facts.d.ts.map +1 -0
- package/dist/run-facts.js +429 -0
- package/dist/run-facts.js.map +1 -0
- package/dist/run-strategy.d.ts +40 -0
- package/dist/run-strategy.d.ts.map +1 -1
- package/dist/run-strategy.js +68 -1
- package/dist/run-strategy.js.map +1 -1
- package/dist/setup-device-code-envelope.d.ts +67 -0
- package/dist/setup-device-code-envelope.d.ts.map +1 -0
- package/dist/setup-device-code-envelope.js +25 -0
- package/dist/setup-device-code-envelope.js.map +1 -0
- package/dist/setup-login-protocol.d.ts +6 -0
- package/dist/setup-login-protocol.d.ts.map +1 -0
- package/dist/setup-login-protocol.js +12 -0
- package/dist/setup-login-protocol.js.map +1 -0
- package/dist/setup-transport.d.ts +12 -0
- package/dist/setup-transport.d.ts.map +1 -0
- package/dist/setup-transport.js +22 -0
- package/dist/setup-transport.js.map +1 -0
- package/dist/setup.d.ts +12572 -3749
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +34 -38
- package/dist/setup.js.map +1 -1
- package/dist/status-projection.d.ts +7 -5
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +11 -6
- package/dist/status-projection.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +10 -1
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +303 -303
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +1 -1
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +1157 -633
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +7 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +133 -84
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +21 -2
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +7 -7
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +1 -1
- package/dist/tool-ref.js.map +1 -1
- package/dist/work-report.d.ts +28 -28
- package/dist/work-report.d.ts.map +1 -1
- package/dist/work-report.js +3 -3
- package/dist/work-report.js.map +1 -1
- package/dist/workproduct.d.ts +6 -9
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js +1 -2
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +13 -13
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +1 -1
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +43 -2
- package/generated/BudgetObservation.schema.json +16 -0
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +1346 -0
- package/generated/ControlCredentialProfilesResponse.schema.json +10 -2
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1325 -0
- package/generated/ControlDirectoryEntry.schema.json +36 -0
- package/generated/ControlDirectoryListing.schema.json +77 -0
- package/generated/ControlHarnessListResponse.schema.json +41 -1
- package/generated/ControlQuotaResponse.schema.json +14 -1
- package/generated/ControlRunAgainDraft.schema.json +2 -2
- package/generated/ControlRunApplicabilityResponse.schema.json +217 -0
- package/generated/ControlRunDetail.schema.json +429 -68
- package/generated/ControlRunListResponse.schema.json +12 -3
- package/generated/ControlRunStartRequest.schema.json +2 -2
- package/generated/ControlRunSummary.schema.json +12 -3
- package/generated/ControlSettingsSnapshot.schema.json +12 -3
- package/generated/ControlSettingsUpdateRequest.schema.json +12 -3
- package/generated/ControlSetupJob.schema.json +9 -0
- package/generated/ControlSetupJobCreateRequest.schema.json +9 -0
- package/generated/ControlSetupJobEvent.schema.json +858 -758
- package/generated/ControlSetupJobListResponse.schema.json +9 -0
- package/generated/ControlSetupJobSnapshot.schema.json +811 -736
- package/generated/ControlThreadDetail.schema.json +32 -2
- package/generated/ControlThreadTurnRequest.schema.json +6 -25
- package/generated/DecisionRecord.schema.json +2 -1
- package/generated/GitCapability.schema.json +46 -0
- package/generated/GlobalConfig.schema.json +13 -4
- package/generated/HarnessEvent.schema.json +34 -2
- package/generated/HarnessManifest.schema.json +1 -1
- package/generated/HarnessStatusDto.schema.json +1 -1
- package/generated/McpRunHandleResult.schema.json +165 -1
- package/generated/McpRunToolResult.schema.json +165 -1
- package/generated/OutputReadyPayload.schema.json +44 -0
- package/generated/RunFacts.schema.json +569 -0
- package/generated/RunTelemetry.schema.json +493 -3
- package/generated/TaskContract.schema.json +1 -1
- package/generated/ThreadTurn.schema.json +29 -0
- package/generated/WorkProduct.schema.json +0 -4
- package/package.json +3 -3
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
export declare const ControlRunStartResponse: z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
jobId: z.ZodOptional<z.ZodString>;
|
|
4
4
|
runId: z.ZodString;
|
|
5
5
|
taskId: z.ZodOptional<z.ZodString>;
|
|
6
6
|
runDir: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
runId: string;
|
|
9
|
-
runDir: string;
|
|
10
8
|
jobId?: string | undefined;
|
|
11
|
-
taskId?: string | undefined;
|
|
12
|
-
}, {
|
|
13
9
|
runId: string;
|
|
10
|
+
taskId?: string | undefined;
|
|
14
11
|
runDir: string;
|
|
12
|
+
}, {
|
|
15
13
|
jobId?: string | undefined;
|
|
14
|
+
runId: string;
|
|
16
15
|
taskId?: string | undefined;
|
|
16
|
+
runDir: string;
|
|
17
17
|
}>, z.ZodObject<{
|
|
18
18
|
jobId: z.ZodString;
|
|
19
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" | "succeeded" | "interrupted" | "queued";
|
|
23
22
|
jobId: string;
|
|
23
|
+
state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
|
|
24
24
|
error?: string | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
state: "failed" | "cancelled" | "running" | "succeeded" | "interrupted" | "queued";
|
|
27
26
|
jobId: string;
|
|
27
|
+
state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
|
|
28
28
|
error?: string | undefined;
|
|
29
29
|
}>]>;
|
|
30
30
|
export type ControlRunStartResponse = z.infer<typeof ControlRunStartResponse>;
|
|
@@ -33,12 +33,12 @@ export declare const ControlInteractionAnswerResponse: z.ZodObject<{
|
|
|
33
33
|
status: z.ZodEnum<["delivered", "not_found", "already_resolved", "rejected"]>;
|
|
34
34
|
message: z.ZodOptional<z.ZodString>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
status: "rejected" | "delivered" | "not_found" | "already_resolved";
|
|
37
36
|
accepted: boolean;
|
|
37
|
+
status: "already_resolved" | "delivered" | "not_found" | "rejected";
|
|
38
38
|
message?: string | undefined;
|
|
39
39
|
}, {
|
|
40
|
-
status: "rejected" | "delivered" | "not_found" | "already_resolved";
|
|
41
40
|
accepted: boolean;
|
|
41
|
+
status: "already_resolved" | "delivered" | "not_found" | "rejected";
|
|
42
42
|
message?: string | undefined;
|
|
43
43
|
}>;
|
|
44
44
|
export type ControlInteractionAnswerResponse = z.infer<typeof ControlInteractionAnswerResponse>;
|
|
@@ -49,17 +49,17 @@ export declare const ControlRunControlResponse: z.ZodObject<{
|
|
|
49
49
|
cascadeRunIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
50
50
|
message: z.ZodOptional<z.ZodString>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
status: "unsupported" | "rejected" | "queued" | "applied";
|
|
53
52
|
accepted: boolean;
|
|
53
|
+
status: "applied" | "queued" | "rejected" | "unsupported";
|
|
54
|
+
runId?: string | undefined;
|
|
54
55
|
cascadeRunIds: string[];
|
|
55
56
|
message?: string | undefined;
|
|
56
|
-
runId?: string | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
accepted: boolean;
|
|
59
|
-
|
|
60
|
-
status?: "unsupported" | "rejected" | "queued" | "applied" | undefined;
|
|
59
|
+
status?: "applied" | "queued" | "rejected" | "unsupported" | undefined;
|
|
61
60
|
runId?: string | undefined;
|
|
62
61
|
cascadeRunIds?: string[] | undefined;
|
|
62
|
+
message?: string | undefined;
|
|
63
63
|
}>;
|
|
64
64
|
export type ControlRunControlResponse = z.infer<typeof ControlRunControlResponse>;
|
|
65
65
|
export declare const ControlRunListResponse: z.ZodObject<{
|
|
@@ -77,27 +77,27 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
77
77
|
}, "strict", z.ZodTypeAny, {
|
|
78
78
|
requested: boolean;
|
|
79
79
|
effective: boolean;
|
|
80
|
-
reason: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed";
|
|
81
|
-
remediation: string | null;
|
|
82
80
|
used: boolean;
|
|
81
|
+
reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
|
|
82
|
+
remediation: string | null;
|
|
83
83
|
}, {
|
|
84
84
|
requested?: boolean | undefined;
|
|
85
85
|
effective?: boolean | undefined;
|
|
86
|
-
reason?: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed" | undefined;
|
|
87
|
-
remediation?: string | null | undefined;
|
|
88
86
|
used?: boolean | undefined;
|
|
87
|
+
reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
|
|
88
|
+
remediation?: string | null | undefined;
|
|
89
89
|
}>, {
|
|
90
90
|
requested: boolean;
|
|
91
91
|
effective: boolean;
|
|
92
|
-
reason: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed";
|
|
93
|
-
remediation: string | null;
|
|
94
92
|
used: boolean;
|
|
93
|
+
reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
|
|
94
|
+
remediation: string | null;
|
|
95
95
|
}, {
|
|
96
96
|
requested?: boolean | undefined;
|
|
97
97
|
effective?: boolean | undefined;
|
|
98
|
-
reason?: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed" | undefined;
|
|
99
|
-
remediation?: string | null | undefined;
|
|
100
98
|
used?: boolean | undefined;
|
|
99
|
+
reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
|
|
100
|
+
remediation?: string | null | undefined;
|
|
101
101
|
}>>>;
|
|
102
102
|
taskId: z.ZodOptional<z.ZodString>;
|
|
103
103
|
state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
|
|
@@ -116,28 +116,28 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
116
116
|
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
117
117
|
nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
|
|
119
|
+
phase: string;
|
|
120
|
+
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
121
|
+
code: "budget_overshoot" | "cost_unverifiable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "unknown_paid_in_flight" | null;
|
|
120
122
|
harnessId: string | null;
|
|
121
123
|
attemptId: string | null;
|
|
122
|
-
runDir: string | null;
|
|
123
|
-
phase: string;
|
|
124
|
-
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "config_error" | "internal";
|
|
125
124
|
safeMessage: string;
|
|
126
125
|
rawDetailRef: string | null;
|
|
127
126
|
logRefs: string[];
|
|
128
127
|
eventRefs: string[];
|
|
128
|
+
runDir: string | null;
|
|
129
129
|
nextActions: string[];
|
|
130
130
|
}, {
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
phase?: string | undefined;
|
|
132
|
+
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
133
|
+
code?: "budget_overshoot" | "cost_unverifiable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "unknown_paid_in_flight" | null | undefined;
|
|
133
134
|
harnessId?: string | null | undefined;
|
|
134
135
|
attemptId?: string | null | undefined;
|
|
135
|
-
|
|
136
|
-
phase?: string | undefined;
|
|
137
|
-
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "config_error" | "internal" | undefined;
|
|
136
|
+
safeMessage: string;
|
|
138
137
|
rawDetailRef?: string | null | undefined;
|
|
139
138
|
logRefs?: string[] | undefined;
|
|
140
139
|
eventRefs?: string[] | undefined;
|
|
140
|
+
runDir?: string | null | undefined;
|
|
141
141
|
nextActions?: string[] | undefined;
|
|
142
142
|
}>>>;
|
|
143
143
|
project: z.ZodDefault<z.ZodObject<{
|
|
@@ -147,14 +147,14 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
147
147
|
context: z.ZodDefault<z.ZodEnum<["off", "auto"]>>;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
149
|
kind: "none" | "project";
|
|
150
|
-
context: "off" | "auto";
|
|
151
150
|
root: string | null;
|
|
152
151
|
projectName: string | null;
|
|
152
|
+
context: "auto" | "off";
|
|
153
153
|
}, {
|
|
154
154
|
kind?: "none" | "project" | undefined;
|
|
155
|
-
context?: "off" | "auto" | undefined;
|
|
156
155
|
root?: string | null | undefined;
|
|
157
156
|
projectName?: string | null | undefined;
|
|
157
|
+
context?: "auto" | "off" | undefined;
|
|
158
158
|
}>>;
|
|
159
159
|
mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
|
|
160
160
|
strategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<["race", "attempts", "until_clean", "deep_scan", "create"]>>>;
|
|
@@ -216,6 +216,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
216
216
|
reason: z.ZodEnum<["as_requested", "native_first", "no_native_session_fallback", "requested_route_unavailable", "undisclosed"]>;
|
|
217
217
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
218
218
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
profileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
219
220
|
modelMismatch: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
220
221
|
requested: z.ZodString;
|
|
221
222
|
observed: z.ZodString;
|
|
@@ -227,23 +228,25 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
227
228
|
observed: string;
|
|
228
229
|
}>>>;
|
|
229
230
|
}, "strip", z.ZodTypeAny, {
|
|
230
|
-
|
|
231
|
+
requested: "api_key" | "auto" | "subscription";
|
|
232
|
+
effective: "api_key" | "local_session" | "unknown" | null;
|
|
233
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
234
|
+
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
231
235
|
harnessId: string | null;
|
|
232
|
-
requested: "auto" | "subscription" | "api_key";
|
|
233
236
|
attemptId: string | null;
|
|
234
|
-
|
|
235
|
-
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
237
|
+
profileId: string | null;
|
|
236
238
|
modelMismatch: {
|
|
237
239
|
requested: string;
|
|
238
240
|
observed: string;
|
|
239
241
|
} | null;
|
|
240
242
|
}, {
|
|
241
|
-
requested: "
|
|
243
|
+
requested: "api_key" | "auto" | "subscription";
|
|
244
|
+
effective?: "api_key" | "local_session" | "unknown" | null | undefined;
|
|
245
|
+
source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
242
246
|
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
243
|
-
source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
|
|
244
247
|
harnessId?: string | null | undefined;
|
|
245
248
|
attemptId?: string | null | undefined;
|
|
246
|
-
|
|
249
|
+
profileId?: string | null | undefined;
|
|
247
250
|
modelMismatch?: {
|
|
248
251
|
requested: string;
|
|
249
252
|
observed: string;
|
|
@@ -268,29 +271,29 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
268
271
|
rawDetailRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
269
272
|
available: z.ZodDefault<z.ZodBoolean>;
|
|
270
273
|
}, "strip", z.ZodTypeAny, {
|
|
271
|
-
status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
|
|
272
|
-
available: boolean;
|
|
273
|
-
target: string | null;
|
|
274
|
-
mode: "off" | "auto" | "cached" | "live";
|
|
275
274
|
required: boolean;
|
|
276
|
-
|
|
275
|
+
mode: "auto" | "cached" | "live" | "off";
|
|
276
|
+
effectiveMode: "auto" | "cached" | "live" | "off";
|
|
277
277
|
attempted: boolean;
|
|
278
|
-
rawDetailRef: string | null;
|
|
279
|
-
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
280
278
|
satisfied: boolean;
|
|
279
|
+
status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
|
|
280
|
+
tool: string | null;
|
|
281
|
+
target: string | null;
|
|
281
282
|
errorSummary: string | null;
|
|
283
|
+
rawDetailRef: string | null;
|
|
284
|
+
available: boolean;
|
|
282
285
|
}, {
|
|
283
|
-
status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
|
|
284
|
-
available?: boolean | undefined;
|
|
285
|
-
target?: string | null | undefined;
|
|
286
|
-
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
287
286
|
required?: boolean | undefined;
|
|
288
|
-
|
|
287
|
+
mode?: "auto" | "cached" | "live" | "off" | undefined;
|
|
288
|
+
effectiveMode?: "auto" | "cached" | "live" | "off" | undefined;
|
|
289
289
|
attempted?: boolean | undefined;
|
|
290
|
-
rawDetailRef?: string | null | undefined;
|
|
291
|
-
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
292
290
|
satisfied?: boolean | undefined;
|
|
291
|
+
status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
|
|
292
|
+
tool?: string | null | undefined;
|
|
293
|
+
target?: string | null | undefined;
|
|
293
294
|
errorSummary?: string | null | undefined;
|
|
295
|
+
rawDetailRef?: string | null | undefined;
|
|
296
|
+
available?: boolean | undefined;
|
|
294
297
|
}>>;
|
|
295
298
|
requestRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
296
299
|
capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
|
|
@@ -301,20 +304,20 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
301
304
|
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "runtime_unavailable", "postdiff_only"]>;
|
|
302
305
|
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
303
306
|
}, "strip", z.ZodTypeAny, {
|
|
304
|
-
|
|
305
|
-
effective: boolean;
|
|
307
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
306
308
|
harness_id: string;
|
|
307
|
-
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
308
|
-
evidence_refs: string[];
|
|
309
309
|
eligible: boolean;
|
|
310
|
-
capability: "browser" | "delegation" | "path_deny";
|
|
311
|
-
}, {
|
|
312
310
|
requested: boolean;
|
|
313
311
|
effective: boolean;
|
|
312
|
+
reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
|
|
313
|
+
evidence_refs: string[];
|
|
314
|
+
}, {
|
|
315
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
314
316
|
harness_id: string;
|
|
315
|
-
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
316
317
|
eligible: boolean;
|
|
317
|
-
|
|
318
|
+
requested: boolean;
|
|
319
|
+
effective: boolean;
|
|
320
|
+
reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
|
|
318
321
|
evidence_refs?: string[] | undefined;
|
|
319
322
|
}>, "many">>;
|
|
320
323
|
toolPermissionPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -343,10 +346,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
343
346
|
revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
344
347
|
revertable: z.ZodDefault<z.ZodBoolean>;
|
|
345
348
|
}, "strip", z.ZodTypeAny, {
|
|
346
|
-
kind: "
|
|
347
|
-
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
348
|
-
revertAnchorId: string | null;
|
|
349
|
-
postTurnSha: string | null;
|
|
349
|
+
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
350
350
|
diffStat: {
|
|
351
351
|
files: number;
|
|
352
352
|
additions: number;
|
|
@@ -354,13 +354,13 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
354
354
|
} | null;
|
|
355
355
|
blockers: number;
|
|
356
356
|
adopted: boolean | null;
|
|
357
|
+
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
357
358
|
preTurnSha: string | null;
|
|
359
|
+
postTurnSha: string | null;
|
|
360
|
+
revertAnchorId: string | null;
|
|
358
361
|
revertable: boolean;
|
|
359
362
|
}, {
|
|
360
|
-
kind?: "
|
|
361
|
-
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
362
|
-
revertAnchorId?: string | null | undefined;
|
|
363
|
-
postTurnSha?: string | null | undefined;
|
|
363
|
+
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
364
364
|
diffStat?: {
|
|
365
365
|
files: number;
|
|
366
366
|
additions: number;
|
|
@@ -368,7 +368,10 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
368
368
|
} | null | undefined;
|
|
369
369
|
blockers?: number | undefined;
|
|
370
370
|
adopted?: boolean | null | undefined;
|
|
371
|
+
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
371
372
|
preTurnSha?: string | null | undefined;
|
|
373
|
+
postTurnSha?: string | null | undefined;
|
|
374
|
+
revertAnchorId?: string | null | undefined;
|
|
372
375
|
revertable?: boolean | undefined;
|
|
373
376
|
}>>;
|
|
374
377
|
outcomeFacts: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -376,7 +379,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
376
379
|
noChanges: z.ZodDefault<z.ZodBoolean>;
|
|
377
380
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
378
381
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
379
|
-
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", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
382
|
+
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", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
380
383
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
381
384
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
382
385
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -385,59 +388,59 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
385
388
|
locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
386
389
|
description: z.ZodString;
|
|
387
390
|
}, "strip", z.ZodTypeAny, {
|
|
388
|
-
kind: "
|
|
389
|
-
description: string;
|
|
391
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
390
392
|
locator: string | null;
|
|
391
|
-
}, {
|
|
392
|
-
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
393
393
|
description: string;
|
|
394
|
+
}, {
|
|
395
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
394
396
|
locator?: string | null | undefined;
|
|
397
|
+
description: string;
|
|
395
398
|
}>, "many">>;
|
|
396
399
|
}, "strip", z.ZodTypeAny, {
|
|
397
|
-
|
|
398
|
-
|
|
400
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
401
|
+
source: "absent" | "constrained" | "validated";
|
|
399
402
|
required_inputs?: {
|
|
400
|
-
kind: "
|
|
401
|
-
description: string;
|
|
403
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
402
404
|
locator: string | null;
|
|
405
|
+
description: string;
|
|
403
406
|
}[] | undefined;
|
|
404
407
|
}, {
|
|
405
|
-
|
|
406
|
-
|
|
408
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
409
|
+
source: "absent" | "constrained" | "validated";
|
|
407
410
|
required_inputs?: {
|
|
408
|
-
kind: "
|
|
409
|
-
description: string;
|
|
411
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
410
412
|
locator?: string | null | undefined;
|
|
413
|
+
description: string;
|
|
411
414
|
}[] | undefined;
|
|
412
415
|
}>>;
|
|
413
416
|
}, "strict", z.ZodTypeAny, {
|
|
414
|
-
|
|
415
|
-
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" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null;
|
|
416
|
-
checks: "passed" | "failed" | "not_configured";
|
|
417
|
-
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
417
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
418
418
|
noChanges: boolean;
|
|
419
|
+
checks: "failed" | "not_configured" | "passed";
|
|
420
|
+
review: "approved" | "blocked" | "not_run";
|
|
421
|
+
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
419
422
|
work_state?: {
|
|
420
|
-
|
|
421
|
-
|
|
423
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
424
|
+
source: "absent" | "constrained" | "validated";
|
|
422
425
|
required_inputs?: {
|
|
423
|
-
kind: "
|
|
424
|
-
description: string;
|
|
426
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
425
427
|
locator: string | null;
|
|
428
|
+
description: string;
|
|
426
429
|
}[] | undefined;
|
|
427
430
|
} | undefined;
|
|
428
431
|
}, {
|
|
429
|
-
lifecycle: "
|
|
430
|
-
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
431
|
-
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" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null | undefined;
|
|
432
|
-
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
432
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
433
433
|
noChanges?: boolean | undefined;
|
|
434
|
+
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
435
|
+
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
436
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
434
437
|
work_state?: {
|
|
435
|
-
|
|
436
|
-
|
|
438
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
439
|
+
source: "absent" | "constrained" | "validated";
|
|
437
440
|
required_inputs?: {
|
|
438
|
-
kind: "
|
|
439
|
-
description: string;
|
|
441
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
440
442
|
locator?: string | null | undefined;
|
|
443
|
+
description: string;
|
|
441
444
|
}[] | undefined;
|
|
442
445
|
} | undefined;
|
|
443
446
|
}>>>;
|
|
@@ -448,15 +451,15 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
448
451
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
449
452
|
verified: z.ZodDefault<z.ZodBoolean>;
|
|
450
453
|
}, "strip", z.ZodTypeAny, {
|
|
451
|
-
harnessId: string | null;
|
|
452
|
-
verified: boolean;
|
|
453
454
|
requestedModel: string | null;
|
|
454
455
|
observedModel: string | null;
|
|
456
|
+
harnessId: string | null;
|
|
457
|
+
verified: boolean;
|
|
455
458
|
}, {
|
|
456
|
-
harnessId?: string | null | undefined;
|
|
457
|
-
verified?: boolean | undefined;
|
|
458
459
|
requestedModel?: string | null | undefined;
|
|
459
460
|
observedModel?: string | null | undefined;
|
|
461
|
+
harnessId?: string | null | undefined;
|
|
462
|
+
verified?: boolean | undefined;
|
|
460
463
|
}>>>;
|
|
461
464
|
routingRationale: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
462
465
|
goal: z.ZodEnum<["auto", "quality", "economy"]>;
|
|
@@ -471,39 +474,39 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
471
474
|
eligible: z.ZodBoolean;
|
|
472
475
|
}, "strip", z.ZodTypeAny, {
|
|
473
476
|
harness_id: string;
|
|
474
|
-
billing_knowledge: "
|
|
477
|
+
billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
|
|
475
478
|
incremental_cost_usd: number | null;
|
|
476
479
|
eligible: boolean;
|
|
477
480
|
}, {
|
|
478
481
|
harness_id: string;
|
|
479
|
-
billing_knowledge: "
|
|
480
|
-
eligible: boolean;
|
|
482
|
+
billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
|
|
481
483
|
incremental_cost_usd?: number | null | undefined;
|
|
484
|
+
eligible: boolean;
|
|
482
485
|
}>, "many">>;
|
|
483
486
|
}, "strip", z.ZodTypeAny, {
|
|
487
|
+
goal: "auto" | "economy" | "quality";
|
|
488
|
+
paid_fallback: "allowed_within_cap" | "never" | "when_unavailable";
|
|
489
|
+
order: string[];
|
|
490
|
+
dropped: string[];
|
|
491
|
+
reason: "all_incremental_cash_unknown" | "declared_order" | "delegate_effective_first" | "expiring_quota_slack" | "explicit_primary" | "lowest_incremental_cash" | "quality_tier" | "subscription_entitlement_first";
|
|
484
492
|
entries: {
|
|
485
493
|
harness_id: string;
|
|
486
|
-
billing_knowledge: "
|
|
494
|
+
billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
|
|
487
495
|
incremental_cost_usd: number | null;
|
|
488
496
|
eligible: boolean;
|
|
489
497
|
}[];
|
|
490
|
-
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
|
|
491
|
-
goal: "auto" | "quality" | "economy";
|
|
492
|
-
paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
|
|
493
|
-
order: string[];
|
|
494
|
-
dropped: string[];
|
|
495
498
|
}, {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
+
goal: "auto" | "economy" | "quality";
|
|
500
|
+
paid_fallback: "allowed_within_cap" | "never" | "when_unavailable";
|
|
501
|
+
order?: string[] | undefined;
|
|
502
|
+
dropped?: string[] | undefined;
|
|
503
|
+
reason: "all_incremental_cash_unknown" | "declared_order" | "delegate_effective_first" | "expiring_quota_slack" | "explicit_primary" | "lowest_incremental_cash" | "quality_tier" | "subscription_entitlement_first";
|
|
499
504
|
entries?: {
|
|
500
505
|
harness_id: string;
|
|
501
|
-
billing_knowledge: "
|
|
502
|
-
eligible: boolean;
|
|
506
|
+
billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
|
|
503
507
|
incremental_cost_usd?: number | null | undefined;
|
|
508
|
+
eligible: boolean;
|
|
504
509
|
}[] | undefined;
|
|
505
|
-
order?: string[] | undefined;
|
|
506
|
-
dropped?: string[] | undefined;
|
|
507
510
|
}>>>;
|
|
508
511
|
tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
509
512
|
program: z.ZodString;
|
|
@@ -511,10 +514,10 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
511
514
|
cwd: z.ZodOptional<z.ZodString>;
|
|
512
515
|
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
513
516
|
}, "strict", z.ZodTypeAny, {
|
|
514
|
-
args: string[];
|
|
515
517
|
program: string;
|
|
516
|
-
|
|
518
|
+
args: string[];
|
|
517
519
|
cwd?: string | undefined;
|
|
520
|
+
envAllowlist: string[];
|
|
518
521
|
}, {
|
|
519
522
|
program: string;
|
|
520
523
|
args?: string[] | undefined;
|
|
@@ -525,66 +528,115 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
525
528
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
526
529
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
527
530
|
}, "strip", z.ZodTypeAny, {
|
|
528
|
-
|
|
531
|
+
jobId: string;
|
|
532
|
+
runId: string;
|
|
529
533
|
parentRunId: string | null;
|
|
530
534
|
delegatedFromRunId: string | null;
|
|
531
535
|
delegation: {
|
|
532
536
|
requested: boolean;
|
|
533
537
|
effective: boolean;
|
|
534
|
-
reason: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed";
|
|
535
|
-
remediation: string | null;
|
|
536
538
|
used: boolean;
|
|
539
|
+
reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
|
|
540
|
+
remediation: string | null;
|
|
537
541
|
} | null;
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
projectName: string | null;
|
|
543
|
-
};
|
|
544
|
-
jobId: string;
|
|
545
|
-
runId: string;
|
|
542
|
+
taskId?: string | undefined;
|
|
543
|
+
state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
|
|
544
|
+
runDir?: string | undefined;
|
|
545
|
+
error?: string | undefined;
|
|
546
546
|
failure: {
|
|
547
|
-
|
|
547
|
+
phase: string;
|
|
548
|
+
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
549
|
+
code: "budget_overshoot" | "cost_unverifiable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "unknown_paid_in_flight" | null;
|
|
548
550
|
harnessId: string | null;
|
|
549
551
|
attemptId: string | null;
|
|
550
|
-
runDir: string | null;
|
|
551
|
-
phase: string;
|
|
552
|
-
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "config_error" | "internal";
|
|
553
552
|
safeMessage: string;
|
|
554
553
|
rawDetailRef: string | null;
|
|
555
554
|
logRefs: string[];
|
|
556
555
|
eventRefs: string[];
|
|
556
|
+
runDir: string | null;
|
|
557
557
|
nextActions: string[];
|
|
558
558
|
} | null;
|
|
559
|
+
project: {
|
|
560
|
+
kind: "none" | "project";
|
|
561
|
+
root: string | null;
|
|
562
|
+
projectName: string | null;
|
|
563
|
+
context: "auto" | "off";
|
|
564
|
+
};
|
|
565
|
+
mode?: "agent" | "ask" | "plan" | undefined;
|
|
566
|
+
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
567
|
+
prompt?: string | undefined;
|
|
568
|
+
harnesses?: string[] | undefined;
|
|
569
|
+
primaryHarness?: string | undefined;
|
|
570
|
+
routingGoal?: "auto" | "economy" | "quality" | undefined;
|
|
571
|
+
model?: string | undefined;
|
|
572
|
+
reviewerPanel?: {
|
|
573
|
+
harness: string;
|
|
574
|
+
model?: string | undefined;
|
|
575
|
+
effort?: string | undefined;
|
|
576
|
+
}[] | undefined;
|
|
577
|
+
protectedPathApprovals?: {
|
|
578
|
+
path: string;
|
|
579
|
+
reason?: string | undefined;
|
|
580
|
+
}[] | undefined;
|
|
581
|
+
n?: number | undefined;
|
|
582
|
+
paidBudget?: {
|
|
583
|
+
kind: "unlimited";
|
|
584
|
+
} | {
|
|
585
|
+
kind: "finite";
|
|
586
|
+
maxUsd: number;
|
|
587
|
+
} | undefined;
|
|
588
|
+
spendUsd?: number | null | undefined;
|
|
589
|
+
spendEstimated?: boolean | undefined;
|
|
590
|
+
inputTokens?: number | null | undefined;
|
|
591
|
+
outputTokens?: number | null | undefined;
|
|
592
|
+
cachedInputTokens?: number | null | undefined;
|
|
593
|
+
outputConformance?: "failed" | "passed" | null | undefined;
|
|
594
|
+
authRoute?: {
|
|
595
|
+
requested: "api_key" | "auto" | "subscription";
|
|
596
|
+
effective: "api_key" | "local_session" | "unknown" | null;
|
|
597
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
598
|
+
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
599
|
+
harnessId: string | null;
|
|
600
|
+
attemptId: string | null;
|
|
601
|
+
profileId: string | null;
|
|
602
|
+
modelMismatch: {
|
|
603
|
+
requested: string;
|
|
604
|
+
observed: string;
|
|
605
|
+
} | null;
|
|
606
|
+
} | null | undefined;
|
|
607
|
+
access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
608
|
+
requestedAccess?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
609
|
+
effectiveAccess?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
610
|
+
externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
|
|
611
|
+
webRequired?: boolean | undefined;
|
|
612
|
+
webMode?: "auto" | "cached" | "live" | "off" | undefined;
|
|
559
613
|
webEvidence: {
|
|
560
|
-
status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
|
|
561
|
-
available: boolean;
|
|
562
|
-
target: string | null;
|
|
563
|
-
mode: "off" | "auto" | "cached" | "live";
|
|
564
614
|
required: boolean;
|
|
565
|
-
|
|
615
|
+
mode: "auto" | "cached" | "live" | "off";
|
|
616
|
+
effectiveMode: "auto" | "cached" | "live" | "off";
|
|
566
617
|
attempted: boolean;
|
|
567
|
-
rawDetailRef: string | null;
|
|
568
|
-
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
569
618
|
satisfied: boolean;
|
|
619
|
+
status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
|
|
620
|
+
tool: string | null;
|
|
621
|
+
target: string | null;
|
|
570
622
|
errorSummary: string | null;
|
|
623
|
+
rawDetailRef: string | null;
|
|
624
|
+
available: boolean;
|
|
571
625
|
};
|
|
572
626
|
requestRequirements: {
|
|
627
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
628
|
+
harness_id: string;
|
|
629
|
+
eligible: boolean;
|
|
573
630
|
requested: boolean;
|
|
574
631
|
effective: boolean;
|
|
575
|
-
|
|
576
|
-
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
632
|
+
reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
|
|
577
633
|
evidence_refs: string[];
|
|
578
|
-
eligible: boolean;
|
|
579
|
-
capability: "browser" | "delegation" | "path_deny";
|
|
580
634
|
}[];
|
|
581
|
-
|
|
635
|
+
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
636
|
+
outputReadyState: "diagnostic" | "finalizing" | "pending" | "ready";
|
|
582
637
|
toolWarningsTotal: number;
|
|
583
638
|
result: {
|
|
584
|
-
kind: "
|
|
585
|
-
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
586
|
-
revertAnchorId: string | null;
|
|
587
|
-
postTurnSha: string | null;
|
|
639
|
+
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
588
640
|
diffStat: {
|
|
589
641
|
files: number;
|
|
590
642
|
additions: number;
|
|
@@ -592,63 +644,108 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
592
644
|
} | null;
|
|
593
645
|
blockers: number;
|
|
594
646
|
adopted: boolean | null;
|
|
647
|
+
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
595
648
|
preTurnSha: string | null;
|
|
649
|
+
postTurnSha: string | null;
|
|
650
|
+
revertAnchorId: string | null;
|
|
596
651
|
revertable: boolean;
|
|
597
652
|
};
|
|
598
653
|
outcomeFacts: {
|
|
599
|
-
|
|
600
|
-
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" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null;
|
|
601
|
-
checks: "passed" | "failed" | "not_configured";
|
|
602
|
-
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
654
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
603
655
|
noChanges: boolean;
|
|
656
|
+
checks: "failed" | "not_configured" | "passed";
|
|
657
|
+
review: "approved" | "blocked" | "not_run";
|
|
658
|
+
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
604
659
|
work_state?: {
|
|
605
|
-
|
|
606
|
-
|
|
660
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
661
|
+
source: "absent" | "constrained" | "validated";
|
|
607
662
|
required_inputs?: {
|
|
608
|
-
kind: "
|
|
609
|
-
description: string;
|
|
663
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
610
664
|
locator: string | null;
|
|
665
|
+
description: string;
|
|
611
666
|
}[] | undefined;
|
|
612
667
|
} | undefined;
|
|
613
668
|
} | null;
|
|
614
669
|
waitingOnUser: boolean;
|
|
615
670
|
route: {
|
|
616
|
-
harnessId: string | null;
|
|
617
|
-
verified: boolean;
|
|
618
671
|
requestedModel: string | null;
|
|
619
672
|
observedModel: string | null;
|
|
673
|
+
harnessId: string | null;
|
|
674
|
+
verified: boolean;
|
|
620
675
|
} | null;
|
|
621
676
|
routingRationale: {
|
|
677
|
+
goal: "auto" | "economy" | "quality";
|
|
678
|
+
paid_fallback: "allowed_within_cap" | "never" | "when_unavailable";
|
|
679
|
+
order: string[];
|
|
680
|
+
dropped: string[];
|
|
681
|
+
reason: "all_incremental_cash_unknown" | "declared_order" | "delegate_effective_first" | "expiring_quota_slack" | "explicit_primary" | "lowest_incremental_cash" | "quality_tier" | "subscription_entitlement_first";
|
|
622
682
|
entries: {
|
|
623
683
|
harness_id: string;
|
|
624
|
-
billing_knowledge: "
|
|
684
|
+
billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
|
|
625
685
|
incremental_cost_usd: number | null;
|
|
626
686
|
eligible: boolean;
|
|
627
687
|
}[];
|
|
628
|
-
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
|
|
629
|
-
goal: "auto" | "quality" | "economy";
|
|
630
|
-
paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
|
|
631
|
-
order: string[];
|
|
632
|
-
dropped: string[];
|
|
633
688
|
} | null;
|
|
634
|
-
startedAt?: string | undefined;
|
|
635
|
-
error?: string | undefined;
|
|
636
|
-
createdAt?: string | undefined;
|
|
637
|
-
mode?: "ask" | "plan" | "agent" | undefined;
|
|
638
|
-
prompt?: string | undefined;
|
|
639
|
-
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
640
|
-
harnesses?: string[] | undefined;
|
|
641
|
-
model?: string | undefined;
|
|
642
689
|
tests?: {
|
|
643
|
-
args: string[];
|
|
644
690
|
program: string;
|
|
645
|
-
|
|
691
|
+
args: string[];
|
|
646
692
|
cwd?: string | undefined;
|
|
693
|
+
envAllowlist: string[];
|
|
647
694
|
}[] | undefined;
|
|
695
|
+
createdAt?: string | undefined;
|
|
696
|
+
startedAt?: string | undefined;
|
|
697
|
+
finishedAt?: string | undefined;
|
|
698
|
+
}, {
|
|
699
|
+
jobId: string;
|
|
700
|
+
runId: string;
|
|
701
|
+
parentRunId?: string | null | undefined;
|
|
702
|
+
delegatedFromRunId?: string | null | undefined;
|
|
703
|
+
delegation?: {
|
|
704
|
+
requested?: boolean | undefined;
|
|
705
|
+
effective?: boolean | undefined;
|
|
706
|
+
used?: boolean | undefined;
|
|
707
|
+
reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
|
|
708
|
+
remediation?: string | null | undefined;
|
|
709
|
+
} | null | undefined;
|
|
648
710
|
taskId?: string | undefined;
|
|
711
|
+
state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
|
|
649
712
|
runDir?: string | undefined;
|
|
713
|
+
error?: string | undefined;
|
|
714
|
+
failure?: {
|
|
715
|
+
phase?: string | undefined;
|
|
716
|
+
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
717
|
+
code?: "budget_overshoot" | "cost_unverifiable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "unknown_paid_in_flight" | null | undefined;
|
|
718
|
+
harnessId?: string | null | undefined;
|
|
719
|
+
attemptId?: string | null | undefined;
|
|
720
|
+
safeMessage: string;
|
|
721
|
+
rawDetailRef?: string | null | undefined;
|
|
722
|
+
logRefs?: string[] | undefined;
|
|
723
|
+
eventRefs?: string[] | undefined;
|
|
724
|
+
runDir?: string | null | undefined;
|
|
725
|
+
nextActions?: string[] | undefined;
|
|
726
|
+
} | null | undefined;
|
|
727
|
+
project?: {
|
|
728
|
+
kind?: "none" | "project" | undefined;
|
|
729
|
+
root?: string | null | undefined;
|
|
730
|
+
projectName?: string | null | undefined;
|
|
731
|
+
context?: "auto" | "off" | undefined;
|
|
732
|
+
} | undefined;
|
|
733
|
+
mode?: "agent" | "ask" | "plan" | undefined;
|
|
734
|
+
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
735
|
+
prompt?: string | undefined;
|
|
736
|
+
harnesses?: string[] | undefined;
|
|
650
737
|
primaryHarness?: string | undefined;
|
|
651
|
-
routingGoal?: "auto" | "
|
|
738
|
+
routingGoal?: "auto" | "economy" | "quality" | undefined;
|
|
739
|
+
model?: string | undefined;
|
|
740
|
+
reviewerPanel?: {
|
|
741
|
+
harness: string;
|
|
742
|
+
model?: string | undefined;
|
|
743
|
+
effort?: string | undefined;
|
|
744
|
+
}[] | undefined;
|
|
745
|
+
protectedPathApprovals?: {
|
|
746
|
+
path: string;
|
|
747
|
+
reason?: string | undefined;
|
|
748
|
+
}[] | undefined;
|
|
652
749
|
n?: number | undefined;
|
|
653
750
|
paidBudget?: {
|
|
654
751
|
kind: "unlimited";
|
|
@@ -656,161 +753,58 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
656
753
|
kind: "finite";
|
|
657
754
|
maxUsd: number;
|
|
658
755
|
} | undefined;
|
|
659
|
-
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
660
|
-
protectedPathApprovals?: {
|
|
661
|
-
path: string;
|
|
662
|
-
reason?: string | undefined;
|
|
663
|
-
}[] | undefined;
|
|
664
|
-
reviewerPanel?: {
|
|
665
|
-
harness: string;
|
|
666
|
-
model?: string | undefined;
|
|
667
|
-
effort?: string | undefined;
|
|
668
|
-
}[] | undefined;
|
|
669
|
-
strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
|
|
670
756
|
spendUsd?: number | null | undefined;
|
|
671
757
|
spendEstimated?: boolean | undefined;
|
|
672
758
|
inputTokens?: number | null | undefined;
|
|
673
759
|
outputTokens?: number | null | undefined;
|
|
674
760
|
cachedInputTokens?: number | null | undefined;
|
|
675
|
-
outputConformance?: "
|
|
761
|
+
outputConformance?: "failed" | "passed" | null | undefined;
|
|
676
762
|
authRoute?: {
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
attemptId: string | null;
|
|
681
|
-
effective: "unknown" | "api_key" | "local_session" | null;
|
|
763
|
+
requested: "api_key" | "auto" | "subscription";
|
|
764
|
+
effective?: "api_key" | "local_session" | "unknown" | null | undefined;
|
|
765
|
+
source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
682
766
|
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
683
|
-
modelMismatch: {
|
|
684
|
-
requested: string;
|
|
685
|
-
observed: string;
|
|
686
|
-
} | null;
|
|
687
|
-
} | null | undefined;
|
|
688
|
-
requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
689
|
-
effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
690
|
-
webRequired?: boolean | undefined;
|
|
691
|
-
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
692
|
-
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
693
|
-
finishedAt?: string | undefined;
|
|
694
|
-
}, {
|
|
695
|
-
state: "failed" | "cancelled" | "running" | "succeeded" | "interrupted" | "queued";
|
|
696
|
-
jobId: string;
|
|
697
|
-
runId: string;
|
|
698
|
-
startedAt?: string | undefined;
|
|
699
|
-
error?: string | undefined;
|
|
700
|
-
createdAt?: string | undefined;
|
|
701
|
-
mode?: "ask" | "plan" | "agent" | undefined;
|
|
702
|
-
prompt?: string | undefined;
|
|
703
|
-
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
704
|
-
parentRunId?: string | null | undefined;
|
|
705
|
-
delegatedFromRunId?: string | null | undefined;
|
|
706
|
-
delegation?: {
|
|
707
|
-
requested?: boolean | undefined;
|
|
708
|
-
effective?: boolean | undefined;
|
|
709
|
-
reason?: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed" | undefined;
|
|
710
|
-
remediation?: string | null | undefined;
|
|
711
|
-
used?: boolean | undefined;
|
|
712
|
-
} | null | undefined;
|
|
713
|
-
harnesses?: string[] | undefined;
|
|
714
|
-
model?: string | undefined;
|
|
715
|
-
tests?: {
|
|
716
|
-
program: string;
|
|
717
|
-
args?: string[] | undefined;
|
|
718
|
-
cwd?: string | undefined;
|
|
719
|
-
envAllowlist?: string[] | undefined;
|
|
720
|
-
}[] | undefined;
|
|
721
|
-
project?: {
|
|
722
|
-
kind?: "none" | "project" | undefined;
|
|
723
|
-
context?: "off" | "auto" | undefined;
|
|
724
|
-
root?: string | null | undefined;
|
|
725
|
-
projectName?: string | null | undefined;
|
|
726
|
-
} | undefined;
|
|
727
|
-
taskId?: string | undefined;
|
|
728
|
-
runDir?: string | undefined;
|
|
729
|
-
primaryHarness?: string | undefined;
|
|
730
|
-
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
731
|
-
n?: number | undefined;
|
|
732
|
-
paidBudget?: {
|
|
733
|
-
kind: "unlimited";
|
|
734
|
-
} | {
|
|
735
|
-
kind: "finite";
|
|
736
|
-
maxUsd: number;
|
|
737
|
-
} | undefined;
|
|
738
|
-
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
739
|
-
protectedPathApprovals?: {
|
|
740
|
-
path: string;
|
|
741
|
-
reason?: string | undefined;
|
|
742
|
-
}[] | undefined;
|
|
743
|
-
reviewerPanel?: {
|
|
744
|
-
harness: string;
|
|
745
|
-
model?: string | undefined;
|
|
746
|
-
effort?: string | undefined;
|
|
747
|
-
}[] | undefined;
|
|
748
|
-
failure?: {
|
|
749
|
-
safeMessage: string;
|
|
750
|
-
code?: "budget_overshoot" | "cost_unverifiable" | "finite_zero" | "hard_cap" | "estimate_headroom" | "unknown_paid_in_flight" | "delegation_child_drain_timeout" | null | undefined;
|
|
751
767
|
harnessId?: string | null | undefined;
|
|
752
768
|
attemptId?: string | null | undefined;
|
|
753
|
-
|
|
754
|
-
phase?: string | undefined;
|
|
755
|
-
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "config_error" | "internal" | undefined;
|
|
756
|
-
rawDetailRef?: string | null | undefined;
|
|
757
|
-
logRefs?: string[] | undefined;
|
|
758
|
-
eventRefs?: string[] | undefined;
|
|
759
|
-
nextActions?: string[] | undefined;
|
|
760
|
-
} | null | undefined;
|
|
761
|
-
strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
|
|
762
|
-
spendUsd?: number | null | undefined;
|
|
763
|
-
spendEstimated?: boolean | undefined;
|
|
764
|
-
inputTokens?: number | null | undefined;
|
|
765
|
-
outputTokens?: number | null | undefined;
|
|
766
|
-
cachedInputTokens?: number | null | undefined;
|
|
767
|
-
outputConformance?: "passed" | "failed" | null | undefined;
|
|
768
|
-
authRoute?: {
|
|
769
|
-
requested: "auto" | "subscription" | "api_key";
|
|
770
|
-
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
771
|
-
source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
|
|
772
|
-
harnessId?: string | null | undefined;
|
|
773
|
-
attemptId?: string | null | undefined;
|
|
774
|
-
effective?: "unknown" | "api_key" | "local_session" | null | undefined;
|
|
769
|
+
profileId?: string | null | undefined;
|
|
775
770
|
modelMismatch?: {
|
|
776
771
|
requested: string;
|
|
777
772
|
observed: string;
|
|
778
773
|
} | null | undefined;
|
|
779
774
|
} | null | undefined;
|
|
780
|
-
|
|
781
|
-
|
|
775
|
+
access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
776
|
+
requestedAccess?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
777
|
+
effectiveAccess?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
778
|
+
externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
|
|
782
779
|
webRequired?: boolean | undefined;
|
|
783
|
-
webMode?: "
|
|
780
|
+
webMode?: "auto" | "cached" | "live" | "off" | undefined;
|
|
784
781
|
webEvidence?: {
|
|
785
|
-
status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
|
|
786
|
-
available?: boolean | undefined;
|
|
787
|
-
target?: string | null | undefined;
|
|
788
|
-
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
789
782
|
required?: boolean | undefined;
|
|
790
|
-
|
|
783
|
+
mode?: "auto" | "cached" | "live" | "off" | undefined;
|
|
784
|
+
effectiveMode?: "auto" | "cached" | "live" | "off" | undefined;
|
|
791
785
|
attempted?: boolean | undefined;
|
|
792
|
-
rawDetailRef?: string | null | undefined;
|
|
793
|
-
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
794
786
|
satisfied?: boolean | undefined;
|
|
787
|
+
status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
|
|
788
|
+
tool?: string | null | undefined;
|
|
789
|
+
target?: string | null | undefined;
|
|
795
790
|
errorSummary?: string | null | undefined;
|
|
791
|
+
rawDetailRef?: string | null | undefined;
|
|
792
|
+
available?: boolean | undefined;
|
|
796
793
|
} | undefined;
|
|
797
794
|
requestRequirements?: {
|
|
798
|
-
|
|
799
|
-
effective: boolean;
|
|
795
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
800
796
|
harness_id: string;
|
|
801
|
-
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
802
797
|
eligible: boolean;
|
|
803
|
-
|
|
798
|
+
requested: boolean;
|
|
799
|
+
effective: boolean;
|
|
800
|
+
reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
|
|
804
801
|
evidence_refs?: string[] | undefined;
|
|
805
802
|
}[] | undefined;
|
|
806
803
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
807
|
-
outputReadyState?: "
|
|
804
|
+
outputReadyState?: "diagnostic" | "finalizing" | "pending" | "ready" | undefined;
|
|
808
805
|
toolWarningsTotal?: number | undefined;
|
|
809
806
|
result?: {
|
|
810
|
-
kind?: "
|
|
811
|
-
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
812
|
-
revertAnchorId?: string | null | undefined;
|
|
813
|
-
postTurnSha?: string | null | undefined;
|
|
807
|
+
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
814
808
|
diffStat?: {
|
|
815
809
|
files: number;
|
|
816
810
|
additions: number;
|
|
@@ -818,45 +812,56 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
818
812
|
} | null | undefined;
|
|
819
813
|
blockers?: number | undefined;
|
|
820
814
|
adopted?: boolean | null | undefined;
|
|
815
|
+
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
821
816
|
preTurnSha?: string | null | undefined;
|
|
817
|
+
postTurnSha?: string | null | undefined;
|
|
818
|
+
revertAnchorId?: string | null | undefined;
|
|
822
819
|
revertable?: boolean | undefined;
|
|
823
820
|
} | undefined;
|
|
824
821
|
outcomeFacts?: {
|
|
825
|
-
lifecycle: "
|
|
826
|
-
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
827
|
-
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" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null | undefined;
|
|
828
|
-
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
822
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
829
823
|
noChanges?: boolean | undefined;
|
|
824
|
+
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
825
|
+
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
826
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
830
827
|
work_state?: {
|
|
831
|
-
|
|
832
|
-
|
|
828
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
829
|
+
source: "absent" | "constrained" | "validated";
|
|
833
830
|
required_inputs?: {
|
|
834
|
-
kind: "
|
|
835
|
-
description: string;
|
|
831
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
836
832
|
locator?: string | null | undefined;
|
|
833
|
+
description: string;
|
|
837
834
|
}[] | undefined;
|
|
838
835
|
} | undefined;
|
|
839
836
|
} | null | undefined;
|
|
840
837
|
waitingOnUser?: boolean | undefined;
|
|
841
838
|
route?: {
|
|
842
|
-
harnessId?: string | null | undefined;
|
|
843
|
-
verified?: boolean | undefined;
|
|
844
839
|
requestedModel?: string | null | undefined;
|
|
845
840
|
observedModel?: string | null | undefined;
|
|
841
|
+
harnessId?: string | null | undefined;
|
|
842
|
+
verified?: boolean | undefined;
|
|
846
843
|
} | null | undefined;
|
|
847
844
|
routingRationale?: {
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
845
|
+
goal: "auto" | "economy" | "quality";
|
|
846
|
+
paid_fallback: "allowed_within_cap" | "never" | "when_unavailable";
|
|
847
|
+
order?: string[] | undefined;
|
|
848
|
+
dropped?: string[] | undefined;
|
|
849
|
+
reason: "all_incremental_cash_unknown" | "declared_order" | "delegate_effective_first" | "expiring_quota_slack" | "explicit_primary" | "lowest_incremental_cash" | "quality_tier" | "subscription_entitlement_first";
|
|
851
850
|
entries?: {
|
|
852
851
|
harness_id: string;
|
|
853
|
-
billing_knowledge: "
|
|
854
|
-
eligible: boolean;
|
|
852
|
+
billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
|
|
855
853
|
incremental_cost_usd?: number | null | undefined;
|
|
854
|
+
eligible: boolean;
|
|
856
855
|
}[] | undefined;
|
|
857
|
-
order?: string[] | undefined;
|
|
858
|
-
dropped?: string[] | undefined;
|
|
859
856
|
} | null | undefined;
|
|
857
|
+
tests?: {
|
|
858
|
+
program: string;
|
|
859
|
+
args?: string[] | undefined;
|
|
860
|
+
cwd?: string | undefined;
|
|
861
|
+
envAllowlist?: string[] | undefined;
|
|
862
|
+
}[] | undefined;
|
|
863
|
+
createdAt?: string | undefined;
|
|
864
|
+
startedAt?: string | undefined;
|
|
860
865
|
finishedAt?: string | undefined;
|
|
861
866
|
}>, "many">>;
|
|
862
867
|
/** QA-052 keyset page cursor: opaque `(createdAt,id)` token to fetch the
|
|
@@ -869,66 +874,115 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
869
874
|
hasMore: z.ZodDefault<z.ZodBoolean>;
|
|
870
875
|
}, "strict", z.ZodTypeAny, {
|
|
871
876
|
runs: {
|
|
872
|
-
|
|
877
|
+
jobId: string;
|
|
878
|
+
runId: string;
|
|
873
879
|
parentRunId: string | null;
|
|
874
880
|
delegatedFromRunId: string | null;
|
|
875
881
|
delegation: {
|
|
876
882
|
requested: boolean;
|
|
877
883
|
effective: boolean;
|
|
878
|
-
reason: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed";
|
|
879
|
-
remediation: string | null;
|
|
880
884
|
used: boolean;
|
|
885
|
+
reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
|
|
886
|
+
remediation: string | null;
|
|
881
887
|
} | null;
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
projectName: string | null;
|
|
887
|
-
};
|
|
888
|
-
jobId: string;
|
|
889
|
-
runId: string;
|
|
888
|
+
taskId?: string | undefined;
|
|
889
|
+
state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
|
|
890
|
+
runDir?: string | undefined;
|
|
891
|
+
error?: string | undefined;
|
|
890
892
|
failure: {
|
|
891
|
-
|
|
893
|
+
phase: string;
|
|
894
|
+
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
895
|
+
code: "budget_overshoot" | "cost_unverifiable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "unknown_paid_in_flight" | null;
|
|
892
896
|
harnessId: string | null;
|
|
893
897
|
attemptId: string | null;
|
|
894
|
-
runDir: string | null;
|
|
895
|
-
phase: string;
|
|
896
|
-
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "config_error" | "internal";
|
|
897
898
|
safeMessage: string;
|
|
898
899
|
rawDetailRef: string | null;
|
|
899
900
|
logRefs: string[];
|
|
900
901
|
eventRefs: string[];
|
|
902
|
+
runDir: string | null;
|
|
901
903
|
nextActions: string[];
|
|
902
904
|
} | null;
|
|
905
|
+
project: {
|
|
906
|
+
kind: "none" | "project";
|
|
907
|
+
root: string | null;
|
|
908
|
+
projectName: string | null;
|
|
909
|
+
context: "auto" | "off";
|
|
910
|
+
};
|
|
911
|
+
mode?: "agent" | "ask" | "plan" | undefined;
|
|
912
|
+
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
913
|
+
prompt?: string | undefined;
|
|
914
|
+
harnesses?: string[] | undefined;
|
|
915
|
+
primaryHarness?: string | undefined;
|
|
916
|
+
routingGoal?: "auto" | "economy" | "quality" | undefined;
|
|
917
|
+
model?: string | undefined;
|
|
918
|
+
reviewerPanel?: {
|
|
919
|
+
harness: string;
|
|
920
|
+
model?: string | undefined;
|
|
921
|
+
effort?: string | undefined;
|
|
922
|
+
}[] | undefined;
|
|
923
|
+
protectedPathApprovals?: {
|
|
924
|
+
path: string;
|
|
925
|
+
reason?: string | undefined;
|
|
926
|
+
}[] | undefined;
|
|
927
|
+
n?: number | undefined;
|
|
928
|
+
paidBudget?: {
|
|
929
|
+
kind: "unlimited";
|
|
930
|
+
} | {
|
|
931
|
+
kind: "finite";
|
|
932
|
+
maxUsd: number;
|
|
933
|
+
} | undefined;
|
|
934
|
+
spendUsd?: number | null | undefined;
|
|
935
|
+
spendEstimated?: boolean | undefined;
|
|
936
|
+
inputTokens?: number | null | undefined;
|
|
937
|
+
outputTokens?: number | null | undefined;
|
|
938
|
+
cachedInputTokens?: number | null | undefined;
|
|
939
|
+
outputConformance?: "failed" | "passed" | null | undefined;
|
|
940
|
+
authRoute?: {
|
|
941
|
+
requested: "api_key" | "auto" | "subscription";
|
|
942
|
+
effective: "api_key" | "local_session" | "unknown" | null;
|
|
943
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
944
|
+
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
945
|
+
harnessId: string | null;
|
|
946
|
+
attemptId: string | null;
|
|
947
|
+
profileId: string | null;
|
|
948
|
+
modelMismatch: {
|
|
949
|
+
requested: string;
|
|
950
|
+
observed: string;
|
|
951
|
+
} | null;
|
|
952
|
+
} | null | undefined;
|
|
953
|
+
access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
954
|
+
requestedAccess?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
955
|
+
effectiveAccess?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
956
|
+
externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
|
|
957
|
+
webRequired?: boolean | undefined;
|
|
958
|
+
webMode?: "auto" | "cached" | "live" | "off" | undefined;
|
|
903
959
|
webEvidence: {
|
|
904
|
-
status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
|
|
905
|
-
available: boolean;
|
|
906
|
-
target: string | null;
|
|
907
|
-
mode: "off" | "auto" | "cached" | "live";
|
|
908
960
|
required: boolean;
|
|
909
|
-
|
|
961
|
+
mode: "auto" | "cached" | "live" | "off";
|
|
962
|
+
effectiveMode: "auto" | "cached" | "live" | "off";
|
|
910
963
|
attempted: boolean;
|
|
911
|
-
rawDetailRef: string | null;
|
|
912
|
-
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
913
964
|
satisfied: boolean;
|
|
965
|
+
status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
|
|
966
|
+
tool: string | null;
|
|
967
|
+
target: string | null;
|
|
914
968
|
errorSummary: string | null;
|
|
969
|
+
rawDetailRef: string | null;
|
|
970
|
+
available: boolean;
|
|
915
971
|
};
|
|
916
972
|
requestRequirements: {
|
|
973
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
974
|
+
harness_id: string;
|
|
975
|
+
eligible: boolean;
|
|
917
976
|
requested: boolean;
|
|
918
977
|
effective: boolean;
|
|
919
|
-
|
|
920
|
-
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
978
|
+
reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
|
|
921
979
|
evidence_refs: string[];
|
|
922
|
-
eligible: boolean;
|
|
923
|
-
capability: "browser" | "delegation" | "path_deny";
|
|
924
980
|
}[];
|
|
925
|
-
|
|
981
|
+
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
982
|
+
outputReadyState: "diagnostic" | "finalizing" | "pending" | "ready";
|
|
926
983
|
toolWarningsTotal: number;
|
|
927
984
|
result: {
|
|
928
|
-
kind: "
|
|
929
|
-
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
930
|
-
revertAnchorId: string | null;
|
|
931
|
-
postTurnSha: string | null;
|
|
985
|
+
kind: "answer" | "none" | "patch" | "plan" | "report";
|
|
932
986
|
diffStat: {
|
|
933
987
|
files: number;
|
|
934
988
|
additions: number;
|
|
@@ -936,146 +990,112 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
936
990
|
} | null;
|
|
937
991
|
blockers: number;
|
|
938
992
|
adopted: boolean | null;
|
|
993
|
+
applyState: "applied" | "applied_review_blocked" | "not_applied" | "reverted";
|
|
939
994
|
preTurnSha: string | null;
|
|
995
|
+
postTurnSha: string | null;
|
|
996
|
+
revertAnchorId: string | null;
|
|
940
997
|
revertable: boolean;
|
|
941
998
|
};
|
|
942
999
|
outcomeFacts: {
|
|
943
|
-
|
|
944
|
-
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" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null;
|
|
945
|
-
checks: "passed" | "failed" | "not_configured";
|
|
946
|
-
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
1000
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
947
1001
|
noChanges: boolean;
|
|
1002
|
+
checks: "failed" | "not_configured" | "passed";
|
|
1003
|
+
review: "approved" | "blocked" | "not_run";
|
|
1004
|
+
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
948
1005
|
work_state?: {
|
|
949
|
-
|
|
950
|
-
|
|
1006
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1007
|
+
source: "absent" | "constrained" | "validated";
|
|
951
1008
|
required_inputs?: {
|
|
952
|
-
kind: "
|
|
953
|
-
description: string;
|
|
1009
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
954
1010
|
locator: string | null;
|
|
1011
|
+
description: string;
|
|
955
1012
|
}[] | undefined;
|
|
956
1013
|
} | undefined;
|
|
957
1014
|
} | null;
|
|
958
1015
|
waitingOnUser: boolean;
|
|
959
1016
|
route: {
|
|
960
|
-
harnessId: string | null;
|
|
961
|
-
verified: boolean;
|
|
962
1017
|
requestedModel: string | null;
|
|
963
1018
|
observedModel: string | null;
|
|
1019
|
+
harnessId: string | null;
|
|
1020
|
+
verified: boolean;
|
|
964
1021
|
} | null;
|
|
965
1022
|
routingRationale: {
|
|
1023
|
+
goal: "auto" | "economy" | "quality";
|
|
1024
|
+
paid_fallback: "allowed_within_cap" | "never" | "when_unavailable";
|
|
1025
|
+
order: string[];
|
|
1026
|
+
dropped: string[];
|
|
1027
|
+
reason: "all_incremental_cash_unknown" | "declared_order" | "delegate_effective_first" | "expiring_quota_slack" | "explicit_primary" | "lowest_incremental_cash" | "quality_tier" | "subscription_entitlement_first";
|
|
966
1028
|
entries: {
|
|
967
1029
|
harness_id: string;
|
|
968
|
-
billing_knowledge: "
|
|
1030
|
+
billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
|
|
969
1031
|
incremental_cost_usd: number | null;
|
|
970
1032
|
eligible: boolean;
|
|
971
1033
|
}[];
|
|
972
|
-
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
|
|
973
|
-
goal: "auto" | "quality" | "economy";
|
|
974
|
-
paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
|
|
975
|
-
order: string[];
|
|
976
|
-
dropped: string[];
|
|
977
1034
|
} | null;
|
|
978
|
-
startedAt?: string | undefined;
|
|
979
|
-
error?: string | undefined;
|
|
980
|
-
createdAt?: string | undefined;
|
|
981
|
-
mode?: "ask" | "plan" | "agent" | undefined;
|
|
982
|
-
prompt?: string | undefined;
|
|
983
|
-
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
984
|
-
harnesses?: string[] | undefined;
|
|
985
|
-
model?: string | undefined;
|
|
986
1035
|
tests?: {
|
|
987
|
-
args: string[];
|
|
988
1036
|
program: string;
|
|
989
|
-
|
|
1037
|
+
args: string[];
|
|
990
1038
|
cwd?: string | undefined;
|
|
1039
|
+
envAllowlist: string[];
|
|
991
1040
|
}[] | undefined;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
primaryHarness?: string | undefined;
|
|
995
|
-
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
996
|
-
n?: number | undefined;
|
|
997
|
-
paidBudget?: {
|
|
998
|
-
kind: "unlimited";
|
|
999
|
-
} | {
|
|
1000
|
-
kind: "finite";
|
|
1001
|
-
maxUsd: number;
|
|
1002
|
-
} | undefined;
|
|
1003
|
-
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1004
|
-
protectedPathApprovals?: {
|
|
1005
|
-
path: string;
|
|
1006
|
-
reason?: string | undefined;
|
|
1007
|
-
}[] | undefined;
|
|
1008
|
-
reviewerPanel?: {
|
|
1009
|
-
harness: string;
|
|
1010
|
-
model?: string | undefined;
|
|
1011
|
-
effort?: string | undefined;
|
|
1012
|
-
}[] | undefined;
|
|
1013
|
-
strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
|
|
1014
|
-
spendUsd?: number | null | undefined;
|
|
1015
|
-
spendEstimated?: boolean | undefined;
|
|
1016
|
-
inputTokens?: number | null | undefined;
|
|
1017
|
-
outputTokens?: number | null | undefined;
|
|
1018
|
-
cachedInputTokens?: number | null | undefined;
|
|
1019
|
-
outputConformance?: "passed" | "failed" | null | undefined;
|
|
1020
|
-
authRoute?: {
|
|
1021
|
-
source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
|
|
1022
|
-
harnessId: string | null;
|
|
1023
|
-
requested: "auto" | "subscription" | "api_key";
|
|
1024
|
-
attemptId: string | null;
|
|
1025
|
-
effective: "unknown" | "api_key" | "local_session" | null;
|
|
1026
|
-
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
1027
|
-
modelMismatch: {
|
|
1028
|
-
requested: string;
|
|
1029
|
-
observed: string;
|
|
1030
|
-
} | null;
|
|
1031
|
-
} | null | undefined;
|
|
1032
|
-
requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1033
|
-
effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1034
|
-
webRequired?: boolean | undefined;
|
|
1035
|
-
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1036
|
-
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
1041
|
+
createdAt?: string | undefined;
|
|
1042
|
+
startedAt?: string | undefined;
|
|
1037
1043
|
finishedAt?: string | undefined;
|
|
1038
1044
|
}[];
|
|
1039
1045
|
nextCursor: string | null;
|
|
1040
1046
|
hasMore: boolean;
|
|
1041
1047
|
}, {
|
|
1042
1048
|
runs?: {
|
|
1043
|
-
state: "failed" | "cancelled" | "running" | "succeeded" | "interrupted" | "queued";
|
|
1044
1049
|
jobId: string;
|
|
1045
1050
|
runId: string;
|
|
1046
|
-
startedAt?: string | undefined;
|
|
1047
|
-
error?: string | undefined;
|
|
1048
|
-
createdAt?: string | undefined;
|
|
1049
|
-
mode?: "ask" | "plan" | "agent" | undefined;
|
|
1050
|
-
prompt?: string | undefined;
|
|
1051
|
-
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1052
1051
|
parentRunId?: string | null | undefined;
|
|
1053
1052
|
delegatedFromRunId?: string | null | undefined;
|
|
1054
1053
|
delegation?: {
|
|
1055
1054
|
requested?: boolean | undefined;
|
|
1056
1055
|
effective?: boolean | undefined;
|
|
1057
|
-
reason?: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed" | undefined;
|
|
1058
|
-
remediation?: string | null | undefined;
|
|
1059
1056
|
used?: boolean | undefined;
|
|
1057
|
+
reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
|
|
1058
|
+
remediation?: string | null | undefined;
|
|
1059
|
+
} | null | undefined;
|
|
1060
|
+
taskId?: string | undefined;
|
|
1061
|
+
state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
|
|
1062
|
+
runDir?: string | undefined;
|
|
1063
|
+
error?: string | undefined;
|
|
1064
|
+
failure?: {
|
|
1065
|
+
phase?: string | undefined;
|
|
1066
|
+
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1067
|
+
code?: "budget_overshoot" | "cost_unverifiable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "unknown_paid_in_flight" | null | undefined;
|
|
1068
|
+
harnessId?: string | null | undefined;
|
|
1069
|
+
attemptId?: string | null | undefined;
|
|
1070
|
+
safeMessage: string;
|
|
1071
|
+
rawDetailRef?: string | null | undefined;
|
|
1072
|
+
logRefs?: string[] | undefined;
|
|
1073
|
+
eventRefs?: string[] | undefined;
|
|
1074
|
+
runDir?: string | null | undefined;
|
|
1075
|
+
nextActions?: string[] | undefined;
|
|
1060
1076
|
} | null | undefined;
|
|
1061
|
-
harnesses?: string[] | undefined;
|
|
1062
|
-
model?: string | undefined;
|
|
1063
|
-
tests?: {
|
|
1064
|
-
program: string;
|
|
1065
|
-
args?: string[] | undefined;
|
|
1066
|
-
cwd?: string | undefined;
|
|
1067
|
-
envAllowlist?: string[] | undefined;
|
|
1068
|
-
}[] | undefined;
|
|
1069
1077
|
project?: {
|
|
1070
1078
|
kind?: "none" | "project" | undefined;
|
|
1071
|
-
context?: "off" | "auto" | undefined;
|
|
1072
1079
|
root?: string | null | undefined;
|
|
1073
1080
|
projectName?: string | null | undefined;
|
|
1081
|
+
context?: "auto" | "off" | undefined;
|
|
1074
1082
|
} | undefined;
|
|
1075
|
-
|
|
1076
|
-
|
|
1083
|
+
mode?: "agent" | "ask" | "plan" | undefined;
|
|
1084
|
+
strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
|
|
1085
|
+
prompt?: string | undefined;
|
|
1086
|
+
harnesses?: string[] | undefined;
|
|
1077
1087
|
primaryHarness?: string | undefined;
|
|
1078
|
-
routingGoal?: "auto" | "
|
|
1088
|
+
routingGoal?: "auto" | "economy" | "quality" | undefined;
|
|
1089
|
+
model?: string | undefined;
|
|
1090
|
+
reviewerPanel?: {
|
|
1091
|
+
harness: string;
|
|
1092
|
+
model?: string | undefined;
|
|
1093
|
+
effort?: string | undefined;
|
|
1094
|
+
}[] | undefined;
|
|
1095
|
+
protectedPathApprovals?: {
|
|
1096
|
+
path: string;
|
|
1097
|
+
reason?: string | undefined;
|
|
1098
|
+
}[] | undefined;
|
|
1079
1099
|
n?: number | undefined;
|
|
1080
1100
|
paidBudget?: {
|
|
1081
1101
|
kind: "unlimited";
|
|
@@ -1083,82 +1103,58 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1083
1103
|
kind: "finite";
|
|
1084
1104
|
maxUsd: number;
|
|
1085
1105
|
} | undefined;
|
|
1086
|
-
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1087
|
-
protectedPathApprovals?: {
|
|
1088
|
-
path: string;
|
|
1089
|
-
reason?: string | undefined;
|
|
1090
|
-
}[] | undefined;
|
|
1091
|
-
reviewerPanel?: {
|
|
1092
|
-
harness: string;
|
|
1093
|
-
model?: string | undefined;
|
|
1094
|
-
effort?: string | undefined;
|
|
1095
|
-
}[] | undefined;
|
|
1096
|
-
failure?: {
|
|
1097
|
-
safeMessage: string;
|
|
1098
|
-
code?: "budget_overshoot" | "cost_unverifiable" | "finite_zero" | "hard_cap" | "estimate_headroom" | "unknown_paid_in_flight" | "delegation_child_drain_timeout" | null | undefined;
|
|
1099
|
-
harnessId?: string | null | undefined;
|
|
1100
|
-
attemptId?: string | null | undefined;
|
|
1101
|
-
runDir?: string | null | undefined;
|
|
1102
|
-
phase?: string | undefined;
|
|
1103
|
-
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "config_error" | "internal" | undefined;
|
|
1104
|
-
rawDetailRef?: string | null | undefined;
|
|
1105
|
-
logRefs?: string[] | undefined;
|
|
1106
|
-
eventRefs?: string[] | undefined;
|
|
1107
|
-
nextActions?: string[] | undefined;
|
|
1108
|
-
} | null | undefined;
|
|
1109
|
-
strategy?: "attempts" | "create" | "race" | "until_clean" | "deep_scan" | null | undefined;
|
|
1110
1106
|
spendUsd?: number | null | undefined;
|
|
1111
1107
|
spendEstimated?: boolean | undefined;
|
|
1112
1108
|
inputTokens?: number | null | undefined;
|
|
1113
1109
|
outputTokens?: number | null | undefined;
|
|
1114
1110
|
cachedInputTokens?: number | null | undefined;
|
|
1115
|
-
outputConformance?: "
|
|
1111
|
+
outputConformance?: "failed" | "passed" | null | undefined;
|
|
1116
1112
|
authRoute?: {
|
|
1117
|
-
requested: "
|
|
1113
|
+
requested: "api_key" | "auto" | "subscription";
|
|
1114
|
+
effective?: "api_key" | "local_session" | "unknown" | null | undefined;
|
|
1115
|
+
source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
1118
1116
|
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
1119
|
-
source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
|
|
1120
1117
|
harnessId?: string | null | undefined;
|
|
1121
1118
|
attemptId?: string | null | undefined;
|
|
1122
|
-
|
|
1119
|
+
profileId?: string | null | undefined;
|
|
1123
1120
|
modelMismatch?: {
|
|
1124
1121
|
requested: string;
|
|
1125
1122
|
observed: string;
|
|
1126
1123
|
} | null | undefined;
|
|
1127
1124
|
} | null | undefined;
|
|
1128
|
-
|
|
1129
|
-
|
|
1125
|
+
access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
1126
|
+
requestedAccess?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
1127
|
+
effectiveAccess?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
1128
|
+
externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1130
1129
|
webRequired?: boolean | undefined;
|
|
1131
|
-
webMode?: "
|
|
1130
|
+
webMode?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1132
1131
|
webEvidence?: {
|
|
1133
|
-
status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
|
|
1134
|
-
available?: boolean | undefined;
|
|
1135
|
-
target?: string | null | undefined;
|
|
1136
|
-
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1137
1132
|
required?: boolean | undefined;
|
|
1138
|
-
|
|
1133
|
+
mode?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1134
|
+
effectiveMode?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1139
1135
|
attempted?: boolean | undefined;
|
|
1140
|
-
rawDetailRef?: string | null | undefined;
|
|
1141
|
-
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1142
1136
|
satisfied?: boolean | undefined;
|
|
1137
|
+
status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
|
|
1138
|
+
tool?: string | null | undefined;
|
|
1139
|
+
target?: string | null | undefined;
|
|
1143
1140
|
errorSummary?: string | null | undefined;
|
|
1141
|
+
rawDetailRef?: string | null | undefined;
|
|
1142
|
+
available?: boolean | undefined;
|
|
1144
1143
|
} | undefined;
|
|
1145
1144
|
requestRequirements?: {
|
|
1146
|
-
|
|
1147
|
-
effective: boolean;
|
|
1145
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
1148
1146
|
harness_id: string;
|
|
1149
|
-
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
1150
1147
|
eligible: boolean;
|
|
1151
|
-
|
|
1148
|
+
requested: boolean;
|
|
1149
|
+
effective: boolean;
|
|
1150
|
+
reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
|
|
1152
1151
|
evidence_refs?: string[] | undefined;
|
|
1153
1152
|
}[] | undefined;
|
|
1154
1153
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
1155
|
-
outputReadyState?: "
|
|
1154
|
+
outputReadyState?: "diagnostic" | "finalizing" | "pending" | "ready" | undefined;
|
|
1156
1155
|
toolWarningsTotal?: number | undefined;
|
|
1157
1156
|
result?: {
|
|
1158
|
-
kind?: "
|
|
1159
|
-
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
1160
|
-
revertAnchorId?: string | null | undefined;
|
|
1161
|
-
postTurnSha?: string | null | undefined;
|
|
1157
|
+
kind?: "answer" | "none" | "patch" | "plan" | "report" | undefined;
|
|
1162
1158
|
diffStat?: {
|
|
1163
1159
|
files: number;
|
|
1164
1160
|
additions: number;
|
|
@@ -1166,45 +1162,56 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1166
1162
|
} | null | undefined;
|
|
1167
1163
|
blockers?: number | undefined;
|
|
1168
1164
|
adopted?: boolean | null | undefined;
|
|
1165
|
+
applyState?: "applied" | "applied_review_blocked" | "not_applied" | "reverted" | undefined;
|
|
1169
1166
|
preTurnSha?: string | null | undefined;
|
|
1167
|
+
postTurnSha?: string | null | undefined;
|
|
1168
|
+
revertAnchorId?: string | null | undefined;
|
|
1170
1169
|
revertable?: boolean | undefined;
|
|
1171
1170
|
} | undefined;
|
|
1172
1171
|
outcomeFacts?: {
|
|
1173
|
-
lifecycle: "
|
|
1174
|
-
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
1175
|
-
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" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null | undefined;
|
|
1176
|
-
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
1172
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
1177
1173
|
noChanges?: boolean | undefined;
|
|
1174
|
+
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1175
|
+
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1176
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1178
1177
|
work_state?: {
|
|
1179
|
-
|
|
1180
|
-
|
|
1178
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1179
|
+
source: "absent" | "constrained" | "validated";
|
|
1181
1180
|
required_inputs?: {
|
|
1182
|
-
kind: "
|
|
1183
|
-
description: string;
|
|
1181
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
1184
1182
|
locator?: string | null | undefined;
|
|
1183
|
+
description: string;
|
|
1185
1184
|
}[] | undefined;
|
|
1186
1185
|
} | undefined;
|
|
1187
1186
|
} | null | undefined;
|
|
1188
1187
|
waitingOnUser?: boolean | undefined;
|
|
1189
1188
|
route?: {
|
|
1190
|
-
harnessId?: string | null | undefined;
|
|
1191
|
-
verified?: boolean | undefined;
|
|
1192
1189
|
requestedModel?: string | null | undefined;
|
|
1193
1190
|
observedModel?: string | null | undefined;
|
|
1191
|
+
harnessId?: string | null | undefined;
|
|
1192
|
+
verified?: boolean | undefined;
|
|
1194
1193
|
} | null | undefined;
|
|
1195
1194
|
routingRationale?: {
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1195
|
+
goal: "auto" | "economy" | "quality";
|
|
1196
|
+
paid_fallback: "allowed_within_cap" | "never" | "when_unavailable";
|
|
1197
|
+
order?: string[] | undefined;
|
|
1198
|
+
dropped?: string[] | undefined;
|
|
1199
|
+
reason: "all_incremental_cash_unknown" | "declared_order" | "delegate_effective_first" | "expiring_quota_slack" | "explicit_primary" | "lowest_incremental_cash" | "quality_tier" | "subscription_entitlement_first";
|
|
1199
1200
|
entries?: {
|
|
1200
1201
|
harness_id: string;
|
|
1201
|
-
billing_knowledge: "
|
|
1202
|
-
eligible: boolean;
|
|
1202
|
+
billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
|
|
1203
1203
|
incremental_cost_usd?: number | null | undefined;
|
|
1204
|
+
eligible: boolean;
|
|
1204
1205
|
}[] | undefined;
|
|
1205
|
-
order?: string[] | undefined;
|
|
1206
|
-
dropped?: string[] | undefined;
|
|
1207
1206
|
} | null | undefined;
|
|
1207
|
+
tests?: {
|
|
1208
|
+
program: string;
|
|
1209
|
+
args?: string[] | undefined;
|
|
1210
|
+
cwd?: string | undefined;
|
|
1211
|
+
envAllowlist?: string[] | undefined;
|
|
1212
|
+
}[] | undefined;
|
|
1213
|
+
createdAt?: string | undefined;
|
|
1214
|
+
startedAt?: string | undefined;
|
|
1208
1215
|
finishedAt?: string | undefined;
|
|
1209
1216
|
}[] | undefined;
|
|
1210
1217
|
nextCursor?: string | null | undefined;
|
|
@@ -1220,30 +1227,30 @@ export declare const ControlArtifactListResponse: z.ZodObject<{
|
|
|
1220
1227
|
mime: z.ZodOptional<z.ZodString>;
|
|
1221
1228
|
}, "strip", z.ZodTypeAny, {
|
|
1222
1229
|
path: string;
|
|
1223
|
-
kind: "
|
|
1224
|
-
mime?: string | undefined;
|
|
1230
|
+
kind: "directory" | "file";
|
|
1225
1231
|
bytes?: number | undefined;
|
|
1232
|
+
mime?: string | undefined;
|
|
1226
1233
|
}, {
|
|
1227
1234
|
path: string;
|
|
1228
|
-
kind: "
|
|
1229
|
-
mime?: string | undefined;
|
|
1235
|
+
kind: "directory" | "file";
|
|
1230
1236
|
bytes?: number | undefined;
|
|
1237
|
+
mime?: string | undefined;
|
|
1231
1238
|
}>, "many">>;
|
|
1232
1239
|
}, "strict", z.ZodTypeAny, {
|
|
1233
1240
|
runId: string;
|
|
1234
1241
|
artifacts: {
|
|
1235
1242
|
path: string;
|
|
1236
|
-
kind: "
|
|
1237
|
-
mime?: string | undefined;
|
|
1243
|
+
kind: "directory" | "file";
|
|
1238
1244
|
bytes?: number | undefined;
|
|
1245
|
+
mime?: string | undefined;
|
|
1239
1246
|
}[];
|
|
1240
1247
|
}, {
|
|
1241
1248
|
runId: string;
|
|
1242
1249
|
artifacts?: {
|
|
1243
1250
|
path: string;
|
|
1244
|
-
kind: "
|
|
1245
|
-
mime?: string | undefined;
|
|
1251
|
+
kind: "directory" | "file";
|
|
1246
1252
|
bytes?: number | undefined;
|
|
1253
|
+
mime?: string | undefined;
|
|
1247
1254
|
}[] | undefined;
|
|
1248
1255
|
}>;
|
|
1249
1256
|
export type ControlArtifactListResponse = z.infer<typeof ControlArtifactListResponse>;
|
|
@@ -1256,30 +1263,30 @@ export declare const ControlProjectOutputsResponse: z.ZodObject<{
|
|
|
1256
1263
|
mime: z.ZodOptional<z.ZodString>;
|
|
1257
1264
|
}, "strip", z.ZodTypeAny, {
|
|
1258
1265
|
path: string;
|
|
1259
|
-
kind: "
|
|
1260
|
-
mime?: string | undefined;
|
|
1266
|
+
kind: "directory" | "file";
|
|
1261
1267
|
bytes?: number | undefined;
|
|
1268
|
+
mime?: string | undefined;
|
|
1262
1269
|
}, {
|
|
1263
1270
|
path: string;
|
|
1264
|
-
kind: "
|
|
1265
|
-
mime?: string | undefined;
|
|
1271
|
+
kind: "directory" | "file";
|
|
1266
1272
|
bytes?: number | undefined;
|
|
1273
|
+
mime?: string | undefined;
|
|
1267
1274
|
}>, "many">>;
|
|
1268
1275
|
}, "strict", z.ZodTypeAny, {
|
|
1269
1276
|
projectId: string;
|
|
1270
1277
|
artifacts: {
|
|
1271
1278
|
path: string;
|
|
1272
|
-
kind: "
|
|
1273
|
-
mime?: string | undefined;
|
|
1279
|
+
kind: "directory" | "file";
|
|
1274
1280
|
bytes?: number | undefined;
|
|
1281
|
+
mime?: string | undefined;
|
|
1275
1282
|
}[];
|
|
1276
1283
|
}, {
|
|
1277
1284
|
projectId: string;
|
|
1278
1285
|
artifacts?: {
|
|
1279
1286
|
path: string;
|
|
1280
|
-
kind: "
|
|
1281
|
-
mime?: string | undefined;
|
|
1287
|
+
kind: "directory" | "file";
|
|
1282
1288
|
bytes?: number | undefined;
|
|
1289
|
+
mime?: string | undefined;
|
|
1283
1290
|
}[] | undefined;
|
|
1284
1291
|
}>;
|
|
1285
1292
|
export type ControlProjectOutputsResponse = z.infer<typeof ControlProjectOutputsResponse>;
|
|
@@ -1294,13 +1301,13 @@ export declare const ControlApplyCheckResponse: z.ZodObject<{
|
|
|
1294
1301
|
* false. */
|
|
1295
1302
|
alreadyApplied: z.ZodDefault<z.ZodBoolean>;
|
|
1296
1303
|
}, "strict", z.ZodTypeAny, {
|
|
1297
|
-
code: number | null;
|
|
1298
1304
|
ok: boolean;
|
|
1299
|
-
|
|
1305
|
+
code: number | null;
|
|
1300
1306
|
stderr: string;
|
|
1307
|
+
alreadyApplied: boolean;
|
|
1301
1308
|
}, {
|
|
1302
|
-
code: number | null;
|
|
1303
1309
|
ok: boolean;
|
|
1310
|
+
code: number | null;
|
|
1304
1311
|
stderr: string;
|
|
1305
1312
|
alreadyApplied?: boolean | undefined;
|
|
1306
1313
|
}>;
|
|
@@ -1325,86 +1332,86 @@ export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
|
1325
1332
|
id: z.ZodString;
|
|
1326
1333
|
status: z.ZodString;
|
|
1327
1334
|
}, "strip", z.ZodTypeAny, {
|
|
1328
|
-
status: string;
|
|
1329
1335
|
id: string;
|
|
1330
|
-
}, {
|
|
1331
1336
|
status: string;
|
|
1337
|
+
}, {
|
|
1332
1338
|
id: string;
|
|
1339
|
+
status: string;
|
|
1333
1340
|
}>, "many">>;
|
|
1334
1341
|
duration_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1335
1342
|
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1336
1343
|
}, "strip", z.ZodTypeAny, {
|
|
1337
|
-
reason: string | null;
|
|
1338
|
-
duration_ms: number | null;
|
|
1339
|
-
base_sha: string | null;
|
|
1340
1344
|
attempted: boolean;
|
|
1345
|
+
base_sha: string | null;
|
|
1341
1346
|
applied_cleanly: boolean | null;
|
|
1342
1347
|
gates_passed: boolean | null;
|
|
1343
1348
|
gates: {
|
|
1344
|
-
status: string;
|
|
1345
1349
|
id: string;
|
|
1350
|
+
status: string;
|
|
1346
1351
|
}[];
|
|
1352
|
+
duration_ms: number | null;
|
|
1353
|
+
reason: string | null;
|
|
1347
1354
|
}, {
|
|
1348
1355
|
attempted: boolean;
|
|
1349
|
-
reason?: string | null | undefined;
|
|
1350
|
-
duration_ms?: number | null | undefined;
|
|
1351
1356
|
base_sha?: string | null | undefined;
|
|
1352
1357
|
applied_cleanly?: boolean | null | undefined;
|
|
1353
1358
|
gates_passed?: boolean | null | undefined;
|
|
1354
1359
|
gates?: {
|
|
1355
|
-
status: string;
|
|
1356
1360
|
id: string;
|
|
1361
|
+
status: string;
|
|
1357
1362
|
}[] | undefined;
|
|
1363
|
+
duration_ms?: number | null | undefined;
|
|
1364
|
+
reason?: string | null | undefined;
|
|
1358
1365
|
}>;
|
|
1359
1366
|
targetPreimageSha: z.ZodString;
|
|
1360
1367
|
}, "strict", z.ZodTypeAny, {
|
|
1361
|
-
mode: "apply" | "
|
|
1368
|
+
mode: "apply" | "branch" | "commit" | "pr";
|
|
1362
1369
|
applied: boolean;
|
|
1370
|
+
branch?: string | undefined;
|
|
1371
|
+
commit?: string | undefined;
|
|
1372
|
+
prUrl?: string | undefined;
|
|
1373
|
+
detail?: string | undefined;
|
|
1374
|
+
treeMutated?: boolean | undefined;
|
|
1375
|
+
refused?: boolean | undefined;
|
|
1363
1376
|
alreadyApplied: boolean;
|
|
1377
|
+
deliveryStatus?: "already_applied" | "applied" | "refused" | undefined;
|
|
1364
1378
|
finalVerify: {
|
|
1365
|
-
reason: string | null;
|
|
1366
|
-
duration_ms: number | null;
|
|
1367
|
-
base_sha: string | null;
|
|
1368
1379
|
attempted: boolean;
|
|
1380
|
+
base_sha: string | null;
|
|
1369
1381
|
applied_cleanly: boolean | null;
|
|
1370
1382
|
gates_passed: boolean | null;
|
|
1371
1383
|
gates: {
|
|
1372
|
-
status: string;
|
|
1373
1384
|
id: string;
|
|
1385
|
+
status: string;
|
|
1374
1386
|
}[];
|
|
1387
|
+
duration_ms: number | null;
|
|
1388
|
+
reason: string | null;
|
|
1375
1389
|
};
|
|
1376
1390
|
targetPreimageSha: string;
|
|
1377
|
-
|
|
1378
|
-
|
|
1391
|
+
}, {
|
|
1392
|
+
mode: "apply" | "branch" | "commit" | "pr";
|
|
1393
|
+
applied: boolean;
|
|
1379
1394
|
branch?: string | undefined;
|
|
1395
|
+
commit?: string | undefined;
|
|
1380
1396
|
prUrl?: string | undefined;
|
|
1397
|
+
detail?: string | undefined;
|
|
1381
1398
|
treeMutated?: boolean | undefined;
|
|
1382
1399
|
refused?: boolean | undefined;
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
mode: "apply" | "commit" | "branch" | "pr";
|
|
1386
|
-
applied: boolean;
|
|
1400
|
+
alreadyApplied?: boolean | undefined;
|
|
1401
|
+
deliveryStatus?: "already_applied" | "applied" | "refused" | undefined;
|
|
1387
1402
|
finalVerify: {
|
|
1388
1403
|
attempted: boolean;
|
|
1389
|
-
reason?: string | null | undefined;
|
|
1390
|
-
duration_ms?: number | null | undefined;
|
|
1391
1404
|
base_sha?: string | null | undefined;
|
|
1392
1405
|
applied_cleanly?: boolean | null | undefined;
|
|
1393
1406
|
gates_passed?: boolean | null | undefined;
|
|
1394
1407
|
gates?: {
|
|
1395
|
-
status: string;
|
|
1396
1408
|
id: string;
|
|
1409
|
+
status: string;
|
|
1397
1410
|
}[] | undefined;
|
|
1411
|
+
duration_ms?: number | null | undefined;
|
|
1412
|
+
reason?: string | null | undefined;
|
|
1398
1413
|
};
|
|
1399
1414
|
targetPreimageSha: string;
|
|
1400
|
-
detail?: string | undefined;
|
|
1401
|
-
commit?: string | undefined;
|
|
1402
|
-
branch?: string | undefined;
|
|
1403
|
-
prUrl?: string | undefined;
|
|
1404
|
-
treeMutated?: boolean | undefined;
|
|
1405
|
-
refused?: boolean | undefined;
|
|
1406
|
-
alreadyApplied?: boolean | undefined;
|
|
1407
|
-
deliveryStatus?: "applied" | "refused" | "already_applied" | undefined;
|
|
1408
1415
|
}>;
|
|
1409
1416
|
export type ControlDeliveryResponse = z.infer<typeof ControlDeliveryResponse>;
|
|
1410
1417
|
export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
@@ -1424,8 +1431,8 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1424
1431
|
context: z.ZodDefault<z.ZodEnum<["auto"]>>;
|
|
1425
1432
|
}, "strict", z.ZodTypeAny, {
|
|
1426
1433
|
kind: "project";
|
|
1427
|
-
context: "auto";
|
|
1428
1434
|
root: string;
|
|
1435
|
+
context: "auto";
|
|
1429
1436
|
}, {
|
|
1430
1437
|
kind: "project";
|
|
1431
1438
|
root: string;
|
|
@@ -1440,9 +1447,9 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1440
1447
|
execution: z.ZodDefault<z.ZodObject<{
|
|
1441
1448
|
isolation: z.ZodDefault<z.ZodEnum<["envelope", "live"]>>;
|
|
1442
1449
|
}, "strict", z.ZodTypeAny, {
|
|
1443
|
-
isolation: "
|
|
1450
|
+
isolation: "envelope" | "live";
|
|
1444
1451
|
}, {
|
|
1445
|
-
isolation?: "
|
|
1452
|
+
isolation?: "envelope" | "live" | undefined;
|
|
1446
1453
|
}>>;
|
|
1447
1454
|
harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1448
1455
|
primaryHarness: z.ZodOptional<z.ZodString>;
|
|
@@ -1486,10 +1493,10 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1486
1493
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1487
1494
|
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1488
1495
|
}, "strict", z.ZodTypeAny, {
|
|
1489
|
-
args: string[];
|
|
1490
1496
|
program: string;
|
|
1491
|
-
|
|
1497
|
+
args: string[];
|
|
1492
1498
|
cwd?: string | undefined;
|
|
1499
|
+
envAllowlist: string[];
|
|
1493
1500
|
}, {
|
|
1494
1501
|
program: string;
|
|
1495
1502
|
args?: string[] | undefined;
|
|
@@ -1517,13 +1524,13 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1517
1524
|
sha256: z.ZodString;
|
|
1518
1525
|
path: z.ZodString;
|
|
1519
1526
|
}, "strict", z.ZodTypeAny, {
|
|
1520
|
-
path: string;
|
|
1521
|
-
sha256: string;
|
|
1522
1527
|
runId: string;
|
|
1523
|
-
}, {
|
|
1524
|
-
path: string;
|
|
1525
1528
|
sha256: string;
|
|
1529
|
+
path: string;
|
|
1530
|
+
}, {
|
|
1526
1531
|
runId: string;
|
|
1532
|
+
sha256: string;
|
|
1533
|
+
path: string;
|
|
1527
1534
|
}>>;
|
|
1528
1535
|
reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1529
1536
|
harness: z.ZodString;
|
|
@@ -1545,133 +1552,128 @@ export declare const ControlThreadTurnRequest: z.ZodObject<Omit<{
|
|
|
1545
1552
|
denyPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1546
1553
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1547
1554
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
1548
|
-
}, "
|
|
1555
|
+
}, "delegatedFromRunId" | "execution" | "parentRunId" | "planRef" | "retryOf" | "scope" | "threadId" | "turnId"> & {
|
|
1556
|
+
/** Source plan whose open questions this follow-up answers. The thread
|
|
1557
|
+
* route validates ownership/current-head/duplicate submission. */
|
|
1558
|
+
answersPlanRunId: z.ZodOptional<z.ZodString>;
|
|
1549
1559
|
/** Implement-plan only: explicitly proceed although the plan still has
|
|
1550
1560
|
* open questions (D17). Recorded on the turn for provenance. */
|
|
1551
1561
|
overridePlanReadiness: z.ZodOptional<z.ZodBoolean>;
|
|
1552
1562
|
}, "strict", z.ZodTypeAny, {
|
|
1553
|
-
mode: "ask" | "plan" | "agent";
|
|
1554
1563
|
prompt: string;
|
|
1555
|
-
web?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1556
1564
|
instructions?: string | undefined;
|
|
1557
|
-
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1558
1565
|
attachments?: {
|
|
1559
1566
|
resourceId: string;
|
|
1560
1567
|
}[] | undefined;
|
|
1561
|
-
|
|
1562
|
-
planRunId?: string | undefined;
|
|
1563
|
-
planRef?: {
|
|
1564
|
-
path: string;
|
|
1565
|
-
sha256: string;
|
|
1566
|
-
runId: string;
|
|
1567
|
-
} | undefined;
|
|
1568
|
-
models?: Record<string, string> | undefined;
|
|
1568
|
+
mode: "agent" | "ask" | "plan";
|
|
1569
1569
|
harnesses?: string[] | undefined;
|
|
1570
|
+
primaryHarness?: string | undefined;
|
|
1571
|
+
routingGoal?: "auto" | "economy" | "quality" | undefined;
|
|
1570
1572
|
model?: string | undefined;
|
|
1573
|
+
models?: Record<string, string> | undefined;
|
|
1571
1574
|
effort?: string | undefined;
|
|
1572
|
-
tests?: {
|
|
1573
|
-
args: string[];
|
|
1574
|
-
program: string;
|
|
1575
|
-
envAllowlist: string[];
|
|
1576
|
-
cwd?: string | undefined;
|
|
1577
|
-
}[] | undefined;
|
|
1578
|
-
primaryHarness?: string | undefined;
|
|
1579
|
-
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
1580
1575
|
efforts?: Record<string, string> | undefined;
|
|
1581
|
-
reviewerModels?: Partial<Record<"
|
|
1582
|
-
reviewerEfforts?: Partial<Record<"
|
|
1576
|
+
reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
1577
|
+
reviewerEfforts?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
1583
1578
|
n?: number | undefined;
|
|
1584
1579
|
attempts?: number | null | undefined;
|
|
1585
1580
|
untilClean?: boolean | undefined;
|
|
1586
1581
|
deepScan?: boolean | undefined;
|
|
1587
1582
|
create?: boolean | undefined;
|
|
1588
1583
|
council?: boolean | undefined;
|
|
1589
|
-
synthesis?: "
|
|
1584
|
+
synthesis?: "always" | "auto" | "never" | undefined;
|
|
1590
1585
|
paidBudget?: {
|
|
1591
1586
|
kind: "unlimited";
|
|
1592
1587
|
} | {
|
|
1593
1588
|
kind: "finite";
|
|
1594
1589
|
maxUsd: number;
|
|
1595
1590
|
} | undefined;
|
|
1596
|
-
|
|
1591
|
+
access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
1592
|
+
web?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1593
|
+
externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1594
|
+
browser?: boolean | undefined;
|
|
1595
|
+
tests?: {
|
|
1596
|
+
program: string;
|
|
1597
|
+
args: string[];
|
|
1598
|
+
cwd?: string | undefined;
|
|
1599
|
+
envAllowlist: string[];
|
|
1600
|
+
}[] | undefined;
|
|
1597
1601
|
protectedPathApprovals?: {
|
|
1598
1602
|
path: string;
|
|
1599
1603
|
reason?: string | undefined;
|
|
1600
1604
|
}[] | undefined;
|
|
1605
|
+
planRunId?: string | undefined;
|
|
1601
1606
|
reviewerPanel?: {
|
|
1602
1607
|
harness: string;
|
|
1603
1608
|
model?: string | undefined;
|
|
1604
1609
|
effort?: string | undefined;
|
|
1605
1610
|
}[] | undefined;
|
|
1606
|
-
authPreference?: "
|
|
1611
|
+
authPreference?: "api_key" | "auto" | "subscription" | undefined;
|
|
1607
1612
|
credentialProfileId?: string | null | undefined;
|
|
1608
1613
|
delegate?: boolean | undefined;
|
|
1609
1614
|
maxSeconds?: number | undefined;
|
|
1610
1615
|
denyPaths?: string[] | undefined;
|
|
1611
1616
|
outputSchema?: Record<string, unknown> | undefined;
|
|
1612
1617
|
maxTurns?: number | undefined;
|
|
1618
|
+
answersPlanRunId?: string | undefined;
|
|
1613
1619
|
overridePlanReadiness?: boolean | undefined;
|
|
1614
1620
|
}, {
|
|
1615
|
-
web?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1616
|
-
instructions?: string | undefined;
|
|
1617
|
-
mode?: "ask" | "plan" | "agent" | undefined;
|
|
1618
1621
|
prompt?: string | undefined;
|
|
1619
|
-
|
|
1622
|
+
instructions?: string | undefined;
|
|
1620
1623
|
attachments?: {
|
|
1621
1624
|
resourceId: string;
|
|
1622
1625
|
}[] | undefined;
|
|
1623
|
-
|
|
1624
|
-
planRunId?: string | undefined;
|
|
1625
|
-
planRef?: {
|
|
1626
|
-
path: string;
|
|
1627
|
-
sha256: string;
|
|
1628
|
-
runId: string;
|
|
1629
|
-
} | undefined;
|
|
1630
|
-
models?: Record<string, string> | undefined;
|
|
1626
|
+
mode?: "agent" | "ask" | "plan" | undefined;
|
|
1631
1627
|
harnesses?: string[] | undefined;
|
|
1628
|
+
primaryHarness?: string | undefined;
|
|
1629
|
+
routingGoal?: "auto" | "economy" | "quality" | undefined;
|
|
1632
1630
|
model?: string | undefined;
|
|
1631
|
+
models?: Record<string, string> | undefined;
|
|
1633
1632
|
effort?: string | undefined;
|
|
1634
|
-
tests?: {
|
|
1635
|
-
program: string;
|
|
1636
|
-
args?: string[] | undefined;
|
|
1637
|
-
cwd?: string | undefined;
|
|
1638
|
-
envAllowlist?: string[] | undefined;
|
|
1639
|
-
}[] | undefined;
|
|
1640
|
-
primaryHarness?: string | undefined;
|
|
1641
|
-
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
1642
1633
|
efforts?: Record<string, string> | undefined;
|
|
1643
|
-
reviewerModels?: Partial<Record<"
|
|
1644
|
-
reviewerEfforts?: Partial<Record<"
|
|
1634
|
+
reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
1635
|
+
reviewerEfforts?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
|
|
1645
1636
|
n?: number | undefined;
|
|
1646
1637
|
attempts?: number | null | undefined;
|
|
1647
1638
|
untilClean?: boolean | undefined;
|
|
1648
1639
|
deepScan?: boolean | undefined;
|
|
1649
1640
|
create?: boolean | undefined;
|
|
1650
1641
|
council?: boolean | undefined;
|
|
1651
|
-
synthesis?: "
|
|
1642
|
+
synthesis?: "always" | "auto" | "never" | undefined;
|
|
1652
1643
|
paidBudget?: {
|
|
1653
1644
|
kind: "unlimited";
|
|
1654
1645
|
} | {
|
|
1655
1646
|
kind: "finite";
|
|
1656
1647
|
maxUsd: number;
|
|
1657
1648
|
} | undefined;
|
|
1658
|
-
|
|
1649
|
+
access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
1650
|
+
web?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1651
|
+
externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1652
|
+
browser?: boolean | undefined;
|
|
1653
|
+
tests?: {
|
|
1654
|
+
program: string;
|
|
1655
|
+
args?: string[] | undefined;
|
|
1656
|
+
cwd?: string | undefined;
|
|
1657
|
+
envAllowlist?: string[] | undefined;
|
|
1658
|
+
}[] | undefined;
|
|
1659
1659
|
protectedPathApprovals?: {
|
|
1660
1660
|
path: string;
|
|
1661
1661
|
reason?: string | undefined;
|
|
1662
1662
|
}[] | undefined;
|
|
1663
|
+
planRunId?: string | undefined;
|
|
1663
1664
|
reviewerPanel?: {
|
|
1664
1665
|
harness: string;
|
|
1665
1666
|
model?: string | undefined;
|
|
1666
1667
|
effort?: string | undefined;
|
|
1667
1668
|
}[] | undefined;
|
|
1668
|
-
authPreference?: "
|
|
1669
|
+
authPreference?: "api_key" | "auto" | "subscription" | undefined;
|
|
1669
1670
|
credentialProfileId?: string | null | undefined;
|
|
1670
1671
|
delegate?: boolean | undefined;
|
|
1671
1672
|
maxSeconds?: number | undefined;
|
|
1672
1673
|
denyPaths?: string[] | undefined;
|
|
1673
1674
|
outputSchema?: Record<string, unknown> | undefined;
|
|
1674
1675
|
maxTurns?: number | undefined;
|
|
1676
|
+
answersPlanRunId?: string | undefined;
|
|
1675
1677
|
overridePlanReadiness?: boolean | undefined;
|
|
1676
1678
|
}>;
|
|
1677
1679
|
export type ControlThreadTurnRequest = z.infer<typeof ControlThreadTurnRequest>;
|
|
@@ -1684,34 +1686,34 @@ export declare const ControlThreadTurnResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
1684
1686
|
threadId: z.ZodString;
|
|
1685
1687
|
turnId: z.ZodString;
|
|
1686
1688
|
}, "strip", z.ZodTypeAny, {
|
|
1687
|
-
threadId: string;
|
|
1688
|
-
turnId: string;
|
|
1689
|
-
runId: string;
|
|
1690
|
-
runDir: string;
|
|
1691
1689
|
jobId?: string | undefined;
|
|
1690
|
+
runId: string;
|
|
1692
1691
|
taskId?: string | undefined;
|
|
1693
|
-
|
|
1692
|
+
runDir: string;
|
|
1694
1693
|
threadId: string;
|
|
1695
1694
|
turnId: string;
|
|
1696
|
-
|
|
1697
|
-
runDir: string;
|
|
1695
|
+
}, {
|
|
1698
1696
|
jobId?: string | undefined;
|
|
1697
|
+
runId: string;
|
|
1699
1698
|
taskId?: string | undefined;
|
|
1699
|
+
runDir: string;
|
|
1700
|
+
threadId: string;
|
|
1701
|
+
turnId: string;
|
|
1700
1702
|
}>, z.ZodObject<{
|
|
1701
1703
|
jobId: z.ZodString;
|
|
1702
1704
|
threadId: z.ZodString;
|
|
1703
1705
|
turnId: z.ZodString;
|
|
1704
1706
|
state: z.ZodString;
|
|
1705
1707
|
}, "strict", z.ZodTypeAny, {
|
|
1706
|
-
|
|
1708
|
+
jobId: string;
|
|
1707
1709
|
threadId: string;
|
|
1708
1710
|
turnId: string;
|
|
1709
|
-
jobId: string;
|
|
1710
|
-
}, {
|
|
1711
1711
|
state: string;
|
|
1712
|
+
}, {
|
|
1713
|
+
jobId: string;
|
|
1712
1714
|
threadId: string;
|
|
1713
1715
|
turnId: string;
|
|
1714
|
-
|
|
1716
|
+
state: string;
|
|
1715
1717
|
}>]>;
|
|
1716
1718
|
export type ControlThreadTurnResponse = z.infer<typeof ControlThreadTurnResponse>;
|
|
1717
1719
|
//# sourceMappingURL=control-operation-responses.d.ts.map
|