squidclaw 3.0.25 → 3.0.27

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 (398) hide show
  1. package/dist/{accounts-BH9Qo1sQ.js → accounts-BK8I0Svb.js} +7 -7
  2. package/dist/{accounts-s5e9zidf.js → accounts-C7pGQPcS.js} +2 -2
  3. package/dist/{accounts-Cuwg9Tan.js → accounts-DeqNOvBo.js} +1 -1
  4. package/dist/{accounts-Bkb-J8V6.js → accounts-DjhBQg_8.js} +2 -2
  5. package/dist/{accounts-B6F_XCgS.js → accounts-DwGoZKGm.js} +17 -17
  6. package/dist/{accounts-B1RxFghM.js → accounts-KzgPbLHP.js} +1 -1
  7. package/dist/{acp-cli-Ch55Vzud.js → acp-cli-BwG98FYT.js} +8 -8
  8. package/dist/{active-listener-6-Svu8Dx.js → active-listener-DPc_PGsA.js} +2 -2
  9. package/dist/{agent-scope-nEVgVklg.js → agent-scope-Cq4vDGrK.js} +17 -17
  10. package/dist/{agents-B-ig6ydU.js → agents-SHmmlinC.js} +14 -14
  11. package/dist/{agents.config-eMSUW-iw.js → agents.config-C4bgEbdA.js} +1 -1
  12. package/dist/{agents.config-w_Z6Fb4-.js → agents.config-CKbSiVW4.js} +2 -2
  13. package/dist/{api-key-rotation-JPmjv-c0.js → api-key-rotation-6i41mEc9.js} +1 -1
  14. package/dist/{api-key-rotation-TRwuCWbu.js → api-key-rotation-DVyYtQxC.js} +2 -2
  15. package/dist/{audio-preflight-1KULThhV.js → audio-preflight-BUCBED7N.js} +32 -32
  16. package/dist/{audio-preflight-CZ--cSZh.js → audio-preflight-C-JCwUKe.js} +34 -34
  17. package/dist/{audio-transcription-runner-C3N9eAGM.js → audio-transcription-runner-Cv0Q47cM.js} +12 -12
  18. package/dist/{audio-transcription-runner-D-uxpkbd.js → audio-transcription-runner-DvQksGUE.js} +23 -23
  19. package/dist/{audit-JLT1FqTt.js → audit-DLTgNDFw.js} +29 -29
  20. package/dist/{audit-membership-runtime-w23FnNAN.js → audit-membership-runtime-DyLj-uhz.js} +4 -4
  21. package/dist/{auth-BlP9BwaD.js → auth-CuObxnC4.js} +1 -1
  22. package/dist/{auth-choice-Czu7271G.js → auth-choice-BVQQneHM.js} +13 -13
  23. package/dist/{auth-choice-ORZHjbsv.js → auth-choice-DOEtSP7U.js} +11 -11
  24. package/dist/{auth-choice-D2JrMJn-.js → auth-choice-nbbKEYIm.js} +1 -1
  25. package/dist/{auth-choice.apply-helpers-CdoXMtxm.js → auth-choice.apply-helpers-p1y_DmDT.js} +1 -1
  26. package/dist/{auth-profiles-9T4j6jMy.js → auth-profiles-CX4YYu7Z.js} +16 -16
  27. package/dist/{auth-token-BFc70pes.js → auth-token-Dlk7MMsC.js} +1 -1
  28. package/dist/{banner-CwNmI5G-.js → banner-CgxbDb-A.js} +2 -2
  29. package/dist/{bonjour-discovery-eqJcK09r.js → bonjour-discovery-BHz2I6_W.js} +1 -1
  30. package/dist/{browser-cli-DCDPC5sg.js → browser-cli-Dvwk4zAD.js} +12 -12
  31. package/dist/build-info.json +3 -3
  32. package/dist/bundled/boot-md/handler.js +51 -51
  33. package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
  34. package/dist/bundled/command-logger/handler.js +2 -2
  35. package/dist/bundled/session-memory/handler.js +134 -63
  36. package/dist/{call-D7jOWSFr.js → call-BlWEBz99.js} +10 -10
  37. package/dist/{channel-account-context-DJ3rHgVO.js → channel-account-context-CQ6rCiGI.js} +5 -5
  38. package/dist/{channel-activity-wuB3-cfR.js → channel-activity-BZKeZQH-.js} +1 -1
  39. package/dist/{channel-activity-CxJbx4sD.js → channel-activity-CPpt4XaL.js} +3 -3
  40. package/dist/{channel-options-BS7BSU_5.js → channel-options-DD8pn51g.js} +3 -3
  41. package/dist/{channel-options-SijIkAlT.js → channel-options-DORsSb06.js} +1 -1
  42. package/dist/{channel-selection-CFWQq1nS.js → channel-selection-BqwS1Rlq.js} +1 -1
  43. package/dist/{channel-web-7t1a2N13.js → channel-web-BvloWcnP.js} +1 -1
  44. package/dist/{channel-web-C1qYz-HK.js → channel-web-C9gRSNfc.js} +17 -17
  45. package/dist/{channels-cli-CVNqp5q7.js → channels-cli-DiA6DH6p.js} +93 -93
  46. package/dist/{channels-cli-DYaFNMme.js → channels-cli-DqyjCJAf.js} +6 -6
  47. package/dist/{channels-status-issues-Erzzhl2e.js → channels-status-issues-Dz1_R7Ah.js} +1 -1
  48. package/dist/{chrome-DiktJpMU.js → chrome-CoRiYsNu.js} +4 -4
  49. package/dist/{chrome-Qbvnl6so.js → chrome-OgCChbC_.js} +18 -18
  50. package/dist/{clawbot-cli-C3bt-FEP.js → clawbot-cli-2Zlim_pH.js} +11 -11
  51. package/dist/cli/daemon-cli.js +1 -1
  52. package/dist/{cli-Jyqv2jm8.js → cli-BNZDUFuk.js} +73 -73
  53. package/dist/{cli-Dlc9IFWZ.js → cli-DCsEN1fp.js} +1 -1
  54. package/dist/{client-COy24r9W.js → client-G9E5HGM2.js} +2 -2
  55. package/dist/{command-registry-DCojicSG.js → command-registry-DntrnfSZ.js} +11 -11
  56. package/dist/{command-secret-targets-CZjP-Bm5.js → command-secret-targets-DAu5nw-j.js} +4 -4
  57. package/dist/{commands-DDHiW-As.js → commands-CnX9I_l4.js} +1 -1
  58. package/dist/{commands-registry-B44COZFz.js → commands-registry-BJjv8_oR.js} +4 -4
  59. package/dist/{commands-registry--ITOJ-cM.js → commands-registry-_r_JONI4.js} +3 -3
  60. package/dist/{completion-cli-B8xjpHDs.js → completion-cli-0kzbsPCE.js} +1 -1
  61. package/dist/{completion-cli-DCTv7Ejv.js → completion-cli-ZG2HRTZw.js} +13 -13
  62. package/dist/{config-cli-D4Rxoozg.js → config-cli-B70aSBjJ.js} +1 -1
  63. package/dist/{config-cli-CSPSSP_R.js → config-cli-DyB3LaLr.js} +7 -7
  64. package/dist/{config-guard-CFauJm79.js → config-guard-BHy2f0hU.js} +3 -3
  65. package/dist/{config-validation-Bt3LfFJ0.js → config-validation-BkvDORAk.js} +3 -3
  66. package/dist/{configure-DOiI8_8c.js → configure-DFjC_USC.js} +3 -3
  67. package/dist/{configure-DAol2gT6.js → configure-HAlDPfOO.js} +17 -17
  68. package/dist/{control-ui-assets-d6VtDSeo.js → control-ui-assets-BYEy341x.js} +1 -1
  69. package/dist/{cron-cli-yS1ww1k2.js → cron-cli-QwZcnjJc.js} +11 -11
  70. package/dist/{daemon-cli-B-yZvTqZ.js → daemon-cli-kJfDhzr8.js} +15 -15
  71. package/dist/{daemon-install-CbPLNiIP.js → daemon-install-Chxlu9Kv.js} +4 -4
  72. package/dist/{daemon-install-helpers-CZDVO_MU.js → daemon-install-helpers-CJtiW2RE.js} +11 -11
  73. package/dist/{deliver-D-IQEJ52.js → deliver-CL2RW5UB.js} +7 -7
  74. package/dist/{deliver-BC5egJvm.js → deliver-DMTUTpTM.js} +21 -21
  75. package/dist/deliver-runtime-B80olQwJ.js +36 -0
  76. package/dist/deliver-runtime-C08pF1_3.js +61 -0
  77. package/dist/deps-send-discord.runtime-GIuvX7Xw.js +26 -0
  78. package/dist/deps-send-discord.runtime-r80y9aXF.js +36 -0
  79. package/dist/deps-send-imessage.runtime-B3TC7G80.js +25 -0
  80. package/dist/deps-send-imessage.runtime-BmocBgPM.js +35 -0
  81. package/dist/deps-send-signal.runtime-ByJt6qz-.js +34 -0
  82. package/dist/deps-send-signal.runtime-CuVJyw7n.js +24 -0
  83. package/dist/deps-send-slack.runtime-C3UUEG9J.js +32 -0
  84. package/dist/deps-send-slack.runtime-cbfFoLZ4.js +22 -0
  85. package/dist/{deps-send-telegram.runtime-Irv0ky5l.js → deps-send-telegram.runtime-BHaZAs2h.js} +16 -16
  86. package/dist/deps-send-telegram.runtime-CRyP-xDQ.js +27 -0
  87. package/dist/deps-send-whatsapp.runtime-B6WZfxsU.js +119 -0
  88. package/dist/{deps-send-whatsapp.runtime-CETLGt-t.js → deps-send-whatsapp.runtime-BTVEWhWJ.js} +3 -3
  89. package/dist/deps-send-whatsapp.runtime-BdydhhI-.js +60 -0
  90. package/dist/{deps-send-whatsapp.runtime-CrxkfP31.js → deps-send-whatsapp.runtime-gVafyT5b.js} +2 -2
  91. package/dist/{devices-cli-CPgutgUT.js → devices-cli-DlQGTogF.js} +8 -8
  92. package/dist/{diagnostic-B4w80e4D.js → diagnostic-CLEtu0MC.js} +1 -1
  93. package/dist/{diagnostic-C2lklhkn.js → diagnostic-CnVwZNbm.js} +2 -2
  94. package/dist/{diagnostics-m7hHHbuE.js → diagnostics--O6mo6KH.js} +5 -5
  95. package/dist/{directory-cli-DqObADBL.js → directory-cli-K9qIwxYa.js} +7 -7
  96. package/dist/{dns-cli-CKbwsWBv.js → dns-cli-qtX-WNMF.js} +5 -5
  97. package/dist/{dock-W3cGg46W.js → dock-DJJAj46v.js} +4 -4
  98. package/dist/{docs-cli-BpZtes_j.js → docs-cli--gGxz79Z.js} +4 -4
  99. package/dist/{doctor-completion--7PR_Vqz.js → doctor-completion-B6t4VCC2.js} +2 -2
  100. package/dist/{doctor-completion-DhLEFUhN.js → doctor-completion-Bdaa-Pnx.js} +1 -1
  101. package/dist/{doctor-config-flow-BDF7TR6O.js → doctor-config-flow-C-h3yV4z.js} +15 -15
  102. package/dist/{enable--Q7yLTZm.js → enable-C8FNY18p.js} +1 -1
  103. package/dist/entry.js +2 -2
  104. package/dist/{errors-DfgAh2Ml.js → errors-kkRuS2Cs.js} +1 -1
  105. package/dist/{exec-approvals-allowlist-B9bcJkGP.js → exec-approvals-allowlist-CtSREgYh.js} +1 -1
  106. package/dist/{exec-approvals-cli-homtziYt.js → exec-approvals-cli-BmM4RpVn.js} +16 -16
  107. package/dist/{exec-safe-bin-runtime-policy-DECo77U6.js → exec-safe-bin-runtime-policy-CfQeDABF.js} +2 -2
  108. package/dist/extensionAPI.js +1 -1
  109. package/dist/{fetch-lq0SDLLE.js → fetch-CtoC2wgs.js} +3 -3
  110. package/dist/{fetch-b8tSR7_e.js → fetch-DP-JjB6Z.js} +5 -5
  111. package/dist/{fetch-guard-D16tjNsZ.js → fetch-guard-BDy975wP.js} +2 -2
  112. package/dist/{fetch-guard-CbtWqa1E.js → fetch-guard-Dvzi3MjK.js} +1 -1
  113. package/dist/{frontmatter-CjKtFduT.js → frontmatter-Cq1TcIQ2.js} +3 -3
  114. package/dist/{fs-safe-CwHbZdFH.js → fs-safe-BoB4X3GD.js} +4 -4
  115. package/dist/{fs-safe-BPQ-per2.js → fs-safe-DPYj7h8A.js} +24 -24
  116. package/dist/{gateway-cli-B3oqskb4.js → gateway-cli-BvESvgyp.js} +153 -153
  117. package/dist/{gateway-cli-BpHskeDd.js → gateway-cli-DTUsG7Sq.js} +8 -8
  118. package/dist/{gateway-rpc-BBBN9ZJk.js → gateway-rpc-D0AmaBzR.js} +1 -1
  119. package/dist/{github-copilot-token-Cw3tAXM9.js → github-copilot-token-B5cPlwaz.js} +7 -7
  120. package/dist/{health-TmpUGSqu.js → health-ChHiOfOC.js} +1 -1
  121. package/dist/{health-CjXrJkCb.js → health-LxEzhXog.js} +11 -11
  122. package/dist/{hooks-cli-DsDV-Pxz.js → hooks-cli-B2_cA6tp.js} +2 -2
  123. package/dist/{hooks-cli--aKmd8c9.js → hooks-cli-CLigFQsx.js} +81 -81
  124. package/dist/{hooks-status-BlgSVDvN.js → hooks-status-DMFBAUq8.js} +1 -1
  125. package/dist/{image-BcYt63Jx.js → image-DSWTfuxv.js} +5 -5
  126. package/dist/{image-ByqExb8z.js → image-kKMG59st.js} +6 -6
  127. package/dist/{image-ops-LFsSCTyI.js → image-ops-B2uuLIGD.js} +10 -10
  128. package/dist/{image-ops-BoN1E_WZ.js → image-ops-Dg8iraUV.js} +2 -2
  129. package/dist/image-runtime-BqIv7p_K.js +29 -0
  130. package/dist/image-runtime-cza2NTiZ.js +55 -0
  131. package/dist/index.js +6 -6
  132. package/dist/{inspect-CzsXBsew.js → inspect-4c1uL0x5.js} +4 -4
  133. package/dist/{install-safe-path-DqI19VEv.js → install-safe-path-3muwy3fu.js} +25 -25
  134. package/dist/{installs-P-pYAJm1.js → installs-BiQDtPF0.js} +9 -9
  135. package/dist/{ipv4-B95173MB.js → ipv4-sHllwvAI.js} +1 -1
  136. package/dist/{ir-C7He5vmn.js → ir-BukzlgSp.js} +8 -8
  137. package/dist/{ir-Dut0zXyS.js → ir-CKK03mBV.js} +8 -8
  138. package/dist/{issue-format-CbTfB8Hy.js → issue-format-DCcINW-9.js} +1 -1
  139. package/dist/{json-files-rR19q30D.js → json-files-CuJjdF_0.js} +8 -8
  140. package/dist/{legacy-names-B0wgIP0Q.js → legacy-names-aGJJuzM_.js} +1 -1
  141. package/dist/{lifecycle-core-ChKClWdw.js → lifecycle-core-CqFEhwHn.js} +5 -5
  142. package/dist/llm-slug-generator.js +51 -51
  143. package/dist/{logger-oGKcCLZ5.js → logger-CnTSBL7T.js} +7 -7
  144. package/dist/{login-DJ357UQV.js → login-CeKDrz6_.js} +5 -5
  145. package/dist/{login-qr-CX0rs3A6.js → login-qr-B8P_EAd-.js} +6 -6
  146. package/dist/{login-qr-C0fDBnpM.js → login-qr-KbOpR0GQ.js} +10 -10
  147. package/dist/{login-CjzRATwO.js → login-zoeewfBu.js} +3 -3
  148. package/dist/{logs-cli-DvHsw1WZ.js → logs-cli-D30BUN6y.js} +9 -9
  149. package/dist/{manager-BVfTfggO.js → manager-5OzUkYLf.js} +14 -14
  150. package/dist/{manager-BPGhs30n.js → manager-DINhLnMi.js} +13 -13
  151. package/dist/{manager-runtime-BXJJSlzC.js → manager-runtime-BxXpVt3x.js} +9 -9
  152. package/dist/manager-runtime-D6ckUNSs.js +18 -0
  153. package/dist/{manifest-registry-1ACGW3OR.js → manifest-registry-7kwtbCH-.js} +1 -1
  154. package/dist/{memory-cli-u8eyO3Ec.js → memory-cli-Dj8tyFtt.js} +12 -12
  155. package/dist/{model-D7hZpWTB.js → model-B8p-EsdJ.js} +2 -2
  156. package/dist/{model-catalog-Drh9Rois.js → model-catalog-BWuvEv1x.js} +3 -3
  157. package/dist/{model-picker-DK_vvKCV.js → model-picker-CLhaaagi.js} +4 -4
  158. package/dist/{model-selection-CHnojCCK.js → model-selection-DuNLFQPR.js} +43 -43
  159. package/dist/{models-CFXLX9IF.js → models-BV4zhGnq.js} +17 -17
  160. package/dist/{models-cli-CrR1RN3j.js → models-cli-BNn-0rl0.js} +2 -2
  161. package/dist/{models-cli-PHQyKESa.js → models-cli-Dpj_xSPh.js} +78 -78
  162. package/dist/{models-config-DAastTau.js → models-config-poV-4Xlx.js} +6 -6
  163. package/dist/{net-CIh5ellr.js → net-CCnbGop3.js} +2 -2
  164. package/dist/{node-cli-o9qcU9GJ.js → node-cli-C8hvYquX.js} +33 -33
  165. package/dist/{node-command-policy-BeTSnoyk.js → node-command-policy-B_D5ucTj.js} +1 -1
  166. package/dist/{node-service-OVe0_CIs.js → node-service-Z0JprJda.js} +1 -1
  167. package/dist/{nodes-cli-kGx_Qa3c.js → nodes-cli-IIc8fTKT.js} +16 -16
  168. package/dist/{nodes-screen-BrMJzhot.js → nodes-screen-DFFmbaXE.js} +7 -7
  169. package/dist/{npm-pack-install-Dn3FiWXB.js → npm-pack-install-B887us7R.js} +18 -18
  170. package/dist/{npm-resolution-CPk7dS7F.js → npm-resolution-CKHXw_Cx.js} +1 -1
  171. package/dist/{npm-resolution-ky_uAlXE.js → npm-resolution-CnaTt2aT.js} +4 -4
  172. package/dist/{onboard-DUnBamC0.js → onboard-C4ayp9K2.js} +2 -2
  173. package/dist/{onboard-D1Qy64JK.js → onboard-J6n7v4Bo.js} +6 -6
  174. package/dist/{onboard-channels-D45grihx.js → onboard-channels-BHxe-ulR.js} +1 -1
  175. package/dist/{onboard-channels-oJCC_sJX.js → onboard-channels-Csy6Ng39.js} +21 -21
  176. package/dist/{onboard-custom-CRpsaM3g.js → onboard-custom-CZtjqrY7.js} +4 -4
  177. package/dist/{onboard-helpers-DwEZeaoe.js → onboard-helpers-BP429__H.js} +10 -10
  178. package/dist/{onboard-hooks-DyxckB2C.js → onboard-hooks-CTbjgLDl.js} +4 -4
  179. package/dist/{onboard-remote-ZgpWNq9Z.js → onboard-remote-BlZB0AE9.js} +4 -4
  180. package/dist/{onboard-skills-DEijVfCg.js → onboard-skills-BT2YOXeP.js} +4 -4
  181. package/dist/{onboarding-Mxqy4O1E.js → onboarding-BKxsnOPg.js} +14 -14
  182. package/dist/{onboarding-CyCSQ__q.js → onboarding-Cx8FcYRx.js} +3 -3
  183. package/dist/{onboarding.finalize-CbMq7C4K.js → onboarding.finalize-BxXIISee.js} +5 -5
  184. package/dist/{onboarding.finalize-DiOMx6A5.js → onboarding.finalize-DhPoPhfX.js} +90 -90
  185. package/dist/{onboarding.gateway-config-9wkBCzzO.js → onboarding.gateway-config-C6N8r5Is.js} +18 -18
  186. package/dist/{onboarding.secret-input-DRnoQSlI.js → onboarding.secret-input-BTK1IG-J.js} +1 -1
  187. package/dist/{openai-model-default-DqE4bNtd.js → openai-model-default-COzeuAI4.js} +2 -2
  188. package/dist/{outbound-CwzUo-rx.js → outbound-B7m9Vcd2.js} +3 -3
  189. package/dist/{outbound-qTioiTJg.js → outbound-C9svt6RH.js} +6 -6
  190. package/dist/{outbound-attachment-rlW7G5df.js → outbound-attachment-DwupUxYF.js} +2 -2
  191. package/dist/{outbound-attachment-Bedqixj2.js → outbound-attachment-fdEhzyl9.js} +2 -2
  192. package/dist/{pairing-cli-CsYP0at7.js → pairing-cli-NhoRKes6.js} +8 -8
  193. package/dist/{pairing-labels-CX4CtqRa.js → pairing-labels-CnTvFrUT.js} +1 -1
  194. package/dist/{pairing-store-BC4mnG9S.js → pairing-store-D0eOXyby.js} +3 -3
  195. package/dist/{path-alias-guards-Cpsiv2KL.js → path-alias-guards-DORgbZ1w.js} +1 -1
  196. package/dist/{path-alias-guards-DeOVetT7.js → path-alias-guards-vfYYQFIg.js} +3 -3
  197. package/dist/{path-safety-D7CjFQvf.js → path-safety-C95DzArw.js} +1 -1
  198. package/dist/{paths-CSdAWKDO.js → paths-DA5srn0U.js} +5 -5
  199. package/dist/{paths-CXClY8zC.js → paths-DSd911Oe.js} +4 -4
  200. package/dist/{paths-D6mnO6Ni.js → paths-DfuVHiHu.js} +9 -9
  201. package/dist/{pi-embedded-DUtpCH0X.js → pi-embedded-CpNkNjFv.js} +171 -166
  202. package/dist/{pi-embedded-BN8fghaF.js → pi-embedded-D6gxI0xB.js} +13 -8
  203. package/dist/{pi-embedded-helpers-CYR1UemI.js → pi-embedded-helpers-Di58J7Eh.js} +52 -52
  204. package/dist/{pi-embedded-helpers-DtCOZSv-.js → pi-embedded-helpers-qCAK_a65.js} +6 -6
  205. package/dist/{pi-model-discovery-Cr1q2cJt.js → pi-model-discovery-CKUePiDc.js} +1 -1
  206. package/dist/{pi-model-discovery-o-WX5w2t.js → pi-model-discovery-V-InbjOM.js} +7 -7
  207. package/dist/pi-model-discovery-runtime--t6tAlar.js +11 -0
  208. package/dist/{pi-model-discovery-runtime-BHmdAKBK.js → pi-model-discovery-runtime-CNLKih0w.js} +5 -5
  209. package/dist/{pi-tools.before-tool-call.runtime-duKHqrMc.js → pi-tools.before-tool-call.runtime-Bba7rXQq.js} +5 -5
  210. package/dist/{pi-tools.before-tool-call.runtime-B_LUttg1.js → pi-tools.before-tool-call.runtime-Bpk4qTgV.js} +9 -9
  211. package/dist/{pi-tools.policy-D3RA94WF.js → pi-tools.policy-BwWnFLLV.js} +5 -5
  212. package/dist/{plugin-auto-enable-a3TK3OPT.js → plugin-auto-enable-DJkHW_LG.js} +3 -3
  213. package/dist/{plugin-registry-CXm125Uz.js → plugin-registry-CJ9E3pVF.js} +1 -1
  214. package/dist/{plugin-registry-CFqqDqQV.js → plugin-registry-DbWGikL_.js} +3 -3
  215. package/dist/plugin-sdk/{channel-web-CbeCrQ4C.js → channel-web-C14ArXJA.js} +1 -1
  216. package/dist/plugin-sdk/{channel-web-CqiSEc52.js → channel-web-K0nTiIAp.js} +1 -1
  217. package/dist/plugin-sdk/compat.js +2 -2
  218. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-DvxhnHR_.js → deps-send-whatsapp.runtime-DzQP5jh0.js} +3 -3
  219. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-JKmTtCFM.js → deps-send-whatsapp.runtime-H-PnN716.js} +3 -3
  220. package/dist/plugin-sdk/index.js +2 -2
  221. package/dist/plugin-sdk/{reply-BczXGzC_.js → reply-BF5OTD_L.js} +13 -8
  222. package/dist/plugin-sdk/{reply-Dfjh1YtV.js → reply-COSG33YP.js} +13 -8
  223. package/dist/plugin-sdk/signal.js +2 -2
  224. package/dist/plugin-sdk/{slash-dispatch.runtime-DOo1IzuY.js → slash-dispatch.runtime-CyZxEAJd.js} +1 -1
  225. package/dist/plugin-sdk/{slash-dispatch.runtime-JfFr7bNy.js → slash-dispatch.runtime-Rs2PDg_H.js} +1 -1
  226. package/dist/plugin-sdk/{subagent-registry-runtime-DVl5xKOW.js → subagent-registry-runtime-5SKqbH1r.js} +1 -1
  227. package/dist/plugin-sdk/{subagent-registry-runtime-DLvup9ph.js → subagent-registry-runtime-B9vyMA3A.js} +1 -1
  228. package/dist/plugin-sdk/{web-CNY_ky8h.js → web-BiiXAqmT.js} +2 -2
  229. package/dist/plugin-sdk/{web-C2Sj2WW0.js → web-zcehLsEt.js} +2 -2
  230. package/dist/plugin-sdk/whatsapp.js +2 -2
  231. package/dist/{plugins-Bc7YM9X-.js → plugins-BDTkSIi7.js} +2 -2
  232. package/dist/{plugins-AqsVZZk3.js → plugins-DvejjZnJ.js} +11 -11
  233. package/dist/{plugins-cli-C0WKWrZo.js → plugins-cli-BSLJbHhh.js} +2 -2
  234. package/dist/{plugins-cli-vQi8tFye.js → plugins-cli-CIyP8IsD.js} +83 -83
  235. package/dist/{ports-DMeUt80n.js → ports-0jLyYbvQ.js} +2 -2
  236. package/dist/{ports-BzfeaNjw.js → ports-Be82TlEg.js} +1 -1
  237. package/dist/{program-Nott_VTb.js → program-DQjjnBkB.js} +81 -81
  238. package/dist/{program-context-DfmCIQ91.js → program-context-jw4pIT7h.js} +17 -17
  239. package/dist/{prompt-select-styled-7mnlZgrQ.js → prompt-select-styled-BeXqhuug.js} +40 -40
  240. package/dist/{prompt-select-styled-ApPSadr5.js → prompt-select-styled-Uc8ws2hS.js} +4 -4
  241. package/dist/{provider-auth-helpers-DpOFkV28.js → provider-auth-helpers-B4o2t23Z.js} +1 -1
  242. package/dist/{provider-auth-helpers-_77rN3Zc.js → provider-auth-helpers-m2vq3OJC.js} +5 -5
  243. package/dist/{proxy-env-BiKHVg2h.js → proxy-env-CQTuxZoS.js} +1 -1
  244. package/dist/{proxy-env-DXXfs2WL.js → proxy-env-D-fike7s.js} +1 -1
  245. package/dist/{proxy-fetch-C2v-Utgg.js → proxy-fetch-lH6RsRTE.js} +1 -1
  246. package/dist/{push-apns-Ce1zzNYB.js → push-apns-C3QRVcrx.js} +5 -5
  247. package/dist/{push-apns-Ci2sdIKf.js → push-apns-DZW7HOYq.js} +1 -1
  248. package/dist/{pw-ai-1NQPuno2.js → pw-ai-B8ymIYub.js} +14 -14
  249. package/dist/{pw-ai-CAhTwexx.js → pw-ai-wo5t_KO_.js} +18 -18
  250. package/dist/{qmd-manager-CO-shcLU.js → qmd-manager-BN0siR2Z.js} +10 -10
  251. package/dist/{qmd-manager-BsL_hcOB.js → qmd-manager-BkSWV1Q1.js} +20 -20
  252. package/dist/{qr-cli-DzjBpGix.js → qr-cli-DSMYIp-D.js} +2 -2
  253. package/dist/{query-expansion-C0HUJbRn.js → query-expansion-DI9INxTg.js} +12 -12
  254. package/dist/{query-expansion-DlQOkf-g.js → query-expansion-Dzxt6kXo.js} +6 -6
  255. package/dist/{redact-NmPEVjIo.js → redact-DvzicBMu.js} +1 -1
  256. package/dist/{redact-snapshot-C0McNGqh.js → redact-snapshot-B2YFI3cO.js} +1 -1
  257. package/dist/{register.agent-DtjNdvUh.js → register.agent-Bpp6PZCy.js} +94 -94
  258. package/dist/{register.agent-CY6R-7fn.js → register.agent-iwQM76PJ.js} +6 -6
  259. package/dist/{register.configure-DT1RLeTR.js → register.configure-BF2wUdYo.js} +7 -7
  260. package/dist/register.configure-CRZBn5QG.js +165 -0
  261. package/dist/{register.maintenance-DERKsSgi.js → register.maintenance-CY58DnhU.js} +95 -95
  262. package/dist/{register.maintenance-YHXmOQzf.js → register.maintenance-DsI8Ks22.js} +7 -7
  263. package/dist/{register.message-DkYxt6gZ.js → register.message-BNyQROsP.js} +74 -74
  264. package/dist/{register.message-BuoFjRqA.js → register.message-hQSgElgK.js} +2 -2
  265. package/dist/{register.onboard-BtfW83M0.js → register.onboard-DsHEjOlQ.js} +18 -18
  266. package/dist/{register.onboard-BJaRMtxU.js → register.onboard-TE1k9WgU.js} +2 -2
  267. package/dist/{register.setup-Ba9gMkRk.js → register.setup-BkSWcd_T.js} +21 -21
  268. package/dist/{register.setup-Drc55K_w.js → register.setup-CA8_egXk.js} +2 -2
  269. package/dist/{register.status-health-sessions-BILdpWJV.js → register.status-health-sessions-Ck1506Mz.js} +88 -88
  270. package/dist/{register.status-health-sessions-xgC_gtEM.js → register.status-health-sessions-D74vOhub.js} +3 -3
  271. package/dist/{register.subclis-Dfm_Zu31.js → register.subclis-D10eRT52.js} +31 -31
  272. package/dist/{reply-DwjHsBuj.js → reply-m8ZD17d0.js} +13 -8
  273. package/dist/{rpc-mau2U4RG.js → rpc-DA9IhLVG.js} +1 -1
  274. package/dist/{run-main-BF7ybLIy.js → run-main-BmvUIN8f.js} +93 -93
  275. package/dist/{run-with-concurrency-FczpX8ng.js → run-with-concurrency-BFR3ReeF.js} +4 -4
  276. package/dist/{runtime-Bcmv4Epp.js → runtime-BnbzNRr6.js} +3 -3
  277. package/dist/{runtime-config-collectors-Bsjz4isf.js → runtime-config-collectors-CXJdhHRo.js} +1 -1
  278. package/dist/{runtime-whatsapp-login.runtime-COUEKxmy.js → runtime-whatsapp-login.runtime-DRoK8G8H.js} +7 -7
  279. package/dist/runtime-whatsapp-login.runtime-DxV9iv6l.js +13 -0
  280. package/dist/{runtime-whatsapp-outbound.runtime-BaWH6-ns.js → runtime-whatsapp-outbound.runtime-C9OiwkWh.js} +15 -15
  281. package/dist/runtime-whatsapp-outbound.runtime-DQqIlwhS.js +22 -0
  282. package/dist/{sandbox-ixDhkfHu.js → sandbox-C3TbYIHd.js} +18 -18
  283. package/dist/{sandbox-cli-DOxm7fjR.js → sandbox-cli-BwK2slfh.js} +25 -25
  284. package/dist/{secrets-cli-DvXznMUb.js → secrets-cli-Beu2lcrf.js} +11 -11
  285. package/dist/{security-cli-3WOXvJR-.js → security-cli-CcpKH_lC.js} +42 -42
  286. package/dist/{send-Bx9CqcZr.js → send-4nRsZJXH.js} +7 -7
  287. package/dist/{send-D5D0ZGht.js → send-BGlcHjUD.js} +26 -26
  288. package/dist/{send-DtHQ7_6Z.js → send-BTUU1jWM.js} +8 -8
  289. package/dist/{send-BuBTLRMz.js → send-CLI3CiQv.js} +6 -6
  290. package/dist/{send-Do2preUU.js → send-DEs83M9V.js} +11 -11
  291. package/dist/{send-B9H0BkfO.js → send-DdBbRpTP.js} +6 -6
  292. package/dist/{send-BPgrWmUX.js → send-EVcbFVqn.js} +5 -5
  293. package/dist/{send-BVyLW1cn.js → send-RDqyJwZx.js} +8 -8
  294. package/dist/{send-B5QEmMJ4.js → send-dTQd-IyJ.js} +5 -5
  295. package/dist/{send-BpkluEZ5.js → send-z-sMjqvX.js} +4 -4
  296. package/dist/{server-DMAPnkgM.js → server-Bm-IxvZZ.js} +20 -20
  297. package/dist/{server-context-Dd8UynDU.js → server-context-Dw_4lGoI.js} +12 -12
  298. package/dist/{server-lifecycle-BEZ2jsQ6.js → server-lifecycle-DYgHYif9.js} +2 -2
  299. package/dist/{server-middleware-B_LyQkOL.js → server-middleware-BVAEuQs7.js} +1 -1
  300. package/dist/{server-node-events-dr5CaM3M.js → server-node-events-B-ChStFC.js} +74 -74
  301. package/dist/{server-node-events-YN5eJeHa.js → server-node-events-Bf13eFLP.js} +2 -2
  302. package/dist/{service-B5T42CWZ.js → service-DSqxS6_D.js} +15 -15
  303. package/dist/{session-DLTCuoUD.js → session-CnCwDJke.js} +8 -8
  304. package/dist/{session-eXSdl5mb.js → session-D0jodcgT.js} +1 -1
  305. package/dist/{session-utils-D12gSo5W.js → session-utils-XY6JwRhT.js} +6 -6
  306. package/dist/{sessions-DgnXAQCc.js → sessions-BWptzMw0.js} +15 -15
  307. package/dist/{sessions-C16G7L5c.js → sessions-CMqv9JEu.js} +4 -4
  308. package/dist/{shared-BYny1RCF.js → shared-BbVxcRzb.js} +3 -3
  309. package/dist/{shared-By6_qr_R.js → shared-D5DTxBPH.js} +1 -1
  310. package/dist/{skill-commands-BwTLQRR8.js → skill-commands-Cz45_nme.js} +9 -9
  311. package/dist/{skill-commands-BcigmiOW.js → skill-commands-fU-Mejn9.js} +5 -5
  312. package/dist/{skill-scanner--QKHR8U0.js → skill-scanner-CvS725eQ.js} +6 -6
  313. package/dist/{skills-EwyaIyKC.js → skills-C85azDXm.js} +3 -3
  314. package/dist/{skills-B9N2bqKU.js → skills-CdCS1HeL.js} +22 -22
  315. package/dist/{skills-cli-CqEjN0Yj.js → skills-cli-ZXx6BNar.js} +5 -5
  316. package/dist/{skills-install-CXVKvhIE.js → skills-install-KD6dzNoZ.js} +6 -6
  317. package/dist/{skills-status-Bv8Xt7Lc.js → skills-status-DkO7rxE8.js} +1 -1
  318. package/dist/{slash-commands.runtime-Bi99B_EP.js → slash-commands.runtime-CPlXJtuM.js} +11 -11
  319. package/dist/slash-commands.runtime-CZz6v6b3.js +16 -0
  320. package/dist/{slash-dispatch.runtime-DB1QsBRc.js → slash-dispatch.runtime-Cf52SJTn.js} +1 -1
  321. package/dist/slash-dispatch.runtime-DLikrqBw.js +114 -0
  322. package/dist/{slash-dispatch.runtime-sXaUYn4v.js → slash-dispatch.runtime-DxgmWXzN.js} +1 -1
  323. package/dist/slash-dispatch.runtime-frzN4e57.js +56 -0
  324. package/dist/slash-skill-commands.runtime-Bawt7j0r.js +20 -0
  325. package/dist/{slash-skill-commands.runtime-DOXmvOtU.js → slash-skill-commands.runtime-Cnfq_5LN.js} +15 -15
  326. package/dist/{squidclaw-root-JXyRbQLJ.js → squidclaw-root-BQfLymzj.js} +8 -8
  327. package/dist/{status-Bh5x6DsW.js → status-B65tE-ru.js} +2 -2
  328. package/dist/{status-Dnl-Um1D.js → status-p6oFQt1P.js} +27 -27
  329. package/dist/{status.update-BGIm6we4.js → status.update-CiLU9RPF.js} +2 -2
  330. package/dist/{store-BTkIx401.js → store-BEIcnlgx.js} +5 -5
  331. package/dist/{store-CvQ41zCV.js → store-D9z0dn7D.js} +2 -2
  332. package/dist/{subagent-registry-CQA6P2FO.js → subagent-registry-BbkRn-Tn.js} +158 -153
  333. package/dist/{subagent-registry-runtime-D7ubAnDZ.js → subagent-registry-runtime-BQ5-n2Pj.js} +1 -1
  334. package/dist/subagent-registry-runtime-BTVxLFQ2.js +56 -0
  335. package/dist/subagent-registry-runtime-DP1IpqM_.js +114 -0
  336. package/dist/{subagent-registry-runtime-232sNNT6.js → subagent-registry-runtime-DY9wpSRG.js} +1 -1
  337. package/dist/{subsystem-BaLYRf7D.js → subsystem-6v7sWnAD.js} +14 -14
  338. package/dist/{system-cli-CJAQxYHv.js → system-cli-i1FWZDjn.js} +9 -9
  339. package/dist/{system-run-command-BaSqmSwR.js → system-run-command-COqCNIBg.js} +1 -1
  340. package/dist/{systemd-B86VePXs.js → systemd-Cj2cX_ZP.js} +9 -9
  341. package/dist/{systemd-hints-BmFWZu_j.js → systemd-hints-46PqJfaq.js} +6 -6
  342. package/dist/{systemd-linger-w7fvBU-1.js → systemd-linger-6Jd9K5p2.js} +1 -1
  343. package/dist/{tables-BRYYxYs7.js → tables-BTFiZyRU.js} +1 -1
  344. package/dist/{tables-CGh4CW_h.js → tables-CIpKClDV.js} +1 -1
  345. package/dist/{tailnet-DJq7Mi1o.js → tailnet-CZANZjq6.js} +1 -1
  346. package/dist/{target-errors-D0ZJUbbf.js → target-errors-CRQlPF1u.js} +2 -2
  347. package/dist/{target-errors-C_rnMuJ2.js → target-errors-DgNRx3Nr.js} +4 -4
  348. package/dist/{thinking-B-A99X3F.js → thinking-B75CXkTT.js} +7 -7
  349. package/dist/{tokens-D2XhLqIz.js → tokens-DfbMVF9y.js} +1 -1
  350. package/dist/{tool-images-D6mmxuWS.js → tool-images-CyzWvDUu.js} +1 -1
  351. package/dist/{tool-images-Zn6jVmkX.js → tool-images-Dp5OiXeA.js} +2 -2
  352. package/dist/{tui-BbcmzKaA.js → tui-CC_AbfZr.js} +6 -6
  353. package/dist/{tui-cli-Dv3jSm3x.js → tui-cli-DiJ7zKUD.js} +32 -32
  354. package/dist/{update-BhRrb6BI.js → update-1JhjCqjy.js} +3 -3
  355. package/dist/{update-cli-CktBOXZF.js → update-cli-BD9-Sh3i.js} +7 -7
  356. package/dist/{update-cli-Oe0fP8x9.js → update-cli-Cs3nfqwA.js} +104 -104
  357. package/dist/{update-runner-BYGPkHXG.js → update-runner-V-Y-KbTK.js} +1 -1
  358. package/dist/{update-runner-DdA6xBa9.js → update-runner-pNSMe2xh.js} +16 -16
  359. package/dist/{web-CEdWU_u3.js → web-B3GIA0Oq.js} +55 -55
  360. package/dist/web-B3i9lUAX.js +118 -0
  361. package/dist/{web-DWRZAXj9.js → web-DZHRoMwF.js} +2 -2
  362. package/dist/{web-Chw1dtKA.js → web-HXuEa1UL.js} +1 -1
  363. package/dist/{webhooks-cli-CJLug1QH.js → webhooks-cli-CzDd8ikc.js} +6 -6
  364. package/dist/{whatsapp-actions-Cuy0qeQK.js → whatsapp-actions-CzqsuSGx.js} +21 -21
  365. package/dist/{whatsapp-actions-_ca5OtHq.js → whatsapp-actions-MR_bBjXO.js} +17 -17
  366. package/dist/{with-timeout-CFfRudNc.js → with-timeout-BZ_Teugb.js} +3 -3
  367. package/dist/{workspace-BbO-M3Jv.js → workspace-D5vNjk5G.js} +1 -1
  368. package/dist/{workspace-dirs-D8D-Ghcl.js → workspace-dirs-CjMIsQti.js} +1 -1
  369. package/dist/{workspace-TqfVSQuO.js → workspace-kVMIaBrV.js} +20 -20
  370. package/dist/{wsl-CsGe5QCP.js → wsl-CvQfS6aU.js} +2 -2
  371. package/package.json +1 -1
  372. package/dist/deliver-runtime-B6NtHUuv.js +0 -36
  373. package/dist/deliver-runtime-zICm26tE.js +0 -61
  374. package/dist/deps-send-discord.runtime-CUTAK2hy.js +0 -26
  375. package/dist/deps-send-discord.runtime-C_9HZQko.js +0 -36
  376. package/dist/deps-send-imessage.runtime-BMhGsWds.js +0 -35
  377. package/dist/deps-send-imessage.runtime-CQOiEIuA.js +0 -25
  378. package/dist/deps-send-signal.runtime-BGhjYiu6.js +0 -34
  379. package/dist/deps-send-signal.runtime-wN7MkzLw.js +0 -24
  380. package/dist/deps-send-slack.runtime-DjBCu-RX.js +0 -32
  381. package/dist/deps-send-slack.runtime-HEEwW4uU.js +0 -22
  382. package/dist/deps-send-telegram.runtime-DHlcnjQO.js +0 -27
  383. package/dist/deps-send-whatsapp.runtime-C2x2R2Ow.js +0 -60
  384. package/dist/deps-send-whatsapp.runtime-CU257URT.js +0 -119
  385. package/dist/image-runtime-BSVF52oe.js +0 -29
  386. package/dist/image-runtime-Cxoxcx04.js +0 -55
  387. package/dist/manager-runtime-BB9lcoFR.js +0 -18
  388. package/dist/pi-model-discovery-runtime-DBkQoIJw.js +0 -11
  389. package/dist/register.configure-BkwbM-hb.js +0 -165
  390. package/dist/runtime-whatsapp-login.runtime-DumUjKRz.js +0 -13
  391. package/dist/runtime-whatsapp-outbound.runtime-Cgu2MfqR.js +0 -22
  392. package/dist/slash-commands.runtime-CjBXruwG.js +0 -16
  393. package/dist/slash-dispatch.runtime-CGd3HarH.js +0 -56
  394. package/dist/slash-dispatch.runtime-reuPLnse.js +0 -114
  395. package/dist/slash-skill-commands.runtime-DYK20Lxf.js +0 -20
  396. package/dist/subagent-registry-runtime-CqgIWcSl.js +0 -114
  397. package/dist/subagent-registry-runtime-m9bFJFix.js +0 -56
  398. package/dist/web-w04Gvwqi.js +0 -118
