@bastani/atomic 0.10.10 → 0.10.11-alpha.2
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 +139 -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 +11 -13
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +9 -9
- package/dist/_shared/mode-shared-2QJSCUM6.js +55 -18
- 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 +5 -5
- package/dist/_shared/{sdk-RRLVN7ER.js → sdk-IQMULKFU.js} +2962 -470
- package/dist/_shared/sdk-IQMULKFU.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +4 -4
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +1 -1
- package/dist/_shared/{settings-startup-4QCVCI53.js → settings-startup-HXQLSUWM.js} +8 -2
- package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -0
- package/dist/_shared/{startup-0-0-4VG2G44V.js → startup-0-0-3IXNMFM2.js} +482 -53
- package/dist/_shared/startup-0-0-3IXNMFM2.js.map +1 -0
- package/dist/_shared/{startup-0-1-XTIL65D4.js → startup-0-1-7T2IAE7J.js} +121 -251
- package/dist/_shared/startup-0-1-7T2IAE7J.js.map +1 -0
- package/dist/_shared/{startup-0-2-27OWFHV6.js → startup-0-2-5QHPCEON.js} +293 -10
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -0
- package/dist/_shared/{startup-0-3-T4DVFYWX.js → startup-0-3-4ZYBYQNM.js} +273 -14
- package/dist/_shared/startup-0-3-4ZYBYQNM.js.map +1 -0
- package/dist/_shared/startup-0-4-ZMJV547D.js +6 -6
- package/dist/_shared/{startup-0-5-FD2P735I.js → startup-0-5-YDW47QX6.js} +29 -71
- package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -0
- package/dist/_shared/startup-10-0-TDQNBDDL.js +9 -9
- package/dist/_shared/startup-12-0-55AAXBJZ.js +4 -4
- package/dist/_shared/startup-14-0-MLX36RBG.js +6 -6
- package/dist/_shared/startup-15-0-YUKGAC63.js +34 -10
- package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +10 -9
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +421 -84
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/{startup-8-1-4KANEHRA.js → startup-8-1-X32CYSXB.js} +1291 -722
- package/dist/_shared/startup-8-1-X32CYSXB.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +17 -9
- 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 +3 -3
- package/dist/builtin/intercom/CHANGELOG.md +29 -0
- package/dist/builtin/intercom/broker/broker.bundle.mjs +1138 -384
- 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 +386 -65
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +462 -130
- 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 +198 -5
- 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 +18 -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/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 +6 -6
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +4 -4
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- 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 +2 -2
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +4 -4
- 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 +4 -5
- 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 +39 -23
- 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 +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-open-markers.js +3 -0
- package/dist/core/session-open-markers.js.map +1 -0
- 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 +19 -0
- package/dist/core/storage/added-exports.js.map +1 -0
- package/dist/core/storage/database.d.ts +53 -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 +4 -1
- package/dist/core/storage/index.js +5 -2
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/migrations.d.ts +33 -2
- package/dist/core/storage/migrations.js +73 -5
- package/dist/core/storage/migrations.js.map +1 -1
- package/dist/core/storage/node-sqlite-thread.js +48 -6
- package/dist/core/storage/node-sqlite-thread.js.map +1 -1
- package/dist/core/storage/node-sqlite.js +137 -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 +23 -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 +120 -0
- package/dist/core/storage/schema-catalog.js +351 -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 +47 -25
- 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 +4 -4
- 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/errors.js +1 -1
- package/dist/core/storage/session/expanded-child-details.code.js +4 -4
- 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-detach.d.ts +118 -0
- 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-schema.js +53 -0
- package/dist/core/storage/session/fork-schema.js.map +1 -0
- package/dist/core/storage/session/fork-segments.d.ts +58 -0
- 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-sweep.js +61 -0
- package/dist/core/storage/session/fork-sweep.js.map +1 -0
- package/dist/core/storage/session/fork-window.code.js +4 -4
- 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.d.ts +37 -1
- 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 +3 -3
- 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.code.js +1 -1
- 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 +4 -4
- 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 +445 -11
- 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 +36 -0
- package/dist/core/storage/sqlite-facade.d.ts +54 -6
- package/dist/core/storage/sqlite-facade.js +384 -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 +4 -4
- 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 +5 -5
- 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 +7 -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 +45 -2
- package/dist/core/worktree-snapshot/blob-store.js +228 -60
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- package/dist/core/worktree-snapshot/errors.code.js +3 -3
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/fork-snapshot-index.js +121 -0
- package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -0
- 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 +3 -3
- 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 +8 -8
- package/dist/main-first-time-setup.code.js +2 -2
- 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 +3 -3
- 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 +7 -7
- 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 +9 -1
- package/dist/startup-stages/3.js +1 -6
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +2 -2
- package/dist/utils/startup-database-spare.code.js +3 -3
- 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 +346 -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 +67 -2
- package/docs/settings.md +20 -1
- package/docs/skills/authoring.md +1 -1
- package/docs/skills.md +79 -6
- package/docs/storage.md +305 -14
- 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/settings-startup-4QCVCI53.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-2-27OWFHV6.js.map +0 -1
- package/dist/_shared/startup-0-3-T4DVFYWX.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
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
|
|
|
@@ -172,6 +180,14 @@ Type anywhere in `/tree` to filter entries through the inline search bar.
|
|
|
172
180
|
|
|
173
181
|
`atomic --fork <id>`, missing-cwd **Fork**, and same-store SDK `forkTo()` copy all branches. Cross-store forks copy only current context without retired turns or private task records, and reopening warns `Parent history is in its original store or is no longer available.`. For full portable backups of all branches, use `atomic storage export` and `atomic storage import`.
|
|
174
182
|
|
|
183
|
+
### Forks share history within a store {#forks-share-history}
|
|
184
|
+
|
|
185
|
+
In a SQLite, PostgreSQL, or libSQL store, a fork shares the history it was forked from instead of copying it. A fork of a long session is created as quickly as a fork of a short one. The fork reads and resumes exactly as a copy would, and later changes to the parent never show up in it. A store starts sharing on its own; see [shared-history forks](/storage#shared-history-forks) for when it waits, for example while an older Atomic still has a session open. JSONL and in-memory stores always copy.
|
|
186
|
+
|
|
187
|
+
Deleting a session that forks still share history with removes it from every list and search right away. The store keeps the part of its history those forks use, and frees it once the last of them is deleted or no longer needs it. Rewriting such a session first gives each fork its own copy of what it uses.
|
|
188
|
+
|
|
189
|
+
Sharing never crosses a store boundary. Anything that takes a session out of its store makes a full standalone copy: `/export`, `/share`, `atomic --export`, `atomic storage export`, a fork into another store, and moving sessions between stores. The copy holds every entry and tool output the session inherited, and it doesn't need the sessions it was forked from. Importing a session always writes it as a standalone session, never as a fork of anything in the target store.
|
|
190
|
+
|
|
175
191
|
## Branch summaries
|
|
176
192
|
|
|
177
193
|
When `/tree` switches away from a branch, Atomic can optionally summarize the abandoned branch. You can choose no summary, the default summary, or custom focus instructions. When `branchSummary.skipPrompt` is enabled, Atomic skips the prompt and defaults to no summary. See [Branch summaries](/compaction#branch-summaries).
|
|
@@ -187,9 +203,57 @@ The agent can inspect past project sessions from any session or subagent using r
|
|
|
187
203
|
| `history://sessions/<id>:N-M` | 1-based entry ranges (`:N`, `:N+C`, `:N-M,P-Q`; `:raw` omits the heading). |
|
|
188
204
|
|
|
189
205
|
- **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.
|
|
206
|
+
- **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
207
|
- **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
208
|
|
|
209
|
+
### Slow history searches {#slow-history-searches}
|
|
210
|
+
|
|
211
|
+
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:
|
|
212
|
+
|
|
213
|
+
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.
|
|
214
|
+
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`.
|
|
215
|
+
3. When the task finishes, its result arrives in the chat as a completion notice, and the agent reads it there.
|
|
216
|
+
|
|
217
|
+
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`.
|
|
218
|
+
|
|
219
|
+
**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.
|
|
220
|
+
|
|
221
|
+
In the chat, the tool call shows `Search(history-3) · continues in background`, and the agent receives this reply:
|
|
222
|
+
|
|
223
|
+
```text
|
|
224
|
+
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.
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
When the task finishes, a completion line appears:
|
|
228
|
+
|
|
229
|
+
```text
|
|
230
|
+
● History search "/ERR_/ in history://sessions" completed · 12s
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
The agent controls these tasks with the same options it uses for shell commands in the background. `read` takes the same options as `search`:
|
|
234
|
+
|
|
235
|
+
```ts
|
|
236
|
+
// Start the search in the background right away.
|
|
237
|
+
search({ pattern: "ERR_", paths: "history://sessions", wait: { kind: "background" } })
|
|
238
|
+
// Wait up to 60 seconds before moving to the background.
|
|
239
|
+
search({ pattern: "ERR_", paths: "history://sessions", wait: { kind: "foreground", budgetMs: 60000 } })
|
|
240
|
+
// Wait up to 30 more seconds for a running task's result.
|
|
241
|
+
search({ action: "wait", id: "history-3", budgetMs: 30000 })
|
|
242
|
+
// Stop the task.
|
|
243
|
+
kill({ id: "history-3" })
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
- **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.
|
|
247
|
+
- **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:
|
|
248
|
+
|
|
249
|
+
```text
|
|
250
|
+
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.
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Stop one with `kill({ id: "history-3" })`, or wait for one to finish, then make the call again.
|
|
254
|
+
- **Session lifetime.** Background history tasks stop when the session closes or reloads, and they do not start again when you resume the session.
|
|
255
|
+
- **Where they show.** History tasks do not appear in `/tasks` or the agent panel yet.
|
|
256
|
+
|
|
193
257
|
### Searching a stored session in the background
|
|
194
258
|
|
|
195
259
|
Run a read-only CLI search against an existing, unprefixed local SQLite session file without creating indexes, updating indexes, or taking writer locks:
|
|
@@ -210,6 +274,7 @@ Sessions auto-save to `~/.atomic/workflows/journal.sqlite` unless you configure
|
|
|
210
274
|
- **Project trust and resume hints.** Project-local storage settings apply after project trust approval. New conversations switch before saving, while resumed conversations stay in their original store. Keep generated `--session-dir`, `--session-store`, or `--session-prefix` flags when reopening non-default stores, such as `atomic --session-store "/data/project A/sessions.sqlite" --session-prefix project_ --session <id>`.
|
|
211
275
|
- **Import and export.** `--import <file>` or `/import <file>` imports a JSONL export verbatim, including [worktree snapshots](/worktree-snapshots) written by `/export <file>.jsonl`. Import upgrades older supported formats automatically and raises `SessionExistsError` if the ID already exists. Empty imported IDs reopen through `atomic --session ""` or the picker.
|
|
212
276
|
- **Ephemeral runs (`--no-session`).** Nothing is saved to a resumable store. When an idle subagent is unloaded from memory during `--no-session`, its history is temporarily saved to a private file in your agent directory and removed on exit; stale files left after a crash are cleaned up on a later startup on the same host. See [Releasing idle sessions](/sdk#releasing-idle-sessions).
|
|
277
|
+
- **Forks share history.** A fork in the same store reads the history it keeps from its parent instead of storing a copy, so forking a long session is about as fast as forking a short one. The first time this release opens a store, it marks the store so that older Atomic releases can no longer open it; it waits to do so until no session of an older release is running on that database. See [Shared-history forks](/storage#shared-history-forks).
|
|
213
278
|
- **Session stats (`/session`).** Displays the session ID, message count, tokens, and cost. Counts update after each completed message, and per-model cost and cache breakdowns appear once history matches totals.
|
|
214
279
|
|
|
215
280
|
### Choosing a store
|
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>
|