@bastani/atomic 0.10.17 → 0.10.18

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 (312) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/_shared/dist-KOELCESV.js +2 -2
  3. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  4. package/dist/_shared/lib-4PES5P4V.js +2 -2
  5. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +6 -6
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  7. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +16 -4
  8. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  9. package/dist/_shared/mode-shared-2QJSCUM6.js +16 -9
  10. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  11. package/dist/_shared/p0-cli-BB45ZQY6.js +1 -0
  12. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
  13. package/dist/_shared/p1a-prewarm-XIU57JHF.js +4 -3
  14. package/dist/_shared/p1a-prewarm-XIU57JHF.js.map +1 -1
  15. package/dist/_shared/p2-shell-main-B2WIALFD.js +1 -1
  16. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  17. package/dist/_shared/runtime-O4KCSG4C.js +2 -2
  18. package/dist/_shared/sdk-OHKMDJ74.js +18 -15
  19. package/dist/_shared/sdk-OHKMDJ74.js.map +1 -1
  20. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  21. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  22. package/dist/_shared/{startup-0-0-ERMIDHQT.js → startup-0-0-OV6RAEAP.js} +338 -75
  23. package/dist/_shared/startup-0-0-OV6RAEAP.js.map +1 -0
  24. package/dist/_shared/{startup-0-1-RTASI3HG.js → startup-0-1-EZAJI6RE.js} +82 -5
  25. package/dist/_shared/startup-0-1-EZAJI6RE.js.map +1 -0
  26. package/dist/_shared/startup-0-2-YZZOC22D.js +4 -4
  27. package/dist/_shared/startup-0-3-DE2NCS6A.js +4 -4
  28. package/dist/_shared/startup-0-4-ZMJV547D.js +12 -7
  29. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
  30. package/dist/_shared/startup-0-5-HZX3ZPTP.js +41 -12
  31. package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
  32. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  33. package/dist/_shared/startup-10-0-TDQNBDDL.js.map +1 -1
  34. package/dist/_shared/startup-12-0-55AAXBJZ.js +1 -1
  35. package/dist/_shared/startup-14-0-MLX36RBG.js +2 -2
  36. package/dist/_shared/startup-15-0-YUKGAC63.js +2 -2
  37. package/dist/_shared/startup-15-1-4S7FLMNG.js +261 -75
  38. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  39. package/dist/_shared/startup-8-0-34CBHPZH.js +23 -8
  40. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  41. package/dist/_shared/startup-8-1-LZFXSD3Z.js +328 -19
  42. package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -1
  43. package/dist/_shared/storage-command-7MGXLJGZ.js +74 -10
  44. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  45. package/dist/_shared/storage-status-K7PX2RXA.js +2 -2
  46. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  47. package/dist/_shared/team-DOQKICG2.js +1 -1
  48. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  49. package/dist/builtin/intercom/broker/broker.bundle.mjs +158 -78
  50. package/dist/builtin/intercom/broker/multinode-router.ts +41 -8
  51. package/dist/builtin/intercom/broker/multinode-state-store.ts +6 -1
  52. package/dist/builtin/intercom/broker/sql-lease-store.ts +89 -80
  53. package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +65 -6
  54. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  55. package/dist/builtin/intercom/package.json +1 -1
  56. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  57. package/dist/builtin/mcp/package.json +1 -1
  58. package/dist/builtin/subagents/package.json +1 -1
  59. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  60. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  61. package/dist/builtin/web-access/package.json +1 -1
  62. package/dist/cli/args.js +2 -2
  63. package/dist/cli/auth-cli.code.js +2 -2
  64. package/dist/cli/auth-cli.impl.js +3 -3
  65. package/dist/cli/auth-cli.js +3 -3
  66. package/dist/cli/blueprint-command.code.js +1 -1
  67. package/dist/cli/blueprint-command.impl.js +3 -3
  68. package/dist/cli/blueprint-command.js +3 -3
  69. package/dist/cli/intercom-command.code.js +2 -2
  70. package/dist/cli/intercom-command.impl.js +3 -3
  71. package/dist/cli/intercom-command.js +3 -3
  72. package/dist/cli/list-models.code.js +2 -2
  73. package/dist/cli/list-models.impl.js +3 -3
  74. package/dist/cli/list-models.js +3 -3
  75. package/dist/cli/session-picker.code.js +1 -1
  76. package/dist/cli/session-picker.impl.js +3 -3
  77. package/dist/cli/session-picker.js +3 -3
  78. package/dist/cli/startup-ui.code.js +1 -1
  79. package/dist/cli/startup-ui.impl.js +3 -3
  80. package/dist/cli/startup-ui.js +3 -3
  81. package/dist/cli/storage-command.impl.js +3 -3
  82. package/dist/cli/storage-command.js +3 -3
  83. package/dist/cli/storage-search-session.code.js +1 -1
  84. package/dist/cli/storage-search-session.impl.js +3 -3
  85. package/dist/cli/storage-search-session.js +3 -3
  86. package/dist/cli/team-command.code.js +1 -1
  87. package/dist/cli/team-command.impl.js +3 -3
  88. package/dist/cli/team-command.js +3 -3
  89. package/dist/cli.js +2 -2
  90. package/dist/core/debug.impl.js +3 -3
  91. package/dist/core/debug.js +3 -3
  92. package/dist/core/export-html/card-projection.impl.js +3 -3
  93. package/dist/core/export-html/card-projection.js +3 -3
  94. package/dist/core/export-html/index.code.js +2 -2
  95. package/dist/core/export-html/index.impl.js +3 -3
  96. package/dist/core/export-html/index.js +3 -3
  97. package/dist/core/export-html/json-spans.impl.js +3 -3
  98. package/dist/core/export-html/json-spans.js +3 -3
  99. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  100. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  101. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  102. package/dist/core/export-html/tool-renderer.js +3 -3
  103. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  104. package/dist/core/extensions/jiti-loader.js +3 -3
  105. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  106. package/dist/core/extensions/jiti-static-loader.js +3 -3
  107. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  108. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  109. package/dist/core/extensions/loader-host-modules.js +3 -3
  110. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  111. package/dist/core/extensions/runner-context.js +1 -1
  112. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  113. package/dist/core/intercom-broker-control-host.js +3 -3
  114. package/dist/core/intercom-broker-control.code.js +3 -3
  115. package/dist/core/intercom-broker-control.impl.js +3 -3
  116. package/dist/core/intercom-broker-control.js +3 -3
  117. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  118. package/dist/core/package-manager-storage-adapters.js +3 -3
  119. package/dist/core/sdk.code.js +2 -2
  120. package/dist/core/sdk.impl.js +3 -3
  121. package/dist/core/sdk.js +3 -3
  122. package/dist/core/session-append-recovery.d.ts +3 -3
  123. package/dist/core/session-manager-core.d.ts +1 -1
  124. package/dist/core/session-manager-core.js +14 -13
  125. package/dist/core/session-manager-core.js.map +1 -1
  126. package/dist/core/session-manager-list.impl.js +3 -3
  127. package/dist/core/session-manager-list.js +3 -3
  128. package/dist/core/session-manager.code.js +1 -1
  129. package/dist/core/session-manager.impl.js +3 -3
  130. package/dist/core/session-manager.js +3 -3
  131. package/dist/core/session-storage.impl.js +3 -3
  132. package/dist/core/session-storage.js +3 -3
  133. package/dist/core/storage/database.d.ts +6 -2
  134. package/dist/core/storage/database.js.map +1 -1
  135. package/dist/core/storage/errors.d.ts +8 -5
  136. package/dist/core/storage/errors.js +5 -3
  137. package/dist/core/storage/errors.js.map +1 -1
  138. package/dist/core/storage/fenced-paths.d.ts +15 -0
  139. package/dist/core/storage/fenced-paths.js +25 -0
  140. package/dist/core/storage/fenced-paths.js.map +1 -1
  141. package/dist/core/storage/index.js +2 -2
  142. package/dist/core/storage/migrations.d.ts +2 -11
  143. package/dist/core/storage/migrations.js +2 -9
  144. package/dist/core/storage/migrations.js.map +1 -1
  145. package/dist/core/storage/node-sqlite-thread.js +2 -2
  146. package/dist/core/storage/node-sqlite.js +2 -2
  147. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  148. package/dist/core/storage/offline-snapshot-file.js +3 -3
  149. package/dist/core/storage/postgres-locks.d.ts +11 -0
  150. package/dist/core/storage/postgres-locks.js +9 -0
  151. package/dist/core/storage/postgres-locks.js.map +1 -0
  152. package/dist/core/storage/provider.js +2 -2
  153. package/dist/core/storage/selection.js +2 -2
  154. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  155. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  156. package/dist/core/storage/session/branch-fork-source.js +3 -3
  157. package/dist/core/storage/session/card-view.impl.js +3 -3
  158. package/dist/core/storage/session/card-view.js +3 -3
  159. package/dist/core/storage/session/child-reader.code.js +3 -3
  160. package/dist/core/storage/session/child-reader.impl.js +3 -3
  161. package/dist/core/storage/session/child-reader.js +3 -3
  162. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  163. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  164. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  165. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  166. package/dist/core/storage/session/expanded-child-details.js +3 -3
  167. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  168. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  169. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  170. package/dist/core/storage/session/fork-row-index.js +3 -3
  171. package/dist/core/storage/session/fork-staging.code.js +1 -1
  172. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  173. package/dist/core/storage/session/fork-staging.js +3 -3
  174. package/dist/core/storage/session/fork-window.code.js +3 -3
  175. package/dist/core/storage/session/fork-window.impl.js +3 -3
  176. package/dist/core/storage/session/fork-window.js +3 -3
  177. package/dist/core/storage/session/history-pages.impl.js +3 -3
  178. package/dist/core/storage/session/history-pages.js +3 -3
  179. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  180. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  181. package/dist/core/storage/session/jsonl-session-store.d.ts +1 -0
  182. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  183. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  184. package/dist/core/storage/session/memory-session-store.d.ts +1 -0
  185. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  186. package/dist/core/storage/session/memory-session-store.js +3 -3
  187. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  188. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  189. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  190. package/dist/core/storage/session/released-history-files.code.js +2 -2
  191. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  192. package/dist/core/storage/session/released-history-files.js +3 -3
  193. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  194. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  195. package/dist/core/storage/session/session-resume.impl.js +3 -3
  196. package/dist/core/storage/session/session-resume.js +3 -3
  197. package/dist/core/storage/session/session-summary.d.ts +9 -1
  198. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  199. package/dist/core/storage/session/snapshot-cut.js +3 -3
  200. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  201. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  202. package/dist/core/storage/session/snapshot-history.js +3 -3
  203. package/dist/core/storage/session/sql-session-store.d.ts +2 -1
  204. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  205. package/dist/core/storage/session/sql-session-store.js +3 -3
  206. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  207. package/dist/core/storage/session/tree-outline.js +3 -3
  208. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  209. package/dist/core/storage/session/tree-presentation.js +3 -3
  210. package/dist/core/storage/session/types.d.ts +1 -0
  211. package/dist/core/storage/sqlite-facade.js +12 -5
  212. package/dist/core/storage/sqlite-facade.js.map +1 -1
  213. package/dist/core/storage/storage-status.impl.js +3 -3
  214. package/dist/core/storage/storage-status.js +3 -3
  215. package/dist/core/storage/team.impl.js +3 -3
  216. package/dist/core/storage/team.js +3 -3
  217. package/dist/core/structured-output/index.impl.js +3 -3
  218. package/dist/core/structured-output/index.js +3 -3
  219. package/dist/core/tasks/heartbeat-notice.d.ts +0 -1
  220. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  221. package/dist/core/tasks/task-completion-entry.js +3 -3
  222. package/dist/core/tasks/task-file-history.code.js +3 -3
  223. package/dist/core/tasks/task-file-history.impl.js +3 -3
  224. package/dist/core/tasks/task-file-history.js +3 -3
  225. package/dist/core/tasks/task-reference-archive.code.js +3 -3
  226. package/dist/core/tasks/task-reference-archive.js +3 -3
  227. package/dist/core/tasks/task-reference-identity.js +3 -3
  228. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  229. package/dist/core/tasks/task-reference-stream.js +3 -3
  230. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  231. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  232. package/dist/core/tasks/task-view-source.impl.js +3 -3
  233. package/dist/core/tasks/task-view-source.js +3 -3
  234. package/dist/core/tools/history-session.d.ts +1 -1
  235. package/dist/core/tools/output-accumulator.d.ts +3 -0
  236. package/dist/core/tools/read-url.code.js +2 -2
  237. package/dist/core/tools/read-url.impl.js +3 -3
  238. package/dist/core/tools/read-url.js +3 -3
  239. package/dist/core/worktree-snapshot/blob-store.d.ts +14 -16
  240. package/dist/core/worktree-snapshot/blob-store.js +194 -81
  241. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  242. package/dist/core/worktree-snapshot/collection-claim.js +8 -0
  243. package/dist/core/worktree-snapshot/collection-claim.js.map +1 -0
  244. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  245. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  246. package/dist/core/worktree-snapshot/errors.js +3 -3
  247. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  248. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  249. package/dist/core/worktree-snapshot/snapshot-epoch-migration.js +209 -0
  250. package/dist/core/worktree-snapshot/snapshot-epoch-migration.js.map +1 -0
  251. package/dist/core/worktree-snapshot/snapshot-epoch.js +100 -0
  252. package/dist/core/worktree-snapshot/snapshot-epoch.js.map +1 -0
  253. package/dist/extensions/codemode/execute.code.js +1 -1
  254. package/dist/extensions/codemode/execute.impl.js +3 -3
  255. package/dist/extensions/codemode/execute.js +3 -3
  256. package/dist/extensions/codemode/renderer.code.js +1 -1
  257. package/dist/extensions/codemode/renderer.impl.js +3 -3
  258. package/dist/extensions/codemode/renderer.js +3 -3
  259. package/dist/extensions/mcp/cli.code.js +1 -1
  260. package/dist/extensions/mcp/cli.impl.js +3 -3
  261. package/dist/extensions/mcp/cli.js +3 -3
  262. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  263. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  264. package/dist/extensions/mcp/cli.lazy.js +3 -3
  265. package/dist/extensions/mcp/runtime.impl.js +3 -3
  266. package/dist/extensions/mcp/runtime.js +3 -3
  267. package/dist/index.js +2 -2
  268. package/dist/main-first-time-setup.code.js +1 -1
  269. package/dist/main-first-time-setup.impl.js +3 -3
  270. package/dist/main-first-time-setup.js +3 -3
  271. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  272. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  273. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  274. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  275. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  276. package/dist/modes/interactive/interactive-mode-helpers.d.ts +8 -1
  277. package/dist/modes/interactive-engine/isolated-runtime.d.ts +21 -0
  278. package/dist/modes/interactive-engine/protocol.d.ts +6 -0
  279. package/dist/modes/rpc/rpc-client.d.ts +2 -0
  280. package/dist/package-manager-cli.code.js +4 -4
  281. package/dist/package-manager-cli.impl.js +3 -3
  282. package/dist/package-manager-cli.js +3 -3
  283. package/dist/rpc-entry.js +1 -1
  284. package/dist/startup-files.json +1 -1
  285. package/dist/startup-stages/4.js +1 -1
  286. package/dist/startup-stages/6.js +1 -1
  287. package/dist/utils/interactive-engine-bootstrap.d.ts +2 -0
  288. package/dist/utils/interactive-engine-env.d.ts +2 -0
  289. package/dist/utils/startup-database-spare.code.js +2 -2
  290. package/dist/utils/startup-database-spare.impl.js +3 -3
  291. package/dist/utils/startup-database-spare.js +3 -3
  292. package/dist/utils/tools-manager.code.js +1 -1
  293. package/dist/utils/tools-manager.impl.js +3 -3
  294. package/dist/utils/tools-manager.js +3 -3
  295. package/docs/background-tasks/reference.md +1 -1
  296. package/docs/background-tasks.md +1 -1
  297. package/docs/changelog.mdx +18 -1
  298. package/docs/guides/resume-on-any-machine.md +1 -1
  299. package/docs/reference/cli.md +4 -3
  300. package/docs/sdk.md +2 -1
  301. package/docs/sessions.md +5 -2
  302. package/docs/settings.md +1 -0
  303. package/docs/storage/custom-adapters.md +1 -1
  304. package/docs/storage/postgres/pgbouncer.md +3 -1
  305. package/docs/storage/postgres/tuning.md +2 -0
  306. package/docs/storage/postgres.md +58 -7
  307. package/docs/storage.md +4 -2
  308. package/docs/tools.md +1 -0
  309. package/docs/worktree-snapshots/reference.md +1 -1
  310. package/package.json +8 -8
  311. package/dist/_shared/startup-0-0-ERMIDHQT.js.map +0 -1
  312. package/dist/_shared/startup-0-1-RTASI3HG.js.map +0 -1
