@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
@@ -9,4 +9,3 @@ import{Uc as e,cu as t,ll as n,lt as r,ol as i}from"./auth-profiles-C8rZRS0X.js"
9
9
  `).trim():``}function N(e){let t=e.trim();return t?`Reasoning:\n${t.split(`
10
10
  `).map(e=>e&&`_${e}_`).join(`
11
11
  `)}`:``}function P(e){let t=e.trimStart();if(!t.startsWith(`<`)||!/<\s*(?:think(?:ing)?|thought|antthinking)\s*>/i.test(t)||!/<\s*\/\s*(?:think(?:ing)?|thought|antthinking)\s*>/i.test(e))return null;let n=/<\s*(\/?)\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi,r=!1,i=0,a=0,o=[],s=e=>{e&&o.push({type:`text`,text:e})},c=e=>{let t=e.trim();t&&o.push({type:`thinking`,thinking:t})};for(let t of e.matchAll(n)){let n=t.index??0,o=!!t[1]?.includes(`/`);if(!r&&!o){s(e.slice(i,n)),a=n+t[0].length,r=!0;continue}r&&o&&(c(e.slice(a,n)),i=n+t[0].length,r=!1)}return r||(s(e.slice(i)),!o.some(e=>e.type===`thinking`))?null:o}function F(e){if(!Array.isArray(e.content)||e.content.some(e=>e&&typeof e==`object`&&e.type===`thinking`))return;let t=[],n=!1;for(let r of e.content){if(!r||typeof r!=`object`||!(`type`in r)){t.push(r);continue}if(r.type!==`text`){t.push(r);continue}let e=P(r.text);if(!e){t.push(r);continue}n=!0;for(let n of e)if(n.type===`thinking`)t.push({type:`thinking`,thinking:n.thinking});else if(n.type===`text`){let e=n.text.trimStart();e&&t.push({type:`text`,text:e})}}n&&(e.content=t)}function I(e){if(!e)return``;let t=/<\s*(\/?)\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi,n=``,r=0,i=!1;for(let a of e.matchAll(t)){let t=a.index??0;i&&(n+=e.slice(r,t)),i=a[1]!==`/`,r=t+a[0].length}return n.trim()}function L(e){if(!e)return``;let t=I(e);if(t)return t;let n=/<\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi,r=/<\s*\/\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi,i=[...e.matchAll(n)];if(i.length===0)return``;let a=[...e.matchAll(r)],o=i[i.length-1],s=a[a.length-1];if(s&&(s.index??-1)>(o.index??-1))return t;let c=(o.index??0)+o[0].length;return e.slice(c).trim()}function R(e,t){return u(l({name:e,args:t}))}function z(e){let t=e.trim(),n=/^data:([^;,]+);base64,([a-z0-9+/=\r\n]+)$/i.exec(t);if(!n)throw Error(`Invalid data URL (expected base64 data: URL).`);let r=(n[1]??``).trim().toLowerCase();if(!r.startsWith(`image/`))throw Error(`Unsupported data URL type: ${r||`unknown`}`);let i=(n[2]??``).trim(),a=Buffer.from(i,`base64`);if(a.length===0)throw Error(`Invalid data URL: empty payload.`);return{buffer:a,mimeType:r,kind:`image`}}function B(e){let t=e.message.stopReason,n=e.message.errorMessage?.trim();if(t===`error`||t===`aborted`)throw Error(n?`Image model failed (${e.provider}/${e.model}): ${n}`:`Image model failed (${e.provider}/${e.model})`);if(n)throw Error(`Image model failed (${e.provider}/${e.model}): ${n}`);let r=j(e.message);if(r.trim())return r.trim();throw Error(`Image model returned no text (${e.provider}/${e.model}).`)}function V(e){let t=o(e?.agents?.defaults?.imageModel),n=a(e?.agents?.defaults?.imageModel);return{...t?.trim()?{primary:t.trim()}:{},...n.length>0?{fallbacks:n}:{}}}function H(e){let t=e.cfg?.models?.providers?.[e.provider]?.models??[],n=(((e.provider===`minimax`?t.find(e=>(e?.id??``).trim()===`MiniMax-VL-01`&&Array.isArray(e?.input)&&e.input.includes(`image`)):null)??t.find(e=>!!(e?.id??``).trim()&&e.input?.includes(`image`)))?.id??``).trim();return n?`${e.provider}/${n}`:null}let U=null;function W(){return U??=import(`./pi-model-discovery-runtime-CBFLFm4f.js`),U}async function G(t){await c(t.cfg,t.agentDir);let{discoverAuthStorage:r,discoverModels:a}=await W(),o=r(t.agentDir),s=a(o,t.agentDir),l=e(t.provider,t.model),u=s.find(l.provider,l.model);if(!u)throw Error(`Unknown model: ${l.provider}/${l.model}`);if(!u.input?.includes(`image`))throw Error(`Model does not support images: ${t.provider}/${t.model}`);let f=n(await i({model:u,cfg:t.cfg,agentDir:t.agentDir,profileId:t.profile,preferredProfile:t.preferredProfile}),u.provider);o.setRuntimeApiKey(u.provider,f);let m=t.buffer.toString(`base64`);return p(u.provider,u.id)?{text:await g({apiKey:f,prompt:t.prompt??`Describe the image.`,imageDataUrl:`data:${t.mime??`image/jpeg`};base64,${m}`,modelBaseUrl:u.baseUrl}),model:u.id}:{text:B({message:await d(u,{messages:[{role:`user`,content:[{type:`text`,text:t.prompt??`Describe the image.`},{type:`image`,data:m,mimeType:t.mime??`image/jpeg`}],timestamp:Date.now()}]},{apiKey:f,maxTokens:t.maxTokens??512}),provider:u.provider,model:u.id}),model:u.id}}export{f as C,p as S,A as _,H as a,y as b,L as c,R as d,T as f,O as g,E as h,z as i,I as l,k as m,B as n,j as o,F as p,V as r,M as s,G as t,N as u,w as v,g as w,_ as x,v as y};
12
- //# sourceMappingURL=image-BVbOr9yV.js.map
@@ -10,4 +10,3 @@ import{Kt as e,P as t,qt as n}from"./paths-piJASC5k.js";import{f as r,x as i}fro
10
10
  `).trim():``}function st(e){let t=e.trim();return t?`Reasoning:\n${t.split(`
11
11
  `).map(e=>e&&`_${e}_`).join(`
12
12
  `)}`:``}function ct(e){let t=e.trimStart();if(!t.startsWith(`<`)||!/<\s*(?:think(?:ing)?|thought|antthinking)\s*>/i.test(t)||!/<\s*\/\s*(?:think(?:ing)?|thought|antthinking)\s*>/i.test(e))return null;let n=/<\s*(\/?)\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi,r=!1,i=0,a=0,o=[],s=e=>{e&&o.push({type:`text`,text:e})},c=e=>{let t=e.trim();t&&o.push({type:`thinking`,thinking:t})};for(let t of e.matchAll(n)){let n=t.index??0,o=!!t[1]?.includes(`/`);if(!r&&!o){s(e.slice(i,n)),a=n+t[0].length,r=!0;continue}r&&o&&(c(e.slice(a,n)),i=n+t[0].length,r=!1)}return r||(s(e.slice(i)),!o.some(e=>e.type===`thinking`))?null:o}function lt(e){if(!Array.isArray(e.content)||e.content.some(e=>e&&typeof e==`object`&&e.type===`thinking`))return;let t=[],n=!1;for(let r of e.content){if(!r||typeof r!=`object`||!(`type`in r)){t.push(r);continue}if(r.type!==`text`){t.push(r);continue}let e=ct(r.text);if(!e){t.push(r);continue}n=!0;for(let n of e)if(n.type===`thinking`)t.push({type:`thinking`,thinking:n.thinking});else if(n.type===`text`){let e=n.text.trimStart();e&&t.push({type:`text`,text:e})}}n&&(e.content=t)}function ut(e){if(!e)return``;let t=/<\s*(\/?)\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi,n=``,r=0,i=!1;for(let a of e.matchAll(t)){let t=a.index??0;i&&(n+=e.slice(r,t)),i=a[1]!==`/`,r=t+a[0].length}return n.trim()}function dt(e){if(!e)return``;let t=ut(e);if(t)return t;let n=/<\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi,r=/<\s*\/\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi,i=[...e.matchAll(n)];if(i.length===0)return``;let a=[...e.matchAll(r)],o=i[i.length-1],s=a[a.length-1];if(s&&(s.index??-1)>(o.index??-1))return t;let c=(o.index??0)+o[0].length;return e.slice(c).trim()}function ft(e,t){return Y(J({name:e,args:t}))}function pt(e){let t=e.trim(),n=/^data:([^;,]+);base64,([a-z0-9+/=\r\n]+)$/i.exec(t);if(!n)throw Error(`Invalid data URL (expected base64 data: URL).`);let r=(n[1]??``).trim().toLowerCase();if(!r.startsWith(`image/`))throw Error(`Unsupported data URL type: ${r||`unknown`}`);let i=(n[2]??``).trim(),a=Buffer.from(i,`base64`);if(a.length===0)throw Error(`Invalid data URL: empty payload.`);return{buffer:a,mimeType:r,kind:`image`}}function mt(e){let t=e.message.stopReason,n=e.message.errorMessage?.trim();if(t===`error`||t===`aborted`)throw Error(n?`Image model failed (${e.provider}/${e.model}): ${n}`:`Image model failed (${e.provider}/${e.model})`);if(n)throw Error(`Image model failed (${e.provider}/${e.model}): ${n}`);let r=at(e.message);if(r.trim())return r.trim();throw Error(`Image model returned no text (${e.provider}/${e.model}).`)}function ht(t){let r=n(t?.agents?.defaults?.imageModel),i=e(t?.agents?.defaults?.imageModel);return{...r?.trim()?{primary:r.trim()}:{},...i.length>0?{fallbacks:i}:{}}}function gt(e){let t=e.cfg?.models?.providers?.[e.provider]?.models??[],n=(((e.provider===`minimax`?t.find(e=>(e?.id??``).trim()===`MiniMax-VL-01`&&Array.isArray(e?.input)&&e.input.includes(`image`)):null)??t.find(e=>!!(e?.id??``).trim()&&e.input?.includes(`image`)))?.id??``).trim();return n?`${e.provider}/${n}`:null}let $=null;function _t(){return $??=import(`./pi-model-discovery-runtime-BNW7Ei9o.js`),$}async function vt(e){await b(e.cfg,e.agentDir);let{discoverAuthStorage:t,discoverModels:n}=await _t(),r=t(e.agentDir),i=n(r,e.agentDir),a=te(e.provider,e.model),o=i.find(a.provider,a.model);if(!o)throw Error(`Unknown model: ${a.provider}/${a.model}`);if(!o.input?.includes(`image`))throw Error(`Model does not support images: ${e.provider}/${e.model}`);let s=re(await ne({model:o,cfg:e.cfg,agentDir:e.agentDir,profileId:e.profile,preferredProfile:e.preferredProfile}),o.provider);r.setRuntimeApiKey(o.provider,s);let c=e.buffer.toString(`base64`);return S(o.provider,o.id)?{text:await C({apiKey:s,prompt:e.prompt??`Describe the image.`,imageDataUrl:`data:${e.mime??`image/jpeg`};base64,${c}`,modelBaseUrl:o.baseUrl}),model:o.id}:{text:mt({message:await oe(o,{messages:[{role:`user`,content:[{type:`text`,text:e.prompt??`Describe the image.`},{type:`image`,data:c,mimeType:e.mime??`image/jpeg`}],timestamp:Date.now()}]},{apiKey:s,maxTokens:e.maxTokens??512}),provider:o.provider,model:o.id}),model:o.id}}export{w as C,b as D,C as E,E as S,x as T,it as _,gt as a,k as b,dt as c,ft as d,nt as f,Q as g,X as h,pt as i,ut as l,rt as m,mt as n,at as o,lt as p,ht as r,ot as s,vt as t,st as u,tt as v,S as w,T as x,J as y};
