@bastani/atomic 0.9.20-alpha.3 → 0.9.20-alpha.4

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 (763) hide show
  1. package/CHANGELOG.md +131 -0
  2. package/README.md +15 -7
  3. package/dist/builtin/intercom/CHANGELOG.md +18 -0
  4. package/dist/builtin/intercom/README.md +2 -2
  5. package/dist/builtin/intercom/broker/send-handler.ts +59 -2
  6. package/dist/builtin/intercom/index.bundle.mjs +101 -16
  7. package/dist/builtin/intercom/package.json +3 -3
  8. package/dist/builtin/intercom/session-target.ts +34 -9
  9. package/dist/builtin/intercom/skills/intercom/SKILL.md +4 -4
  10. package/dist/builtin/mcp/CHANGELOG.md +13 -0
  11. package/dist/builtin/mcp/OAUTH.md +1 -1
  12. package/dist/builtin/mcp/README.md +3 -1
  13. package/dist/builtin/mcp/index.bundle.mjs +412 -64
  14. package/dist/builtin/mcp/package.json +3 -3
  15. package/dist/builtin/subagents/CHANGELOG.md +27 -0
  16. package/dist/builtin/subagents/README.md +2 -2
  17. package/dist/builtin/subagents/agents/code-simplifier.md +2 -3
  18. package/dist/builtin/subagents/agents/codebase-analyzer.md +2 -3
  19. package/dist/builtin/subagents/agents/codebase-locator.md +2 -3
  20. package/dist/builtin/subagents/agents/codebase-online-researcher.md +2 -3
  21. package/dist/builtin/subagents/agents/codebase-pattern-finder.md +2 -3
  22. package/dist/builtin/subagents/agents/codebase-research-analyzer.md +2 -3
  23. package/dist/builtin/subagents/agents/codebase-research-locator.md +2 -3
  24. package/dist/builtin/subagents/agents/debugger.md +1 -2
  25. package/dist/builtin/subagents/agents/worker.md +1 -2
  26. package/dist/builtin/subagents/package.json +4 -8
  27. package/dist/builtin/subagents/skills/subagent/SKILL.md +15 -13
  28. package/dist/builtin/subagents/src/extension/index.bundle.mjs +249 -63
  29. package/dist/builtin/web-access/CHANGELOG.md +12 -0
  30. package/dist/builtin/web-access/index.bundle.mjs +367 -295
  31. package/dist/builtin/web-access/package.json +3 -3
  32. package/dist/builtin/workflows/CHANGELOG.md +68 -0
  33. package/dist/builtin/workflows/README.md +29 -30
  34. package/dist/builtin/workflows/builtin/adversarial-verification.js +3 -3
  35. package/dist/builtin/workflows/builtin/{chunk-yeee2jrc.js → chunk-119kxb28.js} +5 -46
  36. package/dist/builtin/workflows/builtin/chunk-1dydq7w3.js +9722 -0
  37. package/dist/builtin/workflows/builtin/{chunk-31j2gs7h.js → chunk-9y0f90rd.js} +4 -6
  38. package/dist/builtin/workflows/builtin/{chunk-z29qbehr.js → chunk-d1xqh1rd.js} +4 -6
  39. package/dist/builtin/workflows/builtin/{chunk-zqtm1d2c.js → chunk-hnbbb5r0.js} +12 -217
  40. package/dist/builtin/workflows/builtin/{chunk-wf741bv3.js → chunk-k18g9me8.js} +4 -6
  41. package/dist/builtin/workflows/builtin/{chunk-g0csgs7w.js → chunk-kf5xpbkz.js} +8 -10
  42. package/dist/builtin/workflows/builtin/{chunk-a2kdsqn8.js → chunk-n4yxrsm9.js} +1 -1
  43. package/dist/builtin/workflows/builtin/{chunk-xtxcq5tj.js → chunk-n8g2da69.js} +17 -1
  44. package/dist/builtin/workflows/builtin/{chunk-fg9esgkj.js → chunk-scgprmdj.js} +4 -6
  45. package/dist/builtin/workflows/builtin/{chunk-6w6cvk6b.js → chunk-sn5mchnx.js} +4 -6
  46. package/dist/builtin/workflows/builtin/{chunk-ewkkkbak.js → chunk-vt9zgr9d.js} +9 -91
  47. package/dist/builtin/workflows/builtin/classify-and-act.js +3 -3
  48. package/dist/builtin/workflows/builtin/fan-out-and-synthesize.js +3 -3
  49. package/dist/builtin/workflows/builtin/generate-and-filter.js +3 -3
  50. package/dist/builtin/workflows/builtin/goal.js +4 -4
  51. package/dist/builtin/workflows/builtin/index.js +12 -12
  52. package/dist/builtin/workflows/builtin/loop-until-done.js +3 -3
  53. package/dist/builtin/workflows/builtin/open-claude-design.js +3 -3
  54. package/dist/builtin/workflows/builtin/ralph.js +4 -4
  55. package/dist/builtin/workflows/builtin/steering-context.js +1 -1
  56. package/dist/builtin/workflows/builtin/tournament.js +3 -3
  57. package/dist/builtin/workflows/package.json +3 -3
  58. package/dist/builtin/workflows/src/authoring.d.ts +2 -0
  59. package/dist/builtin/workflows/src/durable/dependency-doctor-types.d.ts +42 -0
  60. package/dist/builtin/workflows/src/extension/index.bundle.mjs +82005 -78701
  61. package/dist/builtin/workflows/src/index.js +8900 -1200
  62. package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +11 -0
  63. package/dist/builtin/workflows/src/shared/authoring-contract-ui.d.ts +4 -1
  64. package/dist/cli/args.js +2 -2
  65. package/dist/cli/args.js.map +1 -1
  66. package/dist/config.d.ts +1 -0
  67. package/dist/config.d.ts.map +1 -1
  68. package/dist/config.js +1 -0
  69. package/dist/config.js.map +1 -1
  70. package/dist/core/agent-session-accessors.d.ts.map +1 -1
  71. package/dist/core/agent-session-accessors.js +2 -1
  72. package/dist/core/agent-session-accessors.js.map +1 -1
  73. package/dist/core/agent-session-auto-compaction.d.ts.map +1 -1
  74. package/dist/core/agent-session-auto-compaction.js +9 -2
  75. package/dist/core/agent-session-auto-compaction.js.map +1 -1
  76. package/dist/core/agent-session-bash.d.ts +3 -1
  77. package/dist/core/agent-session-bash.d.ts.map +1 -1
  78. package/dist/core/agent-session-bash.js +18 -6
  79. package/dist/core/agent-session-bash.js.map +1 -1
  80. package/dist/core/agent-session-compaction.d.ts.map +1 -1
  81. package/dist/core/agent-session-compaction.js +25 -8
  82. package/dist/core/agent-session-compaction.js.map +1 -1
  83. package/dist/core/agent-session-events.d.ts +6 -6
  84. package/dist/core/agent-session-events.d.ts.map +1 -1
  85. package/dist/core/agent-session-events.js +145 -62
  86. package/dist/core/agent-session-events.js.map +1 -1
  87. package/dist/core/agent-session-export.d.ts +1 -1
  88. package/dist/core/agent-session-export.d.ts.map +1 -1
  89. package/dist/core/agent-session-export.js +18 -19
  90. package/dist/core/agent-session-export.js.map +1 -1
  91. package/dist/core/agent-session-extension-bindings.d.ts +3 -2
  92. package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
  93. package/dist/core/agent-session-extension-bindings.js +274 -70
  94. package/dist/core/agent-session-extension-bindings.js.map +1 -1
  95. package/dist/core/agent-session-message-queue.d.ts +1 -1
  96. package/dist/core/agent-session-message-queue.d.ts.map +1 -1
  97. package/dist/core/agent-session-message-queue.js +30 -4
  98. package/dist/core/agent-session-message-queue.js.map +1 -1
  99. package/dist/core/agent-session-methods.d.ts +19 -11
  100. package/dist/core/agent-session-methods.d.ts.map +1 -1
  101. package/dist/core/agent-session-methods.js.map +1 -1
  102. package/dist/core/agent-session-models.d.ts +2 -2
  103. package/dist/core/agent-session-models.d.ts.map +1 -1
  104. package/dist/core/agent-session-models.js +38 -29
  105. package/dist/core/agent-session-models.js.map +1 -1
  106. package/dist/core/agent-session-persistent-custom-messages.d.ts +1 -1
  107. package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
  108. package/dist/core/agent-session-post-tool-compaction.d.ts.map +1 -1
  109. package/dist/core/agent-session-post-tool-compaction.js +18 -1
  110. package/dist/core/agent-session-post-tool-compaction.js.map +1 -1
  111. package/dist/core/agent-session-prompt.d.ts +1 -1
  112. package/dist/core/agent-session-prompt.d.ts.map +1 -1
  113. package/dist/core/agent-session-prompt.js +104 -22
  114. package/dist/core/agent-session-prompt.js.map +1 -1
  115. package/dist/core/agent-session-queue-pause.d.ts +2 -0
  116. package/dist/core/agent-session-queue-pause.d.ts.map +1 -1
  117. package/dist/core/agent-session-queue-pause.js +13 -2
  118. package/dist/core/agent-session-queue-pause.js.map +1 -1
  119. package/dist/core/agent-session-retry.d.ts +0 -3
  120. package/dist/core/agent-session-retry.d.ts.map +1 -1
  121. package/dist/core/agent-session-retry.js +24 -11
  122. package/dist/core/agent-session-retry.js.map +1 -1
  123. package/dist/core/agent-session-runtime-auth.d.ts.map +1 -1
  124. package/dist/core/agent-session-runtime-auth.js +10 -0
  125. package/dist/core/agent-session-runtime-auth.js.map +1 -1
  126. package/dist/core/agent-session-runtime.d.ts +17 -1
  127. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  128. package/dist/core/agent-session-runtime.js +428 -197
  129. package/dist/core/agent-session-runtime.js.map +1 -1
  130. package/dist/core/agent-session-services.d.ts +4 -0
  131. package/dist/core/agent-session-services.d.ts.map +1 -1
  132. package/dist/core/agent-session-services.js +31 -2
  133. package/dist/core/agent-session-services.js.map +1 -1
  134. package/dist/core/agent-session-state.d.ts +10 -2
  135. package/dist/core/agent-session-state.d.ts.map +1 -1
  136. package/dist/core/agent-session-state.js +32 -22
  137. package/dist/core/agent-session-state.js.map +1 -1
  138. package/dist/core/agent-session-summary.d.ts.map +1 -1
  139. package/dist/core/agent-session-summary.js +9 -2
  140. package/dist/core/agent-session-summary.js.map +1 -1
  141. package/dist/core/agent-session-tasks.d.ts +1 -0
  142. package/dist/core/agent-session-tasks.d.ts.map +1 -1
  143. package/dist/core/agent-session-tasks.js +24 -3
  144. package/dist/core/agent-session-tasks.js.map +1 -1
  145. package/dist/core/agent-session-tool-hooks.d.ts.map +1 -1
  146. package/dist/core/agent-session-tool-hooks.js +26 -3
  147. package/dist/core/agent-session-tool-hooks.js.map +1 -1
  148. package/dist/core/agent-session-tool-registry.d.ts.map +1 -1
  149. package/dist/core/agent-session-tool-registry.js +0 -2
  150. package/dist/core/agent-session-tool-registry.js.map +1 -1
  151. package/dist/core/agent-session-transfer.js.map +1 -1
  152. package/dist/core/agent-session-tree.d.ts.map +1 -1
  153. package/dist/core/agent-session-tree.js +6 -0
  154. package/dist/core/agent-session-tree.js.map +1 -1
  155. package/dist/core/agent-session-types.d.ts +5 -0
  156. package/dist/core/agent-session-types.d.ts.map +1 -1
  157. package/dist/core/agent-session-types.js.map +1 -1
  158. package/dist/core/agent-session.d.ts +15 -8
  159. package/dist/core/agent-session.d.ts.map +1 -1
  160. package/dist/core/agent-session.js +113 -66
  161. package/dist/core/agent-session.js.map +1 -1
  162. package/dist/core/auth-storage.d.ts +5 -3
  163. package/dist/core/auth-storage.d.ts.map +1 -1
  164. package/dist/core/auth-storage.js +18 -5
  165. package/dist/core/auth-storage.js.map +1 -1
  166. package/dist/core/builtin-diagnostics.d.ts +2 -0
  167. package/dist/core/builtin-diagnostics.d.ts.map +1 -0
  168. package/dist/core/builtin-diagnostics.js +14 -0
  169. package/dist/core/builtin-diagnostics.js.map +1 -0
  170. package/dist/core/builtin-packages.d.ts +5 -2
  171. package/dist/core/builtin-packages.d.ts.map +1 -1
  172. package/dist/core/builtin-packages.js +24 -3
  173. package/dist/core/builtin-packages.js.map +1 -1
  174. package/dist/core/builtin-resource-loader.d.ts +4 -0
  175. package/dist/core/builtin-resource-loader.d.ts.map +1 -0
  176. package/dist/core/builtin-resource-loader.js +239 -0
  177. package/dist/core/builtin-resource-loader.js.map +1 -0
  178. package/dist/core/cache-retention.d.ts +4 -0
  179. package/dist/core/cache-retention.d.ts.map +1 -0
  180. package/dist/core/cache-retention.js +58 -0
  181. package/dist/core/cache-retention.js.map +1 -0
  182. package/dist/core/cache-stats.d.ts.map +1 -1
  183. package/dist/core/cache-stats.js +11 -0
  184. package/dist/core/cache-stats.js.map +1 -1
  185. package/dist/core/cache-warmer.d.ts +66 -0
  186. package/dist/core/cache-warmer.d.ts.map +1 -0
  187. package/dist/core/cache-warmer.js +313 -0
  188. package/dist/core/cache-warmer.js.map +1 -0
  189. package/dist/core/child-session-options.d.ts +5 -0
  190. package/dist/core/child-session-options.d.ts.map +1 -0
  191. package/dist/core/child-session-options.js +30 -0
  192. package/dist/core/child-session-options.js.map +1 -0
  193. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  194. package/dist/core/compaction/branch-summarization.js +2 -2
  195. package/dist/core/compaction/branch-summarization.js.map +1 -1
  196. package/dist/core/compaction/compaction-boundary.d.ts.map +1 -1
  197. package/dist/core/compaction/compaction-boundary.js +2 -1
  198. package/dist/core/compaction/compaction-boundary.js.map +1 -1
  199. package/dist/core/compaction/compaction.d.ts.map +1 -1
  200. package/dist/core/compaction/compaction.js +18 -0
  201. package/dist/core/compaction/compaction.js.map +1 -1
  202. package/dist/core/compaction/fallback-planner.d.ts +1 -0
  203. package/dist/core/compaction/fallback-planner.d.ts.map +1 -1
  204. package/dist/core/compaction/fallback-planner.js +2 -0
  205. package/dist/core/compaction/fallback-planner.js.map +1 -1
  206. package/dist/core/compaction/range-planner.d.ts.map +1 -1
  207. package/dist/core/compaction/range-planner.js +3 -3
  208. package/dist/core/compaction/range-planner.js.map +1 -1
  209. package/dist/core/compaction/session-summarization.d.ts.map +1 -1
  210. package/dist/core/compaction/session-summarization.js +2 -1
  211. package/dist/core/compaction/session-summarization.js.map +1 -1
  212. package/dist/core/credential-screening.d.ts +17 -0
  213. package/dist/core/credential-screening.d.ts.map +1 -0
  214. package/dist/core/credential-screening.js +30 -0
  215. package/dist/core/credential-screening.js.map +1 -0
  216. package/dist/core/decision-provider.d.ts +4 -0
  217. package/dist/core/decision-provider.d.ts.map +1 -0
  218. package/dist/core/decision-provider.js +12 -0
  219. package/dist/core/decision-provider.js.map +1 -0
  220. package/dist/core/execution-model-router.d.ts +28 -0
  221. package/dist/core/execution-model-router.d.ts.map +1 -0
  222. package/dist/core/execution-model-router.js +165 -0
  223. package/dist/core/execution-model-router.js.map +1 -0
  224. package/dist/core/extensions/agent-events.d.ts +4 -4
  225. package/dist/core/extensions/agent-events.d.ts.map +1 -1
  226. package/dist/core/extensions/agent-events.js.map +1 -1
  227. package/dist/core/extensions/api-types.d.ts +46 -40
  228. package/dist/core/extensions/api-types.d.ts.map +1 -1
  229. package/dist/core/extensions/api-types.js.map +1 -1
  230. package/dist/core/extensions/context-types.d.ts +7 -1
  231. package/dist/core/extensions/context-types.d.ts.map +1 -1
  232. package/dist/core/extensions/context-types.js.map +1 -1
  233. package/dist/core/extensions/event-results.d.ts +7 -6
  234. package/dist/core/extensions/event-results.d.ts.map +1 -1
  235. package/dist/core/extensions/event-results.js.map +1 -1
  236. package/dist/core/extensions/event-types.d.ts +2 -1
  237. package/dist/core/extensions/event-types.d.ts.map +1 -1
  238. package/dist/core/extensions/event-types.js.map +1 -1
  239. package/dist/core/extensions/extension-work.d.ts +14 -0
  240. package/dist/core/extensions/extension-work.d.ts.map +1 -0
  241. package/dist/core/extensions/extension-work.js +73 -0
  242. package/dist/core/extensions/extension-work.js.map +1 -0
  243. package/dist/core/extensions/herdr-file-integration.d.ts +36 -0
  244. package/dist/core/extensions/herdr-file-integration.d.ts.map +1 -0
  245. package/dist/core/extensions/herdr-file-integration.js +60 -0
  246. package/dist/core/extensions/herdr-file-integration.js.map +1 -0
  247. package/dist/core/extensions/host-input.d.ts +51 -0
  248. package/dist/core/extensions/host-input.d.ts.map +1 -0
  249. package/dist/core/extensions/host-input.js +211 -0
  250. package/dist/core/extensions/host-input.js.map +1 -0
  251. package/dist/core/extensions/index.d.ts +4 -2
  252. package/dist/core/extensions/index.d.ts.map +1 -1
  253. package/dist/core/extensions/index.js +0 -3
  254. package/dist/core/extensions/index.js.map +1 -1
  255. package/dist/core/extensions/jiti-loader.d.ts +2 -0
  256. package/dist/core/extensions/jiti-loader.d.ts.map +1 -0
  257. package/dist/core/extensions/jiti-loader.js +3 -0
  258. package/dist/core/extensions/jiti-loader.js.map +1 -0
  259. package/dist/core/extensions/jiti-static-loader.d.ts +2 -0
  260. package/dist/core/extensions/jiti-static-loader.d.ts.map +1 -0
  261. package/dist/core/extensions/jiti-static-loader.js +3 -0
  262. package/dist/core/extensions/jiti-static-loader.js.map +1 -0
  263. package/dist/core/extensions/loader-api.d.ts +7 -0
  264. package/dist/core/extensions/loader-api.d.ts.map +1 -1
  265. package/dist/core/extensions/loader-api.js +154 -28
  266. package/dist/core/extensions/loader-api.js.map +1 -1
  267. package/dist/core/extensions/loader-bindings.d.ts +24 -0
  268. package/dist/core/extensions/loader-bindings.d.ts.map +1 -0
  269. package/dist/core/extensions/loader-bindings.js +128 -0
  270. package/dist/core/extensions/loader-bindings.js.map +1 -0
  271. package/dist/core/extensions/loader-core.d.ts +2 -1
  272. package/dist/core/extensions/loader-core.d.ts.map +1 -1
  273. package/dist/core/extensions/loader-core.js +91 -14
  274. package/dist/core/extensions/loader-core.js.map +1 -1
  275. package/dist/core/extensions/loader-host-modules.d.ts.map +1 -1
  276. package/dist/core/extensions/loader-host-modules.js +3 -1
  277. package/dist/core/extensions/loader-host-modules.js.map +1 -1
  278. package/dist/core/extensions/loader-rollback.d.ts +14 -0
  279. package/dist/core/extensions/loader-rollback.d.ts.map +1 -0
  280. package/dist/core/extensions/loader-rollback.js +95 -0
  281. package/dist/core/extensions/loader-rollback.js.map +1 -0
  282. package/dist/core/extensions/loader-runtime.d.ts +3 -1
  283. package/dist/core/extensions/loader-runtime.d.ts.map +1 -1
  284. package/dist/core/extensions/loader-runtime.js +38 -14
  285. package/dist/core/extensions/loader-runtime.js.map +1 -1
  286. package/dist/core/extensions/loader-virtual-modules.d.ts.map +1 -1
  287. package/dist/core/extensions/loader-virtual-modules.js +9 -2
  288. package/dist/core/extensions/loader-virtual-modules.js.map +1 -1
  289. package/dist/core/extensions/loader.d.ts +1 -1
  290. package/dist/core/extensions/loader.d.ts.map +1 -1
  291. package/dist/core/extensions/loader.js +1 -1
  292. package/dist/core/extensions/loader.js.map +1 -1
  293. package/dist/core/extensions/reactive-widget.d.ts +1 -1
  294. package/dist/core/extensions/reactive-widget.js.map +1 -1
  295. package/dist/core/extensions/runner-context.d.ts +4 -0
  296. package/dist/core/extensions/runner-context.d.ts.map +1 -1
  297. package/dist/core/extensions/runner-context.js +25 -0
  298. package/dist/core/extensions/runner-context.js.map +1 -1
  299. package/dist/core/extensions/runner-events.d.ts +8 -4
  300. package/dist/core/extensions/runner-events.d.ts.map +1 -1
  301. package/dist/core/extensions/runner-events.js +55 -53
  302. package/dist/core/extensions/runner-events.js.map +1 -1
  303. package/dist/core/extensions/runner-project-trust.d.ts.map +1 -1
  304. package/dist/core/extensions/runner-project-trust.js +2 -4
  305. package/dist/core/extensions/runner-project-trust.js.map +1 -1
  306. package/dist/core/extensions/runner.d.ts +31 -4
  307. package/dist/core/extensions/runner.d.ts.map +1 -1
  308. package/dist/core/extensions/runner.js +219 -23
  309. package/dist/core/extensions/runner.js.map +1 -1
  310. package/dist/core/extensions/runtime-types.d.ts +2 -0
  311. package/dist/core/extensions/runtime-types.d.ts.map +1 -1
  312. package/dist/core/extensions/runtime-types.js.map +1 -1
  313. package/dist/core/extensions/types.d.ts +3 -2
  314. package/dist/core/extensions/types.d.ts.map +1 -1
  315. package/dist/core/extensions/types.js +0 -12
  316. package/dist/core/extensions/types.js.map +1 -1
  317. package/dist/core/extensions/workflow-activity-hub.d.ts +2 -0
  318. package/dist/core/extensions/workflow-activity-hub.d.ts.map +1 -1
  319. package/dist/core/extensions/workflow-activity-hub.js +5 -3
  320. package/dist/core/extensions/workflow-activity-hub.js.map +1 -1
  321. package/dist/core/extensions/wrapper.d.ts.map +1 -1
  322. package/dist/core/extensions/wrapper.js +5 -3
  323. package/dist/core/extensions/wrapper.js.map +1 -1
  324. package/dist/core/fast-model-routing.d.ts +3 -3
  325. package/dist/core/fast-model-routing.d.ts.map +1 -1
  326. package/dist/core/fast-model-routing.js +3 -3
  327. package/dist/core/fast-model-routing.js.map +1 -1
  328. package/dist/core/fast-model-variants.d.ts +4 -0
  329. package/dist/core/fast-model-variants.d.ts.map +1 -1
  330. package/dist/core/fast-model-variants.js +3 -0
  331. package/dist/core/fast-model-variants.js.map +1 -1
  332. package/dist/core/index.d.ts +4 -1
  333. package/dist/core/index.d.ts.map +1 -1
  334. package/dist/core/index.js +2 -0
  335. package/dist/core/index.js.map +1 -1
  336. package/dist/core/mandatory-resource-loader.d.ts +4 -0
  337. package/dist/core/mandatory-resource-loader.d.ts.map +1 -1
  338. package/dist/core/mandatory-resource-loader.js +29 -1
  339. package/dist/core/mandatory-resource-loader.js.map +1 -1
  340. package/dist/core/mandatory-runtime-tools.d.ts +1 -4
  341. package/dist/core/mandatory-runtime-tools.d.ts.map +1 -1
  342. package/dist/core/mandatory-runtime-tools.js +1 -9
  343. package/dist/core/mandatory-runtime-tools.js.map +1 -1
  344. package/dist/core/messages.d.ts.map +1 -1
  345. package/dist/core/messages.js +8 -1
  346. package/dist/core/messages.js.map +1 -1
  347. package/dist/core/model-config.d.ts +41 -10
  348. package/dist/core/model-config.d.ts.map +1 -1
  349. package/dist/core/model-config.js +11 -2
  350. package/dist/core/model-config.js.map +1 -1
  351. package/dist/core/model-registry.d.ts +4 -2
  352. package/dist/core/model-registry.d.ts.map +1 -1
  353. package/dist/core/model-registry.js +6 -2
  354. package/dist/core/model-registry.js.map +1 -1
  355. package/dist/core/model-routing-constraints.d.ts +24 -0
  356. package/dist/core/model-routing-constraints.d.ts.map +1 -0
  357. package/dist/core/model-routing-constraints.js +46 -0
  358. package/dist/core/model-routing-constraints.js.map +1 -0
  359. package/dist/core/model-routing-task.d.ts +4 -0
  360. package/dist/core/model-routing-task.d.ts.map +1 -0
  361. package/dist/core/model-routing-task.js +76 -0
  362. package/dist/core/model-routing-task.js.map +1 -0
  363. package/dist/core/model-runtime-streaming.d.ts +13 -3
  364. package/dist/core/model-runtime-streaming.d.ts.map +1 -1
  365. package/dist/core/model-runtime-streaming.js +15 -5
  366. package/dist/core/model-runtime-streaming.js.map +1 -1
  367. package/dist/core/model-runtime-types.d.ts +2 -2
  368. package/dist/core/model-runtime-types.d.ts.map +1 -1
  369. package/dist/core/model-runtime-types.js.map +1 -1
  370. package/dist/core/model-runtime.d.ts +6 -3
  371. package/dist/core/model-runtime.d.ts.map +1 -1
  372. package/dist/core/model-runtime.js +29 -2
  373. package/dist/core/model-runtime.js.map +1 -1
  374. package/dist/core/provider-composer-internal.d.ts +3 -2
  375. package/dist/core/provider-composer-internal.d.ts.map +1 -1
  376. package/dist/core/provider-composer-internal.js +2 -0
  377. package/dist/core/provider-composer-internal.js.map +1 -1
  378. package/dist/core/provider-composer.d.ts.map +1 -1
  379. package/dist/core/provider-composer.js.map +1 -1
  380. package/dist/core/resolve-config-value.d.ts +2 -0
  381. package/dist/core/resolve-config-value.d.ts.map +1 -1
  382. package/dist/core/resolve-config-value.js +23 -1
  383. package/dist/core/resolve-config-value.js.map +1 -1
  384. package/dist/core/resource-loader-core.d.ts +6 -0
  385. package/dist/core/resource-loader-core.d.ts.map +1 -1
  386. package/dist/core/resource-loader-core.js +37 -6
  387. package/dist/core/resource-loader-core.js.map +1 -1
  388. package/dist/core/resource-loader-extensions.d.ts.map +1 -1
  389. package/dist/core/resource-loader-extensions.js +2 -0
  390. package/dist/core/resource-loader-extensions.js.map +1 -1
  391. package/dist/core/resource-loader-reload.d.ts.map +1 -1
  392. package/dist/core/resource-loader-reload.js +7 -2
  393. package/dist/core/resource-loader-reload.js.map +1 -1
  394. package/dist/core/resource-loader.d.ts +1 -1
  395. package/dist/core/resource-loader.d.ts.map +1 -1
  396. package/dist/core/resource-loader.js +1 -1
  397. package/dist/core/resource-loader.js.map +1 -1
  398. package/dist/core/runtime-credentials.d.ts +2 -0
  399. package/dist/core/runtime-credentials.d.ts.map +1 -1
  400. package/dist/core/runtime-credentials.js +15 -0
  401. package/dist/core/runtime-credentials.js.map +1 -1
  402. package/dist/core/sdk-types.d.ts +13 -5
  403. package/dist/core/sdk-types.d.ts.map +1 -1
  404. package/dist/core/sdk-types.js.map +1 -1
  405. package/dist/core/sdk.d.ts +3 -1
  406. package/dist/core/sdk.d.ts.map +1 -1
  407. package/dist/core/sdk.js +211 -37
  408. package/dist/core/sdk.js.map +1 -1
  409. package/dist/core/session-lifecycle-scope.d.ts +15 -0
  410. package/dist/core/session-lifecycle-scope.d.ts.map +1 -0
  411. package/dist/core/session-lifecycle-scope.js +13 -0
  412. package/dist/core/session-lifecycle-scope.js.map +1 -0
  413. package/dist/core/session-lifecycle-work.d.ts +17 -0
  414. package/dist/core/session-lifecycle-work.d.ts.map +1 -0
  415. package/dist/core/session-lifecycle-work.js +144 -0
  416. package/dist/core/session-lifecycle-work.js.map +1 -0
  417. package/dist/core/session-manager-core.d.ts +8 -4
  418. package/dist/core/session-manager-core.d.ts.map +1 -1
  419. package/dist/core/session-manager-core.js +27 -3
  420. package/dist/core/session-manager-core.js.map +1 -1
  421. package/dist/core/session-manager-history.d.ts.map +1 -1
  422. package/dist/core/session-manager-history.js +3 -0
  423. package/dist/core/session-manager-history.js.map +1 -1
  424. package/dist/core/session-manager-list.d.ts +3 -3
  425. package/dist/core/session-manager-list.d.ts.map +1 -1
  426. package/dist/core/session-manager-list.js +89 -74
  427. package/dist/core/session-manager-list.js.map +1 -1
  428. package/dist/core/session-manager-storage.d.ts.map +1 -1
  429. package/dist/core/session-manager-storage.js +10 -7
  430. package/dist/core/session-manager-storage.js.map +1 -1
  431. package/dist/core/session-manager-types.d.ts +13 -3
  432. package/dist/core/session-manager-types.d.ts.map +1 -1
  433. package/dist/core/session-manager-types.js.map +1 -1
  434. package/dist/core/session-manager.d.ts +1 -1
  435. package/dist/core/session-manager.d.ts.map +1 -1
  436. package/dist/core/session-manager.js.map +1 -1
  437. package/dist/core/session-startup-rollback.d.ts +5 -0
  438. package/dist/core/session-startup-rollback.d.ts.map +1 -0
  439. package/dist/core/session-startup-rollback.js +16 -0
  440. package/dist/core/session-startup-rollback.js.map +1 -0
  441. package/dist/core/settings-manager-basic-accessors.d.ts +5 -0
  442. package/dist/core/settings-manager-basic-accessors.d.ts.map +1 -1
  443. package/dist/core/settings-manager-basic-accessors.js +35 -0
  444. package/dist/core/settings-manager-basic-accessors.js.map +1 -1
  445. package/dist/core/settings-manager-core.d.ts.map +1 -1
  446. package/dist/core/settings-manager-core.js +4 -0
  447. package/dist/core/settings-manager-core.js.map +1 -1
  448. package/dist/core/settings-manager.d.ts +1 -0
  449. package/dist/core/settings-manager.d.ts.map +1 -1
  450. package/dist/core/settings-manager.js +1 -0
  451. package/dist/core/settings-manager.js.map +1 -1
  452. package/dist/core/settings-types.d.ts +4 -0
  453. package/dist/core/settings-types.d.ts.map +1 -1
  454. package/dist/core/settings-types.js +1 -1
  455. package/dist/core/settings-types.js.map +1 -1
  456. package/dist/core/settings-write-ownership.d.ts +7 -0
  457. package/dist/core/settings-write-ownership.d.ts.map +1 -0
  458. package/dist/core/settings-write-ownership.js +24 -0
  459. package/dist/core/settings-write-ownership.js.map +1 -0
  460. package/dist/core/slash-commands.js +1 -1
  461. package/dist/core/slash-commands.js.map +1 -1
  462. package/dist/core/structured-output/index.d.ts +12 -0
  463. package/dist/core/structured-output/index.d.ts.map +1 -0
  464. package/dist/core/structured-output/index.js +251 -0
  465. package/dist/core/structured-output/index.js.map +1 -0
  466. package/dist/core/structured-output/invalid-output.d.ts +8 -0
  467. package/dist/core/structured-output/invalid-output.d.ts.map +1 -0
  468. package/dist/core/structured-output/invalid-output.js +4 -0
  469. package/dist/core/structured-output/invalid-output.js.map +1 -0
  470. package/dist/core/structured-output/jev-client.d.ts +20 -0
  471. package/dist/core/structured-output/jev-client.d.ts.map +1 -0
  472. package/dist/core/structured-output/jev-client.js +116 -0
  473. package/dist/core/structured-output/jev-client.js.map +1 -0
  474. package/dist/core/structured-output/jev.d.ts +5 -0
  475. package/dist/core/structured-output/jev.d.ts.map +1 -0
  476. package/dist/core/structured-output/jev.js +275 -0
  477. package/dist/core/structured-output/jev.js.map +1 -0
  478. package/dist/core/structured-output/resolver.d.ts +41 -0
  479. package/dist/core/structured-output/resolver.d.ts.map +1 -0
  480. package/dist/core/structured-output/resolver.js +56 -0
  481. package/dist/core/structured-output/resolver.js.map +1 -0
  482. package/dist/core/structured-output/types.d.ts +68 -0
  483. package/dist/core/structured-output/types.d.ts.map +1 -0
  484. package/dist/core/structured-output/types.js +2 -0
  485. package/dist/core/structured-output/types.js.map +1 -0
  486. package/dist/core/system-prompt.d.ts +48 -5
  487. package/dist/core/system-prompt.d.ts.map +1 -1
  488. package/dist/core/system-prompt.js +130 -99
  489. package/dist/core/system-prompt.js.map +1 -1
  490. package/dist/core/tasks/contracts.d.ts +6 -0
  491. package/dist/core/tasks/contracts.d.ts.map +1 -1
  492. package/dist/core/tasks/contracts.js.map +1 -1
  493. package/dist/core/tasks/supervisor.d.ts.map +1 -1
  494. package/dist/core/tasks/supervisor.js +7 -0
  495. package/dist/core/tasks/supervisor.js.map +1 -1
  496. package/dist/core/tools/ask-user-question/ask-user-question.d.ts +4 -1
  497. package/dist/core/tools/ask-user-question/ask-user-question.d.ts.map +1 -1
  498. package/dist/core/tools/ask-user-question/ask-user-question.js +31 -35
  499. package/dist/core/tools/ask-user-question/ask-user-question.js.map +1 -1
  500. package/dist/core/tools/ask-user-question/index.d.ts +1 -1
  501. package/dist/core/tools/ask-user-question/index.js.map +1 -1
  502. package/dist/core/tools/ask-user-question/state/build-questionnaire.d.ts +1 -1
  503. package/dist/core/tools/ask-user-question/state/build-questionnaire.js.map +1 -1
  504. package/dist/core/tools/ask-user-question/state/key-router.d.ts +1 -1
  505. package/dist/core/tools/ask-user-question/state/key-router.js.map +1 -1
  506. package/dist/core/tools/ask-user-question/state/questionnaire-session.d.ts +1 -1
  507. package/dist/core/tools/ask-user-question/state/questionnaire-session.js.map +1 -1
  508. package/dist/core/tools/ask-user-question/state/row-intent.d.ts +1 -1
  509. package/dist/core/tools/ask-user-question/state/row-intent.js.map +1 -1
  510. package/dist/core/tools/ask-user-question/state/selectors/contract.d.ts +1 -1
  511. package/dist/core/tools/ask-user-question/state/selectors/contract.js.map +1 -1
  512. package/dist/core/tools/ask-user-question/state/selectors/derivations.d.ts +1 -1
  513. package/dist/core/tools/ask-user-question/state/selectors/derivations.js.map +1 -1
  514. package/dist/core/tools/ask-user-question/state/state-reducer.d.ts +1 -1
  515. package/dist/core/tools/ask-user-question/state/state-reducer.js.map +1 -1
  516. package/dist/core/tools/ask-user-question/state/state.d.ts +1 -1
  517. package/dist/core/tools/ask-user-question/state/state.js.map +1 -1
  518. package/dist/core/tools/ask-user-question/tool/format-answer.d.ts +1 -1
  519. package/dist/core/tools/ask-user-question/tool/format-answer.js.map +1 -1
  520. package/dist/core/tools/ask-user-question/tool/response-envelope.d.ts +1 -1
  521. package/dist/core/tools/ask-user-question/tool/response-envelope.js.map +1 -1
  522. package/dist/core/tools/ask-user-question/tool/validate-questionnaire.d.ts +1 -1
  523. package/dist/core/tools/ask-user-question/tool/validate-questionnaire.js.map +1 -1
  524. package/dist/core/tools/ask-user-question/view/components/multi-select-view.d.ts +1 -1
  525. package/dist/core/tools/ask-user-question/view/components/multi-select-view.js.map +1 -1
  526. package/dist/core/tools/ask-user-question/view/components/preview/markdown-content-cache.d.ts +1 -1
  527. package/dist/core/tools/ask-user-question/view/components/preview/markdown-content-cache.js.map +1 -1
  528. package/dist/core/tools/ask-user-question/view/components/preview/preview-block-renderer.d.ts +1 -1
  529. package/dist/core/tools/ask-user-question/view/components/preview/preview-block-renderer.js.map +1 -1
  530. package/dist/core/tools/ask-user-question/view/components/preview/preview-layout-decider.d.ts +1 -1
  531. package/dist/core/tools/ask-user-question/view/components/preview/preview-layout-decider.js.map +1 -1
  532. package/dist/core/tools/ask-user-question/view/components/preview/preview-pane.d.ts +1 -1
  533. package/dist/core/tools/ask-user-question/view/components/preview/preview-pane.js.map +1 -1
  534. package/dist/core/tools/ask-user-question/view/components/submit-picker.js.map +1 -1
  535. package/dist/core/tools/ask-user-question/view/components/wrapping-select.js.map +1 -1
  536. package/dist/core/tools/ask-user-question/view/dialog-builder.d.ts +1 -1
  537. package/dist/core/tools/ask-user-question/view/dialog-builder.js.map +1 -1
  538. package/dist/core/tools/ask-user-question/view/props-adapter.d.ts +1 -1
  539. package/dist/core/tools/ask-user-question/view/props-adapter.js.map +1 -1
  540. package/dist/core/tools/ask-user-question/view/tab-content-strategy.d.ts +1 -1
  541. package/dist/core/tools/ask-user-question/view/tab-content-strategy.js.map +1 -1
  542. package/dist/core/tools/bash.d.ts.map +1 -1
  543. package/dist/core/tools/bash.js +16 -11
  544. package/dist/core/tools/bash.js.map +1 -1
  545. package/dist/core/tools/find.d.ts +2 -2
  546. package/dist/core/tools/find.d.ts.map +1 -1
  547. package/dist/core/tools/find.js +1 -1
  548. package/dist/core/tools/find.js.map +1 -1
  549. package/dist/core/usage-totals.d.ts.map +1 -1
  550. package/dist/core/usage-totals.js +4 -0
  551. package/dist/core/usage-totals.js.map +1 -1
  552. package/dist/extensions/herdr/index.d.ts.map +1 -1
  553. package/dist/extensions/herdr/index.js +0 -7
  554. package/dist/extensions/herdr/index.js.map +1 -1
  555. package/dist/extensions/llama/client.d.ts +2 -0
  556. package/dist/extensions/llama/client.d.ts.map +1 -1
  557. package/dist/extensions/llama/client.js +6 -2
  558. package/dist/extensions/llama/client.js.map +1 -1
  559. package/dist/extensions/llama/provider.d.ts.map +1 -1
  560. package/dist/extensions/llama/provider.js +18 -4
  561. package/dist/extensions/llama/provider.js.map +1 -1
  562. package/dist/index.d.ts +10 -1
  563. package/dist/index.d.ts.map +1 -1
  564. package/dist/index.js +5 -0
  565. package/dist/index.js.map +1 -1
  566. package/dist/main-session.d.ts.map +1 -1
  567. package/dist/main-session.js +19 -10
  568. package/dist/main-session.js.map +1 -1
  569. package/dist/main.d.ts.map +1 -1
  570. package/dist/main.js +4 -5
  571. package/dist/main.js.map +1 -1
  572. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
  573. package/dist/modes/interactive/components/branch-summary-message.js +12 -5
  574. package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
  575. package/dist/modes/interactive/components/chat-message-renderer.d.ts +5 -1
  576. package/dist/modes/interactive/components/chat-message-renderer.d.ts.map +1 -1
  577. package/dist/modes/interactive/components/chat-message-renderer.js.map +1 -1
  578. package/dist/modes/interactive/components/chat-session-host-events.d.ts +2 -2
  579. package/dist/modes/interactive/components/chat-session-host-events.js.map +1 -1
  580. package/dist/modes/interactive/components/compaction-boundary-message.d.ts.map +1 -1
  581. package/dist/modes/interactive/components/compaction-boundary-message.js +17 -9
  582. package/dist/modes/interactive/components/compaction-boundary-message.js.map +1 -1
  583. package/dist/modes/interactive/components/custom-editor.d.ts +6 -0
  584. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
  585. package/dist/modes/interactive/components/custom-editor.js +17 -0
  586. package/dist/modes/interactive/components/custom-editor.js.map +1 -1
  587. package/dist/modes/interactive/components/host-input-form-mount.d.ts +1 -1
  588. package/dist/modes/interactive/components/host-input-form-mount.js.map +1 -1
  589. package/dist/modes/interactive/components/host-input-form.d.ts +1 -1
  590. package/dist/modes/interactive/components/host-input-form.js.map +1 -1
  591. package/dist/modes/interactive/components/host-session-picker.d.ts +1 -1
  592. package/dist/modes/interactive/components/host-session-picker.js.map +1 -1
  593. package/dist/modes/interactive/components/reserved-bottom-overlay.d.ts +1 -1
  594. package/dist/modes/interactive/components/reserved-bottom-overlay.js.map +1 -1
  595. package/dist/modes/interactive/components/scroll-widget.d.ts +1 -1
  596. package/dist/modes/interactive/components/scroll-widget.js.map +1 -1
  597. package/dist/modes/interactive/components/settings-selector-handlers.d.ts.map +1 -1
  598. package/dist/modes/interactive/components/settings-selector-handlers.js +3 -0
  599. package/dist/modes/interactive/components/settings-selector-handlers.js.map +1 -1
  600. package/dist/modes/interactive/components/settings-selector-items.d.ts.map +1 -1
  601. package/dist/modes/interactive/components/settings-selector-items.js +50 -1
  602. package/dist/modes/interactive/components/settings-selector-items.js.map +1 -1
  603. package/dist/modes/interactive/components/settings-selector-submenus.d.ts.map +1 -1
  604. package/dist/modes/interactive/components/settings-selector-submenus.js +2 -1
  605. package/dist/modes/interactive/components/settings-selector-submenus.js.map +1 -1
  606. package/dist/modes/interactive/components/settings-selector-types.d.ts +6 -1
  607. package/dist/modes/interactive/components/settings-selector-types.d.ts.map +1 -1
  608. package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
  609. package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
  610. package/dist/modes/interactive/components/skill-invocation-message.js +11 -4
  611. package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
  612. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  613. package/dist/modes/interactive/components/tool-execution.js +14 -9
  614. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  615. package/dist/modes/interactive/interactive-auth-login.js +1 -1
  616. package/dist/modes/interactive/interactive-auth-login.js.map +1 -1
  617. package/dist/modes/interactive/interactive-auth-routing.js +2 -2
  618. package/dist/modes/interactive/interactive-auth-routing.js.map +1 -1
  619. package/dist/modes/interactive/interactive-autocomplete.js +4 -0
  620. package/dist/modes/interactive/interactive-autocomplete.js.map +1 -1
  621. package/dist/modes/interactive/interactive-bash-compact.d.ts.map +1 -1
  622. package/dist/modes/interactive/interactive-bash-compact.js +13 -6
  623. package/dist/modes/interactive/interactive-bash-compact.js.map +1 -1
  624. package/dist/modes/interactive/interactive-extension-runtime.js +5 -0
  625. package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
  626. package/dist/modes/interactive/interactive-input-handling.js +2 -2
  627. package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
  628. package/dist/modes/interactive/interactive-mode-deps.d.ts +1 -1
  629. package/dist/modes/interactive/interactive-mode-deps.d.ts.map +1 -1
  630. package/dist/modes/interactive/interactive-mode-deps.js +1 -1
  631. package/dist/modes/interactive/interactive-mode-deps.js.map +1 -1
  632. package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -1
  633. package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
  634. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  635. package/dist/modes/interactive/interactive-render-chat.js +27 -25
  636. package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
  637. package/dist/modes/interactive/interactive-selectors.js +10 -0
  638. package/dist/modes/interactive/interactive-selectors.js.map +1 -1
  639. package/dist/modes/interactive/interactive-startup.d.ts.map +1 -1
  640. package/dist/modes/interactive/interactive-startup.js +2 -2
  641. package/dist/modes/interactive/interactive-startup.js.map +1 -1
  642. package/dist/modes/interactive/interactive-tui.js.map +1 -1
  643. package/dist/modes/interactive-engine/engine-custom-ui.d.ts.map +1 -1
  644. package/dist/modes/interactive-engine/engine-custom-ui.js +3 -1
  645. package/dist/modes/interactive-engine/engine-custom-ui.js.map +1 -1
  646. package/dist/modes/interactive-engine/engine-input-form.d.ts +1 -1
  647. package/dist/modes/interactive-engine/engine-input-form.js.map +1 -1
  648. package/dist/modes/interactive-engine/engine-session-picker.d.ts +1 -1
  649. package/dist/modes/interactive-engine/engine-session-picker.js.map +1 -1
  650. package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
  651. package/dist/modes/interactive-engine/isolated-runtime.js +10 -1
  652. package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
  653. package/dist/modes/interactive-engine/protocol.d.ts +1 -1
  654. package/dist/modes/interactive-engine/protocol.js.map +1 -1
  655. package/dist/modes/interactive-engine/remote-component.js.map +1 -1
  656. package/dist/modes/rpc/rpc-keybindings-reload.d.ts +1 -1
  657. package/dist/modes/rpc/rpc-keybindings-reload.js.map +1 -1
  658. package/dist/modes/rpc/rpc-provider-auth.d.ts +1 -1
  659. package/dist/modes/rpc/rpc-provider-auth.js.map +1 -1
  660. package/dist/session-id-target.d.ts +31 -0
  661. package/dist/session-id-target.d.ts.map +1 -0
  662. package/dist/session-id-target.js +57 -0
  663. package/dist/session-id-target.js.map +1 -0
  664. package/dist/utils/abort.d.ts.map +1 -1
  665. package/dist/utils/abort.js +29 -4
  666. package/dist/utils/abort.js.map +1 -1
  667. package/dist/utils/clipboard-image.d.ts.map +1 -1
  668. package/dist/utils/clipboard-image.js +1 -12
  669. package/dist/utils/clipboard-image.js.map +1 -1
  670. package/dist/utils/clipboard.d.ts.map +1 -1
  671. package/dist/utils/clipboard.js +87 -23
  672. package/dist/utils/clipboard.js.map +1 -1
  673. package/dist/utils/wsl.d.ts +3 -0
  674. package/dist/utils/wsl.d.ts.map +1 -0
  675. package/dist/utils/wsl.js +15 -0
  676. package/dist/utils/wsl.js.map +1 -0
  677. package/docs/background-tasks.md +24 -14
  678. package/docs/build.md +6 -16
  679. package/docs/compaction/reference.md +10 -12
  680. package/docs/compaction.md +30 -112
  681. package/docs/computer-use.md +1 -3
  682. package/docs/containerization.md +4 -5
  683. package/docs/custom-provider/api-reference.md +10 -1
  684. package/docs/custom-provider/oauth.md +4 -2
  685. package/docs/custom-provider/streaming.md +8 -3
  686. package/docs/custom-provider.md +1 -1
  687. package/docs/development.md +13 -138
  688. package/docs/docs.json +19 -5
  689. package/docs/environment-variables.md +20 -4
  690. package/docs/extensions/api-reference.md +6 -2
  691. package/docs/extensions/authoring.md +10 -7
  692. package/docs/extensions/events.md +14 -24
  693. package/docs/extensions/ui.md +3 -4
  694. package/docs/extensions.md +22 -18
  695. package/docs/getting-started/authentication.md +4 -1
  696. package/docs/getting-started/first-session.md +8 -6
  697. package/docs/getting-started/installation.md +8 -4
  698. package/docs/getting-started/project-instructions.md +5 -1
  699. package/docs/guides/configuration.md +10 -5
  700. package/docs/guides/non-interactive.md +2 -2
  701. package/docs/guides.md +8 -17
  702. package/docs/herdr.md +2 -1
  703. package/docs/index.md +2 -2
  704. package/docs/intercom/operations.md +16 -70
  705. package/docs/intercom/reference.md +15 -5
  706. package/docs/intercom.md +10 -6
  707. package/docs/json.md +12 -2
  708. package/docs/keybindings.md +13 -8
  709. package/docs/llama-cpp.md +5 -1
  710. package/docs/{mcp.md → mcp-servers.md} +21 -2
  711. package/docs/models/evals.md +133 -465
  712. package/docs/models/model-selection.md +27 -116
  713. package/docs/models/reference.md +18 -21
  714. package/docs/models.md +7 -4
  715. package/docs/packages/authoring.md +5 -1
  716. package/docs/packages/reference.md +5 -1
  717. package/docs/packages.md +5 -3
  718. package/docs/programmatic.md +3 -1
  719. package/docs/prompt-templates.md +2 -10
  720. package/docs/providers/reference.md +2 -2
  721. package/docs/providers.md +41 -16
  722. package/docs/quickstart.md +7 -3
  723. package/docs/reference/cli.md +19 -11
  724. package/docs/reference.md +3 -6
  725. package/docs/rpc/protocol.md +11 -13
  726. package/docs/rpc.md +5 -1
  727. package/docs/sdk/reference.md +59 -239
  728. package/docs/sdk/structured-decisions.md +132 -0
  729. package/docs/sdk.md +181 -17
  730. package/docs/security.md +7 -4
  731. package/docs/session-format.md +18 -5
  732. package/docs/sessions.md +12 -6
  733. package/docs/settings.md +68 -16
  734. package/docs/skills/authoring.md +7 -1
  735. package/docs/skills.md +25 -6
  736. package/docs/subagents/authoring.md +11 -1
  737. package/docs/subagents/reference.md +98 -10
  738. package/docs/subagents.md +45 -35
  739. package/docs/terminal-setup.md +4 -2
  740. package/docs/termux.md +3 -1
  741. package/docs/themes/reference.md +4 -1
  742. package/docs/themes.md +1 -1
  743. package/docs/tools.md +431 -20
  744. package/docs/tui/reference.md +13 -14
  745. package/docs/tui.md +10 -6
  746. package/docs/usage.md +19 -7
  747. package/docs/web-access.md +5 -1
  748. package/docs/windows.md +18 -11
  749. package/docs/workflows/api-reference.md +135 -25
  750. package/docs/workflows/authoring.md +48 -39
  751. package/docs/workflows/builtins.md +20 -26
  752. package/docs/workflows/operations.md +284 -137
  753. package/docs/workflows/reliable-design.md +62 -129
  754. package/docs/workflows.md +10 -16
  755. package/examples/extensions/custom-provider-anthropic/index.ts +15 -10
  756. package/examples/extensions/custom-provider-gitlab-duo/index.ts +2 -2
  757. package/examples/extensions/prompt-customizer.ts +17 -37
  758. package/npm-shrinkwrap.json +502 -709
  759. package/package.json +12 -10
  760. package/dist/builtin/workflows/builtin/chunk-m0xfsef8.js +0 -2813
  761. package/docs/models/artificial-analysis-index.md +0 -89
  762. package/docs/models/pareto-efficiency.md +0 -90
  763. package/docs/tools/edit.md +0 -378
