@bastani/atomic 0.10.13 → 0.10.14

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 (237) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/_shared/dist-KOELCESV.js +2 -2
  3. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  4. package/dist/_shared/lib-4PES5P4V.js +2 -2
  5. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +3 -3
  6. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
  7. package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
  8. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  9. package/dist/_shared/runtime-O4KCSG4C.js +1 -1
  10. package/dist/_shared/sdk-B5LEWGGI.js +3 -3
  11. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  12. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  13. package/dist/_shared/{startup-0-0-DZAYBBTI.js → startup-0-0-Q3MWKUK4.js} +83 -4
  14. package/dist/_shared/startup-0-0-Q3MWKUK4.js.map +1 -0
  15. package/dist/_shared/startup-0-1-M6OWAYHH.js +3 -3
  16. package/dist/_shared/startup-0-2-5QHPCEON.js +3 -3
  17. package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
  18. package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
  19. package/dist/_shared/startup-0-5-YDW47QX6.js +13 -10
  20. package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -1
  21. package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
  22. package/dist/_shared/startup-12-0-55AAXBJZ.js +1 -1
  23. package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
  24. package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
  25. package/dist/_shared/startup-15-1-4S7FLMNG.js +3 -3
  26. package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
  27. package/dist/_shared/startup-8-1-LZFXSD3Z.js +61 -48
  28. package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -1
  29. package/dist/_shared/storage-command-7MGXLJGZ.js +3 -3
  30. package/dist/_shared/storage-status-K7PX2RXA.js +2 -2
  31. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  32. package/dist/_shared/team-DOQKICG2.js +1 -1
  33. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  34. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  35. package/dist/builtin/intercom/package.json +1 -1
  36. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  37. package/dist/builtin/mcp/package.json +1 -1
  38. package/dist/builtin/subagents/package.json +1 -1
  39. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  40. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  41. package/dist/builtin/web-access/package.json +1 -1
  42. package/dist/cli/args.js +1 -1
  43. package/dist/cli/auth-cli.code.js +1 -1
  44. package/dist/cli/auth-cli.impl.js +3 -3
  45. package/dist/cli/auth-cli.js +3 -3
  46. package/dist/cli/blueprint-command.impl.js +3 -3
  47. package/dist/cli/blueprint-command.js +3 -3
  48. package/dist/cli/intercom-command.code.js +2 -2
  49. package/dist/cli/intercom-command.impl.js +3 -3
  50. package/dist/cli/intercom-command.js +3 -3
  51. package/dist/cli/list-models.code.js +1 -1
  52. package/dist/cli/list-models.impl.js +3 -3
  53. package/dist/cli/list-models.js +3 -3
  54. package/dist/cli/session-picker.code.js +1 -1
  55. package/dist/cli/session-picker.impl.js +3 -3
  56. package/dist/cli/session-picker.js +3 -3
  57. package/dist/cli/startup-ui.code.js +1 -1
  58. package/dist/cli/startup-ui.impl.js +3 -3
  59. package/dist/cli/startup-ui.js +3 -3
  60. package/dist/cli/storage-command.impl.js +3 -3
  61. package/dist/cli/storage-command.js +3 -3
  62. package/dist/cli/storage-search-session.code.js +1 -1
  63. package/dist/cli/storage-search-session.impl.js +3 -3
  64. package/dist/cli/storage-search-session.js +3 -3
  65. package/dist/cli/team-command.code.js +1 -1
  66. package/dist/cli/team-command.impl.js +3 -3
  67. package/dist/cli/team-command.js +3 -3
  68. package/dist/cli.js +2 -2
  69. package/dist/core/debug.impl.js +3 -3
  70. package/dist/core/debug.js +3 -3
  71. package/dist/core/export-html/card-projection.impl.js +3 -3
  72. package/dist/core/export-html/card-projection.js +3 -3
  73. package/dist/core/export-html/index.code.js +2 -2
  74. package/dist/core/export-html/index.impl.js +3 -3
  75. package/dist/core/export-html/index.js +3 -3
  76. package/dist/core/export-html/json-spans.impl.js +3 -3
  77. package/dist/core/export-html/json-spans.js +3 -3
  78. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  79. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  80. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  81. package/dist/core/export-html/tool-renderer.js +3 -3
  82. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  83. package/dist/core/extensions/jiti-loader.js +3 -3
  84. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  85. package/dist/core/extensions/jiti-static-loader.js +3 -3
  86. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  87. package/dist/core/extensions/loader-host-modules.js +3 -3
  88. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  89. package/dist/core/intercom-broker-control-host.js +3 -3
  90. package/dist/core/intercom-broker-control.code.js +3 -3
  91. package/dist/core/intercom-broker-control.impl.js +3 -3
  92. package/dist/core/intercom-broker-control.js +3 -3
  93. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  94. package/dist/core/package-manager-storage-adapters.js +3 -3
  95. package/dist/core/sdk.code.js +1 -1
  96. package/dist/core/sdk.impl.js +3 -3
  97. package/dist/core/sdk.js +3 -3
  98. package/dist/core/session-manager-core.js +3 -3
  99. package/dist/core/session-manager-list.impl.js +3 -3
  100. package/dist/core/session-manager-list.js +3 -3
  101. package/dist/core/session-manager.code.js +1 -1
  102. package/dist/core/session-manager.impl.js +3 -3
  103. package/dist/core/session-manager.js +3 -3
  104. package/dist/core/session-storage.impl.js +3 -3
  105. package/dist/core/session-storage.js +3 -3
  106. package/dist/core/storage/index.js +2 -2
  107. package/dist/core/storage/node-sqlite-thread.js +2 -2
  108. package/dist/core/storage/node-sqlite.js +2 -2
  109. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  110. package/dist/core/storage/offline-snapshot-file.js +3 -3
  111. package/dist/core/storage/provider.js +2 -2
  112. package/dist/core/storage/selection.js +2 -2
  113. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  114. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  115. package/dist/core/storage/session/branch-fork-source.js +3 -3
  116. package/dist/core/storage/session/card-view.impl.js +3 -3
  117. package/dist/core/storage/session/card-view.js +3 -3
  118. package/dist/core/storage/session/child-reader.code.js +2 -2
  119. package/dist/core/storage/session/child-reader.impl.js +3 -3
  120. package/dist/core/storage/session/child-reader.js +3 -3
  121. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  122. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  123. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  124. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  125. package/dist/core/storage/session/expanded-child-details.js +3 -3
  126. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  127. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  128. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  129. package/dist/core/storage/session/fork-row-index.js +3 -3
  130. package/dist/core/storage/session/fork-staging.code.js +1 -1
  131. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  132. package/dist/core/storage/session/fork-staging.js +3 -3
  133. package/dist/core/storage/session/fork-window.code.js +2 -2
  134. package/dist/core/storage/session/fork-window.impl.js +3 -3
  135. package/dist/core/storage/session/fork-window.js +3 -3
  136. package/dist/core/storage/session/history-pages.impl.js +3 -3
  137. package/dist/core/storage/session/history-pages.js +3 -3
  138. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  139. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  140. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  141. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  142. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  143. package/dist/core/storage/session/memory-session-store.js +3 -3
  144. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  145. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  146. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  147. package/dist/core/storage/session/released-history-files.code.js +1 -1
  148. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  149. package/dist/core/storage/session/released-history-files.js +3 -3
  150. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  151. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  152. package/dist/core/storage/session/session-resume.impl.js +3 -3
  153. package/dist/core/storage/session/session-resume.js +3 -3
  154. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  155. package/dist/core/storage/session/snapshot-cut.js +3 -3
  156. package/dist/core/storage/session/snapshot-history.code.js +2 -2
  157. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  158. package/dist/core/storage/session/snapshot-history.js +3 -3
  159. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  160. package/dist/core/storage/session/sql-session-store.js +3 -3
  161. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  162. package/dist/core/storage/session/tree-outline.js +3 -3
  163. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  164. package/dist/core/storage/session/tree-presentation.js +3 -3
  165. package/dist/core/storage/storage-status.impl.js +3 -3
  166. package/dist/core/storage/storage-status.js +3 -3
  167. package/dist/core/storage/team.impl.js +3 -3
  168. package/dist/core/storage/team.js +3 -3
  169. package/dist/core/structured-output/index.impl.js +3 -3
  170. package/dist/core/structured-output/index.js +3 -3
  171. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  172. package/dist/core/tasks/task-completion-entry.js +3 -3
  173. package/dist/core/tasks/task-file-history.code.js +3 -3
  174. package/dist/core/tasks/task-file-history.impl.js +3 -3
  175. package/dist/core/tasks/task-file-history.js +3 -3
  176. package/dist/core/tasks/task-reference-archive.code.js +3 -3
  177. package/dist/core/tasks/task-reference-archive.js +3 -3
  178. package/dist/core/tasks/task-reference-identity.js +3 -3
  179. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  180. package/dist/core/tasks/task-reference-stream.js +3 -3
  181. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  182. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  183. package/dist/core/tasks/task-view-source.impl.js +3 -3
  184. package/dist/core/tasks/task-view-source.js +3 -3
  185. package/dist/core/tools/bash-pty-native.d.ts +1 -1
  186. package/dist/core/tools/bash.d.ts +1 -0
  187. package/dist/core/tools/history-tasks.d.ts +5 -4
  188. package/dist/core/tools/read-url.code.js +1 -1
  189. package/dist/core/tools/read-url.impl.js +3 -3
  190. package/dist/core/tools/read-url.js +3 -3
  191. package/dist/core/worktree-snapshot/blob-store.d.ts +3 -2
  192. package/dist/core/worktree-snapshot/blob-store.js +11 -6
  193. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  194. package/dist/core/worktree-snapshot/errors.code.js +1 -1
  195. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  196. package/dist/core/worktree-snapshot/errors.js +3 -3
  197. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  198. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  199. package/dist/extensions/codemode/execute.code.js +1 -1
  200. package/dist/extensions/codemode/execute.impl.js +3 -3
  201. package/dist/extensions/codemode/execute.js +3 -3
  202. package/dist/extensions/codemode/renderer.code.js +1 -1
  203. package/dist/extensions/codemode/renderer.impl.js +3 -3
  204. package/dist/extensions/codemode/renderer.js +3 -3
  205. package/dist/extensions/mcp/cli.code.js +1 -1
  206. package/dist/extensions/mcp/cli.impl.js +3 -3
  207. package/dist/extensions/mcp/cli.js +3 -3
  208. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  209. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  210. package/dist/extensions/mcp/cli.lazy.js +3 -3
  211. package/dist/extensions/mcp/runtime.impl.js +3 -3
  212. package/dist/extensions/mcp/runtime.js +3 -3
  213. package/dist/index.js +1 -1
  214. package/dist/main-first-time-setup.code.js +1 -1
  215. package/dist/main-first-time-setup.impl.js +3 -3
  216. package/dist/main-first-time-setup.js +3 -3
  217. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  218. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  219. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  220. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  221. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  222. package/dist/package-manager-cli.code.js +3 -3
  223. package/dist/package-manager-cli.impl.js +3 -3
  224. package/dist/package-manager-cli.js +3 -3
  225. package/dist/startup-files.json +1 -1
  226. package/dist/startup-stages/3.js +1 -1
  227. package/dist/utils/startup-database-spare.code.js +1 -1
  228. package/dist/utils/startup-database-spare.impl.js +3 -3
  229. package/dist/utils/startup-database-spare.js +3 -3
  230. package/dist/utils/tools-manager.impl.js +3 -3
  231. package/dist/utils/tools-manager.js +3 -3
  232. package/docs/background-tasks.md +28 -15
  233. package/docs/changelog.mdx +10 -1
  234. package/docs/sessions.md +73 -25
  235. package/docs/tools.md +46 -4
  236. package/package.json +8 -8
  237. package/dist/_shared/startup-0-0-DZAYBBTI.js.map +0 -1