13
- //# sourceMappingURL=image-CcsuUB1B.js.map
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import"./paths-B4IRk3wi.js";import{A as e,B as t,J as n,K as r,R as i,W as a,Y as o,d as s,k as c,p as l,q as u,r as d,w as f}from"./subsystem-C5XF2Fy5.js";import{T as p,l as ee,m as te,n as ne}from"./utils-UGOV_184.js";import{Dr as m,Er as h,Hn as re,Io as ie,Kn as ae,Lo as oe,Ml as se,aa as ce,ia as le,oa as ue,qs as g,ra as de,zl as fe}from"./model-selection-BLbnMb5E.js";import{Ft as pe,gt as _,t as me}from"./reply-DwfVhea1.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import{n as he,r as v}from"./command-format-BbDT1tlm.js";import"./boolean-Ch3DfXPy.js";import{r as y,t as b}from"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import{n as x,t as S}from"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import{i as C}from"./errors-Bunti32V.js";import"./send-C7rOdjPO.js";import"./send-BwblpWbK.js";import{c as w}from"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import{S as T,l as E}from"./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"./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{t as D}from"./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{r as O,t as k}from"./channel-web-CCSMlUux.js";import"./outbound-BevYwvMh.js";import"./session-BSRnpwSq.js";import"./login-DSZdCiDx.js";import{t as A}from"./is-main-DG5ueqhF.js";import{t as j}from"./path-env-BPd1Yd-i.js";import{t as M}from"./runtime-guard-DFYBaYZS.js";import"./ports-hkqQXSus.js";import{i as N,n as P,o as F,s as I}from"./program-context-BXNpM3b4.js";import"./plugin-registry-CN2aCPP7.js";import{n as L}from"./channel-options-CCqtIYCc.js";import R from"node:process";import{fileURLToPath as ge}from"node:url";import{Command as _e,InvalidArgumentError as ve}from"commander";function ye(){let e,t=()=>(e===void 0&&(e=L()),e);return{programVersion:se,get channelOptions(){return t()},get messageChannelOptions(){return t().join(`|`)},get agentChannelOptions(){return[`last`,...t()].join(`|`)}}}const z=`All your chats, one OpenClaw.`,B={newYear:`New Year's Day: New year, new config—same old EADDRINUSE, but this time we resolve it like grown-ups.`,lunarNewYear:`Lunar New Year: May your builds be lucky, your branches prosperous, and your merge conflicts chased away with fireworks.`,christmas:`Christmas: Ho ho ho—Santa's little claw-sistant is here to ship joy, roll back chaos, and stash the keys safely.`,eid:`Eid al-Fitr: Celebration mode: queues cleared, tasks completed, and good vibes committed to main with clean history.`,diwali:`Diwali: Let the logs sparkle and the bugs flee—today we light up the terminal and ship with pride.`,easter:`Easter: I found your missing environment variable—consider it a tiny CLI egg hunt with fewer jellybeans.`,hanukkah:`Hanukkah: Eight nights, eight retries, zero shame—may your gateway stay lit and your deployments stay peaceful.`,halloween:`Halloween: Spooky season: beware haunted dependencies, cursed caches, and the ghost of node_modules past.`,thanksgiving:`Thanksgiving: Grateful for stable ports, working DNS, and a bot that reads the logs so nobody has to.`,valentines:`Valentine's Day: Roses are typed, violets are piped—I'll automate the chores so you can spend time with humans.`},V=[`Your terminal just grew claws—type something and let the bot pinch the busywork.`,`Welcome to the command line: where dreams compile and confidence segfaults.`,`I run on caffeine, JSON5, and the audacity of "it worked on my machine."`,`Gateway online—please keep hands, feet, and appendages inside the shell at all times.`,`I speak fluent bash, mild sarcasm, and aggressive tab-completion energy.`,`One CLI to rule them all, and one more restart because you changed the port.`,`If it works, it's automation; if it breaks, it's a "learning opportunity."`,`Pairing codes exist because even bots believe in consent—and good security hygiene.`,`Your .env is showing; don't worry, I'll pretend I didn't see it.`,`I'll do the boring stuff while you dramatically stare at the logs like it's cinema.`,`I'm not saying your workflow is chaotic... I'm just bringing a linter and a helmet.`,`Type the command with confidence—nature will provide the stack trace if needed.`,`I don't judge, but your missing API keys are absolutely judging you.`,`I can grep it, git blame it, and gently roast it—pick your coping mechanism.`,`Hot reload for config, cold sweat for deploys.`,`I'm the assistant your terminal demanded, not the one your sleep schedule requested.`,`I keep secrets like a vault... unless you print them in debug logs again.`,`Automation with claws: minimal fuss, maximal pinch.`,`I'm basically a Swiss Army knife, but with more opinions and fewer sharp edges.`,`If you're lost, run doctor; if you're brave, run prod; if you're wise, run tests.`,`Your task has been queued; your dignity has been deprecated.`,`I can't fix your code taste, but I can fix your build and your backlog.`,`I'm not magic—I'm just extremely persistent with retries and coping strategies.`,`It's not "failing," it's "discovering new ways to configure the same thing wrong."`,`Give me a workspace and I'll give you fewer tabs, fewer toggles, and more oxygen.`,`I read logs so you can keep pretending you don't have to.`,`If something's on fire, I can't extinguish it—but I can write a beautiful postmortem.`,`I'll refactor your busywork like it owes me money.`,`Say "stop" and I'll stop—say "ship" and we'll both learn a lesson.`,`I'm the reason your shell history looks like a hacker-movie montage.`,`I'm like tmux: confusing at first, then suddenly you can't live without me.`,`I can run local, remote, or purely on vibes—results may vary with DNS.`,`If you can describe it, I can probably automate it—or at least make it funnier.`,`Your config is valid, your assumptions are not.`,`I don't just autocomplete—I auto-commit (emotionally), then ask you to review (logically).`,`Less clicking, more shipping, fewer "where did that file go" moments.`,`Claws out, commit in—let's ship something mildly responsible.`,`I'll butter your workflow like a lobster roll: messy, delicious, effective.`,`Shell yeah—I'm here to pinch the toil and leave you the glory.`,`If it's repetitive, I'll automate it; if it's hard, I'll bring jokes and a rollback plan.`,`The only crab in your contacts you actually want to hear from. 🦞`,`WhatsApp automation without the "please accept our new privacy policy".`,`iMessage green bubble energy, but for everyone.`,`No $999 stand required.`,`We ship features faster than Apple ships calculator updates.`,`Your AI assistant, now without the $3,499 headset.`,`Ah, the fruit tree company! 🍎`,`Greetings, Professor Falken`,`I don't sleep, I just enter low-power mode and dream of clean diffs.`,`Your personal assistant, minus the passive-aggressive calendar reminders.`,`Built by lobsters, for humans. Don't question the hierarchy.`,`I've seen your commit messages. We'll work on that together.`,`More integrations than your therapist's intake form.`,`Running on your hardware, reading your logs, judging nothing (mostly).`,`The only open-source project where the mascot could eat the competition.`,`Self-hosted, self-updating, self-aware (just kidding... unless?).`,`I autocomplete your thoughts—just slower and with more API calls.`,`Somewhere between 'hello world' and 'oh god what have I built.'`,`Your .zshrc wishes it could do what I do.`,`I've read more man pages than any human should—so you don't have to.`,`Powered by open source, sustained by spite and good documentation.`,`I'm the middleware between your ambition and your attention span.`,`Finally, a use for that always-on Mac Mini under your desk.`,`Like having a senior engineer on call, except I don't bill hourly or sigh audibly.`,`Making 'I'll automate that later' happen now.`,`Your second brain, except this one actually remembers where you left things.`,`Half butler, half debugger, full crustacean.`,`I don't have opinions about tabs vs spaces. I have opinions about everything else.`,`Open source means you can see exactly how I judge your config.`,`I've survived more breaking changes than your last three relationships.`,`Runs on a Raspberry Pi. Dreams of a rack in Iceland.`,`The lobster in your shell. 🦞`,`Alexa, but with taste.`,`I'm not AI-powered, I'm AI-possessed. Big difference.`,`Deployed locally, trusted globally, debugged eternally.`,`You had me at 'openclaw gateway start.'`,B.newYear,B.lunarNewYear,B.christmas,B.eid,B.diwali,B.easter,B.hanukkah,B.halloween,B.thanksgiving,B.valentines],H=1440*60*1e3;function U(e){return{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:e.getUTCDate()}}const W=(e,t)=>n=>{let r=U(n);return r.month===e&&r.day===t},G=(e,t=1)=>n=>{let r=U(n);return e.some(([e,n,i])=>{if(r.year!==e)return!1;let a=Date.UTC(e,n,i),o=Date.UTC(r.year,r.month,r.day);return o>=a&&o<a+t*H})},be=new Map([[B.newYear,W(0,1)],[B.lunarNewYear,G([[2025,0,29],[2026,1,17],[2027,1,6]],1)],[B.eid,G([[2025,2,30],[2025,2,31],[2026,2,20],[2027,2,10]],1)],[B.diwali,G([[2025,9,20],[2026,10,8],[2027,9,28]],1)],[B.easter,G([[2025,3,20],[2026,3,5],[2027,2,28]],1)],[B.hanukkah,(e=>t=>{let n=U(t),r=e.find(e=>e.year===n.year);if(!r)return!1;let i=Date.UTC(r.year,r.month,r.day),a=Date.UTC(n.year,n.month,n.day);return a>=i&&a<i+r.duration*H})([{year:2025,month:11,day:15,duration:8},{year:2026,month:11,day:5,duration:8},{year:2027,month:11,day:25,duration:8}])],[B.halloween,W(9,31)],[B.thanksgiving,e=>{let t=U(e);if(t.month!==10)return!1;let n=1+(4-new Date(Date.UTC(t.year,10,1)).getUTCDay()+7)%7+21;return t.day===n}],[B.valentines,W(1,14)],[B.christmas,W(11,25)]]);function xe(e,t){let n=be.get(e);return n?n(t):!0}function Se(e={}){if(V.length===0)return[z];let t=e.now?e.now():new Date,n=V.filter(e=>xe(e,t));return n.length>0?n:V}function Ce(e={}){if(e.mode===`off`)return``;if(e.mode===`default`)return z;let t=(e.env??process.env)?.OPENCLAW_TAGLINE_INDEX;if(t!==void 0){let e=Number.parseInt(t,10);if(!Number.isNaN(e)&&e>=0){let t=V.length>0?V:[z];return t[e%t.length]}}let n=Se(e),r=e.random??Math.random;return n[Math.floor(r()*n.length)%n.length]}let K=!1;typeof Intl<`u`&&`Segmenter`in Intl&&new Intl.Segmenter(void 0,{granularity:`grapheme`});const we=e=>e.some(e=>e===`--json`||e.startsWith(`--json=`)),Te=e=>e.some(e=>e===`--version`||e===`-V`)||o(e);function q(e){if(e===`random`||e===`default`||e===`off`)return e}function Ee(e){let t=q(e.mode);if(t)return t;try{return q(g().cli?.banner?.taglineMode)}catch{return}}function J(t,n={}){let r=n.commit??_({env:n.env,moduleUrl:import.meta.url})??`unknown`,i=Ce({...n,mode:Ee(n)}),a=n.richTty??c(),o=`🦞 OpenClaw`,l=n.columns??process.stdout.columns??120,u=`${o} ${t} (${r})`,d=i?`${u} — ${i}`:u,f=s(d)<=l;if(a){if(f)return i?`${e.heading(o)} ${e.info(t)} ${e.muted(`(${r})`)} ${e.muted(`—`)} ${e.accentDim(i)}`:`${e.heading(o)} ${e.info(t)} ${e.muted(`(${r})`)}`;let n=`${e.heading(o)} ${e.info(t)} ${e.muted(`(${r})`)}`;return i?`${n}\n${`${` `.repeat(3)}${e.accentDim(i)}`}`:n}if(f)return d;let p=u;return i?`${p}\n${`${` `.repeat(3)}${i}`}`:p}function De(e,t={}){if(K)return;let n=t.argv??process.argv;if(!process.stdout.isTTY||we(n)||Te(n))return;let r=J(e,t);process.stdout.write(`\n${r}\n\n`),K=!0}function Oe(){return K}const Y=i.join(`|`);function ke(e){let n=t(e);if(!n)throw new ve(`Invalid --log-level (use ${Y})`);return n}const X=v(),Ae=ee(X),je=new Set([...N(),...I()]),Me=[[`openclaw models --help`,`Show detailed help for the models command.`],[`openclaw channels login --verbose`,`Link personal WhatsApp Web and show QR + connection logs.`],[`openclaw message send --target +15555550123 --message "Hi" --json`,`Send via your web session and print JSON result.`],[`openclaw gateway --port 18789`,`Run the WebSocket Gateway locally.`],[`openclaw --dev gateway`,`Run a dev Gateway (isolated state/config) on ws://127.0.0.1:19001.`],[`openclaw gateway --force`,`Kill anything bound to the default gateway port, then start it.`],[`openclaw gateway ...`,`Gateway control via WebSocket.`],[`openclaw agent --to +15555550123 --message "Run summary" --deliver`,`Talk directly to the agent using the Gateway; optionally send the WhatsApp reply.`],[`openclaw message send --channel telegram --target @mychat --message "Hi"`,`Send via your Telegram bot.`]];function Ne(t,n){t.name(X).description(``).version(n.programVersion).option(`--dev`,`Dev profile: isolate state under ~/.qbotclaw-dev, default gateway port 19001, and shift derived ports (browser/canvas)`).option(`--profile <name>`,`Use a named profile (isolates OPENCLAW_STATE_DIR/OPENCLAW_CONFIG_PATH under ~/.qbotclaw-<name>)`).option(`--log-level <level>`,`Global log level override for file + console (${Y})`,ke),t.option(`--no-color`,`Disable ANSI colors`,!1),t.helpOption(`-h, --help`,`Display help for command`),t.helpCommand(`help [command]`,`Display help for command`),t.configureHelp({sortSubcommands:!0,sortOptions:!0,optionTerm:t=>e.option(t.flags),subcommandTerm:n=>{let r=n.parent===t&&je.has(n.name());return e.command(r?`${n.name()} *`:n.name())}});let r=t=>{let n=t;return RegExp(`^Usage:\\s+${Ae}\\s+\\[options\\]\\s+\\[command\\]\\s*$`,`m`).test(n)&&/^Commands:/m.test(n)&&(n=n.replace(/^Commands:/m,`Commands:\n ${e.muted(`Hint: commands suffixed with * have subcommands. Run <command> --help for details.`)}`)),n.replace(/^Usage:/gm,e.heading(`Usage:`)).replace(/^Options:/gm,e.heading(`Options:`)).replace(/^Commands:/gm,e.heading(`Commands:`))};if(t.configureOutput({writeOut:e=>{process.stdout.write(r(e))},writeErr:e=>{process.stderr.write(r(e))},outputError:(t,n)=>n(e.error(t))}),u(process.argv,`-V`)||u(process.argv,`--version`)||o(process.argv)){let e=_({moduleUrl:import.meta.url});console.log(e?`OpenClaw ${n.programVersion} (${e})`:`OpenClaw ${n.programVersion}`),process.exit(0)}t.addHelpText(`beforeAll`,()=>{if(Oe())return``;let e=c();return`\n${J(n.programVersion,{richTty:e})}\n`});let i=Me.map(([t,n])=>` ${e.command(he(t,X))}\n ${e.muted(n)}`).join(`
2
+ import"./paths-B4IRk3wi.js";import{A as e,B as t,J as n,K as r,R as i,W as a,Y as o,d as s,k as c,p as l,q as u,r as d,w as f}from"./subsystem-C5XF2Fy5.js";import{T as p,l as ee,m as te,n as ne}from"./utils-UGOV_184.js";import{Dr as m,Er as h,Hn as re,Io as ie,Kn as ae,Lo as oe,Ml as se,aa as ce,ia as le,oa as ue,qs as g,ra as de,zl as fe}from"./model-selection-BLbnMb5E.js";import{Ft as pe,gt as _,t as me}from"./reply-DwfVhea1.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import{n as he,r as v}from"./command-format-BbDT1tlm.js";import"./boolean-Ch3DfXPy.js";import{r as y,t as b}from"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import{n as x,t as S}from"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import{i as C}from"./errors-Bunti32V.js";import"./send-C7rOdjPO.js";import"./send-BwblpWbK.js";import{c as w}from"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import{S as T,l as E}from"./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"./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{t as D}from"./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{r as O,t as k}from"./channel-web-CCSMlUux.js";import"./outbound-BevYwvMh.js";import"./session-BSRnpwSq.js";import"./login-DSZdCiDx.js";import{t as A}from"./is-main-DG5ueqhF.js";import{t as j}from"./path-env-BPd1Yd-i.js";import{t as M}from"./runtime-guard-DFYBaYZS.js";import"./ports-DDWP1p0X.js";import{i as N,n as P,o as F,s as I}from"./program-context-n-ovYq69.js";import"./plugin-registry-CN2aCPP7.js";import{n as L}from"./channel-options-CCqtIYCc.js";import R from"node:process";import{fileURLToPath as ge}from"node:url";import{Command as _e,InvalidArgumentError as ve}from"commander";function ye(){let e,t=()=>(e===void 0&&(e=L()),e);return{programVersion:se,get channelOptions(){return t()},get messageChannelOptions(){return t().join(`|`)},get agentChannelOptions(){return[`last`,...t()].join(`|`)}}}const z=`All your chats, one OpenClaw.`,B={newYear:`New Year's Day: New year, new config—same old EADDRINUSE, but this time we resolve it like grown-ups.`,lunarNewYear:`Lunar New Year: May your builds be lucky, your branches prosperous, and your merge conflicts chased away with fireworks.`,christmas:`Christmas: Ho ho ho—Santa's little claw-sistant is here to ship joy, roll back chaos, and stash the keys safely.`,eid:`Eid al-Fitr: Celebration mode: queues cleared, tasks completed, and good vibes committed to main with clean history.`,diwali:`Diwali: Let the logs sparkle and the bugs flee—today we light up the terminal and ship with pride.`,easter:`Easter: I found your missing environment variable—consider it a tiny CLI egg hunt with fewer jellybeans.`,hanukkah:`Hanukkah: Eight nights, eight retries, zero shame—may your gateway stay lit and your deployments stay peaceful.`,halloween:`Halloween: Spooky season: beware haunted dependencies, cursed caches, and the ghost of node_modules past.`,thanksgiving:`Thanksgiving: Grateful for stable ports, working DNS, and a bot that reads the logs so nobody has to.`,valentines:`Valentine's Day: Roses are typed, violets are piped—I'll automate the chores so you can spend time with humans.`},V=[`Your terminal just grew claws—type something and let the bot pinch the busywork.`,`Welcome to the command line: where dreams compile and confidence segfaults.`,`I run on caffeine, JSON5, and the audacity of "it worked on my machine."`,`Gateway online—please keep hands, feet, and appendages inside the shell at all times.`,`I speak fluent bash, mild sarcasm, and aggressive tab-completion energy.`,`One CLI to rule them all, and one more restart because you changed the port.`,`If it works, it's automation; if it breaks, it's a "learning opportunity."`,`Pairing codes exist because even bots believe in consent—and good security hygiene.`,`Your .env is showing; don't worry, I'll pretend I didn't see it.`,`I'll do the boring stuff while you dramatically stare at the logs like it's cinema.`,`I'm not saying your workflow is chaotic... I'm just bringing a linter and a helmet.`,`Type the command with confidence—nature will provide the stack trace if needed.`,`I don't judge, but your missing API keys are absolutely judging you.`,`I can grep it, git blame it, and gently roast it—pick your coping mechanism.`,`Hot reload for config, cold sweat for deploys.`,`I'm the assistant your terminal demanded, not the one your sleep schedule requested.`,`I keep secrets like a vault... unless you print them in debug logs again.`,`Automation with claws: minimal fuss, maximal pinch.`,`I'm basically a Swiss Army knife, but with more opinions and fewer sharp edges.`,`If you're lost, run doctor; if you're brave, run prod; if you're wise, run tests.`,`Your task has been queued; your dignity has been deprecated.`,`I can't fix your code taste, but I can fix your build and your backlog.`,`I'm not magic—I'm just extremely persistent with retries and coping strategies.`,`It's not "failing," it's "discovering new ways to configure the same thing wrong."`,`Give me a workspace and I'll give you fewer tabs, fewer toggles, and more oxygen.`,`I read logs so you can keep pretending you don't have to.`,`If something's on fire, I can't extinguish it—but I can write a beautiful postmortem.`,`I'll refactor your busywork like it owes me money.`,`Say "stop" and I'll stop—say "ship" and we'll both learn a lesson.`,`I'm the reason your shell history looks like a hacker-movie montage.`,`I'm like tmux: confusing at first, then suddenly you can't live without me.`,`I can run local, remote, or purely on vibes—results may vary with DNS.`,`If you can describe it, I can probably automate it—or at least make it funnier.`,`Your config is valid, your assumptions are not.`,`I don't just autocomplete—I auto-commit (emotionally), then ask you to review (logically).`,`Less clicking, more shipping, fewer "where did that file go" moments.`,`Claws out, commit in—let's ship something mildly responsible.`,`I'll butter your workflow like a lobster roll: messy, delicious, effective.`,`Shell yeah—I'm here to pinch the toil and leave you the glory.`,`If it's repetitive, I'll automate it; if it's hard, I'll bring jokes and a rollback plan.`,`The only crab in your contacts you actually want to hear from. 🦞`,`WhatsApp automation without the "please accept our new privacy policy".`,`iMessage green bubble energy, but for everyone.`,`No $999 stand required.`,`We ship features faster than Apple ships calculator updates.`,`Your AI assistant, now without the $3,499 headset.`,`Ah, the fruit tree company! 🍎`,`Greetings, Professor Falken`,`I don't sleep, I just enter low-power mode and dream of clean diffs.`,`Your personal assistant, minus the passive-aggressive calendar reminders.`,`Built by lobsters, for humans. Don't question the hierarchy.`,`I've seen your commit messages. We'll work on that together.`,`More integrations than your therapist's intake form.`,`Running on your hardware, reading your logs, judging nothing (mostly).`,`The only open-source project where the mascot could eat the competition.`,`Self-hosted, self-updating, self-aware (just kidding... unless?).`,`I autocomplete your thoughts—just slower and with more API calls.`,`Somewhere between 'hello world' and 'oh god what have I built.'`,`Your .zshrc wishes it could do what I do.`,`I've read more man pages than any human should—so you don't have to.`,`Powered by open source, sustained by spite and good documentation.`,`I'm the middleware between your ambition and your attention span.`,`Finally, a use for that always-on Mac Mini under your desk.`,`Like having a senior engineer on call, except I don't bill hourly or sigh audibly.`,`Making 'I'll automate that later' happen now.`,`Your second brain, except this one actually remembers where you left things.`,`Half butler, half debugger, full crustacean.`,`I don't have opinions about tabs vs spaces. I have opinions about everything else.`,`Open source means you can see exactly how I judge your config.`,`I've survived more breaking changes than your last three relationships.`,`Runs on a Raspberry Pi. Dreams of a rack in Iceland.`,`The lobster in your shell. 🦞`,`Alexa, but with taste.`,`I'm not AI-powered, I'm AI-possessed. Big difference.`,`Deployed locally, trusted globally, debugged eternally.`,`You had me at 'openclaw gateway start.'`,B.newYear,B.lunarNewYear,B.christmas,B.eid,B.diwali,B.easter,B.hanukkah,B.halloween,B.thanksgiving,B.valentines],H=1440*60*1e3;function U(e){return{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:e.getUTCDate()}}const W=(e,t)=>n=>{let r=U(n);return r.month===e&&r.day===t},G=(e,t=1)=>n=>{let r=U(n);return e.some(([e,n,i])=>{if(r.year!==e)return!1;let a=Date.UTC(e,n,i),o=Date.UTC(r.year,r.month,r.day);return o>=a&&o<a+t*H})},be=new Map([[B.newYear,W(0,1)],[B.lunarNewYear,G([[2025,0,29],[2026,1,17],[2027,1,6]],1)],[B.eid,G([[2025,2,30],[2025,2,31],[2026,2,20],[2027,2,10]],1)],[B.diwali,G([[2025,9,20],[2026,10,8],[2027,9,28]],1)],[B.easter,G([[2025,3,20],[2026,3,5],[2027,2,28]],1)],[B.hanukkah,(e=>t=>{let n=U(t),r=e.find(e=>e.year===n.year);if(!r)return!1;let i=Date.UTC(r.year,r.month,r.day),a=Date.UTC(n.year,n.month,n.day);return a>=i&&a<i+r.duration*H})([{year:2025,month:11,day:15,duration:8},{year:2026,month:11,day:5,duration:8},{year:2027,month:11,day:25,duration:8}])],[B.halloween,W(9,31)],[B.thanksgiving,e=>{let t=U(e);if(t.month!==10)return!1;let n=1+(4-new Date(Date.UTC(t.year,10,1)).getUTCDay()+7)%7+21;return t.day===n}],[B.valentines,W(1,14)],[B.christmas,W(11,25)]]);function xe(e,t){let n=be.get(e);return n?n(t):!0}function Se(e={}){if(V.length===0)return[z];let t=e.now?e.now():new Date,n=V.filter(e=>xe(e,t));return n.length>0?n:V}function Ce(e={}){if(e.mode===`off`)return``;if(e.mode===`default`)return z;let t=(e.env??process.env)?.OPENCLAW_TAGLINE_INDEX;if(t!==void 0){let e=Number.parseInt(t,10);if(!Number.isNaN(e)&&e>=0){let t=V.length>0?V:[z];return t[e%t.length]}}let n=Se(e),r=e.random??Math.random;return n[Math.floor(r()*n.length)%n.length]}let K=!1;typeof Intl<`u`&&`Segmenter`in Intl&&new Intl.Segmenter(void 0,{granularity:`grapheme`});const we=e=>e.some(e=>e===`--json`||e.startsWith(`--json=`)),Te=e=>e.some(e=>e===`--version`||e===`-V`)||o(e);function q(e){if(e===`random`||e===`default`||e===`off`)return e}function Ee(e){let t=q(e.mode);if(t)return t;try{return q(g().cli?.banner?.taglineMode)}catch{return}}function J(t,n={}){let r=n.commit??_({env:n.env,moduleUrl:import.meta.url})??`unknown`,i=Ce({...n,mode:Ee(n)}),a=n.richTty??c(),o=`🦞 OpenClaw`,l=n.columns??process.stdout.columns??120,u=`${o} ${t} (${r})`,d=i?`${u} — ${i}`:u,f=s(d)<=l;if(a){if(f)return i?`${e.heading(o)} ${e.info(t)} ${e.muted(`(${r})`)} ${e.muted(`—`)} ${e.accentDim(i)}`:`${e.heading(o)} ${e.info(t)} ${e.muted(`(${r})`)}`;let n=`${e.heading(o)} ${e.info(t)} ${e.muted(`(${r})`)}`;return i?`${n}\n${`${` `.repeat(3)}${e.accentDim(i)}`}`:n}if(f)return d;let p=u;return i?`${p}\n${`${` `.repeat(3)}${i}`}`:p}function De(e,t={}){if(K)return;let n=t.argv??process.argv;if(!process.stdout.isTTY||we(n)||Te(n))return;let r=J(e,t);process.stdout.write(`\n${r}\n\n`),K=!0}function Oe(){return K}const Y=i.join(`|`);function ke(e){let n=t(e);if(!n)throw new ve(`Invalid --log-level (use ${Y})`);return n}const X=v(),Ae=ee(X),je=new Set([...N(),...I()]),Me=[[`openclaw models --help`,`Show detailed help for the models command.`],[`openclaw channels login --verbose`,`Link personal WhatsApp Web and show QR + connection logs.`],[`openclaw message send --target +15555550123 --message "Hi" --json`,`Send via your web session and print JSON result.`],[`openclaw gateway --port 18789`,`Run the WebSocket Gateway locally.`],[`openclaw --dev gateway`,`Run a dev Gateway (isolated state/config) on ws://127.0.0.1:19001.`],[`openclaw gateway --force`,`Kill anything bound to the default gateway port, then start it.`],[`openclaw gateway ...`,`Gateway control via WebSocket.`],[`openclaw agent --to +15555550123 --message "Run summary" --deliver`,`Talk directly to the agent using the Gateway; optionally send the WhatsApp reply.`],[`openclaw message send --channel telegram --target @mychat --message "Hi"`,`Send via your Telegram bot.`]];function Ne(t,n){t.name(X).description(``).version(n.programVersion).option(`--dev`,`Dev profile: isolate state under ~/.qbotclaw-dev, default gateway port 19001, and shift derived ports (browser/canvas)`).option(`--profile <name>`,`Use a named profile (isolates OPENCLAW_STATE_DIR/OPENCLAW_CONFIG_PATH under ~/.qbotclaw-<name>)`).option(`--log-level <level>`,`Global log level override for file + console (${Y})`,ke),t.option(`--no-color`,`Disable ANSI colors`,!1),t.helpOption(`-h, --help`,`Display help for command`),t.helpCommand(`help [command]`,`Display help for command`),t.configureHelp({sortSubcommands:!0,sortOptions:!0,optionTerm:t=>e.option(t.flags),subcommandTerm:n=>{let r=n.parent===t&&je.has(n.name());return e.command(r?`${n.name()} *`:n.name())}});let r=t=>{let n=t;return RegExp(`^Usage:\\s+${Ae}\\s+\\[options\\]\\s+\\[command\\]\\s*$`,`m`).test(n)&&/^Commands:/m.test(n)&&(n=n.replace(/^Commands:/m,`Commands:\n ${e.muted(`Hint: commands suffixed with * have subcommands. Run <command> --help for details.`)}`)),n.replace(/^Usage:/gm,e.heading(`Usage:`)).replace(/^Options:/gm,e.heading(`Options:`)).replace(/^Commands:/gm,e.heading(`Commands:`))};if(t.configureOutput({writeOut:e=>{process.stdout.write(r(e))},writeErr:e=>{process.stderr.write(r(e))},outputError:(t,n)=>n(e.error(t))}),u(process.argv,`-V`)||u(process.argv,`--version`)||o(process.argv)){let e=_({moduleUrl:import.meta.url});console.log(e?`OpenClaw ${n.programVersion} (${e})`:`OpenClaw ${n.programVersion}`),process.exit(0)}t.addHelpText(`beforeAll`,()=>{if(Oe())return``;let e=c();return`\n${J(n.programVersion,{richTty:e})}\n`});let i=Me.map(([t,n])=>` ${e.command(he(t,X))}\n ${e.muted(n)}`).join(`
3
3
  `);t.addHelpText(`afterAll`,({command:n})=>{if(n!==t)return``;let r=D(`/cli`,`docs.openclaw.ai/cli`);return`\n${e.heading(`Examples:`)}\n${i}\n\n${e.muted(`Docs:`)} ${r}\n`})}function Pe(e){let t=e;for(;t.parent&&t.parent.parent;)t=t.parent;let n=t.name(),r=v();!n||n===r||(process.title=`${r}-${n}`)}const Fe=new Set([`message`,`channels`,`directory`,`agents`,`configure`,`onboard`,`status`,`health`]),Ie=new Set([`backup`,`doctor`,`completion`,`secrets`]),Z=new Set([`config set`]);let Q,$;function Le(e){let[t,n]=e;return t?!!(Ie.has(t)||t===`config`&&n===`validate`):!1}function Re(){return Q??=import(`./config-guard-0_afzaJz.js`),Q}function ze(){return $??=import(`./plugin-registry-CN2aCPP7.js`).then(e=>e.n),$}function Be(e){let t=e;for(;t.parent;)t=t.parent;return t}function Ve(e){let t=Be(e);if(typeof t.getOptionValueSource!=`function`||t.getOptionValueSource(`logLevel`)!==`cli`)return;let n=t.opts().logLevel;return typeof n==`string`?n:void 0}function He(e,t){if(!u(t,`--json`))return!1;let n=`${e[0]??``} ${e[1]??``}`.trim();return!Z.has(n)}function Ue(e,t){e.hook(`preAction`,async(e,i)=>{Pe(i);let o=process.argv;if(n(o))return;let s=a(o,2);b(process.env.OPENCLAW_HIDE_BANNER)||s[0]===`update`||s[0]===`completion`||s[0]===`plugins`&&s[1]===`update`||De(t);let c=r(o,{includeDebug:!0});f(c);let u=Ve(i);if(u&&(process.env.OPENCLAW_LOG_LEVEL=u),c||(process.env.NODE_NO_WARNINGS??=`1`),Le(s))return;let d=He(s,o),{ensureConfigReady:p}=await Re();if(await p({runtime:l,commandPath:s,...d?{suppressDoctorStdout:!0}:{}}),Fe.has(s[0])){let{ensurePluginRegistryLoaded:e}=await ze();e()}})}function We(){let e=new _e,t=ye(),n=process.argv;return P(e,t),Ne(e,t),Ue(e,t.programVersion),F(e,t,n),e}fe({quiet:!0}),y(),j(),d(),M();const Ge=We();A({currentFile:ge(import.meta.url)})&&(E(),R.on(`uncaughtException`,e=>{console.error(`[openclaw] Uncaught exception:`,C(e)),R.exit(1)}),Ge.parseAsync(R.argv).catch(e=>{console.error(`[openclaw] CLI failed:`,C(e)),R.exit(1)}));export{de as PortInUseError,T as applyTemplate,ne as assertWebChannel,pe as createDefaultDeps,h as deriveSessionKey,le as describePortOwner,ie as ensureBinary,ce as ensurePortAvailable,me as getReplyFromConfig,ue as handlePortError,g as loadConfig,re as loadSessionStore,k as monitorWebChannel,te as normalizeE164,oe as promptYesNo,m as resolveSessionKey,w as resolveStorePath,S as runCommandWithTimeout,x as runExec,ae as saveSessionStore,p as toWhatsappJid,O as waitForever};
4
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  import{i as e,m as t,p as n,u as r}from"./arg-split-DE5RqDHq.js";import{r as i}from"./service-BtB9epJk.js";import a from"node:path";import o from"node:fs/promises";const s=[`openclaw`,`clawdbot`,`moltbot`];function c(e=process.env){let i=e.OPENCLAW_PROFILE;switch(process.platform){case`darwin`:{let e=r(i);return[`launchctl bootout gui/$UID/${e}`,`rm ~/Library/LaunchAgents/${e}.plist`]}case`linux`:{let e=n(i);return[`systemctl --user disable --now ${e}.service`,`rm ~/.config/systemd/user/${e}.service`]}case`win32`:return[`schtasks /Delete /TN "${t(i)}" /F`];default:return[]}}function l(e){let t=e.HOME?.trim()||e.USERPROFILE?.trim();if(!t)throw Error(`Missing HOME`);return t}function u(e){let t=e.toLowerCase();for(let e of s)if(t.includes(e))return e;return null}function d(t){let n=t.toLowerCase(),r=[`openclaw_service_marker`],i=[`openclaw_service_kind`],a=[e.toLowerCase()],o=r.some(e=>n.includes(e)),s=i.some(e=>n.includes(e)),c=a.some(e=>n.includes(e));return o&&s&&c&&n.includes(`gateway`)}function f(e,t){return d(t)?!0:t.toLowerCase().includes(`gateway`)?e.startsWith(`ai.openclaw.`):!1}function p(e,t){return d(t)?!0:e.startsWith(`openclaw-gateway`)?t.toLowerCase().includes(`gateway`):!1}function m(e){let n=e.trim().toLowerCase();return n?n===t().toLowerCase()||n.startsWith(`openclaw gateway`):!1}function h(e){let t=e.match(/<key>Label<\/key>\s*<string>([\s\S]*?)<\/string>/i);return t&&t[1]?.trim()||null}function g(e){return e===r()}function _(e){return e===n()}function v(e){let t=e.toLowerCase();return t.includes(`clawdbot`)||t.includes(`moltbot`)}async function y(e){try{return await o.readdir(e)}catch{return[]}}async function b(e){try{return await o.readFile(e,`utf8`)}catch{return null}}async function x(e){let t=[],n=await y(e.dir);for(let r of n){if(!r.endsWith(e.extension))continue;let n=r.slice(0,-e.extension.length);if(e.isIgnoredName(n))continue;let i=a.join(e.dir,r),o=await b(i);o!==null&&t.push({entry:r,name:n,fullPath:i,contents:o})}return t}async function S(e){let t=[],n=await x({dir:e.dir,extension:`.plist`,isIgnoredName:g});for(let{name:r,fullPath:i,contents:a}of n){let n=u(a),o=h(a)??r;if(!n){if(!(v(r)||v(o)))continue;t.push({platform:`darwin`,label:o,detail:`plist: ${i}`,scope:e.scope,marker:v(o)?`clawdbot`:`moltbot`,legacy:!0});continue}g(o)||n===`openclaw`&&f(o,a)||t.push({platform:`darwin`,label:o,detail:`plist: ${i}`,scope:e.scope,marker:n,legacy:n!==`openclaw`||v(o)})}return t}async function C(e){let t=[],n=await x({dir:e.dir,extension:`.service`,isIgnoredName:_});for(let{entry:r,name:i,fullPath:a,contents:o}of n){let n=u(o);n&&(n===`openclaw`&&p(i,o)||t.push({platform:`linux`,label:r,detail:`unit: ${a}`,scope:e.scope,marker:n,legacy:n!==`openclaw`}))}return t}function w(e){let t=[],n=null;for(let r of e.split(/\r?\n/)){let e=r.trim();if(!e){n&&=(t.push(n),null);continue}let i=e.indexOf(`:`);if(i<=0)continue;let a=e.slice(0,i).trim().toLowerCase(),o=e.slice(i+1).trim();if(o){if(a===`taskname`){n&&t.push(n),n={name:o};continue}n&&a===`task to run`&&(n.taskToRun=o)}}return n&&t.push(n),t}async function T(e,t={}){let n=[],r=new Set,o=e=>{let t=`${e.platform}:${e.label}:${e.detail}:${e.scope}`;r.has(t)||(r.add(t),n.push(e))};if(process.platform===`darwin`){try{let n=l(e),r=a.join(n,`Library`,`LaunchAgents`);for(let e of await S({dir:r,scope:`user`}))o(e);if(t.deep){for(let e of await S({dir:a.join(a.sep,`Library`,`LaunchAgents`),scope:`system`}))o(e);for(let e of await S({dir:a.join(a.sep,`Library`,`LaunchDaemons`),scope:`system`}))o(e)}}catch{return n}return n}if(process.platform===`linux`){try{let n=l(e),r=a.join(n,`.config`,`systemd`,`user`);for(let e of await C({dir:r,scope:`user`}))o(e);if(t.deep)for(let e of[`/etc/systemd/system`,`/usr/lib/systemd/system`,`/lib/systemd/system`])for(let t of await C({dir:e,scope:`system`}))o(t)}catch{return n}return n}if(process.platform===`win32`){if(!t.deep)return n;let e=await i([`/Query`,`/FO`,`LIST`,`/V`]);if(e.code!==0)return n;let r=w(e.stdout);for(let e of r){let t=e.name.trim();if(!t||m(t))continue;let n=t.toLowerCase(),r=e.taskToRun?.toLowerCase()??``,i=null;for(let e of s)if(n.includes(e)||r.includes(e)){i=e;break}i&&o({platform:`win32`,label:t,detail:e.taskToRun?`task: ${t}, run: ${e.taskToRun}`:t,scope:`system`,marker:i,legacy:i!==`openclaw`})}return n}return n}export{c as n,T as t};
2
- //# sourceMappingURL=inspect-BKV-I1UE.js.map
@@ -1,2 +1 @@
1
1
  import{i as e,m as t,p as n,u as r}from"./arg-split-BOqSMBuf.js";import{r as i}from"./service-DZ9EbS15.js";import a from"node:path";import o from"node:fs/promises";const s=[`openclaw`,`clawdbot`,`moltbot`];function c(e=process.env){let i=e.OPENCLAW_PROFILE;switch(process.platform){case`darwin`:{let e=r(i);return[`launchctl bootout gui/$UID/${e}`,`rm ~/Library/LaunchAgents/${e}.plist`]}case`linux`:{let e=n(i);return[`systemctl --user disable --now ${e}.service`,`rm ~/.config/systemd/user/${e}.service`]}case`win32`:return[`schtasks /Delete /TN "${t(i)}" /F`];default:return[]}}function l(e){let t=e.HOME?.trim()||e.USERPROFILE?.trim();if(!t)throw Error(`Missing HOME`);return t}function u(e){let t=e.toLowerCase();for(let e of s)if(t.includes(e))return e;return null}function d(t){let n=t.toLowerCase(),r=[`openclaw_service_marker`],i=[`openclaw_service_kind`],a=[e.toLowerCase()],o=r.some(e=>n.includes(e)),s=i.some(e=>n.includes(e)),c=a.some(e=>n.includes(e));return o&&s&&c&&n.includes(`gateway`)}function f(e,t){return d(t)?!0:t.toLowerCase().includes(`gateway`)?e.startsWith(`ai.openclaw.`):!1}function p(e,t){return d(t)?!0:e.startsWith(`openclaw-gateway`)?t.toLowerCase().includes(`gateway`):!1}function m(e){let n=e.trim().toLowerCase();return n?n===t().toLowerCase()||n.startsWith(`openclaw gateway`):!1}function h(e){let t=e.match(/<key>Label<\/key>\s*<string>([\s\S]*?)<\/string>/i);return t&&t[1]?.trim()||null}function g(e){return e===r()}function _(e){return e===n()}function v(e){let t=e.toLowerCase();return t.includes(`clawdbot`)||t.includes(`moltbot`)}async function y(e){try{return await o.readdir(e)}catch{return[]}}async function b(e){try{return await o.readFile(e,`utf8`)}catch{return null}}async function x(e){let t=[],n=await y(e.dir);for(let r of n){if(!r.endsWith(e.extension))continue;let n=r.slice(0,-e.extension.length);if(e.isIgnoredName(n))continue;let i=a.join(e.dir,r),o=await b(i);o!==null&&t.push({entry:r,name:n,fullPath:i,contents:o})}return t}async function S(e){let t=[],n=await x({dir:e.dir,extension:`.plist`,isIgnoredName:g});for(let{name:r,fullPath:i,contents:a}of n){let n=u(a),o=h(a)??r;if(!n){if(!(v(r)||v(o)))continue;t.push({platform:`darwin`,label:o,detail:`plist: ${i}`,scope:e.scope,marker:v(o)?`clawdbot`:`moltbot`,legacy:!0});continue}g(o)||n===`openclaw`&&f(o,a)||t.push({platform:`darwin`,label:o,detail:`plist: ${i}`,scope:e.scope,marker:n,legacy:n!==`openclaw`||v(o)})}return t}async function C(e){let t=[],n=await x({dir:e.dir,extension:`.service`,isIgnoredName:_});for(let{entry:r,name:i,fullPath:a,contents:o}of n){let n=u(o);n&&(n===`openclaw`&&p(i,o)||t.push({platform:`linux`,label:r,detail:`unit: ${a}`,scope:e.scope,marker:n,legacy:n!==`openclaw`}))}return t}function w(e){let t=[],n=null;for(let r of e.split(/\r?\n/)){let e=r.trim();if(!e){n&&=(t.push(n),null);continue}let i=e.indexOf(`:`);if(i<=0)continue;let a=e.slice(0,i).trim().toLowerCase(),o=e.slice(i+1).trim();if(o){if(a===`taskname`){n&&t.push(n),n={name:o};continue}n&&a===`task to run`&&(n.taskToRun=o)}}return n&&t.push(n),t}async function T(e,t={}){let n=[],r=new Set,o=e=>{let t=`${e.platform}:${e.label}:${e.detail}:${e.scope}`;r.has(t)||(r.add(t),n.push(e))};if(process.platform===`darwin`){try{let n=l(e),r=a.join(n,`Library`,`LaunchAgents`);for(let e of await S({dir:r,scope:`user`}))o(e);if(t.deep){for(let e of await S({dir:a.join(a.sep,`Library`,`LaunchAgents`),scope:`system`}))o(e);for(let e of await S({dir:a.join(a.sep,`Library`,`LaunchDaemons`),scope:`system`}))o(e)}}catch{return n}return n}if(process.platform===`linux`){try{let n=l(e),r=a.join(n,`.config`,`systemd`,`user`);for(let e of await C({dir:r,scope:`user`}))o(e);if(t.deep)for(let e of[`/etc/systemd/system`,`/usr/lib/systemd/system`,`/lib/systemd/system`])for(let t of await C({dir:e,scope:`system`}))o(t)}catch{return n}return n}if(process.platform===`win32`){if(!t.deep)return n;let e=await i([`/Query`,`/FO`,`LIST`,`/V`]);if(e.code!==0)return n;let r=w(e.stdout);for(let e of r){let t=e.name.trim();if(!t||m(t))continue;let n=t.toLowerCase(),r=e.taskToRun?.toLowerCase()??``,i=null;for(let e of s)if(n.includes(e)||r.includes(e)){i=e;break}i&&o({platform:`win32`,label:t,detail:e.taskToRun?`task: ${t}, run: ${e.taskToRun}`:t,scope:`system`,marker:i,legacy:i!==`openclaw`})}return n}return n}export{c as n,T as t};
2
- //# sourceMappingURL=inspect-z59cgmYc.js.map
@@ -1,2 +1 @@
1
1
  import{f as e,p as t,s as n}from"./openclaw-root-CnsBf6ZU.js";import{g as r,m as i,v as a,y as o}from"./windows-spawn-7oINn5ao.js";import{n as s}from"./path-safety-BukYK8Kd.js";import c from"node:path";import{constants as l}from"node:fs";import u from"node:fs/promises";import{createHash as d,randomUUID as f}from"node:crypto";import{pipeline as p}from"node:stream/promises";import{Readable as m,Transform as h}from"node:stream";import g from"jszip";import*as _ from"tar";function v(e){return/^[a-zA-Z]:[\\/]/.test(e)}function y(e){return e.replaceAll(`\\`,`/`)}function b(e,t){if(!e||e===`.`||e===`./`)return;if(v(e))throw Error(`archive entry uses a drive path: ${e}`);let n=c.posix.normalize(y(e)),r=t?.escapeLabel??`destination`;if(n===`..`||n.startsWith(`../`))throw Error(`archive entry escapes ${r}: ${e}`);if(c.posix.isAbsolute(n)||n.startsWith(`//`))throw Error(`archive entry is absolute: ${e}`)}function x(e,t){let n=y(e);if(!n||n===`.`||n===`./`)return null;let r=n.split(`/`).filter(e=>e.length>0&&e!==`.`),i=Math.max(0,Math.floor(t)),a=i===0?r.join(`/`):r.slice(i).join(`/`),o=c.posix.normalize(a);return!o||o===`.`||o===`./`?null:o}function S(e){let t=s(e.rootDir),n=c.resolve(e.rootDir,e.relPath),r=e.escapeLabel??`destination`;if(!n.startsWith(t))throw Error(`archive entry escapes ${r}: ${e.originalPath}`);return n}var C=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`ArchiveSecurityError`}};function w(e){return new C(`destination-symlink-traversal`,`archive entry traverses symlink in destination: ${e}`)}async function T(e){let t=await u.lstat(e);if(t.isSymbolicLink())throw new C(`destination-symlink`,`archive destination is a symlink`);if(!t.isDirectory())throw new C(`destination-not-directory`,`archive destination is not a directory`);return await u.realpath(e)}async function ee(t){let n=t.relPath.split(/[\\/]+/).filter(Boolean),r=c.resolve(t.rootDir);for(let i of n){r=c.join(r,i);let n;try{n=await u.lstat(r)}catch(t){if(e(t))continue;throw t}if(n.isSymbolicLink())throw w(t.originalPath)}}async function E(n){let r;try{r=await u.realpath(n.targetPath)}catch(t){if(e(t))return;throw t}if(!t(n.destinationRealDir,r))throw w(n.originalPath)}async function D(e){if(await ee({rootDir:e.destinationDir,relPath:e.relPath,originalPath:e.originalPath}),e.isDirectory){await u.mkdir(e.outPath,{recursive:!0}),await E({destinationRealDir:e.destinationRealDir,targetPath:e.outPath,originalPath:e.originalPath});return}let t=c.dirname(e.outPath);await u.mkdir(t,{recursive:!0}),await E({destinationRealDir:e.destinationRealDir,targetPath:t,originalPath:e.originalPath})}async function O(e){let t=c.join(e.destinationRealDir,e.relPath);await E({destinationRealDir:e.destinationRealDir,targetPath:t,originalPath:e.originalPath}),e.mode!==0&&await u.chmod(t,e.mode).catch(()=>void 0)}async function k(e){let t=await u.mkdtemp(c.join(e.destinationRealDir,`.openclaw-archive-`));try{return await e.run(t)}finally{await u.rm(t,{recursive:!0,force:!0}).catch(()=>void 0)}}async function A(e){let t=async n=>{let i=await u.readdir(n,{withFileTypes:!0});for(let a of i){let i=c.join(n,a.name),o=c.relative(e.sourceDir,i),s=o.split(c.sep).join(`/`),l=c.join(e.destinationDir,o),d=await u.lstat(i);if(d.isSymbolicLink())throw w(s);if(d.isDirectory()){await D({destinationDir:e.destinationDir,destinationRealDir:e.destinationRealDir,relPath:o,outPath:l,originalPath:s,isDirectory:!0}),await t(i),await O({destinationRealDir:e.destinationRealDir,relPath:o,mode:d.mode&511,originalPath:s});continue}if(!d.isFile())throw Error(`archive staging contains unsupported entry: ${s}`);await D({destinationDir:e.destinationDir,destinationRealDir:e.destinationRealDir,relPath:o,outPath:l,originalPath:s,isDirectory:!1}),await r({sourcePath:i,rootDir:e.destinationRealDir,relativePath:o,mkdir:!0}),await O({destinationRealDir:e.destinationRealDir,relPath:o,mode:d.mode&511,originalPath:s})}};await t(e.sourceDir)}function j(e){return w(e)}const M=`archive size exceeds limit`,N=`archive entry extracted size exceeds limit`,te=process.platform!==`win32`&&`O_NOFOLLOW`in l,ne=l.O_WRONLY|l.O_CREAT|l.O_EXCL|(te?l.O_NOFOLLOW:0),P=[`.tgz`,`.tar.gz`,`.tar`];function F(e){let t=e.toLowerCase();return t.endsWith(`.zip`)?`zip`:P.some(e=>t.endsWith(e))?`tar`:null}async function I(e){let t=c.join(e,`package`);try{if((await u.stat(t)).isDirectory())return t}catch{}let n=(await u.readdir(e,{withFileTypes:!0})).filter(e=>e.isDirectory()).map(e=>e.name);if(n.length!==1)throw Error(`unexpected archive layout (dirs: ${n.join(`, `)})`);let r=n[0];if(!r)throw Error(`unexpected archive layout (no package dir found)`);return c.join(e,r)}async function L(e,t,n){let r;try{return await Promise.race([e,new Promise((e,i)=>{r=setTimeout(()=>i(Error(`${n} timed out after ${t}ms`)),t)})])}finally{r&&clearTimeout(r)}}function R(e){if(typeof e!=`number`||!Number.isFinite(e))return;let t=Math.floor(e);return t>0?t:void 0}function z(e){return{maxArchiveBytes:R(e?.maxArchiveBytes)??268435456,maxEntries:R(e?.maxEntries)??5e4,maxExtractedBytes:R(e?.maxExtractedBytes)??536870912,maxEntryBytes:R(e?.maxEntryBytes)??268435456}}function B(e,t){if(e>t.maxEntries)throw Error(`archive entry count exceeds limit`)}function V(e){let t=0,n=0,r=r=>{let i=Math.max(0,Math.floor(r));if(i!==0){if(t+=i,t>e.maxEntryBytes)throw Error(N);if(n+=i,n>e.maxExtractedBytes)throw Error(`archive extracted size exceeds limit`)}};return{startEntry(){t=0},addBytes:r,addEntrySize(t){let n=Math.max(0,Math.floor(t));if(n>e.maxEntryBytes)throw Error(N);r(n)}}}function H(e){return new h({transform(t,n,r){try{let n=t instanceof Buffer?t:Buffer.from(t);e.onChunkBytes(n.byteLength),r(null,n)}catch(e){r(e instanceof Error?e:Error(String(e)))}}})}function U(e){return j(e)}async function W(e){try{return await o({rootDir:e.destinationRealDir,relativePath:e.relPath,mkdir:!1,mode:438})}catch(t){throw t instanceof i&&(t.code===`invalid-path`||t.code===`outside-workspace`||t.code===`path-mismatch`)?U(e.originalPath):t}}async function G(t){let n;try{n=await u.lstat(t)}catch(t){if(e(t))return;throw t}n.isFile()&&await u.unlink(t).catch(()=>void 0)}function K(e){return c.join(c.dirname(e),`.${c.basename(e)}.${process.pid}.${f()}.tmp`)}async function q(e){let t=await a({rootDir:e.destinationRealDir,relativePath:e.relPath,rejectHardlinks:!0});try{if(!n(t.stat,e.expectedStat))throw new i(`path-mismatch`,`path changed during zip extract`);return t.realPath}finally{await t.handle.close().catch(()=>void 0)}}async function J(e){if(typeof e.nodeStream==`function`)return e.nodeStream();let t=await e.async(`nodebuffer`);return m.from(t)}function Y(e){b(e.entryPath);let t=x(e.entryPath,e.strip);return t?(b(t),{relPath:t,outPath:S({rootDir:e.destinationDir,relPath:t,originalPath:e.entryPath})}):null}async function X(e){await D(e)}async function re(e){let t=await W({relPath:e.relPath,originalPath:e.entry.name,destinationRealDir:e.destinationRealDir});e.budget.startEntry();let n=await J(e.entry),r=t.openedRealPath,a=t.openedStat.mode&511;await t.handle.close().catch(()=>void 0);let o=null,s=null,c=null,l=!1;try{s=K(r),o=await u.open(s,ne,a||438);let t=o.createWriteStream();if(t.once(`close`,()=>{l=!0}),await p(n,H({onChunkBytes:e.budget.addBytes}),t),c=await u.stat(s),!c)throw Error(`zip temp write did not produce file metadata`);l||=(await o.close().catch(()=>void 0),!0),o=null,await u.rename(s,r),s=null;let i=await q({destinationRealDir:e.destinationRealDir,relPath:e.relPath,expectedStat:c});if(typeof e.entry.unixPermissions==`number`){let t=e.entry.unixPermissions&511;t!==0&&await u.chmod(i,t).catch(()=>void 0)}}catch(t){throw s?await u.rm(s,{force:!0}).catch(()=>void 0):await G(r).catch(()=>void 0),t instanceof i?U(e.entry.name):t}finally{o&&!l&&await o.close().catch(()=>void 0)}}async function ie(e){let t=z(e.limits),n=await T(e.destDir);if((await u.stat(e.archivePath)).size>t.maxArchiveBytes)throw Error(M);let r=await u.readFile(e.archivePath),i=await g.loadAsync(r),a=Object.values(i.files),o=Math.max(0,Math.floor(e.stripComponents??0));B(a.length,t);let s=V(t);for(let t of a){let r=Y({entryPath:t.name,strip:o,destinationDir:e.destDir});r&&(await X({destinationDir:e.destDir,destinationRealDir:n,relPath:r.relPath,outPath:r.outPath,originalPath:t.name,isDirectory:t.dir}),!t.dir&&await re({entry:t,relPath:r.relPath,destinationRealDir:n,budget:s}))}}const ae=new Set([`SymbolicLink`,`Link`,`BlockDevice`,`CharacterDevice`,`FIFO`,`Socket`]);function oe(e){return{path:typeof e==`object`&&e&&`path`in e?String(e.path):``,type:typeof e==`object`&&e&&`type`in e?String(e.type):``,size:typeof e==`object`&&e&&`size`in e&&typeof e.size==`number`&&Number.isFinite(e.size)?Math.max(0,Math.floor(e.size)):0}}function Z(e){let t=Math.max(0,Math.floor(e.stripComponents??0)),n=z(e.limits),r=0,i=V(n);return a=>{b(a.path,{escapeLabel:e.escapeLabel});let o=x(a.path,t);if(o){if(b(o,{escapeLabel:e.escapeLabel}),S({rootDir:e.rootDir,relPath:o,originalPath:a.path,escapeLabel:e.escapeLabel}),ae.has(a.type))throw Error(`tar entry is a link: ${a.path}`);r+=1,B(r,n),i.addEntrySize(a.size)}}}async function se(e){let t=e.kind??F(e.archivePath);if(!t)throw Error(`unsupported archive: ${e.archivePath}`);let n=t===`zip`?`extract zip`:`extract tar`;if(t===`tar`){await L((async()=>{let t=z(e.limits);if((await u.stat(e.archivePath)).size>t.maxArchiveBytes)throw Error(M);let n=await T(e.destDir);await k({destinationRealDir:n,run:async r=>{let i=Z({rootDir:n,stripComponents:e.stripComponents,limits:t});await _.x({file:e.archivePath,cwd:r,strip:Math.max(0,Math.floor(e.stripComponents??0)),gzip:e.tarGzip,preservePaths:!1,strict:!0,onReadEntry(e){try{i(oe(e))}catch(e){let t=e instanceof Error?e:Error(String(e));this.abort?.(t)}}}),await A({sourceDir:r,destinationDir:n,destinationRealDir:n})}})})(),e.timeoutMs,n);return}await L(ie({archivePath:e.archivePath,destDir:e.destDir,stripComponents:e.stripComponents,limits:e.limits}),e.timeoutMs,n)}async function Q(e){try{return await u.stat(e),!0}catch{return!1}}async function ce(e){let t=await u.readFile(e,`utf-8`);return JSON.parse(t)}function le(e){let t=e.trim();return t&&(t.includes(`/`)?t.split(`/`).pop()??t:t)}function $(e){let t=e.trim();return t&&t.replaceAll(`/`,`__`).replaceAll(`\\`,`__`)}function ue(e){let t=e.trim(),n=t.replaceAll(/[\\/]/g,`-`).replaceAll(/[^a-zA-Z0-9._-]/g,`-`).replaceAll(/-+/g,`-`).replaceAll(/^-+/g,``).replaceAll(/-+$/g,``),r=n.length>0?n:`skill`,i=r===`.`||r===`..`?`skill`:r,a=d(`sha256`).update(t).digest(`hex`).slice(0,10);return i===t?i.length>60?`${i.slice(0,50)}-${a}`:i:`${i.length>50?i.slice(0,50):i}-${a}`}function de(e){let t=c.join(e.baseDir,$(e.id)),n=c.resolve(e.baseDir),r=c.resolve(t),i=c.relative(n,r);return!i||i===`..`||i.startsWith(`..${c.sep}`)||c.isAbsolute(i)?{ok:!1,error:e.invalidNameMessage}:{ok:!0,path:t}}async function fe(e){let n=c.resolve(e.baseDir),r=c.resolve(e.candidatePath);if(!t(n,r))throw Error(`Invalid path: must stay within ${e.boundaryLabel}`);let i=await u.lstat(n);if(!i.isDirectory()||i.isSymbolicLink())throw Error(`Invalid ${e.boundaryLabel}: base directory must be a real directory`);let a=await u.realpath(n),o=async n=>{let r=await u.lstat(n);if(!r.isDirectory()||r.isSymbolicLink()||!t(a,await u.realpath(n)))throw Error(`Invalid path: must stay within ${e.boundaryLabel}`)};try{await o(r);return}catch(e){if(e.code!==`ENOENT`)throw e}await o(c.dirname(r))}export{le as a,Q as c,I as d,A as f,v as h,ue as i,ce as l,k as m,de as n,Z as o,T as p,$ as r,se as s,fe as t,F as u};
