@bastani/atomic 0.10.11-alpha.2 → 0.10.11
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 +307 -0
- package/README.md +5 -8
- 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 +6 -6
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +5 -5
- package/dist/_shared/mode-shared-2QJSCUM6.js +6 -6
- package/dist/_shared/p0-cli-BB45ZQY6.js +46 -67
- package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +7 -8
- package/dist/_shared/p1a-prewarm-XIU57JHF.js.map +1 -1
- package/dist/_shared/{p1b-elig-ENCUPKKJ.js → p1b-elig-TVB5CBLL.js} +36 -8
- package/dist/_shared/p1b-elig-TVB5CBLL.js.map +1 -0
- package/dist/_shared/p2-shell-main-B2WIALFD.js +6 -3
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +3 -3
- package/dist/_shared/{sdk-IQMULKFU.js → sdk-B5LEWGGI.js} +1218 -657
- package/dist/_shared/sdk-B5LEWGGI.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-3IXNMFM2.js → startup-0-0-XJJDOIEC.js} +50 -48
- package/dist/_shared/startup-0-0-XJJDOIEC.js.map +1 -0
- package/dist/_shared/{startup-0-1-7T2IAE7J.js → startup-0-1-M6OWAYHH.js} +540 -136
- package/dist/_shared/startup-0-1-M6OWAYHH.js.map +1 -0
- package/dist/_shared/startup-0-2-5QHPCEON.js +47 -48
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -1
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +5 -5
- package/dist/_shared/startup-0-4-ZMJV547D.js +12 -7
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
- package/dist/_shared/startup-0-5-YDW47QX6.js +7 -7
- package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +6 -6
- package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -5
- package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
- package/dist/_shared/startup-15-1-4S7FLMNG.js +19 -27
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +2144 -249
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/{startup-8-1-X32CYSXB.js → startup-8-1-LZFXSD3Z.js} +98 -1184
- package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +188 -37
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/storage-status-K7PX2RXA.js +557 -0
- package/dist/_shared/storage-status-K7PX2RXA.js.map +1 -0
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +376 -0
- package/dist/_shared/team-DOQKICG2.js.map +1 -0
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +88 -0
- package/dist/builtin/intercom/README.md +2 -2
- package/dist/builtin/intercom/broker/broker.bundle.mjs +1917 -381
- package/dist/builtin/intercom/broker/client.ts +8 -0
- package/dist/builtin/intercom/broker/database-wake-up-bus.ts +324 -68
- package/dist/builtin/intercom/broker/multinode-router.ts +256 -39
- package/dist/builtin/intercom/broker/multinode-state-store.ts +71 -5
- package/dist/builtin/intercom/broker/open-broker-state.ts +14 -0
- package/dist/builtin/intercom/broker/send-order-gate.ts +5 -2
- package/dist/builtin/intercom/broker/sql-add-column.ts +50 -5
- package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +3 -2
- package/dist/builtin/intercom/broker/sql-held-send-store.ts +2 -2
- package/dist/builtin/intercom/broker/sql-known-session-store.ts +43 -19
- package/dist/builtin/intercom/broker/sql-lease-store.ts +473 -121
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +821 -79
- package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +8 -5
- package/dist/builtin/intercom/broker/sql-released-ask-store.ts +12 -5
- package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +256 -8
- package/dist/builtin/intercom/broker/sql-retention.ts +150 -0
- package/dist/builtin/intercom/broker/sql-schema.ts +175 -24
- package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +74 -19
- package/dist/builtin/intercom/broker/wake-up-bus.ts +6 -0
- package/dist/builtin/intercom/index.bundle.mjs +14 -4
- 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 +20 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/skill-creator/eval-viewer/generate_review.py +8 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +2 -10
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/bun/bundled-sqlite.js +41 -0
- package/dist/bun/bundled-sqlite.js.map +1 -0
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +4 -4
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +3 -3
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.code.js.map +1 -1
- 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 +19 -113
- package/dist/cli/team-command.code.js.map +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +5 -18
- package/dist/cli.js.map +1 -1
- package/dist/core/agent-rehydrate-errors.d.ts +4 -9
- package/dist/core/compaction/compactor.d.ts +3 -3
- package/dist/core/debug.code.js +1 -1
- 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 +4 -4
- package/dist/core/export-html/index.code.js.map +1 -1
- 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 +2 -2
- 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.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/process-start-token.d.ts +12 -3
- package/dist/core/process-tree-containment.d.ts +16 -0
- package/dist/core/sdk-types.d.ts +1 -2
- package/dist/core/sdk-types.js.map +1 -1
- package/dist/core/sdk.code.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +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-schema.d.ts +0 -3
- package/dist/core/storage/added-exports-0-10-11.js +19 -0
- package/dist/core/storage/added-exports-0-10-11.js.map +1 -0
- package/dist/core/storage/creation-time.js +105 -0
- package/dist/core/storage/creation-time.js.map +1 -0
- package/dist/core/storage/database.d.ts +25 -5
- package/dist/core/storage/database.js.map +1 -1
- package/dist/core/storage/dialect.d.ts +1 -1
- package/dist/core/storage/dialect.js +1 -1
- package/dist/core/storage/dialect.js.map +1 -1
- package/dist/core/storage/errors.d.ts +13 -13
- package/dist/core/storage/errors.js +10 -16
- package/dist/core/storage/errors.js.map +1 -1
- package/dist/core/storage/fenced-paths.d.ts +18 -6
- package/dist/core/storage/fenced-paths.js +18 -6
- package/dist/core/storage/fenced-paths.js.map +1 -1
- package/dist/core/storage/file-identity.d.ts +2 -0
- package/dist/core/storage/file-identity.js +24 -8
- package/dist/core/storage/file-identity.js.map +1 -1
- package/dist/core/storage/index.d.ts +3 -2
- package/dist/core/storage/index.js +5 -3
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/libsql-removed.d.ts +71 -0
- package/dist/core/storage/libsql-removed.js +123 -0
- package/dist/core/storage/libsql-removed.js.map +1 -0
- package/dist/core/storage/migrations.d.ts +78 -14
- package/dist/core/storage/migrations.js +375 -49
- package/dist/core/storage/migrations.js.map +1 -1
- package/dist/core/storage/node-sqlite-file-gate.js +0 -15
- package/dist/core/storage/node-sqlite-file-gate.js.map +1 -1
- package/dist/core/storage/node-sqlite-thread.js +215 -30
- package/dist/core/storage/node-sqlite-thread.js.map +1 -1
- package/dist/core/storage/node-sqlite.js +484 -72
- package/dist/core/storage/node-sqlite.js.map +1 -1
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/prefix.d.ts +1 -1
- package/dist/core/storage/prefix.js +9 -2
- package/dist/core/storage/prefix.js.map +1 -1
- package/dist/core/storage/process-selection.d.ts +5 -5
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/schema-catalog.d.ts +76 -15
- package/dist/core/storage/schema-catalog.js +359 -68
- package/dist/core/storage/schema-catalog.js.map +1 -1
- package/dist/core/storage/selection.d.ts +7 -82
- package/dist/core/storage/selection.js +20 -235
- package/dist/core/storage/selection.js.map +1 -1
- 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-detach.d.ts +11 -1
- 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 +4 -7
- package/dist/core/storage/session/fork-staging.code.js.map +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-sweep.js +31 -7
- package/dist/core/storage/session/fork-sweep.js.map +1 -1
- 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-lock.d.ts +100 -0
- package/dist/core/storage/session/jsonl-session-store.d.ts +46 -24
- 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 +9 -9
- package/dist/core/storage/session/released-history-files.code.js.map +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/session-search-index.d.ts +52 -5
- 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.d.ts +99 -18
- 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/sqlite-facade.d.ts +12 -1
- package/dist/core/storage/sqlite-facade.js +310 -33
- package/dist/core/storage/sqlite-facade.js.map +1 -1
- package/dist/core/storage/sqlite-open-batch.js +10 -0
- package/dist/core/storage/sqlite-open-batch.js.map +1 -0
- package/dist/core/storage/storage-status.code.js +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.code.js +1 -1
- package/dist/core/storage/team.d.ts +26 -115
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +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/history-tasks.d.ts +3 -2
- package/dist/core/tools/read-url.code.js +4 -4
- 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 +44 -5
- package/dist/core/worktree-snapshot/blob-store.js +553 -30
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- 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/fork-blob-guard.js +81 -0
- package/dist/core/worktree-snapshot/fork-blob-guard.js.map +1 -0
- package/dist/core/worktree-snapshot/fork-snapshot-index.js +208 -50
- package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -1
- package/dist/core/worktree-snapshot/session-index-reset.code.js +4 -0
- package/dist/core/worktree-snapshot/session-index-reset.code.js.map +1 -1
- 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 +3 -3
- 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 -1
- package/dist/index.js +5 -5
- 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 +1 -1
- 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/startup-shell-eligibility.js +1 -1
- package/dist/modes/interactive-engine/engine-prewarm.d.ts +1 -1
- package/dist/modes/print-mode.js +1 -1
- package/dist/package-manager-cli.code.js +6 -6
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/11.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/2.js +2 -4
- package/dist/startup-stages/3.js +1 -3
- package/dist/startup-stages/4.js +1 -2
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/6.js +5 -7
- package/dist/startup-stages/7.js +3 -10
- package/dist/startup-stages/8.js +7 -2
- package/dist/startup-stages/9.js +1 -7
- package/dist/startup-stages/stages.json +1 -1
- package/dist/utils/compile-cache-deferral.js +8 -13
- package/dist/utils/compile-cache-deferral.js.map +1 -1
- package/dist/utils/compile-cache-warmup-host.js +3 -4
- package/dist/utils/compile-cache-warmup-host.js.map +1 -1
- package/dist/utils/compile-cache.js +12 -100
- package/dist/utils/compile-cache.js.map +1 -1
- 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/dist/utils/worker-threads.js +2 -15
- package/dist/utils/worker-threads.js.map +1 -1
- package/docs/build.md +3 -3
- package/docs/changelog.mdx +1498 -69
- package/docs/compaction/reference.md +5 -5
- package/docs/compaction.md +7 -9
- package/docs/containerization.md +2 -2
- package/docs/custom-provider/api-reference.md +1 -1
- package/docs/docs.json +37 -10
- package/docs/environment-variables.md +0 -2
- package/docs/extensions/api-reference.md +4 -4
- package/docs/getting-started/installation.md +3 -0
- package/docs/guides/configuration.md +1 -1
- package/docs/guides/non-interactive.md +1 -1
- package/docs/guides/resume-on-any-machine.md +14 -22
- package/docs/guides/team-setup.md +56 -83
- package/docs/guides.md +2 -4
- package/docs/herdr.md +1 -1
- package/docs/index.md +1 -1
- package/docs/intercom/operations.md +26 -21
- package/docs/intercom/reference.md +2 -2
- package/docs/intercom.md +1 -1
- package/docs/libraries/storage-postgres.md +9 -9
- package/docs/libraries.md +2 -3
- package/docs/models-configuration.md +2 -2
- package/docs/models.md +2 -3
- package/docs/packages/authoring.md +7 -7
- package/docs/packages.md +1 -1
- package/docs/programmatic.md +2 -2
- package/docs/quickstart.md +1 -1
- package/docs/reference/cli.md +6 -11
- package/docs/reference.md +2 -2
- package/docs/rpc/extension-ui.md +2 -2
- package/docs/sdk/reference.md +5 -4
- package/docs/sdk/storage.md +8 -92
- package/docs/sdk/structured-decisions.md +1 -1
- package/docs/sdk/web-server.md +3 -3
- package/docs/sdk.md +14 -4
- package/docs/security.md +1 -1
- package/docs/session-format.md +5 -5
- package/docs/sessions.md +29 -49
- package/docs/settings.md +7 -8
- package/docs/storage/custom-adapters.md +255 -0
- package/docs/storage/jsonl.md +117 -0
- package/docs/{guides/postgres-pgbouncer.md → storage/postgres/pgbouncer.md} +66 -68
- package/docs/storage/postgres/tuning.md +337 -0
- package/docs/storage/postgres.md +556 -0
- package/docs/storage/sqlite.md +99 -0
- package/docs/storage.md +326 -990
- package/docs/subagents/authoring.md +1 -1
- package/docs/subagents.md +2 -2
- package/docs/tools.md +1 -1
- package/docs/worktree-snapshots.md +2 -2
- package/package.json +9 -9
- package/schemas/models.schema.json +2 -2
- package/schemas/settings.schema.json +0 -14
- package/dist/_shared/p1b-elig-ENCUPKKJ.js.map +0 -1
- package/dist/_shared/sdk-IQMULKFU.js.map +0 -1
- package/dist/_shared/startup-0-0-3IXNMFM2.js.map +0 -1
- package/dist/_shared/startup-0-1-7T2IAE7J.js.map +0 -1
- package/dist/_shared/startup-8-1-X32CYSXB.js.map +0 -1
- package/dist/core/intercom-broker-control.d.ts +0 -129
- package/dist/startup-stages/13.js +0 -1
- package/docs/guides/postgres-tuning.md +0 -311
- package/docs/libraries/storage-libsql.md +0 -97
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
Atomic is a terminal coding-agent runtime. Use built-in tools for file edits and shell commands, [codemode](docs/codemode.md) to script multi-step checks, and [subagents](docs/subagents.md) to delegate work to isolated contexts. Extend Atomic with TypeScript [extensions](#extensions), [skills](#skills), [prompt templates](#prompt-templates), and [themes](#themes), or share them as [Atomic packages](#atomic-packages) via npm or git.
|
|
21
21
|
|
|
22
|
-
Atomic bundles first-party integrations for [subagents](docs/subagents.md), [MCP servers](docs/mcp-servers.md), [web access](docs/web-access.md), and [Intercom](docs/intercom.md). Sessions save to local SQLite by default or share
|
|
22
|
+
Atomic bundles first-party integrations for [subagents](docs/subagents.md), [MCP servers](docs/mcp-servers.md), [web access](docs/web-access.md), and [Intercom](docs/intercom.md). Sessions save to local SQLite by default, or several machines can share them through one PostgreSQL database ([Storage](docs/storage.md)), with [worktree snapshots](docs/worktree-snapshots.md) and [environment blueprints](docs/guides/resume-on-any-machine.md#set-the-environment-up-with-a-blueprint) for cross-machine resume. See [Orchestration](docs/orchestration.md) for multi-step tasks and [Migrating workflows](docs/orchestration/migrating-workflows.md) to convert an earlier workflow file to a skill.
|
|
23
23
|
|
|
24
24
|
Run Atomic interactively, in print or JSON mode, over RPC for process integration, or embedded through the TypeScript SDK.
|
|
25
25
|
|
|
@@ -215,7 +215,7 @@ Sessions store an append-only tree of entries (`id` and `parentId`), enabling in
|
|
|
215
215
|
|
|
216
216
|
### Management
|
|
217
217
|
|
|
218
|
-
Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`), or in a shared PostgreSQL
|
|
218
|
+
Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`), or in a shared PostgreSQL database. See [Storage](docs/storage.md). Legacy `~/.atomic/agent/sessions/` and `~/.pi/agent/sessions/` JSONL files remain readable.
|
|
219
219
|
|
|
220
220
|
```bash
|
|
221
221
|
atomic -c # Continue the most recent session
|
|
@@ -428,7 +428,7 @@ See [docs/packages.md](docs/packages.md).
|
|
|
428
428
|
import { createAgentSession } from "@bastani/atomic";
|
|
429
429
|
|
|
430
430
|
// Builds a ModelRuntime from the active agent directory's auth.json and models.json by default.
|
|
431
|
-
// Pass `sessionStore` for SQLite, JSONL, in-memory,
|
|
431
|
+
// Pass `sessionStore` for SQLite, JSONL, in-memory, or PostgreSQL persistence.
|
|
432
432
|
const { session } = await createAgentSession({
|
|
433
433
|
sessionStore: { kind: "sqlite", path: "./sessions.sqlite" },
|
|
434
434
|
});
|
|
@@ -440,7 +440,7 @@ try {
|
|
|
440
440
|
}
|
|
441
441
|
```
|
|
442
442
|
|
|
443
|
-
- **Storage backends:** Configure SQLite, JSONL, in-memory,
|
|
443
|
+
- **Storage backends:** Configure SQLite, JSONL, in-memory, and PostgreSQL 16+ (`@bastani/atomic-storage-postgres`) stores with `createAgentSession()` or `createAgentSessionRuntime()`. See [SDK storage backends](docs/sdk/storage.md) ([docs.bastani.ai/sdk/storage](https://docs.bastani.ai/sdk/storage)).
|
|
444
444
|
- **Structured decisions:** Make typed, schema-validated classifier or chat decisions without starting a session using `decide()` and `generateStructuredOutput()`. See [Structured decisions](docs/sdk/structured-decisions.md).
|
|
445
445
|
- **Multi-session runtimes and guides:** See [docs/sdk.md](docs/sdk.md), [docs/sdk/web-server.md](docs/sdk/web-server.md), and [examples/sdk/](examples/sdk/).
|
|
446
446
|
|
|
@@ -493,7 +493,7 @@ atomic config [-l] # Enable/disable package resources
|
|
|
493
493
|
atomic auth <login|logout|check|print-api-key|print-bearer-token>
|
|
494
494
|
atomic mcp <add|remove|list|login|logout>
|
|
495
495
|
atomic storage <status|join|migrate|move-snapshot-chunks|search-session|export|import>
|
|
496
|
-
atomic team
|
|
496
|
+
atomic team status
|
|
497
497
|
atomic intercom <status|restart|upgrade>
|
|
498
498
|
atomic blueprint <cache-key|prebuild> # Environment blueprint cache keys and worktree prebuilds
|
|
499
499
|
```
|
|
@@ -627,8 +627,6 @@ When both an `ATOMIC_*` variable and its legacy `PI_*` alias are set, the `ATOMI
|
|
|
627
627
|
| `ATOMIC_CODING_AGENT_SESSION_DIR` | Non-empty value selects a JSONL session directory (overridden by `--session-dir` and `--no-session`; no legacy `PI_*` alias). |
|
|
628
628
|
| `ATOMIC_STORAGE` | Shared storage selection JSON for sessions and Intercom. |
|
|
629
629
|
| `ATOMIC_SESSIONS_STORAGE` | Session-only storage selection JSON (conflicts with `ATOMIC_CODING_AGENT_SESSION_DIR`). |
|
|
630
|
-
| `ATOMIC_PROFILE` | Set to `ci` to select the team database from `ATOMIC_TEAM_*` without writing settings. |
|
|
631
|
-
| `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE`, `ATOMIC_TEAM_PREFIX` | Team database settings used with `ATOMIC_PROFILE=ci`. |
|
|
632
630
|
| `ATOMIC_PACKAGE_DIR` | Override package directory (for Nix/Guix store paths; legacy `PI_PACKAGE_DIR`). |
|
|
633
631
|
| `ATOMIC_OFFLINE` | Set to `1`, `true`, or `yes` to disable startup network calls (`0`/`false` stays online; legacy `PI_OFFLINE`). |
|
|
634
632
|
| `ATOMIC_SKIP_VERSION_CHECK` | Skip startup version check (legacy `PI_SKIP_VERSION_CHECK`). |
|
|
@@ -666,5 +664,4 @@ MIT
|
|
|
666
664
|
- [@bastani/atomic-codemode](https://www.npmjs.com/package/@bastani/atomic-codemode): Sandboxed JavaScript execution for tool scripting
|
|
667
665
|
- [@bastani/atomic-schema](https://www.npmjs.com/package/@bastani/atomic-schema): TypeScript-first JSON Schema builder and validator
|
|
668
666
|
- [@bastani/atomic-telemetry](https://www.npmjs.com/package/@bastani/atomic-telemetry): Vendor-neutral telemetry contracts, metrics, and trace renderers ([docs](docs/libraries/telemetry.md))
|
|
669
|
-
- [@bastani/atomic-storage-libsql](https://www.npmjs.com/package/@bastani/atomic-storage-libsql): Optional Turso / libSQL storage adapter ([docs](docs/libraries/storage-libsql.md))
|
|
670
667
|
- [@bastani/atomic-storage-postgres](https://www.npmjs.com/package/@bastani/atomic-storage-postgres): Optional PostgreSQL 16+ storage adapter ([docs](docs/libraries/storage-postgres.md))
|
|
@@ -31842,7 +31842,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
31842
31842
|
return (async () => {
|
|
31843
31843
|
const root = new URL("../", import.meta.url);
|
|
31844
31844
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
31845
|
-
const key = `${root.href}#0.10.11
|
|
31845
|
+
const key = `${root.href}#0.10.11`;
|
|
31846
31846
|
let release = releases.get(key);
|
|
31847
31847
|
if (release === undefined) {
|
|
31848
31848
|
const current = (async () => {
|
|
@@ -31870,7 +31870,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
31870
31870
|
} catch {
|
|
31871
31871
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
31872
31872
|
}
|
|
31873
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.11
|
|
31873
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11" ? installed : running !== undefined && running.version !== "0.10.11" ? "0.10.11" : undefined;
|
|
31874
31874
|
if (updatedTo === undefined) throw error;
|
|
31875
31875
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
31876
31876
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -40,7 +40,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
40
40
|
return (async () => {
|
|
41
41
|
const root = new URL("../", import.meta.url);
|
|
42
42
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
43
|
-
const key = `${root.href}#0.10.11
|
|
43
|
+
const key = `${root.href}#0.10.11`;
|
|
44
44
|
let release = releases.get(key);
|
|
45
45
|
if (release === undefined) {
|
|
46
46
|
const current = (async () => {
|
|
@@ -68,7 +68,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
68
68
|
} catch {
|
|
69
69
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
70
70
|
}
|
|
71
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.11
|
|
71
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11" ? installed : running !== undefined && running.version !== "0.10.11" ? "0.10.11" : undefined;
|
|
72
72
|
if (updatedTo === undefined) throw error;
|
|
73
73
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
74
74
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -5131,7 +5131,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
5131
5131
|
return (async () => {
|
|
5132
5132
|
const root = new URL("../", import.meta.url);
|
|
5133
5133
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
5134
|
-
const key = `${root.href}#0.10.11
|
|
5134
|
+
const key = `${root.href}#0.10.11`;
|
|
5135
5135
|
let release = releases.get(key);
|
|
5136
5136
|
if (release === undefined) {
|
|
5137
5137
|
const current = (async () => {
|
|
@@ -5159,7 +5159,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
5159
5159
|
} catch {
|
|
5160
5160
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
5161
5161
|
}
|
|
5162
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.11
|
|
5162
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11" ? installed : running !== undefined && running.version !== "0.10.11" ? "0.10.11" : undefined;
|
|
5163
5163
|
if (updatedTo === undefined) throw error;
|
|
5164
5164
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
5165
5165
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __name } from "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME, APP_TITLE, CHANGELOG_URL, CONFIG_DIR_NAME, UpdatedInstallError, VERSION, VERSION_ADOPTION_ENDPOINT, canonicalizePathAsync, createChildProcessEnvironment, createModuleRequire, detectInstallChangeAsync, engineHeapRuntimeArgsForHost, findHelperExecutableAsync, getAgentDir, getAuthPath, getChangelogPath, getCwdRelativePath, getDebugLogPath, getDocsPath, getShareViewerUrl, helperLaunchAsync, isModuleLoadFailure, loadOnDemand, markLifecycleTiming, missingHelperOptions, processCompileCacheDeferral, setDebugSetting, shortenHomePath, updatedInstallError } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, CountdownTimer, DynamicBorder, MissingSessionCwdError, NO_QUEUED_MESSAGES, TrustDecisionSelector, asyncScope, carryRowSource, chatPosition, chatReceipt, deduplicateDiagnostics, findProviderDefaultModel, formatMissingSessionCwdPrompt, formatNoModelsAvailableMessage, getEngineSessionStats, getMissingSessionCwdOptions, getPiUserAgent, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isPathInside, isTrustDecision, isUnknownModel, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, noteRowSource, noteSavedSeq, onSessionProviderRequestDispatched, parseSlashCommand, placeTranscriptFrame, projectTrustWarningVisible, queuedMessagesUnderWay, quitAsInteractiveApp, recordStartupThinkingLevel, rowSource, safeTrustChoiceIndex, savedRowKey, savedSeqOf, setDeprecationWarningSink, setMarkitDiagnosticSink, shouldRenderEngineDiagnosticAsChatError, takeQueuedMessagesDroppedAt, usageCostBreakdown, userMessageOrigin, yieldToEventLoop, yieldToTimerTurn } from "./startup-0-0-
|
|
4
|
-
import { ExtensionInputComponent, ExtensionSelectorComponent, ReopenedCompletionHeaders, cancelInitialBinding, createCustomMessage, ensurePngTranscoder, ensureTool, formatResumeTimings, formatToolStatus, getBuiltinExtensionEntryLabel, getPromptCacheTtlMs as getPromptCacheTtlMs$1, initialBindScope, isOfflineModeEnabled, isVerbatimCompactionMessage, isWorkspaceError, latestResumeTimings, normalizeMessageContent, prewarmModelApi, readHostInputFormRequest, registerInitialBindings, stripVerbatimCompactionPrefix, taskPromptHost, thinkingLevelForModelSwitch } from "./startup-0-1-
|
|
3
|
+
import { BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, CountdownTimer, DynamicBorder, MissingSessionCwdError, NO_QUEUED_MESSAGES, TrustDecisionSelector, asyncScope, carryRowSource, chatPosition, chatReceipt, deduplicateDiagnostics, findProviderDefaultModel, formatMissingSessionCwdPrompt, formatNoModelsAvailableMessage, getEngineSessionStats, getMissingSessionCwdOptions, getPiUserAgent, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isPathInside, isTrustDecision, isUnknownModel, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, noteRowSource, noteSavedSeq, onSessionProviderRequestDispatched, parseSlashCommand, placeTranscriptFrame, projectTrustWarningVisible, queuedMessagesUnderWay, quitAsInteractiveApp, recordStartupThinkingLevel, rowSource, safeTrustChoiceIndex, savedRowKey, savedSeqOf, setDeprecationWarningSink, setMarkitDiagnosticSink, shouldRenderEngineDiagnosticAsChatError, takeQueuedMessagesDroppedAt, usageCostBreakdown, userMessageOrigin, yieldToEventLoop, yieldToTimerTurn } from "./startup-0-0-XJJDOIEC.js";
|
|
4
|
+
import { ExtensionInputComponent, ExtensionSelectorComponent, ReopenedCompletionHeaders, cancelInitialBinding, createCustomMessage, ensurePngTranscoder, ensureTool, formatResumeTimings, formatToolStatus, getBuiltinExtensionEntryLabel, getPromptCacheTtlMs as getPromptCacheTtlMs$1, initialBindScope, isOfflineModeEnabled, isVerbatimCompactionMessage, isWorkspaceError, latestResumeTimings, normalizeMessageContent, prewarmModelApi, readHostInputFormRequest, registerInitialBindings, stripVerbatimCompactionPrefix, taskPromptHost, thinkingLevelForModelSwitch } from "./startup-0-1-M6OWAYHH.js";
|
|
5
5
|
import { KeybindingsManager as KeybindingsManager$1, OVERLAY_ACTIVE_ROW_MARKER, Theme, clickableKeyTextHint, consumeStartupInput, formatKeyText, getAvailableThemes, getAvailableThemesWithPaths, getEditorTheme, getMarkdownTheme, getThemeByName, isNavHelpKey, keyDisplayText, keyHint, keyText, keyTextHint, loadAllHighlightLanguages, navEntryKeyParts, onThemeChange, recordTimeSinceReset, refreshCustomThemes, renderNavKeyOverlay, setRegisteredThemes, slashCommandHint, stopThemeWatcher, theme } from "./p2-shell-main-B2WIALFD.js";
|
|
6
|
-
import { ProjectTrustStore, failureDebugFields, getProjectTrustPathAsync, hasTrustRequiringProjectResourcesAsync, reportDebugAsync } from "./p1b-elig-
|
|
6
|
+
import { ProjectTrustStore, failureDebugFields, getProjectTrustPathAsync, hasTrustRequiringProjectResourcesAsync, reportDebugAsync } from "./p1b-elig-TVB5CBLL.js";
|
|
7
7
|
import { WorkingRunMeter, compactionMeta, findExactModelReferenceMatch, getPowerShellConfigAsync, killSupervisedProcessTrees, killTrackedDetachedChildren, runInProgress, sessionLifetime, showStartupInput, showStartupSelector, taskTranscriptSource } from "./startup-0-2-5QHPCEON.js";
|
|
8
8
|
import { AtomicWorkedStatusComponent, AtomicWorkingLoader, DEFAULT_WORKING_MESSAGE, buildContextEntries, getOwnerTaskStore, isResumeFailure, parseGitUrl, resolveModelScopeFromModels, resolveModelScopeWithDiagnostics, sessionEntryToDisplayMessages, watchAtomicWorkingClock, watchOwnerTaskStoreBinding } from "./startup-0-3-4ZYBYQNM.js";
|
|
9
9
|
import { SESSION_HISTORY_SCAN_ENTRIES, findDecisionError, isDecisionConfigError, isRpcRequestAcceptedFailure, isRpcTransportFailure } from "./settings-startup-HXQLSUWM.js";
|
|
10
10
|
import { readAhead } from "./startup-8-0-34CBHPZH.js";
|
|
11
11
|
import { CredentialSynchronizationError, DefaultPackageManager, chunkedToolResult, chunkedToolResultEntry, findInitialModel, firstSubagentAttempt, getSkillCatalog, isOAuthLoginCancelled, resolveRestoredModelReference, uncachedCopilotModelHint } from "./startup-0-5-YDW47QX6.js";
|
|
12
12
|
import { formatModelLabel } from "./startup-0-4-ZMJV547D.js";
|
|
13
|
-
import { ENGINE_SHUTDOWN_GRACE_MS, FooterDataProvider, appendBoundedStderr, compareWorktreeSnapshot, currentWorktreeSnapshots, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, dismissedAgentPanelItems, ownerTaskViewSource, sourceError, subscribeAgentPanel, worktreeRestoreNotices } from "./startup-8-1-
|
|
13
|
+
import { ENGINE_SHUTDOWN_GRACE_MS, FooterDataProvider, appendBoundedStderr, compareWorktreeSnapshot, currentWorktreeSnapshots, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, dismissedAgentPanelItems, ownerTaskViewSource, sourceError, subscribeAgentPanel, worktreeRestoreNotices } from "./startup-8-1-LZFXSD3Z.js";
|
|
14
14
|
import { tryExecuteSessionSlashCommand } from "./startup-15-0-YUKGAC63.js";
|
|
15
15
|
import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
|
|
16
16
|
import { IsolatedInteractiveRuntime, SessionImportFileNotFoundError, parseSkillBlock, sessionCloseReason } from "./startup-15-1-4S7FLMNG.js";
|
|
@@ -28170,7 +28170,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
28170
28170
|
return (async () => {
|
|
28171
28171
|
const root = new URL("../", import.meta.url);
|
|
28172
28172
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
28173
|
-
const key = `${root.href}#0.10.11
|
|
28173
|
+
const key = `${root.href}#0.10.11`;
|
|
28174
28174
|
let release = releases.get(key);
|
|
28175
28175
|
if (release === undefined) {
|
|
28176
28176
|
const current = (async () => {
|
|
@@ -28198,7 +28198,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
28198
28198
|
} catch {
|
|
28199
28199
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
28200
28200
|
}
|
|
28201
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.11
|
|
28201
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11" ? installed : running !== undefined && running.version !== "0.10.11" ? "0.10.11" : undefined;
|
|
28202
28202
|
if (updatedTo === undefined) throw error;
|
|
28203
28203
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
28204
28204
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { CompactionConfigError, QueuedDeliveryRelay, THINKING_LEVELS, attachJsonlLineReader, bindSavedReadLines, chatReceipt, flushRawStdout, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, onBlueprintBuildFinished, onBlueprintBuildWaiting, outputExtensionLoadErrors, quitAsInteractiveApp, rawStdoutWriteFailed, sliceTail, takeOverStdout, transcriptLayoutOf, userMessageOrigin, waitForRawStdoutBackpressure, withQueuedDeliveryChange, writeRawStdout, yieldToEventLoop } from "./startup-0-0-
|
|
2
|
+
import { CompactionConfigError, QueuedDeliveryRelay, THINKING_LEVELS, attachJsonlLineReader, bindSavedReadLines, chatReceipt, flushRawStdout, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, onBlueprintBuildFinished, onBlueprintBuildWaiting, outputExtensionLoadErrors, quitAsInteractiveApp, rawStdoutWriteFailed, sliceTail, takeOverStdout, transcriptLayoutOf, userMessageOrigin, waitForRawStdoutBackpressure, withQueuedDeliveryChange, writeRawStdout, yieldToEventLoop } from "./startup-0-0-XJJDOIEC.js";
|
|
3
3
|
import { flushLifecycleTraceAtQuit, getAgentDir, loadOnDemand, markLifecycleTiming, setDebugSetting, startedWithHangupIgnored } from "./p0-cli-BB45ZQY6.js";
|
|
4
4
|
import { TuiMainScreen, bindBundledHintCommands, isKeyRelease, runAsHintActivation, setCapabilityOverrides, setKeybindings } from "@bastani/atomic-tui";
|
|
5
5
|
import { KeybindingsManager as KeybindingsManager$1, getEditorTheme, theme } from "./p2-shell-main-B2WIALFD.js";
|
|
6
|
-
import { ensurePngTranscoder, hasQuitStoppableCommands, isJsonValue, killQuitStoppableCommandsNow, parseEngineExplicitQuitCommand, parseInteractiveEngineCommand, prewarmModelApi, runCallback, runSynchronousCallback, serializeInteractiveEngineMessage, settingsWriteOwner, taskPromptHost } from "./startup-0-1-
|
|
6
|
+
import { ensurePngTranscoder, hasQuitStoppableCommands, isJsonValue, killQuitStoppableCommandsNow, parseEngineExplicitQuitCommand, parseInteractiveEngineCommand, prewarmModelApi, runCallback, runSynchronousCallback, serializeInteractiveEngineMessage, settingsWriteOwner, taskPromptHost } from "./startup-0-1-M6OWAYHH.js";
|
|
7
7
|
import { interactiveEngineStartupEnv, isInteractiveEngineChild } from "./p1a-prewarm-XIU57JHF.js";
|
|
8
8
|
import { CONSOLE_CLOSED_EXIT_CODE, CONSOLE_CLOSED_SHUTDOWN_MS, ChatSessionHost, CustomMessageComponent, KeybindingsReloadCoordinator, RETAINED_TOOL_RENDERERS, STOP_ALL_STATUS_KEY, ToolExecutionComponent, agentPanelReturning, bindAgentPanel, createRpcErrorResponse, createRpcSuccessResponse, disposeRenderer, engineTaskInspectorUi, exitWithStatus, formatRpcErrorMessage, handleSetViewedAgent, installEngineAgentViewBridge, markHintRoutesAsEngine, onTaskDismissed, openLocalAgentViewPort, readTaskCompletionHistory, readTaskPrompts, retainedToolRenderer, rpcShutdownErrorEvent, runHintRoute, runRendererCleanup, sameRows, showAgentPanel, showEngineTaskInspector, stopAllBackgroundWork, themedChatHostStyle, withBlockRenderTime } from "./mode-shared-2QJSCUM6.js";
|
|
9
9
|
import { killTrackedDetachedChildren, taskTranscriptSource, watchTaskTranscriptBindings } from "./startup-0-2-5QHPCEON.js";
|
|
10
10
|
import { getOwnerTaskStore, isTaskTurnInterrupted, startInteractiveEngineLiveness, watchOwnerTaskStoreBinding } from "./startup-0-3-4ZYBYQNM.js";
|
|
11
|
-
import { FooterDataProvider, dismissedAgentPanelItems, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, onOwnerTaskAction, ownerTaskViewSource, sourceError, subscribeAgentPanel } from "./startup-8-1-
|
|
11
|
+
import { FooterDataProvider, dismissedAgentPanelItems, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, onOwnerTaskAction, ownerTaskViewSource, sourceError, subscribeAgentPanel } from "./startup-8-1-LZFXSD3Z.js";
|
|
12
12
|
import { writeSync } from "node:fs";
|
|
13
13
|
import { ToolBlock } from "./startup-0-4-ZMJV547D.js";
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -4175,7 +4175,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
4175
4175
|
return (async () => {
|
|
4176
4176
|
const root = new URL("../", import.meta.url);
|
|
4177
4177
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
4178
|
-
const key = `${root.href}#0.10.11
|
|
4178
|
+
const key = `${root.href}#0.10.11`;
|
|
4179
4179
|
let release = releases.get(key);
|
|
4180
4180
|
if (release === undefined) {
|
|
4181
4181
|
const current = (async () => {
|
|
@@ -4203,7 +4203,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
4203
4203
|
} catch {
|
|
4204
4204
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
4205
4205
|
}
|
|
4206
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.11
|
|
4206
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11" ? installed : running !== undefined && running.version !== "0.10.11" ? "0.10.11" : undefined;
|
|
4207
4207
|
if (updatedTo === undefined) throw error;
|
|
4208
4208
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
4209
4209
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __name } from "./rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME, CONFIG_DIR_NAME, DebugError, ENV_OFFLINE, ENV_SKIP_VERSION_CHECK, PACKAGE_NAME, canonicalizePathAsync, createChildProcessEnvironment, createModuleRequire, getAgentDir, getBundledInteractiveAssetPathAsync, getEnvValue, getPathComparisonKey, helperLaunchAsync, missingHelperOptions, serializeDebugError, shortenHomePath, stripBom } from "./p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { BUILTIN_SLASH_COMMANDS, CompactionError, CountdownTimer, DEFAULT_MAX_BYTES, DynamicBorder, FramedSelector, HOST_NOTICE_TYPE, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, Selector, TASK_MARKS, TaskMessageError, VERBATIM_COMPACTION_STRATEGY, addHistoryUsageToTotals, addUsageToTotals, allToolNames, areExperimentalFeaturesEnabled, backgroundTaskScope, bindSavedTaskRowKey, carryRowSource, chatReceipt, chatReceiptWrite, createUsageTotals, defaultModelPerProvider, fetchWithRetry, formatReadLineRange, formatTokenCount, getEngineSessionStats, getTextOutput, getToolExecutionStartedAt, hostNoticeForEvent, isMissingSessionCwdError, isTaskMessageError, keptTaskId, noteRowSource, noteSavedSeq, parseSlashCommand, queueUpdateDeliveries, queuedReceiptsUnderWay, queuedTextsUnderWay, raceWithAbortSignal, replaceTabs, rowSource, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, serializeCompactionError, serializeMissingSessionCwdError, sessionWaitsToRetry, sqliteSessionResumeArgs, taskMark, taskOutcomeStatus } from "./startup-0-0-
|
|
4
|
-
import { ExtensionInputComponent, ExtensionSelectorComponent, SUMMARY_COMPACTION_PREFIX, TaskElapsedClocks, bindTaskClock, createVerbatimCompactionMessage, ensurePngTranscoder, getToolPath, heldPrompts, isVerbatimCompactionMessage, reopenedCompletionName, repairOrphanToolResults, shownSpanMs, stripVerbatimCompactionPrefix, taskClockOf, taskClockRunning, taskClocksFor, taskElapsedMs, thinkingLevelForModelSwitch } from "./startup-0-1-
|
|
3
|
+
import { BUILTIN_SLASH_COMMANDS, CompactionError, CountdownTimer, DEFAULT_MAX_BYTES, DynamicBorder, FramedSelector, HOST_NOTICE_TYPE, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, Selector, TASK_MARKS, TaskMessageError, VERBATIM_COMPACTION_STRATEGY, addHistoryUsageToTotals, addUsageToTotals, allToolNames, areExperimentalFeaturesEnabled, backgroundTaskScope, bindSavedTaskRowKey, carryRowSource, chatReceipt, chatReceiptWrite, createUsageTotals, defaultModelPerProvider, fetchWithRetry, formatReadLineRange, formatTokenCount, getEngineSessionStats, getTextOutput, getToolExecutionStartedAt, hostNoticeForEvent, isMissingSessionCwdError, isTaskMessageError, keptTaskId, noteRowSource, noteSavedSeq, parseSlashCommand, queueUpdateDeliveries, queuedReceiptsUnderWay, queuedTextsUnderWay, raceWithAbortSignal, replaceTabs, rowSource, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, serializeCompactionError, serializeMissingSessionCwdError, sessionWaitsToRetry, sqliteSessionResumeArgs, taskMark, taskOutcomeStatus } from "./startup-0-0-XJJDOIEC.js";
|
|
4
|
+
import { ExtensionInputComponent, ExtensionSelectorComponent, SUMMARY_COMPACTION_PREFIX, TaskElapsedClocks, bindTaskClock, createVerbatimCompactionMessage, ensurePngTranscoder, getToolPath, heldPrompts, isVerbatimCompactionMessage, reopenedCompletionName, repairOrphanToolResults, shownSpanMs, stripVerbatimCompactionPrefix, taskClockOf, taskClockRunning, taskClocksFor, taskElapsedMs, thinkingLevelForModelSwitch } from "./startup-0-1-M6OWAYHH.js";
|
|
5
5
|
import { CodeHighlighter, KeybindingsManager as KeybindingsManager$1, NAV_CONFIRM_WINDOW_MS, SYSTEM_THEME_NAME, TwoPressConfirm, clickableKeyTextHint, colorEnvironment, formatKeyText, getCurrentThemeName, getEditorTheme, getGlobalTheme, getMarkdownTheme, getTerminalTheme, initTheme, isLightTheme, isNavHelpKey, keyDisplayText, keyHint, keyHintIfBound, keyText, keyTextHint, keybindingIdentity, markTerminalColorsPending, navActionText, navFirstKeyText, navKeyText, parenthesizedKeyHint, parseAutoThemeSetting, renderNavHintLine, renderNavKeyOverlay, resolveThemeSetting, sanitizeTerminalText, setTerminalColorScheme, setTerminalColors, setTheme, setThemeInstance, singleLineDisplayText, slashCommandHint, terminalDisplayText, theme } from "./p2-shell-main-B2WIALFD.js";
|
|
6
|
-
import { isDebugEnabled, projectTrustOptionsFor } from "./p1b-elig-
|
|
6
|
+
import { isDebugEnabled, projectTrustOptionsFor } from "./p1b-elig-TVB5CBLL.js";
|
|
7
7
|
import { AgentTokenMeter, WorkingRunMeter, agentTokenTotal, compactionMeta, formatWorkingElapsed, loadTaskOwnTranscriptHistory, normalizeWorkingRunSnapshot, observedTaskChatWrite, runInProgress, taskChatPage, taskOwnTranscriptEntries, taskTranscriptSource, withTaskChatRows } from "./startup-0-2-5QHPCEON.js";
|
|
8
8
|
import { AtomicWorkedStatusComponent, AtomicWorkingStatusComponent, DEFAULT_WORKING_MESSAGE, OwnerTaskStore, assertSessionNotOpenElsewhere, atomicWorkingFrame, atomicWorkingGlyph, getOwnerTaskSession, getOwnerTaskStore, isTaskTurnInterrupted, parseGitUrl, setTaskTurnInterrupted, watchAtomicWorkingClock, watchOwnerTaskStoreBinding, workingMessageColumns } from "./startup-0-3-4ZYBYQNM.js";
|
|
9
9
|
import { isRpcRequestAcceptedFailure } from "./settings-startup-HXQLSUWM.js";
|
|
@@ -11,7 +11,7 @@ import { lastAssistantAnswer } from "./startup-8-0-34CBHPZH.js";
|
|
|
11
11
|
import { CredentialSynchronizationError, QuestionnaireSession, buildItemsForQuestion, childOfAttempt, completionTitleDescription, completionTitleText, firstSubagentAttempt, formatTaskHeartbeatDuration, formatTaskHeartbeatStatus, getSkillCatalog, isResumableStop, latestSubagentAttempt, latestSubagentAttempts, releasedWaitingOn, require_semver, settledTaskResumeId, supersededSettledAttempts, taskHeartbeatKindLabel, taskNoticeLine, waitingReleasedShells, waitingReleasedTools } from "./startup-0-5-YDW47QX6.js";
|
|
12
12
|
import { DETAIL_FIRST_PREFIX, DETAIL_PREFIX, NoticeLine, STATUS_MARKERS, TOOL_BLOCK_LIMITS, ToolBlock, ToolBlockMarkdown, ToolBlockRecords, collapseToolBlockLines, componentNeedsWorkingClock, formatModelLabel, isToolBlock, markdownPreviewRows } from "./startup-0-4-ZMJV547D.js";
|
|
13
13
|
import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
|
|
14
|
-
import { EVENT_REPORT_MESSAGE_TYPE, agentPanelExtensionItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, answerAgentPanelItem, builtinToolBlockPresentation, copyPanelItemStableKey, createLoadedToolDefinition, dismissedAgentPanelItems, formatToolBlockElapsed, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isInterruptedPanelTask, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, notifyAgentPanelChanged, openAgentPanelItem, ownerTaskViewSource, panelItemStableKey, pathExists, plainNoticeBlock, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, retainTaskWindowReader, sampleAgentPanelSources, savedBoundaryCursor, shortTaskTitle, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFragments } from "./startup-8-1-
|
|
14
|
+
import { EVENT_REPORT_MESSAGE_TYPE, agentPanelExtensionItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, answerAgentPanelItem, builtinToolBlockPresentation, copyPanelItemStableKey, createLoadedToolDefinition, dismissedAgentPanelItems, formatToolBlockElapsed, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isInterruptedPanelTask, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, notifyAgentPanelChanged, openAgentPanelItem, ownerTaskViewSource, panelItemStableKey, pathExists, plainNoticeBlock, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, retainTaskWindowReader, sampleAgentPanelSources, savedBoundaryCursor, shortTaskTitle, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFragments } from "./startup-8-1-LZFXSD3Z.js";
|
|
15
15
|
import { queuedMessageReceipt, queuedMessageReceiptId, queuedMessageSaved } from "./startup-15-0-YUKGAC63.js";
|
|
16
16
|
import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
|
|
17
17
|
import { isTruthyEnvFlag } from "./p1a-prewarm-XIU57JHF.js";
|
|
@@ -27319,7 +27319,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
27319
27319
|
return (async () => {
|
|
27320
27320
|
const root = new URL("../", import.meta.url);
|
|
27321
27321
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
27322
|
-
const key = `${root.href}#0.10.11
|
|
27322
|
+
const key = `${root.href}#0.10.11`;
|
|
27323
27323
|
let release = releases.get(key);
|
|
27324
27324
|
if (release === undefined) {
|
|
27325
27325
|
const current = (async () => {
|
|
@@ -27347,7 +27347,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
27347
27347
|
} catch {
|
|
27348
27348
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
27349
27349
|
}
|
|
27350
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.11
|
|
27350
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11" ? installed : running !== undefined && running.version !== "0.10.11" ? "0.10.11" : undefined;
|
|
27351
27351
|
if (updatedTo === undefined) throw error;
|
|
27352
27352
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
27353
27353
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -14,8 +14,45 @@ import { pathExists } from "../utils/path-exists.js";
|
|
|
14
14
|
import { appendFileSync, existsSync as existsSync$1, mkdirSync as mkdirSync$1, readFileSync as readFileSync$1, rmSync as rmSync$1 } from "node:fs";
|
|
15
15
|
import { Worker } from "node:worker_threads";
|
|
16
16
|
import { EVAL_WORKER_BUILTIN, evalWorkerExecArgv } from "../utils/worker-threads.js";
|
|
17
|
-
import { cachedDataVersionTag, getHeapStatistics
|
|
17
|
+
import { cachedDataVersionTag, getHeapStatistics } from "node:v8";
|
|
18
18
|
import { nodeOptionsFromEnvironment, splitNodeOptions, startupNodeOptions } from "@bastani/atomic-codemode/node-options";
|
|
19
|
+
// dist/utils/node-version-floor.js
|
|
20
|
+
/**
|
|
21
|
+
* The oldest Node.js an npm install of Atomic runs on: the floor of package.json's `engines.node`. npm only warns when
|
|
22
|
+
* the running Node.js is older, and Atomic would then fail later with an error that does not name the cause, so the CLI
|
|
23
|
+
* refuses it at startup instead. The release archive runs on the Bun runtime it bundles, which this does not check.
|
|
24
|
+
*/
|
|
25
|
+
const MINIMUM_NODE_VERSION = "24.20.0";
|
|
26
|
+
/** The installation guide's section on which Node.js version Atomic needs and how to upgrade. */
|
|
27
|
+
const NODE_VERSION_GUIDE_URL = "https://docs.bastani.ai/getting-started/installation#nodejs-version";
|
|
28
|
+
function versionParts(version) {
|
|
29
|
+
return version.replace(/^v/, "").split(/[.+-]/, 3).map((part) => Number.parseInt(part, 10) || 0);
|
|
30
|
+
}
|
|
31
|
+
/** The message refusing this runtime when it is Node.js older than `MINIMUM_NODE_VERSION`, otherwise `undefined`. */
|
|
32
|
+
function unsupportedNodeVersionMessage(versions) {
|
|
33
|
+
if (versions.bun !== void 0) return void 0;
|
|
34
|
+
const running = versionParts(versions.node);
|
|
35
|
+
const floor = versionParts(MINIMUM_NODE_VERSION);
|
|
36
|
+
for (let index = 0; index < floor.length; index++) {
|
|
37
|
+
const difference = (running[index] ?? 0) - (floor[index] ?? 0);
|
|
38
|
+
if (difference > 0) return void 0;
|
|
39
|
+
if (difference < 0) return [
|
|
40
|
+
`Atomic needs Node.js ${MINIMUM_NODE_VERSION} or newer, but this is Node.js ${versions.node}.`,
|
|
41
|
+
"Install the current Node.js 24 LTS release, then reinstall Atomic with `npm install -g @bastani/atomic`.",
|
|
42
|
+
`See ${NODE_VERSION_GUIDE_URL}`
|
|
43
|
+
].join("\n");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// dist/node-version-check.js
|
|
47
|
+
/**
|
|
48
|
+
* Refuses a Node.js older than Atomic's floor before the rest of the CLI loads. `cli.ts` imports this module first, so it
|
|
49
|
+
* runs before the modules that would fail on that Node.js.
|
|
50
|
+
*/
|
|
51
|
+
const message = unsupportedNodeVersionMessage(process.versions);
|
|
52
|
+
if (message !== void 0) {
|
|
53
|
+
process.stderr.write(`${message}\n`);
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
19
56
|
// dist/core/builtin-install-layout.js
|
|
20
57
|
const BUILTIN_PACKAGE_DIR_NAMES = [
|
|
21
58
|
"subagents",
|
|
@@ -2213,9 +2250,7 @@ var compile_cache_exports = /* @__PURE__ */ __exportAll({
|
|
|
2213
2250
|
compileCacheWarmMarker: () => compileCacheWarmMarker,
|
|
2214
2251
|
currentCompileCacheWarmMarker: () => currentCompileCacheWarmMarker,
|
|
2215
2252
|
enablePersistentCompileCache: () => enablePersistentCompileCache,
|
|
2216
|
-
engineCompileCacheResetHeapMb: () => engineCompileCacheResetHeapMb,
|
|
2217
2253
|
flushPersistentCompileCache: () => flushPersistentCompileCache,
|
|
2218
|
-
hostAutoSizedEngineHeap: () => hostAutoSizedEngineHeap,
|
|
2219
2254
|
isCiValue: () => isCiValue,
|
|
2220
2255
|
startsCompileCacheHelper: () => startsCompileCacheHelper
|
|
2221
2256
|
});
|
|
@@ -2223,7 +2258,6 @@ const __atomicDistModuleUrl$2 = new URL("../utils/compile-cache.js", import.meta
|
|
|
2223
2258
|
const compileCacheApi = nodeModule;
|
|
2224
2259
|
const COMPILE_CACHE_ENGINE_WARMUP_ENV = "ATOMIC_INTERNAL_COMPILE_CACHE_WARMUP";
|
|
2225
2260
|
const COMPILE_CACHE_ENGINE_MATCH_HOST_ENV = "ATOMIC_INTERNAL_COMPILE_CACHE_MATCH_HOST";
|
|
2226
|
-
const ENGINE_WORKER_HEAP_MB_SYMBOL = /* @__PURE__ */ Symbol.for("atomic.engine-worker-heap-mb.v1");
|
|
2227
2261
|
function compileCacheStartMode(input) {
|
|
2228
2262
|
if (input.platform !== "win32" || input.runtimeIsBun || input.unsupported) return "enable";
|
|
2229
2263
|
if (input.alreadyEnabled || input.disabled || !input.interactive || !input.helperRuntime) return "enable";
|
|
@@ -2238,12 +2272,6 @@ function isCiValue(value) {
|
|
|
2238
2272
|
return normalized !== "" && normalized !== "0" && normalized !== "false";
|
|
2239
2273
|
}
|
|
2240
2274
|
const HEAP_SIZE_FLAG = /^--max[-_]old[-_]space[-_]size=\d+$/;
|
|
2241
|
-
const HEAP_SIZE_OPTION_NAMES = /* @__PURE__ */ new Set([
|
|
2242
|
-
"--max-old-space-size",
|
|
2243
|
-
"--max-old-space-size-percentage",
|
|
2244
|
-
"--max-heap-size"
|
|
2245
|
-
]);
|
|
2246
|
-
const V8_HEAP_SIZE_OPTION_NAMES = /* @__PURE__ */ new Set(["--max-old-space-size", "--max-heap-size"]);
|
|
2247
2275
|
const PRELOAD_FLAGS = /* @__PURE__ */ new Set([
|
|
2248
2276
|
"-r",
|
|
2249
2277
|
"--require",
|
|
@@ -2251,37 +2279,6 @@ const PRELOAD_FLAGS = /* @__PURE__ */ new Set([
|
|
|
2251
2279
|
"--loader",
|
|
2252
2280
|
"--experimental-loader"
|
|
2253
2281
|
]);
|
|
2254
|
-
function flagsSetHeapSize(flags) {
|
|
2255
|
-
for (const flag of flags) {
|
|
2256
|
-
if (flag === "--") break;
|
|
2257
|
-
if (!flag.startsWith("-")) continue;
|
|
2258
|
-
const dashes = flag.startsWith("--") ? 2 : 1;
|
|
2259
|
-
const equals = flag.indexOf("=");
|
|
2260
|
-
const name = `--${(equals === -1 ? flag : flag.slice(0, equals)).slice(dashes).replaceAll("_", "-")}`;
|
|
2261
|
-
if (!HEAP_SIZE_OPTION_NAMES.has(name)) continue;
|
|
2262
|
-
if (dashes === 1 && !V8_HEAP_SIZE_OPTION_NAMES.has(name)) continue;
|
|
2263
|
-
return true;
|
|
2264
|
-
}
|
|
2265
|
-
return false;
|
|
2266
|
-
}
|
|
2267
|
-
function parseAutoHeapMb(flag) {
|
|
2268
|
-
if (!HEAP_SIZE_FLAG.test(flag)) return void 0;
|
|
2269
|
-
const mb = Number(flag.slice(flag.indexOf("=") + 1));
|
|
2270
|
-
return Number.isSafeInteger(mb) && mb > 0 ? mb : void 0;
|
|
2271
|
-
}
|
|
2272
|
-
function hostAutoSizedEngineHeap(hostExecArgv, nodeOptions, engineRuntimeArgs) {
|
|
2273
|
-
if (flagsSetHeapSize(hostExecArgv)) return false;
|
|
2274
|
-
const words = splitNodeOptions(nodeOptions ?? "");
|
|
2275
|
-
if (!words || flagsSetHeapSize(words)) return false;
|
|
2276
|
-
return engineRuntimeArgs.filter((flag) => parseAutoHeapMb(flag) !== void 0 && !hostExecArgv.includes(flag)).length === 1;
|
|
2277
|
-
}
|
|
2278
|
-
function engineCompileCacheResetHeapMb(input) {
|
|
2279
|
-
if (input.runtimeIsBun || input.unsupported || input.alreadyEnabled || input.disabled || !input.matchHostTag) return;
|
|
2280
|
-
const words = splitNodeOptions(input.nodeOptions ?? "");
|
|
2281
|
-
if (!words || flagsSetHeapSize(words)) return void 0;
|
|
2282
|
-
const heapValues = input.execArgv.map(parseAutoHeapMb).filter((mb) => mb !== void 0);
|
|
2283
|
-
return heapValues.length === 1 ? heapValues[0] : void 0;
|
|
2284
|
-
}
|
|
2285
2282
|
function keptFlags(flags) {
|
|
2286
2283
|
const kept = [];
|
|
2287
2284
|
for (let index = 0; index < flags.length; index++) {
|
|
@@ -2340,21 +2337,6 @@ function enablePersistentCompileCache(options = {}) {
|
|
|
2340
2337
|
const unsupported = typeof compileCacheApi.enableCompileCache !== "function";
|
|
2341
2338
|
const alreadyEnabled = compileCacheApi.getCompileCacheDir?.() !== void 0;
|
|
2342
2339
|
const disabled = process.env.NODE_DISABLE_COMPILE_CACHE !== void 0;
|
|
2343
|
-
const resetHeapMb = engineCompileCacheResetHeapMb({
|
|
2344
|
-
runtimeIsBun,
|
|
2345
|
-
unsupported,
|
|
2346
|
-
alreadyEnabled,
|
|
2347
|
-
disabled,
|
|
2348
|
-
matchHostTag: options.matchHostTag === true,
|
|
2349
|
-
execArgv: process.execArgv,
|
|
2350
|
-
nodeOptions: process.env.NODE_OPTIONS
|
|
2351
|
-
});
|
|
2352
|
-
if (resetHeapMb !== void 0) try {
|
|
2353
|
-
const beforeTag = cachedDataVersionTag();
|
|
2354
|
-
setFlagsFromString("--max-old-space-size=0");
|
|
2355
|
-
if (cachedDataVersionTag() === beforeTag) setFlagsFromString(`--max-old-space-size=${resetHeapMb}`);
|
|
2356
|
-
else globalThis[ENGINE_WORKER_HEAP_MB_SYMBOL] = resetHeapMb;
|
|
2357
|
-
} catch {}
|
|
2358
2340
|
const runtime = compileCacheHelperRuntime(process.execArgv, process.env);
|
|
2359
2341
|
const buildId = compileCacheBuildId(`${__atomicDistModuleUrl$2}\0${options.build ?? ""}`);
|
|
2360
2342
|
if (compileCacheStartMode({
|
|
@@ -2399,22 +2381,19 @@ const deferrals = compile_cache_exports;
|
|
|
2399
2381
|
function processCompileCacheDeferral() {
|
|
2400
2382
|
return deferrals.compileCacheDeferral?.();
|
|
2401
2383
|
}
|
|
2384
|
+
/**
|
|
2385
|
+
* Gives an engine child no environment. Node.js 22 engines needed it to align their compile-cache tag with their host's
|
|
2386
|
+
* (#6222); still exported because a process of 0.10.4 that an in-place update caught imports it from this module's
|
|
2387
|
+
* shared file.
|
|
2388
|
+
*/
|
|
2389
|
+
function engineCompileCacheMatchHostEnv(_engineRuntimeArgs) {
|
|
2390
|
+
return {};
|
|
2391
|
+
}
|
|
2402
2392
|
/** The environment an engine child gets when this process leaves its cold cache to a helper that warms the engine's too. */
|
|
2403
2393
|
function engineCompileCacheWarmupEnv() {
|
|
2404
2394
|
const name = deferrals.COMPILE_CACHE_ENGINE_WARMUP_ENV;
|
|
2405
2395
|
return name !== void 0 && processCompileCacheDeferral() ? { [name]: "1" } : {};
|
|
2406
2396
|
}
|
|
2407
|
-
/**
|
|
2408
|
-
* The environment an auto-sized Node engine child gets so on Node 22 it aligns its compile-cache tag with the
|
|
2409
|
-
* untouched host (#6222). Omitted on Bun or when the host itself passed an explicit heap size.
|
|
2410
|
-
*/
|
|
2411
|
-
function engineCompileCacheMatchHostEnv(engineRuntimeArgs) {
|
|
2412
|
-
if ("bun" in process.versions) return {};
|
|
2413
|
-
const name = deferrals.COMPILE_CACHE_ENGINE_MATCH_HOST_ENV;
|
|
2414
|
-
const check = deferrals.hostAutoSizedEngineHeap;
|
|
2415
|
-
if (name === void 0 || check === void 0) return {};
|
|
2416
|
-
return check(process.execArgv, process.env.NODE_OPTIONS, engineRuntimeArgs) ? { [name]: "1" } : {};
|
|
2417
|
-
}
|
|
2418
2397
|
// dist/utils/windows-cwd.js
|
|
2419
2398
|
/** Safe Win32 path length threshold for `CreateProcessW` `lpCurrentDirectory` without an extended `\\?\` prefix. */
|
|
2420
2399
|
const SAFE_WINDOWS_CWD_LENGTH = 248;
|