@qqbrowser/openclaw-qbot 0.0.139 → 0.0.142

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 (1565) hide show
  1. package/dist/account-lookup-CW-_CL7y.js +1 -0
  2. package/dist/acp-cli-BaslDuk6.js +1 -0
  3. package/dist/acp-cli-f5-uI85a.js +1 -0
  4. package/dist/active-listener-Cce5tcPa.js +1 -0
  5. package/dist/active-listener-D8VOdVx3.js +1 -0
  6. package/dist/active-listener-DeKRt_UV.js +1 -0
  7. package/dist/active-listener-Dle9QX40.js +1 -0
  8. package/dist/agent-scope-DAWJwFfl.js +1 -0
  9. package/dist/agent-scope-DXZc3eNT.js +1 -0
  10. package/dist/agents-Bpp_F5In.js +1 -0
  11. package/dist/agents.config-B6LRG9eP.js +1 -0
  12. package/dist/agents.config-DfIJAGcd.js +1 -0
  13. package/dist/allow-from-B6dI7oz8.js +1 -0
  14. package/dist/allow-from-DEeVIPKS.js +1 -0
  15. package/dist/api-BeG0ObSq.js +1 -0
  16. package/dist/api-Dx8x1KTs.js +1 -0
  17. package/dist/api-key-rotation-BRt-vnRV.js +1 -0
  18. package/dist/api-key-rotation-CCH1wYVU.js +1 -0
  19. package/dist/api-key-rotation-D0QU-kQ9.js +1 -0
  20. package/dist/api-key-rotation-Di6QgXx7.js +1 -0
  21. package/dist/arg-split-BOqSMBuf.js +1 -0
  22. package/dist/arg-split-DE5RqDHq.js +1 -0
  23. package/dist/audio-preflight-B5o7P9qi.js +1 -0
  24. package/dist/audio-preflight-CxD7VCHW.js +1 -0
  25. package/dist/audio-preflight-DKSCBKRb.js +1 -0
  26. package/dist/audio-preflight-Dpk8-Bmk.js +1 -0
  27. package/dist/audio-transcription-runner-Bd1OZC6K.js +1 -0
  28. package/dist/audio-transcription-runner-D4Bp6MM7.js +1 -0
  29. package/dist/audio-transcription-runner-DPwmBYQj.js +1 -0
  30. package/dist/audio-transcription-runner-DSr6OIz1.js +1 -0
  31. package/dist/audit-C7RP7G_g.js +1 -0
  32. package/dist/audit-jkdcAUep.js +1 -0
  33. package/dist/audit-membership-runtime-BpRsMj5-.js +1 -0
  34. package/dist/audit-membership-runtime-BsfLZNBj.js +1 -0
  35. package/dist/audit-membership-runtime-DRHirRmx.js +1 -0
  36. package/dist/audit-membership-runtime-g0dEWJTp.js +1 -0
  37. package/dist/audit-membership-runtime-kdyToskD.js +1 -0
  38. package/dist/auth-choice-B7LSoXZ_.js +1 -0
  39. package/dist/auth-choice-CxMH4c-u.js +1 -0
  40. package/dist/auth-choice-DvTApGhx.js +1 -0
  41. package/dist/auth-choice-EQdNd7jO.js +1 -0
  42. package/dist/auth-choice-options-B3WQyS7I.js +1 -0
  43. package/dist/auth-choice-options-Dw14noox.js +1 -0
  44. package/dist/auth-choice-prompt-uegl56cf.js +1 -0
  45. package/dist/auth-choice-prompt-xYj13czb.js +1 -0
  46. package/dist/auth-choice.apply-helpers-B7S-PcH_.js +1 -0
  47. package/dist/auth-choice.apply-helpers-gaL-oSft.js +1 -0
  48. package/dist/auth-profiles-T8DuH3ax.js +1 -0
  49. package/dist/auth-token-9OTF1FmL.js +1 -0
  50. package/dist/auth-token-kGltuM6S.js +1 -0
  51. package/dist/banner-9u45RL26.js +1 -0
  52. package/dist/bonjour-discovery-CFZXPega.js +1 -0
  53. package/dist/bonjour-discovery-CjivQOxi.js +1 -0
  54. package/dist/boolean-Ch3DfXPy.js +1 -0
  55. package/dist/boolean-D15s2V33.js +1 -0
  56. package/dist/boolean-DypnRoRK.js +1 -0
  57. package/dist/brew-COcDl8CB.js +1 -0
  58. package/dist/brew-DDPm_HfE.js +1 -0
  59. package/dist/browser-cli-DQHE2iPY.js +1 -0
  60. package/dist/browser-cli-Dt0ds-an.js +1 -0
  61. package/dist/build-info.json +3 -3
  62. package/dist/bundled/boot-md/handler.js +1 -0
  63. package/dist/bundled/bootstrap-extra-files/handler.js +1 -0
  64. package/dist/bundled/command-logger/handler.js +1 -0
  65. package/dist/bundled/session-memory/handler.js +1 -0
  66. package/dist/call-B8Fb4_oh.js +1 -0
  67. package/dist/call-CqoMqP5b.js +1 -0
  68. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  69. package/dist/canvas-host/a2ui/a2ui.bundle.js +1705 -2
  70. package/dist/channel-account-context-BMPAMZEv.js +1 -0
  71. package/dist/channel-account-context-DAcarnqW.js +1 -0
  72. package/dist/channel-activity-B04WbrrK.js +1 -0
  73. package/dist/channel-activity-BBrgoad1.js +1 -0
  74. package/dist/channel-activity-CgbOWaay.js +1 -0
  75. package/dist/channel-activity-YIMhOAUo.js +1 -0
  76. package/dist/channel-activity-YjYNzCpJ.js +1 -0
  77. package/dist/channel-options-CEIzjOno.js +1 -0
  78. package/dist/channel-options-D2syI791.js +1 -0
  79. package/dist/channel-selection-BBeE1TmB.js +1 -0
  80. package/dist/channel-selection-CbNtbAEf.js +1 -0
  81. package/dist/channel-web-BrElpZAc.js +1 -0
  82. package/dist/channel-web-CxHbET4B.js +1 -0
  83. package/dist/channels/plugins/actions/discord.js +1 -0
  84. package/dist/channels/plugins/actions/signal.js +1 -0
  85. package/dist/channels/plugins/actions/telegram.js +1 -0
  86. package/dist/channels/plugins/agent-tools/whatsapp-login.js +1 -0
  87. package/dist/channels-cli-BmAJuuRs.js +1 -0
  88. package/dist/channels-cli-Dgosczr6.js +1 -0
  89. package/dist/channels-status-issues-8eFrGKyf.js +1 -0
  90. package/dist/channels-status-issues-PRgOT90w.js +1 -0
  91. package/dist/chat-envelope-Bznn2SoS.js +1 -0
  92. package/dist/chat-envelope-HVpKusFc.js +1 -0
  93. package/dist/clack-prompter-DBPdGdqp.js +1 -0
  94. package/dist/clack-prompter-Dq0aY6iM.js +1 -0
  95. package/dist/clawbot-cli-CgS7TkEx.js +1 -0
  96. package/dist/clawbot-cli-DZ2K0OTk.js +1 -0
  97. package/dist/cleanup-utils-BWm70DoD.js +1 -0
  98. package/dist/cleanup-utils-D-RhEX6F.js +1 -0
  99. package/dist/cli-BcnoCo4z.js +1 -0
  100. package/dist/cli-D8T2tphD.js +1 -0
  101. package/dist/cli-utils-BY7dLMFy.js +1 -0
  102. package/dist/cli-utils-BleB1eys.js +1 -0
  103. package/dist/clipboard-Bk8cviBt.js +1 -0
  104. package/dist/clipboard-CKT_VIkG.js +1 -0
  105. package/dist/cmd-argv-BBT5l8AV.js +1 -0
  106. package/dist/cmd-argv-Bh-KpaZ0.js +1 -0
  107. package/dist/command-format-BbDT1tlm.js +1 -0
  108. package/dist/command-format-CLxIPuLR.js +1 -0
  109. package/dist/command-options-BpOUDl2S.js +1 -0
  110. package/dist/command-options-Bq5nQxz6.js +1 -0
  111. package/dist/command-poll-backoff-BZLHYB2k.js +1 -0
  112. package/dist/command-poll-backoff-Cww_r-24.js +1 -0
  113. package/dist/command-poll-backoff-Df6cOQrX.js +1 -0
  114. package/dist/command-poll-backoff-endAPdwn.js +1 -0
  115. package/dist/command-registry-CfuXCRwV.js +1 -0
  116. package/dist/command-secret-targets-BVN3kiT9.js +1 -0
  117. package/dist/command-secret-targets-BlN-J_fA.js +1 -0
  118. package/dist/commands-CGpM84iR.js +1 -0
  119. package/dist/commands-Dy7duWlt.js +1 -0
  120. package/dist/commands-registry-B1x54ukc.js +1 -0
  121. package/dist/commands-registry-Cpl4QnG4.js +1 -0
  122. package/dist/commands-registry-D40KqYOm.js +1 -0
  123. package/dist/commands-registry-SeddSmFK.js +1 -0
  124. package/dist/compact-Dg66DXx_.js +1 -0
  125. package/dist/completion-cli-BZi4nuQb.js +1 -0
  126. package/dist/completion-cli-C40TWdsv.js +1 -0
  127. package/dist/config-BqW5S1xL.js +1 -0
  128. package/dist/config-D12ZLKqh.js +1 -0
  129. package/dist/config-cli-1ojSLwAj.js +1 -0
  130. package/dist/config-cli-CBte2b1h.js +1 -0
  131. package/dist/config-guard-BTNXbWoO.js +1 -0
  132. package/dist/config-guard-sYYx9zEF.js +1 -0
  133. package/dist/config-validation-C1La_IZU.js +1 -0
  134. package/dist/config-validation-DviYxW8Y.js +1 -0
  135. package/dist/configure-DJrNDEpR.js +1 -0
  136. package/dist/configure-kod4tmZa.js +1 -0
  137. package/dist/connection-auth-B_Uk6Vk8.js +1 -0
  138. package/dist/connection-auth-C8iru0UB.js +1 -0
  139. package/dist/context-window-guard-7crlatf9.js +1 -0
  140. package/dist/context-window-guard-CPChk363.js +1 -0
  141. package/dist/control-ui-assets-BIa0GGDg.js +1 -0
  142. package/dist/control-ui-assets-CTHGGgaX.js +1 -0
  143. package/dist/cron-cli-Dha16Lo-.js +1 -0
  144. package/dist/cron-cli-QHS2pKZ_.js +1 -0
  145. package/dist/daemon-cli-BuXTzSnU.js +1 -0
  146. package/dist/daemon-cli-DOTKuS7d.js +1 -0
  147. package/dist/daemon-cli.js +1 -0
  148. package/dist/daemon-install-C30rBssi.js +1 -0
  149. package/dist/daemon-install-HrqlOCrc.js +1 -0
  150. package/dist/daemon-install-plan.shared-CfA37Ut_.js +1 -0
  151. package/dist/daemon-install-plan.shared-Dx3DBXCG.js +1 -0
  152. package/dist/daemon-runtime-DHiDbRuC.js +1 -0
  153. package/dist/daemon-runtime-VcpeBRJV.js +1 -0
  154. package/dist/dangerous-name-matching-BOmvAibz.js +1 -0
  155. package/dist/dangerous-name-matching-DtllRqBD.js +1 -0
  156. package/dist/dangerous-tools-CFRYQJ6V.js +1 -0
  157. package/dist/dangerous-tools-oYCu5wfC.js +1 -0
  158. package/dist/deliver-56mQkDw3.js +1 -0
  159. package/dist/deliver-BFQ4Zx9z.js +1 -0
  160. package/dist/deliver-BHuhHfkH.js +1 -0
  161. package/dist/deliver-ClBkV2eD.js +1 -0
  162. package/dist/delivery-queue-CKbauSFq.js +1 -0
  163. package/dist/delivery-queue-nkPJu0fY.js +1 -0
  164. package/dist/device-pairing-CTFpaTrD.js +1 -0
  165. package/dist/device-pairing-QTK0dod3.js +1 -0
  166. package/dist/devices-cli-Ckxd0k0I.js +1 -0
  167. package/dist/devices-cli-Db36mBHq.js +1 -0
  168. package/dist/diagnostic-BrE4lMIf.js +1 -0
  169. package/dist/diagnostic-CDxNevIQ.js +1 -0
  170. package/dist/diagnostic-DOzHPnht.js +1 -0
  171. package/dist/diagnostic-DQq4Bwrs.js +1 -0
  172. package/dist/diagnostics-BgbeL9KE.js +1 -0
  173. package/dist/diagnostics-Cdctg9K_.js +1 -0
  174. package/dist/directory-cli-DDTaUkjW.js +1 -0
  175. package/dist/directory-cli-_gTFSHMW.js +1 -0
  176. package/dist/dns-cli--4PwtR2Y.js +1 -0
  177. package/dist/dns-cli-C4DwKquN.js +1 -0
  178. package/dist/docs-cli-Cdw9Iz9a.js +1 -0
  179. package/dist/docs-cli-ClD2UyX1.js +1 -0
  180. package/dist/doctor-completion-BJ6steqx.js +1 -0
  181. package/dist/doctor-completion-DMJhfrtC.js +1 -0
  182. package/dist/doctor-config-flow-D4F3mz4h.js +1 -0
  183. package/dist/doctor-config-flow-DnOyVZhQ.js +1 -0
  184. package/dist/enable-BhD84GhD.js +1 -0
  185. package/dist/enable-Ccf9wSM8.js +1 -0
  186. package/dist/entry-status-CCwwKO43.js +1 -0
  187. package/dist/entry-status-CoXkbJcX.js +1 -0
  188. package/dist/entry.js +1 -0
  189. package/dist/env-D7wNuBx1.js +1 -0
  190. package/dist/env-overrides-DHtB4kK3.js +1 -0
  191. package/dist/env-overrides-DXJbFrwI.js +1 -0
  192. package/dist/errors-6SQWM9dj.js +1 -0
  193. package/dist/errors-Bunti32V.js +1 -0
  194. package/dist/exec-B3eleY5O.js +1 -0
  195. package/dist/exec-DHqLtFYt.js +1 -0
  196. package/dist/exec-approvals-BXO9Cezj.js +1 -0
  197. package/dist/exec-approvals-BpBNEy6i.js +1 -0
  198. package/dist/exec-approvals-allowlist-CE3nYh0K.js +1 -0
  199. package/dist/exec-approvals-allowlist-D8mN7nxV.js +1 -0
  200. package/dist/exec-approvals-cli-CUcuN63y.js +1 -0
  201. package/dist/exec-approvals-cli-CxUGD08t.js +1 -0
  202. package/dist/exec-safe-bin-runtime-policy-Dt0GchLp.js +1 -0
  203. package/dist/exec-safe-bin-runtime-policy-dcCS_Adf.js +1 -0
  204. package/dist/fetch-B9tORjG8.js +1 -0
  205. package/dist/fetch-BJT3BrkJ.js +1 -0
  206. package/dist/fetch-B_wRifvZ.js +1 -0
  207. package/dist/fetch-Bn0mWg6a.js +1 -0
  208. package/dist/fetch-CQaNr5J1.js +1 -0
  209. package/dist/fetch-Ce-scEU-.js +1 -0
  210. package/dist/fetch-D0rZDHKO.js +1 -0
  211. package/dist/fetch-DHo17YmK.js +1 -0
  212. package/dist/fetch-Dh-apy46.js +1 -0
  213. package/dist/fetch-Dikjvc5M.js +1 -0
  214. package/dist/fetch-DsjPfQlp.js +1 -0
  215. package/dist/fetch-_g8lZ8K8.js +1 -0
  216. package/dist/fetch-guard-BrTtJw7h.js +1 -0
  217. package/dist/fetch-guard-D10s0raB.js +1 -0
  218. package/dist/fetch-guard-DPdY0NXR.js +1 -0
  219. package/dist/fetch-guard-cu7DGSRF.js +1 -0
  220. package/dist/fetch-hy0JKSsm.js +1 -0
  221. package/dist/fetch-timeout-CdYxWG9w.js +1 -0
  222. package/dist/fetch-timeout-Cj8_oAls.js +1 -0
  223. package/dist/fetch-timeout-DoOI_izT.js +1 -0
  224. package/dist/fetch-timeout-u8g99Ax0.js +1 -0
  225. package/dist/format-Bn1bwJKX.js +1 -0
  226. package/dist/format-Ce7I7s-k.js +1 -0
  227. package/dist/format-duration-C8AzNqKh.js +1 -0
  228. package/dist/format-duration-D5AMtmHa.js +1 -0
  229. package/dist/format-relative-B9pSIdGe.js +1 -0
  230. package/dist/format-relative-DkMjYy7z.js +1 -0
  231. package/dist/frontmatter-BkZkwkVO.js +1 -0
  232. package/dist/frontmatter-C7mzDNxd.js +1 -0
  233. package/dist/frontmatter-CzpfPBFl.js +1 -0
  234. package/dist/gateway-cli-CKu0FA7D.js +1 -0
  235. package/dist/gateway-cli-C_s9eMlC.js +1 -0
  236. package/dist/gateway-install-token-BCnuZeh1.js +1 -0
  237. package/dist/gateway-install-token-DiDvDPJQ.js +1 -0
  238. package/dist/gateway-rpc-iFvDyHYd.js +1 -0
  239. package/dist/gateway-rpc-tEEvY0kH.js +1 -0
  240. package/dist/github-copilot-token-C79yeDKS.js +1 -0
  241. package/dist/github-copilot-token-DGYAlOmV.js +1 -0
  242. package/dist/github-copilot-token-DePP-lIf.js +1 -0
  243. package/dist/github-copilot-token-wm6mbypz.js +1 -0
  244. package/dist/gmail-setup-utils-CYOH3zzx.js +1 -0
  245. package/dist/gmail-setup-utils-S-MyEGuj.js +1 -0
  246. package/dist/group-access-BHKVOhrj.js +1 -0
  247. package/dist/group-access-D2DOYMfr.js +1 -0
  248. package/dist/health-BgOggK9k.js +1 -0
  249. package/dist/health-PaRHFItm.js +1 -0
  250. package/dist/health-format-B1nj3Wfn.js +1 -0
  251. package/dist/health-format-VBr6LEpt.js +1 -0
  252. package/dist/heartbeat-visibility-BQ_esv2m.js +1 -0
  253. package/dist/heartbeat-visibility-q74UdY8O.js +1 -0
  254. package/dist/help-format-B4aEI7V9.js +1 -0
  255. package/dist/help-format-BRbF_INg.js +1 -0
  256. package/dist/helpers-COz1ghcB.js +1 -0
  257. package/dist/helpers-Cp8gcO6u.js +1 -0
  258. package/dist/hooks-cli-BzyzTNBx.js +1 -0
  259. package/dist/hooks-cli-CsBrScq0.js +1 -0
  260. package/dist/hooks-status-BHt-Xvh4.js +1 -0
  261. package/dist/hooks-status-CRJ4J0ZW.js +1 -0
  262. package/dist/image-BkWwI54C.js +1 -0
  263. package/dist/image-CcVQg-YN.js +1 -0
  264. package/dist/image-Cm1RUBqD.js +1 -0
  265. package/dist/image-DsoO5VP5.js +1 -0
  266. package/dist/index.js +1 -0
  267. package/dist/inspect-BKV-I1UE.js +1 -0
  268. package/dist/inspect-z59cgmYc.js +1 -0
  269. package/dist/install-safe-path-C6kc_8NW.js +1 -0
  270. package/dist/install-safe-path-iesxijn2.js +1 -0
  271. package/dist/installs-BNeI_oML.js +1 -0
  272. package/dist/installs-C1xQLuby.js +1 -0
  273. package/dist/ipv4-BOuNtoGn.js +1 -0
  274. package/dist/ipv4-CWdaEiVH.js +1 -0
  275. package/dist/ir-BF0M2kGp.js +1 -0
  276. package/dist/ir-D8Hh84ab.js +1 -0
  277. package/dist/ir-DBWscfBd.js +1 -0
  278. package/dist/ir-Dk7OQ4bA.js +1 -0
  279. package/dist/is-main-DG5ueqhF.js +1 -0
  280. package/dist/issue-format-BT7cQEt3.js +1 -0
  281. package/dist/issue-format-C_lNzrKa.js +1 -0
  282. package/dist/kill-tree-B3g7HrAO.js +1 -0
  283. package/dist/lifecycle-core-D9KNCvxY.js +1 -0
  284. package/dist/lifecycle-core-LM5UUUB1.js +1 -0
  285. package/dist/line/accounts.js +1 -0
  286. package/dist/line/send.js +1 -0
  287. package/dist/line/template-messages.js +1 -0
  288. package/dist/links-CBnmRP9D.js +1 -0
  289. package/dist/links-CySwdMcF.js +1 -0
  290. package/dist/llm-slug-generator.js +1 -0
  291. package/dist/load-options-BsOW74dp.js +1 -0
  292. package/dist/load-options-C7dLuybp.js +1 -0
  293. package/dist/load-options-DV4j6Aqb.js +1 -0
  294. package/dist/load-options-Dwt0CeEg.js +1 -0
  295. package/dist/local-roots-6waH0SZ0.js +1 -0
  296. package/dist/logger-5W0OocJW.js +1 -0
  297. package/dist/logger-Bl8URnrW.js +1 -0
  298. package/dist/logger-DwWqfo66.js +1 -0
  299. package/dist/logger-kQAOe3qp.js +1 -0
  300. package/dist/logging-Dqe9dxSX.js +1 -0
  301. package/dist/logging-tYw1NbJd.js +1 -0
  302. package/dist/login-BOlqRyr0.js +1 -0
  303. package/dist/login-CkWesqf_.js +1 -0
  304. package/dist/login-Do_NA1Je.js +1 -0
  305. package/dist/login-op9S8yqv.js +1 -0
  306. package/dist/login-qr-B6rxvoTS.js +1 -0
  307. package/dist/login-qr-BGH9zmhw.js +1 -0
  308. package/dist/login-qr-CiENvgog.js +1 -0
  309. package/dist/login-qr-DsV-lxFd.js +1 -0
  310. package/dist/login-qr-QcDMg23y.js +1 -0
  311. package/dist/logs-cli-B4eUg_87.js +1 -0
  312. package/dist/logs-cli-BA3Aso8a.js +1 -0
  313. package/dist/manager-4Y9fRgdw.js +1 -0
  314. package/dist/manager-C2YW7Hkq.js +1 -0
  315. package/dist/manager-Dtd_loL8.js +1 -0
  316. package/dist/manager-M1GKhLUC.js +1 -0
  317. package/dist/memory-cli-XaxtBQm1.js +1 -0
  318. package/dist/memory-cli-jhzJ3as7.js +1 -0
  319. package/dist/model-catalog-C1kpjR75.js +1 -0
  320. package/dist/model-catalog-COVzoZD9.js +1 -0
  321. package/dist/model-param-b-B0r2cPDw.js +1 -0
  322. package/dist/model-param-b-BqIr5rY5.js +1 -0
  323. package/dist/model-picker-D3ZSpr0i.js +1 -0
  324. package/dist/model-picker-bZNuI66U.js +1 -0
  325. package/dist/model-selection-B5JsBS9D.js +1 -0
  326. package/dist/model-selection-BlC_rXAN.js +1 -0
  327. package/dist/model-selection-vfhBuN9O.js +1 -0
  328. package/dist/models-C_Vg3Cty.js +1 -0
  329. package/dist/models-cli-CDZliTXq.js +1 -0
  330. package/dist/models-cli-bGr8jwAb.js +1 -0
  331. package/dist/models-config-CdMhNxKV.js +1 -0
  332. package/dist/models-config-_htt7eY5.js +1 -0
  333. package/dist/mutable-allowlist-detectors-C4rNVag8.js +1 -0
  334. package/dist/mutable-allowlist-detectors-CL0qe54J.js +1 -0
  335. package/dist/node-cli-5lYbDZ70.js +1 -0
  336. package/dist/node-cli-Br04Qmqo.js +1 -0
  337. package/dist/node-command-policy-CejeQemH.js +1 -0
  338. package/dist/node-command-policy-CqXhdnHh.js +1 -0
  339. package/dist/node-commands-8GBOiktk.js +1 -0
  340. package/dist/node-commands-DdkziOTx.js +1 -0
  341. package/dist/node-resolve-B3BJbmQX.js +1 -0
  342. package/dist/node-resolve-DLZf3-1V.js +1 -0
  343. package/dist/node-service-BRfrNp8l.js +1 -0
  344. package/dist/node-service-C0bl7jcZ.js +1 -0
  345. package/dist/node-shell-DyOfwHrh.js +1 -0
  346. package/dist/nodes-cli-8By8--bW.js +1 -0
  347. package/dist/nodes-cli-zq41EwJN.js +1 -0
  348. package/dist/nodes-screen-DECgxo6A.js +1 -0
  349. package/dist/note-D4GAwgha.js +1 -0
  350. package/dist/note-Dp-d_utk.js +1 -0
  351. package/dist/npm-pack-install-B23L-AtF.js +1 -0
  352. package/dist/npm-pack-install-C0te3Oap.js +1 -0
  353. package/dist/npm-resolution-BnJGLwhi.js +1 -0
  354. package/dist/npm-resolution-DWPloph4.js +1 -0
  355. package/dist/oauth-env-DAamJ1oz.js +1 -0
  356. package/dist/oauth-env-DSLBTWb1.js +1 -0
  357. package/dist/oauth-tls-preflight-BSBRDIfC.js +1 -0
  358. package/dist/oauth-tls-preflight-ByNjbUR5.js +1 -0
  359. package/dist/ollama-setup-BMEKWyIE.js +1 -0
  360. package/dist/ollama-setup-DlwS6Gl-.js +1 -0
  361. package/dist/onboard-B0BNCQaO.js +1 -0
  362. package/dist/onboard-CjVhdaiR.js +1 -0
  363. package/dist/onboard-channels-BMIOddLN.js +1 -0
  364. package/dist/onboard-channels-CZK_7xMR.js +1 -0
  365. package/dist/onboard-config-B7U20YRw.js +1 -0
  366. package/dist/onboard-config-DS9dUv8M.js +1 -0
  367. package/dist/onboard-custom-B03SlEHB.js +1 -0
  368. package/dist/onboard-custom-Bl0y8c-g.js +1 -0
  369. package/dist/onboard-helpers-PGl5bVPE.js +1 -0
  370. package/dist/onboard-helpers-zwybUJWu.js +1 -0
  371. package/dist/onboard-hooks-CERzXObm.js +1 -0
  372. package/dist/onboard-hooks-gQ3sxBNi.js +1 -0
  373. package/dist/onboard-provider-auth-flags-CqbipO7D.js +1 -0
  374. package/dist/onboard-provider-auth-flags-Dvwzdz37.js +1 -0
  375. package/dist/onboard-remote-BOpIRdDu.js +1 -0
  376. package/dist/onboard-remote-DPU-H_2O.js +1 -0
  377. package/dist/onboard-search-f2tJD4hg.js +1 -0
  378. package/dist/onboard-search-fslKKhyg.js +1 -0
  379. package/dist/onboard-skills-BMAJs6ly.js +1 -0
  380. package/dist/onboard-skills-CMSQc2Mm.js +1 -0
  381. package/dist/onboarding-B6ixWwgp.js +1 -0
  382. package/dist/onboarding-ouEqUuUr.js +1 -0
  383. package/dist/onboarding.finalize-Bgat5Npc.js +1 -0
  384. package/dist/onboarding.finalize-DsMVlTcH.js +1 -0
  385. package/dist/onboarding.gateway-config-BtLDJWJ2.js +1 -0
  386. package/dist/onboarding.gateway-config-y3pqsL9i.js +1 -0
  387. package/dist/onboarding.secret-input-BsBgh8Tc.js +1 -0
  388. package/dist/onboarding.secret-input-kO5OzYC7.js +1 -0
  389. package/dist/openai-codex-model-default-DuE2_wN7.js +1 -0
  390. package/dist/openai-codex-model-default-yVfRw-Mm.js +1 -0
  391. package/dist/openai-model-default-Bl8MHPb6.js +1 -0
  392. package/dist/openai-model-default-DJObMvLJ.js +1 -0
  393. package/dist/openclaw-exec-env-BWbOu_YC.js +1 -0
  394. package/dist/openclaw-root-CnsBf6ZU.js +1 -0
  395. package/dist/openclaw-root-D_0Q6--h.js +1 -0
  396. package/dist/outbound-BOSIEiEY.js +1 -0
  397. package/dist/outbound-BtUeDLjU.js +1 -0
  398. package/dist/outbound-Bx2Z2aYK.js +1 -0
  399. package/dist/outbound-Bz8bbrMI.js +1 -0
  400. package/dist/outbound-attachment-B7wMxwj6.js +1 -0
  401. package/dist/outbound-attachment-BgAe99RM.js +1 -0
  402. package/dist/outbound-attachment-Dds8xirj.js +1 -0
  403. package/dist/outbound-attachment-DqEKghQp.js +1 -0
  404. package/dist/pairing-cli-Bya9M-I_.js +1 -0
  405. package/dist/pairing-cli-D2JEhufv.js +1 -0
  406. package/dist/pairing-labels-BUU_-70B.js +1 -0
  407. package/dist/pairing-labels-D-kzQEL2.js +1 -0
  408. package/dist/pairing-store-BH-FTYkn.js +1 -0
  409. package/dist/pairing-store-Cg2UxreQ.js +1 -0
  410. package/dist/pairing-token-BjYBuREl.js +1 -0
  411. package/dist/pairing-token-DAR7V7FJ.js +1 -0
  412. package/dist/parse-duration-XTjMKl8s.js +1 -0
  413. package/dist/parse-finite-number-DqzUM-_s.js +1 -0
  414. package/dist/parse-finite-number-dBmDLLKL.js +1 -0
  415. package/dist/parse-log-line-CsYLg7Qu.js +1 -0
  416. package/dist/parse-log-line-NV-cipB_.js +1 -0
  417. package/dist/parse-port-Bv1Y9Wk5.js +1 -0
  418. package/dist/parse-port-JVwkxcZ8.js +1 -0
  419. package/dist/parse-timeout-DWSGfCkQ.js +1 -0
  420. package/dist/parse-timeout-Dx4QnVzo.js +1 -0
  421. package/dist/path-alias-guards-kY_ZbWs-.js +1 -0
  422. package/dist/path-alias-guards-mvyLCPlN.js +1 -0
  423. package/dist/path-env-BPd1Yd-i.js +1 -0
  424. package/dist/path-env-emdAQejM.js +1 -0
  425. package/dist/path-safety-BukYK8Kd.js +1 -0
  426. package/dist/path-safety-DaaMJFdt.js +1 -0
  427. package/dist/paths-B4IRk3wi.js +1 -0
  428. package/dist/paths-BfjJY2VL.js +1 -0
  429. package/dist/paths-BjD3T_xq.js +1 -0
  430. package/dist/paths-BpQOWYiT.js +1 -0
  431. package/dist/paths-CChBdtE8.js +1 -0
  432. package/dist/paths-CrCoPIVK.js +1 -0
  433. package/dist/paths-piJASC5k.js +1 -0
  434. package/dist/paths-yLEk_25I.js +1 -0
  435. package/dist/pi-embedded-BZSn84Bh.js +1 -0
  436. package/dist/pi-embedded-Dsz7p3MF.js +1 -0
  437. package/dist/pi-model-discovery-BbD1YJNx.js +1 -0
  438. package/dist/pi-model-discovery-CpjYoBQf.js +1 -0
  439. package/dist/pi-model-discovery-DeQdHV8O.js +1 -0
  440. package/dist/pi-model-discovery-Dps1PPWz.js +1 -0
  441. package/dist/pi-tools.before-tool-call.runtime-DseAq0gm.js +1 -0
  442. package/dist/pi-tools.before-tool-call.runtime-KKGILAuK.js +1 -0
  443. package/dist/pi-tools.before-tool-call.runtime-Pck2WdIO.js +1 -0
  444. package/dist/pi-tools.before-tool-call.runtime-ZzMJQ1BP.js +1 -0
  445. package/dist/pi-tools.policy-D40r0HmD.js +1 -0
  446. package/dist/plugin-auto-enable-DpVL6-ES.js +1 -0
  447. package/dist/plugin-auto-enable-NzmNh4oU.js +1 -0
  448. package/dist/plugin-install-plan-BobX0y9S.js +1 -0
  449. package/dist/plugin-install-plan-NvDGp0d8.js +1 -0
  450. package/dist/plugin-registry-C6dY-Et7.js +1 -0
  451. package/dist/plugin-registry-CIBiHZH1.js +1 -0
  452. package/dist/plugin-sdk/account-id.cjs +1 -0
  453. package/dist/plugin-sdk/account-id.js +1 -0
  454. package/dist/plugin-sdk/acpx.cjs +1 -0
  455. package/dist/plugin-sdk/acpx.js +1 -0
  456. package/dist/plugin-sdk/active-listener-BApFQlQn.js +1 -0
  457. package/dist/plugin-sdk/active-listener-BETopzG5.cjs +1 -0
  458. package/dist/plugin-sdk/active-listener-BEcmvyxh.cjs +1 -0
  459. package/dist/plugin-sdk/active-listener-BZPPbsNy.cjs +1 -0
  460. package/dist/plugin-sdk/active-listener-B_Mxemq7.cjs +1 -0
  461. package/dist/plugin-sdk/active-listener-BgW_qfd3.js +1 -0
  462. package/dist/plugin-sdk/active-listener-Coet66pF.cjs +1 -0
  463. package/dist/plugin-sdk/active-listener-CvML9qVF.js +1 -0
  464. package/dist/plugin-sdk/active-listener-DuO6KMXJ.js +1 -0
  465. package/dist/plugin-sdk/active-listener-DymzfmOG.cjs +1 -0
  466. package/dist/plugin-sdk/active-listener-ILBdBHMv.js +1 -0
  467. package/dist/plugin-sdk/active-listener-gRRIfN1q.js +1 -0
  468. package/dist/plugin-sdk/api-key-rotation-Bj1A9Slo.cjs +1 -0
  469. package/dist/plugin-sdk/api-key-rotation-CFPNzksf.cjs +1 -0
  470. package/dist/plugin-sdk/api-key-rotation-CXY0AyM1.js +1 -0
  471. package/dist/plugin-sdk/api-key-rotation-ClIwV8yq.js +1 -0
  472. package/dist/plugin-sdk/api-key-rotation-D5Nr1xl3.js +1 -0
  473. package/dist/plugin-sdk/api-key-rotation-DDCwA0KM.cjs +1 -0
  474. package/dist/plugin-sdk/api-key-rotation-DHMvXm70.cjs +1 -0
  475. package/dist/plugin-sdk/api-key-rotation-DaFFZfk5.js +1 -0
  476. package/dist/plugin-sdk/api-key-rotation-DcREl_0x.js +1 -0
  477. package/dist/plugin-sdk/api-key-rotation-X-5Fb7av.cjs +1 -0
  478. package/dist/plugin-sdk/api-key-rotation-_VfXYfHS.js +1 -0
  479. package/dist/plugin-sdk/api-key-rotation-wFUVOOfM.cjs +1 -0
  480. package/dist/plugin-sdk/audio-preflight-B1MP5_bc.cjs +1 -0
  481. package/dist/plugin-sdk/audio-preflight-BETx142T.cjs +1 -0
  482. package/dist/plugin-sdk/audio-preflight-BGRLhCLc.cjs +1 -0
  483. package/dist/plugin-sdk/audio-preflight-BNICfOY5.cjs +1 -0
  484. package/dist/plugin-sdk/audio-preflight-BV3Cav8M.js +1 -0
  485. package/dist/plugin-sdk/audio-preflight-BmO72Cqr.cjs +1 -0
  486. package/dist/plugin-sdk/audio-preflight-BpE8wFQc.js +1 -0
  487. package/dist/plugin-sdk/audio-preflight-CTAafaiH.js +1 -0
  488. package/dist/plugin-sdk/audio-preflight-D82aewIt.js +1 -0
  489. package/dist/plugin-sdk/audio-preflight-DmzxEaq3.cjs +1 -0
  490. package/dist/plugin-sdk/audio-preflight-DrSIYRnD.js +1 -0
  491. package/dist/plugin-sdk/audio-preflight-SZZoA2Ff.js +1 -0
  492. package/dist/plugin-sdk/audio-transcription-runner-B54MyF1_.js +1 -0
  493. package/dist/plugin-sdk/audio-transcription-runner-BIqM5H5q.js +1 -0
  494. package/dist/plugin-sdk/audio-transcription-runner-BLAxZL-U.js +1 -0
  495. package/dist/plugin-sdk/audio-transcription-runner-BVmaaA2k.js +1 -0
  496. package/dist/plugin-sdk/audio-transcription-runner-BdY-TMcc.js +1 -0
  497. package/dist/plugin-sdk/audio-transcription-runner-By3lSLub.cjs +1 -0
  498. package/dist/plugin-sdk/audio-transcription-runner-CH5CoZrF.cjs +1 -0
  499. package/dist/plugin-sdk/audio-transcription-runner-CMsp7bhn.cjs +1 -0
  500. package/dist/plugin-sdk/audio-transcription-runner-ClGibmMi.cjs +1 -0
  501. package/dist/plugin-sdk/audio-transcription-runner-QfEC19vE.cjs +1 -0
  502. package/dist/plugin-sdk/audio-transcription-runner-g7L0m-Z5.cjs +1 -0
  503. package/dist/plugin-sdk/audio-transcription-runner-pVTD93vq.js +1 -0
  504. package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +1 -0
  505. package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +1 -0
  506. package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +1 -0
  507. package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +1 -0
  508. package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +1 -0
  509. package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +1 -0
  510. package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +1 -0
  511. package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +1 -0
  512. package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +1 -0
  513. package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +1 -0
  514. package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +1 -0
  515. package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +1 -0
  516. package/dist/plugin-sdk/bluebubbles.cjs +1 -0
  517. package/dist/plugin-sdk/bluebubbles.js +1 -0
  518. package/dist/plugin-sdk/channel-activity-BGK-Bj2_.cjs +1 -0
  519. package/dist/plugin-sdk/channel-activity-BRHvpV0C.js +1 -0
  520. package/dist/plugin-sdk/channel-activity-CKfWFchu.js +1 -0
  521. package/dist/plugin-sdk/channel-activity-CLUi31fX.cjs +1 -0
  522. package/dist/plugin-sdk/channel-activity-CVOp-PL4.cjs +1 -0
  523. package/dist/plugin-sdk/channel-activity-CgXnZ0GC.cjs +1 -0
  524. package/dist/plugin-sdk/channel-activity-CmYpOPAn.js +1 -0
  525. package/dist/plugin-sdk/channel-activity-CwaMf9qT.cjs +1 -0
  526. package/dist/plugin-sdk/channel-activity-D5D5tBWf.cjs +1 -0
  527. package/dist/plugin-sdk/channel-activity-D7tpmatp.js +1 -0
  528. package/dist/plugin-sdk/channel-activity-DpxSOlXF.js +1 -0
  529. package/dist/plugin-sdk/channel-activity-spvDzlTl.js +1 -0
  530. package/dist/plugin-sdk/channel-web-4ZQVqsrt.js +1 -0
  531. package/dist/plugin-sdk/channel-web-9zn1Itpg.cjs +1 -0
  532. package/dist/plugin-sdk/channel-web-BrB00HKH.js +1 -0
  533. package/dist/plugin-sdk/channel-web-DN5La-Ol.cjs +1 -0
  534. package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +1 -0
  535. package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +1 -0
  536. package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +1 -0
  537. package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +1 -0
  538. package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +1 -0
  539. package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +1 -0
  540. package/dist/plugin-sdk/commands-registry-5lStNoKW.cjs +1 -0
  541. package/dist/plugin-sdk/commands-registry-C8wnXqNa.cjs +1 -0
  542. package/dist/plugin-sdk/commands-registry-Cnr6PvIw.js +1 -0
  543. package/dist/plugin-sdk/commands-registry-CtYCWfuM.cjs +1 -0
  544. package/dist/plugin-sdk/commands-registry-D2gv242l.js +1 -0
  545. package/dist/plugin-sdk/commands-registry-DI2vPscP.js +1 -0
  546. package/dist/plugin-sdk/commands-registry-DcBvmwSU.js +1 -0
  547. package/dist/plugin-sdk/commands-registry-DkUhCIDk.cjs +1 -0
  548. package/dist/plugin-sdk/commands-registry-DsMbmie-.cjs +1 -0
  549. package/dist/plugin-sdk/commands-registry-MCsWR5Vf.js +1 -0
  550. package/dist/plugin-sdk/commands-registry-SHZVq_qf.cjs +1 -0
  551. package/dist/plugin-sdk/commands-registry-kRjFifgj.js +1 -0
  552. package/dist/plugin-sdk/common-B4iFXuoZ.cjs +1 -0
  553. package/dist/plugin-sdk/common-B6fDMl_i.js +1 -0
  554. package/dist/plugin-sdk/compat.cjs +1 -0
  555. package/dist/plugin-sdk/compat.js +1 -0
  556. package/dist/plugin-sdk/config-ByA2hluR.js +1 -0
  557. package/dist/plugin-sdk/config-rBz8C_Hi.cjs +1 -0
  558. package/dist/plugin-sdk/copilot-proxy.cjs +1 -0
  559. package/dist/plugin-sdk/copilot-proxy.js +1 -0
  560. package/dist/plugin-sdk/core.cjs +1 -0
  561. package/dist/plugin-sdk/core.js +1 -0
  562. package/dist/plugin-sdk/deliver-B0fB4hAV.js +1 -0
  563. package/dist/plugin-sdk/deliver-BOLmjIJ3.js +1 -0
  564. package/dist/plugin-sdk/deliver-BrfVwkYz.cjs +1 -0
  565. package/dist/plugin-sdk/deliver-C-tChWTI.cjs +1 -0
  566. package/dist/plugin-sdk/deliver-CjQPkWS-.cjs +1 -0
  567. package/dist/plugin-sdk/deliver-D1P0FNTu.js +1 -0
  568. package/dist/plugin-sdk/deliver-DCrO9mvv.cjs +1 -0
  569. package/dist/plugin-sdk/deliver-DQLekoj2.cjs +1 -0
  570. package/dist/plugin-sdk/deliver-DkfCVM78.js +1 -0
  571. package/dist/plugin-sdk/deliver-Dkh3lqXR.js +1 -0
  572. package/dist/plugin-sdk/deliver-DsFtXFyr.cjs +1 -0
  573. package/dist/plugin-sdk/deliver-vYe_sYOL.js +1 -0
  574. package/dist/plugin-sdk/device-pair.cjs +1 -0
  575. package/dist/plugin-sdk/device-pair.js +1 -0
  576. package/dist/plugin-sdk/diagnostic-8iX73nz_.cjs +1 -0
  577. package/dist/plugin-sdk/diagnostic-CLUtpxAp.js +1 -0
  578. package/dist/plugin-sdk/diagnostic-CVS4k9hh.cjs +1 -0
  579. package/dist/plugin-sdk/diagnostic-CkePwN5F.js +1 -0
  580. package/dist/plugin-sdk/diagnostic-Cu1PGj0E.cjs +1 -0
  581. package/dist/plugin-sdk/diagnostic-D0oCfBju.cjs +1 -0
  582. package/dist/plugin-sdk/diagnostic-D7A9cQYf.cjs +1 -0
  583. package/dist/plugin-sdk/diagnostic-DGLX0zXU.js +1 -0
  584. package/dist/plugin-sdk/diagnostic-DXscFT8t.cjs +1 -0
  585. package/dist/plugin-sdk/diagnostic-Efe4b81B.js +1 -0
  586. package/dist/plugin-sdk/diagnostic-EqHqw9xo.js +1 -0
  587. package/dist/plugin-sdk/diagnostic-vsjHZ_fY.js +1 -0
  588. package/dist/plugin-sdk/diagnostics-otel.cjs +1 -0
  589. package/dist/plugin-sdk/diagnostics-otel.js +1 -0
  590. package/dist/plugin-sdk/diffs.cjs +1 -0
  591. package/dist/plugin-sdk/diffs.js +1 -0
  592. package/dist/plugin-sdk/discord.cjs +1 -0
  593. package/dist/plugin-sdk/discord.js +1 -0
  594. package/dist/plugin-sdk/dispatch-5v3v8zzA.js +1 -0
  595. package/dist/plugin-sdk/dispatch-B6UbZCpL.cjs +1 -0
  596. package/dist/plugin-sdk/dispatch-BYlcmJ9u.js +1 -0
  597. package/dist/plugin-sdk/dispatch-C2YTqGlf.js +1 -0
  598. package/dist/plugin-sdk/dispatch-CNy3g9ma.cjs +1 -0
  599. package/dist/plugin-sdk/dispatch-DCSwqteL.js +1 -0
  600. package/dist/plugin-sdk/dispatch-DHbSBeFJ.js +1 -0
  601. package/dist/plugin-sdk/dispatch-DK5ub8qa.cjs +1 -0
  602. package/dist/plugin-sdk/dispatch-SWyfAZT0.cjs +1 -0
  603. package/dist/plugin-sdk/dispatch-mR2vLkGa.cjs +1 -0
  604. package/dist/plugin-sdk/feishu.cjs +1 -0
  605. package/dist/plugin-sdk/feishu.js +1 -0
  606. package/dist/plugin-sdk/fetch-7Iq9POda.js +1 -0
  607. package/dist/plugin-sdk/fetch-B1GR6-u4.js +1 -0
  608. package/dist/plugin-sdk/fetch-B27H-XCf.js +1 -0
  609. package/dist/plugin-sdk/fetch-BMYDLRWo.js +1 -0
  610. package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +1 -0
  611. package/dist/plugin-sdk/fetch-BVEVk5YF.js +1 -0
  612. package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +1 -0
  613. package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +1 -0
  614. package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +1 -0
  615. package/dist/plugin-sdk/fetch-BtZY623f.js +1 -0
  616. package/dist/plugin-sdk/fetch-C-HRWp5R.js +1 -0
  617. package/dist/plugin-sdk/fetch-C3LEMysf.js +1 -0
  618. package/dist/plugin-sdk/fetch-CCLWsYaQ.js +1 -0
  619. package/dist/plugin-sdk/fetch-CZewCAvu.cjs +1 -0
  620. package/dist/plugin-sdk/fetch-ClKErpni.cjs +1 -0
  621. package/dist/plugin-sdk/fetch-DBRI0sKI.js +1 -0
  622. package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +1 -0
  623. package/dist/plugin-sdk/fetch-DUMEaqum.cjs +1 -0
  624. package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +1 -0
  625. package/dist/plugin-sdk/fetch-J0IzopiJ.js +1 -0
  626. package/dist/plugin-sdk/fetch-guard-8I7EHbDM.cjs +1 -0
  627. package/dist/plugin-sdk/fetch-guard-CIJUkBIL.cjs +1 -0
  628. package/dist/plugin-sdk/fetch-guard-CY03i4gu.js +1 -0
  629. package/dist/plugin-sdk/fetch-guard-Cz-cgYmR.cjs +1 -0
  630. package/dist/plugin-sdk/fetch-guard-DB85MORy.cjs +1 -0
  631. package/dist/plugin-sdk/fetch-guard-DE9BslxX.js +1 -0
  632. package/dist/plugin-sdk/fetch-guard-DLNzldn9.cjs +1 -0
  633. package/dist/plugin-sdk/fetch-guard-DSvAbvSx.js +1 -0
  634. package/dist/plugin-sdk/fetch-guard-DXe8oqEE.js +1 -0
  635. package/dist/plugin-sdk/fetch-guard-DY9jpsXo.cjs +1 -0
  636. package/dist/plugin-sdk/fetch-guard-DbOZYxyN.js +1 -0
  637. package/dist/plugin-sdk/fetch-guard-_fifU0fX.js +1 -0
  638. package/dist/plugin-sdk/fetch-lw-aF17e.cjs +1 -0
  639. package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +1 -0
  640. package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +1 -0
  641. package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +1 -0
  642. package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +1 -0
  643. package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +1 -0
  644. package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +1 -0
  645. package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +1 -0
  646. package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +1 -0
  647. package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +1 -0
  648. package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +1 -0
  649. package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +1 -0
  650. package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +1 -0
  651. package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +1 -0
  652. package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +1 -0
  653. package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +1 -0
  654. package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +1 -0
  655. package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +1 -0
  656. package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +1 -0
  657. package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +1 -0
  658. package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +1 -0
  659. package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +1 -0
  660. package/dist/plugin-sdk/google-gemini-cli-auth.cjs +1 -0
  661. package/dist/plugin-sdk/google-gemini-cli-auth.js +1 -0
  662. package/dist/plugin-sdk/googlechat.cjs +1 -0
  663. package/dist/plugin-sdk/googlechat.js +1 -0
  664. package/dist/plugin-sdk/image-B6HEHWlJ.js +1 -0
  665. package/dist/plugin-sdk/image-Bte8cr4F.js +1 -0
  666. package/dist/plugin-sdk/image-BxafJgQ6.cjs +1 -0
  667. package/dist/plugin-sdk/image-CDI5SqeR.js +1 -0
  668. package/dist/plugin-sdk/image-CTgwucug.cjs +1 -0
  669. package/dist/plugin-sdk/image-CWnsS03L.js +1 -0
  670. package/dist/plugin-sdk/image-CoksjGBL.cjs +1 -0
  671. package/dist/plugin-sdk/image-CuOIoxl2.cjs +1 -0
  672. package/dist/plugin-sdk/image-DJyEMzkq.cjs +1 -0
  673. package/dist/plugin-sdk/image-DegWnAZU.cjs +1 -0
  674. package/dist/plugin-sdk/image-TCSQZpr6.js +1 -0
  675. package/dist/plugin-sdk/image-aG-5S1vd.js +1 -0
  676. package/dist/plugin-sdk/imessage.cjs +1 -0
  677. package/dist/plugin-sdk/imessage.js +1 -0
  678. package/dist/plugin-sdk/index.cjs +1 -0
  679. package/dist/plugin-sdk/index.js +1 -0
  680. package/dist/plugin-sdk/ir-8rDh7div.js +1 -0
  681. package/dist/plugin-sdk/ir-Bh6lKGdS.js +1 -0
  682. package/dist/plugin-sdk/ir-C3VNqnc2.cjs +1 -0
  683. package/dist/plugin-sdk/ir-CZOtKajq.cjs +1 -0
  684. package/dist/plugin-sdk/ir-CveCWs8q.cjs +1 -0
  685. package/dist/plugin-sdk/ir-DAxY-7c1.cjs +1 -0
  686. package/dist/plugin-sdk/ir-DSuLr2UE.cjs +1 -0
  687. package/dist/plugin-sdk/ir-DanxCjD-.cjs +1 -0
  688. package/dist/plugin-sdk/ir-Dgc6qZMX.js +1 -0
  689. package/dist/plugin-sdk/ir-OBi5zaEW.js +1 -0
  690. package/dist/plugin-sdk/ir-hQ6EW92h.js +1 -0
  691. package/dist/plugin-sdk/ir-ynWQeZD9.js +1 -0
  692. package/dist/plugin-sdk/irc.cjs +1 -0
  693. package/dist/plugin-sdk/irc.js +1 -0
  694. package/dist/plugin-sdk/keyed-async-queue.cjs +1 -0
  695. package/dist/plugin-sdk/keyed-async-queue.js +1 -0
  696. package/dist/plugin-sdk/line.cjs +1 -0
  697. package/dist/plugin-sdk/line.js +1 -0
  698. package/dist/plugin-sdk/llm-task.cjs +1 -0
  699. package/dist/plugin-sdk/llm-task.js +1 -0
  700. package/dist/plugin-sdk/load-options-B9Ss5YOO.js +1 -0
  701. package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +1 -0
  702. package/dist/plugin-sdk/load-options-BXvm8HVv.js +1 -0
  703. package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +1 -0
  704. package/dist/plugin-sdk/load-options-BcSg1ODN.js +1 -0
  705. package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +1 -0
  706. package/dist/plugin-sdk/lobster.cjs +1 -0
  707. package/dist/plugin-sdk/lobster.js +1 -0
  708. package/dist/plugin-sdk/local-roots-5udQUs81.js +1 -0
  709. package/dist/plugin-sdk/local-roots-BmhNPIJm.cjs +1 -0
  710. package/dist/plugin-sdk/local-roots-C5UoE741.cjs +1 -0
  711. package/dist/plugin-sdk/local-roots-Ca8KoAAp.js +1 -0
  712. package/dist/plugin-sdk/local-roots-CeAYfmPb.cjs +1 -0
  713. package/dist/plugin-sdk/local-roots-Cu7YCpql.cjs +1 -0
  714. package/dist/plugin-sdk/local-roots-D0yN794S.js +1 -0
  715. package/dist/plugin-sdk/local-roots-D4i3H0UG.cjs +1 -0
  716. package/dist/plugin-sdk/local-roots-DGe-SRNu.js +1 -0
  717. package/dist/plugin-sdk/local-roots-bWA2msT0.js +1 -0
  718. package/dist/plugin-sdk/local-roots-tee85Q-1.js +1 -0
  719. package/dist/plugin-sdk/local-roots-wTkpE7go.cjs +1 -0
  720. package/dist/plugin-sdk/logger-6O6OsYBL.cjs +1 -0
  721. package/dist/plugin-sdk/logger-BlddiV_d.cjs +1 -0
  722. package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +1 -0
  723. package/dist/plugin-sdk/logger-BtrWb0dj.js +1 -0
  724. package/dist/plugin-sdk/logger-C210xuWx.js +1 -0
  725. package/dist/plugin-sdk/logger-DJGHvDbX.js +1 -0
  726. package/dist/plugin-sdk/logger-DPlqYkRm.cjs +1 -0
  727. package/dist/plugin-sdk/logger-DUYnS-W3.cjs +1 -0
  728. package/dist/plugin-sdk/logger-DwWqfo66.js +1 -0
  729. package/dist/plugin-sdk/logger-vBDTZWl3.js +1 -0
  730. package/dist/plugin-sdk/login-B5IwNcl4.cjs +1 -0
  731. package/dist/plugin-sdk/login-BIbt7ZL_.js +1 -0
  732. package/dist/plugin-sdk/login-CxnDKwXC.js +1 -0
  733. package/dist/plugin-sdk/login-D5iTWowo.cjs +1 -0
  734. package/dist/plugin-sdk/login-DHE1rzB1.js +1 -0
  735. package/dist/plugin-sdk/login-DIPBcPQc.cjs +1 -0
  736. package/dist/plugin-sdk/login-DtDOozuU.js +1 -0
  737. package/dist/plugin-sdk/login-UrWNtI80.cjs +1 -0
  738. package/dist/plugin-sdk/login-VviMkBU2.js +1 -0
  739. package/dist/plugin-sdk/login-jQwwt6C-.js +1 -0
  740. package/dist/plugin-sdk/login-mGjCzJzb.cjs +1 -0
  741. package/dist/plugin-sdk/login-pZnnpj38.cjs +1 -0
  742. package/dist/plugin-sdk/login-qr-BexuTIDJ.cjs +1 -0
  743. package/dist/plugin-sdk/login-qr-C366Qlh-.cjs +1 -0
  744. package/dist/plugin-sdk/login-qr-CQY4ty0o.js +1 -0
  745. package/dist/plugin-sdk/login-qr-CSabEb-n.cjs +1 -0
  746. package/dist/plugin-sdk/login-qr-CUgNKijx.js +1 -0
  747. package/dist/plugin-sdk/login-qr-C_LEw1Bi.js +1 -0
  748. package/dist/plugin-sdk/login-qr-CcPvldsG.js +1 -0
  749. package/dist/plugin-sdk/login-qr-CnNGKwDR.cjs +1 -0
  750. package/dist/plugin-sdk/login-qr-DQm50pXk.js +1 -0
  751. package/dist/plugin-sdk/login-qr-DayvAWkx.js +1 -0
  752. package/dist/plugin-sdk/login-qr-eodIsL9V.cjs +1 -0
  753. package/dist/plugin-sdk/login-qr-yIJE7MmY.cjs +1 -0
  754. package/dist/plugin-sdk/manager-932XljTT.js +1 -0
  755. package/dist/plugin-sdk/manager-CGHd5p2T.js +1 -0
  756. package/dist/plugin-sdk/manager-CbGA_JDa.js +1 -0
  757. package/dist/plugin-sdk/manager-CdD7HaGW.cjs +1 -0
  758. package/dist/plugin-sdk/manager-CmAH_a7A.cjs +1 -0
  759. package/dist/plugin-sdk/manager-DIS4ywpb.cjs +1 -0
  760. package/dist/plugin-sdk/manager-DQ2C-2IU.cjs +1 -0
  761. package/dist/plugin-sdk/manager-DdvFnsT7.cjs +1 -0
  762. package/dist/plugin-sdk/manager-DfdDglld.js +1 -0
  763. package/dist/plugin-sdk/manager-MR9stU_p.js +1 -0
  764. package/dist/plugin-sdk/manager-WwW37IUu.js +1 -0
  765. package/dist/plugin-sdk/manager-gE9187gu.cjs +1 -0
  766. package/dist/plugin-sdk/matrix.cjs +1 -0
  767. package/dist/plugin-sdk/matrix.js +1 -0
  768. package/dist/plugin-sdk/mattermost.cjs +1 -0
  769. package/dist/plugin-sdk/mattermost.js +1 -0
  770. package/dist/plugin-sdk/memory-core.cjs +1 -0
  771. package/dist/plugin-sdk/memory-core.js +1 -0
  772. package/dist/plugin-sdk/minimax-portal-auth.cjs +1 -0
  773. package/dist/plugin-sdk/minimax-portal-auth.js +1 -0
  774. package/dist/plugin-sdk/model-auth-BpS4IWDi.cjs +1 -0
  775. package/dist/plugin-sdk/model-auth-BwajGuoF.cjs +1 -0
  776. package/dist/plugin-sdk/model-auth-C1YL9HcW.js +1 -0
  777. package/dist/plugin-sdk/model-auth-Cc-8H6Cu.js +1 -0
  778. package/dist/plugin-sdk/model-auth-Cw3fuhm_.js +1 -0
  779. package/dist/plugin-sdk/model-auth-CycDtQl-.js +1 -0
  780. package/dist/plugin-sdk/model-auth-D-7xiXhK.cjs +1 -0
  781. package/dist/plugin-sdk/model-auth-TFUxaK0f.cjs +1 -0
  782. package/dist/plugin-sdk/model-selection-BADTZM9n.cjs +1 -0
  783. package/dist/plugin-sdk/model-selection-DUAudCtL.js +1 -0
  784. package/dist/plugin-sdk/msteams.cjs +1 -0
  785. package/dist/plugin-sdk/msteams.js +1 -0
  786. package/dist/plugin-sdk/nextcloud-talk.cjs +1 -0
  787. package/dist/plugin-sdk/nextcloud-talk.js +1 -0
  788. package/dist/plugin-sdk/nostr.cjs +1 -0
  789. package/dist/plugin-sdk/nostr.js +1 -0
  790. package/dist/plugin-sdk/outbound-2Lo6mZEY.js +1 -0
  791. package/dist/plugin-sdk/outbound-9XFlZzaF.cjs +1 -0
  792. package/dist/plugin-sdk/outbound-BlWsUmjQ.js +1 -0
  793. package/dist/plugin-sdk/outbound-Bs2rUcWZ.cjs +1 -0
  794. package/dist/plugin-sdk/outbound-C18nEOFP.js +1 -0
  795. package/dist/plugin-sdk/outbound-CW3o4Eng.cjs +1 -0
  796. package/dist/plugin-sdk/outbound-CzsdW5sy.js +1 -0
  797. package/dist/plugin-sdk/outbound-DcP22VOo.cjs +1 -0
  798. package/dist/plugin-sdk/outbound-QhOJAEO8.cjs +1 -0
  799. package/dist/plugin-sdk/outbound-attachment-1pf06Oiu.cjs +1 -0
  800. package/dist/plugin-sdk/outbound-attachment-B8-ZVX2i.cjs +1 -0
  801. package/dist/plugin-sdk/outbound-attachment-BDwI_tn0.cjs +1 -0
  802. package/dist/plugin-sdk/outbound-attachment-BXhbJils.js +1 -0
  803. package/dist/plugin-sdk/outbound-attachment-Bgf1pCh8.js +1 -0
  804. package/dist/plugin-sdk/outbound-attachment-COgf85S8.cjs +1 -0
  805. package/dist/plugin-sdk/outbound-attachment-CfN9OvMC.js +1 -0
  806. package/dist/plugin-sdk/outbound-attachment-CftilZWd.js +1 -0
  807. package/dist/plugin-sdk/outbound-attachment-Cujprd6T.cjs +1 -0
  808. package/dist/plugin-sdk/outbound-attachment-CvSHb9ci.js +1 -0
  809. package/dist/plugin-sdk/outbound-attachment-DQYtdTUw.js +1 -0
  810. package/dist/plugin-sdk/outbound-attachment-FqWC0WJx.cjs +1 -0
  811. package/dist/plugin-sdk/outbound-dTvIiFIZ.js +1 -0
  812. package/dist/plugin-sdk/outbound-fZ1WJGfe.cjs +1 -0
  813. package/dist/plugin-sdk/outbound-oHoWYWxf.js +1 -0
  814. package/dist/plugin-sdk/paths-BPlgbwrb.cjs +1 -0
  815. package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +1 -0
  816. package/dist/plugin-sdk/paths-BpQOWYiT.js +1 -0
  817. package/dist/plugin-sdk/paths-BvlJvmRS.cjs +1 -0
  818. package/dist/plugin-sdk/paths-CIcxeNL-.cjs +1 -0
  819. package/dist/plugin-sdk/paths-CXgWvWAM.js +1 -0
  820. package/dist/plugin-sdk/paths-Chp3zwtq.cjs +1 -0
  821. package/dist/plugin-sdk/paths-CnHSNSeR.js +1 -0
  822. package/dist/plugin-sdk/paths-Cqca1YmF.cjs +1 -0
  823. package/dist/plugin-sdk/paths-CtrEseGU.js +1 -0
  824. package/dist/plugin-sdk/paths-D55o_j8-.js +1 -0
  825. package/dist/plugin-sdk/paths-D90l3h_o.cjs +1 -0
  826. package/dist/plugin-sdk/paths-DaRoqzBQ.js +1 -0
  827. package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +1 -0
  828. package/dist/plugin-sdk/paths-DhSjTRMz.js +1 -0
  829. package/dist/plugin-sdk/paths-Do0djuaj.js +1 -0
  830. package/dist/plugin-sdk/paths-J4JUiRsa.js +1 -0
  831. package/dist/plugin-sdk/paths-cBAF6Bj0.js +1 -0
  832. package/dist/plugin-sdk/paths-piJASC5k.js +1 -0
  833. package/dist/plugin-sdk/paths-rO4ehkyU.js +1 -0
  834. package/dist/plugin-sdk/pi-model-discovery-B9boErNZ.cjs +1 -0
  835. package/dist/plugin-sdk/pi-model-discovery-BJ8wTgFH.cjs +1 -0
  836. package/dist/plugin-sdk/pi-model-discovery-Bb2vCP6M.js +1 -0
  837. package/dist/plugin-sdk/pi-model-discovery-Bor7jHYd.js +1 -0
  838. package/dist/plugin-sdk/pi-model-discovery-BrTw1qE2.cjs +1 -0
  839. package/dist/plugin-sdk/pi-model-discovery-BuEMyAsU.js +1 -0
  840. package/dist/plugin-sdk/pi-model-discovery-CV9NTjC4.js +1 -0
  841. package/dist/plugin-sdk/pi-model-discovery-D5tLf04u.js +1 -0
  842. package/dist/plugin-sdk/pi-model-discovery-D5xlUS2J.cjs +1 -0
  843. package/dist/plugin-sdk/pi-model-discovery-DGoPUzBj.cjs +1 -0
  844. package/dist/plugin-sdk/pi-model-discovery-DMrqvV1O.cjs +1 -0
  845. package/dist/plugin-sdk/pi-model-discovery-DoY7qnlI.cjs +1 -0
  846. package/dist/plugin-sdk/pi-model-discovery-Dqq9Vm8o.js +1 -0
  847. package/dist/plugin-sdk/pi-model-discovery-zCuISPPq.js +1 -0
  848. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-4238P8NF.js +1 -0
  849. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BEoqzgFe.cjs +1 -0
  850. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BGPjibRD.js +1 -0
  851. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BJ_amISU.cjs +1 -0
  852. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BX2r_qPT.cjs +1 -0
  853. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CGLHFxSr.js +1 -0
  854. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsNn_Lv8.js +1 -0
  855. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsiKBTHg.cjs +1 -0
  856. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CuXQQk4F.cjs +1 -0
  857. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DNatrz-3.cjs +1 -0
  858. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-PApjB0tY.js +1 -0
  859. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-xsXDBYNq.js +1 -0
  860. package/dist/plugin-sdk/polls-BuaJuIpV.cjs +1 -0
  861. package/dist/plugin-sdk/polls-CBAGZuJ6.js +1 -0
  862. package/dist/plugin-sdk/polls-CSKMbBIS.js +1 -0
  863. package/dist/plugin-sdk/polls-D0wY0FvT.cjs +1 -0
  864. package/dist/plugin-sdk/polls-PGxiE05J.js +1 -0
  865. package/dist/plugin-sdk/polls-yWqSCEP0.cjs +1 -0
  866. package/dist/plugin-sdk/proxy-env-B765haXA.js +1 -0
  867. package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +1 -0
  868. package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +1 -0
  869. package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +1 -0
  870. package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +1 -0
  871. package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +1 -0
  872. package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +1 -0
  873. package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +1 -0
  874. package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +1 -0
  875. package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +1 -0
  876. package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +1 -0
  877. package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +1 -0
  878. package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +1 -0
  879. package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +1 -0
  880. package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +1 -0
  881. package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +1 -0
  882. package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +1 -0
  883. package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +1 -0
  884. package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +1 -0
  885. package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +1 -0
  886. package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +1 -0
  887. package/dist/plugin-sdk/proxy-fetch-Del551nu.js +1 -0
  888. package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +1 -0
  889. package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +1 -0
  890. package/dist/plugin-sdk/pw-ai-B0_rvdfF.js +1 -0
  891. package/dist/plugin-sdk/pw-ai-BqdrA15F.js +1 -0
  892. package/dist/plugin-sdk/pw-ai-CDzxu5B3.js +1 -0
  893. package/dist/plugin-sdk/pw-ai-CJIogpwF.cjs +1 -0
  894. package/dist/plugin-sdk/pw-ai-CL_gU5PJ.cjs +1 -0
  895. package/dist/plugin-sdk/pw-ai-Ca4aZTaG.cjs +1 -0
  896. package/dist/plugin-sdk/pw-ai-CrfYxLI8.cjs +1 -0
  897. package/dist/plugin-sdk/pw-ai-DCiFlwP8.js +1 -0
  898. package/dist/plugin-sdk/pw-ai-DSqXNmNZ.js +1 -0
  899. package/dist/plugin-sdk/pw-ai-Dh55xTz1.cjs +1 -0
  900. package/dist/plugin-sdk/pw-ai-DxAvipyK.cjs +1 -0
  901. package/dist/plugin-sdk/pw-ai-U9nPHH-0.js +1 -0
  902. package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +1 -0
  903. package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +1 -0
  904. package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +1 -0
  905. package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +1 -0
  906. package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +1 -0
  907. package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +1 -0
  908. package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +1 -0
  909. package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +1 -0
  910. package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +1 -0
  911. package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +1 -0
  912. package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +1 -0
  913. package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +1 -0
  914. package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +1 -0
  915. package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +1 -0
  916. package/dist/plugin-sdk/query-expansion-CAboqtWr.js +1 -0
  917. package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +1 -0
  918. package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +1 -0
  919. package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +1 -0
  920. package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +1 -0
  921. package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +1 -0
  922. package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +1 -0
  923. package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +1 -0
  924. package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +1 -0
  925. package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +1 -0
  926. package/dist/plugin-sdk/qwen-portal-auth.cjs +1 -0
  927. package/dist/plugin-sdk/qwen-portal-auth.js +1 -0
  928. package/dist/plugin-sdk/render-6fCdtAr6.cjs +1 -0
  929. package/dist/plugin-sdk/render-CBsnn-2A.js +1 -0
  930. package/dist/plugin-sdk/render-CzHaQB0d.cjs +1 -0
  931. package/dist/plugin-sdk/render-DGmfCIRG.js +1 -0
  932. package/dist/plugin-sdk/render-DhTJXP1U.js +1 -0
  933. package/dist/plugin-sdk/render-Djx15dPh.js +1 -0
  934. package/dist/plugin-sdk/render-DxBO2Blp.cjs +1 -0
  935. package/dist/plugin-sdk/render-g5VlmgpF.cjs +1 -0
  936. package/dist/plugin-sdk/reply-0zCEbT4w.cjs +1 -0
  937. package/dist/plugin-sdk/reply-D-f2bbXy.js +1 -0
  938. package/dist/plugin-sdk/resolve-outbound-target-CrQGbaua.js +1 -0
  939. package/dist/plugin-sdk/resolve-outbound-target-H7Q9HcfW.js +1 -0
  940. package/dist/plugin-sdk/resolve-outbound-target-MS6Xpp17.cjs +1 -0
  941. package/dist/plugin-sdk/resolve-outbound-target-cDxjy3TL.cjs +1 -0
  942. package/dist/plugin-sdk/send-3VNTSIhr.js +1 -0
  943. package/dist/plugin-sdk/send-61GHLNYP.cjs +1 -0
  944. package/dist/plugin-sdk/send-6q4owAw0.js +1 -0
  945. package/dist/plugin-sdk/send-A2s5sPTd.js +1 -0
  946. package/dist/plugin-sdk/send-B2qa7CSk.js +1 -0
  947. package/dist/plugin-sdk/send-B3aEYvqG.cjs +1 -0
  948. package/dist/plugin-sdk/send-BAoqP09M.cjs +1 -0
  949. package/dist/plugin-sdk/send-BNBJ4CF8.js +1 -0
  950. package/dist/plugin-sdk/send-BTE2rI1E.js +1 -0
  951. package/dist/plugin-sdk/send-BlWuQHYB.js +1 -0
  952. package/dist/plugin-sdk/send-Bnvt7ZUE.cjs +1 -0
  953. package/dist/plugin-sdk/send-Bq6Mqs9G.cjs +1 -0
  954. package/dist/plugin-sdk/send-Bq787fi_.js +1 -0
  955. package/dist/plugin-sdk/send-BrAHLYBR.js +1 -0
  956. package/dist/plugin-sdk/send-Bt2eFBk2.js +1 -0
  957. package/dist/plugin-sdk/send-C4ZFbUux.js +1 -0
  958. package/dist/plugin-sdk/send-C4cyMW4S.cjs +1 -0
  959. package/dist/plugin-sdk/send-C8f5H4XV.cjs +1 -0
  960. package/dist/plugin-sdk/send-CDwTrbgT.cjs +1 -0
  961. package/dist/plugin-sdk/send-CEfs0Fsr.js +1 -0
  962. package/dist/plugin-sdk/send-CFuJjCNB.cjs +1 -0
  963. package/dist/plugin-sdk/send-CJGLeSJ8.cjs +1 -0
  964. package/dist/plugin-sdk/send-CL0W7jLW.js +1 -0
  965. package/dist/plugin-sdk/send-CLl490Gb.cjs +1 -0
  966. package/dist/plugin-sdk/send-CQtITZ7k.cjs +1 -0
  967. package/dist/plugin-sdk/send-CSGh_GVr.cjs +1 -0
  968. package/dist/plugin-sdk/send-CicLiXB4.js +1 -0
  969. package/dist/plugin-sdk/send-Cm7bEwx-.cjs +1 -0
  970. package/dist/plugin-sdk/send-CmO9z2-b.js +1 -0
  971. package/dist/plugin-sdk/send-Co_Wy2kT.cjs +1 -0
  972. package/dist/plugin-sdk/send-Cox_iyYB.cjs +1 -0
  973. package/dist/plugin-sdk/send-CuX4LcJ3.cjs +1 -0
  974. package/dist/plugin-sdk/send-CxMiTtxI.cjs +1 -0
  975. package/dist/plugin-sdk/send-CyyzWwDr.js +1 -0
  976. package/dist/plugin-sdk/send-D-HZnehy.cjs +1 -0
  977. package/dist/plugin-sdk/send-D-qD7BCb.js +1 -0
  978. package/dist/plugin-sdk/send-D3imkSlz.cjs +1 -0
  979. package/dist/plugin-sdk/send-D5UwpCoU.cjs +1 -0
  980. package/dist/plugin-sdk/send-D75OGJco.js +1 -0
  981. package/dist/plugin-sdk/send-DB4i1kUy.cjs +1 -0
  982. package/dist/plugin-sdk/send-DBjzdBda.cjs +1 -0
  983. package/dist/plugin-sdk/send-DPgRTM8s.js +1 -0
  984. package/dist/plugin-sdk/send-DPpBLiL4.js +1 -0
  985. package/dist/plugin-sdk/send-DV_afQnj.cjs +1 -0
  986. package/dist/plugin-sdk/send-DWuChr46.js +1 -0
  987. package/dist/plugin-sdk/send-DZ4szmEa.cjs +1 -0
  988. package/dist/plugin-sdk/send-DZr98eqE.cjs +1 -0
  989. package/dist/plugin-sdk/send-D_1K0zmx.cjs +1 -0
  990. package/dist/plugin-sdk/send-DaLB9Lca.js +1 -0
  991. package/dist/plugin-sdk/send-De4qiprb.js +1 -0
  992. package/dist/plugin-sdk/send-DeU-T5ps.js +1 -0
  993. package/dist/plugin-sdk/send-DtjJM0LO.js +1 -0
  994. package/dist/plugin-sdk/send-DvDCmTQf.js +1 -0
  995. package/dist/plugin-sdk/send-EvcsiFBC.cjs +1 -0
  996. package/dist/plugin-sdk/send-GuISe9C82.js +1 -0
  997. package/dist/plugin-sdk/send-IoGcE0w2.js +1 -0
  998. package/dist/plugin-sdk/send-JVdUTsN1.cjs +1 -0
  999. package/dist/plugin-sdk/send-NpNVFRmY.js +1 -0
  1000. package/dist/plugin-sdk/send-XMOZsJcs.js +1 -0
  1001. package/dist/plugin-sdk/send-h--iKoQE.cjs +1 -0
  1002. package/dist/plugin-sdk/session-8BcB905y.cjs +1 -0
  1003. package/dist/plugin-sdk/session-B2oURX5K.js +1 -0
  1004. package/dist/plugin-sdk/session-BJhNqIOi.js +1 -0
  1005. package/dist/plugin-sdk/session-BRgGsw96.cjs +1 -0
  1006. package/dist/plugin-sdk/session-Be_7rXAz.js +1 -0
  1007. package/dist/plugin-sdk/session-C66IXbE-.js +1 -0
  1008. package/dist/plugin-sdk/session-CCYDbcyV.js +1 -0
  1009. package/dist/plugin-sdk/session-CHu3C2m0.cjs +1 -0
  1010. package/dist/plugin-sdk/session-DUlmK2IL.cjs +1 -0
  1011. package/dist/plugin-sdk/session-DxTRZTnu.js +1 -0
  1012. package/dist/plugin-sdk/session-DzhI0nj-.cjs +1 -0
  1013. package/dist/plugin-sdk/session-WRCBgAzG.cjs +1 -0
  1014. package/dist/plugin-sdk/sessions-DxXXAfdI.js +1 -0
  1015. package/dist/plugin-sdk/sessions-Dz5JUL8j.cjs +1 -0
  1016. package/dist/plugin-sdk/signal.cjs +1 -0
  1017. package/dist/plugin-sdk/signal.js +1 -0
  1018. package/dist/plugin-sdk/skill-commands-B4wI8ETo.cjs +1 -0
  1019. package/dist/plugin-sdk/skill-commands-BoTeA376.cjs +1 -0
  1020. package/dist/plugin-sdk/skill-commands-BwrYJu7Z.js +1 -0
  1021. package/dist/plugin-sdk/skill-commands-BzkMuA58.cjs +1 -0
  1022. package/dist/plugin-sdk/skill-commands-CIAf9cWN.cjs +1 -0
  1023. package/dist/plugin-sdk/skill-commands-CKc7JO_c.cjs +1 -0
  1024. package/dist/plugin-sdk/skill-commands-Cvb6oXym.js +1 -0
  1025. package/dist/plugin-sdk/skill-commands-DWDtyCtB.js +1 -0
  1026. package/dist/plugin-sdk/skill-commands-Hmuw0PPK.js +1 -0
  1027. package/dist/plugin-sdk/skill-commands-KyN0FGaC.cjs +1 -0
  1028. package/dist/plugin-sdk/skill-commands-KzwEqk5p.js +1 -0
  1029. package/dist/plugin-sdk/skill-commands-Ny38ZFIC.js +1 -0
  1030. package/dist/plugin-sdk/slack.cjs +1 -0
  1031. package/dist/plugin-sdk/slack.js +1 -0
  1032. package/dist/plugin-sdk/synology-chat.cjs +1 -0
  1033. package/dist/plugin-sdk/synology-chat.js +1 -0
  1034. package/dist/plugin-sdk/tables-BIDWwpX8.js +1 -0
  1035. package/dist/plugin-sdk/tables-Bk8lHaPx.cjs +1 -0
  1036. package/dist/plugin-sdk/tables-BlNIkMV8.js +1 -0
  1037. package/dist/plugin-sdk/tables-Bp0a2WRP.cjs +1 -0
  1038. package/dist/plugin-sdk/tables-BtVUf77b.cjs +1 -0
  1039. package/dist/plugin-sdk/tables-C4j5Bar_.js +1 -0
  1040. package/dist/plugin-sdk/tables-CZGtYzDC.cjs +1 -0
  1041. package/dist/plugin-sdk/tables-CnrHab5d.cjs +1 -0
  1042. package/dist/plugin-sdk/tables-DtslIPYw.js +1 -0
  1043. package/dist/plugin-sdk/tables-NrdtIJGp.cjs +1 -0
  1044. package/dist/plugin-sdk/tables-XYb3T-vE.js +1 -0
  1045. package/dist/plugin-sdk/tables-lbv-0tl3.js +1 -0
  1046. package/dist/plugin-sdk/target-errors-9cdJA1L2.cjs +1 -0
  1047. package/dist/plugin-sdk/target-errors-BEkhKWCq.cjs +1 -0
  1048. package/dist/plugin-sdk/target-errors-BZRN-lPd.js +1 -0
  1049. package/dist/plugin-sdk/target-errors-BrwqillR.cjs +1 -0
  1050. package/dist/plugin-sdk/target-errors-Buo5pfom.js +1 -0
  1051. package/dist/plugin-sdk/target-errors-CFzzcffg.js +1 -0
  1052. package/dist/plugin-sdk/target-errors-DFmK5loi.js +1 -0
  1053. package/dist/plugin-sdk/target-errors-DXqwykNX.js +1 -0
  1054. package/dist/plugin-sdk/target-errors-Dd6CopYF.cjs +1 -0
  1055. package/dist/plugin-sdk/target-errors-DeNJ10ks.cjs +1 -0
  1056. package/dist/plugin-sdk/targets-BSc11Uk8.cjs +1 -0
  1057. package/dist/plugin-sdk/targets-BSkiizml.js +1 -0
  1058. package/dist/plugin-sdk/targets-CBI0xqve.cjs +1 -0
  1059. package/dist/plugin-sdk/targets-CL5fYQi7.js +1 -0
  1060. package/dist/plugin-sdk/targets-CUZWrFrm.cjs +1 -0
  1061. package/dist/plugin-sdk/targets-CVEYTFPQ.js +1 -0
  1062. package/dist/plugin-sdk/targets-Co2R6K14.cjs +1 -0
  1063. package/dist/plugin-sdk/targets-CrkJkzil.js +1 -0
  1064. package/dist/plugin-sdk/targets-D-m7SV9x.cjs +1 -0
  1065. package/dist/plugin-sdk/targets-D8HTxbo4.js +1 -0
  1066. package/dist/plugin-sdk/targets-DcGNB9nk.cjs +1 -0
  1067. package/dist/plugin-sdk/targets-Dn9gDiEw.js +1 -0
  1068. package/dist/plugin-sdk/targets-X28mff4s.cjs +1 -0
  1069. package/dist/plugin-sdk/targets-uycXZ8vQ.js +1 -0
  1070. package/dist/plugin-sdk/telegram.cjs +1 -0
  1071. package/dist/plugin-sdk/telegram.js +1 -0
  1072. package/dist/plugin-sdk/test-utils.cjs +1 -0
  1073. package/dist/plugin-sdk/test-utils.js +1 -0
  1074. package/dist/plugin-sdk/tlon.cjs +1 -0
  1075. package/dist/plugin-sdk/tlon.js +1 -0
  1076. package/dist/plugin-sdk/tokens-AAdZjj0M.js +1 -0
  1077. package/dist/plugin-sdk/tokens-B20KNIDD.js +1 -0
  1078. package/dist/plugin-sdk/tokens-B8ys7Q2e.js +1 -0
  1079. package/dist/plugin-sdk/tokens-BPc1fcZ3.js +1 -0
  1080. package/dist/plugin-sdk/tokens-BqABmXSe.js +1 -0
  1081. package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +1 -0
  1082. package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +1 -0
  1083. package/dist/plugin-sdk/tokens-CytSl1X8.cjs +1 -0
  1084. package/dist/plugin-sdk/tokens-DgPZk2Uu.js +1 -0
  1085. package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +1 -0
  1086. package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +1 -0
  1087. package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +1 -0
  1088. package/dist/plugin-sdk/twitch.cjs +1 -0
  1089. package/dist/plugin-sdk/twitch.js +1 -0
  1090. package/dist/plugin-sdk/utils-BJtJR72k.js +1 -0
  1091. package/dist/plugin-sdk/utils-PPIvU9qw.cjs +1 -0
  1092. package/dist/plugin-sdk/voice-call.cjs +1 -0
  1093. package/dist/plugin-sdk/voice-call.js +1 -0
  1094. package/dist/plugin-sdk/web-B-QDcVRv.cjs +1 -0
  1095. package/dist/plugin-sdk/web-B2PwjHsu.cjs +1 -0
  1096. package/dist/plugin-sdk/web-BdnQzLgF.js +1 -0
  1097. package/dist/plugin-sdk/web-C9T7tf6w.js +1 -0
  1098. package/dist/plugin-sdk/web-CODD4ksc.cjs +1 -0
  1099. package/dist/plugin-sdk/web-CkdCvvR-.js +1 -0
  1100. package/dist/plugin-sdk/web-_tj8xNZE.js +1 -0
  1101. package/dist/plugin-sdk/web-pcTha_l7.cjs +1 -0
  1102. package/dist/plugin-sdk/weixin.cjs +1 -0
  1103. package/dist/plugin-sdk/weixin.js +1 -0
  1104. package/dist/plugin-sdk/whatsapp-actions-Bhz2j1uz.cjs +1 -0
  1105. package/dist/plugin-sdk/whatsapp-actions-Bm2UyRYg.cjs +1 -0
  1106. package/dist/plugin-sdk/whatsapp-actions-Bolz0jl5.js +1 -0
  1107. package/dist/plugin-sdk/whatsapp-actions-CJ3LDpaG.js +1 -0
  1108. package/dist/plugin-sdk/whatsapp-actions-CL1Gmkb0.js +1 -0
  1109. package/dist/plugin-sdk/whatsapp-actions-D-bZRT7s.js +1 -0
  1110. package/dist/plugin-sdk/whatsapp-actions-DSGTTE8M.cjs +1 -0
  1111. package/dist/plugin-sdk/whatsapp-actions-DjQxgMpW.cjs +1 -0
  1112. package/dist/plugin-sdk/whatsapp-actions-DrPBBi5t.cjs +1 -0
  1113. package/dist/plugin-sdk/whatsapp-actions-DtK657CZ.cjs +1 -0
  1114. package/dist/plugin-sdk/whatsapp-actions-Xwev51_N.js +1 -0
  1115. package/dist/plugin-sdk/whatsapp-actions-m7vLtNAA.js +1 -0
  1116. package/dist/plugin-sdk/whatsapp.cjs +1 -0
  1117. package/dist/plugin-sdk/whatsapp.js +1 -0
  1118. package/dist/plugin-sdk/zalo.cjs +1 -0
  1119. package/dist/plugin-sdk/zalo.js +1 -0
  1120. package/dist/plugin-sdk/zalouser.cjs +1 -0
  1121. package/dist/plugin-sdk/zalouser.js +1 -0
  1122. package/dist/plugins-CYLrFT4h.js +1 -0
  1123. package/dist/plugins-DNlgeTTc.js +1 -0
  1124. package/dist/plugins-cli-BbjMbzJU.js +1 -0
  1125. package/dist/plugins-cli-BiVMAr5T.js +1 -0
  1126. package/dist/polls-BIVz6a4F.js +1 -0
  1127. package/dist/polls-Bh5wc9-6.js +1 -0
  1128. package/dist/polls-C_XSFz3d.js +1 -0
  1129. package/dist/polls-DKJOFSzJ.js +1 -0
  1130. package/dist/ports-B0XdGTfS.js +1 -0
  1131. package/dist/ports-BR0PLRtq.js +1 -0
  1132. package/dist/probe-auth-BMA0yM94.js +1 -0
  1133. package/dist/probe-auth-VI96zmTK.js +1 -0
  1134. package/dist/profile-utils-CWmra1aY.js +1 -0
  1135. package/dist/program-BrAZTwFr.js +1 -0
  1136. package/dist/program-context-B9ydtPje.js +1 -0
  1137. package/dist/program-context-CH9p6anW.js +1 -0
  1138. package/dist/progress-LNttnI-y.js +1 -0
  1139. package/dist/progress-d1m2sqR1.js +1 -0
  1140. package/dist/prompt-select-styled-BeJNbzSa.js +1 -0
  1141. package/dist/prompt-select-styled-DIOWLjl0.js +1 -0
  1142. package/dist/prompt-style-BThRSQJR.js +1 -0
  1143. package/dist/prompt-style-CXKekIBY.js +1 -0
  1144. package/dist/prompts-CMzglboN.js +1 -0
  1145. package/dist/prompts-wv-lfVrJ.js +1 -0
  1146. package/dist/provider-auth-helpers-1lU43eTW.js +1 -0
  1147. package/dist/provider-auth-helpers-pBVCjBj9.js +1 -0
  1148. package/dist/provider-env-vars-D8p6Ohpj.js +1 -0
  1149. package/dist/provider-env-vars-Dt0Q29Su.js +1 -0
  1150. package/dist/proxy-env-BNhTHkd_.js +1 -0
  1151. package/dist/proxy-env-DcmW_urA.js +1 -0
  1152. package/dist/proxy-env-DrC3TIGh.js +1 -0
  1153. package/dist/proxy-env-FJr5nlvs.js +1 -0
  1154. package/dist/proxy-fetch-BADsUK4d.js +1 -0
  1155. package/dist/proxy-fetch-BZ9O8Dvj.js +1 -0
  1156. package/dist/proxy-fetch-DnjU1fEB.js +1 -0
  1157. package/dist/proxy-fetch-gWETR3cl.js +1 -0
  1158. package/dist/push-apns-BGUOmD5M.js +1 -0
  1159. package/dist/push-apns-B_a2MBJ4.js +1 -0
  1160. package/dist/pw-ai-C-Ffkwai.js +1 -0
  1161. package/dist/pw-ai-CV1H1Vrs.js +1 -0
  1162. package/dist/pw-ai-D_MB1lrR.js +1 -0
  1163. package/dist/pw-ai-_l9lVice.js +1 -0
  1164. package/dist/qmd-manager-C_e04BNg.js +1 -0
  1165. package/dist/qmd-manager-DSQ_mDCl.js +1 -0
  1166. package/dist/qmd-manager-DcBYbt_V.js +1 -0
  1167. package/dist/qmd-manager-NLI0R6kp.js +1 -0
  1168. package/dist/qr-cli-3aG6CB6K.js +1 -0
  1169. package/dist/qr-cli-fiJxD5M4.js +1 -0
  1170. package/dist/query-expansion-0OxEb1Io.js +1 -0
  1171. package/dist/query-expansion-BUUx_oWg.js +1 -0
  1172. package/dist/query-expansion-r_iXkNzt.js +1 -0
  1173. package/dist/reaction-level-DVPHL14p.js +1 -0
  1174. package/dist/reaction-message-id-BEEe7X3D.js +1 -0
  1175. package/dist/read-only-account-inspect-DBwAwB3_.js +1 -0
  1176. package/dist/redact-3_CiXMY6.js +1 -0
  1177. package/dist/redact-CnRxK70G.js +1 -0
  1178. package/dist/register.agent-CX78s_X9.js +1 -0
  1179. package/dist/register.agent-DLDKQENq.js +1 -0
  1180. package/dist/register.backup-DkFoTcuT.js +1 -0
  1181. package/dist/register.backup-PzF5rmeU.js +1 -0
  1182. package/dist/register.configure-BA5u9hT3.js +1 -0
  1183. package/dist/register.configure-BhPtf3Qo.js +1 -0
  1184. package/dist/register.maintenance-BhsBepKS.js +1 -0
  1185. package/dist/register.maintenance-r_MzNK3-.js +1 -0
  1186. package/dist/register.message-CTF--Z2a.js +1 -0
  1187. package/dist/register.message-jcZ875be.js +1 -0
  1188. package/dist/register.onboard-C3yL50_c.js +1 -0
  1189. package/dist/register.onboard-CNwnStUk.js +1 -0
  1190. package/dist/register.setup-BRJMzgfU.js +1 -0
  1191. package/dist/register.setup-BvsS-zgm.js +1 -0
  1192. package/dist/register.status-health-sessions-DVc__2pc.js +1 -0
  1193. package/dist/register.status-health-sessions-Dqmkw820.js +1 -0
  1194. package/dist/register.subclis-D-24j83X.js +1 -0
  1195. package/dist/registry-BptzrW8D.js +1 -0
  1196. package/dist/registry-hFAtCSWG.js +1 -0
  1197. package/dist/render-BXEUPIHe.js +1 -0
  1198. package/dist/render-CBsnn-2A.js +1 -0
  1199. package/dist/render-D8OWO2hT.js +1 -0
  1200. package/dist/render-DrrPmnMI.js +1 -0
  1201. package/dist/reply-l-Y47HP4.js +1 -0
  1202. package/dist/restart-CHXEHdSC.js +1 -0
  1203. package/dist/rpc-B3ReBNXG.js +1 -0
  1204. package/dist/rpc-DumDLalJ.js +1 -0
  1205. package/dist/run-main-B_YBE_TN.js +1 -0
  1206. package/dist/runtime-BC5Ep2pJ.js +1 -0
  1207. package/dist/runtime-Dlg2-Omq.js +1 -0
  1208. package/dist/runtime-guard-DFYBaYZS.js +1 -0
  1209. package/dist/runtime-guard-DX2Ie4ri.js +1 -0
  1210. package/dist/runtime-status-CqFBmdRd.js +1 -0
  1211. package/dist/runtime-status-DszMjvJK.js +1 -0
  1212. package/dist/runtime-web-tools-D8fms06-.js +1 -0
  1213. package/dist/runtime-web-tools-bz76ZaRc.js +1 -0
  1214. package/dist/sandbox-cli-BDorUBm-.js +1 -0
  1215. package/dist/sandbox-cli-Bq40R5Vs.js +1 -0
  1216. package/dist/scan-paths-C13EseXp.js +1 -0
  1217. package/dist/scan-paths-CWtvWW40.js +1 -0
  1218. package/dist/search-manager-Bp9x20r6.js +1 -0
  1219. package/dist/secret-file-C7JffiM_.js +1 -0
  1220. package/dist/secret-file-D60EFEOe.js +1 -0
  1221. package/dist/secret-file-DuWm26jS.js +1 -0
  1222. package/dist/secrets-cli-Bo6PC32U.js +1 -0
  1223. package/dist/secrets-cli-CoXJv3Jp.js +1 -0
  1224. package/dist/secure-random-D7JQgiK-.js +1 -0
  1225. package/dist/security-cli-CgZL2KKh.js +1 -0
  1226. package/dist/security-cli-DVOfhwAP.js +1 -0
  1227. package/dist/send-B7sHR38c2.js +1 -0
  1228. package/dist/send-Bx2Qr7VH.js +1 -0
  1229. package/dist/send-C-AP01PR.js +1 -0
  1230. package/dist/send-C1CJ-GHU.js +1 -0
  1231. package/dist/send-C48Y9SAq.js +1 -0
  1232. package/dist/send-CVplsJpw.js +1 -0
  1233. package/dist/send-CW81y5Wz.js +1 -0
  1234. package/dist/send-CYgHok1p.js +1 -0
  1235. package/dist/send-Cgd_VJHR.js +1 -0
  1236. package/dist/send-Chz0YMoJ.js +1 -0
  1237. package/dist/send-D9hVVn7p2.js +1 -0
  1238. package/dist/send-DKrzj_Ts.js +1 -0
  1239. package/dist/send-DRLSCwCk.js +1 -0
  1240. package/dist/send-DavpkzhH.js +1 -0
  1241. package/dist/send-DbeEC2a3.js +1 -0
  1242. package/dist/send-DkiKKUkt.js +1 -0
  1243. package/dist/send-DlfVd5mL.js +1 -0
  1244. package/dist/send-JYgM9Sm-2.js +1 -0
  1245. package/dist/send-hZFDcGLM.js +1 -0
  1246. package/dist/send-vthbs31u.js +1 -0
  1247. package/dist/server-DpyBukwA.js +1 -0
  1248. package/dist/server-IgiSKzXH.js +1 -0
  1249. package/dist/server-node-events-CFSY_-4t.js +1 -0
  1250. package/dist/server-node-events-ZFwmPwQ-.js +1 -0
  1251. package/dist/service-BtB9epJk.js +1 -0
  1252. package/dist/service-DZ9EbS15.js +1 -0
  1253. package/dist/session-C9TDmUS7.js +1 -0
  1254. package/dist/session-CUUGjiV3.js +1 -0
  1255. package/dist/session-DA-i5xQ-.js +1 -0
  1256. package/dist/session-bk3gFwO4.js +1 -0
  1257. package/dist/session-cost-usage-BgqKixv0.js +1 -0
  1258. package/dist/session-cost-usage-CHtVgnE8.js +1 -0
  1259. package/dist/session-key-C7F_iqYg.js +1 -0
  1260. package/dist/session-key-D3P0tf5P.js +1 -0
  1261. package/dist/session-utils-8acNlxwP.js +1 -0
  1262. package/dist/sessions-BsxT0V2m.js +1 -0
  1263. package/dist/shared-9x5sqYRb.js +1 -0
  1264. package/dist/shared-BKWhOp64.js +1 -0
  1265. package/dist/shared-GesXrZzd.js +1 -0
  1266. package/dist/skill-commands-BWW6mc6t.js +1 -0
  1267. package/dist/skill-commands-CSF6wVPU.js +1 -0
  1268. package/dist/skill-commands-Db232ZRp.js +1 -0
  1269. package/dist/skill-commands-HJHHZqt6.js +1 -0
  1270. package/dist/skill-scanner-CUUF3Fvo.js +1 -0
  1271. package/dist/skill-scanner-CkxXNioD.js +1 -0
  1272. package/dist/skills-CKTicUKS.js +1 -0
  1273. package/dist/skills-DHbOKEGc.js +1 -0
  1274. package/dist/skills-cli-9Ls94z5H.js +1 -0
  1275. package/dist/skills-cli-BY7OhJzj.js +1 -0
  1276. package/dist/skills-install-CIdGCXSy.js +1 -0
  1277. package/dist/skills-install-DIdiVt9Y.js +1 -0
  1278. package/dist/skills-status-BWIugRCz.js +1 -0
  1279. package/dist/skills-status-DswSl5aD.js +1 -0
  1280. package/dist/sqlite-CILF3z9U.js +1 -0
  1281. package/dist/stagger-DmFYysrJ.js +1 -0
  1282. package/dist/stagger-DxzgG2jd.js +1 -0
  1283. package/dist/status-C-9fSiMn.js +1 -0
  1284. package/dist/status-CeBGmSAz.js +1 -0
  1285. package/dist/status-DYqPF0rB.js +1 -0
  1286. package/dist/status-JIPeVrsc.js +1 -0
  1287. package/dist/status.update-B_8Gumuc.js +1 -0
  1288. package/dist/status.update-DoSzHu2F.js +1 -0
  1289. package/dist/string-normalization-BrUPaXaM.js +1 -0
  1290. package/dist/string-normalization-DJT5zuUF.js +1 -0
  1291. package/dist/subsystem-BLbY429l.js +1 -0
  1292. package/dist/subsystem-Bc2XrjUz.js +1 -0
  1293. package/dist/subsystem-C5XF2Fy5.js +1 -0
  1294. package/dist/system-cli-CeZfoVPN.js +1 -0
  1295. package/dist/system-cli-DZkTYB9d.js +1 -0
  1296. package/dist/system-run-command-BKfMiqQM.js +1 -0
  1297. package/dist/system-run-command-DEWnZE0r.js +1 -0
  1298. package/dist/systemd-D7odsu4K.js +1 -0
  1299. package/dist/systemd-DbevZh65.js +1 -0
  1300. package/dist/systemd-hints-C0DKDl35.js +1 -0
  1301. package/dist/systemd-hints-lXpMy-kY.js +1 -0
  1302. package/dist/systemd-linger-C2MJD6KG.js +1 -0
  1303. package/dist/systemd-linger-cWKbFNpu.js +1 -0
  1304. package/dist/table-CR7TFMew.js +1 -0
  1305. package/dist/table-CY440fI1.js +1 -0
  1306. package/dist/tables-Brc2lNcB.js +1 -0
  1307. package/dist/tables-CrXdLc_6.js +1 -0
  1308. package/dist/tables-Oieq7UbT.js +1 -0
  1309. package/dist/tables-btcG3yFT.js +1 -0
  1310. package/dist/target-errors-CRlevJJ5.js +1 -0
  1311. package/dist/target-errors-CgWAJOam.js +1 -0
  1312. package/dist/target-errors-CpKXh2RS.js +1 -0
  1313. package/dist/target-errors-a35Md15n.js +1 -0
  1314. package/dist/targets-4EaxWBal.js +1 -0
  1315. package/dist/targets-BJTo7bqu.js +1 -0
  1316. package/dist/targets-BYVMrXDf.js +1 -0
  1317. package/dist/targets-Bq6rS6-Z.js +1 -0
  1318. package/dist/targets-CL5fYQi7.js +1 -0
  1319. package/dist/targets-fozeWOOg.js +1 -0
  1320. package/dist/targets-m_41k_Mv.js +1 -0
  1321. package/dist/telegram/audit.js +1 -0
  1322. package/dist/text-format-CvrvBBre.js +1 -0
  1323. package/dist/text-format-DEWK6oCT.js +1 -0
  1324. package/dist/token-DnTmiyJu.js +1 -0
  1325. package/dist/tokens-B2fq-rL6.js +1 -0
  1326. package/dist/tokens-CL2fSjGl.js +1 -0
  1327. package/dist/tokens-DRM8vzJx.js +1 -0
  1328. package/dist/tokens-XGbQGn67.js +1 -0
  1329. package/dist/tool-display-DJDtttQg.js +1 -0
  1330. package/dist/tool-display-DjuSUUbH.js +1 -0
  1331. package/dist/tui-B506apla.js +1 -0
  1332. package/dist/tui-CJUkUxHb.js +1 -0
  1333. package/dist/tui-cli-BEdGHmhc.js +1 -0
  1334. package/dist/tui-cli-Cq_eXDAV.js +1 -0
  1335. package/dist/types.secrets-C-5U96pc.js +1 -0
  1336. package/dist/types.secrets-D4tbc3Wq.js +1 -0
  1337. package/dist/update-BGrxUIyz.js +1 -0
  1338. package/dist/update-CwTy5DPl.js +1 -0
  1339. package/dist/update-cli-BwBMOeP0.js +1 -0
  1340. package/dist/update-cli-YrBbmw4f.js +1 -0
  1341. package/dist/update-runner-BvtyRBD2.js +1 -0
  1342. package/dist/update-runner-DYamgo1V.js +1 -0
  1343. package/dist/usage-format-BWD8FJFL.js +1 -0
  1344. package/dist/usage-format-yPwal8Iz.js +1 -0
  1345. package/dist/utils-CGdo13HV.js +1 -0
  1346. package/dist/utils-D3t-vPka.js +1 -0
  1347. package/dist/utils-R-mFyVJi.js +1 -0
  1348. package/dist/utils-UGOV_184.js +1 -0
  1349. package/dist/version-q3SkUw2K.js +1 -0
  1350. package/dist/warning-filter.js +1 -0
  1351. package/dist/web-Cq3xWCaD.js +1 -0
  1352. package/dist/web-DwcxsgH0.js +1 -0
  1353. package/dist/webhooks-cli-CIeyainW.js +1 -0
  1354. package/dist/webhooks-cli-DSNAve_D.js +1 -0
  1355. package/dist/whatsapp-actions-B6gt1KeB.js +1 -0
  1356. package/dist/whatsapp-actions-DACoH7qd.js +1 -0
  1357. package/dist/whatsapp-actions-iQhIeMya.js +1 -0
  1358. package/dist/whatsapp-actions-tmjID75a.js +1 -0
  1359. package/dist/widearea-dns-BDx7vkV2.js +1 -0
  1360. package/dist/widearea-dns-BFjqKXu_.js +1 -0
  1361. package/dist/windows-spawn-7oINn5ao.js +1 -0
  1362. package/dist/windows-spawn-AB7ItGAE.js +1 -0
  1363. package/dist/with-timeout-WveKxvFV.js +1 -0
  1364. package/dist/with-timeout-c1CzdShT.js +1 -0
  1365. package/dist/workspace-B0ZQeHXg.js +1 -0
  1366. package/dist/workspace-C45T1Cxg.js +1 -0
  1367. package/dist/workspace-dirs-A8Vib9_B.js +1 -0
  1368. package/dist/workspace-dirs-BhF1Dzxt.js +1 -0
  1369. package/dist/workspace-xNEpaJvu.js +1 -0
  1370. package/dist/wsl-DHxB2Ew_.js +1 -0
  1371. package/dist/wsl-Ok7GaSJ6.js +1 -0
  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/@grammyjs/types/package.json +1 -1
  1375. package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.js +49 -3
  1376. package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.js +49 -3
  1377. package/node_modules/@line/bot-sdk/dist/cjs/client.js +636 -0
  1378. package/node_modules/@line/bot-sdk/dist/cjs/endpoints.js +7 -0
  1379. package/node_modules/@line/bot-sdk/dist/cjs/exceptions.js +15 -1
  1380. package/node_modules/@line/bot-sdk/dist/cjs/http-axios.js +2 -6
  1381. package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js +5 -13
  1382. package/node_modules/@line/bot-sdk/dist/cjs/index.js +3 -1
  1383. package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.js +3 -0
  1384. package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.js +3 -0
  1385. package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.factory.generated.js +66 -0
  1386. package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.js +1999 -0
  1387. package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.js +61 -0
  1388. package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.js +3 -0
  1389. package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.js +3 -0
  1390. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.js +3 -0
  1391. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.js +3 -0
  1392. package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.js +3 -0
  1393. package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.js +3 -0
  1394. package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.js +3 -0
  1395. package/node_modules/@line/bot-sdk/dist/cjs/utils.js +10 -0
  1396. package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
  1397. package/node_modules/@line/bot-sdk/dist/client.js +636 -0
  1398. package/node_modules/@line/bot-sdk/dist/endpoints.js +7 -0
  1399. package/node_modules/@line/bot-sdk/dist/exceptions.js +15 -1
  1400. package/node_modules/@line/bot-sdk/dist/http-axios.js +2 -6
  1401. package/node_modules/@line/bot-sdk/dist/http-fetch.js +5 -13
  1402. package/node_modules/@line/bot-sdk/dist/index.js +1 -0
  1403. package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.js +3 -0
  1404. package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.js +3 -0
  1405. package/node_modules/@line/bot-sdk/dist/line-bot-client.factory.generated.js +63 -0
  1406. package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.js +1995 -0
  1407. package/node_modules/@line/bot-sdk/dist/line-bot-client.js +58 -0
  1408. package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.js +3 -0
  1409. package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.js +3 -0
  1410. package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.js +3 -0
  1411. package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.js +3 -0
  1412. package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.js +3 -0
  1413. package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.js +3 -0
  1414. package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.js +3 -0
  1415. package/node_modules/@line/bot-sdk/dist/utils.js +9 -0
  1416. package/node_modules/@line/bot-sdk/dist/version.js +1 -1
  1417. package/node_modules/@line/bot-sdk/package.json +10 -7
  1418. package/node_modules/@mariozechner/clipboard-linux-x64-gnu/clipboard.linux-x64-gnu.node +0 -0
  1419. package/node_modules/@mariozechner/clipboard-linux-x64-gnu/package.json +25 -0
  1420. package/node_modules/@mariozechner/clipboard-linux-x64-musl/clipboard.linux-x64-musl.node +0 -0
  1421. package/node_modules/@mariozechner/clipboard-linux-x64-musl/package.json +25 -0
  1422. package/node_modules/@slack/bolt/dist/App.js +22 -30
  1423. package/node_modules/@slack/bolt/dist/Assistant.js +21 -37
  1424. package/node_modules/@slack/bolt/dist/CustomFunction.js +1 -43
  1425. package/node_modules/@slack/bolt/dist/context/create-function-complete.js +23 -0
  1426. package/node_modules/@slack/bolt/dist/context/create-function-fail.js +23 -0
  1427. package/node_modules/@slack/bolt/dist/context/create-respond.js +11 -0
  1428. package/node_modules/@slack/bolt/dist/context/create-say-stream.js +16 -0
  1429. package/node_modules/@slack/bolt/dist/context/create-say.js +17 -0
  1430. package/node_modules/@slack/bolt/dist/context/create-set-status.js +21 -0
  1431. package/node_modules/@slack/bolt/dist/context/index.js +16 -0
  1432. package/node_modules/@slack/bolt/dist/helpers.js +79 -3
  1433. package/node_modules/@slack/bolt/dist/index.js +10 -8
  1434. package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.js +5 -1
  1435. package/node_modules/@slack/bolt/dist/types/events/index.js +0 -4
  1436. package/node_modules/@slack/bolt/package.json +7 -7
  1437. package/node_modules/@smithy/config-resolver/package.json +10 -11
  1438. package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +6 -0
  1439. package/node_modules/@smithy/core/dist-cjs/index.js +1 -1
  1440. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +21 -0
  1441. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +21 -0
  1442. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +46 -0
  1443. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +6 -0
  1444. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +24 -0
  1445. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +19 -0
  1446. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +27 -0
  1447. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +5 -0
  1448. package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +10 -0
  1449. package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +44 -0
  1450. package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +5 -0
  1451. package/node_modules/@smithy/core/dist-cjs/setFeature.js +14 -0
  1452. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +17 -0
  1453. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +38 -0
  1454. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +15 -0
  1455. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +6 -0
  1456. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +9 -0
  1457. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +6 -0
  1458. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +61 -0
  1459. package/node_modules/@smithy/core/package.json +15 -16
  1460. package/node_modules/@smithy/credential-provider-imds/package.json +9 -10
  1461. package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +13 -0
  1462. package/node_modules/@smithy/eventstream-codec/package.json +6 -7
  1463. package/node_modules/@smithy/eventstream-serde-browser/package.json +7 -8
  1464. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -8
  1465. package/node_modules/@smithy/eventstream-serde-node/package.json +7 -8
  1466. package/node_modules/@smithy/eventstream-serde-universal/package.json +9 -10
  1467. package/node_modules/@smithy/fetch-http-handler/package.json +12 -13
  1468. package/node_modules/@smithy/hash-node/package.json +6 -7
  1469. package/node_modules/@smithy/invalid-dependency/package.json +6 -7
  1470. package/node_modules/@smithy/middleware-content-length/package.json +7 -8
  1471. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +2 -2
  1472. package/node_modules/@smithy/middleware-endpoint/package.json +13 -14
  1473. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +70 -29
  1474. package/node_modules/@smithy/middleware-retry/dist-es/index.js +5 -4
  1475. package/node_modules/@smithy/middleware-retry/dist-es/longPollMiddleware.js +15 -0
  1476. package/node_modules/@smithy/middleware-retry/dist-es/parseRetryAfterHeader.js +49 -0
  1477. package/node_modules/@smithy/middleware-retry/dist-es/{StandardRetryStrategy.js → retry-pre-sra-deprecated/StandardRetryStrategy.js} +1 -1
  1478. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +13 -20
  1479. package/node_modules/@smithy/middleware-retry/package.json +16 -16
  1480. package/node_modules/@smithy/middleware-serde/package.json +10 -11
  1481. package/node_modules/@smithy/middleware-stack/package.json +7 -8
  1482. package/node_modules/@smithy/node-config-provider/package.json +8 -9
  1483. package/node_modules/@smithy/node-http-handler/package.json +10 -11
  1484. package/node_modules/@smithy/property-provider/package.json +6 -7
  1485. package/node_modules/@smithy/protocol-http/package.json +6 -7
  1486. package/node_modules/@smithy/querystring-builder/package.json +6 -7
  1487. package/node_modules/@smithy/querystring-parser/package.json +6 -7
  1488. package/node_modules/@smithy/service-error-classification/package.json +6 -7
  1489. package/node_modules/@smithy/shared-ini-file-loader/package.json +7 -8
  1490. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +13 -0
  1491. package/node_modules/@smithy/signature-v4/package.json +9 -10
  1492. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
  1493. package/node_modules/@smithy/smithy-client/package.json +14 -15
  1494. package/node_modules/@smithy/types/package.json +7 -8
  1495. package/node_modules/@smithy/url-parser/package.json +7 -8
  1496. package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -9
  1497. package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -12
  1498. package/node_modules/@smithy/util-endpoints/package.json +9 -10
  1499. package/node_modules/@smithy/util-middleware/package.json +6 -7
  1500. package/node_modules/@smithy/util-retry/dist-cjs/index.js +123 -76
  1501. package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +7 -4
  1502. package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +2 -2
  1503. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +24 -25
  1504. package/node_modules/@smithy/util-retry/dist-es/DefaultRetryBackoffStrategy.js +14 -0
  1505. package/node_modules/@smithy/util-retry/dist-es/DefaultRetryToken.js +25 -0
  1506. package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +39 -26
  1507. package/node_modules/@smithy/util-retry/dist-es/index.js +1 -0
  1508. package/node_modules/@smithy/util-retry/dist-es/retries-2026-config.js +18 -0
  1509. package/node_modules/@smithy/util-retry/package.json +10 -11
  1510. package/node_modules/@smithy/util-stream/package.json +12 -13
  1511. package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
  1512. package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +43 -0
  1513. package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
  1514. package/node_modules/@snazzah/davey-linux-x64-musl/package.json +43 -0
  1515. package/node_modules/dotenv/lib/main.js +1 -1
  1516. package/node_modules/dotenv/package.json +1 -1
  1517. package/node_modules/dotenv/skills/dotenv/SKILL.md +32 -52
  1518. package/node_modules/dotenv/skills/dotenvx/SKILL.md +57 -273
  1519. package/node_modules/grammy/out/bot.js +1 -0
  1520. package/node_modules/grammy/out/context.js +35 -0
  1521. package/node_modules/grammy/out/convenience/keyboard.js +30 -2
  1522. package/node_modules/grammy/out/core/api.js +34 -0
  1523. package/node_modules/grammy/out/filter.js +6 -2
  1524. package/node_modules/grammy/out/web.mjs +58 -10
  1525. package/node_modules/grammy/package.json +2 -2
  1526. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +12 -0
  1527. package/node_modules/lru-cache/dist/commonjs/index.js +227 -130
  1528. package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
  1529. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  1530. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +17 -0
  1531. package/node_modules/lru-cache/dist/esm/index.js +227 -130
  1532. package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
  1533. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +1 -0
  1534. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +8 -0
  1535. package/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
  1536. package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  1537. package/node_modules/lru-cache/package.json +29 -9
  1538. package/node_modules/netmask/dist/netmask.js +58 -0
  1539. package/node_modules/netmask/dist/netmask4.js +189 -0
  1540. package/node_modules/netmask/dist/netmask6.js +187 -0
  1541. package/node_modules/netmask/package.json +15 -6
  1542. package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
  1543. package/node_modules/path-expression-matcher/lib/pem.d.cts +93 -0
  1544. package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
  1545. package/node_modules/path-expression-matcher/package.json +1 -1
  1546. package/node_modules/path-expression-matcher/src/ExpressionSet.js +189 -0
  1547. package/node_modules/path-expression-matcher/src/Matcher.js +50 -20
  1548. package/node_modules/path-expression-matcher/src/index.js +3 -2
  1549. package/node_modules/strnum/package.json +1 -1
  1550. package/package.json +1 -1
  1551. package/preset-config.json +12 -0
  1552. package/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +0 -14
  1553. package/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +0 -11
  1554. package/node_modules/netmask/CREDITS.md +0 -30
  1555. package/node_modules/netmask/lib/netmask.coffee +0 -167
  1556. package/node_modules/netmask/lib/netmask.js +0 -208
  1557. package/node_modules/strnum/.github/SECURITY.md +0 -5
  1558. package/node_modules/strnum/.vscode/launch.json +0 -25
  1559. package/node_modules/strnum/algo.stflow +0 -84
  1560. package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +0 -178
  1561. /package/node_modules/@smithy/middleware-retry/dist-es/{AdaptiveRetryStrategy.js → retry-pre-sra-deprecated/AdaptiveRetryStrategy.js} +0 -0
  1562. /package/node_modules/@smithy/middleware-retry/dist-es/{defaultRetryQuota.js → retry-pre-sra-deprecated/defaultRetryQuota.js} +0 -0
  1563. /package/node_modules/@smithy/middleware-retry/dist-es/{delayDecider.js → retry-pre-sra-deprecated/delayDecider.js} +0 -0
  1564. /package/node_modules/@smithy/middleware-retry/dist-es/{retryDecider.js → retry-pre-sra-deprecated/retryDecider.js} +0 -0
  1565. /package/node_modules/@smithy/middleware-retry/dist-es/{types.js → retry-pre-sra-deprecated/types.js} +0 -0
