@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.
Files changed (457) hide show
  1. package/CHANGELOG.md +155 -0
  2. package/README.md +5 -8
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +9 -9
  7. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +8 -8
  8. package/dist/_shared/mode-shared-2QJSCUM6.js +9 -9
  9. package/dist/_shared/p0-cli-BB45ZQY6.js +46 -67
  10. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
  11. package/dist/_shared/p1a-prewarm-XIU57JHF.js +7 -8
  12. package/dist/_shared/p1a-prewarm-XIU57JHF.js.map +1 -1
  13. package/dist/_shared/{p1b-elig-ENCUPKKJ.js → p1b-elig-TVB5CBLL.js} +14 -2
  14. package/dist/_shared/{p1b-elig-ENCUPKKJ.js.map → p1b-elig-TVB5CBLL.js.map} +1 -1
  15. package/dist/_shared/runtime-O4KCSG4C.js +5 -5
  16. package/dist/_shared/{sdk-AVFII7NK.js → sdk-B5LEWGGI.js} +2633 -488
  17. package/dist/_shared/sdk-B5LEWGGI.js.map +1 -0
  18. package/dist/_shared/session-data-AHTU7IS6.js +3 -3
  19. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  20. package/dist/_shared/settings-startup-8-DNZ2RIHM.js +1 -1
  21. package/dist/_shared/{settings-startup-4QCVCI53.js → settings-startup-HXQLSUWM.js} +8 -2
  22. package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -0
  23. package/dist/_shared/{startup-0-0-57KF6LZH.js → startup-0-0-EZUKEP4Q.js} +436 -51
  24. package/dist/_shared/startup-0-0-EZUKEP4Q.js.map +1 -0
  25. package/dist/_shared/{startup-0-1-GIY75K46.js → startup-0-1-RTOHJFDJ.js} +240 -279
  26. package/dist/_shared/startup-0-1-RTOHJFDJ.js.map +1 -0
  27. package/dist/_shared/{startup-0-2-27OWFHV6.js → startup-0-2-5QHPCEON.js} +254 -46
  28. package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -0
  29. package/dist/_shared/{startup-0-3-T4DVFYWX.js → startup-0-3-4ZYBYQNM.js} +273 -14
  30. package/dist/_shared/startup-0-3-4ZYBYQNM.js.map +1 -0
  31. package/dist/_shared/startup-0-4-ZMJV547D.js +14 -9
  32. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
  33. package/dist/_shared/startup-0-5-YDW47QX6.js +10 -10
  34. package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -1
  35. package/dist/_shared/startup-10-0-TDQNBDDL.js +9 -9
  36. package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
  37. package/dist/_shared/startup-14-0-MLX36RBG.js +6 -7
  38. package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
  39. package/dist/_shared/startup-15-0-YUKGAC63.js +7 -7
  40. package/dist/_shared/startup-15-1-4S7FLMNG.js +22 -30
  41. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  42. package/dist/_shared/startup-8-0-34CBHPZH.js +455 -102
  43. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  44. package/dist/_shared/{startup-8-1-X32CYSXB.js → startup-8-1-LZFXSD3Z.js} +162 -1184
  45. package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -0
  46. package/dist/_shared/storage-command-7MGXLJGZ.js +189 -36
  47. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  48. package/dist/_shared/storage-status-K7PX2RXA.js +557 -0
  49. package/dist/_shared/storage-status-K7PX2RXA.js.map +1 -0
  50. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  51. package/dist/_shared/team-DOQKICG2.js +376 -0
  52. package/dist/_shared/team-DOQKICG2.js.map +1 -0
  53. package/dist/_shared/tree-outline-MUEPK5B7.js +3 -3
  54. package/dist/builtin/intercom/CHANGELOG.md +34 -0
  55. package/dist/builtin/intercom/README.md +2 -2
  56. package/dist/builtin/intercom/broker/broker.bundle.mjs +1091 -344
  57. package/dist/builtin/intercom/broker/database-wake-up-bus.ts +243 -64
  58. package/dist/builtin/intercom/broker/multinode-router.ts +154 -22
  59. package/dist/builtin/intercom/broker/multinode-state-store.ts +30 -3
  60. package/dist/builtin/intercom/broker/open-broker-state.ts +14 -0
  61. package/dist/builtin/intercom/broker/sql-add-column.ts +29 -5
  62. package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +3 -2
  63. package/dist/builtin/intercom/broker/sql-held-send-store.ts +2 -2
  64. package/dist/builtin/intercom/broker/sql-known-session-store.ts +43 -19
  65. package/dist/builtin/intercom/broker/sql-lease-store.ts +208 -101
  66. package/dist/builtin/intercom/broker/sql-outbox-store.ts +516 -102
  67. package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +8 -5
  68. package/dist/builtin/intercom/broker/sql-released-ask-store.ts +12 -5
  69. package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +24 -7
  70. package/dist/builtin/intercom/broker/sql-retention.ts +141 -0
  71. package/dist/builtin/intercom/broker/sql-schema.ts +199 -27
  72. package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +74 -19
  73. package/dist/builtin/intercom/broker/wake-up-bus.ts +6 -0
  74. package/dist/builtin/intercom/index.bundle.mjs +2 -3
  75. package/dist/builtin/intercom/package.json +1 -1
  76. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  77. package/dist/builtin/mcp/package.json +1 -1
  78. package/dist/builtin/subagents/CHANGELOG.md +6 -0
  79. package/dist/builtin/subagents/package.json +1 -1
  80. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  81. package/dist/builtin/web-access/index.bundle.mjs +2 -10
  82. package/dist/builtin/web-access/package.json +1 -1
  83. package/dist/bun/bundled-sqlite.js +41 -0
  84. package/dist/bun/bundled-sqlite.js.map +1 -0
  85. package/dist/cli/args.js +2 -2
  86. package/dist/cli/auth-cli.code.js +6 -6
  87. package/dist/cli/auth-cli.impl.js +3 -3
  88. package/dist/cli/auth-cli.js +3 -3
  89. package/dist/cli/blueprint-command.code.js +4 -4
  90. package/dist/cli/blueprint-command.impl.js +3 -3
  91. package/dist/cli/blueprint-command.js +3 -3
  92. package/dist/cli/intercom-command.code.js +4 -4
  93. package/dist/cli/intercom-command.code.js.map +1 -1
  94. package/dist/cli/intercom-command.impl.js +3 -3
  95. package/dist/cli/intercom-command.js +3 -3
  96. package/dist/cli/list-models.code.js +2 -2
  97. package/dist/cli/list-models.impl.js +3 -3
  98. package/dist/cli/list-models.js +3 -3
  99. package/dist/cli/session-picker.code.js +2 -2
  100. package/dist/cli/session-picker.impl.js +3 -3
  101. package/dist/cli/session-picker.js +3 -3
  102. package/dist/cli/startup-ui.code.js +2 -2
  103. package/dist/cli/startup-ui.impl.js +3 -3
  104. package/dist/cli/startup-ui.js +3 -3
  105. package/dist/cli/storage-command.impl.js +3 -3
  106. package/dist/cli/storage-command.js +3 -3
  107. package/dist/cli/storage-search-session.code.js +3 -3
  108. package/dist/cli/storage-search-session.impl.js +3 -3
  109. package/dist/cli/storage-search-session.js +3 -3
  110. package/dist/cli/team-command.code.js +20 -114
  111. package/dist/cli/team-command.code.js.map +1 -1
  112. package/dist/cli/team-command.impl.js +3 -3
  113. package/dist/cli/team-command.js +3 -3
  114. package/dist/cli.js +5 -18
  115. package/dist/cli.js.map +1 -1
  116. package/dist/core/agent-rehydrate-errors.d.ts +4 -9
  117. package/dist/core/compaction/compactor.d.ts +3 -3
  118. package/dist/core/debug.code.js +1 -1
  119. package/dist/core/debug.impl.js +3 -3
  120. package/dist/core/debug.js +3 -3
  121. package/dist/core/export-html/card-projection.impl.js +3 -3
  122. package/dist/core/export-html/card-projection.js +3 -3
  123. package/dist/core/export-html/index.code.js +2 -2
  124. package/dist/core/export-html/index.impl.js +3 -3
  125. package/dist/core/export-html/index.js +3 -3
  126. package/dist/core/export-html/json-spans.impl.js +3 -3
  127. package/dist/core/export-html/json-spans.js +3 -3
  128. package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
  129. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  130. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  131. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  132. package/dist/core/export-html/tool-renderer.js +3 -3
  133. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  134. package/dist/core/extensions/jiti-loader.js +3 -3
  135. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  136. package/dist/core/extensions/jiti-static-loader.js +3 -3
  137. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  138. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  139. package/dist/core/extensions/loader-host-modules.js +3 -3
  140. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  141. package/dist/core/extensions/runner-context.js +3 -3
  142. package/dist/core/intercom-broker-control-host.code.js +2 -2
  143. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  144. package/dist/core/intercom-broker-control-host.js +3 -3
  145. package/dist/core/intercom-broker-control.code.js +3 -3
  146. package/dist/core/intercom-broker-control.impl.js +3 -3
  147. package/dist/core/intercom-broker-control.js +3 -3
  148. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  149. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  150. package/dist/core/package-manager-storage-adapters.js +3 -3
  151. package/dist/core/process-start-token.d.ts +8 -0
  152. package/dist/core/process-tree-containment.d.ts +16 -0
  153. package/dist/core/sdk-types.d.ts +1 -2
  154. package/dist/core/sdk-types.js.map +1 -1
  155. package/dist/core/sdk.code.js +4 -4
  156. package/dist/core/sdk.impl.js +3 -3
  157. package/dist/core/sdk.js +3 -3
  158. package/dist/core/session-manager-core.js +27 -15
  159. package/dist/core/session-manager-core.js.map +1 -1
  160. package/dist/core/session-manager-list.impl.js +3 -3
  161. package/dist/core/session-manager-list.js +3 -3
  162. package/dist/core/session-manager.code.js +3 -3
  163. package/dist/core/session-manager.impl.js +3 -3
  164. package/dist/core/session-manager.js +3 -3
  165. package/dist/core/session-open-markers.js +3 -0
  166. package/dist/core/session-open-markers.js.map +1 -0
  167. package/dist/core/session-storage.code.js +1 -1
  168. package/dist/core/session-storage.impl.js +3 -3
  169. package/dist/core/session-storage.js +3 -3
  170. package/dist/core/settings-schema.d.ts +0 -3
  171. package/dist/core/storage/added-exports-0-10-11.js +19 -0
  172. package/dist/core/storage/added-exports-0-10-11.js.map +1 -0
  173. package/dist/core/storage/added-exports.js +3 -0
  174. package/dist/core/storage/added-exports.js.map +1 -1
  175. package/dist/core/storage/creation-time.js +105 -0
  176. package/dist/core/storage/creation-time.js.map +1 -0
  177. package/dist/core/storage/database.d.ts +56 -5
  178. package/dist/core/storage/database.js.map +1 -1
  179. package/dist/core/storage/dialect.d.ts +1 -1
  180. package/dist/core/storage/dialect.js +1 -1
  181. package/dist/core/storage/dialect.js.map +1 -1
  182. package/dist/core/storage/errors.d.ts +13 -13
  183. package/dist/core/storage/errors.js +10 -16
  184. package/dist/core/storage/errors.js.map +1 -1
  185. package/dist/core/storage/fenced-paths.d.ts +11 -0
  186. package/dist/core/storage/fenced-paths.js +11 -0
  187. package/dist/core/storage/fenced-paths.js.map +1 -1
  188. package/dist/core/storage/file-identity.d.ts +2 -0
  189. package/dist/core/storage/file-identity.js +24 -8
  190. package/dist/core/storage/file-identity.js.map +1 -1
  191. package/dist/core/storage/index.d.ts +4 -3
  192. package/dist/core/storage/index.js +5 -3
  193. package/dist/core/storage/index.js.map +1 -1
  194. package/dist/core/storage/libsql-removed.d.ts +71 -0
  195. package/dist/core/storage/libsql-removed.js +123 -0
  196. package/dist/core/storage/libsql-removed.js.map +1 -0
  197. package/dist/core/storage/migrations.d.ts +81 -8
  198. package/dist/core/storage/migrations.js +386 -47
  199. package/dist/core/storage/migrations.js.map +1 -1
  200. package/dist/core/storage/node-sqlite-file-gate.js +0 -15
  201. package/dist/core/storage/node-sqlite-file-gate.js.map +1 -1
  202. package/dist/core/storage/node-sqlite-thread.js +36 -12
  203. package/dist/core/storage/node-sqlite-thread.js.map +1 -1
  204. package/dist/core/storage/node-sqlite.js +135 -3
  205. package/dist/core/storage/node-sqlite.js.map +1 -1
  206. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  207. package/dist/core/storage/offline-snapshot-file.js +3 -3
  208. package/dist/core/storage/prefix.d.ts +1 -1
  209. package/dist/core/storage/prefix.js +14 -2
  210. package/dist/core/storage/prefix.js.map +1 -1
  211. package/dist/core/storage/process-selection.d.ts +5 -5
  212. package/dist/core/storage/provider.js +2 -2
  213. package/dist/core/storage/schema-catalog.d.ts +82 -5
  214. package/dist/core/storage/schema-catalog.js +244 -34
  215. package/dist/core/storage/schema-catalog.js.map +1 -1
  216. package/dist/core/storage/selection.d.ts +7 -82
  217. package/dist/core/storage/selection.js +20 -235
  218. package/dist/core/storage/selection.js.map +1 -1
  219. package/dist/core/storage/session/branch-fork-source.code.js +9 -8
  220. package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
  221. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  222. package/dist/core/storage/session/branch-fork-source.js +3 -3
  223. package/dist/core/storage/session/card-view.impl.js +3 -3
  224. package/dist/core/storage/session/card-view.js +3 -3
  225. package/dist/core/storage/session/child-reader.code.js +4 -4
  226. package/dist/core/storage/session/child-reader.impl.js +3 -3
  227. package/dist/core/storage/session/child-reader.js +3 -3
  228. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  229. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  230. package/dist/core/storage/session/errors.js +1 -1
  231. package/dist/core/storage/session/expanded-child-details.code.js +3 -3
  232. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  233. package/dist/core/storage/session/expanded-child-details.js +3 -3
  234. package/dist/core/storage/session/fork-detach.d.ts +118 -0
  235. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  236. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  237. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  238. package/dist/core/storage/session/fork-row-index.js +3 -3
  239. package/dist/core/storage/session/fork-schema.js +53 -0
  240. package/dist/core/storage/session/fork-schema.js.map +1 -0
  241. package/dist/core/storage/session/fork-segments.d.ts +58 -0
  242. package/dist/core/storage/session/fork-staging.code.js +5 -8
  243. package/dist/core/storage/session/fork-staging.code.js.map +1 -1
  244. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  245. package/dist/core/storage/session/fork-staging.js +3 -3
  246. package/dist/core/storage/session/fork-sweep.js +61 -0
  247. package/dist/core/storage/session/fork-sweep.js.map +1 -0
  248. package/dist/core/storage/session/fork-window.code.js +4 -4
  249. package/dist/core/storage/session/fork-window.impl.js +3 -3
  250. package/dist/core/storage/session/fork-window.js +3 -3
  251. package/dist/core/storage/session/history-pages.impl.js +3 -3
  252. package/dist/core/storage/session/history-pages.js +3 -3
  253. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  254. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  255. package/dist/core/storage/session/jsonl-session-store.d.ts +42 -2
  256. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  257. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  258. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  259. package/dist/core/storage/session/memory-session-store.js +3 -3
  260. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  261. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  262. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  263. package/dist/core/storage/session/released-history-files.code.js +4 -4
  264. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  265. package/dist/core/storage/session/released-history-files.js +3 -3
  266. package/dist/core/storage/session/resident-fork-rows.code.js +1 -1
  267. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  268. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  269. package/dist/core/storage/session/session-resume.impl.js +3 -3
  270. package/dist/core/storage/session/session-resume.js +3 -3
  271. package/dist/core/storage/session/session-search-index.d.ts +43 -4
  272. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  273. package/dist/core/storage/session/snapshot-cut.js +3 -3
  274. package/dist/core/storage/session/snapshot-history.code.js +4 -4
  275. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  276. package/dist/core/storage/session/snapshot-history.js +3 -3
  277. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  278. package/dist/core/storage/session/sql-session-store.d.ts +394 -20
  279. package/dist/core/storage/session/sql-session-store.impl.js +4 -4
  280. package/dist/core/storage/session/sql-session-store.js +4 -4
  281. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  282. package/dist/core/storage/session/tree-outline.js +3 -3
  283. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  284. package/dist/core/storage/session/tree-presentation.js +3 -3
  285. package/dist/core/storage/session/types.d.ts +22 -0
  286. package/dist/core/storage/sqlite-facade.d.ts +23 -2
  287. package/dist/core/storage/sqlite-facade.js +34 -0
  288. package/dist/core/storage/sqlite-facade.js.map +1 -1
  289. package/dist/core/storage/storage-status.code.js +1 -1
  290. package/dist/core/storage/storage-status.impl.js +3 -3
  291. package/dist/core/storage/storage-status.js +3 -3
  292. package/dist/core/storage/team.code.js +1 -1
  293. package/dist/core/storage/team.d.ts +26 -115
  294. package/dist/core/storage/team.impl.js +3 -3
  295. package/dist/core/storage/team.js +3 -3
  296. package/dist/core/structured-output/index.code.js +1 -1
  297. package/dist/core/structured-output/index.impl.js +3 -3
  298. package/dist/core/structured-output/index.js +3 -3
  299. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  300. package/dist/core/tasks/task-completion-entry.js +3 -3
  301. package/dist/core/tasks/task-file-history.code.js +4 -4
  302. package/dist/core/tasks/task-file-history.impl.js +3 -3
  303. package/dist/core/tasks/task-file-history.js +3 -3
  304. package/dist/core/tasks/task-reference-archive.code.js +5 -5
  305. package/dist/core/tasks/task-reference-archive.js +3 -3
  306. package/dist/core/tasks/task-reference-identity.js +3 -3
  307. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  308. package/dist/core/tasks/task-reference-stream.js +3 -3
  309. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  310. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  311. package/dist/core/tasks/task-view-source.code.js +1 -1
  312. package/dist/core/tasks/task-view-source.impl.js +3 -3
  313. package/dist/core/tasks/task-view-source.js +3 -3
  314. package/dist/core/tools/history-session.d.ts +2 -0
  315. package/dist/core/tools/history-tasks.d.ts +3 -2
  316. package/dist/core/tools/read-url.code.js +4 -4
  317. package/dist/core/tools/read-url.impl.js +3 -3
  318. package/dist/core/tools/read-url.js +3 -3
  319. package/dist/core/worktree-snapshot/blob-store.d.ts +71 -3
  320. package/dist/core/worktree-snapshot/blob-store.js +575 -67
  321. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  322. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  323. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  324. package/dist/core/worktree-snapshot/errors.js +3 -3
  325. package/dist/core/worktree-snapshot/fork-blob-guard.js +81 -0
  326. package/dist/core/worktree-snapshot/fork-blob-guard.js.map +1 -0
  327. package/dist/core/worktree-snapshot/fork-snapshot-index.js +162 -0
  328. package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -0
  329. package/dist/core/worktree-snapshot/session-index-reset.code.js +4 -0
  330. package/dist/core/worktree-snapshot/session-index-reset.code.js.map +1 -1
  331. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  332. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  333. package/dist/extensions/codemode/execute.code.js +2 -2
  334. package/dist/extensions/codemode/execute.impl.js +3 -3
  335. package/dist/extensions/codemode/execute.js +3 -3
  336. package/dist/extensions/codemode/renderer.code.js +2 -2
  337. package/dist/extensions/codemode/renderer.impl.js +3 -3
  338. package/dist/extensions/codemode/renderer.js +3 -3
  339. package/dist/extensions/mcp/cli.code.js +3 -3
  340. package/dist/extensions/mcp/cli.impl.js +3 -3
  341. package/dist/extensions/mcp/cli.js +3 -3
  342. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  343. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  344. package/dist/extensions/mcp/cli.lazy.js +3 -3
  345. package/dist/extensions/mcp/runtime.code.js +1 -1
  346. package/dist/extensions/mcp/runtime.impl.js +3 -3
  347. package/dist/extensions/mcp/runtime.js +3 -3
  348. package/dist/index.d.ts +3 -1
  349. package/dist/index.js +8 -8
  350. package/dist/main-first-time-setup.code.js +2 -2
  351. package/dist/main-first-time-setup.impl.js +3 -3
  352. package/dist/main-first-time-setup.js +3 -3
  353. package/dist/main.js +1 -1
  354. package/dist/modes/interactive/components/stored-tree-view.code.js +3 -3
  355. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  356. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  357. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  358. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  359. package/dist/modes/interactive/startup-shell-eligibility.js +1 -1
  360. package/dist/modes/interactive-engine/engine-prewarm.d.ts +1 -1
  361. package/dist/modes/print-mode.js +1 -1
  362. package/dist/package-manager-cli.code.js +7 -7
  363. package/dist/package-manager-cli.impl.js +3 -3
  364. package/dist/package-manager-cli.js +3 -3
  365. package/dist/rpc-entry.js +1 -1
  366. package/dist/startup-files.json +1 -1
  367. package/dist/startup-stages/10.js +1 -1
  368. package/dist/startup-stages/11.js +1 -1
  369. package/dist/startup-stages/12.js +1 -1
  370. package/dist/startup-stages/2.js +2 -3
  371. package/dist/startup-stages/3.js +1 -3
  372. package/dist/startup-stages/4.js +1 -2
  373. package/dist/startup-stages/5.js +1 -1
  374. package/dist/startup-stages/6.js +5 -7
  375. package/dist/startup-stages/7.js +3 -6
  376. package/dist/startup-stages/8.js +7 -2
  377. package/dist/startup-stages/9.js +1 -7
  378. package/dist/startup-stages/stages.json +1 -1
  379. package/dist/utils/compile-cache-deferral.js +8 -13
  380. package/dist/utils/compile-cache-deferral.js.map +1 -1
  381. package/dist/utils/compile-cache-warmup-host.js +3 -4
  382. package/dist/utils/compile-cache-warmup-host.js.map +1 -1
  383. package/dist/utils/compile-cache.js +12 -100
  384. package/dist/utils/compile-cache.js.map +1 -1
  385. package/dist/utils/startup-database-spare.code.js +3 -3
  386. package/dist/utils/startup-database-spare.impl.js +3 -3
  387. package/dist/utils/startup-database-spare.js +3 -3
  388. package/dist/utils/tools-manager.code.js +1 -1
  389. package/dist/utils/tools-manager.impl.js +3 -3
  390. package/dist/utils/tools-manager.js +3 -3
  391. package/dist/utils/worker-threads.js +2 -15
  392. package/dist/utils/worker-threads.js.map +1 -1
  393. package/docs/build.md +3 -3
  394. package/docs/changelog.mdx +1421 -69
  395. package/docs/compaction/reference.md +5 -5
  396. package/docs/compaction.md +7 -9
  397. package/docs/containerization.md +2 -2
  398. package/docs/custom-provider/api-reference.md +1 -1
  399. package/docs/docs.json +37 -10
  400. package/docs/environment-variables.md +0 -2
  401. package/docs/extensions/api-reference.md +4 -4
  402. package/docs/getting-started/installation.md +3 -0
  403. package/docs/guides/configuration.md +1 -1
  404. package/docs/guides/non-interactive.md +1 -1
  405. package/docs/guides/resume-on-any-machine.md +14 -22
  406. package/docs/guides/team-setup.md +56 -83
  407. package/docs/guides.md +2 -4
  408. package/docs/herdr.md +1 -1
  409. package/docs/index.md +1 -1
  410. package/docs/intercom/operations.md +26 -21
  411. package/docs/intercom/reference.md +2 -2
  412. package/docs/intercom.md +1 -1
  413. package/docs/libraries/storage-postgres.md +9 -9
  414. package/docs/libraries.md +2 -3
  415. package/docs/models-configuration.md +2 -2
  416. package/docs/models.md +2 -3
  417. package/docs/packages/authoring.md +7 -7
  418. package/docs/packages.md +1 -1
  419. package/docs/programmatic.md +2 -2
  420. package/docs/quickstart.md +1 -1
  421. package/docs/reference/cli.md +6 -11
  422. package/docs/reference.md +2 -2
  423. package/docs/rpc/extension-ui.md +2 -2
  424. package/docs/sdk/reference.md +5 -4
  425. package/docs/sdk/storage.md +8 -92
  426. package/docs/sdk/structured-decisions.md +1 -1
  427. package/docs/sdk/web-server.md +3 -3
  428. package/docs/sdk.md +14 -4
  429. package/docs/security.md +1 -1
  430. package/docs/session-format.md +5 -5
  431. package/docs/sessions.md +31 -42
  432. package/docs/settings.md +7 -8
  433. package/docs/storage/custom-adapters.md +255 -0
  434. package/docs/storage/jsonl.md +117 -0
  435. package/docs/{guides/postgres-pgbouncer.md → storage/postgres/pgbouncer.md} +73 -68
  436. package/docs/storage/postgres/tuning.md +337 -0
  437. package/docs/storage/postgres.md +556 -0
  438. package/docs/storage/sqlite.md +99 -0
  439. package/docs/storage.md +333 -956
  440. package/docs/subagents/authoring.md +1 -1
  441. package/docs/subagents.md +2 -2
  442. package/docs/tools.md +1 -1
  443. package/docs/worktree-snapshots.md +2 -2
  444. package/package.json +9 -9
  445. package/schemas/models.schema.json +2 -2
  446. package/schemas/settings.schema.json +0 -14
  447. package/dist/_shared/sdk-AVFII7NK.js.map +0 -1
  448. package/dist/_shared/settings-startup-4QCVCI53.js.map +0 -1
  449. package/dist/_shared/startup-0-0-57KF6LZH.js.map +0 -1
  450. package/dist/_shared/startup-0-1-GIY75K46.js.map +0 -1
  451. package/dist/_shared/startup-0-2-27OWFHV6.js.map +0 -1
  452. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +0 -1
  453. package/dist/_shared/startup-8-1-X32CYSXB.js.map +0 -1
  454. package/dist/core/intercom-broker-control.d.ts +0 -129
  455. package/dist/startup-stages/13.js +0 -1
  456. package/docs/guides/postgres-tuning.md +0 -311
  457. package/docs/libraries/storage-libsql.md +0 -97