@@ -3,111 +3,111 @@ import { g as resolveStateDir, r as STATE_DIR, u as resolveGatewayPort, y as res
3
3
  import { d as defaultRuntime, t as createSubsystemLogger, u as createNonExitingRuntime } from "./subsystem-Bw5n50gj.js";
4
4
  import { t as parseBooleanValue$1 } from "./boolean-DtWR5bt3.js";
5
5
  import { r as isTruthyEnvValue } from "./entry.js";
6
- import { Ar as resolveReasoningDefault, At as AVATAR_MAX_BYTES, Dn as applyMergePatch, Dr as resolveDefaultModelForAgent, Er as resolveConfiguredModelRef, Fi as DEFAULT_CONTEXT_TOKENS, Fn as resolveSlackNativeStreaming, Ft as isSupportedLocalAvatarExtension, G as writeConfigFile, Gn as resolveOwnerDisplaySetting, Gt as getConfigValueAtPath, Hn as resolveAgentMaxConcurrent, Ht as resetConfigOverrides, Ii as DEFAULT_MODEL, In as resolveSlackStreamingMode, J as TELEGRAM_COMMAND_NAME_PATTERN, Jn as listProfilesForProvider, Jt as unsetConfigValueAtPath, K as validateConfigObjectWithPlugins, Kt as parseConfigPath, Li as DEFAULT_PROVIDER, Mr as resolveSubagentSpawnModelSelection, Mt as isAvatarHttpUrl, Nn as mapStreamingModeToSlackLegacyDraftStreamMode, Nr as resolveThinkingDefault, Pi as splitTrailingAuthProfile, Pn as resolveDiscordPreviewStreamMode, Pt as isPathWithinRoot, Q as isInboundPathAllowed, Ri as resolveAuthProfileDisplayLabel, Sr as normalizeProviderId, U as resolveConfigSnapshotHash, Ut as setConfigOverride, V as readConfigFileSnapshot, Vn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Vt as getConfigOverrides, Wt as unsetConfigOverride, X as resolveTelegramCustomCommands, Xr as resolveRetryConfig, Y as normalizeTelegramCommandName, Yn as markAuthProfileGood, Zr as retryAsync, _i as resolveModelAuthMode, a as getSoonestCooldownExpiry, ai as OLLAMA_NATIVE_BASE_URL, bi as resolveShellEnvFallbackTimeoutMs, br as normalizeModelRef$2, c as markAuthProfileUsed, ci as buildAssistantMessageWithZeroUsage, cr as withFileLock, d as resolveApiKeyForProfile, di as getApiKeyForModel, er as ensureAuthProfileStore, et as resolveIMessageAttachmentRoots, f as evaluateStoredCredentialEligibility, fi as getCustomProviderApiKey, fr as buildAllowedModelSet, gi as resolveEnvApiKey, hr as findNormalizedProviderValue, i as clearExpiredCooldowns, ji as normalizeSecretInput, jt as isAvatarDataUrl, kr as resolveModelRefFromString, li as buildStreamErrorAssistantMessage, mi as resolveApiKeyForProvider, mr as buildModelAliasIndex, nn as buildEnforcedShellCommand, nt as normalizeScpRemoteHost, o as isProfileInCooldown, oi as createOllamaStreamFn, or as resolveAuthStorePathForDisplay, p as resolveTokenExpiryState, pi as requireApiKey, pr as buildConfiguredAllowlistKeys, pt as parseDurationMs, qn as dedupeProfileIds, qt as setConfigValueAtPath, r as resolveAuthProfileOrder, rt as parseNonNegativeByteSize, s as markAuthProfileFailure, si as buildAssistantMessage, sr as resolveSquidClawAgentDir, tt as resolveIMessageRemoteAttachmentRoots, u as resolveProfilesUnavailableReason, ui as buildUsageWithNoCost, vr as isCliProvider, yi as getShellPathFromLoginShell, yr as modelKey, z as loadConfig, zt as validateJsonSchemaValue } from "./auth-profiles-9T4j6jMy.js";
6
+ import { Ar as resolveReasoningDefault, At as AVATAR_MAX_BYTES, Dn as applyMergePatch, Dr as resolveDefaultModelForAgent, Er as resolveConfiguredModelRef, Fi as DEFAULT_CONTEXT_TOKENS, Fn as resolveSlackNativeStreaming, Ft as isSupportedLocalAvatarExtension, G as writeConfigFile, Gn as resolveOwnerDisplaySetting, Gt as getConfigValueAtPath, Hn as resolveAgentMaxConcurrent, Ht as resetConfigOverrides, Ii as DEFAULT_MODEL, In as resolveSlackStreamingMode, J as TELEGRAM_COMMAND_NAME_PATTERN, Jn as listProfilesForProvider, Jt as unsetConfigValueAtPath, K as validateConfigObjectWithPlugins, Kt as parseConfigPath, Li as DEFAULT_PROVIDER, Mr as resolveSubagentSpawnModelSelection, Mt as isAvatarHttpUrl, Nn as mapStreamingModeToSlackLegacyDraftStreamMode, Nr as resolveThinkingDefault, Pi as splitTrailingAuthProfile, Pn as resolveDiscordPreviewStreamMode, Pt as isPathWithinRoot, Q as isInboundPathAllowed, Ri as resolveAuthProfileDisplayLabel, Sr as normalizeProviderId, U as resolveConfigSnapshotHash, Ut as setConfigOverride, V as readConfigFileSnapshot, Vn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Vt as getConfigOverrides, Wt as unsetConfigOverride, X as resolveTelegramCustomCommands, Xr as resolveRetryConfig, Y as normalizeTelegramCommandName, Yn as markAuthProfileGood, Zr as retryAsync, _i as resolveModelAuthMode, a as getSoonestCooldownExpiry, ai as OLLAMA_NATIVE_BASE_URL, bi as resolveShellEnvFallbackTimeoutMs, br as normalizeModelRef$2, c as markAuthProfileUsed, ci as buildAssistantMessageWithZeroUsage, cr as withFileLock, d as resolveApiKeyForProfile, di as getApiKeyForModel, er as ensureAuthProfileStore, et as resolveIMessageAttachmentRoots, f as evaluateStoredCredentialEligibility, fi as getCustomProviderApiKey, fr as buildAllowedModelSet, gi as resolveEnvApiKey, hr as findNormalizedProviderValue, i as clearExpiredCooldowns, ji as normalizeSecretInput, jt as isAvatarDataUrl, kr as resolveModelRefFromString, li as buildStreamErrorAssistantMessage, mi as resolveApiKeyForProvider, mr as buildModelAliasIndex, nn as buildEnforcedShellCommand, nt as normalizeScpRemoteHost, o as isProfileInCooldown, oi as createOllamaStreamFn, or as resolveAuthStorePathForDisplay, p as resolveTokenExpiryState, pi as requireApiKey, pr as buildConfiguredAllowlistKeys, pt as parseDurationMs, qn as dedupeProfileIds, qt as setConfigValueAtPath, r as resolveAuthProfileOrder, rt as parseNonNegativeByteSize, s as markAuthProfileFailure, si as buildAssistantMessage, sr as resolveSquidClawAgentDir, tt as resolveIMessageRemoteAttachmentRoots, u as resolveProfilesUnavailableReason, ui as buildUsageWithNoCost, vr as isCliProvider, yi as getShellPathFromLoginShell, yr as modelKey, z as loadConfig, zt as validateJsonSchemaValue } from "./auth-profiles-CX4YYu7Z.js";
7
7
  import { t as formatCliCommand } from "./command-format-D8-lYArk.js";
8
- import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, _ as DEFAULT_AGENT_WORKSPACE_DIR, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, h as resolveSessionAgentIds, i as resolveAgentConfig, k as loadWorkspaceBootstrapFiles, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-nEVgVklg.js";
8
+ import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, _ as DEFAULT_AGENT_WORKSPACE_DIR, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, h as resolveSessionAgentIds, i as resolveAgentConfig, k as loadWorkspaceBootstrapFiles, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-Cq4vDGrK.js";
9
9
  import { D as resolveThreadParentSessionKey, E as parseAgentSessionKey, S as isAcpSessionKey, T as isSubagentSessionKey, _ as normalizeAccountId$2, b as deriveSessionChatType, c as normalizeAgentId, d as resolveThreadSessionKeys, f as sanitizeAgentId, g as DEFAULT_ACCOUNT_ID, i as buildAgentPeerSessionKey, l as normalizeMainKey, n as DEFAULT_MAIN_KEY, o as classifySessionKeyShape, p as scopedHeartbeatWakeOptions, r as buildAgentMainSessionKey, s as isValidAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, v as normalizeOptionalAccountId, w as isCronSessionKey, x as getSubagentDepth, y as isBlockedObjectKey } from "./session-key-k6urs9r-.js";
10
10
  import { C as sliceUtf16Safe, E as isPlainObject, S as sleep$1, T as truncateUtf16Safe, b as shortenHomeInString, c as escapeRegExp, p as normalizeE164, r as clampInt, t as CONFIG_DIR, u as isRecord$1, v as resolveUserPath, x as shortenHomePath } from "./utils-D6vohX1h.js";
11
- import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveSquidClawPackageRoot } from "./squidclaw-root-JXyRbQLJ.js";
11
+ import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveSquidClawPackageRoot } from "./squidclaw-root-BQfLymzj.js";
12
12
  import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-DL3N22PJ.js";
