@bastani/atomic 0.10.19 → 0.10.20-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +72 -0
- package/dist/_shared/adapter-open-DXXV6ATH.js +22 -0
- package/dist/_shared/adapter-open-DXXV6ATH.js.map +1 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js +484 -229
- package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +63 -16
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +61 -16
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p0-cli-BB45ZQY6.js +2 -2
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/p1b-elig-BY2G5BUE.js +6 -3
- package/dist/_shared/p1b-elig-BY2G5BUE.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-BHX35EPK.js → sdk-5ZFNDXUJ.js} +319 -86
- package/dist/_shared/sdk-5ZFNDXUJ.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +15 -7
- package/dist/_shared/session-data-AHTU7IS6.js.map +1 -1
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-HXQLSUWM.js +2 -2
- package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -1
- package/dist/_shared/{startup-0-0-4EDVBK5P.js → startup-0-0-OWBJIX35.js} +162 -44
- package/dist/_shared/startup-0-0-OWBJIX35.js.map +1 -0
- package/dist/_shared/{startup-0-1-H5IXVRXQ.js → startup-0-1-DZYE4E5Z.js} +462 -37
- package/dist/_shared/startup-0-1-DZYE4E5Z.js.map +1 -0
- package/dist/_shared/{startup-0-2-YZZOC22D.js → startup-0-2-WFLTE4SC.js} +147 -6
- package/dist/_shared/startup-0-2-WFLTE4SC.js.map +1 -0
- package/dist/_shared/startup-0-3-DE2NCS6A.js +59 -50
- package/dist/_shared/startup-0-3-DE2NCS6A.js.map +1 -1
- package/dist/_shared/{startup-0-4-ZMJV547D.js → startup-0-4-6XXL4JMZ.js} +115 -25
- package/dist/_shared/startup-0-4-6XXL4JMZ.js.map +1 -0
- package/dist/_shared/{startup-0-5-HZX3ZPTP.js → startup-0-5-DNS6FYS7.js} +229 -156
- package/dist/_shared/startup-0-5-DNS6FYS7.js.map +1 -0
- package/dist/_shared/{startup-10-0-TDQNBDDL.js → startup-10-0-O6DAT7U4.js} +131 -162
- package/dist/_shared/startup-10-0-O6DAT7U4.js.map +1 -0
- package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +9 -6
- package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
- package/dist/_shared/{startup-15-0-YUKGAC63.js → startup-15-0-E7RYG5YF.js} +9 -9
- package/dist/_shared/{startup-15-0-YUKGAC63.js.map → startup-15-0-E7RYG5YF.js.map} +1 -1
- package/dist/_shared/startup-15-1-WQZBOTMZ.js +340 -128
- package/dist/_shared/startup-15-1-WQZBOTMZ.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +279 -151
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/{startup-8-1-QZMXUGHI.js → startup-8-1-VXBL37AI.js} +352 -27
- package/dist/_shared/startup-8-1-VXBL37AI.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +15 -273
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/{storage-status-K7PX2RXA.js → storage-status-T6FUXRIM.js} +8 -24
- package/dist/_shared/{storage-status-K7PX2RXA.js.map → storage-status-T6FUXRIM.js.map} +1 -1
- package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +4 -3
- package/dist/_shared/team-DOQKICG2.js.map +1 -1
- package/dist/_shared/tree-outline-MUEPK5B7.js +9 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js.map +1 -1
- package/dist/binary-self-update.js +3 -3
- package/dist/builtin/intercom/broker/broker.bundle.mjs +46 -8
- package/dist/builtin/intercom/broker/broker.ts +1 -0
- package/dist/builtin/intercom/broker/client.ts +5 -1
- package/dist/builtin/intercom/broker/departed-children.ts +12 -6
- package/dist/builtin/intercom/broker/ended-child-wakes.ts +2 -0
- package/dist/builtin/intercom/index.bundle.mjs +130 -264
- package/dist/builtin/intercom/message-display.ts +42 -0
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/intercom/types.ts +1 -0
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +99 -20
- package/dist/builtin/web-access/index.bundle.mjs +15 -9
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +6 -6
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +4 -4
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +3 -3
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +2 -2
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +2 -2
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +3 -3
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +3 -3
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/agent-session-runtime.d.ts +16 -4
- package/dist/core/agent-session-types.d.ts +5 -1
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.code.js +74 -72
- package/dist/core/export-html/card-projection.code.js.map +1 -1
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +52 -41
- package/dist/core/export-html/index.code.js.map +1 -1
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/template.js +27 -39
- package/dist/core/export-html/tool-renderer.code.js +1 -1
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/context-types.d.ts +3 -0
- package/dist/core/extensions/context-types.js.map +1 -1
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +2 -2
- package/dist/core/extensions/runner-context.d.ts +1 -0
- package/dist/core/extensions/runner-context.js +18 -2
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +1 -0
- package/dist/core/extensions/runtime-types.d.ts +1 -0
- package/dist/core/extensions/runtime-types.js.map +1 -1
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/model-registry.js +2 -2
- package/dist/core/model-runtime-streaming.d.ts +3 -1
- package/dist/core/model-runtime.d.ts +2 -0
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/resume/failure.d.ts +1 -1
- package/dist/core/sdk.code.js +4 -4
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-claims.d.ts +13 -2
- package/dist/core/session-load-events.d.ts +42 -0
- package/dist/core/session-manager-core.d.ts +17 -2
- package/dist/core/session-manager-core.js +234 -93
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-errors.d.ts +2 -2
- package/dist/core/session-manager-history.d.ts +1 -1
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +2 -2
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager.js +2 -2
- package/dist/core/storage/adapter-open.js +3 -0
- package/dist/core/storage/adapter-open.js.map +1 -0
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/prefix.js +1 -0
- package/dist/core/storage/prefix.js.map +1 -1
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/schema-catalog.d.ts +2 -1
- package/dist/core/storage/schema-catalog.js +25 -6
- package/dist/core/storage/schema-catalog.js.map +1 -1
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +17 -4
- package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +7 -7
- package/dist/core/storage/session/child-reader.code.js.map +1 -1
- package/dist/core/storage/session/child-reader.d.ts +1 -0
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +3 -3
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +9 -5
- package/dist/core/storage/session/fork-staging.code.js.map +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +29 -13
- package/dist/core/storage/session/fork-window.code.js.map +1 -1
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.d.ts +8 -4
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.d.ts +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/parent-links.d.ts +122 -0
- package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +3 -3
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +5 -6
- package/dist/core/storage/session/snapshot-history.code.js.map +1 -1
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +7 -20
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.code.js +1 -1
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/session/types.d.ts +11 -3
- package/dist/core/storage/session/usage-observations.d.ts +27 -0
- package/dist/core/storage/session/usage-observations.js +3 -0
- package/dist/core/storage/session/usage-observations.js.map +1 -0
- package/dist/core/storage/storage-status.code.js +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/subscription-usage-identity.d.ts +9 -0
- package/dist/core/subscription-usage-observations.d.ts +15 -0
- package/dist/core/subscription-usage-storage.js +3 -0
- package/dist/core/subscription-usage-storage.js.map +1 -0
- package/dist/core/subscription-usage.d.ts +20 -3
- package/dist/core/tasks/task-completion-entry.code.js +1 -1
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +5 -5
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.code.js +1 -1
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.code.js +1 -1
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.code.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +3 -3
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +2 -2
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +12 -7
- package/dist/extensions/codemode/renderer.code.js.map +1 -1
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +3 -3
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +10 -10
- package/dist/main-first-time-setup.code.js +2 -2
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/main.js +1 -1
- package/dist/modes/index.d.ts +1 -1
- package/dist/modes/interactive/components/intercom-wake-notice.d.ts +4 -0
- package/dist/modes/interactive/components/notice-line.d.ts +1 -1
- package/dist/modes/interactive/components/stored-tree-view.code.js +6 -5
- package/dist/modes/interactive/components/stored-tree-view.code.js.map +1 -1
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/tool-block.d.ts +5 -1
- package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +4 -3
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +5 -0
- package/dist/modes/rpc/rpc-client.d.ts +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +26 -3
- package/dist/package-manager-cli.code.js +7 -7
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/13.js +2 -1
- package/dist/startup-stages/14.js +1 -0
- package/dist/startup-stages/4.js +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +1 -1
- package/dist/startup-stages/stages.json +1 -1
- package/dist/utils/startup-database-spare.code.js +3 -3
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/.agents/context/DESIGN.md +30 -0
- package/docs/changelog.mdx +46 -0
- package/docs/docs.json +1 -1
- package/docs/extensions/api-reference.md +6 -0
- package/docs/guides/subscription-usage.md +28 -82
- package/docs/intercom.md +3 -1
- package/docs/json.md +3 -3
- package/docs/providers.md +2 -0
- package/docs/reference/cli.md +3 -1
- package/docs/rpc/protocol.md +31 -3
- package/docs/sdk/reference.md +26 -1
- package/docs/sdk.md +2 -0
- package/docs/sessions.md +38 -1
- package/docs/slash-commands.md +1 -1
- package/docs/subagents.md +2 -0
- package/docs/usage.md +1 -1
- package/package.json +8 -8
- package/dist/_shared/sdk-BHX35EPK.js.map +0 -1
- package/dist/_shared/startup-0-0-4EDVBK5P.js.map +0 -1
- package/dist/_shared/startup-0-1-H5IXVRXQ.js.map +0 -1
- package/dist/_shared/startup-0-2-YZZOC22D.js.map +0 -1
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +0 -1
- package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +0 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js.map +0 -1
- package/dist/_shared/startup-8-1-QZMXUGHI.js.map +0 -1
|
@@ -5,12 +5,12 @@ import * as __atomicHostImport3 from "@bastani/atomic-ai/compat";
|
|
|
5
5
|
import * as __atomicHostImport4 from "@bastani/atomic-ai";
|
|
6
6
|
{
|
|
7
7
|
const missing = [];
|
|
8
|
-
for (const [namespace, specifier, names] of [[__atomicHostImport0, "@bastani/atomic", ["APP_NAME","AgentTokenMeter","CONFIG_DIR_NAME","DefaultResourceLoader","NoticeLine","SessionManager","SessionStartTimeoutError","SettingsManager","TASK_MARKS","ToolBlock","ToolBlockGroup","ToolBlockMarkdown","ToolBlockRecords","agentWakeDispatcher","applyAssistantMessageDelta","beginStreamingAssistantMessage","bindTaskResumer","buildSkillCatalogAsync","builtinToolBlockPresentation","clickableHintText","clickableKeyTextHint","containProcessTree","continueSessionWhereItWorked","createAgentSession","createChildProcessEnvironment","createGitEnvironment","currentWorktreeRootMappings","emptySkillCatalog","ensurePrivateTempDirAsync","errorMessage","findSessionStartError","finishedSubagentResumeText","formatModelReferenceLabel","formatNoUsableModelMessage","formatTokenCount","formatTokenSegment","getAgentConfigPaths","getAgentDir","getAgentDirs","getBuiltinPackagePaths","getEnvValue","getMarkdownTheme","getProjectConfigDirs","getSkillCatalog","getSupportedThinkingLevels","hasRecordedTransformedPrompt","initTheme","isPathInside","isRetryableModelFailure","isRetryableStorageError","isSessionStartConfigError","isSessionStartTimeoutError","isStaleExtensionContextError","isTaskTurnInterrupted","isToolBlock","keyHint","keyHintIfBound","keyText","killChildProcessTree","mapRestoredPathAsync","markDetachedChildExited","modelFailureMessage","navEntryKeyParts","navEntryKeys","normalizeModelFailureSignal","parseFrontmatter","parseSessionStartTimeoutMs","publishExtensionContextEffect","ranOnModelLine","readRuntimeIntercomGroup","registerExtensionContextRetirementEffect","reportDebugAsync","resolveAutoModel","resolveFallbackModel","resolveInstalledGit","resumableSubagentResult","savedProjectTrustAsync","serializeSessionStartError","sessionResumeOptions","sessionStartStepText","slashCommandHint","sliceHead","spanElapsedMs","startedAsFork","subagentResumeId","trackDetachedChildPid","untrackDetachedChildPid","validateTaskHeartbeatMs","watchHeldPromptAttention","withTaskTranscriptArchive","withWorktreeRootMappings"]], [__atomicHostImport1, "@bastani/atomic/storage", ["readSessionChildCatalog","readSessionHistory","readSessionHistoryChunks"]], [__atomicHostImport2, "@bastani/atomic-natives", ["SubagentControl","TaskSupervisor","renameNoReplaceAsync","tryAdvisoryLockAsync"]], [__atomicHostImport3, "@bastani/atomic-ai/compat", ["clampThinkingLevel","getSupportedThinkingLevels"]], [__atomicHostImport4, "@bastani/atomic-ai", ["Type"]]])
|
|
8
|
+
for (const [namespace, specifier, names] of [[__atomicHostImport0, "@bastani/atomic", ["APP_NAME","AgentTokenMeter","CONFIG_DIR_NAME","DefaultResourceLoader","NoticeLine","SessionManager","SessionStartTimeoutError","SettingsManager","TASK_MARKS","ToolBlock","ToolBlockGroup","ToolBlockMarkdown","ToolBlockRecords","agentWakeDispatcher","applyAssistantMessageDelta","beginStreamingAssistantMessage","bindTaskResumer","buildSkillCatalogAsync","builtinToolBlockPresentation","clickableHintText","clickableKeyTextHint","containProcessTree","continueSessionWhereItWorked","createAgentSession","createChildProcessEnvironment","createGitEnvironment","currentWorktreeRootMappings","emptySkillCatalog","ensurePrivateTempDirAsync","errorMessage","findSessionStartError","finishedSubagentResumeText","formatModelReferenceLabel","formatNoUsableModelMessage","formatTokenCount","formatTokenSegment","getAgentConfigPaths","getAgentDir","getAgentDirs","getBuiltinPackagePaths","getEnvValue","getMarkdownTheme","getProjectConfigDirs","getSkillCatalog","getSupportedThinkingLevels","hasRecordedTransformedPrompt","initTheme","isPathInside","isRetryableModelFailure","isRetryableStorageError","isSessionStartConfigError","isSessionStartTimeoutError","isStaleExtensionContextError","isTaskTurnInterrupted","isToolBlock","keyHint","keyHintIfBound","keyText","killChildProcessTree","mapRestoredPathAsync","markDetachedChildExited","modelFailureMessage","navEntryKeyParts","navEntryKeys","normalizeModelFailureSignal","parseFrontmatter","parseSessionStartTimeoutMs","publishExtensionContextEffect","ranOnModelLine","readRuntimeIntercomGroup","registerExtensionContextRetirementEffect","reportDebugAsync","resolveAutoModel","resolveFallbackModel","resolveInstalledGit","resumableSubagentResult","savedProjectTrustAsync","serializeSessionStartError","sessionResumeOptions","sessionStartStepText","slashCommandHint","sliceHead","spanElapsedMs","startedAsFork","subagentResumeId","terminalDisplayText","trackDetachedChildPid","untrackDetachedChildPid","validateTaskHeartbeatMs","watchHeldPromptAttention","withTaskTranscriptArchive","withWorktreeRootMappings"]], [__atomicHostImport1, "@bastani/atomic/storage", ["readSessionChildCatalog","readSessionHistory","readSessionHistoryChunks"]], [__atomicHostImport2, "@bastani/atomic-natives", ["SubagentControl","TaskSupervisor","renameNoReplaceAsync","tryAdvisoryLockAsync"]], [__atomicHostImport3, "@bastani/atomic-ai/compat", ["clampThinkingLevel","getSupportedThinkingLevels"]], [__atomicHostImport4, "@bastani/atomic-ai", ["Type"]]])
|
|
9
9
|
for (const name of names)
|
|
10
10
|
if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
|
|
11
11
|
if (missing.length > 0) {
|
|
12
12
|
const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
|
|
13
|
-
if (__atomicHostImport0.VERSION !== "0.10.
|
|
13
|
+
if (__atomicHostImport0.VERSION !== "0.10.20-alpha.2") missing.unshift(application + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using the subagents extension.");
|
|
14
14
|
throw new Error(missing.join("\n"));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -35404,6 +35404,7 @@ function subagentResultRenderKey(result, options) {
|
|
|
35404
35404
|
}
|
|
35405
35405
|
|
|
35406
35406
|
// dist/builtin/subagents/src/tui/render-status.ts
|
|
35407
|
+
import * as atomicHost from "@bastani/atomic";
|
|
35407
35408
|
import { keyHintIfBound as keyHintIfBound2, TASK_MARKS as TASK_MARKS3 } from "@bastani/atomic";
|
|
35408
35409
|
var COMPACT_CHILD_LIMIT = 6;
|
|
35409
35410
|
var statusStyles = {
|
|
@@ -35455,9 +35456,9 @@ function statusLines2(groups, expanded, theme, width) {
|
|
|
35455
35456
|
lines.push(theme.fg("muted", "No subagents"));
|
|
35456
35457
|
if (shown < total)
|
|
35457
35458
|
lines.push(theme.fg("muted", `… ${total - shown} more agents`));
|
|
35458
|
-
const hint = !expanded && keyHintIfBound2("app.tools.expand", "to expand");
|
|
35459
|
+
const hint = !expanded && (total > 0 || groups.length > 1) ? atomicHost.toolBlockExpandHint?.() ?? keyHintIfBound2("app.tools.expand", "to expand") : "";
|
|
35459
35460
|
if (hint)
|
|
35460
|
-
lines.push(
|
|
35461
|
+
lines.push(hint);
|
|
35461
35462
|
return lines;
|
|
35462
35463
|
}
|
|
35463
35464
|
function renderSubagentStatus(groups, expanded, theme) {
|
|
@@ -36074,6 +36075,7 @@ CONTROL:
|
|
|
36074
36075
|
• id accepts the child id (<runId>:<index>), its task id, its Intercom name, or the run id of a single-child run. kill and interrupt were removed: use quit`;
|
|
36075
36076
|
|
|
36076
36077
|
// dist/builtin/subagents/src/extension/tool-rendering.ts
|
|
36078
|
+
import * as atomicHost2 from "@bastani/atomic";
|
|
36077
36079
|
import {
|
|
36078
36080
|
builtinToolBlockPresentation,
|
|
36079
36081
|
clickableKeyTextHint as clickableKeyTextHint2,
|
|
@@ -36091,7 +36093,8 @@ import {
|
|
|
36091
36093
|
ToolBlock,
|
|
36092
36094
|
ToolBlockGroup,
|
|
36093
36095
|
ToolBlockMarkdown,
|
|
36094
|
-
ToolBlockRecords
|
|
36096
|
+
ToolBlockRecords,
|
|
36097
|
+
terminalDisplayText
|
|
36095
36098
|
} from "@bastani/atomic";
|
|
36096
36099
|
var SHORT_TITLE_CHARS = 60;
|
|
36097
36100
|
var TOOL_DISPLAY_NAMES = {
|
|
@@ -36251,17 +36254,36 @@ function ensureGlobalTheme() {
|
|
|
36251
36254
|
|
|
36252
36255
|
class OneLine {
|
|
36253
36256
|
text;
|
|
36254
|
-
|
|
36257
|
+
hasHiddenDetails;
|
|
36258
|
+
constructor(text, hasHiddenDetails = false) {
|
|
36255
36259
|
this.text = text;
|
|
36260
|
+
this.hasHiddenDetails = hasHiddenDetails;
|
|
36256
36261
|
}
|
|
36257
36262
|
isWorking() {
|
|
36258
36263
|
return typeof this.text === "function";
|
|
36259
36264
|
}
|
|
36260
36265
|
invalidate() {}
|
|
36261
36266
|
render(width) {
|
|
36262
|
-
|
|
36267
|
+
if (width < 1)
|
|
36268
|
+
return [];
|
|
36269
|
+
const text = typeof this.text === "string" ? this.text : this.text();
|
|
36270
|
+
const preview = this.hasHiddenDetails ? atomicHost2.toolBlockPreviewLine?.(text, width, true) : undefined;
|
|
36271
|
+
return [preview ?? truncateToWidth(text, width, "…")];
|
|
36263
36272
|
}
|
|
36264
36273
|
}
|
|
36274
|
+
function managementPreview(text, style, hasDetails) {
|
|
36275
|
+
const newline = text.indexOf(`
|
|
36276
|
+
`);
|
|
36277
|
+
const first = style(newline === -1 ? text : text.slice(0, newline));
|
|
36278
|
+
const preview = newline === -1 ? first : first + text.slice(newline);
|
|
36279
|
+
return {
|
|
36280
|
+
invalidate() {},
|
|
36281
|
+
render: (width) => [
|
|
36282
|
+
atomicHost2.toolBlockPreviewLine?.(preview, width, hasDetails?.(width)) ?? truncateToWidth(first, width, "…")
|
|
36283
|
+
]
|
|
36284
|
+
};
|
|
36285
|
+
}
|
|
36286
|
+
var managementText = (text) => terminalDisplayText(text).replaceAll("\t", " ").trim();
|
|
36265
36287
|
var displayText2 = (text) => text.replace(/\x1b\[[0-?]*[ -/]*[@-~]/g, "").replace(/[\x00-\x1f\x7f-\x9f]/g, " ");
|
|
36266
36288
|
var firstDisplayLine = (text) => displayText2(firstOutputLine(text)).trim();
|
|
36267
36289
|
function shortSubagentTaskTitle(title) {
|
|
@@ -36725,7 +36747,8 @@ function buildOutcomeToolBlock(input) {
|
|
|
36725
36747
|
buildToolBlocks: () => [],
|
|
36726
36748
|
failureText: outcome.reason.error.message,
|
|
36727
36749
|
theme
|
|
36728
|
-
}) : new OneLine(statusLine
|
|
36750
|
+
}) : new OneLine(statusLine, Boolean(promptText || outcome.reason.error.message.includes(`
|
|
36751
|
+
`))),
|
|
36729
36752
|
outputPad: context.outputPad
|
|
36730
36753
|
});
|
|
36731
36754
|
return new DynamicToolBlock(() => ({ block, working: false }));
|
|
@@ -36741,7 +36764,7 @@ function buildOutcomeToolBlock(input) {
|
|
|
36741
36764
|
promptText,
|
|
36742
36765
|
buildToolBlocks: () => [],
|
|
36743
36766
|
theme
|
|
36744
|
-
}) : new OneLine(statusLine),
|
|
36767
|
+
}) : new OneLine(statusLine, Boolean(promptText)),
|
|
36745
36768
|
outputPad: context.outputPad
|
|
36746
36769
|
});
|
|
36747
36770
|
return new DynamicToolBlock(() => ({ block, working: false }));
|
|
@@ -36878,7 +36901,7 @@ function buildOutcomeToolBlock(input) {
|
|
|
36878
36901
|
status,
|
|
36879
36902
|
title: "Agent",
|
|
36880
36903
|
args,
|
|
36881
|
-
details: new OneLine(statusLine),
|
|
36904
|
+
details: new OneLine(statusLine, Boolean(promptText || record || failure || extractInlineSettledOutput(result, activeTaskId))),
|
|
36882
36905
|
outputPad: context.outputPad
|
|
36883
36906
|
}),
|
|
36884
36907
|
working
|
|
@@ -37002,7 +37025,7 @@ function buildForegroundChildToolBlock(input) {
|
|
|
37002
37025
|
status,
|
|
37003
37026
|
title: "Agent",
|
|
37004
37027
|
args,
|
|
37005
|
-
details: new OneLine(statusLine),
|
|
37028
|
+
details: new OneLine(statusLine, Boolean(rawTask || output || child?.error || child?.toolCalls?.length || child?.messages?.length || live)),
|
|
37006
37029
|
outputPad
|
|
37007
37030
|
});
|
|
37008
37031
|
}
|
|
@@ -37079,11 +37102,12 @@ function renderSubagentToolResult(result, options, theme, context) {
|
|
|
37079
37102
|
}
|
|
37080
37103
|
const runControl = result.details?.runControl;
|
|
37081
37104
|
if (runControl) {
|
|
37082
|
-
const
|
|
37105
|
+
const outcome = managementText(result.content.find((part) => part.type === "text")?.text ?? "");
|
|
37106
|
+
const message = managementText(runControl.message ?? "");
|
|
37083
37107
|
const failed = context.isError === true || result.isError === true;
|
|
37084
|
-
|
|
37085
|
-
|
|
37086
|
-
const lines = runControl.children.map((child) => {
|
|
37108
|
+
const output = new Container;
|
|
37109
|
+
const structured = !failed && runControl.children.length > 0;
|
|
37110
|
+
const lines = (structured ? runControl.children : []).map((child) => {
|
|
37087
37111
|
const mark = child.state === "running" || child.state === "finishing" ? TASK_MARKS4.running : TASK_MARKS4.stopped;
|
|
37088
37112
|
const words = child.state === "running" ? theme.fg("success", `Resumed · ${displayText2(child.agent)}`) : theme.fg("muted", `${child.state === "finishing" ? "Finishing worktree cleanup" : child.state === "paused" ? "Paused" : "Quit (resumable)"} · ${displayText2(child.agent)}`);
|
|
37089
37113
|
const state = `${theme.fg(mark.color, mark.glyph)} ${words}`;
|
|
@@ -37092,10 +37116,37 @@ function renderSubagentToolResult(result, options, theme, context) {
|
|
|
37092
37116
|
return `${state}${identity}${child.state === "running" ? theme.fg("dim", `
|
|
37093
37117
|
continues in its original launch card`) : ""}`;
|
|
37094
37118
|
});
|
|
37095
|
-
if (
|
|
37096
|
-
|
|
37097
|
-
|
|
37098
|
-
|
|
37119
|
+
if (lines.length > 0)
|
|
37120
|
+
output.addChild(new Text(lines.join(`
|
|
37121
|
+
`), 0, 0));
|
|
37122
|
+
const status = `${failed ? "✗ " : ""}${outcome}`;
|
|
37123
|
+
const style = (line) => theme.fg(failed ? "error" : "dim", line);
|
|
37124
|
+
if (options.expanded) {
|
|
37125
|
+
if (status)
|
|
37126
|
+
output.addChild(new Text(style(status), 0, 0));
|
|
37127
|
+
if (message)
|
|
37128
|
+
output.addChild(new Text(`${theme.bold("Message")}
|
|
37129
|
+
${theme.fg("muted", message)}`, 0, 0));
|
|
37130
|
+
} else {
|
|
37131
|
+
if (!structured && status) {
|
|
37132
|
+
if (message)
|
|
37133
|
+
output.addChild(new OneLine(style(status.split(`
|
|
37134
|
+
`, 1)[0] ?? "")));
|
|
37135
|
+
else
|
|
37136
|
+
output.addChild(managementPreview(status, style));
|
|
37137
|
+
}
|
|
37138
|
+
const hidesOutcome = structured && Boolean(outcome || runControl.children.some((child) => child.taskId));
|
|
37139
|
+
if (message) {
|
|
37140
|
+
const hidesStatus = (width) => hidesOutcome || !structured && (status.includes(`
|
|
37141
|
+
`) || visibleWidth(status) > width);
|
|
37142
|
+
output.addChild(managementPreview(`Message · ${message}`, (line) => theme.fg("muted", line), hidesStatus));
|
|
37143
|
+
} else if (hidesOutcome) {
|
|
37144
|
+
const hint = atomicHost2.toolBlockExpandHint?.();
|
|
37145
|
+
if (hint)
|
|
37146
|
+
output.addChild(new Text(hint, 0, 0));
|
|
37147
|
+
}
|
|
37148
|
+
}
|
|
37149
|
+
return output;
|
|
37099
37150
|
}
|
|
37100
37151
|
if (result.details?.taskRecords && !result.details.taskResponse) {
|
|
37101
37152
|
const lines = result.details.taskRecords.flatMap((task) => {
|
|
@@ -37110,6 +37161,11 @@ function renderSubagentToolResult(result, options, theme, context) {
|
|
|
37110
37161
|
...task.execution.kind === "settled" && task.execution.result.kind === "failed" ? [theme.fg("error", displayText2(task.execution.result.message))] : []
|
|
37111
37162
|
];
|
|
37112
37163
|
});
|
|
37164
|
+
if (!options.expanded && lines.length > 0) {
|
|
37165
|
+
const hint = atomicHost2.toolBlockExpandHint?.();
|
|
37166
|
+
if (hint)
|
|
37167
|
+
lines.push(hint);
|
|
37168
|
+
}
|
|
37113
37169
|
return new Text(lines.join(`
|
|
37114
37170
|
`), 0, 0);
|
|
37115
37171
|
}
|
|
@@ -37119,7 +37175,26 @@ function renderSubagentToolResult(result, options, theme, context) {
|
|
|
37119
37175
|
const observation = response.observation;
|
|
37120
37176
|
const state = observation.kind === "yielded" ? "Still running in background" : observation.result.kind === "completed" ? "Completed" : observation.result.kind === "failed" ? `Failed · ${firstDisplayLine(observation.result.message)}` : subagentTaskResultLabel(observation.result);
|
|
37121
37177
|
const color = observation.kind === "yielded" ? "accent" : observation.result.kind === "failed" ? "error" : observation.result.kind === "completed" ? "success" : "warning";
|
|
37122
|
-
|
|
37178
|
+
const text = result.content.find((part) => part.type === "text")?.text ?? "";
|
|
37179
|
+
const bodyStart = text.indexOf(`
|
|
37180
|
+
|
|
37181
|
+
`);
|
|
37182
|
+
const failure = observation.kind === "settled" && observation.result.kind === "failed" ? managementText(observation.result.message) : "";
|
|
37183
|
+
const detail = [
|
|
37184
|
+
failure.includes(`
|
|
37185
|
+
`) ? failure : "",
|
|
37186
|
+
bodyStart === -1 ? "" : managementText(text.slice(bodyStart + 2))
|
|
37187
|
+
].filter(Boolean).join(`
|
|
37188
|
+
|
|
37189
|
+
`);
|
|
37190
|
+
const summary = new Text(theme.fg(color, state), 0, 0);
|
|
37191
|
+
if (!detail)
|
|
37192
|
+
return summary;
|
|
37193
|
+
const output = new Container;
|
|
37194
|
+
output.addChild(summary);
|
|
37195
|
+
const style = (line) => theme.fg("muted", line);
|
|
37196
|
+
output.addChild(options.expanded ? new Text(style(detail), 0, 0) : managementPreview(detail, style));
|
|
37197
|
+
return output;
|
|
37123
37198
|
}
|
|
37124
37199
|
const outcomes = response.kind === "parallel" ? response.slots.map((slot) => slot.outcome) : [response];
|
|
37125
37200
|
const labels = request && !burst ? expandParallelTasks(request) : [];
|
|
@@ -37135,6 +37210,10 @@ function renderSubagentToolResult(result, options, theme, context) {
|
|
|
37135
37210
|
return blocks.length === 1 ? blocks[0] : new DynamicToolBlockGroup(blocks);
|
|
37136
37211
|
}
|
|
37137
37212
|
const text = result.content.find((part) => part.type === "text");
|
|
37213
|
+
if (request?.action === "wait" && result.details?.mode === "management" && text) {
|
|
37214
|
+
const outcome = managementText(text.text);
|
|
37215
|
+
return options.expanded ? new Text(outcome, 0, 0) : managementPreview(outcome, (line) => line);
|
|
37216
|
+
}
|
|
37138
37217
|
if (text?.type === "text" && text.text.startsWith("Executable agents:")) {
|
|
37139
37218
|
const count = text.text.split(`
|
|
37140
37219
|
`).filter((line) => line.startsWith("- ") && line !== "- (none)").length;
|
|
@@ -8,7 +8,7 @@ import * as __atomicHostImport2 from "@bastani/atomic-ai/compat";
|
|
|
8
8
|
if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
|
|
9
9
|
if (missing.length > 0) {
|
|
10
10
|
const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
|
|
11
|
-
if (__atomicHostImport0.VERSION !== "0.10.
|
|
11
|
+
if (__atomicHostImport0.VERSION !== "0.10.20-alpha.2") missing.unshift(application + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using the web-access extension.");
|
|
12
12
|
throw new Error(missing.join("\n"));
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -3754,6 +3754,7 @@ import {
|
|
|
3754
3754
|
TOOL_BLOCK_LIMITS,
|
|
3755
3755
|
terminalDisplayText
|
|
3756
3756
|
} from "@bastani/atomic";
|
|
3757
|
+
import * as atomicHost from "@bastani/atomic";
|
|
3757
3758
|
function isTextContentBlock(block) {
|
|
3758
3759
|
return block.type === "text";
|
|
3759
3760
|
}
|
|
@@ -3831,6 +3832,10 @@ function parseSources(rawText, details) {
|
|
|
3831
3832
|
}
|
|
3832
3833
|
return sources;
|
|
3833
3834
|
}
|
|
3835
|
+
function summaryWithDisclosure(summary, hidden) {
|
|
3836
|
+
const hint = hidden ? atomicHost.toolBlockExpandHint?.() : undefined;
|
|
3837
|
+
return hint ? `${summary} ${hint}` : summary;
|
|
3838
|
+
}
|
|
3834
3839
|
function renderWebAccessToolResult(name, args) {
|
|
3835
3840
|
switch (name) {
|
|
3836
3841
|
case "web_search":
|
|
@@ -3868,13 +3873,14 @@ var renderWebSearchResult = (result, { expanded, isPartial }, theme) => {
|
|
|
3868
3873
|
const summaryLine = theme.fg("text", `${theme.bold(String(totalResults))} ${totalResults === 1 ? "result" : "results"}`);
|
|
3869
3874
|
if (sources.length > 0) {
|
|
3870
3875
|
const sourceRows = sources.map((source) => source.host ? `${theme.fg("toolOutput", source.title)}${theme.fg("dim", ` · ${source.host}`)}` : theme.fg("toolOutput", source.title));
|
|
3876
|
+
const extraLines = rawText.split(`
|
|
3877
|
+
`).map((line) => line.trimEnd()).filter((line) => line.trim() !== "" && line.trim() !== "---" && line.trim() !== "**Sources:**" && !/^\d+\.\s+/.test(line.trim()) && !/^https?:\/\/\S+$/.test(line.trim())).map((line) => theme.fg("toolOutput", line));
|
|
3871
3878
|
if (!expanded) {
|
|
3872
3879
|
const collapsed = collapseToolBlockLines(sourceRows, TOOL_BLOCK_LIMITS.web, false);
|
|
3873
|
-
|
|
3880
|
+
const hiddenAnswer = sourceRows.length <= TOOL_BLOCK_LIMITS.web && extraLines.length > 0;
|
|
3881
|
+
return new Text([summaryWithDisclosure(summaryLine, hiddenAnswer), ...collapsed].join(`
|
|
3874
3882
|
`), 0, 0);
|
|
3875
3883
|
}
|
|
3876
|
-
const extraLines = rawText.split(`
|
|
3877
|
-
`).map((line) => line.trimEnd()).filter((line) => line.trim() !== "" && line.trim() !== "---" && line.trim() !== "**Sources:**" && !/^\d+\.\s+/.test(line.trim()) && !/^https?:\/\/\S+$/.test(line.trim())).map((line) => theme.fg("toolOutput", line));
|
|
3878
3884
|
return new Text([summaryLine, ...sourceRows, ...extraLines].join(`
|
|
3879
3885
|
`), 0, 0);
|
|
3880
3886
|
}
|
|
@@ -3892,9 +3898,9 @@ var renderWebSearchResult = (result, { expanded, isPartial }, theme) => {
|
|
|
3892
3898
|
return new Text(theme.fg("error", singleLine(details.error).replace(/^Error:\s*/i, "")), 0, 0);
|
|
3893
3899
|
}
|
|
3894
3900
|
const summary = theme.fg("text", "DeepWiki answer returned") + theme.fg("dim", ` · ~${details?.maxTokens ?? 5000} tokens max`);
|
|
3895
|
-
if (!expanded)
|
|
3896
|
-
return new Text(summary, 0, 0);
|
|
3897
3901
|
const textContent = firstTextContent(result);
|
|
3902
|
+
if (!expanded)
|
|
3903
|
+
return new Text(summaryWithDisclosure(summary, Boolean(textContent.trim())), 0, 0);
|
|
3898
3904
|
const lines = textContent.split(`
|
|
3899
3905
|
`).filter((line) => line.trim() !== "").map((line) => theme.fg("toolOutput", line));
|
|
3900
3906
|
return new Text([summary, ...lines].join(`
|
|
@@ -3916,7 +3922,7 @@ var renderWebSearchResult = (result, { expanded, isPartial }, theme) => {
|
|
|
3916
3922
|
const format = details?.format ?? (details?.frames !== undefined || details?.timestamp !== undefined || typeof details?.duration === "number" ? "video" : /\.pdf(?:$|[?#])/i.test(firstUrl) ? "pdf" : "markdown");
|
|
3917
3923
|
const summaryLine = `${theme.fg("text", `Fetched ${theme.bold(formatByteSize(bytes))}`)}${theme.fg("dim", ` · ${format}`)}`;
|
|
3918
3924
|
if (!expanded) {
|
|
3919
|
-
return new Text(summaryLine, 0, 0);
|
|
3925
|
+
return new Text(summaryWithDisclosure(summaryLine, /[^\n]/u.test(rawText)), 0, 0);
|
|
3920
3926
|
}
|
|
3921
3927
|
const bodyLines = rawText.replace(/\n+$/, "").split(`
|
|
3922
3928
|
`).filter((line) => line !== "").map((line) => theme.fg("toolOutput", line));
|
|
@@ -3935,10 +3941,10 @@ var renderWebSearchResult = (result, { expanded, isPartial }, theme) => {
|
|
|
3935
3941
|
const bytes = details?.contentLength ?? 0;
|
|
3936
3942
|
statusLine = `${theme.fg("text", `Fetched ${theme.bold(formatByteSize(bytes))}`)}${theme.fg("dim", " · markdown")}`;
|
|
3937
3943
|
}
|
|
3944
|
+
const textContent = firstTextContent(result);
|
|
3938
3945
|
if (!expanded) {
|
|
3939
|
-
return new Text(statusLine, 0, 0);
|
|
3946
|
+
return new Text(summaryWithDisclosure(statusLine, /[^\n]/u.test(textContent)), 0, 0);
|
|
3940
3947
|
}
|
|
3941
|
-
const textContent = firstTextContent(result);
|
|
3942
3948
|
const lines = textContent.replace(/\n+$/, "").split(`
|
|
3943
3949
|
`).filter((line) => line !== "").map((line) => theme.fg("toolOutput", line));
|
|
3944
3950
|
return new Text([statusLine, ...lines].join(`
|
package/dist/cli/args.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { isValidThinkingLevel } from "../_shared/startup-0-0-
|
|
3
|
-
import { insertForcedOptionsBeforeTerminator, parseArgs, printHelp } from "../_shared/startup-0-1-
|
|
2
|
+
import { isValidThinkingLevel } from "../_shared/startup-0-0-OWBJIX35.js";
|
|
3
|
+
import { insertForcedOptionsBeforeTerminator, parseArgs, printHelp } from "../_shared/startup-0-1-DZYE4E5Z.js";
|
|
4
4
|
export { insertForcedOptionsBeforeTerminator, isValidThinkingLevel, parseArgs, printHelp };
|
|
5
5
|
//# sourceMappingURL=args.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import chalk from "chalk";
|
|
3
3
|
import { APP_NAME, ENV_DEBUG, getAgentDir, getAuthPath, setEnvValue } from "../_shared/p0-cli-BB45ZQY6.js";
|
|
4
|
-
import { AuthStorage, ReadOnlyAuthStorage } from "../_shared/startup-0-4-
|
|
5
|
-
import { CredentialSynchronizationError, ModelRuntime, isOAuthLoginCancelled } from "../_shared/startup-0-5-
|
|
6
|
-
import { RawStdoutWriteError, flushRawStdout, restoreStdout, takeOverStdout, writeRawStdout, writeRawStdoutOnce } from "../_shared/startup-0-0-
|
|
7
|
-
import { findExactModelReferenceMatch, resolveModelReference } from "../_shared/startup-0-2-
|
|
8
|
-
import { SettingsManager } from "../_shared/startup-8-1-
|
|
9
|
-
import { parseArgs } from "../_shared/startup-0-1-
|
|
4
|
+
import { AuthStorage, ReadOnlyAuthStorage } from "../_shared/startup-0-4-6XXL4JMZ.js";
|
|
5
|
+
import { CredentialSynchronizationError, ModelRuntime, isOAuthLoginCancelled } from "../_shared/startup-0-5-DNS6FYS7.js";
|
|
6
|
+
import { RawStdoutWriteError, flushRawStdout, restoreStdout, takeOverStdout, writeRawStdout, writeRawStdoutOnce } from "../_shared/startup-0-0-OWBJIX35.js";
|
|
7
|
+
import { findExactModelReferenceMatch, resolveModelReference } from "../_shared/startup-0-2-WFLTE4SC.js";
|
|
8
|
+
import { SettingsManager } from "../_shared/startup-8-1-VXBL37AI.js";
|
|
9
|
+
import { parseArgs } from "../_shared/startup-0-1-DZYE4E5Z.js";
|
|
10
10
|
import { ModelsError } from "@bastani/atomic-ai";
|
|
11
11
|
import { InMemoryCodingAgentModelsStore, resolveCliModel } from "../_shared/startup-0-3-DE2NCS6A.js";
|
|
12
12
|
import { extractBearerToken, redactCredentialShapes } from "../_shared/p1b-elig-BY2G5BUE.js";
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/cli/auth-cli.js
CHANGED
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -4,13 +4,13 @@ import { APP_NAME, VERSION, getAgentDir, getExtensionTranspileCacheDir, getProje
|
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
5
5
|
import { lstat, mkdir, readFile, rm, stat } from "node:fs/promises";
|
|
6
6
|
import { homedir } from "node:os";
|
|
7
|
-
import { SettingsManager, blueprintRepository, resumeStoreDir, runBlueprintBuild } from "../_shared/startup-8-1-
|
|
8
|
-
import { admitPooledWorktree, blueprintPlatformOf, captureWorktreeSnapshot, discardPooledWorktree, evictIdleWorktrees, insideThroughDirectories, isDeniedSnapshotPath, nulFields, objectStorePath, parseBlueprint, readRepositoryConfig, releaseRestoredWorktree, removeRestoredWorktree, restoreWorktreeAt, runGit, seedDirectory, seedManifestPath, seedPathSegments, storeCheckoutHead, withSeedLock, writeSeedManifest } from "../_shared/startup-0-5-
|
|
7
|
+
import { SettingsManager, blueprintRepository, resumeStoreDir, runBlueprintBuild } from "../_shared/startup-8-1-VXBL37AI.js";
|
|
8
|
+
import { admitPooledWorktree, blueprintPlatformOf, captureWorktreeSnapshot, discardPooledWorktree, evictIdleWorktrees, insideThroughDirectories, isDeniedSnapshotPath, nulFields, objectStorePath, parseBlueprint, readRepositoryConfig, releaseRestoredWorktree, removeRestoredWorktree, restoreWorktreeAt, runGit, seedDirectory, seedManifestPath, seedPathSegments, storeCheckoutHead, withSeedLock, writeSeedManifest } from "../_shared/startup-0-5-DNS6FYS7.js";
|
|
9
9
|
import { computeEnvironmentHash, sha256Hex } from "../_shared/startup-0-3-DE2NCS6A.js";
|
|
10
|
-
import { canonicalizeWorktreePath, repositoryIdOf, sharedRepositoryIdOf } from "../_shared/startup-0-4-
|
|
10
|
+
import { canonicalizeWorktreePath, repositoryIdOf, sharedRepositoryIdOf } from "../_shared/startup-0-4-6XXL4JMZ.js";
|
|
11
11
|
import { ProjectTrustStore, renameWithRetry } from "../_shared/p1b-elig-BY2G5BUE.js";
|
|
12
12
|
import { MemorySnapshotBlobStore } from "../core/worktree-snapshot/blob-store.js";
|
|
13
|
-
import { ResumeTimingsRecorder, formatResumeTimings, timeCheckoutRestore } from "../_shared/startup-0-1-
|
|
13
|
+
import { ResumeTimingsRecorder, formatResumeTimings, timeCheckoutRestore } from "../_shared/startup-0-1-DZYE4E5Z.js";
|
|
14
14
|
// dist/core/resume/blueprint/cache-stores.js
|
|
15
15
|
/**
|
|
16
16
|
* The package-manager stores `atomic blueprint cache-key` detects (#4748): which lockfiles at the repository root name a
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME } from "../_shared/p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { processStorageEnvironment } from "../_shared/startup-0-2-
|
|
3
|
+
import { processStorageEnvironment } from "../_shared/startup-0-2-WFLTE4SC.js";
|
|
4
4
|
// dist/cli/intercom-command.js
|
|
5
5
|
/**
|
|
6
6
|
* `atomic intercom restart` replaces the agent directory's Intercom broker, so it reads the current storage
|
|
@@ -112,7 +112,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
112
112
|
return (async () => {
|
|
113
113
|
const root = new URL("../", import.meta.url);
|
|
114
114
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
115
|
-
const key = `${root.href}#0.10.
|
|
115
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
116
116
|
let release = releases.get(key);
|
|
117
117
|
if (release === undefined) {
|
|
118
118
|
const current = (async () => {
|
|
@@ -140,7 +140,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
140
140
|
} catch {
|
|
141
141
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
142
142
|
}
|
|
143
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
143
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.20-alpha.2" ? installed : running !== undefined && running.version !== "0.10.20-alpha.2" ? "0.10.20-alpha.2" : undefined;
|
|
144
144
|
if (updatedTo === undefined) throw error;
|
|
145
145
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
146
146
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using intercom.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using intercom.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { fuzzyFilter } from "@bastani/atomic-tui";
|
|
3
3
|
import chalk from "chalk";
|
|
4
|
-
import { formatNoModelsAvailableMessage, formatTokenCount } from "../_shared/startup-0-0-
|
|
5
|
-
import { formatModelLabel } from "../_shared/startup-0-4-
|
|
6
|
-
import { thinkingLevelForModelSwitch } from "../_shared/startup-0-1-
|
|
4
|
+
import { formatNoModelsAvailableMessage, formatTokenCount } from "../_shared/startup-0-0-OWBJIX35.js";
|
|
5
|
+
import { formatModelLabel } from "../_shared/startup-0-4-6XXL4JMZ.js";
|
|
6
|
+
import { thinkingLevelForModelSwitch } from "../_shared/startup-0-1-DZYE4E5Z.js";
|
|
7
7
|
import { getModelSearchText } from "../_shared/mode-shared-2QJSCUM6.js";
|
|
8
8
|
// dist/cli/list-models.js
|
|
9
9
|
/**
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/cli/list-models.js
CHANGED
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -3,8 +3,8 @@ import { ProcessTerminal, TuiMainScreen, setCapabilityOverrides, setKeybindings
|
|
|
3
3
|
import { getAgentDir } from "../_shared/p0-cli-BB45ZQY6.js";
|
|
4
4
|
import { KeybindingsManager as KeybindingsManager$1, keepStartupDialogDraft, withEarlyInputHeldForStartupDialog } from "../_shared/p2-shell-main-B2WIALFD.js";
|
|
5
5
|
import { SessionSelectorComponent } from "../_shared/mode-shared-2QJSCUM6.js";
|
|
6
|
-
import { STARTUP_DECISION_TYPED_TEXT_NOTICE, TrustDecisionSelector } from "../_shared/startup-0-0-
|
|
7
|
-
import { StartupDialogInputGuard } from "../_shared/startup-0-2-
|
|
6
|
+
import { STARTUP_DECISION_TYPED_TEXT_NOTICE, TrustDecisionSelector } from "../_shared/startup-0-0-OWBJIX35.js";
|
|
7
|
+
import { StartupDialogInputGuard } from "../_shared/startup-0-2-WFLTE4SC.js";
|
|
8
8
|
// dist/cli/session-picker.js
|
|
9
9
|
/**
|
|
10
10
|
* TUI session selector for --resume flag
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|