@claudexor/schema 3.1.2 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/dist/agent-capabilities.d.ts +157 -129
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +4 -2
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/apply-eligibility.d.ts +462 -273
  6. package/dist/apply-eligibility.d.ts.map +1 -1
  7. package/dist/apply-eligibility.js +25 -2
  8. package/dist/apply-eligibility.js.map +1 -1
  9. package/dist/attachment.d.ts +17 -17
  10. package/dist/attachment.d.ts.map +1 -1
  11. package/dist/attachment.js +1 -1
  12. package/dist/attachment.js.map +1 -1
  13. package/dist/auth.d.ts +475 -475
  14. package/dist/auth.d.ts.map +1 -1
  15. package/dist/auth.js +1 -1
  16. package/dist/auth.js.map +1 -1
  17. package/dist/budget.d.ts +62 -59
  18. package/dist/budget.d.ts.map +1 -1
  19. package/dist/budget.js +6 -1
  20. package/dist/budget.js.map +1 -1
  21. package/dist/config.d.ts +320 -316
  22. package/dist/config.d.ts.map +1 -1
  23. package/dist/config.js +26 -19
  24. package/dist/config.js.map +1 -1
  25. package/dist/context.d.ts +38 -38
  26. package/dist/context.d.ts.map +1 -1
  27. package/dist/context.js +1 -1
  28. package/dist/context.js.map +1 -1
  29. package/dist/control-auth-route.d.ts +46 -0
  30. package/dist/control-auth-route.d.ts.map +1 -0
  31. package/dist/control-auth-route.js +24 -0
  32. package/dist/control-auth-route.js.map +1 -0
  33. package/dist/control-gc.d.ts +15 -15
  34. package/dist/control-gc.d.ts.map +1 -1
  35. package/dist/control-gc.js +1 -1
  36. package/dist/control-gc.js.map +1 -1
  37. package/dist/control-harness-list.d.ts +896 -0
  38. package/dist/control-harness-list.d.ts.map +1 -0
  39. package/dist/control-harness-list.js +13 -0
  40. package/dist/control-harness-list.js.map +1 -0
  41. package/dist/control-operation-responses.d.ts +630 -628
  42. package/dist/control-operation-responses.d.ts.map +1 -1
  43. package/dist/control-operation-responses.js +5 -1
  44. package/dist/control-operation-responses.js.map +1 -1
  45. package/dist/control-run-detail.d.ts +2113 -1578
  46. package/dist/control-run-detail.d.ts.map +1 -1
  47. package/dist/control-run-detail.js +7 -1
  48. package/dist/control-run-detail.js.map +1 -1
  49. package/dist/control-run-retry.d.ts +16 -16
  50. package/dist/control-run-retry.d.ts.map +1 -1
  51. package/dist/control-run-retry.js +1 -1
  52. package/dist/control-run-retry.js.map +1 -1
  53. package/dist/control-run-scope.d.ts +2 -2
  54. package/dist/control-run-scope.d.ts.map +1 -1
  55. package/dist/control-run-scope.js +1 -1
  56. package/dist/control-run-scope.js.map +1 -1
  57. package/dist/control-secret.d.ts +7 -7
  58. package/dist/control-secret.d.ts.map +1 -1
  59. package/dist/control-secret.js +1 -1
  60. package/dist/control-secret.js.map +1 -1
  61. package/dist/control-thread-apply.d.ts +65 -65
  62. package/dist/control-thread-apply.d.ts.map +1 -1
  63. package/dist/control-thread-apply.js +1 -1
  64. package/dist/control-thread-apply.js.map +1 -1
  65. package/dist/control-trust.d.ts +23 -23
  66. package/dist/control-trust.d.ts.map +1 -1
  67. package/dist/control-trust.js +1 -1
  68. package/dist/control-trust.js.map +1 -1
  69. package/dist/control.d.ts +1523 -2354
  70. package/dist/control.d.ts.map +1 -1
  71. package/dist/control.js +23 -45
  72. package/dist/control.js.map +1 -1
  73. package/dist/credential-profile-snapshot.d.ts +3203 -0
  74. package/dist/credential-profile-snapshot.d.ts.map +1 -0
  75. package/dist/credential-profile-snapshot.js +28 -0
  76. package/dist/credential-profile-snapshot.js.map +1 -0
  77. package/dist/credential-profile.d.ts +122 -107
  78. package/dist/credential-profile.d.ts.map +1 -1
  79. package/dist/credential-profile.js +12 -6
  80. package/dist/credential-profile.js.map +1 -1
  81. package/dist/decision.d.ts +121 -121
  82. package/dist/decision.d.ts.map +1 -1
  83. package/dist/decision.js +2 -1
  84. package/dist/decision.js.map +1 -1
  85. package/dist/deep-scan.d.ts +5 -5
  86. package/dist/deep-scan.d.ts.map +1 -1
  87. package/dist/deep-scan.js +1 -1
  88. package/dist/deep-scan.js.map +1 -1
  89. package/dist/delegation.d.ts +13 -13
  90. package/dist/delegation.d.ts.map +1 -1
  91. package/dist/delegation.js +1 -1
  92. package/dist/delegation.js.map +1 -1
  93. package/dist/delivery.d.ts +32 -32
  94. package/dist/delivery.d.ts.map +1 -1
  95. package/dist/delivery.js +1 -1
  96. package/dist/delivery.js.map +1 -1
  97. package/dist/effort.d.ts +1 -1
  98. package/dist/effort.d.ts.map +1 -1
  99. package/dist/effort.js +1 -1
  100. package/dist/effort.js.map +1 -1
  101. package/dist/events.d.ts +55 -35
  102. package/dist/events.d.ts.map +1 -1
  103. package/dist/events.js +20 -1
  104. package/dist/events.js.map +1 -1
  105. package/dist/gate.d.ts +7 -7
  106. package/dist/gate.d.ts.map +1 -1
  107. package/dist/gate.js +1 -1
  108. package/dist/gate.js.map +1 -1
  109. package/dist/git-capability.d.ts +23 -0
  110. package/dist/git-capability.d.ts.map +1 -0
  111. package/dist/git-capability.js +15 -0
  112. package/dist/git-capability.js.map +1 -0
  113. package/dist/harness.d.ts +417 -400
  114. package/dist/harness.d.ts.map +1 -1
  115. package/dist/harness.js +11 -25
  116. package/dist/harness.js.map +1 -1
  117. package/dist/index.d.ts +7 -0
  118. package/dist/index.d.ts.map +1 -1
  119. package/dist/index.js +7 -0
  120. package/dist/index.js.map +1 -1
  121. package/dist/interaction.d.ts +10 -0
  122. package/dist/interaction.d.ts.map +1 -0
  123. package/dist/interaction.js +2 -0
  124. package/dist/interaction.js.map +1 -0
  125. package/dist/operation.d.ts +113 -113
  126. package/dist/operation.d.ts.map +1 -1
  127. package/dist/operation.js +1 -1
  128. package/dist/operation.js.map +1 -1
  129. package/dist/output-schema-dialect.d.ts +1 -1
  130. package/dist/output-schema-dialect.d.ts.map +1 -1
  131. package/dist/output-schema-dialect.js +1 -1
  132. package/dist/output-schema-dialect.js.map +1 -1
  133. package/dist/output-schema.d.ts +2 -2
  134. package/dist/output-schema.js +2 -2
  135. package/dist/plan.d.ts +29 -29
  136. package/dist/plan.d.ts.map +1 -1
  137. package/dist/plan.js +2 -2
  138. package/dist/plan.js.map +1 -1
  139. package/dist/primitives.d.ts +3 -5
  140. package/dist/primitives.d.ts.map +1 -1
  141. package/dist/primitives.js +4 -6
  142. package/dist/primitives.js.map +1 -1
  143. package/dist/problem.d.ts +6 -6
  144. package/dist/problem.d.ts.map +1 -1
  145. package/dist/problem.js +1 -1
  146. package/dist/problem.js.map +1 -1
  147. package/dist/project.d.ts +87 -25
  148. package/dist/project.d.ts.map +1 -1
  149. package/dist/project.js +21 -1
  150. package/dist/project.js.map +1 -1
  151. package/dist/quota.d.ts +72 -48
  152. package/dist/quota.d.ts.map +1 -1
  153. package/dist/quota.js +6 -2
  154. package/dist/quota.js.map +1 -1
  155. package/dist/rate-limit.d.ts +20 -0
  156. package/dist/rate-limit.d.ts.map +1 -0
  157. package/dist/rate-limit.js +24 -0
  158. package/dist/rate-limit.js.map +1 -0
  159. package/dist/raw.d.ts +16 -16
  160. package/dist/raw.d.ts.map +1 -1
  161. package/dist/raw.js +1 -1
  162. package/dist/raw.js.map +1 -1
  163. package/dist/readiness.d.ts +242 -242
  164. package/dist/readiness.d.ts.map +1 -1
  165. package/dist/readiness.js +1 -1
  166. package/dist/readiness.js.map +1 -1
  167. package/dist/recovery.d.ts +106 -106
  168. package/dist/recovery.d.ts.map +1 -1
  169. package/dist/recovery.js +1 -1
  170. package/dist/recovery.js.map +1 -1
  171. package/dist/request-requirements.d.ts +9 -9
  172. package/dist/request-requirements.d.ts.map +1 -1
  173. package/dist/request-requirements.js +1 -1
  174. package/dist/request-requirements.js.map +1 -1
  175. package/dist/review.d.ts +29 -29
  176. package/dist/review.d.ts.map +1 -1
  177. package/dist/review.js +1 -1
  178. package/dist/review.js.map +1 -1
  179. package/dist/route.d.ts +11 -11
  180. package/dist/route.d.ts.map +1 -1
  181. package/dist/route.js +1 -1
  182. package/dist/route.js.map +1 -1
  183. package/dist/run-applicability.d.ts +764 -0
  184. package/dist/run-applicability.d.ts.map +1 -0
  185. package/dist/run-applicability.js +56 -0
  186. package/dist/run-applicability.js.map +1 -0
  187. package/dist/run-facts.d.ts +628 -0
  188. package/dist/run-facts.d.ts.map +1 -0
  189. package/dist/run-facts.js +429 -0
  190. package/dist/run-facts.js.map +1 -0
  191. package/dist/run-strategy.d.ts +40 -0
  192. package/dist/run-strategy.d.ts.map +1 -1
  193. package/dist/run-strategy.js +68 -1
  194. package/dist/run-strategy.js.map +1 -1
  195. package/dist/setup-device-code-envelope.d.ts +67 -0
  196. package/dist/setup-device-code-envelope.d.ts.map +1 -0
  197. package/dist/setup-device-code-envelope.js +25 -0
  198. package/dist/setup-device-code-envelope.js.map +1 -0
  199. package/dist/setup-login-protocol.d.ts +6 -0
  200. package/dist/setup-login-protocol.d.ts.map +1 -0
  201. package/dist/setup-login-protocol.js +12 -0
  202. package/dist/setup-login-protocol.js.map +1 -0
  203. package/dist/setup-transport.d.ts +12 -0
  204. package/dist/setup-transport.d.ts.map +1 -0
  205. package/dist/setup-transport.js +22 -0
  206. package/dist/setup-transport.js.map +1 -0
  207. package/dist/setup.d.ts +12572 -3749
  208. package/dist/setup.d.ts.map +1 -1
  209. package/dist/setup.js +34 -38
  210. package/dist/setup.js.map +1 -1
  211. package/dist/status-projection.d.ts +7 -5
  212. package/dist/status-projection.d.ts.map +1 -1
  213. package/dist/status-projection.js +11 -6
  214. package/dist/status-projection.js.map +1 -1
  215. package/dist/surface-run-controls.d.ts.map +1 -1
  216. package/dist/surface-run-controls.js +10 -1
  217. package/dist/surface-run-controls.js.map +1 -1
  218. package/dist/task.d.ts +303 -303
  219. package/dist/task.d.ts.map +1 -1
  220. package/dist/task.js +1 -1
  221. package/dist/task.js.map +1 -1
  222. package/dist/telemetry.d.ts +1157 -633
  223. package/dist/telemetry.d.ts.map +1 -1
  224. package/dist/telemetry.js +7 -4
  225. package/dist/telemetry.js.map +1 -1
  226. package/dist/thread.d.ts +133 -84
  227. package/dist/thread.d.ts.map +1 -1
  228. package/dist/thread.js +21 -2
  229. package/dist/thread.js.map +1 -1
  230. package/dist/tool-ref.d.ts +7 -7
  231. package/dist/tool-ref.d.ts.map +1 -1
  232. package/dist/tool-ref.js +1 -1
  233. package/dist/tool-ref.js.map +1 -1
  234. package/dist/work-report.d.ts +28 -28
  235. package/dist/work-report.d.ts.map +1 -1
  236. package/dist/work-report.js +3 -3
  237. package/dist/work-report.js.map +1 -1
  238. package/dist/workproduct.d.ts +6 -9
  239. package/dist/workproduct.d.ts.map +1 -1
  240. package/dist/workproduct.js +1 -2
  241. package/dist/workproduct.js.map +1 -1
  242. package/dist/workspace.d.ts +13 -13
  243. package/dist/workspace.d.ts.map +1 -1
  244. package/dist/workspace.js +1 -1
  245. package/dist/workspace.js.map +1 -1
  246. package/generated/AgentCapabilityCatalog.schema.json +43 -2
  247. package/generated/BudgetObservation.schema.json +16 -0
  248. package/generated/ControlCredentialProfilesQueryResponse.schema.json +1346 -0
  249. package/generated/ControlCredentialProfilesResponse.schema.json +10 -2
  250. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1325 -0
  251. package/generated/ControlDirectoryEntry.schema.json +36 -0
  252. package/generated/ControlDirectoryListing.schema.json +77 -0
  253. package/generated/ControlHarnessListResponse.schema.json +41 -1
  254. package/generated/ControlQuotaResponse.schema.json +14 -1
  255. package/generated/ControlRunAgainDraft.schema.json +2 -2
  256. package/generated/ControlRunApplicabilityResponse.schema.json +217 -0
  257. package/generated/ControlRunDetail.schema.json +429 -68
  258. package/generated/ControlRunListResponse.schema.json +12 -3
  259. package/generated/ControlRunStartRequest.schema.json +2 -2
  260. package/generated/ControlRunSummary.schema.json +12 -3
  261. package/generated/ControlSettingsSnapshot.schema.json +12 -3
  262. package/generated/ControlSettingsUpdateRequest.schema.json +12 -3
  263. package/generated/ControlSetupJob.schema.json +9 -0
  264. package/generated/ControlSetupJobCreateRequest.schema.json +9 -0
  265. package/generated/ControlSetupJobEvent.schema.json +858 -758
  266. package/generated/ControlSetupJobListResponse.schema.json +9 -0
  267. package/generated/ControlSetupJobSnapshot.schema.json +811 -736
  268. package/generated/ControlThreadDetail.schema.json +32 -2
  269. package/generated/ControlThreadTurnRequest.schema.json +6 -25
  270. package/generated/DecisionRecord.schema.json +2 -1
  271. package/generated/GitCapability.schema.json +46 -0
  272. package/generated/GlobalConfig.schema.json +13 -4
  273. package/generated/HarnessEvent.schema.json +34 -2
  274. package/generated/HarnessManifest.schema.json +1 -1
  275. package/generated/HarnessStatusDto.schema.json +1 -1
  276. package/generated/McpRunHandleResult.schema.json +165 -1
  277. package/generated/McpRunToolResult.schema.json +165 -1
  278. package/generated/OutputReadyPayload.schema.json +44 -0
  279. package/generated/RunFacts.schema.json +569 -0
  280. package/generated/RunTelemetry.schema.json +493 -3
  281. package/generated/TaskContract.schema.json +1 -1
  282. package/generated/ThreadTurn.schema.json +29 -0
  283. package/generated/WorkProduct.schema.json +0 -4
  284. 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; the whole final answer is validated JSON
