@bastani/atomic 0.10.10 → 0.10.11-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 (380) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +1 -1
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +8 -10
  7. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  8. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +6 -6
  9. package/dist/_shared/mode-shared-2QJSCUM6.js +52 -15
  10. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  11. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  12. package/dist/_shared/runtime-O4KCSG4C.js +3 -3
  13. package/dist/_shared/{sdk-RRLVN7ER.js → sdk-AVFII7NK.js} +757 -233
  14. package/dist/_shared/sdk-AVFII7NK.js.map +1 -0
  15. package/dist/_shared/session-data-AHTU7IS6.js +3 -3
  16. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  17. package/dist/_shared/{startup-0-0-4VG2G44V.js → startup-0-0-57KF6LZH.js} +94 -42
  18. package/dist/_shared/startup-0-0-57KF6LZH.js.map +1 -0
  19. package/dist/_shared/{startup-0-1-XTIL65D4.js → startup-0-1-GIY75K46.js} +75 -13
  20. package/dist/_shared/startup-0-1-GIY75K46.js.map +1 -0
  21. package/dist/_shared/startup-0-2-27OWFHV6.js +72 -7
  22. package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -1
  23. package/dist/_shared/startup-0-3-T4DVFYWX.js +4 -4
  24. package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
  25. package/dist/_shared/{startup-0-5-FD2P735I.js → startup-0-5-YDW47QX6.js} +27 -69
  26. package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -0
  27. package/dist/_shared/startup-10-0-TDQNBDDL.js +6 -6
  28. package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
  29. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
  30. package/dist/_shared/startup-15-0-YUKGAC63.js +31 -7
  31. package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
  32. package/dist/_shared/startup-15-1-4S7FLMNG.js +7 -6
  33. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  34. package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
  35. package/dist/_shared/{startup-8-1-4KANEHRA.js → startup-8-1-X32CYSXB.js} +1219 -714
  36. package/dist/_shared/startup-8-1-X32CYSXB.js.map +1 -0
  37. package/dist/_shared/storage-command-7MGXLJGZ.js +14 -8
  38. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  39. package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
  40. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  41. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  42. package/dist/builtin/intercom/CHANGELOG.md +18 -0
  43. package/dist/builtin/intercom/broker/broker.bundle.mjs +993 -362
  44. package/dist/builtin/intercom/broker/database-wake-up-bus.ts +103 -24
  45. package/dist/builtin/intercom/broker/multinode-router.ts +42 -21
  46. package/dist/builtin/intercom/broker/multinode-state-store.ts +22 -1
  47. package/dist/builtin/intercom/broker/open-broker-state.ts +82 -31
  48. package/dist/builtin/intercom/broker/paths.ts +8 -4
  49. package/dist/builtin/intercom/broker/released-asker-remote-replies.ts +18 -6
  50. package/dist/builtin/intercom/broker/sql-add-column.ts +4 -1
  51. package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +65 -44
  52. package/dist/builtin/intercom/broker/sql-held-send-store.ts +11 -3
  53. package/dist/builtin/intercom/broker/sql-known-session-store.ts +24 -12
  54. package/dist/builtin/intercom/broker/sql-lease-store.ts +375 -65
  55. package/dist/builtin/intercom/broker/sql-outbox-store.ts +270 -101
  56. package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +20 -9
  57. package/dist/builtin/intercom/broker/sql-released-ask-store.ts +14 -6
  58. package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +27 -11
  59. package/dist/builtin/intercom/broker/sql-schema.ts +139 -1
  60. package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +97 -34
  61. package/dist/builtin/intercom/index.bundle.mjs +11 -8
  62. package/dist/builtin/intercom/package.json +1 -1
  63. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  64. package/dist/builtin/mcp/package.json +1 -1
  65. package/dist/builtin/subagents/CHANGELOG.md +12 -0
  66. package/dist/builtin/subagents/package.json +1 -1
  67. package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
  68. package/dist/builtin/subagents/src/extension/index.bundle.mjs +62 -23
  69. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  70. package/dist/builtin/web-access/package.json +1 -1
  71. package/dist/cli/args.js +2 -2
  72. package/dist/cli/auth-cli.code.js +4 -4
  73. package/dist/cli/auth-cli.impl.js +3 -3
  74. package/dist/cli/auth-cli.js +3 -3
  75. package/dist/cli/blueprint-command.code.js +3 -3
  76. package/dist/cli/blueprint-command.impl.js +3 -3
  77. package/dist/cli/blueprint-command.js +3 -3
  78. package/dist/cli/intercom-command.code.js +2 -2
  79. package/dist/cli/intercom-command.impl.js +3 -3
  80. package/dist/cli/intercom-command.js +3 -3
  81. package/dist/cli/list-models.code.js +2 -2
  82. package/dist/cli/list-models.impl.js +3 -3
  83. package/dist/cli/list-models.js +3 -3
  84. package/dist/cli/session-picker.code.js +1 -1
  85. package/dist/cli/session-picker.impl.js +3 -3
  86. package/dist/cli/session-picker.js +3 -3
  87. package/dist/cli/startup-ui.code.js +1 -1
  88. package/dist/cli/startup-ui.impl.js +3 -3
  89. package/dist/cli/startup-ui.js +3 -3
  90. package/dist/cli/storage-command.impl.js +3 -3
  91. package/dist/cli/storage-command.js +3 -3
  92. package/dist/cli/storage-search-session.code.js +3 -3
  93. package/dist/cli/storage-search-session.impl.js +3 -3
  94. package/dist/cli/storage-search-session.js +3 -3
  95. package/dist/cli/team-command.code.js +2 -2
  96. package/dist/cli/team-command.impl.js +3 -3
  97. package/dist/cli/team-command.js +3 -3
  98. package/dist/cli.js +2 -2
  99. package/dist/core/agent-session-methods.d.ts +3 -0
  100. package/dist/core/agent-session-methods.js.map +1 -1
  101. package/dist/core/agent-session.d.ts +1 -0
  102. package/dist/core/compaction/compactor.d.ts +2 -0
  103. package/dist/core/debug.impl.js +3 -3
  104. package/dist/core/debug.js +3 -3
  105. package/dist/core/export-html/card-projection.code.js +1 -1
  106. package/dist/core/export-html/card-projection.impl.js +3 -3
  107. package/dist/core/export-html/card-projection.js +3 -3
  108. package/dist/core/export-html/index.code.js +2 -2
  109. package/dist/core/export-html/index.impl.js +3 -3
  110. package/dist/core/export-html/index.js +3 -3
  111. package/dist/core/export-html/json-spans.impl.js +3 -3
  112. package/dist/core/export-html/json-spans.js +3 -3
  113. package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
  114. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  115. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  116. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  117. package/dist/core/export-html/tool-renderer.js +3 -3
  118. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  119. package/dist/core/extensions/jiti-loader.js +3 -3
  120. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  121. package/dist/core/extensions/jiti-static-loader.js +3 -3
  122. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  123. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  124. package/dist/core/extensions/loader-host-modules.js +3 -3
  125. package/dist/core/extensions/loader-virtual-modules.js +2 -2
  126. package/dist/core/extensions/runner-context.js +3 -3
  127. package/dist/core/extensions/runner-context.js.map +1 -1
  128. package/dist/core/intercom-broker-control-host.code.js +1 -1
  129. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  130. package/dist/core/intercom-broker-control-host.js +3 -3
  131. package/dist/core/intercom-broker-control.code.js +3 -3
  132. package/dist/core/intercom-broker-control.impl.js +3 -3
  133. package/dist/core/intercom-broker-control.js +3 -3
  134. package/dist/core/model-registry.js +1 -1
  135. package/dist/core/model-resolver-defaults.d.ts +3 -2
  136. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  137. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  138. package/dist/core/package-manager-storage-adapters.js +3 -3
  139. package/dist/core/sdk.code.js +3 -4
  140. package/dist/core/sdk.impl.js +3 -3
  141. package/dist/core/sdk.js +3 -3
  142. package/dist/core/session-manager-core.d.ts +5 -2
  143. package/dist/core/session-manager-core.js +17 -13
  144. package/dist/core/session-manager-core.js.map +1 -1
  145. package/dist/core/session-manager-list.impl.js +3 -3
  146. package/dist/core/session-manager-list.js +3 -3
  147. package/dist/core/session-manager.code.js +1 -1
  148. package/dist/core/session-manager.impl.js +3 -3
  149. package/dist/core/session-manager.js +3 -3
  150. package/dist/core/session-storage.code.js +1 -1
  151. package/dist/core/session-storage.impl.js +3 -3
  152. package/dist/core/session-storage.js +3 -3
  153. package/dist/core/storage/added-exports.d.ts +6 -0
  154. package/dist/core/storage/added-exports.js +16 -0
  155. package/dist/core/storage/added-exports.js.map +1 -0
  156. package/dist/core/storage/database.d.ts +16 -0
  157. package/dist/core/storage/database.js.map +1 -1
  158. package/dist/core/storage/fenced-paths.d.ts +47 -0
  159. package/dist/core/storage/fenced-paths.js +53 -0
  160. package/dist/core/storage/fenced-paths.js.map +1 -1
  161. package/dist/core/storage/file-identity.js +31 -2
  162. package/dist/core/storage/file-identity.js.map +1 -1
  163. package/dist/core/storage/index.d.ts +3 -0
  164. package/dist/core/storage/index.js +5 -2
  165. package/dist/core/storage/index.js.map +1 -1
  166. package/dist/core/storage/migrations.d.ts +22 -0
  167. package/dist/core/storage/migrations.js +55 -0
  168. package/dist/core/storage/migrations.js.map +1 -1
  169. package/dist/core/storage/node-sqlite-thread.js +19 -6
  170. package/dist/core/storage/node-sqlite-thread.js.map +1 -1
  171. package/dist/core/storage/node-sqlite.js +53 -4
  172. package/dist/core/storage/node-sqlite.js.map +1 -1
  173. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  174. package/dist/core/storage/offline-snapshot-file.js +3 -3
  175. package/dist/core/storage/prefix.d.ts +3 -2
  176. package/dist/core/storage/prefix.js +18 -2
  177. package/dist/core/storage/prefix.js.map +1 -1
  178. package/dist/core/storage/provider.js +2 -2
  179. package/dist/core/storage/schema-catalog.d.ts +42 -0
  180. package/dist/core/storage/schema-catalog.js +141 -0
  181. package/dist/core/storage/schema-catalog.js.map +1 -0
  182. package/dist/core/storage/selection.js +2 -2
  183. package/dist/core/storage/session/branch-fork-source.code.js +41 -20
  184. package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
  185. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  186. package/dist/core/storage/session/branch-fork-source.js +3 -3
  187. package/dist/core/storage/session/card-view.impl.js +3 -3
  188. package/dist/core/storage/session/card-view.js +3 -3
  189. package/dist/core/storage/session/child-reader.code.js +3 -3
  190. package/dist/core/storage/session/child-reader.impl.js +3 -3
  191. package/dist/core/storage/session/child-reader.js +3 -3
  192. package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
  193. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  194. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  195. package/dist/core/storage/session/expanded-child-details.code.js +3 -3
  196. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  197. package/dist/core/storage/session/expanded-child-details.js +3 -3
  198. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  199. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  200. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  201. package/dist/core/storage/session/fork-row-index.js +3 -3
  202. package/dist/core/storage/session/fork-staging.code.js +176 -36
  203. package/dist/core/storage/session/fork-staging.code.js.map +1 -1
  204. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  205. package/dist/core/storage/session/fork-staging.js +3 -3
  206. package/dist/core/storage/session/fork-window.code.js +3 -3
  207. package/dist/core/storage/session/fork-window.impl.js +3 -3
  208. package/dist/core/storage/session/fork-window.js +3 -3
  209. package/dist/core/storage/session/history-pages.impl.js +3 -3
  210. package/dist/core/storage/session/history-pages.js +3 -3
  211. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  212. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  213. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  214. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  215. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  216. package/dist/core/storage/session/memory-session-store.js +3 -3
  217. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  218. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  219. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  220. package/dist/core/storage/session/released-history-files.code.js +2 -2
  221. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  222. package/dist/core/storage/session/released-history-files.js +3 -3
  223. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  224. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  225. package/dist/core/storage/session/session-resume.impl.js +3 -3
  226. package/dist/core/storage/session/session-resume.js +3 -3
  227. package/dist/core/storage/session/session-search-index.d.ts +5 -0
  228. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  229. package/dist/core/storage/session/snapshot-cut.js +3 -3
  230. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  231. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  232. package/dist/core/storage/session/snapshot-history.js +3 -3
  233. package/dist/core/storage/session/sql-chat-records.d.ts +15 -0
  234. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  235. package/dist/core/storage/session/sql-session-store.d.ts +102 -5
  236. package/dist/core/storage/session/sql-session-store.impl.js +4 -4
  237. package/dist/core/storage/session/sql-session-store.js +4 -4
  238. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  239. package/dist/core/storage/session/tree-outline.js +3 -3
  240. package/dist/core/storage/session/tree-presentation.code.js +1 -1
  241. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  242. package/dist/core/storage/session/tree-presentation.js +3 -3
  243. package/dist/core/storage/session/types.d.ts +14 -0
  244. package/dist/core/storage/sqlite-facade.d.ts +37 -5
  245. package/dist/core/storage/sqlite-facade.js +351 -18
  246. package/dist/core/storage/sqlite-facade.js.map +1 -1
  247. package/dist/core/storage/statement-sequence.d.ts +83 -0
  248. package/dist/core/storage/statement-sequence.js +21 -0
  249. package/dist/core/storage/statement-sequence.js.map +1 -1
  250. package/dist/core/storage/storage-status.code.js +1 -1
  251. package/dist/core/storage/storage-status.impl.js +3 -3
  252. package/dist/core/storage/storage-status.js +3 -3
  253. package/dist/core/storage/team.code.js +1 -1
  254. package/dist/core/storage/team.impl.js +3 -3
  255. package/dist/core/storage/team.js +3 -3
  256. package/dist/core/structured-output/index.code.js +1 -1
  257. package/dist/core/structured-output/index.impl.js +3 -3
  258. package/dist/core/structured-output/index.js +3 -3
  259. package/dist/core/tasks/task-completion-entry.code.js +1 -1
  260. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  261. package/dist/core/tasks/task-completion-entry.js +3 -3
  262. package/dist/core/tasks/task-file-history.code.js +3 -3
  263. package/dist/core/tasks/task-file-history.impl.js +3 -3
  264. package/dist/core/tasks/task-file-history.js +3 -3
  265. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  266. package/dist/core/tasks/task-reference-archive.js +3 -3
  267. package/dist/core/tasks/task-reference-identity.js +3 -3
  268. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  269. package/dist/core/tasks/task-reference-stream.js +3 -3
  270. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  271. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  272. package/dist/core/tasks/task-view-source.code.js +1 -1
  273. package/dist/core/tasks/task-view-source.impl.js +3 -3
  274. package/dist/core/tasks/task-view-source.js +3 -3
  275. package/dist/core/tools/bash.d.ts +8 -4
  276. package/dist/core/tools/history-session.d.ts +5 -0
  277. package/dist/core/tools/history-tasks.d.ts +123 -0
  278. package/dist/core/tools/kill.d.ts +5 -2
  279. package/dist/core/tools/powershell.d.ts +2 -2
  280. package/dist/core/tools/read-url.code.js +3 -3
  281. package/dist/core/tools/read-url.impl.js +3 -3
  282. package/dist/core/tools/read-url.js +3 -3
  283. package/dist/core/tools/read.d.ts +12 -2
  284. package/dist/core/tools/resource-selectors.d.ts +2 -0
  285. package/dist/core/tools/search.d.ts +12 -2
  286. package/dist/core/worktree-snapshot/blob-store.d.ts +14 -2
  287. package/dist/core/worktree-snapshot/blob-store.js +69 -16
  288. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  289. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  290. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  291. package/dist/core/worktree-snapshot/errors.js +3 -3
  292. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  293. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  294. package/dist/extensions/codemode/execute.code.js +2 -2
  295. package/dist/extensions/codemode/execute.impl.js +3 -3
  296. package/dist/extensions/codemode/execute.js +3 -3
  297. package/dist/extensions/codemode/renderer.code.js +2 -2
  298. package/dist/extensions/codemode/renderer.impl.js +3 -3
  299. package/dist/extensions/codemode/renderer.js +3 -3
  300. package/dist/extensions/mcp/cli.code.js +3 -3
  301. package/dist/extensions/mcp/cli.impl.js +3 -3
  302. package/dist/extensions/mcp/cli.js +3 -3
  303. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  304. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  305. package/dist/extensions/mcp/cli.lazy.js +3 -3
  306. package/dist/extensions/mcp/runtime.code.js +1 -1
  307. package/dist/extensions/mcp/runtime.impl.js +3 -3
  308. package/dist/extensions/mcp/runtime.js +3 -3
  309. package/dist/index.js +5 -5
  310. package/dist/main-first-time-setup.code.js +1 -1
  311. package/dist/main-first-time-setup.impl.js +3 -3
  312. package/dist/main-first-time-setup.js +3 -3
  313. package/dist/main.js +1 -1
  314. package/dist/modes/interactive/components/agent-panel.d.ts +1 -0
  315. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  316. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  317. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  318. package/dist/modes/interactive/components/task-inspector.d.ts +2 -0
  319. package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
  320. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  321. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  322. package/dist/modes/interactive/interactive-mode-helpers.d.ts +2 -2
  323. package/dist/modes/print-mode.js +1 -1
  324. package/dist/modes/rpc/agent-panel-bridge.d.ts +5 -0
  325. package/dist/package-manager-cli.code.js +6 -6
  326. package/dist/package-manager-cli.impl.js +3 -3
  327. package/dist/package-manager-cli.js +3 -3
  328. package/dist/rpc-entry.js +1 -1
  329. package/dist/startup-files.json +1 -1
  330. package/dist/startup-stages/0.js +1 -1
  331. package/dist/startup-stages/1.js +1 -1
  332. package/dist/startup-stages/10.js +1 -1
  333. package/dist/startup-stages/12.js +1 -1
  334. package/dist/startup-stages/2.js +8 -1
  335. package/dist/startup-stages/3.js +1 -6
  336. package/dist/startup-stages/5.js +1 -1
  337. package/dist/startup-stages/7.js +1 -5
  338. package/dist/utils/startup-database-spare.code.js +2 -2
  339. package/dist/utils/startup-database-spare.impl.js +3 -3
  340. package/dist/utils/startup-database-spare.js +3 -3
  341. package/dist/utils/tools-manager.code.js +1 -1
  342. package/dist/utils/tools-manager.impl.js +3 -3
  343. package/dist/utils/tools-manager.js +3 -3
  344. package/docs/background-tasks.md +123 -23
  345. package/docs/compaction.md +18 -0
  346. package/docs/docs.json +2 -0
  347. package/docs/environment-variables.md +1 -1
  348. package/docs/getting-started/installation.md +9 -2
  349. package/docs/guides/postgres-pgbouncer.md +339 -0
  350. package/docs/guides/postgres-tuning.md +311 -0
  351. package/docs/guides/resume-on-any-machine.md +2 -2
  352. package/docs/guides.md +2 -0
  353. package/docs/index.md +1 -1
  354. package/docs/libraries/agent-core.md +1 -1
  355. package/docs/libraries/ai.md +2 -2
  356. package/docs/libraries/codemode.md +1 -1
  357. package/docs/libraries/storage-libsql.md +6 -1
  358. package/docs/libraries/storage-postgres.md +11 -6
  359. package/docs/libraries/tui.md +1 -1
  360. package/docs/libraries.md +2 -2
  361. package/docs/programmatic.md +1 -1
  362. package/docs/quickstart.md +1 -1
  363. package/docs/sdk/storage.md +1 -1
  364. package/docs/sdk/web-server.md +1 -3
  365. package/docs/sdk.md +1 -7
  366. package/docs/sessions.md +58 -2
  367. package/docs/settings.md +20 -1
  368. package/docs/skills/authoring.md +1 -1
  369. package/docs/skills.md +79 -6
  370. package/docs/storage.md +262 -12
  371. package/docs/subagents/reference.md +2 -2
  372. package/docs/subagents.md +4 -3
  373. package/docs/tools.md +44 -10
  374. package/docs/windows.md +1 -1
  375. package/package.json +9 -9
  376. package/dist/_shared/sdk-RRLVN7ER.js.map +0 -1
  377. package/dist/_shared/startup-0-0-4VG2G44V.js.map +0 -1
  378. package/dist/_shared/startup-0-1-XTIL65D4.js.map +0 -1
  379. package/dist/_shared/startup-0-5-FD2P735I.js.map +0 -1
  380. package/dist/_shared/startup-8-1-4KANEHRA.js.map +0 -1
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,3 +1,3 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { ClassifierDecisionError, OutputRepairExhaustedError, ProviderRequestFailure, TerminalDecisionError, decisionFailure, generateStructuredOutput, resolveDecisionModel, runDecision } from "../../_shared/sdk-RRLVN7ER.js";
2
+ export { ClassifierDecisionError, OutputRepairExhaustedError, ProviderRequestFailure, TerminalDecisionError, decisionFailure, generateStructuredOutput, resolveDecisionModel, runDecision } from "../../_shared/sdk-AVFII7NK.js";
3
3
  //# sourceMappingURL=index.code.js.map
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using structured output.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using structured output.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using structured output.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using structured output.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,5 +1,5 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
- import { read, skip, stringValue } from "../../_shared/startup-0-5-FD2P735I.js";
2
+ import { read, skip, stringValue } from "../../_shared/startup-0-5-YDW47QX6.js";
3
3
  // dist/core/tasks/task-completion-entry.js
