@bastani/atomic 0.10.20-alpha.1 → 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 +35 -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 +72 -39
- package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +57 -18
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +59 -14
- 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 +4 -4
- package/dist/_shared/sdk-5ZFNDXUJ.js +208 -54
- package/dist/_shared/sdk-5ZFNDXUJ.js.map +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +14 -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-FPPQF42L.js → startup-0-0-OWBJIX35.js} +161 -86
- package/dist/_shared/startup-0-0-OWBJIX35.js.map +1 -0
- package/dist/_shared/{startup-0-1-Q7GBLBEL.js → startup-0-1-DZYE4E5Z.js} +321 -17
- package/dist/_shared/startup-0-1-DZYE4E5Z.js.map +1 -0
- package/dist/_shared/{startup-0-2-JNYN24UI.js → startup-0-2-WFLTE4SC.js} +113 -6
- package/dist/_shared/startup-0-2-WFLTE4SC.js.map +1 -0
- package/dist/_shared/startup-0-3-DE2NCS6A.js +47 -23
- package/dist/_shared/startup-0-3-DE2NCS6A.js.map +1 -1
- package/dist/_shared/{startup-0-4-ZZXFKE55.js → startup-0-4-6XXL4JMZ.js} +37 -13
- package/dist/_shared/startup-0-4-6XXL4JMZ.js.map +1 -0
- package/dist/_shared/{startup-0-5-WN2IYA25.js → startup-0-5-DNS6FYS7.js} +126 -150
- package/dist/_shared/startup-0-5-DNS6FYS7.js.map +1 -0
- package/dist/_shared/startup-10-0-O6DAT7U4.js +93 -72
- package/dist/_shared/startup-10-0-O6DAT7U4.js.map +1 -1
- package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +5 -5
- package/dist/_shared/startup-15-0-E7RYG5YF.js +6 -6
- package/dist/_shared/startup-15-1-WQZBOTMZ.js +289 -122
- package/dist/_shared/startup-15-1-WQZBOTMZ.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +263 -145
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/{startup-8-1-QZMXUGHI.js → startup-8-1-VXBL37AI.js} +325 -10
- package/dist/_shared/startup-8-1-VXBL37AI.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +11 -273
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/storage-status-T6FUXRIM.js +4 -4
- 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 +2 -2
- 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 +2 -2
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +2 -2
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/agent-session-runtime.d.ts +14 -3
- 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 +12 -4
- 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 +24 -23
- 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/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +2 -2
- package/dist/core/extensions/runner-context.js +2 -2
- 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/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 +13 -2
- package/dist/core/session-manager-core.js +211 -98
- 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-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager.js +2 -2
- 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/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 +3 -3
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +3 -3
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +8 -4
- 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 -14
- 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.d.ts +4 -3
- 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 +9 -3
- package/dist/core/storage/session/usage-observations.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.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.code.js +1 -1
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +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 +2 -2
- 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.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +5 -2
- package/dist/index.js +7 -7
- 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 +3 -3
- package/dist/modes/interactive-engine/protocol.d.ts +0 -4
- package/dist/modes/rpc/rpc-client-api.d.ts +5 -0
- package/dist/modes/rpc/rpc-types.d.ts +23 -5
- 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 +23 -0
- package/docs/docs.json +1 -1
- package/docs/guides/subscription-usage.md +3 -3
- package/docs/intercom.md +3 -1
- package/docs/json.md +3 -3
- package/docs/providers.md +2 -0
- package/docs/rpc/protocol.md +1 -1
- package/docs/sdk.md +2 -0
- package/docs/sessions.md +36 -1
- package/docs/subagents.md +2 -0
- package/package.json +8 -8
- package/dist/_shared/startup-0-0-FPPQF42L.js.map +0 -1
- package/dist/_shared/startup-0-1-Q7GBLBEL.js.map +0 -1
- package/dist/_shared/startup-0-2-JNYN24UI.js.map +0 -1
- package/dist/_shared/startup-0-4-ZZXFKE55.js.map +0 -1
- package/dist/_shared/startup-0-5-WN2IYA25.js.map +0 -1
- package/dist/_shared/startup-8-1-QZMXUGHI.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __name } from "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME, BUILTIN_PACKAGE_DIR_NAMES, CONFIG_DIR_NAME, ENV_CLEAR_ON_SHRINK, ENV_HARDWARE_CURSOR, INTERACTIVE_ENGINE_BOOTSTRAP_FLAG, addHostStorageAdapter, canonicalizePath as canonicalizePath$1, createChildProcessEnvironment, flushPersistentCompileCache, formatPathRelativeToCwdOrAbsolute, getAgentConfigPaths, getAgentDir, getAgentDirs, getBinDir, getBlueprintActionsDir, getCwdRelativePath, getEnvValue, getGlobalBlueprintPath, getHomeDir, getProjectBlueprintPath, getProjectConfigPaths, getReadmePath, hostStorageAdapter, isBunBinary, isBunRuntime, isChildProcessExitStatusUnknownError, isLocalPath, markLifecycleTiming, normalizePath, removeOwnedInteractiveEngineBootstrapAsync, resolvePath, shortenHomePath, splitBom, stripBom, waitForChildProcess, writeInteractiveEngineBootstrapAsync } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, COMMAND_FOREGROUND_BUDGET_MS, CompactionConfigError, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, EditInputError, EditMatchError, EditTargetError, FileToolAbortedError, HostListenerFailures, LONG_LIVED_COMMANDS, Minimatch, RESTART_CANCELLED_MESSAGE, STALE_EXTENSION_CONTEXT_MESSAGE, ShellTimeoutError, SqliteSelectorConnection, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, TASK_MARKS, TaskMessageError, TaskMessageTimeoutError, WriteSelectorError, activeToolExecutionStarts, allToolNames, announceBlueprintBuildWaiting, applyBashSessionEnvironment, asyncScope, attachJsonlLineReader, attachLineReader, bindSavedTaskOrigins, blueprintBuildShared, canonicalEventBusFor, chatPosition, clearAssignmentIfClosed, clearLockHolder, clearLockHolderAsync, convertBufferWithMarkit, convertFileWithMarkit, createGitEnvironment, defaultToolNamesFor, defineTool, detectSupportedImageMimeTypeFromFile, displayTodoId, expandSearchUrl, experimentalToolSamplingProperty, filterSearchOutputByLineRange, formatReadLineRange as formatReadLineRange$1, formatSelectedLines, formatSize, formatTimeoutSeconds as formatTimeoutSeconds$1, formatTodoId, frozenClocks, getManifestFromPackageJson, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolListError, handOverBuildTimings, holdDeprecationWarnings, holdToolsUntilBuilt, hostInputError, invalidArgText, invalidateNativeSearchCache, isBlueprintError, isGitProvisionError, isGitUnavailableError, isPathInside, isPlainObject as isPlainObject$1, isReadResourceSelector, isReadableUrlPath, isTodoClosed, isToolModifier, isValidBudgetMs, keptTaskHint, linkPath, literalPathLike, loadNativeSearchBinding, mergeReadRanges, nativeModuleProblem, normalizePathLikeInput, normalizeTodoId, normalizeWaitPolicy, noteSavedSeq, originalHistoryNote, prepareLockTakeover, prepareWaitableToolInput, projectTrustHandlerRegistered, projectTrustedBeforeExtensions, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, registerCanonicalEventBus, releaseDeprecationWarnings, renderBlueprintContext, renderToolPath, replaceTabs, reportContained, resolvePhysicalPathAsync, savedReadLines, scopedBackgroundTasks, searchPosition, selectExactReadRanges, selectReadRanges, serializeJsonLine, settingsFileNoticeKey, settingsInternals, shortenPath, sleep, sliceHead, snapshotBashSessionEnvironment, sortTodos, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, startShellDeadline, startToolTimer, str, stringEntries, takeOverDeadHolder, takeOverDeadHolderAsync, takeQueuedDeliveryChange, taskResumer, toolTimerText, truncateHead, truncateLine, validateTodoId, warnDeprecation, withFileMutationQueue, withResolvingFileMutationQueue } from "./startup-0-0-
|
|
4
|
-
import { EMPTY_OUTPUT_TEXT, HistorySearchPositions, MAX_INDEXED_ENTRY_CHARS, ResumeTimingsRecorder, SEARCH_PART_CHARS, SessionStorageSelectionSchema, TaskElapsedClocks, TaskToolError, WorkspaceDriftError, WorkspaceRestoreError, WorkspaceSnapshotError, bindTaskClock, bindTaskClockSource, blueprintDigest, buildDirectoryTree, buildDirectoryTreeFromOperations, cancelReceiptSentence, captureRegistrationInvocation, compareCreated, compareFrozen, conflictEntries, convertToLlm, createBranchSummaryMessage, createCustomMessage, diffLines, ensureTool, entryLines, execCommand, findWorkspaceError, formatResumeTimings, invocationExtension, invocationRuntime, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspaceSnapshotError, lifecycleScopeForOwner, normalizeAzureSettings, openEventSubscription, originalRegistrationCallback, ownedSettingsManagers, parseArgs, parseConflictBytes, parseInteractiveEngineMessage, parseSkillUri, presentTaskError, prewarmModelApi, readConflictUrl, readLedger, readLocalFileChunks, recordBlueprintStep, recordResumeTimings, recordSettingsWrite, refreshConflictFile, registerConflictBlocks, registerFactoryStartupHandler, renderTodoCall, renderTodoResult, repositoryKey, resolveInstalledGit, resolveInvocationRuntime, rootKey, selectReadLinesFromChunks, selectReadLinesFromList, serializeInteractiveEngineFrame, serializeTodoForAgent, serializeTodoListForAgent, sessionPosition, settingsWriteOwner, splitSearchTextParts, startupSourceId, taskClockOf, taskClockRunning, timeCheckoutRestore, timestamp, transcriptHeaderLines, unpackIds, unreadablePathError, updateLedger, validateEventSource, validateSubscriptionAdmission, waitResultTail, waitStatus, withWorktreeLockProgress, withoutSearchPosition, workspaceKey, writeRenderers } from "./startup-0-1-
|
|
3
|
+
import { BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, COMMAND_FOREGROUND_BUDGET_MS, CompactionConfigError, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, EditInputError, EditMatchError, EditTargetError, FileToolAbortedError, HostListenerFailures, LONG_LIVED_COMMANDS, Minimatch, RESTART_CANCELLED_MESSAGE, STALE_EXTENSION_CONTEXT_MESSAGE, ShellTimeoutError, SqliteSelectorConnection, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, TASK_MARKS, TaskMessageError, TaskMessageTimeoutError, WriteSelectorError, activeToolExecutionStarts, allToolNames, announceBlueprintBuildWaiting, applyBashSessionEnvironment, asyncScope, attachJsonlLineReader, attachLineReader, bindSavedTaskOrigins, blueprintBuildShared, canonicalEventBusFor, chatEpoch, chatPosition, clearAssignmentIfClosed, clearLockHolder, clearLockHolderAsync, convertBufferWithMarkit, convertFileWithMarkit, createGitEnvironment, defaultToolNamesFor, defineTool, detectSupportedImageMimeTypeFromFile, displayTodoId, expandSearchUrl, experimentalToolSamplingProperty, filterSearchOutputByLineRange, formatReadLineRange as formatReadLineRange$1, formatSelectedLines, formatSize, formatTimeoutSeconds as formatTimeoutSeconds$1, formatTodoId, frozenClocks, getManifestFromPackageJson, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolListError, handOverBuildTimings, holdDeprecationWarnings, holdToolsUntilBuilt, hostInputError, invalidArgText, invalidateNativeSearchCache, isBlueprintError, isGitProvisionError, isGitUnavailableError, isPathInside, isPlainObject as isPlainObject$1, isReadResourceSelector, isReadableUrlPath, isTodoClosed, isToolModifier, isValidBudgetMs, keptTaskHint, linkPath, literalPathLike, loadNativeSearchBinding, mergeReadRanges, nativeModuleProblem, normalizePathLikeInput, normalizeTodoId, normalizeWaitPolicy, noteSavedSeq, originalHistoryNote, prepareLockTakeover, prepareWaitableToolInput, projectTrustHandlerRegistered, projectTrustedBeforeExtensions, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, registerCanonicalEventBus, releaseDeprecationWarnings, renderBlueprintContext, renderToolPath, replaceTabs, reportContained, resolvePhysicalPathAsync, savedReadLines, scopedBackgroundTasks, searchPosition, selectExactReadRanges, selectReadRanges, serializeJsonLine, settingsFileNoticeKey, settingsInternals, shortenPath, sleep, sliceHead, snapshotBashSessionEnvironment, sortTodos, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, startShellDeadline, startToolTimer, str, stringEntries, takeOverDeadHolder, takeOverDeadHolderAsync, takeQueuedDeliveryChange, taskResumer, toolTimerText, truncateHead, truncateLine, validateTodoId, warnDeprecation, withFileMutationQueue, withResolvingFileMutationQueue } from "./startup-0-0-OWBJIX35.js";
|
|
4
|
+
import { EMPTY_OUTPUT_TEXT, HistorySearchPositions, MAX_INDEXED_ENTRY_CHARS, ResumeTimingsRecorder, SEARCH_PART_CHARS, SessionStorageSelectionSchema, StorageImportIncompleteError, StorageTransferError, TaskElapsedClocks, TaskToolError, WorkspaceDriftError, WorkspaceRestoreError, WorkspaceSnapshotError, assertSessionBlobStore, bindTaskClock, bindTaskClockSource, blueprintDigest, buildDirectoryTree, buildDirectoryTreeFromOperations, cancelReceiptSentence, captureRegistrationInvocation, compareCreated, compareFrozen, conflictEntries, convertToLlm, createBranchSummaryMessage, createCustomMessage, diffLines, ensureTool, entryLines, execCommand, findWorkspaceError, formatResumeTimings, inlineToolOutput, invocationExtension, invocationRuntime, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspaceSnapshotError, lifecycleScopeForOwner, normalizeAzureSettings, openEventSubscription, originalRegistrationCallback, ownedSettingsManagers, parseArgs, parseConflictBytes, parseInteractiveEngineMessage, parseSkillUri, prepareImportedSessionParents, presentTaskError, prewarmModelApi, readConflictUrl, readLedger, readLocalFileChunks, readTransferDirectory, recordBlueprintStep, recordResumeTimings, recordSettingsWrite, refreshConflictFile, registerConflictBlocks, registerFactoryStartupHandler, renderTodoCall, renderTodoResult, repositoryKey, resolveInstalledGit, resolveInvocationRuntime, rootKey, selectReadLinesFromChunks, selectReadLinesFromList, serializeInteractiveEngineFrame, serializeTodoForAgent, serializeTodoListForAgent, sessionPosition, settingsWriteOwner, splitSearchTextParts, startupSourceId, storeSessionBlobs, takeInlineToolOutput, taskClockOf, taskClockRunning, timeCheckoutRestore, timestamp, transcriptHeaderLines, transferFile, unpackIds, unreadablePathError, updateLedger, validateEventSource, validateSubscriptionAdmission, waitResultTail, waitStatus, withWorktreeLockProgress, withoutSearchPosition, workspaceKey, writeLinesAtomically, writeRenderers } from "./startup-0-1-DZYE4E5Z.js";
|
|
5
5
|
import { CodeHighlighter, FS_WATCH_RETRY_DELAY_MS, applyEarlyInputChunk, closeWatcher, getLanguageFromPath, graphemeAt, highlightCode, isSafeFsWatchPathError, keepStartupDialogDraft, migrateKeybindingsConfig, parenthesizedKeyHint, recordTimingLines, sanitizeTerminalText, singleLineDisplayText, slashCommandHint, terminalDisplayText, theme, watchWithErrorHandlerAsync, withEarlyInputHeldForStartupDialog } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { parseJsonFileContent } from "./p1-shared-RG5I5LJ6.js";
|
|
7
7
|
import { ProjectTrustStore, failureDebugFields, hasProjectTrustInputsAsync, inLockTurn, matchesOnSameLineCI, redactUrlCredentials, releaseLock, releaseLockSync, renameReplacing, renameReplacingAsync, renameWithRetry, reportDebugAsync, waitForLock, waitForLockSync } from "./p1b-elig-BY2G5BUE.js";
|
|
8
|
-
import { FILE_HEADERS_ONLY, InteractiveEngineMonitor, ModelConfig, RpcTerminalDrain, TodoParams, addShellOutputPreview, assertSessionOpen, bindTaskChatPage, captureTaskChatFile, chatPageRequest, createTwoFilesPatch, drainSessionWork, dropWrongTypedSettings, estimateTokens, formatKillCall, formatPatch, formatTruncationNotice, formatWorkingElapsed, getNativeMcpToolIdentity, getPowerShellConfigAsync, getShellConfigAsync, getShellEnvAsync, hasCallingSessionWork, invalidSettingMessage, isPowerShellAvailable, isResumePreconditionError, isTodoOperationError, killChildProcessTree, loadTaskOwnTranscriptEntries, markNativeMcpToolDefinition, rebuildKillResult, rebuildShellWaitResult, selectProcessStorageSteps, sessionGenerationClosing, sessionLifetime, spawnShellProcess, structuredPatch, taskChatPage, taskExtensionStatuses, taskOwnTranscriptEntries, taskTranscriptSource, trackDetachedChildPid, trackDetachedChildProcess, trackSessionWork, untrackDetachedChildPid, watchTaskExtensionStatuses, wrapToolDefinition } from "./startup-0-2-
|
|
8
|
+
import { FILE_HEADERS_ONLY, InteractiveEngineMonitor, ModelConfig, RpcTerminalDrain, TodoParams, addShellOutputPreview, assertSessionOpen, bindTaskChatPage, captureTaskChatFile, chatPageRequest, createTwoFilesPatch, drainSessionWork, dropWrongTypedSettings, estimateTokens, formatKillCall, formatPatch, formatTruncationNotice, formatWorkingElapsed, getNativeMcpToolIdentity, getPowerShellConfigAsync, getShellConfigAsync, getShellEnvAsync, hasCallingSessionWork, invalidSettingMessage, isPowerShellAvailable, isResumePreconditionError, isTodoOperationError, killChildProcessTree, loadTaskOwnTranscriptEntries, markNativeMcpToolDefinition, rebuildKillResult, rebuildShellWaitResult, selectProcessStorageSteps, sessionGenerationClosing, sessionLifetime, spawnShellProcess, structuredPatch, taskChatPage, taskExtensionStatuses, taskOwnTranscriptEntries, taskTranscriptSource, trackDetachedChildPid, trackDetachedChildProcess, trackSessionWork, untrackDetachedChildPid, watchTaskExtensionStatuses, wrapToolDefinition } from "./startup-0-2-WFLTE4SC.js";
|
|
9
9
|
import { appendToLog, applyContextEdit, assertExtensionAction, buildProcessStarting, extensionWorkOpen, findSessionOpenHolder, getBaseDirsForScope, getOwnerTaskSession, getOwnerTaskStore, inExtensionCleanup, isResumeFailure, isRetiredExtensionCleanup, isTaskTurnInterrupted, loadArchiveSnapshot, logTail, migrateAzureProvider, migrateAzureProviderAsync, onExtensionSessionQuit, openStepLog, processImage, resolvePathFromBase, resolveWorktreeSnapshotSettings, runLoggedProcess, sessionEntryToContextMessages, sha256Hex, startElapsedMs, stripLeadingCdCommandAsync, taskResumedTurns, trackExtensionWork, watchOwnerTaskStoreBinding, withTodoLock } from "./startup-0-3-DE2NCS6A.js";
|
|
10
10
|
import { DecisionConfigError, SessionHistoryNotLoadedError, asAcceptedRequestFailure, isDecisionConfigError, markRpcTransportFailure, rpcTransportError } from "./settings-startup-HXQLSUWM.js";
|
|
11
|
-
import { JsonlSessionStore, LegacySessionStore, checkedCustomMessage, checkedCustomType, checkedLabel, getLastConversationMessageId, getLatestSessionSummary, historyPageGeneration, readSessionRange, storeSnapshotIndex, transcriptCursorWithin } from "./startup-8-0-34CBHPZH.js";
|
|
12
|
-
import { TASK_COMPLETION_MESSAGE_TYPE, admitPooledWorktree, adoptPrebuiltSeed, assertRpcSuccess, authForStream, captureLocatedCheckout, captureWorktreeSnapshot, carryOverDegradedWork, childOfAttempt, chunkedToolResult, chunkedToolResultEntry, claimIdleWorktree, completionTitleDescription, confirmPooledWorktreeLease, createLoadedAskUserQuestionToolDefinition, createToolNameMatcher, defaultResumePreflightIo, discardPooledWorktree, evictIdleWorktrees, executeNativePty, executeSupervisedCommand, expandSkillCommand, extensionsCanDecideProjectTrust, getExistingGitInstallPathAsync, getManagedNpmInstallPath, gitText, holdRestoredWorktree, holdsSessionSnapshotRef, hostPlatform, inheritWorkspace, isHeadOnlyAdvance, isMcpToolName, isRecoverableRestoreFailure, keepSessionSnapshotCommit, loadSnapshotPathPolicy, locateCheckout, lookupOwnedTask, nextCaptureTick, parseBlueprint, parseSource, pendingLfsDownload, pooledWorktreeHolder, readRepositoryConfig, recordPooledWorktreeState, recordWorktreeCapture, releaseRestoredWorktree, releaseSessionSnapshotRefs, removeRestoredWorktree, require_dist, restoreBestWorktree, restoreDegradedWorktree, restoreDegradedWorktreeAt, restoreWorktree, restoreWorktreeAt, retireSessionSnapshotRefs, runGit, selectDocument, setAsideWorktree, snapshotRestoreWarnings, unrestoredRecord, validateBashWait, validateTaskHeartbeatMs, verifyWorktree, waitForSupervisedCommand, waitingReleasedTools, withScratchDirectory, withoutSupersededAttempts, worktreeSetAside, writeWorkingTree } from "./startup-0-5-
|
|
13
|
-
import { OutputAccumulator, SNAPSHOT_COLLECTION_SESSION_DELAY_MS, TOOL_BLOCK_LIMITS, ToolBlockRecords, applyModelsJson, cancelledBuilds, canonicalPaths, canonicalizeWorktreePathAsync, collapseToolBlockLines, defaultWorktreeSnapshotStoreDir, migrateAuthJsonConfigValues, migrateAuthJsonConfigValuesAsync, migrateModelsJsonConfigValues, migrateModelsJsonConfigValuesAsync, renderDiff, runCanonicalSteps, runCanonicalStepsAsync, sameRemote, scheduleSnapshotCollection, settleOtherBuilds, taskTranscriptPageWithCuts, withBuildLocks } from "./startup-0-4-
|
|
11
|
+
import { JsonlSessionStore, LegacySessionStore, checkedCustomMessage, checkedCustomType, checkedLabel, getLastConversationMessageId, getLatestSessionSummary, historyPageGeneration, isCurrentSessionHeader, readSessionRange, storeSnapshotIndex, transcriptCursorWithin } from "./startup-8-0-34CBHPZH.js";
|
|
12
|
+
import { TASK_COMPLETION_MESSAGE_TYPE, admitPooledWorktree, adoptPrebuiltSeed, assertRpcSuccess, authForStream, captureLocatedCheckout, captureWorktreeSnapshot, carryOverDegradedWork, childOfAttempt, chunkedToolResult, chunkedToolResultEntry, claimIdleWorktree, completionTitleDescription, confirmPooledWorktreeLease, createLoadedAskUserQuestionToolDefinition, createToolNameMatcher, defaultResumePreflightIo, discardPooledWorktree, evictIdleWorktrees, executeNativePty, executeSupervisedCommand, expandSkillCommand, extensionsCanDecideProjectTrust, getExistingGitInstallPathAsync, getManagedNpmInstallPath, gitText, holdRestoredWorktree, holdsSessionSnapshotRef, hostPlatform, inheritWorkspace, isHeadOnlyAdvance, isMcpToolName, isRecoverableRestoreFailure, keepSessionSnapshotCommit, loadSnapshotPathPolicy, locateCheckout, lookupOwnedTask, nextCaptureTick, parseBlueprint, parseSource, pendingLfsDownload, pooledWorktreeHolder, readRepositoryConfig, recordPooledWorktreeState, recordWorktreeCapture, releaseRestoredWorktree, releaseSessionSnapshotRefs, removeRestoredWorktree, require_dist, restoreBestWorktree, restoreDegradedWorktree, restoreDegradedWorktreeAt, restoreWorktree, restoreWorktreeAt, retireSessionSnapshotRefs, runGit, selectDocument, setAsideWorktree, snapshotRestoreWarnings, unrestoredRecord, validateBashWait, validateTaskHeartbeatMs, verifyWorktree, waitForSupervisedCommand, waitingReleasedTools, withScratchDirectory, withoutSupersededAttempts, worktreeSetAside, writeWorkingTree } from "./startup-0-5-DNS6FYS7.js";
|
|
13
|
+
import { OutputAccumulator, SNAPSHOT_COLLECTION_SESSION_DELAY_MS, TOOL_BLOCK_LIMITS, ToolBlockRecords, applyModelsJson, cancelledBuilds, canonicalPaths, canonicalizeWorktreePathAsync, collapseToolBlockLines, defaultWorktreeSnapshotStoreDir, migrateAuthJsonConfigValues, migrateAuthJsonConfigValuesAsync, migrateModelsJsonConfigValues, migrateModelsJsonConfigValuesAsync, renderDiff, runCanonicalSteps, runCanonicalStepsAsync, sameRemote, scheduleSnapshotCollection, settleOtherBuilds, taskTranscriptPageWithCuts, withBuildLocks } from "./startup-0-4-6XXL4JMZ.js";
|
|
14
14
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
15
15
|
import { adoptPrewarmedEngine, engineLaunch, waitForPrewarmedEngineReady } from "./p1a-prewarm-XIU57JHF.js";
|
|
16
16
|
import { parseHttpIdleTimeoutMs } from "./http-YFAPTIZD.js";
|
|
@@ -39,6 +39,7 @@ import lockfile from "proper-lockfile";
|
|
|
39
39
|
import { completeSimple } from "@bastani/atomic-ai/compat";
|
|
40
40
|
import { randomUUID as randomUUID$1 } from "crypto";
|
|
41
41
|
import { createInterface } from "node:readline";
|
|
42
|
+
import { SessionConflictError, SessionExistsError } from "../core/storage/session/errors.js";
|
|
42
43
|
import { DEGRADED_RESTORE_RETENTION_DAYS, snapshotBlobHashes } from "../core/worktree-snapshot/blob-store.js";
|
|
43
44
|
import { StorageProvider } from "../core/storage/provider.js";
|
|
44
45
|
import { isProxy } from "node:util/types";
|
|
@@ -26897,6 +26898,16 @@ var RpcClientApi = class {
|
|
|
26897
26898
|
async clone() {
|
|
26898
26899
|
return this.data(await this.request({ type: "clone" }));
|
|
26899
26900
|
}
|
|
26901
|
+
async importFromJsonl(inputPath, cwdOverride) {
|
|
26902
|
+
return this.data(await this.request({
|
|
26903
|
+
type: "import_session",
|
|
26904
|
+
inputPath,
|
|
26905
|
+
cwdOverride
|
|
26906
|
+
}));
|
|
26907
|
+
}
|
|
26908
|
+
async reload() {
|
|
26909
|
+
this.data(await this.request({ type: "reload" }));
|
|
26910
|
+
}
|
|
26900
26911
|
async getForkMessages() {
|
|
26901
26912
|
return this.data(await this.request({ type: "get_fork_messages" })).messages;
|
|
26902
26913
|
}
|
|
@@ -28205,6 +28216,310 @@ async function prewarmInteractiveEngineRpcMode() {
|
|
|
28205
28216
|
await import("../modes/rpc/rpc-mode.js").catch((error) => __atomicOnDemandFailed(error, "this feature"));
|
|
28206
28217
|
} catch {}
|
|
28207
28218
|
}
|
|
28219
|
+
// dist/core/session-transfer.js
|
|
28220
|
+
/**
|
|
28221
|
+
* Sessions as format-4 JSONL files for `atomic storage export` and `import` (#4720): each session is written to
|
|
28222
|
+
* `<dir>/<sessionId>.jsonl` in the format JSONL session storage keeps and `atomic --import` reads, with the tool outputs
|
|
28223
|
+
* and worktree snapshot content it references carried inline as `/export <file>.jsonl` carries them, and read back with
|
|
28224
|
+
* the same parser.
|
|
28225
|
+
*/
|
|
28226
|
+
function storeLocation(store) {
|
|
28227
|
+
return store.descriptor.location;
|
|
28228
|
+
}
|
|
28229
|
+
function newestFirst(left, right) {
|
|
28230
|
+
const modified = Date.parse(right.modifiedAt) - Date.parse(left.modifiedAt);
|
|
28231
|
+
if (modified !== 0) return modified;
|
|
28232
|
+
return left.id < right.id ? -1 : left.id > right.id ? 1 : 0;
|
|
28233
|
+
}
|
|
28234
|
+
/**
|
|
28235
|
+
* A session's export file, line by line: the header, then every entry in append order, with the snapshot records,
|
|
28236
|
+
* snapshot content and tool outputs the store holds carried inline, each once. Tool outputs are read one at a time.
|
|
28237
|
+
*/
|
|
28238
|
+
async function* sessionExportLines(store, snapshot) {
|
|
28239
|
+
yield JSON.stringify({
|
|
28240
|
+
type: "session",
|
|
28241
|
+
...snapshot.header
|
|
28242
|
+
});
|
|
28243
|
+
const records = /* @__PURE__ */ new Map();
|
|
28244
|
+
for (const entry of snapshot.entries) if (entry.type === "worktree_snapshot" && entry.snapshot !== void 0 && !records.has(entry.snapshotId)) records.set(entry.snapshotId, entry.snapshot);
|
|
28245
|
+
const entries = await inlineSnapshotBlobs(snapshot.entries, records, sessionSnapshotBlobs(store.snapshotBlobs, snapshot.entries));
|
|
28246
|
+
for await (const entry of inlineToolOutput(entries, store, snapshot.header.id)) yield JSON.stringify(entry);
|
|
28247
|
+
}
|
|
28248
|
+
/**
|
|
28249
|
+
* Exports the sessions of `store`, every project's and internal ones included, to
|
|
28250
|
+
* `<directory>/<sessionId>.jsonl`, one file per session. Each file is written whole or not at all; the same session
|
|
28251
|
+
* gives the same bytes, and a file that already holds them is not rewritten.
|
|
28252
|
+
*/
|
|
28253
|
+
async function exportSessions(store, directory, options = {}) {
|
|
28254
|
+
let summaries = [];
|
|
28255
|
+
for await (const summary of store.list({ includeInternal: true })) summaries.push(summary);
|
|
28256
|
+
if (options.since !== void 0) {
|
|
28257
|
+
const since = options.since;
|
|
28258
|
+
summaries = summaries.filter((summary) => Date.parse(summary.modifiedAt) >= since);
|
|
28259
|
+
}
|
|
28260
|
+
summaries.sort(newestFirst);
|
|
28261
|
+
if (options.limit !== void 0) summaries = summaries.slice(0, options.limit);
|
|
28262
|
+
await mkdir(directory, { recursive: true });
|
|
28263
|
+
const written = [];
|
|
28264
|
+
const unchanged = [];
|
|
28265
|
+
for (const summary of summaries) {
|
|
28266
|
+
const snapshot = await store.load(summary.id);
|
|
28267
|
+
(await writeLinesAtomically(transferFile(directory, summary.id), sessionExportLines(store, snapshot)) === "written" ? written : unchanged).push(summary.id);
|
|
28268
|
+
}
|
|
28269
|
+
return {
|
|
28270
|
+
written,
|
|
28271
|
+
unchanged
|
|
28272
|
+
};
|
|
28273
|
+
}
|
|
28274
|
+
/** Checks one export file with the parser JSONL session storage and `atomic --import` use. */
|
|
28275
|
+
async function parseSessionFile(source, { file, lines }) {
|
|
28276
|
+
const fail = (line, reason, cause) => {
|
|
28277
|
+
throw new StorageTransferError({
|
|
28278
|
+
path: file,
|
|
28279
|
+
...line === void 0 ? {} : { line },
|
|
28280
|
+
reason,
|
|
28281
|
+
cause
|
|
28282
|
+
});
|
|
28283
|
+
};
|
|
28284
|
+
if (lines.length === 0) return fail(1, "is empty; expected a session header");
|
|
28285
|
+
const parsed = [];
|
|
28286
|
+
for (const { line, text } of lines) {
|
|
28287
|
+
if (text.trim() === "") fail(line, "is empty");
|
|
28288
|
+
let value;
|
|
28289
|
+
try {
|
|
28290
|
+
value = JSON.parse(text);
|
|
28291
|
+
} catch (error) {
|
|
28292
|
+
return fail(line, `is not valid JSON (${error.message})`);
|
|
28293
|
+
}
|
|
28294
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) fail(line, "is not a JSON object");
|
|
28295
|
+
parsed.push(value);
|
|
28296
|
+
}
|
|
28297
|
+
const first = parsed[0];
|
|
28298
|
+
if (first.type !== "session") fail(1, `is not an Atomic session export: its type is ${JSON.stringify(first.type ?? null)}, not "session"`);
|
|
28299
|
+
if (!isCurrentSessionHeader(first)) fail(1, `has unsupported session format version ${JSON.stringify(first.version ?? null)}; this Atomic reads version 4`);
|
|
28300
|
+
let loaded;
|
|
28301
|
+
try {
|
|
28302
|
+
loaded = await source.loadFile(file);
|
|
28303
|
+
} catch (error) {
|
|
28304
|
+
return fail(void 0, `is not a valid session: ${error.message}`, error);
|
|
28305
|
+
}
|
|
28306
|
+
let prepared;
|
|
28307
|
+
try {
|
|
28308
|
+
prepared = prepareImportedSessionParents(loaded.header.id, loaded.entries);
|
|
28309
|
+
} catch (error) {
|
|
28310
|
+
return fail(void 0, error.message, error);
|
|
28311
|
+
}
|
|
28312
|
+
try {
|
|
28313
|
+
const { entries, blobs } = takeInlineToolOutput(prepared.entries, loaded.header.id);
|
|
28314
|
+
await adoptInlineSnapshotBlobs(entries, void 0);
|
|
28315
|
+
return {
|
|
28316
|
+
file,
|
|
28317
|
+
header: loaded.header,
|
|
28318
|
+
entries,
|
|
28319
|
+
original: loaded.entries,
|
|
28320
|
+
blobs,
|
|
28321
|
+
repaired: prepared.repaired
|
|
28322
|
+
};
|
|
28323
|
+
} catch (error) {
|
|
28324
|
+
return fail(void 0, `carries content that does not match its hash: ${error.message}`);
|
|
28325
|
+
}
|
|
28326
|
+
}
|
|
28327
|
+
/**
|
|
28328
|
+
* Reads and checks every `*.jsonl` session export file in `directory`; nothing is written. A directory that does not
|
|
28329
|
+
* exist holds no sessions. Throws `StorageTransferError` with the file, and the line where there is one, for the first
|
|
28330
|
+
* file that is not a valid format-4 session.
|
|
28331
|
+
*/
|
|
28332
|
+
async function readSessionExports(directory) {
|
|
28333
|
+
const files = await readTransferDirectory(directory);
|
|
28334
|
+
if (files.length === 0) return [];
|
|
28335
|
+
const source = await JsonlSessionStore.open(directory, {
|
|
28336
|
+
exactDirectory: true,
|
|
28337
|
+
scanExisting: false
|
|
28338
|
+
});
|
|
28339
|
+
try {
|
|
28340
|
+
const parsed = [];
|
|
28341
|
+
const seen = /* @__PURE__ */ new Map();
|
|
28342
|
+
for (const lines of files) {
|
|
28343
|
+
const session = await parseSessionFile(source, lines);
|
|
28344
|
+
const earlier = seen.get(session.header.id);
|
|
28345
|
+
if (earlier !== void 0) throw new StorageTransferError({
|
|
28346
|
+
path: session.file,
|
|
28347
|
+
line: 1,
|
|
28348
|
+
id: session.header.id,
|
|
28349
|
+
reason: `session ${session.header.id} is also in ${earlier}; keep one file per session`
|
|
28350
|
+
});
|
|
28351
|
+
seen.set(session.header.id, session.file);
|
|
28352
|
+
parsed.push(session);
|
|
28353
|
+
}
|
|
28354
|
+
return parsed;
|
|
28355
|
+
} finally {
|
|
28356
|
+
await source.close();
|
|
28357
|
+
}
|
|
28358
|
+
}
|
|
28359
|
+
function pendingIds(sessions) {
|
|
28360
|
+
return sessions.map((planned) => planned.session.header.id);
|
|
28361
|
+
}
|
|
28362
|
+
/**
|
|
28363
|
+
* The fields import compares between an entry of a file and the stored entry at the same position: its ID, its
|
|
28364
|
+
* parent and its type, as `--import` and session storage identify entries. Everything else may differ, so a file a
|
|
28365
|
+
* tool redacted strings in imports as the session it came from.
|
|
28366
|
+
*/
|
|
28367
|
+
function sameEntry(stored, exported) {
|
|
28368
|
+
return stored.id === exported.id && stored.parentId === exported.parentId && stored.type === exported.type;
|
|
28369
|
+
}
|
|
28370
|
+
/**
|
|
28371
|
+
* Compares every session of `sessions` with the store's copy, writing nothing. A session is identified by its header
|
|
28372
|
+
* ID, as `atomic --import` identifies it: one the store lacks is added; one whose entries the store holds the first
|
|
28373
|
+
* part of gets the rest; one the store holds every entry of is left alone. A session created at another time, or one
|
|
28374
|
+
* whose entries continued differently in the store, fails with the file and line.
|
|
28375
|
+
*/
|
|
28376
|
+
async function planSessionImport(store, sessions) {
|
|
28377
|
+
const planned = [];
|
|
28378
|
+
const location = storeLocation(store);
|
|
28379
|
+
for (const session of sessions) {
|
|
28380
|
+
const { header, entries, file } = session;
|
|
28381
|
+
const fail = (line, reason) => {
|
|
28382
|
+
throw new StorageTransferError({
|
|
28383
|
+
path: file,
|
|
28384
|
+
line,
|
|
28385
|
+
id: header.id,
|
|
28386
|
+
reason
|
|
28387
|
+
});
|
|
28388
|
+
};
|
|
28389
|
+
if (await store.readHeader(header.id) === void 0) {
|
|
28390
|
+
assertBlobs(store, session);
|
|
28391
|
+
planned.push({
|
|
28392
|
+
session,
|
|
28393
|
+
action: "add",
|
|
28394
|
+
storedEntries: 0,
|
|
28395
|
+
storedSeq: 0
|
|
28396
|
+
});
|
|
28397
|
+
continue;
|
|
28398
|
+
}
|
|
28399
|
+
const stored = await store.load(header.id);
|
|
28400
|
+
if (stored.header.createdAt !== header.createdAt) fail(1, `session ${header.id} in ${location} was created at another time; it is a different session with the same ID`);
|
|
28401
|
+
const shared = Math.min(stored.entries.length, entries.length);
|
|
28402
|
+
const storedRepair = prepareImportedSessionParents(header.id, stored.entries);
|
|
28403
|
+
let mustRepair = storedRepair.repaired.length > 0;
|
|
28404
|
+
for (let index = 0; index < shared; index++) {
|
|
28405
|
+
if (sameEntry(storedRepair.entries[index], entries[index])) continue;
|
|
28406
|
+
if (sameEntry(stored.entries[index], session.original[index])) {
|
|
28407
|
+
mustRepair = true;
|
|
28408
|
+
continue;
|
|
28409
|
+
}
|
|
28410
|
+
fail(index + 2, `entry ${index + 1} differs from entry ${index + 1} of session ${header.id} in ${location}: the session continued differently there`);
|
|
28411
|
+
}
|
|
28412
|
+
const action = mustRepair ? "repair" : entries.length > stored.entries.length ? "update" : "unchanged";
|
|
28413
|
+
const imported = mustRepair ? {
|
|
28414
|
+
...session,
|
|
28415
|
+
header: stored.header,
|
|
28416
|
+
entries: [...storedRepair.entries.map((entry, index) => index < shared && !sameEntry(entry, entries[index]) ? {
|
|
28417
|
+
...entry,
|
|
28418
|
+
id: entries[index].id,
|
|
28419
|
+
parentId: entries[index].parentId
|
|
28420
|
+
} : entry), ...entries.slice(shared)],
|
|
28421
|
+
repaired: [...session.repaired.map((repair) => ({
|
|
28422
|
+
...repair,
|
|
28423
|
+
source: "file"
|
|
28424
|
+
})), ...storedRepair.repaired.map((repair) => ({
|
|
28425
|
+
...repair,
|
|
28426
|
+
source: "storage"
|
|
28427
|
+
}))]
|
|
28428
|
+
} : session;
|
|
28429
|
+
if (action !== "unchanged") assertBlobs(store, imported);
|
|
28430
|
+
planned.push({
|
|
28431
|
+
session: imported,
|
|
28432
|
+
action,
|
|
28433
|
+
storedEntries: stored.entries.length,
|
|
28434
|
+
storedSeq: stored.lastSeq,
|
|
28435
|
+
storedEpoch: stored.epoch ?? chatEpoch(stored.header)
|
|
28436
|
+
});
|
|
28437
|
+
}
|
|
28438
|
+
return {
|
|
28439
|
+
store,
|
|
28440
|
+
sessions: planned
|
|
28441
|
+
};
|
|
28442
|
+
}
|
|
28443
|
+
function assertBlobs(store, session) {
|
|
28444
|
+
try {
|
|
28445
|
+
assertSessionBlobStore(store, session.header.id, session.blobs.length);
|
|
28446
|
+
} catch (error) {
|
|
28447
|
+
throw new StorageTransferError({
|
|
28448
|
+
path: session.file,
|
|
28449
|
+
id: session.header.id,
|
|
28450
|
+
reason: error.message,
|
|
28451
|
+
cause: error
|
|
28452
|
+
});
|
|
28453
|
+
}
|
|
28454
|
+
}
|
|
28455
|
+
/**
|
|
28456
|
+
* Writes what `plan` decided, one session at a time. Each write expects the store to hold exactly what the plan
|
|
28457
|
+
* compared: a session another process created or added entries to since fails with the file, and nothing of it is
|
|
28458
|
+
* written. Session storage has no lock an import can hold across sessions, so when a write fails after earlier writes,
|
|
28459
|
+
* `StorageImportIncompleteError` names what was written and what was not; importing again writes only what is missing. A session the store already holds in full
|
|
28460
|
+
* gets the tool outputs of the file it lacks, so a rerun also finishes a session whose outputs an interrupted import
|
|
28461
|
+
* did not store.
|
|
28462
|
+
*/
|
|
28463
|
+
async function applySessionImport(plan) {
|
|
28464
|
+
const { store } = plan;
|
|
28465
|
+
const report = {
|
|
28466
|
+
added: [],
|
|
28467
|
+
updated: [],
|
|
28468
|
+
unchanged: []
|
|
28469
|
+
};
|
|
28470
|
+
const pending = plan.sessions.filter((planned) => planned.action !== "unchanged");
|
|
28471
|
+
/** `error`, naming what this import wrote before it when it wrote anything, and the sessions it did not write. */
|
|
28472
|
+
const failure = (error, notWritten) => {
|
|
28473
|
+
const sessionsWritten = [...report.added, ...report.updated];
|
|
28474
|
+
if (sessionsWritten.length === 0) return error;
|
|
28475
|
+
return new StorageImportIncompleteError(error, {
|
|
28476
|
+
written: { sessions: sessionsWritten },
|
|
28477
|
+
notWritten: { sessions: notWritten }
|
|
28478
|
+
});
|
|
28479
|
+
};
|
|
28480
|
+
for (const planned of plan.sessions) {
|
|
28481
|
+
if (planned.action !== "unchanged") continue;
|
|
28482
|
+
const { header, blobs } = planned.session;
|
|
28483
|
+
try {
|
|
28484
|
+
for (const blob of blobs) if (await store.getBlob?.(header.id, blob.hash) === void 0) await store.putBlob?.(header.id, blob.read());
|
|
28485
|
+
} catch (caught) {
|
|
28486
|
+
throw failure(caught, [header.id, ...pendingIds(pending)]);
|
|
28487
|
+
}
|
|
28488
|
+
report.unchanged.push(header.id);
|
|
28489
|
+
}
|
|
28490
|
+
for (const [index, planned] of pending.entries()) {
|
|
28491
|
+
const { header, file, blobs } = planned.session;
|
|
28492
|
+
try {
|
|
28493
|
+
const entries = await adoptInlineSnapshotBlobs(planned.session.entries, store.snapshotBlobs);
|
|
28494
|
+
if (planned.action === "add") {
|
|
28495
|
+
await store.create(header, entries);
|
|
28496
|
+
await storeSessionBlobs(store, header.id, blobs);
|
|
28497
|
+
} else {
|
|
28498
|
+
for (const blob of blobs) await store.putBlob(header.id, blob.read());
|
|
28499
|
+
const options = {
|
|
28500
|
+
expectSeq: planned.storedSeq,
|
|
28501
|
+
...planned.storedEpoch === void 0 ? {} : { epoch: planned.storedEpoch }
|
|
28502
|
+
};
|
|
28503
|
+
if (planned.action === "repair") await store.replace(header.id, header, entries, options);
|
|
28504
|
+
else await store.append(header.id, entries.slice(planned.storedEntries), options);
|
|
28505
|
+
}
|
|
28506
|
+
} catch (caught) {
|
|
28507
|
+
throw failure(caught instanceof SessionConflictError || caught instanceof SessionExistsError ? new StorageTransferError({
|
|
28508
|
+
path: file,
|
|
28509
|
+
line: 1,
|
|
28510
|
+
id: header.id,
|
|
28511
|
+
reason: `session ${header.id} changed in ${storeLocation(store)} after the import compared it (another process wrote to it); it was not imported`,
|
|
28512
|
+
cause: caught
|
|
28513
|
+
}) : caught, pendingIds(pending.slice(index)));
|
|
28514
|
+
}
|
|
28515
|
+
(planned.action === "add" ? report.added : report.updated).push(header.id);
|
|
28516
|
+
}
|
|
28517
|
+
const repaired = plan.sessions.flatMap(({ session }) => session.repaired);
|
|
28518
|
+
return {
|
|
28519
|
+
...report,
|
|
28520
|
+
...repaired.length === 0 ? {} : { repaired }
|
|
28521
|
+
};
|
|
28522
|
+
}
|
|
28208
28523
|
// dist/core/tools/artifacts.js
|
|
28209
28524
|
/**
|
|
28210
28525
|
* Session artifact storage, mirrored from oh-my-pi's
|
|
@@ -28281,16 +28596,16 @@ function getArtifactManager(artifactsDir) {
|
|
|
28281
28596
|
}
|
|
28282
28597
|
return manager;
|
|
28283
28598
|
}
|
|
28284
|
-
export { ACTIONS_GITHUB_BASE_URL_ENV, BASH_SHELL_PRESENTATION, BLUEPRINT_FULL_BUILD_MAX_AGE_MS, BLUEPRINT_STEP_TIMEOUT_MS, DEGRADED_RESTORE_RETENTION_DAYS, ENGINE_SESSION_STORAGE_FLAG, ENGINE_SHUTDOWN_GRACE_MS, EVENT_REPORT_MESSAGE_TYPE, EVENT_SUBSCRIPTION_CHILD_ENTRY_TYPE, EVENT_SUBSCRIPTION_ENTRY_TYPE, EVENT_SUBSCRIPTION_PROCESSED_ENTRY_TYPE, FileSettingsStorage, FooterDataProvider, HistoryTaskRegistry, InMemorySettingsStorage, RpcClient, SETUP_COMMAND_ALIAS, SUBSCRIPTION_REPORT_TOOL_NAME, SessionWorktreeSnapshotRecorder, SettingsFileChangedError, SettingsManager, adoptInlineSnapshotBlobs, agentPanelExtensionItems, agentPanelItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, agentSessionSummaryMethods, agentSessionTreeMethods, answerAgentPanelItem, appendBoundedStderr, applyReadLineSelection, applyToolModifiers, bashToolSystemPromptContribution, bindTaskTranscriptFragments, blueprintNotices, blueprintRepository, boundExtensionRuntimes, buildInteractiveEngineArgs, builtinToolBlockPresentation, canIsolateSessionStore, cancelSessionSubscriptions, checkoutsNeedingRebuild, collectEntriesForBranchSummary, compareWorktreeSnapshot, composeInternalRouters, continueSessionWhereItWorked, copyPanelItemStableKey, createBashTool, createBashToolDefinition, createCodingTools, createEditTool, createEditToolDefinition, createExtensionAPI, createExtensionRuntime, createFindTool, createFindToolDefinition, createHistoryRouter, createKillTool, createKillToolDefinition, createLoadedToolDefinition, createLocalBashOperations, createLocalPowerShellOperations, createLsTool, createLsToolDefinition, createPowerShellTool, createPowerShellToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createSearchTool, createSearchToolDefinition, createSubscriberReportTool, createToolDefinitionsFor, createWriteTool, createWriteToolDefinition, currentWorktreeRestoreNotices, currentWorktreeRootMappings, currentWorktreeSnapshots, decodeReadableUrl, defaultToolSelectionFor, degradedRestorePin, deleteSessionWithSnapshotRefs, describeBlueprints, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, discardDegradedRestore, dismissedAgentPanelItems, drainExtensionAPIWork, editToolSystemPromptContribution, extractDocumentMarkdown, findToolSystemPromptContribution, findUnansweredToolCall, formatDegradedRestoreNotice, formatEventReport, formatToolBlockElapsed, formatUnrestoredNotice, formatWorktreeRestoreNotice, formatWorktreeRestoreWarning, generateBranchSummary, generateDiffString, generateUnifiedPatch, getArtifactManager, getEngineSessionStorage, hasSubagentCaptures, hostStoragePackagesRegistered, inheritChildSessionOptionsWithDefaults, inheritedRemotes,
|
|
28599
|
+
export { ACTIONS_GITHUB_BASE_URL_ENV, BASH_SHELL_PRESENTATION, BLUEPRINT_FULL_BUILD_MAX_AGE_MS, BLUEPRINT_STEP_TIMEOUT_MS, DEGRADED_RESTORE_RETENTION_DAYS, ENGINE_SESSION_STORAGE_FLAG, ENGINE_SHUTDOWN_GRACE_MS, EVENT_REPORT_MESSAGE_TYPE, EVENT_SUBSCRIPTION_CHILD_ENTRY_TYPE, EVENT_SUBSCRIPTION_ENTRY_TYPE, EVENT_SUBSCRIPTION_PROCESSED_ENTRY_TYPE, FileSettingsStorage, FooterDataProvider, HistoryTaskRegistry, InMemorySettingsStorage, RpcClient, SETUP_COMMAND_ALIAS, SUBSCRIPTION_REPORT_TOOL_NAME, SessionWorktreeSnapshotRecorder, SettingsFileChangedError, SettingsManager, adoptInlineSnapshotBlobs, agentPanelExtensionItems, agentPanelItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, agentSessionSummaryMethods, agentSessionTreeMethods, answerAgentPanelItem, appendBoundedStderr, applyReadLineSelection, applySessionImport, applyToolModifiers, bashToolSystemPromptContribution, bindTaskTranscriptFragments, blueprintNotices, blueprintRepository, boundExtensionRuntimes, buildInteractiveEngineArgs, builtinToolBlockPresentation, canIsolateSessionStore, cancelSessionSubscriptions, checkoutsNeedingRebuild, collectEntriesForBranchSummary, compareWorktreeSnapshot, composeInternalRouters, continueSessionWhereItWorked, copyPanelItemStableKey, createBashTool, createBashToolDefinition, createCodingTools, createEditTool, createEditToolDefinition, createExtensionAPI, createExtensionRuntime, createFindTool, createFindToolDefinition, createHistoryRouter, createKillTool, createKillToolDefinition, createLoadedToolDefinition, createLocalBashOperations, createLocalPowerShellOperations, createLsTool, createLsToolDefinition, createPowerShellTool, createPowerShellToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createSearchTool, createSearchToolDefinition, createSubscriberReportTool, createToolDefinitionsFor, createWriteTool, createWriteToolDefinition, currentWorktreeRestoreNotices, currentWorktreeRootMappings, currentWorktreeSnapshots, decodeReadableUrl, defaultToolSelectionFor, degradedRestorePin, deleteSessionWithSnapshotRefs, describeBlueprints, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, discardDegradedRestore, dismissedAgentPanelItems, drainExtensionAPIWork, editToolSystemPromptContribution, exportSessions, extractDocumentMarkdown, findToolSystemPromptContribution, findUnansweredToolCall, formatDegradedRestoreNotice, formatEventReport, formatToolBlockElapsed, formatUnrestoredNotice, formatWorktreeRestoreNotice, formatWorktreeRestoreWarning, generateBranchSummary, generateDiffString, generateUnifiedPatch, getArtifactManager, getEngineSessionStorage, hasSubagentCaptures, hostStoragePackagesRegistered, inheritChildSessionOptionsWithDefaults, inheritedRemotes, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isDocumentPath, isInside$1 as isInside, isInterruptedPanelTask, isPlainRuntimeMetadataCommand, latestSessionSnapshot, latestSessionSnapshotAsync, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, loadProjectContextFiles, loadProjectContextFilesAsync, lsToolSystemPromptContribution, mapPathForCwd, mapPathForCwdAsync, mapRestoredPath, mapRestoredPathAsync, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, needsRebuild, notifyAgentPanelChanged, notifyAgentPanelSourceHubRebound, onOwnerTaskAction, openAgentPanelItem, openSessionInWorktree, ownerTaskViewSource, panelItemStableKey, parentHistoryNotices, parseActionReference, pathExists, plainNoticeBlock, planSessionImport, prepareBranchEntries, prepareInitialMessage, prepareSessionResume, prewarmHostDefaultModelApi, prewarmInteractiveEngineRpcMode, projectSettingsChooseSessionStorage, promptAnswerOptionsOf, readSessionExports, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, readToolSystemPromptContribution, recordBlueprintContext, recordRestoredWorktreeContext, registerHostStoragePackages, registerHostStoragePackagesAsync, releaseSessionWorktrees, removeSavedModelRoutingSettings, removeSavedModelRoutingSettingsAsync, resolveAppMode, resolveCliPaths, resolveExcludedToolsForAppMode, resolveExistingPromptSourcePath, resolveExistingPromptSourcePaths, resolvePackageStorageAdapter, resolvePromptInput, resolveSessionStore, resumeSessionWorktree, resumeStoreDir, retainTaskWindowReader, retireExtensionAPI, runAction, runBlueprintBuild, runExtensionAPICleanup, runMigrations, runMigrationsAsync, runResourceRegistrationBatch, sampleAgentPanelSources, savedBoundaryCursor, savedProjectTrust, savedProjectTrustAsync, sealExtensionAPI, searchToolSystemPromptContribution, seedEventPrompt, selectSessionSetting, selectSessionStorage, selectSessionStorageWithSettings, selectSessionStorageWithSettingsAsync, serializeConversation, sessionManagerContinuesIn, sessionManagerRunsInRecordedCheckout, sessionResumeOptions, sessionSnapshotBlobs, sessionStorageSettingsDiffer, setUpResumedBlueprints, settingsFileTarget, settingsFileTargetAsync, shellCommandPrefixFor, shortTaskTitle, shouldStartRpcCatalogRefresh, showDeprecationWarnings, snapshotBlobInliner, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, subscribeSession, takeEngineSessionStorageArg, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFile, taskTranscriptFragments, taskTranscriptUnsavedAnswer, toPrintOutputMode, toolsWithReport, withTaskTranscriptArchive, withWorktreeRestoreNotices, withWorktreeRootMappings, worktreeNeedsRestore, worktreeRestoreNotices, writeSettingsFile, writeSettingsFileAsync, writeToolSystemPromptContribution };
|
|
28285
28600
|
|
|
28286
|
-
//# sourceMappingURL=startup-8-1-
|
|
28601
|
+
//# sourceMappingURL=startup-8-1-VXBL37AI.js.map
|
|
28287
28602
|
// __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
|
|
28288
28603
|
// demand that fails in a process an in-place update left running says to restart.
|
|
28289
28604
|
function __atomicOnDemandFailed(error, feature) {
|
|
28290
28605
|
return (async () => {
|
|
28291
28606
|
const root = new URL("../", import.meta.url);
|
|
28292
28607
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
28293
|
-
const key = `${root.href}#0.10.20-alpha.
|
|
28608
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
28294
28609
|
let release = releases.get(key);
|
|
28295
28610
|
if (release === undefined) {
|
|
28296
28611
|
const current = (async () => {
|
|
@@ -28318,7 +28633,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
28318
28633
|
} catch {
|
|
28319
28634
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
28320
28635
|
}
|
|
28321
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.20-alpha.
|
|
28636
|
+
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;
|
|
28322
28637
|
if (updatedTo === undefined) throw error;
|
|
28323
28638
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
28324
28639
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|