@bastani/atomic 0.10.13-alpha.1 → 0.10.14-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 +22 -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 +1 -1
- package/dist/_shared/sdk-B5LEWGGI.js +3 -3
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/{startup-0-0-DZAYBBTI.js → startup-0-0-Q3MWKUK4.js} +83 -4
- package/dist/_shared/startup-0-0-Q3MWKUK4.js.map +1 -0
- package/dist/_shared/startup-0-1-M6OWAYHH.js +3 -3
- package/dist/_shared/startup-0-2-5QHPCEON.js +3 -3
- 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 +13 -10
- package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
- package/dist/_shared/startup-12-0-55AAXBJZ.js +1 -1
- 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 +3 -3
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +61 -48
- package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +3 -3
- package/dist/_shared/storage-status-K7PX2RXA.js +2 -2
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +1 -1
- 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/args.js +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 +2 -2
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +1 -1
- 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/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.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +1 -1
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +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.code.js +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.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 +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 +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.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +3 -3
- 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/bash-pty-native.d.ts +1 -1
- package/dist/core/tools/bash.d.ts +1 -0
- package/dist/core/tools/history-tasks.d.ts +5 -4
- package/dist/core/tools/read-url.code.js +1 -1
- 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 +3 -2
- package/dist/core/worktree-snapshot/blob-store.js +11 -6
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- package/dist/core/worktree-snapshot/errors.code.js +1 -1
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +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 +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.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.js +1 -1
- 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/package-manager-cli.code.js +3 -3
- 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/3.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.md +28 -15
- package/docs/changelog.mdx +8 -0
- package/docs/sessions.md +73 -25
- package/docs/tools.md +46 -4
- package/package.json +8 -8
- package/dist/_shared/startup-0-0-DZAYBBTI.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { createSessionCwdMatcherAsync, getAgentDir, loadOnDemand, resolvePath } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { CURRENT_SESSION_VERSION, addHistoryUsageToTotals, addUsageToTotals, attachCleanupCause, bindChatReceipt, claimSession, classifiedWorkflowMetadata, createUsageTotals, formatMissingSessionCwdPrompt, getMissingSessionCwdOptions, observeHistoryLoads, prepareSessionClaim, saveChatRecord, trackChatRecordSave } from "./startup-0-0-
|
|
3
|
+
import { CURRENT_SESSION_VERSION, addHistoryUsageToTotals, addUsageToTotals, attachCleanupCause, bindChatReceipt, claimSession, classifiedWorkflowMetadata, createUsageTotals, formatMissingSessionCwdPrompt, getMissingSessionCwdOptions, observeHistoryLoads, prepareSessionClaim, saveChatRecord, trackChatRecordSave } from "./startup-0-0-Q3MWKUK4.js";
|
|
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";
|
|
@@ -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.14-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.14-alpha.1" ? installed : running !== undefined && running.version !== "0.10.14-alpha.1" ? "0.10.14-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}.`, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { asyncScope, captureHerdrEnvironment, claimPaneReporting, noOpUIContext, releasePaneReporting, releaseRetiredPaneReporting, reportPaneActivity, retirePaneReporting, sqliteSessionResumeArgs } from "./startup-0-0-
|
|
3
|
+
import { asyncScope, captureHerdrEnvironment, claimPaneReporting, noOpUIContext, releasePaneReporting, releaseRetiredPaneReporting, reportPaneActivity, retirePaneReporting, sqliteSessionResumeArgs } from "./startup-0-0-Q3MWKUK4.js";
|
|
4
4
|
import { OwnerTaskStore } from "./startup-0-3-4ZYBYQNM.js";
|
|
5
5
|
import { defaultBuiltinExtensions } from "./startup-0-5-YDW47QX6.js";
|
|
6
6
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_TITLE, BUILTIN_PACKAGE_DIR_NAMES, CONFIG_DIR_NAME, canonicalizePathAsync, getAgentDir, isLocalPath, resolvePath, stripBom, updatedInstallError } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { BUILTIN_PATH_PREFIX, HostInputBridge, STALE_EXTENSION_CONTEXT_MESSAGE, copyHostQuestionnaire, createBatchedCanonicalizePathAsync, createEventBus, createSourceInfo, createStagedEventBus, createSyntheticSourceInfo, findLegacyWorkflowFiles, getAllBuiltinPackageLocations, getBuiltinPackageLocations, getMandatoryBuiltinExtensionPaths, getResourcePathKeyAsync, getSyntheticPathSource, hostInputError, isSyntheticPath, isTrustedMandatoryRuntimeTool, markTrustedMandatoryRuntimeExtension, noOpUIContext, raceWithAbortSignal, readPiManifestFile, resourceInternals, yieldToEventLoop, yieldToEventLoopIfSlow } from "./startup-0-0-
|
|
3
|
+
import { BUILTIN_PATH_PREFIX, HostInputBridge, STALE_EXTENSION_CONTEXT_MESSAGE, copyHostQuestionnaire, createBatchedCanonicalizePathAsync, createEventBus, createSourceInfo, createStagedEventBus, createSyntheticSourceInfo, findLegacyWorkflowFiles, getAllBuiltinPackageLocations, getBuiltinPackageLocations, getMandatoryBuiltinExtensionPaths, getResourcePathKeyAsync, getSyntheticPathSource, hostInputError, isSyntheticPath, isTrustedMandatoryRuntimeTool, markTrustedMandatoryRuntimeExtension, noOpUIContext, raceWithAbortSignal, readPiManifestFile, resourceInternals, yieldToEventLoop, yieldToEventLoopIfSlow } from "./startup-0-0-Q3MWKUK4.js";
|
|
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";
|
|
@@ -4,7 +4,7 @@ import { normalizeToolResultImages, redirectOversizedToolResult } from "./startu
|
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { appendFailureWroteNothing, checkedCustomMessage, clearPersistenceFailure, keepRefusedInput, noteMessageSaved, recordPersistenceFailure, rethrowUnlessReportedPersistenceFailure, writesEndWithWriter } from "./startup-8-0-34CBHPZH.js";
|
|
7
|
-
import { AgentSessionBusyError, COMMAND_FOREGROUND_BUDGET_MS, SESSION_HISTORY_TOOL_NAME, TOOL_DEACTIVATION_ENTRY_TYPE, ToolDetachmentError, abandonedToolResult, armToolAbortGraceTimer, assertToolPairingInvariant, awaitBlueprintReady, beginQueuedMessageDelivery, blueprintBuildPending, cancelHeldInput, clearToolAbortGraceTimer, createSyntheticSourceInfo, customMessageExcludesContext, drainAgentMessageQueue, earlierHeldInputs, endQueuedMessageDelivery, finishHeldInput, formatNoModelSelectedMessage, formatUnresolvedModelMessage, hasHeldInput, heldInputView, holdToolAbortGraceWhenObserved, holdToolsUntilBuilt, hostInputError, isMandatoryRuntimeTool, isToolDeactivationEntryData, isTrustedMandatoryRuntimeTool, keepsDroppedQueuedMessages, legacyWorkflowSection, normalizeInterruptAbortMessage, noteQueuedMessagesDropped, noteUserMessageOrigin, parseSlashCommand, priorityHoldCounts, registerHeldInput, releaseTurnPause, settleTurnPause, stopWaiting, toolAbortGraceMs, uniquifyToolCallIds, withToolAbortGrace } from "./startup-0-0-
|
|
7
|
+
import { AgentSessionBusyError, COMMAND_FOREGROUND_BUDGET_MS, SESSION_HISTORY_TOOL_NAME, TOOL_DEACTIVATION_ENTRY_TYPE, ToolDetachmentError, abandonedToolResult, armToolAbortGraceTimer, assertToolPairingInvariant, awaitBlueprintReady, beginQueuedMessageDelivery, blueprintBuildPending, cancelHeldInput, clearToolAbortGraceTimer, createSyntheticSourceInfo, customMessageExcludesContext, drainAgentMessageQueue, earlierHeldInputs, endQueuedMessageDelivery, finishHeldInput, formatNoModelSelectedMessage, formatUnresolvedModelMessage, hasHeldInput, heldInputView, holdToolAbortGraceWhenObserved, holdToolsUntilBuilt, hostInputError, isMandatoryRuntimeTool, isToolDeactivationEntryData, isTrustedMandatoryRuntimeTool, keepsDroppedQueuedMessages, legacyWorkflowSection, normalizeInterruptAbortMessage, noteQueuedMessagesDropped, noteUserMessageOrigin, parseSlashCommand, priorityHoldCounts, registerHeldInput, releaseTurnPause, settleTurnPause, stopWaiting, toolAbortGraceMs, uniquifyToolCallIds, withToolAbortGrace } from "./startup-0-0-Q3MWKUK4.js";
|
|
8
8
|
import { SessionDeletedError } from "./settings-startup-HXQLSUWM.js";
|
|
9
9
|
import { SessionConflictError, SessionNotFoundError } from "../core/storage/session/errors.js";
|
|
10
10
|
import { OwnerTaskStore, bindOwnerTaskStore, deliverToLaunchingSession, forgetChildDelivery, getLatestCompactionBoundaryEntry, processImage, wrapRegisteredTools } from "./startup-0-3-4ZYBYQNM.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME, ENV_DEBUG, ENV_OFFLINE, ENV_SESSION_DIR, ENV_SKIP_VERSION_CHECK, ENV_STARTUP_BENCHMARK, VERSION, canonicalizePathAsync as canonicalizePathAsync$1, getAgentDir, getEnvValue, getPackageDir, inheritsDebugSetting, markLifecycleTiming, onDebugSettingChange, readInteractiveEngineBootstrap, resolvePath, setDebugSetting, setEnvValue, takeInteractiveEngineBootstrapArg } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { CompactionCancelledError, CompactionStateError, CompactorFailure, EngineSessionStats, ExtensionStartupError, HostListenerFailures, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, InteractiveEngineResourceReadinessError, MissingSessionCwdError, NativeModuleUnavailableError, QueuedDeliveryView, STALE_EXTENSION_CONTEXT_MESSAGE, SessionIntercomPolicy, TOOL_RESULTS_SUBDIR, VERBATIM_COMPACTION_STRATEGY, allToolNames, applyBashSessionEnvironment, assertSessionCwdExists, assignMissingToolCallIds, asyncScope, bindChatReceipt, blueprintBuildPending, blueprintBuildSettled, blueprintBuildsRunning, buildBoundaryText, buildBoundaryTextWithLocation, captureHerdrEnvironment, carryDroppedQueuedMessages, chatRecordSavesSettled, cleanupWindowsSelfUpdateQuarantine, completeStartup, createSyntheticSourceInfo, customMessageExcludesContext, deduplicateDiagnostics, deferDeprecationWarnings, endQueuedMessageDelivery, findMissingSessionCwdIssue, findMissingSessionCwdIssueAsync, formatCodexProviderError, formatNoModelSelectedMessage, formatNoModelsAvailableMessage, getBuiltinPackageLocations, getBuiltinPackagePaths, getDefaultCacheRetention, getToolListError, handlePackageCommandParseOutcome, heldInputView, holdToolsUntilOwnerBuilt, hostInputError, hostNoticeForEvent, interactiveQuitOf, isExtensionLoadError, isMandatoryRuntimeTool, isSingleGenericAbortTextContent, isToolModifier, isTrustedMandatoryRuntimeTool, isUnknownModel, loadShownDeprecationNotices, mergeSessionTrustDecisions, modelCallUsage, nativeModuleProblem, nativeModuleUnavailable, noteQueueUpdateDeliveries, noteQueuedMessagesDropped, noteUserMessageOrigin, notifySessionProviderRequestDispatched, observeToolExecutionTiming, parsePackageCommand, pendingProjectResourcesTrusted, projectTrustedBeforeExtensions, recordStartupThinkingLevel, refreshConfig, registerStartupRollback, releaseToolAbortGraceTimers, releaseUnownedPaneRegistration, replacementAbortContent, restoreStdout, retryStatusUpdate, rollbackStartup, sanitizeOpenAIResponsesPayload, saveChatRecord, savedConversationThinkingLevel, scrubPreCompactionAssistantUsage, serializeConversationForCompaction, serializeSessionMutation, sessionIntercomFacade, shareBlueprintBuild, shouldRunFirstTimeSetup, sleep, snapshotBashSessionEnvironment, startEventLoopMonitor, startupCleanupFailureMessage, startupProjectTrust, stopBlueprintBuilds, takeOverStdout, trackChatRecordSave, uniquifyToolCallIds, validateIntercomSessionOptions, waitForEventLoopMonitorReady, warnDeprecation, watchFirstProjectTrustHandler, writeRawStdout } from "./startup-0-0-
|
|
3
|
+
import { CompactionCancelledError, CompactionStateError, CompactorFailure, EngineSessionStats, ExtensionStartupError, HostListenerFailures, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, InteractiveEngineResourceReadinessError, MissingSessionCwdError, NativeModuleUnavailableError, QueuedDeliveryView, STALE_EXTENSION_CONTEXT_MESSAGE, SessionIntercomPolicy, TOOL_RESULTS_SUBDIR, VERBATIM_COMPACTION_STRATEGY, allToolNames, applyBashSessionEnvironment, assertSessionCwdExists, assignMissingToolCallIds, asyncScope, bindChatReceipt, blueprintBuildPending, blueprintBuildSettled, blueprintBuildsRunning, buildBoundaryText, buildBoundaryTextWithLocation, captureHerdrEnvironment, carryDroppedQueuedMessages, chatRecordSavesSettled, cleanupWindowsSelfUpdateQuarantine, completeStartup, createSyntheticSourceInfo, customMessageExcludesContext, deduplicateDiagnostics, deferDeprecationWarnings, endQueuedMessageDelivery, findMissingSessionCwdIssue, findMissingSessionCwdIssueAsync, formatCodexProviderError, formatNoModelSelectedMessage, formatNoModelsAvailableMessage, getBuiltinPackageLocations, getBuiltinPackagePaths, getDefaultCacheRetention, getToolListError, handlePackageCommandParseOutcome, heldInputView, holdToolsUntilOwnerBuilt, hostInputError, hostNoticeForEvent, interactiveQuitOf, isExtensionLoadError, isMandatoryRuntimeTool, isSingleGenericAbortTextContent, isToolModifier, isTrustedMandatoryRuntimeTool, isUnknownModel, loadShownDeprecationNotices, mergeSessionTrustDecisions, modelCallUsage, nativeModuleProblem, nativeModuleUnavailable, noteQueueUpdateDeliveries, noteQueuedMessagesDropped, noteUserMessageOrigin, notifySessionProviderRequestDispatched, observeToolExecutionTiming, parsePackageCommand, pendingProjectResourcesTrusted, projectTrustedBeforeExtensions, recordStartupThinkingLevel, refreshConfig, registerStartupRollback, releaseToolAbortGraceTimers, releaseUnownedPaneRegistration, replacementAbortContent, restoreStdout, retryStatusUpdate, rollbackStartup, sanitizeOpenAIResponsesPayload, saveChatRecord, savedConversationThinkingLevel, scrubPreCompactionAssistantUsage, serializeConversationForCompaction, serializeSessionMutation, sessionIntercomFacade, shareBlueprintBuild, shouldRunFirstTimeSetup, sleep, snapshotBashSessionEnvironment, startEventLoopMonitor, startupCleanupFailureMessage, startupProjectTrust, stopBlueprintBuilds, takeOverStdout, trackChatRecordSave, uniquifyToolCallIds, validateIntercomSessionOptions, waitForEventLoopMonitorReady, warnDeprecation, watchFirstProjectTrustHandler, writeRawStdout } from "./startup-0-0-Q3MWKUK4.js";
|
|
4
4
|
import { AgentRehydrateError, CacheWarmer, EngineHealthController, RemoteModelCatalog, RemoteQueuePause, TRANSPILE_CACHE_WRITE_WAIT_MS, ToolExecutionScheduler, acceptsForkReplay, assertSettingsWrites, captureForkReplayPair, claimInteractiveBind, collectSettingsDiagnostics, convertToLlm, convertToLlmWithForkBoundaries, currentResourceAdmission, deferMessagesInterleavedWithToolBatch, drainProcessStdio, drainWindowsDirectorySecurityReads, forkReplayFilter, getClientIdentity, isForkHeader, isLocalOnlySessionStorage, isTruthyEnvFlag, isVerbatimCompactionMessage, lifecycleScopeForOwner, migrateCompactionModelSettings, normalizeMessageContent, noteCommandTurnMessage, ownedSettingsManagers, parseArgs, prewarmModelApi, printHelp, readPipedStdin, recordClosedStart, recordResumeTimings, repairOrphanToolResults, reportDiagnostics, resolveCompactionModel, serializeWorkspaceError, sessionLifecycleCreation, sessionLifecycleScopes, transpileCacheWritesSettled, unreadableTrustSettingsDiagnostics, withImagesBlocked, withWindowsDirectorySecurityOwner } from "./startup-0-1-M6OWAYHH.js";
|
|
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";
|
|
@@ -9176,7 +9176,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
9176
9176
|
return (async () => {
|
|
9177
9177
|
const root = new URL("../", import.meta.url);
|
|
9178
9178
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9179
|
-
const key = `${root.href}#0.10.
|
|
9179
|
+
const key = `${root.href}#0.10.14-alpha.1`;
|
|
9180
9180
|
let release = releases.get(key);
|
|
9181
9181
|
if (release === undefined) {
|
|
9182
9182
|
const current = (async () => {
|
|
@@ -9204,7 +9204,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
9204
9204
|
} catch {
|
|
9205
9205
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
9206
9206
|
}
|
|
9207
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
9207
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.14-alpha.1" ? installed : running !== undefined && running.version !== "0.10.14-alpha.1" ? "0.10.14-alpha.1" : undefined;
|
|
9208
9208
|
if (updatedTo === undefined) throw error;
|
|
9209
9209
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
9210
9210
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __name } from "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { createModuleRequire, createSessionCwdMatcher, normalizePath, resolvePath } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { CURRENT_SESSION_VERSION, EntryTypeReader, JsonTextChecker, applySessionSummaryEntries, bindChatEpoch, boundedChatRecord, decodeChatRecord, epochHasCreationTime, fileEpochOf, firstChatOrders, getErrnoCode, historySnapshotFor, inheritForkScope, isClassifiedWorkflowSession, legacyFileEpochOf, materializeSessionSummaryMetadata, noteSnapshotGeneration, observeReferenceCut, referenceMetadataRead, registerArchiveLoad, registerForkScope, require_sha256, sha256Hex, summarizeSession, yieldTurn } from "./startup-0-0-
|
|
3
|
+
import { CURRENT_SESSION_VERSION, EntryTypeReader, JsonTextChecker, applySessionSummaryEntries, bindChatEpoch, boundedChatRecord, decodeChatRecord, epochHasCreationTime, fileEpochOf, firstChatOrders, getErrnoCode, historySnapshotFor, inheritForkScope, isClassifiedWorkflowSession, legacyFileEpochOf, materializeSessionSummaryMetadata, noteSnapshotGeneration, observeReferenceCut, referenceMetadataRead, registerArchiveLoad, registerForkScope, require_sha256, sha256Hex, summarizeSession, yieldTurn } from "./startup-0-0-Q3MWKUK4.js";
|
|
4
4
|
import { AgentRehydrateError, AgentReleaseConfigError, SessionKeyDigests, appendFileChatRecords, deleteFileChatRecords, hasFileChatRecords, latestLegacyMessageTime, legacyCompletionTarget, readFileChatOrders, readFileChatRecords, rememberEarlierCompletion, summarizeLegacySession } from "./startup-0-1-M6OWAYHH.js";
|
|
5
5
|
import { agentWakeDispatcher } from "./startup-0-2-5QHPCEON.js";
|
|
6
6
|
import { SESSION_HISTORY_CHUNK_BYTES, SESSION_HISTORY_PAGE_BYTES, SESSION_HISTORY_SCAN_ENTRIES, SessionIdError, entrySizeLimit, matchesSessionIdPrefix, onlySeqs, yieldSessionTurn } from "./settings-startup-HXQLSUWM.js";
|
|
@@ -10256,7 +10256,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
10256
10256
|
return (async () => {
|
|
10257
10257
|
const root = new URL("../", import.meta.url);
|
|
10258
10258
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
10259
|
-
const key = `${root.href}#0.10.
|
|
10259
|
+
const key = `${root.href}#0.10.14-alpha.1`;
|
|
10260
10260
|
let release = releases.get(key);
|
|
10261
10261
|
if (release === undefined) {
|
|
10262
10262
|
const current = (async () => {
|
|
@@ -10284,7 +10284,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
10284
10284
|
} catch {
|
|
10285
10285
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
10286
10286
|
}
|
|
10287
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
10287
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.14-alpha.1" ? installed : running !== undefined && running.version !== "0.10.14-alpha.1" ? "0.10.14-alpha.1" : undefined;
|
|
10288
10288
|
if (updatedTo === undefined) throw error;
|
|
10289
10289
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
10290
10290
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __name } from "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME, BUILTIN_PACKAGE_DIR_NAMES, CONFIG_DIR_NAME, ENV_CLEAR_ON_SHRINK, ENV_HARDWARE_CURSOR, INTERACTIVE_ENGINE_BOOTSTRAP_FLAG, addHostStorageAdapter, canonicalizePath as canonicalizePath$1, createChildProcessEnvironment, flushPersistentCompileCache, formatPathRelativeToCwdOrAbsolute, getAgentConfigPaths, getAgentDir, getAgentDirs, getBinDir, getBlueprintActionsDir, getCwdRelativePath, getEnvValue, getGlobalBlueprintPath, getHomeDir, getProjectBlueprintPath, getProjectConfigPaths, getReadmePath, hostStorageAdapter, isBunBinary, isBunRuntime, isChildProcessExitStatusUnknownError, isLocalPath, markLifecycleTiming, normalizePath, removeOwnedInteractiveEngineBootstrapAsync, resolvePath, shortenHomePath, splitBom, stripBom, waitForChildProcess, writeInteractiveEngineBootstrapAsync } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, COMMAND_FOREGROUND_BUDGET_MS, CompactionConfigError, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, EditInputError, EditMatchError, EditTargetError, FileToolAbortedError, HostListenerFailures, LONG_LIVED_COMMANDS, Minimatch, RESTART_CANCELLED_MESSAGE, STALE_EXTENSION_CONTEXT_MESSAGE, ShellTimeoutError, SqliteSelectorConnection, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, TASK_MARKS, TaskMessageError, TaskMessageTimeoutError, WriteSelectorError, activeToolExecutionStarts, allToolNames, announceBlueprintBuildWaiting, applyBashSessionEnvironment, asyncScope, attachJsonlLineReader, attachLineReader, bindSavedTaskOrigins, blueprintBuildShared, blueprintDigest, canonicalEventBusFor, chatPosition, clearAssignmentIfClosed, clearLockHolder, clearLockHolderAsync, convertBufferWithMarkit, convertFileWithMarkit, createGitEnvironment, defaultToolNamesFor, defineTool, detectSupportedImageMimeTypeFromFile, displayTodoId, entryLines, expandSearchUrl, experimentalToolSamplingProperty, filterSearchOutputByLineRange, formatReadLineRange as formatReadLineRange$1, formatSelectedLines, formatSize, formatTimeoutSeconds as formatTimeoutSeconds$1, formatTodoId, frozenClocks, getManifestFromPackageJson, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolListError, handOverBuildTimings, holdDeprecationWarnings, holdToolsUntilBuilt, hostInputError, invalidArgText, invalidateNativeSearchCache, isBlueprintError, isGitProvisionError, isGitUnavailableError, isPathInside, isReadResourceSelector, isReadableUrlPath, isTodoClosed, isToolModifier, keptTaskHint, linkPath, literalPathLike, loadNativeSearchBinding, mergeReadRanges, nativeModuleProblem, normalizePathLikeInput, normalizeTodoId, noteSavedSeq, originalHistoryNote, prepareLockTakeover, projectTrustHandlerRegistered, projectTrustedBeforeExtensions, readLedger, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, registerCanonicalEventBus, releaseDeprecationWarnings, renderBlueprintContext, renderToolPath, replaceTabs, reportContained, repositoryKey, resolvePhysicalPathAsync, rootKey, savedReadLines, scopedBackgroundTasks, searchPosition, selectExactReadRanges, selectReadRanges, serializeJsonLine, settingsFileNoticeKey, settingsInternals, shortenPath, sleep, sliceHead, snapshotBashSessionEnvironment, sortTodos, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, startShellDeadline, startToolTimer, str, stringEntries, takeOverDeadHolder, takeOverDeadHolderAsync, takeQueuedDeliveryChange, taskResumer, timestamp, toolTimerText, transcriptHeaderLines, truncateHead, truncateLine, updateLedger, validateTodoId, warnDeprecation, withFileMutationQueue, withResolvingFileMutationQueue, workspaceKey } from "./startup-0-0-
|
|
3
|
+
import { BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, COMMAND_FOREGROUND_BUDGET_MS, CompactionConfigError, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, EditInputError, EditMatchError, EditTargetError, FileToolAbortedError, HostListenerFailures, LONG_LIVED_COMMANDS, Minimatch, RESTART_CANCELLED_MESSAGE, STALE_EXTENSION_CONTEXT_MESSAGE, ShellTimeoutError, SqliteSelectorConnection, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, TASK_MARKS, TaskMessageError, TaskMessageTimeoutError, WriteSelectorError, activeToolExecutionStarts, allToolNames, announceBlueprintBuildWaiting, applyBashSessionEnvironment, asyncScope, attachJsonlLineReader, attachLineReader, bindSavedTaskOrigins, blueprintBuildShared, blueprintDigest, canonicalEventBusFor, chatPosition, clearAssignmentIfClosed, clearLockHolder, clearLockHolderAsync, convertBufferWithMarkit, convertFileWithMarkit, createGitEnvironment, defaultToolNamesFor, defineTool, detectSupportedImageMimeTypeFromFile, displayTodoId, entryLines, expandSearchUrl, experimentalToolSamplingProperty, filterSearchOutputByLineRange, formatReadLineRange as formatReadLineRange$1, formatSelectedLines, formatSize, formatTimeoutSeconds as formatTimeoutSeconds$1, formatTodoId, frozenClocks, getManifestFromPackageJson, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolListError, handOverBuildTimings, holdDeprecationWarnings, holdToolsUntilBuilt, hostInputError, invalidArgText, invalidateNativeSearchCache, isBlueprintError, isGitProvisionError, isGitUnavailableError, isPathInside, isPlainObject as isPlainObject$1, isReadResourceSelector, isReadableUrlPath, isTodoClosed, isToolModifier, isValidBudgetMs, keptTaskHint, linkPath, literalPathLike, loadNativeSearchBinding, mergeReadRanges, nativeModuleProblem, normalizePathLikeInput, normalizeTodoId, normalizeWaitPolicy, noteSavedSeq, originalHistoryNote, prepareLockTakeover, prepareWaitableToolInput, projectTrustHandlerRegistered, projectTrustedBeforeExtensions, readLedger, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, registerCanonicalEventBus, releaseDeprecationWarnings, renderBlueprintContext, renderToolPath, replaceTabs, reportContained, repositoryKey, resolvePhysicalPathAsync, rootKey, savedReadLines, scopedBackgroundTasks, searchPosition, selectExactReadRanges, selectReadRanges, serializeJsonLine, settingsFileNoticeKey, settingsInternals, shortenPath, sleep, sliceHead, snapshotBashSessionEnvironment, sortTodos, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, startShellDeadline, startToolTimer, str, stringEntries, takeOverDeadHolder, takeOverDeadHolderAsync, takeQueuedDeliveryChange, taskResumer, timestamp, toolTimerText, transcriptHeaderLines, truncateHead, truncateLine, updateLedger, validateTodoId, warnDeprecation, withFileMutationQueue, withResolvingFileMutationQueue, workspaceKey } from "./startup-0-0-Q3MWKUK4.js";
|
|
4
4
|
import { EMPTY_OUTPUT_TEXT, HistorySearchPositions, MAX_INDEXED_ENTRY_CHARS, ResumeTimingsRecorder, SEARCH_PART_CHARS, SessionStorageSelectionSchema, TaskElapsedClocks, TaskToolError, WorkspaceDriftError, WorkspaceRestoreError, WorkspaceSnapshotError, bindTaskClock, bindTaskClockSource, buildDirectoryTree, buildDirectoryTreeFromOperations, cancelReceiptSentence, captureRegistrationInvocation, compareCreated, compareFrozen, conflictEntries, convertToLlm, createBranchSummaryMessage, createCustomMessage, diffLines, ensureTool, execCommand, findWorkspaceError, formatResumeTimings, invocationExtension, invocationRuntime, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspaceSnapshotError, lifecycleScopeForOwner, normalizeAzureSettings, openEventSubscription, originalRegistrationCallback, ownedSettingsManagers, parseArgs, parseConflictBytes, parseInteractiveEngineMessage, parseSkillUri, presentTaskError, prewarmModelApi, readConflictUrl, readLocalFileChunks, recordBlueprintStep, recordResumeTimings, recordSettingsWrite, refreshConflictFile, registerConflictBlocks, registerFactoryStartupHandler, renderTodoCall, renderTodoResult, resolveInstalledGit, resolveInvocationRuntime, selectReadLinesFromChunks, selectReadLinesFromList, serializeInteractiveEngineFrame, serializeTodoForAgent, serializeTodoListForAgent, sessionPosition, settingsWriteOwner, splitSearchTextParts, startupSourceId, taskClockOf, taskClockRunning, timeCheckoutRestore, unpackIds, unreadablePathError, validateEventSource, validateSubscriptionAdmission, waitResultTail, waitStatus, withoutSearchPosition, writeRenderers } from "./startup-0-1-M6OWAYHH.js";
|
|
5
5
|
import { CodeHighlighter, FS_WATCH_RETRY_DELAY_MS, applyEarlyInputChunk, closeWatcher, getLanguageFromPath, graphemeAt, highlightCode, isSafeFsWatchPathError, keepStartupDialogDraft, migrateKeybindingsConfig, parenthesizedKeyHint, recordTimingLines, sanitizeTerminalText, singleLineDisplayText, slashCommandHint, terminalDisplayText, theme, watchWithErrorHandlerAsync, withEarlyInputHeldForStartupDialog } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { parseJsonFileContent } from "./p1-shared-RG5I5LJ6.js";
|
|
@@ -12298,14 +12298,15 @@ const bashSchema = Type$1.Unsafe({
|
|
|
12298
12298
|
},
|
|
12299
12299
|
required: []
|
|
12300
12300
|
});
|
|
12301
|
-
const
|
|
12301
|
+
const shellOptionalCallKeys = Object.keys(bashBaseSchema.properties).filter((key) => key !== "command");
|
|
12302
12302
|
function prepareShellInput(args) {
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
|
|
12303
|
+
return prepareWaitableToolInput(args, {
|
|
12304
|
+
requiredKey: "command",
|
|
12305
|
+
optionalCallKeys: shellOptionalCallKeys,
|
|
12306
|
+
waitLabel: "shell wait",
|
|
12307
|
+
callLabel: "shell command",
|
|
12308
|
+
waitPolicyLabel: "bash wait"
|
|
12309
|
+
});
|
|
12309
12310
|
}
|
|
12310
12311
|
const bashToolSystemPromptContribution = Object.freeze({
|
|
12311
12312
|
snippet: "Execute a shell command.",
|
|
@@ -12338,8 +12339,8 @@ function normalizeTimeoutSeconds(timeout) {
|
|
|
12338
12339
|
return Math.max(1, Math.round(timeout * 1e3)) / 1e3;
|
|
12339
12340
|
}
|
|
12340
12341
|
function createLocalBashOperations(options) {
|
|
12341
|
-
return { exec: async (command, cwd, { onData, signal, timeout, wait, env, pty, heartbeatMs }) => {
|
|
12342
|
-
validateBashWait(
|
|
12342
|
+
return { exec: async (command, cwd, { onData, signal, timeout, wait: rawWait, env, pty, heartbeatMs }) => {
|
|
12343
|
+
const wait = validateBashWait(rawWait, !!options?.taskOwner);
|
|
12343
12344
|
if (timeout !== void 0) validateExplicitTimeoutSeconds(timeout);
|
|
12344
12345
|
if (pty && getEnvValue(`${APP_NAME.toUpperCase()}_NO_PTY`) !== "1") try {
|
|
12345
12346
|
return await executeNativePty(command, cwd, {
|
|
@@ -12474,9 +12475,9 @@ const BASH_SHELL_PRESENTATION = {
|
|
|
12474
12475
|
};
|
|
12475
12476
|
const BASH_UPDATE_THROTTLE_MS = 100;
|
|
12476
12477
|
function formatBashCall(args, prompt) {
|
|
12477
|
-
if (args?.action === "wait") return theme.fg("toolTitle", theme.bold(`${prompt} wait ${str(args.id)
|
|
12478
|
+
if (args?.action === "wait") return theme.fg("toolTitle", theme.bold(`${prompt} wait ${str(args.id) || "..."}`));
|
|
12478
12479
|
const command = str(args?.command);
|
|
12479
|
-
const timeout = args?.timeout;
|
|
12480
|
+
const timeout = typeof args?.timeout === "number" ? args.timeout : void 0;
|
|
12480
12481
|
const timeoutSuffix = timeout !== void 0 ? theme.fg("muted", ` (timeout ${timeout}s)`) : "";
|
|
12481
12482
|
const commandDisplay = command === null ? invalidArgText(theme) : command ? command : theme.fg("toolOutput", "...");
|
|
12482
12483
|
return theme.fg("toolTitle", theme.bold(`${prompt} ${commandDisplay}`)) + timeoutSuffix;
|
|
@@ -12519,7 +12520,7 @@ function createBashToolDefinition(cwd, options, presentation = BASH_SHELL_PRESEN
|
|
|
12519
12520
|
return withBuiltinToolBlockRenderers({
|
|
12520
12521
|
name: "bash",
|
|
12521
12522
|
concurrency: (args) => args.pty === true ? "exclusive" : "shared",
|
|
12522
|
-
detachable: (args) => args.action === "wait" && args.budgetMs
|
|
12523
|
+
detachable: (args) => args.action === "wait" && args.budgetMs == null,
|
|
12523
12524
|
label: "bash",
|
|
12524
12525
|
description: "Execute a shell command with optional PTY handling and foreground/background observation, or observe an existing task with action: \"wait\", id, and optional budgetMs. Omitted command wait uses owner policy (default 10s). A command runs until it exits or is stopped unless timeout sets a deadline in seconds; observation never stops it. A background command can run indefinitely, such as a dev server; stop it with kill. Background and existing-task waits require a supported task owner; unbound foreground execution waits until completion.",
|
|
12525
12526
|
promptSnippet: bashToolSystemPromptContribution.snippet,
|
|
@@ -12532,13 +12533,15 @@ function createBashToolDefinition(cwd, options, presentation = BASH_SHELL_PRESEN
|
|
|
12532
12533
|
parameters: bashSchema,
|
|
12533
12534
|
outputSchema: bashOutputSchema,
|
|
12534
12535
|
maxResultSizeChars: 1e400,
|
|
12535
|
-
async execute(_toolCallId,
|
|
12536
|
+
async execute(_toolCallId, rawCommand, signal, onUpdate, ctx) {
|
|
12537
|
+
const bashCommand = prepareShellInput(rawCommand);
|
|
12538
|
+
if (!isPlainObject$1(bashCommand)) throw new Error("Invalid shell command: command is required; id and budgetMs require action wait");
|
|
12536
12539
|
if (bashCommand.action !== void 0) {
|
|
12537
12540
|
if (bashCommand.action !== "wait" || typeof bashCommand.id !== "string" || Object.keys(bashCommand).some((key) => ![
|
|
12538
12541
|
"action",
|
|
12539
12542
|
"id",
|
|
12540
12543
|
"budgetMs"
|
|
12541
|
-
].includes(key)) || bashCommand.budgetMs !== void 0 &&
|
|
12544
|
+
].includes(key)) || bashCommand.budgetMs !== void 0 && !isValidBudgetMs(bashCommand.budgetMs)) throw new Error("Invalid shell wait: expected action wait, id, and optional finite non-negative budgetMs");
|
|
12542
12545
|
return waitForSupervisedCommand(options?.taskOwner, bashCommand.id, bashCommand.budgetMs, signal, {
|
|
12543
12546
|
tempFilePrefix: presentation.tempFilePrefix,
|
|
12544
12547
|
tempDir: resolveSessionTempDir()
|
|
@@ -12547,7 +12550,7 @@ function createBashToolDefinition(cwd, options, presentation = BASH_SHELL_PRESEN
|
|
|
12547
12550
|
if (bashCommand.id !== void 0 || bashCommand.budgetMs !== void 0 || typeof bashCommand.command !== "string") throw new Error("Invalid shell command: command is required; id and budgetMs require action wait");
|
|
12548
12551
|
const { command } = bashCommand;
|
|
12549
12552
|
const timeout = normalizeTimeoutSeconds(bashCommand.timeout);
|
|
12550
|
-
validateBashWait(bashCommand.wait, !!options?.operations || !!options?.taskOwner);
|
|
12553
|
+
const wait = validateBashWait(bashCommand.wait, !!options?.operations || !!options?.taskOwner);
|
|
12551
12554
|
if (bashCommand.heartbeatMs !== void 0) validateTaskHeartbeatMs(bashCommand.heartbeatMs);
|
|
12552
12555
|
const sessionEnvironment = snapshotBashSessionEnvironment(ctx, exposeSessionEnvironment);
|
|
12553
12556
|
const resourceCtx = ctx;
|
|
@@ -12683,7 +12686,7 @@ function createBashToolDefinition(cwd, options, presentation = BASH_SHELL_PRESEN
|
|
|
12683
12686
|
onData: handleData,
|
|
12684
12687
|
signal,
|
|
12685
12688
|
timeout,
|
|
12686
|
-
wait
|
|
12689
|
+
wait,
|
|
12687
12690
|
env: executionContext.env,
|
|
12688
12691
|
pty: bashCommand.pty,
|
|
12689
12692
|
...bashCommand.heartbeatMs === void 0 ? {} : { heartbeatMs: bashCommand.heartbeatMs }
|
|
@@ -17370,12 +17373,9 @@ function namesHistoryUrl(paths) {
|
|
|
17370
17373
|
if (paths === void 0) return false;
|
|
17371
17374
|
return (typeof paths === "string" ? [paths] : paths).some((path) => path.trim().startsWith("history://"));
|
|
17372
17375
|
}
|
|
17373
|
-
/** Validates a `wait` policy of `read` or `search`, as bash validates its own. */
|
|
17376
|
+
/** Validates and normalizes a `wait` policy of `read` or `search`, as bash validates its own. */
|
|
17374
17377
|
function validateHistoryWait(wait) {
|
|
17375
|
-
|
|
17376
|
-
const policy = wait;
|
|
17377
|
-
if (!policy || typeof policy !== "object" || policy.kind !== "background" && policy.kind !== "foreground" || Object.keys(policy).some((key) => key !== "kind" && (policy.kind !== "foreground" || key !== "budgetMs")) || policy.kind === "foreground" && policy.budgetMs !== void 0 && (typeof policy.budgetMs !== "number" || !Number.isFinite(policy.budgetMs) || policy.budgetMs < 0)) throw new Error("Invalid wait: expected background or foreground with a finite non-negative budgetMs");
|
|
17378
|
-
return policy;
|
|
17378
|
+
return normalizeWaitPolicy(wait, "wait");
|
|
17379
17379
|
}
|
|
17380
17380
|
/** The `wait` parameter of `read` and `search`, the same observation policy as bash's. */
|
|
17381
17381
|
const historyWaitSchema = Type$1.Unsafe({
|
|
@@ -17413,26 +17413,25 @@ const historyWaitActionProperties = {
|
|
|
17413
17413
|
}
|
|
17414
17414
|
};
|
|
17415
17415
|
/**
|
|
17416
|
-
*
|
|
17417
|
-
*
|
|
17416
|
+
* Prepares and checks the shape of a `read` or `search` call: strips omitted `null`/`undefined` optional fields
|
|
17417
|
+
* (including `wait.budgetMs`), requires `action: "wait"` with `id` and optional `budgetMs` only in wait mode, and
|
|
17418
|
+
* requires `required` with neither `id` nor `budgetMs` in call mode.
|
|
17418
17419
|
*/
|
|
17419
|
-
function prepareHistoryAwareInput(args, tool, required) {
|
|
17420
|
-
|
|
17421
|
-
|
|
17422
|
-
|
|
17423
|
-
|
|
17424
|
-
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
].includes(key))) throw new Error(`Invalid ${tool} wait: expected action wait, id, and optional finite non-negative budgetMs`);
|
|
17428
|
-
} else if (!has(required) || has("id") || has("budgetMs")) throw new Error(`Invalid ${tool} call: ${required} is required; id and budgetMs require action wait`);
|
|
17429
|
-
return args;
|
|
17420
|
+
function prepareHistoryAwareInput(args, tool, required, optionalCallKeys = ["wait"]) {
|
|
17421
|
+
return prepareWaitableToolInput(args, {
|
|
17422
|
+
requiredKey: required,
|
|
17423
|
+
optionalCallKeys,
|
|
17424
|
+
waitLabel: `${tool} wait`,
|
|
17425
|
+
callLabel: `${tool} call`,
|
|
17426
|
+
waitPolicyLabel: "wait"
|
|
17427
|
+
});
|
|
17430
17428
|
}
|
|
17431
17429
|
/** Runs `action: "wait"` of `read` or `search` against the session's history tasks. */
|
|
17432
17430
|
function waitForHistoryTask(registry, input, tool, signal) {
|
|
17433
|
-
|
|
17431
|
+
const budgetMs = input.budgetMs === null ? void 0 : input.budgetMs;
|
|
17432
|
+
if (input.action !== "wait" || typeof input.id !== "string" || budgetMs !== void 0 && !isValidBudgetMs(budgetMs)) throw new Error(`Invalid ${tool} wait: expected action wait, id, and optional finite non-negative budgetMs`);
|
|
17434
17433
|
if (!registry) throw new Error("History task wait requires a session");
|
|
17435
|
-
return registry.wait(input.id,
|
|
17434
|
+
return registry.wait(input.id, budgetMs, signal);
|
|
17436
17435
|
}
|
|
17437
17436
|
// dist/core/tools/kill.js
|
|
17438
17437
|
const killSchema = Type$1.Object({ id: Type$1.String({ description: "Task ID returned by a bash or powershell command, or a history:// read or search, that is running in the background" }) });
|
|
@@ -17668,7 +17667,7 @@ const powershellToolSystemPromptContribution = Object.freeze({
|
|
|
17668
17667
|
});
|
|
17669
17668
|
function createLocalPowerShellOperations(binding) {
|
|
17670
17669
|
return { exec: async (command, cwd, options) => {
|
|
17671
|
-
validateBashWait(options.wait, !!binding?.taskOwner);
|
|
17670
|
+
const wait = validateBashWait(options.wait, !!binding?.taskOwner);
|
|
17672
17671
|
if (options.timeout !== void 0) validateExplicitTimeoutSeconds(options.timeout);
|
|
17673
17672
|
if (options.signal?.aborted) throw new Error("aborted");
|
|
17674
17673
|
const { shell, args } = await getPowerShellConfigAsync();
|
|
@@ -17678,6 +17677,7 @@ function createLocalPowerShellOperations(binding) {
|
|
|
17678
17677
|
const encoded = Buffer.from(script, "utf16le").toString("base64");
|
|
17679
17678
|
const execution = {
|
|
17680
17679
|
...options,
|
|
17680
|
+
wait,
|
|
17681
17681
|
shellConfig: {
|
|
17682
17682
|
shell,
|
|
17683
17683
|
args: [...args.slice(0, -1), "-EncodedCommand"]
|
|
@@ -17747,8 +17747,9 @@ function createPowerShellToolDefinition(cwd, options = {}) {
|
|
|
17747
17747
|
name: "powershell",
|
|
17748
17748
|
label: "powershell",
|
|
17749
17749
|
async execute(...args) {
|
|
17750
|
-
|
|
17751
|
-
|
|
17750
|
+
const prepared = prepareShellInput(args[1]);
|
|
17751
|
+
if (typeof prepared === "object" && prepared !== null && prepared.action === void 0) validateBashWait(prepared.wait, !!options.operations || !!options.taskOwner);
|
|
17752
|
+
return definition.execute(args[0], prepared, args[2], args[3], args[4]);
|
|
17752
17753
|
},
|
|
17753
17754
|
description: "Execute a PowerShell command or observe an existing task with action: \"wait\", id, and optional budgetMs. A command runs until it exits or is stopped unless timeout sets a deadline in seconds. A background command can run indefinitely, such as a dev server; stop it with kill. Owner-bound commands automatically yield after 10s by default without stopping execution. Unbound commands wait for completion; background and existing-task waits require a task owner.",
|
|
17754
17755
|
promptSnippet: powershellToolSystemPromptContribution.snippet,
|
|
@@ -18102,6 +18103,8 @@ const readSchema = Type$1.Unsafe({
|
|
|
18102
18103
|
},
|
|
18103
18104
|
required: []
|
|
18104
18105
|
});
|
|
18106
|
+
const readOptionalCallKeys = Object.keys(readBaseSchema.properties).filter((key) => key !== "path");
|
|
18107
|
+
const prepareReadInput = (args) => prepareHistoryAwareInput(args, "read", "path", readOptionalCallKeys);
|
|
18105
18108
|
const readToolSystemPromptContribution = Object.freeze({
|
|
18106
18109
|
snippet: "Read a path selector.",
|
|
18107
18110
|
guidelines: Object.freeze(["Use read to inspect file and resource contents; use path selectors for line ranges, raw output, and conflict views.", HISTORY_TASK_GUIDELINE])
|
|
@@ -18147,6 +18150,7 @@ function formatReadLineRange(_args, _theme) {
|
|
|
18147
18150
|
return "";
|
|
18148
18151
|
}
|
|
18149
18152
|
function formatReadCall(args, theme) {
|
|
18153
|
+
if (args?.action === "wait") return `${theme.fg("toolTitle", theme.bold("read wait"))} ${theme.fg("accent", str(args.id) || "...")}`;
|
|
18150
18154
|
const rawPath = str(args?.path);
|
|
18151
18155
|
const path = rawPath !== null ? shortenPath(rawPath) : null;
|
|
18152
18156
|
const invalidArg = invalidArgText(theme);
|
|
@@ -18829,7 +18833,7 @@ function createReadToolDefinition(cwd, options) {
|
|
|
18829
18833
|
return withBuiltinToolBlockRenderers({
|
|
18830
18834
|
name: "read",
|
|
18831
18835
|
label: "read",
|
|
18832
|
-
description: "Read files, directories, archives, SQLite databases, internal resources (including history:// for past sessions), images, documents, and URLs through one path string.",
|
|
18836
|
+
description: "Read files, directories, archives, SQLite databases, internal resources (including history:// for past sessions), images, documents, and URLs through one path string, or observe an existing background history:// read with action: \"wait\", id, and optional budgetMs.",
|
|
18833
18837
|
promptSnippet: readToolSystemPromptContribution.snippet,
|
|
18834
18838
|
promptGuidelines: [...readToolSystemPromptContribution.guidelines],
|
|
18835
18839
|
constrainedSampling: {
|
|
@@ -18839,10 +18843,13 @@ function createReadToolDefinition(cwd, options) {
|
|
|
18839
18843
|
parameters: readSchema,
|
|
18840
18844
|
outputSchema: readOutputSchema,
|
|
18841
18845
|
maxResultSizeChars: 1e400,
|
|
18842
|
-
prepareArguments:
|
|
18843
|
-
async execute(toolCallId,
|
|
18846
|
+
prepareArguments: prepareReadInput,
|
|
18847
|
+
async execute(toolCallId, rawInput, signal, _onUpdate, ctx) {
|
|
18848
|
+
const input = prepareReadInput(rawInput);
|
|
18849
|
+
if (!isPlainObject$1(input)) throw new Error("Invalid read call: path is required; id and budgetMs require action wait");
|
|
18844
18850
|
if (input.action !== void 0) return asReadResult(await waitForHistoryTask(options?.historyTasks?.(), input, "read", signal));
|
|
18845
18851
|
const { path, wait } = input;
|
|
18852
|
+
if (typeof path !== "string") throw new Error("Invalid read call: path is required; id and budgetMs require action wait");
|
|
18846
18853
|
const policy = validateHistoryWait(wait);
|
|
18847
18854
|
const registry = namesHistoryUrl(path) ? options?.historyTasks?.() : void 0;
|
|
18848
18855
|
if (!registry) return readPath(toolCallId, path, signal, ctx);
|
|
@@ -19382,6 +19389,8 @@ const searchSchema = Type$1.Unsafe({
|
|
|
19382
19389
|
},
|
|
19383
19390
|
required: []
|
|
19384
19391
|
});
|
|
19392
|
+
const searchOptionalCallKeys = Object.keys(searchBaseSchema.properties).filter((key) => key !== "pattern");
|
|
19393
|
+
const prepareSearchInput = (args) => prepareHistoryAwareInput(args, "search", "pattern", searchOptionalCallKeys);
|
|
19385
19394
|
const searchToolSystemPromptContribution = Object.freeze({
|
|
19386
19395
|
snippet: "Search file contents with regex patterns.",
|
|
19387
19396
|
guidelines: Object.freeze([HISTORY_TASK_GUIDELINE])
|
|
@@ -19748,6 +19757,7 @@ function dedupeRenderedSearchOutput(content) {
|
|
|
19748
19757
|
return out.join("\n");
|
|
19749
19758
|
}
|
|
19750
19759
|
function formatSearchCall(args, theme) {
|
|
19760
|
+
if (args?.action === "wait") return `${theme.fg("toolTitle", theme.bold("search wait"))} ${theme.fg("accent", str(args.id) || "...")}`;
|
|
19751
19761
|
const pattern = str(args?.pattern);
|
|
19752
19762
|
const rawPaths = Array.isArray(args?.paths) ? args.paths.join(", ") : args?.paths;
|
|
19753
19763
|
const rawPath = str(args?.path ?? rawPaths);
|
|
@@ -20043,15 +20053,18 @@ function createSearchToolDefinition(cwd, options) {
|
|
|
20043
20053
|
...grepDefinition,
|
|
20044
20054
|
name: "search",
|
|
20045
20055
|
label: "search",
|
|
20046
|
-
description: "Search file contents with a regex across files, directories, globs, and internal URLs, including history:// for past sessions.",
|
|
20056
|
+
description: "Search file contents with a regex across files, directories, globs, and internal URLs, including history:// for past sessions, or observe an existing background history:// search with action: \"wait\", id, and optional budgetMs.",
|
|
20047
20057
|
promptSnippet: searchToolSystemPromptContribution.snippet,
|
|
20048
20058
|
promptGuidelines: [...searchToolSystemPromptContribution.guidelines],
|
|
20049
20059
|
...experimentalToolSamplingProperty(),
|
|
20050
20060
|
parameters: searchSchema,
|
|
20051
|
-
prepareArguments:
|
|
20052
|
-
async execute(toolCallId,
|
|
20061
|
+
prepareArguments: prepareSearchInput,
|
|
20062
|
+
async execute(toolCallId, rawInput, signal, onUpdate, ctx) {
|
|
20063
|
+
const input = prepareSearchInput(rawInput);
|
|
20064
|
+
if (!isPlainObject$1(input)) throw new Error("Invalid search call: pattern is required; id and budgetMs require action wait");
|
|
20053
20065
|
if (input.action !== void 0) return asSearchResult(await waitForHistoryTask(options?.historyTasks?.(), input, "search", signal));
|
|
20054
20066
|
const { wait, ...params } = input;
|
|
20067
|
+
if (typeof params.pattern !== "string") throw new Error("Invalid search call: pattern is required; id and budgetMs require action wait");
|
|
20055
20068
|
const policy = validateHistoryWait(wait);
|
|
20056
20069
|
const registry = namesHistoryUrl(params.paths) ? options?.historyTasks?.() : void 0;
|
|
20057
20070
|
if (!registry) return runSearch(toolCallId, params, signal, onUpdate, ctx);
|
|
@@ -27699,7 +27712,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
27699
27712
|
return (async () => {
|
|
27700
27713
|
const root = new URL("../", import.meta.url);
|
|
27701
27714
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
27702
|
-
const key = `${root.href}#0.10.
|
|
27715
|
+
const key = `${root.href}#0.10.14-alpha.1`;
|
|
27703
27716
|
let release = releases.get(key);
|
|
27704
27717
|
if (release === undefined) {
|
|
27705
27718
|
const current = (async () => {
|
|
@@ -27727,7 +27740,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
27727
27740
|
} catch {
|
|
27728
27741
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
27729
27742
|
}
|
|
27730
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
27743
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.14-alpha.1" ? installed : running !== undefined && running.version !== "0.10.14-alpha.1" ? "0.10.14-alpha.1" : undefined;
|
|
27731
27744
|
if (updatedTo === undefined) throw error;
|
|
27732
27745
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
27733
27746
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|