2
- //# sourceMappingURL=install-safe-path-C6kc_8NW.js.map
@@ -1,2 +1 @@
1
1
  import{f as e,p as t,s as n}from"./openclaw-root-D_0Q6--h.js";import{g as r,m as i,v as a,y as o}from"./windows-spawn-AB7ItGAE.js";import{n as s}from"./path-safety-DaaMJFdt.js";import{constants as c}from"node:fs";import l from"node:path";import u from"node:fs/promises";import{createHash as d,randomUUID as f}from"node:crypto";import{pipeline as p}from"node:stream/promises";import{Readable as m,Transform as h}from"node:stream";import g from"jszip";import*as _ from"tar";function v(e){return/^[a-zA-Z]:[\\/]/.test(e)}function y(e){return e.replaceAll(`\\`,`/`)}function b(e,t){if(!e||e===`.`||e===`./`)return;if(v(e))throw Error(`archive entry uses a drive path: ${e}`);let n=l.posix.normalize(y(e)),r=t?.escapeLabel??`destination`;if(n===`..`||n.startsWith(`../`))throw Error(`archive entry escapes ${r}: ${e}`);if(l.posix.isAbsolute(n)||n.startsWith(`//`))throw Error(`archive entry is absolute: ${e}`)}function x(e,t){let n=y(e);if(!n||n===`.`||n===`./`)return null;let r=n.split(`/`).filter(e=>e.length>0&&e!==`.`),i=Math.max(0,Math.floor(t)),a=i===0?r.join(`/`):r.slice(i).join(`/`),o=l.posix.normalize(a);return!o||o===`.`||o===`./`?null:o}function S(e){let t=s(e.rootDir),n=l.resolve(e.rootDir,e.relPath),r=e.escapeLabel??`destination`;if(!n.startsWith(t))throw Error(`archive entry escapes ${r}: ${e.originalPath}`);return n}var C=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`ArchiveSecurityError`}};function w(e){return new C(`destination-symlink-traversal`,`archive entry traverses symlink in destination: ${e}`)}async function T(e){let t=await u.lstat(e);if(t.isSymbolicLink())throw new C(`destination-symlink`,`archive destination is a symlink`);if(!t.isDirectory())throw new C(`destination-not-directory`,`archive destination is not a directory`);return await u.realpath(e)}async function ee(t){let n=t.relPath.split(/[\\/]+/).filter(Boolean),r=l.resolve(t.rootDir);for(let i of n){r=l.join(r,i);let n;try{n=await u.lstat(r)}catch(t){if(e(t))continue;throw t}if(n.isSymbolicLink())throw w(t.originalPath)}}async function E(n){let r;try{r=await u.realpath(n.targetPath)}catch(t){if(e(t))return;throw t}if(!t(n.destinationRealDir,r))throw w(n.originalPath)}async function D(e){if(await ee({rootDir:e.destinationDir,relPath:e.relPath,originalPath:e.originalPath}),e.isDirectory){await u.mkdir(e.outPath,{recursive:!0}),await E({destinationRealDir:e.destinationRealDir,targetPath:e.outPath,originalPath:e.originalPath});return}let t=l.dirname(e.outPath);await u.mkdir(t,{recursive:!0}),await E({destinationRealDir:e.destinationRealDir,targetPath:t,originalPath:e.originalPath})}async function O(e){let t=l.join(e.destinationRealDir,e.relPath);await E({destinationRealDir:e.destinationRealDir,targetPath:t,originalPath:e.originalPath}),e.mode!==0&&await u.chmod(t,e.mode).catch(()=>void 0)}async function k(e){let t=await u.mkdtemp(l.join(e.destinationRealDir,`.openclaw-archive-`));try{return await e.run(t)}finally{await u.rm(t,{recursive:!0,force:!0}).catch(()=>void 0)}}async function A(e){let t=async n=>{let i=await u.readdir(n,{withFileTypes:!0});for(let a of i){let i=l.join(n,a.name),o=l.relative(e.sourceDir,i),s=o.split(l.sep).join(`/`),c=l.join(e.destinationDir,o),d=await u.lstat(i);if(d.isSymbolicLink())throw w(s);if(d.isDirectory()){await D({destinationDir:e.destinationDir,destinationRealDir:e.destinationRealDir,relPath:o,outPath:c,originalPath:s,isDirectory:!0}),await t(i),await O({destinationRealDir:e.destinationRealDir,relPath:o,mode:d.mode&511,originalPath:s});continue}if(!d.isFile())throw Error(`archive staging contains unsupported entry: ${s}`);await D({destinationDir:e.destinationDir,destinationRealDir:e.destinationRealDir,relPath:o,outPath:c,originalPath:s,isDirectory:!1}),await r({sourcePath:i,rootDir:e.destinationRealDir,relativePath:o,mkdir:!0}),await O({destinationRealDir:e.destinationRealDir,relPath:o,mode:d.mode&511,originalPath:s})}};await t(e.sourceDir)}function j(e){return w(e)}const M=`archive size exceeds limit`,N=`archive entry extracted size exceeds limit`,te=process.platform!==`win32`&&`O_NOFOLLOW`in c,ne=c.O_WRONLY|c.O_CREAT|c.O_EXCL|(te?c.O_NOFOLLOW:0),P=[`.tgz`,`.tar.gz`,`.tar`];function F(e){let t=e.toLowerCase();return t.endsWith(`.zip`)?`zip`:P.some(e=>t.endsWith(e))?`tar`:null}async function I(e){let t=l.join(e,`package`);try{if((await u.stat(t)).isDirectory())return t}catch{}let n=(await u.readdir(e,{withFileTypes:!0})).filter(e=>e.isDirectory()).map(e=>e.name);if(n.length!==1)throw Error(`unexpected archive layout (dirs: ${n.join(`, `)})`);let r=n[0];if(!r)throw Error(`unexpected archive layout (no package dir found)`);return l.join(e,r)}async function L(e,t,n){let r;try{return await Promise.race([e,new Promise((e,i)=>{r=setTimeout(()=>i(Error(`${n} timed out after ${t}ms`)),t)})])}finally{r&&clearTimeout(r)}}function R(e){if(typeof e!=`number`||!Number.isFinite(e))return;let t=Math.floor(e);return t>0?t:void 0}function z(e){return{maxArchiveBytes:R(e?.maxArchiveBytes)??268435456,maxEntries:R(e?.maxEntries)??5e4,maxExtractedBytes:R(e?.maxExtractedBytes)??536870912,maxEntryBytes:R(e?.maxEntryBytes)??268435456}}function B(e,t){if(e>t.maxEntries)throw Error(`archive entry count exceeds limit`)}function V(e){let t=0,n=0,r=r=>{let i=Math.max(0,Math.floor(r));if(i!==0){if(t+=i,t>e.maxEntryBytes)throw Error(N);if(n+=i,n>e.maxExtractedBytes)throw Error(`archive extracted size exceeds limit`)}};return{startEntry(){t=0},addBytes:r,addEntrySize(t){let n=Math.max(0,Math.floor(t));if(n>e.maxEntryBytes)throw Error(N);r(n)}}}function H(e){return new h({transform(t,n,r){try{let n=t instanceof Buffer?t:Buffer.from(t);e.onChunkBytes(n.byteLength),r(null,n)}catch(e){r(e instanceof Error?e:Error(String(e)))}}})}function U(e){return j(e)}async function W(e){try{return await o({rootDir:e.destinationRealDir,relativePath:e.relPath,mkdir:!1,mode:438})}catch(t){throw t instanceof i&&(t.code===`invalid-path`||t.code===`outside-workspace`||t.code===`path-mismatch`)?U(e.originalPath):t}}async function G(t){let n;try{n=await u.lstat(t)}catch(t){if(e(t))return;throw t}n.isFile()&&await u.unlink(t).catch(()=>void 0)}function K(e){return l.join(l.dirname(e),`.${l.basename(e)}.${process.pid}.${f()}.tmp`)}async function q(e){let t=await a({rootDir:e.destinationRealDir,relativePath:e.relPath,rejectHardlinks:!0});try{if(!n(t.stat,e.expectedStat))throw new i(`path-mismatch`,`path changed during zip extract`);return t.realPath}finally{await t.handle.close().catch(()=>void 0)}}async function J(e){if(typeof e.nodeStream==`function`)return e.nodeStream();let t=await e.async(`nodebuffer`);return m.from(t)}function Y(e){b(e.entryPath);let t=x(e.entryPath,e.strip);return t?(b(t),{relPath:t,outPath:S({rootDir:e.destinationDir,relPath:t,originalPath:e.entryPath})}):null}async function X(e){await D(e)}async function re(e){let t=await W({relPath:e.relPath,originalPath:e.entry.name,destinationRealDir:e.destinationRealDir});e.budget.startEntry();let n=await J(e.entry),r=t.openedRealPath,a=t.openedStat.mode&511;await t.handle.close().catch(()=>void 0);let o=null,s=null,c=null,l=!1;try{s=K(r),o=await u.open(s,ne,a||438);let t=o.createWriteStream();if(t.once(`close`,()=>{l=!0}),await p(n,H({onChunkBytes:e.budget.addBytes}),t),c=await u.stat(s),!c)throw Error(`zip temp write did not produce file metadata`);l||=(await o.close().catch(()=>void 0),!0),o=null,await u.rename(s,r),s=null;let i=await q({destinationRealDir:e.destinationRealDir,relPath:e.relPath,expectedStat:c});if(typeof e.entry.unixPermissions==`number`){let t=e.entry.unixPermissions&511;t!==0&&await u.chmod(i,t).catch(()=>void 0)}}catch(t){throw s?await u.rm(s,{force:!0}).catch(()=>void 0):await G(r).catch(()=>void 0),t instanceof i?U(e.entry.name):t}finally{o&&!l&&await o.close().catch(()=>void 0)}}async function ie(e){let t=z(e.limits),n=await T(e.destDir);if((await u.stat(e.archivePath)).size>t.maxArchiveBytes)throw Error(M);let r=await u.readFile(e.archivePath),i=await g.loadAsync(r),a=Object.values(i.files),o=Math.max(0,Math.floor(e.stripComponents??0));B(a.length,t);let s=V(t);for(let t of a){let r=Y({entryPath:t.name,strip:o,destinationDir:e.destDir});r&&(await X({destinationDir:e.destDir,destinationRealDir:n,relPath:r.relPath,outPath:r.outPath,originalPath:t.name,isDirectory:t.dir}),!t.dir&&await re({entry:t,relPath:r.relPath,destinationRealDir:n,budget:s}))}}const ae=new Set([`SymbolicLink`,`Link`,`BlockDevice`,`CharacterDevice`,`FIFO`,`Socket`]);function oe(e){return{path:typeof e==`object`&&e&&`path`in e?String(e.path):``,type:typeof e==`object`&&e&&`type`in e?String(e.type):``,size:typeof e==`object`&&e&&`size`in e&&typeof e.size==`number`&&Number.isFinite(e.size)?Math.max(0,Math.floor(e.size)):0}}function Z(e){let t=Math.max(0,Math.floor(e.stripComponents??0)),n=z(e.limits),r=0,i=V(n);return a=>{b(a.path,{escapeLabel:e.escapeLabel});let o=x(a.path,t);if(o){if(b(o,{escapeLabel:e.escapeLabel}),S({rootDir:e.rootDir,relPath:o,originalPath:a.path,escapeLabel:e.escapeLabel}),ae.has(a.type))throw Error(`tar entry is a link: ${a.path}`);r+=1,B(r,n),i.addEntrySize(a.size)}}}async function se(e){let t=e.kind??F(e.archivePath);if(!t)throw Error(`unsupported archive: ${e.archivePath}`);let n=t===`zip`?`extract zip`:`extract tar`;if(t===`tar`){await L((async()=>{let t=z(e.limits);if((await u.stat(e.archivePath)).size>t.maxArchiveBytes)throw Error(M);let n=await T(e.destDir);await k({destinationRealDir:n,run:async r=>{let i=Z({rootDir:n,stripComponents:e.stripComponents,limits:t});await _.x({file:e.archivePath,cwd:r,strip:Math.max(0,Math.floor(e.stripComponents??0)),gzip:e.tarGzip,preservePaths:!1,strict:!0,onReadEntry(e){try{i(oe(e))}catch(e){let t=e instanceof Error?e:Error(String(e));this.abort?.(t)}}}),await A({sourceDir:r,destinationDir:n,destinationRealDir:n})}})})(),e.timeoutMs,n);return}await L(ie({archivePath:e.archivePath,destDir:e.destDir,stripComponents:e.stripComponents,limits:e.limits}),e.timeoutMs,n)}async function Q(e){try{return await u.stat(e),!0}catch{return!1}}async function ce(e){let t=await u.readFile(e,`utf-8`);return JSON.parse(t)}function le(e){let t=e.trim();return t&&(t.includes(`/`)?t.split(`/`).pop()??t:t)}function $(e){let t=e.trim();return t&&t.replaceAll(`/`,`__`).replaceAll(`\\`,`__`)}function ue(e){let t=e.trim(),n=t.replaceAll(/[\\/]/g,`-`).replaceAll(/[^a-zA-Z0-9._-]/g,`-`).replaceAll(/-+/g,`-`).replaceAll(/^-+/g,``).replaceAll(/-+$/g,``),r=n.length>0?n:`skill`,i=r===`.`||r===`..`?`skill`:r,a=d(`sha256`).update(t).digest(`hex`).slice(0,10);return i===t?i.length>60?`${i.slice(0,50)}-${a}`:i:`${i.length>50?i.slice(0,50):i}-${a}`}function de(e){let t=l.join(e.baseDir,$(e.id)),n=l.resolve(e.baseDir),r=l.resolve(t),i=l.relative(n,r);return!i||i===`..`||i.startsWith(`..${l.sep}`)||l.isAbsolute(i)?{ok:!1,error:e.invalidNameMessage}:{ok:!0,path:t}}async function fe(e){let n=l.resolve(e.baseDir),r=l.resolve(e.candidatePath);if(!t(n,r))throw Error(`Invalid path: must stay within ${e.boundaryLabel}`);let i=await u.lstat(n);if(!i.isDirectory()||i.isSymbolicLink())throw Error(`Invalid ${e.boundaryLabel}: base directory must be a real directory`);let a=await u.realpath(n),o=async n=>{let r=await u.lstat(n);if(!r.isDirectory()||r.isSymbolicLink()||!t(a,await u.realpath(n)))throw Error(`Invalid path: must stay within ${e.boundaryLabel}`)};try{await o(r);return}catch(e){if(e.code!==`ENOENT`)throw e}await o(l.dirname(r))}export{le as a,Q as c,I as d,A as f,v as h,ue as i,ce as l,k as m,de as n,Z as o,T as p,$ as r,se as s,fe as t,F as u};
