@bastani/atomic 0.10.4 → 0.10.5
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 +122 -0
- package/dist/_shared/compile-cache-warmup-host-RU5L7I7A.js +1 -1
- package/dist/_shared/dist-KOELCESV.js +48 -3
- package/dist/_shared/fork-row-index-UAUAQRD5.js +47 -2
- package/dist/_shared/http-YFAPTIZD.js +16 -4
- package/dist/_shared/http-YFAPTIZD.js.map +1 -1
- package/dist/_shared/lib-4PES5P4V.js +59 -14
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +1706 -258
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +317 -64
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/{mode-shared-HP7GUA7J.js → mode-shared-2QJSCUM6.js} +432 -81
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -0
- package/dist/_shared/p0-cli-BB45ZQY6.js +3482 -0
- package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -0
- package/dist/_shared/p0-cli-GUFK7TPN.js +2 -2838
- package/dist/_shared/p0-cli-GUFK7TPN.js.map +1 -1
- package/dist/_shared/{p1a-prewarm-YK3KDTLN.js → p1a-prewarm-UQY3X2UK.js} +270 -73
- package/dist/_shared/p1a-prewarm-UQY3X2UK.js.map +1 -0
- package/dist/_shared/{p1b-elig-PXQA2FYP.js → p1b-elig-ENCUPKKJ.js} +190 -121
- package/dist/_shared/p1b-elig-ENCUPKKJ.js.map +1 -0
- package/dist/_shared/p2-common-YLSYXMDQ.js +1 -3
- package/dist/_shared/p2-common-YLSYXMDQ.js.map +1 -1
- package/dist/_shared/p2-shell-TJBYQMCJ.js +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +500 -127
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +4 -4
- package/dist/_shared/sdk-WQIOHVKO.js +56 -11
- package/dist/_shared/session-data-AHTU7IS6.js +48 -3
- package/dist/_shared/session-manager-list-2BLEEZVG.js +2 -2
- package/dist/_shared/settings-startup-65YEWRV2.js.map +1 -1
- package/dist/_shared/sql-session-store-5FD3WBMZ.js +57 -12
- package/dist/_shared/{startup-0-0-X4NF3GKM.js → startup-0-0-TYUFUOJZ.js} +519 -316
- package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +1 -0
- package/dist/_shared/{startup-0-1-7QTG6VJZ.js → startup-0-1-D4LGGINF.js} +284 -81
- package/dist/_shared/startup-0-1-D4LGGINF.js.map +1 -0
- package/dist/_shared/{startup-0-2-KFDYPDJK.js → startup-0-2-SZGQIWHI.js} +483 -154
- package/dist/_shared/startup-0-2-SZGQIWHI.js.map +1 -0
- package/dist/_shared/startup-0-3-T4DVFYWX.js +340 -110
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
- package/dist/_shared/startup-0-4-HN5EB4K7.js +261 -59
- package/dist/_shared/startup-0-4-HN5EB4K7.js.map +1 -1
- package/dist/_shared/startup-0-5-OHJNE6JH.js +421 -148
- package/dist/_shared/startup-0-5-OHJNE6JH.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +62 -11
- package/dist/_shared/startup-10-0-TDQNBDDL.js.map +1 -1
- package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +12 -11
- package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +53 -158
- package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +231 -46
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +115 -35
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/{startup-8-1-KQJBDKRU.js → startup-8-1-SJW2GMAM.js} +203 -62
- package/dist/_shared/startup-8-1-SJW2GMAM.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +55 -10
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +47 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +48 -3
- package/dist/builtin/intercom/CHANGELOG.md +42 -0
- package/dist/builtin/intercom/README.md +0 -1
- package/dist/builtin/intercom/broker/broker-instance.ts +13 -57
- package/dist/builtin/intercom/broker/broker-process.ts +30 -10
- package/dist/builtin/intercom/broker/broker-routing.ts +12 -2
- package/dist/builtin/intercom/broker/broker.bundle.mjs +2557 -498
- package/dist/builtin/intercom/broker/broker.ts +164 -55
- package/dist/builtin/intercom/broker/client.ts +36 -16
- package/dist/builtin/intercom/broker/control.ts +83 -20
- package/dist/builtin/intercom/broker/durable-ended-queue.ts +65 -19
- package/dist/builtin/intercom/broker/host-command-environment.ts +7 -2
- package/dist/builtin/intercom/broker/multinode-router.ts +1675 -387
- package/dist/builtin/intercom/broker/multinode-state-store.ts +10 -0
- package/dist/builtin/intercom/broker/paths.ts +68 -6
- package/dist/builtin/intercom/broker/pending-send-registry.ts +5 -0
- package/dist/builtin/intercom/broker/registration-bounds.ts +38 -0
- package/dist/builtin/intercom/broker/retiring-broker-check.ts +178 -0
- package/dist/builtin/intercom/broker/return-paths.ts +268 -7
- package/dist/builtin/intercom/broker/send-handler.ts +253 -28
- package/dist/builtin/intercom/broker/send-order-gate.ts +410 -0
- package/dist/builtin/intercom/broker/spawn.ts +950 -202
- package/dist/builtin/intercom/broker/sql-lease-store.ts +37 -0
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +7 -0
- package/dist/builtin/intercom/broker/windows-cwd.ts +546 -0
- package/dist/builtin/intercom/index.bundle.mjs +3506 -2328
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/intercom/retry-policy.ts +4 -0
- package/dist/builtin/intercom/types.ts +2 -0
- 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/src/extension/index.bundle.mjs +336 -86
- package/dist/builtin/web-access/index.bundle.mjs +23 -38
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/bun/cli.js +1 -1
- package/dist/bun/cli.js.map +1 -1
- package/dist/bun/internal-intercom-broker.js +119 -4
- package/dist/bun/internal-intercom-broker.js.map +1 -1
- package/dist/bun/register-theme-validator.js +6 -0
- package/dist/bun/register-theme-validator.js.map +1 -0
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +1102 -0
- package/dist/cli/auth-cli.code.js.map +1 -0
- package/dist/cli/auth-cli.impl.js +30 -1096
- package/dist/cli/auth-cli.impl.js.map +1 -1
- package/dist/cli/auth-cli.js +11 -7
- package/dist/cli/blueprint-command.code.js +906 -0
- package/dist/cli/blueprint-command.code.js.map +1 -0
- package/dist/cli/blueprint-command.impl.js +30 -900
- package/dist/cli/blueprint-command.impl.js.map +1 -1
- package/dist/cli/blueprint-command.js +11 -7
- package/dist/cli/intercom-command.code.js +153 -0
- package/dist/cli/intercom-command.code.js.map +1 -0
- package/dist/cli/intercom-command.impl.js +33 -105
- package/dist/cli/intercom-command.impl.js.map +1 -1
- package/dist/cli/intercom-command.js +11 -7
- package/dist/cli/list-models.code.js +60 -0
- package/dist/cli/list-models.code.js.map +1 -0
- package/dist/cli/list-models.impl.js +33 -57
- package/dist/cli/list-models.impl.js.map +1 -1
- package/dist/cli/list-models.js +11 -7
- package/dist/cli/session-picker.code.js +55 -0
- package/dist/cli/session-picker.code.js.map +1 -0
- package/dist/cli/session-picker.impl.js +33 -52
- package/dist/cli/session-picker.impl.js.map +1 -1
- package/dist/cli/session-picker.js +11 -7
- package/dist/cli/startup-ui.code.js +5 -0
- package/dist/cli/startup-ui.code.js.map +1 -0
- package/dist/cli/startup-ui.impl.js +35 -4
- package/dist/cli/startup-ui.js +11 -7
- package/dist/cli/storage-command.code.js +3 -0
- package/dist/cli/storage-command.code.js.map +1 -0
- package/dist/cli/storage-command.impl.js +35 -2
- package/dist/cli/storage-command.js +11 -7
- package/dist/cli/storage-search-session.code.js +189 -0
- package/dist/cli/storage-search-session.code.js.map +1 -0
- package/dist/cli/storage-search-session.impl.js +33 -186
- package/dist/cli/storage-search-session.impl.js.map +1 -1
- package/dist/cli/storage-search-session.js +11 -7
- package/dist/cli/team-command.code.js +217 -0
- package/dist/cli/team-command.code.js.map +1 -0
- package/dist/cli/team-command.impl.js +32 -213
- package/dist/cli/team-command.impl.js.map +1 -1
- package/dist/cli/team-command.js +11 -7
- package/dist/cli.js +60 -11
- package/dist/cli.js.map +1 -1
- package/dist/config.js +1 -1
- package/dist/core/agent-session-methods.d.ts +4 -3
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session-types.d.ts +5 -0
- package/dist/core/compaction/compaction.d.ts +6 -0
- package/dist/core/compaction/model-resolver.d.ts +1 -1
- package/dist/core/debug.code.js +3 -0
- package/dist/core/debug.code.js.map +1 -0
- package/dist/core/debug.impl.js +35 -2
- package/dist/core/debug.js +11 -7
- package/dist/core/default-model-api-prewarm.d.ts +5 -0
- package/dist/core/export-html/card-projection.code.js +257 -0
- package/dist/core/export-html/card-projection.code.js.map +1 -0
- package/dist/core/export-html/card-projection.impl.js +34 -255
- package/dist/core/export-html/card-projection.impl.js.map +1 -1
- package/dist/core/export-html/card-projection.js +11 -7
- package/dist/core/export-html/index.code.js +655 -0
- package/dist/core/export-html/index.code.js.map +1 -0
- package/dist/core/export-html/index.impl.js +30 -604
- package/dist/core/export-html/index.impl.js.map +1 -1
- package/dist/core/export-html/index.js +11 -7
- package/dist/core/export-html/json-spans.code.js +3 -0
- package/dist/core/export-html/json-spans.code.js.map +1 -0
- package/dist/core/export-html/json-spans.impl.js +35 -2
- package/dist/core/export-html/json-spans.js +11 -7
- package/dist/core/export-html/oversized-render-inputs.code.js +125 -0
- package/dist/core/export-html/oversized-render-inputs.code.js.map +1 -0
- package/dist/core/export-html/oversized-render-inputs.impl.js +31 -120
- package/dist/core/export-html/oversized-render-inputs.impl.js.map +1 -1
- package/dist/core/export-html/oversized-render-inputs.js +11 -7
- package/dist/core/export-html/tool-renderer.code.js +350 -0
- package/dist/core/export-html/tool-renderer.code.js.map +1 -0
- package/dist/core/export-html/tool-renderer.impl.js +33 -347
- package/dist/core/export-html/tool-renderer.impl.js.map +1 -1
- package/dist/core/export-html/tool-renderer.js +11 -7
- package/dist/core/extensions/jiti-loader.code.js +3 -0
- package/dist/core/extensions/jiti-loader.code.js.map +1 -0
- package/dist/core/extensions/jiti-loader.impl.js +35 -2
- package/dist/core/extensions/jiti-loader.js +11 -7
- package/dist/core/extensions/jiti-static-loader.code.js +3 -0
- package/dist/core/extensions/jiti-static-loader.code.js.map +1 -0
- package/dist/core/extensions/jiti-static-loader.impl.js +35 -2
- package/dist/core/extensions/jiti-static-loader.js +11 -7
- package/dist/core/extensions/loader-host-modules.code.js +3 -0
- package/dist/core/extensions/loader-host-modules.code.js.map +1 -0
- package/dist/core/extensions/loader-host-modules.impl.js +35 -2
- package/dist/core/extensions/loader-host-modules.js +11 -7
- package/dist/core/extensions/loader-virtual-modules.d.ts +1 -6
- package/dist/core/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/runner-context.js +3 -3
- package/dist/core/extensions/session-events.d.ts +4 -0
- package/dist/core/extensions/session-events.js.map +1 -1
- package/dist/core/intercom-broker-control-host.code.js +5 -0
- package/dist/core/intercom-broker-control-host.code.js.map +1 -0
- package/dist/core/intercom-broker-control-host.impl.js +35 -4
- package/dist/core/intercom-broker-control-host.js +11 -7
- package/dist/core/intercom-broker-control.code.js +63 -0
- package/dist/core/intercom-broker-control.code.js.map +1 -0
- package/dist/core/intercom-broker-control.d.ts +21 -0
- package/dist/core/intercom-broker-control.impl.js +35 -17
- package/dist/core/intercom-broker-control.impl.js.map +1 -1
- package/dist/core/intercom-broker-control.js +11 -7
- package/dist/core/package-manager-storage-adapters.code.js +3 -0
- package/dist/core/package-manager-storage-adapters.code.js.map +1 -0
- package/dist/core/package-manager-storage-adapters.impl.js +35 -2
- package/dist/core/package-manager-storage-adapters.js +11 -7
- package/dist/core/process-start-token.d.ts +8 -2
- package/dist/core/process-tree-containment.d.ts +27 -0
- package/dist/core/queued-message-delivery.d.ts +5 -2
- package/dist/core/resume/blueprint/process.d.ts +3 -1
- package/dist/core/sdk.code.js +9 -0
- package/dist/core/sdk.code.js.map +1 -0
- package/dist/core/sdk.impl.js +35 -8
- package/dist/core/sdk.js +11 -7
- package/dist/core/session-manager-core.d.ts +15 -5
- package/dist/core/session-manager-core.js +195 -38
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-list.code.js +3 -0
- package/dist/core/session-manager-list.code.js.map +1 -0
- package/dist/core/session-manager-list.impl.js +35 -2
- package/dist/core/session-manager-list.js +11 -7
- package/dist/core/session-manager-types.d.ts +20 -0
- package/dist/core/session-manager.code.js +8 -0
- package/dist/core/session-manager.code.js.map +1 -0
- package/dist/core/session-manager.d.ts +1 -1
- package/dist/core/session-manager.impl.js +35 -7
- package/dist/core/session-manager.js +11 -7
- package/dist/core/session-storage.code.js +3 -0
- package/dist/core/session-storage.code.js.map +1 -0
- package/dist/core/session-storage.impl.js +35 -2
- package/dist/core/session-storage.js +11 -7
- package/dist/core/storage/file-identity.d.ts +3 -0
- package/dist/core/storage/file-identity.js +296 -86
- package/dist/core/storage/file-identity.js.map +1 -1
- package/dist/core/storage/index.d.ts +1 -1
- package/dist/core/storage/index.js +52 -7
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/node-sqlite-thread.js +47 -2
- package/dist/core/storage/node-sqlite.js +49 -4
- package/dist/core/storage/node-sqlite.js.map +1 -1
- package/dist/core/storage/offline-snapshot-file.code.js +37 -0
- package/dist/core/storage/offline-snapshot-file.code.js.map +1 -0
- package/dist/core/storage/offline-snapshot-file.impl.js +33 -34
- package/dist/core/storage/offline-snapshot-file.impl.js.map +1 -1
- package/dist/core/storage/offline-snapshot-file.js +11 -7
- package/dist/core/storage/provider.js +52 -7
- package/dist/core/storage/selection.js +49 -4
- package/dist/core/storage/session/branch-fork-source.code.js +146 -0
- package/dist/core/storage/session/branch-fork-source.code.js.map +1 -0
- package/dist/core/storage/session/branch-fork-source.impl.js +32 -97
- package/dist/core/storage/session/branch-fork-source.impl.js.map +1 -1
- package/dist/core/storage/session/branch-fork-source.js +11 -7
- package/dist/core/storage/session/card-view.code.js +60 -0
- package/dist/core/storage/session/card-view.code.js.map +1 -0
- package/dist/core/storage/session/card-view.impl.js +34 -58
- package/dist/core/storage/session/card-view.impl.js.map +1 -1
- package/dist/core/storage/session/card-view.js +11 -7
- package/dist/core/storage/session/child-reader.code.js +139 -0
- package/dist/core/storage/session/child-reader.code.js.map +1 -0
- package/dist/core/storage/session/child-reader.d.ts +1 -0
- package/dist/core/storage/session/child-reader.impl.js +33 -91
- package/dist/core/storage/session/child-reader.impl.js.map +1 -1
- package/dist/core/storage/session/child-reader.js +11 -7
- package/dist/core/storage/session/chunked-resume-projection.code.js +3 -0
- package/dist/core/storage/session/chunked-resume-projection.code.js.map +1 -0
- package/dist/core/storage/session/chunked-resume-projection.impl.js +35 -2
- package/dist/core/storage/session/chunked-resume-projection.js +11 -7
- package/dist/core/storage/session/expanded-child-details.code.js +684 -0
- package/dist/core/storage/session/expanded-child-details.code.js.map +1 -0
- package/dist/core/storage/session/expanded-child-details.impl.js +31 -634
- package/dist/core/storage/session/expanded-child-details.impl.js.map +1 -1
- package/dist/core/storage/session/expanded-child-details.js +11 -7
- package/dist/core/storage/session/fork-row-bytes.code.js +3 -0
- package/dist/core/storage/session/fork-row-bytes.code.js.map +1 -0
- package/dist/core/storage/session/fork-row-bytes.impl.js +35 -2
- package/dist/core/storage/session/fork-row-bytes.js +11 -7
- package/dist/core/storage/session/fork-row-index.code.js +3 -0
- package/dist/core/storage/session/fork-row-index.code.js.map +1 -0
- package/dist/core/storage/session/fork-row-index.impl.js +35 -2
- package/dist/core/storage/session/fork-row-index.js +11 -7
- package/dist/core/storage/session/fork-staging.code.js +580 -0
- package/dist/core/storage/session/fork-staging.code.js.map +1 -0
- package/dist/core/storage/session/fork-staging.impl.js +30 -574
- package/dist/core/storage/session/fork-staging.impl.js.map +1 -1
- package/dist/core/storage/session/fork-staging.js +11 -7
- package/dist/core/storage/session/fork-window.code.js +522 -0
- package/dist/core/storage/session/fork-window.code.js.map +1 -0
- package/dist/core/storage/session/fork-window.impl.js +30 -471
- package/dist/core/storage/session/fork-window.impl.js.map +1 -1
- package/dist/core/storage/session/fork-window.js +11 -7
- package/dist/core/storage/session/history-pages.code.js +3 -0
- package/dist/core/storage/session/history-pages.code.js.map +1 -0
- package/dist/core/storage/session/history-pages.impl.js +35 -2
- package/dist/core/storage/session/history-pages.js +11 -7
- package/dist/core/storage/session/jsonl-entry-projection.code.js +3 -0
- package/dist/core/storage/session/jsonl-entry-projection.code.js.map +1 -0
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +35 -2
- package/dist/core/storage/session/jsonl-entry-projection.js +11 -7
- package/dist/core/storage/session/jsonl-session-store.code.js +3 -0
- package/dist/core/storage/session/jsonl-session-store.code.js.map +1 -0
- package/dist/core/storage/session/jsonl-session-store.impl.js +35 -2
- package/dist/core/storage/session/jsonl-session-store.js +11 -7
- package/dist/core/storage/session/memory-session-store.code.js +3 -0
- package/dist/core/storage/session/memory-session-store.code.js.map +1 -0
- package/dist/core/storage/session/memory-session-store.impl.js +35 -2
- package/dist/core/storage/session/memory-session-store.js +11 -7
- package/dist/core/storage/session/pinned-branch-resume.code.js +117 -0
- package/dist/core/storage/session/pinned-branch-resume.code.js.map +1 -0
- package/dist/core/storage/session/pinned-branch-resume.impl.js +33 -69
- package/dist/core/storage/session/pinned-branch-resume.impl.js.map +1 -1
- package/dist/core/storage/session/pinned-branch-resume.js +11 -7
- package/dist/core/storage/session/released-history-files.code.js +465 -0
- package/dist/core/storage/session/released-history-files.code.js.map +1 -0
- package/dist/core/storage/session/released-history-files.impl.js +32 -461
- package/dist/core/storage/session/released-history-files.impl.js.map +1 -1
- package/dist/core/storage/session/released-history-files.js +11 -7
- package/dist/core/storage/session/resident-fork-rows.code.js +57 -0
- package/dist/core/storage/session/resident-fork-rows.code.js.map +1 -0
- package/dist/core/storage/session/resident-fork-rows.impl.js +32 -53
- package/dist/core/storage/session/resident-fork-rows.impl.js.map +1 -1
- package/dist/core/storage/session/resident-fork-rows.js +11 -7
- package/dist/core/storage/session/session-resume.code.js +3 -0
- package/dist/core/storage/session/session-resume.code.js.map +1 -0
- package/dist/core/storage/session/session-resume.impl.js +35 -2
- package/dist/core/storage/session/session-resume.js +11 -7
- package/dist/core/storage/session/snapshot-cut.code.js +3 -0
- package/dist/core/storage/session/snapshot-cut.code.js.map +1 -0
- package/dist/core/storage/session/snapshot-cut.impl.js +35 -2
- package/dist/core/storage/session/snapshot-cut.js +11 -7
- package/dist/core/storage/session/snapshot-history.code.js +107 -0
- package/dist/core/storage/session/snapshot-history.code.js.map +1 -0
- package/dist/core/storage/session/snapshot-history.impl.js +34 -60
- package/dist/core/storage/session/snapshot-history.impl.js.map +1 -1
- package/dist/core/storage/session/snapshot-history.js +11 -7
- package/dist/core/storage/session/sql-session-store.code.js +3 -0
- package/dist/core/storage/session/sql-session-store.code.js.map +1 -0
- package/dist/core/storage/session/sql-session-store.impl.js +35 -2
- package/dist/core/storage/session/sql-session-store.js +11 -7
- package/dist/core/storage/session/tree-outline.code.js +3 -0
- package/dist/core/storage/session/tree-outline.code.js.map +1 -0
- package/dist/core/storage/session/tree-outline.impl.js +35 -2
- package/dist/core/storage/session/tree-outline.js +11 -7
- package/dist/core/storage/session/tree-presentation.code.js +342 -0
- package/dist/core/storage/session/tree-presentation.code.js.map +1 -0
- package/dist/core/storage/session/tree-presentation.impl.js +31 -337
- package/dist/core/storage/session/tree-presentation.impl.js.map +1 -1
- package/dist/core/storage/session/tree-presentation.js +11 -7
- package/dist/core/storage/session/types.d.ts +26 -0
- package/dist/core/storage/storage-status.code.js +3 -0
- package/dist/core/storage/storage-status.code.js.map +1 -0
- package/dist/core/storage/storage-status.impl.js +35 -2
- package/dist/core/storage/storage-status.js +11 -7
- package/dist/core/storage/team.code.js +3 -0
- package/dist/core/storage/team.code.js.map +1 -0
- package/dist/core/storage/team.impl.js +35 -2
- package/dist/core/storage/team.js +11 -7
- package/dist/core/structured-output/index.code.js +3 -0
- package/dist/core/structured-output/index.code.js.map +1 -0
- package/dist/core/structured-output/index.impl.js +35 -2
- package/dist/core/structured-output/index.js +11 -7
- package/dist/core/tasks/command-output.d.ts +4 -1
- package/dist/core/tasks/supervisor.d.ts +2 -0
- package/dist/core/tasks/task-completion-entry.code.js +254 -0
- package/dist/core/tasks/task-completion-entry.code.js.map +1 -0
- package/dist/core/tasks/task-completion-entry.impl.js +33 -251
- package/dist/core/tasks/task-completion-entry.impl.js.map +1 -1
- package/dist/core/tasks/task-completion-entry.js +11 -7
- package/dist/core/tasks/task-file-history.code.js +424 -0
- package/dist/core/tasks/task-file-history.code.js.map +1 -0
- package/dist/core/tasks/task-file-history.impl.js +32 -375
- package/dist/core/tasks/task-file-history.impl.js.map +1 -1
- package/dist/core/tasks/task-file-history.js +11 -7
- package/dist/core/tasks/{task-reference-archive.impl.js → task-reference-archive.code.js} +51 -6
- package/dist/core/tasks/{task-reference-archive.impl.js.map → task-reference-archive.code.js.map} +1 -1
- package/dist/core/tasks/task-reference-archive.js +11 -7
- package/dist/core/tasks/{task-reference-identity.impl.js → task-reference-identity.code.js} +1 -1
- package/dist/core/tasks/{task-reference-identity.impl.js.map → task-reference-identity.code.js.map} +1 -1
- package/dist/core/tasks/task-reference-identity.js +11 -7
- package/dist/core/tasks/task-reference-stream.code.js +3 -0
- package/dist/core/tasks/task-reference-stream.code.js.map +1 -0
- package/dist/core/tasks/task-reference-stream.impl.js +35 -2
- package/dist/core/tasks/task-reference-stream.js +11 -7
- package/dist/core/tasks/task-unsaved-answer.code.js +3 -0
- package/dist/core/tasks/task-unsaved-answer.code.js.map +1 -0
- package/dist/core/tasks/task-unsaved-answer.impl.js +35 -2
- package/dist/core/tasks/task-unsaved-answer.js +11 -7
- package/dist/core/tasks/task-view-source.code.js +3 -0
- package/dist/core/tasks/task-view-source.code.js.map +1 -0
- package/dist/core/tasks/task-view-source.d.ts +9 -0
- package/dist/core/tasks/task-view-source.impl.js +35 -2
- package/dist/core/tasks/task-view-source.js +12 -8
- package/dist/core/tools/read-url.code.js +1530 -0
- package/dist/core/tools/read-url.code.js.map +1 -0
- package/dist/core/tools/read-url.impl.js +30 -1524
- package/dist/core/tools/read-url.impl.js.map +1 -1
- package/dist/core/tools/read-url.js +11 -7
- package/dist/core/worktree-snapshot/blob-store.js +50 -5
- package/dist/core/worktree-snapshot/errors.code.js +6 -0
- package/dist/core/worktree-snapshot/errors.code.js.map +1 -0
- package/dist/core/worktree-snapshot/errors.impl.js +35 -5
- package/dist/core/worktree-snapshot/errors.js +11 -7
- package/dist/core/worktree-snapshot/session-index-reset.code.js +136 -0
- package/dist/core/worktree-snapshot/session-index-reset.code.js.map +1 -0
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +34 -134
- package/dist/core/worktree-snapshot/session-index-reset.impl.js.map +1 -1
- package/dist/core/worktree-snapshot/session-index-reset.js +11 -7
- package/dist/extensions/codemode/execute.code.js +618 -0
- package/dist/extensions/codemode/execute.code.js.map +1 -0
- package/dist/extensions/codemode/execute.impl.js +30 -612
- package/dist/extensions/codemode/execute.impl.js.map +1 -1
- package/dist/extensions/codemode/execute.js +11 -7
- package/dist/extensions/codemode/renderer.code.js +110 -0
- package/dist/extensions/codemode/renderer.code.js.map +1 -0
- package/dist/extensions/codemode/renderer.impl.js +33 -107
- package/dist/extensions/codemode/renderer.impl.js.map +1 -1
- package/dist/extensions/codemode/renderer.js +11 -7
- package/dist/extensions/mcp/cli.code.js +565 -0
- package/dist/extensions/mcp/cli.code.js.map +1 -0
- package/dist/extensions/mcp/cli.impl.js +32 -561
- package/dist/extensions/mcp/cli.impl.js.map +1 -1
- package/dist/extensions/mcp/cli.js +11 -7
- package/dist/extensions/mcp/cli.lazy.code.js +52 -0
- package/dist/extensions/mcp/cli.lazy.code.js.map +1 -0
- package/dist/extensions/mcp/cli.lazy.impl.js +36 -7
- package/dist/extensions/mcp/cli.lazy.impl.js.map +1 -1
- package/dist/extensions/mcp/cli.lazy.js +11 -7
- package/dist/extensions/mcp/client/transports/stdio.d.ts +2 -0
- package/dist/extensions/mcp/runtime.code.js +5 -0
- package/dist/extensions/mcp/runtime.code.js.map +1 -0
- package/dist/extensions/mcp/runtime.impl.js +35 -4
- package/dist/extensions/mcp/runtime.js +11 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/main-first-time-setup.code.js +12 -0
- package/dist/main-first-time-setup.code.js.map +1 -0
- package/dist/main-first-time-setup.impl.js +35 -11
- package/dist/main-first-time-setup.impl.js.map +1 -1
- package/dist/main-first-time-setup.js +11 -7
- package/dist/main.d.ts +1 -1
- package/dist/main.js +2 -2
- package/dist/modes/interactive/agent-view/agent-view-switcher.d.ts +6 -1
- package/dist/modes/interactive/agent-view/contracts.d.ts +4 -0
- package/dist/modes/interactive/chat-reader-records.d.ts +1 -1
- package/dist/modes/interactive/components/stored-tree-view.code.js +338 -0
- package/dist/modes/interactive/components/stored-tree-view.code.js.map +1 -0
- package/dist/modes/interactive/components/stored-tree-view.impl.js +33 -290
- package/dist/modes/interactive/components/stored-tree-view.impl.js.map +1 -1
- package/dist/modes/interactive/components/stored-tree-view.js +11 -7
- package/dist/modes/interactive/components/task-selection-state.d.ts +8 -3
- package/dist/modes/interactive/components/task-transcript-page.d.ts +1 -0
- package/dist/modes/interactive/components/user-message-selector-archive.code.js +191 -0
- package/dist/modes/interactive/components/user-message-selector-archive.code.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +34 -189
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js.map +1 -1
- package/dist/modes/interactive/components/user-message-selector-archive.js +11 -7
- package/dist/modes/interactive/interactive-mode-base.d.ts +6 -0
- package/dist/modes/interactive/interactive-mode.js +1 -1
- package/dist/modes/interactive/interactive-queueing.d.ts +4 -0
- package/dist/modes/interactive/interactive-render-chat.d.ts +22 -0
- package/dist/modes/interactive/interactive-startup.d.ts +2 -0
- package/dist/modes/interactive/program-status-reporter.d.ts +2 -1
- package/dist/modes/interactive/startup-shell-eligibility.js +1 -1
- package/dist/modes/interactive/steering-queue-controller.d.ts +4 -0
- package/dist/modes/interactive/theme/theme-schema-factory.d.ts +26 -0
- package/dist/modes/interactive/theme/theme-schema.d.ts +4 -5
- package/dist/modes/interactive-engine/engine-prewarm.d.ts +30 -5
- package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +7 -0
- package/dist/modes/interactive-engine/protocol.d.ts +32 -1
- package/dist/modes/rpc/agent-view-rpc-types.d.ts +12 -1
- package/dist/modes/rpc/agent-view-rpc-types.js.map +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +3 -1
- package/dist/modes/rpc/rpc-types.d.ts +12 -0
- package/dist/package-manager-cli.code.js +1140 -0
- package/dist/package-manager-cli.code.js.map +1 -0
- package/dist/package-manager-cli.impl.js +36 -1067
- package/dist/package-manager-cli.impl.js.map +1 -1
- package/dist/package-manager-cli.js +11 -7
- package/dist/rpc-entry.js +2 -2
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/11.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/13.js +1 -0
- package/dist/startup-stages/2.js +1 -7
- package/dist/startup-stages/3.js +6 -2
- package/dist/startup-stages/4.js +2 -1
- package/dist/startup-stages/5.js +1 -7
- package/dist/startup-stages/6.js +7 -10
- package/dist/startup-stages/7.js +10 -3
- package/dist/startup-stages/8.js +3 -6
- package/dist/startup-stages/9.js +6 -1
- package/dist/startup-stages/stages.json +1 -1
- package/dist/utils/canonical-path.js +2 -0
- package/dist/utils/canonical-path.js.map +1 -1
- package/dist/utils/child-process.d.ts +41 -1
- package/dist/utils/compile-cache-warmup-host.js +63 -18
- package/dist/utils/compile-cache-warmup-host.js.map +1 -1
- package/dist/utils/credential-redaction.d.ts +50 -1
- package/dist/utils/interactive-engine-bootstrap.d.ts +2 -0
- package/dist/utils/interactive-engine-env.d.ts +2 -0
- package/dist/utils/memoize-async.d.ts +32 -0
- package/dist/utils/memoize-async.js +91 -0
- package/dist/utils/memoize-async.js.map +1 -0
- package/dist/utils/photon.js +19 -29
- package/dist/utils/photon.js.map +1 -1
- package/dist/utils/shell.d.ts +7 -4
- package/dist/utils/startup-database-spare.code.js +108 -0
- package/dist/utils/startup-database-spare.code.js.map +1 -0
- package/dist/utils/startup-database-spare.impl.js +33 -105
- package/dist/utils/startup-database-spare.impl.js.map +1 -1
- package/dist/utils/startup-database-spare.js +11 -7
- package/dist/utils/tools-manager.code.js +3 -0
- package/dist/utils/tools-manager.code.js.map +1 -0
- package/dist/utils/tools-manager.impl.js +35 -2
- package/dist/utils/tools-manager.js +11 -7
- package/dist/utils/windows-cwd.js +585 -0
- package/dist/utils/windows-cwd.js.map +1 -0
- package/docs/extensions.md +1 -1
- package/docs/getting-started/installation.md +2 -0
- package/docs/intercom/operations.md +1 -0
- package/docs/reference/cli.md +1 -1
- package/package.json +24 -24
- package/dist/_shared/mode-shared-HP7GUA7J.js.map +0 -1
- package/dist/_shared/p1a-prewarm-YK3KDTLN.js.map +0 -1
- package/dist/_shared/p1b-elig-PXQA2FYP.js.map +0 -1
- package/dist/_shared/startup-0-0-X4NF3GKM.js.map +0 -1
- package/dist/_shared/startup-0-1-7QTG6VJZ.js.map +0 -1
- package/dist/_shared/startup-0-2-KFDYPDJK.js.map +0 -1
- package/dist/_shared/startup-8-1-KQJBDKRU.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { __name } from "./rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { APP_NAME, BUILTIN_PACKAGE_DIR_NAMES, CONFIG_DIR_NAME, ENV_CLEAR_ON_SHRINK, ENV_HARDWARE_CURSOR, ENV_SESSION_DIR, INTERACTIVE_ENGINE_BOOTSTRAP_FLAG, addHostStorageAdapter, canonicalizePath as canonicalizePath$1, createChildProcessEnvironment, flushPersistentCompileCache, formatPathRelativeToCwdOrAbsolute, getAgentConfigPaths, getAgentDir, getAgentDirs, getBinDir, getBlueprintActionsDir, getCwdRelativePath, getEnvValue, getGlobalBlueprintPath, getHomeDir, getProjectBlueprintPath, getProjectConfigPaths, getReadmePath, hostStorageAdapter, isBunBinary, isBunRuntime, isLocalPath, markLifecycleTiming, normalizePath, removeOwnedInteractiveEngineBootstrapAsync, resolvePath, shortenHomePath, splitBom, stripBom, waitForChildProcess, writeInteractiveEngineBootstrapAsync } from "./p0-cli-
|
|
3
|
-
import { BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, EditInputError, EditMatchError, EditTargetError, FileToolAbortedError, HostListenerFailures, LONG_LIVED_COMMANDS, MAX_COMMAND_TIMEOUT_SECONDS, Minimatch, RESTART_CANCELLED_MESSAGE, STALE_EXTENSION_CONTEXT_MESSAGE, ShellTimeoutError, SqliteSelectorConnection, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, TASK_MARKS, TaskMessageError, TaskMessageTimeoutError, WriteSelectorError, activeToolExecutionStarts, allToolNames, announceBlueprintBuildWaiting, applyBashSessionEnvironment, asyncScope, attachJsonlLineReader, attachLineReader, bindSavedTaskOrigins, blueprintBuildShared, blueprintDigest, canonicalEventBusFor, chatPosition, clearAssignmentIfClosed, clearLockHolder, clearLockHolderAsync, convertBufferWithMarkit, convertFileWithMarkit, createGitEnvironment, defaultToolNamesFor, defineTool, detectSupportedImageMimeTypeFromFile, displayTodoId, entryLines, expandSearchUrl, experimentalToolSamplingProperty, filterSearchOutputByLineRange, formatReadLineRange as formatReadLineRange$1, formatSelectedLines, formatSize, formatTimeoutSeconds as formatTimeoutSeconds$1, formatTodoId, frozenClocks, getManifestFromPackageJson, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolListError, handOverBuildTimings, holdDeprecationWarnings, holdToolsUntilBuilt, hostInputError, invalidArgText, invalidateNativeSearchCache, isBlueprintError, isGitProvisionError, isGitUnavailableError, isPathInside, isReadResourceSelector, isReadableUrlPath, isTodoClosed, isToolModifier, keptTaskHint, linkPath, literalPathLike, loadNativeSearchBinding, longerRunAdvice, mergeReadRanges, normalizePathLikeInput, normalizeTodoId, noteSavedSeq, openAdapterSelectionDatabase, originalHistoryNote, prepareLockTakeover, projectTrustHandlerRegistered, projectTrustedBeforeExtensions, readLedger, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, registerCanonicalEventBus, releaseDeprecationWarnings, renderBlueprintContext, renderToolPath, replaceTabs, reportContained, repositoryKey, resolvePhysicalPathAsync, rootKey, savedReadLines, scopedBackgroundTasks, searchPosition, selectExactReadRanges, selectReadRanges, serializeJsonLine, settingsFileNoticeKey, settingsInternals, shortenPath, sleep, sliceHead, snapshotBashSessionEnvironment, sortTodos, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, startToolTimer, str, stringEntries, takeOverDeadHolder, takeOverDeadHolderAsync, takeQueuedDeliveryChange, taskResumer, timestamp, toolTimerText, transcriptHeaderLines, truncateHead, truncateLine, updateLedger, validateTodoId, warnDeprecation, withFileMutationQueue, withResolvingFileMutationQueue, workspaceKey } from "./startup-0-0-
|
|
4
|
-
import { EMPTY_OUTPUT_TEXT, HistorySearchPositions, MAX_INDEXED_ENTRY_CHARS, ResumeTimingsRecorder, SEARCH_PART_CHARS, SessionStorageSelectionSchema, TaskElapsedClocks, WorkspaceDriftError, WorkspaceRestoreError, WorkspaceSnapshotError, bindTaskClock, bindTaskClockSource, buildDirectoryTree, buildDirectoryTreeFromOperations, captureRegistrationInvocation, compareCreated, compareFrozen, conflictEntries, convertToLlm, createBranchSummaryMessage, createCustomMessage, diffLines, ensureTool, execCommand, findSessionOpenHolder, findWorkspaceError, formatResumeTimings, invocationExtension, invocationRuntime, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspaceSnapshotError, lifecycleScopeForOwner, normalizeAzureSettings, openEventSubscription, originalRegistrationCallback, ownedSettingsManagers, parseArgs, parseConflictBytes, parseInteractiveEngineMessage, presentTaskError, prewarmModelApi, readConflictUrl, readLocalFileChunks, recordBlueprintStep, recordResumeTimings, recordSettingsWrite, refreshConflictFile, registerConflictBlocks, registerFactoryStartupHandler, renderTodoCall, renderTodoResult, resolveInstalledGit, resolveInvocationRuntime, selectReadLinesFromChunks, selectReadLinesFromList, serializeInteractiveEngineFrame, serializeTodoForAgent, serializeTodoListForAgent, sessionPosition, settingsWriteOwner, splitSearchTextParts, startupSourceId, taskClockOf, taskClockRunning, timeCheckoutRestore, unpackIds, unreadablePathError, validateEventSource, validateSubscriptionAdmission, waitResultTail, waitStatus, withoutSearchPosition, writeRenderers } from "./startup-0-1-
|
|
2
|
+
import { APP_NAME, BUILTIN_PACKAGE_DIR_NAMES, CONFIG_DIR_NAME, ENV_CLEAR_ON_SHRINK, ENV_HARDWARE_CURSOR, ENV_SESSION_DIR, INTERACTIVE_ENGINE_BOOTSTRAP_FLAG, addHostStorageAdapter, canonicalizePath as canonicalizePath$1, createChildProcessEnvironment, flushPersistentCompileCache, formatPathRelativeToCwdOrAbsolute, getAgentConfigPaths, getAgentDir, getAgentDirs, getBinDir, getBlueprintActionsDir, getCwdRelativePath, getEnvValue, getGlobalBlueprintPath, getHomeDir, getProjectBlueprintPath, getProjectConfigPaths, getReadmePath, hostStorageAdapter, isBunBinary, isBunRuntime, isChildProcessExitStatusUnknownError, isLocalPath, markLifecycleTiming, normalizePath, removeOwnedInteractiveEngineBootstrapAsync, resolvePath, shortenHomePath, splitBom, stripBom, waitForChildProcess, writeInteractiveEngineBootstrapAsync } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
+
import { BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, EditInputError, EditMatchError, EditTargetError, FileToolAbortedError, HostListenerFailures, LONG_LIVED_COMMANDS, MAX_COMMAND_TIMEOUT_SECONDS, Minimatch, RESTART_CANCELLED_MESSAGE, STALE_EXTENSION_CONTEXT_MESSAGE, ShellTimeoutError, SqliteSelectorConnection, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, TASK_MARKS, TaskMessageError, TaskMessageTimeoutError, WriteSelectorError, activeToolExecutionStarts, allToolNames, announceBlueprintBuildWaiting, applyBashSessionEnvironment, asyncScope, attachJsonlLineReader, attachLineReader, bindSavedTaskOrigins, blueprintBuildShared, blueprintDigest, canonicalEventBusFor, chatPosition, clearAssignmentIfClosed, clearLockHolder, clearLockHolderAsync, convertBufferWithMarkit, convertFileWithMarkit, createGitEnvironment, defaultToolNamesFor, defineTool, detectSupportedImageMimeTypeFromFile, displayTodoId, entryLines, expandSearchUrl, experimentalToolSamplingProperty, filterSearchOutputByLineRange, formatReadLineRange as formatReadLineRange$1, formatSelectedLines, formatSize, formatTimeoutSeconds as formatTimeoutSeconds$1, formatTodoId, frozenClocks, getManifestFromPackageJson, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolListError, handOverBuildTimings, holdDeprecationWarnings, holdToolsUntilBuilt, hostInputError, invalidArgText, invalidateNativeSearchCache, isBlueprintError, isGitProvisionError, isGitUnavailableError, isPathInside, isReadResourceSelector, isReadableUrlPath, isTodoClosed, isToolModifier, keptTaskHint, linkPath, literalPathLike, loadNativeSearchBinding, longerRunAdvice, mergeReadRanges, nativeModuleProblem, normalizePathLikeInput, normalizeTodoId, noteSavedSeq, openAdapterSelectionDatabase, originalHistoryNote, prepareLockTakeover, projectTrustHandlerRegistered, projectTrustedBeforeExtensions, readLedger, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, registerCanonicalEventBus, releaseDeprecationWarnings, renderBlueprintContext, renderToolPath, replaceTabs, reportContained, repositoryKey, resolvePhysicalPathAsync, rootKey, savedReadLines, scopedBackgroundTasks, searchPosition, selectExactReadRanges, selectReadRanges, serializeJsonLine, settingsFileNoticeKey, settingsInternals, shortenPath, sleep, sliceHead, snapshotBashSessionEnvironment, sortTodos, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, startToolTimer, str, stringEntries, takeOverDeadHolder, takeOverDeadHolderAsync, takeQueuedDeliveryChange, taskResumer, timestamp, toolTimerText, transcriptHeaderLines, truncateHead, truncateLine, updateLedger, validateTodoId, warnDeprecation, withFileMutationQueue, withResolvingFileMutationQueue, workspaceKey } from "./startup-0-0-TYUFUOJZ.js";
|
|
4
|
+
import { EMPTY_OUTPUT_TEXT, HistorySearchPositions, MAX_INDEXED_ENTRY_CHARS, ResumeTimingsRecorder, SEARCH_PART_CHARS, SessionStorageSelectionSchema, TaskElapsedClocks, WorkspaceDriftError, WorkspaceRestoreError, WorkspaceSnapshotError, bindTaskClock, bindTaskClockSource, buildDirectoryTree, buildDirectoryTreeFromOperations, captureRegistrationInvocation, compareCreated, compareFrozen, conflictEntries, convertToLlm, createBranchSummaryMessage, createCustomMessage, diffLines, ensureTool, execCommand, findSessionOpenHolder, findWorkspaceError, formatResumeTimings, invocationExtension, invocationRuntime, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspaceSnapshotError, lifecycleScopeForOwner, normalizeAzureSettings, openEventSubscription, originalRegistrationCallback, ownedSettingsManagers, parseArgs, parseConflictBytes, parseInteractiveEngineMessage, presentTaskError, prewarmModelApi, readConflictUrl, readLocalFileChunks, recordBlueprintStep, recordResumeTimings, recordSettingsWrite, refreshConflictFile, registerConflictBlocks, registerFactoryStartupHandler, renderTodoCall, renderTodoResult, resolveInstalledGit, resolveInvocationRuntime, selectReadLinesFromChunks, selectReadLinesFromList, serializeInteractiveEngineFrame, serializeTodoForAgent, serializeTodoListForAgent, sessionPosition, settingsWriteOwner, splitSearchTextParts, startupSourceId, taskClockOf, taskClockRunning, timeCheckoutRestore, unpackIds, unreadablePathError, validateEventSource, validateSubscriptionAdmission, waitResultTail, waitStatus, withoutSearchPosition, writeRenderers } from "./startup-0-1-D4LGGINF.js";
|
|
5
5
|
import { CodeHighlighter, FS_WATCH_RETRY_DELAY_MS, applyEarlyInputChunk, closeWatcher, getLanguageFromPath, graphemeAt, highlightCode, isSafeFsWatchPathError, keepStartupDialogDraft, migrateKeybindingsConfig, parenthesizedKeyHint, recordTimingLines, sanitizeTerminalText, singleLineDisplayText, slashCommandHint, terminalDisplayText, theme, watchWithErrorHandlerAsync, withEarlyInputHeldForStartupDialog } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { parseJsonFileContent } from "./p1-shared-RG5I5LJ6.js";
|
|
7
|
-
import { ProjectTrustStore, failureDebugFields, hasProjectTrustInputs, hasProjectTrustInputsAsync, inLockTurn, matchesOnSameLineCI, redactUrlCredentials, releaseLock, releaseLockSync, renameReplacing, renameReplacingAsync, renameWithRetry, reportDebugAsync, waitForLock, waitForLockSync } from "./p1b-elig-
|
|
8
|
-
import { FILE_HEADERS_ONLY, InteractiveEngineMonitor, ModelConfig, RpcTerminalDrain, SESSIONS_STORAGE_ENV, STORAGE_ENV, TodoParams, addShellOutputPreview, assertSessionOpen, bindTaskChatPage, captureTaskChatFile, chatPageRequest, createTwoFilesPatch, drainSessionWork, dropWrongTypedSettings, estimateTokens, formatPatch, formatTruncationNotice, formatWorkingElapsed, getNativeMcpToolIdentity, getPowerShellConfigAsync, getShellConfigAsync, getShellEnvAsync, hasCallingSessionWork, invalidSettingMessage, isPowerShellAvailable, isResumePreconditionError, isTodoOperationError,
|
|
7
|
+
import { ProjectTrustStore, failureDebugFields, hasProjectTrustInputs, hasProjectTrustInputsAsync, inLockTurn, matchesOnSameLineCI, redactUrlCredentials, releaseLock, releaseLockSync, renameReplacing, renameReplacingAsync, renameWithRetry, reportDebugAsync, waitForLock, waitForLockSync } from "./p1b-elig-ENCUPKKJ.js";
|
|
8
|
+
import { FILE_HEADERS_ONLY, InteractiveEngineMonitor, ModelConfig, RpcTerminalDrain, SESSIONS_STORAGE_ENV, STORAGE_ENV, TodoParams, addShellOutputPreview, assertSessionOpen, bindTaskChatPage, captureTaskChatFile, chatPageRequest, createTwoFilesPatch, drainSessionWork, dropWrongTypedSettings, estimateTokens, formatPatch, formatTruncationNotice, formatWorkingElapsed, getNativeMcpToolIdentity, getPowerShellConfigAsync, getShellConfigAsync, getShellEnvAsync, hasCallingSessionWork, invalidSettingMessage, isPowerShellAvailable, isResumePreconditionError, isTodoOperationError, killChildProcessTree, loadTaskOwnTranscriptEntries, markNativeMcpToolDefinition, processSharedStorageSelection, processSharedStorageSelectionAsync, processStorageEnvironment, rebuildShellWaitResult, selectProcessStorage, selectProcessStorageSteps, sessionGenerationClosing, sessionLifetime, spawnShellProcess, structuredPatch, taskChatPage, taskExtensionStatuses, taskOwnTranscriptEntries, taskTranscriptSource, trackDetachedChildPid, trackDetachedChildProcess, trackSessionWork, untrackDetachedChildPid, watchTaskExtensionStatuses, wrapToolDefinition } from "./startup-0-2-SZGQIWHI.js";
|
|
9
9
|
import { appendToLog, applyContextEdit, assertExtensionAction, buildProcessStarting, extensionWorkOpen, getBaseDirsForScope, getOwnerTaskSession, getOwnerTaskStore, inExtensionCleanup, isResumeFailure, isRetiredExtensionCleanup, isTaskTurnInterrupted, loadArchiveSnapshot, logTail, migrateAzureProvider, migrateAzureProviderAsync, onExtensionSessionQuit, openStepLog, processImage, resolvePathFromBase, resolveWorktreeSnapshotSettings, runLoggedProcess, sessionEntryToContextMessages, sha256Hex, startElapsedMs, stripLeadingCdCommandAsync, taskResumedTurns, trackExtensionWork, watchOwnerTaskStoreBinding, withTodoLock } from "./startup-0-3-T4DVFYWX.js";
|
|
10
10
|
import { DecisionConfigError, SessionHistoryNotLoadedError, asAcceptedRequestFailure, isDecisionConfigError, markRpcTransportFailure, rpcTransportError } from "./settings-startup-65YEWRV2.js";
|
|
11
11
|
import { JsonlSessionStore, LegacySessionStore, checkedCustomMessage, checkedCustomType, checkedLabel, getLastConversationMessageId, getLatestSessionSummary, historyPageGeneration, storeSnapshotIndex, transcriptCursorWithin } from "./startup-8-0-34CBHPZH.js";
|
|
12
12
|
import { admitPooledWorktree, adoptPrebuiltSeed, assertRpcSuccess, authForStream, captureLocatedCheckout, captureWorktreeSnapshot, carryOverDegradedWork, childOfAttempt, chunkedToolResult, chunkedToolResultEntry, claimIdleWorktree, confirmPooledWorktreeLease, createKillTool, createKillToolDefinition, createLoadedAskUserQuestionToolDefinition, createToolNameMatcher, defaultResumePreflightIo, discardPooledWorktree, evictIdleWorktrees, executeNativePty, executeSupervisedCommand, expandSkillCommand, extensionsCanDecideProjectTrust, getExistingGitInstallPathAsync, getManagedNpmInstallPath, gitText, holdRestoredWorktree, holdsSessionSnapshotRef, hostPlatform, inheritWorkspace, isHeadOnlyAdvance, isMcpToolName, isRecoverableRestoreFailure, keepSessionSnapshotCommit, loadSnapshotPathPolicy, locateCheckout, nextCaptureTick, parseBlueprint, parseSource, pendingLfsDownload, pooledWorktreeHolder, readRepositoryConfig, recordPooledWorktreeState, recordWorktreeCapture, releaseRestoredWorktree, releaseSessionSnapshotRefs, removeRestoredWorktree, require_dist, restoreBestWorktree, restoreDegradedWorktree, restoreDegradedWorktreeAt, restoreWorktree, restoreWorktreeAt, retireSessionSnapshotRefs, runGit, selectDocument, setAsideWorktree, snapshotRestoreWarnings, unrestoredRecord, validateBashWait, validateTaskHeartbeatMs, verifyWorktree, waitForSupervisedCommand, waitingReleasedTools, withScratchDirectory, withoutSupersededAttempts, worktreeSetAside, writeWorkingTree } from "./startup-0-5-OHJNE6JH.js";
|
|
13
13
|
import { OutputAccumulator, SNAPSHOT_COLLECTION_SESSION_DELAY_MS, TOOL_BLOCK_LIMITS, ToolBlockRecords, applyModelsJson, cancelledBuilds, canonicalPaths, canonicalizeWorktreePathAsync, collapseToolBlockLines, defaultWorktreeSnapshotStoreDir, migrateAuthJsonConfigValues, migrateAuthJsonConfigValuesAsync, migrateModelsJsonConfigValues, migrateModelsJsonConfigValuesAsync, renderDiff, runCanonicalSteps, runCanonicalStepsAsync, sameRemote, scheduleSnapshotCollection, settleOtherBuilds, taskTranscriptPageWithCuts, withBuildLocks } from "./startup-0-4-HN5EB4K7.js";
|
|
14
14
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
15
|
+
import { adoptPrewarmedEngine, engineLaunch, waitForPrewarmedEngineReady } from "./p1a-prewarm-UQY3X2UK.js";
|
|
15
16
|
import { parseHttpIdleTimeoutMs } from "./http-YFAPTIZD.js";
|
|
16
|
-
import { adoptPrewarmedEngine, engineLaunch } from "./p1a-prewarm-YK3KDTLN.js";
|
|
17
17
|
import fs, { access, appendFile, copyFile, mkdir, open, readFile, readdir, realpath, rm, stat, writeFile } from "node:fs/promises";
|
|
18
18
|
import { chmodSync, constants, existsSync, lstatSync, mkdirSync, promises, readFileSync, readdirSync, readlinkSync, realpath as realpath$1, realpathSync, renameSync, rmSync, rmdirSync, statSync, unwatchFile, watchFile, writeFileSync } from "fs";
|
|
19
19
|
import nodePath, { dirname, isAbsolute, join, resolve, sep } from "path";
|
|
@@ -33,7 +33,6 @@ import { Box, Container, Spacer, Text, getImageDimensions, truncateToWidth, wrap
|
|
|
33
33
|
import chalk from "chalk";
|
|
34
34
|
import { StorageAdapterLoadError, StorageConfigError, StorageError, TeamProfileError, TeamProfileTimeoutError, describeStorageError, describeStorageError as describeStorageError$1, isStorageError } from "../core/storage/errors.js";
|
|
35
35
|
import { access as access$1, lstat as lstat$1, mkdir as mkdir$1, readFile as readFile$1, readdir as readdir$1, readlink as readlink$1, rename as rename$1, rm as rm$1, stat as stat$2, writeFile as writeFile$1 } from "fs/promises";
|
|
36
|
-
import { Type as Type$1 } from "@bastani/atomic-ai/utils/typebox/index";
|
|
37
36
|
import crypto$1, { createHash, randomUUID } from "node:crypto";
|
|
38
37
|
import { inspect, isDeepStrictEqual, promisify, types } from "node:util";
|
|
39
38
|
import lockfile from "proper-lockfile";
|
|
@@ -45,6 +44,7 @@ import { StorageProvider, loadStorageAdapter, resolveAdapterOptions, secretFileP
|
|
|
45
44
|
import { setImmediate as setImmediate$1 } from "node:timers";
|
|
46
45
|
import { isProxy } from "node:util/types";
|
|
47
46
|
import { defaultSessionDatabasePath, defaultSessionDatabasePathAsync, defaultSessionDatabasePathSteps, defaultSharedStoragePath, defaultSharedStoragePathSteps, runStorageSteps, runStorageStepsSync, storageHomeDir, storagePathBaseDir, storagePathBaseDirSteps, storageSettingsSteps, takeStorageAdoptionNotice } from "../core/storage/file-identity.js";
|
|
47
|
+
import { Type as Type$1 } from "@bastani/atomic-ai/utils/typebox/index";
|
|
48
48
|
import { deflateRaw, gunzip, gzip, inflateRaw } from "node:zlib";
|
|
49
49
|
import { getAllBuiltinModels } from "@bastani/atomic-ai/providers/all";
|
|
50
50
|
import { Value } from "@bastani/atomic-ai/utils/typebox/value";
|
|
@@ -2714,7 +2714,7 @@ function failure(context, scope, reason, detail, cause) {
|
|
|
2714
2714
|
}, cause);
|
|
2715
2715
|
}
|
|
2716
2716
|
function succeeded(exit) {
|
|
2717
|
-
return exit.exitStatus === 0 && exit.signal === null && !exit.timedOut && exit.spawnError === void 0;
|
|
2717
|
+
return exit.exitStatus === 0 && exit.signal === null && !exit.timedOut && exit.spawnError === void 0 && exit.exitError === void 0;
|
|
2718
2718
|
}
|
|
2719
2719
|
function timedOut(context) {
|
|
2720
2720
|
return {
|
|
@@ -3488,6 +3488,7 @@ function describeExit(exit, timeoutMs) {
|
|
|
3488
3488
|
if (exit.timedOut) return `# timed out after ${timeoutMs} ms and was stopped`;
|
|
3489
3489
|
if (exit.spawnError) return `# could not be started: ${exit.spawnError.message}`;
|
|
3490
3490
|
if (exit.signal !== null) return `# stopped by signal ${exit.signal}`;
|
|
3491
|
+
if (exit.exitStatus === null) return `# exit status unknown${exit.exitError ? `: ${exit.exitError.message}` : ""}`;
|
|
3491
3492
|
return `# exit status ${exit.exitStatus}`;
|
|
3492
3493
|
}
|
|
3493
3494
|
/** The step's end and how long it ran, for its log. */
|
|
@@ -3502,13 +3503,13 @@ function failureOf$1(exit, location, logPath, timeoutMs) {
|
|
|
3502
3503
|
elapsedMs: exit.elapsedMs,
|
|
3503
3504
|
phase: location.section
|
|
3504
3505
|
});
|
|
3505
|
-
if (exit.exitStatus === 0 && exit.signal === null && exit.spawnError === void 0
|
|
3506
|
+
if (exit.exitStatus === 0 && exit.signal === null && exit.spawnError === void 0 && exit.exitError === void 0) return;
|
|
3506
3507
|
return new BlueprintStepFailedError({
|
|
3507
3508
|
...location,
|
|
3508
3509
|
exitStatus: exit.exitStatus,
|
|
3509
3510
|
signal: exit.signal,
|
|
3510
3511
|
logPath
|
|
3511
|
-
}, exit.spawnError);
|
|
3512
|
+
}, exit.spawnError ?? exit.exitError);
|
|
3512
3513
|
}
|
|
3513
3514
|
__name(failureOf$1, "failureOf");
|
|
3514
3515
|
/**
|
|
@@ -5583,6 +5584,37 @@ function readTaskDetailForView(source, id, signal) {
|
|
|
5583
5584
|
}
|
|
5584
5585
|
const NO_STATUSES = /* @__PURE__ */ new Map();
|
|
5585
5586
|
const sources$1 = /* @__PURE__ */ new WeakMap();
|
|
5587
|
+
const ownerTaskActionListeners = /* @__PURE__ */ new WeakMap();
|
|
5588
|
+
/** Observe stop/clear/send actions performed on agent tasks of `store`. Answers the unsubscribe. */
|
|
5589
|
+
function onOwnerTaskAction(store, listener) {
|
|
5590
|
+
let listeners = ownerTaskActionListeners.get(store);
|
|
5591
|
+
if (listeners === void 0) {
|
|
5592
|
+
listeners = /* @__PURE__ */ new Set();
|
|
5593
|
+
ownerTaskActionListeners.set(store, listeners);
|
|
5594
|
+
}
|
|
5595
|
+
listeners.add(listener);
|
|
5596
|
+
return () => {
|
|
5597
|
+
listeners.delete(listener);
|
|
5598
|
+
};
|
|
5599
|
+
}
|
|
5600
|
+
function emitOwnerTaskAction(store, id, action) {
|
|
5601
|
+
const listeners = ownerTaskActionListeners.get(store);
|
|
5602
|
+
if (listeners === void 0 || listeners.size === 0) return;
|
|
5603
|
+
const task = store.resolveTask(id);
|
|
5604
|
+
const bound = task.ok ? taskTranscriptSource(task.value) : void 0;
|
|
5605
|
+
const session = bound?.ok ? bound.value.session : void 0;
|
|
5606
|
+
const sessionId = session?.getSessionId?.();
|
|
5607
|
+
const sessionFile = session?.getSessionFile?.();
|
|
5608
|
+
const event = {
|
|
5609
|
+
taskId: id,
|
|
5610
|
+
...sessionId === void 0 ? {} : { sessionId },
|
|
5611
|
+
...sessionFile === void 0 ? {} : { sessionFile },
|
|
5612
|
+
action
|
|
5613
|
+
};
|
|
5614
|
+
for (const listener of [...listeners]) try {
|
|
5615
|
+
listener(event);
|
|
5616
|
+
} catch {}
|
|
5617
|
+
}
|
|
5586
5618
|
/** Each launched-task view by the task that launched them, under the view of every task. */
|
|
5587
5619
|
const launchedViews = /* @__PURE__ */ new WeakMap();
|
|
5588
5620
|
/** The view of every task a launched-task view reads from. */
|
|
@@ -5687,6 +5719,7 @@ function ownerTaskViewSource(store) {
|
|
|
5687
5719
|
const resumable = taskResumer(store.supervisor)?.stop?.(id);
|
|
5688
5720
|
if (resumable !== void 0) {
|
|
5689
5721
|
const stopped = await resumable;
|
|
5722
|
+
if (stopped.ok) emitOwnerTaskAction(store, id, "stopped");
|
|
5690
5723
|
return stopped.ok ? {
|
|
5691
5724
|
ok: true,
|
|
5692
5725
|
value: void 0
|
|
@@ -5701,6 +5734,7 @@ function ownerTaskViewSource(store) {
|
|
|
5701
5734
|
error: { message: task.error.message }
|
|
5702
5735
|
};
|
|
5703
5736
|
const result = await store.supervisor.cancelTask(task.value, "user");
|
|
5737
|
+
if (result.ok) emitOwnerTaskAction(store, id, "stopped");
|
|
5704
5738
|
return result.ok ? {
|
|
5705
5739
|
ok: true,
|
|
5706
5740
|
value: void 0
|
|
@@ -5755,7 +5789,7 @@ function ownerTaskViewSource(store) {
|
|
|
5755
5789
|
if (source.ok) {
|
|
5756
5790
|
const { session, inheritedThroughId } = source.value;
|
|
5757
5791
|
const file = fileArchives.get(session);
|
|
5758
|
-
if (file && archiveReader(session)) return import("../core/tasks/task-file-history.
|
|
5792
|
+
if (file && archiveReader(session)) return import("../core/tasks/task-file-history.code.js").catch((error) => __atomicOnDemandFailed(error, "/tasks")).then(({ taskFileDetail }) => taskFileDetail(file.path, file.sessionId, inheritedThroughId, messageText$1, signal)).then((value) => file.unsaved?.type === "message" && file.unsaved.message.role === "assistant" ? {
|
|
5759
5793
|
...value,
|
|
5760
5794
|
output: messageText$1(file.unsaved.message)
|
|
5761
5795
|
} : value).catch(() => detailText(session.getFallbackEntries?.()));
|
|
@@ -5786,7 +5820,7 @@ function ownerTaskViewSource(store) {
|
|
|
5786
5820
|
};
|
|
5787
5821
|
const { session, taskId } = bound.value;
|
|
5788
5822
|
const file = fileArchives.get(session);
|
|
5789
|
-
if (file && archiveReader(session) && !session.subscribe) return import("../core/tasks/task-file-history.
|
|
5823
|
+
if (file && archiveReader(session) && !session.subscribe) return import("../core/tasks/task-file-history.code.js").catch((error) => __atomicOnDemandFailed(error, "/tasks")).then(({ taskFilePages, taskFileUnavailable }) => savedTranscriptView(session, taskId, (opts) => taskFilePages(file.path, file.sessionId, {
|
|
5790
5824
|
...opts ?? {},
|
|
5791
5825
|
...chatPageRequest.getStore() ? { identify: true } : {}
|
|
5792
5826
|
}), cursor, file, signal).catch(async (error) => {
|
|
@@ -5864,6 +5898,7 @@ function ownerTaskViewSource(store) {
|
|
|
5864
5898
|
try {
|
|
5865
5899
|
await interrupt.call(bound.value.session);
|
|
5866
5900
|
if (bound.value.session.isRunning?.() !== true) store.setTurnInterrupted(id, true);
|
|
5901
|
+
emitOwnerTaskAction(store, id, "stopped");
|
|
5867
5902
|
return {
|
|
5868
5903
|
ok: true,
|
|
5869
5904
|
value: void 0
|
|
@@ -5908,6 +5943,7 @@ function ownerTaskViewSource(store) {
|
|
|
5908
5943
|
store.setTurnInterrupted(id, false);
|
|
5909
5944
|
});
|
|
5910
5945
|
}
|
|
5946
|
+
emitOwnerTaskAction(store, id, "stopped");
|
|
5911
5947
|
return {
|
|
5912
5948
|
ok: true,
|
|
5913
5949
|
value: taken
|
|
@@ -5966,6 +6002,7 @@ function ownerTaskViewSource(store) {
|
|
|
5966
6002
|
taskId: id,
|
|
5967
6003
|
detail: resumed.reason
|
|
5968
6004
|
});
|
|
6005
|
+
emitOwnerTaskAction(store, id, "sent");
|
|
5969
6006
|
return;
|
|
5970
6007
|
}
|
|
5971
6008
|
const task = lease(id);
|
|
@@ -5986,6 +6023,7 @@ function ownerTaskViewSource(store) {
|
|
|
5986
6023
|
}
|
|
5987
6024
|
if (delivery.delivered) {
|
|
5988
6025
|
if (delivery.startedTurn !== false) store.setTurnInterrupted(id, false);
|
|
6026
|
+
emitOwnerTaskAction(store, id, "sent");
|
|
5989
6027
|
return;
|
|
5990
6028
|
}
|
|
5991
6029
|
if (delivery.reason === "ended" && attempt === 0 && resumer !== void 0 && await agentTaskSettles(store, id)) continue;
|
|
@@ -6009,17 +6047,22 @@ function ownerTaskViewSource(store) {
|
|
|
6009
6047
|
};
|
|
6010
6048
|
const bound = taskTranscriptSource(task.value);
|
|
6011
6049
|
const clear = bound.ok ? bound.value.session.clearQueue : void 0;
|
|
6012
|
-
if (!bound.ok || clear === void 0)
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6050
|
+
if (!bound.ok || clear === void 0) {
|
|
6051
|
+
emitOwnerTaskAction(store, id, "cleared");
|
|
6052
|
+
return {
|
|
6053
|
+
ok: true,
|
|
6054
|
+
value: {
|
|
6055
|
+
steering: [],
|
|
6056
|
+
followUp: []
|
|
6057
|
+
}
|
|
6058
|
+
};
|
|
6059
|
+
}
|
|
6019
6060
|
try {
|
|
6061
|
+
const value = await clear.call(bound.value.session);
|
|
6062
|
+
emitOwnerTaskAction(store, id, "cleared");
|
|
6020
6063
|
return {
|
|
6021
6064
|
ok: true,
|
|
6022
|
-
value
|
|
6065
|
+
value
|
|
6023
6066
|
};
|
|
6024
6067
|
} catch (error) {
|
|
6025
6068
|
return {
|
|
@@ -6104,7 +6147,7 @@ async function savedTaskDetailText(session, throughId) {
|
|
|
6104
6147
|
if (entry.message.role === "assistant") output = messageText$1(entry.message);
|
|
6105
6148
|
} else {
|
|
6106
6149
|
if (!session.readHistoryChunks) throw new TypeError("The task history source must implement readHistoryChunks for oversized entries");
|
|
6107
|
-
const { chunkedTaskDetailFields } = await import("../core/storage/session/chunked-resume-projection.
|
|
6150
|
+
const { chunkedTaskDetailFields } = await import("../core/storage/session/chunked-resume-projection.code.js").catch((error) => __atomicOnDemandFailed(error, "session storage"));
|
|
6108
6151
|
const info = await chunkedTaskDetailFields(() => session.readHistoryChunks(item), own ? void 0 : throughId);
|
|
6109
6152
|
if (!own) {
|
|
6110
6153
|
if (info.inheritedEnd) own = true;
|
|
@@ -6186,7 +6229,7 @@ async function oversizedToolResult(session, item, file, current, signal) {
|
|
|
6186
6229
|
let chunks;
|
|
6187
6230
|
if (file) {
|
|
6188
6231
|
if (current === void 0) return void 0;
|
|
6189
|
-
const { taskFileEntryChunks } = await import("../core/tasks/task-file-history.
|
|
6232
|
+
const { taskFileEntryChunks } = await import("../core/tasks/task-file-history.code.js").catch((error) => __atomicOnDemandFailed(error, "/tasks"));
|
|
6190
6233
|
chunks = taskFileEntryChunks(file.path, file.sessionId, current, item.seq, item.bytes, signal);
|
|
6191
6234
|
} else if ("kind" in item && session.readHistoryChunks) chunks = session.readHistoryChunks(item, signal ? { signal } : {});
|
|
6192
6235
|
else return void 0;
|
|
@@ -6288,13 +6331,13 @@ async function savedTranscriptView(session, taskId, read, cursor, file, signal)
|
|
|
6288
6331
|
});
|
|
6289
6332
|
const unsaved = taskTranscriptUnsavedAnswer(session);
|
|
6290
6333
|
if (!page.adjacent?.newer && unsaved?.type === "message") {
|
|
6291
|
-
const { taskAnswerMissing } = await import("../core/tasks/task-unsaved-answer.
|
|
6334
|
+
const { taskAnswerMissing } = await import("../core/tasks/task-unsaved-answer.code.js").catch((error) => __atomicOnDemandFailed(error, "/tasks"));
|
|
6292
6335
|
const records = async function* (span) {
|
|
6293
6336
|
for (let i = span.items.length - 1; i >= 0; i--) {
|
|
6294
6337
|
const row = span.items[i];
|
|
6295
6338
|
if ("entry" in row) yield row;
|
|
6296
6339
|
else if (file) {
|
|
6297
|
-
const { taskFileEntryChunks } = await import("../core/tasks/task-file-history.
|
|
6340
|
+
const { taskFileEntryChunks } = await import("../core/tasks/task-file-history.code.js").catch((error) => __atomicOnDemandFailed(error, "/tasks"));
|
|
6298
6341
|
yield { chunks: () => taskFileEntryChunks(file.path, file.sessionId, span.adjacent.current, row.seq, row.bytes, signal) };
|
|
6299
6342
|
} else if ("epoch" in row && session.readHistoryChunks) yield { chunks: () => session.readHistoryChunks(row, { signal }) };
|
|
6300
6343
|
}
|
|
@@ -12306,7 +12349,11 @@ function createLocalBashOperations(options) {
|
|
|
12306
12349
|
});
|
|
12307
12350
|
let deadline;
|
|
12308
12351
|
let timeoutHandle;
|
|
12309
|
-
const
|
|
12352
|
+
const waitAbort = new AbortController();
|
|
12353
|
+
const onAbort = () => {
|
|
12354
|
+
waitAbort.abort();
|
|
12355
|
+
shellProcess.stop();
|
|
12356
|
+
};
|
|
12310
12357
|
try {
|
|
12311
12358
|
if (timeout !== void 0 && timeout > 0) timeoutHandle = setTimeout(() => {
|
|
12312
12359
|
deadline = {
|
|
@@ -12314,6 +12361,7 @@ function createLocalBashOperations(options) {
|
|
|
12314
12361
|
elapsedMs: Math.round(performance.now() - startedAt),
|
|
12315
12362
|
shellExitedAfterMs
|
|
12316
12363
|
};
|
|
12364
|
+
waitAbort.abort();
|
|
12317
12365
|
shellProcess.stop();
|
|
12318
12366
|
}, timeout * 1e3);
|
|
12319
12367
|
child.stdout?.on("data", (data) => onData(data, "stdout"));
|
|
@@ -12322,7 +12370,17 @@ function createLocalBashOperations(options) {
|
|
|
12322
12370
|
if (signal.aborted) onAbort();
|
|
12323
12371
|
else signal.addEventListener("abort", onAbort, { once: true });
|
|
12324
12372
|
}
|
|
12325
|
-
|
|
12373
|
+
let exitCode;
|
|
12374
|
+
try {
|
|
12375
|
+
exitCode = await waitForChildProcess(child, { signal: waitAbort.signal });
|
|
12376
|
+
} catch (error) {
|
|
12377
|
+
if (signal?.aborted) throw new Error("aborted");
|
|
12378
|
+
if (deadline) throw new ShellTimeoutError({
|
|
12379
|
+
timeoutSeconds: deadline.timeoutSeconds,
|
|
12380
|
+
elapsedMs: deadline.elapsedMs
|
|
12381
|
+
});
|
|
12382
|
+
throw error;
|
|
12383
|
+
}
|
|
12326
12384
|
if (signal?.aborted) throw new Error("aborted");
|
|
12327
12385
|
const signalCode = child.signalCode;
|
|
12328
12386
|
const resolvedExitCode = exitCode ?? (signalCode ? 128 + (constants$1.signals[signalCode] ?? 0) : 1);
|
|
@@ -12593,6 +12651,7 @@ function createBashToolDefinition(cwd, options, presentation = BASH_SHELL_PRESEN
|
|
|
12593
12651
|
const timeoutSecs = err.message.split(":")[1];
|
|
12594
12652
|
throw new Error(appendStatus(text, `Command timed out after ${timeoutSecs} seconds`), { cause: err });
|
|
12595
12653
|
}
|
|
12654
|
+
if (isChildProcessExitStatusUnknownError(err)) throw new Error(appendStatus(text, err.message), { cause: err });
|
|
12596
12655
|
throw err;
|
|
12597
12656
|
}
|
|
12598
12657
|
const snapshot = await finishOutput();
|
|
@@ -15685,7 +15744,7 @@ function createHistoryRouter(sources) {
|
|
|
15685
15744
|
header
|
|
15686
15745
|
};
|
|
15687
15746
|
const { cwd } = projectScope(target);
|
|
15688
|
-
if (cwd === void 0 || await createSessionCwdMatcherAsync(cwd)(header.cwd)) return {
|
|
15747
|
+
if (cwd === void 0 || await budget.race(createSessionCwdMatcherAsync(cwd)(header.cwd))) return {
|
|
15689
15748
|
id,
|
|
15690
15749
|
header
|
|
15691
15750
|
};
|
|
@@ -17108,10 +17167,15 @@ function createLocalPowerShellOperations(binding) {
|
|
|
17108
17167
|
const { child } = shellProcess;
|
|
17109
17168
|
let timedOut = false;
|
|
17110
17169
|
let timeoutHandle;
|
|
17111
|
-
const
|
|
17170
|
+
const waitAbort = new AbortController();
|
|
17171
|
+
const onAbort = () => {
|
|
17172
|
+
waitAbort.abort();
|
|
17173
|
+
shellProcess.stop();
|
|
17174
|
+
};
|
|
17112
17175
|
try {
|
|
17113
17176
|
if (options.timeout !== void 0 && options.timeout > 0) timeoutHandle = setTimeout(() => {
|
|
17114
17177
|
timedOut = true;
|
|
17178
|
+
waitAbort.abort();
|
|
17115
17179
|
shellProcess.stop();
|
|
17116
17180
|
}, options.timeout * 1e3);
|
|
17117
17181
|
child.stdout?.on("data", (data) => options.onData(data, "stdout"));
|
|
@@ -17120,7 +17184,14 @@ function createLocalPowerShellOperations(binding) {
|
|
|
17120
17184
|
if (options.signal.aborted) onAbort();
|
|
17121
17185
|
else options.signal.addEventListener("abort", onAbort, { once: true });
|
|
17122
17186
|
}
|
|
17123
|
-
|
|
17187
|
+
let exitCode;
|
|
17188
|
+
try {
|
|
17189
|
+
exitCode = await waitForChildProcess(child, { signal: waitAbort.signal });
|
|
17190
|
+
} catch (error) {
|
|
17191
|
+
if (options.signal?.aborted) throw new Error("aborted");
|
|
17192
|
+
if (timedOut) throw new Error(`timeout:${options.timeout}`);
|
|
17193
|
+
throw error;
|
|
17194
|
+
}
|
|
17124
17195
|
if (options.signal?.aborted) throw new Error("aborted");
|
|
17125
17196
|
if (timedOut) throw new Error(`timeout:${options.timeout}`);
|
|
17126
17197
|
return { exitCode };
|
|
@@ -17778,7 +17849,7 @@ function createReadToolDefinition(cwd, options) {
|
|
|
17778
17849
|
const archive = parseArchiveSelector(effectivePath);
|
|
17779
17850
|
const sqlite = await sqliteSelectorForPath(effectivePath, executionCwd);
|
|
17780
17851
|
if (isReadableUrlPath(effectivePath)) {
|
|
17781
|
-
const { readUrlBranch } = await import("../core/tools/read-url.
|
|
17852
|
+
const { readUrlBranch } = await import("../core/tools/read-url.code.js").catch((error) => __atomicOnDemandFailed(error, "this feature"));
|
|
17782
17853
|
resolve(await readUrlBranch({
|
|
17783
17854
|
effectivePath,
|
|
17784
17855
|
rawOutput: rawOutput === true,
|
|
@@ -20304,7 +20375,7 @@ async function runThenDispose(work, dispose) {
|
|
|
20304
20375
|
}
|
|
20305
20376
|
async function runChildSession(options, prompt, signal) {
|
|
20306
20377
|
signal.throwIfAborted();
|
|
20307
|
-
const { createAgentSession } = await import("../core/sdk.
|
|
20378
|
+
const { createAgentSession } = await import("../core/sdk.code.js").catch((error) => __atomicOnDemandFailed(error, "this feature"));
|
|
20308
20379
|
const { session: child } = await createAgentSession(options);
|
|
20309
20380
|
let aborting = Promise.resolve();
|
|
20310
20381
|
let abortFailure;
|
|
@@ -20392,7 +20463,7 @@ function subscribeSession(session, source, handler, options = {}) {
|
|
|
20392
20463
|
task: async (taskOptions) => {
|
|
20393
20464
|
const resolve = session._childSessionOptions;
|
|
20394
20465
|
if (resolve === void 0) throw new SubscriptionChildUnavailableError(id, session.sessionId);
|
|
20395
|
-
const { SessionManager } = await import("../core/session-manager.
|
|
20466
|
+
const { SessionManager } = await import("../core/session-manager.code.js").catch((error) => __atomicOnDemandFailed(error, "session storage"));
|
|
20396
20467
|
const { prompt, ...childOptions } = taskOptions;
|
|
20397
20468
|
const inherited = resolve({
|
|
20398
20469
|
...childOptions,
|
|
@@ -24546,7 +24617,7 @@ async function resolveSessionStore(cwd, options = {}) {
|
|
|
24546
24617
|
await mkdir(agentDir, { recursive: true });
|
|
24547
24618
|
selection = await select();
|
|
24548
24619
|
}
|
|
24549
|
-
import("../core/storage/session/released-history-files.
|
|
24620
|
+
import("../core/storage/session/released-history-files.code.js").catch((error) => __atomicOnDemandFailed(error, "session storage")).then(({ sweepReleasedHistoryOnce }) => sweepReleasedHistoryOnce(agentDir), () => void 0);
|
|
24550
24621
|
try {
|
|
24551
24622
|
const opened = await provider.openSessionStore(selection, {
|
|
24552
24623
|
agentDir,
|
|
@@ -24616,7 +24687,6 @@ function withTimeout(operation, label, timeoutMs) {
|
|
|
24616
24687
|
let timer;
|
|
24617
24688
|
return Promise.race([operation, new Promise((_, reject) => {
|
|
24618
24689
|
timer = setTimeout(() => reject(/* @__PURE__ */ new Error(`${label} did not answer within ${timeoutMs / 1e3} s`)), timeoutMs);
|
|
24619
|
-
timer.unref?.();
|
|
24620
24690
|
})]).finally(() => clearTimeout(timer));
|
|
24621
24691
|
}
|
|
24622
24692
|
/**
|
|
@@ -24645,7 +24715,7 @@ async function probeSelection(selection, context, inspect, timeoutMs) {
|
|
|
24645
24715
|
status: "skipped",
|
|
24646
24716
|
detail: "file not created yet; Atomic creates it on first use"
|
|
24647
24717
|
} };
|
|
24648
|
-
const { openNodeSqliteDatabase } = await import("../core/storage/node-sqlite.js");
|
|
24718
|
+
const { openNodeSqliteDatabase } = await import("../core/storage/node-sqlite.js").catch((error) => __atomicOnDemandFailed(error, "session storage"));
|
|
24649
24719
|
return { connection: await roundTrip(() => openNodeSqliteDatabase(selection.path, { readOnly: true }), "SQLite file", inspect, timeoutMs) };
|
|
24650
24720
|
}
|
|
24651
24721
|
const module = selection.module;
|
|
@@ -24665,7 +24735,7 @@ async function probeSelection(selection, context, inspect, timeoutMs) {
|
|
|
24665
24735
|
}
|
|
24666
24736
|
};
|
|
24667
24737
|
}
|
|
24668
|
-
const { resolvePackageStorageAdapter } = await import("../core/package-manager-storage-adapters.
|
|
24738
|
+
const { resolvePackageStorageAdapter } = await import("../core/package-manager-storage-adapters.code.js").catch((error) => __atomicOnDemandFailed(error, "this feature"));
|
|
24669
24739
|
const resolved = await resolvePackageStorageAdapter(module, context.agentDir);
|
|
24670
24740
|
const loaded = {
|
|
24671
24741
|
module,
|
|
@@ -25390,7 +25460,7 @@ function describePrevious(select) {
|
|
|
25390
25460
|
}
|
|
25391
25461
|
async function restartBroker(agentDir, context, onProgress) {
|
|
25392
25462
|
try {
|
|
25393
|
-
return await (context.loadControl ? await context.loadControl() : await (await import("../core/intercom-broker-control.
|
|
25463
|
+
return await (context.loadControl ? await context.loadControl() : await (await import("../core/intercom-broker-control.code.js").catch((error) => __atomicOnDemandFailed(error, "intercom"))).loadIntercomBrokerControl()).restartIntercomBroker(agentDir, onProgress === void 0 ? {} : { onProgress });
|
|
25394
25464
|
} catch (error) {
|
|
25395
25465
|
return {
|
|
25396
25466
|
status: "failed",
|
|
@@ -25441,9 +25511,12 @@ async function assertTeamAdapterInstalled(agentDir, selection) {
|
|
|
25441
25511
|
const key = resolve$1(agentDir);
|
|
25442
25512
|
let check = installedAdapters.get(key);
|
|
25443
25513
|
if (check === void 0) {
|
|
25444
|
-
|
|
25445
|
-
|
|
25446
|
-
|
|
25514
|
+
const current = loadTeamAdapter(key, reason).catch((error) => {
|
|
25515
|
+
if (installedAdapters.get(key) === current) installedAdapters.delete(key);
|
|
25516
|
+
throw error;
|
|
25517
|
+
});
|
|
25518
|
+
installedAdapters.set(key, current);
|
|
25519
|
+
check = current;
|
|
25447
25520
|
}
|
|
25448
25521
|
return check;
|
|
25449
25522
|
}
|
|
@@ -26462,13 +26535,14 @@ var RpcClientApi = class {
|
|
|
26462
26535
|
* Send a prompt and return its disposition once accepted.
|
|
26463
26536
|
* If the disposition is "handled", no run started for this prompt, so don't wait for agent_settled.
|
|
26464
26537
|
*/
|
|
26465
|
-
async prompt(message, images, streamingBehavior, queuedMessageId) {
|
|
26538
|
+
async prompt(message, images, streamingBehavior, queuedMessageId, originSendId) {
|
|
26466
26539
|
const response = await this.request({
|
|
26467
26540
|
type: "prompt",
|
|
26468
26541
|
message,
|
|
26469
26542
|
images,
|
|
26470
26543
|
streamingBehavior,
|
|
26471
|
-
...queuedMessageId === void 0 ? {} : { queuedMessageId }
|
|
26544
|
+
...queuedMessageId === void 0 ? {} : { queuedMessageId },
|
|
26545
|
+
...originSendId === void 0 ? {} : { originSendId }
|
|
26472
26546
|
});
|
|
26473
26547
|
return this.data(response).disposition;
|
|
26474
26548
|
}
|
|
@@ -26678,6 +26752,13 @@ var RpcClientApi = class {
|
|
|
26678
26752
|
reason
|
|
26679
26753
|
}));
|
|
26680
26754
|
}
|
|
26755
|
+
/** Restore background subagents after an isolated-engine crash without replaying deliveries or prompting. */
|
|
26756
|
+
async startPendingRecoveryRestore(reason) {
|
|
26757
|
+
return this.data(await this.request({
|
|
26758
|
+
type: "start_pending_recovery_restore",
|
|
26759
|
+
reason
|
|
26760
|
+
}));
|
|
26761
|
+
}
|
|
26681
26762
|
async getSessionStats() {
|
|
26682
26763
|
return this.data(await this.request({ type: "get_session_stats" }));
|
|
26683
26764
|
}
|
|
@@ -26773,20 +26854,23 @@ var RpcClientApi = class {
|
|
|
26773
26854
|
// dist/modes/rpc/rpc-client-process.js
|
|
26774
26855
|
const guardianFiles = /* @__PURE__ */ new WeakMap();
|
|
26775
26856
|
const bootstrapHandles = /* @__PURE__ */ new WeakMap();
|
|
26776
|
-
async function prepareRpcClientBootstrap(interactiveEngineApiKey, trustDecisions, startedSessionId, startupExtensionCheck) {
|
|
26857
|
+
async function prepareRpcClientBootstrap(interactiveEngineApiKey, trustDecisions, startedSessionId, startupExtensionCheck, restarted) {
|
|
26777
26858
|
const guardianFile = join$1(tmpdir(), `atomic-engine-guardian-${process.pid}-${crypto.randomUUID()}`);
|
|
26859
|
+
const waitForPrewarm = waitForPrewarmedEngineReady;
|
|
26860
|
+
const [bootstrap] = await Promise.all([writeInteractiveEngineBootstrapAsync({
|
|
26861
|
+
hostPid: process.pid,
|
|
26862
|
+
guardFile: guardianFile,
|
|
26863
|
+
projectResourceWithdrawals: true,
|
|
26864
|
+
queuedDeliveries: true,
|
|
26865
|
+
...interactiveEngineApiKey ? { apiKey: interactiveEngineApiKey } : {},
|
|
26866
|
+
...trustDecisions ? { trustDecisions } : {},
|
|
26867
|
+
...startedSessionId !== void 0 ? { startedSessionId } : {},
|
|
26868
|
+
...startupExtensionCheck ? { startupExtensionCheck } : {},
|
|
26869
|
+
...restarted === true ? { restarted: true } : {}
|
|
26870
|
+
}), typeof waitForPrewarm === "function" ? waitForPrewarm() : Promise.resolve()]);
|
|
26778
26871
|
return {
|
|
26779
26872
|
guardianFile,
|
|
26780
|
-
bootstrap
|
|
26781
|
-
hostPid: process.pid,
|
|
26782
|
-
guardFile: guardianFile,
|
|
26783
|
-
projectResourceWithdrawals: true,
|
|
26784
|
-
queuedDeliveries: true,
|
|
26785
|
-
...interactiveEngineApiKey ? { apiKey: interactiveEngineApiKey } : {},
|
|
26786
|
-
...trustDecisions ? { trustDecisions } : {},
|
|
26787
|
-
...startedSessionId !== void 0 ? { startedSessionId } : {},
|
|
26788
|
-
...startupExtensionCheck ? { startupExtensionCheck } : {}
|
|
26789
|
-
})
|
|
26873
|
+
bootstrap
|
|
26790
26874
|
};
|
|
26791
26875
|
}
|
|
26792
26876
|
function spawnRpcClientProcess(options) {
|
|
@@ -26828,7 +26912,8 @@ function spawnRpcClientProcess(options) {
|
|
|
26828
26912
|
child.once("exit", () => void removeOwnedInteractiveEngineBootstrapAsync(bootstrap));
|
|
26829
26913
|
}
|
|
26830
26914
|
if (options.interactiveEngine && child.pid) {
|
|
26831
|
-
|
|
26915
|
+
if (trackDetachedChildProcess !== void 0) trackDetachedChildProcess(child);
|
|
26916
|
+
else trackDetachedChildPid(child.pid);
|
|
26832
26917
|
child.once("exit", () => untrackDetachedChildPid(child.pid));
|
|
26833
26918
|
}
|
|
26834
26919
|
return child;
|
|
@@ -26936,7 +27021,8 @@ async function terminateRpcClientProcess(child, processTree, graceful = false, s
|
|
|
26936
27021
|
stopFile.write();
|
|
26937
27022
|
if (await settlesWithin(exited, ENGINE_KILL_STEP_MS)) return;
|
|
26938
27023
|
}
|
|
26939
|
-
if (
|
|
27024
|
+
if (child.exitCode !== null || child.signalCode !== null) return;
|
|
27025
|
+
if (processTree && child.pid) killChildProcessTree(child, false);
|
|
26940
27026
|
else child.kill("SIGKILL");
|
|
26941
27027
|
let reportMs = KILLED_CHILD_EXIT_REPORT_MS;
|
|
26942
27028
|
if (inputClosed && !await settlesWithin(exited, ENGINE_KILL_STEP_MS)) {
|
|
@@ -27316,7 +27402,7 @@ var RpcClient = class extends RpcClientApi {
|
|
|
27316
27402
|
};
|
|
27317
27403
|
let preparedBootstrap;
|
|
27318
27404
|
try {
|
|
27319
|
-
preparedBootstrap = this.options.interactiveEngine ? await prepareRpcClientBootstrap(this.options.interactiveEngine.apiKey, this.options.interactiveEngine.trustDecisions, this.generation === 0 ? this.options.interactiveEngine.startedSessionId : void 0, this.options.interactiveEngine.startupExtensionCheck) : void 0;
|
|
27405
|
+
preparedBootstrap = this.options.interactiveEngine ? await prepareRpcClientBootstrap(this.options.interactiveEngine.apiKey, this.options.interactiveEngine.trustDecisions, this.generation === 0 ? this.options.interactiveEngine.startedSessionId : void 0, this.options.interactiveEngine.startupExtensionCheck, this.generation > 0) : void 0;
|
|
27320
27406
|
if (this.stopPromise) await this.stopPromise.catch(() => {});
|
|
27321
27407
|
if (this.restartRevision !== startRevision) {
|
|
27322
27408
|
await removeOwnedInteractiveEngineBootstrapAsync(preparedBootstrap?.bootstrap);
|
|
@@ -27482,7 +27568,7 @@ var RpcClient = class extends RpcClientApi {
|
|
|
27482
27568
|
} finally {
|
|
27483
27569
|
if (this.stoppingEngine === child) this.stoppingEngine = void 0;
|
|
27484
27570
|
}
|
|
27485
|
-
await this.beginTerminalDrain(endedGeneration, stopError);
|
|
27571
|
+
await this.beginTerminalDrain(endedGeneration, stopError, true);
|
|
27486
27572
|
this.stopReadingStdout?.();
|
|
27487
27573
|
this.stopReadingStdout = null;
|
|
27488
27574
|
this.generation += 1;
|
|
@@ -27772,14 +27858,14 @@ var RpcClient = class extends RpcClientApi {
|
|
|
27772
27858
|
this.activeActivityIds.clear();
|
|
27773
27859
|
this.notifyActivity(false);
|
|
27774
27860
|
}
|
|
27775
|
-
this.beginTerminalDrain(generation, error);
|
|
27861
|
+
this.beginTerminalDrain(generation, error, this.pendingRequests.size > 0);
|
|
27776
27862
|
this.publishGenerationEnded(generation, error, kind, false);
|
|
27777
27863
|
}
|
|
27778
27864
|
/** Hold this generation's requests until its stdout drains (RpcTerminalDrain). */
|
|
27779
|
-
beginTerminalDrain(generation, error) {
|
|
27865
|
+
beginTerminalDrain(generation, error, keepAlive) {
|
|
27780
27866
|
return this.terminalDrain.begin(generation, this.stdoutDrained, error, (settled) => {
|
|
27781
27867
|
if (generation === this.generation) this.pendingRequests.rejectAll(settled);
|
|
27782
|
-
});
|
|
27868
|
+
}, keepAlive);
|
|
27783
27869
|
}
|
|
27784
27870
|
publishGenerationEnded(generation, error, kind, expected) {
|
|
27785
27871
|
if (generation <= this.lastEndedGeneration) return;
|
|
@@ -27992,6 +28078,16 @@ async function prewarmHostDefaultModelApi(hostArgs, agentDir = getAgentDir(), cw
|
|
|
27992
28078
|
});
|
|
27993
28079
|
} catch {}
|
|
27994
28080
|
}
|
|
28081
|
+
/**
|
|
28082
|
+
* Load the RPC mode module and native addon while a prewarmed engine waits for host adoption so they are already
|
|
28083
|
+
* linked when `main()` runs. Best-effort; never rejects.
|
|
28084
|
+
*/
|
|
28085
|
+
async function prewarmInteractiveEngineRpcMode() {
|
|
28086
|
+
try {
|
|
28087
|
+
nativeModuleProblem();
|
|
28088
|
+
await import("../modes/rpc/rpc-mode.js").catch((error) => __atomicOnDemandFailed(error, "this feature"));
|
|
28089
|
+
} catch {}
|
|
28090
|
+
}
|
|
27995
28091
|
// dist/core/tools/artifacts.js
|
|
27996
28092
|
/**
|
|
27997
28093
|
* Session artifact storage, mirrored from oh-my-pi's
|
|
@@ -28068,6 +28164,51 @@ function getArtifactManager(artifactsDir) {
|
|
|
28068
28164
|
}
|
|
28069
28165
|
return manager;
|
|
28070
28166
|
}
|
|
28071
|
-
export { ACTIONS_GITHUB_BASE_URL_ENV, BASH_SHELL_PRESENTATION, BLUEPRINT_FULL_BUILD_MAX_AGE_MS, BLUEPRINT_STEP_TIMEOUT_MS, DEGRADED_RESTORE_RETENTION_DAYS, ENGINE_SESSION_STORAGE_FLAG, ENGINE_SHUTDOWN_GRACE_MS, EVENT_REPORT_MESSAGE_TYPE, EVENT_SUBSCRIPTION_CHILD_ENTRY_TYPE, EVENT_SUBSCRIPTION_ENTRY_TYPE, EVENT_SUBSCRIPTION_PROCESSED_ENTRY_TYPE, FooterDataProvider, RpcClient, SETUP_COMMAND_ALIAS, STORAGE_ADAPTER_LOAD_TIMEOUT_MS, STORAGE_PROBE_TIMEOUT_MS, SUBSCRIPTION_REPORT_TOOL_NAME, SessionWorktreeSnapshotRecorder, SettingsManager, TEAM_CONNECTION_TIMEOUT_MS, TEAM_PROFILE_SOURCE, adoptInlineSnapshotBlobs, agentPanelExtensionItems, agentPanelItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, agentSessionSummaryMethods, agentSessionTreeMethods, answerAgentPanelItem, appendBoundedStderr, applyReadLineSelection, applyToolModifiers, assertTeamAdapterInstalled, bashToolSystemPromptContribution, bindTaskTranscriptFragments, blueprintNotices, blueprintRepository, boundExtensionRuntimes, buildInteractiveEngineArgs, builtinToolBlockPresentation, canIsolateSessionStore, cancelSessionSubscriptions, checkSharedStorageAdapter, checkoutsNeedingRebuild, collectEntriesForBranchSummary, collectStorageStatus, compareWorktreeSnapshot, composeInternalRouters, continueSessionWhereItWorked, copyPanelItemStableKey, createBashTool, createBashToolDefinition, createCodingTools, createEditTool, createEditToolDefinition, createExtensionAPI, createExtensionRuntime, createFindTool, createFindToolDefinition, createHistoryRouter, createLoadedToolDefinition, createLocalBashOperations, createLocalPowerShellOperations, createLsTool, createLsToolDefinition, createPowerShellTool, createPowerShellToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createSearchTool, createSearchToolDefinition, createSubscriberReportTool, createToolDefinitionsFor, createWriteTool, createWriteToolDefinition, currentWorktreeRestoreNotices, currentWorktreeRootMappings, currentWorktreeSnapshots, decodeReadableUrl, defaultToolSelectionFor, degradedRestorePin, deleteSessionWithSnapshotRefs, describeBlueprints, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeStorageError$1 as describeStorageError, describeStorageSelection, describeWorktreeRestoreStatus, describeWorktreeSnapshot, discardDegradedRestore, dismissedAgentPanelItems, drainExtensionAPIWork, editToolSystemPromptContribution, effectiveSharedSelection, extractDocumentMarkdown, findToolSystemPromptContribution, findUnansweredToolCall, formatDegradedRestoreNotice, formatEventReport, formatToolBlockElapsed, formatUnrestoredNotice, formatWorktreeRestoreNotice, formatWorktreeRestoreWarning, generateBranchSummary, generateDiffString, generateUnifiedPatch, getArtifactManager, getEngineSessionStorage, hasSubagentCaptures, hostStoragePackagesRegistered, inheritChildSessionOptionsWithDefaults, inheritedRemotes, inlineSnapshotBlobs, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isDocumentPath, isInside$1 as isInside, isInterruptedPanelTask, isPlainRuntimeMetadataCommand, joinSharedDatabase, joinTeam, joinTeamWith, latestSessionSnapshot, latestSessionSnapshotAsync, launchedTaskViewSource, lazyTaskPanelItem, leaveTeam, leaveTeamWith, liveTaskRowOrigin, loadProjectContextFiles, loadProjectContextFilesAsync, lsToolSystemPromptContribution, mapPathForCwd, mapPathForCwdAsync, mapRestoredPath, mapRestoredPathAsync, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, needsRebuild, notifyAgentPanelChanged, notifyAgentPanelSourceHubRebound, openAgentPanelItem, openSessionInWorktree, ownerTaskViewSource, panelItemStableKey, parentHistoryNotices, parseActionReference, pathExists$1 as pathExists, plainNoticeBlock, prepareBranchEntries, prepareInitialMessage, prepareSessionResume, prewarmHostDefaultModelApi, projectSettingsChooseSessionStorage, projectTrust, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, readToolSystemPromptContribution, recordBlueprintContext, recordRestoredWorktreeContext, registerHostStoragePackages, registerHostStoragePackagesAsync, releaseSessionWorktrees, removeSavedModelRoutingSettings, removeSavedModelRoutingSettingsAsync, resolveAppMode, resolveCliPaths, resolveExcludedToolsForAppMode, resolveExistingPromptSourcePath, resolveExistingPromptSourcePaths, resolvePackageStorageAdapter, resolvePromptInput, resolveSessionStore, resumeSessionWorktree, resumeStoreDir, retainTaskWindowReader, retireExtensionAPI, runAction, runBlueprintBuild, runExtensionAPICleanup, runMigrations, runMigrationsAsync, runResourceRegistrationBatch, sampleAgentPanelSources, savedBoundaryCursor, savedProjectTrust, savedProjectTrustAsync, sealExtensionAPI, searchToolSystemPromptContribution, seedEventPrompt, selectIntercomStorage, selectSessionSetting, selectSessionStorage, selectSessionStorageWithSettings, selectSessionStorageWithSettingsAsync, selectSharedStorage, selectTeamProfile, serializeConversation, sessionManagerContinuesIn, sessionManagerRunsInRecordedCheckout, sessionResumeOptions, sessionSnapshotBlobs, sessionStorageSettingsDiffer, setUpResumedBlueprints, settingsFileTarget, settingsFileTargetAsync, shellCommandPrefixFor, shortTaskTitle, shouldStartRpcCatalogRefresh, showDeprecationWarnings, snapshotBlobInliner, sourceError, stopAgentPanelItem, storageFingerprint, subscribeAgentPanel, subscribeAgentPanelExtensions, subscribeSession, takeEngineSessionStorageArg, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFile, taskTranscriptFragments, taskTranscriptUnsavedAnswer, toPrintOutputMode, toolsWithReport, withTaskTranscriptArchive, withWorktreeRestoreNotices, withWorktreeRootMappings, worktreeNeedsRestore, worktreeRestoreNotices, writeSettingsFile, writeSettingsFileAsync, writeToolSystemPromptContribution };
|
|
28167
|
+
export { ACTIONS_GITHUB_BASE_URL_ENV, BASH_SHELL_PRESENTATION, BLUEPRINT_FULL_BUILD_MAX_AGE_MS, BLUEPRINT_STEP_TIMEOUT_MS, DEGRADED_RESTORE_RETENTION_DAYS, ENGINE_SESSION_STORAGE_FLAG, ENGINE_SHUTDOWN_GRACE_MS, EVENT_REPORT_MESSAGE_TYPE, EVENT_SUBSCRIPTION_CHILD_ENTRY_TYPE, EVENT_SUBSCRIPTION_ENTRY_TYPE, EVENT_SUBSCRIPTION_PROCESSED_ENTRY_TYPE, FooterDataProvider, RpcClient, SETUP_COMMAND_ALIAS, STORAGE_ADAPTER_LOAD_TIMEOUT_MS, STORAGE_PROBE_TIMEOUT_MS, SUBSCRIPTION_REPORT_TOOL_NAME, SessionWorktreeSnapshotRecorder, SettingsManager, TEAM_CONNECTION_TIMEOUT_MS, TEAM_PROFILE_SOURCE, adoptInlineSnapshotBlobs, agentPanelExtensionItems, agentPanelItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, agentSessionSummaryMethods, agentSessionTreeMethods, answerAgentPanelItem, appendBoundedStderr, applyReadLineSelection, applyToolModifiers, assertTeamAdapterInstalled, bashToolSystemPromptContribution, bindTaskTranscriptFragments, blueprintNotices, blueprintRepository, boundExtensionRuntimes, buildInteractiveEngineArgs, builtinToolBlockPresentation, canIsolateSessionStore, cancelSessionSubscriptions, checkSharedStorageAdapter, checkoutsNeedingRebuild, collectEntriesForBranchSummary, collectStorageStatus, compareWorktreeSnapshot, composeInternalRouters, continueSessionWhereItWorked, copyPanelItemStableKey, createBashTool, createBashToolDefinition, createCodingTools, createEditTool, createEditToolDefinition, createExtensionAPI, createExtensionRuntime, createFindTool, createFindToolDefinition, createHistoryRouter, createLoadedToolDefinition, createLocalBashOperations, createLocalPowerShellOperations, createLsTool, createLsToolDefinition, createPowerShellTool, createPowerShellToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createSearchTool, createSearchToolDefinition, createSubscriberReportTool, createToolDefinitionsFor, createWriteTool, createWriteToolDefinition, currentWorktreeRestoreNotices, currentWorktreeRootMappings, currentWorktreeSnapshots, decodeReadableUrl, defaultToolSelectionFor, degradedRestorePin, deleteSessionWithSnapshotRefs, describeBlueprints, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeStorageError$1 as describeStorageError, describeStorageSelection, describeWorktreeRestoreStatus, describeWorktreeSnapshot, discardDegradedRestore, dismissedAgentPanelItems, drainExtensionAPIWork, editToolSystemPromptContribution, effectiveSharedSelection, extractDocumentMarkdown, findToolSystemPromptContribution, findUnansweredToolCall, formatDegradedRestoreNotice, formatEventReport, formatToolBlockElapsed, formatUnrestoredNotice, formatWorktreeRestoreNotice, formatWorktreeRestoreWarning, generateBranchSummary, generateDiffString, generateUnifiedPatch, getArtifactManager, getEngineSessionStorage, hasSubagentCaptures, hostStoragePackagesRegistered, inheritChildSessionOptionsWithDefaults, inheritedRemotes, inlineSnapshotBlobs, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isDocumentPath, isInside$1 as isInside, isInterruptedPanelTask, isPlainRuntimeMetadataCommand, joinSharedDatabase, joinTeam, joinTeamWith, latestSessionSnapshot, latestSessionSnapshotAsync, launchedTaskViewSource, lazyTaskPanelItem, leaveTeam, leaveTeamWith, liveTaskRowOrigin, loadProjectContextFiles, loadProjectContextFilesAsync, lsToolSystemPromptContribution, mapPathForCwd, mapPathForCwdAsync, mapRestoredPath, mapRestoredPathAsync, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, needsRebuild, notifyAgentPanelChanged, notifyAgentPanelSourceHubRebound, onOwnerTaskAction, openAgentPanelItem, openSessionInWorktree, ownerTaskViewSource, panelItemStableKey, parentHistoryNotices, parseActionReference, pathExists$1 as pathExists, plainNoticeBlock, prepareBranchEntries, prepareInitialMessage, prepareSessionResume, prewarmHostDefaultModelApi, prewarmInteractiveEngineRpcMode, projectSettingsChooseSessionStorage, projectTrust, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, readToolSystemPromptContribution, recordBlueprintContext, recordRestoredWorktreeContext, registerHostStoragePackages, registerHostStoragePackagesAsync, releaseSessionWorktrees, removeSavedModelRoutingSettings, removeSavedModelRoutingSettingsAsync, resolveAppMode, resolveCliPaths, resolveExcludedToolsForAppMode, resolveExistingPromptSourcePath, resolveExistingPromptSourcePaths, resolvePackageStorageAdapter, resolvePromptInput, resolveSessionStore, resumeSessionWorktree, resumeStoreDir, retainTaskWindowReader, retireExtensionAPI, runAction, runBlueprintBuild, runExtensionAPICleanup, runMigrations, runMigrationsAsync, runResourceRegistrationBatch, sampleAgentPanelSources, savedBoundaryCursor, savedProjectTrust, savedProjectTrustAsync, sealExtensionAPI, searchToolSystemPromptContribution, seedEventPrompt, selectIntercomStorage, selectSessionSetting, selectSessionStorage, selectSessionStorageWithSettings, selectSessionStorageWithSettingsAsync, selectSharedStorage, selectTeamProfile, serializeConversation, sessionManagerContinuesIn, sessionManagerRunsInRecordedCheckout, sessionResumeOptions, sessionSnapshotBlobs, sessionStorageSettingsDiffer, setUpResumedBlueprints, settingsFileTarget, settingsFileTargetAsync, shellCommandPrefixFor, shortTaskTitle, shouldStartRpcCatalogRefresh, showDeprecationWarnings, snapshotBlobInliner, sourceError, stopAgentPanelItem, storageFingerprint, subscribeAgentPanel, subscribeAgentPanelExtensions, subscribeSession, takeEngineSessionStorageArg, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFile, taskTranscriptFragments, taskTranscriptUnsavedAnswer, toPrintOutputMode, toolsWithReport, withTaskTranscriptArchive, withWorktreeRestoreNotices, withWorktreeRootMappings, worktreeNeedsRestore, worktreeRestoreNotices, writeSettingsFile, writeSettingsFileAsync, writeToolSystemPromptContribution };
|
|
28072
28168
|
|
|
28073
|
-
//# sourceMappingURL=startup-8-1-
|
|
28169
|
+
//# sourceMappingURL=startup-8-1-SJW2GMAM.js.map
|
|
28170
|
+
// __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
|
|
28171
|
+
// demand that fails in a process an in-place update left running says to restart.
|
|
28172
|
+
function __atomicOnDemandFailed(error, feature) {
|
|
28173
|
+
return (async () => {
|
|
28174
|
+
const root = new URL("../", import.meta.url);
|
|
28175
|
+
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
28176
|
+
const key = `${root.href}#0.10.5`;
|
|
28177
|
+
let release = releases.get(key);
|
|
28178
|
+
if (release === undefined) {
|
|
28179
|
+
const current = (async () => {
|
|
28180
|
+
for (const path of ["modes/interactive/interactive-mode-deps.js","_shared/chunk-CDOYTDYM.js","_shared/p0-cli-GUFK7TPN.js"]) {
|
|
28181
|
+
try {
|
|
28182
|
+
const held = await import(new URL(path, root).href);
|
|
28183
|
+
if (typeof held.VERSION === "string") return { version: held.VERSION, name: held.APP_NAME };
|
|
28184
|
+
} catch {
|
|
28185
|
+
// Not a file this process can load: the next.
|
|
28186
|
+
}
|
|
28187
|
+
}
|
|
28188
|
+
return undefined;
|
|
28189
|
+
})().then((found) => {
|
|
28190
|
+
if (found === undefined && releases.get(key) === current) releases.delete(key);
|
|
28191
|
+
return found;
|
|
28192
|
+
});
|
|
28193
|
+
releases.set(key, current);
|
|
28194
|
+
release = current;
|
|
28195
|
+
}
|
|
28196
|
+
const running = await release;
|
|
28197
|
+
let installed;
|
|
28198
|
+
try {
|
|
28199
|
+
const { readFile } = process.getBuiltinModule("node:fs/promises");
|
|
28200
|
+
installed = JSON.parse(await readFile(new URL("../package.json", root), "utf8")).version;
|
|
28201
|
+
} catch {
|
|
28202
|
+
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
28203
|
+
}
|
|
28204
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.5" ? installed : running !== undefined && running.version !== "0.10.5" ? "0.10.5" : undefined;
|
|
28205
|
+
if (updatedTo === undefined) throw error;
|
|
28206
|
+
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
28207
|
+
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
28208
|
+
cause: error,
|
|
28209
|
+
});
|
|
28210
|
+
restart.name = "UpdatedInstallError";
|
|
28211
|
+
restart[Symbol.for("atomic.on-demand-restart.v1")] = { application, updatedTo, feature };
|
|
28212
|
+
throw restart;
|
|
28213
|
+
})();
|
|
28214
|
+
}
|