13
13
  import { n as runExec, r as spawnWithFallback, t as runCommandWithTimeout } from "./exec-TSiqsZw1.js";
14
14
  import { E as triggerInternalHook, M as normalizeResolvedSecretInputString, S as matchPluginCommand, _ as normalizePluginHttpPath, b as getPluginCommandSpecs, c as normalizeChannelId$1, d as getActivePluginRegistryKey, g as createPluginRegistry, k as coerceSecretRef, m as setActivePluginRegistry, n as CHAT_CHANNEL_ORDER, p as requireActivePluginRegistry, s as normalizeAnyChannelId, u as getActivePluginRegistry, v as clearPluginCommands, w as createInternalHookEvent, x as listPluginCommands, y as executePluginCommand } from "./registry-BXcl3IkC.js";
15
15
  import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-CxitgiZA.js";
16
16
  import { n as isDangerousHostEnvVarName } from "./host-env-security-lcjXF83D.js";
17
17
  import { t as VERSION } from "./version-3so140Zi.js";
18
- import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverSquidClawPlugins } from "./manifest-registry-1ACGW3OR.js";
19
- import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-W3cGg46W.js";
18
+ import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverSquidClawPlugins } from "./manifest-registry-7kwtbCH-.js";
19
+ import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-DJJAj46v.js";
20
20
  import { t as runTasksWithConcurrency } from "./run-with-concurrency-kzSMVKJz.js";
