@claudexor/schema 3.1.2 → 3.3.7-rc.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 +157 -129
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +3 -1
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +472 -273
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +25 -1
- 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 +59 -59
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +1 -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 +644 -629
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +5 -1
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +2229 -1569
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +46 -2
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-failure.d.ts +57 -0
- package/dist/control-run-failure.d.ts.map +1 -0
- package/dist/control-run-failure.js +89 -0
- package/dist/control-run-failure.js.map +1 -0
- package/dist/control-run-retry.d.ts +16 -16
- package/dist/control-run-retry.d.ts.map +1 -1
- package/dist/control-run-retry.js +1 -1
- package/dist/control-run-retry.js.map +1 -1
- package/dist/control-run-scope.d.ts +19 -2
- package/dist/control-run-scope.d.ts.map +1 -1
- package/dist/control-run-scope.js +22 -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 +1551 -2385
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +29 -107
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +3206 -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 +170 -107
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +24 -7
- package/dist/credential-profile.js.map +1 -1
- package/dist/decision.d.ts +121 -121
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +2 -1
- package/dist/decision.js.map +1 -1
- package/dist/deep-scan.d.ts +5 -5
- package/dist/deep-scan.d.ts.map +1 -1
- package/dist/deep-scan.js +1 -1
- package/dist/deep-scan.js.map +1 -1
- package/dist/delegation.d.ts +13 -13
- package/dist/delegation.d.ts.map +1 -1
- package/dist/delegation.js +1 -1
- package/dist/delegation.js.map +1 -1
- package/dist/delivery.d.ts +32 -32
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +1 -1
- package/dist/delivery.js.map +1 -1
- package/dist/effort.d.ts +1 -1
- package/dist/effort.d.ts.map +1 -1
- package/dist/effort.js +1 -1
- package/dist/effort.js.map +1 -1
- package/dist/events.d.ts +55 -35
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +20 -1
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +7 -7
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +1 -1
- package/dist/gate.js.map +1 -1
- package/dist/git-capability.d.ts +23 -0
- package/dist/git-capability.d.ts.map +1 -0
- package/dist/git-capability.js +15 -0
- package/dist/git-capability.js.map +1 -0
- package/dist/harness-confinement.d.ts +64 -0
- package/dist/harness-confinement.d.ts.map +1 -0
- package/dist/harness-confinement.js +64 -0
- package/dist/harness-confinement.js.map +1 -0
- package/dist/harness.d.ts +428 -408
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +15 -26
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +10 -0
- package/dist/interaction.d.ts.map +1 -0
- package/dist/interaction.js +2 -0
- package/dist/interaction.js.map +1 -0
- package/dist/operation.d.ts +113 -113
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +1 -1
- package/dist/operation.js.map +1 -1
- package/dist/output-schema-dialect.d.ts +1 -1
- package/dist/output-schema-dialect.d.ts.map +1 -1
- package/dist/output-schema-dialect.js +1 -1
- package/dist/output-schema-dialect.js.map +1 -1
- package/dist/output-schema.d.ts +2 -2
- package/dist/output-schema.js +2 -2
- package/dist/plan.d.ts +29 -29
- package/dist/plan.d.ts.map +1 -1
- package/dist/plan.js +2 -2
- package/dist/plan.js.map +1 -1
- package/dist/primitives.d.ts +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 +51 -51
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +6 -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 +242 -242
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +1 -1
- package/dist/readiness.js.map +1 -1
- package/dist/recovery.d.ts +106 -106
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +1 -1
- package/dist/recovery.js.map +1 -1
- package/dist/request-requirements.d.ts +9 -9
- package/dist/request-requirements.d.ts.map +1 -1
- package/dist/request-requirements.js +1 -1
- package/dist/request-requirements.js.map +1 -1
- package/dist/review.d.ts +29 -29
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +1 -1
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +11 -11
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +1 -1
- package/dist/route.js.map +1 -1
- package/dist/run-applicability.d.ts +764 -0
- package/dist/run-applicability.d.ts.map +1 -0
- package/dist/run-applicability.js +56 -0
- package/dist/run-applicability.js.map +1 -0
- package/dist/run-facts.d.ts +628 -0
- package/dist/run-facts.d.ts.map +1 -0
- package/dist/run-facts.js +429 -0
- package/dist/run-facts.js.map +1 -0
- package/dist/run-strategy.d.ts +40 -0
- package/dist/run-strategy.d.ts.map +1 -1
- package/dist/run-strategy.js +68 -1
- package/dist/run-strategy.js.map +1 -1
- package/dist/setup-device-code-envelope.d.ts +67 -0
- package/dist/setup-device-code-envelope.d.ts.map +1 -0
- package/dist/setup-device-code-envelope.js +25 -0
- package/dist/setup-device-code-envelope.js.map +1 -0
- package/dist/setup-login-protocol.d.ts +6 -0
- package/dist/setup-login-protocol.d.ts.map +1 -0
- package/dist/setup-login-protocol.js +12 -0
- package/dist/setup-login-protocol.js.map +1 -0
- package/dist/setup-transport.d.ts +12 -0
- package/dist/setup-transport.d.ts.map +1 -0
- package/dist/setup-transport.js +22 -0
- package/dist/setup-transport.js.map +1 -0
- package/dist/setup.d.ts +12572 -3749
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +34 -38
- package/dist/setup.js.map +1 -1
- package/dist/status-projection.d.ts +7 -5
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +11 -6
- package/dist/status-projection.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +10 -1
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +303 -303
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +1 -1
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +1157 -633
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +7 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +133 -84
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +21 -2
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +7 -7
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +1 -1
- package/dist/tool-ref.js.map +1 -1
- package/dist/work-report.d.ts +28 -28
- package/dist/work-report.d.ts.map +1 -1
- package/dist/work-report.js +3 -3
- package/dist/work-report.js.map +1 -1
- package/dist/workproduct.d.ts +6 -9
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js +1 -2
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +13 -13
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +1 -1
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +41 -0
- package/generated/ControlCredentialProfileCreateResponse.schema.json +10 -1
- package/generated/ControlCredentialProfileUpdateResponse.schema.json +10 -1
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +1343 -0
- package/generated/ControlCredentialProfilesResponse.schema.json +20 -3
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1322 -0
- package/generated/ControlDirectoryEntry.schema.json +36 -0
- package/generated/ControlDirectoryListing.schema.json +77 -0
- package/generated/ControlHarnessListResponse.schema.json +41 -1
- package/generated/ControlQuotaResponse.schema.json +2 -1
- package/generated/ControlRunAgainDraft.schema.json +12 -2
- package/generated/ControlRunApplicabilityResponse.schema.json +217 -0
- package/generated/ControlRunDetail.schema.json +494 -69
- package/generated/ControlRunListResponse.schema.json +30 -4
- package/generated/ControlRunStartRequest.schema.json +12 -2
- package/generated/ControlRunSummary.schema.json +30 -4
- 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/ControlThreadCreateRequest.schema.json +5 -0
- package/generated/ControlThreadDetail.schema.json +31 -1
- package/generated/ControlThreadTurnRequest.schema.json +5 -24
- package/generated/CredentialProfileStatus.schema.json +10 -1
- package/generated/DecisionRecord.schema.json +2 -1
- package/generated/GitCapability.schema.json +46 -0
- package/generated/GlobalConfig.schema.json +13 -4
- package/generated/HarnessEvent.schema.json +2 -1
- package/generated/HarnessManifest.schema.json +1 -1
- package/generated/HarnessStatusDto.schema.json +1 -1
- package/generated/McpRunHandleResult.schema.json +182 -1
- package/generated/McpRunToolResult.schema.json +182 -1
- package/generated/OutputReadyPayload.schema.json +44 -0
- package/generated/RunFacts.schema.json +569 -0
- package/generated/RunFailure.schema.json +19 -2
- package/generated/RunTelemetry.schema.json +492 -2
- package/generated/ThreadTurn.schema.json +29 -0
- package/generated/WorkProduct.schema.json +0 -4
- 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,50 +233,40 @@ 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>;
|
|
262
|
-
export declare const ContainmentKind: z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>;
|
|
263
|
-
export type ContainmentKind = z.infer<typeof ContainmentKind>;
|
|
264
|
-
export declare const IsolationCapabilities: z.ZodDefault<z.ZodObject<{
|
|
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
|
-
}, "strip", z.ZodTypeAny, {
|
|
267
|
-
supported_containment: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[];
|
|
268
|
-
}, {
|
|
269
|
-
supported_containment?: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[] | undefined;
|
|
270
|
-
}>>;
|
|
271
|
-
export type IsolationCapabilities = z.infer<typeof IsolationCapabilities>;
|
|
272
262
|
export declare const ReadonlyMechanism: z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>;
|
|
273
263
|
export type ReadonlyMechanism = z.infer<typeof ReadonlyMechanism>;
|
|
274
264
|
export declare const AccessControlCapabilities: z.ZodDefault<z.ZodObject<{
|
|
275
265
|
readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
|
|
276
266
|
}, "strip", z.ZodTypeAny, {
|
|
277
|
-
readonly_mechanism: "
|
|
267
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
278
268
|
}, {
|
|
279
|
-
readonly_mechanism?: "
|
|
269
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
280
270
|
}>>;
|
|
281
271
|
export type AccessControlCapabilities = z.infer<typeof AccessControlCapabilities>;
|
|
282
272
|
/**
|
|
@@ -296,44 +286,44 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
|
|
|
296
286
|
kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
|
|
297
287
|
relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
|
|
298
288
|
}, "strip", z.ZodTypeAny, {
|
|
299
|
-
source: "
|
|
300
|
-
kind: "
|
|
301
|
-
relocatable_by: ("
|
|
289
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
290
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
291
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
302
292
|
}, {
|
|
303
|
-
source: "
|
|
304
|
-
kind: "
|
|
305
|
-
relocatable_by?: ("
|
|
293
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
294
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
295
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
306
296
|
}>, "many">>;
|
|
307
297
|
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
supported_sources: ("
|
|
309
|
-
preferred_source: "
|
|
298
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
299
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
310
300
|
credential_transports: {
|
|
311
|
-
source: "
|
|
312
|
-
kind: "
|
|
313
|
-
relocatable_by: ("
|
|
301
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
302
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
303
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
314
304
|
}[];
|
|
315
305
|
}, {
|
|
316
|
-
supported_sources?: ("
|
|
317
|
-
preferred_source?: "
|
|
306
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
307
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
318
308
|
credential_transports?: {
|
|
319
|
-
source: "
|
|
320
|
-
kind: "
|
|
321
|
-
relocatable_by?: ("
|
|
309
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
310
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
311
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
322
312
|
}[] | undefined;
|
|
323
313
|
}>>;
|
|
324
314
|
access_control: z.ZodDefault<z.ZodObject<{
|
|
325
315
|
readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
|
|
326
316
|
}, "strip", z.ZodTypeAny, {
|
|
327
|
-
readonly_mechanism: "
|
|
317
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
328
318
|
}, {
|
|
329
|
-
readonly_mechanism?: "
|
|
319
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
330
320
|
}>>;
|
|
331
321
|
isolation: z.ZodDefault<z.ZodObject<{
|
|
332
322
|
supported_containment: z.ZodDefault<z.ZodArray<z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>, "many">>;
|
|
333
323
|
}, "strip", z.ZodTypeAny, {
|
|
334
|
-
supported_containment: ("
|
|
324
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
335
325
|
}, {
|
|
336
|
-
supported_containment?: ("
|
|
326
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
337
327
|
}>>;
|
|
338
328
|
/** Every accepted media class has a finite MIME/size/count/transport declaration. */
|
|
339
329
|
attachment_inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -347,13 +337,13 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
|
|
|
347
337
|
mime_types: string[];
|
|
348
338
|
max_bytes: number;
|
|
349
339
|
max_count: number;
|
|
350
|
-
transport: "
|
|
340
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
351
341
|
}, {
|
|
352
342
|
kind: "file" | "image";
|
|
353
343
|
mime_types: string[];
|
|
354
344
|
max_bytes: number;
|
|
355
345
|
max_count: number;
|
|
356
|
-
transport: "
|
|
346
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
357
347
|
}>, "many">>;
|
|
358
348
|
/**
|
|
359
349
|
* The adapter can inject engine-owned MCP servers into the harness sandbox
|
|
@@ -375,51 +365,51 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
|
|
|
375
365
|
mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
|
|
376
366
|
}, "strip", z.ZodTypeAny, {
|
|
377
367
|
auth: {
|
|
378
|
-
supported_sources: ("
|
|
379
|
-
preferred_source: "
|
|
368
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
369
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
380
370
|
credential_transports: {
|
|
381
|
-
source: "
|
|
382
|
-
kind: "
|
|
383
|
-
relocatable_by: ("
|
|
371
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
372
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
373
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
384
374
|
}[];
|
|
385
375
|
};
|
|
386
376
|
access_control: {
|
|
387
|
-
readonly_mechanism: "
|
|
377
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
388
378
|
};
|
|
389
379
|
isolation: {
|
|
390
|
-
supported_containment: ("
|
|
380
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
391
381
|
};
|
|
392
382
|
attachment_inputs: {
|
|
393
383
|
kind: "file" | "image";
|
|
394
384
|
mime_types: string[];
|
|
395
385
|
max_bytes: number;
|
|
396
386
|
max_count: number;
|
|
397
|
-
transport: "
|
|
387
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
398
388
|
}[];
|
|
399
389
|
mcp_injection: boolean;
|
|
400
390
|
mcp_injection_requires_full_access: boolean;
|
|
401
391
|
}, {
|
|
402
392
|
auth?: {
|
|
403
|
-
supported_sources?: ("
|
|
404
|
-
preferred_source?: "
|
|
393
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
394
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
405
395
|
credential_transports?: {
|
|
406
|
-
source: "
|
|
407
|
-
kind: "
|
|
408
|
-
relocatable_by?: ("
|
|
396
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
397
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
398
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
409
399
|
}[] | undefined;
|
|
410
400
|
} | undefined;
|
|
411
401
|
access_control?: {
|
|
412
|
-
readonly_mechanism?: "
|
|
402
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
413
403
|
} | undefined;
|
|
414
404
|
isolation?: {
|
|
415
|
-
supported_containment?: ("
|
|
405
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
416
406
|
} | undefined;
|
|
417
407
|
attachment_inputs?: {
|
|
418
408
|
kind: "file" | "image";
|
|
419
409
|
mime_types: string[];
|
|
420
410
|
max_bytes: number;
|
|
421
411
|
max_count: number;
|
|
422
|
-
transport: "
|
|
412
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
423
413
|
}[] | undefined;
|
|
424
414
|
mcp_injection?: boolean | undefined;
|
|
425
415
|
mcp_injection_requires_full_access?: boolean | undefined;
|
|
@@ -441,13 +431,13 @@ export declare const HarnessModel: z.ZodObject<{
|
|
|
441
431
|
}, "strip", z.ZodTypeAny, {
|
|
442
432
|
id: string;
|
|
443
433
|
label: string | null;
|
|
444
|
-
routes: ("api_key" | "local_session")[] | null;
|
|
445
434
|
context_window: number | null;
|
|
435
|
+
routes: ("api_key" | "local_session")[] | null;
|
|
446
436
|
}, {
|
|
447
437
|
id: string;
|
|
448
438
|
label?: string | null | undefined;
|
|
449
|
-
routes?: ("api_key" | "local_session")[] | null | undefined;
|
|
450
439
|
context_window?: number | null | undefined;
|
|
440
|
+
routes?: ("api_key" | "local_session")[] | null | undefined;
|
|
451
441
|
}>;
|
|
452
442
|
export type HarnessModel = z.infer<typeof HarnessModel>;
|
|
453
443
|
export declare const HarnessManifest: z.ZodObject<{
|
|
@@ -466,44 +456,44 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
466
456
|
kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
|
|
467
457
|
relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
|
|
468
458
|
}, "strip", z.ZodTypeAny, {
|
|
469
|
-
source: "
|
|
470
|
-
kind: "
|
|
471
|
-
relocatable_by: ("
|
|
459
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
460
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
461
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
472
462
|
}, {
|
|
473
|
-
source: "
|
|
474
|
-
kind: "
|
|
475
|
-
relocatable_by?: ("
|
|
463
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
464
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
465
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
476
466
|
}>, "many">>;
|
|
477
467
|
}, "strip", z.ZodTypeAny, {
|
|
478
|
-
supported_sources: ("
|
|
479
|
-
preferred_source: "
|
|
468
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
469
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
480
470
|
credential_transports: {
|
|
481
|
-
source: "
|
|
482
|
-
kind: "
|
|
483
|
-
relocatable_by: ("
|
|
471
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
472
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
473
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
484
474
|
}[];
|
|
485
475
|
}, {
|
|
486
|
-
supported_sources?: ("
|
|
487
|
-
preferred_source?: "
|
|
476
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
477
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
488
478
|
credential_transports?: {
|
|
489
|
-
source: "
|
|
490
|
-
kind: "
|
|
491
|
-
relocatable_by?: ("
|
|
479
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
480
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
481
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
492
482
|
}[] | undefined;
|
|
493
483
|
}>>;
|
|
494
484
|
access_control: z.ZodDefault<z.ZodObject<{
|
|
495
485
|
readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
|
|
496
486
|
}, "strip", z.ZodTypeAny, {
|
|
497
|
-
readonly_mechanism: "
|
|
487
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
498
488
|
}, {
|
|
499
|
-
readonly_mechanism?: "
|
|
489
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
500
490
|
}>>;
|
|
501
491
|
isolation: z.ZodDefault<z.ZodObject<{
|
|
502
492
|
supported_containment: z.ZodDefault<z.ZodArray<z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>, "many">>;
|
|
503
493
|
}, "strip", z.ZodTypeAny, {
|
|
504
|
-
supported_containment: ("
|
|
494
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
505
495
|
}, {
|
|
506
|
-
supported_containment?: ("
|
|
496
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
507
497
|
}>>;
|
|
508
498
|
/** Every accepted media class has a finite MIME/size/count/transport declaration. */
|
|
509
499
|
attachment_inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -517,13 +507,13 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
517
507
|
mime_types: string[];
|
|
518
508
|
max_bytes: number;
|
|
519
509
|
max_count: number;
|
|
520
|
-
transport: "
|
|
510
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
521
511
|
}, {
|
|
522
512
|
kind: "file" | "image";
|
|
523
513
|
mime_types: string[];
|
|
524
514
|
max_bytes: number;
|
|
525
515
|
max_count: number;
|
|
526
|
-
transport: "
|
|
516
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
527
517
|
}>, "many">>;
|
|
528
518
|
/**
|
|
529
519
|
* The adapter can inject engine-owned MCP servers into the harness sandbox
|
|
@@ -545,51 +535,51 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
545
535
|
mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
|
|
546
536
|
}, "strip", z.ZodTypeAny, {
|
|
547
537
|
auth: {
|
|
548
|
-
supported_sources: ("
|
|
549
|
-
preferred_source: "
|
|
538
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
539
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
550
540
|
credential_transports: {
|
|
551
|
-
source: "
|
|
552
|
-
kind: "
|
|
553
|
-
relocatable_by: ("
|
|
541
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
542
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
543
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
554
544
|
}[];
|
|
555
545
|
};
|
|
556
546
|
access_control: {
|
|
557
|
-
readonly_mechanism: "
|
|
547
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
558
548
|
};
|
|
559
549
|
isolation: {
|
|
560
|
-
supported_containment: ("
|
|
550
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
561
551
|
};
|
|
562
552
|
attachment_inputs: {
|
|
563
553
|
kind: "file" | "image";
|
|
564
554
|
mime_types: string[];
|
|
565
555
|
max_bytes: number;
|
|
566
556
|
max_count: number;
|
|
567
|
-
transport: "
|
|
557
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
568
558
|
}[];
|
|
569
559
|
mcp_injection: boolean;
|
|
570
560
|
mcp_injection_requires_full_access: boolean;
|
|
571
561
|
}, {
|
|
572
562
|
auth?: {
|
|
573
|
-
supported_sources?: ("
|
|
574
|
-
preferred_source?: "
|
|
563
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
564
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
575
565
|
credential_transports?: {
|
|
576
|
-
source: "
|
|
577
|
-
kind: "
|
|
578
|
-
relocatable_by?: ("
|
|
566
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
567
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
568
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
579
569
|
}[] | undefined;
|
|
580
570
|
} | undefined;
|
|
581
571
|
access_control?: {
|
|
582
|
-
readonly_mechanism?: "
|
|
572
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
583
573
|
} | undefined;
|
|
584
574
|
isolation?: {
|
|
585
|
-
supported_containment?: ("
|
|
575
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
586
576
|
} | undefined;
|
|
587
577
|
attachment_inputs?: {
|
|
588
578
|
kind: "file" | "image";
|
|
589
579
|
mime_types: string[];
|
|
590
580
|
max_bytes: number;
|
|
591
581
|
max_count: number;
|
|
592
|
-
transport: "
|
|
582
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
593
583
|
}[] | undefined;
|
|
594
584
|
mcp_injection?: boolean | undefined;
|
|
595
585
|
mcp_injection_requires_full_access?: boolean | undefined;
|
|
@@ -636,8 +626,8 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
636
626
|
* and the attempt finalizer demands a report only from them.
|
|
637
627
|
* - `constrained`: a native schema-constrained transport carries it
|
|
638
628
|
* (codex --output-schema, claude StructuredOutput tool).
|
|
639
|
-
* - `validated`: no native flag;
|
|
640
|
-
* (cursor's
|
|
629
|
+
* - `validated`: no native flag; an instructed terminal metadata block is
|
|
630
|
+
* validated (cursor's fenced WorkReport footer on the existing parse path).
|
|
641
631
|
* - `unsupported`: the route cannot carry a WorkReport; the work_state axis
|
|
642
632
|
* stays `unverified` (a disclosed absence, never a failure).
|
|
643
633
|
*/
|
|
@@ -648,9 +638,9 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
648
638
|
* shape (D-16). `side_tool` (claude --json-schema materializes a
|
|
649
639
|
* StructuredOutput tool; the prose message stays markdown) lets a
|
|
650
640
|
* WorkReport-only envelope ride the tool while the markdown remains the
|
|
651
|
-
* deliverable. `final_message` (codex --output-schema
|
|
652
|
-
*
|
|
653
|
-
*
|
|
641
|
+
* deliverable. `final_message` (codex --output-schema) consumes the final
|
|
642
|
+
* message, so its no-caller envelope wraps markdown as `output: string`;
|
|
643
|
+
* Cursor's validated footer is separate.
|
|
654
644
|
*/
|
|
655
645
|
structured_output_channel: z.ZodDefault<z.ZodEnum<["side_tool", "final_message"]>>;
|
|
656
646
|
/**
|
|
@@ -714,20 +704,20 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
714
704
|
}, "strip", z.ZodTypeAny, {
|
|
715
705
|
plan: boolean;
|
|
716
706
|
implement: boolean;
|
|
707
|
+
implementation_transport: "git_patch_envelope" | "workspace";
|
|
717
708
|
create_from_scratch: boolean;
|
|
718
709
|
review: boolean;
|
|
719
710
|
verify: boolean;
|
|
720
711
|
synthesize: boolean;
|
|
721
|
-
implementation_transport: "workspace" | "git_patch_envelope";
|
|
722
712
|
read_files: boolean;
|
|
723
713
|
browser_tool: boolean;
|
|
724
|
-
web_policy: "
|
|
714
|
+
web_policy: "native" | "none" | "tools" | "uncontrolled";
|
|
725
715
|
max_turns: boolean;
|
|
726
716
|
tool_lists: boolean;
|
|
727
717
|
interactive: boolean;
|
|
728
718
|
json_schema_output: boolean;
|
|
729
|
-
work_report_transport: "constrained" | "
|
|
730
|
-
structured_output_channel: "
|
|
719
|
+
work_report_transport: "constrained" | "unsupported" | "validated";
|
|
720
|
+
structured_output_channel: "final_message" | "side_tool";
|
|
731
721
|
effort_levels: string[];
|
|
732
722
|
model_effort_levels: Record<string, {
|
|
733
723
|
levels: string[];
|
|
@@ -742,20 +732,20 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
742
732
|
}, {
|
|
743
733
|
plan?: boolean | undefined;
|
|
744
734
|
implement?: boolean | undefined;
|
|
735
|
+
implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
|
|
745
736
|
create_from_scratch?: boolean | undefined;
|
|
746
737
|
review?: boolean | undefined;
|
|
747
738
|
verify?: boolean | undefined;
|
|
748
739
|
synthesize?: boolean | undefined;
|
|
749
|
-
implementation_transport?: "workspace" | "git_patch_envelope" | undefined;
|
|
750
740
|
read_files?: boolean | undefined;
|
|
751
741
|
browser_tool?: boolean | undefined;
|
|
752
|
-
web_policy?: "
|
|
742
|
+
web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
|
|
753
743
|
max_turns?: boolean | undefined;
|
|
754
744
|
tool_lists?: boolean | undefined;
|
|
755
745
|
interactive?: boolean | undefined;
|
|
756
746
|
json_schema_output?: boolean | undefined;
|
|
757
|
-
work_report_transport?: "constrained" | "
|
|
758
|
-
structured_output_channel?: "
|
|
747
|
+
work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
|
|
748
|
+
structured_output_channel?: "final_message" | "side_tool" | undefined;
|
|
759
749
|
effort_levels?: string[] | undefined;
|
|
760
750
|
model_effort_levels?: Record<string, {
|
|
761
751
|
levels?: string[] | undefined;
|
|
@@ -771,32 +761,34 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
771
761
|
auth_modes: z.ZodDefault<z.ZodArray<z.ZodEnum<["local_session", "api_key", "none"]>, "many">>;
|
|
772
762
|
access_profiles_supported: z.ZodDefault<z.ZodArray<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>, "many">>;
|
|
773
763
|
}, "strip", z.ZodTypeAny, {
|
|
774
|
-
display_name: string;
|
|
775
|
-
kind: "local_cli" | "remote_api" | "fake";
|
|
776
764
|
id: string;
|
|
777
|
-
|
|
765
|
+
display_name: string;
|
|
766
|
+
kind: "fake" | "local_cli" | "remote_api";
|
|
767
|
+
version?: string | undefined;
|
|
768
|
+
adapter_version?: string | undefined;
|
|
769
|
+
provider_family: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai";
|
|
778
770
|
capability_profile: {
|
|
779
771
|
auth: {
|
|
780
|
-
supported_sources: ("
|
|
781
|
-
preferred_source: "
|
|
772
|
+
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
773
|
+
preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
|
|
782
774
|
credential_transports: {
|
|
783
|
-
source: "
|
|
784
|
-
kind: "
|
|
785
|
-
relocatable_by: ("
|
|
775
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
776
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
777
|
+
relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
|
|
786
778
|
}[];
|
|
787
779
|
};
|
|
788
780
|
access_control: {
|
|
789
|
-
readonly_mechanism: "
|
|
781
|
+
readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
|
|
790
782
|
};
|
|
791
783
|
isolation: {
|
|
792
|
-
supported_containment: ("
|
|
784
|
+
supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
|
|
793
785
|
};
|
|
794
786
|
attachment_inputs: {
|
|
795
787
|
kind: "file" | "image";
|
|
796
788
|
mime_types: string[];
|
|
797
789
|
max_bytes: number;
|
|
798
790
|
max_count: number;
|
|
799
|
-
transport: "
|
|
791
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
800
792
|
}[];
|
|
801
793
|
mcp_injection: boolean;
|
|
802
794
|
mcp_injection_requires_full_access: boolean;
|
|
@@ -804,20 +796,20 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
804
796
|
capabilities: {
|
|
805
797
|
plan: boolean;
|
|
806
798
|
implement: boolean;
|
|
799
|
+
implementation_transport: "git_patch_envelope" | "workspace";
|
|
807
800
|
create_from_scratch: boolean;
|
|
808
801
|
review: boolean;
|
|
809
802
|
verify: boolean;
|
|
810
803
|
synthesize: boolean;
|
|
811
|
-
implementation_transport: "workspace" | "git_patch_envelope";
|
|
812
804
|
read_files: boolean;
|
|
813
805
|
browser_tool: boolean;
|
|
814
|
-
web_policy: "
|
|
806
|
+
web_policy: "native" | "none" | "tools" | "uncontrolled";
|
|
815
807
|
max_turns: boolean;
|
|
816
808
|
tool_lists: boolean;
|
|
817
809
|
interactive: boolean;
|
|
818
810
|
json_schema_output: boolean;
|
|
819
|
-
work_report_transport: "constrained" | "
|
|
820
|
-
structured_output_channel: "
|
|
811
|
+
work_report_transport: "constrained" | "unsupported" | "validated";
|
|
812
|
+
structured_output_channel: "final_message" | "side_tool";
|
|
821
813
|
effort_levels: string[];
|
|
822
814
|
model_effort_levels: Record<string, {
|
|
823
815
|
levels: string[];
|
|
@@ -830,31 +822,58 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
830
822
|
})[];
|
|
831
823
|
known_models_verified_against: string | null;
|
|
832
824
|
};
|
|
833
|
-
auth_modes: ("api_key" | "
|
|
834
|
-
access_profiles_supported: ("
|
|
835
|
-
version?: string | undefined;
|
|
836
|
-
adapter_version?: string | undefined;
|
|
825
|
+
auth_modes: ("api_key" | "local_session" | "none")[];
|
|
826
|
+
access_profiles_supported: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[];
|
|
837
827
|
}, {
|
|
838
|
-
display_name: string;
|
|
839
|
-
kind: "local_cli" | "remote_api" | "fake";
|
|
840
828
|
id: string;
|
|
829
|
+
display_name: string;
|
|
830
|
+
kind: "fake" | "local_cli" | "remote_api";
|
|
831
|
+
version?: string | undefined;
|
|
832
|
+
adapter_version?: string | undefined;
|
|
833
|
+
provider_family?: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai" | undefined;
|
|
834
|
+
capability_profile?: {
|
|
835
|
+
auth?: {
|
|
836
|
+
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
837
|
+
preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
|
|
838
|
+
credential_transports?: {
|
|
839
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
840
|
+
kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
|
|
841
|
+
relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
|
|
842
|
+
}[] | undefined;
|
|
843
|
+
} | undefined;
|
|
844
|
+
access_control?: {
|
|
845
|
+
readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
|
|
846
|
+
} | undefined;
|
|
847
|
+
isolation?: {
|
|
848
|
+
supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
|
|
849
|
+
} | undefined;
|
|
850
|
+
attachment_inputs?: {
|
|
851
|
+
kind: "file" | "image";
|
|
852
|
+
mime_types: string[];
|
|
853
|
+
max_bytes: number;
|
|
854
|
+
max_count: number;
|
|
855
|
+
transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
|
|
856
|
+
}[] | undefined;
|
|
857
|
+
mcp_injection?: boolean | undefined;
|
|
858
|
+
mcp_injection_requires_full_access?: boolean | undefined;
|
|
859
|
+
} | undefined;
|
|
841
860
|
capabilities: {
|
|
842
861
|
plan?: boolean | undefined;
|
|
843
862
|
implement?: boolean | undefined;
|
|
863
|
+
implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
|
|
844
864
|
create_from_scratch?: boolean | undefined;
|
|
845
865
|
review?: boolean | undefined;
|
|
846
866
|
verify?: boolean | undefined;
|
|
847
867
|
synthesize?: boolean | undefined;
|
|
848
|
-
implementation_transport?: "workspace" | "git_patch_envelope" | undefined;
|
|
849
868
|
read_files?: boolean | undefined;
|
|
850
869
|
browser_tool?: boolean | undefined;
|
|
851
|
-
web_policy?: "
|
|
870
|
+
web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
|
|
852
871
|
max_turns?: boolean | undefined;
|
|
853
872
|
tool_lists?: boolean | undefined;
|
|
854
873
|
interactive?: boolean | undefined;
|
|
855
874
|
json_schema_output?: boolean | undefined;
|
|
856
|
-
work_report_transport?: "constrained" | "
|
|
857
|
-
structured_output_channel?: "
|
|
875
|
+
work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
|
|
876
|
+
structured_output_channel?: "final_message" | "side_tool" | undefined;
|
|
858
877
|
effort_levels?: string[] | undefined;
|
|
859
878
|
model_effort_levels?: Record<string, {
|
|
860
879
|
levels?: string[] | undefined;
|
|
@@ -867,37 +886,8 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
867
886
|
})[] | undefined;
|
|
868
887
|
known_models_verified_against?: string | null | undefined;
|
|
869
888
|
};
|
|
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;
|
|
889
|
+
auth_modes?: ("api_key" | "local_session" | "none")[] | undefined;
|
|
890
|
+
access_profiles_supported?: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[] | undefined;
|
|
901
891
|
}>;
|
|
902
892
|
export type HarnessManifest = z.infer<typeof HarnessManifest>;
|
|
903
893
|
/** Result of a conformance probe for one capability check. */
|
|
@@ -907,13 +897,13 @@ export declare const ConformanceCheck: z.ZodObject<{
|
|
|
907
897
|
detail: z.ZodOptional<z.ZodString>;
|
|
908
898
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
909
899
|
}, "strip", z.ZodTypeAny, {
|
|
910
|
-
status: "pass" | "fail" | "skip";
|
|
911
900
|
id: string;
|
|
901
|
+
status: "fail" | "pass" | "skip";
|
|
912
902
|
detail?: string | undefined;
|
|
913
903
|
duration_ms?: number | undefined;
|
|
914
904
|
}, {
|
|
915
|
-
status: "pass" | "fail" | "skip";
|
|
916
905
|
id: string;
|
|
906
|
+
status: "fail" | "pass" | "skip";
|
|
917
907
|
detail?: string | undefined;
|
|
918
908
|
duration_ms?: number | undefined;
|
|
919
909
|
}>;
|
|
@@ -929,13 +919,13 @@ export declare const ConformanceReport: z.ZodObject<{
|
|
|
929
919
|
detail: z.ZodOptional<z.ZodString>;
|
|
930
920
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
931
921
|
}, "strip", z.ZodTypeAny, {
|
|
932
|
-
status: "pass" | "fail" | "skip";
|
|
933
922
|
id: string;
|
|
923
|
+
status: "fail" | "pass" | "skip";
|
|
934
924
|
detail?: string | undefined;
|
|
935
925
|
duration_ms?: number | undefined;
|
|
936
926
|
}, {
|
|
937
|
-
status: "pass" | "fail" | "skip";
|
|
938
927
|
id: string;
|
|
928
|
+
status: "fail" | "pass" | "skip";
|
|
939
929
|
detail?: string | undefined;
|
|
940
930
|
duration_ms?: number | undefined;
|
|
941
931
|
}>, "many">>;
|
|
@@ -948,50 +938,50 @@ export declare const ConformanceReport: z.ZodObject<{
|
|
|
948
938
|
verification: z.ZodEnum<["passed", "failed", "not_run"]>;
|
|
949
939
|
detail: z.ZodOptional<z.ZodString>;
|
|
950
940
|
}, "strict", z.ZodTypeAny, {
|
|
951
|
-
source: "
|
|
952
|
-
availability: "
|
|
953
|
-
verification: "
|
|
941
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
942
|
+
availability: "available" | "unavailable" | "unknown";
|
|
943
|
+
verification: "failed" | "not_run" | "passed";
|
|
954
944
|
detail?: string | undefined;
|
|
955
945
|
}, {
|
|
956
|
-
source: "
|
|
957
|
-
availability: "
|
|
958
|
-
verification: "
|
|
946
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
947
|
+
availability: "available" | "unavailable" | "unknown";
|
|
948
|
+
verification: "failed" | "not_run" | "passed";
|
|
959
949
|
detail?: string | undefined;
|
|
960
950
|
}>, "many">>;
|
|
961
951
|
}, "strip", z.ZodTypeAny, {
|
|
962
|
-
status: "unavailable" | "ok" | "degraded";
|
|
963
952
|
harness_id: string;
|
|
953
|
+
status: "degraded" | "ok" | "unavailable";
|
|
964
954
|
checks: {
|
|
965
|
-
status: "pass" | "fail" | "skip";
|
|
966
955
|
id: string;
|
|
956
|
+
status: "fail" | "pass" | "skip";
|
|
967
957
|
detail?: string | undefined;
|
|
968
958
|
duration_ms?: number | undefined;
|
|
969
959
|
}[];
|
|
970
|
-
enabled_intents: ("
|
|
971
|
-
disabled_intents: ("
|
|
960
|
+
enabled_intents: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[];
|
|
961
|
+
disabled_intents: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[];
|
|
972
962
|
reasons: string[];
|
|
973
963
|
auth_sources: {
|
|
974
|
-
source: "
|
|
975
|
-
availability: "
|
|
976
|
-
verification: "
|
|
964
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
965
|
+
availability: "available" | "unavailable" | "unknown";
|
|
966
|
+
verification: "failed" | "not_run" | "passed";
|
|
977
967
|
detail?: string | undefined;
|
|
978
968
|
}[];
|
|
979
969
|
}, {
|
|
980
|
-
status: "unavailable" | "ok" | "degraded";
|
|
981
970
|
harness_id: string;
|
|
971
|
+
status: "degraded" | "ok" | "unavailable";
|
|
982
972
|
checks?: {
|
|
983
|
-
status: "pass" | "fail" | "skip";
|
|
984
973
|
id: string;
|
|
974
|
+
status: "fail" | "pass" | "skip";
|
|
985
975
|
detail?: string | undefined;
|
|
986
976
|
duration_ms?: number | undefined;
|
|
987
977
|
}[] | undefined;
|
|
988
|
-
enabled_intents?: ("
|
|
989
|
-
disabled_intents?: ("
|
|
978
|
+
enabled_intents?: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[] | undefined;
|
|
979
|
+
disabled_intents?: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[] | undefined;
|
|
990
980
|
reasons?: string[] | undefined;
|
|
991
981
|
auth_sources?: {
|
|
992
|
-
source: "
|
|
993
|
-
availability: "
|
|
994
|
-
verification: "
|
|
982
|
+
source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
|
|
983
|
+
availability: "available" | "unavailable" | "unknown";
|
|
984
|
+
verification: "failed" | "not_run" | "passed";
|
|
995
985
|
detail?: string | undefined;
|
|
996
986
|
}[] | undefined;
|
|
997
987
|
}>;
|
|
@@ -1015,17 +1005,17 @@ export declare const ExtraMcpServer: z.ZodObject<{
|
|
|
1015
1005
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1016
1006
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1017
1007
|
}, "strip", z.ZodTypeAny, {
|
|
1018
|
-
command: string;
|
|
1019
1008
|
name: string;
|
|
1020
|
-
|
|
1009
|
+
command: string;
|
|
1021
1010
|
args: string[];
|
|
1022
1011
|
env: Record<string, string>;
|
|
1012
|
+
required: boolean;
|
|
1023
1013
|
}, {
|
|
1024
|
-
command: string;
|
|
1025
1014
|
name: string;
|
|
1026
|
-
|
|
1015
|
+
command: string;
|
|
1027
1016
|
args?: string[] | undefined;
|
|
1028
1017
|
env?: Record<string, string> | undefined;
|
|
1018
|
+
required?: boolean | undefined;
|
|
1029
1019
|
}>;
|
|
1030
1020
|
export type ExtraMcpServer = z.infer<typeof ExtraMcpServer>;
|
|
1031
1021
|
/** Spec passed to a harness adapter's run(). */
|
|
@@ -1049,11 +1039,11 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1049
1039
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1050
1040
|
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1051
1041
|
}, "strip", z.ZodTypeAny, {
|
|
1052
|
-
web: "
|
|
1042
|
+
web: "auto" | "cached" | "live" | "off";
|
|
1053
1043
|
allow: string[];
|
|
1054
1044
|
deny: string[];
|
|
1055
1045
|
}, {
|
|
1056
|
-
web?: "
|
|
1046
|
+
web?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1057
1047
|
allow?: string[] | undefined;
|
|
1058
1048
|
deny?: string[] | undefined;
|
|
1059
1049
|
}>>;
|
|
@@ -1153,21 +1143,21 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1153
1143
|
size_bytes: z.ZodNumber;
|
|
1154
1144
|
path: z.ZodString;
|
|
1155
1145
|
}, "strict", z.ZodTypeAny, {
|
|
1156
|
-
path: string;
|
|
1157
|
-
kind: "file" | "image";
|
|
1158
|
-
name: string;
|
|
1159
1146
|
resource_id: string;
|
|
1147
|
+
kind: "file" | "image";
|
|
1160
1148
|
mime: string;
|
|
1149
|
+
name: string;
|
|
1161
1150
|
sha256: string;
|
|
1162
1151
|
size_bytes: number;
|
|
1163
|
-
}, {
|
|
1164
1152
|
path: string;
|
|
1165
|
-
|
|
1166
|
-
name: string;
|
|
1153
|
+
}, {
|
|
1167
1154
|
resource_id: string;
|
|
1155
|
+
kind: "file" | "image";
|
|
1168
1156
|
mime: string;
|
|
1157
|
+
name: string;
|
|
1169
1158
|
sha256: string;
|
|
1170
1159
|
size_bytes: number;
|
|
1160
|
+
path: string;
|
|
1171
1161
|
}>, "many">>;
|
|
1172
1162
|
/**
|
|
1173
1163
|
* Agent-driven browser wiring. Null = no browser tool this run (the common
|
|
@@ -1198,17 +1188,17 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1198
1188
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1199
1189
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1200
1190
|
}, "strip", z.ZodTypeAny, {
|
|
1201
|
-
command: string;
|
|
1202
1191
|
name: string;
|
|
1203
|
-
|
|
1192
|
+
command: string;
|
|
1204
1193
|
args: string[];
|
|
1205
1194
|
env: Record<string, string>;
|
|
1195
|
+
required: boolean;
|
|
1206
1196
|
}, {
|
|
1207
|
-
command: string;
|
|
1208
1197
|
name: string;
|
|
1209
|
-
|
|
1198
|
+
command: string;
|
|
1210
1199
|
args?: string[] | undefined;
|
|
1211
1200
|
env?: Record<string, string> | undefined;
|
|
1201
|
+
required?: boolean | undefined;
|
|
1212
1202
|
}>, "many">>;
|
|
1213
1203
|
/**
|
|
1214
1204
|
* JSON Schema constraining the harness's FINAL message (a caller-supplied
|
|
@@ -1250,16 +1240,16 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1250
1240
|
reason: z.ZodOptional<z.ZodString>;
|
|
1251
1241
|
}, "strip", z.ZodTypeAny, {
|
|
1252
1242
|
path: string;
|
|
1253
|
-
disposition: "
|
|
1254
|
-
reason?: string | undefined;
|
|
1243
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1255
1244
|
hash?: string | undefined;
|
|
1256
1245
|
bytes?: number | undefined;
|
|
1246
|
+
reason?: string | undefined;
|
|
1257
1247
|
}, {
|
|
1258
1248
|
path: string;
|
|
1259
|
-
disposition: "
|
|
1260
|
-
reason?: string | undefined;
|
|
1249
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1261
1250
|
hash?: string | undefined;
|
|
1262
1251
|
bytes?: number | undefined;
|
|
1252
|
+
reason?: string | undefined;
|
|
1263
1253
|
}>, "many">;
|
|
1264
1254
|
omissions: z.ZodArray<z.ZodObject<{
|
|
1265
1255
|
path: z.ZodString;
|
|
@@ -1269,13 +1259,13 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1269
1259
|
}, "strip", z.ZodTypeAny, {
|
|
1270
1260
|
path: string;
|
|
1271
1261
|
reason: string;
|
|
1272
|
-
replacement: "
|
|
1262
|
+
replacement: "index" | "map" | "none" | "summary";
|
|
1273
1263
|
hash?: string | undefined;
|
|
1274
1264
|
}, {
|
|
1275
1265
|
path: string;
|
|
1276
1266
|
reason: string;
|
|
1267
|
+
replacement?: "index" | "map" | "none" | "summary" | undefined;
|
|
1277
1268
|
hash?: string | undefined;
|
|
1278
|
-
replacement?: "map" | "none" | "summary" | "index" | undefined;
|
|
1279
1269
|
}>, "many">;
|
|
1280
1270
|
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
1281
1271
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1294,15 +1284,15 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1294
1284
|
creatable_roots: string[];
|
|
1295
1285
|
file_manifest: {
|
|
1296
1286
|
path: string;
|
|
1297
|
-
disposition: "
|
|
1298
|
-
reason?: string | undefined;
|
|
1287
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1299
1288
|
hash?: string | undefined;
|
|
1300
1289
|
bytes?: number | undefined;
|
|
1290
|
+
reason?: string | undefined;
|
|
1301
1291
|
}[];
|
|
1302
1292
|
omissions: {
|
|
1303
1293
|
path: string;
|
|
1304
1294
|
reason: string;
|
|
1305
|
-
replacement: "
|
|
1295
|
+
replacement: "index" | "map" | "none" | "summary";
|
|
1306
1296
|
hash?: string | undefined;
|
|
1307
1297
|
}[];
|
|
1308
1298
|
evidence_refs: string[];
|
|
@@ -1319,40 +1309,58 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1319
1309
|
content: string;
|
|
1320
1310
|
}[];
|
|
1321
1311
|
editable_paths: string[];
|
|
1312
|
+
creatable_roots?: string[] | undefined;
|
|
1322
1313
|
file_manifest: {
|
|
1323
1314
|
path: string;
|
|
1324
|
-
disposition: "
|
|
1325
|
-
reason?: string | undefined;
|
|
1315
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1326
1316
|
hash?: string | undefined;
|
|
1327
1317
|
bytes?: number | undefined;
|
|
1318
|
+
reason?: string | undefined;
|
|
1328
1319
|
}[];
|
|
1329
1320
|
omissions: {
|
|
1330
1321
|
path: string;
|
|
1331
1322
|
reason: string;
|
|
1323
|
+
replacement?: "index" | "map" | "none" | "summary" | undefined;
|
|
1332
1324
|
hash?: string | undefined;
|
|
1333
|
-
replacement?: "map" | "none" | "summary" | "index" | undefined;
|
|
1334
1325
|
}[];
|
|
1335
1326
|
evidence_refs: string[];
|
|
1336
|
-
|
|
1327
|
+
}>>>;
|
|
1328
|
+
/** The APPLIED OS boundary this process starts inside; null = none (every
|
|
1329
|
+
* ordinary run). Consumed by the shared CLI run loop, never by adapters. */
|
|
1330
|
+
confinement: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1331
|
+
mechanism: z.ZodString;
|
|
1332
|
+
profile: z.ZodString;
|
|
1333
|
+
profile_digest: z.ZodString;
|
|
1334
|
+
verified_denied_path: z.ZodString;
|
|
1335
|
+
}, "strip", z.ZodTypeAny, {
|
|
1336
|
+
mechanism: string;
|
|
1337
|
+
profile: string;
|
|
1338
|
+
profile_digest: string;
|
|
1339
|
+
verified_denied_path: string;
|
|
1340
|
+
}, {
|
|
1341
|
+
mechanism: string;
|
|
1342
|
+
profile: string;
|
|
1343
|
+
profile_digest: string;
|
|
1344
|
+
verified_denied_path: string;
|
|
1337
1345
|
}>>>;
|
|
1338
1346
|
extra: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1339
1347
|
}, "strip", z.ZodTypeAny, {
|
|
1340
|
-
max_turns: number | null;
|
|
1341
|
-
env: Record<string, string>;
|
|
1342
1348
|
session_id: string;
|
|
1343
|
-
intent: "
|
|
1349
|
+
intent: "audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify";
|
|
1344
1350
|
prompt: string;
|
|
1351
|
+
instructions?: string | undefined;
|
|
1345
1352
|
cwd: string;
|
|
1346
|
-
access: "
|
|
1347
|
-
external_context_policy: "
|
|
1353
|
+
access: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write";
|
|
1354
|
+
external_context_policy: "auto" | "cached" | "live" | "off";
|
|
1348
1355
|
tool_permission_policy: {
|
|
1349
|
-
web: "
|
|
1356
|
+
web: "auto" | "cached" | "live" | "off";
|
|
1350
1357
|
allow: string[];
|
|
1351
1358
|
deny: string[];
|
|
1352
1359
|
};
|
|
1353
1360
|
model_hint: string | null;
|
|
1354
1361
|
effort_hint: string | null;
|
|
1355
|
-
|
|
1362
|
+
max_turns: number | null;
|
|
1363
|
+
auth_preference: "api_key" | "auto" | "subscription";
|
|
1356
1364
|
credential_profile: {
|
|
1357
1365
|
profile_id: string;
|
|
1358
1366
|
harness_id: string;
|
|
@@ -1364,31 +1372,30 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1364
1372
|
created_at: string | null;
|
|
1365
1373
|
} | null;
|
|
1366
1374
|
resume_session_id: string | null;
|
|
1367
|
-
env_inheritance: "
|
|
1368
|
-
evidence_policy: "
|
|
1375
|
+
env_inheritance: "clean" | "mirror_native";
|
|
1376
|
+
evidence_policy: "allow_vendor_session_artifacts" | "stream_only";
|
|
1369
1377
|
stream_deltas: boolean;
|
|
1378
|
+
env: Record<string, string>;
|
|
1370
1379
|
attachments: {
|
|
1371
|
-
path: string;
|
|
1372
|
-
kind: "file" | "image";
|
|
1373
|
-
name: string;
|
|
1374
1380
|
resource_id: string;
|
|
1381
|
+
kind: "file" | "image";
|
|
1375
1382
|
mime: string;
|
|
1383
|
+
name: string;
|
|
1376
1384
|
sha256: string;
|
|
1377
1385
|
size_bytes: number;
|
|
1386
|
+
path: string;
|
|
1378
1387
|
}[];
|
|
1379
1388
|
browser: {
|
|
1380
1389
|
output_dir: string | null;
|
|
1381
1390
|
headless: boolean;
|
|
1382
1391
|
} | null;
|
|
1383
1392
|
extra_mcp_servers: {
|
|
1384
|
-
command: string;
|
|
1385
1393
|
name: string;
|
|
1386
|
-
|
|
1394
|
+
command: string;
|
|
1387
1395
|
args: string[];
|
|
1388
1396
|
env: Record<string, string>;
|
|
1397
|
+
required: boolean;
|
|
1389
1398
|
}[];
|
|
1390
|
-
extra: Record<string, unknown>;
|
|
1391
|
-
instructions?: string | undefined;
|
|
1392
1399
|
output_schema?: unknown;
|
|
1393
1400
|
raw_context_packet?: {
|
|
1394
1401
|
schema_version: 1;
|
|
@@ -1406,37 +1413,43 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1406
1413
|
creatable_roots: string[];
|
|
1407
1414
|
file_manifest: {
|
|
1408
1415
|
path: string;
|
|
1409
|
-
disposition: "
|
|
1410
|
-
reason?: string | undefined;
|
|
1416
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1411
1417
|
hash?: string | undefined;
|
|
1412
1418
|
bytes?: number | undefined;
|
|
1419
|
+
reason?: string | undefined;
|
|
1413
1420
|
}[];
|
|
1414
1421
|
omissions: {
|
|
1415
1422
|
path: string;
|
|
1416
1423
|
reason: string;
|
|
1417
|
-
replacement: "
|
|
1424
|
+
replacement: "index" | "map" | "none" | "summary";
|
|
1418
1425
|
hash?: string | undefined;
|
|
1419
1426
|
}[];
|
|
1420
1427
|
evidence_refs: string[];
|
|
1421
1428
|
} | null | undefined;
|
|
1429
|
+
confinement: {
|
|
1430
|
+
mechanism: string;
|
|
1431
|
+
profile: string;
|
|
1432
|
+
profile_digest: string;
|
|
1433
|
+
verified_denied_path: string;
|
|
1434
|
+
} | null;
|
|
1435
|
+
extra: Record<string, unknown>;
|
|
1422
1436
|
}, {
|
|
1423
1437
|
session_id: string;
|
|
1424
|
-
intent: "
|
|
1438
|
+
intent: "audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify";
|
|
1425
1439
|
prompt: string;
|
|
1426
|
-
cwd: string;
|
|
1427
1440
|
instructions?: string | undefined;
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
external_context_policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1441
|
+
cwd: string;
|
|
1442
|
+
access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
|
|
1443
|
+
external_context_policy?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1432
1444
|
tool_permission_policy?: {
|
|
1433
|
-
web?: "
|
|
1445
|
+
web?: "auto" | "cached" | "live" | "off" | undefined;
|
|
1434
1446
|
allow?: string[] | undefined;
|
|
1435
1447
|
deny?: string[] | undefined;
|
|
1436
1448
|
} | undefined;
|
|
1437
1449
|
model_hint?: string | null | undefined;
|
|
1438
1450
|
effort_hint?: string | null | undefined;
|
|
1439
|
-
|
|
1451
|
+
max_turns?: number | null | undefined;
|
|
1452
|
+
auth_preference?: "api_key" | "auto" | "subscription" | undefined;
|
|
1440
1453
|
credential_profile?: {
|
|
1441
1454
|
profile_id: string;
|
|
1442
1455
|
harness_id: string;
|
|
@@ -1448,28 +1461,29 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1448
1461
|
created_at?: string | null | undefined;
|
|
1449
1462
|
} | null | undefined;
|
|
1450
1463
|
resume_session_id?: string | null | undefined;
|
|
1451
|
-
env_inheritance?: "
|
|
1452
|
-
evidence_policy?: "
|
|
1464
|
+
env_inheritance?: "clean" | "mirror_native" | undefined;
|
|
1465
|
+
evidence_policy?: "allow_vendor_session_artifacts" | "stream_only" | undefined;
|
|
1453
1466
|
stream_deltas?: boolean | undefined;
|
|
1467
|
+
env?: Record<string, string> | undefined;
|
|
1454
1468
|
attachments?: {
|
|
1455
|
-
path: string;
|
|
1456
|
-
kind: "file" | "image";
|
|
1457
|
-
name: string;
|
|
1458
1469
|
resource_id: string;
|
|
1470
|
+
kind: "file" | "image";
|
|
1459
1471
|
mime: string;
|
|
1472
|
+
name: string;
|
|
1460
1473
|
sha256: string;
|
|
1461
1474
|
size_bytes: number;
|
|
1475
|
+
path: string;
|
|
1462
1476
|
}[] | undefined;
|
|
1463
1477
|
browser?: {
|
|
1464
1478
|
output_dir?: string | null | undefined;
|
|
1465
1479
|
headless?: boolean | undefined;
|
|
1466
1480
|
} | null | undefined;
|
|
1467
1481
|
extra_mcp_servers?: {
|
|
1468
|
-
command: string;
|
|
1469
1482
|
name: string;
|
|
1470
|
-
|
|
1483
|
+
command: string;
|
|
1471
1484
|
args?: string[] | undefined;
|
|
1472
1485
|
env?: Record<string, string> | undefined;
|
|
1486
|
+
required?: boolean | undefined;
|
|
1473
1487
|
}[] | undefined;
|
|
1474
1488
|
output_schema?: unknown;
|
|
1475
1489
|
raw_context_packet?: {
|
|
@@ -1485,21 +1499,27 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1485
1499
|
content: string;
|
|
1486
1500
|
}[];
|
|
1487
1501
|
editable_paths: string[];
|
|
1502
|
+
creatable_roots?: string[] | undefined;
|
|
1488
1503
|
file_manifest: {
|
|
1489
1504
|
path: string;
|
|
1490
|
-
disposition: "
|
|
1491
|
-
reason?: string | undefined;
|
|
1505
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
1492
1506
|
hash?: string | undefined;
|
|
1493
1507
|
bytes?: number | undefined;
|
|
1508
|
+
reason?: string | undefined;
|
|
1494
1509
|
}[];
|
|
1495
1510
|
omissions: {
|
|
1496
1511
|
path: string;
|
|
1497
1512
|
reason: string;
|
|
1513
|
+
replacement?: "index" | "map" | "none" | "summary" | undefined;
|
|
1498
1514
|
hash?: string | undefined;
|
|
1499
|
-
replacement?: "map" | "none" | "summary" | "index" | undefined;
|
|
1500
1515
|
}[];
|
|
1501
1516
|
evidence_refs: string[];
|
|
1502
|
-
|
|
1517
|
+
} | null | undefined;
|
|
1518
|
+
confinement?: {
|
|
1519
|
+
mechanism: string;
|
|
1520
|
+
profile: string;
|
|
1521
|
+
profile_digest: string;
|
|
1522
|
+
verified_denied_path: string;
|
|
1503
1523
|
} | null | undefined;
|
|
1504
1524
|
extra?: Record<string, unknown> | undefined;
|
|
1505
1525
|
}>;
|
|
@@ -1535,22 +1555,22 @@ export declare const InteractionQuestion: z.ZodObject<{
|
|
|
1535
1555
|
}>, "many">>;
|
|
1536
1556
|
multi_select: z.ZodDefault<z.ZodBoolean>;
|
|
1537
1557
|
}, "strip", z.ZodTypeAny, {
|
|
1558
|
+
id: string;
|
|
1559
|
+
question: string;
|
|
1560
|
+
header: string | null;
|
|
1538
1561
|
options: {
|
|
1539
1562
|
label: string;
|
|
1540
1563
|
description: string | null;
|
|
1541
1564
|
}[];
|
|
1542
|
-
id: string;
|
|
1543
|
-
question: string;
|
|
1544
|
-
header: string | null;
|
|
1545
1565
|
multi_select: boolean;
|
|
1546
1566
|
}, {
|
|
1547
1567
|
id: string;
|
|
1548
1568
|
question: string;
|
|
1569
|
+
header?: string | null | undefined;
|
|
1549
1570
|
options?: {
|
|
1550
1571
|
label: string;
|
|
1551
1572
|
description?: string | null | undefined;
|
|
1552
1573
|
}[] | undefined;
|
|
1553
|
-
header?: string | null | undefined;
|
|
1554
1574
|
multi_select?: boolean | undefined;
|
|
1555
1575
|
}>;
|
|
1556
1576
|
export type InteractionQuestion = z.infer<typeof InteractionQuestion>;
|
|
@@ -1578,22 +1598,22 @@ export declare const InteractionRequest: z.ZodObject<{
|
|
|
1578
1598
|
}>, "many">>;
|
|
1579
1599
|
multi_select: z.ZodDefault<z.ZodBoolean>;
|
|
1580
1600
|
}, "strip", z.ZodTypeAny, {
|
|
1601
|
+
id: string;
|
|
1602
|
+
question: string;
|
|
1603
|
+
header: string | null;
|
|
1581
1604
|
options: {
|
|
1582
1605
|
label: string;
|
|
1583
1606
|
description: string | null;
|
|
1584
1607
|
}[];
|
|
1585
|
-
id: string;
|
|
1586
|
-
question: string;
|
|
1587
|
-
header: string | null;
|
|
1588
1608
|
multi_select: boolean;
|
|
1589
1609
|
}, {
|
|
1590
1610
|
id: string;
|
|
1591
1611
|
question: string;
|
|
1612
|
+
header?: string | null | undefined;
|
|
1592
1613
|
options?: {
|
|
1593
1614
|
label: string;
|
|
1594
1615
|
description?: string | null | undefined;
|
|
1595
1616
|
}[] | undefined;
|
|
1596
|
-
header?: string | null | undefined;
|
|
1597
1617
|
multi_select?: boolean | undefined;
|
|
1598
1618
|
}>, "many">>;
|
|
1599
1619
|
/** Native tool that raised the request (e.g. "AskUserQuestion"). */
|
|
@@ -1601,13 +1621,13 @@ export declare const InteractionRequest: z.ZodObject<{
|
|
|
1601
1621
|
}, "strip", z.ZodTypeAny, {
|
|
1602
1622
|
interaction_id: string;
|
|
1603
1623
|
questions: {
|
|
1624
|
+
id: string;
|
|
1625
|
+
question: string;
|
|
1626
|
+
header: string | null;
|
|
1604
1627
|
options: {
|
|
1605
1628
|
label: string;
|
|
1606
1629
|
description: string | null;
|
|
1607
1630
|
}[];
|
|
1608
|
-
id: string;
|
|
1609
|
-
question: string;
|
|
1610
|
-
header: string | null;
|
|
1611
1631
|
multi_select: boolean;
|
|
1612
1632
|
}[];
|
|
1613
1633
|
source_tool: string | null;
|
|
@@ -1616,11 +1636,11 @@ export declare const InteractionRequest: z.ZodObject<{
|
|
|
1616
1636
|
questions?: {
|
|
1617
1637
|
id: string;
|
|
1618
1638
|
question: string;
|
|
1639
|
+
header?: string | null | undefined;
|
|
1619
1640
|
options?: {
|
|
1620
1641
|
label: string;
|
|
1621
1642
|
description?: string | null | undefined;
|
|
1622
1643
|
}[] | undefined;
|
|
1623
|
-
header?: string | null | undefined;
|
|
1624
1644
|
multi_select?: boolean | undefined;
|
|
1625
1645
|
}[] | undefined;
|
|
1626
1646
|
source_tool?: string | null | undefined;
|
|
@@ -1696,25 +1716,25 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1696
1716
|
exit_code: z.ZodOptional<z.ZodNumber>;
|
|
1697
1717
|
web_retrieval: z.ZodOptional<z.ZodEnum<["verified", "dispatched", "failed"]>>;
|
|
1698
1718
|
}, "strip", z.ZodTypeAny, {
|
|
1699
|
-
kind: "web" | "file" | "command" | "mcp" | "search" | "other";
|
|
1700
1719
|
name: string;
|
|
1701
|
-
|
|
1720
|
+
kind: "command" | "file" | "mcp" | "other" | "search" | "web";
|
|
1702
1721
|
use_id?: string | undefined;
|
|
1703
1722
|
target?: string | undefined;
|
|
1723
|
+
status?: "cancelled" | "denied" | "error" | "ok" | undefined;
|
|
1704
1724
|
error_summary?: string | undefined;
|
|
1705
1725
|
content_summary?: string | undefined;
|
|
1706
1726
|
exit_code?: number | undefined;
|
|
1707
|
-
web_retrieval?: "
|
|
1727
|
+
web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
|
|
1708
1728
|
}, {
|
|
1709
1729
|
name: string;
|
|
1710
|
-
|
|
1711
|
-
kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
|
|
1730
|
+
kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
|
|
1712
1731
|
use_id?: string | undefined;
|
|
1713
1732
|
target?: string | undefined;
|
|
1733
|
+
status?: "cancelled" | "denied" | "error" | "ok" | undefined;
|
|
1714
1734
|
error_summary?: string | undefined;
|
|
1715
1735
|
content_summary?: string | undefined;
|
|
1716
1736
|
exit_code?: number | undefined;
|
|
1717
|
-
web_retrieval?: "
|
|
1737
|
+
web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
|
|
1718
1738
|
}>>;
|
|
1719
1739
|
/** Set on `interaction_requested` events. */
|
|
1720
1740
|
interaction: z.ZodOptional<z.ZodObject<{
|
|
@@ -1736,22 +1756,22 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1736
1756
|
}>, "many">>;
|
|
1737
1757
|
multi_select: z.ZodDefault<z.ZodBoolean>;
|
|
1738
1758
|
}, "strip", z.ZodTypeAny, {
|
|
1759
|
+
id: string;
|
|
1760
|
+
question: string;
|
|
1761
|
+
header: string | null;
|
|
1739
1762
|
options: {
|
|
1740
1763
|
label: string;
|
|
1741
1764
|
description: string | null;
|
|
1742
1765
|
}[];
|
|
1743
|
-
id: string;
|
|
1744
|
-
question: string;
|
|
1745
|
-
header: string | null;
|
|
1746
1766
|
multi_select: boolean;
|
|
1747
1767
|
}, {
|
|
1748
1768
|
id: string;
|
|
1749
1769
|
question: string;
|
|
1770
|
+
header?: string | null | undefined;
|
|
1750
1771
|
options?: {
|
|
1751
1772
|
label: string;
|
|
1752
1773
|
description?: string | null | undefined;
|
|
1753
1774
|
}[] | undefined;
|
|
1754
|
-
header?: string | null | undefined;
|
|
1755
1775
|
multi_select?: boolean | undefined;
|
|
1756
1776
|
}>, "many">>;
|
|
1757
1777
|
/** Native tool that raised the request (e.g. "AskUserQuestion"). */
|
|
@@ -1759,13 +1779,13 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1759
1779
|
}, "strip", z.ZodTypeAny, {
|
|
1760
1780
|
interaction_id: string;
|
|
1761
1781
|
questions: {
|
|
1782
|
+
id: string;
|
|
1783
|
+
question: string;
|
|
1784
|
+
header: string | null;
|
|
1762
1785
|
options: {
|
|
1763
1786
|
label: string;
|
|
1764
1787
|
description: string | null;
|
|
1765
1788
|
}[];
|
|
1766
|
-
id: string;
|
|
1767
|
-
question: string;
|
|
1768
|
-
header: string | null;
|
|
1769
1789
|
multi_select: boolean;
|
|
1770
1790
|
}[];
|
|
1771
1791
|
source_tool: string | null;
|
|
@@ -1774,11 +1794,11 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1774
1794
|
questions?: {
|
|
1775
1795
|
id: string;
|
|
1776
1796
|
question: string;
|
|
1797
|
+
header?: string | null | undefined;
|
|
1777
1798
|
options?: {
|
|
1778
1799
|
label: string;
|
|
1779
1800
|
description?: string | null | undefined;
|
|
1780
1801
|
}[] | undefined;
|
|
1781
|
-
header?: string | null | undefined;
|
|
1782
1802
|
multi_select?: boolean | undefined;
|
|
1783
1803
|
}[] | undefined;
|
|
1784
1804
|
source_tool?: string | null | undefined;
|
|
@@ -1801,8 +1821,8 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1801
1821
|
}>, "many">;
|
|
1802
1822
|
}, "strip", z.ZodTypeAny, {
|
|
1803
1823
|
schema_version: 1;
|
|
1804
|
-
base_tree_sha: string;
|
|
1805
1824
|
context_packet_hash: string;
|
|
1825
|
+
base_tree_sha: string;
|
|
1806
1826
|
patch: string;
|
|
1807
1827
|
patch_hash: string;
|
|
1808
1828
|
touched_paths: {
|
|
@@ -1811,8 +1831,8 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1811
1831
|
}[];
|
|
1812
1832
|
}, {
|
|
1813
1833
|
schema_version: 1;
|
|
1814
|
-
base_tree_sha: string;
|
|
1815
1834
|
context_packet_hash: string;
|
|
1835
|
+
base_tree_sha: string;
|
|
1816
1836
|
patch: string;
|
|
1817
1837
|
patch_hash: string;
|
|
1818
1838
|
touched_paths: {
|
|
@@ -1829,17 +1849,17 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1829
1849
|
/** True when cost_usd is derived from token pricing (not natively reported). */
|
|
1830
1850
|
estimated: z.ZodOptional<z.ZodBoolean>;
|
|
1831
1851
|
}, "strip", z.ZodTypeAny, {
|
|
1832
|
-
estimated?: boolean | undefined;
|
|
1833
1852
|
input_tokens?: number | undefined;
|
|
1834
1853
|
output_tokens?: number | undefined;
|
|
1835
1854
|
cached_input_tokens?: number | undefined;
|
|
1836
1855
|
cost_usd?: number | undefined;
|
|
1837
|
-
}, {
|
|
1838
1856
|
estimated?: boolean | undefined;
|
|
1857
|
+
}, {
|
|
1839
1858
|
input_tokens?: number | undefined;
|
|
1840
1859
|
output_tokens?: number | undefined;
|
|
1841
1860
|
cached_input_tokens?: number | undefined;
|
|
1842
1861
|
cost_usd?: number | undefined;
|
|
1862
|
+
estimated?: boolean | undefined;
|
|
1843
1863
|
}>>;
|
|
1844
1864
|
observed_model: z.ZodOptional<z.ZodString>;
|
|
1845
1865
|
credential_route: z.ZodOptional<z.ZodEnum<["vendor_native", "managed_api_key", "local"]>>;
|
|
@@ -1876,7 +1896,7 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1876
1896
|
cooldown_until?: string | null | undefined;
|
|
1877
1897
|
}>, "many">;
|
|
1878
1898
|
}, "strict", z.ZodTypeAny, {
|
|
1879
|
-
source: "
|
|
1899
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1880
1900
|
plan_label: string | null;
|
|
1881
1901
|
subject_id: string | null;
|
|
1882
1902
|
constraints: {
|
|
@@ -1888,7 +1908,9 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1888
1908
|
cooldown_until: string | null;
|
|
1889
1909
|
}[];
|
|
1890
1910
|
}, {
|
|
1891
|
-
source: "
|
|
1911
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1912
|
+
plan_label?: string | null | undefined;
|
|
1913
|
+
subject_id?: string | null | undefined;
|
|
1892
1914
|
constraints: {
|
|
1893
1915
|
id: string;
|
|
1894
1916
|
label: string;
|
|
@@ -1897,8 +1919,6 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1897
1919
|
resets_at: string | null;
|
|
1898
1920
|
cooldown_until?: string | null | undefined;
|
|
1899
1921
|
}[];
|
|
1900
|
-
plan_label?: string | null | undefined;
|
|
1901
|
-
subject_id?: string | null | undefined;
|
|
1902
1922
|
}>>;
|
|
1903
1923
|
/**
|
|
1904
1924
|
* Typed live plan/todo progress: adapters map their native plan tools
|
|
@@ -1913,25 +1933,25 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1913
1933
|
title: z.ZodString;
|
|
1914
1934
|
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
1915
1935
|
}, "strip", z.ZodTypeAny, {
|
|
1916
|
-
status: "pending" | "completed" | "in_progress";
|
|
1917
1936
|
id: string;
|
|
1918
1937
|
title: string;
|
|
1938
|
+
status: "completed" | "in_progress" | "pending";
|
|
1919
1939
|
}, {
|
|
1920
|
-
status: "pending" | "completed" | "in_progress";
|
|
1921
1940
|
id: string;
|
|
1922
1941
|
title: string;
|
|
1942
|
+
status: "completed" | "in_progress" | "pending";
|
|
1923
1943
|
}>, "many">>;
|
|
1924
1944
|
}, "strip", z.ZodTypeAny, {
|
|
1925
1945
|
items: {
|
|
1926
|
-
status: "pending" | "completed" | "in_progress";
|
|
1927
1946
|
id: string;
|
|
1928
1947
|
title: string;
|
|
1948
|
+
status: "completed" | "in_progress" | "pending";
|
|
1929
1949
|
}[];
|
|
1930
1950
|
}, {
|
|
1931
1951
|
items?: {
|
|
1932
|
-
status: "pending" | "completed" | "in_progress";
|
|
1933
1952
|
id: string;
|
|
1934
1953
|
title: string;
|
|
1954
|
+
status: "completed" | "in_progress" | "pending";
|
|
1935
1955
|
}[] | undefined;
|
|
1936
1956
|
}>>;
|
|
1937
1957
|
/**
|
|
@@ -1963,19 +1983,19 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1963
1983
|
attempt: z.ZodOptional<z.ZodNumber>;
|
|
1964
1984
|
max_retries: z.ZodOptional<z.ZodNumber>;
|
|
1965
1985
|
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"]>>;
|
|
1986
|
+
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
1987
|
}, "strip", z.ZodTypeAny, {
|
|
1968
1988
|
kind: "api_retry";
|
|
1969
|
-
retry_delay_ms?: number | undefined;
|
|
1970
1989
|
attempt?: number | undefined;
|
|
1971
1990
|
max_retries?: number | undefined;
|
|
1972
|
-
|
|
1991
|
+
retry_delay_ms?: number | undefined;
|
|
1992
|
+
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
1993
|
}, {
|
|
1974
1994
|
kind: "api_retry";
|
|
1975
|
-
retry_delay_ms?: number | undefined;
|
|
1976
1995
|
attempt?: number | undefined;
|
|
1977
1996
|
max_retries?: number | undefined;
|
|
1978
|
-
|
|
1997
|
+
retry_delay_ms?: number | undefined;
|
|
1998
|
+
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
1999
|
}>>;
|
|
1980
2000
|
/**
|
|
1981
2001
|
* Typed transient-failure signal. Adapters set this from native CLI/API error
|
|
@@ -1986,10 +2006,10 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1986
2006
|
kind: z.ZodDefault<z.ZodEnum<["network", "stream_disconnect", "service_unavailable", "timeout", "unknown"]>>;
|
|
1987
2007
|
retry_delay_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1988
2008
|
}, "strip", z.ZodTypeAny, {
|
|
1989
|
-
kind: "
|
|
2009
|
+
kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
|
|
1990
2010
|
retry_delay_ms: number | null;
|
|
1991
2011
|
}, {
|
|
1992
|
-
kind?: "
|
|
2012
|
+
kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
|
|
1993
2013
|
retry_delay_ms?: number | null | undefined;
|
|
1994
2014
|
}>>;
|
|
1995
2015
|
/**
|
|
@@ -2009,14 +2029,14 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2009
2029
|
trigger: z.ZodDefault<z.ZodNullable<z.ZodEnum<["manual", "auto"]>>>;
|
|
2010
2030
|
pre_tokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2011
2031
|
}, "strip", z.ZodTypeAny, {
|
|
2012
|
-
kind: "
|
|
2013
|
-
cause: "
|
|
2032
|
+
kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
|
|
2033
|
+
cause: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded";
|
|
2014
2034
|
native_code: string | null;
|
|
2015
2035
|
trigger: "auto" | "manual" | null;
|
|
2016
2036
|
pre_tokens: number | null;
|
|
2017
2037
|
}, {
|
|
2018
|
-
kind: "
|
|
2019
|
-
cause?: "
|
|
2038
|
+
kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
|
|
2039
|
+
cause?: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded" | undefined;
|
|
2020
2040
|
native_code?: string | null | undefined;
|
|
2021
2041
|
trigger?: "auto" | "manual" | null | undefined;
|
|
2022
2042
|
pre_tokens?: number | null | undefined;
|
|
@@ -2025,64 +2045,40 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2025
2045
|
aborted: z.ZodOptional<z.ZodBoolean>;
|
|
2026
2046
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2027
2047
|
}, "strip", z.ZodTypeAny, {
|
|
2028
|
-
type: "
|
|
2048
|
+
type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
|
|
2029
2049
|
session_id: string;
|
|
2030
2050
|
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
2051
|
text?: string | undefined;
|
|
2056
2052
|
final?: boolean | undefined;
|
|
2057
2053
|
tool?: {
|
|
2058
|
-
kind: "web" | "file" | "command" | "mcp" | "search" | "other";
|
|
2059
2054
|
name: string;
|
|
2060
|
-
|
|
2055
|
+
kind: "command" | "file" | "mcp" | "other" | "search" | "web";
|
|
2061
2056
|
use_id?: string | undefined;
|
|
2062
2057
|
target?: string | undefined;
|
|
2058
|
+
status?: "cancelled" | "denied" | "error" | "ok" | undefined;
|
|
2063
2059
|
error_summary?: string | undefined;
|
|
2064
2060
|
content_summary?: string | undefined;
|
|
2065
2061
|
exit_code?: number | undefined;
|
|
2066
|
-
web_retrieval?: "
|
|
2062
|
+
web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
|
|
2067
2063
|
} | undefined;
|
|
2068
2064
|
interaction?: {
|
|
2069
2065
|
interaction_id: string;
|
|
2070
2066
|
questions: {
|
|
2067
|
+
id: string;
|
|
2068
|
+
question: string;
|
|
2069
|
+
header: string | null;
|
|
2071
2070
|
options: {
|
|
2072
2071
|
label: string;
|
|
2073
2072
|
description: string | null;
|
|
2074
2073
|
}[];
|
|
2075
|
-
id: string;
|
|
2076
|
-
question: string;
|
|
2077
|
-
header: string | null;
|
|
2078
2074
|
multi_select: boolean;
|
|
2079
2075
|
}[];
|
|
2080
2076
|
source_tool: string | null;
|
|
2081
2077
|
} | undefined;
|
|
2082
2078
|
patch_envelope?: {
|
|
2083
2079
|
schema_version: 1;
|
|
2084
|
-
base_tree_sha: string;
|
|
2085
2080
|
context_packet_hash: string;
|
|
2081
|
+
base_tree_sha: string;
|
|
2086
2082
|
patch: string;
|
|
2087
2083
|
patch_hash: string;
|
|
2088
2084
|
touched_paths: {
|
|
@@ -2090,12 +2086,20 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2090
2086
|
expected_blob_oid: string | null;
|
|
2091
2087
|
}[];
|
|
2092
2088
|
} | undefined;
|
|
2093
|
-
refusal_code?: "
|
|
2089
|
+
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;
|
|
2090
|
+
usage?: {
|
|
2091
|
+
input_tokens?: number | undefined;
|
|
2092
|
+
output_tokens?: number | undefined;
|
|
2093
|
+
cached_input_tokens?: number | undefined;
|
|
2094
|
+
cost_usd?: number | undefined;
|
|
2095
|
+
estimated?: boolean | undefined;
|
|
2096
|
+
} | undefined;
|
|
2094
2097
|
observed_model?: string | undefined;
|
|
2095
|
-
|
|
2098
|
+
credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
|
|
2099
|
+
credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
|
|
2096
2100
|
credential_profile_id?: string | undefined;
|
|
2097
2101
|
quota?: {
|
|
2098
|
-
source: "
|
|
2102
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
2099
2103
|
plan_label: string | null;
|
|
2100
2104
|
subject_id: string | null;
|
|
2101
2105
|
constraints: {
|
|
@@ -2109,79 +2113,71 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2109
2113
|
} | undefined;
|
|
2110
2114
|
plan_progress?: {
|
|
2111
2115
|
items: {
|
|
2112
|
-
status: "pending" | "completed" | "in_progress";
|
|
2113
2116
|
id: string;
|
|
2114
2117
|
title: string;
|
|
2118
|
+
status: "completed" | "in_progress" | "pending";
|
|
2115
2119
|
}[];
|
|
2116
2120
|
} | undefined;
|
|
2117
2121
|
rate_limit?: {
|
|
2118
2122
|
resets_at: string | null;
|
|
2119
2123
|
retry_delay_ms: number | null;
|
|
2120
2124
|
} | 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
2125
|
status?: {
|
|
2132
2126
|
kind: "api_retry";
|
|
2133
|
-
retry_delay_ms?: number | undefined;
|
|
2134
2127
|
attempt?: number | undefined;
|
|
2135
2128
|
max_retries?: number | undefined;
|
|
2136
|
-
|
|
2129
|
+
retry_delay_ms?: number | undefined;
|
|
2130
|
+
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
2131
|
} | 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;
|
|
2132
|
+
transient?: {
|
|
2133
|
+
kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
|
|
2134
|
+
retry_delay_ms: number | null;
|
|
2146
2135
|
} | undefined;
|
|
2147
2136
|
context?: {
|
|
2148
|
-
kind: "
|
|
2149
|
-
cause
|
|
2150
|
-
native_code
|
|
2151
|
-
trigger
|
|
2152
|
-
pre_tokens
|
|
2137
|
+
kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
|
|
2138
|
+
cause: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded";
|
|
2139
|
+
native_code: string | null;
|
|
2140
|
+
trigger: "auto" | "manual" | null;
|
|
2141
|
+
pre_tokens: number | null;
|
|
2153
2142
|
} | undefined;
|
|
2143
|
+
error?: string | undefined;
|
|
2144
|
+
aborted?: boolean | undefined;
|
|
2145
|
+
payload?: Record<string, unknown> | undefined;
|
|
2146
|
+
}, {
|
|
2147
|
+
type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
|
|
2148
|
+
session_id: string;
|
|
2149
|
+
ts: string;
|
|
2154
2150
|
text?: string | undefined;
|
|
2155
2151
|
final?: boolean | undefined;
|
|
2156
2152
|
tool?: {
|
|
2157
2153
|
name: string;
|
|
2158
|
-
|
|
2159
|
-
kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
|
|
2154
|
+
kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
|
|
2160
2155
|
use_id?: string | undefined;
|
|
2161
2156
|
target?: string | undefined;
|
|
2157
|
+
status?: "cancelled" | "denied" | "error" | "ok" | undefined;
|
|
2162
2158
|
error_summary?: string | undefined;
|
|
2163
2159
|
content_summary?: string | undefined;
|
|
2164
2160
|
exit_code?: number | undefined;
|
|
2165
|
-
web_retrieval?: "
|
|
2161
|
+
web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
|
|
2166
2162
|
} | undefined;
|
|
2167
2163
|
interaction?: {
|
|
2168
2164
|
interaction_id: string;
|
|
2169
2165
|
questions?: {
|
|
2170
2166
|
id: string;
|
|
2171
2167
|
question: string;
|
|
2168
|
+
header?: string | null | undefined;
|
|
2172
2169
|
options?: {
|
|
2173
2170
|
label: string;
|
|
2174
2171
|
description?: string | null | undefined;
|
|
2175
2172
|
}[] | undefined;
|
|
2176
|
-
header?: string | null | undefined;
|
|
2177
2173
|
multi_select?: boolean | undefined;
|
|
2178
2174
|
}[] | undefined;
|
|
2179
2175
|
source_tool?: string | null | undefined;
|
|
2180
2176
|
} | undefined;
|
|
2181
2177
|
patch_envelope?: {
|
|
2182
2178
|
schema_version: 1;
|
|
2183
|
-
base_tree_sha: string;
|
|
2184
2179
|
context_packet_hash: string;
|
|
2180
|
+
base_tree_sha: string;
|
|
2185
2181
|
patch: string;
|
|
2186
2182
|
patch_hash: string;
|
|
2187
2183
|
touched_paths: {
|
|
@@ -2189,12 +2185,22 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2189
2185
|
expected_blob_oid: string | null;
|
|
2190
2186
|
}[];
|
|
2191
2187
|
} | undefined;
|
|
2192
|
-
refusal_code?: "
|
|
2188
|
+
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;
|
|
2189
|
+
usage?: {
|
|
2190
|
+
input_tokens?: number | undefined;
|
|
2191
|
+
output_tokens?: number | undefined;
|
|
2192
|
+
cached_input_tokens?: number | undefined;
|
|
2193
|
+
cost_usd?: number | undefined;
|
|
2194
|
+
estimated?: boolean | undefined;
|
|
2195
|
+
} | undefined;
|
|
2193
2196
|
observed_model?: string | undefined;
|
|
2194
|
-
|
|
2197
|
+
credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
|
|
2198
|
+
credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
|
|
2195
2199
|
credential_profile_id?: string | undefined;
|
|
2196
2200
|
quota?: {
|
|
2197
|
-
source: "
|
|
2201
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
2202
|
+
plan_label?: string | null | undefined;
|
|
2203
|
+
subject_id?: string | null | undefined;
|
|
2198
2204
|
constraints: {
|
|
2199
2205
|
id: string;
|
|
2200
2206
|
label: string;
|
|
@@ -2203,24 +2209,38 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2203
2209
|
resets_at: string | null;
|
|
2204
2210
|
cooldown_until?: string | null | undefined;
|
|
2205
2211
|
}[];
|
|
2206
|
-
plan_label?: string | null | undefined;
|
|
2207
|
-
subject_id?: string | null | undefined;
|
|
2208
2212
|
} | undefined;
|
|
2209
2213
|
plan_progress?: {
|
|
2210
2214
|
items?: {
|
|
2211
|
-
status: "pending" | "completed" | "in_progress";
|
|
2212
2215
|
id: string;
|
|
2213
2216
|
title: string;
|
|
2217
|
+
status: "completed" | "in_progress" | "pending";
|
|
2214
2218
|
}[] | undefined;
|
|
2215
2219
|
} | undefined;
|
|
2216
2220
|
rate_limit?: {
|
|
2217
2221
|
resets_at?: string | null | undefined;
|
|
2218
2222
|
retry_delay_ms?: number | null | undefined;
|
|
2219
2223
|
} | undefined;
|
|
2224
|
+
status?: {
|
|
2225
|
+
kind: "api_retry";
|
|
2226
|
+
attempt?: number | undefined;
|
|
2227
|
+
max_retries?: number | undefined;
|
|
2228
|
+
retry_delay_ms?: number | undefined;
|
|
2229
|
+
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;
|
|
2230
|
+
} | undefined;
|
|
2220
2231
|
transient?: {
|
|
2221
|
-
kind?: "
|
|
2232
|
+
kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
|
|
2222
2233
|
retry_delay_ms?: number | null | undefined;
|
|
2223
2234
|
} | undefined;
|
|
2235
|
+
context?: {
|
|
2236
|
+
kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
|
|
2237
|
+
cause?: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded" | undefined;
|
|
2238
|
+
native_code?: string | null | undefined;
|
|
2239
|
+
trigger?: "auto" | "manual" | null | undefined;
|
|
2240
|
+
pre_tokens?: number | null | undefined;
|
|
2241
|
+
} | undefined;
|
|
2242
|
+
error?: string | undefined;
|
|
2243
|
+
aborted?: boolean | undefined;
|
|
2224
2244
|
payload?: Record<string, unknown> | undefined;
|
|
2225
2245
|
}>;
|
|
2226
2246
|
export type HarnessEvent = z.infer<typeof HarnessEvent>;
|