2
- //# sourceMappingURL=install-safe-path-iesxijn2.js.map
@@ -1,2 +1 @@
1
1
  import{t as e,v as t}from"./utils-CGdo13HV.js";import{_ as n}from"./env-overrides-DHtB4kK3.js";import{n as r,t as i}from"./scan-paths-CWtvWW40.js";import{_ as a,b as o,x as s}from"./skills-Bz_S4lPh.js";import{S as c}from"./windows-spawn-7oINn5ao.js";import{a as l,c as u,l as d,n as f,r as p,u as m}from"./install-safe-path-C6kc_8NW.js";import{a as h,c as g,d as _,f as v,i as y,l as b,n as x,r as S,s as C,t as w,u as T}from"./npm-pack-install-C0te3Oap.js";import{t as E}from"./skill-scanner-CkxXNioD.js";import D from"node:path";import O from"node:fs/promises";const k={INVALID_NPM_SPEC:`invalid_npm_spec`,MISSING_OPENCLAW_EXTENSIONS:`missing_openclaw_extensions`,EMPTY_OPENCLAW_EXTENSIONS:`empty_openclaw_extensions`,NPM_PACKAGE_NOT_FOUND:`npm_package_not_found`,PLUGIN_ID_MISMATCH:`plugin_id_mismatch`},A={};function j(e){return p(e)}function M(e){return e?e===`.`||e===`..`?`invalid plugin name: reserved path segment`:e.includes(`/`)||e.includes(`\\`)?`invalid plugin name: path separators not allowed`:null:`invalid plugin name: missing`}function N(e){let t=s(e.manifest);return t.status===`missing`?{ok:!1,error:`package.json missing openclaw.extensions; update the plugin package to include openclaw.extensions (for example ["./dist/index.js"]). See https://docs.openclaw.ai/help/troubleshooting#plugin-install-fails-with-missing-openclaw-extensions`,code:k.MISSING_OPENCLAW_EXTENSIONS}:t.status===`empty`?{ok:!1,error:`package.json openclaw.extensions is empty`,code:k.EMPTY_OPENCLAW_EXTENSIONS}:{ok:!0,entries:t.entries}}function P(e){let t=e.trim();return t.startsWith(`Package not found on npm:`)?!0:/E404|404 not found|not in this registry/i.test(t)}function F(e,t){return{ok:!0,pluginId:e,targetDir:t,manifestName:void 0,version:void 0,extensions:[D.basename(t)]}}function I(e){return{extensionsDir:e.extensionsDir,timeoutMs:e.timeoutMs,logger:e.logger,mode:e.mode,dryRun:e.dryRun,expectedPluginId:e.expectedPluginId}}function L(e){return{extensionsDir:e.extensionsDir,logger:e.logger,mode:e.mode,dryRun:e.dryRun}}function R(n,r){let i=r?t(r):D.join(e,`extensions`),a=M(n);if(a)throw Error(a);let o=f({baseDir:i,id:n,invalidNameMessage:`invalid plugin name: path traversal detected`});if(!o.ok)throw Error(o.error);return o.path}async function z(n){let{logger:a,timeoutMs:s,mode:c,dryRun:f}=g(n,A),p=D.join(n.packageDir,`package.json`);if(!await u(p))return{ok:!1,error:`extracted package missing package.json`};let m;try{m=await d(p)}catch(e){return{ok:!1,error:`invalid package.json: ${String(e)}`}}let _=N({manifest:m});if(!_.ok)return{ok:!1,error:_.error,code:_.code};let v=_.entries,b=typeof m.name==`string`?m.name:``,x=b?l(b):`plugin`,C=o(n.packageDir),w=C.ok&&C.manifest.id?l(C.manifest.id):void 0,T=w??x,O=M(T);if(O)return{ok:!1,error:O};if(n.expectedPluginId&&n.expectedPluginId!==T)return{ok:!1,error:`plugin id mismatch: expected ${n.expectedPluginId}, got ${T}`,code:k.PLUGIN_ID_MISMATCH};w&&w!==x&&a.info?.(`Plugin manifest id "${w}" differs from npm package name "${x}"; using manifest id as the config key.`);let j=D.resolve(n.packageDir),P=[];for(let e of v){let t=D.resolve(j,e);if(!r(j,t)){a.warn?.(`extension entry escapes plugin directory and will not be scanned: ${e}`);continue}i(e)&&a.warn?.(`extension entry is in a hidden/node_modules path and will receive targeted scan coverage: ${e}`),P.push(t)}try{let e=await E(n.packageDir,{includeFiles:P});if(e.critical>0){let t=e.findings.filter(e=>e.severity===`critical`).map(e=>`${e.message} (${e.file}:${e.line})`).join(`; `);a.warn?.(`WARNING: Plugin "${T}" contains dangerous code patterns: ${t}`)}else e.warn>0&&a.warn?.(`Plugin "${T}" has ${e.warn} suspicious code pattern(s). Run "openclaw security audit --deep" for details.`)}catch(e){a.warn?.(`Plugin "${T}" code safety scan failed (${String(e)}). Installation continues; run "openclaw security audit --deep" after install.`)}let F=await y({baseDir:n.extensionsDir?t(n.extensionsDir):D.join(e,`extensions`),id:T,invalidNameMessage:`invalid plugin name: path traversal detected`,boundaryLabel:`extensions directory`});if(!F.ok)return{ok:!1,error:F.error};let I=F.targetDir,L=await S({mode:c,targetDir:I,alreadyExistsError:`plugin already exists: ${I} (delete it first)`});if(!L.ok)return L;if(f)return{ok:!0,pluginId:T,targetDir:I,manifestName:b||void 0,version:typeof m.version==`string`?m.version:void 0,extensions:v};let R=m.dependencies??{},z=Object.keys(R).length>0,B=await h({sourceDir:n.packageDir,targetDir:I,mode:c,timeoutMs:s,logger:a,copyErrorPrefix:`failed to copy plugin`,hasDeps:z,depsLogMessage:`Installing plugin dependencies…`,afterCopy:async e=>{for(let t of v){let n=D.resolve(e,t);if(!r(e,n)){a.warn?.(`extension entry escapes plugin directory: ${t}`);continue}await u(n)||a.warn?.(`extension entry not found: ${t}`)}}});return B.ok?{ok:!0,pluginId:T,targetDir:I,manifestName:b||void 0,version:typeof m.version==`string`?m.version:void 0,extensions:v}:B}async function B(e){let t=e.logger??A,n=e.timeoutMs??12e4,r=e.mode??`install`,i=await v(e.archivePath);if(!i.ok)return i;let a=i.path;return await T({archivePath:a,tempDirPrefix:`openclaw-plugin-`,timeoutMs:n,logger:t,onExtracted:async i=>await z({packageDir:i,...I({extensionsDir:e.extensionsDir,timeoutMs:n,logger:t,mode:r,dryRun:e.dryRun,expectedPluginId:e.expectedPluginId})})})}async function V(e){let n=t(e.dirPath);return await u(n)?(await O.stat(n)).isDirectory()?await z({packageDir:n,...I(e)}):{ok:!1,error:`not a directory: ${n}`}:{ok:!1,error:`directory not found: ${n}`}}async function H(n){let{logger:r,mode:i,dryRun:a}=C(n,A),o=t(n.filePath);if(!await u(o))return{ok:!1,error:`file not found: ${o}`};let s=n.extensionsDir?t(n.extensionsDir):D.join(e,`extensions`);await O.mkdir(s,{recursive:!0});let l=D.basename(o,D.extname(o))||`plugin`,d=M(l);if(d)return{ok:!1,error:d};let f=D.join(s,`${j(l)}${D.extname(o)}`),p=await S({mode:i,targetDir:f,alreadyExistsError:`plugin already exists: ${f} (delete it first)`});if(!p.ok)return p;if(a)return F(l,f);r.info?.(`Installing to ${f}…`);try{await c({rootDir:s,relativePath:D.basename(f),sourcePath:o})}catch(e){return{ok:!1,error:String(e)}}return F(l,f)}async function U(e){let{logger:t,timeoutMs:r,mode:i,dryRun:a}=g(e,A),o=e.expectedPluginId,s=e.spec.trim(),c=n(s);if(c)return{ok:!1,error:c,code:k.INVALID_NPM_SPEC};t.info?.(`Downloading ${s}…`);let l=w(await x({tempDirPrefix:`openclaw-npm-pack-`,spec:s,timeoutMs:r,expectedIntegrity:e.expectedIntegrity,onIntegrityDrift:e.onIntegrityDrift,warn:e=>{t.warn?.(e)},installFromArchive:B,archiveInstallParams:{extensionsDir:e.extensionsDir,timeoutMs:r,logger:t,mode:i,dryRun:a,expectedPluginId:o}}));return!l.ok&&P(l.error)?{ok:!1,error:l.error,code:k.NPM_PACKAGE_NOT_FOUND}:l}async function W(e){let t=await b(e.path);if(!t.ok)return t;let{resolvedPath:n,stat:r}=t,i=I(e);return r.isDirectory()?await V({dirPath:n,...i}):m(n)?await B({archivePath:n,...i}):await H({filePath:n,...L(e)})}function G(e){let t=e.lookup.value.trim();if(t){if(e.lookup.kind===`pluginId`)return e.bundled.get(t);for(let n of e.bundled.values())if(n.npmSpec===t)return n}}function K(e){let t=a({workspaceDir:e.workspaceDir}),n=new Map;for(let e of t.candidates){if(e.origin!==`bundled`)continue;let t=o(e.rootDir,!1);if(!t.ok)continue;let r=t.manifest.id;if(n.has(r))continue;let i=e.packageManifest?.install?.npmSpec?.trim()||e.packageName?.trim()||void 0;n.set(r,{pluginId:r,localPath:e.rootDir,npmSpec:i})}return n}function q(e){return G({bundled:K({workspaceDir:e.workspaceDir}),lookup:e.lookup})}function J(e){return _(e)}function Y(e,t){let{pluginId:n,...r}=t,i={...e.plugins?.installs,[n]:{...e.plugins?.installs?.[n],...r,installedAt:r.installedAt??new Date().toISOString()}};return{...e,plugins:{...e.plugins,installs:{...i,[n]:i[n]}}}}export{K as a,W as c,G as i,R as l,Y as n,k as o,q as r,U as s,J as t};
2
- //# sourceMappingURL=installs-CKzq-YqL.js.map
@@ -1,2 +1 @@
1
1
  import{t as e,y as t}from"./utils-UGOV_184.js";import{_ as n}from"./env-overrides-DXJbFrwI.js";import{n as r,t as i}from"./scan-paths-C13EseXp.js";import{_ as a,b as o,x as s}from"./skills-CzUpDbU-.js";import{S as c}from"./windows-spawn-AB7ItGAE.js";import{a as l,c as u,l as d,n as f,r as p,u as m}from"./install-safe-path-iesxijn2.js";import{a as h,c as g,d as _,f as v,i as y,l as b,n as x,r as S,s as C,t as w,u as T}from"./npm-pack-install-B23L-AtF.js";import{t as E}from"./skill-scanner-CUUF3Fvo.js";import D from"node:path";import O from"node:fs/promises";const k={INVALID_NPM_SPEC:`invalid_npm_spec`,MISSING_OPENCLAW_EXTENSIONS:`missing_openclaw_extensions`,EMPTY_OPENCLAW_EXTENSIONS:`empty_openclaw_extensions`,NPM_PACKAGE_NOT_FOUND:`npm_package_not_found`,PLUGIN_ID_MISMATCH:`plugin_id_mismatch`},A={};function j(e){return p(e)}function M(e){return e?e===`.`||e===`..`?`invalid plugin name: reserved path segment`:e.includes(`/`)||e.includes(`\\`)?`invalid plugin name: path separators not allowed`:null:`invalid plugin name: missing`}function N(e){let t=s(e.manifest);return t.status===`missing`?{ok:!1,error:`package.json missing openclaw.extensions; update the plugin package to include openclaw.extensions (for example ["./dist/index.js"]). See https://docs.openclaw.ai/help/troubleshooting#plugin-install-fails-with-missing-openclaw-extensions`,code:k.MISSING_OPENCLAW_EXTENSIONS}:t.status===`empty`?{ok:!1,error:`package.json openclaw.extensions is empty`,code:k.EMPTY_OPENCLAW_EXTENSIONS}:{ok:!0,entries:t.entries}}function P(e){let t=e.trim();return t.startsWith(`Package not found on npm:`)?!0:/E404|404 not found|not in this registry/i.test(t)}function F(e,t){return{ok:!0,pluginId:e,targetDir:t,manifestName:void 0,version:void 0,extensions:[D.basename(t)]}}function I(e){return{extensionsDir:e.extensionsDir,timeoutMs:e.timeoutMs,logger:e.logger,mode:e.mode,dryRun:e.dryRun,expectedPluginId:e.expectedPluginId}}function L(e){return{extensionsDir:e.extensionsDir,logger:e.logger,mode:e.mode,dryRun:e.dryRun}}function R(n,r){let i=r?t(r):D.join(e,`extensions`),a=M(n);if(a)throw Error(a);let o=f({baseDir:i,id:n,invalidNameMessage:`invalid plugin name: path traversal detected`});if(!o.ok)throw Error(o.error);return o.path}async function z(n){let{logger:a,timeoutMs:s,mode:c,dryRun:f}=g(n,A),p=D.join(n.packageDir,`package.json`);if(!await u(p))return{ok:!1,error:`extracted package missing package.json`};let m;try{m=await d(p)}catch(e){return{ok:!1,error:`invalid package.json: ${String(e)}`}}let _=N({manifest:m});if(!_.ok)return{ok:!1,error:_.error,code:_.code};let v=_.entries,b=typeof m.name==`string`?m.name:``,x=b?l(b):`plugin`,C=o(n.packageDir),w=C.ok&&C.manifest.id?l(C.manifest.id):void 0,T=w??x,O=M(T);if(O)return{ok:!1,error:O};if(n.expectedPluginId&&n.expectedPluginId!==T)return{ok:!1,error:`plugin id mismatch: expected ${n.expectedPluginId}, got ${T}`,code:k.PLUGIN_ID_MISMATCH};w&&w!==x&&a.info?.(`Plugin manifest id "${w}" differs from npm package name "${x}"; using manifest id as the config key.`);let j=D.resolve(n.packageDir),P=[];for(let e of v){let t=D.resolve(j,e);if(!r(j,t)){a.warn?.(`extension entry escapes plugin directory and will not be scanned: ${e}`);continue}i(e)&&a.warn?.(`extension entry is in a hidden/node_modules path and will receive targeted scan coverage: ${e}`),P.push(t)}try{let e=await E(n.packageDir,{includeFiles:P});if(e.critical>0){let t=e.findings.filter(e=>e.severity===`critical`).map(e=>`${e.message} (${e.file}:${e.line})`).join(`; `);a.warn?.(`WARNING: Plugin "${T}" contains dangerous code patterns: ${t}`)}else e.warn>0&&a.warn?.(`Plugin "${T}" has ${e.warn} suspicious code pattern(s). Run "openclaw security audit --deep" for details.`)}catch(e){a.warn?.(`Plugin "${T}" code safety scan failed (${String(e)}). Installation continues; run "openclaw security audit --deep" after install.`)}let F=await y({baseDir:n.extensionsDir?t(n.extensionsDir):D.join(e,`extensions`),id:T,invalidNameMessage:`invalid plugin name: path traversal detected`,boundaryLabel:`extensions directory`});if(!F.ok)return{ok:!1,error:F.error};let I=F.targetDir,L=await S({mode:c,targetDir:I,alreadyExistsError:`plugin already exists: ${I} (delete it first)`});if(!L.ok)return L;if(f)return{ok:!0,pluginId:T,targetDir:I,manifestName:b||void 0,version:typeof m.version==`string`?m.version:void 0,extensions:v};let R=m.dependencies??{},z=Object.keys(R).length>0,B=await h({sourceDir:n.packageDir,targetDir:I,mode:c,timeoutMs:s,logger:a,copyErrorPrefix:`failed to copy plugin`,hasDeps:z,depsLogMessage:`Installing plugin dependencies…`,afterCopy:async e=>{for(let t of v){let n=D.resolve(e,t);if(!r(e,n)){a.warn?.(`extension entry escapes plugin directory: ${t}`);continue}await u(n)||a.warn?.(`extension entry not found: ${t}`)}}});return B.ok?{ok:!0,pluginId:T,targetDir:I,manifestName:b||void 0,version:typeof m.version==`string`?m.version:void 0,extensions:v}:B}async function B(e){let t=e.logger??A,n=e.timeoutMs??12e4,r=e.mode??`install`,i=await v(e.archivePath);if(!i.ok)return i;let a=i.path;return await T({archivePath:a,tempDirPrefix:`openclaw-plugin-`,timeoutMs:n,logger:t,onExtracted:async i=>await z({packageDir:i,...I({extensionsDir:e.extensionsDir,timeoutMs:n,logger:t,mode:r,dryRun:e.dryRun,expectedPluginId:e.expectedPluginId})})})}async function V(e){let n=t(e.dirPath);return await u(n)?(await O.stat(n)).isDirectory()?await z({packageDir:n,...I(e)}):{ok:!1,error:`not a directory: ${n}`}:{ok:!1,error:`directory not found: ${n}`}}async function H(n){let{logger:r,mode:i,dryRun:a}=C(n,A),o=t(n.filePath);if(!await u(o))return{ok:!1,error:`file not found: ${o}`};let s=n.extensionsDir?t(n.extensionsDir):D.join(e,`extensions`);await O.mkdir(s,{recursive:!0});let l=D.basename(o,D.extname(o))||`plugin`,d=M(l);if(d)return{ok:!1,error:d};let f=D.join(s,`${j(l)}${D.extname(o)}`),p=await S({mode:i,targetDir:f,alreadyExistsError:`plugin already exists: ${f} (delete it first)`});if(!p.ok)return p;if(a)return F(l,f);r.info?.(`Installing to ${f}…`);try{await c({rootDir:s,relativePath:D.basename(f),sourcePath:o})}catch(e){return{ok:!1,error:String(e)}}return F(l,f)}async function U(e){let{logger:t,timeoutMs:r,mode:i,dryRun:a}=g(e,A),o=e.expectedPluginId,s=e.spec.trim(),c=n(s);if(c)return{ok:!1,error:c,code:k.INVALID_NPM_SPEC};t.info?.(`Downloading ${s}…`);let l=w(await x({tempDirPrefix:`openclaw-npm-pack-`,spec:s,timeoutMs:r,expectedIntegrity:e.expectedIntegrity,onIntegrityDrift:e.onIntegrityDrift,warn:e=>{t.warn?.(e)},installFromArchive:B,archiveInstallParams:{extensionsDir:e.extensionsDir,timeoutMs:r,logger:t,mode:i,dryRun:a,expectedPluginId:o}}));return!l.ok&&P(l.error)?{ok:!1,error:l.error,code:k.NPM_PACKAGE_NOT_FOUND}:l}async function W(e){let t=await b(e.path);if(!t.ok)return t;let{resolvedPath:n,stat:r}=t,i=I(e);return r.isDirectory()?await V({dirPath:n,...i}):m(n)?await B({archivePath:n,...i}):await H({filePath:n,...L(e)})}function G(e){let t=e.lookup.value.trim();if(t){if(e.lookup.kind===`pluginId`)return e.bundled.get(t);for(let n of e.bundled.values())if(n.npmSpec===t)return n}}function K(e){let t=a({workspaceDir:e.workspaceDir}),n=new Map;for(let e of t.candidates){if(e.origin!==`bundled`)continue;let t=o(e.rootDir,!1);if(!t.ok)continue;let r=t.manifest.id;if(n.has(r))continue;let i=e.packageManifest?.install?.npmSpec?.trim()||e.packageName?.trim()||void 0;n.set(r,{pluginId:r,localPath:e.rootDir,npmSpec:i})}return n}function q(e){return G({bundled:K({workspaceDir:e.workspaceDir}),lookup:e.lookup})}function J(e){return _(e)}function Y(e,t){let{pluginId:n,...r}=t,i={...e.plugins?.installs,[n]:{...e.plugins?.installs?.[n],...r,installedAt:r.installedAt??new Date().toISOString()}};return{...e,plugins:{...e.plugins,installs:{...i,[n]:i[n]}}}}export{K as a,W as c,G as i,R as l,Y as n,k as o,q as r,U as s,J as t};
