@bastani/atomic 0.10.5 → 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 +29 -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 +6 -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 +6 -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,13 +1,13 @@
1
1
  import { __name } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME, BUILTIN_PACKAGE_DIR_NAMES, CONFIG_DIR_NAME, ENV_CLEAR_ON_SHRINK, ENV_HARDWARE_CURSOR, ENV_SESSION_DIR, INTERACTIVE_ENGINE_BOOTSTRAP_FLAG, addHostStorageAdapter, canonicalizePath as canonicalizePath$1, createChildProcessEnvironment, flushPersistentCompileCache, formatPathRelativeToCwdOrAbsolute, getAgentConfigPaths, getAgentDir, getAgentDirs, getBinDir, getBlueprintActionsDir, getCwdRelativePath, getEnvValue, getGlobalBlueprintPath, getHomeDir, getProjectBlueprintPath, getProjectConfigPaths, getReadmePath, hostStorageAdapter, isBunBinary, isBunRuntime, isChildProcessExitStatusUnknownError, isLocalPath, markLifecycleTiming, normalizePath, removeOwnedInteractiveEngineBootstrapAsync, resolvePath, shortenHomePath, splitBom, stripBom, waitForChildProcess, writeInteractiveEngineBootstrapAsync } from "./p0-cli-BB45ZQY6.js";
3
3
  import { BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, EditInputError, EditMatchError, EditTargetError, FileToolAbortedError, HostListenerFailures, LONG_LIVED_COMMANDS, MAX_COMMAND_TIMEOUT_SECONDS, Minimatch, RESTART_CANCELLED_MESSAGE, STALE_EXTENSION_CONTEXT_MESSAGE, ShellTimeoutError, SqliteSelectorConnection, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, TASK_MARKS, TaskMessageError, TaskMessageTimeoutError, WriteSelectorError, activeToolExecutionStarts, allToolNames, announceBlueprintBuildWaiting, applyBashSessionEnvironment, asyncScope, attachJsonlLineReader, attachLineReader, bindSavedTaskOrigins, blueprintBuildShared, blueprintDigest, canonicalEventBusFor, chatPosition, clearAssignmentIfClosed, clearLockHolder, clearLockHolderAsync, convertBufferWithMarkit, convertFileWithMarkit, createGitEnvironment, defaultToolNamesFor, defineTool, detectSupportedImageMimeTypeFromFile, displayTodoId, entryLines, expandSearchUrl, experimentalToolSamplingProperty, filterSearchOutputByLineRange, formatReadLineRange as formatReadLineRange$1, formatSelectedLines, formatSize, formatTimeoutSeconds as formatTimeoutSeconds$1, formatTodoId, frozenClocks, getManifestFromPackageJson, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolListError, handOverBuildTimings, holdDeprecationWarnings, holdToolsUntilBuilt, hostInputError, invalidArgText, invalidateNativeSearchCache, isBlueprintError, isGitProvisionError, isGitUnavailableError, isPathInside, isReadResourceSelector, isReadableUrlPath, isTodoClosed, isToolModifier, keptTaskHint, linkPath, literalPathLike, loadNativeSearchBinding, longerRunAdvice, mergeReadRanges, nativeModuleProblem, normalizePathLikeInput, normalizeTodoId, noteSavedSeq, openAdapterSelectionDatabase, originalHistoryNote, prepareLockTakeover, projectTrustHandlerRegistered, projectTrustedBeforeExtensions, readLedger, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, registerCanonicalEventBus, releaseDeprecationWarnings, renderBlueprintContext, renderToolPath, replaceTabs, reportContained, repositoryKey, resolvePhysicalPathAsync, rootKey, savedReadLines, scopedBackgroundTasks, searchPosition, selectExactReadRanges, selectReadRanges, serializeJsonLine, settingsFileNoticeKey, settingsInternals, shortenPath, sleep, sliceHead, snapshotBashSessionEnvironment, sortTodos, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, startToolTimer, str, stringEntries, takeOverDeadHolder, takeOverDeadHolderAsync, takeQueuedDeliveryChange, taskResumer, timestamp, toolTimerText, transcriptHeaderLines, truncateHead, truncateLine, updateLedger, validateTodoId, warnDeprecation, withFileMutationQueue, withResolvingFileMutationQueue, workspaceKey } from "./startup-0-0-TYUFUOJZ.js";
4
- import { EMPTY_OUTPUT_TEXT, HistorySearchPositions, MAX_INDEXED_ENTRY_CHARS, ResumeTimingsRecorder, SEARCH_PART_CHARS, SessionStorageSelectionSchema, TaskElapsedClocks, WorkspaceDriftError, WorkspaceRestoreError, WorkspaceSnapshotError, bindTaskClock, bindTaskClockSource, buildDirectoryTree, buildDirectoryTreeFromOperations, captureRegistrationInvocation, compareCreated, compareFrozen, conflictEntries, convertToLlm, createBranchSummaryMessage, createCustomMessage, diffLines, ensureTool, execCommand, findSessionOpenHolder, findWorkspaceError, formatResumeTimings, invocationExtension, invocationRuntime, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspaceSnapshotError, lifecycleScopeForOwner, normalizeAzureSettings, openEventSubscription, originalRegistrationCallback, ownedSettingsManagers, parseArgs, parseConflictBytes, parseInteractiveEngineMessage, presentTaskError, prewarmModelApi, readConflictUrl, readLocalFileChunks, recordBlueprintStep, recordResumeTimings, recordSettingsWrite, refreshConflictFile, registerConflictBlocks, registerFactoryStartupHandler, renderTodoCall, renderTodoResult, resolveInstalledGit, resolveInvocationRuntime, selectReadLinesFromChunks, selectReadLinesFromList, serializeInteractiveEngineFrame, serializeTodoForAgent, serializeTodoListForAgent, sessionPosition, settingsWriteOwner, splitSearchTextParts, startupSourceId, taskClockOf, taskClockRunning, timeCheckoutRestore, unpackIds, unreadablePathError, validateEventSource, validateSubscriptionAdmission, waitResultTail, waitStatus, withoutSearchPosition, writeRenderers } from "./startup-0-1-D4LGGINF.js";
4
+ import { EMPTY_OUTPUT_TEXT, HistorySearchPositions, MAX_INDEXED_ENTRY_CHARS, ResumeTimingsRecorder, SEARCH_PART_CHARS, SessionStorageSelectionSchema, TaskElapsedClocks, WorkspaceDriftError, WorkspaceRestoreError, WorkspaceSnapshotError, bindTaskClock, bindTaskClockSource, buildDirectoryTree, buildDirectoryTreeFromOperations, captureRegistrationInvocation, compareCreated, compareFrozen, conflictEntries, convertToLlm, createBranchSummaryMessage, createCustomMessage, diffLines, ensureTool, execCommand, findSessionOpenHolder, findWorkspaceError, formatResumeTimings, invocationExtension, invocationRuntime, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspaceSnapshotError, lifecycleScopeForOwner, normalizeAzureSettings, openEventSubscription, originalRegistrationCallback, ownedSettingsManagers, parseArgs, parseConflictBytes, parseInteractiveEngineMessage, presentTaskError, prewarmModelApi, readConflictUrl, readLocalFileChunks, recordBlueprintStep, recordResumeTimings, recordSettingsWrite, refreshConflictFile, registerConflictBlocks, registerFactoryStartupHandler, renderTodoCall, renderTodoResult, resolveInstalledGit, resolveInvocationRuntime, selectReadLinesFromChunks, selectReadLinesFromList, serializeInteractiveEngineFrame, serializeTodoForAgent, serializeTodoListForAgent, sessionPosition, settingsWriteOwner, splitSearchTextParts, startupSourceId, taskClockOf, taskClockRunning, timeCheckoutRestore, unpackIds, unreadablePathError, validateEventSource, validateSubscriptionAdmission, waitResultTail, waitStatus, withoutSearchPosition, writeRenderers } from "./startup-0-1-W2G2UY7R.js";
5
5
  import { CodeHighlighter, FS_WATCH_RETRY_DELAY_MS, applyEarlyInputChunk, closeWatcher, getLanguageFromPath, graphemeAt, highlightCode, isSafeFsWatchPathError, keepStartupDialogDraft, migrateKeybindingsConfig, parenthesizedKeyHint, recordTimingLines, sanitizeTerminalText, singleLineDisplayText, slashCommandHint, terminalDisplayText, theme, watchWithErrorHandlerAsync, withEarlyInputHeldForStartupDialog } from "./p2-shell-main-B2WIALFD.js";
6
6
  import { parseJsonFileContent } from "./p1-shared-RG5I5LJ6.js";
7
7
  import { ProjectTrustStore, failureDebugFields, hasProjectTrustInputs, hasProjectTrustInputsAsync, inLockTurn, matchesOnSameLineCI, redactUrlCredentials, releaseLock, releaseLockSync, renameReplacing, renameReplacingAsync, renameWithRetry, reportDebugAsync, waitForLock, waitForLockSync } from "./p1b-elig-ENCUPKKJ.js";
8
8
  import { FILE_HEADERS_ONLY, InteractiveEngineMonitor, ModelConfig, RpcTerminalDrain, SESSIONS_STORAGE_ENV, STORAGE_ENV, TodoParams, addShellOutputPreview, assertSessionOpen, bindTaskChatPage, captureTaskChatFile, chatPageRequest, createTwoFilesPatch, drainSessionWork, dropWrongTypedSettings, estimateTokens, formatPatch, formatTruncationNotice, formatWorkingElapsed, getNativeMcpToolIdentity, getPowerShellConfigAsync, getShellConfigAsync, getShellEnvAsync, hasCallingSessionWork, invalidSettingMessage, isPowerShellAvailable, isResumePreconditionError, isTodoOperationError, killChildProcessTree, loadTaskOwnTranscriptEntries, markNativeMcpToolDefinition, processSharedStorageSelection, processSharedStorageSelectionAsync, processStorageEnvironment, rebuildShellWaitResult, selectProcessStorage, selectProcessStorageSteps, sessionGenerationClosing, sessionLifetime, spawnShellProcess, structuredPatch, taskChatPage, taskExtensionStatuses, taskOwnTranscriptEntries, taskTranscriptSource, trackDetachedChildPid, trackDetachedChildProcess, trackSessionWork, untrackDetachedChildPid, watchTaskExtensionStatuses, wrapToolDefinition } from "./startup-0-2-SZGQIWHI.js";
9
9
  import { appendToLog, applyContextEdit, assertExtensionAction, buildProcessStarting, extensionWorkOpen, getBaseDirsForScope, getOwnerTaskSession, getOwnerTaskStore, inExtensionCleanup, isResumeFailure, isRetiredExtensionCleanup, isTaskTurnInterrupted, loadArchiveSnapshot, logTail, migrateAzureProvider, migrateAzureProviderAsync, onExtensionSessionQuit, openStepLog, processImage, resolvePathFromBase, resolveWorktreeSnapshotSettings, runLoggedProcess, sessionEntryToContextMessages, sha256Hex, startElapsedMs, stripLeadingCdCommandAsync, taskResumedTurns, trackExtensionWork, watchOwnerTaskStoreBinding, withTodoLock } from "./startup-0-3-T4DVFYWX.js";