21
21
  import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-BAST85mP.js";
22
- import { i as buildModelAliasLines, n as resolveModel } from "./model-D7hZpWTB.js";
23
- import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Cr1q2cJt.js";
24
- import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-B4w80e4D.js";
25
- import { a as resolveSkillsPromptForRun, d as resolveSandboxInputPath, h as applySkillEnvOverridesFromSnapshot, i as loadWorkspaceSkillEntries, l as assertMediaNotDataUrl, m as applySkillEnvOverrides, p as resolveSandboxedMediaSource, r as buildWorkspaceSkillSnapshot, u as assertSandboxPath } from "./skills-EwyaIyKC.js";
26
- import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DeOVetT7.js";
22
+ import { i as buildModelAliasLines, n as resolveModel } from "./model-B8p-EsdJ.js";
23
+ import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-CKUePiDc.js";
24
+ import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-CLEtu0MC.js";
25
+ import { a as resolveSkillsPromptForRun, d as resolveSandboxInputPath, h as applySkillEnvOverridesFromSnapshot, i as loadWorkspaceSkillEntries, l as assertMediaNotDataUrl, m as applySkillEnvOverrides, p as resolveSandboxedMediaSource, r as buildWorkspaceSkillSnapshot, u as assertSandboxPath } from "./skills-C85azDXm.js";
26
+ import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-vfYYQFIg.js";
27
27
  import { a as isInternalMessageChannel, c as listDeliverableMessageChannels, d as resolveMessageChannel, h as GATEWAY_CLIENT_NAMES, i as isGatewayMessageChannel, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES, n as isDeliverableMessageChannel, o as isMarkdownCapableMessageChannel, p as GATEWAY_CLIENT_IDS, t as INTERNAL_MESSAGE_CHANNEL, u as resolveGatewayMessageChannel } from "./message-channel-DqvtYF2o.js";
