@bastani/atomic 0.9.38-alpha.5 → 0.9.38-alpha.7
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 +70 -0
- package/README.md +8 -6
- package/dist/builtin/intercom/CHANGELOG.md +9 -0
- package/dist/builtin/intercom/broker/broker.ts +6 -4
- package/dist/builtin/intercom/broker/delivered-message-cache.ts +50 -4
- package/dist/builtin/intercom/broker/send-handler.ts +6 -4
- package/dist/builtin/intercom/index.bundle.mjs +78 -33
- package/dist/builtin/intercom/package.json +2 -2
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +6 -0
- package/dist/builtin/subagents/package.json +3 -3
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +140 -145
- package/dist/builtin/web-access/CHANGELOG.md +7 -0
- package/dist/builtin/web-access/index.bundle.mjs +53 -15
- package/dist/builtin/web-access/package.json +2 -2
- package/dist/builtin/workflows/CHANGELOG.md +48 -0
- package/dist/builtin/workflows/builtin/{chunk-q7dx7kh7.js → chunk-85mx6wcf.js} +6 -6
- package/dist/builtin/workflows/builtin/{chunk-xg7kkgf8.js → chunk-8kkv04hz.js} +15 -15
- package/dist/builtin/workflows/builtin/{chunk-na3wpwzh.js → chunk-8x61e0s7.js} +396 -363
- package/dist/builtin/workflows/builtin/{chunk-qrrkfg9v.js → chunk-y45tkftg.js} +7 -7
- package/dist/builtin/workflows/builtin/goal.js +2 -2
- package/dist/builtin/workflows/builtin/index.js +4 -4
- package/dist/builtin/workflows/builtin/open-claude-design.js +1 -1
- package/dist/builtin/workflows/builtin/ralph.js +2 -2
- package/dist/builtin/workflows/package.json +2 -2
- package/dist/builtin/workflows/src/authoring.d.ts +3 -8
- package/dist/builtin/workflows/src/durable/journal/conformance.d.ts +9 -1
- package/dist/builtin/workflows/src/durable/journal/internal.d.ts +1 -0
- package/dist/builtin/workflows/src/durable/journal/lease-expiry.d.ts +2 -0
- package/dist/builtin/workflows/src/durable/journal/memory-run-journal.d.ts +9 -1
- package/dist/builtin/workflows/src/durable/journal/resolution.d.ts +19 -8
- package/dist/builtin/workflows/src/durable/journal/sql-run-journal.d.ts +45 -0
- package/dist/builtin/workflows/src/durable/journal/sqlite-run-journal.d.ts +5 -47
- package/dist/builtin/workflows/src/durable/journal/types.d.ts +9 -114
- package/dist/builtin/workflows/src/durable/journal/values.d.ts +2 -0
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +6963 -6181
- package/dist/builtin/workflows/src/index.js +9078 -8395
- package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +8 -8
- package/dist/builtin/workflows/src/shared/authoring-contract-ui.d.ts +0 -14
- package/dist/cli/args.d.ts +3 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +35 -5
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/session-picker.d.ts +2 -2
- package/dist/cli/session-picker.d.ts.map +1 -1
- package/dist/cli/session-picker.js +5 -5
- package/dist/cli/session-picker.js.map +1 -1
- package/dist/core/agent-session-auto-compaction.d.ts +1 -1
- package/dist/core/agent-session-auto-compaction.d.ts.map +1 -1
- package/dist/core/agent-session-auto-compaction.js +2 -2
- package/dist/core/agent-session-auto-compaction.js.map +1 -1
- package/dist/core/agent-session-bash.d.ts +2 -3
- package/dist/core/agent-session-bash.d.ts.map +1 -1
- package/dist/core/agent-session-bash.js +18 -10
- package/dist/core/agent-session-bash.js.map +1 -1
- package/dist/core/agent-session-boundaries.d.ts +6 -6
- package/dist/core/agent-session-boundaries.d.ts.map +1 -1
- package/dist/core/agent-session-boundaries.js +22 -22
- package/dist/core/agent-session-boundaries.js.map +1 -1
- package/dist/core/agent-session-compaction.js +2 -2
- package/dist/core/agent-session-compaction.js.map +1 -1
- package/dist/core/agent-session-custom-message-commit.d.ts.map +1 -1
- package/dist/core/agent-session-custom-message-commit.js +10 -12
- package/dist/core/agent-session-custom-message-commit.js.map +1 -1
- package/dist/core/agent-session-events.d.ts.map +1 -1
- package/dist/core/agent-session-events.js +26 -14
- package/dist/core/agent-session-events.js.map +1 -1
- package/dist/core/agent-session-export.js +1 -1
- package/dist/core/agent-session-export.js.map +1 -1
- package/dist/core/agent-session-extension-bindings.d.ts +2 -2
- package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
- package/dist/core/agent-session-extension-bindings.js +75 -59
- package/dist/core/agent-session-extension-bindings.js.map +1 -1
- package/dist/core/agent-session-message-queue.d.ts +2 -2
- package/dist/core/agent-session-message-queue.d.ts.map +1 -1
- package/dist/core/agent-session-message-queue.js +17 -8
- package/dist/core/agent-session-message-queue.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +15 -15
- package/dist/core/agent-session-methods.d.ts.map +1 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session-models.d.ts +2 -2
- package/dist/core/agent-session-models.d.ts.map +1 -1
- package/dist/core/agent-session-models.js +59 -42
- package/dist/core/agent-session-models.js.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.d.ts +4 -4
- package/dist/core/agent-session-persistent-custom-messages.d.ts.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.js +16 -17
- package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
- package/dist/core/agent-session-prompt.d.ts.map +1 -1
- package/dist/core/agent-session-prompt.js +6 -8
- package/dist/core/agent-session-prompt.js.map +1 -1
- package/dist/core/agent-session-retry.d.ts.map +1 -1
- package/dist/core/agent-session-retry.js +17 -15
- package/dist/core/agent-session-retry.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +7 -8
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +88 -100
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +1 -1
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +2 -2
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session-summary.js +1 -1
- package/dist/core/agent-session-summary.js.map +1 -1
- package/dist/core/agent-session-tree.d.ts +1 -1
- package/dist/core/agent-session-tree.d.ts.map +1 -1
- package/dist/core/agent-session-tree.js +7 -7
- package/dist/core/agent-session-tree.js.map +1 -1
- package/dist/core/cache-warmer.js +1 -1
- package/dist/core/cache-warmer.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +1 -4
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +0 -4
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/pi-summary-fallback.d.ts.map +1 -1
- package/dist/core/compaction/pi-summary-fallback.js +1 -3
- package/dist/core/compaction/pi-summary-fallback.js.map +1 -1
- package/dist/core/export-html/index.js +1 -1
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/template-js/entries-navigation.js +1 -1
- package/dist/core/export-html/template.js +1 -1
- package/dist/core/extensions/api-types.d.ts +12 -12
- package/dist/core/extensions/api-types.d.ts.map +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/context-types.d.ts +4 -2
- package/dist/core/extensions/context-types.d.ts.map +1 -1
- package/dist/core/extensions/context-types.js.map +1 -1
- package/dist/core/extensions/extension-work.d.ts +1 -0
- package/dist/core/extensions/extension-work.d.ts.map +1 -1
- package/dist/core/extensions/extension-work.js +5 -1
- package/dist/core/extensions/extension-work.js.map +1 -1
- package/dist/core/extensions/loader-api.d.ts.map +1 -1
- package/dist/core/extensions/loader-api.js +40 -42
- package/dist/core/extensions/loader-api.js.map +1 -1
- package/dist/core/extensions/loader-host-modules.d.ts +1 -1
- package/dist/core/extensions/loader-host-modules.d.ts.map +1 -1
- package/dist/core/extensions/loader-host-modules.js +6 -2
- package/dist/core/extensions/loader-host-modules.js.map +1 -1
- package/dist/core/extensions/loader-rollback.d.ts.map +1 -1
- package/dist/core/extensions/loader-rollback.js +1 -0
- package/dist/core/extensions/loader-rollback.js.map +1 -1
- package/dist/core/extensions/loader-virtual-modules.d.ts.map +1 -1
- package/dist/core/extensions/loader-virtual-modules.js +1 -0
- package/dist/core/extensions/loader-virtual-modules.js.map +1 -1
- package/dist/core/extensions/runner-context.d.ts +1 -0
- package/dist/core/extensions/runner-context.d.ts.map +1 -1
- package/dist/core/extensions/runner-context.js +10 -3
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/extensions/runner-handlers.d.ts +1 -1
- package/dist/core/extensions/runner-handlers.d.ts.map +1 -1
- package/dist/core/extensions/runner-handlers.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +3 -2
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +20 -12
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/runtime-types.d.ts +7 -7
- package/dist/core/extensions/runtime-types.d.ts.map +1 -1
- package/dist/core/extensions/runtime-types.js.map +1 -1
- package/dist/core/extensions/session-events.d.ts +5 -5
- package/dist/core/extensions/session-events.d.ts.map +1 -1
- package/dist/core/extensions/session-events.js.map +1 -1
- package/dist/core/fast-model-routing.d.ts.map +1 -1
- package/dist/core/fast-model-routing.js +1 -0
- package/dist/core/fast-model-routing.js.map +1 -1
- package/dist/core/intercom-runtime-group.js +1 -1
- package/dist/core/intercom-runtime-group.js.map +1 -1
- package/dist/core/model-config.d.ts +765 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +46 -24
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-resolver-defaults.js +1 -1
- package/dist/core/model-resolver-defaults.js.map +1 -1
- package/dist/core/provider-attribution.js +1 -1
- package/dist/core/provider-attribution.js.map +1 -1
- package/dist/core/resource-loader-reload.js +1 -1
- package/dist/core/resource-loader-reload.js.map +1 -1
- package/dist/core/resource-loader-types.d.ts +1 -1
- package/dist/core/resource-loader-types.d.ts.map +1 -1
- package/dist/core/resource-loader-types.js.map +1 -1
- package/dist/core/sdk-types.d.ts +4 -0
- package/dist/core/sdk-types.d.ts.map +1 -1
- package/dist/core/sdk-types.js.map +1 -1
- package/dist/core/sdk.d.ts +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +50 -20
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-lifecycle-work.d.ts +3 -0
- package/dist/core/session-lifecycle-work.d.ts.map +1 -1
- package/dist/core/session-lifecycle-work.js +2 -0
- package/dist/core/session-lifecycle-work.js.map +1 -1
- package/dist/core/session-manager-archive.d.ts +2 -16
- package/dist/core/session-manager-archive.d.ts.map +1 -1
- package/dist/core/session-manager-archive.js +8 -104
- package/dist/core/session-manager-archive.js.map +1 -1
- package/dist/core/session-manager-core.d.ts +53 -51
- package/dist/core/session-manager-core.d.ts.map +1 -1
- package/dist/core/session-manager-core.js +547 -307
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-entries.d.ts.map +1 -1
- package/dist/core/session-manager-entries.js +5 -10
- package/dist/core/session-manager-entries.js.map +1 -1
- package/dist/core/session-manager-errors.d.ts +10 -0
- package/dist/core/session-manager-errors.d.ts.map +1 -0
- package/dist/core/session-manager-errors.js +27 -0
- package/dist/core/session-manager-errors.js.map +1 -0
- package/dist/core/session-manager-list.d.ts +1 -0
- package/dist/core/session-manager-list.d.ts.map +1 -1
- package/dist/core/session-manager-list.js +21 -14
- package/dist/core/session-manager-list.js.map +1 -1
- package/dist/core/session-manager-storage.d.ts +3 -13
- package/dist/core/session-manager-storage.d.ts.map +1 -1
- package/dist/core/session-manager-storage.js +28 -69
- package/dist/core/session-manager-storage.js.map +1 -1
- package/dist/core/session-manager-types.d.ts +3 -11
- package/dist/core/session-manager-types.d.ts.map +1 -1
- package/dist/core/session-manager-types.js.map +1 -1
- package/dist/core/session-manager-validation.d.ts.map +1 -1
- package/dist/core/session-manager-validation.js +3 -2
- package/dist/core/session-manager-validation.js.map +1 -1
- package/dist/core/session-manager.d.ts +2 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +2 -1
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-mutation-queue.d.ts +3 -0
- package/dist/core/session-mutation-queue.d.ts.map +1 -0
- package/dist/core/session-mutation-queue.js +14 -0
- package/dist/core/session-mutation-queue.js.map +1 -0
- package/dist/core/session-resume-args.d.ts +4 -0
- package/dist/core/session-resume-args.d.ts.map +1 -0
- package/dist/core/session-resume-args.js +9 -0
- package/dist/core/session-resume-args.js.map +1 -0
- package/dist/core/session-storage.d.ts +26 -0
- package/dist/core/session-storage.d.ts.map +1 -0
- package/dist/core/session-storage.js +155 -0
- package/dist/core/session-storage.js.map +1 -0
- package/dist/core/session-store-list.d.ts +4 -0
- package/dist/core/session-store-list.d.ts.map +1 -0
- package/dist/core/session-store-list.js +28 -0
- package/dist/core/session-store-list.js.map +1 -0
- package/dist/core/settings-manager-basic-accessors.d.ts +0 -1
- package/dist/core/settings-manager-basic-accessors.d.ts.map +1 -1
- package/dist/core/settings-manager-basic-accessors.js +0 -5
- package/dist/core/settings-manager-basic-accessors.js.map +1 -1
- package/dist/core/settings-merge.d.ts.map +1 -1
- package/dist/core/settings-merge.js +8 -2
- package/dist/core/settings-merge.js.map +1 -1
- package/dist/core/settings-schema.d.ts +74 -8
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +29 -29
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/storage/errors.d.ts +1 -0
- package/dist/core/storage/errors.d.ts.map +1 -1
- package/dist/core/storage/errors.js.map +1 -1
- package/dist/core/storage/index.d.ts +5 -1
- package/dist/core/storage/index.d.ts.map +1 -1
- package/dist/core/storage/index.js +4 -1
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/node-sqlite.d.ts +2 -0
- package/dist/core/storage/node-sqlite.d.ts.map +1 -1
- package/dist/core/storage/node-sqlite.js +47 -6
- package/dist/core/storage/node-sqlite.js.map +1 -1
- package/dist/core/storage/provider.d.ts +58 -0
- package/dist/core/storage/provider.d.ts.map +1 -0
- package/dist/core/storage/provider.js +243 -0
- package/dist/core/storage/provider.js.map +1 -0
- package/dist/core/storage/run-journal.d.ts +93 -0
- package/dist/core/storage/run-journal.d.ts.map +1 -0
- package/dist/core/storage/run-journal.js +15 -0
- package/dist/core/storage/run-journal.js.map +1 -0
- package/dist/core/storage/selection.d.ts +16 -0
- package/dist/core/storage/selection.d.ts.map +1 -0
- package/dist/core/storage/selection.js +87 -0
- package/dist/core/storage/selection.js.map +1 -0
- package/dist/core/storage/session/jsonl-session-store.d.ts +11 -2
- package/dist/core/storage/session/jsonl-session-store.d.ts.map +1 -1
- package/dist/core/storage/session/jsonl-session-store.js +127 -54
- package/dist/core/storage/session/jsonl-session-store.js.map +1 -1
- package/dist/core/storage/session/legacy-format.d.ts +18 -0
- package/dist/core/storage/session/legacy-format.d.ts.map +1 -0
- package/dist/core/storage/session/legacy-format.js +63 -0
- package/dist/core/storage/session/legacy-format.js.map +1 -0
- package/dist/core/storage/session/memory-session-store.d.ts +3 -1
- package/dist/core/storage/session/memory-session-store.d.ts.map +1 -1
- package/dist/core/storage/session/memory-session-store.js +9 -2
- package/dist/core/storage/session/memory-session-store.js.map +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +4 -1
- package/dist/core/storage/session/sql-session-store.d.ts.map +1 -1
- package/dist/core/storage/session/sql-session-store.js +25 -6
- package/dist/core/storage/session/sql-session-store.js.map +1 -1
- package/dist/core/storage/session/types.d.ts +4 -0
- package/dist/core/storage/session/types.d.ts.map +1 -1
- package/dist/core/storage/session/types.js.map +1 -1
- package/dist/core/storage/session/validation.js +1 -1
- package/dist/core/storage/session/validation.js.map +1 -1
- package/dist/core/storage/testing.d.ts +2 -0
- package/dist/core/storage/testing.d.ts.map +1 -1
- package/dist/core/storage/testing.js +45 -0
- package/dist/core/storage/testing.js.map +1 -1
- package/dist/core/tasks/completion.d.ts.map +1 -1
- package/dist/core/tasks/completion.js +2 -4
- package/dist/core/tasks/completion.js.map +1 -1
- package/dist/core/tools/bash-session-environment.d.ts.map +1 -1
- package/dist/core/tools/bash-session-environment.js +0 -2
- package/dist/core/tools/bash-session-environment.js.map +1 -1
- package/dist/core/tools/read-url.d.ts.map +1 -1
- package/dist/core/tools/read-url.js +6 -1
- package/dist/core/tools/read-url.js.map +1 -1
- package/dist/core/tools/todos-model.js +3 -3
- package/dist/core/tools/todos-model.js.map +1 -1
- package/dist/core/tools/todos-mutations.js +2 -2
- package/dist/core/tools/todos-mutations.js.map +1 -1
- package/dist/core/tools/todos-render.js +1 -1
- package/dist/core/tools/todos-render.js.map +1 -1
- package/dist/core/tools/todos-storage.js +2 -2
- package/dist/core/tools/todos-storage.js.map +1 -1
- package/dist/extensions/codemode/execute.d.ts.map +1 -1
- package/dist/extensions/codemode/execute.js +14 -1
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +1 -1
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/herdr/index.d.ts.map +1 -1
- package/dist/extensions/herdr/index.js +6 -8
- package/dist/extensions/herdr/index.js.map +1 -1
- package/dist/extensions/mcp/index.js +1 -1
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/tools.d.ts.map +1 -1
- package/dist/extensions/mcp/tools.js +6 -1
- package/dist/extensions/mcp/tools.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/main-session.d.ts +12 -2
- package/dist/main-session.d.ts.map +1 -1
- package/dist/main-session.js +148 -53
- package/dist/main-session.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +97 -42
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host.d.ts +3 -1
- package/dist/modes/interactive/components/chat-session-host.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host.js +16 -7
- package/dist/modes/interactive/components/chat-session-host.js.map +1 -1
- package/dist/modes/interactive/components/extension-input.d.ts +1 -1
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-input.js +2 -2
- package/dist/modes/interactive/components/extension-input.js.map +1 -1
- package/dist/modes/interactive/components/host-session-picker.js +1 -1
- package/dist/modes/interactive/components/host-session-picker.js.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.js +4 -1
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-delete.d.ts +1 -1
- package/dist/modes/interactive/components/session-selector-delete.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector-delete.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-list.d.ts +12 -9
- package/dist/modes/interactive/components/session-selector-list.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector-list.js +27 -25
- package/dist/modes/interactive/components/session-selector-list.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts +8 -4
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +27 -18
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-component.d.ts +5 -1
- package/dist/modes/interactive/components/tree-selector-component.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector-component.js +20 -3
- package/dist/modes/interactive/components/tree-selector-component.js.map +1 -1
- package/dist/modes/interactive/interactive-bash-compact.js +1 -1
- package/dist/modes/interactive/interactive-bash-compact.js.map +1 -1
- package/dist/modes/interactive/interactive-deferred-startup.js +2 -2
- package/dist/modes/interactive/interactive-deferred-startup.js.map +1 -1
- package/dist/modes/interactive/interactive-editor-actions.js +2 -2
- package/dist/modes/interactive/interactive-editor-actions.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-runtime.js +2 -0
- package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.js +6 -4
- package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-helpers.js +7 -3
- package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.d.ts +5 -5
- package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
- package/dist/modes/interactive/interactive-model-routing.js +12 -7
- package/dist/modes/interactive/interactive-model-routing.js.map +1 -1
- package/dist/modes/interactive/interactive-selectors.js +2 -2
- package/dist/modes/interactive/interactive-selectors.js.map +1 -1
- package/dist/modes/interactive/interactive-session-routing.js +38 -14
- package/dist/modes/interactive/interactive-session-routing.js.map +1 -1
- package/dist/modes/interactive/interactive-slash-commands.js +5 -3
- package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
- package/dist/modes/interactive-engine/create-isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/create-isolated-runtime.js +8 -1
- package/dist/modes/interactive-engine/create-isolated-runtime.js.map +1 -1
- package/dist/modes/interactive-engine/engine-args.d.ts.map +1 -1
- package/dist/modes/interactive-engine/engine-args.js +11 -4
- package/dist/modes/interactive-engine/engine-args.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.js +99 -74
- package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
- package/dist/modes/rpc/rpc-bash-request-owners.js +1 -1
- package/dist/modes/rpc/rpc-bash-request-owners.js.map +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-api.js +2 -2
- package/dist/modes/rpc/rpc-client-api.js.map +1 -1
- package/dist/modes/rpc/rpc-client-process.d.ts +2 -2
- package/dist/modes/rpc/rpc-client-process.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-process.js +20 -7
- package/dist/modes/rpc/rpc-client-process.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +4 -1
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +6 -2
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.js +12 -9
- package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-provider-auth.js +2 -2
- package/dist/modes/rpc/rpc-provider-auth.js.map +1 -1
- package/dist/modes/rpc/rpc-terminal-drain.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-terminal-drain.js +11 -2
- package/dist/modes/rpc/rpc-terminal-drain.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +6 -2
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/utils/canonical-path.d.ts +5 -0
- package/dist/utils/canonical-path.d.ts.map +1 -0
- package/dist/utils/canonical-path.js +26 -0
- package/dist/utils/canonical-path.js.map +1 -0
- package/dist/utils/paths.d.ts +1 -7
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +1 -15
- package/dist/utils/paths.js.map +1 -1
- package/docs/codemode.md +2 -0
- package/docs/compaction.md +2 -2
- package/docs/custom-provider/oauth.md +2 -2
- package/docs/custom-provider/override.md +3 -3
- package/docs/custom-provider/registration.md +7 -7
- package/docs/custom-provider/streaming.md +1 -1
- package/docs/custom-provider.md +5 -5
- package/docs/docs.json +1 -0
- package/docs/environment-variables.md +10 -2
- package/docs/extensions/api-reference.md +40 -19
- package/docs/extensions/authoring.md +1 -1
- package/docs/extensions/events.md +8 -8
- package/docs/extensions.md +2 -2
- package/docs/getting-started/installation.md +1 -2
- package/docs/models/reference.md +2 -0
- package/docs/models-configuration.md +206 -0
- package/docs/models.md +11 -1
- package/docs/providers.md +4 -4
- package/docs/quickstart.md +2 -1
- package/docs/reference/cli.md +7 -3
- package/docs/rpc/protocol.md +10 -4
- package/docs/sdk/reference.md +15 -13
- package/docs/sdk/web-server.md +5 -6
- package/docs/sdk.md +56 -2
- package/docs/session-format.md +35 -28
- package/docs/sessions.md +50 -17
- package/docs/settings.md +44 -7
- package/docs/storage.md +346 -2
- package/docs/usage.md +3 -2
- package/docs/workflows/api-reference.md +80 -16
- package/docs/workflows/operations.md +6 -4
- package/docs/workflows/reliable-design.md +16 -16
- package/examples/extensions/bookmark.ts +2 -2
- package/examples/extensions/handoff.ts +2 -2
- package/examples/extensions/plan-mode/index.ts +15 -13
- package/examples/extensions/preset.ts +8 -8
- package/examples/extensions/session-name.ts +1 -1
- package/examples/extensions/snake.ts +3 -1
- package/examples/extensions/space-invaders.ts +3 -1
- package/examples/extensions/tic-tac-toe.ts +80 -80
- package/examples/sdk/11-sessions.ts +5 -5
- package/examples/sdk/13-session-runtime.ts +7 -7
- package/examples/sdk/README.md +1 -1
- package/npm-shrinkwrap.json +53 -53
- package/package.json +7 -6
- package/schemas/models.schema.json +62 -29
- package/schemas/settings.schema.json +137 -53
- package/dist/builtin/workflows/builtin/chunk-h5fn47y5.js +0 -8
- package/dist/builtin/workflows/src/durable/journal/node-sqlite.d.ts +0 -20
|
@@ -137,6 +137,25 @@ pi.on("tool_result", async (event, ctx) => {
|
|
|
137
137
|
});
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
+
### ctx.sessionSignal
|
|
141
|
+
|
|
142
|
+
A read-only `AbortSignal` for the session lifetime, available even while the agent is idle. It aborts when reload or shutdown begins, **before** Atomic drains admitted commands and emits `session_shutdown`. Unlike `ctx.signal`, it does not end when an agent turn finishes. A replacement session generation receives a new signal.
|
|
143
|
+
|
|
144
|
+
Custom UI mounted through `ctx.ui.custom` is dismissed automatically when the session ends; an explicit caller signal can still dismiss it earlier. Use `ctx.sessionSignal` for other long-running command resources, such as browser windows, instead of waiting for `session_shutdown`, which cannot run until those commands settle. Cancellation should stop waiting for input, not abandon a session write already started: keep awaiting that write so teardown can drain it safely.
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
import { Text } from "@earendil-works/pi-tui";
|
|
148
|
+
|
|
149
|
+
pi.registerCommand("monitor", {
|
|
150
|
+
description: "Keep a monitor open until the session ends",
|
|
151
|
+
handler: async (_args, ctx) => {
|
|
152
|
+
await ctx.ui.custom(() => new Text("Monitoring; reload or quit to close."), {
|
|
153
|
+
signal: ctx.sessionSignal,
|
|
154
|
+
});
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
```
|
|
158
|
+
|
|
140
159
|
### ctx.isIdle() / ctx.abort() / ctx.hasPendingMessages()
|
|
141
160
|
|
|
142
161
|
Control flow helpers.
|
|
@@ -261,13 +280,13 @@ pi.registerCommand("my-cmd", {
|
|
|
261
280
|
Create a new session:
|
|
262
281
|
|
|
263
282
|
```typescript
|
|
264
|
-
const parentSession = ctx.sessionManager.
|
|
283
|
+
const parentSession = ctx.sessionManager.getSessionId();
|
|
265
284
|
const kickoff = "Continue in the replacement session";
|
|
266
285
|
|
|
267
286
|
const result = await ctx.newSession({
|
|
268
287
|
parentSession,
|
|
269
288
|
setup: async (sm) => {
|
|
270
|
-
sm.appendMessage({
|
|
289
|
+
await sm.appendMessage({
|
|
271
290
|
role: "user",
|
|
272
291
|
content: [{ type: "text", text: "Context from previous session..." }],
|
|
273
292
|
timestamp: Date.now(),
|
|
@@ -285,7 +304,7 @@ if (result.cancelled) {
|
|
|
285
304
|
```
|
|
286
305
|
|
|
287
306
|
Options:
|
|
288
|
-
- `parentSession`: parent session
|
|
307
|
+
- `parentSession`: parent session ID to record in the new session header
|
|
289
308
|
- `setup`: mutate the new session's `SessionManager` before `withSession` runs
|
|
290
309
|
- `withSession`: run post-switch work against a fresh replacement-session context. Do not use captured old `pi` / command `ctx`; see [Session replacement lifecycle and footguns](#session-replacement-lifecycle-and-footguns).
|
|
291
310
|
|
|
@@ -334,12 +353,12 @@ Options:
|
|
|
334
353
|
- `replaceInstructions`: If true, `customInstructions` replaces the default prompt instead of being appended
|
|
335
354
|
- `label`: Label to attach to the branch summary entry (or target entry if not summarizing)
|
|
336
355
|
|
|
337
|
-
### ctx.switchSession(
|
|
356
|
+
### ctx.switchSession(sessionId, options?)
|
|
338
357
|
|
|
339
|
-
Switch to a different session
|
|
358
|
+
Switch to a different session by its exact ID:
|
|
340
359
|
|
|
341
360
|
```typescript
|
|
342
|
-
const result = await ctx.switchSession("
|
|
361
|
+
const result = await ctx.switchSession("my-session-id", {
|
|
343
362
|
withSession: async (ctx) => {
|
|
344
363
|
await ctx.sendUserMessage("Resume work in the replacement session");
|
|
345
364
|
},
|
|
@@ -364,7 +383,7 @@ pi.registerCommand("switch", {
|
|
|
364
383
|
if (sessions.length === 0) return;
|
|
365
384
|
const choice = await ctx.ui.select(
|
|
366
385
|
"Pick session:",
|
|
367
|
-
sessions.map(s => s.
|
|
386
|
+
sessions.map(s => s.id),
|
|
368
387
|
);
|
|
369
388
|
if (choice) {
|
|
370
389
|
await ctx.switchSession(choice, {
|
|
@@ -633,7 +652,7 @@ See [send-user-message.ts](https://github.com/bastani-inc/atomic/blob/main/packa
|
|
|
633
652
|
Persist extension state (does NOT participate in LLM context).
|
|
634
653
|
|
|
635
654
|
```typescript
|
|
636
|
-
pi.appendEntry("my-state", { count: 42 });
|
|
655
|
+
await pi.appendEntry("my-state", { count: 42 });
|
|
637
656
|
|
|
638
657
|
// Restore on reload
|
|
639
658
|
pi.on("session_start", async (_event, ctx) => {
|
|
@@ -645,7 +664,9 @@ pi.on("session_start", async (_event, ctx) => {
|
|
|
645
664
|
});
|
|
646
665
|
```
|
|
647
666
|
|
|
648
|
-
Appending emits `entry_appended` with the
|
|
667
|
+
Await `pi.appendEntry` before using the new entry. The promise resolves after the write commits and rejects with the store's typed error if it fails. Setup entries also commit before the promise resolves. Appending emits `entry_appended` with the committed entry. This lets extensions react to session entries without polling.
|
|
668
|
+
|
|
669
|
+
During a transactional reload's `session_start` handler, `pi.appendEntry`, `pi.setSessionName`, and `pi.setLabel` stage their writes instead. Awaiting them confirms staging; the writes and their notifications are published in call order only after reload succeeds. Rejected reloads discard these changes. Do not depend on reading the staged changes back during that handler.
|
|
649
670
|
|
|
650
671
|
### pi.registerEntryRenderer(customType, renderer)
|
|
651
672
|
|
|
@@ -667,7 +688,7 @@ pi.registerEntryRenderer("status-card", (entry, { expanded }, theme) =>
|
|
|
667
688
|
Set the session display name (shown in session selector instead of first message).
|
|
668
689
|
|
|
669
690
|
```typescript
|
|
670
|
-
pi.setSessionName("Refactor auth module");
|
|
691
|
+
await pi.setSessionName("Refactor auth module");
|
|
671
692
|
```
|
|
672
693
|
|
|
673
694
|
### pi.getSessionName()
|
|
@@ -687,10 +708,10 @@ Set or clear a label on an entry. Labels are user-defined markers for bookmarkin
|
|
|
687
708
|
|
|
688
709
|
```typescript
|
|
689
710
|
// Set a label
|
|
690
|
-
pi.setLabel(entryId, "checkpoint-before-refactor");
|
|
711
|
+
await pi.setLabel(entryId, "checkpoint-before-refactor");
|
|
691
712
|
|
|
692
713
|
// Clear a label
|
|
693
|
-
pi.setLabel(entryId, undefined);
|
|
714
|
+
await pi.setLabel(entryId, undefined);
|
|
694
715
|
|
|
695
716
|
// Read labels via sessionManager
|
|
696
717
|
const label = ctx.sessionManager.getLabel(entryId);
|
|
@@ -895,7 +916,7 @@ Get the current thinking level. Level is clamped to model capabilities (non-reas
|
|
|
895
916
|
|
|
896
917
|
```typescript
|
|
897
918
|
const current = pi.getThinkingLevel(); // "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
|
|
898
|
-
pi.setThinkingLevel("high");
|
|
919
|
+
await pi.setThinkingLevel("high");
|
|
899
920
|
```
|
|
900
921
|
|
|
901
922
|
### pi.events
|
|
@@ -919,7 +940,7 @@ In addition to `registerProvider(name, config)`, extensions can register a compl
|
|
|
919
940
|
|
|
920
941
|
### pi.registerProvider(name, config)
|
|
921
942
|
|
|
922
|
-
Register or override a model provider dynamically. Useful for proxies, custom endpoints, or team-wide model configurations.
|
|
943
|
+
Register or override a model provider dynamically. Await registration, aliases, and removal before starting dependent work. Useful for proxies, custom endpoints, or team-wide model configurations.
|
|
923
944
|
|
|
924
945
|
Calls made during the extension factory function are queued and applied once the runner initialises. Calls made after that — for example from a command handler following a user setup flow — take effect immediately without requiring a `/reload`.
|
|
925
946
|
|
|
@@ -927,7 +948,7 @@ If you need to discover models from a remote endpoint, prefer an async extension
|
|
|
927
948
|
|
|
928
949
|
```typescript
|
|
929
950
|
// Register a new provider with custom models
|
|
930
|
-
pi.registerProvider("my-proxy", {
|
|
951
|
+
await pi.registerProvider("my-proxy", {
|
|
931
952
|
name: "My Proxy",
|
|
932
953
|
baseUrl: "https://proxy.example.com",
|
|
933
954
|
apiKey: "$PROXY_API_KEY", // env var reference; omit $ for a literal
|
|
@@ -946,12 +967,12 @@ pi.registerProvider("my-proxy", {
|
|
|
946
967
|
});
|
|
947
968
|
|
|
948
969
|
// Override baseUrl for an existing provider (keeps all models)
|
|
949
|
-
pi.registerProvider("anthropic", {
|
|
970
|
+
await pi.registerProvider("anthropic", {
|
|
950
971
|
baseUrl: "https://proxy.example.com"
|
|
951
972
|
});
|
|
952
973
|
|
|
953
974
|
// Register provider with OAuth support for /login
|
|
954
|
-
pi.registerProvider("corporate-ai", {
|
|
975
|
+
await pi.registerProvider("corporate-ai", {
|
|
955
976
|
baseUrl: "https://ai.corp.com",
|
|
956
977
|
api: "openai-responses",
|
|
957
978
|
models: [...],
|
|
@@ -976,7 +997,7 @@ pi.registerProvider("corporate-ai", {
|
|
|
976
997
|
});
|
|
977
998
|
|
|
978
999
|
// Register provider-owned API-key setup for /login
|
|
979
|
-
pi.registerProvider("local-server", {
|
|
1000
|
+
await pi.registerProvider("local-server", {
|
|
980
1001
|
name: "Local Server",
|
|
981
1002
|
auth: {
|
|
982
1003
|
apiKey: {
|
|
@@ -1021,7 +1042,7 @@ Like `registerProvider`, this takes effect immediately when called after the ini
|
|
|
1021
1042
|
pi.registerCommand("my-setup-teardown", {
|
|
1022
1043
|
description: "Remove the custom proxy provider",
|
|
1023
1044
|
handler: async (_args, _ctx) => {
|
|
1024
|
-
pi.unregisterProvider("my-proxy");
|
|
1045
|
+
await pi.unregisterProvider("my-proxy");
|
|
1025
1046
|
},
|
|
1026
1047
|
});
|
|
1027
1048
|
```
|
|
@@ -56,7 +56,7 @@ export default async function (pi: ExtensionAPI) {
|
|
|
56
56
|
}>;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
pi.registerProvider("local-openai", {
|
|
59
|
+
await pi.registerProvider("local-openai", {
|
|
60
60
|
baseUrl: "http://localhost:1234/v1",
|
|
61
61
|
apiKey: "$LOCAL_OPENAI_API_KEY",
|
|
62
62
|
api: "openai-completions",
|
|
@@ -59,13 +59,13 @@ user sends another prompt ◄─────────────────
|
|
|
59
59
|
/new (new session) or /resume (switch session)
|
|
60
60
|
├─► session_before_switch (can cancel)
|
|
61
61
|
├─► session_shutdown
|
|
62
|
-
├─► session_start { reason: "new" | "resume",
|
|
62
|
+
├─► session_start { reason: "new" | "resume", previousSessionId? }
|
|
63
63
|
└─► resources_discover { reason: "startup" }
|
|
64
64
|
|
|
65
65
|
/fork or /clone
|
|
66
66
|
├─► session_before_fork (can cancel)
|
|
67
67
|
├─► session_shutdown
|
|
68
|
-
├─► session_start { reason: "fork",
|
|
68
|
+
├─► session_start { reason: "fork", previousSessionId }
|
|
69
69
|
└─► resources_discover { reason: "startup" }
|
|
70
70
|
|
|
71
71
|
/compact or auto-compaction
|
|
@@ -141,8 +141,8 @@ Fired when a session is started, loaded, or reloaded.
|
|
|
141
141
|
```typescript
|
|
142
142
|
pi.on("session_start", async (event, ctx) => {
|
|
143
143
|
// event.reason - "startup" | "reload" | "new" | "resume" | "fork"
|
|
144
|
-
// event.
|
|
145
|
-
ctx.ui.notify(`Session: ${ctx.sessionManager.
|
|
144
|
+
// event.previousSessionId - present for "new", "resume", and "fork"
|
|
145
|
+
ctx.ui.notify(`Session: ${ctx.sessionManager.getSessionId()}`, "info");
|
|
146
146
|
});
|
|
147
147
|
```
|
|
148
148
|
|
|
@@ -164,7 +164,7 @@ Fired before starting a new session (`/new`) or switching sessions (`/resume`).
|
|
|
164
164
|
```typescript
|
|
165
165
|
pi.on("session_before_switch", async (event, ctx) => {
|
|
166
166
|
// event.reason - "new" or "resume"
|
|
167
|
-
// event.
|
|
167
|
+
// event.targetSessionId - session we're switching to (only for "resume")
|
|
168
168
|
|
|
169
169
|
if (event.reason === "new") {
|
|
170
170
|
const ok = await ctx.ui.confirm("Clear?", "Delete all messages?");
|
|
@@ -173,7 +173,7 @@ pi.on("session_before_switch", async (event, ctx) => {
|
|
|
173
173
|
});
|
|
174
174
|
```
|
|
175
175
|
|
|
176
|
-
After a successful switch or new-session action, Atomic emits `session_shutdown` for the old extension instance, reloads and rebinds extensions for the new session, then emits `session_start` with `reason: "new" | "resume"` and `
|
|
176
|
+
After a successful switch or new-session action, Atomic emits `session_shutdown` for the old extension instance, reloads and rebinds extensions for the new session, then emits `session_start` with `reason: "new" | "resume"` and `previousSessionId`.
|
|
177
177
|
Do cleanup work in `session_shutdown`, then reestablish any in-memory state in `session_start`.
|
|
178
178
|
|
|
179
179
|
#### session_before_fork
|
|
@@ -190,7 +190,7 @@ pi.on("session_before_fork", async (event, ctx) => {
|
|
|
190
190
|
});
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
-
After a successful fork or clone, Atomic emits `session_shutdown` for the old extension instance, reloads and rebinds extensions for the new session, then emits `session_start` with `reason: "fork"` and `
|
|
193
|
+
After a successful fork or clone, Atomic emits `session_shutdown` for the old extension instance, reloads and rebinds extensions for the new session, then emits `session_start` with `reason: "fork"` and `previousSessionId`.
|
|
194
194
|
Do cleanup work in `session_shutdown`, then reestablish any in-memory state in `session_start`.
|
|
195
195
|
|
|
196
196
|
#### session_before_compact / session_compact / session_compact_failed
|
|
@@ -259,7 +259,7 @@ Fired before a started session runtime is torn down. Use this to clean up resour
|
|
|
259
259
|
```typescript
|
|
260
260
|
pi.on("session_shutdown", async (event, ctx) => {
|
|
261
261
|
// event.reason - "quit" | "reload" | "new" | "resume" | "fork"
|
|
262
|
-
// event.
|
|
262
|
+
// event.targetSessionId - destination session for session replacement flows
|
|
263
263
|
// event.fromSignal - true when a "quit" came from a host SIGTERM/SIGHUP, not an explicit quit
|
|
264
264
|
// Cleanup, save state, etc.
|
|
265
265
|
});
|
package/docs/extensions.md
CHANGED
|
@@ -498,9 +498,9 @@ Moved to [Extension API reference](/extensions/api-reference#ctx-fork-entryid-op
|
|
|
498
498
|
|
|
499
499
|
Moved to [Extension API reference](/extensions/api-reference#ctx-navigatetree-targetid-options).
|
|
500
500
|
|
|
501
|
-
### ctx.switchSession(
|
|
501
|
+
### ctx.switchSession(sessionId, options?)
|
|
502
502
|
|
|
503
|
-
Moved to [Extension API reference](/extensions/api-reference#ctx-switchsession-
|
|
503
|
+
Moved to [Extension API reference](/extensions/api-reference#ctx-switchsession-sessionid-options).
|
|
504
504
|
|
|
505
505
|
### Session replacement lifecycle and footguns
|
|
506
506
|
|
|
@@ -33,11 +33,10 @@ bun add -g @bastani/atomic
|
|
|
33
33
|
|
|
34
34
|
Atomic does not require package install scripts. Add `--ignore-scripts` if you want to disable dependency lifecycle scripts during a package install.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Workflow persistence uses a local SQLite journal by default. No database server or separate database installation is needed. The default file is `~/.atomic/workflows/journal.sqlite`; configure another location with `ATOMIC_WORKFLOW_JOURNAL_PATH` or the [workflow storage settings](/settings#workflow-storage). To share runs across machines, see [Sharing storage across hosts](/storage#sharing-storage-across-hosts).
|
|
37
37
|
|
|
38
38
|
Keep a standalone archive's complete directory, including `node_modules`, libraries, and licenses. Package managers select the runtime for your platform automatically.
|
|
39
39
|
|
|
40
|
-
Windows ARM64 uses Windows x64 PostgreSQL under Windows 11's x64 emulation, not native PostgreSQL ARM64. It requires the Microsoft Visual C++ x64 v14 Redistributable. Windows 10 on ARM cannot run this x64 runtime, and Windows ARM64 execution still needs hardware validation.
|
|
41
40
|
|
|
42
41
|
### Release archive
|
|
43
42
|
|
package/docs/models/reference.md
CHANGED
|
@@ -52,6 +52,8 @@ The `apiKey` and `headers` fields support three formats:
|
|
|
52
52
|
"apiKey": "sk-..."
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
In non-command values, `$$` produces a literal `$` and `$!` produces a literal `!`.
|
|
56
|
+
|
|
55
57
|
Legacy uppercase env-var-like values in existing `models.json` provider config, such as `MY_API_KEY`, are migrated to `$MY_API_KEY` on startup only when that environment variable is present during migration; otherwise the value is preserved as a literal. New configs should use explicit `$ENV_VAR`/`${ENV_VAR}` syntax for environment variables.
|
|
56
58
|
|
|
57
59
|
For `models.json`, shell commands are resolved at request time. Atomic intentionally does not apply built-in TTL, stale reuse, or recovery logic for arbitrary commands. Different commands need different caching and failure strategies, and Atomic cannot infer the right one.
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Models Configuration
|
|
3
|
+
sidebarTitle: "models.json fields"
|
|
4
|
+
description: Every provider, model, override, and compatibility field accepted in models.json, generated from the schema.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Models Configuration
|
|
8
|
+
|
|
9
|
+
{/* This file is generated from TypeScript source. Do not edit it manually; run npm run generate:references --workspace=@bastani/atomic. */}
|
|
10
|
+
|
|
11
|
+
This reference lists the fields of `models.json`. See [Custom Models](/models) for examples and the file location (normally `~/.atomic/agent/models.json`).
|
|
12
|
+
|
|
13
|
+
Add `"$schema": "https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/schemas/models.schema.json"` to `models.json` for editor validation and completion.
|
|
14
|
+
|
|
15
|
+
## Providers
|
|
16
|
+
|
|
17
|
+
Each key under `providers` is a provider ID. A built-in provider ID changes that provider. Any other ID adds a provider, which needs `baseUrl` and an `api` at provider or model level.
|
|
18
|
+
|
|
19
|
+
| Field | Type | Default | Description |
|
|
20
|
+
|---|---|---|---|
|
|
21
|
+
| `name` | string | | Display name. |
|
|
22
|
+
| `baseUrl` | string | | API base URL. Also applies to the provider's built-in models. |
|
|
23
|
+
| `apiKey` | string | | Literal key, "$NAME" environment interpolation, or "!command" output. |
|
|
24
|
+
| `api` | string | | API for the provider's models, such as "openai-completions", "openai-responses", "anthropic-messages", or "google-generative-ai". |
|
|
25
|
+
| `oauth` | `"radius"` | | OAuth login flow. Requires baseUrl. |
|
|
26
|
+
| `headers` | object | | Request headers. Values resolve like apiKey. |
|
|
27
|
+
| `compat` | [object](#compatibility) | | Provider and model compatibility overrides. |
|
|
28
|
+
| `authHeader` | boolean | `false` | Whether to send the resolved API key as Authorization: Bearer. |
|
|
29
|
+
| `models` | [`object[]`](#models) | | |
|
|
30
|
+
| `modelOverrides` | [object](#model-overrides) | | |
|
|
31
|
+
|
|
32
|
+
## Models
|
|
33
|
+
|
|
34
|
+
Each `models` entry adds a model to the provider. An entry whose `id` matches an existing model replaces it.
|
|
35
|
+
|
|
36
|
+
| Field | Type | Default | Description |
|
|
37
|
+
|---|---|---|---|
|
|
38
|
+
| `id` | string | | Required. Model ID sent to the API. |
|
|
39
|
+
| `name` | string | | Display name, also matched by --model patterns. |
|
|
40
|
+
| `api` | string | | Overrides the provider api. |
|
|
41
|
+
| `baseUrl` | string | | Overrides the provider baseUrl. |
|
|
42
|
+
| `reasoning` | boolean | `false` | Whether the model supports thinking. |
|
|
43
|
+
| `thinkingLevelMap` | object | | Provider value sent for each thinking level. null marks a level unsupported. Levels the model does not map use the provider's default value through high; xhigh and max are unsupported. |
|
|
44
|
+
| `input` | `("text" \| "image" \| "pdf")[]` | `["text"]` | |
|
|
45
|
+
| `inputLimits` | [object](#input-limits) | | |
|
|
46
|
+
| `cost` | object | | |
|
|
47
|
+
| `cost.input` | number | | Required. Input cost in USD per million tokens. |
|
|
48
|
+
| `cost.output` | number | | Required. Output cost in USD per million tokens. |
|
|
49
|
+
| `cost.cacheRead` | number | | Required. Cache-read cost in USD per million tokens. |
|
|
50
|
+
| `cost.cacheWrite` | number | | Required. Cache-write cost in USD per million tokens. |
|
|
51
|
+
| `cost.tiers` | `object[]` | | Request-wide pricing tiers. The highest matching input threshold applies to the full request. |
|
|
52
|
+
| `cost.tiers[].inputTokensAbove` | number | | Required. Use this tier when total request input exceeds this token count. |
|
|
53
|
+
| `cost.tiers[].input` | number | | Required. Input cost in USD per million tokens. |
|
|
54
|
+
| `cost.tiers[].output` | number | | Required. Output cost in USD per million tokens. |
|
|
55
|
+
| `cost.tiers[].cacheRead` | number | | Required. Cache-read cost in USD per million tokens. |
|
|
56
|
+
| `cost.tiers[].cacheWrite` | number | | Required. Cache-write cost in USD per million tokens. |
|
|
57
|
+
| `promptCache` | object | | Best-effort prompt cache lifetime in seconds for the short and long retention tiers. Atomic warms only tiers with a known lifetime. |
|
|
58
|
+
| `contextWindow` | number | `128000` | Context window in tokens. |
|
|
59
|
+
| `maxTokens` | number | `16384` | Maximum output tokens. |
|
|
60
|
+
| `samplingParams` | object | | Fields merged into every request body. Applies only to OpenAI-compatible APIs. |
|
|
61
|
+
| `samplingParamsByThinkingLevel` | object | | samplingParams per thinking level, merged over samplingParams. |
|
|
62
|
+
| `headers` | object | | Request headers. Values resolve like apiKey. |
|
|
63
|
+
| `compat` | [object](#compatibility) | | Provider and model compatibility overrides. |
|
|
64
|
+
|
|
65
|
+
## Model overrides
|
|
66
|
+
|
|
67
|
+
Each `modelOverrides` key is the ID of a built-in or extension model. Unknown IDs are ignored. Object fields, such as `cost`, merge with the model's value field by field; other fields replace it.
|
|
68
|
+
|
|
69
|
+
| Field | Type | Default | Description |
|
|
70
|
+
|---|---|---|---|
|
|
71
|
+
| `name` | string | | Display name, also matched by --model patterns. |
|
|
72
|
+
| `reasoning` | boolean | | Whether the model supports thinking. |
|
|
73
|
+
| `thinkingLevelMap` | object | | Provider value sent for each thinking level. null marks a level unsupported. Levels the model does not map use the provider's default value through high; xhigh and max are unsupported. |
|
|
74
|
+
| `input` | `("text" \| "image" \| "pdf")[]` | | |
|
|
75
|
+
| `inputLimits` | [object](#input-limits) | | |
|
|
76
|
+
| `cost` | object | | |
|
|
77
|
+
| `cost.input` | number | | Input cost in USD per million tokens. |
|
|
78
|
+
| `cost.output` | number | | Output cost in USD per million tokens. |
|
|
79
|
+
| `cost.cacheRead` | number | | Cache-read cost in USD per million tokens. |
|
|
80
|
+
| `cost.cacheWrite` | number | | Cache-write cost in USD per million tokens. |
|
|
81
|
+
| `cost.tiers` | `object[]` | | Request-wide pricing tiers. The highest matching input threshold applies to the full request. |
|
|
82
|
+
| `cost.tiers[].inputTokensAbove` | number | | Required. Use this tier when total request input exceeds this token count. |
|
|
83
|
+
| `cost.tiers[].input` | number | | Required. Input cost in USD per million tokens. |
|
|
84
|
+
| `cost.tiers[].output` | number | | Required. Output cost in USD per million tokens. |
|
|
85
|
+
| `cost.tiers[].cacheRead` | number | | Required. Cache-read cost in USD per million tokens. |
|
|
86
|
+
| `cost.tiers[].cacheWrite` | number | | Required. Cache-write cost in USD per million tokens. |
|
|
87
|
+
| `promptCache` | object | | Best-effort prompt cache lifetime in seconds for the short and long retention tiers. Atomic warms only tiers with a known lifetime. |
|
|
88
|
+
| `contextWindow` | number | | Context window in tokens. |
|
|
89
|
+
| `maxTokens` | number | | Maximum output tokens. |
|
|
90
|
+
| `samplingParams` | object | | Fields merged into every request body. Applies only to OpenAI-compatible APIs. |
|
|
91
|
+
| `samplingParamsByThinkingLevel` | object | | samplingParams per thinking level, merged over samplingParams. |
|
|
92
|
+
| `headers` | object | | Request headers. Values resolve like apiKey. |
|
|
93
|
+
| `compat` | [object](#compatibility) | | Provider and model compatibility overrides. |
|
|
94
|
+
|
|
95
|
+
## Input limits
|
|
96
|
+
|
|
97
|
+
See [Image Input Limits](/models/reference#image-input-limits).
|
|
98
|
+
|
|
99
|
+
| Field | Type | Default | Description |
|
|
100
|
+
|---|---|---|---|
|
|
101
|
+
| `maxRequestBytes` | integer | | Maximum serialized provider request size in bytes. |
|
|
102
|
+
| `images` | object | | |
|
|
103
|
+
| `images.resize` | object | | Cache-safe resize profile applied before a new image enters conversation history. |
|
|
104
|
+
| `images.resize.maxWidth` | integer | | |
|
|
105
|
+
| `images.resize.maxHeight` | integer | | |
|
|
106
|
+
| `images.resize.maxBytes` | integer | | Maximum base64-encoded payload size in bytes. |
|
|
107
|
+
| `images.resize.jpegQuality` | integer | | |
|
|
108
|
+
| `images.maxPerMessage` | integer | | Maximum images accepted in one provider message. |
|
|
109
|
+
| `images.maxPerRequest` | integer | | Maximum images accepted across one provider request. |
|
|
110
|
+
|
|
111
|
+
## Compatibility
|
|
112
|
+
|
|
113
|
+
`compat` describes verified differences from an API's standard request and response behavior. Model values override provider values per field. The fields that apply depend on the model's `api`.
|
|
114
|
+
|
|
115
|
+
### `openai-completions`
|
|
116
|
+
|
|
117
|
+
| Field | Type | Default | Description |
|
|
118
|
+
|---|---|---|---|
|
|
119
|
+
| `supportsStore` | boolean | | Whether the provider supports the store field. Default: auto-detected from URL. |
|
|
120
|
+
| `supportsDeveloperRole` | boolean | | Whether the provider supports the developer role instead of system. Default: auto-detected from URL. |
|
|
121
|
+
| `supportsReasoningEffort` | boolean | | Whether the provider supports reasoning_effort. Default: auto-detected from URL. |
|
|
122
|
+
| `supportsTemperature` | boolean | `true` | Whether the model accepts the temperature request field. When false, the provider omits temperature and also strips temperature, top_p, and top_k from samplingParams. |
|
|
123
|
+
| `supportsForcedToolChoice` | boolean | `true` | Whether the model accepts forced tool use (tool_choice "required" or a specific function). When false, the provider rejects a forced choice with an error instead of sending a request the model cannot honor. "auto" and "none" are never altered. |
|
|
124
|
+
| `supportsUsageInStreaming` | boolean | `true` | Whether the provider supports stream_options.include_usage for token usage in streaming responses. |
|
|
125
|
+
| `supportsFinishReason` | boolean | `true` | Whether streamed responses include finish_reason. When false, Atomic infers stop or toolUse when the stream ends. |
|
|
126
|
+
| `maxTokensField` | `"max_completion_tokens" \| "max_tokens"` | | Which field to use for max tokens. Default: auto-detected from URL. |
|
|
127
|
+
| `requiresToolResultName` | boolean | | Whether tool results require the name field. Default: auto-detected from URL. |
|
|
128
|
+
| `requiresAssistantAfterToolResult` | boolean | | Whether a user message after tool results requires an assistant message in between. Default: auto-detected from URL. |
|
|
129
|
+
| `requiresThinkingAsText` | boolean | | Whether thinking blocks must be converted to text blocks with <thinking> delimiters. Default: auto-detected from URL. |
|
|
130
|
+
| `requiresReasoningContentOnAssistantMessages` | boolean | | Whether all replayed assistant messages must include an empty reasoning_content field when reasoning is enabled. Default: auto-detected from URL. |
|
|
131
|
+
| `thinkingFormat` | `"openai" \| "openrouter" \| "deepseek" \| "together" \| "baseten" \| "zai" \| "qwen" \| "chat-template" \| "qwen-chat-template" \| "string-thinking" \| "ant-ling"` | | Format for reasoning or thinking parameters. When omitted, Atomic auto-detects the format from the provider URL. "openai" uses reasoning_effort, "openrouter" uses reasoning.effort, "deepseek" uses thinking.type plus reasoning_effort when supported, "together" uses reasoning.enabled plus reasoning_effort when supported, "baseten" uses configurable chat_template_args plus reasoning_effort when supported, "zai" uses thinking.type, "qwen" uses top-level enable_thinking, "qwen-chat-template" uses chat_template_kwargs.enable_thinking and preserve_thinking, "chat-template" uses configurable chat_template_kwargs, "string-thinking" uses top-level thinking, and "ant-ling" uses reasoning.effort only when the mapped effort is non-null. |
|
|
132
|
+
| `chatTemplateKwargs` | object | | Kwargs sent as chat_template_kwargs when thinkingFormat is "chat-template". Use $var with "thinking.enabled", "thinking.effort", or "thinking.budget" for Atomic-controlled values. |
|
|
133
|
+
| `chatTemplateArgs` | object | | Arguments sent as chat_template_args when thinkingFormat is "baseten". Use $var with "thinking.enabled", "thinking.effort", or "thinking.budget" for Atomic-controlled values. |
|
|
134
|
+
| `openRouterRouting` | object | | OpenRouter provider routing preferences. Controls which upstream providers OpenRouter routes requests to. Sent as the provider field in the OpenRouter API request body. See https://openrouter.ai/docs/guides/routing/provider-selection. |
|
|
135
|
+
| `vercelGatewayRouting` | object | | Vercel AI Gateway routing preferences. Controls which upstream providers the gateway routes requests to. See https://vercel.com/docs/ai-gateway/models-and-providers/provider-options. |
|
|
136
|
+
| `zaiToolStream` | boolean | `false` | Whether z.ai supports top-level tool_stream for streaming tool call deltas. |
|
|
137
|
+
| `thinkingTokenBudgetField` | `"thinking_token_budget" \| "thinking_budget" \| "thinking_budget_tokens"` | | Top-level request field used to cap reasoning tokens from thinkingBudgets. Reasoning and the answer share max_tokens on these endpoints. "thinking_token_budget" is vLLM, "thinking_budget" is Qwen, DashScope, or SGLang, and "thinking_budget_tokens" is llama.cpp. Off by default and not set on the generated catalog. |
|
|
138
|
+
| `supportsThinkingTokenBudget` | boolean | `false` | Alias for thinkingTokenBudgetField: "thinking_token_budget" (vLLM). Prefer thinkingTokenBudgetField. |
|
|
139
|
+
| `supportsOpenAIGrammarTools` | boolean | `false` | Whether the provider supports OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools. The generated catalog enables this for capable models. |
|
|
140
|
+
| `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts system or developer messages after the conversation has started. When false, later system messages are folded into the leading system message. The generated catalog enables this for verified models. |
|
|
141
|
+
| `supportsMidConvoToolAdditions` | boolean | `false` | Whether system messages can introduce additional tools mid-conversation. Requires supportsMidConvoSystemMessages. The generated catalog enables this for capable models. |
|
|
142
|
+
| `supportsStrictMode` | boolean | `false` | Whether the provider supports the strict field in tool definitions. Generated capable models enable it explicitly. |
|
|
143
|
+
| `cacheControlFormat` | `"anthropic"` | | Cache control convention for prompt caching. Anthropic applies cache_control markers to the system prompt, last tool definition, and last user, assistant, or tool-result text content. |
|
|
144
|
+
| `sendSessionAffinityHeaders` | boolean | | Whether to send session-affinity data from options.sessionId. Default: true for OpenRouter endpoints, false otherwise. |
|
|
145
|
+
| `sessionAffinityFormat` | `"openai" \| "openai-nosession" \| "openrouter"` | | Session-affinity header format. openai sends session_id, x-client-request-id, and x-session-affinity; openai-nosession sends x-client-request-id and x-session-affinity; openrouter sends x-session-id. Does not affect prompt_cache_key. Default: auto-detected. |
|
|
146
|
+
| `supportsLongCacheRetention` | boolean | | Whether the provider supports long prompt cache retention (prompt_cache_retention: "24h" or Anthropic-style cache_control.ttl: "1h", depending on format). Default: auto-detected from provider and URL. |
|
|
147
|
+
| `vllmPriority` | number | | vLLM scheduler priority sent as the top-level priority request field. Lower values are handled earlier and the server default is 0. Only meaningful with --scheduling-policy priority. Off by default and not set on the generated catalog. |
|
|
148
|
+
|
|
149
|
+
### `openai-responses`
|
|
150
|
+
|
|
151
|
+
Also applies to `azure-openai-responses` and `openai-codex-responses`.
|
|
152
|
+
|
|
153
|
+
| Field | Type | Default | Description |
|
|
154
|
+
|---|---|---|---|
|
|
155
|
+
| `supportsDeveloperRole` | boolean | `true` | Whether the provider supports the developer role instead of system. |
|
|
156
|
+
| `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts developer or system messages after the conversation has started. When false, later system messages are folded into the leading system message. The generated catalog enables this for verified models. |
|
|
157
|
+
| `sessionAffinityFormat` | `"openai" \| "openai-nosession" \| "openrouter"` | | Session-affinity header format. openai sends session_id and x-client-request-id; openai-nosession sends x-client-request-id; openrouter sends x-session-id. Does not affect prompt_cache_key. Default: auto-detected. |
|
|
158
|
+
| `supportsLongCacheRetention` | boolean | `true` | Whether the provider supports long prompt cache retention. This uses prompt_cache_options.ttl: "30m" on GPT-5.6+ and prompt_cache_retention: "24h" on earlier models. |
|
|
159
|
+
| `supportsStrictMode` | boolean | | Whether the provider supports strict JSON-schema function tools. Defaults are API-specific; generated OpenAI models enable it explicitly. |
|
|
160
|
+
| `supportsOpenAIGrammarTools` | boolean | `false` | Whether to emit OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools. The generated catalog enables this for capable models. |
|
|
161
|
+
| `supportsAdditionalTools` | boolean | `false` | Whether the model supports message-anchored additional_tools input items. |
|
|
162
|
+
| `supportsToolSearch` | boolean | `false` | Whether the model supports client-executed tool search for transcript-anchored additions. |
|
|
163
|
+
| `supportsExplicitPromptCacheMode` | boolean | `false` | Whether the model accepts prompt_cache_options. Older OpenAI models reject the parameter. |
|
|
164
|
+
| `supportsMidConvoEffort` | boolean | `false` | Whether thinking level changes are sent as configuration_update input items instead of changing reasoning.effort, so a change keeps the prompt cache. Only used by the openai-responses API, and ignored with Sign in with ChatGPT on the openai provider. |
|
|
165
|
+
| `supportsMaxOutputTokens` | boolean | `true` | Whether the provider accepts max_output_tokens. Some Codex-protocol gateways reject it. |
|
|
166
|
+
|
|
167
|
+
### `anthropic-messages`
|
|
168
|
+
|
|
169
|
+
| Field | Type | Default | Description |
|
|
170
|
+
|---|---|---|---|
|
|
171
|
+
| `supportsEagerToolInputStreaming` | boolean | `true` | Whether the provider accepts per-tool eager_input_streaming. When false, the Anthropic provider omits tools[].eager_input_streaming and sends the legacy fine-grained-tool-streaming-2025-05-14 beta header for tool-enabled requests. |
|
|
172
|
+
| `supportsLongCacheRetention` | boolean | `true` | Whether the provider supports Anthropic long cache retention through cache_control.ttl. |
|
|
173
|
+
| `sendSessionAffinityHeaders` | boolean | | Whether to send x-session-affinity from options.sessionId when caching is enabled. Required for providers like Fireworks that use session affinity for prompt cache routing; requests to the same replica maximize cache hits. Default: true for OpenRouter endpoints, false otherwise. |
|
|
174
|
+
| `sessionAffinityFormat` | `"openrouter"` | | Session-affinity format. openrouter sends x-session-id; when unset, sends x-session-affinity. |
|
|
175
|
+
| `supportsCacheControlOnTools` | boolean | `true` | Whether the provider supports Anthropic-style cache_control markers on tool definitions. When false, cache_control is omitted from tool parameters. Some Anthropic-compatible providers, such as Fireworks, do not support this field on tools and may reject or ignore it. |
|
|
176
|
+
| `supportsTemperature` | boolean | `true` | Whether the model accepts the Anthropic temperature request field. Claude Opus 4.7+ rejects non-default values. |
|
|
177
|
+
| `forceAdaptiveThinking` | boolean | `false` | Whether to force adaptive thinking (thinking.type: adaptive plus output_config.effort) regardless of model ID. Built-in models that require adaptive thinking set this in generated metadata. Custom Anthropic-compatible providers can set this to true for any model whose upstream requires the adaptive format. Set false to opt out on overridden built-in models. |
|
|
178
|
+
| `allowEmptySignature` | boolean | `false` | Whether to replay empty thinking signatures instead of converting thinking to text. |
|
|
179
|
+
| `supportsStrictTools` | boolean | `false` | Whether the provider supports Anthropic strict tool schemas. Generated Anthropic models enable it explicitly. |
|
|
180
|
+
| `supportsMidConvoEffort` | boolean | `false` | Whether the exact model transport supports effort-only system messages and thinking binding controls. |
|
|
181
|
+
| `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts system-role messages inside the conversation. When false, later system messages are folded into the top-level system prompt. |
|
|
182
|
+
| `supportsMidConvoToolChanges` | boolean | `false` | Whether the exact model accepts mid-conversation tool_addition and tool_removal blocks. Requires supportsMidConvoSystemMessages. |
|
|
183
|
+
| `allowedFallbackModels` | `object[]` | | Models Anthropic accepts for server-side refusal fallback, with local pricing metadata for returned fallback responses. When absent or empty, callers must omit fallbacks; Anthropic rejects the field for models with no permitted fallback targets. |
|
|
184
|
+
| `enforcesPreservedThinkingBinding` | boolean | `false` | Whether the model runs the Anthropic preserved-thinking conversation check, which rejects a request whose system prompt, tools, or earlier messages changed since a replayed thinking block was produced. When true, the provider sends the thinking-binding-controls-2026-08-01 beta header and thinking.block_binding.prefix_mismatch_behavior: "drop_block", so a changed prefix drops the affected thinking blocks instead of failing the request. |
|
|
185
|
+
| `delegatesThinkingModelBinding` | boolean | `false` | Whether the API adjudicates thinking-block model binding itself, always dropping a block the target model cannot read. When true, an assistant turn produced by a different model on the same provider and API replays its signed thinking and redacted_thinking blocks unchanged instead of being rewritten into plain text. |
|
|
186
|
+
| `supportsForcedToolChoice` | boolean | `true` | Whether the model accepts forced tool use (tool_choice "any" or a specific tool). When false, the provider rejects a forced choice with an error instead of sending a request the model is guaranteed to refuse. "auto" and "none" are never altered. |
|
|
187
|
+
|
|
188
|
+
### `bedrock-converse-stream`
|
|
189
|
+
|
|
190
|
+
| Field | Type | Default | Description |
|
|
191
|
+
|---|---|---|---|
|
|
192
|
+
| `supportsStrictMode` | boolean | `false` | Whether the model supports Bedrock strict tool schemas. |
|
|
193
|
+
| `supportsForcedToolChoice` | boolean | `true` | Whether the model accepts forced tool use (toolChoice "any" or a specific tool). When false, the provider rejects a forced choice with an error instead of sending a request that is guaranteed to fail. "auto" and "none" are never altered. |
|
|
194
|
+
| `supportsTemperature` | boolean | `true` | Whether the model accepts inferenceConfig.temperature. When false, the provider omits the field. |
|
|
195
|
+
|
|
196
|
+
### `mistral-conversations`
|
|
197
|
+
|
|
198
|
+
| Field | Type | Default | Description |
|
|
199
|
+
|---|---|---|---|
|
|
200
|
+
| `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts system messages after the conversation has started. When false, later system messages are folded into the leading system message. |
|
|
201
|
+
|
|
202
|
+
### Atomic compatibility aliases
|
|
203
|
+
|
|
204
|
+
| Field | Type | Default | Description |
|
|
205
|
+
|---|---|---|---|
|
|
206
|
+
| `supportsGrammarTools` | boolean | | Atomic alias for supportsOpenAIGrammarTools. The canonical field wins if both are set. |
|
package/docs/models.md
CHANGED
|
@@ -19,7 +19,7 @@ For editor completion and validation of providers, models, and `compat` fields,
|
|
|
19
19
|
|
|
20
20
|
## Where to go next
|
|
21
21
|
|
|
22
|
-
This page shows minimal and full `models.json` examples you can copy.
|
|
22
|
+
This page shows minimal and full `models.json` examples you can copy. [Models Configuration](/models-configuration) lists every provider, model, override, and compatibility field directly from the schema. For extended examples, derived variants, and API behavior, see the [Model configuration guide](/models/reference).
|
|
23
23
|
|
|
24
24
|
For choosing which model to use rather than how to declare one, see [Model selection](/models/model-selection).
|
|
25
25
|
|
|
@@ -71,6 +71,16 @@ For local models (Ollama, LM Studio, vLLM), only `id` is required per model:
|
|
|
71
71
|
|
|
72
72
|
The `apiKey` is required but Ollama ignores it, so any value works.
|
|
73
73
|
|
|
74
|
+
To route a built-in provider through a proxy, set only its `baseUrl`. Its models and authentication stay unchanged:
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"providers": {
|
|
79
|
+
"anthropic": { "baseUrl": "https://proxy.example.com/v1" }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
74
84
|
Some OpenAI-compatible servers do not understand the `developer` role used for reasoning-capable models. For those providers, set `compat.supportsDeveloperRole` to `false` so Atomic sends the system prompt as a `system` message instead. If the server also does not support `reasoning_effort`, set `compat.supportsReasoningEffort` to `false` too.
|
|
75
85
|
|
|
76
86
|
You can set `compat` at the provider level to apply to all models, or at the model level to override a specific model. This commonly applies to Ollama, vLLM, SGLang, and similar OpenAI-compatible servers.
|
package/docs/providers.md
CHANGED
|
@@ -389,10 +389,10 @@ The providers below have additional setup, need additional settings, or can use
|
|
|
389
389
|
|
|
390
390
|
### NVIDIA NIM
|
|
391
391
|
|
|
392
|
-
NVIDIA's built-in default is `nvidia/nemotron-3-
|
|
392
|
+
NVIDIA's built-in default is `nvidia/nemotron-3.5-super-vl-120b-a12b`. Saved and explicit model choices still take precedence. To select this model explicitly:
|
|
393
393
|
|
|
394
394
|
```bash
|
|
395
|
-
atomic --provider nvidia --model nvidia/nemotron-3-
|
|
395
|
+
atomic --provider nvidia --model nvidia/nemotron-3.5-super-vl-120b-a12b
|
|
396
396
|
```
|
|
397
397
|
|
|
398
398
|
Use `--list-models` or `/model` to check the current catalog and replace a missing saved model. A catalog listing does not verify account access or serving availability.
|
|
@@ -566,8 +566,8 @@ export default {
|
|
|
566
566
|
extensionFactories: [
|
|
567
567
|
{
|
|
568
568
|
name: "cloudflare-gateway-binding",
|
|
569
|
-
factory: (pi) => {
|
|
570
|
-
pi.registerProvider("cloudflare-ai-gateway", {
|
|
569
|
+
factory: async (pi) => {
|
|
570
|
+
await pi.registerProvider("cloudflare-ai-gateway", {
|
|
571
571
|
// Placeholder credential: it marks the provider configured and becomes
|
|
572
572
|
// `cf-aig-authorization: Bearer cloudflare-gateway-binding`. On the plain
|
|
573
573
|
// binding fetch path, Cloudflare's gateway recognizes and strips it.
|
package/docs/quickstart.md
CHANGED
|
@@ -154,7 +154,8 @@ Sessions are saved automatically:
|
|
|
154
154
|
atomic -c # Continue most recent session
|
|
155
155
|
atomic -r # Browse previous sessions
|
|
156
156
|
atomic --name "my task" # Set session display name at startup
|
|
157
|
-
atomic --session <
|
|
157
|
+
atomic --session <id|prefix> # Open an exact ID or unique 8-hex UUID prefix
|
|
158
|
+
atomic --import <file> # Import a format-4 JSONL export
|
|
158
159
|
```
|
|
159
160
|
|
|
160
161
|
Inside Atomic, use `/resume`, `/new`, `/tree`, `/fork`, and `/clone` to manage sessions.
|
package/docs/reference/cli.md
CHANGED
|
@@ -133,13 +133,18 @@ When a print-mode turn correctly finishes by calling an opt-in terminating struc
|
|
|
133
133
|
|--------|-------------|
|
|
134
134
|
| `-c`, `--continue` | Continue the most recent session |
|
|
135
135
|
| `-r`, `--resume` | Browse and select a session |
|
|
136
|
-
| `--session <
|
|
136
|
+
| `--session <id\|prefix>` | Use an exact ID or unique 8-hex UUID prefix |
|
|
137
|
+
| `--import <file>` | Import a format-4 JSONL export into session storage |
|
|
137
138
|
| `--session-id <id>` | Use an exact project session ID; warn and create it when missing |
|
|
138
|
-
| `--fork <
|
|
139
|
+
| `--fork <id\|prefix>` | Fork an exact ID or unique 8-hex UUID prefix into a new session |
|
|
139
140
|
| `--session-dir <dir>` | Custom session storage directory |
|
|
141
|
+
| `--session-store <path>` | Select a SQLite session database; relative paths resolve from the working directory |
|
|
142
|
+
| `--session-prefix <prefix>` | Use a non-default table prefix with `--session-store` |
|
|
140
143
|
| `--name <name>`, `-n <name>` | Set the session display name |
|
|
141
144
|
| `--no-session` | Ephemeral mode; do not save |
|
|
142
145
|
|
|
146
|
+
See [Choosing a store](/sessions#choosing-a-store) for precedence, prefix rules, and conflicts.
|
|
147
|
+
|
|
143
148
|
## Tool Options
|
|
144
149
|
|
|
145
150
|
| Option | Description |
|
|
@@ -261,7 +266,6 @@ Every bash execution receives one execution-time snapshot of the active session.
|
|
|
261
266
|
| Atomic variable | Exact compatibility alias | Value |
|
|
262
267
|
|-----------------|---------------------------|-------|
|
|
263
268
|
| `ATOMIC_SESSION_ID` | `PI_SESSION_ID` | Active session ID |
|
|
264
|
-
| `ATOMIC_SESSION_FILE` | `PI_SESSION_FILE` | Active session JSONL path; omitted for unsaved sessions |
|
|
265
269
|
| `ATOMIC_PROVIDER` | `PI_PROVIDER` | Active model provider; omitted when no model is selected |
|
|
266
270
|
| `ATOMIC_MODEL` | `PI_MODEL` | Active model ID; omitted when no model is selected |
|
|
267
271
|
| `ATOMIC_REASONING_LEVEL` | `PI_REASONING_LEVEL` | Active reasoning level |
|
package/docs/rpc/protocol.md
CHANGED
|
@@ -157,7 +157,7 @@ Start a fresh session. Can be cancelled by a `session_before_switch` extension e
|
|
|
157
157
|
|
|
158
158
|
With optional parent session tracking:
|
|
159
159
|
```json
|
|
160
|
-
{"type": "new_session", "parentSession": "
|
|
160
|
+
{"type": "new_session", "parentSession": "parent-session-id"}
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
Response:
|
|
@@ -193,7 +193,7 @@ Response:
|
|
|
193
193
|
"isCompacting": false,
|
|
194
194
|
"steeringMode": "all",
|
|
195
195
|
"followUpMode": "one-at-a-time",
|
|
196
|
-
"
|
|
196
|
+
"sessionLocation": "/path/to/session.jsonl",
|
|
197
197
|
"sessionId": "abc123",
|
|
198
198
|
"sessionName": "my-feature-work",
|
|
199
199
|
"autoCompactionEnabled": true,
|
|
@@ -744,10 +744,16 @@ Response:
|
|
|
744
744
|
|
|
745
745
|
#### switch_session
|
|
746
746
|
|
|
747
|
-
Load a different session
|
|
747
|
+
Load a different session by its exact ID. Can be cancelled by a `session_before_switch` extension event handler. `sessionLocation` in `get_state` is optional display text, not a switch target.
|
|
748
|
+
|
|
749
|
+
```json
|
|
750
|
+
{"type": "switch_session", "sessionId": "abc123"}
|
|
751
|
+
```
|
|
752
|
+
|
|
753
|
+
When choosing a session from another project's JSONL store, pass `sessionDirectory` to bind the ID lookup to that directory. IDs may repeat in different project stores; an explicitly selected directory never falls back to another store. `cwdOverride` changes the resumed working directory, not the store used for lookup.
|
|
748
754
|
|
|
749
755
|
```json
|
|
750
|
-
{"type": "switch_session", "
|
|
756
|
+
{"type": "switch_session", "sessionId": "abc123", "sessionDirectory": "/path/to/project-sessions"}
|
|
751
757
|
```
|
|
752
758
|
|
|
753
759
|
Response:
|