@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
@@ -1,504 +0,0 @@
1
- import type { HarnessContinuityCapability } from "@claudexor/core";
2
- import { CredentialProfile, HarnessManifest, type HarnessEvent, type HarnessModel, type HarnessRunSpec, type QuotaSnapshot } from "@claudexor/schema";
3
- import { Orchestrator, type RunInput } from "./orchestrator.js";
4
- import type { ReviewerSpec } from "@claudexor/review";
5
- interface Spawn {
6
- profile: string;
7
- resume: string | null;
8
- prompt: string;
9
- model: string | null;
10
- tryOfProfile: number;
11
- }
12
- type Script = (ctx: Spawn & {
13
- spec: HarnessRunSpec;
14
- emit: (ev: Partial<HarnessEvent>) => HarnessEvent;
15
- }) => Generator<HarnessEvent>;
16
- interface Scenario {
17
- mode: "agent" | "ask" | "plan";
18
- profiles: string[];
19
- script: Script;
20
- continuity?: HarnessContinuityCapability | null;
21
- pinned?: string;
22
- limitAction?: "rotate" | "fail" | "ask";
23
- /** The saved quota reserve (`profile_policy.headroom_threshold`; default 1). */
24
- headroomThreshold?: number;
25
- maxRetries?: number;
26
- /** The run's requested model; null = none (the harness default). */
27
- model?: string | null;
28
- input?: Partial<RunInput>;
29
- snapshots?: QuotaSnapshot[];
30
- reviewers?: ReviewerSpec[];
31
- capabilities?: Partial<HarnessManifest["capabilities"]>;
32
- registryProfiles?: (profiles: CredentialProfile[]) => CredentialProfile[];
33
- /** The live inventory each account answers (default: `m1` for every account). */
34
- models?: (profileId: string | null) => Promise<HarnessModel[]>;
35
- /** Extra Orchestrator dependencies (e.g. a Delegate drain authority). */
36
- deps?: Partial<ConstructorParameters<typeof Orchestrator>[0]>;
37
- /** Runs inside each asynchronous credential readiness probe (e.g. time
38
- * passing or a new quota observation landing while readiness is checked). */
39
- onProbe?: (profileId: string) => void | Promise<void>;
40
- }
41
- export declare const RESET = "2026-10-06T21:00:00.000Z";
42
- /** A movable fake store: sessions live under `<locator>/sessions/<sid>.jsonl`. */
43
- export declare function fileStoreContinuity(over?: Partial<HarnessContinuityCapability>): HarnessContinuityCapability;
44
- export declare function run(scenario: Scenario): Promise<{
45
- root: string;
46
- stores: {
47
- [k: string]: string;
48
- };
49
- result: import("./orchestrator.js").OrchestratorResult;
50
- spawns: Spawn[];
51
- events: {
52
- seq?: number | undefined;
53
- ts: string;
54
- run_id: string;
55
- task_id: string;
56
- thread_id?: string | undefined;
57
- type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "interaction.withdrawn" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.continuity" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted" | "workspace.prepared" | "workspace.retained" | "workspace.settlement_failed";
58
- payload: Record<string, unknown>;
59
- }[];
60
- receipts: Record<string, unknown>[];
61
- rotated: Record<string, unknown>[];
62
- resumable: Record<string, unknown> | undefined;
63
- capsule: {
64
- harness: string;
65
- nativeSessionId: string;
66
- holderProfileId: string | null;
67
- file: string | null;
68
- mtimeMs: number | null;
69
- sidecars: string[];
70
- cwd: string;
71
- requestedModel: string | null;
72
- } | null;
73
- attemptDir: string | null;
74
- }>;
75
- /** Script helpers. */
76
- export declare function seedSession(root: string, profile: string, sid: string): void;
77
- export declare const limit: (emit: (ev: Partial<HarnessEvent>) => HarnessEvent, resetsAt?: string | null) => {
78
- account_usage?: {
79
- code: string;
80
- detail: string | null;
81
- }[] | undefined;
82
- quota?: {
83
- 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";
84
- plan_label: string | null;
85
- subject_id: string | null;
86
- constraints: {
87
- id: string;
88
- label: string;
89
- applies_to_models?: string[] | null | undefined;
90
- applies_to_model_prefixes?: string[] | undefined;
91
- applies_to_unspecified_model?: boolean | undefined;
92
- applies_to_request_kinds?: ("image" | "text")[] | undefined;
93
- used_ratio: number | null;
94
- window_seconds: number | null;
95
- resets_at: string | null;
96
- cooldown_until: string | null;
97
- }[];
98
- } | undefined;
99
- observed_model?: string | undefined;
100
- observed_model_catalog_match?: {
101
- label: string;
102
- id: string;
103
- source: "account_catalog";
104
- profile_id: string | null;
105
- } | undefined;
106
- speech?: {
107
- key: string;
108
- op: "abandoned" | "complete" | "fragment";
109
- } | undefined;
110
- request_refusal?: {
111
- scope: "turn_text";
112
- unit: "unicode_scalars";
113
- source: string;
114
- kind: "input_too_large";
115
- limit: number | null;
116
- actual: number | null;
117
- native_code: string;
118
- } | {
119
- kind: "vendor_cli_too_old";
120
- native_code: "claude_code_version_too_old";
121
- source: "claude_stdout";
122
- binary_path: string | null;
123
- installed_version: string | null;
124
- } | {
125
- kind: "credential_source_unconfirmed";
126
- native_code: "grok_credential_source_unconfirmed";
127
- source: "grok_init";
128
- reported_source: string;
129
- } | undefined;
130
- effort_resolution?: {
131
- requested: string | null;
132
- submitted: string | null;
133
- resolution: "downward" | "exact" | "floor" | "omitted" | "rejected" | "unverifiable";
134
- source: "account_catalog" | "adapter" | "live_probe" | "versioned_snapshot";
135
- parameter: string | null;
136
- observed: string | null;
137
- observedSource: string | null;
138
- reason?: string | undefined;
139
- } | undefined;
140
- processing?: {
141
- requested: "economy" | "fast" | "standard" | null;
142
- submitted: "economy" | "fast" | "standard" | null;
143
- submittedNative: string | null;
144
- observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
145
- observedNative: string[];
146
- reason: string | null;
147
- source: string;
148
- } | undefined;
149
- processing_cost_basis?: {
150
- nativeMode: string | null;
151
- kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
152
- source: string;
153
- debit?: "unobserved" | undefined;
154
- } | undefined;
155
- prompt_cache_ttl?: {
156
- requested: "1h" | "5m" | null;
157
- submitted: "1h" | "5m" | null;
158
- reason: string | null;
159
- observed: "1h" | "5m" | "mixed" | "none" | "unknown";
160
- write_5m_tokens: number | null;
161
- write_1h_tokens: number | null;
162
- } | undefined;
163
- type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
164
- session_id: string;
165
- ts: string;
166
- text?: string | undefined;
167
- final?: boolean | undefined;
168
- tool?: {
169
- name: string;
170
- kind: "command" | "file" | "mcp" | "other" | "search" | "web";
171
- use_id?: string | undefined;
172
- target?: string | undefined;
173
- status?: "cancelled" | "denied" | "error" | "ok" | undefined;
174
- phase?: "completed" | "started" | undefined;
175
- error_summary?: string | undefined;
176
- content_summary?: string | undefined;
177
- exit_code?: number | undefined;
178
- command_outcome?: {
179
- state: "backgrounded" | "exited" | "timed_out" | "unknown";
180
- signal?: string | undefined;
181
- timeout_ms?: number | undefined;
182
- background_reason?: "requested" | "timeout" | undefined;
183
- shell_id?: string | undefined;
184
- pid?: number | undefined;
185
- } | undefined;
186
- web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
187
- } | undefined;
188
- interaction?: {
189
- interaction_id: string;
190
- questions: {
191
- id: string;
192
- question: string;
193
- header: string | null;
194
- options: {
195
- label: string;
196
- description: string | null;
197
- }[];
198
- multi_select: boolean;
199
- }[];
200
- source_tool: string | null;
201
- } | undefined;
202
- patch_envelope?: {
203
- schema_version: 1;
204
- context_packet_hash: string;
205
- base_tree_sha: string;
206
- patch: string;
207
- patch_hash: string;
208
- touched_paths: {
209
- path: string;
210
- expected_blob_oid: string | null;
211
- }[];
212
- } | undefined;
213
- 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;
214
- raw_context?: {
215
- model: string;
216
- estimated_request_tokens: number;
217
- budget: {
218
- estimator: "chars_div_4";
219
- basis: "assumed_ceiling" | "model_context_window";
220
- model: string | null;
221
- context_window: number | null;
222
- output_allowance_tokens: number | null;
223
- framing_tokens: number | null;
224
- selection_limit_tokens: number;
225
- estimated_packet_tokens: number;
226
- omitted_for_budget: number;
227
- mandatory_paths: string[];
228
- };
229
- } | undefined;
230
- permission_denial?: {
231
- permission: string;
232
- source: string;
233
- } | undefined;
234
- usage?: {
235
- input_tokens?: number | undefined;
236
- output_tokens?: number | undefined;
237
- cached_input_tokens?: number | undefined;
238
- input_token_usage?: {
239
- total_tokens: number | null;
240
- cache_read_tokens: number | null;
241
- cache_write_tokens: number | null;
242
- } | undefined;
243
- cost_usd?: number | undefined;
244
- cost_basis?: {
245
- kind: "cash" | "unknown" | "valuation";
246
- source: string;
247
- } | undefined;
248
- estimated?: boolean | undefined;
249
- } | undefined;
250
- credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
251
- credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
252
- credential_profile_id?: string | undefined;
253
- plan_progress?: {
254
- items: {
255
- id: string;
256
- title: string;
257
- status: "completed" | "in_progress" | "pending";
258
- }[];
259
- } | undefined;
260
- rate_limit?: {
261
- constraint_id?: string | undefined;
262
- applies_to_request_kinds?: ("image" | "text")[] | undefined;
263
- applies_to_models?: string[] | null | undefined;
264
- applies_to_model_prefixes?: string[] | undefined;
265
- resets_at: string | null;
266
- retry_delay_ms: number | null;
267
- } | undefined;
268
- status?: {
269
- kind: "api_retry";
270
- attempt?: number | undefined;
271
- max_retries?: number | undefined;
272
- retry_delay_ms?: number | undefined;
273
- 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;
274
- } | undefined;
275
- transient?: {
276
- kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
277
- retry_delay_ms: number | null;
278
- } | undefined;
279
- context?: {
280
- kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
281
- cause: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded";
282
- native_code: string | null;
283
- trigger: "auto" | "manual" | null;
284
- pre_tokens: number | null;
285
- } | undefined;
286
- error?: string | undefined;
287
- aborted?: boolean | undefined;
288
- payload?: Record<string, unknown> | undefined;
289
- }[];
290
- export declare const crash: (emit: (ev: Partial<HarnessEvent>) => HarnessEvent) => {
291
- account_usage?: {
292
- code: string;
293
- detail: string | null;
294
- }[] | undefined;
295
- quota?: {
296
- 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";
297
- plan_label: string | null;
298
- subject_id: string | null;
299
- constraints: {
300
- id: string;
301
- label: string;
302
- applies_to_models?: string[] | null | undefined;
303
- applies_to_model_prefixes?: string[] | undefined;
304
- applies_to_unspecified_model?: boolean | undefined;
305
- applies_to_request_kinds?: ("image" | "text")[] | undefined;
306
- used_ratio: number | null;
307
- window_seconds: number | null;
308
- resets_at: string | null;
309
- cooldown_until: string | null;
310
- }[];
311
- } | undefined;
312
- observed_model?: string | undefined;
313
- observed_model_catalog_match?: {
314
- label: string;
315
- id: string;
316
- source: "account_catalog";
317
- profile_id: string | null;
318
- } | undefined;
319
- speech?: {
320
- key: string;
321
- op: "abandoned" | "complete" | "fragment";
322
- } | undefined;
323
- request_refusal?: {
324
- scope: "turn_text";
325
- unit: "unicode_scalars";
326
- source: string;
327
- kind: "input_too_large";
328
- limit: number | null;
329
- actual: number | null;
330
- native_code: string;
331
- } | {
332
- kind: "vendor_cli_too_old";
333
- native_code: "claude_code_version_too_old";
334
- source: "claude_stdout";
335
- binary_path: string | null;
336
- installed_version: string | null;
337
- } | {
338
- kind: "credential_source_unconfirmed";
339
- native_code: "grok_credential_source_unconfirmed";
340
- source: "grok_init";
341
- reported_source: string;
342
- } | undefined;
343
- effort_resolution?: {
344
- requested: string | null;
345
- submitted: string | null;
346
- resolution: "downward" | "exact" | "floor" | "omitted" | "rejected" | "unverifiable";
347
- source: "account_catalog" | "adapter" | "live_probe" | "versioned_snapshot";
348
- parameter: string | null;
349
- observed: string | null;
350
- observedSource: string | null;
351
- reason?: string | undefined;
352
- } | undefined;
353
- processing?: {
354
- requested: "economy" | "fast" | "standard" | null;
355
- submitted: "economy" | "fast" | "standard" | null;
356
- submittedNative: string | null;
357
- observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
358
- observedNative: string[];
359
- reason: string | null;
360
- source: string;
361
- } | undefined;
362
- processing_cost_basis?: {
363
- nativeMode: string | null;
364
- kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
365
- source: string;
366
- debit?: "unobserved" | undefined;
367
- } | undefined;
368
- prompt_cache_ttl?: {
369
- requested: "1h" | "5m" | null;
370
- submitted: "1h" | "5m" | null;
371
- reason: string | null;
372
- observed: "1h" | "5m" | "mixed" | "none" | "unknown";
373
- write_5m_tokens: number | null;
374
- write_1h_tokens: number | null;
375
- } | undefined;
376
- type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
377
- session_id: string;
378
- ts: string;
379
- text?: string | undefined;
380
- final?: boolean | undefined;
381
- tool?: {
382
- name: string;
383
- kind: "command" | "file" | "mcp" | "other" | "search" | "web";
384
- use_id?: string | undefined;
385
- target?: string | undefined;
386
- status?: "cancelled" | "denied" | "error" | "ok" | undefined;
387
- phase?: "completed" | "started" | undefined;
388
- error_summary?: string | undefined;
389
- content_summary?: string | undefined;
390
- exit_code?: number | undefined;
391
- command_outcome?: {
392
- state: "backgrounded" | "exited" | "timed_out" | "unknown";
393
- signal?: string | undefined;
394
- timeout_ms?: number | undefined;
395
- background_reason?: "requested" | "timeout" | undefined;
396
- shell_id?: string | undefined;
397
- pid?: number | undefined;
398
- } | undefined;
399
- web_retrieval?: "dispatched" | "failed" | "verified" | undefined;
400
- } | undefined;
401
- interaction?: {
402
- interaction_id: string;
403
- questions: {
404
- id: string;
405
- question: string;
406
- header: string | null;
407
- options: {
408
- label: string;
409
- description: string | null;
410
- }[];
411
- multi_select: boolean;
412
- }[];
413
- source_tool: string | null;
414
- } | undefined;
415
- patch_envelope?: {
416
- schema_version: 1;
417
- context_packet_hash: string;
418
- base_tree_sha: string;
419
- patch: string;
420
- patch_hash: string;
421
- touched_paths: {
422
- path: string;
423
- expected_blob_oid: string | null;
424
- }[];
425
- } | undefined;
426
- 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;
427
- raw_context?: {
428
- model: string;
429
- estimated_request_tokens: number;
430
- budget: {
431
- estimator: "chars_div_4";
432
- basis: "assumed_ceiling" | "model_context_window";
433
- model: string | null;
434
- context_window: number | null;
435
- output_allowance_tokens: number | null;
436
- framing_tokens: number | null;
437
- selection_limit_tokens: number;
438
- estimated_packet_tokens: number;
439
- omitted_for_budget: number;
440
- mandatory_paths: string[];
441
- };
442
- } | undefined;
443
- permission_denial?: {
444
- permission: string;
445
- source: string;
446
- } | undefined;
447
- usage?: {
448
- input_tokens?: number | undefined;
449
- output_tokens?: number | undefined;
450
- cached_input_tokens?: number | undefined;
451
- input_token_usage?: {
452
- total_tokens: number | null;
453
- cache_read_tokens: number | null;
454
- cache_write_tokens: number | null;
455
- } | undefined;
456
- cost_usd?: number | undefined;
457
- cost_basis?: {
458
- kind: "cash" | "unknown" | "valuation";
459
- source: string;
460
- } | undefined;
461
- estimated?: boolean | undefined;
462
- } | undefined;
463
- credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
464
- credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
465
- credential_profile_id?: string | undefined;
466
- plan_progress?: {
467
- items: {
468
- id: string;
469
- title: string;
470
- status: "completed" | "in_progress" | "pending";
471
- }[];
472
- } | undefined;
473
- rate_limit?: {
474
- constraint_id?: string | undefined;
475
- applies_to_request_kinds?: ("image" | "text")[] | undefined;
476
- applies_to_models?: string[] | null | undefined;
477
- applies_to_model_prefixes?: string[] | undefined;
478
- resets_at: string | null;
479
- retry_delay_ms: number | null;
480
- } | undefined;
481
- status?: {
482
- kind: "api_retry";
483
- attempt?: number | undefined;
484
- max_retries?: number | undefined;
485
- retry_delay_ms?: number | undefined;
486
- 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;
487
- } | undefined;
488
- transient?: {
489
- kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
490
- retry_delay_ms: number | null;
491
- } | undefined;
492
- context?: {
493
- kind: "capacity_exhausted" | "compaction_completed" | "compaction_started";
494
- cause: "blocking_limit" | "prompt_too_long" | "repeated_refill" | "unknown" | "window_exceeded";
495
- native_code: string | null;
496
- trigger: "auto" | "manual" | null;
497
- pre_tokens: number | null;
498
- } | undefined;
499
- error?: string | undefined;
500
- aborted?: boolean | undefined;
501
- payload?: Record<string, unknown> | undefined;
502
- }[];
503
- export {};
504
- //# sourceMappingURL=inrun-continuity.test-support.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inrun-continuity.test-support.d.ts","sourceRoot":"","sources":["../src/inrun-continuity.test-support.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAkB,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,EAEL,iBAAiB,EACjB,eAAe,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,cAAc,EAEnB,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMtD,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,KAAK,MAAM,GAAG,CACZ,GAAG,EAAE,KAAK,GAAG;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,YAAY,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