@@ -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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using this feature.", {
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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using this feature.", {
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,5 +1,5 @@
1
1
  import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
- import { shouldRunFirstTimeSetup } from "../_shared/startup-0-0-57KF6LZH.js";
3
- import { StartupDialogInputGuard, detectStartupTheme, showFirstTimeSetup, showStartupInput, showStartupSelector } from "../_shared/startup-0-2-27OWFHV6.js";
2
+ import { shouldRunFirstTimeSetup } from "../_shared/startup-0-0-EZUKEP4Q.js";
3
+ import { StartupDialogInputGuard, detectStartupTheme, showFirstTimeSetup, showStartupInput, showStartupSelector } from "../_shared/startup-0-2-5QHPCEON.js";
4
4
  export { StartupDialogInputGuard, detectStartupTheme, shouldRunFirstTimeSetup, showFirstTimeSetup, showStartupInput, showStartupSelector };
5
5
  //# sourceMappingURL=startup-ui.code.js.map
@@ -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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using this feature.", {
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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using this feature.", {
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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
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 session storage.", {
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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
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 session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,11 +1,11 @@
1
1
  import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
2
  import { resolve } from "node:path";
3
3
  import { renderStorageIdentifiers } from "../core/storage/prefix.js";
4
- import { SESSION_TABLES, SqlSessionStore } from "../_shared/sdk-AVFII7NK.js";
5
- import { createHistoryRouter, createSearchToolDefinition } from "../_shared/startup-8-1-X32CYSXB.js";
4
+ import { SESSION_TABLES, SqlSessionStore } from "../_shared/sdk-B5LEWGGI.js";
5
+ import { createHistoryRouter, createSearchToolDefinition } from "../_shared/startup-8-1-LZFXSD3Z.js";
6
6
  import { lstat, realpath, stat } from "node:fs/promises";
