@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
package/dist/harness.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
export { EffortHint } from "./effort.js";
|
|
3
3
|
/** Quality of a usage/quota signal a harness can emit. */
|
|
4
4
|
export declare const SignalQuality: z.ZodEnum<["exact", "native", "observed", "manual", "unknown"]>;
|
|
@@ -68,8 +68,8 @@ export declare const HarnessCapabilities: z.ZodObject<{
|
|
|
68
68
|
* and the attempt finalizer demands a report only from them.
|
|
69
69
|
* - `constrained`: a native schema-constrained transport carries it
|
|
70
70
|
* (codex --output-schema, claude StructuredOutput tool).
|
|
71
|
-
* - `validated`: no native flag;
|
|
72
|
-
* (cursor's
|
|
71
|
+
* - `validated`: no native flag; an instructed terminal metadata block is
|
|
72
|
+
* validated (cursor's fenced WorkReport footer on the existing parse path).
|
|
73
73
|
* - `unsupported`: the route cannot carry a WorkReport; the work_state axis
|
|
74
74
|
* stays `unverified` (a disclosed absence, never a failure).
|
|
75
75
|
*/
|
|
@@ -80,9 +80,9 @@ export declare const HarnessCapabilities: z.ZodObject<{
|
|
|
80
80
|
* shape (D-16). `side_tool` (claude --json-schema materializes a
|
|
81
81
|
* StructuredOutput tool; the prose message stays markdown) lets a
|
|
82
82
|
* WorkReport-only envelope ride the tool while the markdown remains the
|
|
83
|
-
* deliverable. `final_message` (codex --output-schema
|
|
84
|
-
*
|
|
85
|
-
*
|
|
83
|
+
* deliverable. `final_message` (codex --output-schema) consumes the final
|
|
84
|
+
* message, so its no-caller envelope wraps markdown as `output: string`;
|
|
85
|
+
* Cursor's validated footer is separate.
|
|
86
86
|
*/
|
|
87
87
|
structured_output_channel: z.ZodDefault<z.ZodEnum<["side_tool", "final_message"]>>;
|
|
88
88
|
/**
|
|
@@ -146,20 +146,20 @@ export declare const HarnessCapabilities: z.ZodObject<{
|
|
|
146
146
|
}, "strip", z.ZodTypeAny, {
|
|
147
147
|
plan: boolean;
|
|
148
148
|
implement: boolean;
|
|
149
|
+
implementation_transport: "git_patch_envelope" | "workspace";
|
|
149
150
|
create_from_scratch: boolean;
|
|
150
151
|
review: boolean;
|
|
151
152
|
verify: boolean;
|
|
152
153
|
synthesize: boolean;
|
|
153
|
-
implementation_transport: "workspace" | "git_patch_envelope";
|
|
154
154
|
read_files: boolean;
|
|
155
155
|
browser_tool: boolean;
|
|
156
|
-
web_policy: "
|
|
156
|
+
web_policy: "native" | "none" | "tools" | "uncontrolled";
|
|
157
157
|
max_turns: boolean;
|
|
158
158
|
tool_lists: boolean;
|
|
159
159
|
interactive: boolean;
|
|
160
160
|
json_schema_output: boolean;
|
|
161
|
-
work_report_transport: "constrained" | "
|
|
162
|
-
structured_output_channel: "
|
|
161
|
+
work_report_transport: "constrained" | "unsupported" | "validated";
|
|
162
|
+
structured_output_channel: "final_message" | "side_tool";
|
|
163
163
|
effort_levels: string[];
|
|
164
164
|
model_effort_levels: Record<string, {
|
|
165
165
|
levels: string[];
|
|
@@ -174,20 +174,20 @@ export declare const HarnessCapabilities: z.ZodObject<{
|
|
|
174
174
|
}, {
|
|
175
175
|
plan?: boolean | undefined;
|
|
176
176
|
implement?: boolean | undefined;
|
|
177
|
+
implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
|
|
177
178
|
create_from_scratch?: boolean | undefined;
|
|
178
179
|
review?: boolean | undefined;
|
|
179
180
|
verify?: boolean | undefined;
|
|
180
181
|
synthesize?: boolean | undefined;
|
|
181
|
-
implementation_transport?: "workspace" | "git_patch_envelope" | undefined;
|
|
182
182
|
read_files?: boolean | undefined;
|
|
183
183
|
browser_tool?: boolean | undefined;
|
|
184
|
-
web_policy?: "
|
|
184
|
+
web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
|
|
185
185
|
max_turns?: boolean | undefined;
|
|
186
186
|
tool_lists?: boolean | undefined;
|
|
187
187
|
interactive?: boolean | undefined;
|
|
188
188
|
json_schema_output?: boolean | undefined;
|
|
189
|
-
work_report_transport?: "constrained" | "
|
|
190
|
-
structured_output_channel?: "
|
|
189
|
+
work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
|
|
190
|
+
structured_output_channel?: "final_message" | "side_tool" | undefined;
|
|
191
191
|
effort_levels?: string[] | undefined;
|
|
192
192
|
model_effort_levels?: Record<string, {
|
|
193
193
|
levels?: string[] | undefined;
|
|
@@ -216,13 +216,13 @@ export declare const CredentialTransport: z.ZodObject<{
|
|
|
216
216
|
kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
|
|
217
217
|
relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
source: "
|
|
220
|
-
kind: "
|
|
221
|
-
relocatable_by: ("
|
|
219
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
220
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
221
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
222
222
|
}, {
|
|
223
|
-
source: "
|
|
224
|
-
kind: "
|
|
225
|
-
relocatable_by?: ("
|
|
223
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
224
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
225
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
226
226
|
}>;
|
|
227
227
|
export type CredentialTransport = z.infer<typeof CredentialTransport>;
|
|
228
228
|
export declare const AuthCapabilities: z.ZodDefault<z.ZodObject<{
|
|
@@ -233,29 +233,29 @@ export declare const AuthCapabilities: z.ZodDefault<z.ZodObject<{
|
|
|
233
233
|
kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
|
|
234
234
|
relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
|
|
235
235
|
}, "strip", z.ZodTypeAny, {
|
|
236
|
-
source: "
|
|
237
|
-
kind: "
|
|
238
|
-
relocatable_by: ("
|
|
236
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
237
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
238
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
239
239
|
}, {
|
|
240
|
-
source: "
|
|
241
|
-
kind: "
|
|
242
|
-
relocatable_by?: ("
|
|
240
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
241
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
242
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
243
243
|
}>, "many">>;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
supported_sources: ("
|
|
246
|
-
preferred_source: "
|
|
245
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
246
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
247
247
|
credential_transports: {
|
|
248
|
-
source: "
|
|
249
|
-
kind: "
|
|
250
|
-
relocatable_by: ("
|
|
248
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
249
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
250
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
251
251
|
}[];
|
|
252
252
|
}, {
|
|
253
|
-
supported_sources?: ("
|
|
254
|
-
preferred_source?: "
|
|
253
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
254
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
255
255
|
credential_transports?: {
|
|
256
|
-
source: "
|
|
257
|
-
kind: "
|
|
258
|
-
relocatable_by?: ("
|
|
256
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
257
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
258
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
259
259
|
}[] | undefined;
|
|
260
260
|
}>>;
|
|
261
261
|
export type AuthCapabilities = z.infer<typeof AuthCapabilities>;
|
|
@@ -264,9 +264,9 @@ export type ContainmentKind = z.infer<typeof ContainmentKind>;
|
|
|
264
264
|
export declare const IsolationCapabilities: z.ZodDefault<z.ZodObject<{
|
|
265
265
|
supported_containment: z.ZodDefault<z.ZodArray<z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>, "many">>;
|
|
266
266
|
}, "strip", z.ZodTypeAny, {
|
|
267
|
-
supported_containment: ("
|
|
267
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
268
268
|
}, {
|
|
269
|
-
supported_containment?: ("
|
|
269
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
270
270
|
}>>;
|
|
271
271
|
export type IsolationCapabilities = z.infer<typeof IsolationCapabilities>;
|
|
272
272
|
export declare const ReadonlyMechanism: z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>;
|
|
@@ -274,9 +274,9 @@ export type ReadonlyMechanism = z.infer<typeof ReadonlyMechanism>;
|
|
|
274
274
|
export declare const AccessControlCapabilities: z.ZodDefault<z.ZodObject<{
|
|
275
275
|
readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
|
-
readonly_mechanism: "
|
|
277
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
278
278
|
}, {
|
|
279
|
-
readonly_mechanism?: "
|
|
279
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
280
280
|
}>>;
|
|
281
281
|
export type AccessControlCapabilities = z.infer<typeof AccessControlCapabilities>;
|
|
282
282
|
/**
|
|
@@ -296,44 +296,44 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
|
|
|
296
296
|
kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
|
|
297
297
|
relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
299
|
-
source: "
|
|
300
|
-
kind: "
|
|
301
|
-
relocatable_by: ("
|
|
299
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
300
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
301
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
302
302
|
}, {
|
|
303
|
-
source: "
|
|
304
|
-
kind: "
|
|
305
|
-
relocatable_by?: ("
|
|
303
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
304
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
305
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
306
306
|
}>, "many">>;
|
|
307
307
|
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
supported_sources: ("
|
|
309
|
-
preferred_source: "
|
|
308
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
309
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
310
310
|
credential_transports: {
|
|
311
|
-
source: "
|
|
312
|
-
kind: "
|
|
313
|
-
relocatable_by: ("
|
|
311
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
312
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
313
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
314
314
|
}[];
|
|
315
315
|
}, {
|
|
316
|
-
supported_sources?: ("
|
|
317
|
-
preferred_source?: "
|
|
316
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
317
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
318
318
|
credential_transports?: {
|
|
319
|
-
source: "
|
|
320
|
-
kind: "
|
|
321
|
-
relocatable_by?: ("
|
|
319
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
320
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
321
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
322
322
|
}[] | undefined;
|
|
323
323
|
}>>;
|
|
324
324
|
access_control: z.ZodDefault<z.ZodObject<{
|
|
325
325
|
readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
|
|
326
326
|
}, "strip", z.ZodTypeAny, {
|
|
327
|
-
readonly_mechanism: "
|
|
327
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
328
328
|
}, {
|
|
329
|
-
readonly_mechanism?: "
|
|
329
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
330
330
|
}>>;
|
|
331
331
|
isolation: z.ZodDefault<z.ZodObject<{
|
|
332
332
|
supported_containment: z.ZodDefault<z.ZodArray<z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>, "many">>;
|
|
333
333
|
}, "strip", z.ZodTypeAny, {
|
|
334
|
-
supported_containment: ("
|
|
334
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
335
335
|
}, {
|
|
336
|
-
supported_containment?: ("
|
|
336
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
337
337
|
}>>;
|
|
338
338
|
/** Every accepted media class has a finite MIME/size/count/transport declaration. */
|
|
339
339
|
attachment_inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -347,21 +347,21 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
|
|
|
347
347
|
mime_types: string[];
|
|
348
348
|
max_bytes: number;
|
|
349
349
|
max_count: number;
|
|
350
|
-
transport: "
|
|
350
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
351
351
|
}, {
|
|
352
352
|
kind: "file" | "image";
|
|
353
353
|
mime_types: string[];
|
|
354
354
|
max_bytes: number;
|
|
355
355
|
max_count: number;
|
|
356
|
-
transport: "
|
|
356
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
357
357
|
}>, "many">>;
|
|
358
358
|
/**
|
|
359
359
|
* The adapter can inject engine-owned MCP servers into the harness sandbox
|
|
360
360
|
* (the generalized browser-MCP seam): claude via `--mcp-config` inline JSON,
|
|
361
361
|
* codex via `-c mcp_servers.<name>.*` overrides. Consumers: the browser-tool
|
|
362
362
|
* wiring and the delegation belt. When false, `HarnessRunSpec.extra_mcp_servers`
|
|
363
|
-
* is refused at preflight (never silently dropped)
|
|
364
|
-
* toggle
|
|
363
|
+
* is refused at preflight (never silently dropped), while the Agent
|
|
364
|
+
* `delegate` toggle degrades to ordinary Agent with a durable typed receipt.
|
|
365
365
|
*/
|
|
366
366
|
mcp_injection: z.ZodDefault<z.ZodBoolean>;
|
|
367
367
|
/**
|
|
@@ -370,56 +370,56 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
|
|
|
370
370
|
* that escalation-requiring MCP call in headless exec; only danger-full-access
|
|
371
371
|
* lets it through — the browser MCP already rides this. Claude does not
|
|
372
372
|
* sandbox its MCP servers (false). true => a --delegate lane below full
|
|
373
|
-
* access
|
|
373
|
+
* access degrades to ordinary Agent with a durable typed receipt.
|
|
374
374
|
*/
|
|
375
375
|
mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
|
|
376
376
|
}, "strip", z.ZodTypeAny, {
|
|
377
377
|
auth: {
|
|
378
|
-
supported_sources: ("
|
|
379
|
-
preferred_source: "
|
|
378
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
379
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
380
380
|
credential_transports: {
|
|
381
|
-
source: "
|
|
382
|
-
kind: "
|
|
383
|
-
relocatable_by: ("
|
|
381
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
382
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
383
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
384
384
|
}[];
|
|
385
385
|
};
|
|
386
386
|
access_control: {
|
|
387
|
-
readonly_mechanism: "
|
|
387
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
388
388
|
};
|
|
389
389
|
isolation: {
|
|
390
|
-
supported_containment: ("
|
|
390
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
391
391
|
};
|
|
392
392
|
attachment_inputs: {
|
|
393
393
|
kind: "file" | "image";
|
|
394
394
|
mime_types: string[];
|
|
395
395
|
max_bytes: number;
|
|
396
396
|
max_count: number;
|
|
397
|
-
transport: "
|
|
397
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
398
398
|
}[];
|
|
399
399
|
mcp_injection: boolean;
|
|
400
400
|
mcp_injection_requires_full_access: boolean;
|
|
401
401
|
}, {
|
|
402
402
|
auth?: {
|
|
403
|
-
supported_sources?: ("
|
|
404
|
-
preferred_source?: "
|
|
403
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
404
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
405
405
|
credential_transports?: {
|
|
406
|
-
source: "
|
|
407
|
-
kind: "
|
|
408
|
-
relocatable_by?: ("
|
|
406
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
407
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
408
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
409
409
|
}[] | undefined;
|
|
410
410
|
} | undefined;
|
|
411
411
|
access_control?: {
|
|
412
|
-
readonly_mechanism?: "
|
|
412
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
413
413
|
} | undefined;
|
|
414
414
|
isolation?: {
|
|
415
|
-
supported_containment?: ("
|
|
415
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
416
416
|
} | undefined;
|
|
417
417
|
attachment_inputs?: {
|
|
418
418
|
kind: "file" | "image";
|
|
419
419
|
mime_types: string[];
|
|
420
420
|
max_bytes: number;
|
|
421
421
|
max_count: number;
|
|
422
|
-
transport: "
|
|
422
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
423
423
|
}[] | undefined;
|
|
424
424
|
mcp_injection?: boolean | undefined;
|
|
425
425
|
mcp_injection_requires_full_access?: boolean | undefined;
|
|
@@ -441,13 +441,13 @@ export declare const HarnessModel: z.ZodObject<{
|
|
|
441
441
|
}, "strip", z.ZodTypeAny, {
|
|
442
442
|
id: string;
|
|
443
443
|
label: string | null;
|
|
444
|
-
routes: ("api_key" | "local_session")[] | null;
|
|
445
444
|
context_window: number | null;
|
|
445
|
+
routes: ("api_key" | "local_session")[] | null;
|
|
446
446
|
}, {
|
|
447
447
|
id: string;
|
|
448
448
|
label?: string | null | undefined;
|
|
449
|
-
routes?: ("api_key" | "local_session")[] | null | undefined;
|
|
450
449
|
context_window?: number | null | undefined;
|
|
450
|
+
routes?: ("api_key" | "local_session")[] | null | undefined;
|
|
451
451
|
}>;
|
|
452
452
|
export type HarnessModel = z.infer<typeof HarnessModel>;
|
|
453
453
|
export declare const HarnessManifest: z.ZodObject<{
|
|
@@ -466,44 +466,44 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
466
466
|
kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
|
|
467
467
|
relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
|
|
468
468
|
}, "strip", z.ZodTypeAny, {
|
|
469
|
-
source: "
|
|
470
|
-
kind: "
|
|
471
|
-
relocatable_by: ("
|
|
469
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
470
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
471
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
472
472
|
}, {
|
|
473
|
-
source: "
|
|
474
|
-
kind: "
|
|
475
|
-
relocatable_by?: ("
|
|
473
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
474
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
475
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
476
476
|
}>, "many">>;
|
|
477
477
|
}, "strip", z.ZodTypeAny, {
|
|
478
|
-
supported_sources: ("
|
|
479
|
-
preferred_source: "
|
|
478
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
479
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
480
480
|
credential_transports: {
|
|
481
|
-
source: "
|
|
482
|
-
kind: "
|
|
483
|
-
relocatable_by: ("
|
|
481
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
482
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
483
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
484
484
|
}[];
|
|
485
485
|
}, {
|
|
486
|
-
supported_sources?: ("
|
|
487
|
-
preferred_source?: "
|
|
486
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
487
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
488
488
|
credential_transports?: {
|
|
489
|
-
source: "
|
|
490
|
-
kind: "
|
|
491
|
-
relocatable_by?: ("
|
|
489
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
490
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
491
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
492
492
|
}[] | undefined;
|
|
493
493
|
}>>;
|
|
494
494
|
access_control: z.ZodDefault<z.ZodObject<{
|
|
495
495
|
readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
|
|
496
496
|
}, "strip", z.ZodTypeAny, {
|
|
497
|
-
readonly_mechanism: "
|
|
497
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
498
498
|
}, {
|
|
499
|
-
readonly_mechanism?: "
|
|
499
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
500
500
|
}>>;
|
|
501
501
|
isolation: z.ZodDefault<z.ZodObject<{
|
|
502
502
|
supported_containment: z.ZodDefault<z.ZodArray<z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>, "many">>;
|
|
503
503
|
}, "strip", z.ZodTypeAny, {
|
|
504
|
-
supported_containment: ("
|
|
504
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
505
505
|
}, {
|
|
506
|
-
supported_containment?: ("
|
|
506
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
507
507
|
}>>;
|
|
508
508
|
/** Every accepted media class has a finite MIME/size/count/transport declaration. */
|
|
509
509
|
attachment_inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -517,21 +517,21 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
517
517
|
mime_types: string[];
|
|
518
518
|
max_bytes: number;
|
|
519
519
|
max_count: number;
|
|
520
|
-
transport: "
|
|
520
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
521
521
|
}, {
|
|
522
522
|
kind: "file" | "image";
|
|
523
523
|
mime_types: string[];
|
|
524
524
|
max_bytes: number;
|
|
525
525
|
max_count: number;
|
|
526
|
-
transport: "
|
|
526
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
527
527
|
}>, "many">>;
|
|
528
528
|
/**
|
|
529
529
|
* The adapter can inject engine-owned MCP servers into the harness sandbox
|
|
530
530
|
* (the generalized browser-MCP seam): claude via `--mcp-config` inline JSON,
|
|
531
531
|
* codex via `-c mcp_servers.<name>.*` overrides. Consumers: the browser-tool
|
|
532
532
|
* wiring and the delegation belt. When false, `HarnessRunSpec.extra_mcp_servers`
|
|
533
|
-
* is refused at preflight (never silently dropped)
|
|
534
|
-
* toggle
|
|
533
|
+
* is refused at preflight (never silently dropped), while the Agent
|
|
534
|
+
* `delegate` toggle degrades to ordinary Agent with a durable typed receipt.
|
|
535
535
|
*/
|
|
536
536
|
mcp_injection: z.ZodDefault<z.ZodBoolean>;
|
|
537
537
|
/**
|
|
@@ -540,56 +540,56 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
540
540
|
* that escalation-requiring MCP call in headless exec; only danger-full-access
|
|
541
541
|
* lets it through — the browser MCP already rides this. Claude does not
|
|
542
542
|
* sandbox its MCP servers (false). true => a --delegate lane below full
|
|
543
|
-
* access
|
|
543
|
+
* access degrades to ordinary Agent with a durable typed receipt.
|
|
544
544
|
*/
|
|
545
545
|
mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
|
|
546
546
|
}, "strip", z.ZodTypeAny, {
|
|
547
547
|
auth: {
|
|
548
|
-
supported_sources: ("
|
|
549
|
-
preferred_source: "
|
|
548
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
549
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
550
550
|
credential_transports: {
|
|
551
|
-
source: "
|
|
552
|
-
kind: "
|
|
553
|
-
relocatable_by: ("
|
|
551
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
552
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
553
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
554
554
|
}[];
|
|
555
555
|
};
|
|
556
556
|
access_control: {
|
|
557
|
-
readonly_mechanism: "
|
|
557
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
558
558
|
};
|
|
559
559
|
isolation: {
|
|
560
|
-
supported_containment: ("
|
|
560
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
561
561
|
};
|
|
562
562
|
attachment_inputs: {
|
|
563
563
|
kind: "file" | "image";
|
|
564
564
|
mime_types: string[];
|
|
565
565
|
max_bytes: number;
|
|
566
566
|
max_count: number;
|
|
567
|
-
transport: "
|
|
567
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
568
568
|
}[];
|
|
569
569
|
mcp_injection: boolean;
|
|
570
570
|
mcp_injection_requires_full_access: boolean;
|
|
571
571
|
}, {
|
|
572
572
|
auth?: {
|
|
573
|
-
supported_sources?: ("
|
|
574
|
-
preferred_source?: "
|
|
573
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
574
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
575
575
|
credential_transports?: {
|
|
576
|
-
source: "
|
|
577
|
-
kind: "
|
|
578
|
-
relocatable_by?: ("
|
|
576
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
577
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
578
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
579
579
|
}[] | undefined;
|
|
580
580
|
} | undefined;
|
|
581
581
|
access_control?: {
|
|
582
|
-
readonly_mechanism?: "
|
|
582
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
583
583
|
} | undefined;
|
|
584
584
|
isolation?: {
|
|
585
|
-
supported_containment?: ("
|
|
585
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
586
586
|
} | undefined;
|
|
587
587
|
attachment_inputs?: {
|
|
588
588
|
kind: "file" | "image";
|
|
589
589
|
mime_types: string[];
|
|
590
590
|
max_bytes: number;
|
|
591
591
|
max_count: number;
|
|
592
|
-
transport: "
|
|
592
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
593
593
|
}[] | undefined;
|
|
594
594
|
mcp_injection?: boolean | undefined;
|
|
595
595
|
mcp_injection_requires_full_access?: boolean | undefined;
|
|
@@ -636,8 +636,8 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
636
636
|
* and the attempt finalizer demands a report only from them.
|
|
637
637
|
* - `constrained`: a native schema-constrained transport carries it
|
|
638
638
|
* (codex --output-schema, claude StructuredOutput tool).
|
|
639
|
-
* - `validated`: no native flag;
|
|
640
|
-
* (cursor's
|
|
639
|
+
* - `validated`: no native flag; an instructed terminal metadata block is
|
|
640
|
+
* validated (cursor's fenced WorkReport footer on the existing parse path).
|
|
641
641
|
* - `unsupported`: the route cannot carry a WorkReport; the work_state axis
|
|
642
642
|
* stays `unverified` (a disclosed absence, never a failure).
|
|
643
643
|
*/
|
|
@@ -648,9 +648,9 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
648
648
|
* shape (D-16). `side_tool` (claude --json-schema materializes a
|
|
649
649
|
* StructuredOutput tool; the prose message stays markdown) lets a
|
|
650
650
|
* WorkReport-only envelope ride the tool while the markdown remains the
|
|
651
|
-
* deliverable. `final_message` (codex --output-schema
|
|
652
|
-
*
|
|
653
|
-
*
|
|
651
|
+
* deliverable. `final_message` (codex --output-schema) consumes the final
|
|
652
|
+
* message, so its no-caller envelope wraps markdown as `output: string`;
|
|
653
|
+
* Cursor's validated footer is separate.
|
|
654
654
|
*/
|
|
655
655
|
structured_output_channel: z.ZodDefault<z.ZodEnum<["side_tool", "final_message"]>>;
|
|
656
656
|
/**
|
|
@@ -714,20 +714,20 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
714
714
|
}, "strip", z.ZodTypeAny, {
|
|
715
715
|
plan: boolean;
|
|
716
716
|
implement: boolean;
|
|
717
|
+
implementation_transport: "git_patch_envelope" | "workspace";
|
|
717
718
|
create_from_scratch: boolean;
|
|
718
719
|
review: boolean;
|
|
719
720
|
verify: boolean;
|
|
720
721
|
synthesize: boolean;
|
|
721
|
-
implementation_transport: "workspace" | "git_patch_envelope";
|
|
722
722
|
read_files: boolean;
|
|
723
723
|
browser_tool: boolean;
|
|
724
|
-
web_policy: "
|
|
724
|
+
web_policy: "native" | "none" | "tools" | "uncontrolled";
|
|
725
725
|
max_turns: boolean;
|
|
726
726
|
tool_lists: boolean;
|
|
727
727
|
interactive: boolean;
|
|
728
728
|
json_schema_output: boolean;
|
|
729
|
-
work_report_transport: "constrained" | "
|
|
730
|
-
structured_output_channel: "
|
|
729
|
+
work_report_transport: "constrained" | "unsupported" | "validated";
|
|
730
|
+
structured_output_channel: "final_message" | "side_tool";
|
|
731
731
|
effort_levels: string[];
|
|
732
732
|
model_effort_levels: Record<string, {
|
|
733
733
|
levels: string[];
|
|
@@ -742,20 +742,20 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
742
742
|
}, {
|
|
743
743
|
plan?: boolean | undefined;
|
|
744
744
|
implement?: boolean | undefined;
|
|
745
|
+
implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
|
|
745
746
|
create_from_scratch?: boolean | undefined;
|
|
746
747
|
review?: boolean | undefined;
|
|
747
748
|
verify?: boolean | undefined;
|
|
748
749
|
synthesize?: boolean | undefined;
|
|
749
|
-
implementation_transport?: "workspace" | "git_patch_envelope" | undefined;
|
|
750
750
|
read_files?: boolean | undefined;
|
|
751
751
|
browser_tool?: boolean | undefined;
|
|
752
|
-
web_policy?: "
|
|
752
|
+
web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
|
|
753
753
|
max_turns?: boolean | undefined;
|
|
754
754
|
tool_lists?: boolean | undefined;
|
|
755
755
|
interactive?: boolean | undefined;
|
|
756
756
|
json_schema_output?: boolean | undefined;
|
|
757
|
-
work_report_transport?: "constrained" | "
|
|
758
|
-
structured_output_channel?: "
|
|
757
|
+
work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
|
|
758
|
+
structured_output_channel?: "final_message" | "side_tool" | undefined;
|
|
759
759
|
effort_levels?: string[] | undefined;
|
|
760
760
|
model_effort_levels?: Record<string, {
|
|
761
761
|
levels?: string[] | undefined;
|
|
@@ -771,32 +771,34 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
771
771
|
auth_modes: z.ZodDefault<z.ZodArray<z.ZodEnum<["local_session", "api_key", "none"]>, "many">>;
|
|
772
772
|
access_profiles_supported: z.ZodDefault<z.ZodArray<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>, "many">>;
|
|
773
773
|
}, "strip", z.ZodTypeAny, {
|
|
774
|
-
display_name: string;
|
|
775
|
-
kind: "local_cli" | "remote_api" | "fake";
|
|
776
774
|
id: string;
|
|
777
|
-
|
|
775
|
+
display_name: string;
|
|
776
|
+
kind: "fake" | "local_cli" | "remote_api";
|
|
777
|
+
version?: string | undefined;
|
|
778
|
+
adapter_version?: string | undefined;
|
|
779
|
+
provider_family: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai";
|
|
778
780
|
capability_profile: {
|
|
779
781
|
auth: {
|
|
780
|
-
supported_sources: ("
|
|
781
|
-
preferred_source: "
|
|
782
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
783
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
782
784
|
credential_transports: {
|
|
783
|
-
source: "
|
|
784
|
-
kind: "
|
|
785
|
-
relocatable_by: ("
|
|
785
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
786
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
787
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
786
788
|
}[];
|
|
787
789
|
};
|
|
788
790
|
access_control: {
|
|
789
|
-
readonly_mechanism: "
|
|
791
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
790
792
|
};
|
|
791
793
|
isolation: {
|
|
792
|
-
supported_containment: ("
|
|
794
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
793
795
|
};
|
|
794
796
|
attachment_inputs: {
|
|
795
797
|
kind: "file" | "image";
|
|
796
798
|
mime_types: string[];
|
|
797
799
|
max_bytes: number;
|
|
798
800
|
max_count: number;
|
|
799
|
-
transport: "
|
|
801
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
800
802
|
}[];
|
|
801
803
|
mcp_injection: boolean;
|
|
802
804
|
mcp_injection_requires_full_access: boolean;
|
|
@@ -804,20 +806,20 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
804
806
|
capabilities: {
|
|
805
807
|
plan: boolean;
|
|
806
808
|
implement: boolean;
|
|
809
|
+
implementation_transport: "git_patch_envelope" | "workspace";
|
|
807
810
|
create_from_scratch: boolean;
|
|
808
811
|
review: boolean;
|
|
809
812
|
verify: boolean;
|
|
810
813
|
synthesize: boolean;
|
|
811
|
-
implementation_transport: "workspace" | "git_patch_envelope";
|
|
812
814
|
read_files: boolean;
|
|
813
815
|
browser_tool: boolean;
|
|
814
|
-
web_policy: "
|
|
816
|
+
web_policy: "native" | "none" | "tools" | "uncontrolled";
|
|
815
817
|
max_turns: boolean;
|
|
816
818
|
tool_lists: boolean;
|
|
817
819
|
interactive: boolean;
|
|
818
820
|
json_schema_output: boolean;
|
|
819
|
-
work_report_transport: "constrained" | "
|
|
820
|
-
structured_output_channel: "
|
|
821
|
+
work_report_transport: "constrained" | "unsupported" | "validated";
|
|
822
|
+
structured_output_channel: "final_message" | "side_tool";
|
|
821
823
|
effort_levels: string[];
|
|
822
824
|
model_effort_levels: Record<string, {
|
|
823
825
|
levels: string[];
|
|
@@ -830,31 +832,58 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
830
832
|
})[];
|
|
831
833
|
known_models_verified_against: string | null;
|
|
832
834
|
};
|
|
833
|
-
auth_modes: ("api_key" | "
|
|
834
|
-
access_profiles_supported: ("
|
|
835
|
-
version?: string | undefined;
|
|
836
|
-
adapter_version?: string | undefined;
|
|
835
|
+
auth_modes: ("api_key" | "local_session" | "none")[];
|
|
836
|
+
access_profiles_supported: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[];
|
|
837
837
|
}, {
|
|
838
|
-
display_name: string;
|
|
839
|
-
kind: "local_cli" | "remote_api" | "fake";
|
|
840
838
|
id: string;
|
|
839
|
+
display_name: string;
|
|
840
|
+
kind: "fake" | "local_cli" | "remote_api";
|
|
841
|
+
version?: string | undefined;
|
|
842
|
+
adapter_version?: string | undefined;
|
|
843
|
+
provider_family?: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai" | undefined;
|
|
844
|
+
capability_profile?: {
|
|
845
|
+
auth?: {
|
|
846
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
847
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
848
|
+
credential_transports?: {
|
|
849
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
850
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
851
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
852
|
+
}[] | undefined;
|
|
853
|
+
} | undefined;
|
|
854
|
+
access_control?: {
|
|
855
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
856
|
+
} | undefined;
|
|
857
|
+
isolation?: {
|
|
858
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
859
|
+
} | undefined;
|
|
860
|
+
attachment_inputs?: {
|
|
861
|
+
kind: "file" | "image";
|
|
862
|
+
mime_types: string[];
|
|
863
|
+
max_bytes: number;
|
|
864
|
+
max_count: number;
|
|
865
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
866
|
+
}[] | undefined;
|
|
867
|
+
mcp_injection?: boolean | undefined;
|
|
868
|
+
mcp_injection_requires_full_access?: boolean | undefined;
|
|
869
|
+
} | undefined;
|
|
841
870
|
capabilities: {
|
|
842
871
|
plan?: boolean | undefined;
|
|
843
872
|
implement?: boolean | undefined;
|
|
873
|
+
implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
|
|
844
874
|
create_from_scratch?: boolean | undefined;
|
|
845
875
|
review?: boolean | undefined;
|
|
846
876
|
verify?: boolean | undefined;
|
|
847
877
|
synthesize?: boolean | undefined;
|
|
848
|
-
implementation_transport?: "workspace" | "git_patch_envelope" | undefined;
|
|
849
878
|
read_files?: boolean | undefined;
|
|
850
879
|
browser_tool?: boolean | undefined;
|
|
851
|
-
web_policy?: "
|
|
880
|
+
web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
|
|
852
881
|
max_turns?: boolean | undefined;
|
|
853
882
|
tool_lists?: boolean | undefined;
|
|
854
883
|
interactive?: boolean | undefined;
|
|
855
884
|
json_schema_output?: boolean | undefined;
|
|
856
|
-
work_report_transport?: "constrained" | "
|
|
857
|
-
structured_output_channel?: "
|
|
885
|
+
work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
|
|
886
|
+
structured_output_channel?: "final_message" | "side_tool" | undefined;
|
|
858
887
|
effort_levels?: string[] | undefined;
|
|
859
888
|
model_effort_levels?: Record<string, {
|
|
860
889
|
levels?: string[] | undefined;
|
|
@@ -867,37 +896,8 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
867
896
|
})[] | undefined;
|
|
868
897
|
known_models_verified_against?: string | null | undefined;
|
|
869
898
|
};
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
provider_family?: "openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown" | undefined;
|
|
873
|
-
capability_profile?: {
|
|
874
|
-
auth?: {
|
|
875
|
-
supported_sources?: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[] | undefined;
|
|
876
|
-
preferred_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
|
|
877
|
-
credential_transports?: {
|
|
878
|
-
source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
|
|
879
|
-
kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
|
|
880
|
-
relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
|
|
881
|
-
}[] | undefined;
|
|
882
|
-
} | undefined;
|
|
883
|
-
access_control?: {
|
|
884
|
-
readonly_mechanism?: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist" | undefined;
|
|
885
|
-
} | undefined;
|
|
886
|
-
isolation?: {
|
|
887
|
-
supported_containment?: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[] | undefined;
|
|
888
|
-
} | undefined;
|
|
889
|
-
attachment_inputs?: {
|
|
890
|
-
kind: "file" | "image";
|
|
891
|
-
mime_types: string[];
|
|
892
|
-
max_bytes: number;
|
|
893
|
-
max_count: number;
|
|
894
|
-
transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
|
|
895
|
-
}[] | undefined;
|
|
896
|
-
mcp_injection?: boolean | undefined;
|
|
897
|
-
mcp_injection_requires_full_access?: boolean | undefined;
|
|
898
|
-
} | undefined;
|
|
899
|
-
auth_modes?: ("api_key" | "none" | "local_session")[] | undefined;
|
|
900
|
-
access_profiles_supported?: ("readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native")[] | undefined;
|
|
899
|
+
auth_modes?: ("api_key" | "local_session" | "none")[] | undefined;
|
|
900
|
+
access_profiles_supported?: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[] | undefined;
|
|
901
901
|
}>;
|
|
902
902
|
export type HarnessManifest = z.infer<typeof HarnessManifest>;
|
|
903
903
|
/** Result of a conformance probe for one capability check. */
|
|
@@ -907,13 +907,13 @@ export declare const ConformanceCheck: z.ZodObject<{
|
|
|
907
907
|
detail: z.ZodOptional<z.ZodString>;
|
|
908
908
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
909
909
|
}, "strip", z.ZodTypeAny, {
|
|
910
|
-
status: "pass" | "fail" | "skip";
|
|
911
910
|
id: string;
|
|
911
|
+
status: "fail" | "pass" | "skip";
|
|
912
912
|
detail?: string | undefined;
|
|
913
913
|
duration_ms?: number | undefined;
|
|
914
914
|
}, {
|
|
915
|
-
status: "pass" | "fail" | "skip";
|
|
916
915
|
id: string;
|
|
916
|
+
status: "fail" | "pass" | "skip";
|
|
917
917
|
detail?: string | undefined;
|
|
918
918
|
duration_ms?: number | undefined;
|
|
919
919
|
}>;
|
|
@@ -929,13 +929,13 @@ export declare const ConformanceReport: z.ZodObject<{
|
|
|
929
929
|
detail: z.ZodOptional<z.ZodString>;
|
|
930
930
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
931
931
|
}, "strip", z.ZodTypeAny, {
|
|
932
|
-
status: "pass" | "fail" | "skip";
|
|
933
932
|
id: string;
|
|
933
|
+
status: "fail" | "pass" | "skip";
|
|
934
934
|
detail?: string | undefined;
|
|
935
935
|
duration_ms?: number | undefined;
|
|
936
936
|
}, {
|
|
937
|
-
status: "pass" | "fail" | "skip";
|
|
938
937
|
id: string;
|
|
938
|
+
status: "fail" | "pass" | "skip";
|
|
939
939
|
detail?: string | undefined;
|
|
940
940
|
duration_ms?: number | undefined;
|
|
941
941
|
}>, "many">>;
|
|
@@ -948,50 +948,50 @@ export declare const ConformanceReport: z.ZodObject<{
|
|
|
948
948
|
verification: z.ZodEnum<["passed", "failed", "not_run"]>;
|
|
949
949
|
detail: z.ZodOptional<z.ZodString>;
|
|
950
950
|
}, "strict", z.ZodTypeAny, {
|
|
951
|
-
source: "
|
|
952
|
-
availability: "
|
|
953
|
-
verification: "
|
|
951
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
952
|
+
availability: "available" | "unavailable" | "unknown";
|
|
953
|
+
verification: "failed" | "not_run" | "passed";
|
|
954
954
|
detail?: string | undefined;
|
|
955
955
|
}, {
|
|
956
|
-
source: "
|
|
957
|
-
availability: "
|
|
958
|
-
verification: "
|
|
956
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
957
|
+
availability: "available" | "unavailable" | "unknown";
|
|
958
|
+
verification: "failed" | "not_run" | "passed";
|
|
959
959
|
detail?: string | undefined;
|
|
960
960
|
}>, "many">>;
|
|
961
961
|
}, "strip", z.ZodTypeAny, {
|
|
962
|
-
status: "unavailable" | "ok" | "degraded";
|
|
963
962
|
harness_id: string;
|
|
963
|
+
status: "degraded" | "ok" | "unavailable";
|
|
964
964
|
checks: {
|
|
965
|
-
status: "pass" | "fail" | "skip";
|
|
966
965
|
id: string;
|
|
966
|
+
status: "fail" | "pass" | "skip";
|
|
967
967
|
detail?: string | undefined;
|
|
968
968
|
duration_ms?: number | undefined;
|
|
969
969
|
}[];
|
|
970
|
-
enabled_intents: ("
|
|
971
|
-
disabled_intents: ("
|
|
970
|
+
enabled_intents: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[];
|
|
971
|
+
disabled_intents: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[];
|
|
972
972
|
reasons: string[];
|
|
973
973
|
auth_sources: {
|
|
974
|
-
source: "
|
|
975
|
-
availability: "
|
|
976
|
-
verification: "
|
|
974
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
975
|
+
availability: "available" | "unavailable" | "unknown";
|
|
976
|
+
verification: "failed" | "not_run" | "passed";
|
|
977
977
|
detail?: string | undefined;
|
|
978
978
|
}[];
|
|
979
979
|
}, {
|
|
980
|
-
status: "unavailable" | "ok" | "degraded";
|
|
981
980
|
harness_id: string;
|
|
981
|
+
status: "degraded" | "ok" | "unavailable";
|
|
982
982
|
checks?: {
|
|
983
|
-
status: "pass" | "fail" | "skip";
|
|
984
983
|
id: string;
|
|
984
|
+
status: "fail" | "pass" | "skip";
|
|
985
985
|
detail?: string | undefined;
|
|
986
986
|
duration_ms?: number | undefined;
|
|
987
987
|
}[] | undefined;
|
|
988
|
-
enabled_intents?: ("
|
|
989
|
-
disabled_intents?: ("
|
|
988
|
+
enabled_intents?: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[] | undefined;
|
|
989
|
+
disabled_intents?: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[] | undefined;
|
|
990
990
|
reasons?: string[] | undefined;
|
|
991
991
|
auth_sources?: {
|
|
992
|
-
source: "
|
|
993
|
-
availability: "
|
|
994
|
-
verification: "
|
|
992
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
993
|
+
availability: "available" | "unavailable" | "unknown";
|
|
994
|
+
verification: "failed" | "not_run" | "passed";
|
|
995
995
|
detail?: string | undefined;
|
|
996
996
|
}[] | undefined;
|
|
997
997
|
}>;
|
|
@@ -1007,30 +1007,25 @@ export declare const BrowserToolSpec: z.ZodObject<{
|
|
|
1007
1007
|
headless?: boolean | undefined;
|
|
1008
1008
|
}>;
|
|
1009
1009
|
export type BrowserToolSpec = z.infer<typeof BrowserToolSpec>;
|
|
1010
|
-
/**
|
|
1011
|
-
* One extra MCP server the adapter injects into the harness sandbox (generalized
|
|
1012
|
-
* from the browser-MCP seam). The engine names them, supplies the exact local
|
|
1013
|
-
* command + args + env, and each adapter translates the list into its native
|
|
1014
|
-
* MCP-injection transport (claude `--mcp-config` inline JSON, codex
|
|
1015
|
-
* `-c mcp_servers.<name>.*` overrides). Only injected on adapters whose
|
|
1016
|
-
* `capability_profile.mcp_injection` is true. `name` is the server key the
|
|
1017
|
-
* harness exposes its tools under (`mcp__<name>__*`).
|
|
1018
|
-
*/
|
|
1010
|
+
/** One engine-injected MCP server translated into each harness's native transport. */
|
|
1019
1011
|
export declare const ExtraMcpServer: z.ZodObject<{
|
|
1020
1012
|
name: z.ZodString;
|
|
1021
1013
|
command: z.ZodString;
|
|
1022
1014
|
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1023
1015
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1016
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1024
1017
|
}, "strip", z.ZodTypeAny, {
|
|
1025
|
-
command: string;
|
|
1026
1018
|
name: string;
|
|
1019
|
+
command: string;
|
|
1027
1020
|
args: string[];
|
|
1028
1021
|
env: Record<string, string>;
|
|
1022
|
+
required: boolean;
|
|
1029
1023
|
}, {
|
|
1030
|
-
command: string;
|
|
1031
1024
|
name: string;
|
|
1025
|
+
command: string;
|
|
1032
1026
|
args?: string[] | undefined;
|
|
1033
1027
|
env?: Record<string, string> | undefined;
|
|
1028
|
+
required?: boolean | undefined;
|
|
1034
1029
|
}>;
|
|
1035
1030
|
export type ExtraMcpServer = z.infer<typeof ExtraMcpServer>;
|
|
1036
1031
|
/** Spec passed to a harness adapter's run(). */
|
|
@@ -1054,11 +1049,11 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1054
1049
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1055
1050
|
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1056
1051
|
}, "strip", z.ZodTypeAny, {
|
|
1057
|
-
web: "
|
|
1052
|
+
web: "auto" | "cached" | "live" | "off";
|
|
1058
1053
|
allow: string[];
|
|
1059
1054
|
deny: string[];
|
|
1060
1055
|
}, {
|
|
1061
|
-
web?: "
|
|
1056
|
+
web?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1062
1057
|
allow?: string[] | undefined;
|
|
1063
1058
|
deny?: string[] | undefined;
|
|
1064
1059
|
}>>;
|
|
@@ -1158,21 +1153,21 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1158
1153
|
size_bytes: z.ZodNumber;
|
|
1159
1154
|
path: z.ZodString;
|
|
1160
1155
|
}, "strict", z.ZodTypeAny, {
|
|
1161
|
-
path: string;
|
|
1162
|
-
kind: "file" | "image";
|
|
1163
|
-
name: string;
|
|
1164
1156
|
resource_id: string;
|
|
1157
|
+
kind: "file" | "image";
|
|
1165
1158
|
mime: string;
|
|
1159
|
+
name: string;
|
|
1166
1160
|
sha256: string;
|
|
1167
1161
|
size_bytes: number;
|
|
1168
|
-
}, {
|
|
1169
1162
|
path: string;
|
|
1170
|
-
|
|
1171
|
-
name: string;
|
|
1163
|
+
}, {
|
|
1172
1164
|
resource_id: string;
|
|
1165
|
+
kind: "file" | "image";
|
|
1173
1166
|
mime: string;
|
|
1167
|
+
name: string;
|
|
1174
1168
|
sha256: string;
|
|
1175
1169
|
size_bytes: number;
|
|
1170
|
+
path: string;
|
|
1176
1171
|
}>, "many">>;
|
|
1177
1172
|
/**
|
|
1178
1173
|
* Agent-driven browser wiring. Null = no browser tool this run (the common
|
|
@@ -1201,16 +1196,19 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1201
1196
|
command: z.ZodString;
|
|
1202
1197
|
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1203
1198
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1199
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1204
1200
|
}, "strip", z.ZodTypeAny, {
|
|
1205
|
-
command: string;
|
|
1206
1201
|
name: string;
|
|
1202
|
+
command: string;
|
|
1207
1203
|
args: string[];
|
|
1208
1204
|
env: Record<string, string>;
|
|
1205
|
+
required: boolean;
|
|
1209
1206
|
}, {
|
|
1210
|
-
command: string;
|
|
1211
1207
|
name: string;
|
|
1208
|
+
command: string;
|
|
1212
1209
|
args?: string[] | undefined;
|
|
1213
1210
|
env?: Record<string, string> | undefined;
|
|
1211
|
+
required?: boolean | undefined;
|
|
1214
1212
|
}>, "many">>;
|
|
1215
1213
|
/**
|
|
1216
1214
|
* JSON Schema constraining the harness's FINAL message (a caller-supplied
|
|
@@ -1252,16 +1250,16 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1252
1250
|
reason: z.ZodOptional<z.ZodString>;
|
|
1253
1251
|
}, "strip", z.ZodTypeAny, {
|
|
1254
1252
|
path: string;
|
|
1255
|
-
disposition: "
|
|
1256
|
-
reason?: string | undefined;
|
|
1253
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1257
1254
|
hash?: string | undefined;
|
|
1258
1255
|
bytes?: number | undefined;
|
|
1256
|
+
reason?: string | undefined;
|
|
1259
1257
|
}, {
|
|
1260
1258
|
path: string;
|
|
1261
|
-
disposition: "
|
|
1262
|
-
reason?: string | undefined;
|
|
1259
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1263
1260
|
hash?: string | undefined;
|
|
1264
1261
|
bytes?: number | undefined;
|
|
1262
|
+
reason?: string | undefined;
|
|
1265
1263
|
}>, "many">;
|
|
1266
1264
|
omissions: z.ZodArray<z.ZodObject<{
|
|
1267
1265
|
path: z.ZodString;
|
|
@@ -1271,13 +1269,13 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1271
1269
|
}, "strip", z.ZodTypeAny, {
|
|
1272
1270
|
path: string;
|
|
1273
1271
|
reason: string;
|
|
1274
|
-
replacement: "
|
|
1272
|
+
replacement: "index" | "map" | "none" | "summary";
|
|
1275
1273
|
hash?: string | undefined;
|
|
1276
1274
|
}, {
|
|
1277
1275
|
path: string;
|
|
1278
1276
|
reason: string;
|
|
1277
|
+
replacement?: "index" | "map" | "none" | "summary" | undefined;
|
|
1279
1278
|
hash?: string | undefined;
|
|
1280
|
-
replacement?: "map" | "none" | "summary" | "index" | undefined;
|
|
1281
1279
|
}>, "many">;
|
|
1282
1280
|
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
1283
1281
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1296,15 +1294,15 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1296
1294
|
creatable_roots: string[];
|
|
1297
1295
|
file_manifest: {
|
|
1298
1296
|
path: string;
|
|
1299
|
-
disposition: "
|
|
1300
|
-
reason?: string | undefined;
|
|
1297
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1301
1298
|
hash?: string | undefined;
|
|
1302
1299
|
bytes?: number | undefined;
|
|
1300
|
+
reason?: string | undefined;
|
|
1303
1301
|
}[];
|
|
1304
1302
|
omissions: {
|
|
1305
1303
|
path: string;
|
|
1306
1304
|
reason: string;
|
|
1307
|
-
replacement: "
|
|
1305
|
+
replacement: "index" | "map" | "none" | "summary";
|
|
1308
1306
|
hash?: string | undefined;
|
|
1309
1307
|
}[];
|
|
1310
1308
|
evidence_refs: string[];
|
|
@@ -1321,40 +1319,40 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1321
1319
|
content: string;
|
|
1322
1320
|
}[];
|
|
1323
1321
|
editable_paths: string[];
|
|
1322
|
+
creatable_roots?: string[] | undefined;
|
|
1324
1323
|
file_manifest: {
|
|
1325
1324
|
path: string;
|
|
1326
|
-
disposition: "
|
|
1327
|
-
reason?: string | undefined;
|
|
1325
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1328
1326
|
hash?: string | undefined;
|
|
1329
1327
|
bytes?: number | undefined;
|
|
1328
|
+
reason?: string | undefined;
|
|
1330
1329
|
}[];
|
|
1331
1330
|
omissions: {
|
|
1332
1331
|
path: string;
|
|
1333
1332
|
reason: string;
|
|
1333
|
+
replacement?: "index" | "map" | "none" | "summary" | undefined;
|
|
1334
1334
|
hash?: string | undefined;
|
|
1335
|
-
replacement?: "map" | "none" | "summary" | "index" | undefined;
|
|
1336
1335
|
}[];
|
|
1337
1336
|
evidence_refs: string[];
|
|
1338
|
-
creatable_roots?: string[] | undefined;
|
|
1339
1337
|
}>>>;
|
|
1340
1338
|
extra: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1341
1339
|
}, "strip", z.ZodTypeAny, {
|
|
1342
|
-
max_turns: number | null;
|
|
1343
|
-
env: Record<string, string>;
|
|
1344
1340
|
session_id: string;
|
|
1345
|
-
intent: "
|
|
1341
|
+
intent: "audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify";
|
|
1346
1342
|
prompt: string;
|
|
1343
|
+
instructions?: string | undefined;
|
|
1347
1344
|
cwd: string;
|
|
1348
|
-
access: "
|
|
1349
|
-
external_context_policy: "
|
|
1345
|
+
access: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write";
|
|
1346
|
+
external_context_policy: "auto" | "cached" | "live" | "off";
|
|
1350
1347
|
tool_permission_policy: {
|
|
1351
|
-
web: "
|
|
1348
|
+
web: "auto" | "cached" | "live" | "off";
|
|
1352
1349
|
allow: string[];
|
|
1353
1350
|
deny: string[];
|
|
1354
1351
|
};
|
|
1355
1352
|
model_hint: string | null;
|
|
1356
1353
|
effort_hint: string | null;
|
|
1357
|
-
|
|
1354
|
+
max_turns: number | null;
|
|
1355
|
+
auth_preference: "api_key" | "auto" | "subscription";
|
|
1358
1356
|
credential_profile: {
|
|
1359
1357
|
profile_id: string;
|
|
1360
1358
|
harness_id: string;
|
|
@@ -1366,30 +1364,30 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1366
1364
|
created_at: string | null;
|
|
1367
1365
|
} | null;
|
|
1368
1366
|
resume_session_id: string | null;
|
|
1369
|
-
env_inheritance: "
|
|
1370
|
-
evidence_policy: "
|
|
1367
|
+
env_inheritance: "clean" | "mirror_native";
|
|
1368
|
+
evidence_policy: "allow_vendor_session_artifacts" | "stream_only";
|
|
1371
1369
|
stream_deltas: boolean;
|
|
1370
|
+
env: Record<string, string>;
|
|
1372
1371
|
attachments: {
|
|
1373
|
-
path: string;
|
|
1374
|
-
kind: "file" | "image";
|
|
1375
|
-
name: string;
|
|
1376
1372
|
resource_id: string;
|
|
1373
|
+
kind: "file" | "image";
|
|
1377
1374
|
mime: string;
|
|
1375
|
+
name: string;
|
|
1378
1376
|
sha256: string;
|
|
1379
1377
|
size_bytes: number;
|
|
1378
|
+
path: string;
|
|
1380
1379
|
}[];
|
|
1381
1380
|
browser: {
|
|
1382
1381
|
output_dir: string | null;
|
|
1383
1382
|
headless: boolean;
|
|
1384
1383
|
} | null;
|
|
1385
1384
|
extra_mcp_servers: {
|
|
1386
|
-
command: string;
|
|
1387
1385
|
name: string;
|
|
1386
|
+
command: string;
|
|
1388
1387
|
args: string[];
|
|
1389
1388
|
env: Record<string, string>;
|
|
1389
|
+
required: boolean;
|
|
1390
1390
|
}[];
|
|
1391
|
-
extra: Record<string, unknown>;
|
|
1392
|
-
instructions?: string | undefined;
|
|
1393
1391
|
output_schema?: unknown;
|
|
1394
1392
|
raw_context_packet?: {
|
|
1395
1393
|
schema_version: 1;
|
|
@@ -1407,37 +1405,37 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1407
1405
|
creatable_roots: string[];
|
|
1408
1406
|
file_manifest: {
|
|
1409
1407
|
path: string;
|
|
1410
|
-
disposition: "
|
|
1411
|
-
reason?: string | undefined;
|
|
1408
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1412
1409
|
hash?: string | undefined;
|
|
1413
1410
|
bytes?: number | undefined;
|
|
1411
|
+
reason?: string | undefined;
|
|
1414
1412
|
}[];
|
|
1415
1413
|
omissions: {
|
|
1416
1414
|
path: string;
|
|
1417
1415
|
reason: string;
|
|
1418
|
-
replacement: "
|
|
1416
|
+
replacement: "index" | "map" | "none" | "summary";
|
|
1419
1417
|
hash?: string | undefined;
|
|
1420
1418
|
}[];
|
|
1421
1419
|
evidence_refs: string[];
|
|
1422
1420
|
} | null | undefined;
|
|
1421
|
+
extra: Record<string, unknown>;
|
|
1423
1422
|
}, {
|
|
1424
1423
|
session_id: string;
|
|
1425
|
-
intent: "
|
|
1424
|
+
intent: "audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify";
|
|
1426
1425
|
prompt: string;
|
|
1427
|
-
cwd: string;
|
|
1428
1426
|
instructions?: string | undefined;
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
external_context_policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1427
|
+
cwd: string;
|
|
1428
|
+
access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
1429
|
+
external_context_policy?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1433
1430
|
tool_permission_policy?: {
|
|
1434
|
-
web?: "
|
|
1431
|
+
web?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1435
1432
|
allow?: string[] | undefined;
|
|
1436
1433
|
deny?: string[] | undefined;
|
|
1437
1434
|
} | undefined;
|
|
1438
1435
|
model_hint?: string | null | undefined;
|
|
1439
1436
|
effort_hint?: string | null | undefined;
|
|
1440
|
-
|
|
1437
|
+
max_turns?: number | null | undefined;
|
|
1438
|
+
auth_preference?: "api_key" | "auto" | "subscription" | undefined;
|
|
1441
1439
|
credential_profile?: {
|
|
1442
1440
|
profile_id: string;
|
|
1443
1441
|
harness_id: string;
|
|
@@ -1449,27 +1447,29 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1449
1447
|
created_at?: string | null | undefined;
|
|
1450
1448
|
} | null | undefined;
|
|
1451
1449
|
resume_session_id?: string | null | undefined;
|
|
1452
|
-
env_inheritance?: "
|
|
1453
|
-
evidence_policy?: "
|
|
1450
|
+
env_inheritance?: "clean" | "mirror_native" | undefined;
|
|
1451
|
+
evidence_policy?: "allow_vendor_session_artifacts" | "stream_only" | undefined;
|
|
1454
1452
|
stream_deltas?: boolean | undefined;
|
|
1453
|
+
env?: Record<string, string> | undefined;
|
|
1455
1454
|
attachments?: {
|
|
1456
|
-
path: string;
|
|
1457
|
-
kind: "file" | "image";
|
|
1458
|
-
name: string;
|
|
1459
1455
|
resource_id: string;
|
|
1456
|
+
kind: "file" | "image";
|
|
1460
1457
|
mime: string;
|
|
1458
|
+
name: string;
|
|
1461
1459
|
sha256: string;
|
|
1462
1460
|
size_bytes: number;
|
|
1461
|
+
path: string;
|
|
1463
1462
|
}[] | undefined;
|
|
1464
1463
|
browser?: {
|
|
1465
1464
|
output_dir?: string | null | undefined;
|
|
1466
1465
|
headless?: boolean | undefined;
|
|
1467
1466
|
} | null | undefined;
|
|
1468
1467
|
extra_mcp_servers?: {
|
|
1469
|
-
command: string;
|
|
1470
1468
|
name: string;
|
|
1469
|
+
command: string;
|
|
1471
1470
|
args?: string[] | undefined;
|
|
1472
1471
|
env?: Record<string, string> | undefined;
|
|
1472
|
+
required?: boolean | undefined;
|
|
1473
1473
|
}[] | undefined;
|
|
1474
1474
|
output_schema?: unknown;
|
|
1475
1475
|
raw_context_packet?: {
|
|
@@ -1485,21 +1485,21 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1485
1485
|
content: string;
|
|
1486
1486
|
}[];
|
|
1487
1487
|
editable_paths: string[];
|
|
1488
|
+
creatable_roots?: string[] | undefined;
|
|
1488
1489
|
file_manifest: {
|
|
1489
1490
|
path: string;
|
|
1490
|
-
disposition: "
|
|
1491
|
-
reason?: string | undefined;
|
|
1491
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1492
1492
|
hash?: string | undefined;
|
|
1493
1493
|
bytes?: number | undefined;
|
|
1494
|
+
reason?: string | undefined;
|
|
1494
1495
|
}[];
|
|
1495
1496
|
omissions: {
|
|
1496
1497
|
path: string;
|
|
1497
1498
|
reason: string;
|
|
1499
|
+
replacement?: "index" | "map" | "none" | "summary" | undefined;
|
|
1498
1500
|
hash?: string | undefined;
|
|
1499
|
-
replacement?: "map" | "none" | "summary" | "index" | undefined;
|
|
1500
1501
|
}[];
|
|
1501
1502
|
evidence_refs: string[];
|
|
1502
|
-
creatable_roots?: string[] | undefined;
|
|
1503
1503
|
} | null | undefined;
|
|
1504
1504
|
extra?: Record<string, unknown> | undefined;
|
|
1505
1505
|
}>;
|
|
@@ -1535,22 +1535,22 @@ export declare const InteractionQuestion: z.ZodObject<{
|
|
|
1535
1535
|
}>, "many">>;
|
|
1536
1536
|
multi_select: z.ZodDefault<z.ZodBoolean>;
|
|
1537
1537
|
}, "strip", z.ZodTypeAny, {
|
|
1538
|
+
id: string;
|
|
1539
|
+
question: string;
|
|
1540
|
+
header: string | null;
|
|
1538
1541
|
options: {
|
|
1539
1542
|
label: string;
|
|
1540
1543
|
description: string | null;
|
|
1541
1544
|
}[];
|
|
1542
|
-
id: string;
|
|
1543
|
-
question: string;
|
|
1544
|
-
header: string | null;
|
|
1545
1545
|
multi_select: boolean;
|
|
1546
1546
|
}, {
|
|
1547
1547
|
id: string;
|
|
1548
1548
|
question: string;
|
|
1549
|
+
header?: string | null | undefined;
|
|
1549
1550
|
options?: {
|
|
1550
1551
|
label: string;
|
|
1551
1552
|
description?: string | null | undefined;
|
|
1552
1553
|
}[] | undefined;
|
|
1553
|
-
header?: string | null | undefined;
|
|
1554
1554
|
multi_select?: boolean | undefined;
|
|
1555
1555
|
}>;
|
|
1556
1556
|
export type InteractionQuestion = z.infer<typeof InteractionQuestion>;
|
|
@@ -1578,22 +1578,22 @@ export declare const InteractionRequest: z.ZodObject<{
|
|
|
1578
1578
|
}>, "many">>;
|
|
1579
1579
|
multi_select: z.ZodDefault<z.ZodBoolean>;
|
|
1580
1580
|
}, "strip", z.ZodTypeAny, {
|
|
1581
|
+
id: string;
|
|
1582
|
+
question: string;
|
|
1583
|
+
header: string | null;
|
|
1581
1584
|
options: {
|
|
1582
1585
|
label: string;
|
|
1583
1586
|
description: string | null;
|
|
1584
1587
|
}[];
|
|
1585
|
-
id: string;
|
|
1586
|
-
question: string;
|
|
1587
|
-
header: string | null;
|
|
1588
1588
|
multi_select: boolean;
|
|
1589
1589
|
}, {
|
|
1590
1590
|
id: string;
|
|
1591
1591
|
question: string;
|
|
1592
|
+
header?: string | null | undefined;
|
|
1592
1593
|
options?: {
|
|
1593
1594
|
label: string;
|
|
1594
1595
|
description?: string | null | undefined;
|
|
1595
1596
|
}[] | undefined;
|
|
1596
|
-
header?: string | null | undefined;
|
|
1597
1597
|
multi_select?: boolean | undefined;
|
|
1598
1598
|
}>, "many">>;
|
|
1599
1599
|
/** Native tool that raised the request (e.g. "AskUserQuestion"). */
|
|
@@ -1601,13 +1601,13 @@ export declare const InteractionRequest: z.ZodObject<{
|
|
|
1601
1601
|
}, "strip", z.ZodTypeAny, {
|
|
1602
1602
|
interaction_id: string;
|
|
1603
1603
|
questions: {
|
|
1604
|
+
id: string;
|
|
1605
|
+
question: string;
|
|
1606
|
+
header: string | null;
|
|
1604
1607
|
options: {
|
|
1605
1608
|
label: string;
|
|
1606
1609
|
description: string | null;
|
|
1607
1610
|
}[];
|
|
1608
|
-
id: string;
|
|
1609
|
-
question: string;
|
|
1610
|
-
header: string | null;
|
|
1611
1611
|
multi_select: boolean;
|
|
1612
1612
|
}[];
|
|
1613
1613
|
source_tool: string | null;
|
|
@@ -1616,11 +1616,11 @@ export declare const InteractionRequest: z.ZodObject<{
|
|
|
1616
1616
|
questions?: {
|
|
1617
1617
|
id: string;
|
|
1618
1618
|
question: string;
|
|
1619
|
+
header?: string | null | undefined;
|
|
1619
1620
|
options?: {
|
|
1620
1621
|
label: string;
|
|
1621
1622
|
description?: string | null | undefined;
|
|
1622
1623
|
}[] | undefined;
|
|
1623
|
-
header?: string | null | undefined;
|
|
1624
1624
|
multi_select?: boolean | undefined;
|
|
1625
1625
|
}[] | undefined;
|
|
1626
1626
|
source_tool?: string | null | undefined;
|
|
@@ -1696,25 +1696,25 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1696
1696
|
exit_code: z.ZodOptional<z.ZodNumber>;
|
|
1697
1697
|
web_retrieval: z.ZodOptional<z.ZodEnum<["verified", "dispatched", "failed"]>>;
|
|
1698
1698
|
}, "strip", z.ZodTypeAny, {
|
|
1699
|
-
kind: "web" | "file" | "command" | "mcp" | "search" | "other";
|
|
1700
1699
|
name: string;
|
|
1701
|
-
|
|
1700
|
+
kind: "command" | "file" | "mcp" | "other" | "search" | "web";
|
|
1702
1701
|
use_id?: string | undefined;
|
|
1703
1702
|
target?: string | undefined;
|
|
1703
|
+
status?: "cancelled" | "denied" | "error" | "ok" | undefined;
|
|
1704
1704
|
error_summary?: string | undefined;
|
|
1705
1705
|
content_summary?: string | undefined;
|
|
1706
1706
|
exit_code?: number | undefined;
|
|
1707
|
-
web_retrieval?: "
|
|
1707
|
+
web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
|
|
1708
1708
|
}, {
|
|
1709
1709
|
name: string;
|
|
1710
|
-
|
|
1711
|
-
kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
|
|
1710
|
+
kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
|
|
1712
1711
|
use_id?: string | undefined;
|
|
1713
1712
|
target?: string | undefined;
|
|
1713
|
+
status?: "cancelled" | "denied" | "error" | "ok" | undefined;
|
|
1714
1714
|
error_summary?: string | undefined;
|
|
1715
1715
|
content_summary?: string | undefined;
|
|
1716
1716
|
exit_code?: number | undefined;
|
|
1717
|
-
web_retrieval?: "
|
|
1717
|
+
web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
|
|
1718
1718
|
}>>;
|
|
1719
1719
|
/** Set on `interaction_requested` events. */
|
|
1720
1720
|
interaction: z.ZodOptional<z.ZodObject<{
|
|
@@ -1736,22 +1736,22 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1736
1736
|
}>, "many">>;
|
|
1737
1737
|
multi_select: z.ZodDefault<z.ZodBoolean>;
|
|
1738
1738
|
}, "strip", z.ZodTypeAny, {
|
|
1739
|
+
id: string;
|
|
1740
|
+
question: string;
|
|
1741
|
+
header: string | null;
|
|
1739
1742
|
options: {
|
|
1740
1743
|
label: string;
|
|
1741
1744
|
description: string | null;
|
|
1742
1745
|
}[];
|
|
1743
|
-
id: string;
|
|
1744
|
-
question: string;
|
|
1745
|
-
header: string | null;
|
|
1746
1746
|
multi_select: boolean;
|
|
1747
1747
|
}, {
|
|
1748
1748
|
id: string;
|
|
1749
1749
|
question: string;
|
|
1750
|
+
header?: string | null | undefined;
|
|
1750
1751
|
options?: {
|
|
1751
1752
|
label: string;
|
|
1752
1753
|
description?: string | null | undefined;
|
|
1753
1754
|
}[] | undefined;
|
|
1754
|
-
header?: string | null | undefined;
|
|
1755
1755
|
multi_select?: boolean | undefined;
|
|
1756
1756
|
}>, "many">>;
|
|
1757
1757
|
/** Native tool that raised the request (e.g. "AskUserQuestion"). */
|
|
@@ -1759,13 +1759,13 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1759
1759
|
}, "strip", z.ZodTypeAny, {
|
|
1760
1760
|
interaction_id: string;
|
|
1761
1761
|
questions: {
|
|
1762
|
+
id: string;
|
|
1763
|
+
question: string;
|
|
1764
|
+
header: string | null;
|
|
1762
1765
|
options: {
|
|
1763
1766
|
label: string;
|
|
1764
1767
|
description: string | null;
|
|
1765
1768
|
}[];
|
|
1766
|
-
id: string;
|
|
1767
|
-
question: string;
|
|
1768
|
-
header: string | null;
|
|
1769
1769
|
multi_select: boolean;
|
|
1770
1770
|
}[];
|
|
1771
1771
|
source_tool: string | null;
|
|
@@ -1774,11 +1774,11 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1774
1774
|
questions?: {
|
|
1775
1775
|
id: string;
|
|
1776
1776
|
question: string;
|
|
1777
|
+
header?: string | null | undefined;
|
|
1777
1778
|
options?: {
|
|
1778
1779
|
label: string;
|
|
1779
1780
|
description?: string | null | undefined;
|
|
1780
1781
|
}[] | undefined;
|
|
1781
|
-
header?: string | null | undefined;
|
|
1782
1782
|
multi_select?: boolean | undefined;
|
|
1783
1783
|
}[] | undefined;
|
|
1784
1784
|
source_tool?: string | null | undefined;
|
|
@@ -1801,8 +1801,8 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1801
1801
|
}>, "many">;
|
|
1802
1802
|
}, "strip", z.ZodTypeAny, {
|
|
1803
1803
|
schema_version: 1;
|
|
1804
|
-
base_tree_sha: string;
|
|
1805
1804
|
context_packet_hash: string;
|
|
1805
|
+
base_tree_sha: string;
|
|
1806
1806
|
patch: string;
|
|
1807
1807
|
patch_hash: string;
|
|
1808
1808
|
touched_paths: {
|
|
@@ -1811,8 +1811,8 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1811
1811
|
}[];
|
|
1812
1812
|
}, {
|
|
1813
1813
|
schema_version: 1;
|
|
1814
|
-
base_tree_sha: string;
|
|
1815
1814
|
context_packet_hash: string;
|
|
1815
|
+
base_tree_sha: string;
|
|
1816
1816
|
patch: string;
|
|
1817
1817
|
patch_hash: string;
|
|
1818
1818
|
touched_paths: {
|
|
@@ -1829,17 +1829,17 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1829
1829
|
/** True when cost_usd is derived from token pricing (not natively reported). */
|
|
1830
1830
|
estimated: z.ZodOptional<z.ZodBoolean>;
|
|
1831
1831
|
}, "strip", z.ZodTypeAny, {
|
|
1832
|
-
estimated?: boolean | undefined;
|
|
1833
1832
|
input_tokens?: number | undefined;
|
|
1834
1833
|
output_tokens?: number | undefined;
|
|
1835
1834
|
cached_input_tokens?: number | undefined;
|
|
1836
1835
|
cost_usd?: number | undefined;
|
|
1837
|
-
}, {
|
|
1838
1836
|
estimated?: boolean | undefined;
|
|
1837
|
+
}, {
|
|
1839
1838
|
input_tokens?: number | undefined;
|
|
1840
1839
|
output_tokens?: number | undefined;
|
|
1841
1840
|
cached_input_tokens?: number | undefined;
|
|
1842
1841
|
cost_usd?: number | undefined;
|
|
1842
|
+
estimated?: boolean | undefined;
|
|
1843
1843
|
}>>;
|
|
1844
1844
|
observed_model: z.ZodOptional<z.ZodString>;
|
|
1845
1845
|
credential_route: z.ZodOptional<z.ZodEnum<["vendor_native", "managed_api_key", "local"]>>;
|
|
@@ -1876,7 +1876,7 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1876
1876
|
cooldown_until?: string | null | undefined;
|
|
1877
1877
|
}>, "many">;
|
|
1878
1878
|
}, "strict", z.ZodTypeAny, {
|
|
1879
|
-
source: "
|
|
1879
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1880
1880
|
plan_label: string | null;
|
|
1881
1881
|
subject_id: string | null;
|
|
1882
1882
|
constraints: {
|
|
@@ -1888,7 +1888,9 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1888
1888
|
cooldown_until: string | null;
|
|
1889
1889
|
}[];
|
|
1890
1890
|
}, {
|
|
1891
|
-
source: "
|
|
1891
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1892
|
+
plan_label?: string | null | undefined;
|
|
1893
|
+
subject_id?: string | null | undefined;
|
|
1892
1894
|
constraints: {
|
|
1893
1895
|
id: string;
|
|
1894
1896
|
label: string;
|
|
@@ -1897,8 +1899,6 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1897
1899
|
resets_at: string | null;
|
|
1898
1900
|
cooldown_until?: string | null | undefined;
|
|
1899
1901
|
}[];
|
|
1900
|
-
plan_label?: string | null | undefined;
|
|
1901
|
-
subject_id?: string | null | undefined;
|
|
1902
1902
|
}>>;
|
|
1903
1903
|
/**
|
|
1904
1904
|
* Typed live plan/todo progress: adapters map their native plan tools
|
|
@@ -1913,25 +1913,25 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1913
1913
|
title: z.ZodString;
|
|
1914
1914
|
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
1915
1915
|
}, "strip", z.ZodTypeAny, {
|
|
1916
|
-
status: "pending" | "completed" | "in_progress";
|
|
1917
1916
|
id: string;
|
|
1918
1917
|
title: string;
|
|
1918
|
+
status: "completed" | "in_progress" | "pending";
|
|
1919
1919
|
}, {
|
|
1920
|
-
status: "pending" | "completed" | "in_progress";
|
|
1921
1920
|
id: string;
|
|
1922
1921
|
title: string;
|
|
1922
|
+
status: "completed" | "in_progress" | "pending";
|
|
1923
1923
|
}>, "many">>;
|
|
1924
1924
|
}, "strip", z.ZodTypeAny, {
|
|
1925
1925
|
items: {
|
|
1926
|
-
status: "pending" | "completed" | "in_progress";
|
|
1927
1926
|
id: string;
|
|
1928
1927
|
title: string;
|
|
1928
|
+
status: "completed" | "in_progress" | "pending";
|
|
1929
1929
|
}[];
|
|
1930
1930
|
}, {
|
|
1931
1931
|
items?: {
|
|
1932
|
-
status: "pending" | "completed" | "in_progress";
|
|
1933
1932
|
id: string;
|
|
1934
1933
|
title: string;
|
|
1934
|
+
status: "completed" | "in_progress" | "pending";
|
|
1935
1935
|
}[] | undefined;
|
|
1936
1936
|
}>>;
|
|
1937
1937
|
/**
|
|
@@ -1963,19 +1963,19 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1963
1963
|
attempt: z.ZodOptional<z.ZodNumber>;
|
|
1964
1964
|
max_retries: z.ZodOptional<z.ZodNumber>;
|
|
1965
1965
|
retry_delay_ms: z.ZodOptional<z.ZodNumber>;
|
|
1966
|
-
error_category: z.ZodOptional<z.ZodEnum<["authentication_failed", "oauth_org_not_allowed", "billing_error", "rate_limit", "overloaded", "invalid_request", "model_not_found", "server_error", "max_output_tokens", "unknown"]>>;
|
|
1966
|
+
error_category: z.ZodOptional<z.ZodEnum<["authentication_failed", "oauth_org_not_allowed", "billing_error", "rate_limit", "overloaded", "invalid_request", "model_not_found", "server_error", "max_output_tokens", "timeout", "unknown"]>>;
|
|
1967
1967
|
}, "strip", z.ZodTypeAny, {
|
|
1968
1968
|
kind: "api_retry";
|
|
1969
|
-
retry_delay_ms?: number | undefined;
|
|
1970
1969
|
attempt?: number | undefined;
|
|
1971
1970
|
max_retries?: number | undefined;
|
|
1972
|
-
|
|
1971
|
+
retry_delay_ms?: number | undefined;
|
|
1972
|
+
error_category?: "authentication_failed" | "billing_error" | "invalid_request" | "max_output_tokens" | "model_not_found" | "oauth_org_not_allowed" | "overloaded" | "rate_limit" | "server_error" | "timeout" | "unknown" | undefined;
|
|
1973
1973
|
}, {
|
|
1974
1974
|
kind: "api_retry";
|
|
1975
|
-
retry_delay_ms?: number | undefined;
|
|
1976
1975
|
attempt?: number | undefined;
|
|
1977
1976
|
max_retries?: number | undefined;
|
|
1978
|
-
|
|
1977
|
+
retry_delay_ms?: number | undefined;
|
|
1978
|
+
error_category?: "authentication_failed" | "billing_error" | "invalid_request" | "max_output_tokens" | "model_not_found" | "oauth_org_not_allowed" | "overloaded" | "rate_limit" | "server_error" | "timeout" | "unknown" | undefined;
|
|
1979
1979
|
}>>;
|
|
1980
1980
|
/**
|
|
1981
1981
|
* Typed transient-failure signal. Adapters set this from native CLI/API error
|
|
@@ -1986,10 +1986,10 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1986
1986
|
kind: z.ZodDefault<z.ZodEnum<["network", "stream_disconnect", "service_unavailable", "timeout", "unknown"]>>;
|
|
1987
1987
|
retry_delay_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1988
1988
|
}, "strip", z.ZodTypeAny, {
|
|
1989
|
-
kind: "
|
|
1989
|
+
kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
|
|
1990
1990
|
retry_delay_ms: number | null;
|
|
1991
1991
|
}, {
|
|
1992
|
-
kind?: "
|
|
1992
|
+
kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
|
|
1993
1993
|
retry_delay_ms?: number | null | undefined;
|
|
1994
1994
|
}>>;
|
|
1995
1995
|
/**
|
|
@@ -2009,14 +2009,14 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2009
2009
|
trigger: z.ZodDefault<z.ZodNullable<z.ZodEnum<["manual", "auto"]>>>;
|
|
2010
2010
|
pre_tokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2011
2011
|
}, "strip", z.ZodTypeAny, {
|
|
2012
|
-
kind: "
|
|
2013
|
-
cause: "
|
|
2012
|
+
kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
|
|
2013
|
+
cause: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded";
|
|
2014
2014
|
native_code: string | null;
|
|
2015
2015
|
trigger: "auto" | "manual" | null;
|
|
2016
2016
|
pre_tokens: number | null;
|
|
2017
2017
|
}, {
|
|
2018
|
-
kind: "
|
|
2019
|
-
cause?: "
|
|
2018
|
+
kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
|
|
2019
|
+
cause?: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded" | undefined;
|
|
2020
2020
|
native_code?: string | null | undefined;
|
|
2021
2021
|
trigger?: "auto" | "manual" | null | undefined;
|
|
2022
2022
|
pre_tokens?: number | null | undefined;
|
|
@@ -2025,64 +2025,40 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2025
2025
|
aborted: z.ZodOptional<z.ZodBoolean>;
|
|
2026
2026
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2027
2027
|
}, "strip", z.ZodTypeAny, {
|
|
2028
|
-
type: "
|
|
2028
|
+
type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
|
|
2029
2029
|
session_id: string;
|
|
2030
2030
|
ts: string;
|
|
2031
|
-
aborted?: boolean | undefined;
|
|
2032
|
-
status?: {
|
|
2033
|
-
kind: "api_retry";
|
|
2034
|
-
retry_delay_ms?: number | undefined;
|
|
2035
|
-
attempt?: number | undefined;
|
|
2036
|
-
max_retries?: number | undefined;
|
|
2037
|
-
error_category?: "unknown" | "rate_limit" | "authentication_failed" | "oauth_org_not_allowed" | "billing_error" | "overloaded" | "invalid_request" | "model_not_found" | "server_error" | "max_output_tokens" | undefined;
|
|
2038
|
-
} | undefined;
|
|
2039
|
-
error?: string | undefined;
|
|
2040
|
-
credential_route?: "local" | "vendor_native" | "managed_api_key" | undefined;
|
|
2041
|
-
usage?: {
|
|
2042
|
-
estimated?: boolean | undefined;
|
|
2043
|
-
input_tokens?: number | undefined;
|
|
2044
|
-
output_tokens?: number | undefined;
|
|
2045
|
-
cached_input_tokens?: number | undefined;
|
|
2046
|
-
cost_usd?: number | undefined;
|
|
2047
|
-
} | undefined;
|
|
2048
|
-
context?: {
|
|
2049
|
-
kind: "compaction_started" | "compaction_completed" | "capacity_exhausted";
|
|
2050
|
-
cause: "unknown" | "prompt_too_long" | "repeated_refill" | "blocking_limit" | "window_exceeded";
|
|
2051
|
-
native_code: string | null;
|
|
2052
|
-
trigger: "auto" | "manual" | null;
|
|
2053
|
-
pre_tokens: number | null;
|
|
2054
|
-
} | undefined;
|
|
2055
2031
|
text?: string | undefined;
|
|
2056
2032
|
final?: boolean | undefined;
|
|
2057
2033
|
tool?: {
|
|
2058
|
-
kind: "web" | "file" | "command" | "mcp" | "search" | "other";
|
|
2059
2034
|
name: string;
|
|
2060
|
-
|
|
2035
|
+
kind: "command" | "file" | "mcp" | "other" | "search" | "web";
|
|
2061
2036
|
use_id?: string | undefined;
|
|
2062
2037
|
target?: string | undefined;
|
|
2038
|
+
status?: "cancelled" | "denied" | "error" | "ok" | undefined;
|
|
2063
2039
|
error_summary?: string | undefined;
|
|
2064
2040
|
content_summary?: string | undefined;
|
|
2065
2041
|
exit_code?: number | undefined;
|
|
2066
|
-
web_retrieval?: "
|
|
2042
|
+
web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
|
|
2067
2043
|
} | undefined;
|
|
2068
2044
|
interaction?: {
|
|
2069
2045
|
interaction_id: string;
|
|
2070
2046
|
questions: {
|
|
2047
|
+
id: string;
|
|
2048
|
+
question: string;
|
|
2049
|
+
header: string | null;
|
|
2071
2050
|
options: {
|
|
2072
2051
|
label: string;
|
|
2073
2052
|
description: string | null;
|
|
2074
2053
|
}[];
|
|
2075
|
-
id: string;
|
|
2076
|
-
question: string;
|
|
2077
|
-
header: string | null;
|
|
2078
2054
|
multi_select: boolean;
|
|
2079
2055
|
}[];
|
|
2080
2056
|
source_tool: string | null;
|
|
2081
2057
|
} | undefined;
|
|
2082
2058
|
patch_envelope?: {
|
|
2083
2059
|
schema_version: 1;
|
|
2084
|
-
base_tree_sha: string;
|
|
2085
2060
|
context_packet_hash: string;
|
|
2061
|
+
base_tree_sha: string;
|
|
2086
2062
|
patch: string;
|
|
2087
2063
|
patch_hash: string;
|
|
2088
2064
|
touched_paths: {
|
|
@@ -2090,12 +2066,20 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2090
2066
|
expected_blob_oid: string | null;
|
|
2091
2067
|
}[];
|
|
2092
2068
|
} | undefined;
|
|
2093
|
-
refusal_code?: "
|
|
2069
|
+
refusal_code?: "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_sensitive_content" | "raw_patch_stale_preimage" | "raw_patch_truncated" | undefined;
|
|
2070
|
+
usage?: {
|
|
2071
|
+
input_tokens?: number | undefined;
|
|
2072
|
+
output_tokens?: number | undefined;
|
|
2073
|
+
cached_input_tokens?: number | undefined;
|
|
2074
|
+
cost_usd?: number | undefined;
|
|
2075
|
+
estimated?: boolean | undefined;
|
|
2076
|
+
} | undefined;
|
|
2094
2077
|
observed_model?: string | undefined;
|
|
2095
|
-
|
|
2078
|
+
credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
|
|
2079
|
+
credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
|
|
2096
2080
|
credential_profile_id?: string | undefined;
|
|
2097
2081
|
quota?: {
|
|
2098
|
-
source: "
|
|
2082
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
2099
2083
|
plan_label: string | null;
|
|
2100
2084
|
subject_id: string | null;
|
|
2101
2085
|
constraints: {
|
|
@@ -2109,79 +2093,71 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2109
2093
|
} | undefined;
|
|
2110
2094
|
plan_progress?: {
|
|
2111
2095
|
items: {
|
|
2112
|
-
status: "pending" | "completed" | "in_progress";
|
|
2113
2096
|
id: string;
|
|
2114
2097
|
title: string;
|
|
2098
|
+
status: "completed" | "in_progress" | "pending";
|
|
2115
2099
|
}[];
|
|
2116
2100
|
} | undefined;
|
|
2117
2101
|
rate_limit?: {
|
|
2118
2102
|
resets_at: string | null;
|
|
2119
2103
|
retry_delay_ms: number | null;
|
|
2120
2104
|
} | undefined;
|
|
2121
|
-
transient?: {
|
|
2122
|
-
kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
|
|
2123
|
-
retry_delay_ms: number | null;
|
|
2124
|
-
} | undefined;
|
|
2125
|
-
payload?: Record<string, unknown> | undefined;
|
|
2126
|
-
}, {
|
|
2127
|
-
type: "message" | "status" | "completed" | "error" | "started" | "thinking" | "tool_call" | "tool_result" | "interaction_requested" | "file_change" | "patch_produced" | "usage" | "context";
|
|
2128
|
-
session_id: string;
|
|
2129
|
-
ts: string;
|
|
2130
|
-
aborted?: boolean | undefined;
|
|
2131
2105
|
status?: {
|
|
2132
2106
|
kind: "api_retry";
|
|
2133
|
-
retry_delay_ms?: number | undefined;
|
|
2134
2107
|
attempt?: number | undefined;
|
|
2135
2108
|
max_retries?: number | undefined;
|
|
2136
|
-
|
|
2109
|
+
retry_delay_ms?: number | undefined;
|
|
2110
|
+
error_category?: "authentication_failed" | "billing_error" | "invalid_request" | "max_output_tokens" | "model_not_found" | "oauth_org_not_allowed" | "overloaded" | "rate_limit" | "server_error" | "timeout" | "unknown" | undefined;
|
|
2137
2111
|
} | undefined;
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
estimated?: boolean | undefined;
|
|
2142
|
-
input_tokens?: number | undefined;
|
|
2143
|
-
output_tokens?: number | undefined;
|
|
2144
|
-
cached_input_tokens?: number | undefined;
|
|
2145
|
-
cost_usd?: number | undefined;
|
|
2112
|
+
transient?: {
|
|
2113
|
+
kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
|
|
2114
|
+
retry_delay_ms: number | null;
|
|
2146
2115
|
} | undefined;
|
|
2147
2116
|
context?: {
|
|
2148
|
-
kind: "
|
|
2149
|
-
cause
|
|
2150
|
-
native_code
|
|
2151
|
-
trigger
|
|
2152
|
-
pre_tokens
|
|
2117
|
+
kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
|
|
2118
|
+
cause: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded";
|
|
2119
|
+
native_code: string | null;
|
|
2120
|
+
trigger: "auto" | "manual" | null;
|
|
2121
|
+
pre_tokens: number | null;
|
|
2153
2122
|
} | undefined;
|
|
2123
|
+
error?: string | undefined;
|
|
2124
|
+
aborted?: boolean | undefined;
|
|
2125
|
+
payload?: Record<string, unknown> | undefined;
|
|
2126
|
+
}, {
|
|
2127
|
+
type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
|
|
2128
|
+
session_id: string;
|
|
2129
|
+
ts: string;
|
|
2154
2130
|
text?: string | undefined;
|
|
2155
2131
|
final?: boolean | undefined;
|
|
2156
2132
|
tool?: {
|
|
2157
2133
|
name: string;
|
|
2158
|
-
|
|
2159
|
-
kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
|
|
2134
|
+
kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
|
|
2160
2135
|
use_id?: string | undefined;
|
|
2161
2136
|
target?: string | undefined;
|
|
2137
|
+
status?: "cancelled" | "denied" | "error" | "ok" | undefined;
|
|
2162
2138
|
error_summary?: string | undefined;
|
|
2163
2139
|
content_summary?: string | undefined;
|
|
2164
2140
|
exit_code?: number | undefined;
|
|
2165
|
-
web_retrieval?: "
|
|
2141
|
+
web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
|
|
2166
2142
|
} | undefined;
|
|
2167
2143
|
interaction?: {
|
|
2168
2144
|
interaction_id: string;
|
|
2169
2145
|
questions?: {
|
|
2170
2146
|
id: string;
|
|
2171
2147
|
question: string;
|
|
2148
|
+
header?: string | null | undefined;
|
|
2172
2149
|
options?: {
|
|
2173
2150
|
label: string;
|
|
2174
2151
|
description?: string | null | undefined;
|
|
2175
2152
|
}[] | undefined;
|
|
2176
|
-
header?: string | null | undefined;
|
|
2177
2153
|
multi_select?: boolean | undefined;
|
|
2178
2154
|
}[] | undefined;
|
|
2179
2155
|
source_tool?: string | null | undefined;
|
|
2180
2156
|
} | undefined;
|
|
2181
2157
|
patch_envelope?: {
|
|
2182
2158
|
schema_version: 1;
|
|
2183
|
-
base_tree_sha: string;
|
|
2184
2159
|
context_packet_hash: string;
|
|
2160
|
+
base_tree_sha: string;
|
|
2185
2161
|
patch: string;
|
|
2186
2162
|
patch_hash: string;
|
|
2187
2163
|
touched_paths: {
|
|
@@ -2189,12 +2165,22 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2189
2165
|
expected_blob_oid: string | null;
|
|
2190
2166
|
}[];
|
|
2191
2167
|
} | undefined;
|
|
2192
|
-
refusal_code?: "
|
|
2168
|
+
refusal_code?: "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_sensitive_content" | "raw_patch_stale_preimage" | "raw_patch_truncated" | undefined;
|
|
2169
|
+
usage?: {
|
|
2170
|
+
input_tokens?: number | undefined;
|
|
2171
|
+
output_tokens?: number | undefined;
|
|
2172
|
+
cached_input_tokens?: number | undefined;
|
|
2173
|
+
cost_usd?: number | undefined;
|
|
2174
|
+
estimated?: boolean | undefined;
|
|
2175
|
+
} | undefined;
|
|
2193
2176
|
observed_model?: string | undefined;
|
|
2194
|
-
|
|
2177
|
+
credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
|
|
2178
|
+
credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
|
|
2195
2179
|
credential_profile_id?: string | undefined;
|
|
2196
2180
|
quota?: {
|
|
2197
|
-
source: "
|
|
2181
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
2182
|
+
plan_label?: string | null | undefined;
|
|
2183
|
+
subject_id?: string | null | undefined;
|
|
2198
2184
|
constraints: {
|
|
2199
2185
|
id: string;
|
|
2200
2186
|
label: string;
|
|
@@ -2203,24 +2189,38 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2203
2189
|
resets_at: string | null;
|
|
2204
2190
|
cooldown_until?: string | null | undefined;
|
|
2205
2191
|
}[];
|
|
2206
|
-
plan_label?: string | null | undefined;
|
|
2207
|
-
subject_id?: string | null | undefined;
|
|
2208
2192
|
} | undefined;
|
|
2209
2193
|
plan_progress?: {
|
|
2210
2194
|
items?: {
|
|
2211
|
-
status: "pending" | "completed" | "in_progress";
|
|
2212
2195
|
id: string;
|
|
2213
2196
|
title: string;
|
|
2197
|
+
status: "completed" | "in_progress" | "pending";
|
|
2214
2198
|
}[] | undefined;
|
|
2215
2199
|
} | undefined;
|
|
2216
2200
|
rate_limit?: {
|
|
2217
2201
|
resets_at?: string | null | undefined;
|
|
2218
2202
|
retry_delay_ms?: number | null | undefined;
|
|
2219
2203
|
} | undefined;
|
|
2204
|
+
status?: {
|
|
2205
|
+
kind: "api_retry";
|
|
2206
|
+
attempt?: number | undefined;
|
|
2207
|
+
max_retries?: number | undefined;
|
|
2208
|
+
retry_delay_ms?: number | undefined;
|
|
2209
|
+
error_category?: "authentication_failed" | "billing_error" | "invalid_request" | "max_output_tokens" | "model_not_found" | "oauth_org_not_allowed" | "overloaded" | "rate_limit" | "server_error" | "timeout" | "unknown" | undefined;
|
|
2210
|
+
} | undefined;
|
|
2220
2211
|
transient?: {
|
|
2221
|
-
kind?: "
|
|
2212
|
+
kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
|
|
2222
2213
|
retry_delay_ms?: number | null | undefined;
|
|
2223
2214
|
} | undefined;
|
|
2215
|
+
context?: {
|
|
2216
|
+
kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
|
|
2217
|
+
cause?: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded" | undefined;
|
|
2218
|
+
native_code?: string | null | undefined;
|
|
2219
|
+
trigger?: "auto" | "manual" | null | undefined;
|
|
2220
|
+
pre_tokens?: number | null | undefined;
|
|
2221
|
+
} | undefined;
|
|
2222
|
+
error?: string | undefined;
|
|
2223
|
+
aborted?: boolean | undefined;
|
|
2224
2224
|
payload?: Record<string, unknown> | undefined;
|
|
2225
2225
|
}>;
|
|
2226
2226
|
export type HarnessEvent = z.infer<typeof HarnessEvent>;
|