@claudexor/schema 3.3.15 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/apply-eligibility.d.ts +0 -882
  2. package/dist/apply-eligibility.d.ts.map +1 -1
  3. package/dist/apply-eligibility.js +0 -145
  4. package/dist/apply-eligibility.js.map +1 -1
  5. package/dist/control.js +4 -4
  6. package/dist/control.js.map +1 -1
  7. package/dist/harness.d.ts +2 -3
  8. package/dist/harness.d.ts.map +1 -1
  9. package/dist/harness.js +3 -4
  10. package/dist/harness.js.map +1 -1
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +1 -0
  14. package/dist/index.js.map +1 -1
  15. package/dist/mcp-run-result.d.ts +1932 -0
  16. package/dist/mcp-run-result.d.ts.map +1 -0
  17. package/dist/mcp-run-result.js +155 -0
  18. package/dist/mcp-run-result.js.map +1 -0
  19. package/dist/operation.d.ts +9 -0
  20. package/dist/operation.d.ts.map +1 -1
  21. package/dist/operation.js +10 -0
  22. package/dist/operation.js.map +1 -1
  23. package/dist/primitives.js +1 -1
  24. package/dist/primitives.js.map +1 -1
  25. package/dist/task.d.ts.map +1 -1
  26. package/dist/task.js +1 -1
  27. package/dist/task.js.map +1 -1
  28. package/dist/telemetry.d.ts +8 -8
  29. package/dist/telemetry.d.ts.map +1 -1
  30. package/dist/telemetry.js +8 -8
  31. package/dist/telemetry.js.map +1 -1
  32. package/generated/ControlHandshakeResponse.schema.json +8 -0
  33. package/generated/ControlRunDetail.schema.json +4 -4
  34. package/generated/ControlRunListResponse.schema.json +4 -4
  35. package/generated/ControlRunSummary.schema.json +4 -4
  36. package/generated/HarnessEvent.schema.json +1 -1
  37. package/generated/McpRunHandleResult.schema.json +538 -151
  38. package/generated/McpRunToolResult.schema.json +517 -130
  39. package/generated/RunTelemetry.schema.json +7 -7
  40. package/generated/TaskContract.schema.json +1 -1
  41. package/package.json +2 -2
@@ -24,886 +24,4 @@ export declare const ApplyEligibility: z.ZodObject<{
24
24
  requiredAction: string | null;
25
25
  }>;
26
26
  export type ApplyEligibility = z.infer<typeof ApplyEligibility>;