package/CHANGELOG.md CHANGED
@@ -2,6 +2,137 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.20-alpha.4] - 2026-09-20
6
+
7
+ ### Breaking Changes
8
+
9
+ - Provider implementations now receive transcript-only contexts. Read instructions and tools with `getCurrentSystemPrompt(context.messages)` and `getCurrentTools(context.messages)`. Extension prompt options are mutable; return a forced system prompt only for an unrecorded, complete per-run replacement.
10
+
11
+ - Intercom now respects tool allowlists and exclusions. `tools: []` and `noTools: "all"` expose no tools; `noTools: "all"` also overrides nonempty allowlists. Select `"intercom"` explicitly when using an allowlist. The builtin selection flags in `CreateAgentSessionOptions` can disable individual shipped packages and resources without reload restoring them ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
12
+ - Extension dialogs without human-input support now reject with `code: "HumanInputUnavailable"` instead of returning empty defaults. Check `ctx.hasHumanInput` for questions; `ctx.hasUI` remains a presentation capability. Pending dialogs are cancelled on adapter withdrawal, abort, reload and disposal ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
13
+ - Headless workflow launches now return an accepted run identity instead of waiting for completion. Inspect workflow status for results. Required durable gates remain pending even when no human host was initially bound; absent UI is no longer inferred as an execution restriction. Explicit runtime policies remain enforced ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
14
+ - `AgentSession.dispose()` now returns a promise. Await it to cancel and drain owned work, including admitted prompt hooks and reload preparation, flush persistence and release builtin resources. Repeated calls share the same outcome; partial cleanup rejects with `code: "ShutdownFailed"` rather than reporting success. Runtime replacement uses the same shutdown and preserves host bindings. Suspended callbacks must settle before cleanup completes; retired preflight cannot start a provider or publish a reload candidate ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
15
+ - Terminal shutdown now seals compaction and user/custom queues and drains initial extension binding, steering/follow-up hooks and pending runtime replacement factories/startup before resolving. Independent sessions borrowing the same resource loader or session storage no longer share workflow/native-task shutdown ownership. Custom forwarding loaders, subclasses and copied/edited extension registrations retain caller policy and session-local API bindings. Failed factories unwind owned acquisitions; failed outgoing retirement still finalizes retained workflow resources before rejecting ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
16
+ - Factory rollback now covers pre-constructor setup and preserves all cleanup causes. Concurrent runtime replacements retire displaced successors and preserve surviving workflow ownership after candidate failure. Disposal cancels all shell calls with repeated caller IDs and reports real, session-attributed settings write failures without consuming shared manager errors ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
17
+ - Closing preserves queued conversation events and persistence, drains current and superseded background summaries, and rolls back candidate acquisitions when reload discovery fails before startup. Reload cleanup failures retain every original and cleanup cause ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
18
+ - Model-tool workflow launches now use `workflow route` with actual request/message/document text, then `workflow run` with the registered execution ID and inputs. Reservations retain one identity through admission and supported lifecycle operations; invalid inputs can be corrected without rerouting. Old run-as-router calls and duration values are rejected. Estimates use canonical quarter-hour labels through `1d`, plus `>1d`; budgets and approval gates remain unchanged ([#3106](https://github.com/bastani-inc/atomic/issues/3106)).
19
+ - Renamed the TypeSafe Jev environment variable from `TYPESAFE_AI_API_KEY` to `TYPESAFE_API_KEY`. Update shell and deployment configuration; the old name is no longer recognized. Saved `/login typesafe-ai` credentials are unchanged.
20
+ - Renamed the direct Jev decision model from `typesafe-ai/jev` to `typesafe-ai/jev-latest`. Update `routerModel` settings and explicit SDK selections; saved TypeSafe credentials are unchanged.
21
+ - Workflow duration estimates no longer accept the string value "unknown"; routers give their best estimate using the existing quarter-hour buckets or `>1d`.
22
+
23
+ ### Added
24
+
25
+ - System instructions and tool changes are recorded as chronological transcript messages, with structured prompt patches and replay across resume, branches, and verbatim compaction. Supported providers preserve the cached prefix for mid-conversation updates.
26
+
27
+ - Optional prompt-cache warming (`streaming`, `idle`, or `off`) refreshes replayable caches before TTL expiry, with owner/session cancellation and a `/settings` control. Default mode is streaming; prompt-cache retention still defaults to long where the model supports it.
28
+
29
+ - Added workflow dependency status, doctor and safe managed-cluster recovery through `/workflow dependency`, the workflow tool and `workflowDependency()`, reporting verified identity, actual port, runtime versions, consumers, retained latest failure and recovery guidance without resetting data ([#3074](https://github.com/bastani-inc/atomic/issues/3074)).
30
+ - Session, Workflow, and Intercom UUID selectors accept unique 8-character hexadecimal prefixes while preserving exact custom IDs and visibility boundaries ([#2603](https://github.com/bastani-inc/atomic/issues/2603)).
31
+ - Attached stage chats show `[stage: name]` on the composer top rule, a mounted question's top rule, and awaiting-input prompt borders ([#2886](https://github.com/bastani-inc/atomic/issues/2886), [#3013](https://github.com/bastani-inc/atomic/pull/3013) by [@sumitvairagar](https://github.com/sumitvairagar)).
32
+ - Added bounded structured-decision SDK APIs and direct TypeSafe Jev Choice integration. The shared `routerModel` setting selects prerequisite routing inference; general `inferStructuredOutput()` calls select their inference model explicitly and remain one-shot. Decisions validate exact schema values without agent loops. The selected chat model and `structured_output` tool are unchanged ([#3089](https://github.com/bastani-inc/atomic/issues/3089), [#3090](https://github.com/bastani-inc/atomic/issues/3090)).
33
+ - Model-tool workflow launches now require task/conversation/documentation state and one bounded routing decision before admission. Tool results show the validated workflow and exact budget as formatted JSON; `none` means continue inline without launching, and stale registry decisions are refused. Routing context containing known configured credentials is rejected before either provider receives it. User `/workflow` commands and authored `ctx.workflow(...)` calls bypass routing ([#3089](https://github.com/bastani-inc/atomic/issues/3089)).
34
+ - Added opt-in subagent `model: "auto"` routing for single tasks, parallel tasks and agent defaults, using available model/effort pairs and shipped evaluation guidance. The shared `routerModel` setting selects the decision provider; invalid or stale decisions prevent child launch, and selected versus fallback execution models remain distinct in task metadata ([#3090](https://github.com/bastani-inc/atomic/issues/3090)).
35
+ - TypeSafe Jev supports API-key login and logout through the normal credential store, with environment-key fallback. Saved Jev credentials can select the default router while Jev remains absent from chat-model selection.
36
+ - Added a searchable Router model entry in `/settings`, saving automatic routing, Jev, or an available provider/model to `settings.json` without changing the chat model.
37
+ - Added workflow-stage `model: "auto"` selection from actual prompts and evaluation guidance, with constrained model/effort pairs and separate selected versus execution metadata.
38
+
39
+ - SDK hosts can provide typed `HostInput` callbacks for confirmations, selection, text and questionnaires without a terminal. Replies are validated and carry session/request identity and cancellation; the onDiagnostic callback receives session-attributed operational messages ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
40
+ - SDK human-input callbacks now answer durable workflow approvals and stage questionnaires, including nested workflows, with workflow/run identity. Withdrawing or replacing a host keeps unresolved approvals pending and rejects stale replies; the same definition can resume under a different host without repeating checkpointed tool effects ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
41
+ - Added `openrouter/~typesafe/jev-latest` for routing and SDK structured decisions through OpenRouter's Decisions API, reusing existing OpenRouter sign-in, saved API keys, and environment fallback without a TypeSafe key.
42
+
43
+ ### Changed
44
+
45
+ - Install/update telemetry pings now go to the Atomic version-adoption endpoint instead of pi.dev. First-interactive-launch triggers, opt-outs, and the independent update check are unchanged ([#2498](https://github.com/bastani-inc/atomic/issues/2498)).
46
+ - Pi runtime dependencies (`pi-agent-core`, `pi-client`, `pi-protocol`, `pi-tui`, `pi-telemetry`, and transitive `chord`) are pinned to 0.86.1. Workspace package versions remain `0.0.0`.
47
+ - Automatic subagent and workflow-stage model selection no longer includes system prompts as agent metadata, reducing routing input. Execution prompts are unchanged; self-contained subagents still use their system prompt as the task when no task is supplied.
48
+ - SDK session creation now includes shipped Atomic builtin extensions and resources, shares CLI defaults, and completes extension startup before returning. Supply startup host bindings through the extensionBindings option; rebinding no longer repeats startup. Failed startup rolls back the partial session, and missing shipped packages report `code: "BuiltinUnavailable"` ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
49
+ - Main chat, workflow stages, and subagents now default to long prompt-cache retention where supported. Unset retention uses ordinary caching for OpenAI models without known extended-retention support, such as GPT-4o, and five-minute caching for older Bedrock Claude models, such as Claude 3.7. Explicit retention choices remain unchanged; use `PI_CACHE_RETENTION=short` to opt back into shorter caching. Anthropic one-hour cache writes cost more than five-minute writes, so savings depend on reuse.
50
+ - All bundled workflows and subagents now default to `model: "auto"`, selecting task-specific models and efforts instead of fixed fallback chains. Explicit model/effort selections remain supported; main-chat defaults and user-authored resources are unchanged.
51
+ - Automatic model selection now ranks up to three distinct eligible models with individual reasoning efforts. Subagents and workflow stages try them in order before remaining configured fallbacks; workflow resume preserves the ranking.
52
+ - Automatic subagent and workflow-stage model selection now uses bounded excerpts of long tasks, preserving their beginning, end and protected `<keepContext>` spans. Execution prompts and hard model constraints remain unchanged; oversized protected content retains the existing router fallback behavior.
53
+ - Automatic subagent and workflow-stage model selection now sends the factual `evals.md` benchmark records as the router's evals state field instead of sending the general model-selection guide. The guide stays human-readable and links to the dated eval records, which use markdown tables.
54
+
55
+ ### Removed
56
+
57
+ - Removed the Benchmark Sources and Pareto Efficiency documentation pages. Dated measurements and one-paragraph benchmark explainers live in Evals; general selection guidance stays in Model Selection.
58
+
59
+ ### Fixed
60
+
61
+ - Automatic compaction cancelled from a `compaction_start` listener now aborts the auto controller before `session_before_compact` or planner auth.
62
+ - Anthropic thinking-drop notices are short, omit path details, and stay silent when the cumulative drop count is unchanged.
63
+ - Isolated-engine prompts wait for the remote prompt RPC to settle, and stale kitty image conversions no longer replace a later tool result.
64
+ - Fixed idle prompt-cache warming rebuilding expired caches when its timer or an extension decision is delayed.
65
+ - Fixed clipboard copy failing in containers and WSL without WSLg by restoring the OSC 52 fallback when no display is available, and added a verified Windows clipboard backend for WSL ([earendil-works/pi#9688](https://github.com/earendil-works/pi/issues/9688)).
66
+ - Clipboard copy from an SSH or Mosh session into WSL now emits only OSC 52 for the connected client instead of also writing the remote host's Windows clipboard.
67
+ - Fixed inherited z.ai `Prompt too long` errors not being recognized as context overflow ([earendil-works/pi#9805](https://github.com/earendil-works/pi/issues/9805)).
68
+ - Fixed inherited Cerebras models advertising unsupported strict tool schemas, which caused HTTP 400 errors when strict and non-strict tools were mixed ([earendil-works/pi#9804](https://github.com/earendil-works/pi/pull/9804) by [@EdenGottlieb](https://github.com/EdenGottlieb)).
69
+
70
+ - Skill invocation summaries expand and collapse on left-click, matching branch summaries and compaction boundaries.
71
+ - Fireworks deferred-tool docs now describe chronological system-message tool additions and removals instead of the removed added-tool-names field from tool results.
72
+
73
+ - Reload now releases unpublished preparation acquisitions, drains failed candidate callbacks before shutdown, and retains self-reload command continuations through final disposal, including cleanup failures ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
74
+ - Reload now retains retiring-generation shutdown and invalidation when postcommit runtime reconstruction fails, preserving both setup and cleanup causes and keeping the candidate owned for disposal ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
75
+ - Custom messages received during tool execution now enter conversation history after the tool results and before the next assistant response, including when extension callbacks finish asynchronously ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
76
+ - Entry renderer discovery preserves the registered function identity while transcript rendering uses the owning session and rejects retired runners ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
77
+ - Session disposal now reports event-listener failures occurring during shutdown through its aggregate rejection while still flushing consumed workflow reconciliation and attempting remaining cleanup ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
78
+
79
+ - Stage-scoped durable workflow resume now refuses before dispatch instead of resuming the whole root, including restored local shadows of paused durable runs, and prefix resume no longer treats nested children as root candidates ([#2603](https://github.com/bastani-inc/atomic/issues/2603)).
80
+
81
+ - Explicit Intercom reply names and full session IDs keep their original identity through broker collision checks, unique UUID prefixes still canonicalize to the stored session ID, and hidden same-name collisions refuse regardless of letter case ([#2603](https://github.com/bastani-inc/atomic/issues/2603)).
82
+
83
+ - Canonicalized Intercom UUID-prefix sends revalidate the original selector against the broker's current authorized sessions, so a newly visible same-prefix UUID, exact name, or custom ID refuses instead of delivering to the previously unique identity ([#2603](https://github.com/bastani-inc/atomic/issues/2603)).
84
+
85
+ - Prefix ambiguity refusals no longer include unauthorized or hidden session names when a canonicalized UUID-prefix send is rejected ([#2603](https://github.com/bastani-inc/atomic/issues/2603)).
86
+
87
+ - Running Atomic inside a Herdr pane no longer leaves the pane unreported or labelled as another agent when Herdr's installed Pi integration is present. Herdr installs `herdr-agent-state.ts` into the legacy `~/.pi/agent/extensions` directory that Atomic also loads from, and Atomic used to stand its built-in reporter down as soon as that file loaded — but the installed asset reports itself as `pi`, so the pane ended up mislabelled or never updated at all. Inside a Herdr pane Atomic now skips that installed integration when loading extensions and reports the pane itself; outside a Herdr pane the file loads exactly as before. Nothing to configure, and the extra extension no longer needs to be disabled by hand ([#2416](https://github.com/bastani-inc/atomic/pull/2416) by [@makgunay](https://github.com/makgunay))
88
+ - Request authentication now fails within 15 seconds of one credential-preparation attempt when refresh or derivation does not settle, including a fallback whose OAuth login has expired. Agent sessions reuse that request's resolved auth for transport setup instead of starting a second deadline. Timeout errors tell you to check the provider's credential source rather than to log in. Operator cancellation still aborts without fallback or an auth-block notice, and the bound does not apply to human-input waits, tool execution, or an already-opened model stream ([#3085](https://github.com/bastani-inc/atomic/issues/3085), [#3087](https://github.com/bastani-inc/atomic/pull/3087)).
89
+ - `/reload` now remounts a still-live extension panel after the previous generation is cleared, instead of leaving the panel gone. Replacing one panel with another still does not count as a clear ([#2529](https://github.com/bastani-inc/atomic/issues/2529)).
90
+ - MCP server URLs now support `${VAR}` and `$env:VAR` environment interpolation, including deployment-specific origins in shared configuration. Empty, invalid, or unsupported resolved endpoints report a configuration error before connecting. Diagnostics redact query-key credentials, while manual OAuth instructions show the complete authorization URL, including all paths, parameters, and any credentials ([#3088](https://github.com/bastani-inc/atomic/issues/3088)).
91
+ - After DBOS initialization, workflow root database registration now has a 10-second deadline instead of waiting for the request timeout. Unavailable admission skips database cleanup, preserving the failure diagnostic and run identity even when PostgreSQL stops answering. Cancelled admission cannot start workflow code later, and database loss invalidates admission readiness. First-time provisioning and initialization are outside this bound ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
92
+ - Malformed saved workflow topology is non-resumable. Rejection during root admission returns a failed run result without executing workflow code or hiding database write failures ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
93
+ - Timed-out or cancelled workflow resume admission no longer publishes stale ownership metadata when its database operation finishes late ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
94
+ - Database-rejected workflow admission preserves PostgreSQL authentication and permission diagnostics and removes a never-persisted local run without reporting it as still running ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
95
+ - Resume continuations skip cleanup when database admission is unavailable, leaving the source resumable instead of waiting on the failed database ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
96
+ - Cancellation during admission now retires a possibly committed database record without waiting on the abandoned admission write, including a checkpointed continuation whose resume has not finished. Failed cancellation persistence retains the local cancelled outcome and warns that database state is unknown ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
97
+ - Graceful quit during startup admission acknowledges the local stop immediately without waiting for registration. Registration settlement retains its admission deadline, including when a local kill arrives while registration finishes. Settlement failures appear in run status while preserving the local pause and resumability for continuations with saved durable progress. Runs without usable durable progress remain nonresumable ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
98
+ - Pausing during startup acknowledges immediately and retains the live executor without waiting for database admission. Later admission failures retain their original diagnostic in run status, and resume releases the failed attempt instead of leaving it stuck behind a rejected pause ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
99
+ - Workflow status distinguishes pending database admission from execution and reports dependency failures, phase age, and last progress. Live executor pause/resume reports local versus confirmed database persistence, stays responsive during outages, and preserves the paused owner for same-ID recovery ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
100
+ - Live executor resume allows up to 10 seconds for database confirmation instead of using the 500ms pause acknowledgement budget, avoiding false timeouts on healthy remote PostgreSQL connections ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
101
+ - Live executor pause acknowledges within 500ms while database confirmation continues for up to 10 seconds. Healthy slower connections no longer leave a false dependency failure; status updates to durable when confirmation succeeds ([#3072](https://github.com/bastani-inc/atomic/issues/3072)).
102
+ - Keep ready shared PostgreSQL running across Atomic client exit and reload, with installation-independent cluster ownership records and consumer leases ([#3074](https://github.com/bastani-inc/atomic/issues/3074)).
103
+ - Managed PostgreSQL verifies server identity and SQL readiness, supports `ATOMIC_POSTGRES_PORT`, and shares an available actual port across sessions without adopting foreign listeners or unregistered data ([#3074](https://github.com/bastani-inc/atomic/issues/3074)).
104
+ - Custom models declared in `models.json` no longer generate automatic `-fast` siblings, preventing invalid choices such as `gpt-6-astra-slow-fast`. Built-in fast variants and `modelOverrides` remain supported.
105
+ - Bedrock requests honor the configured provider retry count, including zero, so bounded router decisions do not make hidden SDK retry attempts ([#3089](https://github.com/bastani-inc/atomic/issues/3089), [#3090](https://github.com/bastani-inc/atomic/issues/3090)).
106
+ - Jev structured decisions now handle choices above 255 options through bounded multi-request tournaments, including every candidate and comparing finalists without cross-batch probability ranking. Subagent auto routing supports large model/effort catalogs; workflow routing retains `none` and exact budgets. One shared deadline and fail-closed validation cover all rounds ([#3089](https://github.com/bastani-inc/atomic/issues/3089), [#3090](https://github.com/bastani-inc/atomic/issues/3090)).
107
+ - Workflow routing preserves omitted budget fields with strict-schema providers instead of rejecting their required null placeholders. Explicit zero and fractional limits retain their exact meaning.
108
+ - Subagent auto routing uses the routed thinking level when checking unsuffixed fallbacks and cancels sibling routing requests when a parallel routing decision fails ([#3103](https://github.com/bastani-inc/atomic/pull/3103)).
109
+ - The Router model picker updates an existing project override instead of silently changing a global default that the project ignores, and displays the save scope ([#3103](https://github.com/bastani-inc/atomic/pull/3103)).
110
+ - Saved Jev credentials become available to automatic routing immediately after login, even during catalog refresh; stale refreshes no longer restore credentials after logout.
111
+ - Workflow and automatic model routing now repair malformed or schema-invalid answers up to three times after the initial attempt, including Jev, within one shared deadline. Authentication/provider failures, cancellation and stale decisions still stop without retries or launch.
112
+ - Workflow and subagent children retain the invoking SDK session's model/auth configuration, host callbacks and tool restrictions through fallback. Child requests and diagnostics keep their own session identity; disabled Intercom cannot grant supervisor access, and workflow children no longer share their parent stage's pending asks ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
113
+ - Workflow stage questionnaires respect explicit child human-input adapters and withdrawal without losing durable pending/rebind behavior. Stage fallback replacements enforce inherited model restrictions instead of treating fallback candidates as unrestricted primaries ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
114
+ - Explicitly rebinding a workflow child to its originally inherited adapter now keeps questions with that selected host after parent rebinding, including across child reload ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
115
+ - Child sessions honor a supplied session manager's working directory when the cwd option is omitted, and optional `undefined` child configuration no longer discards inherited models, settings or host callbacks ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
116
+ - Failed file-loaded extension factories now run registered rollback cleanup; cleanup failures reject instead of becoming discovery-only diagnostics. Reload seals retiring input before successor startup. Disposal drains asynchronous extension notifications, bus handlers, shortcuts and workflow observers before shutdown, including notifications from synchronous thinking/session-name setters ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
117
+ - Command-context session replacement no longer waits on its own command. It seals retiring admission and drains peers before handoff, while final disposal still drains the command continuation and cleanup. Closing preserves completed tool results and hooks, and nontransactional reload failures release owned acquisitions without closing borrowed discovery ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
118
+ - Concurrent command replacements no longer circularly drain one another. Reload activation and commit failures clean their started candidates, and unpublished MCP initialization cleanup failures remain explicit during disposal ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
119
+ - SDK creation now cleans owned factory acquisitions omitted by extension selection without disabling selected extensions. Self-reload revokes captured old APIs before successor admission while retaining continuation cleanup and deferred failures ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
120
+ - Filtered creation and reload now retire omitted factories' APIs and subscriptions independently, preserving selected extensions. Captured extension actions refuse new work immediately during close/reload, while admitted subprocesses drain. Deferred shutdown after self-reload or command replacement can no longer mutate, acquire task hosts from, or send events into the successor ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
121
+ - Reload acquisition rollback no longer depends on a working extension getter. Shutdown and factory rollback now wait for tracked cleanup subprocesses after handlers return, while keeping fresh admission closed. Released event subscriptions and workflow publishers no longer retain completed release callbacks or their captured data after manual release or generation invalidation ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
122
+ - Factory rollback now refuses fresh work across all closing factories before awaiting cleanup and lets already-admitted callbacks finish before shutdown. Omitted factories drain independently of selected extensions sharing their runtime, preventing late resource leaks without blocking surviving extensions ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
123
+ - Workflow resource refreshes started through the extension API now finish before disposal, reload retirement or failed-factory cleanup, preventing late acquisitions from surviving successful shutdown ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
124
+ - Installed Node SDK consumers can now check the complete public declarations with strict NodeNext settings and `skipLibCheck: false`, including model catalogs and the find tool's path interface ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
125
+ - Prepared SDK services no longer reconstruct safe extensions or repeat their startup when project trust completes. Additional sessions borrowing those services keep independent extension lifetimes ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
126
+ - Jev structured decisions no longer reject responses solely because their probabilities do not sum to one.
127
+ - Jev SDK decisions retain their original model, provider and credentials across tournament rounds when callers mutate their model selection during inference.
128
+ - `/logout` now autocompletes providers with stored API-key or subscription credentials and opens a filtered selector when a provider is supplied, instead of sending the command as a prompt.
129
+ - Built-in Cloudflare AI Gateway, GitHub Copilot, and OpenCode routes now respect OpenAI model limits when choosing default cache retention, avoiding unsupported extended retention on models such as GPT-4o. Explicit retention overrides remain unchanged.
130
+ - Jev failures now report SDK error classes, recognized context-limit diagnostics and safe request IDs instead of generic provider-availability advice. Requests use the TypeSafe SDK without hidden retries or body logging.
131
+ - Automatic routing switches from Jev to the current chat model after an HTTP/connection failure or exhausted output repairs. By default each provider gets an initial attempt plus three corrective retries for invalid output, with a reported switch and one shared context, validation contract and deadline. Explicit router selections and general structured-output calls remain pinned.
132
+ - Reduced routing context with a concise model-selection guide and per-candidate contracts instead of repeated catalogs. Jev checks every request against conservative context budgets, splits verbose choices even below 255 options, and avoids sending oversized inputs.
133
+ - Extension imports of provider environment helpers now resolve correctly during workflow loading and reload instead of failing with `compat.js/utils/provider-env` module errors.
134
+ - Automatic subagent and workflow-stage model selection now receives the shipped model-selection guide directly, restoring benchmark guidance that the previous provider-identity filter excluded.
135
+
5
136
  ## [0.9.20-alpha.3] - 2026-09-16
6
137
 
7
138
  ### Fixed
package/README.md CHANGED
@@ -243,10 +243,10 @@ Sessions auto-save to `~/.atomic/agent/sessions/` organized by working directory
243
243
  atomic -c # Continue most recent session
244
244
  atomic -r # Browse and select from past sessions
245
245
  atomic --no-session # Ephemeral mode (don't save)
246
- atomic --session <path|id> # Use specific session file or partial ID
246
+ atomic --session <path|id> # Use a file, exact ID, or unique 8-hex UUID prefix
247
247
  atomic --session-id <id> # Use/create an exact project-local session ID
248
248
  atomic --name "Refactor" # Set the session display name
249
- atomic --fork <path|id> # Fork specific session file or ID into a new session
249
+ atomic --fork <path|id> # Fork a file, exact ID, or unique 8-hex UUID prefix
250
250
  ```
251
251
 
252
252
  Use `/session` in interactive mode to see the current session ID before reusing it with `--session <id>`, `--session-id <id>`, or `--fork <id>`.
@@ -294,8 +294,16 @@ See [docs/settings.md](docs/settings.md) for all options.
294
294
 
295
295
  Atomic has two separate startup features:
296
296
 
297
- - **Update check:** checks whether a newer Atomic version exists. Disable it with `ATOMIC_SKIP_VERSION_CHECK=1` (`PI_SKIP_VERSION_CHECK=1` remains a legacy alias). Disabling update checks only turns off this check.
298
- - **Install/update telemetry:** after first install or a changelog-detected update, sends an anonymous version ping. Opt out by setting `enableInstallTelemetry` to `false` in `settings.json`, or by setting `ATOMIC_TELEMETRY=0` (`PI_TELEMETRY=0` remains a legacy alias). This does not disable update checks; Atomic may still check for the latest version unless update checks are disabled or offline mode is enabled.
297
+ - **Update check:** checks whether a newer Atomic version exists. Disable it with `ATOMIC_SKIP_VERSION_CHECK=1` (`PI_SKIP_VERSION_CHECK=1` remains a legacy alias). Disabling update checks only turns off this check. The update check is independent of version-adoption telemetry.
298
+ - **Version-adoption telemetry:** measures whether releases reach real interactive launches and which versions stay in use. The metric is version-adoption pings / first-interactive-launch pings, not installs, users, MAU, or retention. Repeated eligible launches on several machines overcount. Opt-outs, offline mode, and dropped best-effort requests undercount.
299
+
300
+ Atomic sends one GET to `https://atomic-version-adoption.bastani-atomic.workers.dev/v1/version-adoption` with the running version as the `version` query parameter and the existing `atomic/<version> (<platform>; <runtime>; <arch>)` User-Agent. There is no request body, UUID, cookie, auth header, or user content.
301
+
302
+ The ping fires only in interactive mode, and only on the first interactive launch with fresh settings (no recorded changelog version), or the first interactive launch after an update whose version has changelog entries. It does not fire on every launch, on npm install, on a reinstall that kept settings, or in `-p` / RPC modes.
303
+
304
+ Atomic stores only UTC date, version, and an aggregate count, retained as aggregates. Cloudflare, the hosting provider, necessarily processes transient connection metadata (IP, TLS) to serve the request. That is not a promise of platform-wide zero logging.
305
+
306
+ Opt out by setting `enableInstallTelemetry` to `false` in `settings.json`, or by setting `ATOMIC_TELEMETRY=0` (`PI_TELEMETRY=0` remains a legacy alias). `ATOMIC_TELEMETRY=1`/`true`/`yes` forces the ping on. This does not disable update checks.
299
307
 
300
308
  Use `--offline` or `ATOMIC_OFFLINE=1` (`PI_OFFLINE=1` remains a legacy alias) to disable all startup network operations described here, including update checks, package update checks, and install/update telemetry.
301
309
 
@@ -546,9 +554,9 @@ cat README.md | atomic -p "Summarize this text"
546
554
  |--------|-------------|
547
555
  | `-c`, `--continue` | Continue most recent session |
548
556
  | `-r`, `--resume` | Browse and select session |
549
- | `--session <path\|id>` | Use specific session file or partial UUID |
557
+ | `--session <path\|id>` | Use a session file, exact ID, or unique 8-hex UUID prefix |
550
558
  | `--session-id <id>` | Use an exact project session ID; warn and create it when missing |
551
- | `--fork <path\|id>` | Fork specific session file or partial UUID into a new session |
559
+ | `--fork <path\|id>` | Fork a session file, exact ID, or unique 8-hex UUID prefix |
552
560
  | `--session-dir <dir>` | Custom session storage directory |
553
561
  | `--name <name>`, `-n <name>` | Set the session display name |
554
562
  | `--no-session` | Ephemeral mode (don't save) |
@@ -655,7 +663,7 @@ atomic --thinking high "Solve this complex problem"
655
663
  | `ATOMIC_PACKAGE_DIR` | Override package directory (useful for Nix/Guix where store paths tokenize poorly; `PI_PACKAGE_DIR` is a legacy alias) |
656
664
  | `ATOMIC_OFFLINE` | Disable startup network operations, including update checks, package update checks, and install/update telemetry (`PI_OFFLINE` is a legacy alias) |
657
665
  | `ATOMIC_SKIP_VERSION_CHECK` | Skip the Atomic version update check at startup. `PI_SKIP_VERSION_CHECK` is a legacy alias. |
658
- | `ATOMIC_TELEMETRY` | Override install/update telemetry. Use `1`/`true`/`yes` to enable or `0`/`false`/`no` to disable. This does not disable update checks (`PI_TELEMETRY` is a legacy alias). |
666
+ | `ATOMIC_TELEMETRY` | Override version-adoption pings. Use `1`/`true`/`yes` to enable or `0`/`false`/`no` to disable. This does not disable update checks (`PI_TELEMETRY` is a legacy alias). |
659
667
  | `ATOMIC_REDUCED_MOTION` | Set to `1` to skip startup choreography and use a static working identity |
660
668
  | `ATOMIC_NO_PTY` | Set to `1` to disable PTY use for bash commands (`PI_NO_PTY` is a legacy alias) |
661
669
  | `NODE_COMPILE_CACHE` | Override Node's persistent compile-cache directory; set `NODE_DISABLE_COMPILE_CACHE=1` to opt out |
@@ -4,6 +4,24 @@ All notable changes to the `pi-intercom` extension will be documented in this fi
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.20-alpha.4] - 2026-09-20
8
+
9
+ ### Added
10
+
11
+ - Intercom session targets now accept a unique 8-character hexadecimal UUID prefix within the sender's authorized group scope; collisions report every matching full UUID instead of selecting a session by ordering ([#2603](https://github.com/bastani-inc/atomic/issues/2603)).
12
+
13
+ ### Fixed
14
+
15
+ - UUID-prefix targeting now keeps reply discovery within authorized relationships, resolves pending ask UUID prefixes before reply fallback, and accepts an isolated child's authorized supervisor prefix ([#2603](https://github.com/bastani-inc/atomic/issues/2603)).
16
+
17
+ - Explicit reply names and full session IDs keep their original identity through broker collision checks, unique UUID prefixes still canonicalize to the stored session ID, and hidden same-name collisions refuse regardless of letter case ([#2603](https://github.com/bastani-inc/atomic/issues/2603)).
18
+
19
+ - Canonicalized Intercom UUID-prefix sends revalidate the original selector against the broker's current authorized sessions, so a newly visible same-prefix UUID, exact name, or custom ID refuses instead of delivering to the previously unique identity ([#2603](https://github.com/bastani-inc/atomic/issues/2603)).
20
+
21
+ - Prefix ambiguity refusals no longer include unauthorized or hidden session names when a canonicalized UUID-prefix send is rejected ([#2603](https://github.com/bastani-inc/atomic/issues/2603)).
22
+ - Workflow children keep separate pending-ask lists from their parent stage and siblings. Stage replacement still preserves the stage's own pending asks ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
23
+ - Configuration, relay and disconnect diagnostics within SDK-owned work now use redacted session diagnostics instead of console output ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
24
+
7
25
  ## [0.9.20-alpha.1] - 2026-09-14
8
26
 
9
27
  ### Fixed
@@ -343,7 +343,7 @@ The supervisor can reply with plain JSON or a fenced `json` block. If the reply
343
343
  | Parameter | Type | Description |
344
344
  |-----------|------|-------------|
345
345
  | `action` | string | `"list"`, `"groups"`, `"join"`, `"leave"`, `"send"`, `"ask"`, `"reply"`, `"pending"`, or `"status"` |
346
- | `to` | string | Exact session name/full session ID, or `workflow:<rootRunId>/<segment>[/<segment>...]`; `*` matches one segment and `**` any depth. Sends support pending/future patterns and broadcast; `ask` requires a live target. |
346
+ | `to` | string | Exact session name/full session ID, unique 8-hex session UUID prefix, or `workflow:<rootRunId>/<segment>[/<segment>...]`; `*` matches one segment and `**` any depth. Sends support pending/future patterns and broadcast; `ask` requires a live target. |
347
347
  | `message` | string | Message text (for send/ask/reply) |
348
348
  | `attachments` | array | Optional `file`, `snippet`, or `context` attachments |
349
349
  | `replyTo` | string | Optional message ID for threading or replying to an `ask` |
@@ -375,7 +375,7 @@ Only registered in sessions where `pi-subagents` supplied the required child bri
375
375
 
376
376
  **`list`** — Keeps session-listing semantics: returns the current session and every active session sharing at least one membership. Pass `group` for a read-only view of one group.
377
377
 
378
- Live target lookup accepts only an exact full Intercom session ID or an exact case-insensitive session name. Join `workflow:<rootRunId>` and use `intercom list` to see materialized `PENDING`/`RUNNING` workflow stages with canonical `workflow:<rootRunId>/<segment>[/<segment>...]` paths, plus possible future literals, globs, nested paths, and their queued counts. `*` matches one segment and `**` any depth. `workflow:<rootRunId>/**` reaches live stages now and remains sticky for every future stage until root termination; narrower patterns behave the same for their matches. A valid path outside the known set queues with `notInKnownSet` and settles undeliverable at terminal only if never delivered. Use `ask` only on live targets. An eligible invocation member has directional list/send/live-ask control over stages in owned `workflow:<rootRunId>/...` subgroups. A subgroup stage or another workflow root cannot turn a mutable join into parent control; sibling subgroups stay isolated, and explicit `group: "default"` remains non-owned.
378
+ Live target lookup accepts an exact full Intercom session ID, a unique 8-hex prefix of a UUID-backed session, or an exact case-insensitive session name. Prefix matching stays inside the sender's existing authorized visibility; collisions list the matching full UUIDs and require one of them. Join `workflow:<rootRunId>` and use `intercom list` to see materialized `PENDING`/`RUNNING` workflow stages with canonical `workflow:<rootRunId>/<segment>[/<segment>...]` paths, plus possible future literals, globs, nested paths, and their queued counts. `*` matches one segment and `**` any depth. `workflow:<rootRunId>/**` reaches live stages now and remains sticky for every future stage until root termination; narrower patterns behave the same for their matches. A valid path outside the known set queues with `notInKnownSet` and settles undeliverable at terminal only if never delivered. Use `ask` only on live targets. An eligible invocation member has directional list/send/live-ask control over stages in owned `workflow:<rootRunId>/...` subgroups. A subgroup stage or another workflow root cannot turn a mutable join into parent control; sibling subgroups stay isolated, and explicit `group: "default"` remains non-owned.
379
379
 
380
380
  When multiple live agent stages share a name, `ask` refuses the ambiguous target and recommends an exact stage-ID path. Name-based `send` keeps sticky delivery to matching agents, even when a prompt or tool shares the same name. Custom hosts may set `recipientPurpose` to exactly `"agent"` or `"control"` on registration and workflow roster entries; omission means legacy agent behavior. Malformed values (including `null`) are rejected, and presence updates cannot change a session's registered purpose. Host roster-update completion includes a same-connection broker round trip before subsequent discovery.
381
381
 
@@ -224,11 +224,68 @@ export function handleBrokerSend(
224
224
  // supervisor frame or an exact recorded reply may resolve across groups.
225
225
  const liveWorkflowTarget = sessions.has(trimmedTo) ? undefined : resolveLiveWorkflowStage?.(trimmedTo);
226
226
  const exactIdTarget = sessions.get(trimmedTo) ?? liveWorkflowTarget;
227
- const reachableAcrossGroups = supervisorSend || Boolean(message.replyTo);
228
227
  const visibleCandidates = Array.from(sessions.values(), (session) => session.info).filter(
229
- (info) => reachableAcrossGroups || sessionsShareGroup(info, fromSession.info),
228
+ (info) => sessionsShareGroup(info, fromSession.info) ||
229
+ (supervisorSend && info.id === fromSession.supervisorId) ||
230
+ (message.replyTo !== undefined && (
231
+ pendingQuestions.matchesReply(fromSession.info.id, info.id, message.replyTo) ||
232
+ isVerticalBypass({ replyTo: message.replyTo, sender: fromSession.info, target: info, supervisorCache })
233
+ )),
230
234
  );
231
235
  const candidates = visibleCandidates.filter(isAgentRecipient);
236
+ // Preserve explicit named-reply collision rejection without exposing hidden identities (#2603).
237
+ const originalSelector = logicalTarget.trim();
238
+ const hiddenReplyCollision = (selector: string) =>
239
+ Array.from(sessions.values()).some(
240
+ ({ info }) =>
241
+ isAgentRecipient(info) &&
242
+ (info.id === selector || info.name?.toLowerCase() === selector.toLowerCase()) &&
243
+ !candidates.some((candidate) => candidate.id === info.id),
244
+ );
245
+ if (
246
+ expectedRecipientId !== undefined &&
247
+ ((!exactIdTarget && hiddenReplyCollision(trimmedTo)) ||
248
+ (originalSelector !== trimmedTo && hiddenReplyCollision(originalSelector)))
249
+ ) {
250
+ write(socket, { type: "delivery_failed", messageId, attemptId,
251
+ reason: "Reply target cannot be resolved safely; use the exact sender ID",
252
+ });
253
+ return;
254
+ }
255
+ // Canonicalized UUID prefixes must still mean the same identity against the
256
+ // current authorized catalog; a newly visible UUID, exact name, or custom ID
257
+ // must not inherit the previously unique transport ID (#2603). Name-fallback
258
+ // retries keep `to` as a display name, so they are not prefix canonicalization.
259
+ // Unauthorized exact transport targets stay out of prefix diagnostics so a
260
+ // formerly visible UUID cannot disclose a hidden peer's current name.
261
+ if (
262
+ originalSelector !== trimmedTo &&
263
+ exactIdTarget !== undefined &&
264
+ candidates.some((candidate) => candidate.id === exactIdTarget.info.id)
265
+ ) {
266
+ const originalResolution = resolveSessionTarget(candidates, originalSelector);
267
+ if (
268
+ originalResolution.kind !== "resolved" ||
269
+ originalResolution.session.id !== exactIdTarget.info.id ||
270
+ (expectedRecipientId !== undefined && originalResolution.session.id !== expectedRecipientId)
271
+ ) {
272
+ let reason: string;
273
+ if (originalResolution.kind !== "resolved") {
274
+ reason = sessionTargetFailureReason(originalSelector, originalResolution);
275
+ } else if (expectedRecipientId !== undefined) {
276
+ reason = "Reply target does not match the expected recipient";
277
+ } else {
278
+ reason = "Reply target cannot be resolved safely; use the exact sender ID";
279
+ }
280
+ write(socket, {
281
+ type: "delivery_failed",
282
+ messageId,
283
+ attemptId,
284
+ reason,
285
+ });
286
+ return;
287
+ }
288
+ }
232
289
  const resolution = exactIdTarget
233
290
  ? ({ kind: "resolved", session: exactIdTarget.info } as const)
234
291
  : resolveSessionTarget(candidates, trimmedTo);