@@ -1 +1 @@
1
- {"version":2,"self":"@bastani/atomic","packages":[["@bastani/atomic",-1],["@bastani/atomic-tui",0],["@bastani/atomic-codemode",0],["proper-lockfile",0],["graceful-fs",3],["retry",3],["signal-exit",3],["get-east-asian-width",1],["marked",1],["marked-cjk-friendly",1],["chalk",0],["@bastani/atomic-ai",0],["@bastani/atomic-schema",11],["@bastani/atomic-agent-core",0],["glob",0]],"files":[[0,"dist/modes/interactive-engine/engine-prewarm.js"],[0,"dist/_shared/rolldown-runtime-BGM3D5V3.js"],[0,"dist/_shared/p1a-prewarm-XIU57JHF.js"],[0,"dist/_shared/p0-cli-BB45ZQY6.js"],[1,"dist/helper-programs/index.js"],[1,"dist/_main-ea49a2e6.js"],[1,"dist/_rolldown-runtime-e937a250.js"],[1,"dist/_lazy-eb232bf4.js"],[0,"dist/utils/canonical-path.js"],[0,"dist/utils/path-exists.js"],[0,"dist/utils/worker-threads.js"],[2,"dist/node-options.js"],[0,"dist/_shared/p1-shared-RG5I5LJ6.js"],[0,"dist/core/storage/node-sqlite-thread.js"],[0,"dist/core/storage/dialect.js"],[0,"dist/modes/interactive/startup-shell-eligibility.js"],[0,"dist/_shared/p1b-elig-TVB5CBLL.js"],[3,"index.js"],[0,"dist/_shared/p1-elig-shell-WWRO3L2R.js"],[3,"lib/lockfile.js"],[4,"graceful-fs.js"],[4,"polyfills.js"],[4,"legacy-streams.js"],[4,"clone.js"],[5,"index.js"],[5,"lib/retry.js"],[5,"lib/retry_operation.js"],[6,"index.js"],[6,"signals.js"],[3,"lib/mtime-precision.js"],[3,"lib/adapter.js"],[0,"dist/modes/interactive/startup-shell.js"],[0,"dist/_shared/p2-shell-TJBYQMCJ.js"],[1,"dist/index.js"],[1,"dist/_main-eb08764b.js"],[1,"dist/_main-e8b70ad5.js"],[7,"index.js"],[7,"lookup.js"],[7,"lookup-data.js"],[7,"utilities.js"],[1,"dist/_main-ee570765.js"],[1,"dist/_main-e3d2c0ee.js"],[1,"dist/_main-e6811217.js"],[1,"dist/_main-eb967ea2.js"],[1,"dist/_main-eadbd863.js"],[8,"lib/marked.esm.js"],[9,"dist/index.js"],[1,"dist/_main-ec392c93.js"],[1,"dist/_main-e6ce3ee9.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[1,"dist/native-module-path.js"],[1,"dist/_main-ee2a1713.js"],[0,"dist/_shared/p2-shell-main-B2WIALFD.js"],[10,"source/index.js"],[10,"source/utilities.js"],[10,"source/vendor/ansi-styles/index.js"],[10,"source/vendor/supports-color/index.js"],[0,"dist/utils/memoize-async.js"],[0,"dist/_shared/p2-common-YLSYXMDQ.js"],[0,"dist/utils/startup-stages.js"],[0,"dist/_shared/p3a-stages-66VAGJL3.js"],[0,"dist/core/http-dispatcher.js"],[0,"dist/_shared/http-undici-FVPTZA4G.js"],[0,"dist/_shared/http-YFAPTIZD.js"],[11,"dist/utils/node-http-proxy.js"],[11,"dist/_main-e33d83d7.js"],[11,"dist/_rolldown-runtime-ee51c298.js"],[11,"dist/utils/tls-certificate.js"],[11,"dist/utils/request-admission.js"],[0,"dist/main.js"],[0,"dist/_shared/startup-8-1-LZFXSD3Z.js"],[0,"dist/_shared/startup-0-0-DZAYBBTI.js"],[0,"dist/_shared/settings-startup-HXQLSUWM.js"],[0,"dist/core/storage/errors.js"],[1,"dist/builtin-command-names.js"],[0,"dist/core/storage/creation-time.js"],[0,"dist/_shared/startup-0-1-M6OWAYHH.js"],[11,"dist/index.js"],[11,"dist/_main-eef95748.js"],[11,"dist/_main-efb2d8b1.js"],[11,"dist/_main-e1febd93.js"],[11,"dist/_main-e19a4fd4.js"],[11,"dist/_main-e86630a4.js"],[12,"dist/index.js"],[12,"dist/_main-ed41ae74.js"],[12,"dist/formats/index.js"],[11,"dist/_main-e3e4a27b.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/compat.js"],[11,"dist/_main-ebdf4055.js"],[11,"dist/_main-e1fbd9f2.js"],[11,"dist/_main-ee834a67.js"],[11,"dist/_main-ea704009.js"],[11,"dist/_main-e1af94fa.js"],[11,"dist/_main-ef68462e.js"],[11,"dist/_main-e4c3ef83.js"],[11,"dist/_main-e42ac641.js"],[11,"dist/_main-e3299e91.js"],[11,"dist/_main-e8bcf7b0.js"],[11,"dist/_main-e9841a5d.js"],[11,"dist/_main-ea057ecc.js"],[11,"dist/providers/github-copilot.js"],[11,"dist/utils/typebox/index.js"],[11,"dist/_lazy-e41faaec.js"],[0,"dist/core/storage/added-exports.js"],[0,"dist/core/storage/migrations.js"],[0,"dist/core/storage/added-exports-0-10-11.js"],[0,"dist/core/storage/schema-catalog.js"],[0,"dist/core/storage/statement-sequence.js"],[0,"dist/core/storage/fenced-paths.js"],[0,"dist/core/storage/sqlite-open-batch.js"],[11,"dist/providers/model-schema.js"],[11,"dist/utils/provider-env.js"],[11,"dist/api/transform-messages.js"],[0,"dist/_shared/startup-0-2-5QHPCEON.js"],[13,"dist/index.js"],[13,"dist/_main-e87dd55a.js"],[13,"dist/_rolldown-runtime-e937a250.js"],[13,"dist/_main-ebff8f0f.js"],[0,"dist/core/storage/file-identity.js"],[11,"dist/api/llama-cpp-classify.lazy.js"],[11,"dist/_lazy-e967f37c.js"],[11,"dist/api/typesafe-system-one.lazy.js"],[11,"dist/providers/compat-schema.js"],[11,"dist/utils/typebox/compile.js"],[11,"dist/utils/models-dev-catalog.js"],[11,"dist/utils/retry-hints.js"],[11,"dist/api/anthropic-assistant-content.js"],[11,"dist/utils/typebox/value.js"],[0,"dist/core/storage/libsql-removed.js"],[0,"dist/core/storage/selection.js"],[0,"dist/_shared/startup-0-3-4ZYBYQNM.js"],[2,"dist/declarations.js"],[2,"dist/identifier.js"],[2,"dist/source.js"],[11,"dist/utils/provider-retry.js"],[11,"dist/utils/retry-sleep.js"],[0,"dist/_shared/startup-8-0-34CBHPZH.js"],[0,"dist/core/storage/session/errors.js"],[0,"dist/core/storage/node-sqlite.js"],[0,"dist/core/storage/node-sqlite-file-gate.js"],[0,"dist/core/storage/write-ahead-log.js"],[0,"dist/_shared/startup-0-5-YDW47QX6.js"],[0,"dist/_shared/startup-0-4-ZMJV547D.js"],[0,"dist/core/worktree-snapshot/blob-store.js"],[0,"dist/core/storage/statement-batches.js"],[0,"dist/core/worktree-snapshot/fork-blob-guard.js"],[0,"dist/core/worktree-snapshot/fork-snapshot-index.js"],[0,"dist/core/storage/session/fork-schema.js"],[0,"dist/core/storage/provider.js"],[14,"dist/esm/index.min.js"],[11,"dist/providers/all.js"],[11,"dist/providers/openrouter.js"],[11,"dist/api/openai-codex-responses.js"],[11,"dist/_lazy-e65f5612.js"],[11,"dist/_lazy-e7bad2f6.js"],[11,"dist/providers/github-copilot-env.js"],[0,"dist/_shared/startup-15-1-4S7FLMNG.js"],[0,"dist/_shared/startup-15-0-YUKGAC63.js"],[0,"dist/_shared/startup-14-0-MLX36RBG.js"],[0,"dist/_shared/startup-10-0-TDQNBDDL.js"],[0,"dist/core/session-manager-core.js"],[11,"dist/api/strict-tool-limits.js"],[0,"dist/_shared/session-manager-list-2BLEEZVG.js"],[0,"dist/_shared/startup-12-0-55AAXBJZ.js"],[0,"dist/core/extensions/runner-context.js"],[0,"dist/core/model-registry.js"],[11,"dist/api/anthropic-serialized-body.js"],[0,"dist/cli/settings-startup.js"],[0,"dist/_shared/settings-startup-8-DNZ2RIHM.js"],[0,"dist/modes/interactive/interactive-mode.js"],[0,"dist/_shared/mode-shared-2QJSCUM6.js"],[0,"dist/_shared/mode-interactive-sdk-7KXUFI2F.js"],[1,"dist/layout-node.js"],[0,"dist/modes/rpc/rpc-mode.js"],[0,"dist/_shared/mode-rpc-sdk-IOPGDYR4.js"],[0,"dist/index.js"],[0,"dist/_shared/sdk-B5LEWGGI.js"],[0,"dist/core/storage/schema.js"],[11,"dist/api/cloudflare-gateway-binding.js"],[0,"dist/core/storage/sqlite-facade.js"],[11,"dist/utils/oauth-page.js"],[0,"dist/core/storage/index.js"],[0,"dist/core/extensions/loader-virtual-modules.js"],[0,"dist/builtin/intercom/index.bundle.mjs"],[0,"dist/builtin/subagents/src/extension/index.bundle.mjs"],[0,"dist/builtin/mcp/index.bundle.mjs"],[0,"dist/builtin/web-access/index.bundle.mjs"]]}
1
+ {"version":2,"self":"@bastani/atomic","packages":[["@bastani/atomic",-1],["@bastani/atomic-tui",0],["@bastani/atomic-codemode",0],["proper-lockfile",0],["graceful-fs",3],["retry",3],["signal-exit",3],["get-east-asian-width",1],["marked",1],["marked-cjk-friendly",1],["chalk",0],["@bastani/atomic-ai",0],["@bastani/atomic-schema",11],["@bastani/atomic-agent-core",0],["glob",0]],"files":[[0,"dist/modes/interactive-engine/engine-prewarm.js"],[0,"dist/_shared/rolldown-runtime-BGM3D5V3.js"],[0,"dist/_shared/p1a-prewarm-XIU57JHF.js"],[0,"dist/_shared/p0-cli-BB45ZQY6.js"],[1,"dist/helper-programs/index.js"],[1,"dist/_main-ea49a2e6.js"],[1,"dist/_rolldown-runtime-e937a250.js"],[1,"dist/_lazy-eb232bf4.js"],[0,"dist/utils/canonical-path.js"],[0,"dist/utils/path-exists.js"],[0,"dist/utils/worker-threads.js"],[2,"dist/node-options.js"],[0,"dist/_shared/p1-shared-RG5I5LJ6.js"],[0,"dist/core/storage/node-sqlite-thread.js"],[0,"dist/core/storage/dialect.js"],[0,"dist/modes/interactive/startup-shell-eligibility.js"],[0,"dist/_shared/p1b-elig-TVB5CBLL.js"],[3,"index.js"],[0,"dist/_shared/p1-elig-shell-WWRO3L2R.js"],[3,"lib/lockfile.js"],[4,"graceful-fs.js"],[4,"polyfills.js"],[4,"legacy-streams.js"],[4,"clone.js"],[5,"index.js"],[5,"lib/retry.js"],[5,"lib/retry_operation.js"],[6,"index.js"],[6,"signals.js"],[3,"lib/mtime-precision.js"],[3,"lib/adapter.js"],[0,"dist/modes/interactive/startup-shell.js"],[0,"dist/_shared/p2-shell-TJBYQMCJ.js"],[1,"dist/index.js"],[1,"dist/_main-eb08764b.js"],[1,"dist/_main-e8b70ad5.js"],[7,"index.js"],[7,"lookup.js"],[7,"lookup-data.js"],[7,"utilities.js"],[1,"dist/_main-ee570765.js"],[1,"dist/_main-e3d2c0ee.js"],[1,"dist/_main-e6811217.js"],[1,"dist/_main-eb967ea2.js"],[1,"dist/_main-eadbd863.js"],[8,"lib/marked.esm.js"],[9,"dist/index.js"],[1,"dist/_main-ec392c93.js"],[1,"dist/_main-e6ce3ee9.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[1,"dist/native-module-path.js"],[1,"dist/_main-ee2a1713.js"],[0,"dist/_shared/p2-shell-main-B2WIALFD.js"],[10,"source/index.js"],[10,"source/utilities.js"],[10,"source/vendor/ansi-styles/index.js"],[10,"source/vendor/supports-color/index.js"],[0,"dist/utils/memoize-async.js"],[0,"dist/_shared/p2-common-YLSYXMDQ.js"],[0,"dist/utils/startup-stages.js"],[0,"dist/_shared/p3a-stages-66VAGJL3.js"],[0,"dist/core/http-dispatcher.js"],[0,"dist/_shared/http-undici-FVPTZA4G.js"],[0,"dist/_shared/http-YFAPTIZD.js"],[11,"dist/utils/node-http-proxy.js"],[11,"dist/_main-ee78e7a3.js"],[11,"dist/_rolldown-runtime-ee51c298.js"],[11,"dist/utils/tls-certificate.js"],[11,"dist/utils/request-admission.js"],[0,"dist/main.js"],[0,"dist/_shared/startup-8-1-LZFXSD3Z.js"],[0,"dist/_shared/startup-0-0-Q3MWKUK4.js"],[0,"dist/_shared/settings-startup-HXQLSUWM.js"],[0,"dist/core/storage/errors.js"],[1,"dist/builtin-command-names.js"],[0,"dist/core/storage/creation-time.js"],[0,"dist/_shared/startup-0-1-M6OWAYHH.js"],[11,"dist/index.js"],[11,"dist/_main-e7279647.js"],[11,"dist/_main-efb2d8b1.js"],[11,"dist/_main-e1febd93.js"],[11,"dist/_main-e19a4fd4.js"],[11,"dist/_main-e86630a4.js"],[12,"dist/index.js"],[12,"dist/_main-ed41ae74.js"],[12,"dist/formats/index.js"],[11,"dist/_main-ebbd9013.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/compat.js"],[11,"dist/_main-e68ad05a.js"],[11,"dist/_main-edde319c.js"],[11,"dist/_main-efc74805.js"],[11,"dist/_main-eb0a94e4.js"],[11,"dist/_main-e54cbb16.js"],[11,"dist/_main-e3e1a04a.js"],[11,"dist/_main-e36f5062.js"],[11,"dist/_main-eab5c318.js"],[11,"dist/_main-e38e07b8.js"],[11,"dist/_main-efc725a1.js"],[11,"dist/_main-e654ec2b.js"],[11,"dist/_main-ef3aa7f0.js"],[11,"dist/providers/github-copilot.js"],[11,"dist/utils/typebox/index.js"],[11,"dist/_lazy-e41faaec.js"],[0,"dist/core/storage/added-exports.js"],[0,"dist/core/storage/migrations.js"],[0,"dist/core/storage/added-exports-0-10-11.js"],[0,"dist/core/storage/schema-catalog.js"],[0,"dist/core/storage/statement-sequence.js"],[0,"dist/core/storage/fenced-paths.js"],[0,"dist/core/storage/sqlite-open-batch.js"],[11,"dist/providers/model-schema.js"],[11,"dist/utils/provider-env.js"],[11,"dist/api/transform-messages.js"],[0,"dist/_shared/startup-0-2-5QHPCEON.js"],[13,"dist/index.js"],[13,"dist/_main-e87dd55a.js"],[13,"dist/_rolldown-runtime-e937a250.js"],[13,"dist/_main-ebff8f0f.js"],[0,"dist/core/storage/file-identity.js"],[11,"dist/api/llama-cpp-classify.lazy.js"],[11,"dist/_lazy-e469dd2c.js"],[11,"dist/api/typesafe-system-one.lazy.js"],[11,"dist/providers/compat-schema.js"],[11,"dist/utils/typebox/compile.js"],[11,"dist/utils/models-dev-catalog.js"],[11,"dist/utils/retry-hints.js"],[11,"dist/api/anthropic-assistant-content.js"],[11,"dist/utils/typebox/value.js"],[0,"dist/core/storage/libsql-removed.js"],[0,"dist/core/storage/selection.js"],[0,"dist/_shared/startup-0-3-4ZYBYQNM.js"],[2,"dist/declarations.js"],[2,"dist/identifier.js"],[2,"dist/source.js"],[11,"dist/utils/provider-retry.js"],[11,"dist/utils/retry-sleep.js"],[0,"dist/_shared/startup-8-0-34CBHPZH.js"],[0,"dist/core/storage/session/errors.js"],[0,"dist/core/storage/node-sqlite.js"],[0,"dist/core/storage/node-sqlite-file-gate.js"],[0,"dist/core/storage/write-ahead-log.js"],[0,"dist/_shared/startup-0-5-YDW47QX6.js"],[0,"dist/_shared/startup-0-4-ZMJV547D.js"],[0,"dist/core/worktree-snapshot/blob-store.js"],[0,"dist/core/storage/statement-batches.js"],[0,"dist/core/worktree-snapshot/fork-blob-guard.js"],[0,"dist/core/worktree-snapshot/fork-snapshot-index.js"],[0,"dist/core/storage/session/fork-schema.js"],[0,"dist/core/storage/provider.js"],[14,"dist/esm/index.min.js"],[11,"dist/providers/all.js"],[11,"dist/providers/openrouter.js"],[11,"dist/api/openai-codex-responses.js"],[11,"dist/_lazy-e6832602.js"],[11,"dist/_lazy-e6a6e3c6.js"],[11,"dist/providers/github-copilot-env.js"],[0,"dist/_shared/startup-15-1-4S7FLMNG.js"],[0,"dist/_shared/startup-15-0-YUKGAC63.js"],[0,"dist/_shared/startup-14-0-MLX36RBG.js"],[0,"dist/_shared/startup-10-0-TDQNBDDL.js"],[0,"dist/core/session-manager-core.js"],[11,"dist/api/strict-tool-limits.js"],[0,"dist/_shared/session-manager-list-2BLEEZVG.js"],[0,"dist/_shared/startup-12-0-55AAXBJZ.js"],[0,"dist/core/extensions/runner-context.js"],[0,"dist/core/model-registry.js"],[11,"dist/api/anthropic-serialized-body.js"],[0,"dist/cli/settings-startup.js"],[0,"dist/_shared/settings-startup-8-DNZ2RIHM.js"],[0,"dist/modes/interactive/interactive-mode.js"],[0,"dist/_shared/mode-shared-2QJSCUM6.js"],[0,"dist/_shared/mode-interactive-sdk-7KXUFI2F.js"],[1,"dist/layout-node.js"],[0,"dist/modes/rpc/rpc-mode.js"],[0,"dist/_shared/mode-rpc-sdk-IOPGDYR4.js"],[0,"dist/index.js"],[0,"dist/_shared/sdk-B5LEWGGI.js"],[0,"dist/core/storage/schema.js"],[11,"dist/api/cloudflare-gateway-binding.js"],[0,"dist/core/storage/sqlite-facade.js"],[11,"dist/utils/oauth-page.js"],[0,"dist/core/storage/index.js"],[0,"dist/core/extensions/loader-virtual-modules.js"],[0,"dist/builtin/intercom/index.bundle.mjs"],[0,"dist/builtin/subagents/src/extension/index.bundle.mjs"],[0,"dist/builtin/mcp/index.bundle.mjs"],[0,"dist/builtin/web-access/index.bundle.mjs"]]}
@@ -1 +1 @@
1
- import "../_shared/startup-0-0-DZAYBBTI.js";
1
+ import "../_shared/startup-0-0-Q3MWKUK4.js";
@@ -5,7 +5,7 @@ import { parseArgs } from "../_shared/startup-0-1-M6OWAYHH.js";
5
5
  import { CONFIG_DIR_NAME, ENV_AGENT_DIR, INTERACTIVE_ENGINE_PREWARM_NO_DATABASE, getEnvNames, isPlainInteractiveSessionInvocation, normalizePath, stripBom } from "../_shared/p0-cli-BB45ZQY6.js";
6
6
  import { parseConfigCommand } from "../_shared/config-command-parser-XRBNVMBV.js";
7
7
  import { previewProcessStorageSelection, previewSessionSettingSelection } from "../_shared/startup-0-2-5QHPCEON.js";
8
- import { parsePackageCommand } from "../_shared/startup-0-0-DZAYBBTI.js";
8
+ import { parsePackageCommand } from "../_shared/startup-0-0-Q3MWKUK4.js";
9
9
  // dist/utils/startup-database-spare.js
10
10
  const DIRECT_SUBCOMMANDS = /* @__PURE__ */ new Set([
11
11
  "auth",
@@ -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.13`;
9
+ const key = `${root.href}#0.10.14`;
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.13") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.13 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.14") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.14 while this session was running; restart it to keep using this feature.", {
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.13`;
9
+ const key = `${root.href}#0.10.14`;
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.13") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.13 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.14") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.14 while this session was running; restart it to keep using this feature.", {
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.13`;
9
+ const key = `${root.href}#0.10.14`;
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.13") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.13 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.14") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.14 while this session was running; restart it to keep using this feature.", {
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.13`;
9
+ const key = `${root.href}#0.10.14`;
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.13") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.13 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.14") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.14 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -222,42 +222,55 @@ Processes started in an external terminal outside Atomic are not tracked in `/ta
222
222
 
223
223
  ## Background history searches
224
224
 
225
- A `read` or `search` of `history://` (your past sessions) that takes longer than about 10 seconds also goes on in the background, like a shell command. It gets a task ID such as `history-3`, and it has **no time limit**: it runs until it finishes, you stop it, or the session closes or reloads. Before this release, such a search stopped after a few seconds and returned a `continue with` link instead.
225
+ A `read` or `search` of `history://` (your past sessions) mirrors `bash` and `powershell` observation semantics: Atomic waits up to 10 seconds by default, and if the scan is still running it continues in the background with a task ID such as `history-3` and **no time limit** — running until it finishes (or hits the 40,000-byte output cap or 250,000-entry scan cap, returning a `continue with` URL), `kill` stops it, or the session closes or reloads.
226
226
 
227
227
  ```ts
228
+ // Start a history search or read immediately in the background.
228
229
  search({ pattern: "connection refused", paths: "history://sessions", wait: { kind: "background" } })
229
- search({ action: "wait", id: "history-3", budgetMs: 5000 }) // check on it
230
- kill({ id: "history-3" }) // stop it
231
- ```
230
+ read({ path: "history://sessions/019f6a2e-...:1-200", wait: { kind: "background" } })
232
231
 
233
- A session runs at most 4 history searches and reads at once, separately from its 64 commands: they run inside Atomic and share one pattern matcher, so more at once would only slow each other down. At the limit, the call fails with:
232
+ // Wait up to 30 seconds before continuing in the background.
233
+ search({ pattern: "connection refused", paths: "history://sessions", wait: { kind: "foreground", budgetMs: 30000 } })
234
234
 
235
- ```text
236
- 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.
235
+ // Observe a running history task (omit budgetMs for the default 10s wait, or pass 0 to poll immediately).
236
+ search({ action: "wait", id: "history-3", budgetMs: 5000 })
237
+ read({ action: "wait", id: "history-4" })
238
+
239
+ // Stop a running history task (sends no completion notice).
240
+ kill({ id: "history-3" })
237
241
  ```
238
242
 
239
- History searches take no `timeout`, are not restarted when a session is resumed, and do not appear in `/tasks`. See [Slow history searches](/sessions#slow-history-searches) for what the model sees and how results arrive.
243
+ - **Mutually exclusive wait mode.** Just like `bash` and `powershell`, `{ action: "wait", id, budgetMs? }` cannot be combined with `path`, `pattern`, `paths`, `wait`, or other call fields. Either `read` or `search` can wait on any `history-N` task from the same session.
244
+ - **Completion notices and late waits.** If a task finishes while no wait is observing it, its result arrives as a completion notice in chat. If a wait is observing it when it finishes, the wait returns the result directly with no duplicate notice. Atomic keeps the 16 most recently finished history tasks so a late `{ action: "wait", id }` call still returns the result.
245
+ - **Concurrency limit (4 per session).** A session runs at most 4 active history searches and reads at once (including calls currently being observed in the foreground), separately from its 64 shell commands: they run inside Atomic on the session store and a shared regex worker, so more at once would only slow each other down. At the limit, a new call fails with:
246
+
247
+ ```text
248
+ 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.
249
+ ```
250
+
251
+ - **Differences from background shells.** History tasks take no `timeout` and emit no heartbeats, do not appear in `/tasks` or the agent panel, stop when the session closes or reloads, and are not restarted when a session is resumed. For non-`history://` paths, `read` and `search` always run inline. See [Slow history searches](/sessions#slow-history-searches) for URL syntax, entry selectors, continuations, and a full comparison table.
240
252
 
241
253
  ## Choose how long to wait
242
254
 
243
- The agent chooses foreground-first or background observation for each shell call. Every subagent runs in the background; wait on one with `subagent({ action: "wait", id })` when the next step depends on its result. Neither choice requires extra confirmation or changes tool permissions.
255
+ The agent chooses foreground-first or background observation for each shell call and each `history://` `read` or `search` call. Every subagent runs in the background; wait on one with `subagent({ action: "wait", id })` when the next step depends on its result. Neither choice requires extra confirmation or changes tool permissions.
244
256
 
245
- For ordinary shell commands, omit `wait` rather than routinely passing a 1-second budget. Short budgets background fast commands unnecessarily and add extra wait calls. Use explicit background observation when you have independent work to do, and a short budget only when you need control back sooner.
257
+ For ordinary commands and history queries, omit `wait` rather than routinely passing a 1-second budget. Short budgets background fast calls unnecessarily and add extra wait calls. Use explicit background observation when you have independent work to do, and a short budget only when you need control back sooner.
246
258
 
247
259
  Keep immediately blocking work inline unless specialist focus, isolated context, or your request makes delegation worthwhile. After launching a subagent, continue independent work without duplicating it. Wait when its result becomes a dependency, and otherwise let completion notices arrive instead of polling.
248
260
 
249
261
  | Call | Observation behavior |
250
262
  | --- | --- |
251
- | `bash` or `powershell` without `wait` | Waits for the session's command observation budget (default 10 seconds), then returns automatically if still running. |
263
+ | `bash`, `powershell`, or `history://` `read`/`search` without `wait` | Waits for the session's command observation budget (default 10 seconds), then yields automatically with a task ID (`task-...` or `history-...`) if still running. |
264
+ | `bash`, `powershell`, or `history://` `read`/`search` with `wait: { kind: "background" }` | Returns a task ID immediately without waiting for completion (`budgetMs` is not allowed with `kind: "background"`). |
265
+ | `bash`, `powershell`, or `history://` `read`/`search` with `wait: { kind: "foreground" }` | Waits for the session's command observation budget (default 10 seconds), then continues in the background if still running. |
266
+ | `bash`, `powershell`, or `history://` `read`/`search` with `wait: { kind: "foreground", budgetMs: 1000 }` | Waits up to 1 second (`budgetMs` must be finite and non-negative), then yields automatically if still running. |
267
+ | `{ action: "wait", id, budgetMs? }` on `bash`, `powershell`, `read`, or `search` | Observes an existing background task for `budgetMs` milliseconds (default 10 seconds when omitted; `0` checks immediately without cancelling the task). |
252
268
  | `subagent` launch | Returns as soon as the subagent starts; every subagent runs in the background. Any `wait` passed on launch is ignored, and a foreground `wait` adds a note pointing to `action: "wait"`. |
253
269
  | `subagent({ action: "wait", id })` | Waits for the session's agent wait budget (default 30 seconds), or for `budgetMs`. `Esc` ends the wait immediately. |
254
- | `bash` or `powershell` with `wait: { kind: "background" }` | Returns as soon as the command starts without waiting for it to finish. |
255
- | `bash` or `powershell` with `wait: { kind: "foreground" }` | Waits for the session's command observation budget (default 10 seconds). |
256
- | `bash` or `powershell` with `wait: { kind: "foreground", budgetMs: 1000 }` | Waits up to 1 second, then yields automatically if the command is still running. |
257
270
 
258
271
  If a task finishes during observation, the call returns its final result directly. Automatic backgrounding means the observation budget elapsed, not a timeout failure, restart, or second run. If a wait for a dependency ends early, wait for actual completion before using the result.
259
272
 
260
- Shell `budgetMs` accepts finite non-negative milliseconds, where `0` returns immediately without cancelling the task. On command launches, put `budgetMs` inside a foreground `wait`; on existing-task `action: "wait"` calls, pass `budgetMs` at the top level. Custom SDK sessions can override default budgets or set `tasks.wait.kind: "until-settled"` so omitted foreground budgets wait until completion, while explicit per-call budgets still take precedence (see [Supervised command SDK](/sdk/reference#supervised-command-sdk)).
273
+ `budgetMs` accepts finite non-negative milliseconds, where `0` returns immediately without cancelling the task. On launches (`bash`, `powershell`, and `history://` `read`/`search`), put `budgetMs` inside a foreground `wait`; on existing-task `action: "wait"` calls, pass `budgetMs` at the top level. Custom SDK sessions can override default budgets or set `tasks.wait.kind: "until-settled"` so omitted foreground budgets wait until completion, while explicit per-call budgets still take precedence (see [Supervised command SDK](/sdk/reference#supervised-command-sdk)).
261
274
 
262
275
  ## The agent panel
263
276
 
@@ -10,7 +10,16 @@ description: "What's new in Atomic"
10
10
  After each release, the publish-release skill regenerates this page in its own docs PR.
11
11
  */}
12
12
 
13
- <Update label="November 27, 2026" description="0.10.13-alpha.1">
13
+ <Update label="November 27, 2026" description="0.10.14-alpha.1">
14
+
15
+ This patch accepts `null` optional arguments across waitable tools and fixes PostgreSQL background snapshot collection.
16
+
17
+ - **Null optional tool arguments work across strict schema providers.** `read`, `search`, `bash`, and `powershell` now accept omitted optional fields sent as `null` (such as `action: null`, `id: null`, `budgetMs: null`, and `wait: null`) while continuing to reject invalid values and mixed call/wait arguments, alongside expanded `history://` and background-task documentation ([#6758](https://github.com/bastani-inc/atomic/pull/6758)).
18
+ - **PostgreSQL background snapshot collection succeeds.** `@bastani/atomic-storage-postgres` now accepts `lockWaitMs: 0` (clamped to PostgreSQL's 1 ms `lock_timeout`), and background snapshot garbage collection retries PostgreSQL lock-conflict errors (`SQLSTATE 55P03`) on pace instead of failing ([#6758](https://github.com/bastani-inc/atomic/pull/6758)).
19
+
20
+ </Update>
21
+
22
+ <Update label="November 27, 2026" description="0.10.13">
14
23
 
15
24
  This patch keeps live sessions running through brief PostgreSQL restarts.
16
25
 
package/docs/sessions.md CHANGED
@@ -190,65 +190,113 @@ When `/tree` switches away from a branch, Atomic can optionally summarize the ab
190
190
 
191
191
  ## Recalling earlier work
192
192
 
193
- The agent can inspect past project sessions from any session or subagent using read-only `history://` URLs with `read` and `search`. These URLs work across SQLite, JSONL, memory, and custom stores:
193
+ The agent can inspect past project sessions from any session or subagent using read-only `history://` URLs with `read` and `search`. These URLs work across SQLite, PostgreSQL, JSONL, memory, and custom stores:
194
194
 
195
- | URL | Returns |
195
+ | URL | What it returns |
196
196
  | --- | --- |
197
- | `history://sessions` | Recent project sessions, newest first (`?limit=N` up to 200, default 25; `?offset=N`; add `?project=all` or `?project=<dir>` only when searching other projects). Uncached JSONL and legacy sessions may show estimated counts. |
197
+ | `history://` | Overview of available history sources (`read`), or searches recent project sessions like `history://sessions` (`search`). |
198
+ | `history://sessions` | Recent project sessions, newest first (`?limit=N` up to 200, default 25; `?offset=N`; add `?project=all` or `?project=<dir>` only when checking other projects). Uncached JSONL and legacy sessions may show estimated counts. |
198
199
  | `history://sessions/<id>` | Full transcript, or an outline with counts and `:N-M` turn links for sessions with more than 2,000 entries, oversized bodies, or cold JSONL files. Lines over 4,000 characters split cleanly. |
199
- | `history://sessions/<id>:N-M` | 1-based entry ranges (`:N`, `:N+C`, `:N-M,P-Q`; `:raw` omits the heading). |
200
+ | `history://sessions/<id>:N-M` | 1-based **entry** ranges (not file lines): `:N` (from entry N), `:N-M`, `:N+C` (start plus count), or comma-separated ranges like `:1-20,90-120`. Append `:raw` to omit the transcript header. |
200
201
 
201
- - **Search behavior.** Searching `history://sessions` or `history://` scans the newest 25 sessions per page, excludes the current session (search the current session through its own ID URL), skips `custom` and `worktree_snapshot` entries, and caps output at 10 matches per session. Extra matches include a `?cursor=<seq>.<match>` continuation. Multi-line patterns match across up to 16,384 characters or 256 entries, with the same window for lookbehind, and matches crossing that boundary note the cutoff. After compaction, the boundary message gives the exact session URL and range to recover earlier details ([Context cleared](/compaction#context-cleared)).
202
- - **Budgets and continuations.** Every `history://` call enforces a 40,000-byte output cap, a 250,000-entry scan cap, and a 3-second nominal time budget. A call in a session that moves to the background has no time limit instead, as described in [Slow history searches](#slow-history-searches). When a call stops early, it returns a `continue with` URL containing `cursor`, `after=<activityMs>.<createdMs>[.<id>]`, and an optional `session=<id>`. Pass that URL unchanged; list continuations expire after 60 seconds.
202
+ Concrete examples:
203
+
204
+ ```ts
205
+ // List the newest 25 sessions for this project (or page further).
206
+ read({ path: "history://sessions" })
207
+ read({ path: "history://sessions?limit=50&offset=25" })
208
+ read({ path: "history://sessions?project=all" })
209
+
210
+ // Read an outline or a specific 1-based entry range of one session.
211
+ read({ path: "history://sessions/019f6a2e-..." })
212
+ read({ path: "history://sessions/019f6a2e-...:40-90" })
213
+ read({ path: "history://sessions/019f6a2e-...:40+25:raw" })
214
+
215
+ // Search across recent project sessions, or inside one specific session.
216
+ search({ pattern: "connection refused", paths: "history://sessions" })
217
+ search({ pattern: "retry.*backoff", paths: "history://sessions/019f6a2e-...", i: true })
218
+ ```
219
+
220
+ - **Search behavior.** Searching `history://sessions` or `history://` scans the newest 25 sessions per page, excludes the current session (search the current session through its own ID URL, `history://sessions/<current-id>`), skips `custom` and `worktree_snapshot` entries, and caps output at 10 matches per session. Extra matches include a `?cursor=<seq>.<match>` continuation. Multi-line patterns match across up to 16,384 characters or 256 entries, with the same window for lookbehind, and matches crossing that boundary note the cutoff. After compaction, the boundary message gives the exact session URL and range to recover earlier details ([Context cleared](/compaction#context-cleared)).
221
+ - **Budgets and continuations.** Every `history://` call enforces a 40,000-byte output cap and a 250,000-entry scan cap. Outside a live session (or after the session closes), calls also enforce a 3-second nominal time budget; inside a live session, a slow call moves to the background with no time limit instead (see [Slow history searches](#slow-history-searches)). Whenever a call hits the byte cap, the entry cap, or (outside a session) the time cap, it stops cleanly and prints a `continue with` URL carrying query parameters such as `cursor=<seq>.<match>`, `after=<activityMs>.<createdMs>[.<id>]`, and an optional `session=<id>`. Pass that URL back to `read` or `search` verbatim to pick up where it left off; multi-session list continuations expire after 60 seconds.
203
222
  - **Indexing and storage.** SQLite and PostgreSQL build a search index on the first search. PostgreSQL installs `pg_trgm` during `atomic storage migrate` or on open when permissions allow. Multi-line patterns scan linearly. The index roughly doubles text-heavy session storage and clears automatically when sessions are deleted or rewritten (`VACUUM` or `VACUUM FULL` reclaims disk space). Never edit active JSONL files in place outside Atomic's storage APIs.
204
223
 
205
224
  ### Slow history searches {#slow-history-searches}
206
225
 
207
- Reading or searching past sessions can take more than a few seconds when the session store is large or remote, such as a PostgreSQL database. In a session, the agent can keep working while such a call runs. Atomic treats a slow history call the way it treats a slow shell command:
226
+ Reading or searching past sessions can take more than a few seconds when the session store is large or remote, such as a PostgreSQL database. Inside a session, Atomic handles slow `history://` calls in `read` and `search` the exact same way it handles slow commands in `bash` and `powershell`:
208
227
 
209
- 1. The agent waits up to 10 seconds for the result, the same default wait as for shell commands. A call that finishes in time returns its result right away.
210
- 2. A call that is still running after that becomes a background task. A background task keeps running while the agent does other work. The agent gets a task ID such as `history-3`.
211
- 3. When the task finishes, its result arrives in the chat as a completion notice, and the agent reads it there.
228
+ 1. **Observe in the foreground first (10 seconds by default).** When `wait` is omitted, Atomic waits up to 10 seconds for the result (or whatever observation budget the session is configured with). If the call finishes in time, it returns its result inline.
229
+ 2. **Continue in the background with a task ID.** If the call is still running when the observation wait ends, Atomic keeps scanning in the background and returns a task ID such as `history-3` so the agent can do other work without waiting.
230
+ 3. **Deliver the result as a completion notice.** When the background scan finishes, its result arrives in the chat as a completion notice.
212
231
 
213
- A background history task has **no time limit**. It runs until it finishes, the agent stops it with `kill`, or the session closes or reloads. It still stops at the 40,000-byte output limit and after 250,000 entries; then its result ends with a `continue with` URL, as before. History calls take no `timeout`: to end a long one sooner, stop it with `kill`.
232
+ A background history task has **no time limit**: it runs until it finishes, the agent stops it with `kill`, or the session closes or reloads. It still obeys the 40,000-byte output limit and 250,000-entry scan limit; if either is reached, the completed result ends with a `continue with` URL as usual.
214
233
 
215
- **What changed in this release.** Before, every history call stopped after 3 seconds and returned a `continue with` URL for the rest. Now a slow call in a session moves to the background and keeps running until it finishes.
216
-
217
- In the chat, the tool call shows `Search(history-3) · continues in background`, and the agent receives this reply:
234
+ In the chat, a backgrounded call shows `Search(history-3) · continues in background` (or `Read(history-3) · continues in background`), and the agent receives:
218
235
 
219
236
  ```text
220
237
  History search is still running (task history-3). It has no time limit: it runs until it finishes, kill stops it, or this session ends. The result arrives as a completion notice; if it is too long, it ends with a "continue with" URL as usual. Wait for it with search({ action: "wait", id: "history-3" }) or stop it with kill({ id: "history-3" }). Never repeat the call to get its result.
221
238
  ```
222
239
 
223
- When the task finishes, a completion line appears:
240
+ When the task finishes, a completion line appears in chat:
224
241
 
225
242
  ```text
226
243
  ● History search "/ERR_/ in history://sessions" completed · 12s
227
244
  ```
228
245
 
229
- The agent controls these tasks with the same options it uses for shell commands in the background. `read` takes the same options as `search`:
246
+ #### Controlling wait time, checking progress, and stopping
247
+
248
+ Both `read` and `search` accept the same `wait` parameter and the same `{ action: "wait", id, budgetMs? }` wait mode as `bash` and `powershell`:
249
+
250
+ | Call shape | What happens |
251
+ | --- | --- |
252
+ | `wait` omitted (or `wait: { kind: "foreground" }`) | Waits up to the default observation budget (10 seconds), then returns a `history-N` task ID if still running. |
253
+ | `wait: { kind: "background" }` | Returns a `history-N` task ID immediately while the read or search runs in the background. `budgetMs` is not allowed with `kind: "background"`. |
254
+ | `wait: { kind: "foreground", budgetMs: 30000 }` | Waits up to `budgetMs` milliseconds (finite, non-negative; `0` checks immediately), then continues in the background if still running. |
255
+ | `{ action: "wait", id: "history-3" }` | Observes an existing history task for up to the default observation budget (10 seconds). Cannot be combined with `path`, `pattern`, `paths`, `wait`, or other call fields. |
256
+ | `{ action: "wait", id: "history-3", budgetMs: 5000 }` | Observes an existing history task for up to `budgetMs` milliseconds (`0` returns immediately with the result if finished, or the still-running status). |
257
+ | `kill({ id: "history-3" })` | Stops the background history scan immediately and sends no completion notice. |
258
+
259
+ Examples for both `search` and `read`:
230
260
 
231
261
  ```ts
232
- // Start the search in the background right away.
262
+ // Start in the background right away.
233
263
  search({ pattern: "ERR_", paths: "history://sessions", wait: { kind: "background" } })
234
- // Wait up to 60 seconds before moving to the background.
264
+ read({ path: "history://sessions/019f6a2e-...:1-500", wait: { kind: "background" } })
265
+
266
+ // Wait up to 60 seconds inline before moving to the background.
235
267
  search({ pattern: "ERR_", paths: "history://sessions", wait: { kind: "foreground", budgetMs: 60000 } })
236
- // Wait up to 30 more seconds for a running task's result.
268
+ read({ path: "history://sessions/019f6a2e-...", wait: { kind: "foreground", budgetMs: 60000 } })
269
+
270
+ // Wait up to 30 more seconds for a running task's result (or poll immediately with budgetMs: 0).
237
271
  search({ action: "wait", id: "history-3", budgetMs: 30000 })
238
- // Stop the task.
272
+ read({ action: "wait", id: "history-4", budgetMs: 0 })
273
+
274
+ // Stop a running history task.
239
275
  kill({ id: "history-3" })
240
276
  ```
241
277
 
242
- - **Waiting for the result.** If the agent is waiting on the task when it finishes, the wait returns the result and no completion notice follows. A task stopped with `kill` sends no notice either.
243
- - **At most 4 at once.** A session runs up to 4 history reads and searches at a time. They run inside Atomic and share one pattern matcher, so more at once would only slow each other down; this limit is separate from the 64 shell commands a session can run. A call made while 4 are running does not start, and fails with:
278
+ #### Rules, limits, and how history tasks compare to background shells
279
+
280
+ - **No duplicate notices.** If an `action: "wait"` call is observing the task when it finishes, that wait returns the result directly and no completion notice is sent afterward. A task stopped with `kill` sends no completion notice either; calling `action: "wait"` on a stopped task returns an error noting it was stopped, and calling `kill` again reports that it had already finished.
281
+ - **Late waits still work.** Atomic keeps the 16 most recently finished history tasks in the session so a late `{ action: "wait", id }` call still returns the result (both `read` and `search` can wait on any `history-N` task from the same session). Older evicted or unknown IDs fail with `Unknown history task <id>`.
282
+ - **At most 4 active at once.** A session runs up to 4 active history reads and searches at once (counting both background tasks and calls currently being observed in the foreground). They run inside Atomic on the session's store and a shared regex worker, so more at once would only slow each other down. This limit is separate from the 64 shell commands a session can run. A fifth concurrent call is refused immediately with:
244
283
 
245
284
  ```text
246
285
  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.
247
286
  ```
248
287
 
249
- Stop one with `kill({ id: "history-3" })`, or wait for one to finish, then make the call again.
250
- - **Session lifetime.** Background history tasks stop when the session closes or reloads, and they do not start again when you resume the session.
251
- - **Where they show.** History tasks do not appear in `/tasks` or the agent panel yet.
288
+ - **How they mirror — and differ from — background shells:**
289
+
290
+ | Capability | `bash` / `powershell` tasks | `read` / `search` `history://` tasks |
291
+ | --- | --- | --- |
292
+ | Default foreground wait | 10 seconds | 10 seconds |
293
+ | `wait` options | `{ kind: "background" }`, `{ kind: "foreground", budgetMs? }` | `{ kind: "background" }`, `{ kind: "foreground", budgetMs? }` |
294
+ | Observe existing task | `{ action: "wait", id, budgetMs? }` | `{ action: "wait", id, budgetMs? }` |
295
+ | Stop running task | `kill({ id })` | `kill({ id })` |
296
+ | Execution time limit | None unless `timeout` (seconds) is set | None (no `timeout` parameter; stops at 40,000-byte or 250,000-entry cap with a `continue with` URL) |
297
+ | Concurrency limit per session | 64 commands | 4 history reads/searches (separate pool) |
298
+ | Heartbeats and `/tasks` panel | Heartbeats every 15m; shown in `/tasks` | No heartbeats; not listed in `/tasks` |
299
+ | On session close or reload | Stopped; not restarted on resume | Stopped without notices; not restarted on resume |
252
300
 
253
301
  ### Searching a stored session in the background
254
302
 
package/docs/tools.md CHANGED
@@ -34,7 +34,30 @@ Control which tools a session exposes from the CLI, settings, SDK, or extensions
34
34
 
35
35
  ## `read` and path selectors
36
36
 
37
- `read` reads files, directories, images, documents, archives, SQLite databases, internal Atomic resources, and public HTTP(S) URLs through one `path` parameter. A `read` of a `history://` URL also accepts `wait`, so a slow read can keep running in the background. See [Slow history searches](/sessions#slow-history-searches).
37
+ `read` reads files, directories, images, documents, archives, SQLite databases, internal Atomic resources, and public HTTP(S) URLs through one `path` parameter. When reading past sessions via `history://`, it also supports background observation using the same `wait` and `action: "wait"` model as `bash`.
38
+
39
+ It supports two mutually exclusive call modes:
40
+
41
+ 1. **Read a target:** pass `path` (required), plus optional `wait` (used for `history://` URLs; ignored for local files, directories, archives, SQLite, and web URLs).
42
+ 2. **Wait on an existing background history read:** pass `action: "wait"`, `id` (the task ID returned earlier, such as `"history-3"`), and optional `budgetMs` (milliseconds; omit to use the default 10-second wait, or pass `0` to check immediately). Do not combine `action: "wait"` with `path` or `wait`.
43
+
44
+ ```json
45
+ { "path": "src/example.ts:10-40" }
46
+ ```
47
+
48
+ ```json
49
+ { "path": "history://sessions/019f6a2e:1-50", "wait": { "kind": "foreground", "budgetMs": 30000 } }
50
+ ```
51
+
52
+ ```json
53
+ { "path": "history://sessions/019f6a2e", "wait": { "kind": "background" } }
54
+ ```
55
+
56
+ ```json
57
+ { "action": "wait", "id": "history-3", "budgetMs": 15000 }
58
+ ```
59
+
60
+ - **Observation options (`wait`, `action: "wait"`).** On a `history://` read, omitting `wait` (or passing `wait: { kind: "foreground" }` without `budgetMs`) waits up to 10 seconds by default before continuing in the background and returning a `history-N` task ID. Pass `wait: { kind: "background" }` to return immediately with a task ID, or `wait: { kind: "foreground", budgetMs }` to wait up to `budgetMs` milliseconds (`budgetMs` inside `wait` is valid only with `kind: "foreground"`). Omitted optional fields sent as `null` (for example by strict-schema tool callers) are treated as omitted. See [Slow history searches](/sessions#slow-history-searches) and [Background history searches](/background-tasks#background-history-searches).
38
61
 
39
62
  Reading a directory returns a depth-2 tree sorted by most-recent modification time (with sizes and ages). It prunes `.git` and `node_modules` and caps each child directory at 12 entries while preserving the oldest shown entry with an elision marker.
40
63
 
@@ -131,7 +154,7 @@ Returns the replacement count plus `details` (`diff`, unified `patch`, and `firs
131
154
  { "action": "wait", "id": "task-1234", "budgetMs": 15000 }
132
155
  ```
133
156
 
134
- - **Observation and background yield (`wait`, `action: "wait"`).** `wait` controls how long the tool observes output and never changes the execution `timeout`. When `wait` is omitted in interactive and standard sessions, Atomic yields automatically after 10 seconds by default while the command keeps running in the background. Pass `wait: { kind: "background" }` to return immediately with the task ID after the command starts, or `wait: { kind: "foreground", budgetMs }` to wait up to `budgetMs` milliseconds before yielding. Call `{ action: "wait", id, budgetMs? }` to observe an owned background task later (omitting `budgetMs` uses the default yield budget). Background mode and task waits require sessions with background task support; standalone SDK sessions without background task support wait until the command finishes.
157
+ - **Observation and background yield (`wait`, `action: "wait"`).** `wait` controls how long the tool observes output and never changes the execution `timeout`. When `wait` is omitted (or `wait: { kind: "foreground" }` omits `budgetMs`) in interactive and standard sessions, Atomic yields automatically after 10 seconds by default while the command keeps running in the background. Pass `wait: { kind: "background" }` (without `budgetMs`) to return immediately with the task ID after the command starts, or `wait: { kind: "foreground", budgetMs }` to wait up to `budgetMs` milliseconds before yielding. Call `{ action: "wait", id, budgetMs? }` to observe an owned background task later (omitting `budgetMs` uses the default yield budget; `0` checks immediately). Omitted optional fields sent as `null` (for example by strict-schema tool callers) are treated as omitted, while non-null conflicting fields or invalid values are rejected. Background mode and task waits require sessions with background task support; standalone SDK sessions without background task support wait until the command finishes.
135
158
  - **`cwd` and leading `cd`.** Sets the working directory for the command. If `cwd` is omitted, a leading `cd <path> && ...` or `cd <path>; ...` sets the working directory when `<path>` is a single literal word (optionally single- or double-quoted, with no variables, globs, or leading `-`). Unquoted `~` and `~/` expand to your home directory. Atomic skips stripping when `CDPATH` applies to a non-dot relative path or the local directory cannot be entered.
136
159
  - **`env` and session variables.** Adds or overrides environment variables for the command. Every key in `env` must match `^[A-Za-z_][A-Za-z0-9_]*$`; invalid names fail before spawning. Atomic automatically sets `ATOMIC_SESSION_ID`, `ATOMIC_PROVIDER`, `ATOMIC_MODEL`, and `ATOMIC_REASONING_LEVEL` (plus legacy `PI_*` aliases) and strips any caller-supplied values for those keys as well as `ATOMIC_SESSION_FILE` and `PI_SESSION_FILE`.
137
160
  - **How long a command runs, and `timeout`.** A command has no time limit: it runs until it finishes, someone stops it (`kill` or `/tasks`), or the session closes. How long the call waits (`wait`) never stops it. To give it a deadline, pass `timeout` in seconds: `{ "command": "npm run e2e", "timeout": 7200 }` stops it after 2 hours. The values work like this:
@@ -211,9 +234,28 @@ Returns `scopePath`, `fileCount`, `files`, truncation and missing-path metadata,
211
234
 
212
235
  ### Searching contents
213
236
 
214
- `search` takes a required `pattern` regex plus optional `paths` (string or string array; omitted or empty searches `.`), `i` (boolean), `case` (boolean), `gitignore` (default `true`), `skip` (non-negative integer or `null`, floored; ignored in single-file mode), and `wait` (for `history://` targets). Hidden files are searched by default.
237
+ `search` searches file and resource contents with a regular expression and can observe background `history://` searches using the same `wait` and `action: "wait"` model as `bash` and `read`. It supports two mutually exclusive call modes:
238
+
239
+ 1. **Search contents:** pass `pattern` (required), plus optional `paths` (string or string array; omitted or empty searches `.`), `i` (boolean), `case` (boolean), `gitignore` (default `true`), `skip` (non-negative integer or `null`, floored; ignored in single-file mode), and `wait` (used when `paths` includes a `history://` URL). Hidden files are searched by default.
240
+ 2. **Wait on an existing background history search:** pass `action: "wait"`, `id` (such as `"history-3"`), and optional `budgetMs` (omit to use the default 10-second wait, or pass `0` to check immediately). Do not combine `action: "wait"` with search fields (`pattern`, `paths`, `i`, `case`, `gitignore`, `skip`, or `wait`).
241
+
242
+ ```json
243
+ { "pattern": "connection refused", "paths": "history://sessions" }
244
+ ```
245
+
246
+ ```json
247
+ { "pattern": "connection refused", "paths": "history://sessions", "wait": { "kind": "background" } }
248
+ ```
249
+
250
+ ```json
251
+ { "pattern": "connection refused", "paths": "history://sessions", "wait": { "kind": "foreground", "budgetMs": 30000 } }
252
+ ```
253
+
254
+ ```json
255
+ { "action": "wait", "id": "history-3", "budgetMs": 15000 }
256
+ ```
215
257
 
216
- - **Slow history searches.** For a `history://` target, `wait` works as it does in `bash`. A search still running after the default wait of 10 seconds keeps running in the background, with no time limit, and returns a task ID such as `history-3`. Wait for its result with `search({ action: "wait", id: "history-3" })`, or stop it with `kill({ id: "history-3" })`. `read` of a `history://` URL works the same way. A session runs at most 4 at once; a call past that fails with `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.` See [Slow history searches](/sessions#slow-history-searches).
258
+ - **Slow history searches and reads.** For a `history://` target, `wait` works identically to `bash`: omitting `wait` (or passing `wait: { kind: "foreground" }`) waits 10 seconds by default, `wait: { kind: "background" }` returns a task ID immediately, and `wait: { kind: "foreground", budgetMs }` waits up to `budgetMs` milliseconds (`budgetMs` inside `wait` is valid only with `kind: "foreground"`). A call still running when the observation wait ends keeps running in the background with **no time limit** and returns a task ID such as `history-3`; its result arrives later as a completion notice. Wait for it with `search({ action: "wait", id: "history-3", budgetMs? })` (or `read({ action: "wait", id: "history-3", budgetMs? })` — both tools share the session's history tasks, and Atomic retains the 16 most recently finished tasks for late waits) or stop it with `kill({ id: "history-3" })`. Omitted optional fields sent as `null` are treated as omitted. A session runs at most 4 active history searches and reads at once (separate from the 64 shell commands); a call past that limit fails with `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.` See [Slow history searches](/sessions#slow-history-searches) and [Background history searches](/background-tasks#background-history-searches).
217
259
  - **Targets.** Searches files, directories, globs, archive members, SQLite selectors (`.sqlite`, `.sqlite3`, `.db`, `.db3`), and supported internal URLs (`local://`, `skill://`, `artifact://`, `conflict://`, `history://`, `tool-output://`). Rejects `http://` and `https://`.
218
260
  - **Patterns and case sensitivity.** Whitespace-only patterns are rejected; all other patterns pass verbatim, including inline `(?i)`, `(?m)`, `(?s)`, and `(?x)` flags at the start of patterns on resource-backed selectors. Setting `i: true` or `case: false` enables case-insensitive matching (if both `i: true` and `case: true` are passed, case-insensitive matching wins).
219
261
  - **Line selectors.** Line-range selectors (`file.ts:10-50`) work on single files only (directories and globs fail with an error) and restrict matches before adding context lines.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.10.13",
3
+ "version": "0.10.14",
4
4
  "description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "atomicConfig": {
@@ -118,13 +118,13 @@
118
118
  "prepack": "node -e \"require('node:fs').existsSync('scripts/split-dist.mjs') && import('./scripts/split-dist.mjs').then(() => import('./scripts/write-startup-files.mjs')).then(() => import('./scripts/write-startup-stages.mjs'))\""
119
119
  },
120
120
  "dependencies": {
121
- "@bastani/atomic-natives": "0.10.13",
122
- "@bastani/atomic-ai": "0.10.13",
123
- "@bastani/atomic-agent-core": "0.10.13",
124
- "@bastani/atomic-codemode": "0.10.13",
125
- "@bastani/atomic-tui": "0.10.13",
126
- "@bastani/atomic-schema": "0.10.13",
127
- "@bastani/atomic-telemetry": "0.10.13",
121
+ "@bastani/atomic-natives": "0.10.14",
122
+ "@bastani/atomic-ai": "0.10.14",
123
+ "@bastani/atomic-agent-core": "0.10.14",
124
+ "@bastani/atomic-codemode": "0.10.14",
125
+ "@bastani/atomic-tui": "0.10.14",
126
+ "@bastani/atomic-schema": "0.10.14",
127
+ "@bastani/atomic-telemetry": "0.10.14",
128
128
  "@silvia-odwyer/photon-node": "0.3.4",
129
129
  "chalk": "6.0.0",
130
130
  "glob": "14.0.6",