@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,26 +1,26 @@
|
|
|
1
1
|
import { __commonJSMin, __name, __toESM } from "./rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { CONFIG_DIR_NAME, createChildProcessEnvironment, findHelperExecutableAsync, getAgentConfigPaths, getAgentDir, getAgentDirs, getDocsPath, getProjectConfigDirs, getProjectConfigPaths, helperLaunchAsync, isChildProcessExitStatusUnknownError, missingHelperOptions, normalizePath, require_cross_spawn, resolvePath, resolveSafeWindowsWorkingDirectoryAsync, stripBom, waitForChildProcess } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { MAX_PERSISTED_OUTPUT_BYTES, McpConnectionClosedError, PERSISTED_OUTPUT_TRUNCATION_MARKER, STALE_EXTENSION_CONTEXT_MESSAGE, Stop, TOOL_RESULTS_SUBDIR, abortSymbol, asyncScope, bindReleasedTaskOwner, clearFunctionList, collectSecretsForMasking, combineMany, combineManyMut, containProcessTree, containProcessTreeAllowingBreakaway, displayTodoId, fListSymbol, final, finalSymbol, finalValue, flushSymbol, flushable, getErrnoCode, getFinalValue, getFunctionList, getLockPath, getManyValues, hasNativeProcessHold as hasNativeProcessHold$1, holdProcessDescendants, holdProcessDescendantsResult, hostInputError, isFinalValue, isFlushable, isFunctionList, isGitUnavailableError, isJsonRpcResponse, isLlamaServerUnreachableError, isMany, isStop, isValidThinkingLevel, many, manySymbol, minimatch, none, normalizeMany, observeArchiveLoad, processTreeEnded, providerOfModelReference, redactOAuthErrorText, removedProviderMessage, require_identity, resolveSchemaRef, scopedBackgroundTasks, scrubUnknownErrorData, serializeRetainedTranscript, sessionTasks, setDeprecationWarningSink, setFunctionList, spawnHostProcess, stop, stopErrorSymbol, str, toMany, writeRawStdoutControl } from "./startup-0-0-
|
|
4
|
-
import { LlamaClient, ReopenedCompletionHeaders, TransportEvents, WorkspaceConfigError, bindTaskClock, bodyWidths, columnWidths, convertImageBytesToPng, convertToLlm, createBranchSummaryMessage, createCustomMessage, createManagedTaskClocks, createVerbatimCompactionMessage, decideLayout, formatBytes, formatTokenSegment, isLocalOnlySessionStorage, isWorkspaceError, normalizeAzureSettings, normalizeLlamaServerUrl, normalizeMessageContent, normalizeModelReference, normalizeProviderKeys, require_toJS, require_visit, runWithProgress, serializeInteractiveEngineMessage, setCallbackActivityReporter, showLlamaUi, taskClockOf, taskClockRunning, taskClocksFor, unreadablePathError } from "./startup-0-1-
|
|
2
|
+
import { CONFIG_DIR_NAME, VERSION, createChildProcessEnvironment, findHelperExecutableAsync, getAgentConfigPaths, getAgentDir, getAgentDirs, getDocsPath, getProjectConfigDirs, getProjectConfigPaths, helperLaunchAsync, isChildProcessExitStatusUnknownError, missingHelperOptions, normalizePath, require_cross_spawn, resolvePath, resolveSafeWindowsWorkingDirectoryAsync, stripBom, waitForChildProcess } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
+
import { MAX_PERSISTED_OUTPUT_BYTES, McpConnectionClosedError, PERSISTED_OUTPUT_TRUNCATION_MARKER, STALE_EXTENSION_CONTEXT_MESSAGE, Stop, TOOL_RESULTS_SUBDIR, abortSymbol, asyncScope, attachSessionClaim, bindReleasedTaskOwner, clearFunctionList, collectSecretsForMasking, combineMany, combineManyMut, containProcessTree, containProcessTreeAllowingBreakaway, displayTodoId, fListSymbol, final, finalSymbol, finalValue, flushSymbol, flushable, getErrnoCode, getFinalValue, getFunctionList, getLockPath, getManyValues, hasNativeProcessHold as hasNativeProcessHold$1, holdProcessDescendants, holdProcessDescendantsResult, hostInputError, isFinalValue, isFlushable, isFunctionList, isGitUnavailableError, isJsonRpcResponse, isLlamaServerUnreachableError, isMany, isStop, isValidThinkingLevel, many, manySymbol, minimatch, none, normalizeMany, observeArchiveLoad, processTreeEnded, providerOfModelReference, redactOAuthErrorText, removedProviderMessage, require_identity, resolveSchemaRef, scopedBackgroundTasks, scrubUnknownErrorData, serializeRetainedTranscript, sessionTasks, setDeprecationWarningSink, setFunctionList, setSharedHistorySwitchHost, sharedClockNow, spawnHostProcess, stop, stopErrorSymbol, str, toMany, writeRawStdoutControl } from "./startup-0-0-3IXNMFM2.js";
|
|
4
|
+
import { LlamaClient, ReopenedCompletionHeaders, TransportEvents, WorkspaceConfigError, bindTaskClock, bodyWidths, columnWidths, convertImageBytesToPng, convertToLlm, createBranchSummaryMessage, createCustomMessage, createManagedTaskClocks, createVerbatimCompactionMessage, decideLayout, formatBytes, formatTokenSegment, isLocalOnlySessionStorage, isWorkspaceError, normalizeAzureSettings, normalizeLlamaServerUrl, normalizeMessageContent, normalizeModelReference, normalizeProviderKeys, require_toJS, require_visit, runWithProgress, serializeInteractiveEngineMessage, setCallbackActivityReporter, showLlamaUi, taskClockOf, taskClockRunning, taskClocksFor, unreadablePathError } from "./startup-0-1-7T2IAE7J.js";
|
|
5
5
|
import { ansi256ToHex, fgAnsi, hexToRgb, singleLineDisplayText, theme } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { parseJsonFileContent, stripJsonComments } from "./p1-shared-RG5I5LJ6.js";
|
|
7
|
-
import { failureDebugFields, reportDebug, reportDebugAsync } from "./p1b-elig-ENCUPKKJ.js";
|
|
8
|
-
import { FileAuthStorageBackend, JsonRpcLineReader, LLAMA_PROVIDER_ID, ResumeCatalogTimeoutError, ResumeCatalogUnavailableError, ResumeNotFoundError, buildFallbackModel, captureChatSnapshot, createLlamaProvider, drainSessionWork, ensurePrivateTempDirAsync, ensureTempDirAsync, formatDimensionNote, formatWorkingElapsed, formatWorkingMeta, fun, gen, getShellConfig, getShellConfigAsync, getShellEnvAsync, getTempRootDir, hasCallingSessionWork, isProtectedSessionTempDir, isProviderLimitFailure, isProviderRateLimit, isResumeError, isTodoOperationError, killChildProcessTree, killProcessTree as killProcessTree$1, markDetachedChildExited, markProviderRateLimitObserved, normalizeDerivedSessionEntries, normalizeWorkingRunSnapshot, onSessionQuit, providerAdmissionTurn, providerLimitScope, providerRequestGate, recordProviderRateLimit, recordProviderRetryHint, recordProviderSuccess, require_Node, require_anchors, require_lib, require_semver, resizeImage, resolveModelReference, sessionLifetime, showStartupInput, showStartupSelector, startParentProcessGuardian, taskTranscriptSource, trackDetachedChildPid, trackSessionWork, tryAdmitProviderRequest, untrackDetachedChildPid, withBuiltinDiagnostics, wrapToolDefinition } from "./startup-0-2-
|
|
9
|
-
import { findDecisionError, serializeDecisionError } from "./settings-startup-
|
|
7
|
+
import { failureDebugFields, ownProcessStartToken, readProcessStartToken, reportDebug, reportDebugAsync } from "./p1b-elig-ENCUPKKJ.js";
|
|
8
|
+
import { FileAuthStorageBackend, JsonRpcLineReader, LLAMA_PROVIDER_ID, ResumeCatalogTimeoutError, ResumeCatalogUnavailableError, ResumeNotFoundError, buildFallbackModel, captureChatSnapshot, createLlamaProvider, drainSessionWork, ensurePrivateTempDirAsync, ensureTempDirAsync, formatDimensionNote, formatWorkingElapsed, formatWorkingMeta, fun, gen, getShellConfig, getShellConfigAsync, getShellEnvAsync, getTempRootDir, hasCallingSessionWork, isProtectedSessionTempDir, isProviderLimitFailure, isProviderRateLimit, isResumeError, isTodoOperationError, killChildProcessTree, killProcessTree as killProcessTree$1, markDetachedChildExited, markProviderRateLimitObserved, normalizeDerivedSessionEntries, normalizeWorkingRunSnapshot, onSessionQuit, providerAdmissionTurn, providerLimitScope, providerRequestGate, recordProviderRateLimit, recordProviderRetryHint, recordProviderSuccess, require_Node, require_anchors, require_lib, require_semver, resizeImage, resolveModelReference, sessionLifetime, setForkCopyRefusalNote, showStartupInput, showStartupSelector, startParentProcessGuardian, taskTranscriptSource, trackDetachedChildPid, trackSessionWork, tryAdmitProviderRequest, untrackDetachedChildPid, withBuiltinDiagnostics, wrapToolDefinition } from "./startup-0-2-5QHPCEON.js";
|
|
9
|
+
import { SessionOpenElsewhereError, findDecisionError, serializeDecisionError } from "./settings-startup-HXQLSUWM.js";
|
|
10
10
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
11
11
|
import { interactiveEngineStartupEnv } from "./p1a-prewarm-XIU57JHF.js";
|
|
12
|
-
import fs, { lstat, mkdir, open, readFile, readdir, realpath, rename, rm, stat, unlink } from "node:fs/promises";
|
|
13
|
-
import { homedir } from "node:os";
|
|
12
|
+
import fs, { lstat, mkdir, open, readFile, readdir, realpath, rename, rm, rmdir, stat, unlink, writeFile } from "node:fs/promises";
|
|
13
|
+
import { homedir, hostname } from "node:os";
|
|
14
14
|
import { dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
15
15
|
import { spawn } from "node:child_process";
|
|
16
16
|
import { execSync as execSync$1, spawn as spawn$1, spawnSync as spawnSync$1 } from "child_process";
|
|
17
17
|
import { pathExists } from "../utils/path-exists.js";
|
|
18
|
-
import { existsSync, readFileSync, write } from "node:fs";
|
|
18
|
+
import { existsSync, readFileSync, rmSync, rmdirSync, write } from "node:fs";
|
|
19
19
|
import { normalizeProviderId } from "@bastani/atomic-ai";
|
|
20
20
|
import { Loader, Text, stripTerminalSequences, truncateToWidth, visibleWidth } from "@bastani/atomic-tui";
|
|
21
21
|
import chalk from "chalk";
|
|
22
22
|
import { StorageUnavailableError, isRetryableStorageError } from "../core/storage/errors.js";
|
|
23
|
-
import { createHash } from "node:crypto";
|
|
23
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
24
24
|
import { promisify } from "node:util";
|
|
25
25
|
import { modelsAreEqual } from "@bastani/atomic-ai/compat";
|
|
26
26
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -86,6 +86,265 @@ function createProjectTrustContext(options) {
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
+
// dist/core/session-open-markers.js
|
|
90
|
+
/**
|
|
91
|
+
* Which sessions are running (#4971): a process that runs a session keeps a marker for it, refreshed on a heartbeat and
|
|
92
|
+
* removed when the session closes or the process exits. A store that keeps markers (`SessionStore.openMarkers`, a table
|
|
93
|
+
* in a SQL store) holds them, so every host and agent directory sharing the store sees them; for any other store they
|
|
94
|
+
* are files under the agent directory, `open-sessions/<session id>/<token>.json`. Deleting a session that has a fresh
|
|
95
|
+
* marker, from another process or from another session of the same process, is refused. A marker of a process on
|
|
96
|
+
* this host counts while that process runs, however long it was suspended; one of another host counts while its
|
|
97
|
+
* heartbeat is fresh, judged on the clock that stamps the marker (#5058): the store's, or the shared file system's.
|
|
98
|
+
*/
|
|
99
|
+
/** How often a held marker's heartbeat is refreshed. */
|
|
100
|
+
const HEARTBEAT_MS = 15e3;
|
|
101
|
+
/** How old the heartbeat of another host's marker may be before the marker no longer counts. */
|
|
102
|
+
const STALE_MS = 4 * HEARTBEAT_MS;
|
|
103
|
+
/**
|
|
104
|
+
* How long a marker of this host that does not say when its holder started counts while a process with its pid runs: a
|
|
105
|
+
* later process may have been given the pid (#5058).
|
|
106
|
+
*/
|
|
107
|
+
const UNSTARTED_MARKER_LIMIT_MS = 864e5;
|
|
108
|
+
const PROCESS_NONCE = randomBytes(8).toString("hex");
|
|
109
|
+
let processToken;
|
|
110
|
+
/**
|
|
111
|
+
* This process's markers: its pid, a nonce that tells it from an earlier process given the same pid, and when it
|
|
112
|
+
* started, where that can be read, which tells it from a later one (#5058). Fixed once first used.
|
|
113
|
+
*/
|
|
114
|
+
function ownToken() {
|
|
115
|
+
if (processToken === void 0) {
|
|
116
|
+
const started = ownProcessStartToken();
|
|
117
|
+
processToken = `${process.pid}-${PROCESS_NONCE}${started === void 0 ? "" : `-${started}`}`;
|
|
118
|
+
}
|
|
119
|
+
return processToken;
|
|
120
|
+
}
|
|
121
|
+
async function prepareSessionOpenMarkers() {
|
|
122
|
+
await readProcessStartToken(process.pid);
|
|
123
|
+
}
|
|
124
|
+
/** A marker token that names when its holder started. */
|
|
125
|
+
const STARTED_TOKEN = /^\d+-[0-9a-f]{16}-([0-9a-f]{12})$/;
|
|
126
|
+
/** The session ids a marker directory can be named after, as `assertValidSessionId` accepts them. */
|
|
127
|
+
const VALID_SESSION_ID = /^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$/;
|
|
128
|
+
/** Marker files under an agent directory, for stores that keep no markers. */
|
|
129
|
+
var FileOpenMarkers = class {
|
|
130
|
+
agentDir;
|
|
131
|
+
pending = /* @__PURE__ */ new Map();
|
|
132
|
+
constructor(agentDir) {
|
|
133
|
+
this.agentDir = agentDir;
|
|
134
|
+
}
|
|
135
|
+
directory(sessionId) {
|
|
136
|
+
return join(this.agentDir, "open-sessions", sessionId);
|
|
137
|
+
}
|
|
138
|
+
inOrder(path, operation) {
|
|
139
|
+
const result = (this.pending.get(path) ?? Promise.resolve()).then(operation);
|
|
140
|
+
const settled = result.catch(() => {});
|
|
141
|
+
this.pending.set(path, settled);
|
|
142
|
+
settled.then(() => {
|
|
143
|
+
if (this.pending.get(path) === settled) this.pending.delete(path);
|
|
144
|
+
});
|
|
145
|
+
return result;
|
|
146
|
+
}
|
|
147
|
+
put(sessionId, marker) {
|
|
148
|
+
const path = join(this.directory(sessionId), `${marker.token}.json`);
|
|
149
|
+
return this.inOrder(path, async () => {
|
|
150
|
+
await mkdir(dirname(path), { recursive: true });
|
|
151
|
+
await writeFile(path, JSON.stringify({
|
|
152
|
+
pid: marker.pid,
|
|
153
|
+
host: marker.host
|
|
154
|
+
}));
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
remove(sessionId, token) {
|
|
158
|
+
const directory = this.directory(sessionId);
|
|
159
|
+
const path = join(directory, `${token}.json`);
|
|
160
|
+
return this.inOrder(path, async () => {
|
|
161
|
+
try {
|
|
162
|
+
await rm(path);
|
|
163
|
+
await rmdir(directory);
|
|
164
|
+
} catch {}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
removeSync(sessionId, token) {
|
|
168
|
+
const directory = this.directory(sessionId);
|
|
169
|
+
try {
|
|
170
|
+
rmSync(join(directory, `${token}.json`));
|
|
171
|
+
rmdirSync(directory);
|
|
172
|
+
} catch {}
|
|
173
|
+
}
|
|
174
|
+
async list(sessionId) {
|
|
175
|
+
const directory = this.directory(sessionId);
|
|
176
|
+
await Promise.all([...this.pending].flatMap(([path, settled]) => dirname(path) === directory ? [settled] : []));
|
|
177
|
+
let names;
|
|
178
|
+
try {
|
|
179
|
+
names = await readdir(directory);
|
|
180
|
+
} catch {
|
|
181
|
+
return [];
|
|
182
|
+
}
|
|
183
|
+
if (names.length === 0) return [];
|
|
184
|
+
const now = await sharedClockNow(dirname(directory));
|
|
185
|
+
const markers = [];
|
|
186
|
+
for (const name of names) {
|
|
187
|
+
const path = join(directory, name);
|
|
188
|
+
try {
|
|
189
|
+
const parsed = JSON.parse(await readFile(path, "utf8"));
|
|
190
|
+
if (typeof parsed.pid !== "number" || typeof parsed.host !== "string") continue;
|
|
191
|
+
const token = name.replace(/\.json$/, "");
|
|
192
|
+
const ageMs = Math.max(0, now - (await stat(path)).mtimeMs);
|
|
193
|
+
markers.push({
|
|
194
|
+
token,
|
|
195
|
+
pid: parsed.pid,
|
|
196
|
+
host: parsed.host,
|
|
197
|
+
ageMs
|
|
198
|
+
});
|
|
199
|
+
} catch {}
|
|
200
|
+
}
|
|
201
|
+
return markers;
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
const fileMarkers = /* @__PURE__ */ new Map();
|
|
205
|
+
function fileMarkersIn(agentDir) {
|
|
206
|
+
let markers = fileMarkers.get(agentDir);
|
|
207
|
+
if (markers === void 0) {
|
|
208
|
+
markers = new FileOpenMarkers(agentDir);
|
|
209
|
+
fileMarkers.set(agentDir, markers);
|
|
210
|
+
}
|
|
211
|
+
return markers;
|
|
212
|
+
}
|
|
213
|
+
/** Where `store`'s sessions are marked open: in the store when it keeps markers, else under `agentDir`. */
|
|
214
|
+
function markersFor(store, agentDir) {
|
|
215
|
+
return store?.openMarkers ?? fileMarkersIn(agentDir);
|
|
216
|
+
}
|
|
217
|
+
/** Markers this process holds, by store and then session id. */
|
|
218
|
+
const held = /* @__PURE__ */ new Map();
|
|
219
|
+
let heldCount = 0;
|
|
220
|
+
let heartbeat;
|
|
221
|
+
function ownMarker() {
|
|
222
|
+
return {
|
|
223
|
+
token: ownToken(),
|
|
224
|
+
pid: process.pid,
|
|
225
|
+
host: hostname(),
|
|
226
|
+
build: VERSION
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
function refreshMarkers() {
|
|
230
|
+
for (const sessions of held.values()) for (const marker of sessions.values()) marker.markers.put(marker.sessionId, ownMarker()).catch(() => {});
|
|
231
|
+
}
|
|
232
|
+
process.on("exit", () => {
|
|
233
|
+
for (const sessions of held.values()) for (const marker of sessions.values()) if (marker.markers instanceof FileOpenMarkers) marker.markers.removeSync(marker.sessionId, ownToken());
|
|
234
|
+
});
|
|
235
|
+
/**
|
|
236
|
+
* Records that this process has `sessionId` of `store` open, until the returned function is called, once; holds by
|
|
237
|
+
* one process for one session share a marker. Never throws, and neither does the release: a marker that cannot be
|
|
238
|
+
* written leaves the session unprotected.
|
|
239
|
+
*/
|
|
240
|
+
function holdSessionOpenMarker(sessionId, options = {}) {
|
|
241
|
+
if (!VALID_SESSION_ID.test(sessionId)) return async () => {};
|
|
242
|
+
const markers = markersFor(options.store, options.agentDir ?? getAgentDir());
|
|
243
|
+
let sessions = held.get(markers);
|
|
244
|
+
if (sessions === void 0) {
|
|
245
|
+
sessions = /* @__PURE__ */ new Map();
|
|
246
|
+
held.set(markers, sessions);
|
|
247
|
+
}
|
|
248
|
+
let marker = sessions.get(sessionId);
|
|
249
|
+
if (marker === void 0) {
|
|
250
|
+
marker = {
|
|
251
|
+
markers,
|
|
252
|
+
sessionId,
|
|
253
|
+
holds: 0,
|
|
254
|
+
releaseClaim: attachSessionClaim(sessionId)
|
|
255
|
+
};
|
|
256
|
+
sessions.set(sessionId, marker);
|
|
257
|
+
heldCount++;
|
|
258
|
+
markers.put(sessionId, ownMarker()).catch(() => {});
|
|
259
|
+
if (heartbeat === void 0) {
|
|
260
|
+
heartbeat = setInterval(refreshMarkers, HEARTBEAT_MS);
|
|
261
|
+
heartbeat.unref();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
const holding = marker;
|
|
265
|
+
const owner = sessions;
|
|
266
|
+
holding.holds++;
|
|
267
|
+
let released = false;
|
|
268
|
+
return async () => {
|
|
269
|
+
if (released) return;
|
|
270
|
+
released = true;
|
|
271
|
+
if (--holding.holds > 0) return;
|
|
272
|
+
owner.delete(sessionId);
|
|
273
|
+
if (owner.size === 0) held.delete(markers);
|
|
274
|
+
const releasingClaim = holding.releaseClaim?.();
|
|
275
|
+
if (--heldCount === 0 && heartbeat !== void 0) {
|
|
276
|
+
clearInterval(heartbeat);
|
|
277
|
+
heartbeat = void 0;
|
|
278
|
+
}
|
|
279
|
+
await releasingClaim;
|
|
280
|
+
if (held.get(markers)?.has(sessionId)) return;
|
|
281
|
+
await markers.remove(sessionId, ownToken()).catch(() => {});
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
/** Whether `pid` is a live process on this host; one this process may not signal (EPERM) still exists. */
|
|
285
|
+
function processAlive(pid) {
|
|
286
|
+
try {
|
|
287
|
+
process.kill(pid, 0);
|
|
288
|
+
return true;
|
|
289
|
+
} catch (error) {
|
|
290
|
+
return error.code === "EPERM";
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Whether the holder of `marker`, a marker of this host, still runs (#5058): a process with its pid that started when
|
|
295
|
+
* the marker says, or, for a marker that does not say, any process with its pid for a day after its last heartbeat. A
|
|
296
|
+
* marker whose start cannot be read right now is its holder's while a process with its pid runs (#5141).
|
|
297
|
+
*/
|
|
298
|
+
async function holderRuns(marker) {
|
|
299
|
+
if (marker.pid === process.pid) {
|
|
300
|
+
await prepareSessionOpenMarkers();
|
|
301
|
+
return marker.token === ownToken();
|
|
302
|
+
}
|
|
303
|
+
const started = STARTED_TOKEN.exec(marker.token)?.[1];
|
|
304
|
+
const current = started === void 0 ? void 0 : await readProcessStartToken(marker.pid);
|
|
305
|
+
if (current !== void 0) return current === started;
|
|
306
|
+
return (started !== void 0 || marker.ageMs <= UNSTARTED_MARKER_LIMIT_MS) && processAlive(marker.pid);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Whether the process that keeps `marker` still runs, as {@link findSessionOpenHolder} judges it: one of this host while
|
|
310
|
+
* it runs, however long it was suspended; one of another host while its heartbeat is fresh.
|
|
311
|
+
*/
|
|
312
|
+
async function sessionOpenMarkerRuns(marker) {
|
|
313
|
+
return marker.host === hostname() ? await holderRuns(marker) : marker.ageMs <= STALE_MS;
|
|
314
|
+
}
|
|
315
|
+
setSharedHistorySwitchHost({
|
|
316
|
+
live: sessionOpenMarkerRuns,
|
|
317
|
+
skipped: (fields) => {
|
|
318
|
+
reportDebugAsync("storage", "shared-history-forks-deferred", fields).catch(() => {});
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
setForkCopyRefusalNote((fields) => {
|
|
322
|
+
reportDebugAsync("storage", "fork-copy-refused", fields).catch(() => {});
|
|
323
|
+
});
|
|
324
|
+
/**
|
|
325
|
+
* A running session, in another process or in this one, that has `sessionId` of `store` open, or undefined when none
|
|
326
|
+
* does. Stale markers are removed.
|
|
327
|
+
*/
|
|
328
|
+
async function findSessionOpenHolder(sessionId, options = {}) {
|
|
329
|
+
if (!VALID_SESSION_ID.test(sessionId)) return void 0;
|
|
330
|
+
const markers = markersFor(options.store, options.agentDir ?? getAgentDir());
|
|
331
|
+
const host = hostname();
|
|
332
|
+
for (const marker of await markers.list(sessionId)) {
|
|
333
|
+
if (marker.host === host ? !await holderRuns(marker) : marker.ageMs > STALE_MS) {
|
|
334
|
+
await markers.remove(sessionId, marker.token).catch(() => {});
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
return {
|
|
338
|
+
pid: marker.pid,
|
|
339
|
+
host: marker.host
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
/** Rejects with a {@link SessionOpenElsewhereError} when a running session has `sessionId` of `store` open (#4971). */
|
|
344
|
+
async function assertSessionNotOpenElsewhere(sessionId, options = {}) {
|
|
345
|
+
const holder = await findSessionOpenHolder(sessionId, options);
|
|
346
|
+
if (holder !== void 0) throw new SessionOpenElsewhereError(sessionId, holder);
|
|
347
|
+
}
|
|
89
348
|
// dist/core/worktree-snapshot/env-hash.js
|
|
90
349
|
/** Root-relative files whose content decides a checkout's installed dependencies and toolchain. */
|
|
91
350
|
const ENVIRONMENT_INPUT_FILES = Object.freeze([
|
|
@@ -5854,16 +6113,16 @@ function startInteractiveEngineLiveness(write) {
|
|
|
5854
6113
|
activeLiveness = liveness;
|
|
5855
6114
|
return liveness;
|
|
5856
6115
|
}
|
|
5857
|
-
export { AtomicWorkedStatusComponent, AtomicWorkingLoader, AtomicWorkingStatusComponent, CODEMODE_DOCS_PATH, CODEMODE_STORE_ENTRY_TYPE, CODEMODE_TOOL_NAME, ChildTaskWaits, DEFAULT_WORKING_MESSAGE, DEFAULT_WORKTREE_SNAPSHOT_SETTINGS, ENVIRONMENT_INPUT_FILES, FileModelsStore, InMemoryCodingAgentModelsStore, LEAF_MOVE_ENTRY_TYPE, OwnerTaskStore, PersistedOutputFile, PreviewPane, RESUME_CATALOG_TIMEOUT_MS, StdioTransport, admitProviderStream, appendToLog, applyContextEdit, assertExtensionAction, assistantRetryAttempt, atomicWorkingFrame, atomicWorkingGlyph, bindExtensionWork, bindOwnerTaskStore, buildContextEntries, buildProcessStarting, buildSessionContext, buildSessionIndex, buildSessionProjection, buildSessionTree, capPersistedText, clearConfigValueCache, collectContextEdits, completeUtf8PrefixLength, computeEnvironmentHash, containsConfiguredValue, createChildCommandTaskOwner, createCodemodeDescription, createCodemodeTool, createCodemodeToolDefinition, createProjectTrustContext, deliverToLaunchingSession, drainExtensionWork, extensionSessionSignal, extensionWorkOpen, fallbackKey, finishLlamaAfterQuit, forgetChildDelivery, getBaseDirForScope, getBaseDirsForScope, getBranchPath, getCodemodeCallableTools, getConfigValueEnvVarNames, getGitInstallPath, getGitInstallRoot, getHomeDir, getInstalledGitInstallPath, getLatestCompactionBoundaryEntry, getNpmInstallRoot, getOwnerTaskSession, getOwnerTaskStore, getSessionLeafId, ignoredProjectSettingsWarning, inExtensionCleanup, isCommandConfigValue, isConfigValueConfigured, isLeafMoveEntry, isLegacyEnvVarNameConfigValue, isResumeFailure, isRetiredExtensionCleanup, isTaskTurnInterrupted, llamaExtension, loadArchiveSnapshot, loadCodemodeRenderers, logTail, migrateAzureProvider, migrateAzureProviderAsync, onExtensionSessionQuit, openStepLog, parseGitUrl, processImage, require_Alias, require_Scalar, require_compare, require_compare_build, require_inc, require_major, require_minor, require_parse, require_patch, resolveCliModel, resolveConfigValue, resolveConfigValueAsync, resolveConfigValueOrThrowAsync, resolveFallbackModel, resolveFallbackModelWithoutCredentials, resolveHeadersOrThrow, resolveHeadersOrThrowAsync, resolveManagerPath, resolveModelScopeFromModels, resolveModelScopeWithDiagnostics, resolvePathFromBase, resolveWorktreeSnapshotSettings, resumeExtensionWork, resumeFailureMessage, resumeLookupError, resumeNotFoundError, revokeExtensionAuthority, runExtensionCleanup, runLoggedProcess, runWorkspaceProcess, scheduleSessionTempCleanup, sealExtensionWork, sessionEntryToContextMessages, sessionEntryToDisplayMessages, setTaskTurnInterrupted, sha256Hex, snapshotBlob, splitFallbackModel, startElapsedMs, startInteractiveEngineLiveness, stepProcessWatcher, stepStartingWatcher, stripLeadingCdCommandAsync, taskResumedTurns, toCodemodeDeclaration, trackExtensionWork, waitFor, watchAtomicWorkingClock, watchOwnerTaskStoreBinding, withResumeLookupDeadline, withTodoLock, workingMessageColumns, wrapRegisteredTool, wrapRegisteredTools };
|
|
6116
|
+
export { AtomicWorkedStatusComponent, AtomicWorkingLoader, AtomicWorkingStatusComponent, CODEMODE_DOCS_PATH, CODEMODE_STORE_ENTRY_TYPE, CODEMODE_TOOL_NAME, ChildTaskWaits, DEFAULT_WORKING_MESSAGE, DEFAULT_WORKTREE_SNAPSHOT_SETTINGS, ENVIRONMENT_INPUT_FILES, FileModelsStore, InMemoryCodingAgentModelsStore, LEAF_MOVE_ENTRY_TYPE, OwnerTaskStore, PersistedOutputFile, PreviewPane, RESUME_CATALOG_TIMEOUT_MS, StdioTransport, admitProviderStream, appendToLog, applyContextEdit, assertExtensionAction, assertSessionNotOpenElsewhere, assistantRetryAttempt, atomicWorkingFrame, atomicWorkingGlyph, bindExtensionWork, bindOwnerTaskStore, buildContextEntries, buildProcessStarting, buildSessionContext, buildSessionIndex, buildSessionProjection, buildSessionTree, capPersistedText, clearConfigValueCache, collectContextEdits, completeUtf8PrefixLength, computeEnvironmentHash, containsConfiguredValue, createChildCommandTaskOwner, createCodemodeDescription, createCodemodeTool, createCodemodeToolDefinition, createProjectTrustContext, deliverToLaunchingSession, drainExtensionWork, extensionSessionSignal, extensionWorkOpen, fallbackKey, findSessionOpenHolder, finishLlamaAfterQuit, forgetChildDelivery, getBaseDirForScope, getBaseDirsForScope, getBranchPath, getCodemodeCallableTools, getConfigValueEnvVarNames, getGitInstallPath, getGitInstallRoot, getHomeDir, getInstalledGitInstallPath, getLatestCompactionBoundaryEntry, getNpmInstallRoot, getOwnerTaskSession, getOwnerTaskStore, getSessionLeafId, holdSessionOpenMarker, ignoredProjectSettingsWarning, inExtensionCleanup, isCommandConfigValue, isConfigValueConfigured, isLeafMoveEntry, isLegacyEnvVarNameConfigValue, isResumeFailure, isRetiredExtensionCleanup, isTaskTurnInterrupted, llamaExtension, loadArchiveSnapshot, loadCodemodeRenderers, logTail, migrateAzureProvider, migrateAzureProviderAsync, onExtensionSessionQuit, openStepLog, parseGitUrl, prepareSessionOpenMarkers, processImage, require_Alias, require_Scalar, require_compare, require_compare_build, require_inc, require_major, require_minor, require_parse, require_patch, resolveCliModel, resolveConfigValue, resolveConfigValueAsync, resolveConfigValueOrThrowAsync, resolveFallbackModel, resolveFallbackModelWithoutCredentials, resolveHeadersOrThrow, resolveHeadersOrThrowAsync, resolveManagerPath, resolveModelScopeFromModels, resolveModelScopeWithDiagnostics, resolvePathFromBase, resolveWorktreeSnapshotSettings, resumeExtensionWork, resumeFailureMessage, resumeLookupError, resumeNotFoundError, revokeExtensionAuthority, runExtensionCleanup, runLoggedProcess, runWorkspaceProcess, scheduleSessionTempCleanup, sealExtensionWork, sessionEntryToContextMessages, sessionEntryToDisplayMessages, sessionOpenMarkerRuns, setTaskTurnInterrupted, sha256Hex, snapshotBlob, splitFallbackModel, startElapsedMs, startInteractiveEngineLiveness, stepProcessWatcher, stepStartingWatcher, stripLeadingCdCommandAsync, taskResumedTurns, toCodemodeDeclaration, trackExtensionWork, waitFor, watchAtomicWorkingClock, watchOwnerTaskStoreBinding, withResumeLookupDeadline, withTodoLock, workingMessageColumns, wrapRegisteredTool, wrapRegisteredTools };
|
|
5858
6117
|
|
|
5859
|
-
//# sourceMappingURL=startup-0-3-
|
|
6118
|
+
//# sourceMappingURL=startup-0-3-4ZYBYQNM.js.map
|
|
5860
6119
|
// __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
|
|
5861
6120
|
// demand that fails in a process an in-place update left running says to restart.
|
|
5862
6121
|
function __atomicOnDemandFailed(error, feature) {
|
|
5863
6122
|
return (async () => {
|
|
5864
6123
|
const root = new URL("../", import.meta.url);
|
|
5865
6124
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
5866
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
6125
|
+
const key = `${root.href}#0.10.11-alpha.2`;
|
|
5867
6126
|
let release = releases.get(key);
|
|
5868
6127
|
if (release === undefined) {
|
|
5869
6128
|
const current = (async () => {
|
|
@@ -5891,7 +6150,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
5891
6150
|
} catch {
|
|
5892
6151
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
5893
6152
|
}
|
|
5894
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.
|
|
6153
|
+
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;
|
|
5895
6154
|
if (updatedTo === undefined) throw error;
|
|
5896
6155
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
5897
6156
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|