@bastani/atomic 0.10.9-alpha.1 → 0.10.10-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/README.md +211 -155
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +27 -12
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
- package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
- package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
- package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
- package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
- package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
- package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
- package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
- package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
- package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
- package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
- package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
- package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +6 -0
- package/dist/builtin/intercom/README.md +85 -114
- package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
- package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
- package/dist/builtin/intercom/group.ts +7 -3
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/README.md +37 -27
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +8 -0
- package/dist/builtin/subagents/README.md +71 -138
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
- package/dist/builtin/web-access/CHANGELOG.md +9 -0
- package/dist/builtin/web-access/README.md +60 -87
- package/dist/builtin/web-access/index.bundle.mjs +387 -351
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +4 -4
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +2 -2
- 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-methods.d.ts +4 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/compaction/compactor.d.ts +20 -14
- package/dist/core/compaction/errors.d.ts +120 -0
- package/dist/core/compaction/index.d.ts +1 -0
- package/dist/core/compaction/model-resolver.d.ts +2 -2
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- 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/api-types.d.ts +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +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 +1 -1
- package/dist/core/extensions/provider-types.d.ts +18 -6
- package/dist/core/extensions/provider-types.js.map +1 -1
- package/dist/core/extensions/runner-context.js +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-config.d.ts +40 -0
- package/dist/core/model-registry.js +1 -1
- package/dist/core/model-resolver-scope.d.ts +4 -4
- package/dist/core/model-runtime.d.ts +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/provider-composer-internal.d.ts +11 -2
- package/dist/core/sdk.code.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +5 -5
- 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.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager-basic-accessors.d.ts +6 -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/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- 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.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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +3 -3
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.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 +3 -3
- 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.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.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- 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/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 +4 -4
- 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.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.code.js +2 -2
- 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 +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +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.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index-extensions.d.ts +1 -1
- package/dist/index.d.ts +8 -1
- 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/modes/interactive/components/settings-selector-types.d.ts +1 -0
- package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- 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/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/theme/color-utils.d.ts +5 -5
- package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
- package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
- package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
- package/dist/modes/rpc/rpc-types.d.ts +29 -2
- package/dist/package-manager-cli.code.js +5 -5
- 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/5.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +1 -2
- package/dist/startup-stages/9.js +2 -1
- package/dist/utils/native-module.d.ts +44 -0
- package/dist/utils/startup-database-spare.code.js +3 -3
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks.md +235 -243
- package/docs/build.md +12 -11
- package/docs/codemode.md +60 -51
- package/docs/compaction/reference.md +61 -24
- package/docs/compaction.md +117 -65
- package/docs/computer-use.md +179 -146
- package/docs/containerization.md +79 -33
- package/docs/custom-provider/api-reference.md +148 -11
- package/docs/custom-provider/oauth.md +44 -27
- package/docs/custom-provider/override.md +14 -7
- package/docs/custom-provider/registration.md +75 -65
- package/docs/custom-provider/streaming.md +42 -19
- package/docs/custom-provider.md +25 -61
- package/docs/development.md +47 -43
- package/docs/docs.json +33 -33
- package/docs/environment-variables.md +83 -57
- package/docs/extensions/api-reference.md +323 -734
- package/docs/extensions/authoring.md +186 -269
- package/docs/extensions/events.md +308 -375
- package/docs/extensions/examples.md +122 -74
- package/docs/extensions/ui.md +217 -197
- package/docs/extensions.md +152 -259
- package/docs/getting-started/authentication.md +27 -14
- package/docs/getting-started/first-session.md +25 -26
- package/docs/getting-started/installation.md +62 -84
- package/docs/getting-started/project-instructions.md +39 -14
- package/docs/guides/configuration.md +42 -20
- package/docs/guides/intercom.md +17 -13
- package/docs/guides/non-interactive.md +29 -16
- package/docs/guides/orchestration.md +16 -10
- package/docs/guides/resume-on-any-machine.md +54 -49
- package/docs/guides/subagents.md +22 -14
- package/docs/guides/team-setup.md +37 -26
- package/docs/guides.md +22 -21
- package/docs/herdr.md +21 -16
- package/docs/index.md +16 -17
- package/docs/intercom/operations.md +68 -66
- package/docs/intercom/reference.md +196 -191
- package/docs/intercom.md +103 -92
- package/docs/json.md +71 -71
- package/docs/keybindings.md +63 -50
- package/docs/libraries/agent-core.md +49 -8
- package/docs/libraries/ai.md +21 -12
- package/docs/libraries/codemode.md +28 -6
- package/docs/libraries/schema.md +7 -7
- package/docs/libraries/telemetry.md +7 -7
- package/docs/libraries/tui.md +74 -94
- package/docs/libraries.md +5 -5
- package/docs/llama-cpp.md +38 -33
- package/docs/mcp-servers.md +96 -90
- package/docs/models/reference.md +46 -33
- package/docs/models-configuration.md +12 -6
- package/docs/models.md +93 -88
- package/docs/orchestration/migrating-workflows.md +21 -19
- package/docs/orchestration/patterns.md +35 -20
- package/docs/orchestration.md +22 -21
- package/docs/packages/authoring.md +28 -19
- package/docs/packages/reference.md +75 -16
- package/docs/packages.md +31 -33
- package/docs/programmatic.md +22 -21
- package/docs/prompt-templates.md +63 -41
- package/docs/providers/reference.md +35 -19
- package/docs/providers.md +61 -71
- package/docs/quickstart.md +32 -46
- package/docs/reference/cli.md +249 -252
- package/docs/reference.md +23 -20
- package/docs/rpc/examples.md +74 -17
- package/docs/rpc/extension-ui.md +79 -62
- package/docs/rpc/protocol.md +816 -358
- package/docs/rpc.md +75 -151
- package/docs/sdk/reference.md +175 -45
- package/docs/sdk/structured-decisions.md +92 -62
- package/docs/sdk/web-server.md +79 -46
- package/docs/sdk.md +237 -195
- package/docs/security.md +106 -43
- package/docs/session-format.md +96 -59
- package/docs/sessions.md +149 -113
- package/docs/settings.md +289 -204
- package/docs/shell-aliases.md +15 -6
- package/docs/skills/authoring.md +17 -9
- package/docs/skills/reference.md +23 -21
- package/docs/skills.md +104 -97
- package/docs/storage.md +140 -242
- package/docs/subagents/authoring.md +147 -16
- package/docs/subagents/reference.md +100 -30
- package/docs/subagents.md +220 -252
- package/docs/terminal-setup.md +97 -69
- package/docs/termux.md +51 -85
- package/docs/themes/reference.md +51 -37
- package/docs/themes.md +49 -54
- package/docs/tmux.md +38 -21
- package/docs/tools.md +198 -147
- package/docs/tui/reference.md +64 -32
- package/docs/tui.md +38 -66
- package/docs/usage.md +76 -78
- package/docs/verification.md +25 -25
- package/docs/web-access.md +72 -55
- package/docs/windows.md +53 -58
- package/docs/worktree-snapshots.md +62 -65
- package/package.json +8 -8
- package/schemas/models.schema.json +51 -0
- package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
- package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
- package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
- package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
- package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
|
@@ -1630,7 +1630,7 @@ const GIT_PROVISION_ERROR_NAME = "GitProvisionError";
|
|
|
1630
1630
|
const GIT_UNAVAILABLE_ERROR_NAME = "GitUnavailableError";
|
|
1631
1631
|
const GIT_PROVISION_TIMEOUT_ERROR_NAME = "GitProvisionTimeoutError";
|
|
1632
1632
|
const GIT_PROVISION_CONFIG_ERROR_NAME = "GitProvisionConfigError";
|
|
1633
|
-
const MAX_CAUSE_DEPTH$
|
|
1633
|
+
const MAX_CAUSE_DEPTH$6 = 8;
|
|
1634
1634
|
const RETRYABLE_HTTP_STATUSES$1 = /* @__PURE__ */ new Set([
|
|
1635
1635
|
408,
|
|
1636
1636
|
425,
|
|
@@ -1799,7 +1799,7 @@ function isGitProvisionConfigError(value) {
|
|
|
1799
1799
|
/** The first git provisioning error in `error`'s cause chain, searched to a bounded depth. */
|
|
1800
1800
|
function findGitProvisionError(error) {
|
|
1801
1801
|
let current = error;
|
|
1802
|
-
for (let depth = 0; depth < MAX_CAUSE_DEPTH$
|
|
1802
|
+
for (let depth = 0; depth < MAX_CAUSE_DEPTH$6 && typeof current === "object" && current !== null; depth++) {
|
|
1803
1803
|
if (isGitProvisionError(current)) return current;
|
|
1804
1804
|
current = current.cause;
|
|
1805
1805
|
}
|
|
@@ -1807,7 +1807,7 @@ function findGitProvisionError(error) {
|
|
|
1807
1807
|
/** Whether anything in `error`'s cause chain is a git provisioning error a caller may retry. */
|
|
1808
1808
|
function isRetryableGitProvisionError(error) {
|
|
1809
1809
|
let current = error;
|
|
1810
|
-
for (let depth = 0; depth < MAX_CAUSE_DEPTH$
|
|
1810
|
+
for (let depth = 0; depth < MAX_CAUSE_DEPTH$6 && typeof current === "object" && current !== null; depth++) {
|
|
1811
1811
|
if (isGitProvisionError(current) && current.retryable === true) return true;
|
|
1812
1812
|
current = current.cause;
|
|
1813
1813
|
}
|
|
@@ -1823,7 +1823,7 @@ function attachGitCleanupFailure(primary, cleanupFailure) {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
function serializeCause$2(cause, parentDepth) {
|
|
1825
1825
|
const depth = parentDepth + 1;
|
|
1826
|
-
if (depth > MAX_CAUSE_DEPTH$
|
|
1826
|
+
if (depth > MAX_CAUSE_DEPTH$6 || typeof cause !== "object" || cause === null) return void 0;
|
|
1827
1827
|
if (cause instanceof GitProvisionError) return serializeGitProvisionError(cause, depth);
|
|
1828
1828
|
const candidate = cause;
|
|
1829
1829
|
const nested = serializeCause$2(candidate.cause, depth);
|
|
@@ -1838,10 +1838,10 @@ __name(serializeCause$2, "serializeCause");
|
|
|
1838
1838
|
function isSerializedGitProvisionError(value) {
|
|
1839
1839
|
return typeof value.fields === "object";
|
|
1840
1840
|
}
|
|
1841
|
-
function rehydrateCause$
|
|
1841
|
+
function rehydrateCause$2(cause) {
|
|
1842
1842
|
if (cause === void 0) return void 0;
|
|
1843
1843
|
if (isSerializedGitProvisionError(cause)) return rehydrateGitProvisionError(cause);
|
|
1844
|
-
const nested = rehydrateCause$
|
|
1844
|
+
const nested = rehydrateCause$2(cause.cause);
|
|
1845
1845
|
const error = new Error(cause.message, nested === void 0 ? void 0 : { cause: nested });
|
|
1846
1846
|
error.name = cause.name;
|
|
1847
1847
|
if (cause.code !== void 0) Object.defineProperty(error, "code", {
|
|
@@ -1850,13 +1850,13 @@ function rehydrateCause$1(cause) {
|
|
|
1850
1850
|
});
|
|
1851
1851
|
return error;
|
|
1852
1852
|
}
|
|
1853
|
-
__name(rehydrateCause$
|
|
1853
|
+
__name(rehydrateCause$2, "rehydrateCause");
|
|
1854
1854
|
/**
|
|
1855
1855
|
* Restore a serialized git provisioning error as its own class, with its cause chain. An unknown name (from a newer
|
|
1856
1856
|
* sender) becomes a {@link GitProvisionError} that keeps the original name, code, message, and hint.
|
|
1857
1857
|
*/
|
|
1858
1858
|
function rehydrateGitProvisionError(payload) {
|
|
1859
|
-
const cause = rehydrateCause$
|
|
1859
|
+
const cause = rehydrateCause$2(payload.cause);
|
|
1860
1860
|
const options = cause === void 0 ? void 0 : { cause };
|
|
1861
1861
|
if (payload.name === GIT_UNAVAILABLE_ERROR_NAME && GIT_UNAVAILABLE_CODES.has(payload.code)) return new GitUnavailableError(payload.fields, options);
|
|
1862
1862
|
if (payload.name === GIT_PROVISION_TIMEOUT_ERROR_NAME && payload.code === "provision-timeout") return new GitProvisionTimeoutError(payload.fields, options);
|
|
@@ -1874,7 +1874,7 @@ function rehydrateGitProvisionError(payload) {
|
|
|
1874
1874
|
const MANAGED_TOOL_ERROR_NAME = "ManagedToolError";
|
|
1875
1875
|
const MANAGED_TOOL_DOWNLOAD_ERROR_NAME = "ManagedToolDownloadError";
|
|
1876
1876
|
const MANAGED_TOOL_TIMEOUT_ERROR_NAME = "ManagedToolTimeoutError";
|
|
1877
|
-
const MAX_CAUSE_DEPTH$
|
|
1877
|
+
const MAX_CAUSE_DEPTH$5 = 8;
|
|
1878
1878
|
const RETRYABLE_HTTP_STATUSES = /* @__PURE__ */ new Set([
|
|
1879
1879
|
408,
|
|
1880
1880
|
425,
|
|
@@ -1960,7 +1960,7 @@ function isManagedToolError(value) {
|
|
|
1960
1960
|
/** Whether anything in `error`'s cause chain is a managed tool download failure a caller may retry. */
|
|
1961
1961
|
function isRetryableManagedToolError(error) {
|
|
1962
1962
|
let current = error;
|
|
1963
|
-
for (let depth = 0; depth < MAX_CAUSE_DEPTH$
|
|
1963
|
+
for (let depth = 0; depth < MAX_CAUSE_DEPTH$5 && typeof current === "object" && current !== null; depth++) {
|
|
1964
1964
|
if (isManagedToolError(current) && current.retryable === true) return true;
|
|
1965
1965
|
current = current.cause;
|
|
1966
1966
|
}
|
|
@@ -4555,7 +4555,7 @@ function holdToolsUntilOwnerBuilt(storeDir, ownerPid, sessionId, recordTimings)
|
|
|
4555
4555
|
/** The largest `afterMs` a detachment policy accepts: timers clamp anything above it to 1 ms. */
|
|
4556
4556
|
const MAX_TOOL_DETACHMENT_AFTER_MS = 0x7fffffff;
|
|
4557
4557
|
const TOOL_DETACHMENT_ERROR_NAME = "ToolDetachmentError";
|
|
4558
|
-
const MAX_CAUSE_DEPTH$
|
|
4558
|
+
const MAX_CAUSE_DEPTH$4 = 8;
|
|
4559
4559
|
const HINTS = {
|
|
4560
4560
|
"invalid-policy": `Pass a policy whose afterMs is a finite number of milliseconds from 0 to ${MAX_TOOL_DETACHMENT_AFTER_MS}, or undefined.`,
|
|
4561
4561
|
"unknown-tool-call": "Hand back only results of the calls takeDetachedToolCalls() or redispatchDetachedToolCalls() returned for this session's transcript.",
|
|
@@ -4620,7 +4620,7 @@ function isToolDetachmentError(error) {
|
|
|
4620
4620
|
/** The first {@link ToolDetachmentError} in `error`'s cause chain, at most eight levels deep. */
|
|
4621
4621
|
function findToolDetachmentError(error) {
|
|
4622
4622
|
let current = error;
|
|
4623
|
-
for (let depth = 0; depth < MAX_CAUSE_DEPTH$
|
|
4623
|
+
for (let depth = 0; depth < MAX_CAUSE_DEPTH$4 && typeof current === "object" && current !== null; depth++) {
|
|
4624
4624
|
if (isToolDetachmentError(current)) return current;
|
|
4625
4625
|
current = current.cause;
|
|
4626
4626
|
}
|
|
@@ -6159,7 +6159,7 @@ function rehydrateTaskCleanupError(value) {
|
|
|
6159
6159
|
if (!TASK_CLEANUP_PHASES.has(phase)) return void 0;
|
|
6160
6160
|
return new TaskCleanupError(phase, failures);
|
|
6161
6161
|
}
|
|
6162
|
-
const MAX_CAUSE_DEPTH$
|
|
6162
|
+
const MAX_CAUSE_DEPTH$3 = 8;
|
|
6163
6163
|
/**
|
|
6164
6164
|
* True when the error, or one in its `cause` chain within eight links, is a retryable {@link TaskCleanupError}, also
|
|
6165
6165
|
* a copy from another process. It does not look inside an `AggregateError`'s `errors`, which may hold failures that
|
|
@@ -6167,7 +6167,7 @@ const MAX_CAUSE_DEPTH$2 = 8;
|
|
|
6167
6167
|
*/
|
|
6168
6168
|
function isRetryableTaskError(error) {
|
|
6169
6169
|
let current = error;
|
|
6170
|
-
for (let depth = 0; depth < MAX_CAUSE_DEPTH$
|
|
6170
|
+
for (let depth = 0; depth < MAX_CAUSE_DEPTH$3 && typeof current === "object" && current !== null; depth++) {
|
|
6171
6171
|
if (isTaskCleanupError(current) && current.retryable === true) return true;
|
|
6172
6172
|
current = current.cause;
|
|
6173
6173
|
}
|
|
@@ -6213,14 +6213,14 @@ function isTaskEvictedError(error) {
|
|
|
6213
6213
|
const candidate = error;
|
|
6214
6214
|
return candidate.name === TASK_EVICTED_ERROR_NAME && candidate.code === TASK_EVICTED_ERROR_CODE;
|
|
6215
6215
|
}
|
|
6216
|
-
const MAX_CAUSE_DEPTH$
|
|
6216
|
+
const MAX_CAUSE_DEPTH$2 = 8;
|
|
6217
6217
|
/**
|
|
6218
6218
|
* The {@link TaskEvictedError} that is the error or sits in its `cause` chain within eight links, such as the cause of
|
|
6219
6219
|
* the `TaskToolError` a `wait` or `kill` of an evicted task throws; undefined when there is none.
|
|
6220
6220
|
*/
|
|
6221
6221
|
function findTaskEvictedError(error) {
|
|
6222
6222
|
let current = error;
|
|
6223
|
-
for (let depth = 0; depth < MAX_CAUSE_DEPTH$
|
|
6223
|
+
for (let depth = 0; depth < MAX_CAUSE_DEPTH$2 && typeof current === "object" && current !== null; depth++) {
|
|
6224
6224
|
if (isTaskEvictedError(current)) return current;
|
|
6225
6225
|
current = current.cause;
|
|
6226
6226
|
}
|
|
@@ -7689,19 +7689,19 @@ const MANIFEST_ENTRY_FIELDS = [
|
|
|
7689
7689
|
"storageAdapters",
|
|
7690
7690
|
"agents"
|
|
7691
7691
|
];
|
|
7692
|
-
function isRecord$
|
|
7692
|
+
function isRecord$2(value) {
|
|
7693
7693
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
7694
7694
|
}
|
|
7695
|
-
__name(isRecord$
|
|
7695
|
+
__name(isRecord$2, "isRecord");
|
|
7696
7696
|
/** Keep the object-valued entries of an `mcpServers` map; the MCP adapter validates their fields. */
|
|
7697
7697
|
function sanitizeMcpServers(value) {
|
|
7698
|
-
if (!isRecord$
|
|
7698
|
+
if (!isRecord$2(value)) return void 0;
|
|
7699
7699
|
const servers = {};
|
|
7700
|
-
for (const [name, entry] of Object.entries(value)) if (isRecord$
|
|
7700
|
+
for (const [name, entry] of Object.entries(value)) if (isRecord$2(entry)) servers[name] = entry;
|
|
7701
7701
|
return servers;
|
|
7702
7702
|
}
|
|
7703
7703
|
function sanitizeManifest(value) {
|
|
7704
|
-
if (!isRecord$
|
|
7704
|
+
if (!isRecord$2(value)) return null;
|
|
7705
7705
|
const manifest = {};
|
|
7706
7706
|
for (const field of MANIFEST_ENTRY_FIELDS) {
|
|
7707
7707
|
const entries = value[field];
|
|
@@ -7719,7 +7719,7 @@ function sanitizeManifest(value) {
|
|
|
7719
7719
|
return manifest;
|
|
7720
7720
|
}
|
|
7721
7721
|
function getManifestFromPackageJson(pkg) {
|
|
7722
|
-
if (!isRecord$
|
|
7722
|
+
if (!isRecord$2(pkg)) return null;
|
|
7723
7723
|
return sanitizeManifest(pkg[APP_NAME]) ?? sanitizeManifest(pkg.pi);
|
|
7724
7724
|
}
|
|
7725
7725
|
function readPiManifestFile(packageJsonPath) {
|
|
@@ -7768,7 +7768,7 @@ async function getDefaultSessionDirAsync(cwd, agentDir = getAgentDir()) {
|
|
|
7768
7768
|
}
|
|
7769
7769
|
// dist/core/experimental.js
|
|
7770
7770
|
function areExperimentalFeaturesEnabled() {
|
|
7771
|
-
return
|
|
7771
|
+
return getEnvValue(`${APP_NAME.toUpperCase()}_EXPERIMENTAL`) === "1";
|
|
7772
7772
|
}
|
|
7773
7773
|
const PREFER_STRICT_TOOL_SAMPLING = {
|
|
7774
7774
|
type: "json_schema",
|
|
@@ -10536,12 +10536,14 @@ const ARCHIVE_SELECTOR_EXTENSIONS = [
|
|
|
10536
10536
|
];
|
|
10537
10537
|
const RESOURCE_SELECTOR_EXTENSIONS = [
|
|
10538
10538
|
".tar.gz",
|
|
10539
|
+
".sqlite3",
|
|
10539
10540
|
".sqlite",
|
|
10540
10541
|
".zip",
|
|
10541
10542
|
".jar",
|
|
10542
10543
|
".tar",
|
|
10543
10544
|
".tgz",
|
|
10544
10545
|
".gz",
|
|
10546
|
+
".db3",
|
|
10545
10547
|
".db"
|
|
10546
10548
|
];
|
|
10547
10549
|
function isAsciiDigit(char) {
|
|
@@ -15203,7 +15205,7 @@ async function sha256Hex(data) {
|
|
|
15203
15205
|
}
|
|
15204
15206
|
// dist/core/event-subscriptions/errors.js
|
|
15205
15207
|
/** Typed failures of event subscriptions (`ctx.subscribe`, `ctx.events`, `session.subscribe`, event sources). */
|
|
15206
|
-
const MAX_CAUSE_DEPTH = 8;
|
|
15208
|
+
const MAX_CAUSE_DEPTH$1 = 8;
|
|
15207
15209
|
function failureMessage(what, subject, code, hint) {
|
|
15208
15210
|
return `${what}: ${subject} (${code}). ${hint}`;
|
|
15209
15211
|
}
|
|
@@ -15512,7 +15514,7 @@ function structural(value) {
|
|
|
15512
15514
|
}
|
|
15513
15515
|
function findInCauseChain(error, matches) {
|
|
15514
15516
|
let current = error;
|
|
15515
|
-
for (let depth = 0; depth < MAX_CAUSE_DEPTH; depth++) {
|
|
15517
|
+
for (let depth = 0; depth < MAX_CAUSE_DEPTH$1; depth++) {
|
|
15516
15518
|
if (matches(current)) return current;
|
|
15517
15519
|
current = structural(current).cause;
|
|
15518
15520
|
}
|
|
@@ -15549,7 +15551,7 @@ function isRetryableSubscriptionError(error) {
|
|
|
15549
15551
|
return findSubscriptionError(error)?.retryable === true;
|
|
15550
15552
|
}
|
|
15551
15553
|
function serializeCause(cause, depth) {
|
|
15552
|
-
if (depth >= MAX_CAUSE_DEPTH || cause === void 0 || cause === null) return void 0;
|
|
15554
|
+
if (depth >= MAX_CAUSE_DEPTH$1 || cause === void 0 || cause === null) return void 0;
|
|
15553
15555
|
const candidate = structural(cause);
|
|
15554
15556
|
const name = typeof candidate.name === "string" ? candidate.name : typeof cause;
|
|
15555
15557
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
@@ -15575,9 +15577,9 @@ function serializeSubscriptionError(error) {
|
|
|
15575
15577
|
...cause === void 0 ? {} : { cause }
|
|
15576
15578
|
};
|
|
15577
15579
|
}
|
|
15578
|
-
function rehydrateCause(cause) {
|
|
15580
|
+
function rehydrateCause$1(cause) {
|
|
15579
15581
|
if (cause === void 0) return void 0;
|
|
15580
|
-
const error = new Error(cause.message, { cause: rehydrateCause(cause.cause) });
|
|
15582
|
+
const error = new Error(cause.message, { cause: rehydrateCause$1(cause.cause) });
|
|
15581
15583
|
Object.defineProperty(error, "name", { value: cause.name });
|
|
15582
15584
|
if (cause.code !== void 0) Object.defineProperty(error, "code", {
|
|
15583
15585
|
value: cause.code,
|
|
@@ -15585,6 +15587,7 @@ function rehydrateCause(cause) {
|
|
|
15585
15587
|
});
|
|
15586
15588
|
return error;
|
|
15587
15589
|
}
|
|
15590
|
+
__name(rehydrateCause$1, "rehydrateCause");
|
|
15588
15591
|
function stringField(fields, key) {
|
|
15589
15592
|
const value = fields[key];
|
|
15590
15593
|
return typeof value === "string" ? value : "";
|
|
@@ -15619,7 +15622,7 @@ function familyBase(serialized, cause) {
|
|
|
15619
15622
|
}
|
|
15620
15623
|
/** Rebuild a serialized subscription error as its own class; unknown names become the family base. */
|
|
15621
15624
|
function deserializeSubscriptionError(serialized) {
|
|
15622
|
-
const cause = rehydrateCause(serialized.cause);
|
|
15625
|
+
const cause = rehydrateCause$1(serialized.cause);
|
|
15623
15626
|
const fields = serialized.fields;
|
|
15624
15627
|
const rebuilt = (() => {
|
|
15625
15628
|
switch (serialized.name) {
|
|
@@ -16552,6 +16555,370 @@ const CACHE_WARMING_MODES = [
|
|
|
16552
16555
|
"streaming",
|
|
16553
16556
|
"idle"
|
|
16554
16557
|
];
|
|
16558
|
+
// dist/core/compaction/errors.js
|
|
16559
|
+
/**
|
|
16560
|
+
* The {@link CompactionError} family: every typed failure of compaction settings, session compaction state,
|
|
16561
|
+
* cancellation, and remote compactor requests. Catch the family or a concrete subclass and branch on `code`.
|
|
16562
|
+
*/
|
|
16563
|
+
const COMPACTION_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
16564
|
+
"invalid-setting",
|
|
16565
|
+
"cancelled",
|
|
16566
|
+
"nothing-to-compact",
|
|
16567
|
+
"pending-tool-call",
|
|
16568
|
+
"no-model-selected",
|
|
16569
|
+
"snapshot-failed",
|
|
16570
|
+
"boundary-not-built",
|
|
16571
|
+
"missing-base-url",
|
|
16572
|
+
"missing-credentials",
|
|
16573
|
+
"request-aborted",
|
|
16574
|
+
"timeout",
|
|
16575
|
+
"http-error",
|
|
16576
|
+
"network-error",
|
|
16577
|
+
"malformed-response",
|
|
16578
|
+
"empty-output",
|
|
16579
|
+
"compactor-failed"
|
|
16580
|
+
]);
|
|
16581
|
+
const COMPACTOR_FAILURE_CODES = /* @__PURE__ */ new Set([
|
|
16582
|
+
"missing-base-url",
|
|
16583
|
+
"missing-credentials",
|
|
16584
|
+
"request-aborted",
|
|
16585
|
+
"timeout",
|
|
16586
|
+
"http-error",
|
|
16587
|
+
"network-error",
|
|
16588
|
+
"malformed-response",
|
|
16589
|
+
"empty-output",
|
|
16590
|
+
"compactor-failed"
|
|
16591
|
+
]);
|
|
16592
|
+
const COMPACTION_STATE_CODES = /* @__PURE__ */ new Set([
|
|
16593
|
+
"nothing-to-compact",
|
|
16594
|
+
"pending-tool-call",
|
|
16595
|
+
"no-model-selected",
|
|
16596
|
+
"snapshot-failed",
|
|
16597
|
+
"boundary-not-built"
|
|
16598
|
+
]);
|
|
16599
|
+
const MAX_CAUSE_DEPTH = 8;
|
|
16600
|
+
function presentFields(fields) {
|
|
16601
|
+
return Object.fromEntries(Object.entries(fields).filter(([, value]) => value !== void 0));
|
|
16602
|
+
}
|
|
16603
|
+
/** The family of compaction errors. Not retryable unless a subclass says so. */
|
|
16604
|
+
var CompactionError = class extends Error {
|
|
16605
|
+
name = "CompactionError";
|
|
16606
|
+
code;
|
|
16607
|
+
hint;
|
|
16608
|
+
retryable = false;
|
|
16609
|
+
extraFields;
|
|
16610
|
+
constructor(code, message, hint, options) {
|
|
16611
|
+
super(message, options?.cause !== void 0 ? { cause: options.cause } : void 0);
|
|
16612
|
+
this.code = code;
|
|
16613
|
+
this.hint = hint;
|
|
16614
|
+
if (options?.retryable !== void 0) this.retryable = options.retryable;
|
|
16615
|
+
this.extraFields = options?.fields ? { ...options.fields } : {};
|
|
16616
|
+
}
|
|
16617
|
+
fields() {
|
|
16618
|
+
return { ...this.extraFields };
|
|
16619
|
+
}
|
|
16620
|
+
};
|
|
16621
|
+
const CONFIG_PLACES = {
|
|
16622
|
+
settings: {
|
|
16623
|
+
subject: "settings.json",
|
|
16624
|
+
hint: "settings.json"
|
|
16625
|
+
},
|
|
16626
|
+
sdk: {
|
|
16627
|
+
subject: "the SDK settings",
|
|
16628
|
+
hint: "the settings you pass"
|
|
16629
|
+
},
|
|
16630
|
+
rpc: {
|
|
16631
|
+
subject: "the RPC command",
|
|
16632
|
+
hint: "the RPC command"
|
|
16633
|
+
}
|
|
16634
|
+
};
|
|
16635
|
+
function configHint(fields) {
|
|
16636
|
+
if (fields.field === "scope") return "Pass scope as \"global\" or \"project\", or omit it.";
|
|
16637
|
+
return `Set "compactionModel" in ${fields.scope ? `your ${fields.scope} settings.json` : CONFIG_PLACES[fields.source].hint} to "auto", an empty string, or an exact compactor provider/model ID.`;
|
|
16638
|
+
}
|
|
16639
|
+
/** A compaction setting or RPC parameter is invalid. Not retryable: fix the value. */
|
|
16640
|
+
var CompactionConfigError = class extends CompactionError {
|
|
16641
|
+
name = "CompactionConfigError";
|
|
16642
|
+
retryable = false;
|
|
16643
|
+
source;
|
|
16644
|
+
field;
|
|
16645
|
+
scope;
|
|
16646
|
+
constructor(fields, options) {
|
|
16647
|
+
const hint = configHint(fields);
|
|
16648
|
+
const where = fields.scope ? `${fields.scope} settings.json` : CONFIG_PLACES[fields.source].subject;
|
|
16649
|
+
super("invalid-setting", `Invalid compaction setting: "${fields.field}" in ${where} (invalid-setting). ${hint}`, hint, options);
|
|
16650
|
+
this.source = fields.source;
|
|
16651
|
+
this.field = fields.field;
|
|
16652
|
+
this.scope = fields.scope;
|
|
16653
|
+
}
|
|
16654
|
+
fields() {
|
|
16655
|
+
return presentFields({
|
|
16656
|
+
source: this.source,
|
|
16657
|
+
field: this.field,
|
|
16658
|
+
scope: this.scope
|
|
16659
|
+
});
|
|
16660
|
+
}
|
|
16661
|
+
};
|
|
16662
|
+
const CANCELLED_HINT = "Run /compact again when you are ready to compact the session.";
|
|
16663
|
+
/** Compaction was cancelled before committing a boundary. Not retryable automatically. */
|
|
16664
|
+
var CompactionCancelledError = class extends CompactionError {
|
|
16665
|
+
name = "CompactionCancelledError";
|
|
16666
|
+
retryable = false;
|
|
16667
|
+
reason;
|
|
16668
|
+
constructor(fields = {}, options) {
|
|
16669
|
+
super("cancelled", "Compaction cancelled", CANCELLED_HINT, options);
|
|
16670
|
+
this.reason = fields.reason;
|
|
16671
|
+
}
|
|
16672
|
+
fields() {
|
|
16673
|
+
return presentFields({ reason: this.reason });
|
|
16674
|
+
}
|
|
16675
|
+
};
|
|
16676
|
+
const STATE_DEFAULTS = {
|
|
16677
|
+
"nothing-to-compact": {
|
|
16678
|
+
message: "Nothing to compact: the context holds nothing new since the last boundary",
|
|
16679
|
+
hint: "Send at least one message before compacting again."
|
|
16680
|
+
},
|
|
16681
|
+
"pending-tool-call": {
|
|
16682
|
+
message: "A tool call is still waiting for its result; compact after it finishes, so the call and its result stay together",
|
|
16683
|
+
hint: "Wait for the in-flight tool call to complete, then compact again."
|
|
16684
|
+
},
|
|
16685
|
+
"no-model-selected": {
|
|
16686
|
+
message: "No model selected",
|
|
16687
|
+
hint: "Select a chat model with /model before compacting."
|
|
16688
|
+
},
|
|
16689
|
+
"snapshot-failed": {
|
|
16690
|
+
message: "Failed to snapshot transcript for compaction extensions",
|
|
16691
|
+
hint: "Ensure session messages contain cloneable values before running session_before_compact extensions."
|
|
16692
|
+
},
|
|
16693
|
+
"boundary-not-built": {
|
|
16694
|
+
message: "Compaction boundary was not built",
|
|
16695
|
+
hint: "Retry compaction on an open session."
|
|
16696
|
+
}
|
|
16697
|
+
};
|
|
16698
|
+
/** Compaction could not start or commit in the session's current state. */
|
|
16699
|
+
var CompactionStateError = class extends CompactionError {
|
|
16700
|
+
name = "CompactionStateError";
|
|
16701
|
+
retryable = false;
|
|
16702
|
+
detail;
|
|
16703
|
+
constructor(fields, options) {
|
|
16704
|
+
const defaults = STATE_DEFAULTS[fields.code];
|
|
16705
|
+
const text = fields.message ?? (fields.detail ? `${defaults.message}: ${fields.detail}` : defaults.message);
|
|
16706
|
+
super(fields.code, text, defaults.hint, options);
|
|
16707
|
+
this.detail = fields.detail || void 0;
|
|
16708
|
+
}
|
|
16709
|
+
fields() {
|
|
16710
|
+
return presentFields({ detail: this.detail });
|
|
16711
|
+
}
|
|
16712
|
+
};
|
|
16713
|
+
const COMPACTOR_FAILURE_HINTS = {
|
|
16714
|
+
"missing-base-url": "Configure \"baseUrl\" on the compactor provider or model in models.json or an extension.",
|
|
16715
|
+
"missing-credentials": "Run /login <provider>, set the provider API key variable, or configure auth headers.",
|
|
16716
|
+
"request-aborted": "Context was cleared instead; run /compact again to retry the compactor.",
|
|
16717
|
+
timeout: "Retry, or raise timeoutMs on the compactor model in models.json.",
|
|
16718
|
+
"http-error": "Check the compactor endpoint URL, authentication headers, and compactionParams.",
|
|
16719
|
+
"network-error": "Check network connectivity to the compactor endpoint and retry.",
|
|
16720
|
+
"malformed-response": "Ensure the compactor endpoint returns JSON with \"output\" or \"messages[].content\".",
|
|
16721
|
+
"empty-output": "Ensure the compactor endpoint returns non-empty text.",
|
|
16722
|
+
"compactor-failed": "Check the compactor model configuration; Atomic falls back to clearing context automatically."
|
|
16723
|
+
};
|
|
16724
|
+
function isRetryableCompactorFailure(code, status) {
|
|
16725
|
+
if (code === "timeout" || code === "network-error") return true;
|
|
16726
|
+
if (code === "http-error" && status !== void 0) return status === 408 || status === 429 || status >= 500;
|
|
16727
|
+
return false;
|
|
16728
|
+
}
|
|
16729
|
+
/** Why a compactor request produced no usable text. Session compaction falls back to clearing the context instead. */
|
|
16730
|
+
var CompactorFailure = class extends CompactionError {
|
|
16731
|
+
name = "CompactorFailure";
|
|
16732
|
+
retryable;
|
|
16733
|
+
status;
|
|
16734
|
+
timeoutMs;
|
|
16735
|
+
model;
|
|
16736
|
+
constructor(message, options = {}) {
|
|
16737
|
+
const code = options.code ?? "compactor-failed";
|
|
16738
|
+
const hint = options.hint ?? COMPACTOR_FAILURE_HINTS[code];
|
|
16739
|
+
const retryable = options.retryable ?? isRetryableCompactorFailure(code, options.status);
|
|
16740
|
+
super(code, message, hint, {
|
|
16741
|
+
...options.cause !== void 0 ? { cause: options.cause } : {},
|
|
16742
|
+
retryable
|
|
16743
|
+
});
|
|
16744
|
+
this.retryable = retryable;
|
|
16745
|
+
this.status = options.status;
|
|
16746
|
+
this.timeoutMs = options.timeoutMs;
|
|
16747
|
+
this.model = options.model;
|
|
16748
|
+
}
|
|
16749
|
+
fields() {
|
|
16750
|
+
return presentFields({
|
|
16751
|
+
status: this.status,
|
|
16752
|
+
timeoutMs: this.timeoutMs,
|
|
16753
|
+
model: this.model
|
|
16754
|
+
});
|
|
16755
|
+
}
|
|
16756
|
+
};
|
|
16757
|
+
function optionalText(value) {
|
|
16758
|
+
return value === void 0 || typeof value === "string";
|
|
16759
|
+
}
|
|
16760
|
+
function optionalPositiveNumber(value) {
|
|
16761
|
+
return value === void 0 || typeof value === "number" && Number.isFinite(value) && value > 0;
|
|
16762
|
+
}
|
|
16763
|
+
const CONCRETE = {
|
|
16764
|
+
CompactionConfigError: {
|
|
16765
|
+
codes: /* @__PURE__ */ new Set(["invalid-setting"]),
|
|
16766
|
+
validFields: (fields) => typeof fields.source === "string" && Object.hasOwn(CONFIG_PLACES, fields.source) && typeof fields.field === "string" && (fields.scope === void 0 || fields.scope === "global" || fields.scope === "project"),
|
|
16767
|
+
rebuild: (serialized, options) => {
|
|
16768
|
+
const error = new CompactionConfigError(serialized.fields, options);
|
|
16769
|
+
error.message = serialized.message;
|
|
16770
|
+
return error;
|
|
16771
|
+
}
|
|
16772
|
+
},
|
|
16773
|
+
CompactionCancelledError: {
|
|
16774
|
+
codes: /* @__PURE__ */ new Set(["cancelled"]),
|
|
16775
|
+
validFields: (fields) => fields.reason === void 0 || fields.reason === "aborted" || fields.reason === "extension",
|
|
16776
|
+
rebuild: (serialized, options) => new CompactionCancelledError(serialized.fields, options)
|
|
16777
|
+
},
|
|
16778
|
+
CompactionStateError: {
|
|
16779
|
+
codes: COMPACTION_STATE_CODES,
|
|
16780
|
+
validFields: (fields) => optionalText(fields.detail),
|
|
16781
|
+
rebuild: (serialized, options) => new CompactionStateError({
|
|
16782
|
+
code: serialized.code,
|
|
16783
|
+
message: serialized.message,
|
|
16784
|
+
...typeof serialized.fields.detail === "string" ? { detail: serialized.fields.detail } : {}
|
|
16785
|
+
}, options)
|
|
16786
|
+
},
|
|
16787
|
+
CompactorFailure: {
|
|
16788
|
+
codes: COMPACTOR_FAILURE_CODES,
|
|
16789
|
+
validFields: (fields) => optionalText(fields.model) && optionalPositiveNumber(fields.timeoutMs) && (fields.status === void 0 || typeof fields.status === "number" && Number.isInteger(fields.status) && fields.status >= 100 && fields.status <= 599),
|
|
16790
|
+
rebuild: (serialized, options) => new CompactorFailure(serialized.message, {
|
|
16791
|
+
...options,
|
|
16792
|
+
code: serialized.code,
|
|
16793
|
+
hint: serialized.hint,
|
|
16794
|
+
retryable: serialized.retryable,
|
|
16795
|
+
...typeof serialized.fields.status === "number" ? { status: serialized.fields.status } : {},
|
|
16796
|
+
...typeof serialized.fields.timeoutMs === "number" ? { timeoutMs: serialized.fields.timeoutMs } : {},
|
|
16797
|
+
...typeof serialized.fields.model === "string" ? { model: serialized.fields.model } : {}
|
|
16798
|
+
})
|
|
16799
|
+
}
|
|
16800
|
+
};
|
|
16801
|
+
function concrete(name) {
|
|
16802
|
+
return Object.hasOwn(CONCRETE, name) ? CONCRETE[name] : void 0;
|
|
16803
|
+
}
|
|
16804
|
+
function hasStructure(value, name) {
|
|
16805
|
+
if (value === null || typeof value !== "object") return false;
|
|
16806
|
+
const { name: actual, code } = value;
|
|
16807
|
+
if (name !== void 0 && actual !== name) return false;
|
|
16808
|
+
return (actual === "CompactionError" ? COMPACTION_ERROR_CODES : concrete(String(actual))?.codes)?.has(String(code)) === true;
|
|
16809
|
+
}
|
|
16810
|
+
/** Whether `value` is a {@link CompactionError}, including one that crossed a process boundary. */
|
|
16811
|
+
function isCompactionError(value) {
|
|
16812
|
+
return value instanceof CompactionError || hasStructure(value);
|
|
16813
|
+
}
|
|
16814
|
+
/** Whether `value` is a {@link CompactionConfigError}, including one that crossed a process boundary. */
|
|
16815
|
+
function isCompactionConfigError(value) {
|
|
16816
|
+
return value instanceof CompactionConfigError || hasStructure(value, "CompactionConfigError");
|
|
16817
|
+
}
|
|
16818
|
+
/** Whether `value` is a {@link CompactionCancelledError}, including one that crossed a process boundary. */
|
|
16819
|
+
function isCompactionCancelledError(value) {
|
|
16820
|
+
return value instanceof CompactionCancelledError || hasStructure(value, "CompactionCancelledError");
|
|
16821
|
+
}
|
|
16822
|
+
/** Whether `value` is a {@link CompactionStateError}, including one that crossed a process boundary. */
|
|
16823
|
+
function isCompactionStateError(value) {
|
|
16824
|
+
return value instanceof CompactionStateError || hasStructure(value, "CompactionStateError");
|
|
16825
|
+
}
|
|
16826
|
+
/** Whether `value` is a {@link CompactorFailure}, including one that crossed a process boundary. */
|
|
16827
|
+
function isCompactorFailure(value) {
|
|
16828
|
+
return value instanceof CompactorFailure || hasStructure(value, "CompactorFailure");
|
|
16829
|
+
}
|
|
16830
|
+
/** The first {@link CompactionError} in `error`'s cause chain, looking at most eight errors deep. */
|
|
16831
|
+
function findCompactionError(error) {
|
|
16832
|
+
let current = error;
|
|
16833
|
+
for (let depth = 0; depth < MAX_CAUSE_DEPTH; depth++) {
|
|
16834
|
+
if (isCompactionError(current)) return current;
|
|
16835
|
+
if (current === null || typeof current !== "object") return void 0;
|
|
16836
|
+
current = current.cause;
|
|
16837
|
+
}
|
|
16838
|
+
}
|
|
16839
|
+
/** Whether a compaction error in `error`'s cause chain says the caller may retry. */
|
|
16840
|
+
function isRetryableCompactionError(error) {
|
|
16841
|
+
return findCompactionError(error)?.retryable === true;
|
|
16842
|
+
}
|
|
16843
|
+
function serializedCause(cause, depth) {
|
|
16844
|
+
if (depth >= MAX_CAUSE_DEPTH) return {};
|
|
16845
|
+
if (isCompactionError(cause)) return { cause: serializeCompactionError(cause, depth) };
|
|
16846
|
+
if (cause instanceof Error) return { cause: {
|
|
16847
|
+
name: cause.name,
|
|
16848
|
+
message: cause.message
|
|
16849
|
+
} };
|
|
16850
|
+
return {};
|
|
16851
|
+
}
|
|
16852
|
+
/** Serialize `error` and up to seven causes into JSON-safe data that {@link rehydrateCompactionError} restores. */
|
|
16853
|
+
function serializeCompactionError(error, depth = 0) {
|
|
16854
|
+
return {
|
|
16855
|
+
name: error.name,
|
|
16856
|
+
code: error.code,
|
|
16857
|
+
message: error.message,
|
|
16858
|
+
hint: error.hint,
|
|
16859
|
+
retryable: error.retryable,
|
|
16860
|
+
fields: error.fields(),
|
|
16861
|
+
...serializedCause(error.cause, depth + 1)
|
|
16862
|
+
};
|
|
16863
|
+
}
|
|
16864
|
+
function isRecord$1(value) {
|
|
16865
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
16866
|
+
}
|
|
16867
|
+
__name(isRecord$1, "isRecord");
|
|
16868
|
+
function parseSerializedCause(value, depth) {
|
|
16869
|
+
if (!isRecord$1(value) || typeof value.name !== "string" || typeof value.message !== "string") return null;
|
|
16870
|
+
if (!("code" in value)) return {
|
|
16871
|
+
name: value.name,
|
|
16872
|
+
message: value.message
|
|
16873
|
+
};
|
|
16874
|
+
return parseSerializedCompactionErrorAt(value, depth) ?? null;
|
|
16875
|
+
}
|
|
16876
|
+
function parseSerializedCompactionErrorAt(value, depth) {
|
|
16877
|
+
if (depth >= MAX_CAUSE_DEPTH || !isRecord$1(value)) return void 0;
|
|
16878
|
+
const { name, code, message, hint, retryable, fields, cause } = value;
|
|
16879
|
+
if (typeof name !== "string" || typeof code !== "string" || typeof message !== "string" || typeof hint !== "string" || typeof retryable !== "boolean" || !isRecord$1(fields) || !Object.values(fields).every((field) => typeof field === "string" || typeof field === "boolean" || typeof field === "number" && Number.isFinite(field))) return void 0;
|
|
16880
|
+
const member = concrete(name);
|
|
16881
|
+
if (member && (!member.codes.has(code) || !member.validFields(fields))) return void 0;
|
|
16882
|
+
const parsedCause = cause === void 0 ? void 0 : parseSerializedCause(cause, depth + 1);
|
|
16883
|
+
if (parsedCause === null) return void 0;
|
|
16884
|
+
return {
|
|
16885
|
+
name,
|
|
16886
|
+
code,
|
|
16887
|
+
message,
|
|
16888
|
+
hint,
|
|
16889
|
+
retryable,
|
|
16890
|
+
fields,
|
|
16891
|
+
...parsedCause === void 0 ? {} : { cause: parsedCause }
|
|
16892
|
+
};
|
|
16893
|
+
}
|
|
16894
|
+
/** Validate untrusted data received across a process boundary as a {@link SerializedCompactionError}. */
|
|
16895
|
+
function parseSerializedCompactionError(value) {
|
|
16896
|
+
return parseSerializedCompactionErrorAt(value, 0);
|
|
16897
|
+
}
|
|
16898
|
+
function rehydrateCause(cause) {
|
|
16899
|
+
if (cause === void 0) return void 0;
|
|
16900
|
+
if ("code" in cause) return rehydrateCompactionError(cause);
|
|
16901
|
+
const error = new Error(cause.message);
|
|
16902
|
+
error.name = cause.name;
|
|
16903
|
+
return error;
|
|
16904
|
+
}
|
|
16905
|
+
/** Restore a serialized compaction error as the same class, with its fields and cause chain; unknown names become the family base. */
|
|
16906
|
+
function rehydrateCompactionError(serialized) {
|
|
16907
|
+
const cause = rehydrateCause(serialized.cause);
|
|
16908
|
+
const options = cause !== void 0 ? { cause } : {};
|
|
16909
|
+
const member = concrete(serialized.name);
|
|
16910
|
+
if (member) return member.rebuild(serialized, options);
|
|
16911
|
+
const error = new CompactionError(serialized.code, serialized.message, serialized.hint, {
|
|
16912
|
+
...options,
|
|
16913
|
+
retryable: serialized.retryable,
|
|
16914
|
+
fields: serialized.fields
|
|
16915
|
+
});
|
|
16916
|
+
Object.defineProperty(error, "name", {
|
|
16917
|
+
value: serialized.name,
|
|
16918
|
+
enumerable: false
|
|
16919
|
+
});
|
|
16920
|
+
return error;
|
|
16921
|
+
}
|
|
16555
16922
|
// dist/utils/deprecation.js
|
|
16556
16923
|
/**
|
|
16557
16924
|
* Process-global state shared with the bundled packages that warn about the same removed options (settings,
|
|
@@ -18291,6 +18658,33 @@ function retirePaneReporting(owner) {
|
|
|
18291
18658
|
function releasePaneReporting(owner) {
|
|
18292
18659
|
return stopPaneReporting(owner, true);
|
|
18293
18660
|
}
|
|
18661
|
+
async function releaseRetiredPaneReporting(environment, options = {}) {
|
|
18662
|
+
const previous = owners.get(environment.paneId);
|
|
18663
|
+
if (!previous || previous.status === "active") return;
|
|
18664
|
+
await previous.release;
|
|
18665
|
+
if (owners.get(environment.paneId) !== previous) return;
|
|
18666
|
+
if (previous.seq === 0) {
|
|
18667
|
+
owners.delete(environment.paneId);
|
|
18668
|
+
return;
|
|
18669
|
+
}
|
|
18670
|
+
const owner = {
|
|
18671
|
+
environment,
|
|
18672
|
+
identity: previous.identity,
|
|
18673
|
+
options: {
|
|
18674
|
+
...previous.options,
|
|
18675
|
+
...options
|
|
18676
|
+
},
|
|
18677
|
+
status: "active",
|
|
18678
|
+
seq: previous.seq,
|
|
18679
|
+
identitySent: previous.identitySent,
|
|
18680
|
+
resumeUnsupported: previous.resumeUnsupported,
|
|
18681
|
+
async flush() {
|
|
18682
|
+
await this.flight;
|
|
18683
|
+
}
|
|
18684
|
+
};
|
|
18685
|
+
owners.set(environment.paneId, owner);
|
|
18686
|
+
await releasePaneReporting(owner);
|
|
18687
|
+
}
|
|
18294
18688
|
function stopPaneReporting(owner, releaseRegistration) {
|
|
18295
18689
|
if (owner.release) return owner.release;
|
|
18296
18690
|
if (owners.get(owner.environment.paneId) !== owner || owner.status !== "active") {
|
|
@@ -19241,16 +19635,16 @@ function isWindowsInstallDirectoryLockError(output) {
|
|
|
19241
19635
|
if (!(lower.includes("code ebusy") || lower.includes("ebusy:") || lower.includes("errno -4082") || lower.includes("code eperm") || lower.includes("eperm:") || lower.includes("errno -4048"))) return false;
|
|
19242
19636
|
return lower.includes("syscall rename") || lower.includes("syscall unlink") || lower.includes("syscall rmdir") || lower.includes("syscall rm") || lower.includes("syscall copyfile") || lower.includes(", rename ") || lower.includes(", unlink ") || lower.includes(", rmdir ") || lower.includes(", rm ") || lower.includes(", copyfile ") || lower.includes("resource busy or locked");
|
|
19243
19637
|
}
|
|
19244
|
-
export { ActivityWatchdog, AgentSessionBusyError, BLUEPRINT_CONTEXT_TYPE, BUILTIN_HELP_TOOL_NAMES, BUILTIN_PATH_PREFIX, BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, COMMAND_DETAIL_TAIL_BYTES, COMMAND_FOREGROUND_BUDGET_MS, CONTINUE_AFTER_FAILURE, CURRENT_SESSION_VERSION, CountdownTimer, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, DEFAULT_MAX_RESULT_SIZE_CHARS, DEFAULT_REQUEST_TIMEOUT_MS, DEFAULT_THINKING_LEVEL, Diff, DynamicBorder, ENGINE_UNRESPONSIVE_MS, EditInputError, EditMatchError, EditTargetError, EditToolError, EngineSessionStats, EntryTypeReader, EventSourceError, ExtensionStartupError, FILE_KINDS, FILE_PATTERNS, FINISHED_TASK_RETENTION, FORKED_PACKAGE_NAMES, FORKED_PACKAGE_WORKSPACE_DIRS, FileToolAbortedError, FramedSelector, GIT_LOCAL_ENV_VARS, GIT_MINIMUM_VERSION, GitProvisionConfigError, GitProvisionError, GitProvisionTimeoutError, GitUnavailableError, HOST, HOST_NOTICE_TYPE, HostInputBridge, HostListenerFailures, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, InteractiveEngineResourceReadinessError, IntercomPolicyError, JSON_RPC_ERROR_CODES, JsonTextChecker, LATEST_PROTOCOL_VERSION, LONG_LIVED_COMMANDS, LlamaServerError, LlamaServerRequestError, LlamaServerUnreachableError, MAX_COMMAND_TIMEOUT_SECONDS, MAX_INTERCOM_REACHABLE_GROUPS, MAX_PERSISTED_OUTPUT_BYTES, MAX_POSITION_LENGTH, MAX_TOOL_DETACHMENT_AFTER_MS, ManagedToolDownloadError, ManagedToolError, ManagedToolTimeoutError, McpAbortError, McpConnectionClosedError, McpError, McpTimeoutError, Minimatch, MissingSessionCwdError, NETWORK_TIMEOUT_MS, NON_SECRET_HTTP_HEADERS, NO_QUEUED_MESSAGES, NativeModuleUnavailableError, PERSISTED_OUTPUT_CLOSING_TAG, PERSISTED_OUTPUT_TAG, PERSISTED_OUTPUT_TRUNCATION_MARKER, PLAIN_SELECTOR_STYLE, POST_LOGOUT_AUTH_CHECK_TIMEOUT_MS, PREVIEW_SIZE_BYTES, QueuedDeliveryRelay, QueuedDeliveryView, RESOURCE_TYPES, RESTART_CANCELLED_MESSAGE, ROW_INTENT_META, RawStdoutWriteError, SESSION_HISTORY_TOOL_NAME, STALE_EXTENSION_CONTEXT_MARKER, STALE_EXTENSION_CONTEXT_MESSAGE, STARTUP_DECISION_TYPED_TEXT_NOTICE, SUPPORTED_PROTOCOL_VERSIONS, Selector, SelectorState, SessionIntercomPolicy, ShellTimeoutError, ShellToolError, SqliteSelectorConnection, Stop, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, SubscriptionError, SubscriptionEventError, SubscriptionHandlerError, SubscriptionRecordError, SubscriptionSetupError, SubscriptionSubscriberUnavailableError, SubscriptionTimeoutError, TASK_MARKS, THINKING_LEVELS, TOOL_DEACTIVATION_ENTRY_TYPE, TOOL_RESULTS_SUBDIR, TYPEBOX_SUBPATHS, TaskCleanupAdmissionTimeoutError, TaskCleanupError, TaskEvictedError, TaskMessageError, TaskMessageTimeoutError, ToolDetachmentError, TrustDecisionSelector, VALID_THINKING_LEVELS, VERBATIM_COMPACTION_STRATEGY, VisualLinePreview, WriteSelectorError, abandonedToolResult, abortFailure, abortSymbol, activeToolExecutionStarts, addHistoryUsageToTotals, addUsageToTotals, allToolNames, announceBlueprintBuildWaiting, announceHistoryLoad, applyBashSessionEnvironment, applyExifOrientation, applySessionSummaryEntries, areExperimentalFeaturesEnabled, armToolAbortGraceTimer, assertSessionCwdExists, assertToolPairingInvariant, assignMissingToolCallIds, asyncScope, attachCleanupCause, attachGitCleanupFailure, attachJsonlLineReader, attachLineReader, attachSessionClaim, awaitBlueprintReady, backgroundTaskScope, beginQueuedMessageDelivery, belongsToSession, bindChatEpoch, bindChatReceipt, bindReleasedTaskOwner, bindSavedReadLines, bindSavedTaskOrigins, bindSavedTaskRowKey, bindTaskResumer, blueprintBuildPending, blueprintBuildSettled, blueprintBuildShared, blueprintBuildsRunning, blueprintBuildsSettled, blueprintDigest, boundedChatRecord, buildBoundaryText, buildBoundaryTextWithLocation, cancelHeldInput, cancelReasonText, canonicalEventBusFor, captureHerdrEnvironment, carryDroppedQueuedMessages, carryRowSource, chatEpoch, chatPosition, chatReceipt, chatReceiptWrite, chatRecordSavesSettled, claimPaneReporting, claimSession, classifiedWorkflowMetadata, cleanupWindowsSelfUpdateQuarantine, clearAssignmentIfClosed, clearFunctionList, clearLockHolder, clearLockHolderAsync, clearToolAbortGraceTimer, collectDeclaredDisplaySecrets, collectSecretsForMasking, combineMany, combineManyMut, combineUsage, compactTemplate, compactUrl, completeStartup, computeBoxDimensions, confinedIntercomChildGroup, containProcessTree, containProcessTreeAllowingBreakaway, conventionDirsForResource, convertBufferWithMarkit, convertFileWithMarkit, copyHostQuestionnaire, createBatchedCanonicalizePathAsync, createConversationRegion, createEventBus, createGitEnvironment, createOwnedAbortController, createSourceInfo, createStagedEventBus, createSyntheticSourceInfo, createTypeScriptSourceSpecifierTransform, createUsageTotals, createWakeDispatcher, customMessageExcludesContext, decodeChatOrder, decodeChatRecord, deduplicateDiagnostics, defaultModelPerProvider, defaultToolNamesFor, deferDeprecationWarnings, defineTool, deserializeSubscriptionError, deserializeToolDetachmentError, detectSupportedImageMimeTypeFromFile, displayTodoId, drainAgentMessageQueue, earlierHeldInputs, emitProgress, encodeChatOrder, endQueuedMessageDelivery, entryLines, expandSearchUrl, experimentalToolSamplingProperty, extractHeaderSecrets, fListSymbol, fetchWithRetry, fieldTone, filterSearchOutputByLineRange, final, finalSymbol, finalValue, findBlueprintError, findGitProvisionError, findLegacyWorkflowFiles, findLlamaServerError, findMissingSessionCwdIssue, findMissingSessionCwdIssueAsync, findPreferredAvailableModel, findSubscriptionError, findTaskEvictedError, findTaskMessageError, findToolDetachmentError, finishHeldInput, firstChatOrders, flushRawStdout, flushSymbol, flushable, forkScope, forkStoreRelation, forkedPackageExportAliases, formatCodexProviderError, formatMissingSessionCwdPrompt, formatNoApiKeyFoundMessage, formatNoModelSelectedMessage, formatNoModelsAvailableMessage, formatReadLineRange, formatSelectedLines, formatSize, formatTimeoutSeconds, formatTodoId, formatTokenCount, formatToolCallWithArgs, formatUnresolvedModelMessage, frozenClocks, getAllBuiltinPackageLocations, getBuiltinPackageLocations, getBuiltinPackagePaths, getDefaultCacheRetention, getDefaultSessionDir, getDefaultSessionDirAsync, getDefaultSessionDirPath, getEngineSessionStats, getErrnoCode, getFinalValue, getFunctionList, getHostQuestionnaire, getLockPath, getMandatoryBuiltinExtensionPaths, getManifestFromPackageJson, getManyValues, getMissingSessionCwdOptions, getPiUserAgent, getProviderLoginHelp, getResourcePathKey, getResourcePathKeyAsync, getSyntheticPathSource, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolExecutionStartedAt, getToolListError, handOverBuildTimings, handlePackageCommandParseOutcome, hasHeldInput, hasHistoryLoadObserver, hasNativeProcessHold, heldInputView, historySnapshotFor, holdDeprecationWarnings, holdProcessDescendants, holdProcessDescendantsResult, holdToolAbortGraceWhenObserved, holdToolsUntilBuilt, holdToolsUntilOwnerBuilt, holderRuns, hostInputError, hostNoticeForEvent, inheritForkScope, interactiveQuitOf, invalidArgText, invalidateNativeSearchCache, isAgentSessionBusyError, isBlueprintBuildFailedError, isBlueprintError, isBlueprintInvalidError, isBlueprintStepFailedError, isBlueprintStepTimedOutError, isBlueprintUsesUnsupportedError, isClassifiedWorkflowSession, isCodexTokenInvalidationError, isEditInputError, isEditMatchError, isEditTargetError, isEditToolError, isEventSourceError, isExtensionLoadError, isExtensionStartupFailure, isFileToolAbortedError, isFinalValue, isFlushable, isFunctionList, isGitProvisionConfigError, isGitProvisionError, isGitProvisionTimeoutError, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isJsonRpcId, isJsonRpcNotification, isJsonRpcRequest, isJsonRpcResponse, isLlamaServerError, isLlamaServerRequestError, isLlamaServerUnreachableError, isManagedToolDownloadError, isManagedToolError, isManagedToolTimeoutError, isMandatoryRuntimeTool, isMany, isMissingSessionCwdError, isObject, isPathInside, isReadResourceSelector, isReadableUrlPath, isRetryableGitProvisionError, isRetryableLlamaServerError, isRetryableManagedToolError, isRetryableSubscriptionError, isRetryableTaskError, isRetryableTaskMessageError, isSensitiveKeyNameForMasking, isSerializedMissingSessionCwdError, isShellTimeoutError, isShellToolError, isSingleGenericAbortTextContent, isStaleExtensionContextError, isStdoutTakenOver, isStop, isSubscriptionChildUnavailableError, isSubscriptionClosedError, isSubscriptionConfigError, isSubscriptionError, isSubscriptionEventError, isSubscriptionHandlerError, isSubscriptionRecordError, isSubscriptionSetupError, isSubscriptionSubscriberUnavailableError, isSubscriptionTimeoutError, isSyntheticPath, isTaskCleanupAdmissionTimeoutError, isTaskCleanupError, isTaskEvictedError, isTaskMessageError, isTaskMessageTimeoutError, isTodoClosed, isToolDeactivationEntryData, isToolDetachmentError, isToolModifier, isTransientExtensionStartupFailure, isTrustDecision, isTrustedMandatoryRuntimeTool, isUnknownModel, isValidThinkingLevel, isWindowsInstallDirectoryLockError, isWriteSelectorError, keepDroppedQueuedMessages, keepsDroppedQueuedMessages, keptTaskHint, keptTaskId, leadingAndTrailingWs, leadingWs, legacyWorkflowFilePaths, legacyWorkflowFilePatterns, legacyWorkflowSection, linkPath, literalPathLike, loadConfig, loadNativeSearchBinding, loadShownDeprecationNotices, loadedConfig, lockShared, longerRunAdvice, longestCommonPrefix, longestCommonSuffix, many, manySymbol, markEventLoopShutdown, markEventLoopStartupComplete, markTrustedMandatoryRuntimeExtension, materializeSessionSummaryMetadata, maximumOverlap, mergeReadRanges, mergeSessionTrustDecisions, minimatch, modelCallUsage, nativeForkReader, nativeModuleProblem, nativeModuleUnavailable, noOpUIContext, none, normalizeDisplayText, normalizeInterruptAbortMessage, normalizeMany, normalizePathLikeInput, normalizeTodoId, noteQueueUpdateDeliveries, noteQueuedMessagesDropped, noteRowSource, noteSavedSeq, noteSnapshotGeneration, noteUserMessageOrigin, notifySessionProviderRequestDispatched, observeArchiveLoad, observeHistoryLoads, observeReferenceCut, observeToolExecutionTiming, omitLegacyThinkingSections, onBlueprintBuildFinished, onBlueprintBuildWaiting, onSessionProviderRequestDispatched, openAdapterSelectionDatabase, operationSignal, originalHistoryNote, outputExtensionLoadErrors, parseJsonRpcMessage, parsePackageCommand, parseSlashCommand, parseTranscriptFrameLayout, pendingProjectResourcesTrusted, placeTranscriptFrame, prepareLockTakeover, prepareSessionClaim, priorityHoldCounts, processTreeEnded, projectTrustHandlerRegistered, projectTrustWarningVisible, projectTrustedBeforeExtensions, providerOfModelReference, quarantineWindowsNativeDependencies, queueUpdateDeliveries, queuedMessagesUnderWay, queuedReceiptsUnderWay, queuedTextsUnderWay, quitAsInteractiveApp, raceWithAbortSignal, rawStdoutWriteFailed, readLedger, readLines, readPiManifestFile, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, recordStartupThinkingLevel, redactAuthorizationUrlForDisplay, redactCredentials, redactOAuthErrorText, redactOAuthErrorTextCapped, redactUrlForDisplay, redactUrlForTransportDisplay, redactWwwAuthenticateHeader, referenceMetadataRead, refreshConfig, registerArchiveLoad, registerCanonicalEventBus, registerForkScope, registerHeldInput, registerHistorySnapshot, registerStartupRollback, rehydrateBlueprintError, rehydrateEditToolError, rehydrateGitProvisionError, rehydrateLlamaServerError, rehydrateMissingSessionCwdError, rehydrateShellToolError, rehydrateTaskCleanupError, rehydrateTaskEvictedError, rehydrateTaskMessageError, rehydrateWriteSelectorError, releaseDeprecationWarnings, releasePaneReporting, releaseToolAbortGraceTimers, releaseTurnPause, releaseUnownedPaneRegistration, removePrefix, removeSuffix, removedProviderMessage, renderBlueprintContext, renderBorderedBox, renderToolPath, repairCollapsedScheme, replacePrefix, replaceSuffix, replaceTabs, replacementAbortContent, reportContained, reportPaneActivity, repositoryKey, require_applyReviver, require_constants, require_debug, require_errors, require_identifiers, require_identity, require_ignore, require_line_counter, require_parse_options, require_parse_url, require_resolve_end, require_resolve_props, require_sha256, require_stringifyComment, require_stringifyNumber, require_util_contains_newline, resolveDecisionDeadlineMs, resolvePhysicalPath, resolvePhysicalPathAsync, resolveSchemaRef, resourceInternals, restoreStdout, retirePaneReporting, retryStatusUpdate, rollbackStartup, rootKey, rowSource, rowTone, safeTrustChoiceIndex, sanitizeMcpServers, sanitizeOpenAIResponsesPayload, saveChatRecord, savedConversationThinkingLevel, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, scopedBackgroundTasks, scrubFetchError, scrubPreCompactionAssistantUsage, scrubUnknownErrorData, searchPosition, segment, selectExactReadRanges, selectReadRanges, selectorHintEntries, sentinelsToAppend, serializeBlueprintError, serializeConversationForCompaction, serializeFileToolError, serializeJsonLine, serializeMissingSessionCwdError, serializeRetainedTranscript, serializeSessionMutation, serializeSubscriptionError, sessionIntercomFacade, sessionTasks, sessionWaitsToRetry, setDeprecationWarningSink, setFunctionList, setMarkitDiagnosticSink, settingsFileNoticeKey, settingsInternals, settleTurnPause, sha256Hex, shareBlueprintBuild, sharedClockNow, sharedWakeDispatcher, shortenPath, shouldRenderEngineDiagnosticAsChatError, shouldRunFirstTimeSetup, sleep, sliceHead, sliceTail, snapshotBashSessionEnvironment, sortTodos, spanElapsedMs, spawnContainedProcess, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, sqliteSessionResumeArgs, startEventLoopMonitor, startToolTimer, startupCleanupFailureMessage, startupProjectTrust, stop, stopBlueprintBuilds, stopErrorSymbol, stopWaiting, str, stringEntries, stripFenceMarkers, stripUrlUserinfoAndHash, styleFieldTone, summarizeSession, takeOverDeadHolder, takeOverDeadHolderAsync, takeOverStdout, takeQueuedDeliveryChange, takeQueuedMessagesDroppedAt, taskMark, taskOutcomeStatus, taskOutputText, taskResumer, taskSessionKey, taskStoppedForResume, themeSelectorStyle, thisProcess, timestamp, toError, toMany, toolAbortGraceMs, toolTimerText, trackChatRecordSave, trailingWs, transcriptHeaderLines, transcriptLayoutOf, truncateHead, truncateLine, truncateMiddle, truncateTail, truncateToVisualLines, uniquifyToolCallIds, updateLedger, usageCostBreakdown, userMessageOrigin, validQuestionnaire, validateGuidanceFields, validateIntercomSessionOptions, validateTimeoutOverride, validateTodoId, waitForEventLoopMonitorReady, waitForRawStdoutBackpressure, warnDeprecation, watchFirstProjectTrustHandler, watchReferenceCut, whenAborted, windowsTemporaryFiles, withCleanup, withFileMutationQueue, withInstallLock, withLegacyPackageNames, withProgress, withQueuedDeliveryChange, withResolvingFileMutationQueue, withToolAbortGrace, withinDecisionDeadline, workspaceKey, writeOutputFile, writeRawStdout, writeRawStdoutControl, writeRawStdoutOnce, yieldToEventLoop, yieldToEventLoopIfSlow, yieldToTimerTurn, yieldTurn };
|
|
19638
|
+
export { ActivityWatchdog, AgentSessionBusyError, BLUEPRINT_CONTEXT_TYPE, BUILTIN_HELP_TOOL_NAMES, BUILTIN_PATH_PREFIX, BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, COMMAND_DETAIL_TAIL_BYTES, COMMAND_FOREGROUND_BUDGET_MS, CONTINUE_AFTER_FAILURE, CURRENT_SESSION_VERSION, CompactionCancelledError, CompactionConfigError, CompactionError, CompactionStateError, CompactorFailure, CountdownTimer, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, DEFAULT_MAX_RESULT_SIZE_CHARS, DEFAULT_REQUEST_TIMEOUT_MS, DEFAULT_THINKING_LEVEL, Diff, DynamicBorder, ENGINE_UNRESPONSIVE_MS, EditInputError, EditMatchError, EditTargetError, EditToolError, EngineSessionStats, EntryTypeReader, EventSourceError, ExtensionStartupError, FILE_KINDS, FILE_PATTERNS, FINISHED_TASK_RETENTION, FORKED_PACKAGE_NAMES, FORKED_PACKAGE_WORKSPACE_DIRS, FileToolAbortedError, FramedSelector, GIT_LOCAL_ENV_VARS, GIT_MINIMUM_VERSION, GitProvisionConfigError, GitProvisionError, GitProvisionTimeoutError, GitUnavailableError, HOST, HOST_NOTICE_TYPE, HostInputBridge, HostListenerFailures, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, InteractiveEngineResourceReadinessError, IntercomPolicyError, JSON_RPC_ERROR_CODES, JsonTextChecker, LATEST_PROTOCOL_VERSION, LONG_LIVED_COMMANDS, LlamaServerError, LlamaServerRequestError, LlamaServerUnreachableError, MAX_COMMAND_TIMEOUT_SECONDS, MAX_INTERCOM_REACHABLE_GROUPS, MAX_PERSISTED_OUTPUT_BYTES, MAX_POSITION_LENGTH, MAX_TOOL_DETACHMENT_AFTER_MS, ManagedToolDownloadError, ManagedToolError, ManagedToolTimeoutError, McpAbortError, McpConnectionClosedError, McpError, McpTimeoutError, Minimatch, MissingSessionCwdError, NETWORK_TIMEOUT_MS, NON_SECRET_HTTP_HEADERS, NO_QUEUED_MESSAGES, NativeModuleUnavailableError, PERSISTED_OUTPUT_CLOSING_TAG, PERSISTED_OUTPUT_TAG, PERSISTED_OUTPUT_TRUNCATION_MARKER, PLAIN_SELECTOR_STYLE, POST_LOGOUT_AUTH_CHECK_TIMEOUT_MS, PREVIEW_SIZE_BYTES, QueuedDeliveryRelay, QueuedDeliveryView, RESOURCE_TYPES, RESTART_CANCELLED_MESSAGE, ROW_INTENT_META, RawStdoutWriteError, SESSION_HISTORY_TOOL_NAME, STALE_EXTENSION_CONTEXT_MARKER, STALE_EXTENSION_CONTEXT_MESSAGE, STARTUP_DECISION_TYPED_TEXT_NOTICE, SUPPORTED_PROTOCOL_VERSIONS, Selector, SelectorState, SessionIntercomPolicy, ShellTimeoutError, ShellToolError, SqliteSelectorConnection, Stop, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, SubscriptionError, SubscriptionEventError, SubscriptionHandlerError, SubscriptionRecordError, SubscriptionSetupError, SubscriptionSubscriberUnavailableError, SubscriptionTimeoutError, TASK_MARKS, THINKING_LEVELS, TOOL_DEACTIVATION_ENTRY_TYPE, TOOL_RESULTS_SUBDIR, TYPEBOX_SUBPATHS, TaskCleanupAdmissionTimeoutError, TaskCleanupError, TaskEvictedError, TaskMessageError, TaskMessageTimeoutError, ToolDetachmentError, TrustDecisionSelector, VALID_THINKING_LEVELS, VERBATIM_COMPACTION_STRATEGY, VisualLinePreview, WriteSelectorError, abandonedToolResult, abortFailure, abortSymbol, activeToolExecutionStarts, addHistoryUsageToTotals, addUsageToTotals, allToolNames, announceBlueprintBuildWaiting, announceHistoryLoad, applyBashSessionEnvironment, applyExifOrientation, applySessionSummaryEntries, areExperimentalFeaturesEnabled, armToolAbortGraceTimer, assertSessionCwdExists, assertToolPairingInvariant, assignMissingToolCallIds, asyncScope, attachCleanupCause, attachGitCleanupFailure, attachJsonlLineReader, attachLineReader, attachSessionClaim, awaitBlueprintReady, backgroundTaskScope, beginQueuedMessageDelivery, belongsToSession, bindChatEpoch, bindChatReceipt, bindReleasedTaskOwner, bindSavedReadLines, bindSavedTaskOrigins, bindSavedTaskRowKey, bindTaskResumer, blueprintBuildPending, blueprintBuildSettled, blueprintBuildShared, blueprintBuildsRunning, blueprintBuildsSettled, blueprintDigest, boundedChatRecord, buildBoundaryText, buildBoundaryTextWithLocation, cancelHeldInput, cancelReasonText, canonicalEventBusFor, captureHerdrEnvironment, carryDroppedQueuedMessages, carryRowSource, chatEpoch, chatPosition, chatReceipt, chatReceiptWrite, chatRecordSavesSettled, claimPaneReporting, claimSession, classifiedWorkflowMetadata, cleanupWindowsSelfUpdateQuarantine, clearAssignmentIfClosed, clearFunctionList, clearLockHolder, clearLockHolderAsync, clearToolAbortGraceTimer, collectDeclaredDisplaySecrets, collectSecretsForMasking, combineMany, combineManyMut, combineUsage, compactTemplate, compactUrl, completeStartup, computeBoxDimensions, confinedIntercomChildGroup, containProcessTree, containProcessTreeAllowingBreakaway, conventionDirsForResource, convertBufferWithMarkit, convertFileWithMarkit, copyHostQuestionnaire, createBatchedCanonicalizePathAsync, createConversationRegion, createEventBus, createGitEnvironment, createOwnedAbortController, createSourceInfo, createStagedEventBus, createSyntheticSourceInfo, createTypeScriptSourceSpecifierTransform, createUsageTotals, createWakeDispatcher, customMessageExcludesContext, decodeChatOrder, decodeChatRecord, deduplicateDiagnostics, defaultModelPerProvider, defaultToolNamesFor, deferDeprecationWarnings, defineTool, deserializeSubscriptionError, deserializeToolDetachmentError, detectSupportedImageMimeTypeFromFile, displayTodoId, drainAgentMessageQueue, earlierHeldInputs, emitProgress, encodeChatOrder, endQueuedMessageDelivery, entryLines, expandSearchUrl, experimentalToolSamplingProperty, extractHeaderSecrets, fListSymbol, fetchWithRetry, fieldTone, filterSearchOutputByLineRange, final, finalSymbol, finalValue, findBlueprintError, findCompactionError, findGitProvisionError, findLegacyWorkflowFiles, findLlamaServerError, findMissingSessionCwdIssue, findMissingSessionCwdIssueAsync, findPreferredAvailableModel, findSubscriptionError, findTaskEvictedError, findTaskMessageError, findToolDetachmentError, finishHeldInput, firstChatOrders, flushRawStdout, flushSymbol, flushable, forkScope, forkStoreRelation, forkedPackageExportAliases, formatCodexProviderError, formatMissingSessionCwdPrompt, formatNoApiKeyFoundMessage, formatNoModelSelectedMessage, formatNoModelsAvailableMessage, formatReadLineRange, formatSelectedLines, formatSize, formatTimeoutSeconds, formatTodoId, formatTokenCount, formatToolCallWithArgs, formatUnresolvedModelMessage, frozenClocks, getAllBuiltinPackageLocations, getBuiltinPackageLocations, getBuiltinPackagePaths, getDefaultCacheRetention, getDefaultSessionDir, getDefaultSessionDirAsync, getDefaultSessionDirPath, getEngineSessionStats, getErrnoCode, getFinalValue, getFunctionList, getHostQuestionnaire, getLockPath, getMandatoryBuiltinExtensionPaths, getManifestFromPackageJson, getManyValues, getMissingSessionCwdOptions, getPiUserAgent, getProviderLoginHelp, getResourcePathKey, getResourcePathKeyAsync, getSyntheticPathSource, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolExecutionStartedAt, getToolListError, handOverBuildTimings, handlePackageCommandParseOutcome, hasHeldInput, hasHistoryLoadObserver, hasNativeProcessHold, heldInputView, historySnapshotFor, holdDeprecationWarnings, holdProcessDescendants, holdProcessDescendantsResult, holdToolAbortGraceWhenObserved, holdToolsUntilBuilt, holdToolsUntilOwnerBuilt, holderRuns, hostInputError, hostNoticeForEvent, inheritForkScope, interactiveQuitOf, invalidArgText, invalidateNativeSearchCache, isAgentSessionBusyError, isBlueprintBuildFailedError, isBlueprintError, isBlueprintInvalidError, isBlueprintStepFailedError, isBlueprintStepTimedOutError, isBlueprintUsesUnsupportedError, isClassifiedWorkflowSession, isCodexTokenInvalidationError, isCompactionCancelledError, isCompactionConfigError, isCompactionError, isCompactionStateError, isCompactorFailure, isEditInputError, isEditMatchError, isEditTargetError, isEditToolError, isEventSourceError, isExtensionLoadError, isExtensionStartupFailure, isFileToolAbortedError, isFinalValue, isFlushable, isFunctionList, isGitProvisionConfigError, isGitProvisionError, isGitProvisionTimeoutError, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isJsonRpcId, isJsonRpcNotification, isJsonRpcRequest, isJsonRpcResponse, isLlamaServerError, isLlamaServerRequestError, isLlamaServerUnreachableError, isManagedToolDownloadError, isManagedToolError, isManagedToolTimeoutError, isMandatoryRuntimeTool, isMany, isMissingSessionCwdError, isObject, isPathInside, isReadResourceSelector, isReadableUrlPath, isRetryableCompactionError, isRetryableGitProvisionError, isRetryableLlamaServerError, isRetryableManagedToolError, isRetryableSubscriptionError, isRetryableTaskError, isRetryableTaskMessageError, isSensitiveKeyNameForMasking, isSerializedMissingSessionCwdError, isShellTimeoutError, isShellToolError, isSingleGenericAbortTextContent, isStaleExtensionContextError, isStdoutTakenOver, isStop, isSubscriptionChildUnavailableError, isSubscriptionClosedError, isSubscriptionConfigError, isSubscriptionError, isSubscriptionEventError, isSubscriptionHandlerError, isSubscriptionRecordError, isSubscriptionSetupError, isSubscriptionSubscriberUnavailableError, isSubscriptionTimeoutError, isSyntheticPath, isTaskCleanupAdmissionTimeoutError, isTaskCleanupError, isTaskEvictedError, isTaskMessageError, isTaskMessageTimeoutError, isTodoClosed, isToolDeactivationEntryData, isToolDetachmentError, isToolModifier, isTransientExtensionStartupFailure, isTrustDecision, isTrustedMandatoryRuntimeTool, isUnknownModel, isValidThinkingLevel, isWindowsInstallDirectoryLockError, isWriteSelectorError, keepDroppedQueuedMessages, keepsDroppedQueuedMessages, keptTaskHint, keptTaskId, leadingAndTrailingWs, leadingWs, legacyWorkflowFilePaths, legacyWorkflowFilePatterns, legacyWorkflowSection, linkPath, literalPathLike, loadConfig, loadNativeSearchBinding, loadShownDeprecationNotices, loadedConfig, lockShared, longerRunAdvice, longestCommonPrefix, longestCommonSuffix, many, manySymbol, markEventLoopShutdown, markEventLoopStartupComplete, markTrustedMandatoryRuntimeExtension, materializeSessionSummaryMetadata, maximumOverlap, mergeReadRanges, mergeSessionTrustDecisions, minimatch, modelCallUsage, nativeForkReader, nativeModuleProblem, nativeModuleUnavailable, noOpUIContext, none, normalizeDisplayText, normalizeInterruptAbortMessage, normalizeMany, normalizePathLikeInput, normalizeTodoId, noteQueueUpdateDeliveries, noteQueuedMessagesDropped, noteRowSource, noteSavedSeq, noteSnapshotGeneration, noteUserMessageOrigin, notifySessionProviderRequestDispatched, observeArchiveLoad, observeHistoryLoads, observeReferenceCut, observeToolExecutionTiming, omitLegacyThinkingSections, onBlueprintBuildFinished, onBlueprintBuildWaiting, onSessionProviderRequestDispatched, openAdapterSelectionDatabase, operationSignal, originalHistoryNote, outputExtensionLoadErrors, parseJsonRpcMessage, parsePackageCommand, parseSerializedCompactionError, parseSlashCommand, parseTranscriptFrameLayout, pendingProjectResourcesTrusted, placeTranscriptFrame, prepareLockTakeover, prepareSessionClaim, priorityHoldCounts, processTreeEnded, projectTrustHandlerRegistered, projectTrustWarningVisible, projectTrustedBeforeExtensions, providerOfModelReference, quarantineWindowsNativeDependencies, queueUpdateDeliveries, queuedMessagesUnderWay, queuedReceiptsUnderWay, queuedTextsUnderWay, quitAsInteractiveApp, raceWithAbortSignal, rawStdoutWriteFailed, readLedger, readLines, readPiManifestFile, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, recordStartupThinkingLevel, redactAuthorizationUrlForDisplay, redactCredentials, redactOAuthErrorText, redactOAuthErrorTextCapped, redactUrlForDisplay, redactUrlForTransportDisplay, redactWwwAuthenticateHeader, referenceMetadataRead, refreshConfig, registerArchiveLoad, registerCanonicalEventBus, registerForkScope, registerHeldInput, registerHistorySnapshot, registerStartupRollback, rehydrateBlueprintError, rehydrateCompactionError, rehydrateEditToolError, rehydrateGitProvisionError, rehydrateLlamaServerError, rehydrateMissingSessionCwdError, rehydrateShellToolError, rehydrateTaskCleanupError, rehydrateTaskEvictedError, rehydrateTaskMessageError, rehydrateWriteSelectorError, releaseDeprecationWarnings, releasePaneReporting, releaseRetiredPaneReporting, releaseToolAbortGraceTimers, releaseTurnPause, releaseUnownedPaneRegistration, removePrefix, removeSuffix, removedProviderMessage, renderBlueprintContext, renderBorderedBox, renderToolPath, repairCollapsedScheme, replacePrefix, replaceSuffix, replaceTabs, replacementAbortContent, reportContained, reportPaneActivity, repositoryKey, require_applyReviver, require_constants, require_debug, require_errors, require_identifiers, require_identity, require_ignore, require_line_counter, require_parse_options, require_parse_url, require_resolve_end, require_resolve_props, require_sha256, require_stringifyComment, require_stringifyNumber, require_util_contains_newline, resolveDecisionDeadlineMs, resolvePhysicalPath, resolvePhysicalPathAsync, resolveSchemaRef, resourceInternals, restoreStdout, retirePaneReporting, retryStatusUpdate, rollbackStartup, rootKey, rowSource, rowTone, safeTrustChoiceIndex, sanitizeMcpServers, sanitizeOpenAIResponsesPayload, saveChatRecord, savedConversationThinkingLevel, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, scopedBackgroundTasks, scrubFetchError, scrubPreCompactionAssistantUsage, scrubUnknownErrorData, searchPosition, segment, selectExactReadRanges, selectReadRanges, selectorHintEntries, sentinelsToAppend, serializeBlueprintError, serializeCompactionError, serializeConversationForCompaction, serializeFileToolError, serializeJsonLine, serializeMissingSessionCwdError, serializeRetainedTranscript, serializeSessionMutation, serializeSubscriptionError, sessionIntercomFacade, sessionTasks, sessionWaitsToRetry, setDeprecationWarningSink, setFunctionList, setMarkitDiagnosticSink, settingsFileNoticeKey, settingsInternals, settleTurnPause, sha256Hex, shareBlueprintBuild, sharedClockNow, sharedWakeDispatcher, shortenPath, shouldRenderEngineDiagnosticAsChatError, shouldRunFirstTimeSetup, sleep, sliceHead, sliceTail, snapshotBashSessionEnvironment, sortTodos, spanElapsedMs, spawnContainedProcess, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, sqliteSessionResumeArgs, startEventLoopMonitor, startToolTimer, startupCleanupFailureMessage, startupProjectTrust, stop, stopBlueprintBuilds, stopErrorSymbol, stopWaiting, str, stringEntries, stripFenceMarkers, stripUrlUserinfoAndHash, styleFieldTone, summarizeSession, takeOverDeadHolder, takeOverDeadHolderAsync, takeOverStdout, takeQueuedDeliveryChange, takeQueuedMessagesDroppedAt, taskMark, taskOutcomeStatus, taskOutputText, taskResumer, taskSessionKey, taskStoppedForResume, themeSelectorStyle, thisProcess, timestamp, toError, toMany, toolAbortGraceMs, toolTimerText, trackChatRecordSave, trailingWs, transcriptHeaderLines, transcriptLayoutOf, truncateHead, truncateLine, truncateMiddle, truncateTail, truncateToVisualLines, uniquifyToolCallIds, updateLedger, usageCostBreakdown, userMessageOrigin, validQuestionnaire, validateGuidanceFields, validateIntercomSessionOptions, validateTimeoutOverride, validateTodoId, waitForEventLoopMonitorReady, waitForRawStdoutBackpressure, warnDeprecation, watchFirstProjectTrustHandler, watchReferenceCut, whenAborted, windowsTemporaryFiles, withCleanup, withFileMutationQueue, withInstallLock, withLegacyPackageNames, withProgress, withQueuedDeliveryChange, withResolvingFileMutationQueue, withToolAbortGrace, withinDecisionDeadline, workspaceKey, writeOutputFile, writeRawStdout, writeRawStdoutControl, writeRawStdoutOnce, yieldToEventLoop, yieldToEventLoopIfSlow, yieldToTimerTurn, yieldTurn };
|
|
19245
19639
|
|
|
19246
|
-
//# sourceMappingURL=startup-0-0-
|
|
19640
|
+
//# sourceMappingURL=startup-0-0-4VG2G44V.js.map
|
|
19247
19641
|
// __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
|
|
19248
19642
|
// demand that fails in a process an in-place update left running says to restart.
|
|
19249
19643
|
function __atomicOnDemandFailed(error, feature) {
|
|
19250
19644
|
return (async () => {
|
|
19251
19645
|
const root = new URL("../", import.meta.url);
|
|
19252
19646
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
19253
|
-
const key = `${root.href}#0.10.
|
|
19647
|
+
const key = `${root.href}#0.10.10-alpha.1`;
|
|
19254
19648
|
let release = releases.get(key);
|
|
19255
19649
|
if (release === undefined) {
|
|
19256
19650
|
const current = (async () => {
|
|
@@ -19278,7 +19672,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
19278
19672
|
} catch {
|
|
19279
19673
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
19280
19674
|
}
|
|
19281
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
19675
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
|
|
19282
19676
|
if (updatedTo === undefined) throw error;
|
|
19283
19677
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
19284
19678
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|