72
- * (cursor's instructed fenced envelope on the existing parse path).
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, cursor fenced JSON)
84
- * consumes the final message, so a no-caller WorkReport envelope must wrap
85
- * the markdown deliverable as `output: string`.
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: "none" | "native" | "tools" | "uncontrolled";
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" | "validated" | "unsupported";
162
- structured_output_channel: "side_tool" | "final_message";
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?: "none" | "native" | "tools" | "uncontrolled" | undefined;
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" | "validated" | "unsupported" | undefined;
190
- structured_output_channel?: "side_tool" | "final_message" | undefined;
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: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
220
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
221
- relocatable_by: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[];
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: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
224
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
225
- relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
223
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
224
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
225
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
226
226
  }>;
227
227
  export type CredentialTransport = z.infer<typeof CredentialTransport>;
228
228
  export declare const AuthCapabilities: z.ZodDefault<z.ZodObject<{
@@ -233,29 +233,29 @@ export declare const AuthCapabilities: z.ZodDefault<z.ZodObject<{
233
233
  kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
234
234
  relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
235
235
  }, "strip", z.ZodTypeAny, {
236
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
237
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
238
- relocatable_by: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[];
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: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
241
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
242
- relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
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: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[];
246
- preferred_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
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: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
249
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
250
- relocatable_by: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[];
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?: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[] | undefined;
254
- preferred_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
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: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
257
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
258
- relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
256
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
257
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
258
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
259
259
  }[] | undefined;
260
260
  }>>;
261
261
  export type AuthCapabilities = z.infer<typeof AuthCapabilities>;
@@ -264,9 +264,9 @@ export type ContainmentKind = z.infer<typeof ContainmentKind>;
264
264
  export declare const IsolationCapabilities: z.ZodDefault<z.ZodObject<{
265
265
  supported_containment: z.ZodDefault<z.ZodArray<z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>, "many">>;
266
266
  }, "strip", z.ZodTypeAny, {
267
- supported_containment: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[];
267
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
268
268
  }, {
269
- supported_containment?: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[] | undefined;
269
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
270
270
  }>>;
271
271
  export type IsolationCapabilities = z.infer<typeof IsolationCapabilities>;
272
272
  export declare const ReadonlyMechanism: z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>;
@@ -274,9 +274,9 @@ export type ReadonlyMechanism = z.infer<typeof ReadonlyMechanism>;
274
274
  export declare const AccessControlCapabilities: z.ZodDefault<z.ZodObject<{
275
275
  readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
276
276
  }, "strip", z.ZodTypeAny, {
277
- readonly_mechanism: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist";
277
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
278
278
  }, {
279
- readonly_mechanism?: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist" | undefined;
279
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
280
280
  }>>;
281
281
  export type AccessControlCapabilities = z.infer<typeof AccessControlCapabilities>;
282
282
  /**
@@ -296,44 +296,44 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
296
296
  kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
297
297
  relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
298
298
  }, "strip", z.ZodTypeAny, {
299
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
300
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
301
- relocatable_by: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[];
299
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
300
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
301
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
302
302
  }, {
303
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
304
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
305
- relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
303
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
304
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
305
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
306
306
  }>, "many">>;
307
307
  }, "strip", z.ZodTypeAny, {
308
- supported_sources: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[];
309
- preferred_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
308
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
309
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
310
310
  credential_transports: {
311
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
312
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
313
- relocatable_by: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[];
311
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
312
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
313
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
314
314
  }[];
315
315
  }, {
316
- supported_sources?: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[] | undefined;
317
- preferred_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
316
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
317
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
318
318
  credential_transports?: {
319
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
320
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
321
- relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
319
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
320
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
321
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
322
322
  }[] | undefined;
323
323
  }>>;
324
324
  access_control: z.ZodDefault<z.ZodObject<{
325
325
  readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
326
326
  }, "strip", z.ZodTypeAny, {
327
- readonly_mechanism: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist";
327
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
328
328
  }, {
329
- readonly_mechanism?: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist" | undefined;
329
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
330
330
  }>>;
331
331
  isolation: z.ZodDefault<z.ZodObject<{
332
332
  supported_containment: z.ZodDefault<z.ZodArray<z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>, "many">>;
333
333
  }, "strip", z.ZodTypeAny, {
334
- supported_containment: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[];
334
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
335
335
  }, {
336
- supported_containment?: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[] | undefined;
336
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
337
337
  }>>;
338
338
  /** Every accepted media class has a finite MIME/size/count/transport declaration. */
339
339
  attachment_inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -347,13 +347,13 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
347
347
  mime_types: string[];
348
348
  max_bytes: number;
349
349
  max_count: number;
350
- transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
350
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
351
351
  }, {
352
352
  kind: "file" | "image";
353
353
  mime_types: string[];
354
354
  max_bytes: number;
355
355
  max_count: number;
356
- transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
356
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
357
357
  }>, "many">>;