4
4
  function* object(first, fields) {
5
5
  if (first.name !== "startObject") {
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,7 +1,7 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
2
  import { createHash } from "node:crypto";
3
3
  import { open, stat } from "node:fs/promises";
4
- import { EntryTypeReader, JsonTextChecker } from "../../_shared/startup-0-0-4VG2G44V.js";
4
+ import { EntryTypeReader, JsonTextChecker } from "../../_shared/startup-0-0-57KF6LZH.js";
5
5
  import { SESSION_HISTORY_CHUNK_BYTES } from "../../_shared/settings-startup-4QCVCI53.js";
6
6
  // dist/core/tasks/task-file-history.js
7
7
  function digest(value) {
@@ -383,7 +383,7 @@ function __atomicOnDemandFailed(error, feature) {
383
383
  return (async () => {
384
384
  const root = new URL("../../", import.meta.url);
385
385
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
386
- const key = `${root.href}#0.10.10`;
386
+ const key = `${root.href}#0.10.11-alpha.1`;
387
387
  let release = releases.get(key);
388
388
  if (release === undefined) {
389
389
  const current = (async () => {
@@ -411,7 +411,7 @@ function __atomicOnDemandFailed(error, feature) {
411
411
  } catch {
412
412
  // No installation to read, as in a bundle of the package: the release the process runs decides.
413
413
  }
414
- const updatedTo = typeof installed === "string" && installed !== "0.10.10" ? installed : running !== undefined && running.version !== "0.10.10" ? "0.10.10" : undefined;
414
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
415
415
  if (updatedTo === undefined) throw error;
416
416
  const application = typeof running?.name === "string" ? running.name : "atomic";
417
417
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,12 +1,12 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
2
  import { earlierTranscriptCursor, historyChunks } from "../../_shared/startup-8-0-34CBHPZH.js";
3
- import { watchReferenceCut } from "../../_shared/startup-0-0-4VG2G44V.js";
3
+ import { watchReferenceCut } from "../../_shared/startup-0-0-57KF6LZH.js";
4
4
  import { SessionConflictError } from "../storage/session/errors.js";
5
5
  import { SESSION_HISTORY_PAGE_BYTES } from "../../_shared/settings-startup-4QCVCI53.js";
6
6
  import { streamedEarlierMatches, streamedTaskReferences, visibleStreamedItem } from "../../_shared/task-reference-stream-JWMUZSJX.js";
7
7
  import { taskEntryReferences } from "../../_shared/startup-0-4-ZMJV547D.js";
8
8
  import { taskAnswerMissing } from "../../_shared/task-unsaved-answer-VJ2KTB4V.js";
9
- import { taskTranscriptFile, taskTranscriptUnsavedAnswer } from "../../_shared/startup-8-1-4KANEHRA.js";
9
+ import { taskTranscriptFile, taskTranscriptUnsavedAnswer } from "../../_shared/startup-8-1-X32CYSXB.js";
10
10
  // dist/core/tasks/task-reference-pages.js
11
11
  function suffix(id) {
12
12
  const colon = id.lastIndexOf(":");
@@ -473,7 +473,7 @@ function __atomicOnDemandFailed(error, feature) {
473
473
  return (async () => {
474
474
  const root = new URL("../../", import.meta.url);
475
475
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
476
- const key = `${root.href}#0.10.10`;
476
+ const key = `${root.href}#0.10.11-alpha.1`;
477
477
  let release = releases.get(key);
478
478
  if (release === undefined) {
479
479
  const current = (async () => {
@@ -501,7 +501,7 @@ function __atomicOnDemandFailed(error, feature) {
501
501
  } catch {
502
502
  // No installation to read, as in a bundle of the package: the release the process runs decides.
503
503
  }
504
- const updatedTo = typeof installed === "string" && installed !== "0.10.10" ? installed : running !== undefined && running.version !== "0.10.10" ? "0.10.10" : undefined;
504
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
505
505
  if (updatedTo === undefined) throw error;
506
506
  const application = typeof running?.name === "string" ? running.name : "atomic";
507
507
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,3 +1,3 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { bindTaskTranscriptFragments, launchedTaskViewSource, liveTaskRowOrigin, onOwnerTaskAction, ownerTaskViewSource, plainNoticeBlock, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, retainTaskWindowReader, savedBoundaryCursor, taskCursorsAround, taskTranscriptFile, taskTranscriptFragments, taskTranscriptUnsavedAnswer, withTaskTranscriptArchive } from "../../_shared/startup-8-1-4KANEHRA.js";
2
+ export { bindTaskTranscriptFragments, launchedTaskViewSource, liveTaskRowOrigin, onOwnerTaskAction, ownerTaskViewSource, plainNoticeBlock, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, retainTaskWindowReader, savedBoundaryCursor, taskCursorsAround, taskTranscriptFile, taskTranscriptFragments, taskTranscriptUnsavedAnswer, withTaskTranscriptArchive } from "../../_shared/startup-8-1-X32CYSXB.js";
3
3
  //# sourceMappingURL=task-view-source.code.js.map
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.10`;
9
+ const key = `${root.href}#0.10.11-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.10") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.11-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -27,7 +27,7 @@ type ShellWaitInput = {
27
27
  declare const bashSchema: Type.TUnsafe<ShellCommandInput | ShellWaitInput>;
28
28
  export declare const bashToolSystemPromptContribution: Readonly<{
29
29
  readonly snippet: "Execute a shell command.";
30
- readonly guidelines: readonly ["You can inspect ATOMIC_* or PI_* environment variables for current model and session details.", "Use { action: \"wait\", id: taskId } to observe an existing shell task with the owner policy. Avoid repeated short polls; await completion notifications when no dependent work is blocked. Never relaunch a yielded command. Waiting does not extend execution timeout or owner lifetime.", "For ordinary commands, omit wait to use the owner's observation policy (normally 10s). Do not routinely request one-second waits: premature yields add tool calls without making the command faster. Use a short budget only for a concrete responsiveness need, or explicit background observation when you have independent work to do. Explicit budgets, including zero for polling, remain available.", "Choose foreground or background shell observation as needed without asking the user each time. Background yields after admission; foreground waits for its optional budget then the same command continues in background. Omitted wait uses owner-configured automatic background yield (default 10s). Observation never changes the execution timeout, which stops the command. Background requires a supported task owner; unbound foreground waits until completion regardless of budget."];
30
+ readonly guidelines: readonly ["You can inspect ATOMIC_* or PI_* environment variables for current model and session details.", "Use { action: \"wait\", id: taskId } to observe an existing shell task with the owner policy. Avoid repeated short polls; await completion notifications when no dependent work is blocked. Never relaunch a yielded command. Waiting never stops a command or changes when it stops.", "For ordinary commands, omit wait to use the owner's observation policy (normally 10s). Do not routinely request one-second waits: premature yields add tool calls without making the command faster. Use a short budget only for a concrete responsiveness need, or explicit background observation when you have independent work to do. Explicit budgets, including zero for polling, remain available.", "Choose foreground or background shell observation as needed without asking the user each time. Background yields after admission; foreground waits for its optional budget then the same command continues in background. Omitted wait uses owner-configured automatic background yield (default 10s). Observation never stops the command. Background requires a supported task owner; unbound foreground waits until completion regardless of budget.", "A command has no time limit: it runs until it exits, kill({ id: taskId }) stops it, or this session ends. Set timeout (in seconds) only when it must stop by a deadline; timeout: 600 stops it after 10 minutes. Up to 64 commands run at once in a session; at that limit a new command is refused until one finishes or is stopped."];
31
31
  }>;
32
32
  export type BashToolInput = Static<typeof bashSchema>;
33
33
  export interface BashToolDetails {
@@ -39,12 +39,16 @@ export interface BashToolDetails {
39
39
  requestedTimeoutSeconds?: number;
40
40
  wallTimeMs?: number;
41
41
  }
42
+ /**
43
+ * Leaving `timeout` out is what runs a command with no time limit. `0` and negative values are refused: a deadline that
44
+ * has already passed is never useful, and a model that writes `0` usually means "no limit".
45
+ */
42
46
  export declare function validateExplicitTimeoutSeconds(timeout: number): void;
43
47
  /**
44
- * The text a launch that continues in the background ends with: its task, and the execution timeout that stops it
45
- * whether or not anyone waits on it, so a long run is not stopped by a default nobody saw (#4639).
48
+ * The text a launch that continues in the background ends with: its task, and what stops it. A command has no time
49
+ * limit unless its launch set a timeout, which then stops it whether or not anyone waits on it (#4639).
46
50
  */
47
- export declare function stillRunningReceipt(taskId: string, timeoutSeconds: number): string;
51
+ export declare function stillRunningReceipt(taskId: string, timeoutSeconds: number | undefined): string;
48
52
  export type BashOutputChannel = "stdout" | "stderr";
49
53
  export interface BashOperations {
50
54
  exec: (command: string, cwd: string, options: {
@@ -9,6 +9,11 @@ export interface HistoryBudget {
9
9
  readonly timeMs: number;
10
10
  }
11
11
  export declare const DEFAULT_HISTORY_BUDGET: HistoryBudget;
12
+ /**
13
+ * The time budget of the history calls a background history task makes, in place of the router's own:
14
+ * `Number.POSITIVE_INFINITY`, as such a task has no time limit.
15
+ */
16
+ export declare const historyTaskTimeBudget: import("../async-scope.ts").AsyncScope<number>;
12
17
  export declare const HISTORY_TEXT_FORMAT = 2;
13
18
  export declare const MAX_MATCHES_PER_SESSION = 10;
14
19
  export declare const MATCH_SPAN_CHARS: number;
@@ -0,0 +1,123 @@
1
+ import type { AgentToolResult } from "@bastani/atomic-agent-core";
2
+ import { Type } from "@bastani/atomic-ai/utils/typebox/index";
3
+ import { TASK_COMPLETION_MESSAGE_TYPE, type TaskCompletionNotice } from "../tasks/completion.js";
4
+ import type { WaitPolicy } from "../tasks/contracts.js";
5
+ /**
6
+ * History calls one session runs at once with no time limit; a call past it is refused. They are scans in this process,
7
+ * on the session's own store and one shared pattern-matching worker, not processes like shell commands, so they keep a
8
+ * limit of their own: more of them at once only slow each other down.
9
+ */
10
+ export declare const MAX_ACTIVE_HISTORY_TASKS = 4;
11
+ /** Why a history call was refused at {@link MAX_ACTIVE_HISTORY_TASKS}, worded as the shell commands' limit is. */
12
+ export declare const HISTORY_TASK_LIMIT_MESSAGE = "4 history searches and reads are already running in this session, the most it runs at once. Stop one you no longer need with kill, or wait for one to finish, then run this one again.";
13
+ /** The model-facing rule for history:// calls that outlive their observation budget, shared by `read` and `search`. */
14
+ export declare const HISTORY_TASK_GUIDELINE = "A history:// read or search waits for its result like bash does: 10 seconds by default, or as set by wait (wait: { kind: \"background\" } returns at once). If it is still running then, it keeps running in the background with no time limit and returns a task ID, and its result arrives later as a completion notice. To wait for that result, call the same tool with { action: \"wait\", id }; to stop it, call kill({ id }). Never repeat the call to get its result. Up to 4 run at once in a session; at that limit a new one is refused until one finishes or is stopped.";
15
+ export type HistoryTaskKind = "search" | "read";
16
+ type ToolResult = AgentToolResult<unknown>;
17
+ /** The custom message a finished background history task delivers to its session. */
18
+ export interface HistoryTaskCompletionMessage {
19
+ readonly customType: typeof TASK_COMPLETION_MESSAGE_TYPE;
20
+ readonly content: string;
21
+ readonly display: true;
22
+ readonly details: {
23
+ readonly completionId: string;
24
+ readonly taskId: string;
25
+ notification: TaskCompletionNotice;
26
+ };
27
+ }
28
+ export interface HistoryTaskRegistryOptions {
29
+ /** Delivers a finished background task's notice, starting a turn as a task completion does. */
30
+ readonly notify: (message: HistoryTaskCompletionMessage) => Promise<void> | void;
31
+ /** The owner's automatic foreground budget, as for a shell command; `undefined` waits until the call settles. */
32
+ readonly automaticBudgetMs?: () => number | undefined;
33
+ }
34
+ /** What one history-aware call of `read` or `search` asks for. */
35
+ export interface HistoryTaskCall<R extends ToolResult> {
36
+ readonly kind: HistoryTaskKind;
37
+ /** The pattern and URL, or the URL, shown in the notice. */
38
+ readonly subject: string;
39
+ readonly wait: WaitPolicy | undefined;
40
+ /** The tool call's own signal: it stops the call while it is observed in the foreground. */
41
+ readonly signal: AbortSignal | undefined;
42
+ /** Runs the tool's ordinary call with `signal`; the history calls it makes have no time limit. */
43
+ readonly run: (signal: AbortSignal | undefined) => Promise<R>;
44
+ }
45
+ /** The details of a result that reports a background history task rather than the call's own output. */
46
+ export interface HistoryTaskDetails {
47
+ readonly historyTask: {
48
+ readonly taskId: string;
49
+ readonly state: "running";
50
+ };
51
+ }
52
+ /**
53
+ * The background history calls of one session: a `read` or `search` of `history://` that outlives its observation
54
+ * budget keeps scanning here, in this process and on the session's own store, and reports through a task completion
55
+ * notice. These are not owner tasks: they do not appear in `/tasks`, and closing the session or reloading it stops them.
56
+ */
57
+ export declare class HistoryTaskRegistry {
58
+ private readonly options;
59
+ private readonly running;
60
+ private readonly finished;
61
+ /** Calls observed in the foreground that may still become tasks; they count toward the active limit. */
62
+ private observing;
63
+ private closed;
64
+ constructor(options: HistoryTaskRegistryOptions);
65
+ private automaticBudgetMs;
66
+ /** Whether `id` names a history task, as opposed to an owner task. */
67
+ static isTaskId(id: string): boolean;
68
+ /**
69
+ * Runs one history call. It returns inline when it settles within its observation budget, and otherwise goes on
70
+ * as a background task, returning a result that names it. Past {@link MAX_ACTIVE_HISTORY_TASKS} active calls it is
71
+ * refused; once closed, the call runs inline with the default time budget, as it always did.
72
+ */
73
+ run<R extends ToolResult>(call: HistoryTaskCall<R>): Promise<R | AgentToolResult<HistoryTaskDetails>>;
74
+ private settle;
75
+ private lookup;
76
+ /** Observes a history task for `budgetMs` (the owner's automatic budget when omitted) or until it settles. */
77
+ wait(id: string, budgetMs: number | undefined, signal: AbortSignal | undefined): Promise<ToolResult>;
78
+ /** Stops a running history task and waits for its scan to end; a finished one is reported as it ended. */
79
+ cancel(id: string): Promise<string>;
80
+ /** Stops every running task without notices; later calls run inline. */
81
+ close(): Promise<void>;
82
+ }
83
+ /** Whether a `read` path or `search` paths name a `history://` URL. */
84
+ export declare function namesHistoryUrl(paths: string | readonly string[] | undefined): boolean;
85
+ /** Validates a `wait` policy of `read` or `search`, as bash validates its own. */
86
+ export declare function validateHistoryWait(wait: unknown): WaitPolicy | undefined;
87
+ /** The `wait` parameter of `read` and `search`, the same observation policy as bash's. */
88
+ export declare const historyWaitSchema: Type.TUnsafe<WaitPolicy>;
89
+ /** The properties that observe an existing history task instead of starting a call. */
90
+ export declare const historyWaitActionProperties: {
91
+ readonly action: {
92
+ readonly type: "string";
93
+ readonly enum: readonly ["wait"];
94
+ readonly description: "Wait for a background history task started earlier, instead of starting a new call.";
95
+ };
96
+ readonly id: {
97
+ readonly type: "string";
98
+ readonly description: "History task ID returned by an earlier call, such as history-3.";
99
+ };
100
+ readonly budgetMs: {
101
+ readonly type: "number";
102
+ readonly minimum: 0;
103
+ readonly description: "How long to wait, in milliseconds; omit to wait the default time.";
104
+ };
105
+ };
106
+ export type HistoryWaitInput = {
107
+ action: "wait";
108
+ id: string;
109
+ budgetMs?: number;
110
+ };
111
+ /**
112
+ * Checks the shape of a `read` or `search` call: a wait names `action`, `id` and optionally `budgetMs` only; any other
113
+ * call names `required` and neither `id` nor `budgetMs`.
114
+ */
115
+ export declare function prepareHistoryAwareInput<T>(args: unknown, tool: string, required: string): T;
116
+ /** Runs `action: "wait"` of `read` or `search` against the session's history tasks. */
117
+ export declare function waitForHistoryTask(registry: HistoryTaskRegistry | undefined, input: {
118
+ readonly action?: unknown;
119
+ readonly id?: unknown;
120
+ readonly budgetMs?: unknown;
121
+ }, tool: string, signal: AbortSignal | undefined): Promise<AgentToolResult<unknown>>;
122
+ export {};
123
+ //# sourceMappingURL=history-tasks.d.ts.map
@@ -2,16 +2,19 @@ import { Type } from "@bastani/atomic-ai/utils/typebox/index";
2
2
  import type { ToolDefinition } from "../extensions/types.ts";
3
3
  import type { CancelReceipt } from "../tasks/contracts.js";
4
4
  import { type SupervisedCommandOwner } from "./bash-pty-native.js";
5
+ import { HistoryTaskRegistry } from "./history-tasks.ts";
5
6
  declare const killSchema: Type.TObject<{
6
7
  id: Type.TString;
7
8
  }>;
8
9
  export interface KillToolOptions {
9
10
  /** Resolve the live trusted owner at execution time, including after session switches. */
10
11
  taskOwner?: () => SupervisedCommandOwner | undefined;
12
+ /** The session's background history tasks, resolved per call. */
13
+ historyTasks?: () => HistoryTaskRegistry | undefined;
11
14
  }
12
- export declare function createKillToolDefinition(options?: KillToolOptions): ToolDefinition<typeof killSchema, CancelReceipt>;
15
+ export declare function createKillToolDefinition(options?: KillToolOptions): ToolDefinition<typeof killSchema, CancelReceipt | undefined>;
13
16
  export declare function createKillTool(options?: KillToolOptions): import("@bastani/atomic-agent-core").AgentTool<Type.TObject<{
14
17
  id: Type.TString;
15
- }>, CancelReceipt>;
18
+ }>, CancelReceipt | undefined>;
16
19
  export {};
17
20
  //# sourceMappingURL=kill.d.ts.map