@claudexor/schema 4.8.2 → 5.0.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.
- package/dist/account-resources.d.ts +325 -56
- package/dist/account-resources.d.ts.map +1 -1
- package/dist/account-resources.js +35 -5
- package/dist/account-resources.js.map +1 -1
- package/dist/account-routing-evidence.d.ts +253 -45
- package/dist/account-routing-evidence.d.ts.map +1 -1
- package/dist/account-target.d.ts +19 -5
- package/dist/account-target.d.ts.map +1 -1
- package/dist/account-target.js +14 -1
- package/dist/account-target.js.map +1 -1
- package/dist/agent-capabilities.d.ts +183 -0
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +2 -0
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/budget.d.ts +3 -0
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +5 -1
- package/dist/budget.js.map +1 -1
- package/dist/capture-inventory.d.ts +60 -0
- package/dist/capture-inventory.d.ts.map +1 -0
- package/dist/capture-inventory.js +57 -0
- package/dist/capture-inventory.js.map +1 -0
- package/dist/control-harness-list.d.ts +102 -18
- package/dist/control-harness-list.d.ts.map +1 -1
- package/dist/control-harness-models.d.ts +299 -6
- package/dist/control-harness-models.d.ts.map +1 -1
- package/dist/control-harness-models.js +12 -3
- package/dist/control-harness-models.js.map +1 -1
- package/dist/control-operation-responses.d.ts +606 -23
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +3 -0
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +1178 -72
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-event-part.d.ts +3 -3
- package/dist/control-run-event-part.js +1 -1
- package/dist/control-run-event-part.js.map +1 -1
- package/dist/control-run-failure.d.ts +276 -12
- package/dist/control-run-failure.d.ts.map +1 -1
- package/dist/control-run-failure.js +54 -16
- package/dist/control-run-failure.js.map +1 -1
- package/dist/control-run-message.js +1 -1
- package/dist/control-run-message.js.map +1 -1
- package/dist/control-thread-apply.d.ts +165 -0
- package/dist/control-thread-apply.d.ts.map +1 -1
- package/dist/control-timeline.d.ts.map +1 -1
- package/dist/control-timeline.js +7 -3
- package/dist/control-timeline.js.map +1 -1
- package/dist/control.d.ts +383 -42
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +9 -5
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +506 -90
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/decision.d.ts +9 -9
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +4 -0
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +162 -0
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +32 -0
- package/dist/delivery.js.map +1 -1
- package/dist/events.d.ts +7 -6
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +15 -8
- package/dist/events.js.map +1 -1
- package/dist/git-result.d.ts +99 -0
- package/dist/git-result.d.ts.map +1 -0
- package/dist/git-result.js +80 -0
- package/dist/git-result.js.map +1 -0
- package/dist/harness-model.d.ts +89 -0
- package/dist/harness-model.d.ts.map +1 -1
- package/dist/harness-model.js +83 -0
- package/dist/harness-model.js.map +1 -1
- package/dist/harness.d.ts +353 -35
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +4 -19
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +620 -51
- package/dist/mcp-run-result.d.ts.map +1 -1
- package/dist/mcp-run-result.js +45 -5
- package/dist/mcp-run-result.js.map +1 -1
- package/dist/mcp-run-wait.d.ts +7 -7
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +3 -2
- package/dist/primitives.js.map +1 -1
- package/dist/project.d.ts +45 -1
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +26 -1
- package/dist/project.js.map +1 -1
- package/dist/quota-read.d.ts +6 -3
- package/dist/quota-read.d.ts.map +1 -1
- package/dist/quota-read.js +7 -1
- package/dist/quota-read.js.map +1 -1
- package/dist/quota-scope.d.ts +29 -0
- package/dist/quota-scope.d.ts.map +1 -0
- package/dist/quota-scope.js +95 -0
- package/dist/quota-scope.js.map +1 -0
- package/dist/rate-limit.d.ts +3 -0
- package/dist/rate-limit.d.ts.map +1 -1
- package/dist/rate-limit.js +5 -1
- package/dist/rate-limit.js.map +1 -1
- package/dist/raw.d.ts +223 -1
- package/dist/raw.d.ts.map +1 -1
- package/dist/raw.js +86 -0
- package/dist/raw.js.map +1 -1
- package/dist/readiness.d.ts +87 -18
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +7 -6
- package/dist/readiness.js.map +1 -1
- package/dist/route-health.d.ts +303 -0
- package/dist/route-health.d.ts.map +1 -0
- package/dist/route-health.js +71 -0
- package/dist/route-health.js.map +1 -0
- package/dist/run-continuity.d.ts +3 -0
- package/dist/run-continuity.d.ts.map +1 -1
- package/dist/run-continuity.js +4 -0
- package/dist/run-continuity.js.map +1 -1
- package/dist/run-facts.d.ts +5 -5
- package/dist/run-facts.d.ts.map +1 -1
- package/dist/run-facts.js +1 -0
- package/dist/run-facts.js.map +1 -1
- package/dist/setup-login.d.ts +1 -1
- package/dist/setup-login.js +1 -1
- package/dist/setup.d.ts +1 -1
- package/dist/setup.js +1 -1
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +3 -0
- package/dist/status-projection.js.map +1 -1
- package/dist/telemetry.d.ts +239 -7
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +4 -2
- package/dist/telemetry.js.map +1 -1
- package/dist/thread-history.d.ts +1109 -161
- package/dist/thread-history.d.ts.map +1 -1
- package/dist/thread-history.js +1 -1
- package/dist/thread-history.js.map +1 -1
- package/dist/tool-ref.d.ts +94 -3
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +98 -6
- package/dist/tool-ref.js.map +1 -1
- package/dist/workspace-preparation.d.ts +54 -0
- package/dist/workspace-preparation.d.ts.map +1 -0
- package/dist/workspace-preparation.js +59 -0
- package/dist/workspace-preparation.js.map +1 -0
- package/generated/AgentCapabilityCatalog.schema.json +54 -0
- package/generated/BudgetObservation.schema.json +8 -1
- package/generated/ControlAccountResetResponse.schema.json +60 -1
- package/generated/ControlAccountResourcesFreshnessResponse.schema.json +46 -2
- package/generated/ControlAccountResourcesResponse.schema.json +46 -2
- package/generated/ControlApplyCheckResponse.schema.json +47 -0
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +105 -4
- package/generated/ControlCredentialProfilesResourcesResponse.schema.json +105 -4
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +59 -2
- package/generated/ControlDeliveryResponse.schema.json +154 -0
- package/generated/ControlHarnessAccountCatalog.schema.json +13 -0
- package/generated/ControlHarnessAccountModelsResponse.schema.json +13 -0
- package/generated/ControlHarnessListResponse.schema.json +59 -2
- package/generated/ControlHarnessModelsQueryResponse.schema.json +97 -51
- package/generated/ControlHarnessModelsResponse.schema.json +96 -0
- package/generated/ControlProjectRemoveReceipt.schema.json +36 -0
- package/generated/ControlQuotaQueryResponse.schema.json +46 -2
- package/generated/ControlQuotaReadRequest.schema.json +4 -0
- package/generated/ControlQuotaRefreshRequest.schema.json +12 -3
- package/generated/ControlRouteHealth.schema.json +202 -0
- package/generated/ControlRunDetail.schema.json +344 -5
- package/generated/ControlRunEventPart.schema.json +4 -2
- package/generated/ControlRunListResponse.schema.json +341 -2
- package/generated/ControlRunMessageRequest.schema.json +1 -1
- package/generated/ControlRunSummary.schema.json +341 -2
- package/generated/ControlThreadApplyResponse.schema.json +154 -0
- package/generated/ControlThreadDetail.schema.json +1 -0
- package/generated/DecisionRecord.schema.json +1 -0
- package/generated/HarnessEvent.schema.json +189 -5
- package/generated/HarnessManifest.schema.json +57 -0
- package/generated/HarnessModel.schema.json +13 -0
- package/generated/HarnessStatusDto.schema.json +59 -2
- package/generated/JournaledRunCreatedPayload.schema.json +2 -2
- package/generated/McpAccountsToolResult.schema.json +105 -4
- package/generated/McpRunHandleResult.schema.json +279 -2
- package/generated/McpRunToolResult.schema.json +269 -0
- package/generated/McpRunWaitResult.schema.json +3 -1
- package/generated/RawContextPacket.schema.json +98 -0
- package/generated/RunContinuityReceipt.schema.json +8 -0
- package/generated/RunEvent.schema.json +3 -1
- package/generated/RunFacts.schema.json +1 -0
- package/generated/RunFailure.schema.json +201 -0
- package/generated/RunTelemetry.schema.json +123 -2
- package/generated/ThreadHistoryPage.schema.json +203 -1
- package/generated/WorkspacePreparedPayload.schema.json +67 -0
- package/package.json +2 -2
package/dist/mcp-run-result.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ export declare const RunDetailProblem: z.ZodObject<{
|
|
|
14
14
|
}>;
|
|
15
15
|
export type RunDetailProblem = z.infer<typeof RunDetailProblem>;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* Historical disclosure for a run written under the retired INV-062, whose
|
|
18
|
+
* saved/served copies hid secret-like strings. Paths, rule ids and counts —
|
|
19
|
+
* never a matched value. Current runs save exact bytes (INV-146) and leave it null.
|
|
20
20
|
*/
|
|
21
21
|
export declare const SecretLikeDisclosure: z.ZodObject<{
|
|
22
22
|
totalMatches: z.ZodNumber;
|
|
@@ -64,6 +64,31 @@ export declare const SecretLikeDisclosure: z.ZodObject<{
|
|
|
64
64
|
exactPatchRecorded: boolean | null;
|
|
65
65
|
}>;
|
|
66
66
|
export type SecretLikeDisclosure = z.infer<typeof SecretLikeDisclosure>;
|
|
67
|
+
/**
|
|
68
|
+
* #535: the run's result as Git objects, exact whatever its size, and whether
|
|
69
|
+
* a patch VIEW of it exists. An unrendered result is still verifiable,
|
|
70
|
+
* applyable and revertable; only its one-patch rendering is absent.
|
|
71
|
+
*/
|
|
72
|
+
export declare const ObjectResultDisclosure: z.ZodObject<{
|
|
73
|
+
digest: z.ZodString;
|
|
74
|
+
patchView: z.ZodEnum<["rendered", "unavailable"]>;
|
|
75
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
76
|
+
estimatedBytes: z.ZodNullable<z.ZodNumber>;
|
|
77
|
+
changedFiles: z.ZodNullable<z.ZodNumber>;
|
|
78
|
+
}, "strict", z.ZodTypeAny, {
|
|
79
|
+
digest: string;
|
|
80
|
+
patchView: "rendered" | "unavailable";
|
|
81
|
+
reason: string | null;
|
|
82
|
+
estimatedBytes: number | null;
|
|
83
|
+
changedFiles: number | null;
|
|
84
|
+
}, {
|
|
85
|
+
digest: string;
|
|
86
|
+
patchView: "rendered" | "unavailable";
|
|
87
|
+
reason: string | null;
|
|
88
|
+
estimatedBytes: number | null;
|
|
89
|
+
changedFiles: number | null;
|
|
90
|
+
}>;
|
|
91
|
+
export type ObjectResultDisclosure = z.infer<typeof ObjectResultDisclosure>;
|
|
67
92
|
/**
|
|
68
93
|
* The structured result shape MCP run tools return (structuredContent).
|
|
69
94
|
* Text content mirrors it for hosts without structured-output support.
|
|
@@ -292,7 +317,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
292
317
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
293
318
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
294
319
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
295
|
-
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", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
320
|
+
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", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
296
321
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
297
322
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
298
323
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -335,7 +360,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
335
360
|
checks: "failed" | "not_configured" | "passed";
|
|
336
361
|
review: "approved" | "blocked" | "not_run";
|
|
337
362
|
review_requested?: boolean | undefined;
|
|
338
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
363
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
339
364
|
work_state?: {
|
|
340
365
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
341
366
|
source: "absent" | "constrained" | "validated";
|
|
@@ -352,7 +377,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
352
377
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
353
378
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
354
379
|
review_requested?: boolean | undefined;
|
|
355
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
380
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
356
381
|
work_state?: {
|
|
357
382
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
358
383
|
source: "absent" | "constrained" | "validated";
|
|
@@ -537,7 +562,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
537
562
|
checks: "failed" | "not_configured" | "passed";
|
|
538
563
|
review: "approved" | "blocked" | "not_run";
|
|
539
564
|
review_requested?: boolean | undefined;
|
|
540
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
565
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
541
566
|
work_state?: {
|
|
542
567
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
543
568
|
source: "absent" | "constrained" | "validated";
|
|
@@ -610,7 +635,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
610
635
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
611
636
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
612
637
|
review_requested?: boolean | undefined;
|
|
613
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
638
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
614
639
|
work_state?: {
|
|
615
640
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
616
641
|
source: "absent" | "constrained" | "validated";
|
|
@@ -679,7 +704,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
679
704
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
680
705
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
681
706
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
682
|
-
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", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
707
|
+
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", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
683
708
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
684
709
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
685
710
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -722,7 +747,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
722
747
|
checks: "failed" | "not_configured" | "passed";
|
|
723
748
|
review: "approved" | "blocked" | "not_run";
|
|
724
749
|
review_requested?: boolean | undefined;
|
|
725
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
750
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
726
751
|
work_state?: {
|
|
727
752
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
728
753
|
source: "absent" | "constrained" | "validated";
|
|
@@ -739,7 +764,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
739
764
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
740
765
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
741
766
|
review_requested?: boolean | undefined;
|
|
742
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
767
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
743
768
|
work_state?: {
|
|
744
769
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
745
770
|
source: "absent" | "constrained" | "validated";
|
|
@@ -811,13 +836,54 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
811
836
|
source: "grok_init";
|
|
812
837
|
reported_source: string;
|
|
813
838
|
}>]>>;
|
|
839
|
+
rawContextShortfall: z.ZodOptional<z.ZodObject<{
|
|
840
|
+
model: z.ZodString;
|
|
841
|
+
context_window: z.ZodNumber;
|
|
842
|
+
packet_tokens: z.ZodNumber;
|
|
843
|
+
framing_tokens: z.ZodNumber;
|
|
844
|
+
output_allowance_tokens: z.ZodNumber;
|
|
845
|
+
mandatory_files: z.ZodArray<z.ZodObject<{
|
|
846
|
+
path: z.ZodString;
|
|
847
|
+
estimated_tokens: z.ZodNumber;
|
|
848
|
+
}, "strict", z.ZodTypeAny, {
|
|
849
|
+
path: string;
|
|
850
|
+
estimated_tokens: number;
|
|
851
|
+
}, {
|
|
852
|
+
path: string;
|
|
853
|
+
estimated_tokens: number;
|
|
854
|
+
}>, "many">;
|
|
855
|
+
}, "strict", z.ZodTypeAny, {
|
|
856
|
+
model: string;
|
|
857
|
+
context_window: number;
|
|
858
|
+
packet_tokens: number;
|
|
859
|
+
framing_tokens: number;
|
|
860
|
+
output_allowance_tokens: number;
|
|
861
|
+
mandatory_files: {
|
|
862
|
+
path: string;
|
|
863
|
+
estimated_tokens: number;
|
|
864
|
+
}[];
|
|
865
|
+
}, {
|
|
866
|
+
model: string;
|
|
867
|
+
context_window: number;
|
|
868
|
+
packet_tokens: number;
|
|
869
|
+
framing_tokens: number;
|
|
870
|
+
output_allowance_tokens: number;
|
|
871
|
+
mandatory_files: {
|
|
872
|
+
path: string;
|
|
873
|
+
estimated_tokens: number;
|
|
874
|
+
}[];
|
|
875
|
+
}>>;
|
|
814
876
|
captureFailure: z.ZodOptional<z.ZodObject<{
|
|
815
|
-
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
|
|
877
|
+
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_space_insufficient", "capture_git_stalled", "capture_git_signal", "capture_read_failed", "capture_object_missing", "capture_failed"]>;
|
|
816
878
|
message: z.ZodString;
|
|
817
879
|
causeCode: z.ZodOptional<z.ZodString>;
|
|
818
880
|
bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
|
|
819
881
|
stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
|
|
820
882
|
drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
|
|
883
|
+
requiredBytes: z.ZodOptional<z.ZodNumber>;
|
|
884
|
+
availableBytes: z.ZodOptional<z.ZodNumber>;
|
|
885
|
+
signal: z.ZodOptional<z.ZodString>;
|
|
886
|
+
stallMs: z.ZodOptional<z.ZodNumber>;
|
|
821
887
|
cleanup: z.ZodOptional<z.ZodObject<{
|
|
822
888
|
code: z.ZodNullable<z.ZodString>;
|
|
823
889
|
message: z.ZodString;
|
|
@@ -828,32 +894,91 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
828
894
|
code: string | null;
|
|
829
895
|
message: string;
|
|
830
896
|
}>>;
|
|
897
|
+
inventory: z.ZodOptional<z.ZodObject<{
|
|
898
|
+
exact: z.ZodLiteral<false>;
|
|
899
|
+
changedFiles: z.ZodNumber;
|
|
900
|
+
largest: z.ZodArray<z.ZodObject<{
|
|
901
|
+
path: z.ZodString;
|
|
902
|
+
change: z.ZodEnum<["added", "modified", "deleted", "type_changed"]>;
|
|
903
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
904
|
+
}, "strip", z.ZodTypeAny, {
|
|
905
|
+
path: string;
|
|
906
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
907
|
+
sizeBytes: number | null;
|
|
908
|
+
}, {
|
|
909
|
+
path: string;
|
|
910
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
911
|
+
sizeBytes: number | null;
|
|
912
|
+
}>, "many">;
|
|
913
|
+
}, "strip", z.ZodTypeAny, {
|
|
914
|
+
exact: false;
|
|
915
|
+
changedFiles: number;
|
|
916
|
+
largest: {
|
|
917
|
+
path: string;
|
|
918
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
919
|
+
sizeBytes: number | null;
|
|
920
|
+
}[];
|
|
921
|
+
}, {
|
|
922
|
+
exact: false;
|
|
923
|
+
changedFiles: number;
|
|
924
|
+
largest: {
|
|
925
|
+
path: string;
|
|
926
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
927
|
+
sizeBytes: number | null;
|
|
928
|
+
}[];
|
|
929
|
+
}>>;
|
|
831
930
|
}, "strip", z.ZodTypeAny, {
|
|
832
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
931
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
833
932
|
message: string;
|
|
834
933
|
causeCode?: string | undefined;
|
|
835
934
|
bufferBudgetBytes?: number | undefined;
|
|
836
935
|
stream?: "stderr" | "stdout" | undefined;
|
|
837
936
|
drain?: "truncated" | undefined;
|
|
937
|
+
requiredBytes?: number | undefined;
|
|
938
|
+
availableBytes?: number | undefined;
|
|
939
|
+
signal?: string | undefined;
|
|
940
|
+
stallMs?: number | undefined;
|
|
838
941
|
cleanup?: {
|
|
839
942
|
code: string | null;
|
|
840
943
|
message: string;
|
|
841
944
|
} | undefined;
|
|
945
|
+
inventory?: {
|
|
946
|
+
exact: false;
|
|
947
|
+
changedFiles: number;
|
|
948
|
+
largest: {
|
|
949
|
+
path: string;
|
|
950
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
951
|
+
sizeBytes: number | null;
|
|
952
|
+
}[];
|
|
953
|
+
} | undefined;
|
|
842
954
|
}, {
|
|
843
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
955
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
844
956
|
message: string;
|
|
845
957
|
causeCode?: string | undefined;
|
|
846
958
|
bufferBudgetBytes?: number | undefined;
|
|
847
959
|
stream?: "stderr" | "stdout" | undefined;
|
|
848
960
|
drain?: "truncated" | undefined;
|
|
961
|
+
requiredBytes?: number | undefined;
|
|
962
|
+
availableBytes?: number | undefined;
|
|
963
|
+
signal?: string | undefined;
|
|
964
|
+
stallMs?: number | undefined;
|
|
849
965
|
cleanup?: {
|
|
850
966
|
code: string | null;
|
|
851
967
|
message: string;
|
|
852
968
|
} | undefined;
|
|
969
|
+
inventory?: {
|
|
970
|
+
exact: false;
|
|
971
|
+
changedFiles: number;
|
|
972
|
+
largest: {
|
|
973
|
+
path: string;
|
|
974
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
975
|
+
sizeBytes: number | null;
|
|
976
|
+
}[];
|
|
977
|
+
} | undefined;
|
|
853
978
|
}>>;
|
|
854
979
|
phase: z.ZodDefault<z.ZodString>;
|
|
855
980
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
856
|
-
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", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
981
|
+
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", "credential_pool_exhausted", "input_too_large", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "vendor_cli_too_old", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
857
982
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
858
983
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
859
984
|
safeMessage: z.ZodString;
|
|
@@ -862,6 +987,22 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
862
987
|
eventRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
863
988
|
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
864
989
|
resetsAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
990
|
+
quotaRefusal: z.ZodOptional<z.ZodObject<{
|
|
991
|
+
basis: z.ZodEnum<["owner_reserve", "provider_window", "provider_cooldown"]>;
|
|
992
|
+
constraintId: z.ZodNullable<z.ZodString>;
|
|
993
|
+
usedRatio: z.ZodNullable<z.ZodNumber>;
|
|
994
|
+
threshold: z.ZodNullable<z.ZodNumber>;
|
|
995
|
+
}, "strip", z.ZodTypeAny, {
|
|
996
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
997
|
+
constraintId: string | null;
|
|
998
|
+
usedRatio: number | null;
|
|
999
|
+
threshold: number | null;
|
|
1000
|
+
}, {
|
|
1001
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1002
|
+
constraintId: string | null;
|
|
1003
|
+
usedRatio: number | null;
|
|
1004
|
+
threshold: number | null;
|
|
1005
|
+
}>>;
|
|
865
1006
|
vendorFailure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
866
1007
|
code: z.ZodNullable<z.ZodString>;
|
|
867
1008
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -954,21 +1095,45 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
954
1095
|
source: "grok_init";
|
|
955
1096
|
reported_source: string;
|
|
956
1097
|
} | undefined;
|
|
1098
|
+
rawContextShortfall?: {
|
|
1099
|
+
model: string;
|
|
1100
|
+
context_window: number;
|
|
1101
|
+
packet_tokens: number;
|
|
1102
|
+
framing_tokens: number;
|
|
1103
|
+
output_allowance_tokens: number;
|
|
1104
|
+
mandatory_files: {
|
|
1105
|
+
path: string;
|
|
1106
|
+
estimated_tokens: number;
|
|
1107
|
+
}[];
|
|
1108
|
+
} | undefined;
|
|
957
1109
|
captureFailure?: {
|
|
958
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1110
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
959
1111
|
message: string;
|
|
960
1112
|
causeCode?: string | undefined;
|
|
961
1113
|
bufferBudgetBytes?: number | undefined;
|
|
962
1114
|
stream?: "stderr" | "stdout" | undefined;
|
|
963
1115
|
drain?: "truncated" | undefined;
|
|
1116
|
+
requiredBytes?: number | undefined;
|
|
1117
|
+
availableBytes?: number | undefined;
|
|
1118
|
+
signal?: string | undefined;
|
|
1119
|
+
stallMs?: number | undefined;
|
|
964
1120
|
cleanup?: {
|
|
965
1121
|
code: string | null;
|
|
966
1122
|
message: string;
|
|
967
1123
|
} | undefined;
|
|
1124
|
+
inventory?: {
|
|
1125
|
+
exact: false;
|
|
1126
|
+
changedFiles: number;
|
|
1127
|
+
largest: {
|
|
1128
|
+
path: string;
|
|
1129
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1130
|
+
sizeBytes: number | null;
|
|
1131
|
+
}[];
|
|
1132
|
+
} | undefined;
|
|
968
1133
|
} | undefined;
|
|
969
1134
|
phase: string;
|
|
970
1135
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
971
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
1136
|
+
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
972
1137
|
harnessId: string | null;
|
|
973
1138
|
attemptId: string | null;
|
|
974
1139
|
safeMessage: string;
|
|
@@ -977,6 +1142,12 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
977
1142
|
eventRefs: string[];
|
|
978
1143
|
runDir: string | null;
|
|
979
1144
|
resetsAt: string | null;
|
|
1145
|
+
quotaRefusal?: {
|
|
1146
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1147
|
+
constraintId: string | null;
|
|
1148
|
+
usedRatio: number | null;
|
|
1149
|
+
threshold: number | null;
|
|
1150
|
+
} | undefined;
|
|
980
1151
|
vendorFailure: {
|
|
981
1152
|
code: string | null;
|
|
982
1153
|
message: string | null;
|
|
@@ -1021,21 +1192,45 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1021
1192
|
source: "grok_init";
|
|
1022
1193
|
reported_source: string;
|
|
1023
1194
|
} | undefined;
|
|
1195
|
+
rawContextShortfall?: {
|
|
1196
|
+
model: string;
|
|
1197
|
+
context_window: number;
|
|
1198
|
+
packet_tokens: number;
|
|
1199
|
+
framing_tokens: number;
|
|
1200
|
+
output_allowance_tokens: number;
|
|
1201
|
+
mandatory_files: {
|
|
1202
|
+
path: string;
|
|
1203
|
+
estimated_tokens: number;
|
|
1204
|
+
}[];
|
|
1205
|
+
} | undefined;
|
|
1024
1206
|
captureFailure?: {
|
|
1025
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1207
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
1026
1208
|
message: string;
|
|
1027
1209
|
causeCode?: string | undefined;
|
|
1028
1210
|
bufferBudgetBytes?: number | undefined;
|
|
1029
1211
|
stream?: "stderr" | "stdout" | undefined;
|
|
1030
1212
|
drain?: "truncated" | undefined;
|
|
1213
|
+
requiredBytes?: number | undefined;
|
|
1214
|
+
availableBytes?: number | undefined;
|
|
1215
|
+
signal?: string | undefined;
|
|
1216
|
+
stallMs?: number | undefined;
|
|
1031
1217
|
cleanup?: {
|
|
1032
1218
|
code: string | null;
|
|
1033
1219
|
message: string;
|
|
1034
1220
|
} | undefined;
|
|
1221
|
+
inventory?: {
|
|
1222
|
+
exact: false;
|
|
1223
|
+
changedFiles: number;
|
|
1224
|
+
largest: {
|
|
1225
|
+
path: string;
|
|
1226
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1227
|
+
sizeBytes: number | null;
|
|
1228
|
+
}[];
|
|
1229
|
+
} | undefined;
|
|
1035
1230
|
} | undefined;
|
|
1036
1231
|
phase?: string | undefined;
|
|
1037
1232
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1038
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
1233
|
+
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
1039
1234
|
harnessId?: string | null | undefined;
|
|
1040
1235
|
attemptId?: string | null | undefined;
|
|
1041
1236
|
safeMessage: string;
|
|
@@ -1044,6 +1239,12 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1044
1239
|
eventRefs?: string[] | undefined;
|
|
1045
1240
|
runDir?: string | null | undefined;
|
|
1046
1241
|
resetsAt?: string | null | undefined;
|
|
1242
|
+
quotaRefusal?: {
|
|
1243
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1244
|
+
constraintId: string | null;
|
|
1245
|
+
usedRatio: number | null;
|
|
1246
|
+
threshold: number | null;
|
|
1247
|
+
} | undefined;
|
|
1047
1248
|
vendorFailure?: {
|
|
1048
1249
|
code: string | null;
|
|
1049
1250
|
message: string | null;
|
|
@@ -1191,6 +1392,26 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1191
1392
|
reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
|
|
1192
1393
|
remediation?: string | null | undefined;
|
|
1193
1394
|
}>>>;
|
|
1395
|
+
/** The text trailer of a run tool states this fact; its structured mirror too. */
|
|
1396
|
+
objectResult: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1397
|
+
digest: z.ZodString;
|
|
1398
|
+
patchView: z.ZodEnum<["rendered", "unavailable"]>;
|
|
1399
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1400
|
+
estimatedBytes: z.ZodNullable<z.ZodNumber>;
|
|
1401
|
+
changedFiles: z.ZodNullable<z.ZodNumber>;
|
|
1402
|
+
}, "strict", z.ZodTypeAny, {
|
|
1403
|
+
digest: string;
|
|
1404
|
+
patchView: "rendered" | "unavailable";
|
|
1405
|
+
reason: string | null;
|
|
1406
|
+
estimatedBytes: number | null;
|
|
1407
|
+
changedFiles: number | null;
|
|
1408
|
+
}, {
|
|
1409
|
+
digest: string;
|
|
1410
|
+
patchView: "rendered" | "unavailable";
|
|
1411
|
+
reason: string | null;
|
|
1412
|
+
estimatedBytes: number | null;
|
|
1413
|
+
changedFiles: number | null;
|
|
1414
|
+
}>>>;
|
|
1194
1415
|
}, "strip", z.ZodTypeAny, {
|
|
1195
1416
|
taskGroupId?: string | undefined;
|
|
1196
1417
|
storeId?: string | undefined;
|
|
@@ -1257,7 +1478,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1257
1478
|
checks: "failed" | "not_configured" | "passed";
|
|
1258
1479
|
review: "approved" | "blocked" | "not_run";
|
|
1259
1480
|
review_requested?: boolean | undefined;
|
|
1260
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1481
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1261
1482
|
work_state?: {
|
|
1262
1483
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1263
1484
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1326,7 +1547,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1326
1547
|
checks: "failed" | "not_configured" | "passed";
|
|
1327
1548
|
review: "approved" | "blocked" | "not_run";
|
|
1328
1549
|
review_requested?: boolean | undefined;
|
|
1329
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1550
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1330
1551
|
work_state?: {
|
|
1331
1552
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1332
1553
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1359,21 +1580,45 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1359
1580
|
source: "grok_init";
|
|
1360
1581
|
reported_source: string;
|
|
1361
1582
|
} | undefined;
|
|
1583
|
+
rawContextShortfall?: {
|
|
1584
|
+
model: string;
|
|
1585
|
+
context_window: number;
|
|
1586
|
+
packet_tokens: number;
|
|
1587
|
+
framing_tokens: number;
|
|
1588
|
+
output_allowance_tokens: number;
|
|
1589
|
+
mandatory_files: {
|
|
1590
|
+
path: string;
|
|
1591
|
+
estimated_tokens: number;
|
|
1592
|
+
}[];
|
|
1593
|
+
} | undefined;
|
|
1362
1594
|
captureFailure?: {
|
|
1363
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1595
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
1364
1596
|
message: string;
|
|
1365
1597
|
causeCode?: string | undefined;
|
|
1366
1598
|
bufferBudgetBytes?: number | undefined;
|
|
1367
1599
|
stream?: "stderr" | "stdout" | undefined;
|
|
1368
1600
|
drain?: "truncated" | undefined;
|
|
1601
|
+
requiredBytes?: number | undefined;
|
|
1602
|
+
availableBytes?: number | undefined;
|
|
1603
|
+
signal?: string | undefined;
|
|
1604
|
+
stallMs?: number | undefined;
|
|
1369
1605
|
cleanup?: {
|
|
1370
1606
|
code: string | null;
|
|
1371
1607
|
message: string;
|
|
1372
1608
|
} | undefined;
|
|
1609
|
+
inventory?: {
|
|
1610
|
+
exact: false;
|
|
1611
|
+
changedFiles: number;
|
|
1612
|
+
largest: {
|
|
1613
|
+
path: string;
|
|
1614
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1615
|
+
sizeBytes: number | null;
|
|
1616
|
+
}[];
|
|
1617
|
+
} | undefined;
|
|
1373
1618
|
} | undefined;
|
|
1374
1619
|
phase: string;
|
|
1375
1620
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
1376
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
1621
|
+
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
1377
1622
|
harnessId: string | null;
|
|
1378
1623
|
attemptId: string | null;
|
|
1379
1624
|
safeMessage: string;
|
|
@@ -1382,6 +1627,12 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1382
1627
|
eventRefs: string[];
|
|
1383
1628
|
runDir: string | null;
|
|
1384
1629
|
resetsAt: string | null;
|
|
1630
|
+
quotaRefusal?: {
|
|
1631
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1632
|
+
constraintId: string | null;
|
|
1633
|
+
usedRatio: number | null;
|
|
1634
|
+
threshold: number | null;
|
|
1635
|
+
} | undefined;
|
|
1385
1636
|
vendorFailure: {
|
|
1386
1637
|
code: string | null;
|
|
1387
1638
|
message: string | null;
|
|
@@ -1443,6 +1694,13 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1443
1694
|
reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
|
|
1444
1695
|
remediation: string | null;
|
|
1445
1696
|
} | null;
|
|
1697
|
+
objectResult: {
|
|
1698
|
+
digest: string;
|
|
1699
|
+
patchView: "rendered" | "unavailable";
|
|
1700
|
+
reason: string | null;
|
|
1701
|
+
estimatedBytes: number | null;
|
|
1702
|
+
changedFiles: number | null;
|
|
1703
|
+
} | null;
|
|
1446
1704
|
}, {
|
|
1447
1705
|
taskGroupId?: string | undefined;
|
|
1448
1706
|
storeId?: string | undefined;
|
|
@@ -1509,7 +1767,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1509
1767
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1510
1768
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1511
1769
|
review_requested?: boolean | undefined;
|
|
1512
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1770
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1513
1771
|
work_state?: {
|
|
1514
1772
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1515
1773
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1578,7 +1836,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1578
1836
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1579
1837
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1580
1838
|
review_requested?: boolean | undefined;
|
|
1581
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1839
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1582
1840
|
work_state?: {
|
|
1583
1841
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1584
1842
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1611,21 +1869,45 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1611
1869
|
source: "grok_init";
|
|
1612
1870
|
reported_source: string;
|
|
1613
1871
|
} | undefined;
|
|
1872
|
+
rawContextShortfall?: {
|
|
1873
|
+
model: string;
|
|
1874
|
+
context_window: number;
|
|
1875
|
+
packet_tokens: number;
|
|
1876
|
+
framing_tokens: number;
|
|
1877
|
+
output_allowance_tokens: number;
|
|
1878
|
+
mandatory_files: {
|
|
1879
|
+
path: string;
|
|
1880
|
+
estimated_tokens: number;
|
|
1881
|
+
}[];
|
|
1882
|
+
} | undefined;
|
|
1614
1883
|
captureFailure?: {
|
|
1615
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1884
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
1616
1885
|
message: string;
|
|
1617
1886
|
causeCode?: string | undefined;
|
|
1618
1887
|
bufferBudgetBytes?: number | undefined;
|
|
1619
1888
|
stream?: "stderr" | "stdout" | undefined;
|
|
1620
1889
|
drain?: "truncated" | undefined;
|
|
1890
|
+
requiredBytes?: number | undefined;
|
|
1891
|
+
availableBytes?: number | undefined;
|
|
1892
|
+
signal?: string | undefined;
|
|
1893
|
+
stallMs?: number | undefined;
|
|
1621
1894
|
cleanup?: {
|
|
1622
1895
|
code: string | null;
|
|
1623
1896
|
message: string;
|
|
1624
1897
|
} | undefined;
|
|
1898
|
+
inventory?: {
|
|
1899
|
+
exact: false;
|
|
1900
|
+
changedFiles: number;
|
|
1901
|
+
largest: {
|
|
1902
|
+
path: string;
|
|
1903
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1904
|
+
sizeBytes: number | null;
|
|
1905
|
+
}[];
|
|
1906
|
+
} | undefined;
|
|
1625
1907
|
} | undefined;
|
|
1626
1908
|
phase?: string | undefined;
|
|
1627
1909
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1628
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
1910
|
+
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
1629
1911
|
harnessId?: string | null | undefined;
|
|
1630
1912
|
attemptId?: string | null | undefined;
|
|
1631
1913
|
safeMessage: string;
|
|
@@ -1634,6 +1916,12 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1634
1916
|
eventRefs?: string[] | undefined;
|
|
1635
1917
|
runDir?: string | null | undefined;
|
|
1636
1918
|
resetsAt?: string | null | undefined;
|
|
1919
|
+
quotaRefusal?: {
|
|
1920
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1921
|
+
constraintId: string | null;
|
|
1922
|
+
usedRatio: number | null;
|
|
1923
|
+
threshold: number | null;
|
|
1924
|
+
} | undefined;
|
|
1637
1925
|
vendorFailure?: {
|
|
1638
1926
|
code: string | null;
|
|
1639
1927
|
message: string | null;
|
|
@@ -1695,6 +1983,13 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1695
1983
|
reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
|
|
1696
1984
|
remediation?: string | null | undefined;
|
|
1697
1985
|
} | null | undefined;
|
|
1986
|
+
objectResult?: {
|
|
1987
|
+
digest: string;
|
|
1988
|
+
patchView: "rendered" | "unavailable";
|
|
1989
|
+
reason: string | null;
|
|
1990
|
+
estimatedBytes: number | null;
|
|
1991
|
+
changedFiles: number | null;
|
|
1992
|
+
} | null | undefined;
|
|
1698
1993
|
}>;
|
|
1699
1994
|
export type McpRunToolResult = z.infer<typeof McpRunToolResult>;
|
|
1700
1995
|
/**
|
|
@@ -1925,7 +2220,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
1925
2220
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
1926
2221
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
1927
2222
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
1928
|
-
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", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
2223
|
+
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", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
1929
2224
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
1930
2225
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
1931
2226
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -1968,7 +2263,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
1968
2263
|
checks: "failed" | "not_configured" | "passed";
|
|
1969
2264
|
review: "approved" | "blocked" | "not_run";
|
|
1970
2265
|
review_requested?: boolean | undefined;
|
|
1971
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2266
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1972
2267
|
work_state?: {
|
|
1973
2268
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1974
2269
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1985,7 +2280,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
1985
2280
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1986
2281
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1987
2282
|
review_requested?: boolean | undefined;
|
|
1988
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2283
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1989
2284
|
work_state?: {
|
|
1990
2285
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1991
2286
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2170,7 +2465,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2170
2465
|
checks: "failed" | "not_configured" | "passed";
|
|
2171
2466
|
review: "approved" | "blocked" | "not_run";
|
|
2172
2467
|
review_requested?: boolean | undefined;
|
|
2173
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2468
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2174
2469
|
work_state?: {
|
|
2175
2470
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2176
2471
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2243,7 +2538,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2243
2538
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2244
2539
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2245
2540
|
review_requested?: boolean | undefined;
|
|
2246
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2541
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2247
2542
|
work_state?: {
|
|
2248
2543
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2249
2544
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2314,7 +2609,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2314
2609
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
2315
2610
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
2316
2611
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
2317
|
-
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", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
2612
|
+
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", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
2318
2613
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
2319
2614
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
2320
2615
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -2357,7 +2652,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2357
2652
|
checks: "failed" | "not_configured" | "passed";
|
|
2358
2653
|
review: "approved" | "blocked" | "not_run";
|
|
2359
2654
|
review_requested?: boolean | undefined;
|
|
2360
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2655
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2361
2656
|
work_state?: {
|
|
2362
2657
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2363
2658
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2374,7 +2669,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2374
2669
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2375
2670
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2376
2671
|
review_requested?: boolean | undefined;
|
|
2377
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2672
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2378
2673
|
work_state?: {
|
|
2379
2674
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2380
2675
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2446,13 +2741,54 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2446
2741
|
source: "grok_init";
|
|
2447
2742
|
reported_source: string;
|
|
2448
2743
|
}>]>>;
|
|
2744
|
+
rawContextShortfall: z.ZodOptional<z.ZodObject<{
|
|
2745
|
+
model: z.ZodString;
|
|
2746
|
+
context_window: z.ZodNumber;
|
|
2747
|
+
packet_tokens: z.ZodNumber;
|
|
2748
|
+
framing_tokens: z.ZodNumber;
|
|
2749
|
+
output_allowance_tokens: z.ZodNumber;
|
|
2750
|
+
mandatory_files: z.ZodArray<z.ZodObject<{
|
|
2751
|
+
path: z.ZodString;
|
|
2752
|
+
estimated_tokens: z.ZodNumber;
|
|
2753
|
+
}, "strict", z.ZodTypeAny, {
|
|
2754
|
+
path: string;
|
|
2755
|
+
estimated_tokens: number;
|
|
2756
|
+
}, {
|
|
2757
|
+
path: string;
|
|
2758
|
+
estimated_tokens: number;
|
|
2759
|
+
}>, "many">;
|
|
2760
|
+
}, "strict", z.ZodTypeAny, {
|
|
2761
|
+
model: string;
|
|
2762
|
+
context_window: number;
|
|
2763
|
+
packet_tokens: number;
|
|
2764
|
+
framing_tokens: number;
|
|
2765
|
+
output_allowance_tokens: number;
|
|
2766
|
+
mandatory_files: {
|
|
2767
|
+
path: string;
|
|
2768
|
+
estimated_tokens: number;
|
|
2769
|
+
}[];
|
|
2770
|
+
}, {
|
|
2771
|
+
model: string;
|
|
2772
|
+
context_window: number;
|
|
2773
|
+
packet_tokens: number;
|
|
2774
|
+
framing_tokens: number;
|
|
2775
|
+
output_allowance_tokens: number;
|
|
2776
|
+
mandatory_files: {
|
|
2777
|
+
path: string;
|
|
2778
|
+
estimated_tokens: number;
|
|
2779
|
+
}[];
|
|
2780
|
+
}>>;
|
|
2449
2781
|
captureFailure: z.ZodOptional<z.ZodObject<{
|
|
2450
|
-
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
|
|
2782
|
+
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_space_insufficient", "capture_git_stalled", "capture_git_signal", "capture_read_failed", "capture_object_missing", "capture_failed"]>;
|
|
2451
2783
|
message: z.ZodString;
|
|
2452
2784
|
causeCode: z.ZodOptional<z.ZodString>;
|
|
2453
2785
|
bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
|
|
2454
2786
|
stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
|
|
2455
2787
|
drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
|
|
2788
|
+
requiredBytes: z.ZodOptional<z.ZodNumber>;
|
|
2789
|
+
availableBytes: z.ZodOptional<z.ZodNumber>;
|
|
2790
|
+
signal: z.ZodOptional<z.ZodString>;
|
|
2791
|
+
stallMs: z.ZodOptional<z.ZodNumber>;
|
|
2456
2792
|
cleanup: z.ZodOptional<z.ZodObject<{
|
|
2457
2793
|
code: z.ZodNullable<z.ZodString>;
|
|
2458
2794
|
message: z.ZodString;
|
|
@@ -2463,32 +2799,91 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2463
2799
|
code: string | null;
|
|
2464
2800
|
message: string;
|
|
2465
2801
|
}>>;
|
|
2802
|
+
inventory: z.ZodOptional<z.ZodObject<{
|
|
2803
|
+
exact: z.ZodLiteral<false>;
|
|
2804
|
+
changedFiles: z.ZodNumber;
|
|
2805
|
+
largest: z.ZodArray<z.ZodObject<{
|
|
2806
|
+
path: z.ZodString;
|
|
2807
|
+
change: z.ZodEnum<["added", "modified", "deleted", "type_changed"]>;
|
|
2808
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
2809
|
+
}, "strip", z.ZodTypeAny, {
|
|
2810
|
+
path: string;
|
|
2811
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
2812
|
+
sizeBytes: number | null;
|
|
2813
|
+
}, {
|
|
2814
|
+
path: string;
|
|
2815
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
2816
|
+
sizeBytes: number | null;
|
|
2817
|
+
}>, "many">;
|
|
2818
|
+
}, "strip", z.ZodTypeAny, {
|
|
2819
|
+
exact: false;
|
|
2820
|
+
changedFiles: number;
|
|
2821
|
+
largest: {
|
|
2822
|
+
path: string;
|
|
2823
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
2824
|
+
sizeBytes: number | null;
|
|
2825
|
+
}[];
|
|
2826
|
+
}, {
|
|
2827
|
+
exact: false;
|
|
2828
|
+
changedFiles: number;
|
|
2829
|
+
largest: {
|
|
2830
|
+
path: string;
|
|
2831
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
2832
|
+
sizeBytes: number | null;
|
|
2833
|
+
}[];
|
|
2834
|
+
}>>;
|
|
2466
2835
|
}, "strip", z.ZodTypeAny, {
|
|
2467
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
2836
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
2468
2837
|
message: string;
|
|
2469
2838
|
causeCode?: string | undefined;
|
|
2470
2839
|
bufferBudgetBytes?: number | undefined;
|
|
2471
2840
|
stream?: "stderr" | "stdout" | undefined;
|
|
2472
2841
|
drain?: "truncated" | undefined;
|
|
2842
|
+
requiredBytes?: number | undefined;
|
|
2843
|
+
availableBytes?: number | undefined;
|
|
2844
|
+
signal?: string | undefined;
|
|
2845
|
+
stallMs?: number | undefined;
|
|
2473
2846
|
cleanup?: {
|
|
2474
2847
|
code: string | null;
|
|
2475
2848
|
message: string;
|
|
2476
2849
|
} | undefined;
|
|
2850
|
+
inventory?: {
|
|
2851
|
+
exact: false;
|
|
2852
|
+
changedFiles: number;
|
|
2853
|
+
largest: {
|
|
2854
|
+
path: string;
|
|
2855
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
2856
|
+
sizeBytes: number | null;
|
|
2857
|
+
}[];
|
|
2858
|
+
} | undefined;
|
|
2477
2859
|
}, {
|
|
2478
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
2860
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
2479
2861
|
message: string;
|
|
2480
2862
|
causeCode?: string | undefined;
|
|
2481
2863
|
bufferBudgetBytes?: number | undefined;
|
|
2482
2864
|
stream?: "stderr" | "stdout" | undefined;
|
|
2483
2865
|
drain?: "truncated" | undefined;
|
|
2866
|
+
requiredBytes?: number | undefined;
|
|
2867
|
+
availableBytes?: number | undefined;
|
|
2868
|
+
signal?: string | undefined;
|
|
2869
|
+
stallMs?: number | undefined;
|
|
2484
2870
|
cleanup?: {
|
|
2485
2871
|
code: string | null;
|
|
2486
2872
|
message: string;
|
|
2487
2873
|
} | undefined;
|
|
2874
|
+
inventory?: {
|
|
2875
|
+
exact: false;
|
|
2876
|
+
changedFiles: number;
|
|
2877
|
+
largest: {
|
|
2878
|
+
path: string;
|
|
2879
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
2880
|
+
sizeBytes: number | null;
|
|
2881
|
+
}[];
|
|
2882
|
+
} | undefined;
|
|
2488
2883
|
}>>;
|
|
2489
2884
|
phase: z.ZodDefault<z.ZodString>;
|
|
2490
2885
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
2491
|
-
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", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
2886
|
+
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", "credential_pool_exhausted", "input_too_large", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "vendor_cli_too_old", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
2492
2887
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2493
2888
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2494
2889
|
safeMessage: z.ZodString;
|
|
@@ -2497,6 +2892,22 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2497
2892
|
eventRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2498
2893
|
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2499
2894
|
resetsAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2895
|
+
quotaRefusal: z.ZodOptional<z.ZodObject<{
|
|
2896
|
+
basis: z.ZodEnum<["owner_reserve", "provider_window", "provider_cooldown"]>;
|
|
2897
|
+
constraintId: z.ZodNullable<z.ZodString>;
|
|
2898
|
+
usedRatio: z.ZodNullable<z.ZodNumber>;
|
|
2899
|
+
threshold: z.ZodNullable<z.ZodNumber>;
|
|
2900
|
+
}, "strip", z.ZodTypeAny, {
|
|
2901
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
2902
|
+
constraintId: string | null;
|
|
2903
|
+
usedRatio: number | null;
|
|
2904
|
+
threshold: number | null;
|
|
2905
|
+
}, {
|
|
2906
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
2907
|
+
constraintId: string | null;
|
|
2908
|
+
usedRatio: number | null;
|
|
2909
|
+
threshold: number | null;
|
|
2910
|
+
}>>;
|
|
2500
2911
|
vendorFailure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2501
2912
|
code: z.ZodNullable<z.ZodString>;
|
|
2502
2913
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -2589,21 +3000,45 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2589
3000
|
source: "grok_init";
|
|
2590
3001
|
reported_source: string;
|
|
2591
3002
|
} | undefined;
|
|
3003
|
+
rawContextShortfall?: {
|
|
3004
|
+
model: string;
|
|
3005
|
+
context_window: number;
|
|
3006
|
+
packet_tokens: number;
|
|
3007
|
+
framing_tokens: number;
|
|
3008
|
+
output_allowance_tokens: number;
|
|
3009
|
+
mandatory_files: {
|
|
3010
|
+
path: string;
|
|
3011
|
+
estimated_tokens: number;
|
|
3012
|
+
}[];
|
|
3013
|
+
} | undefined;
|
|
2592
3014
|
captureFailure?: {
|
|
2593
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
3015
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
2594
3016
|
message: string;
|
|
2595
3017
|
causeCode?: string | undefined;
|
|
2596
3018
|
bufferBudgetBytes?: number | undefined;
|
|
2597
3019
|
stream?: "stderr" | "stdout" | undefined;
|
|
2598
3020
|
drain?: "truncated" | undefined;
|
|
3021
|
+
requiredBytes?: number | undefined;
|
|
3022
|
+
availableBytes?: number | undefined;
|
|
3023
|
+
signal?: string | undefined;
|
|
3024
|
+
stallMs?: number | undefined;
|
|
2599
3025
|
cleanup?: {
|
|
2600
3026
|
code: string | null;
|
|
2601
3027
|
message: string;
|
|
2602
3028
|
} | undefined;
|
|
3029
|
+
inventory?: {
|
|
3030
|
+
exact: false;
|
|
3031
|
+
changedFiles: number;
|
|
3032
|
+
largest: {
|
|
3033
|
+
path: string;
|
|
3034
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3035
|
+
sizeBytes: number | null;
|
|
3036
|
+
}[];
|
|
3037
|
+
} | undefined;
|
|
2603
3038
|
} | undefined;
|
|
2604
3039
|
phase: string;
|
|
2605
3040
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
2606
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
3041
|
+
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
2607
3042
|
harnessId: string | null;
|
|
2608
3043
|
attemptId: string | null;
|
|
2609
3044
|
safeMessage: string;
|
|
@@ -2612,6 +3047,12 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2612
3047
|
eventRefs: string[];
|
|
2613
3048
|
runDir: string | null;
|
|
2614
3049
|
resetsAt: string | null;
|
|
3050
|
+
quotaRefusal?: {
|
|
3051
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
3052
|
+
constraintId: string | null;
|
|
3053
|
+
usedRatio: number | null;
|
|
3054
|
+
threshold: number | null;
|
|
3055
|
+
} | undefined;
|
|
2615
3056
|
vendorFailure: {
|
|
2616
3057
|
code: string | null;
|
|
2617
3058
|
message: string | null;
|
|
@@ -2656,21 +3097,45 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2656
3097
|
source: "grok_init";
|
|
2657
3098
|
reported_source: string;
|
|
2658
3099
|
} | undefined;
|
|
3100
|
+
rawContextShortfall?: {
|
|
3101
|
+
model: string;
|
|
3102
|
+
context_window: number;
|
|
3103
|
+
packet_tokens: number;
|
|
3104
|
+
framing_tokens: number;
|
|
3105
|
+
output_allowance_tokens: number;
|
|
3106
|
+
mandatory_files: {
|
|
3107
|
+
path: string;
|
|
3108
|
+
estimated_tokens: number;
|
|
3109
|
+
}[];
|
|
3110
|
+
} | undefined;
|
|
2659
3111
|
captureFailure?: {
|
|
2660
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
3112
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
2661
3113
|
message: string;
|
|
2662
3114
|
causeCode?: string | undefined;
|
|
2663
3115
|
bufferBudgetBytes?: number | undefined;
|
|
2664
3116
|
stream?: "stderr" | "stdout" | undefined;
|
|
2665
3117
|
drain?: "truncated" | undefined;
|
|
3118
|
+
requiredBytes?: number | undefined;
|
|
3119
|
+
availableBytes?: number | undefined;
|
|
3120
|
+
signal?: string | undefined;
|
|
3121
|
+
stallMs?: number | undefined;
|
|
2666
3122
|
cleanup?: {
|
|
2667
3123
|
code: string | null;
|
|
2668
3124
|
message: string;
|
|
2669
3125
|
} | undefined;
|
|
3126
|
+
inventory?: {
|
|
3127
|
+
exact: false;
|
|
3128
|
+
changedFiles: number;
|
|
3129
|
+
largest: {
|
|
3130
|
+
path: string;
|
|
3131
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3132
|
+
sizeBytes: number | null;
|
|
3133
|
+
}[];
|
|
3134
|
+
} | undefined;
|
|
2670
3135
|
} | undefined;
|
|
2671
3136
|
phase?: string | undefined;
|
|
2672
3137
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
2673
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
3138
|
+
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
2674
3139
|
harnessId?: string | null | undefined;
|
|
2675
3140
|
attemptId?: string | null | undefined;
|
|
2676
3141
|
safeMessage: string;
|
|
@@ -2679,6 +3144,12 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2679
3144
|
eventRefs?: string[] | undefined;
|
|
2680
3145
|
runDir?: string | null | undefined;
|
|
2681
3146
|
resetsAt?: string | null | undefined;
|
|
3147
|
+
quotaRefusal?: {
|
|
3148
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
3149
|
+
constraintId: string | null;
|
|
3150
|
+
usedRatio: number | null;
|
|
3151
|
+
threshold: number | null;
|
|
3152
|
+
} | undefined;
|
|
2682
3153
|
vendorFailure?: {
|
|
2683
3154
|
code: string | null;
|
|
2684
3155
|
message: string | null;
|
|
@@ -2969,6 +3440,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2969
3440
|
modelMismatch: z.ZodNullable<z.ZodBoolean>;
|
|
2970
3441
|
identityCheck: z.ZodEnum<["matched_before_effects", "mismatch_before_effects", "mismatch_after_possible_effects", "not_applicable"]>;
|
|
2971
3442
|
inputDelivery: z.ZodEnum<["confirmed", "uncertain", "not_applicable"]>;
|
|
3443
|
+
sourceRetirement: z.ZodOptional<z.ZodEnum<["retired", "not_confirmed"]>>;
|
|
2972
3444
|
}, "strict", z.ZodTypeAny, {
|
|
2973
3445
|
tryIndex: number;
|
|
2974
3446
|
attemptId: string;
|
|
@@ -2990,6 +3462,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2990
3462
|
modelMismatch: boolean | null;
|
|
2991
3463
|
identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
|
|
2992
3464
|
inputDelivery: "confirmed" | "not_applicable" | "uncertain";
|
|
3465
|
+
sourceRetirement?: "not_confirmed" | "retired" | undefined;
|
|
2993
3466
|
}, {
|
|
2994
3467
|
tryIndex: number;
|
|
2995
3468
|
attemptId: string;
|
|
@@ -3011,6 +3484,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3011
3484
|
modelMismatch: boolean | null;
|
|
3012
3485
|
identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
|
|
3013
3486
|
inputDelivery: "confirmed" | "not_applicable" | "uncertain";
|
|
3487
|
+
sourceRetirement?: "not_confirmed" | "retired" | undefined;
|
|
3014
3488
|
}>, "many">>;
|
|
3015
3489
|
retainedEnvelope: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3016
3490
|
root: z.ZodString;
|
|
@@ -3087,6 +3561,25 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3087
3561
|
persistedPatch: "exact" | "redacted";
|
|
3088
3562
|
exactPatchRecorded: boolean | null;
|
|
3089
3563
|
}>>>;
|
|
3564
|
+
objectResult: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
3565
|
+
digest: z.ZodString;
|
|
3566
|
+
patchView: z.ZodEnum<["rendered", "unavailable"]>;
|
|
3567
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3568
|
+
estimatedBytes: z.ZodNullable<z.ZodNumber>;
|
|
3569
|
+
changedFiles: z.ZodNullable<z.ZodNumber>;
|
|
3570
|
+
}, "strict", z.ZodTypeAny, {
|
|
3571
|
+
digest: string;
|
|
3572
|
+
patchView: "rendered" | "unavailable";
|
|
3573
|
+
reason: string | null;
|
|
3574
|
+
estimatedBytes: number | null;
|
|
3575
|
+
changedFiles: number | null;
|
|
3576
|
+
}, {
|
|
3577
|
+
digest: string;
|
|
3578
|
+
patchView: "rendered" | "unavailable";
|
|
3579
|
+
reason: string | null;
|
|
3580
|
+
estimatedBytes: number | null;
|
|
3581
|
+
changedFiles: number | null;
|
|
3582
|
+
}>>>;
|
|
3090
3583
|
}, "strict", z.ZodTypeAny, {
|
|
3091
3584
|
deferredMessage?: {
|
|
3092
3585
|
draftId: string;
|
|
@@ -3150,7 +3643,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3150
3643
|
checks: "failed" | "not_configured" | "passed";
|
|
3151
3644
|
review: "approved" | "blocked" | "not_run";
|
|
3152
3645
|
review_requested?: boolean | undefined;
|
|
3153
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
3646
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
3154
3647
|
work_state?: {
|
|
3155
3648
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3156
3649
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3221,7 +3714,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3221
3714
|
checks: "failed" | "not_configured" | "passed";
|
|
3222
3715
|
review: "approved" | "blocked" | "not_run";
|
|
3223
3716
|
review_requested?: boolean | undefined;
|
|
3224
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
3717
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
3225
3718
|
work_state?: {
|
|
3226
3719
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3227
3720
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3254,21 +3747,45 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3254
3747
|
source: "grok_init";
|
|
3255
3748
|
reported_source: string;
|
|
3256
3749
|
} | undefined;
|
|
3750
|
+
rawContextShortfall?: {
|
|
3751
|
+
model: string;
|
|
3752
|
+
context_window: number;
|
|
3753
|
+
packet_tokens: number;
|
|
3754
|
+
framing_tokens: number;
|
|
3755
|
+
output_allowance_tokens: number;
|
|
3756
|
+
mandatory_files: {
|
|
3757
|
+
path: string;
|
|
3758
|
+
estimated_tokens: number;
|
|
3759
|
+
}[];
|
|
3760
|
+
} | undefined;
|
|
3257
3761
|
captureFailure?: {
|
|
3258
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
3762
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
3259
3763
|
message: string;
|
|
3260
3764
|
causeCode?: string | undefined;
|
|
3261
3765
|
bufferBudgetBytes?: number | undefined;
|
|
3262
3766
|
stream?: "stderr" | "stdout" | undefined;
|
|
3263
3767
|
drain?: "truncated" | undefined;
|
|
3768
|
+
requiredBytes?: number | undefined;
|
|
3769
|
+
availableBytes?: number | undefined;
|
|
3770
|
+
signal?: string | undefined;
|
|
3771
|
+
stallMs?: number | undefined;
|
|
3264
3772
|
cleanup?: {
|
|
3265
3773
|
code: string | null;
|
|
3266
3774
|
message: string;
|
|
3267
3775
|
} | undefined;
|
|
3776
|
+
inventory?: {
|
|
3777
|
+
exact: false;
|
|
3778
|
+
changedFiles: number;
|
|
3779
|
+
largest: {
|
|
3780
|
+
path: string;
|
|
3781
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3782
|
+
sizeBytes: number | null;
|
|
3783
|
+
}[];
|
|
3784
|
+
} | undefined;
|
|
3268
3785
|
} | undefined;
|
|
3269
3786
|
phase: string;
|
|
3270
3787
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
3271
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
3788
|
+
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
3272
3789
|
harnessId: string | null;
|
|
3273
3790
|
attemptId: string | null;
|
|
3274
3791
|
safeMessage: string;
|
|
@@ -3277,6 +3794,12 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3277
3794
|
eventRefs: string[];
|
|
3278
3795
|
runDir: string | null;
|
|
3279
3796
|
resetsAt: string | null;
|
|
3797
|
+
quotaRefusal?: {
|
|
3798
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
3799
|
+
constraintId: string | null;
|
|
3800
|
+
usedRatio: number | null;
|
|
3801
|
+
threshold: number | null;
|
|
3802
|
+
} | undefined;
|
|
3280
3803
|
vendorFailure: {
|
|
3281
3804
|
code: string | null;
|
|
3282
3805
|
message: string | null;
|
|
@@ -3389,6 +3912,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3389
3912
|
modelMismatch: boolean | null;
|
|
3390
3913
|
identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
|
|
3391
3914
|
inputDelivery: "confirmed" | "not_applicable" | "uncertain";
|
|
3915
|
+
sourceRetirement?: "not_confirmed" | "retired" | undefined;
|
|
3392
3916
|
}[] | undefined;
|
|
3393
3917
|
retainedEnvelope?: {
|
|
3394
3918
|
root: string;
|
|
@@ -3414,6 +3938,13 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3414
3938
|
persistedPatch: "exact" | "redacted";
|
|
3415
3939
|
exactPatchRecorded: boolean | null;
|
|
3416
3940
|
} | null;
|
|
3941
|
+
objectResult: {
|
|
3942
|
+
digest: string;
|
|
3943
|
+
patchView: "rendered" | "unavailable";
|
|
3944
|
+
reason: string | null;
|
|
3945
|
+
estimatedBytes: number | null;
|
|
3946
|
+
changedFiles: number | null;
|
|
3947
|
+
} | null;
|
|
3417
3948
|
}, {
|
|
3418
3949
|
deferredMessage?: {
|
|
3419
3950
|
draftId: string;
|
|
@@ -3477,7 +4008,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3477
4008
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
3478
4009
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
3479
4010
|
review_requested?: boolean | undefined;
|
|
3480
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
4011
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
3481
4012
|
work_state?: {
|
|
3482
4013
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3483
4014
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3548,7 +4079,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3548
4079
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
3549
4080
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
3550
4081
|
review_requested?: boolean | undefined;
|
|
3551
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
4082
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
3552
4083
|
work_state?: {
|
|
3553
4084
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3554
4085
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3581,21 +4112,45 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3581
4112
|
source: "grok_init";
|
|
3582
4113
|
reported_source: string;
|
|
3583
4114
|
} | undefined;
|
|
4115
|
+
rawContextShortfall?: {
|
|
4116
|
+
model: string;
|
|
4117
|
+
context_window: number;
|
|
4118
|
+
packet_tokens: number;
|
|
4119
|
+
framing_tokens: number;
|
|
4120
|
+
output_allowance_tokens: number;
|
|
4121
|
+
mandatory_files: {
|
|
4122
|
+
path: string;
|
|
4123
|
+
estimated_tokens: number;
|
|
4124
|
+
}[];
|
|
4125
|
+
} | undefined;
|
|
3584
4126
|
captureFailure?: {
|
|
3585
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
4127
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
3586
4128
|
message: string;
|
|
3587
4129
|
causeCode?: string | undefined;
|
|
3588
4130
|
bufferBudgetBytes?: number | undefined;
|
|
3589
4131
|
stream?: "stderr" | "stdout" | undefined;
|
|
3590
4132
|
drain?: "truncated" | undefined;
|
|
4133
|
+
requiredBytes?: number | undefined;
|
|
4134
|
+
availableBytes?: number | undefined;
|
|
4135
|
+
signal?: string | undefined;
|
|
4136
|
+
stallMs?: number | undefined;
|
|
3591
4137
|
cleanup?: {
|
|
3592
4138
|
code: string | null;
|
|
3593
4139
|
message: string;
|
|
3594
4140
|
} | undefined;
|
|
4141
|
+
inventory?: {
|
|
4142
|
+
exact: false;
|
|
4143
|
+
changedFiles: number;
|
|
4144
|
+
largest: {
|
|
4145
|
+
path: string;
|
|
4146
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
4147
|
+
sizeBytes: number | null;
|
|
4148
|
+
}[];
|
|
4149
|
+
} | undefined;
|
|
3595
4150
|
} | undefined;
|
|
3596
4151
|
phase?: string | undefined;
|
|
3597
4152
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
3598
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
4153
|
+
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
3599
4154
|
harnessId?: string | null | undefined;
|
|
3600
4155
|
attemptId?: string | null | undefined;
|
|
3601
4156
|
safeMessage: string;
|
|
@@ -3604,6 +4159,12 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3604
4159
|
eventRefs?: string[] | undefined;
|
|
3605
4160
|
runDir?: string | null | undefined;
|
|
3606
4161
|
resetsAt?: string | null | undefined;
|
|
4162
|
+
quotaRefusal?: {
|
|
4163
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
4164
|
+
constraintId: string | null;
|
|
4165
|
+
usedRatio: number | null;
|
|
4166
|
+
threshold: number | null;
|
|
4167
|
+
} | undefined;
|
|
3607
4168
|
vendorFailure?: {
|
|
3608
4169
|
code: string | null;
|
|
3609
4170
|
message: string | null;
|
|
@@ -3716,6 +4277,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3716
4277
|
modelMismatch: boolean | null;
|
|
3717
4278
|
identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
|
|
3718
4279
|
inputDelivery: "confirmed" | "not_applicable" | "uncertain";
|
|
4280
|
+
sourceRetirement?: "not_confirmed" | "retired" | undefined;
|
|
3719
4281
|
}[] | undefined;
|
|
3720
4282
|
retainedEnvelope?: {
|
|
3721
4283
|
root: string;
|
|
@@ -3741,6 +4303,13 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3741
4303
|
persistedPatch: "exact" | "redacted";
|
|
3742
4304
|
exactPatchRecorded: boolean | null;
|
|
3743
4305
|
} | null | undefined;
|
|
4306
|
+
objectResult?: {
|
|
4307
|
+
digest: string;
|
|
4308
|
+
patchView: "rendered" | "unavailable";
|
|
4309
|
+
reason: string | null;
|
|
4310
|
+
estimatedBytes: number | null;
|
|
4311
|
+
changedFiles: number | null;
|
|
4312
|
+
} | null | undefined;
|
|
3744
4313
|
}>;
|
|
3745
4314
|
export type McpRunHandleResult = z.infer<typeof McpRunHandleResult>;
|
|
3746
4315
|
/**
|