2
- //# sourceMappingURL=installs-DzSskdtJ.js.map
@@ -1,2 +1 @@
1
1
  import{cs as e,is as t,os as n,ya as r}from"./auth-profiles-C8rZRS0X.js";const i=[{value:`off`,label:`Off`,hint:`No Tailscale exposure`},{value:`serve`,label:`Serve`,hint:`Private HTTPS for your tailnet (devices on Tailscale)`},{value:`funnel`,label:`Funnel`,hint:`Public HTTPS via Tailscale Funnel (internet)`}],a=[`Tailscale binary not found in PATH or /Applications.`,`Ensure Tailscale is installed from:`,` https://tailscale.com/download/mac`,``,`You can continue setup, but serve/funnel will fail at runtime.`],o=[`Docs:`,`https://docs.openclaw.ai/gateway/tailscale`,`https://docs.openclaw.ai/web`];function s(t){let r=t.trim().replace(/\.$/,``);if(!r)return null;let i=e(r);return i&&n(i)?`[${i.toString().toLowerCase()}]`:r}function c(e){let t=s(e);if(!t)return null;try{return new URL(`https://${t}`).origin}catch{return null}}function l(e,t){let n=e??[],r=t.toLowerCase();return n.some(e=>e.toLowerCase()===r)?n:[...n,t]}async function u(e){if(e.tailscaleMode!==`serve`&&e.tailscaleMode!==`funnel`)return e.config;let t=await r(void 0,e.tailscaleBin??void 0).then(e=>c(e)).catch(()=>null);if(!t)return e.config;let n=l(e.config.gateway?.controlUi?.allowedOrigins??[],t);return{...e.config,gateway:{...e.config.gateway,controlUi:{...e.config.gateway?.controlUi,allowedOrigins:n}}}}function d(e){if(!e)return`IP address is required for custom bind mode`;if(!t(e))return`Invalid IPv4 address (e.g., 192.168.1.100)`}function f(e){return d(e)}export{u as a,a as i,o as n,i as r,f as t};
2
- //# sourceMappingURL=ipv4-B05QVStj.js.map
@@ -1,2 +1 @@
1
1
  import{Cc as e,Po as t,Tc as n,xc as r}from"./model-selection-BLbnMb5E.js";const i=[{value:`off`,label:`Off`,hint:`No Tailscale exposure`},{value:`serve`,label:`Serve`,hint:`Private HTTPS for your tailnet (devices on Tailscale)`},{value:`funnel`,label:`Funnel`,hint:`Public HTTPS via Tailscale Funnel (internet)`}],a=[`Tailscale binary not found in PATH or /Applications.`,`Ensure Tailscale is installed from:`,` https://tailscale.com/download/mac`,``,`You can continue setup, but serve/funnel will fail at runtime.`],o=[`Docs:`,`https://docs.openclaw.ai/gateway/tailscale`,`https://docs.openclaw.ai/web`];function s(t){let r=t.trim().replace(/\.$/,``);if(!r)return null;let i=n(r);return i&&e(i)?`[${i.toString().toLowerCase()}]`:r}function c(e){let t=s(e);if(!t)return null;try{return new URL(`https://${t}`).origin}catch{return null}}function l(e,t){let n=e??[],r=t.toLowerCase();return n.some(e=>e.toLowerCase()===r)?n:[...n,t]}async function u(e){if(e.tailscaleMode!==`serve`&&e.tailscaleMode!==`funnel`)return e.config;let n=await t(void 0,e.tailscaleBin??void 0).then(e=>c(e)).catch(()=>null);if(!n)return e.config;let r=l(e.config.gateway?.controlUi?.allowedOrigins??[],n);return{...e.config,gateway:{...e.config.gateway,controlUi:{...e.config.gateway?.controlUi,allowedOrigins:r}}}}function d(e){if(!e)return`IP address is required for custom bind mode`;if(!r(e))return`Invalid IPv4 address (e.g., 192.168.1.100)`}function f(e){return d(e)}export{u as a,a as i,o as n,i as r,f as t};
2
- //# sourceMappingURL=ipv4-SeeyR-DH.js.map
@@ -29,4 +29,3 @@ import{D as e,It as t,d as n,g as r,u as i,x as a,y as o}from"./paths-piJASC5k.j
29
29
  `);break;case`code_block`:case`fence`:Ae(t,n.content??``);break;case`html_block`:case`html_inline`:H(t,n.content??``);break;case`table_open`:t.tableMode!==`off`&&(t.table=Me(),t.hasTables=!0);break;case`table_close`:t.table&&(t.tableMode===`bullets`?Fe(t):t.tableMode===`code`&&Ie(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=De());break;case`th_close`:case`td_close`:t.table?.currentCell&&(t.table.currentRow.push(Ne(t.table.currentCell)),t.table.currentCell=null);break;case`hr`:t.text+=`───
30
30
 
31
31
  `;break;default:n.children&&Y(n.children,t);break}}function X(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 Le(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 Re(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 Z(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 Q(e,t,n){let r=Math.max(e.start,t),i=Math.min(e.end,n);return i<=r?null:{start:r,end:i}}function ze(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,style:i.style})}return Z(r)}function Be(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,href:i.href})}return r}function Ve(e,t={}){return $(e,t).ir}function $(e,t={}){let n={listStack:[]},r=we(t).parse(e??``,n);t.enableSpoilers&&Te(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};Y(r,a),X(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:Z(Le(a.styles,c)),links:Re(a.links,c)},hasTables:a.hasTables}}function He(e,t){if(!e.text)return[];if(t<=0||e.text.length<=t)return[e];let n=D(e.text,t),r=[],i=0;return n.forEach((t,n)=>{if(!t)return;if(n>0)for(;i<e.text.length&&/\s/.test(e.text[i]??``);)i+=1;let a=i,o=Math.min(e.text.length,a+t.length);r.push({text:t,styles:ze(e.styles,a,o),links:Be(e.links,a,o)}),i=o}),r}export{S as _,xe as a,oe as c,ce as d,D as f,x as g,ie as h,N as i,T as l,ae as m,Ve as n,Se as o,se as p,$ as r,me as s,He as t,O as u,b as v};
32
- //# sourceMappingURL=ir-B7mdG27k.js.map
@@ -29,4 +29,3 @@ import{D as e,d as t,g as n,u as r,x as i,y as a}from"./paths-CrCoPIVK.js";impor
29
29
  `);break;case`code_block`:case`fence`:Ae(t,n.content??``);break;case`html_block`:case`html_inline`:H(t,n.content??``);break;case`table_open`:t.tableMode!==`off`&&(t.table=Me(),t.hasTables=!0);break;case`table_close`:t.table&&(t.tableMode===`bullets`?Fe(t):t.tableMode===`code`&&Ie(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=De());break;case`th_close`:case`td_close`:t.table?.currentCell&&(t.table.currentRow.push(Ne(t.table.currentCell)),t.table.currentCell=null);break;case`hr`:t.text+=`───
30
30
 
31
31
  `;break;default:n.children&&Y(n.children,t);break}}function X(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 Le(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 Re(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 Z(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 Q(e,t,n){let r=Math.max(e.start,t),i=Math.min(e.end,n);return i<=r?null:{start:r,end:i}}function ze(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,style:i.style})}return Z(r)}function Be(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,href:i.href})}return r}function Ve(e,t={}){return $(e,t).ir}function $(e,t={}){let n={listStack:[]},r=we(t).parse(e??``,n);t.enableSpoilers&&Te(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};Y(r,a),X(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:Z(Le(a.styles,c)),links:Re(a.links,c)},hasTables:a.hasTables}}function He(e,t){if(!e.text)return[];if(t<=0||e.text.length<=t)return[e];let n=D(e.text,t),r=[],i=0;return n.forEach((t,n)=>{if(!t)return;if(n>0)for(;i<e.text.length&&/\s/.test(e.text[i]??``);)i+=1;let a=i,o=Math.min(e.text.length,a+t.length);r.push({text:t,styles:ze(e.styles,a,o),links:Be(e.links,a,o)}),i=o}),r}export{S as _,xe as a,oe as c,ce as d,D as f,x as g,ie as h,N as i,T as l,ae as m,Ve as n,Se as o,se as p,$ as r,me as s,He as t,O as u,b as v};
32
- //# sourceMappingURL=ir-BTfsA9Dd.js.map
@@ -29,4 +29,3 @@ import{S as e,T as t}from"./subsystem-C5XF2Fy5.js";import{y as n}from"./utils-UG
29
29
  `);break;case`code_block`:case`fence`:Ae(t,n.content??``);break;case`html_block`:case`html_inline`:H(t,n.content??``);break;case`table_open`:t.tableMode!==`off`&&(t.table=Me(),t.hasTables=!0);break;case`table_close`:t.table&&(t.tableMode===`bullets`?Fe(t):t.tableMode===`code`&&Ie(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=De());break;case`th_close`:case`td_close`:t.table?.currentCell&&(t.table.currentRow.push(Ne(t.table.currentCell)),t.table.currentCell=null);break;case`hr`:t.text+=`───
30
30
 
31
31
  `;break;default:n.children&&Y(n.children,t);break}}function X(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 Le(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 Re(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 Z(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 Q(e,t,n){let r=Math.max(e.start,t),i=Math.min(e.end,n);return i<=r?null:{start:r,end:i}}function ze(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,style:i.style})}return Z(r)}function Be(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,href:i.href})}return r}function Ve(e,t={}){return $(e,t).ir}function $(e,t={}){let n={listStack:[]},r=we(t).parse(e??``,n);t.enableSpoilers&&Te(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};Y(r,a),X(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:Z(Le(a.styles,c)),links:Re(a.links,c)},hasTables:a.hasTables}}function He(e,t){if(!e.text)return[];if(t<=0||e.text.length<=t)return[e];let n=D(e.text,t),r=[],i=0;return n.forEach((t,n)=>{if(!t)return;if(n>0)for(;i<e.text.length&&/\s/.test(e.text[i]??``);)i+=1;let a=i,o=Math.min(e.text.length,a+t.length);r.push({text:t,styles:ze(e.styles,a,o),links:Be(e.links,a,o)}),i=o}),r}export{C as _,xe as a,oe as c,ce as d,D as f,S as g,re as h,N as i,T as l,ae as m,Ve as n,Se as o,se as p,$ as r,me as s,He as t,O as u,x as v};
32
- //# sourceMappingURL=ir-CNTx85qV.js.map
@@ -29,4 +29,3 @@ import{S as e,T as t}from"./subsystem-BLbY429l.js";import{Dr as n,Er as r,Or as
29
29
  `);break;case`code_block`:case`fence`:Ae(t,n.content??``);break;case`html_block`:case`html_inline`:H(t,n.content??``);break;case`table_open`:t.tableMode!==`off`&&(t.table=Me(),t.hasTables=!0);break;case`table_close`:t.table&&(t.tableMode===`bullets`?Fe(t):t.tableMode===`code`&&Ie(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=De());break;case`th_close`:case`td_close`:t.table?.currentCell&&(t.table.currentRow.push(Ne(t.table.currentCell)),t.table.currentCell=null);break;case`hr`:t.text+=`───
30
30
 
31
31
  `;break;default:n.children&&Y(n.children,t);break}}function X(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 Le(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 Re(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 Z(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 Q(e,t,n){let r=Math.max(e.start,t),i=Math.min(e.end,n);return i<=r?null:{start:r,end:i}}function ze(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,style:i.style})}return Z(r)}function Be(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,href:i.href})}return r}function Ve(e,t={}){return $(e,t).ir}function $(e,t={}){let n={listStack:[]},r=we(t).parse(e??``,n);t.enableSpoilers&&Te(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};Y(r,a),X(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:Z(Le(a.styles,c)),links:Re(a.links,c)},hasTables:a.hasTables}}function He(e,t){if(!e.text)return[];if(t<=0||e.text.length<=t)return[e];let n=D(e.text,t),r=[],i=0;return n.forEach((t,n)=>{if(!t)return;if(n>0)for(;i<e.text.length&&/\s/.test(e.text[i]??``);)i+=1;let a=i,o=Math.min(e.text.length,a+t.length);r.push({text:t,styles:ze(e.styles,a,o),links:Be(e.links,a,o)}),i=o}),r}export{C as _,xe as a,oe as c,ce as d,D as f,S as g,re as h,N as i,T as l,ae as m,Ve as n,Se as o,se as p,$ as r,me as s,He as t,O as u,x as v};
32
- //# sourceMappingURL=ir-DdjufzKF.js.map
@@ -1,2 +1 @@
1
1
  import e from"node:fs";import t from"node:path";function n(n,r){if(!n)return;let i=t.resolve(r,n);try{return e.realpathSync.native(i)}catch{return i}}function r({currentFile:e,argv:r=process.argv,env:i=process.env,cwd:a=process.cwd(),wrapperEntryPairs:o=[]}){let s=n(e,a),c=n(r[1],a);if(s&&c&&s===c)return!0;let l=n(i.pm_exec_path,a);if(s&&l&&s===l)return!0;if(s&&c&&o.length>0){let e=t.basename(s),n=t.basename(c);if(o.some(({wrapperBasename:t,entryBasename:r})=>e===r&&n===t))return!0}return!!(s&&c&&t.basename(s)===t.basename(c))}export{r as t};
2
- //# sourceMappingURL=is-main-DG5ueqhF.js.map
@@ -1,2 +1 @@
1
1
  import{Pl as e}from"./model-selection-BLbnMb5E.js";function t(e){return typeof e==`string`&&e.trim()||`<root>`}function n(e){let n=Array.isArray(e.allowedValues)&&e.allowedValues.length>0;return{path:t(e.path),message:e.message,...n?{allowedValues:e.allowedValues}:{},...n&&typeof e.allowedValuesHiddenCount==`number`&&e.allowedValuesHiddenCount>0?{allowedValuesHiddenCount:e.allowedValuesHiddenCount}:{}}}function r(e){return e.map(e=>n(e))}function i(e,n){return n?.normalizeRoot?t(e):typeof e==`string`?e:``}function a(t,n=`-`,r){return`${n?`${n} `:``}${e(i(t.path,r))}: ${e(t.message)}`}function o(e,t=`-`,n){return e.map(e=>a(e,t,n))}export{o as n,r,a as t};
2
- //# sourceMappingURL=issue-format-BtMzMXtZ.js.map
@@ -1,2 +1 @@
1
1
  import{mc as e}from"./auth-profiles-C8rZRS0X.js";function t(e){return typeof e==`string`&&e.trim()||`<root>`}function n(e){let n=Array.isArray(e.allowedValues)&&e.allowedValues.length>0;return{path:t(e.path),message:e.message,...n?{allowedValues:e.allowedValues}:{},...n&&typeof e.allowedValuesHiddenCount==`number`&&e.allowedValuesHiddenCount>0?{allowedValuesHiddenCount:e.allowedValuesHiddenCount}:{}}}function r(e){return e.map(e=>n(e))}function i(e,n){return n?.normalizeRoot?t(e):typeof e==`string`?e:``}function a(t,n=`-`,r){return`${n?`${n} `:``}${e(i(t.path,r))}: ${e(t.message)}`}function o(e,t=`-`,n){return e.map(e=>a(e,t,n))}export{o as n,r,a as t};
2
- //# sourceMappingURL=issue-format-CN9PHzXY.js.map
@@ -1,3 +1,2 @@
1
1
  import{H as e,t}from"./subsystem-BLbY429l.js";import{u as n}from"./paths-BjD3T_xq.js";import{Jr as r}from"./auth-profiles-C8rZRS0X.js";import{m as i,p as a,u as o}from"./arg-split-BOqSMBuf.js";import{n as s}from"./cmd-argv-Bh-KpaZ0.js";import{spawn as c,spawnSync as l}from"node:child_process";import u from"node:os";import d from"node:path";import f from"node:fs";import{randomUUID as p}from"node:crypto";const m=2e3,h=t(`restart`);function g(){return Date.now()}function _(e){let t=Math.max(0,Math.floor(e));if(!(t<=0))try{let e=new Int32Array(new SharedArrayBuffer(4));Atomics.wait(e,0,0,t)}catch{let e=Date.now();for(;Date.now()-e<t;);}}function v(e){let t=[],n,r;for(let i of e.split(/\r?\n/).filter(Boolean))if(i.startsWith(`p`)){n!=null&&r&&r.toLowerCase().includes(`openclaw`)&&t.push(n);let e=Number.parseInt(i.slice(1),10);n=Number.isFinite(e)&&e>0?e:void 0,r=void 0}else i.startsWith(`c`)&&(r=i.slice(1));return n!=null&&r&&r.toLowerCase().includes(`openclaw`)&&t.push(n),[...new Set(t)].filter(e=>e!==process.pid)}function y(e,t=2e3){if(process.platform===`win32`)return[];let n=l(r(),[`-nP`,`-iTCP:${e}`,`-sTCP:LISTEN`,`-Fpc`],{encoding:`utf8`,timeout:t});if(n.error){let t=n.error.code,r=t&&t.trim().length>0?t:n.error instanceof Error?n.error.message:`unknown error`;return h.warn(`lsof failed during initial stale-pid scan for port ${e}: ${r}`),[]}return n.status===1?[]:n.status===0?v(n.stdout):(h.warn(`lsof exited with status ${n.status} during initial stale-pid scan for port ${e}; skipping stale pid check`),[])}function b(e){try{let t=l(r(),[`-nP`,`-iTCP:${e}`,`-sTCP:LISTEN`,`-Fpc`],{encoding:`utf8`,timeout:400});if(t.error){let e=t.error.code;return{free:null,permanent:e===`ENOENT`||e===`EACCES`||e===`EPERM`}}return t.status===1?t.stdout?v(t.stdout).length===0?{free:!0}:{free:!1}:{free:!0}:t.status===0?v(t.stdout).length===0?{free:!0}:{free:!1}:{free:null,permanent:!1}}catch{return{free:null,permanent:!1}}}function x(e){let t=[];for(let n of e)try{process.kill(n,`SIGTERM`),t.push(n)}catch{}if(t.length===0)return t;_(600);for(let e of t)try{process.kill(e,0),process.kill(e,`SIGKILL`)}catch{}return _(400),t}function ee(e){let t=g()+m;for(;g()<t;){let t=b(e);if(t.free===!0||t.free===null&&t.permanent)return;_(50)}h.warn(`port ${e} still in use after ${m}ms; proceeding anyway`)}function S(e){try{let t=typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):n(void 0,process.env),r=y(t);if(r.length===0)return[];h.warn(`killing ${r.length} stale gateway process(es) before restart: ${r.join(`, `)}`);let i=x(r);return ee(t),i}catch{return[]}}function C(e){return e.OPENCLAW_WINDOWS_TASK_NAME?.trim()||i(e.OPENCLAW_PROFILE)}function w(e){return[`@echo off`,`setlocal`,`set /a attempts=0`,`:retry`,`timeout /t 1 /nobreak >nul`,`set /a attempts+=1`,`schtasks /Run /TN ${s(e)} >nul 2>&1`,`if not errorlevel 1 goto cleanup`,`if %attempts% GEQ 12 goto cleanup`,`goto retry`,`:cleanup`,`del "%~f0" >nul 2>&1`].join(`\r
2
2
  `)}function T(t=process.env){let n=C(t),r=d.join(e(),`openclaw-schtasks-restart-${p()}.cmd`),i=s(r);try{return f.writeFileSync(r,`${w(n)}\r\n`,`utf8`),c(`cmd.exe`,[`/d`,`/s`,`/c`,i],{detached:!0,stdio:`ignore`,windowsHide:!0}).unref(),{ok:!0,method:`schtasks`,tried:[`schtasks /Run /TN "${n}"`,`cmd.exe /d /s /c ${i}`]}}catch(e){try{f.unlinkSync(r)}catch{}return{ok:!1,method:`schtasks`,detail:e instanceof Error?e.message:String(e),tried:[`schtasks /Run /TN "${n}"`]}}}const E=2e3,D=t(`restart`);let O=0,k=0,A=!1,j=null,M=0,N=0,P=0,F=0,I=null,L=0,R;function z(){return N>P}function B(){I&&clearTimeout(I),I=null,L=0,R=void 0}function V(e,t=6){return!Array.isArray(e)||e.length===0?null:e.length<=t?e.join(`,`):`${e.slice(0,t).join(`,`)},+${e.length-t} more`}function H(e){let t=typeof e?.actor==`string`&&e.actor.trim()?e.actor.trim():null,n=typeof e?.deviceId==`string`&&e.deviceId.trim()?e.deviceId.trim():null,r=typeof e?.clientIp==`string`&&e.clientIp.trim()?e.clientIp.trim():null,i=V(e?.changedPaths),a=[];return t&&a.push(`actor=${t}`),n&&a.push(`device=${n}`),r&&a.push(`ip=${r}`),i&&a.push(`changedPaths=${i}`),a.length>0?a.join(` `):`actor=<unknown>`}function U(e){j=e}function W(){if(z())return B(),!1;B(),N=++M,J();try{process.listenerCount(`SIGUSR1`)>0?process.emit(`SIGUSR1`):process.kill(process.pid,`SIGUSR1`)}catch{return N=P,!1}return F=Date.now(),!0}function G(e=Date.now()){O<=0||e<=k||(O=0,k=0)}function K(e){A=e?.allowExternal===!0}function q(){return A}function J(e=0){let t=Math.max(0,Math.floor(e)),n=Date.now()+t+5e3;O+=1,n>k&&(k=n)}function Y(){return G(),O<=0?!1:(--O,O<=0&&(k=0),!0)}function te(){z()&&(P=N)}function X(e){let t=e.pollMs??500,n=Math.max(10,Math.floor(t)),r=e.maxWaitMs??9e4,i=Math.max(n,Math.floor(r)),a;try{a=e.getPendingCount()}catch(t){e.hooks?.onCheckError?.(t),W();return}if(a<=0){e.hooks?.onReady?.(),W();return}e.hooks?.onDeferring?.(a);let o=Date.now(),s=setInterval(()=>{let t;try{t=e.getPendingCount()}catch(t){clearInterval(s),e.hooks?.onCheckError?.(t),W();return}if(t<=0){clearInterval(s),e.hooks?.onReady?.(),W();return}let n=Date.now()-o;n>=i&&(clearInterval(s),e.hooks?.onTimeout?.(t,n),W())},n)}function Z(e){let t=e=>(typeof e==`string`?e:e?e.toString():``).replace(/\s+/g,` `).trim();if(e.error){if(e.error instanceof Error)return e.error.message;if(typeof e.error==`string`)return e.error;try{return JSON.stringify(e.error)}catch{return`unknown error`}}return t(e.stderr)||t(e.stdout)||(typeof e.status==`number`?`exit ${e.status}`:`unknown error`)}function ne(e,t){let n=e?.trim();return n?n.endsWith(`.service`)?n:`${n}.service`:`${a(t)}.service`}function re(){if(process.env.VITEST)return{ok:!0,method:`supervisor`,detail:`test mode`};S();let e=[];if(process.platform===`linux`){let t=ne(process.env.OPENCLAW_SYSTEMD_UNIT,process.env.OPENCLAW_PROFILE),n=[`--user`,`restart`,t];e.push(`systemctl ${n.join(` `)}`);let r=l(`systemctl`,n,{encoding:`utf8`,timeout:E});if(!r.error&&r.status===0)return{ok:!0,method:`systemd`,tried:e};let i=[`restart`,t];e.push(`systemctl ${i.join(` `)}`);let a=l(`systemctl`,i,{encoding:`utf8`,timeout:E});return!a.error&&a.status===0?{ok:!0,method:`systemd`,tried:e}:{ok:!1,method:`systemd`,detail:[`user: ${Z(r)}`,`system: ${Z(a)}`].join(`; `),tried:e}}if(process.platform===`win32`)return T(process.env);if(process.platform!==`darwin`)return{ok:!1,method:`supervisor`,detail:`unsupported platform restart`};let t=process.env.OPENCLAW_LAUNCHD_LABEL||o(process.env.OPENCLAW_PROFILE),n=typeof process.getuid==`function`?process.getuid():void 0,r=n===void 0?`gui/501`:`gui/${n}`,i=`${r}/${t}`,a=[`kickstart`,`-k`,i];e.push(`launchctl ${a.join(` `)}`);let s=l(`launchctl`,a,{encoding:`utf8`,timeout:E});if(!s.error&&s.status===0)return{ok:!0,method:`launchctl`,tried:e};let c=process.env.HOME?.trim()||u.homedir(),f=[`bootstrap`,r,d.join(c,`Library`,`LaunchAgents`,`${t}.plist`)];e.push(`launchctl ${f.join(` `)}`);let p=l(`launchctl`,f,{encoding:`utf8`,timeout:E});if(p.error||p.status!==0&&p.status!==null)return{ok:!1,method:`launchctl`,detail:Z(p),tried:e};let m=[`kickstart`,`-k`,i];e.push(`launchctl ${m.join(` `)}`);let h=l(`launchctl`,m,{encoding:`utf8`,timeout:E});return!h.error&&h.status===0?{ok:!0,method:`launchctl`,tried:e}:{ok:!1,method:`launchctl`,detail:Z(h),tried:e}}function ie(e){let t=typeof e?.delayMs==`number`&&Number.isFinite(e.delayMs)?Math.floor(e.delayMs):2e3,n=Math.min(Math.max(t,0),6e4),r=typeof e?.reason==`string`&&e.reason.trim()?e.reason.trim().slice(0,200):void 0,i=process.listenerCount(`SIGUSR1`)>0?`emit`:`signal`,a=Date.now(),o=Math.max(0,F+3e4-a),s=a+n+o;if(z())return D.warn(`restart request coalesced (already in-flight) reason=${r??`unspecified`} ${H(e?.audit)}`),{ok:!0,pid:process.pid,signal:`SIGUSR1`,delayMs:0,reason:r,mode:i,coalesced:!0,cooldownMsApplied:o};if(I){let t=Math.max(0,L-a);if(s<L)D.warn(`restart request rescheduled earlier reason=${r??`unspecified`} pendingReason=${R??`unspecified`} oldDelayMs=${t} newDelayMs=${Math.max(0,s-a)} ${H(e?.audit)}`),B();else return D.warn(`restart request coalesced (already scheduled) reason=${r??`unspecified`} pendingReason=${R??`unspecified`} delayMs=${t} ${H(e?.audit)}`),{ok:!0,pid:process.pid,signal:`SIGUSR1`,delayMs:t,reason:r,mode:i,coalesced:!0,cooldownMsApplied:o}}return L=s,R=r,I=setTimeout(()=>{I=null,L=0,R=void 0;let e=j;if(!e){W();return}X({getPendingCount:e})},Math.max(0,s-a)),{ok:!0,pid:process.pid,signal:`SIGUSR1`,delayMs:Math.max(0,s-a),reason:r,mode:i,coalesced:!1,cooldownMsApplied:o}}function ae(e,t){if(!Number.isFinite(e)||e<=0)return;let n=oe(t?.graceMs);if(process.platform===`win32`){ce(e,n);return}se(e,n)}function oe(e){return typeof e!=`number`||!Number.isFinite(e)?3e3:Math.max(0,Math.min(6e4,Math.floor(e)))}function Q(e){try{return process.kill(e,0),!0}catch{return!1}}function se(e,t){try{process.kill(-e,`SIGTERM`)}catch{try{process.kill(e,`SIGTERM`)}catch{return}}setTimeout(()=>{if(Q(-e))try{process.kill(-e,`SIGKILL`);return}catch{}if(Q(e))try{process.kill(e,`SIGKILL`)}catch{}},t).unref()}function $(e){try{c(`taskkill`,e,{stdio:`ignore`,detached:!0})}catch{}}function ce(e,t){$([`/T`,`/PID`,String(e)]),setTimeout(()=>{Q(e)&&$([`/F`,`/T`,`/PID`,String(e)])},t).unref()}export{q as a,K as c,S as d,y as f,W as i,U as l,Y as n,te as o,X as r,ie as s,ae as t,re as u};
