@noxsoft/anima 2.0.4 → 2.0.5

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 (405) hide show
  1. package/dist/{accounts-D8CPKNkN.js → accounts-CP1IAWeM.js} +3 -3
  2. package/dist/{acp-cli-ByK6lS6c.js → acp-cli-0JY_DUDb.js} +14 -14
  3. package/dist/{acp-cli-CaQCjIw4.js → acp-cli-BUGHeckb.js} +1 -1
  4. package/dist/{agent-N5BDcge4.js → agent-DwTJ59DW.js} +17 -17
  5. package/dist/{agent-BgIkqd3F.js → agent-eLix7YLB.js} +3 -3
  6. package/dist/{agent-events-COH7NDW2.js → agent-events-COLRhRBH.js} +2 -2
  7. package/dist/{agent-scope-cj2QCT6R.js → agent-scope-CcE0DhlL.js} +3 -3
  8. package/dist/{agent-scope-DZgptr9J.js → agent-scope-OZi7lb8S.js} +4 -4
  9. package/dist/{agents-NEudYMdg.js → agents-D57WX9dn.js} +16 -16
  10. package/dist/{agents.config-Bujs-NIy.js → agents.config-Dvo2ULxs.js} +2 -2
  11. package/dist/{audit-C-UJhfdv.js → audit-BvPmfYxY.js} +5 -5
  12. package/dist/{audit-CeCO7SK5.js → audit-CmL_VKW9.js} +21 -21
  13. package/dist/{auth-choice-DA2k4vs8.js → auth-choice-8JX4OqDS.js} +9 -9
  14. package/dist/{auth-choice-5VnaGMD-.js → auth-choice-DbU0S_0Q.js} +4 -4
  15. package/dist/{auth-health-B7FqA26_.js → auth-health-CeDOBbt0.js} +1 -1
  16. package/dist/{auth-DMPZWzEa.js → auth-lZ26wsbN.js} +3 -3
  17. package/dist/{auth-profiles-BDrNYX_n.js → auth-profiles-BVZBTuls.js} +12 -12
  18. package/dist/{auth-profiles-CxSHydjn.js → auth-profiles-CC3TFfvS.js} +4 -4
  19. package/dist/{banner-BtDZPRzi.js → banner-DDcACdvK.js} +1 -1
  20. package/dist/{browser-cli-8yQMpxb8.js → browser-cli-BZ38kv8Y.js} +3 -3
  21. package/dist/{browser-cli-Czg3JtDH.js → browser-cli-CYOmCXxE.js} +18 -18
  22. package/dist/build-info.json +2 -2
  23. package/dist/bundled/boot-md/handler.js +15 -15
  24. package/dist/bundled/bootstrap-extra-files/handler.js +4 -4
  25. package/dist/bundled/command-logger/handler.js +1 -1
  26. package/dist/bundled/session-memory/handler.js +5 -5
  27. package/dist/{call-BIzCaKZb.js → call-CTMQygkz.js} +6 -6
  28. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  29. package/dist/{catalog-DMfEg-oK.js → catalog-BAayBt1L.js} +2 -2
  30. package/dist/{channel-options-BrtCtyrT.js → channel-options-M44Z9-3q.js} +3 -3
  31. package/dist/{channel-selection-Bbm1lq3P.js → channel-selection-DfGpCyh2.js} +2 -2
  32. package/dist/{channel-web-DrsT6OAE.js → channel-web-Q-STsf5N.js} +4 -4
  33. package/dist/{channels-cli-zNvi1m5c.js → channels-cli-SPO9rJnF.js} +20 -20
  34. package/dist/{channels-cli-Juyh1S6n.js → channels-cli-zIOBobe6.js} +74 -74
  35. package/dist/{channels-status-issues-CqzqshW4.js → channels-status-issues-DBc1pU_R.js} +1 -1
  36. package/dist/{chrome-C4dOMO8z.js → chrome-DlcCwfo_.js} +3 -3
  37. package/dist/{chrome-DdcDzAtH.js → chrome-mUDT-mA5.js} +11 -11
  38. package/dist/{chunk-D2nLsrEW.js → chunk-mxPVo000.js} +3 -3
  39. package/dist/{clack-prompter-BI3RDW5w.js → clack-prompter-B0kl7shw.js} +4 -4
  40. package/dist/{clack-prompter-Dwr1m_IZ.js → clack-prompter-Ct2BYIXW.js} +3 -3
  41. package/dist/cli/daemon-cli.js +1 -1
  42. package/dist/{cli-CjWUGdGC.js → cli-AYZaZSSx.js} +7 -7
  43. package/dist/cli-XuLBXSur.js +99 -0
  44. package/dist/{cli-session-gtuYN2Iq.js → cli-session-C70q07GT.js} +23 -23
  45. package/dist/{cli-session-BVjY_XrW.js → cli-session-CqlE2JFo.js} +1 -1
  46. package/dist/{client-Dswwze5_.js → client-C1avc0vD.js} +4 -4
  47. package/dist/{clipboard-BZKS9O1u.js → clipboard-BbGnZskJ.js} +1 -1
  48. package/dist/{command-registry-BBvNvysr.js → command-registry-CSbw6FZC.js} +13 -13
  49. package/dist/{commands-BMnD_QRY.js → commands-D5PGoVW4.js} +6 -6
  50. package/dist/{commands-AZ3n8Y2c.js → commands-D7CbOdcS.js} +6 -6
  51. package/dist/{commands-registry-cFqZ6Ib4.js → commands-registry-sLFieXCB.js} +2 -2
  52. package/dist/{common-DJbnT8ws.js → common-D6bu0zHC.js} +2 -2
  53. package/dist/{completion-cli-DMQgiObF.js → completion-cli-BFdiNmVD.js} +1 -1
  54. package/dist/{completion-cli-BADRBcIl.js → completion-cli-_SwCoFq6.js} +4 -4
  55. package/dist/{config-CU-Axg8P.js → config-BeuAT94o.js} +5 -5
  56. package/dist/{config-kVVm5EYV.js → config-C96685Kz.js} +34 -34
  57. package/dist/{config-cli-BPlbwiuA.js → config-cli-DhdAhW1h.js} +9 -9
  58. package/dist/{config-cli-DXgZJkPU.js → config-cli-NqEQjCzV.js} +1 -1
  59. package/dist/{config-guard-Ba49JNds.js → config-guard-B1rmR88x.js} +4 -4
  60. package/dist/{config-guard-Cu0qMKZJ.js → config-guard-BCUt7Re8.js} +4 -4
  61. package/dist/{config-sync-CzLnLTXt.js → config-sync-CoIIbEOe.js} +2 -2
  62. package/dist/{config-sync-DuydxPWx.js → config-sync-DvAttep0.js} +2 -2
  63. package/dist/{configure-CHgacLyi.js → configure-B2vlJbd2.js} +14 -14
  64. package/dist/{configure-DfHXDa1L.js → configure-FENKo5hf.js} +21 -21
  65. package/dist/{context-DzgXOckU.js → context-ChaAWbwZ.js} +3 -3
  66. package/dist/{control-service-8_wKHwBa.js → control-service-DXYImShH.js} +4 -4
  67. package/dist/{control-service-BtL1Jto_.js → control-service-X_1FRl7x.js} +2 -2
  68. package/dist/{cron-cli-CCWNkykU.js → cron-cli-B6jMeNqC.js} +1 -1
  69. package/dist/{cron-cli-BCzSR2c0.js → cron-cli-ByPSA5ZE.js} +19 -19
  70. package/dist/{daemon-cli-CmlHcC1J.js → daemon-cli-Bf0Q00vC.js} +9 -9
  71. package/dist/{daemon-cli-Bjkbu9Vy.js → daemon-cli-CKOoYhs-.js} +21 -21
  72. package/dist/{daemon-runtime-rUTqCVwJ.js → daemon-runtime-cglglYsH.js} +4 -4
  73. package/dist/{deliver-DFnVaetP.js → deliver-DiIOZFml.js} +8 -8
  74. package/dist/{deliver-CePITOl8.js → deliver-DujkDzqg.js} +15 -15
  75. package/dist/{deps-CeEKhrp7.js → deps-Bim542L5.js} +1 -1
  76. package/dist/{devices-cli-DQrDMrZH.js → devices-cli-BbUrME_U.js} +1 -1
  77. package/dist/{devices-cli-Oe-A1Dv0.js → devices-cli-qvEFBnyH.js} +12 -12
  78. package/dist/{diagnostics-m79ZlMmZ.js → diagnostics-BCxobJaf.js} +1 -1
  79. package/dist/{diagnostics-DxMFrBLO.js → diagnostics-DlIw6fqD.js} +1 -1
  80. package/dist/{directory-cli-Cjgmi_sj.js → directory-cli-BjnpktnO.js} +14 -14
  81. package/dist/{directory-cli-BL6h8cGF.js → directory-cli-VreWAdNS.js} +2 -2
  82. package/dist/{dispatcher-DNd40gUn.js → dispatcher-CoqsaA3f.js} +2 -2
  83. package/dist/{dispatcher-DAFbQM-c.js → dispatcher-DbDPyVIX.js} +1 -1
  84. package/dist/{dns-cli-CFtV3BXK.js → dns-cli-B-lWrEam.js} +2 -2
  85. package/dist/{dns-cli-NyIHvQ5S.js → dns-cli-CRKIrBD6.js} +10 -10
  86. package/dist/{dock-BdXLb5oY.js → dock-Dmxj3en_.js} +4 -4
  87. package/dist/{docs-cli-D_cmJDSr.js → docs-cli-Bn-mDvE1.js} +7 -7
  88. package/dist/{doctor-D12wNQPU.js → doctor-CeIWEOAK.js} +41 -41
  89. package/dist/{doctor-BpGxKrBl.js → doctor-DdOw46pE.js} +23 -23
  90. package/dist/{doctor-completion-DeOfofek.js → doctor-completion-CBANZ9T9.js} +4 -4
  91. package/dist/{doctor-completion-DwjqdEcK.js → doctor-completion-aDHxGApN.js} +2 -2
  92. package/dist/{doctor-config-flow-wMHheFkC.js → doctor-config-flow-Bb8TQwYh.js} +2 -2
  93. package/dist/{doctor-config-flow-BI3mpkbd.js → doctor-config-flow-Dxjx2igu.js} +9 -9
  94. package/dist/{engine-BCtL-AMw.js → engine-B9avUJL5.js} +5 -5
  95. package/dist/{engine-Bk_UT413.js → engine-BiUQ25D4.js} +5 -5
  96. package/dist/entry.js +1 -1
  97. package/dist/{exec-approvals-CroGJRUg.js → exec-approvals-CdLmKX2R.js} +2 -2
  98. package/dist/{exec-approvals-cli-BTxF_RsH.js → exec-approvals-cli-5-h9moQI.js} +6 -6
  99. package/dist/{exec-approvals-cli-n1gyGwH2.js → exec-approvals-cli-Cne9mMrK.js} +19 -19
  100. package/dist/{exec-B7sUS164.js → exec-tTxVr8zb.js} +17 -17
  101. package/dist/{frontmatter-BmHq0vRD.js → frontmatter-YijVi0FQ.js} +2 -2
  102. package/dist/{gateway-cli-IZNkOMBe.js → gateway-cli-BZpKEMGi.js} +62 -62
  103. package/dist/{gateway-cli-DDBadlrS.js → gateway-cli-DboOVUi8.js} +128 -128
  104. package/dist/{gateway-rpc-L2PVSqGj.js → gateway-rpc-C3eniXwh.js} +3 -3
  105. package/dist/{github-copilot-auth-DKyqDaGU.js → github-copilot-auth-AdaPw_fF.js} +2 -2
  106. package/dist/{github-copilot-auth-DXpOMSd3.js → github-copilot-auth-C2cJr55I.js} +3 -3
  107. package/dist/{gmail-setup-utils-BKNczIJ9.js → gmail-setup-utils-BPo_LkKI.js} +3 -3
  108. package/dist/{health-Bm8ZTvC3.js → health-CdHDOLo6.js} +4 -4
  109. package/dist/{health-DUf1gt4E.js → health-WvhhwAnn.js} +17 -17
  110. package/dist/{health-format-uzh1xYLD.js → health-format-CdP99j3Y.js} +2 -2
  111. package/dist/{heartbeat-visibility-1TJb1Zao.js → heartbeat-visibility-B4oqf1qY.js} +1 -1
  112. package/dist/{heartbeat-visibility-CwodtdcX.js → heartbeat-visibility-ClqnPSqo.js} +1 -1
  113. package/dist/{helpers-N-uSFKOn.js → helpers-ZKNRexvX.js} +1 -1
  114. package/dist/{hooks-cli-BGjILbze.js → hooks-cli-DTMS4Ly9.js} +58 -58
  115. package/dist/{hooks-cli-1POsXqOl.js → hooks-cli-DfR8cmrL.js} +11 -11
  116. package/dist/{hooks-status-Du-d1jde.js → hooks-status-B-e96dZj.js} +4 -4
  117. package/dist/{hooks-status-DE07n5RC.js → hooks-status-LVJDILL8.js} +1 -1
  118. package/dist/{image-ops-Bp0C6Mvr.js → image-ops-Dlt3T7th.js} +1 -1
  119. package/dist/index.js +12 -12
  120. package/dist/{init-9A0s7bWG.js → init-Bm04RagW.js} +2 -2
  121. package/dist/{init-DoyCHJDC.js → init-CaJBf4p1.js} +3 -3
  122. package/dist/{installs-D1C9wHAq.js → installs-D-cPGdCw.js} +5 -5
  123. package/dist/{installs-Dh4dHayM.js → installs-DCTtAJP8.js} +2 -2
  124. package/dist/{ipv4-DSOUVx0i.js → ipv4-CoPxliya.js} +8 -8
  125. package/dist/{ipv4-DCItfaJo.js → ipv4-loTbB6OD.js} +15 -15
  126. package/dist/{lifecycle-core-TQKyXO-6.js → lifecycle-core-BZo7U2jW.js} +8 -8
  127. package/dist/{lifecycle-core-BY4WIf9g.js → lifecycle-core-Cu_h9gos.js} +5 -5
  128. package/dist/{links-CNu_8RZl.js → links-BfjHVTB_.js} +1 -1
  129. package/dist/llm-slug-generator.js +4 -4
  130. package/dist/{logging-C7lb3Vjc.js → logging-DB6BQmhi.js} +1 -1
  131. package/dist/{login-DXWKewA2.js → login-CnNpZKOD.js} +3 -3
  132. package/dist/{login-pPs3UO38.js → login-D4n2DJtf.js} +5 -5
  133. package/dist/{login-qr-GF2JMIy-.js → login-qr-CaB_Oi7G.js} +9 -9
  134. package/dist/{login-qr-ZYYKD6Yt.js → login-qr-D3xv0VnI.js} +7 -7
  135. package/dist/{logs-cli-CzXbX8HZ.js → logs-cli-CFX-tr6f.js} +14 -14
  136. package/dist/{logs-cli-D9ngH9PF.js → logs-cli-NXQfed5q.js} +2 -2
  137. package/dist/{manager-BD5rA3w0.js → manager-D_engjHC.js} +9 -9
  138. package/dist/{manager-DRWMWM--.js → manager-iFc0bAWS.js} +7 -7
  139. package/dist/{manifest-registry-DbvPaBXY.js → manifest-registry-D4lM2RdV.js} +1 -1
  140. package/dist/{markdown-tables-CqwihY2m.js → markdown-tables-Bhes7rr4.js} +2 -2
  141. package/dist/{media-lUqN-0O9.js → media-Bu2L8c_7.js} +6 -6
  142. package/dist/{memory-cli-BLXSpgnN.js → memory-cli-CvrdGRvA.js} +13 -13
  143. package/dist/{memory-cli-BcGVkkRJ.js → memory-cli-D6v61Mts.js} +1 -1
  144. package/dist/{migrate-BpVOar4L.js → migrate-BR6iAIjO.js} +3 -3
  145. package/dist/{migrate-CkgGDkWy.js → migrate-D0EcMs0f.js} +2 -2
  146. package/dist/{models-CExsNQPH.js → models-D11W7O93.js} +22 -22
  147. package/dist/{models-cli-iDAlsbL2.js → models-cli-BfBH9dWH.js} +64 -64
  148. package/dist/{models-cli-Ba3Jmwev.js → models-cli-ClFZ55qZ.js} +18 -18
  149. package/dist/{net-0A_zcaQD.js → net-B5lXhYLV.js} +1 -1
  150. package/dist/{node-cli-DYFR_V25.js → node-cli-Cgn2mwSW.js} +12 -12
  151. package/dist/{node-cli-ATmwCXIk.js → node-cli-kxhgdSNi.js} +33 -33
  152. package/dist/{node-service-CN4LqR1A.js → node-service-BFxHJsno.js} +2 -2
  153. package/dist/{node-service-CWt3MdSC.js → node-service-BL8qVG1X.js} +1 -1
  154. package/dist/{nodes-cli-QeJIfa18.js → nodes-cli-De6Ta7GH.js} +2 -2
  155. package/dist/{nodes-cli-BeVmhTz3.js → nodes-cli-deMLu7ch.js} +18 -18
  156. package/dist/{nodes-screen-DHyWAlla.js → nodes-screen-BST4qOFR.js} +1 -1
  157. package/dist/{note-CSlg2BnB.js → note-BtE8fGoO.js} +1 -1
  158. package/dist/{note-Ctvglhp1.js → note-uiuPxhyX.js} +1 -1
  159. package/dist/{npm-registry-spec-PxisIMts.js → npm-registry-spec-za3itb5Y.js} +1 -1
  160. package/dist/{onboard-SAcu5N6N.js → onboard-BGv6xY1s.js} +18 -18
  161. package/dist/{onboard-DeruD10m.js → onboard-DPEqxVx4.js} +13 -13
  162. package/dist/{onboard-channels-oVTVgoyg.js → onboard-channels-BsTwWmEt.js} +10 -10
  163. package/dist/{onboard-channels-C4iSfFXR.js → onboard-channels-DEfpenNa.js} +4 -4
  164. package/dist/{onboard-helpers-B8roRwLP.js → onboard-helpers-CwcaOee8.js} +11 -11
  165. package/dist/{onboard-helpers-Dgh26hgP.js → onboard-helpers-Cz42ASwv.js} +2 -2
  166. package/dist/{onboarding-Bi-ac8we.js → onboarding-BxYOAHWD.js} +16 -16
  167. package/dist/{onboarding-C2gjB2u8.js → onboarding-DvitiaRS.js} +23 -23
  168. package/dist/{orchestrator-DlbAYMQP.js → orchestrator-BKzmyBWy.js} +4 -4
  169. package/dist/{orchestrator-DlwVRVDA.js → orchestrator-BN3QCz2s.js} +4 -4
  170. package/dist/{outbound-CkKgc6iR.js → outbound-Csw4yAYo.js} +5 -5
  171. package/dist/{outbound-Vfm5yDh3.js → outbound-L1IT5jN_.js} +4 -4
  172. package/dist/{outbound-send-deps-DDjiMfEL.js → outbound-send-deps-CmzQCbSX.js} +6 -6
  173. package/dist/{pairing-cli-mqopHI8s.js → pairing-cli-BmPkji_u.js} +1 -1
  174. package/dist/{pairing-cli-CJYeuEik.js → pairing-cli-CSRakAu-.js} +13 -13
  175. package/dist/{pairing-store-DoNj00-X.js → pairing-store-uUh4DCdc.js} +3 -3
  176. package/dist/{path-env-C_xpiG8l.js → path-env-Bu6k0jDQ.js} +1 -1
  177. package/dist/{paths-B1vRVCad.js → paths-Ba-yiqjy.js} +2 -2
  178. package/dist/{paths-DA9WYabg.js → paths-C1R4gjRm.js} +5 -5
  179. package/dist/{paths-DfQGx0_k.js → paths-CxRf2rBG.js} +1 -1
  180. package/dist/{pi-auth-json-DOPW3e4X.js → pi-auth-json-C2miwJYp.js} +4 -4
  181. package/dist/{pi-auth-json-lae_wwwo.js → pi-auth-json-I3iYPRAb.js} +5 -5
  182. package/dist/{pi-model-discovery-7q0GxMrp.js → pi-model-discovery-eIc-PHaM.js} +1 -1
  183. package/dist/{pi-tools.policy-xYdDLEv9.js → pi-tools.policy-DhmYCpdW.js} +5 -5
  184. package/dist/{plugin-auto-enable-CViVVWgg.js → plugin-auto-enable-DVD5Kls3.js} +4 -4
  185. package/dist/{plugin-registry-B4Aw2hzq.js → plugin-registry-NbbyJq_D.js} +2 -2
  186. package/dist/plugin-sdk/index.js +6 -6
  187. package/dist/{plugins-DtghNRtM.js → plugins-DdzdfeTc.js} +1 -1
  188. package/dist/{plugins-cli-4vWTmOAb.js → plugins-cli-Cs_jfROZ.js} +13 -13
  189. package/dist/{plugins-cli-CdTMbP0X.js → plugins-cli-D0jU5_VE.js} +59 -59
  190. package/dist/{ports-vd93M_Pt.js → ports-B3Vuo92o.js} +3 -3
  191. package/dist/{ports-BtZx-JKD.js → ports-Co1kd5qX.js} +2 -2
  192. package/dist/{program-CX3aUVeb.js → program-Db2-b8Np.js} +64 -64
  193. package/dist/{program-context-BPos0ivo.js → program-context-DR1cx29i.js} +38 -38
  194. package/dist/{pw-ai-C83HBue2.js → pw-ai-DM3CIGyg.js} +6 -6
  195. package/dist/{pw-ai-4QbK5YFe.js → pw-ai-MrkdzeIJ.js} +3 -3
  196. package/dist/{qmd-manager-CRrSkfia.js → qmd-manager-Cur_Ekn0.js} +7 -7
  197. package/dist/{qmd-manager-CPypGJ0P.js → qmd-manager-Dgo23O3Q.js} +6 -6
  198. package/dist/{register.agent-DKawm-9d.js → register.agent-B4CGE-cp.js} +26 -26
  199. package/dist/{register.agent-DDY8KJhn.js → register.agent-E1qzojq2.js} +76 -76
  200. package/dist/{register.anima-DBWz2rk_.js → register.anima-BETuBtyq.js} +17 -17
  201. package/dist/{register.anima-CEWUo29k.js → register.anima-C2coCJM_.js} +17 -17
  202. package/dist/register.configure-D5huhRa3.js +101 -0
  203. package/dist/{register.configure-BX67qV8k.js → register.configure-DqYNhIQj.js} +30 -30
  204. package/dist/{register.maintenance-0k-ZNhDg.js → register.maintenance-DC9IhZ2x.js} +31 -31
  205. package/dist/{register.maintenance-BIwx1fzX.js → register.maintenance-RuiaMHu7.js} +82 -82
  206. package/dist/{register.message-CXPsoakA.js → register.message-BRP5Y8SN.js} +59 -59
  207. package/dist/{register.message-DA3jvfgI.js → register.message-CL5mFcq-.js} +11 -11
  208. package/dist/{register.onboard-GOpdif-j.js → register.onboard-CdvtyeLg.js} +86 -86
  209. package/dist/{register.onboard-C4HG7Hqv.js → register.onboard-DFjl0E_x.js} +36 -36
  210. package/dist/{register.setup-GJyUDCqh.js → register.setup-CVhekh_d.js} +37 -37
  211. package/dist/{register.setup-B17vZT7C.js → register.setup-CuNhw63j.js} +87 -87
  212. package/dist/{register.status-health-sessions-D5876dGx.js → register.status-health-sessions-BdyiNJFD.js} +24 -24
  213. package/dist/{register.status-health-sessions-lOewVIZR.js → register.status-health-sessions-l7qnXORD.js} +73 -73
  214. package/dist/{register.subclis-Dwnujj5C.js → register.subclis-Bj3GU0St.js} +29 -29
  215. package/dist/{reply-r089HuRA.js → reply-Brlv-JC-.js} +69 -69
  216. package/dist/{reply-CR5T_oQJ.js → reply-C9A7Npep.js} +10 -10
  217. package/dist/{reply-prefix-Btb5o2NH.js → reply-prefix-XqRfG1QY.js} +2 -2
  218. package/dist/{reply-prefix-BcrS4Umd.js → reply-prefix-m-Nj9VGi.js} +1 -1
  219. package/dist/{routes-ucJWAk5O.js → routes-C5ylAnNV.js} +8 -8
  220. package/dist/{routes-B4czFzIb.js → routes-CooYoUCb.js} +1 -1
  221. package/dist/{rpc-BnKxnQ0v.js → rpc-BoNfgecI.js} +4 -4
  222. package/dist/{run-main-B74kv84C.js → run-main-DKNJvJ7W.js} +79 -79
  223. package/dist/{sandbox-CJTS3er6.js → sandbox-D8pgNhTE.js} +6 -6
  224. package/dist/{sandbox-cli-D1r5y6Sz.js → sandbox-cli-BeOQ8G6W.js} +29 -29
  225. package/dist/{sandbox-cli-CrkjyU5M.js → sandbox-cli-BlWdpX1h.js} +3 -3
  226. package/dist/{security-cli-DS09ebvA.js → security-cli-CRSXFNRa.js} +5 -5
  227. package/dist/{security-cli-BZUdnkhn.js → security-cli-CcYc8gKu.js} +34 -34
  228. package/dist/{server-context-DVh2z7om.js → server-context-Cu88BsgT.js} +9 -9
  229. package/dist/{server-context-C0xZbYhg.js → server-context-Du3Gdqy1.js} +3 -3
  230. package/dist/{server-node-events-i1Rrww31.js → server-node-events-0Una3QLI.js} +28 -28
  231. package/dist/{server-node-events-bu9lpkMH.js → server-node-events-DCY3mm-A.js} +4 -4
  232. package/dist/{service-CJJwLEor.js → service-BNVpYcQe.js} +2 -2
  233. package/dist/{service-DxLxBhaU.js → service-CpG4hCVW.js} +1 -1
  234. package/dist/{service-audit-M8y4TXVb.js → service-audit-B3atdWsy.js} +3 -3
  235. package/dist/{service-audit-DB4Y3Ekp.js → service-audit-DP4USmzf.js} +4 -4
  236. package/dist/{session-CGxOLFs2.js → session-B6T_f3RF.js} +9 -9
  237. package/dist/{session-cost-usage-qdfsGU2a.js → session-cost-usage-BwiTZuKl.js} +3 -3
  238. package/dist/{session-yOhWcsD2.js → session-xQxk_AyT.js} +4 -4
  239. package/dist/{sessions-CnRjwdVr.js → sessions-B9VnNnIk.js} +8 -8
  240. package/dist/{sessions-BgLN4KFr.js → sessions-BQUf6xj_.js} +6 -6
  241. package/dist/{sessions-wRKla1Qh.js → sessions-G7nfpjc6.js} +25 -25
  242. package/dist/{shared-Qpt4hUDi.js → shared-BcqU-KU2.js} +3 -3
  243. package/dist/{shared-kzrojZ1B.js → shared-CkGP1Gie.js} +5 -5
  244. package/dist/{shared-DS3UaJSP.js → shared-uOwPcrN5.js} +1 -1
  245. package/dist/{skill-scanner-DLJji5Ye.js → skill-scanner-CkaVLABv.js} +1 -1
  246. package/dist/{skills-BWFIEp4j.js → skills-B5LQx4lT.js} +3 -3
  247. package/dist/{skills-cli-BY53ILm2.js → skills-cli-CBFbV14l.js} +5 -5
  248. package/dist/{skills-cli-CO3gxl8A.js → skills-cli-gGWq4bgb.js} +13 -13
  249. package/dist/{skills-status-DX5pcqY3.js → skills-status-DaLLXtp7.js} +1 -1
  250. package/dist/{skills-status-zhcKzGkp.js → skills-status-JQluhU-P.js} +3 -3
  251. package/dist/{sqlite-CuprTGR7.js → sqlite-BiXgPbCK.js} +4 -4
  252. package/dist/{sqlite-B6MojU1I.js → sqlite-BukcjdJa.js} +2 -2
  253. package/dist/{start-Cu3aLoSf.js → start-DaXwIgOn.js} +10 -10
  254. package/dist/{start-Dz7tMAl8.js → start-Fy8lVmlo.js} +10 -10
  255. package/dist/{status-G0CITnKR.js → status-C7YN9z1q.js} +1 -1
  256. package/dist/{status-D2C0JCX3.js → status-DbxQqh2e.js} +33 -33
  257. package/dist/{status-CaSxhxfV.js → status-XzLCn872.js} +16 -16
  258. package/dist/{status-DlFMsQzh.js → status-iUSfyst3.js} +3 -3
  259. package/dist/{status.update-DVFelehi.js → status.update-DEtEANLh.js} +1 -1
  260. package/dist/{status.update-CHjhVxJY.js → status.update-ZVrSK04Z.js} +4 -4
  261. package/dist/{subagent-registry-DNDhbHWi.js → subagent-registry-BJzLJ6FY.js} +12 -12
  262. package/dist/{subagent-registry-3Xb4el-8.js → subagent-registry-DKRVOkTv.js} +11 -11
  263. package/dist/{system-cli-B5mt0FWa.js → system-cli-CYypNnD9.js} +1 -1
  264. package/dist/{system-cli-Dg3UQ3Zz.js → system-cli-VMfIEGoj.js} +12 -12
  265. package/dist/{systemd-RpPE0XGg.js → systemd-BSrHDyeU.js} +2 -2
  266. package/dist/{systemd-hints-vRInKcz9.js → systemd-hints-J3cHYZVZ.js} +1 -1
  267. package/dist/{systemd-linger-EujbmI5A.js → systemd-linger-B4wBMvpg.js} +2 -2
  268. package/dist/{systemd-linger-Dzyxqsod.js → systemd-linger-CmyqQkeC.js} +2 -2
  269. package/dist/{table-DhXHfRX2.js → table-DoiRPsn0.js} +1 -1
  270. package/dist/{timeout-Ddn-5kAO.js → timeout-CswI_K-U.js} +2 -2
  271. package/dist/{tokens-BaM53PEx.js → tokens-C-X7wDKj.js} +1 -1
  272. package/dist/{trash-Bmxs1Rnm.js → trash-BJLK1vMn.js} +1 -1
  273. package/dist/{tui-mUwDwqvd.js → tui-BfPtiXD1.js} +12 -12
  274. package/dist/{tui-cli-Dw7v4JoJ.js → tui-cli-BcsdagN8.js} +18 -18
  275. package/dist/{tui-cli-B9Sq5-cC.js → tui-cli-DN5WL85n.js} +1 -1
  276. package/dist/{update-DoZLVjva.js → update-DhOF8e0Q.js} +1 -1
  277. package/dist/{update-DF0GHG0j.js → update-TxptCqk7.js} +3 -3
  278. package/dist/{update-check-D5qAKes7.js → update-check-DmODY9MR.js} +3 -3
  279. package/dist/{update-cli-D36AmALA.js → update-cli-BVeg9il9.js} +91 -91
  280. package/dist/{update-cli-BNu2Oi7H.js → update-cli-DXAbudd9.js} +39 -39
  281. package/dist/{update-runner-CNQQaTwA.js → update-runner-B2bjvdxa.js} +5 -5
  282. package/dist/{update-runner-CvxZmbu-.js → update-runner-CTCGT1OS.js} +3 -3
  283. package/dist/{usage-BGCwNnjk.js → usage-kVpWUUrn.js} +25 -25
  284. package/dist/{web-Cv2KnTnL.js → web-B1OjU-Gf.js} +9 -9
  285. package/dist/{web-B5QG839O.js → web-BGf92cSU.js} +100 -100
  286. package/dist/{web-Cmnvk9v0.js → web-C4FxauVQ.js} +60 -60
  287. package/dist/{webhooks-cli-B6y89Pj_.js → webhooks-cli-bEG0ADkY.js} +1 -1
  288. package/dist/{webhooks-cli-BDzHON4w.js → webhooks-cli-l0yqYtZW.js} +10 -10
  289. package/dist/{whatsapp-actions-C_5MwVxM.js → whatsapp-actions-CvnLgxjq.js} +10 -10
  290. package/dist/{whatsapp-actions-zTiVOoOV.js → whatsapp-actions-CwSwIOO3.js} +16 -16
  291. package/dist/{widearea-dns-CF1gxpJ-.js → widearea-dns-NsEUNYwz.js} +1 -1
  292. package/dist/{workspace-DLna1IxR.js → workspace-BTjqqJY-.js} +5 -5
  293. package/dist/{ws-log-Q4wO1Ztb.js → ws-log-N8R5MvGE.js} +2 -2
  294. package/package.json +1 -1
  295. package/dist/cli-C3cpDaz8.js +0 -99
  296. package/dist/dist-CqDI82ei.js +0 -929
  297. package/dist/dist-DnHRxR5U.js +0 -929
  298. package/dist/register.configure-CWsySuiq.js +0 -101
  299. /package/dist/{agents.config-jp7OLssr.js → agents.config-DWZdxlQw.js} +0 -0
  300. /package/dist/{auth-health-VO_MPqVX.js → auth-health-CP4Id2rW.js} +0 -0
  301. /package/dist/{auto-update-CpF0fycd.js → auto-update-CUeF99gI.js} +0 -0
  302. /package/dist/{auto-update-DNWdO7uF.js → auto-update-cgkp9ZTJ.js} +0 -0
  303. /package/dist/{brew-nqf_MiE4.js → brew-CVZkr0GU.js} +0 -0
  304. /package/dist/{budget-CRpvqDRX.js → budget-BWBp8Res.js} +0 -0
  305. /package/dist/{budget-CPedI-qW.js → budget-DxYQSekw.js} +0 -0
  306. /package/dist/{channels-status-issues-DdJdO866.js → channels-status-issues-DwHRoeWL.js} +0 -0
  307. /package/dist/{cli-utils-C1YHVD4o.js → cli-utils-DtAxdCte.js} +0 -0
  308. /package/dist/{clipboard-DES8b1AM.js → clipboard-SCV-0V39.js} +0 -0
  309. /package/dist/{command-format-G6N2zghg.js → command-format-DAaqLG8J.js} +0 -0
  310. /package/dist/{command-options-BbponVnw.js → command-options-CSbuuqHr.js} +0 -0
  311. /package/dist/{command-options-s0gnvXnS.js → command-options-Cp1tf96a.js} +0 -0
  312. /package/dist/{constants-Dhb6zSIV.js → constants-O8yBqCBv.js} +0 -0
  313. /package/dist/{daemon-runtime-C0tz7VAC.js → daemon-runtime-C9KTe-Gn.js} +0 -0
  314. /package/dist/{dangerous-tools-DGTtJ_JR.js → dangerous-tools-5ObDWy1N.js} +0 -0
  315. /package/dist/{dangerous-tools-DxrfTOfT.js → dangerous-tools-Jwr7jqNw.js} +0 -0
  316. /package/dist/{delivery-queue-Bxm0nzw7.js → delivery-queue-B6IHz4Ry.js} +0 -0
  317. /package/dist/{display-Jy3UdGzA.js → display-BDOsXu8F.js} +0 -0
  318. /package/dist/{docs-cli-CrOaIK_H.js → docs-cli-B02Wm6DH.js} +0 -0
  319. /package/dist/{errors-CKaCqKga.js → errors-CHow2wtt.js} +0 -0
  320. /package/dist/{exec-DDmuVVNq.js → exec-BizYYQgP.js} +0 -0
  321. /package/dist/{format-ByEjgyTF.js → format-Mq6iU0_5.js} +0 -0
  322. /package/dist/{format-duration-Aaj5tjJd.js → format-duration-DhWzz_5b.js} +0 -0
  323. /package/dist/{format-relative-79_Y1n2Y.js → format-relative-C6kUHuOj.js} +0 -0
  324. /package/dist/{gateway-rpc-Dtx8HN-n.js → gateway-rpc-QOe014D_.js} +0 -0
  325. /package/dist/{gmail-setup-utils-co0ppccC.js → gmail-setup-utils-Bn8x7djJ.js} +0 -0
  326. /package/dist/{health-format-BksT6F68.js → health-format-DteBvzWP.js} +0 -0
  327. /package/dist/{help-format-C6cv_aZp.js → help-format-C4eJQd8a.js} +0 -0
  328. /package/dist/{help-format-BMKzarov.js → help-format-DUBI91Ti.js} +0 -0
  329. /package/dist/{helpers-FMld9sBT.js → helpers-DLgbkcEn.js} +0 -0
  330. /package/dist/{helpers-DpEB9Mh0.js → helpers-eJFa4K6r.js} +0 -0
  331. /package/dist/{input-provenance-Cy_KnBlP.js → input-provenance-DJBdpeKk.js} +0 -0
  332. /package/dist/{is-main-yjaVwMtJ.js → is-main-Dt9DTcH1.js} +0 -0
  333. /package/dist/{loader-CkmOrXcC.js → loader-BoYxRfcW.js} +0 -0
  334. /package/dist/{loader-Br7Vr0zn.js → loader-l2OBdJ8x.js} +0 -0
  335. /package/dist/{logging-CY-Q5cwf.js → logging-BdnOSVPD.js} +0 -0
  336. /package/dist/{logging-BIeRw0WR.js → logging-BuRtGUH1.js} +0 -0
  337. /package/dist/{login-qr-CevLD8cV.js → login-qr-Cc2QmLhD.js} +0 -0
  338. /package/dist/{message-channel-dua8OOGJ.js → message-channel-w4F2b2F6.js} +0 -0
  339. /package/dist/{mime-CBg4KybI.js → mime-B1ZoR53M.js} +0 -0
  340. /package/dist/{model-param-b-DW9f0NN8.js → model-param-b-DPwyNGn8.js} +0 -0
  341. /package/dist/{node-match-BV8bTBd4.js → node-match-8XZnaid6.js} +0 -0
  342. /package/dist/{normalize-_lmlBOW9.js → normalize-GDK8JTNW.js} +0 -0
  343. /package/dist/{npm-registry-spec-DQd4M22q.js → npm-registry-spec-DvJxezSJ.js} +0 -0
  344. /package/dist/{openclaw-root-JPvmPTf7.js → openclaw-root-C85WMnVV.js} +0 -0
  345. /package/dist/{outbound-send-deps-BfUvuWGa.js → outbound-send-deps-ANnAhImn.js} +0 -0
  346. /package/dist/{parse-CZRwKocn.js → parse-6-2MDhdT.js} +0 -0
  347. /package/dist/{parse-log-line-CvrZEK6A.js → parse-log-line-Bqh1SSzC.js} +0 -0
  348. /package/dist/{parse-log-line-mLdat0AH.js → parse-log-line-DUZCjXbl.js} +0 -0
  349. /package/dist/{parse-port-BSOOdo7I.js → parse-port-BKB9Exlg.js} +0 -0
  350. /package/dist/{parse-port-Y0NK62x1.js → parse-port-DrfvwwiL.js} +0 -0
  351. /package/dist/{parse-timeout-DVPQ3n9j.js → parse-timeout-Di_tcEmi.js} +0 -0
  352. /package/dist/{paths-DHjlJ6cn.js → paths-DcVEkYX5.js} +0 -0
  353. /package/dist/{pi-auth-json-MruLmI_X.js → pi-auth-json-B1M8W1pO.js} +0 -0
  354. /package/dist/{pi-model-discovery-DzEIEgHL.js → pi-model-discovery-DsRqYJLy.js} +0 -0
  355. /package/dist/{plugin-auto-enable-CjZ238UI.js → plugin-auto-enable-d9eDmGOX.js} +0 -0
  356. /package/dist/{plugins-D6PBOdkn.js → plugins-CDJw924T.js} +0 -0
  357. /package/dist/{program-context-Q1hkT73c.js → program-context-Bvn8046-.js} +0 -0
  358. /package/dist/{progress-C9Ha1NJh.js → progress-CbZ2D53A.js} +0 -0
  359. /package/dist/{prompt-style-Cm4wOtKm.js → prompt-style-D6u56SjJ.js} +0 -0
  360. /package/dist/{prompt-style-DQi8j03a.js → prompt-style-DKy6qQxR.js} +0 -0
  361. /package/dist/{prompts-BEHxUC3w.js → prompts-BI__va99.js} +0 -0
  362. /package/dist/{prompts-CSOhuiqe.js → prompts-_dDWkCAz.js} +0 -0
  363. /package/dist/{pw-ai-BWz3Cxt7.js → pw-ai-CbEgFH-G.js} +0 -0
  364. /package/dist/{qmd-manager-BcMeZiGD.js → qmd-manager-DPslO6i9.js} +0 -0
  365. /package/dist/{queue-BJGo7kAB.js → queue-D_u34pbL.js} +0 -0
  366. /package/dist/{queue-DYgUbdoq.js → queue-PG591iID.js} +0 -0
  367. /package/dist/{redact-CyKvdFrg.js → redact-ClVwO7Nn.js} +0 -0
  368. /package/dist/{registry-C5MAYD4V.js → registry-Bs_DJK9E.js} +0 -0
  369. /package/dist/{registry-CRrXXVs0.js → registry-D_zlP1U-.js} +0 -0
  370. /package/dist/{requirements-CGkxTCu4.js → requirements-BzZxj2Wu.js} +0 -0
  371. /package/dist/{requirements-CIDaOcbO.js → requirements-DIW1svgA.js} +0 -0
  372. /package/dist/{rpc-DgE-xnyx.js → rpc-aBUUQWC3.js} +0 -0
  373. /package/dist/{runtime-guard-nL3Lp8T-.js → runtime-guard-DeOXA_86.js} +0 -0
  374. /package/dist/{secret-equal-DJpmLXlG.js → secret-equal-Dghy3xsA.js} +0 -0
  375. /package/dist/{send-CTcxgDDU.js → send-BhAfdGII.js} +0 -0
  376. /package/dist/{send-DZQTaG7-.js → send-C2t9xpXI.js} +0 -0
  377. /package/dist/{send-VDff2gra.js → send-DigO-i9j.js} +0 -0
  378. /package/dist/{send-bgQNV8d1.js → send-Dz2BDHll.js} +0 -0
  379. /package/dist/{send-DPezUR3-.js → send-ga9udK1_.js} +0 -0
  380. /package/dist/{session-key-CQT-NR6w.js → session-key-BGiG_JcT.js} +0 -0
  381. /package/dist/{shared-DxNHzky3.js → shared-DwguvoZP.js} +0 -0
  382. /package/dist/{shell-argv-n9IueeJQ.js → shell-argv-CAq1mLa2.js} +0 -0
  383. /package/dist/{skill-scanner-o6NgVMD9.js → skill-scanner-Coo4QoCd.js} +0 -0
  384. /package/dist/{status-C53kTIXF.js → status-CMnlcBVc.js} +0 -0
  385. /package/dist/{status-CZDDA_Sy.js → status-tDZPwewW.js} +0 -0
  386. /package/dist/{system-run-command-CqAqKL9K.js → system-run-command-DGk7dwQP.js} +0 -0
  387. /package/dist/{system-run-command-BCjUffN9.js → system-run-command-X9lDJIy0.js} +0 -0
  388. /package/dist/{systemd-B43AvOGx.js → systemd-BVVNFIBH.js} +0 -0
  389. /package/dist/{systemd-hints-DMJT-Bbc.js → systemd-hints-Mpt5QteE.js} +0 -0
  390. /package/dist/{table-bWCLW-3P.js → table-B_wVcaLO.js} +0 -0
  391. /package/dist/{tailnet-Ciwjv243.js → tailnet-CuiNECdL.js} +0 -0
  392. /package/dist/{templates-37RKpACb.js → templates-CeYJjVzw.js} +0 -0
  393. /package/dist/{templates-DPalk30o.js → templates-I3Z0xplD.js} +0 -0
  394. /package/dist/{thinking-2hxwmvTl.js → thinking-BXEswx1X.js} +0 -0
  395. /package/dist/{transcript-events-Bp7fGnwv.js → transcript-events-C1hdue6u.js} +0 -0
  396. /package/dist/{transcript-tools-D4Lbxlka.js → transcript-tools-DuyYOkUq.js} +0 -0
  397. /package/dist/{tui-BHgBWhHE.js → tui-r0_5VL_h.js} +0 -0
  398. /package/dist/{update-check-Bt1dVPVN.js → update-check-DlDloai0.js} +0 -0
  399. /package/dist/{usage-format-6Uar63S0.js → usage-format-BAirWUSO.js} +0 -0
  400. /package/dist/{utils-DT8uXjFS.js → utils-C9sj30YY.js} +0 -0
  401. /package/dist/{whatsapp-actions-hgYA12To.js → whatsapp-actions-DsoA_Bad.js} +0 -0
  402. /package/dist/{widearea-dns-BeIdnISJ.js → widearea-dns-1txrPZ0I.js} +0 -0
  403. /package/dist/{ws-log-xF0kxDzp.js → ws-log-BffL5dN_.js} +0 -0
  404. /package/dist/{wsl-CrPvx2kZ.js → wsl-CqyuRvtM.js} +0 -0
  405. /package/dist/{wsl-UvJ5dHah.js → wsl-ymJYvc9Q.js} +0 -0