358
358
  /**
359
359
  * The adapter can inject engine-owned MCP servers into the harness sandbox
@@ -375,51 +375,51 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
375
375
  mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
376
376
  }, "strip", z.ZodTypeAny, {
377
377
  auth: {
378
- supported_sources: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[];
379
- preferred_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
378
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
379
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
380
380
  credential_transports: {
381
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
382
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
383
- relocatable_by: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[];
381
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
382
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
383
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
384
384
  }[];
385
385
  };
386
386
  access_control: {
387
- readonly_mechanism: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist";
387
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
388
388
  };
389
389
  isolation: {
390
- supported_containment: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[];
390
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
391
391
  };
392
392
  attachment_inputs: {
393
393
  kind: "file" | "image";
394
394
  mime_types: string[];
395
395
  max_bytes: number;
396
396
  max_count: number;
397
- transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
397
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
398
398
  }[];
399
399
  mcp_injection: boolean;
400
400
  mcp_injection_requires_full_access: boolean;
401
401
  }, {
402
402
  auth?: {
403
- supported_sources?: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[] | undefined;
404
- preferred_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
403
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
404
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
405
405
  credential_transports?: {
406
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
407
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
408
- relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
406
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
407
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
408
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
409
409
  }[] | undefined;
410
410
  } | undefined;
411
411
  access_control?: {
412
- readonly_mechanism?: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist" | undefined;
412
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
413
413
  } | undefined;
414
414
  isolation?: {
415
- supported_containment?: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[] | undefined;
415
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
416
416
  } | undefined;
417
417
  attachment_inputs?: {
418
418
  kind: "file" | "image";
419
419
  mime_types: string[];
420
420
  max_bytes: number;
421
421
  max_count: number;
422
- transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
422
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
423
423
  }[] | undefined;
424
424
  mcp_injection?: boolean | undefined;
425
425
  mcp_injection_requires_full_access?: boolean | undefined;
@@ -441,13 +441,13 @@ export declare const HarnessModel: z.ZodObject<{
441
441
  }, "strip", z.ZodTypeAny, {
442
442
  id: string;
443
443
  label: string | null;
444
- routes: ("api_key" | "local_session")[] | null;
445
444
  context_window: number | null;
445
+ routes: ("api_key" | "local_session")[] | null;
446
446
  }, {
447
447
  id: string;
448
448
  label?: string | null | undefined;
449
- routes?: ("api_key" | "local_session")[] | null | undefined;
450
449
  context_window?: number | null | undefined;
450
+ routes?: ("api_key" | "local_session")[] | null | undefined;
451
451
  }>;
452
452
  export type HarnessModel = z.infer<typeof HarnessModel>;
453
453
  export declare const HarnessManifest: z.ZodObject<{
@@ -466,44 +466,44 @@ export declare const HarnessManifest: z.ZodObject<{
466
466
  kind: z.ZodEnum<["config_file", "env_var", "oauth_token_env", "os_keychain", "http_header", "none"]>;
467
467
  relocatable_by: z.ZodDefault<z.ZodArray<z.ZodEnum<["HOME", "CONFIG_DIR", "ENV", "none"]>, "many">>;
468
468
  }, "strip", z.ZodTypeAny, {
469
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
470
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
471
- relocatable_by: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[];
469
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
470
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
471
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
472
472
  }, {
473
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
474
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
475
- relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
473
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
474
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
475
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
476
476
  }>, "many">>;
477
477
  }, "strip", z.ZodTypeAny, {
478
- supported_sources: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[];
479
- preferred_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
478
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
479
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
480
480
  credential_transports: {
481
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
482
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
483
- relocatable_by: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[];
481
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
482
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
483
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
484
484
  }[];
485
485
  }, {
486
- supported_sources?: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[] | undefined;
487
- preferred_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
486
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
487
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
488
488
  credential_transports?: {
489
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
490
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
491
- relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
489
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
490
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
491
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
492
492
  }[] | undefined;
493
493
  }>>;
494
494
  access_control: z.ZodDefault<z.ZodObject<{
495
495
  readonly_mechanism: z.ZodDefault<z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "none"]>>;
496
496
  }, "strip", z.ZodTypeAny, {
497
- readonly_mechanism: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist";
497
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
498
498
  }, {
499
- readonly_mechanism?: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist" | undefined;
499
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
500
500
  }>>;
501
501
  isolation: z.ZodDefault<z.ZodObject<{
502
502
  supported_containment: z.ZodDefault<z.ZodArray<z.ZodEnum<["env_or_file_injection", "scoped_home_keychain_bridge", "host_user_context", "process_sandbox", "container"]>, "many">>;
503
503
  }, "strip", z.ZodTypeAny, {
504
- supported_containment: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[];
504
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
505
505
  }, {
506
- supported_containment?: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[] | undefined;
506
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
507
507
  }>>;
508
508
  /** Every accepted media class has a finite MIME/size/count/transport declaration. */
509
509
  attachment_inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -517,13 +517,13 @@ export declare const HarnessManifest: z.ZodObject<{
517
517
  mime_types: string[];
518
518
  max_bytes: number;
519
519
  max_count: number;
520
- transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
520
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
521
521
  }, {
522
522
  kind: "file" | "image";
523
523
  mime_types: string[];
524
524
  max_bytes: number;
525
525
  max_count: number;
526
- transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
526
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
527
527
  }>, "many">>;
528
528
  /**
529
529
  * The adapter can inject engine-owned MCP servers into the harness sandbox
@@ -545,51 +545,51 @@ export declare const HarnessManifest: z.ZodObject<{
545
545
  mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
546
546
  }, "strip", z.ZodTypeAny, {
547
547
  auth: {
548
- supported_sources: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[];
549
- preferred_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
548
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
549
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
550
550
  credential_transports: {
551
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
552
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
553
- relocatable_by: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[];
551
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
552
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
553
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
554
554
  }[];
555
555
  };
556
556
  access_control: {
557
- readonly_mechanism: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist";
557
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
558
558
  };
559
559
  isolation: {
560
- supported_containment: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[];
560
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
561
561
  };
562
562
  attachment_inputs: {
563
563
  kind: "file" | "image";
564
564
  mime_types: string[];
565
565
  max_bytes: number;
566
566
  max_count: number;
567
- transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
567
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
568
568
  }[];
569
569
  mcp_injection: boolean;
570
570
  mcp_injection_requires_full_access: boolean;
571
571
  }, {
572
572
  auth?: {
573
- supported_sources?: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[] | undefined;
574
- preferred_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
573
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
574
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
575
575
  credential_transports?: {
576
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
577
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
578
- relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
576
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
577
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
578
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
579
579
  }[] | undefined;
580
580
  } | undefined;
581
581
  access_control?: {
582
- readonly_mechanism?: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist" | undefined;
582
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
583
583
  } | undefined;
584
584
  isolation?: {
585
- supported_containment?: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[] | undefined;
585
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
586
586
  } | undefined;
587
587
  attachment_inputs?: {
588
588
  kind: "file" | "image";
589
589
  mime_types: string[];
590
590
  max_bytes: number;
591
591
  max_count: number;
592
- transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
592
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
593
593
  }[] | undefined;
594
594
  mcp_injection?: boolean | undefined;
595
595
  mcp_injection_requires_full_access?: boolean | undefined;
@@ -636,8 +636,8 @@ export declare const HarnessManifest: z.ZodObject<{
636
636
  * and the attempt finalizer demands a report only from them.
637
637
  * - `constrained`: a native schema-constrained transport carries it
638
638
  * (codex --output-schema, claude StructuredOutput tool).
639
- * - `validated`: no native flag; the whole final answer is validated JSON
640
- * (cursor's instructed fenced envelope on the existing parse path).
639
+ * - `validated`: no native flag; an instructed terminal metadata block is
640
+ * validated (cursor's fenced WorkReport footer on the existing parse path).
641
641
  * - `unsupported`: the route cannot carry a WorkReport; the work_state axis
642
642
  * stays `unverified` (a disclosed absence, never a failure).
643
643
  */