27
- export declare const RunDetailProblem: z.ZodObject<{
28
- code: z.ZodNullable<z.ZodString>;
29
- message: z.ZodString;
30
- retryable: z.ZodNullable<z.ZodBoolean>;
31
- }, "strict", z.ZodTypeAny, {
32
- code: string | null;
33
- message: string;
34
- retryable: boolean | null;
35
- }, {
36
- code: string | null;
37
- message: string;
38
- retryable: boolean | null;
39
- }>;
40
- export type RunDetailProblem = z.infer<typeof RunDetailProblem>;
41
- /**
42
- * The structured result shape MCP run tools return (structuredContent).
43
- * Text content mirrors it for hosts without structured-output support.
44
- */
45
- export declare const McpRunToolResult: z.ZodObject<{
46
- summary: z.ZodString;
47
- runId: z.ZodNullable<z.ZodString>;
48
- runDir: z.ZodNullable<z.ZodString>;
49
- status: z.ZodNullable<z.ZodString>;
50
- outcomeFacts: z.ZodDefault<z.ZodNullable<z.ZodObject<{
51
- lifecycle: z.ZodEnum<["succeeded", "failed", "cancelled", "interrupted"]>;
52
- noChanges: z.ZodDefault<z.ZodBoolean>;
53
- checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
54
- review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
55
- reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
56
- work_state: z.ZodOptional<z.ZodObject<{
57
- state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
58
- source: z.ZodEnum<["constrained", "validated", "absent"]>;
59
- required_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
- kind: z.ZodEnum<["file", "context", "credential", "permission", "decision", "external_dependency"]>;
61
- locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
62
- description: z.ZodString;
63
- }, "strip", z.ZodTypeAny, {
64
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
65
- locator: string | null;
66
- description: string;
67
- }, {
68
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
69
- locator?: string | null | undefined;
70
- description: string;
71
- }>, "many">>;
72
- }, "strip", z.ZodTypeAny, {
73
- state: "completed" | "incomplete" | "needs_input" | "unverified";
74
- source: "absent" | "constrained" | "validated";
75
- required_inputs?: {
76
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
77
- locator: string | null;
78
- description: string;
79
- }[] | undefined;
80
- }, {
81
- state: "completed" | "incomplete" | "needs_input" | "unverified";
82
- source: "absent" | "constrained" | "validated";
83
- required_inputs?: {
84
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
85
- locator?: string | null | undefined;
86
- description: string;
87
- }[] | undefined;
88
- }>>;
89
- }, "strict", z.ZodTypeAny, {
90
- lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
91
- noChanges: boolean;
92
- checks: "failed" | "not_configured" | "passed";
93
- review: "approved" | "blocked" | "not_run";
94
- reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
95
- work_state?: {
96
- state: "completed" | "incomplete" | "needs_input" | "unverified";
97
- source: "absent" | "constrained" | "validated";
98
- required_inputs?: {
99
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
100
- locator: string | null;
101
- description: string;
102
- }[] | undefined;
103
- } | undefined;
104
- }, {
105
- lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
106
- noChanges?: boolean | undefined;
107
- checks?: "failed" | "not_configured" | "passed" | undefined;
108
- review?: "approved" | "blocked" | "not_run" | undefined;
109
- reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
110
- work_state?: {
111
- state: "completed" | "incomplete" | "needs_input" | "unverified";
112
- source: "absent" | "constrained" | "validated";
113
- required_inputs?: {
114
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
115
- locator?: string | null | undefined;
116
- description: string;
117
- }[] | undefined;
118
- } | undefined;
119
- }>>>;
120
- failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
121
- phase: z.ZodDefault<z.ZodString>;
122
- category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
123
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete"]>>>;
124
- harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
125
- attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
126
- safeMessage: z.ZodString;
127
- rawDetailRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
128
- logRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
129
- eventRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
130
- runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
131
- resetsAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
132
- nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
133
- }, "strip", z.ZodTypeAny, {
134
- phase: string;
135
- category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
136
- code: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
137
- harnessId: string | null;
138
- attemptId: string | null;
139
- safeMessage: string;
140
- rawDetailRef: string | null;
141
- logRefs: string[];
142
- eventRefs: string[];
143
- runDir: string | null;
144
- resetsAt: string | null;
145
- nextActions: string[];
146
- }, {
147
- phase?: string | undefined;
148
- category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
149
- code?: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
150
- harnessId?: string | null | undefined;
151
- attemptId?: string | null | undefined;
152
- safeMessage: string;
153
- rawDetailRef?: string | null | undefined;
154
- logRefs?: string[] | undefined;
155
- eventRefs?: string[] | undefined;
156
- runDir?: string | null | undefined;
157
- resetsAt?: string | null | undefined;
158
- nextActions?: string[] | undefined;
159
- }>>>;
160
- applyEligibility: z.ZodNullable<z.ZodObject<{
161
- eligible: z.ZodBoolean;
162
- state: z.ZodNullable<z.ZodString>;
163
- reason: z.ZodNullable<z.ZodString>;
164
- requiredAction: z.ZodNullable<z.ZodString>;
165
- }, "strip", z.ZodTypeAny, {
166
- eligible: boolean;
167
- state: string | null;
168
- reason: string | null;
169
- requiredAction: string | null;
170
- }, {
171
- eligible: boolean;
172
- state: string | null;
173
- reason: string | null;
174
- requiredAction: string | null;
175
- }>>;
176
- outcomeBanner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
177
- planReadiness: z.ZodDefault<z.ZodNullable<z.ZodObject<{
178
- state: z.ZodEnum<["ready", "needs_answers", "unverified"]>;
179
- questionCount: z.ZodDefault<z.ZodNumber>;
180
- }, "strict", z.ZodTypeAny, {
181
- state: "needs_answers" | "ready" | "unverified";
182
- questionCount: number;
183
- }, {
184
- state: "needs_answers" | "ready" | "unverified";
185
- questionCount?: number | undefined;
186
- }>>>;
187
- /** Typed disclosure that the post-terminal detail read DEGRADED: the run
188
- * finished and its result survived, but the detail projections above are
189
- * absent for this machine-readable reason (e.g. run_facts_invalid). */
190
- detailProblem: z.ZodDefault<z.ZodNullable<z.ZodObject<{
191
- code: z.ZodNullable<z.ZodString>;
192
- message: z.ZodString;
193
- retryable: z.ZodNullable<z.ZodBoolean>;
194
- }, "strict", z.ZodTypeAny, {
195
- code: string | null;
196
- message: string;
197
- retryable: boolean | null;
198
- }, {
199
- code: string | null;
200
- message: string;
201
- retryable: boolean | null;
202
- }>>>;
203
- /** Council membership + merge disclosure (QA-023b) so an MCP host can
204
- * machine-verify a `--council` plan was really N/N and who merged, without
205
- * reading local artifacts; null for solo/non-plan tools and deferred handles. */
206
- council: z.ZodDefault<z.ZodNullable<z.ZodObject<{
207
- requested: z.ZodNumber;
208
- drafted: z.ZodNumber;
209
- degraded: z.ZodDefault<z.ZodBoolean>;
210
- mergedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
211
- members: z.ZodDefault<z.ZodArray<z.ZodObject<{
212
- harnessId: z.ZodString;
213
- role: z.ZodEnum<["primary", "member"]>;
214
- status: z.ZodEnum<["drafted", "failed", "merged"]>;
215
- error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
216
- }, "strict", z.ZodTypeAny, {
217
- harnessId: string;
218
- role: "member" | "primary";
219
- status: "drafted" | "failed" | "merged";
220
- error: string | null;
221
- }, {
222
- harnessId: string;
223
- role: "member" | "primary";
224
- status: "drafted" | "failed" | "merged";
225
- error?: string | null | undefined;
226
- }>, "many">>;
227
- }, "strict", z.ZodTypeAny, {
228
- requested: number;
229
- drafted: number;
230
- degraded: boolean;
231
- mergedBy: string | null;
232
- members: {
233
- harnessId: string;
234
- role: "member" | "primary";
235
- status: "drafted" | "failed" | "merged";
236
- error: string | null;
237
- }[];
238
- }, {
239
- requested: number;
240
- drafted: number;
241
- degraded?: boolean | undefined;
242
- mergedBy?: string | null | undefined;
243
- members?: {
244
- harnessId: string;
245
- role: "member" | "primary";
246
- status: "drafted" | "failed" | "merged";
247
- error?: string | null | undefined;
248
- }[] | undefined;
249
- }>>>;
250
- parentRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
251
- delegatedFromRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
252
- delegation: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
253
- requested: z.ZodDefault<z.ZodBoolean>;
254
- effective: z.ZodDefault<z.ZodBoolean>;
255
- used: z.ZodDefault<z.ZodBoolean>;
256
- reason: z.ZodDefault<z.ZodEnum<["pending", "not_requested", "injected_unused", "used", "runtime_unavailable", "manifest_unsupported", "access_profile_incompatible", "partially_degraded", "startup_failed"]>>;
257
- remediation: z.ZodDefault<z.ZodNullable<z.ZodString>>;
258
- }, "strict", z.ZodTypeAny, {
259
- requested: boolean;
260
- effective: boolean;
261
- used: boolean;
262
- reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
263
- remediation: string | null;
264
- }, {
265
- requested?: boolean | undefined;
266
- effective?: boolean | undefined;
267
- used?: boolean | undefined;
268
- reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
269
- remediation?: string | null | undefined;
270
- }>, {
271
- requested: boolean;
272
- effective: boolean;
273
- used: boolean;
274
- reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
275
- remediation: string | null;
276
- }, {
277
- requested?: boolean | undefined;
278
- effective?: boolean | undefined;
279
- used?: boolean | undefined;
280
- reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
281
- remediation?: string | null | undefined;
282
- }>>>;
283
- }, "strip", z.ZodTypeAny, {
284
- summary: string;
285
- runId: string | null;
286
- runDir: string | null;
287
- status: string | null;
288
- outcomeFacts: {
289
- lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
290
- noChanges: boolean;
291
- checks: "failed" | "not_configured" | "passed";
292
- review: "approved" | "blocked" | "not_run";
293
- reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
294
- work_state?: {
295
- state: "completed" | "incomplete" | "needs_input" | "unverified";
296
- source: "absent" | "constrained" | "validated";
297
- required_inputs?: {
298
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
299
- locator: string | null;
300
- description: string;
301
- }[] | undefined;
302
- } | undefined;
303
- } | null;
304
- failure: {
305
- phase: string;
306
- category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
307
- code: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
308
- harnessId: string | null;
309
- attemptId: string | null;
310
- safeMessage: string;
311
- rawDetailRef: string | null;
312
- logRefs: string[];
313
- eventRefs: string[];
314
- runDir: string | null;
315
- resetsAt: string | null;
316
- nextActions: string[];
317
- } | null;
318
- applyEligibility: {
319
- eligible: boolean;
320
- state: string | null;
321
- reason: string | null;
322
- requiredAction: string | null;
323
- } | null;
324
- outcomeBanner: string | null;
325
- planReadiness: {
326
- state: "needs_answers" | "ready" | "unverified";
327
- questionCount: number;
328
- } | null;
329
- detailProblem: {
330
- code: string | null;
331
- message: string;
332
- retryable: boolean | null;
333
- } | null;
334
- council: {
335
- requested: number;
336
- drafted: number;
337
- degraded: boolean;
338
- mergedBy: string | null;
339
- members: {
340
- harnessId: string;
341
- role: "member" | "primary";
342
- status: "drafted" | "failed" | "merged";
343
- error: string | null;
344
- }[];
345
- } | null;
346
- parentRunId: string | null;
347
- delegatedFromRunId: string | null;
348
- delegation: {
349
- requested: boolean;
350
- effective: boolean;
351
- used: boolean;
352
- reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
353
- remediation: string | null;
354
- } | null;
355
- }, {
356
- summary: string;
357
- runId: string | null;
358
- runDir: string | null;
359
- status: string | null;
360
- outcomeFacts?: {
361
- lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
362
- noChanges?: boolean | undefined;
363
- checks?: "failed" | "not_configured" | "passed" | undefined;
364
- review?: "approved" | "blocked" | "not_run" | undefined;
365
- reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
366
- work_state?: {
367
- state: "completed" | "incomplete" | "needs_input" | "unverified";
368
- source: "absent" | "constrained" | "validated";
369
- required_inputs?: {
370
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
371
- locator?: string | null | undefined;
372
- description: string;
373
- }[] | undefined;
374
- } | undefined;
375
- } | null | undefined;
376
- failure?: {
377
- phase?: string | undefined;
378
- category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
379
- code?: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
380
- harnessId?: string | null | undefined;
381
- attemptId?: string | null | undefined;
382
- safeMessage: string;
383
- rawDetailRef?: string | null | undefined;
384
- logRefs?: string[] | undefined;
385
- eventRefs?: string[] | undefined;
386
- runDir?: string | null | undefined;
387
- resetsAt?: string | null | undefined;
388
- nextActions?: string[] | undefined;
389
- } | null | undefined;
390
- applyEligibility: {
391
- eligible: boolean;
392
- state: string | null;
393
- reason: string | null;
394
- requiredAction: string | null;
395
- } | null;
396
- outcomeBanner?: string | null | undefined;
397
- planReadiness?: {
398
- state: "needs_answers" | "ready" | "unverified";
399
- questionCount?: number | undefined;
400
- } | null | undefined;
401
- detailProblem?: {
402
- code: string | null;
403
- message: string;
404
- retryable: boolean | null;
405
- } | null | undefined;
406
- council?: {
407
- requested: number;
408
- drafted: number;
409
- degraded?: boolean | undefined;
410
- mergedBy?: string | null | undefined;
411
- members?: {
412
- harnessId: string;
413
- role: "member" | "primary";
414
- status: "drafted" | "failed" | "merged";
415
- error?: string | null | undefined;
416
- }[] | undefined;
417
- } | null | undefined;
418
- parentRunId?: string | null | undefined;
419
- delegatedFromRunId?: string | null | undefined;
420
- delegation?: {
421
- requested?: boolean | undefined;
422
- effective?: boolean | undefined;
423
- used?: boolean | undefined;
424
- reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
425
- remediation?: string | null | undefined;
426
- } | null | undefined;
427
- }>;
428
- export type McpRunToolResult = z.infer<typeof McpRunToolResult>;
429
- /**
430
- * The structured result shape the MCP READ tools (claudexor_inspect /
431
- * claudexor_run_status / claudexor_run_result) return: a durable run handle
432
- * projected from GET /runs/:id through the SAME axes every surface reads.
433
- * Strict — the read tools emit exactly these keys so hosts can branch on a
434
- * declared shape instead of a free-text blob (v3: no legacy extra fields).
435
- */
436
- export declare const McpRunHandleResult: z.ZodObject<{
437
- summary: z.ZodString;
438
- runId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
439
- runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
440
- status: z.ZodDefault<z.ZodNullable<z.ZodString>>;
441
- decisionStatus: z.ZodDefault<z.ZodNullable<z.ZodString>>;
442
- pendingInteractions: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
443
- outcomeFacts: z.ZodDefault<z.ZodNullable<z.ZodObject<{
444
- lifecycle: z.ZodEnum<["succeeded", "failed", "cancelled", "interrupted"]>;
445
- noChanges: z.ZodDefault<z.ZodBoolean>;
446
- checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
447
- review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
448
- reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
449
- work_state: z.ZodOptional<z.ZodObject<{
450
- state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
451
- source: z.ZodEnum<["constrained", "validated", "absent"]>;
452
- required_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
453
- kind: z.ZodEnum<["file", "context", "credential", "permission", "decision", "external_dependency"]>;
454
- locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
455
- description: z.ZodString;
456
- }, "strip", z.ZodTypeAny, {
457
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
458
- locator: string | null;
459
- description: string;
460
- }, {
461
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
462
- locator?: string | null | undefined;
463
- description: string;
464
- }>, "many">>;
465
- }, "strip", z.ZodTypeAny, {
466
- state: "completed" | "incomplete" | "needs_input" | "unverified";
467
- source: "absent" | "constrained" | "validated";
468
- required_inputs?: {
469
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
470
- locator: string | null;
471
- description: string;
472
- }[] | undefined;
473
- }, {
474
- state: "completed" | "incomplete" | "needs_input" | "unverified";
475
- source: "absent" | "constrained" | "validated";
476
- required_inputs?: {
477
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
478
- locator?: string | null | undefined;
479
- description: string;
480
- }[] | undefined;
481
- }>>;
482
- }, "strict", z.ZodTypeAny, {
483
- lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
484
- noChanges: boolean;
485
- checks: "failed" | "not_configured" | "passed";
486
- review: "approved" | "blocked" | "not_run";
487
- reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
488
- work_state?: {
489
- state: "completed" | "incomplete" | "needs_input" | "unverified";
490
- source: "absent" | "constrained" | "validated";
491
- required_inputs?: {
492
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
493
- locator: string | null;
494
- description: string;
495
- }[] | undefined;
496
- } | undefined;
497
- }, {
498
- lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
499
- noChanges?: boolean | undefined;
500
- checks?: "failed" | "not_configured" | "passed" | undefined;
501
- review?: "approved" | "blocked" | "not_run" | undefined;
502
- reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
503
- work_state?: {
504
- state: "completed" | "incomplete" | "needs_input" | "unverified";
505
- source: "absent" | "constrained" | "validated";
506
- required_inputs?: {
507
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
508
- locator?: string | null | undefined;
509
- description: string;
510
- }[] | undefined;
511
- } | undefined;
512
- }>>>;
513
- failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
514
- phase: z.ZodDefault<z.ZodString>;
515
- category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
516
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete"]>>>;
517
- harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
518
- attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
519
- safeMessage: z.ZodString;
520
- rawDetailRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
521
- logRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
522
- eventRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
523
- runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
524
- resetsAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
525
- nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
526
- }, "strip", z.ZodTypeAny, {
527
- phase: string;
528
- category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
529
- code: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
530
- harnessId: string | null;
531
- attemptId: string | null;
532
- safeMessage: string;
533
- rawDetailRef: string | null;
534
- logRefs: string[];
535
- eventRefs: string[];
536
- runDir: string | null;
537
- resetsAt: string | null;
538
- nextActions: string[];
539
- }, {
540
- phase?: string | undefined;
541
- category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
542
- code?: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
543
- harnessId?: string | null | undefined;
544
- attemptId?: string | null | undefined;
545
- safeMessage: string;
546
- rawDetailRef?: string | null | undefined;
547
- logRefs?: string[] | undefined;
548
- eventRefs?: string[] | undefined;
549
- runDir?: string | null | undefined;
550
- resetsAt?: string | null | undefined;
551
- nextActions?: string[] | undefined;
552
- }>>>;
553
- outcomeBanner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
554
- applyEligibility: z.ZodDefault<z.ZodNullable<z.ZodObject<{
555
- eligible: z.ZodBoolean;
556
- state: z.ZodNullable<z.ZodString>;
557
- reason: z.ZodNullable<z.ZodString>;
558
- requiredAction: z.ZodNullable<z.ZodString>;
559
- }, "strip", z.ZodTypeAny, {
560
- eligible: boolean;
561
- state: string | null;
562
- reason: string | null;
563
- requiredAction: string | null;
564
- }, {
565
- eligible: boolean;
566
- state: string | null;
567
- reason: string | null;
568
- requiredAction: string | null;
569
- }>>>;
570
- planReadiness: z.ZodDefault<z.ZodNullable<z.ZodObject<{
571
- state: z.ZodEnum<["ready", "needs_answers", "unverified"]>;
572
- questionCount: z.ZodDefault<z.ZodNumber>;
573
- }, "strict", z.ZodTypeAny, {
574
- state: "needs_answers" | "ready" | "unverified";
575
- questionCount: number;
576
- }, {
577
- state: "needs_answers" | "ready" | "unverified";
578
- questionCount?: number | undefined;
579
- }>>>;
580
- /** Council membership + merge disclosure (QA-023b), projected from the same
581
- * GET /runs/:id detail every read surface shares; null for solo/non-plan runs. */
582
- council: z.ZodDefault<z.ZodNullable<z.ZodObject<{
583
- requested: z.ZodNumber;
584
- drafted: z.ZodNumber;
585
- degraded: z.ZodDefault<z.ZodBoolean>;
586
- mergedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
587
- members: z.ZodDefault<z.ZodArray<z.ZodObject<{
588
- harnessId: z.ZodString;
589
- role: z.ZodEnum<["primary", "member"]>;
590
- status: z.ZodEnum<["drafted", "failed", "merged"]>;
591
- error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
592
- }, "strict", z.ZodTypeAny, {
593
- harnessId: string;
594
- role: "member" | "primary";
595
- status: "drafted" | "failed" | "merged";
596
- error: string | null;
597
- }, {
598
- harnessId: string;
599
- role: "member" | "primary";
600
- status: "drafted" | "failed" | "merged";
601
- error?: string | null | undefined;
602
- }>, "many">>;
603
- }, "strict", z.ZodTypeAny, {
604
- requested: number;
605
- drafted: number;
606
- degraded: boolean;
607
- mergedBy: string | null;
608
- members: {
609
- harnessId: string;
610
- role: "member" | "primary";
611
- status: "drafted" | "failed" | "merged";
612
- error: string | null;
613
- }[];
614
- }, {
615
- requested: number;
616
- drafted: number;
617
- degraded?: boolean | undefined;
618
- mergedBy?: string | null | undefined;
619
- members?: {
620
- harnessId: string;
621
- role: "member" | "primary";
622
- status: "drafted" | "failed" | "merged";
623
- error?: string | null | undefined;
624
- }[] | undefined;
625
- }>>>;
626
- /** Run budget snapshot (QA-023c) carrying BOTH exact billed cash and the
627
- * separate subscription valuation, so an MCP host learns a native-subscription
628
- * run's real resource cost (cash $0 + non-null valuation) without reading
629
- * local artifacts; null when no budget snapshot is available. */
630
- budget: z.ZodDefault<z.ZodNullable<z.ZodObject<{
631
- paidBudget: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
632
- kind: z.ZodLiteral<"unlimited">;
633
- }, "strict", z.ZodTypeAny, {
634
- kind: "unlimited";
635
- }, {
636
- kind: "unlimited";
637
- }>, z.ZodObject<{
638
- kind: z.ZodLiteral<"finite">;
639
- maxUsd: z.ZodNumber;
640
- }, "strict", z.ZodTypeAny, {
641
- kind: "finite";
642
- maxUsd: number;
643
- }, {
644
- kind: "finite";
645
- maxUsd: number;
646
- }>]>>;
647
- spendUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
648
- valuationUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
649
- valuationKnowledge: z.ZodDefault<z.ZodEnum<["exact", "estimated", "unknown"]>>;
650
- remainingUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
651
- estimated: z.ZodDefault<z.ZodBoolean>;
652
- source: z.ZodDefault<z.ZodEnum<["decision", "events", "settings", "unknown"]>>;
653
- evidence: z.ZodDefault<z.ZodEnum<["complete", "incomplete", "unavailable"]>>;
654
- }, "strip", z.ZodTypeAny, {
655
- paidBudget: {
656
- kind: "unlimited";
657
- } | {
658
- kind: "finite";
659
- maxUsd: number;
660
- };
661
- spendUsd: number | null;
662
- valuationUsd: number | null;
663
- valuationKnowledge: "estimated" | "exact" | "unknown";
664
- remainingUsd: number | null;
665
- estimated: boolean;
666
- source: "decision" | "events" | "settings" | "unknown";
667
- evidence: "complete" | "incomplete" | "unavailable";
668
- }, {
669
- paidBudget?: {
670
- kind: "unlimited";
671
- } | {
672
- kind: "finite";
673
- maxUsd: number;
674
- } | undefined;
675
- spendUsd?: number | null | undefined;
676
- valuationUsd?: number | null | undefined;
677
- valuationKnowledge?: "estimated" | "exact" | "unknown" | undefined;
678
- remainingUsd?: number | null | undefined;
679
- estimated?: boolean | undefined;
680
- source?: "decision" | "events" | "settings" | "unknown" | undefined;
681
- evidence?: "complete" | "incomplete" | "unavailable" | undefined;
682
- }>>>;
683
- parentRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
684
- delegatedFromRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
685
- delegation: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
686
- requested: z.ZodDefault<z.ZodBoolean>;
687
- effective: z.ZodDefault<z.ZodBoolean>;
688
- used: z.ZodDefault<z.ZodBoolean>;
689
- reason: z.ZodDefault<z.ZodEnum<["pending", "not_requested", "injected_unused", "used", "runtime_unavailable", "manifest_unsupported", "access_profile_incompatible", "partially_degraded", "startup_failed"]>>;
690
- remediation: z.ZodDefault<z.ZodNullable<z.ZodString>>;
691
- }, "strict", z.ZodTypeAny, {
692
- requested: boolean;
693
- effective: boolean;
694
- used: boolean;
695
- reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
696
- remediation: string | null;
697
- }, {
698
- requested?: boolean | undefined;
699
- effective?: boolean | undefined;
700
- used?: boolean | undefined;
701
- reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
702
- remediation?: string | null | undefined;
703
- }>, {
704
- requested: boolean;
705
- effective: boolean;
706
- used: boolean;
707
- reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
708
- remediation: string | null;
709
- }, {
710
- requested?: boolean | undefined;
711
- effective?: boolean | undefined;
712
- used?: boolean | undefined;
713
- reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
714
- remediation?: string | null | undefined;
715
- }>>>;
716
- detailProblem: z.ZodDefault<z.ZodNullable<z.ZodObject<{
717
- code: z.ZodNullable<z.ZodString>;
718
- message: z.ZodString;
719
- retryable: z.ZodNullable<z.ZodBoolean>;
720
- }, "strict", z.ZodTypeAny, {
721
- code: string | null;
722
- message: string;
723
- retryable: boolean | null;
724
- }, {
725
- code: string | null;
726
- message: string;
727
- retryable: boolean | null;
728
- }>>>;
729
- }, "strict", z.ZodTypeAny, {
730
- summary: string;
731
- runId: string | null;
732
- runDir: string | null;
733
- status: string | null;
734
- decisionStatus: string | null;
735
- pendingInteractions: number | null;
736
- outcomeFacts: {
737
- lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
738
- noChanges: boolean;
739
- checks: "failed" | "not_configured" | "passed";
740
- review: "approved" | "blocked" | "not_run";
741
- reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
742
- work_state?: {
743
- state: "completed" | "incomplete" | "needs_input" | "unverified";
744
- source: "absent" | "constrained" | "validated";
745
- required_inputs?: {
746
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
747
- locator: string | null;
748
- description: string;
749
- }[] | undefined;
750
- } | undefined;
751
- } | null;
752
- failure: {
753
- phase: string;
754
- category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
755
- code: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
756
- harnessId: string | null;
757
- attemptId: string | null;
758
- safeMessage: string;
759
- rawDetailRef: string | null;
760
- logRefs: string[];
761
- eventRefs: string[];
762
- runDir: string | null;
763
- resetsAt: string | null;
764
- nextActions: string[];
765
- } | null;
766
- outcomeBanner: string | null;
767
- applyEligibility: {
768
- eligible: boolean;
769
- state: string | null;
770
- reason: string | null;
771
- requiredAction: string | null;
772
- } | null;
773
- planReadiness: {
774
- state: "needs_answers" | "ready" | "unverified";
775
- questionCount: number;
776
- } | null;
777
- council: {
778
- requested: number;
779
- drafted: number;
780
- degraded: boolean;
781
- mergedBy: string | null;
782
- members: {
783
- harnessId: string;
784
- role: "member" | "primary";
785
- status: "drafted" | "failed" | "merged";
786
- error: string | null;
787
- }[];
788
- } | null;
789
- budget: {
790
- paidBudget: {
791
- kind: "unlimited";
792
- } | {
793
- kind: "finite";
794
- maxUsd: number;
795
- };
796
- spendUsd: number | null;
797
- valuationUsd: number | null;
798
- valuationKnowledge: "estimated" | "exact" | "unknown";
799
- remainingUsd: number | null;
800
- estimated: boolean;
801
- source: "decision" | "events" | "settings" | "unknown";
802
- evidence: "complete" | "incomplete" | "unavailable";
803
- } | null;
804
- parentRunId: string | null;
805
- delegatedFromRunId: string | null;
806
- delegation: {
807
- requested: boolean;
808
- effective: boolean;
809
- used: boolean;
810
- reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
811
- remediation: string | null;
812
- } | null;
813
- detailProblem: {
814
- code: string | null;
815
- message: string;
816
- retryable: boolean | null;
817
- } | null;
818
- }, {
819
- summary: string;
820
- runId?: string | null | undefined;
821
- runDir?: string | null | undefined;
822
- status?: string | null | undefined;
823
- decisionStatus?: string | null | undefined;
824
- pendingInteractions?: number | null | undefined;
825
- outcomeFacts?: {
826
- lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
827
- noChanges?: boolean | undefined;
828
- checks?: "failed" | "not_configured" | "passed" | undefined;
829
- review?: "approved" | "blocked" | "not_run" | undefined;
830
- reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
831
- work_state?: {
832
- state: "completed" | "incomplete" | "needs_input" | "unverified";
833
- source: "absent" | "constrained" | "validated";
834
- required_inputs?: {
835
- kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
836
- locator?: string | null | undefined;
837
- description: string;
838
- }[] | undefined;
839
- } | undefined;
840
- } | null | undefined;
841
- failure?: {
842
- phase?: string | undefined;
843
- category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
844
- code?: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
845
- harnessId?: string | null | undefined;
846
- attemptId?: string | null | undefined;
847
- safeMessage: string;
848
- rawDetailRef?: string | null | undefined;
849
- logRefs?: string[] | undefined;
850
- eventRefs?: string[] | undefined;
851
- runDir?: string | null | undefined;
852
- resetsAt?: string | null | undefined;
853
- nextActions?: string[] | undefined;
854
- } | null | undefined;
855
- outcomeBanner?: string | null | undefined;
856
- applyEligibility?: {
857
- eligible: boolean;
858
- state: string | null;
859
- reason: string | null;
860
- requiredAction: string | null;
861
- } | null | undefined;
862
- planReadiness?: {
863
- state: "needs_answers" | "ready" | "unverified";
864
- questionCount?: number | undefined;
865
- } | null | undefined;
866
- council?: {
867
- requested: number;
868
- drafted: number;
869
- degraded?: boolean | undefined;
870
- mergedBy?: string | null | undefined;
871
- members?: {
872
- harnessId: string;
873
- role: "member" | "primary";
874
- status: "drafted" | "failed" | "merged";
875
- error?: string | null | undefined;
876
- }[] | undefined;
877
- } | null | undefined;
878
- budget?: {
879
- paidBudget?: {
880
- kind: "unlimited";
881
- } | {
882
- kind: "finite";
883
- maxUsd: number;
884
- } | undefined;
885
- spendUsd?: number | null | undefined;
886
- valuationUsd?: number | null | undefined;
887
- valuationKnowledge?: "estimated" | "exact" | "unknown" | undefined;
888
- remainingUsd?: number | null | undefined;
889
- estimated?: boolean | undefined;
890
- source?: "decision" | "events" | "settings" | "unknown" | undefined;
891
- evidence?: "complete" | "incomplete" | "unavailable" | undefined;
892
- } | null | undefined;
893
- parentRunId?: string | null | undefined;
894
- delegatedFromRunId?: string | null | undefined;
895
- delegation?: {
896
- requested?: boolean | undefined;
897
- effective?: boolean | undefined;
898
- used?: boolean | undefined;
899
- reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
900
- remediation?: string | null | undefined;
901
- } | null | undefined;
902
- detailProblem?: {
903
- code: string | null;
904
- message: string;
905
- retryable: boolean | null;
906
- } | null | undefined;
907
- }>;
908
- export type McpRunHandleResult = z.infer<typeof McpRunHandleResult>;
909
27
  //# sourceMappingURL=apply-eligibility.d.ts.map