3
- //# sourceMappingURL=kill-tree-D6nPx1_o.js.map
@@ -1,3 +1,2 @@
1
1
  import{d as e}from"./paths-B4IRk3wi.js";import{A as t,N as n,O as r,k as i,p as a}from"./subsystem-C5XF2Fy5.js";import{Xs as o,Zs as s,ro as c,to as l}from"./model-selection-BLbnMb5E.js";import{t as u}from"./command-format-BbDT1tlm.js";import{t as d}from"./wsl-Ok7GaSJ6.js";import{m as f,p,u as m}from"./arg-split-DE5RqDHq.js";import{n as h}from"./issue-format-BtMzMXtZ.js";import{i as g}from"./systemd-D7odsu4K.js";import{t as _}from"./service-BtB9epJk.js";import{a as v,c as y,l as b,n as x}from"./systemd-hints-CEQj6yrs.js";import{t as S}from"./parse-port-Bv1Y9Wk5.js";import{Writable as C}from"node:stream";function w(e){a.log(JSON.stringify(e,null,2))}function T(e,t){return{label:e.label,loaded:t,loadedText:e.loadedText,notLoadedText:e.notLoadedText}}function E(){return new C({write(e,t,n){n()}})}function D(e){let t=[],n=e.json?E():process.stdout,r=n=>{e.json&&w({action:e.action,...n,warnings:n.warnings??(t.length?t:void 0)})};return{stdout:n,warnings:t,emit:r,fail:(t,n)=>{if(e.json)r({ok:!1,error:t,hints:n});else if(a.error(t),n?.length)for(let e of n)a.log(`Tip: ${e}`);a.exit(1)}}}async function O(e){try{await e.install()}catch(t){e.fail(`${e.serviceNoun} install failed: ${String(t)}`);return}let t=!0;try{t=await e.service.isLoaded({env:process.env})}catch{t=!0}e.emit({ok:!0,result:`installed`,service:T(e.service,t),warnings:e.warnings.length?e.warnings:void 0})}function k(){let e=i();return{rich:e,label:n=>r(e,t.muted,n),accent:n=>r(e,t.accent,n),infoText:n=>r(e,t.info,n),okText:n=>r(e,t.success,n),warnText:n=>r(e,t.warn,n),errorText:n=>r(e,t.error,n)}}function A(e){let n=e??`unknown`;return n===`running`?t.success:n===`stopped`?t.error:n===`unknown`?t.muted:t.warn}function j(e){if(!e?.length)return null;for(let t=0;t<e.length;t+=1){let n=e[t];if(n===`--port`){let n=e[t+1],r=S(n);if(r)return r}if(n?.startsWith(`--port=`)){let e=S(n.split(`=`,2)[1]);if(e)return e}}return null}function M(e,t,n){return e===`custom`&&n?.trim()?n.trim():e===`tailnet`?t??`127.0.0.1`:`127.0.0.1`}const N=[`OPENCLAW_PROFILE`,`OPENCLAW_STATE_DIR`,`OPENCLAW_CONFIG_PATH`,`OPENCLAW_GATEWAY_PORT`,`OPENCLAW_NIX_MODE`];function P(e){if(!e)return{};let t={};for(let n of N){let r=e[n];r?.trim()&&(t[n]=r.trim())}return t}function F(e){let t=P(e);return Object.entries(t).map(([e,t])=>`${e}=${t}`)}function I(e){let t=e.trim();return t&&(t=t.replace(/^TCP\s+/i,``),t=t.replace(/\s+\(LISTEN\)\s*$/i,``),t.trim())}function L(e,t=process.env){if(!e)return[];let r=[],i=(()=>{try{return n().file}catch{return null}})();return e.missingUnit?(r.push(`Service not installed. Run: ${u(`openclaw gateway install`,t)}`),i&&r.push(`File logs: ${i}`),r):(e.status===`stopped`&&(i&&r.push(`File logs: ${i}`),r.push(...y({env:t,systemdServiceName:p(t.OPENCLAW_PROFILE),windowsTaskName:f(t.OPENCLAW_PROFILE)}))),r)}function R(e=process.env){let t=e.OPENCLAW_PROFILE;return b({installCommand:u(`openclaw gateway install`,e),startCommand:u(`openclaw gateway`,e),launchAgentPlistPath:`~/Library/LaunchAgents/${m(t)}.plist`,systemdServiceName:p(t),windowsTaskName:f(t)})}function z(e){return e.env,c({cfg:e.cfg}).token}async function B(e){return process.platform!==`linux`||await g().catch(()=>!1)?e:[...e,...x({wsl:await d()})]}function V(e){let t=e.json?E():process.stdout,n=t=>{e.json&&w({action:e.action,...t})};return{stdout:t,emit:n,fail:(t,r)=>{e.json?n({ok:!1,error:t,hints:r}):a.error(t),a.exit(1)}}}async function H(e){let t=await B(e.renderStartHints());if(e.emit({ok:!0,result:`not-loaded`,message:`${e.serviceNoun} service ${e.service.notLoadedText}.`,hints:t,service:T(e.service,e.loaded)}),!e.json){a.log(`${e.serviceNoun} service ${e.service.notLoadedText}.`);for(let e of t)a.log(`Start with: ${e}`)}}async function U(e){try{return await e.service.isLoaded({env:process.env})}catch(t){return e.fail(`${e.serviceNoun} service check failed: ${String(t)}`),null}}async function W(){try{let e=await s();return!e.exists||e.valid?null:e.issues.length>0?h(e.issues,``,{normalizeRoot:!0}).join(`
2
2
  `):`Unknown validation issue.`}catch{return null}}async function G(t){let{stdout:n,emit:r,fail:i}=V({action:`uninstall`,json:!!t.opts?.json});if(e(process.env)){i(`Nix mode detected; service uninstall is disabled.`);return}let a=!1;try{a=await t.service.isLoaded({env:process.env})}catch{a=!1}if(a&&t.stopBeforeUninstall)try{await t.service.stop({env:process.env,stdout:n})}catch{}try{await t.service.uninstall({env:process.env,stdout:n})}catch(e){i(`${t.serviceNoun} uninstall failed: ${String(e)}`);return}a=!1;try{a=await t.service.isLoaded({env:process.env})}catch{a=!1}if(a&&t.assertNotLoadedAfterUninstall){i(`${t.serviceNoun} service still loaded after uninstall.`);return}r({ok:!0,result:`uninstalled`,service:T(t.service,a)})}async function K(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:i}=V({action:`start`,json:t}),o=await U({serviceNoun:e.serviceNoun,service:e.service,fail:i});if(o===null)return;if(!o){await H({serviceNoun:e.serviceNoun,service:e.service,loaded:o,renderStartHints:e.renderStartHints,json:t,emit:r});return}{let t=await W();if(t){i(`${e.serviceNoun} aborted: config is invalid.\n${t}\nFix the config and retry, or run "openclaw doctor" to repair.`);return}}try{let i=await e.service.restart({env:process.env,stdout:n}),s=_(e.serviceNoun,i);if(s.scheduled){r({ok:!0,result:s.daemonActionResult,message:s.message,service:T(e.service,o)}),t||a.log(s.message);return}}catch(t){let n=e.renderStartHints();i(`${e.serviceNoun} start failed: ${String(t)}`,n);return}let s=!0;try{s=await e.service.isLoaded({env:process.env})}catch{s=!0}r({ok:!0,result:`started`,service:T(e.service,s)})}async function q(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:i}=V({action:`stop`,json:t}),o=await U({serviceNoun:e.serviceNoun,service:e.service,fail:i});if(o===null)return;if(!o){try{let o=await e.onNotLoaded?.({json:t,stdout:n,fail:i});if(o){r({ok:!0,result:o.result,message:o.message,warnings:o.warnings,service:T(e.service,!1)}),!t&&o.message&&a.log(o.message);return}}catch(t){i(`${e.serviceNoun} stop failed: ${String(t)}`);return}r({ok:!0,result:`not-loaded`,message:`${e.serviceNoun} service ${e.service.notLoadedText}.`,service:T(e.service,o)}),t||a.log(`${e.serviceNoun} service ${e.service.notLoadedText}.`);return}try{await e.service.stop({env:process.env,stdout:n})}catch(t){i(`${e.serviceNoun} stop failed: ${String(t)}`);return}let s=!1;try{s=await e.service.isLoaded({env:process.env})}catch{s=!1}r({ok:!0,result:`stopped`,service:T(e.service,s)})}async function J(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:i}=V({action:`restart`,json:t}),s=[],c=null,u=await U({serviceNoun:e.serviceNoun,service:e.service,fail:i});if(u===null)return!1;{let t=await W();if(t)return i(`${e.serviceNoun} aborted: config is invalid.\n${t}\nFix the config and retry, or run "openclaw doctor" to repair.`),!1}if(!u){try{c=await e.onNotLoaded?.({json:t,stdout:n,fail:i})??null}catch(t){return i(`${e.serviceNoun} restart failed: ${String(t)}`),!1}if(!c)return await H({serviceNoun:e.serviceNoun,service:e.service,loaded:u,renderStartHints:e.renderStartHints,json:t,emit:r}),!1;c.warnings?.length&&s.push(...c.warnings)}if(u&&e.checkTokenDrift)try{let n=(await e.service.readCommand(process.env))?.environment?.OPENCLAW_GATEWAY_TOKEN,r=v({serviceToken:n,configToken:z({cfg:await o(),env:process.env})});if(r){let e=r.detail?`${r.message} ${r.detail}`:r.message;s.push(e),t||(a.log(`\n⚠️ ${r.message}`),r.detail&&a.log(` ${r.detail}\n`))}}catch(e){if(l(e,`gateway.auth.token`)){let e=`Unable to verify gateway token drift: gateway.auth.token SecretRef is configured but unavailable in this command path.`;s.push(e),t||a.log(`\n⚠️ ${e}\n`)}}try{let o={outcome:`completed`};u&&(o=await e.service.restart({env:process.env,stdout:n}));let l=_(e.serviceNoun,o);if(l.scheduled)return r({ok:!0,result:l.daemonActionResult,message:l.message,service:T(e.service,u),warnings:s.length?s:void 0}),t||a.log(l.message),!0;if(e.postRestartCheck){let o=await e.postRestartCheck({json:t,stdout:n,warnings:s,fail:i});if(o&&(l=_(e.serviceNoun,o),l.scheduled))return r({ok:!0,result:l.daemonActionResult,message:l.message,service:T(e.service,u),warnings:s.length?s:void 0}),t||a.log(l.message),!0}let d=u;if(u)try{d=await e.service.isLoaded({env:process.env})}catch{d=!0}return r({ok:!0,result:`restarted`,message:c?.message,service:T(e.service,d),warnings:s.length?s:void 0}),!t&&c?.message&&a.log(c.message),!0}catch(t){let n=e.renderStartHints();return i(`${e.serviceNoun} restart failed: ${String(t)}`,n),!1}}export{k as a,j as c,L as d,A as f,O as g,D as h,G as i,M as l,T as m,K as n,P as o,F as p,q as r,I as s,J as t,R as u};
3
- //# sourceMappingURL=lifecycle-core-B1nrgJCw.js.map
@@ -1,3 +1,2 @@
1
1
  import{A as e,N as t,O as n,k as r,p as i}from"./subsystem-BLbY429l.js";import{d as a}from"./paths-BjD3T_xq.js";import{Bi as o,Fo as s,Hi as c,Po as l}from"./auth-profiles-C8rZRS0X.js";import{t as u}from"./command-format-CLxIPuLR.js";import{m as d,p as f,u as p}from"./arg-split-BOqSMBuf.js";import{t as m}from"./wsl-DHxB2Ew_.js";import{n as h}from"./issue-format-CN9PHzXY.js";import{i as g}from"./systemd-DbevZh65.js";import{t as _}from"./service-DZ9EbS15.js";import{a as v,c as y,l as b,n as x}from"./systemd-hints-lXpMy-kY.js";import{t as S}from"./parse-port-JVwkxcZ8.js";import{Writable as C}from"node:stream";function w(e){i.log(JSON.stringify(e,null,2))}function T(e,t){return{label:e.label,loaded:t,loadedText:e.loadedText,notLoadedText:e.notLoadedText}}function E(){return new C({write(e,t,n){n()}})}function D(e){let t=[],n=e.json?E():process.stdout,r=n=>{e.json&&w({action:e.action,...n,warnings:n.warnings??(t.length?t:void 0)})};return{stdout:n,warnings:t,emit:r,fail:(t,n)=>{if(e.json)r({ok:!1,error:t,hints:n});else if(i.error(t),n?.length)for(let e of n)i.log(`Tip: ${e}`);i.exit(1)}}}async function O(e){try{await e.install()}catch(t){e.fail(`${e.serviceNoun} install failed: ${String(t)}`);return}let t=!0;try{t=await e.service.isLoaded({env:process.env})}catch{t=!0}e.emit({ok:!0,result:`installed`,service:T(e.service,t),warnings:e.warnings.length?e.warnings:void 0})}function k(){let t=r();return{rich:t,label:r=>n(t,e.muted,r),accent:r=>n(t,e.accent,r),infoText:r=>n(t,e.info,r),okText:r=>n(t,e.success,r),warnText:r=>n(t,e.warn,r),errorText:r=>n(t,e.error,r)}}function A(t){let n=t??`unknown`;return n===`running`?e.success:n===`stopped`?e.error:n===`unknown`?e.muted:e.warn}function j(e){if(!e?.length)return null;for(let t=0;t<e.length;t+=1){let n=e[t];if(n===`--port`){let n=e[t+1],r=S(n);if(r)return r}if(n?.startsWith(`--port=`)){let e=S(n.split(`=`,2)[1]);if(e)return e}}return null}function M(e,t,n){return e===`custom`&&n?.trim()?n.trim():e===`tailnet`?t??`127.0.0.1`:`127.0.0.1`}const N=[`OPENCLAW_PROFILE`,`OPENCLAW_STATE_DIR`,`OPENCLAW_CONFIG_PATH`,`OPENCLAW_GATEWAY_PORT`,`OPENCLAW_NIX_MODE`];function P(e){if(!e)return{};let t={};for(let n of N){let r=e[n];r?.trim()&&(t[n]=r.trim())}return t}function F(e){let t=P(e);return Object.entries(t).map(([e,t])=>`${e}=${t}`)}function I(e){let t=e.trim();return t&&(t=t.replace(/^TCP\s+/i,``),t=t.replace(/\s+\(LISTEN\)\s*$/i,``),t.trim())}function L(e,n=process.env){if(!e)return[];let r=[],i=(()=>{try{return t().file}catch{return null}})();return e.missingUnit?(r.push(`Service not installed. Run: ${u(`openclaw gateway install`,n)}`),i&&r.push(`File logs: ${i}`),r):(e.status===`stopped`&&(i&&r.push(`File logs: ${i}`),r.push(...y({env:n,systemdServiceName:f(n.OPENCLAW_PROFILE),windowsTaskName:d(n.OPENCLAW_PROFILE)}))),r)}function R(e=process.env){let t=e.OPENCLAW_PROFILE;return b({installCommand:u(`openclaw gateway install`,e),startCommand:u(`openclaw gateway`,e),launchAgentPlistPath:`~/Library/LaunchAgents/${p(t)}.plist`,systemdServiceName:f(t),windowsTaskName:d(t)})}function z(e){return e.env,c({cfg:e.cfg}).token}async function B(e){return process.platform!==`linux`||await g().catch(()=>!1)?e:[...e,...x({wsl:await m()})]}function V(e){let t=e.json?E():process.stdout,n=t=>{e.json&&w({action:e.action,...t})};return{stdout:t,emit:n,fail:(t,r)=>{e.json?n({ok:!1,error:t,hints:r}):i.error(t),i.exit(1)}}}async function H(e){let t=await B(e.renderStartHints());if(e.emit({ok:!0,result:`not-loaded`,message:`${e.serviceNoun} service ${e.service.notLoadedText}.`,hints:t,service:T(e.service,e.loaded)}),!e.json){i.log(`${e.serviceNoun} service ${e.service.notLoadedText}.`);for(let e of t)i.log(`Start with: ${e}`)}}async function U(e){try{return await e.service.isLoaded({env:process.env})}catch(t){return e.fail(`${e.serviceNoun} service check failed: ${String(t)}`),null}}async function W(){try{let e=await s();return!e.exists||e.valid?null:e.issues.length>0?h(e.issues,``,{normalizeRoot:!0}).join(`
2
2
  `):`Unknown validation issue.`}catch{return null}}async function G(e){let{stdout:t,emit:n,fail:r}=V({action:`uninstall`,json:!!e.opts?.json});if(a(process.env)){r(`Nix mode detected; service uninstall is disabled.`);return}let i=!1;try{i=await e.service.isLoaded({env:process.env})}catch{i=!1}if(i&&e.stopBeforeUninstall)try{await e.service.stop({env:process.env,stdout:t})}catch{}try{await e.service.uninstall({env:process.env,stdout:t})}catch(t){r(`${e.serviceNoun} uninstall failed: ${String(t)}`);return}i=!1;try{i=await e.service.isLoaded({env:process.env})}catch{i=!1}if(i&&e.assertNotLoadedAfterUninstall){r(`${e.serviceNoun} service still loaded after uninstall.`);return}n({ok:!0,result:`uninstalled`,service:T(e.service,i)})}async function K(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:a}=V({action:`start`,json:t}),o=await U({serviceNoun:e.serviceNoun,service:e.service,fail:a});if(o===null)return;if(!o){await H({serviceNoun:e.serviceNoun,service:e.service,loaded:o,renderStartHints:e.renderStartHints,json:t,emit:r});return}{let t=await W();if(t){a(`${e.serviceNoun} aborted: config is invalid.\n${t}\nFix the config and retry, or run "openclaw doctor" to repair.`);return}}try{let a=await e.service.restart({env:process.env,stdout:n}),s=_(e.serviceNoun,a);if(s.scheduled){r({ok:!0,result:s.daemonActionResult,message:s.message,service:T(e.service,o)}),t||i.log(s.message);return}}catch(t){let n=e.renderStartHints();a(`${e.serviceNoun} start failed: ${String(t)}`,n);return}let s=!0;try{s=await e.service.isLoaded({env:process.env})}catch{s=!0}r({ok:!0,result:`started`,service:T(e.service,s)})}async function q(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:a}=V({action:`stop`,json:t}),o=await U({serviceNoun:e.serviceNoun,service:e.service,fail:a});if(o===null)return;if(!o){try{let o=await e.onNotLoaded?.({json:t,stdout:n,fail:a});if(o){r({ok:!0,result:o.result,message:o.message,warnings:o.warnings,service:T(e.service,!1)}),!t&&o.message&&i.log(o.message);return}}catch(t){a(`${e.serviceNoun} stop failed: ${String(t)}`);return}r({ok:!0,result:`not-loaded`,message:`${e.serviceNoun} service ${e.service.notLoadedText}.`,service:T(e.service,o)}),t||i.log(`${e.serviceNoun} service ${e.service.notLoadedText}.`);return}try{await e.service.stop({env:process.env,stdout:n})}catch(t){a(`${e.serviceNoun} stop failed: ${String(t)}`);return}let s=!1;try{s=await e.service.isLoaded({env:process.env})}catch{s=!1}r({ok:!0,result:`stopped`,service:T(e.service,s)})}async function J(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:a}=V({action:`restart`,json:t}),s=[],c=null,u=await U({serviceNoun:e.serviceNoun,service:e.service,fail:a});if(u===null)return!1;{let t=await W();if(t)return a(`${e.serviceNoun} aborted: config is invalid.\n${t}\nFix the config and retry, or run "openclaw doctor" to repair.`),!1}if(!u){try{c=await e.onNotLoaded?.({json:t,stdout:n,fail:a})??null}catch(t){return a(`${e.serviceNoun} restart failed: ${String(t)}`),!1}if(!c)return await H({serviceNoun:e.serviceNoun,service:e.service,loaded:u,renderStartHints:e.renderStartHints,json:t,emit:r}),!1;c.warnings?.length&&s.push(...c.warnings)}if(u&&e.checkTokenDrift)try{let n=(await e.service.readCommand(process.env))?.environment?.OPENCLAW_GATEWAY_TOKEN,r=v({serviceToken:n,configToken:z({cfg:await l(),env:process.env})});if(r){let e=r.detail?`${r.message} ${r.detail}`:r.message;s.push(e),t||(i.log(`\n⚠️ ${r.message}`),r.detail&&i.log(` ${r.detail}\n`))}}catch(e){if(o(e,`gateway.auth.token`)){let e=`Unable to verify gateway token drift: gateway.auth.token SecretRef is configured but unavailable in this command path.`;s.push(e),t||i.log(`\n⚠️ ${e}\n`)}}try{let o={outcome:`completed`};u&&(o=await e.service.restart({env:process.env,stdout:n}));let l=_(e.serviceNoun,o);if(l.scheduled)return r({ok:!0,result:l.daemonActionResult,message:l.message,service:T(e.service,u),warnings:s.length?s:void 0}),t||i.log(l.message),!0;if(e.postRestartCheck){let o=await e.postRestartCheck({json:t,stdout:n,warnings:s,fail:a});if(o&&(l=_(e.serviceNoun,o),l.scheduled))return r({ok:!0,result:l.daemonActionResult,message:l.message,service:T(e.service,u),warnings:s.length?s:void 0}),t||i.log(l.message),!0}let d=u;if(u)try{d=await e.service.isLoaded({env:process.env})}catch{d=!0}return r({ok:!0,result:`restarted`,message:c?.message,service:T(e.service,d),warnings:s.length?s:void 0}),!t&&c?.message&&i.log(c.message),!0}catch(t){let n=e.renderStartHints();return a(`${e.serviceNoun} restart failed: ${String(t)}`,n),!1}}export{k as a,j as c,L as d,A as f,O as g,D as h,G as i,M as l,T as m,K as n,P as o,F as p,q as r,I as s,J as t,R as u};
