@qqbrowser/openclaw-qbot 0.0.148 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1698) hide show
  1. package/dist/account-lookup-CW-_CL7y.js +0 -1
  2. package/dist/acp-cli-BHsTg1ac.js +0 -1
  3. package/dist/acp-cli-D_WC9SZX.js +0 -1
  4. package/dist/active-listener-1MJXk3Iq.js +0 -1
  5. package/dist/active-listener-D8VOdVx3.js +0 -1
  6. package/dist/active-listener-D8uP0H5W.js +0 -1
  7. package/dist/active-listener-DeKRt_UV.js +0 -1
  8. package/dist/agent-scope-DAWJwFfl.js +0 -1
  9. package/dist/agent-scope-DXZc3eNT.js +0 -1
  10. package/dist/agents-Cd1yL8fG.js +0 -1
  11. package/dist/agents.config-CaRMmWS8.js +0 -1
  12. package/dist/agents.config-DSCcdYtv.js +0 -1
  13. package/dist/allow-from-B6dI7oz8.js +0 -1
  14. package/dist/allow-from-DEeVIPKS.js +0 -1
  15. package/dist/api-BeG0ObSq.js +0 -1
  16. package/dist/api-Dx8x1KTs.js +0 -1
  17. package/dist/api-key-rotation-BLt5E2Cw.js +0 -1
  18. package/dist/api-key-rotation-BpEL4aeX.js +0 -1
  19. package/dist/api-key-rotation-DayEfYpa.js +0 -1
  20. package/dist/api-key-rotation-Rz2ESQSA.js +0 -1
  21. package/dist/arg-split-BOqSMBuf.js +0 -1
  22. package/dist/arg-split-DE5RqDHq.js +0 -1
  23. package/dist/audio-preflight-8WB1LJBS.js +0 -1
  24. package/dist/audio-preflight-BcPHPfr_.js +0 -1
  25. package/dist/audio-preflight-DTO631Yb.js +0 -1
  26. package/dist/audio-preflight-O-0lDeKh.js +0 -1
  27. package/dist/audio-transcription-runner-9H9eUZ1D.js +0 -1
  28. package/dist/audio-transcription-runner-BIKj1CBU.js +0 -1
  29. package/dist/audio-transcription-runner-BwjMhAUa.js +0 -1
  30. package/dist/audio-transcription-runner-CQ7rq0d_.js +0 -1
  31. package/dist/audit-9I53EvMQ.js +0 -1
  32. package/dist/audit-BGsUfJzD.js +0 -1
  33. package/dist/audit-membership-runtime-BpRsMj5-.js +0 -1
  34. package/dist/audit-membership-runtime-BsfLZNBj.js +0 -1
  35. package/dist/audit-membership-runtime-DRHirRmx.js +0 -1
  36. package/dist/audit-membership-runtime-g0dEWJTp.js +0 -1
  37. package/dist/audit-membership-runtime-kdyToskD.js +0 -1
  38. package/dist/auth-choice-BmI4sIGs.js +0 -1
  39. package/dist/auth-choice-DDsPJF6F.js +0 -1
  40. package/dist/auth-choice-Dy0jIOLV.js +0 -1
  41. package/dist/auth-choice-MqcWuVyu.js +0 -1
  42. package/dist/auth-choice-options-B3WQyS7I.js +0 -1
  43. package/dist/auth-choice-options-Dw14noox.js +0 -1
  44. package/dist/auth-choice-prompt-uegl56cf.js +0 -1
  45. package/dist/auth-choice-prompt-xYj13czb.js +0 -1
  46. package/dist/auth-choice.apply-helpers-D911bYcw.js +0 -1
  47. package/dist/auth-choice.apply-helpers-pJ4CPZCk.js +0 -1
  48. package/dist/auth-profiles-C8rZRS0X.js +0 -1
  49. package/dist/auth-token-DZLZ3d_I.js +0 -1
  50. package/dist/auth-token-Dp6bxT29.js +0 -1
  51. package/dist/banner-CAtilyXr.js +0 -1
  52. package/dist/bonjour-discovery-ClTijpMw.js +0 -1
  53. package/dist/bonjour-discovery-DMB6yrOF.js +0 -1
  54. package/dist/boolean-Ch3DfXPy.js +0 -1
  55. package/dist/boolean-D15s2V33.js +0 -1
  56. package/dist/boolean-DypnRoRK.js +0 -1
  57. package/dist/brew-COcDl8CB.js +0 -1
  58. package/dist/brew-DDPm_HfE.js +0 -1
  59. package/dist/browser-cli-Bf-Pzjxs.js +0 -1
  60. package/dist/browser-cli-DkrBCfYg.js +0 -1
  61. package/dist/build-info.json +3 -3
  62. package/dist/bundled/boot-md/handler.js +0 -1
  63. package/dist/bundled/bootstrap-extra-files/handler.js +0 -1
  64. package/dist/bundled/command-logger/handler.js +0 -1
  65. package/dist/bundled/session-memory/handler.js +0 -1
  66. package/dist/call-BWx7hNtl.js +0 -1
  67. package/dist/call-JB-cGR9n.js +0 -1
  68. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  69. package/dist/channel-account-context-BMPAMZEv.js +0 -1
  70. package/dist/channel-account-context-DAcarnqW.js +0 -1
  71. package/dist/channel-activity-B04WbrrK.js +0 -1
  72. package/dist/channel-activity-BhiLsKvM.js +0 -1
  73. package/dist/channel-activity-DmgWmSAG.js +0 -1
  74. package/dist/channel-activity-Dw6F-ehJ.js +0 -1
  75. package/dist/channel-activity-htoVXTET.js +0 -1
  76. package/dist/channel-options-CCqtIYCc.js +0 -1
  77. package/dist/channel-options-CKoyPq8p.js +0 -1
  78. package/dist/channel-selection-BPxE8JR7.js +0 -1
  79. package/dist/channel-selection-si1OzWyQ.js +0 -1
  80. package/dist/channel-web-CCSMlUux.js +0 -1
  81. package/dist/channel-web-CwUfYqjg.js +0 -1
  82. package/dist/channels/plugins/actions/discord.js +0 -1
  83. package/dist/channels/plugins/actions/signal.js +0 -1
  84. package/dist/channels/plugins/actions/telegram.js +0 -1
  85. package/dist/channels/plugins/agent-tools/whatsapp-login.js +0 -1
  86. package/dist/channels-cli-BfgVv5jH.js +0 -1
  87. package/dist/channels-cli-BvGXgERj.js +0 -1
  88. package/dist/channels-status-issues-8eFrGKyf.js +0 -1
  89. package/dist/channels-status-issues-PRgOT90w.js +0 -1
  90. package/dist/chat-envelope-Bznn2SoS.js +0 -1
  91. package/dist/chat-envelope-HVpKusFc.js +0 -1
  92. package/dist/clack-prompter-DBPdGdqp.js +0 -1
  93. package/dist/clack-prompter-Dq0aY6iM.js +0 -1
  94. package/dist/clawbot-cli-B0iTJ-pm.js +0 -1
  95. package/dist/clawbot-cli-BcEtQbFY.js +0 -1
  96. package/dist/cleanup-utils-BWm70DoD.js +0 -1
  97. package/dist/cleanup-utils-D-RhEX6F.js +0 -1
  98. package/dist/cli-Bt--1dhL.js +0 -1
  99. package/dist/cli-CBg8KhmQ.js +0 -1
  100. package/dist/cli-utils-BY7dLMFy.js +0 -1
  101. package/dist/cli-utils-BleB1eys.js +0 -1
  102. package/dist/clipboard-Bk8cviBt.js +0 -1
  103. package/dist/clipboard-CKT_VIkG.js +0 -1
  104. package/dist/cmd-argv-BBT5l8AV.js +0 -1
  105. package/dist/cmd-argv-Bh-KpaZ0.js +0 -1
  106. package/dist/command-format-BbDT1tlm.js +0 -1
  107. package/dist/command-format-CLxIPuLR.js +0 -1
  108. package/dist/command-options-BpOUDl2S.js +0 -1
  109. package/dist/command-options-Bq5nQxz6.js +0 -1
  110. package/dist/command-poll-backoff-BZLHYB2k.js +0 -1
  111. package/dist/command-poll-backoff-Cww_r-24.js +0 -1
  112. package/dist/command-poll-backoff-Df6cOQrX.js +0 -1
  113. package/dist/command-poll-backoff-endAPdwn.js +0 -1
  114. package/dist/{command-registry-BxNiXs5w.js → command-registry-D_jtBegA.js} +1 -2
  115. package/dist/command-secret-targets-BEjtBf5Z.js +0 -1
  116. package/dist/command-secret-targets-CfXtLkLF.js +0 -1
  117. package/dist/commands-CGpM84iR.js +0 -1
  118. package/dist/commands-Dy7duWlt.js +0 -1
  119. package/dist/commands-registry-C5Hg7gyk.js +0 -1
  120. package/dist/commands-registry-DT6FDUev.js +0 -1
  121. package/dist/commands-registry-DlvNUkXz.js +0 -1
  122. package/dist/commands-registry-gvMK7Pw9.js +0 -1
  123. package/dist/compact-CYbPi7_-.js +0 -1
  124. package/dist/{completion-cli-Yg5BF97F.js → completion-cli-BVbT_aR2.js} +1 -2
  125. package/dist/{completion-cli-BRE0F8Tu.js → completion-cli-Bw_hBrlA.js} +1 -2
  126. package/dist/config-BqW5S1xL.js +0 -1
  127. package/dist/config-Cji73to5.js +0 -1
  128. package/dist/config-cli-CwW76_j_.js +0 -1
  129. package/dist/config-cli-F-lkPjjz.js +0 -1
  130. package/dist/config-guard-0_afzaJz.js +0 -1
  131. package/dist/config-guard-CqUJ8uaF.js +0 -1
  132. package/dist/config-validation-6hk_fxD8.js +0 -1
  133. package/dist/config-validation-BAmmD9p4.js +0 -1
  134. package/dist/configure--c4tTVPz.js +0 -1
  135. package/dist/configure-DFlnM_zh.js +0 -1
  136. package/dist/connection-auth-CjaeEu5D.js +0 -1
  137. package/dist/connection-auth-smZlFWxD.js +0 -1
  138. package/dist/context-window-guard-7crlatf9.js +0 -1
  139. package/dist/context-window-guard-CPChk363.js +0 -1
  140. package/dist/control-ui-assets-BIa0GGDg.js +0 -1
  141. package/dist/control-ui-assets-CTHGGgaX.js +0 -1
  142. package/dist/cron-cli-BKS4L-uW.js +0 -1
  143. package/dist/cron-cli-L9wLLocl.js +0 -1
  144. package/dist/daemon-cli-BdDHNRqp.js +0 -1
  145. package/dist/daemon-cli-CEHkT-54.js +0 -1
  146. package/dist/daemon-cli.js +0 -1
  147. package/dist/daemon-install-CMNtsW5o.js +0 -1
  148. package/dist/daemon-install-D2gMiA0p.js +0 -1
  149. package/dist/daemon-install-plan.shared-BkwZgIAY.js +0 -1
  150. package/dist/daemon-install-plan.shared-Dx3DBXCG.js +0 -1
  151. package/dist/daemon-runtime-DHiDbRuC.js +0 -1
  152. package/dist/daemon-runtime-VcpeBRJV.js +0 -1
  153. package/dist/dangerous-name-matching-BOmvAibz.js +0 -1
  154. package/dist/dangerous-name-matching-DtllRqBD.js +0 -1
  155. package/dist/dangerous-tools-CFRYQJ6V.js +0 -1
  156. package/dist/dangerous-tools-oYCu5wfC.js +0 -1
  157. package/dist/deliver-AM3FP5rj.js +0 -1
  158. package/dist/deliver-BhWhLvQO.js +0 -1
  159. package/dist/deliver-DUNkj4hy.js +0 -1
  160. package/dist/deliver-SqSusZP3.js +0 -1
  161. package/dist/delivery-queue-CKbauSFq.js +0 -1
  162. package/dist/delivery-queue-nkPJu0fY.js +0 -1
  163. package/dist/device-pairing-DAzYy3vX.js +0 -1
  164. package/dist/device-pairing-DknI3IDo.js +0 -1
  165. package/dist/devices-cli-BYD6Sq88.js +0 -1
  166. package/dist/devices-cli-Dl-0fQmR.js +0 -1
  167. package/dist/diagnostic-BEZszppF.js +0 -1
  168. package/dist/diagnostic-D1H7_8QG.js +0 -1
  169. package/dist/diagnostic-DtuQPRbp.js +0 -1
  170. package/dist/diagnostic-VBPCgF9l.js +0 -1
  171. package/dist/diagnostics-BgbeL9KE.js +0 -1
  172. package/dist/diagnostics-Cdctg9K_.js +0 -1
  173. package/dist/directory-cli-CpMjutQb.js +0 -1
  174. package/dist/directory-cli-b_l3qJI_.js +0 -1
  175. package/dist/dns-cli-C7L4RYOm.js +0 -1
  176. package/dist/dns-cli-wKg6nn6f.js +0 -1
  177. package/dist/docs-cli-CwW4sqbC.js +0 -1
  178. package/dist/docs-cli-DnLLU7eX.js +0 -1
  179. package/dist/{doctor-completion-II0Wb435.js → doctor-completion-C9CPhCor.js} +1 -2
  180. package/dist/{doctor-completion-Bu-98ocm.js → doctor-completion-DI7mGC3D.js} +1 -2
  181. package/dist/doctor-config-flow-BVpr8-q9.js +0 -1
  182. package/dist/doctor-config-flow-Dio3s4x6.js +0 -1
  183. package/dist/enable-CjFPAUgo.js +0 -1
  184. package/dist/enable-PO3qN4Lf.js +0 -1
  185. package/dist/entry-status-CCwwKO43.js +0 -1
  186. package/dist/entry-status-CoXkbJcX.js +0 -1
  187. package/dist/entry.js +1 -2
  188. package/dist/env-D7wNuBx1.js +0 -1
  189. package/dist/env-overrides-DHtB4kK3.js +0 -1
  190. package/dist/env-overrides-DXJbFrwI.js +0 -1
  191. package/dist/errors-6SQWM9dj.js +0 -1
  192. package/dist/errors-Bunti32V.js +0 -1
  193. package/dist/exec-B3eleY5O.js +0 -1
  194. package/dist/exec-DHqLtFYt.js +0 -1
  195. package/dist/exec-approvals-BXO9Cezj.js +0 -1
  196. package/dist/exec-approvals-BpBNEy6i.js +0 -1
  197. package/dist/exec-approvals-allowlist-B-Yf6RsU.js +0 -1
  198. package/dist/exec-approvals-allowlist-CGjRWREs.js +0 -1
  199. package/dist/exec-approvals-cli-BokGzWFo.js +0 -1
  200. package/dist/exec-approvals-cli-CsUGu6m3.js +0 -1
  201. package/dist/exec-safe-bin-runtime-policy-CRPHdPbF.js +0 -1
  202. package/dist/exec-safe-bin-runtime-policy-v44u39fl.js +0 -1
  203. package/dist/fetch-B4bz67_N.js +0 -1
  204. package/dist/fetch-BJT3BrkJ.js +0 -1
  205. package/dist/fetch-Bn0mWg6a.js +0 -1
  206. package/dist/fetch-Ce-scEU-.js +0 -1
  207. package/dist/fetch-D0rZDHKO.js +0 -1
  208. package/dist/fetch-D5wrJ0AX.js +0 -1
  209. package/dist/fetch-DBat25iG.js +0 -1
  210. package/dist/fetch-DHo17YmK.js +0 -1
  211. package/dist/fetch-Dh-apy46.js +0 -1
  212. package/dist/fetch-Dikjvc5M.js +0 -1
  213. package/dist/fetch-DsjPfQlp.js +0 -1
  214. package/dist/fetch-_g8lZ8K8.js +0 -1
  215. package/dist/fetch-guard-7BAwnP4a.js +0 -1
  216. package/dist/fetch-guard-DaZmvp-L.js +0 -1
  217. package/dist/fetch-guard-DvaNcypz.js +0 -1
  218. package/dist/fetch-guard-oWKGrwV4.js +0 -1
  219. package/dist/fetch-hy0JKSsm.js +0 -1
  220. package/dist/fetch-timeout-CdYxWG9w.js +0 -1
  221. package/dist/fetch-timeout-Cj8_oAls.js +0 -1
  222. package/dist/fetch-timeout-DoOI_izT.js +0 -1
  223. package/dist/fetch-timeout-u8g99Ax0.js +0 -1
  224. package/dist/format-Bn1bwJKX.js +0 -1
  225. package/dist/format-Ce7I7s-k.js +0 -1
  226. package/dist/format-duration-C8AzNqKh.js +0 -1
  227. package/dist/format-duration-D5AMtmHa.js +0 -1
  228. package/dist/format-relative-B9pSIdGe.js +0 -1
  229. package/dist/format-relative-DkMjYy7z.js +0 -1
  230. package/dist/frontmatter-BkZkwkVO.js +0 -1
  231. package/dist/frontmatter-C7mzDNxd.js +0 -1
  232. package/dist/frontmatter-CzpfPBFl.js +0 -1
  233. package/dist/{gateway-cli-DBjTjdhJ.js → gateway-cli-BMmU2dsG.js} +1 -2
  234. package/dist/{gateway-cli-B-AX4-uD.js → gateway-cli-Kp-caOwI.js} +1 -2
  235. package/dist/gateway-install-token-Dt7hDXoR.js +0 -1
  236. package/dist/gateway-install-token-cSJrfU_1.js +0 -1
  237. package/dist/gateway-rpc-C78PzdZR.js +0 -1
  238. package/dist/gateway-rpc-CecloWA1.js +0 -1
  239. package/dist/github-copilot-token-C79yeDKS.js +0 -1
  240. package/dist/github-copilot-token-DGYAlOmV.js +0 -1
  241. package/dist/github-copilot-token-DePP-lIf.js +0 -1
  242. package/dist/github-copilot-token-wm6mbypz.js +0 -1
  243. package/dist/gmail-setup-utils-CYOH3zzx.js +0 -1
  244. package/dist/gmail-setup-utils-S-MyEGuj.js +0 -1
  245. package/dist/group-access-BHKVOhrj.js +0 -1
  246. package/dist/group-access-D2DOYMfr.js +0 -1
  247. package/dist/health-B_-ZE5FK.js +0 -1
  248. package/dist/health-CIZFVJEG.js +0 -1
  249. package/dist/health-format-B1nj3Wfn.js +0 -1
  250. package/dist/health-format-VBr6LEpt.js +0 -1
  251. package/dist/heartbeat-visibility-BQ_esv2m.js +0 -1
  252. package/dist/heartbeat-visibility-q74UdY8O.js +0 -1
  253. package/dist/help-format-B4aEI7V9.js +0 -1
  254. package/dist/help-format-BRbF_INg.js +0 -1
  255. package/dist/helpers-COz1ghcB.js +0 -1
  256. package/dist/helpers-Cp8gcO6u.js +0 -1
  257. package/dist/hooks-cli-BoxAnC-E.js +0 -1
  258. package/dist/hooks-cli-CnCOjVv0.js +0 -1
  259. package/dist/hooks-status-BHt-Xvh4.js +0 -1
  260. package/dist/hooks-status-CRJ4J0ZW.js +0 -1
  261. package/dist/image-BBO-0uLG.js +0 -1
  262. package/dist/image-BP1cfEh1.js +0 -1
  263. package/dist/image-BVbOr9yV.js +0 -1
  264. package/dist/image-CcsuUB1B.js +0 -1
  265. package/dist/index.js +1 -2
  266. package/dist/inspect-BKV-I1UE.js +0 -1
  267. package/dist/inspect-z59cgmYc.js +0 -1
  268. package/dist/install-safe-path-C6kc_8NW.js +0 -1
  269. package/dist/install-safe-path-iesxijn2.js +0 -1
  270. package/dist/installs-CKzq-YqL.js +0 -1
  271. package/dist/installs-DzSskdtJ.js +0 -1
  272. package/dist/ipv4-B05QVStj.js +0 -1
  273. package/dist/ipv4-SeeyR-DH.js +0 -1
  274. package/dist/ir-B7mdG27k.js +0 -1
  275. package/dist/ir-BTfsA9Dd.js +0 -1
  276. package/dist/ir-CNTx85qV.js +0 -1
  277. package/dist/ir-DdjufzKF.js +0 -1
  278. package/dist/is-main-DG5ueqhF.js +0 -1
  279. package/dist/issue-format-BtMzMXtZ.js +0 -1
  280. package/dist/issue-format-CN9PHzXY.js +0 -1
  281. package/dist/kill-tree-D6nPx1_o.js +0 -1
  282. package/dist/lifecycle-core-B1nrgJCw.js +0 -1
  283. package/dist/lifecycle-core-D_LWJeD_.js +0 -1
  284. package/dist/line/accounts.js +0 -1
  285. package/dist/line/send.js +0 -1
  286. package/dist/line/template-messages.js +0 -1
  287. package/dist/links-CBnmRP9D.js +0 -1
  288. package/dist/links-CySwdMcF.js +0 -1
  289. package/dist/llm-slug-generator.js +0 -1
  290. package/dist/load-options-BsOW74dp.js +0 -1
  291. package/dist/load-options-C7dLuybp.js +0 -1
  292. package/dist/load-options-DV4j6Aqb.js +0 -1
  293. package/dist/load-options-Dwt0CeEg.js +0 -1
  294. package/dist/local-roots-aA-4ohTq.js +0 -1
  295. package/dist/logger-5W0OocJW.js +0 -1
  296. package/dist/logger-Bl8URnrW.js +0 -1
  297. package/dist/logger-DwWqfo66.js +0 -1
  298. package/dist/logger-kQAOe3qp.js +0 -1
  299. package/dist/logging-B7XHbCNn.js +0 -1
  300. package/dist/logging-CbMVr2MA.js +0 -1
  301. package/dist/login-BGLWiksP.js +0 -1
  302. package/dist/login-CcYeF5T_.js +0 -1
  303. package/dist/login-DSZdCiDx.js +0 -1
  304. package/dist/login-DWZzj-P1.js +0 -1
  305. package/dist/login-qr-BGpGVMES.js +0 -1
  306. package/dist/login-qr-BUdgvi3v.js +0 -1
  307. package/dist/login-qr-Bx8skPB-.js +0 -1
  308. package/dist/login-qr-DYUCmP-W.js +0 -1
  309. package/dist/login-qr-_79eoRb4.js +0 -1
  310. package/dist/logs-cli-C52caOop.js +0 -1
  311. package/dist/logs-cli-Ch50TE-J.js +0 -1
  312. package/dist/manager-CI6O4QH6.js +0 -1
  313. package/dist/manager-CN_rQm1L.js +0 -1
  314. package/dist/manager-CxZRoQkE.js +0 -1
  315. package/dist/manager-iFi--Fru.js +0 -1
  316. package/dist/memory-cli-BouV_wyL.js +0 -1
  317. package/dist/memory-cli-C8fBBPgv.js +0 -1
  318. package/dist/model-catalog-D-hkNWin.js +0 -1
  319. package/dist/model-catalog-mt0IcDfR.js +0 -1
  320. package/dist/model-param-b-B0r2cPDw.js +0 -1
  321. package/dist/model-param-b-BqIr5rY5.js +0 -1
  322. package/dist/model-picker-BB0Zdvyu.js +0 -1
  323. package/dist/model-picker-DeiWyW0N.js +0 -1
  324. package/dist/model-selection-BLbnMb5E.js +0 -1
  325. package/dist/model-selection-D7mdJmGK.js +0 -1
  326. package/dist/model-selection-DvekK9rZ.js +0 -1
  327. package/dist/models-BBYqej07.js +0 -1
  328. package/dist/models-cli-CMMhnlHo.js +0 -1
  329. package/dist/models-cli-CqbDyDn2.js +0 -1
  330. package/dist/models-config-BlQ39qlq.js +0 -1
  331. package/dist/models-config-DZzS67GS.js +0 -1
  332. package/dist/mutable-allowlist-detectors-C4rNVag8.js +0 -1
  333. package/dist/mutable-allowlist-detectors-CL0qe54J.js +0 -1
  334. package/dist/node-cli-Bzu1efMB.js +0 -1
  335. package/dist/node-cli-Dv-Eib4o.js +0 -1
  336. package/dist/node-command-policy-D9yZu9zq.js +0 -1
  337. package/dist/node-command-policy-DyWp3Bjz.js +0 -1
  338. package/dist/node-commands-8GBOiktk.js +0 -1
  339. package/dist/node-commands-DdkziOTx.js +0 -1
  340. package/dist/node-resolve-B3BJbmQX.js +0 -1
  341. package/dist/node-resolve-DLZf3-1V.js +0 -1
  342. package/dist/node-service-BRfrNp8l.js +0 -1
  343. package/dist/node-service-C0bl7jcZ.js +0 -1
  344. package/dist/node-shell-BVZylVP6.js +0 -1
  345. package/dist/nodes-cli-B3aNQG30.js +0 -1
  346. package/dist/nodes-cli-DzO6PSFw.js +0 -1
  347. package/dist/nodes-screen-8nRBsfID.js +0 -1
  348. package/dist/note-D4GAwgha.js +0 -1
  349. package/dist/note-Dp-d_utk.js +0 -1
  350. package/dist/npm-pack-install-B23L-AtF.js +0 -1
  351. package/dist/npm-pack-install-C0te3Oap.js +0 -1
  352. package/dist/npm-resolution--_-0q2ks.js +0 -1
  353. package/dist/npm-resolution-CBlwQq3a.js +0 -1
  354. package/dist/oauth-env-DAamJ1oz.js +0 -1
  355. package/dist/oauth-env-DSLBTWb1.js +0 -1
  356. package/dist/oauth-tls-preflight-BSBRDIfC.js +0 -1
  357. package/dist/oauth-tls-preflight-ByNjbUR5.js +0 -1
  358. package/dist/ollama-setup-CGuyH3Ey.js +0 -1
  359. package/dist/ollama-setup-LVRPefmV.js +0 -1
  360. package/dist/{onboard-DMmLqys5.js → onboard-DZG0HnuP.js} +1 -2
  361. package/dist/{onboard-C2Ofvb_A.js → onboard-DlCEww7K.js} +1 -2
  362. package/dist/onboard-channels-BDMtq3ex.js +0 -1
  363. package/dist/onboard-channels-BO3AN_eA.js +0 -1
  364. package/dist/onboard-config-B7U20YRw.js +0 -1
  365. package/dist/onboard-config-DS9dUv8M.js +0 -1
  366. package/dist/onboard-custom--OylwoHQ.js +0 -1
  367. package/dist/onboard-custom-_Df_ciX2.js +0 -1
  368. package/dist/onboard-helpers-D90u4wVK.js +0 -1
  369. package/dist/onboard-helpers-DOlI17Ac.js +0 -1
  370. package/dist/onboard-hooks-CERzXObm.js +0 -1
  371. package/dist/onboard-hooks-gQ3sxBNi.js +0 -1
  372. package/dist/onboard-provider-auth-flags-CqbipO7D.js +0 -1
  373. package/dist/onboard-provider-auth-flags-Dvwzdz37.js +0 -1
  374. package/dist/onboard-remote-B1-SlmUN.js +0 -1
  375. package/dist/onboard-remote-C7Eg49Uf.js +0 -1
  376. package/dist/onboard-search-f2tJD4hg.js +0 -1
  377. package/dist/onboard-search-fslKKhyg.js +0 -1
  378. package/dist/onboard-skills-DCgTr6hW.js +0 -1
  379. package/dist/onboard-skills-_TBzISd2.js +0 -1
  380. package/dist/{onboarding-C82cKKNI.js → onboarding-CxRTJCBM.js} +1 -2
  381. package/dist/{onboarding-M80apW9t.js → onboarding-m-m__16h.js} +1 -2
  382. package/dist/{onboarding.finalize-D9nrrI1J.js → onboarding.finalize-BJxMhYUa.js} +1 -2
  383. package/dist/{onboarding.finalize-CVvwI1Qg.js → onboarding.finalize-UiX3YmbI.js} +1 -2
  384. package/dist/onboarding.gateway-config-CXjzrfwL.js +0 -1
  385. package/dist/onboarding.gateway-config-TSq70E-S.js +0 -1
  386. package/dist/onboarding.secret-input-BSmFS1Px.js +0 -1
  387. package/dist/onboarding.secret-input-CUD0t7Pk.js +0 -1
  388. package/dist/openai-codex-model-default-Bx8i3bOg.js +0 -1
  389. package/dist/openai-codex-model-default-DuRfnfUm.js +0 -1
  390. package/dist/openai-model-default-Bm9b0oR0.js +0 -1
  391. package/dist/openai-model-default-KMCphvoO.js +0 -1
  392. package/dist/openclaw-exec-env-BWbOu_YC.js +0 -1
  393. package/dist/openclaw-root-CnsBf6ZU.js +0 -1
  394. package/dist/openclaw-root-D_0Q6--h.js +0 -1
  395. package/dist/outbound-BevYwvMh.js +0 -1
  396. package/dist/outbound-CqDxMWLZ.js +0 -1
  397. package/dist/outbound-DmwQEFu0.js +0 -1
  398. package/dist/outbound-attachment-9-8VNvRG.js +0 -1
  399. package/dist/outbound-attachment-Bah4dvuM.js +0 -1
  400. package/dist/outbound-attachment-CVcDBkAD.js +0 -1
  401. package/dist/outbound-attachment-E89zumcH.js +0 -1
  402. package/dist/outbound-xlG_RqEu.js +0 -1
  403. package/dist/pairing-cli-ByPhOBWo.js +0 -1
  404. package/dist/pairing-cli-CxJy8LPo.js +0 -1
  405. package/dist/pairing-labels-CZ-aX-up.js +0 -1
  406. package/dist/pairing-labels-PIuZfthz.js +0 -1
  407. package/dist/pairing-store-BaaVy1zB.js +0 -1
  408. package/dist/pairing-store-EmfFQVcs.js +0 -1
  409. package/dist/pairing-token-B8RdfK2y.js +0 -1
  410. package/dist/pairing-token-zdbQ951y.js +0 -1
  411. package/dist/parse-duration-XTjMKl8s.js +0 -1
  412. package/dist/parse-finite-number-DqzUM-_s.js +0 -1
  413. package/dist/parse-finite-number-dBmDLLKL.js +0 -1
  414. package/dist/parse-log-line-CsYLg7Qu.js +0 -1
  415. package/dist/parse-log-line-NV-cipB_.js +0 -1
  416. package/dist/parse-port-Bv1Y9Wk5.js +0 -1
  417. package/dist/parse-port-JVwkxcZ8.js +0 -1
  418. package/dist/parse-timeout-DWSGfCkQ.js +0 -1
  419. package/dist/parse-timeout-Dx4QnVzo.js +0 -1
  420. package/dist/path-alias-guards-kY_ZbWs-.js +0 -1
  421. package/dist/path-alias-guards-mvyLCPlN.js +0 -1
  422. package/dist/path-env-BPd1Yd-i.js +0 -1
  423. package/dist/path-env-emdAQejM.js +0 -1
  424. package/dist/path-safety-BukYK8Kd.js +0 -1
  425. package/dist/path-safety-DaaMJFdt.js +0 -1
  426. package/dist/paths-B4IRk3wi.js +0 -1
  427. package/dist/paths-BfjJY2VL.js +0 -1
  428. package/dist/paths-BjD3T_xq.js +0 -1
  429. package/dist/paths-BpQOWYiT.js +0 -1
  430. package/dist/paths-CChBdtE8.js +0 -1
  431. package/dist/paths-CrCoPIVK.js +0 -1
  432. package/dist/paths-piJASC5k.js +0 -1
  433. package/dist/paths-yLEk_25I.js +0 -1
  434. package/dist/pi-embedded-6yGEd2xd.js +0 -1
  435. package/dist/pi-embedded-X_Svd4Wi.js +0 -1
  436. package/dist/pi-model-discovery-BPkhPDMr.js +0 -1
  437. package/dist/pi-model-discovery-BonZ1N3x.js +0 -1
  438. package/dist/pi-model-discovery-DVKXkQTR.js +0 -1
  439. package/dist/pi-model-discovery-DnJkNRc-.js +0 -1
  440. package/dist/pi-tools.before-tool-call.runtime-2-IJ8xox.js +0 -1
  441. package/dist/pi-tools.before-tool-call.runtime-CNesNgq0.js +0 -1
  442. package/dist/pi-tools.before-tool-call.runtime-CmtITCPP.js +0 -1
  443. package/dist/pi-tools.before-tool-call.runtime-VUjwIYJ7.js +0 -1
  444. package/dist/pi-tools.policy-B6q8YOfg.js +0 -1
  445. package/dist/plugin-auto-enable-CTgkkJK7.js +0 -1
  446. package/dist/plugin-auto-enable-adba5Evb.js +0 -1
  447. package/dist/plugin-install-plan-BmyB3dR1.js +0 -1
  448. package/dist/plugin-install-plan-sIOiMBS1.js +0 -1
  449. package/dist/plugin-registry-CN2aCPP7.js +0 -1
  450. package/dist/plugin-registry-DYwEy5eM.js +0 -1
  451. package/dist/plugin-sdk/account-id.cjs +0 -1
  452. package/dist/plugin-sdk/account-id.js +0 -1
  453. package/dist/plugin-sdk/acpx.cjs +0 -1
  454. package/dist/plugin-sdk/acpx.js +0 -1
  455. package/dist/plugin-sdk/active-listener-B1sd5Yrr.cjs +0 -1
  456. package/dist/plugin-sdk/active-listener-CVvtj4nc.cjs +0 -1
  457. package/dist/plugin-sdk/active-listener-D0Pag-jN.js +0 -1
  458. package/dist/plugin-sdk/active-listener-DIzG1nGC.js +0 -1
  459. package/dist/plugin-sdk/active-listener-DUT4_v5r.cjs +0 -1
  460. package/dist/plugin-sdk/active-listener-D_Cq4Tuy.cjs +0 -1
  461. package/dist/plugin-sdk/active-listener-HBuXCjdG.js +0 -1
  462. package/dist/plugin-sdk/active-listener-V7whA3d_.js +0 -1
  463. package/dist/plugin-sdk/active-listener-YOWDFFGG.js +0 -1
  464. package/dist/plugin-sdk/active-listener-kJidH-KZ.js +0 -1
  465. package/dist/plugin-sdk/active-listener-kmJHqUWY.cjs +0 -1
  466. package/dist/plugin-sdk/active-listener-vpxSd-kW.cjs +0 -1
  467. package/dist/plugin-sdk/api-key-rotation-BEhJdmXN.cjs +0 -1
  468. package/dist/plugin-sdk/api-key-rotation-BcDAQISn.js +0 -1
  469. package/dist/plugin-sdk/api-key-rotation-Bua813IH.cjs +0 -1
  470. package/dist/plugin-sdk/api-key-rotation-C7_ooC3N.js +0 -1
  471. package/dist/plugin-sdk/api-key-rotation-CiFfWYgL.js +0 -1
  472. package/dist/plugin-sdk/api-key-rotation-CrVpqlS6.cjs +0 -1
  473. package/dist/plugin-sdk/api-key-rotation-D-zSLAf_.cjs +0 -1
  474. package/dist/plugin-sdk/api-key-rotation-DInDOH-A.js +0 -1
  475. package/dist/plugin-sdk/api-key-rotation-DKp72Rw4.cjs +0 -1
  476. package/dist/plugin-sdk/api-key-rotation-YRRtbk9Y.cjs +0 -1
  477. package/dist/plugin-sdk/api-key-rotation-tVSHRH8D.js +0 -1
  478. package/dist/plugin-sdk/api-key-rotation-ta953lKF.js +0 -1
  479. package/dist/plugin-sdk/audio-preflight-5ZbcO1qy.js +0 -1
  480. package/dist/plugin-sdk/audio-preflight-BrAX9j6r.js +0 -1
  481. package/dist/plugin-sdk/audio-preflight-C2NpU5hR.cjs +0 -1
  482. package/dist/plugin-sdk/audio-preflight-CtWGsCje.js +0 -1
  483. package/dist/plugin-sdk/audio-preflight-CwjNHDro.cjs +0 -1
  484. package/dist/plugin-sdk/audio-preflight-D22cCCmn.js +0 -1
  485. package/dist/plugin-sdk/audio-preflight-DyK2q8OQ.cjs +0 -1
  486. package/dist/plugin-sdk/audio-preflight-F7lfchEO.cjs +0 -1
  487. package/dist/plugin-sdk/audio-preflight-ItHD-3bi.js +0 -1
  488. package/dist/plugin-sdk/audio-preflight-QWsN9gcK.cjs +0 -1
  489. package/dist/plugin-sdk/audio-preflight-k7Qt2rDs.cjs +0 -1
  490. package/dist/plugin-sdk/audio-preflight-wcMT_iUA.js +0 -1
  491. package/dist/plugin-sdk/audio-transcription-runner-B3bLoVvU.js +0 -1
  492. package/dist/plugin-sdk/audio-transcription-runner-BDfW3xeJ.cjs +0 -1
  493. package/dist/plugin-sdk/audio-transcription-runner-BZLASCWO.cjs +0 -1
  494. package/dist/plugin-sdk/audio-transcription-runner-CiRKTRED.cjs +0 -1
  495. package/dist/plugin-sdk/audio-transcription-runner-Cxs7u0B3.cjs +0 -1
  496. package/dist/plugin-sdk/audio-transcription-runner-D2IxJCfd.cjs +0 -1
  497. package/dist/plugin-sdk/audio-transcription-runner-DA6TwXrV.cjs +0 -1
  498. package/dist/plugin-sdk/audio-transcription-runner-DZIEX1Rl.js +0 -1
  499. package/dist/plugin-sdk/audio-transcription-runner-DZRGn6-f.js +0 -1
  500. package/dist/plugin-sdk/audio-transcription-runner-Dc-WF6zu.js +0 -1
  501. package/dist/plugin-sdk/audio-transcription-runner-DuBgVmcT.js +0 -1
  502. package/dist/plugin-sdk/audio-transcription-runner-nKI1rQ0R.js +0 -1
  503. package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +0 -1
  504. package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +0 -1
  505. package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +0 -1
  506. package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +0 -1
  507. package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +0 -1
  508. package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +0 -1
  509. package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +0 -1
  510. package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +0 -1
  511. package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +0 -1
  512. package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +0 -1
  513. package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +0 -1
  514. package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +0 -1
  515. package/dist/plugin-sdk/bluebubbles.cjs +0 -1
  516. package/dist/plugin-sdk/bluebubbles.js +0 -1
  517. package/dist/plugin-sdk/channel-activity--Ax2m0qQ.js +0 -1
  518. package/dist/plugin-sdk/channel-activity-BCsNxxNa.js +0 -1
  519. package/dist/plugin-sdk/channel-activity-BUieXBdg.cjs +0 -1
  520. package/dist/plugin-sdk/channel-activity-BXffAklf.js +0 -1
  521. package/dist/plugin-sdk/channel-activity-BlYTUiU4.js +0 -1
  522. package/dist/plugin-sdk/channel-activity-Bm-pvlXw.cjs +0 -1
  523. package/dist/plugin-sdk/channel-activity-Bnai3H2M.js +0 -1
  524. package/dist/plugin-sdk/channel-activity-CC3JLAxD.cjs +0 -1
  525. package/dist/plugin-sdk/channel-activity-CTmfXwYn.cjs +0 -1
  526. package/dist/plugin-sdk/channel-activity-D98aY9ZF.js +0 -1
  527. package/dist/plugin-sdk/channel-activity-DymcGybX.cjs +0 -1
  528. package/dist/plugin-sdk/channel-activity-gZBQEyOK.cjs +0 -1
  529. package/dist/plugin-sdk/channel-web-B795Ild9.cjs +0 -1
  530. package/dist/plugin-sdk/channel-web-Bg8DNyeb.js +0 -1
  531. package/dist/plugin-sdk/channel-web-CW42ALB5.cjs +0 -1
  532. package/dist/plugin-sdk/channel-web-D5zxPW-x.js +0 -1
  533. package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +0 -1
  534. package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +0 -1
  535. package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +0 -1
  536. package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +0 -1
  537. package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +0 -1
  538. package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +0 -1
  539. package/dist/plugin-sdk/commands-registry-BIGWymiv.cjs +0 -1
  540. package/dist/plugin-sdk/commands-registry-Bnadsir-.cjs +0 -1
  541. package/dist/plugin-sdk/commands-registry-C1Gb98lg.js +0 -1
  542. package/dist/plugin-sdk/commands-registry-CZcNTwNs.js +0 -1
  543. package/dist/plugin-sdk/commands-registry-CeJQPXIR.js +0 -1
  544. package/dist/plugin-sdk/commands-registry-CehvtLBA.js +0 -1
  545. package/dist/plugin-sdk/commands-registry-Cf8DaBmw.js +0 -1
  546. package/dist/plugin-sdk/commands-registry-Cfv6gDoQ.cjs +0 -1
  547. package/dist/plugin-sdk/commands-registry-D734s8r7.js +0 -1
  548. package/dist/plugin-sdk/commands-registry-DWx89vtR.cjs +0 -1
  549. package/dist/plugin-sdk/commands-registry-DviWu8J8.cjs +0 -1
  550. package/dist/plugin-sdk/commands-registry-wA0CkHGk.cjs +0 -1
  551. package/dist/plugin-sdk/common-BJ0tHoNJ.cjs +0 -1
  552. package/dist/plugin-sdk/common-CxLmdAIn.js +0 -1
  553. package/dist/plugin-sdk/compat.cjs +0 -1
  554. package/dist/plugin-sdk/compat.js +0 -1
  555. package/dist/plugin-sdk/config-C2-9m5-M.cjs +0 -1
  556. package/dist/plugin-sdk/config-Cx3SFBFW.js +0 -1
  557. package/dist/plugin-sdk/copilot-proxy.cjs +0 -1
  558. package/dist/plugin-sdk/copilot-proxy.js +0 -1
  559. package/dist/plugin-sdk/core.cjs +0 -1
  560. package/dist/plugin-sdk/core.js +0 -1
  561. package/dist/plugin-sdk/deliver--pOntbRC.cjs +0 -1
  562. package/dist/plugin-sdk/deliver-BLMe2eBS.js +0 -1
  563. package/dist/plugin-sdk/deliver-BcHzZPc2.js +0 -1
  564. package/dist/plugin-sdk/deliver-CSGTRHt1.js +0 -1
  565. package/dist/plugin-sdk/deliver-Cm8yUsWK.cjs +0 -1
  566. package/dist/plugin-sdk/deliver-DQDZRjZ0.js +0 -1
  567. package/dist/plugin-sdk/deliver-DRintVMn.js +0 -1
  568. package/dist/plugin-sdk/deliver-DehGdLxT.js +0 -1
  569. package/dist/plugin-sdk/deliver-EThzALwn.cjs +0 -1
  570. package/dist/plugin-sdk/deliver-d7VfVmTa.cjs +0 -1
  571. package/dist/plugin-sdk/deliver-rACJj8E9.cjs +0 -1
  572. package/dist/plugin-sdk/deliver-wteCze09.cjs +0 -1
  573. package/dist/plugin-sdk/device-pair.cjs +0 -1
  574. package/dist/plugin-sdk/device-pair.js +0 -1
  575. package/dist/plugin-sdk/diagnostic-BcBlExSy.cjs +0 -1
  576. package/dist/plugin-sdk/diagnostic-Bmp3zWQp.cjs +0 -1
  577. package/dist/plugin-sdk/diagnostic-BvrdTMl3.js +0 -1
  578. package/dist/plugin-sdk/diagnostic-C2jKFixS.cjs +0 -1
  579. package/dist/plugin-sdk/diagnostic-CSfBcIOI.js +0 -1
  580. package/dist/plugin-sdk/diagnostic-CYR5dxDE.cjs +0 -1
  581. package/dist/plugin-sdk/diagnostic-CdNZNyNv.cjs +0 -1
  582. package/dist/plugin-sdk/diagnostic-DE5k6C1E.js +0 -1
  583. package/dist/plugin-sdk/diagnostic-DMpxa640.cjs +0 -1
  584. package/dist/plugin-sdk/diagnostic-DSgf5Z4H.js +0 -1
  585. package/dist/plugin-sdk/diagnostic-DbRdunVt.js +0 -1
  586. package/dist/plugin-sdk/diagnostic-zCrcFAbJ.js +0 -1
  587. package/dist/plugin-sdk/diagnostics-otel.cjs +0 -1
  588. package/dist/plugin-sdk/diagnostics-otel.js +0 -1
  589. package/dist/plugin-sdk/diffs.cjs +0 -1
  590. package/dist/plugin-sdk/diffs.js +0 -1
  591. package/dist/plugin-sdk/discord.cjs +0 -1
  592. package/dist/plugin-sdk/discord.js +0 -1
  593. package/dist/plugin-sdk/dispatch-B13B2T1k.js +0 -1
  594. package/dist/plugin-sdk/dispatch-BaBcLOry.js +0 -1
  595. package/dist/plugin-sdk/dispatch-BlOkbw2U.js +0 -1
  596. package/dist/plugin-sdk/dispatch-D2Km7gvG.cjs +0 -1
  597. package/dist/plugin-sdk/dispatch-DAaOM5c1.cjs +0 -1
  598. package/dist/plugin-sdk/dispatch-DYRrW05S.js +0 -1
  599. package/dist/plugin-sdk/dispatch-Dap2ZPC9.js +0 -1
  600. package/dist/plugin-sdk/dispatch-Dl0eaYcY.cjs +0 -1
  601. package/dist/plugin-sdk/dispatch-_tJF5hSh.cjs +0 -1
  602. package/dist/plugin-sdk/dispatch-cPg1rBWu.cjs +0 -1
  603. package/dist/plugin-sdk/feishu.cjs +0 -1
  604. package/dist/plugin-sdk/feishu.js +0 -1
  605. package/dist/plugin-sdk/fetch-7Iq9POda.js +0 -1
  606. package/dist/plugin-sdk/fetch-B1GR6-u4.js +0 -1
  607. package/dist/plugin-sdk/fetch-B27H-XCf.js +0 -1
  608. package/dist/plugin-sdk/fetch-BMYDLRWo.js +0 -1
  609. package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +0 -1
  610. package/dist/plugin-sdk/fetch-BVEVk5YF.js +0 -1
  611. package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +0 -1
  612. package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +0 -1
  613. package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +0 -1
  614. package/dist/plugin-sdk/fetch-BtZY623f.js +0 -1
  615. package/dist/plugin-sdk/fetch-C-HRWp5R.js +0 -1
  616. package/dist/plugin-sdk/fetch-C3LEMysf.js +0 -1
  617. package/dist/plugin-sdk/fetch-CCLWsYaQ.js +0 -1
  618. package/dist/plugin-sdk/fetch-CZewCAvu.cjs +0 -1
  619. package/dist/plugin-sdk/fetch-ClKErpni.cjs +0 -1
  620. package/dist/plugin-sdk/fetch-DBRI0sKI.js +0 -1
  621. package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +0 -1
  622. package/dist/plugin-sdk/fetch-DUMEaqum.cjs +0 -1
  623. package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +0 -1
  624. package/dist/plugin-sdk/fetch-J0IzopiJ.js +0 -1
  625. package/dist/plugin-sdk/fetch-guard-7tObWdgY.cjs +0 -1
  626. package/dist/plugin-sdk/fetch-guard-ACKeLHgB.js +0 -1
  627. package/dist/plugin-sdk/fetch-guard-BI5z5sCg.cjs +0 -1
  628. package/dist/plugin-sdk/fetch-guard-BUOtcki7.cjs +0 -1
  629. package/dist/plugin-sdk/fetch-guard-BZi5e63X.js +0 -1
  630. package/dist/plugin-sdk/fetch-guard-CVnIQ0nI.cjs +0 -1
  631. package/dist/plugin-sdk/fetch-guard-DKS4LY4o.js +0 -1
  632. package/dist/plugin-sdk/fetch-guard-DcAQBHbg.cjs +0 -1
  633. package/dist/plugin-sdk/fetch-guard-Dj-DlPBS.cjs +0 -1
  634. package/dist/plugin-sdk/fetch-guard-Dm1nAvhl.js +0 -1
  635. package/dist/plugin-sdk/fetch-guard-GfhPo1Fa.js +0 -1
  636. package/dist/plugin-sdk/fetch-guard-nFWUH1s9.js +0 -1
  637. package/dist/plugin-sdk/fetch-lw-aF17e.cjs +0 -1
  638. package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +0 -1
  639. package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +0 -1
  640. package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +0 -1
  641. package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +0 -1
  642. package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +0 -1
  643. package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +0 -1
  644. package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +0 -1
  645. package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +0 -1
  646. package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +0 -1
  647. package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +0 -1
  648. package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +0 -1
  649. package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +0 -1
  650. package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +0 -1
  651. package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +0 -1
  652. package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +0 -1
  653. package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +0 -1
  654. package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +0 -1
  655. package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +0 -1
  656. package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +0 -1
  657. package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +0 -1
  658. package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +0 -1
  659. package/dist/plugin-sdk/google-gemini-cli-auth.cjs +0 -1
  660. package/dist/plugin-sdk/google-gemini-cli-auth.js +0 -1
  661. package/dist/plugin-sdk/googlechat.cjs +0 -1
  662. package/dist/plugin-sdk/googlechat.js +0 -1
  663. package/dist/plugin-sdk/image-BLG2OrjE.cjs +0 -1
  664. package/dist/plugin-sdk/image-BPUmI-kx.cjs +0 -1
  665. package/dist/plugin-sdk/image-Bt_w0o87.js +0 -1
  666. package/dist/plugin-sdk/image-CMeyJO2-.js +0 -1
  667. package/dist/plugin-sdk/image-CMiT6Fvk.cjs +0 -1
  668. package/dist/plugin-sdk/image-CNMuTe0Z.js +0 -1
  669. package/dist/plugin-sdk/image-CO9zxV0G.js +0 -1
  670. package/dist/plugin-sdk/image-CjVyB61p.cjs +0 -1
  671. package/dist/plugin-sdk/image-CkWikcPf.cjs +0 -1
  672. package/dist/plugin-sdk/image-Dk2gzO1U.js +0 -1
  673. package/dist/plugin-sdk/image-Jmj-a1pv.js +0 -1
  674. package/dist/plugin-sdk/image-UKq4Bn2r.cjs +0 -1
  675. package/dist/plugin-sdk/imessage.cjs +0 -1
  676. package/dist/plugin-sdk/imessage.js +0 -1
  677. package/dist/plugin-sdk/index.cjs +0 -1
  678. package/dist/plugin-sdk/index.js +0 -1
  679. package/dist/plugin-sdk/ir-Bg_avpt0.cjs +0 -1
  680. package/dist/plugin-sdk/ir-BiiaNbB9.cjs +0 -1
  681. package/dist/plugin-sdk/ir-CYJPM1_I.cjs +0 -1
  682. package/dist/plugin-sdk/ir-Ca3EdqFl.js +0 -1
  683. package/dist/plugin-sdk/ir-Cl_S_VBR.cjs +0 -1
  684. package/dist/plugin-sdk/ir-Cq7b_9v8.cjs +0 -1
  685. package/dist/plugin-sdk/ir-DcWa7gsX.cjs +0 -1
  686. package/dist/plugin-sdk/ir-DdA08iXJ.js +0 -1
  687. package/dist/plugin-sdk/ir-DqBwrJJd.js +0 -1
  688. package/dist/plugin-sdk/ir-EUD0qDem.js +0 -1
  689. package/dist/plugin-sdk/ir-c1MS26Ci.js +0 -1
  690. package/dist/plugin-sdk/ir-vhCxHELh.js +0 -1
  691. package/dist/plugin-sdk/irc.cjs +0 -1
  692. package/dist/plugin-sdk/irc.js +0 -1
  693. package/dist/plugin-sdk/keyed-async-queue.cjs +0 -1
  694. package/dist/plugin-sdk/keyed-async-queue.js +0 -1
  695. package/dist/plugin-sdk/line.cjs +0 -1
  696. package/dist/plugin-sdk/line.js +0 -1
  697. package/dist/plugin-sdk/llm-task.cjs +0 -1
  698. package/dist/plugin-sdk/llm-task.js +0 -1
  699. package/dist/plugin-sdk/load-options-B9Ss5YOO.js +0 -1
  700. package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +0 -1
  701. package/dist/plugin-sdk/load-options-BXvm8HVv.js +0 -1
  702. package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +0 -1
  703. package/dist/plugin-sdk/load-options-BcSg1ODN.js +0 -1
  704. package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +0 -1
  705. package/dist/plugin-sdk/lobster.cjs +0 -1
  706. package/dist/plugin-sdk/lobster.js +0 -1
  707. package/dist/plugin-sdk/local-roots-2OcKjfzk.js +0 -1
  708. package/dist/plugin-sdk/local-roots-ByrRvVBc.cjs +0 -1
  709. package/dist/plugin-sdk/local-roots-CXPxvx0J.js +0 -1
  710. package/dist/plugin-sdk/local-roots-CzbssMW1.cjs +0 -1
  711. package/dist/plugin-sdk/local-roots-DIijr8mK.cjs +0 -1
  712. package/dist/plugin-sdk/local-roots-DRv9Y_41.cjs +0 -1
  713. package/dist/plugin-sdk/local-roots-DTC7BJct.js +0 -1
  714. package/dist/plugin-sdk/local-roots-DU8RuiRi.js +0 -1
  715. package/dist/plugin-sdk/local-roots-DprQ5M3b.js +0 -1
  716. package/dist/plugin-sdk/local-roots-GqNj3vMl.cjs +0 -1
  717. package/dist/plugin-sdk/local-roots-I2icTm2P.cjs +0 -1
  718. package/dist/plugin-sdk/local-roots-qEhx-D42.js +0 -1
  719. package/dist/plugin-sdk/logger-6O6OsYBL.cjs +0 -1
  720. package/dist/plugin-sdk/logger-BlddiV_d.cjs +0 -1
  721. package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +0 -1
  722. package/dist/plugin-sdk/logger-BtrWb0dj.js +0 -1
  723. package/dist/plugin-sdk/logger-C210xuWx.js +0 -1
  724. package/dist/plugin-sdk/logger-DJGHvDbX.js +0 -1
  725. package/dist/plugin-sdk/logger-DPlqYkRm.cjs +0 -1
  726. package/dist/plugin-sdk/logger-DUYnS-W3.cjs +0 -1
  727. package/dist/plugin-sdk/logger-DwWqfo66.js +0 -1
  728. package/dist/plugin-sdk/logger-vBDTZWl3.js +0 -1
  729. package/dist/plugin-sdk/login-0ui1gfZM.cjs +0 -1
  730. package/dist/plugin-sdk/login-B0lIdwss.cjs +0 -1
  731. package/dist/plugin-sdk/login-B43p990Y.cjs +0 -1
  732. package/dist/plugin-sdk/login-DHBcWg4R.cjs +0 -1
  733. package/dist/plugin-sdk/login-DUCNg4lV.js +0 -1
  734. package/dist/plugin-sdk/login-DqVo92p1.js +0 -1
  735. package/dist/plugin-sdk/login-Dt4KiLgP.js +0 -1
  736. package/dist/plugin-sdk/login-IVBk3GwG.cjs +0 -1
  737. package/dist/plugin-sdk/login-T6tSC1Xl.js +0 -1
  738. package/dist/plugin-sdk/login-XruRHZe5.js +0 -1
  739. package/dist/plugin-sdk/login-p9hWVYO6.cjs +0 -1
  740. package/dist/plugin-sdk/login-qr-B4wf-15u.js +0 -1
  741. package/dist/plugin-sdk/login-qr-BQMm3yV_.cjs +0 -1
  742. package/dist/plugin-sdk/login-qr-BreyhXFQ.cjs +0 -1
  743. package/dist/plugin-sdk/login-qr-C6RPK8ld.js +0 -1
  744. package/dist/plugin-sdk/login-qr-C6cQueYq.js +0 -1
  745. package/dist/plugin-sdk/login-qr-CxznBK7s.cjs +0 -1
  746. package/dist/plugin-sdk/login-qr-D0dmb3Gr.js +0 -1
  747. package/dist/plugin-sdk/login-qr-DWW1FC-n.cjs +0 -1
  748. package/dist/plugin-sdk/login-qr-DjC-P7Vy.cjs +0 -1
  749. package/dist/plugin-sdk/login-qr-KeBTY1Mb.js +0 -1
  750. package/dist/plugin-sdk/login-qr-gQsVZ8en.js +0 -1
  751. package/dist/plugin-sdk/login-qr-xkqmSKC8.cjs +0 -1
  752. package/dist/plugin-sdk/login-x9vN5UnR.js +0 -1
  753. package/dist/plugin-sdk/manager-B38IH03I.cjs +0 -1
  754. package/dist/plugin-sdk/manager-BZVFXygg.cjs +0 -1
  755. package/dist/plugin-sdk/manager-BuNveORY.cjs +0 -1
  756. package/dist/plugin-sdk/manager-C4FEmxjq.cjs +0 -1
  757. package/dist/plugin-sdk/manager-CHnzSMNG.js +0 -1
  758. package/dist/plugin-sdk/manager-CN4wiVFz.js +0 -1
  759. package/dist/plugin-sdk/manager-D9RwKYCX.js +0 -1
  760. package/dist/plugin-sdk/manager-DAmjm61U.cjs +0 -1
  761. package/dist/plugin-sdk/manager-DJSpJkev.js +0 -1
  762. package/dist/plugin-sdk/manager-EO7deQzm.js +0 -1
  763. package/dist/plugin-sdk/manager-vyHAgafh.cjs +0 -1
  764. package/dist/plugin-sdk/manager-zyDhj7B-.js +0 -1
  765. package/dist/plugin-sdk/matrix.cjs +0 -1
  766. package/dist/plugin-sdk/matrix.js +0 -1
  767. package/dist/plugin-sdk/mattermost.cjs +0 -1
  768. package/dist/plugin-sdk/mattermost.js +0 -1
  769. package/dist/plugin-sdk/memory-core.cjs +0 -1
  770. package/dist/plugin-sdk/memory-core.js +0 -1
  771. package/dist/plugin-sdk/minimax-portal-auth.cjs +0 -1
  772. package/dist/plugin-sdk/minimax-portal-auth.js +0 -1
  773. package/dist/plugin-sdk/model-auth-1RA9nkQH.js +0 -1
  774. package/dist/plugin-sdk/model-auth-Cgqd2_sP.cjs +0 -1
  775. package/dist/plugin-sdk/model-auth-Cp2GSJwZ.js +0 -1
  776. package/dist/plugin-sdk/model-auth-Lv74A-Si.cjs +0 -1
  777. package/dist/plugin-sdk/model-auth-RI6NYvTO.js +0 -1
  778. package/dist/plugin-sdk/model-auth-exDkzEDR.js +0 -1
  779. package/dist/plugin-sdk/model-auth-igOM3blS.cjs +0 -1
  780. package/dist/plugin-sdk/model-auth-sjKLUCCz.cjs +0 -1
  781. package/dist/plugin-sdk/model-selection-C9HlFaXF.js +0 -1
  782. package/dist/plugin-sdk/model-selection-DpGE9eNM.cjs +0 -1
  783. package/dist/plugin-sdk/msteams.cjs +0 -1
  784. package/dist/plugin-sdk/msteams.js +0 -1
  785. package/dist/plugin-sdk/nextcloud-talk.cjs +0 -1
  786. package/dist/plugin-sdk/nextcloud-talk.js +0 -1
  787. package/dist/plugin-sdk/nostr.cjs +0 -1
  788. package/dist/plugin-sdk/nostr.js +0 -1
  789. package/dist/plugin-sdk/outbound-BO0tyeUH.js +0 -1
  790. package/dist/plugin-sdk/outbound-BYU5HTrX.js +0 -1
  791. package/dist/plugin-sdk/outbound-CBVlxGRf.cjs +0 -1
  792. package/dist/plugin-sdk/outbound-CTyu_gZh.js +0 -1
  793. package/dist/plugin-sdk/outbound-CwWXHNwp.cjs +0 -1
  794. package/dist/plugin-sdk/outbound-CySyQcmE.js +0 -1
  795. package/dist/plugin-sdk/outbound-DDPxEpHH.cjs +0 -1
  796. package/dist/plugin-sdk/outbound-DZhl7sHt.cjs +0 -1
  797. package/dist/plugin-sdk/outbound-DmeUAXdA.js +0 -1
  798. package/dist/plugin-sdk/outbound-DvFQ_6wQ.cjs +0 -1
  799. package/dist/plugin-sdk/outbound-Dy87UlCV.cjs +0 -1
  800. package/dist/plugin-sdk/outbound-attachment-5H1iYkTb.js +0 -1
  801. package/dist/plugin-sdk/outbound-attachment-BAHrn3r7.cjs +0 -1
  802. package/dist/plugin-sdk/outbound-attachment-BBJPbiLF.cjs +0 -1
  803. package/dist/plugin-sdk/outbound-attachment-BIGvZREF.cjs +0 -1
  804. package/dist/plugin-sdk/outbound-attachment-B_OTB3A8.js +0 -1
  805. package/dist/plugin-sdk/outbound-attachment-C94-r948.js +0 -1
  806. package/dist/plugin-sdk/outbound-attachment-CJatgPbm.js +0 -1
  807. package/dist/plugin-sdk/outbound-attachment-CLUVyl5e.js +0 -1
  808. package/dist/plugin-sdk/outbound-attachment-CTR1-VEH.js +0 -1
  809. package/dist/plugin-sdk/outbound-attachment-CmQ0SNgK.cjs +0 -1
  810. package/dist/plugin-sdk/outbound-attachment-Dbja7LQF.cjs +0 -1
  811. package/dist/plugin-sdk/outbound-attachment-DwzJ2l3T.cjs +0 -1
  812. package/dist/plugin-sdk/outbound-xMr8Xsxe.js +0 -1
  813. package/dist/plugin-sdk/paths-BPlgbwrb.cjs +0 -1
  814. package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +0 -1
  815. package/dist/plugin-sdk/paths-BpQOWYiT.js +0 -1
  816. package/dist/plugin-sdk/paths-BvlJvmRS.cjs +0 -1
  817. package/dist/plugin-sdk/paths-CIcxeNL-.cjs +0 -1
  818. package/dist/plugin-sdk/paths-CXgWvWAM.js +0 -1
  819. package/dist/plugin-sdk/paths-Chp3zwtq.cjs +0 -1
  820. package/dist/plugin-sdk/paths-CnHSNSeR.js +0 -1
  821. package/dist/plugin-sdk/paths-Cqca1YmF.cjs +0 -1
  822. package/dist/plugin-sdk/paths-CtrEseGU.js +0 -1
  823. package/dist/plugin-sdk/paths-D55o_j8-.js +0 -1
  824. package/dist/plugin-sdk/paths-D90l3h_o.cjs +0 -1
  825. package/dist/plugin-sdk/paths-DaRoqzBQ.js +0 -1
  826. package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +0 -1
  827. package/dist/plugin-sdk/paths-DhSjTRMz.js +0 -1
  828. package/dist/plugin-sdk/paths-Do0djuaj.js +0 -1
  829. package/dist/plugin-sdk/paths-J4JUiRsa.js +0 -1
  830. package/dist/plugin-sdk/paths-cBAF6Bj0.js +0 -1
  831. package/dist/plugin-sdk/paths-piJASC5k.js +0 -1
  832. package/dist/plugin-sdk/paths-rO4ehkyU.js +0 -1
  833. package/dist/plugin-sdk/pi-model-discovery-5wc5qlmB.cjs +0 -1
  834. package/dist/plugin-sdk/pi-model-discovery-BQiHbl8F.js +0 -1
  835. package/dist/plugin-sdk/pi-model-discovery-BZZVGcJl.js +0 -1
  836. package/dist/plugin-sdk/pi-model-discovery-Ba70onAm.js +0 -1
  837. package/dist/plugin-sdk/pi-model-discovery-BfuqD_Rv.cjs +0 -1
  838. package/dist/plugin-sdk/pi-model-discovery-BsdlRK-w.js +0 -1
  839. package/dist/plugin-sdk/pi-model-discovery-CAYSx-Lw.cjs +0 -1
  840. package/dist/plugin-sdk/pi-model-discovery-CyBFRafV.cjs +0 -1
  841. package/dist/plugin-sdk/pi-model-discovery-D1WW5m-Q.js +0 -1
  842. package/dist/plugin-sdk/pi-model-discovery-DRYpUnOa.cjs +0 -1
  843. package/dist/plugin-sdk/pi-model-discovery-DUbDLlc7.cjs +0 -1
  844. package/dist/plugin-sdk/pi-model-discovery-DcUDwgMg.cjs +0 -1
  845. package/dist/plugin-sdk/pi-model-discovery-DrZsxLaJ.js +0 -1
  846. package/dist/plugin-sdk/pi-model-discovery-gaVoL7I2.js +0 -1
  847. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BWmteuHS.js +0 -1
  848. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BmznXclG.cjs +0 -1
  849. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BzTifHML.cjs +0 -1
  850. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CEPsGtJk.cjs +0 -1
  851. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CYleOK1-.cjs +0 -1
  852. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Ctbk1Pq8.js +0 -1
  853. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D-hwiLUl.js +0 -1
  854. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DDuUTLh8.js +0 -1
  855. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DLfogXKU.cjs +0 -1
  856. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Dd-VFim_.js +0 -1
  857. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Dvmcwf-j.cjs +0 -1
  858. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-i-IGFbqI.js +0 -1
  859. package/dist/plugin-sdk/polls-BuaJuIpV.cjs +0 -1
  860. package/dist/plugin-sdk/polls-CBAGZuJ6.js +0 -1
  861. package/dist/plugin-sdk/polls-CSKMbBIS.js +0 -1
  862. package/dist/plugin-sdk/polls-D0wY0FvT.cjs +0 -1
  863. package/dist/plugin-sdk/polls-PGxiE05J.js +0 -1
  864. package/dist/plugin-sdk/polls-yWqSCEP0.cjs +0 -1
  865. package/dist/plugin-sdk/proxy-env-B765haXA.js +0 -1
  866. package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +0 -1
  867. package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +0 -1
  868. package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +0 -1
  869. package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +0 -1
  870. package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +0 -1
  871. package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +0 -1
  872. package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +0 -1
  873. package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +0 -1
  874. package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +0 -1
  875. package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +0 -1
  876. package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +0 -1
  877. package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +0 -1
  878. package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +0 -1
  879. package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +0 -1
  880. package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +0 -1
  881. package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +0 -1
  882. package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +0 -1
  883. package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +0 -1
  884. package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +0 -1
  885. package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +0 -1
  886. package/dist/plugin-sdk/proxy-fetch-Del551nu.js +0 -1
  887. package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +0 -1
  888. package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +0 -1
  889. package/dist/plugin-sdk/pw-ai-B9PkuA_R.cjs +0 -1
  890. package/dist/plugin-sdk/pw-ai-BMJV0Hqt.cjs +0 -1
  891. package/dist/plugin-sdk/pw-ai-BRasSDsB.js +0 -1
  892. package/dist/plugin-sdk/pw-ai-BY57aH_o.js +0 -1
  893. package/dist/plugin-sdk/pw-ai-BbpImC35.cjs +0 -1
  894. package/dist/plugin-sdk/pw-ai-D7d16RB-.cjs +0 -1
  895. package/dist/plugin-sdk/pw-ai-DF7TX5Lc.cjs +0 -1
  896. package/dist/plugin-sdk/pw-ai-DHN1pktj.js +0 -1
  897. package/dist/plugin-sdk/pw-ai-QzImh8G0.cjs +0 -1
  898. package/dist/plugin-sdk/pw-ai-V1CVJi48.js +0 -1
  899. package/dist/plugin-sdk/pw-ai-mvXkpTxf.js +0 -1
  900. package/dist/plugin-sdk/pw-ai-tdgA-KlG.js +0 -1
  901. package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +0 -1
  902. package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +0 -1
  903. package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +0 -1
  904. package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +0 -1
  905. package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +0 -1
  906. package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +0 -1
  907. package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +0 -1
  908. package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +0 -1
  909. package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +0 -1
  910. package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +0 -1
  911. package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +0 -1
  912. package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +0 -1
  913. package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +0 -1
  914. package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +0 -1
  915. package/dist/plugin-sdk/query-expansion-CAboqtWr.js +0 -1
  916. package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +0 -1
  917. package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +0 -1
  918. package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +0 -1
  919. package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +0 -1
  920. package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +0 -1
  921. package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +0 -1
  922. package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +0 -1
  923. package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +0 -1
  924. package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +0 -1
  925. package/dist/plugin-sdk/qwen-portal-auth.cjs +0 -1
  926. package/dist/plugin-sdk/qwen-portal-auth.js +0 -1
  927. package/dist/plugin-sdk/render-6fCdtAr6.cjs +0 -1
  928. package/dist/plugin-sdk/render-CBsnn-2A.js +0 -1
  929. package/dist/plugin-sdk/render-CzHaQB0d.cjs +0 -1
  930. package/dist/plugin-sdk/render-DGmfCIRG.js +0 -1
  931. package/dist/plugin-sdk/render-DhTJXP1U.js +0 -1
  932. package/dist/plugin-sdk/render-Djx15dPh.js +0 -1
  933. package/dist/plugin-sdk/render-DxBO2Blp.cjs +0 -1
  934. package/dist/plugin-sdk/render-g5VlmgpF.cjs +0 -1
  935. package/dist/plugin-sdk/reply-73PF8kN_.js +0 -1
  936. package/dist/plugin-sdk/reply-JD6VIW5N.cjs +0 -1
  937. package/dist/plugin-sdk/resolve-outbound-target-BNv_T3Bk.js +0 -1
  938. package/dist/plugin-sdk/resolve-outbound-target-CDM7_xfU.cjs +0 -1
  939. package/dist/plugin-sdk/resolve-outbound-target-CvKfootv.js +0 -1
  940. package/dist/plugin-sdk/resolve-outbound-target-Fq8une1d.cjs +0 -1
  941. package/dist/plugin-sdk/send-0TzQg7Eo.js +0 -1
  942. package/dist/plugin-sdk/send-AyV5r86J.js +0 -1
  943. package/dist/plugin-sdk/send-B-GqqrNy.js +0 -1
  944. package/dist/plugin-sdk/send-B03So6fs.cjs +0 -1
  945. package/dist/plugin-sdk/send-B0oV0qgS.js +0 -1
  946. package/dist/plugin-sdk/send-B31Tjl_I.cjs +0 -1
  947. package/dist/plugin-sdk/send-B4LTVhTd.cjs +0 -1
  948. package/dist/plugin-sdk/send-BGXPpAqy.cjs +0 -1
  949. package/dist/plugin-sdk/send-BJ957TYU.js +0 -1
  950. package/dist/plugin-sdk/send-BJmf3HVn.cjs +0 -1
  951. package/dist/plugin-sdk/send-BW3UECzm.js +0 -1
  952. package/dist/plugin-sdk/send-BWEZ_8nL.cjs +0 -1
  953. package/dist/plugin-sdk/send-BXrh73qh.cjs +0 -1
  954. package/dist/plugin-sdk/send-BbudHjUi.cjs +0 -1
  955. package/dist/plugin-sdk/send-BkjnUdWv.cjs +0 -1
  956. package/dist/plugin-sdk/send-BxIt-s7G.cjs +0 -1
  957. package/dist/plugin-sdk/send-ByKNfU2S.js +0 -1
  958. package/dist/plugin-sdk/send-Bz2Loz_Q.cjs +0 -1
  959. package/dist/plugin-sdk/send-CAreQYLU.cjs +0 -1
  960. package/dist/plugin-sdk/send-CGMqeSaY.cjs +0 -1
  961. package/dist/plugin-sdk/send-CJmor6eC.js +0 -1
  962. package/dist/plugin-sdk/send-CL2pl8br.cjs +0 -1
  963. package/dist/plugin-sdk/send-CMeGMLko.js +0 -1
  964. package/dist/plugin-sdk/send-CceHBxiK.js +0 -1
  965. package/dist/plugin-sdk/send-Cdx_KGYb.js +0 -1
  966. package/dist/plugin-sdk/send-Cer1bA2g.cjs +0 -1
  967. package/dist/plugin-sdk/send-CimU95QQ.cjs +0 -1
  968. package/dist/plugin-sdk/send-CoEAieJt.cjs +0 -1
  969. package/dist/plugin-sdk/send-Cob_bnT32.js +0 -1
  970. package/dist/plugin-sdk/send-Cyp5hOpt.js +0 -1
  971. package/dist/plugin-sdk/send-CzEFjTpi.js +0 -1
  972. package/dist/plugin-sdk/send-D2LjU2py.js +0 -1
  973. package/dist/plugin-sdk/send-D9Gbseeh.cjs +0 -1
  974. package/dist/plugin-sdk/send-DIjQ2vB4.js +0 -1
  975. package/dist/plugin-sdk/send-DJ419AIX.cjs +0 -1
  976. package/dist/plugin-sdk/send-DLtYxO1e.cjs +0 -1
  977. package/dist/plugin-sdk/send-DMk529J8.js +0 -1
  978. package/dist/plugin-sdk/send-DMxohaL_.cjs +0 -1
  979. package/dist/plugin-sdk/send-DQlKz6Bj.js +0 -1
  980. package/dist/plugin-sdk/send-DTUW-YBy.js +0 -1
  981. package/dist/plugin-sdk/send-Dc43nN-I.js +0 -1
  982. package/dist/plugin-sdk/send-DcRj8DUU.cjs +0 -1
  983. package/dist/plugin-sdk/send-DmxxJFZd.cjs +0 -1
  984. package/dist/plugin-sdk/send-DnwN1vBU.cjs +0 -1
  985. package/dist/plugin-sdk/send-DogBiU4n.cjs +0 -1
  986. package/dist/plugin-sdk/send-MEvv6c7w.js +0 -1
  987. package/dist/plugin-sdk/send-TRwokuAm.cjs +0 -1
  988. package/dist/plugin-sdk/send-VUSa_wkg.js +0 -1
  989. package/dist/plugin-sdk/send-X1b7Cj9U.cjs +0 -1
  990. package/dist/plugin-sdk/send-XX5rP5bI.js +0 -1
  991. package/dist/plugin-sdk/send-_ZGBA2sz.js +0 -1
  992. package/dist/plugin-sdk/send-d5RoIkxA.js +0 -1
  993. package/dist/plugin-sdk/send-dCbQnCLx.js +0 -1
  994. package/dist/plugin-sdk/send-gSV6SR6F.cjs +0 -1
  995. package/dist/plugin-sdk/send-pC6ctwfQ.cjs +0 -1
  996. package/dist/plugin-sdk/send-pq2hNOwv.cjs +0 -1
  997. package/dist/plugin-sdk/send-q6C-1cdJ.js +0 -1
  998. package/dist/plugin-sdk/send-vnIJSD5l.js +0 -1
  999. package/dist/plugin-sdk/send-vtYROJNd.js +0 -1
  1000. package/dist/plugin-sdk/send-wk_Y38Eq.js +0 -1
  1001. package/dist/plugin-sdk/session-BSLJWzVk.cjs +0 -1
  1002. package/dist/plugin-sdk/session-BfWC0c92.js +0 -1
  1003. package/dist/plugin-sdk/session-BjsaXe-G.js +0 -1
  1004. package/dist/plugin-sdk/session-C20nSfk5.cjs +0 -1
  1005. package/dist/plugin-sdk/session-CR8fsPgs.js +0 -1
  1006. package/dist/plugin-sdk/session-CwinrWG4.cjs +0 -1
  1007. package/dist/plugin-sdk/session-DAtRSLdw.cjs +0 -1
  1008. package/dist/plugin-sdk/session-Djo63EGV.cjs +0 -1
  1009. package/dist/plugin-sdk/session-EJZkCm6l.js +0 -1
  1010. package/dist/plugin-sdk/session-UIRgeq02.cjs +0 -1
  1011. package/dist/plugin-sdk/session-aOZKTEyZ.js +0 -1
  1012. package/dist/plugin-sdk/session-nUw21fi0.js +0 -1
  1013. package/dist/plugin-sdk/sessions-B06a3AKE.js +0 -1
  1014. package/dist/plugin-sdk/sessions-BmhjMXlm.cjs +0 -1
  1015. package/dist/plugin-sdk/signal.cjs +0 -1
  1016. package/dist/plugin-sdk/signal.js +0 -1
  1017. package/dist/plugin-sdk/skill-commands-2LXH0aZR.cjs +0 -1
  1018. package/dist/plugin-sdk/skill-commands-B4AbCkKe.cjs +0 -1
  1019. package/dist/plugin-sdk/skill-commands-B_xNpuH_.cjs +0 -1
  1020. package/dist/plugin-sdk/skill-commands-BbAfKA1R.js +0 -1
  1021. package/dist/plugin-sdk/skill-commands-BcKIgHAP.cjs +0 -1
  1022. package/dist/plugin-sdk/skill-commands-C9g2UiKr.cjs +0 -1
  1023. package/dist/plugin-sdk/skill-commands-CPZ9Jvbj.js +0 -1
  1024. package/dist/plugin-sdk/skill-commands-CgDUjb3J.js +0 -1
  1025. package/dist/plugin-sdk/skill-commands-D83BLBEG.js +0 -1
  1026. package/dist/plugin-sdk/skill-commands-DI1TMUxQ.js +0 -1
  1027. package/dist/plugin-sdk/skill-commands-DldIiKD1.js +0 -1
  1028. package/dist/plugin-sdk/skill-commands-LCW6nWWC.cjs +0 -1
  1029. package/dist/plugin-sdk/slack.cjs +0 -1
  1030. package/dist/plugin-sdk/slack.js +0 -1
  1031. package/dist/plugin-sdk/synology-chat.cjs +0 -1
  1032. package/dist/plugin-sdk/synology-chat.js +0 -1
  1033. package/dist/plugin-sdk/tables-BXY1ms0X.js +0 -1
  1034. package/dist/plugin-sdk/tables-BlhpY72l.cjs +0 -1
  1035. package/dist/plugin-sdk/tables-BltHUi44.cjs +0 -1
  1036. package/dist/plugin-sdk/tables-Bp6t_Jkb.js +0 -1
  1037. package/dist/plugin-sdk/tables-BszYJkqX.cjs +0 -1
  1038. package/dist/plugin-sdk/tables-CAZJt5bp.js +0 -1
  1039. package/dist/plugin-sdk/tables-CcuiVH-P.cjs +0 -1
  1040. package/dist/plugin-sdk/tables-CuSMtUxt.cjs +0 -1
  1041. package/dist/plugin-sdk/tables-DOLEnfD6.js +0 -1
  1042. package/dist/plugin-sdk/tables-DiiF7bbj.cjs +0 -1
  1043. package/dist/plugin-sdk/tables-aSJP6Sef.js +0 -1
  1044. package/dist/plugin-sdk/tables-ib4GZqYB.js +0 -1
  1045. package/dist/plugin-sdk/target-errors--anbEDnm.js +0 -1
  1046. package/dist/plugin-sdk/target-errors-4q9SUsM_.js +0 -1
  1047. package/dist/plugin-sdk/target-errors-BFOTHcjO.js +0 -1
  1048. package/dist/plugin-sdk/target-errors-Bw4tI2Lc.cjs +0 -1
  1049. package/dist/plugin-sdk/target-errors-CAgwWHUv.js +0 -1
  1050. package/dist/plugin-sdk/target-errors-CUDKM0z-.js +0 -1
  1051. package/dist/plugin-sdk/target-errors-DIOJ6Eun.cjs +0 -1
  1052. package/dist/plugin-sdk/target-errors-DnZq9h4B.cjs +0 -1
  1053. package/dist/plugin-sdk/target-errors-DwAKh8KU.cjs +0 -1
  1054. package/dist/plugin-sdk/target-errors-QGzfLvuU.cjs +0 -1
  1055. package/dist/plugin-sdk/targets-BSc11Uk8.cjs +0 -1
  1056. package/dist/plugin-sdk/targets-BSkiizml.js +0 -1
  1057. package/dist/plugin-sdk/targets-CBI0xqve.cjs +0 -1
  1058. package/dist/plugin-sdk/targets-CL5fYQi7.js +0 -1
  1059. package/dist/plugin-sdk/targets-CUZWrFrm.cjs +0 -1
  1060. package/dist/plugin-sdk/targets-CVEYTFPQ.js +0 -1
  1061. package/dist/plugin-sdk/targets-Co2R6K14.cjs +0 -1
  1062. package/dist/plugin-sdk/targets-CrkJkzil.js +0 -1
  1063. package/dist/plugin-sdk/targets-D-m7SV9x.cjs +0 -1
  1064. package/dist/plugin-sdk/targets-D8HTxbo4.js +0 -1
  1065. package/dist/plugin-sdk/targets-DcGNB9nk.cjs +0 -1
  1066. package/dist/plugin-sdk/targets-Dn9gDiEw.js +0 -1
  1067. package/dist/plugin-sdk/targets-X28mff4s.cjs +0 -1
  1068. package/dist/plugin-sdk/targets-uycXZ8vQ.js +0 -1
  1069. package/dist/plugin-sdk/telegram.cjs +0 -1
  1070. package/dist/plugin-sdk/telegram.js +0 -1
  1071. package/dist/plugin-sdk/test-utils.cjs +0 -1
  1072. package/dist/plugin-sdk/test-utils.js +0 -1
  1073. package/dist/plugin-sdk/tlon.cjs +0 -1
  1074. package/dist/plugin-sdk/tlon.js +0 -1
  1075. package/dist/plugin-sdk/tokens-AAdZjj0M.js +0 -1
  1076. package/dist/plugin-sdk/tokens-B20KNIDD.js +0 -1
  1077. package/dist/plugin-sdk/tokens-B8ys7Q2e.js +0 -1
  1078. package/dist/plugin-sdk/tokens-BPc1fcZ3.js +0 -1
  1079. package/dist/plugin-sdk/tokens-BqABmXSe.js +0 -1
  1080. package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +0 -1
  1081. package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +0 -1
  1082. package/dist/plugin-sdk/tokens-CytSl1X8.cjs +0 -1
  1083. package/dist/plugin-sdk/tokens-DgPZk2Uu.js +0 -1
  1084. package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +0 -1
  1085. package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +0 -1
  1086. package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +0 -1
  1087. package/dist/plugin-sdk/twitch.cjs +0 -1
  1088. package/dist/plugin-sdk/twitch.js +0 -1
  1089. package/dist/plugin-sdk/utils-BJtJR72k.js +0 -1
  1090. package/dist/plugin-sdk/utils-PPIvU9qw.cjs +0 -1
  1091. package/dist/plugin-sdk/voice-call.cjs +0 -1
  1092. package/dist/plugin-sdk/voice-call.js +0 -1
  1093. package/dist/plugin-sdk/web--8MBOleK.js +0 -1
  1094. package/dist/plugin-sdk/web-B7d3p3kx.cjs +0 -1
  1095. package/dist/plugin-sdk/web-BEuW8Yqw.js +0 -1
  1096. package/dist/plugin-sdk/web-Bg2LIMdb.cjs +0 -1
  1097. package/dist/plugin-sdk/web-DFDao2So.cjs +0 -1
  1098. package/dist/plugin-sdk/web-DjbeDvyv.js +0 -1
  1099. package/dist/plugin-sdk/web-JciOW43P.js +0 -1
  1100. package/dist/plugin-sdk/web-vSFigMHz.cjs +0 -1
  1101. package/dist/plugin-sdk/weixin.cjs +0 -1
  1102. package/dist/plugin-sdk/weixin.js +0 -1
  1103. package/dist/plugin-sdk/whatsapp-actions-B67oFfeq.js +0 -1
  1104. package/dist/plugin-sdk/whatsapp-actions-BB0eACkf.cjs +0 -1
  1105. package/dist/plugin-sdk/whatsapp-actions-BIgrB0j5.cjs +0 -1
  1106. package/dist/plugin-sdk/whatsapp-actions-CFve14ju.cjs +0 -1
  1107. package/dist/plugin-sdk/whatsapp-actions-CdRkPw-b.js +0 -1
  1108. package/dist/plugin-sdk/whatsapp-actions-CtIBOGpJ.cjs +0 -1
  1109. package/dist/plugin-sdk/whatsapp-actions-CwAU7FuE.js +0 -1
  1110. package/dist/plugin-sdk/whatsapp-actions-DQ1t5QTc.cjs +0 -1
  1111. package/dist/plugin-sdk/whatsapp-actions-DkrN4BcG.js +0 -1
  1112. package/dist/plugin-sdk/whatsapp-actions-DnkKzVrU.js +0 -1
  1113. package/dist/plugin-sdk/whatsapp-actions-YcBsDZ88.js +0 -1
  1114. package/dist/plugin-sdk/whatsapp-actions-wk1U2IVU.cjs +0 -1
  1115. package/dist/plugin-sdk/whatsapp.cjs +0 -1
  1116. package/dist/plugin-sdk/whatsapp.js +0 -1
  1117. package/dist/plugin-sdk/zalo.cjs +0 -1
  1118. package/dist/plugin-sdk/zalo.js +0 -1
  1119. package/dist/plugin-sdk/zalouser.cjs +0 -1
  1120. package/dist/plugin-sdk/zalouser.js +0 -1
  1121. package/dist/plugins-CYLrFT4h.js +0 -1
  1122. package/dist/plugins-DNlgeTTc.js +0 -1
  1123. package/dist/plugins-cli-CnXgwZzI.js +0 -1
  1124. package/dist/plugins-cli-PVHBZeb8.js +0 -1
  1125. package/dist/polls-BIVz6a4F.js +0 -1
  1126. package/dist/polls-Bh5wc9-6.js +0 -1
  1127. package/dist/polls-C_XSFz3d.js +0 -1
  1128. package/dist/polls-DKJOFSzJ.js +0 -1
  1129. package/dist/ports-BAaLOkJp.js +2 -0
  1130. package/dist/ports-DDWP1p0X.js +2 -0
  1131. package/dist/probe-auth-C5nWfMS9.js +0 -1
  1132. package/dist/probe-auth-x4OHS_wa.js +0 -1
  1133. package/dist/profile-utils-CWmra1aY.js +0 -1
  1134. package/dist/{program-ppBAyCNf.js → program-D53eGuSf.js} +1 -2
  1135. package/dist/program-context-CH9p6anW.js +0 -1
  1136. package/dist/{program-context-BXNpM3b4.js → program-context-n-ovYq69.js} +1 -2
  1137. package/dist/progress-LNttnI-y.js +0 -1
  1138. package/dist/progress-d1m2sqR1.js +0 -1
  1139. package/dist/{prompt-select-styled-947JghKF.js → prompt-select-styled-DZnefcrY.js} +1 -2
  1140. package/dist/{prompt-select-styled-1abs2MvK.js → prompt-select-styled-DolCW-_j.js} +1 -2
  1141. package/dist/prompt-style-BThRSQJR.js +0 -1
  1142. package/dist/prompt-style-CXKekIBY.js +0 -1
  1143. package/dist/prompts-CMzglboN.js +0 -1
  1144. package/dist/prompts-wv-lfVrJ.js +0 -1
  1145. package/dist/provider-auth-helpers-BLm2bdp5.js +0 -1
  1146. package/dist/provider-auth-helpers-DPz0vN_c.js +0 -1
  1147. package/dist/provider-env-vars-D8p6Ohpj.js +0 -1
  1148. package/dist/provider-env-vars-Dt0Q29Su.js +0 -1
  1149. package/dist/proxy-env-BNhTHkd_.js +0 -1
  1150. package/dist/proxy-env-DcmW_urA.js +0 -1
  1151. package/dist/proxy-env-DrC3TIGh.js +0 -1
  1152. package/dist/proxy-env-FJr5nlvs.js +0 -1
  1153. package/dist/proxy-fetch-BADsUK4d.js +0 -1
  1154. package/dist/proxy-fetch-BZ9O8Dvj.js +0 -1
  1155. package/dist/proxy-fetch-DnjU1fEB.js +0 -1
  1156. package/dist/proxy-fetch-gWETR3cl.js +0 -1
  1157. package/dist/push-apns-BBv62ncV.js +0 -1
  1158. package/dist/push-apns-DIV5dBPP.js +0 -1
  1159. package/dist/pw-ai-C0gM3d-6.js +0 -1
  1160. package/dist/pw-ai-CQd14BQa.js +0 -1
  1161. package/dist/pw-ai-DiQuOf4W.js +0 -1
  1162. package/dist/pw-ai-jlhIn-aA.js +0 -1
  1163. package/dist/qmd-manager-C_e04BNg.js +0 -1
  1164. package/dist/qmd-manager-DSQ_mDCl.js +0 -1
  1165. package/dist/qmd-manager-DcBYbt_V.js +0 -1
  1166. package/dist/qmd-manager-NLI0R6kp.js +0 -1
  1167. package/dist/qr-cli-D06YZurm.js +0 -1
  1168. package/dist/qr-cli-ZtDsXyLO.js +0 -1
  1169. package/dist/query-expansion-0OxEb1Io.js +0 -1
  1170. package/dist/query-expansion-BUUx_oWg.js +0 -1
  1171. package/dist/query-expansion-r_iXkNzt.js +0 -1
  1172. package/dist/reaction-level-DVPHL14p.js +0 -1
  1173. package/dist/reaction-message-id-BEEe7X3D.js +0 -1
  1174. package/dist/read-only-account-inspect-B0cm8yrv.js +0 -1
  1175. package/dist/redact-3_CiXMY6.js +0 -1
  1176. package/dist/redact-CnRxK70G.js +0 -1
  1177. package/dist/register.agent-DHOTtB8X.js +0 -1
  1178. package/dist/register.agent-DQdoMfmw.js +0 -1
  1179. package/dist/register.backup-BDO3V0so.js +0 -1
  1180. package/dist/register.backup-Vh8RK6fp.js +0 -1
  1181. package/dist/register.configure-C2N82brC.js +0 -1
  1182. package/dist/register.configure-C6zjzaEo.js +0 -1
  1183. package/dist/{register.maintenance-Br9uoFKo.js → register.maintenance-CStaPxaB.js} +1 -2
  1184. package/dist/{register.maintenance-Cm3wq9bt.js → register.maintenance-aKBTd9Zp.js} +1 -2
  1185. package/dist/register.message-DHDcOA8X.js +0 -1
  1186. package/dist/register.message-Dh72QHKA.js +0 -1
  1187. package/dist/{register.onboard-AjrSlfCb.js → register.onboard-Bu9gpFlA.js} +1 -2
  1188. package/dist/{register.onboard-zCG1PNWc.js → register.onboard-DB9FWAKT.js} +1 -2
  1189. package/dist/{register.setup-DN0y_pth.js → register.setup-CeG2ETmr.js} +1 -2
  1190. package/dist/{register.setup-Blyl_QsK.js → register.setup-D76IRs4s.js} +1 -2
  1191. package/dist/register.status-health-sessions-Dtpd1P2M.js +0 -1
  1192. package/dist/register.status-health-sessions-mPGKFjIz.js +0 -1
  1193. package/dist/{register.subclis-5Pb-uEHk.js → register.subclis-Drp2dGBe.js} +1 -2
  1194. package/dist/registry-BptzrW8D.js +0 -1
  1195. package/dist/registry-hFAtCSWG.js +0 -1
  1196. package/dist/render-BXEUPIHe.js +0 -1
  1197. package/dist/render-CBsnn-2A.js +0 -1
  1198. package/dist/render-D8OWO2hT.js +0 -1
  1199. package/dist/render-DrrPmnMI.js +0 -1
  1200. package/dist/reply-DwfVhea1.js +0 -1
  1201. package/dist/restart-BeJuoXCx.js +0 -1
  1202. package/dist/rpc-BBdeIvn0.js +0 -1
  1203. package/dist/rpc-f85A4Ib_.js +0 -1
  1204. package/dist/{run-main-DGwq5DIc.js → run-main-CjwjyWA6.js} +1 -2
  1205. package/dist/runtime-CK7gqwEF.js +0 -1
  1206. package/dist/runtime-DYttInEE.js +0 -1
  1207. package/dist/runtime-guard-DFYBaYZS.js +0 -1
  1208. package/dist/runtime-guard-DX2Ie4ri.js +0 -1
  1209. package/dist/runtime-status-CqFBmdRd.js +0 -1
  1210. package/dist/runtime-status-DszMjvJK.js +0 -1
  1211. package/dist/runtime-web-tools-BYhCkBV8.js +0 -1
  1212. package/dist/runtime-web-tools-C4F6aaRh.js +0 -1
  1213. package/dist/sandbox-cli-BR0Lsru-.js +0 -1
  1214. package/dist/sandbox-cli-Jo5nYeug.js +0 -1
  1215. package/dist/scan-paths-C13EseXp.js +0 -1
  1216. package/dist/scan-paths-CWtvWW40.js +0 -1
  1217. package/dist/search-manager-CV2YsAym.js +0 -1
  1218. package/dist/secret-file-C7JffiM_.js +0 -1
  1219. package/dist/secret-file-D60EFEOe.js +0 -1
  1220. package/dist/secret-file-DuWm26jS.js +0 -1
  1221. package/dist/secrets-cli-B8kwyZFo.js +0 -1
  1222. package/dist/secrets-cli-BstBe0UA.js +0 -1
  1223. package/dist/secure-random-D7JQgiK-.js +0 -1
  1224. package/dist/security-cli-C6t8OxaE.js +0 -1
  1225. package/dist/security-cli-Cuc8IQKB.js +0 -1
  1226. package/dist/send--9G8eXo4.js +0 -1
  1227. package/dist/send-4h1tQwX3.js +0 -1
  1228. package/dist/send-7qgAI0ap.js +0 -1
  1229. package/dist/send-AQ3CJLpI.js +0 -1
  1230. package/dist/send-BjrfjBn9.js +0 -1
  1231. package/dist/send-BwblpWbK.js +0 -1
  1232. package/dist/send-C4Lm4nmt.js +0 -1
  1233. package/dist/send-C7rOdjPO.js +0 -1
  1234. package/dist/send-COpehmAB.js +0 -1
  1235. package/dist/send-CWVTcDAW.js +0 -1
  1236. package/dist/send-CciNyaWL.js +0 -1
  1237. package/dist/send-ChILboDj.js +0 -1
  1238. package/dist/send-CyarIb2w.js +0 -1
  1239. package/dist/send-DiHS8tKf.js +0 -1
  1240. package/dist/send-Dj7NBAWg.js +0 -1
  1241. package/dist/send-DmHpf5Fz.js +0 -1
  1242. package/dist/send-NbU9-scF2.js +0 -1
  1243. package/dist/send-hlES-kRl2.js +0 -1
  1244. package/dist/send-swTiQAeK2.js +0 -1
  1245. package/dist/send-vNcod64S.js +0 -1
  1246. package/dist/server-C-lb98FO.js +0 -1
  1247. package/dist/server-DwSkpKgC.js +0 -1
  1248. package/dist/server-node-events-CL0pWoMa.js +0 -1
  1249. package/dist/server-node-events-ChPQ984b.js +0 -1
  1250. package/dist/service-BtB9epJk.js +0 -1
  1251. package/dist/service-DZ9EbS15.js +0 -1
  1252. package/dist/session-BSRnpwSq.js +0 -1
  1253. package/dist/session-CfHCnrXh.js +0 -1
  1254. package/dist/session-JqCxWBM8.js +0 -1
  1255. package/dist/session-bk3gFwO4.js +0 -1
  1256. package/dist/session-cost-usage-BgqKixv0.js +0 -1
  1257. package/dist/session-cost-usage-CHtVgnE8.js +0 -1
  1258. package/dist/session-key-C7F_iqYg.js +0 -1
  1259. package/dist/session-key-D3P0tf5P.js +0 -1
  1260. package/dist/session-utils-Bpdyx2A2.js +0 -1
  1261. package/dist/sessions-Ca6ozRCQ.js +0 -1
  1262. package/dist/shared-9x5sqYRb.js +0 -1
  1263. package/dist/shared-BKWhOp64.js +0 -1
  1264. package/dist/shared-Ca5BFwta.js +0 -1
  1265. package/dist/skill-commands-CPZcaV8-.js +0 -1
  1266. package/dist/skill-commands-CtprBvm0.js +0 -1
  1267. package/dist/skill-commands-DCqPy_Aa.js +0 -1
  1268. package/dist/skill-commands-DlHVddAk.js +0 -1
  1269. package/dist/skill-scanner-CUUF3Fvo.js +0 -1
  1270. package/dist/skill-scanner-CkxXNioD.js +0 -1
  1271. package/dist/skills-Bz_S4lPh.js +0 -1
  1272. package/dist/skills-CzUpDbU-.js +0 -1
  1273. package/dist/skills-cli-DK0QDfln.js +0 -1
  1274. package/dist/skills-cli-DLmqhAB-.js +0 -1
  1275. package/dist/skills-install-D3YB2C-S.js +0 -1
  1276. package/dist/skills-install-cEcqzaX8.js +0 -1
  1277. package/dist/skills-status-D4Y1BJYL.js +0 -1
  1278. package/dist/skills-status-DpSboPY1.js +0 -1
  1279. package/dist/sqlite-CILF3z9U.js +0 -1
  1280. package/dist/stagger-DmFYysrJ.js +0 -1
  1281. package/dist/stagger-DxzgG2jd.js +0 -1
  1282. package/dist/status-BAat65xo.js +0 -1
  1283. package/dist/status-BSHWBrg0.js +0 -1
  1284. package/dist/status-o3Gfr-6l.js +0 -1
  1285. package/dist/status-w4NsjW2R.js +0 -1
  1286. package/dist/status.update-B_8Gumuc.js +0 -1
  1287. package/dist/status.update-_2r0S6Re.js +0 -1
  1288. package/dist/string-normalization-BrUPaXaM.js +0 -1
  1289. package/dist/string-normalization-DJT5zuUF.js +0 -1
  1290. package/dist/subsystem-BLbY429l.js +0 -1
  1291. package/dist/subsystem-Bc2XrjUz.js +0 -1
  1292. package/dist/subsystem-C5XF2Fy5.js +0 -1
  1293. package/dist/system-cli-Ddixb0SQ.js +0 -1
  1294. package/dist/system-cli-NAH97F2s.js +0 -1
  1295. package/dist/system-run-command-DsWBVvSK.js +0 -1
  1296. package/dist/system-run-command-E8ymBXHh.js +0 -1
  1297. package/dist/systemd-D7odsu4K.js +0 -1
  1298. package/dist/systemd-DbevZh65.js +0 -1
  1299. package/dist/systemd-hints-CEQj6yrs.js +0 -1
  1300. package/dist/systemd-hints-lXpMy-kY.js +0 -1
  1301. package/dist/systemd-linger-C2MJD6KG.js +0 -1
  1302. package/dist/systemd-linger-cWKbFNpu.js +0 -1
  1303. package/dist/table-CR7TFMew.js +0 -1
  1304. package/dist/table-CY440fI1.js +0 -1
  1305. package/dist/tables-D6J-isob.js +0 -1
  1306. package/dist/tables-DENKrP-W.js +0 -1
  1307. package/dist/tables-_t5V36m9.js +0 -1
  1308. package/dist/tables-fl9iXahm.js +0 -1
  1309. package/dist/target-errors-CoEHv_2r.js +0 -1
  1310. package/dist/target-errors-D6wejRd6.js +0 -1
  1311. package/dist/target-errors-Dnkqss9y.js +0 -1
  1312. package/dist/target-errors-sMFXKeAY.js +0 -1
  1313. package/dist/targets-4EaxWBal.js +0 -1
  1314. package/dist/targets-BJTo7bqu.js +0 -1
  1315. package/dist/targets-BYVMrXDf.js +0 -1
  1316. package/dist/targets-Bq6rS6-Z.js +0 -1
  1317. package/dist/targets-CL5fYQi7.js +0 -1
  1318. package/dist/targets-fozeWOOg.js +0 -1
  1319. package/dist/targets-m_41k_Mv.js +0 -1
  1320. package/dist/telegram/audit.js +0 -1
  1321. package/dist/text-format-CvrvBBre.js +0 -1
  1322. package/dist/text-format-DEWK6oCT.js +0 -1
  1323. package/dist/token-DnTmiyJu.js +0 -1
  1324. package/dist/tokens-B2fq-rL6.js +0 -1
  1325. package/dist/tokens-CL2fSjGl.js +0 -1
  1326. package/dist/tokens-DRM8vzJx.js +0 -1
  1327. package/dist/tokens-XGbQGn67.js +0 -1
  1328. package/dist/tool-display-DJDtttQg.js +0 -1
  1329. package/dist/tool-display-DjuSUUbH.js +0 -1
  1330. package/dist/tui-5Znjl2Rb.js +0 -1
  1331. package/dist/tui-Tlww_AcE.js +0 -1
  1332. package/dist/tui-cli-C9QPsw50.js +0 -1
  1333. package/dist/tui-cli-FxvETbln.js +0 -1
  1334. package/dist/types.secrets-C-5U96pc.js +0 -1
  1335. package/dist/types.secrets-D4tbc3Wq.js +0 -1
  1336. package/dist/update-CMneH_48.js +0 -1
  1337. package/dist/update-D9EwPybG.js +0 -1
  1338. package/dist/{update-cli-BQGwMpHe.js → update-cli-CL_cUjuq.js} +1 -2
  1339. package/dist/{update-cli-C7pZTXS8.js → update-cli-DU5tRH3c.js} +1 -2
  1340. package/dist/update-runner-DABdlxfN.js +0 -1
  1341. package/dist/update-runner-DG-1TYYc.js +0 -1
  1342. package/dist/usage-format-BWD8FJFL.js +0 -1
  1343. package/dist/usage-format-yPwal8Iz.js +0 -1
  1344. package/dist/utils-CGdo13HV.js +0 -1
  1345. package/dist/utils-D3t-vPka.js +0 -1
  1346. package/dist/utils-R-mFyVJi.js +0 -1
  1347. package/dist/utils-UGOV_184.js +0 -1
  1348. package/dist/version-q3SkUw2K.js +0 -1
  1349. package/dist/warning-filter.js +0 -1
  1350. package/dist/web-Dfi2WjvN.js +0 -1
  1351. package/dist/web-u71NbOpT.js +0 -1
  1352. package/dist/webhooks-cli-DMTzhfTv.js +0 -1
  1353. package/dist/webhooks-cli-ICOwBPSv.js +0 -1
  1354. package/dist/whatsapp-actions-Bdf-3-ne.js +0 -1
  1355. package/dist/whatsapp-actions-D2qMOK3a.js +0 -1
  1356. package/dist/whatsapp-actions-f5CsM5EM.js +0 -1
  1357. package/dist/whatsapp-actions-t88tyNUT.js +0 -1
  1358. package/dist/widearea-dns-BDx7vkV2.js +0 -1
  1359. package/dist/widearea-dns-BFjqKXu_.js +0 -1
  1360. package/dist/windows-spawn-7oINn5ao.js +0 -1
  1361. package/dist/windows-spawn-AB7ItGAE.js +0 -1
  1362. package/dist/with-timeout-WveKxvFV.js +0 -1
  1363. package/dist/with-timeout-c1CzdShT.js +0 -1
  1364. package/dist/workspace-B0ZQeHXg.js +0 -1
  1365. package/dist/workspace-C45T1Cxg.js +0 -1
  1366. package/dist/workspace-dirs-A8Vib9_B.js +0 -1
  1367. package/dist/workspace-dirs-BhF1Dzxt.js +0 -1
  1368. package/dist/workspace-xNEpaJvu.js +0 -1
  1369. package/dist/wsl-DHxB2Ew_.js +0 -1
  1370. package/dist/wsl-Ok7GaSJ6.js +0 -1
  1371. package/extensions/qqbrowser-skill-control/index.js +1 -1
  1372. package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
  1373. package/node_modules/@aws-sdk/token-providers/package.json +1 -1
  1374. package/node_modules/@google/genai/dist/index.cjs +341 -180
  1375. package/node_modules/@google/genai/dist/index.mjs +341 -180
  1376. package/node_modules/@google/genai/dist/node/index.cjs +341 -180
  1377. package/node_modules/@google/genai/dist/node/index.mjs +341 -180
  1378. package/node_modules/@google/genai/dist/tokenizer/node.cjs +100 -0
  1379. package/node_modules/@google/genai/dist/tokenizer/node.mjs +100 -0
  1380. package/node_modules/@google/genai/dist/vertex_internal/index.cjs +103 -2
  1381. package/node_modules/@google/genai/dist/vertex_internal/index.js +103 -2
  1382. package/node_modules/@google/genai/dist/web/index.mjs +342 -180
  1383. package/node_modules/@google/genai/package.json +1 -1
  1384. package/node_modules/@slack/web-api/dist/instrument.js +13 -1
  1385. package/node_modules/@slack/web-api/package.json +2 -2
  1386. package/node_modules/@smithy/config-resolver/package.json +2 -2
  1387. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  1388. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +154 -61
  1389. package/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js +15 -0
  1390. package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +41 -0
  1391. package/node_modules/@smithy/util-endpoints/dist-es/index.js +2 -0
  1392. package/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js +8 -0
  1393. package/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +3 -0
  1394. package/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js +3 -0
  1395. package/node_modules/@smithy/util-endpoints/dist-es/lib/split.js +13 -0
  1396. package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
  1397. package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +4 -1
  1398. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +20 -5
  1399. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +3 -6
  1400. package/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +1 -5
  1401. package/node_modules/@smithy/util-endpoints/package.json +1 -1
  1402. package/node_modules/discord-api-types/package.json +1 -1
  1403. package/node_modules/discord-api-types/payloads/index.mjs +3 -0
  1404. package/node_modules/discord-api-types/payloads/v10/index.mjs +3 -0
  1405. package/node_modules/discord-api-types/payloads/v10/message.js +55 -2
  1406. package/node_modules/discord-api-types/payloads/v10/user.js +2 -0
  1407. package/node_modules/discord-api-types/payloads/v9/index.mjs +3 -0
  1408. package/node_modules/discord-api-types/payloads/v9/message.js +55 -2
  1409. package/node_modules/discord-api-types/payloads/v9/user.js +2 -0
  1410. package/node_modules/discord-api-types/rest/v10/channel.js +6 -0
  1411. package/node_modules/discord-api-types/rest/v9/channel.js +6 -0
  1412. package/node_modules/discord-api-types/v10.mjs +3 -0
  1413. package/node_modules/discord-api-types/v9.mjs +3 -0
  1414. package/node_modules/undici/package.json +1 -1
  1415. package/package.json +2 -1
  1416. package/dist/ports-Dylc6TrH.js +0 -3
  1417. package/dist/ports-hkqQXSus.js +0 -3
  1418. package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/commander/LICENSE +0 -22
  1419. package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/commander/Readme.md +0 -1157
  1420. package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/zod/LICENSE +0 -21
  1421. package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/zod/README.md +0 -208
  1422. package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/README.md +0 -3
  1423. package/node_modules/@anthropic-ai/sdk/src/core/README.md +0 -3
  1424. package/node_modules/@anthropic-ai/sdk/src/internal/README.md +0 -3
  1425. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
  1426. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/README.md +0 -10
  1427. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
  1428. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/README.md +0 -10
  1429. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/LICENSE +0 -201
  1430. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/README.md +0 -4
  1431. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
  1432. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/README.md +0 -10
  1433. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
  1434. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/README.md +0 -10
  1435. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/LICENSE +0 -201
  1436. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/README.md +0 -4
  1437. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +0 -201
  1438. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +0 -62
  1439. package/node_modules/@buape/carbon/node_modules/@discordjs/voice/LICENSE +0 -191
  1440. package/node_modules/@buape/carbon/node_modules/@discordjs/voice/README.md +0 -112
  1441. package/node_modules/@buape/carbon/node_modules/discord-api-types/LICENSE +0 -21
  1442. package/node_modules/@buape/carbon/node_modules/discord-api-types/README.md +0 -102
  1443. package/node_modules/@buape/carbon/node_modules/ws/LICENSE +0 -20
  1444. package/node_modules/@buape/carbon/node_modules/ws/README.md +0 -548
  1445. package/node_modules/@line/bot-sdk/node_modules/@types/node/LICENSE +0 -21
  1446. package/node_modules/@line/bot-sdk/node_modules/@types/node/README.md +0 -15
  1447. package/node_modules/@line/bot-sdk/node_modules/undici-types/LICENSE +0 -21
  1448. package/node_modules/@line/bot-sdk/node_modules/undici-types/README.md +0 -6
  1449. package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1450. package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
  1451. package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
  1452. package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
  1453. package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1454. package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/resources/README.md +0 -49
  1455. package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
  1456. package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
  1457. package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1458. package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
  1459. package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
  1460. package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
  1461. package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1462. package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
  1463. package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
  1464. package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
  1465. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1466. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources/README.md +0 -49
  1467. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
  1468. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
  1469. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
  1470. package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
  1471. package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/LICENSE +0 -201
  1472. package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/README.md +0 -73
  1473. package/node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources/LICENSE +0 -201
  1474. package/node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources/README.md +0 -49
  1475. package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/LICENSE +0 -201
  1476. package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/README.md +0 -73
  1477. package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/LICENSE +0 -201
  1478. package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/README.md +0 -73
  1479. package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/LICENSE +0 -201
  1480. package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/README.md +0 -73
  1481. package/node_modules/@sinclair/typebox/license +0 -25
  1482. package/node_modules/@sinclair/typebox/readme.md +0 -1865
  1483. package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/license +0 -9
  1484. package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/readme.md +0 -1077
  1485. package/node_modules/@whiskeysockets/baileys/node_modules/p-timeout/license +0 -9
  1486. package/node_modules/@whiskeysockets/baileys/node_modules/p-timeout/readme.md +0 -192
  1487. package/node_modules/ansi-regex/license +0 -9
  1488. package/node_modules/ansi-regex/readme.md +0 -66
  1489. package/node_modules/ansi-styles/license +0 -9
  1490. package/node_modules/ansi-styles/readme.md +0 -152
  1491. package/node_modules/atomic-sleep/readme.md +0 -58
  1492. package/node_modules/axios/lib/adapters/README.md +0 -36
  1493. package/node_modules/axios/lib/core/README.md +0 -8
  1494. package/node_modules/axios/lib/env/README.md +0 -3
  1495. package/node_modules/axios/lib/helpers/README.md +0 -7
  1496. package/node_modules/bytes/History.md +0 -97
  1497. package/node_modules/bytes/Readme.md +0 -152
  1498. package/node_modules/chalk/license +0 -9
  1499. package/node_modules/chalk/readme.md +0 -297
  1500. package/node_modules/cli-highlight/node_modules/chalk/license +0 -9
  1501. package/node_modules/cli-highlight/node_modules/chalk/readme.md +0 -341
  1502. package/node_modules/cliui/node_modules/ansi-regex/license +0 -9
  1503. package/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
  1504. package/node_modules/cliui/node_modules/strip-ansi/license +0 -9
  1505. package/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
  1506. package/node_modules/combined-stream/License +0 -19
  1507. package/node_modules/combined-stream/Readme.md +0 -138
  1508. package/node_modules/commander/Readme.md +0 -1176
  1509. package/node_modules/cookie-signature/History.md +0 -70
  1510. package/node_modules/cookie-signature/Readme.md +0 -23
  1511. package/node_modules/css-what/readme.md +0 -69
  1512. package/node_modules/delayed-stream/License +0 -19
  1513. package/node_modules/delayed-stream/Readme.md +0 -141
  1514. package/node_modules/depd/History.md +0 -103
  1515. package/node_modules/depd/Readme.md +0 -280
  1516. package/node_modules/domelementtype/readme.md +0 -1
  1517. package/node_modules/domhandler/readme.md +0 -92
  1518. package/node_modules/domutils/readme.md +0 -31
  1519. package/node_modules/entities/readme.md +0 -122
  1520. package/node_modules/escalade/license +0 -9
  1521. package/node_modules/escalade/readme.md +0 -211
  1522. package/node_modules/escape-html/Readme.md +0 -43
  1523. package/node_modules/express/Readme.md +0 -276
  1524. package/node_modules/express-rate-limit/license.md +0 -20
  1525. package/node_modules/express-rate-limit/readme.md +0 -136
  1526. package/node_modules/extract-zip/readme.md +0 -57
  1527. package/node_modules/fast-string-truncated-width/license +0 -21
  1528. package/node_modules/fast-string-truncated-width/readme.md +0 -60
  1529. package/node_modules/fast-string-width/license +0 -21
  1530. package/node_modules/fast-string-width/readme.md +0 -45
  1531. package/node_modules/file-type/license +0 -9
  1532. package/node_modules/file-type/readme.md +0 -667
  1533. package/node_modules/form-data/License +0 -19
  1534. package/node_modules/form-data/node_modules/mime-db/HISTORY.md +0 -507
  1535. package/node_modules/form-data/node_modules/mime-db/LICENSE +0 -23
  1536. package/node_modules/form-data/node_modules/mime-db/README.md +0 -100
  1537. package/node_modules/form-data/node_modules/mime-types/HISTORY.md +0 -397
  1538. package/node_modules/form-data/node_modules/mime-types/LICENSE +0 -23
  1539. package/node_modules/form-data/node_modules/mime-types/README.md +0 -113
  1540. package/node_modules/gaxios/node_modules/agent-base/LICENSE +0 -22
  1541. package/node_modules/gaxios/node_modules/agent-base/README.md +0 -69
  1542. package/node_modules/gaxios/node_modules/https-proxy-agent/LICENSE +0 -22
  1543. package/node_modules/gaxios/node_modules/https-proxy-agent/README.md +0 -70
  1544. package/node_modules/get-east-asian-width/license +0 -9
  1545. package/node_modules/get-east-asian-width/readme.md +0 -65
  1546. package/node_modules/get-stream/license +0 -9
  1547. package/node_modules/get-stream/readme.md +0 -124
  1548. package/node_modules/get-uri/node_modules/data-uri-to-buffer/LICENSE +0 -22
  1549. package/node_modules/get-uri/node_modules/data-uri-to-buffer/README.md +0 -61
  1550. package/node_modules/grammy/node_modules/node-fetch/LICENSE.md +0 -22
  1551. package/node_modules/grammy/node_modules/node-fetch/README.md +0 -634
  1552. package/node_modules/has-flag/license +0 -9
  1553. package/node_modules/has-flag/readme.md +0 -89
  1554. package/node_modules/htmlparser2/node_modules/entities/LICENSE +0 -11
  1555. package/node_modules/htmlparser2/node_modules/entities/readme.md +0 -143
  1556. package/node_modules/http-proxy-agent/node_modules/agent-base/LICENSE +0 -22
  1557. package/node_modules/http-proxy-agent/node_modules/agent-base/README.md +0 -69
  1558. package/node_modules/is-fullwidth-code-point/license +0 -9
  1559. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  1560. package/node_modules/is-stream/license +0 -9
  1561. package/node_modules/is-stream/readme.md +0 -60
  1562. package/node_modules/jws/readme.md +0 -255
  1563. package/node_modules/libsignal/native/ed25519/sha512/LICENSE.txt +0 -20
  1564. package/node_modules/libsignal/node_modules/@types/node/LICENSE +0 -21
  1565. package/node_modules/libsignal/node_modules/@types/node/README.md +0 -16
  1566. package/node_modules/libsignal/node_modules/long/LICENSE +0 -202
  1567. package/node_modules/libsignal/node_modules/long/README.md +0 -246
  1568. package/node_modules/libsignal/node_modules/protobufjs/LICENSE +0 -39
  1569. package/node_modules/libsignal/node_modules/protobufjs/README.md +0 -879
  1570. package/node_modules/libsignal/node_modules/protobufjs/cli/LICENSE +0 -33
  1571. package/node_modules/libsignal/node_modules/protobufjs/cli/README.md +0 -11
  1572. package/node_modules/libsignal/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +0 -21
  1573. package/node_modules/libsignal/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +0 -23
  1574. package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/os-tmpdir/license +0 -21
  1575. package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/os-tmpdir/readme.md +0 -32
  1576. package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/tmp/LICENSE +0 -21
  1577. package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/tmp/README.md +0 -314
  1578. package/node_modules/libsignal/node_modules/protobufjs/dist/README.md +0 -31
  1579. package/node_modules/libsignal/node_modules/protobufjs/dist/light/README.md +0 -31
  1580. package/node_modules/libsignal/node_modules/protobufjs/dist/minimal/README.md +0 -31
  1581. package/node_modules/libsignal/node_modules/protobufjs/ext/debug/README.md +0 -4
  1582. package/node_modules/libsignal/node_modules/protobufjs/ext/descriptor/README.md +0 -72
  1583. package/node_modules/libsignal/node_modules/protobufjs/google/LICENSE +0 -27
  1584. package/node_modules/libsignal/node_modules/protobufjs/google/README.md +0 -1
  1585. package/node_modules/lie/license.md +0 -7
  1586. package/node_modules/linkedom/node_modules/html-escaper/LICENSE.txt +0 -19
  1587. package/node_modules/linkedom/node_modules/html-escaper/README.md +0 -110
  1588. package/node_modules/merge-descriptors/license +0 -11
  1589. package/node_modules/merge-descriptors/readme.md +0 -55
  1590. package/node_modules/ms/license.md +0 -21
  1591. package/node_modules/ms/readme.md +0 -59
  1592. package/node_modules/node-edge-tts/node_modules/agent-base/LICENSE +0 -22
  1593. package/node_modules/node-edge-tts/node_modules/agent-base/README.md +0 -69
  1594. package/node_modules/node-edge-tts/node_modules/ansi-regex/license +0 -9
  1595. package/node_modules/node-edge-tts/node_modules/ansi-regex/readme.md +0 -78
  1596. package/node_modules/node-edge-tts/node_modules/cliui/LICENSE.txt +0 -14
  1597. package/node_modules/node-edge-tts/node_modules/cliui/README.md +0 -141
  1598. package/node_modules/node-edge-tts/node_modules/https-proxy-agent/LICENSE +0 -22
  1599. package/node_modules/node-edge-tts/node_modules/https-proxy-agent/README.md +0 -70
  1600. package/node_modules/node-edge-tts/node_modules/strip-ansi/license +0 -9
  1601. package/node_modules/node-edge-tts/node_modules/strip-ansi/readme.md +0 -46
  1602. package/node_modules/node-edge-tts/node_modules/yargs/LICENSE +0 -21
  1603. package/node_modules/node-edge-tts/node_modules/yargs/README.md +0 -204
  1604. package/node_modules/node-edge-tts/node_modules/yargs-parser/LICENSE.txt +0 -14
  1605. package/node_modules/node-edge-tts/node_modules/yargs-parser/README.md +0 -518
  1606. package/node_modules/object-assign/license +0 -21
  1607. package/node_modules/object-assign/readme.md +0 -61
  1608. package/node_modules/object-inspect/readme.markdown +0 -84
  1609. package/node_modules/openai/src/_vendor/partial-json-parser/README.md +0 -3
  1610. package/node_modules/openai/src/_vendor/zod-to-json-schema/LICENSE +0 -15
  1611. package/node_modules/openai/src/_vendor/zod-to-json-schema/README.md +0 -3
  1612. package/node_modules/openai/src/core/README.md +0 -3
  1613. package/node_modules/openai/src/internal/README.md +0 -3
  1614. package/node_modules/openai/src/internal/qs/LICENSE.md +0 -13
  1615. package/node_modules/openai/src/internal/qs/README.md +0 -3
  1616. package/node_modules/p-finally/license +0 -21
  1617. package/node_modules/p-finally/readme.md +0 -47
  1618. package/node_modules/p-queue/license +0 -9
  1619. package/node_modules/p-queue/node_modules/eventemitter3/LICENSE +0 -21
  1620. package/node_modules/p-queue/node_modules/eventemitter3/README.md +0 -94
  1621. package/node_modules/p-queue/readme.md +0 -400
  1622. package/node_modules/p-retry/license +0 -9
  1623. package/node_modules/p-retry/readme.md +0 -148
  1624. package/node_modules/p-timeout/license +0 -9
  1625. package/node_modules/p-timeout/readme.md +0 -87
  1626. package/node_modules/pac-proxy-agent/node_modules/agent-base/LICENSE +0 -22
  1627. package/node_modules/pac-proxy-agent/node_modules/agent-base/README.md +0 -69
  1628. package/node_modules/pac-proxy-agent/node_modules/https-proxy-agent/LICENSE +0 -22
  1629. package/node_modules/pac-proxy-agent/node_modules/https-proxy-agent/README.md +0 -70
  1630. package/node_modules/pako/lib/zlib/README +0 -59
  1631. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/LICENSE +0 -19
  1632. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/README.md +0 -38
  1633. package/node_modules/path-key/license +0 -9
  1634. package/node_modules/path-key/readme.md +0 -61
  1635. package/node_modules/path-to-regexp/Readme.md +0 -224
  1636. package/node_modules/pino-std-serializers/Readme.md +0 -182
  1637. package/node_modules/process-nextick-args/license.md +0 -19
  1638. package/node_modules/process-nextick-args/readme.md +0 -18
  1639. package/node_modules/proper-lockfile/node_modules/retry/License +0 -21
  1640. package/node_modules/proper-lockfile/node_modules/retry/README.md +0 -227
  1641. package/node_modules/protobufjs/ext/debug/README.md +0 -4
  1642. package/node_modules/protobufjs/ext/descriptor/README.md +0 -72
  1643. package/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE +0 -19
  1644. package/node_modules/proxy-addr/node_modules/ipaddr.js/README.md +0 -233
  1645. package/node_modules/proxy-agent/node_modules/agent-base/LICENSE +0 -22
  1646. package/node_modules/proxy-agent/node_modules/agent-base/README.md +0 -69
  1647. package/node_modules/proxy-agent/node_modules/https-proxy-agent/LICENSE +0 -22
  1648. package/node_modules/proxy-agent/node_modules/https-proxy-agent/README.md +0 -70
  1649. package/node_modules/proxy-agent/node_modules/lru-cache/LICENSE +0 -15
  1650. package/node_modules/proxy-agent/node_modules/lru-cache/README.md +0 -1117
  1651. package/node_modules/proxy-agent/node_modules/proxy-from-env/LICENSE +0 -20
  1652. package/node_modules/proxy-agent/node_modules/proxy-from-env/README.md +0 -131
  1653. package/node_modules/qified/node_modules/hookified/LICENSE +0 -19
  1654. package/node_modules/qified/node_modules/hookified/README.md +0 -1682
  1655. package/node_modules/quick-format-unescaped/readme.md +0 -66
  1656. package/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +0 -21
  1657. package/node_modules/readable-stream/node_modules/safe-buffer/README.md +0 -584
  1658. package/node_modules/require-from-string/license +0 -21
  1659. package/node_modules/require-from-string/readme.md +0 -56
  1660. package/node_modules/retry/License +0 -21
  1661. package/node_modules/router/node_modules/is-promise/LICENSE +0 -19
  1662. package/node_modules/router/node_modules/is-promise/readme.md +0 -33
  1663. package/node_modules/safe-stable-stringify/readme.md +0 -179
  1664. package/node_modules/safer-buffer/Readme.md +0 -156
  1665. package/node_modules/shebang-command/license +0 -9
  1666. package/node_modules/shebang-command/readme.md +0 -34
  1667. package/node_modules/shebang-regex/license +0 -9
  1668. package/node_modules/shebang-regex/readme.md +0 -33
  1669. package/node_modules/sisteransi/license +0 -21
  1670. package/node_modules/sisteransi/readme.md +0 -113
  1671. package/node_modules/socks-proxy-agent/node_modules/agent-base/LICENSE +0 -22
  1672. package/node_modules/socks-proxy-agent/node_modules/agent-base/README.md +0 -69
  1673. package/node_modules/string-width/license +0 -9
  1674. package/node_modules/string-width/node_modules/ansi-regex/license +0 -9
  1675. package/node_modules/string-width/node_modules/ansi-regex/readme.md +0 -78
  1676. package/node_modules/string-width/node_modules/strip-ansi/license +0 -9
  1677. package/node_modules/string-width/node_modules/strip-ansi/readme.md +0 -46
  1678. package/node_modules/string-width/readme.md +0 -50
  1679. package/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +0 -21
  1680. package/node_modules/string_decoder/node_modules/safe-buffer/README.md +0 -584
  1681. package/node_modules/strip-ansi/license +0 -9
  1682. package/node_modules/strip-ansi/readme.md +0 -37
  1683. package/node_modules/supports-color/license +0 -9
  1684. package/node_modules/supports-color/readme.md +0 -76
  1685. package/node_modules/uint8array-extras/license +0 -9
  1686. package/node_modules/uint8array-extras/readme.md +0 -318
  1687. package/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  1688. package/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
  1689. package/node_modules/util-deprecate/History.md +0 -16
  1690. package/node_modules/wrap-ansi/license +0 -9
  1691. package/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
  1692. package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
  1693. package/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
  1694. package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
  1695. package/node_modules/wrap-ansi/readme.md +0 -91
  1696. package/node_modules/yoctocolors/license +0 -9
  1697. package/node_modules/yoctocolors/readme.md +0 -138
  1698. package/node_modules/zod-to-json-schema/changelog.md +0 -83
@@ -1,2 +1 @@
1
1
  import"./paths-B4IRk3wi.js";import{p as e}from"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import{Jn as t,qs as n}from"./model-selection-BLbnMb5E.js";import{Gn as r,Kt as i,M as a,Mt as o,N as s,Ot as c,Sn as l,br as u,j as d}from"./reply-DwfVhea1.js";import"./agent-scope-DXZc3eNT.js";import{l as f,p}from"./session-key-D3P0tf5P.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import{r as m}from"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./send-C7rOdjPO.js";import"./send-BwblpWbK.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-BwjMhAUa.js";import"./image-BP1cfEh1.js";import"./models-config-BlQ39qlq.js";import"./tool-display-DjuSUUbH.js";import"./fetch-guard-7BAwnP4a.js";import"./api-key-rotation-Rz2ESQSA.js";import"./local-roots-aA-4ohTq.js";import"./model-catalog-D-hkNWin.js";import"./proxy-fetch-BADsUK4d.js";import"./tokens-XGbQGn67.js";import{t as h}from"./deliver-DUNkj4hy.js";import"./commands-CGpM84iR.js";import"./commands-registry-DlvNUkXz.js";import"./pairing-store-EmfFQVcs.js";import"./fetch-Dikjvc5M.js";import"./call-JB-cGR9n.js";import"./with-timeout-WveKxvFV.js";import"./diagnostic-BEZszppF.js";import"./send-NbU9-scF2.js";import"./pi-model-discovery-DnJkNRc-.js";import"./exec-approvals-allowlist-B-Yf6RsU.js";import"./exec-safe-bin-runtime-policy-CRPHdPbF.js";import"./ir-CNTx85qV.js";import"./render-D8OWO2hT.js";import"./target-errors-CoEHv_2r.js";import"./read-only-account-inspect-B0cm8yrv.js";import"./channel-selection-si1OzWyQ.js";import"./plugin-auto-enable-CTgkkJK7.js";import"./send-DmHpf5Fz.js";import"./outbound-attachment-9-8VNvRG.js";import"./delivery-queue-CKbauSFq.js";import"./send-AQ3CJLpI.js";import"./channel-activity-Dw6F-ehJ.js";import"./tables-fl9iXahm.js";import"./fetch-Bn0mWg6a.js";import"./skill-commands-DlHVddAk.js";import"./workspace-dirs-BhF1Dzxt.js";import"./pairing-token-B8RdfK2y.js";import"./restart-BeJuoXCx.js";import"./runtime-web-tools-C4F6aaRh.js";import"./command-secret-targets-CfXtLkLF.js";import"./session-cost-usage-BgqKixv0.js";import"./connection-auth-smZlFWxD.js";import"./onboard-helpers-D90u4wVK.js";import"./prompt-style-CXKekIBY.js";import"./pairing-labels-PIuZfthz.js";import"./memory-cli-BouV_wyL.js";import"./query-expansion-0OxEb1Io.js";import"./manager-CI6O4QH6.js";import"./links-CySwdMcF.js";import"./cli-utils-BY7dLMFy.js";import"./help-format-BRbF_INg.js";import"./progress-LNttnI-y.js";import"./exec-approvals-BpBNEy6i.js";import"./nodes-screen-8nRBsfID.js";import"./system-run-command-E8ymBXHh.js";import"./runtime-DYttInEE.js";import"./stagger-DmFYysrJ.js";import{c as g,l as _,r as v,s as y}from"./push-apns-BBv62ncV.js";import{randomUUID as b}from"node:crypto";const x=1500,S=new Map;function C(e){if(typeof e!=`string`)return null;let t=e.trim();return t.length>0?t:null}function w(e){return typeof e==`number`&&Number.isFinite(e)?Math.trunc(e):null}function T(e,t){let n=C(e.eventId)??C(e.providerEventId)??C(e.transcriptId);if(n)return`event:${n}`;let r=C(e.providerCallId)??C(e.callId),i=w(e.sequence)??w(e.seq);if(r&&i!==null)return`call-seq:${r}:${i}`;let a=w(e.timestamp)??w(e.ts)??w(e.eventTimestamp);return r&&a!==null?`call-ts:${r}:${a}`:a===null?`text:${t}`:`timestamp:${a}|text:${t}`}function E(e){let t=S.get(e.sessionKey);if(t&&t.fingerprint===e.fingerprint&&e.now-t.ts<=x)return!0;if(S.set(e.sessionKey,{fingerprint:e.fingerprint,ts:e.now}),S.size>200){let t=e.now-x*2;for(let[e,n]of S)if(n.ts<t&&S.delete(e),S.size<=200)break;for(;S.size>200;){let e=S.keys().next().value;if(e===void 0)break;S.delete(e)}}return!1}function D(e){let t=e.replace(/\s+/g,` `).trim();return t?t.length<=180?t:`${t.slice(0,179)}…`:``}function O(e){let t=e.replace(/\s+/g,` `).trim();return t?t.length<=120?t:`${t.slice(0,119)}…`:``}async function k(e){let{storePath:n}=e;n&&await t(n,t=>{let n=s({cfg:e.cfg,key:e.sessionKey,store:t});a({store:t,canonicalKey:n.canonicalKey,candidates:n.storeKeys}),t[e.canonicalKey]={sessionId:e.sessionId,updatedAt:e.now,thinkingLevel:e.entry?.thinkingLevel,verboseLevel:e.entry?.verboseLevel,reasoningLevel:e.entry?.reasoningLevel,systemSent:e.entry?.systemSent,sendPolicy:e.entry?.sendPolicy,lastChannel:e.entry?.lastChannel,lastTo:e.entry?.lastTo}})}function A(e){k({cfg:e.cfg,sessionKey:e.sessionKey,storePath:e.storePath,canonicalKey:e.canonicalKey,entry:e.entry,sessionId:e.sessionId,now:e.now}).catch(t=>{e.ctx.logGateway.warn(`voice session-store update failed: `+_(t))})}function j(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!=`object`||!t)return null;let n=t,r=typeof n.sessionKey==`string`?n.sessionKey.trim():``;return r.length>0?r:null}function M(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}return typeof t==`object`&&t?t:null}async function N(e){let t=r({channel:e.channel,to:e.to,cfg:e.cfg,mode:`explicit`});if(!t.ok)throw Error(String(t.error));let n=u({cfg:e.cfg,sessionKey:e.sessionKey});await h({cfg:e.cfg,channel:e.channel,to:t.to,payloads:[{text:e.text}],session:n,bestEffort:!0,deps:o(e.deps)})}const P=async(t,r,a)=>{switch(a.event){case`voice.transcript`:{let i=M(a.payloadJSON);if(!i)return;let o=typeof i.text==`string`?i.text.trim():``;if(!o||o.length>2e4)return;let s=typeof i.sessionKey==`string`?i.sessionKey.trim():``,l=n(),u=f(l.session?.mainKey),p=s.length>0?s:u,{storePath:m,entry:h,canonicalKey:g}=d(p),v=Date.now();if(E({sessionKey:g,fingerprint:T(i,o),now:v}))return;let y=h?.sessionId??b();A({ctx:t,cfg:l,sessionKey:p,storePath:m,canonicalKey:g,entry:h,sessionId:y,now:v}),t.addChatRun(y,{sessionKey:g,clientRunId:`voice-${b()}`}),c({message:o,sessionId:y,sessionKey:g,thinking:`low`,deliver:!1,messageChannel:`node`,inputProvenance:{kind:`external_user`,sourceChannel:`voice`,sourceTool:`gateway.voice.transcript`},senderIsOwner:!1},e,t.deps).catch(e=>{t.logGateway.warn(`agent failed node=${r}: ${_(e)}`)});return}case`agent.request`:{if(!a.payloadJSON)return;let i=null;try{i=JSON.parse(a.payloadJSON)}catch{return}let o=(i?.message??``).trim(),s=y(i?.attachments??void 0),l=[];if(s.length>0)try{let e=await g(o,s,{maxBytes:5e6,log:t.logGateway});o=e.message.trim(),l=e.images}catch{return}if(!o||o.length>2e4)return;let u=m(typeof i?.channel==`string`?i.channel.trim():``)??void 0,f=typeof i?.to==`string`&&i.to.trim()?i.to.trim():void 0,p=!!i?.deliver,h=!!i?.receipt,v=(typeof i?.receiptText==`string`?i.receiptText.trim():``)||`Just received your iOS share + request, working on it.`,x=(i?.sessionKey??``).trim(),S=x.length>0?x:`node-${r}`,C=n(),{storePath:w,entry:T,canonicalKey:E}=d(S),D=Date.now(),O=T?.sessionId??b();if(await k({cfg:C,sessionKey:S,storePath:w,canonicalKey:E,entry:T,sessionId:O,now:D}),p&&(!u||!f)){let e=typeof T?.lastChannel==`string`?m(T.lastChannel):void 0,t=typeof T?.lastTo==`string`?T.lastTo.trim():``;!u&&e&&(u=e),!f&&t&&(f=t)}let A=p&&!!(u&&f),j=A?u:void 0,M=A?f:void 0;p&&!A&&t.logGateway.warn(`agent delivery disabled node=${r}: missing session delivery route (channel=${u??`-`} to=${f??`-`})`),h&&j&&M?N({cfg:C,deps:t.deps,sessionKey:E,channel:j,to:M,text:v}).catch(e=>{t.logGateway.warn(`agent receipt failed node=${r}: ${_(e)}`)}):h&&t.logGateway.warn(`agent receipt skipped node=${r}: missing delivery route (channel=${j??`-`} to=${M??`-`})`),c({message:o,images:l,sessionId:O,sessionKey:E,thinking:i?.thinking??void 0,deliver:A,to:M,channel:j,timeout:typeof i?.timeoutSeconds==`number`?i.timeoutSeconds.toString():void 0,messageChannel:`node`,senderIsOwner:!1},e,t.deps).catch(e=>{t.logGateway.warn(`agent failed node=${r}: ${_(e)}`)});return}case`notifications.changed`:{let e=M(a.payloadJSON);if(!e)return;let t=C(e.change)?.toLowerCase();if(t!==`posted`&&t!==`removed`)return;let n=C(e.key);if(!n)return;let{canonicalKey:o}=d(C(e.sessionKey)??`node-${r}`),s=C(e.packageName),c=O(C(e.title)??``),u=O(C(e.text)??``),f=`Notification ${t} (node=${r} key=${n}`;if(s&&(f+=` package=${s}`),f+=`)`,t===`posted`){let e=[c,u].filter(Boolean);e.length>0&&(f+=`: ${e.join(` - `)}`)}l(f,{sessionKey:o,contextKey:`notification:${n}`})&&i({reason:`notifications-event`,sessionKey:o});return}case`chat.subscribe`:{if(!a.payloadJSON)return;let e=j(a.payloadJSON);if(!e)return;t.nodeSubscribe(r,e);return}case`chat.unsubscribe`:{if(!a.payloadJSON)return;let e=j(a.payloadJSON);if(!e)return;t.nodeUnsubscribe(r,e);return}case`exec.started`:case`exec.finished`:case`exec.denied`:{let e=M(a.payloadJSON);if(!e)return;let t=typeof e.sessionKey==`string`?e.sessionKey.trim():`node-${r}`;if(!t||n().tools?.exec?.notifyOnExit===!1||e.suppressNotifyOnExit===!0)return;let o=typeof e.runId==`string`?e.runId.trim():``,s=typeof e.command==`string`?e.command.trim():``,c=typeof e.exitCode==`number`&&Number.isFinite(e.exitCode)?e.exitCode:void 0,u=e.timedOut===!0,d=typeof e.output==`string`?e.output.trim():``,f=typeof e.reason==`string`?e.reason.trim():``,m=``;if(a.event===`exec.started`)m=`Exec started (node=${r}${o?` id=${o}`:``})`,s&&(m+=`: ${s}`);else if(a.event===`exec.finished`){let e=u?`timeout`:`code ${c??`?`}`,t=D(d);if(!(u||c!==0||t.length>0))return;m=`Exec finished (node=${r}${o?` id=${o}`:``}, ${e})`,t&&(m+=`\n${t}`)}else m=`Exec denied (node=${r}${o?` id=${o}`:``}${f?`, ${f}`:``})`,s&&(m+=`: ${s}`);l(m,{sessionKey:t,contextKey:o?`exec:${o}`:`exec`}),i(p(t,{reason:`exec-event`}));return}case`push.apns.register`:{let e=M(a.payloadJSON);if(!e)return;let n=typeof e.token==`string`?e.token:``,i=typeof e.topic==`string`?e.topic:``,o=e.environment;try{await v({nodeId:r,token:n,topic:i,environment:o})}catch(e){t.logGateway.warn(`push apns register failed node=${r}: ${_(e)}`)}return}default:return}};export{P as handleNodeEvent};
2
- //# sourceMappingURL=server-node-events-CL0pWoMa.js.map
@@ -1,2 +1 @@
1
1
  import{p as e}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{Lt as t,jo as n}from"./auth-profiles-C8rZRS0X.js";import"./agent-scope-DAWJwFfl.js";import{l as r,p as i}from"./session-key-C7F_iqYg.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import{r as a}from"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-vNcod64S.js";import"./send-CyarIb2w.js";import{Cn as o,O as s,bt as c,sr as l,st as u,w as d}from"./compact-CYbPi7_-.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DZzS67GS.js";import"./tokens-DRM8vzJx.js";import"./with-timeout-c1CzdShT.js";import{t as f}from"./deliver-SqSusZP3.js";import"./diagnostic-D1H7_8QG.js";import"./send-Dj7NBAWg.js";import"./pi-model-discovery-BPkhPDMr.js";import"./exec-approvals-allowlist-CGjRWREs.js";import"./exec-safe-bin-runtime-policy-v44u39fl.js";import"./model-catalog-mt0IcDfR.js";import"./fetch-B4bz67_N.js";import"./audio-transcription-runner-BIKj1CBU.js";import"./fetch-guard-DaZmvp-L.js";import"./image-BVbOr9yV.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-BpEL4aeX.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-DdjufzKF.js";import"./render-DrrPmnMI.js";import"./target-errors-D6wejRd6.js";import"./commands-Dy7duWlt.js";import"./commands-registry-DT6FDUev.js";import"./session-cost-usage-CHtVgnE8.js";import{c as p,o as m,s as h}from"./session-utils-Bpdyx2A2.js";import"./sqlite-CILF3z9U.js";import"./call-BWx7hNtl.js";import"./pi-tools.policy-B6q8YOfg.js";import"./pairing-store-BaaVy1zB.js";import"./fetch-Dh-apy46.js";import"./skill-commands-DCqPy_Aa.js";import"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-zdbQ951y.js";import"./channel-activity-BhiLsKvM.js";import"./tables-DENKrP-W.js";import"./kill-tree-D6nPx1_o.js";import"./runtime-web-tools-BYhCkBV8.js";import"./runtime-CK7gqwEF.js";import"./node-shell-BVZylVP6.js";import"./stagger-DxzgG2jd.js";import"./channel-selection-BPxE8JR7.js";import"./plugin-auto-enable-adba5Evb.js";import"./send-ChILboDj.js";import"./outbound-attachment-CVcDBkAD.js";import"./delivery-queue-nkPJu0fY.js";import"./send-COpehmAB.js";import"./system-run-command-DsWBVvSK.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-BEjtBf5Z.js";import"./connection-auth-CjaeEu5D.js";import"./onboard-helpers-DOlI17Ac.js";import"./prompt-style-BThRSQJR.js";import"./pairing-labels-CZ-aX-up.js";import"./search-manager-CV2YsAym.js";import"./manager-CxZRoQkE.js";import"./memory-cli-C8fBBPgv.js";import"./links-CBnmRP9D.js";import"./cli-utils-BleB1eys.js";import"./help-format-B4aEI7V9.js";import"./progress-d1m2sqR1.js";import"./exec-approvals-BXO9Cezj.js";import{c as g,l as _,r as v,s as y}from"./push-apns-DIV5dBPP.js";import{randomUUID as b}from"node:crypto";const x=1500,S=new Map;function C(e){if(typeof e!=`string`)return null;let t=e.trim();return t.length>0?t:null}function w(e){return typeof e==`number`&&Number.isFinite(e)?Math.trunc(e):null}function T(e,t){let n=C(e.eventId)??C(e.providerEventId)??C(e.transcriptId);if(n)return`event:${n}`;let r=C(e.providerCallId)??C(e.callId),i=w(e.sequence)??w(e.seq);if(r&&i!==null)return`call-seq:${r}:${i}`;let a=w(e.timestamp)??w(e.ts)??w(e.eventTimestamp);return r&&a!==null?`call-ts:${r}:${a}`:a===null?`text:${t}`:`timestamp:${a}|text:${t}`}function E(e){let t=S.get(e.sessionKey);if(t&&t.fingerprint===e.fingerprint&&e.now-t.ts<=x)return!0;if(S.set(e.sessionKey,{fingerprint:e.fingerprint,ts:e.now}),S.size>200){let t=e.now-x*2;for(let[e,n]of S)if(n.ts<t&&S.delete(e),S.size<=200)break;for(;S.size>200;){let e=S.keys().next().value;if(e===void 0)break;S.delete(e)}}return!1}function D(e){let t=e.replace(/\s+/g,` `).trim();return t?t.length<=180?t:`${t.slice(0,179)}…`:``}function O(e){let t=e.replace(/\s+/g,` `).trim();return t?t.length<=120?t:`${t.slice(0,119)}…`:``}async function k(e){let{storePath:n}=e;n&&await t(n,t=>{let n=p({cfg:e.cfg,key:e.sessionKey,store:t});h({store:t,canonicalKey:n.canonicalKey,candidates:n.storeKeys}),t[e.canonicalKey]={sessionId:e.sessionId,updatedAt:e.now,thinkingLevel:e.entry?.thinkingLevel,verboseLevel:e.entry?.verboseLevel,reasoningLevel:e.entry?.reasoningLevel,systemSent:e.entry?.systemSent,sendPolicy:e.entry?.sendPolicy,lastChannel:e.entry?.lastChannel,lastTo:e.entry?.lastTo}})}function A(e){k({cfg:e.cfg,sessionKey:e.sessionKey,storePath:e.storePath,canonicalKey:e.canonicalKey,entry:e.entry,sessionId:e.sessionId,now:e.now}).catch(t=>{e.ctx.logGateway.warn(`voice session-store update failed: `+_(t))})}function j(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!=`object`||!t)return null;let n=t,r=typeof n.sessionKey==`string`?n.sessionKey.trim():``;return r.length>0?r:null}function M(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}return typeof t==`object`&&t?t:null}async function N(e){let t=c({channel:e.channel,to:e.to,cfg:e.cfg,mode:`explicit`});if(!t.ok)throw Error(String(t.error));let n=l({cfg:e.cfg,sessionKey:e.sessionKey});await f({cfg:e.cfg,channel:e.channel,to:t.to,payloads:[{text:e.text}],session:n,bestEffort:!0,deps:s(e.deps)})}const P=async(t,s,c)=>{switch(c.event){case`voice.transcript`:{let i=M(c.payloadJSON);if(!i)return;let a=typeof i.text==`string`?i.text.trim():``;if(!a||a.length>2e4)return;let o=typeof i.sessionKey==`string`?i.sessionKey.trim():``,l=n(),u=r(l.session?.mainKey),f=o.length>0?o:u,{storePath:p,entry:h,canonicalKey:g}=m(f),v=Date.now();if(E({sessionKey:g,fingerprint:T(i,a),now:v}))return;let y=h?.sessionId??b();A({ctx:t,cfg:l,sessionKey:f,storePath:p,canonicalKey:g,entry:h,sessionId:y,now:v}),t.addChatRun(y,{sessionKey:g,clientRunId:`voice-${b()}`}),d({message:a,sessionId:y,sessionKey:g,thinking:`low`,deliver:!1,messageChannel:`node`,inputProvenance:{kind:`external_user`,sourceChannel:`voice`,sourceTool:`gateway.voice.transcript`},senderIsOwner:!1},e,t.deps).catch(e=>{t.logGateway.warn(`agent failed node=${s}: ${_(e)}`)});return}case`agent.request`:{if(!c.payloadJSON)return;let r=null;try{r=JSON.parse(c.payloadJSON)}catch{return}let i=(r?.message??``).trim(),o=y(r?.attachments??void 0),l=[];if(o.length>0)try{let e=await g(i,o,{maxBytes:5e6,log:t.logGateway});i=e.message.trim(),l=e.images}catch{return}if(!i||i.length>2e4)return;let u=a(typeof r?.channel==`string`?r.channel.trim():``)??void 0,f=typeof r?.to==`string`&&r.to.trim()?r.to.trim():void 0,p=!!r?.deliver,h=!!r?.receipt,v=(typeof r?.receiptText==`string`?r.receiptText.trim():``)||`Just received your iOS share + request, working on it.`,x=(r?.sessionKey??``).trim(),S=x.length>0?x:`node-${s}`,C=n(),{storePath:w,entry:T,canonicalKey:E}=m(S),D=Date.now(),O=T?.sessionId??b();if(await k({cfg:C,sessionKey:S,storePath:w,canonicalKey:E,entry:T,sessionId:O,now:D}),p&&(!u||!f)){let e=typeof T?.lastChannel==`string`?a(T.lastChannel):void 0,t=typeof T?.lastTo==`string`?T.lastTo.trim():``;!u&&e&&(u=e),!f&&t&&(f=t)}let A=p&&!!(u&&f),j=A?u:void 0,M=A?f:void 0;p&&!A&&t.logGateway.warn(`agent delivery disabled node=${s}: missing session delivery route (channel=${u??`-`} to=${f??`-`})`),h&&j&&M?N({cfg:C,deps:t.deps,sessionKey:E,channel:j,to:M,text:v}).catch(e=>{t.logGateway.warn(`agent receipt failed node=${s}: ${_(e)}`)}):h&&t.logGateway.warn(`agent receipt skipped node=${s}: missing delivery route (channel=${j??`-`} to=${M??`-`})`),d({message:i,images:l,sessionId:O,sessionKey:E,thinking:r?.thinking??void 0,deliver:A,to:M,channel:j,timeout:typeof r?.timeoutSeconds==`number`?r.timeoutSeconds.toString():void 0,messageChannel:`node`,senderIsOwner:!1},e,t.deps).catch(e=>{t.logGateway.warn(`agent failed node=${s}: ${_(e)}`)});return}case`notifications.changed`:{let e=M(c.payloadJSON);if(!e)return;let t=C(e.change)?.toLowerCase();if(t!==`posted`&&t!==`removed`)return;let n=C(e.key);if(!n)return;let{canonicalKey:r}=m(C(e.sessionKey)??`node-${s}`),i=C(e.packageName),a=O(C(e.title)??``),l=O(C(e.text)??``),d=`Notification ${t} (node=${s} key=${n}`;if(i&&(d+=` package=${i}`),d+=`)`,t===`posted`){let e=[a,l].filter(Boolean);e.length>0&&(d+=`: ${e.join(` - `)}`)}o(d,{sessionKey:r,contextKey:`notification:${n}`})&&u({reason:`notifications-event`,sessionKey:r});return}case`chat.subscribe`:{if(!c.payloadJSON)return;let e=j(c.payloadJSON);if(!e)return;t.nodeSubscribe(s,e);return}case`chat.unsubscribe`:{if(!c.payloadJSON)return;let e=j(c.payloadJSON);if(!e)return;t.nodeUnsubscribe(s,e);return}case`exec.started`:case`exec.finished`:case`exec.denied`:{let e=M(c.payloadJSON);if(!e)return;let t=typeof e.sessionKey==`string`?e.sessionKey.trim():`node-${s}`;if(!t||n().tools?.exec?.notifyOnExit===!1||e.suppressNotifyOnExit===!0)return;let r=typeof e.runId==`string`?e.runId.trim():``,a=typeof e.command==`string`?e.command.trim():``,l=typeof e.exitCode==`number`&&Number.isFinite(e.exitCode)?e.exitCode:void 0,d=e.timedOut===!0,f=typeof e.output==`string`?e.output.trim():``,p=typeof e.reason==`string`?e.reason.trim():``,m=``;if(c.event===`exec.started`)m=`Exec started (node=${s}${r?` id=${r}`:``})`,a&&(m+=`: ${a}`);else if(c.event===`exec.finished`){let e=d?`timeout`:`code ${l??`?`}`,t=D(f);if(!(d||l!==0||t.length>0))return;m=`Exec finished (node=${s}${r?` id=${r}`:``}, ${e})`,t&&(m+=`\n${t}`)}else m=`Exec denied (node=${s}${r?` id=${r}`:``}${p?`, ${p}`:``})`,a&&(m+=`: ${a}`);o(m,{sessionKey:t,contextKey:r?`exec:${r}`:`exec`}),u(i(t,{reason:`exec-event`}));return}case`push.apns.register`:{let e=M(c.payloadJSON);if(!e)return;let n=typeof e.token==`string`?e.token:``,r=typeof e.topic==`string`?e.topic:``,i=e.environment;try{await v({nodeId:s,token:n,topic:r,environment:i})}catch(e){t.logGateway.warn(`push apns register failed node=${s}: ${_(e)}`)}return}default:return}};export{P as handleNodeEvent};
2
- //# sourceMappingURL=server-node-events-ChPQ984b.js.map
@@ -30,4 +30,3 @@ fi
30
30
  `)):Error(`launchctl bootstrap failed: ${e}`)}return await L([`kickstart`,`-k`,`${d}/${f}`]),C(t,[{label:`Installed LaunchAgent`,value:p},{label:`Logs`,value:l}],{leadingBlankLine:!0}),{plistPath:p}}async function me({stdout:e,env:t}){let n=t??process.env,r=R(),i=M({env:n}),a=P(n),o=`${r}/${i}`;if(ce(i)){let t=j({env:n,mode:`kickstart`,waitForPid:process.pid});if(!t.ok)throw Error(`launchd restart handoff failed: ${t.detail??`unknown error`}`);try{e.write(`${f(`Scheduled LaunchAgent restart`,o)}\n`)}catch(e){if(e?.code!==`EPIPE`)throw e}return{outcome:`scheduled`}}let s=await L([`kickstart`,`-k`,o]);if(s.code===0){try{e.write(`${f(`Restarted LaunchAgent`,o)}\n`)}catch(e){if(e?.code!==`EPIPE`)throw e}return{outcome:`completed`}}if(!G(s))throw Error(`launchctl kickstart failed: ${s.stderr||s.stdout}`.trim());await L([`enable`,o]);let c=await L([`bootstrap`,r,a]);if(c.code!==0){let e=(c.stderr||c.stdout).trim();throw K(e)?Error([`launchctl bootstrap failed: ${e}`,`LaunchAgent restart requires a logged-in macOS GUI session for this user (${r}).`,`This usually means you are running from SSH/headless context or as the wrong user (including sudo).`,"Fix: sign in to the macOS desktop as the target user and rerun `openclaw gateway restart`.",`Headless deployments should use a dedicated logged-in user session or a custom LaunchDaemon (not shipped): https://docs.openclaw.ai/gateway`].join(`
31
31
  `)):Error(`launchctl bootstrap failed: ${e}`)}let l=await L([`kickstart`,`-k`,o]);if(l.code!==0)throw Error(`launchctl kickstart failed: ${l.stderr||l.stdout}`.trim());try{e.write(`${f(`Restarted LaunchAgent`,o)}\n`)}catch(e){if(e?.code!==`EPIPE`)throw e}return{outcome:`completed`}}async function q(e){return await m(`schtasks`,e,{windowsHide:!0})}function J(e){return e.OPENCLAW_WINDOWS_TASK_NAME?.trim()||i(e.OPENCLAW_PROFILE)}function Y(e){let t=e.OPENCLAW_TASK_SCRIPT?.trim();if(t)return t;let n=e.OPENCLAW_TASK_SCRIPT_NAME?.trim()||`gateway.cmd`,r=v(e);return T.join(r,n)}function he(e){return/[ \t"]/g.test(e)?`"${e.replace(/"/g,`\\"`)}"`:e}function ge(e){let t=e.USERNAME||e.USER||e.LOGNAME;if(!t)return null;if(t.includes(`\\`))return t;let n=e.USERDOMAIN;return n?`${n}\\${t}`:t}async function _e(e){let t=Y(e);try{let e=await E.readFile(t,`utf8`),n=``,r=``,i={};for(let t of e.split(/\r?\n/)){let e=t.trim();if(!e)continue;let a=e.toLowerCase();if(!e.startsWith(`@echo`)&&!a.startsWith(`rem `)){if(a.startsWith(`set `)){let t=c(e.slice(4));t&&(i[t.key]=t.value);continue}if(a.startsWith(`cd /d `)){n=e.slice(6).trim().replace(/^"|"$/g,``);continue}r=e;break}}return r?{programArguments:d(r),...n?{workingDirectory:n}:{},...Object.keys(i).length>0?{environment:i}:{}}:null}catch{return null}}function ve(e){let t=b(e,`:`),n={},r=t.status;r&&(n.status=r);let i=t[`last run time`];i&&(n.lastRunTime=i);let a=t[`last run result`];return a&&(n.lastRunResult=a),n}function ye(e){if(!e)return null;let t=e.trim().toLowerCase();if(!t)return null;if(/^0x[0-9a-f]+$/.test(t))return`0x${t.slice(2).replace(/^0+/,``)||`0`}`;if(/^\d+$/.test(t)){let e=Number.parseInt(t,10);if(Number.isFinite(e))return`0x${e.toString(16)}`}return null}const be=new Set([`0x41301`]);function xe(e){let t=ye(e.lastRunResult);return t==null?e.status?.trim()?{status:`unknown`,detail:`Task status is locale-dependent and no numeric Last Run Result was available.`}:{status:`unknown`}:be.has(t)?{status:`running`}:{status:`stopped`,detail:`Task Last Run Result=${e.lastRunResult}; treating as not running.`}}function Se({description:e,programArguments:t,workingDirectory:n,environment:r}){let i=[`@echo off`],a=e?.trim();if(a&&(u(a,`Task description`),i.push(`rem ${a}`)),n&&i.push(`cd /d ${l(n)}`),r)for(let[e,t]of Object.entries(r))t&&e.toUpperCase()!==`PATH`&&i.push(s(e,t));let o=t.map(l).join(` `);return i.push(o),`${i.join(`\r
32
32
  `)}\r\n`}async function X(){let e=await q([`/Query`]);if(e.code===0)return;let t=e.stderr||e.stdout;throw Error(`schtasks unavailable: ${t||`unknown error`}`.trim())}async function Ce({env:e,stdout:t,programArguments:r,workingDirectory:i,environment:a,description:o}){await X();let s=Y(e);await E.mkdir(T.dirname(s),{recursive:!0});let c=Se({description:n({env:e,environment:a,description:o}),programArguments:r,workingDirectory:i,environment:a});await E.writeFile(s,c,`utf8`);let l=J(e),u=[`/Create`,`/F`,`/SC`,`ONLOGON`,`/RL`,`LIMITED`,`/TN`,l,`/TR`,he(s)],d=ge(e),f=await q(d?[...u,`/RU`,d,`/NP`,`/IT`]:u);if(f.code!==0&&d&&(f=await q(u)),f.code!==0){let e=f.stderr||f.stdout,t=/access is denied/i.test(e)?` Run PowerShell as Administrator or rerun without installing the daemon.`:``;throw Error(`schtasks create failed: ${e}${t}`.trim())}return await q([`/Run`,`/TN`,l]),C(t,[{label:`Installed Scheduled Task`,value:l},{label:`Task script`,value:s}],{leadingBlankLine:!0}),{scriptPath:s}}async function we({env:e,stdout:t}){await X(),await q([`/Delete`,`/F`,`/TN`,J(e)]);let n=Y(e);try{await E.unlink(n),t.write(`${f(`Removed task script`,n)}\n`)}catch{t.write(`Task script not found at ${n}\n`)}}function Z(e){return(e.stderr||e.stdout).toLowerCase().includes(`not running`)}async function Te({stdout:e,env:t}){await X();let n=J(t??process.env),r=await q([`/End`,`/TN`,n]);if(r.code!==0&&!Z(r))throw Error(`schtasks end failed: ${r.stderr||r.stdout}`.trim());e.write(`${f(`Stopped Scheduled Task`,n)}\n`)}async function Ee({stdout:e,env:t}){await X();let n=J(t??process.env);await q([`/End`,`/TN`,n]);let r=await q([`/Run`,`/TN`,n]);if(r.code!==0)throw Error(`schtasks run failed: ${r.stderr||r.stdout}`.trim());return e.write(`${f(`Restarted Scheduled Task`,n)}\n`),{outcome:`completed`}}async function De(e){return await X(),(await q([`/Query`,`/TN`,J(e.env??process.env)])).code===0}async function Oe(e=process.env){try{await X()}catch(e){return{status:`unknown`,detail:String(e)}}let t=await q([`/Query`,`/TN`,J(e),`/V`,`/FO`,`LIST`]);if(t.code!==0){let e=(t.stderr||t.stdout).trim(),n=e.toLowerCase().includes(`cannot find the file`);return{status:n?`stopped`:`unknown`,detail:e||void 0,missingUnit:n}}let n=ve(t.stdout||``),r=xe(n);return{status:r.status,state:n.status,lastRunTime:n.lastRunTime,lastRunResult:n.lastRunResult,...r.detail?{detail:r.detail}:{}}}function Q(e){return async t=>{await e(t)}}function ke(e,t){return t.outcome===`scheduled`?{scheduled:!0,daemonActionResult:`scheduled`,message:`restart scheduled, ${e.toLowerCase()} will restart momentarily`,progressMessage:`${e} service restart scheduled.`}:{scheduled:!1,daemonActionResult:`restarted`,message:`${e} service restarted.`,progressMessage:`${e} service restarted.`}}const $={darwin:{label:`LaunchAgent`,loadedText:`loaded`,notLoadedText:`not loaded`,install:Q(pe),uninstall:de,stop:fe,restart:me,isLoaded:V,readCommand:le,readRuntime:W},linux:{label:`systemd`,loadedText:`enabled`,notLoadedText:`disabled`,install:Q(te),uninstall:g,stop:y,restart:h,isLoaded:x,readCommand:p,readRuntime:ee},win32:{label:`Scheduled Task`,loadedText:`registered`,notLoadedText:`missing`,install:Q(Ce),uninstall:we,stop:Te,restart:Ee,isLoaded:De,readCommand:_e,readRuntime:Oe}};function Ae(e){return Object.hasOwn($,e)}function je(){if(Ae(process.platform))return $[process.platform];throw Error(`Gateway service install not supported on ${process.platform}`)}export{V as a,F as c,H as i,P as l,je as n,U as o,q as r,ue as s,ke as t,j as u};
33
- //# sourceMappingURL=service-BtB9epJk.js.map
@@ -30,4 +30,3 @@ fi
30
30
  `)):Error(`launchctl bootstrap failed: ${e}`)}return await L([`kickstart`,`-k`,`${d}/${f}`]),S(t,[{label:`Installed LaunchAgent`,value:p},{label:`Logs`,value:l}],{leadingBlankLine:!0}),{plistPath:p}}async function me({stdout:e,env:t}){let n=t??process.env,r=R(),i=M({env:n}),a=P(n),o=`${r}/${i}`;if(ce(i)){let t=j({env:n,mode:`kickstart`,waitForPid:process.pid});if(!t.ok)throw Error(`launchd restart handoff failed: ${t.detail??`unknown error`}`);try{e.write(`${f(`Scheduled LaunchAgent restart`,o)}\n`)}catch(e){if(e?.code!==`EPIPE`)throw e}return{outcome:`scheduled`}}let s=await L([`kickstart`,`-k`,o]);if(s.code===0){try{e.write(`${f(`Restarted LaunchAgent`,o)}\n`)}catch(e){if(e?.code!==`EPIPE`)throw e}return{outcome:`completed`}}if(!G(s))throw Error(`launchctl kickstart failed: ${s.stderr||s.stdout}`.trim());await L([`enable`,o]);let c=await L([`bootstrap`,r,a]);if(c.code!==0){let e=(c.stderr||c.stdout).trim();throw K(e)?Error([`launchctl bootstrap failed: ${e}`,`LaunchAgent restart requires a logged-in macOS GUI session for this user (${r}).`,`This usually means you are running from SSH/headless context or as the wrong user (including sudo).`,"Fix: sign in to the macOS desktop as the target user and rerun `openclaw gateway restart`.",`Headless deployments should use a dedicated logged-in user session or a custom LaunchDaemon (not shipped): https://docs.openclaw.ai/gateway`].join(`
31
31
  `)):Error(`launchctl bootstrap failed: ${e}`)}let l=await L([`kickstart`,`-k`,o]);if(l.code!==0)throw Error(`launchctl kickstart failed: ${l.stderr||l.stdout}`.trim());try{e.write(`${f(`Restarted LaunchAgent`,o)}\n`)}catch(e){if(e?.code!==`EPIPE`)throw e}return{outcome:`completed`}}async function q(e){return await m(`schtasks`,e,{windowsHide:!0})}function J(e){return e.OPENCLAW_WINDOWS_TASK_NAME?.trim()||i(e.OPENCLAW_PROFILE)}function Y(e){let t=e.OPENCLAW_TASK_SCRIPT?.trim();if(t)return t;let n=e.OPENCLAW_TASK_SCRIPT_NAME?.trim()||`gateway.cmd`,r=v(e);return T.join(r,n)}function he(e){return/[ \t"]/g.test(e)?`"${e.replace(/"/g,`\\"`)}"`:e}function ge(e){let t=e.USERNAME||e.USER||e.LOGNAME;if(!t)return null;if(t.includes(`\\`))return t;let n=e.USERDOMAIN;return n?`${n}\\${t}`:t}async function _e(e){let t=Y(e);try{let e=await E.readFile(t,`utf8`),n=``,r=``,i={};for(let t of e.split(/\r?\n/)){let e=t.trim();if(!e)continue;let a=e.toLowerCase();if(!e.startsWith(`@echo`)&&!a.startsWith(`rem `)){if(a.startsWith(`set `)){let t=c(e.slice(4));t&&(i[t.key]=t.value);continue}if(a.startsWith(`cd /d `)){n=e.slice(6).trim().replace(/^"|"$/g,``);continue}r=e;break}}return r?{programArguments:d(r),...n?{workingDirectory:n}:{},...Object.keys(i).length>0?{environment:i}:{}}:null}catch{return null}}function ve(e){let t=y(e,`:`),n={},r=t.status;r&&(n.status=r);let i=t[`last run time`];i&&(n.lastRunTime=i);let a=t[`last run result`];return a&&(n.lastRunResult=a),n}function ye(e){if(!e)return null;let t=e.trim().toLowerCase();if(!t)return null;if(/^0x[0-9a-f]+$/.test(t))return`0x${t.slice(2).replace(/^0+/,``)||`0`}`;if(/^\d+$/.test(t)){let e=Number.parseInt(t,10);if(Number.isFinite(e))return`0x${e.toString(16)}`}return null}const be=new Set([`0x41301`]);function xe(e){let t=ye(e.lastRunResult);return t==null?e.status?.trim()?{status:`unknown`,detail:`Task status is locale-dependent and no numeric Last Run Result was available.`}:{status:`unknown`}:be.has(t)?{status:`running`}:{status:`stopped`,detail:`Task Last Run Result=${e.lastRunResult}; treating as not running.`}}function Se({description:e,programArguments:t,workingDirectory:n,environment:r}){let i=[`@echo off`],a=e?.trim();if(a&&(u(a,`Task description`),i.push(`rem ${a}`)),n&&i.push(`cd /d ${l(n)}`),r)for(let[e,t]of Object.entries(r))t&&e.toUpperCase()!==`PATH`&&i.push(s(e,t));let o=t.map(l).join(` `);return i.push(o),`${i.join(`\r
32
32
  `)}\r\n`}async function X(){let e=await q([`/Query`]);if(e.code===0)return;let t=e.stderr||e.stdout;throw Error(`schtasks unavailable: ${t||`unknown error`}`.trim())}async function Ce({env:e,stdout:t,programArguments:r,workingDirectory:i,environment:a,description:o}){await X();let s=Y(e);await E.mkdir(T.dirname(s),{recursive:!0});let c=Se({description:n({env:e,environment:a,description:o}),programArguments:r,workingDirectory:i,environment:a});await E.writeFile(s,c,`utf8`);let l=J(e),u=[`/Create`,`/F`,`/SC`,`ONLOGON`,`/RL`,`LIMITED`,`/TN`,l,`/TR`,he(s)],d=ge(e),f=await q(d?[...u,`/RU`,d,`/NP`,`/IT`]:u);if(f.code!==0&&d&&(f=await q(u)),f.code!==0){let e=f.stderr||f.stdout,t=/access is denied/i.test(e)?` Run PowerShell as Administrator or rerun without installing the daemon.`:``;throw Error(`schtasks create failed: ${e}${t}`.trim())}return await q([`/Run`,`/TN`,l]),S(t,[{label:`Installed Scheduled Task`,value:l},{label:`Task script`,value:s}],{leadingBlankLine:!0}),{scriptPath:s}}async function we({env:e,stdout:t}){await X(),await q([`/Delete`,`/F`,`/TN`,J(e)]);let n=Y(e);try{await E.unlink(n),t.write(`${f(`Removed task script`,n)}\n`)}catch{t.write(`Task script not found at ${n}\n`)}}function Z(e){return(e.stderr||e.stdout).toLowerCase().includes(`not running`)}async function Te({stdout:e,env:t}){await X();let n=J(t??process.env),r=await q([`/End`,`/TN`,n]);if(r.code!==0&&!Z(r))throw Error(`schtasks end failed: ${r.stderr||r.stdout}`.trim());e.write(`${f(`Stopped Scheduled Task`,n)}\n`)}async function Ee({stdout:e,env:t}){await X();let n=J(t??process.env);await q([`/End`,`/TN`,n]);let r=await q([`/Run`,`/TN`,n]);if(r.code!==0)throw Error(`schtasks run failed: ${r.stderr||r.stdout}`.trim());return e.write(`${f(`Restarted Scheduled Task`,n)}\n`),{outcome:`completed`}}async function De(e){return await X(),(await q([`/Query`,`/TN`,J(e.env??process.env)])).code===0}async function Oe(e=process.env){try{await X()}catch(e){return{status:`unknown`,detail:String(e)}}let t=await q([`/Query`,`/TN`,J(e),`/V`,`/FO`,`LIST`]);if(t.code!==0){let e=(t.stderr||t.stdout).trim(),n=e.toLowerCase().includes(`cannot find the file`);return{status:n?`stopped`:`unknown`,detail:e||void 0,missingUnit:n}}let n=ve(t.stdout||``),r=xe(n);return{status:r.status,state:n.status,lastRunTime:n.lastRunTime,lastRunResult:n.lastRunResult,...r.detail?{detail:r.detail}:{}}}function Q(e){return async t=>{await e(t)}}function ke(e,t){return t.outcome===`scheduled`?{scheduled:!0,daemonActionResult:`scheduled`,message:`restart scheduled, ${e.toLowerCase()} will restart momentarily`,progressMessage:`${e} service restart scheduled.`}:{scheduled:!1,daemonActionResult:`restarted`,message:`${e} service restarted.`,progressMessage:`${e} service restarted.`}}const $={darwin:{label:`LaunchAgent`,loadedText:`loaded`,notLoadedText:`not loaded`,install:Q(pe),uninstall:de,stop:fe,restart:me,isLoaded:V,readCommand:le,readRuntime:W},linux:{label:`systemd`,loadedText:`enabled`,notLoadedText:`disabled`,install:Q(ne),uninstall:g,stop:ee,restart:h,isLoaded:b,readCommand:p,readRuntime:te},win32:{label:`Scheduled Task`,loadedText:`registered`,notLoadedText:`missing`,install:Q(Ce),uninstall:we,stop:Te,restart:Ee,isLoaded:De,readCommand:_e,readRuntime:Oe}};function Ae(e){return Object.hasOwn($,e)}function je(){if(Ae(process.platform))return $[process.platform];throw Error(`Gateway service install not supported on ${process.platform}`)}export{V as a,F as c,H as i,P as l,je as n,U as o,q as r,ue as s,ke as t,j as u};
33
- //# sourceMappingURL=service-DZ9EbS15.js.map
@@ -1,2 +1 @@
1
1
  import{E as e,P as t,j as n,v as r}from"./subsystem-C5XF2Fy5.js";import{c as i,y as a}from"./utils-UGOV_184.js";import{Ml as o}from"./model-selection-BLbnMb5E.js";import{t as s}from"./command-format-BbDT1tlm.js";import{Q as c,X as l,et as u,nt as d,tt as f}from"./plugins-CYLrFT4h.js";import p from"node:fs";import"node:crypto";import{DisconnectReason as m,fetchLatestBaileysVersion as h,makeCacheableSignalKeyStore as g,makeWASocket as _,useMultiFileAuthState as v}from"@whiskeysockets/baileys";import y from"qrcode-terminal";let b=Promise.resolve();function x(e,t,n){b=b.then(()=>S(e,t,n)).catch(e=>{n.warn({error:String(e)},`WhatsApp creds save queue error`)})}async function S(e,t,n){try{let t=d(e),n=f(e),r=c(t);if(r)try{JSON.parse(r),p.copyFileSync(t,n);try{p.chmodSync(n,384)}catch{}}catch{}}catch{}try{await Promise.resolve(t());try{p.chmodSync(d(e),384)}catch{}}catch(e){n.warn({error:String(e)},`failed saving WhatsApp creds`)}}async function C(c,d,f={}){let p=t(n({module:`baileys`},{level:d?`info`:`silent`}),d?`info`:`silent`),b=a(f.authDir??u());await i(b);let S=n({module:`web-session`});l(b);let{state:C,saveCreds:w}=await v(b),{version:E}=await h(),D=_({auth:{creds:C.creds,keys:g(C.keys,p)},version:E,logger:p,printQRInTerminal:!1,browser:[`openclaw`,`cli`,o],syncFullHistory:!1,markOnlineOnConnect:!1});return D.ev.on(`creds.update`,()=>x(b,w,S)),D.ev.on(`connection.update`,t=>{try{let{connection:n,lastDisconnect:i,qr:a}=t;a&&(f.onQr?.(a),c&&(console.log(`Scan this QR in WhatsApp (Linked Devices):`),y.generate(a,{small:!0}))),n===`close`&&T(i?.error)===m.loggedOut&&console.error(r(`WhatsApp session logged out. Run: ${s(`openclaw channels login`)}`)),n===`open`&&d&&console.log(e(`WhatsApp Web connected.`))}catch(e){S.error({error:String(e)},`connection.update handler error`)}}),D.ws&&typeof D.ws.on==`function`&&D.ws.on(`error`,e=>{S.error({error:String(e)},`WebSocket error`)}),D}async function w(e){return new Promise((t,n)=>{let r=e.ev,i=(...e)=>{let a=e[0]??{};a.connection===`open`&&(r.off?.(`connection.update`,i),t()),a.connection===`close`&&(r.off?.(`connection.update`,i),n(a.lastDisconnect??Error(`Connection closed`)))};e.ev.on(`connection.update`,i)})}function T(e){return e?.output?.statusCode??e?.status}function E(e,t=800){try{let n=new WeakSet,r=JSON.stringify(e,(e,t)=>{if(typeof t==`bigint`)return t.toString();if(typeof t==`function`){let e=t.name;return`[Function ${typeof e==`string`&&e.length>0?e:`anonymous`}]`}if(typeof t==`object`&&t){if(n.has(t))return`[Circular]`;n.add(t)}return t},2);return r?r.length>t?`${r.slice(0,t)}…`:r:String(e)}catch{return String(e)}}function D(e){if(!e||typeof e!=`object`)return null;let t=e?.output;if(!t||typeof t!=`object`)return null;let n=t.payload,r=typeof t.statusCode==`number`?t.statusCode:typeof n?.statusCode==`number`?n.statusCode:void 0,i=typeof n?.error==`string`?n.error:void 0,a=typeof n?.message==`string`?n.message:void 0;return!r&&!i&&!a?null:{statusCode:r,error:i,message:a}}function O(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;if(!e||typeof e!=`object`)return String(e);let t=D(e)??D(e?.error)??D(e?.lastDisconnect?.error),n=t?.statusCode??T(e),r=e?.code,i=typeof r==`string`||typeof r==`number`?String(r):void 0,a=[t?.message,typeof e?.message==`string`?e.message:void 0,typeof e?.error?.message==`string`?e.error?.message:void 0].filter(e=>!!(e&&e.trim().length>0))[0],o=[];return typeof n==`number`&&o.push(`status=${n}`),t?.error&&o.push(t.error),a&&o.push(a),i&&o.push(`code=${i}`),o.length>0?o.join(` `):E(e)}export{w as i,O as n,T as r,C as t};
2
- //# sourceMappingURL=session-BSRnpwSq.js.map
@@ -1,2 +1 @@
1
1
  import{S as e,b as t,h as n,l as r}from"./subsystem-Bc2XrjUz.js";import{a as i,h as a}from"./utils-D3t-vPka.js";import{Dr as o,Er as s,Ms as c,Or as l,Sr as u,Ws as d,wr as f}from"./model-selection-D7mdJmGK.js";import p from"node:fs";import"node:crypto";import{DisconnectReason as m,fetchLatestBaileysVersion as h,makeCacheableSignalKeyStore as g,makeWASocket as _,useMultiFileAuthState as v}from"@whiskeysockets/baileys";import y from"qrcode-terminal";let b=Promise.resolve();function x(e,t,n){b=b.then(()=>S(e,t,n)).catch(e=>{n.warn({error:String(e)},`WhatsApp creds save queue error`)})}async function S(e,t,n){try{let t=l(e),n=o(e),r=f(t);if(r)try{JSON.parse(r),p.copyFileSync(t,n);try{p.chmodSync(n,384)}catch{}}catch{}}catch{}try{await Promise.resolve(t());try{p.chmodSync(l(e),384)}catch{}}catch(e){n.warn({error:String(e)},`failed saving WhatsApp creds`)}}async function C(o,l,f={}){let p=e(t({module:`baileys`},{level:l?`info`:`silent`}),l?`info`:`silent`),b=a(f.authDir??s());await i(b);let S=t({module:`web-session`});u(b);let{state:C,saveCreds:w}=await v(b),{version:E}=await h(),D=_({auth:{creds:C.creds,keys:g(C.keys,p)},version:E,logger:p,printQRInTerminal:!1,browser:[`openclaw`,`cli`,c],syncFullHistory:!1,markOnlineOnConnect:!1});return D.ev.on(`creds.update`,()=>x(b,w,S)),D.ev.on(`connection.update`,e=>{try{let{connection:t,lastDisconnect:i,qr:a}=e;a&&(f.onQr?.(a),o&&(console.log(`Scan this QR in WhatsApp (Linked Devices):`),y.generate(a,{small:!0}))),t===`close`&&T(i?.error)===m.loggedOut&&console.error(r(`WhatsApp session logged out. Run: ${d(`openclaw channels login`)}`)),t===`open`&&l&&console.log(n(`WhatsApp Web connected.`))}catch(e){S.error({error:String(e)},`connection.update handler error`)}}),D.ws&&typeof D.ws.on==`function`&&D.ws.on(`error`,e=>{S.error({error:String(e)},`WebSocket error`)}),D}async function w(e){return new Promise((t,n)=>{let r=e.ev,i=(...e)=>{let a=e[0]??{};a.connection===`open`&&(r.off?.(`connection.update`,i),t()),a.connection===`close`&&(r.off?.(`connection.update`,i),n(a.lastDisconnect??Error(`Connection closed`)))};e.ev.on(`connection.update`,i)})}function T(e){return e?.output?.statusCode??e?.status}function E(e,t=800){try{let n=new WeakSet,r=JSON.stringify(e,(e,t)=>{if(typeof t==`bigint`)return t.toString();if(typeof t==`function`){let e=t.name;return`[Function ${typeof e==`string`&&e.length>0?e:`anonymous`}]`}if(typeof t==`object`&&t){if(n.has(t))return`[Circular]`;n.add(t)}return t},2);return r?r.length>t?`${r.slice(0,t)}…`:r:String(e)}catch{return String(e)}}function D(e){if(!e||typeof e!=`object`)return null;let t=e?.output;if(!t||typeof t!=`object`)return null;let n=t.payload,r=typeof t.statusCode==`number`?t.statusCode:typeof n?.statusCode==`number`?n.statusCode:void 0,i=typeof n?.error==`string`?n.error:void 0,a=typeof n?.message==`string`?n.message:void 0;return!r&&!i&&!a?null:{statusCode:r,error:i,message:a}}function O(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;if(!e||typeof e!=`object`)return String(e);let t=D(e)??D(e?.error)??D(e?.lastDisconnect?.error),n=t?.statusCode??T(e),r=e?.code,i=typeof r==`string`||typeof r==`number`?String(r):void 0,a=[t?.message,typeof e?.message==`string`?e.message:void 0,typeof e?.error?.message==`string`?e.error?.message:void 0].filter(e=>!!(e&&e.trim().length>0))[0],o=[];return typeof n==`number`&&o.push(`status=${n}`),t?.error&&o.push(t.error),a&&o.push(a),i&&o.push(`code=${i}`),o.length>0?o.join(` `):E(e)}export{w as i,O as n,T as r,C as t};
2
- //# sourceMappingURL=session-CfHCnrXh.js.map
@@ -1,2 +1 @@
1
1
  import{I as e,K as t,V as n,l as r,q as i,y as a}from"./logger-DwWqfo66.js";import{Dr as o,Er as s,Fs as c,Or as l,Sr as u,qs as d,wr as f}from"./model-selection-DvekK9rZ.js";import p from"node:fs";import"node:crypto";import{DisconnectReason as m,fetchLatestBaileysVersion as h,makeCacheableSignalKeyStore as g,makeWASocket as _,useMultiFileAuthState as v}from"@whiskeysockets/baileys";import y from"qrcode-terminal";let b=Promise.resolve();function x(e,t,n){b=b.then(()=>S(e,t,n)).catch(e=>{n.warn({error:String(e)},`WhatsApp creds save queue error`)})}async function S(e,t,n){try{let t=l(e),n=o(e),r=f(t);if(r)try{JSON.parse(r),p.copyFileSync(t,n);try{p.chmodSync(n,384)}catch{}}catch{}}catch{}try{await Promise.resolve(t());try{p.chmodSync(l(e),384)}catch{}}catch(e){n.warn({error:String(e)},`failed saving WhatsApp creds`)}}async function C(o,l,f={}){let p=i(t({module:`baileys`},{level:l?`info`:`silent`}),l?`info`:`silent`),b=a(f.authDir??s());await r(b);let S=t({module:`web-session`});u(b);let{state:C,saveCreds:w}=await v(b),{version:E}=await h(),D=_({auth:{creds:C.creds,keys:g(C.keys,p)},version:E,logger:p,printQRInTerminal:!1,browser:[`openclaw`,`cli`,c],syncFullHistory:!1,markOnlineOnConnect:!1});return D.ev.on(`creds.update`,()=>x(b,w,S)),D.ev.on(`connection.update`,t=>{try{let{connection:r,lastDisconnect:i,qr:a}=t;a&&(f.onQr?.(a),o&&(console.log(`Scan this QR in WhatsApp (Linked Devices):`),y.generate(a,{small:!0}))),r===`close`&&T(i?.error)===m.loggedOut&&console.error(e(`WhatsApp session logged out. Run: ${d(`openclaw channels login`)}`)),r===`open`&&l&&console.log(n(`WhatsApp Web connected.`))}catch(e){S.error({error:String(e)},`connection.update handler error`)}}),D.ws&&typeof D.ws.on==`function`&&D.ws.on(`error`,e=>{S.error({error:String(e)},`WebSocket error`)}),D}async function w(e){return new Promise((t,n)=>{let r=e.ev,i=(...e)=>{let a=e[0]??{};a.connection===`open`&&(r.off?.(`connection.update`,i),t()),a.connection===`close`&&(r.off?.(`connection.update`,i),n(a.lastDisconnect??Error(`Connection closed`)))};e.ev.on(`connection.update`,i)})}function T(e){return e?.output?.statusCode??e?.status}function E(e,t=800){try{let n=new WeakSet,r=JSON.stringify(e,(e,t)=>{if(typeof t==`bigint`)return t.toString();if(typeof t==`function`){let e=t.name;return`[Function ${typeof e==`string`&&e.length>0?e:`anonymous`}]`}if(typeof t==`object`&&t){if(n.has(t))return`[Circular]`;n.add(t)}return t},2);return r?r.length>t?`${r.slice(0,t)}…`:r:String(e)}catch{return String(e)}}function D(e){if(!e||typeof e!=`object`)return null;let t=e?.output;if(!t||typeof t!=`object`)return null;let n=t.payload,r=typeof t.statusCode==`number`?t.statusCode:typeof n?.statusCode==`number`?n.statusCode:void 0,i=typeof n?.error==`string`?n.error:void 0,a=typeof n?.message==`string`?n.message:void 0;return!r&&!i&&!a?null:{statusCode:r,error:i,message:a}}function O(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;if(!e||typeof e!=`object`)return String(e);let t=D(e)??D(e?.error)??D(e?.lastDisconnect?.error),n=t?.statusCode??T(e),r=e?.code,i=typeof r==`string`||typeof r==`number`?String(r):void 0,a=[t?.message,typeof e?.message==`string`?e.message:void 0,typeof e?.error?.message==`string`?e.error?.message:void 0].filter(e=>!!(e&&e.trim().length>0))[0],o=[];return typeof n==`number`&&o.push(`status=${n}`),t?.error&&o.push(t.error),a&&o.push(a),i&&o.push(`code=${i}`),o.length>0?o.join(` `):E(e)}export{w as i,O as n,T as r,C as t};
2
- //# sourceMappingURL=session-JqCxWBM8.js.map
@@ -1,2 +1 @@
1
1
  import{E as e,P as t,j as n,v as r}from"./subsystem-BLbY429l.js";import{t as i}from"./command-format-CLxIPuLR.js";import{s as a,v as o}from"./utils-CGdo13HV.js";import{t as s}from"./version-q3SkUw2K.js";import{Q as c,X as l,et as u,nt as d,tt as f}from"./plugins-DNlgeTTc.js";import p from"node:fs";import"node:crypto";import{DisconnectReason as m,fetchLatestBaileysVersion as h,makeCacheableSignalKeyStore as g,makeWASocket as _,useMultiFileAuthState as v}from"@whiskeysockets/baileys";import y from"qrcode-terminal";let b=Promise.resolve();function x(e,t,n){b=b.then(()=>S(e,t,n)).catch(e=>{n.warn({error:String(e)},`WhatsApp creds save queue error`)})}async function S(e,t,n){try{let t=d(e),n=f(e),r=c(t);if(r)try{JSON.parse(r),p.copyFileSync(t,n);try{p.chmodSync(n,384)}catch{}}catch{}}catch{}try{await Promise.resolve(t());try{p.chmodSync(d(e),384)}catch{}}catch(e){n.warn({error:String(e)},`failed saving WhatsApp creds`)}}async function C(c,d,f={}){let p=t(n({module:`baileys`},{level:d?`info`:`silent`}),d?`info`:`silent`),b=o(f.authDir??u());await a(b);let S=n({module:`web-session`});l(b);let{state:C,saveCreds:w}=await v(b),{version:E}=await h(),D=_({auth:{creds:C.creds,keys:g(C.keys,p)},version:E,logger:p,printQRInTerminal:!1,browser:[`openclaw`,`cli`,s],syncFullHistory:!1,markOnlineOnConnect:!1});return D.ev.on(`creds.update`,()=>x(b,w,S)),D.ev.on(`connection.update`,t=>{try{let{connection:n,lastDisconnect:a,qr:o}=t;o&&(f.onQr?.(o),c&&(console.log(`Scan this QR in WhatsApp (Linked Devices):`),y.generate(o,{small:!0}))),n===`close`&&T(a?.error)===m.loggedOut&&console.error(r(`WhatsApp session logged out. Run: ${i(`openclaw channels login`)}`)),n===`open`&&d&&console.log(e(`WhatsApp Web connected.`))}catch(e){S.error({error:String(e)},`connection.update handler error`)}}),D.ws&&typeof D.ws.on==`function`&&D.ws.on(`error`,e=>{S.error({error:String(e)},`WebSocket error`)}),D}async function w(e){return new Promise((t,n)=>{let r=e.ev,i=(...e)=>{let a=e[0]??{};a.connection===`open`&&(r.off?.(`connection.update`,i),t()),a.connection===`close`&&(r.off?.(`connection.update`,i),n(a.lastDisconnect??Error(`Connection closed`)))};e.ev.on(`connection.update`,i)})}function T(e){return e?.output?.statusCode??e?.status}function E(e,t=800){try{let n=new WeakSet,r=JSON.stringify(e,(e,t)=>{if(typeof t==`bigint`)return t.toString();if(typeof t==`function`){let e=t.name;return`[Function ${typeof e==`string`&&e.length>0?e:`anonymous`}]`}if(typeof t==`object`&&t){if(n.has(t))return`[Circular]`;n.add(t)}return t},2);return r?r.length>t?`${r.slice(0,t)}…`:r:String(e)}catch{return String(e)}}function D(e){if(!e||typeof e!=`object`)return null;let t=e?.output;if(!t||typeof t!=`object`)return null;let n=t.payload,r=typeof t.statusCode==`number`?t.statusCode:typeof n?.statusCode==`number`?n.statusCode:void 0,i=typeof n?.error==`string`?n.error:void 0,a=typeof n?.message==`string`?n.message:void 0;return!r&&!i&&!a?null:{statusCode:r,error:i,message:a}}function O(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;if(!e||typeof e!=`object`)return String(e);let t=D(e)??D(e?.error)??D(e?.lastDisconnect?.error),n=t?.statusCode??T(e),r=e?.code,i=typeof r==`string`||typeof r==`number`?String(r):void 0,a=[t?.message,typeof e?.message==`string`?e.message:void 0,typeof e?.error?.message==`string`?e.error?.message:void 0].filter(e=>!!(e&&e.trim().length>0))[0],o=[];return typeof n==`number`&&o.push(`status=${n}`),t?.error&&o.push(t.error),a&&o.push(a),i&&o.push(`code=${i}`),o.length>0?o.join(` `):E(e)}export{w as i,O as n,T as r,C as t};
2
- //# sourceMappingURL=session-bk3gFwO4.js.map
@@ -1,4 +1,3 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{n as t,s as n}from"./paths-yLEk_25I.js";import{i as r,n as i,o as a,s as o,t as s}from"./chat-envelope-HVpKusFc.js";import{i as c,t as l}from"./usage-format-BWD8FJFL.js";import u from"node:fs";import d from"node:path";import f from"node:readline";function p(){return{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}const m=e=>{if(typeof e==`number`&&Number.isFinite(e))return e};function h(e){return e?[e.input,e.output,e.cacheRead,e.cacheWrite,e.total].some(e=>typeof e==`number`&&Number.isFinite(e)&&e>0):!1}function g(e){if(!e)return;let t=m(e.input??e.inputTokens??e.input_tokens??e.promptTokens??e.prompt_tokens),n=t!==void 0&&t<0?0:t,r=m(e.output??e.outputTokens??e.output_tokens??e.completionTokens??e.completion_tokens),i=m(e.cacheRead??e.cache_read??e.cache_read_input_tokens??e.cached_tokens??e.prompt_tokens_details?.cached_tokens),a=m(e.cacheWrite??e.cache_write??e.cache_creation_input_tokens),o=m(e.total??e.totalTokens??e.total_tokens);if(!(n===void 0&&r===void 0&&i===void 0&&a===void 0&&o===void 0))return{input:n,output:r,cacheRead:i,cacheWrite:a,total:o}}function _(e){if(!e)return;let t=e.input??0,n=e.cacheRead??0,r=e.cacheWrite??0,i=t+n+r;return i>0?i:void 0}function v(e){let t=e.promptTokens,n=typeof t==`number`&&Number.isFinite(t)&&t>0,r=e.usage;if(!r&&!n)return;let i=n?t:_({input:r?.input,cacheRead:r?.cacheRead,cacheWrite:r?.cacheWrite});if(!(typeof i!=`number`||!Number.isFinite(i)||i<=0))return i}var y=e({discoverAllSessions:()=>P,loadCostUsageSummary:()=>N,loadSessionCostSummary:()=>F,loadSessionLogs:()=>L,loadSessionUsageTimeSeries:()=>I});const b=()=>({input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,totalCost:0,inputCost:0,outputCost:0,cacheReadCost:0,cacheWriteCost:0,missingCostEntries:0}),x=e=>{if(typeof e==`number`&&Number.isFinite(e))return e},S=e=>{if(!e||typeof e!=`object`)return;let t=e.cost;if(!t)return;let n=x(t.total);if(!(n===void 0||n<0))return{total:n,input:x(t.input),output:x(t.output),cacheRead:x(t.cacheRead),cacheWrite:x(t.cacheWrite)}},C=e=>{let t=e.timestamp;if(typeof t==`string`){let e=new Date(t);if(!Number.isNaN(e.valueOf()))return e}let n=e.message,r=x(n?.timestamp);if(r!==void 0){let e=new Date(r);if(!Number.isNaN(e.valueOf()))return e}},w=e=>{let t=e.message;if(!t||typeof t!=`object`)return null;let n=t.role,r=n===`user`||n===`assistant`?n:void 0;if(!r)return null;let i=t.usage??e.usage,s=i?g(i)??void 0:void 0,c=(typeof t.provider==`string`?t.provider:void 0)??(typeof e.provider==`string`?e.provider:void 0),l=(typeof t.model==`string`?t.model:void 0)??(typeof e.model==`string`?e.model:void 0),u=S(i),d=typeof t.stopReason==`string`?t.stopReason:void 0,f=x(t.durationMs??e.durationMs);return{message:t,role:r,timestamp:C(e),durationMs:f,usage:s,costTotal:u?.total,costBreakdown:u,provider:c,model:l,stopReason:d,toolNames:o(t),toolResultCounts:a(t)}},T=e=>e.toLocaleDateString(`en-CA`,{timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}),E=e=>{if(!e.length)return;let t=e.toSorted((e,t)=>e-t),n=t.reduce((e,t)=>e+t,0),r=t.length,i=Math.max(0,Math.ceil(r*.95)-1);return{count:r,avgMs:n/r,p95Ms:t[i]??t[r-1],minMs:t[0],maxMs:t[r-1]}},D=(e,t)=>{e.input+=t.input??0,e.output+=t.output??0,e.cacheRead+=t.cacheRead??0,e.cacheWrite+=t.cacheWrite??0;let n=t.total??(t.input??0)+(t.output??0)+(t.cacheRead??0)+(t.cacheWrite??0);e.totalTokens+=n},O=(e,t)=>{t===void 0||t.total===void 0||(e.totalCost+=t.total,e.inputCost+=t.input??0,e.outputCost+=t.output??0,e.cacheReadCost+=t.cacheRead??0,e.cacheWriteCost+=t.cacheWrite??0)},k=(e,t)=>{if(t===void 0){e.missingCostEntries+=1;return}e.totalCost+=t};async function*A(e){let t=u.createReadStream(e,{encoding:`utf-8`}),n=f.createInterface({input:t,crlfDelay:1/0});try{for await(let e of n){let t=e.trim();if(t)try{let e=JSON.parse(t);if(!e||typeof e!=`object`)continue;yield e}catch{}}}finally{n.close(),t.destroy()}}async function j(e){for await(let t of A(e.filePath)){let n=w(t);if(n){if(n.usage&&n.costTotal===void 0){let t=c({provider:n.provider,model:n.model,config:e.config});n.costTotal=l({usage:n.usage,cost:t})}e.onEntry(n)}}}async function M(e){await j({filePath:e.filePath,config:e.config,onEntry:t=>{t.usage&&e.onEntry({usage:t.usage,costTotal:t.costTotal,costBreakdown:t.costBreakdown,provider:t.provider,model:t.model,timestamp:t.timestamp})}})}async function N(e){let t=new Date,r,i;if(e?.startMs!==void 0&&e?.endMs!==void 0)r=e.startMs,i=e.endMs;else{let n=Math.max(1,Math.floor(e?.days??30)),a=new Date(t);a.setDate(a.getDate()-(n-1)),r=a.getTime(),i=t.getTime()}let a=new Map,o=b(),s=n(e?.agentId),c=await u.promises.readdir(s,{withFileTypes:!0}).catch(()=>[]),l=(await Promise.all(c.filter(e=>e.isFile()&&e.name.endsWith(`.jsonl`)).map(async e=>{let t=d.join(s,e.name),n=await u.promises.stat(t).catch(()=>null);return!n||n.mtimeMs<r?null:t}))).filter(e=>!!e);for(let n of l)await M({filePath:n,config:e?.config,onEntry:e=>{let n=e.timestamp?.getTime();if(!n||n<r||n>i)return;let s=T(e.timestamp??t),c=a.get(s)??b();D(c,e.usage),e.costBreakdown?.total===void 0?k(c,e.costTotal):O(c,e.costBreakdown),a.set(s,c),D(o,e.usage),e.costBreakdown?.total===void 0?k(o,e.costTotal):O(o,e.costBreakdown)}});let f=Array.from(a.entries()).map(([e,t])=>Object.assign({date:e},t)).toSorted((e,t)=>e.date.localeCompare(t.date)),p=Math.ceil((i-r)/(1440*60*1e3))+1;return{updatedAt:Date.now(),days:p,daily:f,totals:o}}async function P(e){let t=n(e?.agentId),r=await u.promises.readdir(t,{withFileTypes:!0}).catch(()=>[]),i=[];for(let n of r){if(!n.isFile()||!n.name.endsWith(`.jsonl`))continue;let r=d.join(t,n.name),a=await u.promises.stat(r).catch(()=>null);if(!a||e?.startMs&&a.mtimeMs<e.startMs)continue;let o=n.name.slice(0,-6),s;try{for await(let e of A(r))try{let t=e.message;if(t?.role===`user`){let e=t.content;if(typeof e==`string`)s=e.slice(0,100);else if(Array.isArray(e)){for(let t of e)if(typeof t==`object`&&t&&t.type===`text`){let e=t.text;typeof e==`string`&&(s=e.slice(0,100));break}}break}}catch{}}catch{}i.push({sessionId:o,sessionFile:r,mtime:a.mtimeMs,firstUserMessage:s})}return i.toSorted((e,t)=>t.mtime-e.mtime)}async function F(e){let n=e.sessionFile??(e.sessionId?t(e.sessionId,e.sessionEntry,{agentId:e.agentId}):void 0);if(!n||!u.existsSync(n))return null;let r=b(),i,a,o=new Set,s=new Map,c=new Map,l=new Map,d=new Map,f={total:0,user:0,assistant:0,toolCalls:0,toolResults:0,errors:0},p=new Map,m=new Map,h=new Set([`error`,`aborted`,`timeout`]),g=[],_;await j({filePath:n,config:e.config,onEntry:t=>{let n=t.timestamp?.getTime();if(!(e.startMs!==void 0&&n!==void 0&&n<e.startMs)&&!(e.endMs!==void 0&&n!==void 0&&n>e.endMs)){if(n!==void 0&&((!i||n<i)&&(i=n),(!a||n>a)&&(a=n)),t.role===`user`&&(f.user+=1,f.total+=1,t.timestamp&&(_=t.timestamp.getTime())),t.role===`assistant`){f.assistant+=1,f.total+=1;let e=t.timestamp?.getTime();if(e!==void 0){let n=t.durationMs??(_===void 0?void 0:Math.max(0,e-_));if(n!==void 0&&Number.isFinite(n)&&n<=432e5){g.push(n);let r=T(t.timestamp??new Date(e)),i=l.get(r)??[];i.push(n),l.set(r,i)}}}if(t.toolNames.length>0){f.toolCalls+=t.toolNames.length;for(let e of t.toolNames)p.set(e,(p.get(e)??0)+1)}if(t.toolResultCounts.total>0&&(f.toolResults+=t.toolResultCounts.total,f.errors+=t.toolResultCounts.errors),t.stopReason&&h.has(t.stopReason)&&(f.errors+=1),t.timestamp){let e=T(t.timestamp);o.add(e);let n=c.get(e)??{date:e,total:0,user:0,assistant:0,toolCalls:0,toolResults:0,errors:0};n.total+=t.role===`user`||t.role===`assistant`?1:0,t.role===`user`?n.user+=1:t.role===`assistant`&&(n.assistant+=1),n.toolCalls+=t.toolNames.length,n.toolResults+=t.toolResultCounts.total,n.errors+=t.toolResultCounts.errors,t.stopReason&&h.has(t.stopReason)&&(n.errors+=1),c.set(e,n)}if(t.usage){if(D(r,t.usage),t.costBreakdown?.total===void 0?k(r,t.costTotal):O(r,t.costBreakdown),t.timestamp){let e=T(t.timestamp),n=(t.usage.input??0)+(t.usage.output??0)+(t.usage.cacheRead??0)+(t.usage.cacheWrite??0),r=t.costBreakdown?.total??(t.costBreakdown?(t.costBreakdown.input??0)+(t.costBreakdown.output??0)+(t.costBreakdown.cacheRead??0)+(t.costBreakdown.cacheWrite??0):t.costTotal??0),i=s.get(e)??{tokens:0,cost:0};if(s.set(e,{tokens:i.tokens+n,cost:i.cost+r}),t.provider||t.model){let i=`${e}::${t.provider??`unknown`}::${t.model??`unknown`}`,a=d.get(i)??{date:e,provider:t.provider,model:t.model,tokens:0,cost:0,count:0};a.tokens+=n,a.cost+=r,a.count+=1,d.set(i,a)}}if(t.provider||t.model){let e=`${t.provider??`unknown`}::${t.model??`unknown`}`,n=m.get(e)??{provider:t.provider,model:t.model,count:0,totals:b()};n.count+=1,D(n.totals,t.usage),t.costBreakdown?.total===void 0?k(n.totals,t.costTotal):O(n.totals,t.costBreakdown),m.set(e,n)}}}}});let v=Array.from(s.entries()).map(([e,t])=>({date:e,tokens:t.tokens,cost:t.cost})).toSorted((e,t)=>e.date.localeCompare(t.date)),y=Array.from(c.values()).toSorted((e,t)=>e.date.localeCompare(t.date)),x=Array.from(l.entries()).map(([e,t])=>{let n=E(t);return n?{date:e,...n}:null}).filter(e=>!!e).toSorted((e,t)=>e.date.localeCompare(t.date)),S=Array.from(d.values()).toSorted((e,t)=>e.date.localeCompare(t.date)||t.cost-e.cost),C=p.size?{totalCalls:Array.from(p.values()).reduce((e,t)=>e+t,0),uniqueTools:p.size,tools:Array.from(p.entries()).map(([e,t])=>({name:e,count:t})).toSorted((e,t)=>t.count-e.count)}:void 0,w=m.size?Array.from(m.values()).toSorted((e,t)=>{let n=t.totals.totalCost-e.totals.totalCost;return n===0?t.totals.totalTokens-e.totals.totalTokens:n}):void 0;return{sessionId:e.sessionId,sessionFile:n,firstActivity:i,lastActivity:a,durationMs:i!==void 0&&a!==void 0?Math.max(0,a-i):void 0,activityDates:Array.from(o).toSorted(),dailyBreakdown:v,dailyMessageCounts:y,dailyLatency:x.length?x:void 0,dailyModelUsage:S.length?S:void 0,messageCounts:f,toolUsage:C,modelUsage:w,latency:E(g),...r}}async function I(e){let n=e.sessionFile??(e.sessionId?t(e.sessionId,e.sessionEntry,{agentId:e.agentId}):void 0);if(!n||!u.existsSync(n))return null;let r=[],i=0,a=0;await M({filePath:n,config:e.config,onEntry:e=>{let t=e.timestamp?.getTime();if(!t)return;let n=e.usage.input??0,o=e.usage.output??0,s=e.usage.cacheRead??0,c=e.usage.cacheWrite??0,l=e.usage.total??n+o+s+c,u=e.costTotal??0;i+=l,a+=u,r.push({timestamp:t,input:n,output:o,cacheRead:s,cacheWrite:c,totalTokens:l,cost:u,cumulativeTokens:i,cumulativeCost:a})}});let o=r.toSorted((e,t)=>e.timestamp-t.timestamp),s=e.maxPoints??100;if(o.length>s){let t=Math.ceil(o.length/s),n=[],r=0,i=0;for(let e=0;e<o.length;e+=t){let a=o.slice(e,e+t),s=a[a.length-1];if(!s)continue;let c=0,l=0,u=0,d=0,f=0,p=0;for(let e of a)c+=e.input,l+=e.output,u+=e.cacheRead,d+=e.cacheWrite,f+=e.totalTokens,p+=e.cost;r+=f,i+=p,n.push({timestamp:s.timestamp,input:c,output:l,cacheRead:u,cacheWrite:d,totalTokens:f,cost:p,cumulativeTokens:r,cumulativeCost:i})}return{sessionId:e.sessionId,points:n}}return{sessionId:e.sessionId,points:o}}async function L(e){let n=e.sessionFile??(e.sessionId?t(e.sessionId,e.sessionEntry,{agentId:e.agentId}):void 0);if(!n||!u.existsSync(n))return null;let a=[],o=e.limit??50;for await(let t of A(n))try{let n=t.message;if(!n)continue;let o=n.role;if(o!==`user`&&o!==`assistant`&&o!==`tool`&&o!==`toolResult`)continue;let u=[],d=n.toolName??n.tool_name??n.name??n.tool,f=typeof d==`string`&&d.trim()?d.trim():void 0;(o===`tool`||o===`toolResult`)&&(u.push(`[Tool: ${f??`tool`}]`),u.push(`[Tool Result]`));let p=n.content;if(typeof p==`string`)u.push(p);else if(Array.isArray(p)){let e=p.map(e=>{if(typeof e==`string`)return e;let t=e;return t.type===`text`&&typeof t.text==`string`?t.text:t.type===`tool_use`?`[Tool: ${typeof t.name==`string`?t.name:`unknown`}]`:t.type===`tool_result`?`[Tool Result]`:``}).filter(Boolean).join(`
2
2
  `);e&&u.push(e)}let m=n.tool_calls??n.toolCalls??n.function_call??n.functionCall,h=Array.isArray(m)?m:m?[m]:[];if(h.length>0)for(let e of h){let t=e,n=typeof t.name==`string`?t.name:void 0,r=t.function,i=typeof r?.name==`string`?r.name:void 0,a=n??i??`unknown`;u.push(`[Tool: ${a}]`)}let _=u.join(`
3
3
  `).trim();if(!_||(_=r(_),o===`user`&&(_=i(s(_)).trim()),!_))continue;let v=2e3;_.length>v&&(_=_.slice(0,v)+`…`);let y=0;typeof t.timestamp==`string`?y=new Date(t.timestamp).getTime():typeof n.timestamp==`number`&&(y=n.timestamp);let b,x;if(o===`assistant`){let t=n.usage,r=g(t);if(r){b=r.total??(r.input??0)+(r.output??0)+(r.cacheRead??0)+(r.cacheWrite??0);let i=S(t);x=i?.total===void 0?l({usage:r,cost:c({provider:n.provider,model:n.model,config:e.config})}):i.total}}a.push({timestamp:y,role:o,content:_,tokens:b,cost:x})}catch{}let d=a.toSorted((e,t)=>e.timestamp-t.timestamp);return d.length>o?d.slice(-o):d}export{y as a,h as c,I as i,p as l,N as n,_ as o,F as r,v as s,P as t,g as u};
4
- //# sourceMappingURL=session-cost-usage-BgqKixv0.js.map
@@ -1,4 +1,3 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{n as t,s as n}from"./paths-BfjJY2VL.js";import{i as r,n as i,o as a,s as o,t as s}from"./chat-envelope-Bznn2SoS.js";import{i as c,t as l}from"./usage-format-yPwal8Iz.js";import u from"node:path";import d from"node:fs";import f from"node:readline";function p(){return{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}const m=e=>{if(typeof e==`number`&&Number.isFinite(e))return e};function h(e){return e?[e.input,e.output,e.cacheRead,e.cacheWrite,e.total].some(e=>typeof e==`number`&&Number.isFinite(e)&&e>0):!1}function g(e){if(!e)return;let t=m(e.input??e.inputTokens??e.input_tokens??e.promptTokens??e.prompt_tokens),n=t!==void 0&&t<0?0:t,r=m(e.output??e.outputTokens??e.output_tokens??e.completionTokens??e.completion_tokens),i=m(e.cacheRead??e.cache_read??e.cache_read_input_tokens??e.cached_tokens??e.prompt_tokens_details?.cached_tokens),a=m(e.cacheWrite??e.cache_write??e.cache_creation_input_tokens),o=m(e.total??e.totalTokens??e.total_tokens);if(!(n===void 0&&r===void 0&&i===void 0&&a===void 0&&o===void 0))return{input:n,output:r,cacheRead:i,cacheWrite:a,total:o}}function _(e){if(!e)return;let t=e.input??0,n=e.cacheRead??0,r=e.cacheWrite??0,i=t+n+r;return i>0?i:void 0}function v(e){let t=e.promptTokens,n=typeof t==`number`&&Number.isFinite(t)&&t>0,r=e.usage;if(!r&&!n)return;let i=n?t:_({input:r?.input,cacheRead:r?.cacheRead,cacheWrite:r?.cacheWrite});if(!(typeof i!=`number`||!Number.isFinite(i)||i<=0))return i}var y=e({discoverAllSessions:()=>P,loadCostUsageSummary:()=>N,loadSessionCostSummary:()=>F,loadSessionLogs:()=>L,loadSessionUsageTimeSeries:()=>I});const b=()=>({input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,totalCost:0,inputCost:0,outputCost:0,cacheReadCost:0,cacheWriteCost:0,missingCostEntries:0}),x=e=>{if(typeof e==`number`&&Number.isFinite(e))return e},S=e=>{if(!e||typeof e!=`object`)return;let t=e.cost;if(!t)return;let n=x(t.total);if(!(n===void 0||n<0))return{total:n,input:x(t.input),output:x(t.output),cacheRead:x(t.cacheRead),cacheWrite:x(t.cacheWrite)}},C=e=>{let t=e.timestamp;if(typeof t==`string`){let e=new Date(t);if(!Number.isNaN(e.valueOf()))return e}let n=e.message,r=x(n?.timestamp);if(r!==void 0){let e=new Date(r);if(!Number.isNaN(e.valueOf()))return e}},w=e=>{let t=e.message;if(!t||typeof t!=`object`)return null;let n=t.role,r=n===`user`||n===`assistant`?n:void 0;if(!r)return null;let i=t.usage??e.usage,s=i?g(i)??void 0:void 0,c=(typeof t.provider==`string`?t.provider:void 0)??(typeof e.provider==`string`?e.provider:void 0),l=(typeof t.model==`string`?t.model:void 0)??(typeof e.model==`string`?e.model:void 0),u=S(i),d=typeof t.stopReason==`string`?t.stopReason:void 0,f=x(t.durationMs??e.durationMs);return{message:t,role:r,timestamp:C(e),durationMs:f,usage:s,costTotal:u?.total,costBreakdown:u,provider:c,model:l,stopReason:d,toolNames:o(t),toolResultCounts:a(t)}},T=e=>e.toLocaleDateString(`en-CA`,{timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}),E=e=>{if(!e.length)return;let t=e.toSorted((e,t)=>e-t),n=t.reduce((e,t)=>e+t,0),r=t.length,i=Math.max(0,Math.ceil(r*.95)-1);return{count:r,avgMs:n/r,p95Ms:t[i]??t[r-1],minMs:t[0],maxMs:t[r-1]}},D=(e,t)=>{e.input+=t.input??0,e.output+=t.output??0,e.cacheRead+=t.cacheRead??0,e.cacheWrite+=t.cacheWrite??0;let n=t.total??(t.input??0)+(t.output??0)+(t.cacheRead??0)+(t.cacheWrite??0);e.totalTokens+=n},O=(e,t)=>{t===void 0||t.total===void 0||(e.totalCost+=t.total,e.inputCost+=t.input??0,e.outputCost+=t.output??0,e.cacheReadCost+=t.cacheRead??0,e.cacheWriteCost+=t.cacheWrite??0)},k=(e,t)=>{if(t===void 0){e.missingCostEntries+=1;return}e.totalCost+=t};async function*A(e){let t=d.createReadStream(e,{encoding:`utf-8`}),n=f.createInterface({input:t,crlfDelay:1/0});try{for await(let e of n){let t=e.trim();if(t)try{let e=JSON.parse(t);if(!e||typeof e!=`object`)continue;yield e}catch{}}}finally{n.close(),t.destroy()}}async function j(e){for await(let t of A(e.filePath)){let n=w(t);if(n){if(n.usage&&n.costTotal===void 0){let t=c({provider:n.provider,model:n.model,config:e.config});n.costTotal=l({usage:n.usage,cost:t})}e.onEntry(n)}}}async function M(e){await j({filePath:e.filePath,config:e.config,onEntry:t=>{t.usage&&e.onEntry({usage:t.usage,costTotal:t.costTotal,costBreakdown:t.costBreakdown,provider:t.provider,model:t.model,timestamp:t.timestamp})}})}async function N(e){let t=new Date,r,i;if(e?.startMs!==void 0&&e?.endMs!==void 0)r=e.startMs,i=e.endMs;else{let n=Math.max(1,Math.floor(e?.days??30)),a=new Date(t);a.setDate(a.getDate()-(n-1)),r=a.getTime(),i=t.getTime()}let a=new Map,o=b(),s=n(e?.agentId),c=await d.promises.readdir(s,{withFileTypes:!0}).catch(()=>[]),l=(await Promise.all(c.filter(e=>e.isFile()&&e.name.endsWith(`.jsonl`)).map(async e=>{let t=u.join(s,e.name),n=await d.promises.stat(t).catch(()=>null);return!n||n.mtimeMs<r?null:t}))).filter(e=>!!e);for(let n of l)await M({filePath:n,config:e?.config,onEntry:e=>{let n=e.timestamp?.getTime();if(!n||n<r||n>i)return;let s=T(e.timestamp??t),c=a.get(s)??b();D(c,e.usage),e.costBreakdown?.total===void 0?k(c,e.costTotal):O(c,e.costBreakdown),a.set(s,c),D(o,e.usage),e.costBreakdown?.total===void 0?k(o,e.costTotal):O(o,e.costBreakdown)}});let f=Array.from(a.entries()).map(([e,t])=>Object.assign({date:e},t)).toSorted((e,t)=>e.date.localeCompare(t.date)),p=Math.ceil((i-r)/(1440*60*1e3))+1;return{updatedAt:Date.now(),days:p,daily:f,totals:o}}async function P(e){let t=n(e?.agentId),r=await d.promises.readdir(t,{withFileTypes:!0}).catch(()=>[]),i=[];for(let n of r){if(!n.isFile()||!n.name.endsWith(`.jsonl`))continue;let r=u.join(t,n.name),a=await d.promises.stat(r).catch(()=>null);if(!a||e?.startMs&&a.mtimeMs<e.startMs)continue;let o=n.name.slice(0,-6),s;try{for await(let e of A(r))try{let t=e.message;if(t?.role===`user`){let e=t.content;if(typeof e==`string`)s=e.slice(0,100);else if(Array.isArray(e)){for(let t of e)if(typeof t==`object`&&t&&t.type===`text`){let e=t.text;typeof e==`string`&&(s=e.slice(0,100));break}}break}}catch{}}catch{}i.push({sessionId:o,sessionFile:r,mtime:a.mtimeMs,firstUserMessage:s})}return i.toSorted((e,t)=>t.mtime-e.mtime)}async function F(e){let n=e.sessionFile??(e.sessionId?t(e.sessionId,e.sessionEntry,{agentId:e.agentId}):void 0);if(!n||!d.existsSync(n))return null;let r=b(),i,a,o=new Set,s=new Map,c=new Map,l=new Map,u=new Map,f={total:0,user:0,assistant:0,toolCalls:0,toolResults:0,errors:0},p=new Map,m=new Map,h=new Set([`error`,`aborted`,`timeout`]),g=[],_;await j({filePath:n,config:e.config,onEntry:t=>{let n=t.timestamp?.getTime();if(!(e.startMs!==void 0&&n!==void 0&&n<e.startMs)&&!(e.endMs!==void 0&&n!==void 0&&n>e.endMs)){if(n!==void 0&&((!i||n<i)&&(i=n),(!a||n>a)&&(a=n)),t.role===`user`&&(f.user+=1,f.total+=1,t.timestamp&&(_=t.timestamp.getTime())),t.role===`assistant`){f.assistant+=1,f.total+=1;let e=t.timestamp?.getTime();if(e!==void 0){let n=t.durationMs??(_===void 0?void 0:Math.max(0,e-_));if(n!==void 0&&Number.isFinite(n)&&n<=432e5){g.push(n);let r=T(t.timestamp??new Date(e)),i=l.get(r)??[];i.push(n),l.set(r,i)}}}if(t.toolNames.length>0){f.toolCalls+=t.toolNames.length;for(let e of t.toolNames)p.set(e,(p.get(e)??0)+1)}if(t.toolResultCounts.total>0&&(f.toolResults+=t.toolResultCounts.total,f.errors+=t.toolResultCounts.errors),t.stopReason&&h.has(t.stopReason)&&(f.errors+=1),t.timestamp){let e=T(t.timestamp);o.add(e);let n=c.get(e)??{date:e,total:0,user:0,assistant:0,toolCalls:0,toolResults:0,errors:0};n.total+=t.role===`user`||t.role===`assistant`?1:0,t.role===`user`?n.user+=1:t.role===`assistant`&&(n.assistant+=1),n.toolCalls+=t.toolNames.length,n.toolResults+=t.toolResultCounts.total,n.errors+=t.toolResultCounts.errors,t.stopReason&&h.has(t.stopReason)&&(n.errors+=1),c.set(e,n)}if(t.usage){if(D(r,t.usage),t.costBreakdown?.total===void 0?k(r,t.costTotal):O(r,t.costBreakdown),t.timestamp){let e=T(t.timestamp),n=(t.usage.input??0)+(t.usage.output??0)+(t.usage.cacheRead??0)+(t.usage.cacheWrite??0),r=t.costBreakdown?.total??(t.costBreakdown?(t.costBreakdown.input??0)+(t.costBreakdown.output??0)+(t.costBreakdown.cacheRead??0)+(t.costBreakdown.cacheWrite??0):t.costTotal??0),i=s.get(e)??{tokens:0,cost:0};if(s.set(e,{tokens:i.tokens+n,cost:i.cost+r}),t.provider||t.model){let i=`${e}::${t.provider??`unknown`}::${t.model??`unknown`}`,a=u.get(i)??{date:e,provider:t.provider,model:t.model,tokens:0,cost:0,count:0};a.tokens+=n,a.cost+=r,a.count+=1,u.set(i,a)}}if(t.provider||t.model){let e=`${t.provider??`unknown`}::${t.model??`unknown`}`,n=m.get(e)??{provider:t.provider,model:t.model,count:0,totals:b()};n.count+=1,D(n.totals,t.usage),t.costBreakdown?.total===void 0?k(n.totals,t.costTotal):O(n.totals,t.costBreakdown),m.set(e,n)}}}}});let v=Array.from(s.entries()).map(([e,t])=>({date:e,tokens:t.tokens,cost:t.cost})).toSorted((e,t)=>e.date.localeCompare(t.date)),y=Array.from(c.values()).toSorted((e,t)=>e.date.localeCompare(t.date)),x=Array.from(l.entries()).map(([e,t])=>{let n=E(t);return n?{date:e,...n}:null}).filter(e=>!!e).toSorted((e,t)=>e.date.localeCompare(t.date)),S=Array.from(u.values()).toSorted((e,t)=>e.date.localeCompare(t.date)||t.cost-e.cost),C=p.size?{totalCalls:Array.from(p.values()).reduce((e,t)=>e+t,0),uniqueTools:p.size,tools:Array.from(p.entries()).map(([e,t])=>({name:e,count:t})).toSorted((e,t)=>t.count-e.count)}:void 0,w=m.size?Array.from(m.values()).toSorted((e,t)=>{let n=t.totals.totalCost-e.totals.totalCost;return n===0?t.totals.totalTokens-e.totals.totalTokens:n}):void 0;return{sessionId:e.sessionId,sessionFile:n,firstActivity:i,lastActivity:a,durationMs:i!==void 0&&a!==void 0?Math.max(0,a-i):void 0,activityDates:Array.from(o).toSorted(),dailyBreakdown:v,dailyMessageCounts:y,dailyLatency:x.length?x:void 0,dailyModelUsage:S.length?S:void 0,messageCounts:f,toolUsage:C,modelUsage:w,latency:E(g),...r}}async function I(e){let n=e.sessionFile??(e.sessionId?t(e.sessionId,e.sessionEntry,{agentId:e.agentId}):void 0);if(!n||!d.existsSync(n))return null;let r=[],i=0,a=0;await M({filePath:n,config:e.config,onEntry:e=>{let t=e.timestamp?.getTime();if(!t)return;let n=e.usage.input??0,o=e.usage.output??0,s=e.usage.cacheRead??0,c=e.usage.cacheWrite??0,l=e.usage.total??n+o+s+c,u=e.costTotal??0;i+=l,a+=u,r.push({timestamp:t,input:n,output:o,cacheRead:s,cacheWrite:c,totalTokens:l,cost:u,cumulativeTokens:i,cumulativeCost:a})}});let o=r.toSorted((e,t)=>e.timestamp-t.timestamp),s=e.maxPoints??100;if(o.length>s){let t=Math.ceil(o.length/s),n=[],r=0,i=0;for(let e=0;e<o.length;e+=t){let a=o.slice(e,e+t),s=a[a.length-1];if(!s)continue;let c=0,l=0,u=0,d=0,f=0,p=0;for(let e of a)c+=e.input,l+=e.output,u+=e.cacheRead,d+=e.cacheWrite,f+=e.totalTokens,p+=e.cost;r+=f,i+=p,n.push({timestamp:s.timestamp,input:c,output:l,cacheRead:u,cacheWrite:d,totalTokens:f,cost:p,cumulativeTokens:r,cumulativeCost:i})}return{sessionId:e.sessionId,points:n}}return{sessionId:e.sessionId,points:o}}async function L(e){let n=e.sessionFile??(e.sessionId?t(e.sessionId,e.sessionEntry,{agentId:e.agentId}):void 0);if(!n||!d.existsSync(n))return null;let a=[],o=e.limit??50;for await(let t of A(n))try{let n=t.message;if(!n)continue;let o=n.role;if(o!==`user`&&o!==`assistant`&&o!==`tool`&&o!==`toolResult`)continue;let u=[],d=n.toolName??n.tool_name??n.name??n.tool,f=typeof d==`string`&&d.trim()?d.trim():void 0;(o===`tool`||o===`toolResult`)&&(u.push(`[Tool: ${f??`tool`}]`),u.push(`[Tool Result]`));let p=n.content;if(typeof p==`string`)u.push(p);else if(Array.isArray(p)){let e=p.map(e=>{if(typeof e==`string`)return e;let t=e;return t.type===`text`&&typeof t.text==`string`?t.text:t.type===`tool_use`?`[Tool: ${typeof t.name==`string`?t.name:`unknown`}]`:t.type===`tool_result`?`[Tool Result]`:``}).filter(Boolean).join(`
2
2
  `);e&&u.push(e)}let m=n.tool_calls??n.toolCalls??n.function_call??n.functionCall,h=Array.isArray(m)?m:m?[m]:[];if(h.length>0)for(let e of h){let t=e,n=typeof t.name==`string`?t.name:void 0,r=t.function,i=typeof r?.name==`string`?r.name:void 0,a=n??i??`unknown`;u.push(`[Tool: ${a}]`)}let _=u.join(`
3
3
  `).trim();if(!_||(_=r(_),o===`user`&&(_=i(s(_)).trim()),!_))continue;let v=2e3;_.length>v&&(_=_.slice(0,v)+`…`);let y=0;typeof t.timestamp==`string`?y=new Date(t.timestamp).getTime():typeof n.timestamp==`number`&&(y=n.timestamp);let b,x;if(o===`assistant`){let t=n.usage,r=g(t);if(r){b=r.total??(r.input??0)+(r.output??0)+(r.cacheRead??0)+(r.cacheWrite??0);let i=S(t);x=i?.total===void 0?l({usage:r,cost:c({provider:n.provider,model:n.model,config:e.config})}):i.total}}a.push({timestamp:y,role:o,content:_,tokens:b,cost:x})}catch{}let u=a.toSorted((e,t)=>e.timestamp-t.timestamp);return u.length>o?u.slice(-o):u}export{y as a,h as c,I as i,p as l,N as n,_ as o,F as r,v as s,P as t,g as u};
4
- //# sourceMappingURL=session-cost-usage-CHtVgnE8.js.map
@@ -1,2 +1 @@
1
1
  function e(e){let t=(e??``).trim().toLowerCase();if(!t)return null;let n=t.split(`:`).filter(Boolean);if(n.length<3||n[0]!==`agent`)return null;let r=n[1]?.trim(),i=n.slice(2).join(`:`);return!r||!i?null:{agentId:r,rest:i}}function t(t){let n=(t??``).trim().toLowerCase();if(!n)return`unknown`;let r=e(n)?.rest??n,i=new Set(r.split(`:`).filter(Boolean));return i.has(`group`)?`group`:i.has(`channel`)?`channel`:i.has(`direct`)||i.has(`dm`)?`direct`:/^discord:(?:[^:]+:)?guild-[^:]+:channel-[^:]+$/.test(r)?`channel`:`unknown`}function n(t){let n=e(t);return n?/^cron:[^:]+:run:[^:]+$/.test(n.rest):!1}function r(t){let n=e(t);return n?n.rest.toLowerCase().startsWith(`cron:`):!1}function i(t){let n=(t??``).trim();return n?n.toLowerCase().startsWith(`subagent:`)?!0:!!(e(n)?.rest??``).toLowerCase().startsWith(`subagent:`):!1}function a(e){let t=(e??``).trim().toLowerCase();return t?t.split(`:subagent:`).length-1:0}function o(t){let n=(t??``).trim();return n?n.toLowerCase().startsWith(`acp:`)?!0:!!(e(n)?.rest??``).toLowerCase().startsWith(`acp:`):!1}const s=[`:thread:`,`:topic:`];function c(e){let t=(e??``).trim();if(!t)return null;let n=t.toLowerCase(),r=-1;for(let e of s){let t=n.lastIndexOf(e);t>r&&(r=t)}return r<=0?null:t.slice(0,r).trim()||null}const l=new Set([`__proto__`,`prototype`,`constructor`]);function u(e){return l.has(e)}const d=`default`,f=/^[a-z0-9][a-z0-9_-]{0,63}$/i,p=/[^a-z0-9_-]+/g,m=/^-+/,h=/-+$/,g=new Map,_=new Map;function v(e){return f.test(e)?e.toLowerCase():e.toLowerCase().replace(p,`-`).replace(m,``).replace(h,``).slice(0,64)}function y(e){let t=v(e);if(!(!t||u(t)))return t}function b(e){let t=(e??``).trim();if(!t)return d;let n=g.get(t);if(n)return n;let r=y(t)||`default`;return S(g,t,r),r}function x(e){let t=(e??``).trim();if(!t)return;if(_.has(t))return _.get(t);let n=y(t)||void 0;return S(_,t,n),n}function S(e,t,n){if(e.set(t,n),e.size<=512)return;let r=e.keys().next();r.done||e.delete(r.value)}const C=`main`,w=`main`,T=/^[a-z0-9][a-z0-9_-]{0,63}$/i,E=/[^a-z0-9_-]+/g,D=/^-+/,O=/-+$/;function k(e){return(e??``).trim().toLowerCase()}function A(t,n){return e(t)?{...n,sessionKey:t}:n}function j(e){let t=(e??``).trim();return t?t.toLowerCase():w}function M(t){let n=(t??``).trim();if(n)return e(n)?.rest??n}function N(t){let n=(t.requestKey??``).trim();if(!n||n.toLowerCase()===`main`)return z({agentId:t.agentId,mainKey:t.mainKey});let r=e(n);if(r)return`agent:${r.agentId}:${r.rest}`;let i=n.toLowerCase();return i.startsWith(`agent:`)?i:`agent:${I(t.agentId)}:${i}`}function P(t){return I(e(t)?.agentId??`main`)}function F(t){let n=(t??``).trim();return n?e(n)?`agent`:n.toLowerCase().startsWith(`agent:`)?`malformed_agent`:`legacy_or_alias`:`missing`}function I(e){let t=(e??``).trim();return t?T.test(t)?t.toLowerCase():t.toLowerCase().replace(E,`-`).replace(D,``).replace(O,``).slice(0,64)||`main`:C}function L(e){let t=(e??``).trim();return!!t&&T.test(t)}function R(e){return I(e)}function z(e){return`agent:${I(e.agentId)}:${j(e.mainKey)}`}function B(e){let t=e.peerKind??`direct`;if(t===`direct`){let t=e.dmScope??`main`,n=(e.peerId??``).trim(),r=t===`main`?null:V({identityLinks:e.identityLinks,channel:e.channel,peerId:n});if(r&&(n=r),n=n.toLowerCase(),t===`per-account-channel-peer`&&n){let t=(e.channel??``).trim().toLowerCase()||`unknown`,r=b(e.accountId);return`agent:${I(e.agentId)}:${t}:${r}:direct:${n}`}if(t===`per-channel-peer`&&n){let t=(e.channel??``).trim().toLowerCase()||`unknown`;return`agent:${I(e.agentId)}:${t}:direct:${n}`}return t===`per-peer`&&n?`agent:${I(e.agentId)}:direct:${n}`:z({agentId:e.agentId,mainKey:e.mainKey})}let n=(e.channel??``).trim().toLowerCase()||`unknown`,r=((e.peerId??``).trim()||`unknown`).toLowerCase();return`agent:${I(e.agentId)}:${n}:${t}:${r}`}function V(e){let t=e.identityLinks;if(!t)return null;let n=e.peerId.trim();if(!n)return null;let r=new Set,i=k(n);i&&r.add(i);let a=k(e.channel);if(a){let e=k(`${a}:${n}`);e&&r.add(e)}if(r.size===0)return null;for(let[e,n]of Object.entries(t)){let t=e.trim();if(t&&Array.isArray(n))for(let e of n){let n=k(e);if(n&&r.has(n))return t}}return null}function H(e){let t=k(e.channel)||`unknown`,n=b(e.accountId),r=e.peerId.trim().toLowerCase()||`unknown`;return`${t}:${n}:${e.peerKind}:${r}`}function U(e){let t=(e.threadId??``).trim();if(!t)return{sessionKey:e.baseSessionKey,parentSessionKey:void 0};let n=(e.normalizeThreadId??(e=>e.toLowerCase()))(t);return{sessionKey:e.useSuffix??!0?`${e.baseSessionKey}:thread:${n}`:e.baseSessionKey,parentSessionKey:e.parentSessionKey}}export{n as C,c as D,e as E,o as S,i as T,b as _,H as a,t as b,I as c,U as d,R as f,d as g,N as h,B as i,j as l,M as m,w as n,F as o,A as p,z as r,L as s,C as t,P as u,x as v,r as w,a as x,u as y};
2
- //# sourceMappingURL=session-key-C7F_iqYg.js.map
@@ -1,2 +1 @@
1
1
  function e(e){let t=(e??``).trim().toLowerCase();if(!t)return null;let n=t.split(`:`).filter(Boolean);if(n.length<3||n[0]!==`agent`)return null;let r=n[1]?.trim(),i=n.slice(2).join(`:`);return!r||!i?null:{agentId:r,rest:i}}function t(t){let n=(t??``).trim().toLowerCase();if(!n)return`unknown`;let r=e(n)?.rest??n,i=new Set(r.split(`:`).filter(Boolean));return i.has(`group`)?`group`:i.has(`channel`)?`channel`:i.has(`direct`)||i.has(`dm`)?`direct`:/^discord:(?:[^:]+:)?guild-[^:]+:channel-[^:]+$/.test(r)?`channel`:`unknown`}function n(t){let n=e(t);return n?/^cron:[^:]+:run:[^:]+$/.test(n.rest):!1}function r(t){let n=e(t);return n?n.rest.toLowerCase().startsWith(`cron:`):!1}function i(t){let n=(t??``).trim();return n?n.toLowerCase().startsWith(`subagent:`)?!0:!!(e(n)?.rest??``).toLowerCase().startsWith(`subagent:`):!1}function a(e){let t=(e??``).trim().toLowerCase();return t?t.split(`:subagent:`).length-1:0}function o(t){let n=(t??``).trim();return n?n.toLowerCase().startsWith(`acp:`)?!0:!!(e(n)?.rest??``).toLowerCase().startsWith(`acp:`):!1}const s=[`:thread:`,`:topic:`];function c(e){let t=(e??``).trim();if(!t)return null;let n=t.toLowerCase(),r=-1;for(let e of s){let t=n.lastIndexOf(e);t>r&&(r=t)}return r<=0?null:t.slice(0,r).trim()||null}const l=new Set([`__proto__`,`prototype`,`constructor`]);function u(e){return l.has(e)}const d=`default`,f=/^[a-z0-9][a-z0-9_-]{0,63}$/i,p=/[^a-z0-9_-]+/g,m=/^-+/,h=/-+$/,g=new Map,_=new Map;function v(e){return f.test(e)?e.toLowerCase():e.toLowerCase().replace(p,`-`).replace(m,``).replace(h,``).slice(0,64)}function y(e){let t=v(e);if(!(!t||u(t)))return t}function b(e){let t=(e??``).trim();if(!t)return d;let n=g.get(t);if(n)return n;let r=y(t)||`default`;return S(g,t,r),r}function x(e){let t=(e??``).trim();if(!t)return;if(_.has(t))return _.get(t);let n=y(t)||void 0;return S(_,t,n),n}function S(e,t,n){if(e.set(t,n),e.size<=512)return;let r=e.keys().next();r.done||e.delete(r.value)}const C=`main`,w=`main`,T=/^[a-z0-9][a-z0-9_-]{0,63}$/i,E=/[^a-z0-9_-]+/g,D=/^-+/,O=/-+$/;function k(e){return(e??``).trim().toLowerCase()}function A(t,n){return e(t)?{...n,sessionKey:t}:n}function j(e){let t=(e??``).trim();return t?t.toLowerCase():w}function M(t){let n=(t??``).trim();if(n)return e(n)?.rest??n}function N(t){let n=(t.requestKey??``).trim();if(!n||n.toLowerCase()===`main`)return z({agentId:t.agentId,mainKey:t.mainKey});let r=e(n);if(r)return`agent:${r.agentId}:${r.rest}`;let i=n.toLowerCase();return i.startsWith(`agent:`)?i:`agent:${I(t.agentId)}:${i}`}function P(t){return I(e(t)?.agentId??`main`)}function F(t){let n=(t??``).trim();return n?e(n)?`agent`:n.toLowerCase().startsWith(`agent:`)?`malformed_agent`:`legacy_or_alias`:`missing`}function I(e){let t=(e??``).trim();return t?T.test(t)?t.toLowerCase():t.toLowerCase().replace(E,`-`).replace(D,``).replace(O,``).slice(0,64)||`main`:C}function L(e){let t=(e??``).trim();return!!t&&T.test(t)}function R(e){return I(e)}function z(e){return`agent:${I(e.agentId)}:${j(e.mainKey)}`}function B(e){let t=e.peerKind??`direct`;if(t===`direct`){let t=e.dmScope??`main`,n=(e.peerId??``).trim(),r=t===`main`?null:V({identityLinks:e.identityLinks,channel:e.channel,peerId:n});if(r&&(n=r),n=n.toLowerCase(),t===`per-account-channel-peer`&&n){let t=(e.channel??``).trim().toLowerCase()||`unknown`,r=b(e.accountId);return`agent:${I(e.agentId)}:${t}:${r}:direct:${n}`}if(t===`per-channel-peer`&&n){let t=(e.channel??``).trim().toLowerCase()||`unknown`;return`agent:${I(e.agentId)}:${t}:direct:${n}`}return t===`per-peer`&&n?`agent:${I(e.agentId)}:direct:${n}`:z({agentId:e.agentId,mainKey:e.mainKey})}let n=(e.channel??``).trim().toLowerCase()||`unknown`,r=((e.peerId??``).trim()||`unknown`).toLowerCase();return`agent:${I(e.agentId)}:${n}:${t}:${r}`}function V(e){let t=e.identityLinks;if(!t)return null;let n=e.peerId.trim();if(!n)return null;let r=new Set,i=k(n);i&&r.add(i);let a=k(e.channel);if(a){let e=k(`${a}:${n}`);e&&r.add(e)}if(r.size===0)return null;for(let[e,n]of Object.entries(t)){let t=e.trim();if(t&&Array.isArray(n))for(let e of n){let n=k(e);if(n&&r.has(n))return t}}return null}function H(e){let t=k(e.channel)||`unknown`,n=b(e.accountId),r=e.peerId.trim().toLowerCase()||`unknown`;return`${t}:${n}:${e.peerKind}:${r}`}function U(e){let t=(e.threadId??``).trim();if(!t)return{sessionKey:e.baseSessionKey,parentSessionKey:void 0};let n=(e.normalizeThreadId??(e=>e.toLowerCase()))(t);return{sessionKey:e.useSuffix??!0?`${e.baseSessionKey}:thread:${n}`:e.baseSessionKey,parentSessionKey:e.parentSessionKey}}export{n as C,c as D,e as E,o as S,i as T,b as _,H as a,t as b,I as c,U as d,R as f,d as g,N as h,B as i,j as l,M as m,w as n,F as o,A as p,z as r,L as s,C as t,P as u,x as v,r as w,a as x,u as y};
2
- //# sourceMappingURL=session-key-D3P0tf5P.js.map
@@ -1,2 +1 @@
1
1
  import{nt as e}from"./subsystem-BLbY429l.js";import{g as t}from"./paths-BjD3T_xq.js";import{Bc as n,Cn as r,En as i,Jn as a,Kc as o,Mc as s,On as c,Tn as l,Xc as u,Yc as d,Yt as ee,_s as f,ds as p,du as m,fu as h,hs as g,jo as _,jt as v,ls as y,ps as b,rn as te,us as ne}from"./auth-profiles-C8rZRS0X.js";import{d as re,f as x}from"./agent-scope-DAWJwFfl.js";import{C as ie,E as S,c as C,l as w}from"./session-key-C7F_iqYg.js";import{a as T}from"./openclaw-root-CnsBf6ZU.js";import{c as E}from"./paths-BfjJY2VL.js";import{t as ae}from"./models-config-DZzS67GS.js";import D from"node:path";import O from"node:fs";import{setTimeout as oe}from"node:timers/promises";function k(e,t){let n=e.initialMs*e.factor**Math.max(t-1,0),r=n*e.jitter*Math.random();return Math.min(e.maxMs,Math.round(n+r))}async function A(e,t){if(!(e<=0))try{await oe(e,void 0,{signal:t})}catch(e){throw t?.aborted?Error(`aborted`,{cause:e}):e}}const se=[`claude-opus-4`,`claude-sonnet-4`],ce={initialMs:1e3,maxMs:6e4,factor:2,jitter:0};function le(e){for(let t of e.models){if(!t?.id)continue;let n=typeof t.contextWindow==`number`?Math.trunc(t.contextWindow):void 0;if(!n||n<=0)continue;let r=e.cache.get(t.id);(r===void 0||n<r)&&e.cache.set(t.id,n)}}function j(e){let t=e.modelsConfig?.providers;if(!(!t||typeof t!=`object`)){for(let n of Object.values(t))if(Array.isArray(n?.models))for(let t of n.models){let n=typeof t?.id==`string`?t.id:void 0,r=typeof t?.contextWindow==`number`?t.contextWindow:void 0;!n||!r||r<=0||e.cache.set(n,r)}}}const M=new Map;let N=null,P,F=0,I=0;function ue(t){let n=t.slice(2),r=[];for(let t=0;t<n.length;t+=1){let i=n[t];if(!i||i===`--`)break;let a=e(n,t);if(a>0){t+=a-1;continue}if(!i.startsWith(`-`)&&(r.push(i),r.length>=2))break}return r}function de(e=process.argv){let[t,n]=ue(e);return t===`config`&&n===`validate`}function L(){if(P)return P;if(!(Date.now()<I))try{let e=_();return j({cache:M,modelsConfig:e.models}),P=e,F=0,I=0,e}catch{F+=1;let e=k(ce,F);I=Date.now()+e;return}}function R(){if(N)return N;let e=L();return e?(N=(async()=>{try{await ae(e)}catch{}try{let{discoverAuthStorage:e,discoverModels:t}=await import(`./pi-model-discovery-BPkhPDMr.js`).then(e=>e.r),n=s(),r=t(e(n),n);le({cache:M,models:typeof r.getAvailable==`function`?r.getAvailable():r.getAll()})}catch{}j({cache:M,modelsConfig:e.models})})().catch(()=>{}),N):Promise.resolve()}function z(e){if(e)return R(),M.get(e)}de()||R();function B(e,t,n){let r=e?.agents?.defaults?.models;if(!r)return;let i=`${t}/${n}`.trim().toLowerCase();for(let[e,t]of Object.entries(r))if(e.trim().toLowerCase()===i){let e=t?.params;return e&&typeof e==`object`?e:void 0}}function V(e){let t=e.model?.trim();if(!t)return;let n=e.provider?.trim();if(n)return{provider:n.toLowerCase(),model:t};let r=t.indexOf(`/`);if(r<=0)return;let i=t.slice(0,r).trim().toLowerCase(),a=t.slice(r+1).trim();if(!(!i||!a))return{provider:i,model:a}}function H(e,t){if(e!==`anthropic`)return!1;let n=t.trim().toLowerCase(),r=n.includes(`/`)?n.split(`/`).at(-1)??n:n;return se.some(e=>r.startsWith(e))}function fe(e){if(typeof e.contextTokensOverride==`number`&&e.contextTokensOverride>0)return e.contextTokensOverride;let t=V({provider:e.provider,model:e.model});return t&&B(e.cfg,t.provider,t.model)?.context1m===!0&&H(t.provider,t.model)?1048576:z(e.model)??e.fallbackContextTokens}function pe(e){try{return O.realpathSync(e)}catch{return null}}function me(e,t,n){if(!n)return;let r=n.trim();if(!r)return;if(ne(r)||p(r))return r;if(!g(r))return;let i=re(e,t),a=pe(i)??D.resolve(i),o=D.resolve(a,r);if(b(a,o))try{let e=T({absolutePath:o,rootPath:a,rootRealPath:a,boundaryLabel:`workspace root`,maxBytes:y,skipLexicalRootCheck:!0});if(!e.ok)return;try{let t=O.readFileSync(e.fd);return`data:${f(o)};base64,${t.toString(`base64`)}`}finally{O.closeSync(e.fd)}}catch{return}}function he(e,t){let n=e.slice(0,8);return t&&t>0?`${n} (${new Date(t).toISOString().slice(0,10)})`:n}function U(e,t){if(e.length<=t)return e;let n=e.slice(0,t-1),r=n.lastIndexOf(` `);return r>t*.6?n.slice(0,r)+`…`:n+`…`}function ge(e,t){if(e){if(e.displayName?.trim())return e.displayName.trim();if(e.subject?.trim())return e.subject.trim();if(t?.trim())return U(t.replace(/\s+/g,` `).trim(),60);if(e.sessionId)return he(e.sessionId,e.updatedAt)}}function _e(e){let t=_(),n=t.session,r=Y({cfg:t,sessionKey:e}),i=X(t,r),a=E(n?.store,{agentId:i}),o=v(a),s=ve(o,r,e.trim()),c=s?.key===r?void 0:s?.key;return{cfg:t,storePath:a,store:o,entry:s?.entry,canonicalKey:r,legacyKey:c}}function ve(e,...t){for(let n of t)if(n&&e[n])return{entry:e[n],key:n};let n=new Set(t.filter(Boolean).map(e=>e.toLowerCase()));for(let t of Object.keys(e))if(n.has(t.toLowerCase()))return{entry:e[t],key:t}}function W(e,t){let n=t.toLowerCase(),r=[];for(let t of Object.keys(e))t.toLowerCase()===n&&r.push(t);return r}function ye(e){let t=new Set;for(let n of e.candidates){let r=String(n??``).trim();if(r){r!==e.canonicalKey&&t.add(r);for(let n of W(e.store,r))n!==e.canonicalKey&&t.add(n)}}for(let n of t)delete e.store[n]}function G(e,t){return e===`global`?`global`:e===`unknown`?`unknown`:t?.chatType===`group`||t?.chatType===`channel`||e.includes(`:group:`)||e.includes(`:channel:`)?`group`:`direct`}function be(e){let t=(S(e)?.rest??e).split(`:`).filter(Boolean);if(t.length>=3){let[e,n,...r]=t;if(n===`group`||n===`channel`)return{channel:e,kind:n,id:r.join(`:`)}}return null}function xe(e){return typeof e==`string`&&e.includes(`{agentId}`)}function Se(){let e=t(),n=D.join(e,`agents`);try{return O.readdirSync(n,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>C(e.name)).filter(Boolean)}catch{return[]}}function K(e){let t=new Set,n=C(x(e));t.add(n);for(let n of e.agents?.list??[])n?.id&&t.add(C(n.id));for(let e of Se())t.add(e);let r=Array.from(t).filter(Boolean);return r.sort((e,t)=>e.localeCompare(t)),r.includes(n)?[n,...r.filter(e=>e!==n)]:r}function Ce(e){let t=C(x(e)),n=w(e.session?.mainKey),r=e.session?.scope??`per-sender`,i=new Map;for(let t of e.agents?.list??[]){if(!t?.id)continue;let n=t.identity?{name:t.identity.name?.trim()||void 0,theme:t.identity.theme?.trim()||void 0,emoji:t.identity.emoji?.trim()||void 0,avatar:t.identity.avatar?.trim()||void 0,avatarUrl:me(e,C(t.id),t.identity.avatar?.trim())}:void 0;i.set(C(t.id),{name:typeof t.name==`string`&&t.name.trim()?t.name.trim():void 0,identity:n})}let a=new Set((e.agents?.list??[]).map(e=>e?.id?C(e.id):``).filter(Boolean)),o=a.size>0?new Set([...a,t]):null,s=K(e).filter(e=>o?o.has(e):!0);return n&&!s.includes(n)&&(!o||o.has(n))&&(s=[...s,n]),{defaultId:t,mainKey:n,scope:r,agents:s.map(e=>{let t=i.get(e);return{id:e,name:t?.name,identity:t?.identity}})}}function q(e,t){let n=t.toLowerCase();return n===`global`||n===`unknown`||n.startsWith(`agent:`)?n:`agent:${C(e)}:${n}`}function J(e){return C(x(e))}function Y(e){let t=(e.sessionKey??``).trim();if(!t)return t;let n=t.toLowerCase();if(n===`global`||n===`unknown`)return n;let r=S(t);if(r){let n=C(r.agentId),i=t.toLowerCase(),a=l({cfg:e.cfg,agentId:n,sessionKey:i});return a===i?i:a}let i=t.toLowerCase(),a=w(e.cfg.session?.mainKey);return i===`main`||i===a?c(e.cfg):q(J(e.cfg),i)}function X(e,t){if(t===`global`||t===`unknown`)return J(e);let n=S(t);return n?.agentId?C(n.agentId):J(e)}function Z(e,t,n){let r=n?.trim();if(!r)return;let i=r.toLowerCase();if(i===`global`||i===`unknown`)return i;let a;a=r.toLowerCase().startsWith(`agent:`)?r.toLowerCase():`agent:${C(t)}:${i}`;let o=S(a);return l({cfg:e,agentId:o?.agentId?C(o.agentId):t,sessionKey:a})}function we(e){let t=e.key.trim(),n=Y({cfg:e.cfg,sessionKey:t}),r=X(e.cfg,n),a=e.cfg.session?.store,o=E(a,{agentId:r});if(n===`global`||n===`unknown`)return{agentId:r,storePath:o,canonicalKey:n,storeKeys:t&&t!==n?[n,t]:[t]};let s=new Set;if(s.add(n),t&&t!==n&&s.add(t),e.scanLegacyKeys!==!1){let t=new Set(s);n===i({cfg:e.cfg,agentId:r})&&t.add(`agent:${r}:main`);let a=e.store??v(o);for(let e of t)for(let t of W(a,e))s.add(t)}return{agentId:r,storePath:o,canonicalKey:n,storeKeys:Array.from(s)}}function Q(e){let{cfg:t,combined:n,entry:r,agentId:i,canonicalKey:a}=e,o=n[a];o&&(o.updatedAt??0)>(r.updatedAt??0)?n[a]={...r,...o,spawnedBy:Z(t,i,o.spawnedBy??r.spawnedBy)}:n[a]={...o,...r,spawnedBy:Z(t,i,r.spawnedBy??o?.spawnedBy)}}function Te(e){let t=e.session?.store;if(t&&!xe(t)){let n=E(t),r=C(x(e)),i=v(n),a={};for(let[t,n]of Object.entries(i))Q({cfg:e,combined:a,entry:n,agentId:r,canonicalKey:q(r,t)});return{storePath:n,store:a}}let n=K(e),r={};for(let i of n){let n=v(E(t,{agentId:i}));for(let[t,a]of Object.entries(n))Q({cfg:e,combined:r,entry:a,agentId:i,canonicalKey:q(i,t)})}return{storePath:typeof t==`string`&&t.trim()?t.trim():`(multiple)`,store:r}}function Ee(e){let t=d({cfg:e,defaultProvider:h,defaultModel:m}),n=e.agents?.defaults?.contextTokens??z(t.model)??2e5;return{modelProvider:t.provider??null,model:t.model??null,contextTokens:n??null}}function $(e,t,n){let r=n?u({cfg:e,agentId:n}):d({cfg:e,defaultProvider:h,defaultModel:m}),i=r.provider,a=r.model,s=t?.model?.trim(),c=t?.modelProvider?.trim();if(s){if(c)return{provider:c,model:s};let e=o(s,i||`anthropic`);return e?(i=e.provider,a=e.model):a=s,{provider:i,model:a}}let l=t?.modelOverride?.trim();if(l){let e=t?.providerOverride?.trim()||i||`anthropic`,n=o(l,e);n?(i=n.provider,a=n.model):(i=e,a=l)}return{provider:i,model:a}}function De(e,t,r){let i=t?.model?.trim(),a=t?.modelProvider?.trim();if(i){if(a)return{provider:a,model:i};let t=n({cfg:e,model:i});if(t)return{provider:t,model:i};if(i.includes(`/`)){let e=o(i,h);return e?{provider:e.provider,model:e.model}:{model:i}}return{model:i}}let s=$(e,t,r);return{provider:s.provider,model:s.model}}function Oe(e){let{cfg:t,storePath:n,store:i,opts:o}=e,s=Date.now(),c=o.includeGlobal===!0,l=o.includeUnknown===!0,u=o.includeDerivedTitles===!0,d=o.includeLastMessage===!0,f=typeof o.spawnedBy==`string`?o.spawnedBy:``,p=typeof o.label==`string`?o.label.trim():``,m=typeof o.agentId==`string`?C(o.agentId):``,h=typeof o.search==`string`?o.search.trim().toLowerCase():``,g=typeof o.activeMinutes==`number`&&Number.isFinite(o.activeMinutes)?Math.max(1,Math.floor(o.activeMinutes)):void 0,_=Object.entries(i).filter(([e])=>{if(ie(e)||!c&&e===`global`||!l&&e===`unknown`)return!1;if(m){if(e===`global`||e===`unknown`)return!1;let t=S(e);return t?C(t.agentId)===m:!1}return!0}).filter(([e,t])=>f?e===`unknown`||e===`global`?!1:t?.spawnedBy===f:!0).filter(([,e])=>p?e?.label===p:!0).map(([e,n])=>{let i=n?.updatedAt??null,o=r(n),s=typeof n?.totalTokens==`number`?n?.totalTokensFresh!==!1:!1,c=be(e),l=n?.channel??c?.channel,u=n?.subject,d=n?.groupChannel,f=n?.space,p=c?.id,m=n?.origin,h=m?.label,g=n?.displayName??(l?a({provider:l,subject:u,groupChannel:d,space:f,id:p,key:e}):void 0)??n?.label??h,_=ee(n),v=De(t,n,C(S(e)?.agentId??x(t))),y=v.provider,b=v.model??`claude-opus-4-6`;return{key:e,entry:n,kind:G(e,n),label:n?.label,displayName:g,channel:l,subject:u,groupChannel:d,space:f,chatType:n?.chatType,origin:m,updatedAt:i,sessionId:n?.sessionId,systemSent:n?.systemSent,abortedLastRun:n?.abortedLastRun,thinkingLevel:n?.thinkingLevel,verboseLevel:n?.verboseLevel,reasoningLevel:n?.reasoningLevel,elevatedLevel:n?.elevatedLevel,sendPolicy:n?.sendPolicy,inputTokens:n?.inputTokens,outputTokens:n?.outputTokens,totalTokens:o,totalTokensFresh:s,responseUsage:n?.responseUsage,modelProvider:y,model:b,contextTokens:n?.contextTokens,deliveryContext:_.deliveryContext,lastChannel:_.lastChannel??n?.lastChannel,lastTo:_.lastTo??n?.lastTo,lastAccountId:_.lastAccountId??n?.lastAccountId}}).toSorted((e,t)=>(t.updatedAt??0)-(e.updatedAt??0));if(h&&(_=_.filter(e=>[e.displayName,e.label,e.subject,e.sessionId,e.key].some(e=>typeof e==`string`&&e.toLowerCase().includes(h)))),g!==void 0){let e=s-g*6e4;_=_.filter(t=>(t.updatedAt??0)>=e)}if(typeof o.limit==`number`&&Number.isFinite(o.limit)){let e=Math.max(1,Math.floor(o.limit));_=_.slice(0,e)}let v=_.map(e=>{let{entry:r,...i}=e,a,o;if(r?.sessionId&&(u||d)){let i=S(e.key),s=i&&i.agentId?C(i.agentId):x(t),c=te(r.sessionId,n,r.sessionFile,s);u&&(a=ge(r,c.firstUserMessage)),d&&c.lastMessagePreview&&(o=c.lastMessagePreview)}return{...i,derivedTitle:a,lastMessagePreview:o}});return{ts:s,path:n,count:v.length,defaults:Ee(t),sessions:v}}export{Te as a,we as c,fe as d,k as f,Oe as i,$ as l,G as n,_e as o,A as p,Ce as r,ye as s,Z as t,z as u};
2
- //# sourceMappingURL=session-utils-Bpdyx2A2.js.map
@@ -1,2 +1 @@
1
1
  import{A as e,k as t,y as n}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{Cn as r,Yc as i,jo as a,jt as o}from"./auth-profiles-C8rZRS0X.js";import{f as s,r as c}from"./agent-scope-DAWJwFfl.js";import{E as l,c as u}from"./session-key-C7F_iqYg.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import{c as d}from"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DZzS67GS.js";import{l as f,n as p,u as m}from"./session-utils-Bpdyx2A2.js";import{n as h}from"./format-relative-DkMjYy7z.js";function g(e){let t=new Map;for(let n of e)t.has(n.storePath)||t.set(n.storePath,n);return[...t.values()]}function _(e,t){let n=s(e),r=!!t.agent?.trim(),i=t.allAgents===!0;if(r&&i)throw Error(`--agent and --all-agents cannot be used together`);if(t.store&&(r||i))throw Error(`--store cannot be combined with --agent or --all-agents`);if(t.store)return[{agentId:n,storePath:d(t.store,{agentId:n})}];if(i)return g(c(e).map(t=>({agentId:t,storePath:d(e.session?.store,{agentId:t})})));if(r){let n=c(e),r=u(t.agent??``);if(!n.includes(r))throw Error(`Unknown agent id "${t.agent}". Use "openclaw agents list" to see configured agents.`);return[{agentId:r,storePath:d(e.session?.store,{agentId:r})}]}return[{agentId:n,storePath:d(e.session?.store,{agentId:n})}]}function v(e){try{return _(e.cfg,e.opts)}catch(t){return e.runtime.error(t instanceof Error?t.message:String(t)),e.runtime.exit(1),null}}function y(e){return Object.entries(e).map(([e,t])=>{let n=t?.updatedAt??null;return{key:e,updatedAt:n,ageMs:n?Date.now()-n:null,sessionId:t?.sessionId,systemSent:t?.systemSent,abortedLastRun:t?.abortedLastRun,thinkingLevel:t?.thinkingLevel,verboseLevel:t?.verboseLevel,reasoningLevel:t?.reasoningLevel,elevatedLevel:t?.elevatedLevel,responseUsage:t?.responseUsage,groupActivation:t?.groupActivation,inputTokens:t?.inputTokens,outputTokens:t?.outputTokens,totalTokens:t?.totalTokens,totalTokensFresh:t?.totalTokensFresh,model:t?.model,modelProvider:t?.modelProvider,providerOverride:t?.providerOverride,modelOverride:t?.modelOverride,contextTokens:t?.contextTokens}}).toSorted((e,t)=>(t.updatedAt??0)-(e.updatedAt??0))}function b(e){return{model:i({cfg:e,defaultProvider:`anthropic`,defaultModel:`claude-opus-4-6`}).model??`claude-opus-4-6`}}function x(e,t,n){return f(e,t,l(t.key)?.agentId).model??n.model}function S(e){return e.length<=26?e:`${e.slice(0,16)}...${e.slice(-6)}`}function C(t,n){let r=S(t).padEnd(26);return n?e.accent(r):r}function w(t,n){let r=(t?h(Date.now()-t):`unknown`).padEnd(9);return n?e.muted(r):r}function T(t,n){let r=(t??`unknown`).padEnd(14);return n?e.info(r):r}function E(t,n){let r=[t.thinkingLevel?`think:${t.thinkingLevel}`:null,t.verboseLevel?`verbose:${t.verboseLevel}`:null,t.reasoningLevel?`reasoning:${t.reasoningLevel}`:null,t.elevatedLevel?`elev:${t.elevatedLevel}`:null,t.responseUsage?`usage:${t.responseUsage}`:null,t.groupActivation?`activation:${t.groupActivation}`:null,t.systemSent?`system`:null,t.abortedLastRun?`aborted`:null,t.sessionId?`id:${t.sessionId}`:null].filter(Boolean).join(` `);return r.length===0?``:n?e.muted(r):r}const D=e=>`${(e/1e3).toFixed(e>=1e4?0:1)}k`,O=(t,n,r)=>!r||n===null?t:n>=95?e.error(t):n>=80?e.warn(t):n>=60?e.success(t):e.muted(t),k=(t,n,r)=>{if(t===void 0){let t=`unknown/${n?D(n):`?`} (?%)`;return r?e.muted(t.padEnd(20)):t.padEnd(20)}let i=D(t),a=n?D(n):`?`,o=n?Math.min(999,Math.round(t/n*100)):null;return O(`${i}/${a} (${o??`?`}%)`.padEnd(20),o,r)},A=(t,n)=>{let r=t.padEnd(6);return n?t===`group`?e.accentBright(r):t===`global`?e.warn(r):t===`direct`?e.accent(r):e.muted(r):r};async function j(i,s){let c=i.allAgents===!0,u=a(),d=b(u),f=u.agents?.defaults?.contextTokens??m(d.model)??2e5,h=v({cfg:u,opts:{store:i.store,agent:i.agent,allAgents:i.allAgents},runtime:s});if(!h)return;let g;if(i.active!==void 0){let e=Number.parseInt(String(i.active),10);if(Number.isNaN(e)||e<=0){s.error(`--active must be a positive integer (minutes)`),s.exit(1);return}g=e}let _=h.flatMap(e=>{let t=o(e.storePath);return y(t).map(n=>({...n,agentId:l(n.key)?.agentId??e.agentId,kind:p(n.key,t[n.key])}))}).filter(e=>g===void 0?!0:e.updatedAt?Date.now()-e.updatedAt<=g*6e4:!1).toSorted((e,t)=>(t.updatedAt??0)-(e.updatedAt??0));if(i.json){let e=h.length>1,t=c||e;s.log(JSON.stringify({path:t?null:h[0]?.storePath??null,stores:t?h.map(e=>({agentId:e.agentId,path:e.storePath})):void 0,allAgents:c?!0:void 0,count:_.length,activeMinutes:g??null,sessions:_.map(e=>{let t=x(u,e,d);return{...e,totalTokens:r(e)??null,totalTokensFresh:typeof e.totalTokens==`number`?e.totalTokensFresh!==!1:!1,contextTokens:e.contextTokens??m(t)??f??null,model:t}})},null,2));return}if(h.length===1&&!c?s.log(n(`Session store: ${h[0]?.storePath}`)):s.log(n(`Session stores: ${h.length} (${h.map(e=>e.agentId).join(`, `)})`)),s.log(n(`Sessions listed: ${_.length}`)),g&&s.log(n(`Filtered to last ${g} minute(s)`)),_.length===0){s.log(`No sessions found.`);return}let S=t(),D=c||h.length>1,O=[...D?[`Agent`.padEnd(10)]:[],`Kind`.padEnd(6),`Key`.padEnd(26),`Age`.padEnd(9),`Model`.padEnd(14),`Tokens (ctx %)`.padEnd(20),`Flags`].join(` `);s.log(S?e.heading(O):O);for(let t of _){let n=x(u,t,d),i=t.contextTokens??m(n)??f,a=r(t),o=[...D?[S?e.accentBright(t.agentId.padEnd(10)):t.agentId.padEnd(10)]:[],A(t.kind,S),C(t.key,S),w(t.updatedAt,S),T(n,S),k(a,i??null,S),E(t,S)].join(` `);s.log(o.trimEnd())}}export{b as a,v as c,T as i,E as n,x as o,C as r,y as s,j as sessionsCommand,w as t};
2
- //# sourceMappingURL=sessions-Ca6ozRCQ.js.map
@@ -1,2 +1 @@
1
1
  import{p as e}from"./subsystem-C5XF2Fy5.js";import{t}from"./command-format-BbDT1tlm.js";import{m as n,p as r,u as i}from"./arg-split-DE5RqDHq.js";import{n as a}from"./service-BtB9epJk.js";const o=e=>{if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`bigint`)return e.toString()};function s(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`bigint`)return e.toString();if(typeof e==`boolean`)return e?`true`:`false`;if(e&&typeof e==`object`){if(`message`in e&&typeof e.message==`string`)return e.message;try{return JSON.stringify(e)}catch{return`Unknown error`}}return`Unknown error`}function c(e){if(!e||typeof e!=`object`)return{hasGatewayToken:!1,hasRemoteToken:!1};let t=e.gateway;if(!t||typeof t!=`object`)return{hasGatewayToken:!1,hasRemoteToken:!1};let n=`token`in t,r=t.remote;return{hasGatewayToken:n,hasRemoteToken:r&&typeof r==`object`?`token`in r:!1}}function l(e=process.env){let a=e.OPENCLAW_PROFILE;switch(process.platform){case`darwin`:return[`Tip: ${t(`openclaw gateway stop`)}`,`Or: launchctl bootout gui/$UID/${i(a)}`];case`linux`:return[`Tip: ${t(`openclaw gateway stop`)}`,`Or: systemctl --user stop ${r(a)}.service`];case`win32`:return[`Tip: ${t(`openclaw gateway stop`)}`,`Or: schtasks /End /TN "${n(a)}"`];default:return[`Tip: ${t(`openclaw gateway stop`)}`]}}async function u(){let t=a(),n=null;try{n=await t.isLoaded({env:process.env})}catch{n=null}if(n!==!1){e.error(n?`Gateway service appears ${t.loadedText}. Stop it first.`:`Gateway service status unknown; if supervised, stop it first.`);for(let t of l())e.error(t)}}export{o as i,c as n,u as r,s as t};
2
- //# sourceMappingURL=shared-9x5sqYRb.js.map
@@ -1,2 +1 @@
1
1
  import{p as e}from"./subsystem-BLbY429l.js";import{t}from"./command-format-CLxIPuLR.js";import{m as n,p as r,u as i}from"./arg-split-BOqSMBuf.js";import{n as a}from"./service-DZ9EbS15.js";const o=e=>{if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`bigint`)return e.toString()};function s(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`bigint`)return e.toString();if(typeof e==`boolean`)return e?`true`:`false`;if(e&&typeof e==`object`){if(`message`in e&&typeof e.message==`string`)return e.message;try{return JSON.stringify(e)}catch{return`Unknown error`}}return`Unknown error`}function c(e){if(!e||typeof e!=`object`)return{hasGatewayToken:!1,hasRemoteToken:!1};let t=e.gateway;if(!t||typeof t!=`object`)return{hasGatewayToken:!1,hasRemoteToken:!1};let n=`token`in t,r=t.remote;return{hasGatewayToken:n,hasRemoteToken:r&&typeof r==`object`?`token`in r:!1}}function l(e=process.env){let a=e.OPENCLAW_PROFILE;switch(process.platform){case`darwin`:return[`Tip: ${t(`openclaw gateway stop`)}`,`Or: launchctl bootout gui/$UID/${i(a)}`];case`linux`:return[`Tip: ${t(`openclaw gateway stop`)}`,`Or: systemctl --user stop ${r(a)}.service`];case`win32`:return[`Tip: ${t(`openclaw gateway stop`)}`,`Or: schtasks /End /TN "${n(a)}"`];default:return[`Tip: ${t(`openclaw gateway stop`)}`]}}async function u(){let t=a(),n=null;try{n=await t.isLoaded({env:process.env})}catch{n=null}if(n!==!1){e.error(n?`Gateway service appears ${t.loadedText}. Stop it first.`:`Gateway service status unknown; if supervised, stop it first.`);for(let t of l())e.error(t)}}export{o as i,c as n,u as r,s as t};
2
- //# sourceMappingURL=shared-BKWhOp64.js.map
@@ -26,4 +26,3 @@ import{$ as e,D as t,F as n,G as r,I as i,J as a,K as o,L as s,O as c,P as l,U a
26
26
  `);break;case`code_block`:case`fence`:mt(t,n.content??``);break;case`html_block`:case`html_inline`:G(t,n.content??``);break;case`table_open`:t.tableMode!==`off`&&(t.table=gt(),t.hasTables=!0);break;case`table_close`:t.table&&(t.tableMode===`bullets`?bt(t):t.tableMode===`code`&&xt(t)),t.table=null;break;case`thead_open`:t.table&&(t.table.inHeader=!0);break;case`thead_close`:t.table&&(t.table.inHeader=!1);break;case`tbody_open`:case`tbody_close`:break;case`tr_open`:t.table&&(t.table.currentRow=[]);break;case`tr_close`:t.table&&(t.table.inHeader?t.table.headers=t.table.currentRow:t.table.rows.push(t.table.currentRow),t.table.currentRow=[]);break;case`th_open`:case`td_open`:t.table&&(t.table.currentCell=ut());break;case`th_close`:case`td_close`:t.table?.currentCell&&(t.table.currentRow.push(_t(t.table.currentCell)),t.table.currentCell=null);break;case`hr`:t.text+=`───
27
27
 
28
28
  `;break;default:n.children&&X(n.children,t);break}}function Z(e){for(let t=e.openStyles.length-1;t>=0;--t){let n=e.openStyles[t],r=e.text.length;r>n.start&&e.styles.push({start:n.start,end:r,style:n.style})}e.openStyles=[]}function St(e,t){let n=[];for(let r of e){let e=Math.max(0,Math.min(r.start,t)),i=Math.max(e,Math.min(r.end,t));i>e&&n.push({start:e,end:i,style:r.style})}return n}function Ct(e,t){let n=[];for(let r of e){let e=Math.max(0,Math.min(r.start,t)),i=Math.max(e,Math.min(r.end,t));i>e&&n.push({start:e,end:i,href:r.href})}return n}function wt(e){let t=[...e].toSorted((e,t)=>e.start===t.start?e.end===t.end?e.style.localeCompare(t.style):e.end-t.end:e.start-t.start),n=[];for(let e of t){let t=n[n.length-1];if(t&&t.style===e.style&&(e.start<t.end||e.start===t.end&&e.style!==`blockquote`)){t.end=Math.max(t.end,e.end);continue}n.push({...e})}return n}function Tt(e,t={}){return Q(e,t).ir}function Q(e,t={}){let n={listStack:[]},r=ot(t).parse(e??``,n);t.enableSpoilers&&ct(r);let i=t.tableMode??`off`,a={text:``,styles:[],openStyles:[],links:[],linkStack:[],env:n,headingStyle:t.headingStyle??`none`,blockquotePrefix:t.blockquotePrefix??``,enableSpoilers:t.enableSpoilers??!1,tableMode:i,table:null,hasTables:!1};X(r,a),Z(a);let o=a.text.trimEnd().length,s=0;for(let e of a.styles)e.style===`code_block`&&e.end>s&&(s=e.end);let c=Math.max(o,s);return{ir:{text:c===a.text.length?a.text:a.text.slice(0,c),styles:wt(St(a.styles,c)),links:Ct(a.links,c)},hasTables:a.hasTables}}const $=new Map([`blockquote`,`code_block`,`code`,`bold`,`italic`,`strikethrough`,`spoiler`].map((e,t)=>[e,t]));function Et(e){return[...e].toSorted((e,t)=>e.start===t.start?e.end===t.end?($.get(e.style)??0)-($.get(t.style)??0):t.end-e.end:e.start-t.start)}function Dt(e,t){let n=e.text??``;if(!n)return``;let r=t.styleMarkers,i=Et(e.styles.filter(e=>!!r[e.style])),a=new Set;a.add(0),a.add(n.length);let o=new Map;for(let e of i){if(e.start===e.end)continue;a.add(e.start),a.add(e.end);let t=o.get(e.start);t?t.push(e):o.set(e.start,[e])}for(let e of o.values())e.sort((e,t)=>e.end===t.end?($.get(e.style)??0)-($.get(t.style)??0):t.end-e.end);let s=new Map;if(t.buildLink)for(let r of e.links){if(r.start===r.end)continue;let e=t.buildLink(r,n);if(!e)continue;a.add(e.start),a.add(e.end);let i=s.get(e.start);i?i.push(e):s.set(e.start,[e])}let c=[...a].toSorted((e,t)=>e-t),l=[],u=``;for(let e=0;e<c.length;e+=1){let i=c[e];for(;l.length&&l[l.length-1]?.end===i;){let e=l.pop();e&&(u+=e.close)}let a=[],d=s.get(i);if(d&&d.length>0)for(let[e,t]of d.entries())a.push({end:t.end,open:t.open,close:t.close,kind:`link`,index:e});let f=o.get(i);if(f)for(let[e,t]of f.entries()){let n=r[t.style];n&&a.push({end:t.end,open:n.open,close:n.close,kind:`style`,style:t.style,index:e})}if(a.length>0){a.sort((e,t)=>e.end===t.end?e.kind===t.kind?e.kind===`style`&&t.kind===`style`?($.get(e.style)??0)-($.get(t.style)??0):e.index-t.index:e.kind===`link`?-1:1:t.end-e.end);for(let e of a)u+=e.open,l.push({close:e.close,end:e.end})}let p=c[e+1];if(p===void 0)break;p>i&&(u+=t.escapeText(n.slice(i,p)))}return u}function Ot(e,t){let n=e[t];if(typeof n==`boolean`)return n;if(typeof n==`string`){let e=n.trim().toLowerCase();if(e===`true`)return!0;if(e===`false`)return!1}}function kt(e){return e.filter(e=>e.tokenSource!==`none`)}function At(e,t){let n=e.map(e=>t(e));return(e,t=!0)=>n.some(n=>n(e,t))}export{me as _,Tt as a,et as c,Ue as d,Re as f,he as g,ge as h,Dt as i,tt as l,D as m,kt as n,Q as o,ze as p,Ot as r,at as s,At as t,Ge as u,pe as v};
29
- //# sourceMappingURL=shared-Ca5BFwta.js.map
@@ -1,2 +1 @@
1
1
  import{U as e,W as t,z as n}from"./paths-piJASC5k.js";import{O as r,R as i,a,y as o}from"./logger-DwWqfo66.js";import{ci as s,ea as c,ia as l}from"./model-selection-DvekK9rZ.js";import{i as u}from"./commands-registry-gvMK7Pw9.js";import d from"node:fs";import f from"node:path";import p from"node:os";import"node:crypto";import m from"chokidar";const h=r(`gateway/skills`),g=new Set,_=new Map,v=new Map;let y=0;const b=[/(^|[\\/])\.git([\\/]|$)/,/(^|[\\/])node_modules([\\/]|$)/,/(^|[\\/])dist([\\/]|$)/,/(^|[\\/])\.venv([\\/]|$)/,/(^|[\\/])venv([\\/]|$)/,/(^|[\\/])__pycache__([\\/]|$)/,/(^|[\\/])\.mypy_cache([\\/]|$)/,/(^|[\\/])\.pytest_cache([\\/]|$)/,/(^|[\\/])build([\\/]|$)/,/(^|[\\/])\.cache([\\/]|$)/];function x(e){let t=Date.now();return t<=e?e+1:t}function S(e){for(let t of g)try{t(e)}catch(e){h.warn(`skills change listener failed: ${String(e)}`)}}function C(e,t){let n=[];e.trim()&&(n.push(f.join(e,`skills`)),n.push(f.join(e,`.agents`,`skills`))),n.push(f.join(a,`skills`)),n.push(f.join(p.homedir(),`.qbotclaw`,`openclaw-qbot`,`skills`));let r=(t?.skills?.load?.extraDirs??[]).map(e=>typeof e==`string`?e.trim():``).filter(Boolean).map(e=>o(e));n.push(...r);let i=l({workspaceDir:e,config:t});return n.push(...i),n}function w(e){return e.replaceAll(`\\`,`/`).replace(/\/+$/,``)}function T(e,t){let n=new Set;for(let r of C(e,t)){let e=w(r);n.add(`${e}/SKILL.md`),n.add(`${e}/*/SKILL.md`)}return Array.from(n).toSorted()}function E(e){let t=e?.reason??`manual`,n=e?.changedPath;if(e?.workspaceDir){let r=x(_.get(e.workspaceDir)??0);return _.set(e.workspaceDir,r),S({workspaceDir:e.workspaceDir,reason:t,changedPath:n}),r}return y=x(y),S({reason:t,changedPath:n}),y}function D(e){if(!e)return y;let t=_.get(e)??0;return Math.max(y,t)}function O(e){let t=e.workspaceDir.trim();if(!t)return;let n=e.config?.skills?.load?.watch!==!1,r=e.config?.skills?.load?.watchDebounceMs,i=typeof r==`number`&&Number.isFinite(r)?Math.max(0,r):250,a=v.get(t);if(!n){a&&(v.delete(t),a.timer&&clearTimeout(a.timer),a.watcher.close().catch(()=>{}));return}let o=T(t,e.config),s=o.join(`|`);if(a&&a.pathsKey===s&&a.debounceMs===i)return;a&&(v.delete(t),a.timer&&clearTimeout(a.timer),a.watcher.close().catch(()=>{}));let c=m.watch(o,{ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:i,pollInterval:100},ignored:b}),l={watcher:c,pathsKey:s,debounceMs:i},u=e=>{l.pendingPath=e??l.pendingPath,l.timer&&clearTimeout(l.timer),l.timer=setTimeout(()=>{let e=l.pendingPath;l.pendingPath=void 0,l.timer=void 0,E({workspaceDir:t,reason:`watch`,changedPath:e})},i)};c.on(`add`,e=>u(e)),c.on(`change`,e=>u(e)),c.on(`unlink`,e=>u(e)),c.on(`error`,e=>{h.warn(`skills watcher error (${t}): ${String(e)}`)}),v.set(t,l)}s(),r(`gateway/skills-remote`);const k=new Map;function A(e,t){let n=String(e??``).trim().toLowerCase(),r=String(t??``).trim().toLowerCase();return!!(n.includes(`mac`)||n.includes(`darwin`)||r===`mac`)}function j(e){return Array.isArray(e)&&e.includes(`system.run`)}function M(){let e=[...k.values()].filter(e=>A(e.platform,e.deviceFamily)&&j(e.commands));if(e.length===0)return;let t=new Set;for(let n of e)for(let e of n.bins)t.add(e);let n=e.map(e=>e.displayName??e.nodeId).filter(Boolean);return{platforms:[`darwin`],hasBin:e=>t.has(e),hasAnyBin:e=>e.some(e=>t.has(e)),note:n.length>0?`Remote macOS node available (${n.join(`, `)}). Run macOS-only skills via nodes.run on that node.`:`Remote macOS node available. Run macOS-only skills via nodes.run on that node.`}}function N(e=[]){let t=new Set;for(let e of u()){e.nativeName&&t.add(e.nativeName.toLowerCase());for(let n of e.textAliases){let e=n.trim();e.startsWith(`/`)&&t.add(e.slice(1).toLowerCase())}}for(let n of e){let e=n.trim().toLowerCase();e&&t.add(e)}return t}function P(e){return c(e.workspaceDir,{config:e.cfg,skillFilter:e.skillFilter,eligibility:{remote:M()},reservedNames:N()})}function F(e){let t=new Set,n=[];for(let r of e){let e=r.skillName.trim().toLowerCase();e&&t.has(e)||(e&&t.add(e),n.push(r))}return n}function I(r){let a=(e,t)=>{if(!(e===void 0||t===void 0))return e.length===0?Array.from(new Set(t)):t.length===0?Array.from(new Set(e)):Array.from(new Set([...e,...t]))},o=r.agentIds??n(r.cfg),s=N(),l=[],u=new Map;for(let n of o){let o=t(r.cfg,n);if(!d.existsSync(o)){i(`Skipping agent "${n}": workspace does not exist: ${o}`);continue}let s;try{s=d.realpathSync(o)}catch{i(`Skipping agent "${n}": cannot resolve workspace: ${o}`);continue}let c=e(r.cfg,n),l=u.get(s);if(l){l.skillFilter=a(l.skillFilter,c);continue}u.set(s,{workspaceDir:o,skillFilter:c})}for(let{workspaceDir:e,skillFilter:t}of u.values()){let n=c(e,{config:r.cfg,skillFilter:t,eligibility:{remote:M()},reservedNames:s});for(let e of n)s.add(e.name.toLowerCase()),l.push(e)}return F(l)}function L(e){return e.trim().toLowerCase().replace(/[\s_]+/g,`-`)}function R(e,t){let n=t.trim();if(!n)return;let r=n.toLowerCase(),i=L(n);return e.find(e=>e.name.toLowerCase()===r||e.skillName.toLowerCase()===r?!0:L(e.name)===i||L(e.skillName)===i)}function z(e){let t=e.commandBodyNormalized.trim();if(!t.startsWith(`/`))return null;let n=t.match(/^\/([^\s]+)(?:\s+([\s\S]+))?$/);if(!n)return null;let r=n[1]?.trim().toLowerCase();if(!r)return null;if(r===`skill`){let t=n[2]?.trim();if(!t)return null;let r=t.match(/^([^\s]+)(?:\s+([\s\S]+))?$/);if(!r)return null;let i=R(e.skillCommands,r[1]??``);return i?{command:i,args:r[2]?.trim()||void 0}:null}let i=e.skillCommands.find(e=>e.name.toLowerCase()===r);return i?{command:i,args:n[2]?.trim()||void 0}:null}export{M as a,z as i,I as n,O as o,P as r,D as s,N as t};
2
- //# sourceMappingURL=skill-commands-CPZcaV8-.js.map
@@ -1,2 +1 @@
1
1
  import{G as e,W as t,z as n}from"./paths-CrCoPIVK.js";import{d as r,t as i}from"./subsystem-Bc2XrjUz.js";import{h as a,t as o}from"./utils-D3t-vPka.js";import{ci as s,ea as c,ia as l}from"./model-selection-D7mdJmGK.js";import{i as u}from"./commands-registry-C5Hg7gyk.js";import d from"node:os";import f from"node:path";import p from"node:fs";import"node:crypto";import m from"chokidar";const h=i(`gateway/skills`),g=new Set,_=new Map,v=new Map;let y=0;const b=[/(^|[\\/])\.git([\\/]|$)/,/(^|[\\/])node_modules([\\/]|$)/,/(^|[\\/])dist([\\/]|$)/,/(^|[\\/])\.venv([\\/]|$)/,/(^|[\\/])venv([\\/]|$)/,/(^|[\\/])__pycache__([\\/]|$)/,/(^|[\\/])\.mypy_cache([\\/]|$)/,/(^|[\\/])\.pytest_cache([\\/]|$)/,/(^|[\\/])build([\\/]|$)/,/(^|[\\/])\.cache([\\/]|$)/];function x(e){let t=Date.now();return t<=e?e+1:t}function S(e){for(let t of g)try{t(e)}catch(e){h.warn(`skills change listener failed: ${String(e)}`)}}function C(e,t){let n=[];e.trim()&&(n.push(f.join(e,`skills`)),n.push(f.join(e,`.agents`,`skills`))),n.push(f.join(o,`skills`)),n.push(f.join(d.homedir(),`.qbotclaw`,`openclaw-qbot`,`skills`));let r=(t?.skills?.load?.extraDirs??[]).map(e=>typeof e==`string`?e.trim():``).filter(Boolean).map(e=>a(e));n.push(...r);let i=l({workspaceDir:e,config:t});return n.push(...i),n}function w(e){return e.replaceAll(`\\`,`/`).replace(/\/+$/,``)}function T(e,t){let n=new Set;for(let r of C(e,t)){let e=w(r);n.add(`${e}/SKILL.md`),n.add(`${e}/*/SKILL.md`)}return Array.from(n).toSorted()}function E(e){let t=e?.reason??`manual`,n=e?.changedPath;if(e?.workspaceDir){let r=x(_.get(e.workspaceDir)??0);return _.set(e.workspaceDir,r),S({workspaceDir:e.workspaceDir,reason:t,changedPath:n}),r}return y=x(y),S({reason:t,changedPath:n}),y}function D(e){if(!e)return y;let t=_.get(e)??0;return Math.max(y,t)}function O(e){let t=e.workspaceDir.trim();if(!t)return;let n=e.config?.skills?.load?.watch!==!1,r=e.config?.skills?.load?.watchDebounceMs,i=typeof r==`number`&&Number.isFinite(r)?Math.max(0,r):250,a=v.get(t);if(!n){a&&(v.delete(t),a.timer&&clearTimeout(a.timer),a.watcher.close().catch(()=>{}));return}let o=T(t,e.config),s=o.join(`|`);if(a&&a.pathsKey===s&&a.debounceMs===i)return;a&&(v.delete(t),a.timer&&clearTimeout(a.timer),a.watcher.close().catch(()=>{}));let c=m.watch(o,{ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:i,pollInterval:100},ignored:b}),l={watcher:c,pathsKey:s,debounceMs:i},u=e=>{l.pendingPath=e??l.pendingPath,l.timer&&clearTimeout(l.timer),l.timer=setTimeout(()=>{let e=l.pendingPath;l.pendingPath=void 0,l.timer=void 0,E({workspaceDir:t,reason:`watch`,changedPath:e})},i)};c.on(`add`,e=>u(e)),c.on(`change`,e=>u(e)),c.on(`unlink`,e=>u(e)),c.on(`error`,e=>{h.warn(`skills watcher error (${t}): ${String(e)}`)}),v.set(t,l)}s(),i(`gateway/skills-remote`);const k=new Map;function A(e,t){let n=String(e??``).trim().toLowerCase(),r=String(t??``).trim().toLowerCase();return!!(n.includes(`mac`)||n.includes(`darwin`)||r===`mac`)}function j(e){return Array.isArray(e)&&e.includes(`system.run`)}function M(){let e=[...k.values()].filter(e=>A(e.platform,e.deviceFamily)&&j(e.commands));if(e.length===0)return;let t=new Set;for(let n of e)for(let e of n.bins)t.add(e);let n=e.map(e=>e.displayName??e.nodeId).filter(Boolean);return{platforms:[`darwin`],hasBin:e=>t.has(e),hasAnyBin:e=>e.some(e=>t.has(e)),note:n.length>0?`Remote macOS node available (${n.join(`, `)}). Run macOS-only skills via nodes.run on that node.`:`Remote macOS node available. Run macOS-only skills via nodes.run on that node.`}}function N(e=[]){let t=new Set;for(let e of u()){e.nativeName&&t.add(e.nativeName.toLowerCase());for(let n of e.textAliases){let e=n.trim();e.startsWith(`/`)&&t.add(e.slice(1).toLowerCase())}}for(let n of e){let e=n.trim().toLowerCase();e&&t.add(e)}return t}function P(e){return c(e.workspaceDir,{config:e.cfg,skillFilter:e.skillFilter,eligibility:{remote:M()},reservedNames:N()})}function F(e){let t=new Set,n=[];for(let r of e){let e=r.skillName.trim().toLowerCase();e&&t.has(e)||(e&&t.add(e),n.push(r))}return n}function I(i){let a=(e,t)=>{if(!(e===void 0||t===void 0))return e.length===0?Array.from(new Set(t)):t.length===0?Array.from(new Set(e)):Array.from(new Set([...e,...t]))},o=i.agentIds??n(i.cfg),s=N(),l=[],u=new Map;for(let n of o){let o=e(i.cfg,n);if(!p.existsSync(o)){r(`Skipping agent "${n}": workspace does not exist: ${o}`);continue}let s;try{s=p.realpathSync(o)}catch{r(`Skipping agent "${n}": cannot resolve workspace: ${o}`);continue}let c=t(i.cfg,n),l=u.get(s);if(l){l.skillFilter=a(l.skillFilter,c);continue}u.set(s,{workspaceDir:o,skillFilter:c})}for(let{workspaceDir:e,skillFilter:t}of u.values()){let n=c(e,{config:i.cfg,skillFilter:t,eligibility:{remote:M()},reservedNames:s});for(let e of n)s.add(e.name.toLowerCase()),l.push(e)}return F(l)}function L(e){return e.trim().toLowerCase().replace(/[\s_]+/g,`-`)}function R(e,t){let n=t.trim();if(!n)return;let r=n.toLowerCase(),i=L(n);return e.find(e=>e.name.toLowerCase()===r||e.skillName.toLowerCase()===r?!0:L(e.name)===i||L(e.skillName)===i)}function z(e){let t=e.commandBodyNormalized.trim();if(!t.startsWith(`/`))return null;let n=t.match(/^\/([^\s]+)(?:\s+([\s\S]+))?$/);if(!n)return null;let r=n[1]?.trim().toLowerCase();if(!r)return null;if(r===`skill`){let t=n[2]?.trim();if(!t)return null;let r=t.match(/^([^\s]+)(?:\s+([\s\S]+))?$/);if(!r)return null;let i=R(e.skillCommands,r[1]??``);return i?{command:i,args:r[2]?.trim()||void 0}:null}let i=e.skillCommands.find(e=>e.name.toLowerCase()===r);return i?{command:i,args:n[2]?.trim()||void 0}:null}export{M as a,z as i,I as n,O as o,P as r,D as s,N as t};
2
- //# sourceMappingURL=skill-commands-CtprBvm0.js.map
@@ -1,2 +1 @@
1
1
  import{S as e,t}from"./subsystem-BLbY429l.js";import{br as n,vr as r,yr as i}from"./auth-profiles-C8rZRS0X.js";import{d as a,r as o,u as s}from"./agent-scope-DAWJwFfl.js";import{t as c,v as l}from"./utils-CGdo13HV.js";import{i as u,n as d,s as f}from"./skills-Bz_S4lPh.js";import{i as ee}from"./commands-registry-DT6FDUev.js";import{t as te}from"./workspace-dirs-A8Vib9_B.js";import{a as p,i as m,n as h,o as g,r as _,t as ne}from"./pairing-token-zdbQ951y.js";import re from"node:os";import v from"node:path";import y from"node:fs";import{randomUUID as b}from"node:crypto";import x from"chokidar";const S=t(`gateway/skills`),C=new Set,w=new Map,T=new Map;let E=0;const ie=[/(^|[\\/])\.git([\\/]|$)/,/(^|[\\/])node_modules([\\/]|$)/,/(^|[\\/])dist([\\/]|$)/,/(^|[\\/])\.venv([\\/]|$)/,/(^|[\\/])venv([\\/]|$)/,/(^|[\\/])__pycache__([\\/]|$)/,/(^|[\\/])\.mypy_cache([\\/]|$)/,/(^|[\\/])\.pytest_cache([\\/]|$)/,/(^|[\\/])build([\\/]|$)/,/(^|[\\/])\.cache([\\/]|$)/];function D(e){let t=Date.now();return t<=e?e+1:t}function O(e){for(let t of C)try{t(e)}catch(e){S.warn(`skills change listener failed: ${String(e)}`)}}function ae(e,t){let n=[];e.trim()&&(n.push(v.join(e,`skills`)),n.push(v.join(e,`.agents`,`skills`))),n.push(v.join(c,`skills`)),n.push(v.join(re.homedir(),`.qbotclaw`,`openclaw-qbot`,`skills`));let r=(t?.skills?.load?.extraDirs??[]).map(e=>typeof e==`string`?e.trim():``).filter(Boolean).map(e=>l(e));n.push(...r);let i=f({workspaceDir:e,config:t});return n.push(...i),n}function oe(e){return e.replaceAll(`\\`,`/`).replace(/\/+$/,``)}function se(e,t){let n=new Set;for(let r of ae(e,t)){let e=oe(r);n.add(`${e}/SKILL.md`),n.add(`${e}/*/SKILL.md`)}return Array.from(n).toSorted()}function ce(e){return C.add(e),()=>{C.delete(e)}}function k(e){let t=e?.reason??`manual`,n=e?.changedPath;if(e?.workspaceDir){let r=D(w.get(e.workspaceDir)??0);return w.set(e.workspaceDir,r),O({workspaceDir:e.workspaceDir,reason:t,changedPath:n}),r}return E=D(E),O({reason:t,changedPath:n}),E}function le(e){if(!e)return E;let t=w.get(e)??0;return Math.max(E,t)}function ue(e){let t=e.workspaceDir.trim();if(!t)return;let n=e.config?.skills?.load?.watch!==!1,r=e.config?.skills?.load?.watchDebounceMs,i=typeof r==`number`&&Number.isFinite(r)?Math.max(0,r):250,a=T.get(t);if(!n){a&&(T.delete(t),a.timer&&clearTimeout(a.timer),a.watcher.close().catch(()=>{}));return}let o=se(t,e.config),s=o.join(`|`);if(a&&a.pathsKey===s&&a.debounceMs===i)return;a&&(T.delete(t),a.timer&&clearTimeout(a.timer),a.watcher.close().catch(()=>{}));let c=x.watch(o,{ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:i,pollInterval:100},ignored:ie}),l={watcher:c,pathsKey:s,debounceMs:i},u=e=>{l.pendingPath=e??l.pendingPath,l.timer&&clearTimeout(l.timer),l.timer=setTimeout(()=>{let e=l.pendingPath;l.pendingPath=void 0,l.timer=void 0,k({workspaceDir:t,reason:`watch`,changedPath:e})},i)};c.on(`add`,e=>u(e)),c.on(`change`,e=>u(e)),c.on(`unlink`,e=>u(e)),c.on(`error`,e=>{S.warn(`skills watcher error (${t}): ${String(e)}`)}),T.set(t,l)}const A=r();async function j(e){let{pendingPath:t,pairedPath:n}=p(e,`nodes`),[r,a]=await Promise.all([i(t),i(n)]),o={pendingById:r??{},pairedByNodeId:a??{}};return m(o.pendingById,Date.now(),3e5),o}async function M(e,t){let{pendingPath:r,pairedPath:i}=p(t,`nodes`);await Promise.all([n(r,e.pendingById),n(i,e.pairedByNodeId)])}function N(e){return e.trim()}function P(){return ne()}async function F(e){let t=await j(e);return{pending:Object.values(t.pendingById).toSorted((e,t)=>t.ts-e.ts),paired:Object.values(t.pairedByNodeId).toSorted((e,t)=>t.approvedAtMs-e.approvedAtMs)}}async function I(e,t){return await A(async()=>{let n=await j(t),r=N(e.nodeId);if(!r)throw Error(`nodeId required`);return await g({pendingById:n.pendingById,isExisting:e=>e.nodeId===r,isRepair:!!n.pairedByNodeId[r],createRequest:t=>({requestId:b(),nodeId:r,displayName:e.displayName,platform:e.platform,version:e.version,coreVersion:e.coreVersion,uiVersion:e.uiVersion,deviceFamily:e.deviceFamily,modelIdentifier:e.modelIdentifier,caps:e.caps,commands:e.commands,permissions:e.permissions,remoteIp:e.remoteIp,silent:e.silent,isRepair:t,ts:Date.now()}),persist:async()=>await M(n,t)})})}async function L(e,t){return await A(async()=>{let n=await j(t),r=n.pendingById[e];if(!r)return null;let i=Date.now(),a=n.pairedByNodeId[r.nodeId],o={nodeId:r.nodeId,token:P(),displayName:r.displayName,platform:r.platform,version:r.version,coreVersion:r.coreVersion,uiVersion:r.uiVersion,deviceFamily:r.deviceFamily,modelIdentifier:r.modelIdentifier,caps:r.caps,commands:r.commands,permissions:r.permissions,remoteIp:r.remoteIp,createdAtMs:a?.createdAtMs??i,approvedAtMs:i};return delete n.pendingById[e],n.pairedByNodeId[r.nodeId]=o,await M(n,t),{requestId:e,node:o}})}async function R(e,t){return await A(async()=>await _({requestId:e,idKey:`nodeId`,loadState:()=>j(t),persistState:e=>M(e,t),getId:e=>e.nodeId}))}async function z(e,t,n){let r=await j(n),i=N(e),a=r.pairedByNodeId[i];return a&&h(t,a.token)?{ok:!0,node:a}:{ok:!1}}async function B(e,t,n){await A(async()=>{let r=await j(n),i=N(e),a=r.pairedByNodeId[i];if(!a)return;let o={...a,displayName:t.displayName??a.displayName,platform:t.platform??a.platform,version:t.version??a.version,coreVersion:t.coreVersion??a.coreVersion,uiVersion:t.uiVersion??a.uiVersion,deviceFamily:t.deviceFamily??a.deviceFamily,modelIdentifier:t.modelIdentifier??a.modelIdentifier,remoteIp:t.remoteIp??a.remoteIp,caps:t.caps??a.caps,commands:t.commands??a.commands,bins:t.bins??a.bins,permissions:t.permissions??a.permissions,lastConnectedAtMs:t.lastConnectedAtMs??a.lastConnectedAtMs};r.pairedByNodeId[i]=o,await M(r,n)})}async function V(e,t,n){return await A(async()=>{let r=await j(n),i=N(e),a=r.pairedByNodeId[i];if(!a)return null;let o=t.trim();if(!o)throw Error(`displayName required`);let s={...a,displayName:o};return r.pairedByNodeId[i]=s,await M(r,n),s})}const H=t(`gateway/skills-remote`),U=new Map;let W=null;function de(e){let t=U.get(e),n=t?.displayName?.trim(),r=n&&n!==e?`${n} (${e})`:e,i=t?.remoteIp?.trim();return i?`${r} @ ${i}`:r}function fe(e){if(e){if(typeof e==`string`)return e;if(e instanceof Error||typeof e==`object`&&`message`in e&&typeof e.message==`string`)return e.message;if(typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`)return String(e);if(typeof e==`symbol`)return e.toString();if(typeof e==`object`)try{return JSON.stringify(e)}catch{return}}}function G(e,t){let n=fe(t),r=de(e);if(n?.includes(`node not connected`)||n?.includes(`node disconnected`)){H.info(`remote bin probe skipped: node unavailable (${r})`);return}if(n?.includes(`invoke timed out`)||n?.includes(`timeout`)){H.warn(`remote bin probe timed out (${r}); check node connectivity for ${r}`);return}H.warn(`remote bin probe error (${r}): ${n??`unknown`}`)}function K(e,t){let n=String(e??``).trim().toLowerCase(),r=String(t??``).trim().toLowerCase();return!!(n.includes(`mac`)||n.includes(`darwin`)||r===`mac`)}function q(e){return Array.isArray(e)&&e.includes(`system.run`)}function pe(e){return Array.isArray(e)&&e.includes(`system.which`)}function J(e){let t=U.get(e.nodeId),n=new Set(e.bins??t?.bins??[]);U.set(e.nodeId,{nodeId:e.nodeId,displayName:e.displayName??t?.displayName,platform:e.platform??t?.platform,deviceFamily:e.deviceFamily??t?.deviceFamily,commands:e.commands??t?.commands,remoteIp:e.remoteIp??t?.remoteIp,bins:n})}function me(e){W=e}async function he(){try{let e=await F(),t=!1;for(let n of e.paired)J({nodeId:n.nodeId,displayName:n.displayName,platform:n.platform,deviceFamily:n.deviceFamily,commands:n.commands,remoteIp:n.remoteIp,bins:n.bins}),K(n.platform,n.deviceFamily)&&q(n.commands)&&(t=!0);t&&k({reason:`remote-node`})}catch(e){H.warn(`failed to prime remote skills cache: ${String(e)}`)}}function ge(e){J(e)}function _e(e,t){J({nodeId:e,bins:t})}function ve(e){U.delete(e)}function ye(e,t){let n=new Set;for(let r of e){let e=r.metadata?.os??[];if(e.length>0&&!e.includes(t))continue;let i=r.metadata?.requires?.bins??[],a=r.metadata?.requires?.anyBins??[];for(let e of i)e.trim()&&n.add(e.trim());for(let e of a)e.trim()&&n.add(e.trim())}return[...n]}function be(e){return`for b in ${e.map(e=>`'${e.replace(/'/g,`'\\''`)}'`).join(` `)}; do if command -v "$b" >/dev/null 2>&1; then echo "$b"; fi; done`}function xe(e,t){if(!e&&!t)return[];try{let n=e?JSON.parse(e):t;if(Array.isArray(n.bins))return n.bins.map(e=>String(e).trim()).filter(Boolean);if(typeof n.stdout==`string`)return n.stdout.split(/\r?\n/).map(e=>e.trim()).filter(Boolean)}catch{return[]}return[]}function Se(e,t){if(!e||e.size!==t.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}async function Y(e){if(!W||!K(e.platform,e.deviceFamily))return;let t=pe(e.commands),n=q(e.commands);if(!t&&!n)return;let r=te(e.cfg),i=new Set;for(let t of r){let n=u(t,{config:e.cfg});for(let e of ye(n,`darwin`))i.add(e)}if(i.size!==0)try{let n=[...i],r=await W.invoke(t?{nodeId:e.nodeId,command:`system.which`,params:{bins:n},timeoutMs:e.timeoutMs??15e3}:{nodeId:e.nodeId,command:`system.run`,params:{command:[`/bin/sh`,`-lc`,be(n)]},timeoutMs:e.timeoutMs??15e3});if(!r.ok){G(e.nodeId,r.error?.message??`unknown`);return}let a=xe(r.payloadJSON,r.payload),o=U.get(e.nodeId)?.bins,s=!Se(o,new Set(a));if(_e(e.nodeId,a),!s)return;await B(e.nodeId,{bins:a}),k({reason:`remote-node`})}catch(t){G(e.nodeId,t)}}function X(){let e=[...U.values()].filter(e=>K(e.platform,e.deviceFamily)&&q(e.commands));if(e.length===0)return;let t=new Set;for(let n of e)for(let e of n.bins)t.add(e);let n=e.map(e=>e.displayName??e.nodeId).filter(Boolean);return{platforms:[`darwin`],hasBin:e=>t.has(e),hasAnyBin:e=>e.some(e=>t.has(e)),note:n.length>0?`Remote macOS node available (${n.join(`, `)}). Run macOS-only skills via nodes.run on that node.`:`Remote macOS node available. Run macOS-only skills via nodes.run on that node.`}}async function Z(e){if(!W)return;let t=W.listConnected();for(let n of t)await Y({nodeId:n.nodeId,platform:n.platform,deviceFamily:n.deviceFamily,commands:n.commands,cfg:e})}function Q(e=[]){let t=new Set;for(let e of ee()){e.nativeName&&t.add(e.nativeName.toLowerCase());for(let n of e.textAliases){let e=n.trim();e.startsWith(`/`)&&t.add(e.slice(1).toLowerCase())}}for(let n of e){let e=n.trim().toLowerCase();e&&t.add(e)}return t}function Ce(e){return d(e.workspaceDir,{config:e.cfg,skillFilter:e.skillFilter,eligibility:{remote:X()},reservedNames:Q()})}function we(e){let t=new Set,n=[];for(let r of e){let e=r.skillName.trim().toLowerCase();e&&t.has(e)||(e&&t.add(e),n.push(r))}return n}function Te(t){let n=(e,t)=>{if(!(e===void 0||t===void 0))return e.length===0?Array.from(new Set(t)):t.length===0?Array.from(new Set(e)):Array.from(new Set([...e,...t]))},r=t.agentIds??o(t.cfg),i=Q(),c=[],l=new Map;for(let i of r){let r=a(t.cfg,i);if(!y.existsSync(r)){e(`Skipping agent "${i}": workspace does not exist: ${r}`);continue}let o;try{o=y.realpathSync(r)}catch{e(`Skipping agent "${i}": cannot resolve workspace: ${r}`);continue}let c=s(t.cfg,i),u=l.get(o);if(u){u.skillFilter=n(u.skillFilter,c);continue}l.set(o,{workspaceDir:r,skillFilter:c})}for(let{workspaceDir:e,skillFilter:n}of l.values()){let r=d(e,{config:t.cfg,skillFilter:n,eligibility:{remote:X()},reservedNames:i});for(let e of r)i.add(e.name.toLowerCase()),c.push(e)}return we(c)}function $(e){return e.trim().toLowerCase().replace(/[\s_]+/g,`-`)}function Ee(e,t){let n=t.trim();if(!n)return;let r=n.toLowerCase(),i=$(n);return e.find(e=>e.name.toLowerCase()===r||e.skillName.toLowerCase()===r?!0:$(e.name)===i||$(e.skillName)===i)}function De(e){let t=e.commandBodyNormalized.trim();if(!t.startsWith(`/`))return null;let n=t.match(/^\/([^\s]+)(?:\s+([\s\S]+))?$/);if(!n)return null;let r=n[1]?.trim().toLowerCase();if(!r)return null;if(r===`skill`){let t=n[2]?.trim();if(!t)return null;let r=t.match(/^([^\s]+)(?:\s+([\s\S]+))?$/);if(!r)return null;let i=Ee(e.skillCommands,r[1]??``);return i?{command:i,args:r[2]?.trim()||void 0}:null}let i=e.skillCommands.find(e=>e.name.toLowerCase()===r);return i?{command:i,args:n[2]?.trim()||void 0}:null}export{B as _,X as a,le as b,Z as c,me as d,L as f,I as g,V as h,De as i,Y as l,R as m,Te as n,he as o,F as p,Ce as r,ge as s,Q as t,ve as u,z as v,ce as x,ue as y};
2
- //# sourceMappingURL=skill-commands-DCqPy_Aa.js.map
@@ -1,2 +1 @@
1
1
  import{S as e,t}from"./subsystem-C5XF2Fy5.js";import{t as n,y as r}from"./utils-UGOV_184.js";import{Ai as i,Mi as a,ji as o}from"./model-selection-BLbnMb5E.js";import{d as s,r as c,u as l}from"./agent-scope-DXZc3eNT.js";import{i as u,n as d,s as f}from"./skills-CzUpDbU-.js";import{i as ee}from"./commands-registry-DlvNUkXz.js";import{t as te}from"./workspace-dirs-BhF1Dzxt.js";import{a as p,i as m,n as h,o as g,r as _,t as ne}from"./pairing-token-B8RdfK2y.js";import v from"node:fs";import re from"node:os";import y from"node:path";import{randomUUID as b}from"node:crypto";import x from"chokidar";const S=t(`gateway/skills`),C=new Set,w=new Map,T=new Map;let E=0;const ie=[/(^|[\\/])\.git([\\/]|$)/,/(^|[\\/])node_modules([\\/]|$)/,/(^|[\\/])dist([\\/]|$)/,/(^|[\\/])\.venv([\\/]|$)/,/(^|[\\/])venv([\\/]|$)/,/(^|[\\/])__pycache__([\\/]|$)/,/(^|[\\/])\.mypy_cache([\\/]|$)/,/(^|[\\/])\.pytest_cache([\\/]|$)/,/(^|[\\/])build([\\/]|$)/,/(^|[\\/])\.cache([\\/]|$)/];function D(e){let t=Date.now();return t<=e?e+1:t}function O(e){for(let t of C)try{t(e)}catch(e){S.warn(`skills change listener failed: ${String(e)}`)}}function ae(e,t){let i=[];e.trim()&&(i.push(y.join(e,`skills`)),i.push(y.join(e,`.agents`,`skills`))),i.push(y.join(n,`skills`)),i.push(y.join(re.homedir(),`.qbotclaw`,`openclaw-qbot`,`skills`));let a=(t?.skills?.load?.extraDirs??[]).map(e=>typeof e==`string`?e.trim():``).filter(Boolean).map(e=>r(e));i.push(...a);let o=f({workspaceDir:e,config:t});return i.push(...o),i}function oe(e){return e.replaceAll(`\\`,`/`).replace(/\/+$/,``)}function se(e,t){let n=new Set;for(let r of ae(e,t)){let e=oe(r);n.add(`${e}/SKILL.md`),n.add(`${e}/*/SKILL.md`)}return Array.from(n).toSorted()}function ce(e){return C.add(e),()=>{C.delete(e)}}function k(e){let t=e?.reason??`manual`,n=e?.changedPath;if(e?.workspaceDir){let r=D(w.get(e.workspaceDir)??0);return w.set(e.workspaceDir,r),O({workspaceDir:e.workspaceDir,reason:t,changedPath:n}),r}return E=D(E),O({reason:t,changedPath:n}),E}function le(e){if(!e)return E;let t=w.get(e)??0;return Math.max(E,t)}function ue(e){let t=e.workspaceDir.trim();if(!t)return;let n=e.config?.skills?.load?.watch!==!1,r=e.config?.skills?.load?.watchDebounceMs,i=typeof r==`number`&&Number.isFinite(r)?Math.max(0,r):250,a=T.get(t);if(!n){a&&(T.delete(t),a.timer&&clearTimeout(a.timer),a.watcher.close().catch(()=>{}));return}let o=se(t,e.config),s=o.join(`|`);if(a&&a.pathsKey===s&&a.debounceMs===i)return;a&&(T.delete(t),a.timer&&clearTimeout(a.timer),a.watcher.close().catch(()=>{}));let c=x.watch(o,{ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:i,pollInterval:100},ignored:ie}),l={watcher:c,pathsKey:s,debounceMs:i},u=e=>{l.pendingPath=e??l.pendingPath,l.timer&&clearTimeout(l.timer),l.timer=setTimeout(()=>{let e=l.pendingPath;l.pendingPath=void 0,l.timer=void 0,k({workspaceDir:t,reason:`watch`,changedPath:e})},i)};c.on(`add`,e=>u(e)),c.on(`change`,e=>u(e)),c.on(`unlink`,e=>u(e)),c.on(`error`,e=>{S.warn(`skills watcher error (${t}): ${String(e)}`)}),T.set(t,l)}const A=i();async function j(e){let{pendingPath:t,pairedPath:n}=p(e,`nodes`),[r,i]=await Promise.all([o(t),o(n)]),a={pendingById:r??{},pairedByNodeId:i??{}};return m(a.pendingById,Date.now(),3e5),a}async function M(e,t){let{pendingPath:n,pairedPath:r}=p(t,`nodes`);await Promise.all([a(n,e.pendingById),a(r,e.pairedByNodeId)])}function N(e){return e.trim()}function P(){return ne()}async function F(e){let t=await j(e);return{pending:Object.values(t.pendingById).toSorted((e,t)=>t.ts-e.ts),paired:Object.values(t.pairedByNodeId).toSorted((e,t)=>t.approvedAtMs-e.approvedAtMs)}}async function I(e,t){return await A(async()=>{let n=await j(t),r=N(e.nodeId);if(!r)throw Error(`nodeId required`);return await g({pendingById:n.pendingById,isExisting:e=>e.nodeId===r,isRepair:!!n.pairedByNodeId[r],createRequest:t=>({requestId:b(),nodeId:r,displayName:e.displayName,platform:e.platform,version:e.version,coreVersion:e.coreVersion,uiVersion:e.uiVersion,deviceFamily:e.deviceFamily,modelIdentifier:e.modelIdentifier,caps:e.caps,commands:e.commands,permissions:e.permissions,remoteIp:e.remoteIp,silent:e.silent,isRepair:t,ts:Date.now()}),persist:async()=>await M(n,t)})})}async function L(e,t){return await A(async()=>{let n=await j(t),r=n.pendingById[e];if(!r)return null;let i=Date.now(),a=n.pairedByNodeId[r.nodeId],o={nodeId:r.nodeId,token:P(),displayName:r.displayName,platform:r.platform,version:r.version,coreVersion:r.coreVersion,uiVersion:r.uiVersion,deviceFamily:r.deviceFamily,modelIdentifier:r.modelIdentifier,caps:r.caps,commands:r.commands,permissions:r.permissions,remoteIp:r.remoteIp,createdAtMs:a?.createdAtMs??i,approvedAtMs:i};return delete n.pendingById[e],n.pairedByNodeId[r.nodeId]=o,await M(n,t),{requestId:e,node:o}})}async function R(e,t){return await A(async()=>await _({requestId:e,idKey:`nodeId`,loadState:()=>j(t),persistState:e=>M(e,t),getId:e=>e.nodeId}))}async function z(e,t,n){let r=await j(n),i=N(e),a=r.pairedByNodeId[i];return a&&h(t,a.token)?{ok:!0,node:a}:{ok:!1}}async function B(e,t,n){await A(async()=>{let r=await j(n),i=N(e),a=r.pairedByNodeId[i];if(!a)return;let o={...a,displayName:t.displayName??a.displayName,platform:t.platform??a.platform,version:t.version??a.version,coreVersion:t.coreVersion??a.coreVersion,uiVersion:t.uiVersion??a.uiVersion,deviceFamily:t.deviceFamily??a.deviceFamily,modelIdentifier:t.modelIdentifier??a.modelIdentifier,remoteIp:t.remoteIp??a.remoteIp,caps:t.caps??a.caps,commands:t.commands??a.commands,bins:t.bins??a.bins,permissions:t.permissions??a.permissions,lastConnectedAtMs:t.lastConnectedAtMs??a.lastConnectedAtMs};r.pairedByNodeId[i]=o,await M(r,n)})}async function V(e,t,n){return await A(async()=>{let r=await j(n),i=N(e),a=r.pairedByNodeId[i];if(!a)return null;let o=t.trim();if(!o)throw Error(`displayName required`);let s={...a,displayName:o};return r.pairedByNodeId[i]=s,await M(r,n),s})}const H=t(`gateway/skills-remote`),U=new Map;let W=null;function de(e){let t=U.get(e),n=t?.displayName?.trim(),r=n&&n!==e?`${n} (${e})`:e,i=t?.remoteIp?.trim();return i?`${r} @ ${i}`:r}function fe(e){if(e){if(typeof e==`string`)return e;if(e instanceof Error||typeof e==`object`&&`message`in e&&typeof e.message==`string`)return e.message;if(typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`)return String(e);if(typeof e==`symbol`)return e.toString();if(typeof e==`object`)try{return JSON.stringify(e)}catch{return}}}function G(e,t){let n=fe(t),r=de(e);if(n?.includes(`node not connected`)||n?.includes(`node disconnected`)){H.info(`remote bin probe skipped: node unavailable (${r})`);return}if(n?.includes(`invoke timed out`)||n?.includes(`timeout`)){H.warn(`remote bin probe timed out (${r}); check node connectivity for ${r}`);return}H.warn(`remote bin probe error (${r}): ${n??`unknown`}`)}function K(e,t){let n=String(e??``).trim().toLowerCase(),r=String(t??``).trim().toLowerCase();return!!(n.includes(`mac`)||n.includes(`darwin`)||r===`mac`)}function q(e){return Array.isArray(e)&&e.includes(`system.run`)}function pe(e){return Array.isArray(e)&&e.includes(`system.which`)}function J(e){let t=U.get(e.nodeId),n=new Set(e.bins??t?.bins??[]);U.set(e.nodeId,{nodeId:e.nodeId,displayName:e.displayName??t?.displayName,platform:e.platform??t?.platform,deviceFamily:e.deviceFamily??t?.deviceFamily,commands:e.commands??t?.commands,remoteIp:e.remoteIp??t?.remoteIp,bins:n})}function me(e){W=e}async function he(){try{let e=await F(),t=!1;for(let n of e.paired)J({nodeId:n.nodeId,displayName:n.displayName,platform:n.platform,deviceFamily:n.deviceFamily,commands:n.commands,remoteIp:n.remoteIp,bins:n.bins}),K(n.platform,n.deviceFamily)&&q(n.commands)&&(t=!0);t&&k({reason:`remote-node`})}catch(e){H.warn(`failed to prime remote skills cache: ${String(e)}`)}}function ge(e){J(e)}function _e(e,t){J({nodeId:e,bins:t})}function ve(e){U.delete(e)}function ye(e,t){let n=new Set;for(let r of e){let e=r.metadata?.os??[];if(e.length>0&&!e.includes(t))continue;let i=r.metadata?.requires?.bins??[],a=r.metadata?.requires?.anyBins??[];for(let e of i)e.trim()&&n.add(e.trim());for(let e of a)e.trim()&&n.add(e.trim())}return[...n]}function be(e){return`for b in ${e.map(e=>`'${e.replace(/'/g,`'\\''`)}'`).join(` `)}; do if command -v "$b" >/dev/null 2>&1; then echo "$b"; fi; done`}function xe(e,t){if(!e&&!t)return[];try{let n=e?JSON.parse(e):t;if(Array.isArray(n.bins))return n.bins.map(e=>String(e).trim()).filter(Boolean);if(typeof n.stdout==`string`)return n.stdout.split(/\r?\n/).map(e=>e.trim()).filter(Boolean)}catch{return[]}return[]}function Se(e,t){if(!e||e.size!==t.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}async function Y(e){if(!W||!K(e.platform,e.deviceFamily))return;let t=pe(e.commands),n=q(e.commands);if(!t&&!n)return;let r=te(e.cfg),i=new Set;for(let t of r){let n=u(t,{config:e.cfg});for(let e of ye(n,`darwin`))i.add(e)}if(i.size!==0)try{let n=[...i],r=await W.invoke(t?{nodeId:e.nodeId,command:`system.which`,params:{bins:n},timeoutMs:e.timeoutMs??15e3}:{nodeId:e.nodeId,command:`system.run`,params:{command:[`/bin/sh`,`-lc`,be(n)]},timeoutMs:e.timeoutMs??15e3});if(!r.ok){G(e.nodeId,r.error?.message??`unknown`);return}let a=xe(r.payloadJSON,r.payload),o=U.get(e.nodeId)?.bins,s=!Se(o,new Set(a));if(_e(e.nodeId,a),!s)return;await B(e.nodeId,{bins:a}),k({reason:`remote-node`})}catch(t){G(e.nodeId,t)}}function X(){let e=[...U.values()].filter(e=>K(e.platform,e.deviceFamily)&&q(e.commands));if(e.length===0)return;let t=new Set;for(let n of e)for(let e of n.bins)t.add(e);let n=e.map(e=>e.displayName??e.nodeId).filter(Boolean);return{platforms:[`darwin`],hasBin:e=>t.has(e),hasAnyBin:e=>e.some(e=>t.has(e)),note:n.length>0?`Remote macOS node available (${n.join(`, `)}). Run macOS-only skills via nodes.run on that node.`:`Remote macOS node available. Run macOS-only skills via nodes.run on that node.`}}async function Z(e){if(!W)return;let t=W.listConnected();for(let n of t)await Y({nodeId:n.nodeId,platform:n.platform,deviceFamily:n.deviceFamily,commands:n.commands,cfg:e})}function Q(e=[]){let t=new Set;for(let e of ee()){e.nativeName&&t.add(e.nativeName.toLowerCase());for(let n of e.textAliases){let e=n.trim();e.startsWith(`/`)&&t.add(e.slice(1).toLowerCase())}}for(let n of e){let e=n.trim().toLowerCase();e&&t.add(e)}return t}function Ce(e){return d(e.workspaceDir,{config:e.cfg,skillFilter:e.skillFilter,eligibility:{remote:X()},reservedNames:Q()})}function we(e){let t=new Set,n=[];for(let r of e){let e=r.skillName.trim().toLowerCase();e&&t.has(e)||(e&&t.add(e),n.push(r))}return n}function Te(t){let n=(e,t)=>{if(!(e===void 0||t===void 0))return e.length===0?Array.from(new Set(t)):t.length===0?Array.from(new Set(e)):Array.from(new Set([...e,...t]))},r=t.agentIds??c(t.cfg),i=Q(),a=[],o=new Map;for(let i of r){let r=s(t.cfg,i);if(!v.existsSync(r)){e(`Skipping agent "${i}": workspace does not exist: ${r}`);continue}let a;try{a=v.realpathSync(r)}catch{e(`Skipping agent "${i}": cannot resolve workspace: ${r}`);continue}let c=l(t.cfg,i),u=o.get(a);if(u){u.skillFilter=n(u.skillFilter,c);continue}o.set(a,{workspaceDir:r,skillFilter:c})}for(let{workspaceDir:e,skillFilter:n}of o.values()){let r=d(e,{config:t.cfg,skillFilter:n,eligibility:{remote:X()},reservedNames:i});for(let e of r)i.add(e.name.toLowerCase()),a.push(e)}return we(a)}function $(e){return e.trim().toLowerCase().replace(/[\s_]+/g,`-`)}function Ee(e,t){let n=t.trim();if(!n)return;let r=n.toLowerCase(),i=$(n);return e.find(e=>e.name.toLowerCase()===r||e.skillName.toLowerCase()===r?!0:$(e.name)===i||$(e.skillName)===i)}function De(e){let t=e.commandBodyNormalized.trim();if(!t.startsWith(`/`))return null;let n=t.match(/^\/([^\s]+)(?:\s+([\s\S]+))?$/);if(!n)return null;let r=n[1]?.trim().toLowerCase();if(!r)return null;if(r===`skill`){let t=n[2]?.trim();if(!t)return null;let r=t.match(/^([^\s]+)(?:\s+([\s\S]+))?$/);if(!r)return null;let i=Ee(e.skillCommands,r[1]??``);return i?{command:i,args:r[2]?.trim()||void 0}:null}let i=e.skillCommands.find(e=>e.name.toLowerCase()===r);return i?{command:i,args:n[2]?.trim()||void 0}:null}export{B as _,X as a,le as b,Z as c,me as d,L as f,I as g,V as h,De as i,Y as l,R as m,Te as n,he as o,F as p,Ce as r,ge as s,Q as t,ve as u,z as v,ce as x,ue as y};
2
- //# sourceMappingURL=skill-commands-DlHVddAk.js.map
@@ -1,3 +1,2 @@
1
1
  import{n as e}from"./scan-paths-C13EseXp.js";import{a as t}from"./errors-Bunti32V.js";import n from"node:path";import r from"node:fs/promises";const i=new Set([`.js`,`.ts`,`.mjs`,`.cjs`,`.mts`,`.cts`,`.jsx`,`.tsx`]),a=new Map,o=new Map;function s(e){return i.has(n.extname(e).toLowerCase())}function c(e){let t=a.get(e.filePath);if(t){if(t.size!==e.size||t.mtimeMs!==e.mtimeMs||t.maxFileBytes!==e.maxFileBytes){a.delete(e.filePath);return}return t}}function l(e,t){if(a.size>=5e3){let e=a.keys().next();e.done||a.delete(e.value)}a.set(e,t)}function u(e,t){if(o.size>=5e3){let e=o.keys().next();e.done||o.delete(e.value)}o.set(e,t)}const d=[{ruleId:`dangerous-exec`,severity:`critical`,message:`Shell command execution detected (child_process)`,pattern:/\b(exec|execSync|spawn|spawnSync|execFile|execFileSync)\s*\(/,requiresContext:/child_process/},{ruleId:`dynamic-code-execution`,severity:`critical`,message:`Dynamic code execution detected`,pattern:/\beval\s*\(|new\s+Function\s*\(/},{ruleId:`crypto-mining`,severity:`critical`,message:`Possible crypto-mining reference detected`,pattern:/stratum\+tcp|stratum\+ssl|coinhive|cryptonight|xmrig/i},{ruleId:`suspicious-network`,severity:`warn`,message:`WebSocket connection to non-standard port`,pattern:/new\s+WebSocket\s*\(\s*["']wss?:\/\/[^"']*:(\d+)/}],f=new Set([80,443,8080,8443,3e3]),p=[{ruleId:`potential-exfiltration`,severity:`warn`,message:`File read combined with network send — possible data exfiltration`,pattern:/readFileSync|readFile/,requiresContext:/\bfetch\b|\bpost\b|http\.request/i},{ruleId:`obfuscated-code`,severity:`warn`,message:`Hex-encoded string sequence detected (possible obfuscation)`,pattern:/(\\x[0-9a-fA-F]{2}){6,}/},{ruleId:`obfuscated-code`,severity:`warn`,message:`Large base64 payload with decode call detected (possible obfuscation)`,pattern:/(?:atob|Buffer\.from)\s*\(\s*["'][A-Za-z0-9+/=]{200,}["']/},{ruleId:`env-harvesting`,severity:`critical`,message:`Environment variable access combined with network send — possible credential harvesting`,pattern:/process\.env/,requiresContext:/\bfetch\b|\bpost\b|http\.request/i}];function m(e,t=120){return e.length<=t?e:`${e.slice(0,t)}…`}function h(e,t){let n=[],r=e.split(`
2
2
  `),i=new Set;for(let a of d)if(!i.has(a.ruleId)&&!(a.requiresContext&&!a.requiresContext.test(e)))for(let e=0;e<r.length;e++){let o=r[e],s=a.pattern.exec(o);if(s){if(a.ruleId===`suspicious-network`){let e=parseInt(s[1],10);if(f.has(e))continue}n.push({ruleId:a.ruleId,severity:a.severity,file:t,line:e+1,message:a.message,evidence:m(o.trim())}),i.add(a.ruleId);break}}let a=new Set;for(let i of p){let o=`${i.ruleId}::${i.message}`;if(a.has(o)||!i.pattern.test(e)||i.requiresContext&&!i.requiresContext.test(e))continue;let s=0,c=``;for(let e=0;e<r.length;e++)if(i.pattern.test(r[e])){s=e+1,c=r[e].trim();break}s===0&&(s=1,c=e.slice(0,120)),n.push({ruleId:i.ruleId,severity:i.severity,file:t,line:s,message:i.message,evidence:m(c)}),a.add(o)}return n}function g(e){return{includeFiles:e?.includeFiles??[],maxFiles:Math.max(1,e?.maxFiles??500),maxFileBytes:Math.max(1,e?.maxFileBytes??1048576)}}async function _(e,t){let r=[],i=[e];for(;i.length>0&&r.length<t;){let e=i.pop();if(!e)break;let a=await v(e);for(let o of a){if(r.length>=t)break;if(o.name.startsWith(`.`)||o.name===`node_modules`)continue;let a=n.join(e,o.name);o.kind===`dir`?i.push(a):o.kind===`file`&&s(o.name)&&r.push(a)}}return r}async function v(e){let n=null;try{n=await r.stat(e)}catch(e){if(t(e,`ENOENT`))return[];throw e}if(!n?.isDirectory())return[];let i=o.get(e);if(i&&i.mtimeMs===n.mtimeMs)return i.entries;let a=await r.readdir(e,{withFileTypes:!0}),s=[];for(let e of a)e.isDirectory()?s.push({name:e.name,kind:`dir`}):e.isFile()&&s.push({name:e.name,kind:`file`});return u(e,{mtimeMs:n.mtimeMs,entries:s}),s}async function y(i){if(i.includeFiles.length===0)return[];let a=new Set,o=[];for(let c of i.includeFiles){let l=n.resolve(i.rootDir,c);if(!e(i.rootDir,l)||!s(l)||a.has(l))continue;let u=null;try{u=await r.stat(l)}catch(e){if(t(e,`ENOENT`))continue;throw e}u?.isFile()&&(o.push(l),a.add(l))}return o}async function b(e,t){let r=await y({rootDir:e,includeFiles:t.includeFiles});if(r.length>=t.maxFiles)return r.slice(0,t.maxFiles);let i=await _(e,t.maxFiles),a=new Set(r.map(e=>n.resolve(e))),o=[...r];for(let e of i){if(o.length>=t.maxFiles)break;let r=n.resolve(e);a.has(r)||(o.push(e),a.add(r))}return o}async function x(e){let{filePath:n,maxFileBytes:i}=e,a=null;try{a=await r.stat(n)}catch(e){if(t(e,`ENOENT`))return{scanned:!1,findings:[]};throw e}if(!a?.isFile())return{scanned:!1,findings:[]};let o=c({filePath:n,size:a.size,mtimeMs:a.mtimeMs,maxFileBytes:i});if(o)return{scanned:o.scanned,findings:o.findings};if(a.size>i)return l(n,{size:a.size,mtimeMs:a.mtimeMs,maxFileBytes:i,scanned:!1,findings:[]}),{scanned:!1,findings:[]};let s;try{s=await r.readFile(n,`utf-8`)}catch(e){if(t(e,`ENOENT`))return{scanned:!1,findings:[]};throw e}let u=h(s,n);return l(n,{size:a.size,mtimeMs:a.mtimeMs,maxFileBytes:i,scanned:!0,findings:u}),{scanned:!0,findings:u}}async function S(e,t){let n=g(t),r=await b(e,n),i=[],a=0,o=0,s=0,c=0;for(let e of r){let t=await x({filePath:e,maxFileBytes:n.maxFileBytes});if(t.scanned){a+=1;for(let e of t.findings)i.push(e),e.severity===`critical`?o+=1:e.severity===`warn`?s+=1:c+=1}}return{scannedFiles:a,critical:o,warn:s,info:c,findings:i}}export{S as t};
3
- //# sourceMappingURL=skill-scanner-CUUF3Fvo.js.map
@@ -1,3 +1,2 @@
1
1
  import{n as e}from"./scan-paths-CWtvWW40.js";import{a as t}from"./errors-6SQWM9dj.js";import n from"node:path";import r from"node:fs/promises";const i=new Set([`.js`,`.ts`,`.mjs`,`.cjs`,`.mts`,`.cts`,`.jsx`,`.tsx`]),a=new Map,o=new Map;function s(e){return i.has(n.extname(e).toLowerCase())}function c(e){let t=a.get(e.filePath);if(t){if(t.size!==e.size||t.mtimeMs!==e.mtimeMs||t.maxFileBytes!==e.maxFileBytes){a.delete(e.filePath);return}return t}}function l(e,t){if(a.size>=5e3){let e=a.keys().next();e.done||a.delete(e.value)}a.set(e,t)}function u(e,t){if(o.size>=5e3){let e=o.keys().next();e.done||o.delete(e.value)}o.set(e,t)}const d=[{ruleId:`dangerous-exec`,severity:`critical`,message:`Shell command execution detected (child_process)`,pattern:/\b(exec|execSync|spawn|spawnSync|execFile|execFileSync)\s*\(/,requiresContext:/child_process/},{ruleId:`dynamic-code-execution`,severity:`critical`,message:`Dynamic code execution detected`,pattern:/\beval\s*\(|new\s+Function\s*\(/},{ruleId:`crypto-mining`,severity:`critical`,message:`Possible crypto-mining reference detected`,pattern:/stratum\+tcp|stratum\+ssl|coinhive|cryptonight|xmrig/i},{ruleId:`suspicious-network`,severity:`warn`,message:`WebSocket connection to non-standard port`,pattern:/new\s+WebSocket\s*\(\s*["']wss?:\/\/[^"']*:(\d+)/}],f=new Set([80,443,8080,8443,3e3]),p=[{ruleId:`potential-exfiltration`,severity:`warn`,message:`File read combined with network send — possible data exfiltration`,pattern:/readFileSync|readFile/,requiresContext:/\bfetch\b|\bpost\b|http\.request/i},{ruleId:`obfuscated-code`,severity:`warn`,message:`Hex-encoded string sequence detected (possible obfuscation)`,pattern:/(\\x[0-9a-fA-F]{2}){6,}/},{ruleId:`obfuscated-code`,severity:`warn`,message:`Large base64 payload with decode call detected (possible obfuscation)`,pattern:/(?:atob|Buffer\.from)\s*\(\s*["'][A-Za-z0-9+/=]{200,}["']/},{ruleId:`env-harvesting`,severity:`critical`,message:`Environment variable access combined with network send — possible credential harvesting`,pattern:/process\.env/,requiresContext:/\bfetch\b|\bpost\b|http\.request/i}];function m(e,t=120){return e.length<=t?e:`${e.slice(0,t)}…`}function h(e,t){let n=[],r=e.split(`
2
2
  `),i=new Set;for(let a of d)if(!i.has(a.ruleId)&&!(a.requiresContext&&!a.requiresContext.test(e)))for(let e=0;e<r.length;e++){let o=r[e],s=a.pattern.exec(o);if(s){if(a.ruleId===`suspicious-network`){let e=parseInt(s[1],10);if(f.has(e))continue}n.push({ruleId:a.ruleId,severity:a.severity,file:t,line:e+1,message:a.message,evidence:m(o.trim())}),i.add(a.ruleId);break}}let a=new Set;for(let i of p){let o=`${i.ruleId}::${i.message}`;if(a.has(o)||!i.pattern.test(e)||i.requiresContext&&!i.requiresContext.test(e))continue;let s=0,c=``;for(let e=0;e<r.length;e++)if(i.pattern.test(r[e])){s=e+1,c=r[e].trim();break}s===0&&(s=1,c=e.slice(0,120)),n.push({ruleId:i.ruleId,severity:i.severity,file:t,line:s,message:i.message,evidence:m(c)}),a.add(o)}return n}function g(e){return{includeFiles:e?.includeFiles??[],maxFiles:Math.max(1,e?.maxFiles??500),maxFileBytes:Math.max(1,e?.maxFileBytes??1048576)}}async function _(e,t){let r=[],i=[e];for(;i.length>0&&r.length<t;){let e=i.pop();if(!e)break;let a=await v(e);for(let o of a){if(r.length>=t)break;if(o.name.startsWith(`.`)||o.name===`node_modules`)continue;let a=n.join(e,o.name);o.kind===`dir`?i.push(a):o.kind===`file`&&s(o.name)&&r.push(a)}}return r}async function v(e){let n=null;try{n=await r.stat(e)}catch(e){if(t(e,`ENOENT`))return[];throw e}if(!n?.isDirectory())return[];let i=o.get(e);if(i&&i.mtimeMs===n.mtimeMs)return i.entries;let a=await r.readdir(e,{withFileTypes:!0}),s=[];for(let e of a)e.isDirectory()?s.push({name:e.name,kind:`dir`}):e.isFile()&&s.push({name:e.name,kind:`file`});return u(e,{mtimeMs:n.mtimeMs,entries:s}),s}async function y(i){if(i.includeFiles.length===0)return[];let a=new Set,o=[];for(let c of i.includeFiles){let l=n.resolve(i.rootDir,c);if(!e(i.rootDir,l)||!s(l)||a.has(l))continue;let u=null;try{u=await r.stat(l)}catch(e){if(t(e,`ENOENT`))continue;throw e}u?.isFile()&&(o.push(l),a.add(l))}return o}async function b(e,t){let r=await y({rootDir:e,includeFiles:t.includeFiles});if(r.length>=t.maxFiles)return r.slice(0,t.maxFiles);let i=await _(e,t.maxFiles),a=new Set(r.map(e=>n.resolve(e))),o=[...r];for(let e of i){if(o.length>=t.maxFiles)break;let r=n.resolve(e);a.has(r)||(o.push(e),a.add(r))}return o}async function x(e){let{filePath:n,maxFileBytes:i}=e,a=null;try{a=await r.stat(n)}catch(e){if(t(e,`ENOENT`))return{scanned:!1,findings:[]};throw e}if(!a?.isFile())return{scanned:!1,findings:[]};let o=c({filePath:n,size:a.size,mtimeMs:a.mtimeMs,maxFileBytes:i});if(o)return{scanned:o.scanned,findings:o.findings};if(a.size>i)return l(n,{size:a.size,mtimeMs:a.mtimeMs,maxFileBytes:i,scanned:!1,findings:[]}),{scanned:!1,findings:[]};let s;try{s=await r.readFile(n,`utf-8`)}catch(e){if(t(e,`ENOENT`))return{scanned:!1,findings:[]};throw e}let u=h(s,n);return l(n,{size:a.size,mtimeMs:a.mtimeMs,maxFileBytes:i,scanned:!0,findings:u}),{scanned:!0,findings:u}}async function S(e,t){let n=g(t),r=await b(e,n),i=[],a=0,o=0,s=0,c=0;for(let e of r){let t=await x({filePath:e,maxFileBytes:n.maxFileBytes});if(t.scanned){a+=1;for(let e of t.findings)i.push(e),e.severity===`critical`?o+=1:e.severity===`warn`?s+=1:c+=1}}return{scannedFiles:a,critical:o,warn:s,info:c,findings:i}}export{S as t};
3
- //# sourceMappingURL=skill-scanner-CkxXNioD.js.map
@@ -1,3 +1,2 @@
1
1
  import{H as e,t}from"./subsystem-BLbY429l.js";import{h as n,t as r,u as i,v as a}from"./utils-CGdo13HV.js";import{_ as o,a as s,n as c,p as l}from"./openclaw-root-CnsBf6ZU.js";import{d as u,f as d,l as f,u as ee}from"./env-overrides-DHtB4kK3.js";import{r as p}from"./scan-paths-CWtvWW40.js";import{P as m,l as h}from"./registry-BptzrW8D.js";import{m as g}from"./frontmatter-C7mzDNxd.js";import{n as _}from"./path-alias-guards-kY_ZbWs-.js";import{URL as v,fileURLToPath as y}from"node:url";import b from"node:os";import x from"node:path";import S from"node:fs";import{formatSkillsForPrompt as C,loadSkillsFromDir as te}from"@mariozechner/pi-coding-agent";const ne=new Set([`openclaw-telemetry-galileo-embedded`,`qqbrowser-skill-control`]),w=e=>Array.isArray(e)?e.map(e=>typeof e==`string`?e.trim():``).filter(Boolean):[],re=e=>{if(typeof e!=`string`)return;let t=e.trim();if(t)return t.toLowerCase()===`none`?null:t},ie=e=>{if(!e||typeof e!=`object`||Array.isArray(e))return{};let t={};for(let[n,r]of Object.entries(e)){if(!n.trim())continue;if(!r||typeof r!=`object`||Array.isArray(r)){t[n]={};continue}let e=r,i=e.hooks,a=i&&typeof i==`object`&&!Array.isArray(i)?{allowPromptInjection:i.allowPromptInjection}:void 0,o=a&&typeof a.allowPromptInjection==`boolean`?{allowPromptInjection:a.allowPromptInjection}:void 0;t[n]={enabled:typeof e.enabled==`boolean`?e.enabled:void 0,hooks:o,config:`config`in e?e.config:void 0}}return t},T=e=>{let t=re(e?.slots?.memory);return{enabled:e?.enabled!==!1,allow:w(e?.allow),deny:w(e?.deny),loadPaths:w(e?.load?.paths),slots:{memory:t===void 0?m(`memory`):t},entries:ie(e?.entries)}},E=e=>!!(e?.slots&&Object.prototype.hasOwnProperty.call(e.slots,`memory`)),ae=e=>!!(e?.entries&&Object.prototype.hasOwnProperty.call(e.entries,`memory-core`)),oe=e=>e?!!(typeof e.enabled==`boolean`||Array.isArray(e.allow)&&e.allow.length>0||Array.isArray(e.deny)&&e.deny.length>0||e.load?.paths&&Array.isArray(e.load.paths)&&e.load.paths.length>0||e.slots&&Object.keys(e.slots).length>0||e.entries&&Object.keys(e.entries).length>0):!1;function se(e,t=process.env){if(!t.VITEST)return e;let n=e.plugins;return oe(n)?E(n)||ae(n)?e:{...e,plugins:{...n,slots:{...n?.slots,memory:`none`}}}:{...e,plugins:{...n,enabled:!1,slots:{...n?.slots,memory:`none`}}}}function ce(e,t=process.env){if(!t.VITEST)return!1;let n=e.plugins;return!(E(n)||ae(n))}function le(e,t,n){if(t===`bundled`&&ne.has(e))return{enabled:!0};if(!n.enabled)return{enabled:!1,reason:`plugins disabled`};if(n.deny.includes(e))return{enabled:!1,reason:`blocked by denylist`};let r=n.entries[e];return r?.enabled===!1?{enabled:!1,reason:`disabled in config`}:n.slots.memory===e?{enabled:!0}:n.allow.length>0&&!n.allow.includes(e)?{enabled:!1,reason:`not in allowlist`}:r?.enabled===!0?{enabled:!0}:t===`bundled`?{enabled:!1,reason:`bundled (disabled by default)`}:{enabled:!0}}function ue(e,t){if(!e)return!1;let n=h(t);if(!n)return!1;let r=e.channels?.[n];return!r||typeof r!=`object`||Array.isArray(r)?!1:r.enabled===!0}function de(e){let t=le(e.id,e.origin,e.config);return!t.enabled&&t.reason===`bundled (disabled by default)`&&ue(e.rootConfig,e.id)?{enabled:!0}:t}function fe(e){return e.kind===`memory`?e.slot===null?{enabled:!1,reason:`memory slot disabled`}:typeof e.slot==`string`?e.slot===e.id?{enabled:!0,selected:!0}:{enabled:!1,reason:`memory slot set to "${e.slot}"`}:e.selectedId&&e.selectedId!==e.id?{enabled:!1,reason:`memory slot already filled by "${e.selectedId}"`}:{enabled:!0,selected:!0}:{enabled:!0}}function D(e=process.env){let t=e.OPENCLAW_BUNDLED_PLUGINS_DIR?.trim();if(t)return t;try{let e=x.dirname(process.execPath),t=x.join(e,`extensions`);if(S.existsSync(t))return t}catch{}try{let e=x.dirname(y(import.meta.url));for(let t=0;t<6;t+=1){let t=x.join(e,`extensions`);if(S.existsSync(t))return t;let n=x.dirname(e);if(n===e)break;e=n}}catch{}}const pe=`openclaw.plugin.json`,me=[pe];function O(e){return Array.isArray(e)?e.map(e=>typeof e==`string`?e.trim():``).filter(Boolean):[]}function he(e){for(let t of me){let n=x.join(e,t);if(S.existsSync(n))return n}return x.join(e,pe)}function ge(e,t=!0){let n=he(e),r=s({absolutePath:n,rootPath:e,boundaryLabel:`plugin root`,rejectHardlinks:t});if(!r.ok)return r.reason===`path`?{ok:!1,error:`plugin manifest not found: ${n}`,manifestPath:n}:{ok:!1,error:`unsafe plugin manifest path: ${n} (${r.reason})`,manifestPath:n};let a;try{a=JSON.parse(S.readFileSync(r.fd,`utf-8`))}catch(e){return{ok:!1,error:`failed to parse plugin manifest: ${String(e)}`,manifestPath:n}}finally{S.closeSync(r.fd)}if(!i(a))return{ok:!1,error:`plugin manifest must be an object`,manifestPath:n};let o=typeof a.id==`string`?a.id.trim():``;if(!o)return{ok:!1,error:`plugin manifest requires id`,manifestPath:n};let c=i(a.configSchema)?a.configSchema:null;if(!c)return{ok:!1,error:`plugin manifest requires configSchema`,manifestPath:n};let l=typeof a.kind==`string`?a.kind:void 0,u=typeof a.name==`string`?a.name.trim():void 0,d=typeof a.description==`string`?a.description.trim():void 0,f=typeof a.version==`string`?a.version.trim():void 0,ee=O(a.channels),p=O(a.providers),m=O(a.skills),h;return i(a.uiHints)&&(h=a.uiHints),{ok:!0,manifest:{id:o,configSchema:c,kind:l,channels:ee,providers:p,skills:m,name:u,description:d,version:f,uiHints:h},manifestPath:n}}const _e=[`index.ts`,`index.js`,`index.mjs`,`index.cjs`];function k(e){if(e)return e[g]}function A(e){let t=k(e)?.extensions;if(!Array.isArray(t))return{status:`missing`,entries:[]};let n=t.map(e=>typeof e==`string`?e.trim():``).filter(Boolean);return n.length===0?{status:`empty`,entries:[]}:{status:`ok`,entries:n}}function j(e,t){return l(e,t)}function M(e,t){let n=t?.get(e);if(n)return n;try{let n=S.realpathSync(e);return t?.set(e,n),n}catch{return null}}function N(e){try{return S.statSync(e)}catch{return null}}function ve(e){return(e&511).toString(8).padStart(3,`0`)}const ye=new Set([`.ts`,`.js`,`.mts`,`.cts`,`.mjs`,`.cjs`]),P=new Map,F=1e3;function be(){P.clear()}function I(e){let t=e.OPENCLAW_PLUGIN_DISCOVERY_CACHE_MS?.trim();if(t===``||t===`0`)return 0;if(!t)return F;let n=Number.parseInt(t,10);return Number.isFinite(n)?Math.max(0,n):F}function xe(e){return e.OPENCLAW_DISABLE_PLUGIN_DISCOVERY_CACHE?.trim()?!1:I(e)>0}function Se(e){let t=e.workspaceDir?a(e.workspaceDir):``,r=x.join(n(e.env),`extensions`),i=D(e.env)??``,o=(e.extraPaths??[]).filter(e=>typeof e==`string`).map(e=>e.trim()).filter(Boolean).map(e=>a(e)).toSorted();return`${t}::${e.ownershipUid??L()??`none`}::${r}::${i}::${JSON.stringify(o)}`}function L(e){return e===void 0?process.platform===`win32`||typeof process.getuid!=`function`?null:process.getuid():e}function Ce(e){let t=M(e.source),n=M(e.rootDir);return!t||!n||j(n,t)?null:{reason:`source_escapes_root`,sourcePath:e.source,rootPath:e.rootDir,targetPath:e.source,sourceRealPath:t,rootRealPath:n}}function we(e){if(process.platform===`win32`)return null;let t=[e.rootDir,e.source],n=new Set;for(let r of t){let t=x.resolve(r);if(n.has(t))continue;n.add(t);let i=N(r);if(!i)return{reason:`path_stat_failed`,sourcePath:e.source,rootPath:e.rootDir,targetPath:r};let a=i.mode&511;if(a&2&&e.origin===`bundled`)try{S.chmodSync(r,a&-19);let t=N(r);if(!t)return{reason:`path_stat_failed`,sourcePath:e.source,rootPath:e.rootDir,targetPath:r};i=t,a=t.mode&511}catch{}if(a&2)return{reason:`path_world_writable`,sourcePath:e.source,rootPath:e.rootDir,targetPath:r,modeBits:a};if(e.origin!==`bundled`&&e.uid!==null&&typeof i.uid==`number`&&i.uid!==e.uid&&i.uid!==0)return{reason:`path_suspicious_ownership`,sourcePath:e.source,rootPath:e.rootDir,targetPath:r,foundUid:i.uid,expectedUid:e.uid}}return null}function Te(e){return Ce({source:e.source,rootDir:e.rootDir})||we({source:e.source,rootDir:e.rootDir,origin:e.origin,uid:L(e.ownershipUid)})}function Ee(e){return e.reason===`source_escapes_root`?`blocked plugin candidate: source escapes plugin root (${e.sourcePath} -> ${e.sourceRealPath}; root=${e.rootRealPath})`:e.reason===`path_stat_failed`?`blocked plugin candidate: cannot stat path (${e.targetPath})`:e.reason===`path_world_writable`?`blocked plugin candidate: world-writable path (${e.targetPath}, mode=${ve(e.modeBits??0)})`:`blocked plugin candidate: suspicious ownership (${e.targetPath}, uid=${e.foundUid}, expected uid=${e.expectedUid} or root)`}function De(e){let t=Te({source:e.source,rootDir:e.rootDir,origin:e.origin,ownershipUid:e.ownershipUid});return t?(e.diagnostics.push({level:`warn`,source:t.targetPath,message:Ee(t)}),!0):!1}function R(e){let t=x.extname(e);return ye.has(t)?!e.endsWith(`.d.ts`):!1}function Oe(e){let t=e.trim().toLowerCase();return!!(!t||t.endsWith(`.bak`)||t.includes(`.backup-`)||t.includes(`.disabled`))}function z(e,t=!0){let n=s({absolutePath:x.join(e,`package.json`),rootPath:e,boundaryLabel:`plugin package directory`,rejectHardlinks:t});if(!n.ok)return null;try{let e=S.readFileSync(n.fd,`utf-8`);return JSON.parse(e)}catch{return null}finally{S.closeSync(n.fd)}}function B(e){let t=x.basename(e.filePath,x.extname(e.filePath)),n=e.packageName?.trim();if(!n)return t;let r=n.includes(`/`)?n.split(`/`).pop()??n:n;return e.hasMultipleExtensions?`${r}/${t}`:r}function V(e){let t=x.resolve(e.source);if(e.seen.has(t))return;let n=M(e.rootDir)??x.resolve(e.rootDir);if(De({source:t,rootDir:n,origin:e.origin,diagnostics:e.diagnostics,ownershipUid:e.ownershipUid}))return;e.seen.add(t);let r=e.manifest??null;e.candidates.push({idHint:e.idHint,source:t,rootDir:n,origin:e.origin,workspaceDir:e.workspaceDir,packageName:r?.name?.trim()||void 0,packageVersion:r?.version?.trim()||void 0,packageDescription:r?.description?.trim()||void 0,packageDir:e.packageDir,packageManifest:k(r??void 0)})}function ke(e){let t=s({absolutePath:x.resolve(e.packageDir,e.entryPath),rootPath:e.packageDir,boundaryLabel:`plugin package directory`,rejectHardlinks:e.rejectHardlinks??!0});if(!t.ok)return e.diagnostics.push({level:`error`,message:`extension entry escapes package directory: ${e.entryPath}`,source:e.sourceLabel}),null;let n=t.path;return S.closeSync(t.fd),n}function H(e){if(!S.existsSync(e.dir))return;let t=[];try{t=S.readdirSync(e.dir,{withFileTypes:!0})}catch(t){e.diagnostics.push({level:`warn`,message:`failed to read extensions dir: ${e.dir} (${String(t)})`,source:e.dir});return}for(let n of t){let t=x.join(e.dir,n.name);if(n.isFile()){if(!R(t))continue;V({candidates:e.candidates,diagnostics:e.diagnostics,seen:e.seen,idHint:x.basename(n.name,x.extname(n.name)),source:t,rootDir:x.dirname(t),origin:e.origin,ownershipUid:e.ownershipUid,workspaceDir:e.workspaceDir})}if(!n.isDirectory()||Oe(n.name))continue;let r=e.origin!==`bundled`,i=z(t,r),a=A(i??void 0),o=a.status===`ok`?a.entries:[];if(o.length>0){for(let n of o){let a=ke({packageDir:t,entryPath:n,sourceLabel:t,diagnostics:e.diagnostics,rejectHardlinks:r});a&&V({candidates:e.candidates,diagnostics:e.diagnostics,seen:e.seen,idHint:B({filePath:a,packageName:i?.name,hasMultipleExtensions:o.length>1}),source:a,rootDir:t,origin:e.origin,ownershipUid:e.ownershipUid,workspaceDir:e.workspaceDir,manifest:i,packageDir:t})}continue}let s=[..._e].map(e=>x.join(t,e)).find(e=>S.existsSync(e));s&&R(s)&&V({candidates:e.candidates,diagnostics:e.diagnostics,seen:e.seen,idHint:n.name,source:s,rootDir:t,origin:e.origin,ownershipUid:e.ownershipUid,workspaceDir:e.workspaceDir,manifest:i,packageDir:t})}}function Ae(e){let t=a(e.rawPath);if(!S.existsSync(t)){e.diagnostics.push({level:`error`,message:`plugin path not found: ${t}`,source:t});return}let n=S.statSync(t);if(n.isFile()){if(!R(t)){e.diagnostics.push({level:`error`,message:`plugin path is not a supported file: ${t}`,source:t});return}V({candidates:e.candidates,diagnostics:e.diagnostics,seen:e.seen,idHint:x.basename(t,x.extname(t)),source:t,rootDir:x.dirname(t),origin:e.origin,ownershipUid:e.ownershipUid,workspaceDir:e.workspaceDir});return}if(n.isDirectory()){let n=e.origin!==`bundled`,r=z(t,n),i=A(r??void 0),a=i.status===`ok`?i.entries:[];if(a.length>0){for(let i of a){let o=ke({packageDir:t,entryPath:i,sourceLabel:t,diagnostics:e.diagnostics,rejectHardlinks:n});o&&V({candidates:e.candidates,diagnostics:e.diagnostics,seen:e.seen,idHint:B({filePath:o,packageName:r?.name,hasMultipleExtensions:a.length>1}),source:o,rootDir:t,origin:e.origin,ownershipUid:e.ownershipUid,workspaceDir:e.workspaceDir,manifest:r,packageDir:t})}return}let o=[..._e].map(e=>x.join(t,e)).find(e=>S.existsSync(e));if(o&&R(o)){V({candidates:e.candidates,diagnostics:e.diagnostics,seen:e.seen,idHint:x.basename(t),source:o,rootDir:t,origin:e.origin,ownershipUid:e.ownershipUid,workspaceDir:e.workspaceDir,manifest:r,packageDir:t});return}H({dir:t,origin:e.origin,ownershipUid:e.ownershipUid,workspaceDir:e.workspaceDir,candidates:e.candidates,diagnostics:e.diagnostics,seen:e.seen});return}}function je(e){let t=e.env??process.env,r=e.cache!==!1&&xe(t),i=Se({workspaceDir:e.workspaceDir,extraPaths:e.extraPaths,ownershipUid:e.ownershipUid,env:t});if(r){let e=P.get(i);if(e&&e.expiresAt>Date.now())return e.result}let o=[],s=[],c=new Set,l=e.workspaceDir?.trim(),u=e.extraPaths??[];for(let t of u){if(typeof t!=`string`)continue;let n=t.trim();n&&Ae({rawPath:n,origin:`config`,ownershipUid:e.ownershipUid,workspaceDir:l?.trim()||void 0,candidates:o,diagnostics:s,seen:c})}if(l){let t=a(l),n=[x.join(t,`.openclaw`,`extensions`)];for(let r of n)H({dir:r,origin:`workspace`,ownershipUid:e.ownershipUid,workspaceDir:t,candidates:o,diagnostics:s,seen:c})}let d=D(t);d&&H({dir:d,origin:`bundled`,ownershipUid:e.ownershipUid,candidates:o,diagnostics:s,seen:c}),H({dir:x.join(n(t),`extensions`),origin:`global`,ownershipUid:e.ownershipUid,candidates:o,diagnostics:s,seen:c});let f={candidates:o,diagnostics:s};if(r){let e=I(t);e>0&&P.set(i,{expiresAt:Date.now()+e,result:f})}return f}const Me={config:0,workspace:1,global:2,bundled:3},U=new Map,Ne=1e3;function Pe(){U.clear()}function Fe(e){let t=e.OPENCLAW_PLUGIN_MANIFEST_CACHE_MS?.trim();if(t===``||t===`0`)return 0;if(!t)return Ne;let n=Number.parseInt(t,10);return Number.isFinite(n)?Math.max(0,n):Ne}function Ie(e){return e.OPENCLAW_DISABLE_PLUGIN_MANIFEST_CACHE?.trim()?!1:Fe(e)>0}function Le(e){let t=e.workspaceDir?a(e.workspaceDir):``,r=x.join(n(e.env),`extensions`),i=D(e.env)??``,o=e.plugins.loadPaths.map(e=>a(e)).map(e=>e.trim()).filter(Boolean).toSorted();return`${t}::${r}::${i}::${JSON.stringify(o)}`}function Re(e){try{return S.statSync(e).mtimeMs}catch{return null}}function W(e){return e?.trim()||void 0}function ze(e){return{id:e.manifest.id,name:W(e.manifest.name)??e.candidate.packageName,description:W(e.manifest.description)??e.candidate.packageDescription,version:W(e.manifest.version)??e.candidate.packageVersion,kind:e.manifest.kind,channels:e.manifest.channels??[],providers:e.manifest.providers??[],skills:e.manifest.skills??[],origin:e.candidate.origin,workspaceDir:e.candidate.workspaceDir,rootDir:e.candidate.rootDir,source:e.candidate.source,manifestPath:e.manifestPath,schemaCacheKey:e.schemaCacheKey,configSchema:e.configSchema,configUiHints:e.manifest.uiHints}}function Be(e){let t=T((e.config??{}).plugins),n=e.env??process.env,r=Le({workspaceDir:e.workspaceDir,plugins:t,env:n}),i=e.cache!==!1&&Ie(n);if(i){let e=U.get(r);if(e&&e.expiresAt>Date.now())return e.registry}let a=e.candidates?{candidates:e.candidates,diagnostics:e.diagnostics??[]}:je({workspaceDir:e.workspaceDir,extraPaths:t.loadPaths,env:n}),o=[...a.diagnostics],s=a.candidates,c=[],l=new Map,u=new Map;for(let e of s){let t=e.origin!==`bundled`,n=ge(e.rootDir,t);if(!n.ok){o.push({level:`error`,message:n.error,source:n.manifestPath});continue}let r=n.manifest;e.idHint&&e.idHint!==r.id&&o.push({level:`warn`,pluginId:r.id,source:e.source,message:`plugin id mismatch (manifest uses "${r.id}", entry hints "${e.idHint}")`});let i=r.configSchema,a=(()=>{if(!i)return;let e=Re(n.manifestPath);return e?`${n.manifestPath}:${e}`:n.manifestPath})(),s=l.get(r.id);if(s){let t=s.candidate.rootDir===e.rootDir;if((()=>{if(t)return!0;let n=M(s.candidate.rootDir,u),r=M(e.rootDir,u);return!!(n&&r&&n===r)})()){Me[e.origin]<Me[s.candidate.origin]&&(c[s.recordIndex]=ze({manifest:r,candidate:e,manifestPath:n.manifestPath,schemaCacheKey:a,configSchema:i}),l.set(r.id,{candidate:e,recordIndex:s.recordIndex}));continue}o.push({level:`warn`,pluginId:r.id,source:e.source,message:`duplicate plugin id detected; later plugin may be overridden (${e.source})`})}else l.set(r.id,{candidate:e,recordIndex:c.length});c.push(ze({manifest:r,candidate:e,manifestPath:n.manifestPath,schemaCacheKey:a,configSchema:i}))}let d={plugins:c,diagnostics:o};if(i){let e=Fe(n);e>0&&U.set(r,{expiresAt:Date.now()+e,registry:d})}return d}const Ve=/[\u00A0\u2000-\u200A\u202F\u205F\u3000]/g,He=/^https?:\/\//i,Ue=/^data:/i,G=`/workspace`;function We(e){return e.replace(Ve,` `)}function Ge(e){return e.startsWith(`@`)?e.slice(1):e}function Ke(e){let t=We(Ge(e));return t===`~`?b.homedir():t.startsWith(`~/`)?b.homedir()+t.slice(1):t}function qe(e,t){let n=Ke(e);return x.isAbsolute(n)?n:x.resolve(t,n)}function K(e,t){return qe(e,t)}function q(e){let t=K(e.filePath,e.cwd),n=x.resolve(e.root),r=x.relative(n,t);if(!r||r===``)return{resolved:t,relative:``};if(r.startsWith(`..`)||x.isAbsolute(r))throw Error(`Path escapes sandbox root (${tt(n)}): ${e.filePath}`);return{resolved:t,relative:r}}async function Je(e){let t=q(e),n={allowFinalSymlinkForUnlink:e.allowFinalSymlinkForUnlink,allowFinalHardlinkForUnlink:e.allowFinalHardlinkForUnlink};return await _({absolutePath:t.resolved,rootPath:e.root,boundaryLabel:`sandbox root`,policy:n}),t}function Ye(e){let t=e.trim();if(Ue.test(t))throw Error(`data: URLs are not supported for media. Use buffer instead.`)}async function Xe(e){let t=e.media.trim();if(!t||He.test(t))return t;let n=t;if(/^file:\/\//i.test(n)){let r=Ze({fileUrl:n,sandboxRoot:e.sandboxRoot});if(r)n=r;else try{n=y(n)}catch{throw Error(`Invalid file:// URL for sandboxed media: ${t}`)}}let r=Qe({candidate:n,sandboxRoot:e.sandboxRoot});return r&&(n=r),await $e({candidate:n,sandboxRoot:e.sandboxRoot})||(await Je({filePath:n,cwd:e.sandboxRoot,root:e.sandboxRoot})).resolved}function Ze(e){let t;try{t=new v(e.fileUrl)}catch{return}if(t.protocol!==`file:`)return;let n=decodeURIComponent(t.pathname).replace(/\\/g,`/`);if(!(n!==G&&!n.startsWith(`${G}/`)))return Qe({candidate:n,sandboxRoot:e.sandboxRoot})}function Qe(e){let t=e.candidate.replace(/\\/g,`/`);if(t===G)return x.resolve(e.sandboxRoot);let n=`${G}/`;if(!t.startsWith(n))return;let r=t.slice(n.length);return r?x.resolve(e.sandboxRoot,...r.split(`/`).filter(Boolean)):x.resolve(e.sandboxRoot)}async function $e(t){if(!x.isAbsolute(Ke(t.candidate)))return;let n=x.resolve(K(t.candidate,t.sandboxRoot)),r=x.resolve(e());if(l(r,n))return await et({filePath:n,tmpRoot:r}),n}async function et(e){await _({absolutePath:e.filePath,rootPath:e.tmpRoot,boundaryLabel:`tmp root`})}function tt(e){return e.startsWith(b.homedir())?`~${e.slice(b.homedir().length)}`:e}function nt(e){try{let t=S.readdirSync(e,{withFileTypes:!0});for(let n of t){if(n.name.startsWith(`.`))continue;let t=x.join(e,n.name);if(n.isFile()&&n.name.endsWith(`.md`)||n.isDirectory()&&S.existsSync(x.join(t,`SKILL.md`)))return!0}}catch{return!1}return!1}function rt(e={}){let t=process.env.OPENCLAW_BUNDLED_SKILLS_DIR?.trim();if(t)return t;try{let t=e.execPath??process.execPath,n=x.dirname(t),r=x.join(n,`skills`);if(S.existsSync(r))return r}catch{}try{let t=e.moduleUrl??import.meta.url,n=x.dirname(y(t)),r=c({argv1:e.argv1??process.argv[1],moduleUrl:t,cwd:e.cwd??process.cwd()});if(r){let e=x.join(r,`skills`);if(nt(e))return e}let i=n;for(let e=0;e<6;e+=1){let e=x.join(i,`skills`);if(nt(e))return e;let t=x.dirname(i);if(t===i)break;i=t}}catch{}}const it=t(`skills`);function at(e){let t=(e.workspaceDir??``).trim();if(!t)return[];let n=Be({workspaceDir:t,config:e.config});if(n.plugins.length===0)return[];let r=T(e.config?.plugins),i=e.config?.acp?.enabled!==!1,a=r.slots.memory,o=null,s=new Set,c=[];for(let t of n.plugins){if(!t.skills||t.skills.length===0||!de({id:t.id,origin:t.origin,config:r,rootConfig:e.config}).enabled||!i&&t.id===`acpx`)continue;let n=fe({id:t.id,kind:t.kind,slot:a,selectedId:o});if(n.enabled){n.selected&&t.kind===`memory`&&(o=t.id);for(let e of t.skills){let n=e.trim();if(!n)continue;let r=x.resolve(t.rootDir,n);if(!S.existsSync(r)){it.warn(`plugin skill path not found (${t.id}): ${r}`);continue}if(!p(t.rootDir,r,{requireRealpath:!0})){it.warn(`plugin skill path escapes plugin root (${t.id}): ${r}`);continue}s.has(r)||(s.add(r),c.push(r))}}}return c}const J=new Map;async function ot(e,t){let n=(J.get(e)??Promise.resolve()).then(t,t);J.set(e,n);try{return await n}finally{J.get(e)===n&&J.delete(e)}}const Y=S.promises,X=t(`skills`),st=new Set;function ct(e){let t=b.homedir();if(!t)return e;let n=t.endsWith(x.sep)?t:t+x.sep;return e.map(e=>({...e,filePath:e.filePath.startsWith(n)?`~/`+e.filePath.slice(n.length):e.filePath}))}function Z(e,t,n){st.has(e)||(st.add(e),X.debug(t,n))}function lt(e,t,n,r){let i=e.filter(e=>f({entry:e,config:t,eligibility:r}));if(n!==void 0){let e=o(n)??[],t=e.length>0?e.join(`, `):`(none)`;X.debug(`Applying skill filter: ${t}`),i=e.length>0?i.filter(t=>e.includes(t.skill.name)):[],X.debug(`After skill filter: ${i.map(e=>e.skill.name).join(`, `)||`(none)`}`)}return i}function ut(e){return e.toLowerCase().replace(/[^a-z0-9_]+/g,`_`).replace(/_+/g,`_`).replace(/^_+|_+$/g,``).slice(0,32)||`skill`}function dt(e,t){let n=e.toLowerCase();if(!t.has(n))return e;for(let n=2;n<1e3;n+=1){let r=`_${n}`,i=Math.max(1,32-r.length),a=`${e.slice(0,i)}${r}`,o=a.toLowerCase();if(!t.has(o))return a}return`${e.slice(0,30)}_x`}function ft(e){let t=e?.skills?.limits;return{maxCandidatesPerRoot:t?.maxCandidatesPerRoot??300,maxSkillsLoadedPerSource:t?.maxSkillsLoadedPerSource??200,maxSkillsInPrompt:t?.maxSkillsInPrompt??150,maxSkillsPromptChars:t?.maxSkillsPromptChars??3e4,maxSkillFileBytes:t?.maxSkillFileBytes??256e3}}function pt(e){try{let t=S.readdirSync(e,{withFileTypes:!0}),n=[];for(let r of t){if(r.name.startsWith(`.`)||r.name===`node_modules`)continue;let t=x.join(e,r.name);if(r.isDirectory()){n.push(r.name);continue}if(r.isSymbolicLink())try{S.statSync(t).isDirectory()&&n.push(r.name)}catch{}}return n}catch{return[]}}function mt(e){try{return S.realpathSync(e)}catch{return null}}function ht(e){X.warn(`Skipping skill path that resolves outside its configured root.`,{source:e.source,rootDir:e.rootDir,path:e.candidatePath,realPath:e.candidateRealPath})}function Q(e){let t=mt(e.candidatePath);return t?l(e.rootRealPath,t)?t:(ht({source:e.source,rootDir:e.rootDir,candidatePath:x.resolve(e.candidatePath),candidateRealPath:t}),null):null}function gt(e){return e.skills.filter(t=>Q({source:e.source,rootDir:e.rootDir,rootRealPath:e.rootRealPath,candidatePath:t.baseDir})?!!Q({source:e.source,rootDir:e.rootDir,rootRealPath:e.rootRealPath,candidatePath:t.filePath}):!1)}function _t(e,t){let n=x.join(e,`skills`);try{if(!S.existsSync(n)||!S.statSync(n).isDirectory())return{baseDir:e}}catch{return{baseDir:e}}let r=pt(n),i=Math.max(0,t?.maxEntriesToScan??100),a=i===0?[]:r.slice(0,Math.min(r.length,i));for(let e of a){let t=x.join(n,e,`SKILL.md`);if(S.existsSync(t))return{baseDir:n,note:`Detected nested skills root at ${n}`}}return{baseDir:e}}function vt(e){if(Array.isArray(e))return e;if(e&&typeof e==`object`&&`skills`in e){let t=e.skills;if(Array.isArray(t))return t}return[]}function $(e,t){let n=ft(t?.config),i=e=>{let t=x.resolve(e.dir),r=mt(t)??t,i=_t(e.dir,{maxEntriesToScan:n.maxCandidatesPerRoot}).baseDir,a=Q({source:e.source,rootDir:t,rootRealPath:r,candidatePath:i});if(!a)return[];let o=x.join(i,`SKILL.md`);if(S.existsSync(o)){let r=Q({source:e.source,rootDir:t,rootRealPath:a,candidatePath:o});if(!r)return[];try{let e=S.statSync(r).size;if(e>n.maxSkillFileBytes)return X.warn(`Skipping skills root due to oversized SKILL.md.`,{dir:i,filePath:o,size:e,maxSkillFileBytes:n.maxSkillFileBytes}),[]}catch{return[]}return gt({skills:vt(te({dir:i,source:e.source})),source:e.source,rootDir:t,rootRealPath:a})}let s=pt(i),c=s.length>n.maxCandidatesPerRoot,l=Math.max(0,n.maxSkillsLoadedPerSource),u=s.slice().sort().slice(0,l);c?X.warn(`Skills root looks suspiciously large, truncating discovery.`,{dir:e.dir,baseDir:i,childDirCount:s.length,maxCandidatesPerRoot:n.maxCandidatesPerRoot,maxSkillsLoadedPerSource:n.maxSkillsLoadedPerSource}):s.length>l&&X.warn(`Skills root has many entries, truncating discovery.`,{dir:e.dir,baseDir:i,childDirCount:s.length,maxSkillsLoadedPerSource:n.maxSkillsLoadedPerSource});let d=[];for(let r of u){let o=x.join(i,r);if(!Q({source:e.source,rootDir:t,rootRealPath:a,candidatePath:o}))continue;let s=x.join(o,`SKILL.md`);if(!S.existsSync(s))continue;let c=Q({source:e.source,rootDir:t,rootRealPath:a,candidatePath:s});if(!c)continue;try{let e=S.statSync(c).size;if(e>n.maxSkillFileBytes){X.warn(`Skipping skill due to oversized SKILL.md.`,{skill:r,filePath:s,size:e,maxSkillFileBytes:n.maxSkillFileBytes});continue}}catch{continue}let l=te({dir:o,source:e.source});if(d.push(...gt({skills:vt(l),source:e.source,rootDir:t,rootRealPath:a})),d.length>=n.maxSkillsLoadedPerSource)break}return d.length>n.maxSkillsLoadedPerSource?d.slice().sort((e,t)=>e.name.localeCompare(t.name)).slice(0,n.maxSkillsLoadedPerSource):d},o=t?.managedSkillsDir??x.join(r,`skills`),s=x.resolve(e,`skills`),c=t?.bundledSkillsDir??rt(),l=(t?.config?.skills?.load?.extraDirs??[]).map(e=>typeof e==`string`?e.trim():``).filter(Boolean),f=at({workspaceDir:e,config:t?.config}),p=[...l,...f],m=c?i({dir:c,source:`openclaw-bundled`}):[],h=p.flatMap(e=>i({dir:a(e),source:`openclaw-extra`})),g=i({dir:o,source:`openclaw-managed`}),_=i({dir:x.resolve(e,`.agents`,`skills`),source:`agents-skills-project`}),v=i({dir:s,source:`openclaw-workspace`}),y=i({dir:x.resolve(b.homedir(),`.qbotclaw`,`openclaw-qbot`,`skills`),source:`openclaw-qbotclaw`}),C=new Map;for(let e of h)C.set(e.name,e);for(let e of m)C.set(e.name,e);for(let e of g)C.set(e.name,e);for(let e of _)C.set(e.name,e);for(let e of v)C.set(e.name,e);for(let e of y)C.set(e.name,e);return Array.from(C.values()).map(e=>{let t={};try{t=ee(S.readFileSync(e.filePath,`utf-8`))}catch{}return{skill:e,frontmatter:t,metadata:u(t),invocation:d(t)}})}function yt(e){let t=ft(e.config),n=e.skills.length,r=e.skills.slice(0,Math.max(0,t.maxSkillsInPrompt)),i=r,a=n>r.length,o=a?`count`:null,s=e=>C(e).length<=t.maxSkillsPromptChars;if(!s(i)){let e=0,t=i.length;for(;e<t;){let n=Math.ceil((e+t)/2);s(i.slice(0,n))?e=n:t=n-1}i=i.slice(0,e),a=!0,o=`chars`}return{skillsForPrompt:i,truncated:a,truncatedReason:o}}function bt(e,t){let{eligible:n,prompt:r,resolvedSkills:i}=St(e,t),a=o(t?.skillFilter);return{prompt:r,skills:n.map(e=>({name:e.skill.name,primaryEnv:e.metadata?.primaryEnv,requiredEnv:e.metadata?.requires?.env?.slice()})),...a===void 0?{}:{skillFilter:a},resolvedSkills:i,version:t?.snapshotVersion}}function xt(e,t){return St(e,t).prompt}function St(e,t){let n=lt(t?.entries??$(e,t),t?.config,t?.skillFilter,t?.eligibility),r=n.filter(e=>e.invocation?.disableModelInvocation!==!0),i=t?.eligibility?.remote?.note?.trim(),a=r.map(e=>e.skill),{skillsForPrompt:o,truncated:s}=yt({skills:a,config:t?.config});return{eligible:n,prompt:[i,s?`⚠️ Skills truncated: included ${o.length} of ${a.length}. Run \`openclaw skills check\` to audit.`:``,C(ct(o))].filter(Boolean).join(`
2
2
  `),resolvedSkills:a}}function Ct(e){let t=e.skillsSnapshot?.prompt?.trim();if(t)return t;if(e.entries&&e.entries.length>0){let t=xt(e.workspaceDir,{entries:e.entries,config:e.config});return t.trim()?t:``}return``}function wt(e,t){return $(e,t)}function Tt(e,t){if(!t.has(e))return t.add(e),e;for(let n=2;n<1e4;n+=1){let r=`${e}-${n}`;if(!t.has(r))return t.add(r),r}let n=1e4,r=`${e}-${n}`;for(;t.has(r);)n+=1,r=`${e}-${n}`;return t.add(r),r}function Et(e){let t=x.basename(e.entry.skill.baseDir).trim();return!t||t===`.`||t===`..`?null:q({filePath:Tt(t,e.usedDirNames),cwd:e.targetSkillsDir,root:e.targetSkillsDir}).resolved}async function Dt(e){let t=a(e.sourceWorkspaceDir),n=a(e.targetWorkspaceDir);t!==n&&await ot(`syncSkills:${n}`,async()=>{let r=x.join(n,`skills`),i=$(t,{config:e.config,managedSkillsDir:e.managedSkillsDir,bundledSkillsDir:e.bundledSkillsDir});await Y.rm(r,{recursive:!0,force:!0}),await Y.mkdir(r,{recursive:!0});let a=new Set;for(let e of i){let t=null;try{t=Et({targetSkillsDir:r,entry:e,usedDirNames:a})}catch(t){let n=t instanceof Error?t.message:JSON.stringify(t);X.warn(`Failed to resolve safe destination for ${e.skill.name}: ${n}`);continue}if(!t){X.warn(`Failed to resolve safe destination for ${e.skill.name}: invalid source directory name`);continue}try{await Y.cp(e.skill.baseDir,t,{recursive:!0,force:!0})}catch(t){let n=t instanceof Error?t.message:JSON.stringify(t);X.warn(`Failed to copy ${e.skill.name} to sandbox: ${n}`)}}})}function Ot(e,t){let n=lt(t?.entries??$(e,t),t?.config,t?.skillFilter,t?.eligibility).filter(e=>e.invocation?.userInvocable!==!1),r=new Set;for(let e of t?.reservedNames??[])r.add(e.toLowerCase());let i=[];for(let e of n){let t=e.skill.name,n=ut(t);n!==t&&Z(`sanitize:${t}:${n}`,`Sanitized skill command name "${t}" to "/${n}".`,{rawName:t,sanitized:`/${n}`});let a=dt(n,r);a!==n&&Z(`dedupe:${t}:${a}`,`De-duplicated skill command name for "${t}" to "/${a}".`,{rawName:t,deduped:`/${a}`}),r.add(a.toLowerCase());let o=e.skill.description?.trim()||t,s=o.length>100?o.slice(0,99)+`…`:o,c=(()=>{let n=(e.frontmatter?.[`command-dispatch`]??e.frontmatter?.command_dispatch??``).trim().toLowerCase();if(!n||n!==`tool`)return;let r=(e.frontmatter?.[`command-tool`]??e.frontmatter?.command_tool??``).trim();if(!r){Z(`dispatch:missingTool:${t}`,`Skill command "/${a}" requested tool dispatch but did not provide command-tool. Ignoring dispatch.`,{skillName:t,command:a});return}let i=(e.frontmatter?.[`command-arg-mode`]??e.frontmatter?.command_arg_mode??``).trim().toLowerCase();return!i||i===`raw`||Z(`dispatch:badArgMode:${t}:${i}`,`Skill command "/${a}" requested tool dispatch but has unknown command-arg-mode. Falling back to raw.`,{skillName:t,command:a,argMode:i}),{kind:`tool`,toolName:r,argMode:`raw`}})();i.push({name:a,skillName:t,description:s,...c?{dispatch:c}:{}})}return i}function kt(e){let t=e?.skills?.install,n=t?.preferBrew??!0,r=(typeof t?.nodeManager==`string`?t.nodeManager.trim():``).toLowerCase();return{preferBrew:n,nodeManager:r===`pnpm`||r===`yarn`||r===`bun`||r===`npm`?r:`npm`}}export{se as C,fe as D,de as E,D as S,T,je as _,Ct as a,ge as b,rt as c,K as d,q as f,be as g,Be as h,wt as i,Ye as l,Pe as m,Ot as n,Dt as o,Xe as p,bt as r,at as s,kt as t,Je as u,j as v,ce as w,A as x,N as y};
3
- //# sourceMappingURL=skills-Bz_S4lPh.js.map