@bastani/atomic 0.10.10-alpha.2 → 0.10.11-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +142 -0
- package/README.md +1 -1
- 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 +8 -10
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +6 -6
- package/dist/_shared/mode-shared-2QJSCUM6.js +52 -15
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +3 -3
- package/dist/_shared/{sdk-RRLVN7ER.js → sdk-AVFII7NK.js} +757 -233
- package/dist/_shared/sdk-AVFII7NK.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +3 -3
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/{startup-0-0-4VG2G44V.js → startup-0-0-57KF6LZH.js} +94 -42
- package/dist/_shared/startup-0-0-57KF6LZH.js.map +1 -0
- package/dist/_shared/{startup-0-1-XTIL65D4.js → startup-0-1-GIY75K46.js} +75 -13
- package/dist/_shared/startup-0-1-GIY75K46.js.map +1 -0
- package/dist/_shared/startup-0-2-27OWFHV6.js +72 -7
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -1
- package/dist/_shared/startup-0-3-T4DVFYWX.js +4 -4
- package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
- package/dist/_shared/{startup-0-5-FD2P735I.js → startup-0-5-YDW47QX6.js} +27 -69
- package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -0
- package/dist/_shared/startup-10-0-TDQNBDDL.js +6 -6
- package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +31 -7
- package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +7 -6
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
- package/dist/_shared/{startup-8-1-4KANEHRA.js → startup-8-1-X32CYSXB.js} +1219 -714
- package/dist/_shared/startup-8-1-X32CYSXB.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +14 -8
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +24 -0
- package/dist/builtin/intercom/broker/broker.bundle.mjs +993 -362
- package/dist/builtin/intercom/broker/database-wake-up-bus.ts +103 -24
- package/dist/builtin/intercom/broker/multinode-router.ts +42 -21
- package/dist/builtin/intercom/broker/multinode-state-store.ts +22 -1
- package/dist/builtin/intercom/broker/open-broker-state.ts +82 -31
- package/dist/builtin/intercom/broker/paths.ts +8 -4
- package/dist/builtin/intercom/broker/released-asker-remote-replies.ts +18 -6
- package/dist/builtin/intercom/broker/sql-add-column.ts +4 -1
- package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +65 -44
- package/dist/builtin/intercom/broker/sql-held-send-store.ts +11 -3
- package/dist/builtin/intercom/broker/sql-known-session-store.ts +24 -12
- package/dist/builtin/intercom/broker/sql-lease-store.ts +375 -65
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +270 -101
- package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +20 -9
- package/dist/builtin/intercom/broker/sql-released-ask-store.ts +14 -6
- package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +27 -11
- package/dist/builtin/intercom/broker/sql-schema.ts +139 -1
- package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +97 -34
- package/dist/builtin/intercom/index.bundle.mjs +11 -8
- 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/CHANGELOG.md +20 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +62 -23
- package/dist/builtin/web-access/CHANGELOG.md +9 -0
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +4 -4
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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/agent-session-methods.d.ts +3 -0
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +1 -0
- package/dist/core/compaction/compactor.d.ts +2 -0
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.code.js +1 -1
- 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.code.js +1 -1
- 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.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +2 -2
- package/dist/core/extensions/runner-context.js +3 -3
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- 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/model-registry.js +1 -1
- package/dist/core/model-resolver-defaults.d.ts +3 -2
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- 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 +3 -4
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.d.ts +5 -2
- package/dist/core/session-manager-core.js +17 -13
- package/dist/core/session-manager-core.js.map +1 -1
- 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.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/added-exports.d.ts +6 -0
- package/dist/core/storage/added-exports.js +16 -0
- package/dist/core/storage/added-exports.js.map +1 -0
- package/dist/core/storage/database.d.ts +16 -0
- package/dist/core/storage/database.js.map +1 -1
- package/dist/core/storage/fenced-paths.d.ts +47 -0
- package/dist/core/storage/fenced-paths.js +53 -0
- package/dist/core/storage/fenced-paths.js.map +1 -1
- package/dist/core/storage/file-identity.js +31 -2
- package/dist/core/storage/file-identity.js.map +1 -1
- package/dist/core/storage/index.d.ts +3 -0
- package/dist/core/storage/index.js +5 -2
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/migrations.d.ts +22 -0
- package/dist/core/storage/migrations.js +55 -0
- package/dist/core/storage/migrations.js.map +1 -1
- package/dist/core/storage/node-sqlite-thread.js +19 -6
- package/dist/core/storage/node-sqlite-thread.js.map +1 -1
- package/dist/core/storage/node-sqlite.js +53 -4
- package/dist/core/storage/node-sqlite.js.map +1 -1
- 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/prefix.d.ts +3 -2
- package/dist/core/storage/prefix.js +18 -2
- package/dist/core/storage/prefix.js.map +1 -1
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/schema-catalog.d.ts +42 -0
- package/dist/core/storage/schema-catalog.js +141 -0
- package/dist/core/storage/schema-catalog.js.map +1 -0
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +41 -20
- package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
- 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 +3 -3
- 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.code.js +1 -1
- 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 +3 -3
- 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 +176 -36
- package/dist/core/storage/session/fork-staging.code.js.map +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 +3 -3
- 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 +2 -2
- 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/session-search-index.d.ts +5 -0
- 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 +3 -3
- 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-chat-records.d.ts +15 -0
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +102 -5
- package/dist/core/storage/session/sql-session-store.impl.js +4 -4
- package/dist/core/storage/session/sql-session-store.js +4 -4
- 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.code.js +1 -1
- 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/session/types.d.ts +14 -0
- package/dist/core/storage/sqlite-facade.d.ts +37 -5
- package/dist/core/storage/sqlite-facade.js +351 -18
- package/dist/core/storage/sqlite-facade.js.map +1 -1
- package/dist/core/storage/statement-sequence.d.ts +83 -0
- package/dist/core/storage/statement-sequence.js +21 -0
- package/dist/core/storage/statement-sequence.js.map +1 -1
- package/dist/core/storage/storage-status.code.js +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.code.js +1 -1
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- 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.code.js +1 -1
- 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 +4 -4
- 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.code.js +1 -1
- 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.d.ts +8 -4
- package/dist/core/tools/history-session.d.ts +5 -0
- package/dist/core/tools/history-tasks.d.ts +123 -0
- package/dist/core/tools/kill.d.ts +5 -2
- package/dist/core/tools/powershell.d.ts +2 -2
- package/dist/core/tools/read-url.code.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/tools/read.d.ts +12 -2
- package/dist/core/tools/resource-selectors.d.ts +2 -0
- package/dist/core/tools/search.d.ts +12 -2
- package/dist/core/worktree-snapshot/blob-store.d.ts +14 -2
- package/dist/core/worktree-snapshot/blob-store.js +69 -16
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- package/dist/core/worktree-snapshot/errors.code.js +2 -2
- 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 +2 -2
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +3 -3
- 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.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.js +5 -5
- 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/main.js +1 -1
- package/dist/modes/interactive/components/agent-panel.d.ts +1 -0
- 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/task-inspector.d.ts +2 -0
- package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
- 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/modes/interactive/interactive-mode-helpers.d.ts +2 -2
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/agent-panel-bridge.d.ts +5 -0
- package/dist/package-manager-cli.code.js +6 -6
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/0.js +1 -1
- package/dist/startup-stages/1.js +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/2.js +8 -1
- package/dist/startup-stages/3.js +1 -6
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/7.js +1 -5
- package/dist/utils/startup-database-spare.code.js +2 -2
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks.md +123 -23
- package/docs/compaction.md +18 -0
- package/docs/docs.json +2 -0
- package/docs/environment-variables.md +1 -1
- package/docs/getting-started/installation.md +9 -2
- package/docs/guides/postgres-pgbouncer.md +339 -0
- package/docs/guides/postgres-tuning.md +311 -0
- package/docs/guides/resume-on-any-machine.md +2 -2
- package/docs/guides.md +2 -0
- package/docs/index.md +1 -1
- package/docs/libraries/agent-core.md +1 -1
- package/docs/libraries/ai.md +2 -2
- package/docs/libraries/codemode.md +1 -1
- package/docs/libraries/storage-libsql.md +6 -1
- package/docs/libraries/storage-postgres.md +11 -6
- package/docs/libraries/tui.md +1 -1
- package/docs/libraries.md +2 -2
- package/docs/programmatic.md +1 -1
- package/docs/quickstart.md +1 -1
- package/docs/sdk/storage.md +1 -1
- package/docs/sdk/web-server.md +1 -3
- package/docs/sdk.md +1 -7
- package/docs/sessions.md +58 -2
- package/docs/settings.md +20 -1
- package/docs/skills/authoring.md +1 -1
- package/docs/skills.md +79 -6
- package/docs/storage.md +262 -12
- package/docs/subagents/reference.md +2 -2
- package/docs/subagents.md +4 -3
- package/docs/tools.md +44 -10
- package/docs/windows.md +1 -1
- package/package.json +9 -9
- package/dist/_shared/sdk-RRLVN7ER.js.map +0 -1
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +0 -1
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +0 -1
- package/dist/_shared/startup-0-5-FD2P735I.js.map +0 -1
- package/dist/_shared/startup-8-1-4KANEHRA.js.map +0 -1
|
@@ -75,7 +75,7 @@ Both fresh and forked (`context: "fork"`) subagents store their sessions in the
|
|
|
75
75
|
|
|
76
76
|
When a background subagent resumes on another machine, Atomic maps its recorded directory through the parent session's restored checkouts, then prepares the subagent's own checkouts from its snapshots and builds their blueprints. Its file tools resolve old absolute paths into the restored worktrees.
|
|
77
77
|
|
|
78
|
-
Only subagents
|
|
78
|
+
Only subagents whose parent uses JSONL session files, and file-backed subagents from earlier releases, stay tied to the machine that launched them and report as unrestorable elsewhere.
|
|
79
79
|
|
|
80
80
|
## Set the environment up with a blueprint
|
|
81
81
|
|
|
@@ -95,7 +95,7 @@ initialize:
|
|
|
95
95
|
- name: Install Node.js
|
|
96
96
|
uses: github.com/actions/setup-node@v4
|
|
97
97
|
with:
|
|
98
|
-
node-version: "
|
|
98
|
+
node-version: "24"
|
|
99
99
|
- name: Install pnpm
|
|
100
100
|
run: npm install -g pnpm
|
|
101
101
|
maintenance:
|
package/docs/guides.md
CHANGED
|
@@ -25,6 +25,8 @@ New to Atomic? Follow the [Quickstart](/quickstart) to install, authenticate, ru
|
|
|
25
25
|
- **[Background tasks](/background-tasks).** Launch, inspect, steer, and stop background subagents and shells.
|
|
26
26
|
- **[Intercom](/guides/intercom).** Coordinate live sessions and subagents on one machine or across a shared database (see the full [Intercom guide](/intercom)).
|
|
27
27
|
- **[Team and CI setup](/guides/team-setup).** Share Intercom with a team through one database while sessions stay private, and configure CI runners from environment variables.
|
|
28
|
+
- **[PostgreSQL with PgBouncer](/guides/postgres-pgbouncer).** Run many agents on one PostgreSQL server by putting PgBouncer in front of it.
|
|
29
|
+
- **[Tune PostgreSQL](/guides/postgres-tuning).** Tune the PostgreSQL server that many agents share: distance, connections, memory, monitoring, and busy tables.
|
|
28
30
|
- **[Structured decisions](/sdk/structured-decisions).** Make typed classifier or chat decisions with `decide()` and `generateStructuredOutput()`.
|
|
29
31
|
- **[Computer use](/computer-use).** Automate desktop apps, browsers, and terminals across macOS, Linux, and Windows.
|
|
30
32
|
- **[Verification](/verification).** Reproduce bugs and collect verifiable evidence across terminal, browser, and desktop environments.
|
package/docs/index.md
CHANGED
|
@@ -8,7 +8,7 @@ Atomic is a terminal coding agent with built-in file, shell, search, codemode, s
|
|
|
8
8
|
|
|
9
9
|
## Quick start
|
|
10
10
|
|
|
11
|
-
Install with a package manager (requires Node.js
|
|
11
|
+
Install with a package manager (requires [Node.js 24.20.0 or newer](/getting-started/installation#nodejs-version), or Bun 1.4.5+ for Bun installs):
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
npm install -g @bastani/atomic
|
|
@@ -4,7 +4,7 @@ sidebarTitle: "@bastani/atomic-agent-core"
|
|
|
4
4
|
description: "Stateful agent loop with tool execution, event streaming, steering, and follow-up messages."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Stateful agent with tool execution and event streaming, built on [`@bastani/atomic-ai`](/libraries/ai) (requires Node.js
|
|
7
|
+
Stateful agent with tool execution and event streaming, built on [`@bastani/atomic-ai`](/libraries/ai) (requires Node.js 24.20+). Atomic's sessions run on this agent loop, and you can use it directly to build your own agent. Atomic's [TypeScript SDK](/sdk) wraps it with sessions, tools, extensions, and compaction, so prefer the SDK when you want Atomic's built-in behavior. See [Standalone libraries](/libraries) for all standalone packages.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
package/docs/libraries/ai.md
CHANGED
|
@@ -4,7 +4,7 @@ sidebarTitle: "@bastani/atomic-ai"
|
|
|
4
4
|
description: "Unified LLM API for providers, models, auth, streaming, tool calling, images, classification, and thinking."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
`@bastani/atomic-ai` is the LLM library Atomic runs on (requires Node.js
|
|
7
|
+
`@bastani/atomic-ai` is the LLM library Atomic runs on (requires Node.js 24.20+). It ships in every Atomic release at Atomic's version, and you can install it independently (see [Installation](#installation)).
|
|
8
8
|
|
|
9
9
|
Inside an Atomic extension, import it without installing it because the host provides it. See [Standalone libraries](/libraries) for how the packages fit together and for legacy package names that still resolve inside Atomic.
|
|
10
10
|
|
|
@@ -56,7 +56,7 @@ Inside an Atomic extension, import it without installing it because the host pro
|
|
|
56
56
|
npm install @bastani/atomic-ai
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
Requires Node.js
|
|
59
|
+
Requires Node.js 24.20 or newer.
|
|
60
60
|
|
|
61
61
|
Key root and subpath exports:
|
|
62
62
|
|
|
@@ -12,7 +12,7 @@ Runs model-written JavaScript in a QuickJS VM (compiled to WebAssembly) where th
|
|
|
12
12
|
npm install @bastani/atomic-codemode
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Requires Node.js
|
|
15
|
+
Requires Node.js 24.20+ (or Bun / Cloudflare Workers via the portable subpaths). Available package entry points:
|
|
16
16
|
|
|
17
17
|
- `@bastani/atomic-codemode`: `CodemodeSandbox`, `loadQuickJSWasm`, `parseCodemodeSource`, `renderDeclarations`, and worker runtime for Node and Bun.
|
|
18
18
|
- `@bastani/atomic-codemode/portable`: `RemoteCodemodeSandbox` and `InlineCodemodeSandbox` with zero Node.js imports.
|
|
@@ -6,7 +6,7 @@ description: "libSQL and Turso storage adapter for Atomic sessions and Intercom
|
|
|
6
6
|
|
|
7
7
|
`@bastani/atomic-storage-libsql` is Atomic's standalone libSQL and [Turso](https://turso.tech) storage adapter. It stores sessions and Intercom multi-node routing in a shared Turso database, self-hosted `sqld` server, or local libSQL file with one URL and one auth token. Unlike the six core libraries in [Standalone libraries](/libraries), this package is not bundled inside `@bastani/atomic`; install it only when you use libSQL or Turso.
|
|
8
8
|
|
|
9
|
-
- **Plain ESM with types:** Ships plain JavaScript ESM and TypeScript declarations (`libsql.d.ts`), requiring Node.js
|
|
9
|
+
- **Plain ESM with types:** Ships plain JavaScript ESM and TypeScript declarations (`libsql.d.ts`), requiring Node.js 24.20+ with no TypeScript loader.
|
|
10
10
|
- **Batched writes:** Sends statement batches to remote libSQL servers in a single request and redacts auth tokens and custom headers from error diagnostics.
|
|
11
11
|
|
|
12
12
|
For operator setup, see [Turso and libSQL](/storage#turso-and-libsql). For sharing Intercom across a team while keeping personal sessions local, see [Team and CI setup](/guides/team-setup). For all five SDK storage backends and `createAgentSessionRuntime()`, see [SDK storage backends](/sdk/storage).
|
|
@@ -58,6 +58,8 @@ Pass the returned `SqliteDatabase` to `createAgentSession({ sessionStore: { kind
|
|
|
58
58
|
| `authToken` | `string` | For remote databases | Database auth token. In CLI settings, pass through `secrets` (`{ "file": ... }` or `{ "env": ... }`) so it never lands in `settings.json`. |
|
|
59
59
|
| `namespace` | `string` | No | Self-hosted `sqld` namespace (`sqld --enable-namespaces`), sent as the `x-namespace` header. Requires a `libsql:`, `https:`, or `http:` URL. |
|
|
60
60
|
| `headers` | `Readonly<Record<string, string>>` | No | Extra request headers sent on every HTTP/libSQL request and redacted from diagnostics. Requires a `libsql:`, `https:`, or `http:` URL. |
|
|
61
|
+
| `keepAliveMs` | `number` | No | How long, in milliseconds, an unused HTTP connection stays open for reuse on `libsql:`, `https:` and `http:` URLs. A positive integer. Unset, Atomic closes an unused connection after about 4 seconds. Leave it unset for Turso, which closes unused connections after 5 seconds. Ignored for `ws:` and `wss:` URLs. |
|
|
62
|
+
| `concurrency` | `number` | No | On a libSQL server, the most reads one connection runs at the same time. A positive integer, default `20` (`DEFAULT_CONCURRENCY`). Writes still run one at a time. No effect on `file:` URLs. |
|
|
61
63
|
|
|
62
64
|
## Exported API
|
|
63
65
|
|
|
@@ -69,6 +71,9 @@ Pass the returned `SqliteDatabase` to `createAgentSession({ sessionStore: { kind
|
|
|
69
71
|
|
|
70
72
|
- **Local `file:` databases:** On first open, the adapter enables write-ahead logging (WAL, creating `-wal` and `-shm` sidecar files) with a 5-second busy timeout matching Atomic's built-in SQLite stores. Single statements, single-statement `exec`, batches, and transaction starts retry when another connection commits while waiting; multi-statement `exec` calls are not retried. Open a local file through only one SQLite library at a time so concurrent readers do not see stale WAL state.
|
|
71
73
|
- **Remote `sqld` servers:** When `sqld` hits a WAL checkpoint, it returns `SQLITE_BUSY` immediately without running the write. The adapter retries single statements, single-statement `exec`, batches, and transaction starts with jittered exponential backoff for up to 5 seconds within a 10-second wall-clock ceiling (one 5-second lock timeout plus one 5-second checkpoint window). For self-hosted `sqld`, start with `--checkpoint-interval-s 60` (or `SQLD_CHECKPOINT_INTERVAL_S=60`).
|
|
74
|
+
- **Server transactions:** A transaction sends its first reads with its `BEGIN` and its last writes with its `COMMIT`, so saving entries to a session takes 2 requests. The commit runs only if every write before it succeeded; otherwise nothing commits.
|
|
75
|
+
- **Readers:** `openReader()` returns a handle with its own client, for local files and servers. Its reads do not wait behind the main handle's calls. Closing the database closes its readers.
|
|
76
|
+
- **Throughput:** On a server, a connection runs up to `concurrency` reads at the same time. Writes run one at a time, in call order, and a libSQL database has one writer at a time. See [Tuning for many concurrent agents](/storage#tuning-libsql-and-turso).
|
|
72
77
|
|
|
73
78
|
## CLI configuration
|
|
74
79
|
|
|
@@ -7,7 +7,7 @@ description: "PostgreSQL storage adapter for Atomic sessions and Intercom multi-
|
|
|
7
7
|
`@bastani/atomic-storage-postgres` is Atomic's standalone [PostgreSQL](https://www.postgresql.org) storage adapter. It stores sessions and Intercom multi-node routing in one shared PostgreSQL database so multiple machines or SDK hosts can share state. Unlike the six core libraries in [Standalone libraries](/libraries), this package is not bundled inside `@bastani/atomic`; install it only when you use PostgreSQL.
|
|
8
8
|
|
|
9
9
|
- **PostgreSQL version requirement:** Atomic sessions require **PostgreSQL 16 or later** (for session JSON query functions). The adapter accepts **PostgreSQL 14 or later** on connect for non-session tables and rejects servers older than PostgreSQL 14.
|
|
10
|
-
- **Plain ESM with types:** Ships plain JavaScript ESM and TypeScript declarations (`postgres.d.ts`), requiring Node.js
|
|
10
|
+
- **Plain ESM with types:** Ships plain JavaScript ESM and TypeScript declarations (`postgres.d.ts`), requiring Node.js 24.20+ with no TypeScript loader.
|
|
11
11
|
|
|
12
12
|
For operator setup, role creation SQL, migrations, and troubleshooting, see [PostgreSQL setup](/storage#postgresql). For all five SDK storage backends and `createAgentSessionRuntime()`, see [SDK storage backends](/sdk/storage).
|
|
13
13
|
|
|
@@ -62,10 +62,15 @@ Pass the returned `SqliteDatabase` to `createAgentSession({ sessionStore: { kind
|
|
|
62
62
|
| Option | Type | Default | Description |
|
|
63
63
|
| --- | --- | --- | --- |
|
|
64
64
|
| `url` | `string` *(required)* | — | A `postgres://` or `postgresql://` URL with a username and no embedded password. Any password in the URL or a `password=` query parameter is rejected with `credential-in-url`. |
|
|
65
|
-
| `password` | `string \| (() => Promise<string>)` | — | Password string or async callback invoked for each new connection. Omit when using cloud `auth`; combining cloud `auth` with `password` throws `conflicting-token`. |
|
|
65
|
+
| `password` | `string \| (() => Promise<string>)` | — | Password string or async callback invoked for each new connection, and once when the database opens to tell its credential apart from other databases' in the shared pool. Omit when using cloud `auth`; combining cloud `auth` with `password` throws `conflicting-token`. |
|
|
66
66
|
| `auth` | `"password" \| "azure-entra" \| "aws-iam" \| "gcp-iam"` | `"password"` | Credential strategy. Cloud modes request short-lived tokens per new connection via the provider's SDK. |
|
|
67
|
-
| `maxConnections` | `number` | `8` (`DEFAULT_MAX_CONNECTIONS`) |
|
|
68
|
-
| `
|
|
67
|
+
| `maxConnections` | `number` | `8` (`DEFAULT_MAX_CONNECTIONS`) | Most connections the process's main pool opens. A positive integer. Every database the process opens with the same `url`, role, password, `listenUrl`, `auth`, `schema`, `proxy`, `socket` and pool options shares one main pool, one reader pool and one listening connection, and the last one to close closes them. For high throughput, set it as high as the server's `max_connections` allows. See [Tuning for many concurrent agents](/storage#tuning-for-many-concurrent-agents). |
|
|
68
|
+
| `readerMaxConnections` | `number` | `2` (`DEFAULT_READER_MAX_CONNECTIONS`) | Most connections in the reader pool that every handle `openReader()` returns shares, capped at `maxConnections`. A non-negative integer. `0` leaves `openReader` undefined, so reads share the main pool. |
|
|
69
|
+
| `statementTimeoutMs` | `number` | `30000` (`DEFAULT_STATEMENT_TIMEOUT_MS`) | How long one statement may run, in milliseconds, before the server cancels it. A positive integer. |
|
|
70
|
+
| `connectTimeoutMs` | `number` | `10000` (`DEFAULT_CONNECT_TIMEOUT_MS`) | How long opening a connection, or waiting for a free pooled one, may take, in milliseconds. A positive integer. |
|
|
71
|
+
| `idleTimeoutMs` | `number` | `300000` (`DEFAULT_IDLE_TIMEOUT_MS`) | How long a pool's last connection stays open after the pool's last call, in milliseconds. Connections opened for a burst close after `SURGE_IDLE_TIMEOUT_MS` (`10000`) idle, or after `idleTimeoutMs` when it is shorter. A positive integer. |
|
|
72
|
+
| `keepAliveIdleMs` | `number` | `60000` (`DEFAULT_KEEPALIVE_IDLE_MS`) | How long a pooled connection sits unused, in milliseconds, before TCP keepalive probes start. A positive integer. |
|
|
73
|
+
| `maxPreparedStatements` | `number` | `256` (`DEFAULT_MAX_PREPARED_STATEMENTS`); `0` when `listenUrl` is set or the URL's port is `6432` or `6543` | How many statements each pooled connection keeps prepared, so the server parses and plans each one once per connection. `0` turns them off, for example behind a pooler without prepared-statement support. |
|
|
69
74
|
| `listenUrl` | `string` | `url` | Direct session-mode endpoint for `LISTEN`/`NOTIFY` wake-ups when `url` goes through a transaction pooler. |
|
|
70
75
|
| `schema` | `string` | `"atomic"` (`DEFAULT_SCHEMA`) | Lowercase schema holding Atomic's tables. Existing databases with tables in `public` and no `atomic` schema keep using `public` until `atomic storage migrate` moves them. Every transaction sets `SET LOCAL search_path`. |
|
|
71
76
|
| `sdkSearchPaths` | `readonly string[]` | — | Extra npm prefix directories to search when loading a cloud IAM SDK not found beside the adapter. CLI adapter loading passes `<agentDir>/npm`. |
|
|
@@ -75,7 +80,7 @@ Pass the returned `SqliteDatabase` to `createAgentSession({ sessionStore: { kind
|
|
|
75
80
|
## Exported API
|
|
76
81
|
|
|
77
82
|
- `openPostgresDatabase(options: PostgresDatabaseOptions): Promise<SqliteDatabase>` — opens a pooled PostgreSQL-backed `SqliteDatabase`.
|
|
78
|
-
- `DEFAULT_MAX_CONNECTIONS` (`8`), `DEFAULT_STATEMENT_TIMEOUT_MS` (`30000`), `DEFAULT_SCHEMA` (`"atomic"`).
|
|
83
|
+
- `DEFAULT_MAX_CONNECTIONS` (`8`), `DEFAULT_READER_MAX_CONNECTIONS` (`2`), `DEFAULT_STATEMENT_TIMEOUT_MS` (`30000`), `DEFAULT_CONNECT_TIMEOUT_MS` (`10000`), `DEFAULT_IDLE_TIMEOUT_MS` (`300000`), `SURGE_IDLE_TIMEOUT_MS` (`10000`), `DEFAULT_KEEPALIVE_IDLE_MS` (`60000`), `DEFAULT_MAX_PREPARED_STATEMENTS` (`256`), `DEFAULT_SCHEMA` (`"atomic"`).
|
|
79
84
|
- `numberPlaceholders(sql: string): string` — rewrites positional `?` parameters outside string literals, quoted identifiers, and comments to `$1`, `$2`, ....
|
|
80
85
|
- `physicalIdentifiers(sql: string): string` — replaces unquoted identifiers longer than 63 bytes with their deterministic PostgreSQL physical identifier.
|
|
81
86
|
- Types: `PostgresDatabaseOptions`, `PostgresSocketFactory`, `ProxyTarget`.
|
|
@@ -97,7 +102,7 @@ For Azure Database for PostgreSQL Flexible Server (PostgreSQL 16+), Azure Horizo
|
|
|
97
102
|
|
|
98
103
|
- **TLS defaults:** When `url` omits `sslmode`, Atomic applies `sslmode=verify-full` for remote hosts (checking `PGHOST` if omitted from the URL). Add `sslrootcert=/path/to/ca.pem` for private CAs. Without `sslrootcert`, `require` verifies both certificate and hostname like `verify-full` (stricter than libpq). TLS parameter names are case-sensitive; unknown `sslmode` values are rejected.
|
|
99
104
|
- **HTTP `CONNECT` proxies:** Without `options.proxy`, remote TCP hosts check `HTTPS_PROXY` (`https_proxy`), then `ALL_PROXY` (when HTTP/HTTPS), then `HTTP_PROXY`, respecting `NO_PROXY`. Loopback hosts and Unix socket directories connect directly. Keep `sslmode=verify-full` (or `verify-ca` with a private CA) so TLS runs end to end through the tunnel.
|
|
100
|
-
- **Connection poolers and wake-ups:** Works with transaction-mode poolers (PgBouncer, Azure port `6432`, Supabase Supavisor, Neon `-pooler`) with no session-level state or
|
|
105
|
+
- **Connection poolers and wake-ups:** Works with transaction-mode poolers (PgBouncer, Azure port `6432`, Supabase Supavisor, Neon `-pooler`) with no session-level state. Prepared statements are off by default behind a pooler, when `listenUrl` is set or the port is `6432` or `6543`. On PgBouncer 1.21 and later with `max_prepared_statements` above `0`, the default from 1.24, set `maxPreparedStatements` to turn them on. A process that listens for wake-ups, as an Intercom broker does, opens one extra `LISTEN` connection outside its pools. When `url` uses a transaction pooler, set `listenUrl` to a direct endpoint, or Atomic falls back to polling. See the [PgBouncer guide](/guides/postgres-pgbouncer).
|
|
101
106
|
- **Retries and errors:** Connection drops, lock conflicts (`40001`, `40P01`, `55P03`), and canceled statements (`57014`) throw `StorageTransientError` (read-only and unwritten calls retry automatically). Invalid credentials (`28P01`), missing databases (`3D000`), and certificate errors fail immediately. Missing privileges (`42501`) fail immediately with `StorageConfigError` (`reason: "missing-privilege"`) naming the exact `GRANT` or migration command.
|
|
102
107
|
|
|
103
108
|
## CLI configuration
|
package/docs/libraries/tui.md
CHANGED
|
@@ -4,7 +4,7 @@ sidebarTitle: "@bastani/atomic-tui"
|
|
|
4
4
|
description: "Terminal UI framework with differential rendering, alternate-screen viewports, components, overlays, key handling, and images."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Minimal terminal UI framework with differential rendering and synchronized output for flicker-free interactive CLI applications (requires Node.js
|
|
7
|
+
Minimal terminal UI framework with differential rendering and synchronized output for flicker-free interactive CLI applications (requires Node.js 24.20+).
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
package/docs/libraries.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Standalone libraries"
|
|
3
3
|
sidebarTitle: "All libraries"
|
|
4
|
-
description: "Explore Atomic's six core @bastani/atomic-* TypeScript libraries and two optional storage adapter packages for extensions, SDK apps, and standalone Node.js
|
|
4
|
+
description: "Explore Atomic's six core @bastani/atomic-* TypeScript libraries and two optional storage adapter packages for extensions, SDK apps, and standalone Node.js 24.20+ projects."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Atomic publishes six core TypeScript libraries and two optional storage adapter packages (all requiring Node.js
|
|
7
|
+
Atomic publishes six core TypeScript libraries and two optional storage adapter packages (all requiring Node.js 24.20 or newer). Each package publishes on npm at Atomic's version with every release and works independently outside Atomic.
|
|
8
8
|
|
|
9
9
|
## Core libraries
|
|
10
10
|
|
package/docs/programmatic.md
CHANGED
|
@@ -12,7 +12,7 @@ Atomic provides three programmatic integration modes plus a component API for in
|
|
|
12
12
|
| --- | --- | --- |
|
|
13
13
|
| Run one or more prompts and parse structured output as JSON lines | [JSON event stream](/json) | `atomic --mode json` |
|
|
14
14
|
| Drive a long-lived process with commands, interrupts, and extension UI prompts | [RPC mode](/rpc) | `atomic --mode rpc` |
|
|
15
|
-
| Embed Atomic directly inside a Node.js application (Node.js
|
|
15
|
+
| Embed Atomic directly inside a Node.js application (Node.js 24.20+) | [TypeScript SDK](/sdk) | `@bastani/atomic` |
|
|
16
16
|
|
|
17
17
|
- **JSON event stream** executes one or more positional prompts in sequence, writes newline-delimited session events to stdout, and exits.
|
|
18
18
|
- **RPC mode** keeps an Atomic subprocess running over stdin/stdout JSON Lines so you can send follow-up prompts, steer or abort turns, switch models, and answer extension dialogs and OAuth prompts.
|
package/docs/quickstart.md
CHANGED
|
@@ -17,7 +17,7 @@ Follow these four pages in order for full setup instructions, or use the quick c
|
|
|
17
17
|
|
|
18
18
|
## Prerequisites
|
|
19
19
|
|
|
20
|
-
- **Package install:** Node.js
|
|
20
|
+
- **Package install:** Node.js 24 LTS, version 24.20.0 or newer, with npm or pnpm, or Bun 1.4.5+ for Bun installs. Check with `node --version`; see [Node.js version](/getting-started/installation#nodejs-version) to upgrade.
|
|
21
21
|
- **Release archive install:** macOS and Linux need `tar` and either `curl` or `wget`; Windows uses built-in PowerShell commands. This path does not need Node.js or a package manager.
|
|
22
22
|
- **Model provider:** A supported subscription login (`/login`) or API key.
|
|
23
23
|
|
package/docs/sdk/storage.md
CHANGED
|
@@ -249,7 +249,7 @@ try {
|
|
|
249
249
|
}
|
|
250
250
|
```
|
|
251
251
|
|
|
252
|
-
See [`@bastani/atomic-storage-postgres`](/libraries/storage-postgres) for `maxConnections`, `statementTimeoutMs`, `listenUrl`, `schema`, `proxy`, `socket`, `sdkSearchPaths`, TLS, and cloud IAM role setup.
|
|
252
|
+
See [`@bastani/atomic-storage-postgres`](/libraries/storage-postgres) for `maxConnections`, `statementTimeoutMs`, `idleTimeoutMs`, `listenUrl`, `schema`, `proxy`, `socket`, `sdkSearchPaths`, TLS, and cloud IAM role setup.
|
|
253
253
|
|
|
254
254
|
**Option B — Adapter selection `{ kind: "adapter", module: POSTGRES_ADAPTER_PACKAGE, ... }`:**
|
|
255
255
|
|
package/docs/sdk/web-server.md
CHANGED
|
@@ -14,9 +14,7 @@ Read [TypeScript SDK](/sdk) first for `createAgentSession()`, `AgentSession`, `A
|
|
|
14
14
|
npm install @bastani/atomic
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Atomic requires Node.js
|
|
18
|
-
|
|
19
|
-
On Node 22, pass `--experimental-async-context-frame` on the server's `node` command line (not in `NODE_OPTIONS`) to avoid `AsyncLocalStorage` promise-hook overhead across concurrent HTTP requests; see [Node 22 hosts](/sdk#node-22-hosts).
|
|
17
|
+
Atomic requires Node.js 24.20 or newer. Dependency install scripts are not required; if your package manager blocks install scripts, leave them disabled.
|
|
20
18
|
|
|
21
19
|
## Keep Atomic out of the server bundle
|
|
22
20
|
|
package/docs/sdk.md
CHANGED
|
@@ -4,7 +4,7 @@ sidebarTitle: "SDK"
|
|
|
4
4
|
description: "Embed Atomic agent sessions in Node.js applications with programmatic control over models, tools, storage, and human input."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Embed Atomic in Node.js applications (Node.js
|
|
7
|
+
Embed Atomic in Node.js applications (Node.js 24.20 or newer) to build custom UIs, power backend services, or drive automated workflows directly inside your Node.js process. Working examples live in [examples/sdk/](https://github.com/bastani-inc/atomic/tree/main/packages/coding-agent/examples/sdk).
|
|
8
8
|
|
|
9
9
|
- **Full options and exports:** [SDK API reference](/sdk/reference) (includes [Owner-bound task supervisor](/sdk/reference#owner-bound-task-supervisor), [Supervised command SDK](/sdk/reference#supervised-command-sdk), and [Task transcript references](/sdk/reference#task-transcript-references)).
|
|
10
10
|
- **Typed decisions:** [Structured decisions API](/sdk/structured-decisions).
|
|
@@ -561,12 +561,6 @@ try {
|
|
|
561
561
|
- **`NativeModuleUnavailableError` is exported from `@bastani/atomic`** (`code: "NativeModuleUnavailable"`). `createAgentSession()` throws it when `@bastani/atomic-natives` cannot load or came from a different Atomic release.
|
|
562
562
|
- **`ShutdownFailed`, `HumanInputUnavailable`, `InvalidHostInput`, `BuiltinUnavailable`, and `SessionClosed` are NOT exported classes.** They are standard `Error` (or `AggregateError` for `ShutdownFailed`) instances tagged with string `.code` properties. Check `(error as { code?: string }).code === "HumanInputUnavailable"` (and `error instanceof AggregateError` for `ShutdownFailed`) rather than `instanceof`.
|
|
563
563
|
|
|
564
|
-
### Node 22 hosts
|
|
565
|
-
|
|
566
|
-
Atomic requires Node.js 22.19 or newer. On Node 22, `AsyncLocalStorage` uses promise hooks, which add small per-`await` overhead across the process once a session has run (Node 24 and Bun have no such overhead). Atomic stores all session context in one store so overhead stays flat regardless of active session count.
|
|
567
|
-
|
|
568
|
-
To switch Node 22 to Node 24's faster `AsyncLocalStorage` implementation, launch your host with `node --experimental-async-context-frame`. Pass the flag on your host command line, not in `NODE_OPTIONS` (Node 24+ rejects the flag, and tool subprocesses inherit `NODE_OPTIONS`). Verify that your own code does not depend on Node 22 `AsyncLocalStorage.disable()` behavior.
|
|
569
|
-
|
|
570
564
|
### Updating Atomic while your program runs
|
|
571
565
|
|
|
572
566
|
When `npm install`, `pnpm add`, or `bun add` replaces `@bastani/atomic` while a Node.js host is running, modules already loaded remain in memory while newly imported modules load from disk.
|
package/docs/sessions.md
CHANGED
|
@@ -110,7 +110,15 @@ Summary generation feeds up to 4,000 tokens of recent conversation, caps the sto
|
|
|
110
110
|
|
|
111
111
|
### Internal sessions
|
|
112
112
|
|
|
113
|
-
Sessions marked **internal** are hidden from `/resume`, `atomic -r`, `-c`, and `history://sessions`, while remaining openable by exact session ID.
|
|
113
|
+
Sessions marked **internal** are hidden from `/resume`, `atomic -r`, `-c`, and `history://sessions`, while remaining openable by exact session ID. Every subagent's own session is internal, whether it started fresh or as a `context: "fork"` copy of its parent's conversation.
|
|
114
|
+
|
|
115
|
+
### Subagent sessions
|
|
116
|
+
|
|
117
|
+
A subagent's session always lives in the same session store as the session that launched it. The subagent's working directory, worktree, or the storage settings of the project it runs in never select another store. Forked and fresh subagents are stored the same way, and so are subagents resumed after a restart. As a result:
|
|
118
|
+
|
|
119
|
+
- `history://sessions/<id>` reads a subagent's session from any session that uses that store, including the launching session after it is resumed on another machine that shares the database. Add `?project=<dir>` when the subagent ran in another directory; its result gives the full URL.
|
|
120
|
+
- `/tasks` and `subagent({ action: "status" })` read the transcript from the launching session's store, so a subagent's history is available wherever that session opens.
|
|
121
|
+
- Subagents do not appear in `/resume` or the `history://sessions` list, since their sessions are internal.
|
|
114
122
|
|
|
115
123
|
When an 8-character ID prefix passed to `--session` or `--fork` matches both a listed session and internal sessions (such as subagent sessions created around the same time), Atomic selects the listed session.
|
|
116
124
|
|
|
@@ -187,9 +195,57 @@ The agent can inspect past project sessions from any session or subagent using r
|
|
|
187
195
|
| `history://sessions/<id>:N-M` | 1-based entry ranges (`:N`, `:N+C`, `:N-M,P-Q`; `:raw` omits the heading). |
|
|
188
196
|
|
|
189
197
|
- **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)).
|
|
190
|
-
- **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. 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.
|
|
198
|
+
- **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.
|
|
191
199
|
- **Indexing and storage.** SQLite, libSQL, and PostgreSQL build a trigram index on 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.
|
|
192
200
|
|
|
201
|
+
### Slow history searches {#slow-history-searches}
|
|
202
|
+
|
|
203
|
+
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:
|
|
204
|
+
|
|
205
|
+
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.
|
|
206
|
+
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`.
|
|
207
|
+
3. When the task finishes, its result arrives in the chat as a completion notice, and the agent reads it there.
|
|
208
|
+
|
|
209
|
+
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`.
|
|
210
|
+
|
|
211
|
+
**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.
|
|
212
|
+
|
|
213
|
+
In the chat, the tool call shows `Search(history-3) · continues in background`, and the agent receives this reply:
|
|
214
|
+
|
|
215
|
+
```text
|
|
216
|
+
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.
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
When the task finishes, a completion line appears:
|
|
220
|
+
|
|
221
|
+
```text
|
|
222
|
+
● History search "/ERR_/ in history://sessions" completed · 12s
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
The agent controls these tasks with the same options it uses for shell commands in the background. `read` takes the same options as `search`:
|
|
226
|
+
|
|
227
|
+
```ts
|
|
228
|
+
// Start the search in the background right away.
|
|
229
|
+
search({ pattern: "ERR_", paths: "history://sessions", wait: { kind: "background" } })
|
|
230
|
+
// Wait up to 60 seconds before moving to the background.
|
|
231
|
+
search({ pattern: "ERR_", paths: "history://sessions", wait: { kind: "foreground", budgetMs: 60000 } })
|
|
232
|
+
// Wait up to 30 more seconds for a running task's result.
|
|
233
|
+
search({ action: "wait", id: "history-3", budgetMs: 30000 })
|
|
234
|
+
// Stop the task.
|
|
235
|
+
kill({ id: "history-3" })
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
- **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.
|
|
239
|
+
- **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:
|
|
240
|
+
|
|
241
|
+
```text
|
|
242
|
+
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.
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Stop one with `kill({ id: "history-3" })`, or wait for one to finish, then make the call again.
|
|
246
|
+
- **Session lifetime.** Background history tasks stop when the session closes or reloads, and they do not start again when you resume the session.
|
|
247
|
+
- **Where they show.** History tasks do not appear in `/tasks` or the agent panel yet.
|
|
248
|
+
|
|
193
249
|
### Searching a stored session in the background
|
|
194
250
|
|
|
195
251
|
Run a read-only CLI search against an existing, unprefixed local SQLite session file without creating indexes, updating indexes, or taking writer locks:
|
package/docs/settings.md
CHANGED
|
@@ -45,7 +45,7 @@ Set up provider credentials in [Model providers](/providers) and define custom e
|
|
|
45
45
|
| --- | --- | --- | --- |
|
|
46
46
|
| `defaultProvider` | string | unset | Startup provider, saved automatically on interactive model switch |
|
|
47
47
|
| `defaultModel` | string | unset | Startup model ID, saved automatically on interactive model switch |
|
|
48
|
-
| `enabledModels` | string[] | unset |
|
|
48
|
+
| `enabledModels` | string[] | unset | Model patterns that limit the startup model, `Ctrl+P` cycling, `/model`, and the models subagents may use. Fast and Ultrafast versions have their own model IDs, so a pattern must match them too. See [Model scope (`enabledModels`)](#enabledmodels). |
|
|
49
49
|
| `fallbackModels` | string[] | unset | Ordered main-chat fallback chain (`provider/model` with optional `:effort` suffix). See [`fallbackModels`](#fallbackmodels). |
|
|
50
50
|
| `decisionModel` | string | `""` | Model for `structured_output` (when omitted) and `decide()`: exact `provider/model` (chat or classifier), or `""`/`"auto"` for the current chat model. See [`decisionModel`](#decisionmodel). |
|
|
51
51
|
| `defaultThinkingLevel` | string | unset | Startup thinking level (`"off"`, `"minimal"`, `"low"`, `"medium"`, `"high"`, `"xhigh"`, `"max"`), clamped to model support |
|
|
@@ -90,6 +90,7 @@ Atomic resolves `enabledModels` and `--models` patterns against **authenticated,
|
|
|
90
90
|
Additional matching rules:
|
|
91
91
|
|
|
92
92
|
- **Provider-qualified vs bare IDs.** Use `provider/id` to pin a single provider. A bare ID or pattern matching multiple authenticated providers adds **every** matching provider to the scope.
|
|
93
|
+
- **Fast and Ultrafast versions.** Some OpenAI models also come in Fast and Ultrafast versions, which use a faster, more expensive service tier (see [Fast and Ultrafast tiers](/providers#fast-and-ultrafast-tiers)). Each version has its own model ID ending in `-fast` or `-ultrafast`, and a pattern must match that ID. A `*` in the provider part of a pattern does not reach into the model ID. For example, `"openai-*/gpt-6.2-sol"` matches `openai-api/gpt-6.2-sol` and `openai-codex/gpt-6.2-sol`, but not `openai-codex/gpt-6.2-sol-fast`. To include the faster versions, end the pattern with `*`, as in `"openai-*/gpt-6.2-sol*"`, or list each ID you want. A pattern never adds a version that the provider does not offer.
|
|
93
94
|
- **Order and deduplication.** Results keep the order of your patterns. Duplicate `(provider, id)` matches are removed while preserving the first occurrence (and its `:thinking` suffix, if any).
|
|
94
95
|
- **Project overrides.** Setting `"enabledModels": []` in `.atomic/settings.json` clears a global `enabledModels` list for that project.
|
|
95
96
|
|
|
@@ -105,6 +106,24 @@ When a scope is active, it governs five areas across your session:
|
|
|
105
106
|
|
|
106
107
|
**What stays independent:** Main-chat `fallbackModels` is independent of `enabledModels`, so you can keep an out-of-scope emergency fallback for main-chat turns. Child subagent fallback chains remain bound by the parent session's `enabledModels` scope.
|
|
107
108
|
|
|
109
|
+
##### When a subagent's model is out of scope
|
|
110
|
+
|
|
111
|
+
Atomic skips any model outside your scope when it launches a subagent. If no allowed model is left, the launch fails and the error says why. When you name a Fast or Ultrafast version whose base model is already in scope, the error gives the exact ID to add:
|
|
112
|
+
|
|
113
|
+
```text
|
|
114
|
+
Model openai-codex/gpt-6.2-sol-ultrafast:high is not available (Skipped openai-codex/gpt-6.2-sol-ultrafast:high: model is outside the session's enabledModels scope; its base model openai-codex/gpt-6.2-sol is in scope. Add "openai-codex/gpt-6.2-sol-ultrafast" to enabledModels.). No other model was used: a subagent launched on a named model runs only that model and its agent's fallbackModels.
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
To fix it, add that ID to `enabledModels`:
|
|
118
|
+
|
|
119
|
+
```json
|
|
120
|
+
{
|
|
121
|
+
"enabledModels": ["openai-codex/gpt-6.2-sol", "openai-codex/gpt-6.2-sol-ultrafast"]
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
A model ID that does not exist at all, such as a typo or a version the provider does not offer, fails with `no such model in the catalog.` instead of the scope message.
|
|
126
|
+
|
|
108
127
|
##### Side effects from `/model` and `/scoped-models`
|
|
109
128
|
|
|
110
129
|
- **Picking an out-of-scope model in `/model`:** If you press `Tab` in `/model` and pick a model outside your active scope, Atomic adds it to the active session's scope. When global `settings.json` has a non-empty `enabledModels` list, Atomic also appends `"provider/id"` to global `enabledModels` and saves `settings.json`. (If the scope came only from project settings or `--models`, global `enabledModels` is not created.)
|
package/docs/skills/authoring.md
CHANGED
|
@@ -55,7 +55,7 @@ Use relative paths from the skill directory:
|
|
|
55
55
|
See the API reference at `references/api-reference.md` for details.
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
The model opens that file as `skill://<your-skill>/references/api-reference.md`, an [address](/skills#skill-addresses) relative to the skill's folder, so you never need to write a full path. Make helper scripts executable (`chmod +x scripts/process.sh`) or document running them with an explicit interpreter such as `node`, `bash`, or `python3`.
|
|
59
59
|
|
|
60
60
|
Keep instructions concise and lead with the intended outcome:
|
|
61
61
|
|
package/docs/skills.md
CHANGED
|
@@ -130,12 +130,85 @@ Setting `builtins: { subagents: false }` on `createAgentSession()` removes the 2
|
|
|
130
130
|
|
|
131
131
|
1. At startup, Atomic scans skill locations and reads each skill's name and description.
|
|
132
132
|
2. The system prompt includes available skills (except those with `disable-model-invocation: true`) in XML format per the [Agent Skills integration specification](https://agentskills.io/integrate-skills).
|
|
133
|
-
3. When a task matches, the agent uses `read` (or `bash` when `read` is unavailable) to load the
|
|
134
|
-
4. The agent follows the instructions
|
|
133
|
+
3. When a task matches, the agent uses `read` (or `bash` when `read` is unavailable) to load the skill from its `skill://` address. Models do not always load a skill automatically, so use explicit prompting or `/skill:name` to force it.
|
|
134
|
+
4. The agent follows the instructions. When they mention another file in the skill's folder, such as `references/guide.md`, the agent opens it as `skill://<name>/references/guide.md`.
|
|
135
135
|
|
|
136
136
|
This is progressive disclosure. Only descriptions stay in context by default, and full instructions load on demand.
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
## Skill addresses
|
|
139
|
+
|
|
140
|
+
Every loaded skill has a short address that starts with `skill://` followed by the skill's name, such as `skill://tdd`. The address names the skill, not the folder it is stored in. That has three benefits:
|
|
141
|
+
|
|
142
|
+
- The skill list in the model's instructions stays short.
|
|
143
|
+
- Your home folder and other private paths stay out of the model's instructions.
|
|
144
|
+
- The address keeps working if you move a skill or resume a session on another computer.
|
|
145
|
+
|
|
146
|
+
### What the model sees
|
|
147
|
+
|
|
148
|
+
The model's instructions list each skill by name, description, and address. With one skill installed, that part of the instructions reads:
|
|
149
|
+
|
|
150
|
+
```xml
|
|
151
|
+
The following skills provide specialized instructions for specific tasks.
|
|
152
|
+
When the task matches a skill's description, use the read tool on the skill's location, skill://<name>, to load it.
|
|
153
|
+
A file the skill references relative to its own directory is skill://<name>/<relative path>. Shell commands accept an unquoted skill:// URI in place of the file's path, for example to run a script the skill includes.
|
|
154
|
+
|
|
155
|
+
<available_skills>
|
|
156
|
+
<skill>
|
|
157
|
+
<name>tdd</name>
|
|
158
|
+
<description>Test-driven development with a red-green-refactor loop.</description>
|
|
159
|
+
<location>skill://tdd</location>
|
|
160
|
+
</skill>
|
|
161
|
+
</available_skills>
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Earlier versions gave the full file path, such as `/Users/you/.atomic/agent/skills/tdd/SKILL.md`, in place of `skill://tdd`.
|
|
165
|
+
|
|
166
|
+
### Reading a skill, a file inside it, or a few lines
|
|
167
|
+
|
|
168
|
+
The agent, or you in a prompt, can use these addresses with the `read`, `search`, and `find` tools:
|
|
169
|
+
|
|
170
|
+
| To get | Use |
|
|
171
|
+
| --- | --- |
|
|
172
|
+
| The skill's instructions (its `SKILL.md`) | `skill://tdd` |
|
|
173
|
+
| Another file in the skill's folder | `skill://tdd/references/mocking.md` |
|
|
174
|
+
| A few lines of either | `skill://tdd:10-40` or `skill://tdd/references/mocking.md:1-20` |
|
|
175
|
+
| Lines that mention a word | `search` for the word in `skill://tdd` |
|
|
176
|
+
| Files in the skill's folder | `find` with `skill://tdd/references/*.md` |
|
|
177
|
+
|
|
178
|
+
When the agent reads a whole skill, the result begins with `Base directory for this skill: skill://tdd/`. Paths in the skill's instructions are relative to that folder.
|
|
179
|
+
|
|
180
|
+
### Running a skill's scripts
|
|
181
|
+
|
|
182
|
+
Shell commands can use an address in place of a file path. Before the command runs, Atomic swaps each address for the file's real path:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
bash skill://my-skill/scripts/check.sh
|
|
186
|
+
python3 skill://my-skill/scripts/report.py --summary
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Write the address as a separate word, not inside quotes. Quoted text is passed to the shell as typed.
|
|
190
|
+
|
|
191
|
+
### Two skills with the same name
|
|
192
|
+
|
|
193
|
+
If only one skill uses a name, its address is `skill://<name>`.
|
|
194
|
+
|
|
195
|
+
Two skills can share a name. For example, you might have your own `tdd` skill while Atomic also ships one. In that case, the model's skill list shows each skill under a longer name with its source after an `@`, such as `tdd@user` and `tdd@builtin`. Their addresses are `skill://tdd@user` and `skill://tdd@builtin`. These are the same names the [`/skill:` commands](#skill-commands) use.
|
|
196
|
+
|
|
197
|
+
The short address `skill://tdd` still works. It opens the skill that wins under the [precedence order](#precedence-order).
|
|
198
|
+
|
|
199
|
+
A longer name must match exactly one skill. Suppose two project folders each have a `tdd` skill. Then `skill://tdd@project` could mean either, so Atomic refuses it and lists the addresses that tell them apart.
|
|
200
|
+
|
|
201
|
+
Some characters, such as a slash, a colon, or a space, would break an address. In a skill's name, Atomic writes them as percent codes, the way web addresses do. A skill named `acme:deploy` has the address `skill://acme%3Adeploy`. The skill list always shows the ready-to-use address.
|
|
202
|
+
|
|
203
|
+
### Addresses are read-only
|
|
204
|
+
|
|
205
|
+
A `skill://` address is only for reading. Atomic won't write or edit through it, and it refuses an address that leads outside the skill's folder, such as `skill://tdd/../other`. To change a skill, edit its files where they are stored.
|
|
206
|
+
|
|
207
|
+
### Subagents and older sessions
|
|
208
|
+
|
|
209
|
+
A subagent given a skill receives the skill's instructions together with its address. It opens the skill's other files the same way.
|
|
210
|
+
|
|
211
|
+
Sessions recorded by earlier versions list skills by their full file path. Those paths keep working when you resume such a session.
|
|
139
212
|
|
|
140
213
|
### Skills as workflows
|
|
141
214
|
|
|
@@ -209,11 +282,11 @@ Qualified selection is exact. An unknown or ambiguous qualified selector reports
|
|
|
209
282
|
|
|
210
283
|
Subagent definitions and per-call `skills` overrides accept these same selectors. Running subagents resolve them from their own loaded skill list; a missing or ambiguous selector is reported in the child result instead of falling back to the bare skill. The parent-only `subagent` orchestration skill cannot be injected into a child, including qualified aliases such as `subagent@builtin`. Extensions can read the same catalog through `ctx.getSkillCatalog()`.
|
|
211
284
|
|
|
212
|
-
When expanded, Atomic wraps the skill body in a `<skill>` block recording the selector,
|
|
285
|
+
When expanded, Atomic wraps the skill body in a `<skill>` block recording the selector, the skill's [address](#skill-addresses), a candidate ID, and the folder that relative references start from:
|
|
213
286
|
|
|
214
287
|
```xml
|
|
215
|
-
<skill name="brave-search" location="
|
|
216
|
-
References are relative to
|
|
288
|
+
<skill name="brave-search" location="skill://brave-search" candidate="skill_0123456789abcdef0123">
|
|
289
|
+
References are relative to skill://brave-search/.
|
|
217
290
|
|
|
218
291
|
...skill instructions...
|
|
219
292
|
</skill>
|