@bastani/atomic 0.10.18 → 0.10.19-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 (334) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +27 -5
  3. package/dist/_shared/config-binary-install-SNFYFXWB.js +70 -0
  4. package/dist/_shared/config-binary-install-SNFYFXWB.js.map +1 -0
  5. package/dist/_shared/dist-KOELCESV.js +2 -2
  6. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  7. package/dist/_shared/lib-4PES5P4V.js +2 -2
  8. package/dist/_shared/{mode-interactive-sdk-7KXUFI2F.js → mode-interactive-sdk-JXBZ3H27.js} +434 -11
  9. package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -0
  10. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +21 -6
  11. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  12. package/dist/_shared/mode-shared-2QJSCUM6.js +7 -6
  13. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  14. package/dist/_shared/p0-cli-BB45ZQY6.js +56 -3
  15. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
  16. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  17. package/dist/_shared/runtime-O4KCSG4C.js +3 -3
  18. package/dist/_shared/{sdk-OHKMDJ74.js → sdk-BHX35EPK.js} +40 -9
  19. package/dist/_shared/sdk-BHX35EPK.js.map +1 -0
  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-OV6RAEAP.js → startup-0-0-4EDVBK5P.js} +464 -7
  23. package/dist/_shared/startup-0-0-4EDVBK5P.js.map +1 -0
  24. package/dist/_shared/{startup-0-1-EZAJI6RE.js → startup-0-1-H5IXVRXQ.js} +85 -7
  25. package/dist/_shared/startup-0-1-H5IXVRXQ.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 +4 -4
  29. package/dist/_shared/startup-0-5-HZX3ZPTP.js +44 -11
  30. package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
  31. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  32. package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
  33. package/dist/_shared/startup-14-0-MLX36RBG.js +3 -3
  34. package/dist/_shared/startup-15-0-YUKGAC63.js +3 -3
  35. package/dist/_shared/{startup-15-1-4S7FLMNG.js → startup-15-1-WQZBOTMZ.js} +70 -28
  36. package/dist/_shared/{startup-15-1-4S7FLMNG.js.map → startup-15-1-WQZBOTMZ.js.map} +1 -1
  37. package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
  38. package/dist/_shared/{startup-8-1-LZFXSD3Z.js → startup-8-1-QZMXUGHI.js} +242 -20
  39. package/dist/_shared/startup-8-1-QZMXUGHI.js.map +1 -0
  40. package/dist/_shared/storage-command-7MGXLJGZ.js +5 -5
  41. package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
  42. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  43. package/dist/_shared/team-DOQKICG2.js +2 -2
  44. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  45. package/dist/binary-self-update.js +281 -0
  46. package/dist/binary-self-update.js.map +1 -0
  47. package/dist/builtin/intercom/index.bundle.mjs +2 -1
  48. package/dist/builtin/intercom/package.json +1 -1
  49. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  50. package/dist/builtin/mcp/package.json +1 -1
  51. package/dist/builtin/subagents/CHANGELOG.md +15 -0
  52. package/dist/builtin/subagents/package.json +1 -1
  53. package/dist/builtin/subagents/skills/agent-browser/SKILL.md +1 -1
  54. package/dist/builtin/subagents/skills/impeccable/SKILL.md +3 -3
  55. package/dist/builtin/subagents/skills/impeccable/reference/audit.md +2 -2
  56. package/dist/builtin/subagents/skills/impeccable/reference/critique.md +3 -3
  57. package/dist/builtin/subagents/skills/impeccable/reference/generate.md +1 -1
  58. package/dist/builtin/subagents/skills/impeccable/reference/init.md +0 -2
  59. package/dist/builtin/subagents/skills/impeccable/reference/live.md +4 -2
  60. package/dist/builtin/subagents/skills/impeccable/reference/new-work-comp.md +1 -1
  61. package/dist/builtin/subagents/skills/impeccable/reference/new-work-world.md +1 -1
  62. package/dist/builtin/subagents/skills/impeccable/scripts/VERSION +1 -1
  63. package/dist/builtin/subagents/skills/impeccable/scripts/engine-checksums.txt +5 -5
  64. package/dist/builtin/subagents/skills/impeccable/scripts/impeccable +28 -5
  65. package/dist/builtin/subagents/skills/impeccable/scripts/impeccable.cmd +11 -2
  66. package/dist/builtin/subagents/skills/impeccable/scripts/live-browser.js +10 -6
  67. package/dist/builtin/subagents/skills/research-codebase/SKILL.md +13 -19
  68. package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
  69. package/dist/builtin/subagents/skills/subagent/SKILL.md +7 -7
  70. package/dist/builtin/subagents/skills/workflow/SKILL.md +98 -0
  71. package/dist/builtin/subagents/src/extension/index.bundle.mjs +2 -1
  72. package/dist/builtin/web-access/index.bundle.mjs +2 -1
  73. package/dist/builtin/web-access/package.json +1 -1
  74. package/dist/cli/args.js +2 -2
  75. package/dist/cli/auth-cli.code.js +3 -3
  76. package/dist/cli/auth-cli.impl.js +3 -3
  77. package/dist/cli/auth-cli.js +3 -3
  78. package/dist/cli/blueprint-command.code.js +2 -2
  79. package/dist/cli/blueprint-command.impl.js +3 -3
  80. package/dist/cli/blueprint-command.js +3 -3
  81. package/dist/cli/intercom-command.code.js +2 -2
  82. package/dist/cli/intercom-command.impl.js +3 -3
  83. package/dist/cli/intercom-command.js +3 -3
  84. package/dist/cli/list-models.code.js +2 -2
  85. package/dist/cli/list-models.impl.js +3 -3
  86. package/dist/cli/list-models.js +3 -3
  87. package/dist/cli/session-picker.code.js +1 -1
  88. package/dist/cli/session-picker.impl.js +3 -3
  89. package/dist/cli/session-picker.js +3 -3
  90. package/dist/cli/startup-ui.code.js +1 -1
  91. package/dist/cli/startup-ui.impl.js +3 -3
  92. package/dist/cli/startup-ui.js +3 -3
  93. package/dist/cli/storage-command.impl.js +3 -3
  94. package/dist/cli/storage-command.js +3 -3
  95. package/dist/cli/storage-search-session.code.js +3 -3
  96. package/dist/cli/storage-search-session.impl.js +3 -3
  97. package/dist/cli/storage-search-session.js +3 -3
  98. package/dist/cli/team-command.code.js +1 -1
  99. package/dist/cli/team-command.impl.js +3 -3
  100. package/dist/cli/team-command.js +3 -3
  101. package/dist/cli/usage-command.js +22 -0
  102. package/dist/cli/usage-command.js.map +1 -0
  103. package/dist/cli.js +2 -2
  104. package/dist/config-binary-install.js +3 -0
  105. package/dist/config-binary-install.js.map +1 -0
  106. package/dist/core/agent-session-services.js +3 -0
  107. package/dist/core/agent-session-services.js.map +1 -0
  108. package/dist/core/debug.impl.js +3 -3
  109. package/dist/core/debug.js +3 -3
  110. package/dist/core/export-html/card-projection.impl.js +3 -3
  111. package/dist/core/export-html/card-projection.js +3 -3
  112. package/dist/core/export-html/index.code.js +2 -2
  113. package/dist/core/export-html/index.impl.js +3 -3
  114. package/dist/core/export-html/index.js +3 -3
  115. package/dist/core/export-html/json-spans.impl.js +3 -3
  116. package/dist/core/export-html/json-spans.js +3 -3
  117. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  118. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  119. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  120. package/dist/core/export-html/tool-renderer.js +3 -3
  121. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  122. package/dist/core/extensions/jiti-loader.js +3 -3
  123. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  124. package/dist/core/extensions/jiti-static-loader.js +3 -3
  125. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  126. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  127. package/dist/core/extensions/loader-host-modules.js +3 -3
  128. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  129. package/dist/core/extensions/runner-context.js +2 -2
  130. package/dist/core/intercom-broker-control-host.code.js +1 -1
  131. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  132. package/dist/core/intercom-broker-control-host.js +3 -3
  133. package/dist/core/intercom-broker-control.code.js +3 -3
  134. package/dist/core/intercom-broker-control.impl.js +3 -3
  135. package/dist/core/intercom-broker-control.js +3 -3
  136. package/dist/core/{legacy-workflow-files.d.ts → legacy-workflows.d.ts} +1 -1
  137. package/dist/core/model-runtime.d.ts +8 -2
  138. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  139. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  140. package/dist/core/package-manager-storage-adapters.js +3 -3
  141. package/dist/core/resource-loader-core.d.ts +1 -1
  142. package/dist/core/resource-loader-internals.d.ts +1 -1
  143. package/dist/core/resource-loader-types.d.ts +1 -1
  144. package/dist/core/resource-loader-types.js.map +1 -1
  145. package/dist/core/sdk.code.js +4 -4
  146. package/dist/core/sdk.impl.js +3 -3
  147. package/dist/core/sdk.js +3 -3
  148. package/dist/core/session-manager-core.js +5 -5
  149. package/dist/core/session-manager-list.impl.js +3 -3
  150. package/dist/core/session-manager-list.js +3 -3
  151. package/dist/core/session-manager.code.js +1 -1
  152. package/dist/core/session-manager.impl.js +3 -3
  153. package/dist/core/session-manager.js +3 -3
  154. package/dist/core/session-storage.code.js +1 -1
  155. package/dist/core/session-storage.impl.js +3 -3
  156. package/dist/core/session-storage.js +3 -3
  157. package/dist/core/settings-manager.js +5 -0
  158. package/dist/core/settings-manager.js.map +1 -0
  159. package/dist/core/storage/index.js +2 -2
  160. package/dist/core/storage/node-sqlite-thread.js +2 -2
  161. package/dist/core/storage/node-sqlite.js +2 -2
  162. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  163. package/dist/core/storage/offline-snapshot-file.js +3 -3
  164. package/dist/core/storage/provider.js +2 -2
  165. package/dist/core/storage/selection.js +2 -2
  166. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  167. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  168. package/dist/core/storage/session/branch-fork-source.js +3 -3
  169. package/dist/core/storage/session/card-view.impl.js +3 -3
  170. package/dist/core/storage/session/card-view.js +3 -3
  171. package/dist/core/storage/session/child-reader.code.js +3 -3
  172. package/dist/core/storage/session/child-reader.impl.js +3 -3
  173. package/dist/core/storage/session/child-reader.js +3 -3
  174. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  175. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  176. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  177. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  178. package/dist/core/storage/session/expanded-child-details.js +3 -3
  179. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  180. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  181. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  182. package/dist/core/storage/session/fork-row-index.js +3 -3
  183. package/dist/core/storage/session/fork-staging.code.js +2 -2
  184. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  185. package/dist/core/storage/session/fork-staging.js +3 -3
  186. package/dist/core/storage/session/fork-window.code.js +3 -3
  187. package/dist/core/storage/session/fork-window.impl.js +3 -3
  188. package/dist/core/storage/session/fork-window.js +3 -3
  189. package/dist/core/storage/session/history-pages.impl.js +3 -3
  190. package/dist/core/storage/session/history-pages.js +3 -3
  191. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  192. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  193. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  194. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  195. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  196. package/dist/core/storage/session/memory-session-store.js +3 -3
  197. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  198. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  199. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  200. package/dist/core/storage/session/released-history-files.code.js +2 -2
  201. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  202. package/dist/core/storage/session/released-history-files.js +3 -3
  203. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  204. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  205. package/dist/core/storage/session/session-resume.impl.js +3 -3
  206. package/dist/core/storage/session/session-resume.js +3 -3
  207. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  208. package/dist/core/storage/session/snapshot-cut.js +3 -3
  209. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  210. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  211. package/dist/core/storage/session/snapshot-history.js +3 -3
  212. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  213. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  214. package/dist/core/storage/session/sql-session-store.js +3 -3
  215. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  216. package/dist/core/storage/session/tree-outline.js +3 -3
  217. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  218. package/dist/core/storage/session/tree-presentation.js +3 -3
  219. package/dist/core/storage/storage-status.impl.js +3 -3
  220. package/dist/core/storage/storage-status.js +3 -3
  221. package/dist/core/storage/team.impl.js +3 -3
  222. package/dist/core/storage/team.js +3 -3
  223. package/dist/core/structured-output/index.code.js +1 -1
  224. package/dist/core/structured-output/index.impl.js +3 -3
  225. package/dist/core/structured-output/index.js +3 -3
  226. package/dist/core/subscription-usage-credential.d.ts +2 -0
  227. package/dist/core/subscription-usage-endpoints.d.ts +54 -0
  228. package/dist/core/subscription-usage.d.ts +55 -0
  229. package/dist/core/subscription-usage.js +3 -0
  230. package/dist/core/subscription-usage.js.map +1 -0
  231. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  232. package/dist/core/tasks/task-completion-entry.js +3 -3
  233. package/dist/core/tasks/task-file-history.code.js +3 -3
  234. package/dist/core/tasks/task-file-history.impl.js +3 -3
  235. package/dist/core/tasks/task-file-history.js +3 -3
  236. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  237. package/dist/core/tasks/task-reference-archive.js +3 -3
  238. package/dist/core/tasks/task-reference-identity.js +3 -3
  239. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  240. package/dist/core/tasks/task-reference-stream.js +3 -3
  241. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  242. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  243. package/dist/core/tasks/task-view-source.code.js +1 -1
  244. package/dist/core/tasks/task-view-source.impl.js +3 -3
  245. package/dist/core/tasks/task-view-source.js +3 -3
  246. package/dist/core/tools/edit-diff.d.ts +4 -6
  247. package/dist/core/tools/read-url.code.js +3 -3
  248. package/dist/core/tools/read-url.impl.js +3 -3
  249. package/dist/core/tools/read-url.js +3 -3
  250. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  251. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  252. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  253. package/dist/core/worktree-snapshot/errors.js +3 -3
  254. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  255. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  256. package/dist/extensions/codemode/execute.code.js +1 -1
  257. package/dist/extensions/codemode/execute.impl.js +3 -3
  258. package/dist/extensions/codemode/execute.js +3 -3
  259. package/dist/extensions/codemode/renderer.code.js +2 -2
  260. package/dist/extensions/codemode/renderer.impl.js +3 -3
  261. package/dist/extensions/codemode/renderer.js +3 -3
  262. package/dist/extensions/mcp/cli.code.js +2 -2
  263. package/dist/extensions/mcp/cli.impl.js +3 -3
  264. package/dist/extensions/mcp/cli.js +3 -3
  265. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  266. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  267. package/dist/extensions/mcp/cli.lazy.js +3 -3
  268. package/dist/extensions/mcp/runtime.code.js +1 -1
  269. package/dist/extensions/mcp/runtime.impl.js +3 -3
  270. package/dist/extensions/mcp/runtime.js +3 -3
  271. package/dist/index.d.ts +3 -0
  272. package/dist/index.js +7 -7
  273. package/dist/main-first-time-setup.code.js +1 -1
  274. package/dist/main-first-time-setup.impl.js +3 -3
  275. package/dist/main-first-time-setup.js +3 -3
  276. package/dist/main.js +2 -2
  277. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  278. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  279. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  280. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  281. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  282. package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -0
  283. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  284. package/dist/modes/interactive/interactive-mode.js +1 -1
  285. package/dist/modes/interactive-engine/isolated-runtime.d.ts +3 -0
  286. package/dist/modes/print-mode.js +1 -1
  287. package/dist/modes/rpc/rpc-client-api.d.ts +3 -0
  288. package/dist/modes/rpc/rpc-types.d.ts +25 -0
  289. package/dist/package-manager-cli.code.js +31 -8
  290. package/dist/package-manager-cli.code.js.map +1 -1
  291. package/dist/package-manager-cli.impl.js +3 -3
  292. package/dist/package-manager-cli.js +3 -3
  293. package/dist/rpc-entry.js +2 -2
  294. package/dist/startup-files.json +1 -1
  295. package/dist/startup-stages/12.js +1 -1
  296. package/dist/startup-stages/4.js +1 -1
  297. package/dist/startup-stages/6.js +1 -1
  298. package/dist/subscription-usage-sdk.d.ts +9 -0
  299. package/dist/utils/changelog.d.ts +1 -0
  300. package/dist/utils/startup-database-spare.code.js +2 -2
  301. package/dist/utils/startup-database-spare.impl.js +3 -3
  302. package/dist/utils/startup-database-spare.js +3 -3
  303. package/dist/utils/tools-manager.code.js +1 -1
  304. package/dist/utils/tools-manager.impl.js +3 -3
  305. package/dist/utils/tools-manager.js +3 -3
  306. package/docs/changelog.mdx +41 -6
  307. package/docs/containerization.md +17 -15
  308. package/docs/docs.json +1 -0
  309. package/docs/getting-started/installation.md +132 -80
  310. package/docs/guides/subscription-usage.md +133 -0
  311. package/docs/guides/team-setup.md +14 -3
  312. package/docs/guides.md +3 -0
  313. package/docs/index.md +18 -6
  314. package/docs/intercom/operations.md +1 -1
  315. package/docs/orchestration/migrating-workflows.md +16 -10
  316. package/docs/orchestration/patterns.md +8 -2
  317. package/docs/orchestration.md +17 -8
  318. package/docs/quickstart.md +7 -15
  319. package/docs/reference/cli.md +29 -22
  320. package/docs/rpc/protocol.md +9 -1
  321. package/docs/rpc.md +1 -1
  322. package/docs/sdk/reference.md +5 -1
  323. package/docs/skills.md +20 -4
  324. package/docs/slash-commands.md +3 -2
  325. package/docs/tools.md +57 -12
  326. package/docs/usage.md +1 -0
  327. package/docs/windows.md +4 -4
  328. package/package.json +9 -9
  329. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +0 -1
  330. package/dist/_shared/sdk-OHKMDJ74.js.map +0 -1
  331. package/dist/_shared/startup-0-0-OV6RAEAP.js.map +0 -1
  332. package/dist/_shared/startup-0-1-EZAJI6RE.js.map +0 -1
  333. package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +0 -1
  334. package/dist/builtin/subagents/skills/workflow-files/SKILL.md +0 -28