@@ -1,44 +1,44 @@
1
- import { a as resolveOAuthDir, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-DA9WYabg.js";
2
- import { A as isAcpSessionKey, C as normalizeAccountId$1, D as resolveThreadSessionKeys, E as resolveAgentIdFromSessionKey, M as parseAgentSessionKey, N as resolveThreadParentSessionKey, O as sanitizeAgentId, T as normalizeMainKey, _ as DEFAULT_AGENT_ID, a as DEFAULT_IDENTITY_FILENAME, b as buildAgentPeerSessionKey, c as DEFAULT_USER_FILENAME, g as DEFAULT_ACCOUNT_ID, i as DEFAULT_HEARTBEAT_FILENAME, j as isSubagentSessionKey, k as getSubagentDepth, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, v as DEFAULT_MAIN_KEY, w as normalizeAgentId, x as buildGroupHistoryKey, y as buildAgentMainSessionKey } from "./workspace-DLna1IxR.js";
3
- import { $ as colorize, A as formatTerminalLink, B as safeParseJson, C as setActivePluginRegistry, E as clampInt, F as normalizeE164, G as toWhatsappJid, H as shortenHomePath, K as truncateUtf16Safe, L as resolveConfigDir, M as isRecord, N as isSelfChatMode, O as ensureDir$3, P as jidToE164, R as resolveJidToE164, T as clamp, U as sleep, V as shortenHomeInString, W as sliceUtf16Safe, X as setVerbose, Y as logVerbose, Z as shouldLogVerbose, a as logDebug, at as resolvePreferredAnimaTmpDir, c as logWarn, d as clearActiveProgressLine, et as isRich, f as registerActiveProgressLine, h as CHAT_CHANNEL_ORDER, i as spawnWithFallback, it as normalizeLogLevel, j as isPlainObject, k as escapeRegExp, l as createSubsystemLogger, m as CHANNEL_IDS, n as runExec, nt as getChildLogger, o as logError, p as unregisterActiveProgressLine, r as formatSpawnError, s as logInfo, t as runCommandWithTimeout, tt as theme, u as defaultRuntime, v as normalizeAnyChannelId, w as CONFIG_DIR, x as getActivePluginRegistry, y as normalizeChannelId, z as resolveUserPath } from "./exec-B7sUS164.js";
4
- import { c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, l as resolveSessionAgentId, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentIds } from "./agent-scope-cj2QCT6R.js";
1
+ import { a as resolveOAuthDir, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-C1R4gjRm.js";
2
+ import { A as isAcpSessionKey, C as normalizeAccountId$1, D as resolveThreadSessionKeys, E as resolveAgentIdFromSessionKey, M as parseAgentSessionKey, N as resolveThreadParentSessionKey, O as sanitizeAgentId, T as normalizeMainKey, _ as DEFAULT_AGENT_ID, a as DEFAULT_IDENTITY_FILENAME, b as buildAgentPeerSessionKey, c as DEFAULT_USER_FILENAME, g as DEFAULT_ACCOUNT_ID, i as DEFAULT_HEARTBEAT_FILENAME, j as isSubagentSessionKey, k as getSubagentDepth, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, v as DEFAULT_MAIN_KEY, w as normalizeAgentId, x as buildGroupHistoryKey, y as buildAgentMainSessionKey } from "./workspace-BTjqqJY-.js";
3
+ import { $ as colorize, A as formatTerminalLink, B as safeParseJson, C as setActivePluginRegistry, E as clampInt, F as normalizeE164, G as toWhatsappJid, H as shortenHomePath, K as truncateUtf16Safe, L as resolveConfigDir, M as isRecord, N as isSelfChatMode, O as ensureDir$3, P as jidToE164, R as resolveJidToE164, T as clamp, U as sleep, V as shortenHomeInString, W as sliceUtf16Safe, X as setVerbose, Y as logVerbose, Z as shouldLogVerbose, a as logDebug, at as resolvePreferredAnimaTmpDir, c as logWarn, d as clearActiveProgressLine, et as isRich, f as registerActiveProgressLine, h as CHAT_CHANNEL_ORDER, i as spawnWithFallback, it as normalizeLogLevel, j as isPlainObject, k as escapeRegExp, l as createSubsystemLogger, m as CHANNEL_IDS, n as runExec, nt as getChildLogger, o as logError, p as unregisterActiveProgressLine, r as formatSpawnError, s as logInfo, t as runCommandWithTimeout, tt as theme, u as defaultRuntime, v as normalizeAnyChannelId, w as CONFIG_DIR, x as getActivePluginRegistry, y as normalizeChannelId, z as resolveUserPath } from "./exec-tTxVr8zb.js";
4
+ import { c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, l as resolveSessionAgentId, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentIds } from "./agent-scope-CcE0DhlL.js";
5
5
  import { a as queueEmbeddedPiMessage, c as waitForEmbeddedPiRunEnd, i as isEmbeddedPiRunStreaming, n as compactEmbeddedPiSession, o as resolveEmbeddedSessionLane, r as isEmbeddedPiRunActive, s as runEmbeddedPiAgent, t as abortEmbeddedPiRun } from "./pi-embedded-C1Nl7L89.js";
6
6
  import { n as resolveCliName, t as formatCliCommand } from "./command-format-CP1YTNCl.js";
7
- import { C as unsetConfigValueAtPath, D as getWebAuthAgeMs, E as WA_WEB_AUTH_DIR, I as webAuthExists, M as readWebSelfId, O as logWebSelfId, S as setConfigValueAtPath, T as resolveWhatsAppAccount, _ as resetConfigOverrides, a as writeConfigFile, b as getConfigValueAtPath, c as parseDurationMs, d as discoverAnimaPlugins, f as applyTestPluginDefaults, g as getConfigOverrides, h as resolveMemorySlotDecision, i as resolveConfigSnapshotHash, j as pickWebChannel, k as logoutWeb, l as validateJsonSchemaValue, m as resolveEnableState, n as loadConfig, o as validateConfigObjectWithPlugins, p as normalizePluginsConfig, r as readConfigFileSnapshot, t as createConfigIO, u as loadPluginManifestRegistry, v as setConfigOverride, w as VERSION, x as parseConfigPath, y as unsetConfigOverride } from "./config-kVVm5EYV.js";
8
- import { A as listChannelDocks, B as HEARTBEAT_TOKEN, C as resolveFreshSessionTotalTokens, D as resolveMainSessionKey, F as resolveChannelGroupRequireMention, H as isSilentReplyText, I as resolveChannelGroupToolsPolicy, L as resolveConversationLabel, M as resolveSignalAccount, N as resolveIMessageAccount, O as deriveSessionMetaPatch, P as resolveChannelGroupPolicy, R as normalizeChatType, S as DEFAULT_RESET_TRIGGERS, T as resolveAgentMainSessionKey, V as SILENT_REPLY_TOKEN, _ as evaluateSessionFreshness, a as readSessionUpdatedAt, b as resolveSessionResetType, c as updateSessionStore, d as deliveryContextKey, f as mergeDeliveryContext, g as resolveSessionKey$1, i as loadSessionStore, j as listEnabledSignalAccounts, k as getChannelDock, l as updateSessionStoreEntry, m as normalizeSessionDeliveryFields, n as appendAssistantMessageToSessionTranscript, o as recordSessionMetaFromInbound, p as normalizeDeliveryContext, s as updateLastRoute, t as extractDeliveryInfo, u as deliveryContextFromSession, v as resolveChannelResetConfig, w as canonicalizeMainSessionAlias, x as resolveThreadFlag, y as resolveSessionResetPolicy, z as resolveGroupSessionKey } from "./sessions-wRKla1Qh.js";
9
- import { A as normalizeSecretInput, B as resolveAuthProfileDisplayLabel, C as resolveThinkingDefault, D as resolveApiKeyForProvider, E as requireApiKey, L as DEFAULT_CONTEXT_TOKENS, N as resolveShellEnvFallbackTimeoutMs, O as resolveEnvApiKey, R as DEFAULT_MODEL, S as resolveModelRefFromString, T as getCustomProviderApiKey, a as listProfilesForProvider, b as resolveConfiguredModelRef, d as withFileLock$1, f as buildAllowedModelSet, g as modelKey, h as isCliProvider, i as resolveApiKeyForProfile, j as getShellPathFromLoginShell, k as resolveModelAuthMode, l as loadJsonFile, m as buildModelAliasIndex, n as resolveAuthProfileOrder, o as ensureAuthProfileStore, r as isProfileInCooldown, s as resolveAuthStorePathForDisplay, u as saveJsonFile, v as normalizeProviderId, w as getApiKeyForModel, x as resolveDefaultModelForAgent, z as DEFAULT_PROVIDER } from "./auth-profiles-BDrNYX_n.js";
7
+ import { C as unsetConfigValueAtPath, D as getWebAuthAgeMs, E as WA_WEB_AUTH_DIR, I as webAuthExists, M as readWebSelfId, O as logWebSelfId, S as setConfigValueAtPath, T as resolveWhatsAppAccount, _ as resetConfigOverrides, a as writeConfigFile, b as getConfigValueAtPath, c as parseDurationMs, d as discoverAnimaPlugins, f as applyTestPluginDefaults, g as getConfigOverrides, h as resolveMemorySlotDecision, i as resolveConfigSnapshotHash, j as pickWebChannel, k as logoutWeb, l as validateJsonSchemaValue, m as resolveEnableState, n as loadConfig, o as validateConfigObjectWithPlugins, p as normalizePluginsConfig, r as readConfigFileSnapshot, t as createConfigIO, u as loadPluginManifestRegistry, v as setConfigOverride, w as VERSION, x as parseConfigPath, y as unsetConfigOverride } from "./config-C96685Kz.js";
8
+ import { A as listChannelDocks, B as HEARTBEAT_TOKEN, C as resolveFreshSessionTotalTokens, D as resolveMainSessionKey, F as resolveChannelGroupRequireMention, H as isSilentReplyText, I as resolveChannelGroupToolsPolicy, L as resolveConversationLabel, M as resolveSignalAccount, N as resolveIMessageAccount, O as deriveSessionMetaPatch, P as resolveChannelGroupPolicy, R as normalizeChatType, S as DEFAULT_RESET_TRIGGERS, T as resolveAgentMainSessionKey, V as SILENT_REPLY_TOKEN, _ as evaluateSessionFreshness, a as readSessionUpdatedAt, b as resolveSessionResetType, c as updateSessionStore, d as deliveryContextKey, f as mergeDeliveryContext, g as resolveSessionKey$1, i as loadSessionStore, j as listEnabledSignalAccounts, k as getChannelDock, l as updateSessionStoreEntry, m as normalizeSessionDeliveryFields, n as appendAssistantMessageToSessionTranscript, o as recordSessionMetaFromInbound, p as normalizeDeliveryContext, s as updateLastRoute, t as extractDeliveryInfo, u as deliveryContextFromSession, v as resolveChannelResetConfig, w as canonicalizeMainSessionAlias, x as resolveThreadFlag, y as resolveSessionResetPolicy, z as resolveGroupSessionKey } from "./sessions-G7nfpjc6.js";
9
+ import { A as normalizeSecretInput, B as resolveAuthProfileDisplayLabel, C as resolveThinkingDefault, D as resolveApiKeyForProvider, E as requireApiKey, L as DEFAULT_CONTEXT_TOKENS, N as resolveShellEnvFallbackTimeoutMs, O as resolveEnvApiKey, R as DEFAULT_MODEL, S as resolveModelRefFromString, T as getCustomProviderApiKey, a as listProfilesForProvider, b as resolveConfiguredModelRef, d as withFileLock$1, f as buildAllowedModelSet, g as modelKey, h as isCliProvider, i as resolveApiKeyForProfile, j as getShellPathFromLoginShell, k as resolveModelAuthMode, l as loadJsonFile, m as buildModelAliasIndex, n as resolveAuthProfileOrder, o as ensureAuthProfileStore, r as isProfileInCooldown, s as resolveAuthStorePathForDisplay, u as saveJsonFile, v as normalizeProviderId, w as getApiKeyForModel, x as resolveDefaultModelForAgent, z as DEFAULT_PROVIDER } from "./auth-profiles-BVZBTuls.js";
10
10
  import { t as parseBooleanValue } from "./boolean-Ce2-qkSB.js";
11
- import { C as GATEWAY_CLIENT_NAMES, S as GATEWAY_CLIENT_MODES, _ as listDeliverableMessageChannels, a as normalizeWhatsAppTarget, b as resolveMessageChannel, c as resolveSlackAccount, d as resolveDiscordAccount, f as INTERNAL_MESSAGE_CHANNEL, g as isMarkdownCapableMessageChannel, h as isInternalMessageChannel, i as isWhatsAppGroupJid, n as listChannelPlugins, o as listEnabledTelegramAccounts, p as isDeliverableMessageChannel, r as normalizeChannelId$1, s as resolveTelegramAccount, t as getChannelPlugin, u as listEnabledDiscordAccounts, v as normalizeMessageChannel, x as GATEWAY_CLIENT_IDS, y as resolveGatewayMessageChannel } from "./plugins-DtghNRtM.js";
12
- import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath } from "./paths-B1vRVCad.js";
13
- import { $ as getTtsProvider, A as assertSandboxPath, B as runCliAgent, C as supportsXHighThinking, D as buildWorkspaceSkillSnapshot, E as buildWorkspaceSkillCommandSpecs, F as loadModelCatalog, G as resolveUserTimezone, H as buildSystemPromptParams, I as modelSupportsVision, J as killProcessTree, K as withNormalizedTimestamp, L as ensureAnimaModelsJson, M as runWithImageModelFallback, N as runWithModelFallback, O as syncSkillsToWorkspace, P as findModelInCatalog, Q as getTtsMaxLength, R as getCliSessionId, S as resolveResponseUsageMode, T as getSkillsSnapshotVersion, U as formatUserTime, V as buildAgentSystemPrompt, W as resolveUserTimeFormat, X as buildTtsSystemPromptHint, Y as sanitizeBinaryOutput, Z as getLastTtsAttempt, _ as normalizeElevatedLevel, _t as resolveBootstrapContextForRun, a as lookupContextTokens, at as resolveTtsApiKey, b as normalizeUsageDisplay, c as ambiguousTargetError, ct as resolveTtsPrefsPath, d as applyModelOverrideToSessionEntry, dt as setTtsEnabled, et as isSummarizationEnabled, f as applyVerboseOverride, ft as setTtsMaxLength, g as listThinkingLevels, gt as isVoiceCompatibleAudio, h as formatXHighModelHint, ht as textToSpeechTelephony, i as normalizeUsage, it as normalizeTtsAutoMode, j as resolveSandboxedMediaSource, k as assertMediaNotDataUrl, l as unknownTargetError, lt as setLastTtsAttempt, m as formatThinkingLevels, mt as textToSpeech, n as deriveSessionTotalTokens, nt as isTtsProviderConfigured, o as resolveOutboundTarget, ot as resolveTtsAutoMode, p as getRemoteSkillEligibility, pt as setTtsProvider, q as getShellConfig, r as hasNonzeroUsage, rt as maybeApplyTtsToPayload, s as resolveSessionDeliveryTarget, st as resolveTtsConfig, t as derivePromptTokens, tt as isTtsEnabled, u as resolveSendPolicy, ut as setSummarizationEnabled, v as normalizeReasoningLevel, vt as clearSessionAuthProfileOverride, w as ensureSkillsWatcher, x as normalizeVerboseLevel, y as normalizeThinkLevel, yt as resolveSessionAuthProfileOverride, z as setCliSessionId } from "./usage-BGCwNnjk.js";
14
- import { a as resolveAgentTimeoutMs, c as CommandLane, i as registerAgentRunContext, n as emitAgentEvent, o as AGENT_LANE_NESTED, r as onAgentEvent, s as AGENT_LANE_SUBAGENT, u as stripHeartbeatToken } from "./agent-events-COH7NDW2.js";
11
+ import { C as GATEWAY_CLIENT_NAMES, S as GATEWAY_CLIENT_MODES, _ as listDeliverableMessageChannels, a as normalizeWhatsAppTarget, b as resolveMessageChannel, c as resolveSlackAccount, d as resolveDiscordAccount, f as INTERNAL_MESSAGE_CHANNEL, g as isMarkdownCapableMessageChannel, h as isInternalMessageChannel, i as isWhatsAppGroupJid, n as listChannelPlugins, o as listEnabledTelegramAccounts, p as isDeliverableMessageChannel, r as normalizeChannelId$1, s as resolveTelegramAccount, t as getChannelPlugin, u as listEnabledDiscordAccounts, v as normalizeMessageChannel, x as GATEWAY_CLIENT_IDS, y as resolveGatewayMessageChannel } from "./plugins-DdzdfeTc.js";
12
+ import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath } from "./paths-Ba-yiqjy.js";
13
+ import { $ as getTtsProvider, A as assertSandboxPath, B as runCliAgent, C as supportsXHighThinking, D as buildWorkspaceSkillSnapshot, E as buildWorkspaceSkillCommandSpecs, F as loadModelCatalog, G as resolveUserTimezone, H as buildSystemPromptParams, I as modelSupportsVision, J as killProcessTree, K as withNormalizedTimestamp, L as ensureAnimaModelsJson, M as runWithImageModelFallback, N as runWithModelFallback, O as syncSkillsToWorkspace, P as findModelInCatalog, Q as getTtsMaxLength, R as getCliSessionId, S as resolveResponseUsageMode, T as getSkillsSnapshotVersion, U as formatUserTime, V as buildAgentSystemPrompt, W as resolveUserTimeFormat, X as buildTtsSystemPromptHint, Y as sanitizeBinaryOutput, Z as getLastTtsAttempt, _ as normalizeElevatedLevel, _t as resolveBootstrapContextForRun, a as lookupContextTokens, at as resolveTtsApiKey, b as normalizeUsageDisplay, c as ambiguousTargetError, ct as resolveTtsPrefsPath, d as applyModelOverrideToSessionEntry, dt as setTtsEnabled, et as isSummarizationEnabled, f as applyVerboseOverride, ft as setTtsMaxLength, g as listThinkingLevels, gt as isVoiceCompatibleAudio, h as formatXHighModelHint, ht as textToSpeechTelephony, i as normalizeUsage, it as normalizeTtsAutoMode, j as resolveSandboxedMediaSource, k as assertMediaNotDataUrl, l as unknownTargetError, lt as setLastTtsAttempt, m as formatThinkingLevels, mt as textToSpeech, n as deriveSessionTotalTokens, nt as isTtsProviderConfigured, o as resolveOutboundTarget, ot as resolveTtsAutoMode, p as getRemoteSkillEligibility, pt as setTtsProvider, q as getShellConfig, r as hasNonzeroUsage, rt as maybeApplyTtsToPayload, s as resolveSessionDeliveryTarget, st as resolveTtsConfig, t as derivePromptTokens, tt as isTtsEnabled, u as resolveSendPolicy, ut as setSummarizationEnabled, v as normalizeReasoningLevel, vt as clearSessionAuthProfileOverride, w as ensureSkillsWatcher, x as normalizeVerboseLevel, y as normalizeThinkLevel, yt as resolveSessionAuthProfileOverride, z as setCliSessionId } from "./usage-kVpWUUrn.js";
14
+ import { a as resolveAgentTimeoutMs, c as CommandLane, i as registerAgentRunContext, n as emitAgentEvent, o as AGENT_LANE_NESTED, r as onAgentEvent, s as AGENT_LANE_SUBAGENT, u as stripHeartbeatToken } from "./agent-events-COLRhRBH.js";
15
15
  import { i as triggerInternalHook, r as registerInternalHook, t as createInternalHookEvent } from "./internal-hooks-DFTIurVM.js";
