@claudexor/orchestrator 5.0.2 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/dist/account-evidence.d.ts +7 -0
  2. package/dist/account-evidence.d.ts.map +1 -1
  3. package/dist/account-evidence.js +12 -0
  4. package/dist/account-evidence.js.map +1 -1
  5. package/dist/account-pool.d.ts +4 -0
  6. package/dist/account-pool.d.ts.map +1 -1
  7. package/dist/account-pool.js +8 -1
  8. package/dist/account-pool.js.map +1 -1
  9. package/dist/account-resolution.d.ts.map +1 -1
  10. package/dist/account-resolution.js +7 -5
  11. package/dist/account-resolution.js.map +1 -1
  12. package/dist/attemptFinalize.d.ts +22 -7
  13. package/dist/attemptFinalize.d.ts.map +1 -1
  14. package/dist/attemptFinalize.js +29 -7
  15. package/dist/attemptFinalize.js.map +1 -1
  16. package/dist/attemptTelemetry.d.ts +19 -18
  17. package/dist/attemptTelemetry.d.ts.map +1 -1
  18. package/dist/attemptTelemetry.js +33 -79
  19. package/dist/attemptTelemetry.js.map +1 -1
  20. package/dist/attemptUsage.d.ts.map +1 -1
  21. package/dist/attemptUsage.js +6 -14
  22. package/dist/attemptUsage.js.map +1 -1
  23. package/dist/attemptUsageCost.d.ts +11 -2
  24. package/dist/attemptUsageCost.d.ts.map +1 -1
  25. package/dist/attemptUsageCost.js +16 -3
  26. package/dist/attemptUsageCost.js.map +1 -1
  27. package/dist/candidateEvidence.d.ts +33 -8
  28. package/dist/candidateEvidence.d.ts.map +1 -1
  29. package/dist/candidateEvidence.js +58 -24
  30. package/dist/candidateEvidence.js.map +1 -1
  31. package/dist/candidateReview.d.ts.map +1 -1
  32. package/dist/candidateReview.js +4 -2
  33. package/dist/candidateReview.js.map +1 -1
  34. package/dist/candidateTerminals.d.ts +27 -1
  35. package/dist/candidateTerminals.d.ts.map +1 -1
  36. package/dist/candidateTerminals.js +51 -2
  37. package/dist/candidateTerminals.js.map +1 -1
  38. package/dist/carrier-planner.d.ts +5 -2
  39. package/dist/carrier-planner.d.ts.map +1 -1
  40. package/dist/carrier-planner.js +6 -3
  41. package/dist/carrier-planner.js.map +1 -1
  42. package/dist/command-telemetry.d.ts +15 -0
  43. package/dist/command-telemetry.d.ts.map +1 -0
  44. package/dist/command-telemetry.js +27 -0
  45. package/dist/command-telemetry.js.map +1 -0
  46. package/dist/continuation-evidence-io.d.ts +13 -3
  47. package/dist/continuation-evidence-io.d.ts.map +1 -1
  48. package/dist/continuation-evidence-io.js +36 -4
  49. package/dist/continuation-evidence-io.js.map +1 -1
  50. package/dist/continuation-evidence.d.ts +7 -2
  51. package/dist/continuation-evidence.d.ts.map +1 -1
  52. package/dist/continuation-evidence.js +16 -4
  53. package/dist/continuation-evidence.js.map +1 -1
  54. package/dist/continuation-later.d.ts.map +1 -1
  55. package/dist/continuation-later.js +6 -6
  56. package/dist/continuation-later.js.map +1 -1
  57. package/dist/continuity-facts.d.ts +27 -1
  58. package/dist/continuity-facts.d.ts.map +1 -1
  59. package/dist/continuity-facts.js +72 -4
  60. package/dist/continuity-facts.js.map +1 -1
  61. package/dist/continuity-notice.d.ts.map +1 -1
  62. package/dist/continuity-notice.js +2 -1
  63. package/dist/continuity-notice.js.map +1 -1
  64. package/dist/continuity-summary.d.ts +7 -1
  65. package/dist/continuity-summary.d.ts.map +1 -1
  66. package/dist/continuity-summary.js +33 -13
  67. package/dist/continuity-summary.js.map +1 -1
  68. package/dist/continuity.d.ts +36 -8
  69. package/dist/continuity.d.ts.map +1 -1
  70. package/dist/continuity.js +96 -21
  71. package/dist/continuity.js.map +1 -1
  72. package/dist/credential-cooldown.d.ts +7 -0
  73. package/dist/credential-cooldown.d.ts.map +1 -1
  74. package/dist/credential-cooldown.js +31 -5
  75. package/dist/credential-cooldown.js.map +1 -1
  76. package/dist/credential-differential.d.ts +15 -1
  77. package/dist/credential-differential.d.ts.map +1 -1
  78. package/dist/credential-differential.js +32 -17
  79. package/dist/credential-differential.js.map +1 -1
  80. package/dist/credential-execution.d.ts.map +1 -1
  81. package/dist/credential-execution.js +14 -15
  82. package/dist/credential-execution.js.map +1 -1
  83. package/dist/credential-preflight.js +1 -1
  84. package/dist/credential-preflight.js.map +1 -1
  85. package/dist/credential-profile-rotation.d.ts +1 -0
  86. package/dist/credential-profile-rotation.d.ts.map +1 -1
  87. package/dist/credential-profile-rotation.js +1 -1
  88. package/dist/credential-profile-rotation.js.map +1 -1
  89. package/dist/deepScanReducer.d.ts.map +1 -1
  90. package/dist/deepScanReducer.js +8 -18
  91. package/dist/deepScanReducer.js.map +1 -1
  92. package/dist/delegatedHome.d.ts +12 -7
  93. package/dist/delegatedHome.d.ts.map +1 -1
  94. package/dist/delegatedHome.js +16 -4
  95. package/dist/delegatedHome.js.map +1 -1
  96. package/dist/delegationFailure.d.ts +9 -8
  97. package/dist/delegationFailure.d.ts.map +1 -1
  98. package/dist/delegationFailure.js +7 -5
  99. package/dist/delegationFailure.js.map +1 -1
  100. package/dist/directoryCandidate.d.ts.map +1 -1
  101. package/dist/directoryCandidate.js +35 -5
  102. package/dist/directoryCandidate.js.map +1 -1
  103. package/dist/harnessFailure.d.ts +26 -5
  104. package/dist/harnessFailure.d.ts.map +1 -1
  105. package/dist/harnessFailure.js +41 -6
  106. package/dist/harnessFailure.js.map +1 -1
  107. package/dist/index.d.ts +2 -2
  108. package/dist/index.d.ts.map +1 -1
  109. package/dist/index.js +2 -1
  110. package/dist/index.js.map +1 -1
  111. package/dist/inrun-continuity-carrier.d.ts +4 -1
  112. package/dist/inrun-continuity-carrier.d.ts.map +1 -1
  113. package/dist/inrun-continuity-carrier.js +2 -0
  114. package/dist/inrun-continuity-carrier.js.map +1 -1
  115. package/dist/inrun-continuity.d.ts +2 -2
  116. package/dist/inrun-continuity.d.ts.map +1 -1
  117. package/dist/inrun-continuity.js +22 -19
  118. package/dist/inrun-continuity.js.map +1 -1
  119. package/dist/inrun-retained-output.d.ts +18 -4
  120. package/dist/inrun-retained-output.d.ts.map +1 -1
  121. package/dist/inrun-retained-output.js +39 -8
  122. package/dist/inrun-retained-output.js.map +1 -1
  123. package/dist/interaction.d.ts +14 -1
  124. package/dist/interaction.d.ts.map +1 -1
  125. package/dist/interaction.js +91 -22
  126. package/dist/interaction.js.map +1 -1
  127. package/dist/laneStreamEvents.d.ts +9 -10
  128. package/dist/laneStreamEvents.d.ts.map +1 -1
  129. package/dist/laneStreamEvents.js +21 -7
  130. package/dist/laneStreamEvents.js.map +1 -1
  131. package/dist/modelGovernance.d.ts +10 -4
  132. package/dist/modelGovernance.d.ts.map +1 -1
  133. package/dist/modelGovernance.js +21 -1
  134. package/dist/modelGovernance.js.map +1 -1
  135. package/dist/native-retry-telemetry.d.ts +4 -1
  136. package/dist/native-retry-telemetry.d.ts.map +1 -1
  137. package/dist/native-retry-telemetry.js +6 -1
  138. package/dist/native-retry-telemetry.js.map +1 -1
  139. package/dist/orchestrator.d.ts +7 -1
  140. package/dist/orchestrator.d.ts.map +1 -1
  141. package/dist/orchestrator.js +129 -139
  142. package/dist/orchestrator.js.map +1 -1
  143. package/dist/planRun.d.ts.map +1 -1
  144. package/dist/planRun.js +7 -8
  145. package/dist/planRun.js.map +1 -1
  146. package/dist/plannerAttempt.d.ts +1 -0
  147. package/dist/plannerAttempt.d.ts.map +1 -1
  148. package/dist/plannerAttempt.js +14 -19
  149. package/dist/plannerAttempt.js.map +1 -1
  150. package/dist/pool-attempt-evidence.d.ts +5 -1
  151. package/dist/pool-attempt-evidence.d.ts.map +1 -1
  152. package/dist/pool-attempt-evidence.js +36 -4
  153. package/dist/pool-attempt-evidence.js.map +1 -1
  154. package/dist/processing-telemetry.d.ts +3 -1
  155. package/dist/processing-telemetry.d.ts.map +1 -1
  156. package/dist/processing-telemetry.js +11 -0
  157. package/dist/processing-telemetry.js.map +1 -1
  158. package/dist/quota-refusal-scope.d.ts +1 -0
  159. package/dist/quota-refusal-scope.d.ts.map +1 -1
  160. package/dist/quota-refusal-scope.js +29 -1
  161. package/dist/quota-refusal-scope.js.map +1 -1
  162. package/dist/rawPatchLane.d.ts +68 -0
  163. package/dist/rawPatchLane.d.ts.map +1 -0
  164. package/dist/rawPatchLane.js +116 -0
  165. package/dist/rawPatchLane.js.map +1 -0
  166. package/dist/readonlyTerminals.d.ts +0 -3
  167. package/dist/readonlyTerminals.d.ts.map +1 -1
  168. package/dist/readonlyTerminals.js +36 -14
  169. package/dist/readonlyTerminals.js.map +1 -1
  170. package/dist/requestRequirements.d.ts +5 -4
  171. package/dist/requestRequirements.d.ts.map +1 -1
  172. package/dist/requestRequirements.js +6 -5
  173. package/dist/requestRequirements.js.map +1 -1
  174. package/dist/retainedOutput.d.ts +19 -2
  175. package/dist/retainedOutput.d.ts.map +1 -1
  176. package/dist/retainedOutput.js +83 -12
  177. package/dist/retainedOutput.js.map +1 -1
  178. package/dist/reviewerInventory.d.ts +2 -8
  179. package/dist/reviewerInventory.d.ts.map +1 -1
  180. package/dist/reviewerInventory.js +2 -3
  181. package/dist/reviewerInventory.js.map +1 -1
  182. package/dist/reviewerPanel.d.ts +1 -1
  183. package/dist/reviewerPanel.d.ts.map +1 -1
  184. package/dist/reviewerPanel.js +9 -4
  185. package/dist/reviewerPanel.js.map +1 -1
  186. package/dist/route-admission.d.ts.map +1 -1
  187. package/dist/route-admission.js +3 -1
  188. package/dist/route-admission.js.map +1 -1
  189. package/dist/routeControls.d.ts +32 -0
  190. package/dist/routeControls.d.ts.map +1 -0
  191. package/dist/routeControls.js +47 -0
  192. package/dist/routeControls.js.map +1 -0
  193. package/dist/run-input-resolution.d.ts +5 -0
  194. package/dist/run-input-resolution.d.ts.map +1 -1
  195. package/dist/run-input-resolution.js +12 -6
  196. package/dist/run-input-resolution.js.map +1 -1
  197. package/dist/run-runtime-root.d.ts +16 -0
  198. package/dist/run-runtime-root.d.ts.map +1 -0
  199. package/dist/run-runtime-root.js +16 -0
  200. package/dist/run-runtime-root.js.map +1 -0
  201. package/dist/runAdmission.d.ts.map +1 -1
  202. package/dist/runAdmission.js +2 -1
  203. package/dist/runAdmission.js.map +1 -1
  204. package/dist/runFacts.d.ts +5 -2
  205. package/dist/runFacts.d.ts.map +1 -1
  206. package/dist/runFacts.js +11 -11
  207. package/dist/runFacts.js.map +1 -1
  208. package/dist/runScope.d.ts +2 -0
  209. package/dist/runScope.d.ts.map +1 -1
  210. package/dist/runScope.js +3 -2
  211. package/dist/runScope.js.map +1 -1
  212. package/dist/runSupport.d.ts +3 -1
  213. package/dist/runSupport.d.ts.map +1 -1
  214. package/dist/runSupport.js +6 -3
  215. package/dist/runSupport.js.map +1 -1
  216. package/dist/runTelemetryWriter.d.ts +18 -5
  217. package/dist/runTelemetryWriter.d.ts.map +1 -1
  218. package/dist/runTelemetryWriter.js +7 -2
  219. package/dist/runTelemetryWriter.js.map +1 -1
  220. package/dist/runTerminalResults.d.ts.map +1 -1
  221. package/dist/runTerminalResults.js +36 -9
  222. package/dist/runTerminalResults.js.map +1 -1
  223. package/dist/runTerminals.d.ts.map +1 -1
  224. package/dist/runTerminals.js +13 -5
  225. package/dist/runTerminals.js.map +1 -1
  226. package/dist/secretDiff.d.ts.map +1 -1
  227. package/dist/secretDiff.js +2 -1
  228. package/dist/secretDiff.js.map +1 -1
  229. package/dist/transientClassify.d.ts +17 -9
  230. package/dist/transientClassify.d.ts.map +1 -1
  231. package/dist/transientClassify.js +33 -9
  232. package/dist/transientClassify.js.map +1 -1
  233. package/dist/webEvidence.d.ts +41 -0
  234. package/dist/webEvidence.d.ts.map +1 -0
  235. package/dist/webEvidence.js +99 -0
  236. package/dist/webEvidence.js.map +1 -0
  237. package/dist/workReportEnvelope.d.ts +12 -0
  238. package/dist/workReportEnvelope.d.ts.map +1 -1
  239. package/dist/workReportEnvelope.js +19 -0
  240. package/dist/workReportEnvelope.js.map +1 -1
  241. package/package.json +17 -17
  242. package/dist/continuation-chain.test-support.d.ts +0 -473
  243. package/dist/continuation-chain.test-support.d.ts.map +0 -1
  244. package/dist/continuation-chain.test-support.js +0 -206
  245. package/dist/continuation-chain.test-support.js.map +0 -1
  246. package/dist/inrun-continuity.test-support.d.ts +0 -504
  247. package/dist/inrun-continuity.test-support.d.ts.map +0 -1
  248. package/dist/inrun-continuity.test-support.js +0 -212
  249. package/dist/inrun-continuity.test-support.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudexor/orchestrator",