@@ -648,9 +648,9 @@ export declare const HarnessManifest: z.ZodObject<{
648
648
  * shape (D-16). `side_tool` (claude --json-schema materializes a
649
649
  * StructuredOutput tool; the prose message stays markdown) lets a
650
650
  * WorkReport-only envelope ride the tool while the markdown remains the
651
- * deliverable. `final_message` (codex --output-schema, cursor fenced JSON)
652
- * consumes the final message, so a no-caller WorkReport envelope must wrap
653
- * the markdown deliverable as `output: string`.
651
+ * deliverable. `final_message` (codex --output-schema) consumes the final
652
+ * message, so its no-caller envelope wraps markdown as `output: string`;
653
+ * Cursor's validated footer is separate.
654
654
  */
655
655
  structured_output_channel: z.ZodDefault<z.ZodEnum<["side_tool", "final_message"]>>;
656
656
  /**
@@ -714,20 +714,20 @@ export declare const HarnessManifest: z.ZodObject<{
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  plan: boolean;
716
716
  implement: boolean;
717
+ implementation_transport: "git_patch_envelope" | "workspace";
717
718
  create_from_scratch: boolean;
718
719
  review: boolean;
719
720
  verify: boolean;
720
721
  synthesize: boolean;
721
- implementation_transport: "workspace" | "git_patch_envelope";
722
722
  read_files: boolean;
723
723
  browser_tool: boolean;
724
- web_policy: "none" | "native" | "tools" | "uncontrolled";
724
+ web_policy: "native" | "none" | "tools" | "uncontrolled";
725
725
  max_turns: boolean;
726
726
  tool_lists: boolean;
727
727
  interactive: boolean;
728
728
  json_schema_output: boolean;
729
- work_report_transport: "constrained" | "validated" | "unsupported";
730
- structured_output_channel: "side_tool" | "final_message";
729
+ work_report_transport: "constrained" | "unsupported" | "validated";
730
+ structured_output_channel: "final_message" | "side_tool";
731
731
  effort_levels: string[];
732
732
  model_effort_levels: Record<string, {
733
733
  levels: string[];
@@ -742,20 +742,20 @@ export declare const HarnessManifest: z.ZodObject<{
742
742
  }, {
743
743
  plan?: boolean | undefined;
744
744
  implement?: boolean | undefined;
745
+ implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
745
746
  create_from_scratch?: boolean | undefined;
746
747
  review?: boolean | undefined;
747
748
  verify?: boolean | undefined;
748
749
  synthesize?: boolean | undefined;
749
- implementation_transport?: "workspace" | "git_patch_envelope" | undefined;
750
750
  read_files?: boolean | undefined;
751
751
  browser_tool?: boolean | undefined;
752
- web_policy?: "none" | "native" | "tools" | "uncontrolled" | undefined;
752
+ web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
753
753
  max_turns?: boolean | undefined;
754
754
  tool_lists?: boolean | undefined;
755
755
  interactive?: boolean | undefined;
756
756
  json_schema_output?: boolean | undefined;
757
- work_report_transport?: "constrained" | "validated" | "unsupported" | undefined;
758
- structured_output_channel?: "side_tool" | "final_message" | undefined;
757
+ work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
758
+ structured_output_channel?: "final_message" | "side_tool" | undefined;
759
759
  effort_levels?: string[] | undefined;
760
760
  model_effort_levels?: Record<string, {
761
761
  levels?: string[] | undefined;
@@ -771,32 +771,34 @@ export declare const HarnessManifest: z.ZodObject<{
771
771
  auth_modes: z.ZodDefault<z.ZodArray<z.ZodEnum<["local_session", "api_key", "none"]>, "many">>;
772
772
  access_profiles_supported: z.ZodDefault<z.ZodArray<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>, "many">>;
773
773
  }, "strip", z.ZodTypeAny, {
774
- display_name: string;
775
- kind: "local_cli" | "remote_api" | "fake";
776
774
  id: string;
777
- provider_family: "openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown";
775
+ display_name: string;
776
+ kind: "fake" | "local_cli" | "remote_api";
777
+ version?: string | undefined;
778
+ adapter_version?: string | undefined;
779
+ provider_family: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai";
778
780
  capability_profile: {
779
781
  auth: {
780
- supported_sources: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[];
781
- preferred_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
782
+ supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
783
+ preferred_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
782
784
  credential_transports: {
783
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
784
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
785
- relocatable_by: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[];
785
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
786
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
787
+ relocatable_by: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[];
786
788
  }[];
787
789
  };
788
790
  access_control: {
789
- readonly_mechanism: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist";
791
+ readonly_mechanism: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist";
790
792
  };
791
793
  isolation: {
792
- supported_containment: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[];
794
+ supported_containment: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[];
793
795
  };
794
796
  attachment_inputs: {
795
797
  kind: "file" | "image";
796
798
  mime_types: string[];
797
799
  max_bytes: number;
798
800
  max_count: number;
799
- transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
801
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
800
802
  }[];
801
803
  mcp_injection: boolean;
802
804
  mcp_injection_requires_full_access: boolean;
@@ -804,20 +806,20 @@ export declare const HarnessManifest: z.ZodObject<{
804
806
  capabilities: {
805
807
  plan: boolean;
806
808
  implement: boolean;
809
+ implementation_transport: "git_patch_envelope" | "workspace";
807
810
  create_from_scratch: boolean;
808
811
  review: boolean;
809
812
  verify: boolean;
810
813
  synthesize: boolean;
811
- implementation_transport: "workspace" | "git_patch_envelope";
812
814
  read_files: boolean;
813
815
  browser_tool: boolean;
814
- web_policy: "none" | "native" | "tools" | "uncontrolled";
816
+ web_policy: "native" | "none" | "tools" | "uncontrolled";
815
817
  max_turns: boolean;
816
818
  tool_lists: boolean;
817
819
  interactive: boolean;
818
820
  json_schema_output: boolean;
819
- work_report_transport: "constrained" | "validated" | "unsupported";
820
- structured_output_channel: "side_tool" | "final_message";
821
+ work_report_transport: "constrained" | "unsupported" | "validated";
822
+ structured_output_channel: "final_message" | "side_tool";
821
823
  effort_levels: string[];
822
824
  model_effort_levels: Record<string, {
823
825
  levels: string[];
@@ -830,31 +832,58 @@ export declare const HarnessManifest: z.ZodObject<{
830
832
  })[];
831
833
  known_models_verified_against: string | null;
832
834
  };
833
- auth_modes: ("api_key" | "none" | "local_session")[];
834
- access_profiles_supported: ("readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native")[];
835
- version?: string | undefined;
836
- adapter_version?: string | undefined;
835
+ auth_modes: ("api_key" | "local_session" | "none")[];
836
+ access_profiles_supported: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[];
837
837
  }, {
838
- display_name: string;
839
- kind: "local_cli" | "remote_api" | "fake";
840
838
  id: string;
839
+ display_name: string;
840
+ kind: "fake" | "local_cli" | "remote_api";
841
+ version?: string | undefined;
842
+ adapter_version?: string | undefined;
843
+ provider_family?: "anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai" | undefined;
844
+ capability_profile?: {
845
+ auth?: {
846
+ supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
847
+ preferred_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
848
+ credential_transports?: {
849
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
850
+ kind: "config_file" | "env_var" | "http_header" | "none" | "oauth_token_env" | "os_keychain";
851
+ relocatable_by?: ("CONFIG_DIR" | "ENV" | "HOME" | "none")[] | undefined;
852
+ }[] | undefined;
853
+ } | undefined;
854
+ access_control?: {
855
+ readonly_mechanism?: "fs_sandbox" | "none" | "permission_deny" | "tool_allowlist" | undefined;
856
+ } | undefined;
857
+ isolation?: {
858
+ supported_containment?: ("container" | "env_or_file_injection" | "host_user_context" | "process_sandbox" | "scoped_home_keychain_bridge")[] | undefined;
859
+ } | undefined;
860
+ attachment_inputs?: {
861
+ kind: "file" | "image";
862
+ mime_types: string[];
863
+ max_bytes: number;
864
+ max_count: number;
865
+ transport: "base64_inline" | "base64_stream" | "file_path" | "text_inline";
866
+ }[] | undefined;
867
+ mcp_injection?: boolean | undefined;
868
+ mcp_injection_requires_full_access?: boolean | undefined;
869
+ } | undefined;
841
870
  capabilities: {
842
871
  plan?: boolean | undefined;
843
872
  implement?: boolean | undefined;
873
+ implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
844
874
  create_from_scratch?: boolean | undefined;
845
875
  review?: boolean | undefined;
846
876
  verify?: boolean | undefined;
847
877
  synthesize?: boolean | undefined;
848
- implementation_transport?: "workspace" | "git_patch_envelope" | undefined;
849
878
  read_files?: boolean | undefined;
850
879
  browser_tool?: boolean | undefined;
851
- web_policy?: "none" | "native" | "tools" | "uncontrolled" | undefined;
880
+ web_policy?: "native" | "none" | "tools" | "uncontrolled" | undefined;
852
881
  max_turns?: boolean | undefined;
853
882
  tool_lists?: boolean | undefined;
854
883
  interactive?: boolean | undefined;
855
884
  json_schema_output?: boolean | undefined;
856
- work_report_transport?: "constrained" | "validated" | "unsupported" | undefined;
857
- structured_output_channel?: "side_tool" | "final_message" | undefined;
885
+ work_report_transport?: "constrained" | "unsupported" | "validated" | undefined;
886
+ structured_output_channel?: "final_message" | "side_tool" | undefined;
858
887
  effort_levels?: string[] | undefined;
859
888
  model_effort_levels?: Record<string, {
860
889
  levels?: string[] | undefined;
@@ -867,37 +896,8 @@ export declare const HarnessManifest: z.ZodObject<{
867
896
  })[] | undefined;
868
897
  known_models_verified_against?: string | null | undefined;
869
898
  };
870
- version?: string | undefined;
871
- adapter_version?: string | undefined;
872
- provider_family?: "openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown" | undefined;
873
- capability_profile?: {
874
- auth?: {
875
- supported_sources?: ("native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none")[] | undefined;
876
- preferred_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
877
- credential_transports?: {
878
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
879
- kind: "oauth_token_env" | "none" | "config_file" | "env_var" | "os_keychain" | "http_header";
880
- relocatable_by?: ("none" | "HOME" | "CONFIG_DIR" | "ENV")[] | undefined;
881
- }[] | undefined;
882
- } | undefined;
883
- access_control?: {
884
- readonly_mechanism?: "none" | "fs_sandbox" | "permission_deny" | "tool_allowlist" | undefined;
885
- } | undefined;
886
- isolation?: {
887
- supported_containment?: ("env_or_file_injection" | "scoped_home_keychain_bridge" | "host_user_context" | "process_sandbox" | "container")[] | undefined;
888
- } | undefined;
889
- attachment_inputs?: {
890
- kind: "file" | "image";
891
- mime_types: string[];
892
- max_bytes: number;
893
- max_count: number;
894
- transport: "file_path" | "base64_stream" | "base64_inline" | "text_inline";
895
- }[] | undefined;
896
- mcp_injection?: boolean | undefined;
897
- mcp_injection_requires_full_access?: boolean | undefined;
898
- } | undefined;
899
- auth_modes?: ("api_key" | "none" | "local_session")[] | undefined;
900
- access_profiles_supported?: ("readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native")[] | undefined;
899
+ auth_modes?: ("api_key" | "local_session" | "none")[] | undefined;
900
+ access_profiles_supported?: ("external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write")[] | undefined;
901
901
  }>;
902
902
  export type HarnessManifest = z.infer<typeof HarnessManifest>;
903
903
  /** Result of a conformance probe for one capability check. */
@@ -907,13 +907,13 @@ export declare const ConformanceCheck: z.ZodObject<{
907
907
  detail: z.ZodOptional<z.ZodString>;
908
908
  duration_ms: z.ZodOptional<z.ZodNumber>;
909
909
  }, "strip", z.ZodTypeAny, {
910
- status: "pass" | "fail" | "skip";
911
910
  id: string;
911
+ status: "fail" | "pass" | "skip";
912
912
  detail?: string | undefined;
913
913
  duration_ms?: number | undefined;
914
914
  }, {
915
- status: "pass" | "fail" | "skip";
916
915
  id: string;
916
+ status: "fail" | "pass" | "skip";
917
917
  detail?: string | undefined;
918
918
  duration_ms?: number | undefined;
919
919
  }>;
@@ -929,13 +929,13 @@ export declare const ConformanceReport: z.ZodObject<{
929
929
  detail: z.ZodOptional<z.ZodString>;
930
930
  duration_ms: z.ZodOptional<z.ZodNumber>;
931
931
  }, "strip", z.ZodTypeAny, {
932
- status: "pass" | "fail" | "skip";
933
932
  id: string;
933
+ status: "fail" | "pass" | "skip";
934
934
  detail?: string | undefined;
935
935
  duration_ms?: number | undefined;
936
936
  }, {
937
- status: "pass" | "fail" | "skip";
938
937
  id: string;
938
+ status: "fail" | "pass" | "skip";
939
939
  detail?: string | undefined;
940
940
  duration_ms?: number | undefined;
941
941
  }>, "many">>;
@@ -948,50 +948,50 @@ export declare const ConformanceReport: z.ZodObject<{
948
948
  verification: z.ZodEnum<["passed", "failed", "not_run"]>;
949
949
  detail: z.ZodOptional<z.ZodString>;
950
950
  }, "strict", z.ZodTypeAny, {
951
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
952
- availability: "unknown" | "available" | "unavailable";
953
- verification: "passed" | "failed" | "not_run";
951
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
952
+ availability: "available" | "unavailable" | "unknown";
953
+ verification: "failed" | "not_run" | "passed";
954
954
  detail?: string | undefined;
955
955
  }, {
956
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
957
- availability: "unknown" | "available" | "unavailable";
958
- verification: "passed" | "failed" | "not_run";
956
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
957
+ availability: "available" | "unavailable" | "unknown";
958
+ verification: "failed" | "not_run" | "passed";
959
959
  detail?: string | undefined;
960
960
  }>, "many">>;
961
961
  }, "strip", z.ZodTypeAny, {
962
- status: "unavailable" | "ok" | "degraded";
963
962
  harness_id: string;
963
+ status: "degraded" | "ok" | "unavailable";
964
964
  checks: {
965
- status: "pass" | "fail" | "skip";
966
965
  id: string;
966
+ status: "fail" | "pass" | "skip";
967
967
  detail?: string | undefined;
968
968
  duration_ms?: number | undefined;
969
969
  }[];
970
- enabled_intents: ("plan" | "spec" | "implement" | "create_from_scratch" | "repair" | "review" | "verify" | "synthesize" | "explain" | "audit")[];
971
- disabled_intents: ("plan" | "spec" | "implement" | "create_from_scratch" | "repair" | "review" | "verify" | "synthesize" | "explain" | "audit")[];
970
+ enabled_intents: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[];
971
+ disabled_intents: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[];
972
972
  reasons: string[];
973
973
  auth_sources: {
974
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
975
- availability: "unknown" | "available" | "unavailable";
976
- verification: "passed" | "failed" | "not_run";
974
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
975
+ availability: "available" | "unavailable" | "unknown";
976
+ verification: "failed" | "not_run" | "passed";
977
977
  detail?: string | undefined;
978
978
  }[];
979
979
  }, {
980
- status: "unavailable" | "ok" | "degraded";
981
980
  harness_id: string;
981
+ status: "degraded" | "ok" | "unavailable";
982
982
  checks?: {
983
- status: "pass" | "fail" | "skip";
984
983
  id: string;
984
+ status: "fail" | "pass" | "skip";
985
985
  detail?: string | undefined;
986
986
  duration_ms?: number | undefined;
987
987
  }[] | undefined;
988
- enabled_intents?: ("plan" | "spec" | "implement" | "create_from_scratch" | "repair" | "review" | "verify" | "synthesize" | "explain" | "audit")[] | undefined;
989
- disabled_intents?: ("plan" | "spec" | "implement" | "create_from_scratch" | "repair" | "review" | "verify" | "synthesize" | "explain" | "audit")[] | undefined;
988
+ enabled_intents?: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[] | undefined;
989
+ disabled_intents?: ("audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify")[] | undefined;
990
990
  reasons?: string[] | undefined;
991
991
  auth_sources?: {
992
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none";
993
- availability: "unknown" | "available" | "unavailable";
994
- verification: "passed" | "failed" | "not_run";
992
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file";
993
+ availability: "available" | "unavailable" | "unknown";
994
+ verification: "failed" | "not_run" | "passed";
995
995
  detail?: string | undefined;
996
996
  }[] | undefined;
997
997
  }>;
