@orion-agents/orion-code 0.1.8 → 0.2.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 (861) hide show
  1. package/CHANGELOG.md +495 -0
  2. package/README.md +142 -314
  3. package/README.zh-CN.md +117 -559
  4. package/dist/cli.js +71 -90
  5. package/dist/cli.js.map +1 -1
  6. package/dist/commands/context-commands.d.ts.map +1 -1
  7. package/dist/commands/context-commands.js +14 -7
  8. package/dist/commands/context-commands.js.map +1 -1
  9. package/dist/commands/context-tool-command-handlers.d.ts +4 -5
  10. package/dist/commands/context-tool-command-handlers.d.ts.map +1 -1
  11. package/dist/commands/context-tool-command-handlers.js +174 -208
  12. package/dist/commands/context-tool-command-handlers.js.map +1 -1
  13. package/dist/commands/core-command-handlers.d.ts +3 -6
  14. package/dist/commands/core-command-handlers.d.ts.map +1 -1
  15. package/dist/commands/core-command-handlers.js +66 -664
  16. package/dist/commands/core-command-handlers.js.map +1 -1
  17. package/dist/commands/diagnostic-command-handlers.d.ts +1 -2
  18. package/dist/commands/diagnostic-command-handlers.d.ts.map +1 -1
  19. package/dist/commands/diagnostic-command-handlers.js +3 -17
  20. package/dist/commands/diagnostic-command-handlers.js.map +1 -1
  21. package/dist/commands/diagnostic-commands.d.ts.map +1 -1
  22. package/dist/commands/diagnostic-commands.js +0 -45
  23. package/dist/commands/diagnostic-commands.js.map +1 -1
  24. package/dist/commands/index.d.ts +1 -1
  25. package/dist/commands/index.d.ts.map +1 -1
  26. package/dist/commands/index.js +2 -7
  27. package/dist/commands/index.js.map +1 -1
  28. package/dist/commands/model-command-handlers.d.ts +2 -2
  29. package/dist/commands/model-command-handlers.d.ts.map +1 -1
  30. package/dist/commands/model-command-handlers.js +168 -3
  31. package/dist/commands/model-command-handlers.js.map +1 -1
  32. package/dist/commands/model-commands.d.ts.map +1 -1
  33. package/dist/commands/model-commands.js +0 -11
  34. package/dist/commands/model-commands.js.map +1 -1
  35. package/dist/commands/registry.d.ts.map +1 -1
  36. package/dist/commands/registry.js +1 -139
  37. package/dist/commands/registry.js.map +1 -1
  38. package/dist/commands/session-command-handlers.d.ts.map +1 -1
  39. package/dist/commands/session-command-handlers.js +35 -119
  40. package/dist/commands/session-command-handlers.js.map +1 -1
  41. package/dist/commands/session-commands.d.ts.map +1 -1
  42. package/dist/commands/session-commands.js +2 -50
  43. package/dist/commands/session-commands.js.map +1 -1
  44. package/dist/commands/target-command.d.ts +9 -15
  45. package/dist/commands/target-command.d.ts.map +1 -1
  46. package/dist/commands/target-command.js +16 -130
  47. package/dist/commands/target-command.js.map +1 -1
  48. package/dist/commands/tool-commands.d.ts.map +1 -1
  49. package/dist/commands/tool-commands.js +0 -10
  50. package/dist/commands/tool-commands.js.map +1 -1
  51. package/dist/commands/types.d.ts +14 -14
  52. package/dist/commands/types.d.ts.map +1 -1
  53. package/dist/commands/types.js +1 -1
  54. package/dist/commands/types.js.map +1 -1
  55. package/dist/commands/workflow-command-handlers.d.ts.map +1 -1
  56. package/dist/commands/workflow-command-handlers.js +1 -3
  57. package/dist/commands/workflow-command-handlers.js.map +1 -1
  58. package/dist/commands/workflow-commands.d.ts.map +1 -1
  59. package/dist/commands/workflow-commands.js +2 -24
  60. package/dist/commands/workflow-commands.js.map +1 -1
  61. package/dist/framework/agent-mode.d.ts +2 -3
  62. package/dist/framework/agent-mode.d.ts.map +1 -1
  63. package/dist/framework/agent-mode.js +8 -31
  64. package/dist/framework/agent-mode.js.map +1 -1
  65. package/dist/framework/index.d.ts +8 -6
  66. package/dist/framework/index.d.ts.map +1 -1
  67. package/dist/framework/index.js +14 -9
  68. package/dist/framework/index.js.map +1 -1
  69. package/dist/framework/loop-budget-contract.d.ts +20 -0
  70. package/dist/framework/loop-budget-contract.d.ts.map +1 -0
  71. package/dist/framework/loop-budget-contract.js +13 -0
  72. package/dist/framework/loop-budget-contract.js.map +1 -0
  73. package/dist/framework/prompt.d.ts.map +1 -1
  74. package/dist/framework/prompt.js +5 -4
  75. package/dist/framework/prompt.js.map +1 -1
  76. package/dist/framework/query.d.ts +71 -26
  77. package/dist/framework/query.d.ts.map +1 -1
  78. package/dist/framework/query.js +371 -102
  79. package/dist/framework/query.js.map +1 -1
  80. package/dist/framework/stop-decision.d.ts +56 -0
  81. package/dist/framework/stop-decision.d.ts.map +1 -0
  82. package/dist/framework/stop-decision.js +36 -0
  83. package/dist/framework/stop-decision.js.map +1 -0
  84. package/dist/framework/store.d.ts +4 -2
  85. package/dist/framework/store.d.ts.map +1 -1
  86. package/dist/framework/store.js +1 -0
  87. package/dist/framework/store.js.map +1 -1
  88. package/dist/framework/tool-call-orchestrator.d.ts +80 -0
  89. package/dist/framework/tool-call-orchestrator.d.ts.map +1 -0
  90. package/dist/framework/tool-call-orchestrator.js +192 -0
  91. package/dist/framework/tool-call-orchestrator.js.map +1 -0
  92. package/dist/framework/tool-state.d.ts +12 -11
  93. package/dist/framework/tool-state.d.ts.map +1 -1
  94. package/dist/framework/tool-state.js +36 -28
  95. package/dist/framework/tool-state.js.map +1 -1
  96. package/dist/framework/tool.d.ts +0 -9
  97. package/dist/framework/tool.d.ts.map +1 -1
  98. package/dist/framework/tool.js.map +1 -1
  99. package/dist/harness/assembler.d.ts.map +1 -1
  100. package/dist/harness/assembler.js +77 -19
  101. package/dist/harness/assembler.js.map +1 -1
  102. package/dist/harness/capability-profile.d.ts +3 -0
  103. package/dist/harness/capability-profile.d.ts.map +1 -0
  104. package/dist/harness/capability-profile.js +44 -0
  105. package/dist/harness/capability-profile.js.map +1 -0
  106. package/dist/harness/capsule.d.ts.map +1 -1
  107. package/dist/harness/capsule.js +22 -3
  108. package/dist/harness/capsule.js.map +1 -1
  109. package/dist/harness/compact-benchmark-corpus.d.ts +10 -0
  110. package/dist/harness/compact-benchmark-corpus.d.ts.map +1 -0
  111. package/dist/harness/compact-benchmark-corpus.js +56 -0
  112. package/dist/harness/compact-benchmark-corpus.js.map +1 -0
  113. package/dist/harness/context-harness.d.ts +23 -3
  114. package/dist/harness/context-harness.d.ts.map +1 -1
  115. package/dist/harness/context-harness.js +183 -11
  116. package/dist/harness/context-harness.js.map +1 -1
  117. package/dist/harness/contract.d.ts.map +1 -1
  118. package/dist/harness/contract.js +106 -11
  119. package/dist/harness/contract.js.map +1 -1
  120. package/dist/harness/drift-guard.d.ts +2 -1
  121. package/dist/harness/drift-guard.d.ts.map +1 -1
  122. package/dist/harness/drift-guard.js +315 -20
  123. package/dist/harness/drift-guard.js.map +1 -1
  124. package/dist/harness/evidence.d.ts.map +1 -1
  125. package/dist/harness/evidence.js +25 -12
  126. package/dist/harness/evidence.js.map +1 -1
  127. package/dist/harness/index.d.ts +7 -2
  128. package/dist/harness/index.d.ts.map +1 -1
  129. package/dist/harness/index.js +19 -1
  130. package/dist/harness/index.js.map +1 -1
  131. package/dist/harness/ledger.d.ts.map +1 -1
  132. package/dist/harness/ledger.js +44 -14
  133. package/dist/harness/ledger.js.map +1 -1
  134. package/dist/harness/progress-controller.d.ts +14 -0
  135. package/dist/harness/progress-controller.d.ts.map +1 -0
  136. package/dist/harness/progress-controller.js +110 -0
  137. package/dist/harness/progress-controller.js.map +1 -0
  138. package/dist/harness/state.d.ts.map +1 -1
  139. package/dist/harness/state.js +5 -2
  140. package/dist/harness/state.js.map +1 -1
  141. package/dist/harness/stop-controller.d.ts +15 -0
  142. package/dist/harness/stop-controller.d.ts.map +1 -0
  143. package/dist/harness/stop-controller.js +87 -0
  144. package/dist/harness/stop-controller.js.map +1 -0
  145. package/dist/harness/types.d.ts +137 -0
  146. package/dist/harness/types.d.ts.map +1 -1
  147. package/dist/harness/verification.d.ts +7 -0
  148. package/dist/harness/verification.d.ts.map +1 -0
  149. package/dist/harness/verification.js +122 -0
  150. package/dist/harness/verification.js.map +1 -0
  151. package/dist/index.d.ts +70 -26
  152. package/dist/index.d.ts.map +1 -1
  153. package/dist/index.js +64 -59
  154. package/dist/index.js.map +1 -1
  155. package/dist/memory/index.d.ts +1 -0
  156. package/dist/memory/index.d.ts.map +1 -1
  157. package/dist/memory/index.js +1 -0
  158. package/dist/memory/index.js.map +1 -1
  159. package/dist/memory/prompt-context.d.ts +42 -0
  160. package/dist/memory/prompt-context.d.ts.map +1 -0
  161. package/dist/memory/prompt-context.js +129 -0
  162. package/dist/memory/prompt-context.js.map +1 -0
  163. package/dist/print-ui/launch.d.ts.map +1 -1
  164. package/dist/print-ui/launch.js +9 -2
  165. package/dist/print-ui/launch.js.map +1 -1
  166. package/dist/product/paths.d.ts +7 -0
  167. package/dist/product/paths.d.ts.map +1 -1
  168. package/dist/product/paths.js +19 -0
  169. package/dist/product/paths.js.map +1 -1
  170. package/dist/runtime/agent-loop.d.ts +78 -0
  171. package/dist/runtime/agent-loop.d.ts.map +1 -0
  172. package/dist/runtime/agent-loop.js +418 -0
  173. package/dist/runtime/agent-loop.js.map +1 -0
  174. package/dist/runtime/agent-runtime-controller.d.ts +10 -57
  175. package/dist/runtime/agent-runtime-controller.d.ts.map +1 -1
  176. package/dist/runtime/agent-runtime-controller.js +265 -1215
  177. package/dist/runtime/agent-runtime-controller.js.map +1 -1
  178. package/dist/runtime/agent-runtime-protocol.d.ts +4 -5
  179. package/dist/runtime/agent-runtime-protocol.d.ts.map +1 -1
  180. package/dist/runtime/agent-runtime-protocol.js.map +1 -1
  181. package/dist/runtime/agent-runtime-runner.d.ts +34 -0
  182. package/dist/runtime/agent-runtime-runner.d.ts.map +1 -0
  183. package/dist/runtime/agent-runtime-runner.js +3 -0
  184. package/dist/runtime/agent-runtime-runner.js.map +1 -0
  185. package/dist/runtime/batch-read-service.d.ts +29 -0
  186. package/dist/runtime/batch-read-service.d.ts.map +1 -0
  187. package/dist/runtime/batch-read-service.js +212 -0
  188. package/dist/runtime/batch-read-service.js.map +1 -0
  189. package/dist/runtime/builtin-tool-provider.d.ts +30 -0
  190. package/dist/runtime/builtin-tool-provider.d.ts.map +1 -0
  191. package/dist/runtime/builtin-tool-provider.js +233 -0
  192. package/dist/runtime/builtin-tool-provider.js.map +1 -0
  193. package/dist/runtime/capabilities/compiler.d.ts +11 -0
  194. package/dist/runtime/capabilities/compiler.d.ts.map +1 -0
  195. package/dist/runtime/capabilities/compiler.js +719 -0
  196. package/dist/runtime/capabilities/compiler.js.map +1 -0
  197. package/dist/runtime/capabilities/index.d.ts +3 -0
  198. package/dist/runtime/capabilities/index.d.ts.map +1 -0
  199. package/dist/runtime/capabilities/index.js +9 -0
  200. package/dist/runtime/capabilities/index.js.map +1 -0
  201. package/dist/runtime/capabilities/types.d.ts +175 -0
  202. package/dist/runtime/capabilities/types.d.ts.map +1 -0
  203. package/dist/runtime/capabilities/types.js +3 -0
  204. package/dist/runtime/capabilities/types.js.map +1 -0
  205. package/dist/runtime/capability-receipt-journal.d.ts +29 -0
  206. package/dist/runtime/capability-receipt-journal.d.ts.map +1 -0
  207. package/dist/runtime/capability-receipt-journal.js +264 -0
  208. package/dist/runtime/capability-receipt-journal.js.map +1 -0
  209. package/dist/runtime/capability-step-factory.d.ts +73 -0
  210. package/dist/runtime/capability-step-factory.d.ts.map +1 -0
  211. package/dist/runtime/capability-step-factory.js +302 -0
  212. package/dist/runtime/capability-step-factory.js.map +1 -0
  213. package/dist/runtime/compact-transaction.d.ts +225 -0
  214. package/dist/runtime/compact-transaction.d.ts.map +1 -0
  215. package/dist/runtime/compact-transaction.js +622 -0
  216. package/dist/runtime/compact-transaction.js.map +1 -0
  217. package/dist/runtime/composer/buffer.d.ts +3 -4
  218. package/dist/runtime/composer/buffer.d.ts.map +1 -1
  219. package/dist/runtime/composer/buffer.js +3 -4
  220. package/dist/runtime/composer/buffer.js.map +1 -1
  221. package/dist/runtime/composer/grapheme.d.ts +2 -4
  222. package/dist/runtime/composer/grapheme.d.ts.map +1 -1
  223. package/dist/runtime/composer/grapheme.js +2 -4
  224. package/dist/runtime/composer/grapheme.js.map +1 -1
  225. package/dist/runtime/composer/layout.d.ts +1 -3
  226. package/dist/runtime/composer/layout.d.ts.map +1 -1
  227. package/dist/runtime/composer/layout.js +1 -3
  228. package/dist/runtime/composer/layout.js.map +1 -1
  229. package/dist/runtime/core-tools/descriptors.d.ts +17 -0
  230. package/dist/runtime/core-tools/descriptors.d.ts.map +1 -0
  231. package/dist/runtime/core-tools/descriptors.js +185 -0
  232. package/dist/runtime/core-tools/descriptors.js.map +1 -0
  233. package/dist/runtime/first-party-core-provider.d.ts +55 -0
  234. package/dist/runtime/first-party-core-provider.d.ts.map +1 -0
  235. package/dist/runtime/first-party-core-provider.js +197 -0
  236. package/dist/runtime/first-party-core-provider.js.map +1 -0
  237. package/dist/runtime/first-party-long-tail-provider.d.ts +57 -0
  238. package/dist/runtime/first-party-long-tail-provider.d.ts.map +1 -0
  239. package/dist/runtime/first-party-long-tail-provider.js +238 -0
  240. package/dist/runtime/first-party-long-tail-provider.js.map +1 -0
  241. package/dist/runtime/first-party-tool-services.d.ts +43 -0
  242. package/dist/runtime/first-party-tool-services.d.ts.map +1 -0
  243. package/dist/runtime/first-party-tool-services.js +200 -0
  244. package/dist/runtime/first-party-tool-services.js.map +1 -0
  245. package/dist/runtime/first-party-tool-universe.d.ts +14 -0
  246. package/dist/runtime/first-party-tool-universe.d.ts.map +1 -0
  247. package/dist/runtime/first-party-tool-universe.js +20 -0
  248. package/dist/runtime/first-party-tool-universe.js.map +1 -0
  249. package/dist/runtime/goal-lifecycle-v2.d.ts +63 -0
  250. package/dist/runtime/goal-lifecycle-v2.d.ts.map +1 -0
  251. package/dist/runtime/goal-lifecycle-v2.js +253 -0
  252. package/dist/runtime/goal-lifecycle-v2.js.map +1 -0
  253. package/dist/runtime/goal-runtime-coordinator.d.ts +105 -0
  254. package/dist/runtime/goal-runtime-coordinator.d.ts.map +1 -0
  255. package/dist/runtime/goal-runtime-coordinator.js +506 -0
  256. package/dist/runtime/goal-runtime-coordinator.js.map +1 -0
  257. package/dist/runtime/goals/types.d.ts +0 -1
  258. package/dist/runtime/goals/types.d.ts.map +1 -1
  259. package/dist/runtime/goals/types.js +0 -1
  260. package/dist/runtime/goals/types.js.map +1 -1
  261. package/dist/runtime/harness-confluence.d.ts +165 -0
  262. package/dist/runtime/harness-confluence.d.ts.map +1 -0
  263. package/dist/runtime/harness-confluence.js +807 -0
  264. package/dist/runtime/harness-confluence.js.map +1 -0
  265. package/dist/runtime/harness-eval.d.ts +96 -0
  266. package/dist/runtime/harness-eval.d.ts.map +1 -0
  267. package/dist/runtime/harness-eval.js +181 -0
  268. package/dist/runtime/harness-eval.js.map +1 -0
  269. package/dist/runtime/harness-metrics.d.ts +202 -0
  270. package/dist/runtime/harness-metrics.d.ts.map +1 -0
  271. package/dist/runtime/harness-metrics.js +415 -0
  272. package/dist/runtime/harness-metrics.js.map +1 -0
  273. package/dist/runtime/legacy-session-importer.d.ts +99 -0
  274. package/dist/runtime/legacy-session-importer.d.ts.map +1 -0
  275. package/dist/runtime/legacy-session-importer.js +455 -0
  276. package/dist/runtime/legacy-session-importer.js.map +1 -0
  277. package/dist/runtime/legacy-thread-materializer.d.ts +72 -0
  278. package/dist/runtime/legacy-thread-materializer.d.ts.map +1 -0
  279. package/dist/runtime/legacy-thread-materializer.js +553 -0
  280. package/dist/runtime/legacy-thread-materializer.js.map +1 -0
  281. package/dist/runtime/long-tail-tools/descriptors.d.ts +23 -0
  282. package/dist/runtime/long-tail-tools/descriptors.d.ts.map +1 -0
  283. package/dist/runtime/long-tail-tools/descriptors.js +423 -0
  284. package/dist/runtime/long-tail-tools/descriptors.js.map +1 -0
  285. package/dist/runtime/loop-budget.d.ts +1 -1
  286. package/dist/runtime/loop-budget.d.ts.map +1 -1
  287. package/dist/runtime/loop-budget.js +2 -2
  288. package/dist/runtime/loop-budget.js.map +1 -1
  289. package/dist/runtime/mcp/first-party-mcp-adapter.d.ts +75 -0
  290. package/dist/runtime/mcp/first-party-mcp-adapter.d.ts.map +1 -0
  291. package/dist/runtime/mcp/first-party-mcp-adapter.js +484 -0
  292. package/dist/runtime/mcp/first-party-mcp-adapter.js.map +1 -0
  293. package/dist/runtime/mcp/first-party-mcp-config.d.ts +13 -0
  294. package/dist/runtime/mcp/first-party-mcp-config.d.ts.map +1 -0
  295. package/dist/runtime/mcp/first-party-mcp-config.js +139 -0
  296. package/dist/runtime/mcp/first-party-mcp-config.js.map +1 -0
  297. package/dist/runtime/mcp/index.d.ts +5 -0
  298. package/dist/runtime/mcp/index.d.ts.map +1 -0
  299. package/dist/{skills → runtime/mcp}/index.js +3 -9
  300. package/dist/runtime/mcp/index.js.map +1 -0
  301. package/dist/runtime/mcp/lazy-mcp-runtime.d.ts +95 -0
  302. package/dist/runtime/mcp/lazy-mcp-runtime.d.ts.map +1 -0
  303. package/dist/runtime/mcp/lazy-mcp-runtime.js +854 -0
  304. package/dist/runtime/mcp/lazy-mcp-runtime.js.map +1 -0
  305. package/dist/runtime/mcp/types.d.ts +128 -0
  306. package/dist/runtime/mcp/types.d.ts.map +1 -0
  307. package/dist/runtime/mcp/types.js +5 -0
  308. package/dist/runtime/mcp/types.js.map +1 -0
  309. package/dist/runtime/model-coordinator.d.ts +44 -1
  310. package/dist/runtime/model-coordinator.d.ts.map +1 -1
  311. package/dist/runtime/model-coordinator.js +161 -19
  312. package/dist/runtime/model-coordinator.js.map +1 -1
  313. package/dist/runtime/orion-runtime-v1.d.ts +321 -0
  314. package/dist/runtime/orion-runtime-v1.d.ts.map +1 -0
  315. package/dist/runtime/orion-runtime-v1.js +958 -0
  316. package/dist/runtime/orion-runtime-v1.js.map +1 -0
  317. package/dist/runtime/orion-session-runner.d.ts +37 -0
  318. package/dist/runtime/orion-session-runner.d.ts.map +1 -0
  319. package/dist/runtime/orion-session-runner.js +146 -0
  320. package/dist/runtime/orion-session-runner.js.map +1 -0
  321. package/dist/runtime/product-orion-runtime.d.ts +35 -0
  322. package/dist/runtime/product-orion-runtime.d.ts.map +1 -0
  323. package/dist/runtime/product-orion-runtime.js +1019 -0
  324. package/dist/runtime/product-orion-runtime.js.map +1 -0
  325. package/dist/runtime/prompts/index.d.ts +3 -0
  326. package/dist/runtime/prompts/index.d.ts.map +1 -0
  327. package/dist/{ink-ui/types.js → runtime/prompts/index.js} +3 -2
  328. package/dist/runtime/prompts/index.js.map +1 -0
  329. package/dist/runtime/prompts/prompt-registry.d.ts +22 -0
  330. package/dist/runtime/prompts/prompt-registry.d.ts.map +1 -0
  331. package/dist/runtime/prompts/prompt-registry.js +356 -0
  332. package/dist/runtime/prompts/prompt-registry.js.map +1 -0
  333. package/dist/runtime/prompts/types.d.ts +111 -0
  334. package/dist/runtime/prompts/types.d.ts.map +1 -0
  335. package/dist/runtime/prompts/types.js +5 -0
  336. package/dist/runtime/prompts/types.js.map +1 -0
  337. package/dist/runtime/protocol/canonical.d.ts +3 -0
  338. package/dist/runtime/protocol/canonical.d.ts.map +1 -0
  339. package/dist/runtime/protocol/canonical.js +21 -0
  340. package/dist/runtime/protocol/canonical.js.map +1 -0
  341. package/dist/runtime/protocol/index.d.ts +4 -0
  342. package/dist/runtime/protocol/index.d.ts.map +1 -0
  343. package/dist/runtime/protocol/index.js +16 -0
  344. package/dist/runtime/protocol/index.js.map +1 -0
  345. package/dist/runtime/protocol/runtime-protocol-v1.d.ts +671 -0
  346. package/dist/runtime/protocol/runtime-protocol-v1.d.ts.map +1 -0
  347. package/dist/runtime/protocol/runtime-protocol-v1.js +557 -0
  348. package/dist/runtime/protocol/runtime-protocol-v1.js.map +1 -0
  349. package/dist/runtime/release-receipts.d.ts +109 -0
  350. package/dist/runtime/release-receipts.d.ts.map +1 -0
  351. package/dist/runtime/release-receipts.js +304 -0
  352. package/dist/runtime/release-receipts.js.map +1 -0
  353. package/dist/runtime/resource-scope.d.ts +123 -0
  354. package/dist/runtime/resource-scope.d.ts.map +1 -0
  355. package/dist/runtime/resource-scope.js +363 -0
  356. package/dist/runtime/resource-scope.js.map +1 -0
  357. package/dist/runtime/runtime-event-buffer.d.ts +78 -0
  358. package/dist/runtime/runtime-event-buffer.d.ts.map +1 -0
  359. package/dist/runtime/runtime-event-buffer.js +237 -0
  360. package/dist/runtime/runtime-event-buffer.js.map +1 -0
  361. package/dist/runtime/runtime-services.d.ts +87 -0
  362. package/dist/runtime/runtime-services.d.ts.map +1 -0
  363. package/dist/runtime/runtime-services.js +180 -0
  364. package/dist/runtime/runtime-services.js.map +1 -0
  365. package/dist/runtime/skills/bounded-lru-cache.d.ts +34 -0
  366. package/dist/runtime/skills/bounded-lru-cache.d.ts.map +1 -0
  367. package/dist/runtime/skills/bounded-lru-cache.js +100 -0
  368. package/dist/runtime/skills/bounded-lru-cache.js.map +1 -0
  369. package/dist/runtime/skills/filesystem-skill-provider.d.ts +96 -0
  370. package/dist/runtime/skills/filesystem-skill-provider.d.ts.map +1 -0
  371. package/dist/runtime/skills/filesystem-skill-provider.js +829 -0
  372. package/dist/runtime/skills/filesystem-skill-provider.js.map +1 -0
  373. package/dist/runtime/skills/index.d.ts +5 -0
  374. package/dist/runtime/skills/index.d.ts.map +1 -0
  375. package/dist/{ink-ui/controllers/chat-controller.js → runtime/skills/index.js} +5 -2
  376. package/dist/runtime/skills/index.js.map +1 -0
  377. package/dist/runtime/skills/lazy-skill-runtime.d.ts +77 -0
  378. package/dist/runtime/skills/lazy-skill-runtime.d.ts.map +1 -0
  379. package/dist/runtime/skills/lazy-skill-runtime.js +673 -0
  380. package/dist/runtime/skills/lazy-skill-runtime.js.map +1 -0
  381. package/dist/runtime/skills/types.d.ts +137 -0
  382. package/dist/runtime/skills/types.d.ts.map +1 -0
  383. package/dist/runtime/skills/types.js +13 -0
  384. package/dist/runtime/skills/types.js.map +1 -0
  385. package/dist/runtime/step-snapshot.d.ts +183 -0
  386. package/dist/runtime/step-snapshot.d.ts.map +1 -0
  387. package/dist/runtime/step-snapshot.js +286 -0
  388. package/dist/runtime/step-snapshot.js.map +1 -0
  389. package/dist/runtime/subagent-thread-runtime.d.ts +239 -0
  390. package/dist/runtime/subagent-thread-runtime.d.ts.map +1 -0
  391. package/dist/runtime/subagent-thread-runtime.js +876 -0
  392. package/dist/runtime/subagent-thread-runtime.js.map +1 -0
  393. package/dist/runtime/subagents/index.d.ts +5 -2
  394. package/dist/runtime/subagents/index.d.ts.map +1 -1
  395. package/dist/runtime/subagents/index.js +10 -2
  396. package/dist/runtime/subagents/index.js.map +1 -1
  397. package/dist/runtime/subagents/parent-step-fork.d.ts +36 -0
  398. package/dist/runtime/subagents/parent-step-fork.d.ts.map +1 -0
  399. package/dist/runtime/subagents/parent-step-fork.js +83 -0
  400. package/dist/runtime/subagents/parent-step-fork.js.map +1 -0
  401. package/dist/runtime/subagents/production.d.ts +65 -42
  402. package/dist/runtime/subagents/production.d.ts.map +1 -1
  403. package/dist/runtime/subagents/production.js +494 -151
  404. package/dist/runtime/subagents/production.js.map +1 -1
  405. package/dist/runtime/subagents/receipt-journal.d.ts +20 -0
  406. package/dist/runtime/subagents/receipt-journal.d.ts.map +1 -0
  407. package/dist/runtime/subagents/receipt-journal.js +74 -0
  408. package/dist/runtime/subagents/receipt-journal.js.map +1 -0
  409. package/dist/runtime/subagents/runner.d.ts +12 -1
  410. package/dist/runtime/subagents/runner.d.ts.map +1 -1
  411. package/dist/runtime/subagents/runner.js +62 -1
  412. package/dist/runtime/subagents/runner.js.map +1 -1
  413. package/dist/runtime/subagents/runtime-contract.d.ts +29 -0
  414. package/dist/runtime/subagents/runtime-contract.d.ts.map +1 -0
  415. package/dist/runtime/subagents/runtime-contract.js +3 -0
  416. package/dist/runtime/subagents/runtime-contract.js.map +1 -0
  417. package/dist/runtime/subagents/runtime-integration.d.ts +41 -56
  418. package/dist/runtime/subagents/runtime-integration.d.ts.map +1 -1
  419. package/dist/runtime/subagents/runtime-integration.js +34 -197
  420. package/dist/runtime/subagents/runtime-integration.js.map +1 -1
  421. package/dist/runtime/subagents/supervisor.d.ts +19 -7
  422. package/dist/runtime/subagents/supervisor.d.ts.map +1 -1
  423. package/dist/runtime/subagents/supervisor.js +88 -39
  424. package/dist/runtime/subagents/supervisor.js.map +1 -1
  425. package/dist/runtime/subagents/types.d.ts +5 -2
  426. package/dist/runtime/subagents/types.d.ts.map +1 -1
  427. package/dist/runtime/subagents/types.js +1 -1
  428. package/dist/runtime/subagents/types.js.map +1 -1
  429. package/dist/runtime/task-context-service.d.ts +91 -0
  430. package/dist/runtime/task-context-service.d.ts.map +1 -0
  431. package/dist/runtime/task-context-service.js +122 -0
  432. package/dist/runtime/task-context-service.js.map +1 -0
  433. package/dist/runtime/thread-admission.d.ts +130 -0
  434. package/dist/runtime/thread-admission.d.ts.map +1 -0
  435. package/dist/runtime/thread-admission.js +276 -0
  436. package/dist/runtime/thread-admission.js.map +1 -0
  437. package/dist/runtime/thread-compact-persistence.d.ts +50 -0
  438. package/dist/runtime/thread-compact-persistence.d.ts.map +1 -0
  439. package/dist/runtime/thread-compact-persistence.js +176 -0
  440. package/dist/runtime/thread-compact-persistence.js.map +1 -0
  441. package/dist/runtime/thread-event-store.d.ts +98 -0
  442. package/dist/runtime/thread-event-store.d.ts.map +1 -0
  443. package/dist/runtime/thread-event-store.js +737 -0
  444. package/dist/runtime/thread-event-store.js.map +1 -0
  445. package/dist/runtime/thread-projection.d.ts +91 -0
  446. package/dist/runtime/thread-projection.d.ts.map +1 -0
  447. package/dist/runtime/thread-projection.js +407 -0
  448. package/dist/runtime/thread-projection.js.map +1 -0
  449. package/dist/runtime/thread-runtime.d.ts +165 -0
  450. package/dist/runtime/thread-runtime.d.ts.map +1 -0
  451. package/dist/runtime/thread-runtime.js +704 -0
  452. package/dist/runtime/thread-runtime.js.map +1 -0
  453. package/dist/runtime/thread-tool-journal.d.ts +11 -0
  454. package/dist/runtime/thread-tool-journal.d.ts.map +1 -0
  455. package/dist/runtime/thread-tool-journal.js +131 -0
  456. package/dist/runtime/thread-tool-journal.js.map +1 -0
  457. package/dist/runtime/thread-ui-adapter.d.ts +85 -0
  458. package/dist/runtime/thread-ui-adapter.d.ts.map +1 -0
  459. package/dist/runtime/thread-ui-adapter.js +514 -0
  460. package/dist/runtime/thread-ui-adapter.js.map +1 -0
  461. package/dist/runtime/tool-gateway.d.ts +159 -0
  462. package/dist/runtime/tool-gateway.d.ts.map +1 -0
  463. package/dist/runtime/tool-gateway.js +311 -0
  464. package/dist/runtime/tool-gateway.js.map +1 -0
  465. package/dist/runtime/turn-commit.d.ts +103 -0
  466. package/dist/runtime/turn-commit.d.ts.map +1 -0
  467. package/dist/runtime/turn-commit.js +321 -0
  468. package/dist/runtime/turn-commit.js.map +1 -0
  469. package/dist/runtime/ui-events.d.ts +15 -5
  470. package/dist/runtime/ui-events.d.ts.map +1 -1
  471. package/dist/runtime/ui-events.js +0 -1
  472. package/dist/runtime/ui-events.js.map +1 -1
  473. package/dist/runtime/ui-view-model.d.ts +1 -1
  474. package/dist/runtime/ui-view-model.d.ts.map +1 -1
  475. package/dist/runtime/ui-view-model.js +3 -5
  476. package/dist/runtime/ui-view-model.js.map +1 -1
  477. package/dist/services/compact/auto-compact.d.ts +82 -2
  478. package/dist/services/compact/auto-compact.d.ts.map +1 -1
  479. package/dist/services/compact/auto-compact.js +226 -44
  480. package/dist/services/compact/auto-compact.js.map +1 -1
  481. package/dist/services/compact/compact.d.ts +54 -37
  482. package/dist/services/compact/compact.d.ts.map +1 -1
  483. package/dist/services/compact/compact.js +512 -127
  484. package/dist/services/compact/compact.js.map +1 -1
  485. package/dist/services/compact/coordinator.d.ts +5 -1
  486. package/dist/services/compact/coordinator.d.ts.map +1 -1
  487. package/dist/services/compact/coordinator.js +10 -1
  488. package/dist/services/compact/coordinator.js.map +1 -1
  489. package/dist/services/compact/fingerprint.d.ts +27 -0
  490. package/dist/services/compact/fingerprint.d.ts.map +1 -0
  491. package/dist/services/compact/fingerprint.js +69 -0
  492. package/dist/services/compact/fingerprint.js.map +1 -0
  493. package/dist/services/compact/index.d.ts +7 -5
  494. package/dist/services/compact/index.d.ts.map +1 -1
  495. package/dist/services/compact/index.js +19 -6
  496. package/dist/services/compact/index.js.map +1 -1
  497. package/dist/services/compact/planner.d.ts +41 -0
  498. package/dist/services/compact/planner.d.ts.map +1 -0
  499. package/dist/services/compact/planner.js +102 -0
  500. package/dist/services/compact/planner.js.map +1 -0
  501. package/dist/services/compact/semantic-summary.d.ts +93 -0
  502. package/dist/services/compact/semantic-summary.d.ts.map +1 -0
  503. package/dist/services/compact/semantic-summary.js +158 -0
  504. package/dist/services/compact/semantic-summary.js.map +1 -0
  505. package/dist/services/compact/summary-generator.d.ts +23 -0
  506. package/dist/services/compact/summary-generator.d.ts.map +1 -1
  507. package/dist/services/compact/summary-generator.js +173 -39
  508. package/dist/services/compact/summary-generator.js.map +1 -1
  509. package/dist/services/config-dir.d.ts +1 -1
  510. package/dist/services/config-dir.d.ts.map +1 -1
  511. package/dist/services/config-dir.js +2 -1
  512. package/dist/services/config-dir.js.map +1 -1
  513. package/dist/services/config.d.ts +2 -16
  514. package/dist/services/config.d.ts.map +1 -1
  515. package/dist/services/config.js +2 -29
  516. package/dist/services/config.js.map +1 -1
  517. package/dist/services/doctor.d.ts +0 -2
  518. package/dist/services/doctor.d.ts.map +1 -1
  519. package/dist/services/doctor.js +39 -64
  520. package/dist/services/doctor.js.map +1 -1
  521. package/dist/services/file-context.d.ts.map +1 -1
  522. package/dist/services/file-context.js +29 -33
  523. package/dist/services/file-context.js.map +1 -1
  524. package/dist/services/global-config.d.ts +8 -2
  525. package/dist/services/global-config.d.ts.map +1 -1
  526. package/dist/services/global-config.js +8 -0
  527. package/dist/services/global-config.js.map +1 -1
  528. package/dist/services/llm.d.ts +3 -0
  529. package/dist/services/llm.d.ts.map +1 -1
  530. package/dist/services/llm.js +7 -0
  531. package/dist/services/llm.js.map +1 -1
  532. package/dist/services/project-instructions.d.ts.map +1 -1
  533. package/dist/services/project-instructions.js +10 -17
  534. package/dist/services/project-instructions.js.map +1 -1
  535. package/dist/services/safe-project-reader.d.ts +30 -0
  536. package/dist/services/safe-project-reader.d.ts.map +1 -0
  537. package/dist/services/safe-project-reader.js +141 -0
  538. package/dist/services/safe-project-reader.js.map +1 -0
  539. package/dist/services/session-storage.d.ts +134 -5
  540. package/dist/services/session-storage.d.ts.map +1 -1
  541. package/dist/services/session-storage.js +727 -57
  542. package/dist/services/session-storage.js.map +1 -1
  543. package/dist/services/usage-state.d.ts +7 -0
  544. package/dist/services/usage-state.d.ts.map +1 -1
  545. package/dist/services/usage-state.js +117 -16
  546. package/dist/services/usage-state.js.map +1 -1
  547. package/dist/skills/builtin/code-review/SKILL.md +51 -0
  548. package/dist/skills/builtin/security-check/SKILL.md +54 -0
  549. package/dist/skills/builtin/test-gen/SKILL.md +49 -0
  550. package/dist/terminal-ui/launch.d.ts +3 -1
  551. package/dist/terminal-ui/launch.d.ts.map +1 -1
  552. package/dist/terminal-ui/launch.js +19 -3
  553. package/dist/terminal-ui/launch.js.map +1 -1
  554. package/dist/tools/core/common.d.ts +34 -0
  555. package/dist/tools/core/common.d.ts.map +1 -0
  556. package/dist/tools/core/common.js +164 -0
  557. package/dist/tools/core/common.js.map +1 -0
  558. package/dist/tools/core/edit-file.d.ts +10 -0
  559. package/dist/tools/core/edit-file.d.ts.map +1 -0
  560. package/dist/tools/core/edit-file.js +301 -0
  561. package/dist/tools/core/edit-file.js.map +1 -0
  562. package/dist/tools/core/exec-command.d.ts +2 -0
  563. package/dist/tools/core/exec-command.d.ts.map +1 -0
  564. package/dist/tools/core/exec-command.js +347 -0
  565. package/dist/tools/core/exec-command.js.map +1 -0
  566. package/dist/tools/core/glob.d.ts +2 -0
  567. package/dist/tools/core/glob.d.ts.map +1 -0
  568. package/dist/tools/core/glob.js +133 -0
  569. package/dist/tools/core/glob.js.map +1 -0
  570. package/dist/tools/core/grep.d.ts +12 -0
  571. package/dist/tools/core/grep.d.ts.map +1 -0
  572. package/dist/tools/core/grep.js +223 -0
  573. package/dist/tools/core/grep.js.map +1 -0
  574. package/dist/tools/core/index.d.ts +15 -0
  575. package/dist/tools/core/index.d.ts.map +1 -0
  576. package/dist/tools/core/index.js +31 -0
  577. package/dist/tools/core/index.js.map +1 -0
  578. package/dist/tools/core/list-files.d.ts +2 -0
  579. package/dist/tools/core/list-files.d.ts.map +1 -0
  580. package/dist/tools/core/list-files.js +87 -0
  581. package/dist/tools/core/list-files.js.map +1 -0
  582. package/dist/tools/core/read-file.d.ts +2 -0
  583. package/dist/tools/core/read-file.d.ts.map +1 -0
  584. package/dist/tools/core/read-file.js +129 -0
  585. package/dist/tools/core/read-file.js.map +1 -0
  586. package/dist/tools/core/write-file.d.ts +2 -0
  587. package/dist/tools/core/write-file.d.ts.map +1 -0
  588. package/dist/tools/core/write-file.js +65 -0
  589. package/dist/tools/core/write-file.js.map +1 -0
  590. package/dist/tools/todo.d.ts +3 -4
  591. package/dist/tools/todo.d.ts.map +1 -1
  592. package/dist/tools/todo.js +80 -79
  593. package/dist/tools/todo.js.map +1 -1
  594. package/dist/tui-ui/chrome-view-model.js +1 -1
  595. package/dist/tui-ui/chrome-view-model.js.map +1 -1
  596. package/dist/tui-ui/layout.js +1 -1
  597. package/dist/tui-ui/layout.js.map +1 -1
  598. package/docs/migration/v0.1.9-to-v0.2.0.md +98 -0
  599. package/docs/orion.example.json +79 -0
  600. package/docs/plan/v0.2.0-dsh-harness-redesign-plan.md +1234 -0
  601. package/docs/plan/v0.2.0-release-checklist.md +91 -0
  602. package/docs/readme.md +27 -0
  603. package/npm-shrinkwrap.json +9 -438
  604. package/package.json +19 -11
  605. package/dist/agents/coder.d.ts +0 -12
  606. package/dist/agents/coder.d.ts.map +0 -1
  607. package/dist/agents/coder.js +0 -48
  608. package/dist/agents/coder.js.map +0 -1
  609. package/dist/agents/coordinator.d.ts +0 -86
  610. package/dist/agents/coordinator.d.ts.map +0 -1
  611. package/dist/agents/coordinator.js +0 -251
  612. package/dist/agents/coordinator.js.map +0 -1
  613. package/dist/agents/fork.d.ts +0 -69
  614. package/dist/agents/fork.d.ts.map +0 -1
  615. package/dist/agents/fork.js +0 -164
  616. package/dist/agents/fork.js.map +0 -1
  617. package/dist/agents/leader.d.ts +0 -12
  618. package/dist/agents/leader.d.ts.map +0 -1
  619. package/dist/agents/leader.js +0 -49
  620. package/dist/agents/leader.js.map +0 -1
  621. package/dist/agents/router.d.ts +0 -59
  622. package/dist/agents/router.d.ts.map +0 -1
  623. package/dist/agents/router.js +0 -193
  624. package/dist/agents/router.js.map +0 -1
  625. package/dist/agents/worker-pool.d.ts +0 -72
  626. package/dist/agents/worker-pool.d.ts.map +0 -1
  627. package/dist/agents/worker-pool.js +0 -224
  628. package/dist/agents/worker-pool.js.map +0 -1
  629. package/dist/commands/legacy-commands.d.ts +0 -4
  630. package/dist/commands/legacy-commands.d.ts.map +0 -1
  631. package/dist/commands/legacy-commands.js +0 -44
  632. package/dist/commands/legacy-commands.js.map +0 -1
  633. package/dist/core/agent.d.ts +0 -84
  634. package/dist/core/agent.d.ts.map +0 -1
  635. package/dist/core/agent.js +0 -58
  636. package/dist/core/agent.js.map +0 -1
  637. package/dist/core/brain.d.ts +0 -50
  638. package/dist/core/brain.d.ts.map +0 -1
  639. package/dist/core/brain.js +0 -95
  640. package/dist/core/brain.js.map +0 -1
  641. package/dist/framework/tool-scheduler.d.ts +0 -186
  642. package/dist/framework/tool-scheduler.d.ts.map +0 -1
  643. package/dist/framework/tool-scheduler.js +0 -558
  644. package/dist/framework/tool-scheduler.js.map +0 -1
  645. package/dist/harness/harness.d.ts +0 -58
  646. package/dist/harness/harness.d.ts.map +0 -1
  647. package/dist/harness/harness.js +0 -195
  648. package/dist/harness/harness.js.map +0 -1
  649. package/dist/harness/safety.d.ts +0 -101
  650. package/dist/harness/safety.d.ts.map +0 -1
  651. package/dist/harness/safety.js +0 -322
  652. package/dist/harness/safety.js.map +0 -1
  653. package/dist/init.d.ts +0 -108
  654. package/dist/init.d.ts.map +0 -1
  655. package/dist/init.js +0 -393
  656. package/dist/init.js.map +0 -1
  657. package/dist/ink-ui/App.d.ts +0 -9
  658. package/dist/ink-ui/App.d.ts.map +0 -1
  659. package/dist/ink-ui/App.js +0 -12
  660. package/dist/ink-ui/App.js.map +0 -1
  661. package/dist/ink-ui/components/Markdown.d.ts +0 -10
  662. package/dist/ink-ui/components/Markdown.d.ts.map +0 -1
  663. package/dist/ink-ui/components/Markdown.js +0 -210
  664. package/dist/ink-ui/components/Markdown.js.map +0 -1
  665. package/dist/ink-ui/components/NativeCursor.d.ts +0 -12
  666. package/dist/ink-ui/components/NativeCursor.d.ts.map +0 -1
  667. package/dist/ink-ui/components/NativeCursor.js +0 -35
  668. package/dist/ink-ui/components/NativeCursor.js.map +0 -1
  669. package/dist/ink-ui/components/PixelHorseBanner.d.ts +0 -8
  670. package/dist/ink-ui/components/PixelHorseBanner.d.ts.map +0 -1
  671. package/dist/ink-ui/components/PixelHorseBanner.js +0 -97
  672. package/dist/ink-ui/components/PixelHorseBanner.js.map +0 -1
  673. package/dist/ink-ui/components/PromptInput.d.ts +0 -13
  674. package/dist/ink-ui/components/PromptInput.d.ts.map +0 -1
  675. package/dist/ink-ui/components/PromptInput.js +0 -30
  676. package/dist/ink-ui/components/PromptInput.js.map +0 -1
  677. package/dist/ink-ui/components/RunningHorseIndicator.d.ts +0 -13
  678. package/dist/ink-ui/components/RunningHorseIndicator.d.ts.map +0 -1
  679. package/dist/ink-ui/components/RunningHorseIndicator.js +0 -53
  680. package/dist/ink-ui/components/RunningHorseIndicator.js.map +0 -1
  681. package/dist/ink-ui/components/SelectList.d.ts +0 -16
  682. package/dist/ink-ui/components/SelectList.d.ts.map +0 -1
  683. package/dist/ink-ui/components/SelectList.js +0 -60
  684. package/dist/ink-ui/components/SelectList.js.map +0 -1
  685. package/dist/ink-ui/components/StatusLine.d.ts +0 -11
  686. package/dist/ink-ui/components/StatusLine.d.ts.map +0 -1
  687. package/dist/ink-ui/components/StatusLine.js +0 -70
  688. package/dist/ink-ui/components/StatusLine.js.map +0 -1
  689. package/dist/ink-ui/components/ToolActivity.d.ts +0 -19
  690. package/dist/ink-ui/components/ToolActivity.d.ts.map +0 -1
  691. package/dist/ink-ui/components/ToolActivity.js +0 -134
  692. package/dist/ink-ui/components/ToolActivity.js.map +0 -1
  693. package/dist/ink-ui/components/Transcript.d.ts +0 -14
  694. package/dist/ink-ui/components/Transcript.d.ts.map +0 -1
  695. package/dist/ink-ui/components/Transcript.js +0 -66
  696. package/dist/ink-ui/components/Transcript.js.map +0 -1
  697. package/dist/ink-ui/controllers/chat-controller.d.ts +0 -2
  698. package/dist/ink-ui/controllers/chat-controller.d.ts.map +0 -1
  699. package/dist/ink-ui/controllers/chat-controller.js.map +0 -1
  700. package/dist/ink-ui/hooks/use-raw-input-bridge.d.ts +0 -6
  701. package/dist/ink-ui/hooks/use-raw-input-bridge.d.ts.map +0 -1
  702. package/dist/ink-ui/hooks/use-raw-input-bridge.js +0 -27
  703. package/dist/ink-ui/hooks/use-raw-input-bridge.js.map +0 -1
  704. package/dist/ink-ui/hooks/use-terminal-size.d.ts +0 -7
  705. package/dist/ink-ui/hooks/use-terminal-size.d.ts.map +0 -1
  706. package/dist/ink-ui/hooks/use-terminal-size.js +0 -34
  707. package/dist/ink-ui/hooks/use-terminal-size.js.map +0 -1
  708. package/dist/ink-ui/launch.d.ts +0 -9
  709. package/dist/ink-ui/launch.d.ts.map +0 -1
  710. package/dist/ink-ui/launch.js +0 -101
  711. package/dist/ink-ui/launch.js.map +0 -1
  712. package/dist/ink-ui/runtime/grapheme.d.ts +0 -10
  713. package/dist/ink-ui/runtime/grapheme.d.ts.map +0 -1
  714. package/dist/ink-ui/runtime/grapheme.js +0 -17
  715. package/dist/ink-ui/runtime/grapheme.js.map +0 -1
  716. package/dist/ink-ui/runtime/input-buffer.d.ts +0 -10
  717. package/dist/ink-ui/runtime/input-buffer.d.ts.map +0 -1
  718. package/dist/ink-ui/runtime/input-buffer.js +0 -18
  719. package/dist/ink-ui/runtime/input-buffer.js.map +0 -1
  720. package/dist/ink-ui/runtime/layout-budget.d.ts +0 -13
  721. package/dist/ink-ui/runtime/layout-budget.d.ts.map +0 -1
  722. package/dist/ink-ui/runtime/layout-budget.js +0 -25
  723. package/dist/ink-ui/runtime/layout-budget.js.map +0 -1
  724. package/dist/ink-ui/runtime/native-cursor.d.ts +0 -62
  725. package/dist/ink-ui/runtime/native-cursor.d.ts.map +0 -1
  726. package/dist/ink-ui/runtime/native-cursor.js +0 -398
  727. package/dist/ink-ui/runtime/native-cursor.js.map +0 -1
  728. package/dist/ink-ui/runtime/prompt-layout.d.ts +0 -10
  729. package/dist/ink-ui/runtime/prompt-layout.d.ts.map +0 -1
  730. package/dist/ink-ui/runtime/prompt-layout.js +0 -21
  731. package/dist/ink-ui/runtime/prompt-layout.js.map +0 -1
  732. package/dist/ink-ui/runtime/raw-input.d.ts +0 -4
  733. package/dist/ink-ui/runtime/raw-input.d.ts.map +0 -1
  734. package/dist/ink-ui/runtime/raw-input.js +0 -15
  735. package/dist/ink-ui/runtime/raw-input.js.map +0 -1
  736. package/dist/ink-ui/runtime/transcript-state.d.ts +0 -37
  737. package/dist/ink-ui/runtime/transcript-state.d.ts.map +0 -1
  738. package/dist/ink-ui/runtime/transcript-state.js +0 -91
  739. package/dist/ink-ui/runtime/transcript-state.js.map +0 -1
  740. package/dist/ink-ui/screens/ReplScreen.d.ts +0 -24
  741. package/dist/ink-ui/screens/ReplScreen.d.ts.map +0 -1
  742. package/dist/ink-ui/screens/ReplScreen.js +0 -756
  743. package/dist/ink-ui/screens/ReplScreen.js.map +0 -1
  744. package/dist/ink-ui/types.d.ts +0 -2
  745. package/dist/ink-ui/types.d.ts.map +0 -1
  746. package/dist/ink-ui/types.js.map +0 -1
  747. package/dist/runtime/chat-checkpoint.d.ts +0 -17
  748. package/dist/runtime/chat-checkpoint.d.ts.map +0 -1
  749. package/dist/runtime/chat-checkpoint.js +0 -105
  750. package/dist/runtime/chat-checkpoint.js.map +0 -1
  751. package/dist/runtime/chat-command-scope.d.ts +0 -5
  752. package/dist/runtime/chat-command-scope.d.ts.map +0 -1
  753. package/dist/runtime/chat-command-scope.js +0 -22
  754. package/dist/runtime/chat-command-scope.js.map +0 -1
  755. package/dist/runtime/chat-controller.d.ts +0 -62
  756. package/dist/runtime/chat-controller.d.ts.map +0 -1
  757. package/dist/runtime/chat-controller.js +0 -1630
  758. package/dist/runtime/chat-controller.js.map +0 -1
  759. package/dist/runtime/chat-effort.d.ts +0 -5
  760. package/dist/runtime/chat-effort.d.ts.map +0 -1
  761. package/dist/runtime/chat-effort.js +0 -47
  762. package/dist/runtime/chat-effort.js.map +0 -1
  763. package/dist/runtime/chat-presentation.d.ts +0 -63
  764. package/dist/runtime/chat-presentation.d.ts.map +0 -1
  765. package/dist/runtime/chat-presentation.js +0 -561
  766. package/dist/runtime/chat-presentation.js.map +0 -1
  767. package/dist/runtime/chat-trace.d.ts +0 -52
  768. package/dist/runtime/chat-trace.d.ts.map +0 -1
  769. package/dist/runtime/chat-trace.js +0 -234
  770. package/dist/runtime/chat-trace.js.map +0 -1
  771. package/dist/runtime/chat-workspace.d.ts +0 -22
  772. package/dist/runtime/chat-workspace.d.ts.map +0 -1
  773. package/dist/runtime/chat-workspace.js +0 -154
  774. package/dist/runtime/chat-workspace.js.map +0 -1
  775. package/dist/runtime/goals/accounting.d.ts +0 -45
  776. package/dist/runtime/goals/accounting.d.ts.map +0 -1
  777. package/dist/runtime/goals/accounting.js +0 -114
  778. package/dist/runtime/goals/accounting.js.map +0 -1
  779. package/dist/runtime/goals/coordinator.d.ts +0 -89
  780. package/dist/runtime/goals/coordinator.d.ts.map +0 -1
  781. package/dist/runtime/goals/coordinator.js +0 -1481
  782. package/dist/runtime/goals/coordinator.js.map +0 -1
  783. package/dist/runtime/goals/lifecycle.d.ts +0 -13
  784. package/dist/runtime/goals/lifecycle.d.ts.map +0 -1
  785. package/dist/runtime/goals/lifecycle.js +0 -46
  786. package/dist/runtime/goals/lifecycle.js.map +0 -1
  787. package/dist/runtime/goals/prompt.d.ts +0 -16
  788. package/dist/runtime/goals/prompt.d.ts.map +0 -1
  789. package/dist/runtime/goals/prompt.js +0 -88
  790. package/dist/runtime/goals/prompt.js.map +0 -1
  791. package/dist/runtime/goals/tools.d.ts +0 -61
  792. package/dist/runtime/goals/tools.d.ts.map +0 -1
  793. package/dist/runtime/goals/tools.js +0 -568
  794. package/dist/runtime/goals/tools.js.map +0 -1
  795. package/dist/sdk/index.d.ts +0 -10
  796. package/dist/sdk/index.d.ts.map +0 -1
  797. package/dist/sdk/index.js +0 -23
  798. package/dist/sdk/index.js.map +0 -1
  799. package/dist/sdk/init.d.ts +0 -24
  800. package/dist/sdk/init.d.ts.map +0 -1
  801. package/dist/sdk/init.js +0 -48
  802. package/dist/sdk/init.js.map +0 -1
  803. package/dist/sdk/query.d.ts +0 -19
  804. package/dist/sdk/query.d.ts.map +0 -1
  805. package/dist/sdk/query.js +0 -42
  806. package/dist/sdk/query.js.map +0 -1
  807. package/dist/sdk/sessions.d.ts +0 -19
  808. package/dist/sdk/sessions.d.ts.map +0 -1
  809. package/dist/sdk/sessions.js +0 -57
  810. package/dist/sdk/sessions.js.map +0 -1
  811. package/dist/sdk/types.d.ts +0 -47
  812. package/dist/sdk/types.d.ts.map +0 -1
  813. package/dist/sdk/types.js +0 -8
  814. package/dist/sdk/types.js.map +0 -1
  815. package/dist/services/agent-runner.d.ts +0 -71
  816. package/dist/services/agent-runner.d.ts.map +0 -1
  817. package/dist/services/agent-runner.js +0 -185
  818. package/dist/services/agent-runner.js.map +0 -1
  819. package/dist/services/compact/micro-compact.d.ts +0 -21
  820. package/dist/services/compact/micro-compact.d.ts.map +0 -1
  821. package/dist/services/compact/micro-compact.js +0 -99
  822. package/dist/services/compact/micro-compact.js.map +0 -1
  823. package/dist/services/task-manager.d.ts +0 -161
  824. package/dist/services/task-manager.d.ts.map +0 -1
  825. package/dist/services/task-manager.js +0 -315
  826. package/dist/services/task-manager.js.map +0 -1
  827. package/dist/skills/discovery.d.ts +0 -22
  828. package/dist/skills/discovery.d.ts.map +0 -1
  829. package/dist/skills/discovery.js +0 -75
  830. package/dist/skills/discovery.js.map +0 -1
  831. package/dist/skills/index.d.ts +0 -11
  832. package/dist/skills/index.d.ts.map +0 -1
  833. package/dist/skills/index.js.map +0 -1
  834. package/dist/skills/loader.d.ts +0 -53
  835. package/dist/skills/loader.d.ts.map +0 -1
  836. package/dist/skills/loader.js +0 -421
  837. package/dist/skills/loader.js.map +0 -1
  838. package/dist/skills/registry.d.ts +0 -41
  839. package/dist/skills/registry.d.ts.map +0 -1
  840. package/dist/skills/registry.js +0 -157
  841. package/dist/skills/registry.js.map +0 -1
  842. package/dist/skills/runtime.d.ts +0 -46
  843. package/dist/skills/runtime.d.ts.map +0 -1
  844. package/dist/skills/runtime.js +0 -364
  845. package/dist/skills/runtime.js.map +0 -1
  846. package/dist/skills/types.d.ts +0 -112
  847. package/dist/skills/types.d.ts.map +0 -1
  848. package/dist/skills/types.js +0 -24
  849. package/dist/skills/types.js.map +0 -1
  850. package/dist/tools/index.d.ts +0 -52
  851. package/dist/tools/index.d.ts.map +0 -1
  852. package/dist/tools/index.js +0 -2268
  853. package/dist/tools/index.js.map +0 -1
  854. package/dist/tools/mcp.d.ts +0 -99
  855. package/dist/tools/mcp.d.ts.map +0 -1
  856. package/dist/tools/mcp.js +0 -695
  857. package/dist/tools/mcp.js.map +0 -1
  858. package/dist/tools/plan.d.ts +0 -17
  859. package/dist/tools/plan.d.ts.map +0 -1
  860. package/dist/tools/plan.js +0 -84
  861. package/dist/tools/plan.js.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,495 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## Delivery status legend
