@bastani/atomic 0.10.11-alpha.1 → 0.10.11-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +7 -7
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +7 -7
- package/dist/_shared/mode-shared-2QJSCUM6.js +7 -7
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-AVFII7NK.js → sdk-IQMULKFU.js} +2438 -470
- package/dist/_shared/sdk-IQMULKFU.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +3 -3
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +1 -1
- package/dist/_shared/{settings-startup-4QCVCI53.js → settings-startup-HXQLSUWM.js} +8 -2
- package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -0
- package/dist/_shared/{startup-0-0-57KF6LZH.js → startup-0-0-3IXNMFM2.js} +392 -15
- package/dist/_shared/startup-0-0-3IXNMFM2.js.map +1 -0
- package/dist/_shared/{startup-0-1-GIY75K46.js → startup-0-1-7T2IAE7J.js} +51 -243
- package/dist/_shared/startup-0-1-7T2IAE7J.js.map +1 -0
- package/dist/_shared/{startup-0-2-27OWFHV6.js → startup-0-2-5QHPCEON.js} +225 -7
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -0
- package/dist/_shared/{startup-0-3-T4DVFYWX.js → startup-0-3-4ZYBYQNM.js} +273 -14
- package/dist/_shared/startup-0-3-4ZYBYQNM.js.map +1 -0
- package/dist/_shared/startup-0-4-ZMJV547D.js +6 -6
- package/dist/_shared/startup-0-5-YDW47QX6.js +7 -7
- package/dist/_shared/startup-10-0-TDQNBDDL.js +7 -7
- package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +5 -5
- package/dist/_shared/startup-15-1-4S7FLMNG.js +7 -7
- package/dist/_shared/startup-8-0-34CBHPZH.js +421 -84
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/startup-8-1-X32CYSXB.js +77 -13
- package/dist/_shared/startup-8-1-X32CYSXB.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +7 -5
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +3 -3
- package/dist/builtin/intercom/CHANGELOG.md +11 -0
- package/dist/builtin/intercom/broker/broker.bundle.mjs +205 -82
- package/dist/builtin/intercom/broker/sql-lease-store.ts +38 -27
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +228 -65
- package/dist/builtin/intercom/broker/sql-schema.ts +82 -27
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- 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 +6 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- 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 +2 -2
- 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/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.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.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 +2 -2
- 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/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- 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 +26 -14
- 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 +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-open-markers.js +3 -0
- package/dist/core/session-open-markers.js.map +1 -0
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/added-exports.js +3 -0
- package/dist/core/storage/added-exports.js.map +1 -1
- package/dist/core/storage/database.d.ts +37 -0
- package/dist/core/storage/database.js.map +1 -1
- package/dist/core/storage/index.d.ts +1 -1
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/migrations.d.ts +12 -3
- package/dist/core/storage/migrations.js +24 -11
- package/dist/core/storage/migrations.js.map +1 -1
- package/dist/core/storage/node-sqlite-thread.js +31 -2
- package/dist/core/storage/node-sqlite-thread.js.map +1 -1
- package/dist/core/storage/node-sqlite.js +86 -2
- package/dist/core/storage/node-sqlite.js.map +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/prefix.js +5 -0
- package/dist/core/storage/prefix.js.map +1 -1
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/schema-catalog.d.ts +82 -4
- package/dist/core/storage/schema-catalog.js +242 -32
- package/dist/core/storage/schema-catalog.js.map +1 -1
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +9 -8
- package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +4 -4
- 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 -1
- package/dist/core/storage/session/expanded-child-details.code.js +3 -3
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-detach.d.ts +118 -0
- 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-schema.js +53 -0
- package/dist/core/storage/session/fork-schema.js.map +1 -0
- package/dist/core/storage/session/fork-segments.d.ts +58 -0
- package/dist/core/storage/session/fork-staging.code.js +3 -3
- 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-sweep.js +61 -0
- package/dist/core/storage/session/fork-sweep.js.map +1 -0
- package/dist/core/storage/session/fork-window.code.js +4 -4
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.d.ts +37 -1
- 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.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 +4 -4
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +349 -12
- package/dist/core/storage/session/sql-session-store.impl.js +4 -4
- package/dist/core/storage/session/sql-session-store.js +4 -4
- 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/session/types.d.ts +22 -0
- package/dist/core/storage/sqlite-facade.d.ts +17 -1
- package/dist/core/storage/sqlite-facade.js +33 -0
- package/dist/core/storage/sqlite-facade.js.map +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/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 +4 -4
- 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.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/history-session.d.ts +2 -0
- 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.d.ts +31 -0
- package/dist/core/worktree-snapshot/blob-store.js +164 -49
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- 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/fork-snapshot-index.js +121 -0
- package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -0
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +2 -2
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +1 -1
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +2 -2
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.js +6 -6
- 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/stored-tree-view.code.js +3 -3
- 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/print-mode.js +1 -1
- 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/2.js +1 -0
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/7.js +5 -1
- package/dist/startup-stages/8.js +2 -2
- 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/guides/postgres-pgbouncer.md +14 -7
- package/docs/guides/postgres-tuning.md +9 -9
- package/docs/sessions.md +9 -0
- package/docs/storage.md +47 -6
- package/package.json +8 -8
- package/dist/_shared/sdk-AVFII7NK.js.map +0 -1
- package/dist/_shared/settings-startup-4QCVCI53.js.map +0 -1
- package/dist/_shared/startup-0-0-57KF6LZH.js.map +0 -1
- package/dist/_shared/startup-0-1-GIY75K46.js.map +0 -1
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +0 -1
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { __commonJSMin, __name, __require, __toESM } from "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME, BUILTIN_PACKAGE_DIR_NAMES, CONFIG_DIR_NAME, ENV_AGENT_DIR, ENV_DEBUG, ENV_OFFLINE, ENV_PACKAGE_DIR, ENV_SELF_UPDATE_COMMAND, ENV_SESSION_DIR, ENV_SHARE_VIEWER_URL, ENV_STDIN_TIMEOUT_MS, ENV_TELEMETRY, INSTALLED_EXTENSION_ENTRIES, SOURCE_EXTENSION_ENTRIES, VERSION, createChildProcessEnvironment, createModuleRequire, findHelperExecutableAsync, getAgentDir, getAgentDirs, getBinDir, getEnvValue, getPackageDir, helperLaunchAsync, isBunBinary, isBundledBuild, isChildProcessExitStatusUnknownError, missingHelperOptions, resolvePath, stripBom, waitForChildProcess } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { BUILTIN_HELP_TOOL_NAMES, BUILTIN_PATH_PREFIX, CountdownTimer, Diff, DynamicBorder, EventSourceError, FORKED_PACKAGE_NAMES, FileToolAbortedError, FramedSelector, GIT_MINIMUM_VERSION, GitProvisionConfigError, GitProvisionTimeoutError, GitUnavailableError, JSON_RPC_ERROR_CODES, LlamaServerRequestError, LlamaServerUnreachableError, MAX_POSITION_LENGTH, MAX_TOOL_DETACHMENT_AFTER_MS, ManagedToolDownloadError, ManagedToolTimeoutError, McpAbortError, McpConnectionClosedError, McpError, McpTimeoutError, ROW_INTENT_META, STALE_EXTENSION_CONTEXT_MESSAGE, SUPPORTED_PROTOCOL_VERSIONS, Stop, SubscriptionClosedError, SubscriptionConfigError, SubscriptionEventError, SubscriptionHandlerError, SubscriptionRecordError, TASK_MARKS, TaskCleanupError, TaskEvictedError, ToolDetachmentError, VALID_THINKING_LEVELS, abortSymbol, applyExifOrientation, applySessionSummaryEntries, asyncScope, attachCleanupCause as attachCleanupCause$1, attachGitCleanupFailure,
|
|
3
|
+
import { BUILTIN_HELP_TOOL_NAMES, BUILTIN_PATH_PREFIX, CountdownTimer, Diff, DynamicBorder, EventSourceError, FORKED_PACKAGE_NAMES, FileToolAbortedError, FramedSelector, GIT_MINIMUM_VERSION, GitProvisionConfigError, GitProvisionTimeoutError, GitUnavailableError, JSON_RPC_ERROR_CODES, LlamaServerRequestError, LlamaServerUnreachableError, MAX_POSITION_LENGTH, MAX_TOOL_DETACHMENT_AFTER_MS, ManagedToolDownloadError, ManagedToolTimeoutError, McpAbortError, McpConnectionClosedError, McpError, McpTimeoutError, ROW_INTENT_META, STALE_EXTENSION_CONTEXT_MESSAGE, SUPPORTED_PROTOCOL_VERSIONS, Stop, SubscriptionClosedError, SubscriptionConfigError, SubscriptionEventError, SubscriptionHandlerError, SubscriptionRecordError, TASK_MARKS, TaskCleanupError, TaskEvictedError, ToolDetachmentError, VALID_THINKING_LEVELS, abortSymbol, applyExifOrientation, applySessionSummaryEntries, asyncScope, attachCleanupCause as attachCleanupCause$1, attachGitCleanupFailure, cancelReasonText, canonicalEventBusFor, captureHerdrEnvironment, combineUsage, compactTemplate, compactUrl, createGitEnvironment, createOwnedAbortController, decodeChatOrder, decodeChatRecord, defaultToolNamesFor, deserializeToolDetachmentError, encodeChatOrder, fetchWithRetry, fieldTone, firstChatOrders, flushable, formatSize, formatTodoId, formatTokenCount, getBuiltinPackageLocations, getDefaultCacheRetention, getDefaultSessionDirPath, getFinalValue, getFunctionList, getManyValues, getPiUserAgent, getProviderLoginHelp, getResourcePathKeyAsync, getTodoStatus, getTodoTitle, getToolListError, holdProcessDescendants, isEventSourceError, isExtensionStartupFailure, isFinalValue, isFlushable, isFunctionList, isGitProvisionError, isGitUnavailableError, isInstallTelemetryEnabled, isJsonRpcId, isJsonRpcNotification, isJsonRpcRequest, isJsonRpcResponse, isManagedToolError, isMandatoryRuntimeTool, isMany, isObject, isPathInside, isStop, isSyntheticPath, isTodoClosed, isTrustedMandatoryRuntimeTool, isValidThinkingLevel, joinForkSegments, leadingAndTrailingWs, leadingWs, longestCommonPrefix, longestCommonSuffix, materializeSessionSummaryMetadata, maximumOverlap, mergeReadRanges, none, normalizeDisplayText, normalizeTodoId, parseTranscriptFrameLayout, registerCanonicalEventBus, removePrefix, removeSuffix, renderToolPath, replacePrefix, replaceSuffix, replaceTabs, reportContained, require_constants, require_debug, require_identity, require_ignore, require_parse_url, require_sha256, require_stringifyNumber, require_util_contains_newline, rowTone, segment, segmentLength, sessionWriteTransaction, setFunctionList, sharedWakeDispatcher, sleep as sleep$1, spanElapsedMs, spawnHostProcess, splitTodosByAssignment, stop, str as str$1, stripFenceMarkers, styleFieldTone, summarizeSession, toError, trailingWs, uniquifyToolCallIds, validQuestionnaire, withCleanup, withLegacyPackageNames, yieldToEventLoop, yieldTurn } from "./startup-0-0-3IXNMFM2.js";
|
|
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
|
-
import { failureDebugFields, findInCauseChain, hasErrorIdentity,
|
|
5
|
+
import { failureDebugFields, findInCauseChain, hasErrorIdentity, reportDebugAsync, serializeErrorCause } from "./p1b-elig-ENCUPKKJ.js";
|
|
6
6
|
import { windowsPowerShellEnvironment } from "./p1-elig-shell-WWRO3L2R.js";
|
|
7
|
-
import {
|
|
7
|
+
import { parseSerializedDecisionError } from "./settings-startup-HXQLSUWM.js";
|
|
8
8
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
9
9
|
import { interactiveEngineStartupEnv } from "./p1a-prewarm-XIU57JHF.js";
|
|
10
|
-
import { access, lstat,
|
|
10
|
+
import { access, lstat, open, readFile, readdir, rename, rm, stat, unlink } from "node:fs/promises";
|
|
11
11
|
import { existsSync, readFileSync, readdirSync, statSync } from "fs";
|
|
12
12
|
import { basename, delimiter, dirname, isAbsolute, join, relative, resolve, sep } from "path";
|
|
13
|
-
import { constants as constants$1
|
|
13
|
+
import { constants as constants$1 } from "node:os";
|
|
14
14
|
import { basename as basename$1, dirname as dirname$1, extname, isAbsolute as isAbsolute$1, join as join$1, relative as relative$1, resolve as resolve$1, sep as sep$1 } from "node:path";
|
|
15
15
|
import { execFile, spawn, spawnSync } from "node:child_process";
|
|
16
16
|
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
|
-
import { constants as constants$2, readFileSync as readFileSync$1, readdirSync as readdirSync$1,
|
|
19
|
+
import { constants as constants$2, readFileSync as readFileSync$1, readdirSync as readdirSync$1, statSync as statSync$1 } from "node:fs";
|
|
20
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";
|
|
24
24
|
import { renderStorageIdentifiers, storageMigrationTable, validateStoragePrefix } from "../core/storage/prefix.js";
|
|
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
|
-
import { createHash,
|
|
26
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
27
27
|
import lockfile from "proper-lockfile";
|
|
28
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";
|
|
@@ -2858,247 +2858,55 @@ function formatResumeTimings(timings) {
|
|
|
2858
2858
|
if (timings.firstPromptReadyMs !== null) lines.push(`ready after ${seconds(timings.firstPromptReadyMs)} s`);
|
|
2859
2859
|
return lines;
|
|
2860
2860
|
}
|
|
2861
|
-
// dist/core/session-
|
|
2861
|
+
// dist/core/storage/session/fork-detach-map.js
|
|
2862
2862
|
/**
|
|
2863
|
-
*
|
|
2864
|
-
*
|
|
2865
|
-
* in a SQL store) holds them, so every host and agent directory sharing the store sees them; for any other store they
|
|
2866
|
-
* are files under the agent directory, `open-sessions/<session id>/<token>.json`. Deleting a session that has a fresh
|
|
2867
|
-
* marker, from another process or from another session of the same process, is refused. A marker of a process on
|
|
2868
|
-
* this host counts while that process runs, however long it was suspended; one of another host counts while its
|
|
2869
|
-
* heartbeat is fresh, judged on the clock that stamps the marker (#5058): the store's, or the shared file system's.
|
|
2863
|
+
* Segment arithmetic for detaching lazy forks (detach_ancestor): which rows a detach page copies, and when a sibling's
|
|
2864
|
+
* segments can be re-pointed at a detached child. See fork-segments.ts for what a segment is.
|
|
2870
2865
|
*/
|
|
2871
|
-
/** How often a held marker's heartbeat is refreshed. */
|
|
2872
|
-
const HEARTBEAT_MS = 15e3;
|
|
2873
|
-
/** How old the heartbeat of another host's marker may be before the marker no longer counts. */
|
|
2874
|
-
const STALE_MS = 4 * HEARTBEAT_MS;
|
|
2875
2866
|
/**
|
|
2876
|
-
*
|
|
2877
|
-
*
|
|
2867
|
+
* The first `rows` rows of `segment`, which a detach page copies into the child, and what remains of the segment
|
|
2868
|
+
* after them; `rest` is undefined when the page takes the whole segment. Copying `page` and replacing `segment` with
|
|
2869
|
+
* `rest` in one transaction leaves the child's view unchanged: no seq is covered both by a segment and by a row of its own.
|
|
2878
2870
|
*/
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
* This process's markers: its pid, a nonce that tells it from an earlier process given the same pid, and when it
|
|
2884
|
-
* started, where that can be read, which tells it from a later one (#5058). Fixed once first used.
|
|
2885
|
-
*/
|
|
2886
|
-
function ownToken() {
|
|
2887
|
-
if (processToken === void 0) {
|
|
2888
|
-
const started = ownProcessStartToken();
|
|
2889
|
-
processToken = `${process.pid}-${PROCESS_NONCE}${started === void 0 ? "" : `-${started}`}`;
|
|
2890
|
-
}
|
|
2891
|
-
return processToken;
|
|
2892
|
-
}
|
|
2893
|
-
async function prepareSessionOpenMarkers() {
|
|
2894
|
-
await readProcessStartToken(process.pid);
|
|
2895
|
-
}
|
|
2896
|
-
/** A marker token that names when its holder started. */
|
|
2897
|
-
const STARTED_TOKEN = /^\d+-[0-9a-f]{16}-([0-9a-f]{12})$/;
|
|
2898
|
-
/** The session ids a marker directory can be named after, as `assertValidSessionId` accepts them. */
|
|
2899
|
-
const VALID_SESSION_ID = /^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$/;
|
|
2900
|
-
/** Marker files under an agent directory, for stores that keep no markers. */
|
|
2901
|
-
var FileOpenMarkers = class {
|
|
2902
|
-
agentDir;
|
|
2903
|
-
pending = /* @__PURE__ */ new Map();
|
|
2904
|
-
constructor(agentDir) {
|
|
2905
|
-
this.agentDir = agentDir;
|
|
2906
|
-
}
|
|
2907
|
-
directory(sessionId) {
|
|
2908
|
-
return join$1(this.agentDir, "open-sessions", sessionId);
|
|
2909
|
-
}
|
|
2910
|
-
inOrder(path, operation) {
|
|
2911
|
-
const result = (this.pending.get(path) ?? Promise.resolve()).then(operation);
|
|
2912
|
-
const settled = result.catch(() => {});
|
|
2913
|
-
this.pending.set(path, settled);
|
|
2914
|
-
settled.then(() => {
|
|
2915
|
-
if (this.pending.get(path) === settled) this.pending.delete(path);
|
|
2916
|
-
});
|
|
2917
|
-
return result;
|
|
2918
|
-
}
|
|
2919
|
-
put(sessionId, marker) {
|
|
2920
|
-
const path = join$1(this.directory(sessionId), `${marker.token}.json`);
|
|
2921
|
-
return this.inOrder(path, async () => {
|
|
2922
|
-
await mkdir(dirname$1(path), { recursive: true });
|
|
2923
|
-
await writeFile(path, JSON.stringify({
|
|
2924
|
-
pid: marker.pid,
|
|
2925
|
-
host: marker.host
|
|
2926
|
-
}));
|
|
2927
|
-
});
|
|
2928
|
-
}
|
|
2929
|
-
remove(sessionId, token) {
|
|
2930
|
-
const directory = this.directory(sessionId);
|
|
2931
|
-
const path = join$1(directory, `${token}.json`);
|
|
2932
|
-
return this.inOrder(path, async () => {
|
|
2933
|
-
try {
|
|
2934
|
-
await rm(path);
|
|
2935
|
-
await rmdir(directory);
|
|
2936
|
-
} catch {}
|
|
2937
|
-
});
|
|
2938
|
-
}
|
|
2939
|
-
removeSync(sessionId, token) {
|
|
2940
|
-
const directory = this.directory(sessionId);
|
|
2941
|
-
try {
|
|
2942
|
-
rmSync$1(join$1(directory, `${token}.json`));
|
|
2943
|
-
rmdirSync$1(directory);
|
|
2944
|
-
} catch {}
|
|
2945
|
-
}
|
|
2946
|
-
async list(sessionId) {
|
|
2947
|
-
const directory = this.directory(sessionId);
|
|
2948
|
-
await Promise.all([...this.pending].flatMap(([path, settled]) => dirname$1(path) === directory ? [settled] : []));
|
|
2949
|
-
let names;
|
|
2950
|
-
try {
|
|
2951
|
-
names = await readdir(directory);
|
|
2952
|
-
} catch {
|
|
2953
|
-
return [];
|
|
2954
|
-
}
|
|
2955
|
-
if (names.length === 0) return [];
|
|
2956
|
-
const now = await sharedClockNow(dirname$1(directory));
|
|
2957
|
-
const markers = [];
|
|
2958
|
-
for (const name of names) {
|
|
2959
|
-
const path = join$1(directory, name);
|
|
2960
|
-
try {
|
|
2961
|
-
const parsed = JSON.parse(await readFile(path, "utf8"));
|
|
2962
|
-
if (typeof parsed.pid !== "number" || typeof parsed.host !== "string") continue;
|
|
2963
|
-
const token = name.replace(/\.json$/, "");
|
|
2964
|
-
const ageMs = Math.max(0, now - (await stat(path)).mtimeMs);
|
|
2965
|
-
markers.push({
|
|
2966
|
-
token,
|
|
2967
|
-
pid: parsed.pid,
|
|
2968
|
-
host: parsed.host,
|
|
2969
|
-
ageMs
|
|
2970
|
-
});
|
|
2971
|
-
} catch {}
|
|
2972
|
-
}
|
|
2973
|
-
return markers;
|
|
2974
|
-
}
|
|
2975
|
-
};
|
|
2976
|
-
const fileMarkers = /* @__PURE__ */ new Map();
|
|
2977
|
-
function fileMarkersIn(agentDir) {
|
|
2978
|
-
let markers = fileMarkers.get(agentDir);
|
|
2979
|
-
if (markers === void 0) {
|
|
2980
|
-
markers = new FileOpenMarkers(agentDir);
|
|
2981
|
-
fileMarkers.set(agentDir, markers);
|
|
2982
|
-
}
|
|
2983
|
-
return markers;
|
|
2984
|
-
}
|
|
2985
|
-
/** Where `store`'s sessions are marked open: in the store when it keeps markers, else under `agentDir`. */
|
|
2986
|
-
function markersFor(store, agentDir) {
|
|
2987
|
-
return store?.openMarkers ?? fileMarkersIn(agentDir);
|
|
2988
|
-
}
|
|
2989
|
-
/** Markers this process holds, by store and then session id. */
|
|
2990
|
-
const held = /* @__PURE__ */ new Map();
|
|
2991
|
-
let heldCount = 0;
|
|
2992
|
-
let heartbeat;
|
|
2993
|
-
function ownMarker() {
|
|
2994
|
-
return {
|
|
2995
|
-
token: ownToken(),
|
|
2996
|
-
pid: process.pid,
|
|
2997
|
-
host: hostname()
|
|
2871
|
+
function splitSegment(segment, rows) {
|
|
2872
|
+
if (rows >= segmentLength(segment)) return {
|
|
2873
|
+
page: segment,
|
|
2874
|
+
rest: void 0
|
|
2998
2875
|
};
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
function holdSessionOpenMarker(sessionId, options = {}) {
|
|
3012
|
-
if (!VALID_SESSION_ID.test(sessionId)) return async () => {};
|
|
3013
|
-
const markers = markersFor(options.store, options.agentDir ?? getAgentDir());
|
|
3014
|
-
let sessions = held.get(markers);
|
|
3015
|
-
if (sessions === void 0) {
|
|
3016
|
-
sessions = /* @__PURE__ */ new Map();
|
|
3017
|
-
held.set(markers, sessions);
|
|
3018
|
-
}
|
|
3019
|
-
let marker = sessions.get(sessionId);
|
|
3020
|
-
if (marker === void 0) {
|
|
3021
|
-
marker = {
|
|
3022
|
-
markers,
|
|
3023
|
-
sessionId,
|
|
3024
|
-
holds: 0,
|
|
3025
|
-
releaseClaim: attachSessionClaim(sessionId)
|
|
3026
|
-
};
|
|
3027
|
-
sessions.set(sessionId, marker);
|
|
3028
|
-
heldCount++;
|
|
3029
|
-
markers.put(sessionId, ownMarker()).catch(() => {});
|
|
3030
|
-
if (heartbeat === void 0) {
|
|
3031
|
-
heartbeat = setInterval(refreshMarkers, HEARTBEAT_MS);
|
|
3032
|
-
heartbeat.unref();
|
|
3033
|
-
}
|
|
3034
|
-
}
|
|
3035
|
-
const holding = marker;
|
|
3036
|
-
const owner = sessions;
|
|
3037
|
-
holding.holds++;
|
|
3038
|
-
let released = false;
|
|
3039
|
-
return async () => {
|
|
3040
|
-
if (released) return;
|
|
3041
|
-
released = true;
|
|
3042
|
-
if (--holding.holds > 0) return;
|
|
3043
|
-
owner.delete(sessionId);
|
|
3044
|
-
if (owner.size === 0) held.delete(markers);
|
|
3045
|
-
const releasingClaim = holding.releaseClaim?.();
|
|
3046
|
-
if (--heldCount === 0 && heartbeat !== void 0) {
|
|
3047
|
-
clearInterval(heartbeat);
|
|
3048
|
-
heartbeat = void 0;
|
|
3049
|
-
}
|
|
3050
|
-
await releasingClaim;
|
|
3051
|
-
if (held.get(markers)?.has(sessionId)) return;
|
|
3052
|
-
await markers.remove(sessionId, ownToken()).catch(() => {});
|
|
2876
|
+
const toSeq = segment.fromSeq + rows - 1;
|
|
2877
|
+
return {
|
|
2878
|
+
page: {
|
|
2879
|
+
...segment,
|
|
2880
|
+
toSeq
|
|
2881
|
+
},
|
|
2882
|
+
rest: {
|
|
2883
|
+
sourceId: segment.sourceId,
|
|
2884
|
+
fromSeq: toSeq + 1,
|
|
2885
|
+
toSeq: segment.toSeq,
|
|
2886
|
+
baseSeq: segment.baseSeq + rows
|
|
2887
|
+
}
|
|
3053
2888
|
};
|
|
3054
2889
|
}
|
|
3055
|
-
/** Whether `pid` is a live process on this host; one this process may not signal (EPERM) still exists. */
|
|
3056
|
-
function processAlive(pid) {
|
|
3057
|
-
try {
|
|
3058
|
-
process.kill(pid, 0);
|
|
3059
|
-
return true;
|
|
3060
|
-
} catch (error) {
|
|
3061
|
-
return error.code === "EPERM";
|
|
3062
|
-
}
|
|
3063
|
-
}
|
|
3064
|
-
/**
|
|
3065
|
-
* Whether the holder of `marker`, a marker of this host, still runs (#5058): a process with its pid that started when
|
|
3066
|
-
* the marker says, or, for a marker that does not say, any process with its pid for a day after its last heartbeat. A
|
|
3067
|
-
* marker whose start cannot be read right now is its holder's while a process with its pid runs (#5141).
|
|
3068
|
-
*/
|
|
3069
|
-
async function holderRuns(marker) {
|
|
3070
|
-
if (marker.pid === process.pid) {
|
|
3071
|
-
await prepareSessionOpenMarkers();
|
|
3072
|
-
return marker.token === ownToken();
|
|
3073
|
-
}
|
|
3074
|
-
const started = STARTED_TOKEN.exec(marker.token)?.[1];
|
|
3075
|
-
const current = started === void 0 ? void 0 : await readProcessStartToken(marker.pid);
|
|
3076
|
-
if (current !== void 0) return current === started;
|
|
3077
|
-
return (started !== void 0 || marker.ageMs <= UNSTARTED_MARKER_LIMIT_MS) && processAlive(marker.pid);
|
|
3078
|
-
}
|
|
3079
2890
|
/**
|
|
3080
|
-
*
|
|
3081
|
-
*
|
|
2891
|
+
* `sibling`'s segments re-pointed from `parentId` at the detached child `childId`, or undefined when the sibling must
|
|
2892
|
+
* keep reading the parent. `childOnParent` are the child's segments on the parent as they were before the detach. A
|
|
2893
|
+
* sibling is re-pointed only when each of its segments on the parent lies within one of those that maps the parent's
|
|
2894
|
+
* seq `j` to the child's own seq `j`, the prefix the child forked: the sibling then reads the same seqs of the child
|
|
2895
|
+
* that it read of the parent, and those rows of the child are copies of exactly those rows of the parent, so its view
|
|
2896
|
+
* does not change. A sibling that reads parent rows past the child's cut-off would read the child's own later rows
|
|
2897
|
+
* there instead, and one that reads rows a branch fork skipped would read other rows; both are left on the parent, to
|
|
2898
|
+
* be detached on their own.
|
|
3082
2899
|
*/
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
const
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
pid: marker.pid,
|
|
3094
|
-
host: marker.host
|
|
3095
|
-
};
|
|
3096
|
-
}
|
|
3097
|
-
}
|
|
3098
|
-
/** Rejects with a {@link SessionOpenElsewhereError} when a running session has `sessionId` of `store` open (#4971). */
|
|
3099
|
-
async function assertSessionNotOpenElsewhere(sessionId, options = {}) {
|
|
3100
|
-
const holder = await findSessionOpenHolder(sessionId, options);
|
|
3101
|
-
if (holder !== void 0) throw new SessionOpenElsewhereError(sessionId, holder);
|
|
2900
|
+
function reparentedSegments(sibling, parentId, childId, childOnParent) {
|
|
2901
|
+
const prefix = childOnParent.filter((cover) => cover.baseSeq + 1 === cover.fromSeq);
|
|
2902
|
+
const onParent = sibling.filter((segment) => segment.sourceId === parentId);
|
|
2903
|
+
if (onParent.length === 0) return void 0;
|
|
2904
|
+
const held = (segment) => prefix.some((cover) => cover.fromSeq <= segment.fromSeq && segment.toSeq <= cover.toSeq);
|
|
2905
|
+
if (!onParent.every(held)) return void 0;
|
|
2906
|
+
return joinForkSegments(sibling.map((segment) => segment.sourceId === parentId ? {
|
|
2907
|
+
...segment,
|
|
2908
|
+
sourceId: childId
|
|
2909
|
+
} : segment));
|
|
3102
2910
|
}
|
|
3103
2911
|
// dist/core/tasks/reopened-completion.js
|
|
3104
2912
|
function readable(value, isProxy) {
|
|
@@ -19494,16 +19302,16 @@ var ChildCatalog = class ChildCatalog {
|
|
|
19494
19302
|
function sessionScratchDir(agentDir, cwd, _sessionId) {
|
|
19495
19303
|
return getDefaultSessionDirPath(cwd, agentDir);
|
|
19496
19304
|
}
|
|
19497
|
-
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,
|
|
19305
|
+
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, assertSettingsWrites, attachCleanupCause, bindRegistrationCallbacks, bindTaskClock, bindTaskClockSource, bodyWidths, buildDirectoryTree, buildDirectoryTreeFromOperations, buildToolStatusReport, cancelInitialBinding, cancelPausedOwnerTasks, cancelReceiptSentence, cancelReceiptStatus, captureForkReplayPair, captureRegistrationInvocation, carriedTransformedPrompt, carryCompletionEvidence, chatAnswerIntent, chatNumberingFor, childPresentationInput, claimInteractiveBind, classifyCompactionModel, 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, createSkillRouter, 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, 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, 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, parseSkillUri, partitionByCredentials, plainStatMtimeMs, powershellCandidates, prepareRegistrationCallbacks, 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, reparentedSegments, 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, skillUri, splitSearchTextParts, splitSegment, 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 };
|
|
19498
19306
|
|
|
19499
|
-
//# sourceMappingURL=startup-0-1-
|
|
19307
|
+
//# sourceMappingURL=startup-0-1-7T2IAE7J.js.map
|
|
19500
19308
|
// __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
|
|
19501
19309
|
// demand that fails in a process an in-place update left running says to restart.
|
|
19502
19310
|
function __atomicOnDemandFailed(error, feature) {
|
|
19503
19311
|
return (async () => {
|
|
19504
19312
|
const root = new URL("../", import.meta.url);
|
|
19505
19313
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
19506
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
19314
|
+
const key = `${root.href}#0.10.11-alpha.2`;
|
|
19507
19315
|
let release = releases.get(key);
|
|
19508
19316
|
if (release === undefined) {
|
|
19509
19317
|
const current = (async () => {
|
|
@@ -19531,7 +19339,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
19531
19339
|
} catch {
|
|
19532
19340
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
19533
19341
|
}
|
|
19534
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.
|
|
19342
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
|
|
19535
19343
|
if (updatedTo === undefined) throw error;
|
|
19536
19344
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
19537
19345
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|