@bastani/atomic 0.10.9 → 0.10.10-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 +57 -0
- package/README.md +211 -155
- 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 +27 -12
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
- package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
- package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
- package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
- package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
- package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
- package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
- package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
- package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
- package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
- package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
- package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
- package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
- 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 +6 -0
- package/dist/builtin/intercom/README.md +85 -114
- package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
- package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
- package/dist/builtin/intercom/group.ts +7 -3
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/README.md +37 -27
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +8 -0
- package/dist/builtin/subagents/README.md +71 -138
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
- package/dist/builtin/web-access/CHANGELOG.md +9 -0
- package/dist/builtin/web-access/README.md +60 -87
- package/dist/builtin/web-access/index.bundle.mjs +387 -351
- 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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +4 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/compaction/compactor.d.ts +20 -14
- package/dist/core/compaction/errors.d.ts +120 -0
- package/dist/core/compaction/index.d.ts +1 -0
- package/dist/core/compaction/model-resolver.d.ts +2 -2
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.code.js +1 -1
- 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/api-types.d.ts +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- 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 +1 -1
- package/dist/core/extensions/provider-types.d.ts +18 -6
- package/dist/core/extensions/provider-types.js.map +1 -1
- package/dist/core/extensions/runner-context.js +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-config.d.ts +40 -0
- package/dist/core/model-registry.js +1 -1
- package/dist/core/model-resolver-scope.d.ts +4 -4
- package/dist/core/model-runtime.d.ts +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/provider-composer-internal.d.ts +11 -2
- package/dist/core/sdk.code.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +5 -5
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager-basic-accessors.d.ts +6 -2
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +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.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +2 -2
- 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 +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.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +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-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.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.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.code.js +1 -1
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.code.js +2 -2
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- 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/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +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 +2 -2
- 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-extensions.d.ts +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +7 -7
- 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/modes/interactive/components/settings-selector-types.d.ts +1 -0
- package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/theme/color-utils.d.ts +5 -5
- package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
- package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
- package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
- package/dist/modes/rpc/rpc-types.d.ts +29 -2
- package/dist/package-manager-cli.code.js +5 -5
- 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/5.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +1 -2
- package/dist/startup-stages/9.js +2 -1
- package/dist/utils/native-module.d.ts +44 -0
- 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 +235 -243
- package/docs/build.md +12 -11
- package/docs/codemode.md +60 -51
- package/docs/compaction/reference.md +61 -24
- package/docs/compaction.md +117 -65
- package/docs/computer-use.md +179 -146
- package/docs/containerization.md +79 -33
- package/docs/custom-provider/api-reference.md +148 -11
- package/docs/custom-provider/oauth.md +44 -27
- package/docs/custom-provider/override.md +14 -7
- package/docs/custom-provider/registration.md +75 -65
- package/docs/custom-provider/streaming.md +42 -19
- package/docs/custom-provider.md +25 -61
- package/docs/development.md +47 -43
- package/docs/docs.json +33 -33
- package/docs/environment-variables.md +83 -57
- package/docs/extensions/api-reference.md +323 -734
- package/docs/extensions/authoring.md +186 -269
- package/docs/extensions/events.md +308 -375
- package/docs/extensions/examples.md +122 -74
- package/docs/extensions/ui.md +217 -197
- package/docs/extensions.md +152 -259
- package/docs/getting-started/authentication.md +27 -14
- package/docs/getting-started/first-session.md +25 -26
- package/docs/getting-started/installation.md +62 -84
- package/docs/getting-started/project-instructions.md +39 -14
- package/docs/guides/configuration.md +42 -20
- package/docs/guides/intercom.md +17 -13
- package/docs/guides/non-interactive.md +29 -16
- package/docs/guides/orchestration.md +16 -10
- package/docs/guides/resume-on-any-machine.md +54 -49
- package/docs/guides/subagents.md +22 -14
- package/docs/guides/team-setup.md +37 -26
- package/docs/guides.md +22 -21
- package/docs/herdr.md +21 -16
- package/docs/index.md +16 -17
- package/docs/intercom/operations.md +68 -66
- package/docs/intercom/reference.md +196 -191
- package/docs/intercom.md +103 -92
- package/docs/json.md +71 -71
- package/docs/keybindings.md +63 -50
- package/docs/libraries/agent-core.md +49 -8
- package/docs/libraries/ai.md +21 -12
- package/docs/libraries/codemode.md +28 -6
- package/docs/libraries/schema.md +7 -7
- package/docs/libraries/telemetry.md +7 -7
- package/docs/libraries/tui.md +74 -94
- package/docs/libraries.md +5 -5
- package/docs/llama-cpp.md +38 -33
- package/docs/mcp-servers.md +96 -90
- package/docs/models/reference.md +46 -33
- package/docs/models-configuration.md +12 -6
- package/docs/models.md +93 -88
- package/docs/orchestration/migrating-workflows.md +21 -19
- package/docs/orchestration/patterns.md +35 -20
- package/docs/orchestration.md +22 -21
- package/docs/packages/authoring.md +28 -19
- package/docs/packages/reference.md +75 -16
- package/docs/packages.md +31 -33
- package/docs/programmatic.md +22 -21
- package/docs/prompt-templates.md +63 -41
- package/docs/providers/reference.md +35 -19
- package/docs/providers.md +61 -71
- package/docs/quickstart.md +32 -46
- package/docs/reference/cli.md +249 -252
- package/docs/reference.md +23 -20
- package/docs/rpc/examples.md +74 -17
- package/docs/rpc/extension-ui.md +79 -62
- package/docs/rpc/protocol.md +816 -358
- package/docs/rpc.md +75 -151
- package/docs/sdk/reference.md +175 -45
- package/docs/sdk/structured-decisions.md +92 -62
- package/docs/sdk/web-server.md +79 -46
- package/docs/sdk.md +237 -195
- package/docs/security.md +106 -43
- package/docs/session-format.md +96 -59
- package/docs/sessions.md +149 -113
- package/docs/settings.md +289 -204
- package/docs/shell-aliases.md +15 -6
- package/docs/skills/authoring.md +17 -9
- package/docs/skills/reference.md +23 -21
- package/docs/skills.md +104 -97
- package/docs/storage.md +140 -242
- package/docs/subagents/authoring.md +147 -16
- package/docs/subagents/reference.md +100 -30
- package/docs/subagents.md +220 -252
- package/docs/terminal-setup.md +97 -69
- package/docs/termux.md +51 -85
- package/docs/themes/reference.md +51 -37
- package/docs/themes.md +49 -54
- package/docs/tmux.md +38 -21
- package/docs/tools.md +198 -147
- package/docs/tui/reference.md +64 -32
- package/docs/tui.md +38 -66
- package/docs/usage.md +76 -78
- package/docs/verification.md +25 -25
- package/docs/web-access.md +72 -55
- package/docs/windows.md +53 -58
- package/docs/worktree-snapshots.md +62 -65
- package/package.json +8 -8
- package/schemas/models.schema.json +51 -0
- package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
- package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
- package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
- package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
- package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
package/docs/extensions.md
CHANGED
|
@@ -1,111 +1,37 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Extensions
|
|
3
|
-
|
|
2
|
+
title: "Extensions overview"
|
|
3
|
+
sidebarTitle: "Overview"
|
|
4
|
+
description: "Build TypeScript extensions that add tools, slash commands, lifecycle hooks, and custom terminal UI to Atomic."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Extensions are TypeScript modules that extend Atomic's behavior. They can subscribe to lifecycle events, register custom tools callable by the LLM, add commands, and render custom UI.
|
|
9
|
-
|
|
10
|
-
## Reloading and startup behavior
|
|
11
|
-
|
|
12
|
-
Put extensions in `~/.atomic/agent/extensions/` (global) or `.atomic/extensions/` (project-local) for auto-discovery; legacy `.pi` paths remain supported. Use `atomic -e ./path.ts` for quick tests.
|
|
13
|
-
|
|
14
|
-
Auto-discovered extensions hot-reload with `/reload`. Atomic evaluates each extension file and the local modules and JSON files it imports through its own transform, including plain JavaScript (`.mjs`, `.cjs`, and `.js`). ESM keeps `import.meta.url`, strict mode, top-level await, and package or Node built-in imports. CommonJS keeps `require`, `module.exports`, `__filename`, `__dirname`, and sloppy mode.
|
|
15
|
-
|
|
16
|
-
Under Bun, extensions also load through Atomic's extension loader on the first load (not only on `/reload`). That keeps `typebox` and Atomic package imports pointing to Atomic's own copies right away and matches native `import.meta` values (including Windows backslashes). Because the loader reads runtime globals through `globalThis`, modules that declare a top-level `globalThis` binding cannot be loaded this way under Node or Bun.
|
|
17
|
-
|
|
18
|
-
Packages imported by name resolve from the importing file as Node or Bun would, falling back to Atomic's copy of a host package only when none is installed. Named packages, files under `node_modules` outside the extension's own package, and modules loaded through `createRequire()` load once per process, so restart Atomic after editing them.
|
|
19
|
-
|
|
20
|
-
If `/reload` reports `Reload retiring cleanup failed`, the error includes the extension cleanup cause. The replacement extensions, updated settings, and joined Intercom groups stay active. Fix the cleanup error before reloading again.
|
|
21
|
-
|
|
22
|
-
If an optional extension fails to import or initialize during interactive startup or `/reload`, Atomic skips it and shows its path and reason under `[Extension issues]` while keeping the session usable. Fix the extension or its dependencies and run `/reload`. Print mode (`-p`) and standalone RPC mode (`--mode rpc`) report the named failure and exit with status 1 instead so scripts do not silently run without a requested extension. Required built-in failures and failed cleanup stop startup in every mode.
|
|
23
|
-
|
|
24
|
-
Legacy extensions can import the running host API from `@mariozechner/pi-coding-agent` or `@earendil-works/pi-coding-agent`, including in release-archive installs, without a separate installation.
|
|
7
|
+
Extensions are TypeScript or JavaScript modules that customize how Atomic behaves. You can use them to add custom tools, intercept lifecycle events, register slash commands, store session state, or render custom terminal UI.
|
|
25
8
|
|
|
26
9
|
Key capabilities:
|
|
27
10
|
|
|
28
|
-
- **Custom tools.** Register tools the
|
|
29
|
-
- **Event
|
|
30
|
-
- **User interaction.**
|
|
31
|
-
- **Custom UI components.** Render interactive
|
|
32
|
-
- **Custom commands.** Register slash commands such as `/mycommand`
|
|
33
|
-
- **Session persistence.** Store durable
|
|
34
|
-
- **Reload-surviving state.** Keep in-memory objects alive across `/reload`
|
|
35
|
-
- **Custom rendering.** Control how tool calls, tool results, and custom messages appear in the
|
|
36
|
-
|
|
37
|
-
Common use cases include permission gates, git checkpointing, path protection, compaction policies, conversation summaries (`summarize.ts`), interactive wizards, stateful tools, webhooks or file watchers, and waiting-time games (`snake.ts`). See [examples/extensions/](https://github.com/bastani-inc/atomic/tree/main/packages/coding-agent/examples/extensions) for working implementations.
|
|
11
|
+
- **Custom tools.** Register tools the model can call with `atomic.registerTool()`.
|
|
12
|
+
- **Event hooks.** Block or modify tool calls, adjust context before requests, observe or replace compaction, and customize branch summaries.
|
|
13
|
+
- **User interaction.** Show interactive prompts and notifications via `ctx.ui` (`select`, `confirm`, `input`, `editor`, `notify`).
|
|
14
|
+
- **Custom UI components.** Render interactive terminal components and overlays with `ctx.ui.custom()`.
|
|
15
|
+
- **Custom commands.** Register slash commands such as `/mycommand` with `atomic.registerCommand()`.
|
|
16
|
+
- **Session persistence.** Store durable data across restarts with `atomic.appendEntry()`.
|
|
17
|
+
- **Reload-surviving state.** Keep in-memory objects alive across `/reload` with `sessionScopedExtensionState()`.
|
|
18
|
+
- **Custom rendering.** Control how tool calls, tool results, and custom messages appear in the terminal.
|
|
38
19
|
|
|
39
|
-
|
|
20
|
+
Common use cases include permission gates, git checkpointing, path protection, compaction policies, conversation summaries, interactive wizards, webhooks or file watchers, and waiting-time games. See [Extension examples](/extensions/examples) for runnable code.
|
|
40
21
|
|
|
41
22
|
## Where to go next
|
|
42
23
|
|
|
43
|
-
Read this
|
|
24
|
+
Read this overview for a working first extension, discovery locations, imports, and runtime behavior, then continue:
|
|
44
25
|
|
|
45
|
-
- [
|
|
46
|
-
- [Extension events](/extensions/events). Look up every event, its payload, and its return contract.
|
|
47
|
-
- [Extension UI](/extensions/ui).
|
|
48
|
-
- [Extension API reference](/extensions/api-reference). Reference `ExtensionContext`, `ExtensionCommandContext`, `ExtensionAPI` methods, and error handling.
|
|
49
|
-
- [Extension examples](/extensions/examples). Browse runnable
|
|
26
|
+
- [Write an extension](/extensions/authoring). Structure an extension, manage state, register custom tools, and customize rendering.
|
|
27
|
+
- [Extension events](/extensions/events). Look up every lifecycle event, its payload, and its return contract.
|
|
28
|
+
- [Extension UI](/extensions/ui). Build dialogs, widgets, host-native pickers and forms, custom components, and message renderers.
|
|
29
|
+
- [Extension API reference](/extensions/api-reference). Reference `ExtensionContext`, `ExtensionToolContext`, `ExtensionCommandContext`, `ExtensionAPI` methods, and error handling.
|
|
30
|
+
- [Extension examples](/extensions/examples). Browse runnable extensions shipped with Atomic.
|
|
50
31
|
- [Security](/security). Review the project-trust boundary that controls whether a project's extensions load.
|
|
51
32
|
|
|
52
33
|
If an extension is heavier than you need, compare lighter options on [Build with Atomic](/build).
|
|
53
34
|
|
|
54
|
-
## Startup and lazy discovery
|
|
55
|
-
|
|
56
|
-
Built-in MCP, subagent, web-access, and Intercom commands are available at startup. Their first use may wait for discovery or connection.
|
|
57
|
-
|
|
58
|
-
Commands wait for the resources they need before returning results, including MCP tool calls and explicit reloads. Discovery scope depends on the operation:
|
|
59
|
-
|
|
60
|
-
- Enabled MCP servers connect in the background when a session starts. The first prompt waits up to 10 seconds for servers with direct tools.
|
|
61
|
-
- Codemode waits for the MCP namespaces a script names; `searchTools()` and `ALL_TOOLS` require all enabled servers. Tool search and resource tools also wait for discovery.
|
|
62
|
-
- `/mcp` provides server management; `/mcp login`, `/mcp logout`, and `/mcp reconnect` accept an optional server name. Completion lists actions and eligible servers.
|
|
63
|
-
- Autocomplete falls back to current and administrative completions when lazy discovery fails.
|
|
64
|
-
|
|
65
|
-
Failed connections can be retried with `/mcp reconnect`, and dropped MCP connections reconnect on the next call. Web-access batches with no successful items report a tool error; partial successes keep their completed items.
|
|
66
|
-
|
|
67
|
-
MCP `timeout` is an inactivity limit in seconds (default 60 seconds), reset by progress rather than a fixed total deadline. See [MCP servers](/mcp-servers) for configuration, exposure, resources, OAuth, and shell commands.
|
|
68
|
-
|
|
69
|
-
## Interactive callback isolation
|
|
70
|
-
|
|
71
|
-
Interactive sessions isolate extension callbacks from terminal input handling so a busy callback does not block keyboard input or spinners.
|
|
72
|
-
|
|
73
|
-
Escape requests cooperative cancellation from the engine and waits as long as the engine takes. There is no deadline on that wait, and Escape never terminates or replaces the engine, so an interrupt cannot discard in-flight tool state.
|
|
74
|
-
|
|
75
|
-
Ctrl+C is the host's escape hatch in two situations.
|
|
76
|
-
|
|
77
|
-
First, while an engine-owned `ctx.ui.custom()` component or overlay holds input, every key goes to the engine child. Ownership of Ctrl+C is declared per mount:
|
|
78
|
-
|
|
79
|
-
- A component mounted with `handlesCtrlC: true` receives the first Ctrl+C press and keeps its own skip, close, or cancel binding. If that same component still holds input on the next Ctrl+C press, the host closes it so no component can trap the keyboard.
|
|
80
|
-
- A component without `handlesCtrlC: true` is closed on the first Ctrl+C press through the ordinary close path: its `ctx.ui.custom()` promise resolves with `undefined`, the editor returns, and the engine keeps running (along with any other mounted component).
|
|
81
|
-
|
|
82
|
-
Declare `handlesCtrlC: true` whenever your component's hint row offers `ctrl+c`. Native host selectors, dialogs, input forms, session pickers, and unrelated native overlays keep Ctrl+C as their own cancel.
|
|
83
|
-
|
|
84
|
-
```typescript
|
|
85
|
-
await ctx.ui.custom<string | undefined>(
|
|
86
|
-
(tui, theme, keybindings, done) => new PromptCard(tui, theme, done),
|
|
87
|
-
{ overlay: true, handlesCtrlC: true },
|
|
88
|
-
);
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
Both safety keys match by physical key identity rather than the configured `app.clear` action, so rebinding `app.clear` (even to Escape) cannot route Escape into engine replacement or disable Ctrl+C recovery. Rebinding `app.clear` to another key keeps normal editor clearing, and key-release events never act.
|
|
92
|
-
|
|
93
|
-
Second, if the engine is unresponsive, an abort or replacement has waited over one second, or replacement failed, Ctrl+C terminates and replaces the engine. This takes precedence over custom UI bindings. A failed replacement remains recoverable with another Ctrl+C; Atomic does not keep retrying automatically.
|
|
94
|
-
|
|
95
|
-
After an unexpected engine stop, Atomic closes custom UI and attempts one automatic restart. A clean restart prints nothing unless messages were still queued.
|
|
96
|
-
|
|
97
|
-
If messages were queued, main-chat messages return to the editor (steering first) with the warning `Engine restarted; 2 queued messages weren't sent and are back in the editor`. For a subagent chat, known-unsent queued messages (both messages confirmed absent from disk and messages still listed in its queue) return ahead of any draft into that subagent's own editor (immediately if its view is open and writable, or on the first writable reopen in the same session with `Engine restarted; 2 queued messages to <agent> weren't sent; they're back in its editor when you open it`); when the subagent view is read-only or confirmation is unavailable, Atomic prints `Engine restarted; 2 queued messages to <agent> weren't sent:` and never writes into main's editor. None are sent twice, and unstarted submissions return as exact drafts while accepted work is not retried automatically. With debug logging enabled, the restart cause goes to the debug log. A failed restart leaves the editor usable and reports `Interactive engine restart failed: ...`.
|
|
98
|
-
|
|
99
|
-
If a saved tool call has no recorded result, reopening the session marks its result unavailable. **Inspect files or external systems before retrying because the tool may already have had side effects.**
|
|
100
|
-
|
|
101
|
-
When spawning processes from an extension, pass an explicit `env` derived from `process.env`. Engine-only bootstrap values are not exposed there.
|
|
102
|
-
|
|
103
|
-
Dialogs, `ctx.ui.custom()` components, and component-factory widgets run in the isolated engine child and proxy rendered lines to the host with asynchronous input forwarding. Custom UI results must be JSON-safe. APIs that require a synchronous callback in the terminal host (raw `onTerminalInput` transforms, synchronous `getEditorText`, custom editor factories, autocomplete wrappers, and custom header or footer factories) are unavailable in isolated interactive mode and produce a warning instead of running extension code in the host. Print and public RPC modes keep their own execution models.
|
|
104
|
-
|
|
105
|
-
Use `ctx.ui.hostSessionPicker(request)` for a session-style picker with local navigation and search. Pass JSON-safe `HostSessionPickerRow` values (`SessionInfo` with `createdAt` and `modifiedAt` in epoch milliseconds). The returned handle provides `result`, `update(rows)`, `error(message)`, and `close()`. `result` resolves to the selected `path` or `undefined` on cancel, and your `onDelete(path)` callback owns deletion. This API works in both interactive modes and is absent in print and headless RPC. See [Host-native session picker](/tui/reference#host-native-session-picker).
|
|
106
|
-
|
|
107
|
-
For structured forms, use `ctx.ui.hostInputForm(request)` with JSON-safe descriptors (`string`, `text`, `number`, `integer`, `boolean`, or `select`) and raw `initialValue` fields. It resolves to a raw string record or `undefined` on cancel, and rejects with `"The host could not read this input form."` if the host cannot read the form. Editing, navigation, validation, and configured keybindings run locally in both interactive modes. Print and headless RPC omit this API. See [Host-native input form](/tui/reference#host-native-input-form).
|
|
108
|
-
|
|
109
35
|
## Quick start
|
|
110
36
|
|
|
111
37
|
Create `~/.atomic/agent/extensions/my-extension.ts` (the factory parameter can have any name; older extensions and examples call it `pi`):
|
|
@@ -135,7 +61,7 @@ export default function (atomic: ExtensionAPI) {
|
|
|
135
61
|
parameters: Type.Object({
|
|
136
62
|
name: Type.String({ description: "Name to greet" }),
|
|
137
63
|
}),
|
|
138
|
-
async execute(
|
|
64
|
+
async execute(_toolCallId, params) {
|
|
139
65
|
return {
|
|
140
66
|
content: [{ type: "text", text: `Hello, ${params.name}!` }],
|
|
141
67
|
details: {},
|
|
@@ -153,7 +79,7 @@ export default function (atomic: ExtensionAPI) {
|
|
|
153
79
|
}
|
|
154
80
|
```
|
|
155
81
|
|
|
156
|
-
Test with
|
|
82
|
+
Test it for one run with `-e` (or `--extension`):
|
|
157
83
|
|
|
158
84
|
```bash
|
|
159
85
|
atomic -e ./my-extension.ts
|
|
@@ -163,20 +89,24 @@ atomic -e ./my-extension.ts
|
|
|
163
89
|
|
|
164
90
|
> **Security:** Extensions run with your full system permissions and can execute arbitrary code. Install only from sources you trust.
|
|
165
91
|
|
|
166
|
-
|
|
92
|
+
Atomic auto-discovers extensions from these locations:
|
|
167
93
|
|
|
168
94
|
| Location | Scope |
|
|
169
|
-
|
|
170
|
-
| `~/.atomic/agent/extensions/*.ts` | Global (all projects) |
|
|
171
|
-
| `~/.atomic/agent/extensions/*/index.ts` | Global
|
|
172
|
-
|
|
|
173
|
-
| `.atomic/extensions
|
|
95
|
+
| --- | --- |
|
|
96
|
+
| `~/.atomic/agent/extensions/*.{ts,js}` | Global single-file extensions (all projects) |
|
|
97
|
+
| `~/.atomic/agent/extensions/*/index.{ts,js}` | Global subdirectory extensions |
|
|
98
|
+
| `~/.atomic/agent/extensions/*/package.json` | Global subdirectories declaring `atomic.extensions` (or legacy `pi.extensions`) |
|
|
99
|
+
| `.atomic/extensions/*.{ts,js}` | Project single-file extensions (trusted projects only) |
|
|
100
|
+
| `.atomic/extensions/*/index.{ts,js}` | Project subdirectory extensions (trusted projects only) |
|
|
101
|
+
| `.atomic/extensions/*/package.json` | Project subdirectories declaring `atomic.extensions` (trusted projects only) |
|
|
174
102
|
|
|
175
|
-
|
|
103
|
+
Discovery rules:
|
|
176
104
|
|
|
177
|
-
|
|
105
|
+
- Scanning respects `.gitignore`, `.ignore`, and `.fdignore` inside extension directories, and skips dotfiles, dot-directories, and `node_modules`.
|
|
106
|
+
- Disable extension discovery with `--no-extensions` (short flag `-ne`). Explicit `-e` paths and the mandatory bundled Intercom extension still load.
|
|
107
|
+
- Atomic also discovers extensions and packages inherited from legacy `~/.pi/agent` and `.pi` directories. If an inherited legacy extension registers the exact same tool, command, prompt, flag, or shortcut name as a bundled Atomic extension, Atomic keeps the bundled registration and skips only that conflicting registration (summarized in yellow on interactive startup). Extensions configured through `.atomic` or passed with `-e` follow normal override rules.
|
|
178
108
|
|
|
179
|
-
Configure
|
|
109
|
+
Configure extra paths or packages in `settings.json`:
|
|
180
110
|
|
|
181
111
|
```json
|
|
182
112
|
{
|
|
@@ -191,204 +121,167 @@ Configure additional paths in `settings.json`:
|
|
|
191
121
|
}
|
|
192
122
|
```
|
|
193
123
|
|
|
124
|
+
To distribute extensions over npm or git, see [Install and manage packages](/packages).
|
|
125
|
+
|
|
194
126
|
### Built-in extension resources
|
|
195
127
|
|
|
196
|
-
Atomic exposes `builtin:llama.cpp`, `builtin:codemode`, and `builtin:tool-search` as extension resources rather than filesystem paths.
|
|
128
|
+
Atomic exposes `builtin:llama.cpp`, `builtin:codemode`, and `builtin:tool-search` (which registers the `tool_search` tool) as built-in extension resources rather than filesystem paths. Toggle them interactively in `atomic config`, or disable one in `settings.json`:
|
|
197
129
|
|
|
198
130
|
```json
|
|
199
131
|
{ "extensions": ["-builtin:codemode"] }
|
|
200
132
|
```
|
|
201
133
|
|
|
202
|
-
A trusted project `"+builtin:codemode"` entry
|
|
134
|
+
A trusted project `"+builtin:codemode"` entry overrides a global exclusion. You can also load one explicitly alongside `--no-extensions` (`-ne`):
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
atomic --no-extensions -e builtin:codemode --tools read,codemode
|
|
138
|
+
```
|
|
203
139
|
|
|
204
|
-
|
|
140
|
+
Passing an unrecognized `builtin:<name>` with `-e` stops with `Unknown built-in extension: builtin:<name>`.
|
|
205
141
|
|
|
206
|
-
|
|
142
|
+
Loading a built-in resource registers its tool. `codemode` is enabled in the default tool list (so a custom `--tools` list must name it), while `tool_search` is opt-in. Both `codemode` and `tool-search` are replaceable: a custom extension that registers the same tool, command, or flag takes over, and Atomic reports the replacement. Disable that extension in `atomic config` to restore the built-in version.
|
|
207
143
|
|
|
208
|
-
|
|
144
|
+
These built-in names do not replace Atomic's bundled MCP, subagent, web-access, or Intercom packages. There are no `builtin:mcp` or `builtin:subagents` aliases; configure those through package settings and MCP configuration.
|
|
209
145
|
|
|
210
146
|
## Available imports
|
|
211
147
|
|
|
148
|
+
Extensions can import Atomic's bundled packages without installing them in `node_modules`:
|
|
149
|
+
|
|
212
150
|
| Package | Purpose |
|
|
213
|
-
|
|
214
|
-
| `@bastani/atomic` | Extension types (`ExtensionAPI`, `ExtensionContext`, events)
|
|
215
|
-
| `
|
|
216
|
-
|
|
|
217
|
-
|
|
|
151
|
+
| --- | --- |
|
|
152
|
+
| `@bastani/atomic` | Extension types (`ExtensionAPI`, `ExtensionContext`, events), helpers (`StringEnum`, `defineTool`), and built-in tool factories |
|
|
153
|
+
| `@bastani/atomic/storage` | Storage adapter interfaces, `createSqliteDatabase()`, and storage errors |
|
|
154
|
+
| `@bastani/atomic/typebox` | Atomic's copy of TypeBox plus subpaths (`/compile`, `/error`, `/format`, `/guard`, `/schema`, `/system`, `/type`, `/value`) |
|
|
155
|
+
| `typebox` and `@sinclair/typebox` | Direct schema imports (including `typebox/*`, `@sinclair/typebox/compile`, and `@sinclair/typebox/value`) resolve to Atomic's copy so formats registered with `Format.Set()` apply to tool validation |
|
|
156
|
+
| [`@bastani/atomic-ai`](/libraries/ai) | AI utilities, provider APIs, image generation, and subpaths (`/oauth`, `/models`, `/providers/all`) |
|
|
157
|
+
| [`@bastani/atomic-tui`](/libraries/tui) | Terminal UI components for custom rendering |
|
|
218
158
|
| [`@bastani/atomic-agent-core`](/libraries/agent-core) | Agent loop types and helpers |
|
|
219
|
-
| [`@bastani/atomic-codemode`](/libraries/codemode) | Codemode sandbox and declaration helpers |
|
|
220
|
-
| [`@bastani/atomic-schema`](/libraries/schema) | JSON Schema builders and
|
|
221
|
-
| [`@bastani/atomic-telemetry`](/libraries/telemetry) | Telemetry contracts |
|
|
159
|
+
| [`@bastani/atomic-codemode`](/libraries/codemode) | Codemode sandbox and declaration helpers (`@bastani/atomic-codemode/*`) |
|
|
160
|
+
| [`@bastani/atomic-schema`](/libraries/schema) | JSON Schema builders, validation, and `/formats` |
|
|
161
|
+
| [`@bastani/atomic-telemetry`](/libraries/telemetry) | Telemetry contracts and `/render` |
|
|
162
|
+
|
|
163
|
+
Atomic maintains these packages directly; [Libraries](/libraries) documents each one. Legacy import names (`@earendil-works/pi-*`, `@mariozechner/pi-*`, and `@bastani/pi-ai`) resolve to the same modules, including in release-archive installs. New extensions should import the `@bastani/atomic-*` names.
|
|
222
164
|
|
|
223
|
-
|
|
165
|
+
Node.js built-ins (`node:fs`, `node:path`, and the rest of `node:*`) are always available.
|
|
224
166
|
|
|
225
|
-
**Sharing TypeBox from dependencies and SDK apps.** Direct `typebox` imports inside an extension file
|
|
167
|
+
**Sharing TypeBox from dependencies and SDK apps.** Direct `typebox` imports inside an extension file map to Atomic's copy automatically. If a separate dependency or SDK app registers custom TypeBox formats, settings, or locales that must reach Atomic's tool validation, import from `@bastani/atomic/typebox` and its subpaths rather than from a separate `typebox` dependency.
|
|
226
168
|
|
|
227
|
-
|
|
169
|
+
**Third-party npm dependencies.** Add a `package.json` next to your extension (or in a parent directory) and install dependencies with npm, pnpm, or Bun:
|
|
228
170
|
|
|
229
171
|
```bash
|
|
230
172
|
npm install
|
|
231
173
|
```
|
|
232
174
|
|
|
233
|
-
Imports from `node_modules/` resolve automatically.
|
|
234
|
-
|
|
235
|
-
For distributed Atomic packages installed with `atomic install` (npm or git), declare runtime dependencies in `dependencies`. Package installation installs production dependencies by default, so `devDependencies` are not available at runtime. When `npmCommand` is configured, git packages run a plain `install` for wrapper compatibility.
|
|
175
|
+
Imports from `node_modules/` resolve automatically. For distributed packages installed with `atomic install` (npm or git), declare runtime dependencies in `dependencies`; `devDependencies` are omitted by default. When `npmCommand` is configured in `settings.json`, git package installs still detect `npm`, `pnpm`, or `bun` inside wrapper commands (such as `["mise", "exec", "node@20", "--", "npm"]`) and pass manager-specific flags to skip dev and peer dependencies. Plain `install` runs only for unrecognized package manager commands.
|
|
236
176
|
|
|
237
177
|
### Tool parameter schemas
|
|
238
178
|
|
|
239
|
-
A tool's `parameters` can be a TypeBox schema or any plain JSON Schema object. Atomic validates the model
|
|
179
|
+
A tool's `parameters` can be a TypeBox schema or any plain JSON Schema object. Atomic validates arguments from the model after coercing loosely typed values (such as a numeric string to a number, `"true"` to `true`, or dropping `null` on an optional property):
|
|
240
180
|
|
|
241
|
-
- **TypeBox schemas** are
|
|
242
|
-
- **Plain JSON Schema** (such as an MCP server's
|
|
243
|
-
|
|
244
|
-
Node.js built-ins (`node:fs`, `node:path`, and the rest of `node:*`) are also available.
|
|
181
|
+
- **TypeBox schemas** are validated by TypeBox, so TypeBox features outside JSON Schema (such as `Type.Refine()` and formats registered with `Format.Set()`) apply and errors use TypeBox's format.
|
|
182
|
+
- **Plain JSON Schema** (such as an MCP server's schema or one built with `@bastani/atomic-schema`) is coerced and checked by `@bastani/atomic-schema`. Single values wrap into one-item arrays when an array is expected, `url` and `json-pointer-uri-fragment` formats are checked, and an unresolved `$ref` rejects only that field instead of every call. Errors use `@bastani/atomic-schema`'s format, such as `- path: missing` or `- limit: expected number, got string`.
|
|
245
183
|
|
|
246
184
|
## Mode behavior
|
|
247
185
|
|
|
248
186
|
| Mode | UI methods | Notes |
|
|
249
|
-
|
|
250
|
-
| Interactive | Full TUI |
|
|
187
|
+
| --- | --- | --- |
|
|
188
|
+
| Interactive | Full TUI | Extensions run in a background worker so slow callbacks do not freeze the terminal |
|
|
251
189
|
| RPC (`--mode rpc`) | JSON protocol | Host handles UI; see [RPC mode](/rpc) |
|
|
252
190
|
| JSON (`--mode json`) | No-op | Event stream to stdout; see [JSON mode](/json) |
|
|
253
191
|
| Print (`-p`) | No-op | Extensions run without interactive prompts |
|
|
254
192
|
|
|
255
|
-
|
|
193
|
+
Check `ctx.hasUI` (or `ctx.mode === "tui"`) before using UI methods in extensions that may run outside interactive mode.
|
|
194
|
+
|
|
195
|
+
## Reloading and startup behavior
|
|
196
|
+
|
|
197
|
+
Auto-discovered extensions hot-reload when you run `/reload`. Atomic transpiles each extension file along with local TypeScript, JavaScript (`.mjs`, `.cjs`, `.js`), and JSON files it imports by relative path, so edits to those local files take effect on `/reload`.
|
|
198
|
+
|
|
199
|
+
- **Module format.** ESM files keep `import.meta.url`, strict mode, top-level `await`, and package or Node built-in imports. CommonJS files keep `require`, `module.exports`, `__filename`, and `__dirname`.
|
|
200
|
+
- **Caching on `/reload`.** Named npm packages, files under `node_modules` outside the extension's own package, and modules loaded via `createRequire()` are loaded once per process. Restart Atomic after editing those files.
|
|
201
|
+
- **Bun and `globalThis`.** Under Bun, extensions load through Atomic's loader on initial startup as well as `/reload`, keeping `typebox` and `@bastani/atomic-*` imports pinned to Atomic's own copies. Modules that declare a top-level variable named `globalThis` cannot be loaded under either Node or Bun.
|
|
202
|
+
- **Load failures.** If an optional extension fails to import or initialize during interactive startup or `/reload`, Atomic skips it, lists its path and error under `[Extension issues]`, and keeps the session open. Fix the issue and run `/reload`. In print (`-p`) and standalone RPC (`--mode rpc`) modes, any extension load failure prints the error and exits with code 1. Required built-in failures and cleanup failures stop startup in every mode.
|
|
203
|
+
- **Reload cleanup failures.** If `/reload` reports `Reload retiring cleanup failed`, the error names the failing cleanup callback while keeping the replacement extensions, updated settings, and Intercom groups active. Fix the cleanup bug before reloading again.
|
|
204
|
+
- **Built-in Herdr status reporter.** Inside a Herdr pane, Atomic automatically reports parent session status and resume commands with its built-in [Herdr integration](/herdr) and skips Herdr's legacy `herdr-agent-state.ts` or `.js` file (outside a Herdr pane, that legacy file loads normally). If you installed a separate `herdr-atomic-reporter` extension, disable either that extension or `herdr.enabled` in `settings.json` to prevent flickering status updates. See [Herdr setup](/herdr#setup).
|
|
205
|
+
|
|
206
|
+
## Startup and lazy discovery
|
|
207
|
+
|
|
208
|
+
Built-in MCP, subagent, web-access, and Intercom commands are available immediately at startup. Their first call may wait for background discovery or connection to finish:
|
|
209
|
+
|
|
210
|
+
- Enabled MCP servers connect in the background at startup. Your first prompt waits up to 10 seconds for servers that expose direct tools.
|
|
211
|
+
- Codemode waits for the MCP namespaces a script names; `searchTools()` and `ALL_TOOLS` wait for all enabled servers. Tool search and resource tools wait for discovery too.
|
|
212
|
+
- `/mcp` manages servers, and `/mcp login`, `/mcp logout`, and `/mcp reconnect` accept an optional server name. If lazy discovery fails, autocomplete falls back to currently known commands.
|
|
213
|
+
- Dropped MCP connections reconnect on the next call, and failed connections can be retried with `/mcp reconnect`. Web-access batches report a tool error when every item fails and keep completed items on partial success.
|
|
214
|
+
|
|
215
|
+
MCP `timeout` is an inactivity limit in seconds (default 60 seconds) that resets on progress rather than a fixed total deadline. See [MCP servers](/mcp-servers) for details.
|
|
216
|
+
|
|
217
|
+
<div id="interactive-callback-isolation" />
|
|
218
|
+
|
|
219
|
+
## Responsive UI and crash recovery
|
|
220
|
+
|
|
221
|
+
In default interactive mode, Atomic runs extensions in a separate background worker process so slow or stuck extension code does not freeze keyboard input or terminal spinners.
|
|
222
|
+
|
|
223
|
+
### Cancellation and Ctrl+C safety
|
|
224
|
+
|
|
225
|
+
- **Escape** asks the active turn or tool to cancel cooperatively and waits until it finishes. Escape never kills the worker process, so in-flight tool state is not discarded mid-operation.
|
|
226
|
+
- **Ctrl+C while custom UI is open:**
|
|
227
|
+
- If a `ctx.ui.custom()` component sets `{ handlesCtrlC: true }`, it receives the first `Ctrl+C` press for its own skip, close, or cancel behavior. If the same component still holds input on a second `Ctrl+C`, Atomic closes it so no extension can trap your keyboard.
|
|
228
|
+
- Without `handlesCtrlC: true`, the first `Ctrl+C` closes the component immediately, resolves its `ctx.ui.custom()` promise with `undefined`, and returns focus to the editor while the session keeps running.
|
|
229
|
+
- Set `handlesCtrlC: true` whenever your component displays a `ctrl+c` hint. Built-in selectors, dialogs, input forms, and session pickers handle `Ctrl+C` directly.
|
|
230
|
+
|
|
231
|
+
```typescript
|
|
232
|
+
await ctx.ui.custom<string | undefined>(
|
|
233
|
+
(tui, theme, keybindings, done) => new PromptCard(tui, theme, done),
|
|
234
|
+
{ overlay: true, handlesCtrlC: true },
|
|
235
|
+
);
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
- **Ctrl+C when the worker is hung:** If the extension worker stops responding, an abort or restart waits longer than one second, or a prior restart failed, `Ctrl+C` terminates and restarts the worker (taking priority over custom UI bindings). Both `Escape` and `Ctrl+C` match physical keys, so rebinding `app.clear` cannot disable recovery.
|
|
239
|
+
|
|
240
|
+
### Automatic restart and queued messages
|
|
241
|
+
|
|
242
|
+
If the extension worker crashes unexpectedly, Atomic closes open custom UI and attempts one automatic restart. A clean restart stays quiet unless messages were still queued:
|
|
243
|
+
|
|
244
|
+
- Queued main-chat messages return to the editor (steering messages first) with a warning such as `Engine restarted; 2 queued messages weren't sent and are back in the editor`.
|
|
245
|
+
- Queued subagent messages confirmed not yet sent return ahead of any draft in that subagent's editor (immediately if open and writable, or when reopened), or print a notice if the subagent view is read-only. They are never placed into the main chat editor or sent twice.
|
|
246
|
+
- Drafts that never started are restored verbatim; work that already started is not retried automatically. If a saved tool call has no recorded result, reopening the session marks its result unavailable. **Inspect affected files or external systems before retrying because the tool may already have had side effects.**
|
|
247
|
+
- If you spawn child processes from an extension, derive an explicit `env` object from `process.env`; internal startup variables are not exported there.
|
|
248
|
+
|
|
249
|
+
### UI APIs in default interactive mode
|
|
250
|
+
|
|
251
|
+
Dialogs, `ctx.ui.custom()` components, and widget factories run inside the extension worker and forward rendered output to the terminal. Values returned from `ctx.ui.custom()` must be JSON-serializable.
|
|
252
|
+
|
|
253
|
+
APIs that require synchronous access inside the terminal UI process (`ctx.ui.onTerminalInput`, synchronous `ctx.ui.getEditorText`, `ctx.ui.setEditorComponent`, `ctx.ui.addAutocompleteProvider`, `ctx.ui.setHeader`, and `ctx.ui.setFooter`) do not run in default interactive mode and emit a warning instead. For interactive pickers and structured forms that work natively in default interactive mode, use `ctx.ui.hostSessionPicker()` and `ctx.ui.hostInputForm()`. See [Host-native pickers and forms](/extensions/ui#host-native-pickers-and-forms).
|
|
256
254
|
|
|
257
255
|
## Moved sections
|
|
258
256
|
|
|
259
|
-
<
|
|
260
|
-
|
|
261
|
-
<
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
<
|
|
266
|
-
|
|
267
|
-
<
|
|
268
|
-
|
|
269
|
-
<
|
|
270
|
-
|
|
271
|
-
<
|
|
272
|
-
|
|
273
|
-
<
|
|
274
|
-
|
|
275
|
-
<
|
|
276
|
-
<a id="renderresult" />
|
|
277
|
-
<a id="keybinding-hints" />
|
|
278
|
-
<a id="best-practices" />
|
|
279
|
-
<a id="fallback" />
|
|
280
|
-
|
|
281
|
-
- Extension structure, state management, custom tools, overrides, remote execution, truncation, and custom rendering moved to [Writing extensions](/extensions/authoring).
|
|
282
|
-
|
|
283
|
-
<a id="events" />
|
|
284
|
-
<a id="lifecycle-overview" />
|
|
285
|
-
<a id="startup-events" />
|
|
286
|
-
<a id="project_trust" />
|
|
287
|
-
<a id="resource-events" />
|
|
288
|
-
<a id="resources_discover" />
|
|
289
|
-
<a id="session-events" />
|
|
290
|
-
<a id="session_start" />
|
|
291
|
-
<a id="session_info_changed" />
|
|
292
|
-
<a id="session_before_switch" />
|
|
293
|
-
<a id="session_before_fork" />
|
|
294
|
-
<a id="session_before_compact-/-session_compact-/-session_compact_failed" />
|
|
295
|
-
<a id="session_before_tree-/-session_tree" />
|
|
296
|
-
<a id="session_shutdown" />
|
|
297
|
-
<a id="agent-events" />
|
|
298
|
-
<a id="before_agent_start" />
|
|
299
|
-
<a id="agent_start-/-agent_end-/-agent_before_settle-/-agent_settled" />
|
|
300
|
-
<a id="ui_prompt_start-/-ui_prompt_end" />
|
|
301
|
-
<a id="turn_start-/-turn_end" />
|
|
302
|
-
<a id="message_start-/-message_update-/-message_end" />
|
|
303
|
-
<a id="tool_execution_start-/-tool_execution_update-/-tool_execution_end" />
|
|
304
|
-
<a id="context" />
|
|
305
|
-
<a id="context_with_system" />
|
|
306
|
-
<a id="before_provider_headers" />
|
|
307
|
-
<a id="before_provider_request" />
|
|
308
|
-
<a id="after_provider_response" />
|
|
309
|
-
<a id="model-events" />
|
|
310
|
-
<a id="model_select" />
|
|
311
|
-
<a id="thinking_level_select" />
|
|
312
|
-
<a id="tool-events" />
|
|
313
|
-
<a id="tool_call" />
|
|
314
|
-
<a id="typing-custom-tool-input" />
|
|
315
|
-
<a id="tool_result" />
|
|
316
|
-
<a id="user-bash-events" />
|
|
317
|
-
<a id="user_bash" />
|
|
318
|
-
<a id="input-events" />
|
|
319
|
-
<a id="input" />
|
|
257
|
+
<div id="session-scoped-in-memory-state" />
|
|
258
|
+
|
|
259
|
+
<div id="custom-rendering" />
|
|
260
|
+
|
|
261
|
+
- Extension structure, state management, custom tools, overrides, remote execution, truncation, and custom rendering moved to [Write an extension](/extensions/authoring).
|
|
262
|
+
|
|
263
|
+
<div id="before_agent_start" />
|
|
264
|
+
|
|
265
|
+
<div id="message_start--message_update--message_end" />
|
|
266
|
+
|
|
267
|
+
<div id="before_provider_request" />
|
|
268
|
+
|
|
269
|
+
<div id="thinking_level_select" />
|
|
270
|
+
|
|
271
|
+
<div id="tool-call-events" />
|
|
272
|
+
|
|
273
|
+
<div id="user_bash" />
|
|
320
274
|
|
|
321
275
|
- Lifecycle diagrams, event payloads, and return contracts moved to [Extension events](/extensions/events).
|
|
322
276
|
|
|
323
|
-
<
|
|
324
|
-
|
|
325
|
-
<
|
|
326
|
-
<a id="manual-dismissal-with-abortsignal" />
|
|
327
|
-
<a id="widgets-status-and-footer" />
|
|
328
|
-
<a id="autocomplete-providers" />
|
|
329
|
-
<a id="custom-components" />
|
|
330
|
-
<a id="overlay-mode-experimental" />
|
|
331
|
-
<a id="custom-editor" />
|
|
332
|
-
<a id="message-rendering" />
|
|
333
|
-
<a id="theme-colors" />
|
|
277
|
+
<div id="widgets-status-and-footer" />
|
|
278
|
+
|
|
279
|
+
<div id="autocomplete-providers" />
|
|
334
280
|
|
|
335
281
|
- Dialogs, widgets, autocomplete providers, custom components, overlays, custom editors, and theme helpers moved to [Extension UI](/extensions/ui).
|
|
336
282
|
|
|
337
|
-
<
|
|
338
|
-
<a id="ctx-ui" />
|
|
339
|
-
<a id="ctx-hasui" />
|
|
340
|
-
<a id="ctx-cwd" />
|
|
341
|
-
<a id="ctx-isprojecttrusted" />
|
|
342
|
-
<a id="ctx-sessionmanager" />
|
|
343
|
-
<a id="ctx-modelregistry-/-ctx-model-/-ctx-scopedmodels" />
|
|
344
|
-
<a id="ctx-signal" />
|
|
345
|
-
<a id="ctx-isidle-/-ctx-abort-/-ctx-haspendingmessages" />
|
|
346
|
-
<a id="ctx-isprojecttrusted-2" />
|
|
347
|
-
<a id="ctx-shutdown" />
|
|
348
|
-
<a id="ctx-getcontextusage" />
|
|
349
|
-
<a id="ctx-compact" />
|
|
350
|
-
<a id="ctx-getsystemprompt" />
|
|
351
|
-
<a id="ctx-getskillcatalog" />
|
|
352
|
-
<a id="extensioncommandcontext" />
|
|
353
|
-
<a id="ctx-waitforidle" />
|
|
354
|
-
<a id="ctx-newsession-options" />
|
|
355
|
-
<a id="ctx-fork-entryid-options" />
|
|
356
|
-
<a id="ctx-navigatetree-targetid-options" />
|
|
357
|
-
<a id="ctx-switchsession-sessionid-options" />
|
|
358
|
-
<a id="session-replacement-lifecycle-and-footguns" />
|
|
359
|
-
<a id="ctx-reload" />
|
|
360
|
-
<a id="extensionapi-methods" />
|
|
361
|
-
<a id="pi-on-event-handler" />
|
|
362
|
-
<a id="pi-registertool-definition" />
|
|
363
|
-
<a id="built-in-tool-prompt-contributions" />
|
|
364
|
-
<a id="pi-sendmessage-message-options" />
|
|
365
|
-
<a id="pi-sendmessages-messages-options" />
|
|
366
|
-
<a id="pi-sendusermessage-content-options" />
|
|
367
|
-
<a id="pi-appendentry-customtype-data" />
|
|
368
|
-
<a id="pi-registerentryrenderer-customtype-renderer" />
|
|
369
|
-
<a id="pi-setsessionname-name" />
|
|
370
|
-
<a id="pi-getsessionname" />
|
|
371
|
-
<a id="pi-setlabel-entryid-label" />
|
|
372
|
-
<a id="pi-registercommand-name-options" />
|
|
373
|
-
<a id="pi-getcommands" />
|
|
374
|
-
<a id="pi-registermessagerenderer-customtype-renderer" />
|
|
375
|
-
<a id="pi-registermarkdowntransformer-transformer" />
|
|
376
|
-
<a id="pi-registershortcut-shortcut-options" />
|
|
377
|
-
<a id="pi-registerflag-name-options" />
|
|
378
|
-
<a id="pi-registeragentpanelsource-source" />
|
|
379
|
-
<a id="pi-exec-command-args-options" />
|
|
380
|
-
<a id="pi-getactivetools-/-pi-getalltools-/-pi-setactivetools-names" />
|
|
381
|
-
<a id="pi-setmodel-model" />
|
|
382
|
-
<a id="pi-getthinkinglevel-/-pi-setthinkinglevel-level" />
|
|
383
|
-
<a id="pi-events" />
|
|
384
|
-
<a id="native-providers" />
|
|
385
|
-
<a id="pi-registerprovider-name-config" />
|
|
386
|
-
<a id="pi-unregisterprovider-name" />
|
|
387
|
-
<a id="pi-registermcpserver-name-config" />
|
|
388
|
-
<a id="error-handling" />
|
|
283
|
+
<div id="ctxsignal" />
|
|
389
284
|
|
|
390
|
-
|
|
285
|
+
<div id="pigetcommands" />
|
|
391
286
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
- Runnable extension examples moved to [Extension examples](/extensions/examples).
|
|
287
|
+
- `ExtensionContext`, `ExtensionCommandContext`, `ExtensionAPI` methods, and error handling moved to [Extension API reference](/extensions/api-reference).
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
3
|
-
|
|
2
|
+
title: "Authenticate a provider"
|
|
3
|
+
sidebarTitle: "Authentication"
|
|
4
|
+
description: "Connect Atomic to a model provider using a subscription login, the CLI auth command, or an API key."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# Authentication
|
|
7
|
-
|
|
8
7
|
**Outcome:** Atomic is connected to a model provider and `/model` lists selectable models.
|
|
9
8
|
|
|
10
|
-
**Prerequisites:** [
|
|
9
|
+
**Prerequisites:** [Install Atomic](/getting-started/installation) is complete.
|
|
11
10
|
|
|
12
|
-
##
|
|
11
|
+
## Choose an authentication method
|
|
13
12
|
|
|
14
|
-
Connect with a subscription login (`/login`) or an API key (via an environment variable or `~/.atomic/agent/auth.json`).
|
|
13
|
+
Connect with a subscription login (`/login`), the shell login command (`atomic auth login`), or an API key (via an environment variable or `~/.atomic/agent/auth.json`).
|
|
15
14
|
|
|
16
|
-
###
|
|
15
|
+
### Sign in with a subscription
|
|
17
16
|
|
|
18
17
|
Start Atomic and run `/login`:
|
|
19
18
|
|
|
@@ -25,9 +24,21 @@ atomic
|
|
|
25
24
|
/login
|
|
26
25
|
```
|
|
27
26
|
|
|
28
|
-
Choose **Use a subscription**, then select your provider (such as Claude Pro/Max, ChatGPT Plus/Pro (Codex), GitHub Copilot, OpenRouter, Kimi Code, or xAI).
|
|
27
|
+
Choose **Use a subscription**, then select your provider (such as Claude Pro/Max, ChatGPT Plus/Pro (Codex), GitHub Copilot, OpenRouter, Kimi Code, or xAI). You can also pass a provider name directly, such as `/login anthropic` or `/login openai`.
|
|
28
|
+
|
|
29
|
+
On remote or SSH sessions where the browser cannot reach Atomic's local callback port, paste the final redirect URL or authorization code into the prompt instead. Choosing Amazon Bedrock inside `/login` opens a guided Bedrock setup dialog rather than a plain API-key prompt.
|
|
30
|
+
|
|
31
|
+
### Sign in from the shell
|
|
32
|
+
|
|
33
|
+
Authenticate from your terminal without starting an interactive session:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
atomic auth login anthropic
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Pass `--no-browser` on SSH or headless machines to use a non-browser flow such as a device code, or pass `--api-key` to store an API key without echoing it. See [Credential commands](/reference/cli#credential-commands).
|
|
29
40
|
|
|
30
|
-
###
|
|
41
|
+
### Use an API key
|
|
31
42
|
|
|
32
43
|
Export an API key before launching Atomic:
|
|
33
44
|
|
|
@@ -36,7 +47,7 @@ export ANTHROPIC_API_KEY=sk-ant-...
|
|
|
36
47
|
atomic
|
|
37
48
|
```
|
|
38
49
|
|
|
39
|
-
Or
|
|
50
|
+
Or save a key in `~/.atomic/agent/auth.json` (written with owner-only `0600` permissions) by running `/login`, choosing **Use an API key**, and selecting a provider.
|
|
40
51
|
|
|
41
52
|
See [Providers](/providers) for all supported providers, environment variables, and cloud setup for Amazon Bedrock, Google Vertex AI, and Azure.
|
|
42
53
|
|
|
@@ -45,13 +56,15 @@ See [Providers](/providers) for all supported providers, environment variables,
|
|
|
45
56
|
1. Start Atomic and run `/model`. Confirm models appear for your provider with an active selection marked. If the list is empty, rerun `/login` or check that your API key is exported in the same shell.
|
|
46
57
|
2. Select a model and send a test prompt such as `Reply with hello.` A listed model or stored credential does not prove connectivity or quota; a live response confirms access.
|
|
47
58
|
|
|
48
|
-
### How `/login`
|
|
59
|
+
### How `/login` and `/logout` work
|
|
49
60
|
|
|
50
61
|
- `/login` opens **Select authentication method:** with **Use a subscription** and **Use an API key**.
|
|
51
|
-
-
|
|
62
|
+
- `/login <provider>` jumps straight to sign-in when the provider offers one method, opens the method selector when both subscription and API key exist, or prefills the search filter otherwise.
|
|
63
|
+
- Provider status shows whether credentials exist (stored in `auth.json`, set in an environment variable, passed via `--api-key`, or configured in `models.json`); it does not test live connectivity.
|
|
52
64
|
- OAuth sign-ins not backed by a subscription are labeled **account**.
|
|
53
65
|
- Cancelling a sign-in returns to the previous menu.
|
|
66
|
+
- `/logout [provider]` removes only credentials stored in `~/.atomic/agent/auth.json`. It does not clear environment variables or `models.json` entries.
|
|
54
67
|
|
|
55
68
|
## Next step
|
|
56
69
|
|
|
57
|
-
Continue to [
|
|
70
|
+
Continue to [Run your first session](/getting-started/first-session).
|