@bastani/atomic 0.10.11-alpha.3 → 0.10.11-alpha.4
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 +51 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +4 -4
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +4 -4
- package/dist/_shared/mode-shared-2QJSCUM6.js +4 -4
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/p1b-elig-TVB5CBLL.js +22 -6
- package/dist/_shared/p1b-elig-TVB5CBLL.js.map +1 -1
- 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 +2 -2
- package/dist/_shared/sdk-B5LEWGGI.js +899 -515
- package/dist/_shared/sdk-B5LEWGGI.js.map +1 -1
- 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-EZUKEP4Q.js → startup-0-0-XJJDOIEC.js} +6 -12
- package/dist/_shared/{startup-0-0-EZUKEP4Q.js.map → startup-0-0-XJJDOIEC.js.map} +1 -1
- package/dist/_shared/{startup-0-1-RTOHJFDJ.js → startup-0-1-M6OWAYHH.js} +354 -103
- package/dist/_shared/startup-0-1-M6OWAYHH.js.map +1 -0
- package/dist/_shared/startup-0-2-5QHPCEON.js +18 -9
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -1
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +4 -4
- package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
- package/dist/_shared/startup-0-5-YDW47QX6.js +4 -4
- package/dist/_shared/startup-10-0-TDQNBDDL.js +4 -4
- package/dist/_shared/startup-12-0-55AAXBJZ.js +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +2 -2
- package/dist/_shared/startup-15-0-YUKGAC63.js +2 -2
- package/dist/_shared/startup-15-1-4S7FLMNG.js +4 -4
- package/dist/_shared/startup-8-0-34CBHPZH.js +2114 -235
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +12 -12
- package/dist/_shared/storage-command-7MGXLJGZ.js +6 -6
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/storage-status-K7PX2RXA.js +2 -2
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +1 -1
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +19 -0
- package/dist/builtin/intercom/broker/broker.bundle.mjs +1020 -108
- package/dist/builtin/intercom/broker/client.ts +8 -0
- package/dist/builtin/intercom/broker/database-wake-up-bus.ts +91 -14
- package/dist/builtin/intercom/broker/multinode-router.ts +102 -17
- package/dist/builtin/intercom/broker/multinode-state-store.ts +41 -2
- package/dist/builtin/intercom/broker/send-order-gate.ts +5 -2
- package/dist/builtin/intercom/broker/sql-add-column.ts +22 -1
- package/dist/builtin/intercom/broker/sql-lease-store.ts +304 -48
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +541 -50
- package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +239 -8
- package/dist/builtin/intercom/broker/sql-retention.ts +11 -2
- package/dist/builtin/intercom/broker/sql-schema.ts +42 -8
- package/dist/builtin/intercom/index.bundle.mjs +13 -2
- 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/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 +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +2 -2
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +1 -1
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +2 -2
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +2 -2
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +1 -1
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +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 +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/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 +5 -4
- package/dist/core/sdk.code.js +2 -2
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +4 -4
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/database.d.ts +6 -0
- package/dist/core/storage/database.js.map +1 -1
- package/dist/core/storage/fenced-paths.d.ts +7 -6
- package/dist/core/storage/fenced-paths.js +7 -6
- package/dist/core/storage/fenced-paths.js.map +1 -1
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +209 -19
- package/dist/core/storage/node-sqlite-thread.js.map +1 -1
- package/dist/core/storage/node-sqlite.js +435 -71
- 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/provider.js +2 -2
- package/dist/core/storage/schema-catalog.d.ts +69 -7
- package/dist/core/storage/schema-catalog.js +352 -61
- package/dist/core/storage/schema-catalog.js.map +1 -1
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +3 -3
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-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 +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 +41 -23
- 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 +8 -8
- 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 +9 -1
- 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.d.ts +51 -7
- 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 +6 -0
- package/dist/core/storage/sqlite-facade.js +309 -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.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +3 -3
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.code.js +2 -2
- 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 +5 -3
- package/dist/core/worktree-snapshot/blob-store.js +151 -21
- 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-snapshot-index.js +158 -41
- package/dist/core/worktree-snapshot/fork-snapshot-index.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 +1 -1
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +1 -1
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.js +2 -2
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/package-manager-cli.code.js +4 -4
- 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/3.js +1 -1
- package/dist/startup-stages/5.js +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/docs/changelog.mdx +49 -0
- package/docs/storage/jsonl.md +3 -3
- package/package.json +8 -8
- package/dist/_shared/startup-0-1-RTOHJFDJ.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,57 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.10.11-alpha.4] - 2026-11-27
|
|
6
|
+
|
|
7
|
+
JSONL sessions now sync to disk before acknowledging saves while reading unlocked and writing concurrently across sessions, SQLite and PostgreSQL cut round trips and lock contention across opens, reads, deletes, and fork detaches, Intercom batches renewals, releases, wake-ups, and settlements, and macOS gains process-start tracking for instant resume recovery.
|
|
8
|
+
|
|
9
|
+
**JSONL storage**
|
|
10
|
+
|
|
11
|
+
- **Saves sync to disk before acknowledging, with group commit.** Concurrent saves share one write per session file and sync files in parallel before acknowledging; new, forked, and rewritten files sync before linking or renaming and sync their directory afterward. On macOS this uses plain `fsync(2)` via `@bastani/atomic-natives` (`fsyncDescriptor`), matching SQLite's default. Crash recovery handles zero-filled mid-file pages cleanly and validates `.idx` sidecars against lost earlier pages ([#6700](https://github.com/bastani-inc/atomic/pull/6700), [#6686](https://github.com/bastani-inc/atomic/issues/6686), [#6717](https://github.com/bastani-inc/atomic/issues/6717)).
|
|
12
|
+
- **Session reads run without the directory lock.** `load`, `readTail`, `readRange`, and `readResume` read through a single handle and check afterward that `.session.lock` is absent and the path stat is unchanged, retrying under the lock if a writer raced. Eight concurrent reader processes ran 100 tail reads each in 61 ms instead of 478 ms on Node and 62 ms instead of 787 ms on Bun ([#6721](https://github.com/bastani-inc/atomic/pull/6721), [#6719](https://github.com/bastani-inc/atomic/issues/6719)).
|
|
13
|
+
- **Kernel advisory locks and per-session-file stripes.** Writers now coordinate through OS advisory locks (`flock` on Unix, `LockFileEx` on Windows) and 32 striped per-file locks while keeping `<dir>/.session.lock` compatible with older builds. Recovering after a killed writer dropped from ~10.2 s to ~5 ms, and 8 processes saving to distinct sessions ran 3.3× faster ([#6732](https://github.com/bastani-inc/atomic/pull/6732), [#6718](https://github.com/bastani-inc/atomic/issues/6718)).
|
|
14
|
+
|
|
15
|
+
**SQLite and PostgreSQL storage**
|
|
16
|
+
|
|
17
|
+
- **Pipelined SQLite writes, off-commit WAL checkpoints, and batched opens.** File-backed SQLite write transactions bundle leading statements with `BEGIN IMMEDIATE` and final writes with `COMMIT`, handle lock-holder writes and queue checks on the connection thread, move `PRAGMA wal_checkpoint(PASSIVE)` off the commit path while bounding `-wal` files to 4 MiB, and batch schema setup on open into one write transaction (new session store: 4 locks / 31 waits → 1 lock / 7 waits; new Intercom broker: 24 locks / 103 waits → 1 lock / 10 waits) ([#6698](https://github.com/bastani-inc/atomic/pull/6698), [#6731](https://github.com/bastani-inc/atomic/pull/6731), [#6727](https://github.com/bastani-inc/atomic/pull/6727), [#6730](https://github.com/bastani-inc/atomic/pull/6730), [#6706](https://github.com/bastani-inc/atomic/issues/6706), [#6707](https://github.com/bastani-inc/atomic/issues/6707), [#6709](https://github.com/bastani-inc/atomic/issues/6709)).
|
|
18
|
+
- **Fewer round trips and narrower locks on PostgreSQL sessions.** Deleting or replacing an indexed session drops from 13 / 12 round trips to 3; session `load`, `list`, `findMostRecent`, `findEntrySeq`, `readEntrySizes`, `readForkWindow`, stale `readTail`, and fork `readResume` pipeline their schema and row reads (1.5×–3.0× faster at 80 ms latency); and session deletes and tombstone sweeps lock only the target session instead of the whole database (-42% to -44% p95 append latency under concurrent deletes) ([#6697](https://github.com/bastani-inc/atomic/pull/6697), [#6728](https://github.com/bastani-inc/atomic/pull/6728), [#6733](https://github.com/bastani-inc/atomic/pull/6733), [#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
19
|
+
- **Faster fork detaches, snapshot blob puts, and warm history searches.** Paged fork-detach link checks now scale linearly with pages (detaching two 20,000-entry forks dropped from 5.69 s to 2.63 s on PostgreSQL and 328 ms to 279 ms on Node SQLite), small snapshot blob puts take 1 SQLite thread wait / 1 PostgreSQL round trip instead of 10 / 2, and warm `history://` candidate reads batch state + first window into one read-only transaction ([#6692](https://github.com/bastani-inc/atomic/pull/6692), [#6699](https://github.com/bastani-inc/atomic/pull/6699), [#6695](https://github.com/bastani-inc/atomic/pull/6695), [#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6705](https://github.com/bastani-inc/atomic/issues/6705), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
|
|
20
|
+
|
|
21
|
+
**Intercom**
|
|
22
|
+
|
|
23
|
+
- **Batched heartbeats, scans, releases, wake-ups, and SQLite settlements.** Brokers now check idle hosted recipients in one read (21×–37× faster at 50–200 brokers), renew all in-flight message claims, membership/presence leases, and restoring reservations in one statement per tick (up to 12.3× faster p50 at 200 brokers), release departing sessions' claims in one statement, batch wake-up publishes and embed non-reply outcome hints inside delivery settlement (1 round trip instead of 4), group-commit delivery settlements on SQLite, and send post-commit notices off the serial call queue via `StorageNotifications.send` ([#6690](https://github.com/bastani-inc/atomic/pull/6690), [#6693](https://github.com/bastani-inc/atomic/pull/6693), [#6722](https://github.com/bastani-inc/atomic/pull/6722), [#6724](https://github.com/bastani-inc/atomic/pull/6724), [#6725](https://github.com/bastani-inc/atomic/pull/6725), [#6726](https://github.com/bastani-inc/atomic/pull/6726), [#6734](https://github.com/bastani-inc/atomic/pull/6734), [#6712](https://github.com/bastani-inc/atomic/issues/6712), [#6713](https://github.com/bastani-inc/atomic/issues/6713), [#6714](https://github.com/bastani-inc/atomic/issues/6714), [#6715](https://github.com/bastani-inc/atomic/issues/6715), [#6716](https://github.com/bastani-inc/atomic/issues/6716)).
|
|
24
|
+
|
|
25
|
+
**Fixes**
|
|
26
|
+
|
|
27
|
+
- **Dropped PostgreSQL connections after `COMMIT` are never retried.** Fixed two bugs where a connection drop after `COMMIT` was written (either after a savepoint-recovered statement error or in a `leadingOnly` transaction) could be misclassified as `"not-applied"` and re-executed ([#6723](https://github.com/bastani-inc/atomic/pull/6723), [#6711](https://github.com/bastani-inc/atomic/issues/6711)).
|
|
28
|
+
- **Immediate resume recovery and faster review viewer on macOS.** Atomic now reads process creation times on macOS so resuming after a killed host stops leftover build steps at once instead of waiting 5 minutes and distinguishes dead lock holders from reused PIDs, and the skill-creator review viewer no longer stalls on a reverse DNS lookup of `127.0.0.1` ([#6694](https://github.com/bastani-inc/atomic/pull/6694), [#6687](https://github.com/bastani-inc/atomic/pull/6687), [#6704](https://github.com/bastani-inc/atomic/issues/6704), [#6691](https://github.com/bastani-inc/atomic/issues/6691)).
|
|
29
|
+
- **Intercom reply redelivery and local reply ordering.** Transient durable-inbox save failures no longer strand same-connection redeliveries of reply or ask-failure outcomes, and plain local sends behind an active local reply on a contended store no longer overtake that reply when a healthy database write exceeds 300 ms ([#6729](https://github.com/bastani-inc/atomic/pull/6729), [#6736](https://github.com/bastani-inc/atomic/pull/6736), [#6712](https://github.com/bastani-inc/atomic/issues/6712)).
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- `StorageNotifications` in `@bastani/atomic/storage` adds an optional `send(notices)` method for sending already-committed notifications together outside the database facade's serial call queue ([#6712](https://github.com/bastani-inc/atomic/issues/6712)).
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- On PostgreSQL, deleting a session now locks only that session and its search index instead of the whole database, so unrelated session writers keep running beside deletes; post-delete tombstone sweeps also scope their lock to each tombstoned session, and the `detachForks`, `resumeForkDetaches`, and `sweepForkTombstones` schema gates and discovery queries now run read-only without taking a write lock (cutting idle gate and sweep checks from 10 to 1–2 round trips, and fork detaches from 51 to 39–41 round trips). Rebuilding a stale resume index now reuses the row read with the transaction start, folds the revision check into one conditional `UPDATE … RETURNING`, and pipelines the follow-up read, cutting stale `readTail` and fork `readResume` from 9–10 to 7 round trips. With 8 writers appending alongside deletes at 20 ms latency, append p95 fell from 218 ms to 123 ms directly and from 211 ms to 122 ms through PgBouncer ([#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
38
|
+
- On PostgreSQL, session reads take fewer round trips, both directly and through PgBouncer in transaction mode: loading a session drops from 2 awaited round trips to 1, listing sessions or finding the most recent session for a directory drops from 3 to 2 (and listing all sessions from 2 to 1), looking up an entry sequence drops from 3 to 1 (or 2 after a concurrent schema or fork change), and reading entry sizes or a fork window drops from 3 awaited round trips to 2. Looking up an entry sequence also folds the snapshot-index completeness check into a single statement on both SQLite and PostgreSQL. At 80 ms latency, loading a session took 84 ms instead of 162 ms, listing a directory took 163 ms instead of 244 ms, finding an entry sequence took 81 ms instead of 244 ms, and reading entry sizes or a fork window took 162 ms instead of 240 ms ([#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
39
|
+
- On PostgreSQL, deleting or replacing an indexed session now takes 3 round trips instead of 13 for a delete and 12 for a replace, both directly and through PgBouncer in transaction mode. The session's per-table deletes and rewrite now go out with the commit in one request, and forgetting its search index sends its savepoint, deletes and release together. At 80 ms latency, deleting a session took about 0.25 seconds instead of 1.03 seconds and replacing one took about 0.25 seconds instead of 0.96 seconds ([#6697](https://github.com/bastani-inc/atomic/pull/6697), [#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
40
|
+
- Checking a detached fork's worktree snapshot links now reads the fork's links in one pass and looks up each entry's parent once, so the check takes about half the time it first did: 1.9 ms instead of 3.7 ms on SQLite, and 6.4 ms instead of 10.7 ms on PostgreSQL, for a fork of 1,000 entries ([#6692](https://github.com/bastani-inc/atomic/pull/6692), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
41
|
+
- On file-backed SQLite stores, write transactions now run their leading statements in the same connection-thread request as `BEGIN IMMEDIATE`, bundle their final writes (`transactionFinisher`) in the same request as `COMMIT` (or a group-commit member's `RELEASE`), send single-step `leadingOnly` transactions (such as Intercom lease acquisitions) with `COMMIT` in one request, send each group-commit member's `SAVEPOINT` with its leading statements, and handle write-lock holder record updates and writers'-queue directory checks on the connection thread to remove two thread-pool waits per uncontended commit. Creating a session and appending to it now wait for the connection thread 2 times instead of 4, `leadingOnly` lease writes wait once instead of 4 times (~1.5x faster median latency), and 100 concurrent appenders wait 201 times per batch instead of 402, with durability unchanged (WAL, `synchronous=FULL`) ([#6698](https://github.com/bastani-inc/atomic/pull/6698), [#6731](https://github.com/bastani-inc/atomic/pull/6731), [#6706](https://github.com/bastani-inc/atomic/issues/6706)).
|
|
42
|
+
- Batched the search-state lookup and first candidate window of a `history://` index search into one read-only transaction, cutting warm search candidate queries from 2 thread waits to 1 on SQLite and from 2 round trips across separate snapshots to 1 round trip in one snapshot on PostgreSQL ([#6695](https://github.com/bastani-inc/atomic/pull/6695), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
|
|
43
|
+
- Detaching long shared-history forks a page at a time now scales linearly with the number of pages instead of redoing work over earlier pages. Each page's link statement counts children only past the page's start for the IDs the page copies, the per-page link check tests earlier rows against the page's ID set once, rows whose parent comes from a remaining segment look the segment up once instead of twice, and segment lookups and segment duplicate checks are skipped when no segments remain (or before the earliest remaining segment). Detaching a 20,000-entry parent's two forks with the default 2,000-row pages dropped from 328 ms to 279 ms on Node SQLite (peak write-lock hold 39.5 ms to 31.4 ms), 344 ms to 298 ms on Bun SQLite, and 5.69 s to 2.63 s on PostgreSQL (163 ms to 97 ms for 1,000 entries) ([#6699](https://github.com/bastani-inc/atomic/pull/6699), [#6705](https://github.com/bastani-inc/atomic/issues/6705), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
44
|
+
- Storing small batches of worktree snapshot blobs (fewer than 256 statements and at most 1 MiB total) now sends the inserts and `COMMIT` with the transaction's start. On file-backed SQLite stores, putting 8 small blobs now waits for the connection thread once instead of 10 times (2 times with transaction finishers alone) while taking the write lock once. On PostgreSQL (direct and behind PgBouncer), a small snapshot blob put now takes 1 round trip instead of 2; in an interleaved benchmark of 8-blob puts behind PgBouncer at 40 ms RTT, median latency dropped from 120 ms to 81 ms, and on localhost from 0.54 ms to 0.40 ms. Larger or chunked puts keep the existing fallback path ([#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
|
|
45
|
+
- Reading a JSONL session (`load`, `readTail`, `readRange` and `readResume`) no longer takes the directory lock when no writer is active, so readers across processes no longer queue behind one another or stall concurrent writers. Each read opens or reuses one handle, stats it first, reads the header and entries through that same handle, and verifies afterward that `.session.lock` is absent and the path stat still matches on device, inode, size and timestamps; if either check fails, or the file has a legacy header, it retries under the lock. On a 200-entry session with a kept handle, a warm tail, range or resume read takes 6 file-system requests instead of 7 and a whole-session load 5 instead of 10; 8 concurrent reader processes finished 100 tail reads each in about 61 ms instead of 478 ms on Node and 62 ms instead of 787 ms on Bun, and a writer sharing the directory with 4 active readers finished 50 saves in 44 ms instead of 190 ms on Node ([#6719](https://github.com/bastani-inc/atomic/issues/6719)).
|
|
46
|
+
- Writing to a JSONL session store now coordinates through operating-system advisory locks (`flock` on Unix, `LockFileEx` on Windows) and per-session-file striped locks instead of serializing the whole directory behind a single `proper-lockfile` lock. New writers hold `<dir>/.session.lock` together as a group so older builds remain excluded and unlocked readers still detect active writers, while writes and syncs to different session files proceed concurrently across 32 striped lock files (with an exclusive create lock for claim-and-link). When a writer process is killed, the kernel releases its advisory locks immediately and the next writer cleans up `.session.lock` at once instead of waiting for the 10-second stale window. On durable ext4 disk, recovering after a `SIGKILL`ed holder dropped from ~10.2 s to ~5 ms, and multi-process concurrent saves to distinct sessions improved from 846 ms to 443 ms (4 processes × 20 saves, 1.9×) and from 1,264 ms to 388 ms (8 processes × 15 saves, 3.3×) ([#6718](https://github.com/bastani-inc/atomic/issues/6718)).
|
|
47
|
+
- Opening a SQLite session store or Intercom broker on a new or upgraded database now batches all needed schema setup—tables, missing columns, indexes, snapshot triggers, search tables and schema stamps—into a single write transaction through `tryMaintenance`, keeping the poll-until-done fallback when another process holds the write lock. Opening a new session store now takes 1 write lock and 7 thread waits instead of 4 locks and 31 waits (median 29.9 ms vs 37.3 ms on Node 24; 23.1 ms vs 28.8 ms on Bun 1.4.5), opening a new Intercom broker takes 1 write lock and 10 waits instead of 24 locks and 103 waits (51.3 ms vs 64.6 ms on Node 24; 41.2 ms vs 56.8 ms on Bun 1.4.5), and the broker's second open now takes 0 locks and 8 waits instead of 1 lock and 12 waits. With 8 concurrent hosts opening a fresh session store and broker together, total write locks dropped from 60 to 2 (80.1 ms vs 128.5 ms on Node 24; 77.8 ms vs 108.2 ms on Bun 1.4.5) ([#6709](https://github.com/bastani-inc/atomic/issues/6709)).
|
|
48
|
+
- On local SQLite stores, write-ahead log checkpointing now runs off the commit path and shrinks overgrown `-wal` files back to 4 MiB once long readers end. Writable connections raise `wal_autocheckpoint` to 10,000 pages as a safety net, set `journal_size_limit` to 4 MiB, and run `PRAGMA wal_checkpoint(PASSIVE)` on the connection thread after answering the caller whenever no transaction is open and the `-wal` file grew past 4 MiB since the last check. In interleaved benchmarks after a held reader grew the WAL to 17.8 MiB, the first commit after the reader ended dropped from 10.1 ms to 1.2 ms on Node and 8.4 ms to 1.0 ms on Bun, and the `-wal` file shrank back to 4.0 MiB instead of staying 17.8 MiB ([#6707](https://github.com/bastani-inc/atomic/issues/6707)).
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- On macOS, resuming a session whose blueprint build was cut off because Atomic was killed no longer waits 5 minutes for a build step that is still running. Atomic now reads when a process started on macOS too, so the next resume can tell the leftover step is that build's and stop it at once. Session claims, worktree leases and other locks on macOS also tell a process that died from a later one given its process ID. Locks written by earlier versions, which name no start, are judged by process ID as before ([#6704](https://github.com/bastani-inc/atomic/issues/6704)).
|
|
53
|
+
- Fixed pipelined storage transactions (such as PostgreSQL) blaming a failure already recovered by `ROLLBACK TO SAVEPOINT` when `COMMIT` later fails or loses its connection, which could misclassify an ambiguous commit failure as `"not-applied"` and retry an already-committed transaction. The facade now keeps the commit's own recognized failure, skips calls recovered by a fulfilled `ROLLBACK TO SAVEPOINT`, and lets drivers notify it immediately before writing `COMMIT` in `leadingOnly` transactions ([#6711](https://github.com/bastani-inc/atomic/issues/6711)).
|
|
54
|
+
- A session saved in a JSONL directory is no longer lost or left empty by a power cut or system crash just after Atomic saved it. Each save now waits until its entries are synced to disk before acknowledging, and concurrent saves share one lock, one write per session file, and parallel syncs across sessions in the group. A new, forked, or rewritten session file is synced before it is linked or renamed into place, and its directory is synced after. On macOS this uses plain `fsync(2)` through `@bastani/atomic-natives` (`fsyncDescriptor`), matching the default SQLite store and the standalone binary instead of Node.js's `fcntl(F_FULLFSYNC)`; Linux uses `fdatasync(2)` and Windows uses `FlushFileBuffers`. A save whose sync fails is truncated back and rejected without failing other sessions in the same group that already synced. Crash recovery also ignores zero-filled unwritten pages before EOF and strips them on the next append, ensures `.idx` sidecars are written only after syncing the session file and validates them against lost earlier pages on load, reuses kept handles when catching up foreign appends, and batches chat-record index and slot opens. On Linux, 200 sequential saves took 103 ms vs 54 ms on Node.js (112 ms vs 67 ms on Bun), while 20 sessions making 25 concurrent saves finished in 83 ms vs 109 ms on Node.js (82 ms vs 104 ms on Bun) and batched chat-record saves took 13 ms vs 40 ms ([#6686](https://github.com/bastani-inc/atomic/issues/6686), [#6717](https://github.com/bastani-inc/atomic/issues/6717)).
|
|
55
|
+
|
|
5
56
|
## [0.10.11-alpha.3] - 2026-11-26
|
|
6
57
|
|
|
7
58
|
Atomic drops libSQL storage and keeps SQLite, PostgreSQL and JSONL, many agents open and share one PostgreSQL database with less waiting, and the storage docs get one page per backend.
|
|
@@ -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-alpha.
|
|
31845
|
+
const key = `${root.href}#0.10.11-alpha.4`;
|
|
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-alpha.
|
|
31873
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : 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-alpha.
|
|
43
|
+
const key = `${root.href}#0.10.11-alpha.4`;
|
|
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-alpha.
|
|
71
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : 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-alpha.
|
|
5134
|
+
const key = `${root.href}#0.10.11-alpha.4`;
|
|
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-alpha.
|
|
5162
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : 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,7 +1,7 @@
|
|
|
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
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";
|
|
@@ -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-alpha.
|
|
28173
|
+
const key = `${root.href}#0.10.11-alpha.4`;
|
|
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-alpha.
|
|
28201
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : 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,9 +1,9 @@
|
|
|
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";
|
|
@@ -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-alpha.
|
|
4178
|
+
const key = `${root.href}#0.10.11-alpha.4`;
|
|
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-alpha.
|
|
4206
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : 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,7 +1,7 @@
|
|
|
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
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";
|
|
@@ -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-alpha.
|
|
27322
|
+
const key = `${root.href}#0.10.11-alpha.4`;
|
|
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-alpha.
|
|
27350
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : 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}.`, {
|
|
@@ -203,7 +203,7 @@ const INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG = `${INTERACTIVE_ENGINE_
|
|
|
203
203
|
const INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG = `${INTERACTIVE_ENGINE_PREWARM_FLAG}-handoff`;
|
|
204
204
|
const PREWARM_HOST_ARGUMENTS_MAX_LENGTH = 8192;
|
|
205
205
|
const PREWARM_READY_MAX_BYTES = 4096;
|
|
206
|
-
const PREWARM_BUILD_STAMP = "
|
|
206
|
+
const PREWARM_BUILD_STAMP = "8d80abfe0aa68431f91103a0bcf465";
|
|
207
207
|
const PREWARM_BUILD_STAMP_UNSTAMPED = ["__ATOMIC_PREWARM", "BUILD_STAMP__"].join("_");
|
|
208
208
|
function prewarmBuildIdentity() {
|
|
209
209
|
if (PREWARM_BUILD_STAMP === PREWARM_BUILD_STAMP_UNSTAMPED) return void 0;
|
|
@@ -567,7 +567,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
567
567
|
return (async () => {
|
|
568
568
|
const root = new URL("../", import.meta.url);
|
|
569
569
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
570
|
-
const key = `${root.href}#0.10.11-alpha.
|
|
570
|
+
const key = `${root.href}#0.10.11-alpha.4`;
|
|
571
571
|
let release = releases.get(key);
|
|
572
572
|
if (release === undefined) {
|
|
573
573
|
const current = (async () => {
|
|
@@ -595,7 +595,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
595
595
|
} catch {
|
|
596
596
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
597
597
|
}
|
|
598
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.
|
|
598
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : undefined;
|
|
599
599
|
if (updatedTo === undefined) throw error;
|
|
600
600
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
601
601
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -4,7 +4,7 @@ import { appendFileSync, existsSync, linkSync, mkdirSync, readFileSync, readdirS
|
|
|
4
4
|
import { basename, dirname, join, resolve } from "node:path";
|
|
5
5
|
import { CONFIG_DIR_NAMES, DebugLogUnwritableError, DiagnosticWriter, ENV_AGENT_DIR, ENV_DEBUG, ENV_STARTUP_BENCHMARK, canonicalizePath, canonicalizePathAsync, createModuleRequire, getAgentDir, getAgentDirs, getDebugLogPath, getEnvNames, getEnvValue, getHomeDir, getProjectConfigDirs, getSettingsPath, isDebugSettingOn, pathsEqual, resolvePath } from "./p0-cli-BB45ZQY6.js";
|
|
6
6
|
import { createHash, randomUUID } from "node:crypto";
|
|
7
|
-
import { link, mkdir, readFile, readdir, rename, rm, rmdir as rmdir$1, stat as stat$1, unlink, writeFile } from "node:fs/promises";
|
|
7
|
+
import { link, mkdir as mkdir$1, readFile, readdir, rename, rm, rmdir as rmdir$1, stat as stat$1, unlink, writeFile } from "node:fs/promises";
|
|
8
8
|
import { promisify } from "node:util";
|
|
9
9
|
import lockfile from "proper-lockfile";
|
|
10
10
|
import { parseJsonFileContent } from "./p1-shared-RG5I5LJ6.js";
|
|
@@ -2709,6 +2709,7 @@ function processStartTokenNow(pid) {
|
|
|
2709
2709
|
const created = nativeProcessCreationTime(pid);
|
|
2710
2710
|
return typeof created === "string" ? windowsStartToken(created) : created;
|
|
2711
2711
|
}
|
|
2712
|
+
if (process.platform === "darwin") return darwinStartTokenNow(pid);
|
|
2712
2713
|
try {
|
|
2713
2714
|
return linuxStartToken(readFileSync(`/proc/${pid}/stat`, "utf8"), readFileSync(BOOT_ID, "utf8"));
|
|
2714
2715
|
} catch {
|
|
@@ -2771,6 +2772,7 @@ function processStartTokenForSynchronousTakeover(pid) {
|
|
|
2771
2772
|
return windowsStartToken(answer.created);
|
|
2772
2773
|
}
|
|
2773
2774
|
function procStartToken(pid) {
|
|
2775
|
+
if (process.platform === "darwin") return darwinStartTokenNow(pid) ?? void 0;
|
|
2774
2776
|
try {
|
|
2775
2777
|
return linuxStartToken(readFileSync(`/proc/${pid}/stat`, "utf8"), readFileSync(BOOT_ID, "utf8"));
|
|
2776
2778
|
} catch {
|
|
@@ -2778,6 +2780,7 @@ function procStartToken(pid) {
|
|
|
2778
2780
|
}
|
|
2779
2781
|
}
|
|
2780
2782
|
async function procStartTokenAsync(pid) {
|
|
2783
|
+
if (process.platform === "darwin") return darwinStartTokenNow(pid) ?? void 0;
|
|
2781
2784
|
try {
|
|
2782
2785
|
return linuxStartToken(await readFile(`/proc/${pid}/stat`, "utf8"), await readFile(BOOT_ID, "utf8"));
|
|
2783
2786
|
} catch {
|
|
@@ -2785,8 +2788,13 @@ async function procStartTokenAsync(pid) {
|
|
|
2785
2788
|
}
|
|
2786
2789
|
}
|
|
2787
2790
|
const BOOT_ID = "/proc/sys/kernel/random/boot_id";
|
|
2788
|
-
const OWN_PROC_START = process.platform === "
|
|
2791
|
+
const OWN_PROC_START = process.platform === "linux" ? procStartToken(process.pid) : void 0;
|
|
2792
|
+
let ownDarwinStart;
|
|
2789
2793
|
function ownProcessStartToken() {
|
|
2794
|
+
if (process.platform === "darwin") {
|
|
2795
|
+
ownDarwinStart ??= darwinStartTokenNow(process.pid) ?? void 0;
|
|
2796
|
+
return ownDarwinStart;
|
|
2797
|
+
}
|
|
2790
2798
|
if (process.platform !== "win32") return OWN_PROC_START;
|
|
2791
2799
|
const native = nativeCreationTime();
|
|
2792
2800
|
if (native !== null) return windowsStartToken(nativeCreation(native, process.pid));
|
|
@@ -2801,6 +2809,13 @@ function linuxStartToken(stat, bootId) {
|
|
|
2801
2809
|
return sha12(`${boot}
|
|
2802
2810
|
${started}`);
|
|
2803
2811
|
}
|
|
2812
|
+
function darwinStartTokenNow(pid) {
|
|
2813
|
+
const native = nativeCreationTime();
|
|
2814
|
+
if (native === null) return void 0;
|
|
2815
|
+
const created = nativeCreation(native, pid);
|
|
2816
|
+
return created === void 0 ? null : sha12(`darwin
|
|
2817
|
+
${created}`);
|
|
2818
|
+
}
|
|
2804
2819
|
function windowsStartToken(created) {
|
|
2805
2820
|
return created === void 0 ? void 0 : sha12(`windows
|
|
2806
2821
|
${created}`);
|
|
@@ -2813,6 +2828,7 @@ function sha12(text) {
|
|
|
2813
2828
|
return createHash("sha256").update(text).digest("hex").slice(0, 12);
|
|
2814
2829
|
}
|
|
2815
2830
|
const NATIVE_WINDOWS_HOST = process.platform === "win32";
|
|
2831
|
+
const NATIVE_START_HOST = NATIVE_WINDOWS_HOST || process.platform === "darwin";
|
|
2816
2832
|
function nativeTerminateProcess(pid, started, descendants) {
|
|
2817
2833
|
if (process.platform !== "win32") return void 0;
|
|
2818
2834
|
const terminate = nativeTerminator();
|
|
@@ -2836,7 +2852,7 @@ function nativeTerminator() {
|
|
|
2836
2852
|
let nativeReader;
|
|
2837
2853
|
function nativeCreationTime() {
|
|
2838
2854
|
if (nativeReader === void 0) {
|
|
2839
|
-
if (!
|
|
2855
|
+
if (!NATIVE_START_HOST) {
|
|
2840
2856
|
nativeReader = null;
|
|
2841
2857
|
return null;
|
|
2842
2858
|
}
|
|
@@ -3336,7 +3352,7 @@ async function takeDirectoryMutexAsync(lockPath, native) {
|
|
|
3336
3352
|
const take = async () => {
|
|
3337
3353
|
if (native !== void 0) return await createWithOwnerAsync(path, owner, native) ? mutex : void 0;
|
|
3338
3354
|
try {
|
|
3339
|
-
await mkdir(path);
|
|
3355
|
+
await mkdir$1(path);
|
|
3340
3356
|
} catch {
|
|
3341
3357
|
return;
|
|
3342
3358
|
}
|
|
@@ -3363,7 +3379,7 @@ function createWithOwner(path, owner, native) {
|
|
|
3363
3379
|
async function createWithOwnerAsync(path, owner, native) {
|
|
3364
3380
|
const made = staging(path);
|
|
3365
3381
|
try {
|
|
3366
|
-
await mkdir(made);
|
|
3382
|
+
await mkdir$1(made);
|
|
3367
3383
|
await writeFile(mutexOwnerPath(made), JSON.stringify(owner));
|
|
3368
3384
|
if (await native.renameNoReplace(made, path)) return true;
|
|
3369
3385
|
} catch {}
|
|
@@ -3912,7 +3928,7 @@ function acquireTrustLockSync(path) {
|
|
|
3912
3928
|
}
|
|
3913
3929
|
async function acquireTrustLock(path) {
|
|
3914
3930
|
const trustDir = dirname(path);
|
|
3915
|
-
await mkdir(trustDir, { recursive: true });
|
|
3931
|
+
await mkdir$1(trustDir, { recursive: true });
|
|
3916
3932
|
const lockPath = `${path}.lock`;
|
|
3917
3933
|
return waitForLock((fs) => lockfile.lock(trustDir, {
|
|
3918
3934
|
realpath: false,
|