@bastani/atomic 0.10.5 → 0.10.6

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 +58 -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 +12 -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
@@ -2,20 +2,20 @@ import { __commonJSMin, __name, __require } from "./rolldown-runtime-BGM3D5V3.js
2
2
  import { APP_NAME, CONFIG_DIR_NAME, DiagnosticWriter, ENV_AGENT_DIR, ENV_TELEMETRY, NATIVES_VERSION, canonicalizePath as canonicalizePath$1, canonicalizePathAsync as canonicalizePathAsync$1, createModuleRequire, detectInstallChangeAsync, getAgentDir, getCwdRelativePath, getDocsPath, getEnvValue, getPackageDir, getPathComparisonKey, getSettingsPath, isBunBinary, isBunRuntime, isChildProcessExitStatusUnknownError, loadOnDemand, markNativeContainedChild, moduleDirFromMetaUrl, normalizePath as normalizePath$1, pathsEqual, requiredEntriesForBuiltin, resolvePath, shortenHomePath, stripBom } from "./p0-cli-BB45ZQY6.js";
3
3
  import { clickableKeyTextHint, getGlobalTheme, navActionText, navFirstKeyText, renderNavHintLine, renderNavKeyOverlay, slashCommandHint, terminalDisplayText, theme } from "./p2-shell-main-B2WIALFD.js";
4
4
  import { PROJECT_TRUST_DISTRUST_LABEL, PROJECT_TRUST_SESSION_DISTRUST_LABEL, REDACTED_PLACEHOLDER, applyRedactionRanges, findInCauseChain as findInCauseChain$1, hasErrorIdentity, isAsciiDigitCode, isAsciiHexCode, isAsciiLetterCode, isAsciiWordCode, isHorizontalWsCode, lockHolderPath, matchesAsciiCaseInsensitiveAt, prepareTakeoverMutex, processMayRun, processMayRunAsync, processStartToken, processStartTokenAsync, putBack, putBackAsync, readProcessStartToken, redactCredentialShapes, redactUrlCredentials, rehydrateErrorCause, releaseLock, removeAside, removeAsideAsync, removeLeftoverHolderFiles, removeLeftoverHolderFilesAsync, renameReplacing, renameReplacingAsync, scanBasicAuthEndAt, serializeErrorCause, skipHorizontalWs, stripAnsiWithOrigin, takeTakeoverMutex, takeTakeoverMutexAsync } from "./p1b-elig-ENCUPKKJ.js";
5
- import { DecisionTimeoutError, SessionAlreadyOpenError } from "./settings-startup-65YEWRV2.js";
5
+ import { DecisionTimeoutError, SessionAlreadyOpenError } from "./settings-startup-4QCVCI53.js";
6
6
  import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
7
7
  import { isBuiltin } from "node:module";
8
8
  import { lstat, mkdir, open, readFile, readdir, readlink, realpath, rename, rm, stat, unlink, utimes, writeFile } from "node:fs/promises";
9
9
  import { existsSync, mkdirSync } from "fs";
10
10
  import { join } from "path";
11
11
  import { constants as constants$1, homedir, hostname, tmpdir } from "node:os";
12
- import * as path$2 from "node:path";
13
- import path, { basename as basename$1, dirname as dirname$1, isAbsolute as isAbsolute$1, join as join$1, parse, relative as relative$1, resolve as resolve$1, sep as sep$1, toNamespacedPath } from "node:path";
12
+ import * as path$1 from "node:path";
13
+ import path$2, { basename as basename$1, dirname as dirname$1, isAbsolute as isAbsolute$1, join as join$1, parse, relative as relative$1, resolve as resolve$1, sep as sep$2, toNamespacedPath } from "node:path";
14
14
  import { pathToFileURL } from "node:url";
15
15
  import { execFile, spawn } from "node:child_process";
16
16
  import { canonicalizePathAsync } from "../utils/canonical-path.js";
17
17
  import { pathExists } from "../utils/path-exists.js";
18
- import * as fs$1 from "node:fs";
18
+ import * as fs from "node:fs";
19
19
  import { appendFileSync, chmodSync as chmodSync$1, closeSync as closeSync$1, copyFileSync, existsSync as existsSync$1, fsyncSync, linkSync, lstatSync as lstatSync$1, mkdirSync as mkdirSync$1, openSync as openSync$1, readFileSync as readFileSync$1, readlinkSync as readlinkSync$1, realpathSync as realpathSync$1, renameSync as renameSync$1, rmSync as rmSync$1, statSync as statSync$1, unlinkSync, write, writeFileSync as writeFileSync$1, writeSync } from "node:fs";
20
20
  import { Worker } from "node:worker_threads";
21
21
  import { EVAL_WORKER_BUILTIN, evalWorkerExecArgv } from "../utils/worker-threads.js";
@@ -23,7 +23,7 @@ import { Container, Input, Text, decodePrintableKey, fuzzyFilter, getCapabilitie
23
23
  import chalk from "chalk";
24
24
  import { StorageUnavailableError } from "../core/storage/errors.js";
25
25
  import { access as access$1, mkdir as mkdir$1 } from "fs/promises";
26
- import * as crypto$2 from "node:crypto";
26
+ import * as crypto$1 from "node:crypto";
27
27
  import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
28
28
  import { getSystemErrorMap } from "node:util";
29
29
  import lockfile from "proper-lockfile";
@@ -945,7 +945,7 @@ var Selector = class {
945
945
  return lines;
946
946
  }
947
947
  rowParts(item, index, isSelected, numbered, numberWidth, hasMarks, multi) {
948
- const cursor = isSelected ? this.style.accent(this.style.bold("❯ ")) : " ";
948
+ const cursor = isSelected ? this.style.accent(this.style.bold("∀ ")) : " ";
949
949
  const number = numbered ? this.style.dim(`${index + 1}.`.padEnd(numberWidth)) : "";
950
950
  let mark = "";
951
951
  if (multi) mark = this.state.isChecked(item.id) ? `${this.style.tone("success", "[✓]")} ` : this.style.dim("[ ] ");
@@ -2344,15 +2344,15 @@ function ordinaryReading(directory, fallback, retry = true) {
2344
2344
  return new Promise((resolve, reject) => {
2345
2345
  const opened = (error, fd) => {
2346
2346
  if (error) return resolve(retry && error.code === "EEXIST" ? ordinaryReading(directory, fallback, false) : fallback ?? 0);
2347
- const finish = (offset, sinceSample) => fs$1.unlink(probe, () => {
2347
+ const finish = (offset, sinceSample) => fs.unlink(probe, () => {
2348
2348
  if (offset === void 0 || sinceSample === void 0) return resolve(fallback ?? 0);
2349
2349
  removeLeftoverProbes(directory, relative ? () => Date.now() + offset : () => Math.min(Date.now() + offset, elapsedClock() + sinceSample)).then(() => {
2350
2350
  resolve(relative ? offset : elapsedClock() + sinceSample);
2351
2351
  }, reject);
2352
2352
  });
2353
- fs$1.close(fd, (error) => {
2353
+ fs.close(fd, (error) => {
2354
2354
  if (error) return finish();
2355
- fs$1.stat(probe, (error, stats) => {
2355
+ fs.stat(probe, (error, stats) => {
2356
2356
  if (error) return finish();
2357
2357
  const sampled = Date.now();
2358
2358
  finish(stats.mtimeMs - (before + sampled) / 2, stats.mtimeMs - elapsedClock());
@@ -2360,7 +2360,7 @@ function ordinaryReading(directory, fallback, retry = true) {
2360
2360
  });
2361
2361
  };
2362
2362
  try {
2363
- fs$1.open(probe, "wx", opened);
2363
+ fs.open(probe, "wx", opened);
2364
2364
  } catch {
2365
2365
  resolve(fallback ?? 0);
2366
2366
  }
@@ -2423,7 +2423,7 @@ function remember(path, shared, local) {
2423
2423
  }
2424
2424
  function sharedStat(path, callback) {
2425
2425
  const file = String(path);
2426
- sharedClockOffset(dirname$1(file)).then((offset) => fs$1.stat(file, (error, stats) => {
2426
+ sharedClockOffset(dirname$1(file)).then((offset) => fs.stat(file, (error, stats) => {
2427
2427
  if (error) return callback(error);
2428
2428
  const shared = stats.mtime.getTime();
2429
2429
  const reading = readings.get(file);
@@ -2437,9 +2437,9 @@ function sharedUtimes(path, atime, mtime, callback) {
2437
2437
  const local = new Date(mtime).getTime();
2438
2438
  sharedClockOffset(dirname$1(file)).then((offset) => {
2439
2439
  const shared = new Date(local + offset);
2440
- fs$1.utimes(file, atime, shared, (error) => {
2440
+ fs.utimes(file, atime, shared, (error) => {
2441
2441
  if (error) return callback(error);
2442
- fs$1.stat(file, (statError, stats) => {
2442
+ fs.stat(file, (statError, stats) => {
2443
2443
  if (!statError) remember(file, stats.mtime.getTime(), local);
2444
2444
  callback(null);
2445
2445
  });
@@ -2448,7 +2448,7 @@ function sharedUtimes(path, atime, mtime, callback) {
2448
2448
  }
2449
2449
  function sharedRmdir(path, callback) {
2450
2450
  readings.delete(String(path));
2451
- fs$1.rmdir(path, callback);
2451
+ fs.rmdir(path, callback);
2452
2452
  }
2453
2453
  /**
2454
2454
  * The file system proper-lockfile works through: a lock's mtime is stamped and read in the filesystem's clock, while
@@ -2456,7 +2456,7 @@ function sharedRmdir(path, callback) {
2456
2456
  * or days still reads as refreshed when it was (#5050).
2457
2457
  */
2458
2458
  const sharedClockFs = {
2459
- ...fs$1,
2459
+ ...fs,
2460
2460
  stat: sharedStat,
2461
2461
  utimes: sharedUtimes,
2462
2462
  rmdir: sharedRmdir
@@ -2474,6 +2474,7 @@ function lockShared(path, options) {
2474
2474
  }
2475
2475
  // ../../node_modules/fast-sha256/sha256.js
2476
2476
  var require_sha256 = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
2477
+ var define;
2477
2478
  (function(root, factory) {
2478
2479
  var exports = {};
2479
2480
  factory(exports);
@@ -2490,70 +2491,70 @@ var require_sha256 = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) =>
2490
2491
  exports.digestLength = 32;
2491
2492
  exports.blockSize = 64;
2492
2493
  var K = new Uint32Array([
2493
- 1116352408,
2494
- 1899447441,
2495
- 3049323471,
2496
- 3921009573,
2494
+ 0x428a2f98,
2495
+ 0x71374491,
2496
+ 0xb5c0fbcf,
2497
+ 0xe9b5dba5,
2497
2498
  961987163,
2498
- 1508970993,
2499
- 2453635748,
2500
- 2870763221,
2501
- 3624381080,
2499
+ 0x59f111f1,
2500
+ 0x923f82a4,
2501
+ 0xab1c5ed5,
2502
+ 0xd807aa98,
2502
2503
  310598401,
2503
2504
  607225278,
2504
- 1426881987,
2505
- 1925078388,
2506
- 2162078206,
2507
- 2614888103,
2508
- 3248222580,
2509
- 3835390401,
2510
- 4022224774,
2511
- 264347078,
2505
+ 0x550c7dc3,
2506
+ 0x72be5d74,
2507
+ 0x80deb1fe,
2508
+ 0x9bdc06a7,
2509
+ 0xc19bf174,
2510
+ 0xe49b69c1,
2511
+ 0xefbe4786,
2512
+ 0xfc19dc6,
2512
2513
  604807628,
2513
2514
  770255983,
2514
- 1249150122,
2515
- 1555081692,
2516
- 1996064986,
2517
- 2554220882,
2518
- 2821834349,
2519
- 2952996808,
2520
- 3210313671,
2521
- 3336571891,
2522
- 3584528711,
2523
- 113926993,
2515
+ 0x4a7484aa,
2516
+ 0x5cb0a9dc,
2517
+ 0x76f988da,
2518
+ 0x983e5152,
2519
+ 0xa831c66d,
2520
+ 0xb00327c8,
2521
+ 0xbf597fc7,
2522
+ 0xc6e00bf3,
2523
+ 0xd5a79147,
2524
+ 0x6ca6351,
2524
2525
  338241895,
2525
2526
  666307205,
2526
2527
  773529912,
2527
- 1294757372,
2528
- 1396182291,
2529
- 1695183700,
2530
- 1986661051,
2531
- 2177026350,
2532
- 2456956037,
2533
- 2730485921,
2534
- 2820302411,
2535
- 3259730800,
2536
- 3345764771,
2537
- 3516065817,
2538
- 3600352804,
2539
- 4094571909,
2528
+ 0x4d2c6dfc,
2529
+ 0x53380d13,
2530
+ 0x650a7354,
2531
+ 0x766a0abb,
2532
+ 0x81c2c92e,
2533
+ 0x92722c85,
2534
+ 0xa2bfe8a1,
2535
+ 0xa81a664b,
2536
+ 0xc24b8b70,
2537
+ 0xc76c51a3,
2538
+ 0xd192e819,
2539
+ 0xd6990624,
2540
+ 0xf40e3585,
2540
2541
  275423344,
2541
2542
  430227734,
2542
2543
  506948616,
2543
2544
  659060556,
2544
2545
  883997877,
2545
2546
  958139571,
2546
- 1322822218,
2547
- 1537002063,
2548
- 1747873779,
2549
- 1955562222,
2550
- 2024104815,
2551
- 2227730452,
2552
- 2361852424,
2553
- 2428436474,
2554
- 2756734187,
2555
- 3204031479,
2556
- 3329325298
2547
+ 0x4ed8aa4a,
2548
+ 0x5b9cca4f,
2549
+ 0x682e6ff3,
2550
+ 0x748f82ee,
2551
+ 0x78a5636f,
2552
+ 0x84c87814,
2553
+ 0x8cc70208,
2554
+ 0x90befffa,
2555
+ 0xa4506ceb,
2556
+ 0xbef9a3f7,
2557
+ 0xc67178f2
2557
2558
  ]);
2558
2559
  function hashBlocks(w, v, p, pos, len) {
2559
2560
  var a;
@@ -2627,14 +2628,14 @@ var require_sha256 = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) =>
2627
2628
  this.reset();
2628
2629
  }
2629
2630
  Hash.prototype.reset = function() {
2630
- this.state[0] = 1779033703;
2631
- this.state[1] = 3144134277;
2632
- this.state[2] = 1013904242;
2633
- this.state[3] = 2773480762;
2634
- this.state[4] = 1359893119;
2635
- this.state[5] = 2600822924;
2631
+ this.state[0] = 0x6a09e667;
2632
+ this.state[1] = 0xbb67ae85;
2633
+ this.state[2] = 0x3c6ef372;
2634
+ this.state[3] = 0xa54ff53a;
2635
+ this.state[4] = 0x510e527f;
2636
+ this.state[5] = 0x9b05688c;
2636
2637
  this.state[6] = 528734635;
2637
- this.state[7] = 1541459225;
2638
+ this.state[7] = 0x5be0cd19;
2638
2639
  this.bufferLength = 0;
2639
2640
  this.bytesHashed = 0;
2640
2641
  this.finished = false;
@@ -2902,7 +2903,7 @@ function isMissing(error) {
2902
2903
  }
2903
2904
  /** Path components; empty, `.` and `..` ones are kept, since `join` applies them to an already resolved directory. */
2904
2905
  function components(path) {
2905
- return path.split(sep$1 === "\\" ? /[\\/]/ : "/");
2906
+ return path.split(sep$2 === "\\" ? /[\\/]/ : "/");
2906
2907
  }
2907
2908
  /** Whether `path` is a symbolic link, or undefined when it or one of its parents is missing. */
2908
2909
  function lstatIsLink(path) {
@@ -4323,7 +4324,7 @@ const unannounced = [];
4323
4324
  const listeners = /* @__PURE__ */ new Set();
4324
4325
  function inside(parent, child) {
4325
4326
  const path = relative$1(parent, child);
4326
- return !path.startsWith(`..${sep$1}`) && path !== ".." && !isAbsolute$1(path);
4327
+ return !path.startsWith(`..${sep$2}`) && path !== ".." && !isAbsolute$1(path);
4327
4328
  }
4328
4329
  function covers(build, subject) {
4329
4330
  if (typeof subject === "string") return build.sessionId === subject;
@@ -4552,7 +4553,7 @@ function holdToolsUntilOwnerBuilt(storeDir, ownerPid, sessionId, recordTimings)
4552
4553
  }
4553
4554
  // dist/core/tool-detachment-errors.js
4554
4555
  /** The largest `afterMs` a detachment policy accepts: timers clamp anything above it to 1 ms. */
4555
- const MAX_TOOL_DETACHMENT_AFTER_MS = 2147483647;
4556
+ const MAX_TOOL_DETACHMENT_AFTER_MS = 0x7fffffff;
4556
4557
  const TOOL_DETACHMENT_ERROR_NAME = "ToolDetachmentError";
4557
4558
  const MAX_CAUSE_DEPTH$3 = 8;
4558
4559
  const HINTS = {
@@ -4966,7 +4967,7 @@ const defaultModelPerProvider = {
4966
4967
  "ant-ling": "Ring-2.6-1T",
4967
4968
  zai: "glm-5.3",
4968
4969
  "zai-coding-cn": "glm-5.3",
4969
- mistral: "devstral-medium-latest",
4970
+ mistral: "mistral-large-latest",
4970
4971
  minimax: "MiniMax-M3",
4971
4972
  "minimax-cn": "MiniMax-M3",
4972
4973
  moonshotai: "kimi-k2.7-code",
@@ -7402,9 +7403,9 @@ function typeScriptSourceSpecifier(specifier, importer) {
7402
7403
  const scriptExtension = SCRIPT_EXTENSION.exec(specifier)?.[0];
7403
7404
  if (!scriptExtension || !(specifier.startsWith("./") || specifier.startsWith("../"))) return void 0;
7404
7405
  const typeScriptSpecifier = specifier.slice(0, -scriptExtension.length) + TYPESCRIPT_EXTENSION_FOR[scriptExtension];
7405
- const directory = path$2.dirname(importer);
7406
- if (fs$1.existsSync(path$2.resolve(directory, specifier))) return void 0;
7407
- if (!fs$1.existsSync(path$2.resolve(directory, typeScriptSpecifier))) return void 0;
7406
+ const directory = path$1.dirname(importer);
7407
+ if (fs.existsSync(path$1.resolve(directory, specifier))) return void 0;
7408
+ if (!fs.existsSync(path$1.resolve(directory, typeScriptSpecifier))) return void 0;
7408
7409
  return typeScriptSpecifier;
7409
7410
  }
7410
7411
  /** Every rewrite this source can receive; part of the cache key, so a sibling change re-transforms. */
@@ -7475,10 +7476,10 @@ const JITI_FUNCTION_NAMES = [
7475
7476
  * `URL` or `Error` never stands in for them. It is a hoisted function, so code an import cycle runs before the module's own can call it.
7476
7477
  */
7477
7478
  function moduleImportMetaPlugin(babel, options) {
7478
- const filename = path$2.resolve(options.filename);
7479
+ const filename = path$1.resolve(options.filename);
7479
7480
  const url = pathToFileURL(filename).href;
7480
- const dirname = path$2.dirname(filename);
7481
- const file = path$2.basename(filename);
7481
+ const dirname = path$1.dirname(filename);
7482
+ const file = path$1.basename(filename);
7482
7483
  const fileGlobals = {
7483
7484
  __filename: filename,
7484
7485
  __dirname: dirname
@@ -7554,7 +7555,7 @@ function moduleImportMetaPlugin(babel, options) {
7554
7555
  };
7555
7556
  }
7556
7557
  function cacheFile(cacheDir, options, rewrites) {
7557
- const key = crypto$2.createHash("sha256").update(JSON.stringify([
7558
+ const key = crypto$1.createHash("sha256").update(JSON.stringify([
7558
7559
  TRANSFORM_CACHE_FORMAT,
7559
7560
  options.filename,
7560
7561
  options.async,
@@ -7566,8 +7567,8 @@ function cacheFile(cacheDir, options, rewrites) {
7566
7567
  [...rewrites],
7567
7568
  options.source
7568
7569
  ])).digest("hex").slice(0, 32);
7569
- const name = path$2.basename(options.filename ?? "module").replace(/[^\w.-]/g, "_");
7570
- return path$2.join(cacheDir, `${name}.${key}.${options.async ? "mjs" : "cjs"}`);
7570
+ const name = path$1.basename(options.filename ?? "module").replace(/[^\w.-]/g, "_");
7571
+ return path$1.join(cacheDir, `${name}.${key}.${options.async ? "mjs" : "cjs"}`);
7571
7572
  }
7572
7573
  /** A stored transform: one line with the JSON list of its static imports, then the code jiti evaluates. */
7573
7574
  function storedForm({ code, imports }) {
@@ -7576,7 +7577,7 @@ function storedForm({ code, imports }) {
7576
7577
  function readCached(file) {
7577
7578
  let stored;
7578
7579
  try {
7579
- stored = fs$1.readFileSync(file, "utf8");
7580
+ stored = fs.readFileSync(file, "utf8");
7580
7581
  } catch {
7581
7582
  return;
7582
7583
  }
@@ -7595,8 +7596,8 @@ function readCached(file) {
7595
7596
  }
7596
7597
  /** Writes only into an existing cache directory, so a removed agent directory is never recreated (#4728). */
7597
7598
  function writeCached(file, code) {
7598
- const temporary = `${file}.${process.pid}.${crypto$2.randomUUID()}.tmp`;
7599
- return fs$1.promises.writeFile(temporary, code, "utf8").then(() => fs$1.promises.rename(temporary, file)).catch(() => fs$1.promises.rm(temporary, { force: true })).catch(() => {});
7599
+ const temporary = `${file}.${process.pid}.${crypto$1.randomUUID()}.tmp`;
7600
+ return fs.promises.writeFile(temporary, code, "utf8").then(() => fs.promises.rename(temporary, file)).catch(() => fs.promises.rm(temporary, { force: true })).catch(() => {});
7600
7601
  }
7601
7602
  const babelHosts = /* @__PURE__ */ new WeakMap();
7602
7603
  /** One Babel host per jiti implementation and id, so a transform per cache directory stays cheap. */
@@ -10109,7 +10110,7 @@ var Diff = class {
10109
10110
  let editLength = 1;
10110
10111
  let maxEditLength = newLen + oldLen;
10111
10112
  if (options.maxEditLength != null) maxEditLength = Math.min(maxEditLength, options.maxEditLength);
10112
- const maxExecutionTime = (_a = options.timeout) !== null && _a !== void 0 ? _a : Infinity;
10113
+ const maxExecutionTime = (_a = options.timeout) !== null && _a !== void 0 ? _a : 1e400;
10113
10114
  const abortAfterTimestamp = Date.now() + maxExecutionTime;
10114
10115
  const bestPath = [{
10115
10116
  oldPos: -1,
@@ -10117,8 +10118,8 @@ var Diff = class {
10117
10118
  }];
10118
10119
  let newPos = this.extractCommon(bestPath[0], newTokens, oldTokens, 0, options);
10119
10120
  if (bestPath[0].oldPos + 1 >= oldLen && newPos + 1 >= newLen) return done(this.buildValues(bestPath[0].lastComponent, newTokens, oldTokens));
10120
- let minDiagonalToConsider = -Infinity;
10121
- let maxDiagonalToConsider = Infinity;
10121
+ let minDiagonalToConsider = -1e400;
10122
+ let maxDiagonalToConsider = 1e400;
10122
10123
  const execEditLength = () => {
10123
10124
  for (let diagonalPath = Math.max(minDiagonalToConsider, -editLength); diagonalPath <= Math.min(maxDiagonalToConsider, editLength); diagonalPath += 2) {
10124
10125
  let basePath;
@@ -10983,7 +10984,7 @@ function keptTaskHint(action, route) {
10983
10984
  * or `..notes.md` stays inside. On Windows, `relative` compares drive letters and names case-insensitively, and a
10984
10985
  * child on another drive or share yields an absolute path, which counts as outside.
10985
10986
  */
10986
- function isPathInside(parent, child, pathApi = path) {
10987
+ function isPathInside(parent, child, pathApi = path$2) {
10987
10988
  const relative = pathApi.relative(parent, child);
10988
10989
  return relative !== ".." && !relative.startsWith("../") && !relative.startsWith(`..${pathApi.sep}`) && !pathApi.isAbsolute(relative);
10989
10990
  }
@@ -12467,13 +12468,13 @@ const lengths = (items) => {
12467
12468
  return [min, max];
12468
12469
  };
12469
12470
  const itemLengths = (it) => {
12470
- if (it.t === "star") return [0, Infinity];
12471
+ if (it.t === "star") return [0, 1e400];
12471
12472
  if (it.t !== "ext") return [1, 1];
12472
- if (it.type === "!") return [0, Infinity];
12473
+ if (it.type === "!") return [0, 1e400];
12473
12474
  const alts = it.alts.map(lengths);
12474
12475
  const min = Math.min(...alts.map((a) => a[0]));
12475
12476
  const max = Math.max(...alts.map((a) => a[1]));
12476
- const loop = max === 0 ? 0 : Infinity;
12477
+ const loop = max === 0 ? 0 : 1e400;
12477
12478
  return it.type === "@" ? [min, max] : it.type === "?" ? [0, max] : it.type === "*" ? [0, loop] : [min, loop];
12478
12479
  };
12479
12480
  const hasAffix = (lits, chars, start) => {
@@ -12499,7 +12500,7 @@ var Matcher = class {
12499
12500
  #linear;
12500
12501
  #wild = false;
12501
12502
  #min = 0;
12502
- #max = Infinity;
12503
+ #max = 1e400;
12503
12504
  #prefix = [];
12504
12505
  #suffix = [];
12505
12506
  #prefixStr;
@@ -12696,11 +12697,11 @@ const cachedMinimatch = (pattern, options) => {
12696
12697
  };
12697
12698
  /* c8 ignore start */
12698
12699
  const defaultPlatform = typeof process === "object" && process ? process.env?.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
12699
- const path$1 = {
12700
+ const path = {
12700
12701
  win32: { sep: "\\" },
12701
12702
  posix: { sep: "/" }
12702
12703
  };
12703
- minimatch.sep = defaultPlatform === "win32" ? path$1.win32.sep : path$1.posix.sep;
12704
+ minimatch.sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
12704
12705
  const GLOBSTAR = Symbol("globstar **");
12705
12706
  minimatch.GLOBSTAR = GLOBSTAR;
12706
12707
  const filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
@@ -13862,7 +13863,7 @@ function isReadableUrlPath(readPath) {
13862
13863
  }
13863
13864
  // dist/core/structured-output/deadline.js
13864
13865
  /** The largest delay `setTimeout` honors; a larger one fires immediately. */
13865
- const MAX_DEADLINE_MS = 2147483647;
13866
+ const MAX_DEADLINE_MS = 0x7fffffff;
13866
13867
  const CANCELLED_MESSAGE = "Structured output cancelled; no decision was accepted.";
13867
13868
  /** The failure for an aborted decision: the deadline error when the deadline fired, otherwise a plain cancellation. */
13868
13869
  function abortFailure(signal) {
@@ -13973,25 +13974,25 @@ const TODO_DIR_NAME = `${CONFIG_DIR_NAME}/todos`;
13973
13974
  const TODO_PATH_ENV = `${APP_NAME.toUpperCase()}_TODO_PATH`;
13974
13975
  function getTodosDir(cwd) {
13975
13976
  const overridePath = getEnvValue(TODO_PATH_ENV);
13976
- if (overridePath?.trim()) return path.resolve(cwd, overridePath.trim());
13977
- return path.resolve(cwd, TODO_DIR_NAME);
13977
+ if (overridePath?.trim()) return path$2.resolve(cwd, overridePath.trim());
13978
+ return path$2.resolve(cwd, TODO_DIR_NAME);
13978
13979
  }
13979
13980
  function getTodosDirLabel(cwd) {
13980
13981
  const overridePath = getEnvValue(TODO_PATH_ENV);
13981
- if (overridePath?.trim()) return path.resolve(cwd, overridePath.trim());
13982
+ if (overridePath?.trim()) return path$2.resolve(cwd, overridePath.trim());
13982
13983
  return TODO_DIR_NAME;
13983
13984
  }
13984
13985
  function getTodoPath(todosDir, id) {
13985
- return path.join(todosDir, `${id}.md`);
13986
+ return path$2.join(todosDir, `${id}.md`);
13986
13987
  }
13987
13988
  function getLockPath(todosDir, id) {
13988
- return path.join(todosDir, `${id}.lock`);
13989
+ return path$2.join(todosDir, `${id}.lock`);
13989
13990
  }
13990
13991
  // dist/core/tools/tool-abort-grace.js
13991
13992
  /** How long a tool call may run on after its turn is interrupted before the turn stops waiting for it (#5486). */
13992
13993
  const DEFAULT_TOOL_ABORT_GRACE_MS = 1e4;
13993
13994
  /** The longest delay a timer takes; a larger value would fire at once. */
13994
- const MAX_TIMER_MS = 2147483647;
13995
+ const MAX_TIMER_MS = 0x7fffffff;
13995
13996
  const graceOwners = /* @__PURE__ */ new WeakMap();
13996
13997
  function graceOwnerState(owner) {
13997
13998
  let state = graceOwners.get(owner);
@@ -16331,7 +16332,7 @@ var require_parse_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16331
16332
  const url = __require("url");
16332
16333
  const lastIndexOfBefore = (str, char, beforeChar) => {
16333
16334
  const startPosition = str.indexOf(beforeChar);
16334
- return str.lastIndexOf(char, startPosition > -1 ? startPosition : Infinity);
16335
+ return str.lastIndexOf(char, startPosition > -1 ? startPosition : 1e400);
16335
16336
  };
16336
16337
  const safeUrl = (u) => {
16337
16338
  try {
@@ -16401,7 +16402,34 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16401
16402
  MAX_SAFE_COMPONENT_LENGTH: 16,
16402
16403
  MAX_SAFE_BUILD_LENGTH: 250,
16403
16404
  MAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER ||
16404
- /* istanbul ignore next */ 9007199254740991,
16405
+ /* istanbul ignore next */ 0x1fffffffffffff,
16406
+ WHITESPACE_CHARACTERS: [
16407
+ " ",
16408
+ "\n",
16409
+ "\v",
16410
+ "\f",
16411
+ "\r",
16412
+ " ",
16413
+ "\xA0",
16414
+ " ",
16415
+ " ",
16416
+ " ",
16417
+ " ",
16418
+ " ",
16419
+ " ",
16420
+ " ",
16421
+ " ",
16422
+ " ",
16423
+ " ",
16424
+ " ",
16425
+ " ",
16426
+ "\u2028",
16427
+ "\u2029",
16428
+ " ",
16429
+ " ",
16430
+ " ",
16431
+ ""
16432
+ ],
16405
16433
  RELEASE_TYPES: [
16406
16434
  "major",
16407
16435
  "premajor",
@@ -16681,15 +16709,15 @@ function finishDeprecationWarningsAtExit() {
16681
16709
  /** A short hash of what a notice is about and what it says, that needs no synchronous crypto. */
16682
16710
  function noticeHash(once, message) {
16683
16711
  const text = `${once}\0${message}`;
16684
- let h1 = 3735928559;
16685
- let h2 = 1103547991;
16712
+ let h1 = 0xdeadbeef;
16713
+ let h2 = 0x41c6ce57;
16686
16714
  for (let index = 0; index < text.length; index++) {
16687
16715
  const code = text.charCodeAt(index);
16688
- h1 = Math.imul(h1 ^ code, 2654435761);
16689
- h2 = Math.imul(h2 ^ code, 1597334677);
16716
+ h1 = Math.imul(h1 ^ code, 0x9e3779b1);
16717
+ h2 = Math.imul(h2 ^ code, 0x5f356495);
16690
16718
  }
16691
- h1 = Math.imul(h1 ^ h1 >>> 16, 2246822507) ^ Math.imul(h2 ^ h2 >>> 13, 3266489909);
16692
- h2 = Math.imul(h2 ^ h2 >>> 16, 2246822507) ^ Math.imul(h1 ^ h1 >>> 13, 3266489909);
16719
+ h1 = Math.imul(h1 ^ h1 >>> 16, 0x85ebca6b) ^ Math.imul(h2 ^ h2 >>> 13, 0xc2b2ae35);
16720
+ h2 = Math.imul(h2 ^ h2 >>> 16, 0x85ebca6b) ^ Math.imul(h1 ^ h1 >>> 13, 0xc2b2ae35);
16693
16721
  return `${(h2 >>> 0).toString(16).padStart(8, "0")}${(h1 >>> 0).toString(16).padStart(8, "0")}`;
16694
16722
  }
16695
16723
  function readShownNotices(path) {
@@ -19222,7 +19250,7 @@ function __atomicOnDemandFailed(error, feature) {
19222
19250
  return (async () => {
19223
19251
  const root = new URL("../", import.meta.url);
19224
19252
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
19225
- const key = `${root.href}#0.10.5`;
19253
+ const key = `${root.href}#0.10.6`;
19226
19254
  let release = releases.get(key);
19227
19255
  if (release === undefined) {
19228
19256
  const current = (async () => {
@@ -19250,7 +19278,7 @@ function __atomicOnDemandFailed(error, feature) {
19250
19278
  } catch {
19251
19279
  // No installation to read, as in a bundle of the package: the release the process runs decides.
19252
19280
  }
19253
- const updatedTo = typeof installed === "string" && installed !== "0.10.5" ? installed : running !== undefined && running.version !== "0.10.5" ? "0.10.5" : undefined;
19281
+ const updatedTo = typeof installed === "string" && installed !== "0.10.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
19254
19282
  if (updatedTo === undefined) throw error;
19255
19283
  const application = typeof running?.name === "string" ? running.name : "atomic";
19256
19284
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {