@bastani/atomic 0.10.4-alpha.2 → 0.10.5-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +238 -0
- package/dist/_shared/chunk-CDOYTDYM.js +4 -0
- package/dist/_shared/chunk-CDOYTDYM.js.map +1 -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} +528 -321
- 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 +59 -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 +46 -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/CHANGELOG.md +12 -0
- 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 +36 -0
- package/dist/cli/auth-cli.impl.js.map +1 -0
- package/dist/cli/auth-cli.js +30 -1096
- package/dist/cli/auth-cli.js.map +1 -1
- 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 +36 -0
- package/dist/cli/blueprint-command.impl.js.map +1 -0
- package/dist/cli/blueprint-command.js +30 -900
- package/dist/cli/blueprint-command.js.map +1 -1
- 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 +36 -0
- package/dist/cli/intercom-command.impl.js.map +1 -0
- package/dist/cli/intercom-command.js +33 -105
- package/dist/cli/intercom-command.js.map +1 -1
- 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 +36 -0
- package/dist/cli/list-models.impl.js.map +1 -0
- package/dist/cli/list-models.js +33 -57
- package/dist/cli/list-models.js.map +1 -1
- 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 +36 -0
- package/dist/cli/session-picker.impl.js.map +1 -0
- package/dist/cli/session-picker.js +33 -52
- package/dist/cli/session-picker.js.map +1 -1
- 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 +36 -0
- package/dist/cli/startup-ui.impl.js.map +1 -0
- package/dist/cli/startup-ui.js +35 -4
- 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 +36 -0
- package/dist/cli/storage-command.impl.js.map +1 -0
- package/dist/cli/storage-command.js +35 -2
- 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 +36 -0
- package/dist/cli/storage-search-session.impl.js.map +1 -0
- package/dist/cli/storage-search-session.js +33 -186
- package/dist/cli/storage-search-session.js.map +1 -1
- 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 +36 -0
- package/dist/cli/team-command.impl.js.map +1 -0
- package/dist/cli/team-command.js +32 -213
- package/dist/cli/team-command.js.map +1 -1
- 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 +36 -0
- package/dist/core/debug.impl.js.map +1 -0
- package/dist/core/debug.js +35 -2
- 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 +36 -0
- package/dist/core/export-html/card-projection.impl.js.map +1 -0
- package/dist/core/export-html/card-projection.js +34 -255
- package/dist/core/export-html/card-projection.js.map +1 -1
- 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 +36 -0
- package/dist/core/export-html/index.impl.js.map +1 -0
- package/dist/core/export-html/index.js +30 -604
- package/dist/core/export-html/index.js.map +1 -1
- 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 +36 -0
- package/dist/core/export-html/json-spans.impl.js.map +1 -0
- package/dist/core/export-html/json-spans.js +35 -2
- 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 +36 -0
- package/dist/core/export-html/oversized-render-inputs.impl.js.map +1 -0
- package/dist/core/export-html/oversized-render-inputs.js +31 -120
- package/dist/core/export-html/oversized-render-inputs.js.map +1 -1
- 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 +36 -0
- package/dist/core/export-html/tool-renderer.impl.js.map +1 -0
- package/dist/core/export-html/tool-renderer.js +33 -347
- package/dist/core/export-html/tool-renderer.js.map +1 -1
- 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 +36 -0
- package/dist/core/extensions/jiti-loader.impl.js.map +1 -0
- package/dist/core/extensions/jiti-loader.js +35 -2
- 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 +36 -0
- package/dist/core/extensions/jiti-static-loader.impl.js.map +1 -0
- package/dist/core/extensions/jiti-static-loader.js +35 -2
- 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 +36 -0
- package/dist/core/extensions/loader-host-modules.impl.js.map +1 -0
- package/dist/core/extensions/loader-host-modules.js +35 -2
- 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 +36 -0
- package/dist/core/intercom-broker-control-host.impl.js.map +1 -0
- package/dist/core/intercom-broker-control-host.js +35 -4
- 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 +36 -0
- package/dist/core/intercom-broker-control.impl.js.map +1 -0
- package/dist/core/intercom-broker-control.js +35 -17
- package/dist/core/intercom-broker-control.js.map +1 -1
- 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 +36 -0
- package/dist/core/package-manager-storage-adapters.impl.js.map +1 -0
- package/dist/core/package-manager-storage-adapters.js +35 -2
- 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 +36 -0
- package/dist/core/sdk.impl.js.map +1 -0
- package/dist/core/sdk.js +35 -8
- 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 +36 -0
- package/dist/core/session-manager-list.impl.js.map +1 -0
- package/dist/core/session-manager-list.js +35 -2
- 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 +36 -0
- package/dist/core/session-manager.impl.js.map +1 -0
- package/dist/core/session-manager.js +35 -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 +36 -0
- package/dist/core/session-storage.impl.js.map +1 -0
- package/dist/core/session-storage.js +35 -2
- 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 +36 -0
- package/dist/core/storage/offline-snapshot-file.impl.js.map +1 -0
- package/dist/core/storage/offline-snapshot-file.js +33 -34
- package/dist/core/storage/offline-snapshot-file.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/branch-fork-source.impl.js.map +1 -0
- package/dist/core/storage/session/branch-fork-source.js +32 -97
- package/dist/core/storage/session/branch-fork-source.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/card-view.impl.js.map +1 -0
- package/dist/core/storage/session/card-view.js +34 -58
- package/dist/core/storage/session/card-view.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/child-reader.impl.js.map +1 -0
- package/dist/core/storage/session/child-reader.js +33 -91
- package/dist/core/storage/session/child-reader.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/chunked-resume-projection.impl.js.map +1 -0
- package/dist/core/storage/session/chunked-resume-projection.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/expanded-child-details.impl.js.map +1 -0
- package/dist/core/storage/session/expanded-child-details.js +31 -634
- package/dist/core/storage/session/expanded-child-details.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/fork-row-bytes.impl.js.map +1 -0
- package/dist/core/storage/session/fork-row-bytes.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/fork-row-index.impl.js.map +1 -0
- package/dist/core/storage/session/fork-row-index.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/fork-staging.impl.js.map +1 -0
- package/dist/core/storage/session/fork-staging.js +30 -574
- package/dist/core/storage/session/fork-staging.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/fork-window.impl.js.map +1 -0
- package/dist/core/storage/session/fork-window.js +30 -471
- package/dist/core/storage/session/fork-window.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/history-pages.impl.js.map +1 -0
- package/dist/core/storage/session/history-pages.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/jsonl-entry-projection.impl.js.map +1 -0
- package/dist/core/storage/session/jsonl-entry-projection.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/jsonl-session-store.impl.js.map +1 -0
- package/dist/core/storage/session/jsonl-session-store.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/memory-session-store.impl.js.map +1 -0
- package/dist/core/storage/session/memory-session-store.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/pinned-branch-resume.impl.js.map +1 -0
- package/dist/core/storage/session/pinned-branch-resume.js +33 -69
- package/dist/core/storage/session/pinned-branch-resume.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/released-history-files.impl.js.map +1 -0
- package/dist/core/storage/session/released-history-files.js +32 -461
- package/dist/core/storage/session/released-history-files.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/resident-fork-rows.impl.js.map +1 -0
- package/dist/core/storage/session/resident-fork-rows.js +32 -53
- package/dist/core/storage/session/resident-fork-rows.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/session-resume.impl.js.map +1 -0
- package/dist/core/storage/session/session-resume.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/snapshot-cut.impl.js.map +1 -0
- package/dist/core/storage/session/snapshot-cut.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/snapshot-history.impl.js.map +1 -0
- package/dist/core/storage/session/snapshot-history.js +34 -60
- package/dist/core/storage/session/snapshot-history.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/session/sql-session-store.impl.js.map +1 -0
- package/dist/core/storage/session/sql-session-store.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/tree-outline.impl.js.map +1 -0
- package/dist/core/storage/session/tree-outline.js +35 -2
- 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 +36 -0
- package/dist/core/storage/session/tree-presentation.impl.js.map +1 -0
- package/dist/core/storage/session/tree-presentation.js +31 -337
- package/dist/core/storage/session/tree-presentation.js.map +1 -1
- 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 +36 -0
- package/dist/core/storage/storage-status.impl.js.map +1 -0
- package/dist/core/storage/storage-status.js +35 -2
- 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 +36 -0
- package/dist/core/storage/team.impl.js.map +1 -0
- package/dist/core/storage/team.js +35 -2
- 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 +36 -0
- package/dist/core/structured-output/index.impl.js.map +1 -0
- package/dist/core/structured-output/index.js +35 -2
- 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 +36 -0
- package/dist/core/tasks/task-completion-entry.impl.js.map +1 -0
- package/dist/core/tasks/task-completion-entry.js +33 -251
- package/dist/core/tasks/task-completion-entry.js.map +1 -1
- 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 +36 -0
- package/dist/core/tasks/task-file-history.impl.js.map +1 -0
- package/dist/core/tasks/task-file-history.js +32 -375
- package/dist/core/tasks/task-file-history.js.map +1 -1
- package/dist/core/tasks/task-reference-archive.code.js +514 -0
- package/dist/core/tasks/task-reference-archive.code.js.map +1 -0
- package/dist/core/tasks/task-reference-archive.js +34 -467
- package/dist/core/tasks/task-reference-archive.js.map +1 -1
- package/dist/core/tasks/task-reference-identity.code.js +164 -0
- package/dist/core/tasks/task-reference-identity.code.js.map +1 -0
- package/dist/core/tasks/task-reference-identity.js +32 -160
- package/dist/core/tasks/task-reference-identity.js.map +1 -1
- 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 +36 -0
- package/dist/core/tasks/task-reference-stream.impl.js.map +1 -0
- package/dist/core/tasks/task-reference-stream.js +35 -2
- 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 +36 -0
- package/dist/core/tasks/task-unsaved-answer.impl.js.map +1 -0
- package/dist/core/tasks/task-unsaved-answer.js +35 -2
- 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 +36 -0
- package/dist/core/tasks/task-view-source.impl.js.map +1 -0
- package/dist/core/tasks/task-view-source.js +35 -2
- 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 +36 -0
- package/dist/core/tools/read-url.impl.js.map +1 -0
- package/dist/core/tools/read-url.js +30 -1524
- package/dist/core/tools/read-url.js.map +1 -1
- 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 +36 -0
- package/dist/core/worktree-snapshot/errors.impl.js.map +1 -0
- package/dist/core/worktree-snapshot/errors.js +35 -5
- 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 +36 -0
- package/dist/core/worktree-snapshot/session-index-reset.impl.js.map +1 -0
- package/dist/core/worktree-snapshot/session-index-reset.js +34 -134
- package/dist/core/worktree-snapshot/session-index-reset.js.map +1 -1
- 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 +36 -0
- package/dist/extensions/codemode/execute.impl.js.map +1 -0
- package/dist/extensions/codemode/execute.js +30 -612
- package/dist/extensions/codemode/execute.js.map +1 -1
- 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 +36 -0
- package/dist/extensions/codemode/renderer.impl.js.map +1 -0
- package/dist/extensions/codemode/renderer.js +33 -107
- package/dist/extensions/codemode/renderer.js.map +1 -1
- 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 +36 -0
- package/dist/extensions/mcp/cli.impl.js.map +1 -0
- package/dist/extensions/mcp/cli.js +32 -561
- package/dist/extensions/mcp/cli.js.map +1 -1
- 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 -0
- package/dist/extensions/mcp/cli.lazy.impl.js.map +1 -0
- package/dist/extensions/mcp/cli.lazy.js +36 -7
- package/dist/extensions/mcp/cli.lazy.js.map +1 -1
- 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 +36 -0
- package/dist/extensions/mcp/runtime.impl.js.map +1 -0
- package/dist/extensions/mcp/runtime.js +35 -4
- 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 +36 -0
- package/dist/main-first-time-setup.impl.js.map +1 -0
- package/dist/main-first-time-setup.js +35 -11
- package/dist/main-first-time-setup.js.map +1 -1
- 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 +36 -0
- package/dist/modes/interactive/components/stored-tree-view.impl.js.map +1 -0
- package/dist/modes/interactive/components/stored-tree-view.js +33 -290
- package/dist/modes/interactive/components/stored-tree-view.js.map +1 -1
- 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 +36 -0
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector-archive.js +34 -189
- package/dist/modes/interactive/components/user-message-selector-archive.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-base.d.ts +6 -0
- package/dist/modes/interactive/interactive-mode-deps.js +4 -0
- package/dist/modes/interactive/interactive-mode-deps.js.map +1 -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 -0
- package/dist/package-manager-cli.impl.js.map +1 -0
- package/dist/package-manager-cli.js +36 -1067
- package/dist/package-manager-cli.js.map +1 -1
- 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 +36 -0
- package/dist/utils/startup-database-spare.impl.js.map +1 -0
- package/dist/utils/startup-database-spare.js +33 -105
- package/dist/utils/startup-database-spare.js.map +1 -1
- 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 +36 -0
- package/dist/utils/tools-manager.impl.js.map +1 -0
- package/dist/utils/tools-manager.js +35 -2
- 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 +2 -2
- 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,293 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
failures = /* @__PURE__ */ new Map();
|
|
20
|
-
reported = /* @__PURE__ */ new Set();
|
|
21
|
-
labelReads = /* @__PURE__ */ new Set();
|
|
22
|
-
visible = "";
|
|
23
|
-
query = "";
|
|
24
|
-
searchedLabels = 0;
|
|
25
|
-
labelVersion = 0;
|
|
26
|
-
result;
|
|
27
|
-
searchFailure;
|
|
28
|
-
searching;
|
|
29
|
-
archive;
|
|
30
|
-
onUpdate;
|
|
31
|
-
onError;
|
|
32
|
-
constructor(archive) {
|
|
33
|
-
this.archive = archive;
|
|
34
|
-
}
|
|
35
|
-
static async open(manager) {
|
|
36
|
-
const archive = manager.captureArchive();
|
|
37
|
-
const view = new StoredTreeView(archive);
|
|
38
|
-
const addresses = [];
|
|
39
|
-
const labels = /* @__PURE__ */ new Map();
|
|
40
|
-
const times = /* @__PURE__ */ new Map();
|
|
41
|
-
for await (const page of archive.outline()) for (const row of page) {
|
|
42
|
-
if (row.leafMove) continue;
|
|
43
|
-
view.rows.set(row.id, row);
|
|
44
|
-
addresses.push({
|
|
45
|
-
id: row.id,
|
|
46
|
-
parentId: row.parentId,
|
|
47
|
-
timestamp: row.timestamp,
|
|
48
|
-
type: "custom",
|
|
49
|
-
customType: "tree-address"
|
|
50
|
-
});
|
|
51
|
-
if (row.labelTarget !== void 0) {
|
|
52
|
-
if (row.label) {
|
|
53
|
-
view.labels.set(row.labelTarget, {
|
|
54
|
-
seq: row.seq,
|
|
55
|
-
short: row.label
|
|
56
|
-
});
|
|
57
|
-
labels.set(row.labelTarget, row.label);
|
|
58
|
-
times.set(row.labelTarget, row.timestamp);
|
|
59
|
-
} else {
|
|
60
|
-
view.labels.delete(row.labelTarget);
|
|
61
|
-
labels.delete(row.labelTarget);
|
|
62
|
-
times.delete(row.labelTarget);
|
|
1
|
+
// Written by the build (scripts/in-place-update-gate.mjs): when this module's code cannot load in a process of an earlier release
|
|
2
|
+
// that an in-place update left running, the process is told to restart.
|
|
3
|
+
let module;
|
|
4
|
+
try {
|
|
5
|
+
module = await import("./stored-tree-view.code.js");
|
|
6
|
+
} catch (error) {
|
|
7
|
+
const root = new URL("../../../", import.meta.url);
|
|
8
|
+
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
+
const key = `${root.href}#0.10.5-alpha.1`;
|
|
10
|
+
let release = releases.get(key);
|
|
11
|
+
if (release === undefined) {
|
|
12
|
+
const current = (async () => {
|
|
13
|
+
for (const path of ["modes/interactive/interactive-mode-deps.js","_shared/chunk-CDOYTDYM.js","_shared/p0-cli-GUFK7TPN.js"]) {
|
|
14
|
+
try {
|
|
15
|
+
const held = await import(new URL(path, root).href);
|
|
16
|
+
if (typeof held.VERSION === "string") return { version: held.VERSION, name: held.APP_NAME };
|
|
17
|
+
} catch {
|
|
18
|
+
// Not a file this process can load: the next.
|
|
63
19
|
}
|
|
64
20
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
leaf: archive.leafId
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
/** False once the view is closed: nothing it started may show or report anything after that. */
|
|
73
|
-
get open() {
|
|
74
|
-
return this.archive !== void 0;
|
|
75
|
-
}
|
|
76
|
-
indexCalls(nodes) {
|
|
77
|
-
for (const node of nodes) {
|
|
78
|
-
const row = this.rows.get(node.node.entry.id);
|
|
79
|
-
for (const id of row?.callIds ?? []) this.calls.set(id, row.seq);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
peek(id) {
|
|
83
|
-
return this.previews.get(id);
|
|
84
|
-
}
|
|
85
|
-
/** Why a visible row has no preview, if reading it failed. */
|
|
86
|
-
failure(id) {
|
|
87
|
-
return this.failures.get(id);
|
|
88
|
-
}
|
|
89
|
-
async preview(id, limit, signal) {
|
|
90
|
-
const archive = this.archive;
|
|
91
|
-
const row = this.rows.get(id);
|
|
92
|
-
if (!archive || !row) return;
|
|
93
|
-
let cut = false;
|
|
94
|
-
const clip = () => {
|
|
95
|
-
cut = true;
|
|
96
|
-
};
|
|
97
|
-
const { treePresentation, treeToolCall } = await import("../../../core/storage/session/tree-presentation.js");
|
|
98
|
-
const entry = archive.held.get(row.seq) ?? await treePresentation(archive.bytes(row.seq, signal), limit, void 0, clip);
|
|
99
|
-
const preview = {
|
|
100
|
-
entry,
|
|
101
|
-
limit,
|
|
102
|
-
cut
|
|
103
|
-
};
|
|
104
|
-
if (entry.type === "message" && entry.message.role === "toolResult") {
|
|
105
|
-
const callId = entry.message.toolCallId;
|
|
106
|
-
const seq = this.calls.get(callId);
|
|
107
|
-
if (seq !== void 0) {
|
|
108
|
-
const source = archive.held.get(seq);
|
|
109
|
-
const block = source?.type === "message" && source.message.role === "assistant" ? source.message.content.findLast((b) => b.type === "toolCall" && b.id === callId) : void 0;
|
|
110
|
-
const call = block?.type === "toolCall" ? block : source ? void 0 : await treeToolCall(archive.bytes(seq, signal), callId, limit, clip);
|
|
111
|
-
if (call) preview.call = [callId, {
|
|
112
|
-
name: call.name,
|
|
113
|
-
arguments: call.arguments
|
|
114
|
-
}];
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
const l = this.labels.get(id);
|
|
118
|
-
if (l && l.seq > 0 && l.short.length >= LABEL_SNIPPET && limit > LABEL_SNIPPET) {
|
|
119
|
-
const label = archive.held.get(l.seq) ?? await treePresentation(archive.bytes(l.seq, signal), limit, void 0, clip);
|
|
120
|
-
if (label.type === "label") preview.label = label.label;
|
|
121
|
-
}
|
|
122
|
-
preview.cut = cut;
|
|
123
|
-
return preview;
|
|
124
|
-
}
|
|
125
|
-
/** Keep previews for exactly these rows. A row that stays on screen is not read again unless the screen grew past
|
|
126
|
-
* text that was cut; a row that leaves it is dropped, and its read abandoned. */
|
|
127
|
-
show(ids, columns) {
|
|
128
|
-
if (!this.archive) return;
|
|
129
|
-
const limit = previewLimit(columns);
|
|
130
|
-
const key = JSON.stringify([limit, ids]);
|
|
131
|
-
if (key === this.visible) return;
|
|
132
|
-
this.visible = key;
|
|
133
|
-
const keep = new Set(ids);
|
|
134
|
-
for (const [id, load] of this.loads) if (!keep.has(id)) {
|
|
135
|
-
load.controller.abort();
|
|
136
|
-
this.loads.delete(id);
|
|
137
|
-
}
|
|
138
|
-
for (const id of this.previews.keys()) if (!keep.has(id)) this.previews.delete(id);
|
|
139
|
-
for (const id of this.failures.keys()) if (!keep.has(id)) this.failures.delete(id);
|
|
140
|
-
for (const id of ids) {
|
|
141
|
-
const ready = this.previews.get(id);
|
|
142
|
-
if (ready && (!ready.cut || ready.limit >= limit) || this.failures.has(id)) continue;
|
|
143
|
-
const load = this.loads.get(id);
|
|
144
|
-
if (load && load.limit >= limit) continue;
|
|
145
|
-
load?.controller.abort();
|
|
146
|
-
this.load(id, limit);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
load(id, limit) {
|
|
150
|
-
const load = {
|
|
151
|
-
limit,
|
|
152
|
-
controller: new AbortController()
|
|
153
|
-
};
|
|
154
|
-
const { signal } = load.controller;
|
|
155
|
-
this.loads.set(id, load);
|
|
156
|
-
const settle = () => {
|
|
157
|
-
if (signal.aborted) return false;
|
|
158
|
-
if (this.loads.get(id) === load) this.loads.delete(id);
|
|
159
|
-
return true;
|
|
160
|
-
};
|
|
161
|
-
this.preview(id, limit, signal).then((preview) => {
|
|
162
|
-
if (!settle()) return;
|
|
163
|
-
if (preview) this.previews.set(id, preview);
|
|
164
|
-
this.onUpdate?.();
|
|
165
|
-
}, (error) => {
|
|
166
|
-
if (!settle()) return;
|
|
167
|
-
const failure = error instanceof Error ? error : new Error(String(error));
|
|
168
|
-
this.failures.set(id, failure);
|
|
169
|
-
this.report(failure);
|
|
170
|
-
this.onUpdate?.();
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
/** Report each distinct failure once per view, not once per row or per scroll. */
|
|
174
|
-
report(error) {
|
|
175
|
-
if (this.reported.has(error.message)) return;
|
|
176
|
-
this.reported.add(error.message);
|
|
177
|
-
this.onError?.(error);
|
|
178
|
-
}
|
|
179
|
-
/** The whole label of a row, for editing. Rows and search hold at most the outline's snippet or a screen of it. */
|
|
180
|
-
async fullLabel(id, signal) {
|
|
181
|
-
const archive = this.archive;
|
|
182
|
-
const l = this.labels.get(id);
|
|
183
|
-
if (!archive || !l) return void 0;
|
|
184
|
-
if (l.seq < 0 || l.short.length < LABEL_SNIPPET) return l.short;
|
|
185
|
-
const held = archive.held.get(l.seq);
|
|
186
|
-
if (held) return held.type === "label" ? held.label : void 0;
|
|
187
|
-
const controller = new AbortController();
|
|
188
|
-
const abort = () => controller.abort(signal?.reason);
|
|
189
|
-
signal?.addEventListener("abort", abort, { once: true });
|
|
190
|
-
this.labelReads.add(controller);
|
|
191
|
-
try {
|
|
192
|
-
const { treeLabel } = await import("../../../core/storage/session/tree-presentation.js");
|
|
193
|
-
controller.signal.throwIfAborted();
|
|
194
|
-
return await treeLabel(archive.bytes(l.seq, controller.signal));
|
|
195
|
-
} finally {
|
|
196
|
-
signal?.removeEventListener("abort", abort);
|
|
197
|
-
this.labelReads.delete(controller);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
/** Whether a row's label may be longer than the outline's snippet. */
|
|
201
|
-
labelIsSnippet(id) {
|
|
202
|
-
const l = this.labels.get(id);
|
|
203
|
-
return l !== void 0 && l.seq > 0 && l.short.length >= LABEL_SNIPPET;
|
|
204
|
-
}
|
|
205
|
-
/** Whether the search for this query is still reading, or why it failed. */
|
|
206
|
-
searchState(query) {
|
|
207
|
-
if (!this.archive || query !== this.query || this.result) return;
|
|
208
|
-
return this.searchFailure ?? (this.searching ? "pending" : void 0);
|
|
209
|
-
}
|
|
210
|
-
matches(query, ready) {
|
|
211
|
-
const archive = this.archive;
|
|
212
|
-
if (!archive) return;
|
|
213
|
-
if (query === this.query && this.searchedLabels === this.labelVersion) return this.result;
|
|
214
|
-
this.searching?.abort();
|
|
215
|
-
this.searching = void 0;
|
|
216
|
-
this.query = query;
|
|
217
|
-
this.searchedLabels = this.labelVersion;
|
|
218
|
-
this.result = void 0;
|
|
219
|
-
this.searchFailure = void 0;
|
|
220
|
-
if (!query) return;
|
|
221
|
-
const controller = new AbortController();
|
|
222
|
-
this.searching = controller;
|
|
223
|
-
const words = query.toLowerCase().split(/\s+/).filter(Boolean);
|
|
224
|
-
const version = this.labelVersion;
|
|
225
|
-
(async () => {
|
|
226
|
-
const { treePresentation } = await import("../../../core/storage/session/tree-presentation.js");
|
|
227
|
-
const labels = /* @__PURE__ */ new Map();
|
|
228
|
-
for (const [id, l] of this.labels) if (l.seq < 0 || l.short.length < LABEL_SNIPPET) labels.set(id, l.short);
|
|
229
|
-
else {
|
|
230
|
-
const entry = archive.held.get(l.seq) ?? await treePresentation(archive.bytes(l.seq, controller.signal), 200, words);
|
|
231
|
-
if (entry.type === "label" && entry.label) labels.set(id, entry.label);
|
|
232
|
-
}
|
|
233
|
-
const found = /* @__PURE__ */ new Set();
|
|
234
|
-
for await (const { items } of archive.pages({ signal: controller.signal })) for (const item of items) {
|
|
235
|
-
const entry = archive.held.get(item.seq) ?? ("entry" in item ? item.entry : await treePresentation(archive.chunks(item, controller.signal), 200, words));
|
|
236
|
-
const text = getSearchableText({
|
|
237
|
-
entry,
|
|
238
|
-
label: labels.get(entry.id),
|
|
239
|
-
children: []
|
|
240
|
-
}).toLowerCase();
|
|
241
|
-
if (words.every((word) => text.includes(word))) found.add(entry.id);
|
|
242
|
-
}
|
|
243
|
-
if (controller.signal.aborted) return;
|
|
244
|
-
this.searching = void 0;
|
|
245
|
-
if (version === this.labelVersion) this.result = found;
|
|
246
|
-
ready();
|
|
247
|
-
this.onUpdate?.();
|
|
248
|
-
})().catch((e) => {
|
|
249
|
-
if (controller.signal.aborted) return;
|
|
250
|
-
this.searching = void 0;
|
|
251
|
-
this.searchFailure = e;
|
|
252
|
-
this.report(e);
|
|
253
|
-
this.onUpdate?.();
|
|
21
|
+
return undefined;
|
|
22
|
+
})().then((found) => {
|
|
23
|
+
if (found === undefined && releases.get(key) === current) releases.delete(key);
|
|
24
|
+
return found;
|
|
254
25
|
});
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
label: void 0
|
|
267
|
-
});
|
|
268
|
-
this.labelVersion++;
|
|
269
|
-
}
|
|
270
|
-
dispose() {
|
|
271
|
-
const archive = this.archive;
|
|
272
|
-
if (!archive) return;
|
|
273
|
-
this.archive = void 0;
|
|
274
|
-
this.searching?.abort();
|
|
275
|
-
this.searching = void 0;
|
|
276
|
-
for (const load of this.loads.values()) load.controller.abort();
|
|
277
|
-
for (const read of this.labelReads) read.abort();
|
|
278
|
-
this.loads.clear();
|
|
279
|
-
this.labelReads.clear();
|
|
280
|
-
this.rows.clear();
|
|
281
|
-
this.previews.clear();
|
|
282
|
-
this.failures.clear();
|
|
283
|
-
this.labels.clear();
|
|
284
|
-
this.calls.clear();
|
|
285
|
-
this.result = void 0;
|
|
286
|
-
this.searchFailure = void 0;
|
|
287
|
-
archive.held.clear();
|
|
288
|
-
this.onUpdate = this.onError = void 0;
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
export { StoredTreeView, previewLimit };
|
|
292
|
-
|
|
293
|
-
//# sourceMappingURL=stored-tree-view.js.map
|
|
26
|
+
releases.set(key, current);
|
|
27
|
+
release = current;
|
|
28
|
+
}
|
|
29
|
+
const running = await release;
|
|
30
|
+
if (running === undefined || running.version === "0.10.5-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.5-alpha.1 while this session was running; restart it to keep using /tree.", {
|
|
32
|
+
cause: error,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export const { StoredTreeView, previewLimit } = module;
|
|
36
|
+
//# sourceMappingURL=stored-tree-view.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stored-tree-view.js","
|
|
1
|
+
{"version":3,"file":"stored-tree-view.js","sources":[],"names":[],"mappings":""}
|
|
@@ -64,17 +64,22 @@ export interface TasksReturnRecord {
|
|
|
64
64
|
readonly pending?: {
|
|
65
65
|
readonly targetId: TaskId;
|
|
66
66
|
readonly anchor: ListSelectionAnchor;
|
|
67
|
+
/** Engine `engine_view_agent.requestId` that staged this pending open; undefined for local host or legacy hosts. */
|
|
68
|
+
readonly requestId?: number;
|
|
67
69
|
};
|
|
68
70
|
}
|
|
69
71
|
export declare function saveTasksReturnAnchor(owner: object, anchor: ListSelectionAnchor, anchorTaskId?: TaskId): void;
|
|
70
|
-
export declare function stagePendingTasksReturn(owner: object, targetId: TaskId, anchor: ListSelectionAnchor, fallbackAnchor?: ListSelectionAnchor, fallbackTaskId?: TaskId): void;
|
|
72
|
+
export declare function stagePendingTasksReturn(owner: object, targetId: TaskId, anchor: ListSelectionAnchor, fallbackAnchor?: ListSelectionAnchor, fallbackTaskId?: TaskId, requestId?: number): void;
|
|
71
73
|
export declare function resolveStoreTaskKey(store: OwnerTaskStore, taskId: TaskId): string;
|
|
72
74
|
/**
|
|
73
75
|
* Settle any pending `/tasks` subagent open (and clear stale anchors on external switches to another subagent)
|
|
74
76
|
* without registering any listener on `AgentViewBridge`.
|
|
77
|
+
* When `settledRequestId` is provided and is strictly less than `record.pending.requestId`, the host has not yet
|
|
78
|
+
* settled the pending request (e.g., a host-initiated switch raced an unreceived `engine_view_agent`), so
|
|
79
|
+
* `record.pending` is preserved while updating any settled `record.anchor`.
|
|
75
80
|
*/
|
|
76
|
-
export declare function settleTasksReturnAnchor(owner: object, viewedTaskId: TaskId | undefined, resolveKey: (taskId: TaskId) => string): void;
|
|
77
|
-
export declare function settleStoreTasksReturn(store: OwnerTaskStore | undefined, viewedTaskId: TaskId | undefined): void;
|
|
81
|
+
export declare function settleTasksReturnAnchor(owner: object, viewedTaskId: TaskId | undefined, resolveKey: (taskId: TaskId) => string, settledRequestId?: number): void;
|
|
82
|
+
export declare function settleStoreTasksReturn(store: OwnerTaskStore | undefined, viewedTaskId: TaskId | undefined, settledRequestId?: number): void;
|
|
78
83
|
export declare function tasksReturnRecord(owner: object): TasksReturnRecord | undefined;
|
|
79
84
|
export declare function tasksReturnAnchor(owner: object): ListSelectionAnchor | undefined;
|
|
80
85
|
export declare function clearTasksReturnAnchor(owner: object, options?: {
|
|
@@ -129,6 +129,7 @@ export declare class TaskAgentTranscriptPage implements TaskTranscriptPage {
|
|
|
129
129
|
private readonly requestRender;
|
|
130
130
|
private followed?;
|
|
131
131
|
private followedSessionId?;
|
|
132
|
+
private followedSessionFile?;
|
|
132
133
|
private legacyWindow?;
|
|
133
134
|
private legacyWindowActive;
|
|
134
135
|
private observedWrites?;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import "../../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
+
import { read, readValue, skip, stringValue } from "../../../_shared/startup-0-5-OHJNE6JH.js";
|
|
3
|
+
// dist/modes/interactive/components/user-message-selector-archive.js
|
|
4
|
+
/**
|
|
5
|
+
* UTF-16 code units of a prompt's one-line label that a /fork row keeps. A row is drawn on one terminal line, so a
|
|
6
|
+
* longer prompt keeps only this start of its label, and a search reads the rest of it from the session store.
|
|
7
|
+
*/
|
|
8
|
+
const FORK_LABEL_CHARS = 1024;
|
|
9
|
+
/** Thrown by a reader whose sink is full, to stop reading the rest of the entry. */
|
|
10
|
+
const ENOUGH = /* @__PURE__ */ new Error("The prompt's label is complete");
|
|
11
|
+
/** The prompt's label as the picker shows it (`text.replace(/\s+/g, " ").trim()`), kept to `limit` code units. */
|
|
12
|
+
var LabelSink = class {
|
|
13
|
+
text = "";
|
|
14
|
+
space = false;
|
|
15
|
+
/** Some of the label did not fit. */
|
|
16
|
+
cut = false;
|
|
17
|
+
/** Any text arrived, even whitespace; the picker lists such a prompt with a blank label. */
|
|
18
|
+
any = false;
|
|
19
|
+
limit;
|
|
20
|
+
constructor(limit) {
|
|
21
|
+
this.limit = limit;
|
|
22
|
+
}
|
|
23
|
+
get full() {
|
|
24
|
+
return this.cut;
|
|
25
|
+
}
|
|
26
|
+
push(piece) {
|
|
27
|
+
if (!piece) return;
|
|
28
|
+
this.any = true;
|
|
29
|
+
if (this.cut) return;
|
|
30
|
+
for (const [run] of piece.matchAll(/\s+|\S+/g)) {
|
|
31
|
+
if (/\s/.test(run[0])) {
|
|
32
|
+
if (this.text) this.space = true;
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
const gap = this.space ? " " : "";
|
|
36
|
+
const room = this.limit - this.text.length - gap.length;
|
|
37
|
+
if (run.length <= room) {
|
|
38
|
+
this.text += gap + run;
|
|
39
|
+
this.space = false;
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (room > 0) this.text += gap + run.slice(0, room);
|
|
43
|
+
this.cut = true;
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
mark() {
|
|
48
|
+
return [
|
|
49
|
+
this.text,
|
|
50
|
+
this.space,
|
|
51
|
+
this.cut,
|
|
52
|
+
this.any
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
reset(mark) {
|
|
56
|
+
[this.text, this.space, this.cut, this.any] = mark;
|
|
57
|
+
}
|
|
58
|
+
result() {
|
|
59
|
+
if (!this.any) return void 0;
|
|
60
|
+
return {
|
|
61
|
+
text: this.cut && /[\uD800-\uDBFF]$/.test(this.text) ? this.text.slice(0, -1) : this.text,
|
|
62
|
+
partial: this.cut
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
/** The prompt's whole text, joined as the in-memory picker joins it. Lives only while one search reads one row. */
|
|
67
|
+
var WholeTextSink = class {
|
|
68
|
+
pieces = [];
|
|
69
|
+
full = false;
|
|
70
|
+
push(piece) {
|
|
71
|
+
if (piece) this.pieces.push(piece);
|
|
72
|
+
}
|
|
73
|
+
mark() {
|
|
74
|
+
return this.pieces.length;
|
|
75
|
+
}
|
|
76
|
+
reset(mark) {
|
|
77
|
+
this.pieces.length = mark;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
/** The text of a held user prompt, extracted as `AgentSession.getUserMessagesForForking` does. */
|
|
81
|
+
function heldPromptText(entry) {
|
|
82
|
+
if (entry.type !== "message" || entry.message.role !== "user") return void 0;
|
|
83
|
+
const content = entry.message.content;
|
|
84
|
+
if (typeof content === "string") return content;
|
|
85
|
+
if (Array.isArray(content)) return content.filter((block) => block.type === "text").map((block) => block.text).join("");
|
|
86
|
+
return "";
|
|
87
|
+
}
|
|
88
|
+
/** `counts`: the string is known to be part of the prompt's text, so a full sink ends the read. */
|
|
89
|
+
function* stringPieces(sink, counts) {
|
|
90
|
+
for (let token = yield; token.name === "stringChunk"; token = yield) {
|
|
91
|
+
sink.push(token.value);
|
|
92
|
+
if (counts && sink.full) throw ENOUGH;
|
|
93
|
+
}
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
/** One content block: its `text` counts only when its `type` is `text`, in whichever order the store keeps the keys. */
|
|
97
|
+
function* blockText(first, sink) {
|
|
98
|
+
if (first.name !== "startObject") {
|
|
99
|
+
yield* skip(first);
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
const mark = sink.mark();
|
|
103
|
+
let type;
|
|
104
|
+
let pushed = false;
|
|
105
|
+
while ((yield).name !== "endObject") {
|
|
106
|
+
const key = yield* stringValue(5);
|
|
107
|
+
const value = yield;
|
|
108
|
+
if (key === "type" && value.name === "startString") type = yield* stringValue(5);
|
|
109
|
+
else if (key === "text" && value.name === "startString" && (type === void 0 || type === "text")) {
|
|
110
|
+
yield* stringPieces(sink, type === "text");
|
|
111
|
+
pushed = true;
|
|
112
|
+
} else yield* skip(value);
|
|
113
|
+
}
|
|
114
|
+
if (pushed && type !== "text") sink.reset(mark);
|
|
115
|
+
else if (sink.full) throw ENOUGH;
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
function* contentText(first, sink) {
|
|
119
|
+
if (first.name === "startString") return yield* stringPieces(sink, true);
|
|
120
|
+
if (first.name !== "startArray") {
|
|
121
|
+
yield* skip(first);
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
for (let item = yield; item.name !== "endArray"; item = yield) yield* blockText(item, sink);
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
/** Streams a saved user prompt's text into `sink` without parsing the entry into an object, until the sink is full. */
|
|
128
|
+
async function readPromptText(chunks, sink) {
|
|
129
|
+
try {
|
|
130
|
+
await read(chunks, (function* () {
|
|
131
|
+
return yield* readValue(yield, { message: { content: (first) => contentText(first, sink) } });
|
|
132
|
+
})());
|
|
133
|
+
} catch (error) {
|
|
134
|
+
if (error !== ENOUGH) throw error;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The prompts of a session whose older history stays in its store, for the /fork picker. It lists every user prompt
|
|
139
|
+
* of every branch in append order, as the picker always has, but keeps at most {@link FORK_LABEL_CHARS} of each, and
|
|
140
|
+
* reads a longer prompt again only while a search needs all of it. Reads are pinned to the session generation and
|
|
141
|
+
* entries captured when the picker opened.
|
|
142
|
+
*/
|
|
143
|
+
var ForkPromptArchive = class ForkPromptArchive {
|
|
144
|
+
archive;
|
|
145
|
+
/** Sequence numbers of the rows listed as partial. */
|
|
146
|
+
partial = /* @__PURE__ */ new Map();
|
|
147
|
+
constructor(archive) {
|
|
148
|
+
this.archive = archive;
|
|
149
|
+
}
|
|
150
|
+
static async open(manager, signal) {
|
|
151
|
+
const view = new ForkPromptArchive(manager.captureArchive());
|
|
152
|
+
const prompts = [];
|
|
153
|
+
for await (const page of view.archive.outline(signal)) for (const row of page) {
|
|
154
|
+
if (row.type !== "message" || row.role !== "user") continue;
|
|
155
|
+
const label = new LabelSink(FORK_LABEL_CHARS);
|
|
156
|
+
const held = view.archive.held.get(row.seq);
|
|
157
|
+
if (held) label.push(heldPromptText(held) ?? "");
|
|
158
|
+
else await readPromptText(view.archive.bytes(row.seq, signal), label);
|
|
159
|
+
const listed = label.result();
|
|
160
|
+
if (!listed) continue;
|
|
161
|
+
if (listed.partial) view.partial.set(row.id, row.seq);
|
|
162
|
+
prompts.push({
|
|
163
|
+
entryId: row.id,
|
|
164
|
+
text: listed.text,
|
|
165
|
+
...listed.partial ? { partial: true } : {}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
prompts,
|
|
170
|
+
archive: view
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
/** The whole text of a prompt listed as partial, read from the store for one search and not kept. */
|
|
174
|
+
async readText(entryId, signal) {
|
|
175
|
+
const seq = this.partial.get(entryId);
|
|
176
|
+
if (seq === void 0) throw new Error(`Prompt ${entryId} is not in this picker`);
|
|
177
|
+
const held = this.archive.held.get(seq);
|
|
178
|
+
if (held) return heldPromptText(held) ?? "";
|
|
179
|
+
const whole = new WholeTextSink();
|
|
180
|
+
await readPromptText(this.archive.bytes(seq, signal), whole);
|
|
181
|
+
signal.throwIfAborted();
|
|
182
|
+
return whole.pieces.join("");
|
|
183
|
+
}
|
|
184
|
+
dispose() {
|
|
185
|
+
this.partial.clear();
|
|
186
|
+
this.archive.held.clear();
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
export { FORK_LABEL_CHARS, ForkPromptArchive };
|
|
190
|
+
|
|
191
|
+
//# sourceMappingURL=user-message-selector-archive.code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-message-selector-archive.code.js","names":[],"sources":["../../../../src/modes/interactive/components/user-message-selector-archive.ts"],"mappings":"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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Written by the build (scripts/in-place-update-gate.mjs): when this module's code cannot load in a process of an earlier release
|
|
2
|
+
// that an in-place update left running, the process is told to restart.
|
|
3
|
+
let module;
|
|
4
|
+
try {
|
|
5
|
+
module = await import("./user-message-selector-archive.code.js");
|
|
6
|
+
} catch (error) {
|
|
7
|
+
const root = new URL("../../../", import.meta.url);
|
|
8
|
+
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
+
const key = `${root.href}#0.10.5-alpha.1`;
|
|
10
|
+
let release = releases.get(key);
|
|
11
|
+
if (release === undefined) {
|
|
12
|
+
const current = (async () => {
|
|
13
|
+
for (const path of ["modes/interactive/interactive-mode-deps.js","_shared/chunk-CDOYTDYM.js","_shared/p0-cli-GUFK7TPN.js"]) {
|
|
14
|
+
try {
|
|
15
|
+
const held = await import(new URL(path, root).href);
|
|
16
|
+
if (typeof held.VERSION === "string") return { version: held.VERSION, name: held.APP_NAME };
|
|
17
|
+
} catch {
|
|
18
|
+
// Not a file this process can load: the next.
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return undefined;
|
|
22
|
+
})().then((found) => {
|
|
23
|
+
if (found === undefined && releases.get(key) === current) releases.delete(key);
|
|
24
|
+
return found;
|
|
25
|
+
});
|
|
26
|
+
releases.set(key, current);
|
|
27
|
+
release = current;
|
|
28
|
+
}
|
|
29
|
+
const running = await release;
|
|
30
|
+
if (running === undefined || running.version === "0.10.5-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.5-alpha.1 while this session was running; restart it to keep using /fork.", {
|
|
32
|
+
cause: error,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export const { FORK_LABEL_CHARS, ForkPromptArchive } = module;
|
|
36
|
+
//# sourceMappingURL=user-message-selector-archive.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-message-selector-archive.impl.js","sources":[],"names":[],"mappings":""}
|