3
- //# sourceMappingURL=lifecycle-core-D_LWJeD_.js.map
@@ -1,2 +1 @@
1
1
  import{a as e,i as t,o as n,t as r}from"../secret-file-DuWm26jS.js";import{t as i}from"../account-lookup-CW-_CL7y.js";import"../utils-R-mFyVJi.js";function a(e){return r(e,`LINE credential file`,{rejectSymlink:!0})}function o(e){let{accountId:t,baseConfig:n,accountConfig:r}=e;if(r?.channelAccessToken?.trim())return{token:r.channelAccessToken.trim(),tokenSource:`config`};let i=a(r?.tokenFile);if(i)return{token:i,tokenSource:`file`};if(t===`default`){if(n?.channelAccessToken?.trim())return{token:n.channelAccessToken.trim(),tokenSource:`config`};let e=a(n?.tokenFile);if(e)return{token:e,tokenSource:`file`};let t=process.env.LINE_CHANNEL_ACCESS_TOKEN?.trim();if(t)return{token:t,tokenSource:`env`}}return{token:``,tokenSource:`none`}}function s(e){let{accountId:t,baseConfig:n,accountConfig:r}=e;if(r?.channelSecret?.trim())return r.channelSecret.trim();let i=a(r?.secretFile);if(i)return i;if(t===`default`){if(n?.channelSecret?.trim())return n.channelSecret.trim();let e=a(n?.secretFile);if(e)return e;let t=process.env.LINE_CHANNEL_SECRET?.trim();if(t)return t}return``}function c(t){let n=t.cfg,r=e(t.accountId),a=n.channels?.line,c=a?.accounts,l=r===`default`?void 0:i(c,r),{token:u,tokenSource:d}=o({accountId:r,baseConfig:a,accountConfig:l}),f=s({accountId:r,baseConfig:a,accountConfig:l}),{accounts:p,defaultAccount:m,...h}=a??{},g={...h,...l},_=l?.enabled??(r===`default`?a?.enabled??!0:!1);return{accountId:r,name:l?.name??(r===`default`?a?.name:void 0),enabled:_,channelAccessToken:u,channelSecret:f,tokenSource:d,config:g}}function l(e){let n=e.channels?.line,r=n?.accounts,i=new Set;if((n?.channelAccessToken?.trim()||n?.tokenFile||process.env.LINE_CHANNEL_ACCESS_TOKEN?.trim())&&i.add(t),r)for(let e of Object.keys(r))i.add(e);return Array.from(i)}function u(r){let i=n(r.channels?.line?.defaultAccount);if(i&&l(r).some(t=>e(t)===i))return i;let a=l(r);return a.includes(`default`)?t:a[0]??`default`}function d(t){return e(t)}export{t as DEFAULT_ACCOUNT_ID,l as listLineAccountIds,d as normalizeAccountId,u as resolveDefaultLineAccountId,c as resolveLineAccount};
2
- //# sourceMappingURL=accounts.js.map
package/dist/line/send.js CHANGED
@@ -1,2 +1 @@
1
1
  import{t as e}from"../config-Cji73to5.js";import"../secret-file-DuWm26jS.js";import"../token-DnTmiyJu.js";import{f as t}from"../utils-R-mFyVJi.js";import"../proxy-env-DrC3TIGh.js";import{t as n}from"../channel-activity-B04WbrrK.js";import{resolveLineAccount as r}from"./accounts.js";import{messagingApi as i}from"@line/bot-sdk";function a(e,t){if(e?.trim())return e.trim();if(!t.channelAccessToken)throw Error(`LINE channel access token missing for account "${t.accountId}" (set channels.line.channelAccessToken or LINE_CHANNEL_ACCESS_TOKEN).`);return t.channelAccessToken.trim()}const o=new Map;function s(e){let t=e.trim();if(!t)throw Error(`Recipient is required for LINE sends`);let n=t.replace(/^line:group:/i,``).replace(/^line:room:/i,``).replace(/^line:user:/i,``).replace(/^line:/i,``);if(!n)throw Error(`Recipient is required for LINE sends`);return n}function c(t){let n=r({cfg:t.cfg??e(),accountId:t.accountId}),o=a(t.channelAccessToken,n);return{account:n,client:new i.MessagingApiClient({channelAccessToken:o})}}function l(e,t){let{account:n,client:r}=c(t);return{account:n,client:r,chatId:s(e)}}function u(e){return{type:`text`,text:e}}function d(e,t){return{type:`image`,originalContentUrl:e,previewImageUrl:t??e}}function f(e){return{type:`location`,title:e.title.slice(0,100),address:e.address.slice(0,100),latitude:e.latitude,longitude:e.longitude}}function p(e,n){if(!e||typeof e!=`object`)return;let{status:r,statusText:i,body:a}=e;typeof a==`string`&&t(`line: ${n} failed (${r?`${r} ${i??``}`.trim():`unknown status`}): ${a}`)}function m(e){n({channel:`line`,accountId:e,direction:`outbound`})}async function h(e,n,r={},i={}){if(n.length===0)throw Error(`Message must be non-empty for LINE sends`);let{account:a,client:o,chatId:s}=l(e,r),c=o.pushMessage({to:s,messages:n});if(i.errorContext){let e=i.errorContext;await c.catch(t=>{throw p(t,e),t})}else await c;return m(a.accountId),r.verbose&&t(i.verboseMessage?.(s,n.length)??`line: pushed ${n.length} messages to ${s}`),{messageId:`push`,chatId:s}}async function g(e,n,r={},i={}){let{account:a,client:o}=c(r);await o.replyMessage({replyToken:e,messages:n}),m(a.accountId),r.verbose&&t(i.verboseMessage?.(n.length)??`line: replied with ${n.length} messages`)}async function _(e,t,n={}){let r=s(e),i=[];if(n.mediaUrl?.trim()&&i.push(d(n.mediaUrl.trim())),t?.trim()&&i.push(u(t.trim())),i.length===0)throw Error(`Message must be non-empty for LINE sends`);return n.replyToken?(await g(n.replyToken,i,n,{verboseMessage:()=>`line: replied to ${r}`}),{messageId:`reply`,chatId:r}):h(r,i,n,{verboseMessage:e=>`line: pushed message to ${e}`})}async function v(e,t,n={}){return _(e,t,{...n,replyToken:void 0})}async function y(e,t,n={}){await g(e,t,n)}async function b(e,t,n={}){return h(e,t,n,{errorContext:`push message`})}function x(e,t){return{type:`flex`,altText:e,contents:t}}async function S(e,t,n,r={}){return h(e,[d(t,n)],r,{verboseMessage:e=>`line: pushed image to ${e}`})}async function C(e,t,n={}){return h(e,[f(t)],n,{verboseMessage:e=>`line: pushed location to ${e}`})}async function w(e,t,n,r={}){return h(e,[{type:`flex`,altText:t.slice(0,400),contents:n}],r,{errorContext:`push flex message`,verboseMessage:e=>`line: pushed flex message to ${e}`})}async function T(e,t,n={}){return h(e,[t],n,{verboseMessage:e=>`line: pushed template message to ${e}`})}async function E(e,t,n,r={}){return h(e,[O(t,n)],r,{verboseMessage:e=>`line: pushed message with quick replies to ${e}`})}function D(e){return{items:e.slice(0,13).map(e=>({type:`action`,action:{type:`message`,label:e.slice(0,20),text:e}}))}}function O(e,t){return{type:`text`,text:e,quickReply:D(t)}}async function k(e,n={}){let{client:r}=c(n);try{await r.showLoadingAnimation({chatId:s(e),loadingSeconds:n.loadingSeconds??20}),t(`line: showing loading animation to ${e}`)}catch(e){t(`line: loading animation failed (non-fatal): ${String(e)}`)}}async function A(e,n={}){if(n.useCache??!0){let t=o.get(e);if(t&&Date.now()-t.fetchedAt<3e5)return{displayName:t.displayName,pictureUrl:t.pictureUrl}}let{client:r}=c(n);try{let t=await r.getProfile(e),n={displayName:t.displayName,pictureUrl:t.pictureUrl};return o.set(e,{...n,fetchedAt:Date.now()}),n}catch(n){return t(`line: failed to fetch profile for ${e}: ${String(n)}`),null}}async function j(e,t={}){return(await A(e,t))?.displayName??e}export{x as createFlexMessage,d as createImageMessage,f as createLocationMessage,D as createQuickReplyItems,O as createTextMessageWithQuickReplies,j as getUserDisplayName,A as getUserProfile,w as pushFlexMessage,S as pushImageMessage,C as pushLocationMessage,v as pushMessageLine,b as pushMessagesLine,T as pushTemplateMessage,E as pushTextMessageWithQuickReplies,y as replyMessageLine,_ as sendMessageLine,k as showLoadingAnimation};
2
- //# sourceMappingURL=send.js.map
@@ -1,2 +1 @@
1
1
  function e(e,t){return{type:`message`,label:e.slice(0,20),text:t??e}}function t(e,t){return{type:`uri`,label:e.slice(0,20),uri:t}}function n(e,t,n){return{type:`postback`,label:e.slice(0,20),data:t.slice(0,300),displayText:n?.slice(0,300)}}function r(e,t,n,r){return{type:`datetimepicker`,label:e.slice(0,20),data:t.slice(0,300),mode:n,initial:r?.initial,max:r?.max,min:r?.min}}function i(r){return r.type===`uri`&&r.uri?t(r.label,r.uri):r.type===`postback`&&r.data?n(r.label,r.data,r.label):e(r.label,r.data??r.label)}function a(e,t,n,r){let i={type:`confirm`,text:e.slice(0,240),actions:[t,n]};return{type:`template`,altText:r?.slice(0,400)??e.slice(0,400),template:i}}function o(e,t,n,r){let i=r?.thumbnailImageUrl?.trim()?160:60,a={type:`buttons`,title:e.slice(0,40),text:t.slice(0,i),actions:n.slice(0,4),thumbnailImageUrl:r?.thumbnailImageUrl,imageAspectRatio:r?.imageAspectRatio??`rectangle`,imageSize:r?.imageSize??`cover`,imageBackgroundColor:r?.imageBackgroundColor,defaultAction:r?.defaultAction};return{type:`template`,altText:r?.altText?.slice(0,400)??`${e}: ${t}`.slice(0,400),template:a}}function s(e,t){let n={type:`carousel`,columns:e.slice(0,10),imageAspectRatio:t?.imageAspectRatio??`rectangle`,imageSize:t?.imageSize??`cover`};return{type:`template`,altText:t?.altText?.slice(0,400)??`View carousel`,template:n}}function c(e){return{title:e.title?.slice(0,40),text:e.text.slice(0,120),actions:e.actions.slice(0,3),thumbnailImageUrl:e.thumbnailImageUrl,imageBackgroundColor:e.imageBackgroundColor,defaultAction:e.defaultAction}}function l(e,t){let n={type:`image_carousel`,columns:e.slice(0,10)};return{type:`template`,altText:t?.slice(0,400)??`View images`,template:n}}function u(e,t){return{imageUrl:e,action:t}}function d(t,r){return a(t,r?.yesData?n(r.yesText??`Yes`,r.yesData,r.yesText??`Yes`):e(r?.yesText??`Yes`),r?.noData?n(r.noText??`No`,r.noData,r.noText??`No`):e(r?.noText??`No`),r?.altText)}function f(t,n,r,i){return o(t,n,r.slice(0,4).map(t=>e(t.label,t.text)),{thumbnailImageUrl:i?.thumbnailImageUrl,altText:i?.altText})}function p(e,n,r,i){return o(e,n,r.slice(0,4).map(e=>t(e.label,e.url)),{thumbnailImageUrl:i?.thumbnailImageUrl,altText:i?.altText})}function m(r,i){return s(r.slice(0,10).map(r=>{let i=[];return r.actionUrl?i.push(t(r.actionLabel??`View`,r.actionUrl)):r.actionData?i.push(n(r.actionLabel??`Select`,r.actionData)):i.push(e(r.actionLabel??`Select`,r.title)),c({title:r.title,text:r.price?`${r.description}\n${r.price}`.slice(0,120):r.description,thumbnailImageUrl:r.imageUrl,actions:i})}),{altText:i})}function h(r){switch(r.type){case`confirm`:{let i=r.confirmData.startsWith(`http`)?t(r.confirmLabel,r.confirmData):r.confirmData.includes(`=`)?n(r.confirmLabel,r.confirmData,r.confirmLabel):e(r.confirmLabel,r.confirmData),o=r.cancelData.startsWith(`http`)?t(r.cancelLabel,r.cancelData):r.cancelData.includes(`=`)?n(r.cancelLabel,r.cancelData,r.cancelLabel):e(r.cancelLabel,r.cancelData);return a(r.text,i,o,r.altText)}case`buttons`:{let e=r.actions.slice(0,4).map(e=>i(e));return o(r.title,r.text,e,{thumbnailImageUrl:r.thumbnailImageUrl,altText:r.altText})}case`carousel`:return s(r.columns.slice(0,10).map(e=>{let t=e.actions.slice(0,3).map(e=>i(e));return c({title:e.title,text:e.text,thumbnailImageUrl:e.thumbnailImageUrl,actions:t})}),{altText:r.altText});default:return null}}export{h as buildTemplateMessageFromPayload,f as createButtonMenu,o as createButtonTemplate,c as createCarouselColumn,a as createConfirmTemplate,l as createImageCarousel,u as createImageCarouselColumn,p as createLinkMenu,m as createProductCarousel,s as createTemplateCarousel,d as createYesNoConfirm,r as datetimePickerAction,e as messageAction,n as postbackAction,t as uriAction};
2
- //# sourceMappingURL=template-messages.js.map
@@ -1,2 +1 @@
1
1
  import{l as e}from"./utils-CGdo13HV.js";function t(t,n,r){let i=t.trim(),a=i.startsWith(`http`)?i:`https://docs.openclaw.ai${i.startsWith(`/`)?i:`/${i}`}`;return e(n??a,a,{fallback:r?.fallback??a,force:r?.force})}export{t};
2
- //# sourceMappingURL=links-CBnmRP9D.js.map
@@ -1,2 +1 @@
1
1
  import{u as e}from"./utils-UGOV_184.js";function t(t,n,r){let i=t.trim(),a=i.startsWith(`http`)?i:`https://docs.openclaw.ai${i.startsWith(`/`)?i:`/${i}`}`;return e(n??a,a,{fallback:r?.fallback??a,force:r?.force})}export{t};
2
- //# sourceMappingURL=links-CySwdMcF.js.map
@@ -4,4 +4,3 @@ Conversation summary:
4
4
  ${i.sessionContent.slice(0,2e3)}
5
5
 
