@bastani/atomic 0.10.13-alpha.1 → 0.10.14-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.
- package/CHANGELOG.md +22 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +3 -3
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
- package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +1 -1
- package/dist/_shared/sdk-B5LEWGGI.js +3 -3
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/{startup-0-0-DZAYBBTI.js → startup-0-0-Q3MWKUK4.js} +83 -4
- package/dist/_shared/startup-0-0-Q3MWKUK4.js.map +1 -0
- package/dist/_shared/startup-0-1-M6OWAYHH.js +3 -3
- package/dist/_shared/startup-0-2-5QHPCEON.js +3 -3
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
- package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
- package/dist/_shared/startup-0-5-YDW47QX6.js +13 -10
- package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
- package/dist/_shared/startup-12-0-55AAXBJZ.js +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +3 -3
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +61 -48
- package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +3 -3
- package/dist/_shared/storage-status-K7PX2RXA.js +2 -2
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +1 -1
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +1 -1
- package/dist/cli/auth-cli.code.js +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +2 -2
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +1 -1
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +1 -1
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +1 -1
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +3 -3
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +2 -2
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +2 -2
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +1 -1
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +2 -2
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +3 -3
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/bash-pty-native.d.ts +1 -1
- package/dist/core/tools/bash.d.ts +1 -0
- package/dist/core/tools/history-tasks.d.ts +5 -4
- package/dist/core/tools/read-url.code.js +1 -1
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.d.ts +3 -2
- package/dist/core/worktree-snapshot/blob-store.js +11 -6
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- package/dist/core/worktree-snapshot/errors.code.js +1 -1
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +1 -1
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +1 -1
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.js +1 -1
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/package-manager-cli.code.js +3 -3
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/3.js +1 -1
- package/dist/utils/startup-database-spare.code.js +1 -1
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks.md +28 -15
- package/docs/changelog.mdx +8 -0
- package/docs/sessions.md +73 -25
- package/docs/tools.md +46 -4
- package/package.json +8 -8
- package/dist/_shared/startup-0-0-DZAYBBTI.js.map +0 -1
package/dist/startup-files.json
CHANGED
|
@@ -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-
|
|
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-e907625f.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-e081b014.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-e44f531e.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/compat.js"],[11,"dist/_main-e5ef9ac9.js"],[11,"dist/_main-ef865484.js"],[11,"dist/_main-e9f88468.js"],[11,"dist/_main-eca9d252.js"],[11,"dist/_main-ec711808.js"],[11,"dist/_main-ed2839bb.js"],[11,"dist/_main-e401293a.js"],[11,"dist/_main-e32b2cd9.js"],[11,"dist/_main-eec99f3e.js"],[11,"dist/_main-e93b134d.js"],[11,"dist/_main-e2cf9c45.js"],[11,"dist/_main-eb01a123.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-e62eb507.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-e29d80b2.js"],[11,"dist/_lazy-ea2a2750.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"]]}
|
package/dist/startup-stages/3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "../_shared/startup-0-0-
|
|
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-
|
|
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.
|
|
9
|
+
const key = `${root.href}#0.10.14-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.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.14-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.14-alpha.1 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.
|
|
9
|
+
const key = `${root.href}#0.10.14-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.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.14-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.14-alpha.1 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.
|
|
9
|
+
const key = `${root.href}#0.10.14-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.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.14-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.14-alpha.1 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.
|
|
9
|
+
const key = `${root.href}#0.10.14-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.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.14-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.14-alpha.1 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/docs/background-tasks.md
CHANGED
|
@@ -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)
|
|
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
|
-
|
|
230
|
-
kill({ id: "history-3" }) // stop it
|
|
231
|
-
```
|
|
230
|
+
read({ path: "history://sessions/019f6a2e-...:1-200", wait: { kind: "background" } })
|
|
232
231
|
|
|
233
|
-
|
|
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
|
-
|
|
236
|
-
|
|
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
|
-
|
|
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
|
|
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 `
|
|
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
|
-
|
|
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
|
|
package/docs/changelog.mdx
CHANGED
|
@@ -10,6 +10,14 @@ 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">
|
|
14
|
+
|
|
15
|
+
This patch keeps live sessions running through brief PostgreSQL restarts.
|
|
16
|
+
|
|
17
|
+
- **Session writes resume after a restart.** Atomic retries saves, reports a wait after about 10 seconds and once a minute after that, and tells you when saving resumes. Storage calls outside a live session retry for up to a minute ([#6753](https://github.com/bastani-inc/atomic/pull/6753), [#6752](https://github.com/bastani-inc/atomic/issues/6752)).
|
|
18
|
+
|
|
19
|
+
</Update>
|
|
20
|
+
|
|
13
21
|
<Update label="November 27, 2026" description="0.10.12">
|
|
14
22
|
|
|
15
23
|
This patch fixes a silent failure in `atomic storage migrate` for PostgreSQL.
|
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 |
|
|
195
|
+
| URL | What it returns |
|
|
196
196
|
| --- | --- |
|
|
197
|
-
| `history
|
|
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
|
|
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
|
-
|
|
202
|
-
|
|
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.
|
|
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.
|
|
210
|
-
2.
|
|
211
|
-
3. When the
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
262
|
+
// Start in the background right away.
|
|
233
263
|
search({ pattern: "ERR_", paths: "history://sessions", wait: { kind: "background" } })
|
|
234
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
243
|
-
|
|
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
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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.
|
|
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`
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.10.14-alpha.1",
|
|
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.
|
|
122
|
-
"@bastani/atomic-ai": "0.10.
|
|
123
|
-
"@bastani/atomic-agent-core": "0.10.
|
|
124
|
-
"@bastani/atomic-codemode": "0.10.
|
|
125
|
-
"@bastani/atomic-tui": "0.10.
|
|
126
|
-
"@bastani/atomic-schema": "0.10.
|
|
127
|
-
"@bastani/atomic-telemetry": "0.10.
|
|
121
|
+
"@bastani/atomic-natives": "0.10.14-alpha.1",
|
|
122
|
+
"@bastani/atomic-ai": "0.10.14-alpha.1",
|
|
123
|
+
"@bastani/atomic-agent-core": "0.10.14-alpha.1",
|
|
124
|
+
"@bastani/atomic-codemode": "0.10.14-alpha.1",
|
|
125
|
+
"@bastani/atomic-tui": "0.10.14-alpha.1",
|
|
126
|
+
"@bastani/atomic-schema": "0.10.14-alpha.1",
|
|
127
|
+
"@bastani/atomic-telemetry": "0.10.14-alpha.1",
|
|
128
128
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
129
129
|
"chalk": "6.0.0",
|
|
130
130
|
"glob": "14.0.6",
|