3
- "version": "5.0.2",
3
+ "version": "6.0.0",
4
4
  "license": "MIT",
5
5
  "description": "Hub that composes all subsystems and implements the three canonical intents (ask, plan, agent) with their strategy flags (ask deep-scan, plan solo/council, agent best-of-N race, attempt caps, until-clean, create, delegate).",
6
6
  "type": "module",
@@ -17,24 +17,24 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "ajv": "^8.20.0",
20
- "@claudexor/arbitration": "5.0.2",
21
- "@claudexor/artifact-store": "5.0.2",
22
- "@claudexor/config": "5.0.2",
23
- "@claudexor/budget": "5.0.2",
24
- "@claudexor/context": "5.0.2",
25
- "@claudexor/delivery": "5.0.2",
26
- "@claudexor/core": "5.0.2",
27
- "@claudexor/event-log": "5.0.2",
28
- "@claudexor/gateway": "5.0.2",
29
- "@claudexor/policy": "5.0.2",
30
- "@claudexor/review": "5.0.2",
31
- "@claudexor/schema": "5.0.2",
32
- "@claudexor/synthesis": "5.0.2",
33
- "@claudexor/util": "5.0.2",
34
- "@claudexor/workspace": "5.0.2"
20
+ "@claudexor/arbitration": "6.0.0",
21
+ "@claudexor/budget": "6.0.0",
22
+ "@claudexor/artifact-store": "6.0.0",
23
+ "@claudexor/config": "6.0.0",
24
+ "@claudexor/core": "6.0.0",
25
+ "@claudexor/event-log": "6.0.0",
26
+ "@claudexor/gateway": "6.0.0",
27
+ "@claudexor/policy": "6.0.0",
28
+ "@claudexor/review": "6.0.0",
29
+ "@claudexor/delivery": "6.0.0",
30
+ "@claudexor/schema": "6.0.0",
31
+ "@claudexor/synthesis": "6.0.0",
32
+ "@claudexor/util": "6.0.0",
33
+ "@claudexor/workspace": "6.0.0",
34
+ "@claudexor/context": "6.0.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@claudexor/harness-fake": "5.0.2"
37
+ "@claudexor/harness-fake": "6.0.0"
38
38
  },
