@bastani/atomic 0.10.4 → 0.10.5-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 (537) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/_shared/compile-cache-warmup-host-RU5L7I7A.js +1 -1
  3. package/dist/_shared/dist-KOELCESV.js +48 -3
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +47 -2
  5. package/dist/_shared/http-YFAPTIZD.js +16 -4
  6. package/dist/_shared/http-YFAPTIZD.js.map +1 -1
  7. package/dist/_shared/lib-4PES5P4V.js +59 -14
  8. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +1706 -258
  9. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  10. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +317 -64
  11. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  12. package/dist/_shared/{mode-shared-HP7GUA7J.js → mode-shared-2QJSCUM6.js} +432 -81
  13. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -0
  14. package/dist/_shared/p0-cli-BB45ZQY6.js +3482 -0
  15. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -0
  16. package/dist/_shared/p0-cli-GUFK7TPN.js +2 -2838
  17. package/dist/_shared/p0-cli-GUFK7TPN.js.map +1 -1
  18. package/dist/_shared/{p1a-prewarm-YK3KDTLN.js → p1a-prewarm-UQY3X2UK.js} +270 -73
  19. package/dist/_shared/p1a-prewarm-UQY3X2UK.js.map +1 -0
  20. package/dist/_shared/{p1b-elig-PXQA2FYP.js → p1b-elig-ENCUPKKJ.js} +190 -121
  21. package/dist/_shared/p1b-elig-ENCUPKKJ.js.map +1 -0
  22. package/dist/_shared/p2-common-YLSYXMDQ.js +1 -3
  23. package/dist/_shared/p2-common-YLSYXMDQ.js.map +1 -1
  24. package/dist/_shared/p2-shell-TJBYQMCJ.js +1 -1
  25. package/dist/_shared/p2-shell-main-B2WIALFD.js +500 -127
  26. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  27. package/dist/_shared/runtime-O4KCSG4C.js +4 -4
  28. package/dist/_shared/sdk-WQIOHVKO.js +56 -11
  29. package/dist/_shared/session-data-AHTU7IS6.js +48 -3
  30. package/dist/_shared/session-manager-list-2BLEEZVG.js +2 -2
  31. package/dist/_shared/settings-startup-65YEWRV2.js.map +1 -1
  32. package/dist/_shared/sql-session-store-5FD3WBMZ.js +57 -12
  33. package/dist/_shared/{startup-0-0-X4NF3GKM.js → startup-0-0-TYUFUOJZ.js} +519 -316
  34. package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +1 -0
  35. package/dist/_shared/{startup-0-1-7QTG6VJZ.js → startup-0-1-D4LGGINF.js} +284 -81
  36. package/dist/_shared/startup-0-1-D4LGGINF.js.map +1 -0
  37. package/dist/_shared/{startup-0-2-KFDYPDJK.js → startup-0-2-SZGQIWHI.js} +483 -154
  38. package/dist/_shared/startup-0-2-SZGQIWHI.js.map +1 -0
  39. package/dist/_shared/startup-0-3-T4DVFYWX.js +340 -110
  40. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
  41. package/dist/_shared/startup-0-4-HN5EB4K7.js +261 -59
  42. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +1 -1
  43. package/dist/_shared/startup-0-5-OHJNE6JH.js +421 -148
  44. package/dist/_shared/startup-0-5-OHJNE6JH.js.map +1 -1
  45. package/dist/_shared/startup-10-0-TDQNBDDL.js +62 -11
  46. package/dist/_shared/startup-10-0-TDQNBDDL.js.map +1 -1
  47. package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
  48. package/dist/_shared/startup-14-0-MLX36RBG.js +12 -11
  49. package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
  50. package/dist/_shared/startup-15-0-YUKGAC63.js +53 -158
  51. package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
  52. package/dist/_shared/startup-15-1-4S7FLMNG.js +231 -46
  53. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  54. package/dist/_shared/startup-8-0-34CBHPZH.js +115 -35
  55. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  56. package/dist/_shared/{startup-8-1-KQJBDKRU.js → startup-8-1-SJW2GMAM.js} +203 -62
  57. package/dist/_shared/startup-8-1-SJW2GMAM.js.map +1 -0
  58. package/dist/_shared/storage-command-7MGXLJGZ.js +55 -10
  59. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +47 -2
  60. package/dist/_shared/tree-outline-MUEPK5B7.js +48 -3
  61. package/dist/builtin/intercom/CHANGELOG.md +21 -0
  62. package/dist/builtin/intercom/README.md +0 -1
  63. package/dist/builtin/intercom/broker/broker-instance.ts +13 -57
  64. package/dist/builtin/intercom/broker/broker-process.ts +30 -10
  65. package/dist/builtin/intercom/broker/broker-routing.ts +12 -2
  66. package/dist/builtin/intercom/broker/broker.bundle.mjs +2557 -498
  67. package/dist/builtin/intercom/broker/broker.ts +164 -55
  68. package/dist/builtin/intercom/broker/client.ts +36 -16
  69. package/dist/builtin/intercom/broker/control.ts +83 -20
  70. package/dist/builtin/intercom/broker/durable-ended-queue.ts +65 -19
  71. package/dist/builtin/intercom/broker/host-command-environment.ts +7 -2
  72. package/dist/builtin/intercom/broker/multinode-router.ts +1675 -387
  73. package/dist/builtin/intercom/broker/multinode-state-store.ts +10 -0
  74. package/dist/builtin/intercom/broker/paths.ts +68 -6
  75. package/dist/builtin/intercom/broker/pending-send-registry.ts +5 -0
  76. package/dist/builtin/intercom/broker/registration-bounds.ts +38 -0
  77. package/dist/builtin/intercom/broker/retiring-broker-check.ts +178 -0
  78. package/dist/builtin/intercom/broker/return-paths.ts +268 -7
  79. package/dist/builtin/intercom/broker/send-handler.ts +253 -28
  80. package/dist/builtin/intercom/broker/send-order-gate.ts +410 -0
  81. package/dist/builtin/intercom/broker/spawn.ts +950 -202
  82. package/dist/builtin/intercom/broker/sql-lease-store.ts +37 -0
  83. package/dist/builtin/intercom/broker/sql-outbox-store.ts +7 -0
  84. package/dist/builtin/intercom/broker/windows-cwd.ts +546 -0
  85. package/dist/builtin/intercom/index.bundle.mjs +3506 -2328
  86. package/dist/builtin/intercom/package.json +1 -1
  87. package/dist/builtin/intercom/retry-policy.ts +4 -0
  88. package/dist/builtin/intercom/types.ts +2 -0
  89. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  90. package/dist/builtin/mcp/package.json +1 -1
  91. package/dist/builtin/subagents/CHANGELOG.md +6 -0
  92. package/dist/builtin/subagents/package.json +1 -1
  93. package/dist/builtin/subagents/src/extension/index.bundle.mjs +336 -86
  94. package/dist/builtin/web-access/index.bundle.mjs +23 -38
  95. package/dist/builtin/web-access/package.json +1 -1
  96. package/dist/bun/cli.js +1 -1
  97. package/dist/bun/cli.js.map +1 -1
  98. package/dist/bun/internal-intercom-broker.js +119 -4
  99. package/dist/bun/internal-intercom-broker.js.map +1 -1
  100. package/dist/bun/register-theme-validator.js +6 -0
  101. package/dist/bun/register-theme-validator.js.map +1 -0
  102. package/dist/cli/args.js +2 -2
  103. package/dist/cli/auth-cli.code.js +1102 -0
  104. package/dist/cli/auth-cli.code.js.map +1 -0
  105. package/dist/cli/auth-cli.impl.js +30 -1096
  106. package/dist/cli/auth-cli.impl.js.map +1 -1
  107. package/dist/cli/auth-cli.js +11 -7
  108. package/dist/cli/blueprint-command.code.js +906 -0
  109. package/dist/cli/blueprint-command.code.js.map +1 -0
  110. package/dist/cli/blueprint-command.impl.js +30 -900
  111. package/dist/cli/blueprint-command.impl.js.map +1 -1
  112. package/dist/cli/blueprint-command.js +11 -7
  113. package/dist/cli/intercom-command.code.js +153 -0
  114. package/dist/cli/intercom-command.code.js.map +1 -0
  115. package/dist/cli/intercom-command.impl.js +33 -105
  116. package/dist/cli/intercom-command.impl.js.map +1 -1
  117. package/dist/cli/intercom-command.js +11 -7
  118. package/dist/cli/list-models.code.js +60 -0
  119. package/dist/cli/list-models.code.js.map +1 -0
  120. package/dist/cli/list-models.impl.js +33 -57
  121. package/dist/cli/list-models.impl.js.map +1 -1
  122. package/dist/cli/list-models.js +11 -7
  123. package/dist/cli/session-picker.code.js +55 -0
  124. package/dist/cli/session-picker.code.js.map +1 -0
  125. package/dist/cli/session-picker.impl.js +33 -52
  126. package/dist/cli/session-picker.impl.js.map +1 -1
  127. package/dist/cli/session-picker.js +11 -7
  128. package/dist/cli/startup-ui.code.js +5 -0
  129. package/dist/cli/startup-ui.code.js.map +1 -0
  130. package/dist/cli/startup-ui.impl.js +35 -4
  131. package/dist/cli/startup-ui.js +11 -7
  132. package/dist/cli/storage-command.code.js +3 -0
  133. package/dist/cli/storage-command.code.js.map +1 -0
  134. package/dist/cli/storage-command.impl.js +35 -2
  135. package/dist/cli/storage-command.js +11 -7
  136. package/dist/cli/storage-search-session.code.js +189 -0
  137. package/dist/cli/storage-search-session.code.js.map +1 -0
  138. package/dist/cli/storage-search-session.impl.js +33 -186
  139. package/dist/cli/storage-search-session.impl.js.map +1 -1
  140. package/dist/cli/storage-search-session.js +11 -7
  141. package/dist/cli/team-command.code.js +217 -0
  142. package/dist/cli/team-command.code.js.map +1 -0
  143. package/dist/cli/team-command.impl.js +32 -213
  144. package/dist/cli/team-command.impl.js.map +1 -1
  145. package/dist/cli/team-command.js +11 -7
  146. package/dist/cli.js +60 -11
  147. package/dist/cli.js.map +1 -1
  148. package/dist/config.js +1 -1
  149. package/dist/core/agent-session-methods.d.ts +4 -3
  150. package/dist/core/agent-session-methods.js.map +1 -1
  151. package/dist/core/agent-session-types.d.ts +5 -0
  152. package/dist/core/compaction/compaction.d.ts +6 -0
  153. package/dist/core/compaction/model-resolver.d.ts +1 -1
  154. package/dist/core/debug.code.js +3 -0
  155. package/dist/core/debug.code.js.map +1 -0
  156. package/dist/core/debug.impl.js +35 -2
  157. package/dist/core/debug.js +11 -7
  158. package/dist/core/default-model-api-prewarm.d.ts +5 -0
  159. package/dist/core/export-html/card-projection.code.js +257 -0
  160. package/dist/core/export-html/card-projection.code.js.map +1 -0
  161. package/dist/core/export-html/card-projection.impl.js +34 -255
  162. package/dist/core/export-html/card-projection.impl.js.map +1 -1
  163. package/dist/core/export-html/card-projection.js +11 -7
  164. package/dist/core/export-html/index.code.js +655 -0
  165. package/dist/core/export-html/index.code.js.map +1 -0
  166. package/dist/core/export-html/index.impl.js +30 -604
  167. package/dist/core/export-html/index.impl.js.map +1 -1
  168. package/dist/core/export-html/index.js +11 -7
  169. package/dist/core/export-html/json-spans.code.js +3 -0
  170. package/dist/core/export-html/json-spans.code.js.map +1 -0
  171. package/dist/core/export-html/json-spans.impl.js +35 -2
  172. package/dist/core/export-html/json-spans.js +11 -7
  173. package/dist/core/export-html/oversized-render-inputs.code.js +125 -0
  174. package/dist/core/export-html/oversized-render-inputs.code.js.map +1 -0
  175. package/dist/core/export-html/oversized-render-inputs.impl.js +31 -120
  176. package/dist/core/export-html/oversized-render-inputs.impl.js.map +1 -1
  177. package/dist/core/export-html/oversized-render-inputs.js +11 -7
  178. package/dist/core/export-html/tool-renderer.code.js +350 -0
  179. package/dist/core/export-html/tool-renderer.code.js.map +1 -0
  180. package/dist/core/export-html/tool-renderer.impl.js +33 -347
  181. package/dist/core/export-html/tool-renderer.impl.js.map +1 -1
  182. package/dist/core/export-html/tool-renderer.js +11 -7
  183. package/dist/core/extensions/jiti-loader.code.js +3 -0
  184. package/dist/core/extensions/jiti-loader.code.js.map +1 -0
  185. package/dist/core/extensions/jiti-loader.impl.js +35 -2
  186. package/dist/core/extensions/jiti-loader.js +11 -7
  187. package/dist/core/extensions/jiti-static-loader.code.js +3 -0
  188. package/dist/core/extensions/jiti-static-loader.code.js.map +1 -0
  189. package/dist/core/extensions/jiti-static-loader.impl.js +35 -2
  190. package/dist/core/extensions/jiti-static-loader.js +11 -7
  191. package/dist/core/extensions/loader-host-modules.code.js +3 -0
  192. package/dist/core/extensions/loader-host-modules.code.js.map +1 -0
  193. package/dist/core/extensions/loader-host-modules.impl.js +35 -2
  194. package/dist/core/extensions/loader-host-modules.js +11 -7
  195. package/dist/core/extensions/loader-virtual-modules.d.ts +1 -6
  196. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  197. package/dist/core/extensions/runner-context.js +3 -3
  198. package/dist/core/extensions/session-events.d.ts +4 -0
  199. package/dist/core/extensions/session-events.js.map +1 -1
  200. package/dist/core/intercom-broker-control-host.code.js +5 -0
  201. package/dist/core/intercom-broker-control-host.code.js.map +1 -0
  202. package/dist/core/intercom-broker-control-host.impl.js +35 -4
  203. package/dist/core/intercom-broker-control-host.js +11 -7
  204. package/dist/core/intercom-broker-control.code.js +63 -0
  205. package/dist/core/intercom-broker-control.code.js.map +1 -0
  206. package/dist/core/intercom-broker-control.d.ts +21 -0
  207. package/dist/core/intercom-broker-control.impl.js +35 -17
  208. package/dist/core/intercom-broker-control.impl.js.map +1 -1
  209. package/dist/core/intercom-broker-control.js +11 -7
  210. package/dist/core/package-manager-storage-adapters.code.js +3 -0
  211. package/dist/core/package-manager-storage-adapters.code.js.map +1 -0
  212. package/dist/core/package-manager-storage-adapters.impl.js +35 -2
  213. package/dist/core/package-manager-storage-adapters.js +11 -7
  214. package/dist/core/process-start-token.d.ts +8 -2
  215. package/dist/core/process-tree-containment.d.ts +27 -0
  216. package/dist/core/queued-message-delivery.d.ts +5 -2
  217. package/dist/core/resume/blueprint/process.d.ts +3 -1
  218. package/dist/core/sdk.code.js +9 -0
  219. package/dist/core/sdk.code.js.map +1 -0
  220. package/dist/core/sdk.impl.js +35 -8
  221. package/dist/core/sdk.js +11 -7
  222. package/dist/core/session-manager-core.d.ts +15 -5
  223. package/dist/core/session-manager-core.js +195 -38
  224. package/dist/core/session-manager-core.js.map +1 -1
  225. package/dist/core/session-manager-list.code.js +3 -0
  226. package/dist/core/session-manager-list.code.js.map +1 -0
  227. package/dist/core/session-manager-list.impl.js +35 -2
  228. package/dist/core/session-manager-list.js +11 -7
  229. package/dist/core/session-manager-types.d.ts +20 -0
  230. package/dist/core/session-manager.code.js +8 -0
  231. package/dist/core/session-manager.code.js.map +1 -0
  232. package/dist/core/session-manager.d.ts +1 -1
  233. package/dist/core/session-manager.impl.js +35 -7
  234. package/dist/core/session-manager.js +11 -7
  235. package/dist/core/session-storage.code.js +3 -0
  236. package/dist/core/session-storage.code.js.map +1 -0
  237. package/dist/core/session-storage.impl.js +35 -2
  238. package/dist/core/session-storage.js +11 -7
  239. package/dist/core/storage/file-identity.d.ts +3 -0
  240. package/dist/core/storage/file-identity.js +296 -86
  241. package/dist/core/storage/file-identity.js.map +1 -1
  242. package/dist/core/storage/index.d.ts +1 -1
  243. package/dist/core/storage/index.js +52 -7
  244. package/dist/core/storage/index.js.map +1 -1
  245. package/dist/core/storage/node-sqlite-thread.js +47 -2
  246. package/dist/core/storage/node-sqlite.js +49 -4
  247. package/dist/core/storage/node-sqlite.js.map +1 -1
  248. package/dist/core/storage/offline-snapshot-file.code.js +37 -0
  249. package/dist/core/storage/offline-snapshot-file.code.js.map +1 -0
  250. package/dist/core/storage/offline-snapshot-file.impl.js +33 -34
  251. package/dist/core/storage/offline-snapshot-file.impl.js.map +1 -1
  252. package/dist/core/storage/offline-snapshot-file.js +11 -7
  253. package/dist/core/storage/provider.js +52 -7
  254. package/dist/core/storage/selection.js +49 -4
  255. package/dist/core/storage/session/branch-fork-source.code.js +146 -0
  256. package/dist/core/storage/session/branch-fork-source.code.js.map +1 -0
  257. package/dist/core/storage/session/branch-fork-source.impl.js +32 -97
  258. package/dist/core/storage/session/branch-fork-source.impl.js.map +1 -1
  259. package/dist/core/storage/session/branch-fork-source.js +11 -7
  260. package/dist/core/storage/session/card-view.code.js +60 -0
  261. package/dist/core/storage/session/card-view.code.js.map +1 -0
  262. package/dist/core/storage/session/card-view.impl.js +34 -58
  263. package/dist/core/storage/session/card-view.impl.js.map +1 -1
  264. package/dist/core/storage/session/card-view.js +11 -7
  265. package/dist/core/storage/session/child-reader.code.js +139 -0
  266. package/dist/core/storage/session/child-reader.code.js.map +1 -0
  267. package/dist/core/storage/session/child-reader.d.ts +1 -0
  268. package/dist/core/storage/session/child-reader.impl.js +33 -91
  269. package/dist/core/storage/session/child-reader.impl.js.map +1 -1
  270. package/dist/core/storage/session/child-reader.js +11 -7
  271. package/dist/core/storage/session/chunked-resume-projection.code.js +3 -0
  272. package/dist/core/storage/session/chunked-resume-projection.code.js.map +1 -0
  273. package/dist/core/storage/session/chunked-resume-projection.impl.js +35 -2
  274. package/dist/core/storage/session/chunked-resume-projection.js +11 -7
  275. package/dist/core/storage/session/expanded-child-details.code.js +684 -0
  276. package/dist/core/storage/session/expanded-child-details.code.js.map +1 -0
  277. package/dist/core/storage/session/expanded-child-details.impl.js +31 -634
  278. package/dist/core/storage/session/expanded-child-details.impl.js.map +1 -1
  279. package/dist/core/storage/session/expanded-child-details.js +11 -7
  280. package/dist/core/storage/session/fork-row-bytes.code.js +3 -0
  281. package/dist/core/storage/session/fork-row-bytes.code.js.map +1 -0
  282. package/dist/core/storage/session/fork-row-bytes.impl.js +35 -2
  283. package/dist/core/storage/session/fork-row-bytes.js +11 -7
  284. package/dist/core/storage/session/fork-row-index.code.js +3 -0
  285. package/dist/core/storage/session/fork-row-index.code.js.map +1 -0
  286. package/dist/core/storage/session/fork-row-index.impl.js +35 -2
  287. package/dist/core/storage/session/fork-row-index.js +11 -7
  288. package/dist/core/storage/session/fork-staging.code.js +580 -0
  289. package/dist/core/storage/session/fork-staging.code.js.map +1 -0
  290. package/dist/core/storage/session/fork-staging.impl.js +30 -574
  291. package/dist/core/storage/session/fork-staging.impl.js.map +1 -1
  292. package/dist/core/storage/session/fork-staging.js +11 -7
  293. package/dist/core/storage/session/fork-window.code.js +522 -0
  294. package/dist/core/storage/session/fork-window.code.js.map +1 -0
  295. package/dist/core/storage/session/fork-window.impl.js +30 -471
  296. package/dist/core/storage/session/fork-window.impl.js.map +1 -1
  297. package/dist/core/storage/session/fork-window.js +11 -7
  298. package/dist/core/storage/session/history-pages.code.js +3 -0
  299. package/dist/core/storage/session/history-pages.code.js.map +1 -0
  300. package/dist/core/storage/session/history-pages.impl.js +35 -2
  301. package/dist/core/storage/session/history-pages.js +11 -7
  302. package/dist/core/storage/session/jsonl-entry-projection.code.js +3 -0
  303. package/dist/core/storage/session/jsonl-entry-projection.code.js.map +1 -0
  304. package/dist/core/storage/session/jsonl-entry-projection.impl.js +35 -2
  305. package/dist/core/storage/session/jsonl-entry-projection.js +11 -7
  306. package/dist/core/storage/session/jsonl-session-store.code.js +3 -0
  307. package/dist/core/storage/session/jsonl-session-store.code.js.map +1 -0
  308. package/dist/core/storage/session/jsonl-session-store.impl.js +35 -2
  309. package/dist/core/storage/session/jsonl-session-store.js +11 -7
  310. package/dist/core/storage/session/memory-session-store.code.js +3 -0
  311. package/dist/core/storage/session/memory-session-store.code.js.map +1 -0
  312. package/dist/core/storage/session/memory-session-store.impl.js +35 -2
  313. package/dist/core/storage/session/memory-session-store.js +11 -7
  314. package/dist/core/storage/session/pinned-branch-resume.code.js +117 -0
  315. package/dist/core/storage/session/pinned-branch-resume.code.js.map +1 -0
  316. package/dist/core/storage/session/pinned-branch-resume.impl.js +33 -69
  317. package/dist/core/storage/session/pinned-branch-resume.impl.js.map +1 -1
  318. package/dist/core/storage/session/pinned-branch-resume.js +11 -7
  319. package/dist/core/storage/session/released-history-files.code.js +465 -0
  320. package/dist/core/storage/session/released-history-files.code.js.map +1 -0
  321. package/dist/core/storage/session/released-history-files.impl.js +32 -461
  322. package/dist/core/storage/session/released-history-files.impl.js.map +1 -1
  323. package/dist/core/storage/session/released-history-files.js +11 -7
  324. package/dist/core/storage/session/resident-fork-rows.code.js +57 -0
  325. package/dist/core/storage/session/resident-fork-rows.code.js.map +1 -0
  326. package/dist/core/storage/session/resident-fork-rows.impl.js +32 -53
  327. package/dist/core/storage/session/resident-fork-rows.impl.js.map +1 -1
  328. package/dist/core/storage/session/resident-fork-rows.js +11 -7
  329. package/dist/core/storage/session/session-resume.code.js +3 -0
  330. package/dist/core/storage/session/session-resume.code.js.map +1 -0
  331. package/dist/core/storage/session/session-resume.impl.js +35 -2
  332. package/dist/core/storage/session/session-resume.js +11 -7
  333. package/dist/core/storage/session/snapshot-cut.code.js +3 -0
  334. package/dist/core/storage/session/snapshot-cut.code.js.map +1 -0
  335. package/dist/core/storage/session/snapshot-cut.impl.js +35 -2
  336. package/dist/core/storage/session/snapshot-cut.js +11 -7
  337. package/dist/core/storage/session/snapshot-history.code.js +107 -0
  338. package/dist/core/storage/session/snapshot-history.code.js.map +1 -0
  339. package/dist/core/storage/session/snapshot-history.impl.js +34 -60
  340. package/dist/core/storage/session/snapshot-history.impl.js.map +1 -1
  341. package/dist/core/storage/session/snapshot-history.js +11 -7
  342. package/dist/core/storage/session/sql-session-store.code.js +3 -0
  343. package/dist/core/storage/session/sql-session-store.code.js.map +1 -0
  344. package/dist/core/storage/session/sql-session-store.impl.js +35 -2
  345. package/dist/core/storage/session/sql-session-store.js +11 -7
  346. package/dist/core/storage/session/tree-outline.code.js +3 -0
  347. package/dist/core/storage/session/tree-outline.code.js.map +1 -0
  348. package/dist/core/storage/session/tree-outline.impl.js +35 -2
  349. package/dist/core/storage/session/tree-outline.js +11 -7
  350. package/dist/core/storage/session/tree-presentation.code.js +342 -0
  351. package/dist/core/storage/session/tree-presentation.code.js.map +1 -0
  352. package/dist/core/storage/session/tree-presentation.impl.js +31 -337
  353. package/dist/core/storage/session/tree-presentation.impl.js.map +1 -1
  354. package/dist/core/storage/session/tree-presentation.js +11 -7
  355. package/dist/core/storage/session/types.d.ts +26 -0
  356. package/dist/core/storage/storage-status.code.js +3 -0
  357. package/dist/core/storage/storage-status.code.js.map +1 -0
  358. package/dist/core/storage/storage-status.impl.js +35 -2
  359. package/dist/core/storage/storage-status.js +11 -7
  360. package/dist/core/storage/team.code.js +3 -0
  361. package/dist/core/storage/team.code.js.map +1 -0
  362. package/dist/core/storage/team.impl.js +35 -2
  363. package/dist/core/storage/team.js +11 -7
  364. package/dist/core/structured-output/index.code.js +3 -0
  365. package/dist/core/structured-output/index.code.js.map +1 -0
  366. package/dist/core/structured-output/index.impl.js +35 -2
  367. package/dist/core/structured-output/index.js +11 -7
  368. package/dist/core/tasks/command-output.d.ts +4 -1
  369. package/dist/core/tasks/supervisor.d.ts +2 -0
  370. package/dist/core/tasks/task-completion-entry.code.js +254 -0
  371. package/dist/core/tasks/task-completion-entry.code.js.map +1 -0
  372. package/dist/core/tasks/task-completion-entry.impl.js +33 -251
  373. package/dist/core/tasks/task-completion-entry.impl.js.map +1 -1
  374. package/dist/core/tasks/task-completion-entry.js +11 -7
  375. package/dist/core/tasks/task-file-history.code.js +424 -0
  376. package/dist/core/tasks/task-file-history.code.js.map +1 -0
  377. package/dist/core/tasks/task-file-history.impl.js +32 -375
  378. package/dist/core/tasks/task-file-history.impl.js.map +1 -1
  379. package/dist/core/tasks/task-file-history.js +11 -7
  380. package/dist/core/tasks/{task-reference-archive.impl.js → task-reference-archive.code.js} +51 -6
  381. package/dist/core/tasks/{task-reference-archive.impl.js.map → task-reference-archive.code.js.map} +1 -1
  382. package/dist/core/tasks/task-reference-archive.js +11 -7
  383. package/dist/core/tasks/{task-reference-identity.impl.js → task-reference-identity.code.js} +1 -1
  384. package/dist/core/tasks/{task-reference-identity.impl.js.map → task-reference-identity.code.js.map} +1 -1
  385. package/dist/core/tasks/task-reference-identity.js +11 -7
  386. package/dist/core/tasks/task-reference-stream.code.js +3 -0
  387. package/dist/core/tasks/task-reference-stream.code.js.map +1 -0
  388. package/dist/core/tasks/task-reference-stream.impl.js +35 -2
  389. package/dist/core/tasks/task-reference-stream.js +11 -7
  390. package/dist/core/tasks/task-unsaved-answer.code.js +3 -0
  391. package/dist/core/tasks/task-unsaved-answer.code.js.map +1 -0
  392. package/dist/core/tasks/task-unsaved-answer.impl.js +35 -2
  393. package/dist/core/tasks/task-unsaved-answer.js +11 -7
  394. package/dist/core/tasks/task-view-source.code.js +3 -0
  395. package/dist/core/tasks/task-view-source.code.js.map +1 -0
  396. package/dist/core/tasks/task-view-source.d.ts +9 -0
  397. package/dist/core/tasks/task-view-source.impl.js +35 -2
  398. package/dist/core/tasks/task-view-source.js +12 -8
  399. package/dist/core/tools/read-url.code.js +1530 -0
  400. package/dist/core/tools/read-url.code.js.map +1 -0
  401. package/dist/core/tools/read-url.impl.js +30 -1524
  402. package/dist/core/tools/read-url.impl.js.map +1 -1
  403. package/dist/core/tools/read-url.js +11 -7
  404. package/dist/core/worktree-snapshot/blob-store.js +50 -5
  405. package/dist/core/worktree-snapshot/errors.code.js +6 -0
  406. package/dist/core/worktree-snapshot/errors.code.js.map +1 -0
  407. package/dist/core/worktree-snapshot/errors.impl.js +35 -5
  408. package/dist/core/worktree-snapshot/errors.js +11 -7
  409. package/dist/core/worktree-snapshot/session-index-reset.code.js +136 -0
  410. package/dist/core/worktree-snapshot/session-index-reset.code.js.map +1 -0
  411. package/dist/core/worktree-snapshot/session-index-reset.impl.js +34 -134
  412. package/dist/core/worktree-snapshot/session-index-reset.impl.js.map +1 -1
  413. package/dist/core/worktree-snapshot/session-index-reset.js +11 -7
  414. package/dist/extensions/codemode/execute.code.js +618 -0
  415. package/dist/extensions/codemode/execute.code.js.map +1 -0
  416. package/dist/extensions/codemode/execute.impl.js +30 -612
  417. package/dist/extensions/codemode/execute.impl.js.map +1 -1
  418. package/dist/extensions/codemode/execute.js +11 -7
  419. package/dist/extensions/codemode/renderer.code.js +110 -0
  420. package/dist/extensions/codemode/renderer.code.js.map +1 -0
  421. package/dist/extensions/codemode/renderer.impl.js +33 -107
  422. package/dist/extensions/codemode/renderer.impl.js.map +1 -1
  423. package/dist/extensions/codemode/renderer.js +11 -7
  424. package/dist/extensions/mcp/cli.code.js +565 -0
  425. package/dist/extensions/mcp/cli.code.js.map +1 -0
  426. package/dist/extensions/mcp/cli.impl.js +32 -561
  427. package/dist/extensions/mcp/cli.impl.js.map +1 -1
  428. package/dist/extensions/mcp/cli.js +11 -7
  429. package/dist/extensions/mcp/cli.lazy.code.js +52 -0
  430. package/dist/extensions/mcp/cli.lazy.code.js.map +1 -0
  431. package/dist/extensions/mcp/cli.lazy.impl.js +36 -7
  432. package/dist/extensions/mcp/cli.lazy.impl.js.map +1 -1
  433. package/dist/extensions/mcp/cli.lazy.js +11 -7
  434. package/dist/extensions/mcp/client/transports/stdio.d.ts +2 -0
  435. package/dist/extensions/mcp/runtime.code.js +5 -0
  436. package/dist/extensions/mcp/runtime.code.js.map +1 -0
  437. package/dist/extensions/mcp/runtime.impl.js +35 -4
  438. package/dist/extensions/mcp/runtime.js +11 -7
  439. package/dist/index.d.ts +1 -1
  440. package/dist/index.js +8 -8
  441. package/dist/main-first-time-setup.code.js +12 -0
  442. package/dist/main-first-time-setup.code.js.map +1 -0
  443. package/dist/main-first-time-setup.impl.js +35 -11
  444. package/dist/main-first-time-setup.impl.js.map +1 -1
  445. package/dist/main-first-time-setup.js +11 -7
  446. package/dist/main.d.ts +1 -1
  447. package/dist/main.js +2 -2
  448. package/dist/modes/interactive/agent-view/agent-view-switcher.d.ts +6 -1
  449. package/dist/modes/interactive/agent-view/contracts.d.ts +4 -0
  450. package/dist/modes/interactive/chat-reader-records.d.ts +1 -1
  451. package/dist/modes/interactive/components/stored-tree-view.code.js +338 -0
  452. package/dist/modes/interactive/components/stored-tree-view.code.js.map +1 -0
  453. package/dist/modes/interactive/components/stored-tree-view.impl.js +33 -290
  454. package/dist/modes/interactive/components/stored-tree-view.impl.js.map +1 -1
  455. package/dist/modes/interactive/components/stored-tree-view.js +11 -7
  456. package/dist/modes/interactive/components/task-selection-state.d.ts +8 -3
  457. package/dist/modes/interactive/components/task-transcript-page.d.ts +1 -0
  458. package/dist/modes/interactive/components/user-message-selector-archive.code.js +191 -0
  459. package/dist/modes/interactive/components/user-message-selector-archive.code.js.map +1 -0
  460. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +34 -189
  461. package/dist/modes/interactive/components/user-message-selector-archive.impl.js.map +1 -1
  462. package/dist/modes/interactive/components/user-message-selector-archive.js +11 -7
  463. package/dist/modes/interactive/interactive-mode-base.d.ts +6 -0
  464. package/dist/modes/interactive/interactive-mode.js +1 -1
  465. package/dist/modes/interactive/interactive-queueing.d.ts +4 -0
  466. package/dist/modes/interactive/interactive-render-chat.d.ts +22 -0
  467. package/dist/modes/interactive/interactive-startup.d.ts +2 -0
  468. package/dist/modes/interactive/program-status-reporter.d.ts +2 -1
  469. package/dist/modes/interactive/startup-shell-eligibility.js +1 -1
  470. package/dist/modes/interactive/steering-queue-controller.d.ts +4 -0
  471. package/dist/modes/interactive/theme/theme-schema-factory.d.ts +26 -0
  472. package/dist/modes/interactive/theme/theme-schema.d.ts +4 -5
  473. package/dist/modes/interactive-engine/engine-prewarm.d.ts +30 -5
  474. package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
  475. package/dist/modes/interactive-engine/isolated-runtime.d.ts +7 -0
  476. package/dist/modes/interactive-engine/protocol.d.ts +32 -1
  477. package/dist/modes/rpc/agent-view-rpc-types.d.ts +12 -1
  478. package/dist/modes/rpc/agent-view-rpc-types.js.map +1 -1
  479. package/dist/modes/rpc/rpc-client-api.d.ts +3 -1
  480. package/dist/modes/rpc/rpc-types.d.ts +12 -0
  481. package/dist/package-manager-cli.code.js +1140 -0
  482. package/dist/package-manager-cli.code.js.map +1 -0
  483. package/dist/package-manager-cli.impl.js +36 -1067
  484. package/dist/package-manager-cli.impl.js.map +1 -1
  485. package/dist/package-manager-cli.js +11 -7
  486. package/dist/rpc-entry.js +2 -2
  487. package/dist/startup-files.json +1 -1
  488. package/dist/startup-stages/10.js +1 -1
  489. package/dist/startup-stages/11.js +1 -1
  490. package/dist/startup-stages/12.js +1 -1
  491. package/dist/startup-stages/13.js +1 -0
  492. package/dist/startup-stages/2.js +1 -7
  493. package/dist/startup-stages/3.js +6 -2
  494. package/dist/startup-stages/4.js +2 -1
  495. package/dist/startup-stages/5.js +1 -7
  496. package/dist/startup-stages/6.js +7 -10
  497. package/dist/startup-stages/7.js +10 -3
  498. package/dist/startup-stages/8.js +3 -6
  499. package/dist/startup-stages/9.js +6 -1
  500. package/dist/startup-stages/stages.json +1 -1
  501. package/dist/utils/canonical-path.js +2 -0
  502. package/dist/utils/canonical-path.js.map +1 -1
  503. package/dist/utils/child-process.d.ts +41 -1
  504. package/dist/utils/compile-cache-warmup-host.js +63 -18
  505. package/dist/utils/compile-cache-warmup-host.js.map +1 -1
  506. package/dist/utils/credential-redaction.d.ts +50 -1
  507. package/dist/utils/interactive-engine-bootstrap.d.ts +2 -0
  508. package/dist/utils/interactive-engine-env.d.ts +2 -0
  509. package/dist/utils/memoize-async.d.ts +32 -0
  510. package/dist/utils/memoize-async.js +91 -0
  511. package/dist/utils/memoize-async.js.map +1 -0
  512. package/dist/utils/photon.js +19 -29
  513. package/dist/utils/photon.js.map +1 -1
  514. package/dist/utils/shell.d.ts +7 -4
  515. package/dist/utils/startup-database-spare.code.js +108 -0
  516. package/dist/utils/startup-database-spare.code.js.map +1 -0
  517. package/dist/utils/startup-database-spare.impl.js +33 -105
  518. package/dist/utils/startup-database-spare.impl.js.map +1 -1
  519. package/dist/utils/startup-database-spare.js +11 -7
  520. package/dist/utils/tools-manager.code.js +3 -0
  521. package/dist/utils/tools-manager.code.js.map +1 -0
  522. package/dist/utils/tools-manager.impl.js +35 -2
  523. package/dist/utils/tools-manager.js +11 -7
  524. package/dist/utils/windows-cwd.js +585 -0
  525. package/dist/utils/windows-cwd.js.map +1 -0
  526. package/docs/extensions.md +1 -1
  527. package/docs/getting-started/installation.md +2 -0
  528. package/docs/intercom/operations.md +1 -0
  529. package/docs/reference/cli.md +1 -1
  530. package/package.json +24 -24
  531. package/dist/_shared/mode-shared-HP7GUA7J.js.map +0 -1
  532. package/dist/_shared/p1a-prewarm-YK3KDTLN.js.map +0 -1
  533. package/dist/_shared/p1b-elig-PXQA2FYP.js.map +0 -1
  534. package/dist/_shared/startup-0-0-X4NF3GKM.js.map +0 -1
  535. package/dist/_shared/startup-0-1-7QTG6VJZ.js.map +0 -1
  536. package/dist/_shared/startup-0-2-KFDYPDJK.js.map +0 -1
  537. package/dist/_shared/startup-8-1-KQJBDKRU.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,50 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.5-alpha.1] - 2026-11-23
6
+
7
+ ### Breaking Changes
8
+
9
+ - `@bastani/atomic` no longer declares or installs 13 third-party packages whose code is already bundled into Atomic's own files: `brace-expansion`, `cross-spawn`, `diff`, `fast-sha256`, `hosted-git-info`, `ignore`, `lovely-mermaid`, `lru-cache`, `minimatch`, `semver`, `stream-json`, `turndown`, and `yaml`. Any SDK application or extension that imports one of these packages directly must add it to its own `package.json` `dependencies`. A session running on an earlier Atomic release while an in-place update replaces the installation may need to restart for features whose older code loads one of those removed packages on demand. Removing these dependencies cuts a global npm install by about 1,940 files and 10.8 MiB (17 fewer installed packages) ([#6440](https://github.com/bastani-inc/atomic/pull/6440)).
10
+
11
+ ### Changed
12
+
13
+ - `SessionResume` now carries optional per-axis `retainedSettings` provenance (`"held"`, `"none"`, or `"not-held"`) for the active branch's latest model and thinking-level changes, allowing partial-history sessions to distinguish confirmed absence from unretained pre-window settings without additional store reads (while keeping `SessionManager.getLatestBranchSettings` and custom stores omitting `retainedSettings` compatible with 0.10.4) ([#6454](https://github.com/bastani-inc/atomic/pull/6454)).
14
+ - Interactive sessions reach the editor and first model request faster on warm starts: early theme and settings defaults no longer load TypeBox or `@bastani/atomic-ai` before the editor paints (falling back lazily to the full TypeBox validator for any invalid theme), prewarmed engines preload RPC mode and the native addon while waiting for adoption, and skill discovery avoids unnecessary ignore-file reads, batches shared parent-directory path resolution, and parses safe YAML frontmatter linearly ([#6455](https://github.com/bastani-inc/atomic/pull/6455)).
15
+
16
+ ### Fixed
17
+
18
+ - A session that started on 0.10.4 and keeps running after an in-place update (`npm install -g`, `bun add -g`) now says `atomic was updated to <version> while this session was running; restart it to keep using <feature>.` when the update's code for a feature it loads on demand cannot load into it, instead of failing with the runtime's error. A session that starts on this release or later says so by itself for every later update, whatever that release changes; features whose updated code loads keep working as before ([#6438](https://github.com/bastani-inc/atomic/pull/6438)).
19
+ - In the standalone binary and under Bun, Amazon Bedrock requests whose proxy or HTTP/1.1 TLS connection closes before its handshake finishes — including plain-HTTP Bedrock endpoints through an `https://` proxy — now retry at the provider SDK level (`retry.provider.maxRetries`) and recover from transient closes as on Node.js instead of failing on the first attempt ([#6448](https://github.com/bastani-inc/atomic/pull/6448)).
20
+ - On Node.js, requests through an `https://` proxy now handle TLS SNI consistently across hostnames and IP addresses: plain-HTTP Amazon Bedrock endpoints send SNI for hostname `https://` proxies (fixing virtual-hosted and SNI-requiring proxies), and the global HTTP dispatcher omits IP-literal `servername` values for IPv4 and IPv6 `https://` proxies (fixing IPv6 `https://[::1]` proxy certificate verification and removing RFC 6066 IP-SNI deprecation warnings while preserving IP SAN checks and explicit non-IP `servername` overrides) ([#6458](https://github.com/bastani-inc/atomic/pull/6458)).
21
+ - Skip redundant filesystem canonicalization when matching identical project paths in `history://` and session listings, and bound cross-path `history://` authorization checks to the call's time budget and abort signal so slow filesystem lookups cannot silently truncate requested slices or hang past cancellation ([#5250](https://github.com/bastani-inc/atomic/issues/5250), [#6462](https://github.com/bastani-inc/atomic/pull/6462)).
22
+ - Fixed echoed user messages in the main chat crossing or disappearing when an extension's `input` hook or a slash template rewrites one submission to the same text as another submission already echoed on screen. Each prompt submission now matches its own echoed row directly, while older interactive engines and hosts continue falling back to text matching ([#6452](https://github.com/bastani-inc/atomic/pull/6452)).
23
+ - On Windows, stopping workspace `git`/`gh` commands, snapshot Git fallbacks, hung isolated interactive engines, tracked detached processes, and interrupted blueprint build steps now uses Windows Job objects (with `JOB_OBJECT_LIMIT_BREAKAWAY_OK` for workspace commands so explicit breakaway helpers and Git's `fsmonitor` daemon continue to work) and handle-verified native tree termination rather than bare-PID `taskkill /T`, so orphaned grandchildren end before workspace calls fail and unrelated processes given a reused process ID are never terminated. `taskkill` is used only as a fallback when the native module is unavailable and the child handle is still live ([#6445](https://github.com/bastani-inc/atomic/pull/6445)).
24
+ - Moving or copying a custom agent directory and its adopted parent store on filesystems that reuse freed inodes (such as ext4) no longer lets a sibling or recreated directory hijack parent or relative-target ownership when its new `.atomic-storage-home` file receives a deleted owner's inode. Owner resolution now resolves to the eligible directory carrying the recorded decision ID when an inode-matched candidate has a conflicting on-disk decision ID ([#5242](https://github.com/bastani-inc/atomic/issues/5242), [#6432](https://github.com/bastani-inc/atomic/pull/6432)).
25
+ - Deliberate `/quit` no longer exits with status `129` when the terminal closes after the session finishes shutting down; it skips terminal writes once stopped, prints the resume hint when standard output is still usable, treats dead-output writes as no-ops, and exits `0` ([#6446](https://github.com/bastani-inc/atomic/pull/6446)).
26
+ - MCP credential redaction now shares the core ANSI stripping, HTTP `Basic` credential detection, and `[redacted]` range-application helpers with `redactCredentialShapes` while keeping all MCP OAuth, URL, header, and stdio patterns. This also preserves `[redacted]` markers when a pre-masked secret appears inside a `Bearer` token or query parameter ([#6441](https://github.com/bastani-inc/atomic/pull/6441)).
27
+ - On Windows, MCP server shutdown, process-tree kill commands including `taskkill.exe`, and Intercom's host-identity and broker-stop commands now validate their working directory through canonical path resolution and explicit drive-root handling. They resolve junctions, symlinks, short names, `subst` drives, and extended-length path aliases such as `\\?\`, `\\.\`, and `\\?\UNC\` when checking whether a directory is inside the project folder; prefer verified directories shorter than 248 characters outside the project so spawns succeed without `ENOENT` on default `LongPathsEnabled=0` Windows hosts; reject raw volume devices and incomplete UNC roots; fall back to the working directory's drive root when needed; and prefer `SystemRoot` when running from a genuine drive root. `taskkill.exe` and Intercom helper commands never run inside the project folder or fail with `ENOENT` even when `SystemRoot`, `windir`, or `TMP` points to a junction, `subst` drive, long path, extended-length alias, bare drive, or directory inside the project ([#6447](https://github.com/bastani-inc/atomic/pull/6447), [#6483](https://github.com/bastani-inc/atomic/pull/6483)).
28
+ - Fixed `/tasks` on the isolated host so cancelling or failing a subagent open with `Esc` never leaves a speculative agent-panel preview painted or lands the next `/tasks` on the cancelled subagent, while staying compatible with older hosts and engines across in-place updates ([#6449](https://github.com/bastani-inc/atomic/pull/6449)).
29
+ - Inside a Herdr pane, a session status update that arrives just as the previous Herdr report finishes is now sent right away instead of leaving Herdr showing the older status until the next activity event ([#6463](https://github.com/bastani-inc/atomic/pull/6463)).
30
+ - Restored interrupted running subagents in `/tasks` and the agent panel automatically after an isolated-engine crash without showing user-facing resume prompts or replaying interrupted deliveries ([#6457](https://github.com/bastani-inc/atomic/pull/6457)).
31
+ - Restored a lost subagent chat's known-unsaved queued messages into that child chat's own editor ahead of any draft (immediately if open and writable, or on first writable reopen in the same session, with a main-chat notice while closed and fallback to the full-text notice when read-only or from an older engine) ([#6461](https://github.com/bastani-inc/atomic/pull/6461)).
32
+ - Editing the `debug` or `httpProxy` global setting in `settings.json` while Atomic is starting no longer discards a same-build prewarmed interactive engine and starts a second one: the updated setting values are reconciled over the engine adoption handshake before the engine configures HTTP or starts its session ([#6453](https://github.com/bastani-inc/atomic/pull/6453)).
33
+ - Blueprint build locks on Windows now read fresh process start times when recording newly started steps and build holders without the native module, retry transient fallback start-time lookups and concurrent Windows lock-file read/rename refusals while a build runs or settles, and check process liveness before querying fallback start times so reused PIDs never record a stale start and dead builds settle promptly ([#6472](https://github.com/bastani-inc/atomic/pull/6472)).
34
+ - Fixed the Windows installer (`install.ps1`) failing with "Access to the path ... is denied" when reinstalling, repairing, or rolling back a version whose directory, launcher shim, staged copy, or backup was briefly locked by antivirus scanning, the search indexer, or a just-exited `atomic` process. All transaction, rollback, and leftover-recovery renames now use atomic same-directory `Rename-Item` with a bounded retry up to ~9.5 seconds (which also prevents PowerShell 7's `Move-Item` from splitting a locked version directory across the live and backup paths), and rollback/staged-tree removals now retry transient I/O and access violations within a shared bounded budget so a brief lock cannot leave a half-removed version or stage directory behind ([#6474](https://github.com/bastani-inc/atomic/pull/6474)).
35
+ - Standalone release binaries now embed the verified prewarm build stamp before bundling plain and bytecode app sidecars, so startup `debug`/`httpProxy` edits reconcile over the prewarmed engine handshake in standalone binaries as well as npm installations ([#6478](https://github.com/bastani-inc/atomic/pull/6478)).
36
+ - Standalone SDK scripts that await `session.abort()`, `session.interruptTurn()`, `session.pauseTurn()`, `session.prompt()`, `session.resumeDetachedTurn()`, or bounded storage/RPC teardown timeouts against a stalled operation (including when an abort is triggered after `session.prompt()` is already awaited) no longer exit prematurely (exit code `13` on Node.js or skipped post-await continuation under Bun) when no other event-loop handle is open; idle, settled, disposed, and unawaited sessions still let the process exit immediately ([#6473](https://github.com/bastani-inc/atomic/pull/6473), [#6480](https://github.com/bastani-inc/atomic/pull/6480)).
37
+ - Fixed slow cold-start first prompts in the in-process interactive host on Windows by deferring background syntax-highlighter grammar loading (and cold compile-cache warmup) until deferred startup and the first prompt's request dispatch settle (with a hard deferral cap armed only once the first provider request dispatches or streaming begins), loading non-eager grammars in small non-blocking slices instead of a single blocking pass, and overlapping the active model's provider API load with deferred startup on early prompts ([#6444](https://github.com/bastani-inc/atomic/pull/6444)).
38
+ - On Windows, forced MCP stdio server shutdown and parent-process guardian cleanup now use breakaway-allowing Job objects and handle/creation-time-verified native termination instead of bare-PID `taskkill /T`, so orphaned MCP grandchildren end on forced close while detached helpers still survive a cooperative close, explicit breakaway helpers continue to work, and unrelated processes given a reused PID are never terminated (including across asynchronous safe-cwd retries and when the native module is unavailable) ([#6477](https://github.com/bastani-inc/atomic/pull/6477)).
39
+ - Shell and subprocess commands whose detached descendants write output just after the main process exits no longer lose buffered stdout or stderr output when the host event loop is briefly stalled past the post-exit idle grace or active-drain cap ([#6490](https://github.com/bastani-inc/atomic/pull/6490)).
40
+ - Fixed a Windows child-process wait race where a failed command could be reported as successful (exit code `0`) on a busy machine when Node's `exit` event arrived more than one second after the process ended: `waitForChildProcess` now reads the real exit code from a creation-time-verified Windows process handle held since spawn (`GetExitCodeProcess`), keeps waiting for libuv's real `exit` event (bounded by the caller's own timeout or abort) without the native module, and reports an explicit unknown exit status failure instead of guessing `0` whenever the exit code cannot be read ([#6484](https://github.com/bastani-inc/atomic/pull/6484)).
41
+ - Background shell commands that terminate without an exit code (such as Unix signal-killed background commands or commands whose exit status cannot be read) now report a failed outcome with an unknown exit status across `/tasks`, the agent panel, completion cards, and notices instead of reporting success ([#6489](https://github.com/bastani-inc/atomic/pull/6489)).
42
+ - Fixed pressing `Esc` immediately after `Enter` in `/tasks` on the isolated host (including Kitty keyboard protocol `Esc` and high-latency IPC turns where `Esc` arrives before `engine_view_agent` returns) so the pending subagent open is cancelled immediately on arrival without opening the subagent, staging a speculative agent-panel preview, or leaving a stale `/tasks` selection anchor, while excluding the triggering input by identity (so arbitrary overlapping keybindings never self-cancel), acknowledging navigation clicks so non-opening clicks never arm cancels, and preserving `Esc`-before-`Enter` (closing peek/filter) and unrelated stacked dialogs ([#6491](https://github.com/bastani-inc/atomic/pull/6491)).
43
+ - Fixed subagents silently returning `"done"` without running their model when `NODE_ENV=test` or `NODE_TEST_CONTEXT` is set in the user's shell or host environment; in-process subagent sessions now always run real model turns unless explicitly configured with `testSession` ([#6494](https://github.com/bastani-inc/atomic/pull/6494)).
44
+ - Eliminated interactive host UI stalls when resuming and paging through large transcripts: fullscreen resume now yields a timer turn between session binding and initial transcript rendering, plans only the visible tail synchronously (populating recent prompt history in bounded time and deferring older history planning and chat-record indexing into non-blocking event-loop slices with safe fallback for cross-turn tool results or aborted turns), skips eager chat-record anchor scans when no records are cached, avoids materializing the full model catalog during compaction-model migration when no custom compaction model is configured, computes context usage directly on plain branches without allocating a full session projection, loads eager `highlight.js` grammars individually on demand instead of loading all 20 modules during the first code-block render, and skips redundant Markdown lexing in the Mermaid transformer when a message contains no Mermaid code fence ([#6495](https://github.com/bastani-inc/atomic/pull/6495)).
45
+ - Memoized on-demand module loaders across Atomic (including extension loading via `jiti`, installed builtin native-load discovery, document conversion, image processing, task completion entry projection, debug output, and the standalone Intercom broker's host-module bridge) no longer keep rejected promises or transient missing-file results cached after a failure such as an in-place update's directory swap, so subsequent operations in a running session recover once files are back on disk while genuinely incompatible updates still report the restart message ([#6499](https://github.com/bastani-inc/atomic/pull/6499)).
46
+ - Deferred syntax-highlighting grammar loading (`loadAllHighlightLanguages()`) no longer permanently marks all languages as loaded or skips failing grammars after a transient load error (such as during an in-place package update), so subsequent calls cleanly retry and register remaining languages ([#6504](https://github.com/bastani-inc/atomic/pull/6504)).
47
+ - On Windows, Atomic background processes — the detached Intercom broker and its relay, compile-cache warmup helpers, and the startup-prefetch reader — now start in a short (< 248-char) working directory outside the Atomic installation directory, the caller's project directory, and the agent directory (resolving junctions and `subst` drives), so `npm install -g @bastani/atomic`, `npm uninstall -g`, and release-archive reinstalls no longer fail with `EBUSY` while sessions and the broker are running. `atomic update` on Windows also stops an idle Intercom broker (0 connected sessions) before running `npm install -g` without interrupting connected sessions, and prints recovery instructions if npm reports an `EBUSY`/`EPERM` install-directory lock from an earlier release ([#6500](https://github.com/bastani-inc/atomic/pull/6500)).
48
+
5
49
  ## [0.10.4] - 2026-11-22
6
50
 
7
51
  Atomic reaches your first prompt sooner, installs less, keeps subagent sessions in your store, and protects your workspace and credentials.
@@ -1,3 +1,3 @@
1
1
  import "./rolldown-runtime-BGM3D5V3.js";
2
- export { compileCacheHelperLaunch, compileCacheWarmupRuntimes, decodeCompileCacheWarmupPlan, encodeCompileCacheWarmupPlan, startCompileCacheHelper, warmCompileCache } from "./p0-cli-GUFK7TPN.js";
2
+ export { compileCacheHelperLaunch, compileCacheWarmupRuntimes, decodeCompileCacheWarmupPlan, encodeCompileCacheWarmupPlan, startCompileCacheHelper, warmCompileCache } from "./p0-cli-BB45ZQY6.js";
3
3
  //# sourceMappingURL=compile-cache-warmup-host-RU5L7I7A.js.map
@@ -26,7 +26,7 @@ var AudioConverter = class {
26
26
  async convert(input, streamInfo, options) {
27
27
  const sections = [];
28
28
  try {
29
- const { common, format } = await (await import("./lib-4PES5P4V.js")).parseBuffer(new Uint8Array(input), {
29
+ const { common, format } = await (await import("./lib-4PES5P4V.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).parseBuffer(new Uint8Array(input), {
30
30
  mimeType: streamInfo.mimetype,
31
31
  size: input.length
32
32
  });
@@ -28443,7 +28443,7 @@ var ImageConverter = class {
28443
28443
  async convert(input, streamInfo, options) {
28444
28444
  const sections = [];
28445
28445
  try {
28446
- const metadata = await (await import("./full.umd-CBF7UGXV.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).parse(input, { pick: [
28446
+ const metadata = await (await import("./full.umd-CBF7UGXV.js").catch((error) => __atomicOnDemandFailed(error, "this feature")).then((m) => /* @__PURE__ */ __toESM(m.default, 1))).parse(input, { pick: [
28447
28447
  "ImageWidth",
28448
28448
  "ImageHeight",
28449
28449
  "Make",
@@ -31843,4 +31843,49 @@ function createLlmFunctions(config, prompt) {
31843
31843
  }
31844
31844
  export { AudioConverter, CsvConverter, DocxConverter, EpubConverter, GitHubConverter, HtmlConverter, IWorkConverter, ImageConverter, IpynbConverter, JsonConverter, Markit, PdfConverter, PlainTextConverter, PptxConverter, RssConverter, WikipediaConverter, XlsxConverter, XmlConverter, YamlConverter, ZipConverter, anthropic, createLlmFunctions, createPluginAPI, getProvider, installPlugin, listInstalled, listProviders, loadAllPlugins, loadPluginFromPath, openai, registerProvider, removePlugin, resolvePluginExport };
31845
31845
 
31846
- //# sourceMappingURL=dist-KOELCESV.js.map
31846
+ //# sourceMappingURL=dist-KOELCESV.js.map
31847
+ // __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
31848
+ // demand that fails in a process an in-place update left running says to restart.
31849
+ function __atomicOnDemandFailed(error, feature) {
31850
+ return (async () => {
31851
+ const root = new URL("../", import.meta.url);
31852
+ const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
31853
+ const key = `${root.href}#0.10.5-alpha.1`;
31854
+ let release = releases.get(key);
31855
+ if (release === undefined) {
31856
+ const current = (async () => {
31857
+ for (const path of ["modes/interactive/interactive-mode-deps.js","_shared/chunk-CDOYTDYM.js","_shared/p0-cli-GUFK7TPN.js"]) {
31858
+ try {
31859
+ const held = await import(new URL(path, root).href);
31860
+ if (typeof held.VERSION === "string") return { version: held.VERSION, name: held.APP_NAME };
31861
+ } catch {
31862
+ // Not a file this process can load: the next.
31863
+ }
31864
+ }
31865
+ return undefined;
31866
+ })().then((found) => {
31867
+ if (found === undefined && releases.get(key) === current) releases.delete(key);
31868
+ return found;
31869
+ });
31870
+ releases.set(key, current);
31871
+ release = current;
31872
+ }
31873
+ const running = await release;
31874
+ let installed;
31875
+ try {
31876
+ const { readFile } = process.getBuiltinModule("node:fs/promises");
31877
+ installed = JSON.parse(await readFile(new URL("../package.json", root), "utf8")).version;
31878
+ } catch {
31879
+ // No installation to read, as in a bundle of the package: the release the process runs decides.
31880
+ }
31881
+ const updatedTo = typeof installed === "string" && installed !== "0.10.5-alpha.1" ? installed : running !== undefined && running.version !== "0.10.5-alpha.1" ? "0.10.5-alpha.1" : undefined;
31882
+ if (updatedTo === undefined) throw error;
31883
+ const application = typeof running?.name === "string" ? running.name : "atomic";
31884
+ const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
31885
+ cause: error,
31886
+ });
31887
+ restart.name = "UpdatedInstallError";
31888
+ restart[Symbol.for("atomic.on-demand-restart.v1")] = { application, updatedTo, feature };
31889
+ throw restart;
31890
+ })();
31891
+ }
@@ -27,10 +27,55 @@ function forkIdHash(id) {
27
27
  async function findForkRow(id, hashes, chunks) {
28
28
  const hash = forkIdHash(id);
29
29
  for (let i = hashes.length - 1; i >= 0; i--) if (hashes[i] === hash) {
30
- const { chunkedEntryHasId } = await import("../core/storage/session/chunked-resume-projection.impl.js");
30
+ const { chunkedEntryHasId } = await import("../core/storage/session/chunked-resume-projection.code.js").catch((error) => __atomicOnDemandFailed(error, "session storage"));
31
31
  if (await chunkedEntryHasId(chunks(i + 1), id)) return i + 1;
32
32
  }
33
33
  }
34
34
  export { findForkRow, foldForkRow, forkIdHash };
35
35
 
36
- //# sourceMappingURL=fork-row-index-UAUAQRD5.js.map
36
+ //# sourceMappingURL=fork-row-index-UAUAQRD5.js.map
37
+ // __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
38
+ // demand that fails in a process an in-place update left running says to restart.
39
+ function __atomicOnDemandFailed(error, feature) {
40
+ return (async () => {
41
+ const root = new URL("../", import.meta.url);
42
+ const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
43
+ const key = `${root.href}#0.10.5-alpha.1`;
44
+ let release = releases.get(key);
45
+ if (release === undefined) {
46
+ const current = (async () => {
47
+ for (const path of ["modes/interactive/interactive-mode-deps.js","_shared/chunk-CDOYTDYM.js","_shared/p0-cli-GUFK7TPN.js"]) {
48
+ try {
49
+ const held = await import(new URL(path, root).href);
50
+ if (typeof held.VERSION === "string") return { version: held.VERSION, name: held.APP_NAME };
51
+ } catch {
52
+ // Not a file this process can load: the next.
53
+ }
54
+ }
55
+ return undefined;
56
+ })().then((found) => {
57
+ if (found === undefined && releases.get(key) === current) releases.delete(key);
58
+ return found;
59
+ });
60
+ releases.set(key, current);
61
+ release = current;
62
+ }
63
+ const running = await release;
64
+ let installed;
65
+ try {
66
+ const { readFile } = process.getBuiltinModule("node:fs/promises");
67
+ installed = JSON.parse(await readFile(new URL("../package.json", root), "utf8")).version;
68
+ } catch {
69
+ // No installation to read, as in a bundle of the package: the release the process runs decides.
70
+ }
71
+ const updatedTo = typeof installed === "string" && installed !== "0.10.5-alpha.1" ? installed : running !== undefined && running.version !== "0.10.5-alpha.1" ? "0.10.5-alpha.1" : undefined;
72
+ if (updatedTo === undefined) throw error;
73
+ const application = typeof running?.name === "string" ? running.name : "atomic";
74
+ const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
75
+ cause: error,
76
+ });
77
+ restart.name = "UpdatedInstallError";
78
+ restart[Symbol.for("atomic.on-demand-restart.v1")] = { application, updatedTo, feature };
79
+ throw restart;
80
+ })();
81
+ }
@@ -2,6 +2,7 @@ import { __name, __toESM } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
3
3
  import { require_undici } from "./http-undici-FVPTZA4G.js";
4
4
  import { EventEmitter } from "node:events";
5
+ import { isIP } from "node:net";
5
6
  import * as nodeHttpProxy from "@bastani/atomic-ai/utils/node-http-proxy";
6
7
  import * as tlsCertificate from "@bastani/atomic-ai/utils/tls-certificate";
7
8
  import { wrapFetchPreservingAdmission } from "@bastani/atomic-ai/utils/request-admission";
@@ -243,6 +244,11 @@ function withUndiciErrorListener(dispatcher) {
243
244
  function createUndiciClient(origin, options) {
244
245
  return withUndiciErrorListener(new import_undici.Client(origin, options));
245
246
  }
247
+ function isIpServerName(servername) {
248
+ if (typeof servername !== "string" || servername.length === 0) return false;
249
+ const bare = servername.startsWith("[") && servername.endsWith("]") ? servername.slice(1, -1) : servername;
250
+ return isIP(bare) !== 0;
251
+ }
246
252
  /**
247
253
  * The client a proxy agent builds for the proxy itself, with the connector that reaches the proxy: an error that
248
254
  * connector fails with, such as a certificate the proxy showed, is the proxy's, not the endpoint's, which the proxy never
@@ -251,10 +257,16 @@ function createUndiciClient(origin, options) {
251
257
  function createUndiciProxyClient(proxy, options) {
252
258
  const { connect } = options;
253
259
  if (typeof connect !== "function") return createUndiciClient(proxy, options);
254
- const connectToProxy = (connectOptions, callback) => connect(connectOptions, (...result) => {
255
- if (result[0] !== null) proxyFailures.recordProxyConnectionFailure?.(result[0], proxy);
256
- callback(...result);
257
- });
260
+ const connectToProxy = (connectOptions, callback) => {
261
+ const sanitized = connectOptions.protocol === "https:" && isIpServerName(connectOptions.servername) ? {
262
+ ...connectOptions,
263
+ servername: void 0
264
+ } : connectOptions;
265
+ return connect(sanitized, (...result) => {
266
+ if (result[0] !== null) proxyFailures.recordProxyConnectionFailure?.(result[0], proxy);
267
+ callback(...result);
268
+ });
269
+ };
258
270
  return createUndiciClient(proxy, {
259
271
  ...options,
260
272
  connect: connectToProxy
@@ -1 +1 @@
1
- {"version":3,"file":"http-YFAPTIZD.js","names":["requestUrl","undici"],"sources":["../../src/core/fast-model-routing-transport.ts","../../src/core/http-dispatcher.ts"],"mappings":";;;;;;;;;AAEA,MAAa,8BAA8B;AAC3C,MAAa,0BAA0B;AACvC,MAAM,yCAAyC;AAC/C,MAAM,yCAAyC;AAC/C,MAAM,uCAAuC;AAE7C,MAAM,sCAAsB,IAAI,IAAI,CAAC,eAAe,iBAAiB,CAAC;AAGtE,MAAM,oCAAoB,IAAI,QAAO;AACrC,MAAM,6CAA6B,IAAI,QAAO;AAE9C,SAASA,aAAW,OAA6B;CAChD,IAAI;EACH,IAAI,OAAO,UAAU,YAAY,iBAAiB,KAAK,OAAO,IAAI,IAAI,KAAK;EAC3E,OAAO,IAAI,IAAI,MAAM,GAAG;CACzB,QAAQ;EACP;CACD;AACD;;AAEA,SAAgB,sBAAsB,OAA6B;CAClE,MAAM,MAAMA,aAAW,KAAK;CAC5B,OAAO,QAAQ,KAAA,KAAa,oBAAoB,IAAI,IAAI,SAAS,YAAW,CAAE;AAC/E;AACA,SAAgB,yBAAyB,OAA6B;CACrE,MAAM,MAAMA,aAAW,KAAK;CAC5B,IAAI,QAAQ,KAAA,KAAa,CAAC,sBAAsB,GAAG,GAAG,OAAO;CAC7D,MAAM,OAAO,IAAI,SAAS,QAAQ,SAAS,EAAE;CAC7C,OAAO,SAAS,kBAAkB,SAAS,wBAAwB,SAAS;AAC7E;AAWA,SAAS,4BAA4B,SAAgB;CACpD,MAAM,OAAO,QAAQ,IAAI,uBAAuB;CAChD,OAAO,MAAM,SAAS,gBAAgB,MAAM,QAAQ,MAAM,SAAS,iBAAiB,MAAM;AAC3F;AAEA,SAAS,4BAA4B,SAAgB;CACpD,MAAM,SAAS,QAAQ,IAAI,sCAAsC;CACjE,OAAO,WAAW,0CAA0C,WAAW,uCACpE,SACA,KAAA;AACJ;AAEA,SAAgB,0BAA0B,SAAwC,UAAiB;CAClG,QAAQ,0CAA0C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Ae;CACpE,MAAM,EAAE,YAAY;CACpB,IAAI,OAAO,YAAY,YAAY,OAAO,mBAAmB,OAAO,OAAO;CAC3E,MAAM,kBAAmD,gBAAgB,aACxE,QAAQ,iBAAiB,GAAG,WAAU;EACrC,IAAI,OAAO,OAAO,MAAM,cAAc,+BAA+B,OAAO,IAAI,KAAK;EACrF,SAAS,GAAG,MAAM;CACnB,CAAC;CACF,OAAO,mBAAmB,OAAO;EAAE,GAAG;EAAS,SAAS;CAAc,CAAE;AACzE;AAEA,SAAS,6BAA6B,QAAsB,SAAe;CAC1E,MAAM,oBAAoB;CAC1B,IAAI,kBAAkB,gBAAgB,GACrC,OAAO,mBAAmB,QAAQ,iBAAiB;CAEpD,OAAO,wBACN,IAAIA,cAAO,KAAK,QAAQ;EACvB,GAAG;EACH,SAAS;CACT,CAAA,CAAC;AAEJ;;;;;;;;;;;AAYA,SAAgB,wBAAwB,YAAoB,8BAA4B;CACvF,MAAM,sBAAsB,uBAAuB,SAAS;CAC5D,IAAI,wBAAwB,KAAA,GAC3B,MAAM,IAAI,MAAM,8BAA8B,OAAO,SAAS,GAAG;CAGlE,mBAAmB;CACnB,MAAM,QAAQ,OAAO,QAAQ,SAAS,QAAQ;CAC9C,IAAI,CAAC,OAAO;EACX,MAAM,aAAa,wBAClB,IAAIA,cAAO,kBAAkB,4BAA4B,mBAAmB,CAAC,CAAC;EAE/E,cAAO,oBAAoB,UAAU;CACtC;CAWA,IAHC,yBAAyB,KAAA,IACtB,WAAW,UAAU,sBACrB,WAAW,UAAU,sBACC;EACzB,IAAI,OAGH,WAAW,QAAQ,eAAe,mBAAmB;OAErD,qBAAoB;EAErB,uBAAuB,WAAW;EAIlC,uCAAsC;CACvC;AACD"}
1
+ {"version":3,"file":"http-YFAPTIZD.js","names":["requestUrl","undici"],"sources":["../../src/core/fast-model-routing-transport.ts","../../src/core/http-dispatcher.ts"],"mappings":";;;;;;;;;;AAEA,MAAa,8BAA8B;AAC3C,MAAa,0BAA0B;AACvC,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289,7 @@ const aiffParserLoader = {
3289
3289
  "application/aiff"
3290
3290
  ],
3291
3291
  async load() {
3292
- return (await import("./AiffParser-ZAKRUSCD.js")).AIFFParser;
3292
+ return (await import("./AiffParser-ZAKRUSCD.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).AIFFParser;
3293
3293
  }
3294
3294
  };
3295
3295
  // ../../node_modules/music-metadata/lib/apev2/Apev2Loader.js
@@ -3298,7 +3298,7 @@ const apeParserLoader = {
3298
3298
  extensions: [".ape"],
3299
3299
  mimeTypes: ["audio/ape", "audio/monkeys-audio"],
3300
3300
  async load() {
3301
- return (await import("./APEv2Parser-4WPRN6NZ.js")).APEv2Parser;
3301
+ return (await import("./APEv2Parser-4WPRN6NZ.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).APEv2Parser;
3302
3302
  }
3303
3303
  };
3304
3304
  // ../../node_modules/music-metadata/lib/asf/AsfLoader.js
@@ -3317,7 +3317,7 @@ const asfParserLoader = {
3317
3317
  "application/vnd.ms-asf"
3318
3318
  ],
3319
3319
  async load() {
3320
- return (await import("./AsfParser-AP272OWG.js")).AsfParser;
3320
+ return (await import("./AsfParser-AP272OWG.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).AsfParser;
3321
3321
  }
3322
3322
  };
3323
3323
  // ../../node_modules/music-metadata/lib/lrc/LyricsParser.js
@@ -4730,7 +4730,7 @@ const dsdiffParserLoader = {
4730
4730
  extensions: [".dff"],
4731
4731
  mimeTypes: ["audio/dsf", "audio/dsd"],
4732
4732
  async load() {
4733
- return (await import("./DsdiffParser-HQQDSPRP.js")).DsdiffParser;
4733
+ return (await import("./DsdiffParser-HQQDSPRP.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).DsdiffParser;
4734
4734
  }
4735
4735
  };
4736
4736
  // ../../node_modules/music-metadata/lib/dsf/DsfLoader.js
@@ -4739,7 +4739,7 @@ const dsfParserLoader = {
4739
4739
  extensions: [".dsf"],
4740
4740
  mimeTypes: ["audio/dsf"],
4741
4741
  async load() {
4742
- return (await import("./DsfParser-FTOZZCZP.js")).DsfParser;
4742
+ return (await import("./DsfParser-FTOZZCZP.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).DsfParser;
4743
4743
  }
4744
4744
  };
4745
4745
  // ../../node_modules/music-metadata/lib/flac/FlacLoader.js
@@ -4748,7 +4748,7 @@ const flacParserLoader = {
4748
4748
  extensions: [".flac"],
4749
4749
  mimeTypes: ["audio/flac"],
4750
4750
  async load() {
4751
- return (await import("./FlacParser-TXNWG5JT.js")).FlacParser;
4751
+ return (await import("./FlacParser-TXNWG5JT.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).FlacParser;
4752
4752
  }
4753
4753
  };
4754
4754
  // ../../node_modules/music-metadata/lib/matroska/MatroskaLoader.js
@@ -4768,7 +4768,7 @@ const matroskaParserLoader = {
4768
4768
  "video/webm"
4769
4769
  ],
4770
4770
  async load() {
4771
- return (await import("./MatroskaParser-V22CGP72.js")).MatroskaParser;
4771
+ return (await import("./MatroskaParser-V22CGP72.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).MatroskaParser;
4772
4772
  }
4773
4773
  };
4774
4774
  // ../../node_modules/music-metadata/lib/mp4/Mp4Loader.js
@@ -4794,7 +4794,7 @@ const mp4ParserLoader = {
4794
4794
  "video/quicktime"
4795
4795
  ],
4796
4796
  async load() {
4797
- return (await import("./MP4Parser-2TZWZV4K.js")).MP4Parser;
4797
+ return (await import("./MP4Parser-2TZWZV4K.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).MP4Parser;
4798
4798
  }
4799
4799
  };
4800
4800
  // ../../node_modules/music-metadata/lib/mpeg/MpegLoader.js
@@ -4815,7 +4815,7 @@ const mpegParserLoader = {
4815
4815
  "audio/aacp"
4816
4816
  ],
4817
4817
  async load() {
4818
- return (await import("./MpegParser-JNYF57H6.js")).MpegParser;
4818
+ return (await import("./MpegParser-JNYF57H6.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).MpegParser;
4819
4819
  }
4820
4820
  };
4821
4821
  // ../../node_modules/music-metadata/lib/musepack/MusepackLoader.js
@@ -4824,7 +4824,7 @@ const musepackParserLoader = {
4824
4824
  extensions: [".mpc"],
4825
4825
  mimeTypes: ["audio/musepack"],
4826
4826
  async load() {
4827
- return (await import("./MusepackParser-XEUVYWNQ.js")).MusepackParser;
4827
+ return (await import("./MusepackParser-XEUVYWNQ.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).MusepackParser;
4828
4828
  }
4829
4829
  };
4830
4830
  // ../../node_modules/music-metadata/lib/ogg/OggLoader.js
@@ -4846,7 +4846,7 @@ const oggParserLoader = {
4846
4846
  "video/ogg"
4847
4847
  ],
4848
4848
  async load() {
4849
- return (await import("./OggParser-Y7FSZNTO.js")).OggParser;
4849
+ return (await import("./OggParser-Y7FSZNTO.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).OggParser;
4850
4850
  }
4851
4851
  };
4852
4852
  // ../../node_modules/music-metadata/lib/wav/WaveLoader.js
@@ -4863,7 +4863,7 @@ const riffParserLoader = {
4863
4863
  "audio/wave"
4864
4864
  ],
4865
4865
  async load() {
4866
- return (await import("./WaveParser-VA3P7P3H.js")).WaveParser;
4866
+ return (await import("./WaveParser-VA3P7P3H.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).WaveParser;
4867
4867
  }
4868
4868
  };
4869
4869
  // ../../node_modules/music-metadata/lib/wavpack/WavPackLoader.js
@@ -4872,7 +4872,7 @@ const wavpackParserLoader = {
4872
4872
  extensions: [".wv", ".wvp"],
4873
4873
  mimeTypes: ["audio/wavpack"],
4874
4874
  async load() {
4875
- return (await import("./WavPackParser-ZYK4CLSW.js")).WavPackParser;
4875
+ return (await import("./WavPackParser-ZYK4CLSW.js").catch((error) => __atomicOnDemandFailed(error, "this feature"))).WavPackParser;
4876
4876
  }
4877
4877
  };
4878
4878
  // ../../node_modules/music-metadata/lib/ParserFactory.js
@@ -5124,4 +5124,49 @@ async function parseFile(filePath, options = {}) {
5124
5124
  }
5125
5125
  export { CouldNotDetermineFileTypeError, FieldDecodingError, InternalParserError, LyricsContentType, TimestampFormat, UnexpectedFileContentError, UnsupportedFileTypeError, getSupportedMimeTypes, makeParseError, makeUnexpectedFileContentError, orderTags, parseBlob, parseBuffer, parseFile, parseFromTokenizer, parseStream, parseWebStream, ratingToStars, scanAppendingHeaders, selectCover };
5126
5126
 
5127
- //# sourceMappingURL=lib-4PES5P4V.js.map
5127
+ //# sourceMappingURL=lib-4PES5P4V.js.map
5128
+ // __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
5129
+ // demand that fails in a process an in-place update left running says to restart.
5130
+ function __atomicOnDemandFailed(error, feature) {
5131
+ return (async () => {
5132
+ const root = new URL("../", import.meta.url);
5133
+ const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
5134
+ const key = `${root.href}#0.10.5-alpha.1`;
5135
+ let release = releases.get(key);
5136
+ if (release === undefined) {
5137
+ const current = (async () => {
5138
+ for (const path of ["modes/interactive/interactive-mode-deps.js","_shared/chunk-CDOYTDYM.js","_shared/p0-cli-GUFK7TPN.js"]) {
5139
+ try {
5140
+ const held = await import(new URL(path, root).href);
5141
+ if (typeof held.VERSION === "string") return { version: held.VERSION, name: held.APP_NAME };
5142
+ } catch {
5143
+ // Not a file this process can load: the next.
5144
+ }
5145
+ }
5146
+ return undefined;
5147
+ })().then((found) => {
5148
+ if (found === undefined && releases.get(key) === current) releases.delete(key);
5149
+ return found;
5150
+ });
5151
+ releases.set(key, current);
5152
+ release = current;
5153
+ }
5154
+ const running = await release;
5155
+ let installed;
5156
+ try {
5157
+ const { readFile } = process.getBuiltinModule("node:fs/promises");
5158
+ installed = JSON.parse(await readFile(new URL("../package.json", root), "utf8")).version;
5159
+ } catch {
5160
+ // No installation to read, as in a bundle of the package: the release the process runs decides.
5161
+ }
5162
+ const updatedTo = typeof installed === "string" && installed !== "0.10.5-alpha.1" ? installed : running !== undefined && running.version !== "0.10.5-alpha.1" ? "0.10.5-alpha.1" : undefined;
5163
+ if (updatedTo === undefined) throw error;
5164
+ const application = typeof running?.name === "string" ? running.name : "atomic";
5165
+ const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
5166
+ cause: error,
5167
+ });
5168
+ restart.name = "UpdatedInstallError";
5169
+ restart[Symbol.for("atomic.on-demand-restart.v1")] = { application, updatedTo, feature };
5170
+ throw restart;
5171
+ })();
5172
+ }