@@ -1 +1,2 @@
1
1
  import{A as e,F as t,I as n,O as r,h as i,k as a}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-T8DuH3ax.js";import{t as o}from"./command-format-CLxIPuLR.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import{t as s}from"./call-B8Fb4_oh.js";import{t as c}from"./links-CBnmRP9D.js";import"./progress-d1m2sqR1.js";import{n as l,t as u}from"./gateway-rpc-tEEvY0kH.js";import{t as d}from"./parse-log-line-CsYLg7Qu.js";import{setTimeout as f}from"node:timers/promises";function p(e){let t=e?.code;return t===`EPIPE`||t===`EIO`}function m(e={}){let t=!1,n=!1,r=(t,r)=>{n||(n=!0,e.onBrokenPipe?.(t,r))},i=(e,n)=>{if(!p(e))throw e;return t=!0,r(e,n),!1},a=(n,r)=>{if(t)return!1;try{e.beforeWrite?.()}catch(e){return i(e,process.stderr)}try{return n.write(r),!t}catch(e){return i(e,n)}};return{write:a,writeLine:(e,t)=>a(e,`${t}\n`),reset:()=>{t=!1,n=!1},isClosed:()=>t}}function h(e,t){if(!e)return t;let n=Number.parseInt(e,10);return Number.isFinite(n)&&n>0?n:t}async function g(e,t,n){let r=await l(`logs.tail`,e,{cursor:t,limit:h(e.limit,200),maxBytes:h(e.maxBytes,25e4)},{progress:n});if(!r||typeof r!=`object`)throw Error(`Unexpected logs.tail response`);return r}function _(e,n=`plain`,r=!1){if(!e)return``;let i=new Date(e);if(Number.isNaN(i.getTime()))return e;let a;return a=r?t(i):i.toISOString(),n===`pretty`?a.slice(11,19):a}function v(t,n){let i=d(t);if(!i)return t;let a=i.subsystem??i.module??``,o=_(i.time,n.pretty?`pretty`:`plain`,n.localTime),s=i.level??``,c=s.padEnd(5).trim(),l=i.message||i.raw;if(!n.pretty)return[o,s,a,l].filter(Boolean).join(` `).trim();let u=r(n.rich,e.muted,o),f=r(n.rich,e.accent,a),p=s===`error`||s===`fatal`?r(n.rich,e.error,c):s===`warn`?r(n.rich,e.warn,c):s===`debug`||s===`trace`?r(n.rich,e.muted,c):r(n.rich,e.info,c),m=s===`error`||s===`fatal`?r(n.rich,e.error,l):s===`warn`?r(n.rich,e.warn,l):s===`debug`||s===`trace`?r(n.rich,e.muted,l):r(n.rich,e.info,l);return[[u,p,f].filter(Boolean).join(` `),m].filter(Boolean).join(` `).trim()}function y(){let e=m({beforeWrite:()=>i(),onBrokenPipe:(e,t)=>{let n=e.code??`EPIPE`,r=`openclaw logs: output ${t===process.stdout?`stdout`:`stderr`} closed (${n}). Stopping tail.`;try{i(),process.stderr.write(`${r}\n`)}catch{}}});return{logLine:t=>e.writeLine(process.stdout,t),errorLine:t=>e.writeLine(process.stderr,t),emitJsonLine:(t,n=!1)=>e.write(n?process.stderr:process.stdout,`${JSON.stringify(t)}\n`)}}function b(t,n,i,a,c,l){let u=s({url:n.url}),d=`Gateway not reachable. Is it running and accessible?`,f=`Hint: run \`${o(`openclaw doctor`)}\`.`,p=t instanceof Error?t.message:String(t);if(i===`json`)return c({type:`error`,message:d,error:p,details:u,hint:f},!0),void 0;l(r(a,e.error,d))&&l(u.message)&&l(r(a,e.muted,f))}function x(t){let i=t.command(`logs`).description(`Tail gateway file logs via RPC`).option(`--limit <n>`,`Max lines to return`,`200`).option(`--max-bytes <n>`,`Max bytes to read`,`250000`).option(`--follow`,`Follow log output`,!1).option(`--interval <ms>`,`Polling interval in ms`,`1000`).option(`--json`,`Emit JSON log lines`,!1).option(`--plain`,`Plain text output (no ANSI styling)`,!1).option(`--no-color`,`Disable ANSI colors`).option(`--local-time`,`Display timestamps in local timezone`,!1).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${c(`/cli/logs`,`docs.openclaw.ai/cli/logs`)}\n`);u(i),i.action(async t=>{let{logLine:i,errorLine:o,emitJsonLine:s}=y(),c=h(t.interval,1e3),l,u=!0,p=!!t.json,m=!p&&!!process.stdout.isTTY&&!t.plain,_=a()&&t.color!==!1,x=!!t.localTime||!!process.env.TZ&&n(process.env.TZ);for(;;){let n,a=u&&!t.follow;try{n=await g(t,l,a)}catch(e){b(e,t,p?`json`:`text`,_,s,o),process.exit(1);return}let h=Array.isArray(n.lines)?n.lines:[];if(p){if(u&&!s({type:`meta`,file:n.file,cursor:n.cursor,size:n.size}))return;for(let e of h){let t=d(e);if(t){if(!s({type:`log`,...t}))return}else if(!s({type:`raw`,raw:e}))return}if(n.truncated&&!s({type:`notice`,message:`Log tail truncated (increase --max-bytes).`})||n.reset&&!s({type:`notice`,message:`Log cursor reset (file rotated).`}))return}else{if(u&&n.file&&!i(`${m?r(_,e.muted,`Log file:`):`Log file:`} ${n.file}`))return;for(let e of h)if(!i(v(e,{pretty:m,rich:_,localTime:x})))return;if(n.truncated&&!o(`Log tail truncated (increase --max-bytes).`)||n.reset&&!o(`Log cursor reset (file rotated).`))return}if(l=typeof n.cursor==`number`&&Number.isFinite(n.cursor)?n.cursor:l,u=!1,!t.follow)return;await f(c)}})}export{x as registerLogsCli};
2
+ //# sourceMappingURL=logs-cli-BA3Aso8a.js.map
@@ -68,3 +68,4 @@ import{B as e,V as t,W as n,o as r}from"./paths-piJASC5k.js";import{c as i}from"
68
68
  WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:w(e.embedding),source:e.source}))}async function Zn(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,r=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...r,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:a(t.text,e.snippetMaxChars),source:t.source}})}const Z=o(`memory`),Q=new Map,$=new Map;async function Qn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var $n=class e extends qn{static async get(r){let{cfg:i,agentId:a}=r,o=Re(i,a);if(!o)return null;let s=n(i,a),c=`${a}:${s}:${JSON.stringify(o)}`,l=Q.get(c);if(l)return l;let u=$.get(c);if(u)return u;let d=(async()=>{let n=await kt({config:i,agentDir:t(i,a),provider:o.provider,remote:o.remote,model:o.model,outputDimensionality:o.outputDimensionality,fallback:o.fallback,local:o.local}),l=Q.get(c);if(l)return l;let u=new e({cacheKey:c,cfg:i,agentId:a,workspaceDir:s,settings:o,providerResult:n,purpose:r.purpose});return Q.set(c,u),u})();$.set(c,d);try{return await d}finally{$.get(c)===d&&$.delete(c)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=xe(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),s=new Map;for(let e of a)for(let t of e){let e=s.get(t.id);(!e||t.score>e.score)&&s.set(t.id,t)}return[...s.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let s=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],c=await this.embedQueryWithTimeout(n),l=c.some(e=>e!==0)?await this.searchVector(c,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return l.filter(e=>e.score>=r).slice(0,i);let u=await this.mergeHybridResults({vector:l,keyword:s,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),d=u.filter(e=>e.score>=r);if(d.length>0||s.length===0)return d.slice(0,i);let f=Math.min(r,a.textWeight),p=new Set(s.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return u.filter(e=>p.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=f).slice(0,i)}async searchVector(e,t){return this.provider?(await Yn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return qt(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await Zn({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:Jt})).map(e=>e)}mergeHybridResults(e){return Yt({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=O.isAbsolute(t)?O.resolve(t):O.resolve(this.workspaceDir,t),r=O.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!O.isAbsolute(r)&&ve(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=T(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await k.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${O.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await Ce(n)).missing)return{text:``,path:r};let o;try{o=await k.readFile(n,`utf-8`)}catch(e){if(v(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let s=o.split(`
69
69
  `),c=Math.max(1,e.from??1),l=Math.max(1,e.lines??s.length);return{text:s.slice(c-1,c-1+l).join(`
70
70
  `),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};export{Qn as n,Re as r,$n as t};
71
+ //# sourceMappingURL=manager-4Y9fRgdw.js.map
@@ -68,3 +68,4 @@ import{t as e}from"./subsystem-BLbY429l.js";import{g as t}from"./paths-BjD3T_xq.
68
68
  WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:he(e.embedding),source:e.source}))}async function er(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,r=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...r,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:p(t.text,e.snippetMaxChars),source:t.source}})}const Z=e(`memory`),Q=new Map,$=new Map;async function tr(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var nr=class e extends Xn{static async get(t){let{cfg:n,agentId:r}=t,i=Re(n,r);if(!i)return null;let a=d(n,r),o=`${r}:${a}:${JSON.stringify(i)}`,s=Q.get(o);if(s)return s;let c=$.get(o);if(c)return c;let l=(async()=>{let s=await jt({config:n,agentDir:u(n,r),provider:i.provider,remote:i.remote,model:i.model,outputDimensionality:i.outputDimensionality,fallback:i.fallback,local:i.local}),c=Q.get(o);if(c)return c;let l=new e({cacheKey:o,cfg:n,agentId:r,workspaceDir:a,settings:i,providerResult:s,purpose:t.purpose});return Q.set(o,l),l})();$.set(o,l);try{return await l}finally{$.get(o)===l&&$.delete(o)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=pe(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),s=new Map;for(let e of a)for(let t of e){let e=s.get(t.id);(!e||t.score>e.score)&&s.set(t.id,t)}return[...s.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let s=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],c=await this.embedQueryWithTimeout(n),l=c.some(e=>e!==0)?await this.searchVector(c,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return l.filter(e=>e.score>=r).slice(0,i);let u=await this.mergeHybridResults({vector:l,keyword:s,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),d=u.filter(e=>e.score>=r);if(d.length>0||s.length===0)return d.slice(0,i);let f=Math.min(r,a.textWeight),p=new Set(s.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return u.filter(e=>p.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=f).slice(0,i)}async searchVector(e,t){return this.provider?(await Qn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return Yt(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await er({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:Xt})).map(e=>e)}mergeHybridResults(e){return Zt({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=k.isAbsolute(t)?k.resolve(t):k.resolve(this.workspaceDir,t),r=k.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!k.isAbsolute(r)&&le(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=D(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await A.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${k.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await x(n)).missing)return{text:``,path:r};let o;try{o=await A.readFile(n,`utf-8`)}catch(e){if(Ce(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let s=o.split(`
69
69
  `),c=Math.max(1,e.from??1),l=Math.max(1,e.lines??s.length);return{text:s.slice(c-1,c-1+l).join(`
70
70
  `),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};export{Re as a,Ve as i,tr as n,Ot as r,nr as t};
71
+ //# sourceMappingURL=manager-C2YW7Hkq.js.map
@@ -68,3 +68,4 @@ import{B as e,G as t,V as n,o as r}from"./paths-CrCoPIVK.js";import{c as i}from"
68
68
  WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:fe(e.embedding),source:e.source}))}async function Zn(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,r=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...r,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:o(t.text,e.snippetMaxChars),source:t.source}})}const Z=a(`memory`),Q=new Map,$=new Map;async function Qn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var $n=class e extends qn{static async get(r){let{cfg:i,agentId:a}=r,o=Re(i,a);if(!o)return null;let s=t(i,a),c=`${a}:${s}:${JSON.stringify(o)}`,l=Q.get(c);if(l)return l;let u=$.get(c);if(u)return u;let d=(async()=>{let t=await kt({config:i,agentDir:n(i,a),provider:o.provider,remote:o.remote,model:o.model,outputDimensionality:o.outputDimensionality,fallback:o.fallback,local:o.local}),l=Q.get(c);if(l)return l;let u=new e({cacheKey:c,cfg:i,agentId:a,workspaceDir:s,settings:o,providerResult:t,purpose:r.purpose});return Q.set(c,u),u})();$.set(c,d);try{return await d}finally{$.get(c)===d&&$.delete(c)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=xe(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),s=new Map;for(let e of a)for(let t of e){let e=s.get(t.id);(!e||t.score>e.score)&&s.set(t.id,t)}return[...s.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let s=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],c=await this.embedQueryWithTimeout(n),l=c.some(e=>e!==0)?await this.searchVector(c,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return l.filter(e=>e.score>=r).slice(0,i);let u=await this.mergeHybridResults({vector:l,keyword:s,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),d=u.filter(e=>e.score>=r);if(d.length>0||s.length===0)return d.slice(0,i);let f=Math.min(r,a.textWeight),p=new Set(s.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return u.filter(e=>p.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=f).slice(0,i)}async searchVector(e,t){return this.provider?(await Yn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return qt(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await Zn({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:Jt})).map(e=>e)}mergeHybridResults(e){return Yt({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=k.isAbsolute(t)?k.resolve(t):k.resolve(this.workspaceDir,t),r=k.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!k.isAbsolute(r)&&ve(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=T(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await O.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${k.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await Ce(n)).missing)return{text:``,path:r};let o;try{o=await O.readFile(n,`utf-8`)}catch(e){if(v(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let s=o.split(`
69
69
  `),c=Math.max(1,e.from??1),l=Math.max(1,e.lines??s.length);return{text:s.slice(c-1,c-1+l).join(`
70
70
  `),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};export{Qn as n,Re as r,$n as t};
71
+ //# sourceMappingURL=manager-Dtd_loL8.js.map
@@ -68,3 +68,4 @@ import{g as e}from"./paths-B4IRk3wi.js";import{t}from"./subsystem-C5XF2Fy5.js";i
68
68
  WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:E(e.embedding),source:e.source}))}async function er(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let r=e.providerModel?` AND model = ?`:``,i=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${r}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...i,...e.sourceFilter.params,e.limit).map(t=>{let r=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:r,textScore:r,snippet:n(t.text,e.snippetMaxChars),source:t.source}})}const Z=t(`memory`),Q=new Map,$=new Map;async function tr(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var nr=class e extends Xn{static async get(t){let{cfg:n,agentId:r}=t,i=Le(n,r);if(!i)return null;let a=m(n,r),o=`${r}:${a}:${JSON.stringify(i)}`,s=Q.get(o);if(s)return s;let c=$.get(o);if(c)return c;let l=(async()=>{let s=await At({config:n,agentDir:p(n,r),provider:i.provider,remote:i.remote,model:i.model,outputDimensionality:i.outputDimensionality,fallback:i.fallback,local:i.local}),c=Q.get(o);if(c)return c;let l=new e({cacheKey:o,cfg:n,agentId:r,workspaceDir:a,settings:i,providerResult:s,purpose:t.purpose});return Q.set(o,l),l})();$.set(o,l);try{return await l}finally{$.get(o)===l&&$.delete(o)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=be(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),s=new Map;for(let e of a)for(let t of e){let e=s.get(t.id);(!e||t.score>e.score)&&s.set(t.id,t)}return[...s.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let s=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],c=await this.embedQueryWithTimeout(n),l=c.some(e=>e!==0)?await this.searchVector(c,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return l.filter(e=>e.score>=r).slice(0,i);let u=await this.mergeHybridResults({vector:l,keyword:s,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),d=u.filter(e=>e.score>=r);if(d.length>0||s.length===0)return d.slice(0,i);let f=Math.min(r,a.textWeight),p=new Set(s.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return u.filter(e=>p.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=f).slice(0,i)}async searchVector(e,t){return this.provider?(await Qn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return Jt(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await er({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:Yt})).map(e=>e)}mergeHybridResults(e){return Xt({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=A.isAbsolute(t)?A.resolve(t):A.resolve(this.workspaceDir,t),r=A.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!A.isAbsolute(r)&&_e(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=D(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await j.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${A.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await Se(n)).missing)return{text:``,path:r};let o;try{o=await j.readFile(n,`utf-8`)}catch(e){if(y(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let s=o.split(`
69
69
  `),c=Math.max(1,e.from??1),l=Math.max(1,e.lines??s.length);return{text:s.slice(c-1,c-1+l).join(`
70
70
  `),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};export{Le as a,Be as i,tr as n,Dt as r,nr as t};
71
+ //# sourceMappingURL=manager-M1GKhLUC.js.map
@@ -2,3 +2,4 @@ import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{A as t,O as n,k as r,p
2
2
  `)),i.log(``)}}function V(e){let o=e.command(`memory`).description(`Search, inspect, and reindex memory files`).addHelpText(`after`,()=>`\n${t.heading(`Examples:`)}\n${b([[`openclaw memory status`,`Show index and provider status.`],[`openclaw memory status --deep`,`Probe embedding provider readiness.`],[`openclaw memory index --force`,`Force a full reindex.`],[`openclaw memory search "meeting notes"`,`Quick search using positional query.`],[`openclaw memory search --query "deployment" --max-results 20`,`Limit results for focused troubleshooting.`],[`openclaw memory status --json`,`Output machine-readable JSON (good for scripts).`]])}\n\n${t.muted(`Docs:`)} ${v(`/cli/memory`,`docs.openclaw.ai/cli/memory`)}\n`);o.command(`status`).description(`Show memory search index status`).option(`--agent <id>`,`Agent id (default: default agent)`).option(`--json`,`Print JSON`).option(`--deep`,`Probe embedding provider availability`).option(`--index`,`Reindex if dirty (implies --deep)`).option(`--verbose`,`Verbose logging`,!1).action(async e=>{await B(e)}),o.command(`index`).description(`Reindex memory files`).option(`--agent <id>`,`Agent id (default: default agent)`).option(`--force`,`Force full reindex`,!1).option(`--verbose`,`Verbose logging`,!1).action(async e=>{a(!!e.verbose);let{config:o,diagnostics:s}=await O(`memory index`);k(s);let c=M(o,e.agent);for(let a of c)await P({cfg:o,agentId:a,run:async o=>{try{let s=o.sync?o.sync.bind(o):void 0;if(e.verbose){let e=o.status(),s=r(),c=e=>n(s,t.heading,e),l=e=>n(s,t.muted,e),u=e=>n(s,t.info,e),d=e=>n(s,t.warn,e),f=e=>l(`${e}:`),p=(e.sources??[]).map(t=>A(t,e.workspaceDir??``,a)),m=e.workspaceDir?N(e.workspaceDir,e.extraPaths??[]):[],h=e.requestedProvider??e.provider,g=e.model??e.provider,_=[`${c(`Memory Index`)} ${l(`(${a})`)}`,`${f(`Provider`)} ${u(e.provider)} ${l(`(requested: ${h})`)}`,`${f(`Model`)} ${u(g)}`,p.length?`${f(`Sources`)} ${u(p.join(`, `))}`:null,m.length?`${f(`Extra paths`)} ${u(m.join(`, `))}`:null].filter(Boolean);e.fallback&&_.push(`${f(`Fallback`)} ${d(e.fallback.from)}`),i.log(_.join(`
3
3
  `)),i.log(``)}let c=Date.now(),l=`Indexing memory…`,u=0,d=0,f=()=>{let e=Math.max(0,Date.now()-c),t=Math.floor(e/1e3),n=Math.floor(t/60),r=t%60;return`${n}:${String(r).padStart(2,`0`)}`},p=()=>{if(d<=0||u<=0)return null;let e=Math.max(1,Date.now()-c),t=u/e;if(!Number.isFinite(t)||t<=0)return null;let n=Math.max(0,(d-u)/t),r=Math.floor(n/1e3),i=Math.floor(r/60),a=r%60;return`${i}:${String(a).padStart(2,`0`)}`},m=()=>{let e=f(),t=p();return t?`${l} · elapsed ${e} · eta ${t}`:`${l} · elapsed ${e}`};if(!s){i.log(`Memory backend does not support manual reindex.`);return}await S({label:`Indexing memory…`,total:0,fallback:e.verbose?`line`:void 0},async(t,n)=>{let r=setInterval(()=>{n.setLabel(m())},1e3);try{await s({reason:`cli`,force:!!e.force,progress:e=>{e.label&&(l=e.label),u=e.completed,d=e.total,t({completed:e.completed,total:e.total,label:m()}),n.setLabel(m())}})}finally{clearInterval(r)}});let h=await R(o);h&&i.log(h),i.log(`Memory index updated (${a}).`)}catch(e){let t=d(e);i.error(`Memory index failed (${a}): ${t}`),process.exitCode=1}}})}),o.command(`search`).description(`Search memory files`).argument(`[query]`,`Search query`).option(`--query <text>`,`Search query (alternative to positional argument)`).option(`--agent <id>`,`Agent id (default: default agent)`).option(`--max-results <n>`,`Max results`,e=>Number(e)).option(`--min-score <n>`,`Minimum score`,e=>Number(e)).option(`--json`,`Print JSON`).action(async(e,a)=>{let o=a.query??e;if(!o){i.error(`Missing search query. Provide a positional query or use --query <text>.`),process.exitCode=1;return}let{config:s,diagnostics:c}=await O(`memory search`);k(c,{json:!!a.json}),await P({cfg:s,agentId:j(s,a.agent),run:async e=>{let s;try{s=await e.search(o,{maxResults:a.maxResults,minScore:a.minScore})}catch(e){let t=d(e);i.error(`Memory search failed: ${t}`),process.exitCode=1;return}if(a.json){i.log(JSON.stringify({results:s},null,2));return}if(s.length===0){i.log(`No matches.`);return}let c=r(),l=[];for(let e of s)l.push(`${n(c,t.success,e.score.toFixed(3))} ${n(c,t.accent,`${u(e.path)}:${e.startLine}-${e.endLine}`)}`),l.push(n(c,t.muted,e.snippet)),l.push(``);i.log(l.join(`
4
4
  `).trim())}})})}export{V as n,D as t};
5
+ //# sourceMappingURL=memory-cli-XaxtBQm1.js.map
@@ -2,3 +2,4 @@ import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{g as t}from"./paths-B4
2
2
  `)),a.log(``)}}function $(e){let t=e.command(`memory`).description(`Search, inspect, and reindex memory files`).addHelpText(`after`,()=>`\n${n.heading(`Examples:`)}\n${w([[`openclaw memory status`,`Show index and provider status.`],[`openclaw memory status --deep`,`Probe embedding provider readiness.`],[`openclaw memory index --force`,`Force a full reindex.`],[`openclaw memory search "meeting notes"`,`Quick search using positional query.`],[`openclaw memory search --query "deployment" --max-results 20`,`Limit results for focused troubleshooting.`],[`openclaw memory status --json`,`Output machine-readable JSON (good for scripts).`]])}\n\n${n.muted(`Docs:`)} ${S(`/cli/memory`,`docs.openclaw.ai/cli/memory`)}\n`);t.command(`status`).description(`Show memory search index status`).option(`--agent <id>`,`Agent id (default: default agent)`).option(`--json`,`Print JSON`).option(`--deep`,`Probe embedding provider availability`).option(`--index`,`Reindex if dirty (implies --deep)`).option(`--verbose`,`Verbose logging`,!1).action(async e=>{await Q(e)}),t.command(`index`).description(`Reindex memory files`).option(`--agent <id>`,`Agent id (default: default agent)`).option(`--force`,`Force full reindex`,!1).option(`--verbose`,`Verbose logging`,!1).action(async e=>{s(!!e.verbose);let{config:t,diagnostics:o}=await G(`memory index`);K(o);let c=J(t,e.agent);for(let o of c)await X({cfg:t,agentId:o,run:async t=>{try{let s=t.sync?t.sync.bind(t):void 0;if(e.verbose){let e=t.status(),s=i(),c=e=>r(s,n.heading,e),l=e=>r(s,n.muted,e),u=e=>r(s,n.info,e),d=e=>r(s,n.warn,e),f=e=>l(`${e}:`),p=(e.sources??[]).map(t=>fe(t,e.workspaceDir??``,o)),m=e.workspaceDir?Y(e.workspaceDir,e.extraPaths??[]):[],h=e.requestedProvider??e.provider,g=e.model??e.provider,_=[`${c(`Memory Index`)} ${l(`(${o})`)}`,`${f(`Provider`)} ${u(e.provider)} ${l(`(requested: ${h})`)}`,`${f(`Model`)} ${u(g)}`,p.length?`${f(`Sources`)} ${u(p.join(`, `))}`:null,m.length?`${f(`Extra paths`)} ${u(m.join(`, `))}`:null].filter(Boolean);e.fallback&&_.push(`${f(`Fallback`)} ${d(e.fallback.from)}`),a.log(_.join(`
3
3
  `)),a.log(``)}let c=Date.now(),l=`Indexing memory…`,u=0,d=0,f=()=>{let e=Math.max(0,Date.now()-c),t=Math.floor(e/1e3),n=Math.floor(t/60),r=t%60;return`${n}:${String(r).padStart(2,`0`)}`},p=()=>{if(d<=0||u<=0)return null;let e=Math.max(1,Date.now()-c),t=u/e;if(!Number.isFinite(t)||t<=0)return null;let n=Math.max(0,(d-u)/t),r=Math.floor(n/1e3),i=Math.floor(r/60),a=r%60;return`${i}:${String(a).padStart(2,`0`)}`},m=()=>{let e=f(),t=p();return t?`${l} · elapsed ${e} · eta ${t}`:`${l} · elapsed ${e}`};if(!s){a.log(`Memory backend does not support manual reindex.`);return}await E({label:`Indexing memory…`,total:0,fallback:e.verbose?`line`:void 0},async(t,n)=>{let r=setInterval(()=>{n.setLabel(m())},1e3);try{await s({reason:`cli`,force:!!e.force,progress:e=>{e.label&&(l=e.label),u=e.completed,d=e.total,t({completed:e.completed,total:e.total,label:m()}),n.setLabel(m())}})}finally{clearInterval(r)}});let h=await he(t);h&&a.log(h),a.log(`Memory index updated (${o}).`)}catch(e){let t=g(e);a.error(`Memory index failed (${o}): ${t}`),process.exitCode=1}}})}),t.command(`search`).description(`Search memory files`).argument(`[query]`,`Search query`).option(`--query <text>`,`Search query (alternative to positional argument)`).option(`--agent <id>`,`Agent id (default: default agent)`).option(`--max-results <n>`,`Max results`,e=>Number(e)).option(`--min-score <n>`,`Minimum score`,e=>Number(e)).option(`--json`,`Print JSON`).action(async(e,t)=>{let o=t.query??e;if(!o){a.error(`Missing search query. Provide a positional query or use --query <text>.`),process.exitCode=1;return}let{config:s,diagnostics:l}=await G(`memory search`);K(l,{json:!!t.json}),await X({cfg:s,agentId:q(s,t.agent),run:async e=>{let s;try{s=await e.search(o,{maxResults:t.maxResults,minScore:t.minScore})}catch(e){let t=g(e);a.error(`Memory search failed: ${t}`),process.exitCode=1;return}if(t.json){a.log(JSON.stringify({results:s},null,2));return}if(s.length===0){a.log(`No matches.`);return}let l=i(),u=[];for(let e of s)u.push(`${r(l,n.success,e.score.toFixed(3))} ${r(l,n.accent,`${c(e.path)}:${e.startLine}-${e.endLine}`)}`),u.push(r(l,n.muted,e.snippet)),u.push(``);a.log(u.join(`
