@bastani/atomic 0.10.18 → 0.10.19-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 +38 -0
- package/README.md +27 -5
- package/dist/_shared/config-binary-install-SNFYFXWB.js +70 -0
- package/dist/_shared/config-binary-install-SNFYFXWB.js.map +1 -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 → mode-interactive-sdk-JXBZ3H27.js} +434 -11
- package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -0
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +21 -6
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +7 -6
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p0-cli-BB45ZQY6.js +56 -3
- package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +3 -3
- package/dist/_shared/{sdk-OHKMDJ74.js → sdk-BHX35EPK.js} +40 -9
- package/dist/_shared/sdk-BHX35EPK.js.map +1 -0
- 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-OV6RAEAP.js → startup-0-0-4EDVBK5P.js} +464 -7
- package/dist/_shared/startup-0-0-4EDVBK5P.js.map +1 -0
- package/dist/_shared/{startup-0-1-EZAJI6RE.js → startup-0-1-H5IXVRXQ.js} +85 -7
- package/dist/_shared/startup-0-1-H5IXVRXQ.js.map +1 -0
- package/dist/_shared/startup-0-2-YZZOC22D.js +4 -4
- package/dist/_shared/startup-0-3-DE2NCS6A.js +4 -4
- package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
- package/dist/_shared/startup-0-5-HZX3ZPTP.js +44 -11
- package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
- package/dist/_shared/startup-14-0-MLX36RBG.js +3 -3
- package/dist/_shared/startup-15-0-YUKGAC63.js +3 -3
- package/dist/_shared/{startup-15-1-4S7FLMNG.js → startup-15-1-WQZBOTMZ.js} +70 -28
- package/dist/_shared/{startup-15-1-4S7FLMNG.js.map → startup-15-1-WQZBOTMZ.js.map} +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
- package/dist/_shared/{startup-8-1-LZFXSD3Z.js → startup-8-1-QZMXUGHI.js} +242 -20
- package/dist/_shared/startup-8-1-QZMXUGHI.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +5 -5
- package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/binary-self-update.js +281 -0
- package/dist/binary-self-update.js.map +1 -0
- package/dist/builtin/intercom/index.bundle.mjs +2 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +15 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/agent-browser/SKILL.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/SKILL.md +3 -3
- package/dist/builtin/subagents/skills/impeccable/reference/audit.md +2 -2
- package/dist/builtin/subagents/skills/impeccable/reference/critique.md +3 -3
- package/dist/builtin/subagents/skills/impeccable/reference/generate.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/reference/init.md +0 -2
- package/dist/builtin/subagents/skills/impeccable/reference/live.md +4 -2
- package/dist/builtin/subagents/skills/impeccable/reference/new-work-comp.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/reference/new-work-world.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/scripts/VERSION +1 -1
- package/dist/builtin/subagents/skills/impeccable/scripts/engine-checksums.txt +5 -5
- package/dist/builtin/subagents/skills/impeccable/scripts/impeccable +28 -5
- package/dist/builtin/subagents/skills/impeccable/scripts/impeccable.cmd +11 -2
- package/dist/builtin/subagents/skills/impeccable/scripts/live-browser.js +10 -6
- package/dist/builtin/subagents/skills/research-codebase/SKILL.md +13 -19
- package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
- package/dist/builtin/subagents/skills/subagent/SKILL.md +7 -7
- package/dist/builtin/subagents/skills/workflow/SKILL.md +98 -0
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +2 -1
- package/dist/builtin/web-access/index.bundle.mjs +2 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +3 -3
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +2 -2
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +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 +2 -2
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +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 +3 -3
- 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/usage-command.js +22 -0
- package/dist/cli/usage-command.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/config-binary-install.js +3 -0
- package/dist/config-binary-install.js.map +1 -0
- package/dist/core/agent-session-services.js +3 -0
- package/dist/core/agent-session-services.js.map +1 -0
- 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.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/runner-context.js +2 -2
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/{legacy-workflow-files.d.ts → legacy-workflows.d.ts} +1 -1
- package/dist/core/model-runtime.d.ts +8 -2
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/resource-loader-core.d.ts +1 -1
- package/dist/core/resource-loader-internals.d.ts +1 -1
- package/dist/core/resource-loader-types.d.ts +1 -1
- package/dist/core/resource-loader-types.js.map +1 -1
- package/dist/core/sdk.code.js +4 -4
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +5 -5
- 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.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager.js +5 -0
- package/dist/core/settings-manager.js.map +1 -0
- 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 +3 -3
- 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 +2 -2
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +3 -3
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +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 +2 -2
- 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 +3 -3
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.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/subscription-usage-credential.d.ts +2 -0
- package/dist/core/subscription-usage-endpoints.d.ts +54 -0
- package/dist/core/subscription-usage.d.ts +55 -0
- package/dist/core/subscription-usage.js +3 -0
- package/dist/core/subscription-usage.js.map +1 -0
- 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 +4 -4
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.code.js +1 -1
- 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/edit-diff.d.ts +4 -6
- package/dist/core/tools/read-url.code.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 +2 -2
- 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 +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +2 -2
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.js +7 -7
- 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/main.js +2 -2
- 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/interactive/interactive-mode-surface.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +3 -0
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +3 -0
- package/dist/modes/rpc/rpc-types.d.ts +25 -0
- package/dist/package-manager-cli.code.js +31 -8
- package/dist/package-manager-cli.code.js.map +1 -1
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +2 -2
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/4.js +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/subscription-usage-sdk.d.ts +9 -0
- package/dist/utils/changelog.d.ts +1 -0
- package/dist/utils/startup-database-spare.code.js +2 -2
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/changelog.mdx +41 -6
- package/docs/containerization.md +17 -15
- package/docs/docs.json +1 -0
- package/docs/getting-started/installation.md +132 -80
- package/docs/guides/subscription-usage.md +133 -0
- package/docs/guides/team-setup.md +14 -3
- package/docs/guides.md +3 -0
- package/docs/index.md +18 -6
- package/docs/intercom/operations.md +1 -1
- package/docs/orchestration/migrating-workflows.md +16 -10
- package/docs/orchestration/patterns.md +8 -2
- package/docs/orchestration.md +17 -8
- package/docs/quickstart.md +7 -15
- package/docs/reference/cli.md +29 -22
- package/docs/rpc/protocol.md +9 -1
- package/docs/rpc.md +1 -1
- package/docs/sdk/reference.md +5 -1
- package/docs/skills.md +20 -4
- package/docs/slash-commands.md +3 -2
- package/docs/tools.md +57 -12
- package/docs/usage.md +1 -0
- package/docs/windows.md +4 -4
- package/package.json +9 -9
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +0 -1
- package/dist/_shared/sdk-OHKMDJ74.js.map +0 -1
- package/dist/_shared/startup-0-0-OV6RAEAP.js.map +0 -1
- package/dist/_shared/startup-0-1-EZAJI6RE.js.map +0 -1
- package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +0 -1
- package/dist/builtin/subagents/skills/workflow-files/SKILL.md +0 -28
|
@@ -1,7 +1,7 @@
|
|
|
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, findMostRecentResumable, formatMissingSessionCwdPrompt, getMissingSessionCwdOptions, observeHistoryLoads, prepareSessionClaim, saveChatRecord, trackChatRecordSave } from "./startup-0-0-
|
|
4
|
-
import { adoptCommandSession, inlineToolOutput, withoutCarriedToolOutput } from "./startup-0-1-
|
|
3
|
+
import { CURRENT_SESSION_VERSION, addHistoryUsageToTotals, addUsageToTotals, attachCleanupCause, bindChatReceipt, claimSession, classifiedWorkflowMetadata, createUsageTotals, findMostRecentResumable, formatMissingSessionCwdPrompt, getMissingSessionCwdOptions, observeHistoryLoads, prepareSessionClaim, saveChatRecord, trackChatRecordSave } from "./startup-0-0-4EDVBK5P.js";
|
|
4
|
+
import { adoptCommandSession, inlineToolOutput, withoutCarriedToolOutput } from "./startup-0-1-H5IXVRXQ.js";
|
|
5
5
|
import { getThemeByName, initTheme, keepStartupDialogDraft, stopThemeWatcher, theme, withEarlyInputHeldForStartupDialog } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { failureDebugFields, reportDebugAsync } from "./p1b-elig-BY2G5BUE.js";
|
|
7
7
|
import { calculateContextTokens, estimateDirectBranchContextTokens, estimateProjectedContextTokens, ownedSessionManagerStores } from "./startup-0-2-YZZOC22D.js";
|
|
@@ -9,7 +9,7 @@ import { assertSessionNotOpenElsewhere, extensionWorkOpen, getLatestCompactionBo
|
|
|
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";
|
|
11
11
|
import { checkResumeStoragePreconditions } from "./startup-0-5-HZX3ZPTP.js";
|
|
12
|
-
import { deleteSessionWithSnapshotRefs, parentHistoryNotices, prepareSessionResume, resolveSessionStore, selectSessionStorageWithSettings, selectSessionStorageWithSettingsAsync, sessionManagerContinuesIn, sessionManagerRunsInRecordedCheckout, sessionResumeOptions, sessionSnapshotBlobs, snapshotBlobInliner } from "./startup-8-1-
|
|
12
|
+
import { deleteSessionWithSnapshotRefs, parentHistoryNotices, prepareSessionResume, resolveSessionStore, selectSessionStorageWithSettings, selectSessionStorageWithSettingsAsync, sessionManagerContinuesIn, sessionManagerRunsInRecordedCheckout, sessionResumeOptions, sessionSnapshotBlobs, snapshotBlobInliner } from "./startup-8-1-QZMXUGHI.js";
|
|
13
13
|
import { mkdir, open, rename, rm, stat } from "node:fs/promises";
|
|
14
14
|
import { dirname } from "node:path";
|
|
15
15
|
import { setLongTimeout } from "../__atomic_timers/index.js";
|
|
@@ -1144,7 +1144,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
1144
1144
|
return (async () => {
|
|
1145
1145
|
const root = new URL("../", import.meta.url);
|
|
1146
1146
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
1147
|
-
const key = `${root.href}#0.10.
|
|
1147
|
+
const key = `${root.href}#0.10.19-alpha.1`;
|
|
1148
1148
|
let release = releases.get(key);
|
|
1149
1149
|
if (release === undefined) {
|
|
1150
1150
|
const current = (async () => {
|
|
@@ -1172,7 +1172,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
1172
1172
|
} catch {
|
|
1173
1173
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
1174
1174
|
}
|
|
1175
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
1175
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.19-alpha.1" ? installed : running !== undefined && running.version !== "0.10.19-alpha.1" ? "0.10.19-alpha.1" : undefined;
|
|
1176
1176
|
if (updatedTo === undefined) throw error;
|
|
1177
1177
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
1178
1178
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -1,10 +1,10 @@
|
|
|
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-4EDVBK5P.js";
|
|
4
4
|
import { OwnerTaskStore } from "./startup-0-3-DE2NCS6A.js";
|
|
5
5
|
import { defaultBuiltinExtensions } from "./startup-0-5-HZX3ZPTP.js";
|
|
6
6
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
7
|
-
import { SettingsManager, drainExtensionAPIWork, retireExtensionAPI, runExtensionAPICleanup, sealExtensionAPI } from "./startup-8-1-
|
|
7
|
+
import { SettingsManager, drainExtensionAPIWork, retireExtensionAPI, runExtensionAPICleanup, sealExtensionAPI } from "./startup-8-1-QZMXUGHI.js";
|
|
8
8
|
import { createExtensionContext, getExtensionContextOwner, publishExtensionContextEffect } from "../core/extensions/runner-context.js";
|
|
9
9
|
// dist/core/extensions/loader-rollback.js
|
|
10
10
|
const factoryAcquisitions = asyncScope();
|
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
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-
|
|
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-4EDVBK5P.js";
|
|
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-H5IXVRXQ.js";
|
|
5
5
|
import { endTimingSpan, keybindingIdentity, resetTimings, startTimingSpan } from "./p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { getProjectTrustOptionsAsync, hasProjectTrustInputsAsync } from "./p1b-elig-BY2G5BUE.js";
|
|
7
7
|
import { applyExtensionSourceInfo, discoverAppendSystemPromptFile, discoverSystemPromptFile, trackSessionWork } from "./startup-0-2-YZZOC22D.js";
|
|
8
8
|
import { assertExtensionAction, bindExtensionWork, drainExtensionWork, extensionSessionSignal, extensionWorkOpen, finishLlamaAfterQuit, llamaExtension, resumeExtensionWork, revokeExtensionAuthority, runExtensionCleanup, sealExtensionWork } from "./startup-0-3-DE2NCS6A.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-HZX3ZPTP.js";
|
|
10
10
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
11
|
-
import { SettingsManager, boundExtensionRuntimes, createExtensionAPI, createExtensionRuntime, hostStoragePackagesRegistered, loadProjectContextFilesAsync, registerHostStoragePackagesAsync, resolveExistingPromptSourcePath, resolveExistingPromptSourcePaths, resolvePromptInput, runResourceRegistrationBatch } from "./startup-8-1-
|
|
11
|
+
import { SettingsManager, boundExtensionRuntimes, createExtensionAPI, createExtensionRuntime, hostStoragePackagesRegistered, loadProjectContextFilesAsync, registerHostStoragePackagesAsync, resolveExistingPromptSourcePath, resolveExistingPromptSourcePaths, resolvePromptInput, runResourceRegistrationBatch } from "./startup-8-1-QZMXUGHI.js";
|
|
12
12
|
import { bindBuiltinChildRecordSession, installBuiltinChildRecordWriter } from "./startup-10-0-TDQNBDDL.js";
|
|
13
13
|
import { interactiveEngineStartupEnv } from "./p1a-prewarm-XIU57JHF.js";
|
|
14
14
|
import { factoryAcquisitions, factoryRollbackError, rollbackExtensionFactories } from "./startup-12-0-55AAXBJZ.js";
|
|
@@ -5,14 +5,14 @@ import { AsyncLocalStorage } from "node:async_hooks";
|
|
|
5
5
|
import { setLongTimeout } from "../__atomic_timers/index.js";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { appendFailureWroteNothing, checkedCustomMessage, clearPersistenceFailure, keepRefusedInput, noteMessageSaved, recordPersistenceFailure, rethrowUnlessReportedPersistenceFailure, writesEndWithWriter } from "./startup-8-0-34CBHPZH.js";
|
|
8
|
-
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-
|
|
8
|
+
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-4EDVBK5P.js";
|
|
9
9
|
import { SessionDeletedError } from "./settings-startup-HXQLSUWM.js";
|
|
10
10
|
import { SessionConflictError, SessionNotFoundError } from "../core/storage/session/errors.js";
|
|
11
11
|
import { OwnerTaskStore, bindOwnerTaskStore, deliverToLaunchingSession, forgetChildDelivery, getLatestCompactionBoundaryEntry, processImage, wrapRegisteredTools } from "./startup-0-3-DE2NCS6A.js";
|
|
12
12
|
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-HZX3ZPTP.js";
|
|
13
|
-
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-
|
|
13
|
+
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-H5IXVRXQ.js";
|
|
14
14
|
import { MessageAdmissionBoundary, assertSessionOpen, createToolDefinitionFromAgentTool, getCallableTools, isSelectedNativeMcpTool, loadTaskOwnTranscriptEntries, resolveSessionTempDirPath, sessionGenerationClosing, sessionLifetime, sessionQuitSignal, taskTranscriptSource, trackSessionWork } from "./startup-0-2-YZZOC22D.js";
|
|
15
|
-
import { HistoryTaskRegistry, applyToolModifiers, createHistoryRouter, createLocalBashOperations, createLocalPowerShellOperations, createToolDefinitionsFor, defaultToolSelectionFor, notifyAgentPanelSourceHubRebound, shellCommandPrefixFor, withWorktreeRootMappings } from "./startup-8-1-
|
|
15
|
+
import { HistoryTaskRegistry, applyToolModifiers, createHistoryRouter, createLocalBashOperations, createLocalPowerShellOperations, createToolDefinitionsFor, defaultToolSelectionFor, notifyAgentPanelSourceHubRebound, shellCommandPrefixFor, withWorktreeRootMappings } from "./startup-8-1-QZMXUGHI.js";
|
|
16
16
|
import { ExtensionRunner, getExtensionRuntimeEventBus } from "./startup-14-0-MLX36RBG.js";
|
|
17
17
|
import { ModelRegistry } from "../core/model-registry.js";
|
|
18
18
|
import { failureDebugFields, reportDebugAsync, serializeErrorCause } from "./p1b-elig-BY2G5BUE.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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, normalizeModelFailureSignal, noteCommandTurnMessage, ownedSettingsManagers, parseArgs, prewarmModelApi, printHelp, readPipedStdin, recordClosedStart, recordResumeTimings, repairOrphanToolResults, reportDiagnostics, resolveCompactionModel, serializeWorkspaceError, sessionLifecycleCreation, sessionLifecycleScopes, transpileCacheWritesSettled, unreadableTrustSettingsDiagnostics, withImagesBlocked, withWindowsDirectorySecurityOwner } from "./startup-0-1-
|
|
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-4EDVBK5P.js";
|
|
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, normalizeModelFailureSignal, noteCommandTurnMessage, ownedSettingsManagers, parseArgs, prewarmModelApi, printHelp, readPipedStdin, recordClosedStart, recordResumeTimings, repairOrphanToolResults, reportDiagnostics, resolveCompactionModel, serializeWorkspaceError, sessionLifecycleCreation, sessionLifecycleScopes, transpileCacheWritesSettled, unreadableTrustSettingsDiagnostics, withImagesBlocked, withWindowsDirectorySecurityOwner } from "./startup-0-1-H5IXVRXQ.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-BY2G5BUE.js";
|
|
7
7
|
import { shouldUseFullscreenTui } from "./p1-elig-shell-WWRO3L2R.js";
|
|
@@ -11,7 +11,7 @@ import { SESSION_HISTORY_SCAN_ENTRIES, SessionAlreadyOpenError, SessionEntryErro
|
|
|
11
11
|
import { JsonlSessionStore, agentSessionPersistenceFailureMethods, agentSessionReleaseMethods, clearPersistenceFailure, enableReleaseWhenIdle, getLatestSessionSummary, notReopenable, noteMessageSaved, onSessionClose, parseReleaseWhenIdle, recordPersistenceFailure, repeatsShownUnsavedInput, rethrowUnlessReportedPersistenceFailure, sessionClosing } from "./startup-8-0-34CBHPZH.js";
|
|
12
12
|
import { ModelRuntime, WORKSPACE_WRITE_TOOL_NAMES, activatesOnRegistration, agentSessionModelsMethods, agentSessionRetryMethods, assertSessionManagerInWorktreeAsync, bindSessionWorkspace, buildSessionOptions, buildSystemPrompt, computeDeferExtensions, computeInteractiveEngineResourceDeferral, computeStartupInputCaptureEnabled, computeStartupTrustPromptPossible, createToolNameMatcher, deferFirstPromptModel, engineExtensionsCanDecide, ensureRetryPromise, extensionsCanDecideProjectTrust, findInitialModel, formatScopedModelList, getModelFastRoute, getSkillCatalog, isRegisteredToolAllowed, isToolActivatable, isToolDeclarationHidden, loginIsolatedApiKeyProvider, loginIsolatedOAuthProvider, loginRuntimeOAuthProvider, markRuntimeStreamFunction, mergeHeaders, pendingTaskCompletionIntents, rateLimitGuidance, recordSessionWorkspace, resolveDeferredStartupModel, resolveRestoredModelReference, retryIsCurrent, sessionAccountCheckpoint, startupErrorHandlerTokens, streamWithFastRoute, uncachedCopilotModelHint, unresolvedFallbackModelDiagnostics, withFastRouteStreamOptions, workspaceSessionCwdAsync } from "./startup-0-5-HZX3ZPTP.js";
|
|
13
13
|
import { autoDetectCompactionQuery, executeBashWithOperations, formatModelLabel, prepareCompactionBoundary } from "./startup-0-4-ZMJV547D.js";
|
|
14
|
-
import { ENGINE_SHUTDOWN_GRACE_MS, RpcClient, SessionWorktreeSnapshotRecorder, SettingsManager, agentSessionSummaryMethods, agentSessionTreeMethods, applyToolModifiers, buildInteractiveEngineArgs, canIsolateSessionStore, cancelSessionSubscriptions, continueSessionWhereItWorked, createLocalBashOperations, createLocalPowerShellOperations, currentWorktreeRestoreNotices, currentWorktreeRootMappings, defaultToolSelectionFor, findUnansweredToolCall, hasSubagentCaptures, inheritChildSessionOptionsWithDefaults, isPlainRuntimeMetadataCommand, notifyAgentPanelSourceHubRebound, parentHistoryNotices, pathExists, prepareInitialMessage, prepareSessionResume, projectSettingsChooseSessionStorage, registerHostStoragePackages, releaseSessionWorktrees, removeSavedModelRoutingSettings, removeSavedModelRoutingSettingsAsync, resolveAppMode, resolveCliPaths, resolveExcludedToolsForAppMode, resolveSessionStore, resumeStoreDir, runMigrations, runMigrationsAsync, savedProjectTrustAsync, sessionResumeOptions, shellCommandPrefixFor, shouldStartRpcCatalogRefresh, showDeprecationWarnings, subscribeSession, takeEngineSessionStorageArg, toPrintOutputMode } from "./startup-8-1-
|
|
14
|
+
import { ENGINE_SHUTDOWN_GRACE_MS, RpcClient, SessionWorktreeSnapshotRecorder, SettingsManager, agentSessionSummaryMethods, agentSessionTreeMethods, applyToolModifiers, buildInteractiveEngineArgs, canIsolateSessionStore, cancelSessionSubscriptions, continueSessionWhereItWorked, createLocalBashOperations, createLocalPowerShellOperations, currentWorktreeRestoreNotices, currentWorktreeRootMappings, defaultToolSelectionFor, findUnansweredToolCall, hasSubagentCaptures, inheritChildSessionOptionsWithDefaults, isPlainRuntimeMetadataCommand, notifyAgentPanelSourceHubRebound, parentHistoryNotices, pathExists, prepareInitialMessage, prepareSessionResume, projectSettingsChooseSessionStorage, registerHostStoragePackages, releaseSessionWorktrees, removeSavedModelRoutingSettings, removeSavedModelRoutingSettingsAsync, resolveAppMode, resolveCliPaths, resolveExcludedToolsForAppMode, resolveSessionStore, resumeStoreDir, runMigrations, runMigrationsAsync, savedProjectTrustAsync, sessionResumeOptions, shellCommandPrefixFor, shouldStartRpcCatalogRefresh, showDeprecationWarnings, subscribeSession, takeEngineSessionStorageArg, toPrintOutputMode } from "./startup-8-1-QZMXUGHI.js";
|
|
15
15
|
import { abortCurrentGeneration, activatesAfterRecordedLoadout, agentSessionCustomMessageCommitMethods, agentSessionDetachedToolMethods, agentSessionMessageQueueMethods, agentSessionPromptMethods, agentSessionStateMethods, agentSessionTaskMethods, agentSessionToolHooksMethods, agentSessionToolRegistryMethods, awaitedToolTurnEntryId, bindChildTaskNotices, blueprintSubject, childCommandTaskHost, dismissProtectedStreamingCustomMessage, forgetQueuedMessageReceipt, holdsTurnsForDetachedResults, installQueuedMessageTaking, isDetachedToolCall, isProtectedStreamingCustomMessage, isSubagentChildSession, markProtectedStreamingCustomMessageConsumed, markProtectedStreamingCustomMessagePersistenceFailed, normalizeQueuedMessageImages, openChildCommandTaskHost, pendingProtectedStreamingCustomMessages, pendingResumeUpdate, persistProtectedStreamingCustomMessage, prepareProtectedStreamingCustomMessagesForDisposal, preservesInitialToolLoadout, queueRunStarted, queuedMessageReceiptId, recordExplicitToolDeactivations, recordedToolLoadout, recoverProtectedStreamingCustomMessages, releaseDetachedCallHolds, replaceSessionTaskOwner, requeueQueuedMessagesNotStarted, retryConsumedProtectedStreamingCustomMessages, startQueuedMessage, withoutDetachedPlaceholders } from "./startup-15-0-YUKGAC63.js";
|
|
16
16
|
import { SessionManager, SessionSelectorConflictError, agentSessionExportMethods, createResumeProgress, openCliSession, openSessionInCurrentCwdOrExit, promptForDirtyCheckout, promptForMissingSessionCwd, recordPromptOrder, refreshSessionStorage, sessionStorageWouldMove, startupResumeDiagnostics, validateForkFlags, validateImportFlags, validateSessionIdFlags } from "./startup-10-0-TDQNBDDL.js";
|
|
17
17
|
import { captureInteractiveEngineStartupEnv, discardPrewarmedEngine, interactiveEngineClientOptions, interactiveEngineStartupEnv, isInteractiveEngineChild } from "./p1a-prewarm-XIU57JHF.js";
|
|
@@ -6430,6 +6430,14 @@ var IsolatedInteractiveRuntime = class extends AgentSessionRuntime {
|
|
|
6430
6430
|
this.patchSession(session);
|
|
6431
6431
|
return session;
|
|
6432
6432
|
}
|
|
6433
|
+
listUsageAccounts() {
|
|
6434
|
+
return this.client.listUsageAccounts();
|
|
6435
|
+
}
|
|
6436
|
+
async loadAccountUsage(provider, refresh) {
|
|
6437
|
+
const [usage] = await this.client.getUsage(provider, refresh);
|
|
6438
|
+
if (!usage) throw new Error("Could not read subscription usage.");
|
|
6439
|
+
return usage;
|
|
6440
|
+
}
|
|
6433
6441
|
async openTaskInspector(taskId, options = {}) {
|
|
6434
6442
|
await this.client.requestInternal({
|
|
6435
6443
|
type: "open_task_inspector",
|
|
@@ -8483,9 +8491,24 @@ async function main(argv, options) {
|
|
|
8483
8491
|
await exitAfterCommand();
|
|
8484
8492
|
return;
|
|
8485
8493
|
}
|
|
8494
|
+
const usageCommand = args[0] === "usage";
|
|
8495
|
+
if (usageCommand) {
|
|
8496
|
+
const usageHelp = "Usage: atomic usage [--json] [--offline]\n";
|
|
8497
|
+
if (args.includes("--help") || args.includes("-h")) {
|
|
8498
|
+
writeRawStdout(usageHelp);
|
|
8499
|
+
await exitAfterCommand();
|
|
8500
|
+
return;
|
|
8501
|
+
}
|
|
8502
|
+
if (args.slice(1).some((arg) => arg !== "--json" && arg !== "--offline")) {
|
|
8503
|
+
process.stderr.write(usageHelp);
|
|
8504
|
+
process.exitCode = 2;
|
|
8505
|
+
await exitAfterCommand();
|
|
8506
|
+
return;
|
|
8507
|
+
}
|
|
8508
|
+
}
|
|
8486
8509
|
let parsed;
|
|
8487
8510
|
try {
|
|
8488
|
-
parsed = parseArgs(args);
|
|
8511
|
+
parsed = parseArgs(usageCommand ? ["--print"] : args);
|
|
8489
8512
|
} catch (error) {
|
|
8490
8513
|
if (!(error instanceof StorageConfigError)) throw error;
|
|
8491
8514
|
console.error(chalk.red(`Error: ${error.message}`));
|
|
@@ -8601,27 +8624,46 @@ async function main(argv, options) {
|
|
|
8601
8624
|
setCapabilityOverrides(startupSettingsManager.getTerminalCapabilityOverrides());
|
|
8602
8625
|
const startupSettingsDiagnostics = [...unreadableTrustSettingsDiagnostics(startupGlobalSettingsManager, parsed.projectTrustOverride), ...collectSettingsDiagnostics(startupSettingsManager, "startup session lookup")];
|
|
8603
8626
|
if (appMode === "interactive" && parsed.useTheme !== void 0) startupSettingsManager.applyOverrides({ theme: parsed.useTheme });
|
|
8604
|
-
if (parsed.help || parsed.listModels !== void 0) {
|
|
8605
|
-
const
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8627
|
+
if (parsed.help || parsed.listModels !== void 0 || usageCommand) {
|
|
8628
|
+
const loadMetadata = async () => {
|
|
8629
|
+
return (await prepareAgentSessionServices({
|
|
8630
|
+
cwd,
|
|
8631
|
+
agentDir,
|
|
8632
|
+
settingsManager: startupSettingsManager,
|
|
8633
|
+
extensionFlagValues: parsed.unknownFlags,
|
|
8634
|
+
resourceLoaderOptions: {
|
|
8635
|
+
additionalExtensionPaths: resolvedExtensionPaths,
|
|
8636
|
+
additionalSkillPaths: resolvedSkillPaths,
|
|
8637
|
+
additionalPromptTemplatePaths: resolvedPromptTemplatePaths,
|
|
8638
|
+
additionalThemePaths: resolvedThemePaths,
|
|
8639
|
+
builtinPackagePaths: options?.builtinPackagePaths,
|
|
8640
|
+
noExtensions: parsed.noExtensions,
|
|
8641
|
+
disabledBuiltinExtensions: parsed.noMcp ? ["mcp"] : void 0,
|
|
8642
|
+
noSkills: parsed.noSkills,
|
|
8643
|
+
noPromptTemplates: parsed.noPromptTemplates,
|
|
8644
|
+
noThemes: parsed.noThemes,
|
|
8645
|
+
noContextFiles: parsed.noContextFiles,
|
|
8646
|
+
extensionFactories
|
|
8647
|
+
}
|
|
8648
|
+
}))();
|
|
8649
|
+
};
|
|
8650
|
+
if (usageCommand) {
|
|
8651
|
+
try {
|
|
8652
|
+
const [{ modelRuntime }, { loadSubscriptionUsage }, { formatUsageReport }] = await Promise.all([
|
|
8653
|
+
loadMetadata(),
|
|
8654
|
+
import("../core/subscription-usage.js").catch((error) => __atomicOnDemandFailed(error, "this feature")),
|
|
8655
|
+
import("../cli/usage-command.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))
|
|
8656
|
+
]);
|
|
8657
|
+
const report = await loadSubscriptionUsage(modelRuntime, startupSettingsManager.getDefaultProvider());
|
|
8658
|
+
writeRawStdout(args.includes("--json") ? `${JSON.stringify(report)}\n` : formatUsageReport(report));
|
|
8659
|
+
} catch {
|
|
8660
|
+
process.stderr.write("Could not read subscription accounts.\n");
|
|
8661
|
+
process.exitCode = 1;
|
|
8623
8662
|
}
|
|
8624
|
-
|
|
8663
|
+
await exitAfterCommand();
|
|
8664
|
+
return;
|
|
8665
|
+
}
|
|
8666
|
+
const { modelRuntime, resourceLoader, diagnostics } = await loadMetadata();
|
|
8625
8667
|
reportDiagnostics(deduplicateDiagnostics([
|
|
8626
8668
|
...startupSettingsDiagnostics,
|
|
8627
8669
|
...diagnostics,
|
|
@@ -9337,16 +9379,16 @@ async function main(argv, options) {
|
|
|
9337
9379
|
return;
|
|
9338
9380
|
}
|
|
9339
9381
|
}
|
|
9340
|
-
export { AgentSession, AgentSessionRuntime, HOST_STARTED_SESSION, IsolatedInteractiveRuntime, SESSION_RECOVERY_NOTICE_TYPE, SESSION_RECOVERY_REPLAY_TYPE, SessionImportFileNotFoundError, StartupBenchmarkConfigError, StartupBenchmarkError, createAgentSession, createAgentSessionFromServices, createAgentSessionRuntime, createAgentSessionServices, createUnstartedAgentSession, isStartupBenchmarkConfigError, isStartupBenchmarkError, main, parseSkillBlock, rehydrateStartupBenchmarkError, sessionCloseReason, startsQueuedMessage };
|
|
9382
|
+
export { AgentSession, AgentSessionRuntime, HOST_STARTED_SESSION, IsolatedInteractiveRuntime, SESSION_RECOVERY_NOTICE_TYPE, SESSION_RECOVERY_REPLAY_TYPE, SessionImportFileNotFoundError, StartupBenchmarkConfigError, StartupBenchmarkError, createAgentSession, createAgentSessionFromServices, createAgentSessionRuntime, createAgentSessionServices, createUnstartedAgentSession, createUnstartedAgentSessionFromServices, isStartupBenchmarkConfigError, isStartupBenchmarkError, main, parseSkillBlock, prepareAgentSessionServices, rehydrateStartupBenchmarkError, sessionCloseReason, startsQueuedMessage };
|
|
9341
9383
|
|
|
9342
|
-
//# sourceMappingURL=startup-15-1-
|
|
9384
|
+
//# sourceMappingURL=startup-15-1-WQZBOTMZ.js.map
|
|
9343
9385
|
// __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
|
|
9344
9386
|
// demand that fails in a process an in-place update left running says to restart.
|
|
9345
9387
|
function __atomicOnDemandFailed(error, feature) {
|
|
9346
9388
|
return (async () => {
|
|
9347
9389
|
const root = new URL("../", import.meta.url);
|
|
9348
9390
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9349
|
-
const key = `${root.href}#0.10.
|
|
9391
|
+
const key = `${root.href}#0.10.19-alpha.1`;
|
|
9350
9392
|
let release = releases.get(key);
|
|
9351
9393
|
if (release === undefined) {
|
|
9352
9394
|
const current = (async () => {
|
|
@@ -9374,7 +9416,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
9374
9416
|
} catch {
|
|
9375
9417
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
9376
9418
|
}
|
|
9377
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
9419
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.19-alpha.1" ? installed : running !== undefined && running.version !== "0.10.19-alpha.1" ? "0.10.19-alpha.1" : undefined;
|
|
9378
9420
|
if (updatedTo === undefined) throw error;
|
|
9379
9421
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
9380
9422
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|