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