@@ -1015,17 +1015,17 @@ export declare const ExtraMcpServer: z.ZodObject<{
1015
1015
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1016
1016
  required: z.ZodDefault<z.ZodBoolean>;
1017
1017
  }, "strip", z.ZodTypeAny, {
1018
- command: string;
1019
1018
  name: string;
1020
- required: boolean;
1019
+ command: string;
1021
1020
  args: string[];
1022
1021
  env: Record<string, string>;
1022
+ required: boolean;
1023
1023
  }, {
1024
- command: string;
1025
1024
  name: string;
1026
- required?: boolean | undefined;
1025
+ command: string;
1027
1026
  args?: string[] | undefined;
1028
1027
  env?: Record<string, string> | undefined;
1028
+ required?: boolean | undefined;
1029
1029
  }>;
1030
1030
  export type ExtraMcpServer = z.infer<typeof ExtraMcpServer>;
1031
1031
  /** Spec passed to a harness adapter's run(). */
@@ -1049,11 +1049,11 @@ export declare const HarnessRunSpec: z.ZodObject<{
1049
1049
  allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1050
1050
  deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1051
1051
  }, "strip", z.ZodTypeAny, {
1052
- web: "off" | "auto" | "cached" | "live";
1052
+ web: "auto" | "cached" | "live" | "off";
1053
1053
  allow: string[];
1054
1054
  deny: string[];
1055
1055
  }, {
1056
- web?: "off" | "auto" | "cached" | "live" | undefined;
1056
+ web?: "auto" | "cached" | "live" | "off" | undefined;
1057
1057
  allow?: string[] | undefined;
1058
1058
  deny?: string[] | undefined;
1059
1059
  }>>;
@@ -1153,21 +1153,21 @@ export declare const HarnessRunSpec: z.ZodObject<{
1153
1153
  size_bytes: z.ZodNumber;
1154
1154
  path: z.ZodString;
1155
1155
  }, "strict", z.ZodTypeAny, {
1156
- path: string;
1157
- kind: "file" | "image";
1158
- name: string;
1159
1156
  resource_id: string;
1157
+ kind: "file" | "image";
1160
1158
  mime: string;
1159
+ name: string;
1161
1160
  sha256: string;
1162
1161
  size_bytes: number;
1163
- }, {
1164
1162
  path: string;
1165
- kind: "file" | "image";
1166
- name: string;
1163
+ }, {
1167
1164
  resource_id: string;
1165
+ kind: "file" | "image";
1168
1166
  mime: string;
1167
+ name: string;
1169
1168
  sha256: string;
1170
1169
  size_bytes: number;
1170
+ path: string;
1171
1171
  }>, "many">>;
1172
1172
  /**
1173
1173
  * Agent-driven browser wiring. Null = no browser tool this run (the common
@@ -1198,17 +1198,17 @@ export declare const HarnessRunSpec: z.ZodObject<{
1198
1198
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1199
1199
  required: z.ZodDefault<z.ZodBoolean>;
1200
1200
  }, "strip", z.ZodTypeAny, {
1201
- command: string;
1202
1201
  name: string;
1203
- required: boolean;
1202
+ command: string;
1204
1203
  args: string[];
1205
1204
  env: Record<string, string>;
1205
+ required: boolean;
1206
1206
  }, {
1207
- command: string;
1208
1207
  name: string;
1209
- required?: boolean | undefined;
1208
+ command: string;
1210
1209
  args?: string[] | undefined;
1211
1210
  env?: Record<string, string> | undefined;
1211
+ required?: boolean | undefined;
1212
1212
  }>, "many">>;
1213
1213
  /**
1214
1214
  * JSON Schema constraining the harness's FINAL message (a caller-supplied
@@ -1250,16 +1250,16 @@ export declare const HarnessRunSpec: z.ZodObject<{
1250
1250
  reason: z.ZodOptional<z.ZodString>;
1251
1251
  }, "strip", z.ZodTypeAny, {
1252
1252
  path: string;
1253
- disposition: "full" | "included" | "manifest_only" | "excluded" | "sensitive" | "binary" | "vendored" | "oversized" | "read_error" | "omitted";
1254
- reason?: string | undefined;
1253
+ disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
1255
1254
  hash?: string | undefined;
1256
1255
  bytes?: number | undefined;
1256
+ reason?: string | undefined;
1257
1257
  }, {
1258
1258
  path: string;
1259
- disposition: "full" | "included" | "manifest_only" | "excluded" | "sensitive" | "binary" | "vendored" | "oversized" | "read_error" | "omitted";
1260
- reason?: string | undefined;
1259
+ disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
1261
1260
  hash?: string | undefined;
1262
1261
  bytes?: number | undefined;
1262
+ reason?: string | undefined;
1263
1263
  }>, "many">;
1264
1264
  omissions: z.ZodArray<z.ZodObject<{
1265
1265
  path: z.ZodString;
@@ -1269,13 +1269,13 @@ export declare const HarnessRunSpec: z.ZodObject<{
1269
1269
  }, "strip", z.ZodTypeAny, {
1270
1270
  path: string;
1271
1271
  reason: string;
1272
- replacement: "map" | "none" | "summary" | "index";
1272
+ replacement: "index" | "map" | "none" | "summary";
1273
1273
  hash?: string | undefined;
1274
1274
  }, {
1275
1275
  path: string;
1276
1276
  reason: string;
1277
+ replacement?: "index" | "map" | "none" | "summary" | undefined;
1277
1278
  hash?: string | undefined;
1278
- replacement?: "map" | "none" | "summary" | "index" | undefined;
1279
1279
  }>, "many">;
1280
1280
  evidence_refs: z.ZodArray<z.ZodString, "many">;
1281
1281
  }, "strip", z.ZodTypeAny, {
@@ -1294,15 +1294,15 @@ export declare const HarnessRunSpec: z.ZodObject<{
1294
1294
  creatable_roots: string[];
1295
1295
  file_manifest: {
1296
1296
  path: string;
1297
- disposition: "full" | "included" | "manifest_only" | "excluded" | "sensitive" | "binary" | "vendored" | "oversized" | "read_error" | "omitted";
1298
- reason?: string | undefined;
1297
+ disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
1299
1298
  hash?: string | undefined;
1300
1299
  bytes?: number | undefined;
1300
+ reason?: string | undefined;
1301
1301
  }[];
1302
1302
  omissions: {
1303
1303
  path: string;
1304
1304
  reason: string;
1305
- replacement: "map" | "none" | "summary" | "index";
1305
+ replacement: "index" | "map" | "none" | "summary";
1306
1306
  hash?: string | undefined;
1307
1307
  }[];
1308
1308
  evidence_refs: string[];
@@ -1319,40 +1319,40 @@ export declare const HarnessRunSpec: z.ZodObject<{
1319
1319
  content: string;
1320
1320
  }[];
1321
1321
  editable_paths: string[];
1322
+ creatable_roots?: string[] | undefined;
1322
1323
  file_manifest: {
1323
1324
  path: string;
1324
- disposition: "full" | "included" | "manifest_only" | "excluded" | "sensitive" | "binary" | "vendored" | "oversized" | "read_error" | "omitted";
1325
- reason?: string | undefined;
1325
+ disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
1326
1326
  hash?: string | undefined;
1327
1327
  bytes?: number | undefined;
1328
+ reason?: string | undefined;
1328
1329
  }[];
1329
1330
  omissions: {
1330
1331
  path: string;
1331
1332
  reason: string;
1333
+ replacement?: "index" | "map" | "none" | "summary" | undefined;
1332
1334
  hash?: string | undefined;
1333
- replacement?: "map" | "none" | "summary" | "index" | undefined;
1334
1335
  }[];
1335
1336
  evidence_refs: string[];
1336
- creatable_roots?: string[] | undefined;
1337
1337
  }>>>;
1338
1338
  extra: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1339
1339
  }, "strip", z.ZodTypeAny, {
1340
- max_turns: number | null;
1341
- env: Record<string, string>;
1342
1340
  session_id: string;
1343
- intent: "plan" | "spec" | "implement" | "create_from_scratch" | "repair" | "review" | "verify" | "synthesize" | "explain" | "audit";
1341
+ intent: "audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify";
1344
1342
  prompt: string;
1343
+ instructions?: string | undefined;
1345
1344
  cwd: string;
1346
- access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1347
- external_context_policy: "off" | "auto" | "cached" | "live";
1345
+ access: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write";
1346
+ external_context_policy: "auto" | "cached" | "live" | "off";
1348
1347
  tool_permission_policy: {
1349
- web: "off" | "auto" | "cached" | "live";
1348
+ web: "auto" | "cached" | "live" | "off";
1350
1349
  allow: string[];
1351
1350
  deny: string[];
1352
1351
  };
1353
1352
  model_hint: string | null;
1354
1353
  effort_hint: string | null;
1355
- auth_preference: "auto" | "subscription" | "api_key";
1354
+ max_turns: number | null;
1355
+ auth_preference: "api_key" | "auto" | "subscription";
1356
1356
  credential_profile: {
1357
1357
  profile_id: string;
1358
1358
  harness_id: string;
@@ -1364,31 +1364,30 @@ export declare const HarnessRunSpec: z.ZodObject<{
1364
1364
  created_at: string | null;
1365
1365
  } | null;
1366
1366
  resume_session_id: string | null;
1367
- env_inheritance: "mirror_native" | "clean";
1368
- evidence_policy: "stream_only" | "allow_vendor_session_artifacts";
1367
+ env_inheritance: "clean" | "mirror_native";
1368
+ evidence_policy: "allow_vendor_session_artifacts" | "stream_only";
1369
1369
  stream_deltas: boolean;
1370
+ env: Record<string, string>;
1370
1371
  attachments: {
1371
- path: string;
1372
- kind: "file" | "image";
1373
- name: string;
1374
1372
  resource_id: string;
1373
+ kind: "file" | "image";
1375
1374
  mime: string;
1375
+ name: string;
1376
1376
  sha256: string;
1377
1377
  size_bytes: number;
1378
+ path: string;
1378
1379
  }[];
1379
1380
  browser: {
1380
1381
  output_dir: string | null;
1381
1382
  headless: boolean;
1382
1383
  } | null;
1383
1384
  extra_mcp_servers: {
1384
- command: string;
1385
1385
  name: string;
1386
- required: boolean;
1386
+ command: string;
1387
1387
  args: string[];
1388
1388
  env: Record<string, string>;
1389
+ required: boolean;
1389
1390
  }[];
1390
- extra: Record<string, unknown>;
1391
- instructions?: string | undefined;
1392
1391
  output_schema?: unknown;
1393
1392
  raw_context_packet?: {
1394
1393
  schema_version: 1;
@@ -1406,37 +1405,37 @@ export declare const HarnessRunSpec: z.ZodObject<{
1406
1405
  creatable_roots: string[];
1407
1406
  file_manifest: {
1408
1407
  path: string;
1409
- disposition: "full" | "included" | "manifest_only" | "excluded" | "sensitive" | "binary" | "vendored" | "oversized" | "read_error" | "omitted";
1410
- reason?: string | undefined;
1408
+ disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
1411
1409
  hash?: string | undefined;
1412
1410
  bytes?: number | undefined;
1411
+ reason?: string | undefined;
1413
1412
  }[];
1414
1413
  omissions: {
1415
1414
  path: string;
1416
1415
  reason: string;
1417
- replacement: "map" | "none" | "summary" | "index";
1416
+ replacement: "index" | "map" | "none" | "summary";
1418
1417
  hash?: string | undefined;
1419
1418
  }[];
1420
1419
  evidence_refs: string[];
1421
1420
  } | null | undefined;
1421
+ extra: Record<string, unknown>;
1422
1422
  }, {
1423
1423
  session_id: string;
1424
- intent: "plan" | "spec" | "implement" | "create_from_scratch" | "repair" | "review" | "verify" | "synthesize" | "explain" | "audit";
1424
+ intent: "audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify";
1425
1425
  prompt: string;
1426
- cwd: string;
1427
1426
  instructions?: string | undefined;
1428
- max_turns?: number | null | undefined;
1429
- env?: Record<string, string> | undefined;
1430
- access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
1431
- external_context_policy?: "off" | "auto" | "cached" | "live" | undefined;
1427
+ cwd: string;
1428
+ access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
1429
+ external_context_policy?: "auto" | "cached" | "live" | "off" | undefined;
1432
1430
  tool_permission_policy?: {
1433
- web?: "off" | "auto" | "cached" | "live" | undefined;
1431
+ web?: "auto" | "cached" | "live" | "off" | undefined;
1434
1432
  allow?: string[] | undefined;
1435
1433
  deny?: string[] | undefined;
1436
1434
  } | undefined;
1437
1435
  model_hint?: string | null | undefined;
1438
1436
  effort_hint?: string | null | undefined;
1439
- auth_preference?: "auto" | "subscription" | "api_key" | undefined;
1437
+ max_turns?: number | null | undefined;
1438
+ auth_preference?: "api_key" | "auto" | "subscription" | undefined;
1440
1439
  credential_profile?: {
1441
1440
  profile_id: string;
1442
1441
  harness_id: string;
@@ -1448,28 +1447,29 @@ export declare const HarnessRunSpec: z.ZodObject<{
1448
1447
  created_at?: string | null | undefined;
1449
1448
  } | null | undefined;
1450
1449
  resume_session_id?: string | null | undefined;
1451
- env_inheritance?: "mirror_native" | "clean" | undefined;
1452
- evidence_policy?: "stream_only" | "allow_vendor_session_artifacts" | undefined;
1450
+ env_inheritance?: "clean" | "mirror_native" | undefined;
1451
+ evidence_policy?: "allow_vendor_session_artifacts" | "stream_only" | undefined;
1453
1452
  stream_deltas?: boolean | undefined;
1453
+ env?: Record<string, string> | undefined;
1454
1454
  attachments?: {
1455
- path: string;
1456
- kind: "file" | "image";
1457
- name: string;
1458
1455
  resource_id: string;
1456
+ kind: "file" | "image";
1459
1457
  mime: string;
1458
+ name: string;
1460
1459
  sha256: string;
1461
1460
  size_bytes: number;
1461
+ path: string;
1462
1462
  }[] | undefined;
1463
1463
  browser?: {
1464
1464
  output_dir?: string | null | undefined;
1465
1465
  headless?: boolean | undefined;
1466
1466
  } | null | undefined;
1467
1467
  extra_mcp_servers?: {
1468
- command: string;
1469
1468
  name: string;
1470
- required?: boolean | undefined;
1469
+ command: string;
1471
1470
  args?: string[] | undefined;
1472
1471
  env?: Record<string, string> | undefined;
1472
+ required?: boolean | undefined;
1473
1473
  }[] | undefined;
1474
1474
  output_schema?: unknown;
1475
1475
  raw_context_packet?: {
@@ -1485,21 +1485,21 @@ export declare const HarnessRunSpec: z.ZodObject<{
1485
1485
  content: string;
1486
1486
  }[];
1487
1487
  editable_paths: string[];
1488
+ creatable_roots?: string[] | undefined;
1488
1489
  file_manifest: {
1489
1490
  path: string;
1490
- disposition: "full" | "included" | "manifest_only" | "excluded" | "sensitive" | "binary" | "vendored" | "oversized" | "read_error" | "omitted";
1491
- reason?: string | undefined;
1491
+ disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
1492
1492
  hash?: string | undefined;
1493
1493
  bytes?: number | undefined;
1494
+ reason?: string | undefined;
1494
1495
  }[];
1495
1496
  omissions: {
1496
1497
  path: string;
1497
1498
  reason: string;
1499
+ replacement?: "index" | "map" | "none" | "summary" | undefined;
1498
1500
  hash?: string | undefined;
1499
- replacement?: "map" | "none" | "summary" | "index" | undefined;
1500
1501
  }[];
1501
1502
  evidence_refs: string[];
1502
- creatable_roots?: string[] | undefined;
1503
1503
  } | null | undefined;
1504
1504
  extra?: Record<string, unknown> | undefined;
1505
1505
  }>;
@@ -1535,22 +1535,22 @@ export declare const InteractionQuestion: z.ZodObject<{
1535
1535
  }>, "many">>;
1536
1536
  multi_select: z.ZodDefault<z.ZodBoolean>;
1537
1537
  }, "strip", z.ZodTypeAny, {
1538
+ id: string;
1539
+ question: string;
1540
+ header: string | null;
1538
1541
  options: {
1539
1542
  label: string;
1540
1543
  description: string | null;
1541
1544
  }[];
1542
- id: string;
1543
- question: string;
1544
- header: string | null;
1545
1545
  multi_select: boolean;
1546
1546
  }, {
1547
1547
  id: string;
1548
1548
  question: string;
1549
+ header?: string | null | undefined;
1549
1550
  options?: {
1550
1551
  label: string;
1551
1552
  description?: string | null | undefined;
1552
1553
  }[] | undefined;
1553
- header?: string | null | undefined;
1554
1554
  multi_select?: boolean | undefined;
1555
1555
  }>;
1556
1556
  export type InteractionQuestion = z.infer<typeof InteractionQuestion>;
@@ -1578,22 +1578,22 @@ export declare const InteractionRequest: z.ZodObject<{
1578
1578
  }>, "many">>;
1579
1579
  multi_select: z.ZodDefault<z.ZodBoolean>;
1580
1580
  }, "strip", z.ZodTypeAny, {
1581
+ id: string;
1582
+ question: string;
1583
+ header: string | null;
1581
1584
  options: {
1582
1585
  label: string;
1583
1586
  description: string | null;
1584
1587
  }[];
1585
- id: string;
1586
- question: string;
1587
- header: string | null;
1588
1588
  multi_select: boolean;
1589
1589
  }, {
1590
1590
  id: string;
1591
1591
  question: string;
1592
+ header?: string | null | undefined;
1592
1593
  options?: {
1593
1594
  label: string;
1594
1595
  description?: string | null | undefined;
1595
1596
  }[] | undefined;
1596
- header?: string | null | undefined;
1597
1597
  multi_select?: boolean | undefined;
1598
1598
  }>, "many">>;
1599
1599
  /** Native tool that raised the request (e.g. "AskUserQuestion"). */