28
- import { C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, F as parseInlineDirectives$1, G as resolveSessionResetPolicy, H as resolveSessionKey, J as DEFAULT_RESET_TRIGGERS, K as resolveSessionResetType, R as jsonUtf8Bytes, S as normalizeDeliveryContext, U as evaluateSessionFreshness, V as resolveSessionLockMaxHoldFromTimeout, W as resolveChannelResetConfig, X as resolveFreshSessionTotalTokens, Y as mergeSessionEntry, Z as setSessionRuntimeModel, _ as isCacheEnabled, a as resolveAndPersistSessionFile, at as resolveConversationLabel, b as deliveryContextKey, c as recordSessionMetaFromInbound, d as updateSessionStore, et as resolveExplicitAgentSessionKey, f as updateSessionStoreEntry, lt as resolveGroupSessionKey, n as parseSessionThreadInfo, o as loadSessionStore, q as resolveThreadFlag, r as appendAssistantMessageToSessionTranscript, rt as deriveSessionMetaPatch, s as readSessionUpdatedAt, t as extractDeliveryInfo, tt as resolveMainSessionKey, u as updateLastRoute, v as resolveCacheTtlMs$1, w as normalizeAccountId$3, x as mergeDeliveryContext, y as deliveryContextFromSession, z as acquireSessionWriteLock } from "./sessions-DgnXAQCc.js";
29
- import { A as normalizeDiscordToken, C as isWhatsAppGroupJid, D as listEnabledDiscordAccounts, S as resolveSlackBotToken, T as createDiscordActionGate, a as createTelegramActionGate, b as resolveSlackReplyToMode, h as listBindings, j as normalizeChatType, k as resolveDiscordAccount, l as resolveTelegramAccount, m as buildChannelAccountBindings, n as listChannelPlugins, o as listEnabledTelegramAccounts, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, w as normalizeWhatsAppTarget, x as resolveSlackAppToken, y as resolveSlackAccount } from "./plugins-Bc7YM9X-.js";
30
- import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-BH9Qo1sQ.js";
31
- import { r as resolveIMessageAccount } from "./accounts-Cuwg9Tan.js";
32
- import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-B1RxFghM.js";
33
- import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-BpkluEZ5.js";
34
- import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-Do2preUU.js";
28
+ import { C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, F as parseInlineDirectives$1, G as resolveSessionResetPolicy, H as resolveSessionKey, J as DEFAULT_RESET_TRIGGERS, K as resolveSessionResetType, R as jsonUtf8Bytes, S as normalizeDeliveryContext, U as evaluateSessionFreshness, V as resolveSessionLockMaxHoldFromTimeout, W as resolveChannelResetConfig, X as resolveFreshSessionTotalTokens, Y as mergeSessionEntry, Z as setSessionRuntimeModel, _ as isCacheEnabled, a as resolveAndPersistSessionFile, at as resolveConversationLabel, b as deliveryContextKey, c as recordSessionMetaFromInbound, d as updateSessionStore, et as resolveExplicitAgentSessionKey, f as updateSessionStoreEntry, lt as resolveGroupSessionKey, n as parseSessionThreadInfo, o as loadSessionStore, q as resolveThreadFlag, r as appendAssistantMessageToSessionTranscript, rt as deriveSessionMetaPatch, s as readSessionUpdatedAt, t as extractDeliveryInfo, tt as resolveMainSessionKey, u as updateLastRoute, v as resolveCacheTtlMs$1, w as normalizeAccountId$3, x as mergeDeliveryContext, y as deliveryContextFromSession, z as acquireSessionWriteLock } from "./sessions-BWptzMw0.js";
29
+ import { A as normalizeDiscordToken, C as isWhatsAppGroupJid, D as listEnabledDiscordAccounts, S as resolveSlackBotToken, T as createDiscordActionGate, a as createTelegramActionGate, b as resolveSlackReplyToMode, h as listBindings, j as normalizeChatType, k as resolveDiscordAccount, l as resolveTelegramAccount, m as buildChannelAccountBindings, n as listChannelPlugins, o as listEnabledTelegramAccounts, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, w as normalizeWhatsAppTarget, x as resolveSlackAppToken, y as resolveSlackAccount } from "./plugins-BDTkSIi7.js";
30
+ import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-BK8I0Svb.js";
31
+ import { r as resolveIMessageAccount } from "./accounts-DeqNOvBo.js";
32
+ import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-KzgPbLHP.js";
33
+ import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-z-sMjqvX.js";
34
+ import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-DEs83M9V.js";
35
35
  import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, t as resolveDefaultSessionStorePath } from "./paths-Dn_rzeZN.js";
36
36
  import { i as normalizeInputProvenance, n as applyInputProvenanceToUserMessage, r as hasInterSessionUserProvenance } from "./input-provenance-C8z9KgIz.js";
37
- import { r as writeJsonAtomic } from "./json-files-rR19q30D.js";
37
+ import { r as writeJsonAtomic } from "./json-files-CuJjdF_0.js";
38
38
  import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-DgzPL8Hc.js";
39
- import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-COy24r9W.js";
40
- import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-D7jOWSFr.js";
41
- import { r as isLoopbackHost } from "./net-CIh5ellr.js";
39
+ import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-G9E5HGM2.js";
40
+ import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-BlWEBz99.js";
41
+ import { r as isLoopbackHost } from "./net-CCnbGop3.js";
42
42
  import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-CyQeGziJ.js";
43
43
  import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-DOVPgjwZ.js";
44
- import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-CFfRudNc.js";
44
+ import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-BZ_Teugb.js";
45
45
  import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-_dzDDlFo.js";
46
- import { A as initializeGlobalHookRunner, C as toInternalMessagePreprocessedContext, D as toPluginMessageReceivedEvent, E as toPluginMessageContext, O as fireAndForgetHook, S as deriveInboundMessageHookContext, T as toInternalMessageTranscribedContext, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, w as toInternalMessageReceivedContext, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-D-IQEJ52.js";
46
+ import { A as initializeGlobalHookRunner, C as toInternalMessagePreprocessedContext, D as toPluginMessageReceivedEvent, E as toPluginMessageContext, O as fireAndForgetHook, S as deriveInboundMessageHookContext, T as toInternalMessageTranscribedContext, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, w as toInternalMessageReceivedContext, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-CL2RW5UB.js";
47
47
  import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-Bz6Ajr4f.js";
48
- import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-LFsSCTyI.js";
49
- import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as isVoiceCompatibleAudio, K as formatLocationText, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, _ as splitTelegramCaption, a as reactMessageTelegram, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramHtml, q as toLocationContext, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildSenderName, y as loadCronStore, z as resolveTelegramReplyId } from "./send-BVyLW1cn.js";
50
- import { A as isTransientHttpError, B as resolveBootstrapTotalMaxChars, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, R as resolveBootstrapMaxChars, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, V as sanitizeGoogleTurnOrdering, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, b as isAuthAssistantError, c as extractToolCallsFromAssistant, d as downgradeOpenAIFunctionCallReasoningPairs, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, j as parseImageDimensionError, k as isRawApiErrorPayload, l as extractToolResultId, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, o as normalizeTextForComparison, p as isGoogleModelApi, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as sanitizeToolCallIdsForCloudCodeAssist, v as formatRawAssistantErrorForUi, w as isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as resolveBootstrapPromptTruncationWarningMode } from "./pi-embedded-helpers-DtCOZSv-.js";
51
- import { C as resolveToolProfilePolicy, S as normalizeToolName, T as matchesAnyGlobPattern, _ as collectExplicitAllowlist, a as ensureSandboxWorkspaceForSession, b as stripPluginOnlyAllowlist, c as resolveSandboxRuntimeStatus, d as getBridgeAuthForPort, f as resolveSandboxConfigForAgent, g as buildPluginToolGroups, h as applyOwnerOnlyToolPolicy, o as resolveSandboxContext, v as expandPolicyWithPluginGroups, w as compileGlobPatterns, y as mergeAlsoAllowPolicy } from "./sandbox-ixDhkfHu.js";
52
- import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-DiktJpMU.js";
53
- import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-Dd8UynDU.js";
54
- import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-D6mnO6Ni.js";
48
+ import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-B2uuLIGD.js";
49
+ import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as isVoiceCompatibleAudio, K as formatLocationText, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, _ as splitTelegramCaption, a as reactMessageTelegram, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramHtml, q as toLocationContext, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildSenderName, y as loadCronStore, z as resolveTelegramReplyId } from "./send-RDqyJwZx.js";
50
+ import { A as isTransientHttpError, B as resolveBootstrapTotalMaxChars, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, R as resolveBootstrapMaxChars, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, V as sanitizeGoogleTurnOrdering, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, b as isAuthAssistantError, c as extractToolCallsFromAssistant, d as downgradeOpenAIFunctionCallReasoningPairs, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, j as parseImageDimensionError, k as isRawApiErrorPayload, l as extractToolResultId, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, o as normalizeTextForComparison, p as isGoogleModelApi, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as sanitizeToolCallIdsForCloudCodeAssist, v as formatRawAssistantErrorForUi, w as isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as resolveBootstrapPromptTruncationWarningMode } from "./pi-embedded-helpers-qCAK_a65.js";
51
+ import { C as resolveToolProfilePolicy, S as normalizeToolName, T as matchesAnyGlobPattern, _ as collectExplicitAllowlist, a as ensureSandboxWorkspaceForSession, b as stripPluginOnlyAllowlist, c as resolveSandboxRuntimeStatus, d as getBridgeAuthForPort, f as resolveSandboxConfigForAgent, g as buildPluginToolGroups, h as applyOwnerOnlyToolPolicy, o as resolveSandboxContext, v as expandPolicyWithPluginGroups, w as compileGlobPatterns, y as mergeAlsoAllowPolicy } from "./sandbox-C3TbYIHd.js";
52
+ import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-CoRiYsNu.js";
53
+ import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-Dw_4lGoI.js";
54
+ import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-DfuVHiHu.js";
55
55
  import { a as testRegexWithBoundedInput, i as compileSafeRegex, n as redactSensitiveText } from "./redact-DknVdX-O.js";
56
56
  import { i as formatUncaughtError, r as formatErrorMessage, s as readErrorName } from "./errors-BnRmsfe-.js";
57
- import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-BPQ-per2.js";
58
- import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-BiKHVg2h.js";
59
- import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-BTkIx401.js";
60
- import { i as resolveLsofCommandSync } from "./ports-DMeUt80n.js";
61
- import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-D6mmxuWS.js";
57
+ import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-DPYj7h8A.js";
58
+ import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-CQTuxZoS.js";
59
+ import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-BEIcnlgx.js";
60
+ import { i as resolveLsofCommandSync } from "./ports-0jLyYbvQ.js";
61
+ import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-CyzWvDUu.js";
62
62
  import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsXHighThinking, l as normalizeVerboseLevel, n as formatXHighModelHint, o as normalizeReasoningLevel, s as normalizeThinkLevel, t as formatThinkingLevels, u as resolveResponseUsageMode } from "./thinking-CrcT589P.js";
63
- import { t as ensureSquidClawModelsJson } from "./models-config-DAastTau.js";
64
- import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-B9bcJkGP.js";
65
- import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-DECo77U6.js";
66
- import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-Drh9Rois.js";
67
- import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-lq0SDLLE.js";
68
- import { a as resolveAutoImageModel, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, g as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$1, v as resolveAttachmentKind } from "./audio-transcription-runner-D-uxpkbd.js";
63
+ import { t as ensureSquidClawModelsJson } from "./models-config-poV-4Xlx.js";
64
+ import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-CtSREgYh.js";
65
+ import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-CfQeDABF.js";
66
+ import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-BWuvEv1x.js";
67
+ import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-CtoC2wgs.js";
68
+ import { a as resolveAutoImageModel, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, g as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$1, v as resolveAttachmentKind } from "./audio-transcription-runner-DvQksGUE.js";
69
69
  import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-Mawkd1Br.js";
70
- import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CbtWqa1E.js";
71
- import { _ as stripReasoningTagsFromText, a as resolveProviderVisionModelFromConfig, b as extractTextFromChatContent, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as findCodeRegions, x as minimaxUnderstandImage, y as isInsideCode } from "./image-BcYt63Jx.js";
70
+ import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-Dvzi3MjK.js";
71
+ import { _ as stripReasoningTagsFromText, a as resolveProviderVisionModelFromConfig, b as extractTextFromChatContent, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as findCodeRegions, x as minimaxUnderstandImage, y as isInsideCode } from "./image-DSWTfuxv.js";
72
72
  import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-BisOZb2_.js";
73
73
  import { t as makeProxyFetch } from "./proxy-fetch-DfeBVFag.js";