16
16
  import { a as isAudioFileName, i as imageMimeFromFormat, l as mediaKindFromMime, n as extensionForMime, o as kindFromMime, r as getFileExtension, t as detectMime } from "./mime-Bm1xTtpY.js";
17
- import "./frontmatter-BmHq0vRD.js";
18
- import { a as chunkMarkdownTextWithMode, c as resolveChunkMode, i as chunkMarkdownText, l as resolveTextChunkLimit, n as chunkByNewline, o as chunkText, s as chunkTextWithMode, t as resolveMarkdownTableMode } from "./markdown-tables-CqwihY2m.js";
19
- import { _ as parseReplyDirectives, b as initializeGlobalHookRunner, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as normalizeTargetForProvider, h as normalizeChannelTargetInput, l as filterMessagingToolDuplicates, m as buildTargetResolverSignature, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as throwIfAborted, y as getGlobalHookRunner } from "./deliver-CePITOl8.js";
17
+ import "./frontmatter-YijVi0FQ.js";
18
+ import { a as chunkMarkdownTextWithMode, c as resolveChunkMode, i as chunkMarkdownText, l as resolveTextChunkLimit, n as chunkByNewline, o as chunkText, s as chunkTextWithMode, t as resolveMarkdownTableMode } from "./markdown-tables-Bhes7rr4.js";
19
+ import { _ as parseReplyDirectives, b as initializeGlobalHookRunner, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as normalizeTargetForProvider, h as normalizeChannelTargetInput, l as filterMessagingToolDuplicates, m as buildTargetResolverSignature, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as throwIfAborted, y as getGlobalHookRunner } from "./deliver-DujkDzqg.js";
20
20
  import { t as sendMessageSignal } from "./send-BTA6qupx.js";