@@ -1601,13 +1601,13 @@ export declare const InteractionRequest: z.ZodObject<{
1601
1601
  }, "strip", z.ZodTypeAny, {
1602
1602
  interaction_id: string;
1603
1603
  questions: {
1604
+ id: string;
1605
+ question: string;
1606
+ header: string | null;
1604
1607
  options: {
1605
1608
  label: string;
1606
1609
  description: string | null;
1607
1610
  }[];
1608
- id: string;
1609
- question: string;
1610
- header: string | null;
1611
1611
  multi_select: boolean;
1612
1612
  }[];
1613
1613
  source_tool: string | null;
@@ -1616,11 +1616,11 @@ export declare const InteractionRequest: z.ZodObject<{
1616
1616
  questions?: {
1617
1617
  id: string;
1618
1618
  question: string;
1619
+ header?: string | null | undefined;
1619
1620
  options?: {
1620
1621
  label: string;
1621
1622
  description?: string | null | undefined;
1622
1623
  }[] | undefined;
1623
- header?: string | null | undefined;
1624
1624
  multi_select?: boolean | undefined;
1625
1625
  }[] | undefined;
1626
1626
  source_tool?: string | null | undefined;
@@ -1696,25 +1696,25 @@ export declare const HarnessEvent: z.ZodObject<{
1696
1696
  exit_code: z.ZodOptional<z.ZodNumber>;
1697
1697
  web_retrieval: z.ZodOptional<z.ZodEnum<["verified", "dispatched", "failed"]>>;
1698
1698
  }, "strip", z.ZodTypeAny, {
1699
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
1700
1699
  name: string;
1701
- status?: "cancelled" | "ok" | "error" | "denied" | undefined;
1700
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
1702
1701
  use_id?: string | undefined;
1703
1702
  target?: string | undefined;
1703
+ status?: "cancelled" | "denied" | "error" | "ok" | undefined;
1704
1704
  error_summary?: string | undefined;
1705
1705
  content_summary?: string | undefined;
1706
1706
  exit_code?: number | undefined;
1707
- web_retrieval?: "failed" | "verified" | "dispatched" | undefined;
1707
+ web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
1708
1708
  }, {
1709
1709
  name: string;
1710
- status?: "cancelled" | "ok" | "error" | "denied" | undefined;
1711
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
1710
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
1712
1711
  use_id?: string | undefined;
1713
1712
  target?: string | undefined;
1713
+ status?: "cancelled" | "denied" | "error" | "ok" | undefined;
1714
1714
  error_summary?: string | undefined;
1715
1715
  content_summary?: string | undefined;
1716
1716
  exit_code?: number | undefined;
1717
- web_retrieval?: "failed" | "verified" | "dispatched" | undefined;
1717
+ web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
1718
1718
  }>>;
1719
1719
  /** Set on `interaction_requested` events. */
1720
1720
  interaction: z.ZodOptional<z.ZodObject<{
@@ -1736,22 +1736,22 @@ export declare const HarnessEvent: z.ZodObject<{
1736
1736
  }>, "many">>;
1737
1737
  multi_select: z.ZodDefault<z.ZodBoolean>;
1738
1738
  }, "strip", z.ZodTypeAny, {
1739
+ id: string;
1740
+ question: string;
1741
+ header: string | null;
1739
1742
  options: {
1740
1743
  label: string;
1741
1744
  description: string | null;
1742
1745
  }[];
1743
- id: string;
1744
- question: string;
1745
- header: string | null;
1746
1746
  multi_select: boolean;
1747
1747
  }, {
1748
1748
  id: string;
1749
1749
  question: string;
1750
+ header?: string | null | undefined;
1750
1751
  options?: {
1751
1752
  label: string;
1752
1753
  description?: string | null | undefined;
1753
1754
  }[] | undefined;
1754
- header?: string | null | undefined;
1755
1755
  multi_select?: boolean | undefined;
1756
1756
  }>, "many">>;
1757
1757
  /** Native tool that raised the request (e.g. "AskUserQuestion"). */
@@ -1759,13 +1759,13 @@ export declare const HarnessEvent: z.ZodObject<{
1759
1759
  }, "strip", z.ZodTypeAny, {
1760
1760
  interaction_id: string;
1761
1761
  questions: {
1762
+ id: string;
1763
+ question: string;
1764
+ header: string | null;
1762
1765
  options: {
1763
1766
  label: string;
1764
1767
  description: string | null;
1765
1768
  }[];
1766
- id: string;
1767
- question: string;
1768
- header: string | null;
1769
1769
  multi_select: boolean;
1770
1770
  }[];
1771
1771
  source_tool: string | null;
@@ -1774,11 +1774,11 @@ export declare const HarnessEvent: z.ZodObject<{
1774
1774
  questions?: {
1775
1775
  id: string;
1776
1776
  question: string;
1777
+ header?: string | null | undefined;
1777
1778
  options?: {
1778
1779
  label: string;
1779
1780
  description?: string | null | undefined;
1780
1781
  }[] | undefined;
1781
- header?: string | null | undefined;
1782
1782
  multi_select?: boolean | undefined;
1783
1783
  }[] | undefined;
1784
1784
  source_tool?: string | null | undefined;
@@ -1801,8 +1801,8 @@ export declare const HarnessEvent: z.ZodObject<{
1801
1801
  }>, "many">;
1802
1802
  }, "strip", z.ZodTypeAny, {
1803
1803
  schema_version: 1;
1804
- base_tree_sha: string;
1805
1804
  context_packet_hash: string;
1805
+ base_tree_sha: string;
1806
1806
  patch: string;
1807
1807
  patch_hash: string;
1808
1808
  touched_paths: {
@@ -1811,8 +1811,8 @@ export declare const HarnessEvent: z.ZodObject<{
1811
1811
  }[];
1812
1812
  }, {
1813
1813
  schema_version: 1;
1814
- base_tree_sha: string;
1815
1814
  context_packet_hash: string;
1815
+ base_tree_sha: string;
1816
1816
  patch: string;
1817
1817
  patch_hash: string;
1818
1818
  touched_paths: {
@@ -1829,17 +1829,17 @@ export declare const HarnessEvent: z.ZodObject<{
1829
1829
  /** True when cost_usd is derived from token pricing (not natively reported). */
1830
1830
  estimated: z.ZodOptional<z.ZodBoolean>;
1831
1831
  }, "strip", z.ZodTypeAny, {
1832
- estimated?: boolean | undefined;
1833
1832
  input_tokens?: number | undefined;
1834
1833
  output_tokens?: number | undefined;
1835
1834
  cached_input_tokens?: number | undefined;
1836
1835
  cost_usd?: number | undefined;
1837
- }, {
1838
1836
  estimated?: boolean | undefined;
1837
+ }, {
1839
1838
  input_tokens?: number | undefined;
1840
1839
  output_tokens?: number | undefined;
1841
1840
  cached_input_tokens?: number | undefined;
1842
1841
  cost_usd?: number | undefined;
1842
+ estimated?: boolean | undefined;
1843
1843
  }>>;
1844
1844
  observed_model: z.ZodOptional<z.ZodString>;
1845
1845
  credential_route: z.ZodOptional<z.ZodEnum<["vendor_native", "managed_api_key", "local"]>>;
@@ -1856,6 +1856,7 @@ export declare const HarnessEvent: z.ZodObject<{
1856
1856
  constraints: z.ZodArray<z.ZodObject<{
1857
1857
  id: z.ZodString;
1858
1858
  label: z.ZodString;
1859
+ applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1859
1860
  used_ratio: z.ZodNullable<z.ZodNumber>;
1860
1861
  window_seconds: z.ZodNullable<z.ZodNumber>;
1861
1862
  resets_at: z.ZodNullable<z.ZodString>;
@@ -1863,6 +1864,7 @@ export declare const HarnessEvent: z.ZodObject<{
1863
1864
  }, "strict", z.ZodTypeAny, {
1864
1865
  id: string;
1865
1866
  label: string;
1867
+ applies_to_models?: string[] | null | undefined;
1866
1868
  used_ratio: number | null;
1867
1869
  window_seconds: number | null;
1868
1870
  resets_at: string | null;
@@ -1870,35 +1872,38 @@ export declare const HarnessEvent: z.ZodObject<{
1870
1872
  }, {
1871
1873
  id: string;
1872
1874
  label: string;
1875
+ applies_to_models?: string[] | null | undefined;
1873
1876
  used_ratio: number | null;
1874
1877
  window_seconds: number | null;
1875
1878
  resets_at: string | null;
1876
1879
  cooldown_until?: string | null | undefined;
1877
1880
  }>, "many">;
1878
1881
  }, "strict", z.ZodTypeAny, {
1879
- source: "codex_app_server" | "codex_rollout" | "claude_statusline" | "claude_api_retry" | "claude_oauth_usage";
1882
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1880
1883
  plan_label: string | null;
1881
1884
  subject_id: string | null;
1882
1885
  constraints: {
1883
1886
  id: string;
1884
1887
  label: string;
1888
+ applies_to_models?: string[] | null | undefined;
1885
1889
  used_ratio: number | null;
1886
1890
  window_seconds: number | null;
1887
1891
  resets_at: string | null;
1888
1892
  cooldown_until: string | null;
1889
1893
  }[];
1890
1894
  }, {
1891
- source: "codex_app_server" | "codex_rollout" | "claude_statusline" | "claude_api_retry" | "claude_oauth_usage";
1895
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
1896
+ plan_label?: string | null | undefined;
1897
+ subject_id?: string | null | undefined;
1892
1898
  constraints: {
1893
1899
  id: string;
1894
1900
  label: string;
1901
+ applies_to_models?: string[] | null | undefined;
1895
1902
  used_ratio: number | null;
1896
1903
  window_seconds: number | null;
1897
1904
  resets_at: string | null;
1898
1905
  cooldown_until?: string | null | undefined;
1899
1906
  }[];
1900
- plan_label?: string | null | undefined;
1901
- subject_id?: string | null | undefined;
1902
1907
  }>>;
1903
1908
  /**
1904
1909
  * Typed live plan/todo progress: adapters map their native plan tools
@@ -1913,25 +1918,25 @@ export declare const HarnessEvent: z.ZodObject<{
1913
1918
  title: z.ZodString;
1914
1919
  status: z.ZodEnum<["pending", "in_progress", "completed"]>;
1915
1920
  }, "strip", z.ZodTypeAny, {
1916
- status: "pending" | "completed" | "in_progress";
1917
1921
  id: string;
1918
1922
  title: string;
1923
+ status: "completed" | "in_progress" | "pending";
1919
1924
  }, {
1920
- status: "pending" | "completed" | "in_progress";
1921
1925
  id: string;
1922
1926
  title: string;
1927
+ status: "completed" | "in_progress" | "pending";
1923
1928
  }>, "many">>;
1924
1929
  }, "strip", z.ZodTypeAny, {
1925
1930
  items: {
1926
- status: "pending" | "completed" | "in_progress";
1927
1931
  id: string;
1928
1932
  title: string;
1933
+ status: "completed" | "in_progress" | "pending";
1929
1934
  }[];
1930
1935
  }, {
1931
1936
  items?: {
1932
- status: "pending" | "completed" | "in_progress";
1933
1937
  id: string;
1934
1938
  title: string;
1939
+ status: "completed" | "in_progress" | "pending";
1935
1940
  }[] | undefined;
1936
1941
  }>>;
1937
1942
  /**
@@ -1941,12 +1946,18 @@ export declare const HarnessEvent: z.ZodObject<{
1941
1946
  * old string-matching governance in budget/observe.ts.
1942
1947
  */
1943
1948
  rate_limit: z.ZodOptional<z.ZodObject<{
1949
+ constraint_id: z.ZodOptional<z.ZodString>;
1950
+ applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1944
1951
  resets_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1945
1952
  retry_delay_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1946
1953
  }, "strip", z.ZodTypeAny, {
1954
+ constraint_id?: string | undefined;
1955
+ applies_to_models?: string[] | null | undefined;
1947
1956
  resets_at: string | null;
1948
1957
  retry_delay_ms: number | null;
1949
1958
  }, {
1959
+ constraint_id?: string | undefined;
1960
+ applies_to_models?: string[] | null | undefined;
1950
1961
  resets_at?: string | null | undefined;
1951
1962
  retry_delay_ms?: number | null | undefined;
1952
1963
  }>>;
@@ -1963,19 +1974,19 @@ export declare const HarnessEvent: z.ZodObject<{
1963
1974
  attempt: z.ZodOptional<z.ZodNumber>;
1964
1975
  max_retries: z.ZodOptional<z.ZodNumber>;
1965
1976
  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"]>>;
1977
+ 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
1978
  }, "strip", z.ZodTypeAny, {
1968
1979
  kind: "api_retry";
1969
- retry_delay_ms?: number | undefined;
1970
1980
  attempt?: number | undefined;
1971
1981
  max_retries?: number | undefined;
1972
- 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;
1982
+ retry_delay_ms?: number | undefined;
1983
+ 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
1984
  }, {
1974
1985
  kind: "api_retry";
1975
- retry_delay_ms?: number | undefined;
1976
1986
  attempt?: number | undefined;
1977
1987
  max_retries?: number | undefined;
1978
- 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;
1988
+ retry_delay_ms?: number | undefined;
1989
+ 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
1990
  }>>;
1980
1991
  /**
1981
1992
  * Typed transient-failure signal. Adapters set this from native CLI/API error
@@ -1986,10 +1997,10 @@ export declare const HarnessEvent: z.ZodObject<{
1986
1997
  kind: z.ZodDefault<z.ZodEnum<["network", "stream_disconnect", "service_unavailable", "timeout", "unknown"]>>;
1987
1998
  retry_delay_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1988
1999
  }, "strip", z.ZodTypeAny, {
1989
- kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
2000
+ kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
1990
2001
  retry_delay_ms: number | null;
1991
2002
  }, {
1992
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
2003
+ kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
1993
2004
  retry_delay_ms?: number | null | undefined;
1994
2005
  }>>;
1995
2006
  /**
@@ -2009,14 +2020,14 @@ export declare const HarnessEvent: z.ZodObject<{
2009
2020
  trigger: z.ZodDefault<z.ZodNullable<z.ZodEnum<["manual", "auto"]>>>;
2010
2021
  pre_tokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2011
2022
  }, "strip", z.ZodTypeAny, {
2012
- kind: "compaction_started" | "compaction_completed" | "capacity_exhausted";
2013
- cause: "unknown" | "prompt_too_long" | "repeated_refill" | "blocking_limit" | "window_exceeded";
2023
+ kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
2024
+ cause: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded";
2014
2025
  native_code: string | null;
2015
2026
  trigger: "auto" | "manual" | null;
2016
2027
  pre_tokens: number | null;
2017
2028
  }, {
2018
- kind: "compaction_started" | "compaction_completed" | "capacity_exhausted";
2019
- cause?: "unknown" | "prompt_too_long" | "repeated_refill" | "blocking_limit" | "window_exceeded" | undefined;
2029
+ kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
2030
+ cause?: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded" | undefined;
2020
2031
  native_code?: string | null | undefined;
2021
2032
  trigger?: "auto" | "manual" | null | undefined;
2022
2033
  pre_tokens?: number | null | undefined;
@@ -2025,64 +2036,40 @@ export declare const HarnessEvent: z.ZodObject<{
2025
2036
  aborted: z.ZodOptional<z.ZodBoolean>;
2026
2037
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2027
2038
  }, "strip", z.ZodTypeAny, {
2028
- type: "message" | "status" | "completed" | "error" | "started" | "thinking" | "tool_call" | "tool_result" | "interaction_requested" | "file_change" | "patch_produced" | "usage" | "context";
2039
+ type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
2029
2040
  session_id: string;
2030
2041
  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
2042
  text?: string | undefined;
2056
2043
  final?: boolean | undefined;
2057
2044
  tool?: {
2058
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
2059
2045
  name: string;
2060
- status?: "cancelled" | "ok" | "error" | "denied" | undefined;
2046
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
2061
2047
  use_id?: string | undefined;
2062
2048
  target?: string | undefined;
2049
+ status?: "cancelled" | "denied" | "error" | "ok" | undefined;
2063
2050
  error_summary?: string | undefined;
2064
2051
  content_summary?: string | undefined;
2065
2052
  exit_code?: number | undefined;
2066
- web_retrieval?: "failed" | "verified" | "dispatched" | undefined;
2053
+ web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
2067
2054
  } | undefined;
2068
2055
  interaction?: {
2069
2056
  interaction_id: string;
2070
2057
  questions: {
2058
+ id: string;
2059
+ question: string;
2060
+ header: string | null;
2071
2061
  options: {
2072
2062
  label: string;
2073
2063
  description: string | null;
2074
2064
  }[];
2075
- id: string;
2076
- question: string;
2077
- header: string | null;
2078
2065
  multi_select: boolean;
2079
2066
  }[];
2080
2067
  source_tool: string | null;
2081
2068
  } | undefined;
2082
2069
  patch_envelope?: {
2083
2070
  schema_version: 1;
2084
- base_tree_sha: string;
2085
2071
  context_packet_hash: string;
2072
+ base_tree_sha: string;
2086
2073
  patch: string;
2087
2074
  patch_hash: string;
2088
2075
  touched_paths: {
@@ -2090,17 +2077,26 @@ export declare const HarnessEvent: z.ZodObject<{
2090
2077
  expected_blob_oid: string | null;
2091
2078
  }[];
2092
2079
  } | undefined;
2093
- refusal_code?: "raw_patch_requires_isolation" | "raw_patch_missing_evidence" | "raw_patch_digest_mismatch" | "raw_patch_base_mismatch" | "raw_patch_path_traversal" | "raw_patch_outside_scope" | "raw_patch_stale_preimage" | "raw_patch_binary_unsupported" | "raw_patch_sensitive_content" | "raw_patch_truncated" | "raw_patch_apply_failed" | undefined;
2080
+ 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;
2081
+ usage?: {
2082
+ input_tokens?: number | undefined;
2083
+ output_tokens?: number | undefined;
2084
+ cached_input_tokens?: number | undefined;
2085
+ cost_usd?: number | undefined;
2086
+ estimated?: boolean | undefined;
2087
+ } | undefined;
2094
2088
  observed_model?: string | undefined;
2095
- credential_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | undefined;
2089
+ credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
2090
+ credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
2096
2091
  credential_profile_id?: string | undefined;
2097
2092
  quota?: {
2098
- source: "codex_app_server" | "codex_rollout" | "claude_statusline" | "claude_api_retry" | "claude_oauth_usage";
2093
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2099
2094
  plan_label: string | null;
2100
2095
  subject_id: string | null;
2101
2096
  constraints: {
2102
2097
  id: string;
2103
2098
  label: string;
2099
+ applies_to_models?: string[] | null | undefined;
2104
2100
  used_ratio: number | null;
2105
2101
  window_seconds: number | null;
2106
2102
  resets_at: string | null;
@@ -2109,79 +2105,73 @@ export declare const HarnessEvent: z.ZodObject<{
2109
2105
  } | undefined;
2110
2106
  plan_progress?: {
2111
2107
  items: {
2112
- status: "pending" | "completed" | "in_progress";
2113
2108
  id: string;
2114
2109
  title: string;
2110
+ status: "completed" | "in_progress" | "pending";
2115
2111
  }[];
2116
2112
  } | undefined;
2117
2113
  rate_limit?: {
2114
+ constraint_id?: string | undefined;
2115
+ applies_to_models?: string[] | null | undefined;
2118
2116
  resets_at: string | null;
2119
2117
  retry_delay_ms: number | null;
2120
2118
  } | 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
2119
  status?: {
2132
2120
  kind: "api_retry";
2133
- retry_delay_ms?: number | undefined;
2134
2121
  attempt?: number | undefined;
2135
2122
  max_retries?: number | undefined;
2136
- 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;
2123
+ retry_delay_ms?: number | undefined;
2124
+ 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
2125
  } | undefined;
2138
- error?: string | undefined;
2139
- credential_route?: "local" | "vendor_native" | "managed_api_key" | undefined;
2140
- usage?: {
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;
2126
+ transient?: {
2127
+ kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
2128
+ retry_delay_ms: number | null;
2146
2129
  } | undefined;
2147
2130
  context?: {
2148
- kind: "compaction_started" | "compaction_completed" | "capacity_exhausted";
2149
- cause?: "unknown" | "prompt_too_long" | "repeated_refill" | "blocking_limit" | "window_exceeded" | undefined;
2150
- native_code?: string | null | undefined;
2151
- trigger?: "auto" | "manual" | null | undefined;
2152
- pre_tokens?: number | null | undefined;
2131
+ kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
2132
+ cause: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded";
2133
+ native_code: string | null;
2134
+ trigger: "auto" | "manual" | null;
2135
+ pre_tokens: number | null;
2153
2136
  } | undefined;
2137
+ error?: string | undefined;
2138
+ aborted?: boolean | undefined;
2139
+ payload?: Record<string, unknown> | undefined;
2140
+ }, {
2141
+ type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
2142
+ session_id: string;
2143
+ ts: string;
2154
2144
  text?: string | undefined;
2155
2145
  final?: boolean | undefined;
2156
2146
  tool?: {
2157
2147
  name: string;
2158
- status?: "cancelled" | "ok" | "error" | "denied" | undefined;
2159
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
2148
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
2160
2149
  use_id?: string | undefined;
2161
2150
  target?: string | undefined;
2151
+ status?: "cancelled" | "denied" | "error" | "ok" | undefined;
2162
2152
  error_summary?: string | undefined;
2163
2153
  content_summary?: string | undefined;
2164
2154
  exit_code?: number | undefined;
2165
- web_retrieval?: "failed" | "verified" | "dispatched" | undefined;
2155
+ web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
2166
2156
  } | undefined;
2167
2157
  interaction?: {
2168
2158
  interaction_id: string;
2169
2159
  questions?: {
2170
2160
  id: string;
2171
2161
  question: string;
2162
+ header?: string | null | undefined;
2172
2163
  options?: {
2173
2164
  label: string;
2174
2165
  description?: string | null | undefined;
2175
2166
  }[] | undefined;
2176
- header?: string | null | undefined;
2177
2167
  multi_select?: boolean | undefined;
2178
2168
  }[] | undefined;
2179
2169
  source_tool?: string | null | undefined;
2180
2170
  } | undefined;
2181
2171
  patch_envelope?: {
2182
2172
  schema_version: 1;
2183
- base_tree_sha: string;
2184
2173
  context_packet_hash: string;
2174
+ base_tree_sha: string;
2185
2175
  patch: string;
2186
2176
  patch_hash: string;
2187
2177
  touched_paths: {
@@ -2189,38 +2179,65 @@ export declare const HarnessEvent: z.ZodObject<{
2189
2179
  expected_blob_oid: string | null;
2190
2180
  }[];
2191
2181
  } | undefined;
2192
- refusal_code?: "raw_patch_requires_isolation" | "raw_patch_missing_evidence" | "raw_patch_digest_mismatch" | "raw_patch_base_mismatch" | "raw_patch_path_traversal" | "raw_patch_outside_scope" | "raw_patch_stale_preimage" | "raw_patch_binary_unsupported" | "raw_patch_sensitive_content" | "raw_patch_truncated" | "raw_patch_apply_failed" | undefined;
2182
+ 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;
2183
+ usage?: {
2184
+ input_tokens?: number | undefined;
2185
+ output_tokens?: number | undefined;
2186
+ cached_input_tokens?: number | undefined;
2187
+ cost_usd?: number | undefined;
2188
+ estimated?: boolean | undefined;
2189
+ } | undefined;
2193
2190
  observed_model?: string | undefined;
2194
- credential_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | undefined;
2191
+ credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
2192
+ credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
2195
2193
  credential_profile_id?: string | undefined;
2196
2194
  quota?: {
2197
- source: "codex_app_server" | "codex_rollout" | "claude_statusline" | "claude_api_retry" | "claude_oauth_usage";
2195
+ source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
2196
+ plan_label?: string | null | undefined;
2197
+ subject_id?: string | null | undefined;
2198
2198
  constraints: {
2199
2199
  id: string;
2200
2200
  label: string;
2201
+ applies_to_models?: string[] | null | undefined;
2201
2202
  used_ratio: number | null;
2202
2203
  window_seconds: number | null;
2203
2204
  resets_at: string | null;
2204
2205
  cooldown_until?: string | null | undefined;
2205
2206
  }[];
2206
- plan_label?: string | null | undefined;
2207
- subject_id?: string | null | undefined;
2208
2207
  } | undefined;
2209
2208
  plan_progress?: {
2210
2209
  items?: {
2211
- status: "pending" | "completed" | "in_progress";
2212
2210
  id: string;
2213
2211
  title: string;
2212
+ status: "completed" | "in_progress" | "pending";
2214
2213
  }[] | undefined;
2215
2214
  } | undefined;
2216
2215
  rate_limit?: {
2216
+ constraint_id?: string | undefined;
2217
+ applies_to_models?: string[] | null | undefined;
2217
2218
  resets_at?: string | null | undefined;
2218
2219
  retry_delay_ms?: number | null | undefined;
2219
2220
  } | undefined;
2221
+ status?: {
2222
+ kind: "api_retry";
2223
+ attempt?: number | undefined;
2224
+ max_retries?: number | undefined;
2225
+ retry_delay_ms?: number | undefined;
2226
+ 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;
2227
+ } | undefined;
2220
2228
  transient?: {
2221
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
2229
+ kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
2222
2230
  retry_delay_ms?: number | null | undefined;
2223
2231
  } | undefined;
2232
+ context?: {
2233
+ kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
2234
+ cause?: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded" | undefined;
2235
+ native_code?: string | null | undefined;
2236
+ trigger?: "auto" | "manual" | null | undefined;
2237
+ pre_tokens?: number | null | undefined;
2238
+ } | undefined;
2239
+ error?: string | undefined;
2240
+ aborted?: boolean | undefined;
2224
2241
  payload?: Record<string, unknown> | undefined;
2225
2242
  }>;
2226
2243
  export type HarnessEvent = z.infer<typeof HarnessEvent>;