@@ -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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using structured output.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using structured output.", {
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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using structured output.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using structured output.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -29,7 +29,6 @@ export type TaskHeartbeatTask = {
29
29
  };
30
30
  turnCount?: number;
31
31
  toolCount?: number;
32
- tokenCount?: number;
33
32
  attention?: string;
34
33
  /** Shells only: retained output size and its last lines. */
35
34
  output?: {
@@ -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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,7 +1,7 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
2
  import { createHash } from "node:crypto";
3
3
  import { open, stat } from "node:fs/promises";
4
- import { EntryTypeReader, JsonTextChecker } from "../../_shared/startup-0-0-ERMIDHQT.js";
4
+ import { EntryTypeReader, JsonTextChecker } from "../../_shared/startup-0-0-OV6RAEAP.js";
5
5
  import { SESSION_HISTORY_CHUNK_BYTES } from "../../_shared/settings-startup-HXQLSUWM.js";
6
6
  // dist/core/tasks/task-file-history.js
7
7
  function digest(value) {
@@ -383,7 +383,7 @@ function __atomicOnDemandFailed(error, feature) {
383
383
  return (async () => {
384
384
  const root = new URL("../../", import.meta.url);
385
385
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
386
- const key = `${root.href}#0.10.17`;
386
+ const key = `${root.href}#0.10.18`;
387
387
  let release = releases.get(key);
388
388
  if (release === undefined) {
389
389
  const current = (async () => {
@@ -411,7 +411,7 @@ function __atomicOnDemandFailed(error, feature) {
411
411
  } catch {
412
412
  // No installation to read, as in a bundle of the package: the release the process runs decides.
413
413
  }
414
- const updatedTo = typeof installed === "string" && installed !== "0.10.17" ? installed : running !== undefined && running.version !== "0.10.17" ? "0.10.17" : undefined;
414
+ const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
415
415
  if (updatedTo === undefined) throw error;
416
416
  const application = typeof running?.name === "string" ? running.name : "atomic";
417
417
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,6 +1,6 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
2
  import { earlierTranscriptCursor, historyChunks } from "../../_shared/startup-8-0-34CBHPZH.js";
3
- import { watchReferenceCut } from "../../_shared/startup-0-0-ERMIDHQT.js";
3
+ import { watchReferenceCut } from "../../_shared/startup-0-0-OV6RAEAP.js";
4
4
  import { SessionConflictError } from "../storage/session/errors.js";
5
5
  import { SESSION_HISTORY_PAGE_BYTES } from "../../_shared/settings-startup-HXQLSUWM.js";
6
6
  import { streamedEarlierMatches, streamedTaskReferences, visibleStreamedItem } from "../../_shared/task-reference-stream-JWMUZSJX.js";
@@ -473,7 +473,7 @@ function __atomicOnDemandFailed(error, feature) {
473
473
  return (async () => {
474
474
  const root = new URL("../../", import.meta.url);
475
475
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
476
- const key = `${root.href}#0.10.17`;
476
+ const key = `${root.href}#0.10.18`;
477
477
  let release = releases.get(key);
478
478
  if (release === undefined) {
479
479
  const current = (async () => {
@@ -501,7 +501,7 @@ function __atomicOnDemandFailed(error, feature) {
501
501
  } catch {
502
502
  // No installation to read, as in a bundle of the package: the release the process runs decides.
503
503
  }
504
- const updatedTo = typeof installed === "string" && installed !== "0.10.17" ? installed : running !== undefined && running.version !== "0.10.17" ? "0.10.17" : undefined;
504
+ const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
505
505
  if (updatedTo === undefined) throw error;
506
506
  const application = typeof running?.name === "string" ? running.name : "atomic";
507
507
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using /tasks.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -14,7 +14,7 @@ export declare const DEFAULT_HISTORY_BUDGET: HistoryBudget;
14
14
  * `Number.POSITIVE_INFINITY`, as such a task has no time limit.
15
15
  */
16
16
  export declare const historyTaskTimeBudget: import("../async-scope.ts").AsyncScope<number>;
17
- export declare const HISTORY_TEXT_FORMAT = 2;
17
+ export declare const HISTORY_TEXT_FORMAT = 3;
18
18
  export declare const MAX_MATCHES_PER_SESSION = 10;
19
19
  export declare const MATCH_SPAN_CHARS: number;
20
20
  export declare const MULTILINE_WINDOW_NOTE = "multi-line matches are searched up to 16 KB of text or 256 entries past where they start, so a longer match is not shown";
@@ -8,6 +8,8 @@ export interface OutputAccumulatorOptions {
8
8
  * session's temp directory so spill files are reapable per session.
9
9
  */
10
10
  tempDir?: string;
11
+ sanitizeTerminalOutput?: boolean;
12
+ normalizeCr?: boolean;
11
13
  }
12
14
  export interface OutputSnapshot {
13
15
  content: string;
@@ -28,6 +30,7 @@ export declare class OutputAccumulator {
28
30
  private readonly tempFilePrefix;
29
31
  private readonly tempDir;
30
32
  private readonly decoder;
33
+ private readonly vtNormalizer;
31
34
  private rawChunks;
32
35
  private rawChunkBytes;
33
36
  private tailText;
@@ -1,14 +1,14 @@
1
1
  import { __toESM } from "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
2
  import { resolve } from "node:path";
3
3
  import { getAgentDir } from "../../_shared/p0-cli-BB45ZQY6.js";
4
- import { sessionScratchDir } from "../../_shared/startup-0-1-RTASI3HG.js";
4
+ import { sessionScratchDir } from "../../_shared/startup-0-1-EZAJI6RE.js";
5
5
  import { lookup } from "node:dns/promises";
6
6
  import { channel, tracingChannel } from "node:diagnostics_channel";
7
7
  import { require_turndown_cjs } from "../../_shared/turndown.cjs-7Z43JOED.js";
8
8
  import { require_undici } from "../../_shared/http-undici-FVPTZA4G.js";
9
9
  import { findAsciiCaseInsensitive, isAsciiWordCode } from "../../_shared/p1b-elig-BY2G5BUE.js";
10
10
  import { applyReadLineSelection, decodeReadableUrl, extractDocumentMarkdown, getArtifactManager, isDocumentPath } from "../../_shared/startup-8-1-LZFXSD3Z.js";
11
- import { isReadableUrlPath, repairCollapsedScheme } from "../../_shared/startup-0-0-ERMIDHQT.js";
11
+ import { isReadableUrlPath, repairCollapsedScheme } from "../../_shared/startup-0-0-OV6RAEAP.js";
12
12
  import { isIP } from "node:net";
13
13
  // ../../node_modules/lru-cache/dist/esm/node/index.min.js
14
14
  var S = channel("lru-cache:metrics");
@@ -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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 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.17`;
9
+ const key = `${root.href}#0.10.18`;
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.17") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.18") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -259,6 +259,8 @@ export declare class SqlSnapshotBlobStore implements SnapshotBlobStore {
259
259
  private readonly forkSegments;
260
260
  readonly table: string;
261
261
  private constructor();
262
+ /** Explicit owner operation; automatic cleanup never changes the compatibility mode. */
263
+ setRecordCoordination(active: boolean, minimumVersion: string): Promise<boolean>;
262
264
  /** Which table this store collects, for telling stores of one database and prefix apart from others. */
263
265
  get identity(): string;
264
266
  /**
@@ -306,12 +308,9 @@ export declare class SqlSnapshotBlobStore implements SnapshotBlobStore {
306
308
  */
307
309
  putBlobs(unordered: readonly SnapshotBlob[]): Promise<void>;
308
310
  /**
309
- * How a put or a refresh of this table's blobs runs: a serial transaction of the blob table's own domain (#6560). On
310
- * PostgreSQL it holds the database-wide lock shared, so it waits for and excludes collection, whose writes hold that
311
- * lock exclusively, and the blob writers of this table exclude one another, but session writes, which hold the
312
- * database-wide lock shared with their session's domain, run beside it. Rows it writes again (`created_at`) are locked
313
- * in hash order, as an append's check of the blobs it records locks them (`missingBlob`), so neither waits on the
314
- * other in a cycle. Its callback only uses the transaction, so a transient failure runs it again.
311
+ * A put or refresh retains the blob writer's domain and locks only its hashes, in hash order. In PostgreSQL
312
+ * compatibility mode it also takes the legacy shared key; in record mode cleanup coordinates on the row locks
313
+ * instead. Its callback only uses the transaction, so a transient failure runs it again.
315
314
  */
316
315
  private blobWrite;
317
316
  /**
@@ -403,7 +402,7 @@ export declare class SqlSnapshotBlobStore implements SnapshotBlobStore {
403
402
  */
404
403
  sweep(options: SnapshotSweepOptions): Promise<readonly string[]>;
405
404
  /**
406
- * Which of `hashes` no retaining run, no carried work and no session retains, as far as these reads see: the sweep's
405
+ * Which blobs in `page` no retaining run, no carried work and no session retains, as far as these reads see: the sweep's
407
406
  * candidates, which a delete batch checks again in its transaction. Finds the retained blobs of each session that
408
407
  * references one of them and that `sessions` has not walked yet, in statements of at most
409
408
  * {@link SNAPSHOT_COLLECTION_SESSION_REFS} snapshot entries, with a turn between them.
@@ -418,11 +417,8 @@ export declare class SqlSnapshotBlobStore implements SnapshotBlobStore {
418
417
  * since, is kept; the next collection walks that session. Nothing in the transaction waits for a turn of the event
419
418
  * loop (#5530).
420
419
  *
421
- * It runs as a whole-database transaction on purpose, so no other write runs beside it. With only the blob table's
422
- * lock it would not be safe: it decides which blobs sessions still use in one statement and deletes in the next. A
423
- * session write that records a blob meanwhile holds the blob's row only until it commits its reference; the delete
424
- * waits for it, then goes ahead without looking at the references again, and removes a blob a session has just
425
- * recorded. The same goes for the references retaining runs and carried work write.
420
+ * In record mode, lock existing candidate blobs before starting the retention recheck. The recheck must be a
421
+ * separate READ COMMITTED command: neither EvalPlanQual nor SKIP LOCKED refreshes a DELETE's join snapshot.
426
422
  */
427
423
  private deleteUnretained;
428
424
  /** A condition that no retaining run and no carried work references the blob `hash` names. */
@@ -550,13 +546,15 @@ export declare class SqlSnapshotBlobStore implements SnapshotBlobStore {
550
546
  readonly deleted: number;
551
547
  readonly errorCode: string | null;
552
548
  }, pace?: BackgroundCollectionPace): Promise<void>;
549
+ /** A background repair must not wait for a table lock or sleep while it holds the database lock. */
550
+ private repairSchema;
551
+ private refuseRecordModeRepair;
553
552
  /** Waits between two batches: on `pace` in the background, otherwise until the event loop has run once. */
554
553
  private betweenBatches;
555
554
  /**
556
- * Runs `body` in a write transaction. With `pace`, the transaction never waits for a write lock another connection
557
- * holds: it is refused at once (SQLite `StorageWriteLockTimeoutError` or PostgreSQL not-applied `lock-conflict`) and
558
- * tried again after a wait on `pace` that doubles each time, so the process can exit meanwhile; once the waits add
559
- * up to {@link SNAPSHOT_COLLECTION_LEASE_SECONDS}, it rejects with the refusal.
555
+ * Background PostgreSQL batches try their advisory locks without joining a queue. In compatibility mode that
556
+ * includes the legacy key. After the switch, only other collectors share its advisory scope. SQLite uses its
557
+ * existing no-wait writer admission. Retry outside the transaction, with jitter.
560
558
  */
561
559
  private write;
562
560
  }