@bastani/atomic 0.10.2 → 0.10.3-alpha.1

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 (499) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/builtin/intercom/CHANGELOG.md +11 -0
  3. package/dist/builtin/intercom/broker/broker-instance.ts +2 -13
  4. package/dist/builtin/intercom/broker/broker.ts +158 -73
  5. package/dist/builtin/intercom/broker/durable-ended-queue.ts +14 -2
  6. package/dist/builtin/intercom/broker/host-command-environment.ts +13 -0
  7. package/dist/builtin/intercom/broker/hosted-session-errors.ts +1 -0
  8. package/dist/builtin/intercom/broker/multinode-router.ts +111 -16
  9. package/dist/builtin/intercom/broker/multinode-state-store.ts +50 -4
  10. package/dist/builtin/intercom/broker/open-broker-state.ts +5 -4
  11. package/dist/builtin/intercom/broker/spawn.ts +144 -25
  12. package/dist/builtin/intercom/broker/sql-add-column.ts +33 -0
  13. package/dist/builtin/intercom/broker/sql-known-session-store.ts +120 -36
  14. package/dist/builtin/intercom/broker/sql-outbox-store.ts +75 -13
  15. package/dist/builtin/intercom/broker/start-announcement.ts +55 -10
  16. package/dist/builtin/intercom/broker/watchdog.ts +10 -7
  17. package/dist/builtin/intercom/index.bundle.mjs +111 -27
  18. package/dist/builtin/intercom/package.json +1 -1
  19. package/dist/builtin/mcp/package.json +1 -1
  20. package/dist/builtin/subagents/CHANGELOG.md +13 -0
  21. package/dist/builtin/subagents/package.json +1 -1
  22. package/dist/builtin/subagents/skills/skill-creator/SKILL.md +30 -52
  23. package/dist/builtin/subagents/skills/skill-creator/eval-viewer/generate_review.py +34 -40
  24. package/dist/builtin/subagents/skills/skill-creator/eval-viewer/viewer.html +2 -2
  25. package/dist/builtin/subagents/skills/skill-creator/scripts/atomic_cli.py +668 -0
  26. package/dist/builtin/subagents/skills/skill-creator/scripts/generate_report.py +3 -3
  27. package/dist/builtin/subagents/skills/skill-creator/scripts/improve_description.py +42 -38
  28. package/dist/builtin/subagents/skills/skill-creator/scripts/run_eval.py +268 -176
  29. package/dist/builtin/subagents/skills/skill-creator/scripts/run_loop.py +20 -11
  30. package/dist/builtin/subagents/skills/skill-creator/scripts/utils.py +1 -1
  31. package/dist/builtin/subagents/src/extension/index.bundle.mjs +163 -97
  32. package/dist/builtin/web-access/CHANGELOG.md +7 -0
  33. package/dist/builtin/web-access/index.bundle.mjs +5 -4
  34. package/dist/builtin/web-access/package.json +1 -1
  35. package/dist/core/agent-session-auto-compaction.d.ts +10 -1
  36. package/dist/core/agent-session-auto-compaction.d.ts.map +1 -1
  37. package/dist/core/agent-session-auto-compaction.js +54 -2
  38. package/dist/core/agent-session-auto-compaction.js.map +1 -1
  39. package/dist/core/agent-session-compaction.d.ts +4 -0
  40. package/dist/core/agent-session-compaction.d.ts.map +1 -1
  41. package/dist/core/agent-session-compaction.js +17 -2
  42. package/dist/core/agent-session-compaction.js.map +1 -1
  43. package/dist/core/agent-session-custom-message-commit.d.ts.map +1 -1
  44. package/dist/core/agent-session-custom-message-commit.js +3 -1
  45. package/dist/core/agent-session-custom-message-commit.js.map +1 -1
  46. package/dist/core/agent-session-events.d.ts +2 -0
  47. package/dist/core/agent-session-events.d.ts.map +1 -1
  48. package/dist/core/agent-session-events.js +34 -13
  49. package/dist/core/agent-session-events.js.map +1 -1
  50. package/dist/core/agent-session-export.d.ts.map +1 -1
  51. package/dist/core/agent-session-export.js +3 -0
  52. package/dist/core/agent-session-export.js.map +1 -1
  53. package/dist/core/agent-session-message-queue.d.ts +27 -0
  54. package/dist/core/agent-session-message-queue.d.ts.map +1 -1
  55. package/dist/core/agent-session-message-queue.js +213 -30
  56. package/dist/core/agent-session-message-queue.js.map +1 -1
  57. package/dist/core/agent-session-methods.d.ts +6 -1
  58. package/dist/core/agent-session-methods.d.ts.map +1 -1
  59. package/dist/core/agent-session-methods.js.map +1 -1
  60. package/dist/core/agent-session-prompt.d.ts.map +1 -1
  61. package/dist/core/agent-session-prompt.js +35 -3
  62. package/dist/core/agent-session-prompt.js.map +1 -1
  63. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  64. package/dist/core/agent-session-runtime.js +2 -2
  65. package/dist/core/agent-session-runtime.js.map +1 -1
  66. package/dist/core/agent-session-state.d.ts.map +1 -1
  67. package/dist/core/agent-session-state.js +6 -1
  68. package/dist/core/agent-session-state.js.map +1 -1
  69. package/dist/core/agent-session-tool-hooks.d.ts.map +1 -1
  70. package/dist/core/agent-session-tool-hooks.js +15 -2
  71. package/dist/core/agent-session-tool-hooks.js.map +1 -1
  72. package/dist/core/agent-session-typed-queue.d.ts +14 -1
  73. package/dist/core/agent-session-typed-queue.d.ts.map +1 -1
  74. package/dist/core/agent-session-typed-queue.js +26 -1
  75. package/dist/core/agent-session-typed-queue.js.map +1 -1
  76. package/dist/core/agent-session-types.d.ts +5 -0
  77. package/dist/core/agent-session-types.d.ts.map +1 -1
  78. package/dist/core/agent-session-types.js.map +1 -1
  79. package/dist/core/agent-session.d.ts.map +1 -1
  80. package/dist/core/agent-session.js +2 -1
  81. package/dist/core/agent-session.js.map +1 -1
  82. package/dist/core/async-scope.d.ts +9 -4
  83. package/dist/core/async-scope.d.ts.map +1 -1
  84. package/dist/core/async-scope.js +13 -5
  85. package/dist/core/async-scope.js.map +1 -1
  86. package/dist/core/builtin-diagnostics.js +2 -2
  87. package/dist/core/builtin-diagnostics.js.map +1 -1
  88. package/dist/core/chat-admission-order.d.ts.map +1 -1
  89. package/dist/core/chat-admission-order.js +2 -1
  90. package/dist/core/chat-admission-order.js.map +1 -1
  91. package/dist/core/chat-record-saves.d.ts +4 -0
  92. package/dist/core/chat-record-saves.d.ts.map +1 -0
  93. package/dist/core/chat-record-saves.js +25 -0
  94. package/dist/core/chat-record-saves.js.map +1 -0
  95. package/dist/core/command-deliveries.d.ts +62 -0
  96. package/dist/core/command-deliveries.d.ts.map +1 -0
  97. package/dist/core/command-deliveries.js +139 -0
  98. package/dist/core/command-deliveries.js.map +1 -0
  99. package/dist/core/diagnostic-writer.d.ts.map +1 -1
  100. package/dist/core/diagnostic-writer.js +5 -4
  101. package/dist/core/diagnostic-writer.js.map +1 -1
  102. package/dist/core/extension-startup-close.d.ts +1 -2
  103. package/dist/core/extension-startup-close.d.ts.map +1 -1
  104. package/dist/core/extension-startup-close.js +2 -2
  105. package/dist/core/extension-startup-close.js.map +1 -1
  106. package/dist/core/extensions/jiti-aliases.d.ts +11 -0
  107. package/dist/core/extensions/jiti-aliases.d.ts.map +1 -0
  108. package/dist/core/extensions/jiti-aliases.js +28 -0
  109. package/dist/core/extensions/jiti-aliases.js.map +1 -0
  110. package/dist/core/extensions/loader-api.js +3 -3
  111. package/dist/core/extensions/loader-api.js.map +1 -1
  112. package/dist/core/extensions/loader-bindings.js +2 -2
  113. package/dist/core/extensions/loader-bindings.js.map +1 -1
  114. package/dist/core/extensions/loader-rollback.d.ts +1 -2
  115. package/dist/core/extensions/loader-rollback.d.ts.map +1 -1
  116. package/dist/core/extensions/loader-rollback.js +2 -2
  117. package/dist/core/extensions/loader-rollback.js.map +1 -1
  118. package/dist/core/extensions/loader-virtual-modules.d.ts.map +1 -1
  119. package/dist/core/extensions/loader-virtual-modules.js +53 -9
  120. package/dist/core/extensions/loader-virtual-modules.js.map +1 -1
  121. package/dist/core/extensions/native-builtin-entries.d.ts +5 -0
  122. package/dist/core/extensions/native-builtin-entries.d.ts.map +1 -1
  123. package/dist/core/extensions/native-builtin-entries.js +8 -1
  124. package/dist/core/extensions/native-builtin-entries.js.map +1 -1
  125. package/dist/core/extensions/reloadable-scripts.d.ts +21 -2
  126. package/dist/core/extensions/reloadable-scripts.d.ts.map +1 -1
  127. package/dist/core/extensions/reloadable-scripts.js +11 -3
  128. package/dist/core/extensions/reloadable-scripts.js.map +1 -1
  129. package/dist/core/extensions/source-builtin-imports.d.ts +40 -0
  130. package/dist/core/extensions/source-builtin-imports.d.ts.map +1 -0
  131. package/dist/core/extensions/source-builtin-imports.js +142 -0
  132. package/dist/core/extensions/source-builtin-imports.js.map +1 -0
  133. package/dist/core/extensions/transform-graph.d.ts +15 -0
  134. package/dist/core/extensions/transform-graph.d.ts.map +1 -0
  135. package/dist/core/extensions/transform-graph.js +85 -0
  136. package/dist/core/extensions/transform-graph.js.map +1 -0
  137. package/dist/core/extensions/ts-source-specifiers.d.ts +2 -0
  138. package/dist/core/extensions/ts-source-specifiers.d.ts.map +1 -1
  139. package/dist/core/extensions/ts-source-specifiers.js +7 -0
  140. package/dist/core/extensions/ts-source-specifiers.js.map +1 -1
  141. package/dist/core/extensions/ts-transform-worker.d.ts +2 -0
  142. package/dist/core/extensions/ts-transform-worker.d.ts.map +1 -0
  143. package/dist/core/extensions/ts-transform-worker.js +43 -0
  144. package/dist/core/extensions/ts-transform-worker.js.map +1 -0
  145. package/dist/core/message-admission.d.ts.map +1 -1
  146. package/dist/core/message-admission.js +4 -4
  147. package/dist/core/message-admission.js.map +1 -1
  148. package/dist/core/messages.d.ts +5 -0
  149. package/dist/core/messages.d.ts.map +1 -1
  150. package/dist/core/messages.js +35 -0
  151. package/dist/core/messages.js.map +1 -1
  152. package/dist/core/model-fallback-failures.d.ts +1 -1
  153. package/dist/core/model-fallback-failures.d.ts.map +1 -1
  154. package/dist/core/model-fallback-failures.js +18 -1
  155. package/dist/core/model-fallback-failures.js.map +1 -1
  156. package/dist/core/process-start-token.d.ts +7 -0
  157. package/dist/core/process-start-token.d.ts.map +1 -1
  158. package/dist/core/process-start-token.js +14 -0
  159. package/dist/core/process-start-token.js.map +1 -1
  160. package/dist/core/project-trust-electorate.d.ts +24 -0
  161. package/dist/core/project-trust-electorate.d.ts.map +1 -0
  162. package/dist/core/project-trust-electorate.js +52 -0
  163. package/dist/core/project-trust-electorate.js.map +1 -0
  164. package/dist/core/project-trust-state.d.ts +15 -0
  165. package/dist/core/project-trust-state.d.ts.map +1 -1
  166. package/dist/core/project-trust-state.js +15 -0
  167. package/dist/core/project-trust-state.js.map +1 -1
  168. package/dist/core/provider-request-admission.d.ts.map +1 -1
  169. package/dist/core/provider-request-admission.js +2 -2
  170. package/dist/core/provider-request-admission.js.map +1 -1
  171. package/dist/core/queued-input-admission.js +2 -2
  172. package/dist/core/queued-input-admission.js.map +1 -1
  173. package/dist/core/queued-message-delivery.d.ts +2 -2
  174. package/dist/core/queued-message-delivery.d.ts.map +1 -1
  175. package/dist/core/queued-message-delivery.js +6 -3
  176. package/dist/core/queued-message-delivery.js.map +1 -1
  177. package/dist/core/resource-admission-scope.js +2 -2
  178. package/dist/core/resource-admission-scope.js.map +1 -1
  179. package/dist/core/resume/blueprint/process.d.ts +3 -4
  180. package/dist/core/resume/blueprint/process.d.ts.map +1 -1
  181. package/dist/core/resume/blueprint/process.js +33 -17
  182. package/dist/core/resume/blueprint/process.js.map +1 -1
  183. package/dist/core/resume/path-mapping.js +4 -4
  184. package/dist/core/resume/path-mapping.js.map +1 -1
  185. package/dist/core/resume/session-resume.d.ts +9 -0
  186. package/dist/core/resume/session-resume.d.ts.map +1 -1
  187. package/dist/core/resume/session-resume.js +27 -2
  188. package/dist/core/resume/session-resume.js.map +1 -1
  189. package/dist/core/resume-cache-checkpoint.d.ts +27 -1
  190. package/dist/core/resume-cache-checkpoint.d.ts.map +1 -1
  191. package/dist/core/resume-cache-checkpoint.js +45 -0
  192. package/dist/core/resume-cache-checkpoint.js.map +1 -1
  193. package/dist/core/sdk.d.ts.map +1 -1
  194. package/dist/core/sdk.js +7 -31
  195. package/dist/core/sdk.js.map +1 -1
  196. package/dist/core/session-lifecycle-scope.d.ts +1 -2
  197. package/dist/core/session-lifecycle-scope.d.ts.map +1 -1
  198. package/dist/core/session-lifecycle-scope.js +2 -2
  199. package/dist/core/session-lifecycle-scope.js.map +1 -1
  200. package/dist/core/session-lifecycle-work.js +2 -2
  201. package/dist/core/session-lifecycle-work.js.map +1 -1
  202. package/dist/core/session-manager-core.d.ts.map +1 -1
  203. package/dist/core/session-manager-core.js +3 -0
  204. package/dist/core/session-manager-core.js.map +1 -1
  205. package/dist/core/session-storage.d.ts +12 -0
  206. package/dist/core/session-storage.d.ts.map +1 -1
  207. package/dist/core/session-storage.js +68 -1
  208. package/dist/core/session-storage.js.map +1 -1
  209. package/dist/core/settings-lock-directory.d.ts.map +1 -1
  210. package/dist/core/settings-lock-directory.js +4 -3
  211. package/dist/core/settings-lock-directory.js.map +1 -1
  212. package/dist/core/settings-write-ownership.d.ts +1 -2
  213. package/dist/core/settings-write-ownership.d.ts.map +1 -1
  214. package/dist/core/settings-write-ownership.js +2 -2
  215. package/dist/core/settings-write-ownership.js.map +1 -1
  216. package/dist/core/storage/node-sqlite-thread.d.ts.map +1 -1
  217. package/dist/core/storage/node-sqlite-thread.js +6 -4
  218. package/dist/core/storage/node-sqlite-thread.js.map +1 -1
  219. package/dist/core/storage/node-sqlite.d.ts.map +1 -1
  220. package/dist/core/storage/node-sqlite.js +22 -8
  221. package/dist/core/storage/node-sqlite.js.map +1 -1
  222. package/dist/core/system-prompt.d.ts +16 -2
  223. package/dist/core/system-prompt.d.ts.map +1 -1
  224. package/dist/core/system-prompt.js +33 -6
  225. package/dist/core/system-prompt.js.map +1 -1
  226. package/dist/core/tasks/agent-adapter.d.ts.map +1 -1
  227. package/dist/core/tasks/agent-adapter.js +2 -1
  228. package/dist/core/tasks/agent-adapter.js.map +1 -1
  229. package/dist/core/tasks/completion.d.ts +3 -2
  230. package/dist/core/tasks/completion.d.ts.map +1 -1
  231. package/dist/core/tasks/completion.js.map +1 -1
  232. package/dist/core/tasks/execution-scope.js +2 -2
  233. package/dist/core/tasks/execution-scope.js.map +1 -1
  234. package/dist/core/tools/bash.d.ts.map +1 -1
  235. package/dist/core/tools/bash.js +2 -1
  236. package/dist/core/tools/bash.js.map +1 -1
  237. package/dist/core/tools/history-regex-worker.d.ts.map +1 -1
  238. package/dist/core/tools/history-regex-worker.js +3 -2
  239. package/dist/core/tools/history-regex-worker.js.map +1 -1
  240. package/dist/core/tools/shell-task-render.d.ts +3 -2
  241. package/dist/core/tools/shell-task-render.d.ts.map +1 -1
  242. package/dist/core/tools/shell-task-render.js +7 -5
  243. package/dist/core/tools/shell-task-render.js.map +1 -1
  244. package/dist/core/tools/shell-task-status.d.ts +6 -2
  245. package/dist/core/tools/shell-task-status.d.ts.map +1 -1
  246. package/dist/core/tools/shell-task-status.js +13 -8
  247. package/dist/core/tools/shell-task-status.js.map +1 -1
  248. package/dist/core/tools/sqlite-selector-connection.d.ts.map +1 -1
  249. package/dist/core/tools/sqlite-selector-connection.js +4 -3
  250. package/dist/core/tools/sqlite-selector-connection.js.map +1 -1
  251. package/dist/core/tools/windows-directory-security.d.ts.map +1 -1
  252. package/dist/core/tools/windows-directory-security.js +2 -1
  253. package/dist/core/tools/windows-directory-security.js.map +1 -1
  254. package/dist/core/worktree-snapshot/git.js +2 -2
  255. package/dist/core/worktree-snapshot/git.js.map +1 -1
  256. package/dist/extensions/mcp/index.d.ts +6 -1
  257. package/dist/extensions/mcp/index.d.ts.map +1 -1
  258. package/dist/extensions/mcp/index.js +150 -18
  259. package/dist/extensions/mcp/index.js.map +1 -1
  260. package/dist/extensions/mcp/tool-records.d.ts +44 -9
  261. package/dist/extensions/mcp/tool-records.d.ts.map +1 -1
  262. package/dist/extensions/mcp/tool-records.js +58 -16
  263. package/dist/extensions/mcp/tool-records.js.map +1 -1
  264. package/dist/index.d.ts +2 -0
  265. package/dist/index.d.ts.map +1 -1
  266. package/dist/index.js +4 -0
  267. package/dist/index.js.map +1 -1
  268. package/dist/main-session.d.ts +3 -1
  269. package/dist/main-session.d.ts.map +1 -1
  270. package/dist/main-session.js +1 -0
  271. package/dist/main-session.js.map +1 -1
  272. package/dist/main.d.ts.map +1 -1
  273. package/dist/main.js +230 -96
  274. package/dist/main.js.map +1 -1
  275. package/dist/modes/interactive/agent-view/agent-view-bridge.d.ts +5 -0
  276. package/dist/modes/interactive/agent-view/agent-view-bridge.d.ts.map +1 -1
  277. package/dist/modes/interactive/agent-view/agent-view-bridge.js.map +1 -1
  278. package/dist/modes/interactive/agent-view/agent-view-switcher.d.ts +5 -2
  279. package/dist/modes/interactive/agent-view/agent-view-switcher.d.ts.map +1 -1
  280. package/dist/modes/interactive/agent-view/agent-view-switcher.js +3 -3
  281. package/dist/modes/interactive/agent-view/agent-view-switcher.js.map +1 -1
  282. package/dist/modes/interactive/agent-view/contracts.d.ts +6 -0
  283. package/dist/modes/interactive/agent-view/contracts.d.ts.map +1 -1
  284. package/dist/modes/interactive/agent-view/contracts.js.map +1 -1
  285. package/dist/modes/interactive/agent-view/install.d.ts.map +1 -1
  286. package/dist/modes/interactive/agent-view/install.js +2 -1
  287. package/dist/modes/interactive/agent-view/install.js.map +1 -1
  288. package/dist/modes/interactive/agent-view/open-port.d.ts +4 -2
  289. package/dist/modes/interactive/agent-view/open-port.d.ts.map +1 -1
  290. package/dist/modes/interactive/agent-view/open-port.js +4 -3
  291. package/dist/modes/interactive/agent-view/open-port.js.map +1 -1
  292. package/dist/modes/interactive/agent-view/prompt-retarget.d.ts.map +1 -1
  293. package/dist/modes/interactive/agent-view/prompt-retarget.js +18 -5
  294. package/dist/modes/interactive/agent-view/prompt-retarget.js.map +1 -1
  295. package/dist/modes/interactive/agent-view/remote-port.d.ts +10 -1
  296. package/dist/modes/interactive/agent-view/remote-port.d.ts.map +1 -1
  297. package/dist/modes/interactive/agent-view/remote-port.js +36 -4
  298. package/dist/modes/interactive/agent-view/remote-port.js.map +1 -1
  299. package/dist/modes/interactive/agent-view/viewed-keys.d.ts +56 -0
  300. package/dist/modes/interactive/agent-view/viewed-keys.d.ts.map +1 -0
  301. package/dist/modes/interactive/agent-view/viewed-keys.js +63 -0
  302. package/dist/modes/interactive/agent-view/viewed-keys.js.map +1 -0
  303. package/dist/modes/interactive/agent-view/viewed-submit.d.ts +14 -4
  304. package/dist/modes/interactive/agent-view/viewed-submit.d.ts.map +1 -1
  305. package/dist/modes/interactive/agent-view/viewed-submit.js +51 -17
  306. package/dist/modes/interactive/agent-view/viewed-submit.js.map +1 -1
  307. package/dist/modes/interactive/components/agent-panel.d.ts.map +1 -1
  308. package/dist/modes/interactive/components/agent-panel.js +8 -21
  309. package/dist/modes/interactive/components/agent-panel.js.map +1 -1
  310. package/dist/modes/interactive/components/chat-session-host-actions.d.ts.map +1 -1
  311. package/dist/modes/interactive/components/chat-session-host-actions.js +18 -5
  312. package/dist/modes/interactive/components/chat-session-host-actions.js.map +1 -1
  313. package/dist/modes/interactive/components/chat-session-host-rendering.d.ts.map +1 -1
  314. package/dist/modes/interactive/components/chat-session-host-rendering.js +6 -0
  315. package/dist/modes/interactive/components/chat-session-host-rendering.js.map +1 -1
  316. package/dist/modes/interactive/components/chat-session-host-state.d.ts +1 -0
  317. package/dist/modes/interactive/components/chat-session-host-state.d.ts.map +1 -1
  318. package/dist/modes/interactive/components/chat-session-host-state.js +2 -0
  319. package/dist/modes/interactive/components/chat-session-host-state.js.map +1 -1
  320. package/dist/modes/interactive/components/chat-session-host-types.d.ts +5 -0
  321. package/dist/modes/interactive/components/chat-session-host-types.d.ts.map +1 -1
  322. package/dist/modes/interactive/components/chat-session-host-types.js.map +1 -1
  323. package/dist/modes/interactive/components/custom-editor.d.ts +33 -2
  324. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
  325. package/dist/modes/interactive/components/custom-editor.js +58 -2
  326. package/dist/modes/interactive/components/custom-editor.js.map +1 -1
  327. package/dist/modes/interactive/components/host-session-picker.js +2 -2
  328. package/dist/modes/interactive/components/host-session-picker.js.map +1 -1
  329. package/dist/modes/interactive/components/main-composer-keys.d.ts +16 -5
  330. package/dist/modes/interactive/components/main-composer-keys.d.ts.map +1 -1
  331. package/dist/modes/interactive/components/main-composer-keys.js +27 -8
  332. package/dist/modes/interactive/components/main-composer-keys.js.map +1 -1
  333. package/dist/modes/interactive/components/notice-line.d.ts +8 -25
  334. package/dist/modes/interactive/components/notice-line.d.ts.map +1 -1
  335. package/dist/modes/interactive/components/notice-line.js +18 -17
  336. package/dist/modes/interactive/components/notice-line.js.map +1 -1
  337. package/dist/modes/interactive/components/prompt-slot.d.ts +20 -3
  338. package/dist/modes/interactive/components/prompt-slot.d.ts.map +1 -1
  339. package/dist/modes/interactive/components/prompt-slot.js +82 -32
  340. package/dist/modes/interactive/components/prompt-slot.js.map +1 -1
  341. package/dist/modes/interactive/components/queued-messages-view.d.ts +5 -2
  342. package/dist/modes/interactive/components/queued-messages-view.d.ts.map +1 -1
  343. package/dist/modes/interactive/components/queued-messages-view.js +12 -5
  344. package/dist/modes/interactive/components/queued-messages-view.js.map +1 -1
  345. package/dist/modes/interactive/components/task-board.d.ts +5 -8
  346. package/dist/modes/interactive/components/task-board.d.ts.map +1 -1
  347. package/dist/modes/interactive/components/task-board.js +5 -49
  348. package/dist/modes/interactive/components/task-board.js.map +1 -1
  349. package/dist/modes/interactive/components/task-completion-message.d.ts.map +1 -1
  350. package/dist/modes/interactive/components/task-completion-message.js +9 -2
  351. package/dist/modes/interactive/components/task-completion-message.js.map +1 -1
  352. package/dist/modes/interactive/components/task-marks.d.ts +19 -0
  353. package/dist/modes/interactive/components/task-marks.d.ts.map +1 -0
  354. package/dist/modes/interactive/components/task-marks.js +25 -0
  355. package/dist/modes/interactive/components/task-marks.js.map +1 -0
  356. package/dist/modes/interactive/components/task-row.d.ts +10 -2
  357. package/dist/modes/interactive/components/task-row.d.ts.map +1 -1
  358. package/dist/modes/interactive/components/task-row.js +39 -32
  359. package/dist/modes/interactive/components/task-row.js.map +1 -1
  360. package/dist/modes/interactive/components/task-transcript-page.d.ts +7 -0
  361. package/dist/modes/interactive/components/task-transcript-page.d.ts.map +1 -1
  362. package/dist/modes/interactive/components/task-transcript-page.js +106 -10
  363. package/dist/modes/interactive/components/task-transcript-page.js.map +1 -1
  364. package/dist/modes/interactive/components/tool-block-families.d.ts.map +1 -1
  365. package/dist/modes/interactive/components/tool-block-families.js +8 -9
  366. package/dist/modes/interactive/components/tool-block-families.js.map +1 -1
  367. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  368. package/dist/modes/interactive/components/tool-execution.js +5 -1
  369. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  370. package/dist/modes/interactive/extension-command-hold.d.ts.map +1 -1
  371. package/dist/modes/interactive/extension-command-hold.js +5 -7
  372. package/dist/modes/interactive/extension-command-hold.js.map +1 -1
  373. package/dist/modes/interactive/interactive-extension-dialogs.js +6 -1
  374. package/dist/modes/interactive/interactive-extension-dialogs.js.map +1 -1
  375. package/dist/modes/interactive/interactive-extension-runtime.d.ts.map +1 -1
  376. package/dist/modes/interactive/interactive-extension-runtime.js +21 -7
  377. package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
  378. package/dist/modes/interactive/interactive-initial-session-binding.d.ts +1 -2
  379. package/dist/modes/interactive/interactive-initial-session-binding.d.ts.map +1 -1
  380. package/dist/modes/interactive/interactive-initial-session-binding.js +2 -2
  381. package/dist/modes/interactive/interactive-initial-session-binding.js.map +1 -1
  382. package/dist/modes/interactive/interactive-input-handling.d.ts.map +1 -1
  383. package/dist/modes/interactive/interactive-input-handling.js +13 -4
  384. package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
  385. package/dist/modes/interactive/interactive-mode-base.d.ts +2 -1
  386. package/dist/modes/interactive/interactive-mode-base.d.ts.map +1 -1
  387. package/dist/modes/interactive/interactive-mode-base.js +6 -1
  388. package/dist/modes/interactive/interactive-mode-base.js.map +1 -1
  389. package/dist/modes/interactive/interactive-mode-helpers.d.ts +4 -2
  390. package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
  391. package/dist/modes/interactive/interactive-mode-helpers.js +6 -0
  392. package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
  393. package/dist/modes/interactive/interactive-mode-surface.d.ts +5 -0
  394. package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
  395. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  396. package/dist/modes/interactive/interactive-process-lifecycle.js +96 -17
  397. package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
  398. package/dist/modes/interactive/interactive-queueing.d.ts +5 -0
  399. package/dist/modes/interactive/interactive-queueing.d.ts.map +1 -1
  400. package/dist/modes/interactive/interactive-queueing.js +37 -5
  401. package/dist/modes/interactive/interactive-queueing.js.map +1 -1
  402. package/dist/modes/interactive/interactive-render-chat.d.ts.map +1 -1
  403. package/dist/modes/interactive/interactive-render-chat.js +45 -4
  404. package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
  405. package/dist/modes/interactive/interactive-resource-disclosure.d.ts +4 -1
  406. package/dist/modes/interactive/interactive-resource-disclosure.d.ts.map +1 -1
  407. package/dist/modes/interactive/interactive-resource-disclosure.js +20 -1
  408. package/dist/modes/interactive/interactive-resource-disclosure.js.map +1 -1
  409. package/dist/modes/interactive/interactive-resource-rendering.js +3 -0
  410. package/dist/modes/interactive/interactive-resource-rendering.js.map +1 -1
  411. package/dist/modes/interactive/interactive-startup.d.ts.map +1 -1
  412. package/dist/modes/interactive/interactive-startup.js +43 -5
  413. package/dist/modes/interactive/interactive-startup.js.map +1 -1
  414. package/dist/modes/interactive-engine/activity-watchdog.d.ts +6 -3
  415. package/dist/modes/interactive-engine/activity-watchdog.d.ts.map +1 -1
  416. package/dist/modes/interactive-engine/activity-watchdog.js +3 -2
  417. package/dist/modes/interactive-engine/activity-watchdog.js.map +1 -1
  418. package/dist/modes/interactive-engine/engine-health.d.ts +2 -0
  419. package/dist/modes/interactive-engine/engine-health.d.ts.map +1 -1
  420. package/dist/modes/interactive-engine/engine-health.js.map +1 -1
  421. package/dist/modes/interactive-engine/engine-quit-intent.d.ts +10 -0
  422. package/dist/modes/interactive-engine/engine-quit-intent.d.ts.map +1 -1
  423. package/dist/modes/interactive-engine/engine-quit-intent.js +33 -0
  424. package/dist/modes/interactive-engine/engine-quit-intent.js.map +1 -1
  425. package/dist/modes/interactive-engine/extension-ui-bridge.d.ts +7 -1
  426. package/dist/modes/interactive-engine/extension-ui-bridge.d.ts.map +1 -1
  427. package/dist/modes/interactive-engine/extension-ui-bridge.js +15 -2
  428. package/dist/modes/interactive-engine/extension-ui-bridge.js.map +1 -1
  429. package/dist/modes/interactive-engine/host-listener-failures.d.ts +24 -0
  430. package/dist/modes/interactive-engine/host-listener-failures.d.ts.map +1 -0
  431. package/dist/modes/interactive-engine/host-listener-failures.js +98 -0
  432. package/dist/modes/interactive-engine/host-listener-failures.js.map +1 -0
  433. package/dist/modes/interactive-engine/isolated-runtime.d.ts +16 -0
  434. package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
  435. package/dist/modes/interactive-engine/isolated-runtime.js +74 -7
  436. package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
  437. package/dist/modes/interactive-engine/protocol.d.ts +5 -0
  438. package/dist/modes/interactive-engine/protocol.d.ts.map +1 -1
  439. package/dist/modes/interactive-engine/protocol.js +8 -2
  440. package/dist/modes/interactive-engine/protocol.js.map +1 -1
  441. package/dist/modes/interactive-engine/remote-component.d.ts +13 -0
  442. package/dist/modes/interactive-engine/remote-component.d.ts.map +1 -1
  443. package/dist/modes/interactive-engine/remote-component.js +69 -4
  444. package/dist/modes/interactive-engine/remote-component.js.map +1 -1
  445. package/dist/modes/print-mode.d.ts.map +1 -1
  446. package/dist/modes/print-mode.js +34 -6
  447. package/dist/modes/print-mode.js.map +1 -1
  448. package/dist/modes/rpc/agent-panel-bridge.d.ts +7 -0
  449. package/dist/modes/rpc/agent-panel-bridge.d.ts.map +1 -1
  450. package/dist/modes/rpc/agent-panel-bridge.js +11 -1
  451. package/dist/modes/rpc/agent-panel-bridge.js.map +1 -1
  452. package/dist/modes/rpc/agent-view-rpc-panel.d.ts.map +1 -1
  453. package/dist/modes/rpc/agent-view-rpc-panel.js +11 -5
  454. package/dist/modes/rpc/agent-view-rpc-panel.js.map +1 -1
  455. package/dist/modes/rpc/rpc-client-process.d.ts +8 -1
  456. package/dist/modes/rpc/rpc-client-process.d.ts.map +1 -1
  457. package/dist/modes/rpc/rpc-client-process.js +89 -65
  458. package/dist/modes/rpc/rpc-client-process.js.map +1 -1
  459. package/dist/modes/rpc/rpc-client.d.ts +21 -0
  460. package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
  461. package/dist/modes/rpc/rpc-client.js +77 -33
  462. package/dist/modes/rpc/rpc-client.js.map +1 -1
  463. package/dist/modes/rpc/rpc-event-buffer.d.ts +5 -0
  464. package/dist/modes/rpc/rpc-event-buffer.d.ts.map +1 -1
  465. package/dist/modes/rpc/rpc-event-buffer.js +8 -2
  466. package/dist/modes/rpc/rpc-event-buffer.js.map +1 -1
  467. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  468. package/dist/modes/rpc/rpc-mode.js +9 -2
  469. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  470. package/dist/utils/shell.d.ts +5 -1
  471. package/dist/utils/shell.d.ts.map +1 -1
  472. package/dist/utils/shell.js +14 -7
  473. package/dist/utils/shell.js.map +1 -1
  474. package/dist/utils/worker-threads.d.ts +10 -4
  475. package/dist/utils/worker-threads.d.ts.map +1 -1
  476. package/dist/utils/worker-threads.js +10 -4
  477. package/dist/utils/worker-threads.js.map +1 -1
  478. package/docs/background-tasks.md +10 -10
  479. package/docs/compaction.md +1 -0
  480. package/docs/development.md +1 -1
  481. package/docs/environment-variables.md +4 -0
  482. package/docs/extensions/api-reference.md +2 -0
  483. package/docs/extensions/events.md +1 -1
  484. package/docs/getting-started/installation.md +1 -0
  485. package/docs/guides/non-interactive.md +2 -0
  486. package/docs/guides/resume-on-any-machine.md +3 -1
  487. package/docs/intercom/reference.md +1 -1
  488. package/docs/keybindings.md +6 -5
  489. package/docs/libraries/ai.md +2 -1
  490. package/docs/mcp-servers.md +1 -1
  491. package/docs/sdk/reference.md +1 -1
  492. package/docs/sdk.md +6 -0
  493. package/docs/security.md +4 -2
  494. package/docs/settings.md +2 -1
  495. package/docs/storage.md +2 -0
  496. package/docs/subagents.md +2 -2
  497. package/docs/tui/reference.md +3 -1
  498. package/npm-shrinkwrap.json +49 -49
  499. package/package.json +6 -6