@@ -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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,6 +1,6 @@
1
1
  import "../../../_shared/rolldown-runtime-BGM3D5V3.js";
2
2
  import { getBranchPath } from "../../../_shared/startup-0-3-DE2NCS6A.js";
3
- import { ChildCatalog } from "../../../_shared/startup-0-1-EZAJI6RE.js";
3
+ import { ChildCatalog } from "../../../_shared/startup-0-1-H5IXVRXQ.js";
4
4
  import { assertSnapshotCut, foldSessionResume, lastBranchAnswer, sessionResumeOf, snapshotChunk, snapshotHead, snapshotPage, snapshotStamp, transcriptBranchSpan } from "../../../_shared/startup-8-0-34CBHPZH.js";
5
5
  // dist/core/storage/session/snapshot-history.js
6
6
  async function snapshotWindow(store, sessionId, leaf, through, expected, isProxy) {
@@ -66,7 +66,7 @@ function __atomicOnDemandFailed(error, feature) {
66
66
  return (async () => {
67
67
  const root = new URL("../../../", import.meta.url);
68
68
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
69
- const key = `${root.href}#0.10.18`;
69
+ const key = `${root.href}#0.10.19-alpha.1`;
70
70
  let release = releases.get(key);
71
71
  if (release === undefined) {
72
72
  const current = (async () => {
@@ -94,7 +94,7 @@ function __atomicOnDemandFailed(error, feature) {
94
94
  } catch {
95
95
  // No installation to read, as in a bundle of the package: the release the process runs decides.
96
96
  }
97
- const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
97
+ const updatedTo = typeof installed === "string" && installed !== "0.10.19-alpha.1" ? installed : running !== undefined && running.version !== "0.10.19-alpha.1" ? "0.10.19-alpha.1" : undefined;
98
98
  if (updatedTo === undefined) throw error;
99
99
  const application = typeof running?.name === "string" ? running.name : "atomic";
100
100
  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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,3 +1,3 @@
1
1
  import "../../../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { LISTING_FETCH_BATCH, SESSION_APPEND_FUNCTION_DOMAIN, SESSION_BLOB_CHUNK_BYTES, SESSION_DOMAIN, SESSION_ENTRY_CHUNK_BYTES, SESSION_FILLFACTOR_DOMAIN, SESSION_PRESENCE_DOMAIN, SESSION_PRESENCE_TABLES, SESSION_READ_FETCH, SESSION_READ_PAGE_CHARS, SESSION_RESUME_REBUILD, SESSION_SCHEMA_VERSION, SESSION_SCHEMA_VERSION_CHUNKED, SESSION_SCHEMA_VERSION_SHARED_HISTORY, SESSION_TABLES, SqlSessionStore } from "../../../_shared/sdk-OHKMDJ74.js";
2
+ export { LISTING_FETCH_BATCH, SESSION_APPEND_FUNCTION_DOMAIN, SESSION_BLOB_CHUNK_BYTES, SESSION_DOMAIN, SESSION_ENTRY_CHUNK_BYTES, SESSION_FILLFACTOR_DOMAIN, SESSION_PRESENCE_DOMAIN, SESSION_PRESENCE_TABLES, SESSION_READ_FETCH, SESSION_READ_PAGE_CHARS, SESSION_RESUME_REBUILD, SESSION_SCHEMA_VERSION, SESSION_SCHEMA_VERSION_CHUNKED, SESSION_SCHEMA_VERSION_SHARED_HISTORY, SESSION_TABLES, SqlSessionStore } from "../../../_shared/sdk-BHX35EPK.js";
3
3
  //# sourceMappingURL=sql-session-store.code.js.map
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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 /tree.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using /tree.", {
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.18`;
9
+ const key = `${root.href}#0.10.19-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.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 /tree.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using /tree.", {
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.18`;
9
+ const key = `${root.href}#0.10.19-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.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 /tree.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using /tree.", {
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.18`;
9
+ const key = `${root.href}#0.10.19-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.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 /tree.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using /tree.", {
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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using session storage.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,3 +1,3 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { ClassifierDecisionError, OutputRepairExhaustedError, ProviderRequestFailure, TerminalDecisionError, decisionFailure, generateStructuredOutput, resolveDecisionModel, runDecision } from "../../_shared/sdk-OHKMDJ74.js";
2
+ export { ClassifierDecisionError, OutputRepairExhaustedError, ProviderRequestFailure, TerminalDecisionError, decisionFailure, generateStructuredOutput, resolveDecisionModel, runDecision } from "../../_shared/sdk-BHX35EPK.js";
3
3
  //# sourceMappingURL=index.code.js.map
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using structured output.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -0,0 +1,2 @@
1
+ export declare const readSubscriptionCredential: unique symbol;
2
+ //# sourceMappingURL=subscription-usage-credential.d.ts.map
@@ -0,0 +1,54 @@
1
+ export type SubscriptionProvider = "codex" | "claude" | "xai" | "copilot" | "kimi" | "openrouter";
2
+ export interface UsageWindow {
3
+ label: string;
4
+ usedPercent: number;
5
+ durationSeconds: number | null;
6
+ resetsAt: string | null;
7
+ }
8
+ export interface RequestRateLimit {
9
+ kind: "requests" | "tokens";
10
+ limit?: number;
11
+ remaining?: number;
12
+ resetsAt?: string;
13
+ }
14
+ export interface UsageDetails {
15
+ windows: UsageWindow[];
16
+ rateLimits?: RequestRateLimit[];
17
+ plan?: string;
18
+ resetCredits?: number;
19
+ credits?: {
20
+ available?: boolean;
21
+ unlimited?: boolean;
22
+ balance?: number;
23
+ };
24
+ extraUsage?: {
25
+ enabled: boolean;
26
+ usedPercent?: number;
27
+ };
28
+ creditCap?: {
29
+ limit?: number | null;
30
+ remaining?: number;
31
+ reset?: "daily" | "weekly" | "monthly";
32
+ dailyUsed?: number;
33
+ weeklyUsed?: number;
34
+ monthlyUsed?: number;
35
+ };
36
+ unlimitedWindows?: string[];
37
+ }
38
+ export type UsageUnavailable = "no_subscription" | "needs_profile_scope" | "sign_in_again" | "forbidden";
39
+ export type UsageFailure = "rate_limited" | "timeout" | "malformed" | "http_error" | "request_failed";
40
+ export type UsageIssue = UsageUnavailable | UsageFailure;
41
+ export type UsageFetchResult = ({
42
+ status: "ready";
43
+ } & UsageDetails) | {
44
+ status: "unavailable";
45
+ reason: UsageUnavailable;
46
+ } | {
47
+ status: "failed";
48
+ reason: UsageFailure;
49
+ };
50
+ export declare function fetchSubscriptionUsage(provider: SubscriptionProvider, token: string, accountId: string | undefined, signal: AbortSignal, fetcher?: typeof fetch): Promise<UsageFetchResult>;
51
+ export declare function usageWindowsFromHeaders(provider: "claude" | "codex", headers: Record<string, string>): UsageWindow[];
52
+ export declare function usageWindowsFromCodexEvent(value: unknown): UsageWindow[];
53
+ export declare function requestRateLimitsFromHeaders(headers: Record<string, string>, now: number): RequestRateLimit[];
54
+ //# sourceMappingURL=subscription-usage-endpoints.d.ts.map
@@ -0,0 +1,55 @@
1
+ import type { ModelRuntime } from "./model-runtime.js";
2
+ import { type UsageDetails, type UsageFailure, type UsageIssue, type UsageUnavailable } from "./subscription-usage-endpoints.js";
3
+ type UnavailableReason = UsageUnavailable | "api_key" | "unsupported" | "offline" | "not_signed_in" | "not_observed";
4
+ export type SubscriptionUsageReason = UnavailableReason | UsageFailure;
5
+ export interface UsageAccount {
6
+ provider: string;
7
+ name: string;
8
+ current: boolean;
9
+ }
10
+ export type AccountUsage = UsageAccount & (({
11
+ status: "ready";
12
+ source: "live";
13
+ } & UsageDetails) | ({
14
+ status: "ready";
15
+ source: "recent_response";
16
+ reason: UsageIssue;
17
+ message: string;
18
+ } & UsageDetails) | ({
19
+ status: "ready";
20
+ source: "last_request";
21
+ observedAt: string;
22
+ } & UsageDetails) | {
23
+ status: "unavailable";
24
+ reason: UnavailableReason;
25
+ message: string;
26
+ } | {
27
+ status: "failed";
28
+ reason: UsageFailure;
29
+ message: string;
30
+ });
31
+ export type UsageRow = AccountUsage | (UsageAccount & {
32
+ status: "loading";
33
+ });
34
+ export interface SubscriptionUsageReport {
35
+ accounts: AccountUsage[];
36
+ }
37
+ export interface SubscriptionUsageOptions {
38
+ /** Provider IDs to check, including aliases registered on the runtime. By default, checks all accounts. */
39
+ accounts?: readonly string[];
40
+ signal?: AbortSignal;
41
+ /** Maximum age of a cached endpoint result. Defaults to 60 seconds; use 0 to force a live request. */
42
+ maxAgeMs?: number;
43
+ }
44
+ interface AccountUsageOptions {
45
+ signal?: AbortSignal;
46
+ maxAgeMs?: number;
47
+ fetch?: typeof fetch;
48
+ timeoutMs?: number;
49
+ }
50
+ export declare function listUsageAccounts(runtime: ModelRuntime, current?: string, signal?: AbortSignal): Promise<UsageRow[]>;
51
+ export declare function loadAccountUsage(runtime: ModelRuntime, provider: string, current?: string, options?: AccountUsageOptions): Promise<AccountUsage>;
52
+ export declare function loadSubscriptionUsage(runtime: ModelRuntime, current?: string, options?: SubscriptionUsageOptions): Promise<SubscriptionUsageReport>;
53
+ export declare const usageReason: Record<SubscriptionUsageReason, string>;
54
+ export {};
55
+ //# sourceMappingURL=subscription-usage.d.ts.map
@@ -0,0 +1,3 @@
1
+ import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
+ export { listUsageAccounts, loadAccountUsage, loadSubscriptionUsage, usageReason } from "../_shared/mode-interactive-sdk-JXBZ3H27.js";
3
+ //# sourceMappingURL=subscription-usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-usage.js","sources":[],"names":[],"mappings":""}
@@ -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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 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.18`;
9
+ const key = `${root.href}#0.10.19-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.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.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using /tasks.", {
32
32
  cause: error,
33
33
  });
34
34
  }