@qqbrowser/openclaw-qbot 0.0.148 → 0.10.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 (1698) hide show
  1. package/dist/account-lookup-CW-_CL7y.js +0 -1
  2. package/dist/acp-cli-BHsTg1ac.js +0 -1
  3. package/dist/acp-cli-D_WC9SZX.js +0 -1
  4. package/dist/active-listener-1MJXk3Iq.js +0 -1
  5. package/dist/active-listener-D8VOdVx3.js +0 -1
  6. package/dist/active-listener-D8uP0H5W.js +0 -1
  7. package/dist/active-listener-DeKRt_UV.js +0 -1
  8. package/dist/agent-scope-DAWJwFfl.js +0 -1
  9. package/dist/agent-scope-DXZc3eNT.js +0 -1
  10. package/dist/agents-Cd1yL8fG.js +0 -1
  11. package/dist/agents.config-CaRMmWS8.js +0 -1
  12. package/dist/agents.config-DSCcdYtv.js +0 -1
  13. package/dist/allow-from-B6dI7oz8.js +0 -1
  14. package/dist/allow-from-DEeVIPKS.js +0 -1
  15. package/dist/api-BeG0ObSq.js +0 -1
  16. package/dist/api-Dx8x1KTs.js +0 -1
  17. package/dist/api-key-rotation-BLt5E2Cw.js +0 -1
  18. package/dist/api-key-rotation-BpEL4aeX.js +0 -1
  19. package/dist/api-key-rotation-DayEfYpa.js +0 -1
  20. package/dist/api-key-rotation-Rz2ESQSA.js +0 -1
  21. package/dist/arg-split-BOqSMBuf.js +0 -1
  22. package/dist/arg-split-DE5RqDHq.js +0 -1
  23. package/dist/audio-preflight-8WB1LJBS.js +0 -1
  24. package/dist/audio-preflight-BcPHPfr_.js +0 -1
  25. package/dist/audio-preflight-DTO631Yb.js +0 -1
  26. package/dist/audio-preflight-O-0lDeKh.js +0 -1
  27. package/dist/audio-transcription-runner-9H9eUZ1D.js +0 -1
  28. package/dist/audio-transcription-runner-BIKj1CBU.js +0 -1
  29. package/dist/audio-transcription-runner-BwjMhAUa.js +0 -1
  30. package/dist/audio-transcription-runner-CQ7rq0d_.js +0 -1
  31. package/dist/audit-9I53EvMQ.js +0 -1
  32. package/dist/audit-BGsUfJzD.js +0 -1
  33. package/dist/audit-membership-runtime-BpRsMj5-.js +0 -1
  34. package/dist/audit-membership-runtime-BsfLZNBj.js +0 -1
  35. package/dist/audit-membership-runtime-DRHirRmx.js +0 -1
  36. package/dist/audit-membership-runtime-g0dEWJTp.js +0 -1
  37. package/dist/audit-membership-runtime-kdyToskD.js +0 -1
  38. package/dist/auth-choice-BmI4sIGs.js +0 -1
  39. package/dist/auth-choice-DDsPJF6F.js +0 -1
  40. package/dist/auth-choice-Dy0jIOLV.js +0 -1
  41. package/dist/auth-choice-MqcWuVyu.js +0 -1
  42. package/dist/auth-choice-options-B3WQyS7I.js +0 -1
  43. package/dist/auth-choice-options-Dw14noox.js +0 -1
  44. package/dist/auth-choice-prompt-uegl56cf.js +0 -1
  45. package/dist/auth-choice-prompt-xYj13czb.js +0 -1
  46. package/dist/auth-choice.apply-helpers-D911bYcw.js +0 -1
  47. package/dist/auth-choice.apply-helpers-pJ4CPZCk.js +0 -1
  48. package/dist/auth-profiles-C8rZRS0X.js +0 -1
  49. package/dist/auth-token-DZLZ3d_I.js +0 -1
  50. package/dist/auth-token-Dp6bxT29.js +0 -1
  51. package/dist/banner-CAtilyXr.js +0 -1
  52. package/dist/bonjour-discovery-ClTijpMw.js +0 -1
  53. package/dist/bonjour-discovery-DMB6yrOF.js +0 -1
  54. package/dist/boolean-Ch3DfXPy.js +0 -1
  55. package/dist/boolean-D15s2V33.js +0 -1
  56. package/dist/boolean-DypnRoRK.js +0 -1
  57. package/dist/brew-COcDl8CB.js +0 -1
  58. package/dist/brew-DDPm_HfE.js +0 -1
  59. package/dist/browser-cli-Bf-Pzjxs.js +0 -1
  60. package/dist/browser-cli-DkrBCfYg.js +0 -1
  61. package/dist/build-info.json +3 -3
  62. package/dist/bundled/boot-md/handler.js +0 -1
  63. package/dist/bundled/bootstrap-extra-files/handler.js +0 -1
  64. package/dist/bundled/command-logger/handler.js +0 -1
  65. package/dist/bundled/session-memory/handler.js +0 -1
  66. package/dist/call-BWx7hNtl.js +0 -1
  67. package/dist/call-JB-cGR9n.js +0 -1
  68. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  69. package/dist/channel-account-context-BMPAMZEv.js +0 -1
  70. package/dist/channel-account-context-DAcarnqW.js +0 -1
  71. package/dist/channel-activity-B04WbrrK.js +0 -1
  72. package/dist/channel-activity-BhiLsKvM.js +0 -1
  73. package/dist/channel-activity-DmgWmSAG.js +0 -1
  74. package/dist/channel-activity-Dw6F-ehJ.js +0 -1
  75. package/dist/channel-activity-htoVXTET.js +0 -1
  76. package/dist/channel-options-CCqtIYCc.js +0 -1
  77. package/dist/channel-options-CKoyPq8p.js +0 -1
  78. package/dist/channel-selection-BPxE8JR7.js +0 -1
  79. package/dist/channel-selection-si1OzWyQ.js +0 -1
  80. package/dist/channel-web-CCSMlUux.js +0 -1
  81. package/dist/channel-web-CwUfYqjg.js +0 -1
  82. package/dist/channels/plugins/actions/discord.js +0 -1
  83. package/dist/channels/plugins/actions/signal.js +0 -1
  84. package/dist/channels/plugins/actions/telegram.js +0 -1
  85. package/dist/channels/plugins/agent-tools/whatsapp-login.js +0 -1
  86. package/dist/channels-cli-BfgVv5jH.js +0 -1
  87. package/dist/channels-cli-BvGXgERj.js +0 -1
  88. package/dist/channels-status-issues-8eFrGKyf.js +0 -1
  89. package/dist/channels-status-issues-PRgOT90w.js +0 -1
  90. package/dist/chat-envelope-Bznn2SoS.js +0 -1
  91. package/dist/chat-envelope-HVpKusFc.js +0 -1
  92. package/dist/clack-prompter-DBPdGdqp.js +0 -1
  93. package/dist/clack-prompter-Dq0aY6iM.js +0 -1
  94. package/dist/clawbot-cli-B0iTJ-pm.js +0 -1
  95. package/dist/clawbot-cli-BcEtQbFY.js +0 -1
  96. package/dist/cleanup-utils-BWm70DoD.js +0 -1
  97. package/dist/cleanup-utils-D-RhEX6F.js +0 -1
  98. package/dist/cli-Bt--1dhL.js +0 -1
  99. package/dist/cli-CBg8KhmQ.js +0 -1
  100. package/dist/cli-utils-BY7dLMFy.js +0 -1
  101. package/dist/cli-utils-BleB1eys.js +0 -1
  102. package/dist/clipboard-Bk8cviBt.js +0 -1
  103. package/dist/clipboard-CKT_VIkG.js +0 -1
  104. package/dist/cmd-argv-BBT5l8AV.js +0 -1
  105. package/dist/cmd-argv-Bh-KpaZ0.js +0 -1
  106. package/dist/command-format-BbDT1tlm.js +0 -1
  107. package/dist/command-format-CLxIPuLR.js +0 -1
  108. package/dist/command-options-BpOUDl2S.js +0 -1
  109. package/dist/command-options-Bq5nQxz6.js +0 -1
  110. package/dist/command-poll-backoff-BZLHYB2k.js +0 -1
  111. package/dist/command-poll-backoff-Cww_r-24.js +0 -1
  112. package/dist/command-poll-backoff-Df6cOQrX.js +0 -1
  113. package/dist/command-poll-backoff-endAPdwn.js +0 -1
  114. package/dist/{command-registry-BxNiXs5w.js → command-registry-D_jtBegA.js} +1 -2
  115. package/dist/command-secret-targets-BEjtBf5Z.js +0 -1
  116. package/dist/command-secret-targets-CfXtLkLF.js +0 -1
  117. package/dist/commands-CGpM84iR.js +0 -1
  118. package/dist/commands-Dy7duWlt.js +0 -1
  119. package/dist/commands-registry-C5Hg7gyk.js +0 -1
  120. package/dist/commands-registry-DT6FDUev.js +0 -1
  121. package/dist/commands-registry-DlvNUkXz.js +0 -1
  122. package/dist/commands-registry-gvMK7Pw9.js +0 -1
  123. package/dist/compact-CYbPi7_-.js +0 -1
  124. package/dist/{completion-cli-Yg5BF97F.js → completion-cli-BVbT_aR2.js} +1 -2
  125. package/dist/{completion-cli-BRE0F8Tu.js → completion-cli-Bw_hBrlA.js} +1 -2
  126. package/dist/config-BqW5S1xL.js +0 -1
  127. package/dist/config-Cji73to5.js +0 -1
  128. package/dist/config-cli-CwW76_j_.js +0 -1
  129. package/dist/config-cli-F-lkPjjz.js +0 -1
  130. package/dist/config-guard-0_afzaJz.js +0 -1
  131. package/dist/config-guard-CqUJ8uaF.js +0 -1
  132. package/dist/config-validation-6hk_fxD8.js +0 -1
  133. package/dist/config-validation-BAmmD9p4.js +0 -1
  134. package/dist/configure--c4tTVPz.js +0 -1
  135. package/dist/configure-DFlnM_zh.js +0 -1
  136. package/dist/connection-auth-CjaeEu5D.js +0 -1
  137. package/dist/connection-auth-smZlFWxD.js +0 -1
  138. package/dist/context-window-guard-7crlatf9.js +0 -1
  139. package/dist/context-window-guard-CPChk363.js +0 -1
  140. package/dist/control-ui-assets-BIa0GGDg.js +0 -1
  141. package/dist/control-ui-assets-CTHGGgaX.js +0 -1
  142. package/dist/cron-cli-BKS4L-uW.js +0 -1
  143. package/dist/cron-cli-L9wLLocl.js +0 -1
  144. package/dist/daemon-cli-BdDHNRqp.js +0 -1
  145. package/dist/daemon-cli-CEHkT-54.js +0 -1
  146. package/dist/daemon-cli.js +0 -1
  147. package/dist/daemon-install-CMNtsW5o.js +0 -1
  148. package/dist/daemon-install-D2gMiA0p.js +0 -1
  149. package/dist/daemon-install-plan.shared-BkwZgIAY.js +0 -1
  150. package/dist/daemon-install-plan.shared-Dx3DBXCG.js +0 -1
  151. package/dist/daemon-runtime-DHiDbRuC.js +0 -1
  152. package/dist/daemon-runtime-VcpeBRJV.js +0 -1
  153. package/dist/dangerous-name-matching-BOmvAibz.js +0 -1
  154. package/dist/dangerous-name-matching-DtllRqBD.js +0 -1
  155. package/dist/dangerous-tools-CFRYQJ6V.js +0 -1
  156. package/dist/dangerous-tools-oYCu5wfC.js +0 -1
  157. package/dist/deliver-AM3FP5rj.js +0 -1
  158. package/dist/deliver-BhWhLvQO.js +0 -1
  159. package/dist/deliver-DUNkj4hy.js +0 -1
  160. package/dist/deliver-SqSusZP3.js +0 -1
  161. package/dist/delivery-queue-CKbauSFq.js +0 -1
  162. package/dist/delivery-queue-nkPJu0fY.js +0 -1
  163. package/dist/device-pairing-DAzYy3vX.js +0 -1
  164. package/dist/device-pairing-DknI3IDo.js +0 -1
  165. package/dist/devices-cli-BYD6Sq88.js +0 -1
  166. package/dist/devices-cli-Dl-0fQmR.js +0 -1
  167. package/dist/diagnostic-BEZszppF.js +0 -1
  168. package/dist/diagnostic-D1H7_8QG.js +0 -1
  169. package/dist/diagnostic-DtuQPRbp.js +0 -1
  170. package/dist/diagnostic-VBPCgF9l.js +0 -1
  171. package/dist/diagnostics-BgbeL9KE.js +0 -1
  172. package/dist/diagnostics-Cdctg9K_.js +0 -1
  173. package/dist/directory-cli-CpMjutQb.js +0 -1
  174. package/dist/directory-cli-b_l3qJI_.js +0 -1
  175. package/dist/dns-cli-C7L4RYOm.js +0 -1
  176. package/dist/dns-cli-wKg6nn6f.js +0 -1
  177. package/dist/docs-cli-CwW4sqbC.js +0 -1
  178. package/dist/docs-cli-DnLLU7eX.js +0 -1
  179. package/dist/{doctor-completion-II0Wb435.js → doctor-completion-C9CPhCor.js} +1 -2
  180. package/dist/{doctor-completion-Bu-98ocm.js → doctor-completion-DI7mGC3D.js} +1 -2
  181. package/dist/doctor-config-flow-BVpr8-q9.js +0 -1
  182. package/dist/doctor-config-flow-Dio3s4x6.js +0 -1
  183. package/dist/enable-CjFPAUgo.js +0 -1
  184. package/dist/enable-PO3qN4Lf.js +0 -1
  185. package/dist/entry-status-CCwwKO43.js +0 -1
  186. package/dist/entry-status-CoXkbJcX.js +0 -1
  187. package/dist/entry.js +1 -2
  188. package/dist/env-D7wNuBx1.js +0 -1
  189. package/dist/env-overrides-DHtB4kK3.js +0 -1
  190. package/dist/env-overrides-DXJbFrwI.js +0 -1
  191. package/dist/errors-6SQWM9dj.js +0 -1
  192. package/dist/errors-Bunti32V.js +0 -1
  193. package/dist/exec-B3eleY5O.js +0 -1
  194. package/dist/exec-DHqLtFYt.js +0 -1
  195. package/dist/exec-approvals-BXO9Cezj.js +0 -1
  196. package/dist/exec-approvals-BpBNEy6i.js +0 -1
  197. package/dist/exec-approvals-allowlist-B-Yf6RsU.js +0 -1
  198. package/dist/exec-approvals-allowlist-CGjRWREs.js +0 -1
  199. package/dist/exec-approvals-cli-BokGzWFo.js +0 -1
  200. package/dist/exec-approvals-cli-CsUGu6m3.js +0 -1
  201. package/dist/exec-safe-bin-runtime-policy-CRPHdPbF.js +0 -1
  202. package/dist/exec-safe-bin-runtime-policy-v44u39fl.js +0 -1
  203. package/dist/fetch-B4bz67_N.js +0 -1
  204. package/dist/fetch-BJT3BrkJ.js +0 -1
  205. package/dist/fetch-Bn0mWg6a.js +0 -1
  206. package/dist/fetch-Ce-scEU-.js +0 -1
  207. package/dist/fetch-D0rZDHKO.js +0 -1
  208. package/dist/fetch-D5wrJ0AX.js +0 -1
  209. package/dist/fetch-DBat25iG.js +0 -1
  210. package/dist/fetch-DHo17YmK.js +0 -1
  211. package/dist/fetch-Dh-apy46.js +0 -1
  212. package/dist/fetch-Dikjvc5M.js +0 -1
  213. package/dist/fetch-DsjPfQlp.js +0 -1
  214. package/dist/fetch-_g8lZ8K8.js +0 -1
  215. package/dist/fetch-guard-7BAwnP4a.js +0 -1
  216. package/dist/fetch-guard-DaZmvp-L.js +0 -1
  217. package/dist/fetch-guard-DvaNcypz.js +0 -1
  218. package/dist/fetch-guard-oWKGrwV4.js +0 -1
  219. package/dist/fetch-hy0JKSsm.js +0 -1
  220. package/dist/fetch-timeout-CdYxWG9w.js +0 -1
  221. package/dist/fetch-timeout-Cj8_oAls.js +0 -1
  222. package/dist/fetch-timeout-DoOI_izT.js +0 -1
  223. package/dist/fetch-timeout-u8g99Ax0.js +0 -1
  224. package/dist/format-Bn1bwJKX.js +0 -1
  225. package/dist/format-Ce7I7s-k.js +0 -1
  226. package/dist/format-duration-C8AzNqKh.js +0 -1
  227. package/dist/format-duration-D5AMtmHa.js +0 -1
  228. package/dist/format-relative-B9pSIdGe.js +0 -1
  229. package/dist/format-relative-DkMjYy7z.js +0 -1
  230. package/dist/frontmatter-BkZkwkVO.js +0 -1
  231. package/dist/frontmatter-C7mzDNxd.js +0 -1
  232. package/dist/frontmatter-CzpfPBFl.js +0 -1
  233. package/dist/{gateway-cli-DBjTjdhJ.js → gateway-cli-BMmU2dsG.js} +1 -2
  234. package/dist/{gateway-cli-B-AX4-uD.js → gateway-cli-Kp-caOwI.js} +1 -2
  235. package/dist/gateway-install-token-Dt7hDXoR.js +0 -1
  236. package/dist/gateway-install-token-cSJrfU_1.js +0 -1
  237. package/dist/gateway-rpc-C78PzdZR.js +0 -1
  238. package/dist/gateway-rpc-CecloWA1.js +0 -1
  239. package/dist/github-copilot-token-C79yeDKS.js +0 -1
  240. package/dist/github-copilot-token-DGYAlOmV.js +0 -1
  241. package/dist/github-copilot-token-DePP-lIf.js +0 -1
  242. package/dist/github-copilot-token-wm6mbypz.js +0 -1
  243. package/dist/gmail-setup-utils-CYOH3zzx.js +0 -1
  244. package/dist/gmail-setup-utils-S-MyEGuj.js +0 -1
  245. package/dist/group-access-BHKVOhrj.js +0 -1
  246. package/dist/group-access-D2DOYMfr.js +0 -1
  247. package/dist/health-B_-ZE5FK.js +0 -1
  248. package/dist/health-CIZFVJEG.js +0 -1
  249. package/dist/health-format-B1nj3Wfn.js +0 -1
  250. package/dist/health-format-VBr6LEpt.js +0 -1
  251. package/dist/heartbeat-visibility-BQ_esv2m.js +0 -1
  252. package/dist/heartbeat-visibility-q74UdY8O.js +0 -1
  253. package/dist/help-format-B4aEI7V9.js +0 -1
  254. package/dist/help-format-BRbF_INg.js +0 -1
  255. package/dist/helpers-COz1ghcB.js +0 -1
  256. package/dist/helpers-Cp8gcO6u.js +0 -1
  257. package/dist/hooks-cli-BoxAnC-E.js +0 -1
  258. package/dist/hooks-cli-CnCOjVv0.js +0 -1
  259. package/dist/hooks-status-BHt-Xvh4.js +0 -1
  260. package/dist/hooks-status-CRJ4J0ZW.js +0 -1
  261. package/dist/image-BBO-0uLG.js +0 -1
  262. package/dist/image-BP1cfEh1.js +0 -1
  263. package/dist/image-BVbOr9yV.js +0 -1
  264. package/dist/image-CcsuUB1B.js +0 -1
  265. package/dist/index.js +1 -2
  266. package/dist/inspect-BKV-I1UE.js +0 -1
  267. package/dist/inspect-z59cgmYc.js +0 -1
  268. package/dist/install-safe-path-C6kc_8NW.js +0 -1
  269. package/dist/install-safe-path-iesxijn2.js +0 -1
  270. package/dist/installs-CKzq-YqL.js +0 -1
  271. package/dist/installs-DzSskdtJ.js +0 -1
  272. package/dist/ipv4-B05QVStj.js +0 -1
  273. package/dist/ipv4-SeeyR-DH.js +0 -1
  274. package/dist/ir-B7mdG27k.js +0 -1
  275. package/dist/ir-BTfsA9Dd.js +0 -1
  276. package/dist/ir-CNTx85qV.js +0 -1
  277. package/dist/ir-DdjufzKF.js +0 -1
  278. package/dist/is-main-DG5ueqhF.js +0 -1
  279. package/dist/issue-format-BtMzMXtZ.js +0 -1
  280. package/dist/issue-format-CN9PHzXY.js +0 -1
  281. package/dist/kill-tree-D6nPx1_o.js +0 -1
  282. package/dist/lifecycle-core-B1nrgJCw.js +0 -1
  283. package/dist/lifecycle-core-D_LWJeD_.js +0 -1
  284. package/dist/line/accounts.js +0 -1
  285. package/dist/line/send.js +0 -1
  286. package/dist/line/template-messages.js +0 -1
  287. package/dist/links-CBnmRP9D.js +0 -1
  288. package/dist/links-CySwdMcF.js +0 -1
  289. package/dist/llm-slug-generator.js +0 -1
  290. package/dist/load-options-BsOW74dp.js +0 -1
  291. package/dist/load-options-C7dLuybp.js +0 -1
  292. package/dist/load-options-DV4j6Aqb.js +0 -1
  293. package/dist/load-options-Dwt0CeEg.js +0 -1
  294. package/dist/local-roots-aA-4ohTq.js +0 -1
  295. package/dist/logger-5W0OocJW.js +0 -1
  296. package/dist/logger-Bl8URnrW.js +0 -1
  297. package/dist/logger-DwWqfo66.js +0 -1
  298. package/dist/logger-kQAOe3qp.js +0 -1
  299. package/dist/logging-B7XHbCNn.js +0 -1
  300. package/dist/logging-CbMVr2MA.js +0 -1
  301. package/dist/login-BGLWiksP.js +0 -1
  302. package/dist/login-CcYeF5T_.js +0 -1
  303. package/dist/login-DSZdCiDx.js +0 -1
  304. package/dist/login-DWZzj-P1.js +0 -1
  305. package/dist/login-qr-BGpGVMES.js +0 -1
  306. package/dist/login-qr-BUdgvi3v.js +0 -1
  307. package/dist/login-qr-Bx8skPB-.js +0 -1
  308. package/dist/login-qr-DYUCmP-W.js +0 -1
  309. package/dist/login-qr-_79eoRb4.js +0 -1
  310. package/dist/logs-cli-C52caOop.js +0 -1
  311. package/dist/logs-cli-Ch50TE-J.js +0 -1
  312. package/dist/manager-CI6O4QH6.js +0 -1
  313. package/dist/manager-CN_rQm1L.js +0 -1
  314. package/dist/manager-CxZRoQkE.js +0 -1
  315. package/dist/manager-iFi--Fru.js +0 -1
  316. package/dist/memory-cli-BouV_wyL.js +0 -1
  317. package/dist/memory-cli-C8fBBPgv.js +0 -1
  318. package/dist/model-catalog-D-hkNWin.js +0 -1
  319. package/dist/model-catalog-mt0IcDfR.js +0 -1
  320. package/dist/model-param-b-B0r2cPDw.js +0 -1
  321. package/dist/model-param-b-BqIr5rY5.js +0 -1
  322. package/dist/model-picker-BB0Zdvyu.js +0 -1
  323. package/dist/model-picker-DeiWyW0N.js +0 -1
  324. package/dist/model-selection-BLbnMb5E.js +0 -1
  325. package/dist/model-selection-D7mdJmGK.js +0 -1
  326. package/dist/model-selection-DvekK9rZ.js +0 -1
  327. package/dist/models-BBYqej07.js +0 -1
  328. package/dist/models-cli-CMMhnlHo.js +0 -1
  329. package/dist/models-cli-CqbDyDn2.js +0 -1
  330. package/dist/models-config-BlQ39qlq.js +0 -1
  331. package/dist/models-config-DZzS67GS.js +0 -1
  332. package/dist/mutable-allowlist-detectors-C4rNVag8.js +0 -1
  333. package/dist/mutable-allowlist-detectors-CL0qe54J.js +0 -1
  334. package/dist/node-cli-Bzu1efMB.js +0 -1
  335. package/dist/node-cli-Dv-Eib4o.js +0 -1
  336. package/dist/node-command-policy-D9yZu9zq.js +0 -1
  337. package/dist/node-command-policy-DyWp3Bjz.js +0 -1
  338. package/dist/node-commands-8GBOiktk.js +0 -1
  339. package/dist/node-commands-DdkziOTx.js +0 -1
  340. package/dist/node-resolve-B3BJbmQX.js +0 -1
  341. package/dist/node-resolve-DLZf3-1V.js +0 -1
  342. package/dist/node-service-BRfrNp8l.js +0 -1
  343. package/dist/node-service-C0bl7jcZ.js +0 -1
  344. package/dist/node-shell-BVZylVP6.js +0 -1
  345. package/dist/nodes-cli-B3aNQG30.js +0 -1
  346. package/dist/nodes-cli-DzO6PSFw.js +0 -1
  347. package/dist/nodes-screen-8nRBsfID.js +0 -1
  348. package/dist/note-D4GAwgha.js +0 -1
  349. package/dist/note-Dp-d_utk.js +0 -1
  350. package/dist/npm-pack-install-B23L-AtF.js +0 -1
  351. package/dist/npm-pack-install-C0te3Oap.js +0 -1
  352. package/dist/npm-resolution--_-0q2ks.js +0 -1
  353. package/dist/npm-resolution-CBlwQq3a.js +0 -1
  354. package/dist/oauth-env-DAamJ1oz.js +0 -1
  355. package/dist/oauth-env-DSLBTWb1.js +0 -1
  356. package/dist/oauth-tls-preflight-BSBRDIfC.js +0 -1
  357. package/dist/oauth-tls-preflight-ByNjbUR5.js +0 -1
  358. package/dist/ollama-setup-CGuyH3Ey.js +0 -1
  359. package/dist/ollama-setup-LVRPefmV.js +0 -1
  360. package/dist/{onboard-DMmLqys5.js → onboard-DZG0HnuP.js} +1 -2
  361. package/dist/{onboard-C2Ofvb_A.js → onboard-DlCEww7K.js} +1 -2
  362. package/dist/onboard-channels-BDMtq3ex.js +0 -1
  363. package/dist/onboard-channels-BO3AN_eA.js +0 -1
  364. package/dist/onboard-config-B7U20YRw.js +0 -1
  365. package/dist/onboard-config-DS9dUv8M.js +0 -1
  366. package/dist/onboard-custom--OylwoHQ.js +0 -1
  367. package/dist/onboard-custom-_Df_ciX2.js +0 -1
  368. package/dist/onboard-helpers-D90u4wVK.js +0 -1
  369. package/dist/onboard-helpers-DOlI17Ac.js +0 -1
  370. package/dist/onboard-hooks-CERzXObm.js +0 -1
  371. package/dist/onboard-hooks-gQ3sxBNi.js +0 -1
  372. package/dist/onboard-provider-auth-flags-CqbipO7D.js +0 -1
  373. package/dist/onboard-provider-auth-flags-Dvwzdz37.js +0 -1
  374. package/dist/onboard-remote-B1-SlmUN.js +0 -1
  375. package/dist/onboard-remote-C7Eg49Uf.js +0 -1
  376. package/dist/onboard-search-f2tJD4hg.js +0 -1
  377. package/dist/onboard-search-fslKKhyg.js +0 -1
  378. package/dist/onboard-skills-DCgTr6hW.js +0 -1
  379. package/dist/onboard-skills-_TBzISd2.js +0 -1
  380. package/dist/{onboarding-C82cKKNI.js → onboarding-CxRTJCBM.js} +1 -2
  381. package/dist/{onboarding-M80apW9t.js → onboarding-m-m__16h.js} +1 -2
  382. package/dist/{onboarding.finalize-D9nrrI1J.js → onboarding.finalize-BJxMhYUa.js} +1 -2
  383. package/dist/{onboarding.finalize-CVvwI1Qg.js → onboarding.finalize-UiX3YmbI.js} +1 -2
  384. package/dist/onboarding.gateway-config-CXjzrfwL.js +0 -1
  385. package/dist/onboarding.gateway-config-TSq70E-S.js +0 -1
  386. package/dist/onboarding.secret-input-BSmFS1Px.js +0 -1
  387. package/dist/onboarding.secret-input-CUD0t7Pk.js +0 -1
  388. package/dist/openai-codex-model-default-Bx8i3bOg.js +0 -1
  389. package/dist/openai-codex-model-default-DuRfnfUm.js +0 -1
  390. package/dist/openai-model-default-Bm9b0oR0.js +0 -1
  391. package/dist/openai-model-default-KMCphvoO.js +0 -1
  392. package/dist/openclaw-exec-env-BWbOu_YC.js +0 -1
  393. package/dist/openclaw-root-CnsBf6ZU.js +0 -1
  394. package/dist/openclaw-root-D_0Q6--h.js +0 -1
  395. package/dist/outbound-BevYwvMh.js +0 -1
  396. package/dist/outbound-CqDxMWLZ.js +0 -1
  397. package/dist/outbound-DmwQEFu0.js +0 -1
  398. package/dist/outbound-attachment-9-8VNvRG.js +0 -1
  399. package/dist/outbound-attachment-Bah4dvuM.js +0 -1
  400. package/dist/outbound-attachment-CVcDBkAD.js +0 -1
  401. package/dist/outbound-attachment-E89zumcH.js +0 -1
  402. package/dist/outbound-xlG_RqEu.js +0 -1
  403. package/dist/pairing-cli-ByPhOBWo.js +0 -1
  404. package/dist/pairing-cli-CxJy8LPo.js +0 -1
  405. package/dist/pairing-labels-CZ-aX-up.js +0 -1
  406. package/dist/pairing-labels-PIuZfthz.js +0 -1
  407. package/dist/pairing-store-BaaVy1zB.js +0 -1
  408. package/dist/pairing-store-EmfFQVcs.js +0 -1
  409. package/dist/pairing-token-B8RdfK2y.js +0 -1
  410. package/dist/pairing-token-zdbQ951y.js +0 -1
  411. package/dist/parse-duration-XTjMKl8s.js +0 -1
  412. package/dist/parse-finite-number-DqzUM-_s.js +0 -1
  413. package/dist/parse-finite-number-dBmDLLKL.js +0 -1
  414. package/dist/parse-log-line-CsYLg7Qu.js +0 -1
  415. package/dist/parse-log-line-NV-cipB_.js +0 -1
  416. package/dist/parse-port-Bv1Y9Wk5.js +0 -1
  417. package/dist/parse-port-JVwkxcZ8.js +0 -1
  418. package/dist/parse-timeout-DWSGfCkQ.js +0 -1
  419. package/dist/parse-timeout-Dx4QnVzo.js +0 -1
  420. package/dist/path-alias-guards-kY_ZbWs-.js +0 -1
  421. package/dist/path-alias-guards-mvyLCPlN.js +0 -1
  422. package/dist/path-env-BPd1Yd-i.js +0 -1
  423. package/dist/path-env-emdAQejM.js +0 -1
  424. package/dist/path-safety-BukYK8Kd.js +0 -1
  425. package/dist/path-safety-DaaMJFdt.js +0 -1
  426. package/dist/paths-B4IRk3wi.js +0 -1
  427. package/dist/paths-BfjJY2VL.js +0 -1
  428. package/dist/paths-BjD3T_xq.js +0 -1
  429. package/dist/paths-BpQOWYiT.js +0 -1
  430. package/dist/paths-CChBdtE8.js +0 -1
  431. package/dist/paths-CrCoPIVK.js +0 -1
  432. package/dist/paths-piJASC5k.js +0 -1
  433. package/dist/paths-yLEk_25I.js +0 -1
  434. package/dist/pi-embedded-6yGEd2xd.js +0 -1
  435. package/dist/pi-embedded-X_Svd4Wi.js +0 -1
  436. package/dist/pi-model-discovery-BPkhPDMr.js +0 -1
  437. package/dist/pi-model-discovery-BonZ1N3x.js +0 -1
  438. package/dist/pi-model-discovery-DVKXkQTR.js +0 -1
  439. package/dist/pi-model-discovery-DnJkNRc-.js +0 -1
  440. package/dist/pi-tools.before-tool-call.runtime-2-IJ8xox.js +0 -1
  441. package/dist/pi-tools.before-tool-call.runtime-CNesNgq0.js +0 -1
  442. package/dist/pi-tools.before-tool-call.runtime-CmtITCPP.js +0 -1
  443. package/dist/pi-tools.before-tool-call.runtime-VUjwIYJ7.js +0 -1
  444. package/dist/pi-tools.policy-B6q8YOfg.js +0 -1
  445. package/dist/plugin-auto-enable-CTgkkJK7.js +0 -1
  446. package/dist/plugin-auto-enable-adba5Evb.js +0 -1
  447. package/dist/plugin-install-plan-BmyB3dR1.js +0 -1
  448. package/dist/plugin-install-plan-sIOiMBS1.js +0 -1
  449. package/dist/plugin-registry-CN2aCPP7.js +0 -1
  450. package/dist/plugin-registry-DYwEy5eM.js +0 -1
  451. package/dist/plugin-sdk/account-id.cjs +0 -1
  452. package/dist/plugin-sdk/account-id.js +0 -1
  453. package/dist/plugin-sdk/acpx.cjs +0 -1
  454. package/dist/plugin-sdk/acpx.js +0 -1
  455. package/dist/plugin-sdk/active-listener-B1sd5Yrr.cjs +0 -1
  456. package/dist/plugin-sdk/active-listener-CVvtj4nc.cjs +0 -1
  457. package/dist/plugin-sdk/active-listener-D0Pag-jN.js +0 -1
  458. package/dist/plugin-sdk/active-listener-DIzG1nGC.js +0 -1
  459. package/dist/plugin-sdk/active-listener-DUT4_v5r.cjs +0 -1
  460. package/dist/plugin-sdk/active-listener-D_Cq4Tuy.cjs +0 -1
  461. package/dist/plugin-sdk/active-listener-HBuXCjdG.js +0 -1
  462. package/dist/plugin-sdk/active-listener-V7whA3d_.js +0 -1
  463. package/dist/plugin-sdk/active-listener-YOWDFFGG.js +0 -1
  464. package/dist/plugin-sdk/active-listener-kJidH-KZ.js +0 -1
  465. package/dist/plugin-sdk/active-listener-kmJHqUWY.cjs +0 -1
  466. package/dist/plugin-sdk/active-listener-vpxSd-kW.cjs +0 -1
  467. package/dist/plugin-sdk/api-key-rotation-BEhJdmXN.cjs +0 -1
  468. package/dist/plugin-sdk/api-key-rotation-BcDAQISn.js +0 -1
  469. package/dist/plugin-sdk/api-key-rotation-Bua813IH.cjs +0 -1
  470. package/dist/plugin-sdk/api-key-rotation-C7_ooC3N.js +0 -1
  471. package/dist/plugin-sdk/api-key-rotation-CiFfWYgL.js +0 -1
  472. package/dist/plugin-sdk/api-key-rotation-CrVpqlS6.cjs +0 -1
  473. package/dist/plugin-sdk/api-key-rotation-D-zSLAf_.cjs +0 -1
  474. package/dist/plugin-sdk/api-key-rotation-DInDOH-A.js +0 -1
  475. package/dist/plugin-sdk/api-key-rotation-DKp72Rw4.cjs +0 -1
  476. package/dist/plugin-sdk/api-key-rotation-YRRtbk9Y.cjs +0 -1
  477. package/dist/plugin-sdk/api-key-rotation-tVSHRH8D.js +0 -1
  478. package/dist/plugin-sdk/api-key-rotation-ta953lKF.js +0 -1
  479. package/dist/plugin-sdk/audio-preflight-5ZbcO1qy.js +0 -1
  480. package/dist/plugin-sdk/audio-preflight-BrAX9j6r.js +0 -1
  481. package/dist/plugin-sdk/audio-preflight-C2NpU5hR.cjs +0 -1
  482. package/dist/plugin-sdk/audio-preflight-CtWGsCje.js +0 -1
  483. package/dist/plugin-sdk/audio-preflight-CwjNHDro.cjs +0 -1
  484. package/dist/plugin-sdk/audio-preflight-D22cCCmn.js +0 -1
  485. package/dist/plugin-sdk/audio-preflight-DyK2q8OQ.cjs +0 -1
  486. package/dist/plugin-sdk/audio-preflight-F7lfchEO.cjs +0 -1
  487. package/dist/plugin-sdk/audio-preflight-ItHD-3bi.js +0 -1
  488. package/dist/plugin-sdk/audio-preflight-QWsN9gcK.cjs +0 -1
  489. package/dist/plugin-sdk/audio-preflight-k7Qt2rDs.cjs +0 -1
  490. package/dist/plugin-sdk/audio-preflight-wcMT_iUA.js +0 -1
  491. package/dist/plugin-sdk/audio-transcription-runner-B3bLoVvU.js +0 -1
  492. package/dist/plugin-sdk/audio-transcription-runner-BDfW3xeJ.cjs +0 -1
  493. package/dist/plugin-sdk/audio-transcription-runner-BZLASCWO.cjs +0 -1
  494. package/dist/plugin-sdk/audio-transcription-runner-CiRKTRED.cjs +0 -1
  495. package/dist/plugin-sdk/audio-transcription-runner-Cxs7u0B3.cjs +0 -1
  496. package/dist/plugin-sdk/audio-transcription-runner-D2IxJCfd.cjs +0 -1
  497. package/dist/plugin-sdk/audio-transcription-runner-DA6TwXrV.cjs +0 -1
  498. package/dist/plugin-sdk/audio-transcription-runner-DZIEX1Rl.js +0 -1
  499. package/dist/plugin-sdk/audio-transcription-runner-DZRGn6-f.js +0 -1
  500. package/dist/plugin-sdk/audio-transcription-runner-Dc-WF6zu.js +0 -1
  501. package/dist/plugin-sdk/audio-transcription-runner-DuBgVmcT.js +0 -1
  502. package/dist/plugin-sdk/audio-transcription-runner-nKI1rQ0R.js +0 -1
  503. package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +0 -1
  504. package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +0 -1
  505. package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +0 -1
  506. package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +0 -1
  507. package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +0 -1
  508. package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +0 -1
  509. package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +0 -1
  510. package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +0 -1
  511. package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +0 -1
  512. package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +0 -1
  513. package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +0 -1
  514. package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +0 -1
  515. package/dist/plugin-sdk/bluebubbles.cjs +0 -1
  516. package/dist/plugin-sdk/bluebubbles.js +0 -1
  517. package/dist/plugin-sdk/channel-activity--Ax2m0qQ.js +0 -1
  518. package/dist/plugin-sdk/channel-activity-BCsNxxNa.js +0 -1
  519. package/dist/plugin-sdk/channel-activity-BUieXBdg.cjs +0 -1
  520. package/dist/plugin-sdk/channel-activity-BXffAklf.js +0 -1
  521. package/dist/plugin-sdk/channel-activity-BlYTUiU4.js +0 -1
  522. package/dist/plugin-sdk/channel-activity-Bm-pvlXw.cjs +0 -1
  523. package/dist/plugin-sdk/channel-activity-Bnai3H2M.js +0 -1
  524. package/dist/plugin-sdk/channel-activity-CC3JLAxD.cjs +0 -1
  525. package/dist/plugin-sdk/channel-activity-CTmfXwYn.cjs +0 -1
  526. package/dist/plugin-sdk/channel-activity-D98aY9ZF.js +0 -1
  527. package/dist/plugin-sdk/channel-activity-DymcGybX.cjs +0 -1
  528. package/dist/plugin-sdk/channel-activity-gZBQEyOK.cjs +0 -1
  529. package/dist/plugin-sdk/channel-web-B795Ild9.cjs +0 -1
  530. package/dist/plugin-sdk/channel-web-Bg8DNyeb.js +0 -1
  531. package/dist/plugin-sdk/channel-web-CW42ALB5.cjs +0 -1
  532. package/dist/plugin-sdk/channel-web-D5zxPW-x.js +0 -1
  533. package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +0 -1
  534. package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +0 -1
  535. package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +0 -1
  536. package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +0 -1
  537. package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +0 -1
  538. package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +0 -1
  539. package/dist/plugin-sdk/commands-registry-BIGWymiv.cjs +0 -1
  540. package/dist/plugin-sdk/commands-registry-Bnadsir-.cjs +0 -1
  541. package/dist/plugin-sdk/commands-registry-C1Gb98lg.js +0 -1
  542. package/dist/plugin-sdk/commands-registry-CZcNTwNs.js +0 -1
  543. package/dist/plugin-sdk/commands-registry-CeJQPXIR.js +0 -1
  544. package/dist/plugin-sdk/commands-registry-CehvtLBA.js +0 -1
  545. package/dist/plugin-sdk/commands-registry-Cf8DaBmw.js +0 -1
  546. package/dist/plugin-sdk/commands-registry-Cfv6gDoQ.cjs +0 -1
  547. package/dist/plugin-sdk/commands-registry-D734s8r7.js +0 -1
  548. package/dist/plugin-sdk/commands-registry-DWx89vtR.cjs +0 -1
  549. package/dist/plugin-sdk/commands-registry-DviWu8J8.cjs +0 -1
  550. package/dist/plugin-sdk/commands-registry-wA0CkHGk.cjs +0 -1
  551. package/dist/plugin-sdk/common-BJ0tHoNJ.cjs +0 -1
  552. package/dist/plugin-sdk/common-CxLmdAIn.js +0 -1
  553. package/dist/plugin-sdk/compat.cjs +0 -1
  554. package/dist/plugin-sdk/compat.js +0 -1
  555. package/dist/plugin-sdk/config-C2-9m5-M.cjs +0 -1
  556. package/dist/plugin-sdk/config-Cx3SFBFW.js +0 -1
  557. package/dist/plugin-sdk/copilot-proxy.cjs +0 -1
  558. package/dist/plugin-sdk/copilot-proxy.js +0 -1
  559. package/dist/plugin-sdk/core.cjs +0 -1
  560. package/dist/plugin-sdk/core.js +0 -1
  561. package/dist/plugin-sdk/deliver--pOntbRC.cjs +0 -1
  562. package/dist/plugin-sdk/deliver-BLMe2eBS.js +0 -1
  563. package/dist/plugin-sdk/deliver-BcHzZPc2.js +0 -1
  564. package/dist/plugin-sdk/deliver-CSGTRHt1.js +0 -1
  565. package/dist/plugin-sdk/deliver-Cm8yUsWK.cjs +0 -1
  566. package/dist/plugin-sdk/deliver-DQDZRjZ0.js +0 -1
  567. package/dist/plugin-sdk/deliver-DRintVMn.js +0 -1
  568. package/dist/plugin-sdk/deliver-DehGdLxT.js +0 -1
  569. package/dist/plugin-sdk/deliver-EThzALwn.cjs +0 -1
  570. package/dist/plugin-sdk/deliver-d7VfVmTa.cjs +0 -1
  571. package/dist/plugin-sdk/deliver-rACJj8E9.cjs +0 -1
  572. package/dist/plugin-sdk/deliver-wteCze09.cjs +0 -1
  573. package/dist/plugin-sdk/device-pair.cjs +0 -1
  574. package/dist/plugin-sdk/device-pair.js +0 -1
  575. package/dist/plugin-sdk/diagnostic-BcBlExSy.cjs +0 -1
  576. package/dist/plugin-sdk/diagnostic-Bmp3zWQp.cjs +0 -1
  577. package/dist/plugin-sdk/diagnostic-BvrdTMl3.js +0 -1
  578. package/dist/plugin-sdk/diagnostic-C2jKFixS.cjs +0 -1
  579. package/dist/plugin-sdk/diagnostic-CSfBcIOI.js +0 -1
  580. package/dist/plugin-sdk/diagnostic-CYR5dxDE.cjs +0 -1
  581. package/dist/plugin-sdk/diagnostic-CdNZNyNv.cjs +0 -1
  582. package/dist/plugin-sdk/diagnostic-DE5k6C1E.js +0 -1
  583. package/dist/plugin-sdk/diagnostic-DMpxa640.cjs +0 -1
  584. package/dist/plugin-sdk/diagnostic-DSgf5Z4H.js +0 -1
  585. package/dist/plugin-sdk/diagnostic-DbRdunVt.js +0 -1
  586. package/dist/plugin-sdk/diagnostic-zCrcFAbJ.js +0 -1
  587. package/dist/plugin-sdk/diagnostics-otel.cjs +0 -1
  588. package/dist/plugin-sdk/diagnostics-otel.js +0 -1
  589. package/dist/plugin-sdk/diffs.cjs +0 -1
  590. package/dist/plugin-sdk/diffs.js +0 -1
  591. package/dist/plugin-sdk/discord.cjs +0 -1
  592. package/dist/plugin-sdk/discord.js +0 -1
  593. package/dist/plugin-sdk/dispatch-B13B2T1k.js +0 -1
  594. package/dist/plugin-sdk/dispatch-BaBcLOry.js +0 -1
  595. package/dist/plugin-sdk/dispatch-BlOkbw2U.js +0 -1
  596. package/dist/plugin-sdk/dispatch-D2Km7gvG.cjs +0 -1
  597. package/dist/plugin-sdk/dispatch-DAaOM5c1.cjs +0 -1
  598. package/dist/plugin-sdk/dispatch-DYRrW05S.js +0 -1
  599. package/dist/plugin-sdk/dispatch-Dap2ZPC9.js +0 -1
  600. package/dist/plugin-sdk/dispatch-Dl0eaYcY.cjs +0 -1
  601. package/dist/plugin-sdk/dispatch-_tJF5hSh.cjs +0 -1
  602. package/dist/plugin-sdk/dispatch-cPg1rBWu.cjs +0 -1
  603. package/dist/plugin-sdk/feishu.cjs +0 -1
  604. package/dist/plugin-sdk/feishu.js +0 -1
  605. package/dist/plugin-sdk/fetch-7Iq9POda.js +0 -1
  606. package/dist/plugin-sdk/fetch-B1GR6-u4.js +0 -1
  607. package/dist/plugin-sdk/fetch-B27H-XCf.js +0 -1
  608. package/dist/plugin-sdk/fetch-BMYDLRWo.js +0 -1
  609. package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +0 -1
  610. package/dist/plugin-sdk/fetch-BVEVk5YF.js +0 -1
  611. package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +0 -1
  612. package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +0 -1
  613. package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +0 -1
  614. package/dist/plugin-sdk/fetch-BtZY623f.js +0 -1
  615. package/dist/plugin-sdk/fetch-C-HRWp5R.js +0 -1
  616. package/dist/plugin-sdk/fetch-C3LEMysf.js +0 -1
  617. package/dist/plugin-sdk/fetch-CCLWsYaQ.js +0 -1
  618. package/dist/plugin-sdk/fetch-CZewCAvu.cjs +0 -1
  619. package/dist/plugin-sdk/fetch-ClKErpni.cjs +0 -1
  620. package/dist/plugin-sdk/fetch-DBRI0sKI.js +0 -1
  621. package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +0 -1
  622. package/dist/plugin-sdk/fetch-DUMEaqum.cjs +0 -1
  623. package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +0 -1
  624. package/dist/plugin-sdk/fetch-J0IzopiJ.js +0 -1
  625. package/dist/plugin-sdk/fetch-guard-7tObWdgY.cjs +0 -1
  626. package/dist/plugin-sdk/fetch-guard-ACKeLHgB.js +0 -1
  627. package/dist/plugin-sdk/fetch-guard-BI5z5sCg.cjs +0 -1
  628. package/dist/plugin-sdk/fetch-guard-BUOtcki7.cjs +0 -1
  629. package/dist/plugin-sdk/fetch-guard-BZi5e63X.js +0 -1
  630. package/dist/plugin-sdk/fetch-guard-CVnIQ0nI.cjs +0 -1
  631. package/dist/plugin-sdk/fetch-guard-DKS4LY4o.js +0 -1
  632. package/dist/plugin-sdk/fetch-guard-DcAQBHbg.cjs +0 -1
  633. package/dist/plugin-sdk/fetch-guard-Dj-DlPBS.cjs +0 -1
  634. package/dist/plugin-sdk/fetch-guard-Dm1nAvhl.js +0 -1
  635. package/dist/plugin-sdk/fetch-guard-GfhPo1Fa.js +0 -1
  636. package/dist/plugin-sdk/fetch-guard-nFWUH1s9.js +0 -1
  637. package/dist/plugin-sdk/fetch-lw-aF17e.cjs +0 -1
  638. package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +0 -1
  639. package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +0 -1
  640. package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +0 -1
  641. package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +0 -1
  642. package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +0 -1
  643. package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +0 -1
  644. package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +0 -1
  645. package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +0 -1
  646. package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +0 -1
  647. package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +0 -1
  648. package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +0 -1
  649. package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +0 -1
  650. package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +0 -1
  651. package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +0 -1
  652. package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +0 -1
  653. package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +0 -1
  654. package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +0 -1
  655. package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +0 -1
  656. package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +0 -1
  657. package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +0 -1
  658. package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +0 -1
  659. package/dist/plugin-sdk/google-gemini-cli-auth.cjs +0 -1
  660. package/dist/plugin-sdk/google-gemini-cli-auth.js +0 -1
  661. package/dist/plugin-sdk/googlechat.cjs +0 -1
  662. package/dist/plugin-sdk/googlechat.js +0 -1
  663. package/dist/plugin-sdk/image-BLG2OrjE.cjs +0 -1
  664. package/dist/plugin-sdk/image-BPUmI-kx.cjs +0 -1
  665. package/dist/plugin-sdk/image-Bt_w0o87.js +0 -1
  666. package/dist/plugin-sdk/image-CMeyJO2-.js +0 -1
  667. package/dist/plugin-sdk/image-CMiT6Fvk.cjs +0 -1
  668. package/dist/plugin-sdk/image-CNMuTe0Z.js +0 -1
  669. package/dist/plugin-sdk/image-CO9zxV0G.js +0 -1
  670. package/dist/plugin-sdk/image-CjVyB61p.cjs +0 -1
  671. package/dist/plugin-sdk/image-CkWikcPf.cjs +0 -1
  672. package/dist/plugin-sdk/image-Dk2gzO1U.js +0 -1
  673. package/dist/plugin-sdk/image-Jmj-a1pv.js +0 -1
  674. package/dist/plugin-sdk/image-UKq4Bn2r.cjs +0 -1
  675. package/dist/plugin-sdk/imessage.cjs +0 -1
  676. package/dist/plugin-sdk/imessage.js +0 -1
  677. package/dist/plugin-sdk/index.cjs +0 -1
  678. package/dist/plugin-sdk/index.js +0 -1
  679. package/dist/plugin-sdk/ir-Bg_avpt0.cjs +0 -1
  680. package/dist/plugin-sdk/ir-BiiaNbB9.cjs +0 -1
  681. package/dist/plugin-sdk/ir-CYJPM1_I.cjs +0 -1
  682. package/dist/plugin-sdk/ir-Ca3EdqFl.js +0 -1
  683. package/dist/plugin-sdk/ir-Cl_S_VBR.cjs +0 -1
  684. package/dist/plugin-sdk/ir-Cq7b_9v8.cjs +0 -1
  685. package/dist/plugin-sdk/ir-DcWa7gsX.cjs +0 -1
  686. package/dist/plugin-sdk/ir-DdA08iXJ.js +0 -1
  687. package/dist/plugin-sdk/ir-DqBwrJJd.js +0 -1
  688. package/dist/plugin-sdk/ir-EUD0qDem.js +0 -1
  689. package/dist/plugin-sdk/ir-c1MS26Ci.js +0 -1
  690. package/dist/plugin-sdk/ir-vhCxHELh.js +0 -1
  691. package/dist/plugin-sdk/irc.cjs +0 -1
  692. package/dist/plugin-sdk/irc.js +0 -1
  693. package/dist/plugin-sdk/keyed-async-queue.cjs +0 -1
  694. package/dist/plugin-sdk/keyed-async-queue.js +0 -1
  695. package/dist/plugin-sdk/line.cjs +0 -1
  696. package/dist/plugin-sdk/line.js +0 -1
  697. package/dist/plugin-sdk/llm-task.cjs +0 -1
  698. package/dist/plugin-sdk/llm-task.js +0 -1
  699. package/dist/plugin-sdk/load-options-B9Ss5YOO.js +0 -1
  700. package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +0 -1
  701. package/dist/plugin-sdk/load-options-BXvm8HVv.js +0 -1
  702. package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +0 -1
  703. package/dist/plugin-sdk/load-options-BcSg1ODN.js +0 -1
  704. package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +0 -1
  705. package/dist/plugin-sdk/lobster.cjs +0 -1
  706. package/dist/plugin-sdk/lobster.js +0 -1
  707. package/dist/plugin-sdk/local-roots-2OcKjfzk.js +0 -1
  708. package/dist/plugin-sdk/local-roots-ByrRvVBc.cjs +0 -1
  709. package/dist/plugin-sdk/local-roots-CXPxvx0J.js +0 -1
  710. package/dist/plugin-sdk/local-roots-CzbssMW1.cjs +0 -1
  711. package/dist/plugin-sdk/local-roots-DIijr8mK.cjs +0 -1
  712. package/dist/plugin-sdk/local-roots-DRv9Y_41.cjs +0 -1
  713. package/dist/plugin-sdk/local-roots-DTC7BJct.js +0 -1
  714. package/dist/plugin-sdk/local-roots-DU8RuiRi.js +0 -1
  715. package/dist/plugin-sdk/local-roots-DprQ5M3b.js +0 -1
  716. package/dist/plugin-sdk/local-roots-GqNj3vMl.cjs +0 -1
  717. package/dist/plugin-sdk/local-roots-I2icTm2P.cjs +0 -1
  718. package/dist/plugin-sdk/local-roots-qEhx-D42.js +0 -1
  719. package/dist/plugin-sdk/logger-6O6OsYBL.cjs +0 -1
  720. package/dist/plugin-sdk/logger-BlddiV_d.cjs +0 -1
  721. package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +0 -1
  722. package/dist/plugin-sdk/logger-BtrWb0dj.js +0 -1
  723. package/dist/plugin-sdk/logger-C210xuWx.js +0 -1
  724. package/dist/plugin-sdk/logger-DJGHvDbX.js +0 -1
  725. package/dist/plugin-sdk/logger-DPlqYkRm.cjs +0 -1
  726. package/dist/plugin-sdk/logger-DUYnS-W3.cjs +0 -1
  727. package/dist/plugin-sdk/logger-DwWqfo66.js +0 -1
  728. package/dist/plugin-sdk/logger-vBDTZWl3.js +0 -1
  729. package/dist/plugin-sdk/login-0ui1gfZM.cjs +0 -1
  730. package/dist/plugin-sdk/login-B0lIdwss.cjs +0 -1
  731. package/dist/plugin-sdk/login-B43p990Y.cjs +0 -1
  732. package/dist/plugin-sdk/login-DHBcWg4R.cjs +0 -1
  733. package/dist/plugin-sdk/login-DUCNg4lV.js +0 -1
  734. package/dist/plugin-sdk/login-DqVo92p1.js +0 -1
  735. package/dist/plugin-sdk/login-Dt4KiLgP.js +0 -1
  736. package/dist/plugin-sdk/login-IVBk3GwG.cjs +0 -1
  737. package/dist/plugin-sdk/login-T6tSC1Xl.js +0 -1
  738. package/dist/plugin-sdk/login-XruRHZe5.js +0 -1
  739. package/dist/plugin-sdk/login-p9hWVYO6.cjs +0 -1
  740. package/dist/plugin-sdk/login-qr-B4wf-15u.js +0 -1
  741. package/dist/plugin-sdk/login-qr-BQMm3yV_.cjs +0 -1
  742. package/dist/plugin-sdk/login-qr-BreyhXFQ.cjs +0 -1
  743. package/dist/plugin-sdk/login-qr-C6RPK8ld.js +0 -1
  744. package/dist/plugin-sdk/login-qr-C6cQueYq.js +0 -1
  745. package/dist/plugin-sdk/login-qr-CxznBK7s.cjs +0 -1
  746. package/dist/plugin-sdk/login-qr-D0dmb3Gr.js +0 -1
  747. package/dist/plugin-sdk/login-qr-DWW1FC-n.cjs +0 -1
  748. package/dist/plugin-sdk/login-qr-DjC-P7Vy.cjs +0 -1
  749. package/dist/plugin-sdk/login-qr-KeBTY1Mb.js +0 -1
  750. package/dist/plugin-sdk/login-qr-gQsVZ8en.js +0 -1
  751. package/dist/plugin-sdk/login-qr-xkqmSKC8.cjs +0 -1
  752. package/dist/plugin-sdk/login-x9vN5UnR.js +0 -1
  753. package/dist/plugin-sdk/manager-B38IH03I.cjs +0 -1
  754. package/dist/plugin-sdk/manager-BZVFXygg.cjs +0 -1
  755. package/dist/plugin-sdk/manager-BuNveORY.cjs +0 -1
  756. package/dist/plugin-sdk/manager-C4FEmxjq.cjs +0 -1
  757. package/dist/plugin-sdk/manager-CHnzSMNG.js +0 -1
  758. package/dist/plugin-sdk/manager-CN4wiVFz.js +0 -1
  759. package/dist/plugin-sdk/manager-D9RwKYCX.js +0 -1
  760. package/dist/plugin-sdk/manager-DAmjm61U.cjs +0 -1
  761. package/dist/plugin-sdk/manager-DJSpJkev.js +0 -1
  762. package/dist/plugin-sdk/manager-EO7deQzm.js +0 -1
  763. package/dist/plugin-sdk/manager-vyHAgafh.cjs +0 -1
  764. package/dist/plugin-sdk/manager-zyDhj7B-.js +0 -1
  765. package/dist/plugin-sdk/matrix.cjs +0 -1
  766. package/dist/plugin-sdk/matrix.js +0 -1
  767. package/dist/plugin-sdk/mattermost.cjs +0 -1
  768. package/dist/plugin-sdk/mattermost.js +0 -1
  769. package/dist/plugin-sdk/memory-core.cjs +0 -1
  770. package/dist/plugin-sdk/memory-core.js +0 -1
  771. package/dist/plugin-sdk/minimax-portal-auth.cjs +0 -1
  772. package/dist/plugin-sdk/minimax-portal-auth.js +0 -1
  773. package/dist/plugin-sdk/model-auth-1RA9nkQH.js +0 -1
  774. package/dist/plugin-sdk/model-auth-Cgqd2_sP.cjs +0 -1
  775. package/dist/plugin-sdk/model-auth-Cp2GSJwZ.js +0 -1
  776. package/dist/plugin-sdk/model-auth-Lv74A-Si.cjs +0 -1
  777. package/dist/plugin-sdk/model-auth-RI6NYvTO.js +0 -1
  778. package/dist/plugin-sdk/model-auth-exDkzEDR.js +0 -1
  779. package/dist/plugin-sdk/model-auth-igOM3blS.cjs +0 -1
  780. package/dist/plugin-sdk/model-auth-sjKLUCCz.cjs +0 -1
  781. package/dist/plugin-sdk/model-selection-C9HlFaXF.js +0 -1
  782. package/dist/plugin-sdk/model-selection-DpGE9eNM.cjs +0 -1
  783. package/dist/plugin-sdk/msteams.cjs +0 -1
  784. package/dist/plugin-sdk/msteams.js +0 -1
  785. package/dist/plugin-sdk/nextcloud-talk.cjs +0 -1
  786. package/dist/plugin-sdk/nextcloud-talk.js +0 -1
  787. package/dist/plugin-sdk/nostr.cjs +0 -1
  788. package/dist/plugin-sdk/nostr.js +0 -1
  789. package/dist/plugin-sdk/outbound-BO0tyeUH.js +0 -1
  790. package/dist/plugin-sdk/outbound-BYU5HTrX.js +0 -1
  791. package/dist/plugin-sdk/outbound-CBVlxGRf.cjs +0 -1
  792. package/dist/plugin-sdk/outbound-CTyu_gZh.js +0 -1
  793. package/dist/plugin-sdk/outbound-CwWXHNwp.cjs +0 -1
  794. package/dist/plugin-sdk/outbound-CySyQcmE.js +0 -1
  795. package/dist/plugin-sdk/outbound-DDPxEpHH.cjs +0 -1
  796. package/dist/plugin-sdk/outbound-DZhl7sHt.cjs +0 -1
  797. package/dist/plugin-sdk/outbound-DmeUAXdA.js +0 -1
  798. package/dist/plugin-sdk/outbound-DvFQ_6wQ.cjs +0 -1
  799. package/dist/plugin-sdk/outbound-Dy87UlCV.cjs +0 -1
  800. package/dist/plugin-sdk/outbound-attachment-5H1iYkTb.js +0 -1
  801. package/dist/plugin-sdk/outbound-attachment-BAHrn3r7.cjs +0 -1
  802. package/dist/plugin-sdk/outbound-attachment-BBJPbiLF.cjs +0 -1
  803. package/dist/plugin-sdk/outbound-attachment-BIGvZREF.cjs +0 -1
  804. package/dist/plugin-sdk/outbound-attachment-B_OTB3A8.js +0 -1
  805. package/dist/plugin-sdk/outbound-attachment-C94-r948.js +0 -1
  806. package/dist/plugin-sdk/outbound-attachment-CJatgPbm.js +0 -1
  807. package/dist/plugin-sdk/outbound-attachment-CLUVyl5e.js +0 -1
  808. package/dist/plugin-sdk/outbound-attachment-CTR1-VEH.js +0 -1
  809. package/dist/plugin-sdk/outbound-attachment-CmQ0SNgK.cjs +0 -1
  810. package/dist/plugin-sdk/outbound-attachment-Dbja7LQF.cjs +0 -1
  811. package/dist/plugin-sdk/outbound-attachment-DwzJ2l3T.cjs +0 -1
  812. package/dist/plugin-sdk/outbound-xMr8Xsxe.js +0 -1
  813. package/dist/plugin-sdk/paths-BPlgbwrb.cjs +0 -1
  814. package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +0 -1
  815. package/dist/plugin-sdk/paths-BpQOWYiT.js +0 -1
  816. package/dist/plugin-sdk/paths-BvlJvmRS.cjs +0 -1
  817. package/dist/plugin-sdk/paths-CIcxeNL-.cjs +0 -1
  818. package/dist/plugin-sdk/paths-CXgWvWAM.js +0 -1
  819. package/dist/plugin-sdk/paths-Chp3zwtq.cjs +0 -1
  820. package/dist/plugin-sdk/paths-CnHSNSeR.js +0 -1
  821. package/dist/plugin-sdk/paths-Cqca1YmF.cjs +0 -1
  822. package/dist/plugin-sdk/paths-CtrEseGU.js +0 -1
  823. package/dist/plugin-sdk/paths-D55o_j8-.js +0 -1
  824. package/dist/plugin-sdk/paths-D90l3h_o.cjs +0 -1
  825. package/dist/plugin-sdk/paths-DaRoqzBQ.js +0 -1
  826. package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +0 -1
  827. package/dist/plugin-sdk/paths-DhSjTRMz.js +0 -1
  828. package/dist/plugin-sdk/paths-Do0djuaj.js +0 -1
  829. package/dist/plugin-sdk/paths-J4JUiRsa.js +0 -1
  830. package/dist/plugin-sdk/paths-cBAF6Bj0.js +0 -1
  831. package/dist/plugin-sdk/paths-piJASC5k.js +0 -1
  832. package/dist/plugin-sdk/paths-rO4ehkyU.js +0 -1
  833. package/dist/plugin-sdk/pi-model-discovery-5wc5qlmB.cjs +0 -1
  834. package/dist/plugin-sdk/pi-model-discovery-BQiHbl8F.js +0 -1
  835. package/dist/plugin-sdk/pi-model-discovery-BZZVGcJl.js +0 -1
  836. package/dist/plugin-sdk/pi-model-discovery-Ba70onAm.js +0 -1
  837. package/dist/plugin-sdk/pi-model-discovery-BfuqD_Rv.cjs +0 -1
  838. package/dist/plugin-sdk/pi-model-discovery-BsdlRK-w.js +0 -1
  839. package/dist/plugin-sdk/pi-model-discovery-CAYSx-Lw.cjs +0 -1
  840. package/dist/plugin-sdk/pi-model-discovery-CyBFRafV.cjs +0 -1
  841. package/dist/plugin-sdk/pi-model-discovery-D1WW5m-Q.js +0 -1
  842. package/dist/plugin-sdk/pi-model-discovery-DRYpUnOa.cjs +0 -1
  843. package/dist/plugin-sdk/pi-model-discovery-DUbDLlc7.cjs +0 -1
  844. package/dist/plugin-sdk/pi-model-discovery-DcUDwgMg.cjs +0 -1
  845. package/dist/plugin-sdk/pi-model-discovery-DrZsxLaJ.js +0 -1
  846. package/dist/plugin-sdk/pi-model-discovery-gaVoL7I2.js +0 -1
  847. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BWmteuHS.js +0 -1
  848. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BmznXclG.cjs +0 -1
  849. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BzTifHML.cjs +0 -1
  850. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CEPsGtJk.cjs +0 -1
  851. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CYleOK1-.cjs +0 -1
  852. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Ctbk1Pq8.js +0 -1
  853. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D-hwiLUl.js +0 -1
  854. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DDuUTLh8.js +0 -1
  855. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DLfogXKU.cjs +0 -1
  856. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Dd-VFim_.js +0 -1
  857. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Dvmcwf-j.cjs +0 -1
  858. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-i-IGFbqI.js +0 -1
  859. package/dist/plugin-sdk/polls-BuaJuIpV.cjs +0 -1
  860. package/dist/plugin-sdk/polls-CBAGZuJ6.js +0 -1
  861. package/dist/plugin-sdk/polls-CSKMbBIS.js +0 -1
  862. package/dist/plugin-sdk/polls-D0wY0FvT.cjs +0 -1
  863. package/dist/plugin-sdk/polls-PGxiE05J.js +0 -1
  864. package/dist/plugin-sdk/polls-yWqSCEP0.cjs +0 -1
  865. package/dist/plugin-sdk/proxy-env-B765haXA.js +0 -1
  866. package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +0 -1
  867. package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +0 -1
  868. package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +0 -1
  869. package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +0 -1
  870. package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +0 -1
  871. package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +0 -1
  872. package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +0 -1
  873. package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +0 -1
  874. package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +0 -1
  875. package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +0 -1
  876. package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +0 -1
  877. package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +0 -1
  878. package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +0 -1
  879. package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +0 -1
  880. package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +0 -1
  881. package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +0 -1
  882. package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +0 -1
  883. package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +0 -1
  884. package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +0 -1
  885. package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +0 -1
  886. package/dist/plugin-sdk/proxy-fetch-Del551nu.js +0 -1
  887. package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +0 -1
  888. package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +0 -1
  889. package/dist/plugin-sdk/pw-ai-B9PkuA_R.cjs +0 -1
  890. package/dist/plugin-sdk/pw-ai-BMJV0Hqt.cjs +0 -1
  891. package/dist/plugin-sdk/pw-ai-BRasSDsB.js +0 -1
  892. package/dist/plugin-sdk/pw-ai-BY57aH_o.js +0 -1
  893. package/dist/plugin-sdk/pw-ai-BbpImC35.cjs +0 -1
  894. package/dist/plugin-sdk/pw-ai-D7d16RB-.cjs +0 -1
  895. package/dist/plugin-sdk/pw-ai-DF7TX5Lc.cjs +0 -1
  896. package/dist/plugin-sdk/pw-ai-DHN1pktj.js +0 -1
  897. package/dist/plugin-sdk/pw-ai-QzImh8G0.cjs +0 -1
  898. package/dist/plugin-sdk/pw-ai-V1CVJi48.js +0 -1
  899. package/dist/plugin-sdk/pw-ai-mvXkpTxf.js +0 -1
  900. package/dist/plugin-sdk/pw-ai-tdgA-KlG.js +0 -1
  901. package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +0 -1
  902. package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +0 -1
  903. package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +0 -1
  904. package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +0 -1
  905. package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +0 -1
  906. package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +0 -1
  907. package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +0 -1
  908. package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +0 -1
  909. package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +0 -1
  910. package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +0 -1
  911. package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +0 -1
  912. package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +0 -1
  913. package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +0 -1
  914. package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +0 -1
  915. package/dist/plugin-sdk/query-expansion-CAboqtWr.js +0 -1
  916. package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +0 -1
  917. package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +0 -1
  918. package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +0 -1
  919. package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +0 -1
  920. package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +0 -1
  921. package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +0 -1
  922. package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +0 -1
  923. package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +0 -1
  924. package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +0 -1
  925. package/dist/plugin-sdk/qwen-portal-auth.cjs +0 -1
  926. package/dist/plugin-sdk/qwen-portal-auth.js +0 -1
  927. package/dist/plugin-sdk/render-6fCdtAr6.cjs +0 -1
  928. package/dist/plugin-sdk/render-CBsnn-2A.js +0 -1
  929. package/dist/plugin-sdk/render-CzHaQB0d.cjs +0 -1
  930. package/dist/plugin-sdk/render-DGmfCIRG.js +0 -1
  931. package/dist/plugin-sdk/render-DhTJXP1U.js +0 -1
  932. package/dist/plugin-sdk/render-Djx15dPh.js +0 -1
  933. package/dist/plugin-sdk/render-DxBO2Blp.cjs +0 -1
  934. package/dist/plugin-sdk/render-g5VlmgpF.cjs +0 -1
  935. package/dist/plugin-sdk/reply-73PF8kN_.js +0 -1
  936. package/dist/plugin-sdk/reply-JD6VIW5N.cjs +0 -1
  937. package/dist/plugin-sdk/resolve-outbound-target-BNv_T3Bk.js +0 -1
  938. package/dist/plugin-sdk/resolve-outbound-target-CDM7_xfU.cjs +0 -1
  939. package/dist/plugin-sdk/resolve-outbound-target-CvKfootv.js +0 -1
  940. package/dist/plugin-sdk/resolve-outbound-target-Fq8une1d.cjs +0 -1
  941. package/dist/plugin-sdk/send-0TzQg7Eo.js +0 -1
  942. package/dist/plugin-sdk/send-AyV5r86J.js +0 -1
  943. package/dist/plugin-sdk/send-B-GqqrNy.js +0 -1
  944. package/dist/plugin-sdk/send-B03So6fs.cjs +0 -1
  945. package/dist/plugin-sdk/send-B0oV0qgS.js +0 -1
  946. package/dist/plugin-sdk/send-B31Tjl_I.cjs +0 -1
  947. package/dist/plugin-sdk/send-B4LTVhTd.cjs +0 -1
  948. package/dist/plugin-sdk/send-BGXPpAqy.cjs +0 -1
  949. package/dist/plugin-sdk/send-BJ957TYU.js +0 -1
  950. package/dist/plugin-sdk/send-BJmf3HVn.cjs +0 -1
  951. package/dist/plugin-sdk/send-BW3UECzm.js +0 -1
  952. package/dist/plugin-sdk/send-BWEZ_8nL.cjs +0 -1
  953. package/dist/plugin-sdk/send-BXrh73qh.cjs +0 -1
  954. package/dist/plugin-sdk/send-BbudHjUi.cjs +0 -1
  955. package/dist/plugin-sdk/send-BkjnUdWv.cjs +0 -1
  956. package/dist/plugin-sdk/send-BxIt-s7G.cjs +0 -1
  957. package/dist/plugin-sdk/send-ByKNfU2S.js +0 -1
  958. package/dist/plugin-sdk/send-Bz2Loz_Q.cjs +0 -1
  959. package/dist/plugin-sdk/send-CAreQYLU.cjs +0 -1
  960. package/dist/plugin-sdk/send-CGMqeSaY.cjs +0 -1
  961. package/dist/plugin-sdk/send-CJmor6eC.js +0 -1
  962. package/dist/plugin-sdk/send-CL2pl8br.cjs +0 -1
  963. package/dist/plugin-sdk/send-CMeGMLko.js +0 -1
  964. package/dist/plugin-sdk/send-CceHBxiK.js +0 -1
  965. package/dist/plugin-sdk/send-Cdx_KGYb.js +0 -1
  966. package/dist/plugin-sdk/send-Cer1bA2g.cjs +0 -1
  967. package/dist/plugin-sdk/send-CimU95QQ.cjs +0 -1
  968. package/dist/plugin-sdk/send-CoEAieJt.cjs +0 -1
  969. package/dist/plugin-sdk/send-Cob_bnT32.js +0 -1
  970. package/dist/plugin-sdk/send-Cyp5hOpt.js +0 -1
  971. package/dist/plugin-sdk/send-CzEFjTpi.js +0 -1
  972. package/dist/plugin-sdk/send-D2LjU2py.js +0 -1
  973. package/dist/plugin-sdk/send-D9Gbseeh.cjs +0 -1
  974. package/dist/plugin-sdk/send-DIjQ2vB4.js +0 -1
  975. package/dist/plugin-sdk/send-DJ419AIX.cjs +0 -1
  976. package/dist/plugin-sdk/send-DLtYxO1e.cjs +0 -1
  977. package/dist/plugin-sdk/send-DMk529J8.js +0 -1
  978. package/dist/plugin-sdk/send-DMxohaL_.cjs +0 -1
  979. package/dist/plugin-sdk/send-DQlKz6Bj.js +0 -1
  980. package/dist/plugin-sdk/send-DTUW-YBy.js +0 -1
  981. package/dist/plugin-sdk/send-Dc43nN-I.js +0 -1
  982. package/dist/plugin-sdk/send-DcRj8DUU.cjs +0 -1
  983. package/dist/plugin-sdk/send-DmxxJFZd.cjs +0 -1
  984. package/dist/plugin-sdk/send-DnwN1vBU.cjs +0 -1
  985. package/dist/plugin-sdk/send-DogBiU4n.cjs +0 -1
  986. package/dist/plugin-sdk/send-MEvv6c7w.js +0 -1
  987. package/dist/plugin-sdk/send-TRwokuAm.cjs +0 -1
  988. package/dist/plugin-sdk/send-VUSa_wkg.js +0 -1
  989. package/dist/plugin-sdk/send-X1b7Cj9U.cjs +0 -1
  990. package/dist/plugin-sdk/send-XX5rP5bI.js +0 -1
  991. package/dist/plugin-sdk/send-_ZGBA2sz.js +0 -1
  992. package/dist/plugin-sdk/send-d5RoIkxA.js +0 -1
  993. package/dist/plugin-sdk/send-dCbQnCLx.js +0 -1
  994. package/dist/plugin-sdk/send-gSV6SR6F.cjs +0 -1
  995. package/dist/plugin-sdk/send-pC6ctwfQ.cjs +0 -1
  996. package/dist/plugin-sdk/send-pq2hNOwv.cjs +0 -1
  997. package/dist/plugin-sdk/send-q6C-1cdJ.js +0 -1
  998. package/dist/plugin-sdk/send-vnIJSD5l.js +0 -1
  999. package/dist/plugin-sdk/send-vtYROJNd.js +0 -1
  1000. package/dist/plugin-sdk/send-wk_Y38Eq.js +0 -1
  1001. package/dist/plugin-sdk/session-BSLJWzVk.cjs +0 -1
  1002. package/dist/plugin-sdk/session-BfWC0c92.js +0 -1
  1003. package/dist/plugin-sdk/session-BjsaXe-G.js +0 -1
  1004. package/dist/plugin-sdk/session-C20nSfk5.cjs +0 -1
  1005. package/dist/plugin-sdk/session-CR8fsPgs.js +0 -1
  1006. package/dist/plugin-sdk/session-CwinrWG4.cjs +0 -1
  1007. package/dist/plugin-sdk/session-DAtRSLdw.cjs +0 -1
  1008. package/dist/plugin-sdk/session-Djo63EGV.cjs +0 -1
  1009. package/dist/plugin-sdk/session-EJZkCm6l.js +0 -1
  1010. package/dist/plugin-sdk/session-UIRgeq02.cjs +0 -1
  1011. package/dist/plugin-sdk/session-aOZKTEyZ.js +0 -1
  1012. package/dist/plugin-sdk/session-nUw21fi0.js +0 -1
  1013. package/dist/plugin-sdk/sessions-B06a3AKE.js +0 -1
  1014. package/dist/plugin-sdk/sessions-BmhjMXlm.cjs +0 -1
  1015. package/dist/plugin-sdk/signal.cjs +0 -1
  1016. package/dist/plugin-sdk/signal.js +0 -1
  1017. package/dist/plugin-sdk/skill-commands-2LXH0aZR.cjs +0 -1
  1018. package/dist/plugin-sdk/skill-commands-B4AbCkKe.cjs +0 -1
  1019. package/dist/plugin-sdk/skill-commands-B_xNpuH_.cjs +0 -1
  1020. package/dist/plugin-sdk/skill-commands-BbAfKA1R.js +0 -1
  1021. package/dist/plugin-sdk/skill-commands-BcKIgHAP.cjs +0 -1
  1022. package/dist/plugin-sdk/skill-commands-C9g2UiKr.cjs +0 -1
  1023. package/dist/plugin-sdk/skill-commands-CPZ9Jvbj.js +0 -1
  1024. package/dist/plugin-sdk/skill-commands-CgDUjb3J.js +0 -1
  1025. package/dist/plugin-sdk/skill-commands-D83BLBEG.js +0 -1
  1026. package/dist/plugin-sdk/skill-commands-DI1TMUxQ.js +0 -1
  1027. package/dist/plugin-sdk/skill-commands-DldIiKD1.js +0 -1
  1028. package/dist/plugin-sdk/skill-commands-LCW6nWWC.cjs +0 -1
  1029. package/dist/plugin-sdk/slack.cjs +0 -1
  1030. package/dist/plugin-sdk/slack.js +0 -1
  1031. package/dist/plugin-sdk/synology-chat.cjs +0 -1
  1032. package/dist/plugin-sdk/synology-chat.js +0 -1
  1033. package/dist/plugin-sdk/tables-BXY1ms0X.js +0 -1
  1034. package/dist/plugin-sdk/tables-BlhpY72l.cjs +0 -1
  1035. package/dist/plugin-sdk/tables-BltHUi44.cjs +0 -1
  1036. package/dist/plugin-sdk/tables-Bp6t_Jkb.js +0 -1
  1037. package/dist/plugin-sdk/tables-BszYJkqX.cjs +0 -1
  1038. package/dist/plugin-sdk/tables-CAZJt5bp.js +0 -1
  1039. package/dist/plugin-sdk/tables-CcuiVH-P.cjs +0 -1
  1040. package/dist/plugin-sdk/tables-CuSMtUxt.cjs +0 -1
  1041. package/dist/plugin-sdk/tables-DOLEnfD6.js +0 -1
  1042. package/dist/plugin-sdk/tables-DiiF7bbj.cjs +0 -1
  1043. package/dist/plugin-sdk/tables-aSJP6Sef.js +0 -1
  1044. package/dist/plugin-sdk/tables-ib4GZqYB.js +0 -1
  1045. package/dist/plugin-sdk/target-errors--anbEDnm.js +0 -1
  1046. package/dist/plugin-sdk/target-errors-4q9SUsM_.js +0 -1
  1047. package/dist/plugin-sdk/target-errors-BFOTHcjO.js +0 -1
  1048. package/dist/plugin-sdk/target-errors-Bw4tI2Lc.cjs +0 -1
  1049. package/dist/plugin-sdk/target-errors-CAgwWHUv.js +0 -1
  1050. package/dist/plugin-sdk/target-errors-CUDKM0z-.js +0 -1
  1051. package/dist/plugin-sdk/target-errors-DIOJ6Eun.cjs +0 -1
  1052. package/dist/plugin-sdk/target-errors-DnZq9h4B.cjs +0 -1
  1053. package/dist/plugin-sdk/target-errors-DwAKh8KU.cjs +0 -1
  1054. package/dist/plugin-sdk/target-errors-QGzfLvuU.cjs +0 -1
  1055. package/dist/plugin-sdk/targets-BSc11Uk8.cjs +0 -1
  1056. package/dist/plugin-sdk/targets-BSkiizml.js +0 -1
  1057. package/dist/plugin-sdk/targets-CBI0xqve.cjs +0 -1
  1058. package/dist/plugin-sdk/targets-CL5fYQi7.js +0 -1
  1059. package/dist/plugin-sdk/targets-CUZWrFrm.cjs +0 -1
  1060. package/dist/plugin-sdk/targets-CVEYTFPQ.js +0 -1
  1061. package/dist/plugin-sdk/targets-Co2R6K14.cjs +0 -1
  1062. package/dist/plugin-sdk/targets-CrkJkzil.js +0 -1
  1063. package/dist/plugin-sdk/targets-D-m7SV9x.cjs +0 -1
  1064. package/dist/plugin-sdk/targets-D8HTxbo4.js +0 -1
  1065. package/dist/plugin-sdk/targets-DcGNB9nk.cjs +0 -1
  1066. package/dist/plugin-sdk/targets-Dn9gDiEw.js +0 -1
  1067. package/dist/plugin-sdk/targets-X28mff4s.cjs +0 -1
  1068. package/dist/plugin-sdk/targets-uycXZ8vQ.js +0 -1
  1069. package/dist/plugin-sdk/telegram.cjs +0 -1
  1070. package/dist/plugin-sdk/telegram.js +0 -1
  1071. package/dist/plugin-sdk/test-utils.cjs +0 -1
  1072. package/dist/plugin-sdk/test-utils.js +0 -1
  1073. package/dist/plugin-sdk/tlon.cjs +0 -1
  1074. package/dist/plugin-sdk/tlon.js +0 -1
  1075. package/dist/plugin-sdk/tokens-AAdZjj0M.js +0 -1
  1076. package/dist/plugin-sdk/tokens-B20KNIDD.js +0 -1
  1077. package/dist/plugin-sdk/tokens-B8ys7Q2e.js +0 -1
  1078. package/dist/plugin-sdk/tokens-BPc1fcZ3.js +0 -1
  1079. package/dist/plugin-sdk/tokens-BqABmXSe.js +0 -1
  1080. package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +0 -1
  1081. package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +0 -1
  1082. package/dist/plugin-sdk/tokens-CytSl1X8.cjs +0 -1
  1083. package/dist/plugin-sdk/tokens-DgPZk2Uu.js +0 -1
  1084. package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +0 -1
  1085. package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +0 -1
  1086. package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +0 -1
  1087. package/dist/plugin-sdk/twitch.cjs +0 -1
  1088. package/dist/plugin-sdk/twitch.js +0 -1
  1089. package/dist/plugin-sdk/utils-BJtJR72k.js +0 -1
  1090. package/dist/plugin-sdk/utils-PPIvU9qw.cjs +0 -1
  1091. package/dist/plugin-sdk/voice-call.cjs +0 -1
  1092. package/dist/plugin-sdk/voice-call.js +0 -1
  1093. package/dist/plugin-sdk/web--8MBOleK.js +0 -1
  1094. package/dist/plugin-sdk/web-B7d3p3kx.cjs +0 -1
  1095. package/dist/plugin-sdk/web-BEuW8Yqw.js +0 -1
  1096. package/dist/plugin-sdk/web-Bg2LIMdb.cjs +0 -1
  1097. package/dist/plugin-sdk/web-DFDao2So.cjs +0 -1
  1098. package/dist/plugin-sdk/web-DjbeDvyv.js +0 -1
  1099. package/dist/plugin-sdk/web-JciOW43P.js +0 -1
  1100. package/dist/plugin-sdk/web-vSFigMHz.cjs +0 -1
  1101. package/dist/plugin-sdk/weixin.cjs +0 -1
  1102. package/dist/plugin-sdk/weixin.js +0 -1
  1103. package/dist/plugin-sdk/whatsapp-actions-B67oFfeq.js +0 -1
  1104. package/dist/plugin-sdk/whatsapp-actions-BB0eACkf.cjs +0 -1
  1105. package/dist/plugin-sdk/whatsapp-actions-BIgrB0j5.cjs +0 -1
  1106. package/dist/plugin-sdk/whatsapp-actions-CFve14ju.cjs +0 -1
  1107. package/dist/plugin-sdk/whatsapp-actions-CdRkPw-b.js +0 -1
  1108. package/dist/plugin-sdk/whatsapp-actions-CtIBOGpJ.cjs +0 -1
  1109. package/dist/plugin-sdk/whatsapp-actions-CwAU7FuE.js +0 -1
  1110. package/dist/plugin-sdk/whatsapp-actions-DQ1t5QTc.cjs +0 -1
  1111. package/dist/plugin-sdk/whatsapp-actions-DkrN4BcG.js +0 -1
  1112. package/dist/plugin-sdk/whatsapp-actions-DnkKzVrU.js +0 -1
  1113. package/dist/plugin-sdk/whatsapp-actions-YcBsDZ88.js +0 -1
  1114. package/dist/plugin-sdk/whatsapp-actions-wk1U2IVU.cjs +0 -1
  1115. package/dist/plugin-sdk/whatsapp.cjs +0 -1
  1116. package/dist/plugin-sdk/whatsapp.js +0 -1
  1117. package/dist/plugin-sdk/zalo.cjs +0 -1
  1118. package/dist/plugin-sdk/zalo.js +0 -1
  1119. package/dist/plugin-sdk/zalouser.cjs +0 -1
  1120. package/dist/plugin-sdk/zalouser.js +0 -1
  1121. package/dist/plugins-CYLrFT4h.js +0 -1
  1122. package/dist/plugins-DNlgeTTc.js +0 -1
  1123. package/dist/plugins-cli-CnXgwZzI.js +0 -1
  1124. package/dist/plugins-cli-PVHBZeb8.js +0 -1
  1125. package/dist/polls-BIVz6a4F.js +0 -1
  1126. package/dist/polls-Bh5wc9-6.js +0 -1
  1127. package/dist/polls-C_XSFz3d.js +0 -1
  1128. package/dist/polls-DKJOFSzJ.js +0 -1
  1129. package/dist/ports-BAaLOkJp.js +2 -0
  1130. package/dist/ports-DDWP1p0X.js +2 -0
  1131. package/dist/probe-auth-C5nWfMS9.js +0 -1
  1132. package/dist/probe-auth-x4OHS_wa.js +0 -1
  1133. package/dist/profile-utils-CWmra1aY.js +0 -1
  1134. package/dist/{program-ppBAyCNf.js → program-D53eGuSf.js} +1 -2
  1135. package/dist/program-context-CH9p6anW.js +0 -1
  1136. package/dist/{program-context-BXNpM3b4.js → program-context-n-ovYq69.js} +1 -2
  1137. package/dist/progress-LNttnI-y.js +0 -1
  1138. package/dist/progress-d1m2sqR1.js +0 -1
  1139. package/dist/{prompt-select-styled-947JghKF.js → prompt-select-styled-DZnefcrY.js} +1 -2
  1140. package/dist/{prompt-select-styled-1abs2MvK.js → prompt-select-styled-DolCW-_j.js} +1 -2
  1141. package/dist/prompt-style-BThRSQJR.js +0 -1
  1142. package/dist/prompt-style-CXKekIBY.js +0 -1
  1143. package/dist/prompts-CMzglboN.js +0 -1
  1144. package/dist/prompts-wv-lfVrJ.js +0 -1
  1145. package/dist/provider-auth-helpers-BLm2bdp5.js +0 -1
  1146. package/dist/provider-auth-helpers-DPz0vN_c.js +0 -1
  1147. package/dist/provider-env-vars-D8p6Ohpj.js +0 -1
  1148. package/dist/provider-env-vars-Dt0Q29Su.js +0 -1
  1149. package/dist/proxy-env-BNhTHkd_.js +0 -1
  1150. package/dist/proxy-env-DcmW_urA.js +0 -1
  1151. package/dist/proxy-env-DrC3TIGh.js +0 -1
  1152. package/dist/proxy-env-FJr5nlvs.js +0 -1
  1153. package/dist/proxy-fetch-BADsUK4d.js +0 -1
  1154. package/dist/proxy-fetch-BZ9O8Dvj.js +0 -1
  1155. package/dist/proxy-fetch-DnjU1fEB.js +0 -1
  1156. package/dist/proxy-fetch-gWETR3cl.js +0 -1
  1157. package/dist/push-apns-BBv62ncV.js +0 -1
  1158. package/dist/push-apns-DIV5dBPP.js +0 -1
  1159. package/dist/pw-ai-C0gM3d-6.js +0 -1
  1160. package/dist/pw-ai-CQd14BQa.js +0 -1
  1161. package/dist/pw-ai-DiQuOf4W.js +0 -1
  1162. package/dist/pw-ai-jlhIn-aA.js +0 -1
  1163. package/dist/qmd-manager-C_e04BNg.js +0 -1
  1164. package/dist/qmd-manager-DSQ_mDCl.js +0 -1
  1165. package/dist/qmd-manager-DcBYbt_V.js +0 -1
  1166. package/dist/qmd-manager-NLI0R6kp.js +0 -1
  1167. package/dist/qr-cli-D06YZurm.js +0 -1
  1168. package/dist/qr-cli-ZtDsXyLO.js +0 -1
  1169. package/dist/query-expansion-0OxEb1Io.js +0 -1
  1170. package/dist/query-expansion-BUUx_oWg.js +0 -1
  1171. package/dist/query-expansion-r_iXkNzt.js +0 -1
  1172. package/dist/reaction-level-DVPHL14p.js +0 -1
  1173. package/dist/reaction-message-id-BEEe7X3D.js +0 -1
  1174. package/dist/read-only-account-inspect-B0cm8yrv.js +0 -1
  1175. package/dist/redact-3_CiXMY6.js +0 -1
  1176. package/dist/redact-CnRxK70G.js +0 -1
  1177. package/dist/register.agent-DHOTtB8X.js +0 -1
  1178. package/dist/register.agent-DQdoMfmw.js +0 -1
  1179. package/dist/register.backup-BDO3V0so.js +0 -1
  1180. package/dist/register.backup-Vh8RK6fp.js +0 -1
  1181. package/dist/register.configure-C2N82brC.js +0 -1
  1182. package/dist/register.configure-C6zjzaEo.js +0 -1
  1183. package/dist/{register.maintenance-Br9uoFKo.js → register.maintenance-CStaPxaB.js} +1 -2
  1184. package/dist/{register.maintenance-Cm3wq9bt.js → register.maintenance-aKBTd9Zp.js} +1 -2
  1185. package/dist/register.message-DHDcOA8X.js +0 -1
  1186. package/dist/register.message-Dh72QHKA.js +0 -1
  1187. package/dist/{register.onboard-AjrSlfCb.js → register.onboard-Bu9gpFlA.js} +1 -2
  1188. package/dist/{register.onboard-zCG1PNWc.js → register.onboard-DB9FWAKT.js} +1 -2
  1189. package/dist/{register.setup-DN0y_pth.js → register.setup-CeG2ETmr.js} +1 -2
  1190. package/dist/{register.setup-Blyl_QsK.js → register.setup-D76IRs4s.js} +1 -2
  1191. package/dist/register.status-health-sessions-Dtpd1P2M.js +0 -1
  1192. package/dist/register.status-health-sessions-mPGKFjIz.js +0 -1
  1193. package/dist/{register.subclis-5Pb-uEHk.js → register.subclis-Drp2dGBe.js} +1 -2
  1194. package/dist/registry-BptzrW8D.js +0 -1
  1195. package/dist/registry-hFAtCSWG.js +0 -1
  1196. package/dist/render-BXEUPIHe.js +0 -1
  1197. package/dist/render-CBsnn-2A.js +0 -1
  1198. package/dist/render-D8OWO2hT.js +0 -1
  1199. package/dist/render-DrrPmnMI.js +0 -1
  1200. package/dist/reply-DwfVhea1.js +0 -1
  1201. package/dist/restart-BeJuoXCx.js +0 -1
  1202. package/dist/rpc-BBdeIvn0.js +0 -1
  1203. package/dist/rpc-f85A4Ib_.js +0 -1
  1204. package/dist/{run-main-DGwq5DIc.js → run-main-CjwjyWA6.js} +1 -2
  1205. package/dist/runtime-CK7gqwEF.js +0 -1
  1206. package/dist/runtime-DYttInEE.js +0 -1
  1207. package/dist/runtime-guard-DFYBaYZS.js +0 -1
  1208. package/dist/runtime-guard-DX2Ie4ri.js +0 -1
  1209. package/dist/runtime-status-CqFBmdRd.js +0 -1
  1210. package/dist/runtime-status-DszMjvJK.js +0 -1
  1211. package/dist/runtime-web-tools-BYhCkBV8.js +0 -1
  1212. package/dist/runtime-web-tools-C4F6aaRh.js +0 -1
  1213. package/dist/sandbox-cli-BR0Lsru-.js +0 -1
  1214. package/dist/sandbox-cli-Jo5nYeug.js +0 -1
  1215. package/dist/scan-paths-C13EseXp.js +0 -1
  1216. package/dist/scan-paths-CWtvWW40.js +0 -1
  1217. package/dist/search-manager-CV2YsAym.js +0 -1
  1218. package/dist/secret-file-C7JffiM_.js +0 -1
  1219. package/dist/secret-file-D60EFEOe.js +0 -1
  1220. package/dist/secret-file-DuWm26jS.js +0 -1
  1221. package/dist/secrets-cli-B8kwyZFo.js +0 -1
  1222. package/dist/secrets-cli-BstBe0UA.js +0 -1
  1223. package/dist/secure-random-D7JQgiK-.js +0 -1
  1224. package/dist/security-cli-C6t8OxaE.js +0 -1
  1225. package/dist/security-cli-Cuc8IQKB.js +0 -1
  1226. package/dist/send--9G8eXo4.js +0 -1
  1227. package/dist/send-4h1tQwX3.js +0 -1
  1228. package/dist/send-7qgAI0ap.js +0 -1
  1229. package/dist/send-AQ3CJLpI.js +0 -1
  1230. package/dist/send-BjrfjBn9.js +0 -1
  1231. package/dist/send-BwblpWbK.js +0 -1
  1232. package/dist/send-C4Lm4nmt.js +0 -1
  1233. package/dist/send-C7rOdjPO.js +0 -1
  1234. package/dist/send-COpehmAB.js +0 -1
  1235. package/dist/send-CWVTcDAW.js +0 -1
  1236. package/dist/send-CciNyaWL.js +0 -1
  1237. package/dist/send-ChILboDj.js +0 -1
  1238. package/dist/send-CyarIb2w.js +0 -1
  1239. package/dist/send-DiHS8tKf.js +0 -1
  1240. package/dist/send-Dj7NBAWg.js +0 -1
  1241. package/dist/send-DmHpf5Fz.js +0 -1
  1242. package/dist/send-NbU9-scF2.js +0 -1
  1243. package/dist/send-hlES-kRl2.js +0 -1
  1244. package/dist/send-swTiQAeK2.js +0 -1
  1245. package/dist/send-vNcod64S.js +0 -1
  1246. package/dist/server-C-lb98FO.js +0 -1
  1247. package/dist/server-DwSkpKgC.js +0 -1
  1248. package/dist/server-node-events-CL0pWoMa.js +0 -1
  1249. package/dist/server-node-events-ChPQ984b.js +0 -1
  1250. package/dist/service-BtB9epJk.js +0 -1
  1251. package/dist/service-DZ9EbS15.js +0 -1
  1252. package/dist/session-BSRnpwSq.js +0 -1
  1253. package/dist/session-CfHCnrXh.js +0 -1
  1254. package/dist/session-JqCxWBM8.js +0 -1
  1255. package/dist/session-bk3gFwO4.js +0 -1
  1256. package/dist/session-cost-usage-BgqKixv0.js +0 -1
  1257. package/dist/session-cost-usage-CHtVgnE8.js +0 -1
  1258. package/dist/session-key-C7F_iqYg.js +0 -1
  1259. package/dist/session-key-D3P0tf5P.js +0 -1
  1260. package/dist/session-utils-Bpdyx2A2.js +0 -1
  1261. package/dist/sessions-Ca6ozRCQ.js +0 -1
  1262. package/dist/shared-9x5sqYRb.js +0 -1
  1263. package/dist/shared-BKWhOp64.js +0 -1
  1264. package/dist/shared-Ca5BFwta.js +0 -1
  1265. package/dist/skill-commands-CPZcaV8-.js +0 -1
  1266. package/dist/skill-commands-CtprBvm0.js +0 -1
  1267. package/dist/skill-commands-DCqPy_Aa.js +0 -1
  1268. package/dist/skill-commands-DlHVddAk.js +0 -1
  1269. package/dist/skill-scanner-CUUF3Fvo.js +0 -1
  1270. package/dist/skill-scanner-CkxXNioD.js +0 -1
  1271. package/dist/skills-Bz_S4lPh.js +0 -1
  1272. package/dist/skills-CzUpDbU-.js +0 -1
  1273. package/dist/skills-cli-DK0QDfln.js +0 -1
  1274. package/dist/skills-cli-DLmqhAB-.js +0 -1
  1275. package/dist/skills-install-D3YB2C-S.js +0 -1
  1276. package/dist/skills-install-cEcqzaX8.js +0 -1
  1277. package/dist/skills-status-D4Y1BJYL.js +0 -1
  1278. package/dist/skills-status-DpSboPY1.js +0 -1
  1279. package/dist/sqlite-CILF3z9U.js +0 -1
  1280. package/dist/stagger-DmFYysrJ.js +0 -1
  1281. package/dist/stagger-DxzgG2jd.js +0 -1
  1282. package/dist/status-BAat65xo.js +0 -1
  1283. package/dist/status-BSHWBrg0.js +0 -1
  1284. package/dist/status-o3Gfr-6l.js +0 -1
  1285. package/dist/status-w4NsjW2R.js +0 -1
  1286. package/dist/status.update-B_8Gumuc.js +0 -1
  1287. package/dist/status.update-_2r0S6Re.js +0 -1
  1288. package/dist/string-normalization-BrUPaXaM.js +0 -1
  1289. package/dist/string-normalization-DJT5zuUF.js +0 -1
  1290. package/dist/subsystem-BLbY429l.js +0 -1
  1291. package/dist/subsystem-Bc2XrjUz.js +0 -1
  1292. package/dist/subsystem-C5XF2Fy5.js +0 -1
  1293. package/dist/system-cli-Ddixb0SQ.js +0 -1
  1294. package/dist/system-cli-NAH97F2s.js +0 -1
  1295. package/dist/system-run-command-DsWBVvSK.js +0 -1
  1296. package/dist/system-run-command-E8ymBXHh.js +0 -1
  1297. package/dist/systemd-D7odsu4K.js +0 -1
  1298. package/dist/systemd-DbevZh65.js +0 -1
  1299. package/dist/systemd-hints-CEQj6yrs.js +0 -1
  1300. package/dist/systemd-hints-lXpMy-kY.js +0 -1
  1301. package/dist/systemd-linger-C2MJD6KG.js +0 -1
  1302. package/dist/systemd-linger-cWKbFNpu.js +0 -1
  1303. package/dist/table-CR7TFMew.js +0 -1
  1304. package/dist/table-CY440fI1.js +0 -1
  1305. package/dist/tables-D6J-isob.js +0 -1
  1306. package/dist/tables-DENKrP-W.js +0 -1
  1307. package/dist/tables-_t5V36m9.js +0 -1
  1308. package/dist/tables-fl9iXahm.js +0 -1
  1309. package/dist/target-errors-CoEHv_2r.js +0 -1
  1310. package/dist/target-errors-D6wejRd6.js +0 -1
  1311. package/dist/target-errors-Dnkqss9y.js +0 -1
  1312. package/dist/target-errors-sMFXKeAY.js +0 -1
  1313. package/dist/targets-4EaxWBal.js +0 -1
  1314. package/dist/targets-BJTo7bqu.js +0 -1
  1315. package/dist/targets-BYVMrXDf.js +0 -1
  1316. package/dist/targets-Bq6rS6-Z.js +0 -1
  1317. package/dist/targets-CL5fYQi7.js +0 -1
  1318. package/dist/targets-fozeWOOg.js +0 -1
  1319. package/dist/targets-m_41k_Mv.js +0 -1
  1320. package/dist/telegram/audit.js +0 -1
  1321. package/dist/text-format-CvrvBBre.js +0 -1
  1322. package/dist/text-format-DEWK6oCT.js +0 -1
  1323. package/dist/token-DnTmiyJu.js +0 -1
  1324. package/dist/tokens-B2fq-rL6.js +0 -1
  1325. package/dist/tokens-CL2fSjGl.js +0 -1
  1326. package/dist/tokens-DRM8vzJx.js +0 -1
  1327. package/dist/tokens-XGbQGn67.js +0 -1
  1328. package/dist/tool-display-DJDtttQg.js +0 -1
  1329. package/dist/tool-display-DjuSUUbH.js +0 -1
  1330. package/dist/tui-5Znjl2Rb.js +0 -1
  1331. package/dist/tui-Tlww_AcE.js +0 -1
  1332. package/dist/tui-cli-C9QPsw50.js +0 -1
  1333. package/dist/tui-cli-FxvETbln.js +0 -1
  1334. package/dist/types.secrets-C-5U96pc.js +0 -1
  1335. package/dist/types.secrets-D4tbc3Wq.js +0 -1
  1336. package/dist/update-CMneH_48.js +0 -1
  1337. package/dist/update-D9EwPybG.js +0 -1
  1338. package/dist/{update-cli-BQGwMpHe.js → update-cli-CL_cUjuq.js} +1 -2
  1339. package/dist/{update-cli-C7pZTXS8.js → update-cli-DU5tRH3c.js} +1 -2
  1340. package/dist/update-runner-DABdlxfN.js +0 -1
  1341. package/dist/update-runner-DG-1TYYc.js +0 -1
  1342. package/dist/usage-format-BWD8FJFL.js +0 -1
  1343. package/dist/usage-format-yPwal8Iz.js +0 -1
  1344. package/dist/utils-CGdo13HV.js +0 -1
  1345. package/dist/utils-D3t-vPka.js +0 -1
  1346. package/dist/utils-R-mFyVJi.js +0 -1
  1347. package/dist/utils-UGOV_184.js +0 -1
  1348. package/dist/version-q3SkUw2K.js +0 -1
  1349. package/dist/warning-filter.js +0 -1
  1350. package/dist/web-Dfi2WjvN.js +0 -1
  1351. package/dist/web-u71NbOpT.js +0 -1
  1352. package/dist/webhooks-cli-DMTzhfTv.js +0 -1
  1353. package/dist/webhooks-cli-ICOwBPSv.js +0 -1
  1354. package/dist/whatsapp-actions-Bdf-3-ne.js +0 -1
  1355. package/dist/whatsapp-actions-D2qMOK3a.js +0 -1
  1356. package/dist/whatsapp-actions-f5CsM5EM.js +0 -1
  1357. package/dist/whatsapp-actions-t88tyNUT.js +0 -1
  1358. package/dist/widearea-dns-BDx7vkV2.js +0 -1
  1359. package/dist/widearea-dns-BFjqKXu_.js +0 -1
  1360. package/dist/windows-spawn-7oINn5ao.js +0 -1
  1361. package/dist/windows-spawn-AB7ItGAE.js +0 -1
  1362. package/dist/with-timeout-WveKxvFV.js +0 -1
  1363. package/dist/with-timeout-c1CzdShT.js +0 -1
  1364. package/dist/workspace-B0ZQeHXg.js +0 -1
  1365. package/dist/workspace-C45T1Cxg.js +0 -1
  1366. package/dist/workspace-dirs-A8Vib9_B.js +0 -1
  1367. package/dist/workspace-dirs-BhF1Dzxt.js +0 -1
  1368. package/dist/workspace-xNEpaJvu.js +0 -1
  1369. package/dist/wsl-DHxB2Ew_.js +0 -1
  1370. package/dist/wsl-Ok7GaSJ6.js +0 -1
  1371. package/extensions/qqbrowser-skill-control/index.js +1 -1
  1372. package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
  1373. package/node_modules/@aws-sdk/token-providers/package.json +1 -1
  1374. package/node_modules/@google/genai/dist/index.cjs +341 -180
  1375. package/node_modules/@google/genai/dist/index.mjs +341 -180
  1376. package/node_modules/@google/genai/dist/node/index.cjs +341 -180
  1377. package/node_modules/@google/genai/dist/node/index.mjs +341 -180
  1378. package/node_modules/@google/genai/dist/tokenizer/node.cjs +100 -0
  1379. package/node_modules/@google/genai/dist/tokenizer/node.mjs +100 -0
  1380. package/node_modules/@google/genai/dist/vertex_internal/index.cjs +103 -2
  1381. package/node_modules/@google/genai/dist/vertex_internal/index.js +103 -2
  1382. package/node_modules/@google/genai/dist/web/index.mjs +342 -180
  1383. package/node_modules/@google/genai/package.json +1 -1
  1384. package/node_modules/@slack/web-api/dist/instrument.js +13 -1
  1385. package/node_modules/@slack/web-api/package.json +2 -2
  1386. package/node_modules/@smithy/config-resolver/package.json +2 -2
  1387. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  1388. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +154 -61
  1389. package/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js +15 -0
  1390. package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +41 -0
  1391. package/node_modules/@smithy/util-endpoints/dist-es/index.js +2 -0
  1392. package/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js +8 -0
  1393. package/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +3 -0
  1394. package/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js +3 -0
  1395. package/node_modules/@smithy/util-endpoints/dist-es/lib/split.js +13 -0
  1396. package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
  1397. package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +4 -1
  1398. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +20 -5
  1399. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +3 -6
  1400. package/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +1 -5
  1401. package/node_modules/@smithy/util-endpoints/package.json +1 -1
  1402. package/node_modules/discord-api-types/package.json +1 -1
  1403. package/node_modules/discord-api-types/payloads/index.mjs +3 -0
  1404. package/node_modules/discord-api-types/payloads/v10/index.mjs +3 -0
  1405. package/node_modules/discord-api-types/payloads/v10/message.js +55 -2
  1406. package/node_modules/discord-api-types/payloads/v10/user.js +2 -0
  1407. package/node_modules/discord-api-types/payloads/v9/index.mjs +3 -0
  1408. package/node_modules/discord-api-types/payloads/v9/message.js +55 -2
  1409. package/node_modules/discord-api-types/payloads/v9/user.js +2 -0
  1410. package/node_modules/discord-api-types/rest/v10/channel.js +6 -0
  1411. package/node_modules/discord-api-types/rest/v9/channel.js +6 -0
  1412. package/node_modules/discord-api-types/v10.mjs +3 -0
  1413. package/node_modules/discord-api-types/v9.mjs +3 -0
  1414. package/node_modules/undici/package.json +1 -1
  1415. package/package.json +2 -1
  1416. package/dist/ports-Dylc6TrH.js +0 -3
  1417. package/dist/ports-hkqQXSus.js +0 -3
  1418. package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/commander/LICENSE +0 -22
  1419. package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/commander/Readme.md +0 -1157
  1420. package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/zod/LICENSE +0 -21
  1421. package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/zod/README.md +0 -208
  1422. package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/README.md +0 -3
  1423. package/node_modules/@anthropic-ai/sdk/src/core/README.md +0 -3
  1424. package/node_modules/@anthropic-ai/sdk/src/internal/README.md +0 -3
  1425. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
  1426. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/README.md +0 -10
  1427. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
  1428. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/README.md +0 -10
  1429. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/LICENSE +0 -201
  1430. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/README.md +0 -4
  1431. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
  1432. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/README.md +0 -10
  1433. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
  1434. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/README.md +0 -10
  1435. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/LICENSE +0 -201
  1436. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/README.md +0 -4
  1437. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +0 -201
  1438. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +0 -62
  1439. package/node_modules/@buape/carbon/node_modules/@discordjs/voice/LICENSE +0 -191
  1440. package/node_modules/@buape/carbon/node_modules/@discordjs/voice/README.md +0 -112
  1441. package/node_modules/@buape/carbon/node_modules/discord-api-types/LICENSE +0 -21
  1442. package/node_modules/@buape/carbon/node_modules/discord-api-types/README.md +0 -102
  1443. package/node_modules/@buape/carbon/node_modules/ws/LICENSE +0 -20
  1444. package/node_modules/@buape/carbon/node_modules/ws/README.md +0 -548
  1445. package/node_modules/@line/bot-sdk/node_modules/@types/node/LICENSE +0 -21
  1446. package/node_modules/@line/bot-sdk/node_modules/@types/node/README.md +0 -15
  1447. package/node_modules/@line/bot-sdk/node_modules/undici-types/LICENSE +0 -21
  1448. package/node_modules/@line/bot-sdk/node_modules/undici-types/README.md +0 -6
  1449. package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1450. package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
  1451. package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
  1452. package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
  1453. package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1454. package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/resources/README.md +0 -49
  1455. package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
  1456. package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
  1457. package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1458. package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
  1459. package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
  1460. package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
  1461. package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1462. package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
  1463. package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
  1464. package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
  1465. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1466. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources/README.md +0 -49
  1467. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
  1468. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
  1469. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
  1470. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
  1471. package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/LICENSE +0 -201
  1472. package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/README.md +0 -73
  1473. package/node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1474. package/node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources/README.md +0 -49
  1475. package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/LICENSE +0 -201
  1476. package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/README.md +0 -73
  1477. package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/LICENSE +0 -201
  1478. package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/README.md +0 -73
  1479. package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/LICENSE +0 -201
  1480. package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/README.md +0 -73
  1481. package/node_modules/@sinclair/typebox/license +0 -25
  1482. package/node_modules/@sinclair/typebox/readme.md +0 -1865
  1483. package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/license +0 -9
  1484. package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/readme.md +0 -1077
  1485. package/node_modules/@whiskeysockets/baileys/node_modules/p-timeout/license +0 -9
  1486. package/node_modules/@whiskeysockets/baileys/node_modules/p-timeout/readme.md +0 -192
  1487. package/node_modules/ansi-regex/license +0 -9
  1488. package/node_modules/ansi-regex/readme.md +0 -66
  1489. package/node_modules/ansi-styles/license +0 -9
  1490. package/node_modules/ansi-styles/readme.md +0 -152
  1491. package/node_modules/atomic-sleep/readme.md +0 -58
  1492. package/node_modules/axios/lib/adapters/README.md +0 -36
  1493. package/node_modules/axios/lib/core/README.md +0 -8
  1494. package/node_modules/axios/lib/env/README.md +0 -3
  1495. package/node_modules/axios/lib/helpers/README.md +0 -7
  1496. package/node_modules/bytes/History.md +0 -97
  1497. package/node_modules/bytes/Readme.md +0 -152
  1498. package/node_modules/chalk/license +0 -9
  1499. package/node_modules/chalk/readme.md +0 -297
  1500. package/node_modules/cli-highlight/node_modules/chalk/license +0 -9
  1501. package/node_modules/cli-highlight/node_modules/chalk/readme.md +0 -341
  1502. package/node_modules/cliui/node_modules/ansi-regex/license +0 -9
  1503. package/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
  1504. package/node_modules/cliui/node_modules/strip-ansi/license +0 -9
  1505. package/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
  1506. package/node_modules/combined-stream/License +0 -19
  1507. package/node_modules/combined-stream/Readme.md +0 -138
  1508. package/node_modules/commander/Readme.md +0 -1176
  1509. package/node_modules/cookie-signature/History.md +0 -70
  1510. package/node_modules/cookie-signature/Readme.md +0 -23
  1511. package/node_modules/css-what/readme.md +0 -69
  1512. package/node_modules/delayed-stream/License +0 -19
  1513. package/node_modules/delayed-stream/Readme.md +0 -141
  1514. package/node_modules/depd/History.md +0 -103
  1515. package/node_modules/depd/Readme.md +0 -280
  1516. package/node_modules/domelementtype/readme.md +0 -1
  1517. package/node_modules/domhandler/readme.md +0 -92
  1518. package/node_modules/domutils/readme.md +0 -31
  1519. package/node_modules/entities/readme.md +0 -122
  1520. package/node_modules/escalade/license +0 -9
  1521. package/node_modules/escalade/readme.md +0 -211
  1522. package/node_modules/escape-html/Readme.md +0 -43
  1523. package/node_modules/express/Readme.md +0 -276
  1524. package/node_modules/express-rate-limit/license.md +0 -20
  1525. package/node_modules/express-rate-limit/readme.md +0 -136
  1526. package/node_modules/extract-zip/readme.md +0 -57
  1527. package/node_modules/fast-string-truncated-width/license +0 -21
  1528. package/node_modules/fast-string-truncated-width/readme.md +0 -60
  1529. package/node_modules/fast-string-width/license +0 -21
  1530. package/node_modules/fast-string-width/readme.md +0 -45
  1531. package/node_modules/file-type/license +0 -9
  1532. package/node_modules/file-type/readme.md +0 -667
  1533. package/node_modules/form-data/License +0 -19
  1534. package/node_modules/form-data/node_modules/mime-db/HISTORY.md +0 -507
  1535. package/node_modules/form-data/node_modules/mime-db/LICENSE +0 -23
  1536. package/node_modules/form-data/node_modules/mime-db/README.md +0 -100
  1537. package/node_modules/form-data/node_modules/mime-types/HISTORY.md +0 -397
  1538. package/node_modules/form-data/node_modules/mime-types/LICENSE +0 -23
  1539. package/node_modules/form-data/node_modules/mime-types/README.md +0 -113
  1540. package/node_modules/gaxios/node_modules/agent-base/LICENSE +0 -22
  1541. package/node_modules/gaxios/node_modules/agent-base/README.md +0 -69
  1542. package/node_modules/gaxios/node_modules/https-proxy-agent/LICENSE +0 -22
  1543. package/node_modules/gaxios/node_modules/https-proxy-agent/README.md +0 -70
  1544. package/node_modules/get-east-asian-width/license +0 -9
  1545. package/node_modules/get-east-asian-width/readme.md +0 -65
  1546. package/node_modules/get-stream/license +0 -9
  1547. package/node_modules/get-stream/readme.md +0 -124
  1548. package/node_modules/get-uri/node_modules/data-uri-to-buffer/LICENSE +0 -22
  1549. package/node_modules/get-uri/node_modules/data-uri-to-buffer/README.md +0 -61
  1550. package/node_modules/grammy/node_modules/node-fetch/LICENSE.md +0 -22
  1551. package/node_modules/grammy/node_modules/node-fetch/README.md +0 -634
  1552. package/node_modules/has-flag/license +0 -9
  1553. package/node_modules/has-flag/readme.md +0 -89
  1554. package/node_modules/htmlparser2/node_modules/entities/LICENSE +0 -11
  1555. package/node_modules/htmlparser2/node_modules/entities/readme.md +0 -143
  1556. package/node_modules/http-proxy-agent/node_modules/agent-base/LICENSE +0 -22
  1557. package/node_modules/http-proxy-agent/node_modules/agent-base/README.md +0 -69
  1558. package/node_modules/is-fullwidth-code-point/license +0 -9
  1559. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  1560. package/node_modules/is-stream/license +0 -9
  1561. package/node_modules/is-stream/readme.md +0 -60
  1562. package/node_modules/jws/readme.md +0 -255
  1563. package/node_modules/libsignal/native/ed25519/sha512/LICENSE.txt +0 -20
  1564. package/node_modules/libsignal/node_modules/@types/node/LICENSE +0 -21
  1565. package/node_modules/libsignal/node_modules/@types/node/README.md +0 -16
  1566. package/node_modules/libsignal/node_modules/long/LICENSE +0 -202
  1567. package/node_modules/libsignal/node_modules/long/README.md +0 -246
  1568. package/node_modules/libsignal/node_modules/protobufjs/LICENSE +0 -39
  1569. package/node_modules/libsignal/node_modules/protobufjs/README.md +0 -879
  1570. package/node_modules/libsignal/node_modules/protobufjs/cli/LICENSE +0 -33
  1571. package/node_modules/libsignal/node_modules/protobufjs/cli/README.md +0 -11
  1572. package/node_modules/libsignal/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +0 -21
  1573. package/node_modules/libsignal/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +0 -23
  1574. package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/os-tmpdir/license +0 -21
  1575. package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/os-tmpdir/readme.md +0 -32
  1576. package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/tmp/LICENSE +0 -21
  1577. package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/tmp/README.md +0 -314
  1578. package/node_modules/libsignal/node_modules/protobufjs/dist/README.md +0 -31
  1579. package/node_modules/libsignal/node_modules/protobufjs/dist/light/README.md +0 -31
  1580. package/node_modules/libsignal/node_modules/protobufjs/dist/minimal/README.md +0 -31
  1581. package/node_modules/libsignal/node_modules/protobufjs/ext/debug/README.md +0 -4
  1582. package/node_modules/libsignal/node_modules/protobufjs/ext/descriptor/README.md +0 -72
  1583. package/node_modules/libsignal/node_modules/protobufjs/google/LICENSE +0 -27
  1584. package/node_modules/libsignal/node_modules/protobufjs/google/README.md +0 -1
  1585. package/node_modules/lie/license.md +0 -7
  1586. package/node_modules/linkedom/node_modules/html-escaper/LICENSE.txt +0 -19
  1587. package/node_modules/linkedom/node_modules/html-escaper/README.md +0 -110
  1588. package/node_modules/merge-descriptors/license +0 -11
  1589. package/node_modules/merge-descriptors/readme.md +0 -55
  1590. package/node_modules/ms/license.md +0 -21
  1591. package/node_modules/ms/readme.md +0 -59
  1592. package/node_modules/node-edge-tts/node_modules/agent-base/LICENSE +0 -22
  1593. package/node_modules/node-edge-tts/node_modules/agent-base/README.md +0 -69
  1594. package/node_modules/node-edge-tts/node_modules/ansi-regex/license +0 -9
  1595. package/node_modules/node-edge-tts/node_modules/ansi-regex/readme.md +0 -78
  1596. package/node_modules/node-edge-tts/node_modules/cliui/LICENSE.txt +0 -14
  1597. package/node_modules/node-edge-tts/node_modules/cliui/README.md +0 -141
  1598. package/node_modules/node-edge-tts/node_modules/https-proxy-agent/LICENSE +0 -22
  1599. package/node_modules/node-edge-tts/node_modules/https-proxy-agent/README.md +0 -70
  1600. package/node_modules/node-edge-tts/node_modules/strip-ansi/license +0 -9
  1601. package/node_modules/node-edge-tts/node_modules/strip-ansi/readme.md +0 -46
  1602. package/node_modules/node-edge-tts/node_modules/yargs/LICENSE +0 -21
  1603. package/node_modules/node-edge-tts/node_modules/yargs/README.md +0 -204
  1604. package/node_modules/node-edge-tts/node_modules/yargs-parser/LICENSE.txt +0 -14
  1605. package/node_modules/node-edge-tts/node_modules/yargs-parser/README.md +0 -518
  1606. package/node_modules/object-assign/license +0 -21
  1607. package/node_modules/object-assign/readme.md +0 -61
  1608. package/node_modules/object-inspect/readme.markdown +0 -84
  1609. package/node_modules/openai/src/_vendor/partial-json-parser/README.md +0 -3
  1610. package/node_modules/openai/src/_vendor/zod-to-json-schema/LICENSE +0 -15
  1611. package/node_modules/openai/src/_vendor/zod-to-json-schema/README.md +0 -3
  1612. package/node_modules/openai/src/core/README.md +0 -3
  1613. package/node_modules/openai/src/internal/README.md +0 -3
  1614. package/node_modules/openai/src/internal/qs/LICENSE.md +0 -13
  1615. package/node_modules/openai/src/internal/qs/README.md +0 -3
  1616. package/node_modules/p-finally/license +0 -21
  1617. package/node_modules/p-finally/readme.md +0 -47
  1618. package/node_modules/p-queue/license +0 -9
  1619. package/node_modules/p-queue/node_modules/eventemitter3/LICENSE +0 -21
  1620. package/node_modules/p-queue/node_modules/eventemitter3/README.md +0 -94
  1621. package/node_modules/p-queue/readme.md +0 -400
  1622. package/node_modules/p-retry/license +0 -9
  1623. package/node_modules/p-retry/readme.md +0 -148
  1624. package/node_modules/p-timeout/license +0 -9
  1625. package/node_modules/p-timeout/readme.md +0 -87
  1626. package/node_modules/pac-proxy-agent/node_modules/agent-base/LICENSE +0 -22
  1627. package/node_modules/pac-proxy-agent/node_modules/agent-base/README.md +0 -69
  1628. package/node_modules/pac-proxy-agent/node_modules/https-proxy-agent/LICENSE +0 -22
  1629. package/node_modules/pac-proxy-agent/node_modules/https-proxy-agent/README.md +0 -70
  1630. package/node_modules/pako/lib/zlib/README +0 -59
  1631. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/LICENSE +0 -19
  1632. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/README.md +0 -38
  1633. package/node_modules/path-key/license +0 -9
  1634. package/node_modules/path-key/readme.md +0 -61
  1635. package/node_modules/path-to-regexp/Readme.md +0 -224
  1636. package/node_modules/pino-std-serializers/Readme.md +0 -182
  1637. package/node_modules/process-nextick-args/license.md +0 -19
  1638. package/node_modules/process-nextick-args/readme.md +0 -18
  1639. package/node_modules/proper-lockfile/node_modules/retry/License +0 -21
  1640. package/node_modules/proper-lockfile/node_modules/retry/README.md +0 -227
  1641. package/node_modules/protobufjs/ext/debug/README.md +0 -4
  1642. package/node_modules/protobufjs/ext/descriptor/README.md +0 -72
  1643. package/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE +0 -19
  1644. package/node_modules/proxy-addr/node_modules/ipaddr.js/README.md +0 -233
  1645. package/node_modules/proxy-agent/node_modules/agent-base/LICENSE +0 -22
  1646. package/node_modules/proxy-agent/node_modules/agent-base/README.md +0 -69
  1647. package/node_modules/proxy-agent/node_modules/https-proxy-agent/LICENSE +0 -22
  1648. package/node_modules/proxy-agent/node_modules/https-proxy-agent/README.md +0 -70
  1649. package/node_modules/proxy-agent/node_modules/lru-cache/LICENSE +0 -15
  1650. package/node_modules/proxy-agent/node_modules/lru-cache/README.md +0 -1117
  1651. package/node_modules/proxy-agent/node_modules/proxy-from-env/LICENSE +0 -20
  1652. package/node_modules/proxy-agent/node_modules/proxy-from-env/README.md +0 -131
  1653. package/node_modules/qified/node_modules/hookified/LICENSE +0 -19
  1654. package/node_modules/qified/node_modules/hookified/README.md +0 -1682
  1655. package/node_modules/quick-format-unescaped/readme.md +0 -66
  1656. package/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +0 -21
  1657. package/node_modules/readable-stream/node_modules/safe-buffer/README.md +0 -584
  1658. package/node_modules/require-from-string/license +0 -21
  1659. package/node_modules/require-from-string/readme.md +0 -56
  1660. package/node_modules/retry/License +0 -21
  1661. package/node_modules/router/node_modules/is-promise/LICENSE +0 -19
  1662. package/node_modules/router/node_modules/is-promise/readme.md +0 -33
  1663. package/node_modules/safe-stable-stringify/readme.md +0 -179
  1664. package/node_modules/safer-buffer/Readme.md +0 -156
  1665. package/node_modules/shebang-command/license +0 -9
  1666. package/node_modules/shebang-command/readme.md +0 -34
  1667. package/node_modules/shebang-regex/license +0 -9
  1668. package/node_modules/shebang-regex/readme.md +0 -33
  1669. package/node_modules/sisteransi/license +0 -21
  1670. package/node_modules/sisteransi/readme.md +0 -113
  1671. package/node_modules/socks-proxy-agent/node_modules/agent-base/LICENSE +0 -22
  1672. package/node_modules/socks-proxy-agent/node_modules/agent-base/README.md +0 -69
  1673. package/node_modules/string-width/license +0 -9
  1674. package/node_modules/string-width/node_modules/ansi-regex/license +0 -9
  1675. package/node_modules/string-width/node_modules/ansi-regex/readme.md +0 -78
  1676. package/node_modules/string-width/node_modules/strip-ansi/license +0 -9
  1677. package/node_modules/string-width/node_modules/strip-ansi/readme.md +0 -46
  1678. package/node_modules/string-width/readme.md +0 -50
  1679. package/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +0 -21
  1680. package/node_modules/string_decoder/node_modules/safe-buffer/README.md +0 -584
  1681. package/node_modules/strip-ansi/license +0 -9
  1682. package/node_modules/strip-ansi/readme.md +0 -37
  1683. package/node_modules/supports-color/license +0 -9
  1684. package/node_modules/supports-color/readme.md +0 -76
  1685. package/node_modules/uint8array-extras/license +0 -9
  1686. package/node_modules/uint8array-extras/readme.md +0 -318
  1687. package/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  1688. package/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
  1689. package/node_modules/util-deprecate/History.md +0 -16
  1690. package/node_modules/wrap-ansi/license +0 -9
  1691. package/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
  1692. package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
  1693. package/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
  1694. package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
  1695. package/node_modules/wrap-ansi/readme.md +0 -91
  1696. package/node_modules/yoctocolors/license +0 -9
  1697. package/node_modules/yoctocolors/readme.md +0 -138
  1698. package/node_modules/zod-to-json-schema/changelog.md +0 -83
@@ -3,4 +3,3 @@ const e=require(`./paths-Bcdg3ma0.cjs`),t=require(`./logger-6O6OsYBL.cjs`);let n
3
3
  `);function gr(e){let t=e.trim().split(/\r?\n/).map(e=>e.trim()).filter(Boolean).at(-1);if(!t)throw Error(`Pinned write helper returned no identity`);let[n,r]=t.split(`|`),i=Number.parseInt(n??``,10),a=Number.parseInt(r??``,10);if(!Number.isFinite(i)||!Number.isFinite(a))throw Error(`Pinned write helper returned invalid identity: ${t}`);return{dev:i,ino:a}}async function _r(e){let t=(0,r.spawn)(`python3`,[`-c`,hr,e.rootPath,e.relativeParentPath,e.basename,e.mkdir?`1`:`0`,(e.mode||384).toString(8)],{stdio:[`pipe`,`pipe`,`pipe`]}),n=``,i=``;t.stdout.setEncoding?.(`utf8`),t.stderr.setEncoding?.(`utf8`),t.stdout.on(`data`,e=>{n+=e}),t.stderr.on(`data`,e=>{i+=e});let a=(0,l.once)(t,`close`);try{if(!t.stdin){let t=await vr(e);return await a.catch(()=>{}),t}if(e.input.kind===`buffer`){let n=e.input;await new Promise((e,r)=>{if(t.stdin.once(`error`,r),typeof n.data==`string`){t.stdin.end(n.data,n.encoding??`utf8`,()=>e());return}t.stdin.end(n.data,()=>e())})}else await(0,u.pipeline)(e.input.stream,t.stdin);let[r,o]=await a;if(r!==0)throw Error(i.trim()||`Pinned write helper failed with code ${r??`null`} (${o??`?`})`);return gr(n)}catch(e){throw t.kill(`SIGKILL`),await a.catch(()=>{}),e}}async function vr(e){let t=e.relativeParentPath?n.default.join(e.rootPath,...e.relativeParentPath.split(`/`)):e.rootPath;e.mkdir&&await o.default.mkdir(t,{recursive:!0});let r=n.default.join(t,e.basename),i=n.default.join(t,`.${e.basename}.fallback.tmp`);if(e.input.kind===`buffer`)typeof e.input.data==`string`?await o.default.writeFile(i,e.input.data,{encoding:e.input.encoding??`utf8`,mode:e.mode}):await o.default.writeFile(i,e.input.data,{mode:e.mode});else{let t=await o.default.open(i,`w`,e.mode);try{await(0,u.pipeline)(e.input.stream,t.createWriteStream())}finally{await t.close().catch(()=>{})}}await o.default.rename(i,r);let a=await o.default.stat(r);return{dev:a.dev,ino:a.ino}}var H=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`SafeOpenError`}};const U=process.platform!==`win32`&&`O_NOFOLLOW`in i.constants,yr=i.constants.O_RDONLY|(U?i.constants.O_NOFOLLOW:0),br=i.constants.O_WRONLY|(U?i.constants.O_NOFOLLOW:0),xr=i.constants.O_WRONLY|i.constants.O_CREAT|i.constants.O_EXCL|(U?i.constants.O_NOFOLLOW:0),Sr=i.constants.O_RDWR|i.constants.O_APPEND|(U?i.constants.O_NOFOLLOW:0),Cr=i.constants.O_RDWR|i.constants.O_APPEND|i.constants.O_CREAT|i.constants.O_EXCL|(U?i.constants.O_NOFOLLOW:0),wr=e=>e.endsWith(n.default.sep)?e:e+n.default.sep;async function Tr(t){let n=process.env.HOME||process.env.USERPROFILE||a.default.homedir();try{n=await o.default.realpath(n)}catch{}return e.l(t,{home:n})}async function W(e,t){try{if((await o.default.lstat(e)).isDirectory())throw new H(`not-file`,`not a file`)}catch(e){if(e instanceof H)throw e}let n;try{n=await o.default.open(e,yr)}catch(e){throw x(e)?new H(`not-found`,`file not found`):Ge(e)?new H(`symlink`,`symlink open blocked`,{cause:e}):We(e,`EISDIR`)?new H(`not-file`,`not a file`):e}try{let[r,i]=await Promise.all([n.stat(),o.default.lstat(e)]);if(i.isSymbolicLink())throw new H(`symlink`,`symlink not allowed`);if(!r.isFile())throw new H(`not-file`,`not a file`);if(t?.rejectHardlinks&&r.nlink>1)throw new H(`invalid-path`,`hardlinked path not allowed`);if(!D(r,i))throw new H(`path-mismatch`,`path changed during read`);let a=await o.default.realpath(e),s=await o.default.stat(a);if(t?.rejectHardlinks&&s.nlink>1)throw new H(`invalid-path`,`hardlinked path not allowed`);if(!D(r,s))throw new H(`path-mismatch`,`path mismatch`);return{handle:n,realPath:a,stat:r}}catch(e){throw await n.close().catch(()=>{}),e instanceof H?e:x(e)?new H(`not-found`,`file not found`):e}}async function Er(e){let t;try{t=await o.default.realpath(e.rootDir)}catch(e){throw x(e)?new H(`not-found`,`root dir not found`):e}let r=wr(t),i=await Tr(e.relativePath),a=n.default.resolve(r,i);if(!S(r,a))throw new H(`outside-workspace`,`file is outside workspace root`);return{rootReal:t,rootWithSep:r,resolved:a}}async function Dr(e){let{rootWithSep:t,resolved:n}=await Er(e),r;try{r=await W(n)}catch(e){throw e instanceof H?e.code===`not-found`?e:new H(`invalid-path`,`path is not a regular file under root`,{cause:e}):e}if(e.rejectHardlinks!==!1&&r.stat.nlink>1)throw await r.handle.close().catch(()=>{}),new H(`invalid-path`,`hardlinked path not allowed`);if(!S(t,r.realPath))throw await r.handle.close().catch(()=>{}),new H(`outside-workspace`,`file is outside workspace root`);return r}async function Or(e){let t=await Dr({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:e.rejectHardlinks});try{return await Mr({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function kr(e){let t=n.default.resolve(e.rootDir),r=n.default.isAbsolute(e.filePath)?n.default.resolve(e.filePath):n.default.resolve(t,e.filePath);return await Or({rootDir:t,relativePath:n.default.relative(t,r),rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})}function Ar(e){let t=n.default.resolve(e.rootDir);return async n=>(await kr({rootDir:t,filePath:n,rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})).buffer}async function jr(e){let t=await W(e.filePath);try{return await Mr({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function Mr(e){if(e.maxBytes!==void 0&&e.opened.stat.size>e.maxBytes)throw new H(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${e.opened.stat.size})`);return{buffer:await e.opened.handle.readFile(),realPath:e.opened.realPath,stat:e.opened.stat}}function G(e){t.i(`security: fs-safe write boundary warning (${e})`)}function Nr(e){let t=n.default.dirname(e),r=n.default.basename(e);return n.default.join(t,`.${r}.${process.pid}.${(0,c.randomUUID)()}.tmp`)}async function Pr(e){let t=await o.default.open(e.tempPath,xr,e.mode);try{return typeof e.data==`string`?await t.writeFile(e.data,e.encoding??`utf8`):await t.writeFile(e.data),await t.stat()}finally{await t.close().catch(()=>{})}}async function K(e){let t=wr(await o.default.realpath(e.rootDir)),n=await W(e.targetPath,{rejectHardlinks:!0});try{if(!D(n.stat,e.expectedIdentity))throw new H(`path-mismatch`,`path changed during write`);if(!S(t,n.realPath))throw new H(`outside-workspace`,`file is outside workspace root`)}finally{await n.handle.close().catch(()=>{})}}async function Fr(e,t){try{return await o.default.realpath(t)}catch(e){if(!x(e))throw e}let n=process.platform===`linux`?[`/proc/self/fd/${e.fd}`,`/dev/fd/${e.fd}`]:process.platform===`win32`?[]:[`/dev/fd/${e.fd}`];for(let e of n)try{return await o.default.realpath(e)}catch{}throw new H(`path-mismatch`,`unable to resolve opened file path`)}async function q(e){let{rootReal:t,rootWithSep:r,resolved:i}=await Er(e);try{await mr({absolutePath:i,rootPath:t,boundaryLabel:`root`})}catch(e){throw new H(`invalid-path`,`path alias escape blocked`,{cause:e})}e.mkdir!==!1&&await o.default.mkdir(n.default.dirname(i),{recursive:!0});let a=i;try{let e=await o.default.realpath(i);if(!S(r,e))throw new H(`outside-workspace`,`file is outside workspace root`);a=e}catch(e){if(e instanceof H||!x(e))throw e}let s=e.mode??384,c,l=!1,u=e.append?Sr:br,d=e.append?Cr:xr;try{try{c=await o.default.open(a,u,s)}catch(e){if(!x(e))throw e;c=await o.default.open(a,d,s),l=!0}}catch(e){throw x(e)?new H(`not-found`,`file not found`):Ge(e)?new H(`invalid-path`,`symlink open blocked`,{cause:e}):e}let f=null;try{let t=await c.stat();if(!t.isFile())throw new H(`invalid-path`,`path is not a regular file under root`);if(t.nlink>1)throw new H(`invalid-path`,`hardlinked path not allowed`);try{let e=await o.default.lstat(a);if(e.isSymbolicLink()||!e.isFile())throw new H(`invalid-path`,`path is not a regular file under root`);if(!D(t,e))throw new H(`path-mismatch`,`path changed during write`)}catch(e){if(!x(e))throw e}let n=await Fr(c,a);f=n;let i=await o.default.stat(n);if(!D(t,i))throw new H(`path-mismatch`,`path mismatch`);if(i.nlink>1)throw new H(`invalid-path`,`hardlinked path not allowed`);if(!S(r,n))throw new H(`outside-workspace`,`file is outside workspace root`);return e.append!==!0&&e.truncateExisting!==!1&&!l&&await c.truncate(0),{handle:c,createdForWrite:l,openedRealPath:n,openedStat:t}}catch(e){let t=l&&e instanceof H,n=f??a;throw await c.close().catch(()=>{}),t&&await o.default.rm(n,{force:!0}).catch(()=>{}),e}}async function Ir(e){let t=await q({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1,append:!0});try{let n=``;if(e.prependNewlineIfNeeded===!0&&!t.createdForWrite&&t.openedStat.size>0&&(typeof e.data==`string`&&!e.data.startsWith(`
4
4
  `)||Buffer.isBuffer(e.data)&&e.data.length>0&&e.data[0]!==10)){let e=Buffer.alloc(1),{bytesRead:r}=await t.handle.read(e,0,1,t.openedStat.size-1);r===1&&e[0]!==10&&(n=`
5
5
  `)}if(typeof e.data==`string`){await t.handle.appendFile(`${n}${e.data}`,e.encoding??`utf8`);return}let r=n.length>0?Buffer.concat([Buffer.from(n,`utf8`),e.data]):e.data;await t.handle.appendFile(r)}finally{await t.handle.close().catch(()=>{})}}async function Lr(e){if(process.platform===`win32`){await Hr(e);return}let t=await Br({rootDir:e.rootDir,relativePath:e.relativePath}),n=await _r({rootPath:t.rootReal,relativeParentPath:t.relativeParentPath,basename:t.basename,mkdir:e.mkdir!==!1,mode:t.mode,input:{kind:`buffer`,data:e.data,encoding:e.encoding}}).catch(e=>{throw Vr(e)});try{await K({rootDir:e.rootDir,targetPath:t.targetPath,expectedIdentity:n})}catch(e){throw G(`post-write verification failed: ${String(e)}`),e}}async function Rr(e){let t=await W(e.sourcePath,{rejectHardlinks:e.rejectSourceHardlinks});if(e.maxBytes!==void 0&&t.stat.size>e.maxBytes)throw await t.handle.close().catch(()=>{}),new H(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${t.stat.size})`);try{if(process.platform===`win32`){await Ur(e,t);return}let n=await Br({rootDir:e.rootDir,relativePath:e.relativePath}),r=t.handle.createReadStream(),i=await _r({rootPath:n.rootReal,relativeParentPath:n.relativeParentPath,basename:n.basename,mkdir:e.mkdir!==!1,mode:n.mode,input:{kind:`stream`,stream:r}}).catch(e=>{throw Vr(e)});try{await K({rootDir:e.rootDir,targetPath:n.targetPath,expectedIdentity:i})}catch(e){throw G(`post-copy verification failed: ${String(e)}`),e}}finally{await t.handle.close().catch(()=>{})}}async function zr(e){await Rr({sourcePath:e.sourcePath,rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,rejectSourceHardlinks:!0})}async function Br(e){let{rootReal:t,rootWithSep:r,resolved:i}=await Er(e);try{await mr({absolutePath:i,rootPath:t,boundaryLabel:`root`})}catch(e){throw new H(`invalid-path`,`path alias escape blocked`,{cause:e})}let a=n.default.relative(t,i);if(a.startsWith(`..`)||n.default.isAbsolute(a))throw new H(`outside-workspace`,`file is outside workspace root`);let o=a?a.split(n.default.sep).join(n.default.posix.sep):``,s=n.default.posix.basename(o);if(!s||s===`.`||s===`/`)throw new H(`invalid-path`,`invalid target path`);let c=384;try{let t=await Dr({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:!0});try{if(c=t.stat.mode&511,!S(r,t.realPath))throw new H(`outside-workspace`,`file is outside workspace root`)}finally{await t.handle.close().catch(()=>{})}}catch(e){if(!(e instanceof H)||e.code!==`not-found`)throw e}return{rootReal:t,targetPath:i,relativeParentPath:n.default.posix.dirname(o)===`.`?``:n.default.posix.dirname(o),basename:s,mode:c||384}}function Vr(e){return e instanceof H?e:new H(`invalid-path`,`path is not a regular file under root`,{cause:e instanceof Error?e:void 0})}async function Hr(e){let t=await q({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1}),n=t.openedRealPath,r=t.openedStat.mode&511;await t.handle.close().catch(()=>{});let i=null;try{i=Nr(n);let t=await Pr({tempPath:i,data:e.data,encoding:e.encoding,mode:r||384});await o.default.rename(i,n),i=null;try{await K({rootDir:e.rootDir,targetPath:n,expectedIdentity:t})}catch(e){throw G(`post-write verification failed: ${String(e)}`),e}}finally{i&&await o.default.rm(i,{force:!0}).catch(()=>{})}}async function Ur(e,t){let n=null,r=!1,i=!1,a=null,s=null,c=!1;try{n=await q({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1});let l=n.openedRealPath,u=n.openedStat.mode&511;await n.handle.close().catch(()=>{}),i=!0,s=Nr(l),a=await o.default.open(s,xr,u||384);let d=t.handle.createReadStream(),f=a.createWriteStream();d.once(`close`,()=>{r=!0}),f.once(`close`,()=>{c=!0}),await import(`node:stream/promises`).then(({pipeline:e})=>e(d,f));let ee=await o.default.stat(s);c||=(await a.close().catch(()=>{}),!0),a=null,await o.default.rename(s,l),s=null;try{await K({rootDir:e.rootDir,targetPath:l,expectedIdentity:ee})}catch(e){throw G(`post-copy verification failed: ${String(e)}`),e}}catch(e){throw n?.createdForWrite&&await o.default.rm(n.openedRealPath,{force:!0}).catch(()=>{}),e}finally{s&&await o.default.rm(s,{force:!0}).catch(()=>{}),r||await t.handle.close().catch(()=>{}),a&&!c&&await a.close().catch(()=>{}),n&&!i&&await n.handle.close().catch(()=>{})}}const Wr=6*1024*1024,Gr=100*1024*1024;function Kr(e){if(e){if(e.startsWith(`image/`))return`image`;if(e.startsWith(`audio/`))return`audio`;if(e.startsWith(`video/`))return`video`;if(e===`application/pdf`||e.startsWith(`text/`)||e.startsWith(`application/`))return`document`}}function qr(e){switch(e){case`image`:return Wr;case`audio`:return 16777216;case`video`:return 16777216;case`document`:return Gr;default:return Gr}}const Jr={"image/heic":`.heic`,"image/heif":`.heif`,"image/jpeg":`.jpg`,"image/png":`.png`,"image/webp":`.webp`,"image/gif":`.gif`,"audio/ogg":`.ogg`,"audio/mpeg":`.mp3`,"audio/wav":`.wav`,"audio/flac":`.flac`,"audio/aac":`.aac`,"audio/opus":`.opus`,"audio/x-m4a":`.m4a`,"audio/mp4":`.m4a`,"video/mp4":`.mp4`,"video/quicktime":`.mov`,"application/pdf":`.pdf`,"application/json":`.json`,"application/zip":`.zip`,"application/gzip":`.gz`,"application/x-tar":`.tar`,"application/x-7z-compressed":`.7z`,"application/vnd.rar":`.rar`,"application/msword":`.doc`,"application/vnd.ms-excel":`.xls`,"application/vnd.ms-powerpoint":`.ppt`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`.docx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`.xlsx`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`.pptx`,"text/csv":`.csv`,"text/plain":`.txt`,"text/markdown":`.md`},Yr={...Object.fromEntries(Object.entries(Jr).map(([e,t])=>[t,e])),".jpeg":`image/jpeg`,".js":`text/javascript`},Xr=new Set([`.aac`,`.caf`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`]);function J(e){if(e)return e.split(`;`)[0]?.trim().toLowerCase()||void 0}async function Zr(e){if(e)try{return(await(0,d.fileTypeFromBuffer)(e))?.mime??void 0}catch{return}}function Y(e){if(e){try{if(/^https?:\/\//i.test(e)){let t=new URL(e);return n.default.extname(t.pathname).toLowerCase()||void 0}}catch{}return n.default.extname(e).toLowerCase()||void 0}}function Qr(e){let t=Y(e);return t?Xr.has(t):!1}function $r(e){return ti(e)}function ei(e){if(!e)return!0;let t=e.toLowerCase();return t===`application/octet-stream`||t===`application/zip`}async function ti(e){let t=Y(e.filePath),n=t?Yr[t]:void 0,r=J(e.headerMime),i=await Zr(e.buffer);if(i&&(!ei(i)||!n))return i;if(n)return n;if(r&&!ei(r))return r;if(i)return i;if(r)return r}function ni(e){let t=J(e);if(t)return Jr[t]}function ri(e){return e.contentType?.toLowerCase()===`image/gif`?!0:Y(e.fileName)===`.gif`}function ii(e){if(e)switch(e.toLowerCase()){case`jpg`:case`jpeg`:return`image/jpeg`;case`heic`:return`image/heic`;case`heif`:return`image/heif`;case`png`:return`image/png`;case`webp`:return`image/webp`;case`gif`:return`image/gif`;default:return}}function ai(e){return Kr(J(e))}function X(e){try{return(0,i.statSync)(e).isFile()}catch{return!1}}function oi(e,t){if(e.includes(`/`)||e.includes(`\\`)||n.default.isAbsolute(e))return e;let r=(t.PATH??t.Path??process.env.PATH??process.env.Path??``).split(`;`).map(e=>e.trim()).filter(Boolean),i=n.default.extname(e).length>0,a=t.PATHEXT??t.Pathext??process.env.PATHEXT??process.env.Pathext??`.EXE;.CMD;.BAT;.COM`,o=i?[``]:a.split(`;`).map(e=>e.trim()).filter(Boolean).map(e=>e.startsWith(`.`)?e:`.${e}`);for(let t of r)for(let r of o)for(let i of[r,r.toLowerCase(),r.toUpperCase()]){let r=n.default.join(t,`${e}${i}`);if(X(r))return r}return e}function si(e){if(!X(e))return null;try{let t=(0,i.readFileSync)(e,`utf8`),r=[];for(let i of t.matchAll(/"([^"\r\n]*)"/g)){let t=(i[1]??``).match(/%~?dp0%?\s*[\\/]*(.*)$/i)?.[1]?.trim();if(!t)continue;let a=t.replace(/[\\/]+/g,n.default.sep).replace(/^[\\/]+/,``),o=n.default.resolve(n.default.dirname(e),a);X(o)&&r.push(o)}return r.find(e=>{let t=n.default.basename(e).toLowerCase();return t!==`node.exe`&&t!==`node`})??null}catch{return null}}function ci(e,t){if(typeof t==`string`)return t.trim()||null;if(!t||typeof t!=`object`)return null;if(e){let n=t[e];if(typeof n==`string`&&n.trim())return n.trim()}for(let e of Object.values(t))if(typeof e==`string`&&e.trim())return e.trim();return null}function li(e,t){if(!t)return null;let r=n.default.dirname(e),a=[n.default.resolve(r,`..`,t),n.default.resolve(r,`node_modules`,t)];for(let e of a){let r=n.default.join(e,`package.json`);if(X(r))try{let a=ci(t,JSON.parse((0,i.readFileSync)(r,`utf8`)).bin);if(!a)continue;let o=n.default.resolve(e,a);if(X(o))return o}catch{}}return null}function ui(e){let t=e.platform??process.platform,r=e.env??process.env,i=e.execPath??process.execPath;if(t!==`win32`)return{command:e.command,leadingArgv:[],resolution:`direct`};let a=oi(e.command,r),o=n.default.extname(a).toLowerCase();if(o===`.js`||o===`.cjs`||o===`.mjs`)return{command:i,leadingArgv:[a],resolution:`node-entrypoint`,windowsHide:!0};if(o===`.cmd`||o===`.bat`){let t=si(a)??li(a,e.packageName);return t?n.default.extname(t).toLowerCase()===`.exe`?{command:t,leadingArgv:[],resolution:`exe-entrypoint`,windowsHide:!0}:{command:i,leadingArgv:[t],resolution:`node-entrypoint`,windowsHide:!0}:{command:a,leadingArgv:[],resolution:`unresolved-wrapper`}}return{command:a,leadingArgv:[],resolution:`direct`}}function di(e){if(e.candidate.resolution!==`unresolved-wrapper`)return{command:e.candidate.command,leadingArgv:e.candidate.leadingArgv,resolution:e.candidate.resolution,windowsHide:e.candidate.windowsHide};if(e.allowShellFallback!==!1)return{command:e.candidate.command,leadingArgv:[],resolution:`shell-fallback`,shell:!0};throw Error(`${n.default.basename(e.candidate.command)} wrapper resolved, but no executable/Node entrypoint could be resolved without shell execution.`)}function fi(e){return di({candidate:ui(e),allowShellFallback:e.allowShellFallback})}function pi(e,t){return{command:e.command,argv:[...e.leadingArgv,...t],resolution:e.resolution,shell:e.shell,windowsHide:e.windowsHide}}function Z(t,r=process.env,i=()=>e.d(r,a.default.homedir)){let o=e.c(r,i),s=b(t??`main`);return n.default.join(o,`agents`,s,`sessions`)}function mi(t,n=process.env,r=()=>e.d(n,a.default.homedir)){return Z(t,n,r)}function hi(e){return n.default.join(Z(e),`sessions.json`)}function gi(e){let t=e.agentId?.trim(),r=e.storePath?.trim();if(r&&r!==`(multiple)`){let e=n.default.dirname(n.default.resolve(r));return t?{sessionsDir:e,agentId:t}:{sessionsDir:e}}if(t)return{agentId:t}}const _i=/^[a-z0-9][a-z0-9._-]{0,127}$/i;function vi(e){let t=e.trim();if(!_i.test(t))throw Error(`Invalid session ID: ${e}`);return t}function yi(e){let t=e?.sessionsDir?.trim();return t?n.default.resolve(t):Z(e?.agentId)}function bi(e,t){let r=Q(n.default.resolve(e))??n.default.resolve(e),i=Q(t)??t,a=n.default.relative(r,i);if(!(!a||a.startsWith(`..`)||n.default.isAbsolute(a)))return n.default.resolve(r,a)}function xi(e,t){let r=n.default.resolve(e);if(n.default.basename(r)!==`sessions`)return;let i=n.default.dirname(r),a=n.default.dirname(i);if(n.default.basename(a)!==`agents`)return;let o=n.default.dirname(a);return n.default.join(o,`agents`,b(t),`sessions`)}function Si(e){let t=n.default.normalize(n.default.resolve(e)).split(n.default.sep).filter(Boolean),r=t.lastIndexOf(`sessions`);return r<2||t[r-2]!==`agents`?null:{parts:t,sessionsIndex:r}}function Ci(e){let t=Si(e);if(!t)return;let{parts:n,sessionsIndex:r}=t;return n[r-1]||void 0}function wi(e,t){let r=Si(e);if(!r)return;let{parts:i,sessionsIndex:a}=r,o=i[a-1];if(!o)return;let s=b(o);if(s!==o.toLowerCase()||s!==b(t))return;let c=i.slice(a+1);if(c.length!==1)return;let l=c[0];if(!(!l||l===`.`||l===`..`))return n.default.normalize(n.default.resolve(e))}function Q(e){try{return i.default.realpathSync(e)}catch{return}}function Ti(e,t,r){let i=t.trim();if(!i)throw Error(`Session file path must not be empty`);let a=n.default.resolve(e),o=Q(a)??a,s=n.default.isAbsolute(i)?Q(i)??i:i,c=n.default.isAbsolute(s)?n.default.relative(o,s):s;if(c.startsWith(`..`)&&n.default.isAbsolute(s)){let e=e=>{let t=b(e),n=xi(o,t);if(n){let e=bi(n,s);if(e)return e}return bi(Z(t),s)},t=r?.agentId?.trim();if(t){let n=e(t);if(n)return n}let n=Ci(s);if(n){let t=e(n);if(t)return t;let r=wi(s,n);if(r)return r}}if(!c||c.startsWith(`..`)||n.default.isAbsolute(c))throw Error(`Session file path must be within sessions directory`);return n.default.resolve(o,c)}function $(e,t,n){let r=vi(e),i=typeof n==`string`?encodeURIComponent(n):typeof n==`number`?String(n):void 0;return Ti(t,i===void 0?`${r}.jsonl`:`${r}-topic-${i}.jsonl`)}function Ei(e,t,n){return $(e,Z(t),n)}function Di(e,t,n){let r=yi(n),i=t?.sessionFile?.trim();if(i)try{return Ti(r,i,{agentId:n?.agentId})}catch{}return $(e,r)}function Oi(t,r){let i=b(r?.agentId??`main`);if(!t)return hi(i);if(t.includes(`{agentId}`)){let r=t.replaceAll(`{agentId}`,i);return r.startsWith(`~`)?n.default.resolve(e.l(r,{home:e.d(process.env,a.default.homedir),env:process.env,homedir:a.default.homedir})):n.default.resolve(r)}return t.startsWith(`~`)?n.default.resolve(e.l(t,{home:e.d(process.env,a.default.homedir),env:process.env,homedir:a.default.homedir})):n.default.resolve(t)}Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return pr}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return me}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return Rr}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return Or}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return Xn}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return wn}}),Object.defineProperty(exports,`Gt`,{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return jn}}),Object.defineProperty(exports,`Ht`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return Jn}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return En}}),Object.defineProperty(exports,`Jt`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return In}}),Object.defineProperty(exports,`Kt`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return zn}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return ur}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return cr}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return zr}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return lr}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return Fn}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return Ir}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return Dr}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return On}}),Object.defineProperty(exports,`Ut`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(exports,`Vt`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return Ln}}),Object.defineProperty(exports,`Wt`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return Tn}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return nn}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return vn}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return Kr}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return pi}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return ni}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return ai}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return ri}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Ei}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return mn}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return mr}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return Lr}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return fi}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return Qr}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Di}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return mi}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return gn}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return ii}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(exports,`qt`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return gi}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Oi}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return Xt}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return hi}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return $r}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return Wr}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return qr}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return Cn}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return pe}});
6
- //# sourceMappingURL=paths-Dd7r1qlB.cjs.map
@@ -1,2 +1 @@
1
1
  import e from"node:path";import t from"node:fs";import n from"node:os";function r(e){return e?.trim()||void 0}function i(t=process.env,r=n.homedir){let i=a(t,r);return i?e.resolve(i):void 0}function a(e,t){let n=r(e.OPENCLAW_HOME);if(n){if(n===`~`||n.startsWith(`~/`)||n.startsWith(`~\\`)){let i=r(e.HOME)??r(e.USERPROFILE)??o(t);return i?n.replace(/^~(?=$|[\\/])/,i):void 0}return n}return r(e.HOME)||r(e.USERPROFILE)||o(t)}function o(e){try{return r(e())}catch{return}}function s(t=process.env,r=n.homedir){return i(t,r)??e.resolve(process.cwd())}function c(e,t){if(!e.startsWith(`~`))return e;let a=r(t?.home)??i(t?.env??process.env,t?.homedir??n.homedir);return a?e.replace(/^~(?=$|[\\/])/,a):e}function l(e=process.env){return e.OPENCLAW_NIX_MODE===`1`}l();const u=[`.clawdbot`,`.moldbot`,`.moltbot`],d=`.openclaw-qbot.json`,f=[`openclaw.json`,`clawdbot.json`,`moldbot.json`,`moltbot.json`];function p(){return s(process.env,n.homedir)}function m(e){return()=>s(e,n.homedir)}function h(t=p){return u.map(n=>e.join(t(),n))}function g(t=p){return e.join(t(),`.qbotclaw`)}function _(e=process.env,n=m(e)){let r=()=>s(e,n),i=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(i)return v(i,e,r);let a=g(r);if(e.OPENCLAW_TEST_FAST===`1`)return a;let o=h(r);return t.existsSync(a)?a:o.find(e=>{try{return t.existsSync(e)}catch{return!1}})||a}function v(t,n=process.env,r=m(n)){let i=t.trim();if(!i)return i;if(i.startsWith(`~`)){let t=c(i,{home:s(n,r),env:n,homedir:r});return e.resolve(t)}return e.resolve(i)}const y=_();function b(t=process.env,n=_(t,m(t))){let r=t.OPENCLAW_CONFIG_PATH?.trim()||t.CLAWDBOT_CONFIG_PATH?.trim();return r?v(r,t,m(t)):e.join(n,d)}function x(e=process.env,n=m(e)){return e.OPENCLAW_TEST_FAST===`1`?b(e,_(e,n)):C(e,n).find(e=>{try{return t.existsSync(e)}catch{return!1}})||b(e,_(e,n))}function S(n=process.env,r=_(n,m(n)),i=m(n)){let a=n.OPENCLAW_CONFIG_PATH?.trim();if(a)return v(a,n,i);if(n.OPENCLAW_TEST_FAST===`1`)return e.join(r,d);let o=n.OPENCLAW_STATE_DIR?.trim(),s=[e.join(r,d),...f.map(t=>e.join(r,t))].find(e=>{try{return t.existsSync(e)}catch{return!1}});if(s)return s;if(o)return e.join(r,d);let c=_(n,i);return e.resolve(r)===e.resolve(c)?x(n,i):e.join(r,d)}x();function C(t=process.env,n=m(t)){let r=()=>s(t,n),i=t.OPENCLAW_CONFIG_PATH?.trim()||t.CLAWDBOT_CONFIG_PATH?.trim();if(i)return[v(i,t,r)];let a=[],o=t.OPENCLAW_STATE_DIR?.trim()||t.CLAWDBOT_STATE_DIR?.trim();if(o){let n=v(o,t,r);a.push(e.join(n,d)),a.push(...f.map(t=>e.join(n,t)))}let c=[g(r),...h(r)];for(let t of c)a.push(e.join(t,d)),a.push(...f.map(n=>e.join(t,n)));return a}const w=18789;function T(t=process.env,n=_(t,m(t))){let r=t.OPENCLAW_OAUTH_DIR?.trim();return r?v(r,t,m(t)):e.join(n,`credentials`)}function E(t=process.env,n=_(t,m(t))){return e.join(T(t,n),`oauth.json`)}function D(e,t=process.env){let n=t.OPENCLAW_GATEWAY_PORT?.trim()||t.CLAWDBOT_GATEWAY_PORT?.trim();if(n){let e=Number.parseInt(n,10);if(Number.isFinite(e)&&e>=0)return e}let r=e?.gateway?.port;return typeof r==`number`&&Number.isFinite(r)&&r>=0?r:w}export{D as a,_ as c,s as d,C as i,c as l,y as n,T as o,S as r,E as s,w as t,i as u};
2
- //# sourceMappingURL=paths-DhSjTRMz.js.map
@@ -3,4 +3,3 @@ import{J as e,O as t,_ as n,g as r,i,y as a}from"./logger-DJGHvDbX.js";import{c
3
3
  `);function wr(e){let t=e.trim().split(/\r?\n/).map(e=>e.trim()).filter(Boolean).at(-1);if(!t)throw Error(`Pinned write helper returned no identity`);let[n,r]=t.split(`|`),i=Number.parseInt(n??``,10),a=Number.parseInt(r??``,10);if(!Number.isFinite(i)||!Number.isFinite(a))throw Error(`Pinned write helper returned invalid identity: ${t}`);return{dev:i,ino:a}}async function Tr(e){let t=u(`python3`,[`-c`,Cr,e.rootPath,e.relativeParentPath,e.basename,e.mkdir?`1`:`0`,(e.mode||384).toString(8)],{stdio:[`pipe`,`pipe`,`pipe`]}),n=``,r=``;t.stdout.setEncoding?.(`utf8`),t.stderr.setEncoding?.(`utf8`),t.stdout.on(`data`,e=>{n+=e}),t.stderr.on(`data`,e=>{r+=e});let i=g(t,`close`);try{if(!t.stdin){let t=await Er(e);return await i.catch(()=>{}),t}if(e.input.kind===`buffer`){let n=e.input;await new Promise((e,r)=>{if(t.stdin.once(`error`,r),typeof n.data==`string`){t.stdin.end(n.data,n.encoding??`utf8`,()=>e());return}t.stdin.end(n.data,()=>e())})}else await _(e.input.stream,t.stdin);let[a,o]=await i;if(a!==0)throw Error(r.trim()||`Pinned write helper failed with code ${a??`null`} (${o??`?`})`);return wr(n)}catch(e){throw t.kill(`SIGKILL`),await i.catch(()=>{}),e}}async function Er(e){let t=e.relativeParentPath?l.join(e.rootPath,...e.relativeParentPath.split(`/`)):e.rootPath;e.mkdir&&await m.mkdir(t,{recursive:!0});let n=l.join(t,e.basename),r=l.join(t,`.${e.basename}.fallback.tmp`);if(e.input.kind===`buffer`)typeof e.input.data==`string`?await m.writeFile(r,e.input.data,{encoding:e.input.encoding??`utf8`,mode:e.mode}):await m.writeFile(r,e.input.data,{mode:e.mode});else{let t=await m.open(r,`w`,e.mode);try{await _(e.input.stream,t.createWriteStream())}finally{await t.close().catch(()=>{})}}await m.rename(r,n);let i=await m.stat(n);return{dev:i.dev,ino:i.ino}}var W=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`SafeOpenError`}};const G=process.platform!==`win32`&&`O_NOFOLLOW`in f,Dr=f.O_RDONLY|(G?f.O_NOFOLLOW:0),Or=f.O_WRONLY|(G?f.O_NOFOLLOW:0),kr=f.O_WRONLY|f.O_CREAT|f.O_EXCL|(G?f.O_NOFOLLOW:0),Ar=f.O_RDWR|f.O_APPEND|(G?f.O_NOFOLLOW:0),jr=f.O_RDWR|f.O_APPEND|f.O_CREAT|f.O_EXCL|(G?f.O_NOFOLLOW:0),Mr=e=>e.endsWith(l.sep)?e:e+l.sep;async function Nr(e){let t=process.env.HOME||process.env.USERPROFILE||p.homedir();try{t=await m.realpath(t)}catch{}return c(e,{home:t})}async function K(e,t){try{if((await m.lstat(e)).isDirectory())throw new W(`not-file`,`not a file`)}catch(e){if(e instanceof W)throw e}let n;try{n=await m.open(e,Dr)}catch(e){throw w(e)?new W(`not-found`,`file not found`):Qe(e)?new W(`symlink`,`symlink open blocked`,{cause:e}):Ze(e,`EISDIR`)?new W(`not-file`,`not a file`):e}try{let[r,i]=await Promise.all([n.stat(),m.lstat(e)]);if(i.isSymbolicLink())throw new W(`symlink`,`symlink not allowed`);if(!r.isFile())throw new W(`not-file`,`not a file`);if(t?.rejectHardlinks&&r.nlink>1)throw new W(`invalid-path`,`hardlinked path not allowed`);if(!k(r,i))throw new W(`path-mismatch`,`path changed during read`);let a=await m.realpath(e),o=await m.stat(a);if(t?.rejectHardlinks&&o.nlink>1)throw new W(`invalid-path`,`hardlinked path not allowed`);if(!k(r,o))throw new W(`path-mismatch`,`path mismatch`);return{handle:n,realPath:a,stat:r}}catch(e){throw await n.close().catch(()=>{}),e instanceof W?e:w(e)?new W(`not-found`,`file not found`):e}}async function Pr(e){let t;try{t=await m.realpath(e.rootDir)}catch(e){throw w(e)?new W(`not-found`,`root dir not found`):e}let n=Mr(t),r=await Nr(e.relativePath),i=l.resolve(n,r);if(!T(n,i))throw new W(`outside-workspace`,`file is outside workspace root`);return{rootReal:t,rootWithSep:n,resolved:i}}async function Fr(e){let{rootWithSep:t,resolved:n}=await Pr(e),r;try{r=await K(n)}catch(e){throw e instanceof W?e.code===`not-found`?e:new W(`invalid-path`,`path is not a regular file under root`,{cause:e}):e}if(e.rejectHardlinks!==!1&&r.stat.nlink>1)throw await r.handle.close().catch(()=>{}),new W(`invalid-path`,`hardlinked path not allowed`);if(!T(t,r.realPath))throw await r.handle.close().catch(()=>{}),new W(`outside-workspace`,`file is outside workspace root`);return r}async function Ir(e){let t=await Fr({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:e.rejectHardlinks});try{return await Br({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function Lr(e){let t=l.resolve(e.rootDir),n=l.isAbsolute(e.filePath)?l.resolve(e.filePath):l.resolve(t,e.filePath);return await Ir({rootDir:t,relativePath:l.relative(t,n),rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})}function Rr(e){let t=l.resolve(e.rootDir);return async n=>(await Lr({rootDir:t,filePath:n,rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})).buffer}async function zr(e){let t=await K(e.filePath);try{return await Br({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function Br(e){if(e.maxBytes!==void 0&&e.opened.stat.size>e.maxBytes)throw new W(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${e.opened.stat.size})`);return{buffer:await e.opened.handle.readFile(),realPath:e.opened.realPath,stat:e.opened.stat}}function q(e){i(`security: fs-safe write boundary warning (${e})`)}function Vr(e){let t=l.dirname(e),n=l.basename(e);return l.join(t,`.${n}.${process.pid}.${ne()}.tmp`)}async function Hr(e){let t=await m.open(e.tempPath,kr,e.mode);try{return typeof e.data==`string`?await t.writeFile(e.data,e.encoding??`utf8`):await t.writeFile(e.data),await t.stat()}finally{await t.close().catch(()=>{})}}async function J(e){let t=Mr(await m.realpath(e.rootDir)),n=await K(e.targetPath,{rejectHardlinks:!0});try{if(!k(n.stat,e.expectedIdentity))throw new W(`path-mismatch`,`path changed during write`);if(!T(t,n.realPath))throw new W(`outside-workspace`,`file is outside workspace root`)}finally{await n.handle.close().catch(()=>{})}}async function Ur(e,t){try{return await m.realpath(t)}catch(e){if(!w(e))throw e}let n=process.platform===`linux`?[`/proc/self/fd/${e.fd}`,`/dev/fd/${e.fd}`]:process.platform===`win32`?[]:[`/dev/fd/${e.fd}`];for(let e of n)try{return await m.realpath(e)}catch{}throw new W(`path-mismatch`,`unable to resolve opened file path`)}async function Wr(e){let{rootReal:t,rootWithSep:n,resolved:r}=await Pr(e);try{await Sr({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new W(`invalid-path`,`path alias escape blocked`,{cause:e})}e.mkdir!==!1&&await m.mkdir(l.dirname(r),{recursive:!0});let i=r;try{let e=await m.realpath(r);if(!T(n,e))throw new W(`outside-workspace`,`file is outside workspace root`);i=e}catch(e){if(e instanceof W||!w(e))throw e}let a=e.mode??384,o,s=!1,c=e.append?Ar:Or,u=e.append?jr:kr;try{try{o=await m.open(i,c,a)}catch(e){if(!w(e))throw e;o=await m.open(i,u,a),s=!0}}catch(e){throw w(e)?new W(`not-found`,`file not found`):Qe(e)?new W(`invalid-path`,`symlink open blocked`,{cause:e}):e}let d=null;try{let t=await o.stat();if(!t.isFile())throw new W(`invalid-path`,`path is not a regular file under root`);if(t.nlink>1)throw new W(`invalid-path`,`hardlinked path not allowed`);try{let e=await m.lstat(i);if(e.isSymbolicLink()||!e.isFile())throw new W(`invalid-path`,`path is not a regular file under root`);if(!k(t,e))throw new W(`path-mismatch`,`path changed during write`)}catch(e){if(!w(e))throw e}let r=await Ur(o,i);d=r;let a=await m.stat(r);if(!k(t,a))throw new W(`path-mismatch`,`path mismatch`);if(a.nlink>1)throw new W(`invalid-path`,`hardlinked path not allowed`);if(!T(n,r))throw new W(`outside-workspace`,`file is outside workspace root`);return e.append!==!0&&e.truncateExisting!==!1&&!s&&await o.truncate(0),{handle:o,createdForWrite:s,openedRealPath:r,openedStat:t}}catch(e){let t=s&&e instanceof W,n=d??i;throw await o.close().catch(()=>{}),t&&await m.rm(n,{force:!0}).catch(()=>{}),e}}async function Gr(e){let t=await Wr({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1,append:!0});try{let n=``;if(e.prependNewlineIfNeeded===!0&&!t.createdForWrite&&t.openedStat.size>0&&(typeof e.data==`string`&&!e.data.startsWith(`
4
4
  `)||Buffer.isBuffer(e.data)&&e.data.length>0&&e.data[0]!==10)){let e=Buffer.alloc(1),{bytesRead:r}=await t.handle.read(e,0,1,t.openedStat.size-1);r===1&&e[0]!==10&&(n=`
5
5
  `)}if(typeof e.data==`string`){await t.handle.appendFile(`${n}${e.data}`,e.encoding??`utf8`);return}let r=n.length>0?Buffer.concat([Buffer.from(n,`utf8`),e.data]):e.data;await t.handle.appendFile(r)}finally{await t.handle.close().catch(()=>{})}}async function Kr(e){if(process.platform===`win32`){await Zr(e);return}let t=await Yr({rootDir:e.rootDir,relativePath:e.relativePath}),n=await Tr({rootPath:t.rootReal,relativeParentPath:t.relativeParentPath,basename:t.basename,mkdir:e.mkdir!==!1,mode:t.mode,input:{kind:`buffer`,data:e.data,encoding:e.encoding}}).catch(e=>{throw Xr(e)});try{await J({rootDir:e.rootDir,targetPath:t.targetPath,expectedIdentity:n})}catch(e){throw q(`post-write verification failed: ${String(e)}`),e}}async function qr(e){let t=await K(e.sourcePath,{rejectHardlinks:e.rejectSourceHardlinks});if(e.maxBytes!==void 0&&t.stat.size>e.maxBytes)throw await t.handle.close().catch(()=>{}),new W(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${t.stat.size})`);try{if(process.platform===`win32`){await Qr(e,t);return}let n=await Yr({rootDir:e.rootDir,relativePath:e.relativePath}),r=t.handle.createReadStream(),i=await Tr({rootPath:n.rootReal,relativeParentPath:n.relativeParentPath,basename:n.basename,mkdir:e.mkdir!==!1,mode:n.mode,input:{kind:`stream`,stream:r}}).catch(e=>{throw Xr(e)});try{await J({rootDir:e.rootDir,targetPath:n.targetPath,expectedIdentity:i})}catch(e){throw q(`post-copy verification failed: ${String(e)}`),e}}finally{await t.handle.close().catch(()=>{})}}async function Jr(e){await qr({sourcePath:e.sourcePath,rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,rejectSourceHardlinks:!0})}async function Yr(e){let{rootReal:t,rootWithSep:n,resolved:r}=await Pr(e);try{await Sr({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new W(`invalid-path`,`path alias escape blocked`,{cause:e})}let i=l.relative(t,r);if(i.startsWith(`..`)||l.isAbsolute(i))throw new W(`outside-workspace`,`file is outside workspace root`);let a=i?i.split(l.sep).join(l.posix.sep):``,o=l.posix.basename(a);if(!o||o===`.`||o===`/`)throw new W(`invalid-path`,`invalid target path`);let s=384;try{let t=await Fr({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:!0});try{if(s=t.stat.mode&511,!T(n,t.realPath))throw new W(`outside-workspace`,`file is outside workspace root`)}finally{await t.handle.close().catch(()=>{})}}catch(e){if(!(e instanceof W)||e.code!==`not-found`)throw e}return{rootReal:t,targetPath:r,relativeParentPath:l.posix.dirname(a)===`.`?``:l.posix.dirname(a),basename:o,mode:s||384}}function Xr(e){return e instanceof W?e:new W(`invalid-path`,`path is not a regular file under root`,{cause:e instanceof Error?e:void 0})}async function Zr(e){let t=await Wr({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1}),n=t.openedRealPath,r=t.openedStat.mode&511;await t.handle.close().catch(()=>{});let i=null;try{i=Vr(n);let t=await Hr({tempPath:i,data:e.data,encoding:e.encoding,mode:r||384});await m.rename(i,n),i=null;try{await J({rootDir:e.rootDir,targetPath:n,expectedIdentity:t})}catch(e){throw q(`post-write verification failed: ${String(e)}`),e}}finally{i&&await m.rm(i,{force:!0}).catch(()=>{})}}async function Qr(e,t){let n=null,r=!1,i=!1,a=null,o=null,s=!1;try{n=await Wr({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1});let c=n.openedRealPath,l=n.openedStat.mode&511;await n.handle.close().catch(()=>{}),i=!0,o=Vr(c),a=await m.open(o,kr,l||384);let u=t.handle.createReadStream(),d=a.createWriteStream();u.once(`close`,()=>{r=!0}),d.once(`close`,()=>{s=!0}),await import(`node:stream/promises`).then(({pipeline:e})=>e(u,d));let f=await m.stat(o);s||=(await a.close().catch(()=>{}),!0),a=null,await m.rename(o,c),o=null;try{await J({rootDir:e.rootDir,targetPath:c,expectedIdentity:f})}catch(e){throw q(`post-copy verification failed: ${String(e)}`),e}}catch(e){throw n?.createdForWrite&&await m.rm(n.openedRealPath,{force:!0}).catch(()=>{}),e}finally{o&&await m.rm(o,{force:!0}).catch(()=>{}),r||await t.handle.close().catch(()=>{}),a&&!s&&await a.close().catch(()=>{}),n&&!i&&await n.handle.close().catch(()=>{})}}const $r=6*1024*1024,ei=100*1024*1024;function ti(e){if(e){if(e.startsWith(`image/`))return`image`;if(e.startsWith(`audio/`))return`audio`;if(e.startsWith(`video/`))return`video`;if(e===`application/pdf`||e.startsWith(`text/`)||e.startsWith(`application/`))return`document`}}function ni(e){switch(e){case`image`:return $r;case`audio`:return 16777216;case`video`:return 16777216;case`document`:return ei;default:return ei}}const ri={"image/heic":`.heic`,"image/heif":`.heif`,"image/jpeg":`.jpg`,"image/png":`.png`,"image/webp":`.webp`,"image/gif":`.gif`,"audio/ogg":`.ogg`,"audio/mpeg":`.mp3`,"audio/wav":`.wav`,"audio/flac":`.flac`,"audio/aac":`.aac`,"audio/opus":`.opus`,"audio/x-m4a":`.m4a`,"audio/mp4":`.m4a`,"video/mp4":`.mp4`,"video/quicktime":`.mov`,"application/pdf":`.pdf`,"application/json":`.json`,"application/zip":`.zip`,"application/gzip":`.gz`,"application/x-tar":`.tar`,"application/x-7z-compressed":`.7z`,"application/vnd.rar":`.rar`,"application/msword":`.doc`,"application/vnd.ms-excel":`.xls`,"application/vnd.ms-powerpoint":`.ppt`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`.docx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`.xlsx`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`.pptx`,"text/csv":`.csv`,"text/plain":`.txt`,"text/markdown":`.md`},ii={...Object.fromEntries(Object.entries(ri).map(([e,t])=>[t,e])),".jpeg":`image/jpeg`,".js":`text/javascript`},ai=new Set([`.aac`,`.caf`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`]);function Y(e){if(e)return e.split(`;`)[0]?.trim().toLowerCase()||void 0}async function oi(e){if(e)try{return(await v(e))?.mime??void 0}catch{return}}function X(e){if(e){try{if(/^https?:\/\//i.test(e)){let t=new URL(e);return l.extname(t.pathname).toLowerCase()||void 0}}catch{}return l.extname(e).toLowerCase()||void 0}}function si(e){let t=X(e);return t?ai.has(t):!1}function ci(e){return ui(e)}function li(e){if(!e)return!0;let t=e.toLowerCase();return t===`application/octet-stream`||t===`application/zip`}async function ui(e){let t=X(e.filePath),n=t?ii[t]:void 0,r=Y(e.headerMime),i=await oi(e.buffer);if(i&&(!li(i)||!n))return i;if(n)return n;if(r&&!li(r))return r;if(i)return i;if(r)return r}function di(e){let t=Y(e);if(t)return ri[t]}function fi(e){return e.contentType?.toLowerCase()===`image/gif`?!0:X(e.fileName)===`.gif`}function pi(e){if(e)switch(e.toLowerCase()){case`jpg`:case`jpeg`:return`image/jpeg`;case`heic`:return`image/heic`;case`heif`:return`image/heif`;case`png`:return`image/png`;case`webp`:return`image/webp`;case`gif`:return`image/gif`;default:return}}function mi(e){return ti(Y(e))}function Z(e){try{return te(e).isFile()}catch{return!1}}function hi(e,t){if(e.includes(`/`)||e.includes(`\\`)||l.isAbsolute(e))return e;let n=(t.PATH??t.Path??process.env.PATH??process.env.Path??``).split(`;`).map(e=>e.trim()).filter(Boolean),r=l.extname(e).length>0,i=t.PATHEXT??t.Pathext??process.env.PATHEXT??process.env.Pathext??`.EXE;.CMD;.BAT;.COM`,a=r?[``]:i.split(`;`).map(e=>e.trim()).filter(Boolean).map(e=>e.startsWith(`.`)?e:`.${e}`);for(let t of n)for(let n of a)for(let r of[n,n.toLowerCase(),n.toUpperCase()]){let n=l.join(t,`${e}${r}`);if(Z(n))return n}return e}function gi(e){if(!Z(e))return null;try{let t=ee(e,`utf8`),n=[];for(let r of t.matchAll(/"([^"\r\n]*)"/g)){let t=(r[1]??``).match(/%~?dp0%?\s*[\\/]*(.*)$/i)?.[1]?.trim();if(!t)continue;let i=t.replace(/[\\/]+/g,l.sep).replace(/^[\\/]+/,``),a=l.resolve(l.dirname(e),i);Z(a)&&n.push(a)}return n.find(e=>{let t=l.basename(e).toLowerCase();return t!==`node.exe`&&t!==`node`})??null}catch{return null}}function _i(e,t){if(typeof t==`string`)return t.trim()||null;if(!t||typeof t!=`object`)return null;if(e){let n=t[e];if(typeof n==`string`&&n.trim())return n.trim()}for(let e of Object.values(t))if(typeof e==`string`&&e.trim())return e.trim();return null}function vi(e,t){if(!t)return null;let n=l.dirname(e),r=[l.resolve(n,`..`,t),l.resolve(n,`node_modules`,t)];for(let e of r){let n=l.join(e,`package.json`);if(Z(n))try{let r=_i(t,JSON.parse(ee(n,`utf8`)).bin);if(!r)continue;let i=l.resolve(e,r);if(Z(i))return i}catch{}}return null}function yi(e){let t=e.platform??process.platform,n=e.env??process.env,r=e.execPath??process.execPath;if(t!==`win32`)return{command:e.command,leadingArgv:[],resolution:`direct`};let i=hi(e.command,n),a=l.extname(i).toLowerCase();if(a===`.js`||a===`.cjs`||a===`.mjs`)return{command:r,leadingArgv:[i],resolution:`node-entrypoint`,windowsHide:!0};if(a===`.cmd`||a===`.bat`){let t=gi(i)??vi(i,e.packageName);return t?l.extname(t).toLowerCase()===`.exe`?{command:t,leadingArgv:[],resolution:`exe-entrypoint`,windowsHide:!0}:{command:r,leadingArgv:[t],resolution:`node-entrypoint`,windowsHide:!0}:{command:i,leadingArgv:[],resolution:`unresolved-wrapper`}}return{command:i,leadingArgv:[],resolution:`direct`}}function bi(e){if(e.candidate.resolution!==`unresolved-wrapper`)return{command:e.candidate.command,leadingArgv:e.candidate.leadingArgv,resolution:e.candidate.resolution,windowsHide:e.candidate.windowsHide};if(e.allowShellFallback!==!1)return{command:e.candidate.command,leadingArgv:[],resolution:`shell-fallback`,shell:!0};throw Error(`${l.basename(e.candidate.command)} wrapper resolved, but no executable/Node entrypoint could be resolved without shell execution.`)}function xi(e){return bi({candidate:yi(e),allowShellFallback:e.allowShellFallback})}function Si(e,t){return{command:e.command,argv:[...e.leadingArgv,...t],resolution:e.resolution,shell:e.shell,windowsHide:e.windowsHide}}function Q(e,t=process.env,n=()=>s(t,p.homedir)){let r=o(t,n),i=C(e??`main`);return l.join(r,`agents`,i,`sessions`)}function Ci(e,t=process.env,n=()=>s(t,p.homedir)){return Q(e,t,n)}function wi(e){return l.join(Q(e),`sessions.json`)}function Ti(e){let t=e.agentId?.trim(),n=e.storePath?.trim();if(n&&n!==`(multiple)`){let e=l.dirname(l.resolve(n));return t?{sessionsDir:e,agentId:t}:{sessionsDir:e}}if(t)return{agentId:t}}const Ei=/^[a-z0-9][a-z0-9._-]{0,127}$/i;function Di(e){let t=e.trim();if(!Ei.test(t))throw Error(`Invalid session ID: ${e}`);return t}function Oi(e){let t=e?.sessionsDir?.trim();return t?l.resolve(t):Q(e?.agentId)}function ki(e,t){let n=$(l.resolve(e))??l.resolve(e),r=$(t)??t,i=l.relative(n,r);if(!(!i||i.startsWith(`..`)||l.isAbsolute(i)))return l.resolve(n,i)}function Ai(e,t){let n=l.resolve(e);if(l.basename(n)!==`sessions`)return;let r=l.dirname(n),i=l.dirname(r);if(l.basename(i)!==`agents`)return;let a=l.dirname(i);return l.join(a,`agents`,C(t),`sessions`)}function ji(e){let t=l.normalize(l.resolve(e)).split(l.sep).filter(Boolean),n=t.lastIndexOf(`sessions`);return n<2||t[n-2]!==`agents`?null:{parts:t,sessionsIndex:n}}function Mi(e){let t=ji(e);if(!t)return;let{parts:n,sessionsIndex:r}=t;return n[r-1]||void 0}function Ni(e,t){let n=ji(e);if(!n)return;let{parts:r,sessionsIndex:i}=n,a=r[i-1];if(!a)return;let o=C(a);if(o!==a.toLowerCase()||o!==C(t))return;let s=r.slice(i+1);if(s.length!==1)return;let c=s[0];if(!(!c||c===`.`||c===`..`))return l.normalize(l.resolve(e))}function $(e){try{return d.realpathSync(e)}catch{return}}function Pi(e,t,n){let r=t.trim();if(!r)throw Error(`Session file path must not be empty`);let i=l.resolve(e),a=$(i)??i,o=l.isAbsolute(r)?$(r)??r:r,s=l.isAbsolute(o)?l.relative(a,o):o;if(s.startsWith(`..`)&&l.isAbsolute(o)){let e=e=>{let t=C(e),n=Ai(a,t);if(n){let e=ki(n,o);if(e)return e}return ki(Q(t),o)},t=n?.agentId?.trim();if(t){let n=e(t);if(n)return n}let r=Mi(o);if(r){let t=e(r);if(t)return t;let n=Ni(o,r);if(n)return n}}if(!s||s.startsWith(`..`)||l.isAbsolute(s))throw Error(`Session file path must be within sessions directory`);return l.resolve(a,s)}function Fi(e,t,n){let r=Di(e),i=typeof n==`string`?encodeURIComponent(n):typeof n==`number`?String(n):void 0;return Pi(t,i===void 0?`${r}.jsonl`:`${r}-topic-${i}.jsonl`)}function Ii(e,t,n){return Fi(e,Q(t),n)}function Li(e,t,n){let r=Oi(n),i=t?.sessionFile?.trim();if(i)try{return Pi(r,i,{agentId:n?.agentId})}catch{}return Fi(e,r)}function Ri(e,t){let n=C(t?.agentId??`main`);if(!e)return wi(n);if(e.includes(`{agentId}`)){let t=e.replaceAll(`{agentId}`,n);return t.startsWith(`~`)?l.resolve(c(t,{home:s(process.env,p.homedir),env:process.env,homedir:p.homedir})):l.resolve(t)}return e.startsWith(`~`)?l.resolve(c(e,{home:s(process.env,p.homedir),env:process.env,homedir:p.homedir})):l.resolve(e)}export{L as $,xr as A,je as At,H as B,xe as Bt,qr as C,ze as Ct,zr as D,Pe as Dt,Ir as E,Ce as Et,ir as F,Re as Ft,Mn as G,re as Gt,zn as H,b as Ht,nr as I,Ne as It,Pn as J,ce as Jt,Wn as K,ie as Kt,qn as L,Oe as Lt,vr as M,C as Mt,gr as N,ke as Nt,Jr as O,Fe as Ot,_r as P,Ae as Pt,R as Q,Un as R,de as Rt,Gr as S,Be as St,Fr as T,x as Tt,In as U,ae as Ut,Kn as V,ue as Vt,Gn as W,oe as Wt,M as X,Nn as Y,dn as Z,Y as _,Ke as _t,Fi as a,En as at,ti as b,He as bt,Si as c,on as ct,di as d,Wt as dt,F as et,X as f,Vt as ft,mi as g,Ye as gt,fi as h,T as ht,Ii as i,Sn as it,Sr as j,Me as jt,Kr as k,Le as kt,xi as l,Ut as lt,si as m,w as mt,Li as n,P as nt,Ci as o,wn as ot,pi as p,D as pt,Hn as q,y as qt,Ti as r,I as rt,Ri as s,an as st,wi as t,N as tt,ci as u,qt as ut,$r as v,Ge as vt,Rr as w,Ve as wt,W as x,Ue as xt,ni as y,We as yt,jn as z,be as zt};
6
- //# sourceMappingURL=paths-Do0djuaj.js.map
@@ -3,4 +3,3 @@ import{c as e,d as t,l as n}from"./paths-DaRoqzBQ.js";import{D as r,T as i,Y as
3
3
  `);function Tr(e){let t=e.trim().split(/\r?\n/).map(e=>e.trim()).filter(Boolean).at(-1);if(!t)throw Error(`Pinned write helper returned no identity`);let[n,r]=t.split(`|`),i=Number.parseInt(n??``,10),a=Number.parseInt(r??``,10);if(!Number.isFinite(i)||!Number.isFinite(a))throw Error(`Pinned write helper returned invalid identity: ${t}`);return{dev:i,ino:a}}async function Er(e){let t=ne(`python3`,[`-c`,wr,e.rootPath,e.relativeParentPath,e.basename,e.mkdir?`1`:`0`,(e.mode||384).toString(8)],{stdio:[`pipe`,`pipe`,`pipe`]}),n=``,r=``;t.stdout.setEncoding?.(`utf8`),t.stderr.setEncoding?.(`utf8`),t.stdout.on(`data`,e=>{n+=e}),t.stderr.on(`data`,e=>{r+=e});let i=h(t,`close`);try{if(!t.stdin){let t=await Dr(e);return await i.catch(()=>{}),t}if(e.input.kind===`buffer`){let n=e.input;await new Promise((e,r)=>{if(t.stdin.once(`error`,r),typeof n.data==`string`){t.stdin.end(n.data,n.encoding??`utf8`,()=>e());return}t.stdin.end(n.data,()=>e())})}else await g(e.input.stream,t.stdin);let[a,o]=await i;if(a!==0)throw Error(r.trim()||`Pinned write helper failed with code ${a??`null`} (${o??`?`})`);return Tr(n)}catch(e){throw t.kill(`SIGKILL`),await i.catch(()=>{}),e}}async function Dr(e){let t=e.relativeParentPath?f.join(e.rootPath,...e.relativeParentPath.split(`/`)):e.rootPath;e.mkdir&&await m.mkdir(t,{recursive:!0});let n=f.join(t,e.basename),r=f.join(t,`.${e.basename}.fallback.tmp`);if(e.input.kind===`buffer`)typeof e.input.data==`string`?await m.writeFile(r,e.input.data,{encoding:e.input.encoding??`utf8`,mode:e.mode}):await m.writeFile(r,e.input.data,{mode:e.mode});else{let t=await m.open(r,`w`,e.mode);try{await g(e.input.stream,t.createWriteStream())}finally{await t.close().catch(()=>{})}}await m.rename(r,n);let i=await m.stat(n);return{dev:i.dev,ino:i.ino}}var U=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`SafeOpenError`}};const W=process.platform!==`win32`&&`O_NOFOLLOW`in u,Or=u.O_RDONLY|(W?u.O_NOFOLLOW:0),kr=u.O_WRONLY|(W?u.O_NOFOLLOW:0),Ar=u.O_WRONLY|u.O_CREAT|u.O_EXCL|(W?u.O_NOFOLLOW:0),jr=u.O_RDWR|u.O_APPEND|(W?u.O_NOFOLLOW:0),Mr=u.O_RDWR|u.O_APPEND|u.O_CREAT|u.O_EXCL|(W?u.O_NOFOLLOW:0),Nr=e=>e.endsWith(f.sep)?e:e+f.sep;async function Pr(e){let t=process.env.HOME||process.env.USERPROFILE||p.homedir();try{t=await m.realpath(t)}catch{}return n(e,{home:t})}async function G(e,t){try{if((await m.lstat(e)).isDirectory())throw new U(`not-file`,`not a file`)}catch(e){if(e instanceof U)throw e}let n;try{n=await m.open(e,Or)}catch(e){throw C(e)?new U(`not-found`,`file not found`):$e(e)?new U(`symlink`,`symlink open blocked`,{cause:e}):Qe(e,`EISDIR`)?new U(`not-file`,`not a file`):e}try{let[r,i]=await Promise.all([n.stat(),m.lstat(e)]);if(i.isSymbolicLink())throw new U(`symlink`,`symlink not allowed`);if(!r.isFile())throw new U(`not-file`,`not a file`);if(t?.rejectHardlinks&&r.nlink>1)throw new U(`invalid-path`,`hardlinked path not allowed`);if(!O(r,i))throw new U(`path-mismatch`,`path changed during read`);let a=await m.realpath(e),o=await m.stat(a);if(t?.rejectHardlinks&&o.nlink>1)throw new U(`invalid-path`,`hardlinked path not allowed`);if(!O(r,o))throw new U(`path-mismatch`,`path mismatch`);return{handle:n,realPath:a,stat:r}}catch(e){throw await n.close().catch(()=>{}),e instanceof U?e:C(e)?new U(`not-found`,`file not found`):e}}async function Fr(e){let t;try{t=await m.realpath(e.rootDir)}catch(e){throw C(e)?new U(`not-found`,`root dir not found`):e}let n=Nr(t),r=await Pr(e.relativePath),i=f.resolve(n,r);if(!w(n,i))throw new U(`outside-workspace`,`file is outside workspace root`);return{rootReal:t,rootWithSep:n,resolved:i}}async function Ir(e){let{rootWithSep:t,resolved:n}=await Fr(e),r;try{r=await G(n)}catch(e){throw e instanceof U?e.code===`not-found`?e:new U(`invalid-path`,`path is not a regular file under root`,{cause:e}):e}if(e.rejectHardlinks!==!1&&r.stat.nlink>1)throw await r.handle.close().catch(()=>{}),new U(`invalid-path`,`hardlinked path not allowed`);if(!w(t,r.realPath))throw await r.handle.close().catch(()=>{}),new U(`outside-workspace`,`file is outside workspace root`);return r}async function Lr(e){let t=await Ir({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:e.rejectHardlinks});try{return await Vr({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function Rr(e){let t=f.resolve(e.rootDir),n=f.isAbsolute(e.filePath)?f.resolve(e.filePath):f.resolve(t,e.filePath);return await Lr({rootDir:t,relativePath:f.relative(t,n),rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})}function zr(e){let t=f.resolve(e.rootDir);return async n=>(await Rr({rootDir:t,filePath:n,rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})).buffer}async function Br(e){let t=await G(e.filePath);try{return await Vr({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function Vr(e){if(e.maxBytes!==void 0&&e.opened.stat.size>e.maxBytes)throw new U(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${e.opened.stat.size})`);return{buffer:await e.opened.handle.readFile(),realPath:e.opened.realPath,stat:e.opened.stat}}function K(e){s(`security: fs-safe write boundary warning (${e})`)}function Hr(e){let t=f.dirname(e),n=f.basename(e);return f.join(t,`.${n}.${process.pid}.${te()}.tmp`)}async function Ur(e){let t=await m.open(e.tempPath,Ar,e.mode);try{return typeof e.data==`string`?await t.writeFile(e.data,e.encoding??`utf8`):await t.writeFile(e.data),await t.stat()}finally{await t.close().catch(()=>{})}}async function q(e){let t=Nr(await m.realpath(e.rootDir)),n=await G(e.targetPath,{rejectHardlinks:!0});try{if(!O(n.stat,e.expectedIdentity))throw new U(`path-mismatch`,`path changed during write`);if(!w(t,n.realPath))throw new U(`outside-workspace`,`file is outside workspace root`)}finally{await n.handle.close().catch(()=>{})}}async function Wr(e,t){try{return await m.realpath(t)}catch(e){if(!C(e))throw e}let n=process.platform===`linux`?[`/proc/self/fd/${e.fd}`,`/dev/fd/${e.fd}`]:process.platform===`win32`?[]:[`/dev/fd/${e.fd}`];for(let e of n)try{return await m.realpath(e)}catch{}throw new U(`path-mismatch`,`unable to resolve opened file path`)}async function J(e){let{rootReal:t,rootWithSep:n,resolved:r}=await Fr(e);try{await Cr({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new U(`invalid-path`,`path alias escape blocked`,{cause:e})}e.mkdir!==!1&&await m.mkdir(f.dirname(r),{recursive:!0});let i=r;try{let e=await m.realpath(r);if(!w(n,e))throw new U(`outside-workspace`,`file is outside workspace root`);i=e}catch(e){if(e instanceof U||!C(e))throw e}let a=e.mode??384,o,s=!1,c=e.append?jr:kr,l=e.append?Mr:Ar;try{try{o=await m.open(i,c,a)}catch(e){if(!C(e))throw e;o=await m.open(i,l,a),s=!0}}catch(e){throw C(e)?new U(`not-found`,`file not found`):$e(e)?new U(`invalid-path`,`symlink open blocked`,{cause:e}):e}let u=null;try{let t=await o.stat();if(!t.isFile())throw new U(`invalid-path`,`path is not a regular file under root`);if(t.nlink>1)throw new U(`invalid-path`,`hardlinked path not allowed`);try{let e=await m.lstat(i);if(e.isSymbolicLink()||!e.isFile())throw new U(`invalid-path`,`path is not a regular file under root`);if(!O(t,e))throw new U(`path-mismatch`,`path changed during write`)}catch(e){if(!C(e))throw e}let r=await Wr(o,i);u=r;let a=await m.stat(r);if(!O(t,a))throw new U(`path-mismatch`,`path mismatch`);if(a.nlink>1)throw new U(`invalid-path`,`hardlinked path not allowed`);if(!w(n,r))throw new U(`outside-workspace`,`file is outside workspace root`);return e.append!==!0&&e.truncateExisting!==!1&&!s&&await o.truncate(0),{handle:o,createdForWrite:s,openedRealPath:r,openedStat:t}}catch(e){let t=s&&e instanceof U,n=u??i;throw await o.close().catch(()=>{}),t&&await m.rm(n,{force:!0}).catch(()=>{}),e}}async function Gr(e){let t=await J({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1,append:!0});try{let n=``;if(e.prependNewlineIfNeeded===!0&&!t.createdForWrite&&t.openedStat.size>0&&(typeof e.data==`string`&&!e.data.startsWith(`
4
4
  `)||Buffer.isBuffer(e.data)&&e.data.length>0&&e.data[0]!==10)){let e=Buffer.alloc(1),{bytesRead:r}=await t.handle.read(e,0,1,t.openedStat.size-1);r===1&&e[0]!==10&&(n=`
5
5
  `)}if(typeof e.data==`string`){await t.handle.appendFile(`${n}${e.data}`,e.encoding??`utf8`);return}let r=n.length>0?Buffer.concat([Buffer.from(n,`utf8`),e.data]):e.data;await t.handle.appendFile(r)}finally{await t.handle.close().catch(()=>{})}}async function Kr(e){if(process.platform===`win32`){await Zr(e);return}let t=await Yr({rootDir:e.rootDir,relativePath:e.relativePath}),n=await Er({rootPath:t.rootReal,relativeParentPath:t.relativeParentPath,basename:t.basename,mkdir:e.mkdir!==!1,mode:t.mode,input:{kind:`buffer`,data:e.data,encoding:e.encoding}}).catch(e=>{throw Xr(e)});try{await q({rootDir:e.rootDir,targetPath:t.targetPath,expectedIdentity:n})}catch(e){throw K(`post-write verification failed: ${String(e)}`),e}}async function qr(e){let t=await G(e.sourcePath,{rejectHardlinks:e.rejectSourceHardlinks});if(e.maxBytes!==void 0&&t.stat.size>e.maxBytes)throw await t.handle.close().catch(()=>{}),new U(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${t.stat.size})`);try{if(process.platform===`win32`){await Qr(e,t);return}let n=await Yr({rootDir:e.rootDir,relativePath:e.relativePath}),r=t.handle.createReadStream(),i=await Er({rootPath:n.rootReal,relativeParentPath:n.relativeParentPath,basename:n.basename,mkdir:e.mkdir!==!1,mode:n.mode,input:{kind:`stream`,stream:r}}).catch(e=>{throw Xr(e)});try{await q({rootDir:e.rootDir,targetPath:n.targetPath,expectedIdentity:i})}catch(e){throw K(`post-copy verification failed: ${String(e)}`),e}}finally{await t.handle.close().catch(()=>{})}}async function Jr(e){await qr({sourcePath:e.sourcePath,rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,rejectSourceHardlinks:!0})}async function Yr(e){let{rootReal:t,rootWithSep:n,resolved:r}=await Fr(e);try{await Cr({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new U(`invalid-path`,`path alias escape blocked`,{cause:e})}let i=f.relative(t,r);if(i.startsWith(`..`)||f.isAbsolute(i))throw new U(`outside-workspace`,`file is outside workspace root`);let a=i?i.split(f.sep).join(f.posix.sep):``,o=f.posix.basename(a);if(!o||o===`.`||o===`/`)throw new U(`invalid-path`,`invalid target path`);let s=384;try{let t=await Ir({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:!0});try{if(s=t.stat.mode&511,!w(n,t.realPath))throw new U(`outside-workspace`,`file is outside workspace root`)}finally{await t.handle.close().catch(()=>{})}}catch(e){if(!(e instanceof U)||e.code!==`not-found`)throw e}return{rootReal:t,targetPath:r,relativeParentPath:f.posix.dirname(a)===`.`?``:f.posix.dirname(a),basename:o,mode:s||384}}function Xr(e){return e instanceof U?e:new U(`invalid-path`,`path is not a regular file under root`,{cause:e instanceof Error?e:void 0})}async function Zr(e){let t=await J({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1}),n=t.openedRealPath,r=t.openedStat.mode&511;await t.handle.close().catch(()=>{});let i=null;try{i=Hr(n);let t=await Ur({tempPath:i,data:e.data,encoding:e.encoding,mode:r||384});await m.rename(i,n),i=null;try{await q({rootDir:e.rootDir,targetPath:n,expectedIdentity:t})}catch(e){throw K(`post-write verification failed: ${String(e)}`),e}}finally{i&&await m.rm(i,{force:!0}).catch(()=>{})}}async function Qr(e,t){let n=null,r=!1,i=!1,a=null,o=null,s=!1;try{n=await J({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1});let c=n.openedRealPath,l=n.openedStat.mode&511;await n.handle.close().catch(()=>{}),i=!0,o=Hr(c),a=await m.open(o,Ar,l||384);let u=t.handle.createReadStream(),d=a.createWriteStream();u.once(`close`,()=>{r=!0}),d.once(`close`,()=>{s=!0}),await import(`node:stream/promises`).then(({pipeline:e})=>e(u,d));let ee=await m.stat(o);s||=(await a.close().catch(()=>{}),!0),a=null,await m.rename(o,c),o=null;try{await q({rootDir:e.rootDir,targetPath:c,expectedIdentity:ee})}catch(e){throw K(`post-copy verification failed: ${String(e)}`),e}}catch(e){throw n?.createdForWrite&&await m.rm(n.openedRealPath,{force:!0}).catch(()=>{}),e}finally{o&&await m.rm(o,{force:!0}).catch(()=>{}),r||await t.handle.close().catch(()=>{}),a&&!s&&await a.close().catch(()=>{}),n&&!i&&await n.handle.close().catch(()=>{})}}const $r=6*1024*1024,ei=100*1024*1024;function ti(e){if(e){if(e.startsWith(`image/`))return`image`;if(e.startsWith(`audio/`))return`audio`;if(e.startsWith(`video/`))return`video`;if(e===`application/pdf`||e.startsWith(`text/`)||e.startsWith(`application/`))return`document`}}function ni(e){switch(e){case`image`:return $r;case`audio`:return 16777216;case`video`:return 16777216;case`document`:return ei;default:return ei}}const ri={"image/heic":`.heic`,"image/heif":`.heif`,"image/jpeg":`.jpg`,"image/png":`.png`,"image/webp":`.webp`,"image/gif":`.gif`,"audio/ogg":`.ogg`,"audio/mpeg":`.mp3`,"audio/wav":`.wav`,"audio/flac":`.flac`,"audio/aac":`.aac`,"audio/opus":`.opus`,"audio/x-m4a":`.m4a`,"audio/mp4":`.m4a`,"video/mp4":`.mp4`,"video/quicktime":`.mov`,"application/pdf":`.pdf`,"application/json":`.json`,"application/zip":`.zip`,"application/gzip":`.gz`,"application/x-tar":`.tar`,"application/x-7z-compressed":`.7z`,"application/vnd.rar":`.rar`,"application/msword":`.doc`,"application/vnd.ms-excel":`.xls`,"application/vnd.ms-powerpoint":`.ppt`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`.docx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`.xlsx`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`.pptx`,"text/csv":`.csv`,"text/plain":`.txt`,"text/markdown":`.md`},ii={...Object.fromEntries(Object.entries(ri).map(([e,t])=>[t,e])),".jpeg":`image/jpeg`,".js":`text/javascript`},ai=new Set([`.aac`,`.caf`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`]);function Y(e){if(e)return e.split(`;`)[0]?.trim().toLowerCase()||void 0}async function oi(e){if(e)try{return(await _(e))?.mime??void 0}catch{return}}function X(e){if(e){try{if(/^https?:\/\//i.test(e)){let t=new URL(e);return f.extname(t.pathname).toLowerCase()||void 0}}catch{}return f.extname(e).toLowerCase()||void 0}}function si(e){let t=X(e);return t?ai.has(t):!1}function ci(e){return ui(e)}function li(e){if(!e)return!0;let t=e.toLowerCase();return t===`application/octet-stream`||t===`application/zip`}async function ui(e){let t=X(e.filePath),n=t?ii[t]:void 0,r=Y(e.headerMime),i=await oi(e.buffer);if(i&&(!li(i)||!n))return i;if(n)return n;if(r&&!li(r))return r;if(i)return i;if(r)return r}function di(e){let t=Y(e);if(t)return ri[t]}function fi(e){return e.contentType?.toLowerCase()===`image/gif`?!0:X(e.fileName)===`.gif`}function pi(e){if(e)switch(e.toLowerCase()){case`jpg`:case`jpeg`:return`image/jpeg`;case`heic`:return`image/heic`;case`heif`:return`image/heif`;case`png`:return`image/png`;case`webp`:return`image/webp`;case`gif`:return`image/gif`;default:return}}function mi(e){return ti(Y(e))}function Z(e){try{return ee(e).isFile()}catch{return!1}}function hi(e,t){if(e.includes(`/`)||e.includes(`\\`)||f.isAbsolute(e))return e;let n=(t.PATH??t.Path??process.env.PATH??process.env.Path??``).split(`;`).map(e=>e.trim()).filter(Boolean),r=f.extname(e).length>0,i=t.PATHEXT??t.Pathext??process.env.PATHEXT??process.env.Pathext??`.EXE;.CMD;.BAT;.COM`,a=r?[``]:i.split(`;`).map(e=>e.trim()).filter(Boolean).map(e=>e.startsWith(`.`)?e:`.${e}`);for(let t of n)for(let n of a)for(let r of[n,n.toLowerCase(),n.toUpperCase()]){let n=f.join(t,`${e}${r}`);if(Z(n))return n}return e}function gi(e){if(!Z(e))return null;try{let t=d(e,`utf8`),n=[];for(let r of t.matchAll(/"([^"\r\n]*)"/g)){let t=(r[1]??``).match(/%~?dp0%?\s*[\\/]*(.*)$/i)?.[1]?.trim();if(!t)continue;let i=t.replace(/[\\/]+/g,f.sep).replace(/^[\\/]+/,``),a=f.resolve(f.dirname(e),i);Z(a)&&n.push(a)}return n.find(e=>{let t=f.basename(e).toLowerCase();return t!==`node.exe`&&t!==`node`})??null}catch{return null}}function _i(e,t){if(typeof t==`string`)return t.trim()||null;if(!t||typeof t!=`object`)return null;if(e){let n=t[e];if(typeof n==`string`&&n.trim())return n.trim()}for(let e of Object.values(t))if(typeof e==`string`&&e.trim())return e.trim();return null}function vi(e,t){if(!t)return null;let n=f.dirname(e),r=[f.resolve(n,`..`,t),f.resolve(n,`node_modules`,t)];for(let e of r){let n=f.join(e,`package.json`);if(Z(n))try{let r=_i(t,JSON.parse(d(n,`utf8`)).bin);if(!r)continue;let i=f.resolve(e,r);if(Z(i))return i}catch{}}return null}function yi(e){let t=e.platform??process.platform,n=e.env??process.env,r=e.execPath??process.execPath;if(t!==`win32`)return{command:e.command,leadingArgv:[],resolution:`direct`};let i=hi(e.command,n),a=f.extname(i).toLowerCase();if(a===`.js`||a===`.cjs`||a===`.mjs`)return{command:r,leadingArgv:[i],resolution:`node-entrypoint`,windowsHide:!0};if(a===`.cmd`||a===`.bat`){let t=gi(i)??vi(i,e.packageName);return t?f.extname(t).toLowerCase()===`.exe`?{command:t,leadingArgv:[],resolution:`exe-entrypoint`,windowsHide:!0}:{command:r,leadingArgv:[t],resolution:`node-entrypoint`,windowsHide:!0}:{command:i,leadingArgv:[],resolution:`unresolved-wrapper`}}return{command:i,leadingArgv:[],resolution:`direct`}}function bi(e){if(e.candidate.resolution!==`unresolved-wrapper`)return{command:e.candidate.command,leadingArgv:e.candidate.leadingArgv,resolution:e.candidate.resolution,windowsHide:e.candidate.windowsHide};if(e.allowShellFallback!==!1)return{command:e.candidate.command,leadingArgv:[],resolution:`shell-fallback`,shell:!0};throw Error(`${f.basename(e.candidate.command)} wrapper resolved, but no executable/Node entrypoint could be resolved without shell execution.`)}function xi(e){return bi({candidate:yi(e),allowShellFallback:e.allowShellFallback})}function Si(e,t){return{command:e.command,argv:[...e.leadingArgv,...t],resolution:e.resolution,shell:e.shell,windowsHide:e.windowsHide}}function Q(n,r=process.env,i=()=>t(r,p.homedir)){let a=e(r,i),o=S(n??`main`);return f.join(a,`agents`,o,`sessions`)}function Ci(e,n=process.env,r=()=>t(n,p.homedir)){return Q(e,n,r)}function wi(e){return f.join(Q(e),`sessions.json`)}function Ti(e){let t=e.agentId?.trim(),n=e.storePath?.trim();if(n&&n!==`(multiple)`){let e=f.dirname(f.resolve(n));return t?{sessionsDir:e,agentId:t}:{sessionsDir:e}}if(t)return{agentId:t}}const Ei=/^[a-z0-9][a-z0-9._-]{0,127}$/i;function Di(e){let t=e.trim();if(!Ei.test(t))throw Error(`Invalid session ID: ${e}`);return t}function Oi(e){let t=e?.sessionsDir?.trim();return t?f.resolve(t):Q(e?.agentId)}function ki(e,t){let n=$(f.resolve(e))??f.resolve(e),r=$(t)??t,i=f.relative(n,r);if(!(!i||i.startsWith(`..`)||f.isAbsolute(i)))return f.resolve(n,i)}function Ai(e,t){let n=f.resolve(e);if(f.basename(n)!==`sessions`)return;let r=f.dirname(n),i=f.dirname(r);if(f.basename(i)!==`agents`)return;let a=f.dirname(i);return f.join(a,`agents`,S(t),`sessions`)}function ji(e){let t=f.normalize(f.resolve(e)).split(f.sep).filter(Boolean),n=t.lastIndexOf(`sessions`);return n<2||t[n-2]!==`agents`?null:{parts:t,sessionsIndex:n}}function Mi(e){let t=ji(e);if(!t)return;let{parts:n,sessionsIndex:r}=t;return n[r-1]||void 0}function Ni(e,t){let n=ji(e);if(!n)return;let{parts:r,sessionsIndex:i}=n,a=r[i-1];if(!a)return;let o=S(a);if(o!==a.toLowerCase()||o!==S(t))return;let s=r.slice(i+1);if(s.length!==1)return;let c=s[0];if(!(!c||c===`.`||c===`..`))return f.normalize(f.resolve(e))}function $(e){try{return l.realpathSync(e)}catch{return}}function Pi(e,t,n){let r=t.trim();if(!r)throw Error(`Session file path must not be empty`);let i=f.resolve(e),a=$(i)??i,o=f.isAbsolute(r)?$(r)??r:r,s=f.isAbsolute(o)?f.relative(a,o):o;if(s.startsWith(`..`)&&f.isAbsolute(o)){let e=e=>{let t=S(e),n=Ai(a,t);if(n){let e=ki(n,o);if(e)return e}return ki(Q(t),o)},t=n?.agentId?.trim();if(t){let n=e(t);if(n)return n}let r=Mi(o);if(r){let t=e(r);if(t)return t;let n=Ni(o,r);if(n)return n}}if(!s||s.startsWith(`..`)||f.isAbsolute(s))throw Error(`Session file path must be within sessions directory`);return f.resolve(a,s)}function Fi(e,t,n){let r=Di(e),i=typeof n==`string`?encodeURIComponent(n):typeof n==`number`?String(n):void 0;return Pi(t,i===void 0?`${r}.jsonl`:`${r}-topic-${i}.jsonl`)}function Ii(e,t,n){return Fi(e,Q(t),n)}function Li(e,t,n){let r=Oi(n),i=t?.sessionFile?.trim();if(i)try{return Pi(r,i,{agentId:n?.agentId})}catch{}return Fi(e,r)}function Ri(e,r){let i=S(r?.agentId??`main`);if(!e)return wi(i);if(e.includes(`{agentId}`)){let r=e.replaceAll(`{agentId}`,i);return r.startsWith(`~`)?f.resolve(n(r,{home:t(process.env,p.homedir),env:process.env,homedir:p.homedir})):f.resolve(r)}return e.startsWith(`~`)?f.resolve(n(e,{home:t(process.env,p.homedir),env:process.env,homedir:p.homedir})):f.resolve(e)}export{Pn as $,le as $t,Lr as A,b as At,rr as B,ze as Bt,ti as C,Ke as Ct,zr as D,Ve as Dt,qr as E,We as Et,Cr as F,Me as Ft,qn as G,Se as Gt,Wn as H,ke as Ht,yr as I,Ne as It,Kn as J,oe as Jt,Bn as K,de as Kt,_r as L,S as Lt,Jr as M,Fe as Mt,Kr as N,Ie as Nt,Ir as O,Be as Ot,Sr as P,Re as Pt,Fn as Q,v as Qt,vr as R,Ae as Rt,ni as S,qe as St,Gr as T,Ue as Tt,Mn as U,fe as Ut,Jn as V,Pe as Vt,V as W,xe as Wt,Gn as X,ie as Xt,Nn as Y,se as Yt,Un as Z,ae as Zt,si as _,O as _t,Fi as a,M as at,Y as b,w as bt,bi as c,Cn as ct,xi as d,on as dt,j as et,yi as f,sn as ft,pi as g,Ht as gt,X as h,Gt as ht,Ii as i,P as it,Br as j,we as jt,J as k,He as kt,Si as l,Dn as lt,di as m,Jt as mt,Li as n,L as nt,Ci as o,N as ot,ci as p,Wt as pt,Ln as q,y as qt,Ti as r,I as rt,Ri as s,F as st,wi as t,fn as tt,hi as u,Tn as ut,fi as v,E as vt,U as w,Ge as wt,$r as x,Xe as xt,mi as y,C as yt,ar as z,je as zt};
6
- //# sourceMappingURL=paths-J4JUiRsa.js.map
@@ -3,4 +3,3 @@ import{J as e,O as t,_ as n,g as r,i,y as a}from"./logger-vBDTZWl3.js";import{c
3
3
  `);function wr(e){let t=e.trim().split(/\r?\n/).map(e=>e.trim()).filter(Boolean).at(-1);if(!t)throw Error(`Pinned write helper returned no identity`);let[n,r]=t.split(`|`),i=Number.parseInt(n??``,10),a=Number.parseInt(r??``,10);if(!Number.isFinite(i)||!Number.isFinite(a))throw Error(`Pinned write helper returned invalid identity: ${t}`);return{dev:i,ino:a}}async function Tr(e){let t=ne(`python3`,[`-c`,Cr,e.rootPath,e.relativeParentPath,e.basename,e.mkdir?`1`:`0`,(e.mode||384).toString(8)],{stdio:[`pipe`,`pipe`,`pipe`]}),n=``,r=``;t.stdout.setEncoding?.(`utf8`),t.stderr.setEncoding?.(`utf8`),t.stdout.on(`data`,e=>{n+=e}),t.stderr.on(`data`,e=>{r+=e});let i=g(t,`close`);try{if(!t.stdin){let t=await Er(e);return await i.catch(()=>{}),t}if(e.input.kind===`buffer`){let n=e.input;await new Promise((e,r)=>{if(t.stdin.once(`error`,r),typeof n.data==`string`){t.stdin.end(n.data,n.encoding??`utf8`,()=>e());return}t.stdin.end(n.data,()=>e())})}else await _(e.input.stream,t.stdin);let[a,o]=await i;if(a!==0)throw Error(r.trim()||`Pinned write helper failed with code ${a??`null`} (${o??`?`})`);return wr(n)}catch(e){throw t.kill(`SIGKILL`),await i.catch(()=>{}),e}}async function Er(e){let t=e.relativeParentPath?l.join(e.rootPath,...e.relativeParentPath.split(`/`)):e.rootPath;e.mkdir&&await m.mkdir(t,{recursive:!0});let n=l.join(t,e.basename),r=l.join(t,`.${e.basename}.fallback.tmp`);if(e.input.kind===`buffer`)typeof e.input.data==`string`?await m.writeFile(r,e.input.data,{encoding:e.input.encoding??`utf8`,mode:e.mode}):await m.writeFile(r,e.input.data,{mode:e.mode});else{let t=await m.open(r,`w`,e.mode);try{await _(e.input.stream,t.createWriteStream())}finally{await t.close().catch(()=>{})}}await m.rename(r,n);let i=await m.stat(n);return{dev:i.dev,ino:i.ino}}var W=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`SafeOpenError`}};const G=process.platform!==`win32`&&`O_NOFOLLOW`in d,Dr=d.O_RDONLY|(G?d.O_NOFOLLOW:0),Or=d.O_WRONLY|(G?d.O_NOFOLLOW:0),kr=d.O_WRONLY|d.O_CREAT|d.O_EXCL|(G?d.O_NOFOLLOW:0),Ar=d.O_RDWR|d.O_APPEND|(G?d.O_NOFOLLOW:0),jr=d.O_RDWR|d.O_APPEND|d.O_CREAT|d.O_EXCL|(G?d.O_NOFOLLOW:0),Mr=e=>e.endsWith(l.sep)?e:e+l.sep;async function Nr(e){let t=process.env.HOME||process.env.USERPROFILE||p.homedir();try{t=await m.realpath(t)}catch{}return c(e,{home:t})}async function K(e,t){try{if((await m.lstat(e)).isDirectory())throw new W(`not-file`,`not a file`)}catch(e){if(e instanceof W)throw e}let n;try{n=await m.open(e,Dr)}catch(e){throw T(e)?new W(`not-found`,`file not found`):rt(e)?new W(`symlink`,`symlink open blocked`,{cause:e}):nt(e,`EISDIR`)?new W(`not-file`,`not a file`):e}try{let[r,i]=await Promise.all([n.stat(),m.lstat(e)]);if(i.isSymbolicLink())throw new W(`symlink`,`symlink not allowed`);if(!r.isFile())throw new W(`not-file`,`not a file`);if(t?.rejectHardlinks&&r.nlink>1)throw new W(`invalid-path`,`hardlinked path not allowed`);if(!w(r,i))throw new W(`path-mismatch`,`path changed during read`);let a=await m.realpath(e),o=await m.stat(a);if(t?.rejectHardlinks&&o.nlink>1)throw new W(`invalid-path`,`hardlinked path not allowed`);if(!w(r,o))throw new W(`path-mismatch`,`path mismatch`);return{handle:n,realPath:a,stat:r}}catch(e){throw await n.close().catch(()=>{}),e instanceof W?e:T(e)?new W(`not-found`,`file not found`):e}}async function Pr(e){let t;try{t=await m.realpath(e.rootDir)}catch(e){throw T(e)?new W(`not-found`,`root dir not found`):e}let n=Mr(t),r=await Nr(e.relativePath),i=l.resolve(n,r);if(!E(n,i))throw new W(`outside-workspace`,`file is outside workspace root`);return{rootReal:t,rootWithSep:n,resolved:i}}async function Fr(e){let{rootWithSep:t,resolved:n}=await Pr(e),r;try{r=await K(n)}catch(e){throw e instanceof W?e.code===`not-found`?e:new W(`invalid-path`,`path is not a regular file under root`,{cause:e}):e}if(e.rejectHardlinks!==!1&&r.stat.nlink>1)throw await r.handle.close().catch(()=>{}),new W(`invalid-path`,`hardlinked path not allowed`);if(!E(t,r.realPath))throw await r.handle.close().catch(()=>{}),new W(`outside-workspace`,`file is outside workspace root`);return r}async function Ir(e){let t=await Fr({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:e.rejectHardlinks});try{return await Br({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function Lr(e){let t=l.resolve(e.rootDir),n=l.isAbsolute(e.filePath)?l.resolve(e.filePath):l.resolve(t,e.filePath);return await Ir({rootDir:t,relativePath:l.relative(t,n),rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})}function Rr(e){let t=l.resolve(e.rootDir);return async n=>(await Lr({rootDir:t,filePath:n,rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})).buffer}async function zr(e){let t=await K(e.filePath);try{return await Br({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function Br(e){if(e.maxBytes!==void 0&&e.opened.stat.size>e.maxBytes)throw new W(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${e.opened.stat.size})`);return{buffer:await e.opened.handle.readFile(),realPath:e.opened.realPath,stat:e.opened.stat}}function q(e){i(`security: fs-safe write boundary warning (${e})`)}function Vr(e){let t=l.dirname(e),n=l.basename(e);return l.join(t,`.${n}.${process.pid}.${te()}.tmp`)}async function Hr(e){let t=await m.open(e.tempPath,kr,e.mode);try{return typeof e.data==`string`?await t.writeFile(e.data,e.encoding??`utf8`):await t.writeFile(e.data),await t.stat()}finally{await t.close().catch(()=>{})}}async function J(e){let t=Mr(await m.realpath(e.rootDir)),n=await K(e.targetPath,{rejectHardlinks:!0});try{if(!w(n.stat,e.expectedIdentity))throw new W(`path-mismatch`,`path changed during write`);if(!E(t,n.realPath))throw new W(`outside-workspace`,`file is outside workspace root`)}finally{await n.handle.close().catch(()=>{})}}async function Ur(e,t){try{return await m.realpath(t)}catch(e){if(!T(e))throw e}let n=process.platform===`linux`?[`/proc/self/fd/${e.fd}`,`/dev/fd/${e.fd}`]:process.platform===`win32`?[]:[`/dev/fd/${e.fd}`];for(let e of n)try{return await m.realpath(e)}catch{}throw new W(`path-mismatch`,`unable to resolve opened file path`)}async function Wr(e){let{rootReal:t,rootWithSep:n,resolved:r}=await Pr(e);try{await Sr({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new W(`invalid-path`,`path alias escape blocked`,{cause:e})}e.mkdir!==!1&&await m.mkdir(l.dirname(r),{recursive:!0});let i=r;try{let e=await m.realpath(r);if(!E(n,e))throw new W(`outside-workspace`,`file is outside workspace root`);i=e}catch(e){if(e instanceof W||!T(e))throw e}let a=e.mode??384,o,s=!1,c=e.append?Ar:Or,u=e.append?jr:kr;try{try{o=await m.open(i,c,a)}catch(e){if(!T(e))throw e;o=await m.open(i,u,a),s=!0}}catch(e){throw T(e)?new W(`not-found`,`file not found`):rt(e)?new W(`invalid-path`,`symlink open blocked`,{cause:e}):e}let d=null;try{let t=await o.stat();if(!t.isFile())throw new W(`invalid-path`,`path is not a regular file under root`);if(t.nlink>1)throw new W(`invalid-path`,`hardlinked path not allowed`);try{let e=await m.lstat(i);if(e.isSymbolicLink()||!e.isFile())throw new W(`invalid-path`,`path is not a regular file under root`);if(!w(t,e))throw new W(`path-mismatch`,`path changed during write`)}catch(e){if(!T(e))throw e}let r=await Ur(o,i);d=r;let a=await m.stat(r);if(!w(t,a))throw new W(`path-mismatch`,`path mismatch`);if(a.nlink>1)throw new W(`invalid-path`,`hardlinked path not allowed`);if(!E(n,r))throw new W(`outside-workspace`,`file is outside workspace root`);return e.append!==!0&&e.truncateExisting!==!1&&!s&&await o.truncate(0),{handle:o,createdForWrite:s,openedRealPath:r,openedStat:t}}catch(e){let t=s&&e instanceof W,n=d??i;throw await o.close().catch(()=>{}),t&&await m.rm(n,{force:!0}).catch(()=>{}),e}}async function Gr(e){let t=await Wr({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1,append:!0});try{let n=``;if(e.prependNewlineIfNeeded===!0&&!t.createdForWrite&&t.openedStat.size>0&&(typeof e.data==`string`&&!e.data.startsWith(`
4
4
  `)||Buffer.isBuffer(e.data)&&e.data.length>0&&e.data[0]!==10)){let e=Buffer.alloc(1),{bytesRead:r}=await t.handle.read(e,0,1,t.openedStat.size-1);r===1&&e[0]!==10&&(n=`
5
5
  `)}if(typeof e.data==`string`){await t.handle.appendFile(`${n}${e.data}`,e.encoding??`utf8`);return}let r=n.length>0?Buffer.concat([Buffer.from(n,`utf8`),e.data]):e.data;await t.handle.appendFile(r)}finally{await t.handle.close().catch(()=>{})}}async function Kr(e){if(process.platform===`win32`){await Zr(e);return}let t=await Yr({rootDir:e.rootDir,relativePath:e.relativePath}),n=await Tr({rootPath:t.rootReal,relativeParentPath:t.relativeParentPath,basename:t.basename,mkdir:e.mkdir!==!1,mode:t.mode,input:{kind:`buffer`,data:e.data,encoding:e.encoding}}).catch(e=>{throw Xr(e)});try{await J({rootDir:e.rootDir,targetPath:t.targetPath,expectedIdentity:n})}catch(e){throw q(`post-write verification failed: ${String(e)}`),e}}async function qr(e){let t=await K(e.sourcePath,{rejectHardlinks:e.rejectSourceHardlinks});if(e.maxBytes!==void 0&&t.stat.size>e.maxBytes)throw await t.handle.close().catch(()=>{}),new W(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${t.stat.size})`);try{if(process.platform===`win32`){await Qr(e,t);return}let n=await Yr({rootDir:e.rootDir,relativePath:e.relativePath}),r=t.handle.createReadStream(),i=await Tr({rootPath:n.rootReal,relativeParentPath:n.relativeParentPath,basename:n.basename,mkdir:e.mkdir!==!1,mode:n.mode,input:{kind:`stream`,stream:r}}).catch(e=>{throw Xr(e)});try{await J({rootDir:e.rootDir,targetPath:n.targetPath,expectedIdentity:i})}catch(e){throw q(`post-copy verification failed: ${String(e)}`),e}}finally{await t.handle.close().catch(()=>{})}}async function Jr(e){await qr({sourcePath:e.sourcePath,rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,rejectSourceHardlinks:!0})}async function Yr(e){let{rootReal:t,rootWithSep:n,resolved:r}=await Pr(e);try{await Sr({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new W(`invalid-path`,`path alias escape blocked`,{cause:e})}let i=l.relative(t,r);if(i.startsWith(`..`)||l.isAbsolute(i))throw new W(`outside-workspace`,`file is outside workspace root`);let a=i?i.split(l.sep).join(l.posix.sep):``,o=l.posix.basename(a);if(!o||o===`.`||o===`/`)throw new W(`invalid-path`,`invalid target path`);let s=384;try{let t=await Fr({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:!0});try{if(s=t.stat.mode&511,!E(n,t.realPath))throw new W(`outside-workspace`,`file is outside workspace root`)}finally{await t.handle.close().catch(()=>{})}}catch(e){if(!(e instanceof W)||e.code!==`not-found`)throw e}return{rootReal:t,targetPath:r,relativeParentPath:l.posix.dirname(a)===`.`?``:l.posix.dirname(a),basename:o,mode:s||384}}function Xr(e){return e instanceof W?e:new W(`invalid-path`,`path is not a regular file under root`,{cause:e instanceof Error?e:void 0})}async function Zr(e){let t=await Wr({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1}),n=t.openedRealPath,r=t.openedStat.mode&511;await t.handle.close().catch(()=>{});let i=null;try{i=Vr(n);let t=await Hr({tempPath:i,data:e.data,encoding:e.encoding,mode:r||384});await m.rename(i,n),i=null;try{await J({rootDir:e.rootDir,targetPath:n,expectedIdentity:t})}catch(e){throw q(`post-write verification failed: ${String(e)}`),e}}finally{i&&await m.rm(i,{force:!0}).catch(()=>{})}}async function Qr(e,t){let n=null,r=!1,i=!1,a=null,o=null,s=!1;try{n=await Wr({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1});let c=n.openedRealPath,l=n.openedStat.mode&511;await n.handle.close().catch(()=>{}),i=!0,o=Vr(c),a=await m.open(o,kr,l||384);let u=t.handle.createReadStream(),d=a.createWriteStream();u.once(`close`,()=>{r=!0}),d.once(`close`,()=>{s=!0}),await import(`node:stream/promises`).then(({pipeline:e})=>e(u,d));let f=await m.stat(o);s||=(await a.close().catch(()=>{}),!0),a=null,await m.rename(o,c),o=null;try{await J({rootDir:e.rootDir,targetPath:c,expectedIdentity:f})}catch(e){throw q(`post-copy verification failed: ${String(e)}`),e}}catch(e){throw n?.createdForWrite&&await m.rm(n.openedRealPath,{force:!0}).catch(()=>{}),e}finally{o&&await m.rm(o,{force:!0}).catch(()=>{}),r||await t.handle.close().catch(()=>{}),a&&!s&&await a.close().catch(()=>{}),n&&!i&&await n.handle.close().catch(()=>{})}}const $r=6*1024*1024,ei=100*1024*1024;function ti(e){if(e){if(e.startsWith(`image/`))return`image`;if(e.startsWith(`audio/`))return`audio`;if(e.startsWith(`video/`))return`video`;if(e===`application/pdf`||e.startsWith(`text/`)||e.startsWith(`application/`))return`document`}}function ni(e){switch(e){case`image`:return $r;case`audio`:return 16777216;case`video`:return 16777216;case`document`:return ei;default:return ei}}const ri={"image/heic":`.heic`,"image/heif":`.heif`,"image/jpeg":`.jpg`,"image/png":`.png`,"image/webp":`.webp`,"image/gif":`.gif`,"audio/ogg":`.ogg`,"audio/mpeg":`.mp3`,"audio/wav":`.wav`,"audio/flac":`.flac`,"audio/aac":`.aac`,"audio/opus":`.opus`,"audio/x-m4a":`.m4a`,"audio/mp4":`.m4a`,"video/mp4":`.mp4`,"video/quicktime":`.mov`,"application/pdf":`.pdf`,"application/json":`.json`,"application/zip":`.zip`,"application/gzip":`.gz`,"application/x-tar":`.tar`,"application/x-7z-compressed":`.7z`,"application/vnd.rar":`.rar`,"application/msword":`.doc`,"application/vnd.ms-excel":`.xls`,"application/vnd.ms-powerpoint":`.ppt`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`.docx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`.xlsx`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`.pptx`,"text/csv":`.csv`,"text/plain":`.txt`,"text/markdown":`.md`},ii={...Object.fromEntries(Object.entries(ri).map(([e,t])=>[t,e])),".jpeg":`image/jpeg`,".js":`text/javascript`},ai=new Set([`.aac`,`.caf`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`]);function Y(e){if(e)return e.split(`;`)[0]?.trim().toLowerCase()||void 0}async function oi(e){if(e)try{return(await v(e))?.mime??void 0}catch{return}}function X(e){if(e){try{if(/^https?:\/\//i.test(e)){let t=new URL(e);return l.extname(t.pathname).toLowerCase()||void 0}}catch{}return l.extname(e).toLowerCase()||void 0}}function si(e){let t=X(e);return t?ai.has(t):!1}function ci(e){return ui(e)}function li(e){if(!e)return!0;let t=e.toLowerCase();return t===`application/octet-stream`||t===`application/zip`}async function ui(e){let t=X(e.filePath),n=t?ii[t]:void 0,r=Y(e.headerMime),i=await oi(e.buffer);if(i&&(!li(i)||!n))return i;if(n)return n;if(r&&!li(r))return r;if(i)return i;if(r)return r}function di(e){let t=Y(e);if(t)return ri[t]}function fi(e){return e.contentType?.toLowerCase()===`image/gif`?!0:X(e.fileName)===`.gif`}function pi(e){if(e)switch(e.toLowerCase()){case`jpg`:case`jpeg`:return`image/jpeg`;case`heic`:return`image/heic`;case`heif`:return`image/heif`;case`png`:return`image/png`;case`webp`:return`image/webp`;case`gif`:return`image/gif`;default:return}}function mi(e){return ti(Y(e))}function Z(e){try{return ee(e).isFile()}catch{return!1}}function hi(e,t){if(e.includes(`/`)||e.includes(`\\`)||l.isAbsolute(e))return e;let n=(t.PATH??t.Path??process.env.PATH??process.env.Path??``).split(`;`).map(e=>e.trim()).filter(Boolean),r=l.extname(e).length>0,i=t.PATHEXT??t.Pathext??process.env.PATHEXT??process.env.Pathext??`.EXE;.CMD;.BAT;.COM`,a=r?[``]:i.split(`;`).map(e=>e.trim()).filter(Boolean).map(e=>e.startsWith(`.`)?e:`.${e}`);for(let t of n)for(let n of a)for(let r of[n,n.toLowerCase(),n.toUpperCase()]){let n=l.join(t,`${e}${r}`);if(Z(n))return n}return e}function gi(e){if(!Z(e))return null;try{let t=f(e,`utf8`),n=[];for(let r of t.matchAll(/"([^"\r\n]*)"/g)){let t=(r[1]??``).match(/%~?dp0%?\s*[\\/]*(.*)$/i)?.[1]?.trim();if(!t)continue;let i=t.replace(/[\\/]+/g,l.sep).replace(/^[\\/]+/,``),a=l.resolve(l.dirname(e),i);Z(a)&&n.push(a)}return n.find(e=>{let t=l.basename(e).toLowerCase();return t!==`node.exe`&&t!==`node`})??null}catch{return null}}function _i(e,t){if(typeof t==`string`)return t.trim()||null;if(!t||typeof t!=`object`)return null;if(e){let n=t[e];if(typeof n==`string`&&n.trim())return n.trim()}for(let e of Object.values(t))if(typeof e==`string`&&e.trim())return e.trim();return null}function vi(e,t){if(!t)return null;let n=l.dirname(e),r=[l.resolve(n,`..`,t),l.resolve(n,`node_modules`,t)];for(let e of r){let n=l.join(e,`package.json`);if(Z(n))try{let r=_i(t,JSON.parse(f(n,`utf8`)).bin);if(!r)continue;let i=l.resolve(e,r);if(Z(i))return i}catch{}}return null}function yi(e){let t=e.platform??process.platform,n=e.env??process.env,r=e.execPath??process.execPath;if(t!==`win32`)return{command:e.command,leadingArgv:[],resolution:`direct`};let i=hi(e.command,n),a=l.extname(i).toLowerCase();if(a===`.js`||a===`.cjs`||a===`.mjs`)return{command:r,leadingArgv:[i],resolution:`node-entrypoint`,windowsHide:!0};if(a===`.cmd`||a===`.bat`){let t=gi(i)??vi(i,e.packageName);return t?l.extname(t).toLowerCase()===`.exe`?{command:t,leadingArgv:[],resolution:`exe-entrypoint`,windowsHide:!0}:{command:r,leadingArgv:[t],resolution:`node-entrypoint`,windowsHide:!0}:{command:i,leadingArgv:[],resolution:`unresolved-wrapper`}}return{command:i,leadingArgv:[],resolution:`direct`}}function bi(e){if(e.candidate.resolution!==`unresolved-wrapper`)return{command:e.candidate.command,leadingArgv:e.candidate.leadingArgv,resolution:e.candidate.resolution,windowsHide:e.candidate.windowsHide};if(e.allowShellFallback!==!1)return{command:e.candidate.command,leadingArgv:[],resolution:`shell-fallback`,shell:!0};throw Error(`${l.basename(e.candidate.command)} wrapper resolved, but no executable/Node entrypoint could be resolved without shell execution.`)}function xi(e){return bi({candidate:yi(e),allowShellFallback:e.allowShellFallback})}function Si(e,t){return{command:e.command,argv:[...e.leadingArgv,...t],resolution:e.resolution,shell:e.shell,windowsHide:e.windowsHide}}function Q(e,t=process.env,n=()=>s(t,p.homedir)){let r=o(t,n),i=C(e??`main`);return l.join(r,`agents`,i,`sessions`)}function Ci(e,t=process.env,n=()=>s(t,p.homedir)){return Q(e,t,n)}function wi(e){return l.join(Q(e),`sessions.json`)}function Ti(e){let t=e.agentId?.trim(),n=e.storePath?.trim();if(n&&n!==`(multiple)`){let e=l.dirname(l.resolve(n));return t?{sessionsDir:e,agentId:t}:{sessionsDir:e}}if(t)return{agentId:t}}const Ei=/^[a-z0-9][a-z0-9._-]{0,127}$/i;function Di(e){let t=e.trim();if(!Ei.test(t))throw Error(`Invalid session ID: ${e}`);return t}function Oi(e){let t=e?.sessionsDir?.trim();return t?l.resolve(t):Q(e?.agentId)}function ki(e,t){let n=$(l.resolve(e))??l.resolve(e),r=$(t)??t,i=l.relative(n,r);if(!(!i||i.startsWith(`..`)||l.isAbsolute(i)))return l.resolve(n,i)}function Ai(e,t){let n=l.resolve(e);if(l.basename(n)!==`sessions`)return;let r=l.dirname(n),i=l.dirname(r);if(l.basename(i)!==`agents`)return;let a=l.dirname(i);return l.join(a,`agents`,C(t),`sessions`)}function ji(e){let t=l.normalize(l.resolve(e)).split(l.sep).filter(Boolean),n=t.lastIndexOf(`sessions`);return n<2||t[n-2]!==`agents`?null:{parts:t,sessionsIndex:n}}function Mi(e){let t=ji(e);if(!t)return;let{parts:n,sessionsIndex:r}=t;return n[r-1]||void 0}function Ni(e,t){let n=ji(e);if(!n)return;let{parts:r,sessionsIndex:i}=n,a=r[i-1];if(!a)return;let o=C(a);if(o!==a.toLowerCase()||o!==C(t))return;let s=r.slice(i+1);if(s.length!==1)return;let c=s[0];if(!(!c||c===`.`||c===`..`))return l.normalize(l.resolve(e))}function $(e){try{return u.realpathSync(e)}catch{return}}function Pi(e,t,n){let r=t.trim();if(!r)throw Error(`Session file path must not be empty`);let i=l.resolve(e),a=$(i)??i,o=l.isAbsolute(r)?$(r)??r:r,s=l.isAbsolute(o)?l.relative(a,o):o;if(s.startsWith(`..`)&&l.isAbsolute(o)){let e=e=>{let t=C(e),n=Ai(a,t);if(n){let e=ki(n,o);if(e)return e}return ki(Q(t),o)},t=n?.agentId?.trim();if(t){let n=e(t);if(n)return n}let r=Mi(o);if(r){let t=e(r);if(t)return t;let n=Ni(o,r);if(n)return n}}if(!s||s.startsWith(`..`)||l.isAbsolute(s))throw Error(`Session file path must be within sessions directory`);return l.resolve(a,s)}function Fi(e,t,n){let r=Di(e),i=typeof n==`string`?encodeURIComponent(n):typeof n==`number`?String(n):void 0;return Pi(t,i===void 0?`${r}.jsonl`:`${r}-topic-${i}.jsonl`)}function Ii(e,t,n){return Fi(e,Q(t),n)}function Li(e,t,n){let r=Oi(n),i=t?.sessionFile?.trim();if(i)try{return Pi(r,i,{agentId:n?.agentId})}catch{}return Fi(e,r)}function Ri(e,t){let n=C(t?.agentId??`main`);if(!e)return wi(n);if(e.includes(`{agentId}`)){let t=e.replaceAll(`{agentId}`,n);return t.startsWith(`~`)?l.resolve(c(t,{home:s(process.env,p.homedir),env:process.env,homedir:p.homedir})):l.resolve(t)}return e.startsWith(`~`)?l.resolve(c(e,{home:s(process.env,p.homedir),env:process.env,homedir:p.homedir})):l.resolve(e)}export{L as $,xr as A,je as At,H as B,xe as Bt,qr as C,ze as Ct,zr as D,Pe as Dt,Ir as E,Ce as Et,ir as F,Re as Ft,Mn as G,re as Gt,zn as H,b as Ht,nr as I,Ne as It,Pn as J,ce as Jt,Wn as K,ie as Kt,qn as L,Oe as Lt,vr as M,C as Mt,gr as N,ke as Nt,Jr as O,Fe as Ot,_r as P,Ae as Pt,R as Q,Un as R,de as Rt,Gr as S,Ve as St,Fr as T,x as Tt,In as U,ae as Ut,Kn as V,ue as Vt,Gn as W,oe as Wt,M as X,Nn as Y,dn as Z,Y as _,Ye as _t,Fi as a,En as at,ti as b,Ke as bt,Si as c,on as ct,di as d,Wt as dt,F as et,X as f,O as ft,mi as g,Ze as gt,fi as h,et as ht,Ii as i,Sn as it,Sr as j,Me as jt,Kr as k,Le as kt,xi as l,Ut as lt,si as m,E as mt,Li as n,P as nt,Ci as o,wn as ot,pi as p,T as pt,Hn as q,y as qt,Ti as r,I as rt,Ri as s,an as st,wi as t,N as tt,ci as u,qt as ut,$r as v,Je as vt,Rr as w,Be as wt,W as x,He as xt,ni as y,Xe as yt,jn as z,be as zt};
6
- //# sourceMappingURL=paths-cBAF6Bj0.js.map
@@ -3,4 +3,3 @@ import{c as e,d as t,l as n}from"./paths-BpQOWYiT.js";import{J as r,O as i,_ as
3
3
  `);function Cr(e){let t=e.trim().split(/\r?\n/).map(e=>e.trim()).filter(Boolean).at(-1);if(!t)throw Error(`Pinned write helper returned no identity`);let[n,r]=t.split(`|`),i=Number.parseInt(n??``,10),a=Number.parseInt(r??``,10);if(!Number.isFinite(i)||!Number.isFinite(a))throw Error(`Pinned write helper returned invalid identity: ${t}`);return{dev:i,ino:a}}async function wr(e){let t=te(`python3`,[`-c`,Sr,e.rootPath,e.relativeParentPath,e.basename,e.mkdir?`1`:`0`,(e.mode||384).toString(8)],{stdio:[`pipe`,`pipe`,`pipe`]}),n=``,r=``;t.stdout.setEncoding?.(`utf8`),t.stderr.setEncoding?.(`utf8`),t.stdout.on(`data`,e=>{n+=e}),t.stderr.on(`data`,e=>{r+=e});let i=g(t,`close`);try{if(!t.stdin){let t=await Tr(e);return await i.catch(()=>{}),t}if(e.input.kind===`buffer`){let n=e.input;await new Promise((e,r)=>{if(t.stdin.once(`error`,r),typeof n.data==`string`){t.stdin.end(n.data,n.encoding??`utf8`,()=>e());return}t.stdin.end(n.data,()=>e())})}else await _(e.input.stream,t.stdin);let[a,o]=await i;if(a!==0)throw Error(r.trim()||`Pinned write helper failed with code ${a??`null`} (${o??`?`})`);return Cr(n)}catch(e){throw t.kill(`SIGKILL`),await i.catch(()=>{}),e}}async function Tr(e){let t=e.relativeParentPath?f.join(e.rootPath,...e.relativeParentPath.split(`/`)):e.rootPath;e.mkdir&&await m.mkdir(t,{recursive:!0});let n=f.join(t,e.basename),r=f.join(t,`.${e.basename}.fallback.tmp`);if(e.input.kind===`buffer`)typeof e.input.data==`string`?await m.writeFile(r,e.input.data,{encoding:e.input.encoding??`utf8`,mode:e.mode}):await m.writeFile(r,e.input.data,{mode:e.mode});else{let t=await m.open(r,`w`,e.mode);try{await _(e.input.stream,t.createWriteStream())}finally{await t.close().catch(()=>{})}}await m.rename(r,n);let i=await m.stat(n);return{dev:i.dev,ino:i.ino}}var G=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`SafeOpenError`}};const K=process.platform!==`win32`&&`O_NOFOLLOW`in u,Er=u.O_RDONLY|(K?u.O_NOFOLLOW:0),Dr=u.O_WRONLY|(K?u.O_NOFOLLOW:0),Or=u.O_WRONLY|u.O_CREAT|u.O_EXCL|(K?u.O_NOFOLLOW:0),kr=u.O_RDWR|u.O_APPEND|(K?u.O_NOFOLLOW:0),Ar=u.O_RDWR|u.O_APPEND|u.O_CREAT|u.O_EXCL|(K?u.O_NOFOLLOW:0),jr=e=>e.endsWith(f.sep)?e:e+f.sep;async function Mr(e){let t=process.env.HOME||process.env.USERPROFILE||p.homedir();try{t=await m.realpath(t)}catch{}return n(e,{home:t})}async function q(e,t){try{if((await m.lstat(e)).isDirectory())throw new G(`not-file`,`not a file`)}catch(e){if(e instanceof G)throw e}let n;try{n=await m.open(e,Er)}catch(e){throw T(e)?new G(`not-found`,`file not found`):Ze(e)?new G(`symlink`,`symlink open blocked`,{cause:e}):Xe(e,`EISDIR`)?new G(`not-file`,`not a file`):e}try{let[r,i]=await Promise.all([n.stat(),m.lstat(e)]);if(i.isSymbolicLink())throw new G(`symlink`,`symlink not allowed`);if(!r.isFile())throw new G(`not-file`,`not a file`);if(t?.rejectHardlinks&&r.nlink>1)throw new G(`invalid-path`,`hardlinked path not allowed`);if(!A(r,i))throw new G(`path-mismatch`,`path changed during read`);let a=await m.realpath(e),o=await m.stat(a);if(t?.rejectHardlinks&&o.nlink>1)throw new G(`invalid-path`,`hardlinked path not allowed`);if(!A(r,o))throw new G(`path-mismatch`,`path mismatch`);return{handle:n,realPath:a,stat:r}}catch(e){throw await n.close().catch(()=>{}),e instanceof G?e:T(e)?new G(`not-found`,`file not found`):e}}async function Nr(e){let t;try{t=await m.realpath(e.rootDir)}catch(e){throw T(e)?new G(`not-found`,`root dir not found`):e}let n=jr(t),r=await Mr(e.relativePath),i=f.resolve(n,r);if(!E(n,i))throw new G(`outside-workspace`,`file is outside workspace root`);return{rootReal:t,rootWithSep:n,resolved:i}}async function Pr(e){let{rootWithSep:t,resolved:n}=await Nr(e),r;try{r=await q(n)}catch(e){throw e instanceof G?e.code===`not-found`?e:new G(`invalid-path`,`path is not a regular file under root`,{cause:e}):e}if(e.rejectHardlinks!==!1&&r.stat.nlink>1)throw await r.handle.close().catch(()=>{}),new G(`invalid-path`,`hardlinked path not allowed`);if(!E(t,r.realPath))throw await r.handle.close().catch(()=>{}),new G(`outside-workspace`,`file is outside workspace root`);return r}async function Fr(e){let t=await Pr({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:e.rejectHardlinks});try{return await zr({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function Ir(e){let t=f.resolve(e.rootDir),n=f.isAbsolute(e.filePath)?f.resolve(e.filePath):f.resolve(t,e.filePath);return await Fr({rootDir:t,relativePath:f.relative(t,n),rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})}function Lr(e){let t=f.resolve(e.rootDir);return async n=>(await Ir({rootDir:t,filePath:n,rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})).buffer}async function Rr(e){let t=await q(e.filePath);try{return await zr({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function zr(e){if(e.maxBytes!==void 0&&e.opened.stat.size>e.maxBytes)throw new G(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${e.opened.stat.size})`);return{buffer:await e.opened.handle.readFile(),realPath:e.opened.realPath,stat:e.opened.stat}}function J(e){s(`security: fs-safe write boundary warning (${e})`)}function Br(e){let t=f.dirname(e),n=f.basename(e);return f.join(t,`.${n}.${process.pid}.${ne()}.tmp`)}async function Vr(e){let t=await m.open(e.tempPath,Or,e.mode);try{return typeof e.data==`string`?await t.writeFile(e.data,e.encoding??`utf8`):await t.writeFile(e.data),await t.stat()}finally{await t.close().catch(()=>{})}}async function Y(e){let t=jr(await m.realpath(e.rootDir)),n=await q(e.targetPath,{rejectHardlinks:!0});try{if(!A(n.stat,e.expectedIdentity))throw new G(`path-mismatch`,`path changed during write`);if(!E(t,n.realPath))throw new G(`outside-workspace`,`file is outside workspace root`)}finally{await n.handle.close().catch(()=>{})}}async function Hr(e,t){try{return await m.realpath(t)}catch(e){if(!T(e))throw e}let n=process.platform===`linux`?[`/proc/self/fd/${e.fd}`,`/dev/fd/${e.fd}`]:process.platform===`win32`?[]:[`/dev/fd/${e.fd}`];for(let e of n)try{return await m.realpath(e)}catch{}throw new G(`path-mismatch`,`unable to resolve opened file path`)}async function Ur(e){let{rootReal:t,rootWithSep:n,resolved:r}=await Nr(e);try{await xr({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new G(`invalid-path`,`path alias escape blocked`,{cause:e})}e.mkdir!==!1&&await m.mkdir(f.dirname(r),{recursive:!0});let i=r;try{let e=await m.realpath(r);if(!E(n,e))throw new G(`outside-workspace`,`file is outside workspace root`);i=e}catch(e){if(e instanceof G||!T(e))throw e}let a=e.mode??384,o,s=!1,c=e.append?kr:Dr,l=e.append?Ar:Or;try{try{o=await m.open(i,c,a)}catch(e){if(!T(e))throw e;o=await m.open(i,l,a),s=!0}}catch(e){throw T(e)?new G(`not-found`,`file not found`):Ze(e)?new G(`invalid-path`,`symlink open blocked`,{cause:e}):e}let u=null;try{let t=await o.stat();if(!t.isFile())throw new G(`invalid-path`,`path is not a regular file under root`);if(t.nlink>1)throw new G(`invalid-path`,`hardlinked path not allowed`);try{let e=await m.lstat(i);if(e.isSymbolicLink()||!e.isFile())throw new G(`invalid-path`,`path is not a regular file under root`);if(!A(t,e))throw new G(`path-mismatch`,`path changed during write`)}catch(e){if(!T(e))throw e}let r=await Hr(o,i);u=r;let a=await m.stat(r);if(!A(t,a))throw new G(`path-mismatch`,`path mismatch`);if(a.nlink>1)throw new G(`invalid-path`,`hardlinked path not allowed`);if(!E(n,r))throw new G(`outside-workspace`,`file is outside workspace root`);return e.append!==!0&&e.truncateExisting!==!1&&!s&&await o.truncate(0),{handle:o,createdForWrite:s,openedRealPath:r,openedStat:t}}catch(e){let t=s&&e instanceof G,n=u??i;throw await o.close().catch(()=>{}),t&&await m.rm(n,{force:!0}).catch(()=>{}),e}}async function Wr(e){let t=await Ur({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1,append:!0});try{let n=``;if(e.prependNewlineIfNeeded===!0&&!t.createdForWrite&&t.openedStat.size>0&&(typeof e.data==`string`&&!e.data.startsWith(`
4
4
  `)||Buffer.isBuffer(e.data)&&e.data.length>0&&e.data[0]!==10)){let e=Buffer.alloc(1),{bytesRead:r}=await t.handle.read(e,0,1,t.openedStat.size-1);r===1&&e[0]!==10&&(n=`
5
5
  `)}if(typeof e.data==`string`){await t.handle.appendFile(`${n}${e.data}`,e.encoding??`utf8`);return}let r=n.length>0?Buffer.concat([Buffer.from(n,`utf8`),e.data]):e.data;await t.handle.appendFile(r)}finally{await t.handle.close().catch(()=>{})}}async function Gr(e){if(process.platform===`win32`){await Xr(e);return}let t=await Jr({rootDir:e.rootDir,relativePath:e.relativePath}),n=await wr({rootPath:t.rootReal,relativeParentPath:t.relativeParentPath,basename:t.basename,mkdir:e.mkdir!==!1,mode:t.mode,input:{kind:`buffer`,data:e.data,encoding:e.encoding}}).catch(e=>{throw Yr(e)});try{await Y({rootDir:e.rootDir,targetPath:t.targetPath,expectedIdentity:n})}catch(e){throw J(`post-write verification failed: ${String(e)}`),e}}async function Kr(e){let t=await q(e.sourcePath,{rejectHardlinks:e.rejectSourceHardlinks});if(e.maxBytes!==void 0&&t.stat.size>e.maxBytes)throw await t.handle.close().catch(()=>{}),new G(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${t.stat.size})`);try{if(process.platform===`win32`){await Zr(e,t);return}let n=await Jr({rootDir:e.rootDir,relativePath:e.relativePath}),r=t.handle.createReadStream(),i=await wr({rootPath:n.rootReal,relativeParentPath:n.relativeParentPath,basename:n.basename,mkdir:e.mkdir!==!1,mode:n.mode,input:{kind:`stream`,stream:r}}).catch(e=>{throw Yr(e)});try{await Y({rootDir:e.rootDir,targetPath:n.targetPath,expectedIdentity:i})}catch(e){throw J(`post-copy verification failed: ${String(e)}`),e}}finally{await t.handle.close().catch(()=>{})}}async function qr(e){await Kr({sourcePath:e.sourcePath,rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,rejectSourceHardlinks:!0})}async function Jr(e){let{rootReal:t,rootWithSep:n,resolved:r}=await Nr(e);try{await xr({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new G(`invalid-path`,`path alias escape blocked`,{cause:e})}let i=f.relative(t,r);if(i.startsWith(`..`)||f.isAbsolute(i))throw new G(`outside-workspace`,`file is outside workspace root`);let a=i?i.split(f.sep).join(f.posix.sep):``,o=f.posix.basename(a);if(!o||o===`.`||o===`/`)throw new G(`invalid-path`,`invalid target path`);let s=384;try{let t=await Pr({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:!0});try{if(s=t.stat.mode&511,!E(n,t.realPath))throw new G(`outside-workspace`,`file is outside workspace root`)}finally{await t.handle.close().catch(()=>{})}}catch(e){if(!(e instanceof G)||e.code!==`not-found`)throw e}return{rootReal:t,targetPath:r,relativeParentPath:f.posix.dirname(a)===`.`?``:f.posix.dirname(a),basename:o,mode:s||384}}function Yr(e){return e instanceof G?e:new G(`invalid-path`,`path is not a regular file under root`,{cause:e instanceof Error?e:void 0})}async function Xr(e){let t=await Ur({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1}),n=t.openedRealPath,r=t.openedStat.mode&511;await t.handle.close().catch(()=>{});let i=null;try{i=Br(n);let t=await Vr({tempPath:i,data:e.data,encoding:e.encoding,mode:r||384});await m.rename(i,n),i=null;try{await Y({rootDir:e.rootDir,targetPath:n,expectedIdentity:t})}catch(e){throw J(`post-write verification failed: ${String(e)}`),e}}finally{i&&await m.rm(i,{force:!0}).catch(()=>{})}}async function Zr(e,t){let n=null,r=!1,i=!1,a=null,o=null,s=!1;try{n=await Ur({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1});let c=n.openedRealPath,l=n.openedStat.mode&511;await n.handle.close().catch(()=>{}),i=!0,o=Br(c),a=await m.open(o,Or,l||384);let u=t.handle.createReadStream(),d=a.createWriteStream();u.once(`close`,()=>{r=!0}),d.once(`close`,()=>{s=!0}),await import(`node:stream/promises`).then(({pipeline:e})=>e(u,d));let ee=await m.stat(o);s||=(await a.close().catch(()=>{}),!0),a=null,await m.rename(o,c),o=null;try{await Y({rootDir:e.rootDir,targetPath:c,expectedIdentity:ee})}catch(e){throw J(`post-copy verification failed: ${String(e)}`),e}}catch(e){throw n?.createdForWrite&&await m.rm(n.openedRealPath,{force:!0}).catch(()=>{}),e}finally{o&&await m.rm(o,{force:!0}).catch(()=>{}),r||await t.handle.close().catch(()=>{}),a&&!s&&await a.close().catch(()=>{}),n&&!i&&await n.handle.close().catch(()=>{})}}const Qr=6*1024*1024,$r=100*1024*1024;function ei(e){if(e){if(e.startsWith(`image/`))return`image`;if(e.startsWith(`audio/`))return`audio`;if(e.startsWith(`video/`))return`video`;if(e===`application/pdf`||e.startsWith(`text/`)||e.startsWith(`application/`))return`document`}}function ti(e){switch(e){case`image`:return Qr;case`audio`:return 16777216;case`video`:return 16777216;case`document`:return $r;default:return $r}}const ni={"image/heic":`.heic`,"image/heif":`.heif`,"image/jpeg":`.jpg`,"image/png":`.png`,"image/webp":`.webp`,"image/gif":`.gif`,"audio/ogg":`.ogg`,"audio/mpeg":`.mp3`,"audio/wav":`.wav`,"audio/flac":`.flac`,"audio/aac":`.aac`,"audio/opus":`.opus`,"audio/x-m4a":`.m4a`,"audio/mp4":`.m4a`,"video/mp4":`.mp4`,"video/quicktime":`.mov`,"application/pdf":`.pdf`,"application/json":`.json`,"application/zip":`.zip`,"application/gzip":`.gz`,"application/x-tar":`.tar`,"application/x-7z-compressed":`.7z`,"application/vnd.rar":`.rar`,"application/msword":`.doc`,"application/vnd.ms-excel":`.xls`,"application/vnd.ms-powerpoint":`.ppt`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`.docx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`.xlsx`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`.pptx`,"text/csv":`.csv`,"text/plain":`.txt`,"text/markdown":`.md`},ri={...Object.fromEntries(Object.entries(ni).map(([e,t])=>[t,e])),".jpeg":`image/jpeg`,".js":`text/javascript`},ii=new Set([`.aac`,`.caf`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`]);function X(e){if(e)return e.split(`;`)[0]?.trim().toLowerCase()||void 0}async function ai(e){if(e)try{return(await v(e))?.mime??void 0}catch{return}}function Z(e){if(e){try{if(/^https?:\/\//i.test(e)){let t=new URL(e);return f.extname(t.pathname).toLowerCase()||void 0}}catch{}return f.extname(e).toLowerCase()||void 0}}function oi(e){let t=Z(e);return t?ii.has(t):!1}function si(e){return li(e)}function ci(e){if(!e)return!0;let t=e.toLowerCase();return t===`application/octet-stream`||t===`application/zip`}async function li(e){let t=Z(e.filePath),n=t?ri[t]:void 0,r=X(e.headerMime),i=await ai(e.buffer);if(i&&(!ci(i)||!n))return i;if(n)return n;if(r&&!ci(r))return r;if(i)return i;if(r)return r}function ui(e){let t=X(e);if(t)return ni[t]}function di(e){return e.contentType?.toLowerCase()===`image/gif`?!0:Z(e.fileName)===`.gif`}function fi(e){if(e)switch(e.toLowerCase()){case`jpg`:case`jpeg`:return`image/jpeg`;case`heic`:return`image/heic`;case`heif`:return`image/heif`;case`png`:return`image/png`;case`webp`:return`image/webp`;case`gif`:return`image/gif`;default:return}}function pi(e){return ei(X(e))}function Q(e){try{return ee(e).isFile()}catch{return!1}}function mi(e,t){if(e.includes(`/`)||e.includes(`\\`)||f.isAbsolute(e))return e;let n=(t.PATH??t.Path??process.env.PATH??process.env.Path??``).split(`;`).map(e=>e.trim()).filter(Boolean),r=f.extname(e).length>0,i=t.PATHEXT??t.Pathext??process.env.PATHEXT??process.env.Pathext??`.EXE;.CMD;.BAT;.COM`,a=r?[``]:i.split(`;`).map(e=>e.trim()).filter(Boolean).map(e=>e.startsWith(`.`)?e:`.${e}`);for(let t of n)for(let n of a)for(let r of[n,n.toLowerCase(),n.toUpperCase()]){let n=f.join(t,`${e}${r}`);if(Q(n))return n}return e}function hi(e){if(!Q(e))return null;try{let t=d(e,`utf8`),n=[];for(let r of t.matchAll(/"([^"\r\n]*)"/g)){let t=(r[1]??``).match(/%~?dp0%?\s*[\\/]*(.*)$/i)?.[1]?.trim();if(!t)continue;let i=t.replace(/[\\/]+/g,f.sep).replace(/^[\\/]+/,``),a=f.resolve(f.dirname(e),i);Q(a)&&n.push(a)}return n.find(e=>{let t=f.basename(e).toLowerCase();return t!==`node.exe`&&t!==`node`})??null}catch{return null}}function gi(e,t){if(typeof t==`string`)return t.trim()||null;if(!t||typeof t!=`object`)return null;if(e){let n=t[e];if(typeof n==`string`&&n.trim())return n.trim()}for(let e of Object.values(t))if(typeof e==`string`&&e.trim())return e.trim();return null}function _i(e,t){if(!t)return null;let n=f.dirname(e),r=[f.resolve(n,`..`,t),f.resolve(n,`node_modules`,t)];for(let e of r){let n=f.join(e,`package.json`);if(Q(n))try{let r=gi(t,JSON.parse(d(n,`utf8`)).bin);if(!r)continue;let i=f.resolve(e,r);if(Q(i))return i}catch{}}return null}function vi(e){let t=e.platform??process.platform,n=e.env??process.env,r=e.execPath??process.execPath;if(t!==`win32`)return{command:e.command,leadingArgv:[],resolution:`direct`};let i=mi(e.command,n),a=f.extname(i).toLowerCase();if(a===`.js`||a===`.cjs`||a===`.mjs`)return{command:r,leadingArgv:[i],resolution:`node-entrypoint`,windowsHide:!0};if(a===`.cmd`||a===`.bat`){let t=hi(i)??_i(i,e.packageName);return t?f.extname(t).toLowerCase()===`.exe`?{command:t,leadingArgv:[],resolution:`exe-entrypoint`,windowsHide:!0}:{command:r,leadingArgv:[t],resolution:`node-entrypoint`,windowsHide:!0}:{command:i,leadingArgv:[],resolution:`unresolved-wrapper`}}return{command:i,leadingArgv:[],resolution:`direct`}}function yi(e){if(e.candidate.resolution!==`unresolved-wrapper`)return{command:e.candidate.command,leadingArgv:e.candidate.leadingArgv,resolution:e.candidate.resolution,windowsHide:e.candidate.windowsHide};if(e.allowShellFallback!==!1)return{command:e.candidate.command,leadingArgv:[],resolution:`shell-fallback`,shell:!0};throw Error(`${f.basename(e.candidate.command)} wrapper resolved, but no executable/Node entrypoint could be resolved without shell execution.`)}function bi(e){return yi({candidate:vi(e),allowShellFallback:e.allowShellFallback})}function xi(e,t){return{command:e.command,argv:[...e.leadingArgv,...t],resolution:e.resolution,shell:e.shell,windowsHide:e.windowsHide}}function $(n,r=process.env,i=()=>t(r,p.homedir)){let a=e(r,i),o=w(n??`main`);return f.join(a,`agents`,o,`sessions`)}function Si(e,n=process.env,r=()=>t(n,p.homedir)){return $(e,n,r)}function Ci(e){return f.join($(e),`sessions.json`)}function wi(e){let t=e.agentId?.trim(),n=e.storePath?.trim();if(n&&n!==`(multiple)`){let e=f.dirname(f.resolve(n));return t?{sessionsDir:e,agentId:t}:{sessionsDir:e}}if(t)return{agentId:t}}const Ti=/^[a-z0-9][a-z0-9._-]{0,127}$/i;function Ei(e){let t=e.trim();if(!Ti.test(t))throw Error(`Invalid session ID: ${e}`);return t}function Di(e){let t=e?.sessionsDir?.trim();return t?f.resolve(t):$(e?.agentId)}function Oi(e,t){let n=Ni(f.resolve(e))??f.resolve(e),r=Ni(t)??t,i=f.relative(n,r);if(!(!i||i.startsWith(`..`)||f.isAbsolute(i)))return f.resolve(n,i)}function ki(e,t){let n=f.resolve(e);if(f.basename(n)!==`sessions`)return;let r=f.dirname(n),i=f.dirname(r);if(f.basename(i)!==`agents`)return;let a=f.dirname(i);return f.join(a,`agents`,w(t),`sessions`)}function Ai(e){let t=f.normalize(f.resolve(e)).split(f.sep).filter(Boolean),n=t.lastIndexOf(`sessions`);return n<2||t[n-2]!==`agents`?null:{parts:t,sessionsIndex:n}}function ji(e){let t=Ai(e);if(!t)return;let{parts:n,sessionsIndex:r}=t;return n[r-1]||void 0}function Mi(e,t){let n=Ai(e);if(!n)return;let{parts:r,sessionsIndex:i}=n,a=r[i-1];if(!a)return;let o=w(a);if(o!==a.toLowerCase()||o!==w(t))return;let s=r.slice(i+1);if(s.length!==1)return;let c=s[0];if(!(!c||c===`.`||c===`..`))return f.normalize(f.resolve(e))}function Ni(e){try{return l.realpathSync(e)}catch{return}}function Pi(e,t,n){let r=t.trim();if(!r)throw Error(`Session file path must not be empty`);let i=f.resolve(e),a=Ni(i)??i,o=f.isAbsolute(r)?Ni(r)??r:r,s=f.isAbsolute(o)?f.relative(a,o):o;if(s.startsWith(`..`)&&f.isAbsolute(o)){let e=e=>{let t=w(e),n=ki(a,t);if(n){let e=Oi(n,o);if(e)return e}return Oi($(t),o)},t=n?.agentId?.trim();if(t){let n=e(t);if(n)return n}let r=ji(o);if(r){let t=e(r);if(t)return t;let n=Mi(o,r);if(n)return n}}if(!s||s.startsWith(`..`)||f.isAbsolute(s))throw Error(`Session file path must be within sessions directory`);return f.resolve(a,s)}function Fi(e,t,n){let r=Ei(e),i=typeof n==`string`?encodeURIComponent(n):typeof n==`number`?String(n):void 0;return Pi(t,i===void 0?`${r}.jsonl`:`${r}-topic-${i}.jsonl`)}function Ii(e,t,n){return Fi(e,$(t),n)}function Li(e,t,n){let r=Di(n),i=t?.sessionFile?.trim();if(i)try{return Pi(r,i,{agentId:n?.agentId})}catch{}return Fi(e,r)}function Ri(e,r){let i=w(r?.agentId??`main`);if(!e)return Ci(i);if(e.includes(`{agentId}`)){let r=e.replaceAll(`{agentId}`,i);return r.startsWith(`~`)?f.resolve(n(r,{home:t(process.env,p.homedir),env:process.env,homedir:p.homedir})):f.resolve(r)}return e.startsWith(`~`)?f.resolve(n(e,{home:t(process.env,p.homedir),env:process.env,homedir:p.homedir})):f.resolve(e)}export{R as $,br as A,je as At,U as B,se as Bt,Kr as C,Te as Ct,Rr as D,Ne as Dt,Fr as E,ze as Et,rr as F,pe as Ft,jn as G,ue as Gt,Rn as H,ae as Ht,tr as I,Se as It,Nn as J,re as Jt,Un as K,b as Kt,Kn as L,Ce as Lt,_r as M,Be as Mt,hr as N,Fe as Nt,qr as O,Pe as Ot,gr as P,Ae as Pt,z as Q,Hn as R,fe as Rt,Wr as S,S as St,Pr as T,Le as Tt,Fn as U,oe as Ut,Gn as V,ce as Vt,Wn as W,x as Wt,N as X,Mn as Y,un as Z,X as _,Ge as _t,Fi as a,Tn as at,ei as b,Ve as bt,xi as c,an as ct,ui as d,Ut as dt,I as et,Z as f,Bt as ft,pi as g,Je as gt,di as h,E as ht,Ii as i,xn as it,xr as j,Me as jt,Gr as k,w as kt,bi as l,Ht as lt,oi as m,T as mt,Li as n,F as nt,Si as o,Cn as ot,fi as p,O as pt,Vn as q,y as qt,wi as r,L as rt,Ri as s,rn as st,Ci as t,P as tt,si as u,Kt as ut,Qr as v,We as vt,Lr as w,Ie as wt,G as x,He as xt,ti as y,Ue as yt,An as z,ie as zt};
6
- //# sourceMappingURL=paths-piJASC5k.js.map
@@ -1,2 +1 @@
1
1
  import e from"node:path";import t from"node:fs";import n from"node:os";function r(e){return e?.trim()||void 0}function i(t=process.env,r=n.homedir){let i=a(t,r);return i?e.resolve(i):void 0}function a(e,t){let n=r(e.OPENCLAW_HOME);if(n){if(n===`~`||n.startsWith(`~/`)||n.startsWith(`~\\`)){let i=r(e.HOME)??r(e.USERPROFILE)??o(t);return i?n.replace(/^~(?=$|[\\/])/,i):void 0}return n}return r(e.HOME)||r(e.USERPROFILE)||o(t)}function o(e){try{return r(e())}catch{return}}function s(t=process.env,r=n.homedir){return i(t,r)??e.resolve(process.cwd())}function c(e,t){if(!e.startsWith(`~`))return e;let a=r(t?.home)??i(t?.env??process.env,t?.homedir??n.homedir);return a?e.replace(/^~(?=$|[\\/])/,a):e}function l(e=process.env){return e.OPENCLAW_NIX_MODE===`1`}l();const u=[`.clawdbot`,`.moldbot`,`.moltbot`],d=`.openclaw-qbot.json`,f=[`openclaw.json`,`clawdbot.json`,`moldbot.json`,`moltbot.json`];function p(){return s(process.env,n.homedir)}function m(e){return()=>s(e,n.homedir)}function h(t=p){return u.map(n=>e.join(t(),n))}function g(t=p){return e.join(t(),`.qbotclaw`)}function _(e=process.env,n=m(e)){let r=()=>s(e,n),i=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(i)return v(i,e,r);let a=g(r);if(e.OPENCLAW_TEST_FAST===`1`)return a;let o=h(r);return t.existsSync(a)?a:o.find(e=>{try{return t.existsSync(e)}catch{return!1}})||a}function v(t,n=process.env,r=m(n)){let i=t.trim();if(!i)return i;if(i.startsWith(`~`)){let t=c(i,{home:s(n,r),env:n,homedir:r});return e.resolve(t)}return e.resolve(i)}const y=_();function b(t=process.env,n=_(t,m(t))){let r=t.OPENCLAW_CONFIG_PATH?.trim()||t.CLAWDBOT_CONFIG_PATH?.trim();return r?v(r,t,m(t)):e.join(n,d)}function x(e=process.env,n=m(e)){return e.OPENCLAW_TEST_FAST===`1`?b(e,_(e,n)):C(e,n).find(e=>{try{return t.existsSync(e)}catch{return!1}})||b(e,_(e,n))}function S(n=process.env,r=_(n,m(n)),i=m(n)){let a=n.OPENCLAW_CONFIG_PATH?.trim();if(a)return v(a,n,i);if(n.OPENCLAW_TEST_FAST===`1`)return e.join(r,d);let o=n.OPENCLAW_STATE_DIR?.trim(),s=[e.join(r,d),...f.map(t=>e.join(r,t))].find(e=>{try{return t.existsSync(e)}catch{return!1}});if(s)return s;if(o)return e.join(r,d);let c=_(n,i);return e.resolve(r)===e.resolve(c)?x(n,i):e.join(r,d)}x();function C(t=process.env,n=m(t)){let r=()=>s(t,n),i=t.OPENCLAW_CONFIG_PATH?.trim()||t.CLAWDBOT_CONFIG_PATH?.trim();if(i)return[v(i,t,r)];let a=[],o=t.OPENCLAW_STATE_DIR?.trim()||t.CLAWDBOT_STATE_DIR?.trim();if(o){let n=v(o,t,r);a.push(e.join(n,d)),a.push(...f.map(t=>e.join(n,t)))}let c=[g(r),...h(r)];for(let t of c)a.push(e.join(t,d)),a.push(...f.map(n=>e.join(t,n)));return a}const w=18789;function T(t=process.env,n=_(t,m(t))){let r=t.OPENCLAW_OAUTH_DIR?.trim();return r?v(r,t,m(t)):e.join(n,`credentials`)}function E(t=process.env,n=_(t,m(t))){return e.join(T(t,n),`oauth.json`)}function D(e,t=process.env){let n=t.OPENCLAW_GATEWAY_PORT?.trim()||t.CLAWDBOT_GATEWAY_PORT?.trim();if(n){let e=Number.parseInt(n,10);if(Number.isFinite(e)&&e>=0)return e}let r=e?.gateway?.port;return typeof r==`number`&&Number.isFinite(r)&&r>=0?r:w}export{D as a,_ as c,s as d,C as i,c as l,y as n,T as o,S as r,E as s,w as t,i as u};
2
- //# sourceMappingURL=paths-rO4ehkyU.js.map
@@ -1,2 +1 @@
1
1
  const e=require(`./model-selection-DpGE9eNM.cjs`);let t=require(`node:fs`);t=e.Pt(t);let n=require(`node:path`);n=e.Pt(n);let r=require(`@mariozechner/pi-coding-agent`);r=e.Pt(r);function i(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function a(t){let n={};for(let r of Object.values(t.profiles)){let t=e.r(String(r.provider??``)).trim();if(!t||n[t])continue;let a=i(r);a&&(n[t]=a)}return n}const o=r.AuthStorage,s=r.ModelRegistry;function c(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function l(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function u(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!t.default.existsSync(e))return;let n;try{n=JSON.parse(t.default.readFileSync(e,`utf8`))}catch{return}if(!l(n))return;let r=!1;for(let[e,t]of Object.entries(n))l(t)&&t.type===`api_key`&&(delete n[e],r=!0);if(r){if(Object.keys(n).length===0){t.default.rmSync(e,{force:!0});return}t.default.writeFileSync(e,`${JSON.stringify(n,null,2)}\n`,`utf8`),t.default.chmodSync(e,384)}}function d(e,t,n){let i=e;if(typeof i.inMemory==`function`)return i.inMemory(n);let a=e;if(typeof a.fromStorage==`function`){let e=r.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:c(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),a.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function f(t){return a(e.W(t,{allowKeychainPrompt:!1}))}function p(e){let t=f(e),r=n.default.join(e,`auth.json`);return u(r),d(o,r,t)}function m(e,t){return new s(e,n.default.join(t,`models.json`))}exports.AuthStorage=o,exports.ModelRegistry=s,exports.discoverAuthStorage=p,exports.discoverModels=m;
2
- //# sourceMappingURL=pi-model-discovery-5wc5qlmB.cjs.map
@@ -1,2 +1 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{Ga as t,in as n}from"./sessions-B06a3AKE.js";import r from"node:path";import i from"node:fs";import*as a from"@mariozechner/pi-coding-agent";function o(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function s(e){let t={};for(let r of Object.values(e.profiles)){let e=n(String(r.provider??``)).trim();if(!e||t[e])continue;let i=o(r);i&&(t[e]=i)}return t}var c=e({AuthStorage:()=>l,ModelRegistry:()=>u,discoverAuthStorage:()=>g,discoverModels:()=>_});const l=a.AuthStorage,u=a.ModelRegistry;function d(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function f(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function p(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!i.existsSync(e))return;let t;try{t=JSON.parse(i.readFileSync(e,`utf8`))}catch{return}if(!f(t))return;let n=!1;for(let[e,r]of Object.entries(t))f(r)&&r.type===`api_key`&&(delete t[e],n=!0);if(n){if(Object.keys(t).length===0){i.rmSync(e,{force:!0});return}i.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),i.chmodSync(e,384)}}function m(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let i=e;if(typeof i.fromStorage==`function`){let e=a.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:d(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),i.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function h(e){return s(t(e,{allowKeychainPrompt:!1}))}function g(e){let t=h(e),n=r.join(e,`auth.json`);return p(n),m(l,n,t)}function _(e,t){return new u(e,r.join(t,`models.json`))}export{_ as n,c as r,g as t};
2
- //# sourceMappingURL=pi-model-discovery-BQiHbl8F.js.map
@@ -1,2 +1 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{Ja as t,La as n}from"./model-auth-RI6NYvTO.js";import r from"node:fs";import i from"node:path";import*as a from"@mariozechner/pi-coding-agent";function o(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function s(e){let n={};for(let r of Object.values(e.profiles)){let e=t(String(r.provider??``)).trim();if(!e||n[e])continue;let i=o(r);i&&(n[e]=i)}return n}var c=e({AuthStorage:()=>l,ModelRegistry:()=>u,discoverAuthStorage:()=>g,discoverModels:()=>_});const l=a.AuthStorage,u=a.ModelRegistry;function d(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function f(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function p(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!r.existsSync(e))return;let t;try{t=JSON.parse(r.readFileSync(e,`utf8`))}catch{return}if(!f(t))return;let n=!1;for(let[e,r]of Object.entries(t))f(r)&&r.type===`api_key`&&(delete t[e],n=!0);if(n){if(Object.keys(t).length===0){r.rmSync(e,{force:!0});return}r.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),r.chmodSync(e,384)}}function m(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let i=e;if(typeof i.fromStorage==`function`){let e=a.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:d(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),i.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function h(e){return s(n(e,{allowKeychainPrompt:!1}))}function g(e){let t=h(e),n=i.join(e,`auth.json`);return p(n),m(l,n,t)}function _(e,t){return new u(e,i.join(t,`models.json`))}export{_ as n,c as r,g as t};
2
- //# sourceMappingURL=pi-model-discovery-BZZVGcJl.js.map
@@ -1,2 +1 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{cs as t,ys as n}from"./model-auth-exDkzEDR.js";import r from"node:path";import i from"node:fs";import*as a from"@mariozechner/pi-coding-agent";function o(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function s(e){let t={};for(let r of Object.values(e.profiles)){let e=n(String(r.provider??``)).trim();if(!e||t[e])continue;let i=o(r);i&&(t[e]=i)}return t}var c=e({AuthStorage:()=>l,ModelRegistry:()=>u,discoverAuthStorage:()=>g,discoverModels:()=>_});const l=a.AuthStorage,u=a.ModelRegistry;function d(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function f(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function p(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!i.existsSync(e))return;let t;try{t=JSON.parse(i.readFileSync(e,`utf8`))}catch{return}if(!f(t))return;let n=!1;for(let[e,r]of Object.entries(t))f(r)&&r.type===`api_key`&&(delete t[e],n=!0);if(n){if(Object.keys(t).length===0){i.rmSync(e,{force:!0});return}i.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),i.chmodSync(e,384)}}function m(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let i=e;if(typeof i.fromStorage==`function`){let e=a.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:d(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),i.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function h(e){return s(t(e,{allowKeychainPrompt:!1}))}function g(e){let t=h(e),n=r.join(e,`auth.json`);return p(n),m(l,n,t)}function _(e,t){return new u(e,r.join(t,`models.json`))}export{_ as n,c as r,g as t};
2
- //# sourceMappingURL=pi-model-discovery-Ba70onAm.js.map
@@ -1,2 +1 @@
1
1
  const e=require(`./paths-Bcdg3ma0.cjs`),t=require(`./model-auth-Cgqd2_sP.cjs`);let n=require(`node:path`);n=e.p(n);let r=require(`node:fs`);r=e.p(r);let i=require(`@mariozechner/pi-coding-agent`);i=e.p(i);function a(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function o(e){let n={};for(let r of Object.values(e.profiles)){let e=t.Ds(String(r.provider??``)).trim();if(!e||n[e])continue;let i=a(r);i&&(n[e]=i)}return n}const s=i.AuthStorage,c=i.ModelRegistry;function l(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function d(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!r.default.existsSync(e))return;let t;try{t=JSON.parse(r.default.readFileSync(e,`utf8`))}catch{return}if(!u(t))return;let n=!1;for(let[e,r]of Object.entries(t))u(r)&&r.type===`api_key`&&(delete t[e],n=!0);if(n){if(Object.keys(t).length===0){r.default.rmSync(e,{force:!0});return}r.default.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),r.default.chmodSync(e,384)}}function f(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let a=e;if(typeof a.fromStorage==`function`){let e=i.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:l(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),a.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function p(e){return o(t.hs(e,{allowKeychainPrompt:!1}))}function m(e){let t=p(e),r=n.default.join(e,`auth.json`);return d(r),f(s,r,t)}function h(e,t){return new c(e,n.default.join(t,`models.json`))}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
2
- //# sourceMappingURL=pi-model-discovery-BfuqD_Rv.cjs.map
@@ -1,2 +1 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{Bo as t,ko as n}from"./model-auth-Cp2GSJwZ.js";import r from"node:path";import i from"node:fs";import*as a from"@mariozechner/pi-coding-agent";function o(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function s(e){let n={};for(let r of Object.values(e.profiles)){let e=t(String(r.provider??``)).trim();if(!e||n[e])continue;let i=o(r);i&&(n[e]=i)}return n}var c=e({AuthStorage:()=>l,ModelRegistry:()=>u,discoverAuthStorage:()=>g,discoverModels:()=>_});const l=a.AuthStorage,u=a.ModelRegistry;function d(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function f(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function p(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!i.existsSync(e))return;let t;try{t=JSON.parse(i.readFileSync(e,`utf8`))}catch{return}if(!f(t))return;let n=!1;for(let[e,r]of Object.entries(t))f(r)&&r.type===`api_key`&&(delete t[e],n=!0);if(n){if(Object.keys(t).length===0){i.rmSync(e,{force:!0});return}i.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),i.chmodSync(e,384)}}function m(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let i=e;if(typeof i.fromStorage==`function`){let e=a.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:d(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),i.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function h(e){return s(n(e,{allowKeychainPrompt:!1}))}function g(e){let t=h(e),n=r.join(e,`auth.json`);return p(n),m(l,n,t)}function _(e,t){return new u(e,r.join(t,`models.json`))}export{_ as n,c as r,g as t};
2
- //# sourceMappingURL=pi-model-discovery-BsdlRK-w.js.map
@@ -1,2 +1 @@
1
1
  const e=require(`./paths-BvlJvmRS.cjs`),t=require(`./config-C2-9m5-M.cjs`);let n=require(`node:fs`);n=e.p(n);let r=require(`node:path`);r=e.p(r);let i=require(`@mariozechner/pi-coding-agent`);i=e.p(i);function a(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function o(e){let n={};for(let r of Object.values(e.profiles)){let e=t.Pt(String(r.provider??``)).trim();if(!e||n[e])continue;let i=a(r);i&&(n[e]=i)}return n}const s=i.AuthStorage,c=i.ModelRegistry;function l(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function d(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!n.default.existsSync(e))return;let t;try{t=JSON.parse(n.default.readFileSync(e,`utf8`))}catch{return}if(!u(t))return;let r=!1;for(let[e,n]of Object.entries(t))u(n)&&n.type===`api_key`&&(delete t[e],r=!0);if(r){if(Object.keys(t).length===0){n.default.rmSync(e,{force:!0});return}n.default.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),n.default.chmodSync(e,384)}}function f(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let a=e;if(typeof a.fromStorage==`function`){let e=i.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:l(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),a.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function p(e){return o(t.Il(e,{allowKeychainPrompt:!1}))}function m(e){let t=p(e),n=r.default.join(e,`auth.json`);return d(n),f(s,n,t)}function h(e,t){return new c(e,r.default.join(t,`models.json`))}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
2
- //# sourceMappingURL=pi-model-discovery-CAYSx-Lw.cjs.map
@@ -1,2 +1 @@
1
1
  const e=require(`./paths-Bcdg3ma0.cjs`),t=require(`./sessions-BmhjMXlm.cjs`);let n=require(`node:path`);n=e.p(n);let r=require(`node:fs`);r=e.p(r);let i=require(`@mariozechner/pi-coding-agent`);i=e.p(i);function a(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function o(e){let n={};for(let r of Object.values(e.profiles)){let e=t.in(String(r.provider??``)).trim();if(!e||n[e])continue;let i=a(r);i&&(n[e]=i)}return n}const s=i.AuthStorage,c=i.ModelRegistry;function l(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function d(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!r.default.existsSync(e))return;let t;try{t=JSON.parse(r.default.readFileSync(e,`utf8`))}catch{return}if(!u(t))return;let n=!1;for(let[e,r]of Object.entries(t))u(r)&&r.type===`api_key`&&(delete t[e],n=!0);if(n){if(Object.keys(t).length===0){r.default.rmSync(e,{force:!0});return}r.default.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),r.default.chmodSync(e,384)}}function f(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let a=e;if(typeof a.fromStorage==`function`){let e=i.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:l(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),a.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function p(e){return o(t.Ja(e,{allowKeychainPrompt:!1}))}function m(e){let t=p(e),r=n.default.join(e,`auth.json`);return d(r),f(s,r,t)}function h(e,t){return new c(e,n.default.join(t,`models.json`))}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
2
- //# sourceMappingURL=pi-model-discovery-CyBFRafV.cjs.map
@@ -1,2 +1 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{Nl as t,Pt as n}from"./config-Cx3SFBFW.js";import r from"node:fs";import i from"node:path";import*as a from"@mariozechner/pi-coding-agent";function o(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function s(e){let t={};for(let r of Object.values(e.profiles)){let e=n(String(r.provider??``)).trim();if(!e||t[e])continue;let i=o(r);i&&(t[e]=i)}return t}var c=e({AuthStorage:()=>l,ModelRegistry:()=>u,discoverAuthStorage:()=>g,discoverModels:()=>_});const l=a.AuthStorage,u=a.ModelRegistry;function d(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function f(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function p(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!r.existsSync(e))return;let t;try{t=JSON.parse(r.readFileSync(e,`utf8`))}catch{return}if(!f(t))return;let n=!1;for(let[e,r]of Object.entries(t))f(r)&&r.type===`api_key`&&(delete t[e],n=!0);if(n){if(Object.keys(t).length===0){r.rmSync(e,{force:!0});return}r.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),r.chmodSync(e,384)}}function m(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let i=e;if(typeof i.fromStorage==`function`){let e=a.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:d(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),i.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function h(e){return s(t(e,{allowKeychainPrompt:!1}))}function g(e){let t=h(e),n=i.join(e,`auth.json`);return p(n),m(l,n,t)}function _(e,t){return new u(e,i.join(t,`models.json`))}export{_ as n,c as r,g as t};
2
- //# sourceMappingURL=pi-model-discovery-D1WW5m-Q.js.map
@@ -1,2 +1 @@
1
1
  const e=require(`./paths-Bcdg3ma0.cjs`),t=require(`./model-auth-igOM3blS.cjs`);let n=require(`node:path`);n=e.p(n);let r=require(`node:fs`);r=e.p(r);let i=require(`@mariozechner/pi-coding-agent`);i=e.p(i);function a(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function o(e){let n={};for(let r of Object.values(e.profiles)){let e=t.Cs(String(r.provider??``)).trim();if(!e||n[e])continue;let i=a(r);i&&(n[e]=i)}return n}const s=i.AuthStorage,c=i.ModelRegistry;function l(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function d(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!r.default.existsSync(e))return;let t;try{t=JSON.parse(r.default.readFileSync(e,`utf8`))}catch{return}if(!u(t))return;let n=!1;for(let[e,r]of Object.entries(t))u(r)&&r.type===`api_key`&&(delete t[e],n=!0);if(n){if(Object.keys(t).length===0){r.default.rmSync(e,{force:!0});return}r.default.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),r.default.chmodSync(e,384)}}function f(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let a=e;if(typeof a.fromStorage==`function`){let e=i.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:l(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),a.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function p(e){return o(t.ds(e,{allowKeychainPrompt:!1}))}function m(e){let t=p(e),r=n.default.join(e,`auth.json`);return d(r),f(s,r,t)}function h(e,t){return new c(e,n.default.join(t,`models.json`))}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
2
- //# sourceMappingURL=pi-model-discovery-DRYpUnOa.cjs.map
@@ -1,2 +1 @@
1
1
  const e=require(`./paths-Bcdg3ma0.cjs`),t=require(`./model-auth-sjKLUCCz.cjs`);let n=require(`node:path`);n=e.p(n);let r=require(`node:fs`);r=e.p(r);let i=require(`@mariozechner/pi-coding-agent`);i=e.p(i);function a(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function o(e){let n={};for(let r of Object.values(e.profiles)){let e=t.Wo(String(r.provider??``)).trim();if(!e||n[e])continue;let i=a(r);i&&(n[e]=i)}return n}const s=i.AuthStorage,c=i.ModelRegistry;function l(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function d(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!r.default.existsSync(e))return;let t;try{t=JSON.parse(r.default.readFileSync(e,`utf8`))}catch{return}if(!u(t))return;let n=!1;for(let[e,r]of Object.entries(t))u(r)&&r.type===`api_key`&&(delete t[e],n=!0);if(n){if(Object.keys(t).length===0){r.default.rmSync(e,{force:!0});return}r.default.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),r.default.chmodSync(e,384)}}function f(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let a=e;if(typeof a.fromStorage==`function`){let e=i.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:l(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),a.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function p(e){return o(t.Mo(e,{allowKeychainPrompt:!1}))}function m(e){let t=p(e),r=n.default.join(e,`auth.json`);return d(r),f(s,r,t)}function h(e,t){return new c(e,n.default.join(t,`models.json`))}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
2
- //# sourceMappingURL=pi-model-discovery-DUbDLlc7.cjs.map
@@ -1,2 +1 @@
1
1
  const e=require(`./paths-BvlJvmRS.cjs`),t=require(`./model-auth-Lv74A-Si.cjs`);let n=require(`node:fs`);n=e.p(n);let r=require(`node:path`);r=e.p(r);let i=require(`@mariozechner/pi-coding-agent`);i=e.p(i);function a(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function o(e){let n={};for(let r of Object.values(e.profiles)){let e=t.Qa(String(r.provider??``)).trim();if(!e||n[e])continue;let i=a(r);i&&(n[e]=i)}return n}const s=i.AuthStorage,c=i.ModelRegistry;function l(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function d(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!n.default.existsSync(e))return;let t;try{t=JSON.parse(n.default.readFileSync(e,`utf8`))}catch{return}if(!u(t))return;let r=!1;for(let[e,n]of Object.entries(t))u(n)&&n.type===`api_key`&&(delete t[e],r=!0);if(r){if(Object.keys(t).length===0){n.default.rmSync(e,{force:!0});return}n.default.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),n.default.chmodSync(e,384)}}function f(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let a=e;if(typeof a.fromStorage==`function`){let e=i.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:l(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),a.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function p(e){return o(t.Ba(e,{allowKeychainPrompt:!1}))}function m(e){let t=p(e),n=r.default.join(e,`auth.json`);return d(n),f(s,n,t)}function h(e,t){return new c(e,r.default.join(t,`models.json`))}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
2
- //# sourceMappingURL=pi-model-discovery-DcUDwgMg.cjs.map
@@ -1,2 +1 @@
1
1
  import{W as e,r as t}from"./model-selection-C9HlFaXF.js";import n from"node:fs";import r from"node:path";import*as i from"@mariozechner/pi-coding-agent";function a(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function o(e){let n={};for(let r of Object.values(e.profiles)){let e=t(String(r.provider??``)).trim();if(!e||n[e])continue;let i=a(r);i&&(n[e]=i)}return n}const s=i.AuthStorage,c=i.ModelRegistry;function l(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function d(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!n.existsSync(e))return;let t;try{t=JSON.parse(n.readFileSync(e,`utf8`))}catch{return}if(!u(t))return;let r=!1;for(let[e,n]of Object.entries(t))u(n)&&n.type===`api_key`&&(delete t[e],r=!0);if(r){if(Object.keys(t).length===0){n.rmSync(e,{force:!0});return}n.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),n.chmodSync(e,384)}}function f(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let a=e;if(typeof a.fromStorage==`function`){let e=i.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:l(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),a.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function p(t){return o(e(t,{allowKeychainPrompt:!1}))}function m(e){let t=p(e),n=r.join(e,`auth.json`);return d(n),f(s,n,t)}function h(e,t){return new c(e,r.join(t,`models.json`))}export{s as AuthStorage,c as ModelRegistry,m as discoverAuthStorage,h as discoverModels};
2
- //# sourceMappingURL=pi-model-discovery-DrZsxLaJ.js.map
@@ -1,2 +1 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{Cs as t,fs as n}from"./model-auth-1RA9nkQH.js";import r from"node:path";import i from"node:fs";import*as a from"@mariozechner/pi-coding-agent";function o(e){if(e.type===`api_key`){let t=typeof e.key==`string`?e.key.trim():``;return t?{type:`api_key`,key:t}:null}if(e.type===`token`){let t=typeof e.token==`string`?e.token.trim():``;return!t||typeof e.expires==`number`&&Number.isFinite(e.expires)&&Date.now()>=e.expires?null:{type:`api_key`,key:t}}if(e.type===`oauth`){let t=typeof e.access==`string`?e.access.trim():``,n=typeof e.refresh==`string`?e.refresh.trim():``;return!t||!n||!Number.isFinite(e.expires)||e.expires<=0?null:{type:`oauth`,access:t,refresh:n,expires:e.expires}}return null}function s(e){let n={};for(let r of Object.values(e.profiles)){let e=t(String(r.provider??``)).trim();if(!e||n[e])continue;let i=o(r);i&&(n[e]=i)}return n}var c=e({AuthStorage:()=>l,ModelRegistry:()=>u,discoverAuthStorage:()=>g,discoverModels:()=>_});const l=a.AuthStorage,u=a.ModelRegistry;function d(e){let t=JSON.stringify(e,null,2);return{withLock(e){let{result:n,next:r}=e(t);return typeof r==`string`&&(t=r),n}}}function f(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function p(e){if(process.env.OPENCLAW_AUTH_STORE_READONLY===`1`||!i.existsSync(e))return;let t;try{t=JSON.parse(i.readFileSync(e,`utf8`))}catch{return}if(!f(t))return;let n=!1;for(let[e,r]of Object.entries(t))f(r)&&r.type===`api_key`&&(delete t[e],n=!0);if(n){if(Object.keys(t).length===0){i.rmSync(e,{force:!0});return}i.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),i.chmodSync(e,384)}}function m(e,t,n){let r=e;if(typeof r.inMemory==`function`)return r.inMemory(n);let i=e;if(typeof i.fromStorage==`function`){let e=a.InMemoryAuthStorageBackend,t=typeof e==`function`?new e:d(n);return t.withLock(()=>({result:void 0,next:JSON.stringify(n,null,2)})),i.fromStorage(t)}let o=e,s=typeof o.create==`function`?o.create(t):new e(t);if(typeof s.setRuntimeApiKey==`function`)for(let[e,t]of Object.entries(n)){if(t.type===`api_key`){s.setRuntimeApiKey(e,t.key);continue}s.setRuntimeApiKey(e,t.access)}return s}function h(e){return s(n(e,{allowKeychainPrompt:!1}))}function g(e){let t=h(e),n=r.join(e,`auth.json`);return p(n),m(l,n,t)}function _(e,t){return new u(e,r.join(t,`models.json`))}export{_ as n,c as r,g as t};
2
- //# sourceMappingURL=pi-model-discovery-gaVoL7I2.js.map
@@ -1,3 +1,2 @@
1
1
  import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import{D as e,O as t}from"./logger-DwWqfo66.js";import"./model-auth-RI6NYvTO.js";import"./proxy-env-DGzNnnJh.js";import"./github-copilot-token-Bt4PduRB.js";import{p as n,s as r}from"./diagnostic-zCrcFAbJ.js";import{createHash as i}from"node:crypto";const a=t(`agents/loop-detection`),o={enabled:!1,historySize:30,warningThreshold:10,criticalThreshold:20,globalCircuitBreakerThreshold:30,detectors:{genericRepeat:!0,knownPollNoProgress:!0,pingPong:!0}};function s(e,t){return typeof e!=`number`||!Number.isInteger(e)||e<=0?t:e}function c(e){let t=s(e?.warningThreshold,o.warningThreshold),n=s(e?.criticalThreshold,o.criticalThreshold),r=s(e?.globalCircuitBreakerThreshold,o.globalCircuitBreakerThreshold);return n<=t&&(n=t+1),r<=n&&(r=n+1),{enabled:e?.enabled??o.enabled,historySize:s(e?.historySize,o.historySize),warningThreshold:t,criticalThreshold:n,globalCircuitBreakerThreshold:r,detectors:{genericRepeat:e?.detectors?.genericRepeat??o.detectors.genericRepeat,knownPollNoProgress:e?.detectors?.knownPollNoProgress??o.detectors.knownPollNoProgress,pingPong:e?.detectors?.pingPong??o.detectors.pingPong}}}function l(e,t){return`${e}:${d(t)}`}function u(e){if(typeof e!=`object`||!e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(u).join(`,`)}]`;let t=e;return`{${Object.keys(t).toSorted().map(e=>`${JSON.stringify(e)}:${u(t[e])}`).join(`,`)}}`}function d(e){let t=f(e);return i(`sha256`).update(t).digest(`hex`)}function f(e){try{return u(e)}catch{return e==null?`${e}`:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`${e}`:e instanceof Error?`${e.name}:${e.message}`:Object.prototype.toString.call(e)}}function p(t,n){if(t===`command_status`)return!0;if(t!==`process`||!e(n))return!1;let r=n.action;return r===`poll`||r===`log`}function m(t){return!e(t)||!Array.isArray(t.content)?``:t.content.filter(t=>e(t)&&typeof t.type==`string`&&typeof t.text==`string`).map(e=>e.text).join(`
2
2
  `).trim()}function h(e){return e instanceof Error?e.message||e.name:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`${e}`:u(e)}function g(t,n,r,i){if(i!==void 0)return`error:${d(h(i))}`;if(!e(r))return r===void 0?void 0:d(r);let a=e(r.details)?r.details:{},o=m(r);if(p(t,n)&&t===`process`&&e(n)){let e=n.action;if(e===`poll`)return d({action:e,status:a.status,exitCode:a.exitCode??null,exitSignal:a.exitSignal??null,aggregated:a.aggregated??null,text:o});if(e===`log`)return d({action:e,status:a.status,totalLines:a.totalLines??null,totalChars:a.totalChars??null,truncated:a.truncated??null,exitCode:a.exitCode??null,exitSignal:a.exitSignal??null,text:o})}return d({details:a,text:o})}function _(e,t,n){let r=0,i;for(let a=e.length-1;a>=0;--a){let o=e[a];if(!(!o||o.toolName!==t||o.argsHash!==n)&&!(typeof o.resultHash!=`string`||!o.resultHash)){if(!i){i=o.resultHash,r=1;continue}if(o.resultHash!==i)break;r+=1}}return{count:r,latestResultHash:i}}function v(e,t){let n=e.at(-1);if(!n)return{count:0,noProgressEvidence:!1};let r,i;for(let t=e.length-2;t>=0;--t){let a=e[t];if(a&&a.argsHash!==n.argsHash){r=a.argsHash,i=a.toolName;break}}if(!r||!i)return{count:0,noProgressEvidence:!1};let a=0;for(let t=e.length-1;t>=0;--t){let i=e[t];if(!i)continue;let o=a%2==0?n.argsHash:r;if(i.argsHash!==o)break;a+=1}if(a<2||t!==r)return{count:0,noProgressEvidence:!1};let o=Math.max(0,e.length-a),s,c,l=!0;for(let t=o;t<e.length;t+=1){let i=e[t];if(i){if(!i.resultHash){l=!1;break}if(i.argsHash===n.argsHash){if(!s)s=i.resultHash;else if(s!==i.resultHash){l=!1;break}continue}if(i.argsHash===r){if(!c)c=i.resultHash;else if(c!==i.resultHash){l=!1;break}continue}l=!1;break}}return(!s||!c)&&(l=!1),{count:a+1,pairedToolName:n.toolName,pairedSignature:n.argsHash,noProgressEvidence:l}}function y(e,t){return[e,t].toSorted().join(`|`)}function b(e,t,n,r){let i=c(r);if(!i.enabled)return{stuck:!1};let o=e.toolCallHistory??[],s=l(t,n),u=_(o,t,s),d=u.count,f=p(t,n),m=v(o,s);if(d>=i.globalCircuitBreakerThreshold)return a.error(`Global circuit breaker triggered: ${t} repeated ${d} times with no progress`),{stuck:!0,level:`critical`,detector:`global_circuit_breaker`,count:d,message:`CRITICAL: ${t} has repeated identical no-progress outcomes ${d} times. Session execution blocked by global circuit breaker to prevent runaway loops.`,warningKey:`global:${t}:${s}:${u.latestResultHash??`none`}`};if(f&&i.detectors.knownPollNoProgress&&d>=i.criticalThreshold)return a.error(`Critical polling loop detected: ${t} repeated ${d} times`),{stuck:!0,level:`critical`,detector:`known_poll_no_progress`,count:d,message:`CRITICAL: Called ${t} with identical arguments and no progress ${d} times. This appears to be a stuck polling loop. Session execution blocked to prevent resource waste.`,warningKey:`poll:${t}:${s}:${u.latestResultHash??`none`}`};if(f&&i.detectors.knownPollNoProgress&&d>=i.warningThreshold)return a.warn(`Polling loop warning: ${t} repeated ${d} times`),{stuck:!0,level:`warning`,detector:`known_poll_no_progress`,count:d,message:`WARNING: You have called ${t} ${d} times with identical arguments and no progress. Stop polling and either (1) increase wait time between checks, or (2) report the task as failed if the process is stuck.`,warningKey:`poll:${t}:${s}:${u.latestResultHash??`none`}`};let h=m.pairedSignature?`pingpong:${y(s,m.pairedSignature)}`:`pingpong:${t}:${s}`;if(i.detectors.pingPong&&m.count>=i.criticalThreshold&&m.noProgressEvidence)return a.error(`Critical ping-pong loop detected: alternating calls count=${m.count} currentTool=${t}`),{stuck:!0,level:`critical`,detector:`ping_pong`,count:m.count,message:`CRITICAL: You are alternating between repeated tool-call patterns (${m.count} consecutive calls) with no progress. This appears to be a stuck ping-pong loop. Session execution blocked to prevent resource waste.`,pairedToolName:m.pairedToolName,warningKey:h};if(i.detectors.pingPong&&m.count>=i.warningThreshold)return a.warn(`Ping-pong loop warning: alternating calls count=${m.count} currentTool=${t}`),{stuck:!0,level:`warning`,detector:`ping_pong`,count:m.count,message:`WARNING: You are alternating between repeated tool-call patterns (${m.count} consecutive calls). This looks like a ping-pong loop; stop retrying and report the task as failed.`,pairedToolName:m.pairedToolName,warningKey:h};let g=o.filter(e=>e.toolName===t&&e.argsHash===s).length;return!f&&i.detectors.genericRepeat&&g>=i.warningThreshold?(a.warn(`Loop warning: ${t} called ${g} times with identical arguments`),{stuck:!0,level:`warning`,detector:`generic_repeat`,count:g,message:`WARNING: You have called ${t} ${g} times with identical arguments. If this is not making progress, stop retrying and report the task as failed.`,warningKey:`generic:${t}:${s}`}):{stuck:!1}}function x(e,t,n,r,i){let a=c(i);e.toolCallHistory||=[],e.toolCallHistory.push({toolName:t,argsHash:l(t,n),toolCallId:r,timestamp:Date.now()}),e.toolCallHistory.length>a.historySize&&e.toolCallHistory.shift()}function S(e,t){let n=c(t.config),r=g(t.toolName,t.toolParams,t.result,t.error);if(!r)return;e.toolCallHistory||=[];let i=l(t.toolName,t.toolParams),a=!1;for(let n=e.toolCallHistory.length-1;n>=0;--n){let o=e.toolCallHistory[n];if(o&&!(t.toolCallId&&o.toolCallId!==t.toolCallId)&&!(o.toolName!==t.toolName||o.argsHash!==i)&&o.resultHash===void 0){o.resultHash=r,a=!0;break}}a||e.toolCallHistory.push({toolName:t.toolName,argsHash:i,toolCallId:t.toolCallId,resultHash:r,timestamp:Date.now()}),e.toolCallHistory.length>n.historySize&&e.toolCallHistory.splice(0,e.toolCallHistory.length-n.historySize)}export{b as detectToolCallLoop,n as getDiagnosticSessionState,r as logToolLoopAction,x as recordToolCall,S as recordToolCallOutcome};
3
- //# sourceMappingURL=pi-tools.before-tool-call.runtime-BWmteuHS.js.map
@@ -1,3 +1,2 @@
1
1
  require(`./paths-BvlJvmRS.cjs`),require(`./paths-Chp3zwtq.cjs`);const e=require(`./logger-BlddiV_d.cjs`);require(`./model-auth-Lv74A-Si.cjs`),require(`./proxy-env-DWw9TnOj.cjs`),require(`./github-copilot-token-DoHgkI2r.cjs`);const t=require(`./diagnostic-CdNZNyNv.cjs`);let n=require(`node:crypto`);const r=e.O(`agents/loop-detection`),i={enabled:!1,historySize:30,warningThreshold:10,criticalThreshold:20,globalCircuitBreakerThreshold:30,detectors:{genericRepeat:!0,knownPollNoProgress:!0,pingPong:!0}};function a(e,t){return typeof e!=`number`||!Number.isInteger(e)||e<=0?t:e}function o(e){let t=a(e?.warningThreshold,i.warningThreshold),n=a(e?.criticalThreshold,i.criticalThreshold),r=a(e?.globalCircuitBreakerThreshold,i.globalCircuitBreakerThreshold);return n<=t&&(n=t+1),r<=n&&(r=n+1),{enabled:e?.enabled??i.enabled,historySize:a(e?.historySize,i.historySize),warningThreshold:t,criticalThreshold:n,globalCircuitBreakerThreshold:r,detectors:{genericRepeat:e?.detectors?.genericRepeat??i.detectors.genericRepeat,knownPollNoProgress:e?.detectors?.knownPollNoProgress??i.detectors.knownPollNoProgress,pingPong:e?.detectors?.pingPong??i.detectors.pingPong}}}function s(e,t){return`${e}:${l(t)}`}function c(e){if(typeof e!=`object`||!e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(c).join(`,`)}]`;let t=e;return`{${Object.keys(t).toSorted().map(e=>`${JSON.stringify(e)}:${c(t[e])}`).join(`,`)}}`}function l(e){let t=u(e);return(0,n.createHash)(`sha256`).update(t).digest(`hex`)}function u(e){try{return c(e)}catch{return e==null?`${e}`:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`${e}`:e instanceof Error?`${e.name}:${e.message}`:Object.prototype.toString.call(e)}}function d(t,n){if(t===`command_status`)return!0;if(t!==`process`||!e.D(n))return!1;let r=n.action;return r===`poll`||r===`log`}function f(t){return!e.D(t)||!Array.isArray(t.content)?``:t.content.filter(t=>e.D(t)&&typeof t.type==`string`&&typeof t.text==`string`).map(e=>e.text).join(`
2
2
  `).trim()}function p(e){return e instanceof Error?e.message||e.name:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`${e}`:c(e)}function m(t,n,r,i){if(i!==void 0)return`error:${l(p(i))}`;if(!e.D(r))return r===void 0?void 0:l(r);let a=e.D(r.details)?r.details:{},o=f(r);if(d(t,n)&&t===`process`&&e.D(n)){let e=n.action;if(e===`poll`)return l({action:e,status:a.status,exitCode:a.exitCode??null,exitSignal:a.exitSignal??null,aggregated:a.aggregated??null,text:o});if(e===`log`)return l({action:e,status:a.status,totalLines:a.totalLines??null,totalChars:a.totalChars??null,truncated:a.truncated??null,exitCode:a.exitCode??null,exitSignal:a.exitSignal??null,text:o})}return l({details:a,text:o})}function h(e,t,n){let r=0,i;for(let a=e.length-1;a>=0;--a){let o=e[a];if(!(!o||o.toolName!==t||o.argsHash!==n)&&!(typeof o.resultHash!=`string`||!o.resultHash)){if(!i){i=o.resultHash,r=1;continue}if(o.resultHash!==i)break;r+=1}}return{count:r,latestResultHash:i}}function g(e,t){let n=e.at(-1);if(!n)return{count:0,noProgressEvidence:!1};let r,i;for(let t=e.length-2;t>=0;--t){let a=e[t];if(a&&a.argsHash!==n.argsHash){r=a.argsHash,i=a.toolName;break}}if(!r||!i)return{count:0,noProgressEvidence:!1};let a=0;for(let t=e.length-1;t>=0;--t){let i=e[t];if(!i)continue;let o=a%2==0?n.argsHash:r;if(i.argsHash!==o)break;a+=1}if(a<2||t!==r)return{count:0,noProgressEvidence:!1};let o=Math.max(0,e.length-a),s,c,l=!0;for(let t=o;t<e.length;t+=1){let i=e[t];if(i){if(!i.resultHash){l=!1;break}if(i.argsHash===n.argsHash){if(!s)s=i.resultHash;else if(s!==i.resultHash){l=!1;break}continue}if(i.argsHash===r){if(!c)c=i.resultHash;else if(c!==i.resultHash){l=!1;break}continue}l=!1;break}}return(!s||!c)&&(l=!1),{count:a+1,pairedToolName:n.toolName,pairedSignature:n.argsHash,noProgressEvidence:l}}function _(e,t){return[e,t].toSorted().join(`|`)}function v(e,t,n,i){let a=o(i);if(!a.enabled)return{stuck:!1};let c=e.toolCallHistory??[],l=s(t,n),u=h(c,t,l),f=u.count,p=d(t,n),m=g(c,l);if(f>=a.globalCircuitBreakerThreshold)return r.error(`Global circuit breaker triggered: ${t} repeated ${f} times with no progress`),{stuck:!0,level:`critical`,detector:`global_circuit_breaker`,count:f,message:`CRITICAL: ${t} has repeated identical no-progress outcomes ${f} times. Session execution blocked by global circuit breaker to prevent runaway loops.`,warningKey:`global:${t}:${l}:${u.latestResultHash??`none`}`};if(p&&a.detectors.knownPollNoProgress&&f>=a.criticalThreshold)return r.error(`Critical polling loop detected: ${t} repeated ${f} times`),{stuck:!0,level:`critical`,detector:`known_poll_no_progress`,count:f,message:`CRITICAL: Called ${t} with identical arguments and no progress ${f} times. This appears to be a stuck polling loop. Session execution blocked to prevent resource waste.`,warningKey:`poll:${t}:${l}:${u.latestResultHash??`none`}`};if(p&&a.detectors.knownPollNoProgress&&f>=a.warningThreshold)return r.warn(`Polling loop warning: ${t} repeated ${f} times`),{stuck:!0,level:`warning`,detector:`known_poll_no_progress`,count:f,message:`WARNING: You have called ${t} ${f} times with identical arguments and no progress. Stop polling and either (1) increase wait time between checks, or (2) report the task as failed if the process is stuck.`,warningKey:`poll:${t}:${l}:${u.latestResultHash??`none`}`};let v=m.pairedSignature?`pingpong:${_(l,m.pairedSignature)}`:`pingpong:${t}:${l}`;if(a.detectors.pingPong&&m.count>=a.criticalThreshold&&m.noProgressEvidence)return r.error(`Critical ping-pong loop detected: alternating calls count=${m.count} currentTool=${t}`),{stuck:!0,level:`critical`,detector:`ping_pong`,count:m.count,message:`CRITICAL: You are alternating between repeated tool-call patterns (${m.count} consecutive calls) with no progress. This appears to be a stuck ping-pong loop. Session execution blocked to prevent resource waste.`,pairedToolName:m.pairedToolName,warningKey:v};if(a.detectors.pingPong&&m.count>=a.warningThreshold)return r.warn(`Ping-pong loop warning: alternating calls count=${m.count} currentTool=${t}`),{stuck:!0,level:`warning`,detector:`ping_pong`,count:m.count,message:`WARNING: You are alternating between repeated tool-call patterns (${m.count} consecutive calls). This looks like a ping-pong loop; stop retrying and report the task as failed.`,pairedToolName:m.pairedToolName,warningKey:v};let y=c.filter(e=>e.toolName===t&&e.argsHash===l).length;return!p&&a.detectors.genericRepeat&&y>=a.warningThreshold?(r.warn(`Loop warning: ${t} called ${y} times with identical arguments`),{stuck:!0,level:`warning`,detector:`generic_repeat`,count:y,message:`WARNING: You have called ${t} ${y} times with identical arguments. If this is not making progress, stop retrying and report the task as failed.`,warningKey:`generic:${t}:${l}`}):{stuck:!1}}function y(e,t,n,r,i){let a=o(i);e.toolCallHistory||=[],e.toolCallHistory.push({toolName:t,argsHash:s(t,n),toolCallId:r,timestamp:Date.now()}),e.toolCallHistory.length>a.historySize&&e.toolCallHistory.shift()}function b(e,t){let n=o(t.config),r=m(t.toolName,t.toolParams,t.result,t.error);if(!r)return;e.toolCallHistory||=[];let i=s(t.toolName,t.toolParams),a=!1;for(let n=e.toolCallHistory.length-1;n>=0;--n){let o=e.toolCallHistory[n];if(o&&!(t.toolCallId&&o.toolCallId!==t.toolCallId)&&!(o.toolName!==t.toolName||o.argsHash!==i)&&o.resultHash===void 0){o.resultHash=r,a=!0;break}}a||e.toolCallHistory.push({toolName:t.toolName,argsHash:i,toolCallId:t.toolCallId,resultHash:r,timestamp:Date.now()}),e.toolCallHistory.length>n.historySize&&e.toolCallHistory.splice(0,e.toolCallHistory.length-n.historySize)}exports.detectToolCallLoop=v,exports.getDiagnosticSessionState=t.p,exports.logToolLoopAction=t.s,exports.recordToolCall=y,exports.recordToolCallOutcome=b;
3
- //# sourceMappingURL=pi-tools.before-tool-call.runtime-BmznXclG.cjs.map
@@ -1,3 +1,2 @@
1
1
  require(`./paths-BvlJvmRS.cjs`),require(`./paths-BPlgbwrb.cjs`),require(`./config-C2-9m5-M.cjs`),require(`./github-copilot-token-TMkfxxD2.cjs`);const e=require(`./logger-Bm93ZKOk.cjs`);require(`./proxy-env-Bcl14j2_.cjs`);const t=require(`./diagnostic-C2jKFixS.cjs`);let n=require(`node:crypto`);const r=e.a(`agents/loop-detection`),i={enabled:!1,historySize:30,warningThreshold:10,criticalThreshold:20,globalCircuitBreakerThreshold:30,detectors:{genericRepeat:!0,knownPollNoProgress:!0,pingPong:!0}};function a(e,t){return typeof e!=`number`||!Number.isInteger(e)||e<=0?t:e}function o(e){let t=a(e?.warningThreshold,i.warningThreshold),n=a(e?.criticalThreshold,i.criticalThreshold),r=a(e?.globalCircuitBreakerThreshold,i.globalCircuitBreakerThreshold);return n<=t&&(n=t+1),r<=n&&(r=n+1),{enabled:e?.enabled??i.enabled,historySize:a(e?.historySize,i.historySize),warningThreshold:t,criticalThreshold:n,globalCircuitBreakerThreshold:r,detectors:{genericRepeat:e?.detectors?.genericRepeat??i.detectors.genericRepeat,knownPollNoProgress:e?.detectors?.knownPollNoProgress??i.detectors.knownPollNoProgress,pingPong:e?.detectors?.pingPong??i.detectors.pingPong}}}function s(e,t){return`${e}:${l(t)}`}function c(e){if(typeof e!=`object`||!e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(c).join(`,`)}]`;let t=e;return`{${Object.keys(t).toSorted().map(e=>`${JSON.stringify(e)}:${c(t[e])}`).join(`,`)}}`}function l(e){let t=u(e);return(0,n.createHash)(`sha256`).update(t).digest(`hex`)}function u(e){try{return c(e)}catch{return e==null?`${e}`:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`${e}`:e instanceof Error?`${e.name}:${e.message}`:Object.prototype.toString.call(e)}}function d(t,n){if(t===`command_status`)return!0;if(t!==`process`||!e.F(n))return!1;let r=n.action;return r===`poll`||r===`log`}function f(t){return!e.F(t)||!Array.isArray(t.content)?``:t.content.filter(t=>e.F(t)&&typeof t.type==`string`&&typeof t.text==`string`).map(e=>e.text).join(`
2
2
  `).trim()}function p(e){return e instanceof Error?e.message||e.name:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`${e}`:c(e)}function m(t,n,r,i){if(i!==void 0)return`error:${l(p(i))}`;if(!e.F(r))return r===void 0?void 0:l(r);let a=e.F(r.details)?r.details:{},o=f(r);if(d(t,n)&&t===`process`&&e.F(n)){let e=n.action;if(e===`poll`)return l({action:e,status:a.status,exitCode:a.exitCode??null,exitSignal:a.exitSignal??null,aggregated:a.aggregated??null,text:o});if(e===`log`)return l({action:e,status:a.status,totalLines:a.totalLines??null,totalChars:a.totalChars??null,truncated:a.truncated??null,exitCode:a.exitCode??null,exitSignal:a.exitSignal??null,text:o})}return l({details:a,text:o})}function h(e,t,n){let r=0,i;for(let a=e.length-1;a>=0;--a){let o=e[a];if(!(!o||o.toolName!==t||o.argsHash!==n)&&!(typeof o.resultHash!=`string`||!o.resultHash)){if(!i){i=o.resultHash,r=1;continue}if(o.resultHash!==i)break;r+=1}}return{count:r,latestResultHash:i}}function g(e,t){let n=e.at(-1);if(!n)return{count:0,noProgressEvidence:!1};let r,i;for(let t=e.length-2;t>=0;--t){let a=e[t];if(a&&a.argsHash!==n.argsHash){r=a.argsHash,i=a.toolName;break}}if(!r||!i)return{count:0,noProgressEvidence:!1};let a=0;for(let t=e.length-1;t>=0;--t){let i=e[t];if(!i)continue;let o=a%2==0?n.argsHash:r;if(i.argsHash!==o)break;a+=1}if(a<2||t!==r)return{count:0,noProgressEvidence:!1};let o=Math.max(0,e.length-a),s,c,l=!0;for(let t=o;t<e.length;t+=1){let i=e[t];if(i){if(!i.resultHash){l=!1;break}if(i.argsHash===n.argsHash){if(!s)s=i.resultHash;else if(s!==i.resultHash){l=!1;break}continue}if(i.argsHash===r){if(!c)c=i.resultHash;else if(c!==i.resultHash){l=!1;break}continue}l=!1;break}}return(!s||!c)&&(l=!1),{count:a+1,pairedToolName:n.toolName,pairedSignature:n.argsHash,noProgressEvidence:l}}function _(e,t){return[e,t].toSorted().join(`|`)}function v(e,t,n,i){let a=o(i);if(!a.enabled)return{stuck:!1};let c=e.toolCallHistory??[],l=s(t,n),u=h(c,t,l),f=u.count,p=d(t,n),m=g(c,l);if(f>=a.globalCircuitBreakerThreshold)return r.error(`Global circuit breaker triggered: ${t} repeated ${f} times with no progress`),{stuck:!0,level:`critical`,detector:`global_circuit_breaker`,count:f,message:`CRITICAL: ${t} has repeated identical no-progress outcomes ${f} times. Session execution blocked by global circuit breaker to prevent runaway loops.`,warningKey:`global:${t}:${l}:${u.latestResultHash??`none`}`};if(p&&a.detectors.knownPollNoProgress&&f>=a.criticalThreshold)return r.error(`Critical polling loop detected: ${t} repeated ${f} times`),{stuck:!0,level:`critical`,detector:`known_poll_no_progress`,count:f,message:`CRITICAL: Called ${t} with identical arguments and no progress ${f} times. This appears to be a stuck polling loop. Session execution blocked to prevent resource waste.`,warningKey:`poll:${t}:${l}:${u.latestResultHash??`none`}`};if(p&&a.detectors.knownPollNoProgress&&f>=a.warningThreshold)return r.warn(`Polling loop warning: ${t} repeated ${f} times`),{stuck:!0,level:`warning`,detector:`known_poll_no_progress`,count:f,message:`WARNING: You have called ${t} ${f} times with identical arguments and no progress. Stop polling and either (1) increase wait time between checks, or (2) report the task as failed if the process is stuck.`,warningKey:`poll:${t}:${l}:${u.latestResultHash??`none`}`};let v=m.pairedSignature?`pingpong:${_(l,m.pairedSignature)}`:`pingpong:${t}:${l}`;if(a.detectors.pingPong&&m.count>=a.criticalThreshold&&m.noProgressEvidence)return r.error(`Critical ping-pong loop detected: alternating calls count=${m.count} currentTool=${t}`),{stuck:!0,level:`critical`,detector:`ping_pong`,count:m.count,message:`CRITICAL: You are alternating between repeated tool-call patterns (${m.count} consecutive calls) with no progress. This appears to be a stuck ping-pong loop. Session execution blocked to prevent resource waste.`,pairedToolName:m.pairedToolName,warningKey:v};if(a.detectors.pingPong&&m.count>=a.warningThreshold)return r.warn(`Ping-pong loop warning: alternating calls count=${m.count} currentTool=${t}`),{stuck:!0,level:`warning`,detector:`ping_pong`,count:m.count,message:`WARNING: You are alternating between repeated tool-call patterns (${m.count} consecutive calls). This looks like a ping-pong loop; stop retrying and report the task as failed.`,pairedToolName:m.pairedToolName,warningKey:v};let y=c.filter(e=>e.toolName===t&&e.argsHash===l).length;return!p&&a.detectors.genericRepeat&&y>=a.warningThreshold?(r.warn(`Loop warning: ${t} called ${y} times with identical arguments`),{stuck:!0,level:`warning`,detector:`generic_repeat`,count:y,message:`WARNING: You have called ${t} ${y} times with identical arguments. If this is not making progress, stop retrying and report the task as failed.`,warningKey:`generic:${t}:${l}`}):{stuck:!1}}function y(e,t,n,r,i){let a=o(i);e.toolCallHistory||=[],e.toolCallHistory.push({toolName:t,argsHash:s(t,n),toolCallId:r,timestamp:Date.now()}),e.toolCallHistory.length>a.historySize&&e.toolCallHistory.shift()}function b(e,t){let n=o(t.config),r=m(t.toolName,t.toolParams,t.result,t.error);if(!r)return;e.toolCallHistory||=[];let i=s(t.toolName,t.toolParams),a=!1;for(let n=e.toolCallHistory.length-1;n>=0;--n){let o=e.toolCallHistory[n];if(o&&!(t.toolCallId&&o.toolCallId!==t.toolCallId)&&!(o.toolName!==t.toolName||o.argsHash!==i)&&o.resultHash===void 0){o.resultHash=r,a=!0;break}}a||e.toolCallHistory.push({toolName:t.toolName,argsHash:i,toolCallId:t.toolCallId,resultHash:r,timestamp:Date.now()}),e.toolCallHistory.length>n.historySize&&e.toolCallHistory.splice(0,e.toolCallHistory.length-n.historySize)}exports.detectToolCallLoop=v,exports.getDiagnosticSessionState=t.p,exports.logToolLoopAction=t.s,exports.recordToolCall=y,exports.recordToolCallOutcome=b;
3
- //# sourceMappingURL=pi-tools.before-tool-call.runtime-BzTifHML.cjs.map
@@ -1,3 +1,2 @@
1
1
  require(`./paths-Bcdg3ma0.cjs`),require(`./paths-CIcxeNL-.cjs`);const e=require(`./utils-PPIvU9qw.cjs`);require(`./model-auth-sjKLUCCz.cjs`),require(`./proxy-env-D48qBPAr.cjs`),require(`./github-copilot-token-C1O2cBqk.cjs`);const t=require(`./diagnostic-DMpxa640.cjs`);let n=require(`node:crypto`);const r=e.O(`agents/loop-detection`),i={enabled:!1,historySize:30,warningThreshold:10,criticalThreshold:20,globalCircuitBreakerThreshold:30,detectors:{genericRepeat:!0,knownPollNoProgress:!0,pingPong:!0}};function a(e,t){return typeof e!=`number`||!Number.isInteger(e)||e<=0?t:e}function o(e){let t=a(e?.warningThreshold,i.warningThreshold),n=a(e?.criticalThreshold,i.criticalThreshold),r=a(e?.globalCircuitBreakerThreshold,i.globalCircuitBreakerThreshold);return n<=t&&(n=t+1),r<=n&&(r=n+1),{enabled:e?.enabled??i.enabled,historySize:a(e?.historySize,i.historySize),warningThreshold:t,criticalThreshold:n,globalCircuitBreakerThreshold:r,detectors:{genericRepeat:e?.detectors?.genericRepeat??i.detectors.genericRepeat,knownPollNoProgress:e?.detectors?.knownPollNoProgress??i.detectors.knownPollNoProgress,pingPong:e?.detectors?.pingPong??i.detectors.pingPong}}}function s(e,t){return`${e}:${l(t)}`}function c(e){if(typeof e!=`object`||!e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(c).join(`,`)}]`;let t=e;return`{${Object.keys(t).toSorted().map(e=>`${JSON.stringify(e)}:${c(t[e])}`).join(`,`)}}`}function l(e){let t=u(e);return(0,n.createHash)(`sha256`).update(t).digest(`hex`)}function u(e){try{return c(e)}catch{return e==null?`${e}`:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`${e}`:e instanceof Error?`${e.name}:${e.message}`:Object.prototype.toString.call(e)}}function d(t,n){if(t===`command_status`)return!0;if(t!==`process`||!e.C(n))return!1;let r=n.action;return r===`poll`||r===`log`}function f(t){return!e.C(t)||!Array.isArray(t.content)?``:t.content.filter(t=>e.C(t)&&typeof t.type==`string`&&typeof t.text==`string`).map(e=>e.text).join(`
2
2
  `).trim()}function p(e){return e instanceof Error?e.message||e.name:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`${e}`:c(e)}function m(t,n,r,i){if(i!==void 0)return`error:${l(p(i))}`;if(!e.C(r))return r===void 0?void 0:l(r);let a=e.C(r.details)?r.details:{},o=f(r);if(d(t,n)&&t===`process`&&e.C(n)){let e=n.action;if(e===`poll`)return l({action:e,status:a.status,exitCode:a.exitCode??null,exitSignal:a.exitSignal??null,aggregated:a.aggregated??null,text:o});if(e===`log`)return l({action:e,status:a.status,totalLines:a.totalLines??null,totalChars:a.totalChars??null,truncated:a.truncated??null,exitCode:a.exitCode??null,exitSignal:a.exitSignal??null,text:o})}return l({details:a,text:o})}function h(e,t,n){let r=0,i;for(let a=e.length-1;a>=0;--a){let o=e[a];if(!(!o||o.toolName!==t||o.argsHash!==n)&&!(typeof o.resultHash!=`string`||!o.resultHash)){if(!i){i=o.resultHash,r=1;continue}if(o.resultHash!==i)break;r+=1}}return{count:r,latestResultHash:i}}function g(e,t){let n=e.at(-1);if(!n)return{count:0,noProgressEvidence:!1};let r,i;for(let t=e.length-2;t>=0;--t){let a=e[t];if(a&&a.argsHash!==n.argsHash){r=a.argsHash,i=a.toolName;break}}if(!r||!i)return{count:0,noProgressEvidence:!1};let a=0;for(let t=e.length-1;t>=0;--t){let i=e[t];if(!i)continue;let o=a%2==0?n.argsHash:r;if(i.argsHash!==o)break;a+=1}if(a<2||t!==r)return{count:0,noProgressEvidence:!1};let o=Math.max(0,e.length-a),s,c,l=!0;for(let t=o;t<e.length;t+=1){let i=e[t];if(i){if(!i.resultHash){l=!1;break}if(i.argsHash===n.argsHash){if(!s)s=i.resultHash;else if(s!==i.resultHash){l=!1;break}continue}if(i.argsHash===r){if(!c)c=i.resultHash;else if(c!==i.resultHash){l=!1;break}continue}l=!1;break}}return(!s||!c)&&(l=!1),{count:a+1,pairedToolName:n.toolName,pairedSignature:n.argsHash,noProgressEvidence:l}}function _(e,t){return[e,t].toSorted().join(`|`)}function v(e,t,n,i){let a=o(i);if(!a.enabled)return{stuck:!1};let c=e.toolCallHistory??[],l=s(t,n),u=h(c,t,l),f=u.count,p=d(t,n),m=g(c,l);if(f>=a.globalCircuitBreakerThreshold)return r.error(`Global circuit breaker triggered: ${t} repeated ${f} times with no progress`),{stuck:!0,level:`critical`,detector:`global_circuit_breaker`,count:f,message:`CRITICAL: ${t} has repeated identical no-progress outcomes ${f} times. Session execution blocked by global circuit breaker to prevent runaway loops.`,warningKey:`global:${t}:${l}:${u.latestResultHash??`none`}`};if(p&&a.detectors.knownPollNoProgress&&f>=a.criticalThreshold)return r.error(`Critical polling loop detected: ${t} repeated ${f} times`),{stuck:!0,level:`critical`,detector:`known_poll_no_progress`,count:f,message:`CRITICAL: Called ${t} with identical arguments and no progress ${f} times. This appears to be a stuck polling loop. Session execution blocked to prevent resource waste.`,warningKey:`poll:${t}:${l}:${u.latestResultHash??`none`}`};if(p&&a.detectors.knownPollNoProgress&&f>=a.warningThreshold)return r.warn(`Polling loop warning: ${t} repeated ${f} times`),{stuck:!0,level:`warning`,detector:`known_poll_no_progress`,count:f,message:`WARNING: You have called ${t} ${f} times with identical arguments and no progress. Stop polling and either (1) increase wait time between checks, or (2) report the task as failed if the process is stuck.`,warningKey:`poll:${t}:${l}:${u.latestResultHash??`none`}`};let v=m.pairedSignature?`pingpong:${_(l,m.pairedSignature)}`:`pingpong:${t}:${l}`;if(a.detectors.pingPong&&m.count>=a.criticalThreshold&&m.noProgressEvidence)return r.error(`Critical ping-pong loop detected: alternating calls count=${m.count} currentTool=${t}`),{stuck:!0,level:`critical`,detector:`ping_pong`,count:m.count,message:`CRITICAL: You are alternating between repeated tool-call patterns (${m.count} consecutive calls) with no progress. This appears to be a stuck ping-pong loop. Session execution blocked to prevent resource waste.`,pairedToolName:m.pairedToolName,warningKey:v};if(a.detectors.pingPong&&m.count>=a.warningThreshold)return r.warn(`Ping-pong loop warning: alternating calls count=${m.count} currentTool=${t}`),{stuck:!0,level:`warning`,detector:`ping_pong`,count:m.count,message:`WARNING: You are alternating between repeated tool-call patterns (${m.count} consecutive calls). This looks like a ping-pong loop; stop retrying and report the task as failed.`,pairedToolName:m.pairedToolName,warningKey:v};let y=c.filter(e=>e.toolName===t&&e.argsHash===l).length;return!p&&a.detectors.genericRepeat&&y>=a.warningThreshold?(r.warn(`Loop warning: ${t} called ${y} times with identical arguments`),{stuck:!0,level:`warning`,detector:`generic_repeat`,count:y,message:`WARNING: You have called ${t} ${y} times with identical arguments. If this is not making progress, stop retrying and report the task as failed.`,warningKey:`generic:${t}:${l}`}):{stuck:!1}}function y(e,t,n,r,i){let a=o(i);e.toolCallHistory||=[],e.toolCallHistory.push({toolName:t,argsHash:s(t,n),toolCallId:r,timestamp:Date.now()}),e.toolCallHistory.length>a.historySize&&e.toolCallHistory.shift()}function b(e,t){let n=o(t.config),r=m(t.toolName,t.toolParams,t.result,t.error);if(!r)return;e.toolCallHistory||=[];let i=s(t.toolName,t.toolParams),a=!1;for(let n=e.toolCallHistory.length-1;n>=0;--n){let o=e.toolCallHistory[n];if(o&&!(t.toolCallId&&o.toolCallId!==t.toolCallId)&&!(o.toolName!==t.toolName||o.argsHash!==i)&&o.resultHash===void 0){o.resultHash=r,a=!0;break}}a||e.toolCallHistory.push({toolName:t.toolName,argsHash:i,toolCallId:t.toolCallId,resultHash:r,timestamp:Date.now()}),e.toolCallHistory.length>n.historySize&&e.toolCallHistory.splice(0,e.toolCallHistory.length-n.historySize)}exports.detectToolCallLoop=v,exports.getDiagnosticSessionState=t.p,exports.logToolLoopAction=t.s,exports.recordToolCall=y,exports.recordToolCallOutcome=b;
3
- //# sourceMappingURL=pi-tools.before-tool-call.runtime-CEPsGtJk.cjs.map
@@ -1,3 +1,2 @@
1
1
  require(`./paths-Bcdg3ma0.cjs`),require(`./paths-Dd7r1qlB.cjs`),require(`./model-auth-Cgqd2_sP.cjs`);const e=require(`./logger-6O6OsYBL.cjs`);require(`./proxy-env-k93igu7v.cjs`),require(`./github-copilot-token-BHdMLLqf.cjs`);const t=require(`./diagnostic-BcBlExSy.cjs`);let n=require(`node:crypto`);const r=e.O(`agents/loop-detection`),i={enabled:!1,historySize:30,warningThreshold:10,criticalThreshold:20,globalCircuitBreakerThreshold:30,detectors:{genericRepeat:!0,knownPollNoProgress:!0,pingPong:!0}};function a(e,t){return typeof e!=`number`||!Number.isInteger(e)||e<=0?t:e}function o(e){let t=a(e?.warningThreshold,i.warningThreshold),n=a(e?.criticalThreshold,i.criticalThreshold),r=a(e?.globalCircuitBreakerThreshold,i.globalCircuitBreakerThreshold);return n<=t&&(n=t+1),r<=n&&(r=n+1),{enabled:e?.enabled??i.enabled,historySize:a(e?.historySize,i.historySize),warningThreshold:t,criticalThreshold:n,globalCircuitBreakerThreshold:r,detectors:{genericRepeat:e?.detectors?.genericRepeat??i.detectors.genericRepeat,knownPollNoProgress:e?.detectors?.knownPollNoProgress??i.detectors.knownPollNoProgress,pingPong:e?.detectors?.pingPong??i.detectors.pingPong}}}function s(e,t){return`${e}:${l(t)}`}function c(e){if(typeof e!=`object`||!e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(c).join(`,`)}]`;let t=e;return`{${Object.keys(t).toSorted().map(e=>`${JSON.stringify(e)}:${c(t[e])}`).join(`,`)}}`}function l(e){let t=u(e);return(0,n.createHash)(`sha256`).update(t).digest(`hex`)}function u(e){try{return c(e)}catch{return e==null?`${e}`:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`${e}`:e instanceof Error?`${e.name}:${e.message}`:Object.prototype.toString.call(e)}}function d(t,n){if(t===`command_status`)return!0;if(t!==`process`||!e.D(n))return!1;let r=n.action;return r===`poll`||r===`log`}function f(t){return!e.D(t)||!Array.isArray(t.content)?``:t.content.filter(t=>e.D(t)&&typeof t.type==`string`&&typeof t.text==`string`).map(e=>e.text).join(`
2
2
  `).trim()}function p(e){return e instanceof Error?e.message||e.name:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`${e}`:c(e)}function m(t,n,r,i){if(i!==void 0)return`error:${l(p(i))}`;if(!e.D(r))return r===void 0?void 0:l(r);let a=e.D(r.details)?r.details:{},o=f(r);if(d(t,n)&&t===`process`&&e.D(n)){let e=n.action;if(e===`poll`)return l({action:e,status:a.status,exitCode:a.exitCode??null,exitSignal:a.exitSignal??null,aggregated:a.aggregated??null,text:o});if(e===`log`)return l({action:e,status:a.status,totalLines:a.totalLines??null,totalChars:a.totalChars??null,truncated:a.truncated??null,exitCode:a.exitCode??null,exitSignal:a.exitSignal??null,text:o})}return l({details:a,text:o})}function h(e,t,n){let r=0,i;for(let a=e.length-1;a>=0;--a){let o=e[a];if(!(!o||o.toolName!==t||o.argsHash!==n)&&!(typeof o.resultHash!=`string`||!o.resultHash)){if(!i){i=o.resultHash,r=1;continue}if(o.resultHash!==i)break;r+=1}}return{count:r,latestResultHash:i}}function g(e,t){let n=e.at(-1);if(!n)return{count:0,noProgressEvidence:!1};let r,i;for(let t=e.length-2;t>=0;--t){let a=e[t];if(a&&a.argsHash!==n.argsHash){r=a.argsHash,i=a.toolName;break}}if(!r||!i)return{count:0,noProgressEvidence:!1};let a=0;for(let t=e.length-1;t>=0;--t){let i=e[t];if(!i)continue;let o=a%2==0?n.argsHash:r;if(i.argsHash!==o)break;a+=1}if(a<2||t!==r)return{count:0,noProgressEvidence:!1};let o=Math.max(0,e.length-a),s,c,l=!0;for(let t=o;t<e.length;t+=1){let i=e[t];if(i){if(!i.resultHash){l=!1;break}if(i.argsHash===n.argsHash){if(!s)s=i.resultHash;else if(s!==i.resultHash){l=!1;break}continue}if(i.argsHash===r){if(!c)c=i.resultHash;else if(c!==i.resultHash){l=!1;break}continue}l=!1;break}}return(!s||!c)&&(l=!1),{count:a+1,pairedToolName:n.toolName,pairedSignature:n.argsHash,noProgressEvidence:l}}function _(e,t){return[e,t].toSorted().join(`|`)}function v(e,t,n,i){let a=o(i);if(!a.enabled)return{stuck:!1};let c=e.toolCallHistory??[],l=s(t,n),u=h(c,t,l),f=u.count,p=d(t,n),m=g(c,l);if(f>=a.globalCircuitBreakerThreshold)return r.error(`Global circuit breaker triggered: ${t} repeated ${f} times with no progress`),{stuck:!0,level:`critical`,detector:`global_circuit_breaker`,count:f,message:`CRITICAL: ${t} has repeated identical no-progress outcomes ${f} times. Session execution blocked by global circuit breaker to prevent runaway loops.`,warningKey:`global:${t}:${l}:${u.latestResultHash??`none`}`};if(p&&a.detectors.knownPollNoProgress&&f>=a.criticalThreshold)return r.error(`Critical polling loop detected: ${t} repeated ${f} times`),{stuck:!0,level:`critical`,detector:`known_poll_no_progress`,count:f,message:`CRITICAL: Called ${t} with identical arguments and no progress ${f} times. This appears to be a stuck polling loop. Session execution blocked to prevent resource waste.`,warningKey:`poll:${t}:${l}:${u.latestResultHash??`none`}`};if(p&&a.detectors.knownPollNoProgress&&f>=a.warningThreshold)return r.warn(`Polling loop warning: ${t} repeated ${f} times`),{stuck:!0,level:`warning`,detector:`known_poll_no_progress`,count:f,message:`WARNING: You have called ${t} ${f} times with identical arguments and no progress. Stop polling and either (1) increase wait time between checks, or (2) report the task as failed if the process is stuck.`,warningKey:`poll:${t}:${l}:${u.latestResultHash??`none`}`};let v=m.pairedSignature?`pingpong:${_(l,m.pairedSignature)}`:`pingpong:${t}:${l}`;if(a.detectors.pingPong&&m.count>=a.criticalThreshold&&m.noProgressEvidence)return r.error(`Critical ping-pong loop detected: alternating calls count=${m.count} currentTool=${t}`),{stuck:!0,level:`critical`,detector:`ping_pong`,count:m.count,message:`CRITICAL: You are alternating between repeated tool-call patterns (${m.count} consecutive calls) with no progress. This appears to be a stuck ping-pong loop. Session execution blocked to prevent resource waste.`,pairedToolName:m.pairedToolName,warningKey:v};if(a.detectors.pingPong&&m.count>=a.warningThreshold)return r.warn(`Ping-pong loop warning: alternating calls count=${m.count} currentTool=${t}`),{stuck:!0,level:`warning`,detector:`ping_pong`,count:m.count,message:`WARNING: You are alternating between repeated tool-call patterns (${m.count} consecutive calls). This looks like a ping-pong loop; stop retrying and report the task as failed.`,pairedToolName:m.pairedToolName,warningKey:v};let y=c.filter(e=>e.toolName===t&&e.argsHash===l).length;return!p&&a.detectors.genericRepeat&&y>=a.warningThreshold?(r.warn(`Loop warning: ${t} called ${y} times with identical arguments`),{stuck:!0,level:`warning`,detector:`generic_repeat`,count:y,message:`WARNING: You have called ${t} ${y} times with identical arguments. If this is not making progress, stop retrying and report the task as failed.`,warningKey:`generic:${t}:${l}`}):{stuck:!1}}function y(e,t,n,r,i){let a=o(i);e.toolCallHistory||=[],e.toolCallHistory.push({toolName:t,argsHash:s(t,n),toolCallId:r,timestamp:Date.now()}),e.toolCallHistory.length>a.historySize&&e.toolCallHistory.shift()}function b(e,t){let n=o(t.config),r=m(t.toolName,t.toolParams,t.result,t.error);if(!r)return;e.toolCallHistory||=[];let i=s(t.toolName,t.toolParams),a=!1;for(let n=e.toolCallHistory.length-1;n>=0;--n){let o=e.toolCallHistory[n];if(o&&!(t.toolCallId&&o.toolCallId!==t.toolCallId)&&!(o.toolName!==t.toolName||o.argsHash!==i)&&o.resultHash===void 0){o.resultHash=r,a=!0;break}}a||e.toolCallHistory.push({toolName:t.toolName,argsHash:i,toolCallId:t.toolCallId,resultHash:r,timestamp:Date.now()}),e.toolCallHistory.length>n.historySize&&e.toolCallHistory.splice(0,e.toolCallHistory.length-n.historySize)}exports.detectToolCallLoop=v,exports.getDiagnosticSessionState=t.p,exports.logToolLoopAction=t.s,exports.recordToolCall=y,exports.recordToolCallOutcome=b;
3
- //# sourceMappingURL=pi-tools.before-tool-call.runtime-CYleOK1-.cjs.map