21
21
  import { t as INPUT_PROVENANCE_KIND_VALUES } from "./input-provenance-BgwBljRz.js";
22
22
  import { a as pickPrimaryTailnetIPv4, i as rawDataToString, n as isLoopbackHost, r as pickPrimaryLanIPv4 } from "./net-CDi_lJMH.js";
23
- import { _ as setActiveWebListener, a as loadWebMedia, b as convertMarkdownTables, c as MediaFetchError, d as fetchWithSsrFGuard, f as SsrFBlockedError, g as getActiveWebListener, h as bindAbortRelay, i as getDefaultLocalRoots, l as fetchRemoteMedia, m as isPrivateIpAddress, n as sendMessageWhatsApp, o as getImageMetadata, p as isBlockedHostname, r as sendReactionWhatsApp, s as resizeToJpeg, u as readResponseWithLimit, v as normalizePollInput, y as markdownToWhatsApp } from "./outbound-CkKgc6iR.js";
23
+ import { _ as setActiveWebListener, a as loadWebMedia, b as convertMarkdownTables, c as MediaFetchError, d as fetchWithSsrFGuard, f as SsrFBlockedError, g as getActiveWebListener, h as bindAbortRelay, i as getDefaultLocalRoots, l as fetchRemoteMedia, m as isPrivateIpAddress, n as sendMessageWhatsApp, o as getImageMetadata, p as isBlockedHostname, r as sendReactionWhatsApp, s as resizeToJpeg, u as readResponseWithLimit, v as normalizePollInput, y as markdownToWhatsApp } from "./outbound-Csw4yAYo.js";
24
24
  import { n as formatErrorMessage, t as extractErrorCode } from "./errors-A_GqUU6B.js";
25
- import { C as getHeadersWithAuth, E as stopChromeExtensionRelayServer, T as ensureChromeExtensionRelayServer, _ as createTargetViaCdp, a as resolveAnimaUserDataDir, b as snapshotAria, c as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, d as DEFAULT_ANIMA_BROWSER_ENABLED, f as DEFAULT_ANIMA_BROWSER_PROFILE_NAME, g as captureScreenshot, h as resolveBrowserExecutableForPlatform, i as launchAnimaChrome, l as DEFAULT_AI_SNAPSHOT_MAX_CHARS, m as DEFAULT_BROWSER_EVALUATE_ENABLED, n as isChromeCdpReady, o as stopAnimaChrome, p as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, r as isChromeReachable, s as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, u as DEFAULT_ANIMA_BROWSER_COLOR, x as appendCdpPath, y as normalizeCdpWsUrl } from "./chrome-DdcDzAtH.js";
26
- import { n as resolveMemorySearchConfig } from "./manager-BD5rA3w0.js";
27
- import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-CuprTGR7.js";
25
+ import { C as getHeadersWithAuth, E as stopChromeExtensionRelayServer, T as ensureChromeExtensionRelayServer, _ as createTargetViaCdp, a as resolveAnimaUserDataDir, b as snapshotAria, c as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, d as DEFAULT_ANIMA_BROWSER_ENABLED, f as DEFAULT_ANIMA_BROWSER_PROFILE_NAME, g as captureScreenshot, h as resolveBrowserExecutableForPlatform, i as launchAnimaChrome, l as DEFAULT_AI_SNAPSHOT_MAX_CHARS, m as DEFAULT_BROWSER_EVALUATE_ENABLED, n as isChromeCdpReady, o as stopAnimaChrome, p as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, r as isChromeReachable, s as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, u as DEFAULT_ANIMA_BROWSER_COLOR, x as appendCdpPath, y as normalizeCdpWsUrl } from "./chrome-mUDT-mA5.js";
26
+ import { n as resolveMemorySearchConfig } from "./manager-D_engjHC.js";
27
+ import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-BiXgPbCK.js";
28
28
  import { a as sendPollDiscord, i as sendMessageDiscord, n as fetchChannelPermissionsDiscord, r as kickMemberDiscord, s as timeoutMemberDiscord, t as banMemberDiscord } from "./send-DVW0CcHX.js";
29
29
  import { a as sendStickerTelegram, i as sendPollTelegram, n as editMessageTelegram, r as sendMessageTelegram, t as deleteMessageTelegram } from "./send-CP74DxzJ.js";
30
30
  import { t as sendMessageIMessage } from "./send-DqMLjD9Z.js";
31
31
  import { t as sendMessageSlack } from "./send-C6ccOW_U.js";
32
- import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-CGxOLFs2.js";
33
- import { t as loginWeb } from "./login-DXWKewA2.js";
32
+ import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-B6T_f3RF.js";
33
+ import { t as loginWeb } from "./login-CnNpZKOD.js";
34
34
  import { createRequire } from "node:module";
35
- import * as fs$1 from "node:fs/promises";
35
+ import * as fs$2 from "node:fs/promises";
36
36
  import fs from "node:fs/promises";
37
37
  import * as os$1 from "node:os";
38
38
  import os, { homedir } from "node:os";
39
39
  import * as path$1 from "node:path";
40
40
  import path from "node:path";
41
- import fsSync, { constants, existsSync, statSync } from "node:fs";
41
+ import fs$1, { constants, existsSync, statSync } from "node:fs";
42
42
  import JSON5 from "json5";
43
43
  import { execFile, spawn, spawnSync } from "node:child_process";
44
44
  import { promisify } from "node:util";
@@ -82,7 +82,7 @@ function resolveDefaultIdentityPath() {
82
82
  return path.join(resolveStateDir(), "identity", "device.json");
83
83
  }
84
84
  function ensureDir$2(filePath) {
85
- fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
85
+ fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
86
86
  }
87
87
  const ED25519_SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
88
88
  function base64UrlEncode(buf) {
@@ -118,8 +118,8 @@ function generateIdentity() {
118
118
  }
119
119
  function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
120
120
  try {
121
- if (fsSync.existsSync(filePath)) {
122
- const raw = fsSync.readFileSync(filePath, "utf8");
121
+ if (fs$1.existsSync(filePath)) {
122
+ const raw = fs$1.readFileSync(filePath, "utf8");
123
123
  const parsed = JSON.parse(raw);
124
124
  if (parsed?.version === 1 && typeof parsed.deviceId === "string" && typeof parsed.publicKeyPem === "string" && typeof parsed.privateKeyPem === "string") {
125
125
  const derivedId = fingerprintPublicKey(parsed.publicKeyPem);
@@ -128,9 +128,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
128
128
  ...parsed,
129
129
  deviceId: derivedId
130
130
  };
131
- fsSync.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
131
+ fs$1.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
132
132
  try {
133
- fsSync.chmodSync(filePath, 384);
133
+ fs$1.chmodSync(filePath, 384);
134
134
  } catch {}
135
135
  return {
136
136
  deviceId: derivedId,
@@ -155,9 +155,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
155
155
  privateKeyPem: identity.privateKeyPem,
156
156
  createdAtMs: Date.now()
157
157
  };
158
- fsSync.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
158
+ fs$1.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
159
159
  try {
160
- fsSync.chmodSync(filePath, 384);
160
+ fs$1.chmodSync(filePath, 384);
161
161
  } catch {}
162
162
  return identity;
163
163
  }
@@ -307,8 +307,8 @@ function resolveDeviceAuthPath(env = process.env) {
307
307
  }
308
308
  function readStore(filePath) {
309
309
  try {
310
- if (!fsSync.existsSync(filePath)) return null;
311
- const raw = fsSync.readFileSync(filePath, "utf8");
310
+ if (!fs$1.existsSync(filePath)) return null;
311
+ const raw = fs$1.readFileSync(filePath, "utf8");
312
312
  const parsed = JSON.parse(raw);
313
313
  if (parsed?.version !== 1 || typeof parsed.deviceId !== "string") return null;
314
314
  if (!parsed.tokens || typeof parsed.tokens !== "object") return null;
@@ -318,10 +318,10 @@ function readStore(filePath) {
318
318
  }
319
319
  }
320
320
  function writeStore(filePath, store) {
321
- fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
322
- fsSync.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
321
+ fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
322
+ fs$1.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
323
323
  try {
324
- fsSync.chmodSync(filePath, 384);
324
+ fs$1.chmodSync(filePath, 384);
325
325
  } catch {}
326
326
  }
327
327
  function loadDeviceAuthToken(params) {
@@ -3019,7 +3019,7 @@ async function routeReply(params) {
3019
3019
  const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
3020
3020
  const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
3021
3021
  try {
3022
- const { deliverOutboundPayloads } = await import("./deliver-CePITOl8.js").then((n) => n.n);
3022
+ const { deliverOutboundPayloads } = await import("./deliver-DujkDzqg.js").then((n) => n.n);
3023
3023
  return {
3024
3024
  ok: true,
3025
3025
  messageId: (await deliverOutboundPayloads({
@@ -3253,7 +3253,7 @@ function normalizeSessionKey(value) {
3253
3253
  }
3254
3254
  function readSessionStore(storePath) {
3255
3255
  try {
3256
- const raw = fsSync.readFileSync(storePath, "utf-8");
3256
+ const raw = fs$1.readFileSync(storePath, "utf-8");
3257
3257
  const parsed = JSON5.parse(raw);
3258
3258
  if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
3259
3259
  } catch {}
@@ -3836,7 +3836,7 @@ async function runSubagentAnnounceFlow(params) {
3836
3836
  if (!outcome) outcome = { status: "unknown" };
3837
3837
  let activeChildDescendantRuns = 0;
3838
3838
  try {
3839
- const { countActiveDescendantRuns } = await import("./subagent-registry-3Xb4el-8.js");
3839
+ const { countActiveDescendantRuns } = await import("./subagent-registry-DKRVOkTv.js");
3840
3840
  activeChildDescendantRuns = Math.max(0, countActiveDescendantRuns(params.childSessionKey));
3841
3841
  } catch {}
3842
3842
  if (activeChildDescendantRuns > 0) {
@@ -3852,7 +3852,7 @@ async function runSubagentAnnounceFlow(params) {
3852
3852
  let requesterDepth = getSubagentDepthFromSessionStore(targetRequesterSessionKey);
3853
3853
  let requesterIsSubagent = requesterDepth >= 1;
3854
3854
  if (requesterIsSubagent) {
3855
- const { isSubagentSessionRunActive, resolveRequesterForChildSession } = await import("./subagent-registry-3Xb4el-8.js");
3855
+ const { isSubagentSessionRunActive, resolveRequesterForChildSession } = await import("./subagent-registry-DKRVOkTv.js");
3856
3856
  if (!isSubagentSessionRunActive(targetRequesterSessionKey)) {
3857
3857
  const fallback = resolveRequesterForChildSession(targetRequesterSessionKey);
3858
3858
  if (!fallback?.requesterSessionKey) {
@@ -3867,7 +3867,7 @@ async function runSubagentAnnounceFlow(params) {
3867
3867
  }
3868
3868
  let remainingActiveSubagentRuns = 0;
3869
3869
  try {
3870
- const { countActiveDescendantRuns } = await import("./subagent-registry-3Xb4el-8.js");
3870
+ const { countActiveDescendantRuns } = await import("./subagent-registry-DKRVOkTv.js");
3871
3871
  remainingActiveSubagentRuns = Math.max(0, countActiveDescendantRuns(targetRequesterSessionKey));
3872
3872
  } catch {}
3873
3873
  const replyInstruction = buildAnnounceReplyInstruction({
@@ -8021,7 +8021,7 @@ function isModuleNotFoundError(err) {
8021
8021
  }
8022
8022
  async function loadPwAiModule(mode) {
8023
8023
  try {
8024
- return await import("./pw-ai-4QbK5YFe.js");
8024
+ return await import("./pw-ai-MrkdzeIJ.js");
8025
8025
  } catch (err) {
8026
8026
  if (mode === "soft") return null;
8027
8027
  if (isModuleNotFoundError(err)) return null;
@@ -9736,11 +9736,11 @@ async function movePathToTrash(targetPath) {
9736
9736
  return targetPath;
9737
9737
  } catch {
9738
9738
  const trashDir = path.join(os.homedir(), ".Trash");
9739
- fsSync.mkdirSync(trashDir, { recursive: true });
9739
+ fs$1.mkdirSync(trashDir, { recursive: true });
9740
9740
  const base = path.basename(targetPath);
9741
9741
  let dest = path.join(trashDir, `${base}-${Date.now()}`);
9742
- if (fsSync.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${Math.random()}`);
9743
- fsSync.renameSync(targetPath, dest);
9742
+ if (fs$1.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${Math.random()}`);
9743
+ fs$1.renameSync(targetPath, dest);
9744
9744
  return dest;
9745
9745
  }
9746
9746
  }
@@ -9818,7 +9818,7 @@ function createBrowserProfilesService(ctx) {
9818
9818
  } catch {}
9819
9819
  const userDataDir = resolveAnimaUserDataDir(name);
9820
9820
  const profileDir = path.dirname(userDataDir);
9821
- if (fsSync.existsSync(profileDir)) {
9821
+ if (fs$1.existsSync(profileDir)) {
9822
9822
  await movePathToTrash(profileDir);
9823
9823
  deleted = true;
9824
9824
  }
@@ -10479,13 +10479,13 @@ function createProfileContext(opts, profile) {
10479
10479
  const userDataDir = resolveAnimaUserDataDir(profile.name);
10480
10480
  const profileState = getProfileState();
10481
10481
  if (await isHttpReachable(300) && !profileState.running) try {
10482
- await (await import("./pw-ai-4QbK5YFe.js")).closePlaywrightBrowserConnection();
10482
+ await (await import("./pw-ai-MrkdzeIJ.js")).closePlaywrightBrowserConnection();
10483
10483
  } catch {}
10484
10484
  if (profileState.running) await stopRunningBrowser();
10485
10485
  try {
10486
- await (await import("./pw-ai-4QbK5YFe.js")).closePlaywrightBrowserConnection();
10486
+ await (await import("./pw-ai-MrkdzeIJ.js")).closePlaywrightBrowserConnection();
10487
10487
  } catch {}
10488
- if (!fsSync.existsSync(userDataDir)) return {
10488
+ if (!fs$1.existsSync(userDataDir)) return {
10489
10489
  moved: false,
10490
10490
  from: userDataDir
10491
10491
  };
@@ -11385,7 +11385,7 @@ async function createModelSelectionState(params) {
11385
11385
  }
11386
11386
  }
11387
11387
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
11388
- const { ensureAuthProfileStore } = await import("./auth-profiles-BDrNYX_n.js").then((n) => n.t);
11388
+ const { ensureAuthProfileStore } = await import("./auth-profiles-BVZBTuls.js").then((n) => n.t);
11389
11389
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
11390
11390
  const providerKey = normalizeProviderId(provider);
11391
11391
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -13198,8 +13198,8 @@ function listSkillCommandsForAgents(params) {
13198
13198
  const visitedDirs = /* @__PURE__ */ new Set();
13199
13199
  for (const agentId of agentIds) {
13200
13200
  const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
13201
- if (!fsSync.existsSync(workspaceDir)) continue;
13202
- const canonicalDir = fsSync.realpathSync(workspaceDir);
13201
+ if (!fs$1.existsSync(workspaceDir)) continue;
13202
+ const canonicalDir = fs$1.realpathSync(workspaceDir);
13203
13203
  if (visitedDirs.has(canonicalDir)) continue;
13204
13204
  visitedDirs.add(canonicalDir);
13205
13205
  const commands = buildWorkspaceSkillCommandSpecs(workspaceDir, {
@@ -13416,7 +13416,7 @@ function resolveAllowFromPath(channel, env = process.env) {
13416
13416
  }
13417
13417
  async function readJsonFile(filePath, fallback) {
13418
13418
  try {
13419
- const parsed = safeParseJson(await fsSync.promises.readFile(filePath, "utf-8"));
13419
+ const parsed = safeParseJson(await fs$1.promises.readFile(filePath, "utf-8"));
13420
13420
  if (parsed == null) return {
13421
13421
  value: fallback,
13422
13422
  exists: true
@@ -13438,18 +13438,18 @@ async function readJsonFile(filePath, fallback) {
13438
13438
  }
13439
13439
  async function writeJsonFile(filePath, value) {
13440
13440
  const dir = path.dirname(filePath);
13441
- await fsSync.promises.mkdir(dir, {
13441
+ await fs$1.promises.mkdir(dir, {
13442
13442
  recursive: true,
13443
13443
  mode: 448
13444
13444
  });
13445
13445
  const tmp = path.join(dir, `${path.basename(filePath)}.${crypto.randomUUID()}.tmp`);
13446
- await fsSync.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, { encoding: "utf-8" });
13447
- await fsSync.promises.chmod(tmp, 384);
13448
- await fsSync.promises.rename(tmp, filePath);
13446
+ await fs$1.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, { encoding: "utf-8" });
13447
+ await fs$1.promises.chmod(tmp, 384);
13448
+ await fs$1.promises.rename(tmp, filePath);
13449
13449
  }
13450
13450
  async function ensureJsonFile(filePath, fallback) {
13451
13451
  try {
13452
- await fsSync.promises.access(filePath);
13452
+ await fs$1.promises.access(filePath);
13453
13453
  } catch {
13454
13454
  await writeJsonFile(filePath, fallback);
13455
13455
  }
@@ -14719,8 +14719,8 @@ function expandHome$1(value) {
14719
14719
  }
14720
14720
  function isExecutableFile(filePath) {
14721
14721
  try {
14722
- if (!fsSync.statSync(filePath).isFile()) return false;
14723
- if (process.platform !== "win32") fsSync.accessSync(filePath, fsSync.constants.X_OK);
14722
+ if (!fs$1.statSync(filePath).isFile()) return false;
14723
+ if (process.platform !== "win32") fs$1.accessSync(filePath, fs$1.constants.X_OK);
14724
14724
  return true;
14725
14725
  } catch {
14726
14726
  return false;
@@ -14758,7 +14758,7 @@ function normalizeMatchTarget(value) {
14758
14758
  }
14759
14759
  function tryRealpath(value) {
14760
14760
  try {
14761
- return fsSync.realpathSync(value);
14761
+ return fs$1.realpathSync(value);
14762
14762
  } catch {
14763
14763
  return null;
14764
14764
  }
@@ -15396,7 +15396,7 @@ function isPathLikeToken(value) {
15396
15396
  }
15397
15397
  function defaultFileExists(filePath) {
15398
15398
  try {
15399
- return fsSync.existsSync(filePath);
15399
+ return fs$1.existsSync(filePath);
15400
15400
  } catch {
15401
15401
  return false;
15402
15402
  }
@@ -15640,7 +15640,7 @@ function mergeLegacyAgent(current, legacy) {
15640
15640
  }
15641
15641
  function ensureDir$1(filePath) {
15642
15642
  const dir = path.dirname(filePath);
15643
- fsSync.mkdirSync(dir, { recursive: true });
15643
+ fs$1.mkdirSync(dir, { recursive: true });
15644
15644
  }
15645
15645
  function coerceAllowlistEntries(allowlist) {
15646
15646
  if (!Array.isArray(allowlist) || allowlist.length === 0) return Array.isArray(allowlist) ? allowlist : void 0;
@@ -15710,11 +15710,11 @@ function generateToken() {
15710
15710
  function loadExecApprovals() {
15711
15711
  const filePath = resolveExecApprovalsPath();
15712
15712
  try {
15713
- if (!fsSync.existsSync(filePath)) return normalizeExecApprovals({
15713
+ if (!fs$1.existsSync(filePath)) return normalizeExecApprovals({
15714
15714
  version: 1,
15715
15715
  agents: {}
15716
15716
  });
15717
- const raw = fsSync.readFileSync(filePath, "utf8");
15717
+ const raw = fs$1.readFileSync(filePath, "utf8");
15718
15718
  const parsed = JSON.parse(raw);
15719
15719
  if (parsed?.version !== 1) return normalizeExecApprovals({
15720
15720
  version: 1,
@@ -15731,9 +15731,9 @@ function loadExecApprovals() {
15731
15731
  function saveExecApprovals(file) {
15732
15732
  const filePath = resolveExecApprovalsPath();
15733
15733
  ensureDir$1(filePath);
15734
- fsSync.writeFileSync(filePath, `${JSON.stringify(file, null, 2)}\n`, { mode: 384 });
15734
+ fs$1.writeFileSync(filePath, `${JSON.stringify(file, null, 2)}\n`, { mode: 384 });
15735
15735
  try {
15736
- fsSync.chmodSync(filePath, 384);
15736
+ fs$1.chmodSync(filePath, 384);
15737
15737
  } catch {}
15738
15738
  }
15739
15739
  function ensureExecApprovals() {
@@ -18295,10 +18295,10 @@ const resolveGitHead = (startDir) => {
18295
18295
  for (let i = 0; i < 12; i += 1) {
18296
18296
  const gitPath = path.join(current, ".git");
18297
18297
  try {
18298
- const stat = fsSync.statSync(gitPath);
18298
+ const stat = fs$1.statSync(gitPath);
18299
18299
  if (stat.isDirectory()) return path.join(gitPath, "HEAD");
18300
18300
  if (stat.isFile()) {
18301
- const match = fsSync.readFileSync(gitPath, "utf-8").match(/gitdir:\s*(.+)/i);
18301
+ const match = fs$1.readFileSync(gitPath, "utf-8").match(/gitdir:\s*(.+)/i);
18302
18302
  if (match?.[1]) {
18303
18303
  const resolved = path.resolve(current, match[1].trim());
18304
18304
  return path.join(resolved, "HEAD");
@@ -18356,7 +18356,7 @@ const resolveCommitHash = (options = {}) => {
18356
18356
  cachedCommit = null;
18357
18357
  return cachedCommit;
18358
18358
  }
18359
- const head = fsSync.readFileSync(headPath, "utf-8").trim();
18359
+ const head = fs$1.readFileSync(headPath, "utf-8").trim();
18360
18360
  if (!head) {
18361
18361
  cachedCommit = null;
18362
18362
  return cachedCommit;
@@ -18364,7 +18364,7 @@ const resolveCommitHash = (options = {}) => {
18364
18364
  if (head.startsWith("ref:")) {
18365
18365
  const ref = head.replace(/^ref:\s*/i, "").trim();
18366
18366
  const refPath = path.resolve(path.dirname(headPath), ref);
18367
- cachedCommit = formatCommit(fsSync.readFileSync(refPath, "utf-8").trim());
18367
+ cachedCommit = formatCommit(fs$1.readFileSync(refPath, "utf-8").trim());
18368
18368
  return cachedCommit;
18369
18369
  }
18370
18370
  cachedCommit = formatCommit(head);
@@ -18649,9 +18649,9 @@ const readUsageFromSessionLog = (sessionId, sessionEntry, agentId, sessionKey, s
18649
18649
  } catch {
18650
18650
  return;
18651
18651
  }
18652
- if (!fsSync.existsSync(logPath)) return;
18652
+ if (!fs$1.existsSync(logPath)) return;
18653
18653
  try {
18654
- const lines = fsSync.readFileSync(logPath, "utf-8").split(/\n+/);
18654
+ const lines = fs$1.readFileSync(logPath, "utf-8").split(/\n+/);
18655
18655
  let input = 0;
18656
18656
  let output = 0;
18657
18657
  let promptTokens = 0;
@@ -20210,7 +20210,7 @@ async function getMemorySearchManager(params) {
20210
20210
  if (cached) return { manager: cached };
20211
20211
  }
20212
20212
  try {
20213
- const { QmdMemoryManager } = await import("./qmd-manager-CPypGJ0P.js");
20213
+ const { QmdMemoryManager } = await import("./qmd-manager-Dgo23O3Q.js");
20214
20214
  const primary = await QmdMemoryManager.create({
20215
20215
  cfg: params.cfg,
20216
20216
  agentId: params.agentId,
@@ -20222,7 +20222,7 @@ async function getMemorySearchManager(params) {
20222
20222
  const wrapper = new FallbackMemoryManager({
20223
20223
  primary,
20224
20224
  fallbackFactory: async () => {
20225
- const { MemoryIndexManager } = await import("./manager-BD5rA3w0.js").then((n) => n.t);
20225
+ const { MemoryIndexManager } = await import("./manager-D_engjHC.js").then((n) => n.t);
20226
20226
  return await MemoryIndexManager.get(params);
20227
20227
  }
20228
20228
  }, () => QMD_MANAGER_CACHE.delete(cacheKey));
@@ -20235,7 +20235,7 @@ async function getMemorySearchManager(params) {
20235
20235
  }
20236
20236
  }
20237
20237
  try {
20238
- const { MemoryIndexManager } = await import("./manager-BD5rA3w0.js").then((n) => n.t);
20238
+ const { MemoryIndexManager } = await import("./manager-D_engjHC.js").then((n) => n.t);
20239
20239
  return { manager: await MemoryIndexManager.get(params) };
20240
20240
  } catch (err) {
20241
20241
  return {
@@ -23716,7 +23716,7 @@ function createWhatsAppLoginTool() {
23716
23716
  force: Type.Optional(Type.Boolean())
23717
23717
  }),
23718
23718
  execute: async (_toolCallId, args) => {
23719
- const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-ZYYKD6Yt.js");
23719
+ const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-D3xv0VnI.js");
23720
23720
  if ((args?.action ?? "start") === "wait") {
23721
23721
  const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
23722
23722
  return {
@@ -23968,7 +23968,7 @@ function formatExtraPaths(workspaceDir, extraPaths) {
23968
23968
  }
23969
23969
  async function checkReadableFile(pathname) {
23970
23970
  try {
23971
- await fs.access(pathname, fsSync.constants.R_OK);
23971
+ await fs.access(pathname, fs$1.constants.R_OK);
23972
23972
  return { exists: true };
23973
23973
  } catch (err) {
23974
23974
  const code = err.code;
@@ -24027,7 +24027,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
24027
24027
  }
24028
24028
  let dirReadable = null;
24029
24029
  try {
24030
- await fs.access(memoryDir, fsSync.constants.R_OK);
24030
+ await fs.access(memoryDir, fs$1.constants.R_OK);
24031
24031
  dirReadable = true;
24032
24032
  } catch (err) {
24033
24033
  const code = err.code;
@@ -24948,23 +24948,23 @@ let webLoginQrPromise = null;
24948
24948
  let webChannelPromise = null;
24949
24949
  let whatsappActionsPromise = null;
24950
24950
  function loadWebOutbound() {
24951
- webOutboundPromise ??= import("./outbound-CkKgc6iR.js").then((n) => n.t);
24951
+ webOutboundPromise ??= import("./outbound-Csw4yAYo.js").then((n) => n.t);
24952
24952
  return webOutboundPromise;
24953
24953
  }
24954
24954
  function loadWebLogin() {
24955
- webLoginPromise ??= import("./login-DXWKewA2.js").then((n) => n.n);
24955
+ webLoginPromise ??= import("./login-CnNpZKOD.js").then((n) => n.n);
24956
24956
  return webLoginPromise;
24957
24957
  }
24958
24958
  function loadWebLoginQr() {
24959
- webLoginQrPromise ??= import("./login-qr-ZYYKD6Yt.js");
24959
+ webLoginQrPromise ??= import("./login-qr-D3xv0VnI.js");
24960
24960
  return webLoginQrPromise;
24961
24961
  }
24962
24962
  function loadWebChannel() {
24963
- webChannelPromise ??= import("./web-B5QG839O.js");
24963
+ webChannelPromise ??= import("./web-BGf92cSU.js");
24964
24964
  return webChannelPromise;
24965
24965
  }
24966
24966
  function loadWhatsAppActions() {
24967
- whatsappActionsPromise ??= import("./whatsapp-actions-C_5MwVxM.js");
24967
+ whatsappActionsPromise ??= import("./whatsapp-actions-CvnLgxjq.js");
24968
24968
  return whatsappActionsPromise;
24969
24969
  }
24970
24970
  function createPluginRuntime() {
@@ -25167,7 +25167,7 @@ const resolvePluginSdkAliasFile = (params) => {
25167
25167
  const srcCandidate = path.join(cursor, "src", "plugin-sdk", params.srcFile);
25168
25168
  const distCandidate = path.join(cursor, "dist", "plugin-sdk", params.distFile);
25169
25169
  const orderedCandidates = isTest ? [distCandidate, srcCandidate] : [distCandidate];
25170
- for (const candidate of orderedCandidates) if (fsSync.existsSync(candidate)) return candidate;
25170
+ for (const candidate of orderedCandidates) if (fs$1.existsSync(candidate)) return candidate;
25171
25171
  const parent = path.dirname(cursor);
25172
25172
  if (parent === cursor) break;
25173
25173
  cursor = parent;
@@ -27658,7 +27658,7 @@ async function writeUrlToFile(filePath, url) {
27658
27658
  if (typeof contentLength === "number" && Number.isFinite(contentLength) && contentLength > MAX_CAMERA_URL_DOWNLOAD_BYTES) throw new Error(`writeUrlToFile: content-length ${contentLength} exceeds max ${MAX_CAMERA_URL_DOWNLOAD_BYTES}`);
27659
27659
  const body = res.body;
27660
27660
  if (!body) throw new Error(`failed to download ${url}: empty response body`);
27661
- const fileHandle = await fs$1.open(filePath, "w");
27661
+ const fileHandle = await fs$2.open(filePath, "w");
27662
27662
  let bytes = 0;
27663
27663
  let thrown;
27664
27664
  try {
@@ -27677,7 +27677,7 @@ async function writeUrlToFile(filePath, url) {
27677
27677
  await fileHandle.close();
27678
27678
  }
27679
27679
  if (thrown) {
27680
- await fs$1.unlink(filePath).catch(() => {});
27680
+ await fs$2.unlink(filePath).catch(() => {});
27681
27681
  throw thrown;
27682
27682
  }
27683
27683
  return {
@@ -27687,7 +27687,7 @@ async function writeUrlToFile(filePath, url) {
27687
27687
  }
27688
27688
  async function writeBase64ToFile(filePath, base64) {
27689
27689
  const buf = Buffer.from(base64, "base64");
27690
- await fs$1.writeFile(filePath, buf);
27690
+ await fs$2.writeFile(filePath, buf);
27691
27691
  return {
27692
27692
  path: filePath,
27693
27693
  bytes: buf.length
@@ -32589,7 +32589,7 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
32589
32589
  }
32590
32590
  function archiveFileOnDisk(filePath, reason) {
32591
32591
  const archived = `${filePath}.${reason}.${(/* @__PURE__ */ new Date()).toISOString().replaceAll(":", "-")}`;
32592
- fsSync.renameSync(filePath, archived);
32592
+ fs$1.renameSync(filePath, archived);
32593
32593
  return archived;
32594
32594
  }
32595
32595
  /**
@@ -32599,7 +32599,7 @@ function archiveFileOnDisk(filePath, reason) {
32599
32599
  function archiveSessionTranscripts(opts) {
32600
32600
  const archived = [];
32601
32601
  for (const candidate of resolveSessionTranscriptCandidates(opts.sessionId, opts.storePath, opts.sessionFile, opts.agentId)) {
32602
- if (!fsSync.existsSync(candidate)) continue;
32602
+ if (!fs$1.existsSync(candidate)) continue;
32603
32603
  try {
32604
32604
  archived.push(archiveFileOnDisk(candidate, opts.reason));
32605
32605
  } catch {}
@@ -32646,7 +32646,7 @@ function listExistingAgentIdsFromDisk() {
32646
32646
  const root = resolveStateDir();
32647
32647
  const agentsDir = path.join(root, "agents");
32648
32648
  try {
32649
- return fsSync.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
32649
+ return fs$1.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
32650
32650
  } catch {
32651
32651
  return [];
32652
32652
  }
@@ -32891,8 +32891,8 @@ function resolveZaiApiKey() {
32891
32891
  }
32892
32892
  try {
32893
32893
  const authPath = path.join(os.homedir(), ".pi", "agent", "auth.json");
32894
- if (!fsSync.existsSync(authPath)) return;
32895
- const data = JSON.parse(fsSync.readFileSync(authPath, "utf-8"));
32894
+ if (!fs$1.existsSync(authPath)) return;
32895
+ const data = JSON.parse(fs$1.readFileSync(authPath, "utf-8"));
32896
32896
  return data["z-ai"]?.access || data.zai?.access;
32897
32897
  } catch {
32898
32898
  return;
@@ -39181,7 +39181,7 @@ const applyCostTotal = (totals, costTotal) => {
39181
39181
  totals.totalCost += costTotal;
39182
39182
  };
39183
39183
  async function scanTranscriptFile(params) {
39184
- const fileStream = fsSync.createReadStream(params.filePath, { encoding: "utf-8" });
39184
+ const fileStream = fs$1.createReadStream(params.filePath, { encoding: "utf-8" });
39185
39185
  const rl = readline.createInterface({
39186
39186
  input: fileStream,
39187
39187
  crlfDelay: Infinity
@@ -39241,10 +39241,10 @@ async function loadCostUsageSummary(params) {
39241
39241
  const dailyMap = /* @__PURE__ */ new Map();
39242
39242
  const totals = emptyTotals();
39243
39243
  const sessionsDir = resolveSessionTranscriptsDirForAgent(params?.agentId);
39244
- const entries = await fsSync.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
39244
+ const entries = await fs$1.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
39245
39245
  const files = (await Promise.all(entries.filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).map(async (entry) => {
39246
39246
  const filePath = path.join(sessionsDir, entry.name);
39247
- const stats = await fsSync.promises.stat(filePath).catch(() => null);
39247
+ const stats = await fs$1.promises.stat(filePath).catch(() => null);
39248
39248
  if (!stats) return null;
39249
39249
  if (stats.mtimeMs < sinceTime) return null;
39250
39250
  return filePath;
@@ -39277,7 +39277,7 @@ async function loadCostUsageSummary(params) {
39277
39277
  }
39278
39278
  async function loadSessionCostSummary(params) {
39279
39279
  const sessionFile = params.sessionFile ?? (params.sessionId ? resolveSessionFilePath(params.sessionId, params.sessionEntry, { agentId: params.agentId }) : void 0);
39280
- if (!sessionFile || !fsSync.existsSync(sessionFile)) return null;
39280
+ if (!sessionFile || !fs$1.existsSync(sessionFile)) return null;
39281
39281
  const totals = emptyTotals();
39282
39282
  let firstActivity;
39283
39283
  let lastActivity;
@@ -42247,7 +42247,7 @@ async function runAgentTurnWithFallback(params) {
42247
42247
  if (corruptedSessionId) {
42248
42248
  const transcriptPath = resolveSessionTranscriptPath(corruptedSessionId);
42249
42249
  try {
42250
- fsSync.unlinkSync(transcriptPath);
42250
+ fs$1.unlinkSync(transcriptPath);
42251
42251
  } catch {}
42252
42252
  }
42253
42253
  delete params.activeSessionStore[sessionKey];
@@ -43048,7 +43048,7 @@ async function runReplyAgent(params) {
43048
43048
  if (resolved) transcriptCandidates.add(resolved);
43049
43049
  transcriptCandidates.add(resolveSessionTranscriptPath(prevSessionId, agentId));
43050
43050
  for (const candidate of transcriptCandidates) try {
43051
- fsSync.unlinkSync(candidate);
43051
+ fs$1.unlinkSync(candidate);
43052
43052
  } catch {}
43053
43053
  }
43054
43054
  return true;
@@ -43814,7 +43814,7 @@ async function deliverSessionMaintenanceWarning(params) {
43814
43814
  return;
43815
43815
  }
43816
43816
  try {
43817
- const { deliverOutboundPayloads } = await import("./deliver-CePITOl8.js").then((n) => n.n);
43817
+ const { deliverOutboundPayloads } = await import("./deliver-DujkDzqg.js").then((n) => n.n);
43818
43818
  await deliverOutboundPayloads({
43819
43819
  cfg: params.cfg,
43820
43820
  channel,
@@ -43836,7 +43836,7 @@ function forkSessionFromParent(params) {
43836
43836
  agentId: params.agentId,
43837
43837
  sessionsDir: params.sessionsDir
43838
43838
  });
43839
- if (!parentSessionFile || !fsSync.existsSync(parentSessionFile)) return null;
43839
+ if (!parentSessionFile || !fs$1.existsSync(parentSessionFile)) return null;
43840
43840
  try {
43841
43841
  const manager = SessionManager.open(parentSessionFile);
43842
43842
  const leafId = manager.getLeafId();
@@ -43860,7 +43860,7 @@ function forkSessionFromParent(params) {
43860
43860
  cwd: manager.getCwd(),
43861
43861
  parentSession: parentSessionFile
43862
43862
  };
43863
- fsSync.writeFileSync(sessionFile, `${JSON.stringify(header)}\n`, "utf-8");
43863
+ fs$1.writeFileSync(sessionFile, `${JSON.stringify(header)}\n`, "utf-8");
43864
43864
  return {
43865
43865
  sessionId,
43866
43866
  sessionFile