7
7
  import { pathToFileURL } from "node:url";
8
- import { SqliteSelectorConnection } from "../_shared/startup-0-0-57KF6LZH.js";
8
+ import { SqliteSelectorConnection } from "../_shared/startup-0-0-EZUKEP4Q.js";
9
9
  // dist/cli/storage-search-database.js
10
10
  async function existingFile(path) {
11
11
  try {
@@ -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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
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 session storage.", {
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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
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 session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,45 +1,33 @@
1
1
  import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME } from "../_shared/p0-cli-BB45ZQY6.js";
3
3
  import { StorageError, TeamProfileConfigError, isTeamProfileConfigError, isTeamProfileError } from "../core/storage/errors.js";
4
- import { processStorageEnvironment } from "../_shared/startup-0-2-27OWFHV6.js";
5
- import { LIBSQL_ADAPTER_PACKAGE } from "../core/storage/selection.js";
6
- import { collectStorageStatus, describeStorageError as describeStorageError$1, joinTeamWith, leaveTeamWith, selectTeamProfile } from "../_shared/startup-8-1-X32CYSXB.js";
7
- import { createGitEnvironment } from "../_shared/startup-0-0-57KF6LZH.js";
4
+ import { LIBSQL_MIGRATION_DOCS_URL } from "../core/storage/libsql-removed.js";
5
+ import { processStorageEnvironment } from "../_shared/startup-0-2-5QHPCEON.js";
6
+ import { collectStorageStatus, describeStorageError as describeStorageError$1 } from "../_shared/storage-status-K7PX2RXA.js";
7
+ import { selectTeamProfile } from "../_shared/team-DOQKICG2.js";
8
+ import { createGitEnvironment } from "../_shared/startup-0-0-EZUKEP4Q.js";
8
9
  import { failed, formatStorageStatus, loadBrokerControl } from "../_shared/storage-command-7MGXLJGZ.js";
9
10
  // dist/cli/team-command.js
10
11
  /**
11
- * `atomic team join|status|leave`: the recommended team layout as one command, over the SDK's `joinTeam`,
12
- * `selectTeamProfile` and `leaveTeam`. Intercom routing shares a team database; sessions stay local.
12
+ * `atomic team status`: the layout in effect over the SDK's `selectTeamProfile`, and the storage status. `team join`
13
+ * and `team leave`, which set up a libSQL team database, were removed with libSQL support.
13
14
  */
14
15
  const HELP = `Usage:
15
- ${APP_NAME} team join <url> [--token-file <path>] [--prefix <prefix>]
16
16
  ${APP_NAME} team status [--json]
17
- ${APP_NAME} team leave
18
17
 
19
18
  Commands:
20
- join Share Intercom routing with your team through a libSQL / Turso database while
21
- sessions stay on this machine. Checks the token and the connection with
22
- ${LIBSQL_ADAPTER_PACKAGE}, stores the token in the agent directory (mode 600), sets the
23
- global \`storage\` setting to the team database and \`sessions.storage\` to the local store in
24
- one write, restarts the Intercom broker, and prints the storage status. While multi-node
25
- routing is on, sessions join a project group (project:<owner>/<repo>) instead of "default".
26
- Nothing is changed when a check fails.
27
19
  status Show the profile in effect (individual, team, ci or custom) and the storage status. Exits 1
28
20
  when a selection is invalid, an adapter cannot load, or a database does not answer.
29
- leave Restore the individual layout: remove \`storage\` and \`sessions.storage\` when they hold what
30
- \`team join\` wrote, delete that token file unless a setting still references it, and restart
31
- the Intercom broker. Other settings are unchanged; running it again changes nothing.
32
21
 
33
22
  Options:
34
23
  --json Print the status as JSON
35
- --token-file <path> File holding the database token, for example from \`turso db tokens create\`;
36
- surrounding whitespace is removed. Required except for file: URLs
37
- --prefix <prefix> Table prefix, to share one database between teams`;
24
+
25
+ To share sessions or Intercom routing through a PostgreSQL database, run ${APP_NAME} storage join postgres://….`;
38
26
  const HELP_HINT = `Use "${APP_NAME} team --help" for usage.`;
39
27
  const PROFILE_DESCRIPTIONS = {
40
28
  individual: "sessions on this machine; Intercom on this machine only",
41
- team: "sessions on this machine; Intercom on the team database",
42
- ci: "sessions and Intercom on the team database",
29
+ team: "sessions on this machine; Intercom on the shared database",
30
+ ci: "sessions and Intercom on the shared database",
43
31
  custom: "matches no preset; see the selections below"
44
32
  };
45
33
  function usage(code, field, hint) {
@@ -53,55 +41,21 @@ function usage(code, field, hint) {
53
41
  function parseTeamCommand(args) {
54
42
  const [command, ...rest] = args;
55
43
  if (command === void 0 || command === "help" || args.includes("--help") || args.includes("-h")) return { kind: "help" };
56
- if (command !== "join" && command !== "status" && command !== "leave") throw usage("unknown-command", "<command>", `Use join, status or leave. ${HELP_HINT}`);
57
- const positional = [];
58
- const values = /* @__PURE__ */ new Map();
44
+ if (command === "join" || command === "leave") throw usage("libsql-removed", `${APP_NAME} team ${command}`, `\`${APP_NAME} team join\` and \`${APP_NAME} team leave\` were removed with libSQL support in Atomic 0.10.11. To share sessions or Intercom routing, join a PostgreSQL database with ${APP_NAME} storage join postgres://…; to leave it, remove the \`storage\` setting. To move sessions off libSQL, see ${LIBSQL_MIGRATION_DOCS_URL}`);
45
+ if (command !== "status") throw usage("unknown-command", "<command>", `Use status. ${HELP_HINT}`);
59
46
  let json = false;
60
- for (let index = 0; index < rest.length; index++) {
61
- const arg = rest[index];
62
- if (command === "status" && arg === "--json") {
47
+ for (const arg of rest) {
48
+ if (arg === "--json") {
63
49
  json = true;
64
50
  continue;
65
51
  }
66
- if (command === "join" && (arg === "--token-file" || arg === "--prefix")) {
67
- const value = rest[++index];
68
- if (value === void 0) throw usage("missing-value", arg, `Pass a value after ${arg}.`);
69
- values.set(arg, value);
70
- continue;
71
- }
72
- if (arg.startsWith("-")) throw usage("unknown-option", arg.split("=")[0], `"${APP_NAME} team ${command}" does not take it. ${HELP_HINT}`);
73
- positional.push(arg);
74
- }
75
- if (command === "join") {
76
- if (positional.length === 0) throw usage("missing-url", "<url>", `Pass the team database URL: ${APP_NAME} team join <url> [--token-file <path>] [--prefix <prefix>]`);
77
- if (positional.length > 1) throw usage("unexpected-argument", "arguments after <url>", `Pass one URL. ${HELP_HINT}`);
78
- const tokenFile = values.get("--token-file");
79
- const prefix = values.get("--prefix");
80
- return {
81
- kind: "join",
82
- url: positional[0],
83
- ...tokenFile === void 0 ? {} : { tokenFile },
84
- ...prefix === void 0 ? {} : { prefix }
85
- };
52
+ if (arg.startsWith("-")) throw usage("unknown-option", arg.split("=")[0], `"${APP_NAME} team status" does not take it. ${HELP_HINT}`);
53
+ throw usage("unexpected-argument", "arguments after status", `"${APP_NAME} team status" takes none. ${HELP_HINT}`);
86
54
  }
87
- if (positional.length > 0) throw usage("unexpected-argument", `arguments after ${command}`, `"${APP_NAME} team ${command}" takes none. ${HELP_HINT}`);
88
- return command === "status" ? {
55
+ return {
89
56
  kind: "status",
90
57
  json
91
- } : { kind: "leave" };
92
- }
93
- function describeRestart(restart, log, error) {
94
- if (restart.status === "failed") {
95
- error(restart.error.message);
96
- return false;
97
- }
98
- if (restart.status === "not-running") log("No Intercom broker was running; the next session that uses Intercom starts one with these settings.");
99
- else if (restart.status === "stopped") log(`Stopped the Intercom broker (pid ${restart.previous.pid}); the next session that uses Intercom starts one with these settings.`);
100
- else {
101
- const current = restart.current;
102
- log(`Restarted the Intercom broker: pid ${restart.previous.pid} → ${current.state === "running" ? current.report.pid : current.pid ?? "unknown"}.`);
103
- }
104
- return true;
58
+ };
105
59
  }
106
60
  function projectGroupOf(control, options) {
107
61
  if (control instanceof Error) return void 0;
@@ -158,55 +112,7 @@ async function runTeamCommand(args, options) {
158
112
  log(HELP);
159
113
  return 0;
160
114
  }
161
- const context = options.loadControl === void 0 ? {} : { loadControl: options.loadControl };
162
- if (command.kind === "status") return (await report(options, command.json, log)).failed ? 1 : 0;
163
- if (command.kind === "join") {
164
- const reportJoined = (joined) => {
165
- log(`Connected to ${command.url}.`);
166
- if (joined.tokenPath !== void 0) log(joined.token === "reused" ? `Kept the token in ${joined.tokenPath}; it already holds this token.` : `Stored the token in ${joined.tokenPath} (mode 600).`);
167
- log(`Set \`storage\` to the team database and \`sessions.storage\` to the local store in ${joined.settingsPath}; other settings are unchanged.`);
168
- if (joined.replaced !== void 0) log(`It replaces the previous selection: ${joined.replaced}.`);
169
- if (joined.replacedSessionsStorage !== void 0) log(`It replaces the previous \`sessions.storage\`: ${joined.replacedSessionsStorage}.`);
170
- };
171
- const restarted = describeRestart((await joinTeamWith({
172
- ...command,
173
- agentDir: options.agentDir,
174
- cwd: options.cwd,
175
- onProgress: log
176
- }, "cli", {
177
- ...context,
178
- onJoined: reportJoined
179
- })).broker, log, error);
180
- log("");
181
- const status = await report(options, false, log);
182
- return restarted && !status.failed ? 0 : 1;
183
- }
184
- let reportedLeft = false;
185
- const reportLeft = (left) => {
186
- reportedLeft = true;
187
- if (left.removed.length === 0) log(`Nothing to remove: ${left.settingsPath} holds no settings that \`${APP_NAME} team join\` wrote.`);
188
- else log(`Removed ${left.removed.map((key) => `\`${key}\``).join(" and ")} from ${left.settingsPath}; other settings are unchanged.`);
189
- for (const { key, reason } of left.kept) log(reason === "changed" ? `Left \`${key}\` in place: it holds something other than what team join writes.` : `Left \`${key}\` in place: \`storage\` is still set, and without it new sessions would move to that store.`);
190
- };
191
- const left = await leaveTeamWith({
192
- agentDir: options.agentDir,
193
- cwd: options.cwd,
194
- onProgress: log
195
- }, {
196
- ...context,
197
- onLeft: reportLeft
198
- });
199
- if (!reportedLeft) reportLeft(left);
200
- for (const path of left.deletedTokenFiles) log(`Deleted the token file ${path}.`);
201
- for (const path of left.keptTokenFiles) log(`Kept the token file ${path}: another setting still references it.`);
202
- const restarted = left.broker === void 0 || describeRestart(left.broker, log, error);
203
- const profile = selectTeamProfile({
204
- agentDir: options.agentDir,
205
- cwd: options.cwd
206
- });
207
- const described = profile.profile === "custom" ? `sessions: ${profile.sessions}; Intercom: ${profile.intercom}` : PROFILE_DESCRIPTIONS[profile.profile];
208
- log(`Profile: ${profile.profile} (${described})`);
209
- return restarted ? 0 : 1;
115
+ return (await report(options, command.json, log)).failed ? 1 : 0;
210
116
  } catch (caught) {
211
117
  error(isTeamProfileError(caught) || isTeamProfileConfigError(caught) ? caught.message : `Error: ${describeStorageError$1(caught)}`);
212
118
  return 1;
@@ -1 +1 @@
1
- {"version":3,"file":"team-command.code.js","names":["describeStorageError"],"sources":["../../src/cli/team-command.ts"],"mappings":";;;;;;;;;;;;;AA6BA,MAAM,OAAO;IACT,SAAQ;IACR,SAAQ;IACR,SAAQ;;;;;aAKC,uBAAsB;;;;;;;;;;;;;;;;AAiBnC,MAAM,YAAY,QAAQ,SAAQ;AAQlC,MAAM,uBAAkE;CACvE,YAAY;CACZ,MAAM;CACN,IAAI;CACJ,QAAQ;AACR;AAED,SAAS,MACR,MACA,OACA,MAAY;CAEZ,OAAO,IAAI,uBAAuB,MAAM;EAAE,QAAQ;EAAO;EAAO;CAAI,CAAE;AACvE;;AAGA,SAAgB,iBAAiB,MAAuB;CACvD,MAAM,CAAC,SAAS,GAAG,QAAQ;CAC3B,IAAI,YAAY,KAAA,KAAa,YAAY,UAAU,KAAK,SAAS,QAAQ,KAAK,KAAK,SAAS,IAAI,GAC/F,OAAO,EAAE,MAAM,OAAM;CAEtB,IAAI,YAAY,UAAU,YAAY,YAAY,YAAY,SAC7D,MAAM,MAAM,mBAAmB,aAAa,8BAA8B,WAAW;CAEtF,MAAM,aAAuB,CAAA;CAC7B,MAAM,yBAAS,IAAI,IAAG;CACtB,IAAI,OAAO;CACX,KAAK,IAAI,QAAQ,GAAG,QAAQ,KAAK,QAAQ,SAAS;EACjD,MAAM,MAAM,KAAK;EACjB,IAAI,YAAY,YAAY,QAAQ,UAAU;GAC7C,OAAO;GACP;EACD;EACA,IAAI,YAAY,WAAW,QAAQ,kBAAkB,QAAQ,aAAa;GACzE,MAAM,QAAQ,KAAK,EAAE;GACrB,IAAI,UAAU,KAAA,GAAW,M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Q,MAAM,OAAO,SAAS,QAAQ,MAAM,GAAG,EAAA,CAAG,SAAS,IAAI;CAChE,SAAS,QAAQ;EAChB,MACC,mBAAmB,MAAM,KAAK,yBAAyB,MAAM,IAC1D,OAAO,UACP,UAAUA,uBAAqB,MAAe,GAAG;EAErD,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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using this feature.", {
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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using this feature.", {
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.js CHANGED
@@ -1,17 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import "./_shared/rolldown-runtime-BGM3D5V3.js";
3
- import { APP_NAME, ATOMIC_AI_AGENT, COMPILE_CACHE_ENGINE_MATCH_HOST_ENV, COMPILE_CACHE_ENGINE_WARMUP_ENV, INTERACTIVE_ENGINE_PREWARM_FLAG, INTERACTIVE_ENGINE_PREWARM_NO_DATABASE, VERSION, compileCacheDeferral, enablePersistentCompileCache, engineHeapRuntimeArgsForHost, flushPersistentCompileCache, getPackageDir, hasInteractiveEngineBootstrapArg, headlessHeapRelaunchArgs, installLifecycleTraceFromEnv, isHeadlessInvocation, isPlainInteractiveSessionInvocation, markLifecycleTiming, noteInheritedHangup, relaunchWithHeap, startStartupPrefetch, updatedInstallError, warmCompileCache } from "./_shared/p0-cli-BB45ZQY6.js";
3
+ import { APP_NAME, ATOMIC_AI_AGENT, COMPILE_CACHE_ENGINE_MATCH_HOST_ENV, COMPILE_CACHE_ENGINE_WARMUP_ENV, INTERACTIVE_ENGINE_PREWARM_FLAG, INTERACTIVE_ENGINE_PREWARM_NO_DATABASE, VERSION, compileCacheDeferral, enablePersistentCompileCache, engineCompileCacheMatchHostEnv, engineHeapRuntimeArgsForHost, flushPersistentCompileCache, getPackageDir, hasInteractiveEngineBootstrapArg, headlessHeapRelaunchArgs, installLifecycleTraceFromEnv, isHeadlessInvocation, isPlainInteractiveSessionInvocation, markLifecycleTiming, noteInheritedHangup, relaunchWithHeap, startStartupPrefetch, updatedInstallError, warmCompileCache } from "./_shared/p0-cli-BB45ZQY6.js";
4
4
  // dist/cli.js
5
- /**
6
- * CLI entry point for the refactored coding agent.
7
- * Uses main.ts with AgentSession and new mode modules.
8
- *
9
- * Test with: bun src/cli.ts [args...]
10
- *
11
- * Deliberately keeps the static entry graph to config, compile-cache support,
12
- * attribution, and the disabled-by-default lifecycle seam. The full CLI graph
13
- * loads dynamically so metadata fast paths (for example `--version`) skip it.
14
- */
15
5
  installLifecycleTraceFromEnv();
16
6
  markLifecycleTiming("process-entry");
17
7
  const args = process.argv.slice(2);
@@ -23,12 +13,9 @@ const terminal = {
23
13
  };
24
14
  const engineCacheWarmedByHost = process.env[COMPILE_CACHE_ENGINE_WARMUP_ENV] === "1";
25
15
  delete process.env[COMPILE_CACHE_ENGINE_WARMUP_ENV];
26
- const engineMatchHostCache = process.env[COMPILE_CACHE_ENGINE_MATCH_HOST_ENV] === "1";
27
- delete process.env[COMPILE_CACHE_ENGINE_MATCH_HOST_ENV];
28
16
  enablePersistentCompileCache({
29
17
  interactive: engineChild ? engineCacheWarmedByHost : isPlainInteractiveSessionInvocation(args, terminal),
30
- build: VERSION,
31
- matchHostTag: engineChild && engineMatchHostCache
18
+ build: VERSION
32
19
  });
33
20
  if (compileCacheDeferral() && !engineChild) process.once("exit", () => warmCompileCache(engineHeapRuntimeArgsForHost(true)));
34
21
  process.title = APP_NAME;
@@ -98,7 +85,7 @@ else {
98
85
  process.exit(1);
99
86
  });
100
87
  }
101
- export {};
88
+ export { COMPILE_CACHE_ENGINE_MATCH_HOST_ENV, engineCompileCacheMatchHostEnv };
102
89
 
103
90
  //# sourceMappingURL=cli.js.map
104
91
  // __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
@@ -107,7 +94,7 @@ function __atomicOnDemandFailed(error, feature) {
107
94
  return (async () => {
108
95
  const root = new URL("./", import.meta.url);
109
96
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
110
- const key = `${root.href}#0.10.11-alpha.1`;
97
+ const key = `${root.href}#0.10.11-alpha.3`;
111
98
  let release = releases.get(key);
112
99
  if (release === undefined) {
113
100
  const current = (async () => {
@@ -135,7 +122,7 @@ function __atomicOnDemandFailed(error, feature) {
135
122
  } catch {
136
123
  // No installation to read, as in a bundle of the package: the release the process runs decides.
137
124
  }
138
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
125
+ 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;
139
126
  if (updatedTo === undefined) throw error;
140
127
  const application = typeof running?.name === "string" ? running.name : "atomic";
141
128
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","names":[],"sources":["../src/cli.ts"],"mappings":";;;;;;;;;;;;;;AAkCA,6BAA4B;AAC5B,oBAAoB,eAAe;AAEnC,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,MAAM,kBAAkB,KAAK,OAAO;AACpC,MAAM,cAAc,mBAAmB,iCAAiC,IAAI;AAC5E,MAAM,WAAW;CAAE,YAAY,QAAQ,MAAM,UAAU;CAAM,aAAa,QAAQ,OAAO,UAAU;AAAI;AAEvG,MAAM,0BAA0B,QAAQ,IAAI,qCAAqC;AACjF,OAAO,QAAQ,IAAI;AACnB,MAAM,uBAAuB,QAAQ,IAAI,yCAAyC;AAClF,OAAO,QAAQ,IAAI;AAGnB,6BAA6B;CAC5B,aAAa,cAAc,0BAA0B,oCAAoC,MAAM,QAAQ;CACvG,OAAO;CACP,cAAc,eAAe;AAC7B,CAAA;AAED,IAAI,qBAAoB,KAAM,CAAC,aAC9B,QAAQ,KAAK,cAAc,iBAAiB,6BAA6B,IAAI,CAAC,CAAC;AAGhF,QAAQ,QAAQ;AAChB,QAAQ,IAAI,GAAG,SAAS,YAAW,EAAE,kBAAmB;AACxD,QAAQ,IAAI,WAAW;AACvB,QAAQ,qBAAoB,CAAE;AAE9B,IAAI,KAAK,OAAO,eAAe,KAAK,OA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rE,CAAC,CAAC,CACD,YAAW,CAAE,CAAC,IACf;CACJ,IAAI,UAAU;CACT,SAAS,WAAU;EACvB,UAAU;CACX,CAAC;CAGI,QACH,WAAU;EACV,MAAM,SAAS,QAAQ,IAAI;GAC1B,OAAO;GACP,OAAO;GACP,OAAO;EACP,CAAA;EAGD,IAAI,iBACE,QAAQ,IAAI,CAAC,QAAQ,OAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,aAAa,YAAW;GACtE,MAAM,QAAQ;GAId,MAAM,OAAO,MAAM;GACnB,IAAI,CAAC,WAAW,SAAS,KAAA,KAAa,KAAK,SAAS,IAAI,GAAG,4BAA2B;GACtF,IAAI,CAAC,SAAS;IACb,MAAM,aAAc,WAClB;IACF,IAAI,OAAO,eAAe,YAAiB,WAAU,CAAE,CAAC,YAAW,CAAE,CAAC;GACvE;GAEA,MAAM,WAAW,MAAM,uBAAuB,IAAI;GAClD,IAAI,CAAC,WAAW,aAAa,KAAA,GAAW;IACvC,MAAM,aACL,WACC;IACF,IAAI,OAAO,eAAe,YAAiB,WAAW,QAAQ,CAAC,CAAC,YAAW,CAAE,CAAC;GAC/E;EACD,CAAC;EACF,OAAO,QAAQ,IAAI,CAAC,QAAQ,QAAQ,CAAC;CACtC,CAAC,CAAC,CACD,MAAM,CAAC,CAAC,EAAE,2BAA2B,EAAE,QAAQ,EAAE,8BAA8B,aAAY;EAC3F,cAAc;EACd,wBAAuB;EACvB,KAAK,OAAO,CAAC,CAAC,MAAM,yBAAyB;CAC9C,CAAC,CAAC,CAGD,MAAM,OAAO,UAAkB;EAC/B,MAAM,UAAU,MAAM,oBAAoB,OAAO,QAAQ;EACzD,IAAI,CAAC,SAAS,MAAM;EACpB,QAAQ,MAAM,QAAQ,OAAO;EAC7B,QAAQ,KAAK,CAAC;CACf,CAAC;AACH"}
@@ -16,7 +16,7 @@ export interface AgentRehydrateErrorFields {
16
16
  readonly namespace?: string;
17
17
  /** What was still running when a release was refused. */
18
18
  readonly activity?: AgentSessionActivity;
19
- /** The session store's adapter, for example `node-sqlite`, `jsonl`, `memory` or `libsql`. */
19
+ /** The session store's adapter, for example `node-sqlite`, `jsonl`, `memory` or `postgres`. */
20
20
  readonly storage?: string;
21
21
  /** True when the store holds only this node's sessions: it is not shared storage. */
22
22
  readonly localOnly?: boolean;
@@ -64,15 +64,10 @@ export interface SerializedAgentRehydrateError {
64
64
  }
65
65
  /** Whether sessions in a store with this adapter stay on this node. */
66
66
  export declare function isLocalOnlySessionStorage(adapter: string): boolean;
67
- /** The command that joins this node to shared storage, named in hints when a lookup misses on local-only storage. */
68
- export declare const TEAM_JOIN_COMMAND = "atomic team join <url> --token-file <path>";
69
67
  /** The command that points this node's storage at a shared database, keeping the rest of its layout. */
70
- export declare const STORAGE_JOIN_COMMAND = "atomic storage join <url> --token-file <path>";
71
- /**
72
- * How a node puts its sessions in shared storage, named in hints when a session lookup misses on local-only storage.
73
- * `atomic team join` keeps sessions on each machine, so a machine joined that way leaves the team first.
74
- */
75
- export declare const SESSION_STORAGE_JOIN = "`atomic storage join <url> --token-file <path>` (after `atomic team leave` on a machine joined with `atomic team join`, which keeps sessions on each machine)";
68
+ export declare const STORAGE_JOIN_COMMAND = "atomic storage join <postgres-url> --password-file <path>";
69
+ /** How a node puts its sessions in shared storage, named in hints when a session lookup misses on local-only storage. */
70
+ export declare const SESSION_STORAGE_JOIN = "`atomic storage join <postgres-url> --password-file <path>`";
76
71
  /**
77
72
  * Releasing an idle agent or rehydrating a released one was refused or failed. `code` says why; `fields` carries
78
73
  * the ids involved; `hint` says what to do next. `retryable` is true only when trying again later can succeed.
@@ -7,9 +7,9 @@ export { CompactorFailure };
7
7
  export declare const COMPACTOR_REQUEST_TIMEOUT_MS = 120000;
8
8
  /** Lines longer than this are wrapped before they are sent, so the compactor can keep or drop parts of them. */
9
9
  export declare const COMPACTOR_LINE_WIDTH = 2000;
10
- /** Default upper bound on compacted text, in estimated tokens, unless overridden by model `maxTokens`. Longer output is a failure and the context is cleared. */
10
+ /** Upper bound, in estimated tokens, on compacted text an extension hook supplies; longer text clears the context. A compactor model's output has no bound. */
11
11
  export declare const COMPACTED_OUTPUT_MAX_TOKENS = 32000;
12
- /** Compacted text never fills more than this share of the context the automatic trigger allows. */
12
+ /** Compacted text an extension hook supplies never fills more than this share of the context the automatic trigger allows. */
13
13
  export declare const COMPACTED_OUTPUT_MAX_TRIGGER_SHARE = 0.5;
14
14
  export interface CompactorMessage {
15
15
  role: "user" | "assistant";
@@ -25,7 +25,7 @@ export type IsBoundaryMessage = (message: AgentMessage) => boolean;
25
25
  * omission marker, thinking is left out, and very long lines are wrapped.
26
26
  */
27
27
  export declare function buildCompactorMessages(messages: readonly AgentMessage[], isBoundary: IsBoundaryMessage): CompactorMessage[];
28
- /** Largest compacted text, in estimated tokens, for a model whose automatic trigger fires above `triggerTokens`. */
28
+ /** Largest compacted text an extension hook may supply, in estimated tokens, for a model whose automatic trigger fires above `triggerTokens`. */
29
29
  export declare function compactedOutputTokenCap(triggerTokens: number, maxOutputTokens?: number): number;
30
30
  /** A conservative token estimate for text: four characters per token, one per character outside ASCII. */
31
31
  export declare function estimateTextTokens(text: string): number;
@@ -1,3 +1,3 @@
1
1
  import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { DEBUG_AREA_VARIABLES, appendDebugRecord, appendDebugRecordAsync, failureDebugFields, flushDebugLog, getDebugLogFailure, isDebugEnabled, reportDebug, reportDebugAsync } from "../_shared/p1b-elig-ENCUPKKJ.js";
2
+ export { DEBUG_AREA_VARIABLES, appendDebugRecord, appendDebugRecordAsync, failureDebugFields, flushDebugLog, getDebugLogFailure, isDebugEnabled, reportDebug, reportDebugAsync } from "../_shared/p1b-elig-TVB5CBLL.js";
3
3
  //# sourceMappingURL=debug.code.js.map
@@ -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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using this feature.", {
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.1`;
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.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using this feature.", {
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
  }