39
39
  "repository": {
40
40
  "type": "git",
@@ -1,473 +0,0 @@
1
- import type { HarnessAdapter, HarnessContinuityCapability } from "@claudexor/core";
2
- import { type HarnessEvent, type HarnessRunSpec, type RunEvent } from "@claudexor/schema";
3
- import { type OrchestratorResult, type RunInput } from "./orchestrator.js";
4
- import type { RunContinuation } from "./continuation-custody.js";
5
- export declare const WORK_ORDER = "WORK-ORDER-7f3a: build the dashboard";
6
- export interface ChainSpawn {
7
- label: string;
8
- nth: number;
9
- profile: string;
10
- resume: string | null;
11
- prompt: string;
12
- model: string | null;
13
- cwd: string;
14
- }
15
- export type Emit = (ev: Partial<HarnessEvent>) => HarnessEvent;
16
- export type ChainScript = (ctx: ChainSpawn & {
17
- spec: HarnessRunSpec;
18
- emit: Emit;
19
- seed: (sid: string) => void;
20
- }) => Generator<HarnessEvent>;
21
- export interface ChainFixture {
22
- root: string;
23
- stores: Record<string, string>;
24
- spawns: ChainSpawn[];
25
- adapter: HarnessAdapter;
26
- label: {
27
- current: string;
28
- };
29
- }
30
- /** A movable fake store: sessions live under `<locator>/sessions/<sid>.jsonl`. */
31
- export declare function movableStore(retire?: (file: string) => void): HarnessContinuityCapability;
32
- export declare function chainFixture(opts: {
33
- profiles: string[];
34
- maxRetries?: number;
35
- fallbackModel?: string;
36
- continuity?: HarnessContinuityCapability;
37
- }, script: ChainScript): ChainFixture;
38
- export interface ChainRun {
39
- result: OrchestratorResult;
40
- events: RunEvent[];
41
- receipts: Record<string, unknown>[];
42
- resumable: Record<string, unknown> | undefined;
43
- }
44
- export declare function runLabelled(f: ChainFixture, label: string, input: Partial<RunInput>): Promise<ChainRun>;
45
- /** The facts the daemon resolves for a successor of `pred` (its own ancestors first). */
46
- export declare function continuing(pred: ChainRun, workOrder: string, ancestors?: ChainRun[], over?: Partial<NonNullable<RunContinuation["from"]>>): RunContinuation;
47
- export declare const limitStop: (emit: Emit) => {
48
- account_usage?: {
49
- code: string;
50
- detail: string | null;
51
- }[] | undefined;
52
- quota?: {
53
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit" | "grok_rate_limit";
54
- plan_label: string | null;
55
- subject_id: string | null;
56
- constraints: {
57
- id: string;
58
- label: string;
59
- applies_to_models?: string[] | null | undefined;
60
- applies_to_model_prefixes?: string[] | undefined;
61
- applies_to_unspecified_model?: boolean | undefined;
62
- applies_to_request_kinds?: ("image" | "text")[] | undefined;
63
- used_ratio: number | null;
64
- window_seconds: number | null;
65
- resets_at: string | null;
66
- cooldown_until: string | null;
67
- }[];
68
- } | undefined;
69
- observed_model?: string | undefined;
70
- observed_model_catalog_match?: {
71
- label: string;
72
- id: string;
73
- source: "account_catalog";
74
- profile_id: string | null;
75
- } | undefined;
76
- speech?: {
77
- key: string;
78
- op: "abandoned" | "complete" | "fragment";
79
- } | undefined;
80
- request_refusal?: {
81
- scope: "turn_text";
82
- unit: "unicode_scalars";
83
- source: string;
84
- kind: "input_too_large";
85
- limit: number | null;
86
- actual: number | null;
87
- native_code: string;
88
- } | {
89
- kind: "vendor_cli_too_old";
90
- native_code: "claude_code_version_too_old";
91
- source: "claude_stdout";
92
- binary_path: string | null;
93
- installed_version: string | null;
94
- } | {
95
- kind: "credential_source_unconfirmed";
96
- native_code: "grok_credential_source_unconfirmed";
97
- source: "grok_init";
98
- reported_source: string;
99
- } | undefined;
100
- effort_resolution?: {
101
- requested: string | null;
102
- submitted: string | null;
103
- resolution: "downward" | "exact" | "floor" | "omitted" | "rejected" | "unverifiable";
104
- source: "account_catalog" | "adapter" | "live_probe" | "versioned_snapshot";
105
- parameter: string | null;
106
- observed: string | null;
107
- observedSource: string | null;
108
- reason?: string | undefined;
109
- } | undefined;
110
- processing?: {
111
- requested: "economy" | "fast" | "standard" | null;
112
- submitted: "economy" | "fast" | "standard" | null;
113
- submittedNative: string | null;
114
- observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
115
- observedNative: string[];
116
- reason: string | null;
117
- source: string;
118
- } | undefined;
119
- processing_cost_basis?: {
120
- nativeMode: string | null;
121
- kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
122
- source: string;
123
- debit?: "unobserved" | undefined;
124
- } | undefined;
125
- prompt_cache_ttl?: {
126
- requested: "1h" | "5m" | null;
127
- submitted: "1h" | "5m" | null;
128
- reason: string | null;
129
- observed: "1h" | "5m" | "mixed" | "none" | "unknown";
130
- write_5m_tokens: number | null;
131
- write_1h_tokens: number | null;
132
- } | undefined;
133
- type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
134
- session_id: string;
135
- ts: string;
136
- text?: string | undefined;
137
- final?: boolean | undefined;
138
- tool?: {
139
- name: string;
140
- kind: "command" | "file" | "mcp" | "other" | "search" | "web";
141
- use_id?: string | undefined;
142
- target?: string | undefined;
143
- status?: "cancelled" | "denied" | "error" | "ok" | undefined;
144
- phase?: "completed" | "started" | undefined;
145
- error_summary?: string | undefined;
146
- content_summary?: string | undefined;
147
- exit_code?: number | undefined;
148
- command_outcome?: {
149
- state: "backgrounded" | "exited" | "timed_out" | "unknown";
150
- signal?: string | undefined;
151
- timeout_ms?: number | undefined;
152
- background_reason?: "requested" | "timeout" | undefined;
153
- shell_id?: string | undefined;
154
- pid?: number | undefined;
155
- } | undefined;
156
- web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
157
- } | undefined;
158
- interaction?: {
159
- interaction_id: string;
160
- questions: {
161
- id: string;
162
- question: string;
163
- header: string | null;
164
- options: {
165
- label: string;
166
- description: string | null;
167
- }[];
168
- multi_select: boolean;
169
- }[];
170
- source_tool: string | null;
171
- } | undefined;
172
- patch_envelope?: {
173
- schema_version: 1;
174
- context_packet_hash: string;
175
- base_tree_sha: string;
176
- patch: string;
177
- patch_hash: string;
178
- touched_paths: {
179
- path: string;
180
- expected_blob_oid: string | null;
181
- }[];
182
- } | undefined;
183
- refusal_code?: "raw_context_exceeds_window" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | undefined;
184
- raw_context?: {
185
- model: string;
186
- estimated_request_tokens: number;
187
- budget: {
188
- estimator: "chars_div_4";
189
- basis: "assumed_ceiling" | "model_context_window";
190
- model: string | null;
191
- context_window: number | null;
192
- output_allowance_tokens: number | null;
193
- framing_tokens: number | null;
194
- selection_limit_tokens: number;
195
- estimated_packet_tokens: number;
196
- omitted_for_budget: number;
197
- mandatory_paths: string[];
198
- };
199
- } | undefined;
200
- permission_denial?: {
201
- permission: string;
202
- source: string;
203
- } | undefined;
204
- usage?: {
205
- input_tokens?: number | undefined;
206
- output_tokens?: number | undefined;
207
- cached_input_tokens?: number | undefined;
208
- input_token_usage?: {
209
- total_tokens: number | null;
210
- cache_read_tokens: number | null;
211
- cache_write_tokens: number | null;
212
- } | undefined;
213
- cost_usd?: number | undefined;
214
- cost_basis?: {
215
- kind: "cash" | "unknown" | "valuation";
216
- source: string;
217
- } | undefined;
218
- estimated?: boolean | undefined;
219
- } | undefined;
220
- credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
221
- credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
222
- credential_profile_id?: string | undefined;
223
- plan_progress?: {
224
- items: {
225
- id: string;
226
- title: string;
227
- status: "completed" | "in_progress" | "pending";
228
- }[];
229
- } | undefined;
230
- rate_limit?: {
231
- constraint_id?: string | undefined;
232
- applies_to_request_kinds?: ("image" | "text")[] | undefined;
233
- applies_to_models?: string[] | null | undefined;
234
- applies_to_model_prefixes?: string[] | undefined;
235
- resets_at: string | null;
236
- retry_delay_ms: number | null;
237
- } | undefined;
238
- status?: {
239
- kind: "api_retry";
240
- attempt?: number | undefined;
241
- max_retries?: number | undefined;
242
- retry_delay_ms?: number | undefined;
243
- error_category?: "authentication_failed" | "billing_error" | "invalid_request" | "max_output_tokens" | "model_not_found" | "oauth_org_not_allowed" | "overloaded" | "rate_limit" | "server_error" | "timeout" | "unknown" | undefined;
244
- } | undefined;
245
- transient?: {
246
- kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
247
- retry_delay_ms: number | null;
248
- } | undefined;
249
- context?: {
250
- kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
251
- cause: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded";
252
- native_code: string | null;
253
- trigger: "auto" | "manual" | null;
254
- pre_tokens: number | null;
255
- } | undefined;
256
- error?: string | undefined;
257
- aborted?: boolean | undefined;
258
- payload?: Record<string, unknown> | undefined;
259
- }[];
260
- export declare const crash: (emit: Emit) => {
261
- account_usage?: {
262
- code: string;
263
- detail: string | null;
264
- }[] | undefined;
265
- quota?: {
266
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit" | "grok_rate_limit";
267
- plan_label: string | null;
268
- subject_id: string | null;
269
- constraints: {
270
- id: string;
271
- label: string;
272
- applies_to_models?: string[] | null | undefined;
273
- applies_to_model_prefixes?: string[] | undefined;
274
- applies_to_unspecified_model?: boolean | undefined;
275
- applies_to_request_kinds?: ("image" | "text")[] | undefined;
276
- used_ratio: number | null;
277
- window_seconds: number | null;
278
- resets_at: string | null;
279
- cooldown_until: string | null;
280
- }[];
281
- } | undefined;
282
- observed_model?: string | undefined;
283
- observed_model_catalog_match?: {
284
- label: string;
285
- id: string;
286
- source: "account_catalog";
287
- profile_id: string | null;
288
- } | undefined;
289
- speech?: {
290
- key: string;
291
- op: "abandoned" | "complete" | "fragment";
292
- } | undefined;
293
- request_refusal?: {
294
- scope: "turn_text";
295
- unit: "unicode_scalars";
296
- source: string;
297
- kind: "input_too_large";
298
- limit: number | null;
299
- actual: number | null;
300
- native_code: string;
301
- } | {
302
- kind: "vendor_cli_too_old";
303
- native_code: "claude_code_version_too_old";
304
- source: "claude_stdout";
305
- binary_path: string | null;
306
- installed_version: string | null;
307
- } | {
308
- kind: "credential_source_unconfirmed";
309
- native_code: "grok_credential_source_unconfirmed";
310
- source: "grok_init";
311
- reported_source: string;
312
- } | undefined;
313
- effort_resolution?: {
314
- requested: string | null;
315
- submitted: string | null;
316
- resolution: "downward" | "exact" | "floor" | "omitted" | "rejected" | "unverifiable";
317
- source: "account_catalog" | "adapter" | "live_probe" | "versioned_snapshot";
318
- parameter: string | null;
319
- observed: string | null;
320
- observedSource: string | null;
321
- reason?: string | undefined;
322
- } | undefined;
323
- processing?: {
324
- requested: "economy" | "fast" | "standard" | null;
325
- submitted: "economy" | "fast" | "standard" | null;
326
- submittedNative: string | null;
327
- observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
328
- observedNative: string[];
329
- reason: string | null;
330
- source: string;
331
- } | undefined;
332
- processing_cost_basis?: {
333
- nativeMode: string | null;
334
- kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
335
- source: string;
336
- debit?: "unobserved" | undefined;
337
- } | undefined;
338
- prompt_cache_ttl?: {
339
- requested: "1h" | "5m" | null;
340
- submitted: "1h" | "5m" | null;
341
- reason: string | null;
342
- observed: "1h" | "5m" | "mixed" | "none" | "unknown";
343
- write_5m_tokens: number | null;
344
- write_1h_tokens: number | null;
345
- } | undefined;
346
- type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
347
- session_id: string;
348
- ts: string;
349
- text?: string | undefined;
350
- final?: boolean | undefined;
351
- tool?: {
352
- name: string;
353
- kind: "command" | "file" | "mcp" | "other" | "search" | "web";
354
- use_id?: string | undefined;
355
- target?: string | undefined;
356
- status?: "cancelled" | "denied" | "error" | "ok" | undefined;
357
- phase?: "completed" | "started" | undefined;
358
- error_summary?: string | undefined;
359
- content_summary?: string | undefined;
360
- exit_code?: number | undefined;
361
- command_outcome?: {
362
- state: "backgrounded" | "exited" | "timed_out" | "unknown";
363
- signal?: string | undefined;
364
- timeout_ms?: number | undefined;
365
- background_reason?: "requested" | "timeout" | undefined;
366
- shell_id?: string | undefined;
367
- pid?: number | undefined;
368
- } | undefined;
369
- web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
370
- } | undefined;
371
- interaction?: {
372
- interaction_id: string;
373
- questions: {
374
- id: string;
375
- question: string;
376
- header: string | null;
377
- options: {
378
- label: string;
379
- description: string | null;
380
- }[];
381
- multi_select: boolean;
382
- }[];
383
- source_tool: string | null;
384
- } | undefined;
385
- patch_envelope?: {
386
- schema_version: 1;
387
- context_packet_hash: string;
388
- base_tree_sha: string;
389
- patch: string;
390
- patch_hash: string;
391
- touched_paths: {
392
- path: string;
393
- expected_blob_oid: string | null;
394
- }[];
395
- } | undefined;
396
- refusal_code?: "raw_context_exceeds_window" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | undefined;
397
- raw_context?: {
398
- model: string;
399
- estimated_request_tokens: number;
400
- budget: {
401
- estimator: "chars_div_4";
402
- basis: "assumed_ceiling" | "model_context_window";
403
- model: string | null;
404
- context_window: number | null;
405
- output_allowance_tokens: number | null;
406
- framing_tokens: number | null;
407
- selection_limit_tokens: number;
408
- estimated_packet_tokens: number;
409
- omitted_for_budget: number;
410
- mandatory_paths: string[];
411
- };
412
- } | undefined;
413
- permission_denial?: {
414
- permission: string;
415
- source: string;
416
- } | undefined;
417
- usage?: {
418
- input_tokens?: number | undefined;
419
- output_tokens?: number | undefined;
420
- cached_input_tokens?: number | undefined;
421
- input_token_usage?: {
422
- total_tokens: number | null;
423
- cache_read_tokens: number | null;
424
- cache_write_tokens: number | null;
425
- } | undefined;
426
- cost_usd?: number | undefined;
427
- cost_basis?: {
428
- kind: "cash" | "unknown" | "valuation";
429
- source: string;
430
- } | undefined;
431
- estimated?: boolean | undefined;
432
- } | undefined;
433
- credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
434
- credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
435
- credential_profile_id?: string | undefined;
436
- plan_progress?: {
437
- items: {
438
- id: string;
439
- title: string;
440
- status: "completed" | "in_progress" | "pending";
441
- }[];
442
- } | undefined;
443
- rate_limit?: {
444
- constraint_id?: string | undefined;
445
- applies_to_request_kinds?: ("image" | "text")[] | undefined;
446
- applies_to_models?: string[] | null | undefined;
447
- applies_to_model_prefixes?: string[] | undefined;
448
- resets_at: string | null;
449
- retry_delay_ms: number | null;
450
- } | undefined;
451
- status?: {
452
- kind: "api_retry";
453
- attempt?: number | undefined;
454
- max_retries?: number | undefined;
455
- retry_delay_ms?: number | undefined;
456
- error_category?: "authentication_failed" | "billing_error" | "invalid_request" | "max_output_tokens" | "model_not_found" | "oauth_org_not_allowed" | "overloaded" | "rate_limit" | "server_error" | "timeout" | "unknown" | undefined;
457
- } | undefined;
458
- transient?: {
459
- kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
460
- retry_delay_ms: number | null;
461
- } | undefined;
462
- context?: {
463
- kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
464
- cause: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded";
465
- native_code: string | null;
466
- trigger: "auto" | "manual" | null;
467
- pre_tokens: number | null;
468
- } | undefined;
469
- error?: string | undefined;
470
- aborted?: boolean | undefined;
471
- payload?: Record<string, unknown> | undefined;
472
- }[];
473
- //# sourceMappingURL=continuation-chain.test-support.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"continuation-chain.test-support.d.ts","sourceRoot":"","sources":["../src/continuation-chain.test-support.ts"],"names":[],"mappings":"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"}