@@ -23,7 +23,7 @@ Below the prompt, the **agent panel** lists the session's active background suba
23
23
  - **Viewed marker (`●`):** While viewing the main chat, `● main` is bold. While viewing a subagent, its row is bold and its open circle is filled (`●`), and `main` shows a muted `◯`. A resumed subagent stays one row, and `●` follows its latest attempt.
24
24
  - **The model column** names the model the subagent runs on now, as `provider/model-id`, then its reasoning level, as the footer shows the main chat's. A model without reasoning levels shows no level. The column follows the subagent: it changes as soon as the subagent falls back to another model, is resumed on a different one, or changes its reasoning level. A stopped or paused row shows the model its last turn ran on. A row whose model is not known yet leaves the column blank. When a subagent's model becomes known while you look at its row, the row shows it together with its reasoning level, or the model alone if no level arrives within a second, so the row's task moves only once. While the panel or `/tasks` stays open, the column keeps its width as long as it fits, even when the longest model leaves; it is measured again when the terminal is resized or the list is opened again.
25
25
  - The task title in the panel and on the prompt's top rule stops at a whole character. A shortened title ends in `…`.
26
- - **Status glyphs:**
26
+ - **Status glyphs** (`/tasks`, a chat's task rows, completion notices, launch cards, subagent results and the `wait` and `kill` lines use the same marks):
27
27
  - `◯` running, in grey (`●` while you view it)
28
28
  - `◆` needs input, with its question when it waits on one
29
29
  - `‖` paused
@@ -61,10 +61,10 @@ Extension authors can add rows with [`pi.registerAgentPanelSource()`](/extension
61
61
  Atomic uses one chat screen for the main chat and every subagent. Selecting a subagent from the agent panel or `/tasks` swaps the transcript area to that subagent's live transcript and points the same prompt box at it:
62
62
 
63
63
  - **Prompt and chrome:** The prompt's top rule shows `<agent> · <title> · <state>` (with live elapsed time while running). The empty prompt reads `Message @<agent>…`, `Answer @<agent>…`, `Message @<agent> to wake it…`, `Paused · send to continue`, `Stopped · send to resume`, or why the subagent is read-only. The usage meter, footer, and agent panel stay below the prompt; only the working line above the prompt and the footer's stop hint (`esc to pause` while the subagent works) follow the viewed subagent.
64
- - **Switching back:** Focus the agent panel (`↓` on an empty prompt), select `main`, and press `Enter` (or click `main`). The main transcript returns at the exact scroll position and draft you left.
64
+ - **Switching back:** Press `←` on the subagent's empty prompt (the hint by the prompt reads `← main chat`), or focus the agent panel (`↓` on an empty prompt), select `main`, and press `Enter` (or click `main`). The subagent keeps running, its queued messages and unsent draft stay with it, and the main transcript returns at the exact scroll position and draft you left. With text in the prompt, `←` moves the cursor.
65
65
  - **Per-agent drafts:** Each agent keeps its own unsent draft (text, cursor, pasted blocks, and undo history), including across resumes. Keys typed while a subagent is still opening wait and land in its prompt once shown; pressing `Esc` cancels the switch and keeps what you typed for that subagent (or warns with the typed text if it could not be shown).
66
66
  - **Prompt history:** `↑` and `↓` walk the viewed agent's own history. For a subagent, that is its task, any messages it was resumed with, and messages it has received from you, followed by what you send while viewing it. `Ctrl+R` searches the same history. Returning to `main` restores main's history unchanged. A message still queued for a subagent returns with `Alt+Up` (or `Esc`), not `↑`.
67
- - **Steering, queuing, and pausing:** While the viewed subagent works, `Enter` queues a steering message and `Alt+Enter` queues a follow-up (`Steering:` / `Follow-up:` rows above the prompt), and `Alt+Up` brings every queued message back into the prompt. Pressing `Esc` pauses the viewed subagent without affecting the main chat: its current turn or retry wait ends, its queued messages return to its prompt (steering first), and it waits until you send it a message. When it is not working, `Esc` on an empty prompt shows `main` instead (that press never counts toward main's double-`Esc`). `Ctrl+C` on an empty prompt pauses the subagent if it is working and shows `main` in the same press; from a subagent's view it never offers to exit Atomic. Sending a message to a finished or stopped subagent resumes it in the same task. A read-only subagent can still be scrolled, while typing is ignored.
67
+ - **Steering, queuing, and pausing:** While the viewed subagent works, `Enter` queues a steering message and `Alt+Enter` queues a follow-up (`Steering:` / `Follow-up:` rows above the prompt), and `Alt+Up` brings every queued message back into the prompt. Pressing `Esc` pauses the viewed subagent without affecting the main chat: its current turn or retry wait ends, its queued messages return to its prompt (steering first), and it waits until you send it a message. `Esc` never switches back to `main`, and pressing it there never counts toward main's double-`Esc`. `Ctrl+C` on an empty prompt pauses the subagent if it is working and shows `main` in the same press; from a subagent's view it never offers to exit Atomic. Sending a message to a finished or stopped subagent resumes it in the same task. A read-only subagent can still be scrolled, while typing is ignored.
68
68
  - **Questions, scrolling, and notices:** When the viewed subagent waits on an `ask_user_question` or approval form, the form appears at the bottom of its transcript and takes keyboard input until answered. Scrolling keys, click-to-expand, `Ctrl+O`, `Ctrl+T`, and text selection act on the viewed transcript. Main chat notices still record in the main transcript and are also mirrored (up to three rows) under the subagent's transcript; notices specific to the viewed subagent appear only under its transcript.
69
69
  - **When a viewed subagent is gone:** If the viewed subagent is dismissed, removed, or the engine restarts, the screen immediately returns to `main`. Any unsent draft typed for it is placed in front of main's prompt with the warning `<name> is gone; your message to it is in the prompt.` If you submit that moved text unedited and it is a command that modifies the main conversation or changes main's model or thinking level, Atomic asks to confirm before running it on `main`; editing the prompt or submitting anything else clears that guard.
70
70
  - **Waited shell shortcut:** While viewing a released subagent waiting on a shell (`◌ waiting on bash`), press `Alt+W` (`app.tasks.openWaited`) to open its newest running shell output in `/tasks`; `←` returns to the subagent view.
@@ -187,19 +187,19 @@ An `action: "wait"` call also ends when user steering or an Intercom ask/send is
187
187
 
188
188
  ### Completion messages
189
189
 
190
- Completion adds one notice line to the owning chat without depending on a model reply. Its marker and colour give the outcome: `●` completed, `✗` failed, `◼` stopped, `!` timed out, `⏸` paused or quit, and a dim `◌` for a subagent [released while it waits](/subagents#released-subagents), the same mark `/tasks`, the agent panel and its launch card show it with. The line names the task, or an agent by its name, says how it ended and how long it ran. An agent's line is followed by the first line of its result:
190
+ Completion adds one notice line to the owning chat without depending on a model reply. Its marker and colour give the outcome, with the marks the agent panel and `/tasks` use: a green `●` completed, `✗` failed, a red `◯` stopped (also a subagent paused or quit until it is resumed), `!` timed out, and a dim `◌` for a subagent [released while it waits](/subagents#released-subagents). The line names the task, or an agent by its name, says how it ended and how long it ran. An agent's line is followed by the first line of its result:
191
191
 
192
192
  ```text
193
193
  ● Background command "npm run build" completed (exit code 0) · 3m 2s
194
- ◼ Task "Sleep 300 seconds in background" was stopped by the user
194
+ ◯ Task "Sleep 300 seconds in background" was stopped by the user
195
195
  ● debugger finished · 1h 31m
196
196
  ⎿ Authentication starts in …
197
197
  (ctrl+o for the full result)
198
- ⏸ debugger quit · awaiting resume
198
+ ◯ debugger quit · awaiting resume
199
199
  ◌ worker is waiting on bash (toolu_01) · 16m 16s
200
200
  ```
201
201
 
202
- The main chat and a subagent's view show the same line. When you reopen an older session, a notice that recorded a release shows `◌`. Atomic 0.9.86 and 0.9.87 recorded releases as pauses, so those notices still show `⏸`. If the result and line are missing, Atomic can still show `◼` when a separately saved agent name identifies a stop in the title. For example, `worker killed (non-resumable): paused · awaiting resume: check the queue` identifies a stop if the saved name is `worker`, but not if it is `worker killed (non-resumable):`. This applies to notices with an empty preview and an empty or title-only string for content. Earlier notices that lack a separate name, and notices with a body or preview, keep their previous reading.
202
+ The main chat and a subagent's view show the same line. When you reopen an older session, a notice that recorded a release shows `◌`. Atomic 0.9.86 and 0.9.87 recorded releases as pauses, so those notices still read as paused, with the stopped `◯`. If the result and line are missing, Atomic can still show the stopped `◯` when a separately saved agent name identifies a stop in the title. For example, `worker killed (non-resumable): paused · awaiting resume: check the queue` identifies a stop if the saved name is `worker`, but not if it is `worker killed (non-resumable):`. This applies to notices with an empty preview and an empty or title-only string for content. Earlier notices that lack a separate name, and notices with a body or preview, keep their previous reading.
203
203
 
204
204
  The parent model also receives the result context. Delivery retries do not relaunch the child.
205
205
 
@@ -294,7 +294,7 @@ The cadence is fixed when the task starts, and a running task's `/tasks` detail
294
294
  | Transcript | Opens at the latest message and follows new output; PageUp/PageDown, half-page, and line keys move through the transcript; Ctrl+Home/Ctrl+End jump to the top and to the latest message; Ctrl+Up/Ctrl+Down jump between prompts; the mouse wheel scrolls (Alt+wheel five times faster). Earlier retained history loads as you scroll toward the top. |
295
295
  | Transcript display | A viewed subagent transcript follows the session's thinking and tool-output settings. Ctrl+T toggles thinking blocks, Ctrl+O toggles tool output, and clicking a block expands or folds it. |
296
296
  | Message the agent | While viewing a subagent, type in the prompt and press Enter to send or steer, or Alt+Enter to queue a follow-up. Queued messages appear as `Steering:` or `Follow-up:` rows above the prompt, and Alt+Up brings them back into the prompt. Esc pauses the subagent and returns its queued messages to the prompt. A finished or stopped subagent resumes in the same task when you send it a message; a read-only subagent ignores typing and explains why in the placeholder. See [Viewing a subagent](#viewing-a-subagent) for history, drafts, and command rules. |
297
- | Go back | To return from a viewed subagent to the main chat, press `↓` on an empty prompt to focus the agent panel and press Enter on `main` (or click `main`). Inside `/tasks`, Escape or Left returns from detail or shell output to the list, and from the list to chat; from a nested shell opened from the agent panel, Left returns to the focused panel. |
297
+ | Go back | To return from a viewed subagent to the main chat, press Left on its empty prompt, or press `↓` on an empty prompt to focus the agent panel and press Enter on `main` (or click `main`). Inside `/tasks`, Escape or Left returns from detail or shell output to the list, and from the list to chat; from a nested shell opened from the agent panel, Left returns to the focused panel. |
298
298
  | Stop | In the agent panel, `/tasks`, or a task's detail page, `x` asks for a second press; pressing `x` again within 3 seconds stops the task, and any other key keeps it running. A stopped subagent stays resumable: viewing it shows `Stopped · send to resume`, and sending a message resumes it in its own session. Ctrl+X Ctrl+K stops every background subagent and shell at once, after the same second press. Remap the key with `app.list.stop`. |
299
299
  | Shell input | Select Input when offered; Enter sends the text plus a newline; Escape leaves input mode. |
300
300
 
@@ -362,7 +362,7 @@ bash({ action: "wait", id: taskId })
362
362
  powershell({ action: "wait", id: taskId })
363
363
  ```
364
364
 
365
- Use the original task ID from the same owning session. Omit `budgetMs` to use the owner's command observation policy, or pass `0` to poll. A wait returns retained output and a yielded or settled observation; settled results include available exit and failure details. The transcript shows one status line above the output: `✓ completed · exit 0`, `✗ exited 1`, `● still running · showing output so far`, or `○ cancelled`. When the output was cut short, a dim line below it gives the path to the full output. The agent receives the same facts as one sentence after the output, and the structured observation stays in the result details. While running, successive yielded waits advance through retained output in bounded pages, including after a session reload. A caught-up wait returns no output until more arrives. Settled waits return all retained output again, subject to labelled gaps and truncation, so they may repeat output you have already seen.
365
+ Use the original task ID from the same owning session. Omit `budgetMs` to use the owner's command observation policy, or pass `0` to poll. A wait returns retained output and a yielded or settled observation; settled results include available exit and failure details. The transcript shows one status line above the output, with the mark `/tasks` shows the shell with: `● completed · exit 0`, `✗ exited 1`, `⧗ still running · showing output so far`, or `◯ cancelled` (in red). When the output was cut short, a dim line below it gives the path to the full output. The agent receives the same facts as one sentence after the output, and the structured observation stays in the result details. While running, successive yielded waits advance through retained output in bounded pages, including after a session reload. A caught-up wait returns no output until more arrives. Settled waits return all retained output again, subject to labelled gaps and truncation, so they may repeat output you have already seen.
366
366
 
367
367
  Do not combine `action: "wait"` with `command`, `timeout`, `wait`, `env`, `cwd`, or `pty`. Existing-task waits require a supported task owner, even with custom execution adapters. Unknown or foreign IDs are rejected with `No background task "<id>" in this session` and a hint to run `/tasks`. Cancelling a wait or admitting user/Intercom messages releases observation only, not the command. Waiting never extends the original execution timeout or the owner's lifetime.
368
368
 
@@ -376,7 +376,7 @@ kill({ id: taskId })
376
376
 
377
377
  The command selects the existing owned shell task; do not supply a process ID, shell name, or another owner's task ID. Unknown, malformed, foreign-owner, and subagent IDs are rejected. `/tasks` stop controls remain available.
378
378
 
379
- The transcript shows a status line such as `● stopping · cancellation requested`, `○ cancelled`, or `✓ already completed · exit 0`, and the agent receives the same facts as a sentence. The structured result keeps `taskId`, `decision`, `execution`, and `cleanup`. `cancellation-requested` means cancellation was requested, not that termination or cleanup has finished. A repeated call preserves that decision while reporting current state. `already-settled` means the task finished before cancellation and keeps its original outcome. Confirm `execution.kind: "settled"` and `cleanup.kind: "reaped"` before treating termination and cleanup as complete. Cleanup failures remain errors, not successful stops. A stopped shell whose cleanup cannot be confirmed within a few seconds, for example because a process that left the command's process group still holds its output open, ends as failed with code `CleanupUnconfirmed` and names the unconfirmed resource. It then no longer counts as stopping, and its cleanup shows as `quarantined` while Atomic keeps confirming it in the background for up to 15 seconds; it ends `reaped` once the processes and output are gone, or `failed` if they are not gone by then. Output and completion notifications remain available; killing a task does not erase its history.
379
+ The transcript shows a status line such as `◼ stopping · cancellation requested`, `◯ cancelled`, or `● already completed · exit 0`, and the agent receives the same facts as a sentence. The structured result keeps `taskId`, `decision`, `execution`, and `cleanup`. `cancellation-requested` means cancellation was requested, not that termination or cleanup has finished. A repeated call preserves that decision while reporting current state. `already-settled` means the task finished before cancellation and keeps its original outcome. Confirm `execution.kind: "settled"` and `cleanup.kind: "reaped"` before treating termination and cleanup as complete. Cleanup failures remain errors, not successful stops. A stopped shell whose cleanup cannot be confirmed within a few seconds, for example because a process that left the command's process group still holds its output open, ends as failed with code `CleanupUnconfirmed` and names the unconfirmed resource. It then no longer counts as stopping, and its cleanup shows as `quarantined` while Atomic keeps confirming it in the background for up to 15 seconds; it ends `reaped` once the processes and output are gone, or `failed` if they are not gone by then. Output and completion notifications remain available; killing a task does not erase its history.
380
380
 
381
381
  Shell completions show one unshaded notice line with the available exit code. Ctrl+O expands the last retained output lines. Nonzero shell exits are shown as failures even though the process itself reached a terminal state. A user stop reads `was stopped by the user`. The notice and the agent panel row update in the session that launched the shell.
382
382
 
@@ -27,6 +27,7 @@ This page covers the concepts and normal use of compaction and branch summarizat
27
27
  ## When compaction runs
28
28
 
29
29
  - **Automatic threshold:** when estimated context usage exceeds the model's context window minus `compaction.reserveTokens`. Atomic checks after tool results are added, before the follow-up request, and before every new request. A response that ends over the threshold stays the session's last answer, so `prompt()` callers, RPC `get_last_assistant_text` and `/copy` can read it; the context is cleared just before the next request: a new prompt, queued input, an extension's interrupt message, or the continuation after a tool's result. When a provider reports all-zero usage, Atomic estimates the visible message size instead of skipping the check.
30
+ - **Resumed near the window:** on a Claude model that thinks within a fixed budget, the first prompt after a resume clears the earlier conversation first when only what the resume added (changed `AGENTS.md` or other prompt files, blueprint context, recovery notices) would leave too little room for the thinking budget the conversation was using. What the resume added stays in the context after the boundary. With automatic compaction off, or when the clear does not happen, the request uses a smaller budget to fit instead.
30
31
  - **Overflow:** a provider context-overflow error compacts and then retries the interrupted turn, once per turn.
31
32
  - **Truncated response:** a `length` stop before the model's requested output cap gets one compact-and-retry. If there is nothing to compact, Atomic makes at most one direct continuation instead.
32
33
  - **Manual:** `/compact [instructions]`, `ctx.compact()`, `session.compact()`, or RPC `{ "type": "compact" }`.
@@ -54,7 +54,7 @@ The process that draws the UI (`host`) and the engine that runs the agent and ex
54
54
  | `block` | After each stall of at least the threshold | `at` (when the UI was due to respond), `durationMs`, the number of stack `samples`, `hotFrames` (the functions most samples were in, most specific first) and the most common full `stacks` |
55
55
  | `delay` | Once the process is ready for input (the `host` as it draws its first frame, the `engine` once it has loaded its session and extensions), once it starts to quit, and as it exits | `phase` (`startup`, `session` or `shutdown`), and how late the process responded: `p50Ms`, `p99Ms`, `maxMs` over `ticks` checks. A stall counts in the phase it started in |
56
56
 
57
- Quit to get the engine's `shutdown` record. If you close the terminal instead, the engine is ended at once on every platform, so its last records are not written.
57
+ Quit, or on Linux and macOS close the terminal, to get the engine's `shutdown` record. On Windows, closing the console ends the engine at once, so its last records are not written.
58
58
 
59
59
  Records hold function names and file paths, never prompts or message text. Atomic never trims the file, so delete it before reproducing a problem.
60
60
 
@@ -75,6 +75,10 @@ For SDK session requests, explicit `cacheRetention` takes precedence over `ATOMI
75
75
 
76
76
  Atomic sets `AI_AGENT=atomic` for itself and every subprocess it launches, replacing a caller-supplied value. Scripts can use it to identify an Atomic-owned invocation. The caller's environment object is not mutated.
77
77
 
78
+ ## TLS certificates
79
+
80
+ `NODE_EXTRA_CA_CERTS` names a PEM file of CA certificates Atomic trusts in addition to the built-in ones, for model providers, an `https://` proxy and the PostgreSQL store. Set it when a provider endpoint, or a proxy that inspects TLS traffic, uses a certificate from a private or corporate CA, and restart Atomic: it is read when Atomic starts. Both the npm-installed `atomic` and the standalone binary read it. A request refused for its certificate fails at once, naming the host and the reason, and is not retried.
81
+
78
82
  ## Provider credentials
79
83
 
80
84
  Provider keys include `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `AZURE_OPENAI_API_KEY`, `GEMINI_API_KEY`, AWS/Bedrock credentials, and the variables listed in [Providers](/providers#environment-variables-or-auth-file). `ANTHROPIC_AUTH_TOKEN` is a distinct header-only bearer credential for Anthropic-compatible gateways: Atomic sends `Authorization: Bearer …` without requiring or inventing an API key, including normal turns, isolated execution, and branch summaries. Custom headers remain independent.
@@ -664,6 +664,8 @@ pi.sendMessage({
664
664
  - `excludeFromContext: true` - Render and persist the custom message without adding it to LLM context. With no `deliverAs`, this remains display-only even while the agent is streaming.
665
665
  - `interruptAbortMessage` - Optional text used to replace generic abort results (for example `Operation aborted`) when `deliverAs: "interrupt"` aborts an active turn.
666
666
 
667
+ A command can answer with `sendMessage()`, `sendMessages()` or `sendUserMessage()` without awaiting it. In print mode (`-p`) and the JSON event stream, Atomic waits for the messages a command sends to its session before its handler returns, and for the turns they start, before it prints the result or runs the next prompt. Messages that a timer or task the command left running sends later are not waited for. The printed result is the command's message, or the reply of the turn it started. With text output (`-p` without `--mode json`), a command whose messages could not be saved, and that sent nothing else that was, prints nothing and makes the run exit with status `1`.
668
+
667
669
  ### pi.sendMessages(messages, options?)
668
670
 
669
671
  Atomically admit a batch of custom messages in array order. The call returns `void | Promise<void>` for compatibility with synchronous hosts; use `await Promise.resolve(pi.sendMessages(...))` when admission or routing failure must be observed. The promise is an admission receipt and does not wait for the resulting model turn. Admission is indivisible; use this when a prelude and terminal notice must stay contiguous without globally serializing other extension work.
@@ -298,7 +298,7 @@ pi.on("session_shutdown", async (event, ctx) => {
298
298
 
299
299
  `fromSignal` is set only on `reason: "quit"`. Ctrl+D and `/quit` leave it unset. Use it to tell a deliberate exit from the host stopping the process, for example to keep externally registered state that a restart can resume from.
300
300
 
301
- When you quit the interactive app, `session_shutdown` handlers have about five seconds to finish; a handler still running then is stopped with the rest of the session.
301
+ When you quit the interactive app, `session_shutdown` handlers have about five seconds to finish; a handler still running then is stopped with the rest of the session. The same applies, with `fromSignal: true`, when Atomic receives `SIGTERM` or `SIGHUP` or its terminal window is closed on Linux or macOS; a second `SIGTERM` stops the session at once. On Windows, closing the console window ends Atomic without running `session_shutdown`.
302
302
 
303
303
  ### Agent Events
304
304
 
@@ -24,6 +24,7 @@ npm install -g @bastani/atomic
24
24
  - Atomic does not require package install scripts; pass `--ignore-scripts` if you disable lifecycle scripts.
25
25
  - Package managers select the right platform runtime automatically. Keep a standalone archive's complete directory (`node_modules`, libraries, licenses) intact.
26
26
  - Sessions are stored locally in `~/.atomic/workflows/journal.sqlite` with no database server needed. To share sessions across machines, see [Sharing storage across hosts](/storage#sharing-storage-across-hosts).
27
+ - On Node 22, `AsyncLocalStorage` runs on promise hooks, which make every `await` in an Atomic process cost more. Node 24 and Bun have no such cost, so run Atomic on Node 24 or later to avoid it. Do not set `NODE_OPTIONS=--experimental-async-context-frame` for this: Node 24 and later refuse to start with that option, and commands Atomic runs for you inherit `NODE_OPTIONS`.
27
28
 
28
29
  ### Release archive
29
30
 
@@ -20,6 +20,8 @@ Atomic's session engine supports three non-interactive entry points. Use the tab
20
20
 
21
21
  If a text response reaches the model's output token limit, print mode keeps the partial text on stdout, writes a truncation warning to stderr, and exits with code `1`. Check the exit code before treating redirected output as complete.
22
22
 
23
+ An extension command works as a prompt too: `atomic --session <id> -p "/curator off"` prints the command's answer. When the command answers with a message, or with a turn that message starts, print mode waits for it, prints it, and only then runs the next prompt or exits.
24
+
23
25
  ## JSON events
24
26
 
25
27
  When you need to observe a run rather than read it, the JSON event stream emits one structured record per message, tool call, and result. Use it for logging, CI annotations, or piping into another tool. The event shapes are in [JSON event stream](/json).
@@ -105,7 +105,7 @@ When a resume restores a worktree, Atomic builds it, in this order: the global b
105
105
 
106
106
  Like Devin's differential builds, a build compares each workspace's blueprint with the last successful build of that workspace on this machine. An unchanged workspace is inherited: its `initialize` is skipped and its `maintenance` runs on top of the existing state. A changed, new or previously failed workspace is rebuilt: `initialize` and `maintenance` both run. A workspace that is no longer configured is removed from the record. A full build, where every workspace is rebuilt and the global `initialize` runs, replaces a differential one when the global blueprint changed or the last full build is older than 7 days. Editing a blueprint is all it takes to retry it.
107
107
 
108
- A step fails when its command exits non-zero, a PowerShell error is raised, it times out, or its program cannot be started; a program the system refuses for a moment (`EPERM` or `EBUSY` on Windows, `ETXTBSY` on Linux, as while an antivirus scan or the installer that just wrote it still holds the file) is tried again for up to half a second first, so a program that stays refused fails its step at most half a second later. A refused program is not started after the step’s timeout, even if the system clock moves backward. Time spent asleep counts toward the retry deadline and the budget for launching a fetched action. Reported step durations include that time. As in GitHub Actions, the rest of that step stops at once, and as in Devin, "only the setup steps of the failing blueprints did not run": the remaining `initialize` steps and the `maintenance` of that blueprint are skipped, while the other repositories and workspaces keep building. Setup never blocks a resume:
108
+ A step fails when its command exits non-zero, a PowerShell error is raised, it times out, or its program cannot be started; a program the system refuses for a moment (`EPERM` or `EBUSY` on Windows, `ETXTBSY` on Linux, as while an antivirus scan or the installer that just wrote it still holds the file) is tried again for up to two seconds first, at first every 50 ms and then less often, so a program that stays refused fails its step at most two seconds later. A refused program is not started after the step’s timeout, even if the system clock moves backward. Time spent asleep counts toward the retry deadline and the budget for launching a fetched action. Reported step durations include that time. As in GitHub Actions, the rest of that step stops at once, and as in Devin, "only the setup steps of the failing blueprints did not run": the remaining `initialize` steps and the `maintenance` of that blueprint are skipped, while the other repositories and workspaces keep building. Setup never blocks a resume:
109
109
 
110
110
  | What happened | Outcome | What you see |
111
111
  |---|---|---|
@@ -131,6 +131,8 @@ A setting always wins. To wait for the build without a UI too, as before, set:
131
131
 
132
132
  To start the first turn early in the TUI as well, set it to `"tools"`.
133
133
 
134
+ A resume in a folder whose saved trust a user or global extension's `project_trust` handler can still decline (see [Project trust](/security#project-trust)) always works like `"tools"`: the session opens once the worktrees are restored, and their blueprints build after the session has decided the folder's trust. A restored worktree that decision does not cover stays unbuilt, and the agent is told it was not trusted.
135
+
134
136
  ### What the agent sees
135
137
 
136
138
  The first turn of a resumed session carries each applicable blueprint's `maintenance` steps and `knowledge` items, labelled with what happened: ran in this build, not yet run on this machine (skipped or untrusted), or not run or partial with the failing step and its log. The agent re-runs `maintenance` itself when it finds that dependencies changed. Atomic's default system prompt also asks the agent to keep `.atomic/blueprint.yaml` current as part of normal work: to write one when a repository has none, to update it in the same change that adds a dependency, tool or workspace, to record hard-won commands in `knowledge`, to leave secrets out, and to fix it after a Partial build. It edits `~/.atomic/agent/blueprint.yaml` only when you ask.
@@ -57,7 +57,7 @@ Live-session lookup accepts:
57
57
 
58
58
  Exact names and IDs take precedence, and an Atomic session ID is tried only after the other forms find nothing. Ambiguous prefixes report only authorized candidates and require the full UUID; other truncations are rejected. An isolated child can select its authorized supervisor by a unique UUID prefix without gaining access to unrelated groups.
59
59
 
60
- A reopened session or a restored background subagent registers under the Intercom session ID it had before the restart, so peers can keep using the ID they saw in `intercom list`. The session records that ID in its history as an `intercom_session_identity` entry. The broker never gives an ID to a new registration while a live session holds it; the restarted session then gets a fresh ID. While the broker remembers who last held an ID, only that same Atomic session can take it back.
60
+ A reopened session or a restored background subagent registers under the Intercom session ID it had before the restart, so peers can keep using the ID they saw in `intercom list`. The session records that ID in its history as an `intercom_session_identity` entry. The broker never gives an ID to a new registration while a live session holds it; the restarted session then gets a fresh ID. While the broker remembers who last held an ID, only that same Atomic session can take it back. With [multi-node routing](/intercom/operations#running-intercom-across-machines), the shared database confirms the ID first; if its broker stalls while it waits for that answer, the session still keeps the ID when the database wrote it for this session and no broker on another node presents it, and otherwise gets a fresh ID.
61
61
 
62
62
  #### Sending to several sessions at once
63
63
 
@@ -147,7 +147,7 @@ On Windows, pressing the secondary mouse button in fullscreen pastes text from t
147
147
 
148
148
  | Keybinding id | Default | Description |
149
149
  |--------|---------|-------------|
150
- | `app.interrupt` | `escape` | Abort active or queued work and restore still-queued steering/follow-up messages to the editor; the session remains paused until an ordinary submission. A message the agent already picked up is answered instead of restored. While viewing a subagent, pauses that subagent (never main) and returns its queued messages to the prompt; sending a message continues it. On an empty prompt with the viewed subagent not working, shows `main` (without counting toward main's double-Esc) |
150
+ | `app.interrupt` | `escape` | Abort active or queued work and restore still-queued steering/follow-up messages to the editor; the session remains paused until an ordinary submission. A message the agent already picked up is answered instead of restored. While viewing a subagent, pauses that subagent (never main) and returns its queued messages to the prompt; sending a message continues it. It never switches back to `main` |
151
151
  | `app.clear` | `ctrl+c` | Clear the editor when it has text; otherwise interrupt active or queued work, or terminate an unresponsive interactive engine; on an empty, idle editor, the first press shows "Press Ctrl+C again to exit" and a second press within 0.8 s exits. While viewing a subagent, an empty prompt's Ctrl+C pauses its running work (never main's) and shows `main` in one press, and never offers to exit |
152
152
  | `app.exit` | `ctrl+d` | Exit (when editor empty) |
153
153
  | `app.suspend` | `ctrl+z` (`alt+z` on Windows) | Suspend to background; on Windows, open a PowerShell subshell |
@@ -226,9 +226,10 @@ The message queue keys work the same whether you are viewing the main chat or a
226
226
  Atomic uses one chat screen for the main chat and its subagents, with the agent panel below the prompt:
227
227
 
228
228
  - **Switching agents:** Press **↓** (`app.agents.focus`) on an empty prompt to focus the agent panel. Select a subagent row and press **Enter** or **→** (or click it) to swap the transcript to that subagent and point the same prompt at it; the panel marks the viewed agent with `●` and returns focus to the prompt. Select `main` and press **Enter** (or click `main`) to switch back to the main chat.
229
- - **Esc** interrupts the main chat's turn when viewing `main`, pauses the viewed subagent when it works (returning its queued messages to the prompt), cancels a pending switch, closes a dialog, or deselects the panel. On an empty prompt while the viewed subagent is not working, Esc shows `main`; that press never counts as the first of main's double-Esc. **Ctrl+C** on an empty prompt while viewing a subagent pauses it if it works and shows `main`.
229
+ - **← back to `main`:** While viewing a subagent, press **←** (`app.nav.back`) on its empty prompt to show `main` again. The subagent keeps running, and its queued messages and unsent draft stay with it. With text in the prompt, ← moves the cursor as usual. The hint by the prompt reads `← main chat`; clicking it does the same.
230
+ - **Esc** interrupts the main chat's turn when viewing `main`, pauses the viewed subagent when it works (returning its queued messages to the prompt), cancels a pending switch, closes a dialog, or deselects the panel. It never switches from a subagent back to `main`, and pressing it there never counts as the first press of main's double-Esc. **Ctrl+C** on an empty prompt while viewing a subagent pauses it if it works and shows `main`.
230
231
  - **Lists (`/tasks` and the focused agent panel):** **↑↓** select, **Enter** or **→** switches the chat screen to a subagent (or opens a shell's output page), **Space** peeks at a task's detail card in `/tasks` (or switches to a subagent waiting on input), **x** stops the selected subagent or nested shell (press it again within 3 seconds to confirm; on a finished item one press dismisses the row), and **Esc** or **←** closes the list or returns focus to the prompt. If an item finishes between the two presses of `x`, the stop is called off and the list says `<name> finished · x to acknowledge`; that press acknowledges the change, and a later `x` dismisses the row after its finished state is painted.
231
- - **← (`app.nav.back`)** goes back one level inside `/tasks` (from a detail or shell output page to the list, or from a nested shell output back to the focused agent panel) and from a shell's empty input prompt back to the list.
232
+ - **← (`app.nav.back`)** goes back one level inside `/tasks` (from a detail or shell output page to the list, or from a nested shell output back to the focused agent panel), from a shell's empty input prompt back to the list, and from a viewed subagent's empty prompt back to `main`.
232
233
  - **Ctrl+X Ctrl+K** stops every running background subagent and shell of the session, from any view except a dialog that uses Ctrl+X itself (OAuth sign-in, the scoped-model selector). Press it twice within 3 seconds; the first press says what it will do, and any other key calls it off. Stopped subagents stay resumable: viewing one shows `Stopped · send to resume`, and sending a message resumes it.
233
234
  - **?** on an empty prompt, or in a list, shows the keys of the current screen; typed after text, `?` is just a character. Esc or `?` closes it.
234
235
  - A finished subagent stays open to messages when viewed: sending one continues it in its own session, in the same `/tasks` row. A subagent stopped for good, or one no longer kept, is read-only when viewed (the prompt placeholder explains why and typing is ignored, while scrolling still works).
@@ -236,7 +237,7 @@ Atomic uses one chat screen for the main chat and its subagents, with the agent
236
237
 
237
238
  | Keybinding id | Default | Description |
238
239
  |--------|---------|-------------|
239
- | `app.nav.back` | `left` | Go back one level in `/tasks`, shell output, or the focused panel |
240
+ | `app.nav.back` | `left` | Go back one level in `/tasks`, shell output, or the focused panel, and from a viewed subagent's empty prompt to `main`. Esc and Ctrl+C never act as this key, and a key that the prompt or an extension shortcut already uses keeps that use |
240
241
  | `app.list.open` | `enter`, `right` | Switch to the selected subagent (or `main`), or open the selected shell output |
241
242
  | `app.list.stop` | `x` | Stop the selected item (press again to confirm); dismiss a finished one |
242
243
  | `app.list.peek` | `space` | Peek at the selected task |
@@ -251,7 +252,7 @@ Atomic uses one chat screen for the main chat and its subagents, with the agent
251
252
 
252
253
  On macOS, Alt+W reaches Atomic only when the terminal sends Option as Meta: turn on **Use Option as Meta key** (Terminal.app), set **Left/Right Option key** to **Esc+** (iTerm2), or set `macos-option-as-alt` (Ghostty) or `macos_option_as_alt both` (kitty, then restart it). Otherwise Option+W types `œ`; remap `app.tasks.openWaited` to another key instead. If you bound Alt+W to another action yourself, such as moving the cursor a word forward, the two collide: while viewing a waiting subagent and on its `/tasks` row, Alt+W opens the shell instead. Give one of them a different key.
253
254
 
254
- **Migrating from earlier versions:** `app.tasks.inspect` is now `app.list.open` and `app.tasks.cancel` is now `app.list.stop`; existing `keybindings.json` entries are migrated on startup. Focus the agent panel (`↓`) and press `Enter` on `main` to return from a viewed subagent to the main chat, or press `Esc` on an empty prompt while it is not working; `Esc` pauses a working subagent. Stopping a task asked for `y`; press `x` a second time instead.
255
+ **Migrating from earlier versions:** `app.tasks.inspect` is now `app.list.open` and `app.tasks.cancel` is now `app.list.stop`; existing `keybindings.json` entries are migrated on startup. To return from a viewed subagent to the main chat, press `←` on its empty prompt, or focus the agent panel (`↓`) and press `Enter` on `main`. `Esc` no longer switches back; it pauses a working subagent. Stopping a task asked for `y`; press `x` a second time instead.
255
256
 
256
257
  Mounted human-input prompts and the composer retain priority. Escape leaves stdin
257
258
  or task detail before leaving task focus. Unbound actions have no key hint.
@@ -1641,11 +1641,12 @@ interface SystemMessage {
1641
1641
  sections?: Record<string, string | null>;
1642
1642
  toolsAdded?: Tool[];
1643
1643
  toolsRemoved?: ToolReference[];
1644
+ strictToolsDisabled?: boolean;
1644
1645
  timestamp: number;
1645
1646
  }
1646
1647
  ```
1647
1648
 
1648
- Later system messages append instructions, patch named sections (`null` removes a section), and add or remove tools. Section text is opaque and rendered verbatim, joined by blank lines. `getCurrentSystemPrompt(context.messages)` and `getCurrentTools(context.messages)` replay these changes for custom providers; do not read `context.systemPrompt` or `context.tools` inside provider implementations.
1649
+ Later system messages append instructions, patch named sections (`null` removes a section), and add or remove tools. `strictToolsDisabled` records that the provider rejected the conversation's `strict: 'prefer'` tools for its strict-tool limits; Anthropic and Bedrock then send them without strict schemas, as they do after such a rejection. Set it on the system message that replaces compacted history, so the record outlives the replies that held it. Section text is opaque and rendered verbatim, joined by blank lines. `getCurrentSystemPrompt(context.messages)` and `getCurrentTools(context.messages)` replay these changes for custom providers; do not read `context.systemPrompt` or `context.tools` inside provider implementations.
1649
1650
 
1650
1651
  Models with `supportsMidConvoSystemMessages` receive updates in place. Other models receive the replayed prompt and tools as a leading checkpoint. Anthropic's `supportsMidConvoToolChanges`, OpenAI Responses' `supportsAdditionalTools`/`supportsToolSearch`, and OpenAI Completions' `supportsMidConvoToolAdditions` enable native tool transitions where representable. Unsupported transitions fall back to the current top-level tool list and may invalidate the cached prefix.
1651
1652
 
@@ -91,7 +91,7 @@ Installed [packages](/packages/authoring#mcp-servers) and extensions can contrib
91
91
 
92
92
  Command completion suggests actions and eligible server names. When a server name is omitted, Atomic selects an eligible server when the choice is unambiguous; otherwise it asks you to choose. Session login requires an interactive UI. Shell login opens the browser without starting a session; authenticate before unattended work.
93
93
 
94
- Enabled servers connect in the background when a session starts. The first prompt waits up to 10 seconds for servers with `direct` tools. Codemode, tool search, and resource calls wait for the servers they need. A dropped connection reconnects on the next call. Changes announced by a server update the available tools; withdrawn tools become unreachable. When you resume a session, the MCP tools it was using stay available while their servers reconnect: a call to one waits for its server and runs only if the server still offers the same tool. Tools of a server that does not reconnect, needs a sign-in, or changed them are removed or updated with the next request.
94
+ Enabled servers connect in the background when a session starts. The first prompt waits up to 10 seconds for servers with `direct` tools. Codemode, tool search, and resource calls wait for the servers they need. A dropped connection reconnects on the next call. Changes announced by a server update the available tools; withdrawn tools become unreachable. When you resume a session, the MCP tools it was using stay available while their servers reconnect, and the system prompt keeps each server's summary: a call to one of the tools waits for its server and runs only if the server still offers the same tool. This holds for a server still defined in the same place (global or project `mcp.json`, or an extension) with the same command and working directory, or the same URL scheme, host, port and path; a changed argument, such as a token, or URL query does not count as a change. Tools of a server that does not reconnect, needs a sign-in, or changed them are removed or updated with the next request.
95
95
 
96
96
  ### Shell commands
97
97
 
@@ -596,7 +596,7 @@ Pass `extensionBindings` to `createAgentSession()` to install `uiContext`, `mode
596
596
 
597
597
  Strict reloads (`failOnExtensionErrors: true`) require the loader's transactional `prepareReload()` support so a failed candidate cannot mutate live state before validation. `DefaultResourceLoader` provides that support. Custom loaders without it remain compatible with ordinary reloads, but strict reload fails before calling their mutating `reload()` method.
598
598
 
599
- Use `await session.dispose()` rather than fire-and-forget cleanup. It seals admission immediately and waits for owned work, extension shutdown, persistence and lease release. Concurrent disposal calls return the same promise. Catch `ShutdownFailed` to inspect its component `errors`; a rejected close is not successful cleanup, and the session stays closed. Do not add a manual MCP or Intercom teardown sequence. Caller-supplied settings, storage and model runtimes remain caller-owned.
599
+ Use `await session.dispose()` rather than fire-and-forget cleanup. It seals admission immediately and waits for owned work, extension shutdown, persistence and lease release. Once it resolves, nothing the session started still writes to its session store, so you can remove the folder of a session store you own. Concurrent disposal calls return the same promise. Catch `ShutdownFailed` to inspect its component `errors`; a rejected close is not successful cleanup, and the session stays closed. Do not add a manual MCP or Intercom teardown sequence. Caller-supplied settings, storage and model runtimes remain caller-owned.
600
600
 
601
601
  `AgentSessionRuntime` uses the same awaited close when replacing sessions and transfers configured host bindings before the replacement starts. Reload invalidates old input requests and extension subscriptions while retaining host configuration. A late answer from an old generation cannot authorize replacement work.
602
602
 
package/docs/sdk.md CHANGED
@@ -61,6 +61,12 @@ For TypeScript ESM Node apps, set `"type": "module"` in `package.json` and `"mod
61
61
  import { createAgentSession, type HostInput } from "@bastani/atomic";
62
62
  ```
63
63
 
64
+ ### Node 22 hosts
65
+
66
+ On Node 22, `AsyncLocalStorage` runs on promise hooks. Once a session has run, they stay on for the whole process, and every `await` in your application costs more. Atomic keeps all of its context in one store, so the cost does not grow with the number of sessions. Node 24 and Bun have no such cost.
67
+
68
+ On Node 22.7 or a later 22.x release, start your host with `node --experimental-async-context-frame` to avoid it. The flag switches `AsyncLocalStorage` to Node 24's implementation for the whole process, so check any code of your own that relies on Node 22's behavior, such as `disable()`. Pass it on the host's own command line, not in `NODE_OPTIONS`: Node 24 and later refuse the flag, and commands your sessions' tools run inherit `NODE_OPTIONS`, so a newer Node among them would fail to start.
69
+
64
70
  ### Migrating an existing Node host
65
71
 
66
72
  <a id="migrating-from-the-experimental-client" />
package/docs/security.md CHANGED
@@ -31,9 +31,11 @@ Declining trust skips protected resources, including project-local discovery of
31
31
 
32
32
  Trust belongs to the folder a session works in, not the one Atomic was started from. Resuming a session in interactive mode (`--resume`, `--continue`, `--session` or `/resume`) applies the decision for the folder the session continues in and asks about it when it has none. An answer for this session only lasts until Atomic exits: switching back to that folder with `/resume` uses it again, Atomic keeps it when it restarts its engine, and it is never saved to `trust.json`. The same holds for each `-e` extension source: if the engine restarts while you are answering several trust questions, it asks only about paths that still need a decision. A Git worktree outside its repository's folder is a separate folder with its own decision, because it can check out different `.atomic` content; to cover several worktrees kept in one directory, choose **Trust parent folder** for one of them, when asked or in `/trust`.
33
33
 
34
- Atomic loads user/global extensions and explicit CLI `-e` package-level extensions to resolve trust. They can handle the `project_trust` event; the first to return a yes/no decision owns it. From the interactive engine's first trust report, the interface withholds the folder's project resources if a registered handler can still decline it. It does not show an untrusted warning for a pending check. Approval makes the folder's resources available to new views and completions without waiting for a separate `-e` source's decision. Atomic's open pickers and completion menus keep their existing choices. Extension-provided editors receive the approved provider as a normal replacement and manage their own menus.
34
+ Atomic loads user/global extensions and explicit CLI `-e` package-level extensions to resolve trust. They can handle the `project_trust` event; the first to return a yes/no decision owns it, ahead of a saved decision. So in an interactive session, when such extensions are installed (any user or global extension or package, or an `-e` extension), a saved **Trust** or `defaultProjectTrust: "always"` is not a decision until the handlers have answered. Until then Atomic uses only global settings and resources: the first screen, migrating the folder's settings, the session store that `--continue`, `--resume` and `--session` read, and the build of restored worktrees wait for the decision. It does not show an untrusted warning for a pending check. Without such extensions, or with `--approve`, a saved **Trust** applies at once. When the folder's own settings choose another session store than the global ones (`sessions.storage` or `storage`), Atomic decides the folder's trust before it opens a session, so `--continue` waits for the extensions to load; a new session starts in the global store and moves to the folder's store once it is trusted. Such a session's interface runs in the same process as its extensions.
35
35
 
36
- This check does not change startup before that first report: a saved trust may already have selected project settings, including the `sessions.storage` store used by `--continue`. If an extension adds a handler while it can still take part in the folder's decision, the interface withdraws even previously listed project resources without showing an untrusted warning. Once the engine starts calling the handlers, that set is fixed: adding or removing a handler does not change who gets to decide this time. Approval reads the current folder resources from disk. Because resource discovery refreshes the combined catalog, a global prompt renamed during the check can also appear under its new name before `/reload`.
36
+ Approval makes the folder's resources available without waiting for a separate `-e` source's decision. The resource list at the top of the chat lists the approved resources and keeps each section expanded or folded; it waits while text is selected, a click or drag is in progress, you search, or you have scrolled the chat away from its start and end. Open completion menus, pickers, the theme picker and Settings pages keep their choices, so a setting you are editing is saved where it was going to be saved; the next completion or a picker you open again offers the folder's resources. Extension-provided editors receive the approved provider as a normal replacement and manage their own menus.
37
+
38
+ If an extension adds a handler while it can still take part in the folder's decision, the interface withdraws even previously listed project resources without showing an untrusted warning. Once the engine starts calling the handlers, that set is fixed: adding or removing a handler does not change who gets to decide this time. Approval reads the current folder resources from disk. Because resource discovery refreshes the combined catalog, a global prompt renamed during the check can also appear under its new name before `/reload`.
37
39
 
38
40
  If `-e <dir>` discovers resources borrowed from that directory's `.atomic`, legacy `.pi`, or `.agents/skills`, Atomic resolves trust for that source before loading them. Borrowed extensions can execute code with the Atomic process permissions.
39
41
 
package/docs/settings.md CHANGED
@@ -103,7 +103,7 @@ Ordered fallback chain for main-chat turns after same-model retries exhaust on a
103
103
 
104
104
  - **Entry format:** `provider/model` (preferred; bare IDs also work, including IDs containing `/` or `:` like `qwen/qwen3-coder:exacto`) with optional `:off`, `:minimal`, `:low`, `:medium`, `:high`, `:xhigh`, or `:max` suffix (clamped to model support). Run `atomic --list-models` for IDs. Unmatched entries warn once after extensions load and are skipped.
105
105
  - **CLI precedence:** `--model` runs strictly as named and falls back only to `--fallback-models` (ignoring settings `fallbackModels`). `--no-fallback` disables fallback for one run. `--fallback-models` replaces this list for one run. Extension-registered providers work in `fallbackModels` and `--fallback-models` too. Press Esc during a retry wait or a model switch to stop the pending request; while viewing a subagent, send a new message to continue. See [CLI model options](/reference/cli#model-options).
106
- - **Triggers:** Rate limits, quota/usage exhaustion (`The usage limit has been reached`), transient errors (unrecognized errors without status/code retry same-model first), and content-filter refusals (OpenAI HTTP 422 `cyber_policy`, Anthropic refusal, `content_filter`—skips same-model retry; set `retry.fallbackOnContentFilter: false` to stay on the refusing model). Context overflow compacts first and falls back only if compaction is off, fails, or does not resolve overflow. With `retry.enabled: false`, retryable errors advance immediately. Non-retryable errors and `Esc`/cancellations never fall back.
106
+ - **Triggers:** Rate limits, quota/usage exhaustion (`The usage limit has been reached`), transient errors (unrecognized errors without status/code retry same-model first), content-filter refusals (OpenAI HTTP 422 `cyber_policy`, Anthropic refusal, `content_filter`—skips same-model retry; set `retry.fallbackOnContentFilter: false` to stay on the refusing model), and an endpoint whose TLS certificate is refused (skips same-model retry; each fallback is tried once). Context overflow compacts first and falls back only if compaction is off, fails, or does not resolve overflow. With `retry.enabled: false`, retryable errors advance immediately. Non-retryable errors and `Esc`/cancellations never fall back.
107
107
  - **Provider/model exclusion for the turn:** Unauthenticated providers skip before any request (recorded in `model_change` `fallback.skipped`; if none have credentials, fails immediately listing missing providers). Rejected credentials (HTTP 401, invalid/expired key or token, `invalid_api_key`, `authentication_error`) exclude the whole provider for the turn. Model-scoped HTTP 403 or incompatible-request failures exclude only that model across all reasoning suffixes.
108
108
  - **Persistence & visibility:** Once a fallback runs, it stays active for subsequent turns (and keeps thinking-level changes) until you explicitly switch via `/model` or model cycling. Recorded as a `model_change` entry; in `-p` mode prints fallbacks to stderr and ends with `Model: ran on <fallback>, not the requested <model>.`. Independent from `enabledModels`. Switching providers changes billing and data-handling terms—include only approved providers.
109
109
 
@@ -253,6 +253,7 @@ See [Worktree snapshots](/worktree-snapshots).
253
253
  | `retry.provider.maxRetryDelayMs` | number | `60000` | Max server-hinted retry delay before failing fast (`0` disables cap; legacy `retry.maxDelayMs` migrates here) |
254
254
 
255
255
  - **Server retry hints:** Honors `Retry-After-Ms`, `Retry-After`, Cloudflare 5xx `retry_after`, and Google `RetryInfo.retryDelay` up to `retry.provider.maxRetryDelayMs` (failing immediately if the server requests longer, e.g. a 5-hour quota reset). Covers OpenAI, OpenAI-compatible, Codex, Anthropic, Azure OpenAI, Mistral, Google/Vertex, and Bedrock. Cloudflare 520–524 and connection resets count as transient; non-retryable 4xx and quota errors fail immediately. `retry.maxRetries` still limits the number of retries, so with the defaults a hinted outage can take up to about 3 × 60s before the turn fails or switches to a configured `fallbackModels` entry.
256
+ - **Refused TLS certificates:** A request refused because the endpoint's certificate is not trusted, for example a self-signed certificate or a corporate TLS-inspecting proxy, is never retried, at the SDK level or by `retry.maxRetries`. The error names the host, the code (such as `SELF_SIGNED_CERT_IN_CHAIN`) and the fix: to trust a private or corporate CA, set [`NODE_EXTRA_CA_CERTS`](/environment-variables#tls-certificates) and restart Atomic. A connection reset during the TLS handshake is still retried.
256
257
  - **GitHub Copilot long cuts:** A stream cut after ≥5 minutes gets 1 retry; a second consecutive long cut switches to `fallbackModels` (or fails suggesting smaller steps / lower effort). See [GitHub Copilot errors](/providers#streams-cut-after-a-long-attempt).
257
258
  - **SDK `retryDeadline`:** Pass `retryDeadline: performance.now() + budgetMs` (or `{ at, onExpired }`) alongside `signal` on provider requests or `retryAssistantCall()` to prevent starting backoff retries past a local process deadline (do not use `Date.now()`).
258
259
 
package/docs/storage.md CHANGED
@@ -275,6 +275,8 @@ A cloud identity is a role like any other: make it the runtime role with the gra
275
275
  - **A certificate error** (`self-signed certificate in certificate chain`, `unable to get local issuer certificate`): the server's CA is not one Node.js trusts. Add `sslrootcert`, as in [TLS](#tls).
276
276
  - **`INVALID_PURPOSE`**: a certificate in the server's chain may not be used for it. Usually the certificate `sslrootcert` names is not marked as a CA (`basicConstraints=CA:TRUE`), or it is limited to client authentication. Point `sslrootcert` at the CA certificate that signed the server's certificate, or reissue that CA with `CA:TRUE` and without the client-authentication limit. Atomic does not retry it.
277
277
  - **`PATH_LENGTH_EXCEEDED`**: the server's chain has more intermediate CAs than its root allows. Reissue the root without that path-length limit, or have the root sign the server's certificate directly. Atomic does not retry it.
278
+ - **`UNSPECIFIED`** with a reason, such as `UNSPECIFIED: key usage does not include certificate signing`: the npm-installed `atomic` (Node.js) reports a refused certificate this way when Node.js has no code of its own for the reason; the standalone binary may name another code for the same certificate. The reason says what to fix: here, the CA `sslrootcert` names may not sign certificates, so reissue it with `keyUsage` including `keyCertSign`. Atomic does not retry it.
279
+ - **"the proxy … showed a TLS certificate that was not accepted"**: the `https://` proxy's own certificate was refused. It is checked against the CAs Node.js trusts, never `sslrootcert`: if a private or corporate CA issued it, add that CA to [`NODE_EXTRA_CA_CERTS`](/environment-variables#tls-certificates). Atomic does not retry it.
278
280
  - **"the proxy … refused the tunnel to …"**: the proxy's allow-list does not name the database's `host:port`, or (`407`) it wants credentials it was not given: put them in the proxy URL. "could not be reached" means nothing answers at the proxy's address; check `HTTPS_PROXY`. To connect without the proxy, add the host to `NO_PROXY` or set the `proxy` option to `"none"`. See [Through an HTTP proxy](#through-an-http-proxy).
279
281
  - **`unsupported-proxy`**: the proxy variable or option is not an `http://` or `https://` URL, for example a `socks5://` proxy in `HTTPS_PROXY`. Set an HTTP proxy, add the database host to `NO_PROXY`, or set the `proxy` option to `"none"`.
280
282
  - **`StorageTransientError` with code `read-only-server`** (`25006`): the server accepts reads only. Either the URL names a read replica, a standby or a read-only endpoint, such as an Azure HorizonDB pool's: use the primary server, or the cluster's read/write endpoint. Or the server is read-only for now, during a failover or while Azure keeps a server whose storage is nearly full read-only: Atomic retries, and a call still refused after its retries fails with this code.
package/docs/subagents.md CHANGED
@@ -269,9 +269,9 @@ Use `/tasks` (or `/tasks <id>`) to inspect background subagents and shells (excl
269
269
  - **Header counts:** **Needs input**, **Working**, **Waiting** (released subagents), and **Done**.
270
270
  - **Model column:** Each subagent row names the model it runs on now and its reasoning level after its name, for example `debugger github-copilot/claude-opus-5.5 medium Read the template…`, as the agent panel does. It changes when the subagent falls back to one of its `fallbackModels`, is resumed on a different model, or changes its level, so a row never keeps naming a model the subagent left.
271
271
  - **Questions in subagents:** A subagent's `ask_user_question` or extension dialog waits in that subagent's transcript (flagged as **Needs input** in the panel and `/tasks`); the main chat stays usable and never answers accidentally. Viewing that subagent shows the form at the bottom of its transcript and gives it focus until answered. Opening `/tasks` while main chat has a question preserves the main-chat question. In multi-question forms, `←` steps back through tabs without clearing typed drafts; `Esc` cancels without approving; `PageUp`/`PageDown` pages >10 options or scrolls the transcript. SDK hosts without a task inspector route `humanInput` by `sessionId` ([Human input without a terminal](/sdk#human-input-without-a-terminal)).
272
- - **Single chat screen:** Selecting a subagent from the agent panel or `/tasks` swaps the transcript area to that subagent's live transcript and points the same prompt box at it (top rule `debugger · #5220 spawn lock · 18m`, empty prompt `Message @debugger…` or `Answer @debugger…`). The agent panel stays below the prompt, marks the viewed agent with `●`, keeps it listed while viewed (even after it finishes), and nests its running background shells underneath it. Select `main` in the panel and press `Enter` (or click `main`) to switch back. Sending a message to a finished or stopped subagent resumes its saved session in the same task. If a viewed subagent is dismissed or removed, the screen returns to `main` and places any unsent draft in front of main's prompt with a notice.
272
+ - **Single chat screen:** Selecting a subagent from the agent panel or `/tasks` swaps the transcript area to that subagent's live transcript and points the same prompt box at it (top rule `debugger · #5220 spawn lock · 18m`, empty prompt `Message @debugger…` or `Answer @debugger…`). The agent panel stays below the prompt, marks the viewed agent with `●`, keeps it listed while viewed (even after it finishes), and nests its running background shells underneath it. Press `←` on the empty prompt (the hint reads `← main chat`), or select `main` in the panel and press `Enter` (or click `main`), to switch back; the subagent keeps running. Sending a message to a finished or stopped subagent resumes its saved session in the same task. If a viewed subagent is dismissed or removed, the screen returns to `main` and places any unsent draft in front of main's prompt with a notice.
273
273
  - **Messages, history, and commands:** What you type goes to the viewed subagent's own session, as in the main chat. While it works, `Enter` queues a steering message and `Alt+Enter` a follow-up (`Steering:` / `Follow-up:` rows above the prompt); `Alt+Up` brings queued messages back into the prompt. Each agent keeps its own draft and prompt history (`↑`/`↓` and `Ctrl+R`). Skills (`/skill:<name>`), prompt templates, and user or project extension commands go to the viewed subagent, using its own skills and working directory (`@` and `Tab` complete under its directory). Built-in commands run on `main` (asking first for conversation-rewriting commands such as `/compact`, `/tree`, `/fork`, `/clone`, `/new`, and `/import`, which then run while the subagent stays shown unless they replace the main session; switching to `main` first for transcript output such as `/session` and `/tools`; `/resume` opens its picker in place); `/model`, `/thinking`, and `!` shell commands are refused with a notice; `/copy` copies the viewed subagent's last message. See [Viewing a subagent](/background-tasks#viewing-a-subagent) for the full command table.
274
- - **Esc pauses the subagent:** Pressing `Esc` while the viewed subagent works pauses it without affecting the main chat: its queued messages come back into the prompt, steering first, and its current turn ends. A message it has just received but not yet begun to answer stays in its transcript and is not sent again. `Ctrl+C` on an empty prompt pauses it the same way and shows `main`; `Esc` on an empty prompt while it is not working shows `main`. It keeps its session and task: the prompt reads `Paused · send to continue`, the footer shows `esc to pause` while it works, and `/tasks` lists it under **Working** as `‖ paused`. Only a message you send continues it; messages from other agents, its background work's notices, and heartbeats wait until then. It stays paused if Atomic restarts and you continue or resume the session. `x` still stops it.
274
+ - **Esc pauses the subagent:** Pressing `Esc` while the viewed subagent works pauses it without affecting the main chat: its queued messages come back into the prompt, steering first, and its current turn ends. A message it has just received but not yet begun to answer stays in its transcript and is not sent again. `Ctrl+C` on an empty prompt pauses it the same way and shows `main`; `Esc` never switches back to `main`. It keeps its session and task: the prompt reads `Paused · send to continue`, the footer shows `esc to pause` while it works, and `/tasks` lists it under **Working** as `‖ paused`. Only a message you send continues it; messages from other agents, its background work's notices, and heartbeats wait until then. It stays paused if Atomic restarts and you continue or resume the session. `x` still stops it.
275
275
  - **Transcript fidelity:** Live transcripts stream updates, support `Ctrl+T` (thinking), `Ctrl+O` (tool output), and click-to-expand, and load older history on scroll-up (`Transcript unavailable` if uncaptured). Stopping with `x` posts a **quit · awaiting resume** notice to the owning chat.
276
276
 
277
277
  ## Orchestrator model and group policy
@@ -8,7 +8,9 @@ description: Component and focusable interfaces, keyboard input, line width, inv
8
8
 
9
9
  ## Tool blocks
10
10
 
11
- Use `ToolBlock` from `@bastani/atomic` for a transcript item with a state glyph, one header row and connected result rows. It accepts `status`, `title`, optional `args`, `meta`, `details`, `body` and `outputPad` (default `1`). Supported states are `running`, `success`, `failure`, `stopped`, `warning`, `paused`, `waiting` (a still, dim `◌`: not working, and wakes by itself when what it waits on finishes) and `info`. Code that switches over `ToolBlockStatus` or `NoticeStatus` should handle `waiting`.
11
+ Use `ToolBlock` from `@bastani/atomic` for a transcript item with a state glyph, one header row and connected result rows. It accepts `status`, `title`, optional `args`, `meta`, `details`, `body` and `outputPad` (default `1`). Supported states are `running` (the working `∀` of a call in progress), `success`, `failure`, `stopped` (a call that was interrupted or not run), `warning`, `paused`, `waiting` (a still, dim `◌`: not working, and wakes by itself when what it waits on finishes) and `info`. A block that stands for a subagent or background task shows its state with the marks of the agent panel and `/tasks`: `agent-running` (a grey `◯`), `shell-running` (`⧗`), `input` (`◆`, waiting for an answer) and `task-stopped` (a red `◯`). `TASK_MARKS` from `@bastani/atomic` holds those marks for text you draw yourself. Code that switches over `ToolBlockStatus` or `NoticeStatus` should handle `waiting`, `agent-running`, `shell-running`, `input` and `task-stopped`.
12
+
13
+ A `NoticeLine` reports a task, so it draws `running` as a grey `◯` and `stopped` as a red `◯`, the marks of a running and a stopped subagent; earlier versions drew `∀` and a muted `◼`. A `ToolBlock` keeps `∀` and the muted `◼`. `paused` is `‖` in the warning colour on both, where earlier versions drew a muted `⏸`. With `NO_COLOR`, a running and a stopped notice, like an `agent-running` and a `task-stopped` block, both show `◯`, and only their words tell them apart.
12
14
 
13
15
  ```typescript
14
16
  import { ToolBlock, ToolBlockRecords } from "@bastani/atomic";