9
+
10
+ This project distinguishes three delivery states. **Never present unreleased work as released.**
11
+
12
+ | State | Meaning | Criterion |
13
+ | ----------------- | -------------------------------------------- | ------------------------------------------ |
14
+ | **Published** | Tagged source is installable from npm | git tag exists **and** `npm publish` done |
15
+ | **npm-published** | Registry version exists without full release | exact npm version, but tag/release may lag |
16
+ | **Merged** | In the default branch, not yet installable | merged, **no** tag / not published |
17
+ | **Candidate** | Reviewable source, no release promise | committed PR branch or owned worktree |
18
+
19
+ Evidence labels follow `docs/archive/releases/v0.1.x/targets-v0.1.3-v0.1.3-2.md`:
20
+ `met` / `partial` / `unmet` / `not_run` — where `not_run` means "blocked by environment",
21
+ which is **not** a pass.
22
+
23
+ ## [Unreleased]
24
+
25
+ ## [0.2.0] — CANDIDATE
26
+
27
+ > **Status: candidate.** Implementation evidence does not imply a Git tag, GitHub Release, npm
28
+ > publication, or dist-tag promotion. Those receipts remain pending until performed and read back.
29
+
30
+ ### Added
31
+
32
+ - Add the versioned `Thread → Turn → Step → Item` runtime protocol, append-only Thread event store,
33
+ deterministic projection/replay, bounded renderer buffering, and typed admission for start, steer,
34
+ follow-up, interrupt, overload, and maintenance.
35
+ - Add immutable Step Snapshots and Capability Receipts binding model, prompt, Authority, Policy,
36
+ selected Skills/MCP, visible schemas, exact executors, and durable per-request lineage.
37
+ - Add a single ToolGateway execution boundary for core, long-tail, nested batch, MCP, Skill, and
38
+ subagent invocations through Capability → Policy → Approval → Sandbox → Execute.
39
+ - Add descriptor-first lazy Skill and MCP runtimes with scope layering, bounded caches, digest
40
+ invalidation, single-flight loading, exact server leases, idle teardown, and crash isolation.
41
+ - Add Prompt Registry budgets, stable prefix receipts, first-party contributor slots, redaction,
42
+ and deterministic omission reasons.
43
+ - Add transactional Compact maintenance, atomic TurnCommit, Goal Runtime V2, durable PlanReceipt,
44
+ modern child Thread runtime, and a side-by-side legacy Session materializer with atomic index
45
+ cutover.
46
+ - Add machine-readable Harness benchmark/eval, architecture confluence, exact tarball, Node 20/22/24
47
+ runtime matrix, gate evidence, and aggregate ReleaseReceipt contracts.
48
+
49
+ ### Changed
50
+
51
+ - Replace the legacy Brain/Agent/Harness/query runtime graph with one statically composed product
52
+ Runtime and one Agent Loop implementation for root and child turns.
53
+ - Reduce the ordinary coding schema from the frozen v0.1.9 baseline of 33 tools / 20,596 bytes to
54
+ 7 exact core schemas / 3,947 bytes; long-tail capabilities are selected or deferred by task.
55
+ - Make `/plan <task>` commit a PlanReceipt and exit automatically; implementation starts in a new
56
+ logical turn after BUILD/AUTO is restored.
57
+ - Let productive Goals continue without a fixed turn-count cap; evidence audit, resource budget,
58
+ no-progress, blocker, provider, persistence, interrupt, and completion decisions remain explicit.
59
+ - Keep BUILD/PLAN/AUTO as workflow modes independent from Authority and tool permission policy.
60
+
61
+ ### Removed
62
+
63
+ - Remove the Ink renderer, legacy Agent/Brain/Harness/SDK public surface, global `TOOLS` and eager MCP
64
+ singleton, compatibility command roots, and direct model→tool execution bypasses from the package.
65
+ - Remove `/target`, `/mode`, model-facing `enter_plan_mode`/`exit_plan_mode`, and legacy Goal mutations
66
+ `/goal exit|edit|replace|confirm|budget` plus `clear --yes`.
67
+
68
+ ### Security
69
+
70
+ - Freeze exact schema/executor/Authority/Policy bindings per model request and fail closed on digest
71
+ or catalog drift.
72
+ - Preserve project-boundary, symlink, sandbox, destructive-command, cancellation, durable receipt,
73
+ and indeterminate-side-effect enforcement across all modes and nested execution.
74
+
75
+ ## [0.1.9] — CANDIDATE
76
+
77
+ > **Status: candidate.** Source, CI, exact tarball, npm `next`, tag, GitHub Release, and stable
78
+ > `latest` are independent receipts. This section must be updated after each delivery action; it
79
+ > does not claim publication in advance.
80
+
81
+ ### Added
82
+
83
+ - Add a typed semantic Compact pipeline with atomic message groups, canonical fingerprints,
84
+ structured ContextItems, TaskContract/evidence/capability reinjection, bounded manual focus, and
85
+ deterministic fallback diagnostics.
86
+ - Add Compact Checkpoint V2 receipts with source/replacement hashes, target-headroom validation,
87
+ Harness/Goal bindings, transactional candidate installation, rollback, and V1 read compatibility.
88
+ - Add HarnessKernel TaskContract V3 criteria, evidence-to-criterion receipts, deterministic state,
89
+ Capability Profiles, ProgressDelta, and typed StopDecision projections.
90
+ - Add mature-agent Compact benchmark fixtures and lifecycle trace events for prepare, validate,
91
+ commit, rollback, and boundary transitions.
92
+ - Add bounded project-level `compactInstructions` for manual and automatic compaction; caller
93
+ guidance remains subordinate to protocol, safety, criteria, evidence, failures, and pending work.
94
+
95
+ ### Changed
96
+
97
+ - Replace Goal's fixed five-continuation stop with criterion/evidence completion, no-progress,
98
+ blocker, provider, explicit budget, and user-abort decisions. Resource circuit breakers remain
99
+ bounded and resumable.
100
+ - Bind subagent reservations to child query/provider accounting; keep deprecated turn fields only
101
+ as compatibility inputs rather than task-complete semantics.
102
+ - Load a bounded memory index at startup and retrieve relevant content per turn with an auditable,
103
+ body-free prompt manifest.
104
+ - Extend `/context explain` with section budgets, capability identity, output/safety reserves, and
105
+ the latest committed Compact receipt.
106
+
107
+ ### Fixed
108
+
109
+ - Serialize usage JSONL appends with an independent cross-process lock and replay-safe request IDs
110
+ (#206).
111
+ - Contain project context, project instructions, and explicit skill reads at a canonical project
112
+ boundary; project-provided `@file` content remains untrusted data (#207).
113
+ - Make smaller-context model switches run and commit a semantic preflight before changing the
114
+ active model.
115
+ - Reject stale Compact candidates when the transcript tail or active checkpoint changes between
116
+ prepare and commit, while preserving append-only session history.
117
+ - Stop treating request/tool budgets or an unsatisfied completion gate as successful task
118
+ completion; render resumable typed decisions consistently.
119
+
120
+ ### Security
121
+
122
+ - Reject symlink and non-regular project context paths, revalidate opened descriptors, and redact
123
+ boundary errors without exposing out-of-project file contents.
124
+
125
+ ## [0.1.8] — 2026-08-15
126
+
127
+ > **Status: published.** Tag `v0.1.8` identifies the source;
128
+ > `@orion-agents/orion-code@0.1.8` is published through the npm `next` dist-tag.
129
+ > Stable `latest` remains `0.1.4`; promotion is a separate decision.
130
+
131
+ ### Added
132
+
133
+ - Add schema-level and scheduler-level finite safe-integer validation for bounded tool inputs,
134
+ including `exec_command.timeout`, `exec_command.maxOutputBytes`, and `list_files.maxDepth` (#203).
135
+ - Add a renderer-neutral budget-stop view with usage, last completed work, and visible recovery
136
+ actions across TUI, terminal, print, JSON, and `/loop-stats` (#204).
137
+ - Add typed tool-authorization provenance and an explicit BUILD/PLAN/AUTO network-permission
138
+ architecture contract; AUTO stays prompt-free after hard policy and explicit deny checks (#175).
139
+ - Add repository-layout, cleanup-manifest, and per-issue verification ledgers for auditable release
140
+ ownership and recovery.
141
+
142
+ ### Changed
143
+
144
+ - Restrict the npm package to the single runtime icon and enforce packed size, unpacked size, entry
145
+ count, required files, and unexpected-path budgets during release checks.
146
+ - Move maintained scripts into `scripts/release`, `scripts/smoke`, and `scripts/maintenance`; archive
147
+ historical v0.1.x plans under `docs/archive/releases/v0.1.x`.
148
+ - Enforce renderer command scope before special command dispatch, integrating the behavior reviewed
149
+ in PR #201 for issue #179.
150
+ - Keep session transcript append metadata incremental and cover a 5,000-row history without a
151
+ full JSONL rescan (#172).
152
+
153
+ ### Fixed
154
+
155
+ - Publish file-lock owner metadata atomically and quarantine stale legacy zero-byte recovery
156
+ sentinels so an interrupted writer cannot permanently block `/resume`.
157
+ - Verify the existing security, persistence, TUI/performance, release/dependency, and Goal lifecycle
158
+ candidate fixes for issues #170–#200 with focused regression batches and real renderer smokes.
159
+ - Keep Goal completion evidence durable across failure, compact, restart, and resume, then
160
+ automatically leave Goal mode after a passing audit (#189).
161
+ - Update PTY harnesses to current provider profiles and durable trace/status assertions so the
162
+ release matrix exercises source code without deprecated configuration fallbacks.
163
+
164
+ ### Removed
165
+
166
+ - Remove 18 unreferenced tracked documentation images, 15 superseded `test-runtime` probes, the
167
+ unused `src/ink` helper, and the unreferenced `src/ui-v2` experiment after replacement mapping.
168
+
169
+ ## [0.1.7] — 2026-08-13
170
+
171
+ > **Status: published.** Tag `v0.1.7` and its GitHub prerelease identify the source;
172
+ > `@orion-agents/orion-code@0.1.7` is published through the npm `next` dist-tag.
173
+ > Stable `latest` remains `0.1.4`; promotion is a separate decision.
174
+
175
+ ### Added
176
+
177
+ - Add `/plan [task]` as the task-scoped, read-only planning entry with an automatically saved exit
178
+ transition and restoration of the previous interactive/auto mode.
179
+ - Add an original Orion Pixel terminal identity with a portable pixel mascot, semantic poses,
180
+ restrained motion, and safe classic/NO_COLOR/narrow-terminal fallbacks.
181
+ - Add persisted TUI themes, motion, mascot, status-line, and semantic keymap configuration plus
182
+ `/theme`, `/keymap`, `/statusline`, and `/queue` command surfaces.
183
+ - Add a bounded shared-runtime follow-up queue: Enter steers the active turn while Tab queues FIFO
184
+ work without interrupting it.
185
+
186
+ ### Changed
187
+
188
+ - Remove the `/mode` command and its `/perm` compatibility alias. Base modes now change only through
189
+ `Shift+Tab`; `/plan` remains the task entry and model-driven `enter_plan_mode` stays unavailable,
190
+ so Plan state has one lifecycle authority and completion never starts implementation in the same
191
+ turn.
192
+ - Replace renderer-local status strings with a typed Chrome projection for Goal, model, permission,
193
+ context, effort, queued follow-ups, and active work.
194
+ - Complete Ctrl+R history search, Ctrl+E external composition, empty Ctrl+D exit, and Esc-owned
195
+ interruption behavior while preserving native terminal scrollback.
196
+ - Show stable sequence numbers for active subtasks and keep critical Goal, evidence, research, and
197
+ permission state visible before lower-priority chrome.
198
+
199
+ ### Fixed
200
+
201
+ - Automatically exit Goal mode after a persisted passing completion audit, restore the underlying
202
+ BUILD/PLAN/AUTO mode, retain the completed Goal sidecar as an audit receipt, and reconcile the
203
+ narrow crash window where the terminal sidecar was saved before the session binding was cleared.
204
+ - Route explicit `exit goal mode` / `退出 goal 模式` intent through the same deterministic runtime
205
+ clear boundary as `/goal exit`, reject completion retries without new runtime evidence, and cap
206
+ each autonomous continuation below fresh-user loop budgets.
207
+ - Sanitize every dynamic startup-banner field, including 8-bit C1 CSI/OSC forms, before writing it
208
+ to the terminal (#164).
209
+ - Serialize global configuration read-modify-write transactions across processes and add an atomic
210
+ session catalog for indexed lookup and bounded listing (#157, #159, #163).
211
+ - Reject brace-quantified and overlapping-alternative ReDoS patterns, while distinguishing benign
212
+ command substitution from visible recursive deletion in permission policy; contain command cwd
213
+ inside the workspace across permission and execution paths (#160, #162, #169).
214
+ - Require explicit risk metadata on every built-in slash command, cover drift-guard prepare/execute
215
+ enforcement and session rename success/scoping, and make coverage a release gate (#158, #166,
216
+ #167, #168).
217
+ - Pin all third-party GitHub Actions in CI to immutable commit SHAs (#165).
218
+
219
+ ### Compatibility
220
+
221
+ - `/goal exit` remains the canonical slash command; explicit natural-language exit intent is routed
222
+ to the same operation. Removed `/goal clear --yes` and `/target clear --yes` syntax is still
223
+ rejected and is not restored as a compatibility alias.
224
+
225
+ ## [0.1.6] — 2026-08-12
226
+
227
+ > **Status: published.** Tag `v0.1.6` and its GitHub Release identify the source;
228
+ > `@orion-agents/orion-code@0.1.6` is published through the npm `next` dist-tag.
229
+ > Stable `latest` remains `0.1.4`; promotion is a separate decision.
230
+
231
+ ### Changed
232
+
233
+ - Require explicit user authorization before a model-created Goal can become active and bound
234
+ non-user continuation loops so a Goal cannot run indefinitely without returning control (#150).
235
+ - Replace destructive Goal clearing with `/goal exit`, which aborts the active turn, rejects any
236
+ pending permission request, and clears persisted Goal state. The old `/goal clear --yes` and
237
+ `/target clear --yes` forms are intentionally rejected rather than retained as aliases.
238
+ - Make the default dependency-health report reproducible without registry access; registry-backed
239
+ `npm audit` and `npm outdated` reports now require explicit `--full-network` (#155).
240
+
241
+ ### Fixed
242
+
243
+ - Preserve `vector.db` during brand migration when native SQLite verification is unavailable and
244
+ report the actionable ABI/rebuild cause instead of misclassifying it as corruption (#149).
245
+ - Remove real embedding-provider calls from vector tests, make source-only import tests independent
246
+ of prebuilt `dist/`, and select installed Node runtimes by numeric version (#140, #144, #146).
247
+ - Keep dependency policy mandatory in prepublish/release gates and synchronize release version
248
+ claims across README and release metadata (#129, #147).
249
+ - Anchor macOS seatbelt secret-file denies to the stable project root and make `exec_command`
250
+ permission prechecks use the same explicit command cwd as execution (#151, #153).
251
+ - Strip ANSI/OSC/C0/C1 control sequences from terminal-ui transcript and streamed assistant output
252
+ before it reaches the terminal writer (#154).
253
+ - Make memory drift validation perform a bounded project symbol scan, expose it through
254
+ `/memory validate`, and fail inconclusive scans closed instead of silently accepting them (#156).
255
+
256
+ ### Compatibility
257
+
258
+ - This pre-1.0 release contains an intentional command-line breaking change: scripts using
259
+ `/goal clear --yes` or `/target clear --yes` must migrate to `/goal exit`. Goal/session storage
260
+ remains additive and compatible; the removed command syntax is not supported as an alias.
261
+
262
+ ## [0.1.5] — 2026-08-11
263
+
264
+ > **Status: npm-published.** `@orion-agents/orion-code@0.1.5` is available through the npm
265
+ > `next` dist-tag. No `v0.1.5` Git tag or GitHub Release exists, and stable `latest` remains
266
+ > `0.1.4`; those delivery states are intentionally recorded separately.
267
+
268
+ ### Added
269
+
270
+ - Added a typed slash-command descriptor registry, exact invocation grammar, compatibility
271
+ lifecycle metadata, busy policies, and canonical `/goal`, `/session`, `/context`,
272
+ `/commit-plan`, `/rewind`, `/subagents`, and `/effort` control surfaces.
273
+ - Added provider-aware effort capability resolution, scoped persistence, immutable retry
274
+ snapshots, structured renderer events, and additive reasoning/effort usage ledger metadata.
275
+
276
+ ### Changed
277
+
278
+ - Split agent mode from tool permission policy and constrained the empty command palette to a
279
+ primary, searchable surface while retaining explicit advanced and compatibility commands.
280
+ - Made dependency, Jest-major, tag/changelog, and prepublish checks fail closed.
281
+ - Made the dependency policy reject runtimes outside the declared Node 20/22/24 matrix (#133).
282
+ - Added version-tag CI triggers, synchronized the Jest 29 lockfile, and moved the candidate
283
+ package/install metadata to `0.1.5` (#134, #135, #141).
284
+ - Made the dependency policy prove the installed OpenAI client on each CI runtime instead of
285
+ inferring Node support from an engine-string regex, and added a real sqlite-vec load/query
286
+ probe (#137, #142).
287
+
288
+ ### Fixed
289
+
290
+ - Canonicalized recursive `rm` targets before safety evaluation and routed batch confirmations
291
+ and local fast paths through the shared permission policy (#125, #126, #132).
292
+ - Repaired Goal completion audit persistence, entity decoding, confirmation fallback, and TUI
293
+ submission/projection behavior (#127).
294
+ - Classified every recursive `rm` flag form as destructive so broad tool rules cannot silently
295
+ approve shell deletion (#136).
296
+ - Made concurrent session registration reserve capacity atomically across processes,
297
+ with atomic heartbeats and serialized stale-lock recovery (#121).
298
+ - Serialized session transcript, metadata, statistics, summaries, and deletion updates under a
299
+ per-session cross-process lock so counters cannot lose concurrent writes (#138).
300
+ - Deferred native SQLite loading to semantic-storage boundaries and added actionable
301
+ ABI diagnostics for memory, maintenance, migration, and dependency checks (#111).
302
+ - Removed real Ollama/OpenAI calls from vector unit tests by using deterministic embedding
303
+ fixtures, eliminating timeout-driven release flakiness (#139, #140).
304
+
305
+ ## [0.1.4-2] — 2026-08-09
306
+
307
+ > **Status: published.** Tag `v0.1.4-2` exists and the package is on npm
308
+ > (`@orion-agents/orion-code@0.1.4-2`, `next` dist-tag). Stable `latest` remains `0.1.4`.
309
+
310
+ ### Changed
311
+
312
+ - Split the slash-command registry and chat runtime into bounded modules, removed
313
+ deprecated OpenHorse type aliases, and made strict lint rules fail the build.
314
+ - Upgraded the OpenAI SDK to the Node-20-compatible 6.x line, removed unused runtime
315
+ dependencies, and added automated dependency policy/update checks.
316
+ - Added structured diagnostics, provider recovery metrics, runtime-matrix CI, and
317
+ real PTY research lifecycle coverage.
318
+
319
+ ### Fixed
320
+
321
+ - Closed persistence races, checkpoint corruption/rollback gaps, task-capacity and
322
+ response-parsing bugs, tool-call group corruption, context compaction errors, and
323
+ provider retry/stream recovery inconsistencies.
324
+ - Hardened forked-agent capabilities, harness evidence/sandbox enforcement, AWS auth,
325
+ command execution gates, and macOS sandbox fail-closed behavior.
326
+ - Completed the research contract across controlled web access, redirects, budgets,
327
+ atomic CAS persistence, citation durability, renderer events, and restart/resume.
328
+ - Added conversational Goal abandonment with explicit user authorization and corrected
329
+ Goal boundary/audit/no-progress semantics.
330
+ - Made `prepublishOnly` build before the release pack gate so clean checkouts and final
331
+ tarballs are validated against the same generated `dist` output.
332
+
333
+ ## [0.1.4] — 2026-08-06
334
+
335
+ > **Status: published.** Tag `v0.1.4` exists and the package is on npm
336
+ > (`@orion-agents/orion-code@0.1.4`, `latest` dist-tag). Released 2026-08-06.
337
+ > Work that remains a worktree-only draft carries no release promise (see legend).
338
+
339
+ Aligns `package.json` / `package-lock.json` with the `v0.1.4` release so the
340
+ CLI banner, HTTP `User-Agent`, and crash/telemetry reports stop misreporting `0.1.3`.
341
+
342
+ ### Changed
343
+
344
+ - **Release metadata (#10):** bumped `package.json` and `package-lock.json` to
345
+ `0.1.4` so `orion --version` and the outbound `User-Agent` reflect the development line.
346
+ - **Type safety (#5):** removed ~22 `any` usages (120 → 98 on the committed tree):
347
+ - native `Intl.Segmenter` typing via the `ES2022.Intl` `lib` (no more `(Intl as any)` casts);
348
+ - typed SQLite rows in `src/memory/vector-store.ts` (`MemoryRow` / `MemoryVectorRow`);
349
+ - `unknown`-typed task params in `src/services/task-manager.ts`;
350
+ - typed provider-error messages in `src/services/provider-resilience/error-classifier.ts`.
351
+
352
+ ### Fixed
353
+
354
+ - **Lint (#6):** resolved unused-vars / prefer-const warnings and removed dead code
355
+ (17 ESLint `no-explicit-any` / unused-var alerts cleared).
356
+
357
+ ## [0.1.3] — 2026-08-05
358
+
359
+ > **Status: published.** Tag `v0.1.3` exists and the package is on npm
360
+ > (`@orion-agents/orion-code@0.1.3`). The model-config subset (`/model` / `/models`)
361
+ > is merged; the security/tooling subset below shipped in this release.
362
+
363
+ This release hardens the execution surface (sandbox POC, tool-allowlist ReDoS,
364
+ plan-mode bypass, SSRF / API-key leakage) and rounds out developer-facing tooling
365
+ (git tools, TUI permission interaction, incremental input, goal-tool diagnostics).
366
+
367
+ ### Added
368
+
369
+ - **Shell sandbox POC** (`src/tools/sandbox.ts`)
370
+ - Commands are wrapped as an **argv array**, never re-parsed by an intermediate shell
371
+ (eliminates quote-injection surface).
372
+ - **Runtime backend probes** for `seatbelt` / `bubblewrap` / `docker` via `spawnSync`
373
+ — capability is never inferred from `which`.
374
+ - **Fail-closed**: a configured profile that cannot be applied (no backend, unusable
375
+ backend, unknown profile/backend) **refuses execution** instead of silently degrading.
376
+ - Default `profile: 'none'` is fully backward compatible with the legacy `sh -c` path.
377
+ - Docker backend runs with a **`--read-only` rootfs** and explicit `rw` bind-mounts for
378
+ the workspace + tmp + user `writableRoots`; network is blocked unless `allowNetwork`.
379
+ - Wired into `src/tools/index.ts` (`exec_command` plan + `checkPermissions` gate) and
380
+ `src/services/global-config.ts` (`sandbox` config at global + project scope).
381
+ - **Git tooling** (`src/tools/git.ts`)
382
+ - Structured read-only `git_diff` / `git_log` / `git_branch` / `git_status`
383
+ (with ahead/behind for the tracking branch).
384
+ - Risk-graded `git_commit` (state-write, `isDestructive() => true`) and the pre-existing
385
+ `git_push`. There is **no** `git_stage` tool; staging happens via `git_commit`'s
386
+ `paths` / `all` arguments.
387
+ - All paths confined to the repository; `paths` rejects glob / pathspec syntax;
388
+ output is redacted.
389
+ - ⚠️ **Known gap**: `git_commit({ all: true })` stages _every_ tracked modification.
390
+ The index snapshot / rollback and user-visible preview required by plan §P1-C are
391
+ **not implemented** — prefer explicit `paths`.
392
+ - **TUI permission interaction** (`/permissions` command)
393
+ - Toggle tool-confirmation live; immediately rewrite in-memory config **and** persist to disk.
394
+ - Status-bar `perm:` chip reflects the current mode; a system confirmation message is appended
395
+ to the session. A failed `updateGlobalConfig` leaves the in-memory state unchanged.
396
+
397
+ ### Changed
398
+
399
+ - **Tool allowlist — ReDoS hardening** (`src/services/tool-allowlist.ts`)
400
+ - Regex-compiled glob matchers replaced by a **linear dual-pointer matcher**
401
+ (`O(pattern × subject)`, `O(1)` extra state, no catastrophic backtracking). Regressed by a
402
+ pathological `(a*)*b`-style input test.
403
+ - **Plan-mode bypass fixed** (`src/framework/tool-scheduler.ts`)
404
+ - Plan-mode commands no longer short-circuit permission checks with a default allow; they go
405
+ through the same gating as interactive mode.
406
+ - **SSRF / API-key hardening** (`src/tools/web.ts`, `src/utils/mask.ts`)
407
+ - Per-hop redirect host checks, a response-body hard cap, and full API-key masking in logs/output.
408
+ - **Incremental input during a running turn**
409
+ - Supplementary user input is echoed immediately (G1), accumulated without loss (G2),
410
+ dedupe-guarded, and reflected in status text (G4).
411
+ - **Goal tools** (`src/runtime/goals/tools.ts`)
412
+ - `update_goal` / `update_goal_plan` / `create_goal` failures now return a **diagnostic `output`**
413
+ instead of an empty string.
414
+ - **Config model** (`src/services/global-config.ts`)
415
+ - `sandbox` config at both global and project scope, with documented schema / defaults / migration /
416
+ redaction / rollback (P1-E). Project config shallow-overrides global per key.
417
+
418
+ ### Security
419
+
420
+ - Sandbox execution is fail-closed and verifiable: on hosts with a usable backend, the OS-enforcement
421
+ assertions exercise **real kernel-level confinement** (Docker `--read-only` + bind-mounts verified on macOS).
422
+ - Allowlist matching is ReDoS-safe.
423
+ - Web tool rejects redirect-based SSRF pivots and never leaks API keys in output.
424
+
425
+ ### Out of scope (this release)
426
+
427
+ Deliberately deferred to a later version per the architecture review
428
+ (`docs/archive/releases/v0.1.x/v0.1.3-2-plan.md`):
429
+
430
+ - **Hook system (#27)** — external scripts expand the permission / timeout / secret / audit surface and
431
+ need a standalone technical design.
432
+ - Several `v0.1.3-2` plan items (writable / background sub-agents, generic MCP SSE/HTTP/OAuth, queue
433
+ injection / project-instruction files, custom slash commands, domestic-differentiation, Goal self-repair)
434
+ are tracked for **v0.2**.
435
+
436
+ ### Evidence
437
+
438
+ Verified by `npm run release:check` on **2026-08-05**:
439
+
440
+ - **Full Jest suite (Node 24.14.0): 3045 tests — 3042 passed, 1 failed, 2 skipped; 179 suites passed.**
441
+ The single failure is `tests/terminal-ui-pty.test.ts` (sandbox `safe-delete` `EACCES`) → `not_run`.
442
+ - Focused v0.1.3-2 suites: `sandbox` 30 (incl. live Docker OS-enforcement assertions),
443
+ `tool-allowlist` 38, `web-ssrf-bypass` 21, `git-tools` 7, plus `tool-confirmation` /
444
+ `permission-mode` / `incremental-input` / `goal-tools` / `tool-scheduler` / `config`.
445
+ - `tsc --noEmit` **0 errors**; ESLint **0 errors / 137 warnings** (pre-existing `no-explicit-any`).
446
+ - `npm pack --dry-run` OK — 1098 files, 5.23 MB unpacked.
447
+ - CI / real-PTY / tarball clean-install evidence remains environment-gated and labelled `not_run`
448
+ rather than substituted by a local green run.
449
+
450
+ **Corrections to earlier claims.** The previously reported "10 focused suites: 173/173" was a
451
+ cherry-picked subset that excluded failing suites. A full run surfaced pre-§8 test rot in
452
+ `tests/agent-runtime-controller.test.ts`, `tests/runtime-ui-parity.test.ts` and
453
+ `tests/turn-controller.test.ts` (they asserted latest-only revision semantics and the old
454
+ English status strings). These were realigned with the §8 G1/G2 design — the product behaviour
455
+ was not changed. The PTY smoke scripts `scripts/terminal-ui-pty-smoke.py` /
456
+ `scripts/tui-ui-pty-smoke.py` were updated to wait for the current Chinese status text.
457
+
458
+ > Run the suite with **Node 24.14.0**. Node 22 produces 14 spurious `better-sqlite3` failures
459
+ > (native module built for `NODE_MODULE_VERSION 137`, Node 22 requires `127`).
460
+
461
+ ### Still open (release gate)
462
+
463
+ - `docs/archive/releases/v0.1.x/targets-v0.1.3-v0.1.3-2.md` P0-C Goal sidecar overwrite protection — `unverified`.
464
+ - Worktree not yet frozen into a commit (index currently holds the 42 in-scope files).
465
+ - No `v0.1.3` tag; not published.
466
+
467
+ ## [0.1.2] — 2026-08-02 · Published (tag `v0.1.2`)
468
+
469
+ Goal reliability release. Typed continuation for a single session with a single active Goal;
470
+ safe pause after restart/resume requiring explicit recovery; runtime evidence ledger with
471
+ per-criterion completion audit and precise stop reasons; confirmation was single-session scoped.
472
+
473
+ ## [0.1.1] — 2026-07-31 · Published
474
+
475
+ Command contract, TUI as the default path, OpenHorse migration and data-safety convergence;
476
+ terminal-ui repositioned as the diagnostics build, Ink formally deprecated.
477
+
478
+ ## [0.1.0] — 2026-07-28 · Published
479
+
480
+ First public TUI baseline.
481
+
482
+ ---
483
+
484
+ ## Maintenance rules
485
+
486
+ 1. Run `npm run release:check` before every release. It verifies version consistency
487
+ (`package.json` / `package-lock.json` / both README install pins / the Chinese README
488
+ "current version" marker), CHANGELOG presence, `git diff --check`, worktree cleanliness,
489
+ lint, types, the full test suite, and `npm pack --dry-run`.
490
+ 2. `release:check` is **read-only**: it never runs `git tag`, `git push`, PR, merge or
491
+ `npm publish`. Those stay separately authorized.
492
+ 3. When an entry moves Candidate → Merged → Published, **move it to the matching section**.
493
+ Leaving a stale status label is a release-gate failure.
494
+
495
+ (Legacy release notes under `docs/mvp/` are not maintained in this file.)