@visorcraft/idlehands 4.2.5 → 4.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/README.md +1 -0
  2. package/dist/{accounts-BDVs8LTu.js → accounts-B8cGzkjD.js} +1 -1
  3. package/dist/{accounts-Dk8mJIrQ.js → accounts-BQC_GRUB.js} +6 -6
  4. package/dist/{accounts-CIvVRRHb.js → accounts-D5tB_lO0.js} +1 -1
  5. package/dist/{agent-scope-DyP_tr7s.js → agent-scope-Bxq1eWbA.js} +4 -4
  6. package/dist/{agent-via-gateway-DVTkXwmI.js → agent-via-gateway-BTaqOj5m.js} +60 -60
  7. package/dist/{agent-via-gateway-Bhon8XVm.js → agent-via-gateway-B_XqJoXa.js} +7 -7
  8. package/dist/{agent-via-gateway-CS-8ChjV.js → agent-via-gateway-CZLe7Ijx.js} +1 -1
  9. package/dist/{agent-via-gateway-Drygi4ty.js → agent-via-gateway-D8QBXTZL.js} +1 -1
  10. package/dist/{agents-dNuQ9qUa.js → agents-C1x5jDIo.js} +4 -4
  11. package/dist/{agents.config-B_6rOTVW.js → agents.config-4ilUlWts.js} +1 -1
  12. package/dist/{agents.config-DCNsF8yj.js → agents.config-B_McnvK1.js} +1 -1
  13. package/dist/{anton-D375-ufL.js → anton-0pF0zqOs.js} +88 -22
  14. package/dist/{anton-BmSsFmSP.js → anton-BvT9_aWG.js} +88 -22
  15. package/dist/{anton-Di5VPZiI.js → anton-D4a5lMjo.js} +88 -22
  16. package/dist/{plugin-sdk/anton-CkJKOeKT.js → anton-QvQ90n78.js} +93 -27
  17. package/dist/{audio-preflight-vD3mDc6w.js → audio-preflight-CSSlgO89.js} +4 -4
  18. package/dist/{audio-preflight-CW8IH1lU.js → audio-preflight-qkU2lsDn.js} +35 -35
  19. package/dist/{auth-choice-C8Tj46gd.js → auth-choice-BhfFkY6h.js} +1 -1
  20. package/dist/{auth-choice-CYV4KLt7.js → auth-choice-JcCIJBlD.js} +1 -1
  21. package/dist/{auth-store-DXT-l7fO.js → auth-store-Bb4aajHu.js} +12 -12
  22. package/dist/{banner-B7_rwm3P.js → banner-DfFhVf3q.js} +1 -1
  23. package/dist/{bindings-D3b5Fmc9.js → bindings-CLZIJ0Eo.js} +2 -2
  24. package/dist/build-info.json +3 -3
  25. package/dist/bundled/boot-md/handler.js +60 -60
  26. package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
  27. package/dist/bundled/command-logger/handler.js +3 -3
  28. package/dist/bundled/session-memory/handler.js +60 -60
  29. package/dist/{plugin-sdk/channel-activity-loOg1DRw.js → channel-activity-DdL3RAv_.js} +3 -3
  30. package/dist/{channel-options-Dxc1A5iC.js → channel-options-9SPtt4MW.js} +1 -1
  31. package/dist/{channel-options-DTqGMcYU.js → channel-options-CUviKu-7.js} +1 -1
  32. package/dist/{channel-web-CgvDCMru.js → channel-web-C6dFy-1o.js} +2 -2
  33. package/dist/{channel-web-BPlapQS3.js → channel-web-CFn6Nsja.js} +2 -2
  34. package/dist/{channels-cli-BfUIc52d.js → channels-cli-B2da56zV.js} +7 -7
  35. package/dist/{channels-cli-k45uGu5k.js → channels-cli-DGfqgSUL.js} +7 -7
  36. package/dist/{chrome-DEnkfZ9p.js → chrome-CT_a9OgI.js} +29 -29
  37. package/dist/{chrome-BcJB6PcM.js → chrome-Do5potHV.js} +9 -9
  38. package/dist/{chunk-CMpX7Jaz.js → chunk-Djk-9JeT.js} +1 -1
  39. package/dist/{cli-C6GCCnET.js → cli-DmnwiKz9.js} +2 -2
  40. package/dist/{cli-BapK2rdH.js → cli-FOBK-XcZ.js} +2 -2
  41. package/dist/{command-registry-DJb9jSNL.js → command-registry-DacWRRgz.js} +10 -10
  42. package/dist/{commands-registry-j4vAzcF2.js → commands-registry-_TBHHpvt.js} +5 -5
  43. package/dist/{completion-cli-BXA0UZAn.js → completion-cli-DydUIkNr.js} +2 -2
  44. package/dist/{completion-cli-DqJEZMJt.js → completion-cli-NMyMglwl.js} +1 -1
  45. package/dist/{config-cli-BfaVUsj-.js → config-cli-B4fFlFK0.js} +1 -1
  46. package/dist/{config-cli-97SkUuuT.js → config-cli-C_DUmmo_.js} +1 -1
  47. package/dist/{configure-DpswIHZC.js → configure-BRK8DqNR.js} +3 -3
  48. package/dist/{configure-CmTKkn3M.js → configure-k0XQkt_5.js} +3 -3
  49. package/dist/{deliver-BUiQ-9fE.js → deliver-Db2xqgLg.js} +20 -20
  50. package/dist/{deliver-5FLCa6tB.js → deliver-whAbSPLk.js} +1 -1
  51. package/dist/{deps-CDLYb9a7.js → deps-BO1TSzg3.js} +1 -1
  52. package/dist/{plugin-sdk/deps-FuyQakmK.js → deps-BQsD8-_C.js} +6 -6
  53. package/dist/{deps-BV_-fxNb.js → deps-C8gMsatU.js} +1 -1
  54. package/dist/{deps-IpeS3x5O.js → deps-CC9rj6VE.js} +1 -1
  55. package/dist/{diagnostic-4owMk4vH.js → diagnostic-BvlZ0Sot.js} +1 -1
  56. package/dist/{dock-BgOmHcbh.js → dock-ejUetwTC.js} +6 -6
  57. package/dist/{doctor-completion-WFEPRjgs.js → doctor-completion-CtkKGYq1.js} +1 -1
  58. package/dist/{doctor-completion-BkS6Phs6.js → doctor-completion-T65otQPW.js} +1 -1
  59. package/dist/{emergency-stop-DMTHxdvC.js → emergency-stop-B1WGLPIl.js} +2 -2
  60. package/dist/{emergency-stop-zy54uJoE.js → emergency-stop-C0olMHR9.js} +2 -2
  61. package/dist/{emergency-stop-DKLc7AmD.js → emergency-stop-C_7XuwW8.js} +7 -7
  62. package/dist/emergency-stop-DVyGxgzf.js +113 -0
  63. package/dist/entry.js +1 -1
  64. package/dist/{env-B5G1qwGc.js → env-q-PhWbb_.js} +1 -1
  65. package/dist/{plugin-sdk/errors-CMcD8Lhh.js → errors-C4SHjIZK.js} +1 -1
  66. package/dist/extensionAPI.js +7 -7
  67. package/dist/{fetch-guard-iuQsIjqN.js → fetch-guard-CcfDZXe9.js} +1 -1
  68. package/dist/{frontmatter-BOudmHMS.js → frontmatter-pTUG4Sx_.js} +2 -2
  69. package/dist/{fs-safe-CYUaAFO9.js → fs-safe-2l05hI1Y.js} +2 -2
  70. package/dist/{gateway-cli-FNbwxOiN.js → gateway-cli-B4fOuxUC.js} +9 -9
  71. package/dist/{gateway-cli-E6DUzxEX.js → gateway-cli-LuvH-d8m.js} +9 -9
  72. package/dist/{gemini-auth-CIyaa44H.js → gemini-auth-DLSGffQK.js} +2 -2
  73. package/dist/{github-copilot-token-Dgt6cnsM.js → github-copilot-token-BjmEQcmi.js} +7 -7
  74. package/dist/{health-CGW71CVV.js → health-BFXk0LFk.js} +1 -1
  75. package/dist/{health-D60h_a2w.js → health-CpPRbWHn.js} +1 -1
  76. package/dist/{hooks-cli-BnVSeWIo.js → hooks-cli-RL3GbGUT.js} +3 -3
  77. package/dist/{hooks-cli-DaWPRdgZ.js → hooks-cli-q_ukCmeC.js} +3 -3
  78. package/dist/{image-C_aN5P6-.js → image-BAsQlUqT.js} +1 -1
  79. package/dist/{image-D8b_rlQC.js → image-Dlu13Ebx.js} +6 -6
  80. package/dist/{image-ops-D1KtygWz.js → image-ops-J8P5zOFm.js} +1 -1
  81. package/dist/index.js +7 -7
  82. package/dist/{plugin-sdk/ir-kdDGpPMq.js → ir-BT5aAdU9.js} +6 -6
  83. package/dist/llm-slug-generator.js +60 -60
  84. package/dist/{local-roots-KN4Hp1yZ.js → local-roots-d4y0lvs2.js} +5 -5
  85. package/dist/{login-CFr5vJmR.js → login-C2X0In6m.js} +6 -6
  86. package/dist/{login-qr-CFFFOjOl.js → login-qr-C17PY0rr.js} +11 -11
  87. package/dist/{manager-BE_76jWB.js → manager-CgzA1hKo.js} +15 -15
  88. package/dist/{markdown-tables-CzsockiZ.js → markdown-tables-R8VTpfE9.js} +1 -1
  89. package/dist/{message-channel-C8QtrwEU.js → message-channel-ZdI1-uUh.js} +1 -1
  90. package/dist/{model-selection-1MMYqY6M.js → model-selection-C5hI1dum.js} +41 -41
  91. package/dist/{models-C1ouQF8k.js → models-DToiZ2jp.js} +2 -2
  92. package/dist/{models-cli-CxEFLoMt.js → models-cli-8wuQnOxc.js} +3 -3
  93. package/dist/{models-cli-BhFUh61j.js → models-cli-C8tnFvU6.js} +4 -4
  94. package/dist/{npm-resolution-Ds0qg1EX.js → npm-resolution-CPEoaDTw.js} +1 -1
  95. package/dist/{npm-resolution-D30nzRfu.js → npm-resolution-Dz95V6fj.js} +1 -1
  96. package/dist/{onboard-NcA_odSQ.js → onboard-DnGowokw.js} +2 -2
  97. package/dist/{onboard-Cv6q6Usf.js → onboard-Dx-J8Bes.js} +2 -2
  98. package/dist/{onboard-channels-C1E5DpTR.js → onboard-channels-CU5VwTMC.js} +1 -1
  99. package/dist/{onboard-channels-bfoS7x6P.js → onboard-channels-rnRb5koA.js} +1 -1
  100. package/dist/{onboarding-CX8a934a.js → onboarding-5FnIgrWy.js} +3 -3
  101. package/dist/{onboarding-CpGBbVTj.js → onboarding-ztl5snrV.js} +3 -3
  102. package/dist/{onboarding.finalize-CRgpFQIz.js → onboarding.finalize-CvJCdPZc.js} +6 -6
  103. package/dist/{onboarding.finalize-BnKQeFN8.js → onboarding.finalize-DpwZIBVH.js} +7 -7
  104. package/dist/{outbound-BNh6PpQb.js → outbound-CdY_AskB.js} +6 -6
  105. package/dist/{outbound-attachment-3I6GzwDe.js → outbound-attachment-IfeZJAKk.js} +2 -2
  106. package/dist/{path-alias-guards-Cu1nXNMM.js → path-alias-guards-BZmt6hFb.js} +1 -1
  107. package/dist/{paths-D_qUel1T.js → paths-D3p7ZvM6.js} +3 -3
  108. package/dist/{paths-BYNVLNi_.js → paths-DQpv9a3Q.js} +5 -5
  109. package/dist/{pi-embedded-BO8wzB4O.js → pi-embedded-CQoT3WaM.js} +179 -179
  110. package/dist/{pi-embedded-0YMQWOc5.js → pi-embedded-Cfe7sfXp.js} +26 -26
  111. package/dist/{pi-embedded-helpers-CghCLoPo.js → pi-embedded-helpers-B3ceCcxm.js} +24 -24
  112. package/dist/{pi-embedded-helpers-C2j0LfJC.js → pi-embedded-helpers-Ct2rwp-P.js} +4 -4
  113. package/dist/{pi-model-discovery-Bb__OY-j.js → pi-model-discovery-Dlx4RLWo.js} +7 -7
  114. package/dist/{plugin-registry-Cp2q0pVP.js → plugin-registry-BCBZDFZm.js} +1 -1
  115. package/dist/{plugin-registry-DceNUcJc.js → plugin-registry-CY9YBaxv.js} +1 -1
  116. package/dist/plugin-sdk/{accounts-CBVAw5_G.js → accounts-B9nfRzyn.js} +1 -1
  117. package/dist/plugin-sdk/{accounts-BLYMokxV.js → accounts-Kt6ygPsC.js} +2 -2
  118. package/dist/plugin-sdk/{accounts-C5tHm1UI.js → accounts-mjFAny5F.js} +1 -1
  119. package/dist/plugin-sdk/{agent-scope-jl80I5G9.js → agent-scope-CU41EMlR.js} +2 -2
  120. package/dist/plugin-sdk/{agent-via-gateway-MuDsrNW6.js → agent-via-gateway-DgS1tFFD.js} +55 -55
  121. package/dist/{anton-Cw4-BgtA.js → plugin-sdk/anton-CNaMAyWx.js} +93 -27
  122. package/dist/plugin-sdk/{api-key-rotation-D6nK54XH.js → api-key-rotation-CZhCWd61.js} +2 -2
  123. package/dist/plugin-sdk/{audio-preflight-CKqqN8ty.js → audio-preflight-CRgDehfO.js} +30 -30
  124. package/dist/plugin-sdk/{auth-store-DaPWgQTx.js → auth-store-DycBvVqL.js} +1 -1
  125. package/dist/plugin-sdk/{bindings-xXgmJGxj.js → bindings-BDKKHGv-.js} +2 -2
  126. package/dist/{channel-activity-D_TMOGQ0.js → plugin-sdk/channel-activity-TcS_VfJk.js} +3 -3
  127. package/dist/plugin-sdk/{channel-web-B6pGyJpM.js → channel-web-DwpLcf95.js} +24 -24
  128. package/dist/plugin-sdk/{chrome-Cb9FgiCI.js → chrome-BCTizrZD.js} +6 -6
  129. package/dist/plugin-sdk/{chunk-PW4MBmaN.js → chunk-DZr5xuqv.js} +1 -1
  130. package/dist/plugin-sdk/{commands-registry-B5m2EsHz.js → commands-registry-BqJLwZYh.js} +5 -5
  131. package/dist/plugin-sdk/{config-CEgzwk0J.js → config-BzPMtEKA.js} +10 -10
  132. package/dist/plugin-sdk/{deliver-BNfMF0Nb.js → deliver-Cfc1UCre.js} +10 -10
  133. package/dist/{deps-Bc5yBM-U.js → plugin-sdk/deps-DHns5FkJ.js} +6 -6
  134. package/dist/plugin-sdk/{diagnostic-ByA6zvzu.js → diagnostic-B8VzcqLf.js} +1 -1
  135. package/dist/plugin-sdk/{dock-DKQYtT6-.js → dock-CMURqoee.js} +6 -6
  136. package/dist/plugin-sdk/{emergency-stop-Ci4JC4dU.js → emergency-stop-BV2NiRit.js} +55 -55
  137. package/dist/plugin-sdk/{env-5XecRTLs.js → env-qurSiOO2.js} +1 -1
  138. package/dist/{errors-C_0nm4TJ.js → plugin-sdk/errors-UqLewZJL.js} +1 -1
  139. package/dist/plugin-sdk/{fetch-guard-DwdUEdmT.js → fetch-guard-C174s8ZV.js} +1 -1
  140. package/dist/plugin-sdk/{fs-safe-qsx2_8-o.js → fs-safe-CCXTOK7j.js} +2 -2
  141. package/dist/plugin-sdk/{image-C_1tftC8.js → image-DDuK8tyO.js} +6 -6
  142. package/dist/plugin-sdk/{image-ops-CXSUo-AM.js → image-ops-BRYGGDwL.js} +1 -1
  143. package/dist/plugin-sdk/index.js +60 -60
  144. package/dist/{ir-B7IBoKLy.js → plugin-sdk/ir-Bv0Zbp2E.js} +6 -6
  145. package/dist/plugin-sdk/{local-roots-DjB6DYeI.js → local-roots-bHCsSVt_.js} +4 -4
  146. package/dist/plugin-sdk/{login-DIwO5D5Y.js → login-CkQrnY2G.js} +6 -6
  147. package/dist/plugin-sdk/{login-qr-CpCAJuvT.js → login-qr-DAeHibH_.js} +8 -8
  148. package/dist/plugin-sdk/{manager-Dox9r7og.js → manager-CTC1S_c9.js} +10 -10
  149. package/dist/plugin-sdk/{markdown-tables-Drtwd4J5.js → markdown-tables-DfUQHRZY.js} +1 -1
  150. package/dist/plugin-sdk/{message-channel-CQ0qkGHj.js → message-channel-DiMXmQeQ.js} +1 -1
  151. package/dist/plugin-sdk/{outbound-Dx_q6JAI.js → outbound-B1twcfz5.js} +6 -6
  152. package/dist/plugin-sdk/{outbound-attachment-BisU5Vji.js → outbound-attachment-Bs7fNaqv.js} +2 -2
  153. package/dist/plugin-sdk/{path-alias-guards-C_uBEYb4.js → path-alias-guards-yyy61qHh.js} +1 -1
  154. package/dist/plugin-sdk/{pi-embedded-helpers-B68z4sHq.js → pi-embedded-helpers-BAm9cWol.js} +16 -16
  155. package/dist/plugin-sdk/{pi-model-discovery-Dt6899be.js → pi-model-discovery-Bt6JtUFr.js} +1 -1
  156. package/dist/plugin-sdk/{plugins-NTjIvHYk.js → plugins-DRPlVBr_.js} +5 -5
  157. package/dist/plugin-sdk/{pw-ai-Dk2PTZzq.js → pw-ai-CY0evCZ2.js} +10 -10
  158. package/dist/plugin-sdk/{qmd-manager-juzrnopq.js → qmd-manager-BckPBwZX.js} +5 -5
  159. package/dist/plugin-sdk/{query-expansion-xBXvzdkL.js → query-expansion-CPqK-tTR.js} +2 -2
  160. package/dist/plugin-sdk/{redact-B6VQH3UQ.js → redact-Ub8sMBBC.js} +1 -1
  161. package/dist/plugin-sdk/{replies-ZovJp-3F.js → replies-DwTNZJgi.js} +3 -3
  162. package/dist/plugin-sdk/{reply-BTVimsoK.js → reply-B_cEB9MH.js} +95 -95
  163. package/dist/plugin-sdk/{reply-prefix--mxmTL7A.js → reply-prefix-BqV0o7_7.js} +1 -1
  164. package/dist/plugin-sdk/{resolve-outbound-target-CnUtsDch.js → resolve-outbound-target-DAdNGEqG.js} +2 -2
  165. package/dist/plugin-sdk/{resolve-route-BZABUE4J.js → resolve-route-C5mAwY-o.js} +3 -3
  166. package/dist/plugin-sdk/{retry-Bh7jveNm.js → retry-2OVzZJMZ.js} +1 -1
  167. package/dist/plugin-sdk/{runner-CZz1tOIR.js → runner-Ck0w3rcz.js} +10 -10
  168. package/dist/plugin-sdk/{send-Cb5NIN8s.js → send-A4Lv5nrg.js} +7 -7
  169. package/dist/plugin-sdk/{send-0EVlThEG.js → send-BBD-m-nM.js} +10 -10
  170. package/dist/plugin-sdk/{send-BCjVQhp3.js → send-CPeuqOlq.js} +13 -13
  171. package/dist/plugin-sdk/{send-B26cNPqY.js → send-CaPoBwby.js} +6 -6
  172. package/dist/plugin-sdk/{send-CHUGIZs9.js → send-SsqudCMv.js} +7 -7
  173. package/dist/plugin-sdk/{session-DdJj6_DW.js → session-DpL4uk1J.js} +3 -3
  174. package/dist/plugin-sdk/{sessions-DNx9c2O2.js → sessions-CQ5iD4Uq.js} +6 -6
  175. package/dist/plugin-sdk/{skill-commands-DorIK8kn.js → skill-commands-C_O9I71g.js} +5 -5
  176. package/dist/plugin-sdk/{skills-Dh_Cf2PA.js → skills-DmiIiX4l.js} +8 -8
  177. package/dist/plugin-sdk/{store-CCCXwngh.js → store-BI3rLJdW.js} +2 -2
  178. package/dist/plugin-sdk/{subsystem-DWPzKeZ0.js → subsystem-lJo9gqAK.js} +1 -1
  179. package/dist/plugin-sdk/{tables-CF9W23Rd.js → tables-C4X_nAUQ.js} +1 -1
  180. package/dist/plugin-sdk/{target-errors-DaH0qYtL.js → target-errors-CXh6e9ZE.js} +2 -2
  181. package/dist/plugin-sdk/{tokens-Y97UKh4C.js → tokens-CU9S3S7t.js} +1 -1
  182. package/dist/{tool-images-CcGZpzmq.js → plugin-sdk/tool-images-Cf9aWlVu.js} +2 -2
  183. package/dist/plugin-sdk/{tool-loop-detection-Cv8wyfAi.js → tool-loop-detection-DuwkSqZL.js} +2 -2
  184. package/dist/plugin-sdk/{utils-Dyj2wV4e.js → utils-dP-FpIgu.js} +2 -2
  185. package/dist/plugin-sdk/web-B-hYOnMb.js +71 -0
  186. package/dist/plugin-sdk/{whatsapp-actions-B5g-Rywy.js → whatsapp-actions-Bcknq6EZ.js} +23 -23
  187. package/dist/{plugins-CRB60mCJ.js → plugins-DYr-HHj0.js} +10 -10
  188. package/dist/{plugins-cli-2wK7R85Y.js → plugins-cli-BLcXY9sR.js} +3 -3
  189. package/dist/{plugins-cli-BaQt7jqk.js → plugins-cli-c-YfMlpn.js} +3 -3
  190. package/dist/{program-CbwFv75G.js → program-IXAxx4y-.js} +8 -8
  191. package/dist/{program-context-Ck-chzM_.js → program-context-lbXboD45.js} +18 -18
  192. package/dist/{prompt-select-styled-DJ5ONfKl.js → prompt-select-styled-C9ZBkTHU.js} +4 -4
  193. package/dist/{prompt-select-styled-DigZiJWM.js → prompt-select-styled-D1foahBO.js} +4 -4
  194. package/dist/{provider-auth-helpers-DGTDTeE5.js → provider-auth-helpers-CKJG35W4.js} +1 -1
  195. package/dist/{provider-auth-helpers-Ci_EGvif.js → provider-auth-helpers-Q2ZCYpBX.js} +1 -1
  196. package/dist/{push-apns-Dz4hOY07.js → push-apns-DM5pSWEU.js} +1 -1
  197. package/dist/{push-apns-BSYjGCn9.js → push-apns-DbZAasNF.js} +1 -1
  198. package/dist/{pw-ai-CfYaR1K2.js → pw-ai-DIV4PcIo.js} +13 -13
  199. package/dist/{pw-ai-DjmrIQle.js → pw-ai-yrIWfcWX.js} +1 -1
  200. package/dist/{qmd-manager-B_GgyQQ0.js → qmd-manager-BRvg3Rx2.js} +8 -8
  201. package/dist/{query-expansion-DEq020GG.js → query-expansion-DHuNyU-_.js} +5 -5
  202. package/dist/{redact-Bvpf-ATQ.js → redact-1Y0KPNtr.js} +1 -1
  203. package/dist/{register.agent-CTPc2Q9m.js → register.agent-BObt1WS1.js} +8 -8
  204. package/dist/{register.agent-BZh3UWw3.js → register.agent-CMgUOruT.js} +9 -9
  205. package/dist/{register.configure-vVDARCph.js → register.configure-B3lElmGa.js} +8 -8
  206. package/dist/{register.configure-BzTxX7SG.js → register.configure-BSoAZhfz.js} +8 -8
  207. package/dist/{register.maintenance-DTXn32on.js → register.maintenance-0PNfXeOc.js} +8 -8
  208. package/dist/{register.maintenance-BNHEV-po.js → register.maintenance-mxkecZ9A.js} +9 -9
  209. package/dist/{register.message-BYWAEsKP.js → register.message-D7VHunA0.js} +3 -3
  210. package/dist/{register.message-CHf51taw.js → register.message-Dr4UBjNt.js} +3 -3
  211. package/dist/{register.onboard-CxwDhXRS.js → register.onboard-BvDwJMC5.js} +2 -2
  212. package/dist/{register.onboard-vruDRZdG.js → register.onboard-Xh9xW0hH.js} +2 -2
  213. package/dist/{register.orchestrator-anton-qBr2ZYrk.js → register.orchestrator-anton-CObXxmuY.js} +2 -2
  214. package/dist/{register.orchestrator-anton-GSAFxzGa.js → register.orchestrator-anton-DShH4ce_.js} +2 -2
  215. package/dist/{register.setup-DlFQIXoR.js → register.setup-BxsKZdfB.js} +2 -2
  216. package/dist/{register.setup-B0zmlTXV.js → register.setup-d2XyhTY9.js} +2 -2
  217. package/dist/{register.status-health-sessions-16paRP9f.js → register.status-health-sessions-CADZZQMe.js} +4 -4
  218. package/dist/{register.status-health-sessions-CtXhn9Dq.js → register.status-health-sessions-wyNUhSbK.js} +4 -4
  219. package/dist/{register.subclis-lskGgus9.js → register.subclis-Bh3Lakik.js} +9 -9
  220. package/dist/{replies-6_GxvQYe.js → replies-2C16fnBP.js} +3 -3
  221. package/dist/{reply-DfRr_KdS.js → reply-AI4n5V-o.js} +11 -11
  222. package/dist/{reply-prefix-BUgeSN2R.js → reply-prefix-DCljZiIB.js} +1 -1
  223. package/dist/{resolve-route-DuttYY7A.js → resolve-route-ClcifpKn.js} +4 -4
  224. package/dist/{retry-BeB9WenR.js → retry-CG6cMRDQ.js} +1 -1
  225. package/dist/{run-main-Bj-8MZGb.js → run-main-DNLZvSB0.js} +15 -15
  226. package/dist/{runner-PgRFPYUj.js → runner-BkCU-kqs.js} +11 -11
  227. package/dist/{runner-CZW_eyf2.js → runner-Bv_BA3vd.js} +1 -1
  228. package/dist/{send-D4bMycQu.js → send-BOxJ4QXF.js} +7 -7
  229. package/dist/{send-BeIZJuy4.js → send-DZa8fWSm.js} +7 -7
  230. package/dist/{send-Dfa3sn6r.js → send-FLdrx-oF.js} +24 -24
  231. package/dist/{send-DmLC7aEF.js → send-IlPMLAH-.js} +10 -10
  232. package/dist/{send-C1hvd3bt.js → send-Y1hD4tQ1.js} +6 -6
  233. package/dist/{server-node-events-Benu2lR2.js → server-node-events-B9rufyZR.js} +3 -3
  234. package/dist/{server-node-events-B_LUFrA_.js → server-node-events-DPeIs1oo.js} +3 -3
  235. package/dist/{session-F_YDS_1V.js → session-nUPBXeEa.js} +7 -7
  236. package/dist/{sessions-3ioSeOA1.js → sessions-DRA4oaxz.js} +41 -41
  237. package/dist/{skill-commands-Ck3flWX7.js → skill-commands-BHTBXXVn.js} +9 -9
  238. package/dist/{skills-CnAPWfca.js → skills-umlGvChF.js} +22 -22
  239. package/dist/{status-DxcdgCyX.js → status-CvtDDIW9.js} +2 -2
  240. package/dist/{status-DzCllHYZ.js → status-rvywYmZR.js} +2 -2
  241. package/dist/{store-CvMgrKWx.js → store-D-ZicQeo.js} +2 -2
  242. package/dist/{subagent-registry-BcpHnckA.js → subagent-registry-D7Dwl-dH.js} +11 -11
  243. package/dist/{subsystem-tzu-rIAJ.js → subsystem-D7ZepYT1.js} +1 -1
  244. package/dist/{tables-5k-zOZ-s.js → tables-Co_R_WKs.js} +1 -1
  245. package/dist/{target-errors-BPfQrPim.js → target-errors-B1mcM4WR.js} +2 -2
  246. package/dist/{tokens-BRLyURxW.js → tokens-DGajj8M9.js} +1 -1
  247. package/dist/{plugin-sdk/tool-images-BMRkn_yk.js → tool-images-Duuqr4bN.js} +2 -2
  248. package/dist/{tool-loop-detection-BNGetx3Z.js → tool-loop-detection-CjWRg_4q.js} +3 -3
  249. package/dist/{update-cli-B53rJqAV.js → update-cli-Bofvelva.js} +8 -8
  250. package/dist/{update-cli-CTETjvrF.js → update-cli-DaGTiqso.js} +9 -9
  251. package/dist/{update-runner-BGAdvd0c.js → update-runner-4txNUERu.js} +1 -1
  252. package/dist/{update-runner-BOGIWX18.js → update-runner-B9mGXrK4.js} +1 -1
  253. package/dist/{utils-CTFLl_ji.js → utils-D9wGoiU9.js} +18 -18
  254. package/dist/{web-CqOVupWI.js → web-D3gEaA39.js} +3 -3
  255. package/dist/{web-C7HXffph.js → web-D3gOCfby.js} +8 -8
  256. package/dist/{web-Dwj9igbL.js → web-D7J5iB9K.js} +66 -66
  257. package/dist/{web-3nv8mK11.js → web-DhiwmDh8.js} +3 -3
  258. package/dist/{whatsapp-actions-DbPcN6JQ.js → whatsapp-actions-BJ6kVDXi.js} +25 -25
  259. package/dist/{workspace-DBFSzT6O.js → workspace-tAtkoD_r.js} +18 -18
  260. package/package.json +1 -1
  261. package/dist/emergency-stop-Dxp2e3a9.js +0 -113
  262. package/dist/plugin-sdk/web-HiiN5NkP.js +0 -71
@@ -1,15 +1,15 @@
1
- import { h as resolveAgentModelPrimaryValue, m as resolveAgentModelFallbackValues } from "./agent-scope-DyP_tr7s.js";
2
- import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
3
- import { A as shouldLogVerbose, D as logVerbose, K as resolvePreferredIdleHandsTmpDir } from "./utils-CTFLl_ji.js";
4
- import { _ as runExec } from "./workspace-DBFSzT6O.js";
5
- import { J as isInboundPathAllowed, R as loadConfig, T as resolveApiKeyForProvider, X as resolveIMessageAttachmentRoots, Y as mergeInboundPathRoots, c as normalizeProviderId, dn as resolveIdleHandsAgentDir, g as normalizeGoogleModelId, q as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, w as requireApiKey } from "./model-selection-1MMYqY6M.js";
1
+ import { h as resolveAgentModelPrimaryValue, m as resolveAgentModelFallbackValues } from "./agent-scope-Bxq1eWbA.js";
2
+ import { t as createSubsystemLogger } from "./subsystem-D7ZepYT1.js";
3
+ import { A as shouldLogVerbose, D as logVerbose, K as resolvePreferredIdleHandsTmpDir } from "./utils-D9wGoiU9.js";
4
+ import { _ as runExec } from "./workspace-tAtkoD_r.js";
5
+ import { J as isInboundPathAllowed, R as loadConfig, T as resolveApiKeyForProvider, X as resolveIMessageAttachmentRoots, Y as mergeInboundPathRoots, c as normalizeProviderId, dn as resolveIdleHandsAgentDir, g as normalizeGoogleModelId, q as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, w as requireApiKey } from "./model-selection-C5hI1dum.js";
6
6
  import { t as normalizeChatType } from "./chat-type-BPBtOjer.js";
7
- import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-D1KtygWz.js";
8
- import { t as describeImageWithModel, w as ensureIdleHandsModelsJson } from "./image-D8b_rlQC.js";
9
- import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-CIyaa44H.js";
7
+ import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-J8P5zOFm.js";
8
+ import { t as describeImageWithModel, w as ensureIdleHandsModelsJson } from "./image-Dlu13Ebx.js";
9
+ import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-DLSGffQK.js";
10
10
  import { n as fetchWithTimeout } from "./fetch-timeout-3YYM8QuM.js";
11
- import { t as fetchWithSsrFGuard } from "./fetch-guard-iuQsIjqN.js";
12
- import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError } from "./local-roots-KN4Hp1yZ.js";
11
+ import { t as fetchWithSsrFGuard } from "./fetch-guard-CcfDZXe9.js";
12
+ import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError } from "./local-roots-d4y0lvs2.js";
13
13
  import fs from "node:fs/promises";
14
14
  import os from "node:os";
15
15
  import path from "node:path";
@@ -958,7 +958,7 @@ var MediaAttachmentCache = class {
958
958
  const log = createSubsystemLogger("model-catalog");
959
959
  let modelCatalogPromise = null;
960
960
  let hasLoggedModelCatalogError = false;
961
- const defaultImportPiSdk = () => import("./pi-model-discovery-Bb__OY-j.js").then((n) => n.r);
961
+ const defaultImportPiSdk = () => import("./pi-model-discovery-Dlx4RLWo.js").then((n) => n.r);
962
962
  let importPiSdk = defaultImportPiSdk;
963
963
  const CODEX_PROVIDER = "openai-codex";
964
964
  const OPENAI_CODEX_GPT53_MODEL_ID = "gpt-5.3-codex";
@@ -4,7 +4,7 @@ import { A as shouldLogVerbose, D as logVerbose, K as resolvePreferredIdleHandsT
4
4
  import { C as requireApiKey, J as mergeInboundPathRoots, K as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, L as loadConfig, Y as resolveIMessageAttachmentRoots, c as normalizeProviderId, fn as resolveIdleHandsAgentDir, h as normalizeGoogleModelId, q as isInboundPathAllowed, w as resolveApiKeyForProvider } from "./model-selection-D3Jhcvg-.js";
5
5
  import { t as normalizeChatType } from "./chat-type-DLInEbxd.js";
6
6
  import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-BDG-MYYV.js";
7
- import { t as describeImageWithModel, w as ensureIdleHandsModelsJson } from "./image-C_aN5P6-.js";
7
+ import { t as describeImageWithModel, w as ensureIdleHandsModelsJson } from "./image-BAsQlUqT.js";
8
8
  import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-m2hi6OmF.js";
9
9
  import { n as fetchWithTimeout } from "./fetch-timeout-B7YMixjc.js";
10
10
  import { t as fetchWithSsrFGuard } from "./fetch-guard-BdCPmLBP.js";
@@ -1,11 +1,11 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { d as normalizeE164, h as resolveUserPath } from "./utils-CTFLl_ji.js";
3
- import { R as loadConfig } from "./model-selection-1MMYqY6M.js";
4
- import { v as mediaKindFromMime } from "./image-ops-D1KtygWz.js";
5
- import { t as resolveIMessageAccount } from "./accounts-CIvVRRHb.js";
6
- import { n as resolveMarkdownTableMode } from "./markdown-tables-CzsockiZ.js";
7
- import { t as convertMarkdownTables } from "./tables-5k-zOZ-s.js";
8
- import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-3I6GzwDe.js";
2
+ import { d as normalizeE164, h as resolveUserPath } from "./utils-D9wGoiU9.js";
3
+ import { R as loadConfig } from "./model-selection-C5hI1dum.js";
4
+ import { v as mediaKindFromMime } from "./image-ops-J8P5zOFm.js";
5
+ import { t as resolveIMessageAccount } from "./accounts-D5tB_lO0.js";
6
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-R8VTpfE9.js";
7
+ import { t as convertMarkdownTables } from "./tables-Co_R_WKs.js";
8
+ import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-IfeZJAKk.js";
9
9
  import { spawn } from "node:child_process";
10
10
  import { createInterface } from "node:readline";
11
11
 
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { D as logVerbose } from "./utils-CTFLl_ji.js";
3
- import { R as loadConfig } from "./model-selection-1MMYqY6M.js";
4
- import { i as isSilentReplyText } from "./tokens-BRLyURxW.js";
5
- import { d as resolveSlackAccount, m as resolveSlackBotToken } from "./plugins-CRB60mCJ.js";
2
+ import { D as logVerbose } from "./utils-D9wGoiU9.js";
3
+ import { R as loadConfig } from "./model-selection-C5hI1dum.js";
4
+ import { i as isSilentReplyText } from "./tokens-DGajj8M9.js";
5
+ import { d as resolveSlackAccount, m as resolveSlackBotToken } from "./plugins-DYr-HHj0.js";
6
6
  import { a as requireTargetKind, i as parseTargetPrefixes, n as ensureTargetId, r as parseTargetMention, t as buildMessagingTarget } from "./targets-D7PT_rdO.js";
7
- import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-CMpX7Jaz.js";
8
- import { n as resolveMarkdownTableMode } from "./markdown-tables-CzsockiZ.js";
9
- import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-B7IBoKLy.js";
7
+ import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-Djk-9JeT.js";
8
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-R8VTpfE9.js";
9
+ import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-BT5aAdU9.js";
10
10
  import { t as renderMarkdownWithMarkers } from "./render-MTSxc7LK.js";
11
11
  import { WebClient } from "@slack/web-api";
12
12
 
@@ -1,25 +1,25 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { d as resolveStateDir, f as expandHomePrefix, l as resolveOAuthDir, m as resolveRequiredHomeDir } from "./paths-BYNVLNi_.js";
3
- import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
4
- import { D as logVerbose, g as safeParseJson, t as CONFIG_DIR, w as danger } from "./utils-CTFLl_ji.js";
2
+ import { d as resolveStateDir, f as expandHomePrefix, l as resolveOAuthDir, m as resolveRequiredHomeDir } from "./paths-DQpv9a3Q.js";
3
+ import { t as createSubsystemLogger } from "./subsystem-D7ZepYT1.js";
4
+ import { D as logVerbose, g as safeParseJson, t as CONFIG_DIR, w as danger } from "./utils-D9wGoiU9.js";
5
5
  import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-CuLPSMu_.js";
6
- import { B as readConfigFileSnapshotForWrite, H as writeConfigFile, Qt as resolveTelegramPreviewStreamMode, R as loadConfig, fn as withFileLock$1 } from "./model-selection-1MMYqY6M.js";
7
- import { t as isTruthyEnvValue } from "./env-B5G1qwGc.js";
8
- import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-CRB60mCJ.js";
9
- import { h as normalizeMimeType, p as isGifMedia, u as getFileExtension, v as mediaKindFromMime } from "./image-ops-D1KtygWz.js";
10
- import { t as redactSensitiveText } from "./redact-Bvpf-ATQ.js";
11
- import { n as formatErrorMessage, r as formatUncaughtError, t as extractErrorCode } from "./errors-C_0nm4TJ.js";
12
- import { n as resolveMarkdownTableMode } from "./markdown-tables-CzsockiZ.js";
13
- import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-B7IBoKLy.js";
6
+ import { B as readConfigFileSnapshotForWrite, H as writeConfigFile, Qt as resolveTelegramPreviewStreamMode, R as loadConfig, fn as withFileLock$1 } from "./model-selection-C5hI1dum.js";
7
+ import { t as isTruthyEnvValue } from "./env-q-PhWbb_.js";
8
+ import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-DYr-HHj0.js";
9
+ import { h as normalizeMimeType, p as isGifMedia, u as getFileExtension, v as mediaKindFromMime } from "./image-ops-J8P5zOFm.js";
10
+ import { t as redactSensitiveText } from "./redact-1Y0KPNtr.js";
11
+ import { n as formatErrorMessage, r as formatUncaughtError, t as extractErrorCode } from "./errors-C4SHjIZK.js";
12
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-R8VTpfE9.js";
13
+ import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-BT5aAdU9.js";
14
14
  import { t as renderMarkdownWithMarkers } from "./render-MTSxc7LK.js";
15
15
  import { t as resolveFetch } from "./fetch-CsfR_943.js";
16
- import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-D_TMOGQ0.js";
16
+ import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-DdL3RAv_.js";
17
17
  import { n as normalizePollInput } from "./polls-DhMjjIGW.js";
18
18
  import { t as makeProxyFetch } from "./proxy-CRB9oCP5.js";
19
19
  import fs from "node:fs/promises";
20
20
  import os from "node:os";
21
21
  import path from "node:path";
22
- import syncFs, { readFileSync } from "node:fs";
22
+ import fs$1, { readFileSync } from "node:fs";
23
23
  import JSON5 from "json5";
24
24
  import crypto from "node:crypto";
25
25
  import process$1 from "node:process";
@@ -158,7 +158,7 @@ function getPairingAdapter(channelId) {
158
158
  //#region src/plugin-sdk/json-store.ts
159
159
  async function readJsonFileWithFallback(filePath, fallback) {
160
160
  try {
161
- const parsed = safeParseJson(await syncFs.promises.readFile(filePath, "utf-8"));
161
+ const parsed = safeParseJson(await fs$1.promises.readFile(filePath, "utf-8"));
162
162
  if (parsed == null) return {
163
163
  value: fallback,
164
164
  exists: true
@@ -180,14 +180,14 @@ async function readJsonFileWithFallback(filePath, fallback) {
180
180
  }
181
181
  async function writeJsonFileAtomically(filePath, value) {
182
182
  const dir = path.dirname(filePath);
183
- await syncFs.promises.mkdir(dir, {
183
+ await fs$1.promises.mkdir(dir, {
184
184
  recursive: true,
185
185
  mode: 448
186
186
  });
187
187
  const tmp = path.join(dir, `${path.basename(filePath)}.${crypto.randomUUID()}.tmp`);
188
- await syncFs.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, { encoding: "utf-8" });
189
- await syncFs.promises.chmod(tmp, 384);
190
- await syncFs.promises.rename(tmp, filePath);
188
+ await fs$1.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, { encoding: "utf-8" });
189
+ await fs$1.promises.chmod(tmp, 384);
190
+ await fs$1.promises.rename(tmp, filePath);
191
191
  }
192
192
 
193
193
  //#endregion
@@ -248,7 +248,7 @@ async function readPairingRequests(filePath) {
248
248
  }
249
249
  async function ensureJsonFile(filePath, fallback) {
250
250
  try {
251
- await syncFs.promises.access(filePath);
251
+ await fs$1.promises.access(filePath);
252
252
  } catch {
253
253
  await writeJsonFile(filePath, fallback);
254
254
  }
@@ -1515,7 +1515,7 @@ function resolveCronStorePath(storePath) {
1515
1515
  }
1516
1516
  async function loadCronStore(storePath) {
1517
1517
  try {
1518
- const raw = await syncFs.promises.readFile(storePath, "utf-8");
1518
+ const raw = await fs$1.promises.readFile(storePath, "utf-8");
1519
1519
  let parsed;
1520
1520
  try {
1521
1521
  parsed = JSON5.parse(raw);
@@ -1536,14 +1536,14 @@ async function loadCronStore(storePath) {
1536
1536
  }
1537
1537
  }
1538
1538
  async function saveCronStore(storePath, store) {
1539
- await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
1539
+ await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
1540
1540
  const { randomBytes } = await import("node:crypto");
1541
1541
  const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
1542
1542
  const json = JSON.stringify(store, null, 2);
1543
- await syncFs.promises.writeFile(tmp, json, "utf-8");
1544
- await syncFs.promises.rename(tmp, storePath);
1543
+ await fs$1.promises.writeFile(tmp, json, "utf-8");
1544
+ await fs$1.promises.rename(tmp, storePath);
1545
1545
  try {
1546
- await syncFs.promises.copyFile(storePath, `${storePath}.bak`);
1546
+ await fs$1.promises.copyFile(storePath, `${storePath}.bak`);
1547
1547
  } catch {}
1548
1548
  }
1549
1549
 
@@ -1,17 +1,17 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { K as resolvePreferredIdleHandsTmpDir } from "./utils-CTFLl_ji.js";
3
- import { R as loadConfig } from "./model-selection-1MMYqY6M.js";
4
- import { _ as resolveDiscordAccount, v as normalizeDiscordToken } from "./plugins-CRB60mCJ.js";
2
+ import { K as resolvePreferredIdleHandsTmpDir } from "./utils-D9wGoiU9.js";
3
+ import { R as loadConfig } from "./model-selection-C5hI1dum.js";
4
+ import { _ as resolveDiscordAccount, v as normalizeDiscordToken } from "./plugins-DYr-HHj0.js";
5
5
  import { a as requireTargetKind, i as parseTargetPrefixes, n as ensureTargetId, r as parseTargetMention, t as buildMessagingTarget } from "./targets-D7PT_rdO.js";
6
- import { _ as maxBytesForKind, l as extensionForMime } from "./image-ops-D1KtygWz.js";
7
- import { n as retryAsync, t as resolveRetryConfig } from "./retry-BeB9WenR.js";
8
- import { c as resolveChunkMode, i as chunkMarkdownTextWithMode } from "./chunk-CMpX7Jaz.js";
9
- import { n as resolveMarkdownTableMode } from "./markdown-tables-CzsockiZ.js";
10
- import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-B7IBoKLy.js";
6
+ import { _ as maxBytesForKind, l as extensionForMime } from "./image-ops-J8P5zOFm.js";
7
+ import { n as retryAsync, t as resolveRetryConfig } from "./retry-CG6cMRDQ.js";
8
+ import { c as resolveChunkMode, i as chunkMarkdownTextWithMode } from "./chunk-Djk-9JeT.js";
9
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-R8VTpfE9.js";
10
+ import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-BT5aAdU9.js";
11
11
  import { t as resolveFetch } from "./fetch-CsfR_943.js";
12
- import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-D_TMOGQ0.js";
12
+ import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-DdL3RAv_.js";
13
13
  import { n as normalizePollInput, t as normalizePollDurationHours } from "./polls-DhMjjIGW.js";
14
- import { t as convertMarkdownTables } from "./tables-5k-zOZ-s.js";
14
+ import { t as convertMarkdownTables } from "./tables-Co_R_WKs.js";
15
15
  import fs from "node:fs/promises";
16
16
  import path from "node:path";
17
17
  import { promisify } from "node:util";
@@ -1,13 +1,13 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { R as loadConfig } from "./model-selection-1MMYqY6M.js";
2
+ import { R as loadConfig } from "./model-selection-C5hI1dum.js";
3
3
  import { n as generateSecureUuid } from "./secure-random-B1N_MXT_.js";
4
- import { n as resolveSignalAccount } from "./accounts-BDVs8LTu.js";
5
- import { v as mediaKindFromMime } from "./image-ops-D1KtygWz.js";
4
+ import { n as resolveSignalAccount } from "./accounts-B8cGzkjD.js";
5
+ import { v as mediaKindFromMime } from "./image-ops-J8P5zOFm.js";
6
6
  import { n as fetchWithTimeout } from "./fetch-timeout-3YYM8QuM.js";
7
- import { n as resolveMarkdownTableMode } from "./markdown-tables-CzsockiZ.js";
8
- import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-B7IBoKLy.js";
7
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-R8VTpfE9.js";
8
+ import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-BT5aAdU9.js";
9
9
  import { t as resolveFetch } from "./fetch-CsfR_943.js";
10
- import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-3I6GzwDe.js";
10
+ import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-IfeZJAKk.js";
11
11
 
12
12
  //#region src/signal/format.ts
13
13
  function normalizeUrlForComparison(url) {
@@ -25,7 +25,7 @@ import "./logging-Bgrm4o7g.js";
25
25
  import "./auth-store-D9BmR4S6.js";
26
26
  import "./send-m4lQkQcY.js";
27
27
  import "./send-CCiDIuX4.js";
28
- import { A as createOutboundSendDeps, An as requestHeartbeatNow, E as agentCommand, En as enqueueSystemEvent, bn as buildOutboundSessionContext, ht as resolveOutboundTarget } from "./subagent-registry-BcpHnckA.js";
28
+ import { A as createOutboundSendDeps, An as requestHeartbeatNow, E as agentCommand, En as enqueueSystemEvent, bn as buildOutboundSessionContext, ht as resolveOutboundTarget } from "./subagent-registry-D7Dwl-dH.js";
29
29
  import "./paths-CC17i2eK.js";
30
30
  import "./chat-envelope-Dedaetiq.js";
31
31
  import "./client-udFMSDes.js";
@@ -108,11 +108,11 @@ import "./cli-utils-BfsDuRZS.js";
108
108
  import "./help-format-CldHB7lS.js";
109
109
  import "./progress-B76RkFx7.js";
110
110
  import "./replies-DSfpze17.js";
111
- import "./deps-BV_-fxNb.js";
111
+ import "./deps-C8gMsatU.js";
112
112
  import "./onboard-helpers-DWivfzcc.js";
113
113
  import "./prompt-style-XmK49QYK.js";
114
114
  import "./pairing-labels-D7xcHkxi.js";
115
- import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-Dz4hOY07.js";
115
+ import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-DM5pSWEU.js";
116
116
  import { randomUUID } from "node:crypto";
117
117
 
118
118
  //#region src/gateway/server-node-events.ts
@@ -1,7 +1,7 @@
1
1
  import "./paths-Cn44w-EB.js";
2
2
  import "./utils-CXzXXV2o.js";
3
3
  import "./thinking-EAliFiVK.js";
4
- import { Bn as buildOutboundSessionContext, Bt as createOutboundSendDeps, Cr as enqueueSystemEvent, Dr as requestHeartbeatNow, E as resolveGatewaySessionStoreTarget, Lt as resolveOutboundTarget, T as pruneLegacyStoreKeys, jt as agentCommand, w as loadSessionEntry } from "./reply-DfRr_KdS.js";
4
+ import { Bn as buildOutboundSessionContext, Bt as createOutboundSendDeps, Cr as enqueueSystemEvent, Dr as requestHeartbeatNow, E as resolveGatewaySessionStoreTarget, Lt as resolveOutboundTarget, T as pruneLegacyStoreKeys, jt as agentCommand, w as loadSessionEntry } from "./reply-AI4n5V-o.js";
5
5
  import "./agent-scope-RA0zXRpu.js";
6
6
  import "./subsystem-CGZX2PBV.js";
7
7
  import { n as defaultRuntime } from "./runtime-44j_X4Y6.js";
@@ -103,7 +103,7 @@ import "./resolve-route-D_AbcmD6.js";
103
103
  import "./replies-hSFVxL4h.js";
104
104
  import "./skill-commands-BFzmZAfo.js";
105
105
  import "./workspace-dirs-SsExQ3Bz.js";
106
- import "./deps-IpeS3x5O.js";
106
+ import "./deps-CC9rj6VE.js";
107
107
  import "./plugin-auto-enable-7DUxMy6A.js";
108
108
  import "./channel-selection-ZxRkxpuF.js";
109
109
  import "./outbound-attachment-Bot3bRnK.js";
@@ -116,7 +116,7 @@ import "./pairing-labels-ChQJzbS9.js";
116
116
  import "./server-lifecycle-B5PlrlbG.js";
117
117
  import "./stagger-rQoQSWkz.js";
118
118
  import "./system-run-command-qJdgzxLp.js";
119
- import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-BSYjGCn9.js";
119
+ import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-DbZAasNF.js";
120
120
  import { randomUUID } from "node:crypto";
121
121
 
122
122
  //#region src/gateway/server-node-events.ts
@@ -1,8 +1,8 @@
1
- import { I as getChildLogger, a as ensureDir, h as resolveUserPath, j as success, w as danger, z as toPinoLikeLogger } from "./utils-CTFLl_ji.js";
2
- import { tn as VERSION } from "./model-selection-1MMYqY6M.js";
1
+ import { I as getChildLogger, a as ensureDir, h as resolveUserPath, j as success, w as danger, z as toPinoLikeLogger } from "./utils-D9wGoiU9.js";
2
+ import { tn as VERSION } from "./model-selection-C5hI1dum.js";
3
3
  import { t as formatCliCommand } from "./command-format-BAxx4PW5.js";
4
- import { c as readCredsJsonRaw, d as resolveWebCredsBackupPath, f as resolveWebCredsPath, o as maybeRestoreCredsFromBackup, u as resolveDefaultWebAuthDir } from "./auth-store-DXT-l7fO.js";
5
- import syncFs from "node:fs";
4
+ import { c as readCredsJsonRaw, d as resolveWebCredsBackupPath, f as resolveWebCredsPath, o as maybeRestoreCredsFromBackup, u as resolveDefaultWebAuthDir } from "./auth-store-Bb4aajHu.js";
5
+ import fs from "node:fs";
6
6
  import { randomUUID } from "node:crypto";
7
7
  import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
8
8
  import qrcode from "qrcode-terminal";
@@ -21,16 +21,16 @@ async function safeSaveCreds(authDir, saveCreds, logger) {
21
21
  const raw = readCredsJsonRaw(credsPath);
22
22
  if (raw) try {
23
23
  JSON.parse(raw);
24
- syncFs.copyFileSync(credsPath, backupPath);
24
+ fs.copyFileSync(credsPath, backupPath);
25
25
  try {
26
- syncFs.chmodSync(backupPath, 384);
26
+ fs.chmodSync(backupPath, 384);
27
27
  } catch {}
28
28
  } catch {}
29
29
  } catch {}
30
30
  try {
31
31
  await Promise.resolve(saveCreds());
32
32
  try {
33
- syncFs.chmodSync(resolveWebCredsPath(authDir), 384);
33
+ fs.chmodSync(resolveWebCredsPath(authDir), 384);
34
34
  } catch {}
35
35
  } catch (err) {
36
36
  logger.warn({ error: String(err) }, "failed saving WhatsApp creds");
@@ -1,20 +1,20 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { m as resolveRequiredHomeDir } from "./paths-BYNVLNi_.js";
3
- import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
4
- import { d as normalizeE164 } from "./utils-CTFLl_ji.js";
2
+ import { m as resolveRequiredHomeDir } from "./paths-DQpv9a3Q.js";
3
+ import { t as createSubsystemLogger } from "./subsystem-D7ZepYT1.js";
4
+ import { d as normalizeE164 } from "./utils-D9wGoiU9.js";
5
5
  import { c as normalizeMainKey, l as resolveAgentIdFromSessionKey, m as normalizeOptionalAccountId, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-CuLPSMu_.js";
6
- import { R as loadConfig, et as parseDurationMs, mn as isPidAlive, pn as resolveProcessScopedMap, tt as parseByteSize } from "./model-selection-1MMYqY6M.js";
7
- import { c as normalizeHyphenSlug, t as getChannelDock } from "./dock-BgOmHcbh.js";
8
- import { r as normalizeChannelId } from "./plugins-CRB60mCJ.js";
6
+ import { R as loadConfig, et as parseDurationMs, mn as isPidAlive, pn as resolveProcessScopedMap, tt as parseByteSize } from "./model-selection-C5hI1dum.js";
7
+ import { c as normalizeHyphenSlug, t as getChannelDock } from "./dock-ejUetwTC.js";
8
+ import { r as normalizeChannelId } from "./plugins-DYr-HHj0.js";
9
9
  import { t as normalizeChatType } from "./chat-type-BPBtOjer.js";
10
- import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-C8QtrwEU.js";
10
+ import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-ZdI1-uUh.js";
11
11
  import { n as resolveConversationLabel } from "./conversation-label-1Wad2kXc.js";
12
- import { a as resolveSessionFilePathOptions, c as resolveSessionTranscriptsDir, d as validateSessionId, i as resolveSessionFilePath, l as resolveSessionTranscriptsDirForAgent, o as resolveSessionTranscriptPath, r as resolveDefaultSessionStorePath, s as resolveSessionTranscriptPathInDir, t as SAFE_SESSION_ID_RE, u as resolveStorePath } from "./paths-D_qUel1T.js";
12
+ import { a as resolveSessionFilePathOptions, c as resolveSessionTranscriptsDir, d as validateSessionId, i as resolveSessionFilePath, l as resolveSessionTranscriptsDirForAgent, o as resolveSessionTranscriptPath, r as resolveDefaultSessionStorePath, s as resolveSessionTranscriptPathInDir, t as SAFE_SESSION_ID_RE, u as resolveStorePath } from "./paths-D3p7ZvM6.js";
13
13
  import { t as emitSessionTranscriptUpdate } from "./transcript-events-_OimdA_2.js";
14
14
  import fs from "node:fs/promises";
15
15
  import os from "node:os";
16
16
  import path from "node:path";
17
- import syncFs from "node:fs";
17
+ import fs$1 from "node:fs";
18
18
  import crypto from "node:crypto";
19
19
  import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
20
20
 
@@ -100,7 +100,7 @@ function releaseAllLocksSync() {
100
100
  if (typeof held.handle.close === "function") held.handle.close().catch(() => {});
101
101
  } catch {}
102
102
  try {
103
- syncFs.rmSync(held.lockPath, { force: true });
103
+ fs$1.rmSync(held.lockPath, { force: true });
104
104
  } catch {}
105
105
  HELD_LOCKS.delete(sessionFile);
106
106
  }
@@ -876,14 +876,14 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
876
876
  function canonicalizePathForComparison$1(filePath) {
877
877
  const resolved = path.resolve(filePath);
878
878
  try {
879
- return syncFs.realpathSync(resolved);
879
+ return fs$1.realpathSync(resolved);
880
880
  } catch {
881
881
  return resolved;
882
882
  }
883
883
  }
884
884
  function archiveFileOnDisk(filePath, reason) {
885
885
  const archived = `${filePath}.${reason}.${formatSessionArchiveTimestamp()}`;
886
- syncFs.renameSync(filePath, archived);
886
+ fs$1.renameSync(filePath, archived);
887
887
  return archived;
888
888
  }
889
889
  /**
@@ -899,7 +899,7 @@ function archiveSessionTranscripts(opts) {
899
899
  const relative = path.relative(storeDir, candidatePath);
900
900
  if (!relative || relative.startsWith("..") || path.isAbsolute(relative)) continue;
901
901
  }
902
- if (!syncFs.existsSync(candidatePath)) continue;
902
+ if (!fs$1.existsSync(candidatePath)) continue;
903
903
  try {
904
904
  archived.push(archiveFileOnDisk(candidatePath, opts.reason));
905
905
  } catch {}
@@ -917,15 +917,15 @@ async function cleanupArchivedSessionTranscripts(opts) {
917
917
  let removed = 0;
918
918
  let scanned = 0;
919
919
  for (const dir of directories) {
920
- const entries = await syncFs.promises.readdir(dir).catch(() => []);
920
+ const entries = await fs$1.promises.readdir(dir).catch(() => []);
921
921
  for (const entry of entries) {
922
922
  const timestamp = parseSessionArchiveTimestamp(entry, reason);
923
923
  if (timestamp == null) continue;
924
924
  scanned += 1;
925
925
  if (now - timestamp <= opts.olderThanMs) continue;
926
926
  const fullPath = path.join(dir, entry);
927
- if (!(await syncFs.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
928
- await syncFs.promises.rm(fullPath).catch(() => void 0);
927
+ if (!(await fs$1.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
928
+ await fs$1.promises.rm(fullPath).catch(() => void 0);
929
929
  removed += 1;
930
930
  }
931
931
  }
@@ -1061,7 +1061,7 @@ function isCacheEnabled(ttlMs) {
1061
1061
  }
1062
1062
  function getFileMtimeMs(filePath) {
1063
1063
  try {
1064
- return syncFs.statSync(filePath).mtimeMs;
1064
+ return fs$1.statSync(filePath).mtimeMs;
1065
1065
  } catch {
1066
1066
  return;
1067
1067
  }
@@ -1076,7 +1076,7 @@ const NOOP_LOGGER = {
1076
1076
  function canonicalizePathForComparison(filePath) {
1077
1077
  const resolved = path.resolve(filePath);
1078
1078
  try {
1079
- return syncFs.realpathSync(resolved);
1079
+ return fs$1.realpathSync(resolved);
1080
1080
  } catch {
1081
1081
  return resolved;
1082
1082
  }
@@ -1134,12 +1134,12 @@ function resolveReferencedSessionTranscriptPaths(params) {
1134
1134
  return referenced;
1135
1135
  }
1136
1136
  async function readSessionsDirFiles(sessionsDir) {
1137
- const dirEntries = await syncFs.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
1137
+ const dirEntries = await fs$1.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
1138
1138
  const files = [];
1139
1139
  for (const dirent of dirEntries) {
1140
1140
  if (!dirent.isFile()) continue;
1141
1141
  const filePath = path.join(sessionsDir, dirent.name);
1142
- const stat = await syncFs.promises.stat(filePath).catch(() => null);
1142
+ const stat = await fs$1.promises.stat(filePath).catch(() => null);
1143
1143
  if (!stat?.isFile()) continue;
1144
1144
  files.push({
1145
1145
  path: filePath,
@@ -1152,9 +1152,9 @@ async function readSessionsDirFiles(sessionsDir) {
1152
1152
  return files;
1153
1153
  }
1154
1154
  async function removeFileIfExists(filePath) {
1155
- const stat = await syncFs.promises.stat(filePath).catch(() => null);
1155
+ const stat = await fs$1.promises.stat(filePath).catch(() => null);
1156
1156
  if (!stat?.isFile()) return 0;
1157
- await syncFs.promises.rm(filePath, { force: true }).catch(() => void 0);
1157
+ await fs$1.promises.rm(filePath, { force: true }).catch(() => void 0);
1158
1158
  return stat.size;
1159
1159
  }
1160
1160
  async function removeFileForBudget(params) {
@@ -1438,7 +1438,7 @@ function loadSessionStore(storePath, opts = {}) {
1438
1438
  const maxReadAttempts = process.platform === "win32" ? 3 : 1;
1439
1439
  const retryBuf = maxReadAttempts > 1 ? new Int32Array(new SharedArrayBuffer(4)) : void 0;
1440
1440
  for (let attempt = 0; attempt < maxReadAttempts; attempt++) try {
1441
- const raw = syncFs.readFileSync(storePath, "utf-8");
1441
+ const raw = fs$1.readFileSync(storePath, "utf-8");
1442
1442
  if (raw.length === 0 && attempt < maxReadAttempts - 1) {
1443
1443
  Atomics.wait(retryBuf, 0, 0, 50);
1444
1444
  continue;
@@ -1641,7 +1641,7 @@ function capEntryCount(store, overrideMax, opts = {}) {
1641
1641
  }
1642
1642
  async function getSessionFileSize(storePath) {
1643
1643
  try {
1644
- return (await syncFs.promises.stat(storePath)).size;
1644
+ return (await fs$1.promises.stat(storePath)).size;
1645
1645
  } catch {
1646
1646
  return null;
1647
1647
  }
@@ -1658,7 +1658,7 @@ async function rotateSessionFile(storePath, overrideBytes) {
1658
1658
  if (fileSize <= maxBytes) return false;
1659
1659
  const backupPath = `${storePath}.bak.${Date.now()}`;
1660
1660
  try {
1661
- await syncFs.promises.rename(storePath, backupPath);
1661
+ await fs$1.promises.rename(storePath, backupPath);
1662
1662
  log.info("rotated session store file", {
1663
1663
  backupPath: path.basename(backupPath),
1664
1664
  sizeBytes: fileSize
@@ -1669,11 +1669,11 @@ async function rotateSessionFile(storePath, overrideBytes) {
1669
1669
  try {
1670
1670
  const dir = path.dirname(storePath);
1671
1671
  const baseName = path.basename(storePath);
1672
- const backups = (await syncFs.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
1672
+ const backups = (await fs$1.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
1673
1673
  const maxBackups = 3;
1674
1674
  if (backups.length > maxBackups) {
1675
1675
  const toDelete = backups.slice(maxBackups);
1676
- for (const old of toDelete) await syncFs.promises.unlink(path.join(dir, old)).catch(() => void 0);
1676
+ for (const old of toDelete) await fs$1.promises.unlink(path.join(dir, old)).catch(() => void 0);
1677
1677
  log.info("cleaned up old session store backups", { deleted: toDelete.length });
1678
1678
  }
1679
1679
  } catch {}
@@ -1778,14 +1778,14 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
1778
1778
  });
1779
1779
  }
1780
1780
  }
1781
- await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
1781
+ await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
1782
1782
  const json = JSON.stringify(store, null, 2);
1783
1783
  if (process.platform === "win32") {
1784
1784
  const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
1785
1785
  try {
1786
- await syncFs.promises.writeFile(tmp, json, "utf-8");
1786
+ await fs$1.promises.writeFile(tmp, json, "utf-8");
1787
1787
  for (let i = 0; i < 5; i++) try {
1788
- await syncFs.promises.rename(tmp, storePath);
1788
+ await fs$1.promises.rename(tmp, storePath);
1789
1789
  break;
1790
1790
  } catch {
1791
1791
  if (i < 4) await new Promise((r) => setTimeout(r, 50 * (i + 1)));
@@ -1795,27 +1795,27 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
1795
1795
  if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") return;
1796
1796
  throw err;
1797
1797
  } finally {
1798
- await syncFs.promises.rm(tmp, { force: true }).catch(() => void 0);
1798
+ await fs$1.promises.rm(tmp, { force: true }).catch(() => void 0);
1799
1799
  }
1800
1800
  return;
1801
1801
  }
1802
1802
  const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
1803
1803
  try {
1804
- await syncFs.promises.writeFile(tmp, json, {
1804
+ await fs$1.promises.writeFile(tmp, json, {
1805
1805
  mode: 384,
1806
1806
  encoding: "utf-8"
1807
1807
  });
1808
- await syncFs.promises.rename(tmp, storePath);
1809
- await syncFs.promises.chmod(storePath, 384);
1808
+ await fs$1.promises.rename(tmp, storePath);
1809
+ await fs$1.promises.chmod(storePath, 384);
1810
1810
  } catch (err) {
1811
1811
  if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") {
1812
1812
  try {
1813
- await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
1814
- await syncFs.promises.writeFile(storePath, json, {
1813
+ await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
1814
+ await fs$1.promises.writeFile(storePath, json, {
1815
1815
  mode: 384,
1816
1816
  encoding: "utf-8"
1817
1817
  });
1818
- await syncFs.promises.chmod(storePath, 384);
1818
+ await fs$1.promises.chmod(storePath, 384);
1819
1819
  } catch (err2) {
1820
1820
  if ((err2 && typeof err2 === "object" && "code" in err2 ? String(err2.code) : null) === "ENOENT") return;
1821
1821
  throw err2;
@@ -1824,7 +1824,7 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
1824
1824
  }
1825
1825
  throw err;
1826
1826
  } finally {
1827
- await syncFs.promises.rm(tmp, { force: true });
1827
+ await fs$1.promises.rm(tmp, { force: true });
1828
1828
  }
1829
1829
  }
1830
1830
  async function saveSessionStore(storePath, store, opts) {
@@ -2095,8 +2095,8 @@ function resolveMirroredTranscriptText(params) {
2095
2095
  return trimmed ? trimmed : null;
2096
2096
  }
2097
2097
  async function ensureSessionHeader(params) {
2098
- if (syncFs.existsSync(params.sessionFile)) return;
2099
- await syncFs.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
2098
+ if (fs$1.existsSync(params.sessionFile)) return;
2099
+ await fs$1.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
2100
2100
  const header = {
2101
2101
  type: "session",
2102
2102
  version: CURRENT_SESSION_VERSION,
@@ -2104,7 +2104,7 @@ async function ensureSessionHeader(params) {
2104
2104
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
2105
2105
  cwd: process.cwd()
2106
2106
  };
2107
- await syncFs.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
2107
+ await fs$1.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
2108
2108
  encoding: "utf-8",
2109
2109
  mode: 384
2110
2110
  });
@@ -1,14 +1,14 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { n as listAgentIds, s as resolveAgentWorkspaceDir } from "./agent-scope-DyP_tr7s.js";
3
- import { d as resolveStateDir } from "./paths-BYNVLNi_.js";
4
- import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
5
- import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-CTFLl_ji.js";
6
- import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-CnAPWfca.js";
7
- import { a as listChatCommands } from "./commands-registry-j4vAzcF2.js";
2
+ import { n as listAgentIds, s as resolveAgentWorkspaceDir } from "./agent-scope-Bxq1eWbA.js";
3
+ import { d as resolveStateDir } from "./paths-DQpv9a3Q.js";
4
+ import { t as createSubsystemLogger } from "./subsystem-D7ZepYT1.js";
5
+ import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-D9wGoiU9.js";
6
+ import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-umlGvChF.js";
7
+ import { a as listChatCommands } from "./commands-registry-_TBHHpvt.js";
8
8
  import fs from "node:fs/promises";
9
9
  import os from "node:os";
10
10
  import path from "node:path";
11
- import syncFs from "node:fs";
11
+ import fs$1 from "node:fs";
12
12
  import { randomUUID } from "node:crypto";
13
13
  import chokidar from "chokidar";
14
14
 
@@ -283,8 +283,8 @@ function listSkillCommandsForAgents(params) {
283
283
  const visitedDirs = /* @__PURE__ */ new Set();
284
284
  for (const agentId of agentIds) {
285
285
  const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
286
- if (!syncFs.existsSync(workspaceDir)) continue;
287
- const canonicalDir = syncFs.realpathSync(workspaceDir);
286
+ if (!fs$1.existsSync(workspaceDir)) continue;
287
+ const canonicalDir = fs$1.realpathSync(workspaceDir);
288
288
  if (visitedDirs.has(canonicalDir)) continue;
289
289
  visitedDirs.add(canonicalDir);
290
290
  const commands = buildWorkspaceSkillCommandSpecs(workspaceDir, {