74
- import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-C7He5vmn.js";
75
- import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-C_rnMuJ2.js";
76
- import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-DDHiW-As.js";
77
- import { a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry--ITOJ-cM.js";
74
+ import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-BukzlgSp.js";
75
+ import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-CRQlPF1u.js";
76
+ import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-CnX9I_l4.js";
77
+ import { a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-_r_JONI4.js";
78
78
  import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-By9arPco.js";
79
79
  import { n as formatTimeAgo } from "./format-relative-Czf5fUjn.js";
80
- import { c as readJsonFileWithFallback, d as listPairingChannels, i as readChannelAllowFromStore, l as writeJsonFileAtomically, o as removeChannelAllowFromStoreEntry, s as upsertChannelPairingRequest, t as addChannelAllowFromStoreEntry } from "./pairing-store-BC4mnG9S.js";
80
+ import { c as readJsonFileWithFallback, d as listPairingChannels, i as readChannelAllowFromStore, l as writeJsonFileAtomically, o as removeChannelAllowFromStoreEntry, s as upsertChannelPairingRequest, t as addChannelAllowFromStoreEntry } from "./pairing-store-D0eOXyby.js";
81
81
  import { d as resolveExecApprovals, f as resolveExecApprovalsFromFile, i as maxAsk, l as recordAllowlistUse, n as addAllowlistEntry, o as minSecurity, u as requiresExecApproval } from "./exec-approvals-Db6myg-N.js";
82
- import { C as mergePathPrepend, S as findPathKey, a as canvasSnapshotTempPath, b as buildNodeShellCommand, c as parseCameraClipPayload, d as writeCameraClipPayloadToFile, f as writeCameraPayloadToFile, i as parseEnvPairs, l as parseCameraSnapPayload, n as screenRecordTempPath, o as parseCanvasSnapshotPayload, p as parsePreparedSystemRunPayload, r as writeScreenRecordToFile, s as cameraTempPath, t as parseScreenRecordPayload, u as writeBase64ToFile, w as normalizePathPrepend, x as applyPathPrepend } from "./nodes-screen-BrMJzhot.js";
82
+ import { C as mergePathPrepend, S as findPathKey, a as canvasSnapshotTempPath, b as buildNodeShellCommand, c as parseCameraClipPayload, d as writeCameraClipPayloadToFile, f as writeCameraPayloadToFile, i as parseEnvPairs, l as parseCameraSnapPayload, n as screenRecordTempPath, o as parseCanvasSnapshotPayload, p as parsePreparedSystemRunPayload, r as writeScreenRecordToFile, s as cameraTempPath, t as parseScreenRecordPayload, u as writeBase64ToFile, w as normalizePathPrepend, x as applyPathPrepend } from "./nodes-screen-DFFmbaXE.js";
83
83
  import { t as killProcessTree$1 } from "./kill-tree-0NV2m8EI.js";
84
- import { t as formatExecCommand } from "./system-run-command-BaSqmSwR.js";
84
+ import { t as formatExecCommand } from "./system-run-command-COqCNIBg.js";
85
85
  import { i as parsePairingList, n as resolveNodeIdFromNodeList, r as parseNodeList, t as resolveNodeFromNodeList } from "./node-resolve-DO_ibeH6.js";
86
86
  import { i as formatDurationSeconds, r as formatDurationPrecise, t as formatDurationCompact$1 } from "./format-duration-CZ0b60YO.js";
87
- import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-D12gSo5W.js";
87
+ import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-XY6JwRhT.js";
88
88
  import { c as hasNonzeroUsage, l as makeZeroUsageSnapshot, n as loadCostUsageSummary, o as derivePromptTokens, r as loadSessionCostSummary, s as deriveSessionTotalTokens, u as normalizeUsage } from "./session-cost-usage-BL2HPuc5.js";
89
89
  import { i as resolveModelCostConfig, n as formatTokenCount$2, r as formatUsd, t as estimateUsageCost } from "./usage-format-eNPY7j3q.js";
90
- import { a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, y as ensureSkillsWatcher } from "./skill-commands-BcigmiOW.js";
91
- import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-wuB3-cfR.js";
90
+ import { a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, y as ensureSkillsWatcher } from "./skill-commands-fU-Mejn9.js";
91
+ import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-BZKeZQH-.js";
92
92
  import { t as buildOutboundMediaLoadOptions } from "./load-options-PN66jbnR.js";
93
93
  import { n as normalizePollInput } from "./polls-C67dmFc-.js";
94
- import { t as convertMarkdownTables } from "./tables-CGh4CW_h.js";
94
+ import { t as convertMarkdownTables } from "./tables-CIpKClDV.js";
95
95
  import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-vBANYkEo.js";
96
96
  import { i as parseAbsoluteTimeMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-C4U8O7GM.js";
97
- import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-CFWQq1nS.js";
98
- import { t as applyPluginAutoEnable } from "./plugin-auto-enable-a3TK3OPT.js";
99
- import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-BPgrWmUX.js";
100
- import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-BuBTLRMz.js";
97
+ import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-BqwS1Rlq.js";
98
+ import { t as applyPluginAutoEnable } from "./plugin-auto-enable-DJkHW_LG.js";
99
+ import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-EVcbFVqn.js";
100
+ import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-CLI3CiQv.js";
101
101
  import { n as isSenderIdAllowed, r as mergeDmAllowFromSources, t as firstDefined$1 } from "./allow-from-DzfdGdp7.js";
102
102
  import { t as parseTimeoutMs } from "./parse-timeout-DUdeaMqF.js";
103
103
  import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-tA6LTRr3.js";
104
- import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d as resolveDmGroupAccessWithLists, f as resolvePinnedMainDmOwnerFromAllowlist, i as resolveGroupToolPolicy, m as resolveControlCommandGate, n as isToolAllowedByPolicies, p as resolveCommandAuthorizedFromAuthorizers, r as resolveEffectiveToolPolicy, s as DM_GROUP_ACCESS_REASON, t as filterToolsByPolicy } from "./pi-tools.policy-D3RA94WF.js";
104
+ import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d as resolveDmGroupAccessWithLists, f as resolvePinnedMainDmOwnerFromAllowlist, i as resolveGroupToolPolicy, m as resolveControlCommandGate, n as isToolAllowedByPolicies, p as resolveCommandAuthorizedFromAuthorizers, r as resolveEffectiveToolPolicy, s as DM_GROUP_ACCESS_REASON, t as filterToolsByPolicy } from "./pi-tools.policy-BwWnFLLV.js";
105
105
  import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-CXdnb6je.js";
106
- import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-CZjP-Bm5.js";
107
- import { r as detectBinary } from "./onboard-helpers-DwEZeaoe.js";
108
- import { t as resolvePairingIdLabel } from "./pairing-labels-CX4CtqRa.js";
109
- import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-u8eyO3Ec.js";
110
- import { r as resolveMemorySearchConfig } from "./manager-BVfTfggO.js";
106
+ import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-DAu5nw-j.js";
107
+ import { r as detectBinary } from "./onboard-helpers-BP429__H.js";
108
+ import { t as resolvePairingIdLabel } from "./pairing-labels-CnTvFrUT.js";
109
+ import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-Dj8tyFtt.js";
110
+ import { r as resolveMemorySearchConfig } from "./manager-5OzUkYLf.js";
111
111
  import { i as resolveContextWindowInfo, n as CONTEXT_WINDOW_WARN_BELOW_TOKENS, r as evaluateContextWindowGuard, t as CONTEXT_WINDOW_HARD_MIN_TOKENS } from "./context-window-guard-EeoVR--t.js";
112
112
  import { createRequire } from "node:module";
113
113
  import { execFileSync, spawn, spawnSync } from "node:child_process";
@@ -117,7 +117,7 @@ import path, { isAbsolute } from "node:path";
117
117
  import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
118
118
  import JSON5 from "json5";
119
119
  import { inspect } from "node:util";
120
- import fsPromises, { appendFile, mkdir } from "node:fs/promises";
120
+ import fs$1, { appendFile, mkdir } from "node:fs/promises";
121
121
  import { complete, completeSimple, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
122
122
  import crypto, { createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
123
123
  import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, SettingsManager, codingTools, createAgentSession, createEditTool, createReadTool, createWriteTool, estimateTokens, generateSummary, readTool } from "@mariozechner/pi-coding-agent";
@@ -5153,7 +5153,7 @@ async function resolveAgentSessionDirs(stateDir) {
5153
5153
  const agentsDir = path.join(stateDir, "agents");
5154
5154
  let entries = [];
5155
5155
  try {
5156
- entries = await fsPromises.readdir(agentsDir, { withFileTypes: true });
5156
+ entries = await fs$1.readdir(agentsDir, { withFileTypes: true });
5157
5157
  } catch (err) {
5158
5158
  if (err.code === "ENOENT") return [];
5159
5159
  throw err;
@@ -8286,7 +8286,7 @@ async function runWithConcurrency(tasks, limit) {
8286
8286
  //#region src/media-understanding/echo-transcript.ts
8287
8287
  let deliverRuntimePromise$2 = null;
8288
8288
  function loadDeliverRuntime$2() {
8289
- deliverRuntimePromise$2 ??= import("./deliver-runtime-zICm26tE.js");
8289
+ deliverRuntimePromise$2 ??= import("./deliver-runtime-C08pF1_3.js");
8290
8290
  return deliverRuntimePromise$2;
8291
8291
  }
8292
8292
  const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
@@ -13122,7 +13122,7 @@ async function resolveSandboxWorkdir(params) {
13122
13122
  cwd: process.cwd(),
13123
13123
  root: params.sandbox.workspaceDir
13124
13124
  });
13125
- if (!(await fsPromises.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
13125
+ if (!(await fs$1.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
13126
13126
  const relative = resolved.relative ? resolved.relative.split(path.sep).join(path.posix.sep) : "";
13127
13127
  const containerWorkdir = relative ? path.posix.join(params.sandbox.containerWorkdir, relative) : params.sandbox.containerWorkdir;
13128
13128
  return {
@@ -14366,13 +14366,13 @@ async function validateScriptFileForShellBleed(params) {
14366
14366
  cwd: params.workdir,
14367
14367
  root: params.workdir
14368
14368
  });
14369
- stat = await fsPromises.stat(absPath);
14369
+ stat = await fs$1.stat(absPath);
14370
14370
  } catch {
14371
14371
  return;
14372
14372
  }
14373
14373
  if (!stat.isFile()) return;
14374
14374
  if (stat.size > 512 * 1024) return;
14375
- const content = await fsPromises.readFile(absPath, "utf-8");
14375
+ const content = await fs$1.readFile(absPath, "utf-8");
14376
14376
  const first = /\$[A-Z_][A-Z0-9_]{1,}/g.exec(content);
14377
14377
  if (first) {
14378
14378
  const idx = first.index;
@@ -15642,16 +15642,21 @@ function resolveAgentTier(params) {
15642
15642
  if (!primary) return "base";
15643
15643
  const { isPaid, provider } = isPaidProvider(primary);
15644
15644
  if (!isPaid) return "base";
15645
- if (!resolveEnvApiKey(provider)) return "base";
15645
+ const envKey = resolveEnvApiKey(provider);
15646
+ let hasAuthProfile = false;
15647
+ let profileIds = [];
15648
+ let authStore = null;
15646
15649
  try {
15647
- const authStore = ensureAuthProfileStore(params.agentDir ?? resolveSquidClawAgentDir(), { allowKeychainPrompt: false });
15648
- const profileIds = resolveAuthProfileOrder({
15650
+ authStore = ensureAuthProfileStore(params.agentDir ?? resolveSquidClawAgentDir(), { allowKeychainPrompt: false });
15651
+ profileIds = resolveAuthProfileOrder({
15649
15652
  cfg: params.cfg,
15650
15653
  store: authStore,
15651
15654
  provider
15652
15655
  });
15653
- if (profileIds.length > 0 && isPrimaryLastKnownBroken(authStore, profileIds, Date.now())) return "degraded";
15656
+ hasAuthProfile = profileIds.length > 0;
15654
15657
  } catch {}
15658
+ if (!envKey && !hasAuthProfile) return "base";
15659
+ if (authStore && profileIds.length > 0 && isPrimaryLastKnownBroken(authStore, profileIds, Date.now())) return "degraded";
15655
15660
  if (readFallbackFlag()) return "degraded";
15656
15661
  return "super";
15657
15662
  }
@@ -23948,7 +23953,7 @@ function normalizeReplyPayload(payload, opts = {}) {
23948
23953
  */
23949
23954
  let deliverRuntimePromise$1 = null;
23950
23955
  function loadDeliverRuntime$1() {
23951
- deliverRuntimePromise$1 ??= import("./deliver-runtime-zICm26tE.js");
23956
+ deliverRuntimePromise$1 ??= import("./deliver-runtime-C08pF1_3.js");
23952
23957
  return deliverRuntimePromise$1;
23953
23958
  }
23954
23959
  /**
@@ -24072,7 +24077,7 @@ async function emitResetCommandHooks(params) {
24072
24077
  try {
24073
24078
  const messages = [];
24074
24079
  if (sessionFile) {
24075
- const content = await fsPromises.readFile(sessionFile, "utf-8");
24080
+ const content = await fs$1.readFile(sessionFile, "utf-8");
24076
24081
  for (const line of content.split("\n")) {
24077
24082
  if (!line.trim()) continue;
24078
24083
  try {
@@ -24902,7 +24907,7 @@ async function createModelSelectionState(params) {
24902
24907
  }
24903
24908
  }
24904
24909
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
24905
- const { ensureAuthProfileStore } = await import("./auth-profiles-9T4j6jMy.js").then((n) => n.t);
24910
+ const { ensureAuthProfileStore } = await import("./auth-profiles-CX4YYu7Z.js").then((n) => n.t);
24906
24911
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
24907
24912
  const providerKey = normalizeProviderId(provider);
24908
24913
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -28498,7 +28503,7 @@ async function readJsonlFromPath(jsonlPath) {
28498
28503
  if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${resolved}`);
28499
28504
  throw new Error("jsonlPath outside allowed roots");
28500
28505
  }
28501
- const canonical = await fsPromises.realpath(resolved).catch(() => resolved);
28506
+ const canonical = await fs$1.realpath(resolved).catch(() => resolved);
28502
28507
  if (!isInboundPathAllowed({
28503
28508
  filePath: canonical,
28504
28509
  roots
@@ -28506,7 +28511,7 @@ async function readJsonlFromPath(jsonlPath) {
28506
28511
  if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${canonical}`);
28507
28512
  throw new Error("jsonlPath outside allowed roots");
28508
28513
  }
28509
- return await fsPromises.readFile(canonical, "utf8");
28514
+ return await fs$1.readFile(canonical, "utf8");
28510
28515
  }
28511
28516
  const CanvasToolSchema = Type.Object({
28512
28517
  action: stringEnum(CANVAS_ACTIONS),
@@ -29321,27 +29326,27 @@ function resolveRestartSentinelPath(env = process.env) {
29321
29326
  }
29322
29327
  async function writeRestartSentinel(payload, env = process.env) {
29323
29328
  const filePath = resolveRestartSentinelPath(env);
29324
- await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
29329
+ await fs$1.mkdir(path.dirname(filePath), { recursive: true });
29325
29330
  const data = {
29326
29331
  version: 1,
29327
29332
  payload
29328
29333
  };
29329
- await fsPromises.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
29334
+ await fs$1.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
29330
29335
  return filePath;
29331
29336
  }
29332
29337
  async function readRestartSentinel(env = process.env) {
29333
29338
  const filePath = resolveRestartSentinelPath(env);
29334
29339
  try {
29335
- const raw = await fsPromises.readFile(filePath, "utf-8");
29340
+ const raw = await fs$1.readFile(filePath, "utf-8");
29336
29341
  let parsed;
29337
29342
  try {
29338
29343
  parsed = JSON.parse(raw);
29339
29344
  } catch {
29340
- await fsPromises.unlink(filePath).catch(() => {});
29345
+ await fs$1.unlink(filePath).catch(() => {});
29341
29346
  return null;
29342
29347
  }
29343
29348
  if (!parsed || parsed.version !== 1 || !parsed.payload) {
29344
- await fsPromises.unlink(filePath).catch(() => {});
29349
+ await fs$1.unlink(filePath).catch(() => {});
29345
29350
  return null;
29346
29351
  }
29347
29352
  return parsed;
@@ -29353,7 +29358,7 @@ async function consumeRestartSentinel(env = process.env) {
29353
29358
  const filePath = resolveRestartSentinelPath(env);
29354
29359
  const parsed = await readRestartSentinel(env);
29355
29360
  if (!parsed) return null;
29356
- await fsPromises.unlink(filePath).catch(() => {});
29361
+ await fs$1.unlink(filePath).catch(() => {});
29357
29362
  return parsed;
29358
29363
  }
29359
29364
  function formatRestartSentinelMessage(payload) {
@@ -40457,18 +40462,18 @@ function appendImagePathsToPrompt(prompt, paths) {
40457
40462
  return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
40458
40463
  }
40459
40464
  async function writeCliImages(images) {
40460
- const tempDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), "squidclaw-cli-images-"));
40465
+ const tempDir = await fs$1.mkdtemp(path.join(os.tmpdir(), "squidclaw-cli-images-"));
40461
40466
  const paths = [];
40462
40467
  for (let i = 0; i < images.length; i += 1) {
40463
40468
  const image = images[i];
40464
40469
  const ext = resolveImageExtension(image.mimeType);
40465
40470
  const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
40466
40471
  const buffer = Buffer.from(image.data, "base64");
40467
- await fsPromises.writeFile(filePath, buffer, { mode: 384 });
40472
+ await fs$1.writeFile(filePath, buffer, { mode: 384 });
40468
40473
  paths.push(filePath);
40469
40474
  }
40470
40475
  const cleanup = async () => {
40471
- await fsPromises.rm(tempDir, {
40476
+ await fs$1.rm(tempDir, {
40472
40477
  recursive: true,
40473
40478
  force: true
40474
40479
  });
@@ -44440,7 +44445,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
44440
44445
  const log$9 = createSubsystemLogger("session-maintenance-warning");
44441
44446
  let deliverRuntimePromise = null;
44442
44447
  function loadDeliverRuntime() {
44443
- deliverRuntimePromise ??= import("./deliver-runtime-zICm26tE.js");
44448
+ deliverRuntimePromise ??= import("./deliver-runtime-C08pF1_3.js");
44444
44449
  return deliverRuntimePromise;
44445
44450
  }
44446
44451
  function shouldSendWarning() {
@@ -45021,7 +45026,7 @@ async function stageSandboxMedia(params) {
45021
45026
  const remoteMediaCacheDir = ctx.MediaRemoteHost ? path.join(CONFIG_DIR, "media", "remote-cache", sessionKey) : null;
45022
45027
  const effectiveWorkspaceDir = sandbox?.workspaceDir ?? remoteMediaCacheDir;
45023
45028
  if (!effectiveWorkspaceDir) return;
45024
- await fsPromises.mkdir(effectiveWorkspaceDir, { recursive: true });
45029
+ await fs$1.mkdir(effectiveWorkspaceDir, { recursive: true });
45025
45030
  const remoteAttachmentRoots = resolveIMessageRemoteAttachmentRoots({
45026
45031
  cfg,
45027
45032
  accountId: ctx.AccountId
@@ -45080,8 +45085,8 @@ async function stageLocalFileIntoRoot(params) {
45080
45085
  }
45081
45086
  async function stageRemoteFileIntoRoot(params) {
45082
45087
  const tmpRoot = resolvePreferredSquidClawTmpDir();
45083
- await fsPromises.mkdir(tmpRoot, { recursive: true });
45084
- const tmpDir = await fsPromises.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
45088
+ await fs$1.mkdir(tmpRoot, { recursive: true });
45089
+ const tmpDir = await fs$1.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
45085
45090
  const tmpPath = path.join(tmpDir, "download");
45086
45091
  try {
45087
45092
  await scpFile(params.remoteHost, params.remotePath, tmpPath);
@@ -45092,7 +45097,7 @@ async function stageRemoteFileIntoRoot(params) {
45092
45097
  maxBytes: params.maxBytes
45093
45098
  });
45094
45099
  } finally {
45095
- await fsPromises.rm(tmpDir, {
45100
+ await fs$1.rm(tmpDir, {
45096
45101
  recursive: true,
45097
45102
  force: true
45098
45103
  }).catch(() => {});
@@ -49400,7 +49405,7 @@ const VISION_PROVIDERS = [
49400
49405
  ];
49401
49406
  let imageRuntimePromise = null;
49402
49407
  function loadImageRuntime() {
49403
- imageRuntimePromise ??= import("./image-runtime-Cxoxcx04.js");
49408
+ imageRuntimePromise ??= import("./image-runtime-cza2NTiZ.js");
49404
49409
  return imageRuntimePromise;
49405
49410
  }
49406
49411
  /**
@@ -49466,7 +49471,7 @@ async function describeStickerImage(params) {
49466
49471
  const { provider, model } = resolved;
49467
49472
  logVerbose(`telegram: describing sticker with ${provider}/${model}`);
49468
49473
  try {
49469
- const buffer = await fsPromises.readFile(imagePath);
49474
+ const buffer = await fs$1.readFile(imagePath);
49470
49475
  const { describeImageWithModel } = await loadImageRuntime();
49471
49476
  return (await describeImageWithModel({
49472
49477
  buffer,
@@ -51296,7 +51301,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
51296
51301
  hasTypedText
51297
51302
  };
51298
51303
  try {
51299
- const { transcribeFirstAudio } = await import("./audio-preflight-CZ--cSZh.js");
51304
+ const { transcribeFirstAudio } = await import("./audio-preflight-C-JCwUKe.js");
51300
51305
  if (params.abortSignal?.aborted) return {
51301
51306
  hasAudioAttachment,
51302
51307
  hasTypedText
@@ -56252,27 +56257,27 @@ let slackSenderRuntimePromise = null;
56252
56257
  let signalSenderRuntimePromise = null;
56253
56258
  let imessageSenderRuntimePromise = null;
56254
56259
  function loadWhatsAppSenderRuntime() {
56255
- whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-CU257URT.js");
56260
+ whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-B6WZfxsU.js");
56256
56261
  return whatsappSenderRuntimePromise;
56257
56262
  }
56258
56263
  function loadTelegramSenderRuntime() {
56259
- telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-Irv0ky5l.js");
56264
+ telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-BHaZAs2h.js");
56260
56265
  return telegramSenderRuntimePromise;
56261
56266
  }
56262
56267
  function loadDiscordSenderRuntime() {
56263
- discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-C_9HZQko.js");
56268
+ discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-r80y9aXF.js");
56264
56269
  return discordSenderRuntimePromise;
56265
56270
  }
56266
56271
  function loadSlackSenderRuntime() {
56267
- slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-DjBCu-RX.js");
56272
+ slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-C3UUEG9J.js");
56268
56273
  return slackSenderRuntimePromise;
56269
56274
  }
56270
56275
  function loadSignalSenderRuntime() {
56271
- signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-BGhjYiu6.js");
56276
+ signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-ByJt6qz-.js");
56272
56277
  return signalSenderRuntimePromise;
56273
56278
  }
56274
56279
  function loadIMessageSenderRuntime() {
56275
- imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-BMhGsWds.js");
56280
+ imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-BmocBgPM.js");
56276
56281
  return imessageSenderRuntimePromise;
56277
56282
  }
56278
56283
  function createDefaultDeps() {
@@ -57445,10 +57450,10 @@ function estimateDurationSeconds(pcm) {
57445
57450
  return pcm.length / (bytesPerSample * SAMPLE_RATE);
57446
57451
  }
57447
57452
  async function writeWavFile(pcm) {
57448
- const tempDir = await fsPromises.mkdtemp(path.join(resolvePreferredSquidClawTmpDir(), "discord-voice-"));
57453
+ const tempDir = await fs$1.mkdtemp(path.join(resolvePreferredSquidClawTmpDir(), "discord-voice-"));
57449
57454
  const filePath = path.join(tempDir, `segment-${randomUUID()}.wav`);
57450
57455
  const wav = buildWavBuffer(pcm);
57451
- await fsPromises.writeFile(filePath, wav);
57456
+ await fs$1.writeFile(filePath, wav);
57452
57457
  scheduleTempCleanup(tempDir);
57453
57458
  return {
57454
57459
  path: filePath,
@@ -57457,7 +57462,7 @@ async function writeWavFile(pcm) {
57457
57462
  }
57458
57463
  function scheduleTempCleanup(tempDir, delayMs = 1800 * 1e3) {
57459
57464
  setTimeout(() => {
57460
- fsPromises.rm(tempDir, {
57465
+ fs$1.rm(tempDir, {
57461
57466
  recursive: true,
57462
57467
  force: true
57463
57468
  }).catch((err) => {
@@ -62100,7 +62105,7 @@ function normalizeAllowList$1(list) {
62100
62105
  async function detectRemoteHostFromCliPath(cliPath) {
62101
62106
  try {
62102
62107
  const expanded = cliPath.startsWith("~") ? cliPath.replace(/^~/, process.env.HOME ?? "") : cliPath;
62103
- const content = await fsPromises.readFile(expanded, "utf8");
62108
+ const content = await fs$1.readFile(expanded, "utf8");
62104
62109
  const userHostMatch = content.match(/\bssh\b[^\n]*?\s+([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/);
62105
62110
  if (userHostMatch) return userHostMatch[1];
62106
62111
  return content.match(/\bssh\b[^\n]*?\s+([a-zA-Z][a-zA-Z0-9._-]*)\s+\S*\bimsg\b/)?.[1];
@@ -69088,15 +69093,15 @@ let slashCommandsRuntimePromise = null;
69088
69093
  let slashDispatchRuntimePromise = null;
69089
69094
  let slashSkillCommandsRuntimePromise = null;
69090
69095
  function loadSlashCommandsRuntime() {
69091
- slashCommandsRuntimePromise ??= import("./slash-commands.runtime-Bi99B_EP.js");
69096
+ slashCommandsRuntimePromise ??= import("./slash-commands.runtime-CPlXJtuM.js");
69092
69097
  return slashCommandsRuntimePromise;
69093
69098
  }
69094
69099
  function loadSlashDispatchRuntime() {
69095
- slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-reuPLnse.js");
69100
+ slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-DLikrqBw.js");
69096
69101
  return slashDispatchRuntimePromise;
69097
69102
  }
69098
69103
  function loadSlashSkillCommandsRuntime() {
69099
- slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-DOXmvOtU.js");
69104
+ slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-Cnfq_5LN.js");
69100
69105
  return slashSkillCommandsRuntimePromise;
69101
69106
  }
69102
69107
  const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
@@ -72461,7 +72466,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
72461
72466
  const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
72462
72467
  let preflightTranscript;
72463
72468
  if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
72464
- const { transcribeFirstAudio } = await import("./audio-preflight-CZ--cSZh.js");
72469
+ const { transcribeFirstAudio } = await import("./audio-preflight-C-JCwUKe.js");
72465
72470
  preflightTranscript = await transcribeFirstAudio({
72466
72471
  ctx: {
72467
72472
  MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
@@ -73958,7 +73963,7 @@ function resolveCommandHashPath(accountId, botIdentity) {
73958
73963
  }
73959
73964
  async function readCachedCommandHash(accountId, botIdentity) {
73960
73965
  try {
73961
- return (await fsPromises.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
73966
+ return (await fs$1.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
73962
73967
  } catch {
73963
73968
  return null;
73964
73969
  }
@@ -73966,8 +73971,8 @@ async function readCachedCommandHash(accountId, botIdentity) {
73966
73971
  async function writeCachedCommandHash(accountId, botIdentity, hash) {
73967
73972
  const filePath = resolveCommandHashPath(accountId, botIdentity);
73968
73973
  try {
73969
- await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
73970
- await fsPromises.writeFile(filePath, hash, "utf-8");
73974
+ await fs$1.mkdir(path.dirname(filePath), { recursive: true });
73975
+ await fs$1.writeFile(filePath, hash, "utf-8");
73971
73976
  } catch {}
73972
73977
  }
73973
73978
  function syncTelegramMenuCommands(params) {
@@ -74811,7 +74816,7 @@ function safeParseState(raw) {
74811
74816
  async function readTelegramUpdateOffset(params) {
74812
74817
  const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
74813
74818
  try {
74814
- const parsed = safeParseState(await fsPromises.readFile(filePath, "utf-8"));
74819
+ const parsed = safeParseState(await fs$1.readFile(filePath, "utf-8"));
74815
74820
  const expectedBotId = extractBotIdFromToken(params.botToken);
74816
74821
  if (expectedBotId && parsed?.botId && parsed.botId !== expectedBotId) return null;
74817
74822
  if (expectedBotId && parsed?.botId === null) return null;
@@ -74835,7 +74840,7 @@ async function writeTelegramUpdateOffset(params) {
74835
74840
  async function deleteTelegramUpdateOffset(params) {
74836
74841
  const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
74837
74842
  try {
74838
- await fsPromises.unlink(filePath);
74843
+ await fs$1.unlink(filePath);
74839
74844
  } catch (err) {
74840
74845
  if (err.code === "ENOENT") return;
74841
74846
  throw err;
@@ -75309,7 +75314,7 @@ function createWhatsAppLoginTool() {
75309
75314
  force: Type.Optional(Type.Boolean())
75310
75315
  }),
75311
75316
  execute: async (_toolCallId, args) => {
75312
- const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-CX0rs3A6.js");
75317
+ const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-B8P_EAd-.js");
75313
75318
  if ((args?.action ?? "start") === "wait") {
75314
75319
  const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
75315
75320
  return {
@@ -75384,23 +75389,23 @@ let webOutboundPromise = null;
75384
75389
  let webLoginPromise = null;
75385
75390
  let whatsappActionsPromise = null;
75386
75391
  function loadWebOutbound() {
75387
- webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-BaWH6-ns.js");
75392
+ webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-C9OiwkWh.js");
75388
75393
  return webOutboundPromise;
75389
75394
  }
75390
75395
  function loadWebLogin() {
75391
- webLoginPromise ??= import("./runtime-whatsapp-login.runtime-COUEKxmy.js");
75396
+ webLoginPromise ??= import("./runtime-whatsapp-login.runtime-DRoK8G8H.js");
75392
75397
  return webLoginPromise;
75393
75398
  }
75394
75399
  function loadWebLoginQr() {
75395
- webLoginQrPromise ??= import("./login-qr-CX0rs3A6.js");
75400
+ webLoginQrPromise ??= import("./login-qr-B8P_EAd-.js");
75396
75401
  return webLoginQrPromise;
75397
75402
  }
75398
75403
  function loadWebChannel() {
75399
- webChannelPromise ??= import("./web-w04Gvwqi.js");
75404
+ webChannelPromise ??= import("./web-B3i9lUAX.js");
75400
75405
  return webChannelPromise;
75401
75406
  }
75402
75407
  function loadWhatsAppActions() {
75403
- whatsappActionsPromise ??= import("./whatsapp-actions-_ca5OtHq.js");
75408
+ whatsappActionsPromise ??= import("./whatsapp-actions-MR_bBjXO.js");
75404
75409
  return whatsappActionsPromise;
75405
75410
  }
75406
75411
  function createRuntimeWhatsApp() {
@@ -76712,7 +76717,7 @@ function resolvePluginTools(params) {
76712
76717
  //#endregion
76713
76718
  //#region src/agents/apply-patch-update.ts
76714
76719
  async function defaultReadFile(filePath) {
76715
- return fsPromises.readFile(filePath, "utf8");
76720
+ return fs$1.readFile(filePath, "utf8");
76716
76721
  }
76717
76722
  async function applyUpdateHunk(filePath, chunks, options) {
76718
76723
  const originalLines = (await (options?.readFile ?? defaultReadFile)(filePath).catch((err) => {
@@ -77033,7 +77038,7 @@ function resolvePatchFileOps(options) {
77033
77038
  const workspaceOnly = options.workspaceOnly !== false;
77034
77039
  return {
77035
77040
  readFile: async (filePath) => {
77036
- if (!workspaceOnly) return await fsPromises.readFile(filePath, "utf8");
77041
+ if (!workspaceOnly) return await fs$1.readFile(filePath, "utf8");
77037
77042
  const opened = await openBoundaryFile({
77038
77043
  absolutePath: filePath,
77039
77044
  rootPath: options.cwd,
@@ -77048,7 +77053,7 @@ function resolvePatchFileOps(options) {
77048
77053
  },
77049
77054
  writeFile: async (filePath, content) => {
77050
77055
  if (!workspaceOnly) {
77051
- await fsPromises.writeFile(filePath, content, "utf8");
77056
+ await fs$1.writeFile(filePath, content, "utf8");
77052
77057
  return;
77053
77058
  }
77054
77059
  const relative = toRelativeSandboxPath(options.cwd, filePath);
@@ -77059,8 +77064,8 @@ function resolvePatchFileOps(options) {
77059
77064
  encoding: "utf8"
77060
77065
  });
77061
77066
  },
77062
- remove: (filePath) => fsPromises.rm(filePath),
77063
- mkdirp: (dir) => fsPromises.mkdir(dir, { recursive: true }).then(() => {})
77067
+ remove: (filePath) => fs$1.rm(filePath),
77068
+ mkdirp: (dir) => fs$1.mkdir(dir, { recursive: true }).then(() => {})
77064
77069
  };
77065
77070
  }
77066
77071
  async function ensureDir(filePath, ops) {
@@ -77322,7 +77327,7 @@ const LOOP_WARNING_BUCKET_SIZE = 10;
77322
77327
  const MAX_LOOP_WARNING_KEYS = 256;
77323
77328
  let beforeToolCallRuntimePromise = null;
77324
77329
  function loadBeforeToolCallRuntime() {
77325
- beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-duKHqrMc.js");
77330
+ beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-Bba7rXQq.js");
77326
77331
  return beforeToolCallRuntimePromise;
77327
77332
  }
77328
77333
  function buildAdjustedParamsKey(params) {
@@ -77560,7 +77565,7 @@ function wrapHostEditToolWithPostWriteRecovery(base, root) {
77560
77565
  if (!pathParam || !newText) throw err;
77561
77566
  try {
77562
77567
  const absolutePath = resolveHostEditPath(root, pathParam);
77563
- const content = await fsPromises.readFile(absolutePath, "utf-8");
77568
+ const content = await fs$1.readFile(absolutePath, "utf-8");
77564
77569
  const hasNew = content.includes(newText);
77565
77570
  const stillHasOld = oldText !== void 0 && oldText.length > 0 && content.includes(oldText);
77566
77571
  if (hasNew && !stillHasOld) return {
@@ -78042,14 +78047,14 @@ function createSandboxEditOperations(params) {
78042
78047
  }
78043
78048
  async function writeHostFile(absolutePath, content) {
78044
78049
  const resolved = path.resolve(absolutePath);
78045
- await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
78046
- await fsPromises.writeFile(resolved, content, "utf-8");
78050
+ await fs$1.mkdir(path.dirname(resolved), { recursive: true });
78051
+ await fs$1.writeFile(resolved, content, "utf-8");
78047
78052
  }
78048
78053
  function createHostWriteOperations(root, options) {
78049
78054
  if (!(options?.workspaceOnly ?? false)) return {
78050
78055
  mkdir: async (dir) => {
78051
78056
  const resolved = path.resolve(dir);
78052
- await fsPromises.mkdir(resolved, { recursive: true });
78057
+ await fs$1.mkdir(resolved, { recursive: true });
78053
78058
  },
78054
78059
  writeFile: writeHostFile
78055
78060
  };
@@ -78062,7 +78067,7 @@ function createHostWriteOperations(root, options) {
78062
78067
  cwd: root,
78063
78068
  root
78064
78069
  });
78065
- await fsPromises.mkdir(resolved, { recursive: true });
78070
+ await fs$1.mkdir(resolved, { recursive: true });
78066
78071
  },
78067
78072
  writeFile: async (absolutePath, content) => {
78068
78073
  await writeFileWithinRoot({
@@ -78078,12 +78083,12 @@ function createHostEditOperations(root, options) {
78078
78083
  if (!(options?.workspaceOnly ?? false)) return {
78079
78084
  readFile: async (absolutePath) => {
78080
78085
  const resolved = path.resolve(absolutePath);
78081
- return await fsPromises.readFile(resolved);
78086
+ return await fs$1.readFile(resolved);
78082
78087
  },
78083
78088
  writeFile: writeHostFile,
78084
78089
  access: async (absolutePath) => {
78085
78090
  const resolved = path.resolve(absolutePath);
78086
- await fsPromises.access(resolved);
78091
+ await fs$1.access(resolved);
78087
78092
  }
78088
78093
  };
78089
78094
  return {
@@ -78921,7 +78926,7 @@ async function repairSessionFileIfNeeded(params) {
78921
78926
  };
78922
78927
  let content;
78923
78928
  try {
78924
- content = await fsPromises.readFile(sessionFile, "utf-8");
78929
+ content = await fs$1.readFile(sessionFile, "utf-8");
78925
78930
  } catch (err) {
78926
78931
  if (err?.code === "ENOENT") return {
78927
78932
  repaired: false,
@@ -78969,15 +78974,15 @@ async function repairSessionFileIfNeeded(params) {
78969
78974
  const backupPath = `${sessionFile}.bak-${process.pid}-${Date.now()}`;
78970
78975
  const tmpPath = `${sessionFile}.repair-${process.pid}-${Date.now()}.tmp`;
78971
78976
  try {
78972
- const stat = await fsPromises.stat(sessionFile).catch(() => null);
78973
- await fsPromises.writeFile(backupPath, content, "utf-8");
78974
- if (stat) await fsPromises.chmod(backupPath, stat.mode);
78975
- await fsPromises.writeFile(tmpPath, cleaned, "utf-8");
78976
- if (stat) await fsPromises.chmod(tmpPath, stat.mode);
78977
- await fsPromises.rename(tmpPath, sessionFile);
78977
+ const stat = await fs$1.stat(sessionFile).catch(() => null);
78978
+ await fs$1.writeFile(backupPath, content, "utf-8");
78979
+ if (stat) await fs$1.chmod(backupPath, stat.mode);
78980
+ await fs$1.writeFile(tmpPath, cleaned, "utf-8");
78981
+ if (stat) await fs$1.chmod(tmpPath, stat.mode);
78982
+ await fs$1.rename(tmpPath, sessionFile);
78978
78983
  } catch (err) {
78979
78984
  try {
78980
- await fsPromises.unlink(tmpPath);
78985
+ await fs$1.unlink(tmpPath);
78981
78986
  } catch (cleanupErr) {
78982
78987
  params.warn?.(`session file repair cleanup failed: ${cleanupErr instanceof Error ? cleanupErr.message : "unknown error"} (${path.basename(tmpPath)})`);
78983
78988
  }
@@ -80749,7 +80754,7 @@ async function prewarmSessionFile(sessionFile) {
80749
80754
  if (!isSessionManagerCacheEnabled()) return;
80750
80755
  if (isSessionManagerCached(sessionFile)) return;
80751
80756
  try {
80752
- const handle = await fsPromises.open(sessionFile, "r");
80757
+ const handle = await fs$1.open(sessionFile, "r");
80753
80758
  try {
80754
80759
  const buffer = Buffer$1.alloc(4096);
80755
80760
  await handle.read(buffer, 0, buffer.length, 0);
@@ -81116,7 +81121,7 @@ async function compactEmbeddedPiSessionDirect(params) {
81116
81121
  } catch (err) {
81117
81122
  return fail(describeUnknownError(err));
81118
81123
  }
81119
- await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
81124
+ await fs$1.mkdir(resolvedWorkspace, { recursive: true });
81120
81125
  const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
81121
81126
  const sandbox = await resolveSandboxContext({
81122
81127
  config: params.config,
@@ -81124,7 +81129,7 @@ async function compactEmbeddedPiSessionDirect(params) {
81124
81129
  workspaceDir: resolvedWorkspace
81125
81130
  });
81126
81131
  const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
81127
- await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
81132
+ await fs$1.mkdir(effectiveWorkspace, { recursive: true });
81128
81133
  await ensureSessionHeader({
81129
81134
  sessionFile: params.sessionFile,
81130
81135
  sessionId: params.sessionId,
@@ -82009,12 +82014,12 @@ function getQueuedFileWriter(writers, filePath) {
82009
82014
  const existing = writers.get(filePath);
82010
82015
  if (existing) return existing;
82011
82016
  const dir = path.dirname(filePath);
82012
- const ready = fsPromises.mkdir(dir, { recursive: true }).catch(() => void 0);
82017
+ const ready = fs$1.mkdir(dir, { recursive: true }).catch(() => void 0);
82013
82018
  let queue = Promise.resolve();
82014
82019
  const writer = {
82015
82020
  filePath,
82016
82021
  write: (line) => {
82017
- queue = queue.then(() => ready).then(() => fsPromises.appendFile(filePath, line, "utf8")).catch(() => void 0);
82022
+ queue = queue.then(() => ready).then(() => fs$1.appendFile(filePath, line, "utf8")).catch(() => void 0);
82018
82023
  }
82019
82024
  };
82020
82025
  writers.set(filePath, writer);
@@ -84932,7 +84937,7 @@ async function prepareSessionManagerForRun(params) {
84932
84937
  return;
84933
84938
  }
84934
84939
  if (params.hadSessionFile && header && !hasAssistant) {
84935
- await fsPromises.writeFile(params.sessionFile, "", "utf-8");
84940
+ await fs$1.writeFile(params.sessionFile, "", "utf-8");
84936
84941
  sm.fileEntries = [header];
84937
84942
  sm.byId?.clear?.();
84938
84943
  sm.labelsById?.clear?.();
@@ -85650,7 +85655,7 @@ async function runEmbeddedAttempt(params) {
85650
85655
  const prevCwd = process.cwd();
85651
85656
  const runAbortController = new AbortController();
85652
85657
  log$3.debug(`embedded run start: runId=${params.runId} sessionId=${params.sessionId} provider=${params.provider} model=${params.modelId} thinking=${params.thinkLevel} messageChannel=${params.messageChannel ?? params.messageProvider ?? "unknown"}`);
85653
- await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
85658
+ await fs$1.mkdir(resolvedWorkspace, { recursive: true });
85654
85659
  const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
85655
85660
  const sandbox = await resolveSandboxContext({
85656
85661
  config: params.config,
@@ -85658,7 +85663,7 @@ async function runEmbeddedAttempt(params) {
85658
85663
  workspaceDir: resolvedWorkspace
85659
85664
  });
85660
85665
  const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
85661
- await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
85666
+ await fs$1.mkdir(effectiveWorkspace, { recursive: true });
85662
85667
  let restoreSkillEnv;
85663
85668
  process.chdir(effectiveWorkspace);
85664
85669
  try {
@@ -85928,7 +85933,7 @@ async function runEmbeddedAttempt(params) {
85928
85933
  sessionFile: params.sessionFile,
85929
85934
  warn: (message) => log$3.warn(message)
85930
85935
  });
85931
- const hadSessionFile = await fsPromises.stat(params.sessionFile).then(() => true).catch(() => false);
85936
+ const hadSessionFile = await fs$1.stat(params.sessionFile).then(() => true).catch(() => false);
85932
85937
  const transcriptPolicy = resolveTranscriptPolicy({
85933
85938
  modelApi: params.model?.api,
85934
85939
  provider: params.provider,
@@ -87057,7 +87062,7 @@ async function runEmbeddedPiAgent(params) {
87057
87062
  const copilotAuthRetry = authRetryPending;
87058
87063
  authRetryPending = false;
87059
87064
  attemptedThinking.add(thinkLevel);
87060
- await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
87065
+ await fs$1.mkdir(resolvedWorkspace, { recursive: true });
87061
87066
  const prompt = provider === "anthropic" ? scrubAnthropicRefusalMagic(params.prompt) : params.prompt;
87062
87067
  const attempt = await runEmbeddedAttempt({
87063
87068
  sessionId: params.sessionId,
@@ -87863,7 +87868,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
87863
87868
  const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
87864
87869
  let subagentRegistryRuntimePromise = null;
87865
87870
  function loadSubagentRegistryRuntime() {
87866
- subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-CqgIWcSl.js");
87871
+ subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-DP1IpqM_.js");
87867
87872
  return subagentRegistryRuntimePromise;
87868
87873
  }
87869
87874
  const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [