@bastani/atomic 0.10.5-alpha.1 → 0.10.6-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 (315) hide show
  1. package/CHANGELOG.md +107 -0
  2. package/dist/THIRD_PARTY_NOTICES.md +1 -1
  3. package/dist/_shared/APEv2Parser-APXNTTFS.js.map +1 -1
  4. package/dist/_shared/AsfParser-AP272OWG.js +1 -1
  5. package/dist/_shared/DsfParser-FTOZZCZP.js +2 -2
  6. package/dist/_shared/FlacParser-WJATCQT6.js +2 -2
  7. package/dist/_shared/FlacParser-WJATCQT6.js.map +1 -1
  8. package/dist/_shared/ID3v1Parser-XVX6XPGB.js +1 -1
  9. package/dist/_shared/ID3v2Parser-DB2T4Z6M.js +2 -2
  10. package/dist/_shared/MP4Parser-2TZWZV4K.js +3 -3
  11. package/dist/_shared/MP4Parser-2TZWZV4K.js.map +1 -1
  12. package/dist/_shared/MatroskaParser-V22CGP72.js.map +1 -1
  13. package/dist/_shared/MusepackParser-XEUVYWNQ.js +2 -2
  14. package/dist/_shared/MusepackParser-XEUVYWNQ.js.map +1 -1
  15. package/dist/_shared/OggParser-Y7FSZNTO.js +1 -1
  16. package/dist/_shared/OggParser-Y7FSZNTO.js.map +1 -1
  17. package/dist/_shared/ParseError-VXOGXIIE.js +2 -2
  18. package/dist/_shared/ParseError-VXOGXIIE.js.map +1 -1
  19. package/dist/_shared/WavPackParser-ZYK4CLSW.js +1 -1
  20. package/dist/_shared/WaveParser-VA3P7P3H.js +2 -2
  21. package/dist/_shared/dist-KOELCESV.js +55 -63
  22. package/dist/_shared/dist-KOELCESV.js.map +1 -1
  23. package/dist/_shared/fork-row-index-UAUAQRD5.js +3 -3
  24. package/dist/_shared/full.umd-CBF7UGXV.js +7 -6
  25. package/dist/_shared/full.umd-CBF7UGXV.js.map +1 -1
  26. package/dist/_shared/http-YFAPTIZD.js +2 -2
  27. package/dist/_shared/http-YFAPTIZD.js.map +1 -1
  28. package/dist/_shared/http-undici-FVPTZA4G.js +19 -20
  29. package/dist/_shared/http-undici-FVPTZA4G.js.map +1 -1
  30. package/dist/_shared/lib-4PES5P4V.js +8 -8
  31. package/dist/_shared/lib-4PES5P4V.js.map +1 -1
  32. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +5 -4
  33. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  34. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +20 -20
  35. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  36. package/dist/_shared/mode-shared-2QJSCUM6.js +441 -341
  37. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  38. package/dist/_shared/p0-cli-BB45ZQY6.js +8 -12
  39. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
  40. package/dist/_shared/p1a-prewarm-UQY3X2UK.js +8 -8
  41. package/dist/_shared/p1b-elig-ENCUPKKJ.js +17 -17
  42. package/dist/_shared/p1b-elig-ENCUPKKJ.js.map +1 -1
  43. package/dist/_shared/p2-shell-TJBYQMCJ.js +27 -28
  44. package/dist/_shared/p2-shell-TJBYQMCJ.js.map +1 -1
  45. package/dist/_shared/p2-shell-main-B2WIALFD.js +44 -47
  46. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  47. package/dist/_shared/rolldown-runtime-BGM3D5V3.js +4 -4
  48. package/dist/_shared/runtime-O4KCSG4C.js +7 -7
  49. package/dist/_shared/runtime-O4KCSG4C.js.map +1 -1
  50. package/dist/_shared/sdk-WQIOHVKO.js +24 -24
  51. package/dist/_shared/sdk-WQIOHVKO.js.map +1 -1
  52. package/dist/_shared/session-data-AHTU7IS6.js +4 -4
  53. package/dist/_shared/session-manager-list-2BLEEZVG.js +3 -3
  54. package/dist/_shared/{settings-startup-65YEWRV2.js → settings-startup-4QCVCI53.js} +2 -32
  55. package/dist/_shared/settings-startup-4QCVCI53.js.map +1 -0
  56. package/dist/_shared/settings-startup-8-DNZ2RIHM.js +35 -0
  57. package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -0
  58. package/dist/_shared/sql-session-store-5FD3WBMZ.js +12 -12
  59. package/dist/_shared/startup-0-0-TYUFUOJZ.js +143 -115
  60. package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +1 -1
  61. package/dist/_shared/{startup-0-1-D4LGGINF.js → startup-0-1-W2G2UY7R.js} +365 -27
  62. package/dist/_shared/startup-0-1-W2G2UY7R.js.map +1 -0
  63. package/dist/_shared/startup-0-2-SZGQIWHI.js +19 -24
  64. package/dist/_shared/startup-0-2-SZGQIWHI.js.map +1 -1
  65. package/dist/_shared/startup-0-3-T4DVFYWX.js +7 -7
  66. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
  67. package/dist/_shared/startup-0-4-HN5EB4K7.js +7 -7
  68. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +1 -1
  69. package/dist/_shared/startup-0-5-OHJNE6JH.js +157 -92
  70. package/dist/_shared/startup-0-5-OHJNE6JH.js.map +1 -1
  71. package/dist/_shared/startup-10-0-TDQNBDDL.js +4 -4
  72. package/dist/_shared/startup-10-0-TDQNBDDL.js.map +1 -1
  73. package/dist/_shared/startup-14-0-MLX36RBG.js +19 -19
  74. package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
  75. package/dist/_shared/startup-15-0-YUKGAC63.js +17 -16
  76. package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
  77. package/dist/_shared/startup-15-1-4S7FLMNG.js +5 -5
  78. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  79. package/dist/_shared/startup-8-0-34CBHPZH.js +23 -23
  80. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  81. package/dist/_shared/startup-8-1-SJW2GMAM.js +113 -114
  82. package/dist/_shared/startup-8-1-SJW2GMAM.js.map +1 -1
  83. package/dist/_shared/storage-command-7MGXLJGZ.js +15 -14
  84. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  85. package/dist/_shared/task-reference-stream-JWMUZSJX.js +7 -7
  86. package/dist/_shared/task-reference-stream-JWMUZSJX.js.map +1 -1
  87. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  88. package/dist/_shared/tree-outline-MUEPK5B7.js +4 -4
  89. package/dist/_shared/turndown.cjs-7Z43JOED.js +7 -10
  90. package/dist/_shared/turndown.cjs-7Z43JOED.js.map +1 -1
  91. package/dist/builtin/intercom/CHANGELOG.md +27 -0
  92. package/dist/builtin/intercom/index.bundle.mjs +2 -2
  93. package/dist/builtin/intercom/package.json +1 -1
  94. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  95. package/dist/builtin/mcp/package.json +1 -1
  96. package/dist/builtin/subagents/CHANGELOG.md +12 -0
  97. package/dist/builtin/subagents/package.json +1 -1
  98. package/dist/builtin/subagents/src/extension/index.bundle.mjs +15 -12
  99. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  100. package/dist/builtin/web-access/package.json +1 -1
  101. package/dist/cli/args.js +1 -1
  102. package/dist/cli/auth-cli.code.js +10 -13
  103. package/dist/cli/auth-cli.code.js.map +1 -1
  104. package/dist/cli/auth-cli.impl.js +3 -3
  105. package/dist/cli/auth-cli.js +3 -3
  106. package/dist/cli/blueprint-command.code.js +8 -8
  107. package/dist/cli/blueprint-command.impl.js +3 -3
  108. package/dist/cli/blueprint-command.js +3 -3
  109. package/dist/cli/intercom-command.code.js +2 -2
  110. package/dist/cli/intercom-command.impl.js +3 -3
  111. package/dist/cli/intercom-command.js +3 -3
  112. package/dist/cli/list-models.code.js +3 -3
  113. package/dist/cli/list-models.impl.js +3 -3
  114. package/dist/cli/list-models.js +3 -3
  115. package/dist/cli/session-picker.code.js +3 -3
  116. package/dist/cli/session-picker.impl.js +3 -3
  117. package/dist/cli/session-picker.js +3 -3
  118. package/dist/cli/settings-startup.js +1 -1
  119. package/dist/cli/startup-ui.impl.js +3 -3
  120. package/dist/cli/startup-ui.js +3 -3
  121. package/dist/cli/storage-command.impl.js +3 -3
  122. package/dist/cli/storage-command.js +3 -3
  123. package/dist/cli/storage-search-session.code.js +4 -4
  124. package/dist/cli/storage-search-session.impl.js +3 -3
  125. package/dist/cli/storage-search-session.js +3 -3
  126. package/dist/cli/team-command.code.js +3 -3
  127. package/dist/cli/team-command.impl.js +3 -3
  128. package/dist/cli/team-command.js +3 -3
  129. package/dist/cli.js +2 -2
  130. package/dist/cli.js.map +1 -1
  131. package/dist/core/debug.impl.js +3 -3
  132. package/dist/core/debug.js +3 -3
  133. package/dist/core/export-html/card-projection.code.js +2 -2
  134. package/dist/core/export-html/card-projection.code.js.map +1 -1
  135. package/dist/core/export-html/card-projection.impl.js +3 -3
  136. package/dist/core/export-html/card-projection.js +3 -3
  137. package/dist/core/export-html/index.code.js +9 -9
  138. package/dist/core/export-html/index.code.js.map +1 -1
  139. package/dist/core/export-html/index.impl.js +3 -3
  140. package/dist/core/export-html/index.js +3 -3
  141. package/dist/core/export-html/json-spans.impl.js +3 -3
  142. package/dist/core/export-html/json-spans.js +3 -3
  143. package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
  144. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  145. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  146. package/dist/core/export-html/tool-renderer.code.js +1 -1
  147. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  148. package/dist/core/export-html/tool-renderer.js +3 -3
  149. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  150. package/dist/core/extensions/jiti-loader.js +3 -3
  151. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  152. package/dist/core/extensions/jiti-static-loader.js +3 -3
  153. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  154. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  155. package/dist/core/extensions/loader-host-modules.js +3 -3
  156. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  157. package/dist/core/extensions/runner-context.js +5 -5
  158. package/dist/core/extensions/runner-context.js.map +1 -1
  159. package/dist/core/http-dispatcher.js +2 -0
  160. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  161. package/dist/core/intercom-broker-control-host.js +3 -3
  162. package/dist/core/intercom-broker-control.code.js +3 -3
  163. package/dist/core/intercom-broker-control.impl.js +3 -3
  164. package/dist/core/intercom-broker-control.js +3 -3
  165. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  166. package/dist/core/package-manager-storage-adapters.js +3 -3
  167. package/dist/core/sdk.code.js +1 -1
  168. package/dist/core/sdk.impl.js +3 -3
  169. package/dist/core/sdk.js +3 -3
  170. package/dist/core/session-manager-core.js +15 -15
  171. package/dist/core/session-manager-core.js.map +1 -1
  172. package/dist/core/session-manager-list.impl.js +3 -3
  173. package/dist/core/session-manager-list.js +3 -3
  174. package/dist/core/session-manager.code.js +1 -1
  175. package/dist/core/session-manager.impl.js +3 -3
  176. package/dist/core/session-manager.js +3 -3
  177. package/dist/core/session-storage.impl.js +3 -3
  178. package/dist/core/session-storage.js +3 -3
  179. package/dist/core/storage/index.js +2 -2
  180. package/dist/core/storage/node-sqlite-thread.js +2 -2
  181. package/dist/core/storage/node-sqlite.js +2 -2
  182. package/dist/core/storage/offline-snapshot-file.code.js +1 -1
  183. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  184. package/dist/core/storage/offline-snapshot-file.js +3 -3
  185. package/dist/core/storage/provider.js +2 -2
  186. package/dist/core/storage/selection.js +2 -2
  187. package/dist/core/storage/session/branch-fork-source.code.js +3 -3
  188. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  189. package/dist/core/storage/session/branch-fork-source.js +3 -3
  190. package/dist/core/storage/session/card-view.impl.js +3 -3
  191. package/dist/core/storage/session/card-view.js +3 -3
  192. package/dist/core/storage/session/child-reader.code.js +5 -4
  193. package/dist/core/storage/session/child-reader.code.js.map +1 -1
  194. package/dist/core/storage/session/child-reader.impl.js +3 -3
  195. package/dist/core/storage/session/child-reader.js +3 -3
  196. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  197. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  198. package/dist/core/storage/session/errors.js +1 -0
  199. package/dist/core/storage/session/errors.js.map +1 -1
  200. package/dist/core/storage/session/expanded-child-details.code.js +4 -4
  201. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  202. package/dist/core/storage/session/expanded-child-details.js +3 -3
  203. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  204. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  205. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  206. package/dist/core/storage/session/fork-row-index.js +3 -3
  207. package/dist/core/storage/session/fork-staging.code.js +5 -4
  208. package/dist/core/storage/session/fork-staging.code.js.map +1 -1
  209. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  210. package/dist/core/storage/session/fork-staging.js +3 -3
  211. package/dist/core/storage/session/fork-window.code.js +3 -3
  212. package/dist/core/storage/session/fork-window.impl.js +3 -3
  213. package/dist/core/storage/session/fork-window.js +3 -3
  214. package/dist/core/storage/session/history-pages.impl.js +3 -3
  215. package/dist/core/storage/session/history-pages.js +3 -3
  216. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  217. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  218. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  219. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  220. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  221. package/dist/core/storage/session/memory-session-store.js +3 -3
  222. package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
  223. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  224. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  225. package/dist/core/storage/session/released-history-files.code.js +12 -12
  226. package/dist/core/storage/session/released-history-files.code.js.map +1 -1
  227. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  228. package/dist/core/storage/session/released-history-files.js +3 -3
  229. package/dist/core/storage/session/resident-fork-rows.code.js +1 -1
  230. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  231. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  232. package/dist/core/storage/session/session-resume.impl.js +3 -3
  233. package/dist/core/storage/session/session-resume.js +3 -3
  234. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  235. package/dist/core/storage/session/snapshot-cut.js +3 -3
  236. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  237. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  238. package/dist/core/storage/session/snapshot-history.js +3 -3
  239. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  240. package/dist/core/storage/session/sql-session-store.js +3 -3
  241. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  242. package/dist/core/storage/session/tree-outline.js +3 -3
  243. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  244. package/dist/core/storage/session/tree-presentation.js +3 -3
  245. package/dist/core/storage/storage-status.impl.js +3 -3
  246. package/dist/core/storage/storage-status.js +3 -3
  247. package/dist/core/storage/team.impl.js +3 -3
  248. package/dist/core/storage/team.js +3 -3
  249. package/dist/core/structured-output/index.impl.js +3 -3
  250. package/dist/core/structured-output/index.js +3 -3
  251. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  252. package/dist/core/tasks/task-completion-entry.js +3 -3
  253. package/dist/core/tasks/task-file-history.code.js +5 -5
  254. package/dist/core/tasks/task-file-history.code.js.map +1 -1
  255. package/dist/core/tasks/task-file-history.impl.js +3 -3
  256. package/dist/core/tasks/task-file-history.js +3 -3
  257. package/dist/core/tasks/task-reference-archive.code.js +11 -11
  258. package/dist/core/tasks/task-reference-archive.code.js.map +1 -1
  259. package/dist/core/tasks/task-reference-archive.js +3 -3
  260. package/dist/core/tasks/task-reference-identity.code.js +2 -2
  261. package/dist/core/tasks/task-reference-identity.js +3 -3
  262. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  263. package/dist/core/tasks/task-reference-stream.js +3 -3
  264. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  265. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  266. package/dist/core/tasks/task-view-source.impl.js +3 -3
  267. package/dist/core/tasks/task-view-source.js +3 -3
  268. package/dist/core/tools/read-url.code.js +9 -9
  269. package/dist/core/tools/read-url.impl.js +3 -3
  270. package/dist/core/tools/read-url.js +3 -3
  271. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  272. package/dist/core/worktree-snapshot/errors.code.js +1 -1
  273. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  274. package/dist/core/worktree-snapshot/errors.js +3 -3
  275. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  276. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  277. package/dist/extensions/codemode/execute.code.js +3 -3
  278. package/dist/extensions/codemode/execute.impl.js +3 -3
  279. package/dist/extensions/codemode/execute.js +3 -3
  280. package/dist/extensions/codemode/renderer.code.js +1 -1
  281. package/dist/extensions/codemode/renderer.impl.js +3 -3
  282. package/dist/extensions/codemode/renderer.js +3 -3
  283. package/dist/extensions/mcp/cli.code.js +7 -7
  284. package/dist/extensions/mcp/cli.impl.js +3 -3
  285. package/dist/extensions/mcp/cli.js +3 -3
  286. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  287. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  288. package/dist/extensions/mcp/cli.lazy.js +3 -3
  289. package/dist/extensions/mcp/runtime.impl.js +3 -3
  290. package/dist/extensions/mcp/runtime.js +3 -3
  291. package/dist/index.js +2 -2
  292. package/dist/main-first-time-setup.impl.js +3 -3
  293. package/dist/main-first-time-setup.js +3 -3
  294. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  295. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  296. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  297. package/dist/modes/interactive/components/task-inspector.d.ts +10 -2
  298. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  299. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  300. package/dist/package-manager-cli.code.js +14 -14
  301. package/dist/package-manager-cli.impl.js +3 -3
  302. package/dist/package-manager-cli.js +3 -3
  303. package/dist/rpc-entry.js +3 -3
  304. package/dist/startup-files.json +1 -1
  305. package/dist/startup-stages/7.js +1 -1
  306. package/dist/utils/startup-database-spare.code.js +5 -5
  307. package/dist/utils/startup-database-spare.impl.js +3 -3
  308. package/dist/utils/startup-database-spare.js +3 -3
  309. package/dist/utils/tools-manager.code.js +1 -1
  310. package/dist/utils/tools-manager.impl.js +3 -3
  311. package/dist/utils/tools-manager.js +3 -3
  312. package/docs/background-tasks.md +2 -2
  313. package/package.json +9 -9
  314. package/dist/_shared/settings-startup-65YEWRV2.js.map +0 -1
  315. package/dist/_shared/startup-0-1-D4LGGINF.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { __commonJSMin, __esmMin, __exportAll, __name, __require, __toCommonJS, __toESM } from "./rolldown-runtime-BGM3D5V3.js";
2
+ import { existsSync, mkdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
3
+ import { basename, extname, join, resolve as resolve$1 } from "node:path";
2
4
  import { require_turndown_cjs } from "./turndown.cjs-7Z43JOED.js";
3
- import { basename, extname, join, resolve } from "node:path";
4
- import { pathToFileURL } from "node:url";
5
5
  import { execSync } from "node:child_process";
6
- import { existsSync, mkdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
6
+ import { pathToFileURL } from "node:url";
7
7
  // ../../node_modules/markit-ai/dist/converters/audio.js
8
8
  const EXTENSIONS$14 = [
9
9
  ".mp3",
@@ -938,7 +938,7 @@ var init__baseIteratee = __esmMin((() => {
938
938
  }));
939
939
  // ../../node_modules/underscore/modules/iteratee.js
940
940
  function iteratee(value, context) {
941
- return baseIteratee(value, context, Infinity);
941
+ return baseIteratee(value, context, 1e400);
942
942
  }
943
943
  var init_iteratee = __esmMin((() => {
944
944
  init_underscore();
@@ -1223,7 +1223,7 @@ var init__isArrayLike = __esmMin((() => {
1223
1223
  }));
1224
1224
  // ../../node_modules/underscore/modules/_flatten.js
1225
1225
  function flatten$1(input, depth, strict) {
1226
- if (!depth && depth !== 0) depth = Infinity;
1226
+ if (!depth && depth !== 0) depth = 1e400;
1227
1227
  var output = [];
1228
1228
  var idx = 0;
1229
1229
  var i = 0;
@@ -1733,8 +1733,8 @@ var init_where = __esmMin((() => {
1733
1733
  }));
1734
1734
  // ../../node_modules/underscore/modules/max.js
1735
1735
  function max(obj, iteratee, context) {
1736
- var result = -Infinity;
1737
- var lastComputed = -Infinity;
1736
+ var result = -1e400;
1737
+ var lastComputed = -1e400;
1738
1738
  var value;
1739
1739
  var computed;
1740
1740
  if (iteratee == null || typeof iteratee == "number" && typeof obj[0] != "object" && obj != null) {
@@ -1747,7 +1747,7 @@ function max(obj, iteratee, context) {
1747
1747
  iteratee = cb(iteratee, context);
1748
1748
  each(obj, function(v, index, list) {
1749
1749
  computed = iteratee(v, index, list);
1750
- if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
1750
+ if (computed > lastComputed || computed === -1e400 && result === -1e400) {
1751
1751
  result = v;
1752
1752
  lastComputed = computed;
1753
1753
  }
@@ -1763,8 +1763,8 @@ var init_max = __esmMin((() => {
1763
1763
  }));
1764
1764
  // ../../node_modules/underscore/modules/min.js
1765
1765
  function min(obj, iteratee, context) {
1766
- var result = Infinity;
1767
- var lastComputed = Infinity;
1766
+ var result = 1e400;
1767
+ var lastComputed = 1e400;
1768
1768
  var value;
1769
1769
  var computed;
1770
1770
  if (iteratee == null || typeof iteratee == "number" && typeof obj[0] != "object" && obj != null) {
@@ -1777,7 +1777,7 @@ function min(obj, iteratee, context) {
1777
1777
  iteratee = cb(iteratee, context);
1778
1778
  each(obj, function(v, index, list) {
1779
1779
  computed = iteratee(v, index, list);
1780
- if (computed < lastComputed || computed === Infinity && result === Infinity) {
1780
+ if (computed < lastComputed || computed === 1e400 && result === 1e400) {
1781
1781
  result = v;
1782
1782
  lastComputed = computed;
1783
1783
  }
@@ -1838,7 +1838,7 @@ var init_sample = __esmMin((() => {
1838
1838
  }));
1839
1839
  // ../../node_modules/underscore/modules/shuffle.js
1840
1840
  function shuffle(obj) {
1841
- return sample(obj, Infinity);
1841
+ return sample(obj, 1e400);
1842
1842
  }
1843
1843
  var init_shuffle = __esmMin((() => {
1844
1844
  init_sample();
@@ -3122,7 +3122,7 @@ var require_base64_js = /* @__PURE__ */ __commonJSMin(((exports) => {
3122
3122
  var tmp;
3123
3123
  var output = [];
3124
3124
  for (var i = start; i < end; i += 3) {
3125
- tmp = (uint8[i] << 16 & 16711680) + (uint8[i + 1] << 8 & 65280) + (uint8[i + 2] & 255);
3125
+ tmp = (uint8[i] << 16 & 0xff0000) + (uint8[i + 1] << 8 & 65280) + (uint8[i + 2] & 255);
3126
3126
  output.push(tripletToBase64(tmp));
3127
3127
  }
3128
3128
  return output.join("");
@@ -5335,7 +5335,7 @@ var require_external = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5335
5335
  module.exports = { Promise: ES6Promise };
5336
5336
  }));
5337
5337
  // ../../node_modules/setimmediate/setImmediate.js
5338
- var require_setImmediate = /* @__PURE__ */ __commonJSMin((() => {
5338
+ var require_setImmediate = /* @__PURE__ */ __commonJSMin(((exports, module, this$26) => {
5339
5339
  (function(global, undefined) {
5340
5340
  "use strict";
5341
5341
  if (global.setImmediate) return;
@@ -5425,8 +5425,7 @@ var require_setImmediate = /* @__PURE__ */ __commonJSMin((() => {
5425
5425
  function installMessageChannelImplementation() {
5426
5426
  var channel = new MessageChannel();
5427
5427
  channel.port1.onmessage = function(event) {
5428
- var handle = event.data;
5429
- runIfPresent(handle);
5428
+ runIfPresent(event.data);
5430
5429
  };
5431
5430
  registerImmediate = function(handle) {
5432
5431
  channel.port2.postMessage(handle);
@@ -5459,7 +5458,7 @@ var require_setImmediate = /* @__PURE__ */ __commonJSMin((() => {
5459
5458
  else installSetTimeoutImplementation();
5460
5459
  attachTo.setImmediate = setImmediate;
5461
5460
  attachTo.clearImmediate = clearImmediate;
5462
- })(typeof self === "undefined" ? typeof global === "undefined" ? void 0 : global : self);
5461
+ })(typeof self === "undefined" ? typeof global === "undefined" ? this$26 : global : self);
5463
5462
  }));
5464
5463
  // ../../node_modules/jszip/lib/utils.js
5465
5464
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6580,7 +6579,7 @@ var require_crc32$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6580
6579
  var table = [];
6581
6580
  for (var n = 0; n < 256; n++) {
6582
6581
  c = n;
6583
- for (var k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
6582
+ for (var k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ c >>> 1 : c >>> 1;
6584
6583
  table[n] = c;
6585
6584
  }
6586
6585
  return table;
@@ -7445,7 +7444,7 @@ var require_trees = /* @__PURE__ */ __commonJSMin(((exports) => {
7445
7444
  send_tree(s, s.dyn_dtree, dcodes - 1);
7446
7445
  }
7447
7446
  function detect_data_type(s) {
7448
- var black_mask = 4093624447;
7447
+ var black_mask = 0xf3ffc07f;
7449
7448
  var n = 0;
7450
7449
  for (; n <= 31; n++, black_mask >>>= 1) if (black_mask & 1 && s.dyn_ltree[n * 2] !== 0) return Z_BINARY;
7451
7450
  if (s.dyn_ltree[18] !== 0 || s.dyn_ltree[20] !== 0 || s.dyn_ltree[26] !== 0) return Z_TEXT;
@@ -7546,7 +7545,7 @@ var require_crc32 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7546
7545
  var table = [];
7547
7546
  for (var n = 0; n < 256; n++) {
7548
7547
  c = n;
7549
- for (var k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
7548
+ for (var k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ c >>> 1 : c >>> 1;
7550
7549
  table[n] = c;
7551
7550
  }
7552
7551
  return table;
@@ -10339,7 +10338,7 @@ var require_inflate$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
10339
10338
  hold += input[next++] << bits;
10340
10339
  bits += 8;
10341
10340
  }
10342
- if (hold !== (state.total & 4294967295)) {
10341
+ if (hold !== (state.total & 0xffffffff)) {
10343
10342
  strm.msg = "incorrect length check";
10344
10343
  state.mode = BAD;
10345
10344
  break;
@@ -21881,8 +21880,7 @@ var require_style_map = /* @__PURE__ */ __commonJSMin(((exports) => {
21881
21880
  var relationshipsUri = "http://schemas.openxmlformats.org/package/2006/relationships";
21882
21881
  var relationshipElementName = "{" + relationshipsUri + "}Relationship";
21883
21882
  return docxFile.read(path, "utf8").then(xml.readString).then(function(relationshipsContainer) {
21884
- var relationships = relationshipsContainer.children;
21885
- addOrUpdateElement(relationships, relationshipElementName, "Id", {
21883
+ addOrUpdateElement(relationshipsContainer.children, relationshipElementName, "Id", {
21886
21884
  "Id": "rMammothStyleMap",
21887
21885
  "Type": schema,
21888
21886
  "Target": styleMapAbsolutePath
@@ -21896,8 +21894,7 @@ var require_style_map = /* @__PURE__ */ __commonJSMin(((exports) => {
21896
21894
  var contentTypesUri = "http://schemas.openxmlformats.org/package/2006/content-types";
21897
21895
  var overrideName = "{" + contentTypesUri + "}Override";
21898
21896
  return docxFile.read(path, "utf8").then(xml.readString).then(function(typesElement) {
21899
- var children = typesElement.children;
21900
- addOrUpdateElement(children, overrideName, "PartName", {
21897
+ addOrUpdateElement(typesElement.children, overrideName, "PartName", {
21901
21898
  "PartName": styleMapAbsolutePath,
21902
21899
  "ContentType": "text/prs.mammoth.style-map"
21903
21900
  });
@@ -25106,7 +25103,7 @@ function normalizeProcessEntities(value, htmlEntities) {
25106
25103
  enabled: value,
25107
25104
  maxEntitySize: 1e4,
25108
25105
  maxExpansionDepth: 1e4,
25109
- maxTotalExpansions: Infinity,
25106
+ maxTotalExpansions: 1e400,
25110
25107
  maxExpandedLength: 1e5,
25111
25108
  maxEntityCount: 1e3,
25112
25109
  allowedTags: null,
@@ -25117,7 +25114,7 @@ function normalizeProcessEntities(value, htmlEntities) {
25117
25114
  enabled: value.enabled !== false,
25118
25115
  maxEntitySize: Math.max(1, value.maxEntitySize ?? 1e4),
25119
25116
  maxExpansionDepth: Math.max(1, value.maxExpansionDepth ?? 1e4),
25120
- maxTotalExpansions: Math.max(1, value.maxTotalExpansions ?? Infinity),
25117
+ maxTotalExpansions: Math.max(1, value.maxTotalExpansions ?? 1e400),
25121
25118
  maxExpandedLength: Math.max(1, value.maxExpandedLength ?? 1e5),
25122
25119
  maxEntityCount: Math.max(1, value.maxEntityCount ?? 1e3),
25123
25120
  allowedTags: value.allowedTags ?? null,
@@ -25764,7 +25761,7 @@ function parse_int(numStr, base) {
25764
25761
  * @returns {string|number|null} based on infinity option
25765
25762
  */
25766
25763
  function handleInfinity(str, num, options) {
25767
- const isPositive = num === Infinity;
25764
+ const isPositive = num === 1e400;
25768
25765
  switch (options.infinity.toLowerCase()) {
25769
25766
  case "null": return null;
25770
25767
  case "infinity": return num;
@@ -27119,72 +27116,72 @@ const REDOS_PATTERNS = [
27119
27116
  }
27120
27117
  ];
27121
27118
  // ../../node_modules/is-unsafe/src/contexts/nosql.js
27122
- const sep$1 = "[\"'\\s]*:";
27119
+ const sep = "[\"'\\s]*:";
27123
27120
  const NOSQL_PATTERNS = [
27124
27121
  {
27125
27122
  id: "nosql-where-operator",
27126
27123
  description: "$where — executes arbitrary JavaScript server-side in MongoDB",
27127
- pattern: new RegExp(`\\$where${sep$1}`, "i")
27124
+ pattern: new RegExp(`\\$where${sep}`, "i")
27128
27125
  },
27129
27126
  {
27130
27127
  id: "nosql-ne-operator",
27131
27128
  description: "$ne — \"not equal\" operator used to bypass equality checks",
27132
- pattern: new RegExp(`\\$ne${sep$1}`, "i")
27129
+ pattern: new RegExp(`\\$ne${sep}`, "i")
27133
27130
  },
27134
27131
  {
27135
27132
  id: "nosql-gt-operator",
27136
27133
  description: "$gt — \"greater than\" used to bypass password/value checks",
27137
- pattern: new RegExp(`\\$gte?${sep$1}`, "i")
27134
+ pattern: new RegExp(`\\$gte?${sep}`, "i")
27138
27135
  },
27139
27136
  {
27140
27137
  id: "nosql-lt-operator",
27141
27138
  description: "$lt / $lte — \"less than\" bypass variants",
27142
- pattern: new RegExp(`\\$lte?${sep$1}`, "i")
27139
+ pattern: new RegExp(`\\$lte?${sep}`, "i")
27143
27140
  },
27144
27141
  {
27145
27142
  id: "nosql-regex-operator",
27146
27143
  description: "$regex — can be used to extract data character by character (blind injection)",
27147
- pattern: new RegExp(`\\$regex${sep$1}`, "i")
27144
+ pattern: new RegExp(`\\$regex${sep}`, "i")
27148
27145
  },
27149
27146
  {
27150
27147
  id: "nosql-or-operator",
27151
27148
  description: "$or — logical OR; used to create always-true conditions",
27152
- pattern: new RegExp(`\\$or${sep$1}\\s*\\[`, "i")
27149
+ pattern: new RegExp(`\\$or${sep}\\s*\\[`, "i")
27153
27150
  },
27154
27151
  {
27155
27152
  id: "nosql-and-operator",
27156
27153
  description: "$and — logical AND operator injection",
27157
- pattern: new RegExp(`\\$and${sep$1}\\s*\\[`, "i")
27154
+ pattern: new RegExp(`\\$and${sep}\\s*\\[`, "i")
27158
27155
  },
27159
27156
  {
27160
27157
  id: "nosql-nor-operator",
27161
27158
  description: "$nor — logical NOR operator injection",
27162
- pattern: new RegExp(`\\$nor${sep$1}\\s*\\[`, "i")
27159
+ pattern: new RegExp(`\\$nor${sep}\\s*\\[`, "i")
27163
27160
  },
27164
27161
  {
27165
27162
  id: "nosql-exists-operator",
27166
27163
  description: "$exists — can enumerate fields to determine schema",
27167
- pattern: new RegExp(`\\$exists${sep$1}`, "i")
27164
+ pattern: new RegExp(`\\$exists${sep}`, "i")
27168
27165
  },
27169
27166
  {
27170
27167
  id: "nosql-in-operator",
27171
27168
  description: "$in — matches any value in a list; can enumerate values",
27172
- pattern: new RegExp(`\\$in${sep$1}\\s*\\[`, "i")
27169
+ pattern: new RegExp(`\\$in${sep}\\s*\\[`, "i")
27173
27170
  },
27174
27171
  {
27175
27172
  id: "nosql-expr-operator",
27176
27173
  description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
27177
- pattern: new RegExp(`\\$expr${sep$1}`, "i")
27174
+ pattern: new RegExp(`\\$expr${sep}`, "i")
27178
27175
  },
27179
27176
  {
27180
27177
  id: "nosql-function-operator",
27181
27178
  description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
27182
- pattern: new RegExp(`\\$function${sep$1}`, "i")
27179
+ pattern: new RegExp(`\\$function${sep}`, "i")
27183
27180
  },
27184
27181
  {
27185
27182
  id: "nosql-accumulator-operator",
27186
27183
  description: "$accumulator — custom aggregation with arbitrary JS execution",
27187
- pattern: new RegExp(`\\$accumulator${sep$1}`, "i")
27184
+ pattern: new RegExp(`\\$accumulator${sep}`, "i")
27188
27185
  },
27189
27186
  {
27190
27187
  id: "nosql-proto-pollution",
@@ -28323,10 +28320,7 @@ var GitHubConverter = class {
28323
28320
  const segments = parsed.pathname.split("/").filter(Boolean);
28324
28321
  if (segments.length < 2) throw new Error(`Unsupported GitHub URL: ${url}`);
28325
28322
  const [owner, repo, type, ...rest] = segments;
28326
- if (type === "blob" && rest.length >= 2) {
28327
- const ref = rest[0];
28328
- return fetchRawFile(owner, repo, ref, rest.slice(1).join("/"));
28329
- }
28323
+ if (type === "blob" && rest.length >= 2) return fetchRawFile(owner, repo, rest[0], rest.slice(1).join("/"));
28330
28324
  if ((type === "issues" || type === "pull") && rest[0]) {
28331
28325
  const number = Number.parseInt(rest[0], 10);
28332
28326
  if (!Number.isNaN(number)) return fetchIssueOrPr(owner, repo, number);
@@ -29453,22 +29447,22 @@ function castRaysForTextBox(textBox, segments) {
29453
29447
  let up = {
29454
29448
  direction: "up",
29455
29449
  segmentId: null,
29456
- distance: Infinity
29450
+ distance: 1e400
29457
29451
  };
29458
29452
  let down = {
29459
29453
  direction: "down",
29460
29454
  segmentId: null,
29461
- distance: Infinity
29455
+ distance: 1e400
29462
29456
  };
29463
29457
  let left = {
29464
29458
  direction: "left",
29465
29459
  segmentId: null,
29466
- distance: Infinity
29460
+ distance: 1e400
29467
29461
  };
29468
29462
  let right = {
29469
29463
  direction: "right",
29470
29464
  segmentId: null,
29471
- distance: Infinity
29465
+ distance: 1e400
29472
29466
  };
29473
29467
  for (const seg of segments) {
29474
29468
  const isH = Math.abs(seg.y1 - seg.y2) < .5;
@@ -30032,11 +30026,11 @@ function resolveTableGrids(pageNumber, textBoxes, segments) {
30032
30026
  const vertical = segments.filter((s) => Math.abs(s.x1 - s.x2) <= AXIS_EPSILON);
30033
30027
  const horizontal = segments.filter((s) => Math.abs(s.y1 - s.y2) <= AXIS_EPSILON);
30034
30028
  const textYValues = textBoxes.flatMap((t) => [t.bounds.bottom, t.bounds.top]);
30035
- const textYMin = textYValues.length > 0 ? Math.min(...textYValues) - PAGE_MARGIN : -Infinity;
30036
- const textYMax = textYValues.length > 0 ? Math.max(...textYValues) + PAGE_MARGIN : Infinity;
30029
+ const textYMin = textYValues.length > 0 ? Math.min(...textYValues) - PAGE_MARGIN : -1e400;
30030
+ const textYMax = textYValues.length > 0 ? Math.max(...textYValues) + PAGE_MARGIN : 1e400;
30037
30031
  const textXValues = textBoxes.flatMap((t) => [t.bounds.left, t.bounds.right]);
30038
- const textXMin = textXValues.length > 0 ? Math.min(...textXValues) - 100 : -Infinity;
30039
- const textXMax = textXValues.length > 0 ? Math.max(...textXValues) + 100 : Infinity;
30032
+ const textXMin = textXValues.length > 0 ? Math.min(...textXValues) - 100 : -1e400;
30033
+ const textXMax = textXValues.length > 0 ? Math.max(...textXValues) + 100 : 1e400;
30040
30034
  const filteredH = horizontal.filter((s) => s.y1 >= textYMin && s.y1 <= textYMax && s.x1 <= textXMax && s.x2 >= textXMin);
30041
30035
  const hMaxX2 = filteredH.length > 0 ? Math.max(...filteredH.map((s) => s.x2)) : textXMax;
30042
30036
  const vSegXMax = Math.max(textXMax, hMaxX2 + PAGE_MARGIN);
@@ -31084,8 +31078,7 @@ var XlsxConverter = class {
31084
31078
  processEntities: { maxTotalExpansions: 1e6 }
31085
31079
  });
31086
31080
  const ssXml = await zip.file("xl/sharedStrings.xml")?.async("string");
31087
- const siList = (ssXml ? parser.parse(ssXml) : null)?.sst?.si;
31088
- const shared = toArray(siList);
31081
+ const shared = toArray((ssXml ? parser.parse(ssXml) : null)?.sst?.si);
31089
31082
  const wbXml = await zip.file("xl/workbook.xml")?.async("string");
31090
31083
  if (!wbXml) throw new Error("Invalid XLSX: missing workbook.xml");
31091
31084
  const sheets = toArray(parser.parse(wbXml).workbook?.sheets?.sheet);
@@ -31532,7 +31525,7 @@ function parsePluginSource(source) {
31532
31525
  subpath
31533
31526
  };
31534
31527
  }
31535
- const absPath = resolve(source);
31528
+ const absPath = resolve$1(source);
31536
31529
  return {
31537
31530
  type: "local",
31538
31531
  name: basename(absPath).replace(/\.(ts|js)$/, ""),
@@ -31639,7 +31632,7 @@ function listInstalled() {
31639
31632
  }
31640
31633
  // ../../node_modules/markit-ai/dist/plugins/loader.js
31641
31634
  async function loadPluginFromPath(path) {
31642
- let absPath = resolve(path);
31635
+ let absPath = resolve$1(path);
31643
31636
  if (existsSync(absPath) && statSync(absPath).isDirectory()) {
31644
31637
  const candidates = [
31645
31638
  join(absPath, "src", "index.ts"),
@@ -31816,7 +31809,7 @@ function listProviders() {
31816
31809
  /**
31817
31810
  * Resolve config + env vars into a ResolvedConfig for a provider.
31818
31811
  */
31819
- function resolve$1(provider, config) {
31812
+ function resolve(provider, config) {
31820
31813
  const apiKey = provider.envKeys.reduce((found, key) => found || process.env[key], void 0) || config.llm?.apiKey;
31821
31814
  if (!apiKey) return null;
31822
31815
  return {
@@ -31826,7 +31819,6 @@ function resolve$1(provider, config) {
31826
31819
  transcriptionModel: config.llm?.transcriptionModel || provider.defaultTranscriptionModel
31827
31820
  };
31828
31821
  }
31829
- __name(resolve$1, "resolve");
31830
31822
  const BASE_PROMPT = "Describe this image in detail.";
31831
31823
  /**
31832
31824
  * Build describe/transcribe functions from config.
@@ -31836,7 +31828,7 @@ function createLlmFunctions(config, prompt) {
31836
31828
  const providerName = config.llm?.provider || "openai";
31837
31829
  const provider = providers[providerName];
31838
31830
  if (!provider) throw new Error(`Unknown provider '${providerName}'. Available: ${Object.keys(providers).join(", ")}`);
31839
- const resolved = resolve$1(provider, config);
31831
+ const resolved = resolve(provider, config);
31840
31832
  if (!resolved) return {};
31841
31833
  const fullPrompt = prompt ? `${BASE_PROMPT}\n\n${prompt}` : BASE_PROMPT;
31842
31834
  return provider.create(resolved, fullPrompt);
@@ -31850,7 +31842,7 @@ function __atomicOnDemandFailed(error, feature) {
31850
31842
  return (async () => {
31851
31843
  const root = new URL("../", import.meta.url);
31852
31844
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
31853
- const key = `${root.href}#0.10.5-alpha.1`;
31845
+ const key = `${root.href}#0.10.6-alpha.1`;
31854
31846
  let release = releases.get(key);
31855
31847
  if (release === undefined) {
31856
31848
  const current = (async () => {
@@ -31878,7 +31870,7 @@ function __atomicOnDemandFailed(error, feature) {
31878
31870
  } catch {
31879
31871
  // No installation to read, as in a bundle of the package: the release the process runs decides.
31880
31872
  }
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;
31873
+ const updatedTo = typeof installed === "string" && installed !== "0.10.6-alpha.1" ? installed : running !== undefined && running.version !== "0.10.6-alpha.1" ? "0.10.6-alpha.1" : undefined;
31882
31874
  if (updatedTo === undefined) throw error;
31883
31875
  const application = typeof running?.name === "string" ? running.name : "atomic";
31884
31876
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {