@bastani/atomic 0.10.10 → 0.10.11-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +139 -0
- package/README.md +1 -1
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +11 -13
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +9 -9
- package/dist/_shared/mode-shared-2QJSCUM6.js +55 -18
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-RRLVN7ER.js → sdk-IQMULKFU.js} +2962 -470
- package/dist/_shared/sdk-IQMULKFU.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +4 -4
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +1 -1
- package/dist/_shared/{settings-startup-4QCVCI53.js → settings-startup-HXQLSUWM.js} +8 -2
- package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -0
- package/dist/_shared/{startup-0-0-4VG2G44V.js → startup-0-0-3IXNMFM2.js} +482 -53
- package/dist/_shared/startup-0-0-3IXNMFM2.js.map +1 -0
- package/dist/_shared/{startup-0-1-XTIL65D4.js → startup-0-1-7T2IAE7J.js} +121 -251
- package/dist/_shared/startup-0-1-7T2IAE7J.js.map +1 -0
- package/dist/_shared/{startup-0-2-27OWFHV6.js → startup-0-2-5QHPCEON.js} +293 -10
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -0
- package/dist/_shared/{startup-0-3-T4DVFYWX.js → startup-0-3-4ZYBYQNM.js} +273 -14
- package/dist/_shared/startup-0-3-4ZYBYQNM.js.map +1 -0
- package/dist/_shared/startup-0-4-ZMJV547D.js +6 -6
- package/dist/_shared/{startup-0-5-FD2P735I.js → startup-0-5-YDW47QX6.js} +29 -71
- package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -0
- package/dist/_shared/startup-10-0-TDQNBDDL.js +9 -9
- package/dist/_shared/startup-12-0-55AAXBJZ.js +4 -4
- package/dist/_shared/startup-14-0-MLX36RBG.js +6 -6
- package/dist/_shared/startup-15-0-YUKGAC63.js +34 -10
- package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +10 -9
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +421 -84
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/{startup-8-1-4KANEHRA.js → startup-8-1-X32CYSXB.js} +1291 -722
- package/dist/_shared/startup-8-1-X32CYSXB.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +17 -9
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +3 -3
- package/dist/builtin/intercom/CHANGELOG.md +29 -0
- package/dist/builtin/intercom/broker/broker.bundle.mjs +1138 -384
- package/dist/builtin/intercom/broker/database-wake-up-bus.ts +103 -24
- package/dist/builtin/intercom/broker/multinode-router.ts +42 -21
- package/dist/builtin/intercom/broker/multinode-state-store.ts +22 -1
- package/dist/builtin/intercom/broker/open-broker-state.ts +82 -31
- package/dist/builtin/intercom/broker/paths.ts +8 -4
- package/dist/builtin/intercom/broker/released-asker-remote-replies.ts +18 -6
- package/dist/builtin/intercom/broker/sql-add-column.ts +4 -1
- package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +65 -44
- package/dist/builtin/intercom/broker/sql-held-send-store.ts +11 -3
- package/dist/builtin/intercom/broker/sql-known-session-store.ts +24 -12
- package/dist/builtin/intercom/broker/sql-lease-store.ts +386 -65
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +462 -130
- package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +20 -9
- package/dist/builtin/intercom/broker/sql-released-ask-store.ts +14 -6
- package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +27 -11
- package/dist/builtin/intercom/broker/sql-schema.ts +198 -5
- package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +97 -34
- package/dist/builtin/intercom/index.bundle.mjs +11 -8
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +18 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +62 -23
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +6 -6
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +4 -4
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +2 -2
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +2 -2
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +2 -2
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +3 -3
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +3 -3
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/agent-session-methods.d.ts +3 -0
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +1 -0
- package/dist/core/compaction/compactor.d.ts +2 -0
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.code.js +1 -1
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.code.js +2 -2
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +2 -2
- package/dist/core/extensions/runner-context.js +4 -4
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/model-registry.js +1 -1
- package/dist/core/model-resolver-defaults.d.ts +3 -2
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +4 -5
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.d.ts +5 -2
- package/dist/core/session-manager-core.js +39 -23
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-open-markers.js +3 -0
- package/dist/core/session-open-markers.js.map +1 -0
- package/dist/core/session-storage.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/added-exports.d.ts +6 -0
- package/dist/core/storage/added-exports.js +19 -0
- package/dist/core/storage/added-exports.js.map +1 -0
- package/dist/core/storage/database.d.ts +53 -0
- package/dist/core/storage/database.js.map +1 -1
- package/dist/core/storage/fenced-paths.d.ts +47 -0
- package/dist/core/storage/fenced-paths.js +53 -0
- package/dist/core/storage/fenced-paths.js.map +1 -1
- package/dist/core/storage/file-identity.js +31 -2
- package/dist/core/storage/file-identity.js.map +1 -1
- package/dist/core/storage/index.d.ts +4 -1
- package/dist/core/storage/index.js +5 -2
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/migrations.d.ts +33 -2
- package/dist/core/storage/migrations.js +73 -5
- package/dist/core/storage/migrations.js.map +1 -1
- package/dist/core/storage/node-sqlite-thread.js +48 -6
- package/dist/core/storage/node-sqlite-thread.js.map +1 -1
- package/dist/core/storage/node-sqlite.js +137 -4
- package/dist/core/storage/node-sqlite.js.map +1 -1
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/prefix.d.ts +3 -2
- package/dist/core/storage/prefix.js +23 -2
- package/dist/core/storage/prefix.js.map +1 -1
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/schema-catalog.d.ts +120 -0
- package/dist/core/storage/schema-catalog.js +351 -0
- package/dist/core/storage/schema-catalog.js.map +1 -0
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +47 -25
- package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +4 -4
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/errors.js +1 -1
- package/dist/core/storage/session/expanded-child-details.code.js +4 -4
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-detach.d.ts +118 -0
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-schema.js +53 -0
- package/dist/core/storage/session/fork-schema.js.map +1 -0
- package/dist/core/storage/session/fork-segments.d.ts +58 -0
- package/dist/core/storage/session/fork-staging.code.js +176 -36
- package/dist/core/storage/session/fork-staging.code.js.map +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-sweep.js +61 -0
- package/dist/core/storage/session/fork-sweep.js.map +1 -0
- package/dist/core/storage/session/fork-window.code.js +4 -4
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.d.ts +37 -1
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +3 -3
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.code.js +1 -1
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/session-search-index.d.ts +5 -0
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +4 -4
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-chat-records.d.ts +15 -0
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +445 -11
- package/dist/core/storage/session/sql-session-store.impl.js +4 -4
- package/dist/core/storage/session/sql-session-store.js +4 -4
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.code.js +1 -1
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/session/types.d.ts +36 -0
- package/dist/core/storage/sqlite-facade.d.ts +54 -6
- package/dist/core/storage/sqlite-facade.js +384 -18
- package/dist/core/storage/sqlite-facade.js.map +1 -1
- package/dist/core/storage/statement-sequence.d.ts +83 -0
- package/dist/core/storage/statement-sequence.js +21 -0
- package/dist/core/storage/statement-sequence.js.map +1 -1
- package/dist/core/storage/storage-status.code.js +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.code.js +1 -1
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.code.js +1 -1
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +4 -4
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +5 -5
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.code.js +1 -1
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/bash.d.ts +8 -4
- package/dist/core/tools/history-session.d.ts +7 -0
- package/dist/core/tools/history-tasks.d.ts +123 -0
- package/dist/core/tools/kill.d.ts +5 -2
- package/dist/core/tools/powershell.d.ts +2 -2
- package/dist/core/tools/read-url.code.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/tools/read.d.ts +12 -2
- package/dist/core/tools/resource-selectors.d.ts +2 -0
- package/dist/core/tools/search.d.ts +12 -2
- package/dist/core/worktree-snapshot/blob-store.d.ts +45 -2
- package/dist/core/worktree-snapshot/blob-store.js +228 -60
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- package/dist/core/worktree-snapshot/errors.code.js +3 -3
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/fork-snapshot-index.js +121 -0
- package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -0
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +3 -3
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +3 -3
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.js +8 -8
- package/dist/main-first-time-setup.code.js +2 -2
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/main.js +1 -1
- package/dist/modes/interactive/components/agent-panel.d.ts +1 -0
- package/dist/modes/interactive/components/stored-tree-view.code.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/task-inspector.d.ts +2 -0
- package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/interactive-mode-helpers.d.ts +2 -2
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/agent-panel-bridge.d.ts +5 -0
- package/dist/package-manager-cli.code.js +7 -7
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/0.js +1 -1
- package/dist/startup-stages/1.js +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/2.js +9 -1
- package/dist/startup-stages/3.js +1 -6
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +2 -2
- package/dist/utils/startup-database-spare.code.js +3 -3
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks.md +123 -23
- package/docs/compaction.md +18 -0
- package/docs/docs.json +2 -0
- package/docs/environment-variables.md +1 -1
- package/docs/getting-started/installation.md +9 -2
- package/docs/guides/postgres-pgbouncer.md +346 -0
- package/docs/guides/postgres-tuning.md +311 -0
- package/docs/guides/resume-on-any-machine.md +2 -2
- package/docs/guides.md +2 -0
- package/docs/index.md +1 -1
- package/docs/libraries/agent-core.md +1 -1
- package/docs/libraries/ai.md +2 -2
- package/docs/libraries/codemode.md +1 -1
- package/docs/libraries/storage-libsql.md +6 -1
- package/docs/libraries/storage-postgres.md +11 -6
- package/docs/libraries/tui.md +1 -1
- package/docs/libraries.md +2 -2
- package/docs/programmatic.md +1 -1
- package/docs/quickstart.md +1 -1
- package/docs/sdk/storage.md +1 -1
- package/docs/sdk/web-server.md +1 -3
- package/docs/sdk.md +1 -7
- package/docs/sessions.md +67 -2
- package/docs/settings.md +20 -1
- package/docs/skills/authoring.md +1 -1
- package/docs/skills.md +79 -6
- package/docs/storage.md +305 -14
- package/docs/subagents/reference.md +2 -2
- package/docs/subagents.md +4 -3
- package/docs/tools.md +44 -10
- package/docs/windows.md +1 -1
- package/package.json +9 -9
- package/dist/_shared/sdk-RRLVN7ER.js.map +0 -1
- package/dist/_shared/settings-startup-4QCVCI53.js.map +0 -1
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +0 -1
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +0 -1
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +0 -1
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +0 -1
- package/dist/_shared/startup-0-5-FD2P735I.js.map +0 -1
- package/dist/_shared/startup-8-1-4KANEHRA.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __commonJSMin, __name, __require, __toESM } from "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME, BLUEPRINT_FILE_NAME, CONFIG_DIR_NAME, ENV_MODEL_CATALOG_URL, canonicalizePath as canonicalizePath$1, canonicalizePathAsync as canonicalizePathAsync$1, createChildProcessEnvironment, createModuleRequire, findHelperExecutableAsync, getAgentDir, getAgentDirs, getBinDir, getDocsPath, getEnvValue, getExamplesPath, getExtensionTranspileCacheDir, getPathComparisonKey, getProjectConfigDirs, getReadmePath, getUserConfigPaths, isBunBinary, isBundledBuild, isLocalPath, isPathWithin, markPathIgnoredByCloudSync, moduleDirFromMetaUrl, normalizePath, pathsEqual, processLaunch, processLaunchAsync, rehydrateDebugError, resolutionBaseUrl, resolvePath, resolveSafeWindowsWorkingDirectoryAsync, spawnLaunchedProcess, spawnLaunchedProcessSync, stripBom, updatedInstallError } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { BUILTIN_PATH_PREFIX, BlueprintInvalidError, COMMAND_DETAIL_TAIL_BYTES, DEFAULT_THINKING_LEVEL, FILE_KINDS, FILE_PATTERNS, FORKED_PACKAGE_WORKSPACE_DIRS, GitUnavailableError, HOST, NETWORK_TIMEOUT_MS, POST_LOGOUT_AUTH_CHECK_TIMEOUT_MS, RESOURCE_TYPES, ROW_INTENT_META, THINKING_LEVELS, TYPEBOX_SUBPATHS, TaskCleanupError, VisualLinePreview, asyncScope, bindSavedReadLines, cancelReasonText, containProcessTree, conventionDirsForResource, createBatchedCanonicalizePathAsync, createGitEnvironment, createSyntheticSourceInfo, createTypeScriptSourceSpecifierTransform, emitProgress, experimentalToolSamplingProperty, findPreferredAvailableModel, forkedPackageExportAliases, formatNoApiKeyFoundMessage, formatSize, formatTimeoutSeconds, formatTokenCount, formatToolCallWithArgs, getDefaultSessionDirPath, getHostQuestionnaire, getManifestFromPackageJson, getResourcePathKey, getTextOutput, holdProcessDescendants, holdProcessDescendantsResult, holderRuns as holderRuns$1, isCodexTokenInvalidationError, isGitProvisionError, isGitUnavailableError, isSerializedMissingSessionCwdError, isStaleExtensionContextError, isStdoutTakenOver, isSyntheticPath, legacyWorkflowFilePaths, legacyWorkflowFilePatterns, loadConfig, loadedConfig, lockShared,
|
|
4
|
-
import { NestedGitignore, NoUsableModelError, QuestionParamsSchema, STORAGE_JOIN_COMMAND, TaskToolError, WorkspaceBindingError, WorkspaceConfigError, WorkspaceDriftError, WorkspaceGitError, WorkspaceRestoreError, WorkspaceSandboxError, WorkspaceSnapshotError, WorkspaceTimeoutError, addResource, attachCleanupCause, cancelPausedOwnerTasks,
|
|
3
|
+
import { BUILTIN_PATH_PREFIX, BlueprintInvalidError, COMMAND_DETAIL_TAIL_BYTES, DEFAULT_THINKING_LEVEL, FILE_KINDS, FILE_PATTERNS, FORKED_PACKAGE_WORKSPACE_DIRS, GitUnavailableError, HOST, NETWORK_TIMEOUT_MS, POST_LOGOUT_AUTH_CHECK_TIMEOUT_MS, RESOURCE_TYPES, ROW_INTENT_META, THINKING_LEVELS, TYPEBOX_SUBPATHS, TaskCleanupError, VisualLinePreview, asyncScope, bindSavedReadLines, cancelReasonText, containProcessTree, conventionDirsForResource, createBatchedCanonicalizePathAsync, createGitEnvironment, createSyntheticSourceInfo, createTypeScriptSourceSpecifierTransform, emitProgress, experimentalToolSamplingProperty, findPreferredAvailableModel, forkedPackageExportAliases, formatNoApiKeyFoundMessage, formatSize, formatTimeoutSeconds, formatTokenCount, formatToolCallWithArgs, getDefaultSessionDirPath, getHostQuestionnaire, getManifestFromPackageJson, getResourcePathKey, getTextOutput, holdProcessDescendants, holdProcessDescendantsResult, holderRuns as holderRuns$1, isCodexTokenInvalidationError, isGitProvisionError, isGitUnavailableError, isSerializedMissingSessionCwdError, isStaleExtensionContextError, isStdoutTakenOver, isSyntheticPath, legacyWorkflowFilePaths, legacyWorkflowFilePatterns, loadConfig, loadedConfig, lockShared, operationSignal, parseSerializedCompactionError, parseSlashCommand, raceWithAbortSignal, readTaskOutputTail, redactCredentials, redactOAuthErrorText, rehydrateCompactionError, rehydrateMissingSessionCwdError, removedProviderMessage, replaceTabs, require_applyReviver, require_constants, require_debug, require_errors, require_identifiers, require_identity, require_ignore, require_line_counter, require_parse_options, require_resolve_end, require_resolve_props, require_stringifyComment, require_util_contains_newline, resolvePhysicalPath, resolvePhysicalPathAsync, resolveSchemaRef, resourceInternals, sanitizeMcpServers, sentinelsToAppend, serializeSessionMutation, sharedClockNow, sleep, spanElapsedMs, spawnHostProcess, startShellDeadline, taskOutcomeStatus, taskOutputText, taskStoppedForResume, thisProcess, truncateMiddle, validateGuidanceFields, windowsTemporaryFiles, withInstallLock, withLegacyPackageNames, withProgress, writeOutputFile, yieldToEventLoopIfSlow } from "./startup-0-0-3IXNMFM2.js";
|
|
4
|
+
import { NestedGitignore, NoUsableModelError, QuestionParamsSchema, STORAGE_JOIN_COMMAND, TaskToolError, WorkspaceBindingError, WorkspaceConfigError, WorkspaceDriftError, WorkspaceGitError, WorkspaceRestoreError, WorkspaceSandboxError, WorkspaceSnapshotError, WorkspaceTimeoutError, addResource, attachCleanupCause, cancelPausedOwnerTasks, computeFocusedOptionHasPreview, createAccumulator, createProviderAlias, deferRestorePhase, formatAnswerScalar, getBuiltinExtensionEntryLabel, getCommandEnv, getLoaderAgentDirs, getToolEnv, getToolPath, getVirtualModules, gitInstallCommand, gitignoreMatcher, hasLazyBuiltinSpec, isContentFilterRefusal, isNativeBuiltinExtensionPath, isOfflineModeEnabled, isProviderCredentialRejection, isRetryableModelFailure, isRetryableSameModelFailure, isSafetyRefusalFailure, isSourceBuiltinExtensionPath, isUnrecognizedModelFailure, isWorkspaceBindingError, isWorkspaceError, isWorkspaceGitError, isWorkspaceRestoreError, isWorkspaceSnapshotError, loadVirtualModules, normalizeModelFailureSignal, normalizeModelProvider, normalizeProviderKeys, noteRestoreFetch, prewarmModelApi, readInlineCaret, readInlineDraft, registerLazyBuiltin, requestedThinkingLevelForModelSwitch, require_int as require_int$1, require_int$1 as require_int, require_log, require_re, require_timestamp, require_toJS, require_trim_comparator_whitespace, require_util_flow_indent_check, require_util_map_includes, require_visit, resolveResourcePath, routeKey, runCallback, sessionLifecycleCreation, settingsWriteOwner, skillUri, startupRegistrationTokens, subagentsLazyBuiltinSpec, timeRestorePhase, toResolvedPaths, trackAdmittedAgentTask, trackTranspileCacheWrite, unreadablePathError, unwritablePathError, waitResultTail, withInlineDraft } from "./startup-0-1-7T2IAE7J.js";
|
|
5
5
|
import { TerminalTextSanitizer, graphemeAt, keyHint, loadThemeFromContent, resolveColorMode, singleLineDisplayText, terminalDisplayText } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { failureDebugFields, redactUrlCredentials, releaseLock, renameReplacingAsync, renameWithRetry, reportDebugAsync, takeTakeoverMutexAsync } from "./p1b-elig-ENCUPKKJ.js";
|
|
7
|
-
import { LONG_STREAM_CUT_ADVICE, ModelConfig, ResumePreconditionError, TaskSupervisor, assertSessionOpen, assertWorkspace, automaticWaitBudgetMs, buildFallbackModel, buildQuestionnaireResponse, buildToolResult, classifyRepository, findSourceInfoForPath,
|
|
8
|
-
import { DEFAULT_WORKTREE_SNAPSHOT_SETTINGS, FileModelsStore, InMemoryCodingAgentModelsStore, admitProviderStream, completeUtf8PrefixLength, computeEnvironmentHash, fallbackKey, getBaseDirForScope, getBaseDirsForScope, getConfigValueEnvVarNames, getGitInstallPath, getGitInstallRoot, getHomeDir, getInstalledGitInstallPath, getNpmInstallRoot, isCommandConfigValue, isConfigValueConfigured, llamaExtension, parseGitUrl, require_Alias, require_Scalar, require_compare, require_compare_build, require_inc, require_major, require_minor, require_parse, require_patch, resolveCliModel, resolveConfigValue, resolveFallbackModel as resolveFallbackModel$1, resolveFallbackModelWithoutCredentials, resolveHeadersOrThrow, resolveHeadersOrThrowAsync, resolveManagerPath, resolvePathFromBase, resolveWorktreeSnapshotSettings, sha256Hex as sha256Hex$1, snapshotBlob, splitFallbackModel, waitFor } from "./startup-0-3-
|
|
9
|
-
import { SESSION_HISTORY_PAGE_BYTES } from "./settings-startup-
|
|
7
|
+
import { LONG_STREAM_CUT_ADVICE, ModelConfig, ResumePreconditionError, TaskSupervisor, assertSessionOpen, assertWorkspace, automaticWaitBudgetMs, buildFallbackModel, buildQuestionnaireResponse, buildToolResult, classifyRepository, findSourceInfoForPath, getCallableTools, getDefaultSourceInfoForPath, getShellConfigAsync, getShellEnvAsync, importAfterEvaluation, installHostModuleBridge, isLongStreamCut, isWorkspace, nextRetryDecision, observeAccountCatalog, prepareSourceEntries, prepareSourceEntry, recordProviderSuccess, recordedRepo, reduce, registerSourceBuiltinLoad, repeatsLongStreamCut, require_Node, require_anchors, require_directives, require_semver as require_semver$1, runCommand, runCommandCapture, runCommandSync, runWithConcurrency, sessionGenerationClosing, sessionLifetime, summarizeQuestions, taskOwnTranscriptEntries, trackSessionWork, transformTemplate, validateQuestionnaire, withDiscoveredModels, withPersonalizedCatalog, withRemoteCatalog } from "./startup-0-2-5QHPCEON.js";
|
|
8
|
+
import { DEFAULT_WORKTREE_SNAPSHOT_SETTINGS, FileModelsStore, InMemoryCodingAgentModelsStore, admitProviderStream, completeUtf8PrefixLength, computeEnvironmentHash, fallbackKey, getBaseDirForScope, getBaseDirsForScope, getConfigValueEnvVarNames, getGitInstallPath, getGitInstallRoot, getHomeDir, getInstalledGitInstallPath, getNpmInstallRoot, isCommandConfigValue, isConfigValueConfigured, llamaExtension, parseGitUrl, require_Alias, require_Scalar, require_compare, require_compare_build, require_inc, require_major, require_minor, require_parse, require_patch, resolveCliModel, resolveConfigValue, resolveFallbackModel as resolveFallbackModel$1, resolveFallbackModelWithoutCredentials, resolveHeadersOrThrow, resolveHeadersOrThrowAsync, resolveManagerPath, resolvePathFromBase, resolveWorktreeSnapshotSettings, sha256Hex as sha256Hex$1, snapshotBlob, splitFallbackModel, waitFor } from "./startup-0-3-4ZYBYQNM.js";
|
|
9
|
+
import { SESSION_HISTORY_PAGE_BYTES } from "./settings-startup-HXQLSUWM.js";
|
|
10
10
|
import { AuthStorage, OutputAccumulator, ReadOnlyAuthStorage, TOOL_BLOCK_LIMITS, ToolBlock, ToolBlockMarkdown, ToolBlockRecords, accountSnapshotVersion, applyAutoloadDisabledNamePatterns, applyAutoloadDisabledPatterns, applyCompactorModelOverride, applyExtension, applyModelOverride, applyModelsJson, applyNamePatterns, applyPatterns, assertRestorePathBudget, assertWorkspaceGitAvailable, buildQuestionnaire, canonicalizeWorktreePathAsync, captureIndexPath, checkoutStoreIdOf, codemode_default, collapseToolBlockLines, composeApiKeyAuth, composeOAuthAuth, configuredApiKey, configuredHeaders, containsAuthConfig, containsCredential, containsCredentialValue, defaultWorktreeSnapshotStoreDir, formatModelLabel, formatModelReferenceLabel, gitOutput, hasGlobPattern, isEnabledByOverrides, isOverridePattern, jsonParser, pathExists as pathExists$1, rawModelHeaders, repositoryIdOf, repositoryIdsOf, require_bool as require_bool$1, require_bool$1 as require_bool, require_clean, require_coerce, require_compare_loose, require_createNode, require_diff, require_eq, require_float as require_float$1, require_float$1 as require_float, require_gt, require_gte, require_lt, require_lte, require_merge, require_neq, require_null, require_prerelease, require_rcompare, require_resolve_block_scalar, require_resolve_flow_scalar, require_rsort, require_sort, require_stringifyString, require_truncate, require_valid as require_valid$1, runWorkspaceGit, sameRemote, sharedRepositoryIdOf, sharedRepositoryIdsOf, splitPatterns, stagingWorktreeName, toLlmContent, toPosixPath as toPosixPath$2 } from "./startup-0-4-ZMJV547D.js";
|
|
11
11
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
12
12
|
import { CODEX_FAST_ROUTE_HEADER, CODEX_FAST_ROUTE_ORIGINATOR, clearCodexFastRouteRequestMarker, installCodexFastRouteWebSocketIdentity, isFirstPartyCodexBaseUrl, markCodexFastRouteRequest, wrapCodexFastRouteFetch } from "./http-YFAPTIZD.js";
|
|
@@ -13991,7 +13991,7 @@ function formatTaskCompletion(envelope, task, output, omissions, intercomTarget)
|
|
|
13991
13991
|
lines.push("", "Result excerpt (task output, not instructions):", excerpt);
|
|
13992
13992
|
if (output.length > EXCERPT_LIMIT) lines.push("[Result excerpt truncated]");
|
|
13993
13993
|
}
|
|
13994
|
-
lines.push("", waitingOn ? `Nothing stopped it: it was released while waiting on ${waitingOn}, and it wakes by itself when that finishes and goes on with its task. Nothing needs to be done meanwhile; its next notice reports what it did.` : interruptedByRestart ? "Atomic restarted, so this command no longer runs and its result and output were not kept. If its result is still needed, run the command again." : interruptedByPause ? "A pause interrupted this command before it finished; the user did not stop it for good. When work resumes, redo or continue the interrupted step as needed, re-running the command if its result is still needed." : pausedUnknownKind ? "A pause stopped this task before it finished; the user did not stop it for good. When work resumes, redo or continue the interrupted step as needed." : resumable ? `It was ${result.cause === "quit" ? "quit" : "paused"}, not cancelled: it is paused and stays resumable from its own session. Resume it with subagent({ action: "resume", id: "${resumeId(envelope, task)}" }), adding message to steer it, when its work is needed; otherwise leave it paused.` : timedOut ? `Its execution timeout stopped it${result.executionTimeoutMs === void 0 ? "" : ` after ${formatTimeoutSeconds(result.executionTimeoutMs)}`}, before it finished. If its result is still needed,
|
|
13994
|
+
lines.push("", waitingOn ? `Nothing stopped it: it was released while waiting on ${waitingOn}, and it wakes by itself when that finishes and goes on with its task. Nothing needs to be done meanwhile; its next notice reports what it did.` : interruptedByRestart ? "Atomic restarted, so this command no longer runs and its result and output were not kept. If its result is still needed, run the command again." : interruptedByPause ? "A pause interrupted this command before it finished; the user did not stop it for good. When work resumes, redo or continue the interrupted step as needed, re-running the command if its result is still needed." : pausedUnknownKind ? "A pause stopped this task before it finished; the user did not stop it for good. When work resumes, redo or continue the interrupted step as needed." : resumable ? `It was ${result.cause === "quit" ? "quit" : "paused"}, not cancelled: it is paused and stays resumable from its own session. Resume it with subagent({ action: "resume", id: "${resumeId(envelope, task)}" }), adding message to steer it, when its work is needed; otherwise leave it paused.` : timedOut ? `Its execution timeout stopped it${result.executionTimeoutMs === void 0 ? "" : ` after ${formatTimeoutSeconds(result.executionTimeoutMs)}`}, before it finished. If its result is still needed, run it again with a larger timeout, or with none so it runs until it finishes.` : finishedAgent ? `This execution has ended. Do not restart it merely to retrieve its result. ${finishedSubagentResumeText(resumeId(envelope, task))}${intercomTarget ? ` Once resumed, it takes Intercom messages again as ${completionTitleText(intercomTarget)}.` : ""} The user can inspect retained output with /tasks.` : "This execution has ended. Do not restart it merely to retrieve its result. The user can inspect retained output with /tasks.");
|
|
13995
13995
|
return lines.join("\n");
|
|
13996
13996
|
}
|
|
13997
13997
|
/**
|
|
@@ -14624,7 +14624,8 @@ async function expandSkillCommand(catalog, text, onError = () => {}) {
|
|
|
14624
14624
|
try {
|
|
14625
14625
|
const content = await readFile(skill.filePath, "utf-8");
|
|
14626
14626
|
const body = stripFrontmatter(content).trim();
|
|
14627
|
-
const
|
|
14627
|
+
const location = skillUri(selector);
|
|
14628
|
+
const skillBlock = `<skill name="${selector}" location="${location}" candidate="${id}">\nReferences are relative to ${location}/.\n\n${body}\n</skill>`;
|
|
14628
14629
|
return args ? `${skillBlock}\n\n${args}` : skillBlock;
|
|
14629
14630
|
} catch (err) {
|
|
14630
14631
|
onError({
|
|
@@ -16925,8 +16926,8 @@ function formatSkillsForPrompt(skills, fileReadTool = "read") {
|
|
|
16925
16926
|
if (visibleSkills.length === 0) return "";
|
|
16926
16927
|
const lines = [
|
|
16927
16928
|
"\n\nThe following skills provide specialized instructions for specific tasks.",
|
|
16928
|
-
fileReadTool === "read" ? "
|
|
16929
|
-
"
|
|
16929
|
+
fileReadTool === "read" ? "When the task matches a skill's description, use the read tool on the skill's location, skill://<name>, to load it." : fileReadTool === "bash" ? "When the task matches a skill's description, use bash to load the skill's location, for example `cat skill://<name>`." : "When the task matches a skill's description, load the skill's location, skill://<name>.",
|
|
16930
|
+
"A file the skill references relative to its own directory is skill://<name>/<relative path>. Shell commands accept an unquoted skill:// URI in place of the file's path, for example to run a script the skill includes.",
|
|
16930
16931
|
"",
|
|
16931
16932
|
"<available_skills>"
|
|
16932
16933
|
];
|
|
@@ -16934,7 +16935,7 @@ function formatSkillsForPrompt(skills, fileReadTool = "read") {
|
|
|
16934
16935
|
lines.push(" <skill>");
|
|
16935
16936
|
lines.push(` <name>${escapeXml(skill.name)}</name>`);
|
|
16936
16937
|
lines.push(` <description>${escapeXml(skill.description)}</description>`);
|
|
16937
|
-
lines.push(` <location>${escapeXml(skill.
|
|
16938
|
+
lines.push(` <location>${escapeXml(skillUri(skill.name))}</location>`);
|
|
16938
16939
|
lines.push(" </skill>");
|
|
16939
16940
|
}
|
|
16940
16941
|
lines.push("</available_skills>");
|
|
@@ -18874,6 +18875,7 @@ function formatTaskHeartbeat(details) {
|
|
|
18874
18875
|
// dist/core/tools/bash-pty-native.js
|
|
18875
18876
|
const __atomicDistModuleUrl = new URL("../core/tools/bash-pty-native.js", import.meta.url).href;
|
|
18876
18877
|
const NATIVE_PACKAGE = "@bastani/atomic-natives";
|
|
18878
|
+
const MAX_NATIVE_PTY_TIMEOUT_MS = 0xffffffff;
|
|
18877
18879
|
let cachedLoadResult;
|
|
18878
18880
|
function loadNativePtyBinding() {
|
|
18879
18881
|
if (cachedLoadResult) return cachedLoadResult;
|
|
@@ -19026,7 +19028,7 @@ async function executeSupervisedCommand(command, cwd, options, pty) {
|
|
|
19026
19028
|
...context.parentTaskId === void 0 ? {} : { parentTaskId: context.parentTaskId },
|
|
19027
19029
|
...context.launchedBy === void 0 ? {} : { launchedBy: context.launchedBy }
|
|
19028
19030
|
}, crypto.randomUUID(), options.signal, context.launchOrigin);
|
|
19029
|
-
if (!started.ok) throw new Error(`${started.error.code}: ${started.error.message}`);
|
|
19031
|
+
if (!started.ok) throw new Error(started.error.code === "CapacityExhausted" ? started.error.message : `${started.error.code}: ${started.error.message}`);
|
|
19030
19032
|
const task = started.value;
|
|
19031
19033
|
context.onCommandStarted?.(context.supervisor.taskReference(task).taskId);
|
|
19032
19034
|
const abort = () => {
|
|
@@ -19096,6 +19098,13 @@ async function executeNativePty(command, cwd, options) {
|
|
|
19096
19098
|
} catch {}
|
|
19097
19099
|
};
|
|
19098
19100
|
if (options.signal) options.signal.addEventListener("abort", onAbort, { once: true });
|
|
19101
|
+
const timeoutMs = options.timeout === void 0 ? void 0 : Math.max(1, Math.floor(options.timeout * 1e3));
|
|
19102
|
+
const nativeTimeoutMs = timeoutMs !== void 0 && timeoutMs <= MAX_NATIVE_PTY_TIMEOUT_MS ? timeoutMs : void 0;
|
|
19103
|
+
let timedOutHere = false;
|
|
19104
|
+
const stopDeadline = timeoutMs !== void 0 && nativeTimeoutMs === void 0 ? startShellDeadline(timeoutMs, () => {
|
|
19105
|
+
timedOutHere = true;
|
|
19106
|
+
onAbort();
|
|
19107
|
+
}) : void 0;
|
|
19099
19108
|
try {
|
|
19100
19109
|
const result = await session.start({
|
|
19101
19110
|
command,
|
|
@@ -19104,7 +19113,7 @@ async function executeNativePty(command, cwd, options) {
|
|
|
19104
19113
|
...shellEnv,
|
|
19105
19114
|
...options.env ?? {}
|
|
19106
19115
|
})).filter((entry) => entry[1] !== void 0)),
|
|
19107
|
-
timeoutMs:
|
|
19116
|
+
timeoutMs: nativeTimeoutMs,
|
|
19108
19117
|
cols: options.cols ?? 120,
|
|
19109
19118
|
rows: options.rows ?? 40,
|
|
19110
19119
|
shell: shellConfig.shell,
|
|
@@ -19114,66 +19123,15 @@ async function executeNativePty(command, cwd, options) {
|
|
|
19114
19123
|
}, (_error, chunk) => {
|
|
19115
19124
|
if (chunk) options.onData(Buffer.from(chunk));
|
|
19116
19125
|
});
|
|
19117
|
-
if (options.signal?.aborted
|
|
19118
|
-
if (result.timedOut ?? result.timed_out) throw new Error(`timeout:${options.timeout}`);
|
|
19126
|
+
if (options.signal?.aborted) throw new Error("aborted");
|
|
19127
|
+
if (timedOutHere || (result.timedOut ?? result.timed_out)) throw new Error(`timeout:${options.timeout}`);
|
|
19128
|
+
if (result.cancelled) throw new Error("aborted");
|
|
19119
19129
|
return { exitCode: result.exitCode ?? result.exit_code ?? null };
|
|
19120
19130
|
} finally {
|
|
19131
|
+
stopDeadline?.();
|
|
19121
19132
|
if (options.signal) options.signal.removeEventListener("abort", onAbort);
|
|
19122
19133
|
}
|
|
19123
19134
|
}
|
|
19124
|
-
// dist/core/tools/kill.js
|
|
19125
|
-
const killSchema = Type$1.Object({ id: Type$1.String({ description: "Task ID returned by a background or auto-yielded bash or powershell call" }) });
|
|
19126
|
-
function createKillToolDefinition(options) {
|
|
19127
|
-
return {
|
|
19128
|
-
name: "kill",
|
|
19129
|
-
label: "Kill",
|
|
19130
|
-
description: "Stop an owned background bash or PowerShell task by its task ID, not a PID. Does not stop subagents or other owners' tasks. Returns the cancellation decision and current execution/cleanup state; a cancellation request alone does not confirm termination.",
|
|
19131
|
-
parameters: killSchema,
|
|
19132
|
-
...experimentalToolSamplingProperty(),
|
|
19133
|
-
promptSnippet: "Stop an owned background shell task by task ID",
|
|
19134
|
-
execute: async (_toolCallId, { id }) => {
|
|
19135
|
-
const binding = options?.taskOwner?.();
|
|
19136
|
-
if (!binding) throw new Error("kill requires a supported task owner");
|
|
19137
|
-
const { supervisor, owner } = binding;
|
|
19138
|
-
const task = lookupOwnedTask(binding, id);
|
|
19139
|
-
const watched = supervisor.watchOwnerTasks(owner);
|
|
19140
|
-
if (!watched.ok) throw new TaskToolError(watched.error, id);
|
|
19141
|
-
try {
|
|
19142
|
-
if (watched.value.snapshot.tasks.find((entry) => entry.ref.taskId === id)?.kind !== "command") throw new Error("kill only supports shell tasks");
|
|
19143
|
-
const result = await supervisor.cancelTask(task, "user");
|
|
19144
|
-
if (!result.ok) throw new TaskToolError(result.error, id);
|
|
19145
|
-
const receipt = result.value;
|
|
19146
|
-
return {
|
|
19147
|
-
content: [{
|
|
19148
|
-
type: "text",
|
|
19149
|
-
text: cancelReceiptSentence(receipt)
|
|
19150
|
-
}],
|
|
19151
|
-
details: receipt,
|
|
19152
|
-
...receipt.cleanup.kind === "failed" ? { isError: true } : {}
|
|
19153
|
-
};
|
|
19154
|
-
} finally {
|
|
19155
|
-
watched.value.dispose();
|
|
19156
|
-
}
|
|
19157
|
-
},
|
|
19158
|
-
renderCall(args, _theme, context) {
|
|
19159
|
-
const text = context.lastComponent ?? new Text("", 0, 0);
|
|
19160
|
-
text.setText(formatKillCall(args));
|
|
19161
|
-
return text;
|
|
19162
|
-
},
|
|
19163
|
-
renderResult(result, _options, _theme, context) {
|
|
19164
|
-
const component = context.lastComponent ?? new Container();
|
|
19165
|
-
rebuildKillResult(component, result, {
|
|
19166
|
-
isError: context.isError,
|
|
19167
|
-
taskId: context.args.id
|
|
19168
|
-
});
|
|
19169
|
-
component.invalidate();
|
|
19170
|
-
return component;
|
|
19171
|
-
}
|
|
19172
|
-
};
|
|
19173
|
-
}
|
|
19174
|
-
function createKillTool(options) {
|
|
19175
|
-
return wrapToolDefinition(createKillToolDefinition(options));
|
|
19176
|
-
}
|
|
19177
19135
|
// dist/core/tool-loadout.js
|
|
19178
19136
|
const hiddenDeclarations = /* @__PURE__ */ new WeakMap();
|
|
19179
19137
|
function isToolDeclarationHidden(session, name) {
|
|
@@ -28227,16 +28185,16 @@ function assertRpcSuccess(response) {
|
|
|
28227
28185
|
if (response.errorCode === "missing_session_cwd" && isSerializedMissingSessionCwdError(response.errorDetails)) throw rehydrateMissingSessionCwdError(response.errorDetails);
|
|
28228
28186
|
throw new Error(response.error);
|
|
28229
28187
|
}
|
|
28230
|
-
export { ANTHROPIC_FAST_MODE_MODEL_IDS, AgentTaskHost, BLUEPRINT_RULES, Bm25Ranker, CredentialSynchronizationError, DEFAULT_TASK_HEARTBEAT_MS, DefaultPackageManager, FAST_MODEL_ID_SUFFIX, FAST_MODEL_SERVICE_TIER, FAST_MODEL_SPEED, LIST_MCP_RESOURCES_TOOL, LIST_MCP_RESOURCE_TEMPLATES_TOOL, MIN_TASK_HEARTBEAT_MS, ModelRuntime, OAuthLoginTransactionError, QuestionnaireSession, READ_MCP_RESOURCE_TOOL, SNAPSHOT_DENY_PATTERNS, SNAPSHOT_IGNORE_FILE, SNAPSHOT_KEY_FILE_PATTERNS, TASK_COMPLETION_MESSAGE_TYPE, TASK_HEARTBEAT_MESSAGE_TYPE, TOOL_SEARCH_TOOL_NAME, TaskCompletionOutbox, WORKSPACE_BINDING_ENTRY_TYPE, WORKSPACE_WRITE_TOOL_NAMES, abortTurnRetries, acquireWorkspaceWriterLease, activatesOnRegistration, admitPooledWorktree, adoptPrebuiltSeed, agentSessionModelsMethods, agentSessionRetryMethods, applyToolLoadout, assertRpcSuccess, assertSessionManagerInWorktreeAsync, authForStream, bindSessionWorkspace, bindingOf, blueprintPlatformOf, buildItemsForQuestion, buildSessionMemoryGuideline, buildSessionOptions, buildSkillCatalog, buildSkillCatalogAsync, buildSkillCatalogWith, buildSystemPrompt, buildSystemPromptSections, cancelFirstPromptModel, captureLocatedCheckout, captureWorktreeSnapshot, carryOverDegradedWork, checkResumeStoragePreconditions, childOfAttempt, chunkedAnswerContent, chunkedAnswerHeader, chunkedBranchState, chunkedChildHeading, chunkedEntryHasId, chunkedForkLink, chunkedPrefixFields, chunkedResumeProjection, chunkedTaskDetailFields, chunkedToolResult, chunkedToolResultEntry, chunkedTreeOutline, claimIdleWorktree, clearExtensionCache, commandOutputExcerpt, completionTitleDescription, completionTitleText, computeDeferExtensions, computeInteractiveEngineResourceDeferral, computeStartupInputCaptureEnabled, computeStartupTrustPromptPossible, confirmPooledWorktreeLease, copilotAdvertisedFastModelIds, createAskUserQuestionToolDefinition, createAuthInteraction, createHostModuleJiti,
|
|
28188
|
+
export { ANTHROPIC_FAST_MODE_MODEL_IDS, AgentTaskHost, BLUEPRINT_RULES, Bm25Ranker, CredentialSynchronizationError, DEFAULT_TASK_HEARTBEAT_MS, DefaultPackageManager, FAST_MODEL_ID_SUFFIX, FAST_MODEL_SERVICE_TIER, FAST_MODEL_SPEED, LIST_MCP_RESOURCES_TOOL, LIST_MCP_RESOURCE_TEMPLATES_TOOL, MIN_TASK_HEARTBEAT_MS, ModelRuntime, OAuthLoginTransactionError, QuestionnaireSession, READ_MCP_RESOURCE_TOOL, SNAPSHOT_DENY_PATTERNS, SNAPSHOT_IGNORE_FILE, SNAPSHOT_KEY_FILE_PATTERNS, TASK_COMPLETION_MESSAGE_TYPE, TASK_HEARTBEAT_MESSAGE_TYPE, TOOL_SEARCH_TOOL_NAME, TaskCompletionOutbox, WORKSPACE_BINDING_ENTRY_TYPE, WORKSPACE_WRITE_TOOL_NAMES, abortTurnRetries, acquireWorkspaceWriterLease, activatesOnRegistration, admitPooledWorktree, adoptPrebuiltSeed, agentSessionModelsMethods, agentSessionRetryMethods, applyToolLoadout, assertRpcSuccess, assertSessionManagerInWorktreeAsync, authForStream, bindSessionWorkspace, bindingOf, blueprintPlatformOf, buildItemsForQuestion, buildSessionMemoryGuideline, buildSessionOptions, buildSkillCatalog, buildSkillCatalogAsync, buildSkillCatalogWith, buildSystemPrompt, buildSystemPromptSections, cancelFirstPromptModel, captureLocatedCheckout, captureWorktreeSnapshot, carryOverDegradedWork, checkResumeStoragePreconditions, childOfAttempt, chunkedAnswerContent, chunkedAnswerHeader, chunkedBranchState, chunkedChildHeading, chunkedEntryHasId, chunkedForkLink, chunkedPrefixFields, chunkedResumeProjection, chunkedTaskDetailFields, chunkedToolResult, chunkedToolResultEntry, chunkedTreeOutline, claimIdleWorktree, clearExtensionCache, commandOutputExcerpt, completionTitleDescription, completionTitleText, computeDeferExtensions, computeInteractiveEngineResourceDeferral, computeStartupInputCaptureEnabled, computeStartupTrustPromptPossible, confirmPooledWorktreeLease, copilotAdvertisedFastModelIds, createAskUserQuestionToolDefinition, createAuthInteraction, createHostModuleJiti, createLoadedAskUserQuestionToolDefinition, createMcpResourceToolDefinitions, createMcpToolDefinition, createMcpToolName, createMcpToolRenderers, createToolNameMatcher, createToolSearchDocument, createToolSearchExtension, createToolSearchToolDefinition, defaultBuiltinExtensions, defaultResumePreflightIo, deferFirstPromptModel, deriveFastModelVariants, diffSystemPromptSections, discardPooledWorktree, emitProjectTrustEvent, emptySkillCatalog, enablePrintModelSelection, engineExtensionsCanDecide, ensureDefaultLazyBuiltinsRegistered, ensureRetryPromise, evictIdleWorktrees, executeNativePty, executeSupervisedCommand, expandPromptTemplate, expandSkillCommand, extensionLoaderTestHooks, extensionsCanDecideProjectTrust, fastModelId, findInitialModel, finishedSubagentResumeText, firstSubagentAttempt, forkSeedFields, formatScopedModelList, formatSkillsForPrompt, formatTaskHeartbeatDuration, formatTaskHeartbeatStatus, getExistingGitInstallPathAsync, getManagedNpmInstallPath, getModelFastRoute, getSkillCatalog, gitText, gitUnavailableProblem, hasPrintModelSelection, holdRestoredWorktree, holdsSessionSnapshotRef, hostPlatform, inheritWorkspace, insideThroughDirectories, isBoundWorkspace, isDegradableRestoreFailure, isDeniedSnapshotPath, isHeadOnlyAdvance, isMcpToolName, isNativeFastRouteApi, isOAuthLoginCancelled, isRecoverableRestoreFailure, isRegisteredToolAllowed, isResumableStop, isRetiredToolName, isToolActivatable, isToolDeclarationHidden, keepSessionSnapshotCommit, latestSubagentAttempt, latestSubagentAttempts, loadExtensionModule, loadPromptsStageAsync, loadSkills, loadSkillsFromDir, loadSkillsStageAsync, loadSnapshotPathPolicy, loadThemesStageAsync, locateCheckout, loginIsolatedApiKeyProvider, loginIsolatedOAuthProvider, loginRuntimeOAuthProvider, lookupOwnedTask, markRuntimeStreamFunction, mergeHeaders, messageHeadIn, messageRoleIn, namesSessionFolderInGuidelines, nextCaptureTick, normalizeBuildSystemPromptOptions, normalizeOAuthLoginError, nulFields, objectStorePath, openWorkspaceRepository, parseBlueprint, parseFrontmatter, parseSource, pendingLfsDownload, pendingTaskCompletionIntents, pooledWorktreeHolder, prepareExtensionEntries, preparePromptsCommitAsync, prepareSkillsCommitAsync, prepareThemesCommitAsync, presentQuestionnaire, projectForkMetadata, projectToolLoadout, ranOnModelLine, read, readChunkedWorkflowRunId, readExtensionGraphManifest, readRepositoryConfig, readValue, recordPooledWorktreeState, recordSessionWorkspace, recordWorktreeCapture, releaseRestoredWorktree, releaseSessionSnapshotRefs, releasedWaitingOn, removeRestoredWorktree, require_dist, require_semver, resolveDeferredStartupModel, resolveRestoredModelReference, resolveToolNames, resolveUpstreamModelId, resolveWorkspace, restoreBestWorktree, restoreDegradedWorktree, restoreDegradedWorktreeAt, restoreWorkspace, restoreWorktree, restoreWorktreeAt, restoreWorktreeSnapshot, resumableSubagentResult, retireSessionSnapshotRefs, retryIsCurrent, runBeforeAgentStartHandlers, runBeforeProviderRequestHandlers, runBoundaryHandlers, runContextHandlers, runGenericHandlers, runGit, runInputHandlers, runMessageEndHandlers, runResourcesDiscoverHandlers, runSessionRecoveryHandlers, runToolCallHandlers, runToolResultHandlers, runUserBashHandlers, seedDirectory, seedManifestPath, seedPathSegments, selectDocument, selectedToolNames, sessionAccountCheckpoint, setAsideWorktree, setWorktreeSnapshotGit, settledTaskResumeId, skip, snapshotEventHandlers, snapshotRestoreWarnings, startupErrorHandlerTokens, storagePreconditionProblems, storeCheckoutHead, streamWithFastRoute, stringValue, stripFrontmatter, subagentResumeId, supersededSettledAttempts, taskCompletionMessage, taskHeartbeatKindLabel, taskNoticeLine, uncachedCopilotModelHint, unresolvedFallbackModelDiagnostics, unrestoredRecord, updatePromptsFromPathsAsync, updateSkillsFromPathsAsync, updateThemesFromPathsAsync, useExtensionCacheCwd, usesAnthropicFastMode, usesChatGptCodexTransport, usesFirstPartyCodexRouting, usesOpenAIFastServiceTier, usesXaiFastServiceTier, validateBashWait, validateTaskHeartbeatMs, verifyWorktree$1 as verifyWorktree, waitForSupervisedCommand, waitingReleasedShells, waitingReleasedTools, withCodexFastRouteHeaders, withDefaultBuiltinExtensions, withFastModelVariants, withFastRouteStreamOptions, withScratchDirectory, withSeedLock, withoutSupersededAttempts, workspaceSandboxDenial, workspaceSessionCwd, workspaceSessionCwdAsync, worktreeSetAside, writeSeedManifest, writeWorkingTree };
|
|
28231
28189
|
|
|
28232
|
-
//# sourceMappingURL=startup-0-5-
|
|
28190
|
+
//# sourceMappingURL=startup-0-5-YDW47QX6.js.map
|
|
28233
28191
|
// __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
|
|
28234
28192
|
// demand that fails in a process an in-place update left running says to restart.
|
|
28235
28193
|
function __atomicOnDemandFailed(error, feature) {
|
|
28236
28194
|
return (async () => {
|
|
28237
28195
|
const root = new URL("../", import.meta.url);
|
|
28238
28196
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
28239
|
-
const key = `${root.href}#0.10.
|
|
28197
|
+
const key = `${root.href}#0.10.11-alpha.2`;
|
|
28240
28198
|
let release = releases.get(key);
|
|
28241
28199
|
if (release === undefined) {
|
|
28242
28200
|
const current = (async () => {
|
|
@@ -28264,7 +28222,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
28264
28222
|
} catch {
|
|
28265
28223
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
28266
28224
|
}
|
|
28267
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
28225
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
|
|
28268
28226
|
if (updatedTo === undefined) throw error;
|
|
28269
28227
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
28270
28228
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|