10
- import { DecisionConfigError, SessionHistoryNotLoadedError, asAcceptedRequestFailure, isDecisionConfigError, markRpcTransportFailure, rpcTransportError } from "./settings-startup-65YEWRV2.js";
10
+ import { DecisionConfigError, SessionHistoryNotLoadedError, asAcceptedRequestFailure, isDecisionConfigError, markRpcTransportFailure, rpcTransportError } from "./settings-startup-4QCVCI53.js";
11
11
  import { JsonlSessionStore, LegacySessionStore, checkedCustomMessage, checkedCustomType, checkedLabel, getLastConversationMessageId, getLatestSessionSummary, historyPageGeneration, storeSnapshotIndex, transcriptCursorWithin } from "./startup-8-0-34CBHPZH.js";
12
12
  import { admitPooledWorktree, adoptPrebuiltSeed, assertRpcSuccess, authForStream, captureLocatedCheckout, captureWorktreeSnapshot, carryOverDegradedWork, childOfAttempt, chunkedToolResult, chunkedToolResultEntry, claimIdleWorktree, confirmPooledWorktreeLease, createKillTool, createKillToolDefinition, createLoadedAskUserQuestionToolDefinition, createToolNameMatcher, defaultResumePreflightIo, discardPooledWorktree, evictIdleWorktrees, executeNativePty, executeSupervisedCommand, expandSkillCommand, extensionsCanDecideProjectTrust, getExistingGitInstallPathAsync, getManagedNpmInstallPath, gitText, holdRestoredWorktree, holdsSessionSnapshotRef, hostPlatform, inheritWorkspace, isHeadOnlyAdvance, isMcpToolName, isRecoverableRestoreFailure, keepSessionSnapshotCommit, loadSnapshotPathPolicy, locateCheckout, nextCaptureTick, parseBlueprint, parseSource, pendingLfsDownload, pooledWorktreeHolder, readRepositoryConfig, recordPooledWorktreeState, recordWorktreeCapture, releaseRestoredWorktree, releaseSessionSnapshotRefs, removeRestoredWorktree, require_dist, restoreBestWorktree, restoreDegradedWorktree, restoreDegradedWorktreeAt, restoreWorktree, restoreWorktreeAt, retireSessionSnapshotRefs, runGit, selectDocument, setAsideWorktree, snapshotRestoreWarnings, unrestoredRecord, validateBashWait, validateTaskHeartbeatMs, verifyWorktree, waitForSupervisedCommand, waitingReleasedTools, withScratchDirectory, withoutSupersededAttempts, worktreeSetAside, writeWorkingTree } from "./startup-0-5-OHJNE6JH.js";
13
13
  import { OutputAccumulator, SNAPSHOT_COLLECTION_SESSION_DELAY_MS, TOOL_BLOCK_LIMITS, ToolBlockRecords, applyModelsJson, cancelledBuilds, canonicalPaths, canonicalizeWorktreePathAsync, collapseToolBlockLines, defaultWorktreeSnapshotStoreDir, migrateAuthJsonConfigValues, migrateAuthJsonConfigValuesAsync, migrateModelsJsonConfigValues, migrateModelsJsonConfigValuesAsync, renderDiff, runCanonicalSteps, runCanonicalStepsAsync, sameRemote, scheduleSnapshotCollection, settleOtherBuilds, taskTranscriptPageWithCuts, withBuildLocks } from "./startup-0-4-HN5EB4K7.js";
