@bastani/atomic 0.10.16-alpha.1 → 0.10.17-alpha.1

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 (206) hide show
  1. package/CHANGELOG.md +62 -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 +2 -2
  6. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +2 -2
  7. package/dist/_shared/mode-shared-2QJSCUM6.js +2 -2
  8. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  9. package/dist/_shared/sdk-OHKMDJ74.js +510 -142
  10. package/dist/_shared/sdk-OHKMDJ74.js.map +1 -1
  11. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  12. package/dist/_shared/startup-0-0-ERMIDHQT.js +2 -2
  13. package/dist/_shared/startup-0-1-RTASI3HG.js +2 -2
  14. package/dist/_shared/startup-0-2-YZZOC22D.js +2 -2
  15. package/dist/_shared/startup-0-3-DE2NCS6A.js +2 -2
  16. package/dist/_shared/startup-0-4-ZMJV547D.js +2 -2
  17. package/dist/_shared/startup-0-5-HZX3ZPTP.js +2 -2
  18. package/dist/_shared/startup-10-0-TDQNBDDL.js +4 -3
  19. package/dist/_shared/startup-10-0-TDQNBDDL.js.map +1 -1
  20. package/dist/_shared/startup-15-1-4S7FLMNG.js +2 -2
  21. package/dist/_shared/startup-8-0-34CBHPZH.js +2 -2
  22. package/dist/_shared/startup-8-1-LZFXSD3Z.js +2 -2
  23. package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
  24. package/dist/_shared/storage-status-K7PX2RXA.js +2 -2
  25. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  26. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  27. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  28. package/dist/builtin/intercom/package.json +1 -1
  29. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  30. package/dist/builtin/mcp/package.json +1 -1
  31. package/dist/builtin/subagents/CHANGELOG.md +6 -0
  32. package/dist/builtin/subagents/package.json +1 -1
  33. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  34. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  35. package/dist/builtin/web-access/package.json +1 -1
  36. package/dist/cli/auth-cli.impl.js +3 -3
  37. package/dist/cli/auth-cli.js +3 -3
  38. package/dist/cli/blueprint-command.impl.js +3 -3
  39. package/dist/cli/blueprint-command.js +3 -3
  40. package/dist/cli/intercom-command.code.js +2 -2
  41. package/dist/cli/intercom-command.impl.js +3 -3
  42. package/dist/cli/intercom-command.js +3 -3
  43. package/dist/cli/list-models.impl.js +3 -3
  44. package/dist/cli/list-models.js +3 -3
  45. package/dist/cli/session-picker.impl.js +3 -3
  46. package/dist/cli/session-picker.js +3 -3
  47. package/dist/cli/startup-ui.impl.js +3 -3
  48. package/dist/cli/startup-ui.js +3 -3
  49. package/dist/cli/storage-command.impl.js +3 -3
  50. package/dist/cli/storage-command.js +3 -3
  51. package/dist/cli/storage-search-session.impl.js +3 -3
  52. package/dist/cli/storage-search-session.js +3 -3
  53. package/dist/cli/team-command.impl.js +3 -3
  54. package/dist/cli/team-command.js +3 -3
  55. package/dist/cli.js +2 -2
  56. package/dist/core/debug.impl.js +3 -3
  57. package/dist/core/debug.js +3 -3
  58. package/dist/core/export-html/card-projection.impl.js +3 -3
  59. package/dist/core/export-html/card-projection.js +3 -3
  60. package/dist/core/export-html/index.code.js +2 -2
  61. package/dist/core/export-html/index.impl.js +3 -3
  62. package/dist/core/export-html/index.js +3 -3
  63. package/dist/core/export-html/json-spans.impl.js +3 -3
  64. package/dist/core/export-html/json-spans.js +3 -3
  65. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  66. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  67. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  68. package/dist/core/export-html/tool-renderer.js +3 -3
  69. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  70. package/dist/core/extensions/jiti-loader.js +3 -3
  71. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  72. package/dist/core/extensions/jiti-static-loader.js +3 -3
  73. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  74. package/dist/core/extensions/loader-host-modules.js +3 -3
  75. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  76. package/dist/core/intercom-broker-control-host.js +3 -3
  77. package/dist/core/intercom-broker-control.code.js +2 -2
  78. package/dist/core/intercom-broker-control.impl.js +3 -3
  79. package/dist/core/intercom-broker-control.js +3 -3
  80. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  81. package/dist/core/package-manager-storage-adapters.js +3 -3
  82. package/dist/core/sdk.impl.js +3 -3
  83. package/dist/core/sdk.js +3 -3
  84. package/dist/core/session-manager-core.js +2 -2
  85. package/dist/core/session-manager-list.impl.js +3 -3
  86. package/dist/core/session-manager-list.js +3 -3
  87. package/dist/core/session-manager.impl.js +3 -3
  88. package/dist/core/session-manager.js +3 -3
  89. package/dist/core/session-storage.impl.js +3 -3
  90. package/dist/core/session-storage.js +3 -3
  91. package/dist/core/storage/index.js +2 -2
  92. package/dist/core/storage/node-sqlite-thread.js +2 -2
  93. package/dist/core/storage/node-sqlite.js +2 -2
  94. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  95. package/dist/core/storage/offline-snapshot-file.js +3 -3
  96. package/dist/core/storage/prefix.js +7 -0
  97. package/dist/core/storage/prefix.js.map +1 -1
  98. package/dist/core/storage/provider.js +2 -2
  99. package/dist/core/storage/selection.js +2 -2
  100. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  101. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  102. package/dist/core/storage/session/branch-fork-source.js +3 -3
  103. package/dist/core/storage/session/card-view.impl.js +3 -3
  104. package/dist/core/storage/session/card-view.js +3 -3
  105. package/dist/core/storage/session/child-reader.code.js +2 -2
  106. package/dist/core/storage/session/child-reader.impl.js +3 -3
  107. package/dist/core/storage/session/child-reader.js +3 -3
  108. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  109. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  110. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  111. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  112. package/dist/core/storage/session/expanded-child-details.js +3 -3
  113. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  114. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  115. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  116. package/dist/core/storage/session/fork-row-index.js +3 -3
  117. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  118. package/dist/core/storage/session/fork-staging.js +3 -3
  119. package/dist/core/storage/session/fork-window.code.js +2 -2
  120. package/dist/core/storage/session/fork-window.impl.js +3 -3
  121. package/dist/core/storage/session/fork-window.js +3 -3
  122. package/dist/core/storage/session/history-pages.impl.js +3 -3
  123. package/dist/core/storage/session/history-pages.js +3 -3
  124. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  125. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  126. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  127. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  128. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  129. package/dist/core/storage/session/memory-session-store.js +3 -3
  130. package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
  131. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  132. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  133. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  134. package/dist/core/storage/session/released-history-files.js +3 -3
  135. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  136. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  137. package/dist/core/storage/session/session-resume.impl.js +3 -3
  138. package/dist/core/storage/session/session-resume.js +3 -3
  139. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  140. package/dist/core/storage/session/snapshot-cut.js +3 -3
  141. package/dist/core/storage/session/snapshot-history.code.js +2 -2
  142. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  143. package/dist/core/storage/session/snapshot-history.js +3 -3
  144. package/dist/core/storage/session/sql-session-store.d.ts +1 -0
  145. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  146. package/dist/core/storage/session/sql-session-store.js +3 -3
  147. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  148. package/dist/core/storage/session/tree-outline.js +3 -3
  149. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  150. package/dist/core/storage/session/tree-presentation.js +3 -3
  151. package/dist/core/storage/storage-status.impl.js +3 -3
  152. package/dist/core/storage/storage-status.js +3 -3
  153. package/dist/core/storage/team.impl.js +3 -3
  154. package/dist/core/storage/team.js +3 -3
  155. package/dist/core/structured-output/index.impl.js +3 -3
  156. package/dist/core/structured-output/index.js +3 -3
  157. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  158. package/dist/core/tasks/task-completion-entry.js +3 -3
  159. package/dist/core/tasks/task-file-history.code.js +2 -2
  160. package/dist/core/tasks/task-file-history.impl.js +3 -3
  161. package/dist/core/tasks/task-file-history.js +3 -3
  162. package/dist/core/tasks/task-reference-archive.code.js +2 -2
  163. package/dist/core/tasks/task-reference-archive.js +3 -3
  164. package/dist/core/tasks/task-reference-identity.js +3 -3
  165. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  166. package/dist/core/tasks/task-reference-stream.js +3 -3
  167. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  168. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  169. package/dist/core/tasks/task-view-source.impl.js +3 -3
  170. package/dist/core/tasks/task-view-source.js +3 -3
  171. package/dist/core/tools/read-url.impl.js +3 -3
  172. package/dist/core/tools/read-url.js +3 -3
  173. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  174. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  175. package/dist/core/worktree-snapshot/errors.js +3 -3
  176. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  177. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  178. package/dist/extensions/codemode/execute.impl.js +3 -3
  179. package/dist/extensions/codemode/execute.js +3 -3
  180. package/dist/extensions/codemode/renderer.impl.js +3 -3
  181. package/dist/extensions/codemode/renderer.js +3 -3
  182. package/dist/extensions/mcp/cli.impl.js +3 -3
  183. package/dist/extensions/mcp/cli.js +3 -3
  184. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  185. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  186. package/dist/extensions/mcp/cli.lazy.js +3 -3
  187. package/dist/extensions/mcp/runtime.impl.js +3 -3
  188. package/dist/extensions/mcp/runtime.js +3 -3
  189. package/dist/main-first-time-setup.impl.js +3 -3
  190. package/dist/main-first-time-setup.js +3 -3
  191. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  192. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  193. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  194. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  195. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  196. package/dist/package-manager-cli.code.js +2 -2
  197. package/dist/package-manager-cli.impl.js +3 -3
  198. package/dist/package-manager-cli.js +3 -3
  199. package/dist/startup-files.json +1 -1
  200. package/dist/utils/startup-database-spare.impl.js +3 -3
  201. package/dist/utils/startup-database-spare.js +3 -3
  202. package/dist/utils/tools-manager.impl.js +3 -3
  203. package/dist/utils/tools-manager.js +3 -3
  204. package/docs/changelog.mdx +23 -0
  205. package/docs/storage/postgres/tuning.md +1 -1
  206. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"file":"prefix.js","sourceRoot":"","sources":["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AAE,CAAC,CAAC,CAAC,CACnE,CAAC;AAC3C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAM,GAAG,EAAE;IAChD,OAAO,GAAG,qBAAqB,CAAC,MAAM,CAAC,mBAAmB,CAAC;AAC5D,CAAC","sourcesContent":["import { postgresDialect, type StorageDialectName } from \"./dialect.js\";\nimport { StoragePrefixError } from \"./errors.js\";\n\n/**\n * What follows the prefix in every identifier Atomic names on PostgreSQL: the tables, indexes, triggers and trigger\n * functions of sessions, worktree snapshots and the Intercom broker state (#5067), the Intercom lease order sequence\n * and the lease table's address indexes (#6560), and those the workflow run journal and\n * worker pools (#4793) of earlier releases left under the same prefix, pooled-stage sessions under\n * `POSTGRES_POOL_SESSION_PREFIX` included. Prefixes stay checked against them all, so a database those releases share\n * keeps every name whole. The storage adapters name none of their own, and\n * Postgres chooses constraint names and the sequences of serial columns itself. Longer pool names are in\n * `POSTGRES_HASHED_STORAGE_IDENTIFIER_SUFFIXES`.\n */\nexport const POSTGRES_STORAGE_IDENTIFIER_SUFFIXES: readonly string[] = Object.freeze([\n\t\"atomic_migrations\",\n\t\"intercom_ended_child_bodies\",\n\t\"intercom_ended_child_meta\",\n\t\"intercom_ended_child_queue\",\n\t\"intercom_ended_child_queue_departure\",\n\t\"intercom_ended_child_queue_home\",\n\t\"intercom_ended_child_wakes\",\n\t\"intercom_ended_child_wakes_home\",\n\t\"intercom_held_sends\",\n\t\"intercom_held_sends_reservation\",\n\t\"intercom_known_sessions\",\n\t\"intercom_known_sessions_alias_id\",\n\t\"intercom_known_sessions_atomic_id\",\n\t\"intercom_known_sessions_intercom_id\",\n\t\"intercom_known_sessions_lost\",\n\t\"intercom_known_sessions_name\",\n\t\"intercom_known_sessions_recorded\",\n\t\"intercom_leases\",\n\t\"intercom_leases_order\",\n\t\"intercom_leases_presence_alias\",\n\t\"intercom_leases_presence_host\",\n\t\"intercom_leases_presence_id\",\n\t\"intercom_leases_presence_id_head\",\n\t\"intercom_leases_presence_name\",\n\t\"intercom_outbox\",\n\t\"intercom_outbox_settled\",\n\t\"intercom_outbox_target\",\n\t\"intercom_outbox_target_bytes\",\n\t\"intercom_outbox_undelivered\",\n\t\"intercom_pending_asks\",\n\t\"intercom_pending_asks_ended\",\n\t\"intercom_pending_asks_target\",\n\t\"intercom_released_asks\",\n\t\"intercom_released_asks_expires\",\n\t\"intercom_restoring_reservation_counters\",\n\t\"intercom_restoring_reservations\",\n\t\"intercom_restoring_reservations_active\",\n\t\"intercom_restoring_reservations_child\",\n\t\"intercom_restoring_reservations_wake\",\n\t\"intercom_restoring_wake_claims\",\n\t\"intercom_sent_messages\",\n\t\"intercom_sent_messages_recorded\",\n\t\"intercom_session_bindings\",\n\t\"intercom_session_bindings_recorded\",\n\t\"intercom_settled_asks\",\n\t\"intercom_settled_asks_at\",\n\t\"intercom_wakeups\",\n\t\"intercom_wakeups_broker\",\n\t\"intercom_wakeups_created\",\n\t\"session_blob_chunks\",\n\t\"session_blobs\",\n\t\"session_chat_v1\",\n\t\"session_chat_v1_anchor\",\n\t\"session_entries\",\n\t\"session_entries_capture_head\",\n\t\"session_entries_capture_head_fn\",\n\t\"session_entries_capture_heading\",\n\t\"session_entries_search_forget\",\n\t\"session_entries_search_forget_fn\",\n\t\"session_entries_snapshot_links\",\n\t\"session_entries_snapshot_links_fn\",\n\t\"session_entries_snapshot_pending\",\n\t\"session_entries_snapshot_pending_fn\",\n\t\"session_entries_snapshot_refs\",\n\t\"session_entries_snapshot_refs_delete\",\n\t\"session_entries_snapshot_refs_delete_fn\",\n\t\"session_entries_snapshot_refs_fn\",\n\t\"session_entry_chunks\",\n\t\"session_fork_detach\",\n\t\"session_fork_lineage\",\n\t\"session_fork_segments\",\n\t\"session_fork_segments_source\",\n\t\"session_fork_staging\",\n\t\"session_fork_staging_name\",\n\t\"session_fork_tombstones\",\n\t\"session_meta\",\n\t\"session_open\",\n\t\"session_search_entries\",\n\t\"session_search_state\",\n\t\"session_search_texts\",\n\t\"session_search_trgm\",\n\t\"session_sessions\",\n\t\"snapshot_blob_chunks\",\n\t\"snapshot_blobs\",\n\t\"snapshot_blobs_age\",\n\t\"snapshot_blobs_chunks_delete_all\",\n\t\"snapshot_blobs_chunks_delete_all_fn\",\n\t\"snapshot_blobs_fork_keep\",\n\t\"snapshot_blobs_fork_keep_fn\",\n\t\"snapshot_blobs_inline_size\",\n\t\"snapshot_carried_refs\",\n\t\"snapshot_carried_refs_hash\",\n\t\"snapshot_collection\",\n\t\"snapshot_index_sources\",\n\t\"snapshot_run_refs\",\n\t\"snapshot_run_refs_hash\",\n\t\"snapshot_run_state\",\n\t\"snapshot_session_links\",\n\t\"snapshot_session_links_anchored\",\n\t\"snapshot_session_links_broken\",\n\t\"snapshot_session_links_entry\",\n\t\"snapshot_session_records\",\n\t\"snapshot_session_records_hash\",\n\t\"snapshot_session_refs\",\n\t\"wf_event_chunks\",\n\t\"wf_events\",\n\t\"wf_events_snapshot_refs\",\n\t\"wf_events_snapshot_refs_fn\",\n\t\"wf_events_snapshot_state\",\n\t\"wf_events_snapshot_state_fn\",\n\t\"wf_lease_builds\",\n\t\"wf_leases\",\n\t\"wf_meta\",\n\t\"wf_ps_atomic_migrations\",\n\t\"wf_ps_session_blob_chunks\",\n\t\"wf_ps_session_blobs\",\n\t\"wf_ps_session_entries\",\n\t\"wf_ps_session_entries_search_forget\",\n\t\"wf_ps_session_entries_search_forget_fn\",\n\t\"wf_ps_session_entries_snapshot_links\",\n\t\"wf_ps_session_entries_snapshot_links_fn\",\n\t\"wf_ps_session_entries_snapshot_pending\",\n\t\"wf_ps_session_entries_snapshot_refs\",\n\t\"wf_ps_session_entries_snapshot_refs_fn\",\n\t\"wf_ps_session_entry_chunks\",\n\t\"wf_ps_session_meta\",\n\t\"wf_ps_session_open\",\n\t\"wf_ps_session_owners\",\n\t\"wf_ps_session_search_entries\",\n\t\"wf_ps_session_search_state\",\n\t\"wf_ps_session_search_texts\",\n\t\"wf_ps_session_search_trgm\",\n\t\"wf_ps_session_sessions\",\n\t\"wf_ps_snapshot_blob_chunks\",\n\t\"wf_ps_snapshot_blobs\",\n\t\"wf_ps_snapshot_blobs_age\",\n\t\"wf_ps_snapshot_blobs_chunks_delete_all\",\n\t\"wf_ps_snapshot_blobs_inline_size\",\n\t\"wf_ps_snapshot_carried_refs\",\n\t\"wf_ps_snapshot_carried_refs_hash\",\n\t\"wf_ps_snapshot_collection\",\n\t\"wf_ps_snapshot_index_sources\",\n\t\"wf_ps_snapshot_run_refs\",\n\t\"wf_ps_snapshot_run_refs_hash\",\n\t\"wf_ps_snapshot_run_state\",\n\t\"wf_ps_snapshot_session_links\",\n\t\"wf_ps_snapshot_session_links_broken\",\n\t\"wf_ps_snapshot_session_links_entry\",\n\t\"wf_ps_snapshot_session_links_leaves\",\n\t\"wf_ps_snapshot_session_records\",\n\t\"wf_ps_snapshot_session_records_hash\",\n\t\"wf_ps_snapshot_session_refs\",\n\t\"wf_runs\",\n\t\"wf_runs_fleet_controller\",\n\t\"wf_runs_fleet_drains\",\n\t\"wf_runs_fleet_events\",\n\t\"wf_runs_pool\",\n\t\"wf_runs_pool_activity\",\n\t\"wf_runs_pool_activity_version\",\n\t\"wf_runs_pool_control\",\n\t\"wf_runs_pool_fence\",\n\t\"wf_runs_pool_fence_abort\",\n\t\"wf_runs_pool_fence_abort_fn\",\n\t\"wf_runs_pool_hosts\",\n\t\"wf_runs_pool_meta\",\n\t\"wf_runs_pool_operations\",\n\t\"wf_runs_pool_restore_backoffs\",\n\t\"wf_runs_pool_root_snapshot\",\n\t\"wf_runs_pool_shared\",\n\t\"wf_runs_pool_usage\",\n\t\"wf_runs_pool_usage_totals\",\n\t\"wf_runs_pool_usage_totals_delete\",\n\t\"wf_runs_pool_usage_totals_delete_fn\",\n\t\"wf_runs_pool_usage_totals_insert\",\n\t\"wf_runs_pool_usage_totals_insert_fn\",\n\t\"wf_runs_pool_usage_totals_update\",\n\t\"wf_runs_pool_usage_totals_update_fn\",\n\t\"wf_runs_pool_usage_totals_work_delete\",\n\t\"wf_runs_rate_buckets\",\n\t\"wf_runs_rate_waiting\",\n\t\"wf_runs_rate_waiting_age\",\n\t\"wf_runs_resource_limits\",\n\t\"wf_runs_resource_owners\",\n\t\"wf_runs_resource_permits\",\n\t\"wf_runs_resource_permits_active\",\n\t\"wf_runs_resource_permits_owner\",\n\t\"wf_runs_resource_permits_state\",\n\t\"wf_runs_ship_batches\",\n\t\"wf_runs_ship_batches_work\",\n\t\"wf_runs_ship_watermarks\",\n\t\"wf_runs_snapshot_refs_delete\",\n\t\"wf_runs_snapshot_refs_delete_fn\",\n\t\"wf_runs_snapshot_state_insert\",\n\t\"wf_runs_snapshot_state_insert_fn\",\n\t\"wf_runs_snapshot_state_status\",\n\t\"wf_runs_snapshot_state_status_fn\",\n\t\"wf_runs_stage_inputs\",\n\t\"wf_runs_stage_inputs_pending\",\n\t\"wf_runs_stage_leases\",\n\t\"wf_runs_stage_workspaces\",\n\t\"wf_runs_work\",\n\t\"wf_runs_work_child\",\n\t\"wf_runs_work_expiry\",\n\t\"wf_runs_work_input_chunks\",\n\t\"wf_runs_work_ready\",\n\t\"wf_runs_work_result_chunks\",\n\t\"wf_runs_work_results\",\n\t\"wf_runs_work_scope\",\n\t\"wf_runs_work_snapshot_carried_delete\",\n\t\"wf_runs_work_snapshot_carried_delete_fn\",\n\t\"wf_runs_work_snapshot_carried_insert\",\n\t\"wf_runs_work_snapshot_carried_insert_fn\",\n\t\"wf_runs_work_snapshot_carried_update\",\n\t\"wf_runs_work_snapshot_carried_update_fn\",\n]);\n\n/**\n * What follows the prefix in the triggers and trigger functions of a worker pool (#4793) whose names are longer than\n * `POSTGRES_STORAGE_IDENTIFIER_SUFFIXES` allows. Under a prefix that makes one longer than 63 bytes, Postgres knows it by\n * `postgresDialect.identifier` of the whole name (its head and a hash), in every statement and catalog probe alike; under\n * a shorter prefix, by the whole name. They do not limit the prefix.\n */\nexport const POSTGRES_HASHED_STORAGE_IDENTIFIER_SUFFIXES: readonly string[] = Object.freeze([\n\t\"wf_ps_session_entries_snapshot_pending_fn\",\n\t\"wf_ps_session_entries_snapshot_refs_delete\",\n\t\"wf_ps_session_entries_snapshot_refs_delete_fn\",\n\t\"wf_ps_snapshot_blobs_chunks_delete_all_fn\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_delete\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_delete_fn\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_insert\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_insert_fn\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_update\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_update_fn\",\n\t\"wf_runs_pool_usage_totals_work_delete_fn\",\n]);\n\n/**\n * The longest storage prefix PostgreSQL takes: Postgres truncates an identifier longer than 63 bytes, so a longer\n * prefix would cut the longest name Atomic gives it, or make two names one. Prefixes are ASCII, one byte a character.\n */\nexport const POSTGRES_MAX_STORAGE_PREFIX_LENGTH =\n\t63 - Math.max(...POSTGRES_STORAGE_IDENTIFIER_SUFFIXES.map((suffix) => suffix.length));\n\n/**\n * What a worker pool of an earlier release added to the journal's prefix for the stores it carried on PostgreSQL: its\n * pooled-stage sessions and their snapshot index live under `<prefix>wf_ps_` (#4793). The length limit applies to the\n * prefix before it.\n */\nexport const POSTGRES_POOL_SESSION_PREFIX = \"wf_ps_\";\n\n/**\n * Check a storage prefix, and with `dialect`, that the backend can name every identifier under it. SQLite\n * have no identifier limit. On PostgreSQL the limit applies to the prefix a user chose: a worker pool's session prefix\n * (`<prefix>wf_ps_`) is checked as the prefix before it.\n */\nexport function validateStoragePrefix(prefix = \"\", dialect?: StorageDialectName): string {\n\tif (prefix !== \"\" && !/^[A-Za-z_][A-Za-z0-9_]*$/.test(prefix)) {\n\t\tthrow new StoragePrefixError(prefix, \"pattern\");\n\t}\n\tif (/^sqlite_/i.test(prefix)) throw new StoragePrefixError(prefix, \"reserved\");\n\tconst chosen = prefix.endsWith(POSTGRES_POOL_SESSION_PREFIX)\n\t\t? prefix.slice(0, -POSTGRES_POOL_SESSION_PREFIX.length)\n\t\t: prefix;\n\tif (dialect === \"postgres\" && /[A-Z]/.test(prefix)) throw new StoragePrefixError(prefix, \"uppercase\");\n\tif (dialect === \"postgres\" && chosen.length > POSTGRES_MAX_STORAGE_PREFIX_LENGTH)\n\t\tthrow new StoragePrefixError(prefix, \"too-long\", POSTGRES_MAX_STORAGE_PREFIX_LENGTH);\n\tif (dialect === \"postgres\") {\n\t\tconst collision = postgresIdentifierCollision(chosen);\n\t\tif (collision !== undefined) throw new StoragePrefixError(prefix, \"identifier-collision\", undefined, collision);\n\t}\n\treturn prefix;\n}\n\nconst postgresCollisions = new Map<string, string | undefined>();\n\n/**\n * The identifier PostgreSQL would know two of the names under `prefix` by, if any (#5219): a name too long to keep whole\n * is its head and a hash of the whole name, so two names that share their head differ only in that hash.\n */\nfunction postgresIdentifierCollision(prefix: string): string | undefined {\n\tif (postgresCollisions.has(prefix)) return postgresCollisions.get(prefix);\n\tconst seen = new Set<string>();\n\tlet collision: string | undefined;\n\tfor (const suffix of [...POSTGRES_STORAGE_IDENTIFIER_SUFFIXES, ...POSTGRES_HASHED_STORAGE_IDENTIFIER_SUFFIXES]) {\n\t\tconst identifier = postgresDialect.identifier(`${prefix}${suffix}`);\n\t\tif (seen.has(identifier)) {\n\t\t\tcollision = identifier;\n\t\t\tbreak;\n\t\t}\n\t\tseen.add(identifier);\n\t}\n\tpostgresCollisions.set(prefix, collision);\n\treturn collision;\n}\n\nexport function renderStorageIdentifiers<T extends Readonly<Record<string, string>>>(\n\tdomain: \"journal\" | \"sessions\",\n\tnames: T,\n\tprefix = \"\",\n): Readonly<{ [K in keyof T]: string }> {\n\tconst validated = validateStoragePrefix(prefix);\n\tconst domainPrefix = domain === \"journal\" ? \"wf_\" : \"session_\";\n\treturn Object.freeze(\n\t\tObject.fromEntries(Object.entries(names).map(([key, name]) => [key, `${validated}${domainPrefix}${name}`])),\n\t) as Readonly<{ [K in keyof T]: string }>;\n}\n\n/**\n * The ledger `applyStorageMigrations` records each domain's applied versions in, one per prefix: the Postgres schema\n * of every domain under `prefix` (#4793). SQLite keeps no ledger, so its schema is unchanged.\n */\nexport function storageMigrationTable(prefix = \"\"): string {\n\treturn `${validateStoragePrefix(prefix)}atomic_migrations`;\n}\n"]}
1
+ {"version":3,"file":"prefix.js","sourceRoot":"","sources":["../../../src/core/storage/prefix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA2B,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAsB,MAAM,CAAC,MAAM,CAAC;IACpF,mBAAmB;IACnB,6BAA6B;IAC7B,2BAA2B;IAC3B,4BAA4B;IAC5B,sCAAsC;IACtC,iCAAiC;IACjC,4BAA4B;IAC5B,iCAAiC;IACjC,qBAAqB;IACrB,iCAAiC;IACjC,yBAAyB;IACzB,kCAAkC;IAClC,mCAAmC;IACnC,qCAAqC;IACrC,8BAA8B;IAC9B,8BAA8B;IAC9B,kCAAkC;IAClC,iBAAiB;IACjB,uBAAuB;IACvB,gCAAgC;IAChC,+BAA+B;IAC/B,6BAA6B;IAC7B,kCAAkC;IAClC,+BAA+B;IAC/B,iBAAiB;IACjB,yBAAyB;IACzB,wBAAwB;IACxB,8BAA8B;IAC9B,6BAA6B;IAC7B,uBAAuB;IACvB,6BAA6B;IAC7B,8BAA8B;IAC9B,wBAAwB;IACxB,gCAAgC;IAChC,yCAAyC;IACzC,iCAAiC;IACjC,wCAAwC;IACxC,uCAAuC;IACvC,sCAAsC;IACtC,gCAAgC;IAChC,wBAAwB;IACxB,iCAAiC;IACjC,2BAA2B;IAC3B,oCAAoC;IACpC,uBAAuB;IACvB,0BAA0B;IAC1B,kBAAkB;IAClB,yBAAyB;IACzB,0BAA0B;IAC1B,qBAAqB;IACrB,eAAe;IAC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AS,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAChD,MAAM,YAAY,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC;IAC/D,OAAO,MAAM,CAAC,MAAM,CACnB,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,SAAS,GAAG,YAAY,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,CACnE,CAAC;AAC3C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAM,GAAG,EAAE;IAChD,OAAO,GAAG,qBAAqB,CAAC,MAAM,CAAC,mBAAmB,CAAC;AAC5D,CAAC","sourcesContent":["import { postgresDialect, type StorageDialectName } from \"./dialect.js\";\nimport { StoragePrefixError } from \"./errors.js\";\n\n/**\n * What follows the prefix in every identifier Atomic names on PostgreSQL: the tables, indexes, triggers and trigger\n * functions of sessions, worktree snapshots and the Intercom broker state (#5067), the Intercom lease order sequence\n * and the lease table's address indexes (#6560), and those the workflow run journal and\n * worker pools (#4793) of earlier releases left under the same prefix, pooled-stage sessions under\n * `POSTGRES_POOL_SESSION_PREFIX` included. Prefixes stay checked against them all, so a database those releases share\n * keeps every name whole. The storage adapters name none of their own, and\n * Postgres chooses constraint names and the sequences of serial columns itself. Longer pool names are in\n * `POSTGRES_HASHED_STORAGE_IDENTIFIER_SUFFIXES`.\n */\nexport const POSTGRES_STORAGE_IDENTIFIER_SUFFIXES: readonly string[] = Object.freeze([\n\t\"atomic_migrations\",\n\t\"intercom_ended_child_bodies\",\n\t\"intercom_ended_child_meta\",\n\t\"intercom_ended_child_queue\",\n\t\"intercom_ended_child_queue_departure\",\n\t\"intercom_ended_child_queue_home\",\n\t\"intercom_ended_child_wakes\",\n\t\"intercom_ended_child_wakes_home\",\n\t\"intercom_held_sends\",\n\t\"intercom_held_sends_reservation\",\n\t\"intercom_known_sessions\",\n\t\"intercom_known_sessions_alias_id\",\n\t\"intercom_known_sessions_atomic_id\",\n\t\"intercom_known_sessions_intercom_id\",\n\t\"intercom_known_sessions_lost\",\n\t\"intercom_known_sessions_name\",\n\t\"intercom_known_sessions_recorded\",\n\t\"intercom_leases\",\n\t\"intercom_leases_order\",\n\t\"intercom_leases_presence_alias\",\n\t\"intercom_leases_presence_host\",\n\t\"intercom_leases_presence_id\",\n\t\"intercom_leases_presence_id_head\",\n\t\"intercom_leases_presence_name\",\n\t\"intercom_outbox\",\n\t\"intercom_outbox_settled\",\n\t\"intercom_outbox_target\",\n\t\"intercom_outbox_target_bytes\",\n\t\"intercom_outbox_undelivered\",\n\t\"intercom_pending_asks\",\n\t\"intercom_pending_asks_ended\",\n\t\"intercom_pending_asks_target\",\n\t\"intercom_released_asks\",\n\t\"intercom_released_asks_expires\",\n\t\"intercom_restoring_reservation_counters\",\n\t\"intercom_restoring_reservations\",\n\t\"intercom_restoring_reservations_active\",\n\t\"intercom_restoring_reservations_child\",\n\t\"intercom_restoring_reservations_wake\",\n\t\"intercom_restoring_wake_claims\",\n\t\"intercom_sent_messages\",\n\t\"intercom_sent_messages_recorded\",\n\t\"intercom_session_bindings\",\n\t\"intercom_session_bindings_recorded\",\n\t\"intercom_settled_asks\",\n\t\"intercom_settled_asks_at\",\n\t\"intercom_wakeups\",\n\t\"intercom_wakeups_broker\",\n\t\"intercom_wakeups_created\",\n\t\"session_blob_chunks\",\n\t\"session_blobs\",\n\t\"session_capture_headings\",\n\t\"session_chat_v1\",\n\t\"session_chat_v1_anchor\",\n\t\"session_entries\",\n\t\"session_entries_capture_del\",\n\t\"session_entries_capture_del_fn\",\n\t\"session_entries_capture_head\",\n\t\"session_entries_capture_head_fn\",\n\t\"session_entries_capture_heading\",\n\t\"session_entries_capture_ins\",\n\t\"session_entries_capture_ins_fn\",\n\t\"session_entries_capture_upd\",\n\t\"session_entries_capture_upd_fn\",\n\t\"session_entries_search_forget\",\n\t\"session_entries_search_forget_fn\",\n\t\"session_entries_snapshot_links\",\n\t\"session_entries_snapshot_links_fn\",\n\t\"session_entries_snapshot_pending\",\n\t\"session_entries_snapshot_pending_fn\",\n\t\"session_entries_snapshot_refs\",\n\t\"session_entries_snapshot_refs_delete\",\n\t\"session_entries_snapshot_refs_delete_fn\",\n\t\"session_entries_snapshot_refs_fn\",\n\t\"session_entry_chunks\",\n\t\"session_fork_detach\",\n\t\"session_fork_lineage\",\n\t\"session_fork_segments\",\n\t\"session_fork_segments_source\",\n\t\"session_fork_staging\",\n\t\"session_fork_staging_name\",\n\t\"session_fork_tombstones\",\n\t\"session_meta\",\n\t\"session_open\",\n\t\"session_search_entries\",\n\t\"session_search_state\",\n\t\"session_search_texts\",\n\t\"session_search_trgm\",\n\t\"session_sessions\",\n\t\"snapshot_blob_chunks\",\n\t\"snapshot_blobs\",\n\t\"snapshot_blobs_age\",\n\t\"snapshot_blobs_chunks_delete_all\",\n\t\"snapshot_blobs_chunks_delete_all_fn\",\n\t\"snapshot_blobs_fork_keep\",\n\t\"snapshot_blobs_fork_keep_fn\",\n\t\"snapshot_blobs_inline_size\",\n\t\"snapshot_carried_refs\",\n\t\"snapshot_carried_refs_hash\",\n\t\"snapshot_collection\",\n\t\"snapshot_index_sources\",\n\t\"snapshot_run_refs\",\n\t\"snapshot_run_refs_hash\",\n\t\"snapshot_run_state\",\n\t\"snapshot_session_links\",\n\t\"snapshot_session_links_anchored\",\n\t\"snapshot_session_links_broken\",\n\t\"snapshot_session_links_entry\",\n\t\"snapshot_session_records\",\n\t\"snapshot_session_records_hash\",\n\t\"snapshot_session_refs\",\n\t\"wf_event_chunks\",\n\t\"wf_events\",\n\t\"wf_events_snapshot_refs\",\n\t\"wf_events_snapshot_refs_fn\",\n\t\"wf_events_snapshot_state\",\n\t\"wf_events_snapshot_state_fn\",\n\t\"wf_lease_builds\",\n\t\"wf_leases\",\n\t\"wf_meta\",\n\t\"wf_ps_atomic_migrations\",\n\t\"wf_ps_session_blob_chunks\",\n\t\"wf_ps_session_blobs\",\n\t\"wf_ps_session_entries\",\n\t\"wf_ps_session_entries_search_forget\",\n\t\"wf_ps_session_entries_search_forget_fn\",\n\t\"wf_ps_session_entries_snapshot_links\",\n\t\"wf_ps_session_entries_snapshot_links_fn\",\n\t\"wf_ps_session_entries_snapshot_pending\",\n\t\"wf_ps_session_entries_snapshot_refs\",\n\t\"wf_ps_session_entries_snapshot_refs_fn\",\n\t\"wf_ps_session_entry_chunks\",\n\t\"wf_ps_session_meta\",\n\t\"wf_ps_session_open\",\n\t\"wf_ps_session_owners\",\n\t\"wf_ps_session_search_entries\",\n\t\"wf_ps_session_search_state\",\n\t\"wf_ps_session_search_texts\",\n\t\"wf_ps_session_search_trgm\",\n\t\"wf_ps_session_sessions\",\n\t\"wf_ps_snapshot_blob_chunks\",\n\t\"wf_ps_snapshot_blobs\",\n\t\"wf_ps_snapshot_blobs_age\",\n\t\"wf_ps_snapshot_blobs_chunks_delete_all\",\n\t\"wf_ps_snapshot_blobs_inline_size\",\n\t\"wf_ps_snapshot_carried_refs\",\n\t\"wf_ps_snapshot_carried_refs_hash\",\n\t\"wf_ps_snapshot_collection\",\n\t\"wf_ps_snapshot_index_sources\",\n\t\"wf_ps_snapshot_run_refs\",\n\t\"wf_ps_snapshot_run_refs_hash\",\n\t\"wf_ps_snapshot_run_state\",\n\t\"wf_ps_snapshot_session_links\",\n\t\"wf_ps_snapshot_session_links_broken\",\n\t\"wf_ps_snapshot_session_links_entry\",\n\t\"wf_ps_snapshot_session_links_leaves\",\n\t\"wf_ps_snapshot_session_records\",\n\t\"wf_ps_snapshot_session_records_hash\",\n\t\"wf_ps_snapshot_session_refs\",\n\t\"wf_runs\",\n\t\"wf_runs_fleet_controller\",\n\t\"wf_runs_fleet_drains\",\n\t\"wf_runs_fleet_events\",\n\t\"wf_runs_pool\",\n\t\"wf_runs_pool_activity\",\n\t\"wf_runs_pool_activity_version\",\n\t\"wf_runs_pool_control\",\n\t\"wf_runs_pool_fence\",\n\t\"wf_runs_pool_fence_abort\",\n\t\"wf_runs_pool_fence_abort_fn\",\n\t\"wf_runs_pool_hosts\",\n\t\"wf_runs_pool_meta\",\n\t\"wf_runs_pool_operations\",\n\t\"wf_runs_pool_restore_backoffs\",\n\t\"wf_runs_pool_root_snapshot\",\n\t\"wf_runs_pool_shared\",\n\t\"wf_runs_pool_usage\",\n\t\"wf_runs_pool_usage_totals\",\n\t\"wf_runs_pool_usage_totals_delete\",\n\t\"wf_runs_pool_usage_totals_delete_fn\",\n\t\"wf_runs_pool_usage_totals_insert\",\n\t\"wf_runs_pool_usage_totals_insert_fn\",\n\t\"wf_runs_pool_usage_totals_update\",\n\t\"wf_runs_pool_usage_totals_update_fn\",\n\t\"wf_runs_pool_usage_totals_work_delete\",\n\t\"wf_runs_rate_buckets\",\n\t\"wf_runs_rate_waiting\",\n\t\"wf_runs_rate_waiting_age\",\n\t\"wf_runs_resource_limits\",\n\t\"wf_runs_resource_owners\",\n\t\"wf_runs_resource_permits\",\n\t\"wf_runs_resource_permits_active\",\n\t\"wf_runs_resource_permits_owner\",\n\t\"wf_runs_resource_permits_state\",\n\t\"wf_runs_ship_batches\",\n\t\"wf_runs_ship_batches_work\",\n\t\"wf_runs_ship_watermarks\",\n\t\"wf_runs_snapshot_refs_delete\",\n\t\"wf_runs_snapshot_refs_delete_fn\",\n\t\"wf_runs_snapshot_state_insert\",\n\t\"wf_runs_snapshot_state_insert_fn\",\n\t\"wf_runs_snapshot_state_status\",\n\t\"wf_runs_snapshot_state_status_fn\",\n\t\"wf_runs_stage_inputs\",\n\t\"wf_runs_stage_inputs_pending\",\n\t\"wf_runs_stage_leases\",\n\t\"wf_runs_stage_workspaces\",\n\t\"wf_runs_work\",\n\t\"wf_runs_work_child\",\n\t\"wf_runs_work_expiry\",\n\t\"wf_runs_work_input_chunks\",\n\t\"wf_runs_work_ready\",\n\t\"wf_runs_work_result_chunks\",\n\t\"wf_runs_work_results\",\n\t\"wf_runs_work_scope\",\n\t\"wf_runs_work_snapshot_carried_delete\",\n\t\"wf_runs_work_snapshot_carried_delete_fn\",\n\t\"wf_runs_work_snapshot_carried_insert\",\n\t\"wf_runs_work_snapshot_carried_insert_fn\",\n\t\"wf_runs_work_snapshot_carried_update\",\n\t\"wf_runs_work_snapshot_carried_update_fn\",\n]);\n\n/**\n * What follows the prefix in the triggers and trigger functions of a worker pool (#4793) whose names are longer than\n * `POSTGRES_STORAGE_IDENTIFIER_SUFFIXES` allows. Under a prefix that makes one longer than 63 bytes, Postgres knows it by\n * `postgresDialect.identifier` of the whole name (its head and a hash), in every statement and catalog probe alike; under\n * a shorter prefix, by the whole name. They do not limit the prefix.\n */\nexport const POSTGRES_HASHED_STORAGE_IDENTIFIER_SUFFIXES: readonly string[] = Object.freeze([\n\t\"wf_ps_session_entries_snapshot_pending_fn\",\n\t\"wf_ps_session_entries_snapshot_refs_delete\",\n\t\"wf_ps_session_entries_snapshot_refs_delete_fn\",\n\t\"wf_ps_snapshot_blobs_chunks_delete_all_fn\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_delete\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_delete_fn\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_insert\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_insert_fn\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_update\",\n\t\"wf_runs_pool_root_snapshot_snapshot_carried_update_fn\",\n\t\"wf_runs_pool_usage_totals_work_delete_fn\",\n]);\n\n/**\n * The longest storage prefix PostgreSQL takes: Postgres truncates an identifier longer than 63 bytes, so a longer\n * prefix would cut the longest name Atomic gives it, or make two names one. Prefixes are ASCII, one byte a character.\n */\nexport const POSTGRES_MAX_STORAGE_PREFIX_LENGTH =\n\t63 - Math.max(...POSTGRES_STORAGE_IDENTIFIER_SUFFIXES.map((suffix) => suffix.length));\n\n/**\n * What a worker pool of an earlier release added to the journal's prefix for the stores it carried on PostgreSQL: its\n * pooled-stage sessions and their snapshot index live under `<prefix>wf_ps_` (#4793). The length limit applies to the\n * prefix before it.\n */\nexport const POSTGRES_POOL_SESSION_PREFIX = \"wf_ps_\";\n\n/**\n * Check a storage prefix, and with `dialect`, that the backend can name every identifier under it. SQLite\n * have no identifier limit. On PostgreSQL the limit applies to the prefix a user chose: a worker pool's session prefix\n * (`<prefix>wf_ps_`) is checked as the prefix before it.\n */\nexport function validateStoragePrefix(prefix = \"\", dialect?: StorageDialectName): string {\n\tif (prefix !== \"\" && !/^[A-Za-z_][A-Za-z0-9_]*$/.test(prefix)) {\n\t\tthrow new StoragePrefixError(prefix, \"pattern\");\n\t}\n\tif (/^sqlite_/i.test(prefix)) throw new StoragePrefixError(prefix, \"reserved\");\n\tconst chosen = prefix.endsWith(POSTGRES_POOL_SESSION_PREFIX)\n\t\t? prefix.slice(0, -POSTGRES_POOL_SESSION_PREFIX.length)\n\t\t: prefix;\n\tif (dialect === \"postgres\" && /[A-Z]/.test(prefix)) throw new StoragePrefixError(prefix, \"uppercase\");\n\tif (dialect === \"postgres\" && chosen.length > POSTGRES_MAX_STORAGE_PREFIX_LENGTH)\n\t\tthrow new StoragePrefixError(prefix, \"too-long\", POSTGRES_MAX_STORAGE_PREFIX_LENGTH);\n\tif (dialect === \"postgres\") {\n\t\tconst collision = postgresIdentifierCollision(chosen);\n\t\tif (collision !== undefined) throw new StoragePrefixError(prefix, \"identifier-collision\", undefined, collision);\n\t}\n\treturn prefix;\n}\n\nconst postgresCollisions = new Map<string, string | undefined>();\n\n/**\n * The identifier PostgreSQL would know two of the names under `prefix` by, if any (#5219): a name too long to keep whole\n * is its head and a hash of the whole name, so two names that share their head differ only in that hash.\n */\nfunction postgresIdentifierCollision(prefix: string): string | undefined {\n\tif (postgresCollisions.has(prefix)) return postgresCollisions.get(prefix);\n\tconst seen = new Set<string>();\n\tlet collision: string | undefined;\n\tfor (const suffix of [...POSTGRES_STORAGE_IDENTIFIER_SUFFIXES, ...POSTGRES_HASHED_STORAGE_IDENTIFIER_SUFFIXES]) {\n\t\tconst identifier = postgresDialect.identifier(`${prefix}${suffix}`);\n\t\tif (seen.has(identifier)) {\n\t\t\tcollision = identifier;\n\t\t\tbreak;\n\t\t}\n\t\tseen.add(identifier);\n\t}\n\tpostgresCollisions.set(prefix, collision);\n\treturn collision;\n}\n\nexport function renderStorageIdentifiers<T extends Readonly<Record<string, string>>>(\n\tdomain: \"journal\" | \"sessions\",\n\tnames: T,\n\tprefix = \"\",\n): Readonly<{ [K in keyof T]: string }> {\n\tconst validated = validateStoragePrefix(prefix);\n\tconst domainPrefix = domain === \"journal\" ? \"wf_\" : \"session_\";\n\treturn Object.freeze(\n\t\tObject.fromEntries(Object.entries(names).map(([key, name]) => [key, `${validated}${domainPrefix}${name}`])),\n\t) as Readonly<{ [K in keyof T]: string }>;\n}\n\n/**\n * The ledger `applyStorageMigrations` records each domain's applied versions in, one per prefix: the Postgres schema\n * of every domain under `prefix` (#4793). SQLite keeps no ledger, so its schema is unchanged.\n */\nexport function storageMigrationTable(prefix = \"\"): string {\n\treturn `${validateStoragePrefix(prefix)}atomic_migrations`;\n}\n"]}
@@ -443,7 +443,7 @@ function __atomicOnDemandFailed(error, feature) {
443
443
  return (async () => {
444
444
  const root = new URL("../../", import.meta.url);
445
445
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
446
- const key = `${root.href}#0.10.16-alpha.1`;
446
+ const key = `${root.href}#0.10.17-alpha.1`;
447
447
  let release = releases.get(key);
448
448
  if (release === undefined) {
449
449
  const current = (async () => {
@@ -471,7 +471,7 @@ function __atomicOnDemandFailed(error, feature) {
471
471
  } catch {
472
472
  // No installation to read, as in a bundle of the package: the release the process runs decides.
473
473
  }
474
- const updatedTo = typeof installed === "string" && installed !== "0.10.16-alpha.1" ? installed : running !== undefined && running.version !== "0.10.16-alpha.1" ? "0.10.16-alpha.1" : undefined;
474
+ const updatedTo = typeof installed === "string" && installed !== "0.10.17-alpha.1" ? installed : running !== undefined && running.version !== "0.10.17-alpha.1" ? "0.10.17-alpha.1" : undefined;
475
475
  if (updatedTo === undefined) throw error;
476
476
  const application = typeof running?.name === "string" ? running.name : "atomic";
477
477
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -285,7 +285,7 @@ function __atomicOnDemandFailed(error, feature) {
285
285
  return (async () => {
286
286
  const root = new URL("../../", import.meta.url);
287
287
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
288
- const key = `${root.href}#0.10.16-alpha.1`;
288
+ const key = `${root.href}#0.10.17-alpha.1`;
289
289
  let release = releases.get(key);
290
290
  if (release === undefined) {
291
291
  const current = (async () => {
@@ -313,7 +313,7 @@ function __atomicOnDemandFailed(error, feature) {
313
313
  } catch {
314
314
  // No installation to read, as in a bundle of the package: the release the process runs decides.
315
315
  }
316
- const updatedTo = typeof installed === "string" && installed !== "0.10.16-alpha.1" ? installed : running !== undefined && running.version !== "0.10.16-alpha.1" ? "0.10.16-alpha.1" : undefined;
316
+ const updatedTo = typeof installed === "string" && installed !== "0.10.17-alpha.1" ? installed : running !== undefined && running.version !== "0.10.17-alpha.1" ? "0.10.17-alpha.1" : undefined;
317
317
  if (updatedTo === undefined) throw error;
318
318
  const application = typeof running?.name === "string" ? running.name : "atomic";
319
319
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -127,7 +127,7 @@ function __atomicOnDemandFailed(error, feature) {
127
127
  return (async () => {
128
128
  const root = new URL("../../../", import.meta.url);
129
129
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
130
- const key = `${root.href}#0.10.16-alpha.1`;
130
+ const key = `${root.href}#0.10.17-alpha.1`;
131
131
  let release = releases.get(key);
132
132
  if (release === undefined) {
133
133
  const current = (async () => {
@@ -155,7 +155,7 @@ function __atomicOnDemandFailed(error, feature) {
155
155
  } catch {
156
156
  // No installation to read, as in a bundle of the package: the release the process runs decides.
157
157
  }
158
- const updatedTo = typeof installed === "string" && installed !== "0.10.16-alpha.1" ? installed : running !== undefined && running.version !== "0.10.16-alpha.1" ? "0.10.16-alpha.1" : undefined;
158
+ const updatedTo = typeof installed === "string" && installed !== "0.10.17-alpha.1" ? installed : running !== undefined && running.version !== "0.10.17-alpha.1" ? "0.10.17-alpha.1" : undefined;
159
159
  if (updatedTo === undefined) throw error;
160
160
  const application = typeof running?.name === "string" ? running.name : "atomic";
161
161
  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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 while this session was running; restart it to keep using session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -116,7 +116,7 @@ function __atomicOnDemandFailed(error, feature) {
116
116
  return (async () => {
117
117
  const root = new URL("../../../", import.meta.url);
118
118
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
119
- const key = `${root.href}#0.10.16-alpha.1`;
119
+ const key = `${root.href}#0.10.17-alpha.1`;
120
120
  let release = releases.get(key);
121
121
  if (release === undefined) {
122
122
  const current = (async () => {
@@ -144,7 +144,7 @@ function __atomicOnDemandFailed(error, feature) {
144
144
  } catch {
145
145
  // No installation to read, as in a bundle of the package: the release the process runs decides.
146
146
  }
147
- const updatedTo = typeof installed === "string" && installed !== "0.10.16-alpha.1" ? installed : running !== undefined && running.version !== "0.10.16-alpha.1" ? "0.10.16-alpha.1" : undefined;
147
+ const updatedTo = typeof installed === "string" && installed !== "0.10.17-alpha.1" ? installed : running !== undefined && running.version !== "0.10.17-alpha.1" ? "0.10.17-alpha.1" : undefined;
148
148
  if (updatedTo === undefined) throw error;
149
149
  const application = typeof running?.name === "string" ? running.name : "atomic";
150
150
  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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 while this session was running; restart it to keep using session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -643,7 +643,7 @@ function __atomicOnDemandFailed(error, feature) {
643
643
  return (async () => {
644
644
  const root = new URL("../../../", import.meta.url);
645
645
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
646
- const key = `${root.href}#0.10.16-alpha.1`;
646
+ const key = `${root.href}#0.10.17-alpha.1`;
647
647
  let release = releases.get(key);
648
648
  if (release === undefined) {
649
649
  const current = (async () => {
@@ -671,7 +671,7 @@ function __atomicOnDemandFailed(error, feature) {
671
671
  } catch {
672
672
  // No installation to read, as in a bundle of the package: the release the process runs decides.
673
673
  }
674
- const updatedTo = typeof installed === "string" && installed !== "0.10.16-alpha.1" ? installed : running !== undefined && running.version !== "0.10.16-alpha.1" ? "0.10.16-alpha.1" : undefined;
674
+ const updatedTo = typeof installed === "string" && installed !== "0.10.17-alpha.1" ? installed : running !== undefined && running.version !== "0.10.17-alpha.1" ? "0.10.17-alpha.1" : undefined;
675
675
  if (updatedTo === undefined) throw error;
676
676
  const application = typeof running?.name === "string" ? running.name : "atomic";
677
677
  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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 while this session was running; restart it to keep using session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -481,7 +481,7 @@ function __atomicOnDemandFailed(error, feature) {
481
481
  return (async () => {
482
482
  const root = new URL("../../../", import.meta.url);
483
483
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
484
- const key = `${root.href}#0.10.16-alpha.1`;
484
+ const key = `${root.href}#0.10.17-alpha.1`;
485
485
  let release = releases.get(key);
486
486
  if (release === undefined) {
487
487
  const current = (async () => {
@@ -509,7 +509,7 @@ function __atomicOnDemandFailed(error, feature) {
509
509
  } catch {
510
510
  // No installation to read, as in a bundle of the package: the release the process runs decides.
511
511
  }
512
- const updatedTo = typeof installed === "string" && installed !== "0.10.16-alpha.1" ? installed : running !== undefined && running.version !== "0.10.16-alpha.1" ? "0.10.16-alpha.1" : undefined;
512
+ const updatedTo = typeof installed === "string" && installed !== "0.10.17-alpha.1" ? installed : running !== undefined && running.version !== "0.10.17-alpha.1" ? "0.10.17-alpha.1" : undefined;
513
513
  if (updatedTo === undefined) throw error;
514
514
  const application = typeof running?.name === "string" ? running.name : "atomic";
515
515
  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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 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.16-alpha.1`;
9
+ const key = `${root.href}#0.10.17-alpha.1`;
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.16-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.16-alpha.1 while this session was running; restart it to keep using session storage.", {
30
+ if (running === undefined || running.version === "0.10.17-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.17-alpha.1 while this session was running; restart it to keep using session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }