@bastani/atomic 0.10.10 → 0.10.11-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +83 -0
- package/README.md +1 -1
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +8 -10
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +6 -6
- package/dist/_shared/mode-shared-2QJSCUM6.js +52 -15
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +3 -3
- package/dist/_shared/{sdk-RRLVN7ER.js → sdk-AVFII7NK.js} +757 -233
- package/dist/_shared/sdk-AVFII7NK.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +3 -3
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/{startup-0-0-4VG2G44V.js → startup-0-0-57KF6LZH.js} +94 -42
- package/dist/_shared/startup-0-0-57KF6LZH.js.map +1 -0
- package/dist/_shared/{startup-0-1-XTIL65D4.js → startup-0-1-GIY75K46.js} +75 -13
- package/dist/_shared/startup-0-1-GIY75K46.js.map +1 -0
- package/dist/_shared/startup-0-2-27OWFHV6.js +72 -7
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -1
- package/dist/_shared/startup-0-3-T4DVFYWX.js +4 -4
- package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
- package/dist/_shared/{startup-0-5-FD2P735I.js → startup-0-5-YDW47QX6.js} +27 -69
- package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -0
- package/dist/_shared/startup-10-0-TDQNBDDL.js +6 -6
- package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +31 -7
- package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +7 -6
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
- package/dist/_shared/{startup-8-1-4KANEHRA.js → startup-8-1-X32CYSXB.js} +1219 -714
- package/dist/_shared/startup-8-1-X32CYSXB.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +14 -8
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +18 -0
- package/dist/builtin/intercom/broker/broker.bundle.mjs +993 -362
- package/dist/builtin/intercom/broker/database-wake-up-bus.ts +103 -24
- package/dist/builtin/intercom/broker/multinode-router.ts +42 -21
- package/dist/builtin/intercom/broker/multinode-state-store.ts +22 -1
- package/dist/builtin/intercom/broker/open-broker-state.ts +82 -31
- package/dist/builtin/intercom/broker/paths.ts +8 -4
- package/dist/builtin/intercom/broker/released-asker-remote-replies.ts +18 -6
- package/dist/builtin/intercom/broker/sql-add-column.ts +4 -1
- package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +65 -44
- package/dist/builtin/intercom/broker/sql-held-send-store.ts +11 -3
- package/dist/builtin/intercom/broker/sql-known-session-store.ts +24 -12
- package/dist/builtin/intercom/broker/sql-lease-store.ts +375 -65
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +270 -101
- package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +20 -9
- package/dist/builtin/intercom/broker/sql-released-ask-store.ts +14 -6
- package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +27 -11
- package/dist/builtin/intercom/broker/sql-schema.ts +139 -1
- package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +97 -34
- package/dist/builtin/intercom/index.bundle.mjs +11 -8
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +12 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +62 -23
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +4 -4
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +3 -3
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +2 -2
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +2 -2
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +3 -3
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +2 -2
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/agent-session-methods.d.ts +3 -0
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +1 -0
- package/dist/core/compaction/compactor.d.ts +2 -0
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.code.js +1 -1
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +2 -2
- package/dist/core/extensions/runner-context.js +3 -3
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/model-registry.js +1 -1
- package/dist/core/model-resolver-defaults.d.ts +3 -2
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +3 -4
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.d.ts +5 -2
- package/dist/core/session-manager-core.js +17 -13
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/added-exports.d.ts +6 -0
- package/dist/core/storage/added-exports.js +16 -0
- package/dist/core/storage/added-exports.js.map +1 -0
- package/dist/core/storage/database.d.ts +16 -0
- package/dist/core/storage/database.js.map +1 -1
- package/dist/core/storage/fenced-paths.d.ts +47 -0
- package/dist/core/storage/fenced-paths.js +53 -0
- package/dist/core/storage/fenced-paths.js.map +1 -1
- package/dist/core/storage/file-identity.js +31 -2
- package/dist/core/storage/file-identity.js.map +1 -1
- package/dist/core/storage/index.d.ts +3 -0
- package/dist/core/storage/index.js +5 -2
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/migrations.d.ts +22 -0
- package/dist/core/storage/migrations.js +55 -0
- package/dist/core/storage/migrations.js.map +1 -1
- package/dist/core/storage/node-sqlite-thread.js +19 -6
- package/dist/core/storage/node-sqlite-thread.js.map +1 -1
- package/dist/core/storage/node-sqlite.js +53 -4
- package/dist/core/storage/node-sqlite.js.map +1 -1
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/prefix.d.ts +3 -2
- package/dist/core/storage/prefix.js +18 -2
- package/dist/core/storage/prefix.js.map +1 -1
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/schema-catalog.d.ts +42 -0
- package/dist/core/storage/schema-catalog.js +141 -0
- package/dist/core/storage/schema-catalog.js.map +1 -0
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +41 -20
- package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +3 -3
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +3 -3
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +176 -36
- package/dist/core/storage/session/fork-staging.code.js.map +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +3 -3
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +2 -2
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/session-search-index.d.ts +5 -0
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +3 -3
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-chat-records.d.ts +15 -0
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +102 -5
- package/dist/core/storage/session/sql-session-store.impl.js +4 -4
- package/dist/core/storage/session/sql-session-store.js +4 -4
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.code.js +1 -1
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/session/types.d.ts +14 -0
- package/dist/core/storage/sqlite-facade.d.ts +37 -5
- package/dist/core/storage/sqlite-facade.js +351 -18
- package/dist/core/storage/sqlite-facade.js.map +1 -1
- package/dist/core/storage/statement-sequence.d.ts +83 -0
- package/dist/core/storage/statement-sequence.js +21 -0
- package/dist/core/storage/statement-sequence.js.map +1 -1
- package/dist/core/storage/storage-status.code.js +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.code.js +1 -1
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.code.js +1 -1
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +4 -4
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.code.js +1 -1
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/bash.d.ts +8 -4
- package/dist/core/tools/history-session.d.ts +5 -0
- package/dist/core/tools/history-tasks.d.ts +123 -0
- package/dist/core/tools/kill.d.ts +5 -2
- package/dist/core/tools/powershell.d.ts +2 -2
- package/dist/core/tools/read-url.code.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/tools/read.d.ts +12 -2
- package/dist/core/tools/resource-selectors.d.ts +2 -0
- package/dist/core/tools/search.d.ts +12 -2
- package/dist/core/worktree-snapshot/blob-store.d.ts +14 -2
- package/dist/core/worktree-snapshot/blob-store.js +69 -16
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- package/dist/core/worktree-snapshot/errors.code.js +2 -2
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +2 -2
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +3 -3
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.js +5 -5
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/main.js +1 -1
- package/dist/modes/interactive/components/agent-panel.d.ts +1 -0
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/task-inspector.d.ts +2 -0
- package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/interactive-mode-helpers.d.ts +2 -2
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/agent-panel-bridge.d.ts +5 -0
- package/dist/package-manager-cli.code.js +6 -6
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/0.js +1 -1
- package/dist/startup-stages/1.js +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/2.js +8 -1
- package/dist/startup-stages/3.js +1 -6
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/7.js +1 -5
- package/dist/utils/startup-database-spare.code.js +2 -2
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks.md +123 -23
- package/docs/compaction.md +18 -0
- package/docs/docs.json +2 -0
- package/docs/environment-variables.md +1 -1
- package/docs/getting-started/installation.md +9 -2
- package/docs/guides/postgres-pgbouncer.md +339 -0
- package/docs/guides/postgres-tuning.md +311 -0
- package/docs/guides/resume-on-any-machine.md +2 -2
- package/docs/guides.md +2 -0
- package/docs/index.md +1 -1
- package/docs/libraries/agent-core.md +1 -1
- package/docs/libraries/ai.md +2 -2
- package/docs/libraries/codemode.md +1 -1
- package/docs/libraries/storage-libsql.md +6 -1
- package/docs/libraries/storage-postgres.md +11 -6
- package/docs/libraries/tui.md +1 -1
- package/docs/libraries.md +2 -2
- package/docs/programmatic.md +1 -1
- package/docs/quickstart.md +1 -1
- package/docs/sdk/storage.md +1 -1
- package/docs/sdk/web-server.md +1 -3
- package/docs/sdk.md +1 -7
- package/docs/sessions.md +58 -2
- package/docs/settings.md +20 -1
- package/docs/skills/authoring.md +1 -1
- package/docs/skills.md +79 -6
- package/docs/storage.md +262 -12
- package/docs/subagents/reference.md +2 -2
- package/docs/subagents.md +4 -3
- package/docs/tools.md +44 -10
- package/docs/windows.md +1 -1
- package/package.json +9 -9
- package/dist/_shared/sdk-RRLVN7ER.js.map +0 -1
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +0 -1
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +0 -1
- package/dist/_shared/startup-0-5-FD2P735I.js.map +0 -1
- package/dist/_shared/startup-8-1-4KANEHRA.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { CompactionConfigError, QueuedDeliveryRelay, THINKING_LEVELS, attachJsonlLineReader, bindSavedReadLines, chatReceipt, flushRawStdout, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, onBlueprintBuildFinished, onBlueprintBuildWaiting, outputExtensionLoadErrors, quitAsInteractiveApp, rawStdoutWriteFailed, sliceTail, takeOverStdout, transcriptLayoutOf, userMessageOrigin, waitForRawStdoutBackpressure, withQueuedDeliveryChange, writeRawStdout, yieldToEventLoop } from "./startup-0-0-
|
|
2
|
+
import { CompactionConfigError, QueuedDeliveryRelay, THINKING_LEVELS, attachJsonlLineReader, bindSavedReadLines, chatReceipt, flushRawStdout, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, onBlueprintBuildFinished, onBlueprintBuildWaiting, outputExtensionLoadErrors, quitAsInteractiveApp, rawStdoutWriteFailed, sliceTail, takeOverStdout, transcriptLayoutOf, userMessageOrigin, waitForRawStdoutBackpressure, withQueuedDeliveryChange, writeRawStdout, yieldToEventLoop } from "./startup-0-0-57KF6LZH.js";
|
|
3
3
|
import { flushLifecycleTraceAtQuit, getAgentDir, loadOnDemand, markLifecycleTiming, setDebugSetting, startedWithHangupIgnored } from "./p0-cli-BB45ZQY6.js";
|
|
4
4
|
import { TuiMainScreen, bindBundledHintCommands, isKeyRelease, runAsHintActivation, setCapabilityOverrides, setKeybindings } from "@bastani/atomic-tui";
|
|
5
5
|
import { KeybindingsManager as KeybindingsManager$1, getEditorTheme, theme } from "./p2-shell-main-B2WIALFD.js";
|
|
6
|
-
import { ensurePngTranscoder, hasQuitStoppableCommands, isJsonValue, killQuitStoppableCommandsNow, parseEngineExplicitQuitCommand, parseInteractiveEngineCommand, prewarmModelApi, runCallback, runSynchronousCallback, serializeInteractiveEngineMessage, settingsWriteOwner, taskPromptHost } from "./startup-0-1-
|
|
6
|
+
import { ensurePngTranscoder, hasQuitStoppableCommands, isJsonValue, killQuitStoppableCommandsNow, parseEngineExplicitQuitCommand, parseInteractiveEngineCommand, prewarmModelApi, runCallback, runSynchronousCallback, serializeInteractiveEngineMessage, settingsWriteOwner, taskPromptHost } from "./startup-0-1-GIY75K46.js";
|
|
7
7
|
import { interactiveEngineStartupEnv, isInteractiveEngineChild } from "./p1a-prewarm-XIU57JHF.js";
|
|
8
8
|
import { CONSOLE_CLOSED_EXIT_CODE, CONSOLE_CLOSED_SHUTDOWN_MS, ChatSessionHost, CustomMessageComponent, KeybindingsReloadCoordinator, RETAINED_TOOL_RENDERERS, STOP_ALL_STATUS_KEY, ToolExecutionComponent, agentPanelReturning, bindAgentPanel, createRpcErrorResponse, createRpcSuccessResponse, disposeRenderer, engineTaskInspectorUi, exitWithStatus, formatRpcErrorMessage, handleSetViewedAgent, installEngineAgentViewBridge, markHintRoutesAsEngine, onTaskDismissed, openLocalAgentViewPort, readTaskCompletionHistory, readTaskPrompts, retainedToolRenderer, rpcShutdownErrorEvent, runHintRoute, runRendererCleanup, sameRows, showAgentPanel, showEngineTaskInspector, stopAllBackgroundWork, themedChatHostStyle, withBlockRenderTime } from "./mode-shared-2QJSCUM6.js";
|
|
9
9
|
import { killTrackedDetachedChildren, taskTranscriptSource, watchTaskTranscriptBindings } from "./startup-0-2-27OWFHV6.js";
|
|
10
10
|
import { getOwnerTaskStore, isTaskTurnInterrupted, startInteractiveEngineLiveness, watchOwnerTaskStoreBinding } from "./startup-0-3-T4DVFYWX.js";
|
|
11
|
-
import { FooterDataProvider, dismissedAgentPanelItems, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, onOwnerTaskAction, ownerTaskViewSource, sourceError, subscribeAgentPanel } from "./startup-8-1-
|
|
11
|
+
import { FooterDataProvider, dismissedAgentPanelItems, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, onOwnerTaskAction, ownerTaskViewSource, sourceError, subscribeAgentPanel } from "./startup-8-1-X32CYSXB.js";
|
|
12
12
|
import { writeSync } from "node:fs";
|
|
13
13
|
import { ToolBlock } from "./startup-0-4-ZMJV547D.js";
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -17,7 +17,7 @@ import { normalizeProviderId } from "@bastani/atomic-ai";
|
|
|
17
17
|
import { HOST_STARTED_SESSION } from "./startup-15-1-4S7FLMNG.js";
|
|
18
18
|
import { findQueuedMessages, findQueuedMessagesInFile, findQueuedMessagesInStore, firstHistoryCursor } from "./startup-8-0-34CBHPZH.js";
|
|
19
19
|
import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
|
|
20
|
-
import { CredentialSynchronizationError, createAuthInteraction, getSkillCatalog, isOAuthLoginCancelled, normalizeOAuthLoginError } from "./startup-0-5-
|
|
20
|
+
import { CredentialSynchronizationError, createAuthInteraction, getSkillCatalog, isOAuthLoginCancelled, normalizeOAuthLoginError } from "./startup-0-5-YDW47QX6.js";
|
|
21
21
|
import { SESSION_HISTORY_SCAN_ENTRIES } from "./settings-startup-4QCVCI53.js";
|
|
22
22
|
import { getExtensionRuntimeEventBus } from "./startup-14-0-MLX36RBG.js";
|
|
23
23
|
import * as crypto from "node:crypto";
|
|
@@ -4175,7 +4175,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
4175
4175
|
return (async () => {
|
|
4176
4176
|
const root = new URL("../", import.meta.url);
|
|
4177
4177
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
4178
|
-
const key = `${root.href}#0.10.
|
|
4178
|
+
const key = `${root.href}#0.10.11-alpha.1`;
|
|
4179
4179
|
let release = releases.get(key);
|
|
4180
4180
|
if (release === undefined) {
|
|
4181
4181
|
const current = (async () => {
|
|
@@ -4203,7 +4203,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
4203
4203
|
} catch {
|
|
4204
4204
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
4205
4205
|
}
|
|
4206
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
4206
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
|
|
4207
4207
|
if (updatedTo === undefined) throw error;
|
|
4208
4208
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
4209
4209
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __name } from "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME, CONFIG_DIR_NAME, DebugError, ENV_OFFLINE, ENV_SKIP_VERSION_CHECK, PACKAGE_NAME, canonicalizePathAsync, createChildProcessEnvironment, createModuleRequire, getAgentDir, getBundledInteractiveAssetPathAsync, getEnvValue, getPathComparisonKey, helperLaunchAsync, missingHelperOptions, serializeDebugError, shortenHomePath, stripBom } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { BUILTIN_SLASH_COMMANDS, CompactionError, CountdownTimer, DEFAULT_MAX_BYTES, DynamicBorder, FramedSelector, HOST_NOTICE_TYPE, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, Selector, TASK_MARKS, TaskMessageError, VERBATIM_COMPACTION_STRATEGY, addHistoryUsageToTotals, addUsageToTotals, allToolNames, areExperimentalFeaturesEnabled, backgroundTaskScope, bindSavedTaskRowKey, carryRowSource, chatReceipt, chatReceiptWrite, createUsageTotals, defaultModelPerProvider, fetchWithRetry, formatReadLineRange, formatTokenCount, getEngineSessionStats, getTextOutput, getToolExecutionStartedAt, hostNoticeForEvent, isMissingSessionCwdError, isTaskMessageError, keptTaskId, noteRowSource, noteSavedSeq, parseSlashCommand, queueUpdateDeliveries, queuedReceiptsUnderWay, queuedTextsUnderWay, raceWithAbortSignal, replaceTabs, rowSource, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, serializeCompactionError, serializeMissingSessionCwdError, sessionWaitsToRetry, sqliteSessionResumeArgs, taskMark, taskOutcomeStatus } from "./startup-0-0-
|
|
4
|
-
import { ExtensionInputComponent, ExtensionSelectorComponent, SUMMARY_COMPACTION_PREFIX, TaskElapsedClocks, assertSessionNotOpenElsewhere, bindTaskClock, createVerbatimCompactionMessage, ensurePngTranscoder, getToolPath, heldPrompts, isVerbatimCompactionMessage, reopenedCompletionName, repairOrphanToolResults, shownSpanMs, stripVerbatimCompactionPrefix, taskClockOf, taskClockRunning, taskClocksFor, taskElapsedMs, thinkingLevelForModelSwitch } from "./startup-0-1-
|
|
3
|
+
import { BUILTIN_SLASH_COMMANDS, CompactionError, CountdownTimer, DEFAULT_MAX_BYTES, DynamicBorder, FramedSelector, HOST_NOTICE_TYPE, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, Selector, TASK_MARKS, TaskMessageError, VERBATIM_COMPACTION_STRATEGY, addHistoryUsageToTotals, addUsageToTotals, allToolNames, areExperimentalFeaturesEnabled, backgroundTaskScope, bindSavedTaskRowKey, carryRowSource, chatReceipt, chatReceiptWrite, createUsageTotals, defaultModelPerProvider, fetchWithRetry, formatReadLineRange, formatTokenCount, getEngineSessionStats, getTextOutput, getToolExecutionStartedAt, hostNoticeForEvent, isMissingSessionCwdError, isTaskMessageError, keptTaskId, noteRowSource, noteSavedSeq, parseSlashCommand, queueUpdateDeliveries, queuedReceiptsUnderWay, queuedTextsUnderWay, raceWithAbortSignal, replaceTabs, rowSource, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, serializeCompactionError, serializeMissingSessionCwdError, sessionWaitsToRetry, sqliteSessionResumeArgs, taskMark, taskOutcomeStatus } from "./startup-0-0-57KF6LZH.js";
|
|
4
|
+
import { ExtensionInputComponent, ExtensionSelectorComponent, SUMMARY_COMPACTION_PREFIX, TaskElapsedClocks, assertSessionNotOpenElsewhere, bindTaskClock, createVerbatimCompactionMessage, ensurePngTranscoder, getToolPath, heldPrompts, isVerbatimCompactionMessage, reopenedCompletionName, repairOrphanToolResults, shownSpanMs, stripVerbatimCompactionPrefix, taskClockOf, taskClockRunning, taskClocksFor, taskElapsedMs, thinkingLevelForModelSwitch } from "./startup-0-1-GIY75K46.js";
|
|
5
5
|
import { CodeHighlighter, KeybindingsManager as KeybindingsManager$1, NAV_CONFIRM_WINDOW_MS, SYSTEM_THEME_NAME, TwoPressConfirm, clickableKeyTextHint, colorEnvironment, formatKeyText, getCurrentThemeName, getEditorTheme, getGlobalTheme, getMarkdownTheme, getTerminalTheme, initTheme, isLightTheme, isNavHelpKey, keyDisplayText, keyHint, keyHintIfBound, keyText, keyTextHint, keybindingIdentity, markTerminalColorsPending, navActionText, navFirstKeyText, navKeyText, parenthesizedKeyHint, parseAutoThemeSetting, renderNavHintLine, renderNavKeyOverlay, resolveThemeSetting, sanitizeTerminalText, setTerminalColorScheme, setTerminalColors, setTheme, setThemeInstance, singleLineDisplayText, slashCommandHint, terminalDisplayText, theme } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { isDebugEnabled, projectTrustOptionsFor } from "./p1b-elig-ENCUPKKJ.js";
|
|
7
7
|
import { AgentTokenMeter, WorkingRunMeter, agentTokenTotal, compactionMeta, formatWorkingElapsed, loadTaskOwnTranscriptHistory, normalizeWorkingRunSnapshot, observedTaskChatWrite, runInProgress, taskChatPage, taskOwnTranscriptEntries, taskTranscriptSource, withTaskChatRows } from "./startup-0-2-27OWFHV6.js";
|
|
8
8
|
import { AtomicWorkedStatusComponent, AtomicWorkingStatusComponent, DEFAULT_WORKING_MESSAGE, OwnerTaskStore, atomicWorkingFrame, atomicWorkingGlyph, getOwnerTaskSession, getOwnerTaskStore, isTaskTurnInterrupted, parseGitUrl, setTaskTurnInterrupted, watchAtomicWorkingClock, watchOwnerTaskStoreBinding, workingMessageColumns } from "./startup-0-3-T4DVFYWX.js";
|
|
9
9
|
import { isRpcRequestAcceptedFailure } from "./settings-startup-4QCVCI53.js";
|
|
10
10
|
import { lastAssistantAnswer } from "./startup-8-0-34CBHPZH.js";
|
|
11
|
-
import { CredentialSynchronizationError, QuestionnaireSession, buildItemsForQuestion, childOfAttempt, completionTitleDescription, completionTitleText, firstSubagentAttempt, formatTaskHeartbeatDuration, formatTaskHeartbeatStatus, getSkillCatalog, isResumableStop, latestSubagentAttempt, latestSubagentAttempts, releasedWaitingOn, require_semver, settledTaskResumeId, supersededSettledAttempts, taskHeartbeatKindLabel, taskNoticeLine, waitingReleasedShells, waitingReleasedTools } from "./startup-0-5-
|
|
11
|
+
import { CredentialSynchronizationError, QuestionnaireSession, buildItemsForQuestion, childOfAttempt, completionTitleDescription, completionTitleText, firstSubagentAttempt, formatTaskHeartbeatDuration, formatTaskHeartbeatStatus, getSkillCatalog, isResumableStop, latestSubagentAttempt, latestSubagentAttempts, releasedWaitingOn, require_semver, settledTaskResumeId, supersededSettledAttempts, taskHeartbeatKindLabel, taskNoticeLine, waitingReleasedShells, waitingReleasedTools } from "./startup-0-5-YDW47QX6.js";
|
|
12
12
|
import { DETAIL_FIRST_PREFIX, DETAIL_PREFIX, NoticeLine, STATUS_MARKERS, TOOL_BLOCK_LIMITS, ToolBlock, ToolBlockMarkdown, ToolBlockRecords, collapseToolBlockLines, componentNeedsWorkingClock, formatModelLabel, isToolBlock, markdownPreviewRows } from "./startup-0-4-ZMJV547D.js";
|
|
13
13
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
14
|
-
import { EVENT_REPORT_MESSAGE_TYPE, agentPanelExtensionItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, answerAgentPanelItem, builtinToolBlockPresentation, copyPanelItemStableKey, createLoadedToolDefinition, dismissedAgentPanelItems, formatToolBlockElapsed, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isInterruptedPanelTask, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, notifyAgentPanelChanged, openAgentPanelItem, ownerTaskViewSource, panelItemStableKey, pathExists, plainNoticeBlock, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, retainTaskWindowReader, sampleAgentPanelSources, savedBoundaryCursor, shortTaskTitle, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFragments } from "./startup-8-1-
|
|
14
|
+
import { EVENT_REPORT_MESSAGE_TYPE, agentPanelExtensionItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, answerAgentPanelItem, builtinToolBlockPresentation, copyPanelItemStableKey, createLoadedToolDefinition, dismissedAgentPanelItems, formatToolBlockElapsed, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isInterruptedPanelTask, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, notifyAgentPanelChanged, openAgentPanelItem, ownerTaskViewSource, panelItemStableKey, pathExists, plainNoticeBlock, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, retainTaskWindowReader, sampleAgentPanelSources, savedBoundaryCursor, shortTaskTitle, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFragments } from "./startup-8-1-X32CYSXB.js";
|
|
15
15
|
import { queuedMessageReceipt, queuedMessageReceiptId, queuedMessageSaved } from "./startup-15-0-YUKGAC63.js";
|
|
16
16
|
import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
|
|
17
17
|
import { isTruthyEnvFlag } from "./p1a-prewarm-XIU57JHF.js";
|
|
@@ -1543,6 +1543,13 @@ var AgentPanelFocus = class {
|
|
|
1543
1543
|
this.actions.open(row);
|
|
1544
1544
|
}
|
|
1545
1545
|
enter(selectId, returnAnchor) {
|
|
1546
|
+
if (returnAnchor?.selectedKey === "main" && this.showMain) {
|
|
1547
|
+
this.selectedId = AGENT_PANEL_MAIN_ID;
|
|
1548
|
+
this.selectedKey = void 0;
|
|
1549
|
+
this.scroll = returnAnchor.scroll;
|
|
1550
|
+
this.keepInView();
|
|
1551
|
+
return;
|
|
1552
|
+
}
|
|
1546
1553
|
if (returnAnchor !== void 0) {
|
|
1547
1554
|
const resolved = resolveListEntry(returnAnchor.selectedKey, returnAnchor.orderKeys, this.rows.map((row) => ({
|
|
1548
1555
|
id: row.id,
|
|
@@ -1587,10 +1594,12 @@ var AgentPanelFocus = class {
|
|
|
1587
1594
|
}
|
|
1588
1595
|
this.scroll = keepRowInView(this.scroll, index, 8, this.rows.length);
|
|
1589
1596
|
}
|
|
1597
|
+
/** Moves the selection `delta` rows; ↓ on the last row wraps to the first. */
|
|
1590
1598
|
move(delta) {
|
|
1591
1599
|
const ids = this.ids();
|
|
1592
1600
|
const index = Math.max(0, ids.indexOf(this.selectedId));
|
|
1593
|
-
|
|
1601
|
+
const target = delta > 0 && index === ids.length - 1 ? 0 : Math.max(0, Math.min(ids.length - 1, index + delta));
|
|
1602
|
+
this.selectedId = ids[target] ?? "main";
|
|
1594
1603
|
this.syncSelectedKey();
|
|
1595
1604
|
this.keepInView();
|
|
1596
1605
|
}
|
|
@@ -4734,6 +4743,8 @@ var UnpaddedBlockComponent = class {
|
|
|
4734
4743
|
}
|
|
4735
4744
|
};
|
|
4736
4745
|
const expandedNoticeCache = /* @__PURE__ */ new WeakMap();
|
|
4746
|
+
/** Notices whose task's history was read and held nothing to show: folded again, their card promises no more. */
|
|
4747
|
+
const emptyNoticeTranscripts = /* @__PURE__ */ new WeakSet();
|
|
4737
4748
|
const pendingNoticeLoads = /* @__PURE__ */ new WeakMap();
|
|
4738
4749
|
function isCompletionHistory(loaded) {
|
|
4739
4750
|
return !Array.isArray(loaded) && loaded.kind === "task-completion-history";
|
|
@@ -4748,7 +4759,7 @@ function renderInnerNoticeToolCall(input) {
|
|
|
4748
4759
|
const { id, name, args, matched, settledStatus, getToolDefinition, cwd } = input;
|
|
4749
4760
|
const isPartial = !matched && settledStatus === "running";
|
|
4750
4761
|
const isError = matched?.isError === true;
|
|
4751
|
-
const status = matched ? matched.isError ? "failure" : "success" : settledStatus === "running"
|
|
4762
|
+
const status = matched ? matched.isError ? "failure" : "success" : settledStatus === "running" || settledStatus === "waiting" ? settledStatus : "stopped";
|
|
4752
4763
|
const durationMeta = matched?.durationMs !== void 0 && matched.durationMs >= 1e3 ? [noticeDuration(matched.durationMs)] : void 0;
|
|
4753
4764
|
const toolDef = getToolDefinition?.(name);
|
|
4754
4765
|
const presentation = builtinToolBlockPresentation({
|
|
@@ -4770,7 +4781,7 @@ function renderInnerNoticeToolCall(input) {
|
|
|
4770
4781
|
const canonicalCall = presentation !== void 0 && (!toolDef?.renderCall || isBuiltinToolCallRenderer(toolDef.renderCall));
|
|
4771
4782
|
const canonicalResult = presentation !== void 0 && (!toolDef?.renderResult || isBuiltinToolResultRenderer(toolDef.renderResult));
|
|
4772
4783
|
if (canonicalCall && canonicalResult && presentation) return new ToolBlock({
|
|
4773
|
-
status: presentation.status ?? status,
|
|
4784
|
+
status: matched || settledStatus === "running" ? presentation.status ?? status : status,
|
|
4774
4785
|
title: presentation.title,
|
|
4775
4786
|
args: presentation.args,
|
|
4776
4787
|
meta: presentation.meta,
|
|
@@ -4846,7 +4857,7 @@ function extractEntriesExpansion(loaded, settledStatus, options) {
|
|
|
4846
4857
|
if (!loaded) return void 0;
|
|
4847
4858
|
const history = isCompletionHistory(loaded) ? loaded : Array.isArray(loaded) ? projectTaskCompletionEntries(loaded) : projectTaskCompletionEntries(loaded.entries ?? [], loaded.unavailable);
|
|
4848
4859
|
const { prompt, unavailable } = history;
|
|
4849
|
-
if (!prompt && !unavailable) return void 0;
|
|
4860
|
+
if (!prompt && history.toolCalls.length === 0 && !unavailable) return void 0;
|
|
4850
4861
|
const cwd = options?.cwd ?? process.cwd();
|
|
4851
4862
|
return {
|
|
4852
4863
|
prompt,
|
|
@@ -4972,7 +4983,11 @@ var TaskCompletionMessage = class TaskCompletionMessage {
|
|
|
4972
4983
|
if (!load) {
|
|
4973
4984
|
const controller = new AbortController();
|
|
4974
4985
|
const created = {
|
|
4975
|
-
result: Promise.resolve().then(() => loader(taskId, { signal: controller.signal })).then((loaded) =>
|
|
4986
|
+
result: Promise.resolve().then(() => loader(taskId, { signal: controller.signal })).then((loaded) => {
|
|
4987
|
+
const extracted = extractEntriesExpansion(loaded, status, this.options);
|
|
4988
|
+
if (extracted === void 0) emptyNoticeTranscripts.add(notice);
|
|
4989
|
+
return extracted ?? null;
|
|
4990
|
+
}, () => null).finally(() => {
|
|
4976
4991
|
if (pendingNoticeLoads.get(notice) === created) pendingNoticeLoads.delete(notice);
|
|
4977
4992
|
}),
|
|
4978
4993
|
controller,
|
|
@@ -5016,8 +5031,9 @@ var TaskCompletionMessage = class TaskCompletionMessage {
|
|
|
5016
5031
|
const head = [...line === void 0 ? [] : [line], ...notice.resumeId === void 0 ? [] : [previewRow(truncateToWidth(theme.fg("dim", ` resume id ${cleanPreview(notice.resumeId)}`), width, "…"))]];
|
|
5017
5032
|
const transcript = this.ensureTranscriptLoaded(notice, spec.status);
|
|
5018
5033
|
if (transcript) {
|
|
5034
|
+
const prompt = transcript.prompt || notice.line?.subject?.trim();
|
|
5019
5035
|
const records = new ToolBlockRecords([
|
|
5020
|
-
new SectionRecord(theme.bold("Prompt"),
|
|
5036
|
+
...prompt ? [new SectionRecord(theme.bold("Prompt"), new ToolBlockMarkdown(prompt))] : [],
|
|
5021
5037
|
new SectionRecord(theme.bold("Tool calls"), transcript.toolBlocks.length > 0 ? new ComponentList(transcript.toolBlocks) : new Text$1(theme.fg("dim", transcript.unavailable ?? "(none)"), 0, 0)),
|
|
5022
5038
|
new SectionRecord(theme.bold("Result"), preview ? new ToolBlockMarkdown(preview) : new Text$1(theme.fg("dim", "(no output)"), 0, 0))
|
|
5023
5039
|
]);
|
|
@@ -5032,7 +5048,7 @@ var TaskCompletionMessage = class TaskCompletionMessage {
|
|
|
5032
5048
|
}
|
|
5033
5049
|
return [...head, ...markdown.render(contentWidth).map((text, index) => previewRow(truncateToWidth(`${theme.fg("muted", index === 0 ? " ⎿ " : " ")}${text.trimEnd()}`, width, "…")))];
|
|
5034
5050
|
}
|
|
5035
|
-
const canLoadTranscript = this.loadedByTask.get(taskId) !== null && (this.options?.hasTranscript ? this.options.hasTranscript(taskId) : Boolean(this.options?.loadTranscript));
|
|
5051
|
+
const canLoadTranscript = this.loadedByTask.get(taskId) !== null && !emptyNoticeTranscripts.has(notice) && (this.options?.hasTranscript ? this.options.hasTranscript(taskId) : Boolean(this.options?.loadTranscript));
|
|
5036
5052
|
if (!preview && !canLoadTranscript) return line === void 0 ? [] : [line];
|
|
5037
5053
|
let rows = this.previewRows.get(notice);
|
|
5038
5054
|
if (!rows) {
|
|
@@ -15905,6 +15921,8 @@ var TaskInspector = class {
|
|
|
15905
15921
|
closeReason = "dismissed";
|
|
15906
15922
|
/** Return anchor captured when leaving `/tasks` to view a subagent or extension item. */
|
|
15907
15923
|
returnAnchor;
|
|
15924
|
+
/** Stable key of the row the reader last opened here, by Enter or a click. */
|
|
15925
|
+
chosenKey;
|
|
15908
15926
|
/** Typed state machine for list selection & viewport scroll across away/return transitions. */
|
|
15909
15927
|
selectionPhase = {
|
|
15910
15928
|
kind: "browsing",
|
|
@@ -16113,6 +16131,7 @@ var TaskInspector = class {
|
|
|
16113
16131
|
};
|
|
16114
16132
|
}
|
|
16115
16133
|
enterAwayView(task) {
|
|
16134
|
+
if (task !== void 0) this.chosenKey = taskStableKey(task);
|
|
16116
16135
|
if (this.selectionPhase.kind === "away") return;
|
|
16117
16136
|
const anchor = this.captureListAnchor(task?.ref.taskId, task);
|
|
16118
16137
|
if (anchor !== void 0) this.selectionPhase = {
|
|
@@ -16344,6 +16363,7 @@ var TaskInspector = class {
|
|
|
16344
16363
|
showAgent(task) {
|
|
16345
16364
|
const view = this.agentView;
|
|
16346
16365
|
if (view === void 0 || task.kind !== "agent") return false;
|
|
16366
|
+
this.chosenKey = taskStableKey(task);
|
|
16347
16367
|
const baseAnchor = this.selectionPhase.kind === "away" ? this.selectionPhase.anchor : void 0;
|
|
16348
16368
|
this.returnAnchor = {
|
|
16349
16369
|
selectedKey: taskStableKey(task),
|
|
@@ -16680,6 +16700,7 @@ var TaskInspector = class {
|
|
|
16680
16700
|
try {
|
|
16681
16701
|
if (this.boardSource.open(row.id, reopen ? { onReturn: () => reopen(row.id, anchor) } : void 0) === false) this.failureNotice = `Could not open ${rowName(row)}.`;
|
|
16682
16702
|
else {
|
|
16703
|
+
this.chosenKey = panelItemStableKey(row.item);
|
|
16683
16704
|
this.returnAnchor = anchor;
|
|
16684
16705
|
this.closeReason = "navigated-item";
|
|
16685
16706
|
this.close();
|
|
@@ -19168,6 +19189,7 @@ async function showTaskInspector(ui, store, taskId, options = {}) {
|
|
|
19168
19189
|
} else if (inspector.closeReason === "navigated-item" && inspector.returnAnchor !== void 0) saveTasksReturnAnchor(store, inspector.returnAnchor);
|
|
19169
19190
|
else if (bridge?.viewedTaskId() === void 0) clearTasksReturnAnchor(store, { keepPending: true });
|
|
19170
19191
|
}
|
|
19192
|
+
if (session !== void 0 && inspector.chosenKey !== void 0) rememberAgentPanelChoice(session, inspector.chosenKey);
|
|
19171
19193
|
inspector?.dispose();
|
|
19172
19194
|
panel.show();
|
|
19173
19195
|
}
|
|
@@ -19954,7 +19976,7 @@ async function showAgentPanel(session, ui, selectId, returnAnchor) {
|
|
|
19954
19976
|
if (finished) return;
|
|
19955
19977
|
finished = true;
|
|
19956
19978
|
if (currentRows.length === 0) state.lastSelectionAnchor = void 0;
|
|
19957
|
-
else
|
|
19979
|
+
else state.lastSelectionAnchor = focus.captureAnchor();
|
|
19958
19980
|
idlePanel.show(() => done());
|
|
19959
19981
|
};
|
|
19960
19982
|
const focus = new AgentPanelFocus(keys, {
|
|
@@ -20207,6 +20229,21 @@ function agentPanelListsWhenShown(session, taskId) {
|
|
|
20207
20229
|
* later), and `show` with the view's `close`, so the panel is back in the step the view leaves and that close says so.
|
|
20208
20230
|
* `show` also cancels a hide not done yet; each happens once.
|
|
20209
20231
|
*/
|
|
20232
|
+
/**
|
|
20233
|
+
* Makes the row a reader opened in `/tasks`, by its stable key, the agent panel's remembered selection, so the next
|
|
20234
|
+
* ↓ from the prompt focuses it. A key the panel does not list leaves the remembered selection as it was.
|
|
20235
|
+
*/
|
|
20236
|
+
function rememberAgentPanelChoice(session, key) {
|
|
20237
|
+
const { rows } = rankPanelSession(session);
|
|
20238
|
+
const index = rows.findIndex((row) => panelItemStableKey(row) === key || row.id === key || panelTaskId(row) === key);
|
|
20239
|
+
if (index < 0) return;
|
|
20240
|
+
const state = panelState(session);
|
|
20241
|
+
state.lastSelectionAnchor = {
|
|
20242
|
+
selectedKey: panelItemStableKey(rows[index]),
|
|
20243
|
+
orderKeys: rows.map((row) => panelItemStableKey(row)),
|
|
20244
|
+
scroll: keepRowInView(state.lastSelectionAnchor?.scroll ?? 0, index, 8, rows.length)
|
|
20245
|
+
};
|
|
20246
|
+
}
|
|
20210
20247
|
function hideAgentPanelFor(target) {
|
|
20211
20248
|
let state = "shown";
|
|
20212
20249
|
return {
|
|
@@ -26802,7 +26839,7 @@ async function formatResumeCommand(sessionManager, platform = process.platform)
|
|
|
26802
26839
|
return args.join(" ");
|
|
26803
26840
|
}
|
|
26804
26841
|
function hasDefaultModelProvider(providerId) {
|
|
26805
|
-
return providerId
|
|
26842
|
+
return Object.hasOwn(defaultModelPerProvider, providerId);
|
|
26806
26843
|
}
|
|
26807
26844
|
const BEDROCK_PROVIDER_ID = "amazon-bedrock";
|
|
26808
26845
|
/** @deprecated Login options are now built directly from provider auth metadata. */
|
|
@@ -27282,7 +27319,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
27282
27319
|
return (async () => {
|
|
27283
27320
|
const root = new URL("../", import.meta.url);
|
|
27284
27321
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
27285
|
-
const key = `${root.href}#0.10.
|
|
27322
|
+
const key = `${root.href}#0.10.11-alpha.1`;
|
|
27286
27323
|
let release = releases.get(key);
|
|
27287
27324
|
if (release === undefined) {
|
|
27288
27325
|
const current = (async () => {
|
|
@@ -27310,7 +27347,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
27310
27347
|
} catch {
|
|
27311
27348
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
27312
27349
|
}
|
|
27313
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
27350
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
|
|
27314
27351
|
if (updatedTo === undefined) throw error;
|
|
27315
27352
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
27316
27353
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|