@bastani/atomic 0.9.89-alpha.2 → 0.9.90-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 +357 -0
- package/dist/builtin/intercom/CHANGELOG.md +36 -0
- package/dist/builtin/intercom/README.md +3 -1
- package/dist/builtin/intercom/broker/broker.ts +35 -10
- package/dist/builtin/intercom/broker/client.ts +42 -1
- package/dist/builtin/intercom/index.bundle.mjs +400 -67
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/intercom/skills/intercom/SKILL.md +24 -5
- package/dist/builtin/intercom/types.ts +5 -0
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +66 -0
- package/dist/builtin/subagents/README.md +18 -20
- package/dist/builtin/subagents/agents/worker.md +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/feedback/SKILL.md +2 -2
- package/dist/builtin/subagents/skills/qlty/SKILL.md +2 -2
- package/dist/builtin/subagents/skills/qlty/references/commands.md +45 -12
- package/dist/builtin/subagents/skills/qlty/references/quickstart.md +102 -21
- package/dist/builtin/subagents/skills/subagent/SKILL.md +18 -17
- package/dist/builtin/subagents/skills/tdd/LICENSE.txt +50 -0
- package/dist/builtin/subagents/skills/tdd/SKILL.md +10 -0
- package/dist/builtin/subagents/skills/tdd/tests.md +16 -0
- package/dist/builtin/subagents/skills/tmux/LICENSE.txt +24 -0
- package/dist/builtin/subagents/skills/tmux/SKILL.md +20 -1
- package/dist/builtin/subagents/skills/tmux/scripts/find-sessions.sh +19 -10
- package/dist/builtin/subagents/skills/tmux/scripts/wait-for-text.sh +231 -19
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1911 -845
- package/dist/builtin/web-access/CHANGELOG.md +17 -0
- package/dist/builtin/web-access/index.bundle.mjs +158 -34
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +130 -0
- package/dist/builtin/workflows/builtin/{chunk-tjk7jp9a.js → chunk-akmcsx14.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-913nwrzq.js → chunk-erpybg3c.js} +109 -30
- package/dist/builtin/workflows/builtin/{chunk-e07n7en6.js → chunk-wpgpr31s.js} +1 -1
- package/dist/builtin/workflows/builtin/goal.js +2 -2
- package/dist/builtin/workflows/builtin/index.js +3 -3
- package/dist/builtin/workflows/builtin/ralph.js +2 -2
- package/dist/builtin/workflows/package.json +1 -1
- package/dist/builtin/workflows/skills/bro/SKILL.md +1 -1
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5_2.md +19 -19
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_haiku_5_5.md +2 -2
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5_5.md +3 -3
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6.md +2 -2
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_1_sol.md +2 -2
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_1_terra.md +3 -3
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_2.md +3 -2
- package/dist/builtin/workflows/skills/show-me/SKILL.md +2 -2
- package/dist/builtin/workflows/skills/skill-creator/scripts/run_eval.py +29 -24
- package/dist/builtin/workflows/skills/teach/SKILL.md +8 -8
- package/dist/builtin/workflows/skills/unslop/SKILL.md +29 -51
- package/dist/builtin/workflows/src/durable/journal/internal.d.ts +10 -5
- package/dist/builtin/workflows/src/durable/journal/sharded-run-journal.d.ts +6 -3
- package/dist/builtin/workflows/src/durable/journal/sql-run-journal.d.ts +25 -3
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +4444 -1356
- package/dist/builtin/workflows/src/extension/local-worker-entry.mjs +2544 -568
- package/dist/builtin/workflows/src/index.js +2467 -549
- package/dist/builtin/workflows/src/local-worker-entry.mjs +2544 -568
- package/dist/cli/storage-command.d.ts +6 -0
- package/dist/cli/storage-command.d.ts.map +1 -1
- package/dist/cli/storage-command.js +11 -0
- package/dist/cli/storage-command.js.map +1 -1
- package/dist/cli/storage-search-database.d.ts +18 -0
- package/dist/cli/storage-search-database.d.ts.map +1 -0
- package/dist/cli/storage-search-database.js +90 -0
- package/dist/cli/storage-search-database.js.map +1 -0
- package/dist/cli/storage-search-session.d.ts +5 -0
- package/dist/cli/storage-search-session.d.ts.map +1 -0
- package/dist/cli/storage-search-session.js +133 -0
- package/dist/cli/storage-search-session.js.map +1 -0
- package/dist/core/agent-session-accessors.d.ts.map +1 -1
- package/dist/core/agent-session-accessors.js +107 -1
- package/dist/core/agent-session-accessors.js.map +1 -1
- package/dist/core/agent-session-bash.d.ts.map +1 -1
- package/dist/core/agent-session-bash.js +2 -0
- package/dist/core/agent-session-bash.js.map +1 -1
- package/dist/core/agent-session-boundaries.d.ts +2 -0
- package/dist/core/agent-session-boundaries.d.ts.map +1 -1
- package/dist/core/agent-session-boundaries.js +9 -4
- package/dist/core/agent-session-boundaries.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 +2 -1
- package/dist/core/agent-session-custom-message-commit.js.map +1 -1
- package/dist/core/agent-session-detached-tools.d.ts +3 -2
- package/dist/core/agent-session-detached-tools.d.ts.map +1 -1
- package/dist/core/agent-session-detached-tools.js +156 -41
- package/dist/core/agent-session-detached-tools.js.map +1 -1
- package/dist/core/agent-session-events.d.ts +2 -1
- package/dist/core/agent-session-events.d.ts.map +1 -1
- package/dist/core/agent-session-events.js +59 -23
- package/dist/core/agent-session-events.js.map +1 -1
- package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
- package/dist/core/agent-session-extension-bindings.js +53 -4
- package/dist/core/agent-session-extension-bindings.js.map +1 -1
- package/dist/core/agent-session-message-queue.d.ts.map +1 -1
- package/dist/core/agent-session-message-queue.js +2 -1
- package/dist/core/agent-session-message-queue.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +23 -3
- 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.map +1 -1
- package/dist/core/agent-session-models.js +2 -0
- package/dist/core/agent-session-models.js.map +1 -1
- package/dist/core/agent-session-prompt.d.ts +1 -1
- package/dist/core/agent-session-prompt.d.ts.map +1 -1
- package/dist/core/agent-session-prompt.js +14 -3
- package/dist/core/agent-session-prompt.js.map +1 -1
- package/dist/core/agent-session-queue-pause.d.ts +2 -1
- package/dist/core/agent-session-queue-pause.d.ts.map +1 -1
- package/dist/core/agent-session-queue-pause.js +8 -4
- package/dist/core/agent-session-queue-pause.js.map +1 -1
- package/dist/core/agent-session-retry.d.ts +7 -3
- package/dist/core/agent-session-retry.d.ts.map +1 -1
- package/dist/core/agent-session-retry.js +113 -112
- package/dist/core/agent-session-retry.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +15 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +26 -0
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +5 -2
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +6 -6
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session-tasks.js.map +1 -1
- package/dist/core/agent-session-tool-registry.d.ts.map +1 -1
- package/dist/core/agent-session-tool-registry.js +4 -2
- package/dist/core/agent-session-tool-registry.js.map +1 -1
- package/dist/core/agent-session-types.d.ts +19 -1
- package/dist/core/agent-session-types.d.ts.map +1 -1
- package/dist/core/agent-session-types.js.map +1 -1
- package/dist/core/agent-session.d.ts +11 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +8 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/anthropic-thinking-guard.d.ts +16 -1
- package/dist/core/anthropic-thinking-guard.d.ts.map +1 -1
- package/dist/core/anthropic-thinking-guard.js +124 -7
- package/dist/core/anthropic-thinking-guard.js.map +1 -1
- package/dist/core/auth-storage.d.ts +3 -0
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +10 -0
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/detached-tool-output.d.ts +4 -0
- package/dist/core/detached-tool-output.d.ts.map +1 -0
- package/dist/core/detached-tool-output.js +48 -0
- package/dist/core/detached-tool-output.js.map +1 -0
- package/dist/core/event-loop-monitor.d.ts +4 -1
- package/dist/core/event-loop-monitor.d.ts.map +1 -1
- package/dist/core/event-loop-monitor.js +84 -159
- package/dist/core/event-loop-monitor.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js +26 -4
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/saved-agent-cards.d.ts +15 -0
- package/dist/core/export-html/saved-agent-cards.d.ts.map +1 -0
- package/dist/core/export-html/saved-agent-cards.js +255 -0
- package/dist/core/export-html/saved-agent-cards.js.map +1 -0
- package/dist/core/export-html/saved-agent-viewer.js +101 -0
- package/dist/core/extensions/builtin-subagent-record-writer.d.ts +11 -0
- package/dist/core/extensions/builtin-subagent-record-writer.d.ts.map +1 -0
- package/dist/core/extensions/builtin-subagent-record-writer.js +33 -0
- package/dist/core/extensions/builtin-subagent-record-writer.js.map +1 -0
- package/dist/core/extensions/loader-api.d.ts +1 -1
- package/dist/core/extensions/loader-api.d.ts.map +1 -1
- package/dist/core/extensions/loader-api.js +9 -2
- package/dist/core/extensions/loader-api.js.map +1 -1
- package/dist/core/extensions/loader-bindings.d.ts +7 -0
- package/dist/core/extensions/loader-bindings.d.ts.map +1 -1
- package/dist/core/extensions/loader-bindings.js +42 -1
- package/dist/core/extensions/loader-bindings.js.map +1 -1
- package/dist/core/extensions/loader-core.d.ts.map +1 -1
- package/dist/core/extensions/loader-core.js +33 -12
- package/dist/core/extensions/loader-core.js.map +1 -1
- package/dist/core/extensions/runner-events.d.ts +2 -0
- package/dist/core/extensions/runner-events.d.ts.map +1 -1
- package/dist/core/extensions/runner-events.js +17 -7
- package/dist/core/extensions/runner-events.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +6 -2
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +5 -2
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/ui-types.d.ts +4 -0
- package/dist/core/extensions/ui-types.d.ts.map +1 -1
- package/dist/core/extensions/ui-types.js.map +1 -1
- package/dist/core/extensions/workflow-run-control-hub.d.ts +2 -2
- package/dist/core/extensions/workflow-run-control-hub.d.ts.map +1 -1
- package/dist/core/extensions/workflow-run-control-hub.js +2 -2
- package/dist/core/extensions/workflow-run-control-hub.js.map +1 -1
- package/dist/core/extensions/workflow-run-control.d.ts +10 -3
- package/dist/core/extensions/workflow-run-control.d.ts.map +1 -1
- package/dist/core/extensions/workflow-run-control.js.map +1 -1
- package/dist/core/first-prompt-model.d.ts +22 -0
- package/dist/core/first-prompt-model.d.ts.map +1 -0
- package/dist/core/first-prompt-model.js +84 -0
- package/dist/core/first-prompt-model.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +11 -7
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/fork-replay-pair.d.ts +22 -0
- package/dist/core/fork-replay-pair.d.ts.map +1 -0
- package/dist/core/fork-replay-pair.js +174 -0
- package/dist/core/fork-replay-pair.js.map +1 -0
- package/dist/core/fork-replay-wire.d.ts +11 -0
- package/dist/core/fork-replay-wire.d.ts.map +1 -0
- package/dist/core/fork-replay-wire.js +116 -0
- package/dist/core/fork-replay-wire.js.map +1 -0
- package/dist/core/messages.d.ts +2 -0
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js +8 -4
- package/dist/core/messages.js.map +1 -1
- package/dist/core/model-runtime.d.ts +10 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +76 -11
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/package-manager-auto-resources.d.ts.map +1 -1
- package/dist/core/package-manager-auto-resources.js +3 -2
- package/dist/core/package-manager-auto-resources.js.map +1 -1
- package/dist/core/package-manager-resource-files.js +7 -8
- package/dist/core/package-manager-resource-files.js.map +1 -1
- package/dist/core/project-trust-state.d.ts +90 -0
- package/dist/core/project-trust-state.d.ts.map +1 -0
- package/dist/core/project-trust-state.js +65 -0
- package/dist/core/project-trust-state.js.map +1 -0
- package/dist/core/provider-rate-limits.d.ts +6 -0
- package/dist/core/provider-rate-limits.d.ts.map +1 -1
- package/dist/core/provider-rate-limits.js +43 -0
- package/dist/core/provider-rate-limits.js.map +1 -1
- package/dist/core/provider-request-admission.d.ts.map +1 -1
- package/dist/core/provider-request-admission.js +10 -1
- package/dist/core/provider-request-admission.js.map +1 -1
- package/dist/core/remote-catalog-provider.d.ts +6 -1
- package/dist/core/remote-catalog-provider.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.js +22 -1
- package/dist/core/remote-catalog-provider.js.map +1 -1
- package/dist/core/resolve-config-value.d.ts.map +1 -1
- package/dist/core/resolve-config-value.js +5 -2
- package/dist/core/resolve-config-value.js.map +1 -1
- package/dist/core/resource-loader-core.d.ts.map +1 -1
- package/dist/core/resource-loader-core.js +3 -0
- package/dist/core/resource-loader-core.js.map +1 -1
- package/dist/core/resource-loader-extensions.d.ts +2 -2
- package/dist/core/resource-loader-extensions.d.ts.map +1 -1
- package/dist/core/resource-loader-extensions.js +6 -4
- package/dist/core/resource-loader-extensions.js.map +1 -1
- package/dist/core/resource-loader-package-resources.d.ts +1 -0
- package/dist/core/resource-loader-package-resources.d.ts.map +1 -1
- package/dist/core/resource-loader-package-resources.js +2 -1
- package/dist/core/resource-loader-package-resources.js.map +1 -1
- package/dist/core/resource-loader-reload.d.ts +1 -1
- package/dist/core/resource-loader-reload.d.ts.map +1 -1
- package/dist/core/resource-loader-reload.js +3 -2
- package/dist/core/resource-loader-reload.js.map +1 -1
- package/dist/core/resource-loader-types.d.ts +2 -0
- package/dist/core/resource-loader-types.d.ts.map +1 -1
- package/dist/core/resource-loader-types.js.map +1 -1
- package/dist/core/resume/blueprint/actions.d.ts.map +1 -1
- package/dist/core/resume/blueprint/actions.js +15 -15
- package/dist/core/resume/blueprint/actions.js.map +1 -1
- package/dist/core/resume/blueprint/process.d.ts +6 -1
- package/dist/core/resume/blueprint/process.d.ts.map +1 -1
- package/dist/core/resume/blueprint/process.js +132 -21
- package/dist/core/resume/blueprint/process.js.map +1 -1
- package/dist/core/runtime-credentials.d.ts +5 -0
- package/dist/core/runtime-credentials.d.ts.map +1 -1
- package/dist/core/runtime-credentials.js +34 -0
- package/dist/core/runtime-credentials.js.map +1 -1
- package/dist/core/sdk-types.d.ts +2 -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 +187 -32
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-account-model.d.ts +15 -0
- package/dist/core/session-account-model.d.ts.map +1 -0
- package/dist/core/session-account-model.js +105 -0
- package/dist/core/session-account-model.js.map +1 -0
- package/dist/core/session-lifecycle-scope.d.ts +5 -0
- package/dist/core/session-lifecycle-scope.d.ts.map +1 -1
- package/dist/core/session-lifecycle-scope.js.map +1 -1
- package/dist/core/session-manager-core.d.ts +21 -2
- package/dist/core/session-manager-core.d.ts.map +1 -1
- package/dist/core/session-manager-core.js +64 -8
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-history.d.ts +3 -1
- package/dist/core/session-manager-history.d.ts.map +1 -1
- package/dist/core/session-manager-history.js +19 -5
- package/dist/core/session-manager-history.js.map +1 -1
- package/dist/core/session-manager-types.d.ts +2 -0
- 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-retry-status.d.ts +22 -0
- package/dist/core/session-retry-status.d.ts.map +1 -0
- package/dist/core/session-retry-status.js +25 -0
- package/dist/core/session-retry-status.js.map +1 -0
- package/dist/core/session-worktree-snapshots.d.ts +4 -2
- package/dist/core/session-worktree-snapshots.d.ts.map +1 -1
- package/dist/core/session-worktree-snapshots.js +8 -4
- package/dist/core/session-worktree-snapshots.js.map +1 -1
- package/dist/core/settings-manager-core.d.ts +4 -0
- package/dist/core/settings-manager-core.d.ts.map +1 -1
- package/dist/core/settings-manager-core.js +73 -1
- package/dist/core/settings-manager-core.js.map +1 -1
- package/dist/core/settings-schema.js +1 -1
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/slash-commands.d.ts +2 -2
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +15 -4
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/storage/database.d.ts +14 -2
- package/dist/core/storage/database.d.ts.map +1 -1
- package/dist/core/storage/database.js.map +1 -1
- package/dist/core/storage/dialect.d.ts +13 -0
- package/dist/core/storage/dialect.d.ts.map +1 -1
- package/dist/core/storage/dialect.js +9 -1
- package/dist/core/storage/dialect.js.map +1 -1
- package/dist/core/storage/errors.d.ts +23 -1
- package/dist/core/storage/errors.d.ts.map +1 -1
- package/dist/core/storage/errors.js +28 -5
- package/dist/core/storage/errors.js.map +1 -1
- package/dist/core/storage/journal-transfer.d.ts.map +1 -1
- package/dist/core/storage/journal-transfer.js +90 -5
- package/dist/core/storage/journal-transfer.js.map +1 -1
- package/dist/core/storage/node-sqlite.d.ts.map +1 -1
- package/dist/core/storage/node-sqlite.js +61 -1
- package/dist/core/storage/node-sqlite.js.map +1 -1
- package/dist/core/storage/session/chunked-resume-projection.d.ts +4 -0
- package/dist/core/storage/session/chunked-resume-projection.d.ts.map +1 -0
- package/dist/core/storage/session/chunked-resume-projection.js +369 -0
- package/dist/core/storage/session/chunked-resume-projection.js.map +1 -0
- package/dist/core/storage/session/legacy-session-store.d.ts +5 -0
- package/dist/core/storage/session/legacy-session-store.d.ts.map +1 -1
- package/dist/core/storage/session/legacy-session-store.js +10 -2
- package/dist/core/storage/session/legacy-session-store.js.map +1 -1
- package/dist/core/storage/session/memory-session-store.d.ts.map +1 -1
- package/dist/core/storage/session/memory-session-store.js +6 -1
- package/dist/core/storage/session/memory-session-store.js.map +1 -1
- package/dist/core/storage/session/snapshot-generation.d.ts +8 -0
- package/dist/core/storage/session/snapshot-generation.d.ts.map +1 -0
- package/dist/core/storage/session/snapshot-generation.js +17 -0
- package/dist/core/storage/session/snapshot-generation.js.map +1 -0
- package/dist/core/storage/session/sql-session-store.d.ts +12 -0
- package/dist/core/storage/session/sql-session-store.d.ts.map +1 -1
- package/dist/core/storage/session/sql-session-store.js +243 -46
- package/dist/core/storage/session/sql-session-store.js.map +1 -1
- package/dist/core/storage/sqlite-facade.d.ts +17 -2
- package/dist/core/storage/sqlite-facade.d.ts.map +1 -1
- package/dist/core/storage/sqlite-facade.js +17 -1
- package/dist/core/storage/sqlite-facade.js.map +1 -1
- package/dist/core/tasks/agent-adapter.d.ts +13 -2
- package/dist/core/tasks/agent-adapter.d.ts.map +1 -1
- package/dist/core/tasks/agent-adapter.js +25 -8
- package/dist/core/tasks/agent-adapter.js.map +1 -1
- package/dist/core/tasks/agent-panel-rules.d.ts +77 -0
- package/dist/core/tasks/agent-panel-rules.d.ts.map +1 -0
- package/dist/core/tasks/agent-panel-rules.js +88 -0
- package/dist/core/tasks/agent-panel-rules.js.map +1 -0
- package/dist/core/tasks/agent-panel-source.d.ts +19 -0
- package/dist/core/tasks/agent-panel-source.d.ts.map +1 -1
- package/dist/core/tasks/agent-panel-source.js +50 -9
- package/dist/core/tasks/agent-panel-source.js.map +1 -1
- package/dist/core/tasks/command-output.d.ts +17 -2
- package/dist/core/tasks/command-output.d.ts.map +1 -1
- package/dist/core/tasks/command-output.js +59 -3
- package/dist/core/tasks/command-output.js.map +1 -1
- package/dist/core/tasks/completion-message.d.ts +8 -3
- package/dist/core/tasks/completion-message.d.ts.map +1 -1
- package/dist/core/tasks/completion-message.js +14 -10
- package/dist/core/tasks/completion-message.js.map +1 -1
- package/dist/core/tasks/completion.d.ts +14 -4
- package/dist/core/tasks/completion.d.ts.map +1 -1
- package/dist/core/tasks/completion.js +58 -17
- package/dist/core/tasks/completion.js.map +1 -1
- package/dist/core/tasks/contracts.d.ts +10 -1
- package/dist/core/tasks/contracts.d.ts.map +1 -1
- package/dist/core/tasks/contracts.js +3 -1
- package/dist/core/tasks/contracts.js.map +1 -1
- package/dist/core/tasks/heartbeat.js +2 -1
- package/dist/core/tasks/heartbeat.js.map +1 -1
- package/dist/core/tasks/live-elapsed.d.ts +16 -1
- package/dist/core/tasks/live-elapsed.d.ts.map +1 -1
- package/dist/core/tasks/live-elapsed.js +43 -4
- package/dist/core/tasks/live-elapsed.js.map +1 -1
- package/dist/core/tasks/owner-store.d.ts +8 -0
- package/dist/core/tasks/owner-store.d.ts.map +1 -1
- package/dist/core/tasks/owner-store.js +34 -4
- package/dist/core/tasks/owner-store.js.map +1 -1
- package/dist/core/tasks/session-scope.d.ts +7 -0
- package/dist/core/tasks/session-scope.d.ts.map +1 -1
- package/dist/core/tasks/session-scope.js +15 -9
- package/dist/core/tasks/session-scope.js.map +1 -1
- package/dist/core/tasks/supervisor.d.ts +7 -3
- package/dist/core/tasks/supervisor.d.ts.map +1 -1
- package/dist/core/tasks/supervisor.js +92 -17
- package/dist/core/tasks/supervisor.js.map +1 -1
- package/dist/core/tasks/task-archive-snapshot.d.ts +7 -0
- package/dist/core/tasks/task-archive-snapshot.d.ts.map +1 -0
- package/dist/core/tasks/task-archive-snapshot.js +33 -0
- package/dist/core/tasks/task-archive-snapshot.js.map +1 -0
- package/dist/core/tasks/task-resumer.d.ts +5 -3
- package/dist/core/tasks/task-resumer.d.ts.map +1 -1
- package/dist/core/tasks/task-resumer.js +37 -13
- package/dist/core/tasks/task-resumer.js.map +1 -1
- package/dist/core/tasks/task-view-source.d.ts +25 -3
- package/dist/core/tasks/task-view-source.d.ts.map +1 -1
- package/dist/core/tasks/task-view-source.js +144 -44
- package/dist/core/tasks/task-view-source.js.map +1 -1
- package/dist/core/tasks/transcript.d.ts +3 -1
- package/dist/core/tasks/transcript.d.ts.map +1 -1
- package/dist/core/tasks/transcript.js +27 -0
- package/dist/core/tasks/transcript.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/dialog-builder.d.ts.map +1 -1
- package/dist/core/tools/ask-user-question/view/dialog-builder.js +2 -1
- package/dist/core/tools/ask-user-question/view/dialog-builder.js.map +1 -1
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +2 -1
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/history-protocol.d.ts.map +1 -1
- package/dist/core/tools/history-protocol.js +130 -29
- package/dist/core/tools/history-protocol.js.map +1 -1
- package/dist/core/tools/history-search-position.d.ts +30 -0
- package/dist/core/tools/history-search-position.d.ts.map +1 -0
- package/dist/core/tools/history-search-position.js +161 -0
- package/dist/core/tools/history-search-position.js.map +1 -0
- package/dist/core/tools/history-search-wire.d.ts +25 -0
- package/dist/core/tools/history-search-wire.d.ts.map +1 -0
- package/dist/core/tools/history-search-wire.js +210 -0
- package/dist/core/tools/history-search-wire.js.map +1 -0
- package/dist/core/tools/resource-selectors.d.ts +7 -1
- package/dist/core/tools/resource-selectors.d.ts.map +1 -1
- package/dist/core/tools/resource-selectors.js +18 -11
- package/dist/core/tools/resource-selectors.js.map +1 -1
- package/dist/core/tools/search.d.ts.map +1 -1
- package/dist/core/tools/search.js +24 -3
- package/dist/core/tools/search.js.map +1 -1
- package/dist/core/tools/sqlite-selector-connection.d.ts +3 -0
- package/dist/core/tools/sqlite-selector-connection.d.ts.map +1 -1
- package/dist/core/tools/sqlite-selector-connection.js +4 -0
- package/dist/core/tools/sqlite-selector-connection.js.map +1 -1
- package/dist/core/tools/tool-abort-grace.d.ts +13 -0
- package/dist/core/tools/tool-abort-grace.d.ts.map +1 -0
- package/dist/core/tools/tool-abort-grace.js +72 -0
- package/dist/core/tools/tool-abort-grace.js.map +1 -0
- package/dist/core/tools/tool-concurrency.d.ts +5 -1
- package/dist/core/tools/tool-concurrency.d.ts.map +1 -1
- package/dist/core/tools/tool-concurrency.js +36 -6
- package/dist/core/tools/tool-concurrency.js.map +1 -1
- package/dist/core/workflow-resume.d.ts +1 -1
- package/dist/core/workflow-resume.d.ts.map +1 -1
- package/dist/core/workflow-resume.js +13 -3
- package/dist/core/workflow-resume.js.map +1 -1
- package/dist/core/workflow-summary-lifecycle.d.ts.map +1 -1
- package/dist/core/workflow-summary-lifecycle.js +8 -2
- package/dist/core/workflow-summary-lifecycle.js.map +1 -1
- package/dist/core/workspace/errors.d.ts +5 -2
- package/dist/core/workspace/errors.d.ts.map +1 -1
- package/dist/core/workspace/errors.js +59 -5
- package/dist/core/workspace/errors.js.map +1 -1
- package/dist/core/worktree-snapshot/blob-store.d.ts +138 -17
- package/dist/core/worktree-snapshot/blob-store.d.ts.map +1 -1
- package/dist/core/worktree-snapshot/blob-store.js +788 -82
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- package/dist/core/worktree-snapshot/garbage.d.ts +17 -2
- package/dist/core/worktree-snapshot/garbage.d.ts.map +1 -1
- package/dist/core/worktree-snapshot/garbage.js +20 -4
- package/dist/core/worktree-snapshot/garbage.js.map +1 -1
- package/dist/core/worktree-snapshot/index.d.ts +1 -1
- package/dist/core/worktree-snapshot/index.d.ts.map +1 -1
- package/dist/core/worktree-snapshot/index.js +1 -1
- package/dist/core/worktree-snapshot/index.js.map +1 -1
- package/dist/core/worktree-snapshot/pool.d.ts.map +1 -1
- package/dist/core/worktree-snapshot/pool.js +38 -6
- package/dist/core/worktree-snapshot/pool.js.map +1 -1
- package/dist/core/worktree-snapshot/shared-clock.d.ts +3 -1
- package/dist/core/worktree-snapshot/shared-clock.d.ts.map +1 -1
- package/dist/core/worktree-snapshot/shared-clock.js +116 -26
- package/dist/core/worktree-snapshot/shared-clock.js.map +1 -1
- package/dist/core/worktree-snapshot/types.d.ts +4 -1
- package/dist/core/worktree-snapshot/types.d.ts.map +1 -1
- package/dist/core/worktree-snapshot/types.js.map +1 -1
- package/dist/extensions/llama/huggingface-ui.d.ts.map +1 -1
- package/dist/extensions/llama/huggingface-ui.js +2 -2
- package/dist/extensions/llama/huggingface-ui.js.map +1 -1
- package/dist/extensions/llama/index.d.ts +2 -0
- package/dist/extensions/llama/index.d.ts.map +1 -1
- package/dist/extensions/llama/index.js +19 -2
- package/dist/extensions/llama/index.js.map +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +74 -15
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/agent-panel.d.ts +22 -6
- package/dist/modes/interactive/components/agent-panel.d.ts.map +1 -1
- package/dist/modes/interactive/components/agent-panel.js +80 -23
- package/dist/modes/interactive/components/agent-panel.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +2 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +11 -0
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/atomic-working-status.d.ts.map +1 -1
- package/dist/modes/interactive/components/atomic-working-status.js +10 -3
- package/dist/modes/interactive/components/atomic-working-status.js.map +1 -1
- package/dist/modes/interactive/components/bash-execution.d.ts +3 -2
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/bash-execution.js +7 -7
- package/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts +6 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.js +12 -7
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/chat-message-renderer.d.ts +2 -0
- package/dist/modes/interactive/components/chat-message-renderer.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-message-renderer.js +24 -3
- package/dist/modes/interactive/components/chat-message-renderer.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-actions.d.ts +1 -1
- package/dist/modes/interactive/components/chat-session-host-actions.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-actions.js +16 -10
- package/dist/modes/interactive/components/chat-session-host-actions.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-events.d.ts +10 -0
- package/dist/modes/interactive/components/chat-session-host-events.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-events.js +76 -31
- package/dist/modes/interactive/components/chat-session-host-events.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-rendering.d.ts +17 -5
- package/dist/modes/interactive/components/chat-session-host-rendering.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-rendering.js +79 -24
- package/dist/modes/interactive/components/chat-session-host-rendering.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-runtime.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-runtime.js +5 -4
- package/dist/modes/interactive/components/chat-session-host-runtime.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-state.d.ts +16 -1
- package/dist/modes/interactive/components/chat-session-host-state.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-state.js +22 -0
- package/dist/modes/interactive/components/chat-session-host-state.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-types.d.ts +8 -2
- package/dist/modes/interactive/components/chat-session-host-types.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-types.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-utils.d.ts +1 -0
- package/dist/modes/interactive/components/chat-session-host-utils.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-utils.js +2 -1
- package/dist/modes/interactive/components/chat-session-host-utils.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host.d.ts +35 -9
- package/dist/modes/interactive/components/chat-session-host.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host.js +129 -35
- package/dist/modes/interactive/components/chat-session-host.js.map +1 -1
- package/dist/modes/interactive/components/chat-transcript.d.ts +13 -2
- package/dist/modes/interactive/components/chat-transcript.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-transcript.js +24 -4
- package/dist/modes/interactive/components/chat-transcript.js.map +1 -1
- package/dist/modes/interactive/components/compaction-boundary-message.d.ts +6 -0
- package/dist/modes/interactive/components/compaction-boundary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/compaction-boundary-message.js +12 -7
- package/dist/modes/interactive/components/compaction-boundary-message.js.map +1 -1
- package/dist/modes/interactive/components/composer-rule.d.ts +0 -2
- package/dist/modes/interactive/components/composer-rule.d.ts.map +1 -1
- package/dist/modes/interactive/components/composer-rule.js +4 -6
- package/dist/modes/interactive/components/composer-rule.js.map +1 -1
- package/dist/modes/interactive/components/countdown-timer.d.ts +5 -9
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -1
- package/dist/modes/interactive/components/countdown-timer.js +32 -23
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-editor.js +4 -3
- package/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/dist/modes/interactive/components/custom-entry.d.ts +6 -0
- package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-entry.js +15 -0
- package/dist/modes/interactive/components/custom-entry.js.map +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts +7 -3
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-message.js +17 -15
- package/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +10 -3
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +37 -45
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/heartbeat-block.d.ts.map +1 -1
- package/dist/modes/interactive/components/heartbeat-block.js +3 -1
- package/dist/modes/interactive/components/heartbeat-block.js.map +1 -1
- package/dist/modes/interactive/components/host-input-form.d.ts.map +1 -1
- package/dist/modes/interactive/components/host-input-form.js +3 -3
- package/dist/modes/interactive/components/host-input-form.js.map +1 -1
- package/dist/modes/interactive/components/index.d.ts +1 -1
- package/dist/modes/interactive/components/index.d.ts.map +1 -1
- package/dist/modes/interactive/components/index.js.map +1 -1
- package/dist/modes/interactive/components/input-label.d.ts.map +1 -1
- package/dist/modes/interactive/components/input-label.js +4 -5
- package/dist/modes/interactive/components/input-label.js.map +1 -1
- package/dist/modes/interactive/components/keybinding-hints.d.ts +7 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -1
- package/dist/modes/interactive/components/keybinding-hints.js +27 -6
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -1
- package/dist/modes/interactive/components/main-composer-keys.d.ts +17 -2
- package/dist/modes/interactive/components/main-composer-keys.d.ts.map +1 -1
- package/dist/modes/interactive/components/main-composer-keys.js +44 -27
- package/dist/modes/interactive/components/main-composer-keys.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts +6 -1
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +13 -7
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/nav-keys.d.ts +7 -2
- package/dist/modes/interactive/components/nav-keys.d.ts.map +1 -1
- package/dist/modes/interactive/components/nav-keys.js +51 -17
- package/dist/modes/interactive/components/nav-keys.js.map +1 -1
- package/dist/modes/interactive/components/notice-line.d.ts +8 -0
- package/dist/modes/interactive/components/notice-line.d.ts.map +1 -1
- package/dist/modes/interactive/components/notice-line.js +6 -1
- package/dist/modes/interactive/components/notice-line.js.map +1 -1
- package/dist/modes/interactive/components/selector.d.ts +3 -0
- package/dist/modes/interactive/components/selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/selector.js +30 -7
- package/dist/modes/interactive/components/selector.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-list.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector-list.js +11 -11
- package/dist/modes/interactive/components/session-selector-list.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +2 -2
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-picker.d.ts +5 -0
- package/dist/modes/interactive/components/settings-picker.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-picker.js +36 -2
- package/dist/modes/interactive/components/settings-picker.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector-submenus.d.ts +10 -0
- package/dist/modes/interactive/components/settings-selector-submenus.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector-submenus.js +89 -19
- package/dist/modes/interactive/components/settings-selector-submenus.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector-types.d.ts +6 -0
- package/dist/modes/interactive/components/settings-selector-types.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +7 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +12 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +6 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.js +12 -7
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
- package/dist/modes/interactive/components/task-board.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-board.js +9 -2
- package/dist/modes/interactive/components/task-board.js.map +1 -1
- package/dist/modes/interactive/components/task-completion-message.d.ts +10 -3
- package/dist/modes/interactive/components/task-completion-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-completion-message.js +173 -19
- package/dist/modes/interactive/components/task-completion-message.js.map +1 -1
- package/dist/modes/interactive/components/task-inspector.d.ts +1 -1
- package/dist/modes/interactive/components/task-inspector.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-inspector.js +28 -19
- package/dist/modes/interactive/components/task-inspector.js.map +1 -1
- package/dist/modes/interactive/components/task-list.d.ts +7 -3
- package/dist/modes/interactive/components/task-list.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-list.js +60 -33
- package/dist/modes/interactive/components/task-list.js.map +1 -1
- package/dist/modes/interactive/components/task-row.d.ts +7 -0
- package/dist/modes/interactive/components/task-row.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-row.js +25 -11
- package/dist/modes/interactive/components/task-row.js.map +1 -1
- package/dist/modes/interactive/components/task-transcript-notices.d.ts +16 -0
- package/dist/modes/interactive/components/task-transcript-notices.d.ts.map +1 -0
- package/dist/modes/interactive/components/task-transcript-notices.js +74 -0
- package/dist/modes/interactive/components/task-transcript-notices.js.map +1 -0
- package/dist/modes/interactive/components/task-transcript-page.d.ts +11 -6
- package/dist/modes/interactive/components/task-transcript-page.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-transcript-page.js +48 -21
- package/dist/modes/interactive/components/task-transcript-page.js.map +1 -1
- package/dist/modes/interactive/components/tool-block-families.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-block-families.js +2 -1
- package/dist/modes/interactive/components/tool-block-families.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +3 -2
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +23 -9
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/transcript-block-clicks.d.ts +54 -14
- package/dist/modes/interactive/components/transcript-block-clicks.d.ts.map +1 -1
- package/dist/modes/interactive/components/transcript-block-clicks.js +151 -16
- package/dist/modes/interactive/components/transcript-block-clicks.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-help.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector-help.js +25 -30
- package/dist/modes/interactive/components/tree-selector-help.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-list.d.ts +4 -0
- package/dist/modes/interactive/components/tree-selector-list.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector-list.js +21 -21
- package/dist/modes/interactive/components/tree-selector-list.js.map +1 -1
- package/dist/modes/interactive/components/working-run-meter.d.ts +31 -2
- package/dist/modes/interactive/components/working-run-meter.d.ts.map +1 -1
- package/dist/modes/interactive/components/working-run-meter.js +81 -10
- package/dist/modes/interactive/components/working-run-meter.js.map +1 -1
- package/dist/modes/interactive/interactive-agent-events.js +67 -14
- package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
- package/dist/modes/interactive/interactive-autocomplete.js +2 -2
- package/dist/modes/interactive/interactive-autocomplete.js.map +1 -1
- package/dist/modes/interactive/interactive-deferred-startup.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-deferred-startup.js +10 -4
- package/dist/modes/interactive/interactive-deferred-startup.js.map +1 -1
- package/dist/modes/interactive/interactive-editor-actions.js +4 -1
- package/dist/modes/interactive/interactive-editor-actions.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-custom-ui.js +13 -3
- package/dist/modes/interactive/interactive-extension-custom-ui.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-runtime.js +4 -2
- package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-widgets.js +6 -8
- package/dist/modes/interactive/interactive-extension-widgets.js.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.js +43 -3
- package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-base.d.ts +7 -0
- package/dist/modes/interactive/interactive-mode-base.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-base.js +9 -2
- package/dist/modes/interactive/interactive-mode-base.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-deps.d.ts +1 -1
- package/dist/modes/interactive/interactive-mode-deps.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-deps.js +1 -1
- package/dist/modes/interactive/interactive-mode-deps.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-helpers.d.ts +5 -0
- package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-helpers.js +9 -0
- package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.d.ts +10 -2
- 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.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-model-routing.js +63 -21
- package/dist/modes/interactive/interactive-model-routing.js.map +1 -1
- package/dist/modes/interactive/interactive-prompt-turn.js +1 -1
- package/dist/modes/interactive/interactive-prompt-turn.js.map +1 -1
- package/dist/modes/interactive/interactive-render-chat.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-render-chat.js +71 -10
- package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
- package/dist/modes/interactive/interactive-resource-rendering.js +9 -18
- package/dist/modes/interactive/interactive-resource-rendering.js.map +1 -1
- package/dist/modes/interactive/interactive-selectors.js +106 -57
- package/dist/modes/interactive/interactive-selectors.js.map +1 -1
- package/dist/modes/interactive/interactive-session-routing.js +10 -5
- package/dist/modes/interactive/interactive-session-routing.js.map +1 -1
- package/dist/modes/interactive/interactive-session-runtime.d.ts +3 -0
- package/dist/modes/interactive/interactive-session-runtime.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-session-runtime.js +11 -0
- package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
- package/dist/modes/interactive/interactive-slash-commands.js +3 -0
- package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
- package/dist/modes/interactive/interactive-startup-chat-container.d.ts +5 -1
- package/dist/modes/interactive/interactive-startup-chat-container.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-startup-chat-container.js +8 -3
- package/dist/modes/interactive/interactive-startup-chat-container.js.map +1 -1
- package/dist/modes/interactive/interactive-startup-trust.d.ts +2 -0
- package/dist/modes/interactive/interactive-startup-trust.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-startup-trust.js +21 -0
- package/dist/modes/interactive/interactive-startup-trust.js.map +1 -1
- package/dist/modes/interactive/interactive-startup.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-startup.js +39 -17
- package/dist/modes/interactive/interactive-startup.js.map +1 -1
- package/dist/modes/interactive/interactive-task-projection.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-task-projection.js +11 -1
- package/dist/modes/interactive/interactive-task-projection.js.map +1 -1
- package/dist/modes/interactive/resume-catalog.d.ts.map +1 -1
- package/dist/modes/interactive/resume-catalog.js +1 -0
- package/dist/modes/interactive/resume-catalog.js.map +1 -1
- package/dist/modes/interactive/theme/theme-controller.d.ts +6 -1
- package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme-controller.js +19 -1
- package/dist/modes/interactive/theme/theme-controller.js.map +1 -1
- package/dist/modes/interactive-engine/engine-child-liveness.d.ts +2 -0
- package/dist/modes/interactive-engine/engine-child-liveness.d.ts.map +1 -1
- package/dist/modes/interactive-engine/engine-child-liveness.js +2 -0
- package/dist/modes/interactive-engine/engine-child-liveness.js.map +1 -1
- package/dist/modes/interactive-engine/engine-custom-ui.d.ts.map +1 -1
- package/dist/modes/interactive-engine/engine-custom-ui.js +54 -4
- package/dist/modes/interactive-engine/engine-custom-ui.js.map +1 -1
- package/dist/modes/interactive-engine/engine-render-service.d.ts.map +1 -1
- package/dist/modes/interactive-engine/engine-render-service.js +21 -2
- package/dist/modes/interactive-engine/engine-render-service.js.map +1 -1
- package/dist/modes/interactive-engine/extension-ui-bridge.d.ts +4 -2
- package/dist/modes/interactive-engine/extension-ui-bridge.d.ts.map +1 -1
- package/dist/modes/interactive-engine/extension-ui-bridge.js +4 -0
- package/dist/modes/interactive-engine/extension-ui-bridge.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +39 -3
- package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.js +219 -29
- package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
- package/dist/modes/interactive-engine/protocol.d.ts +33 -1
- package/dist/modes/interactive-engine/protocol.d.ts.map +1 -1
- package/dist/modes/interactive-engine/protocol.js +40 -2
- package/dist/modes/interactive-engine/protocol.js.map +1 -1
- package/dist/modes/interactive-engine/remote-command-catalog.d.ts +2 -2
- package/dist/modes/interactive-engine/remote-command-catalog.d.ts.map +1 -1
- package/dist/modes/interactive-engine/remote-command-catalog.js +7 -3
- package/dist/modes/interactive-engine/remote-command-catalog.js.map +1 -1
- package/dist/modes/interactive-engine/remote-component.d.ts.map +1 -1
- package/dist/modes/interactive-engine/remote-component.js +31 -5
- package/dist/modes/interactive-engine/remote-component.js.map +1 -1
- package/dist/modes/interactive-engine/remote-renderer.d.ts +20 -12
- package/dist/modes/interactive-engine/remote-renderer.d.ts.map +1 -1
- package/dist/modes/interactive-engine/remote-renderer.js +100 -34
- package/dist/modes/interactive-engine/remote-renderer.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +4 -1
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/agent-panel-bridge.d.ts +7 -0
- package/dist/modes/rpc/agent-panel-bridge.d.ts.map +1 -1
- package/dist/modes/rpc/agent-panel-bridge.js +119 -114
- package/dist/modes/rpc/agent-panel-bridge.js.map +1 -1
- package/dist/modes/rpc/rpc-client-process.d.ts +2 -1
- package/dist/modes/rpc/rpc-client-process.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-process.js +2 -1
- package/dist/modes/rpc/rpc-client-process.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +8 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +5 -1
- 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 +19 -2
- package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +4 -2
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-session-binding.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-session-binding.js +7 -0
- package/dist/modes/rpc/rpc-session-binding.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +13 -1
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/utils/interactive-engine-bootstrap.d.ts +3 -0
- package/dist/utils/interactive-engine-bootstrap.d.ts.map +1 -1
- package/dist/utils/interactive-engine-bootstrap.js +25 -0
- package/dist/utils/interactive-engine-bootstrap.js.map +1 -1
- package/dist/utils/interactive-engine-env.d.ts +3 -0
- package/dist/utils/interactive-engine-env.d.ts.map +1 -1
- package/dist/utils/interactive-engine-env.js +1 -0
- package/dist/utils/interactive-engine-env.js.map +1 -1
- package/dist/utils/shell.d.ts +2 -0
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +3 -3
- package/dist/utils/shell.js.map +1 -1
- package/docs/background-tasks.md +32 -37
- package/docs/compaction.md +2 -2
- package/docs/computer-use.md +2 -0
- package/docs/development.md +11 -1
- package/docs/environment-variables.md +2 -0
- package/docs/extensions/api-reference.md +7 -3
- package/docs/extensions/authoring.md +3 -1
- package/docs/extensions/events.md +3 -1
- package/docs/extensions/ui.md +2 -0
- package/docs/guides/resume-on-any-machine.md +3 -1
- package/docs/intercom/reference.md +1 -1
- package/docs/intercom.md +3 -3
- package/docs/keybindings.md +6 -2
- package/docs/libraries/tui.md +4 -0
- package/docs/providers.md +1 -1
- package/docs/rpc/protocol.md +6 -4
- package/docs/sdk/reference.md +10 -4
- package/docs/sdk.md +5 -2
- package/docs/security.md +5 -1
- package/docs/session-format.md +1 -1
- package/docs/sessions.md +16 -0
- package/docs/settings.md +2 -2
- package/docs/skills.md +3 -3
- package/docs/storage.md +25 -4
- package/docs/subagents.md +42 -45
- package/docs/tui.md +1 -1
- package/docs/usage.md +3 -1
- package/docs/workflows/api-reference.md +3 -1
- package/docs/workflows/authoring.md +1 -1
- package/docs/workflows/operations.md +21 -14
- package/docs/workflows.md +1 -1
- package/docs/worktree-snapshots.md +10 -8
- package/npm-shrinkwrap.json +71 -49
- package/package.json +9 -8
- package/schemas/settings.schema.json +1 -1
|
@@ -634,6 +634,8 @@ pi.registerTool({
|
|
|
634
634
|
});
|
|
635
635
|
```
|
|
636
636
|
|
|
637
|
+
Stop promptly when `signal` aborts: the user interrupted the turn, or its session is stopping. A call that has not returned 10 seconds after the abort (`ATOMIC_TOOL_ABORT_GRACE_MS`) gets an `Operation aborted` error result so the turn can end, and the next tool call no longer waits for it. Its promise may still settle, but its late return value or error is discarded, not added to the transcript or sent to the model. A call still waiting for an earlier call when the turn is interrupted never starts: it gets `Operation aborted` at once.
|
|
638
|
+
|
|
637
639
|
### pi.sendMessage(message, options?)
|
|
638
640
|
|
|
639
641
|
Inject a custom message into the session. The call returns `void | Promise<void>` for compatibility with synchronous hosts; use `await Promise.resolve(pi.sendMessage(...))` when admission or routing failure must be observed. Atomic's AgentSession runtime returns an admission receipt: it settles after the message is accepted by the local queue or workflow late-message route, without waiting for the resulting model turn to finish.
|
|
@@ -729,7 +731,7 @@ During a transactional reload's `session_start` handler, `pi.appendEntry`, `pi.s
|
|
|
729
731
|
|
|
730
732
|
### pi.registerEntryRenderer(customType, renderer)
|
|
731
733
|
|
|
732
|
-
Register a TUI renderer for durable custom entries created by `pi.appendEntry()`. These entries render in the transcript but do not enter model context.
|
|
734
|
+
Register a TUI renderer for durable custom entries created by `pi.appendEntry()`. These entries render in the transcript but do not enter model context. Ctrl+O, or a click on the entry in fullscreen mode, toggles `expanded`.
|
|
733
735
|
|
|
734
736
|
SDK hosts can inspect the original callback with `session.extensionRunner.getEntryRenderer(customType)`. To render through the owning session, call `session.extensionRunner.renderEntry(customType, entry, { expanded }, theme)`; retired runners reject rendering.
|
|
735
737
|
|
|
@@ -848,7 +850,7 @@ mode and would not execute if sent via `prompt`.
|
|
|
848
850
|
|
|
849
851
|
### pi.registerMessageRenderer(customType, renderer)
|
|
850
852
|
|
|
851
|
-
Register a custom TUI renderer for messages with your `customType`. The renderer options contain `expanded` and the current numeric `outputPad`, so custom output can align with built-in messages. The same options are provided in normal and isolated-engine rendering. See [Custom UI](/extensions/ui#custom-ui).
|
|
853
|
+
Register a custom TUI renderer for messages with your `customType`. The renderer options contain `expanded` and the current numeric `outputPad`, so custom output can align with built-in messages. The same options are provided in normal and isolated-engine rendering. A click on the message in fullscreen mode toggles `expanded` for it, as Ctrl+O does, when that changes what the renderer draws. See [Custom UI](/extensions/ui#custom-ui).
|
|
852
854
|
|
|
853
855
|
### pi.registerMarkdownTransformer(transformer)
|
|
854
856
|
|
|
@@ -974,7 +976,8 @@ Return at most 10,000 rows per source. Atomic ignores additional rows and warns
|
|
|
974
976
|
| `waitingOn` | What a `waiting` item waits on, shown as `waiting on <waitingOn>`. |
|
|
975
977
|
| `queued` | Messages typed to it that it has not taken yet. A non-negative safe integer. |
|
|
976
978
|
| `endedAt` | When a finished item finished, in finite, non-negative epoch milliseconds. |
|
|
977
|
-
| `viewed` | For a finished `workflow` item, whether the user has opened it. A finished workflow row stays in the panel until it is viewed: opening it from the panel or `/tasks` counts, and a source sets `viewed: true` when the user opens the item another way.
|
|
979
|
+
| `viewed` | For a finished `workflow` item, whether the user has opened it. A finished workflow row stays in the panel until it is viewed: opening it from the panel or `/tasks` counts, and a source sets `viewed: true` when the user opens the item another way. A `done` or `failed` `agent` row leaves the panel as soon as it finishes. A `stopped` or `paused` `agent` row, and a `paused` `workflow` row, stay while another row is active or a background shell runs, and leave once nothing is. |
|
|
980
|
+
| `runGeneration` | Optional opaque identity of the item's latest run. Use a per-item counter rather than a timestamp: two attempts can start in the same millisecond. Advance it whenever the item runs again (resumed, woken or sent a follow-up), not when the source republishes the same attempt. A `stopped` or `paused` row that left the panel is listed again while other work runs once this changes, even if it ran only briefly between two updates. Without it, such a row comes back only after the panel has seen it in another state. |
|
|
978
981
|
|
|
979
982
|
Atomic strips terminal control sequences from the text fields before drawing them. An item with invalid fields is skipped, and `items()` or `subscribe` throwing is reported as an extension error. The source's other items, and the other sources, are still shown.
|
|
980
983
|
|
|
@@ -1214,6 +1217,7 @@ Registered servers are the lowest-precedence MCP layer. They replace a same-name
|
|
|
1214
1217
|
## Error Handling
|
|
1215
1218
|
|
|
1216
1219
|
- Extension errors are logged, agent continues
|
|
1220
|
+
- In the interactive terminal, a `session_start` or `resources_discover` handler that throws, at startup, with `-c`/`--resume`, on `/new`, `/resume`, `/fork` or `/reload`, is shown once with the extension's path and error, and the session keeps working. The extension stays loaded, so its commands, tools and other handlers still run. Print mode (`-p`), standalone RPC mode (`--mode rpc`), SDK sessions and workflow stages instead fail startup with `ExtensionStartupError`, which names each failing extension.
|
|
1217
1221
|
- `tool_call` errors block the tool (fail-safe)
|
|
1218
1222
|
- Tool `execute` errors must be signaled by throwing; the thrown error is caught, reported to the LLM with `isError: true`, and execution continues
|
|
1219
1223
|
|
|
@@ -710,6 +710,8 @@ The same functions are available as `options.keyHint()` and `options.keyText()`
|
|
|
710
710
|
|
|
711
711
|
In renderers, use these instead of importing `keyHint()`, `keyHintIfBound()` or `keyText()` from `@bastani/atomic`. An extension can resolve its own copy of the package, for example from its own `node_modules`, and that copy does not see Atomic's configured keybindings: `app.*` ids then format as `""`. `rawKeyHint(key, description)` formats a literal key string and is safe to import.
|
|
712
712
|
|
|
713
|
+
In fullscreen mode, a click on a hint from `keyHint()` or `rawKeyHint()` presses the key it names. The hint carries zero-width marks for this, which the renderer removes before writing to the terminal; use `keyText()` for key names you put in plain text, such as a notification or a log line. To make a hint you write as text clickable, pass it through `clickableHintText()` from `@bastani/atomic-tui`, for example `clickableHintText("↑↓ select · enter choose · esc cancel")`.
|
|
714
|
+
|
|
713
715
|
Use namespaced keybinding ids:
|
|
714
716
|
- Coding-agent ids use the `app.*` namespace, for example `app.tools.expand`, `app.editor.external`, `app.session.rename`
|
|
715
717
|
- Shared TUI ids use the `tui.*` namespace, for example `tui.select.confirm`, `tui.select.cancel`, `tui.input.tab`
|
|
@@ -723,7 +725,7 @@ Custom editors and `ctx.ui.custom()` components receive `keybindings: Keybinding
|
|
|
723
725
|
- Use `Text` with padding `(0, 0)`. The default Box handles padding.
|
|
724
726
|
- Use `\n` for multi-line content.
|
|
725
727
|
- Handle `isPartial` for streaming progress.
|
|
726
|
-
- Support `expanded` for detail on demand.
|
|
728
|
+
- Support `expanded` for detail on demand. Ctrl+O sets it for every block, and a click on your block toggles it for that block alone.
|
|
727
729
|
- Keep default view compact.
|
|
728
730
|
- Read `context.args` in `renderResult` instead of copying args into `context.state`.
|
|
729
731
|
- Use `context.state` only for data that must be shared across call and result slots.
|
|
@@ -9,7 +9,7 @@ description: Every extension event, its payload, and its return contract.
|
|
|
9
9
|
|
|
10
10
|
### Lifecycle Overview
|
|
11
11
|
|
|
12
|
-
Interactive trust-gated startup first emits `session_start` and `resources_discover` for the permitted trust-safe extensions, then resolves `project_trust`. After authorization, newly loaded extensions receive `session_start`; resource discovery runs again against the completed set. Existing reporters keep their session and do not receive a second `session_start`. Noninteractive startup resolves trust before the ordinary session lifecycle.
|
|
12
|
+
Interactive trust-gated startup first emits `session_start` and `resources_discover` for the permitted trust-safe extensions, then resolves `project_trust`. After authorization, newly loaded extensions receive `session_start`; resource discovery runs again against the completed set. A `resources_discover` handler that fails both times with the same error is reported once. Different handlers are reported separately, even if they throw the same message or their extensions have the same display name. Existing reporters keep their session and do not receive a second `session_start`. Noninteractive startup resolves trust before the ordinary session lifecycle.
|
|
13
13
|
|
|
14
14
|
```
|
|
15
15
|
Atomic starts
|
|
@@ -150,6 +150,8 @@ pi.on("session_start", async (event, ctx) => {
|
|
|
150
150
|
});
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
+
If the handler throws, the interactive terminal shows the error with the extension's path and keeps the session; print mode, RPC mode, SDK sessions and workflow stages fail startup instead. See [Error Handling](/extensions/api-reference#error-handling).
|
|
154
|
+
|
|
153
155
|
#### session_recovery_restore / session_recovery_replay
|
|
154
156
|
|
|
155
157
|
Fired once per session when the host recovers work an earlier process left unfinished. The interactive host does this after the transcript is visible. SDK and RPC hosts do it when they call `session.startPendingRecovery()` or send `start_pending_recovery`. Startup binding never fires them.
|
package/docs/extensions/ui.md
CHANGED
|
@@ -428,6 +428,8 @@ pi.registerMessageRenderer("my-extension", (message, options, theme) => {
|
|
|
428
428
|
});
|
|
429
429
|
```
|
|
430
430
|
|
|
431
|
+
In fullscreen mode a click anywhere on the message toggles `expanded` for that message alone, as Ctrl+O does for every block, and Atomic calls your renderer again. If your renderer draws the same rows either way, the click leaves the message as it is.
|
|
432
|
+
|
|
431
433
|
Messages are sent via `pi.sendMessage()`:
|
|
432
434
|
|
|
433
435
|
```typescript
|
|
@@ -119,7 +119,7 @@ When a resume restores a worktree, Atomic builds it, in this order: the global b
|
|
|
119
119
|
|
|
120
120
|
Like Devin's differential builds, a build compares each workspace's blueprint with the last successful build of that workspace on this machine. An unchanged workspace is inherited: its `initialize` is skipped and its `maintenance` runs on top of the existing state. A changed, new or previously failed workspace is rebuilt: `initialize` and `maintenance` both run. A workspace that is no longer configured is removed from the record. A full build, where every workspace is rebuilt and the global `initialize` runs, replaces a differential one when the global blueprint changed or the last full build is older than 7 days. Editing a blueprint is all it takes to retry it.
|
|
121
121
|
|
|
122
|
-
A step fails when its command exits non-zero, a PowerShell error is raised, or it
|
|
122
|
+
A step fails when its command exits non-zero, a PowerShell error is raised, it times out, or its program cannot be started; a program the system refuses for a moment (`EPERM` or `EBUSY` on Windows, `ETXTBSY` on Linux, as while an antivirus scan or the installer that just wrote it still holds the file) is tried again for up to half a second first, so a program that stays refused fails its step at most half a second later. A refused program is not started after the step’s timeout, even if the system clock moves backward. Time spent asleep counts toward the retry deadline and the budget for launching a fetched action. Reported step durations include that time. As in GitHub Actions, the rest of that step stops at once, and as in Devin, "only the setup steps of the failing blueprints did not run": the remaining `initialize` steps and the `maintenance` of that blueprint are skipped, while the other repositories and workspaces keep building. Setup never blocks a resume:
|
|
123
123
|
|
|
124
124
|
| What happened | Outcome | What you see |
|
|
125
125
|
|---|---|---|
|
|
@@ -127,6 +127,8 @@ A step fails when its command exits non-zero, a PowerShell error is raised, or i
|
|
|
127
127
|
| The global blueprint or its `post-build` failed | Failed. Repositories are not built after a global failure. | A prominent warning. The session resumes anyway. |
|
|
128
128
|
| No blueprint, an untrusted worktree, or a platform with no document | Nothing ran. | Nothing. |
|
|
129
129
|
|
|
130
|
+
On Windows, if you stop a step after its command has exited and Windows could not put the command in a Job object, Atomic warns that descendants may still be running. Check for processes the step started before retrying it. Atomic does not reuse the exited command’s PID to stop them.
|
|
131
|
+
|
|
130
132
|
Every step writes a log under `~/.atomic/agent/worktree-snapshots/blueprint-logs` with the step's name, command, start and finish times, duration, exit status or timeout and output; the warning gives the path. The fix is to read the log, fix the environment and the blueprint, and resume: a worktree whose last build failed or never finished is built again on its next resume, whether you resume a session or a workflow run, and an edited blueprint is rebuilt. Builds that run at the same time, for example several pooled children restoring on one host, take turns writing the build record.
|
|
131
133
|
|
|
132
134
|
### Start the first turn while the build runs
|
|
@@ -72,7 +72,7 @@ A reopened session or a restored background subagent registers under the Interco
|
|
|
72
72
|
| Target | Reaches |
|
|
73
73
|
| --- | --- |
|
|
74
74
|
| `subagent-worker-*`, `subagent-*`, `*` | Every live session visible in your groups whose name matches, except you. `*` matches any run of characters and is case-insensitive; `*` alone reaches every visible session. |
|
|
75
|
-
| `subagents:*` | Every subagent this session launched, in any run, that is running
|
|
75
|
+
| `subagents:*` | Every subagent this session launched, in any run, that is running, released, or paused. |
|
|
76
76
|
| `subagents:<runId>/*` | The same, for the children of one `subagent` run. |
|
|
77
77
|
|
|
78
78
|
Each recipient gets its own direct send, with the same delivery, refusals, receipts, and reconnect retries as sending to it by name. A paused subagent's message is held for it exactly as a direct send to it would be. The result lists every recipient with its outcome: `delivered`, `queued`, `not delivered` with the reason, or `outcome unknown`. It is an error only when no recipient was reached. A glob that matches no visible session is an error that lists the closest visible names, and `subagents:` with no such child is an error too.
|
package/docs/intercom.md
CHANGED
|
@@ -158,7 +158,7 @@ The sender chooses `delivery` for each message; override the default by urgency.
|
|
|
158
158
|
|
|
159
159
|
For example, `intercom({ action: "send", to: "worker", message: "Stop; the spec changed", delivery: "interrupt" })` stops the worker's current tool call. With `"interrupt"`, tools that ignore cancellation finish first, and completed side effects are not undone or replayed.
|
|
160
160
|
|
|
161
|
-
This works for
|
|
161
|
+
This works for every child. Startup messages join the original task, multiple messages keep arrival order, and asks retain their reply thread. Messages from one sender always reach the recipient in the order they arrived, whichever way each is admitted: at once, after the recipient goes idle, on resume, or relayed by a closed workflow stage. A message admitted at once is written after any earlier message from the same sender that was still waiting for the recipient to go idle. Subagent `pause` and `quit`, owner cancellation, host stop, and terminal children or closed stages take precedence over later input. Use an exact child name or full session ID from `intercom list`, not a workflow-stage path.
|
|
162
162
|
|
|
163
163
|
A busy non-interactive recipient that is neither an admitted subagent nor a workflow stage can still refuse a message without interrupting its task. A successful `send` receipt means the recipient saved the message, not that its model accepted it. The refusal carries the original reply thread: an `ask` gets it as a failed-ask message (or as an error while its call is still waiting); otherwise the sender sees **Intercom delivery failed** feedback with a `Sent:` timestamp. That feedback bypasses the ordinary idle queue and does not trigger a standalone agent turn. During an active turn, protected delivery makes it visible and reconciles it at a protocol-safe boundary. Its wording describes the refused send, not the recipient's later activity.
|
|
164
164
|
|
|
@@ -271,7 +271,7 @@ When Atomic's [subagent runtime](/subagents) admits a delegated child, the child
|
|
|
271
271
|
|
|
272
272
|
The tool appears only in a delegated child whose parent granted supervisor coordination. Otherwise the child receives only ordinary `intercom`. Supervisor identity is supplied by the runtime, not environment variables.
|
|
273
273
|
|
|
274
|
-
|
|
274
|
+
A parent-targeted `contact_supervisor` request waits in its original child execution; an `intercom` ask to the parent returns at delivery and its reply arrives as a message. A parent's `subagent({ action: "wait" })` may end so the parent can reply, but active and queued siblings retain their identities and execution capacity. Sends and progress updates never wait for a reply. Only a single child that an SDK session without a task host runs directly ends with a fresh-child handoff when its blocking parent request is claimed.
|
|
275
275
|
|
|
276
276
|
| Parameter | Type | Description |
|
|
277
277
|
|-----------|------|-------------|
|
|
@@ -404,7 +404,7 @@ Moved to [Intercom operations](/intercom/operations#limitations).
|
|
|
404
404
|
|
|
405
405
|
## Related Docs
|
|
406
406
|
|
|
407
|
-
- [Subagents](/subagents) for delegated child runs,
|
|
407
|
+
- [Subagents](/subagents) for delegated child runs, supervisor coordination, and result delivery.
|
|
408
408
|
- [Workflows](/workflows) for multi-stage automation and run notifications.
|
|
409
409
|
- [Skills](/skills) for reusable instructions like `/skill:intercom`.
|
|
410
410
|
- [Usage](/usage) for environment variables and the bundled-extension overview.
|
package/docs/keybindings.md
CHANGED
|
@@ -90,7 +90,11 @@ Local copy operations require a working native clipboard or platform command. On
|
|
|
90
90
|
|
|
91
91
|
Tool output uses compact state-marked blocks. `app.tools.expand` (Ctrl+O by default) expands or collapses every block in the current chat, including grouped calls. Consecutive finished reads, searches and directory listings share a summary row. Attached stage and subagent chats also group finished shell calls; the main chat keeps their individual output previews.
|
|
92
92
|
|
|
93
|
-
In fullscreen mode, a click on
|
|
93
|
+
In fullscreen mode, a click anywhere on a block that Ctrl+O expands opens or folds just that block: its title, its output, and the `… +N lines` row alike. This works in the main chat, `/tasks` transcripts, subagent chats and workflow stage chats, for tool calls, grouped-call summaries, finished-agent cards, your `!` shell commands, Intercom messages, task and workflow notices, skill blocks, branch summaries and compaction boundaries. A click on a summary such as `Read 2 files` shows the calls it groups, and a click on any of them folds them again. A block with nothing more to show stays as it is.
|
|
94
|
+
|
|
95
|
+
A click takes effect after you release and at least half a second after the press, once it cannot be the start of a double-click. Holding the second press of a double-click does not turn it into a single click. The click uses the block’s current output and width, even if you resize while it waits. If there are no extra rows to show, the block stays as it was and the chat keeps following new output. Double- and triple-clicks select a word or a line without opening anything, a drag selects text, and a click on a link opens the link. Ctrl+O still sets every block at once and cancels earlier block clicks that haven’t taken effect. When a click expands a block while the chat follows the latest output, the view stays on that block; the jump-to-latest pill takes you back. A block keeps the state you clicked it to until Ctrl+O sets every block again. Thinking blocks are shown or hidden with their own key (`app.thinking.toggle`), not by a click.
|
|
96
|
+
|
|
97
|
+
In fullscreen mode, a click on a key hint presses its key. This covers the hint rows under the prompt and at the bottom of `/tasks`, `/workflows`, the workflow graph, dialogs and pickers, the `?` keys overlay, and hints inside tool blocks and notices such as `(ctrl+o to expand)`. The key goes to the view that has the keyboard, so a click does what the key does and asks for confirmation where the key asks. In a hint that names two keys, such as `pgup/pgdn scroll` or `↑↓ select`, click the key you want; the label belongs to the last key. The same applies to a numbered hint: in `1-4 pick`, clicking `1` or `-` presses 1, and clicking `4` or `pick` presses 4. A `/` between key names, with or without surrounding spaces, belongs to the first key. If you bind an action to `/`, clicking that slash presses the key even when it is next to a `/` separator. In `esc / / pick`, the first slash belongs to `esc`, and the last slash and `pick` both press `/`. Counts such as `3/5` and paths such as `a/file.txt` in ordinary text are not shortcuts. A hint that wraps onto the next row works from every row it covers. A hint that names a slash command, such as `/tasks to manage`, runs the command and keeps what you typed in the prompt. Keys that act only on an empty prompt when typed, such as `?`, `↓` and `←` in a chat, act on a click whatever the prompt holds. A drag across a hint selects its text, and a double-click runs it once. Hints drawn behind an open dialog do nothing until the dialog closes. Clicks need the fullscreen renderer's mouse reporting; keyboard behavior is unchanged.
|
|
94
98
|
|
|
95
99
|
Interactive sessions use a fullscreen transcript. The wheel scrolls the region under the pointer; over the fixed editor, status, or footer it scrolls the transcript. When scrolled up, one centered, highlighted pill above the composer reads `↓ jump to bottom · ctrl+end`, or counts new messages as they arrive. Click it or use `tui.altScreen.bottom` to return to live output. The key label follows your binding; a narrow terminal drops the padding before shortening the label. While scrolled up, the first line of the prompt that started the turn you are reading stays pinned at the top, marked `↑`. Attached workflow chats and `/tasks` transcripts show the same jump row in their own view; other OSC 8 links open in the default handler.
|
|
96
100
|
|
|
@@ -220,7 +224,7 @@ The same keys move between the main chat, subagent chats, workflow graphs, stage
|
|
|
220
224
|
- **Esc** only interrupts the current turn, cancels, closes a dialog or deselects. It never moves you to another chat.
|
|
221
225
|
- **←** on an empty prompt goes back exactly one level, to the chat or list you came from, and the hint line names it (`← tasks`, `← main chat`). With text typed, ← moves the cursor; at the very start of the prompt it leaves too, and what you typed is kept for when you come back.
|
|
222
226
|
- In a workflow graph, **Esc** is the only back key. **←** moves to the previous sibling and does nothing at the leftmost node. In tool and stage details, **←** does nothing and **Esc** returns to the graph. In a stage chat, ← on the empty prompt returns to the graph; on a choice or yes/no question it also returns to the graph, and the question stays pending. Esc on a choice or yes/no question closes it back to the chat's prompt: the question stays pending, a line above the prompt shows it, and Enter on the empty prompt reopens it. When a stage dialog is stacked over a mounted custom component, Esc cancels that dialog and returns to the component. Escape never navigates, even when assigned to a back action.
|
|
223
|
-
- The graph also has fixed run keys: **p** pauses the run while it runs, **r** resumes it
|
|
227
|
+
- The graph also has fixed run keys: **p** pauses the run while it runs, **r** resumes it when paused, recoverably failed or resumably blocked, and **q** pressed twice within 3 seconds quits it so it can be resumed later (after the first press the hint reads `q again to quit <name>`). **x** pressed twice stops the focused running stage, and **d** opens the detail of a completed or failed stage. These letters, like `/`, `f` and `h`, have no keybinding ids. If you bind `app.list.stop` or `app.keys.help` to one of them, that action wins, and the graph key is disabled and dropped from the hint line.
|
|
224
228
|
- In a list, **↑↓** select, **Enter** or **→** opens the item's chat (a workflow run's graph), **Space** peeks at its detail (in `/tasks`, a card under the row), or opens the asking chat for a subagent waiting on input, **x** stops the selected item (press it again within 3 seconds to confirm; on a finished item one press dismisses the row), **Esc** or **←** closes the list. If an item finishes between the two presses of `x`, the stop is called off and the list says `<name> finished · x to acknowledge`; that press acknowledges the change, and a later `x` dismisses the row after its finished state is painted.
|
|
225
229
|
- **Ctrl+X Ctrl+K** stops every running background subagent, shell and workflow run of the session, from any view except a dialog that uses Ctrl+X itself (OAuth sign-in, the scoped-model selector). Press it twice within 3 seconds; the first press says what it will do, and any other key calls it off. Stopped subagents stay resumable: their chats read `Stopped · send to resume`, and only a message you send resumes them. Stopped workflow runs stay resumable.
|
|
226
230
|
- **?** on an empty prompt, or in a list, shows the keys of the current screen; typed after text, `?` is just a character. Esc or ? closes it. Each screen also shows one dim hint line with exactly the keys that work there.
|
package/docs/libraries/tui.md
CHANGED
|
@@ -295,6 +295,8 @@ handleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined {
|
|
|
295
295
|
|
|
296
296
|
Returning `handled` suppresses renderer-level fallback behavior. `capture` keeps subsequent drag and release events routed to the same component. `focus` requests keyboard focus. The optional `render` flag controls repainting: press, click, drag, and wheel default to rendering; move and release do not. Set `render: true` for a hover state that visibly changed, or `render: false` for a handled no-op. Render requests are coalesced and terminal output remains differential.
|
|
297
297
|
|
|
298
|
+
A click carries `clickCount` (1, 2 or 3). When a single click should do something a double-click must not, such as expanding a block whose text a double-click would select, return its action as `whenSingleClick` instead of running it: `{ handled: true, whenSingleClick: () => toggle() }`. `TuiAltScreen` runs it once `MULTI_CLICK_INTERVAL_MS` (500 ms) has passed since the press with no second press on the same spot, then repaints. A second press there cancels the action even if the button stays down past the deadline. The same timing applies when the component handles the press itself. If you reserve resources for a deferred action, return `onSingleClickCancel` alongside `whenSingleClick` to release them when the action is canceled. Keep the clicked item’s identity, not its screen coordinates: an item can move before the action runs. Read the state the action changes when it runs, not when the click arrives: two quick clicks on different rows are two single clicks, and the first one's action may run just before the second's.
|
|
299
|
+
|
|
298
300
|
Unhandled gestures retain alternate-screen defaults: wheel input scrolls the nearest `ScrollView` and chains unused delta, primary-button drags select text, OSC 8 links open before parent click handlers, and unhandled right-click preserves configured paste behavior. A click is emitted only when press/release completes without a drag.
|
|
299
301
|
|
|
300
302
|
Use `MouseRegion` to add mouse behavior without changing a component's rendering:
|
|
@@ -718,6 +720,8 @@ const provider = new CombinedAutocompleteProvider(
|
|
|
718
720
|
editor.setAutocompleteProvider(provider);
|
|
719
721
|
```
|
|
720
722
|
|
|
723
|
+
Replacing the built-in editor's provider normally closes its menu. To keep the current menu and use the new provider for the next lookup, call `editor.setAutocompleteProvider(provider, { preserveSelection: true })`. An open menu keeps the provider that offered its rows. If no menu has opened yet, a still-current lookup can retry with the new provider, preserving whether the user pressed Tab. Extension-provided editors receive the usual single provider argument.
|
|
724
|
+
|
|
721
725
|
**Features:**
|
|
722
726
|
- Type `/` to see slash commands
|
|
723
727
|
- Press `Tab` for file path completion
|
package/docs/providers.md
CHANGED
|
@@ -183,7 +183,7 @@ Atomic reads the account's model list on every network catalog refresh (at inter
|
|
|
183
183
|
- never replaces a bundled entry with the same ID, which keeps its curated metadata
|
|
184
184
|
- is skipped when the account disables its policy, hides it from the model picker, or does not list tool-call support
|
|
185
185
|
|
|
186
|
-
A Copilot fast model appears only when the account's list advertises its exact ID, and like any discovered model it takes its limits and capabilities from its own entry. It is an ordinary model unless the list names its base model in the entry's `family` field, in which case it pairs with that base as its fast variant. Each refresh also updates the model lists saved with your OAuth login or saved API key, which decide what it is offered, so a model the refresh finds is offered at once, and models found with another login are not offered to yours. If
|
|
186
|
+
A Copilot fast model appears only when the account's list advertises its exact ID, and like any discovered model it takes its limits and capabilities from its own entry. It is an ordinary model unless the list names its base model in the entry's `family` field, in which case it pairs with that base as its fast variant. Each refresh also updates the model lists saved with your OAuth login or saved API key, which decide what it is offered, so a model the refresh finds is offered at once, and models found with another login are not offered to yours. If an SDK session has no cached Copilot catalog and its first prompt cannot run on a local model or configured fallback, it checks the account list once for the exact saved model. `atomic -p` does the same for a missing default from settings, not for a different unavailable model in a resumed conversation. The lookup uses the advertised model only for that session. To update the shared model list, run `atomic update --models`.
|
|
187
187
|
|
|
188
188
|
#### Which models are shown
|
|
189
189
|
|
package/docs/rpc/protocol.md
CHANGED
|
@@ -240,6 +240,8 @@ Response:
|
|
|
240
240
|
|
|
241
241
|
`resourceErrors` lists the extensions that failed to load in the last startup or reload, and `resourceWarnings` lists their load warnings, such as an extension registering the same tool name twice.
|
|
242
242
|
|
|
243
|
+
While the session waits to retry or switch models, `retryStatus` carries the `auto_retry_start` or `model_fallback_start` event. For a retry, `retryAt` gives the countdown deadline in Unix epoch milliseconds. Use this field rather than `isStreaming` to show a wait: a session can remain streaming throughout a backoff. The field is absent once the next request starts or the wait ends. `turnStartedAt` is the Unix epoch time in milliseconds of the current turn's first request. It stays the same through retries and fallback switches, and is absent when there is no active turn.
|
|
244
|
+
|
|
243
245
|
When `isCompacting` is `true`, `compactionReason` identifies the compaction. The optional `compactionStartedAt` gives its start time in Unix epoch milliseconds, so an attaching client can show elapsed time. These fields are absent when no compaction is active.
|
|
244
246
|
|
|
245
247
|
The `model` field is a full [Model](#model) object or `null`. Its `contextWindow` is the model's token budget. The `sessionName` field is the display name set via `set_session_name`, or omitted if not set.
|
|
@@ -614,7 +616,7 @@ Response:
|
|
|
614
616
|
|
|
615
617
|
#### abort_retry
|
|
616
618
|
|
|
617
|
-
|
|
619
|
+
Cancel a retry or fallback already in progress. If the first request is still running and no retry has started, `abort_retry` does nothing. Use `abort` to interrupt that request.
|
|
618
620
|
|
|
619
621
|
```json
|
|
620
622
|
{"type": "abort_retry"}
|
|
@@ -1177,15 +1179,15 @@ Events are streamed to stdout as JSON lines. Most events do not include an `id`;
|
|
|
1177
1179
|
|
|
1178
1180
|
### agent_start
|
|
1179
1181
|
|
|
1180
|
-
Emitted when the agent begins
|
|
1182
|
+
Emitted when the agent begins an attempt. `turnStartedAt` identifies when the turn's first request began, even if this attempt is a retry.
|
|
1181
1183
|
|
|
1182
1184
|
```json
|
|
1183
|
-
{"type": "agent_start"}
|
|
1185
|
+
{"type": "agent_start", "turnStartedAt": 1760000000000}
|
|
1184
1186
|
```
|
|
1185
1187
|
|
|
1186
1188
|
### agent_end
|
|
1187
1189
|
|
|
1188
|
-
Emitted when
|
|
1190
|
+
Emitted when one agent run completes. Contains all messages generated during that run. If `retryPending` is `true`, the session is still handling a retry or fallback; `abort_retry` cancels it even before the next attempt is announced.
|
|
1189
1191
|
|
|
1190
1192
|
```json
|
|
1191
1193
|
{
|
package/docs/sdk/reference.md
CHANGED
|
@@ -127,6 +127,10 @@ refresh, and `modelRefreshTimeoutMs` (default `15_000`) bounds how long that ref
|
|
|
127
127
|
before it is aborted. Pass `refreshOnCreate: false` to skip the initial catalog and
|
|
128
128
|
availability refresh entirely; built-in models remain available.
|
|
129
129
|
|
|
130
|
+
`createAgentSession()` does not fetch an account model list at startup. If its cache restore found no GitHub Copilot catalog and its first prompt has no usable model or fallback, the session can look up the exact saved Copilot model. A supplied `model`, a working preset or fallback, and a cached catalog need no lookup. Only that session uses the result; `models-store.json`, credentials and model listings do not change.
|
|
131
|
+
|
|
132
|
+
The `modelFallbackMessage` returned by `createAgentSession()` describes startup. If the account confirms the model is absent, the first prompt's error says so. A refused, offline or cancelled lookup keeps the usual error. Pass `signal` to `createAgentSession()` to cancel the lookup, or `allowModelNetwork: false` to `ModelRuntime.create()` to disable it. Custom asynchronous-only credential stores keep the usual local selection; discovery never waits on their read queue.
|
|
133
|
+
|
|
130
134
|
```typescript
|
|
131
135
|
const refreshedRuntime = await ModelRuntime.create({
|
|
132
136
|
allowModelNetwork: true,
|
|
@@ -479,7 +483,9 @@ Without a detachment policy a detachable call runs inline like any other. A host
|
|
|
479
483
|
|
|
480
484
|
- A call that finishes within `afterMs` runs inline.
|
|
481
485
|
- A call still running after `afterMs` detaches: the turn's other results are saved, the call has no result yet, and `prompt()` resolves. The call's work goes on outside the session, so the host can dispose of the session meanwhile.
|
|
482
|
-
-
|
|
486
|
+
- Once its turn is interrupted, a call running inline no longer detaches, even one marked ready with `markToolCallReadyForDetachment(signal)` just before the interrupt, in the same tick. Like any tool call, it keeps its own result if it stops within `ATOMIC_TOOL_ABORT_GRACE_MS` (10 seconds by default); otherwise it gets an `Operation aborted` result and gives its place in the session's tool order back. If it returns or throws later, that outcome is not added to the conversation or sent to the model. A call still waiting for its place ends at once with `Operation aborted` and never runs. A call that detached before the interrupt is not affected: the interrupt does not reach its abort signal, and it is still returned by `takeDetachedToolCalls()`.
|
|
487
|
+
- `session.takeDetachedToolCalls()` returns each detached call once, except a call whose turn the transcript has moved past: nothing waits for its result, so the session cancels its work (through its abort signal) and drops it, and records it in the debug log as `stale-detached-call`. Every `DetachedToolCall` has `toolCallId`, `toolName`, a `result` promise that never rejects (a thrown error becomes an `isError` result), and `abort(reason)`. An unprintable rejection reason or unreadable result field becomes a plain error result; it cannot reject the handle. If a result's payload cannot be recorded, the resumed session or workflow stage records an error for that call instead. A failure of the session store itself still rejects the resume. When the thrown error has a string `code`, the result's `details.error` carries it as data, so a host can branch on `code` instead of the text: the error's own `toJSON()` form when it has one, otherwise its `name`, `code`, `message`, and its `hint`, `retryable`, JSON-safe `fields` and cause chain when it has them. If its `toJSON()` throws, `details.error` is built from its properties and carries `serialization: "fallback"`.
|
|
488
|
+
- A stage checkpoint records `details` and `structuredContent` using native JSON conversion. An over-wide container is replaced by a truncation marker without losing its siblings; an over-budget field is truncated without rereading getters. These bounds limit retained bytes, not native key enumeration or work performed by `toJSON`. Before native JSON visits a bounded container's members, the checkpoint checks their own data descriptors without reading getters. An object proxy in a direct data property is rejected without running its conversion. Boxed scalars are charged by their intrinsic primitive; native JSON still applies custom scalar conversions once if that budget allows, and the final encoded output is checked against the byte limit. If a getter returns a proxy whose `toJSON` converts it to a non-proxy value, native JSON keeps that value: the getter is not read again and the proxy is not enumerated. Array proxies retain native indexed reads and length coercion.
|
|
483
489
|
- `session.resumeDetachedTurn(results)` on a session reopened from the store records each result as its call's result, right after the call, and continues the same turn, without a new user message, once every detachable call of the turn has its result. Results may be handed back together or across several calls: until the last one arrives, the call records what it gets and resolves without continuing, and `hasPendingDetachedTurn()` stays `true`. A result for a call that already has one, repeated in `results`, or issued by a turn the transcript has moved past is ignored, the last one with a `stale-detached-call` record in the debug log; a result for a call that no message of the transcript issued throws `unknown-tool-call`. With no new result, a transcript that ends on a detachable call's turn whose every call already has its result continues that turn (the process that recorded the results stopped before the model answered), and a turn still waiting on a call is left as it is.
|
|
484
490
|
- `session.isWaitingOnDetachedResults()` tells whether the transcript still waits on the result of a detachable call, with or without other calls of its turn answered. While it does, and a detachment policy is set, nothing starts a turn on the idle session: custom messages that would start one (such as a finished subagent's notification), interrupting messages, follow-ups and steering, and a continuation after a compaction wait, and the turn that `resumeDetachedTurn()` continues takes them up after the results. A custom message held this way gets a durable card, so it survives the session being released or disposed before the results arrive: the session reopened from the store delivers it after the result (`startPendingRecovery()` replays it). `prompt()` stays the host's call: do not prompt a session that waits on a result.
|
|
485
491
|
- `session.hasPendingDetachedTurn()` tells whether a reopened transcript ends on such a turn, with or without some or all of its results. When it does, continue the turn with `redispatchDetachedToolCalls()` and `resumeDetachedTurn()` instead of prompting again.
|
|
@@ -588,7 +594,7 @@ Named `extensionFactories` descriptors may set `builtin: true` to expose the fac
|
|
|
588
594
|
|
|
589
595
|
Every `DefaultResourceLoader` includes Atomic's inline built-in extensions, `codemode`, `tool-search`, and `llama.cpp`, so `defaultTools: ["+codemode"]` or `tools: ["+tool_search"]` works in SDK sessions without extra factories. `loader.getExtensions()` lists them with `builtin:<name>` paths. Registering them does not activate `codemode` or `tool_search`; both stay opt-in. A descriptor you pass with the same name replaces the default one, and `noExtensions: true`, `disabledBuiltinExtensions: ["codemode"]`, or an `extensions` setting such as `"-builtin:codemode"` turns one off.
|
|
590
596
|
|
|
591
|
-
Pass `extensionBindings` to `createAgentSession()` to install `uiContext`, `mode`, `commandContextActions`, `shutdownHandler` or `onError` before startup hooks run. Creation awaits startup and resource discovery. A failed startup shuts down the partially created session before rejecting. Rebinding updates the host without replaying `session_start`; reload emits one start for its new generation. Remove manual post-creation startup calls from integrations that only used them to initialize extensions.
|
|
597
|
+
Pass `extensionBindings` to `createAgentSession()` to install `uiContext`, `mode`, `commandContextActions`, `shutdownHandler` or `onError` before startup hooks run. Creation awaits startup and resource discovery. A failed startup shuts down the partially created session before rejecting. Set `reportStartupErrors: true` to keep the session instead when a `session_start` or `resources_discover` handler throws: the error goes to `onError` and the extension stays loaded, as in the interactive terminal. Rebinding updates the host without replaying `session_start`; reload emits one start for its new generation. Remove manual post-creation startup calls from integrations that only used them to initialize extensions.
|
|
592
598
|
|
|
593
599
|
Strict reloads (`failOnExtensionErrors: true`) require the loader's transactional `prepareReload()` support so a failed candidate cannot mutate live state before validation. `DefaultResourceLoader` provides that support. Custom loaders without it remain compatible with ordinary reloads, but strict reload fails before calling their mutating `reload()` method.
|
|
594
600
|
|
|
@@ -1393,7 +1399,7 @@ For trusted custom hosts, the package exports `AgentTaskHost` and its integratio
|
|
|
1393
1399
|
|
|
1394
1400
|
`startAgentTask(intent, operation, runnerFactory)` returns a Result containing `{taskId, lease}` after setup. The factory receives the original `AbortSignal`, reference, and `reportActivity` context. Return separate `result` and `cleanup` promises; report cleanup only when it is confirmed. Replaying the same operation reuses execution without calling another factory.
|
|
1395
1401
|
|
|
1396
|
-
Use `observeAgentLaunch(taskId, policy?)`, `waitForTask`, `resolveTask`, `cancelTask`, `watchOwnerTasks`, and `close` within the bound owner. Observation returns Result/WaitOutcome. Yielding or cancelling an observation does not stop execution. Cancellation and cleanup failures remain observable; owner close may remain pending until your runner acknowledges cleanup.
|
|
1402
|
+
Use `observeAgentLaunch(taskId, policy?)`, `waitForTask`, `resolveTask`, `cancelTask`, `watchOwnerTasks`, and `close` within the bound owner. Observation returns Result/WaitOutcome. A launch's observation always returns once it is registered, with reason `explicit` for `{ kind: "background" }` and `default-background` without a policy: subagents run in the background. `waitForTask(taskId, budgetMs?, onRegistered?, signal?)` waits for the task up to `budgetMs`, the owner's agent budget when omitted; aborting `signal` ends the wait at once with `ObserverCancelled`. Yielding or cancelling an observation does not stop execution. Cancellation and cleanup failures remain observable; owner close may remain pending until your runner acknowledges cleanup.
|
|
1397
1403
|
|
|
1398
1404
|
An owner keeps its 256 most recently finished tasks (`FINISHED_TASK_RETENTION`): a task is finished once its result settled and its cleanup was reaped. Queued, running and stopping tasks, and tasks whose cleanup is quarantined or failed, are never evicted. When more tasks finish, the one that finished longest ago is evicted: `watchOwnerTasks` delivers a `task-evicted` event and later snapshots omit it. While the owner is open or closing, a finished task is evicted only after every live subscription of its owner has drained it and then drained again, so no subscriber misses a settlement. Atomic's sessions and workflow stages also hold each finished task until its completion notice has been delivered, so the notice can still read the task's title, transcript excerpt and output; an owner then keeps more than 256 records until those notices are out. A custom host that reads a finished task later can do the same with `retainTaskRecord(taskId)` and `releaseTaskRecord(taskId)` on `AgentTaskHost`; both leave a task the owner does not keep alone. `retainTaskRecord` returns a Result: a task the owner already evicted takes no hold and refuses with `TaskEvicted`, also when the eviction lands while the call runs, so hold a task from `onTaskSettled` if you need its record. A closing owner's holds no longer count. Closing an owner keeps every task the close settled until the closing host has drained them all, so `onTaskSettled` runs for each one, even past the retention. Only then does `closeTaskOwner` trim the closed owner to its 256 most recently finished tasks, without waiting for other subscriptions, and its subscriptions receive the final retained set before stopping. A settled wait registered before eviction still returns its outcome. Operation replay reuses a task only while it is kept; afterwards the same operation starts a new one.
|
|
1399
1405
|
|
|
@@ -1433,7 +1439,7 @@ Only Atomic's interactive hosts with a task inspector hold child prompts automat
|
|
|
1433
1439
|
|
|
1434
1440
|
### Task transcript references
|
|
1435
1441
|
|
|
1436
|
-
Task inspectors show references to the bound child conversation: prompts, responses, thinking blocks, tool calls and results, compaction boundaries, branch summaries, and displayed extension messages. Model-only custom messages and entries a chat does not render are left out. An unbound or empty history reports `Transcript unavailable`. Saved history is not authority to restart or control a task.
|
|
1442
|
+
Task inspectors show references to the bound child conversation: prompts, responses, provider errors, thinking blocks, tool calls and results, shell commands and their output, compaction boundaries, branch summaries, and displayed extension messages. Model-only custom messages and entries a chat does not render are left out. An unbound or empty history reports `Transcript unavailable`. Saved history is not authority to restart or control a task.
|
|
1437
1443
|
|
|
1438
1444
|
`TaskViewSource.sendTaskMessage(id, text)` sends text typed into an agent task's transcript to that task through its Intercom target and resolves once Intercom confirms delivery. A task view that cannot message tasks omits the method. A failure rejects with a `TaskMessageError`:
|
|
1439
1445
|
|
package/docs/sdk.md
CHANGED
|
@@ -411,7 +411,10 @@ await session.intercom.setReachable(["doc-1907", "doc-2011"]);
|
|
|
411
411
|
|
|
412
412
|
```typescript
|
|
413
413
|
interface SessionWorkflows {
|
|
414
|
-
listRuns(
|
|
414
|
+
listRuns(
|
|
415
|
+
filter?: { status?: WorkflowRunFilterStatus; includeDurable?: boolean },
|
|
416
|
+
options?: { signal?: AbortSignal },
|
|
417
|
+
): Promise<readonly WorkflowRunSummary[]>;
|
|
415
418
|
getRun(runId: string): Promise<WorkflowRunDetail>;
|
|
416
419
|
getStages(runId: string, filter?: { status?: WorkflowStageStatus }): Promise<readonly WorkflowRunStageSummary[]>;
|
|
417
420
|
pause(runId: string, options?: { stageId?: string }): Promise<WorkflowRunControlOutcome>;
|
|
@@ -423,7 +426,7 @@ interface SessionWorkflows {
|
|
|
423
426
|
}
|
|
424
427
|
```
|
|
425
428
|
|
|
426
|
-
`listRuns()` and `getRun()` expose `label`, `identity`, `summary`, and `summarizedThrough` (Unix milliseconds). The identity prefers the label, then the objective/prompt input, then the run ID. Use `listRuns({ includeDurable: true })` to include stored resumable and completed top-level runs launched from the current project directory alongside this session's live runs. Stored runs must have a recorded session owner, matching the SDK's run-detail access rules, so a run without a recorded session owner is not listed. A run control registered with `registerWorkflowRunControl` may implement the optional `listProjectRuns()`, which lists every top-level run recorded for the current project directory whoever started it; the bundled workflows extension does, and `history://workflows` uses it when present. The default remains this session's runs only. Saved summaries can lag current progress and remain readable with summary generation disabled.
|
|
429
|
+
`listRuns()` and `getRun()` expose `label`, `identity`, `summary`, and `summarizedThrough` (Unix milliseconds). The identity prefers the label, then the objective/prompt input, then the run ID. Use `listRuns({ includeDurable: true })` to include stored resumable and completed top-level runs launched from the current project directory alongside this session's live runs. Stored runs must have a recorded session owner, matching the SDK's run-detail access rules, so a run without a recorded session owner is not listed. A run control registered with `registerWorkflowRunControl` may implement the optional `listProjectRuns()`, which lists every top-level run recorded for the current project directory whoever started it; the bundled workflows extension does, and `history://workflows` uses it when present. The first listing of stored runs in a process reads the workflow journal, which can take seconds on a large one; pass `{ signal }` as the last argument of `listRuns()` or `listProjectRuns()` to stop waiting: the call then rejects with the signal's reason. The default remains this session's runs only. Saved summaries can lag current progress and remain readable with summary generation disabled.
|
|
427
430
|
|
|
428
431
|
`listRuns()` returns the same per-run data as `workflow status`: id, workflow name, status, active stages, and unanswered prompts (`awaitingInput`). Run IDs accept the full UUID or a unique 8-character prefix. `getRun()`, `getStages()`, `pause()` and `quit()` resolve a prefix against the runs this session holds and reject it at once when none matches, so pass the full UUID for a run recorded by an earlier process. `pause`, `quit` and `resume` resolve with the tool's acknowledged outcome: `action`, `runId` (`--all` for a batch), a `status` of `ok`, `running`, `paused`, `partial`, `noop` or `cancelled`, and a human-readable `message`. A `noop` means the request was understood and found nothing to change, such as pausing a run that already ended. A `partial` outcome means part of the request took effect. For `pause({ all: true })` and `quit({ all: true })`, `partial` means this call stopped at least one run and others are still active: `failedRuns` lists each run that is still active with its `runId`, a `reason` (for example `pause_failed` or `no_active_stages`) and a `message`, so check `outcome.status === "partial"` before treating a batch stop as complete. If active runs could not be stopped and this call stopped none, the call rejects with `WorkflowRunControlError` (`WORKFLOW_RUN_CONTROL_FAILED`) whose `failedRuns` carries the same list, even when other runs were already paused. Runs that are already paused or already ended are not failures, and a batch with no active run left to stop resolves as a `noop`. Call `getRun()` before retrying.
|
|
429
432
|
|
package/docs/security.md
CHANGED
|
@@ -28,7 +28,11 @@ Trusting a project allows Atomic to load trust-gated project inputs, including:
|
|
|
28
28
|
|
|
29
29
|
Declining trust skips protected resources, including project-local discovery of `AGENTS.override.md`, `AGENTS.md`, and `CLAUDE.md`. Global context and explicitly supplied CLI resources remain available. Interactive sessions in an untrusted project show a warning that project resources are ignored; use `/trust` to save a decision, then restart Atomic.
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
Trust belongs to the folder a session works in, not the one Atomic was started from. Resuming a session in interactive mode (`--resume`, `--continue`, `--session` or `/resume`) applies the decision for the folder the session continues in and asks about it when it has none. An answer for this session only lasts until Atomic exits: switching back to that folder with `/resume` uses it again, Atomic keeps it when it restarts its engine, and it is never saved to `trust.json`. The same holds for each `-e` extension source: if the engine restarts while you are answering several trust questions, it asks only about paths that still need a decision. A Git worktree outside its repository's folder is a separate folder with its own decision, because it can check out different `.atomic` content; to cover several worktrees kept in one directory, choose **Trust parent folder** for one of them, when asked or in `/trust`.
|
|
32
|
+
|
|
33
|
+
Atomic loads user/global extensions and explicit CLI `-e` package-level extensions to resolve trust. They can handle the `project_trust` event; the first to return a yes/no decision owns it. From the interactive engine's first trust report, the interface withholds the folder's project resources if a registered handler can still decline it. It does not show an untrusted warning for a pending check. Approval makes the folder's resources available to new views and completions without waiting for a separate `-e` source's decision. Atomic's open pickers and completion menus keep their existing choices. Extension-provided editors receive the approved provider as a normal replacement and manage their own menus.
|
|
34
|
+
|
|
35
|
+
This check does not change startup before that first report: a saved trust may already have selected project settings, including the `sessions.storage` store used by `--continue`. A handler registered only after the first report does not retroactively hide an already-listed project; its decline still takes effect. Approval reads the current folder resources from disk. Because resource discovery refreshes the combined catalog, a global prompt renamed during the check can also appear under its new name before `/reload`.
|
|
32
36
|
|
|
33
37
|
If `-e <dir>` discovers resources borrowed from that directory's `.atomic`, legacy `.pi`, or `.agents/skills`, Atomic resolves trust for that source before loading them. Borrowed extensions and workflows can execute code with the Atomic process permissions.
|
|
34
38
|
|
package/docs/session-format.md
CHANGED
|
@@ -535,7 +535,7 @@ for (const stage of stages.filter((session) => session.internal)) {
|
|
|
535
535
|
- `branchWithSummary(entryId, summary, details?, fromHook?)` - Branch with context summary
|
|
536
536
|
|
|
537
537
|
### Instance Methods - Context & Info
|
|
538
|
-
- `buildSessionProjection()` - Get the context-edited projection: source entries with their model-visible messages, plus thinkingLevel and model
|
|
538
|
+
- `buildSessionProjection()` - Get the context-edited projection: source entries with their model-visible messages, plus thinkingLevel and model. Use `buildSessionProjection("transcript")` for saved chat rows: it keeps the original content of displayed entries changed or omitted for the model, while hidden custom messages follow the model. For a live session, `session.transcriptMessages` also includes messages the session holds but has not saved, such as a prompt whose save is in progress or failed, or shell output recorded for this run only. A tool call whose result was never saved appears as interrupted.
|
|
539
539
|
- `buildSessionContext()` - Get messages, thinkingLevel, and model for LLM
|
|
540
540
|
- `buildContextEntries()` - Active branch entries after the latest compaction boundary
|
|
541
541
|
- `appendContextEdit(targetId, replacement)` - Append a branch-local context edit (`null` omits the target; `{ content }` replaces only its content)
|
package/docs/sessions.md
CHANGED
|
@@ -209,6 +209,22 @@ The search index is about as large as the rendered text it indexes (messages, to
|
|
|
209
209
|
|
|
210
210
|
By default only the current project's history is visible. Other projects' sessions appear only when a sessions URL carries `?project=all` or `?project=<dir>`, which the agent uses only when you ask it to. Workflow history is always limited to the current project and includes every run of the project that the agent started, including finished runs that recorded no checkpoints and cancelled runs. `history://` is read-only.
|
|
211
211
|
|
|
212
|
+
### Searching a stored session in the background
|
|
213
|
+
|
|
214
|
+
From the session's project directory, `atomic storage search-session <sqlite-file> <session-id> <pattern> [cursor]` searches **one session in the SQLite file you name**, read-only. It prints the ordinary first page, including its cursor, before following any advancing entry-budget, byte-budget or time-budget link. It leaves `+N more` links for you to follow. To start at a printed entry cursor instead of the beginning, pass just its numeric value (for example `6` or `6.2`) as the last argument.
|
|
215
|
+
|
|
216
|
+
The search scans the stored entries without building or updating a search index or joining the writer queue. It leaves the database and Atomic's lock files alone. On a cleanly closed database it writes no files: no `-wal` or `-shm` is needed, even in a read-only directory. On a live database it reads the existing WAL and shared-memory index without updating their contents. If the last writer closes just as SQLite opens the WAL, SQLite can leave an empty `-wal` file. For an unchanged directory, start the search after the writer has closed. If the WAL and its index are incomplete, retry against a cleanly closed database; do not delete the WAL. The usual CLI settings startup still runs. A closed output pipe stops the search quietly.
|
|
217
|
+
|
|
218
|
+
For example, to work on something else while the search runs, use the usual shell tool:
|
|
219
|
+
|
|
220
|
+
```json
|
|
221
|
+
{"command":"atomic storage search-session ./sessions.sqlite my-session 'connection refused'","wait":{"kind":"background"}}
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Use `bash({ action: "wait", id })` with the returned shell task ID, or `kill({ id })` to stop it. A refused command does not invalidate a page or cursor you already obtained from `search`.
|
|
225
|
+
|
|
226
|
+
Use the path of an existing local Atomic session database with the standard (unprefixed) tables, not a workflow journal or a server URL. The session ID must contain only ASCII letters, digits, hyphens or underscores. The command does not guess the store from an SDK session or open a session from another project. If the transcript's stored write revision changes during the scan, the command stops rather than printing a page from another revision. A migrated session with no write revision returns its first page and leaves the cursor for manual use. For all other selectors and stores, including JSONL, memory, remote stores, session listings and workflow runs, keep following the URLs with the original `read` or `search` tool. Neither those tools nor manual cursor follows start a background task.
|
|
227
|
+
|
|
212
228
|
## Naming Sessions
|
|
213
229
|
|
|
214
230
|
Use `/name <name>` to set a human-readable session name:
|
package/docs/settings.md
CHANGED
|
@@ -130,7 +130,7 @@ This setting selects the model that makes each decision listed above. It does no
|
|
|
130
130
|
|
|
131
131
|
A model named with `--model` on the command line runs as named. That session falls back only to the models `--fallback-models` names, never to this list, whether user or project. `--fallback-models` replaces this list for one run, and `--no-fallback` turns fallback off for one run. See [CLI model options](/reference/cli#model-options).
|
|
132
132
|
|
|
133
|
-
If `retry.enabled` is `false`, Atomic skips same-model retries and moves directly to the next fallback for retryable failures. Non-retryable task failures and cancellations do not trigger fallback.
|
|
133
|
+
If `retry.enabled` is `false`, Atomic skips same-model retries and moves directly to the next fallback for retryable failures. Non-retryable task failures and cancellations do not trigger fallback. Press Esc during a retry wait or a model switch to stop the pending request. In a subagent chat, send a new message to continue; in a workflow stage chat, Esc pauses the stage, including while it waits for a provider's rate limit to clear.
|
|
134
134
|
|
|
135
135
|
A content-filter refusal, such as OpenAI's HTTP 422 `cyber_policy` ("This content was flagged for possible cybersecurity risk"), Anthropic's refusal stop, or a `content_filter` finish reason, also moves to the next fallback, without retrying the model that refused: the same request would be refused again. The refused model is recorded in the fallback history. Set `retry.fallbackOnContentFilter` to `false` to keep such a refusal on the model that gave it. Subagents and workflow stages follow the same setting for their own `fallbackModels`.
|
|
136
136
|
|
|
@@ -341,7 +341,7 @@ These compaction settings were removed and are ignored when present; settings st
|
|
|
341
341
|
| `snapshots.maxFileBytes` | number | `5242880` | Largest file a snapshot captures, in bytes |
|
|
342
342
|
| `snapshots.maxSnapshotBytes` | number | `52428800` | Largest total of captured content, and largest unpushed-commit bundle, in bytes |
|
|
343
343
|
| `snapshots.fullEvery` | number | `10` | Restart the patch chain from `HEAD` after this many snapshots |
|
|
344
|
-
| `snapshots.autoCollect` | boolean | `true` | Delete snapshot content nothing retains
|
|
344
|
+
| `snapshots.autoCollect` | boolean | `true` | Delete snapshot content nothing retains, in the background of an interactive session, after a session closes, and when a workflow run finishes |
|
|
345
345
|
| `snapshots.collectIntervalSeconds` | number | `3600` | Shortest time between two automatic collections of one database, in seconds |
|
|
346
346
|
| `snapshots.graceSeconds` | number | `3600` | Snapshot content stored or reused less than this many seconds ago is never collected; `0` turns this protection off |
|
|
347
347
|
| `snapshots.pool.maxIdlePerRepository` | number | `2` | Idle restored worktrees kept per repository; a resume that restores another removes the oldest unchanged ones beyond it. See [Restored worktrees](/worktree-snapshots#restored-worktrees) |
|
package/docs/skills.md
CHANGED
|
@@ -96,7 +96,7 @@ The skill no longer recommends response prefilling, which returns an error on Cl
|
|
|
96
96
|
|
|
97
97
|
### Built-in visual explanation guidance
|
|
98
98
|
|
|
99
|
-
The bundled `/skill:show-me` from [HumanLayer](https://github.com/humanlayer/skills) helps explain the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts. It is distributed under the MIT License.
|
|
99
|
+
The bundled `/skill:show-me` from [HumanLayer](https://github.com/humanlayer/skills) helps explain the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts. It runs only when you type `/skill:show-me`; the model does not load it on its own. It is distributed under the MIT License.
|
|
100
100
|
|
|
101
101
|
### Built-in code quality guidance
|
|
102
102
|
|
|
@@ -109,7 +109,7 @@ The bundled `/skill:qlty` uses the [qlty](https://qlty.sh) CLI for code-quality
|
|
|
109
109
|
|
|
110
110
|
The skill triggers on requests for verifiers or high code quality and prefers one CLI over ad-hoc linter commands. It directs the agent to [docs.qlty.sh/llms.txt](https://docs.qlty.sh/llms.txt), the authoritative documentation index, and tells it to enable plugins and linter extensions that fit the codebase before checking. Source-attributed reference excerpts ship beside `SKILL.md`.
|
|
111
111
|
|
|
112
|
-
The CLI is not bundled. Install it with `curl https://qlty.sh |
|
|
112
|
+
The CLI is not bundled. Install it with `curl https://qlty.sh | sh` on macOS or Linux, or `powershell -c "iwr https://qlty.sh | iex"` on Windows, and keep `~/.qlty/bin` on `PATH`. Note that `qlty init` writes `.qlty/qlty.toml` into the repository.
|
|
113
113
|
|
|
114
114
|
Offline, `qlty metrics` and `qlty smells` still work through built-in static analysis. `qlty check` and `qlty fmt` need network access on first use per repository to download plugins and runtimes.
|
|
115
115
|
|
|
@@ -123,7 +123,7 @@ The bundled [Herdr skill](https://github.com/herdrdev/herdr/blob/v0.9.5/skills/h
|
|
|
123
123
|
|
|
124
124
|
### Report feedback
|
|
125
125
|
|
|
126
|
-
Use `/skill:feedback <what happened or what you want to change>` to draft an Atomic bug report or enhancement. The bundled feedback skill runs one
|
|
126
|
+
Use `/skill:feedback <what happened or what you want to change>` to draft an Atomic bug report or enhancement. The bundled feedback skill runs one debugger investigation for a bug, waiting for its result, and no subagent for an enhancement. It summarizes findings and unknowns rather than attaching files or transcripts.
|
|
127
127
|
|
|
128
128
|
Review the Markdown draft and its `Privacy scrubbed:` summary. Ask for changes to get a revised, re-scrubbed draft, or say you want it posted. An unrelated request continues the conversation without creating an issue. Posting uses your own authenticated `gh` CLI login to create an issue in `bastani-inc/atomic`; install GitHub CLI and run `gh auth login` if needed. If posting fails, Atomic reports the error and keeps the draft in the conversation.
|
|
129
129
|
|