@bastani/atomic 0.10.11-alpha.1 → 0.10.11-alpha.3
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 +155 -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 +9 -9
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +8 -8
- package/dist/_shared/mode-shared-2QJSCUM6.js +9 -9
- 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} +14 -2
- package/dist/_shared/{p1b-elig-ENCUPKKJ.js.map → p1b-elig-TVB5CBLL.js.map} +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-AVFII7NK.js → sdk-B5LEWGGI.js} +2633 -488
- package/dist/_shared/sdk-B5LEWGGI.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +3 -3
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +1 -1
- package/dist/_shared/{settings-startup-4QCVCI53.js → settings-startup-HXQLSUWM.js} +8 -2
- package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -0
- package/dist/_shared/{startup-0-0-57KF6LZH.js → startup-0-0-EZUKEP4Q.js} +436 -51
- package/dist/_shared/startup-0-0-EZUKEP4Q.js.map +1 -0
- package/dist/_shared/{startup-0-1-GIY75K46.js → startup-0-1-RTOHJFDJ.js} +240 -279
- package/dist/_shared/startup-0-1-RTOHJFDJ.js.map +1 -0
- package/dist/_shared/{startup-0-2-27OWFHV6.js → startup-0-2-5QHPCEON.js} +254 -46
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -0
- package/dist/_shared/{startup-0-3-T4DVFYWX.js → startup-0-3-4ZYBYQNM.js} +273 -14
- package/dist/_shared/startup-0-3-4ZYBYQNM.js.map +1 -0
- package/dist/_shared/startup-0-4-ZMJV547D.js +14 -9
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
- package/dist/_shared/startup-0-5-YDW47QX6.js +10 -10
- package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +9 -9
- package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +6 -7
- package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +7 -7
- package/dist/_shared/startup-15-1-4S7FLMNG.js +22 -30
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +455 -102
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/{startup-8-1-X32CYSXB.js → startup-8-1-LZFXSD3Z.js} +162 -1184
- package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +189 -36
- 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 +3 -3
- package/dist/builtin/intercom/CHANGELOG.md +34 -0
- package/dist/builtin/intercom/README.md +2 -2
- package/dist/builtin/intercom/broker/broker.bundle.mjs +1091 -344
- package/dist/builtin/intercom/broker/database-wake-up-bus.ts +243 -64
- package/dist/builtin/intercom/broker/multinode-router.ts +154 -22
- package/dist/builtin/intercom/broker/multinode-state-store.ts +30 -3
- package/dist/builtin/intercom/broker/open-broker-state.ts +14 -0
- package/dist/builtin/intercom/broker/sql-add-column.ts +29 -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 +208 -101
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +516 -102
- 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 +24 -7
- package/dist/builtin/intercom/broker/sql-retention.ts +141 -0
- package/dist/builtin/intercom/broker/sql-schema.ts +199 -27
- 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 +2 -3
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +6 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +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 +6 -6
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +4 -4
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +4 -4
- 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 +2 -2
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +2 -2
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +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 +20 -114
- 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 +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/runner-context.js +3 -3
- 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 +8 -0
- 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 +4 -4
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +27 -15
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-open-markers.js +3 -0
- package/dist/core/session-open-markers.js.map +1 -0
- package/dist/core/session-storage.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/added-exports.js +3 -0
- package/dist/core/storage/added-exports.js.map +1 -1
- 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 +56 -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 +11 -0
- package/dist/core/storage/fenced-paths.js +11 -0
- 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 +4 -3
- 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 +81 -8
- package/dist/core/storage/migrations.js +386 -47
- 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 +36 -12
- package/dist/core/storage/node-sqlite-thread.js.map +1 -1
- package/dist/core/storage/node-sqlite.js +135 -3
- 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 +14 -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 +82 -5
- package/dist/core/storage/schema-catalog.js +244 -34
- 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 +9 -8
- package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +4 -4
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/errors.js +1 -1
- package/dist/core/storage/session/expanded-child-details.code.js +3 -3
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-detach.d.ts +118 -0
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-schema.js +53 -0
- package/dist/core/storage/session/fork-schema.js.map +1 -0
- package/dist/core/storage/session/fork-segments.d.ts +58 -0
- package/dist/core/storage/session/fork-staging.code.js +5 -8
- 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 +61 -0
- package/dist/core/storage/session/fork-sweep.js.map +1 -0
- package/dist/core/storage/session/fork-window.code.js +4 -4
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.d.ts +42 -2
- 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 +4 -4
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.code.js +1 -1
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/session-search-index.d.ts +43 -4
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +4 -4
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +394 -20
- package/dist/core/storage/session/sql-session-store.impl.js +4 -4
- package/dist/core/storage/session/sql-session-store.js +4 -4
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/session/types.d.ts +22 -0
- package/dist/core/storage/sqlite-facade.d.ts +23 -2
- package/dist/core/storage/sqlite-facade.js +34 -0
- package/dist/core/storage/sqlite-facade.js.map +1 -1
- 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 +4 -4
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +5 -5
- 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-session.d.ts +2 -0
- 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 +71 -3
- package/dist/core/worktree-snapshot/blob-store.js +575 -67
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- package/dist/core/worktree-snapshot/errors.code.js +3 -3
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/fork-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 +162 -0
- package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -0
- 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 +2 -2
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +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 +8 -8
- package/dist/main-first-time-setup.code.js +2 -2
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/main.js +1 -1
- package/dist/modes/interactive/components/stored-tree-view.code.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/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 +7 -7
- 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 -3
- 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 -6
- 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 +3 -3
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/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 +1421 -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 +31 -42
- 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} +73 -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 +333 -956
- 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/sdk-AVFII7NK.js.map +0 -1
- package/dist/_shared/settings-startup-4QCVCI53.js.map +0 -1
- package/dist/_shared/startup-0-0-57KF6LZH.js.map +0 -1
- package/dist/_shared/startup-0-1-GIY75K46.js.map +0 -1
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +0 -1
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +0 -1
- 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
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
SentQuestionRoute,
|
|
20
20
|
} from "./multinode-state-store.js";
|
|
21
21
|
import { rowTransaction } from "./sql-outbox-store.js";
|
|
22
|
+
import { deleteInBatches, storeNow } from "./sql-retention.js";
|
|
22
23
|
import { ensureBrokerSchema, withBrokerSchemaCatalog } from "./sql-schema.js";
|
|
23
24
|
|
|
24
25
|
type SentRow = SqliteRow & {
|
|
@@ -53,6 +54,27 @@ export interface SqlSentMessageAuthority extends SentMessageAuthority {
|
|
|
53
54
|
* send's outbox row is inserted only under it, after the send's own `reserveStatement` (#6560).
|
|
54
55
|
*/
|
|
55
56
|
reservedCondition(key: SentMessageKey): SqliteStatement;
|
|
57
|
+
/**
|
|
58
|
+
* The writes and reads of `reservation`'s row a send makes in one round trip on PostgreSQL, each decided by the
|
|
59
|
+
* database (`OutboxReservation`); undefined for a reservation `reserveIn` refuses without writing.
|
|
60
|
+
*/
|
|
61
|
+
reservationOf(reservation: SentMessageReservation): OutboxReservation | undefined;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The statements of the sent-message table a send's one-round-trip transaction makes (`SqlOutboxStore.enqueueAtOnce`):
|
|
66
|
+
* the reservation's insert and delete, each made only while a condition the caller gives holds, and reads of it.
|
|
67
|
+
*/
|
|
68
|
+
export interface OutboxReservation {
|
|
69
|
+
readonly digest: string;
|
|
70
|
+
/** Inserts the reservation as `reserveStatement` does, only while `condition` holds, answering `returning` if it did. */
|
|
71
|
+
reserveWhere(condition: SqliteStatement, returning: string): SqliteStatement;
|
|
72
|
+
/** Deletes the reservation, only while it holds this digest and `condition` holds. */
|
|
73
|
+
forgetWhere(condition: SqliteStatement): SqliteStatement;
|
|
74
|
+
/** A read, usable as a scalar subquery, of the digest that holds the message now, or null. */
|
|
75
|
+
readonly holder: SqliteStatement;
|
|
76
|
+
/** An SQL condition that holds while this digest holds the message (`reservedCondition`). */
|
|
77
|
+
readonly held: SqliteStatement;
|
|
56
78
|
}
|
|
57
79
|
|
|
58
80
|
/**
|
|
@@ -100,19 +122,51 @@ async function openSentMessageAuthorityInCatalog({
|
|
|
100
122
|
return executor.get<SentRow>(sql, ...params);
|
|
101
123
|
};
|
|
102
124
|
|
|
125
|
+
/** The values of `reservation`'s row, in the order of `reserveStatement`'s columns. */
|
|
126
|
+
const reservedValues = (reservation: SentMessageReservation) => [
|
|
127
|
+
reservation.messageId,
|
|
128
|
+
reservation.digest,
|
|
129
|
+
reservation.targetIdentity,
|
|
130
|
+
reservation.questionRoute === undefined
|
|
131
|
+
? null
|
|
132
|
+
: JSON.stringify({
|
|
133
|
+
targetSessionId: reservation.questionRoute.targetSessionId,
|
|
134
|
+
senderGroupIdentity: reservation.questionRoute.senderGroupIdentity,
|
|
135
|
+
}),
|
|
136
|
+
];
|
|
137
|
+
const reserved = `INSERT INTO ${table}(message_id, digest, target_identity, question_route_json, state, recorded_at)`;
|
|
138
|
+
|
|
103
139
|
const reserveStatement = (reservation: SentMessageReservation): SqliteStatement | undefined => {
|
|
104
140
|
if (reservation.messageId.length === 0 || reservation.targetIdentity.length === 0) return undefined;
|
|
105
|
-
const route =
|
|
106
|
-
reservation.questionRoute === undefined
|
|
107
|
-
? null
|
|
108
|
-
: JSON.stringify({
|
|
109
|
-
targetSessionId: reservation.questionRoute.targetSessionId,
|
|
110
|
-
senderGroupIdentity: reservation.questionRoute.senderGroupIdentity,
|
|
111
|
-
});
|
|
112
141
|
return {
|
|
113
|
-
sql:
|
|
142
|
+
sql: `${reserved}
|
|
114
143
|
VALUES (?, ?, ?, ?, 'reserved', ${nowMs}) ON CONFLICT(message_id) DO NOTHING`,
|
|
115
|
-
params:
|
|
144
|
+
params: reservedValues(reservation),
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const reservedCondition = (key: SentMessageKey): SqliteStatement => ({
|
|
149
|
+
sql: `EXISTS (SELECT 1 FROM ${table} WHERE message_id = ? AND digest = ?)`,
|
|
150
|
+
params: [key.messageId, key.digest],
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
const reservationOf = (reservation: SentMessageReservation): OutboxReservation | undefined => {
|
|
154
|
+
if (reservation.messageId.length === 0 || reservation.targetIdentity.length === 0) return undefined;
|
|
155
|
+
const { messageId, digest } = reservation;
|
|
156
|
+
return {
|
|
157
|
+
digest,
|
|
158
|
+
reserveWhere: (condition, returning) => ({
|
|
159
|
+
sql: `${reserved}
|
|
160
|
+
SELECT ?, ?, ?, ?, 'reserved', ${nowMs} WHERE ${condition.sql} ON CONFLICT(message_id) DO NOTHING
|
|
161
|
+
RETURNING ${returning}`,
|
|
162
|
+
params: [...reservedValues(reservation), ...condition.params],
|
|
163
|
+
}),
|
|
164
|
+
forgetWhere: (condition) => ({
|
|
165
|
+
sql: `DELETE FROM ${table} WHERE message_id = ? AND digest = ? AND (${condition.sql})`,
|
|
166
|
+
params: [messageId, digest, ...condition.params],
|
|
167
|
+
}),
|
|
168
|
+
holder: { sql: `SELECT digest FROM ${table} WHERE message_id = ?`, params: [messageId] },
|
|
169
|
+
held: reservedCondition({ messageId, digest }),
|
|
116
170
|
};
|
|
117
171
|
};
|
|
118
172
|
|
|
@@ -179,10 +233,8 @@ async function openSentMessageAuthorityInCatalog({
|
|
|
179
233
|
forgetIn,
|
|
180
234
|
lookupStatement,
|
|
181
235
|
reserveStatement,
|
|
182
|
-
reservedCondition
|
|
183
|
-
|
|
184
|
-
params: [key.messageId, key.digest],
|
|
185
|
-
}),
|
|
236
|
+
reservedCondition,
|
|
237
|
+
reservationOf,
|
|
186
238
|
async reserve(reservation): Promise<SentMessageReserveResult> {
|
|
187
239
|
if (reservation.messageId.length === 0) return emptyMessageId;
|
|
188
240
|
if (reservation.targetIdentity.length === 0) return { status: "invalid", reason: "empty-target-identity" };
|
|
@@ -203,12 +255,15 @@ async function openSentMessageAuthorityInCatalog({
|
|
|
203
255
|
if (key.messageId.length === 0) return emptyMessageId;
|
|
204
256
|
return database.transaction((tx) => forgetIn(tx, key), leadingWith(forgetStatement(key)));
|
|
205
257
|
},
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
258
|
+
prune(olderThanMs: number): Promise<number> {
|
|
259
|
+
// Oldest first, from `<table>_recorded`, in batches.
|
|
260
|
+
return deleteInBatches(database, {
|
|
261
|
+
table,
|
|
262
|
+
key: "message_id",
|
|
263
|
+
where: `recorded_at < ${storeNow(database)} - ?`,
|
|
264
|
+
params: [olderThanMs],
|
|
265
|
+
orderBy: "recorded_at",
|
|
266
|
+
});
|
|
212
267
|
},
|
|
213
268
|
};
|
|
214
269
|
}
|
|
@@ -17,6 +17,12 @@ export interface WakeUpHint {
|
|
|
17
17
|
* skips one because of its version.
|
|
18
18
|
*/
|
|
19
19
|
readonly version: number;
|
|
20
|
+
/**
|
|
21
|
+
* The recipient whose queue the hint is about (`deliveryTargetIdentity`), when one is: the broker then reads that
|
|
22
|
+
* queue alone instead of every recipient it hosts. Absent from hints that concern no single recipient and from those of
|
|
23
|
+
* earlier releases.
|
|
24
|
+
*/
|
|
25
|
+
readonly targetIdentity?: string;
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
export type WakeUpEvent =
|
|
@@ -7,7 +7,7 @@ import * as __atomicHostImport1 from "@bastani/atomic-ai";
|
|
|
7
7
|
if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
|
|
8
8
|
if (missing.length > 0) {
|
|
9
9
|
const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
|
|
10
|
-
if (__atomicHostImport0.VERSION !== "0.10.11-alpha.
|
|
10
|
+
if (__atomicHostImport0.VERSION !== "0.10.11-alpha.3") missing.unshift(application + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using the intercom extension.");
|
|
11
11
|
throw new Error(missing.join("\n"));
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -16983,11 +16983,10 @@ function piIntercomExtension(atomic, testOverrides = {}) {
|
|
|
16983
16983
|
throw new IntercomRuntimeInactiveError;
|
|
16984
16984
|
const actual = routing?.acrossMachines ?? false;
|
|
16985
16985
|
const explicit = explicitHomeGroup(config, ctx);
|
|
16986
|
-
const strictSharedProfile = selectedShared && (process.env.ATOMIC_PROFILE ?? "").trim() === "ci";
|
|
16987
16986
|
if (routing !== undefined) {
|
|
16988
16987
|
brokerRouting = actual;
|
|
16989
16988
|
const brokerLacksSelectedStorage = !routing.hasSharedStorage && selectedShared;
|
|
16990
|
-
if (brokerLacksSelectedStorage
|
|
16989
|
+
if (brokerLacksSelectedStorage) {
|
|
16991
16990
|
if (sessionHomeGroup === null)
|
|
16992
16991
|
await warmProjectGroup(ctx);
|
|
16993
16992
|
throw new IntercomRoutingMismatchError("shared-storage-not-on-broker", resolveSessionHomeGroup());
|
|
@@ -6,7 +6,7 @@ import * as __atomicHostImport0 from "@bastani/atomic";
|
|
|
6
6
|
if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
|
|
7
7
|
if (missing.length > 0) {
|
|
8
8
|
const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
|
|
9
|
-
if (__atomicHostImport0.VERSION !== "0.10.11-alpha.
|
|
9
|
+
if (__atomicHostImport0.VERSION !== "0.10.11-alpha.3") missing.unshift(application + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using the mcp extension.");
|
|
10
10
|
throw new Error(missing.join("\n"));
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.10.11-alpha.2] - 2026-11-26
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- A subagent started with `context: "fork"` now shares its parent's history in the session store instead of copying it, so it starts about as fast from a long conversation as from a short one. It reads, resumes and exports as before. See [Shared-history forks](../coding-agent/docs/storage.md#shared-history-forks) in Atomic's storage guide ([#6608](https://github.com/bastani-inc/atomic/pull/6608), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
10
|
+
|
|
5
11
|
## [0.10.11-alpha.1] - 2026-11-25
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
@@ -10,7 +10,7 @@ import * as __atomicHostImport4 from "@bastani/atomic-ai";
|
|
|
10
10
|
if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
|
|
11
11
|
if (missing.length > 0) {
|
|
12
12
|
const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
|
|
13
|
-
if (__atomicHostImport0.VERSION !== "0.10.11-alpha.
|
|
13
|
+
if (__atomicHostImport0.VERSION !== "0.10.11-alpha.3") missing.unshift(application + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using the subagents extension.");
|
|
14
14
|
throw new Error(missing.join("\n"));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -8,7 +8,7 @@ import * as __atomicHostImport2 from "@bastani/atomic-ai/compat";
|
|
|
8
8
|
if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
|
|
9
9
|
if (missing.length > 0) {
|
|
10
10
|
const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
|
|
11
|
-
if (__atomicHostImport0.VERSION !== "0.10.11-alpha.
|
|
11
|
+
if (__atomicHostImport0.VERSION !== "0.10.11-alpha.3") missing.unshift(application + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using the web-access extension.");
|
|
12
12
|
throw new Error(missing.join("\n"));
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -4383,13 +4383,6 @@ process.emitWarning = (warning, ...args) => {
|
|
|
4383
4383
|
return origEmitWarning(warning, ...args);
|
|
4384
4384
|
};
|
|
4385
4385
|
|
|
4386
|
-
function supportsReadBigInts() {
|
|
4387
|
-
const [major, minor] = process.versions.node.split(".").map(Number);
|
|
4388
|
-
if (major > 24) return true;
|
|
4389
|
-
if (major < 24) return false;
|
|
4390
|
-
return minor >= 4;
|
|
4391
|
-
}
|
|
4392
|
-
|
|
4393
4386
|
function readMetaVersion(sqlite, dbPath, opts) {
|
|
4394
4387
|
const db = new sqlite.DatabaseSync(dbPath, opts);
|
|
4395
4388
|
try {
|
|
@@ -4433,8 +4426,7 @@ try {
|
|
|
4433
4426
|
if (!sqlite) {
|
|
4434
4427
|
parentPort?.postMessage({ metaVersion: 0, rows: null });
|
|
4435
4428
|
} else {
|
|
4436
|
-
const opts = { readOnly: true };
|
|
4437
|
-
if (supportsReadBigInts()) opts.readBigInts = true;
|
|
4429
|
+
const opts = { readOnly: true, readBigInts: true };
|
|
4438
4430
|
let metaVersion = 0;
|
|
4439
4431
|
try {
|
|
4440
4432
|
metaVersion = readMetaVersion(sqlite, workerData.dbPath, opts);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { pathToFileURL } from "node:url";
|
|
5
|
+
/**
|
|
6
|
+
* Where the macOS standalone binary's SQLite library is, relative to the binary's directory. `build-binaries.sh`
|
|
7
|
+
* stages it there from `scripts/build-macos-sqlite.sh`: the SQLite release Node's `node:sqlite` bundles, pinned in
|
|
8
|
+
* `scripts/bundled-sqlite.json`, built with Node's compile options.
|
|
9
|
+
*/
|
|
10
|
+
export const BUNDLED_SQLITE_LIBRARY = join("lib", "libsqlite3.dylib");
|
|
11
|
+
/** The library Bun loads on macOS when it is given no other: the system's. */
|
|
12
|
+
const SYSTEM_SQLITE_LIBRARY = "libsqlite3.dylib";
|
|
13
|
+
/**
|
|
14
|
+
* Points Bun at the SQLite library shipped next to the macOS binary in `executableDir`, before anything opens a
|
|
15
|
+
* database. Bun's SQLite on macOS, `node:sqlite` included, is otherwise the system's, whose version depends on the
|
|
16
|
+
* macOS release and can be older than the one Atomic is tested with. Bun loads the library here, so a library that
|
|
17
|
+
* cannot be loaded is found now: Atomic then warns once with `warn` and keeps the system's. Does nothing on other
|
|
18
|
+
* platforms, under Node, and where no library was shipped, as for a binary built without one.
|
|
19
|
+
*/
|
|
20
|
+
export function useBundledSqlite(executableDir, warn) {
|
|
21
|
+
if (process.platform !== "darwin" || process.versions.bun === undefined)
|
|
22
|
+
return;
|
|
23
|
+
const library = join(executableDir, BUNDLED_SQLITE_LIBRARY);
|
|
24
|
+
if (!existsSync(library))
|
|
25
|
+
return;
|
|
26
|
+
const { Database } = createRequire(pathToFileURL(join(executableDir, "atomic")).href)("bun:sqlite");
|
|
27
|
+
try {
|
|
28
|
+
Database.setCustomSQLite(library);
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
// Bun keeps the failed path, so every open would fail with it: give it the system's back.
|
|
32
|
+
try {
|
|
33
|
+
Database.setCustomSQLite(SYSTEM_SQLITE_LIBRARY);
|
|
34
|
+
}
|
|
35
|
+
catch {
|
|
36
|
+
// The system's loads on first use, as it did before.
|
|
37
|
+
}
|
|
38
|
+
warn(`Atomic could not load its own SQLite library (${library}): ${error.message}. It uses the system's SQLite instead.`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=bundled-sqlite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundled-sqlite.js","sourceRoot":"","sources":["../../src/bun/bundled-sqlite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;AAEtE,8EAA8E;AAC9E,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAOjD;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,aAAqB,EAAE,IAA+B;IACtF,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,KAAK,SAAS;QAAE,OAAO;IAChF,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,EAAE,sBAAsB,CAAC,CAAC;IAC5D,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO;IACjC,MAAM,EAAE,QAAQ,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,CAAc,CAAC;IACjH,IAAI,CAAC;QACJ,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,0FAA0F;QAC1F,IAAI,CAAC;YACJ,QAAQ,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC;QACjD,CAAC;QAAC,MAAM,CAAC;YACR,qDAAqD;QACtD,CAAC;QACD,IAAI,CACH,iDAAiD,OAAO,MAAO,KAAe,CAAC,OAAO,wCAAwC,CAC9H,CAAC;IACH,CAAC;AACF,CAAC","sourcesContent":["import { existsSync } from \"node:fs\";\nimport { createRequire } from \"node:module\";\nimport { join } from \"node:path\";\nimport { pathToFileURL } from \"node:url\";\n\n/**\n * Where the macOS standalone binary's SQLite library is, relative to the binary's directory. `build-binaries.sh`\n * stages it there from `scripts/build-macos-sqlite.sh`: the SQLite release Node's `node:sqlite` bundles, pinned in\n * `scripts/bundled-sqlite.json`, built with Node's compile options.\n */\nexport const BUNDLED_SQLITE_LIBRARY = join(\"lib\", \"libsqlite3.dylib\");\n\n/** The library Bun loads on macOS when it is given no other: the system's. */\nconst SYSTEM_SQLITE_LIBRARY = \"libsqlite3.dylib\";\n\n/** What this module uses of `bun:sqlite`. */\ninterface BunSqlite {\n\treadonly Database: { setCustomSQLite(path: string): boolean };\n}\n\n/**\n * Points Bun at the SQLite library shipped next to the macOS binary in `executableDir`, before anything opens a\n * database. Bun's SQLite on macOS, `node:sqlite` included, is otherwise the system's, whose version depends on the\n * macOS release and can be older than the one Atomic is tested with. Bun loads the library here, so a library that\n * cannot be loaded is found now: Atomic then warns once with `warn` and keeps the system's. Does nothing on other\n * platforms, under Node, and where no library was shipped, as for a binary built without one.\n */\nexport function useBundledSqlite(executableDir: string, warn: (message: string) => void): void {\n\tif (process.platform !== \"darwin\" || process.versions.bun === undefined) return;\n\tconst library = join(executableDir, BUNDLED_SQLITE_LIBRARY);\n\tif (!existsSync(library)) return;\n\tconst { Database } = createRequire(pathToFileURL(join(executableDir, \"atomic\")).href)(\"bun:sqlite\") as BunSqlite;\n\ttry {\n\t\tDatabase.setCustomSQLite(library);\n\t} catch (error) {\n\t\t// Bun keeps the failed path, so every open would fail with it: give it the system's back.\n\t\ttry {\n\t\t\tDatabase.setCustomSQLite(SYSTEM_SQLITE_LIBRARY);\n\t\t} catch {\n\t\t\t// The system's loads on first use, as it did before.\n\t\t}\n\t\twarn(\n\t\t\t`Atomic could not load its own SQLite library (${library}): ${(error as Error).message}. It uses the system's SQLite instead.`,\n\t\t);\n\t}\n}\n"]}
|
package/dist/cli/args.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { isValidThinkingLevel } from "../_shared/startup-0-0-
|
|
3
|
-
import { insertForcedOptionsBeforeTerminator, parseArgs, printHelp } from "../_shared/startup-0-1-
|
|
2
|
+
import { isValidThinkingLevel } from "../_shared/startup-0-0-EZUKEP4Q.js";
|
|
3
|
+
import { insertForcedOptionsBeforeTerminator, parseArgs, printHelp } from "../_shared/startup-0-1-RTOHJFDJ.js";
|
|
4
4
|
export { insertForcedOptionsBeforeTerminator, isValidThinkingLevel, parseArgs, printHelp };
|
|
5
5
|
//# sourceMappingURL=args.js.map
|
|
@@ -3,13 +3,13 @@ import chalk from "chalk";
|
|
|
3
3
|
import { APP_NAME, ENV_DEBUG, getAgentDir, getAuthPath, setEnvValue } from "../_shared/p0-cli-BB45ZQY6.js";
|
|
4
4
|
import { AuthStorage, ReadOnlyAuthStorage } from "../_shared/startup-0-4-ZMJV547D.js";
|
|
5
5
|
import { CredentialSynchronizationError, ModelRuntime, isOAuthLoginCancelled } from "../_shared/startup-0-5-YDW47QX6.js";
|
|
6
|
-
import { RawStdoutWriteError, flushRawStdout, restoreStdout, takeOverStdout, writeRawStdout, writeRawStdoutOnce } from "../_shared/startup-0-0-
|
|
7
|
-
import { findExactModelReferenceMatch, resolveModelReference } from "../_shared/startup-0-2-
|
|
8
|
-
import { SettingsManager } from "../_shared/startup-8-1-
|
|
9
|
-
import { parseArgs } from "../_shared/startup-0-1-
|
|
6
|
+
import { RawStdoutWriteError, flushRawStdout, restoreStdout, takeOverStdout, writeRawStdout, writeRawStdoutOnce } from "../_shared/startup-0-0-EZUKEP4Q.js";
|
|
7
|
+
import { findExactModelReferenceMatch, resolveModelReference } from "../_shared/startup-0-2-5QHPCEON.js";
|
|
8
|
+
import { SettingsManager } from "../_shared/startup-8-1-LZFXSD3Z.js";
|
|
9
|
+
import { parseArgs } from "../_shared/startup-0-1-RTOHJFDJ.js";
|
|
10
10
|
import { ModelsError } from "@bastani/atomic-ai";
|
|
11
|
-
import { InMemoryCodingAgentModelsStore, resolveCliModel } from "../_shared/startup-0-3-
|
|
12
|
-
import { extractBearerToken, redactCredentialShapes } from "../_shared/p1b-elig-
|
|
11
|
+
import { InMemoryCodingAgentModelsStore, resolveCliModel } from "../_shared/startup-0-3-4ZYBYQNM.js";
|
|
12
|
+
import { extractBearerToken, redactCredentialShapes } from "../_shared/p1b-elig-TVB5CBLL.js";
|
|
13
13
|
import { inspect } from "node:util";
|
|
14
14
|
import { replaceControlCharacters } from "@bastani/atomic-tui";
|
|
15
15
|
import { displayUrl, webUrl } from "../_shared/mode-shared-2QJSCUM6.js";
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
9
|
+
const key = `${root.href}#0.10.11-alpha.3`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.11-alpha.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.
|
|
30
|
+
if (running === undefined || running.version === "0.10.11-alpha.3") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/cli/auth-cli.js
CHANGED
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
9
|
+
const key = `${root.href}#0.10.11-alpha.3`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.11-alpha.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.
|
|
30
|
+
if (running === undefined || running.version === "0.10.11-alpha.3") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -4,13 +4,13 @@ import { APP_NAME, VERSION, getAgentDir, getExtensionTranspileCacheDir, getProje
|
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
5
5
|
import { lstat, mkdir, readFile, rm, stat } from "node:fs/promises";
|
|
6
6
|
import { homedir } from "node:os";
|
|
7
|
-
import { SettingsManager, blueprintRepository, resumeStoreDir, runBlueprintBuild } from "../_shared/startup-8-1-
|
|
7
|
+
import { SettingsManager, blueprintRepository, resumeStoreDir, runBlueprintBuild } from "../_shared/startup-8-1-LZFXSD3Z.js";
|
|
8
8
|
import { admitPooledWorktree, blueprintPlatformOf, captureWorktreeSnapshot, discardPooledWorktree, evictIdleWorktrees, insideThroughDirectories, isDeniedSnapshotPath, nulFields, objectStorePath, parseBlueprint, readRepositoryConfig, releaseRestoredWorktree, removeRestoredWorktree, restoreWorktreeAt, runGit, seedDirectory, seedManifestPath, seedPathSegments, storeCheckoutHead, withSeedLock, writeSeedManifest } from "../_shared/startup-0-5-YDW47QX6.js";
|
|
9
|
-
import { computeEnvironmentHash, sha256Hex } from "../_shared/startup-0-3-
|
|
9
|
+
import { computeEnvironmentHash, sha256Hex } from "../_shared/startup-0-3-4ZYBYQNM.js";
|
|
10
10
|
import { canonicalizeWorktreePath, repositoryIdOf, sharedRepositoryIdOf } from "../_shared/startup-0-4-ZMJV547D.js";
|
|
11
|
-
import { ProjectTrustStore, renameWithRetry } from "../_shared/p1b-elig-
|
|
11
|
+
import { ProjectTrustStore, renameWithRetry } from "../_shared/p1b-elig-TVB5CBLL.js";
|
|
12
12
|
import { MemorySnapshotBlobStore } from "../core/worktree-snapshot/blob-store.js";
|
|
13
|
-
import { ResumeTimingsRecorder, formatResumeTimings, timeCheckoutRestore } from "../_shared/startup-0-1-
|
|
13
|
+
import { ResumeTimingsRecorder, formatResumeTimings, timeCheckoutRestore } from "../_shared/startup-0-1-RTOHJFDJ.js";
|
|
14
14
|
// dist/core/resume/blueprint/cache-stores.js
|
|
15
15
|
/**
|
|
16
16
|
* The package-manager stores `atomic blueprint cache-key` detects (#4748): which lockfiles at the repository root name a
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
9
|
+
const key = `${root.href}#0.10.11-alpha.3`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.11-alpha.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.
|
|
30
|
+
if (running === undefined || running.version === "0.10.11-alpha.3") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
9
|
+
const key = `${root.href}#0.10.11-alpha.3`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.11-alpha.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.
|
|
30
|
+
if (running === undefined || running.version === "0.10.11-alpha.3") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME } from "../_shared/p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { processStorageEnvironment } from "../_shared/startup-0-2-
|
|
3
|
+
import { processStorageEnvironment } from "../_shared/startup-0-2-5QHPCEON.js";
|
|
4
4
|
// dist/cli/intercom-command.js
|
|
5
5
|
/**
|
|
6
6
|
* `atomic intercom restart` replaces the agent directory's Intercom broker, so it reads the current storage
|
|
@@ -29,7 +29,7 @@ function describeBroker(query, control, agentDir) {
|
|
|
29
29
|
const expected = control.expectedBrokerStorage(agentDir, processStorageEnvironment());
|
|
30
30
|
return [
|
|
31
31
|
`Intercom broker: running (pid ${report.pid}, ${report.sessions} session${report.sessions === 1 ? "" : "s"} connected)`,
|
|
32
|
-
report.storage?.digest === expected?.digest ? "Storage: matches the current selection" : `Storage: differs from the current selection${report.storage?.source === "env" ? " (a session started it with ATOMIC_STORAGE
|
|
32
|
+
report.storage?.digest === expected?.digest ? "Storage: matches the current selection" : `Storage: differs from the current selection${report.storage?.source === "env" ? " (a session started it with ATOMIC_STORAGE or --storage)" : ""}; run \`${APP_NAME} intercom restart\``,
|
|
33
33
|
`Multi-node routing: ${control.describeMultiNodeStatus(report.multiNode)}`,
|
|
34
34
|
`Protocol: ${describeProtocol(report.protocol ?? LEGACY_PROTOCOL)}${(report.protocol ?? LEGACY_PROTOCOL).max < control.BROKER_PROTOCOL.max ? `, older than this version's ${describeProtocol(control.BROKER_PROTOCOL)}; the next session of this version replaces it` : ""}`
|
|
35
35
|
];
|
|
@@ -112,7 +112,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
112
112
|
return (async () => {
|
|
113
113
|
const root = new URL("../", import.meta.url);
|
|
114
114
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
115
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
115
|
+
const key = `${root.href}#0.10.11-alpha.3`;
|
|
116
116
|
let release = releases.get(key);
|
|
117
117
|
if (release === undefined) {
|
|
118
118
|
const current = (async () => {
|
|
@@ -140,7 +140,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
140
140
|
} catch {
|
|
141
141
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
142
142
|
}
|
|
143
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.
|
|
143
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.3" ? installed : running !== undefined && running.version !== "0.10.11-alpha.3" ? "0.10.11-alpha.3" : undefined;
|
|
144
144
|
if (updatedTo === undefined) throw error;
|
|
145
145
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
146
146
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intercom-command.code.js","names":[],"sources":["../../src/cli/intercom-command.ts"],"mappings":";;;;;;;;;AAeA,MAAM,OAAO;IACT,SAAQ;IACR,SAAQ;IACR,SAAQ;;;;;;;;;6CASiC,SAAQ;;;mDAGF,SAAQ;AAU3D,SAAS,eACR,OACA,SACA,UAAgB;CAEhB,IAAI,MAAM,UAAU,UACnB,OAAO,CACN,2BAA2B,MAAM,QAAQ,KAAA,IAAY,KAAK,SAAS,MAAM,IAAG,GAAG,wBAAyB,SAAQ,kCAChH;CAEF,MAAM,EAAE,WAAW;CACnB,MAAM,WAAW,QAAQ,sBAAsB,UAAU,0BAAyB,CAAE;CACpF,OAAO;EACN,iCAAiC,OAAO,IAAG,IAAK,OAAO,SAAQ,UAAW,OAAO,aAAa,IAAI,KAAK,IAAG;EAC1G,OAAO,SAAS,WAAW,UAAU,SAClC,2CACA,8CAA8C,OAAO,SAAS,WAAW,QAAQ,
|
|
1
|
+
{"version":3,"file":"intercom-command.code.js","names":[],"sources":["../../src/cli/intercom-command.ts"],"mappings":";;;;;;;;;AAeA,MAAM,OAAO;IACT,SAAQ;IACR,SAAQ;IACR,SAAQ;;;;;;;;;6CASiC,SAAQ;;;mDAGF,SAAQ;AAU3D,SAAS,eACR,OACA,SACA,UAAgB;CAEhB,IAAI,MAAM,UAAU,UACnB,OAAO,CACN,2BAA2B,MAAM,QAAQ,KAAA,IAAY,KAAK,SAAS,MAAM,IAAG,GAAG,wBAAyB,SAAQ,kCAChH;CAEF,MAAM,EAAE,WAAW;CACnB,MAAM,WAAW,QAAQ,sBAAsB,UAAU,0BAAyB,CAAE;CACpF,OAAO;EACN,iCAAiC,OAAO,IAAG,IAAK,OAAO,SAAQ,UAAW,OAAO,aAAa,IAAI,KAAK,IAAG;EAC1G,OAAO,SAAS,WAAW,UAAU,SAClC,2CACA,8CAA8C,OAAO,SAAS,WAAW,QAAQ,6DAA6D,GAAE,UAAW,SAAQ;EACtK,uBAAuB,QAAQ,wBAAwB,OAAO,SAAS;EACvE,aAAa,iBAAiB,OAAO,YAAY,eAAe,KAAK,OAAO,YAAY,gBAAA,CAAiB,MAAM,QAAQ,gBAAgB,MAAM,+BAA+B,iBAAiB,QAAQ,eAAe,EAAC,kDAAmD;CACxQ;AACF;;AAGA,MAAM,kBAAuC;CAAE,KAAK;CAAG,KAAK;AAAC;AAE7D,SAAS,iBAAiB,UAA6B;CACtD,OAAO,SAAS,QAAQ,SAAS,MAAM,GAAG,SAAS,QAAQ,GAAG,SAAS,IAAG,GAAI,SAAS;AACxF;AAEA,SAAS,gBAAgB,SAAuB;CAC/C,QAAQ,QAAQ,QAAhB;EACC,KAAK,eACJ,OAAO;EACR,KAAK,cACJ,OAAO,sBAAsB,QAAQ,QAAQ,KAAA,IAAY,KAAK,SAAS,QAAQ,IAAG,GAAG,2BAA4B,SAAQ,oEAAqE,SAAQ;EACvM,KAAK,WACJ,OAAO,QAAQ,aAAa,eACzB,oCAAoC,QAAQ,IAAG,aAAc,iBAAiB,QAAQ,QAAQ,EAAC,uBAC/F,oCAAoC,QAAQ,IAAG,aAAc,iBAAiB,QAAQ,QAAQ,EAAC,yCAA0C,SAAQ;EACrJ,KAAK,YACJ,OAAO,oCAAoC,QAAQ,IAAG,aAAc,iBAAiB,QAAQ,QAAQ,EAAC,kBAAmB,QAAQ,SAAQ,UAAW,QAAQ,aAAa,IAAI,QAAQ,QAAO;EAC7L,KAAK,WACJ,OAAO,0CAA0C,QAAQ,SAAS,IAAG;CACvE;AACD;;AAGA,eAAsB,mBAAmB,MAAyB,SAA+B;CAChG,MAAM,MAAM,QAAQ,SAAS,SAAiB,QAAQ,IAAI,IAAI;CAC9D,MAAM,QAAQ,QAAQ,WAAW,SAAiB,QAAQ,MAAM,IAAI;CACpE,MAAM,CAAC,SAAS,GAAG,QAAQ;CAC3B,IAAI,YAAY,KAAA,KAAa,YAAY,UAAU,KAAK,SAAS,QAAQ,KAAK,KAAK,SAAS,IAAI,GAAG;EAClG,IAAI,IAAI;EACR,OAAO;CACR;CACA,IAAK,YAAY,aAAa,YAAY,YAAY,YAAY,aAAc,KAAK,SAAS,GAAG;EAChG,MACC,YAAY,aAAa,YAAY,YAAY,YAAY,YAC1D,UAAU,SAAQ,YAAa,YAC/B,6BAA6B,QAAO,UAAW,SAAQ,6BAA8B;EAEzF,OAAO;CACR;CACA,IAAI;EACH,IAAI;EACJ,IAAI,QAAQ,aAAa,UAAU,MAAM,QAAQ,YAAW;OACvD;GACJ,MAAM,EAAE,8BAA8B,MAAM,OAAO;GACnD,UAAU,MAAM,0BAAyB;EAC1C;EACA,MAAM,EAAE,aAAa;EACrB,IAAI,YAAY,UAAU;GACzB,MAAM,QAAQ,MAAM,QAAQ,oBAAoB,QAAQ;GACxD,IAAI,MAAM,UAAU,WAAW;IAC9B,IAAI,+EAA+E;IACnF,OAAO;GACR;GACA,KAAK,MAAM,QAAQ,eAAe,OAAO,SAAS,QAAQ,GAAG,IAAI,IAAI;GACrE,OAAO;EACR;EACA,IAAI,YAAY,WAAW;GAC1B,IAAI,gBAAgB,MAAM,QAAQ,sBAAsB,UAAU,EAAE,YAAY,IAAG,CAAE,CAAC,CAAC;GACvF,OAAO;EACR;EACA,MAAM,UAAU,MAAM,QAAQ,sBAAsB,UAAU,EAAE,YAAY,IAAG,CAAE;EACjF,IAAI,QAAQ,WAAW,eAAe;GACrC,IACC,mHAAmH;GAEpH,OAAO;EACR;EACA,IAAI,QAAQ,WAAW,WAAW;GACjC,IACC,oCAAoC,QAAQ,SAAS,IAAG,KAAM,QAAQ,SAAS,aAAa,IAAI,6BAA6B,iCAAgC,gHAAiH;GAE/Q,OAAO;EACR;EACA,MAAM,UAAU,QAAQ;EACxB,IACC,sCAAsC,QAAQ,SAAS,IAAG,KAAM,QAAQ,UAAU,YAAY,QAAQ,OAAO,MAAO,QAAQ,OAAO,UAAU,EAAG;EAEjJ,KAAK,MAAM,QAAQ,eAAe,SAAS,SAAS,QAAQ,GAAG,IAAI,IAAI;EACvE,OAAO;CACR,SAAS,QAAQ;EAChB,MAAM,UAAU,kBAAkB,QAAQ,OAAO,UAAU,OAAO,MAAM,GAAG;EAC3E,OAAO;CACR;AACD"}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
9
|
+
const key = `${root.href}#0.10.11-alpha.3`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.11-alpha.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.
|
|
30
|
+
if (running === undefined || running.version === "0.10.11-alpha.3") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using intercom.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
9
|
+
const key = `${root.href}#0.10.11-alpha.3`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.11-alpha.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.
|
|
30
|
+
if (running === undefined || running.version === "0.10.11-alpha.3") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using intercom.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { fuzzyFilter } from "@bastani/atomic-tui";
|
|
3
3
|
import chalk from "chalk";
|
|
4
|
-
import { formatNoModelsAvailableMessage, formatTokenCount } from "../_shared/startup-0-0-
|
|
4
|
+
import { formatNoModelsAvailableMessage, formatTokenCount } from "../_shared/startup-0-0-EZUKEP4Q.js";
|
|
5
5
|
import { formatModelLabel } from "../_shared/startup-0-4-ZMJV547D.js";
|
|
6
|
-
import { thinkingLevelForModelSwitch } from "../_shared/startup-0-1-
|
|
6
|
+
import { thinkingLevelForModelSwitch } from "../_shared/startup-0-1-RTOHJFDJ.js";
|
|
7
7
|
import { getModelSearchText } from "../_shared/mode-shared-2QJSCUM6.js";
|
|
8
8
|
// dist/cli/list-models.js
|
|
9
9
|
/**
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
9
|
+
const key = `${root.href}#0.10.11-alpha.3`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.11-alpha.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.
|
|
30
|
+
if (running === undefined || running.version === "0.10.11-alpha.3") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/cli/list-models.js
CHANGED
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
9
|
+
const key = `${root.href}#0.10.11-alpha.3`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.11-alpha.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.
|
|
30
|
+
if (running === undefined || running.version === "0.10.11-alpha.3") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.3 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -3,8 +3,8 @@ import { ProcessTerminal, TuiMainScreen, setCapabilityOverrides, setKeybindings
|
|
|
3
3
|
import { getAgentDir } from "../_shared/p0-cli-BB45ZQY6.js";
|
|
4
4
|
import { KeybindingsManager as KeybindingsManager$1, keepStartupDialogDraft, withEarlyInputHeldForStartupDialog } from "../_shared/p2-shell-main-B2WIALFD.js";
|
|
5
5
|
import { SessionSelectorComponent } from "../_shared/mode-shared-2QJSCUM6.js";
|
|
6
|
-
import { STARTUP_DECISION_TYPED_TEXT_NOTICE, TrustDecisionSelector } from "../_shared/startup-0-0-
|
|
7
|
-
import { StartupDialogInputGuard } from "../_shared/startup-0-2-
|
|
6
|
+
import { STARTUP_DECISION_TYPED_TEXT_NOTICE, TrustDecisionSelector } from "../_shared/startup-0-0-EZUKEP4Q.js";
|
|
7
|
+
import { StartupDialogInputGuard } from "../_shared/startup-0-2-5QHPCEON.js";
|
|
8
8
|
// dist/cli/session-picker.js
|
|
9
9
|
/**
|
|
10
10
|
* TUI session selector for --resume flag
|