4
4
  `).trim())}})})}export{z as i,$ as n,W as r,de as t};
5
+ //# sourceMappingURL=memory-cli-jhzJ3as7.js.map
@@ -1 +1,2 @@
1
1
  import{t as e}from"./subsystem-C5XF2Fy5.js";import{nu as t,qs as n}from"./model-selection-BlC_rXAN.js";import{t as r}from"./models-config-CdMhNxKV.js";const i=e(`model-catalog`);let a=null,o=!1,s=()=>import(`./pi-model-discovery-Dps1PPWz.js`).then(e=>e.r);const c=`openai-codex`,l=`openai`,u=new Set([`kilocode`]),d=[{provider:l,id:`gpt-5.4`,templateIds:[`gpt-5.2`]},{provider:l,id:`gpt-5.4-pro`,templateIds:[`gpt-5.2-pro`,`gpt-5.2`]},{provider:c,id:`gpt-5.4`,templateIds:[`gpt-5.3-codex`,`gpt-5.2-codex`]},{provider:c,id:`gpt-5.3-codex-spark`,templateIds:[`gpt-5.3-codex`]}];function f(e){let t=(t,n)=>e.find(e=>e.provider.toLowerCase()===t.toLowerCase()&&e.id.toLowerCase()===n.toLowerCase());for(let n of d){if(t(n.provider,n.id))continue;let r=n.templateIds.map(e=>t(n.provider,e)).find(e=>e!==void 0);r&&e.push({...r,id:n.id,name:n.id})}}function p(e){if(!Array.isArray(e))return;let t=e.filter(e=>e===`text`||e===`image`||e===`document`);return t.length>0?t:void 0}function m(e){let t=e.models?.providers;if(!t||typeof t!=`object`)return[];let n=[];for(let[e,r]of Object.entries(t)){let t=e.toLowerCase().trim();if(!u.has(t)||!r||typeof r!=`object`)continue;let i=r.models;if(Array.isArray(i))for(let e of i){if(!e||typeof e!=`object`)continue;let r=e.id;if(typeof r!=`string`)continue;let i=r.trim();if(!i)continue;let a=e.name,o=(typeof a==`string`?a:i).trim()||i,s=e.contextWindow,c=typeof s==`number`&&s>0?s:void 0,l=e.reasoning,u=typeof l==`boolean`?l:void 0,d=p(e.input);n.push({id:i,name:o,provider:t,contextWindow:c,reasoning:u,input:d})}}return n}function h(e){let t=m(e.config);if(t.length===0)return;let n=new Set(e.models.map(e=>`${e.provider.toLowerCase().trim()}::${e.id.toLowerCase().trim()}`));for(let r of t){let t=`${r.provider.toLowerCase().trim()}::${r.id.toLowerCase().trim()}`;n.has(t)||(e.models.push(r),n.add(t))}}async function g(e){return e?.useCache===!1&&(a=null),a||(a=(async()=>{let c=[],l=e=>e.sort((e,t)=>{let n=e.provider.localeCompare(t.provider);return n===0?e.name.localeCompare(t.name):n});try{let i=e?.config??n();await r(i);let o=await s(),u=t(),{join:d}=await import(`node:path`),p=o.discoverAuthStorage(u),m=new o.ModelRegistry(p,d(u,`models.json`)),g=Array.isArray(m)?m:m.getAll();for(let e of g){let t=String(e?.id??``).trim();if(!t)continue;let n=String(e?.provider??``).trim();if(!n)continue;let r=String(e?.name??t).trim()||t,i=typeof e?.contextWindow==`number`&&e.contextWindow>0?e.contextWindow:void 0,a=typeof e?.reasoning==`boolean`?e.reasoning:void 0,o=Array.isArray(e?.input)?e.input:void 0;c.push({id:t,name:r,provider:n,contextWindow:i,reasoning:a,input:o})}return h({config:i,models:c}),f(c),c.length===0&&(a=null),l(c)}catch(e){return o||(o=!0,i.warn(`Failed to load model catalog: ${String(e)}`)),a=null,c.length>0?l(c):[]}})(),a)}function _(e){return e?.input?.includes(`image`)??!1}function v(e,t,n){let r=t.toLowerCase().trim(),i=n.toLowerCase().trim();return e.find(e=>e.provider.toLowerCase()===r&&e.id.toLowerCase()===i)}export{g as n,_ as r,v as t};
2
+ //# sourceMappingURL=model-catalog-C1kpjR75.js.map
@@ -1 +1,2 @@
1
1
  import{t as e}from"./subsystem-BLbY429l.js";import{Mc as t,jo as n}from"./auth-profiles-T8DuH3ax.js";import{t as r}from"./models-config-_htt7eY5.js";const i=e(`model-catalog`);let a=null,o=!1,s=()=>import(`./pi-model-discovery-CpjYoBQf.js`).then(e=>e.r);const c=`openai-codex`,l=`openai`,u=new Set([`kilocode`]),d=[{provider:l,id:`gpt-5.4`,templateIds:[`gpt-5.2`]},{provider:l,id:`gpt-5.4-pro`,templateIds:[`gpt-5.2-pro`,`gpt-5.2`]},{provider:c,id:`gpt-5.4`,templateIds:[`gpt-5.3-codex`,`gpt-5.2-codex`]},{provider:c,id:`gpt-5.3-codex-spark`,templateIds:[`gpt-5.3-codex`]}];function f(e){let t=(t,n)=>e.find(e=>e.provider.toLowerCase()===t.toLowerCase()&&e.id.toLowerCase()===n.toLowerCase());for(let n of d){if(t(n.provider,n.id))continue;let r=n.templateIds.map(e=>t(n.provider,e)).find(e=>e!==void 0);r&&e.push({...r,id:n.id,name:n.id})}}function p(e){if(!Array.isArray(e))return;let t=e.filter(e=>e===`text`||e===`image`||e===`document`);return t.length>0?t:void 0}function m(e){let t=e.models?.providers;if(!t||typeof t!=`object`)return[];let n=[];for(let[e,r]of Object.entries(t)){let t=e.toLowerCase().trim();if(!u.has(t)||!r||typeof r!=`object`)continue;let i=r.models;if(Array.isArray(i))for(let e of i){if(!e||typeof e!=`object`)continue;let r=e.id;if(typeof r!=`string`)continue;let i=r.trim();if(!i)continue;let a=e.name,o=(typeof a==`string`?a:i).trim()||i,s=e.contextWindow,c=typeof s==`number`&&s>0?s:void 0,l=e.reasoning,u=typeof l==`boolean`?l:void 0,d=p(e.input);n.push({id:i,name:o,provider:t,contextWindow:c,reasoning:u,input:d})}}return n}function h(e){let t=m(e.config);if(t.length===0)return;let n=new Set(e.models.map(e=>`${e.provider.toLowerCase().trim()}::${e.id.toLowerCase().trim()}`));for(let r of t){let t=`${r.provider.toLowerCase().trim()}::${r.id.toLowerCase().trim()}`;n.has(t)||(e.models.push(r),n.add(t))}}async function g(e){return e?.useCache===!1&&(a=null),a||(a=(async()=>{let c=[],l=e=>e.sort((e,t)=>{let n=e.provider.localeCompare(t.provider);return n===0?e.name.localeCompare(t.name):n});try{let i=e?.config??n();await r(i);let o=await s(),u=t(),{join:d}=await import(`node:path`),p=o.discoverAuthStorage(u),m=new o.ModelRegistry(p,d(u,`models.json`)),g=Array.isArray(m)?m:m.getAll();for(let e of g){let t=String(e?.id??``).trim();if(!t)continue;let n=String(e?.provider??``).trim();if(!n)continue;let r=String(e?.name??t).trim()||t,i=typeof e?.contextWindow==`number`&&e.contextWindow>0?e.contextWindow:void 0,a=typeof e?.reasoning==`boolean`?e.reasoning:void 0,o=Array.isArray(e?.input)?e.input:void 0;c.push({id:t,name:r,provider:n,contextWindow:i,reasoning:a,input:o})}return h({config:i,models:c}),f(c),c.length===0&&(a=null),l(c)}catch(e){return o||(o=!0,i.warn(`Failed to load model catalog: ${String(e)}`)),a=null,c.length>0?l(c):[]}})(),a)}function _(e){return e?.input?.includes(`image`)??!1}function v(e,t,n){let r=t.toLowerCase().trim(),i=n.toLowerCase().trim();return e.find(e=>e.provider.toLowerCase()===r&&e.id.toLowerCase()===i)}export{g as n,_ as r,v as t};
2
+ //# sourceMappingURL=model-catalog-COVzoZD9.js.map
@@ -1 +1,2 @@
1
1
  function e(e){let t=e.toLowerCase().matchAll(/(?:^|[^a-z0-9])[a-z]?(\d+(?:\.\d+)?)b(?:[^a-z0-9]|$)/g),n=null;for(let e of t){let t=e[1];if(!t)continue;let r=Number(t);!Number.isFinite(r)||r<=0||(n===null||r>n)&&(n=r)}return n}export{e as t};
2
+ //# sourceMappingURL=model-param-b-B0r2cPDw.js.map
@@ -1 +1,2 @@
1
1
  function e(e){let t=e.toLowerCase().matchAll(/(?:^|[^a-z0-9])[a-z]?(\d+(?:\.\d+)?)b(?:[^a-z0-9]|$)/g),n=null;for(let e of t){let t=e[1];if(!t)continue;let r=Number(t);!Number.isFinite(r)||r<=0||(n===null||r>n)&&(n=r)}return n}export{e as t};
2
+ //# sourceMappingURL=model-param-b-BqIr5rY5.js.map
@@ -1 +1,2 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{Cc as t,Fc as n,Gc as r,Hc as i,Lc as a,Tc as o,Yc as s,cl as c,du as l,fl as u,fu as d,yc as f}from"./auth-profiles-T8DuH3ax.js";import{P as p}from"./agent-scope-DAWJwFfl.js";import{n as m}from"./model-catalog-COVzoZD9.js";import{o as h,t as g}from"./openai-codex-model-default-DuE2_wN7.js";const _=`http://127.0.0.1:8000/v1`,v={input:0,output:0,cacheRead:0,cacheWrite:0};async function y(e){let n=await e.prompter.text({message:`vLLM base URL`,initialValue:_,placeholder:_,validate:e=>e?.trim()?void 0:`Required`}),r=await e.prompter.text({message:`vLLM API key`,placeholder:`sk-... (or any non-empty string)`,validate:e=>e?.trim()?void 0:`Required`}),i=await e.prompter.text({message:`vLLM model`,placeholder:`meta-llama/Meta-Llama-3-8B-Instruct`,validate:e=>e?.trim()?void 0:`Required`}),a=String(n??``).trim().replace(/\/+$/,``),o=String(r??``).trim(),s=String(i??``).trim(),c=`vllm/${s}`;return await t({profileId:`vllm:default`,credential:{type:`api_key`,provider:`vllm`,key:o},agentDir:e.agentDir}),{config:{...e.cfg,models:{...e.cfg.models,mode:e.cfg.models?.mode??`merge`,providers:{...e.cfg.models?.providers,vllm:{baseUrl:a,api:`openai-completions`,apiKey:`VLLM_API_KEY`,models:[{id:s,name:s,reasoning:!1,input:[`text`],cost:v,contextWindow:128e3,maxTokens:8192}]}}}},modelId:s,modelRef:c}}var b=e({applyModelAllowlist:()=>I,applyModelFallbacksFromSelection:()=>L,applyPrimaryModel:()=>F,promptDefaultModel:()=>N,promptModelAllowlist:()=>P});const x=`__keep__`,S=`__manual__`,C=`__vllm__`,w=new Set([`openrouter/auto`]);function T(e,t,n){return!!(f(n,e).length>0||u(e)||c(t,e))}function E(e){let t=o(e.agentDir,{allowKeychainPrompt:!1}),n=new Map;return r=>{let i=n.get(r);if(i!==void 0)return i;let a=T(r,e.cfg,t);return n.set(r,a),a}}function D(e){return p(e.agents?.defaults?.model)??``}function O(e){let t=e.agents?.defaults?.models??{};return Object.keys(t).map(e=>String(e??``).trim()).filter(e=>e.length>0)}function k(e){let t=new Set,n=[];for(let r of e){let e=String(r??``).trim();!e||t.has(e)||(t.add(e),n.push(e))}return n}function A(e){let t=i(e.entry.provider,e.entry.id);if(e.seen.has(t)||w.has(t))return;let n=[];e.entry.name&&e.entry.name!==e.entry.id&&n.push(e.entry.name),e.entry.contextWindow&&n.push(`ctx ${h(e.entry.contextWindow)}`),e.entry.reasoning&&n.push(`reasoning`);let r=e.aliasIndex.byKey.get(t);r?.length&&n.push(`alias: ${r.join(`, `)}`),e.hasAuth(e.entry.provider)||n.push(`auth missing`),e.options.push({value:t,label:t,hint:n.length>0?n.join(` · `):void 0}),e.seen.add(t)}function j(e){return e.provider===`anthropic`&&typeof e.id==`string`&&e.id.toLowerCase().startsWith(`claude-3`)}async function M(e){let t=await e.prompter.text({message:e.allowBlank?`Default model (blank to keep)`:`Default model`,initialValue:e.initialValue,placeholder:`provider/model`,validate:e.allowBlank?void 0:e=>e?.trim()?void 0:`Required`}),n=String(t??``).trim();return n?{model:n}:{}}async function N(e){let t=e.config,o=e.allowKeep??!0,c=e.includeManual??!0,u=e.includeVllm??!1,f=e.ignoreAllowlist??!1,p=e.preferredProvider?.trim(),h=p?r(p):void 0,g=D(t),_=s({cfg:t,defaultProvider:d,defaultModel:l}),v=i(_.provider,_.model),b=g?v:``,w=await m({config:t,useCache:!1});if(w.length===0)return M({prompter:e.prompter,allowBlank:o,initialValue:g||v||void 0});let T=a({cfg:t,defaultProvider:d}),O=w;if(!f){let{allowedCatalog:e}=n({cfg:t,catalog:w,defaultProvider:d});O=e.length>0?e:w}if(O.length===0)return M({prompter:e.prompter,allowBlank:o,initialValue:g||v||void 0});let k=Array.from(new Set(O.map(e=>e.provider))).toSorted((e,t)=>e.localeCompare(t)),N=h?k.includes(h):!1;if(!N&&k.length>1&&O.length>30){let t=await e.prompter.select({message:`Filter models by provider`,options:[{value:`*`,label:`All providers`},...k.map(e=>{let t=O.filter(t=>t.provider===e).length;return{value:e,label:e,hint:`${t} model${t===1?``:`s`}`}})]});t!==`*`&&(O=O.filter(e=>e.provider===t))}N&&h&&(O=O.filter(e=>h===`volcengine`?e.provider===`volcengine`||e.provider===`volcengine-plan`:h===`byteplus`?e.provider===`byteplus`||e.provider===`byteplus-plan`:e.provider===h),h===`anthropic`&&(O=O.filter(e=>!j(e))));let P=e.agentDir,F=E({cfg:t,agentDir:P}),I=[];o&&I.push({value:x,label:g?`Keep current (${g})`:`Keep current (default: ${v})`,hint:g&&g!==v?`resolves to ${v}`:void 0}),c&&I.push({value:S,label:`Enter model manually`}),u&&P&&I.push({value:C,label:`vLLM (custom)`,hint:`Enter vLLM URL + API key + model`});let L=new Set;for(let e of O)A({entry:e,options:I,seen:L,aliasIndex:T,hasAuth:F});b&&!L.has(b)&&I.push({value:b,label:b,hint:`current (not in catalog)`});let R=o?x:b||void 0;if(o&&N&&h&&_.provider!==h){let e=O[0];e&&(R=i(e.provider,e.id))}let z=await e.prompter.select({message:e.message??`Default model`,options:I,initialValue:R});if(z===x)return{};if(z===S)return M({prompter:e.prompter,allowBlank:!1,initialValue:g||v||void 0});if(z===C){if(!P)return await e.prompter.note(`vLLM setup requires an agent directory context.`,`vLLM not available`),{};let{config:n,modelRef:r}=await y({cfg:t,prompter:e.prompter,agentDir:P});return{model:r,config:n}}return{model:String(z)}}async function P(e){let t=e.config,n=O(t),r=k(e.allowedKeys??[]),o=r.length>0?new Set(r):null,c=s({cfg:t,defaultProvider:d,defaultModel:l}),u=i(c.provider,c.model),f=k([...n,u,...e.initialSelections??[]]),p=o?f.filter(e=>o.has(e)):f,h=await m({config:t,useCache:!1});if(h.length===0&&r.length===0){let t=await e.prompter.text({message:e.message??`Allowlist models (comma-separated provider/model; blank to keep current)`,initialValue:n.join(`, `),placeholder:`${g}, anthropic/claude-opus-4-6`}),r=String(t??``).split(`,`).map(e=>e.trim()).filter(e=>e.length>0);return r.length===0?{}:{models:k(r)}}let _=a({cfg:t,defaultProvider:d}),v=E({cfg:t,agentDir:e.agentDir}),y=[],b=new Set,x=o?h.filter(e=>o.has(i(e.provider,e.id))):h;for(let e of x)A({entry:e,options:y,seen:b,aliasIndex:_,hasAuth:v});let S=o?r:n;for(let e of S)b.has(e)||(y.push({value:e,label:e,hint:o?`allowed (not in catalog)`:`configured (not in catalog)`}),b.add(e));if(y.length===0)return{};let C=k((await e.prompter.multiselect({message:e.message??`Models in /model picker (multi-select)`,options:y,initialValues:p.length>0?p:void 0,searchable:!0})).map(e=>String(e)));return C.length>0?{models:C}:n.length===0||await e.prompter.confirm({message:`Clear the model allowlist? (shows all models)`,initialValue:!1})?{models:[]}:{}}function F(e,t){let n=e.agents?.defaults,r=n?.model,i=n?.models,a=typeof r==`object`&&r&&`fallbacks`in r?r.fallbacks:void 0;return{...e,agents:{...e.agents,defaults:{...n,model:{...a?{fallbacks:a}:void 0,primary:t},models:{...i,[t]:i?.[t]??{}}}}}}function I(e,t){let n=e.agents?.defaults,r=k(t);if(r.length===0){if(!n?.models)return e;let{models:t,...r}=n;return{...e,agents:{...e.agents,defaults:r}}}let i=n?.models??{},a={};for(let e of r)a[e]=i[e]??{};return{...e,agents:{...e.agents,defaults:{...n,models:a}}}}function L(e,t){let n=k(t);if(n.length<=1)return e;let r=s({cfg:e,defaultProvider:d,defaultModel:l}),a=i(r.provider,r.model);if(!n.includes(a))return e;let o=e.agents?.defaults,c=o?.model,u=typeof c==`string`?c:c&&typeof c==`object`?c.primary:void 0,f=n.filter(e=>e!==a);return{...e,agents:{...e.agents,defaults:{...o,model:{...typeof c==`object`?c:void 0,primary:u??a,fallbacks:f}}}}}export{N as a,b as i,L as n,P as o,F as r,y as s,I as t};
2
+ //# sourceMappingURL=model-picker-D3ZSpr0i.js.map
@@ -1 +1,2 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{M as t,O as n,Ul as r,Yl as i,c as a,d as o,fu as s,h as c,pu as l,ql as u,r as d,t as f}from"./model-selection-BlC_rXAN.js";import{P as p}from"./agent-scope-DXZc3eNT.js";import{n as m}from"./model-catalog-C1kpjR75.js";import{o as h,t as g}from"./openai-codex-model-default-yVfRw-Mm.js";const _=`http://127.0.0.1:8000/v1`,v={input:0,output:0,cacheRead:0,cacheWrite:0};async function y(e){let t=await e.prompter.text({message:`vLLM base URL`,initialValue:_,placeholder:_,validate:e=>e?.trim()?void 0:`Required`}),n=await e.prompter.text({message:`vLLM API key`,placeholder:`sk-... (or any non-empty string)`,validate:e=>e?.trim()?void 0:`Required`}),r=await e.prompter.text({message:`vLLM model`,placeholder:`meta-llama/Meta-Llama-3-8B-Instruct`,validate:e=>e?.trim()?void 0:`Required`}),i=String(t??``).trim().replace(/\/+$/,``),a=String(n??``).trim(),o=String(r??``).trim(),s=`vllm/${o}`;return await u({profileId:`vllm:default`,credential:{type:`api_key`,provider:`vllm`,key:a},agentDir:e.agentDir}),{config:{...e.cfg,models:{...e.cfg.models,mode:e.cfg.models?.mode??`merge`,providers:{...e.cfg.models?.providers,vllm:{baseUrl:i,api:`openai-completions`,apiKey:`VLLM_API_KEY`,models:[{id:o,name:o,reasoning:!1,input:[`text`],cost:v,contextWindow:128e3,maxTokens:8192}]}}}},modelId:o,modelRef:s}}var b=e({applyModelAllowlist:()=>I,applyModelFallbacksFromSelection:()=>L,applyPrimaryModel:()=>F,promptDefaultModel:()=>N,promptModelAllowlist:()=>P});const x=`__keep__`,S=`__manual__`,C=`__vllm__`,w=new Set([`openrouter/auto`]);function T(e,i,a){return!!(r(a,e).length>0||t(e)||n(i,e))}function E(e){let t=i(e.agentDir,{allowKeychainPrompt:!1}),n=new Map;return r=>{let i=n.get(r);if(i!==void 0)return i;let a=T(r,e.cfg,t);return n.set(r,a),a}}function D(e){return p(e.agents?.defaults?.model)??``}function O(e){let t=e.agents?.defaults?.models??{};return Object.keys(t).map(e=>String(e??``).trim()).filter(e=>e.length>0)}function k(e){let t=new Set,n=[];for(let r of e){let e=String(r??``).trim();!e||t.has(e)||(t.add(e),n.push(e))}return n}function A(e){let t=a(e.entry.provider,e.entry.id);if(e.seen.has(t)||w.has(t))return;let n=[];e.entry.name&&e.entry.name!==e.entry.id&&n.push(e.entry.name),e.entry.contextWindow&&n.push(`ctx ${h(e.entry.contextWindow)}`),e.entry.reasoning&&n.push(`reasoning`);let r=e.aliasIndex.byKey.get(t);r?.length&&n.push(`alias: ${r.join(`, `)}`),e.hasAuth(e.entry.provider)||n.push(`auth missing`),e.options.push({value:t,label:t,hint:n.length>0?n.join(` · `):void 0}),e.seen.add(t)}function j(e){return e.provider===`anthropic`&&typeof e.id==`string`&&e.id.toLowerCase().startsWith(`claude-3`)}async function M(e){let t=await e.prompter.text({message:e.allowBlank?`Default model (blank to keep)`:`Default model`,initialValue:e.initialValue,placeholder:`provider/model`,validate:e.allowBlank?void 0:e=>e?.trim()?void 0:`Required`}),n=String(t??``).trim();return n?{model:n}:{}}async function N(e){let t=e.config,n=e.allowKeep??!0,r=e.includeManual??!0,i=e.includeVllm??!1,u=e.ignoreAllowlist??!1,p=e.preferredProvider?.trim(),h=p?o(p):void 0,g=D(t),_=c({cfg:t,defaultProvider:l,defaultModel:s}),v=a(_.provider,_.model),b=g?v:``,w=await m({config:t,useCache:!1});if(w.length===0)return M({prompter:e.prompter,allowBlank:n,initialValue:g||v||void 0});let T=d({cfg:t,defaultProvider:l}),O=w;if(!u){let{allowedCatalog:e}=f({cfg:t,catalog:w,defaultProvider:l});O=e.length>0?e:w}if(O.length===0)return M({prompter:e.prompter,allowBlank:n,initialValue:g||v||void 0});let k=Array.from(new Set(O.map(e=>e.provider))).toSorted((e,t)=>e.localeCompare(t)),N=h?k.includes(h):!1;if(!N&&k.length>1&&O.length>30){let t=await e.prompter.select({message:`Filter models by provider`,options:[{value:`*`,label:`All providers`},...k.map(e=>{let t=O.filter(t=>t.provider===e).length;return{value:e,label:e,hint:`${t} model${t===1?``:`s`}`}})]});t!==`*`&&(O=O.filter(e=>e.provider===t))}N&&h&&(O=O.filter(e=>h===`volcengine`?e.provider===`volcengine`||e.provider===`volcengine-plan`:h===`byteplus`?e.provider===`byteplus`||e.provider===`byteplus-plan`:e.provider===h),h===`anthropic`&&(O=O.filter(e=>!j(e))));let P=e.agentDir,F=E({cfg:t,agentDir:P}),I=[];n&&I.push({value:x,label:g?`Keep current (${g})`:`Keep current (default: ${v})`,hint:g&&g!==v?`resolves to ${v}`:void 0}),r&&I.push({value:S,label:`Enter model manually`}),i&&P&&I.push({value:C,label:`vLLM (custom)`,hint:`Enter vLLM URL + API key + model`});let L=new Set;for(let e of O)A({entry:e,options:I,seen:L,aliasIndex:T,hasAuth:F});b&&!L.has(b)&&I.push({value:b,label:b,hint:`current (not in catalog)`});let R=n?x:b||void 0;if(n&&N&&h&&_.provider!==h){let e=O[0];e&&(R=a(e.provider,e.id))}let z=await e.prompter.select({message:e.message??`Default model`,options:I,initialValue:R});if(z===x)return{};if(z===S)return M({prompter:e.prompter,allowBlank:!1,initialValue:g||v||void 0});if(z===C){if(!P)return await e.prompter.note(`vLLM setup requires an agent directory context.`,`vLLM not available`),{};let{config:n,modelRef:r}=await y({cfg:t,prompter:e.prompter,agentDir:P});return{model:r,config:n}}return{model:String(z)}}async function P(e){let t=e.config,n=O(t),r=k(e.allowedKeys??[]),i=r.length>0?new Set(r):null,o=c({cfg:t,defaultProvider:l,defaultModel:s}),u=a(o.provider,o.model),f=k([...n,u,...e.initialSelections??[]]),p=i?f.filter(e=>i.has(e)):f,h=await m({config:t,useCache:!1});if(h.length===0&&r.length===0){let t=await e.prompter.text({message:e.message??`Allowlist models (comma-separated provider/model; blank to keep current)`,initialValue:n.join(`, `),placeholder:`${g}, anthropic/claude-opus-4-6`}),r=String(t??``).split(`,`).map(e=>e.trim()).filter(e=>e.length>0);return r.length===0?{}:{models:k(r)}}let _=d({cfg:t,defaultProvider:l}),v=E({cfg:t,agentDir:e.agentDir}),y=[],b=new Set,x=i?h.filter(e=>i.has(a(e.provider,e.id))):h;for(let e of x)A({entry:e,options:y,seen:b,aliasIndex:_,hasAuth:v});let S=i?r:n;for(let e of S)b.has(e)||(y.push({value:e,label:e,hint:i?`allowed (not in catalog)`:`configured (not in catalog)`}),b.add(e));if(y.length===0)return{};let C=k((await e.prompter.multiselect({message:e.message??`Models in /model picker (multi-select)`,options:y,initialValues:p.length>0?p:void 0,searchable:!0})).map(e=>String(e)));return C.length>0?{models:C}:n.length===0||await e.prompter.confirm({message:`Clear the model allowlist? (shows all models)`,initialValue:!1})?{models:[]}:{}}function F(e,t){let n=e.agents?.defaults,r=n?.model,i=n?.models,a=typeof r==`object`&&r&&`fallbacks`in r?r.fallbacks:void 0;return{...e,agents:{...e.agents,defaults:{...n,model:{...a?{fallbacks:a}:void 0,primary:t},models:{...i,[t]:i?.[t]??{}}}}}}function I(e,t){let n=e.agents?.defaults,r=k(t);if(r.length===0){if(!n?.models)return e;let{models:t,...r}=n;return{...e,agents:{...e.agents,defaults:r}}}let i=n?.models??{},a={};for(let e of r)a[e]=i[e]??{};return{...e,agents:{...e.agents,defaults:{...n,models:a}}}}function L(e,t){let n=k(t);if(n.length<=1)return e;let r=c({cfg:e,defaultProvider:l,defaultModel:s}),i=a(r.provider,r.model);if(!n.includes(i))return e;let o=e.agents?.defaults,u=o?.model,d=typeof u==`string`?u:u&&typeof u==`object`?u.primary:void 0,f=n.filter(e=>e!==i);return{...e,agents:{...e.agents,defaults:{...o,model:{...typeof u==`object`?u:void 0,primary:d??i,fallbacks:f}}}}}export{N as a,b as i,L as n,P as o,F as r,y as s,I as t};
2
+ //# sourceMappingURL=model-picker-bZNuI66U.js.map
@@ -59,3 +59,4 @@ stat -c "%F|%s|%Y" -- "$2"`,args:[t.canonicalParentPath,t.basename],allowFailure
59
59
 
60
60
  `)}function rH(e){if(QV(e))return!0;let t=e.match(AV);if(!t)return!1;let n=Number(t[1]);if(!Number.isFinite(n)||n<400)return!1;let r=t[2].toLowerCase();return FV.some(e=>r.includes(e))}function iH(e){return bV(e)?cH(e)||rH(e)||OV.test(e)||kV.test(e):!1}function aH(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;if(t.type===`error`||typeof t.request_id==`string`||typeof t.requestId==`string`)return!0;if(`error`in t){let e=t.error;if(e&&typeof e==`object`&&!Array.isArray(e)){let t=e;if(typeof t.message==`string`||typeof t.type==`string`||typeof t.code==`string`)return!0}}return!1}function oH(e){if(!e)return null;let t=e.trim();if(!t)return null;let n=[t];EV.test(t)&&n.push(t.replace(EV,``).trim());for(let e of n)if(!(!e.startsWith(`{`)||!e.endsWith(`}`)))try{let t=JSON.parse(e);if(aH(t))return t}catch{}return null}function sH(e){if(!e)return null;let t=oH(e);return t?eV(t):null}function cH(e){return sH(e)!==null}function lH(e){if(!e)return null;let t=e.trim();if(!t)return null;let n,r=t,i=r.match(/^(\d{3})\s+(.+)$/s);i&&(n=i[1],r=i[2].trim());let a=oH(r);if(!a)return null;let o=typeof a.request_id==`string`?a.request_id:typeof a.requestId==`string`?a.requestId:void 0,s=typeof a.type==`string`?a.type:void 0,c=typeof a.message==`string`?a.message:void 0,l,u;if(a.error&&typeof a.error==`object`&&!Array.isArray(a.error)){let e=a.error;typeof e.type==`string`&&(l=e.type),typeof e.code==`string`&&!l&&(l=e.code),typeof e.message==`string`&&(u=e.message)}return{httpCode:n,type:l??s,message:u??c,requestId:o}}function uH(e){let t=(e??``).trim();if(!t)return`LLM request failed with an unknown error.`;let n=ZV(t);if(n&&QV(t))return`The AI service is temporarily unavailable (HTTP ${n.code}). Please try again in a moment.`;let r=t.match(AV);if(r){let e=r[2].trim();if(!e.startsWith(`{`))return`HTTP ${r[1]}: ${e}`}let i=lH(t);if(i?.message){let e=i.httpCode?`HTTP ${i.httpCode}`:`LLM error`,t=i.type?` ${i.type}`:``,n=i.requestId?` (request_id: ${i.requestId})`:``;return`${e}${t}: ${i.message}${n}`}return t.length>600?`${t.slice(0,600)}…`:t}function dH(e,t){let n=(e.errorMessage??``).trim();if(e.stopReason!==`error`&&!n)return;if(!n)return`LLM request failed with an unknown error.`;let r=n.match(/unknown tool[:\s]+["']?([a-z0-9_-]+)["']?/i)??n.match(/tool\s+["']?([a-z0-9_-]+)["']?\s+(?:not found|is not available)/i);if(r?.[1]){let e=jB({cfg:t?.cfg,sessionKey:t?.sessionKey,toolName:r[1]});if(e)return e}if(bV(n))return`Context overflow: prompt too large for the model. Try /reset (or /new) to start a fresh session, or use a larger-context model.`;if(vV(n))return`Reasoning is required for this model endpoint. Use /think minimal (or any non-off level) and try again.`;if(/incorrect role information|roles must alternate|400.*role|"message".*role.*information/i.test(n))return`Message ordering conflict - please try again. If this persists, use /new to start a fresh session.`;if(yH(n))return`Session history looks corrupted (tool call input missing). Use /new to start a fresh session. If this keeps happening, reset the session or delete the corrupted session transcript.`;let i=n.match(/"type":"invalid_request_error".*?"message":"([^"]+)"/);return i?.[1]?`LLM request rejected: ${i[1]}`:_V(n)||(cV(n)?`LLM request timed out.`:uV(n)?hV(t?.provider,t?.model??e.model):rH(n)||cH(n)?uH(n):(n.length>600&&mV.warn(`Long error truncated: ${n.slice(0,200)}`),n.length>600?`${n.slice(0,600)}…`:n))}function fH(e,t){if(!e)return e;let n=t?.errorContext??!1,r=tH(e),i=r.trim();if(!i)return``;if(n){if(/incorrect role information|roles must alternate/i.test(i))return`Message ordering conflict - please try again. If this persists, use /new to start a fresh session.`;if(iH(i))return`Context overflow: prompt too large for the model. Try /reset (or /new) to start a fresh session, or use a larger-context model.`;if(uV(i))return gV;if(cH(i)||rH(i))return uH(i);if(OV.test(i))return _V(i)||(cV(i)?`LLM request timed out.`:uH(i))}return nH(r.replace(/^(?:[ \t]*\r?\n)+/,``))}function pH(e){return!e||e.stopReason!==`error`?!1:sV(e.errorMessage??``)}const mH=/tool_(?:use|call)\.(?:input|arguments).*?(?:field required|required)/i,hH=/messages\.\d+\.content\.\d+\.tool_(?:use|call)\.(?:input|arguments)/i,gH=/image dimensions exceed max allowed size for many-image requests:\s*(\d+)\s*pixels/i,_H=/messages\.(\d+)\.content\.(\d+)\.image/i,vH=/image exceeds\s*(\d+(?:\.\d+)?)\s*mb/i;function yH(e){return e?mH.test(e)||hH.test(e):!1}function bH(e){return!e||e.stopReason!==`error`?!1:uV(e.errorMessage??``)}function xH(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`"type":"api_error"`)&&t.includes(`internal server error`)}function SH(e){if(!e||!e.toLowerCase().includes(`image dimensions exceed max allowed size`))return null;let t=e.match(gH),n=e.match(_H);return{maxDimensionPx:t?.[1]?Number.parseInt(t[1],10):void 0,messageIndex:n?.[1]?Number.parseInt(n[1],10):void 0,contentIndex:n?.[2]?Number.parseInt(n[2],10):void 0,raw:e}}function CH(e){return!!SH(e)}function wH(e){if(!e)return null;let t=e.toLowerCase();if(!t.includes(`image exceeds`)||!t.includes(`mb`))return null;let n=e.match(vH);return{maxMb:n?.[1]?Number.parseFloat(n[1]):void 0,raw:e}}function TH(e){return e?!!wH(e):!1}function EH(e){return!CH(e)&&oV(e)}function DH(e){return!e||e.stopReason!==`error`?!1:fV(e.errorMessage??``)}function OH(e){if(!e)return!1;let t=e.toLowerCase();return!!(t.includes(`unknown model`)||t.includes(`model not found`)||t.includes(`model_not_found`)||t.includes(`not_found_error`)||t.includes(`does not exist`)&&t.includes(`model`)||t.includes(`invalid model`)&&!t.includes(`invalid model reference`)||/models\/[^\s]+ is not found/i.test(e)||/\b404\b/.test(e)&&/not[-_ ]?found/i.test(e))}function kH(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`session not found`)||t.includes(`session does not exist`)||t.includes(`session expired`)||t.includes(`session invalid`)||t.includes(`conversation not found`)||t.includes(`conversation does not exist`)||t.includes(`conversation expired`)||t.includes(`conversation invalid`)||t.includes(`no such session`)||t.includes(`invalid session`)||t.includes(`session id not found`)||t.includes(`conversation id not found`)}function AH(e){return CH(e)||TH(e)?null:kH(e)?`session_expired`:OH(e)?`model_not_found`:XV(e)||(lV(e)?uV(e)?`billing`:`rate_limit`:sV(e)?`rate_limit`:pV(e)?`overloaded`:$V(e)?ZV(e.trim())?.code===529?`overloaded`:`timeout`:xH(e)?`timeout`:EH(e)?`format`:uV(e)?`billing`:cV(e)?`timeout`:dV(e)?`auth_permanent`:fV(e)?`auth`:null)}function jH(e){return AH(e)!==null}function MH(e){return!e||e.stopReason!==`error`?!1:jH(e.errorMessage??``)}function NH(e){return e===`google-gemini-cli`||e===`google-generative-ai`}function PH(e){if(!e)return null;let t=null;if(typeof e==`string`){let n=e.trim();if(!n.startsWith(`{`)||!n.endsWith(`}`))return null;try{t=JSON.parse(n)}catch{return null}}else typeof e==`object`&&(t=e);if(!t)return null;let n=typeof t.id==`string`?t.id:``,r=typeof t.type==`string`?t.type:``;return n.startsWith(`rs_`)&&(r===`reasoning`||r.startsWith(`reasoning.`))?{id:n,type:r}:null}function FH(e,t){for(let n=t+1;n<e.length;n++){let t=e[n];if(!t||typeof t!=`object`||t.type!==`thinking`)return!0}return!1}function IH(e){let t=e.indexOf(`|`);return t<=0||t>=e.length-1?{callId:e}:{callId:e.slice(0,t),itemId:e.slice(t+1)}}function LH(e){return e===`toolCall`||e===`toolUse`||e===`functionCall`}function RH(e){let t=!1,n=[],r=null;for(let i of e){if(!i||typeof i!=`object`){r=null,n.push(i);continue}let e=i.role;if(e===`assistant`){let e=i;if(!Array.isArray(e.content)){r=null,n.push(i);continue}let a=new Map,o=!1,s=!1,c=e.content.map(e=>{if(!e||typeof e!=`object`)return e;let t=e;if(t.type===`thinking`&&PH(t.thinkingSignature))return o=!0,e;let n=e;if(!LH(n.type)||typeof n.id!=`string`)return e;let r=IH(n.id);return o||!r.itemId||!r.itemId.startsWith(`fc_`)?e:(s=!0,a.set(n.id,r.callId),{...e,id:r.callId})});if(r=a.size>0?a:null,!s){n.push(i);continue}t=!0,n.push({...e,content:c});continue}if(e===`toolResult`&&r&&r.size>0){let e=i,a=!1,o={};if(typeof e.toolCallId==`string`){let t=r.get(e.toolCallId);t&&t!==e.toolCallId&&(o.toolCallId=t,a=!0)}if(typeof e.toolUseId==`string`){let t=r.get(e.toolUseId);t&&t!==e.toolUseId&&(o.toolUseId=t,a=!0)}if(!a){n.push(i);continue}t=!0,n.push({...e,...o});continue}r=null,n.push(i)}return t?n:e}function zH(e){let t=[];for(let n of e){if(!n||typeof n!=`object`){t.push(n);continue}if(n.role!==`assistant`){t.push(n);continue}let e=n;if(!Array.isArray(e.content)){t.push(n);continue}let r=!1,i=[];for(let t=0;t<e.content.length;t++){let n=e.content[t];if(!n||typeof n!=`object`){i.push(n);continue}let a=n;if(a.type!==`thinking`){i.push(n);continue}if(!PH(a.thinkingSignature)){i.push(n);continue}if(FH(e.content,t)){i.push(n);continue}r=!0}if(!r){t.push(n);continue}i.length!==0&&t.push({...e,content:i})}return t}const BH=new Set([`toolCall`,`toolUse`,`functionCall`]);function VH(e,t=`strict`){if(!e||typeof e!=`string`)return t===`strict9`?`defaultid`:`defaulttoolid`;if(t===`strict9`){let t=e.replace(/[^a-zA-Z0-9]/g,``);return t.length>=9?t.slice(0,9):t.length>0?WH(t,9):WH(`sanitized`,9)}let n=e.replace(/[^a-zA-Z0-9]/g,``);return n.length>0?n:`sanitizedtoolid`}function HH(e){let t=e.content;if(!Array.isArray(t))return[];let n=[];for(let e of t){if(!e||typeof e!=`object`)continue;let t=e;typeof t.id!=`string`||!t.id||typeof t.type==`string`&&BH.has(t.type)&&n.push({id:t.id,name:typeof t.name==`string`?t.name:void 0})}return n}function UH(e){let t=e.toolCallId;if(typeof t==`string`&&t)return t;let n=e.toolUseId;return typeof n==`string`&&n?n:null}function WH(e,t=8){return Ht(`sha256`).update(e).digest(`hex`).slice(0,t)}function GH(e){if(e.mode===`strict9`){let t=VH(e.id,e.mode),n=t.length>=9?t.slice(0,9):``;if(n&&!e.used.has(n))return n;for(let t=0;t<1e3;t+=1){let n=WH(`${e.id}:${t}`,9);if(!e.used.has(n))return n}return WH(`${e.id}:${Date.now()}`,9)}let t=VH(e.id,e.mode).slice(0,40);if(!e.used.has(t))return t;let n=WH(e.id),r=e.mode===`strict`?``:`_`,i=40-r.length-n.length,a=`${t.length>i?t.slice(0,i):t}${r}${n}`;if(!e.used.has(a))return a;for(let t=2;t<1e3;t+=1){let n=e.mode===`strict`?`x${t}`:`_${t}`,r=`${a.slice(0,40-n.length)}${n}`;if(!e.used.has(r))return r}let o=e.mode===`strict`?`t${Date.now()}`:`_${Date.now()}`;return`${a.slice(0,40-o.length)}${o}`}function KH(e){let t=e.message.content;if(!Array.isArray(t))return e.message;let n=!1,r=t.map(t=>{if(!t||typeof t!=`object`)return t;let r=t,i=r.type,a=r.id;if(i!==`functionCall`&&i!==`toolUse`&&i!==`toolCall`||typeof a!=`string`||!a)return t;let o=e.resolve(a);return o===a?t:(n=!0,{...t,id:o})});return n?{...e.message,content:r}:e.message}function qH(e){let t=typeof e.message.toolCallId==`string`&&e.message.toolCallId?e.message.toolCallId:void 0,n=e.message.toolUseId,r=typeof n==`string`&&n?n:void 0,i=t?e.resolve(t):void 0,a=r?e.resolve(r):void 0;return i===t&&a===r?e.message:{...e.message,...i&&{toolCallId:i},...a&&{toolUseId:a}}}function JH(e,t=`strict`){let n=new Map,r=new Set,i=e=>{let i=n.get(e);if(i)return i;let a=GH({id:e,used:r,mode:t});return n.set(e,a),r.add(a),a},a=!1,o=e.map(e=>{if(!e||typeof e!=`object`)return e;let t=e.role;if(t===`assistant`){let t=KH({message:e,resolve:i});return t!==e&&(a=!0),t}if(t===`toolResult`){let t=qH({message:e,resolve:i});return t!==e&&(a=!0),t}return e});return a?o:e}function YH(e){let t=0;for(let n=0;n<e.length;n+=1)e.charCodeAt(n)<=32||(t+=1);if(t===0)return 0;let n=0,r=e.length-1;for(;r>=0&&e.charCodeAt(r)<=32;)--r;if(r>=0&&e[r]===`=`){for(n=1,--r;r>=0&&e.charCodeAt(r)<=32;)--r;r>=0&&e[r]===`=`&&(n=2)}let i=Math.floor(t*3/4)-n;return Math.max(0,i)}const XH=/^[A-Za-z0-9+/]+={0,2}$/;function ZH(e){let t=e.replace(/\s+/g,``);if(!(!t||t.length%4!=0||!XH.test(t)))return t}function QH(e){let t=e?.agents?.defaults?.imageMaxDimensionPx;return typeof t!=`number`||!Number.isFinite(t)?{}:{maxDimensionPx:Math.max(1,Math.floor(t))}}const $H=C(`agents/tool-images`);function eU(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.type===`image`&&typeof t.data==`string`&&typeof t.mimeType==`string`}function tU(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.type===`text`&&typeof t.text==`string`}function nU(e){let t=e.trim();if(t){if(t.startsWith(`/9j/`))return`image/jpeg`;if(t.startsWith(`iVBOR`))return`image/png`;if(t.startsWith(`R0lGOD`))return`image/gif`}}function rU(e){return!Number.isFinite(e)||e<1024?`${Math.max(0,Math.round(e))}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(2)}MB`}function iU(e){for(let t of e.split(/\r?\n/u)){let e=t.trim();if(!e.startsWith(`MEDIA:`))continue;let n=e.slice(6).trim();if(n)return(n.match(/^`([^`]+)`$/u)?.[1]??n).trim()}}function aU(e){let t=e.trim();if(!t)return;try{let e=new URL(t).pathname.split(`/`).filter(Boolean).at(-1);return e&&e.length>0?e:void 0}catch{}let n=t.replaceAll(`\\`,`/`).split(`/`).filter(Boolean).at(-1);return n&&n.length>0?n:void 0}function oU(e){let t=e.block;for(let e of[`fileName`,`filename`,`path`,`url`]){let n=t[e];if(typeof n!=`string`||n.trim().length===0)continue;let r=aU(n);if(r)return r}if(typeof t.name==`string`&&t.name.trim().length>0)return t.name.trim();if(e.mediaPathHint){let t=aU(e.mediaPathHint);if(t)return t}if(typeof e.label==`string`&&e.label.startsWith(`read:`)){let t=aU(e.label.slice(5));if(t)return t}}async function sU(e){let t=Buffer.from(e.base64,`base64`),n=await dA(t),r=n?.width,i=n?.height,a=t.byteLength>e.maxBytes,o=typeof r==`number`&&typeof i==`number`,s=o&&(r>e.maxDimensionPx||i>e.maxDimensionPx);if(o&&!a&&r<=e.maxDimensionPx&&i<=e.maxDimensionPx)return{base64:e.base64,mimeType:e.mimeType,resized:!1,width:r,height:i};let c=o?Math.max(r??0,i??0):e.maxDimensionPx,l=c>0?Math.min(e.maxDimensionPx,c):e.maxDimensionPx,u=nA(e.maxDimensionPx,l),d=null;for(let n of u)for(let o of tA){let c=await pA({buffer:t,maxSide:n,quality:o,withoutEnlargement:!0});if((!d||c.byteLength<d.size)&&(d={buffer:c,size:c.byteLength}),c.byteLength<=e.maxBytes){let l=typeof r==`number`&&typeof i==`number`?`${r}x${i}px`:`unknown`,u=e.fileName?`${e.fileName} ${l}`:l,d=t.byteLength>0?Number(((t.byteLength-c.byteLength)/t.byteLength*100).toFixed(1)):0;return $H.info(`Image resized to fit limits: ${u} ${rU(t.byteLength)} -> ${rU(c.byteLength)} (-${d}%)`,{label:e.label,fileName:e.fileName,sourceMimeType:e.mimeType,sourceWidth:r,sourceHeight:i,sourceBytes:t.byteLength,maxBytes:e.maxBytes,maxDimensionPx:e.maxDimensionPx,triggerOverBytes:a,triggerOverDimensions:s,outputMimeType:`image/jpeg`,outputBytes:c.byteLength,outputQuality:o,outputMaxSide:n,byteReductionPct:d}),{base64:c.toString(`base64`),mimeType:`image/jpeg`,resized:!0,width:r,height:i}}}let f=d?.buffer??t,p=(e.maxBytes/(1024*1024)).toFixed(0),m=(f.byteLength/(1024*1024)).toFixed(2),h=typeof r==`number`&&typeof i==`number`?`${r}x${i}px`:`unknown`,g=e.fileName?`${e.fileName} ${h}`:h;throw $H.warn(`Image resize failed to fit limits: ${g} best=${rU(f.byteLength)} limit=${rU(e.maxBytes)}`,{label:e.label,fileName:e.fileName,sourceMimeType:e.mimeType,sourceWidth:r,sourceHeight:i,sourceBytes:t.byteLength,maxDimensionPx:e.maxDimensionPx,maxBytes:e.maxBytes,smallestCandidateBytes:f.byteLength,triggerOverBytes:a,triggerOverDimensions:s}),Error(`Image could not be reduced below ${p}MB (got ${m}MB)`)}async function cU(e,t,n={}){let r=Math.max(n.maxDimensionPx??1200,1),i=Math.max(n.maxBytes??5242880,1),a=[],o;for(let n of e){if(tU(n)){let e=iU(n.text);e&&(o=e)}if(!eU(n)){a.push(n);continue}let e=n.data.trim();if(!e){a.push({type:`text`,text:`[${t}] omitted empty image payload`});continue}let s=ZH(e);if(!s){a.push({type:`text`,text:`[${t}] omitted image payload: invalid base64`});continue}try{let e=nU(s)??n.mimeType,c=await sU({base64:s,mimeType:e,maxDimensionPx:r,maxBytes:i,label:t,fileName:oU({block:n,label:t,mediaPathHint:o})});a.push({...n,data:c.base64,mimeType:c.resized?c.mimeType:e})}catch(e){a.push({type:`text`,text:`[${t}] omitted image payload: ${String(e)}`})}}return a}async function lU(e,t,n={}){if(e.length===0)return{images:e,dropped:0};let r=(await cU(e,t,n)).filter(eU);return{images:r,dropped:Math.max(0,e.length-r.length)}}async function uU(e,t,n={}){let r=Array.isArray(e.content)?e.content:[];if(!r.some(e=>eU(e)||tU(e)))return e;let i=await cU(r,t,n);return{...e,content:i}}async function dU(e,t,n){let r=(n?.sanitizeMode??`full`)===`full`,i={maxDimensionPx:n?.maxDimensionPx,maxBytes:n?.maxBytes},a=n?.sanitizeToolCallIds===!0?JH(e,n.toolCallIdMode):e,o=[];for(let e of a){if(!e||typeof e!=`object`){o.push(e);continue}let a=e.role;if(a===`toolResult`){let n=e,r=await cU(Array.isArray(n.content)?n.content:[],t,i);o.push({...n,content:r});continue}if(a===`user`){let n=e,r=n.content;if(Array.isArray(r)){let e=await cU(r,t,i);o.push({...n,content:e});continue}}if(a===`assistant`){let a=e;if(a.stopReason===`error`){let e=a.content;if(Array.isArray(e)){let n=await cU(e,t,i);o.push({...a,content:n})}else o.push(a);continue}let s=a.content;if(Array.isArray(s)){if(!r){let e=await cU(s,t,i);o.push({...a,content:e});continue}let e=await cU((n?.preserveSignatures?s:Gb(s,n?.sanitizeThoughtSignatures)).filter(e=>{if(!e||typeof e!=`object`)return!0;let t=e;return t.type!==`text`||typeof t.text!=`string`?!0:t.text.trim().length>0}),t,i);if(e.length===0)continue;o.push({...a,content:e});continue}}o.push(e)}return o}function fU(e){return e.trim().toLowerCase().replace(/\p{Emoji_Presentation}|\p{Extended_Pictographic}/gu,``).replace(/\s+/g,` `).trim()}function pU(e,t){return t.length===0||!e||e.length<10?!1:t.some(t=>!t||t.length<10?!1:e.includes(t)||t.includes(e))}function mU(e,t){if(t.length===0)return!1;let n=fU(e);return!n||n.length<10?!1:pU(n,t.map(fU))}function hU(e){if(!e)return``;let t=e.trim().toLowerCase();return t===`z.ai`||t===`z-ai`?`zai`:t}function gU(e){return hU(e)===`zai`}const _U=[`openai/gpt-5.4`,`openai/gpt-5.4-pro`,`openai/gpt-5.2`,`openai-codex/gpt-5.4`,`openai-codex/gpt-5.3-codex`,`openai-codex/gpt-5.3-codex-spark`,`openai-codex/gpt-5.2-codex`,`openai-codex/gpt-5.1-codex`,`github-copilot/gpt-5.2-codex`,`github-copilot/gpt-5.2`],vU=new Set(_U.map(e=>e.toLowerCase())),yU=new Set(_U.map(e=>e.split(`/`)[1]?.toLowerCase()).filter(e=>!!e));function bU(e){if(!e)return;let t=e.trim().toLowerCase(),n=t.replace(/[\s_-]+/g,``);if(n===`adaptive`||n===`auto`)return`adaptive`;if(n===`xhigh`||n===`extrahigh`)return`xhigh`;if([`off`].includes(t))return`off`;if([`on`,`enable`,`enabled`].includes(t))return`low`;if([`min`,`minimal`].includes(t))return`minimal`;if([`low`,`thinkhard`,`think-hard`,`think_hard`].includes(t))return`low`;if([`mid`,`med`,`medium`,`thinkharder`,`think-harder`,`harder`].includes(t))return`medium`;if([`high`,`ultra`,`ultrathink`,`think-hard`,`thinkhardest`,`highest`,`max`].includes(t))return`high`;if([`think`].includes(t))return`minimal`}function xU(e,t){let n=t?.trim().toLowerCase();if(!n)return!1;let r=e?.trim().toLowerCase();return r?vU.has(`${r}/${n}`):yU.has(n)}function SU(e,t){let n=[`off`,`minimal`,`low`,`medium`,`high`];return xU(e,t)&&n.push(`xhigh`),n.push(`adaptive`),n}function CU(e,t){return gU(e)?[`off`,`on`]:SU(e,t)}function wU(e,t,n=`, `){return CU(e,t).join(n)}function TU(){let e=[..._U];return e.length===0?`unknown model`:e.length===1?e[0]:e.length===2?`${e[0]} or ${e[1]}`:`${e.slice(0,-1).join(`, `)} or ${e[e.length-1]}`}function EU(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`].includes(t))return`off`;if([`full`,`all`,`everything`].includes(t))return`full`;if([`on`,`minimal`,`true`,`yes`,`1`].includes(t))return`on`}function DU(e){return EU(e)}function OU(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`,`disable`,`disabled`].includes(t))return`off`;if([`on`,`true`,`yes`,`1`,`enable`,`enabled`].includes(t)||[`tokens`,`token`,`tok`,`minimal`,`min`].includes(t))return`tokens`;if([`full`,`session`].includes(t))return`full`}function kU(e){return OU(e)??`off`}function AU(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`].includes(t))return`off`;if([`full`,`auto`,`auto-approve`,`autoapprove`].includes(t))return`full`;if([`ask`,`prompt`,`approval`,`approve`].includes(t))return`ask`;if([`on`,`true`,`yes`,`1`].includes(t))return`on`}function jU(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`,`hide`,`hidden`,`disable`,`disabled`].includes(t))return`off`;if([`on`,`true`,`yes`,`1`,`show`,`visible`,`enable`,`enabled`].includes(t))return`on`;if([`stream`,`streaming`,`draft`,`live`].includes(t))return`stream`}function MU(e){let t=e.match(/supported values are:\s*([^\n.]+)/i)??e.match(/supported values:\s*([^\n.]+)/i);if(!t?.[1])return[];let n=t[1],r=Array.from(n.matchAll(/['"]([^'"]+)['"]/g)).map(e=>e[1]?.trim());return r.length>0?r.filter(e=>!!e):n.split(/,|\band\b/gi).map(e=>e.replace(/^[^a-zA-Z]+|[^a-zA-Z]+$/g,``).trim()).filter(Boolean)}function NU(e){let t=e.message?.trim();if(!t)return;let n=MU(t);if(n.length===0)return/not supported/i.test(t)&&!e.attempted.has(`off`)?`off`:void 0;for(let t of n){let n=bU(t);if(n&&!e.attempted.has(n))return n}}function PU(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r||typeof r!=`object`){t.push(r);continue}if(r.role!==`assistant`){t.push(r);continue}let i=r,a=e[n+1];if((a&&typeof a==`object`?a.role:void 0)!==`user`){t.push(r);continue}let o=a,s=new Set;if(Array.isArray(o.content))for(let e of o.content)e&&e.type===`toolResult`&&e.toolUseId&&s.add(e.toolUseId);let c=Array.isArray(i.content)?i.content:[],l=c.filter(e=>e?e.type===`toolUse`?s.has(e.id||``):!0:!1);c.length>0&&l.length===0?t.push({...i,content:[{type:`text`,text:`[tool calls omitted]`}]}):t.push({...i,content:l})}return t}function FU(e){let{messages:t,role:n,merge:r}=e;if(!Array.isArray(t)||t.length===0)return t;let i=[],a;for(let e of t){if(!e||typeof e!=`object`){i.push(e);continue}let t=e.role;if(!t){i.push(e);continue}if(t===a&&a===n){let t=i[i.length-1],n=e;if(t&&typeof t==`object`){let e=t;i[i.length-1]=r(e,n);continue}}i.push(e),a=t}return i}function IU(e,t){let n=[...Array.isArray(e.content)?e.content:[],...Array.isArray(t.content)?t.content:[]];return{...e,content:n,...t.usage&&{usage:t.usage},...t.stopReason&&{stopReason:t.stopReason},...t.errorMessage&&{errorMessage:t.errorMessage}}}function LU(e){return FU({messages:e,role:`assistant`,merge:IU})}function RU(e,t){let n=[...Array.isArray(e.content)?e.content:[],...Array.isArray(t.content)?t.content:[]];return{...t,content:n,timestamp:t.timestamp??e.timestamp}}function zU(e){return FU({messages:PU(e),role:`user`,merge:RU})}const BU=64e3,VU=8e3,HU=/\brequest[_ ]?id\b\s*[:=]\s*["'()]*([A-Za-z0-9._:-]+)/i,UU=[String.raw`\b(?:x-)?api[-_]?key\b\s*[:=]\s*(["']?)([^\s"'\\;]+)\1`,String.raw`"(?:api[-_]?key|api_key)"\s*:\s*"([^"]+)"`,String.raw`(?:\bCookie\b\s*[:=]\s*[^;=\s]+=|;\s*[^;=\s]+=)([^;\s\r\n]+)`];function WU(){let e=_e()?.redactPatterns;return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function GU(e,t){let n=e?.trim();if(n)return n.length>t?`${n.slice(0,t)}…`:n}function KU(e){let t=e?.trim();if(t)return t.length>BU?t.slice(0,BU):t}function qU(e,t=200){let n=e?.trim();if(!n)return;let r=Array.from(n).filter(e=>{let t=e.charCodeAt(0);return!(t<=8||t===11||t===12||t>=14&&t<=31||t===127)}).join(``).replace(/[\r\n\t]+/g,` `).replace(/\s+/g,` `).trim();return r.length>t?`${r.slice(0,t)}…`:r}function JU(e,t){return!e||!t?e:e.split(t).join(Ub(t,{len:12}))}function YU(e){if(!e)return e;let t=WU();return l(e,{mode:`tools`,patterns:[...c(),...t,...UU]})}function XU(e){if(e)return e.match(HU)?.[1]?.trim()||void 0}function ZU(e){let t=e.message&&e.message.length>VU?e.message.slice(0,VU):e.message;return(e.httpCode||e.type||t?eV({httpCode:e.httpCode,type:e.type,message:t}):null)||(e.requestId?e.raw.split(e.requestId).join(`<request_id>`):sH(e.raw))}function QU(e){let t=KU(e);if(!t)return{};try{let e=lH(t),n=e?.requestId??XU(t),r=n?Ub(n,{len:12}):void 0,i=ZU({raw:t,requestId:n,httpCode:e?.httpCode,type:e?.type,message:e?.message}),a=JU(YU(t),n),o=JU(YU(e?.message),n);return{rawErrorPreview:GU(a,400),rawErrorHash:Ub(t,{len:12}),rawErrorFingerprint:i?Ub(i,{len:12}):void 0,httpCode:e?.httpCode,providerErrorType:e?.type,providerErrorMessagePreview:GU(o,200),requestIdHash:r}}catch{return{}}}function $U(e){let t=QU(e);return{textPreview:t.rawErrorPreview,textHash:t.rawErrorHash,textFingerprint:t.rawErrorFingerprint,httpCode:t.httpCode,providerErrorType:t.providerErrorType,providerErrorMessagePreview:t.providerErrorMessagePreview,requestIdHash:t.requestIdHash}}const eW=C(`agent/embedded`);function tW(e){let t=e.reason===`billing`||e.reason===`auth_permanent`?`disabled`:`cooldown`,n=e.previous?.cooldownUntil,r=e.previous?.disabledUntil,i=t===`disabled`?typeof r==`number`&&Number.isFinite(r)&&r>e.now&&r===e.next.disabledUntil:typeof n==`number`&&Number.isFinite(n)&&n>e.now&&n===e.next.cooldownUntil,a=Ub(e.profileId,{len:12}),o=qU(e.runId)??`-`,s=qU(e.provider)??`-`;eW.warn(`auth profile failure state updated`,{event:`auth_profile_failure_state_updated`,tags:[`error_handling`,`auth_profiles`,t],runId:e.runId,profileId:a,provider:e.provider,reason:e.reason,windowType:t,windowReused:i,previousErrorCount:e.previous?.errorCount,errorCount:e.next.errorCount,previousCooldownUntil:n,cooldownUntil:e.next.cooldownUntil,previousDisabledUntil:r,disabledUntil:e.next.disabledUntil,previousDisabledReason:e.previous?.disabledReason,disabledReason:e.next.disabledReason,failureCounts:e.next.failureCounts,consoleMessage:`auth profile failure state updated: runId=${o} profile=${a} provider=${s} reason=${e.reason} window=${t} reused=${String(i)}`})}const nW=[`auth_permanent`,`auth`,`billing`,`format`,`model_not_found`,`overloaded`,`timeout`,`rate_limit`,`unknown`],rW=new Set(nW),iW=new Map(nW.map((e,t)=>[e,t]));function aW(e){let t=$(e??``);return t===`openrouter`||t===`kilocode`}function oW(e){let t=[e.cooldownUntil,e.disabledUntil].filter(e=>typeof e==`number`).filter(e=>Number.isFinite(e)&&e>0);return t.length===0?null:Math.max(...t)}function sW(e,t,n){if(aW(e.profiles[t]?.provider))return!1;let r=e.usageStats?.[t];if(!r)return!1;let i=oW(r);return i?(n??Date.now())<i:!1}function cW(e,t){return typeof e==`number`&&Number.isFinite(e)&&e>0&&t<e}function lW(e){let t=e.now??Date.now(),n=new Map,r=(e,t)=>{!rW.has(e)||t<=0||!Number.isFinite(t)||n.set(e,(n.get(e)??0)+t)};for(let n of e.profileIds){let i=e.store.usageStats?.[n];if(!i)continue;if(cW(i.disabledUntil,t)&&i.disabledReason&&rW.has(i.disabledReason)){r(i.disabledReason,1e3);continue}if(!cW(i.cooldownUntil,t))continue;let a=!1;for(let[e,t]of Object.entries(i.failureCounts??{})){let n=e,i=typeof t==`number`?t:0;!rW.has(n)||i<=0||(r(n,i),a=!0)}a||r(`unknown`,1)}if(n.size===0)return null;let i=null,a=-1,o=2**53-1;for(let e of nW){let t=n.get(e);if(typeof t!=`number`)continue;let r=iW.get(e)??2**53-1;(t>a||t===a&&r<o)&&(i=e,a=t,o=r)}return i}function uW(e,t){let n=null;for(let r of t){let t=e.usageStats?.[r];if(!t)continue;let i=oW(t);typeof i!=`number`||!Number.isFinite(i)||i<=0||(n===null||i<n)&&(n=i)}return n}function dW(e,t){let n=e.usageStats;if(!n)return!1;let r=t??Date.now(),i=!1;for(let[e,t]of Object.entries(n)){if(!t)continue;let a=!1,o=typeof t.cooldownUntil==`number`&&Number.isFinite(t.cooldownUntil)&&t.cooldownUntil>0&&r>=t.cooldownUntil,s=typeof t.disabledUntil==`number`&&Number.isFinite(t.disabledUntil)&&t.disabledUntil>0&&r>=t.disabledUntil;o&&(t.cooldownUntil=void 0,a=!0),s&&(t.disabledUntil=void 0,t.disabledReason=void 0,a=!0),a&&!oW(t)&&(t.errorCount=0,t.failureCounts=void 0),a&&(n[e]=t,i=!0)}return i}async function fW(e){let{store:t,profileId:n,agentDir:r}=e,i=await Mr({agentDir:r,updater:e=>e.profiles[n]?(_W(e,n,e=>gW(e,{lastUsed:Date.now()})),!0):!1});if(i){t.usageStats=i.usageStats;return}t.profiles[n]&&(_W(t,n,e=>gW(e,{lastUsed:Date.now()})),Gr(t,r))}function pW(e){let t=Math.max(1,e);return Math.min(3600*1e3,60*1e3*5**Math.min(t-1,3))}function mW(e){let t={billingBackoffHours:5,billingMaxHours:24,failureWindowHours:24},n=(e,t)=>typeof e==`number`&&Number.isFinite(e)&&e>0?e:t,r=e.cfg?.auth?.cooldowns,i=n((()=>{let t=r?.billingBackoffHoursByProvider;if(t){for(let[n,r]of Object.entries(t))if($(n)===e.providerId)return r}})()??r?.billingBackoffHours,t.billingBackoffHours),a=n(r?.billingMaxHours,t.billingMaxHours),o=n(r?.failureWindowHours,t.failureWindowHours);return{billingBackoffMs:i*60*60*1e3,billingMaxMs:a*60*60*1e3,failureWindowMs:o*60*60*1e3}}function hW(e){let t=Math.max(1,e.errorCount),n=Math.max(6e4,e.baseMs),r=Math.max(n,e.maxMs),i=n*2**Math.min(t-1,10);return Math.min(r,i)}function gW(e,t){return{...e,errorCount:0,cooldownUntil:void 0,disabledUntil:void 0,disabledReason:void 0,failureCounts:void 0,...t}}function _W(e,t,n){e.usageStats=e.usageStats??{},e.usageStats[t]=n(e.usageStats[t])}function vW(e){let{existingUntil:t,now:n,recomputedUntil:r}=e;return typeof t==`number`&&Number.isFinite(t)&&t>n?t:r}function yW(e){let t=e.cfgResolved.failureWindowMs,n=typeof e.existing.lastFailureAt==`number`&&e.existing.lastFailureAt>0&&e.now-e.existing.lastFailureAt>t,r=oW(e.existing),i=typeof r==`number`&&e.now>=r,a=n||i,o=(a?0:e.existing.errorCount??0)+1,s=a?{}:{...e.existing.failureCounts};s[e.reason]=(s[e.reason]??0)+1;let c={...e.existing,errorCount:o,failureCounts:s,lastFailureAt:e.now};if(e.reason===`billing`||e.reason===`auth_permanent`){let t=hW({errorCount:s[e.reason]??1,baseMs:e.cfgResolved.billingBackoffMs,maxMs:e.cfgResolved.billingMaxMs});c.disabledUntil=vW({existingUntil:e.existing.disabledUntil,now:e.now,recomputedUntil:e.now+t}),c.disabledReason=e.reason}else{let t=pW(o);c.cooldownUntil=vW({existingUntil:e.existing.cooldownUntil,now:e.now,recomputedUntil:e.now+t})}return c}async function bW(e){let{store:t,profileId:n,reason:r,agentDir:i,cfg:a,runId:o}=e,s=t.profiles[n];if(!s||aW(s.provider))return;let c,l,u=0,d=await Mr({agentDir:i,updater:e=>{let t=e.profiles[n];if(!t||aW(t.provider))return!1;let i=Date.now(),o=mW({cfg:a,providerId:$(t.provider)});l=e.usageStats?.[n],u=i;let s=yW({existing:l??{},now:i,reason:r,cfgResolved:o});return c=s,_W(e,n,()=>s),!0}});if(d){t.usageStats=d.usageStats,c&&tW({runId:o,profileId:n,provider:s.provider,reason:r,previous:l,next:c,now:u});return}if(!t.profiles[n])return;let f=Date.now(),p=mW({cfg:a,providerId:$(t.profiles[n]?.provider??``)});l=t.usageStats?.[n];let m=yW({existing:l??{},now:f,reason:r,cfgResolved:p});c=m,_W(t,n,()=>m),Gr(t,i),tW({runId:o,profileId:n,provider:t.profiles[n]?.provider??s.provider,reason:r,previous:l,next:c,now:f})}function xW(e){let t=bJ(e.provider),n=e.store.profiles[e.profileId];if(!n)return{eligible:!1,reasonCode:`profile_missing`};if(bJ(n.provider)!==t)return{eligible:!1,reasonCode:`provider_mismatch`};let r=e.cfg?.auth?.profiles?.[e.profileId];if(r){if(bJ(r.provider)!==t)return{eligible:!1,reasonCode:`provider_mismatch`};if(r.mode!==n.type&&!(r.mode===`oauth`&&n.type===`token`))return{eligible:!1,reasonCode:`mode_mismatch`}}let i=Tb({credential:n,now:e.now});return{eligible:i.eligible,reasonCode:i.reasonCode}}function SW(e){let{cfg:t,store:n,provider:r,preferredProfile:i}=e,a=$(r),o=bJ(r),s=Date.now();dW(n,s);let c=xJ(n.order,a),l=xJ(t?.auth?.order,a),u=c??l,d=t?.auth?.profiles?Object.entries(t.auth.profiles).filter(([,e])=>bJ(e.provider)===o).map(([e])=>e):[],f=u??(d.length>0?d:qr(n,r));if(f.length===0)return[];let p=e=>xW({cfg:t,store:n,provider:o,profileId:e,now:s}).eligible,m=f.filter(p),h=f.every(e=>!n.profiles[e]);m.length===0&&d.length>0&&h&&(m=qr(n,r).filter(p));let g=Kr(m);if(u&&u.length>0){let e=[],t=[];for(let r of g)if(sW(n,r)){let e=oW(n.usageStats?.[r]??{})??s;t.push({profileId:r,cooldownUntil:e})}else e.push(r);let r=t.toSorted((e,t)=>e.cooldownUntil-t.cooldownUntil).map(e=>e.profileId),a=[...e,...r];return i&&a.includes(i)?[i,...a.filter(e=>e!==i)]:a}let _=CW(g,n);return i&&_.includes(i)?[i,..._.filter(e=>e!==i)]:_}function CW(e,t){let n=Date.now(),r=[],i=[];for(let n of e)sW(t,n)?i.push(n):r.push(n);let a=r.map(e=>{let n=t.profiles[e]?.type;return{profileId:e,typeScore:n===`oauth`?0:n===`token`?1:n===`api_key`?2:3,lastUsed:t.usageStats?.[e]?.lastUsed??0}}).toSorted((e,t)=>e.typeScore===t.typeScore?e.lastUsed-t.lastUsed:e.typeScore-t.typeScore).map(e=>e.profileId),o=i.map(e=>({profileId:e,cooldownUntil:oW(t.usageStats?.[e]??{})??n})).toSorted((e,t)=>e.cooldownUntil-t.cooldownUntil).map(e=>e.profileId);return[...a,...o]}var wW=e({CLAUDE_CLI_PROFILE_ID:()=>CLAUDE_CLI_PROFILE_ID,CODEX_CLI_PROFILE_ID:()=>CODEX_CLI_PROFILE_ID,ensureAuthProfileStore:()=>Wr});async function TW(e){return[]}const EW={input:3,output:15,cacheRead:.3,cacheWrite:3.75};function DW(e){return{id:e?.id?.trim()||`claude-sonnet-4-5`,name:e?.name??`Claude Sonnet 4.5`,reasoning:e?.reasoning??!0,input:e?.input??[`text`,`image`],cost:EW,contextWindow:2e5,maxTokens:64e3}}function OW(e){let t=e.accountId.trim(),n=e.gatewayId.trim();return!t||!n?``:`https://gateway.ai.cloudflare.com/v1/${t}/${n}/anthropic`}const kW=`https://api.kilo.ai/api/gateway/`,AW=`kilo/auto`;`${AW}`;const jW=[{id:AW,name:`Kilo Auto`,reasoning:!0,input:[`text`,`image`],contextWindow:1e6,maxTokens:128e3}],MW={input:0,output:0,cacheRead:0,cacheWrite:0},NW={"github-copilot":[`COPILOT_GITHUB_TOKEN`,`GH_TOKEN`,`GITHUB_TOKEN`],anthropic:[`ANTHROPIC_OAUTH_TOKEN`,`ANTHROPIC_API_KEY`],chutes:[`CHUTES_OAUTH_TOKEN`,`CHUTES_API_KEY`],zai:[`ZAI_API_KEY`,`Z_AI_API_KEY`],opencode:[`OPENCODE_API_KEY`,`OPENCODE_ZEN_API_KEY`],"opencode-go":[`OPENCODE_API_KEY`,`OPENCODE_ZEN_API_KEY`],"qwen-portal":[`QWEN_OAUTH_TOKEN`,`QWEN_PORTAL_API_KEY`],volcengine:[`VOLCANO_ENGINE_API_KEY`],"volcengine-plan":[`VOLCANO_ENGINE_API_KEY`],byteplus:[`BYTEPLUS_API_KEY`],"byteplus-plan":[`BYTEPLUS_API_KEY`],"minimax-portal":[`MINIMAX_OAUTH_TOKEN`,`MINIMAX_API_KEY`],"kimi-coding":[`KIMI_API_KEY`,`KIMICODE_API_KEY`],huggingface:[`HUGGINGFACE_HUB_TOKEN`,`HF_TOKEN`],openai:[`OPENAI_API_KEY`],google:[`GEMINI_API_KEY`],voyage:[`VOYAGE_API_KEY`],groq:[`GROQ_API_KEY`],deepgram:[`DEEPGRAM_API_KEY`],cerebras:[`CEREBRAS_API_KEY`],xai:[`XAI_API_KEY`],openrouter:[`OPENROUTER_API_KEY`],litellm:[`LITELLM_API_KEY`],"vercel-ai-gateway":[`AI_GATEWAY_API_KEY`],"cloudflare-ai-gateway":[`CLOUDFLARE_AI_GATEWAY_API_KEY`],moonshot:[`MOONSHOT_API_KEY`],minimax:[`MINIMAX_API_KEY`],nvidia:[`NVIDIA_API_KEY`],xiaomi:[`XIAOMI_API_KEY`],synthetic:[`SYNTHETIC_API_KEY`],venice:[`VENICE_API_KEY`],mistral:[`MISTRAL_API_KEY`],together:[`TOGETHER_API_KEY`],qianfan:[`QIANFAN_API_KEY`],modelstudio:[`MODELSTUDIO_API_KEY`],ollama:[`OLLAMA_API_KEY`],vllm:[`VLLM_API_KEY`],kilocode:[`KILOCODE_API_KEY`],qbotclaw:[`QBOTCLAW_LLM_API_KEY`],venus:[`VENUS_API_KEY`]};function PW(){return[...new Set(Object.values(NW).flat())]}const FW=`secretref-managed`,IW=new Set([`AWS_BEARER_TOKEN_BEDROCK`,`AWS_ACCESS_KEY_ID`,`AWS_PROFILE`]),LW=[`GOOGLE_API_KEY`,`DEEPSEEK_API_KEY`,`PERPLEXITY_API_KEY`,`FIREWORKS_API_KEY`,`NOVITA_API_KEY`,`AZURE_OPENAI_API_KEY`,`AZURE_API_KEY`,`MINIMAX_CODE_PLAN_KEY`],RW=new Set([...PW(),...LW,...IW]);function zW(e){return IW.has(e.trim())}function BW(e){let t=e.trim();return RW.has(t)&&!zW(t)}function VW(e){return FW}function HW(e){return FW}function UW(e){return`secretref-env:${e.trim()}`}function WW(e){let t=e.trim();return t===`secretref-managed`||t.startsWith(`secretref-env:`)}function GW(e,t){let n=e.trim();return n?n===`minimax-oauth`||n===`qwen-oauth`||n===`ollama-local`||n===`secretref-managed`||zW(n)?!0:t?.includeEnvVarName===!1?!1:RW.has(n):!1}function KW(){return{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}function qW(e){let t=e.input??0,n=e.output??0;return{input:t,output:n,cacheRead:e.cacheRead??0,cacheWrite:e.cacheWrite??0,totalTokens:e.totalTokens??t+n,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}function JW(e){return{role:`assistant`,content:e.content,stopReason:e.stopReason,api:e.model.api,provider:e.model.provider,model:e.model.id,usage:e.usage,timestamp:e.timestamp??Date.now()}}function YW(e){return JW({model:e.model,content:e.content,stopReason:e.stopReason,usage:KW(),timestamp:e.timestamp})}function XW(e){return{...YW({model:e.model,content:[],stopReason:`error`,timestamp:e.timestamp}),stopReason:`error`,errorMessage:e.errorMessage}}const ZW=C(`ollama-stream`);function QW(e){return e.providerBaseUrl?.trim()||e.modelBaseUrl?.trim()||`http://127.0.0.1:11434`}const $W=String(2**53-1);function eG(e){return e!==void 0&&e>=`0`&&e<=`9`}function tG(e,t){let n=t;if(e[n]===`-`&&(n+=1),n>=e.length)return null;if(e[n]===`0`)n+=1;else if(eG(e[n])&&e[n]!==`0`)for(;eG(e[n]);)n+=1;else return null;let r=!0;if(e[n]===`.`){if(r=!1,n+=1,!eG(e[n]))return null;for(;eG(e[n]);)n+=1}if(e[n]===`e`||e[n]===`E`){if(r=!1,n+=1,(e[n]===`+`||e[n]===`-`)&&(n+=1),!eG(e[n]))return null;for(;eG(e[n]);)n+=1}return{token:e.slice(t,n),end:n,isInteger:r}}function nG(e){let t=e[0]===`-`?e.slice(1):e;return t.length<$W.length?!1:t.length>$W.length?!0:t>$W}function rG(e){let t=``,n=!1,r=!1,i=0;for(;i<e.length;){let a=e[i]??``;if(n){t+=a,r?r=!1:a===`\\`?r=!0:a===`"`&&(n=!1),i+=1;continue}if(a===`"`){n=!0,t+=a,i+=1;continue}if(a===`-`||eG(a)){let n=tG(e,i);if(n){n.isInteger&&nG(n.token)?t+=`"${n.token}"`:t+=n.token,i=n.end;continue}}t+=a,i+=1}return t}function iG(e){return JSON.parse(rG(e))}function aG(e){return typeof e==`string`?e:Array.isArray(e)?e.filter(e=>e.type===`text`).map(e=>e.text).join(``):``}function oG(e){return Array.isArray(e)?e.filter(e=>e.type===`image`).map(e=>e.data):[]}function sG(e){if(!Array.isArray(e))return[];let t=e,n=[];for(let e of t)e.type===`toolCall`?n.push({function:{name:e.name,arguments:e.arguments}}):e.type===`tool_use`&&n.push({function:{name:e.name,arguments:e.input}});return n}function cG(e,t){let n=[];t&&n.push({role:`system`,content:t});for(let t of e){let{role:e}=t;if(e===`user`){let e=aG(t.content),r=oG(t.content);n.push({role:`user`,content:e,...r.length>0?{images:r}:{}})}else if(e===`assistant`){let e=aG(t.content),r=sG(t.content);n.push({role:`assistant`,content:e,...r.length>0?{tool_calls:r}:{}})}else if(e===`tool`||e===`toolResult`){let e=aG(t.content),r=typeof t.toolName==`string`?t.toolName:void 0;n.push({role:`tool`,content:e,...r?{tool_name:r}:{}})}}return n}function lG(e){if(!e||!Array.isArray(e))return[];let t=[];for(let n of e)typeof n.name!=`string`||!n.name||t.push({type:`function`,function:{name:n.name,description:typeof n.description==`string`?n.description:``,parameters:n.parameters??{}}});return t}function uG(e,t){let n=[],r=e.message.content||e.message.thinking||e.message.reasoning||``;r&&n.push({type:`text`,text:r});let i=e.message.tool_calls;if(i&&i.length>0)for(let e of i)n.push({type:`toolCall`,id:`ollama_call_${Gt()}`,name:e.function.name,arguments:e.function.arguments});return JW({model:t,content:n,stopReason:i&&i.length>0?`toolUse`:`stop`,usage:qW({input:e.prompt_eval_count??0,output:e.eval_count??0})})}async function*dG(e){let t=new TextDecoder,n=``;for(;;){let{done:r,value:i}=await e.read();if(r)break;n+=t.decode(i,{stream:!0});let a=n.split(`
61
61
  `);n=a.pop()??``;for(let e of a){let t=e.trim();if(t)try{yield iG(t)}catch{ZW.warn(`Skipping malformed NDJSON line: ${t.slice(0,120)}`)}}}if(n.trim())try{yield iG(n.trim())}catch{ZW.warn(`Skipping malformed trailing data: ${n.trim().slice(0,120)}`)}}function fG(e){return`${e.trim().replace(/\/+$/,``).replace(/\/v1$/i,``)||`http://127.0.0.1:11434`}/api/chat`}function pG(e){if(!(!e.headers||typeof e.headers!=`object`||Array.isArray(e.headers)))return e.headers}function mG(e,t){let n=fG(e);return(e,r,i)=>{let a=mn(),o=async()=>{try{let o=cG(r.messages??[],r.systemPrompt),s=lG(r.tools),c={num_ctx:e.contextWindow??65536};typeof i?.temperature==`number`&&(c.temperature=i.temperature),typeof i?.maxTokens==`number`&&(c.num_predict=i.maxTokens);let l={model:e.id,messages:o,stream:!0,...s.length>0?{tools:s}:{},options:c},u={"Content-Type":`application/json`,...t,...i?.headers};i?.apiKey&&(!u.Authorization||!GW(i.apiKey))&&(u.Authorization=`Bearer ${i.apiKey}`);let d=await fetch(n,{method:`POST`,headers:u,body:JSON.stringify(l),signal:i?.signal});if(!d.ok){let e=await d.text().catch(()=>`unknown error`);throw Error(`Ollama API error ${d.status}: ${e}`)}if(!d.body)throw Error(`Ollama API returned empty response body`);let f=d.body.getReader(),p=``,m=``,h=!1,g=[],_;for await(let e of dG(f))if(e.message?.content?(h=!0,p+=e.message.content):!h&&e.message?.thinking?m+=e.message.thinking:!h&&e.message?.reasoning&&(m+=e.message.reasoning),e.message?.tool_calls&&g.push(...e.message.tool_calls),e.done){_=e;break}if(!_)throw Error(`Ollama API stream ended without a final response`);_.message.content=p||m,g.length>0&&(_.message.tool_calls=g);let v=uG(_,{api:e.api,provider:e.provider,id:e.id}),y=v.stopReason===`toolUse`?`toolUse`:`stop`;a.push({type:`done`,reason:y,message:v})}catch(t){let n=t instanceof Error?t.message:String(t);a.push({type:`error`,reason:`error`,error:XW({model:e,errorMessage:n})})}finally{a.end()}};return queueMicrotask(()=>void o()),a}}function hG(e){return mG(QW({modelBaseUrl:typeof e.model.baseUrl==`string`?e.model.baseUrl:void 0,providerBaseUrl:e.providerBaseUrl}),pG(e.model))}const gG={input:0,output:0,cacheRead:0,cacheWrite:0};function _G(e){return e?e.replace(/\/+$/,``).replace(/\/v1$/i,``):`http://127.0.0.1:11434`}async function vG(e,t){try{let n=await fetch(`${e}/api/show`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({name:t}),signal:AbortSignal.timeout(3e3)});if(!n.ok)return;let r=await n.json();if(!r.model_info)return;for(let[e,t]of Object.entries(r.model_info))if(e.endsWith(`.context_length`)&&typeof t==`number`&&Number.isFinite(t)){let e=Math.floor(t);if(e>0)return e}return}catch{return}}async function yG(e,t,n){let r=Math.max(1,Math.floor(n?.concurrency??8)),i=[];for(let n=0;n<t.length;n+=r){let a=t.slice(n,n+r),o=await Promise.all(a.map(async t=>({...t,contextWindow:await vG(e,t.name)})));i.push(...o)}return i}function bG(e){return/r1|reasoning|think|reason/i.test(e)}const xG=C(`huggingface-models`),SG=`https://router.huggingface.co/v1`,CG={input:0,output:0,cacheRead:0,cacheWrite:0},wG=[{id:`deepseek-ai/DeepSeek-R1`,name:`DeepSeek R1`,reasoning:!0,input:[`text`],contextWindow:131072,maxTokens:8192,cost:{input:3,output:7,cacheRead:3,cacheWrite:3}},{id:`deepseek-ai/DeepSeek-V3.1`,name:`DeepSeek V3.1`,reasoning:!1,input:[`text`],contextWindow:131072,maxTokens:8192,cost:{input:.6,output:1.25,cacheRead:.6,cacheWrite:.6}},{id:`meta-llama/Llama-3.3-70B-Instruct-Turbo`,name:`Llama 3.3 70B Instruct Turbo`,reasoning:!1,input:[`text`],contextWindow:131072,maxTokens:8192,cost:{input:.88,output:.88,cacheRead:.88,cacheWrite:.88}},{id:`openai/gpt-oss-120b`,name:`GPT-OSS 120B`,reasoning:!1,input:[`text`],contextWindow:131072,maxTokens:8192,cost:{input:0,output:0,cacheRead:0,cacheWrite:0}}];function TG(e){return{id:e.id,name:e.name,reasoning:e.reasoning,input:e.input,cost:e.cost,contextWindow:e.contextWindow,maxTokens:e.maxTokens}}function EG(e){let t=e.split(`/`).pop()??e,n=bG(e);return{name:t.replace(/-/g,` `).replace(/\b(\w)/g,e=>e.toUpperCase()),reasoning:n}}function DG(e,t){let n=typeof e.name==`string`&&e.name.trim()||typeof e.title==`string`&&e.title.trim()||typeof e.display_name==`string`&&e.display_name.trim();if(n)return n;if(typeof e.owned_by==`string`&&e.owned_by.trim()){let t=e.id.split(`/`).pop()??e.id;return`${e.owned_by.trim()}/${t}`}return t}async function OG(e){if(process.env.VITEST===`true`)return wG.map(TG);let t=e?.trim();if(!t)return wG.map(TG);try{let e=await fetch(`${SG}/models`,{signal:AbortSignal.timeout(1e4),headers:{Authorization:`Bearer ${t}`,"Content-Type":`application/json`}});if(!e.ok)return xG.warn(`GET /v1/models failed: HTTP ${e.status}, using static catalog`),wG.map(TG);let n=(await e.json())?.data;if(!Array.isArray(n)||n.length===0)return xG.warn(`No models in response, using static catalog`),wG.map(TG);let r=new Map(wG.map(e=>[e.id,e])),i=new Set,a=[];for(let e of n){let t=typeof e?.id==`string`?e.id.trim():``;if(!t||i.has(t))continue;i.add(t);let n=r.get(t);if(n)a.push(TG(n));else{let n=EG(t),r=DG(e,n.name),i=e.architecture?.input_modalities,o=Array.isArray(i)&&i.includes(`image`)?[`text`,`image`]:[`text`],s=(Array.isArray(e.providers)?e.providers:[]).find(e=>typeof e?.context_length==`number`&&e.context_length>0)?.context_length??131072;a.push({id:t,name:r,reasoning:n.reasoning,input:o,cost:CG,contextWindow:s,maxTokens:8192})}}return a.length>0?a:wG.map(TG)}catch(e){return xG.warn(`Discovery failed: ${String(e)}, using static catalog`),wG.map(TG)}}const kG=C(`kilocode-models`),AG=`${kW}models`;function jG(e){if(!e)return 0;let t=Number(e);return!Number.isFinite(t)||t<0?0:t*1e6}function MG(e){let t=e.architecture?.input_modalities;return Array.isArray(t)&&t.some(e=>typeof e==`string`&&e.toLowerCase()===`image`)?[`text`,`image`]:[`text`]}function NG(e){let t=e.supported_parameters;return Array.isArray(t)?t.includes(`reasoning`)||t.includes(`include_reasoning`):!1}function PG(e){return{id:e.id,name:e.name||e.id,reasoning:NG(e),input:MG(e),cost:{input:jG(e.pricing.prompt),output:jG(e.pricing.completion),cacheRead:jG(e.pricing.input_cache_read),cacheWrite:jG(e.pricing.input_cache_write)},contextWindow:e.context_length||1e6,maxTokens:e.top_provider?.max_completion_tokens??128e3}}function FG(){return jW.map(e=>({id:e.id,name:e.name,reasoning:e.reasoning,input:e.input,cost:MW,contextWindow:e.contextWindow??1e6,maxTokens:e.maxTokens??128e3}))}async function IG(){if(process.env.VITEST)return FG();try{let e=await fetch(AG,{headers:{Accept:`application/json`},signal:AbortSignal.timeout(5e3)});if(!e.ok)return kG.warn(`Failed to discover models: HTTP ${e.status}, using static catalog`),FG();let t=await e.json();if(!Array.isArray(t.data)||t.data.length===0)return kG.warn(`No models found from gateway API, using static catalog`),FG();let n=[],r=new Set;for(let e of t.data){if(!e||typeof e!=`object`)continue;let t=typeof e.id==`string`?e.id.trim():``;if(!(!t||r.has(t)))try{n.push(PG(e)),r.add(t)}catch(e){kG.warn(`Skipping malformed model entry "${t}": ${String(e)}`)}}let i=FG();for(let e of i)r.has(e.id)||n.unshift(e);return n.length>0?n:FG()}catch(e){return kG.warn(`Discovery failed: ${String(e)}, using static catalog`),FG()}}const LG={attempts:3,minDelayMs:300,maxDelayMs:3e4,jitter:0},RG=e=>typeof e==`number`&&Number.isFinite(e)?e:void 0,zG=(e,t,n,r)=>{let i=RG(e);if(i===void 0)return t;let a=typeof n==`number`?n:-1/0,o=typeof r==`number`?r:1/0;return Math.min(Math.max(i,a),o)};function BG(e=LG,t){let n=Math.max(1,Math.round(zG(t?.attempts,e.attempts,1))),r=Math.max(0,Math.round(zG(t?.minDelayMs,e.minDelayMs,0)));return{attempts:n,minDelayMs:r,maxDelayMs:Math.max(r,Math.round(zG(t?.maxDelayMs,e.maxDelayMs,0))),jitter:zG(t?.jitter,e.jitter,0,1)}}function VG(e,t){if(t<=0)return e;let n=(Math.random()*2-1)*t;return Math.max(0,Math.round(e*(1+n)))}async function HG(e,t=3,n=300){if(typeof t==`number`){let r=Math.max(1,Math.round(t)),i;for(let t=0;t<r;t+=1)try{return await e()}catch(e){if(i=e,t===r-1)break;await it(n*2**t)}throw i??Error(`Retry failed`)}let r=t,i=BG(LG,r),a=i.attempts,o=i.minDelayMs,s=Number.isFinite(i.maxDelayMs)&&i.maxDelayMs>0?i.maxDelayMs:1/0,c=i.jitter,l=r.shouldRetry??(()=>!0),u;for(let t=1;t<=a;t+=1)try{return await e()}catch(e){if(u=e,t>=a||!l(e,t))break;let n=r.retryAfterMs?.(e),i=typeof n==`number`&&Number.isFinite(n)?Math.max(n,o):o*2**(t-1),d=Math.min(i,s);d=VG(d,c),d=Math.min(Math.max(d,o),s),r.onRetry?.({attempt:t,maxAttempts:a,delayMs:d,err:e,label:r.label}),await it(d)}throw u??Error(`Retry failed`)}const UG=C(`venice-models`),WG=`https://api.venice.ai/api/v1`,GG={input:0,output:0,cacheRead:0,cacheWrite:0},KG=128e3,qG=new Set([408,425,429,500,502,503,504]),JG=new Set([`ECONNABORTED`,`ECONNREFUSED`,`ECONNRESET`,`EAI_AGAIN`,`ENETDOWN`,`ENETUNREACH`,`ENOTFOUND`,`ETIMEDOUT`,`UND_ERR_BODY_TIMEOUT`,`UND_ERR_CONNECT_TIMEOUT`,`UND_ERR_CONNECT_ERROR`,`UND_ERR_HEADERS_TIMEOUT`,`UND_ERR_SOCKET`]),YG=[{id:`llama-3.3-70b`,name:`Llama 3.3 70B`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:4096,privacy:`private`},{id:`llama-3.2-3b`,name:`Llama 3.2 3B`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:4096,privacy:`private`},{id:`hermes-3-llama-3.1-405b`,name:`Hermes 3 Llama 3.1 405B`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:16384,supportsTools:!1,privacy:`private`},{id:`qwen3-235b-a22b-thinking-2507`,name:`Qwen3 235B Thinking`,reasoning:!0,input:[`text`],contextWindow:128e3,maxTokens:16384,privacy:`private`},{id:`qwen3-235b-a22b-instruct-2507`,name:`Qwen3 235B Instruct`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:16384,privacy:`private`},{id:`qwen3-coder-480b-a35b-instruct`,name:`Qwen3 Coder 480B`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:65536,privacy:`private`},{id:`qwen3-coder-480b-a35b-instruct-turbo`,name:`Qwen3 Coder 480B Turbo`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:65536,privacy:`private`},{id:`qwen3-5-35b-a3b`,name:`Qwen3.5 35B A3B`,reasoning:!0,input:[`text`,`image`],contextWindow:256e3,maxTokens:65536,privacy:`private`},{id:`qwen3-next-80b`,name:`Qwen3 Next 80B`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:16384,privacy:`private`},{id:`qwen3-vl-235b-a22b`,name:`Qwen3 VL 235B (Vision)`,reasoning:!1,input:[`text`,`image`],contextWindow:256e3,maxTokens:16384,privacy:`private`},{id:`qwen3-4b`,name:`Venice Small (Qwen3 4B)`,reasoning:!0,input:[`text`],contextWindow:32e3,maxTokens:4096,privacy:`private`},{id:`deepseek-v3.2`,name:`DeepSeek V3.2`,reasoning:!0,input:[`text`],contextWindow:16e4,maxTokens:32768,supportsTools:!1,privacy:`private`},{id:`venice-uncensored`,name:`Venice Uncensored (Dolphin-Mistral)`,reasoning:!1,input:[`text`],contextWindow:32e3,maxTokens:4096,supportsTools:!1,privacy:`private`},{id:`mistral-31-24b`,name:`Venice Medium (Mistral)`,reasoning:!1,input:[`text`,`image`],contextWindow:128e3,maxTokens:4096,privacy:`private`},{id:`google-gemma-3-27b-it`,name:`Google Gemma 3 27B Instruct`,reasoning:!1,input:[`text`,`image`],contextWindow:198e3,maxTokens:16384,privacy:`private`},{id:`openai-gpt-oss-120b`,name:`OpenAI GPT OSS 120B`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:16384,privacy:`private`},{id:`nvidia-nemotron-3-nano-30b-a3b`,name:`NVIDIA Nemotron 3 Nano 30B`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:16384,privacy:`private`},{id:`olafangensan-glm-4.7-flash-heretic`,name:`GLM 4.7 Flash Heretic`,reasoning:!0,input:[`text`],contextWindow:128e3,maxTokens:24e3,privacy:`private`},{id:`zai-org-glm-4.6`,name:`GLM 4.6`,reasoning:!1,input:[`text`],contextWindow:198e3,maxTokens:16384,privacy:`private`},{id:`zai-org-glm-4.7`,name:`GLM 4.7`,reasoning:!0,input:[`text`],contextWindow:198e3,maxTokens:16384,privacy:`private`},{id:`zai-org-glm-4.7-flash`,name:`GLM 4.7 Flash`,reasoning:!0,input:[`text`],contextWindow:128e3,maxTokens:16384,privacy:`private`},{id:`zai-org-glm-5`,name:`GLM 5`,reasoning:!0,input:[`text`],contextWindow:198e3,maxTokens:32e3,privacy:`private`},{id:`kimi-k2-5`,name:`Kimi K2.5`,reasoning:!0,input:[`text`,`image`],contextWindow:256e3,maxTokens:65536,privacy:`private`},{id:`kimi-k2-thinking`,name:`Kimi K2 Thinking`,reasoning:!0,input:[`text`],contextWindow:256e3,maxTokens:65536,privacy:`private`},{id:`minimax-m21`,name:`MiniMax M2.1`,reasoning:!0,input:[`text`],contextWindow:198e3,maxTokens:32768,privacy:`private`},{id:`minimax-m25`,name:`MiniMax M2.5`,reasoning:!0,input:[`text`],contextWindow:198e3,maxTokens:32768,privacy:`private`},{id:`claude-opus-4-5`,name:`Claude Opus 4.5 (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:198e3,maxTokens:32768,privacy:`anonymized`},{id:`claude-opus-4-6`,name:`Claude Opus 4.6 (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:1e6,maxTokens:128e3,privacy:`anonymized`},{id:`claude-sonnet-4-5`,name:`Claude Sonnet 4.5 (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:198e3,maxTokens:64e3,privacy:`anonymized`},{id:`claude-sonnet-4-6`,name:`Claude Sonnet 4.6 (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:1e6,maxTokens:64e3,privacy:`anonymized`},{id:`openai-gpt-52`,name:`GPT-5.2 (via Venice)`,reasoning:!0,input:[`text`],contextWindow:256e3,maxTokens:65536,privacy:`anonymized`},{id:`openai-gpt-52-codex`,name:`GPT-5.2 Codex (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:256e3,maxTokens:65536,privacy:`anonymized`},{id:`openai-gpt-53-codex`,name:`GPT-5.3 Codex (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:4e5,maxTokens:128e3,privacy:`anonymized`},{id:`openai-gpt-54`,name:`GPT-5.4 (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:1e6,maxTokens:131072,privacy:`anonymized`},{id:`openai-gpt-4o-2024-11-20`,name:`GPT-4o (via Venice)`,reasoning:!1,input:[`text`,`image`],contextWindow:128e3,maxTokens:16384,privacy:`anonymized`},{id:`openai-gpt-4o-mini-2024-07-18`,name:`GPT-4o Mini (via Venice)`,reasoning:!1,input:[`text`,`image`],contextWindow:128e3,maxTokens:16384,privacy:`anonymized`},{id:`gemini-3-pro-preview`,name:`Gemini 3 Pro (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:198e3,maxTokens:32768,privacy:`anonymized`},{id:`gemini-3-1-pro-preview`,name:`Gemini 3.1 Pro (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:1e6,maxTokens:32768,privacy:`anonymized`},{id:`gemini-3-flash-preview`,name:`Gemini 3 Flash (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:256e3,maxTokens:65536,privacy:`anonymized`},{id:`grok-41-fast`,name:`Grok 4.1 Fast (via Venice)`,reasoning:!0,input:[`text`,`image`],contextWindow:1e6,maxTokens:3e4,privacy:`anonymized`},{id:`grok-code-fast-1`,name:`Grok Code Fast 1 (via Venice)`,reasoning:!0,input:[`text`],contextWindow:256e3,maxTokens:1e4,privacy:`anonymized`}];function XG(e){return{id:e.id,name:e.name,reasoning:e.reasoning,input:[...e.input],cost:GG,contextWindow:e.contextWindow,maxTokens:e.maxTokens,compat:{supportsUsageInStreaming:!1,...`supportsTools`in e&&!e.supportsTools?{supportsTools:!1}:{}}}}var ZG=class extends Error{constructor(e){super(`HTTP ${e}`),this.name=`VeniceDiscoveryHttpError`,this.status=e}};function QG(){return YG.map(XG)}function $G(e){let t=[e],n=new Set;for(;t.length>0;){let e=t.shift();if(!e||typeof e!=`object`||n.has(e))continue;n.add(e);let r=e,i=typeof r.code==`string`?r.code:typeof r.errno==`string`?r.errno:void 0;if(i&&JG.has(i))return!0;r.cause&&t.push(r.cause),Array.isArray(r.errors)&&t.push(...r.errors)}return!1}function eK(e){return e instanceof ZG||e instanceof Error&&e.name===`AbortError`||e instanceof TypeError&&e.message.toLowerCase()===`fetch failed`?!0:$G(e)}function tK(e){if(!(typeof e!=`number`||!Number.isFinite(e)||e<=0))return Math.floor(e)}function nK(e){let t=tK(e.apiModel.model_spec?.maxCompletionTokens);if(!t)return;let n=tK(e.apiModel.model_spec?.availableContextTokens),r=typeof e.knownMaxTokens==`number`&&Number.isFinite(e.knownMaxTokens)?Math.floor(e.knownMaxTokens):void 0,i=r??131072,a=r??KG;return Math.min(t,n??a,i)}function rK(e){let t=e.model_spec?.capabilities?.supportsFunctionCalling;return typeof t==`boolean`?t:void 0}async function iK(){if(process.env.VITEST)return QG();try{let e=await HG(async()=>{let e=await fetch(`${WG}/models`,{signal:AbortSignal.timeout(1e4),headers:{Accept:`application/json`}});if(!e.ok&&qG.has(e.status))throw new ZG(e.status);return e},{attempts:3,minDelayMs:300,maxDelayMs:2e3,jitter:.2,label:`venice-model-discovery`,shouldRetry:eK});if(!e.ok)return UG.warn(`Failed to discover models: HTTP ${e.status}, using static catalog`),QG();let t=await e.json();if(!Array.isArray(t.data)||t.data.length===0)return UG.warn(`No models found from API, using static catalog`),QG();let n=new Map(YG.map(e=>[e.id,e])),r=[];for(let e of t.data){let t=n.get(e.id),i=nK({apiModel:e,knownMaxTokens:t?.maxTokens}),a=rK(e);if(t){let e=XG(t);i!==void 0&&(e.maxTokens=i),a===!1&&(e.compat={...e.compat,supportsTools:!1}),r.push(e)}else{let t=e.model_spec,n=t?.capabilities?.supportsReasoning||e.id.toLowerCase().includes(`thinking`)||e.id.toLowerCase().includes(`reason`)||e.id.toLowerCase().includes(`r1`),o=t?.capabilities?.supportsVision===!0;r.push({id:e.id,name:t?.name||e.id,reasoning:n,input:o?[`text`,`image`]:[`text`],cost:GG,contextWindow:tK(t?.availableContextTokens)??KG,maxTokens:i??4096,compat:{supportsUsageInStreaming:!1,...a===!1?{supportsTools:!1}:{}}})}}return r.length>0?r:QG()}catch(e){return e instanceof ZG?(UG.warn(`Failed to discover models: HTTP ${e.status}, using static catalog`),QG()):(UG.warn(`Discovery failed: ${String(e)}, using static catalog`),QG())}}const aK=`https://ai-gateway.vercel.sh`,oK={input:0,output:0,cacheRead:0,cacheWrite:0},sK=C(`agents/vercel-ai-gateway`),cK=[{id:`anthropic/claude-opus-4.6`,name:`Claude Opus 4.6`,reasoning:!0,input:[`text`,`image`],contextWindow:1e6,maxTokens:128e3,cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25}},{id:`openai/gpt-5.4`,name:`GPT 5.4`,reasoning:!0,input:[`text`,`image`],contextWindow:2e5,maxTokens:128e3,cost:{input:2.5,output:15,cacheRead:.25}},{id:`openai/gpt-5.4-pro`,name:`GPT 5.4 Pro`,reasoning:!0,input:[`text`,`image`],contextWindow:2e5,maxTokens:128e3,cost:{input:30,output:180,cacheRead:0}}];function lK(e){let t=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return!Number.isFinite(t)||t<0?0:t*1e6}function uK(e){return{input:lK(e?.input),output:lK(e?.output),cacheRead:lK(e?.input_cache_read),cacheWrite:lK(e?.input_cache_write)}}function dK(e){return{id:e.id,name:e.name,reasoning:e.reasoning,input:e.input,contextWindow:e.contextWindow,maxTokens:e.maxTokens,cost:{...oK,...e.cost}}}function fK(e){let t=cK.find(t=>t.id===e);return t?dK(t):void 0}function pK(){return cK.map(dK)}function mK(e){let t=typeof e.id==`string`?e.id.trim():``;if(!t)return null;let n=fK(t),r=typeof e.context_window==`number`&&Number.isFinite(e.context_window)?e.context_window:n?.contextWindow??2e5,i=typeof e.max_tokens==`number`&&Number.isFinite(e.max_tokens)?e.max_tokens:n?.maxTokens??128e3,a=uK(e.pricing);return{id:t,name:(typeof e.name==`string`?e.name.trim():``)||n?.name||t,reasoning:Array.isArray(e.tags)&&e.tags.includes(`reasoning`)?!0:n?.reasoning??!1,input:Array.isArray(e.tags)?e.tags.includes(`vision`)?[`text`,`image`]:[`text`]:n?.input??[`text`],contextWindow:r,maxTokens:i,cost:a.input>0||a.output>0||a.cacheRead>0||a.cacheWrite>0?a:n?.cost??oK}}async function hK(){if(process.env.VITEST)return pK();try{let e=await fetch(`${aK}/v1/models`,{signal:AbortSignal.timeout(5e3)});if(!e.ok)return sK.warn(`Failed to discover Vercel AI Gateway models: HTTP ${e.status}`),pK();let t=((await e.json()).data??[]).map(mK).filter(e=>e!==null);return t.length>0?t:pK()}catch(e){return sK.warn(`Failed to discover Vercel AI Gateway models: ${String(e)}`),pK()}}const gK=C(`agents/model-providers`),_K={input:0,output:0,cacheRead:0,cacheWrite:0};async function vK(e,t){if(process.env.VITEST)return[];try{let n=_G(e),r=await fetch(`${n}/api/tags`,{signal:AbortSignal.timeout(5e3)});if(!r.ok)return t?.quiet||gK.warn(`Failed to discover Ollama models: ${r.status}`),[];let i=await r.json();if(!i.models||i.models.length===0)return gK.debug(`No Ollama models found on local instance`),[];let a=i.models.slice(0,200);return a.length<i.models.length&&!t?.quiet&&gK.warn(`Capping Ollama /api/show inspection to 200 models (received ${i.models.length})`),(await yG(n,a,{concurrency:8})).map(e=>({id:e.name,name:e.name,reasoning:bG(e.name),input:[`text`],cost:gG,contextWindow:e.contextWindow??128e3,maxTokens:8192}))}catch(e){return t?.quiet||gK.warn(`Failed to discover Ollama models: ${String(e)}`),[]}}async function yK(e,t){if(process.env.VITEST)return[];let n=`${e.trim().replace(/\/+$/,``)}/models`;try{let e=t?.trim(),r=await fetch(n,{headers:e?{Authorization:`Bearer ${e}`}:void 0,signal:AbortSignal.timeout(5e3)});if(!r.ok)return gK.warn(`Failed to discover vLLM models: ${r.status}`),[];let i=(await r.json()).data??[];return i.length===0?(gK.warn(`No vLLM models found on local instance`),[]):i.map(e=>({id:typeof e.id==`string`?e.id.trim():``})).filter(e=>!!e.id).map(e=>{let t=e.id;return{id:t,name:t,reasoning:bG(t),input:[`text`],cost:_K,contextWindow:128e3,maxTokens:8192}})}catch(e){return gK.warn(`Failed to discover vLLM models: ${String(e)}`),[]}}async function bK(){return{baseUrl:WG,api:`openai-completions`,models:await iK()}}async function xK(e,t){let n=await vK(e,t);return{baseUrl:_G(e),api:`ollama`,models:n}}async function SK(e){let t=e?.trim()??``;return{baseUrl:SG,api:`openai-completions`,models:t===``?wG.map(TG):await OG(t)}}async function CK(){return{baseUrl:aK,api:`anthropic-messages`,models:await hK()}}async function wK(e){let t=(e?.baseUrl?.trim()||`http://127.0.0.1:8000/v1`).replace(/\/+$/,``);return{baseUrl:t,api:`openai-completions`,models:await yK(t,e?.apiKey)}}async function TK(){return{baseUrl:kW,api:`openai-completions`,models:await IG()}}const EK={id:`kimi-k2-5-260127`,name:`Kimi K2.5`,reasoning:!1,input:[`text`,`image`],contextWindow:256e3,maxTokens:4096},DK={id:`glm-4-7-251222`,name:`GLM 4.7`,reasoning:!1,input:[`text`,`image`],contextWindow:2e5,maxTokens:4096},OK=[{id:`ark-code-latest`,name:`Ark Coding Plan`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:4096},{id:`doubao-seed-code`,name:`Doubao Seed Code`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:4096},{id:`glm-4.7`,name:`GLM 4.7 Coding`,reasoning:!1,input:[`text`],contextWindow:2e5,maxTokens:4096},{id:`kimi-k2-thinking`,name:`Kimi K2 Thinking`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:4096},{id:`kimi-k2.5`,name:`Kimi K2.5 Coding`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:4096}];function kK(e,t){return{id:e.id,name:e.name,reasoning:e.reasoning,input:[...e.input],cost:t,contextWindow:e.contextWindow,maxTokens:e.maxTokens}}const AK={input:1e-4,output:2e-4,cacheRead:0,cacheWrite:0},jK=[{id:`seed-1-8-251228`,name:`Seed 1.8`,reasoning:!1,input:[`text`,`image`],contextWindow:256e3,maxTokens:4096},EK,DK];function MK(e){return kK(e,AK)}const NK=OK,PK={input:1e-4,output:2e-4,cacheRead:0,cacheWrite:0},FK=[{id:`doubao-seed-code-preview-251028`,name:`doubao-seed-code-preview-251028`,reasoning:!1,input:[`text`,`image`],contextWindow:256e3,maxTokens:4096},{id:`doubao-seed-1-8-251228`,name:`Doubao Seed 1.8`,reasoning:!1,input:[`text`,`image`],contextWindow:256e3,maxTokens:4096},EK,DK,{id:`deepseek-v3-2-251201`,name:`DeepSeek V3.2`,reasoning:!1,input:[`text`,`image`],contextWindow:128e3,maxTokens:4096}];function IK(e){return kK(e,PK)}const LK=[...OK,{id:`doubao-seed-code-preview-251028`,name:`Doubao Seed Code Preview`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:4096}],RK=`hf:MiniMaxAI/MiniMax-M2.5`;`${RK}`;const zK={input:0,output:0,cacheRead:0,cacheWrite:0},BK=[{id:RK,name:`MiniMax M2.5`,reasoning:!1,input:[`text`],contextWindow:192e3,maxTokens:65536},{id:`hf:moonshotai/Kimi-K2-Thinking`,name:`Kimi K2 Thinking`,reasoning:!0,input:[`text`],contextWindow:256e3,maxTokens:8192},{id:`hf:zai-org/GLM-4.7`,name:`GLM-4.7`,reasoning:!1,input:[`text`],contextWindow:198e3,maxTokens:128e3},{id:`hf:deepseek-ai/DeepSeek-R1-0528`,name:`DeepSeek R1 0528`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:8192},{id:`hf:deepseek-ai/DeepSeek-V3-0324`,name:`DeepSeek V3 0324`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:8192},{id:`hf:deepseek-ai/DeepSeek-V3.1`,name:`DeepSeek V3.1`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:8192},{id:`hf:deepseek-ai/DeepSeek-V3.1-Terminus`,name:`DeepSeek V3.1 Terminus`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:8192},{id:`hf:deepseek-ai/DeepSeek-V3.2`,name:`DeepSeek V3.2`,reasoning:!1,input:[`text`],contextWindow:159e3,maxTokens:8192},{id:`hf:meta-llama/Llama-3.3-70B-Instruct`,name:`Llama 3.3 70B Instruct`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:8192},{id:`hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8`,name:`Llama 4 Maverick 17B 128E Instruct FP8`,reasoning:!1,input:[`text`],contextWindow:524e3,maxTokens:8192},{id:`hf:moonshotai/Kimi-K2-Instruct-0905`,name:`Kimi K2 Instruct 0905`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:8192},{id:`hf:moonshotai/Kimi-K2.5`,name:`Kimi K2.5`,reasoning:!0,input:[`text`,`image`],contextWindow:256e3,maxTokens:8192},{id:`hf:openai/gpt-oss-120b`,name:`GPT OSS 120B`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:8192},{id:`hf:Qwen/Qwen3-235B-A22B-Instruct-2507`,name:`Qwen3 235B A22B Instruct 2507`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:8192},{id:`hf:Qwen/Qwen3-Coder-480B-A35B-Instruct`,name:`Qwen3 Coder 480B A35B Instruct`,reasoning:!1,input:[`text`],contextWindow:256e3,maxTokens:8192},{id:`hf:Qwen/Qwen3-VL-235B-A22B-Instruct`,name:`Qwen3 VL 235B A22B Instruct`,reasoning:!1,input:[`text`,`image`],contextWindow:25e4,maxTokens:8192},{id:`hf:zai-org/GLM-4.5`,name:`GLM-4.5`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:128e3},{id:`hf:zai-org/GLM-4.6`,name:`GLM-4.6`,reasoning:!1,input:[`text`],contextWindow:198e3,maxTokens:128e3},{id:`hf:zai-org/GLM-5`,name:`GLM-5`,reasoning:!0,input:[`text`,`image`],contextWindow:256e3,maxTokens:128e3},{id:`hf:deepseek-ai/DeepSeek-V3`,name:`DeepSeek V3`,reasoning:!1,input:[`text`],contextWindow:128e3,maxTokens:8192},{id:`hf:Qwen/Qwen3-235B-A22B-Thinking-2507`,name:`Qwen3 235B A22B Thinking 2507`,reasoning:!0,input:[`text`],contextWindow:256e3,maxTokens:8192}];function VK(e){return{id:e.id,name:e.name,reasoning:e.reasoning,input:[...e.input],cost:zK,contextWindow:e.contextWindow,maxTokens:e.maxTokens}}const HK=[{id:`zai-org/GLM-4.7`,name:`GLM 4.7 Fp8`,reasoning:!1,input:[`text`],contextWindow:202752,maxTokens:8192,cost:{input:.45,output:2,cacheRead:.45,cacheWrite:2}},{id:`moonshotai/Kimi-K2.5`,name:`Kimi K2.5`,reasoning:!0,input:[`text`,`image`],cost:{input:.5,output:2.8,cacheRead:.5,cacheWrite:2.8},contextWindow:262144,maxTokens:32768},{id:`meta-llama/Llama-3.3-70B-Instruct-Turbo`,name:`Llama 3.3 70B Instruct Turbo`,reasoning:!1,input:[`text`],contextWindow:131072,maxTokens:8192,cost:{input:.88,output:.88,cacheRead:.88,cacheWrite:.88}},{id:`meta-llama/Llama-4-Scout-17B-16E-Instruct`,name:`Llama 4 Scout 17B 16E Instruct`,reasoning:!1,input:[`text`,`image`],contextWindow:1e7,maxTokens:32768,cost:{input:.18,output:.59,cacheRead:.18,cacheWrite:.18}},{id:`meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8`,name:`Llama 4 Maverick 17B 128E Instruct FP8`,reasoning:!1,input:[`text`,`image`],contextWindow:2e7,maxTokens:32768,cost:{input:.27,output:.85,cacheRead:.27,cacheWrite:.27}},{id:`deepseek-ai/DeepSeek-V3.1`,name:`DeepSeek V3.1`,reasoning:!1,input:[`text`],contextWindow:131072,maxTokens:8192,cost:{input:.6,output:1.25,cacheRead:.6,cacheWrite:.6}},{id:`deepseek-ai/DeepSeek-R1`,name:`DeepSeek R1`,reasoning:!0,input:[`text`],contextWindow:131072,maxTokens:8192,cost:{input:3,output:7,cacheRead:3,cacheWrite:3}},{id:`moonshotai/Kimi-K2-Instruct-0905`,name:`Kimi K2-Instruct 0905`,reasoning:!1,input:[`text`],contextWindow:262144,maxTokens:8192,cost:{input:1,output:3,cacheRead:1,cacheWrite:3}}];function UK(e){return{id:e.id,name:e.name,api:`openai-completions`,reasoning:e.reasoning,input:e.input,cost:e.cost,contextWindow:e.contextWindow,maxTokens:e.maxTokens}}const WK=`https://api.minimax.io/anthropic`,GK=`MiniMax-VL-01`,KK={input:.3,output:1.2,cacheRead:.03,cacheWrite:.12};function qK(e){return{id:e.id,name:e.name,reasoning:e.reasoning,input:e.input,cost:KK,contextWindow:2e5,maxTokens:8192}}function JK(e){return qK({...e,input:[`text`]})}const YK={input:0,output:0,cacheRead:0,cacheWrite:0},XK={input:0,output:0,cacheRead:0,cacheWrite:0},ZK={input:0,output:0,cacheRead:0,cacheWrite:0},QK=128e3,$K=8192,eq={input:0,output:0,cacheRead:0,cacheWrite:0},tq={input:0,output:0,cacheRead:0,cacheWrite:0},nq={input:0,output:0,cacheRead:0,cacheWrite:0},rq={input:0,output:0,cacheRead:0,cacheWrite:0},iq=[{id:`qwen3.5-plus`,name:`qwen3.5-plus`,reasoning:!1,input:[`text`,`image`],cost:rq,contextWindow:1e6,maxTokens:65536},{id:`qwen3-max-2026-01-23`,name:`qwen3-max-2026-01-23`,reasoning:!1,input:[`text`],cost:rq,contextWindow:262144,maxTokens:65536},{id:`qwen3-coder-next`,name:`qwen3-coder-next`,reasoning:!1,input:[`text`],cost:rq,contextWindow:262144,maxTokens:65536},{id:`qwen3-coder-plus`,name:`qwen3-coder-plus`,reasoning:!1,input:[`text`],cost:rq,contextWindow:1e6,maxTokens:65536},{id:`MiniMax-M2.5`,name:`MiniMax-M2.5`,reasoning:!1,input:[`text`],cost:rq,contextWindow:1e6,maxTokens:65536},{id:`glm-5`,name:`glm-5`,reasoning:!1,input:[`text`],cost:rq,contextWindow:202752,maxTokens:16384},{id:`glm-4.7`,name:`glm-4.7`,reasoning:!1,input:[`text`],cost:rq,contextWindow:202752,maxTokens:16384},{id:`kimi-k2.5`,name:`kimi-k2.5`,reasoning:!1,input:[`text`,`image`],cost:rq,contextWindow:262144,maxTokens:32768}],aq={input:0,output:0,cacheRead:0,cacheWrite:0};function oq(){return{baseUrl:WK,api:`anthropic-messages`,authHeader:!0,models:[qK({id:GK,name:`MiniMax VL 01`,reasoning:!1,input:[`text`,`image`]}),JK({id:`MiniMax-M2.5`,name:`MiniMax M2.5`,reasoning:!0}),JK({id:`MiniMax-M2.5-highspeed`,name:`MiniMax M2.5 Highspeed`,reasoning:!0})]}}function sq(){return{baseUrl:WK,api:`anthropic-messages`,authHeader:!0,models:[qK({id:GK,name:`MiniMax VL 01`,reasoning:!1,input:[`text`,`image`]}),JK({id:`MiniMax-M2.5`,name:`MiniMax M2.5`,reasoning:!0}),JK({id:`MiniMax-M2.5-highspeed`,name:`MiniMax M2.5 Highspeed`,reasoning:!0})]}}function cq(){return{baseUrl:`https://api.moonshot.ai/v1`,api:`openai-completions`,models:[{id:`kimi-k2.5`,name:`Kimi K2.5`,reasoning:!1,input:[`text`,`image`],cost:XK,contextWindow:256e3,maxTokens:8192}]}}function lq(){return{baseUrl:`https://api.kimi.com/coding/`,api:`anthropic-messages`,models:[{id:`k2p5`,name:`Kimi for Coding`,reasoning:!0,input:[`text`,`image`],cost:ZK,contextWindow:262144,maxTokens:32768}]}}function uq(){return{baseUrl:`https://portal.qwen.ai/v1`,api:`openai-completions`,models:[{id:`coder-model`,name:`Qwen Coder`,reasoning:!1,input:[`text`],cost:eq,contextWindow:QK,maxTokens:$K},{id:`vision-model`,name:`Qwen Vision`,reasoning:!1,input:[`text`,`image`],cost:eq,contextWindow:QK,maxTokens:$K}]}}function dq(){return{baseUrl:`https://api.synthetic.new/anthropic`,api:`anthropic-messages`,models:BK.map(VK)}}function fq(){return{baseUrl:`https://ark.cn-beijing.volces.com/api/v3`,api:`openai-completions`,models:FK.map(IK)}}function pq(){return{baseUrl:`https://ark.cn-beijing.volces.com/api/coding/v3`,api:`openai-completions`,models:LK.map(IK)}}function mq(){return{baseUrl:`https://ark.ap-southeast.bytepluses.com/api/v3`,api:`openai-completions`,models:jK.map(MK)}}function hq(){return{baseUrl:`https://ark.ap-southeast.bytepluses.com/api/coding/v3`,api:`openai-completions`,models:NK.map(MK)}}function gq(){return{baseUrl:`https://api.xiaomimimo.com/anthropic`,api:`anthropic-messages`,models:[{id:`mimo-v2-flash`,name:`Xiaomi MiMo V2 Flash`,reasoning:!1,input:[`text`],cost:YK,contextWindow:262144,maxTokens:8192}]}}function _q(){return{baseUrl:`https://api.together.xyz/v1`,api:`openai-completions`,models:HK.map(UK)}}function vq(){return{baseUrl:`https://openrouter.ai/api/v1`,api:`openai-completions`,models:[{id:`auto`,name:`OpenRouter Auto`,reasoning:!1,input:[`text`,`image`],cost:tq,contextWindow:2e5,maxTokens:8192},{id:`openrouter/hunter-alpha`,name:`Hunter Alpha`,reasoning:!0,input:[`text`],cost:tq,contextWindow:1048576,maxTokens:65536},{id:`openrouter/healer-alpha`,name:`Healer Alpha`,reasoning:!0,input:[`text`,`image`],cost:tq,contextWindow:262144,maxTokens:65536}]}}function yq(){return{baseUrl:`https://chatgpt.com/backend-api`,api:`openai-codex-responses`,models:[]}}function bq(){return{baseUrl:`https://qianfan.baidubce.com/v2`,api:`openai-completions`,models:[{id:`deepseek-v3.2`,name:`DEEPSEEK V3.2`,reasoning:!0,input:[`text`],cost:nq,contextWindow:98304,maxTokens:32768},{id:`ernie-5.0-thinking-preview`,name:`ERNIE-5.0-Thinking-Preview`,reasoning:!0,input:[`text`,`image`],cost:nq,contextWindow:119e3,maxTokens:64e3}]}}function xq(){return{baseUrl:`https://coding-intl.dashscope.aliyuncs.com/v1`,api:`openai-completions`,models:iq.map(e=>({...e}))}}function Sq(){return{baseUrl:`https://integrate.api.nvidia.com/v1`,api:`openai-completions`,models:[{id:`nvidia/llama-3.1-nemotron-70b-instruct`,name:`NVIDIA Llama 3.1 Nemotron 70B Instruct`,reasoning:!1,input:[`text`],cost:aq,contextWindow:131072,maxTokens:4096},{id:`meta/llama-3.3-70b-instruct`,name:`Meta Llama 3.3 70B Instruct`,reasoning:!1,input:[`text`],cost:aq,contextWindow:131072,maxTokens:4096},{id:`nvidia/mistral-nemo-minitron-8b-8k-instruct`,name:`NVIDIA Mistral NeMo Minitron 8B Instruct`,reasoning:!1,input:[`text`],cost:aq,contextWindow:8192,maxTokens:2048}]}}const Cq=C(`model-auth`),wq=`AWS_BEARER_TOKEN_BEDROCK`,Tq=`AWS_ACCESS_KEY_ID`,Eq=`AWS_SECRET_ACCESS_KEY`,Dq=`AWS_PROFILE`;function Oq(e,t){let n=e?.models?.providers??{},r=n[t];if(r)return r;let i=$(t);return i===t?Object.entries(n).find(([e])=>$(e)===i)?.[1]:n[i]??Object.entries(n).find(([e])=>$(e)===i)?.[1]}function kq(e,t){return Nn(Oq(e,t)?.apiKey)}function Aq(e){let t=kq(e.cfg,e.provider);if(!t)return null;if(!GW(t))return{apiKey:t,source:`models.json`};if(!BW(t))return null;let n=Nn((e.env??process.env)[t]);return n?{apiKey:n,source:Pq({applied:new Set(Pi()),envVars:[t],label:`${t} (models.json marker)`})}:null}function jq(e,t,n){return!!Aq({cfg:e,provider:t,env:n})}function Mq(e,t){let n=Oq(e,t)?.auth;if(n===`api-key`||n===`aws-sdk`||n===`oauth`||n===`token`)return n}function Nq(e){if($(e.provider)!==`ollama`)return null;let t=Oq(e.cfg,e.provider);return!t||!(t.api?.trim()||t.baseUrl?.trim()||Array.isArray(t.models)&&t.models.length>0)?null:{apiKey:`ollama-local`,source:`models.providers.ollama (synthetic local key)`,mode:`api-key`}}function Pq(e){return`${e.envVars.some(t=>e.applied.has(t))?`shell env: `:`env: `}${e.label}`}function Fq(e=process.env){if(e[wq]?.trim())return wq;if(e[Tq]?.trim()&&e[Eq]?.trim())return Tq;if(e[Dq]?.trim())return Dq}function Iq(){let e=new Set(Pi());return process.env[wq]?.trim()?{mode:`aws-sdk`,source:Pq({applied:e,envVars:[wq],label:wq})}:process.env[Tq]?.trim()&&process.env[Eq]?.trim()?{mode:`aws-sdk`,source:Pq({applied:e,envVars:[Tq,Eq],label:`${Tq} + ${Eq}`})}:process.env[Dq]?.trim()?{mode:`aws-sdk`,source:Pq({applied:e,envVars:[Dq],label:Dq})}:{mode:`aws-sdk`,source:`aws-sdk default chain`}}async function Lq(e){let{provider:t,cfg:n,profileId:r,preferredProfile:i}=e,a=e.store??Wr(e.agentDir);if(r){let t=await Vb({cfg:n,store:a,profileId:r,agentDir:e.agentDir});if(!t)throw Error(`No credentials found for profile "${r}".`);let i=a.profiles[r]?.type;return{apiKey:t.apiKey,profileId:r,source:`profile:${r}`,mode:i===`oauth`?`oauth`:i===`token`?`token`:`api-key`}}let o=Mq(n,t);if(o===`aws-sdk`)return Iq();let s=SW({cfg:n,store:a,provider:t,preferredProfile:i});for(let r of s)try{let t=await Vb({cfg:n,store:a,profileId:r,agentDir:e.agentDir});if(t){let e=a.profiles[r]?.type;return{apiKey:t.apiKey,profileId:r,source:`profile:${r}`,mode:e===`oauth`?`oauth`:e===`token`?`token`:`api-key`}}}catch(e){Cq.debug?.(`auth profile "${r}" failed for provider "${t}": ${String(e)}`)}let c=Rq(t);if(c)return{apiKey:c.apiKey,source:c.source,mode:c.source.includes(`OAUTH_TOKEN`)?`oauth`:`api-key`};let l=Aq({cfg:n,provider:t});if(l)return{apiKey:l.apiKey,source:l.source,mode:`api-key`};let u=Nq({cfg:n,provider:t});if(u)return u;let d=$(t);if(o===void 0&&d===`amazon-bedrock`)return Iq();if(t===`openai`&&qr(a,`openai-codex`).length>0)throw Error(`No API key found for provider "openai". You are authenticated with OpenAI Codex OAuth. Use openai-codex/gpt-5.4 (OAuth) or set OPENAI_API_KEY to use openai/gpt-5.4.`);let f=Tr(e.agentDir),p=A.dirname(f);throw Error([`No API key found for provider "${t}".`,`Auth store: ${f} (agentDir: ${p}).`,`Configure auth for this agent (${Yn(`openclaw agents add <id>`)}) or copy auth-profiles.json from the main agentDir.`].join(` `))}function Rq(e,t=process.env){let n=$(e),r=new Set(Pi()),i=e=>{let n=Nn(t[e]);return n?{apiKey:n,source:r.has(e)?`shell env: ${e}`:`env: ${e}`}:null},a=NW[n];if(a)for(let e of a){let t=i(e);if(t)return t}if(n===`google-vertex`){let e=hn(n);return e?{apiKey:e,source:`gcloud adc`}:null}return null}function zq(e,t,n){let r=e?.trim();if(!r)return;let i=Mq(t,r);if(i===`aws-sdk`)return`aws-sdk`;let a=n??Wr(),o=qr(a,r);if(o.length>0){let e=new Set(o.map(e=>a.profiles[e]?.type).filter(e=>!!e));if([`oauth`,`token`,`api_key`].filter(t=>e.has(t)).length>=2)return`mixed`;if(e.has(`oauth`))return`oauth`;if(e.has(`token`))return`token`;if(e.has(`api_key`))return`api-key`}if(i===void 0&&$(r)===`amazon-bedrock`)return`aws-sdk`;let s=Rq(r);return s?.apiKey?s.source.includes(`OAUTH_TOKEN`)?`oauth`:`api-key`:jq(t,r)?`api-key`:`unknown`}async function Bq(e){return Lq({provider:e.model.provider,cfg:e.cfg,profileId:e.profileId,preferredProfile:e.preferredProfile,store:e.store,agentDir:e.agentDir})}function Vq(e,t){let n=Mn(e.apiKey);if(n)return n;throw Error(`No API key resolved for provider "${t}" (auth mode: ${e.mode}).`)}const Hq=/^[A-Z_][A-Z0-9_]*$/;function Uq(e){let t=e.trim();return/^\$\{([A-Z0-9_]+)\}$/.exec(t)?.[1]??t}function Wq(e,t=process.env){let n=Rq(e,t);if(!n)return;let r=/^(?:env: |shell env: )([A-Z0-9_]+)$/.exec(n.source);return r?r[1]:void 0}function Gq(e=process.env){return Fq(e)??`AWS_PROFILE`}function Kq(e){let{headers:t}=e;if(!t)return{headers:t,mutated:!1};let n=!1,r={};for(let[i,a]of Object.entries(t)){let t=jn({value:a,defaults:e.secretDefaults}).ref;if(!t||!t.id.trim()){r[i]=a;continue}n=!0,r[i]=t.source===`env`?UW(t.id):HW(t.source)}return n?{headers:r,mutated:!0}:{headers:t,mutated:!1}}function qq(e){let t=e?.trim();if(!(!t||GW(t)))return t}function Jq(e,t=process.env){if(e){if(e.type===`api_key`){let n=Dn(e.keyRef);if(n&&n.id.trim()){if(n.source===`env`){let e=n.id.trim();return{apiKey:e,source:`env-ref`,discoveryApiKey:qq(t[e])}}return{apiKey:VW(n.source),source:`non-env-ref`}}return e.key?.trim()?{apiKey:e.key,source:`plaintext`,discoveryApiKey:qq(e.key)}:void 0}if(e.type===`token`){let n=Dn(e.tokenRef);if(n&&n.id.trim()){if(n.source===`env`){let e=n.id.trim();return{apiKey:e,source:`env-ref`,discoveryApiKey:qq(t[e])}}return{apiKey:VW(n.source),source:`non-env-ref`}}if(e.token?.trim())return{apiKey:e.token,source:`plaintext`,discoveryApiKey:qq(e.token)}}}}function Yq(e){let t=qr(e.store,e.provider);for(let n of t){let t=Jq(e.store.profiles[n],e.env);if(t)return t}}function Xq(e){return e===`gemini-3-pro`?`gemini-3-pro-preview`:e===`gemini-3-flash`?`gemini-3-flash-preview`:e===`gemini-3.1-pro`?`gemini-3.1-pro-preview`:e===`gemini-3.1-flash-lite`?`gemini-3.1-flash-lite-preview`:e===`gemini-3.1-flash`||e===`gemini-3.1-flash-preview`?`gemini-3-flash-preview`:e}const Zq=new Set([`gemini-3-pro`,`gemini-3.1-pro`,`gemini-3-1-pro`]);function Qq(e){return Zq.has(e)?`${e}-low`:e}function $q(e,t){let n=!1,r=e.models.map(e=>{let r=t(e.id);return r===e.id?e:(n=!0,{...e,id:r})});return n?{...e,models:r}:e}function eJ(e){return $q(e,Xq)}function tJ(e){return $q(e,Qq)}function nJ(e){let{providers:t}=e;if(!t)return t;let n=e.env??process.env,r=Wr(e.agentDir,{allowKeychainPrompt:!1}),i=!1,a={};for(let[o,s]of Object.entries(t)){let t=o.trim();if(!t){i=!0;continue}t!==o&&(i=!0);let c=s,l=Kq({headers:c.headers,secretDefaults:e.secretDefaults});l.mutated&&(i=!0,c={...c,headers:l.headers});let u=c.apiKey,d=jn({value:u,defaults:e.secretDefaults}).ref,f=Yq({provider:t,store:r,env:n});if(d&&d.id.trim()){let n=d.source===`env`?d.id.trim():VW(d.source);c.apiKey!==n&&(i=!0,c={...c,apiKey:n}),e.secretRefManagedProviders?.add(t)}else if(typeof u==`string`){let n=Uq(u);n!==u&&(i=!0,c={...c,apiKey:n}),GW(n)&&e.secretRefManagedProviders?.add(t),f&&f.source!==`plaintext`&&n===f.apiKey&&e.secretRefManagedProviders?.add(t)}let p=c.apiKey;if(typeof p==`string`&&p.trim()&&!Hq.test(p.trim())){let r=Wq(t,n);r&&n[r]===p&&(i=!0,c={...c,apiKey:r},e.secretRefManagedProviders?.add(t))}let m=Array.isArray(c.models)&&c.models.length>0,h=!!(Nn(c.apiKey)||c.apiKey);if(m&&!h)if((c.auth??(t===`amazon-bedrock`?`aws-sdk`:void 0))===`aws-sdk`){let e=Gq(n);i=!0,c={...c,apiKey:e}}else{let r=Wq(t,n)??f?.apiKey;r?.trim()&&(f&&f.source!==`plaintext`&&e.secretRefManagedProviders?.add(t),i=!0,c={...c,apiKey:r})}if(t===`google`){let e=eJ(c);e!==c&&(i=!0),c=e}if(t===`google-antigravity`){let e=tJ(c);e!==c&&(i=!0),c=e}let g=a[t];if(g){i=!0,a[t]={...g,...c,models:c.models??g.models};continue}a[t]=c}return i?a:t}function rJ(e,t){return async n=>{let{apiKey:r,discoveryApiKey:i}=n.resolveProviderApiKey(e);if(r)return{[e]:await t({apiKey:r,discoveryApiKey:i})}}}function iJ(e,t){return async n=>{if(qr(n.authStore,e).length!==0)return{[e]:await t()}}}function aJ(e,t){if(t)for(let[n,r]of Object.entries(t))e[n]=r}const oJ=[rJ(`minimax`,async({apiKey:e})=>({...oq(),apiKey:e})),rJ(`moonshot`,async({apiKey:e})=>({...cq(),apiKey:e})),rJ(`kimi-coding`,async({apiKey:e})=>({...lq(),apiKey:e})),rJ(`synthetic`,async({apiKey:e})=>({...dq(),apiKey:e})),rJ(`venice`,async({apiKey:e})=>({...await bK(),apiKey:e})),rJ(`xiaomi`,async({apiKey:e})=>({...gq(),apiKey:e})),rJ(`vercel-ai-gateway`,async({apiKey:e})=>({...await CK(),apiKey:e})),rJ(`together`,async({apiKey:e})=>({..._q(),apiKey:e})),rJ(`huggingface`,async({apiKey:e,discoveryApiKey:t})=>({...await SK(t),apiKey:e})),rJ(`qianfan`,async({apiKey:e})=>({...bq(),apiKey:e})),rJ(`modelstudio`,async({apiKey:e})=>({...xq(),apiKey:e})),rJ(`openrouter`,async({apiKey:e})=>({...vq(),apiKey:e})),rJ(`nvidia`,async({apiKey:e})=>({...Sq(),apiKey:e})),rJ(`kilocode`,async({apiKey:e})=>({...await TK(),apiKey:e}))],sJ=[async e=>{let t=Wq(`minimax-portal`,e.env),n=qr(e.authStore,`minimax-portal`).length>0;if(!(!t&&!n))return{"minimax-portal":{...sq(),apiKey:`minimax-oauth`}}},iJ(`qwen-portal`,async()=>({...uq(),apiKey:`qwen-oauth`})),iJ(`openai-codex`,async()=>yq())],cJ=[async e=>{let t=e.resolveProviderApiKey(`volcengine`).apiKey;if(t)return{volcengine:{...fq(),apiKey:t},"volcengine-plan":{...pq(),apiKey:t}}},async e=>{let t=e.resolveProviderApiKey(`byteplus`).apiKey;if(t)return{byteplus:{...mq(),apiKey:t},"byteplus-plan":{...hq(),apiKey:t}}}];async function lJ(e){let t=qr(e.authStore,`cloudflare-ai-gateway`);for(let n of t){let t=e.authStore.profiles[n];if(t?.type!==`api_key`)continue;let r=t.metadata?.accountId?.trim(),i=t.metadata?.gatewayId?.trim();if(!r||!i)continue;let a=OW({accountId:r,gatewayId:i});if(!a)continue;let o=Wq(`cloudflare-ai-gateway`,e.env),s=Jq(t,e.env)?.apiKey,c=o??s??``;if(c)return{"cloudflare-ai-gateway":{baseUrl:a,api:`anthropic-messages`,apiKey:c,models:[DW()]}}}}async function uJ(e){let t=e.resolveProviderApiKey(`ollama`).apiKey,n=e.explicitProviders?.ollama;if(Array.isArray(n?.models)&&n.models.length>0&&n)return{ollama:{...n,baseUrl:_G(n.baseUrl),api:n.api??`ollama`,apiKey:t??n.apiKey??`ollama-local`}};let r=n?.baseUrl,i=await xK(r,{quiet:!t&&!n});if(!(i.models.length===0&&!t&&!n?.apiKey))return{ollama:{...i,apiKey:t??n?.apiKey??`ollama-local`}}}async function dJ(e){if(e.explicitProviders?.vllm)return;let{apiKey:t,discoveryApiKey:n}=e.resolveProviderApiKey(`vllm`);if(t)return{vllm:{...await wK({apiKey:n}),apiKey:t}}}async function fJ(e){let t={},n=e.env??process.env,r=Wr(e.agentDir,{allowKeychainPrompt:!1}),i=e=>{let t=Wq(e,n);if(t)return{apiKey:t,discoveryApiKey:qq(n[t])};let i=Yq({provider:e,store:r,env:n});return{apiKey:i?.apiKey,discoveryApiKey:i?.discoveryApiKey}},a={...e,authStore:r,env:n,resolveProviderApiKey:i};for(let e of oJ)aJ(t,await e(a));for(let e of sJ)aJ(t,await e(a));for(let e of cJ)aJ(t,await e(a));if(aJ(t,await lJ(a)),aJ(t,await uJ(a)),aJ(t,await dJ(a)),!t[`github-copilot`]){let r=await pJ({agentDir:e.agentDir,env:n});r&&(t[`github-copilot`]=r)}let o=await mJ({agentDir:e.agentDir,config:e.config,env:n});if(o){let e=t[`amazon-bedrock`];t[`amazon-bedrock`]=e?{...o,...e,models:Array.isArray(e.models)&&e.models.length>0?e.models:o.models}:o}return t}async function pJ(e){let t=e.env??process.env,n=Wr(e.agentDir,{allowKeychainPrompt:!1}),r=qr(n,`github-copilot`).length>0,i=(t.COPILOT_GITHUB_TOKEN??t.GH_TOKEN??t.GITHUB_TOKEN??``).trim();if(!r&&!i)return null;let a=i;if(!a&&r){let e=qr(n,`github-copilot`)[0],r=e?n.profiles[e]:void 0;if(r&&r.type===`token`&&(a=r.token?.trim()??``,!a)){let e=Dn(r.tokenRef);e?.source===`env`&&e.id.trim()&&(a=(t[e.id]??process.env[e.id]??``).trim())}}let o=ct;if(a)try{o=(await st({githubToken:a,env:t})).baseUrl}catch{o=ct}return{baseUrl:o,models:[]}}async function mJ(e){let t=e.env??process.env,n=e.config?.models?.bedrockDiscovery,r=n?.enabled,i=Fq(t)!==void 0;if(r===!1||r!==!0&&!i)return null;let a=n?.region??t.AWS_REGION??t.AWS_DEFAULT_REGION??`us-east-1`,o=await TW({region:a,config:n});return o.length===0?null:{baseUrl:`https://bedrock-runtime.${a}.amazonaws.com`,api:`bedrock-converse-stream`,auth:`aws-sdk`,models:o}}const hJ=C(`model-selection`),gJ={"opus-4.6":`claude-opus-4-6`,"opus-4.5":`claude-opus-4-5`,"sonnet-4.6":`claude-sonnet-4-6`,"sonnet-4.5":`claude-sonnet-4-5`},_J=/claude-(?:opus|sonnet)-4(?:\.|-)6(?:$|[-.])/i;function vJ(e){return e.trim().toLowerCase()}function yJ(e,t){return`${e}/${t}`}function $(e){let t=e.trim().toLowerCase();return t===`z.ai`||t===`z-ai`?`zai`:t===`opencode-zen`?`opencode`:t===`opencode-go-auth`?`opencode-go`:t===`qwen`?`qwen-portal`:t===`kimi-code`?`kimi-coding`:t===`bedrock`||t===`aws-bedrock`?`amazon-bedrock`:t===`bytedance`||t===`doubao`?`volcengine`:t}function bJ(e){let t=$(e);return t===`volcengine-plan`?`volcengine`:t===`byteplus-plan`?`byteplus`:t}function xJ(e,t){if(!e)return;let n=$(t);for(let[t,r]of Object.entries(e))if($(t)===n)return r}function SJ(e,t){let n=$(e);if(n===`claude-cli`||n===`codex-cli`)return!0;let r=t?.agents?.defaults?.cliBackends??{};return Object.keys(r).some(e=>$(e)===n)}function CJ(e){let t=e.trim();return t&&(gJ[t.toLowerCase()]??t)}function wJ(e,t){if(e===`anthropic`)return CJ(t);if(e===`vercel-ai-gateway`&&!t.includes(`/`)){let e=CJ(t);if(e.startsWith(`claude-`))return`anthropic/${e}`}return e===`google`?Xq(t):e===`openrouter`&&!t.includes(`/`)?`openrouter/${t}`:t}function TJ(e,t){let n=$(e);return{provider:n,model:wJ(n,t.trim())}}function EJ(e,t){let n=e.trim();if(!n)return null;let r=n.indexOf(`/`);if(r===-1)return TJ(t,n);let i=n.slice(0,r).trim(),a=n.slice(r+1).trim();return!i||!a?null:TJ(i,a)}function DJ(e,t){let n=EJ(e,t);return n?yJ(n.provider,n.model):null}function OJ(e){let t=Object.keys(e.cfg?.agents?.defaults?.models??{});if(t.length===0)return null;let n=new Set;for(let r of t){let t=DJ(String(r??``),e.defaultProvider);t&&n.add(t)}return n.size>0?n:null}function kJ(e){let t=new Map,n=new Map,r=e.cfg.agents?.defaults?.models??{};for(let[i,a]of Object.entries(r)){let r=EJ(String(i??``),e.defaultProvider);if(!r)continue;let o=String(a?.alias??``).trim();if(!o)continue;let s=vJ(o);t.set(s,{alias:o,ref:r});let c=yJ(r.provider,r.model),l=n.get(c)??[];l.push(o),n.set(c,l)}return{byAlias:t,byKey:n}}function AJ(e){let{model:t}=yn(e.raw);if(!t)return null;if(!t.includes(`/`)){let n=vJ(t),r=e.aliasIndex?.byAlias.get(n);if(r)return{ref:r.ref,alias:r.alias}}let n=EJ(t,e.defaultProvider);return n?{ref:n}:null}function jJ(e){let t=te(e.cfg.agents?.defaults?.model)??``;if(t){let n=t.trim(),r=kJ({cfg:e.cfg,defaultProvider:e.defaultProvider});if(!n.includes(`/`)){let e=vJ(n),t=r.byAlias.get(e);if(t)return t.ref;let i=we(n);return hJ.warn(`Model "${i}" specified without provider. Falling back to "anthropic/${i}". Please use "anthropic/${i}" in your config.`),{provider:`anthropic`,model:n}}let i=AJ({raw:n,defaultProvider:e.defaultProvider,aliasIndex:r});if(i)return i.ref;let a=we(n),o=we(`${e.defaultProvider}/${e.defaultModel}`);hJ.warn(`Model "${a}" could not be resolved. Falling back to default "${o}".`)}let n=e.cfg.models?.providers;if(n&&typeof n==`object`&&!n[e.defaultProvider]){let e=Object.entries(n).find(([,e])=>e&&Array.isArray(e.models)&&e.models.length>0&&e.models[0]?.id);if(e){let[t,n]=e;return{provider:t,model:n.models[0].id}}}return{provider:e.defaultProvider,model:e.defaultModel}}function MJ(e){let t=e.agentId?a(e.cfg,e.agentId):void 0;return jJ({cfg:t&&t.length>0?{...e.cfg,agents:{...e.cfg.agents,defaults:{...e.cfg.agents?.defaults,model:{...y(e.cfg.agents?.defaults?.model),primary:t}}}}:e.cfg,defaultProvider:gn,defaultModel:_n})}function NJ(e){let t=r(e.cfg,e.agentId);return RJ(t?.subagents?.model)??RJ(e.cfg.agents?.defaults?.subagents?.model)??RJ(t?.model)}function PJ(e){let t=MJ({cfg:e.cfg,agentId:e.agentId});return RJ(e.modelOverride)??NJ({cfg:e.cfg,agentId:e.agentId})??RJ(te(e.cfg.agents?.defaults?.model))??`${t.provider}/${t.model}`}function FJ(e){let t=(()=>{let t=e.cfg.agents?.defaults?.models??{};return Object.keys(t)})(),n=t.length===0,r=e.defaultModel?.trim(),i=r&&e.defaultProvider?EJ(r,e.defaultProvider):null,a=i?yJ(i.provider,i.model):void 0,o=new Set(e.catalog.map(e=>yJ(e.provider,e.id)));if(n)return a&&o.add(a),{allowAny:!0,allowedCatalog:e.catalog,allowedKeys:o};let s=new Set,c=new Map;for(let n of t){let t=EJ(String(n),e.defaultProvider);if(!t)continue;let r=yJ(t.provider,t.model);s.add(r),!o.has(r)&&!c.has(r)&&c.set(r,{id:t.model,name:t.model,provider:t.provider})}a&&s.add(a);let l=[...e.catalog.filter(e=>s.has(yJ(e.provider,e.id))),...c.values()];return l.length===0&&s.size===0?(a&&o.add(a),{allowAny:!0,allowedCatalog:e.catalog,allowedKeys:o}):{allowAny:!1,allowedCatalog:l,allowedKeys:s}}function IJ(e){let t=$(e.provider),n=e.model.toLowerCase(),r=e.cfg.agents?.defaults?.models?.[yJ(e.provider,e.model)]?.params?.thinking;return r===`off`||r===`minimal`||r===`low`||r===`medium`||r===`high`||r===`xhigh`||r===`adaptive`?r:e.cfg.agents?.defaults?.thinkingDefault||((t===`anthropic`||t===`amazon-bedrock`||n.includes(`anthropic/`)||n.includes(`.anthropic.`))&&_J.test(n)?`adaptive`:e.catalog?.find(t=>t.provider===e.provider&&t.id===e.model)?.reasoning?`low`:`off`)}function LJ(e){let t=yJ(e.provider,e.model);return e.catalog?.find(n=>n.provider===e.provider&&n.id===e.model||n.provider===t&&n.id===e.model)?.reasoning===!0?`on`:`off`}function RJ(e){if(typeof e==`string`)return e.trim()||void 0;if(!e||typeof e!=`object`)return;let t=e.primary;if(typeof t==`string`&&t.trim())return t.trim()}export{jU as $,Vv as $a,Qw as $i,kI as $n,Bl as $o,FN as $r,jn as $s,yB as $t,YW as A,Qb as Aa,FE as Ai,mR as An,Ku as Ao,rF as Ar,Wa as As,TV as At,bW as B,hb as Ba,JT as Bi,JL as Bn,wu as Bo,OP as Br,Wr as Bs,fH as Bt,zq as C,Px as Ca,tk as Ci,wR as Cn,vf as Co,_F as Cr,es as Cs,dH as Ct,_G as D,Cx as Da,wD as Di,CR as Dn,Ad as Do,sF as Dr,mo as Ds,DH as Dt,HG as E,bx as Ea,ED as Ei,DR as En,Bd as Eo,iF as Er,fo as Es,sH as Et,wW as F,$b as Fa,yE as Fi,rR as Fn,Pu as Fo,IP as Fr,mi as Fs,pH as Ft,qU as G,ly as Ga,AT as Gi,LL as Gn,bu as Go,iP as Gr,Vn as Gs,GB as Gt,lW as H,Wy as Ha,IT as Hi,HL as Hn,Du as Ho,wP as Hr,Sr as Hs,cV as Ht,SW as I,Ub as Ia,bE as Ii,aR as In,Nu as Io,zP as Ir,ei as Is,cH as It,NU as J,Zv as Ja,ST as Ji,WI as Jn,Yl as Jo,AN as Jr,Mn as Js,AB as Jt,zU as K,sy as Ka,DT as Ki,IL as Kn,du as Ko,tP as Kr,Ln as Ks,WB as Kt,dW as L,Vb as La,GT as Li,eR as Ln,Lu as Lo,FP as Lr,Kr as Ls,$V as Lt,qW as M,Kb as Ma,VE as Mi,uR as Mn,Yu as Mo,ZP as Mr,Ri as Ms,MH as Mt,GW as N,Jb as Na,uE as Ni,dR as Nn,Xu as No,WP as Nr,Ni as Ns,jH as Nt,hG as O,ux as Oa,ZE as Oi,SR as On,od as Oo,oF as Or,po as Os,bH as Ot,WW as P,qb as Pa,fE as Pi,oR as Pn,Ou as Po,VP as Pr,Mi as Ps,wV as Pt,AU as Q,zv as Qa,rT as Qi,LI as Qn,Xl as Qo,VN as Qr,P as Qs,bB as Qt,uW as R,_b as Ra,UT as Ri,ZL as Rn,Iu as Ro,LP as Rr,qr as Rs,SH as Rt,Rq as S,Mx as Sa,Rk as Si,PR as Sn,hf as So,uF as Sr,ps as Ss,eH as St,BG as T,Sx as Ta,_O as Ti,AR as Tn,sf as To,mF as Tr,lo as Ts,uH as Tt,QU as U,Uy as Ua,kT as Ui,VL as Un,Tu as Uo,TP as Ur,cr as Us,$B as Ut,fW as V,qy as Va,WT as Vi,qL as Vn,Eu as Vo,CP as Vr,Tr as Vs,uV as Vt,$U as W,Ky as Wa,jT as Wi,UL as Wn,Cu as Wo,aP as Wr,Yn as Ws,QB as Wt,TU as X,Lv as Xa,hT as Xi,HI as Xn,tu as Xo,LN as Xr,Dn as Xs,CB as Xt,wU as Y,Iv as Ya,xT as Yi,qI as Yn,Ql as Yo,RN as Yr,xn as Ys,EB as Yt,SU as Z,Bv as Za,bT as Zi,PI as Zn,$l as Zo,MN as Zr,An as Zs,TB as Zt,nJ as _,Jx as _a,Vk as _i,KR as _n,Xf as _o,AF as _r,mc as _s,RH as _t,SJ as a,zC as aa,ON as ai,Yz as an,Lh as ao,mI as ar,pl as as,mU as at,Vq as b,Ax as ba,Hk as bi,zR as bn,cf as bo,gF as br,ss as bs,gV as bt,$ as c,BC as ca,_j as ci,fB as cn,Eh as co,eI as cr,Kc as cs,dU as ct,MJ as d,dS as da,dA as di,$R as dn,Fh as do,KF as dr,Pc as ds,QH as dt,ww as ea,yn as ec,NN as ei,_B as en,Hv as eo,II as er,Hl as es,bU as et,AJ as f,_S as fa,hA as fi,YR as fn,Ih as fo,GF as fr,Nc as fs,ZH as ft,Xq as g,tS as ga,Yk as gi,JR as gn,Qf as go,kF as gr,$s as gs,JH as gt,IJ as h,U as ha,$k as hi,qR as hn,$f as ho,CF as hr,Qs as hs,UH as ht,xJ as i,YC as ia,kN as ii,pB as in,I_ as io,gI as ir,_l as is,xU as it,XW as j,Zb as ja,LE as ji,pR as jn,Hu as jo,JP as jr,Yi as js,bV as jt,JW as k,dx as ka,HE as ki,hR as kn,cd as ko,dF as kr,uo as ks,EH as kt,EJ as l,EC as la,hj as li,rz as ln,Nh as lo,tI as lr,tl as ls,lU as lt,PJ as m,rS as ma,pA as mi,XR as mn,Jm as mo,jF as mr,wc as ms,HH as mt,OJ as n,bw as na,_n as nc,BN as ni,Zz as nn,Pv as no,wI as nr,Sl as ns,DU as nt,yJ as o,RC as oa,Hj as oi,mB as on,Rh as oo,oI as or,nl as os,pU as ot,LJ as p,uS as pa,yA as pi,ZR as pn,Sh as po,WF as pr,Mc as ps,YH as pt,LU as q,Qv as qa,iT as qi,vL as qn,nu as qo,KN as qr,Nn as qs,HB as qt,kJ as r,yw as ra,gn as rc,DN as ri,Qz as rn,Uv as ro,bI as rr,Cl as rs,kU as rt,TJ as s,IC as sa,Aj as si,tB as sn,Bh as so,rI as sr,el as ss,fU as st,FJ as t,gw as ta,vn as tc,zN as ti,gB as tn,ev as to,FI as tr,xl as ts,OU as tt,jJ as u,DC as ua,mA as ui,nz as un,Mh as uo,qF as ur,kc as us,uU as ut,fJ as v,Gx as va,Wk as vi,UR as vn,ep as vo,aF as vr,tc as vs,zH as vt,Aq as w,Nx as wa,ek as wi,OR as wn,yf as wo,lF as wr,So as ws,hV as wt,Lq as x,kx as xa,Jk as xi,RR as xn,mf as xo,pF as xr,fs as xs,AH as xt,Bq as y,Ox as ya,Bk as yi,GR as yn,Gf as yo,hF as yr,gs as ys,NH as yt,sW as z,gb as za,qT as zi,XL as zn,Fu as zo,RP as zr,Jr as zs,wH as zt};
62
+ //# sourceMappingURL=model-selection-B5JsBS9D.js.map