@@ -18,7 +18,7 @@ import fs, { access, appendFile, copyFile, mkdir, open, readFile, readdir, realp
18
18
  import { chmodSync, constants, existsSync, lstatSync, mkdirSync, promises, readFileSync, readdirSync, readlinkSync, realpath as realpath$1, realpathSync, renameSync, rmSync, rmdirSync, statSync, unwatchFile, watchFile, writeFileSync } from "fs";
19
19
  import nodePath, { dirname, isAbsolute, join, resolve, sep } from "path";
20
20
  import { constants as constants$1, tmpdir } from "node:os";
21
- import path, { basename as basename$1, delimiter as delimiter$1, dirname as dirname$1, extname, isAbsolute as isAbsolute$1, join as join$1, parse, relative as relative$1, resolve as resolve$1, sep as sep$1, win32 as win32$1 } from "node:path";
21
+ import path, { basename as basename$1, delimiter as delimiter$1, dirname as dirname$1, extname, isAbsolute as isAbsolute$1, join as join$1, parse as parse$2, relative as relative$1, resolve as resolve$1, sep as sep$1, win32 as win32$1 } from "node:path";
22
22
  import { fileURLToPath } from "node:url";
23
23
  import { spawn } from "node:child_process";
24
24
  import { execFile as execFile$1 } from "child_process";
@@ -40,12 +40,12 @@ import { completeSimple } from "@bastani/atomic-ai/compat";
40
40
  import { randomUUID as randomUUID$1 } from "crypto";
41
41
  import { createInterface } from "node:readline";
42
42
  import { DEGRADED_RESTORE_RETENTION_DAYS, snapshotBlobHashes } from "../core/worktree-snapshot/blob-store.js";
43
- import { StorageProvider, loadStorageAdapter, resolveAdapterOptions, secretFilePath, storageSelectionKey } from "../core/storage/provider.js";
43
+ import { StorageProvider, loadStorageAdapter, resolveAdapterOptions, secretFilePath as secretFilePath$1, storageSelectionKey } from "../core/storage/provider.js";
44
44
  import { setImmediate as setImmediate$1 } from "node:timers";
45
45
  import { isProxy } from "node:util/types";
46
46
  import { defaultSessionDatabasePath, defaultSessionDatabasePathAsync, defaultSessionDatabasePathSteps, defaultSharedStoragePath, defaultSharedStoragePathSteps, runStorageSteps, runStorageStepsSync, storageHomeDir, storagePathBaseDir, storagePathBaseDirSteps, storageSettingsSteps, takeStorageAdoptionNotice } from "../core/storage/file-identity.js";
47
47
  import { Type as Type$1 } from "@bastani/atomic-ai/utils/typebox/index";
48
- import { deflateRaw, gunzip, gzip, inflateRaw } from "node:zlib";
48
+ import { deflateRaw as deflateRaw$1, gunzip as gunzip$1, gzip as gzip$1, inflateRaw as inflateRaw$1 } from "node:zlib";
49
49
  import { getAllBuiltinModels } from "@bastani/atomic-ai/providers/all";
50
50
  import { Value } from "@bastani/atomic-ai/utils/typebox/value";
51
51
  import { LIBSQL_ADAPTER_PACKAGE, LOCAL_SESSIONS_STORAGE, POSTGRES_ADAPTER_PACKAGE, STORAGE_TOKEN_FILE, TEAM_PROFILE_ENV, checkSharedDatabaseArguments, checkTeamPrefix, checkTeamUrl, conflictingTeamToken, emptyTeamToken, environmentTeamProfileAsync, inMemorySecret, isFileUrl, isPostgresUrl, missingTeamToken, readTeamTokenFile, selectStorage, selectStorageSteps } from "../core/storage/selection.js";
@@ -1948,9 +1948,9 @@ function resolveToCwdIfUnambiguous(filePath, cwd) {
1948
1948
  }
1949
1949
  async function resolveToCwdAsync(filePath, cwd) {
1950
1950
  const { literal, normalized } = await resolveLiteralAndNormalizedAsync(filePath, cwd);
1951
- if (await pathExists$1(literal)) return literal;
1952
- if (await pathExists$1(normalized)) return normalized;
1953
- if (await pathExists$1(dirname$1(literal))) return literal;
1951
+ if (await pathExists(literal)) return literal;
1952
+ if (await pathExists(normalized)) return normalized;
1953
+ if (await pathExists(dirname$1(literal))) return literal;
1954
1954
  return normalized;
1955
1955
  }
1956
1956
  /** macOS filename variants of the literal and normalised spellings, in the order they are tried. */
@@ -1973,8 +1973,8 @@ function resolveReadPath(filePath, cwd) {
1973
1973
  }
1974
1974
  async function resolveReadPathAsync(filePath, cwd) {
1975
1975
  const resolved = await resolveToCwdAsync(filePath, cwd);
1976
- if (await pathExists$1(resolved)) return resolved;
1977
- for (const variant of readPathVariants(await resolveLiteralAndNormalizedAsync(filePath, cwd))) if (await pathExists$1(variant)) return variant;
1976
+ if (await pathExists(resolved)) return resolved;
1977
+ for (const variant of readPathVariants(await resolveLiteralAndNormalizedAsync(filePath, cwd))) if (await pathExists(variant)) return variant;
1978
1978
  return resolved;
1979
1979
  }
1980
1980
  // dist/core/resume/blueprint/envrc.js
@@ -2005,7 +2005,7 @@ function sessionEnvrcPath(storeDir, root) {
2005
2005
  */
2006
2006
  async function sessionEnvironmentPrefix(storeDir, roots) {
2007
2007
  const files = [];
2008
- for (const file of new Set([...roots].map((root) => sessionEnvrcPath(storeDir, root)))) if (await pathExists$1(file)) files.push(file);
2008
+ for (const file of new Set([...roots].map((root) => sessionEnvrcPath(storeDir, root)))) if (await pathExists(file)) files.push(file);
2009
2009
  if (files.length === 0) return void 0;
2010
2010
  return [
2011
2011
  "set -a",
@@ -2202,7 +2202,7 @@ function formatText(source, template, values) {
2202
2202
  }
2203
2203
  return result;
2204
2204
  }
2205
- function parse$2(source) {
2205
+ function parse$1(source) {
2206
2206
  const tokens = tokenize(source);
2207
2207
  let position = 0;
2208
2208
  function fail(problem) {
@@ -2325,7 +2325,7 @@ function parse$2(source) {
2325
2325
  if (position < tokens.length) fail("unexpected input after the expression");
2326
2326
  return tree;
2327
2327
  }
2328
- __name(parse$2, "parse");
2328
+ __name(parse$1, "parse");
2329
2329
  function typeOf(value) {
2330
2330
  if (value === null) return "null";
2331
2331
  if (Array.isArray(value)) return "array";
@@ -2419,7 +2419,7 @@ function usesStatusFunction(node) {
2419
2419
  }
2420
2420
  /** The value of one expression, the text between `${{` and `}}`. */
2421
2421
  function evaluateExpression(source, context) {
2422
- return evaluate(parse$2(source), context, source);
2422
+ return evaluate(parse$1(source), context, source);
2423
2423
  }
2424
2424
  function findClose(text, from) {
2425
2425
  let quoted = false;
@@ -2450,7 +2450,7 @@ function interpolate(template, context) {
2450
2450
  function evaluateCondition(condition, context) {
2451
2451
  const trimmed = condition.trim();
2452
2452
  const source = trimmed.startsWith("${{") && findClose(trimmed, 3) === trimmed.length - 2 ? trimmed.slice(3, -2) : trimmed;
2453
- const tree = parse$2(source);
2453
+ const tree = parse$1(source);
2454
2454
  const holds = isTruthy(evaluate(tree, context, source));
2455
2455
  return usesStatusFunction(tree) ? holds : !context.failed && holds;
2456
2456
  }
@@ -4333,9 +4333,9 @@ async function recordBlueprintContext(sessionManager, context) {
4333
4333
  async function enclosingRepositoryRoot(directory) {
4334
4334
  let current = directory;
4335
4335
  for (;;) {
4336
- if (await pathExists$1(join$1(current, ".git"))) return current;
4336
+ if (await pathExists(join$1(current, ".git"))) return current;
4337
4337
  const parent = dirname$1(current);
4338
- if (parent === current || current === parse(current).root) return void 0;
4338
+ if (parent === current || current === parse$2(current).root) return void 0;
4339
4339
  current = parent;
4340
4340
  }
4341
4341
  }
@@ -4552,7 +4552,7 @@ async function returnToStartingCheckout(sessionManager, match, storeDir, options
4552
4552
  if (restore === void 0 || restore.snapshotId !== match.snapshot.id) return void 0;
4553
4553
  const checkout = resolve$1(restore.from);
4554
4554
  const cwd = resolve$1(checkout, relative$1(match.root, match.cwd));
4555
- if (isInside$1(storeDir, checkout) || !await pathExists$1(cwd)) return void 0;
4555
+ if (isInside$1(storeDir, checkout) || !await pathExists(cwd)) return void 0;
4556
4556
  const examined = await orFallBack(options, "return-to-checkout-verify", void 0, async () => ({
4557
4557
  holdsCommit: await workedInCheckout(match.snapshot, checkout, sessionManager.getSessionId(), options.signal),
4558
4558
  matches: !await worktreeNeedsRestore(match.snapshot, checkout, options)
@@ -4858,7 +4858,7 @@ async function continueWithoutGit(sessionManager, git, storeDir, options) {
4858
4858
  */
4859
4859
  async function continueWithoutRecords(sessionManager, missing, storeDir, options) {
4860
4860
  const recorded = await mapRestoredPathAsync(sessionManager.getCwd(), sessionManager.getWorktreeRootMappings());
4861
- const opened = await openResumedSession(sessionManager, await pathExists$1(recorded) ? recorded : resolve$1(options.launchCwd), [], options.sessionDirectory);
4861
+ const opened = await openResumedSession(sessionManager, await pathExists(recorded) ? recorded : resolve$1(options.launchCwd), [], options.sessionDirectory);
4862
4862
  const context = await describeBlueprintsInPlace(opened.sessionManager, storeDir, options);
4863
4863
  const notices = missing.map((record) => ({
4864
4864
  type: "warning",
@@ -5373,7 +5373,7 @@ async function checkoutsWorkedHere(checkouts, cwd, sessionId, options, partial =
5373
5373
  const storeDir = resolve$1(options.storeDir ?? defaultWorktreeSnapshotStoreDir());
5374
5374
  const own = /* @__PURE__ */ new Set();
5375
5375
  for (const [root, snapshot] of checkouts) {
5376
- if (!await pathExists$1(isInside$1(root, cwd) ? cwd : root)) continue;
5376
+ if (!await pathExists(isInside$1(root, cwd) ? cwd : root)) continue;
5377
5377
  if (await worktreeSetAside(storeDir, root)) continue;
5378
5378
  if (await pooledWorktreeHolder(storeDir, root) !== "unpooled") {
5379
5379
  if (!await pooledWorktreeOwnedElsewhere(storeDir, root, sessionId) && !partial.has(resolve$1(root))) own.add(root);
@@ -5395,7 +5395,7 @@ async function partialRestores(sessionManager, options) {
5395
5395
  for (const mapping of sessionManager.getWorktreeRootMappings()) {
5396
5396
  const degraded = mapping.degraded;
5397
5397
  const snapshot = current.get(mapping.to);
5398
- if (degraded === void 0 || snapshot?.id !== mapping.snapshotId || !await pathExists$1(mapping.to)) continue;
5398
+ if (degraded === void 0 || snapshot?.id !== mapping.snapshotId || !await pathExists(mapping.to)) continue;
5399
5399
  const restored = {
5400
5400
  remotes: [...snapshot.remotes],
5401
5401
  head: degraded.head,
@@ -11109,10 +11109,10 @@ function writeTarMember(source, memberPath, data, label) {
11109
11109
  ]);
11110
11110
  }
11111
11111
  // dist/core/tools/resource-selectors.js
11112
- const deflateRaw$1 = promisify(deflateRaw);
11113
- const gunzip$1 = promisify(gunzip);
11114
- const gzip$1 = promisify(gzip);
11115
- const inflateRaw$1 = promisify(inflateRaw);
11112
+ const deflateRaw = promisify(deflateRaw$1);
11113
+ const gunzip = promisify(gunzip$1);
11114
+ const gzip = promisify(gzip$1);
11115
+ const inflateRaw = promisify(inflateRaw$1);
11116
11116
  const historyNoteWindows = /* @__PURE__ */ new WeakMap();
11117
11117
  const INTERNAL_URL_PREFIX = new RegExp(`^(?:${[
11118
11118
  "skill",
@@ -11139,7 +11139,7 @@ function isUrlLike(value) {
11139
11139
  }
11140
11140
  const SQLITE_HEADER = "SQLite format 3\0";
11141
11141
  async function existingSqliteFile(path) {
11142
- if (!await pathExists$1(path)) return void 0;
11142
+ if (!await pathExists(path)) return void 0;
11143
11143
  const file = await open(path, "r");
11144
11144
  try {
11145
11145
  const header = Buffer.alloc(16);
@@ -11228,7 +11228,7 @@ function crc32(data) {
11228
11228
  let crc = -1;
11229
11229
  for (const byte of data) {
11230
11230
  crc ^= byte;
11231
- for (let i = 0; i < 8; i++) crc = crc >>> 1 ^ 3988292384 & -(crc & 1);
11231
+ for (let i = 0; i < 8; i++) crc = crc >>> 1 ^ 0xedb88320 & -(crc & 1);
11232
11232
  }
11233
11233
  return ~crc >>> 0;
11234
11234
  }
@@ -11248,7 +11248,7 @@ function zipEntryPayload(buf, label, name, localOffset, compressedSize) {
11248
11248
  async function readZipEntriesFromBuffer(buf, label) {
11249
11249
  const entries = /* @__PURE__ */ new Map();
11250
11250
  let eocd = -1;
11251
- for (let i = buf.length - 22; i >= 0; i--) if (buf.readUInt32LE(i) === 101010256) {
11251
+ for (let i = buf.length - 22; i >= 0; i--) if (buf.readUInt32LE(i) === 0x6054b50) {
11252
11252
  eocd = i;
11253
11253
  break;
11254
11254
  }
@@ -11271,7 +11271,7 @@ async function readZipEntriesFromBuffer(buf, label) {
11271
11271
  if (name.endsWith("/")) continue;
11272
11272
  if (size > MAX_ARCHIVE_MEMBER_BYTES) throw new Error(`Archive member too large: ${name}`);
11273
11273
  const data = zipEntryPayload(buf, label, name, localOffset, compressedSize);
11274
- entries.set(name, method === 0 ? Buffer.from(data) : method === 8 ? await inflateRaw$1(data, { maxOutputLength: MAX_ARCHIVE_MEMBER_BYTES }) : (() => {
11274
+ entries.set(name, method === 0 ? Buffer.from(data) : method === 8 ? await inflateRaw(data, { maxOutputLength: MAX_ARCHIVE_MEMBER_BYTES }) : (() => {
11275
11275
  throw new Error(`Unsupported zip compression method ${method} for ${name}`);
11276
11276
  })());
11277
11277
  }
@@ -11286,7 +11286,7 @@ async function writeZipEntries(path, entries) {
11286
11286
  let offset = 0;
11287
11287
  for (const [name, data] of entries) {
11288
11288
  const nameBuf = Buffer.from(name);
11289
- const compressed = await deflateRaw$1(data);
11289
+ const compressed = await deflateRaw(data);
11290
11290
  const crc = crc32(data);
11291
11291
  const local = Buffer.alloc(30);
11292
11292
  local.writeUInt32LE(67324752, 0);
@@ -11312,7 +11312,7 @@ async function writeZipEntries(path, entries) {
11312
11312
  }
11313
11313
  const centralSize = centrals.reduce((sum, part) => sum + part.length, 0);
11314
11314
  const eocd = Buffer.alloc(22);
11315
- eocd.writeUInt32LE(101010256, 0);
11315
+ eocd.writeUInt32LE(0x6054b50, 0);
11316
11316
  eocd.writeUInt16LE(entries.size, 8);
11317
11317
  eocd.writeUInt16LE(entries.size, 10);
11318
11318
  eocd.writeUInt32LE(centralSize, 12);
@@ -11326,7 +11326,7 @@ async function writeZipEntries(path, entries) {
11326
11326
  async function readTarBuffer(path) {
11327
11327
  const raw = await readFile(path);
11328
11328
  if (raw.length > MAX_TAR_ARCHIVE_BYTES) throw new Error(`Archive too large: ${path}`);
11329
- const buf = isGzipTar(path) ? await gunzip$1(raw, { maxOutputLength: MAX_TAR_ARCHIVE_BYTES }) : raw;
11329
+ const buf = isGzipTar(path) ? await gunzip(raw, { maxOutputLength: MAX_TAR_ARCHIVE_BYTES }) : raw;
11330
11330
  if (buf.length > MAX_TAR_ARCHIVE_BYTES) throw new Error(`Archive too large: ${path}`);
11331
11331
  return buf;
11332
11332
  }
@@ -11352,7 +11352,7 @@ function listArchiveDirectory(names, memberPath) {
11352
11352
  async function readZipSelector(path, memberPath) {
11353
11353
  const buf = await readFile(path);
11354
11354
  let eocd = -1;
11355
- for (let i = buf.length - 22; i >= 0; i--) if (buf.readUInt32LE(i) === 101010256) {
11355
+ for (let i = buf.length - 22; i >= 0; i--) if (buf.readUInt32LE(i) === 0x6054b50) {
11356
11356
  eocd = i;
11357
11357
  break;
11358
11358
  }
@@ -11379,7 +11379,7 @@ async function readZipSelector(path, memberPath) {
11379
11379
  if (!memberPath) continue;
11380
11380
  if (size > MAX_ARCHIVE_MEMBER_BYTES) throw new Error(`Archive member too large: ${memberPath}`);
11381
11381
  const data = zipEntryPayload(buf, path, name, localOffset, compressedSize);
11382
- return (method === 0 ? Buffer.from(data) : method === 8 ? await inflateRaw$1(data, { maxOutputLength: MAX_ARCHIVE_MEMBER_BYTES }) : (() => {
11382
+ return (method === 0 ? Buffer.from(data) : method === 8 ? await inflateRaw(data, { maxOutputLength: MAX_ARCHIVE_MEMBER_BYTES }) : (() => {
11383
11383
  throw new Error(`Unsupported zip compression method ${method} for ${name}`);
11384
11384
  })()).toString("utf8");
11385
11385
  }
@@ -11405,13 +11405,13 @@ function validateArchiveMemberPath(memberPath) {
11405
11405
  if (!memberPath || memberPath.startsWith("/") || memberPath.endsWith("/") || memberPath.split("/").includes("..")) throw new Error(`Invalid archive member path: ${memberPath}`);
11406
11406
  }
11407
11407
  async function writeZipEntrySelective(path, memberPath, data) {
11408
- const source = await pathExists$1(path) ? await readFile(path) : Buffer.alloc(0);
11408
+ const source = await pathExists(path) ? await readFile(path) : Buffer.alloc(0);
11409
11409
  const locals = [];
11410
11410
  const centrals = [];
11411
11411
  let offset = 0;
11412
11412
  if (source.length > 0) {
11413
11413
  let eocd = -1;
11414
- for (let i = source.length - 22; i >= 0; i--) if (source.readUInt32LE(i) === 101010256) {
11414
+ for (let i = source.length - 22; i >= 0; i--) if (source.readUInt32LE(i) === 0x6054b50) {
11415
11415
  eocd = i;
11416
11416
  break;
11417
11417
  }
@@ -11459,7 +11459,7 @@ async function writeZipEntrySelective(path, memberPath, data) {
11459
11459
  offset += localLen;
11460
11460
  const centralSize = centrals.reduce((sum, part) => sum + part.length, 0);
11461
11461
  const eocd = Buffer.alloc(22);
11462
- eocd.writeUInt32LE(101010256, 0);
11462
+ eocd.writeUInt32LE(0x6054b50, 0);
11463
11463
  eocd.writeUInt16LE(centrals.length, 8);
11464
11464
  eocd.writeUInt16LE(centrals.length, 10);
11465
11465
  eocd.writeUInt32LE(centralSize, 12);
@@ -11478,8 +11478,8 @@ async function writeArchiveSelector(selector, content) {
11478
11478
  return;
11479
11479
  }
11480
11480
  const path = selector.archivePath;
11481
- const out = writeTarMember(await pathExists$1(path) ? await readTarBuffer(path) : Buffer.alloc(0), selector.memberPath, Buffer.from(content), path);
11482
- await writeFile(path, isGzipTar(path) ? await gzip$1(out) : out);
11481
+ const out = writeTarMember(await pathExists(path) ? await readTarBuffer(path) : Buffer.alloc(0), selector.memberPath, Buffer.from(content), path);
11482
+ await writeFile(path, isGzipTar(path) ? await gzip(out) : out);
11483
11483
  }
11484
11484
  const SEARCH_LINE_LIMIT = 512;
11485
11485
  function truncateSearchLine(line) {
@@ -11649,7 +11649,7 @@ async function fallbackInternalPath(value, cwd) {
11649
11649
  const rest = skill[2] || "SKILL.md";
11650
11650
  const candidates = [];
11651
11651
  for (const base of [".agents/skills", "packages/subagents/skills"]) candidates.push(await resolveContainedPath(await resolveContainedLocalPath(cwd, base, "skill:// resource"), `${name}/${rest}`, "skill:// resource"));
11652
- for (const candidate of candidates) if (await pathExists$1(candidate)) return candidate;
11652
+ for (const candidate of candidates) if (await pathExists(candidate)) return candidate;
11653
11653
  return;
11654
11654
  }
11655
11655
  const local = value.match(/^local:\/\/(.+)$/);
@@ -11664,7 +11664,7 @@ async function readInternalSelector(value, cwd, context) {
11664
11664
  if (Buffer.isBuffer(routed)) return routed.toString("utf8");
11665
11665
  if (value.startsWith("conflict://")) return readConflictUrl(value, cwd);
11666
11666
  const resolved = await resolveViaRouter(value, cwd, context);
11667
- if (!resolved || !await pathExists$1(resolved)) throw new Error(`Internal resource not found or no session router supports it: ${value}`);
11667
+ if (!resolved || !await pathExists(resolved)) throw new Error(`Internal resource not found or no session router supports it: ${value}`);
11668
11668
  return readFile(resolved, "utf8");
11669
11669
  }
11670
11670
  async function readInternalSelected(value, selection, context) {
@@ -12105,7 +12105,7 @@ function parseLooseJsonObject(content) {
12105
12105
  }
12106
12106
  async function writeSqliteSelector(selector, content) {
12107
12107
  if (!selector.table) throw new Error("SQLite write target must include a table name");
12108
- if (!await pathExists$1(selector.databasePath)) throw new Error(`SQLite database does not exist: ${selector.databasePath}`);
12108
+ if (!await pathExists(selector.databasePath)) throw new Error(`SQLite database does not exist: ${selector.databasePath}`);
12109
12109
  if (content.trim() === "") {
12110
12110
  if (!selector.rowId) throw new Error("SQLite empty content deletes a row only when a row id is present.");
12111
12111
  const db = await SqliteSelectorConnection.open(selector.databasePath);
@@ -12484,7 +12484,7 @@ function createBashToolDefinition(cwd, options, presentation = BASH_SHELL_PRESEN
12484
12484
  prepareArguments: prepareShellInput,
12485
12485
  parameters: bashSchema,
12486
12486
  outputSchema: bashOutputSchema,
12487
- maxResultSizeChars: Infinity,
12487
+ maxResultSizeChars: 1e400,
12488
12488
  async execute(_toolCallId, bashCommand, signal, onUpdate, ctx) {
12489
12489
  if (bashCommand.action !== void 0) {
12490
12490
  if (bashCommand.action !== "wait" || typeof bashCommand.id !== "string" || Object.keys(bashCommand).some((key) => ![
@@ -16597,7 +16597,7 @@ function buildFindResult(relativized, effectiveLimit, timedOut, timeoutMs, skipp
16597
16597
  };
16598
16598
  }
16599
16599
  const defaultFindOperations = {
16600
- exists: pathExists$1,
16600
+ exists: pathExists,
16601
16601
  glob: () => []
16602
16602
  };
16603
16603
  function stripTrailingForwardSlashes(value) {
@@ -16979,7 +16979,7 @@ const lsToolSystemPromptContribution = Object.freeze({
16979
16979
  });
16980
16980
  const DEFAULT_LIMIT$2 = 500;
16981
16981
  const defaultLsOperations = {
16982
- exists: pathExists$1,
16982
+ exists: pathExists,
16983
16983
  stat,
16984
16984
  readdir
16985
16985
  };
@@ -17328,10 +17328,10 @@ function applyNotebookEditableText(notebook, text, displayPath) {
17328
17328
  return next;
17329
17329
  }
17330
17330
  async function readEditableNotebookText(absolutePath, displayPath) {
17331
- return notebookToEditableText(await pathExists$1(absolutePath) ? parseNotebookSafe(await readFile(absolutePath, "utf8"), displayPath) : emptyNotebook());
17331
+ return notebookToEditableText(await pathExists(absolutePath) ? parseNotebookSafe(await readFile(absolutePath, "utf8"), displayPath) : emptyNotebook());
17332
17332
  }
17333
17333
  async function serializeEditedNotebookText(absolutePath, displayPath, text) {
17334
- const next = applyNotebookEditableText(await pathExists$1(absolutePath) ? parseNotebookSafe(await readFile(absolutePath, "utf8"), displayPath) : emptyNotebook(), text, displayPath);
17334
+ const next = applyNotebookEditableText(await pathExists(absolutePath) ? parseNotebookSafe(await readFile(absolutePath, "utf8"), displayPath) : emptyNotebook(), text, displayPath);
17335
17335
  return JSON.stringify(next, null, 1);
17336
17336
  }
17337
17337
  function parseNotebookSafe(raw, displayPath) {
@@ -17532,7 +17532,7 @@ function documentExtension(source) {
17532
17532
  }
17533
17533
  async function extractMarkitDocument(buffer, source) {
17534
17534
  const ext = documentExtension(source);
17535
- const result = await pathExists$1(source) ? await convertFileWithMarkit(source) : await convertBufferWithMarkit(buffer, ext);
17535
+ const result = await pathExists(source) ? await convertFileWithMarkit(source) : await convertBufferWithMarkit(buffer, ext);
17536
17536
  return result.ok ? result.content : `[Cannot read ${ext} file: ${result.error || "conversion failed"}]`;
17537
17537
  }
17538
17538
  async function extractDocumentMarkdown(buffer, source) {
@@ -17809,7 +17809,7 @@ function createReadToolDefinition(cwd, options) {
17809
17809
  },
17810
17810
  parameters: readSchema,
17811
17811
  outputSchema: readOutputSchema,
17812
- maxResultSizeChars: Infinity,
17812
+ maxResultSizeChars: 1e400,
17813
17813
  async execute(_toolCallId, { path }, signal, _onUpdate, ctx) {
17814
17814
  const resourceCtx = ctx;
17815
17815
  const executionCwd = ctx?.cwd || cwd;
@@ -18801,18 +18801,18 @@ const searchToolSystemPromptContribution = Object.freeze({
18801
18801
  });
18802
18802
  /** An existing path is used exactly, so `app/[id]/page.tsx` is that file, not the pattern `app/[id]` (#5177). */
18803
18803
  async function splitSearchPath(value, cwd) {
18804
- return await pathExists$1(await resolveToCwdAsync(normalizePathLikeInput(value), cwd)) ? literalPathLike(value) : splitPathLikeGlob(value);
18804
+ return await pathExists(await resolveToCwdAsync(normalizePathLikeInput(value), cwd)) ? literalPathLike(value) : splitPathLikeGlob(value);
18805
18805
  }
18806
18806
  async function delimiterInExistingSearchGlobRoot(value, cwd) {
18807
18807
  const selector = splitLineRangeSelector(value);
18808
18808
  const parsed = splitPathLikeGlob(selector.path);
18809
- return !!parsed.glob && /[;,\s]/.test(parsed.basePath) && await pathExists$1(await resolveToCwdAsync(parsed.basePath, cwd));
18809
+ return !!parsed.glob && /[;,\s]/.test(parsed.basePath) && await pathExists(await resolveToCwdAsync(parsed.basePath, cwd));
18810
18810
  }
18811
18811
  async function archiveSelectorExists(value, cwd) {
18812
18812
  const archive = parseArchiveSelector(value);
18813
18813
  if (!archive) return false;
18814
18814
  const resolved = await resolveArchiveSelector(archive, cwd);
18815
- if (!await pathExists$1(resolved.archivePath)) return false;
18815
+ if (!await pathExists(resolved.archivePath)) return false;
18816
18816
  if (!resolved.memberPath) return true;
18817
18817
  try {
18818
18818
  await readArchiveSelector(resolved);
@@ -18824,7 +18824,7 @@ async function archiveSelectorExists(value, cwd) {
18824
18824
  async function searchPathResolvable(value, cwd) {
18825
18825
  const selector = splitLineRangeSelector(value);
18826
18826
  if (parseArchiveSelector(selector.path)) return archiveSelectorExists(selector.path, cwd);
18827
- return !!await sqliteSelectorForPath(selector.path, cwd) || isInternalUrl(selector.path) || await pathExists$1(await resolveToCwdAsync((await splitSearchPath(selector.path, cwd)).basePath, cwd));
18827
+ return !!await sqliteSelectorForPath(selector.path, cwd) || isInternalUrl(selector.path) || await pathExists(await resolveToCwdAsync((await splitSearchPath(selector.path, cwd)).basePath, cwd));
18828
18828
  }
18829
18829
  async function someResolvable(parts, cwd) {
18830
18830
  for (const part of parts) if (await searchPathResolvable(part, cwd)) return true;
@@ -18844,7 +18844,7 @@ async function normalizePaths(pathsValue, cwd) {
18844
18844
  continue;
18845
18845
  }
18846
18846
  const resourceLike = /^[a-z]+:\/\//i.test(raw) || /^[^:]+\.(?:zip|jar|tar|tgz|gz|sqlite|db):/i.test(raw);
18847
- if (await pathExists$1(await resolveToCwdAsync(splitLineRangeSelector(raw).path, cwd)) || await delimiterInExistingSearchGlobRoot(raw, cwd) || await archiveSelectorExists(raw, cwd)) {
18847
+ if (await pathExists(await resolveToCwdAsync(splitLineRangeSelector(raw).path, cwd)) || await delimiterInExistingSearchGlobRoot(raw, cwd) || await archiveSelectorExists(raw, cwd)) {
18848
18848
  expanded.push(raw);
18849
18849
  continue;
18850
18850
  }
@@ -19054,7 +19054,7 @@ async function cwdRelativeSearchOutput(text, cwd, targetPath) {
19054
19054
  const displayPaths = /* @__PURE__ */ new Map();
19055
19055
  for (const group of groups) {
19056
19056
  const rootPath = targetIsFile ? searchRoot : join$1(searchRoot, group.path);
19057
- const absolutePath = await pathExists$1(rootPath) ? rootPath : resolve$1(cwd, group.path);
19057
+ const absolutePath = await pathExists(rootPath) ? rootPath : resolve$1(cwd, group.path);
19058
19058
  displayPaths.set(group.path, displaySearchPath(absolutePath, cwd));
19059
19059
  }
19060
19060
  return text.split("\n").map((line) => {
@@ -19583,7 +19583,7 @@ async function generateTodoId(todosDir) {
19583
19583
  for (let attempt = 0; attempt < 10; attempt += 1) {
19584
19584
  const id = crypto$1.randomBytes(4).toString("hex");
19585
19585
  const todoPath = getTodoPath(todosDir, id);
19586
- if (!await pathExists$1(todoPath)) return id;
19586
+ if (!await pathExists(todoPath)) return id;
19587
19587
  }
19588
19588
  throw new Error("Failed to generate unique todo id");
19589
19589
  }
@@ -19615,7 +19615,7 @@ async function listTodos(todosDir) {
19615
19615
  return sortTodos(todos);
19616
19616
  }
19617
19617
  async function ensureTodoExists(filePath, id) {
19618
- if (!await pathExists$1(filePath)) return null;
19618
+ if (!await pathExists(filePath)) return null;
19619
19619
  return readTodoFile(filePath, id);
19620
19620
  }
19621
19621
  async function appendTodoBody(filePath, todo, text) {
@@ -19630,7 +19630,7 @@ async function claimTodoAssignment(todosDir, id, ctx, force = false) {
19630
19630
  if ("error" in validated) return { error: validated.error };
19631
19631
  const normalizedId = validated.id;
19632
19632
  const filePath = getTodoPath(todosDir, normalizedId);
19633
- if (!await pathExists$1(filePath)) return { error: `Todo ${displayTodoId(id)} not found` };
19633
+ if (!await pathExists(filePath)) return { error: `Todo ${displayTodoId(id)} not found` };
19634
19634
  const sessionId = ctx.sessionManager.getSessionId();
19635
19635
  return withTodoLock(todosDir, normalizedId, ctx, async () => {
19636
19636
  const existing = await ensureTodoExists(filePath, normalizedId);
@@ -19650,7 +19650,7 @@ async function releaseTodoAssignment(todosDir, id, ctx, force = false) {
19650
19650
  if ("error" in validated) return { error: validated.error };
19651
19651
  const normalizedId = validated.id;
19652
19652
  const filePath = getTodoPath(todosDir, normalizedId);
19653
- if (!await pathExists$1(filePath)) return { error: `Todo ${displayTodoId(id)} not found` };
19653
+ if (!await pathExists(filePath)) return { error: `Todo ${displayTodoId(id)} not found` };
19654
19654
  const sessionId = ctx.sessionManager.getSessionId();
19655
19655
  return withTodoLock(todosDir, normalizedId, ctx, async () => {
19656
19656
  const existing = await ensureTodoExists(filePath, normalizedId);
@@ -19668,7 +19668,7 @@ async function deleteTodo(todosDir, id, ctx) {
19668
19668
  if ("error" in validated) return { error: validated.error };
19669
19669
  const normalizedId = validated.id;
19670
19670
  const filePath = getTodoPath(todosDir, normalizedId);
19671
- if (!await pathExists$1(filePath)) return { error: `Todo ${displayTodoId(id)} not found` };
19671
+ if (!await pathExists(filePath)) return { error: `Todo ${displayTodoId(id)} not found` };
19672
19672
  return withTodoLock(todosDir, normalizedId, ctx, async () => {
19673
19673
  const existing = await ensureTodoExists(filePath, normalizedId);
19674
19674
  if (!existing) return { error: `Todo ${displayTodoId(id)} not found` };
@@ -19762,7 +19762,7 @@ async function executeUpdateAction(todosDir, params, ctx) {
19762
19762
  const normalizedId = validated.id;
19763
19763
  const displayId = formatTodoId(normalizedId);
19764
19764
  const filePath = getTodoPath(todosDir, normalizedId);
19765
- if (!await pathExists$1(filePath)) return todoActionResult("update", `Todo ${displayId} not found`, "not found");
19765
+ if (!await pathExists(filePath)) return todoActionResult("update", `Todo ${displayId} not found`, "not found");
19766
19766
  const result = await withTodoLock(todosDir, normalizedId, ctx, async () => {
19767
19767
  const existing = await ensureTodoExists(filePath, normalizedId);
19768
19768
  if (!existing) return { error: `Todo ${displayId} not found` };
@@ -19786,7 +19786,7 @@ async function executeAppendAction(todosDir, params, ctx) {
19786
19786
  const normalizedId = validated.id;
19787
19787
  const displayId = formatTodoId(normalizedId);
19788
19788
  const filePath = getTodoPath(todosDir, normalizedId);
19789
- if (!await pathExists$1(filePath)) return todoActionResult("append", `Todo ${displayId} not found`, "not found");
19789
+ if (!await pathExists(filePath)) return todoActionResult("append", `Todo ${displayId} not found`, "not found");
19790
19790
  const result = await withTodoLock(todosDir, normalizedId, ctx, async () => {
19791
19791
  const existing = await ensureTodoExists(filePath, normalizedId);
19792
19792
  if (!existing) return { error: `Todo ${displayId} not found` };
@@ -20561,7 +20561,7 @@ async function findGitPathsAsync(cwd) {
20561
20561
  directories.push(dir);
20562
20562
  if (dirname(dir) === dir) break;
20563
20563
  }
20564
- const present = await Promise.all(directories.map((dir) => pathExists$1(join(dir, ".git"))));
20564
+ const present = await Promise.all(directories.map((dir) => pathExists(join(dir, ".git"))));
20565
20565
  for (const [index, dir] of directories.entries()) {
20566
20566
  const gitPath = join(dir, ".git");
20567
20567
  if (present[index]) try {
@@ -20571,17 +20571,17 @@ async function findGitPathsAsync(cwd) {
20571
20571
  if (content.startsWith("gitdir: ")) {
20572
20572
  const gitDir = resolve(dir, content.slice(8).trim());
20573
20573
  const headPath = join(gitDir, "HEAD");
20574
- if (!await pathExists$1(headPath)) return null;
20574
+ if (!await pathExists(headPath)) return null;
20575
20575
  const commonDirPath = join(gitDir, "commondir");
20576
20576
  return {
20577
20577
  repoDir: dir,
20578
- commonGitDir: await pathExists$1(commonDirPath) ? resolve(gitDir, (await readFile$1(commonDirPath, "utf8")).trim()) : gitDir,
20578
+ commonGitDir: await pathExists(commonDirPath) ? resolve(gitDir, (await readFile$1(commonDirPath, "utf8")).trim()) : gitDir,
20579
20579
  headPath
20580
20580
  };
20581
20581
  }
20582
20582
  } else if (gitStat.isDirectory()) {
20583
20583
  const headPath = join(gitPath, "HEAD");
20584
- if (!await pathExists$1(headPath)) return null;
20584
+ if (!await pathExists(headPath)) return null;
20585
20585
  return {
20586
20586
  repoDir: dir,
20587
20587
  commonGitDir: gitPath,
@@ -20982,10 +20982,10 @@ var FooterDataProvider = class FooterDataProvider {
20982
20982
  if (pollGitHead) this.installHeadPollingFallback();
20983
20983
  if (!this.headWatcher && !this.headWatchFileListener) return;
20984
20984
  const reftableDir = join(gitPaths.commonGitDir, "reftable");
20985
- if (!await pathExists$1(reftableDir) || !isCurrent()) return;
20985
+ if (!await pathExists(reftableDir) || !isCurrent()) return;
20986
20986
  const tablesListPath = join(reftableDir, "tables.list");
20987
20987
  const fingerprint = await readReftableTablesListFingerprint(tablesListPath);
20988
- const tablesListExists = await pathExists$1(tablesListPath);
20988
+ const tablesListExists = await pathExists(tablesListPath);
20989
20989
  if (!isCurrent()) return;
20990
20990
  this.reftableTablesListPath = tablesListPath;
20991
20991
  this.reftableTablesListFingerprint = fingerprint;
@@ -21029,7 +21029,7 @@ const emitWarningDefault = (message) => {
21029
21029
  };
21030
21030
  async function resolvePromptInput(input, description, onWarning = emitWarningDefault) {
21031
21031
  if (!input) return;
21032
- if (await pathExists(input)) try {
21032
+ if (await pathExists$1(input)) try {
21033
21033
  return stripBom(await readFile(input, "utf-8"));
21034
21034
  } catch (error) {
21035
21035
  onWarning(chalk.yellow(`Warning: Could not read ${description} file ${input}: ${error}`));
@@ -21042,7 +21042,7 @@ async function resolvePromptInput(input, description, onWarning = emitWarningDef
21042
21042
  * `resolvePromptInput` also accepts literal prompt text, which has no path.
21043
21043
  */
21044
21044
  async function resolveExistingPromptSourcePath(input) {
21045
- return input && await pathExists(input) ? resolvePath(input) : void 0;
21045
+ return input && await pathExists$1(input) ? resolvePath(input) : void 0;
21046
21046
  }
21047
21047
  async function resolveExistingPromptSourcePaths(inputs) {
21048
21048
  return (await Promise.all(inputs.map((input) => resolveExistingPromptSourcePath(input)))).filter((path) => path !== void 0);
@@ -21072,7 +21072,7 @@ function loadContextFileFromDir(dir) {
21072
21072
  async function loadContextFileFromDirAsync(dir, onWarning = emitWarningDefault) {
21073
21073
  for (const filename of CONTEXT_FILE_NAMES) {
21074
21074
  const filePath = join$1(dir, filename);
21075
- if (await pathExists(filePath)) try {
21075
+ if (await pathExists$1(filePath)) try {
21076
21076
  if (!(await stat(filePath)).isFile()) continue;
21077
21077
  return {
21078
21078
  path: filePath,
@@ -21356,7 +21356,7 @@ function settingsFileTarget(path) {
21356
21356
  }
21357
21357
  const realpathAsync = promisify(realpath$1);
21358
21358
  async function settingsFileTargetAsync(path) {
21359
- if (await pathExists(path)) return realpathAsync(path);
21359
+ if (await pathExists$1(path)) return realpathAsync(path);
21360
21360
  let current = path;
21361
21361
  for (let hop = 0; hop <= MAX_SYMLINK_HOPS; hop += 1) {
21362
21362
  if (!(await lstatIfPresent(current))?.isSymbolicLink()) return current;
@@ -21381,7 +21381,7 @@ async function lstatIfPresent(path) {
21381
21381
  }
21382
21382
  }
21383
21383
  async function readIfPresent(path) {
21384
- return await pathExists(path) ? readFile$1(path, "utf-8") : void 0;
21384
+ return await pathExists$1(path) ? readFile$1(path, "utf-8") : void 0;
21385
21385
  }
21386
21386
  /**
21387
21387
  * Replace a settings file so readers and a killed or out-of-space writer only ever leave the old or the new content:
@@ -21429,7 +21429,7 @@ function writeSettingsFile(path, content, expected) {
21429
21429
  }
21430
21430
  async function writeSettingsFileAsync(path, content, expected) {
21431
21431
  const target = await settingsFileTargetAsync(path);
21432
- const mode = await pathExists(target) ? (await promises.stat(target)).mode & 511 : void 0;
21432
+ const mode = await pathExists$1(target) ? (await promises.stat(target)).mode & 511 : void 0;
21433
21433
  const temporary = `${target}.${process.pid}.${randomUUID$1()}.tmp`;
21434
21434
  const assertUnchanged = async () => {
21435
21435
  if (expected !== void 0 && await readIfPresent(target) !== expected.content) throw new SettingsFileChangedError(path);
@@ -21667,7 +21667,7 @@ var FileSettingsStorage = class {
21667
21667
  return layers;
21668
21668
  };
21669
21669
  const layers = await read();
21670
- if (layers.every(({ content }) => parsesAsJson(content)) || !await pathExists(path)) return this.rememberLayers(scope, layers);
21670
+ if (layers.every(({ content }) => parsesAsJson(content)) || !await pathExists$1(path)) return this.rememberLayers(scope, layers);
21671
21671
  return inLockTurn(path, async () => {
21672
21672
  let release;
21673
21673
  try {
@@ -21725,15 +21725,15 @@ var FileSettingsStorage = class {
21725
21725
  await inLockTurn(path, async () => {
21726
21726
  let release;
21727
21727
  try {
21728
- if (await pathExists(path)) release = await this.acquireLockWithRetry(path);
21728
+ if (await pathExists$1(path)) release = await this.acquireLockWithRetry(path);
21729
21729
  for (let attempt = 0;; attempt += 1) {
21730
21730
  const current = await this.readMergedSettingsAsync(readPaths);
21731
21731
  let expected = { content: await this.primaryContentReadAsync(path, readPaths) };
21732
21732
  const next = fn(current);
21733
21733
  if (next === void 0) break;
21734
- if (!await pathExists(dir)) await mkdir$1(dir, { recursive: true });
21734
+ if (!await pathExists$1(dir)) await mkdir$1(dir, { recursive: true });
21735
21735
  if (!release) {
21736
- if (!await pathExists(path)) {
21736
+ if (!await pathExists$1(path)) {
21737
21737
  await promises.writeFile(path, "{}", "utf-8");
21738
21738
  if (expected.content === void 0) expected = { content: "{}" };
21739
21739
  }
@@ -21802,7 +21802,7 @@ var FileSettingsStorage = class {
21802
21802
  async withPrimaryWriteLockAsync(scope, fn) {
21803
21803
  const path = scope === "global" ? this.globalSettingsPath : this.projectSettingsPath;
21804
21804
  const dir = dirname(path);
21805
- if (!await pathExists(dir)) await mkdir$1(dir, { recursive: true });
21805
+ if (!await pathExists$1(dir)) await mkdir$1(dir, { recursive: true });
21806
21806
  await inLockTurn(path, async () => {
21807
21807
  const release = await this.acquireLockWithRetry(path);
21808
21808
  try {
@@ -23472,12 +23472,12 @@ async function installedPackageRoot(context, source, name) {
23472
23472
  if (parsed.type === "npm") {
23473
23473
  if (parsed.name !== name) return void 0;
23474
23474
  const path = getManagedNpmInstallPath(context, parsed, "user");
23475
- return await pathExists(path) ? path : void 0;
23475
+ return await pathExists$1(path) ? path : void 0;
23476
23476
  }
23477
23477
  if (parsed.type === "git") return getExistingGitInstallPathAsync(context, parsed, "user");
23478
23478
  for (const baseDir of getBaseDirsForScope(context, "user")) {
23479
23479
  const path = resolvePathFromBase(parsed.path, baseDir);
23480
- if (await pathExists(path)) return path;
23480
+ if (await pathExists$1(path)) return path;
23481
23481
  }
23482
23482
  }
23483
23483
  /**
@@ -24651,7 +24651,7 @@ const STORAGE_PROBE_TIMEOUT_MS = 15e3;
24651
24651
  * {@link STORAGE_PROBE_TIMEOUT_MS} so the server-probe timer starts only once the connection attempt starts.
24652
24652
  */
24653
24653
  const STORAGE_ADAPTER_LOAD_TIMEOUT_MS = 15e3;
24654
- const errorText = describeStorageError$1;
24654
+ const errorText = describeStorageError;
24655
24655
  function envSet(name) {
24656
24656
  const value = process.env[name];
24657
24657
  return value !== void 0 && value.length > 0;
@@ -25215,7 +25215,7 @@ async function checkConnectionWithin(target, agentDir, timeoutMs) {
25215
25215
  if (config !== void 0) throw config;
25216
25216
  throw new TeamProfileError("connection-failed", {
25217
25217
  subject: url,
25218
- detail: describeStorageError(error),
25218
+ detail: describeStorageError$1(error),
25219
25219
  hint: "Nothing was changed. Check the URL, the token and the network, then run the command again.",
25220
25220
  cause: error
25221
25221
  });
@@ -25239,18 +25239,17 @@ async function checkConnectionWithin(target, agentDir, timeoutMs) {
25239
25239
  throw timeout;
25240
25240
  }
25241
25241
  /** The token file a `{ file }` reference names, resolved like the storage provider resolves it. */
25242
- function secretFilePath$1(ref, agentDir) {
25242
+ function secretFilePath(ref, agentDir) {
25243
25243
  if (ref === void 0 || !("file" in ref)) return void 0;
25244
- return resolve$1(secretFilePath(ref.file, agentDir));
25244
+ return resolve$1(secretFilePath$1(ref.file, agentDir));
25245
25245
  }
25246
- __name(secretFilePath$1, "secretFilePath");
25247
25246
  /** Whether a path is a token file that a join created in this agent directory. */
25248
25247
  function isJoinTokenFile(path, agentDir) {
25249
25248
  return dirname$1(path) === resolve$1(agentDir) && basename$1(path).startsWith(`${STORAGE_TOKEN_FILE}.`);
25250
25249
  }
25251
25250
  /** The join-created token file `storage` references as `secretName`, when it already holds `token`. */
25252
25251
  function reusableTokenFile(storage, secretName, token, agentDir) {
25253
- const path = secretFilePath$1(storage?.secrets?.[secretName], agentDir);
25252
+ const path = secretFilePath(storage?.secrets?.[secretName], agentDir);
25254
25253
  if (path === void 0 || !isJoinTokenFile(path, agentDir)) return void 0;
25255
25254
  let stored;
25256
25255
  try {
@@ -25277,7 +25276,7 @@ function settingsWriteError(settingsPath, cause, outcome) {
25277
25276
  if (isLocked(cause)) return lockedError(settingsPath, cause, outcome);
25278
25277
  return new TeamProfileError("settings-write-failed", {
25279
25278
  subject: settingsPath,
25280
- detail: describeStorageError(cause),
25279
+ detail: describeStorageError$1(cause),
25281
25280
  hint: `${outcome} Check that the file and its directory are writable and the disk has space, then run the command again.`,
25282
25281
  cause
25283
25282
  });
@@ -25401,7 +25400,7 @@ async function joinSharedDatabase(options, source, connectionTimeoutMs = TEAM_CO
25401
25400
  } catch (error) {
25402
25401
  throw new TeamProfileError("token-write-failed", {
25403
25402
  subject: created,
25404
- detail: describeStorageError(error),
25403
+ detail: describeStorageError$1(error),
25405
25404
  hint: "Nothing was changed. Check that the agent directory is writable, then run the command again.",
25406
25405
  cause: error
25407
25406
  });
@@ -25466,7 +25465,7 @@ async function restartBroker(agentDir, context, onProgress) {
25466
25465
  status: "failed",
25467
25466
  error: new TeamProfileError("broker-restart-failed", {
25468
25467
  subject: agentDir,
25469
- detail: describeStorageError(error),
25468
+ detail: describeStorageError$1(error),
25470
25469
  hint: "The settings are saved. Run `atomic intercom restart` so the broker uses them.",
25471
25470
  cause: error
25472
25471
  })
@@ -25484,7 +25483,7 @@ async function loadTeamAdapter(agentDir, reason) {
25484
25483
  if (!(error instanceof StorageAdapterLoadError)) throw error;
25485
25484
  throw new TeamProfileError("adapter-not-installed", {
25486
25485
  subject: `${LIBSQL_ADAPTER_PACKAGE} for ${agentDir}`,
25487
- detail: describeStorageError(error.cause instanceof Error ? error.cause : error),
25486
+ detail: describeStorageError$1(error.cause instanceof Error ? error.cause : error),
25488
25487
  hint: `${reason} opens the team database through it. Install it, then run again: atomic install npm:${LIBSQL_ADAPTER_PACKAGE}`,
25489
25488
  cause: error
25490
25489
  });
@@ -25562,7 +25561,7 @@ function isJoinedStorage(storage, record, agentDir) {
25562
25561
  if (Object.keys(options).length !== 1 || typeof options.url !== "string") return false;
25563
25562
  if (storage.secrets === void 0) return isFileUrl(options.url);
25564
25563
  const names = Object.keys(storage.secrets);
25565
- const path = secretFilePath$1(storage.secrets.authToken, agentDir);
25564
+ const path = secretFilePath(storage.secrets.authToken, agentDir);
25566
25565
  return names.length === 1 && path !== void 0 && isJoinTokenFile(path, agentDir);
25567
25566
  }
25568
25567
  function isLocalSessionsPin(value) {
@@ -25577,7 +25576,7 @@ function referencedTokenFiles(settings, agentDir) {
25577
25576
  settings.storage,
25578
25577
  journal,
25579
25578
  sessions && !("dir" in sessions) ? sessions : void 0
25580
- ].flatMap((selection) => Object.values(selection?.secrets ?? {}).flatMap((ref) => secretFilePath$1(ref, agentDir) ?? []));
25579
+ ].flatMap((selection) => Object.values(selection?.secrets ?? {}).flatMap((ref) => secretFilePath(ref, agentDir) ?? []));
25581
25580
  }
25582
25581
  function projectSettingsPathOf(cwd) {
25583
25582
  return getProjectConfigPaths(cwd, "settings.json")[0];
@@ -25668,7 +25667,7 @@ async function leaveTeamWith(options = {}, context = {}) {
25668
25667
  ...empty,
25669
25668
  kept
25670
25669
  };
25671
- const tokenPath = removed.includes("storage") ? secretFilePath$1(storage?.secrets?.authToken, agentDir) : void 0;
25670
+ const tokenPath = removed.includes("storage") ? secretFilePath(storage?.secrets?.authToken, agentDir) : void 0;
25672
25671
  const next = { ...global };
25673
25672
  if (removed.includes("storage")) delete next.storage;
25674
25673
  if (next.storage === void 0) delete next.teamJoin;
@@ -25697,7 +25696,7 @@ async function leaveTeamWith(options = {}, context = {}) {
25697
25696
  } catch (error) {
25698
25697
  tokenFailure = new TeamProfileError("token-delete-failed", {
25699
25698
  subject: tokenPath,
25700
- detail: describeStorageError(error),
25699
+ detail: describeStorageError$1(error),
25701
25700
  hint: "The team settings were removed. Delete the token file yourself.",
25702
25701
  cause: error
25703
25702
  });
@@ -25940,10 +25939,10 @@ async function migrateAuthToAuthJsonAsync() {
25940
25939
  const authPath = join(agentDir, "auth.json");
25941
25940
  const oauthPath = join(agentDir, "oauth.json");
25942
25941
  const settingsPath = join(agentDir, "settings.json");
25943
- if (await pathExists(authPath)) return [];
25942
+ if (await pathExists$1(authPath)) return [];
25944
25943
  const migrated = {};
25945
25944
  const providers = [];
25946
- if (await pathExists(oauthPath)) try {
25945
+ if (await pathExists$1(oauthPath)) try {
25947
25946
  const oauth = JSON.parse(stripBom(await readFile$1(oauthPath, "utf-8")));
25948
25947
  for (const [provider, cred] of Object.entries(oauth)) {
25949
25948
  migrated[provider] = {
@@ -25954,7 +25953,7 @@ async function migrateAuthToAuthJsonAsync() {
25954
25953
  }
25955
25954
  await rename$1(oauthPath, `${oauthPath}.migrated`);
25956
25955
  } catch {}
25957
- if (await pathExists(settingsPath)) try {
25956
+ if (await pathExists$1(settingsPath)) try {
25958
25957
  const content = await readFile$1(settingsPath, "utf-8");
25959
25958
  const settings = JSON.parse(stripBom(content));
25960
25959
  if (settings.apiKeys && typeof settings.apiKeys === "object") {
@@ -26043,10 +26042,10 @@ async function migrateSessionsFromAgentRootAsync() {
26043
26042
  if (header.type !== "session" || !header.cwd) continue;
26044
26043
  const safePath = `--${header.cwd.replace(/^[/\\]/, "").replace(/[/\\:]/g, "-")}--`;
26045
26044
  const correctDir = join(agentDir, "sessions", safePath);
26046
- if (!await pathExists(correctDir)) await mkdir$1(correctDir, { recursive: true });
26045
+ if (!await pathExists$1(correctDir)) await mkdir$1(correctDir, { recursive: true });
26047
26046
  const fileName = file.split("/").pop() || file.split("\\").pop();
26048
26047
  const newPath = join(correctDir, fileName);
26049
- if (await pathExists(newPath)) continue;
26048
+ if (await pathExists$1(newPath)) continue;
26050
26049
  await rename$1(file, newPath);
26051
26050
  } catch {}
26052
26051
  }
@@ -26069,7 +26068,7 @@ function migrateCommandsToPrompts(baseDir, label) {
26069
26068
  async function migrateCommandsToPromptsAsync(baseDir, label) {
26070
26069
  const commandsDir = join(baseDir, "commands");
26071
26070
  const promptsDir = join(baseDir, "prompts");
26072
- if (await pathExists(commandsDir) && !await pathExists(promptsDir)) try {
26071
+ if (await pathExists$1(commandsDir) && !await pathExists$1(promptsDir)) try {
26073
26072
  await rename$1(commandsDir, promptsDir);
26074
26073
  console.log(chalk.green(`Migrated ${label} commands/ → prompts/`));
26075
26074
  return true;
@@ -26135,7 +26134,7 @@ async function migrateToolsToBinAsync() {
26135
26134
  const agentDir = getAgentDir();
26136
26135
  const toolsDir = join(agentDir, "tools");
26137
26136
  const binDir = getBinDir();
26138
- if (!await pathExists(toolsDir)) return;
26137
+ if (!await pathExists$1(toolsDir)) return;
26139
26138
  const binaries = [
26140
26139
  "fd",
26141
26140
  "rg",
@@ -26146,9 +26145,9 @@ async function migrateToolsToBinAsync() {
26146
26145
  for (const bin of binaries) {
26147
26146
  const oldPath = join(toolsDir, bin);
26148
26147
  const newPath = join(binDir, bin);
26149
- if (await pathExists(oldPath)) {
26150
- if (!await pathExists(binDir)) await mkdir$1(binDir, { recursive: true });
26151
- if (!await pathExists(newPath)) try {
26148
+ if (await pathExists$1(oldPath)) {
26149
+ if (!await pathExists$1(binDir)) await mkdir$1(binDir, { recursive: true });
26150
+ if (!await pathExists$1(newPath)) try {
26152
26151
  await rename$1(oldPath, newPath);
26153
26152
  movedAny = true;
26154
26153
  } catch {}
@@ -26183,8 +26182,8 @@ async function checkDeprecatedExtensionDirsAsync(baseDir, label) {
26183
26182
  const hooksDir = join(baseDir, "hooks");
26184
26183
  const toolsDir = join(baseDir, "tools");
26185
26184
  const warnings = [];
26186
- if (await pathExists(hooksDir)) warnings.push(`${label} hooks/ directory found. Hooks have been renamed to extensions.`);
26187
- if (await pathExists(toolsDir)) try {
26185
+ if (await pathExists$1(hooksDir)) warnings.push(`${label} hooks/ directory found. Hooks have been renamed to extensions.`);
26186
+ if (await pathExists$1(toolsDir)) try {
26188
26187
  if (hasCustomTools(await readdir$1(toolsDir))) warnings.push(`${label} tools/ directory contains custom tools. Custom tools have been merged into extensions.`);
26189
26188
  } catch {}
26190
26189
  return warnings;
@@ -28111,7 +28110,7 @@ var ArtifactManager = class {
28111
28110
  #init() {
28112
28111
  this.#initialized ??= (async () => {
28113
28112
  let max = -1;
28114
- if (await pathExists$1(this.#dir)) for (const name of await readdir(this.#dir)) {
28113
+ if (await pathExists(this.#dir)) for (const name of await readdir(this.#dir)) {
28115
28114
  const match = name.match(/^(\d+)\..*\.log$/);
28116
28115
  if (match) {
28117
28116
  const id = Number.parseInt(match[1] ?? "0", 10);
@@ -28132,20 +28131,20 @@ var ArtifactManager = class {
28132
28131
  }
28133
28132
  async save(content, toolType) {
28134
28133
  const { path, id } = await this.allocate(toolType);
28135
- if (!await pathExists$1(this.#dir)) await mkdir(this.#dir, { recursive: true });
28134
+ if (!await pathExists(this.#dir)) await mkdir(this.#dir, { recursive: true });
28136
28135
  await writeFile(path, content, "utf8");
28137
28136
  return id;
28138
28137
  }
28139
28138
  /** Resolve a numeric id to its artifact file path, matching by `${id}.` prefix. */
28140
28139
  async resolve(id) {
28141
28140
  await this.#init();
28142
- if (!await pathExists$1(this.#dir)) return void 0;
28141
+ if (!await pathExists(this.#dir)) return void 0;
28143
28142
  const prefix = `${id}.`;
28144
28143
  for (const name of await readdir(this.#dir)) if (name.startsWith(prefix) && name.endsWith(".log")) return join$1(this.#dir, name);
28145
28144
  }
28146
28145
  async list() {
28147
28146
  await this.#init();
28148
- if (!await pathExists$1(this.#dir)) return [];
28147
+ if (!await pathExists(this.#dir)) return [];
28149
28148
  const ids = [];
28150
28149
  for (const name of await readdir(this.#dir)) {
28151
28150
  const match = name.match(/^(\d+)\..*\.log$/);
@@ -28164,7 +28163,7 @@ function getArtifactManager(artifactsDir) {
28164
28163
  }
28165
28164
  return manager;
28166
28165
  }
28167
- export { ACTIONS_GITHUB_BASE_URL_ENV, BASH_SHELL_PRESENTATION, BLUEPRINT_FULL_BUILD_MAX_AGE_MS, BLUEPRINT_STEP_TIMEOUT_MS, DEGRADED_RESTORE_RETENTION_DAYS, ENGINE_SESSION_STORAGE_FLAG, ENGINE_SHUTDOWN_GRACE_MS, EVENT_REPORT_MESSAGE_TYPE, EVENT_SUBSCRIPTION_CHILD_ENTRY_TYPE, EVENT_SUBSCRIPTION_ENTRY_TYPE, EVENT_SUBSCRIPTION_PROCESSED_ENTRY_TYPE, FooterDataProvider, RpcClient, SETUP_COMMAND_ALIAS, STORAGE_ADAPTER_LOAD_TIMEOUT_MS, STORAGE_PROBE_TIMEOUT_MS, SUBSCRIPTION_REPORT_TOOL_NAME, SessionWorktreeSnapshotRecorder, SettingsManager, TEAM_CONNECTION_TIMEOUT_MS, TEAM_PROFILE_SOURCE, adoptInlineSnapshotBlobs, agentPanelExtensionItems, agentPanelItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, agentSessionSummaryMethods, agentSessionTreeMethods, answerAgentPanelItem, appendBoundedStderr, applyReadLineSelection, applyToolModifiers, assertTeamAdapterInstalled, bashToolSystemPromptContribution, bindTaskTranscriptFragments, blueprintNotices, blueprintRepository, boundExtensionRuntimes, buildInteractiveEngineArgs, builtinToolBlockPresentation, canIsolateSessionStore, cancelSessionSubscriptions, checkSharedStorageAdapter, checkoutsNeedingRebuild, collectEntriesForBranchSummary, collectStorageStatus, compareWorktreeSnapshot, composeInternalRouters, continueSessionWhereItWorked, copyPanelItemStableKey, createBashTool, createBashToolDefinition, createCodingTools, createEditTool, createEditToolDefinition, createExtensionAPI, createExtensionRuntime, createFindTool, createFindToolDefinition, createHistoryRouter, createLoadedToolDefinition, createLocalBashOperations, createLocalPowerShellOperations, createLsTool, createLsToolDefinition, createPowerShellTool, createPowerShellToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createSearchTool, createSearchToolDefinition, createSubscriberReportTool, createToolDefinitionsFor, createWriteTool, createWriteToolDefinition, currentWorktreeRestoreNotices, currentWorktreeRootMappings, currentWorktreeSnapshots, decodeReadableUrl, defaultToolSelectionFor, degradedRestorePin, deleteSessionWithSnapshotRefs, describeBlueprints, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeStorageError$1 as describeStorageError, describeStorageSelection, describeWorktreeRestoreStatus, describeWorktreeSnapshot, discardDegradedRestore, dismissedAgentPanelItems, drainExtensionAPIWork, editToolSystemPromptContribution, effectiveSharedSelection, extractDocumentMarkdown, findToolSystemPromptContribution, findUnansweredToolCall, formatDegradedRestoreNotice, formatEventReport, formatToolBlockElapsed, formatUnrestoredNotice, formatWorktreeRestoreNotice, formatWorktreeRestoreWarning, generateBranchSummary, generateDiffString, generateUnifiedPatch, getArtifactManager, getEngineSessionStorage, hasSubagentCaptures, hostStoragePackagesRegistered, inheritChildSessionOptionsWithDefaults, inheritedRemotes, inlineSnapshotBlobs, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isDocumentPath, isInside$1 as isInside, isInterruptedPanelTask, isPlainRuntimeMetadataCommand, joinSharedDatabase, joinTeam, joinTeamWith, latestSessionSnapshot, latestSessionSnapshotAsync, launchedTaskViewSource, lazyTaskPanelItem, leaveTeam, leaveTeamWith, liveTaskRowOrigin, loadProjectContextFiles, loadProjectContextFilesAsync, lsToolSystemPromptContribution, mapPathForCwd, mapPathForCwdAsync, mapRestoredPath, mapRestoredPathAsync, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, needsRebuild, notifyAgentPanelChanged, notifyAgentPanelSourceHubRebound, onOwnerTaskAction, openAgentPanelItem, openSessionInWorktree, ownerTaskViewSource, panelItemStableKey, parentHistoryNotices, parseActionReference, pathExists$1 as pathExists, plainNoticeBlock, prepareBranchEntries, prepareInitialMessage, prepareSessionResume, prewarmHostDefaultModelApi, prewarmInteractiveEngineRpcMode, projectSettingsChooseSessionStorage, projectTrust, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, readToolSystemPromptContribution, recordBlueprintContext, recordRestoredWorktreeContext, registerHostStoragePackages, registerHostStoragePackagesAsync, releaseSessionWorktrees, removeSavedModelRoutingSettings, removeSavedModelRoutingSettingsAsync, resolveAppMode, resolveCliPaths, resolveExcludedToolsForAppMode, resolveExistingPromptSourcePath, resolveExistingPromptSourcePaths, resolvePackageStorageAdapter, resolvePromptInput, resolveSessionStore, resumeSessionWorktree, resumeStoreDir, retainTaskWindowReader, retireExtensionAPI, runAction, runBlueprintBuild, runExtensionAPICleanup, runMigrations, runMigrationsAsync, runResourceRegistrationBatch, sampleAgentPanelSources, savedBoundaryCursor, savedProjectTrust, savedProjectTrustAsync, sealExtensionAPI, searchToolSystemPromptContribution, seedEventPrompt, selectIntercomStorage, selectSessionSetting, selectSessionStorage, selectSessionStorageWithSettings, selectSessionStorageWithSettingsAsync, selectSharedStorage, selectTeamProfile, serializeConversation, sessionManagerContinuesIn, sessionManagerRunsInRecordedCheckout, sessionResumeOptions, sessionSnapshotBlobs, sessionStorageSettingsDiffer, setUpResumedBlueprints, settingsFileTarget, settingsFileTargetAsync, shellCommandPrefixFor, shortTaskTitle, shouldStartRpcCatalogRefresh, showDeprecationWarnings, snapshotBlobInliner, sourceError, stopAgentPanelItem, storageFingerprint, subscribeAgentPanel, subscribeAgentPanelExtensions, subscribeSession, takeEngineSessionStorageArg, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFile, taskTranscriptFragments, taskTranscriptUnsavedAnswer, toPrintOutputMode, toolsWithReport, withTaskTranscriptArchive, withWorktreeRestoreNotices, withWorktreeRootMappings, worktreeNeedsRestore, worktreeRestoreNotices, writeSettingsFile, writeSettingsFileAsync, writeToolSystemPromptContribution };
28166
+ export { ACTIONS_GITHUB_BASE_URL_ENV, BASH_SHELL_PRESENTATION, BLUEPRINT_FULL_BUILD_MAX_AGE_MS, BLUEPRINT_STEP_TIMEOUT_MS, DEGRADED_RESTORE_RETENTION_DAYS, ENGINE_SESSION_STORAGE_FLAG, ENGINE_SHUTDOWN_GRACE_MS, EVENT_REPORT_MESSAGE_TYPE, EVENT_SUBSCRIPTION_CHILD_ENTRY_TYPE, EVENT_SUBSCRIPTION_ENTRY_TYPE, EVENT_SUBSCRIPTION_PROCESSED_ENTRY_TYPE, FooterDataProvider, RpcClient, SETUP_COMMAND_ALIAS, STORAGE_ADAPTER_LOAD_TIMEOUT_MS, STORAGE_PROBE_TIMEOUT_MS, SUBSCRIPTION_REPORT_TOOL_NAME, SessionWorktreeSnapshotRecorder, SettingsManager, TEAM_CONNECTION_TIMEOUT_MS, TEAM_PROFILE_SOURCE, adoptInlineSnapshotBlobs, agentPanelExtensionItems, agentPanelItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, agentSessionSummaryMethods, agentSessionTreeMethods, answerAgentPanelItem, appendBoundedStderr, applyReadLineSelection, applyToolModifiers, assertTeamAdapterInstalled, bashToolSystemPromptContribution, bindTaskTranscriptFragments, blueprintNotices, blueprintRepository, boundExtensionRuntimes, buildInteractiveEngineArgs, builtinToolBlockPresentation, canIsolateSessionStore, cancelSessionSubscriptions, checkSharedStorageAdapter, checkoutsNeedingRebuild, collectEntriesForBranchSummary, collectStorageStatus, compareWorktreeSnapshot, composeInternalRouters, continueSessionWhereItWorked, copyPanelItemStableKey, createBashTool, createBashToolDefinition, createCodingTools, createEditTool, createEditToolDefinition, createExtensionAPI, createExtensionRuntime, createFindTool, createFindToolDefinition, createHistoryRouter, createLoadedToolDefinition, createLocalBashOperations, createLocalPowerShellOperations, createLsTool, createLsToolDefinition, createPowerShellTool, createPowerShellToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createSearchTool, createSearchToolDefinition, createSubscriberReportTool, createToolDefinitionsFor, createWriteTool, createWriteToolDefinition, currentWorktreeRestoreNotices, currentWorktreeRootMappings, currentWorktreeSnapshots, decodeReadableUrl, defaultToolSelectionFor, degradedRestorePin, deleteSessionWithSnapshotRefs, describeBlueprints, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeStorageError, describeStorageSelection, describeWorktreeRestoreStatus, describeWorktreeSnapshot, discardDegradedRestore, dismissedAgentPanelItems, drainExtensionAPIWork, editToolSystemPromptContribution, effectiveSharedSelection, extractDocumentMarkdown, findToolSystemPromptContribution, findUnansweredToolCall, formatDegradedRestoreNotice, formatEventReport, formatToolBlockElapsed, formatUnrestoredNotice, formatWorktreeRestoreNotice, formatWorktreeRestoreWarning, generateBranchSummary, generateDiffString, generateUnifiedPatch, getArtifactManager, getEngineSessionStorage, hasSubagentCaptures, hostStoragePackagesRegistered, inheritChildSessionOptionsWithDefaults, inheritedRemotes, inlineSnapshotBlobs, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isDocumentPath, isInside$1 as isInside, isInterruptedPanelTask, isPlainRuntimeMetadataCommand, joinSharedDatabase, joinTeam, joinTeamWith, latestSessionSnapshot, latestSessionSnapshotAsync, launchedTaskViewSource, lazyTaskPanelItem, leaveTeam, leaveTeamWith, liveTaskRowOrigin, loadProjectContextFiles, loadProjectContextFilesAsync, lsToolSystemPromptContribution, mapPathForCwd, mapPathForCwdAsync, mapRestoredPath, mapRestoredPathAsync, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, needsRebuild, notifyAgentPanelChanged, notifyAgentPanelSourceHubRebound, onOwnerTaskAction, openAgentPanelItem, openSessionInWorktree, ownerTaskViewSource, panelItemStableKey, parentHistoryNotices, parseActionReference, pathExists, plainNoticeBlock, prepareBranchEntries, prepareInitialMessage, prepareSessionResume, prewarmHostDefaultModelApi, prewarmInteractiveEngineRpcMode, projectSettingsChooseSessionStorage, projectTrust, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, readToolSystemPromptContribution, recordBlueprintContext, recordRestoredWorktreeContext, registerHostStoragePackages, registerHostStoragePackagesAsync, releaseSessionWorktrees, removeSavedModelRoutingSettings, removeSavedModelRoutingSettingsAsync, resolveAppMode, resolveCliPaths, resolveExcludedToolsForAppMode, resolveExistingPromptSourcePath, resolveExistingPromptSourcePaths, resolvePackageStorageAdapter, resolvePromptInput, resolveSessionStore, resumeSessionWorktree, resumeStoreDir, retainTaskWindowReader, retireExtensionAPI, runAction, runBlueprintBuild, runExtensionAPICleanup, runMigrations, runMigrationsAsync, runResourceRegistrationBatch, sampleAgentPanelSources, savedBoundaryCursor, savedProjectTrust, savedProjectTrustAsync, sealExtensionAPI, searchToolSystemPromptContribution, seedEventPrompt, selectIntercomStorage, selectSessionSetting, selectSessionStorage, selectSessionStorageWithSettings, selectSessionStorageWithSettingsAsync, selectSharedStorage, selectTeamProfile, serializeConversation, sessionManagerContinuesIn, sessionManagerRunsInRecordedCheckout, sessionResumeOptions, sessionSnapshotBlobs, sessionStorageSettingsDiffer, setUpResumedBlueprints, settingsFileTarget, settingsFileTargetAsync, shellCommandPrefixFor, shortTaskTitle, shouldStartRpcCatalogRefresh, showDeprecationWarnings, snapshotBlobInliner, sourceError, stopAgentPanelItem, storageFingerprint, subscribeAgentPanel, subscribeAgentPanelExtensions, subscribeSession, takeEngineSessionStorageArg, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFile, taskTranscriptFragments, taskTranscriptUnsavedAnswer, toPrintOutputMode, toolsWithReport, withTaskTranscriptArchive, withWorktreeRestoreNotices, withWorktreeRootMappings, worktreeNeedsRestore, worktreeRestoreNotices, writeSettingsFile, writeSettingsFileAsync, writeToolSystemPromptContribution };
28168
28167
 
28169
28168
  //# sourceMappingURL=startup-8-1-SJW2GMAM.js.map
28170
28169
  // __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
@@ -28173,7 +28172,7 @@ function __atomicOnDemandFailed(error, feature) {
28173
28172
  return (async () => {
28174
28173
  const root = new URL("../", import.meta.url);
28175
28174
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
28176
- const key = `${root.href}#0.10.5`;
28175
+ const key = `${root.href}#0.10.6-alpha.1`;
28177
28176
  let release = releases.get(key);
28178
28177
  if (release === undefined) {
28179
28178
  const current = (async () => {
@@ -28201,7 +28200,7 @@ function __atomicOnDemandFailed(error, feature) {
28201
28200
  } catch {
28202
28201
  // No installation to read, as in a bundle of the package: the release the process runs decides.
28203
28202
  }
28204
- const updatedTo = typeof installed === "string" && installed !== "0.10.5" ? installed : running !== undefined && running.version !== "0.10.5" ? "0.10.5" : undefined;
28203
+ 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;
28205
28204
  if (updatedTo === undefined) throw error;
28206
28205
  const application = typeof running?.name === "string" ? running.name : "atomic";
28207
28206
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {