@claudexor/schema 4.7.0 → 4.8.2

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 (196) hide show
  1. package/dist/account-resources.d.ts +37 -37
  2. package/dist/account-routing-evidence.d.ts +14 -14
  3. package/dist/attachment.d.ts +178 -0
  4. package/dist/attachment.d.ts.map +1 -1
  5. package/dist/attachment.js +46 -0
  6. package/dist/attachment.js.map +1 -1
  7. package/dist/captured-run-start.d.ts +1105 -0
  8. package/dist/captured-run-start.d.ts.map +1 -0
  9. package/dist/captured-run-start.js +41 -0
  10. package/dist/captured-run-start.js.map +1 -0
  11. package/dist/command-summary.d.ts +1 -1
  12. package/dist/command-summary.d.ts.map +1 -1
  13. package/dist/command-summary.js +1 -0
  14. package/dist/command-summary.js.map +1 -1
  15. package/dist/control-gc.d.ts +377 -0
  16. package/dist/control-gc.d.ts.map +1 -1
  17. package/dist/control-gc.js +74 -1
  18. package/dist/control-gc.js.map +1 -1
  19. package/dist/control-harness-models.js +1 -1
  20. package/dist/control-harness-models.js.map +1 -1
  21. package/dist/control-operation-responses.d.ts +201 -9
  22. package/dist/control-operation-responses.d.ts.map +1 -1
  23. package/dist/control-operation-responses.js +7 -1
  24. package/dist/control-operation-responses.js.map +1 -1
  25. package/dist/control-run-detail.d.ts +292 -19
  26. package/dist/control-run-detail.d.ts.map +1 -1
  27. package/dist/control-run-detail.js +2 -0
  28. package/dist/control-run-detail.js.map +1 -1
  29. package/dist/control-run-failure.d.ts +29 -4
  30. package/dist/control-run-failure.d.ts.map +1 -1
  31. package/dist/control-run-failure.js +3 -0
  32. package/dist/control-run-failure.js.map +1 -1
  33. package/dist/control-run-retry.d.ts +31 -0
  34. package/dist/control-run-retry.d.ts.map +1 -1
  35. package/dist/control-run-retry.js +12 -1
  36. package/dist/control-run-retry.js.map +1 -1
  37. package/dist/control-timeline.d.ts +9 -0
  38. package/dist/control-timeline.d.ts.map +1 -1
  39. package/dist/control-timeline.js +13 -0
  40. package/dist/control-timeline.js.map +1 -1
  41. package/dist/control.d.ts +78 -5
  42. package/dist/control.d.ts.map +1 -1
  43. package/dist/control.js +7 -9
  44. package/dist/control.js.map +1 -1
  45. package/dist/credential-profile-snapshot.d.ts +28 -28
  46. package/dist/credential-profile.d.ts +1 -1
  47. package/dist/credential-profile.js +2 -2
  48. package/dist/credential-profile.js.map +1 -1
  49. package/dist/credential-store.d.ts +3 -2
  50. package/dist/credential-store.d.ts.map +1 -1
  51. package/dist/credential-store.js +5 -4
  52. package/dist/credential-store.js.map +1 -1
  53. package/dist/daemon-status.d.ts +492 -0
  54. package/dist/daemon-status.d.ts.map +1 -1
  55. package/dist/daemon-status.js +22 -0
  56. package/dist/daemon-status.js.map +1 -1
  57. package/dist/deferred-message.d.ts +2450 -0
  58. package/dist/deferred-message.d.ts.map +1 -0
  59. package/dist/deferred-message.js +186 -0
  60. package/dist/deferred-message.js.map +1 -0
  61. package/dist/events.d.ts +3 -3
  62. package/dist/events.js +1 -1
  63. package/dist/events.js.map +1 -1
  64. package/dist/harness-input.d.ts +15 -0
  65. package/dist/harness-input.d.ts.map +1 -1
  66. package/dist/harness-input.js +10 -1
  67. package/dist/harness-input.js.map +1 -1
  68. package/dist/harness-model.d.ts +65 -0
  69. package/dist/harness-model.d.ts.map +1 -1
  70. package/dist/harness-model.js +42 -0
  71. package/dist/harness-model.js.map +1 -1
  72. package/dist/harness-quota.d.ts +3 -3
  73. package/dist/harness-speech.d.ts +36 -0
  74. package/dist/harness-speech.d.ts.map +1 -0
  75. package/dist/harness-speech.js +27 -0
  76. package/dist/harness-speech.js.map +1 -0
  77. package/dist/harness.d.ts +79 -9
  78. package/dist/harness.d.ts.map +1 -1
  79. package/dist/harness.js +5 -4
  80. package/dist/harness.js.map +1 -1
  81. package/dist/index.d.ts +9 -0
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/index.js +9 -0
  84. package/dist/index.js.map +1 -1
  85. package/dist/mcp-run-result.d.ts +356 -12
  86. package/dist/mcp-run-result.d.ts.map +1 -1
  87. package/dist/mcp-run-result.js +5 -0
  88. package/dist/mcp-run-result.js.map +1 -1
  89. package/dist/mcp-run-wait.d.ts +133 -0
  90. package/dist/mcp-run-wait.d.ts.map +1 -1
  91. package/dist/mcp-run-wait.js +4 -0
  92. package/dist/mcp-run-wait.js.map +1 -1
  93. package/dist/mcp-upload.d.ts +133 -0
  94. package/dist/mcp-upload.d.ts.map +1 -0
  95. package/dist/mcp-upload.js +40 -0
  96. package/dist/mcp-upload.js.map +1 -0
  97. package/dist/quota-read.d.ts +8 -8
  98. package/dist/quota.d.ts +26 -20
  99. package/dist/quota.d.ts.map +1 -1
  100. package/dist/quota.js +11 -1
  101. package/dist/quota.js.map +1 -1
  102. package/dist/run-observation.d.ts +189 -0
  103. package/dist/run-observation.d.ts.map +1 -0
  104. package/dist/run-observation.js +99 -0
  105. package/dist/run-observation.js.map +1 -0
  106. package/dist/setup-login.d.ts +5 -5
  107. package/dist/setup.d.ts +63 -63
  108. package/dist/setup.d.ts.map +1 -1
  109. package/dist/setup.js +1 -1
  110. package/dist/setup.js.map +1 -1
  111. package/dist/task-group-runs.d.ts +258 -0
  112. package/dist/task-group-runs.d.ts.map +1 -0
  113. package/dist/task-group-runs.js +94 -0
  114. package/dist/task-group-runs.js.map +1 -0
  115. package/dist/task-group.d.ts +23 -0
  116. package/dist/task-group.d.ts.map +1 -0
  117. package/dist/task-group.js +38 -0
  118. package/dist/task-group.js.map +1 -0
  119. package/dist/telemetry.d.ts +136 -8
  120. package/dist/telemetry.d.ts.map +1 -1
  121. package/dist/telemetry.js +2 -5
  122. package/dist/telemetry.js.map +1 -1
  123. package/dist/thread-history.d.ts +12553 -0
  124. package/dist/thread-history.d.ts.map +1 -0
  125. package/dist/thread-history.js +291 -0
  126. package/dist/thread-history.js.map +1 -0
  127. package/generated/ControlAccountResetResponse.schema.json +1 -0
  128. package/generated/ControlAccountResourcesFreshnessResponse.schema.json +1 -0
  129. package/generated/ControlAccountResourcesResponse.schema.json +1 -0
  130. package/generated/ControlCredentialProfileCreateRequest.schema.json +1 -1
  131. package/generated/ControlCredentialProfilesQueryResponse.schema.json +1 -0
  132. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +1 -0
  133. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1 -0
  134. package/generated/ControlDaemonStatus.schema.json +112 -43
  135. package/generated/ControlGcLastResponse.schema.json +184 -0
  136. package/generated/ControlGcReceipt.schema.json +60 -1
  137. package/generated/ControlGcRequest.schema.json +4 -0
  138. package/generated/ControlQueuedRunInfo.schema.json +10 -0
  139. package/generated/ControlQuotaFreshnessResponse.schema.json +1 -0
  140. package/generated/ControlQuotaQueryResponse.schema.json +1 -0
  141. package/generated/ControlQuotaResponse.schema.json +1 -0
  142. package/generated/ControlRunAgainDraft.schema.json +5 -0
  143. package/generated/ControlRunControlResponse.schema.json +169 -0
  144. package/generated/ControlRunDecisionResponse.schema.json +14 -0
  145. package/generated/ControlRunDetail.schema.json +240 -2
  146. package/generated/ControlRunListResponse.schema.json +32 -2
  147. package/generated/ControlRunRetryResponse.schema.json +10 -0
  148. package/generated/ControlRunStartInfo.schema.json +10 -0
  149. package/generated/ControlRunStartRequest.schema.json +5 -0
  150. package/generated/ControlRunStartResponse.schema.json +18 -0
  151. package/generated/ControlRunSummary.schema.json +32 -2
  152. package/generated/ControlSetupJob.schema.json +2 -1
  153. package/generated/ControlSetupJobCreateRequest.schema.json +2 -1
  154. package/generated/ControlSetupJobEvent.schema.json +2 -1
  155. package/generated/ControlSetupJobListFilter.schema.json +2 -1
  156. package/generated/ControlSetupJobListResponse.schema.json +2 -1
  157. package/generated/ControlSetupJobSnapshot.schema.json +2 -1
  158. package/generated/ControlThreadDetail.schema.json +1 -1
  159. package/generated/ControlUploadImport.schema.json +124 -0
  160. package/generated/ControlUploadImportRequest.schema.json +66 -0
  161. package/generated/DeferredMessageCall.schema.json +331 -0
  162. package/generated/DeferredMessageDetail.schema.json +917 -0
  163. package/generated/DeferredMessageMutation.schema.json +315 -0
  164. package/generated/DeferredMessageProjection.schema.json +177 -0
  165. package/generated/DeferredMessageReadInput.schema.json +20 -0
  166. package/generated/DeferredMessageReadResult.schema.json +399 -0
  167. package/generated/DeferredMessageReceipt.schema.json +193 -0
  168. package/generated/HarnessEvent.schema.json +100 -1
  169. package/generated/McpAccountsToolResult.schema.json +1 -0
  170. package/generated/McpRunHandleResult.schema.json +226 -19
  171. package/generated/McpRunToolResult.schema.json +228 -11
  172. package/generated/McpRunWaitResult.schema.json +180 -2
  173. package/generated/McpStoreIdentityInput.schema.json +11 -0
  174. package/generated/McpUploadCreateInput.schema.json +54 -0
  175. package/generated/McpUploadFinalizeInput.schema.json +40 -0
  176. package/generated/McpUploadImportInput.schema.json +52 -0
  177. package/generated/McpUploadImportLocalInput.schema.json +27 -0
  178. package/generated/McpUploadImportLocalResult.schema.json +45 -0
  179. package/generated/McpUploadTargetInput.schema.json +20 -0
  180. package/generated/ResourceAttachmentRef.schema.json +21 -0
  181. package/generated/RoutePrimaryDivergedPayload.schema.json +23 -14
  182. package/generated/RunFailure.schema.json +31 -1
  183. package/generated/RunObservationRecord.schema.json +64 -0
  184. package/generated/RunTelemetry.schema.json +83 -1
  185. package/generated/RunWaitManyInput.schema.json +54 -0
  186. package/generated/RunWaitManyResult.schema.json +110 -0
  187. package/generated/RunWaitManySummary.schema.json +75 -0
  188. package/generated/TaskGroupId.schema.json +11 -0
  189. package/generated/TaskGroupReceipt.schema.json +26 -0
  190. package/generated/TaskGroupRunsInput.schema.json +46 -0
  191. package/generated/TaskGroupRunsResult.schema.json +162 -0
  192. package/generated/ThreadHistoryInput.schema.json +48 -0
  193. package/generated/ThreadHistoryPage.schema.json +2857 -0
  194. package/generated/ThreadPromptPart.schema.json +57 -0
  195. package/generated/ThreadPromptPartInput.schema.json +41 -0
  196. package/package.json +2 -2
@@ -0,0 +1,1105 @@
1
+ import { z } from "zod/v3";
2
+ export declare const RunDefaultsSnapshot: z.ZodObject<{
3
+ harnesses: z.ZodRecord<z.ZodString, z.ZodObject<Pick<{
4
+ enabled: z.ZodDefault<z.ZodBoolean>;
5
+ native_credentials_enabled: z.ZodDefault<z.ZodBoolean>;
6
+ default_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7
+ effort: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8
+ max_turns: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
9
+ max_rounds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10
+ profile_policy: z.ZodDefault<z.ZodObject<{
11
+ limit_action: z.ZodDefault<z.ZodEnum<["auto", "fail", "ask", "rotate"]>>;
12
+ rotation_eligible: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
13
+ headroom_threshold: z.ZodDefault<z.ZodNumber>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ limit_action: "ask" | "auto" | "fail" | "rotate";
16
+ rotation_eligible: string[];
17
+ headroom_threshold: number;
18
+ }, {
19
+ limit_action?: "ask" | "auto" | "fail" | "rotate" | undefined;
20
+ rotation_eligible?: string[] | undefined;
21
+ headroom_threshold?: number | undefined;
22
+ }>>;
23
+ tools_allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
24
+ tools_deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
25
+ fallback_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
26
+ web: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
27
+ auth_preference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
28
+ }, "auth_preference" | "default_model" | "effort" | "fallback_model" | "max_rounds" | "max_turns" | "web">, "strip", z.ZodTypeAny, {
29
+ default_model: string | null;
30
+ effort: string | null;
31
+ max_turns: number | null;
32
+ max_rounds: number | null;
33
+ fallback_model: string | null;
34
+ web: "auto" | "cached" | "live" | "off";
35
+ auth_preference: "api_key" | "auto" | "subscription";
36
+ }, {
37
+ default_model?: string | null | undefined;
38
+ effort?: string | null | undefined;
39
+ max_turns?: number | null | undefined;
40
+ max_rounds?: number | null | undefined;
41
+ fallback_model?: string | null | undefined;
42
+ web?: "auto" | "cached" | "live" | "off" | undefined;
43
+ auth_preference?: "api_key" | "auto" | "subscription" | undefined;
44
+ }>>;
45
+ eligibleHarnesses: z.ZodArray<z.ZodString, "many">;
46
+ primaryHarness: z.ZodNullable<z.ZodString>;
47
+ authPreference: z.ZodEnum<["subscription", "api_key", "auto"]>;
48
+ }, "strict", z.ZodTypeAny, {
49
+ harnesses: Record<string, {
50
+ default_model: string | null;
51
+ effort: string | null;
52
+ max_turns: number | null;
53
+ max_rounds: number | null;
54
+ fallback_model: string | null;
55
+ web: "auto" | "cached" | "live" | "off";
56
+ auth_preference: "api_key" | "auto" | "subscription";
57
+ }>;
58
+ eligibleHarnesses: string[];
59
+ primaryHarness: string | null;
60
+ authPreference: "api_key" | "auto" | "subscription";
61
+ }, {
62
+ harnesses: Record<string, {
63
+ default_model?: string | null | undefined;
64
+ effort?: string | null | undefined;
65
+ max_turns?: number | null | undefined;
66
+ max_rounds?: number | null | undefined;
67
+ fallback_model?: string | null | undefined;
68
+ web?: "auto" | "cached" | "live" | "off" | undefined;
69
+ auth_preference?: "api_key" | "auto" | "subscription" | undefined;
70
+ }>;
71
+ eligibleHarnesses: string[];
72
+ primaryHarness: string | null;
73
+ authPreference: "api_key" | "auto" | "subscription";
74
+ }>;
75
+ export type RunDefaultsSnapshot = z.infer<typeof RunDefaultsSnapshot>;
76
+ /** Internal accepted-command carrier. Public run-start schemas deliberately
77
+ * reject deferredDefaults; only engine owners can accept this payload. */
78
+ export declare const CapturedRunStart: z.ZodObject<{
79
+ maxSeconds: z.ZodOptional<z.ZodNumber>;
80
+ timeLimitMode: z.ZodOptional<z.ZodEnum<["soft", "hard"]>>;
81
+ prompt: z.ZodDefault<z.ZodString>;
82
+ instructions: z.ZodOptional<z.ZodString>;
83
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
84
+ resourceId: z.ZodString;
85
+ }, "strict", z.ZodTypeAny, {
86
+ resourceId: string;
87
+ }, {
88
+ resourceId: string;
89
+ }>, "many">>;
90
+ mode: z.ZodDefault<z.ZodEnum<["ask", "plan", "agent"]>>;
91
+ taskGroupId: z.ZodOptional<z.ZodString>;
92
+ scope: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
93
+ kind: z.ZodLiteral<"project">;
94
+ root: z.ZodString;
95
+ context: z.ZodDefault<z.ZodEnum<["auto"]>>;
96
+ ephemeral: z.ZodDefault<z.ZodBoolean>;
97
+ }, "strict", z.ZodTypeAny, {
98
+ kind: "project";
99
+ root: string;
100
+ context: "auto";
101
+ ephemeral: boolean;
102
+ }, {
103
+ kind: "project";
104
+ root: string;
105
+ context?: "auto" | undefined;
106
+ ephemeral?: boolean | undefined;
107
+ }>, z.ZodObject<{
108
+ kind: z.ZodLiteral<"none">;
109
+ }, "strict", z.ZodTypeAny, {
110
+ kind: "none";
111
+ }, {
112
+ kind: "none";
113
+ }>]>>;
114
+ execution: z.ZodDefault<z.ZodObject<{
115
+ isolation: z.ZodDefault<z.ZodEnum<["envelope", "live"]>>;
116
+ delegated: z.ZodDefault<z.ZodBoolean>;
117
+ workspaceRoot: z.ZodOptional<z.ZodString>;
118
+ workspaceKind: z.ZodOptional<z.ZodEnum<["git", "directory"]>>;
119
+ scopePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
120
+ auxiliaryWritableRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
121
+ }, "strict", z.ZodTypeAny, {
122
+ isolation: "envelope" | "live";
123
+ delegated: boolean;
124
+ workspaceRoot?: string | undefined;
125
+ workspaceKind?: "directory" | "git" | undefined;
126
+ scopePaths?: string[] | undefined;
127
+ auxiliaryWritableRoots?: string[] | undefined;
128
+ }, {
129
+ isolation?: "envelope" | "live" | undefined;
130
+ delegated?: boolean | undefined;
131
+ workspaceRoot?: string | undefined;
132
+ workspaceKind?: "directory" | "git" | undefined;
133
+ scopePaths?: string[] | undefined;
134
+ auxiliaryWritableRoots?: string[] | undefined;
135
+ }>>;
136
+ harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
137
+ primaryHarness: z.ZodOptional<z.ZodString>;
138
+ routingGoal: z.ZodOptional<z.ZodEnum<["auto", "quality", "economy"]>>;
139
+ model: z.ZodOptional<z.ZodString>;
140
+ models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
141
+ effort: z.ZodOptional<z.ZodString>;
142
+ processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
143
+ promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
144
+ efforts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
145
+ review: z.ZodOptional<z.ZodBoolean>;
146
+ reviewerModels: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodString>>;
147
+ reviewerEfforts: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodString>>;
148
+ n: z.ZodOptional<z.ZodNumber>;
149
+ attempts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
150
+ untilClean: z.ZodOptional<z.ZodBoolean>;
151
+ deepScan: z.ZodOptional<z.ZodBoolean>;
152
+ create: z.ZodOptional<z.ZodBoolean>;
153
+ council: z.ZodOptional<z.ZodBoolean>;
154
+ synthesis: z.ZodOptional<z.ZodEnum<["auto", "always", "never"]>>;
155
+ paidBudget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
156
+ kind: z.ZodLiteral<"unlimited">;
157
+ }, "strict", z.ZodTypeAny, {
158
+ kind: "unlimited";
159
+ }, {
160
+ kind: "unlimited";
161
+ }>, z.ZodObject<{
162
+ kind: z.ZodLiteral<"finite">;
163
+ maxUsd: z.ZodNumber;
164
+ }, "strict", z.ZodTypeAny, {
165
+ kind: "finite";
166
+ maxUsd: number;
167
+ }, {
168
+ kind: "finite";
169
+ maxUsd: number;
170
+ }>]>>;
171
+ access: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native"]>>;
172
+ web: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
173
+ externalContextPolicy: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
174
+ browser: z.ZodOptional<z.ZodBoolean>;
175
+ tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
176
+ program: z.ZodString;
177
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
178
+ cwd: z.ZodOptional<z.ZodString>;
179
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
180
+ }, "strict", z.ZodTypeAny, {
181
+ program: string;
182
+ args: string[];
183
+ cwd?: string | undefined;
184
+ envAllowlist: string[];
185
+ }, {
186
+ program: string;
187
+ args?: string[] | undefined;
188
+ cwd?: string | undefined;
189
+ envAllowlist?: string[] | undefined;
190
+ }>, "many">>;
191
+ protectedPathApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
192
+ path: z.ZodString;
193
+ reason: z.ZodOptional<z.ZodString>;
194
+ }, "strict", z.ZodTypeAny, {
195
+ path: string;
196
+ reason?: string | undefined;
197
+ }, {
198
+ path: string;
199
+ reason?: string | undefined;
200
+ }>, "many">>;
201
+ threadId: z.ZodOptional<z.ZodString>;
202
+ turnId: z.ZodOptional<z.ZodString>;
203
+ parentRunId: z.ZodOptional<z.ZodString>;
204
+ delegatedFromRunId: z.ZodOptional<z.ZodString>;
205
+ retryOf: z.ZodOptional<z.ZodString>;
206
+ continueFrom: z.ZodOptional<z.ZodString>;
207
+ continueCarrier: z.ZodOptional<z.ZodEnum<["auto", "packet"]>>;
208
+ continueModelInherited: z.ZodOptional<z.ZodBoolean>;
209
+ planRunId: z.ZodOptional<z.ZodString>;
210
+ planRef: z.ZodOptional<z.ZodObject<{
211
+ runId: z.ZodString;
212
+ sha256: z.ZodString;
213
+ path: z.ZodString;
214
+ }, "strict", z.ZodTypeAny, {
215
+ runId: string;
216
+ sha256: string;
217
+ path: string;
218
+ }, {
219
+ runId: string;
220
+ sha256: string;
221
+ path: string;
222
+ }>>;
223
+ reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
224
+ harness: z.ZodString;
225
+ model: z.ZodOptional<z.ZodString>;
226
+ effort: z.ZodOptional<z.ZodString>;
227
+ credentialProfileId: z.ZodOptional<z.ZodString>;
228
+ processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
229
+ }, "strict", z.ZodTypeAny, {
230
+ harness: string;
231
+ model?: string | undefined;
232
+ effort?: string | undefined;
233
+ credentialProfileId?: string | undefined;
234
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
235
+ }, {
236
+ harness: string;
237
+ model?: string | undefined;
238
+ effort?: string | undefined;
239
+ credentialProfileId?: string | undefined;
240
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
241
+ }>, "many">>;
242
+ authPreference: z.ZodOptional<z.ZodEnum<["subscription", "api_key", "auto"]>>;
243
+ credentialProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ delegate: z.ZodOptional<z.ZodBoolean>;
245
+ denyPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
246
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
247
+ maxTurns: z.ZodOptional<z.ZodNumber>;
248
+ } & {
249
+ deferredDefaults: z.ZodOptional<z.ZodObject<{
250
+ harnesses: z.ZodRecord<z.ZodString, z.ZodObject<Pick<{
251
+ enabled: z.ZodDefault<z.ZodBoolean>;
252
+ native_credentials_enabled: z.ZodDefault<z.ZodBoolean>;
253
+ default_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
254
+ effort: z.ZodDefault<z.ZodNullable<z.ZodString>>;
255
+ max_turns: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
256
+ max_rounds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
257
+ profile_policy: z.ZodDefault<z.ZodObject<{
258
+ limit_action: z.ZodDefault<z.ZodEnum<["auto", "fail", "ask", "rotate"]>>;
259
+ rotation_eligible: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
260
+ headroom_threshold: z.ZodDefault<z.ZodNumber>;
261
+ }, "strict", z.ZodTypeAny, {
262
+ limit_action: "ask" | "auto" | "fail" | "rotate";
263
+ rotation_eligible: string[];
264
+ headroom_threshold: number;
265
+ }, {
266
+ limit_action?: "ask" | "auto" | "fail" | "rotate" | undefined;
267
+ rotation_eligible?: string[] | undefined;
268
+ headroom_threshold?: number | undefined;
269
+ }>>;
270
+ tools_allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
271
+ tools_deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
272
+ fallback_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
273
+ web: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
274
+ auth_preference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
275
+ }, "auth_preference" | "default_model" | "effort" | "fallback_model" | "max_rounds" | "max_turns" | "web">, "strip", z.ZodTypeAny, {
276
+ default_model: string | null;
277
+ effort: string | null;
278
+ max_turns: number | null;
279
+ max_rounds: number | null;
280
+ fallback_model: string | null;
281
+ web: "auto" | "cached" | "live" | "off";
282
+ auth_preference: "api_key" | "auto" | "subscription";
283
+ }, {
284
+ default_model?: string | null | undefined;
285
+ effort?: string | null | undefined;
286
+ max_turns?: number | null | undefined;
287
+ max_rounds?: number | null | undefined;
288
+ fallback_model?: string | null | undefined;
289
+ web?: "auto" | "cached" | "live" | "off" | undefined;
290
+ auth_preference?: "api_key" | "auto" | "subscription" | undefined;
291
+ }>>;
292
+ eligibleHarnesses: z.ZodArray<z.ZodString, "many">;
293
+ primaryHarness: z.ZodNullable<z.ZodString>;
294
+ authPreference: z.ZodEnum<["subscription", "api_key", "auto"]>;
295
+ }, "strict", z.ZodTypeAny, {
296
+ harnesses: Record<string, {
297
+ default_model: string | null;
298
+ effort: string | null;
299
+ max_turns: number | null;
300
+ max_rounds: number | null;
301
+ fallback_model: string | null;
302
+ web: "auto" | "cached" | "live" | "off";
303
+ auth_preference: "api_key" | "auto" | "subscription";
304
+ }>;
305
+ eligibleHarnesses: string[];
306
+ primaryHarness: string | null;
307
+ authPreference: "api_key" | "auto" | "subscription";
308
+ }, {
309
+ harnesses: Record<string, {
310
+ default_model?: string | null | undefined;
311
+ effort?: string | null | undefined;
312
+ max_turns?: number | null | undefined;
313
+ max_rounds?: number | null | undefined;
314
+ fallback_model?: string | null | undefined;
315
+ web?: "auto" | "cached" | "live" | "off" | undefined;
316
+ auth_preference?: "api_key" | "auto" | "subscription" | undefined;
317
+ }>;
318
+ eligibleHarnesses: string[];
319
+ primaryHarness: string | null;
320
+ authPreference: "api_key" | "auto" | "subscription";
321
+ }>>;
322
+ }, "strict", z.ZodTypeAny, {
323
+ maxSeconds?: number | undefined;
324
+ timeLimitMode?: "hard" | "soft" | undefined;
325
+ prompt: string;
326
+ instructions?: string | undefined;
327
+ attachments?: {
328
+ resourceId: string;
329
+ }[] | undefined;
330
+ mode: "agent" | "ask" | "plan";
331
+ taskGroupId?: string | undefined;
332
+ scope: {
333
+ kind: "project";
334
+ root: string;
335
+ context: "auto";
336
+ ephemeral: boolean;
337
+ } | {
338
+ kind: "none";
339
+ };
340
+ execution: {
341
+ isolation: "envelope" | "live";
342
+ delegated: boolean;
343
+ workspaceRoot?: string | undefined;
344
+ workspaceKind?: "directory" | "git" | undefined;
345
+ scopePaths?: string[] | undefined;
346
+ auxiliaryWritableRoots?: string[] | undefined;
347
+ };
348
+ harnesses?: string[] | undefined;
349
+ primaryHarness?: string | undefined;
350
+ routingGoal?: "auto" | "economy" | "quality" | undefined;
351
+ model?: string | undefined;
352
+ models?: Record<string, string> | undefined;
353
+ effort?: string | undefined;
354
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
355
+ promptCacheTtl?: "1h" | "5m" | undefined;
356
+ efforts?: Record<string, string> | undefined;
357
+ review?: boolean | undefined;
358
+ reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
359
+ reviewerEfforts?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
360
+ n?: number | undefined;
361
+ attempts?: number | null | undefined;
362
+ untilClean?: boolean | undefined;
363
+ deepScan?: boolean | undefined;
364
+ create?: boolean | undefined;
365
+ council?: boolean | undefined;
366
+ synthesis?: "always" | "auto" | "never" | undefined;
367
+ paidBudget?: {
368
+ kind: "unlimited";
369
+ } | {
370
+ kind: "finite";
371
+ maxUsd: number;
372
+ } | undefined;
373
+ access?: "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
374
+ web?: "auto" | "cached" | "live" | "off" | undefined;
375
+ externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
376
+ browser?: boolean | undefined;
377
+ tests?: {
378
+ program: string;
379
+ args: string[];
380
+ cwd?: string | undefined;
381
+ envAllowlist: string[];
382
+ }[] | undefined;
383
+ protectedPathApprovals?: {
384
+ path: string;
385
+ reason?: string | undefined;
386
+ }[] | undefined;
387
+ threadId?: string | undefined;
388
+ turnId?: string | undefined;
389
+ parentRunId?: string | undefined;
390
+ delegatedFromRunId?: string | undefined;
391
+ retryOf?: string | undefined;
392
+ continueFrom?: string | undefined;
393
+ continueCarrier?: "auto" | "packet" | undefined;
394
+ continueModelInherited?: boolean | undefined;
395
+ planRunId?: string | undefined;
396
+ planRef?: {
397
+ runId: string;
398
+ sha256: string;
399
+ path: string;
400
+ } | undefined;
401
+ reviewerPanel?: {
402
+ harness: string;
403
+ model?: string | undefined;
404
+ effort?: string | undefined;
405
+ credentialProfileId?: string | undefined;
406
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
407
+ }[] | undefined;
408
+ authPreference?: "api_key" | "auto" | "subscription" | undefined;
409
+ credentialProfileId?: string | null | undefined;
410
+ delegate?: boolean | undefined;
411
+ denyPaths?: string[] | undefined;
412
+ outputSchema?: Record<string, unknown> | undefined;
413
+ maxTurns?: number | undefined;
414
+ deferredDefaults?: {
415
+ harnesses: Record<string, {
416
+ default_model: string | null;
417
+ effort: string | null;
418
+ max_turns: number | null;
419
+ max_rounds: number | null;
420
+ fallback_model: string | null;
421
+ web: "auto" | "cached" | "live" | "off";
422
+ auth_preference: "api_key" | "auto" | "subscription";
423
+ }>;
424
+ eligibleHarnesses: string[];
425
+ primaryHarness: string | null;
426
+ authPreference: "api_key" | "auto" | "subscription";
427
+ } | undefined;
428
+ }, {
429
+ maxSeconds?: number | undefined;
430
+ timeLimitMode?: "hard" | "soft" | undefined;
431
+ prompt?: string | undefined;
432
+ instructions?: string | undefined;
433
+ attachments?: {
434
+ resourceId: string;
435
+ }[] | undefined;
436
+ mode?: "agent" | "ask" | "plan" | undefined;
437
+ taskGroupId?: string | undefined;
438
+ scope?: {
439
+ kind: "project";
440
+ root: string;
441
+ context?: "auto" | undefined;
442
+ ephemeral?: boolean | undefined;
443
+ } | {
444
+ kind: "none";
445
+ } | undefined;
446
+ execution?: {
447
+ isolation?: "envelope" | "live" | undefined;
448
+ delegated?: boolean | undefined;
449
+ workspaceRoot?: string | undefined;
450
+ workspaceKind?: "directory" | "git" | undefined;
451
+ scopePaths?: string[] | undefined;
452
+ auxiliaryWritableRoots?: string[] | undefined;
453
+ } | undefined;
454
+ harnesses?: string[] | undefined;
455
+ primaryHarness?: string | undefined;
456
+ routingGoal?: "auto" | "economy" | "quality" | undefined;
457
+ model?: string | undefined;
458
+ models?: Record<string, string> | undefined;
459
+ effort?: string | undefined;
460
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
461
+ promptCacheTtl?: "1h" | "5m" | undefined;
462
+ efforts?: Record<string, string> | undefined;
463
+ review?: boolean | undefined;
464
+ reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
465
+ reviewerEfforts?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
466
+ n?: number | undefined;
467
+ attempts?: number | null | undefined;
468
+ untilClean?: boolean | undefined;
469
+ deepScan?: boolean | undefined;
470
+ create?: boolean | undefined;
471
+ council?: boolean | undefined;
472
+ synthesis?: "always" | "auto" | "never" | undefined;
473
+ paidBudget?: {
474
+ kind: "unlimited";
475
+ } | {
476
+ kind: "finite";
477
+ maxUsd: number;
478
+ } | undefined;
479
+ access?: "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
480
+ web?: "auto" | "cached" | "live" | "off" | undefined;
481
+ externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
482
+ browser?: boolean | undefined;
483
+ tests?: {
484
+ program: string;
485
+ args?: string[] | undefined;
486
+ cwd?: string | undefined;
487
+ envAllowlist?: string[] | undefined;
488
+ }[] | undefined;
489
+ protectedPathApprovals?: {
490
+ path: string;
491
+ reason?: string | undefined;
492
+ }[] | undefined;
493
+ threadId?: string | undefined;
494
+ turnId?: string | undefined;
495
+ parentRunId?: string | undefined;
496
+ delegatedFromRunId?: string | undefined;
497
+ retryOf?: string | undefined;
498
+ continueFrom?: string | undefined;
499
+ continueCarrier?: "auto" | "packet" | undefined;
500
+ continueModelInherited?: boolean | undefined;
501
+ planRunId?: string | undefined;
502
+ planRef?: {
503
+ runId: string;
504
+ sha256: string;
505
+ path: string;
506
+ } | undefined;
507
+ reviewerPanel?: {
508
+ harness: string;
509
+ model?: string | undefined;
510
+ effort?: string | undefined;
511
+ credentialProfileId?: string | undefined;
512
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
513
+ }[] | undefined;
514
+ authPreference?: "api_key" | "auto" | "subscription" | undefined;
515
+ credentialProfileId?: string | null | undefined;
516
+ delegate?: boolean | undefined;
517
+ denyPaths?: string[] | undefined;
518
+ outputSchema?: Record<string, unknown> | undefined;
519
+ maxTurns?: number | undefined;
520
+ deferredDefaults?: {
521
+ harnesses: Record<string, {
522
+ default_model?: string | null | undefined;
523
+ effort?: string | null | undefined;
524
+ max_turns?: number | null | undefined;
525
+ max_rounds?: number | null | undefined;
526
+ fallback_model?: string | null | undefined;
527
+ web?: "auto" | "cached" | "live" | "off" | undefined;
528
+ auth_preference?: "api_key" | "auto" | "subscription" | undefined;
529
+ }>;
530
+ eligibleHarnesses: string[];
531
+ primaryHarness: string | null;
532
+ authPreference: "api_key" | "auto" | "subscription";
533
+ } | undefined;
534
+ }>;
535
+ export type CapturedRunStart = z.infer<typeof CapturedRunStart>;
536
+ /** Decode engine-owned accepted bodies, including historical access profiles.
537
+ * This is never an active ingress schema. */
538
+ export declare const RecordedCapturedRunStart: z.ZodObject<{
539
+ maxSeconds: z.ZodOptional<z.ZodNumber>;
540
+ timeLimitMode: z.ZodOptional<z.ZodEnum<["soft", "hard"]>>;
541
+ prompt: z.ZodDefault<z.ZodString>;
542
+ instructions: z.ZodOptional<z.ZodString>;
543
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
544
+ resourceId: z.ZodString;
545
+ }, "strict", z.ZodTypeAny, {
546
+ resourceId: string;
547
+ }, {
548
+ resourceId: string;
549
+ }>, "many">>;
550
+ mode: z.ZodDefault<z.ZodEnum<["ask", "plan", "agent"]>>;
551
+ taskGroupId: z.ZodOptional<z.ZodString>;
552
+ scope: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
553
+ kind: z.ZodLiteral<"project">;
554
+ root: z.ZodString;
555
+ context: z.ZodDefault<z.ZodEnum<["auto"]>>;
556
+ ephemeral: z.ZodDefault<z.ZodBoolean>;
557
+ }, "strict", z.ZodTypeAny, {
558
+ kind: "project";
559
+ root: string;
560
+ context: "auto";
561
+ ephemeral: boolean;
562
+ }, {
563
+ kind: "project";
564
+ root: string;
565
+ context?: "auto" | undefined;
566
+ ephemeral?: boolean | undefined;
567
+ }>, z.ZodObject<{
568
+ kind: z.ZodLiteral<"none">;
569
+ }, "strict", z.ZodTypeAny, {
570
+ kind: "none";
571
+ }, {
572
+ kind: "none";
573
+ }>]>>;
574
+ execution: z.ZodDefault<z.ZodObject<{
575
+ isolation: z.ZodDefault<z.ZodEnum<["envelope", "live"]>>;
576
+ delegated: z.ZodDefault<z.ZodBoolean>;
577
+ workspaceRoot: z.ZodOptional<z.ZodString>;
578
+ workspaceKind: z.ZodOptional<z.ZodEnum<["git", "directory"]>>;
579
+ scopePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
580
+ auxiliaryWritableRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
581
+ }, "strict", z.ZodTypeAny, {
582
+ isolation: "envelope" | "live";
583
+ delegated: boolean;
584
+ workspaceRoot?: string | undefined;
585
+ workspaceKind?: "directory" | "git" | undefined;
586
+ scopePaths?: string[] | undefined;
587
+ auxiliaryWritableRoots?: string[] | undefined;
588
+ }, {
589
+ isolation?: "envelope" | "live" | undefined;
590
+ delegated?: boolean | undefined;
591
+ workspaceRoot?: string | undefined;
592
+ workspaceKind?: "directory" | "git" | undefined;
593
+ scopePaths?: string[] | undefined;
594
+ auxiliaryWritableRoots?: string[] | undefined;
595
+ }>>;
596
+ harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
597
+ primaryHarness: z.ZodOptional<z.ZodString>;
598
+ routingGoal: z.ZodOptional<z.ZodEnum<["auto", "quality", "economy"]>>;
599
+ model: z.ZodOptional<z.ZodString>;
600
+ models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
601
+ effort: z.ZodOptional<z.ZodString>;
602
+ processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
603
+ promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
604
+ efforts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
605
+ review: z.ZodOptional<z.ZodBoolean>;
606
+ reviewerModels: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodString>>;
607
+ reviewerEfforts: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodString>>;
608
+ n: z.ZodOptional<z.ZodNumber>;
609
+ attempts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
610
+ untilClean: z.ZodOptional<z.ZodBoolean>;
611
+ deepScan: z.ZodOptional<z.ZodBoolean>;
612
+ create: z.ZodOptional<z.ZodBoolean>;
613
+ council: z.ZodOptional<z.ZodBoolean>;
614
+ synthesis: z.ZodOptional<z.ZodEnum<["auto", "always", "never"]>>;
615
+ paidBudget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
616
+ kind: z.ZodLiteral<"unlimited">;
617
+ }, "strict", z.ZodTypeAny, {
618
+ kind: "unlimited";
619
+ }, {
620
+ kind: "unlimited";
621
+ }>, z.ZodObject<{
622
+ kind: z.ZodLiteral<"finite">;
623
+ maxUsd: z.ZodNumber;
624
+ }, "strict", z.ZodTypeAny, {
625
+ kind: "finite";
626
+ maxUsd: number;
627
+ }, {
628
+ kind: "finite";
629
+ maxUsd: number;
630
+ }>]>>;
631
+ web: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
632
+ externalContextPolicy: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
633
+ browser: z.ZodOptional<z.ZodBoolean>;
634
+ tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
635
+ program: z.ZodString;
636
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
637
+ cwd: z.ZodOptional<z.ZodString>;
638
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
639
+ }, "strict", z.ZodTypeAny, {
640
+ program: string;
641
+ args: string[];
642
+ cwd?: string | undefined;
643
+ envAllowlist: string[];
644
+ }, {
645
+ program: string;
646
+ args?: string[] | undefined;
647
+ cwd?: string | undefined;
648
+ envAllowlist?: string[] | undefined;
649
+ }>, "many">>;
650
+ protectedPathApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
651
+ path: z.ZodString;
652
+ reason: z.ZodOptional<z.ZodString>;
653
+ }, "strict", z.ZodTypeAny, {
654
+ path: string;
655
+ reason?: string | undefined;
656
+ }, {
657
+ path: string;
658
+ reason?: string | undefined;
659
+ }>, "many">>;
660
+ threadId: z.ZodOptional<z.ZodString>;
661
+ turnId: z.ZodOptional<z.ZodString>;
662
+ parentRunId: z.ZodOptional<z.ZodString>;
663
+ delegatedFromRunId: z.ZodOptional<z.ZodString>;
664
+ retryOf: z.ZodOptional<z.ZodString>;
665
+ continueFrom: z.ZodOptional<z.ZodString>;
666
+ continueCarrier: z.ZodOptional<z.ZodEnum<["auto", "packet"]>>;
667
+ continueModelInherited: z.ZodOptional<z.ZodBoolean>;
668
+ planRunId: z.ZodOptional<z.ZodString>;
669
+ planRef: z.ZodOptional<z.ZodObject<{
670
+ runId: z.ZodString;
671
+ sha256: z.ZodString;
672
+ path: z.ZodString;
673
+ }, "strict", z.ZodTypeAny, {
674
+ runId: string;
675
+ sha256: string;
676
+ path: string;
677
+ }, {
678
+ runId: string;
679
+ sha256: string;
680
+ path: string;
681
+ }>>;
682
+ reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
683
+ harness: z.ZodString;
684
+ model: z.ZodOptional<z.ZodString>;
685
+ effort: z.ZodOptional<z.ZodString>;
686
+ credentialProfileId: z.ZodOptional<z.ZodString>;
687
+ processingPreference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
688
+ }, "strict", z.ZodTypeAny, {
689
+ harness: string;
690
+ model?: string | undefined;
691
+ effort?: string | undefined;
692
+ credentialProfileId?: string | undefined;
693
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
694
+ }, {
695
+ harness: string;
696
+ model?: string | undefined;
697
+ effort?: string | undefined;
698
+ credentialProfileId?: string | undefined;
699
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
700
+ }>, "many">>;
701
+ authPreference: z.ZodOptional<z.ZodEnum<["subscription", "api_key", "auto"]>>;
702
+ credentialProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
703
+ delegate: z.ZodOptional<z.ZodBoolean>;
704
+ denyPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
705
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
706
+ maxTurns: z.ZodOptional<z.ZodNumber>;
707
+ } & {
708
+ access: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native", "external_sandbox_full"]>>;
709
+ } & {
710
+ deferredDefaults: z.ZodOptional<z.ZodObject<{
711
+ harnesses: z.ZodRecord<z.ZodString, z.ZodObject<Pick<{
712
+ enabled: z.ZodDefault<z.ZodBoolean>;
713
+ native_credentials_enabled: z.ZodDefault<z.ZodBoolean>;
714
+ default_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
715
+ effort: z.ZodDefault<z.ZodNullable<z.ZodString>>;
716
+ max_turns: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
717
+ max_rounds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
718
+ profile_policy: z.ZodDefault<z.ZodObject<{
719
+ limit_action: z.ZodDefault<z.ZodEnum<["auto", "fail", "ask", "rotate"]>>;
720
+ rotation_eligible: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
721
+ headroom_threshold: z.ZodDefault<z.ZodNumber>;
722
+ }, "strict", z.ZodTypeAny, {
723
+ limit_action: "ask" | "auto" | "fail" | "rotate";
724
+ rotation_eligible: string[];
725
+ headroom_threshold: number;
726
+ }, {
727
+ limit_action?: "ask" | "auto" | "fail" | "rotate" | undefined;
728
+ rotation_eligible?: string[] | undefined;
729
+ headroom_threshold?: number | undefined;
730
+ }>>;
731
+ tools_allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
732
+ tools_deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
733
+ fallback_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
734
+ web: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
735
+ auth_preference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
736
+ }, "auth_preference" | "default_model" | "effort" | "fallback_model" | "max_rounds" | "max_turns" | "web">, "strip", z.ZodTypeAny, {
737
+ default_model: string | null;
738
+ effort: string | null;
739
+ max_turns: number | null;
740
+ max_rounds: number | null;
741
+ fallback_model: string | null;
742
+ web: "auto" | "cached" | "live" | "off";
743
+ auth_preference: "api_key" | "auto" | "subscription";
744
+ }, {
745
+ default_model?: string | null | undefined;
746
+ effort?: string | null | undefined;
747
+ max_turns?: number | null | undefined;
748
+ max_rounds?: number | null | undefined;
749
+ fallback_model?: string | null | undefined;
750
+ web?: "auto" | "cached" | "live" | "off" | undefined;
751
+ auth_preference?: "api_key" | "auto" | "subscription" | undefined;
752
+ }>>;
753
+ eligibleHarnesses: z.ZodArray<z.ZodString, "many">;
754
+ primaryHarness: z.ZodNullable<z.ZodString>;
755
+ authPreference: z.ZodEnum<["subscription", "api_key", "auto"]>;
756
+ }, "strict", z.ZodTypeAny, {
757
+ harnesses: Record<string, {
758
+ default_model: string | null;
759
+ effort: string | null;
760
+ max_turns: number | null;
761
+ max_rounds: number | null;
762
+ fallback_model: string | null;
763
+ web: "auto" | "cached" | "live" | "off";
764
+ auth_preference: "api_key" | "auto" | "subscription";
765
+ }>;
766
+ eligibleHarnesses: string[];
767
+ primaryHarness: string | null;
768
+ authPreference: "api_key" | "auto" | "subscription";
769
+ }, {
770
+ harnesses: Record<string, {
771
+ default_model?: string | null | undefined;
772
+ effort?: string | null | undefined;
773
+ max_turns?: number | null | undefined;
774
+ max_rounds?: number | null | undefined;
775
+ fallback_model?: string | null | undefined;
776
+ web?: "auto" | "cached" | "live" | "off" | undefined;
777
+ auth_preference?: "api_key" | "auto" | "subscription" | undefined;
778
+ }>;
779
+ eligibleHarnesses: string[];
780
+ primaryHarness: string | null;
781
+ authPreference: "api_key" | "auto" | "subscription";
782
+ }>>;
783
+ }, "strict", z.ZodTypeAny, {
784
+ maxSeconds?: number | undefined;
785
+ timeLimitMode?: "hard" | "soft" | undefined;
786
+ prompt: string;
787
+ instructions?: string | undefined;
788
+ attachments?: {
789
+ resourceId: string;
790
+ }[] | undefined;
791
+ mode: "agent" | "ask" | "plan";
792
+ taskGroupId?: string | undefined;
793
+ scope: {
794
+ kind: "project";
795
+ root: string;
796
+ context: "auto";
797
+ ephemeral: boolean;
798
+ } | {
799
+ kind: "none";
800
+ };
801
+ execution: {
802
+ isolation: "envelope" | "live";
803
+ delegated: boolean;
804
+ workspaceRoot?: string | undefined;
805
+ workspaceKind?: "directory" | "git" | undefined;
806
+ scopePaths?: string[] | undefined;
807
+ auxiliaryWritableRoots?: string[] | undefined;
808
+ };
809
+ harnesses?: string[] | undefined;
810
+ primaryHarness?: string | undefined;
811
+ routingGoal?: "auto" | "economy" | "quality" | undefined;
812
+ model?: string | undefined;
813
+ models?: Record<string, string> | undefined;
814
+ effort?: string | undefined;
815
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
816
+ promptCacheTtl?: "1h" | "5m" | undefined;
817
+ efforts?: Record<string, string> | undefined;
818
+ review?: boolean | undefined;
819
+ reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
820
+ reviewerEfforts?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
821
+ n?: number | undefined;
822
+ attempts?: number | null | undefined;
823
+ untilClean?: boolean | undefined;
824
+ deepScan?: boolean | undefined;
825
+ create?: boolean | undefined;
826
+ council?: boolean | undefined;
827
+ synthesis?: "always" | "auto" | "never" | undefined;
828
+ paidBudget?: {
829
+ kind: "unlimited";
830
+ } | {
831
+ kind: "finite";
832
+ maxUsd: number;
833
+ } | undefined;
834
+ web?: "auto" | "cached" | "live" | "off" | undefined;
835
+ externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
836
+ browser?: boolean | undefined;
837
+ tests?: {
838
+ program: string;
839
+ args: string[];
840
+ cwd?: string | undefined;
841
+ envAllowlist: string[];
842
+ }[] | undefined;
843
+ protectedPathApprovals?: {
844
+ path: string;
845
+ reason?: string | undefined;
846
+ }[] | undefined;
847
+ threadId?: string | undefined;
848
+ turnId?: string | undefined;
849
+ parentRunId?: string | undefined;
850
+ delegatedFromRunId?: string | undefined;
851
+ retryOf?: string | undefined;
852
+ continueFrom?: string | undefined;
853
+ continueCarrier?: "auto" | "packet" | undefined;
854
+ continueModelInherited?: boolean | undefined;
855
+ planRunId?: string | undefined;
856
+ planRef?: {
857
+ runId: string;
858
+ sha256: string;
859
+ path: string;
860
+ } | undefined;
861
+ reviewerPanel?: {
862
+ harness: string;
863
+ model?: string | undefined;
864
+ effort?: string | undefined;
865
+ credentialProfileId?: string | undefined;
866
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
867
+ }[] | undefined;
868
+ authPreference?: "api_key" | "auto" | "subscription" | undefined;
869
+ credentialProfileId?: string | null | undefined;
870
+ delegate?: boolean | undefined;
871
+ denyPaths?: string[] | undefined;
872
+ outputSchema?: Record<string, unknown> | undefined;
873
+ maxTurns?: number | undefined;
874
+ access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
875
+ deferredDefaults?: {
876
+ harnesses: Record<string, {
877
+ default_model: string | null;
878
+ effort: string | null;
879
+ max_turns: number | null;
880
+ max_rounds: number | null;
881
+ fallback_model: string | null;
882
+ web: "auto" | "cached" | "live" | "off";
883
+ auth_preference: "api_key" | "auto" | "subscription";
884
+ }>;
885
+ eligibleHarnesses: string[];
886
+ primaryHarness: string | null;
887
+ authPreference: "api_key" | "auto" | "subscription";
888
+ } | undefined;
889
+ }, {
890
+ maxSeconds?: number | undefined;
891
+ timeLimitMode?: "hard" | "soft" | undefined;
892
+ prompt?: string | undefined;
893
+ instructions?: string | undefined;
894
+ attachments?: {
895
+ resourceId: string;
896
+ }[] | undefined;
897
+ mode?: "agent" | "ask" | "plan" | undefined;
898
+ taskGroupId?: string | undefined;
899
+ scope?: {
900
+ kind: "project";
901
+ root: string;
902
+ context?: "auto" | undefined;
903
+ ephemeral?: boolean | undefined;
904
+ } | {
905
+ kind: "none";
906
+ } | undefined;
907
+ execution?: {
908
+ isolation?: "envelope" | "live" | undefined;
909
+ delegated?: boolean | undefined;
910
+ workspaceRoot?: string | undefined;
911
+ workspaceKind?: "directory" | "git" | undefined;
912
+ scopePaths?: string[] | undefined;
913
+ auxiliaryWritableRoots?: string[] | undefined;
914
+ } | undefined;
915
+ harnesses?: string[] | undefined;
916
+ primaryHarness?: string | undefined;
917
+ routingGoal?: "auto" | "economy" | "quality" | undefined;
918
+ model?: string | undefined;
919
+ models?: Record<string, string> | undefined;
920
+ effort?: string | undefined;
921
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
922
+ promptCacheTtl?: "1h" | "5m" | undefined;
923
+ efforts?: Record<string, string> | undefined;
924
+ review?: boolean | undefined;
925
+ reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
926
+ reviewerEfforts?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
927
+ n?: number | undefined;
928
+ attempts?: number | null | undefined;
929
+ untilClean?: boolean | undefined;
930
+ deepScan?: boolean | undefined;
931
+ create?: boolean | undefined;
932
+ council?: boolean | undefined;
933
+ synthesis?: "always" | "auto" | "never" | undefined;
934
+ paidBudget?: {
935
+ kind: "unlimited";
936
+ } | {
937
+ kind: "finite";
938
+ maxUsd: number;
939
+ } | undefined;
940
+ web?: "auto" | "cached" | "live" | "off" | undefined;
941
+ externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
942
+ browser?: boolean | undefined;
943
+ tests?: {
944
+ program: string;
945
+ args?: string[] | undefined;
946
+ cwd?: string | undefined;
947
+ envAllowlist?: string[] | undefined;
948
+ }[] | undefined;
949
+ protectedPathApprovals?: {
950
+ path: string;
951
+ reason?: string | undefined;
952
+ }[] | undefined;
953
+ threadId?: string | undefined;
954
+ turnId?: string | undefined;
955
+ parentRunId?: string | undefined;
956
+ delegatedFromRunId?: string | undefined;
957
+ retryOf?: string | undefined;
958
+ continueFrom?: string | undefined;
959
+ continueCarrier?: "auto" | "packet" | undefined;
960
+ continueModelInherited?: boolean | undefined;
961
+ planRunId?: string | undefined;
962
+ planRef?: {
963
+ runId: string;
964
+ sha256: string;
965
+ path: string;
966
+ } | undefined;
967
+ reviewerPanel?: {
968
+ harness: string;
969
+ model?: string | undefined;
970
+ effort?: string | undefined;
971
+ credentialProfileId?: string | undefined;
972
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
973
+ }[] | undefined;
974
+ authPreference?: "api_key" | "auto" | "subscription" | undefined;
975
+ credentialProfileId?: string | null | undefined;
976
+ delegate?: boolean | undefined;
977
+ denyPaths?: string[] | undefined;
978
+ outputSchema?: Record<string, unknown> | undefined;
979
+ maxTurns?: number | undefined;
980
+ access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
981
+ deferredDefaults?: {
982
+ harnesses: Record<string, {
983
+ default_model?: string | null | undefined;
984
+ effort?: string | null | undefined;
985
+ max_turns?: number | null | undefined;
986
+ max_rounds?: number | null | undefined;
987
+ fallback_model?: string | null | undefined;
988
+ web?: "auto" | "cached" | "live" | "off" | undefined;
989
+ auth_preference?: "api_key" | "auto" | "subscription" | undefined;
990
+ }>;
991
+ eligibleHarnesses: string[];
992
+ primaryHarness: string | null;
993
+ authPreference: "api_key" | "auto" | "subscription";
994
+ } | undefined;
995
+ }>;
996
+ export declare function decodeAcceptedRunStart(raw: unknown): {
997
+ request: {
998
+ maxSeconds?: number | undefined;
999
+ timeLimitMode?: "hard" | "soft" | undefined;
1000
+ prompt: string;
1001
+ instructions?: string | undefined;
1002
+ attachments?: {
1003
+ resourceId: string;
1004
+ }[] | undefined;
1005
+ mode: "agent" | "ask" | "plan";
1006
+ taskGroupId?: string | undefined;
1007
+ scope: {
1008
+ kind: "project";
1009
+ root: string;
1010
+ context: "auto";
1011
+ ephemeral: boolean;
1012
+ } | {
1013
+ kind: "none";
1014
+ };
1015
+ execution: {
1016
+ isolation: "envelope" | "live";
1017
+ delegated: boolean;
1018
+ workspaceRoot?: string | undefined;
1019
+ workspaceKind?: "directory" | "git" | undefined;
1020
+ scopePaths?: string[] | undefined;
1021
+ auxiliaryWritableRoots?: string[] | undefined;
1022
+ };
1023
+ harnesses?: string[] | undefined;
1024
+ primaryHarness?: string | undefined;
1025
+ routingGoal?: "auto" | "economy" | "quality" | undefined;
1026
+ model?: string | undefined;
1027
+ models?: Record<string, string> | undefined;
1028
+ effort?: string | undefined;
1029
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
1030
+ promptCacheTtl?: "1h" | "5m" | undefined;
1031
+ efforts?: Record<string, string> | undefined;
1032
+ review?: boolean | undefined;
1033
+ reviewerModels?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
1034
+ reviewerEfforts?: Partial<Record<"anthropic" | "cursor" | "google" | "local" | "openai" | "opencode" | "unknown" | "xai", string>> | undefined;
1035
+ n?: number | undefined;
1036
+ attempts?: number | null | undefined;
1037
+ untilClean?: boolean | undefined;
1038
+ deepScan?: boolean | undefined;
1039
+ create?: boolean | undefined;
1040
+ council?: boolean | undefined;
1041
+ synthesis?: "always" | "auto" | "never" | undefined;
1042
+ paidBudget?: {
1043
+ kind: "unlimited";
1044
+ } | {
1045
+ kind: "finite";
1046
+ maxUsd: number;
1047
+ } | undefined;
1048
+ web?: "auto" | "cached" | "live" | "off" | undefined;
1049
+ externalContextPolicy?: "auto" | "cached" | "live" | "off" | undefined;
1050
+ browser?: boolean | undefined;
1051
+ tests?: {
1052
+ program: string;
1053
+ args: string[];
1054
+ cwd?: string | undefined;
1055
+ envAllowlist: string[];
1056
+ }[] | undefined;
1057
+ protectedPathApprovals?: {
1058
+ path: string;
1059
+ reason?: string | undefined;
1060
+ }[] | undefined;
1061
+ threadId?: string | undefined;
1062
+ turnId?: string | undefined;
1063
+ parentRunId?: string | undefined;
1064
+ delegatedFromRunId?: string | undefined;
1065
+ retryOf?: string | undefined;
1066
+ continueFrom?: string | undefined;
1067
+ continueCarrier?: "auto" | "packet" | undefined;
1068
+ continueModelInherited?: boolean | undefined;
1069
+ planRunId?: string | undefined;
1070
+ planRef?: {
1071
+ runId: string;
1072
+ sha256: string;
1073
+ path: string;
1074
+ } | undefined;
1075
+ reviewerPanel?: {
1076
+ harness: string;
1077
+ model?: string | undefined;
1078
+ effort?: string | undefined;
1079
+ credentialProfileId?: string | undefined;
1080
+ processingPreference?: "economy" | "fast" | "standard" | undefined;
1081
+ }[] | undefined;
1082
+ authPreference?: "api_key" | "auto" | "subscription" | undefined;
1083
+ credentialProfileId?: string | null | undefined;
1084
+ delegate?: boolean | undefined;
1085
+ denyPaths?: string[] | undefined;
1086
+ outputSchema?: Record<string, unknown> | undefined;
1087
+ maxTurns?: number | undefined;
1088
+ access?: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write" | undefined;
1089
+ };
1090
+ deferredDefaults: {
1091
+ harnesses: Record<string, {
1092
+ default_model: string | null;
1093
+ effort: string | null;
1094
+ max_turns: number | null;
1095
+ max_rounds: number | null;
1096
+ fallback_model: string | null;
1097
+ web: "auto" | "cached" | "live" | "off";
1098
+ auth_preference: "api_key" | "auto" | "subscription";
1099
+ }>;
1100
+ eligibleHarnesses: string[];
1101
+ primaryHarness: string | null;
1102
+ authPreference: "api_key" | "auto" | "subscription";
1103
+ } | undefined;
1104
+ };
1105
+ //# sourceMappingURL=captured-run-start.d.ts.map