@bastani/atomic 0.10.14 → 0.10.15-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -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 +3 -3
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
- package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/{sdk-B5LEWGGI.js → sdk-OHKMDJ74.js} +27 -5
- package/dist/_shared/{sdk-B5LEWGGI.js.map → sdk-OHKMDJ74.js.map} +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/startup-0-0-Q3MWKUK4.js +2 -2
- package/dist/_shared/startup-0-1-M6OWAYHH.js +2 -2
- package/dist/_shared/{startup-0-2-5QHPCEON.js → startup-0-2-2HUMCPKX.js} +14 -16
- package/dist/_shared/startup-0-2-2HUMCPKX.js.map +1 -0
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
- package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
- package/dist/_shared/startup-0-5-YDW47QX6.js +3 -3
- package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +6 -30
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +3 -3
- package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
- package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- 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/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/auth-cli.code.js +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- 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.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +1 -1
- 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 +1 -1
- 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/compaction/compactor.d.ts +0 -8
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.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.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- 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 +2 -2
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +1 -1
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +3 -3
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +2 -2
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +2 -2
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +1 -1
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.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 +2 -2
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +2 -2
- 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 +2 -2
- 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/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +1 -1
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +1 -1
- 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.d.ts +21 -1
- package/dist/index.js +2 -2
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/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 +2 -2
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/utils/startup-database-spare.code.js +1 -1
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks/reference.md +182 -0
- package/docs/background-tasks.md +98 -405
- package/docs/build.md +67 -27
- package/docs/changelog.mdx +1 -1
- package/docs/codemode.md +108 -39
- package/docs/compaction/branch-summaries.md +54 -0
- package/docs/compaction/custom-compactors.md +161 -0
- package/docs/compaction/memory-compaction.md +77 -0
- package/docs/compaction/reference.md +86 -38
- package/docs/compaction.md +51 -252
- package/docs/computer-use.md +169 -321
- package/docs/containerization.md +71 -57
- package/docs/custom-provider/api-reference.md +119 -25
- package/docs/custom-provider/oauth.md +114 -132
- package/docs/custom-provider/override.md +37 -27
- package/docs/custom-provider/registration.md +107 -83
- package/docs/custom-provider/streaming.md +85 -71
- package/docs/custom-provider.md +85 -52
- package/docs/development.md +39 -29
- package/docs/docs.json +76 -63
- package/docs/environment-variables.md +94 -44
- package/docs/extensions/api-reference.md +86 -43
- package/docs/extensions/authoring.md +162 -154
- package/docs/extensions/events.md +80 -25
- package/docs/extensions/examples.md +90 -85
- package/docs/extensions/ui.md +206 -82
- package/docs/extensions.md +79 -108
- package/docs/getting-started/authentication.md +67 -36
- package/docs/getting-started/first-session.md +53 -43
- package/docs/getting-started/installation.md +116 -89
- package/docs/getting-started/project-instructions.md +48 -34
- package/docs/guides/configuration.md +82 -20
- package/docs/guides/non-interactive.md +66 -24
- package/docs/guides/resume-on-any-machine.md +135 -82
- package/docs/guides/team-setup.md +114 -105
- package/docs/guides.md +76 -32
- package/docs/herdr.md +15 -16
- package/docs/how-atomic-works.md +140 -0
- package/docs/index.md +58 -44
- package/docs/intercom/operations.md +141 -151
- package/docs/intercom/reference.md +85 -108
- package/docs/intercom.md +84 -145
- package/docs/json.md +120 -67
- package/docs/keybindings.md +85 -49
- package/docs/libraries/agent-core.md +137 -275
- package/docs/libraries/ai.md +100 -84
- package/docs/libraries/codemode.md +210 -300
- package/docs/libraries/schema.md +59 -53
- package/docs/libraries/storage-postgres.md +49 -35
- package/docs/libraries/telemetry.md +153 -354
- package/docs/libraries/tui.md +265 -393
- package/docs/libraries.md +42 -26
- package/docs/llama-cpp.md +171 -161
- package/docs/mcp-servers.md +90 -51
- package/docs/models/choose-a-model.md +188 -0
- package/docs/models/reference.md +74 -30
- package/docs/models.md +153 -88
- package/docs/orchestration/migrating-workflows.md +23 -16
- package/docs/orchestration/patterns.md +39 -44
- package/docs/orchestration.md +65 -26
- package/docs/packages/authoring.md +51 -29
- package/docs/packages/reference.md +42 -21
- package/docs/packages.md +69 -58
- package/docs/programmatic.md +118 -24
- package/docs/prompt-templates.md +84 -83
- package/docs/providers/reference.md +43 -48
- package/docs/providers.md +219 -451
- package/docs/quickstart.md +140 -120
- package/docs/reference/cli.md +135 -97
- package/docs/reference.md +20 -18
- package/docs/rpc/examples.md +76 -20
- package/docs/rpc/extension-ui.md +64 -38
- package/docs/rpc/protocol.md +361 -110
- package/docs/rpc.md +57 -17
- package/docs/sdk/reference.md +409 -534
- package/docs/sdk/storage.md +53 -13
- package/docs/sdk/structured-decisions.md +82 -56
- package/docs/sdk/web-server.md +57 -43
- package/docs/sdk.md +106 -84
- package/docs/security.md +42 -64
- package/docs/session-format.md +62 -38
- package/docs/sessions.md +99 -214
- package/docs/settings.md +165 -195
- package/docs/shell-aliases.md +9 -6
- package/docs/skills/authoring.md +69 -48
- package/docs/skills/reference.md +51 -20
- package/docs/skills.md +99 -148
- package/docs/slash-commands.md +129 -0
- package/docs/storage/custom-adapters.md +160 -85
- package/docs/storage/jsonl.md +81 -66
- package/docs/storage/postgres/pgbouncer.md +120 -126
- package/docs/storage/postgres/tuning.md +120 -143
- package/docs/storage/postgres.md +314 -330
- package/docs/storage/sqlite.md +71 -42
- package/docs/storage.md +298 -302
- package/docs/subagents/authoring.md +55 -38
- package/docs/subagents/reference.md +73 -33
- package/docs/subagents.md +119 -187
- package/docs/terminal-setup.md +50 -38
- package/docs/termux.md +67 -41
- package/docs/themes/reference.md +23 -19
- package/docs/themes.md +142 -127
- package/docs/tmux.md +47 -55
- package/docs/tools.md +147 -109
- package/docs/tui/reference.md +166 -214
- package/docs/tui.md +196 -341
- package/docs/usage.md +118 -138
- package/docs/verification.md +79 -51
- package/docs/web-access.md +121 -101
- package/docs/windows.md +26 -27
- package/docs/worktree-snapshots/reference.md +245 -0
- package/docs/worktree-snapshots.md +71 -259
- package/package.json +8 -8
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +0 -1
- package/docs/guides/intercom.md +0 -32
- package/docs/guides/orchestration.md +0 -28
- package/docs/guides/subagents.md +0 -37
|
@@ -5,7 +5,7 @@ import { LlamaClient, ReopenedCompletionHeaders, TransportEvents, WorkspaceConfi
|
|
|
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
7
|
import { failureDebugFields, ownProcessStartToken, readProcessStartToken, reportDebug, reportDebugAsync } from "./p1b-elig-TVB5CBLL.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-
|
|
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-2HUMCPKX.js";
|
|
9
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";
|
|
@@ -6122,7 +6122,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
6122
6122
|
return (async () => {
|
|
6123
6123
|
const root = new URL("../", import.meta.url);
|
|
6124
6124
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
6125
|
-
const key = `${root.href}#0.10.
|
|
6125
|
+
const key = `${root.href}#0.10.15-alpha.1`;
|
|
6126
6126
|
let release = releases.get(key);
|
|
6127
6127
|
if (release === undefined) {
|
|
6128
6128
|
const current = (async () => {
|
|
@@ -6150,7 +6150,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
6150
6150
|
} catch {
|
|
6151
6151
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
6152
6152
|
}
|
|
6153
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
6153
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.15-alpha.1" ? installed : running !== undefined && running.version !== "0.10.15-alpha.1" ? "0.10.15-alpha.1" : undefined;
|
|
6154
6154
|
if (updatedTo === undefined) throw error;
|
|
6155
6155
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
6156
6156
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -6,7 +6,7 @@ import { OVERLAY_ACTIVE_ROW_MARKER, TerminalTextSanitizer, getGlobalTheme, getMa
|
|
|
6
6
|
import { stripJsonComments } from "./p1-shared-RG5I5LJ6.js";
|
|
7
7
|
import { nativeProcessCreationTime, nativeTerminateProcess, processStartTokenAsync, processStartTokenNow, readProcessCreationTime, takeTakeoverMutexAsync, windowsStartTokenForCreationTime } from "./p1b-elig-TVB5CBLL.js";
|
|
8
8
|
import { windowsPowerShellEnvironment } from "./p1-elig-shell-WWRO3L2R.js";
|
|
9
|
-
import { ChatRowView, DialogView, FileAuthStorageBackend, InMemoryAuthStorageBackend, OptionListView, PreviewBlockRenderer, QuestionnairePropsAdapter, asyncAuthStorageReads, ensureSessionTempDirAsync, ensureTempDirAsync, estimateProjectedContextTokens, gen, killProcessTree, normalizeDerivedSessionEntries, require_semver, resolveSessionTempDirPath, selectChatRowProps, selectDialogProps, selectMultiSelectProps, selectOptionListProps, selectPreviewPaneProps, selectSubmitPickerProps, selectTabBarProps } from "./startup-0-2-
|
|
9
|
+
import { ChatRowView, DialogView, FileAuthStorageBackend, InMemoryAuthStorageBackend, OptionListView, PreviewBlockRenderer, QuestionnairePropsAdapter, asyncAuthStorageReads, ensureSessionTempDirAsync, ensureTempDirAsync, estimateProjectedContextTokens, gen, killProcessTree, normalizeDerivedSessionEntries, require_semver, resolveSessionTempDirPath, selectChatRowProps, selectDialogProps, selectMultiSelectProps, selectOptionListProps, selectPreviewPaneProps, selectSubmitPickerProps, selectTabBarProps } from "./startup-0-2-2HUMCPKX.js";
|
|
10
10
|
import { PersistedOutputFile, PreviewPane, applyContextEdit, atomicWorkingGlyph, buildSessionProjection, capPersistedText, clearConfigValueCache, collectContextEdits, containsConfiguredValue, createCodemodeToolDefinition, getConfigValueEnvVarNames, getHomeDir, isCommandConfigValue, isConfigValueConfigured, isLegacyEnvVarNameConfigValue, loadCodemodeRenderers, processImage, require_Alias, require_Scalar, require_compare, require_compare_build, require_parse, resolveConfigValueAsync, resolveConfigValueOrThrowAsync, resolveHeadersOrThrowAsync, resolveWorktreeSnapshotSettings, runWorkspaceProcess, sessionEntryToContextMessages, sha256Hex, splitFallbackModel, stepProcessWatcher, stepStartingWatcher, waitFor } from "./startup-0-3-4ZYBYQNM.js";
|
|
11
11
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
12
12
|
import { access, chmod, lstat, mkdir, open, readFile, rm } from "node:fs/promises";
|
|
@@ -6120,7 +6120,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
6120
6120
|
return (async () => {
|
|
6121
6121
|
const root = new URL("../", import.meta.url);
|
|
6122
6122
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
6123
|
-
const key = `${root.href}#0.10.
|
|
6123
|
+
const key = `${root.href}#0.10.15-alpha.1`;
|
|
6124
6124
|
let release = releases.get(key);
|
|
6125
6125
|
if (release === undefined) {
|
|
6126
6126
|
const current = (async () => {
|
|
@@ -6148,7 +6148,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
6148
6148
|
} catch {
|
|
6149
6149
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
6150
6150
|
}
|
|
6151
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
6151
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.15-alpha.1" ? installed : running !== undefined && running.version !== "0.10.15-alpha.1" ? "0.10.15-alpha.1" : undefined;
|
|
6152
6152
|
if (updatedTo === undefined) throw error;
|
|
6153
6153
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
6154
6154
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -4,7 +4,7 @@ import { BUILTIN_PATH_PREFIX, BlueprintInvalidError, COMMAND_DETAIL_TAIL_BYTES,
|
|
|
4
4
|
import { NestedGitignore, NoUsableModelError, QuestionParamsSchema, STORAGE_JOIN_COMMAND, TaskToolError, WorkspaceBindingError, WorkspaceConfigError, WorkspaceDriftError, WorkspaceGitError, WorkspaceRestoreError, WorkspaceSandboxError, WorkspaceSnapshotError, WorkspaceTimeoutError, addResource, attachCleanupCause, cancelPausedOwnerTasks, computeFocusedOptionHasPreview, createAccumulator, createProviderAlias, deferRestorePhase, formatAnswerScalar, getBuiltinExtensionEntryLabel, getCommandEnv, getLoaderAgentDirs, getToolEnv, getToolPath, getVirtualModules, gitInstallCommand, gitignoreMatcher, hasLazyBuiltinSpec, isContentFilterRefusal, isNativeBuiltinExtensionPath, isOfflineModeEnabled, isProviderCredentialRejection, isRetryableModelFailure, isRetryableSameModelFailure, isSafetyRefusalFailure, isSourceBuiltinExtensionPath, isUnrecognizedModelFailure, isWorkspaceBindingError, isWorkspaceError, isWorkspaceGitError, isWorkspaceRestoreError, isWorkspaceSnapshotError, loadVirtualModules, normalizeModelFailureSignal, normalizeModelProvider, normalizeProviderKeys, noteRestoreFetch, prewarmModelApi, readInlineCaret, readInlineDraft, registerLazyBuiltin, requestedThinkingLevelForModelSwitch, require_int as require_int$1, require_int$1 as require_int, require_log, require_re, require_timestamp, require_toJS, require_trim_comparator_whitespace, require_util_flow_indent_check, require_util_map_includes, require_visit, resolveResourcePath, routeKey, runCallback, sessionLifecycleCreation, settingsWriteOwner, skillUri, startupRegistrationTokens, subagentsLazyBuiltinSpec, timeRestorePhase, toResolvedPaths, trackAdmittedAgentTask, trackTranspileCacheWrite, unreadablePathError, unwritablePathError, waitResultTail, withInlineDraft } from "./startup-0-1-M6OWAYHH.js";
|
|
5
5
|
import { TerminalTextSanitizer, graphemeAt, keyHint, loadThemeFromContent, resolveColorMode, singleLineDisplayText, terminalDisplayText } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { failureDebugFields, redactUrlCredentials, releaseLock, renameReplacingAsync, renameWithRetry, reportDebugAsync, takeTakeoverMutexAsync } from "./p1b-elig-TVB5CBLL.js";
|
|
7
|
-
import { LONG_STREAM_CUT_ADVICE, ModelConfig, ResumePreconditionError, TaskSupervisor, assertSessionOpen, assertWorkspace, automaticWaitBudgetMs, buildFallbackModel, buildQuestionnaireResponse, buildToolResult, classifyRepository, findSourceInfoForPath, getCallableTools, getDefaultSourceInfoForPath, getShellConfigAsync, getShellEnvAsync, importAfterEvaluation, installHostModuleBridge, isLongStreamCut, isWorkspace, nextRetryDecision, observeAccountCatalog, prepareSourceEntries, prepareSourceEntry, recordProviderSuccess, recordedRepo, reduce, registerSourceBuiltinLoad, repeatsLongStreamCut, require_Node, require_anchors, require_directives, require_semver as require_semver$1, runCommand, runCommandCapture, runCommandSync, runWithConcurrency, sessionGenerationClosing, sessionLifetime, summarizeQuestions, taskOwnTranscriptEntries, trackSessionWork, transformTemplate, validateQuestionnaire, withDiscoveredModels, withPersonalizedCatalog, withRemoteCatalog } from "./startup-0-2-
|
|
7
|
+
import { LONG_STREAM_CUT_ADVICE, ModelConfig, ResumePreconditionError, TaskSupervisor, assertSessionOpen, assertWorkspace, automaticWaitBudgetMs, buildFallbackModel, buildQuestionnaireResponse, buildToolResult, classifyRepository, findSourceInfoForPath, getCallableTools, getDefaultSourceInfoForPath, getShellConfigAsync, getShellEnvAsync, importAfterEvaluation, installHostModuleBridge, isLongStreamCut, isWorkspace, nextRetryDecision, observeAccountCatalog, prepareSourceEntries, prepareSourceEntry, recordProviderSuccess, recordedRepo, reduce, registerSourceBuiltinLoad, repeatsLongStreamCut, require_Node, require_anchors, require_directives, require_semver as require_semver$1, runCommand, runCommandCapture, runCommandSync, runWithConcurrency, sessionGenerationClosing, sessionLifetime, summarizeQuestions, taskOwnTranscriptEntries, trackSessionWork, transformTemplate, validateQuestionnaire, withDiscoveredModels, withPersonalizedCatalog, withRemoteCatalog } from "./startup-0-2-2HUMCPKX.js";
|
|
8
8
|
import { DEFAULT_WORKTREE_SNAPSHOT_SETTINGS, FileModelsStore, InMemoryCodingAgentModelsStore, admitProviderStream, completeUtf8PrefixLength, computeEnvironmentHash, fallbackKey, getBaseDirForScope, getBaseDirsForScope, getConfigValueEnvVarNames, getGitInstallPath, getGitInstallRoot, getHomeDir, getInstalledGitInstallPath, getNpmInstallRoot, isCommandConfigValue, isConfigValueConfigured, llamaExtension, parseGitUrl, require_Alias, require_Scalar, require_compare, require_compare_build, require_inc, require_major, require_minor, require_parse, require_patch, resolveCliModel, resolveConfigValue, resolveFallbackModel as resolveFallbackModel$1, resolveFallbackModelWithoutCredentials, resolveHeadersOrThrow, resolveHeadersOrThrowAsync, resolveManagerPath, resolvePathFromBase, resolveWorktreeSnapshotSettings, sha256Hex as sha256Hex$1, snapshotBlob, splitFallbackModel, waitFor } from "./startup-0-3-4ZYBYQNM.js";
|
|
9
9
|
import { SESSION_HISTORY_PAGE_BYTES } from "./settings-startup-HXQLSUWM.js";
|
|
10
10
|
import { AuthStorage, OutputAccumulator, ReadOnlyAuthStorage, TOOL_BLOCK_LIMITS, ToolBlock, ToolBlockMarkdown, ToolBlockRecords, accountSnapshotVersion, applyAutoloadDisabledNamePatterns, applyAutoloadDisabledPatterns, applyCompactorModelOverride, applyExtension, applyModelOverride, applyModelsJson, applyNamePatterns, applyPatterns, assertRestorePathBudget, assertWorkspaceGitAvailable, buildQuestionnaire, canonicalizeWorktreePathAsync, captureIndexPath, checkoutStoreIdOf, codemode_default, collapseToolBlockLines, composeApiKeyAuth, composeOAuthAuth, configuredApiKey, configuredHeaders, containsAuthConfig, containsCredential, containsCredentialValue, defaultWorktreeSnapshotStoreDir, formatModelLabel, formatModelReferenceLabel, gitOutput, hasGlobPattern, isEnabledByOverrides, isOverridePattern, jsonParser, pathExists as pathExists$1, rawModelHeaders, repositoryIdOf, repositoryIdsOf, require_bool as require_bool$1, require_bool$1 as require_bool, require_clean, require_coerce, require_compare_loose, require_createNode, require_diff, require_eq, require_float as require_float$1, require_float$1 as require_float, require_gt, require_gte, require_lt, require_lte, require_merge, require_neq, require_null, require_prerelease, require_rcompare, require_resolve_block_scalar, require_resolve_flow_scalar, require_rsort, require_sort, require_stringifyString, require_truncate, require_valid as require_valid$1, runWorkspaceGit, sameRemote, sharedRepositoryIdOf, sharedRepositoryIdsOf, splitPatterns, stagingWorktreeName, toLlmContent, toPosixPath as toPosixPath$2 } from "./startup-0-4-ZMJV547D.js";
|
|
@@ -28197,7 +28197,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
28197
28197
|
return (async () => {
|
|
28198
28198
|
const root = new URL("../", import.meta.url);
|
|
28199
28199
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
28200
|
-
const key = `${root.href}#0.10.
|
|
28200
|
+
const key = `${root.href}#0.10.15-alpha.1`;
|
|
28201
28201
|
let release = releases.get(key);
|
|
28202
28202
|
if (release === undefined) {
|
|
28203
28203
|
const current = (async () => {
|
|
@@ -28225,7 +28225,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
28225
28225
|
} catch {
|
|
28226
28226
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
28227
28227
|
}
|
|
28228
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
28228
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.15-alpha.1" ? installed : running !== undefined && running.version !== "0.10.15-alpha.1" ? "0.10.15-alpha.1" : undefined;
|
|
28229
28229
|
if (updatedTo === undefined) throw error;
|
|
28230
28230
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
28231
28231
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -4,7 +4,7 @@ import { CURRENT_SESSION_VERSION, addHistoryUsageToTotals, addUsageToTotals, att
|
|
|
4
4
|
import { adoptCommandSession, inlineToolOutput, withoutCarriedToolOutput } from "./startup-0-1-M6OWAYHH.js";
|
|
5
5
|
import { getThemeByName, initTheme, keepStartupDialogDraft, stopThemeWatcher, theme, withEarlyInputHeldForStartupDialog } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { failureDebugFields, reportDebugAsync } from "./p1b-elig-TVB5CBLL.js";
|
|
7
|
-
import { calculateContextTokens, estimateDirectBranchContextTokens, estimateProjectedContextTokens, ownedSessionManagerStores } from "./startup-0-2-
|
|
7
|
+
import { calculateContextTokens, estimateDirectBranchContextTokens, estimateProjectedContextTokens, ownedSessionManagerStores } from "./startup-0-2-2HUMCPKX.js";
|
|
8
8
|
import { assertSessionNotOpenElsewhere, extensionWorkOpen, getLatestCompactionBoundaryEntry, resumeLookupError, resumeNotFoundError, withResumeLookupDeadline } from "./startup-0-3-4ZYBYQNM.js";
|
|
9
9
|
import { SESSION_HISTORY_SCAN_ENTRIES, SessionEntryError } from "./settings-startup-HXQLSUWM.js";
|
|
10
10
|
import { assertValidSessionId, lastAssistantAnswer, readAhead, worktreeSnapshotPages } from "./startup-8-0-34CBHPZH.js";
|
|
@@ -1130,7 +1130,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
1130
1130
|
return (async () => {
|
|
1131
1131
|
const root = new URL("../", import.meta.url);
|
|
1132
1132
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
1133
|
-
const key = `${root.href}#0.10.
|
|
1133
|
+
const key = `${root.href}#0.10.15-alpha.1`;
|
|
1134
1134
|
let release = releases.get(key);
|
|
1135
1135
|
if (release === undefined) {
|
|
1136
1136
|
const current = (async () => {
|
|
@@ -1158,7 +1158,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
1158
1158
|
} catch {
|
|
1159
1159
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
1160
1160
|
}
|
|
1161
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
1161
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.15-alpha.1" ? installed : running !== undefined && running.version !== "0.10.15-alpha.1" ? "0.10.15-alpha.1" : undefined;
|
|
1162
1162
|
if (updatedTo === undefined) throw error;
|
|
1163
1163
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
1164
1164
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -4,7 +4,7 @@ import { BUILTIN_PATH_PREFIX, HostInputBridge, STALE_EXTENSION_CONTEXT_MESSAGE,
|
|
|
4
4
|
import { bindRegistrationCallbacks, childPresentationInput, collectExtensionPackageWarnings, collectFlags, collectMarkdownTransformers, collectPackageInstallWarnings, collectRegisteredTools, copyRegistrations, createInvocationBindings, createLazyBuiltinFactory, extensionSource, filterSupersededHerdrIntegrationPaths, findEntryRenderer, findMessageRenderer, findToolDefinition, getBuiltinExtensionEntryLabel, getLazyBuiltinSpec, hasExtensionHandlers, hasTaskPromptHost, heldPromptInput, isHeldPromptInput, isPresentationHostInput, lifecycleScopeForOwner, mergeExtensionWarnings, mergeResourcePaths, originalRegistrationCallback, prepareRegistrationCallbacks, presentationHostInput, reconcileRegistration, registrationFields, resolveInvocationRuntime, resolveRegisteredCommands, resolveResourcePath, sessionLifecycleCreation, sessionLifecycleScopes } from "./startup-0-1-M6OWAYHH.js";
|
|
5
5
|
import { endTimingSpan, keybindingIdentity, resetTimings, startTimingSpan } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { getProjectTrustOptionsAsync, hasProjectTrustInputsAsync } from "./p1b-elig-TVB5CBLL.js";
|
|
7
|
-
import { applyExtensionSourceInfo, discoverAppendSystemPromptFile, discoverSystemPromptFile, trackSessionWork } from "./startup-0-2-
|
|
7
|
+
import { applyExtensionSourceInfo, discoverAppendSystemPromptFile, discoverSystemPromptFile, trackSessionWork } from "./startup-0-2-2HUMCPKX.js";
|
|
8
8
|
import { assertExtensionAction, bindExtensionWork, drainExtensionWork, extensionSessionSignal, extensionWorkOpen, finishLlamaAfterQuit, llamaExtension, resumeExtensionWork, revokeExtensionAuthority, runExtensionCleanup, sealExtensionWork } from "./startup-0-3-4ZYBYQNM.js";
|
|
9
9
|
import { DefaultPackageManager, buildSkillCatalog, buildSkillCatalogAsync, buildSkillCatalogWith, clearExtensionCache, emitProjectTrustEvent, emptySkillCatalog, ensureDefaultLazyBuiltinsRegistered, loadExtensionModule, loadPromptsStageAsync, loadSkillsStageAsync, loadThemesStageAsync, normalizeBuildSystemPromptOptions, prepareExtensionEntries, preparePromptsCommitAsync, prepareSkillsCommitAsync, prepareThemesCommitAsync, presentQuestionnaire, runBeforeAgentStartHandlers, runBeforeProviderRequestHandlers, runBoundaryHandlers, runContextHandlers, runGenericHandlers, runInputHandlers, runMessageEndHandlers, runResourcesDiscoverHandlers, runSessionRecoveryHandlers, runToolCallHandlers, runToolResultHandlers, runUserBashHandlers, snapshotEventHandlers, updatePromptsFromPathsAsync, updateSkillsFromPathsAsync, updateThemesFromPathsAsync, useExtensionCacheCwd, withDefaultBuiltinExtensions } from "./startup-0-5-YDW47QX6.js";
|
|
10
10
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
@@ -10,7 +10,7 @@ import { SessionConflictError, SessionNotFoundError } from "../core/storage/sess
|
|
|
10
10
|
import { OwnerTaskStore, bindOwnerTaskStore, deliverToLaunchingSession, forgetChildDelivery, getLatestCompactionBoundaryEntry, processImage, wrapRegisteredTools } from "./startup-0-3-4ZYBYQNM.js";
|
|
11
11
|
import { AgentTaskHost, TASK_HEARTBEAT_MESSAGE_TYPE, TaskCompletionOutbox, abortTurnRetries, activatesOnRegistration, applyToolLoadout, buildSessionMemoryGuideline, buildSystemPromptSections, cancelFirstPromptModel, commandOutputExcerpt, diffSystemPromptSections, expandPromptTemplate, expandSkillCommand, getSkillCatalog, isMcpToolName, isRegisteredToolAllowed, isRetiredToolName, isToolActivatable, isToolDeclarationHidden, namesSessionFolderInGuidelines, normalizeBuildSystemPromptOptions, projectToolLoadout, releasedWaitingOn, retryIsCurrent, selectedToolNames, taskCompletionMessage, workspaceSandboxDenial } from "./startup-0-5-YDW47QX6.js";
|
|
12
12
|
import { UNORDERED_ADMISSION, buildToolStatusReport, createSessionHistoryToolDefinition, currentResourceAdmission, deferCommandTurn, describeToolSelection, dropDeferredCommandTurn, forkToolDeclarations, getGitStatus, getGitStatusAsync, hasTransformedPrompt, isInsideInputHook, joinCommandSend, joinCommandTurn, nextTransformedPromptRecord, noteCommandAnswer, projectTransformedPrompt, rejectMalformedToolArguments, reserveQueuedInputAdmission, resolveToolConcurrency, runCallback, runCommandHandler, runInputHook, scheduleToolExecution, sessionBlobOutput, settingsWriteOwner, toolChangeSupport, transformedPromptOwner, withOwnResourceAdmission } from "./startup-0-1-M6OWAYHH.js";
|
|
13
|
-
import { MessageAdmissionBoundary, assertSessionOpen, createToolDefinitionFromAgentTool, getCallableTools, isSelectedNativeMcpTool, loadTaskOwnTranscriptEntries, resolveSessionTempDirPath, sessionGenerationClosing, sessionLifetime, sessionQuitSignal, taskTranscriptSource, trackSessionWork } from "./startup-0-2-
|
|
13
|
+
import { MessageAdmissionBoundary, assertSessionOpen, createToolDefinitionFromAgentTool, getCallableTools, isSelectedNativeMcpTool, loadTaskOwnTranscriptEntries, resolveSessionTempDirPath, sessionGenerationClosing, sessionLifetime, sessionQuitSignal, taskTranscriptSource, trackSessionWork } from "./startup-0-2-2HUMCPKX.js";
|
|
14
14
|
import { HistoryTaskRegistry, applyToolModifiers, createHistoryRouter, createLocalBashOperations, createLocalPowerShellOperations, createToolDefinitionsFor, defaultToolSelectionFor, notifyAgentPanelSourceHubRebound, shellCommandPrefixFor, withWorktreeRootMappings } from "./startup-8-1-LZFXSD3Z.js";
|
|
15
15
|
import { ExtensionRunner, getExtensionRuntimeEventBus } from "./startup-14-0-MLX36RBG.js";
|
|
16
16
|
import { ModelRegistry } from "../core/model-registry.js";
|
|
@@ -5,7 +5,7 @@ import { AgentRehydrateError, CacheWarmer, EngineHealthController, RemoteModelCa
|
|
|
5
5
|
import { endTimingSpan, initTheme, printTimings, resetTimings, startEarlyInputCapture, startTimingSpan, stopThemeWatcher, time } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { ProjectTrustStore, hasErrorIdentity, hasProjectTrustInputs, hasProjectTrustInputsAsync, redactCredentialShapes, rehydrateErrorCause, reportDebugAsync, serializeErrorCause } from "./p1b-elig-TVB5CBLL.js";
|
|
7
7
|
import { shouldUseFullscreenTui } from "./p1-elig-shell-WWRO3L2R.js";
|
|
8
|
-
import { MessageAdmissionBoundary, abortSessionWork, acquireProtectedPaths, armSessionQuitStops, assertSessionOpen, buildCompactorMessages, calculateContextTokens, clearNestedToolCalls,
|
|
8
|
+
import { MessageAdmissionBoundary, abortSessionWork, acquireProtectedPaths, armSessionQuitStops, assertSessionOpen, buildCompactorMessages, calculateContextTokens, clearNestedToolCalls, drainSessionReload, drainSessionWork, drainSessionWorkWithin, estimateContextTokens, estimateProjectedContextTokens, estimateTextTokens, estimateTokens, executeNestedToolCall, getCallableTools, getShellEnvAsync, hasCallingSessionWork, hasProcessStorageSelection, hasSessionReload, isPowerShellAvailable, isPowerShellAvailableAsync, isSelectedNativeMcpTool, limitQuitShutdownHandlers, ownedSessionManagerStores, ownedSessionPermits, ownedSessionStores, processSharedStorageSelection, recordNestedToolCalls, registerSessionRetirement, registerSessionWorkOwner, renewSessionWork, requestCompactorOutput, resolveSessionTempDirPath, restoreAnthropicReplayThinkingBlocks, retireSessionReloadGeneration, selectProcessStorage, sessionGenerationClosing, sessionLifetime, setActiveSessionTempId, setCliStorageSelection, shouldCompact, shutdownDeadline, trackSessionReload, trackSessionWork, untilShutdownHandlerDeadline, validateProcessStorageAsync } from "./startup-0-2-2HUMCPKX.js";
|
|
9
9
|
import { ChildTaskWaits, RESUME_CATALOG_TIMEOUT_MS, buildSessionProjection, createChildCommandTaskOwner, createProjectTrustContext, getLatestCompactionBoundaryEntry, ignoredProjectSettingsWarning, prepareSessionOpenMarkers, resolveModelScopeWithDiagnostics, resolveWorktreeSnapshotSettings, resumeFailureMessage, resumeLookupError, scheduleSessionTempCleanup, startInteractiveEngineLiveness, withResumeLookupDeadline } from "./startup-0-3-4ZYBYQNM.js";
|
|
10
10
|
import { SESSION_HISTORY_SCAN_ENTRIES, SessionAlreadyOpenError, SessionEntryError, isRpcRequestAcceptedFailure, isRpcTransportFailure, markRpcTransportFailure, rpcTransportError } from "./settings-startup-HXQLSUWM.js";
|
|
11
11
|
import { JsonlSessionStore, agentSessionPersistenceFailureMethods, agentSessionReleaseMethods, clearPersistenceFailure, enableReleaseWhenIdle, getLatestSessionSummary, notReopenable, noteMessageSaved, onSessionClose, parseReleaseWhenIdle, recordPersistenceFailure, repeatsShownUnsavedInput, rethrowUnlessReportedPersistenceFailure, sessionClosing } from "./startup-8-0-34CBHPZH.js";
|
|
@@ -1417,20 +1417,9 @@ function overConfiguredLimit(text, maxTokens) {
|
|
|
1417
1417
|
const tokens = estimateTextTokens(text);
|
|
1418
1418
|
return tokens > maxTokens ? `output too long (${tokens} > ${maxTokens} tokens)` : void 0;
|
|
1419
1419
|
}
|
|
1420
|
-
function oversizedCompactedText(session, text) {
|
|
1421
|
-
const model = session.model;
|
|
1422
|
-
const trigger = model ? model.contextWindow - session.settingsManager.getCompactionSettings(model).reserveTokens : 0;
|
|
1423
|
-
const cap = compactedOutputTokenCap(trigger);
|
|
1424
|
-
const tokens = estimateTextTokens(text);
|
|
1425
|
-
return tokens > cap ? `output too long (${tokens} > ${cap} tokens)` : void 0;
|
|
1426
|
-
}
|
|
1427
|
-
function overflowingBoundary(session, planned) {
|
|
1428
|
-
const after = contextAfterBoundary(session, planned);
|
|
1429
|
-
return after.trigger !== void 0 && after.tokens >= after.trigger ? `output too long for the context (${after.tokens} >= ${after.trigger} tokens)` : void 0;
|
|
1430
|
-
}
|
|
1431
1420
|
/**
|
|
1432
|
-
* Estimated tokens of the context right after a boundary, and the automatic trigger: the system prompt plus the
|
|
1433
|
-
* boundary message
|
|
1421
|
+
* Estimated tokens of the context right after a clear boundary, and the automatic trigger: the system prompt plus the
|
|
1422
|
+
* boundary message. The trigger is undefined for a model with no known context window.
|
|
1434
1423
|
*/
|
|
1435
1424
|
function contextAfterBoundary(session, planned) {
|
|
1436
1425
|
const boundary = buildBoundaryText({
|
|
@@ -1438,11 +1427,7 @@ function contextAfterBoundary(session, planned) {
|
|
|
1438
1427
|
tokensBefore: planned.tokensBefore,
|
|
1439
1428
|
entriesBefore: 0,
|
|
1440
1429
|
access: planned.access,
|
|
1441
|
-
...planned.instructions ? { instructions: planned.instructions } : {}
|
|
1442
|
-
...planned.compacted ? { compacted: {
|
|
1443
|
-
text: planned.compacted.text,
|
|
1444
|
-
source: planned.compacted.model ?? "an extension"
|
|
1445
|
-
} } : {}
|
|
1430
|
+
...planned.instructions ? { instructions: planned.instructions } : {}
|
|
1446
1431
|
}, 0);
|
|
1447
1432
|
const tokens = planned.systemTokens + estimateTextTokens(boundary);
|
|
1448
1433
|
const model = session.model;
|
|
@@ -1529,15 +1514,6 @@ async function planVerbatimCompaction(options, pathEntries) {
|
|
|
1529
1514
|
text: hookResult.compactedText,
|
|
1530
1515
|
backend: "extension"
|
|
1531
1516
|
};
|
|
1532
|
-
const oversized = oversizedCompactedText(this, compacted.text) ?? overflowingBoundary(this, {
|
|
1533
|
-
...base,
|
|
1534
|
-
compacted
|
|
1535
|
-
});
|
|
1536
|
-
if (oversized !== void 0) return {
|
|
1537
|
-
...base,
|
|
1538
|
-
fallbackReason: `extension failed: ${oversized}`,
|
|
1539
|
-
fromExtension: false
|
|
1540
|
-
};
|
|
1541
1517
|
options.onCompactionSource?.(true);
|
|
1542
1518
|
return {
|
|
1543
1519
|
...base,
|
|
@@ -9176,7 +9152,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
9176
9152
|
return (async () => {
|
|
9177
9153
|
const root = new URL("../", import.meta.url);
|
|
9178
9154
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9179
|
-
const key = `${root.href}#0.10.
|
|
9155
|
+
const key = `${root.href}#0.10.15-alpha.1`;
|
|
9180
9156
|
let release = releases.get(key);
|
|
9181
9157
|
if (release === undefined) {
|
|
9182
9158
|
const current = (async () => {
|
|
@@ -9204,7 +9180,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
9204
9180
|
} catch {
|
|
9205
9181
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
9206
9182
|
}
|
|
9207
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
9183
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.15-alpha.1" ? installed : running !== undefined && running.version !== "0.10.15-alpha.1" ? "0.10.15-alpha.1" : undefined;
|
|
9208
9184
|
if (updatedTo === undefined) throw error;
|
|
9209
9185
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
9210
9186
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|