@bastani/atomic 0.10.5 → 0.10.6
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 +58 -0
- package/dist/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/_shared/APEv2Parser-APXNTTFS.js.map +1 -1
- package/dist/_shared/AsfParser-AP272OWG.js +1 -1
- package/dist/_shared/DsfParser-FTOZZCZP.js +2 -2
- package/dist/_shared/FlacParser-WJATCQT6.js +2 -2
- package/dist/_shared/FlacParser-WJATCQT6.js.map +1 -1
- package/dist/_shared/ID3v1Parser-XVX6XPGB.js +1 -1
- package/dist/_shared/ID3v2Parser-DB2T4Z6M.js +2 -2
- package/dist/_shared/MP4Parser-2TZWZV4K.js +3 -3
- package/dist/_shared/MP4Parser-2TZWZV4K.js.map +1 -1
- package/dist/_shared/MatroskaParser-V22CGP72.js.map +1 -1
- package/dist/_shared/MusepackParser-XEUVYWNQ.js +2 -2
- package/dist/_shared/MusepackParser-XEUVYWNQ.js.map +1 -1
- package/dist/_shared/OggParser-Y7FSZNTO.js +1 -1
- package/dist/_shared/OggParser-Y7FSZNTO.js.map +1 -1
- package/dist/_shared/ParseError-VXOGXIIE.js +2 -2
- package/dist/_shared/ParseError-VXOGXIIE.js.map +1 -1
- package/dist/_shared/WavPackParser-ZYK4CLSW.js +1 -1
- package/dist/_shared/WaveParser-VA3P7P3H.js +2 -2
- package/dist/_shared/dist-KOELCESV.js +55 -63
- package/dist/_shared/dist-KOELCESV.js.map +1 -1
- package/dist/_shared/fork-row-index-UAUAQRD5.js +3 -3
- package/dist/_shared/full.umd-CBF7UGXV.js +7 -6
- package/dist/_shared/full.umd-CBF7UGXV.js.map +1 -1
- package/dist/_shared/http-YFAPTIZD.js +2 -2
- package/dist/_shared/http-YFAPTIZD.js.map +1 -1
- package/dist/_shared/http-undici-FVPTZA4G.js +19 -20
- package/dist/_shared/http-undici-FVPTZA4G.js.map +1 -1
- package/dist/_shared/lib-4PES5P4V.js +8 -8
- package/dist/_shared/lib-4PES5P4V.js.map +1 -1
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +5 -4
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +20 -20
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +441 -341
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p0-cli-BB45ZQY6.js +8 -12
- package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-UQY3X2UK.js +8 -8
- package/dist/_shared/p1b-elig-ENCUPKKJ.js +17 -17
- package/dist/_shared/p1b-elig-ENCUPKKJ.js.map +1 -1
- package/dist/_shared/p2-shell-TJBYQMCJ.js +27 -28
- package/dist/_shared/p2-shell-TJBYQMCJ.js.map +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +44 -47
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/rolldown-runtime-BGM3D5V3.js +4 -4
- package/dist/_shared/runtime-O4KCSG4C.js +7 -7
- package/dist/_shared/runtime-O4KCSG4C.js.map +1 -1
- package/dist/_shared/sdk-WQIOHVKO.js +24 -24
- package/dist/_shared/sdk-WQIOHVKO.js.map +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +4 -4
- package/dist/_shared/session-manager-list-2BLEEZVG.js +3 -3
- package/dist/_shared/{settings-startup-65YEWRV2.js → settings-startup-4QCVCI53.js} +2 -32
- package/dist/_shared/settings-startup-4QCVCI53.js.map +1 -0
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +35 -0
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -0
- package/dist/_shared/sql-session-store-5FD3WBMZ.js +12 -12
- package/dist/_shared/startup-0-0-TYUFUOJZ.js +143 -115
- package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +1 -1
- package/dist/_shared/{startup-0-1-D4LGGINF.js → startup-0-1-W2G2UY7R.js} +365 -27
- package/dist/_shared/startup-0-1-W2G2UY7R.js.map +1 -0
- package/dist/_shared/startup-0-2-SZGQIWHI.js +19 -24
- package/dist/_shared/startup-0-2-SZGQIWHI.js.map +1 -1
- package/dist/_shared/startup-0-3-T4DVFYWX.js +7 -7
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
- package/dist/_shared/startup-0-4-HN5EB4K7.js +7 -7
- package/dist/_shared/startup-0-4-HN5EB4K7.js.map +1 -1
- package/dist/_shared/startup-0-5-OHJNE6JH.js +157 -92
- package/dist/_shared/startup-0-5-OHJNE6JH.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +4 -4
- package/dist/_shared/startup-10-0-TDQNBDDL.js.map +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +19 -19
- package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +17 -16
- package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +5 -5
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +23 -23
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/startup-8-1-SJW2GMAM.js +113 -114
- package/dist/_shared/startup-8-1-SJW2GMAM.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +15 -14
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/task-reference-stream-JWMUZSJX.js +7 -7
- package/dist/_shared/task-reference-stream-JWMUZSJX.js.map +1 -1
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +4 -4
- package/dist/_shared/turndown.cjs-7Z43JOED.js +7 -10
- package/dist/_shared/turndown.cjs-7Z43JOED.js.map +1 -1
- package/dist/builtin/intercom/CHANGELOG.md +12 -0
- package/dist/builtin/intercom/index.bundle.mjs +2 -2
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +12 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +15 -12
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +1 -1
- package/dist/cli/auth-cli.code.js +10 -13
- package/dist/cli/auth-cli.code.js.map +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +8 -8
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +2 -2
- 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 +3 -3
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/settings-startup.js +1 -1
- 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 +4 -4
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +3 -3
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -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 +2 -2
- 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 +9 -9
- 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/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 +1 -1
- package/dist/core/extensions/runner-context.js +5 -5
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/http-dispatcher.js +2 -0
- 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/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +1 -1
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +15 -15
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +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/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.code.js +1 -1
- 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 +3 -3
- 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 +5 -4
- package/dist/core/storage/session/child-reader.code.js.map +1 -1
- 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/errors.js +1 -0
- package/dist/core/storage/session/errors.js.map +1 -1
- package/dist/core/storage/session/expanded-child-details.code.js +4 -4
- 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 +5 -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 +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 +2 -2
- 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 +12 -12
- package/dist/core/storage/session/released-history-files.code.js.map +1 -1
- 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.code.js +1 -1
- 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.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.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 +5 -5
- package/dist/core/tasks/task-file-history.code.js.map +1 -1
- 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 +11 -11
- package/dist/core/tasks/task-reference-archive.code.js.map +1 -1
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.code.js +2 -2
- 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 +9 -9
- 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 +1 -1
- 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 +3 -3
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +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 +7 -7
- 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.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/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/task-inspector.d.ts +10 -2
- 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/package-manager-cli.code.js +14 -14
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/utils/startup-database-spare.code.js +5 -5
- 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 +2 -2
- package/package.json +9 -9
- package/dist/_shared/settings-startup-65YEWRV2.js.map +0 -1
- package/dist/_shared/startup-0-1-D4LGGINF.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { BUILTIN_HELP_TOOL_NAMES, BUILTIN_PATH_PREFIX, CountdownTimer, Diff, Dyn
|
|
|
4
4
|
import { CodeHighlighter, OVERLAY_ACTIVE_ROW_MARKER, getLanguageFromPath, graphemeAt, highlightCode, keyHint, loadPhoton, navActionText, navFirstKeyText, parenthesizedKeyHint, rawKeyHint, renderNavHintLine, singleLineDisplayText, terminalDisplayCursor, terminalDisplayText, theme } from "./p2-shell-main-B2WIALFD.js";
|
|
5
5
|
import { failureDebugFields, findInCauseChain, hasErrorIdentity, ownProcessStartToken, readProcessStartToken, reportDebugAsync, serializeErrorCause } from "./p1b-elig-ENCUPKKJ.js";
|
|
6
6
|
import { windowsPowerShellEnvironment } from "./p1-elig-shell-WWRO3L2R.js";
|
|
7
|
-
import { SessionOpenElsewhereError, parseSerializedDecisionError } from "./settings-startup-
|
|
7
|
+
import { SessionOpenElsewhereError, parseSerializedDecisionError } from "./settings-startup-4QCVCI53.js";
|
|
8
8
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
9
9
|
import { interactiveEngineStartupEnv } from "./p1a-prewarm-UQY3X2UK.js";
|
|
10
10
|
import { access, lstat, mkdir, open, readFile, readdir, rename, rm, rmdir, stat, unlink, writeFile } from "node:fs/promises";
|
|
@@ -17,7 +17,7 @@ import { execFile as execFile$1, spawnSync as spawnSync$1 } from "child_process"
|
|
|
17
17
|
import { arch, hostname as hostname$1, platform } from "os";
|
|
18
18
|
import { pathExists } from "../utils/path-exists.js";
|
|
19
19
|
import { constants as constants$2, readFileSync as readFileSync$1, readdirSync as readdirSync$1, rmSync as rmSync$1, rmdirSync as rmdirSync$1, statSync as statSync$1 } from "node:fs";
|
|
20
|
-
import { CACHE_WARMING_MAX_AGE_MS, CACHE_WARMING_MAX_IDLE_AGE_MS, GitHubCopilotStreamEndedEarlyError, OAuthRefreshRejectedError, Type, evaluateCacheWarming, findGitHubCopilotError, findTlsCertificateRefusal, getCacheWarmingDelayMs, getCacheWarmingRequestOptions, getCurrentTools, getPromptCacheTtlMs, getTlsCertificateRefusal, isCacheWarmingReplayable, isModelType, isOAuthRefreshRejectedError, isPermanentRefreshRejection, lazyStream, normalizeProviderId, parseOAuthErrorBody, validateToolArguments } from "@bastani/atomic-ai";
|
|
20
|
+
import { CACHE_WARMING_MAX_AGE_MS, CACHE_WARMING_MAX_IDLE_AGE_MS, GitHubCopilotStreamEndedEarlyError, OAuthRefreshRejectedError, Type, evaluateCacheWarming, findGitHubCopilotError, findTlsCertificateRefusal, getCacheWarmingDelayMs, getCacheWarmingRequestOptions, getCurrentTools, getPromptCacheTtlMs as getPromptCacheTtlMs$1, getTlsCertificateRefusal, isCacheWarmingReplayable, isModelType, isOAuthRefreshRejectedError, isPermanentRefreshRejection, lazyStream, normalizeProviderId, parseOAuthErrorBody, validateToolArguments } from "@bastani/atomic-ai";
|
|
21
21
|
import { Container, Input, Key, Markdown, Spacer, Text, fuzzyFilter, getCapabilities, getKeybindings, getSelectPageIndex, matchesKey, setImageTranscoder, truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@bastani/atomic-tui";
|
|
22
22
|
import chalk from "chalk";
|
|
23
23
|
import { SessionBlobError, StorageConfigError, StorageError, isStorageError, rehydrateStorageError, serializeStorageError } from "../core/storage/errors.js";
|
|
@@ -25,7 +25,7 @@ import { renderStorageIdentifiers, storageMigrationTable, validateStoragePrefix
|
|
|
25
25
|
import { chmod as chmod$1, lstat as lstat$1, mkdir as mkdir$1, mkdtemp as mkdtemp$1, open as open$1, readFile as readFile$1, readdir as readdir$1, readlink as readlink$1, rename as rename$1, rm as rm$1, stat as stat$2, utimes as utimes$1, writeFile as writeFile$1 } from "fs/promises";
|
|
26
26
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
27
27
|
import lockfile from "proper-lockfile";
|
|
28
|
-
import { StringEnum, clampThinkingLevel, getApiProvider } from "@bastani/atomic-ai/compat";
|
|
28
|
+
import { StringEnum as StringEnum$1, clampThinkingLevel, getApiProvider } from "@bastani/atomic-ai/compat";
|
|
29
29
|
import { createHash as createHash$1, randomUUID as randomUUID$1 } from "crypto";
|
|
30
30
|
import { setTimeout as setTimeout$1 } from "timers/promises";
|
|
31
31
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1869,8 +1869,7 @@ async function selectGit(options) {
|
|
|
1869
1869
|
const blocked = await blockedProvisionFieldsAsync(location);
|
|
1870
1870
|
options.signal?.throwIfAborted();
|
|
1871
1871
|
if (blocked !== void 0) throw new GitUnavailableError(blocked);
|
|
1872
|
-
|
|
1873
|
-
return provisionedSelection(await joinGitProvision(target, location.system, options));
|
|
1872
|
+
return provisionedSelection(await joinGitProvision(location.target.target, location.system, options));
|
|
1874
1873
|
}
|
|
1875
1874
|
/** Why the install of an older pinned release was not updated in this process, once it was tried. */
|
|
1876
1875
|
let staleRefresh;
|
|
@@ -5678,7 +5677,7 @@ const RETRYABLE_MODEL_FAILURE_PATTERNS = [
|
|
|
5678
5677
|
/connection.?lost/i,
|
|
5679
5678
|
/connection.?closed/i,
|
|
5680
5679
|
/connection.?reset/i,
|
|
5681
|
-
/(?<![a-z0-9_])(?:ECONNRESET|ECONNABORTED|ECONNREFUSED|ETIMEDOUT|EPIPE)(?![a-z0-9_])/i,
|
|
5680
|
+
/(?<![a-z0-9_])(?:ECONNRESET|ECONNABORTED|ECONNREFUSED|ETIMEDOUT|EPIPE|UND_ERR_SOCKET|UND_ERR_BODY_TIMEOUT|UND_ERR_HEADERS_TIMEOUT|UND_ERR_CONNECT_TIMEOUT)(?![a-z0-9_])/i,
|
|
5682
5681
|
/other side closed/i,
|
|
5683
5682
|
/websocket.?closed/i,
|
|
5684
5683
|
/websocket.?error/i,
|
|
@@ -5874,9 +5873,12 @@ function kindFromCode(code) {
|
|
|
5874
5873
|
case "network_error":
|
|
5875
5874
|
case "timeout":
|
|
5876
5875
|
case "timeout_error":
|
|
5877
|
-
case "und_err_connect_timeout":
|
|
5876
|
+
case "und_err_connect_timeout":
|
|
5877
|
+
case "und_err_body_timeout":
|
|
5878
|
+
case "und_err_headers_timeout": return "network_timeout";
|
|
5878
5879
|
case "err_http2_stream_error":
|
|
5879
|
-
case "err_http2_stream_cancel":
|
|
5880
|
+
case "err_http2_stream_cancel":
|
|
5881
|
+
case "und_err_socket": return "transport_error";
|
|
5880
5882
|
case "rate_limit":
|
|
5881
5883
|
case "rate_limit_exceeded":
|
|
5882
5884
|
case "too_many_requests":
|
|
@@ -6015,7 +6017,8 @@ const TRANSPORT_OUTAGE_FAILURE_PATTERNS = [
|
|
|
6015
6017
|
/\bdecompress(?:ion|ing|ed)?\b/i,
|
|
6016
6018
|
/^library\s+error\b/i,
|
|
6017
6019
|
/\bstream\s+deadline\s+exceeded\b/i,
|
|
6018
|
-
/\bstream\s+ended\s+without\s+finish[_\s-]?reason\b/i
|
|
6020
|
+
/\bstream\s+ended\s+without\s+finish[_\s-]?reason\b/i,
|
|
6021
|
+
/(?<![a-z0-9_])UND_ERR_SOCKET(?![a-z0-9_])/i
|
|
6019
6022
|
];
|
|
6020
6023
|
const QUOTA_EXHAUSTED_FAILURE_PATTERN = /(?<![a-z0-9.])402(?![a-z0-9.])|payment[_\s-]*required|insufficient[_\s-]*quota|\bServiceQuotaExceededException\b|"quotaId"\s*:\s*"[^"]*PerDay|"(?:code|type|error_code)"\s*:\s*"(?:quota_exceeded|usage_limit|usage_limit_reached|usage_limit_exceeded)"/i;
|
|
6021
6024
|
const BILLING_EXHAUSTED_FAILURE_PATTERN = /credit\s+balance\s+is\s+too\s+low|insufficient[_\s-]*(?:credits?|balance|funds)|(?:requires|purchase|buy|add)\s+more\s+credits|used\s+all\s+(?:of\s+)?(?:your\s+)?available\s+credits|out\s+of\s+(?:credits?|budget)|spending\s+limit|available\s+balance|check\s+your\s+plan\s+and\s+billing/i;
|
|
@@ -6061,7 +6064,7 @@ function fallbackKindFromMessage(message, name) {
|
|
|
6061
6064
|
if (/rate\s*limit|too\s*many\s*requests|\bthrottl(?:ing|ed)\b|\b429\b|quota|usage[\s_-]*limit|billing|credit/i.test(message)) return "rate_limit";
|
|
6062
6065
|
if (transientKind === void 0 && /auth|unauthori[sz]ed|\b40[13]\b|api[_\s-]*key|token[_\s-]*(?:expired|revoked|invalidated|rejected)|forbidden|invalid[_\s-]*key/i.test(message)) return "auth_on_candidate_provider";
|
|
6063
6066
|
if (transientKind === void 0 && messageLooksLikeModelUnavailable(message)) return "model_unavailable";
|
|
6064
|
-
if (/network|fetch|socket|connection\s*refused|(?<![a-z0-9_])(?:ECONNRESET|ECONNABORTED|ECONNREFUSED|ETIMEDOUT|EPIPE)(?![a-z0-9_])|getaddrinfo|ENOTFOUND|EAI_AGAIN|timeout|timed\s+out/i.test(message)) return "network_timeout";
|
|
6067
|
+
if (/network|fetch|socket|connection\s*refused|(?<![a-z0-9_])(?:ECONNRESET|ECONNABORTED|ECONNREFUSED|ETIMEDOUT|EPIPE|UND_ERR_BODY_TIMEOUT|UND_ERR_HEADERS_TIMEOUT|UND_ERR_CONNECT_TIMEOUT)(?![a-z0-9_])|getaddrinfo|ENOTFOUND|EAI_AGAIN|timeout|timed\s+out/i.test(message)) return "network_timeout";
|
|
6065
6068
|
return transientKind ?? "provider_unavailable";
|
|
6066
6069
|
}
|
|
6067
6070
|
function signalSource(value, fallback) {
|
|
@@ -9516,7 +9519,7 @@ const finishStop = async (fns, stop, push, finished) => {
|
|
|
9516
9519
|
if (error !== void 0) throw error;
|
|
9517
9520
|
};
|
|
9518
9521
|
const genBridge = (fns, once) => {
|
|
9519
|
-
fns = fns.filter((fn) => fn).flat(
|
|
9522
|
+
fns = fns.filter((fn) => fn).flat(1e400).map((fn) => isFunctionList(fn) ? getFunctionList(fn) : fn).flat(1e400);
|
|
9520
9523
|
if (!fns.length) fns = [(x) => x];
|
|
9521
9524
|
const canAbort = hasAborters(fns);
|
|
9522
9525
|
const finished = /* @__PURE__ */ new Set();
|
|
@@ -9982,7 +9985,7 @@ async function runCallback(descriptor, callback) {
|
|
|
9982
9985
|
}
|
|
9983
9986
|
// dist/core/tools/ask-user-question/view/components/wrapping-select.js
|
|
9984
9987
|
var WrappingSelect = class WrappingSelect {
|
|
9985
|
-
static ACTIVE_POINTER = "
|
|
9988
|
+
static ACTIVE_POINTER = "∀ ";
|
|
9986
9989
|
static INACTIVE_POINTER = " ";
|
|
9987
9990
|
static NUMBER_SEPARATOR = ". ";
|
|
9988
9991
|
static CURSOR_INVERSE_START = "\x1B[7m";
|
|
@@ -10186,7 +10189,7 @@ var WrappingSelect = class WrappingSelect {
|
|
|
10186
10189
|
}
|
|
10187
10190
|
};
|
|
10188
10191
|
// dist/core/tools/ask-user-question/view/components/multi-select-view.js
|
|
10189
|
-
const ACTIVE_POINTER = "
|
|
10192
|
+
const ACTIVE_POINTER = "∀ ";
|
|
10190
10193
|
const INACTIVE_POINTER = " ";
|
|
10191
10194
|
const CHECKED = "[✔]";
|
|
10192
10195
|
const UNCHECKED = "[ ]";
|
|
@@ -13367,10 +13370,9 @@ async function* readLocalFileChunks(path, { signal }, open = open$1) {
|
|
|
13367
13370
|
* Pi 0.80.7 pins an older TypeBox instance, so this narrow boundary keeps extension
|
|
13368
13371
|
* schemas portable when they compose the result with Atomic's direct TypeBox version.
|
|
13369
13372
|
*/
|
|
13370
|
-
function StringEnum
|
|
13371
|
-
return StringEnum(values, options);
|
|
13373
|
+
function StringEnum(values, options) {
|
|
13374
|
+
return StringEnum$1(values, options);
|
|
13372
13375
|
}
|
|
13373
|
-
__name(StringEnum$1, "StringEnum");
|
|
13374
13376
|
// dist/core/tools/todos-render.js
|
|
13375
13377
|
function serializeTodoForAgent(todo) {
|
|
13376
13378
|
const payload = {
|
|
@@ -14961,7 +14963,7 @@ function isPositiveInteger(value) {
|
|
|
14961
14963
|
return Number.isInteger(value) && value > 0;
|
|
14962
14964
|
}
|
|
14963
14965
|
/** `setTimeout` treats anything above this as 1 ms, which would turn a long wait into a busy loop. */
|
|
14964
|
-
const MAX_TIMER_MS =
|
|
14966
|
+
const MAX_TIMER_MS = 0x7fffffff;
|
|
14965
14967
|
/** A delay the shared wake dispatcher can wait on: a positive integer no longer than one host timer. */
|
|
14966
14968
|
function requireTimerMs(value, field) {
|
|
14967
14969
|
if (!Number.isSafeInteger(value) || value <= 0) throw new SubscriptionConfigError(field, "not-positive-integer");
|
|
@@ -15567,7 +15569,7 @@ var HuggingFaceSearch = class extends Container {
|
|
|
15567
15569
|
for (let index = start; index < end; index++) {
|
|
15568
15570
|
const model = this.filteredResults[index];
|
|
15569
15571
|
if (!model) continue;
|
|
15570
|
-
const prefix = index === this.selectedIndex ? "
|
|
15572
|
+
const prefix = index === this.selectedIndex ? "∀ " : " ";
|
|
15571
15573
|
const details = `${compactCount(model.downloads)} downloads`;
|
|
15572
15574
|
this.resultsContainer.addChild(new Text(index === this.selectedIndex ? this.theme.fg("accent", `${prefix}${model.id} ${details}`) : `${prefix}${model.id}${this.theme.fg("muted", ` ${details}`)}`, 0, 0));
|
|
15573
15575
|
}
|
|
@@ -16152,6 +16154,343 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16152
16154
|
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
16153
16155
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
16154
16156
|
}));
|
|
16157
|
+
// ../../node_modules/semver/internal/trim-comparator-whitespace.js
|
|
16158
|
+
var require_trim_comparator_whitespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
16159
|
+
const { MAX_LENGTH, MAX_SAFE_BUILD_LENGTH, WHITESPACE_CHARACTERS } = require_constants();
|
|
16160
|
+
/**
|
|
16161
|
+
* Remembers the last two rows of digits so their characters need not be reread.
|
|
16162
|
+
* Positions start at -1 until a row has been found.
|
|
16163
|
+
*
|
|
16164
|
+
* @typedef {object} DigitRunCache
|
|
16165
|
+
* @property {number} start The first character of the most recently found row.
|
|
16166
|
+
* @property {number} end The position after that row's last character.
|
|
16167
|
+
* @property {number} previousStart The first character of the previous row.
|
|
16168
|
+
* @property {number} previousEnd The position after the previous row.
|
|
16169
|
+
*/
|
|
16170
|
+
const whitespace = /* @__PURE__ */ new Uint8Array(65536);
|
|
16171
|
+
for (const char of WHITESPACE_CHARACTERS) whitespace[char.charCodeAt(0)] = 1;
|
|
16172
|
+
/**
|
|
16173
|
+
* Checks whether a character is whitespace, like a space, tab, or newline.
|
|
16174
|
+
* Looking past the end of the string returns false.
|
|
16175
|
+
*
|
|
16176
|
+
* @param {string|undefined} char One character, or undefined past the string's end.
|
|
16177
|
+
* @returns {boolean} Whether the character is whitespace.
|
|
16178
|
+
* @example isWhitespace(' ') // true
|
|
16179
|
+
* @example isWhitespace('1') // false
|
|
16180
|
+
*/
|
|
16181
|
+
const isWhitespace = (char) => char !== void 0 && whitespace[char.charCodeAt(0)] === 1;
|
|
16182
|
+
/**
|
|
16183
|
+
* Checks for v, =, or whitespace before the version number.
|
|
16184
|
+
* These are historical version prefixes, not range operators:
|
|
16185
|
+
* < and > are handled separately, as are tilde and caret ranges.
|
|
16186
|
+
*
|
|
16187
|
+
* @param {string|undefined} char One character to check.
|
|
16188
|
+
* @returns {boolean} Whether the character can belong to a version prefix.
|
|
16189
|
+
* @example isVersionPrefix('=') // true
|
|
16190
|
+
* @example isVersionPrefix('>') // false
|
|
16191
|
+
*/
|
|
16192
|
+
const isVersionPrefix = (char) => char === "v" || char === "=" || isWhitespace(char);
|
|
16193
|
+
/**
|
|
16194
|
+
* Checks whether a character is one of the digits 0 through 9.
|
|
16195
|
+
*
|
|
16196
|
+
* @param {string|undefined} char One character to check.
|
|
16197
|
+
* @returns {boolean} Whether the character is an ASCII digit.
|
|
16198
|
+
* @example isDigit('7') // true
|
|
16199
|
+
* @example isDigit('.') // false
|
|
16200
|
+
*/
|
|
16201
|
+
const isDigit = (char) => char !== void 0 && char >= "0" && char <= "9";
|
|
16202
|
+
/**
|
|
16203
|
+
* Checks whether a character is an English letter, uppercase or lowercase.
|
|
16204
|
+
*
|
|
16205
|
+
* @param {string|undefined} char One character to check.
|
|
16206
|
+
* @returns {boolean} Whether the character is an ASCII letter.
|
|
16207
|
+
* @example isLetter('b') // true
|
|
16208
|
+
* @example isLetter('7') // false
|
|
16209
|
+
*/
|
|
16210
|
+
const isLetter = (char) => char !== void 0 && (char >= "a" && char <= "z" || char >= "A" && char <= "Z");
|
|
16211
|
+
/**
|
|
16212
|
+
* Checks for a letter, digit, or hyphen: the characters allowed inside
|
|
16213
|
+
* prerelease and build names such as beta-1.
|
|
16214
|
+
*
|
|
16215
|
+
* @param {string|undefined} char One character to check.
|
|
16216
|
+
* @returns {boolean} Whether the character can be part of an identifier.
|
|
16217
|
+
* @example isIdentifierCharacter('-') // true
|
|
16218
|
+
* @example isIdentifierCharacter('.') // false; dots separate identifiers
|
|
16219
|
+
*/
|
|
16220
|
+
const isIdentifierCharacter = (char) => isDigit(char) || isLetter(char) || char === "-";
|
|
16221
|
+
/**
|
|
16222
|
+
* Checks whether a version component can begin here: with a digit or
|
|
16223
|
+
* a wildcard such as x, X, or *.
|
|
16224
|
+
*
|
|
16225
|
+
* @param {string|undefined} char One character to check.
|
|
16226
|
+
* @returns {boolean} Whether a number or wildcard can start with this character.
|
|
16227
|
+
* @example isVersionStart('x') // true
|
|
16228
|
+
* @example isVersionStart('v') // false; v belongs to the prefix
|
|
16229
|
+
*/
|
|
16230
|
+
const isVersionStart = (char) => isDigit(char) || char === "x" || char === "X" || char === "*";
|
|
16231
|
+
/**
|
|
16232
|
+
* Finds the end of a row of digits, but returns no more than limit digits.
|
|
16233
|
+
* Remembers the last two rows so looking at them again does not reread them.
|
|
16234
|
+
*
|
|
16235
|
+
* @param {string} range The text to read; it is not changed.
|
|
16236
|
+
* @param {number} start The position of the first character to check.
|
|
16237
|
+
* @param {number} limit The most digit characters the returned match can include.
|
|
16238
|
+
* @param {DigitRunCache} digitRuns Shared cache of digit-run positions, updated in place.
|
|
16239
|
+
* @returns {number} The position after the matched digits, or start if none match.
|
|
16240
|
+
* @example findDigitsEndIndex('123abc', 0, 10, digitRuns) // 3, pointing at a
|
|
16241
|
+
* @example findDigitsEndIndex('123abc', 0, 2, digitRuns) // 2, pointing at the unread 3
|
|
16242
|
+
*/
|
|
16243
|
+
const findDigitsEndIndex = (range, start, limit, digitRuns) => {
|
|
16244
|
+
if (!isDigit(range[start])) return start;
|
|
16245
|
+
if (start >= digitRuns.start && start < digitRuns.end) return Math.min(start + limit, digitRuns.end);
|
|
16246
|
+
if (start >= digitRuns.previousStart && start < digitRuns.previousEnd) return Math.min(start + limit, digitRuns.previousEnd);
|
|
16247
|
+
let end = start + 1;
|
|
16248
|
+
while (isDigit(range[end])) end++;
|
|
16249
|
+
digitRuns.previousStart = digitRuns.start;
|
|
16250
|
+
digitRuns.previousEnd = digitRuns.end;
|
|
16251
|
+
digitRuns.start = start;
|
|
16252
|
+
digitRuns.end = end;
|
|
16253
|
+
return Math.min(start + limit, end);
|
|
16254
|
+
};
|
|
16255
|
+
/**
|
|
16256
|
+
* Reads a number using the old regex's length and leading-zero rules.
|
|
16257
|
+
* Strict mode reads just the first zero in 012; loose mode can read all three.
|
|
16258
|
+
*
|
|
16259
|
+
* @param {string} range The text to read; it is not changed.
|
|
16260
|
+
* @param {number} start The position where the number should begin.
|
|
16261
|
+
* @param {boolean} loose Whether to allow leading zeros.
|
|
16262
|
+
* @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
|
|
16263
|
+
* @returns {number} The position after the matched digits, not their numeric value.
|
|
16264
|
+
* @example findVersionNumberEndIndex('012', 0, false, digitRuns) // 1
|
|
16265
|
+
* @example findVersionNumberEndIndex('012', 0, true, digitRuns) // 3
|
|
16266
|
+
*/
|
|
16267
|
+
const findVersionNumberEndIndex = (range, start, loose, digitRuns) => {
|
|
16268
|
+
if (!loose && range[start] === "0") return start + 1;
|
|
16269
|
+
return findDigitsEndIndex(range, start, loose ? MAX_LENGTH : MAX_LENGTH + 1, digitRuns);
|
|
16270
|
+
};
|
|
16271
|
+
/**
|
|
16272
|
+
* Reads one piece of a prerelease name, such as beta or 1 in beta.1.
|
|
16273
|
+
* Tries the letter-or-hyphen form first, then the number-only form.
|
|
16274
|
+
*
|
|
16275
|
+
* @param {string} range The text to read; it is not changed.
|
|
16276
|
+
* @param {number} start The position where the identifier should begin.
|
|
16277
|
+
* @param {boolean} loose Whether numeric identifiers may have leading zeros.
|
|
16278
|
+
* @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
|
|
16279
|
+
* @returns {number} The position after the identifier, or start if none matches.
|
|
16280
|
+
* @example findPrereleaseIdentifierEndIndex('beta.1', 0, false, digitRuns) // 4, at the dot
|
|
16281
|
+
* @example findPrereleaseIdentifierEndIndex('001beta', 0, false, digitRuns) // 7
|
|
16282
|
+
*/
|
|
16283
|
+
const findPrereleaseIdentifierEndIndex = (range, start, loose, digitRuns) => {
|
|
16284
|
+
const digitsEnd = findDigitsEndIndex(range, start, MAX_LENGTH, digitRuns);
|
|
16285
|
+
if (isLetter(range[digitsEnd]) || range[digitsEnd] === "-") {
|
|
16286
|
+
let end = digitsEnd + 1;
|
|
16287
|
+
const limit = end + MAX_SAFE_BUILD_LENGTH;
|
|
16288
|
+
while (end < limit && isIdentifierCharacter(range[end])) end++;
|
|
16289
|
+
return end;
|
|
16290
|
+
}
|
|
16291
|
+
return findVersionNumberEndIndex(range, start, loose, digitRuns);
|
|
16292
|
+
};
|
|
16293
|
+
/**
|
|
16294
|
+
* Reads a prerelease suffix such as -beta.1, one dot-separated piece at a time.
|
|
16295
|
+
* Loose mode also allows the name without its opening hyphen.
|
|
16296
|
+
*
|
|
16297
|
+
* @param {string} range The text to read; it is not changed.
|
|
16298
|
+
* @param {number} start The position where the suffix should begin, including -.
|
|
16299
|
+
* @param {boolean} loose Whether the opening hyphen is optional and zeros allowed.
|
|
16300
|
+
* @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
|
|
16301
|
+
* @returns {number} The position after the matched suffix, or start if absent.
|
|
16302
|
+
* @example findPrereleaseEndIndex('-beta.1+sha', 0, false, digitRuns) // 7, at the plus
|
|
16303
|
+
* @example findPrereleaseEndIndex('beta', 0, false, digitRuns) // 0; no opening hyphen
|
|
16304
|
+
*/
|
|
16305
|
+
const findPrereleaseEndIndex = (range, start, loose, digitRuns) => {
|
|
16306
|
+
const hyphen = range[start] === "-";
|
|
16307
|
+
if (!loose && !hyphen) return start;
|
|
16308
|
+
const identifierStart = start + (hyphen ? 1 : 0);
|
|
16309
|
+
let end = findPrereleaseIdentifierEndIndex(range, identifierStart, loose, digitRuns);
|
|
16310
|
+
if (end === identifierStart) {
|
|
16311
|
+
if (!loose || !hyphen) return start;
|
|
16312
|
+
end = findPrereleaseIdentifierEndIndex(range, start, loose, digitRuns);
|
|
16313
|
+
}
|
|
16314
|
+
while (range[end] === ".") {
|
|
16315
|
+
const next = findPrereleaseIdentifierEndIndex(range, end + 1, loose, digitRuns);
|
|
16316
|
+
if (next === end + 1) break;
|
|
16317
|
+
end = next;
|
|
16318
|
+
}
|
|
16319
|
+
return end;
|
|
16320
|
+
};
|
|
16321
|
+
/**
|
|
16322
|
+
* Reads one build-name piece, such as sha or 123 in +sha.123.
|
|
16323
|
+
* Stops at a disallowed character or the old regex's length limit.
|
|
16324
|
+
*
|
|
16325
|
+
* @param {string} range The text to read; it is not changed.
|
|
16326
|
+
* @param {number} start The position where the identifier should begin.
|
|
16327
|
+
* @returns {number} The position after the identifier, or start if none matches.
|
|
16328
|
+
* @example findBuildIdentifierEndIndex('sha.123', 0) // 3, at the dot
|
|
16329
|
+
* @example findBuildIdentifierEndIndex('001', 0) // 3; leading zeros are allowed
|
|
16330
|
+
*/
|
|
16331
|
+
const findBuildIdentifierEndIndex = (range, start) => {
|
|
16332
|
+
let end = start;
|
|
16333
|
+
while (end - start < MAX_SAFE_BUILD_LENGTH && isIdentifierCharacter(range[end])) end++;
|
|
16334
|
+
return end;
|
|
16335
|
+
};
|
|
16336
|
+
/**
|
|
16337
|
+
* Reads optional build metadata such as +sha.123.
|
|
16338
|
+
* Leaves the position unchanged if there is no plus sign followed by a name.
|
|
16339
|
+
*
|
|
16340
|
+
* @param {string} range The text to read; it is not changed.
|
|
16341
|
+
* @param {number} start The position where the opening + should be.
|
|
16342
|
+
* @returns {number} The position after the matched metadata, or start if absent.
|
|
16343
|
+
* @example findBuildEndIndex('+sha.123 <2', 0) // 8, at the space
|
|
16344
|
+
* @example findBuildEndIndex('+', 0) // 0; a plus sign alone is not a match
|
|
16345
|
+
*/
|
|
16346
|
+
const findBuildEndIndex = (range, start) => {
|
|
16347
|
+
if (range[start] !== "+") return start;
|
|
16348
|
+
let end = findBuildIdentifierEndIndex(range, start + 1);
|
|
16349
|
+
if (end === start + 1) return start;
|
|
16350
|
+
while (range[end] === ".") {
|
|
16351
|
+
const next = findBuildIdentifierEndIndex(range, end + 1);
|
|
16352
|
+
if (next === end + 1) break;
|
|
16353
|
+
end = next;
|
|
16354
|
+
}
|
|
16355
|
+
return end;
|
|
16356
|
+
};
|
|
16357
|
+
/**
|
|
16358
|
+
* Reads three numbers separated by dots, then any prerelease and build suffixes.
|
|
16359
|
+
* Uses loose rules, so forms such as 01.02.03beta can match here.
|
|
16360
|
+
*
|
|
16361
|
+
* @param {string} range The text to read; it is not changed.
|
|
16362
|
+
* @param {number} start The position of the first number, after any prefix.
|
|
16363
|
+
* @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
|
|
16364
|
+
* @returns {number} The position after the version match, or start if none matches.
|
|
16365
|
+
* @example findLooseFullVersionEndIndex('1.2.3-beta+sha <2', 0, digitRuns) // 14
|
|
16366
|
+
* @example findLooseFullVersionEndIndex('1.2', 0, digitRuns) // 0; needs three numbers
|
|
16367
|
+
*/
|
|
16368
|
+
const findLooseFullVersionEndIndex = (range, start, digitRuns) => {
|
|
16369
|
+
let end = start;
|
|
16370
|
+
for (let component = 0; component < 3; component++) {
|
|
16371
|
+
const next = findVersionNumberEndIndex(range, end, true, digitRuns);
|
|
16372
|
+
if (next === end) return start;
|
|
16373
|
+
end = next;
|
|
16374
|
+
if (component < 2) {
|
|
16375
|
+
if (range[end] !== ".") return start;
|
|
16376
|
+
end++;
|
|
16377
|
+
}
|
|
16378
|
+
}
|
|
16379
|
+
const prereleaseEnd = findPrereleaseEndIndex(range, end, true, digitRuns);
|
|
16380
|
+
return findBuildEndIndex(range, prereleaseEnd);
|
|
16381
|
+
};
|
|
16382
|
+
/**
|
|
16383
|
+
* Reads one component of a partial or wildcard version, such as 2 or x in 2.x.
|
|
16384
|
+
* Numbers use strict leading-zero rules; wildcards take up one character.
|
|
16385
|
+
*
|
|
16386
|
+
* @param {string} range The text to read; it is not changed.
|
|
16387
|
+
* @param {number} start The position where the component should begin.
|
|
16388
|
+
* @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
|
|
16389
|
+
* @returns {number} The position after the component, or start if none matches.
|
|
16390
|
+
* @example findPartialVersionComponentEndIndex('2.x', 0, digitRuns) // 1, at the dot
|
|
16391
|
+
* @example findPartialVersionComponentEndIndex('2.x', 2, digitRuns) // 3, after x
|
|
16392
|
+
*/
|
|
16393
|
+
const findPartialVersionComponentEndIndex = (range, start, digitRuns) => {
|
|
16394
|
+
if (isDigit(range[start])) return findVersionNumberEndIndex(range, start, false, digitRuns);
|
|
16395
|
+
return isVersionStart(range[start]) ? start + 1 : start;
|
|
16396
|
+
};
|
|
16397
|
+
/**
|
|
16398
|
+
* Reads up to three components, allowing forms such as 1, 1.2, or 1.x.
|
|
16399
|
+
* After the third component, also reads any strict prerelease and build suffixes.
|
|
16400
|
+
*
|
|
16401
|
+
* @param {string} range The text to read; it is not changed.
|
|
16402
|
+
* @param {number} start The position of a number or wildcard, after any prefix.
|
|
16403
|
+
* @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
|
|
16404
|
+
* @returns {number} The position after the matched version text.
|
|
16405
|
+
* @example findPartialVersionEndIndex('1.x <2', 0, digitRuns) // 3, at the space
|
|
16406
|
+
* @example findPartialVersionEndIndex('1.', 0, digitRuns) // 1; the trailing dot is unread
|
|
16407
|
+
*/
|
|
16408
|
+
const findPartialVersionEndIndex = (range, start, digitRuns) => {
|
|
16409
|
+
let end = findPartialVersionComponentEndIndex(range, start, digitRuns);
|
|
16410
|
+
for (let component = 0; component < 2; component++) {
|
|
16411
|
+
if (range[end] !== ".") return end;
|
|
16412
|
+
const next = findPartialVersionComponentEndIndex(range, end + 1, digitRuns);
|
|
16413
|
+
if (next === end + 1) return end;
|
|
16414
|
+
end = next;
|
|
16415
|
+
}
|
|
16416
|
+
const prereleaseEnd = findPrereleaseEndIndex(range, end, false, digitRuns);
|
|
16417
|
+
return findBuildEndIndex(range, prereleaseEnd);
|
|
16418
|
+
};
|
|
16419
|
+
/**
|
|
16420
|
+
* Finds where a version match ends, without deciding whether the range is valid.
|
|
16421
|
+
* Tries a loose full version first, then a partial or wildcard version, just
|
|
16422
|
+
* like the old regex's LOOSEPLAIN and XRANGEPLAIN alternatives.
|
|
16423
|
+
*
|
|
16424
|
+
* @param {string} range The text to read; it is not changed.
|
|
16425
|
+
* @param {number} start The position of a number or wildcard, after any prefix.
|
|
16426
|
+
* @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
|
|
16427
|
+
* @returns {number} The position where scanning the next candidate can resume.
|
|
16428
|
+
* @example findVersionEndIndex('1.2.3 <2', 0, digitRuns) // 5, at the space
|
|
16429
|
+
* @example findVersionEndIndex('1.x <2', 0, digitRuns) // 3, at the space
|
|
16430
|
+
*/
|
|
16431
|
+
const findVersionEndIndex = (range, start, digitRuns) => {
|
|
16432
|
+
const fullVersionEnd = findLooseFullVersionEndIndex(range, start, digitRuns);
|
|
16433
|
+
return fullVersionEnd !== start ? fullVersionEnd : findPartialVersionEndIndex(range, start, digitRuns);
|
|
16434
|
+
};
|
|
16435
|
+
/**
|
|
16436
|
+
* Finds the one whitespace character the old replacement would remove.
|
|
16437
|
+
* Keeps leading whitespace, skips an optional operator, and checks immediately
|
|
16438
|
+
* after it. Returns -1 if there is nothing to remove.
|
|
16439
|
+
*
|
|
16440
|
+
* @param {string} range The text containing a candidate already found by the caller.
|
|
16441
|
+
* @param {number} matchStart The candidate's position, including leading whitespace.
|
|
16442
|
+
* @returns {number} The position of the removable whitespace, or -1 if absent.
|
|
16443
|
+
* @example findRemovableWhitespaceIndex(' > 1', 0) // 2; keep the space at position 0
|
|
16444
|
+
* @example findRemovableWhitespaceIndex('>1', 0) // -1
|
|
16445
|
+
*/
|
|
16446
|
+
const findRemovableWhitespaceIndex = (range, matchStart) => {
|
|
16447
|
+
let position = matchStart;
|
|
16448
|
+
if (isWhitespace(range[position])) position++;
|
|
16449
|
+
if (range[position] === "<" || range[position] === ">") position++;
|
|
16450
|
+
if (range[position] === "=") position++;
|
|
16451
|
+
return isWhitespace(range[position]) ? position : -1;
|
|
16452
|
+
};
|
|
16453
|
+
/**
|
|
16454
|
+
* Joins an operator to its version, turning > 1.2.3 into >1.2.3.
|
|
16455
|
+
* Copies everything else according to the old regex's matching rules.
|
|
16456
|
+
* Moves forward through prefixes and whole versions to avoid repeatedly
|
|
16457
|
+
* searching the same characters on long inputs.
|
|
16458
|
+
*
|
|
16459
|
+
* @param {string} range The range text to process; the original string is unchanged.
|
|
16460
|
+
* @returns {string} The range with matched operator whitespace removed.
|
|
16461
|
+
* @example trimComparatorWhitespace('> 1.2.3 < 2') // '>1.2.3 <2'
|
|
16462
|
+
* @example trimComparatorWhitespace('> invalid') // '> invalid'
|
|
16463
|
+
*/
|
|
16464
|
+
const trimComparatorWhitespace = (range) => {
|
|
16465
|
+
let result = "";
|
|
16466
|
+
let copyFrom = 0;
|
|
16467
|
+
let cursor = 0;
|
|
16468
|
+
const digitRuns = {
|
|
16469
|
+
start: -1,
|
|
16470
|
+
end: -1,
|
|
16471
|
+
previousStart: -1,
|
|
16472
|
+
previousEnd: -1
|
|
16473
|
+
};
|
|
16474
|
+
while (cursor < range.length) {
|
|
16475
|
+
const matchStart = cursor;
|
|
16476
|
+
if (range[cursor] === "<" || range[cursor] === ">") cursor++;
|
|
16477
|
+
else if (!isVersionPrefix(range[cursor]) && !isVersionStart(range[cursor])) {
|
|
16478
|
+
cursor++;
|
|
16479
|
+
continue;
|
|
16480
|
+
}
|
|
16481
|
+
while (cursor < range.length && isVersionPrefix(range[cursor])) cursor++;
|
|
16482
|
+
if (!isVersionStart(range[cursor])) continue;
|
|
16483
|
+
const whitespacePosition = findRemovableWhitespaceIndex(range, matchStart);
|
|
16484
|
+
if (whitespacePosition !== -1) {
|
|
16485
|
+
result += range.slice(copyFrom, whitespacePosition);
|
|
16486
|
+
copyFrom = whitespacePosition + 1;
|
|
16487
|
+
}
|
|
16488
|
+
cursor = findVersionEndIndex(range, cursor, digitRuns);
|
|
16489
|
+
}
|
|
16490
|
+
return result + range.slice(copyFrom);
|
|
16491
|
+
};
|
|
16492
|
+
module.exports = trimComparatorWhitespace;
|
|
16493
|
+
}));
|
|
16155
16494
|
// dist/core/package-manager-resource-accumulator.js
|
|
16156
16495
|
function resourcePrecedenceRank(m) {
|
|
16157
16496
|
if (m.source === "builtin") return 6;
|
|
@@ -17158,15 +17497,14 @@ function captureForkReplayPair(raw, projected, filter, branch, destination) {
|
|
|
17158
17497
|
}
|
|
17159
17498
|
// dist/core/cache-warmer.js
|
|
17160
17499
|
/** Resolves the retention the session would use, including model-specific defaults, before looking up the lifetime. */
|
|
17161
|
-
function getPromptCacheTtlMs
|
|
17500
|
+
function getPromptCacheTtlMs(model, options) {
|
|
17162
17501
|
const configured = getAtomicEnvValue("CACHE_RETENTION", options?.env);
|
|
17163
17502
|
const retention = options?.cacheRetention ?? (configured === "none" ? "none" : configured === "short" ? "short" : configured === "long" ? "long" : getDefaultCacheRetention(model));
|
|
17164
|
-
return getPromptCacheTtlMs(model, {
|
|
17503
|
+
return getPromptCacheTtlMs$1(model, {
|
|
17165
17504
|
...options,
|
|
17166
17505
|
cacheRetention: retention
|
|
17167
17506
|
});
|
|
17168
17507
|
}
|
|
17169
|
-
__name(getPromptCacheTtlMs$1, "getPromptCacheTtlMs");
|
|
17170
17508
|
function lastPromptTokens(entries) {
|
|
17171
17509
|
for (let index = entries.length - 1; index >= 0; index--) {
|
|
17172
17510
|
const entry = entries[index];
|
|
@@ -17231,7 +17569,7 @@ var CacheWarmer = class {
|
|
|
17231
17569
|
this.stop("request cannot be replayed safely");
|
|
17232
17570
|
return;
|
|
17233
17571
|
}
|
|
17234
|
-
const ttlMs = getPromptCacheTtlMs
|
|
17572
|
+
const ttlMs = getPromptCacheTtlMs(request.model, request.options);
|
|
17235
17573
|
if (ttlMs === void 0) {
|
|
17236
17574
|
this.stop(request.options.cacheRetention === "none" ? "request disabled prompt caching" : "cache lifetime unavailable");
|
|
17237
17575
|
return;
|
|
@@ -17383,7 +17721,7 @@ function getClientIdentity(settingsManager) {
|
|
|
17383
17721
|
/** How long a run waits for the first piped byte, or the end of stdin, by default. */
|
|
17384
17722
|
const DEFAULT_STDIN_TIMEOUT_MS = 2e3;
|
|
17385
17723
|
/** The longest delay a timer holds: a longer one fires after 1 ms instead. */
|
|
17386
|
-
const MAX_TIMER_DELAY_MS =
|
|
17724
|
+
const MAX_TIMER_DELAY_MS = 0x7fffffff;
|
|
17387
17725
|
/**
|
|
17388
17726
|
* `ATOMIC_STDIN_TIMEOUT_MS`: a whole number of milliseconds, at most `MAX_TIMER_DELAY_MS` (about 24.8 days); `0` waits
|
|
17389
17727
|
* for the end of piped input.
|
|
@@ -19087,16 +19425,16 @@ async function readTransferDirectory(directory) {
|
|
|
19087
19425
|
function sessionScratchDir(agentDir, cwd, _sessionId) {
|
|
19088
19426
|
return getDefaultSessionDirPath(cwd, agentDir);
|
|
19089
19427
|
}
|
|
19090
|
-
export { AgentRehydrateError, AgentReleaseConfigError, CacheWarmer, ChildCatalog, CommandDeliveries, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_SUBSCRIPTION_MAX_CONCURRENT, EMPTY_OUTPUT_TEXT, EngineHealthController, ExtensionInputComponent, ExtensionSelectorComponent, FirstTimeSetupComponent, GIT_RELEASE, HistorySearchPositions, IMAGE_RESIZE_WORKER_RESPONSE_TYPE, LEGACY_AZURE_PROVIDER, LlamaClient, MAX_INDEXED_ENTRY_CHARS, MULTI_SUBMIT_LABEL, MarkdownContentCache, McpClient, MultiSelectView, NestedGitignore, NestedToolCallRunner, NoUsableModelError, QuestionParamsSchema, RESERVED_LABELS, RESUME_TIMINGS_TYPE, RemoteModelCatalog, RemoteQueuePause, ReopenedCompletionHeaders, ResumeTimingsRecorder, SEARCH_PART_CHARS, SESSIONS_TRANSFER_DIRECTORY, SESSION_STORAGE_JOIN, STORAGE_JOIN_COMMAND, SUMMARY_COMPACTION_PREFIX, SessionKeyDigests, SessionStorageSelectionSchema, SettingsSchema, SqlSessionSearchIndex, StorageImportIncompleteError, StorageSelectionSchema, StorageTransferError, StringEnum
|
|
19428
|
+
export { AgentRehydrateError, AgentReleaseConfigError, CacheWarmer, ChildCatalog, CommandDeliveries, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_SUBSCRIPTION_MAX_CONCURRENT, EMPTY_OUTPUT_TEXT, EngineHealthController, ExtensionInputComponent, ExtensionSelectorComponent, FirstTimeSetupComponent, GIT_RELEASE, HistorySearchPositions, IMAGE_RESIZE_WORKER_RESPONSE_TYPE, LEGACY_AZURE_PROVIDER, LlamaClient, MAX_INDEXED_ENTRY_CHARS, MULTI_SUBMIT_LABEL, MarkdownContentCache, McpClient, MultiSelectView, NestedGitignore, NestedToolCallRunner, NoUsableModelError, QuestionParamsSchema, RESERVED_LABELS, RESUME_TIMINGS_TYPE, RemoteModelCatalog, RemoteQueuePause, ReopenedCompletionHeaders, ResumeTimingsRecorder, SEARCH_PART_CHARS, SESSIONS_TRANSFER_DIRECTORY, SESSION_STORAGE_JOIN, STORAGE_JOIN_COMMAND, SUMMARY_COMPACTION_PREFIX, SessionKeyDigests, SessionStorageSelectionSchema, SettingsSchema, SqlSessionSearchIndex, StorageImportIncompleteError, StorageSelectionSchema, StorageTransferError, StringEnum, TEAM_JOIN_COMMAND, TOOL_OUTPUT_ENTRY_TYPE, TRANSPILE_CACHE_WRITE_WAIT_MS, TaskElapsedClocks, TaskToolError, ToolExecutionScheduler, TransportEvents, UNORDERED_ADMISSION, VERBATIM_COMPACTION_PREFIX, VERIFICATION_PENDING_REASON, WorkspaceBindingError, WorkspaceCollectionError, WorkspaceConfigError, WorkspaceDriftError, WorkspaceError, WorkspaceGitError, WorkspacePublicationError, WorkspaceRestoreError, WorkspaceSandboxError, WorkspaceSnapshotError, WorkspaceTimeoutError, WrappingSelect, acceptsForkReplay, addResource, adoptCommandSession, appendFileChatRecord, assertSessionBlobStore, assertSessionNotOpenElsewhere, assertSettingsWrites, attachCleanupCause, bindRegistrationCallbacks, bindTaskClock, bindTaskClockSource, bodyWidths, buildDirectoryTree, buildDirectoryTreeFromOperations, buildToolStatusReport, cancelInitialBinding, cancelPausedOwnerTasks, cancelReceiptSentence, cancelReceiptStatus, captureForkReplayPair, captureRegistrationInvocation, carriedTransformedPrompt, carryCompletionEvidence, chatAnswerIntent, chatNumberingFor, childPresentationInput, claimInteractiveBind, cleanupFailureSummary, collectAgentTasks, collectCommandDeliveries, collectExtensionPackageWarnings, collectFlags, collectMarkdownTransformers, collectPackageInstallWarnings, collectRegisteredTools, collectSettingsDiagnostics, columnWidths, compareCreated, compareFrozen, computeFocusedOptionHasPreview, conflictEntries, convertImageBytesToPng, convertToLlm, convertToLlmWithForkBoundaries, convertToPng, copyRegistrations, copySessionBlobs, createAccumulator, createBranchSummaryMessage, createCustomMessage, createInvocationBindings, createLazyBuiltinFactory, createManagedTaskClocks, createProviderAlias, createSessionHistoryToolDefinition, createVerbatimCompactionMessage, crossTabLeftWidthWithDonation, currentResourceAdmission, decideLayout, deferCommandTurn, deferMessagesInterleavedWithToolBatch, deferRestorePhase, deleteFileChatRecords, describeToolSelection, detectLinuxLibc, diffLines, diffWords, discoverChatFile, drainProcessStdio, drainWindowsDirectorySecurityReads, dropDeferredCommandTurn, ensurePngTranscoder, ensureTool, errorMessage$1 as errorMessage, execCommand, extensionRefreshRejection, extensionSource, filterSupersededHerdrIntegrationPaths, findEntryRenderer, findMessageRenderer, findSessionOpenHolder, findToolDefinition, findWorkspaceError, fixUtf8Stream, flush, forkReplayFilter, forkToolDeclarations, formatAnswerScalar, formatBytes, formatNoUsableModelMessage, formatPackageInstallWarning, formatResumeTimings, formatTokenSegment, formatToolStatus, genBridge, getBuiltinExtensionEntryLabel, getClientIdentity, getCommandEnv, getGitDistributionTarget, getGitInstallDir, getGitReleaseMarker, getGitShellEnvironment, getGitShellEnvironmentAsync, getGitStatus, getGitStatusAsync, getLatestVersion, getLazyBuiltinSpec, getLoaderAgentDirs, getPromptCacheTtlMs, getStorageAdapterHostModules, getToolEnv, getToolPath, getVirtualModules, gitInstallCommand, gitignoreMatcher, hasExtensionHandlers, hasFileChatRecords, hasLazyBuiltinSpec, hasQuitStoppableCommands, hasRecordedTransformedPrompt, hasTaskPromptHost, hasTransformedPrompt, heldPromptInput, heldPrompts, holdSessionOpenMarker, initialBindScope, inlineToolOutput, insertForcedOptionsBeforeTerminator, invocationExtension, invocationRuntime, isAgentRehydrateError, isAgentReleaseConfigError, isBashToolResult, isContentFilterRefusal, isEditToolResult, isFindToolResult, isForkHeader, isHeldPromptInput, isInsideInputHook, isJsonValue, isLocalOnlySessionStorage, isLsToolResult, isNativeBuiltinExtensionPath, isOfflineModeEnabled, isPowerShellToolResult, isPresentationHostInput, isProviderCredentialRejection, isReadToolResult, isRetryableAgentRehydrateError, isRetryableModelFailure, isRetryableSameModelFailure, isRetryableWorkspaceError, isSafetyRefusalFailure, isSourceBuiltinExtensionPath, isStorageImportIncompleteError, isStorageTransferError, isTaskToolError, isToolCallEventType, isTruthyEnvFlag, isUnrecognizedModelFailure, isVerbatimCompactionMessage, isWorkspaceBindingError, isWorkspaceCollectionError, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspacePublicationError, isWorkspaceRestoreError, isWorkspaceSandboxError, isWorkspaceSnapshotError, isWorkspaceTimeoutError, isWriteToolResult, joinCommandSend, joinCommandTurn, killQuitStoppableCommandsNow, latestLegacyMessageTime, latestResumeTimings, legacyCompletionTarget, lifecycleScopeForOwner, llamaInferenceUrl, loadVirtualModules, loaderHostModulesTestHooks, mergeExtensionWarnings, mergeResourcePaths, messageIsLlmVisible, messageStartsLlmUserTurn, migrateCompactionModelSettings, modelFailureMessage, next, nextTransformedPromptRecord, normalizeAzureSettings, normalizeLlamaServerUrl, normalizeMessageContent, normalizeModelFailureSignal, normalizeModelProvider, normalizeModelReference, normalizeProviderKeys, noteCommandAnswer, noteCommandTurnMessage, noteRestoreFetch, openEventSubscription, originalRegistrationCallback, ownedSettingsManagers, parseArgs, parseConflictBytes, parseEngineExplicitQuitCommand, parseGitVersion, parseInteractiveEngineCommand, parseInteractiveEngineMessage, partitionByCredentials, plainStatMtimeMs, powershellCandidates, prepareRegistrationCallbacks, prepareSessionOpenMarkers, presentTaskError, presentationHostInput, prewarmModelApi, printHelp, projectTransformedPrompt, providerOfModelReference, publishEvent, readConflictUrl, readFileChatOrders, readFileChatRecords, readHostInputFormRequest, readInlineCaret, readInlineDraft, readLocalFileChunks, readPipedStdin, readTransferDirectory, reconcileRegistration, recordBlueprintStep, recordClosedStart, recordResumeTimings, recordSettingsWrite, refreshConflictFile, registerConflictBlocks, registerFactoryStartupHandler, registerInitialBindings, registerLazyBuiltin, registrationFields, rehydrateAgentRehydrateError, rehydrateTaskToolError, rehydrateWorkspaceError, rejectMalformedToolArguments, rememberEarlierCompletion, renderTodoCall, renderTodoResult, reopenedCompletionName, repairOrphanToolResults, reportDiagnostics, requestedThinkingLevelForModelSwitch, requireTimerMs, require_from_url, require_int, require_int$1, require_log, require_re, require_timestamp, require_toJS, require_trim_comparator_whitespace, require_util_flow_indent_check, require_util_map_includes, require_visit, reserveQueuedInputAdmission, resetGitProvisionStateForTest, resizeImageInProcess, resolveCompactionModel, resolveGit, resolveGitSync, resolveInlineDraftValue, resolveInstalledGit, resolveInvocationRuntime, resolveRegisteredCommands, resolveResourcePath, resolveToolConcurrency, resolvesCompletionHeader, routeKey, routeNamesPrompt, runCallback, runCommandHandler, runInputHook, runSynchronousCallback, runWithProgress, scheduleToolExecution, selectActivePreviewPaneIndex, selectActiveTabItems, selectConfirmedIndicator, selectReadLinesFromChunks, selectReadLinesFromList, serializeAgentRehydrateError, serializeInteractiveEngineFrame, serializeInteractiveEngineMessage, serializeTodoForAgent, serializeTodoListForAgent, serializeWorkspaceError, sessionBlobHashes, sessionBlobOutput, sessionLifecycleCreation, sessionLifecycleScopes, sessionPosition, sessionScratchDir, setCallbackActivityReporter, settingsWriteOwner, shareCompletionEvidence, showLlamaUi, shownSpanMs, splitSearchTextParts, startedAsFork, startupRegistrationTokens, startupSourceId, stopIndex, storeInlineToolOutputs, storeSessionBlobs, streamCutDurationMs, stripVerbatimCompactionPrefix, subagentsLazyBuiltinSpec, summarizeLegacySession, takeInlineToolOutput, takeInlineToolOutputEntry, taskClockOf, taskClockRunning, taskClocksFor, taskElapsedMs, taskPromptHost, thinkingLevelForModelSwitch, timeCheckoutRestore, timeRestorePhase, toResolvedPaths, tokenize, toolChangeSupport, toolOutputUrl, toolOutputUrlHash, trackAdmittedAgentTask, trackTranspileCacheWrite, trackWindowsDirectorySecurityWork, transferFile, transformedPromptOwner, transpileCacheWritesSettled, unpackIds, unreadablePathError, unreadableTrustSettingsDiagnostics, unwritablePathError, userLikeContentBlockIsLlmVisible, validateEventSource, validateSubscriptionAdmission, verbatimRecallHint, verifyWindowsDirectorySecurity, verifyWindowsDirectorySecurityAsync, waitResultTail, waitStatus, watchHeldPromptAttention, withGitProvisionSettingsForTest, withImagesBlocked, withInlineDraft, withOwnResourceAdmission, withResourceAdmission, withTranspileCacheWriteOwner, withWindowsDirectorySecurityOwner, withoutCarriedToolOutput, withoutSearchPosition, writeChunksAtomically, writeLinesAtomically, writeRenderers };
|
|
19091
19429
|
|
|
19092
|
-
//# sourceMappingURL=startup-0-1-
|
|
19430
|
+
//# sourceMappingURL=startup-0-1-W2G2UY7R.js.map
|
|
19093
19431
|
// __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
|
|
19094
19432
|
// demand that fails in a process an in-place update left running says to restart.
|
|
19095
19433
|
function __atomicOnDemandFailed(error, feature) {
|
|
19096
19434
|
return (async () => {
|
|
19097
19435
|
const root = new URL("../", import.meta.url);
|
|
19098
19436
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
19099
|
-
const key = `${root.href}#0.10.
|
|
19437
|
+
const key = `${root.href}#0.10.6`;
|
|
19100
19438
|
let release = releases.get(key);
|
|
19101
19439
|
if (release === undefined) {
|
|
19102
19440
|
const current = (async () => {
|
|
@@ -19124,7 +19462,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
19124
19462
|
} catch {
|
|
19125
19463
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
19126
19464
|
}
|
|
19127
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
19465
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
|
|
19128
19466
|
if (updatedTo === undefined) throw error;
|
|
19129
19467
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
19130
19468
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|