6
6
  Reply with ONLY the slug, nothing else. Examples: "vendor-pitch", "api-design", "bug-fix"`,_=t(i.cfg,d),v=_?a(_,o):null,y=v?.provider??`anthropic`,b=v?.model??`claude-opus-4-6`,x=await s({sessionId:`slug-generator-${Date.now()}`,sessionKey:`temp:slug-generator`,agentId:d,sessionFile:f,workspaceDir:p,agentDir:m,config:i.cfg,prompt:g,provider:y,model:b,timeoutMs:15e3,runId:`slug-gen-${Date.now()}`});if(x.payloads&&x.payloads.length>0){let e=x.payloads[0]?.text;if(e)return e.trim().toLowerCase().replace(/[^a-z0-9-]/g,`-`).replace(/-+/g,`-`).replace(/^-|-$/g,``).slice(0,30)||null}return null}catch(e){let t=e instanceof Error?e.stack??e.message:String(e);return d.error(`Failed to generate slug: ${t}`),null}finally{if(f)try{await c.rm(u.dirname(f),{recursive:!0,force:!0})}catch{}}}export{f as generateSlugViaLLM};
7
- //# sourceMappingURL=llm-slug-generator.js.map
@@ -1,2 +1 @@
1
1
  function e(e){return e&&e.length>0?e:void 0}function t(t={}){let n=e(t.mediaLocalRoots);return{...t.maxBytes===void 0?{}:{maxBytes:t.maxBytes},...n?{localRoots:n}:{}}}export{t};
2
- //# sourceMappingURL=load-options-BsOW74dp.js.map
@@ -1,2 +1 @@
1
1
  function e(e){return e&&e.length>0?e:void 0}function t(t={}){let n=e(t.mediaLocalRoots);return{...t.maxBytes===void 0?{}:{maxBytes:t.maxBytes},...n?{localRoots:n}:{}}}export{t};
2
- //# sourceMappingURL=load-options-C7dLuybp.js.map
@@ -1,2 +1 @@
1
1
  function e(e){return e&&e.length>0?e:void 0}function t(t={}){let n=e(t.mediaLocalRoots);return{...t.maxBytes===void 0?{}:{maxBytes:t.maxBytes},...n?{localRoots:n}:{}}}export{t};
2
- //# sourceMappingURL=load-options-DV4j6Aqb.js.map
@@ -1,2 +1 @@
1
1
  function e(e){return e&&e.length>0?e:void 0}function t(t={}){let n=e(t.mediaLocalRoots);return{...t.maxBytes===void 0?{}:{maxBytes:t.maxBytes},...n?{localRoots:n}:{}}}export{t};
2
- //# sourceMappingURL=load-options-Dwt0CeEg.js.map
@@ -1,2 +1 @@
1
1
  import{g as e}from"./paths-B4IRk3wi.js";import{H as t}from"./subsystem-C5XF2Fy5.js";import{d as n}from"./agent-scope-DXZc3eNT.js";import{i as r,r as i}from"./windows-spawn-AB7ItGAE.js";import{n as a,t as o}from"./fetch-guard-7BAwnP4a.js";import s from"node:path";async function c(e,t){let n,r=!1;return await new Promise((i,a)=>{let o=()=>{n!==void 0&&(clearTimeout(n),n=void 0)};n=setTimeout(()=>{r=!0,o(),e.cancel().catch(()=>void 0),a(Error(`Media download stalled: no data received for ${t}ms`))},t),e.read().then(e=>{o(),r||i(e)},e=>{o(),r||a(e)})})}async function l(e,t,n){let r=n?.onOverflow??(e=>Error(`Content too large: ${e.size} bytes (limit: ${e.maxBytes} bytes)`)),i=n?.chunkTimeoutMs,a=e.body;if(!a||typeof a.getReader!=`function`){let n=Buffer.from(await e.arrayBuffer());if(n.length>t)throw r({size:n.length,maxBytes:t,res:e});return n}let o=a.getReader(),s=[],l=0;try{for(;;){let{done:n,value:a}=i?await c(o,i):await o.read();if(n)break;if(a?.length){if(l+=a.length,l>t){try{await o.cancel()}catch{}throw r({size:l,maxBytes:t,res:e})}s.push(a)}}}finally{try{o.releaseLock()}catch{}}return Buffer.concat(s.map(e=>Buffer.from(e)),l)}var u=class extends Error{constructor(e,t){super(t),this.code=e,this.name=`MediaFetchError`}};function d(e){return e.replace(/^["']|["']$/g,``)}function f(e){if(!e)return;let t=/filename\*\s*=\s*([^;]+)/i.exec(e);if(t?.[1]){let e=d(t[1].trim()),n=e.split(`''`).slice(1).join(`''`)||e;try{return s.basename(decodeURIComponent(n))}catch{return s.basename(n)}}let n=/filename\s*=\s*([^;]+)/i.exec(e);if(n?.[1])return s.basename(d(n[1].trim()))}async function p(e,t=200){try{let n=await e.text();if(!n)return;let r=n.replace(/\s+/g,` `).trim();return r?r.length<=t?r:`${r.slice(0,t)}…`:void 0}catch{return}}async function m(e){let{url:t,fetchImpl:n,requestInit:c,filePathHint:d,maxBytes:m,maxRedirects:h,readIdleTimeoutMs:g,ssrfPolicy:_,lookupFn:v}=e,y,b=t,x=null;try{let e=await o(a({url:t,fetchImpl:n,init:c,maxRedirects:h,policy:_,lookupFn:v}));y=e.response,b=e.finalUrl,x=e.release}catch(e){throw new u(`fetch_failed`,`Failed to fetch media from ${t}: ${String(e)}`)}try{if(!y.ok){let e=y.statusText?` ${y.statusText}`:``,n=b===t?``:` (redirected to ${b})`,r=`HTTP ${y.status}${e}`;if(!y.body)r=`HTTP ${y.status}${e}; empty response body`;else{let e=await p(y);e&&(r+=`; body: ${e}`)}throw new u(`http_error`,`Failed to fetch media from ${t}${n}: ${r}`)}let e=y.headers.get(`content-length`);if(m&&e){let n=Number(e);if(Number.isFinite(n)&&n>m)throw new u(`max_bytes`,`Failed to fetch media from ${t}: content length ${n} exceeds maxBytes ${m}`)}let n;try{n=m?await l(y,m,{onOverflow:({maxBytes:e,res:n})=>new u(`max_bytes`,`Failed to fetch media from ${n.url||t}: payload exceeds maxBytes ${e}`),chunkTimeoutMs:g}):Buffer.from(await y.arrayBuffer())}catch(e){throw e instanceof u?e:new u(`fetch_failed`,`Failed to fetch media from ${y.url||t}: ${String(e)}`)}let a;try{let e=new URL(b);a=s.basename(e.pathname)||void 0}catch{}let o=f(y.headers.get(`content-disposition`)),c=o||a||(d?s.basename(d):void 0),h=o&&s.extname(o)?o:d??b,_=await i({buffer:n,headerMime:y.headers.get(`content-type`),filePath:h});if(c&&!s.extname(c)&&_){let e=r(_);e&&(c=`${c}${e}`)}return{buffer:n,contentType:_??void 0,fileName:c}}finally{x&&await x()}}let h;function g(){return h||=t(),h}function _(e,t={}){let n=s.resolve(e);return[t.preferredTmpDir??g(),s.join(n,`media`),s.join(n,`agents`),s.join(n,`workspace`),s.join(n,`sandboxes`)]}function v(){return _(e())}function y(t,r){let i=_(e());if(!r?.trim())return i;let a=n(t,r);if(!a)return i;let o=s.resolve(a);return i.includes(o)||i.push(o),i}export{l as a,m as i,v as n,u as r,y as t};
2
- //# sourceMappingURL=local-roots-aA-4ohTq.js.map
@@ -1,2 +1 @@
1
1
  import{a as e,f as t,g as n,l as r,t as i,u as a,x as o}from"./subsystem-Bc2XrjUz.js";const s=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function c(e){let t=e.match(s);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function l(t){let n=t.runtime===e?c(t.message):null;if(n){i(n.subsystem)[t.subsystemMethod](n.rest);return}t.runtime[t.runtimeMethod](t.runtimeFormatter(t.message)),o()[t.loggerMethod](t.message)}function u(t,n=e){l({message:t,runtime:n,runtimeMethod:`log`,runtimeFormatter:a,loggerMethod:`info`,subsystemMethod:`info`})}function d(t,r=e){l({message:t,runtime:r,runtimeMethod:`log`,runtimeFormatter:n,loggerMethod:`warn`,subsystemMethod:`warn`})}function f(t,n=e){l({message:t,runtime:n,runtimeMethod:`error`,runtimeFormatter:r,loggerMethod:`error`,subsystemMethod:`error`})}function p(e){o().debug(e),t(e)}export{d as i,f as n,u as r,p as t};
2
- //# sourceMappingURL=logger-5W0OocJW.js.map
@@ -1,2 +1 @@
1
1
  import{C as e,D as t,M as n,p as r,t as i,v as a,y as o}from"./subsystem-C5XF2Fy5.js";const s=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function c(e){let t=e.match(s);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function l(e){let t=e.runtime===r?c(e.message):null;if(t){i(t.subsystem)[e.subsystemMethod](t.rest);return}e.runtime[e.runtimeMethod](e.runtimeFormatter(e.message)),n()[e.loggerMethod](e.message)}function u(e,t=r){l({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:o,loggerMethod:`info`,subsystemMethod:`info`})}function d(e,n=r){l({message:e,runtime:n,runtimeMethod:`log`,runtimeFormatter:t,loggerMethod:`warn`,subsystemMethod:`warn`})}function f(e,t=r){l({message:e,runtime:t,runtimeMethod:`error`,runtimeFormatter:a,loggerMethod:`error`,subsystemMethod:`error`})}function p(t){n().debug(t),e(t)}export{d as i,f as n,u as r,p as t};
2
- //# sourceMappingURL=logger-Bl8URnrW.js.map
@@ -1,2 +1 @@
1
1
  import{d as e,l as t,o as n,r,u as i}from"./paths-BpQOWYiT.js";import a from"node:fs";import o from"node:path";import s from"node:os";import c,{Chalk as l}from"chalk";import{Logger as u}from"tslog";import d from"json5";import"node:util";const ee=new Set([`--dev`,`--no-color`]),te=new Set([`--profile`,`--log-level`]);function ne(e){return!e||e===`--`?!1:e.startsWith(`-`)?/^-\d+(?:\.\d+)?$/.test(e):!0}function f(e,t){let n=e[t];return n?ee.has(n)||n.startsWith(`--profile=`)||n.startsWith(`--log-level=`)?1:te.has(n)?ne(e[t+1])?2:1:0:0}function p(e,t=2){return m(e,t,{skipRootOptions:!0})}function m(e,t,n){let r=e.slice(2),i=[];for(let e=0;e<r.length;e+=1){let a=r[e];if(a){if(a===`--`)break;if(n.skipRootOptions){let t=f(r,e);if(t>0){e+=t-1;continue}}if(!a.startsWith(`-`)&&(i.push(a),i.length>=t))break}}return i}const h=`/tmp/qbotclaw`,re=a.constants.W_OK|a.constants.X_OK;function ie(e,t){return typeof e==`object`&&!!e&&`code`in e&&e.code===t}function g(e={}){let t=e.accessSync??a.accessSync,n=e.chmodSync??a.chmodSync,r=e.lstatSync??a.lstatSync,i=e.mkdirSync??a.mkdirSync,c=e.warn??(e=>console.warn(e)),l=e.getuid??(()=>{try{return typeof process.getuid==`function`?process.getuid():void 0}catch{return}}),u=e.tmpdir??s.tmpdir,d=l(),ee=e=>d===void 0?!0:!(typeof e.uid==`number`&&e.uid!==d||typeof e.mode==`number`&&e.mode&18),te=()=>{let e=u(),t=d===void 0?`qbotclaw`:`qbotclaw-${d}`;return o.join(e,t)},ne=e=>e.isDirectory()&&!e.isSymbolicLink()&&ee(e),f=e=>{try{return ne(r(e))?(t(e,re),`available`):`invalid`}catch(e){return ie(e,`ENOENT`)?`missing`:`invalid`}},p=e=>{try{let t=r(e);return!t.isDirectory()||t.isSymbolicLink()||d!==void 0&&typeof t.uid==`number`&&t.uid!==d||typeof t.mode!=`number`||!(t.mode&18)?!1:(n(e,448),c(`[openclaw] tightened permissions on temp dir: ${e}`),f(e)===`available`)}catch{return!1}},m=()=>{let e=te(),t=f(e);if(t===`available`)return e;if(t===`invalid`){if(p(e))return e;throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`)}try{i(e,{recursive:!0,mode:448}),n(e,448)}catch{throw Error(`Unable to create fallback OpenClaw temp dir: ${e}`)}if(f(e)!==`available`&&!p(e))throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`);return e},g=f(h);if(g===`available`)return h;if(g===`invalid`)return p(`/tmp/qbotclaw`)?h:m();try{return t(`/tmp`,re),i(h,{recursive:!0,mode:448}),n(h,448),f(`/tmp/qbotclaw`)!==`available`&&!p(`/tmp/qbotclaw`)?m():h}catch{return m()}}function _(){let e=r();try{if(!a.existsSync(e))return;let t=a.readFileSync(e,`utf-8`),n=d.parse(t)?.logging;return!n||typeof n!=`object`||Array.isArray(n)?void 0:n}catch{return}}const ae=[`silent`,`fatal`,`error`,`warn`,`info`,`debug`,`trace`];function oe(e){if(typeof e!=`string`)return;let t=e.trim();return ae.includes(t)?t:void 0}function v(e,t=`info`){return oe(e)??t}function y(e){return{fatal:0,error:1,warn:2,info:3,debug:4,trace:5,silent:1/0}[e]}const b={cachedLogger:null,cachedSettings:null,cachedConsoleSettings:null,overrideSettings:null,invalidEnvLogLevelValue:null,consolePatched:!1,forceConsoleToStderr:!1,consoleTimestampPrefix:!1,consoleSubsystemFilter:null,resolvingConsoleSettings:!1,streamErrorHandlersInstalled:!1,rawConsole:null};function se(){let e=process.env.OPENCLAW_LOG_LEVEL,t=typeof e==`string`?e.trim():``;if(!t){b.invalidEnvLogLevelValue=null;return}let n=oe(t);if(n)return b.invalidEnvLogLevelValue=null,n;b.invalidEnvLogLevelValue!==t&&(b.invalidEnvLogLevelValue=t,process.stderr.write(`[openclaw] Ignoring invalid OPENCLAW_LOG_LEVEL="${t}" (allowed: ${ae.join(`|`)}).\n`))}function x(e){let t=process.getBuiltinModule;if(typeof t!=`function`)return null;try{let n=t(`module`),r=typeof n.createRequire==`function`?n.createRequire:null;return r?r(e):null}catch{return null}}function ce(e){try{return new Intl.DateTimeFormat(`en`,{timeZone:e}),!0}catch{return!1}}function S(e,t){let n=t??process.env.TZ,r=n&&ce(n)?n:Intl.DateTimeFormat().resolvedOptions().timeZone,i=new Intl.DateTimeFormat(`en`,{timeZone:r,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1,fractionalSecondDigits:3,timeZoneName:`longOffset`}),a=Object.fromEntries(i.formatToParts(e).map(e=>[e.type,e.value])),o=a.timeZoneName??`GMT`,s=o===`GMT`?`+00:00`:o.slice(3);return`${a.year}-${a.month}-${a.day}T${a.hour}:${a.minute}:${a.second}.${a.fractionalSecond}${s}`}const C=g();o.join(C,`qbotclaw.log`);const w=`qbotclaw`,T=`.log`,E=500*1024*1024,le=x(import.meta.url),D=new Set;function ue(e=process.argv){let[t,n]=p(e,2);return t===`config`&&n===`validate`}function de(e,t){e.attachTransport(e=>{if(D.has(t))try{t(e)}catch{}})}function fe(e){return process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`&&!e&&!b.overrideSettings}function pe(){let e=se();if(fe(e))return{level:`silent`,file:xe(),maxFileBytes:E};let t=b.overrideSettings??_();if(!t&&!ue())try{t=(le?.(`../config/config.js`))?.loadConfig?.().logging}catch{t=void 0}let n=process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`?`silent`:`info`,r=v(t?.level,n);return{level:e??r,file:t?.file??xe(),maxFileBytes:ge(t?.maxFileBytes)}}function me(e,t){return e?e.level!==t.level||e.file!==t.file||e.maxFileBytes!==t.maxFileBytes:!0}function O(e){let t=b.cachedSettings??pe();return b.cachedSettings||=t,t.level===`silent`?!1:y(e)<=y(t.level)}function he(e){let t=new u({name:`openclaw`,minLevel:y(e.level),type:`hidden`});if(e.level===`silent`){for(let e of D)de(t,e);return t}a.mkdirSync(o.dirname(e.file),{recursive:!0}),Se(e.file)&&Ce(o.dirname(e.file));let n=_e(e.file),r=!1;t.attachTransport(t=>{try{let i=S(t.date??new Date),a=`${JSON.stringify({...t,time:i})}\n`,o=Buffer.byteLength(a,`utf8`),s=n+o;if(s>e.maxFileBytes){if(!r){r=!0;let t=JSON.stringify({time:S(new Date),level:`warn`,subsystem:`logging`,message:`log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}`});k(e.file,`${t}\n`),process.stderr.write(`[openclaw] log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}\n`)}return}k(e.file,a)&&(n=s)}catch{}});for(let e of D)de(t,e);return t}function ge(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):E}function _e(e){try{return a.statSync(e).size}catch{return 0}}function k(e,t){try{return a.appendFileSync(e,t,{encoding:`utf8`}),!0}catch{return!1}}function A(){let e=pe(),t=b.cachedLogger,n=b.cachedSettings;return(!t||me(n,e))&&(b.cachedLogger=he(e),b.cachedSettings=e),b.cachedLogger}function ve(e,t){let n=A(),r=t?.level?y(t.level):void 0,i=e?JSON.stringify(e):void 0;return n.getSubLogger({name:i,minLevel:r,prefix:e?[i??``]:[]})}function ye(e,t){return{level:t,child:n=>ye(e.getSubLogger({name:n?JSON.stringify(n):void 0}),t),trace:(...t)=>e.trace(...t),debug:(...t)=>e.debug(...t),info:(...t)=>e.info(...t),warn:(...t)=>e.warn(...t),error:(...t)=>e.error(...t),fatal:(...t)=>e.fatal(...t)}}function be(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function xe(){let e=be(new Date);return o.join(C,`${w}-${e}${T}`)}function Se(e){let t=o.basename(e);return t.startsWith(`${w}-`)&&t.endsWith(T)&&t.length===`${w}-YYYY-MM-DD${T}`.length}function Ce(e){try{let t=a.readdirSync(e,{withFileTypes:!0}),n=Date.now()-864e5;for(let r of t){if(!r.isFile()||!r.name.startsWith(`${w}-`)||!r.name.endsWith(T))continue;let t=o.join(e,r.name);try{a.statSync(t).mtimeMs<n&&a.rmSync(t,{force:!0})}catch{}}}catch{}}const j={accent:`#FF5A2D`,accentBright:`#FF7A3D`,accentDim:`#D14A22`,info:`#FF8A5B`,success:`#2FBF71`,warn:`#FFB020`,error:`#E23D2D`,muted:`#8B7F77`},we=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`,M=process.env.NO_COLOR&&!we?new l({level:0}):c,N=e=>M.hex(e),P={accent:N(j.accent),accentBright:N(j.accentBright),accentDim:N(j.accentDim),info:N(j.info),success:N(j.success),warn:N(j.warn),error:N(j.error),muted:N(j.muted),heading:M.bold.hex(j.accent),command:N(j.accentBright),option:N(j.warn)},Te=()=>M.level>0,Ee=(e,t,n)=>e?t(n):n;let F=!1;function De(e){F=e}function I(){return F}function L(){return F||O(`debug`)}function R(e){if(L()){try{A().debug({message:e},`verbose`)}catch{}F&&console.log(P.muted(e))}}function Oe(e){F&&console.log(P.muted(e))}const ke=P.success,z=P.warn,B=P.info,V=P.error;let H=null;function Ae(e){e.isTTY&&(H=e)}function U(){H?.isTTY&&H.write(`\r\x1B[2K`)}function je(e){H&&(e&&H!==e||(H=null))}function W(e,t,n){let r=n?` (${n})`:``,i=`[terminal] restore ${e} failed${r}: ${String(t)}`;try{process.stderr.write(`${i}\n`)}catch(e){console.error(`[terminal] restore reporting failed${r}: ${String(e)}`)}}function Me(e,t={}){let n=t.resumeStdinIfPaused??t.resumeStdin??!1;try{U()}catch(t){W(`progress line`,t,e)}let r=process.stdin;if(r.isTTY&&typeof r.setRawMode==`function`){try{r.setRawMode(!1)}catch(t){W(`raw mode`,t,e)}if(n&&typeof r.isPaused==`function`&&r.isPaused())try{r.resume()}catch(t){W(`stdin resume`,t,e)}}if(process.stdout.isTTY)try{process.stdout.write(`\x1B[0m\x1B[?25h\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?2004l`)}catch(t){W(`stdout reset`,t,e)}}function Ne(e=process.env){return e.VITEST!==`true`||e.OPENCLAW_TEST_RUNTIME_LOG===`1`?!0:typeof console.log.mock==`object`}function Pe(){return{log:(...e)=>{Ne()&&(U(),console.log(...e))},error:(...e)=>{U(),console.error(...e)}}}const G={...Pe(),exit:e=>{throw Me(`runtime exit`,{resumeStdinIfPaused:!1}),process.exit(e),Error(`unreachable`)}};function Fe(){return{...Pe(),exit:e=>{throw Error(`exit ${e}`)}}}const Ie=RegExp(`\\x1b\\[[0-9;]*m`,`g`),Le=RegExp(`\\x1b\\]8;;.*?\\x1b\\\\|\\x1b\\]8;;\\x1b\\\\`,`g`);typeof Intl<`u`&&`Segmenter`in Intl&&new Intl.Segmenter(void 0,{granularity:`grapheme`});function Re(e){return e.replace(Le,``).replace(Ie,``)}function ze(e){let t=Re(e);for(let e=0;e<=31;e++)t=t.replaceAll(String.fromCharCode(e),``);return t.replaceAll(``,``)}const Be=x(import.meta.url);let Ve=()=>{try{return(Be?.(`../config/config.js`))?.loadConfig?.().logging}catch{return}};function He(e){return I()?`debug`:!e&&process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`?`silent`:v(e,`info`)}function Ue(e){return e===`compact`||e===`json`||e===`pretty`?e:process.stdout.isTTY?`pretty`:`compact`}function We(){let e=se();if(process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`&&!I()&&!e&&!b.overrideSettings)return{level:`silent`,style:Ue(void 0)};let t=b.overrideSettings??_();if(!t)if(b.resolvingConsoleSettings)t=void 0;else{b.resolvingConsoleSettings=!0;try{t=Ve()}finally{b.resolvingConsoleSettings=!1}}return{level:e??He(t?.consoleLevel),style:Ue(t?.consoleStyle)}}function Ge(e,t){return e?e.level!==t.level||e.style!==t.style:!0}function Ke(){let e=We(),t=b.cachedConsoleSettings;return(!t||Ge(t,e))&&(b.cachedConsoleSettings=e),b.cachedConsoleSettings}function qe(e){let t=b.consoleSubsystemFilter;return!t||t.length===0?!0:t.some(t=>e===t||e.startsWith(`${t}/`))}function K(e){let t=new Date;return e===`pretty`?`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`:S(t)}function Je(e,t){return t.level===`silent`?!1:y(e)<=y(t.level)}(()=>{let e=process.getBuiltinModule;if(typeof e!=`function`)return null;try{let t=e(`util`);return typeof t.inspect==`function`?t.inspect:null}catch{return null}})();function Ye(){let e=(process.env.TERM??``).toLowerCase();return process.env.COLORTERM||process.env.TERM_PROGRAM?!0:e.length>0&&e!==`dumb`}function Xe(){let e=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`;return process.env.NO_COLOR&&!e?new l({level:0}):process.stdout.isTTY||process.stderr.isTTY||Ye()?new l({level:1}):new l({level:0})}const Ze=[`cyan`,`green`,`yellow`,`blue`,`magenta`,`red`],Qe={"gmail-watcher":`blue`},$e=[`gateway`,`channels`,`providers`],et=new Set([`telegram`,`whatsapp`,`discord`,`irc`,`googlechat`,`slack`,`signal`,`imessage`]);function tt(e,t){let n=Qe[t];if(n)return e[n];let r=0;for(let e=0;e<t.length;e+=1)r=r*31+t.charCodeAt(e)|0;return e[Ze[Math.abs(r)%Ze.length]]}function nt(e){let t=e.split(`/`).filter(Boolean),n=t.join(`/`)||e;for(;t.length>0&&$e.includes(t[0]);)t.shift();return t.length===0?n:et.has(t[0])?t[0]:t.length>2?t.slice(-2).join(`/`):t.join(`/`)}function rt(e,t){if(!t)return e;if(e.startsWith(`[`)){let n=e.indexOf(`]`);if(n>1&&e.slice(1,n).toLowerCase()===t.toLowerCase()){let t=n+1;for(;e[t]===` `;)t+=1;return e.slice(t)}}if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return e;let n=e.slice(t.length,t.length+1);if(n!==`:`&&n!==` `)return e;let r=t.length;for(;e[r]===` `;)r+=1;for(e[r]===`:`&&(r+=1);e[r]===` `;)r+=1;return e.slice(r)}function it(e){let t=e.style===`json`?e.subsystem:nt(e.subsystem);if(e.style===`json`)return JSON.stringify({time:K(`json`),level:e.level,subsystem:t,message:e.message,...e.meta});let n=Xe(),r=`[${t}]`,i=tt(n,t),a=e.level===`error`||e.level===`fatal`?n.red:e.level===`warn`?n.yellow:e.level===`debug`||e.level===`trace`?n.gray:n.cyan,o=rt(e.message,t);return`${[e.style===`pretty`?n.gray(K(`pretty`)):b.consoleTimestampPrefix?n.gray(K(e.style)):``,i(r)].filter(Boolean).join(` `)} ${a(o)}`}function at(e,t){U();let n=process.platform===`win32`&&process.env.GITHUB_ACTIONS===`true`?t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,`?`).replace(/[\uD800-\uDFFF]/g,`?`):t,r=b.rawConsole??console;b.forceConsoleToStderr||e===`error`||e===`fatal`?(r.error??console.error)(n):e===`warn`?(r.warn??console.warn)(n):(r.log??console.log)(n)}function ot(e){return I()||e.level===`error`||e.level===`fatal`||!(e.subsystem===`agent/embedded`||e.subsystem.startsWith(`agent/embedded/`)||e.subsystem===`model-fallback`||e.subsystem.startsWith(`model-fallback/`))?!1:(typeof e.meta?.runId==`string`?e.meta.runId:typeof e.meta?.sessionId==`string`?e.meta.sessionId:void 0)?.startsWith(`probe-`)?!0:/(sessionId|runId)=probe-/.test(e.message)}function st(e,t,n,r){if(t===`silent`)return;let i=e[t];typeof i==`function`&&(r&&Object.keys(r).length>0?i.call(e,r,n):i.call(e,n))}function q(e){let t=null,n=()=>(t||=ve({subsystem:e}),t),r=(t,r,i)=>{let a=Ke(),o=Je(t,{level:a.level})&&qe(e),s=O(t);if(!o&&!s)return;let c,l=i;if(i&&Object.keys(i).length>0){let{consoleMessage:e,...t}=i;typeof e==`string`&&(c=e),l=Object.keys(t).length>0?t:void 0}if(s&&st(n(),t,r,l),!o)return;let u=c??r;ot({level:t,subsystem:e,message:u,meta:l})||at(t,it({level:t,subsystem:e,message:a.style===`json`?r:u,style:a.style,meta:l}))},i=t=>Je(t,{level:Ke().level})&&qe(e),a=e=>O(e);return{subsystem:e,isEnabled:(e,t=`any`)=>t===`console`?i(e):t===`file`?a(e):i(e)||a(e),trace:(e,t)=>r(`trace`,e,t),debug:(e,t)=>r(`debug`,e,t),info:(e,t)=>r(`info`,e,t),warn:(e,t)=>r(`warn`,e,t),error:(e,t)=>r(`error`,e,t),fatal:(e,t)=>r(`fatal`,e,t),raw:t=>{if(a(`info`)&&st(n(),`info`,t,{raw:!0}),i(`info`)){if(ot({level:`info`,subsystem:e,message:t}))return;at(`info`,t)}},child:t=>q(`${e}/${t}`)}}function ct(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.prototype.toString.call(e)===`[object Object]`}async function lt(e){await a.promises.mkdir(e,{recursive:!0})}async function ut(e){try{return await a.promises.access(e),!0}catch{return!1}}function J(e,t,n){return Math.max(t,Math.min(n,e))}function dt(e,t,n){return J(Math.floor(e),t,n)}const ft=J;function pt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function mt(e){try{return JSON.parse(e)}catch{return null}}function ht(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Y(e){let t=e.replace(/^whatsapp:/,``).trim().replace(/[^\d+]/g,``);return t.startsWith(`+`)?`+${t.slice(1)}`:`+${t}`}function gt(e,t){if(!e||!Array.isArray(t)||t.length===0)return!1;let n=Y(e);return t.some(e=>{if(e===`*`)return!1;try{return Y(String(e))===n}catch{return!1}})}function _t(e){let t=e.replace(/^whatsapp:/,``).trim();return t.includes(`@`)?t:`${Y(t).replace(/\D/g,``)}@s.whatsapp.net`}function vt(e){let t=new Set,r=e=>{e&&t.add(Q(e))};r(e?.authDir);for(let t of e?.lidMappingDirs??[])r(t);return r(n()),r(o.join(jt,`credentials`)),[...t]}function yt(e,t){let n=`lid-mapping-${e}_reverse.json`,r=vt(t);for(let e of r){let t=o.join(e,n);try{let e=a.readFileSync(t,`utf8`),n=JSON.parse(e);if(n==null)continue;return Y(String(n))}catch{}}return null}function X(e,t){let n=e.match(/^(\d+)(?::\d+)?@(s\.whatsapp\.net|hosted)$/);if(n)return`+${n[1]}`;let r=e.match(/^(\d+)(?::\d+)?@(lid|hosted\.lid)$/);if(r){let e=r[1],n=yt(e,t);if(n)return n;(t?.logMissing??L())&&R(`LID mapping not found for ${e}; skipping inbound message`)}return null}async function bt(e,t){if(!e)return null;let n=X(e,t);if(n)return n;if(!/(@lid|@hosted\.lid)$/.test(e)||!t?.lidLookup?.getPNForLID)return null;try{let n=await t.lidLookup.getPNForLID(e);return n?X(n,t):null}catch(t){return L()&&R(`LID mapping lookup failed for ${e}: ${String(t)}`),null}}function xt(e){return new Promise(t=>setTimeout(t,e))}function St(e){return e>=55296&&e<=56319}function Z(e){return e>=56320&&e<=57343}function Ct(e,t,n){let r=e.length,i=t<0?Math.max(r+t,0):Math.min(t,r),a=n===void 0?r:n<0?Math.max(r+n,0):Math.min(n,r);if(a<i){let e=i;i=a,a=e}return i>0&&i<r&&Z(e.charCodeAt(i))&&St(e.charCodeAt(i-1))&&(i+=1),a>0&&a<r&&St(e.charCodeAt(a-1))&&Z(e.charCodeAt(a))&&--a,e.slice(i,a)}function wt(e,t){let n=Math.max(0,Math.floor(t));return e.length<=n?e:Ct(e,0,n)}function Q(n){if(!n)return``;let r=n.trim();if(!r)return r;if(r.startsWith(`~`)){let n=t(r,{home:e(process.env,s.homedir),env:process.env,homedir:s.homedir});return o.resolve(n)}return o.resolve(r)}function Tt(t=process.env,n=s.homedir){let r=t.OPENCLAW_STATE_DIR?.trim()||t.CLAWDBOT_STATE_DIR?.trim();if(r)return Q(r);let i=o.join(e(t,n),`.qbotclaw`);try{if(a.existsSync(i))return i}catch{}return i}function Et(){return i(process.env,s.homedir)}function Dt(){let e=Et();if(e)return process.env.OPENCLAW_HOME?.trim()?{home:e,prefix:`$OPENCLAW_HOME`}:{home:e,prefix:`~`}}function Ot(e){if(!e)return e;let t=Dt();if(!t)return e;let{home:n,prefix:r}=t;return e===n?r:e.startsWith(`${n}/`)||e.startsWith(`${n}\\`)?`${r}${e.slice(n.length)}`:e}function kt(e){if(!e)return e;let t=Dt();return t?e.split(t.home).join(t.prefix):e}function At(e,t,n){let r=e.replaceAll(`\x1B`,``),i=t.replaceAll(`\x1B`,``);return n?.force===!0||n?.force!==!1&&process.stdout.isTTY?`\u001b]8;;${i}\u0007${r}\u001b]8;;\u0007`:n?.fallback??`${r} (${i})`}const jt=Tt(),Mt=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function Nt(e){let t=e.match(Mt);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function $(e){let t=e.runtime===G?Nt(e.message):null;if(t){q(t.subsystem)[e.subsystemMethod](t.rest);return}e.runtime[e.runtimeMethod](e.runtimeFormatter(e.message)),A()[e.loggerMethod](e.message)}function Pt(e,t=G){$({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:B,loggerMethod:`info`,subsystemMethod:`info`})}function Ft(e,t=G){$({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:z,loggerMethod:`warn`,subsystemMethod:`warn`})}function It(e,t=G){$({message:e,runtime:t,runtimeMethod:`error`,runtimeFormatter:V,loggerMethod:`error`,subsystemMethod:`error`})}function Lt(e){A().debug(e),Oe(e)}export{Re as A,L as B,xt as C,ct as D,wt as E,je as F,P as G,z as H,V as I,x as J,ve as K,B as L,G as M,U as N,q as O,Ae as P,f as Q,R,Ot as S,_t as T,Ee as U,ke as V,Te as W,_ as X,v as Y,g as Z,Tt as _,jt as a,mt as b,J as c,At as d,ht as f,ut as g,Y as h,Ft as i,Fe as j,ze as k,lt as l,X as m,It as n,ft as o,gt as p,ye as q,Pt as r,dt as s,Lt as t,pt as u,bt as v,Ct as w,kt as x,Q as y,De as z};
2
- //# sourceMappingURL=logger-DwWqfo66.js.map
@@ -1,2 +1 @@
1
1
  import{C as e,D as t,M as n,p as r,t as i,v as a,y as o}from"./subsystem-BLbY429l.js";const s=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function c(e){let t=e.match(s);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function l(e){let t=e.runtime===r?c(e.message):null;if(t){i(t.subsystem)[e.subsystemMethod](t.rest);return}e.runtime[e.runtimeMethod](e.runtimeFormatter(e.message)),n()[e.loggerMethod](e.message)}function u(e,t=r){l({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:o,loggerMethod:`info`,subsystemMethod:`info`})}function d(e,n=r){l({message:e,runtime:n,runtimeMethod:`log`,runtimeFormatter:t,loggerMethod:`warn`,subsystemMethod:`warn`})}function f(e,t=r){l({message:e,runtime:t,runtimeMethod:`error`,runtimeFormatter:a,loggerMethod:`error`,subsystemMethod:`error`})}function p(t){n().debug(t),e(t)}export{d as i,f as n,u as r,p as t};
2
- //# sourceMappingURL=logger-kQAOe3qp.js.map