silentlake 3.0.0

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 (4151) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +205 -0
  3. package/dist/APEv2Parser-BZv_dP9t.js +269 -0
  4. package/dist/APEv2Parser-CPzxFNBB.js +5 -0
  5. package/dist/AbstractID3Parser-mvDFcjYV.js +47 -0
  6. package/dist/AiffParser-BXQ9SRZk.js +145 -0
  7. package/dist/AsfParser-CmBDUlZE.js +631 -0
  8. package/dist/BasicParser-DhmXREDo.js +853 -0
  9. package/dist/DsdiffParser-CTKKGyZg.js +150 -0
  10. package/dist/DsfParser-Ds-YQe4Z.js +101 -0
  11. package/dist/FlacParser-B1XVPgXF.js +5 -0
  12. package/dist/FlacParser-DMPyL1y4.js +367 -0
  13. package/dist/ID3v1Parser-BICWWVDG.js +289 -0
  14. package/dist/ID3v2Parser-BmZHSUqs.js +650 -0
  15. package/dist/ID3v2Token-DeJf4tYQ.js +145 -0
  16. package/dist/MP4Parser-Cjf-Zs8T.js +1061 -0
  17. package/dist/MatroskaParser-DgBzBe8t.js +909 -0
  18. package/dist/MpegParser-D5swTpA1.js +744 -0
  19. package/dist/MusepackParser-D8EQXnpK.js +285 -0
  20. package/dist/OggParser-BcIYPHwP.js +390 -0
  21. package/dist/Util-D_zGsr97.js +170 -0
  22. package/dist/WavPackParser-hosU8gfo.js +166 -0
  23. package/dist/WaveParser-CA00FZrC.js +273 -0
  24. package/dist/abort-cutoff-CERmtgZI.js +56 -0
  25. package/dist/abort-cutoff.runtime-BuaoE5Si.js +61 -0
  26. package/dist/abort-signal-CsrBEr94.js +13 -0
  27. package/dist/account-helpers-D3c_eI7c.js +37 -0
  28. package/dist/account-helpers-ru3jdZSV.js +12 -0
  29. package/dist/account-id-DZnNZg8x.js +1 -0
  30. package/dist/account-id-ZCrgXl7Z.js +44 -0
  31. package/dist/account-lookup-nkoa-foB.js +10 -0
  32. package/dist/account-snapshot-fields-Cvq7803C.js +116 -0
  33. package/dist/account-summary-B5Xzvntm.js +36 -0
  34. package/dist/accounts-CYgFhv2o.js +105 -0
  35. package/dist/accounts-ChlyF7cx.js +112 -0
  36. package/dist/accounts-Fyrhtztr.js +212 -0
  37. package/dist/ack-reactions-CNVwfOBj.js +43 -0
  38. package/dist/acp-cli-BIcgXTaP.js +2033 -0
  39. package/dist/acp-runtime-BdLdT-QY.js +1 -0
  40. package/dist/actions.runtime-BBPvLwDK.js +236 -0
  41. package/dist/actions.runtime-MrkZQbUZ.js +217 -0
  42. package/dist/agent-CBOdzEvR.js +1 -0
  43. package/dist/agent-scope-BLhzf-o0.js +17 -0
  44. package/dist/agent-scope-DPP4Z_UU.js +193 -0
  45. package/dist/agents-DGJIvby1.js +323 -0
  46. package/dist/agents-DbUUarGq.js +855 -0
  47. package/dist/agents.config-C_lrnc9J.js +18 -0
  48. package/dist/agents.config-D1VqC78r.js +121 -0
  49. package/dist/allow-from-BPSBITdd.js +9 -0
  50. package/dist/allow-from-BwTLpvhp.js +20 -0
  51. package/dist/allow-from-C4iBpqFI.js +62 -0
  52. package/dist/allowlist-config-edit-CKbnMmwS.js +279 -0
  53. package/dist/allowlist-match-CYmPgg1K.js +63 -0
  54. package/dist/ansi-BEJF8NKS.js +54 -0
  55. package/dist/anthropic-vertex-provider-Dd5agCN9.js +60 -0
  56. package/dist/apply.runtime-BO_W7UsB.js +211 -0
  57. package/dist/apply.runtime-BeYLuuGy.js +370 -0
  58. package/dist/archive-Tr0wIUO-.js +532 -0
  59. package/dist/arg-split-Dtda0YDl.js +38 -0
  60. package/dist/artifacts-C_4LekPC.js +39 -0
  61. package/dist/audit-COaaGhfd.js +788 -0
  62. package/dist/audit-OWBlbPvC.js +54 -0
  63. package/dist/audit-channel.allow-from.runtime-B7BHNblL.js +17 -0
  64. package/dist/audit-channel.collect.runtime-BjAagjy5.js +521 -0
  65. package/dist/audit-channel.discord.runtime-BBY6S9lg.js +5 -0
  66. package/dist/audit-channel.telegram.runtime-SJnxOJH2.js +8 -0
  67. package/dist/audit-channel.zalouser.runtime-SGRWvHxT.js +5 -0
  68. package/dist/audit-extra.async-Brlm785b.js +817 -0
  69. package/dist/audit-fs-oDMUa5N_.js +375 -0
  70. package/dist/audit-membership-runtime-BV4yo8s2.js +261 -0
  71. package/dist/audit.deep.runtime-C4qycPyC.js +31 -0
  72. package/dist/audit.nondeep.runtime-BKadRetL.js +842 -0
  73. package/dist/audit.runtime-n3hTkevZ.js +74 -0
  74. package/dist/auth-O6LQFLHJ.js +416 -0
  75. package/dist/auth-choice-D-8Ti3vA.js +219 -0
  76. package/dist/auth-choice-DN87_4lW.js +610 -0
  77. package/dist/auth-choice-in4GYJhH.js +64 -0
  78. package/dist/auth-choice-legacy-Clyw2lVc.js +17 -0
  79. package/dist/auth-choice-options-Bu05kzZL.js +127 -0
  80. package/dist/auth-choice-prompt-BCN6pEXi.js +215 -0
  81. package/dist/auth-choice-prompt-CtrY5wqR.js +36 -0
  82. package/dist/auth-choice.apply-helpers-BibBSEl9.js +66 -0
  83. package/dist/auth-choice.plugin-providers.runtime-T3IBLR0k.js +219 -0
  84. package/dist/auth-health-BKOrx-5O.js +166 -0
  85. package/dist/auth-mode-policy-DywddkT-.js +18 -0
  86. package/dist/auth-profiles-CDiIWpd-.js +1047 -0
  87. package/dist/auth-profiles.runtime-SDKdG_z_.js +48 -0
  88. package/dist/avatar-policy-Ds9e6uHI.js +67 -0
  89. package/dist/backup-create-CwfGrmvZ.js +461 -0
  90. package/dist/banner-TF-M94dP.js +351 -0
  91. package/dist/base-session-key-Cf2rkwag.js +14 -0
  92. package/dist/bindings-BV4AtNSY.js +21 -0
  93. package/dist/bindings-kjwuC11Q.js +69 -0
  94. package/dist/bluebubbles-C1M3Geg0.js +87 -0
  95. package/dist/bluebubbles-CahJ717x.js +603 -0
  96. package/dist/bluebubbles-dEl4QpYz.js +37 -0
  97. package/dist/bonjour-discovery-C2oY96BG.js +376 -0
  98. package/dist/boolean-DKtCJu_W.js +29 -0
  99. package/dist/boolean-param-xAGXUSSN.js +13 -0
  100. package/dist/boundary-file-read-BP6VMpqH.js +106 -0
  101. package/dist/boundary-path-B3FFLYNx.js +557 -0
  102. package/dist/brave--q9r6diS.js +405 -0
  103. package/dist/brew-DSwWqzLd.js +44 -0
  104. package/dist/browser-cli-BLE-cZxz.js +1502 -0
  105. package/dist/build-info.json +5 -0
  106. package/dist/bundled/boot-md/HOOK.md +20 -0
  107. package/dist/bundled/boot-md/handler.js +381 -0
  108. package/dist/bundled/bootstrap-extra-files/HOOK.md +53 -0
  109. package/dist/bundled/bootstrap-extra-files/handler.js +56 -0
  110. package/dist/bundled/command-logger/HOOK.md +122 -0
  111. package/dist/bundled/command-logger/handler.js +62 -0
  112. package/dist/bundled/session-memory/HOOK.md +109 -0
  113. package/dist/bundled/session-memory/handler.js +401 -0
  114. package/dist/call-6gyz3vtP.js +44 -0
  115. package/dist/call-I0SGvyU7.js +639 -0
  116. package/dist/canvas-host/a2ui/.bundle.hash +1 -0
  117. package/dist/canvas-host/a2ui/a2ui.bundle.js +1 -0
  118. package/dist/canvas-host/a2ui/index.html +307 -0
  119. package/dist/catalog-BwAYUfL7.js +240 -0
  120. package/dist/channel-5NZHO7iU.js +4945 -0
  121. package/dist/channel-BJK4S8ZH.js +1006 -0
  122. package/dist/channel-CNodzoey.js +321 -0
  123. package/dist/channel-UyhyMj09.js +1077 -0
  124. package/dist/channel-account-context-DXI4NQFD.js +104 -0
  125. package/dist/channel-actions-DU2CR3xW.js +37 -0
  126. package/dist/channel-activity-B8aReQoE.js +35 -0
  127. package/dist/channel-config-3Uv6ve2_.js +115 -0
  128. package/dist/channel-config-helpers-ChUYvBB0.js +377 -0
  129. package/dist/channel-config-schema-DEVsCZpj.js +1 -0
  130. package/dist/channel-feedback-G6zh8efr.js +245 -0
  131. package/dist/channel-inbound-3L_8TOZ0.js +395 -0
  132. package/dist/channel-lifecycle-CpU1dRbh.js +354 -0
  133. package/dist/channel-options-DJaIP4Dv.js +38 -0
  134. package/dist/channel-pairing-rNA4qQPY.js +66 -0
  135. package/dist/channel-pb3INhpi.js +1284 -0
  136. package/dist/channel-plugin-common-BhTxCE5t.js +1 -0
  137. package/dist/channel-plugin-ids-CFeS3qir.js +26 -0
  138. package/dist/channel-plugin-resolution-BSK2VmVJ.js +112 -0
  139. package/dist/channel-policy-C4GKHvhz.js +1 -0
  140. package/dist/channel-reply-pipeline-CPTuaW8n.js +15 -0
  141. package/dist/channel-send-result-By8EpCPw.js +40 -0
  142. package/dist/channel-setup-BiFBGGLd.js +49 -0
  143. package/dist/channel-shared-B7nVL6s_.js +308 -0
  144. package/dist/channel-summary-BDcfGPTZ.js +137 -0
  145. package/dist/channel-summary-rf4JbM-W.js +41 -0
  146. package/dist/channel-targets-DfnKGXez.js +87 -0
  147. package/dist/channel-xTzNVpmF.js +1602 -0
  148. package/dist/channel.runtime-BgaUUB7d.js +268 -0
  149. package/dist/channel.runtime-C3f_klCw.js +324 -0
  150. package/dist/channel.runtime-CdJxCNlJ.js +512 -0
  151. package/dist/channel.runtime-CzzQWPgu.js +35 -0
  152. package/dist/channel.runtime-PVCKVe5x.js +288 -0
  153. package/dist/channel.runtime-jBXnZL1S.js +230 -0
  154. package/dist/channels-CRtKc7T_.js +1393 -0
  155. package/dist/channels-XmRcwHO_.js +408 -0
  156. package/dist/channels-cli-BgTInHdf.js +412 -0
  157. package/dist/channels-status-issues-C_U44M8Y.js +16 -0
  158. package/dist/chat-type-C-n03mQY.js +10 -0
  159. package/dist/clack-prompter-DuzDnaLi.js +112 -0
  160. package/dist/clawbot-cli-lS6Ntjly.js +218 -0
  161. package/dist/cli/daemon-cli.js +9 -0
  162. package/dist/cli-DBYk4h7a.js +254 -0
  163. package/dist/cli-name-Daok7A7-.js +25 -0
  164. package/dist/cli-runtime-aAVwbEYy.js +7 -0
  165. package/dist/cli-startup-metadata.json +26 -0
  166. package/dist/cli-utils-Np4NAAtt.js +39 -0
  167. package/dist/command-format-CjE6bLiz.js +21 -0
  168. package/dist/command-format-D7pz5AcU.js +2 -0
  169. package/dist/command-gating-BQXGSqc9.js +40 -0
  170. package/dist/command-options-5coRiipK.js +25 -0
  171. package/dist/command-poll-backoff-CpkSns-6.js +56 -0
  172. package/dist/command-poll-backoff.runtime-YT6EGcLN.js +7 -0
  173. package/dist/command-registry-BYuNrgu_.js +14 -0
  174. package/dist/command-registry-Dkr1-w1Q.js +242 -0
  175. package/dist/command-secret-gateway-u-EjduIr.js +211 -0
  176. package/dist/command-secret-targets-COcwhn-D.js +88 -0
  177. package/dist/command-secret-targets-CQJT3viO.js +3 -0
  178. package/dist/commands-Bb9xUwz9.js +42 -0
  179. package/dist/commands-core-CD6RD8UX.js +4923 -0
  180. package/dist/commands-core.runtime-DhRG5rok.js +232 -0
  181. package/dist/commands-registry-ChCep1KJ.js +295 -0
  182. package/dist/commands-registry.data-XyUTELK9.js +904 -0
  183. package/dist/commands-registry.runtime-m5WTxFtv.js +25 -0
  184. package/dist/commands-status.runtime-DZwdZgLZ.js +211 -0
  185. package/dist/commands.runtime-BbpkbBbI.js +232 -0
  186. package/dist/common-CUBlLRXB.js +457 -0
  187. package/dist/compact.runtime-DwG4Ix3B.js +216 -0
  188. package/dist/completion-cli-CYjSNenV.js +17 -0
  189. package/dist/completion-cli-CuQ2VNX5.js +445 -0
  190. package/dist/config-6sZwvXJD.js +88 -0
  191. package/dist/config-C-Ef7QhH.js +23 -0
  192. package/dist/config-DdDLrP_v.js +273 -0
  193. package/dist/config-Dgkla4O3.js +38 -0
  194. package/dist/config-cli-BV16bUmI.js +945 -0
  195. package/dist/config-guard-BcYEe-kl.js +126 -0
  196. package/dist/config-helpers-3u5wfLBu.js +117 -0
  197. package/dist/config-presence-BmUF_5K9.js +79 -0
  198. package/dist/config-regex-CvZFnWkO.js +39 -0
  199. package/dist/config-runtime-CstET7fq.js +142 -0
  200. package/dist/config-schema-5YkIW1xw.js +270 -0
  201. package/dist/config-schema-B1UGMwZ8.js +31 -0
  202. package/dist/config-schema-DzlnsY3D.js +33 -0
  203. package/dist/config-state-CE0CGjey.js +288 -0
  204. package/dist/config-validation-BEVsnUBu.js +272 -0
  205. package/dist/config-value-DgJrpclm.js +25 -0
  206. package/dist/configure-CRx5OThC.js +1126 -0
  207. package/dist/configure-D4Lh7bhs.js +344 -0
  208. package/dist/connection-auth-CB_IINnP.js +30 -0
  209. package/dist/constants-C_Scc680.js +71 -0
  210. package/dist/control-ui/apple-touch-icon.png +0 -0
  211. package/dist/control-ui/assets/index-BS0un8Wb.js +18 -0
  212. package/dist/control-ui/assets/index-DkMftoEy.css +1 -0
  213. package/dist/control-ui/favicon-32.png +0 -0
  214. package/dist/control-ui/favicon.ico +0 -0
  215. package/dist/control-ui/favicon.svg +22 -0
  216. package/dist/control-ui/index.html +17 -0
  217. package/dist/control-ui-assets-DjqeIg6A.js +232 -0
  218. package/dist/control-ui-shared-DP000Pxd.js +29 -0
  219. package/dist/conversation-runtime-zmG5YBsE.js +1458 -0
  220. package/dist/core-BV7ewUK4.js +187 -0
  221. package/dist/core-command-descriptors-CuKGKQIe.js +96 -0
  222. package/dist/credentials-BPwBlm1X.js +265 -0
  223. package/dist/cron-cli-CQlFbxlu.js +579 -0
  224. package/dist/daemon-cli-COhDevTB.js +354 -0
  225. package/dist/daemon-install-Ma4HdDtf.js +134 -0
  226. package/dist/daemon-install-plan.shared-cFfBUeV2.js +222 -0
  227. package/dist/daemon-runtime-CbClrCwc.js +12 -0
  228. package/dist/dangerous-config-flags-BJtLWIk7.js +15 -0
  229. package/dist/dangerous-name-matching-DZa_t0RM.js +44 -0
  230. package/dist/dangerous-tools-yGPDFTHh.js +27 -0
  231. package/dist/date-time-DCAyaBop.js +118 -0
  232. package/dist/dedupe-Cgnk5BbX.js +55 -0
  233. package/dist/defaults-CEdZhIIb.js +6 -0
  234. package/dist/delegate-DTiRmxH5.js +43 -0
  235. package/dist/deliver-BUIGBDbK.js +212 -0
  236. package/dist/deliver-runtime-BY7Zrac7.js +211 -0
  237. package/dist/delivery-queue-B19wDCjT.js +3 -0
  238. package/dist/delivery-queue-DrrqB4Hi.js +299 -0
  239. package/dist/device-auth-GEXe9vqR.js +15 -0
  240. package/dist/device-bootstrap-CwwokLEY.js +96 -0
  241. package/dist/device-bootstrap-Dbhe6oe8.js +1 -0
  242. package/dist/device-metadata-normalization-BDSQ_eA7.js +21 -0
  243. package/dist/device-pairing-CeI55dBv.js +560 -0
  244. package/dist/devices-cli-BXm0dkB2.js +366 -0
  245. package/dist/diagnostic-DBAi0Q5B.js +310 -0
  246. package/dist/diagnostic-events-ktCoG8Br.js +48 -0
  247. package/dist/diagnostics-QM3vI6rj.js +14 -0
  248. package/dist/diagnostics-XVyUA90d.js +33 -0
  249. package/dist/directive-handling.fast-lane-C7se5K_I.js +273 -0
  250. package/dist/directive-handling.impl-DMqj3m0-.js +638 -0
  251. package/dist/directive-handling.impl-aong_bNF.js +214 -0
  252. package/dist/directive-handling.levels-8vnMeuGX.js +2 -0
  253. package/dist/directive-handling.levels-CoruY1AA.js +13 -0
  254. package/dist/directive-handling.persist.runtime-ZWDdE5tG.js +170 -0
  255. package/dist/directive-handling.shared-B0RjHp7h.js +147 -0
  256. package/dist/directory-cli-I6eodbBS.js +437 -0
  257. package/dist/directory-config-helpers-CURJ8mj7.js +129 -0
  258. package/dist/directory-runtime-DhC8QkMq.js +19 -0
  259. package/dist/directory.static-B4VBitVO.js +44 -0
  260. package/dist/discord-Cu5CoXrA.js +214 -0
  261. package/dist/discord-core-5tkl-BzP.js +1 -0
  262. package/dist/discord-dOQ4uo2e.js +635 -0
  263. package/dist/dm-policy-shared-6bCJzHOS.js +188 -0
  264. package/dist/dns-cli-Dr0_Afcp.js +223 -0
  265. package/dist/docker-COe8Snwj.js +1254 -0
  266. package/dist/docs-cli-BkY5rqBi.js +176 -0
  267. package/dist/doctor-completion-CU7jR9vY.js +90 -0
  268. package/dist/doctor-config-preflight-Bj70HRt3.js +150 -0
  269. package/dist/doctor-config-preflight-C5h-tgtM.js +40 -0
  270. package/dist/doctor-state-migrations-CW1v5V4y.js +212 -0
  271. package/dist/doctor-state-migrations-ElD0NFmv.js +732 -0
  272. package/dist/entry-status-B2OWAf0s.js +172 -0
  273. package/dist/entry.js +219 -0
  274. package/dist/env-BP70DGuy.js +30 -0
  275. package/dist/env-overrides-JneV60sd.js +434 -0
  276. package/dist/env-overrides.runtime-DLrwions.js +18 -0
  277. package/dist/env-substitution-D6t_sLS_.js +136 -0
  278. package/dist/errors-BxyFnvP3.js +58 -0
  279. package/dist/exec-Dmex2w_d.js +310 -0
  280. package/dist/exec-approvals-BJhuySBz.js +386 -0
  281. package/dist/exec-approvals-allowlist-BboWC4n9.js +384 -0
  282. package/dist/exec-approvals-cli-rer7oVfh.js +427 -0
  283. package/dist/exec-safe-bin-runtime-policy-BL5_Z-KU.js +89 -0
  284. package/dist/exec-safety-CaaBy-Zw.js +24 -0
  285. package/dist/export-html/template.css +1060 -0
  286. package/dist/export-html/template.html +88 -0
  287. package/dist/export-html/template.js +1875 -0
  288. package/dist/extension-shared-5txN7IXK.js +74 -0
  289. package/dist/extensionAPI.js +218 -0
  290. package/dist/extensions/acpx/openclaw.plugin.json +120 -0
  291. package/dist/extensions/acpx/package.json +14 -0
  292. package/dist/extensions/acpx/skills/acp-router/SKILL.md +219 -0
  293. package/dist/extensions/amazon-bedrock/index.js +231 -0
  294. package/dist/extensions/amazon-bedrock/openclaw.plugin.json +11 -0
  295. package/dist/extensions/amazon-bedrock/package.json +12 -0
  296. package/dist/extensions/anthropic/index.js +330 -0
  297. package/dist/extensions/anthropic/openclaw.plugin.json +42 -0
  298. package/dist/extensions/anthropic/package.json +12 -0
  299. package/dist/extensions/bluebubbles/index.js +224 -0
  300. package/dist/extensions/bluebubbles/openclaw.plugin.json +11 -0
  301. package/dist/extensions/bluebubbles/package.json +51 -0
  302. package/dist/extensions/bluebubbles/setup-entry.js +289 -0
  303. package/dist/extensions/brave/index.js +23 -0
  304. package/dist/extensions/brave/openclaw.plugin.json +45 -0
  305. package/dist/extensions/brave/package.json +12 -0
  306. package/dist/extensions/byteplus/index.js +112 -0
  307. package/dist/extensions/byteplus/openclaw.plugin.json +32 -0
  308. package/dist/extensions/byteplus/package.json +12 -0
  309. package/dist/extensions/chutes/index.js +221 -0
  310. package/dist/extensions/chutes/openclaw.plugin.json +44 -0
  311. package/dist/extensions/chutes/package.json +12 -0
  312. package/dist/extensions/cloudflare-ai-gateway/index.js +218 -0
  313. package/dist/extensions/cloudflare-ai-gateway/openclaw.plugin.json +32 -0
  314. package/dist/extensions/cloudflare-ai-gateway/package.json +12 -0
  315. package/dist/extensions/copilot-proxy/index.js +125 -0
  316. package/dist/extensions/copilot-proxy/openclaw.plugin.json +23 -0
  317. package/dist/extensions/copilot-proxy/package.json +12 -0
  318. package/dist/extensions/device-pair/index.js +1040 -0
  319. package/dist/extensions/device-pair/openclaw.plugin.json +20 -0
  320. package/dist/extensions/diagnostics-otel/openclaw.plugin.json +8 -0
  321. package/dist/extensions/diagnostics-otel/package.json +27 -0
  322. package/dist/extensions/diffs/openclaw.plugin.json +216 -0
  323. package/dist/extensions/diffs/package.json +20 -0
  324. package/dist/extensions/diffs/skills/diffs/SKILL.md +22 -0
  325. package/dist/extensions/discord/index.js +215 -0
  326. package/dist/extensions/discord/openclaw.plugin.json +11 -0
  327. package/dist/extensions/discord/package.json +40 -0
  328. package/dist/extensions/discord/setup-entry.js +215 -0
  329. package/dist/extensions/elevenlabs/index.js +223 -0
  330. package/dist/extensions/elevenlabs/openclaw.plugin.json +8 -0
  331. package/dist/extensions/elevenlabs/package.json +12 -0
  332. package/dist/extensions/fal/index.js +112 -0
  333. package/dist/extensions/fal/openclaw.plugin.json +34 -0
  334. package/dist/extensions/fal/package.json +12 -0
  335. package/dist/extensions/feishu/index.js +227 -0
  336. package/dist/extensions/feishu/openclaw.plugin.json +14 -0
  337. package/dist/extensions/feishu/package.json +42 -0
  338. package/dist/extensions/feishu/setup-entry.js +112 -0
  339. package/dist/extensions/feishu/skills/feishu-doc/SKILL.md +211 -0
  340. package/dist/extensions/feishu/skills/feishu-doc/references/block-types.md +103 -0
  341. package/dist/extensions/feishu/skills/feishu-drive/SKILL.md +97 -0
  342. package/dist/extensions/feishu/skills/feishu-perm/SKILL.md +119 -0
  343. package/dist/extensions/feishu/skills/feishu-wiki/SKILL.md +111 -0
  344. package/dist/extensions/firecrawl/index.js +211 -0
  345. package/dist/extensions/firecrawl/openclaw.plugin.json +41 -0
  346. package/dist/extensions/firecrawl/package.json +12 -0
  347. package/dist/extensions/github-copilot/index.js +490 -0
  348. package/dist/extensions/github-copilot/openclaw.plugin.json +30 -0
  349. package/dist/extensions/github-copilot/package.json +12 -0
  350. package/dist/extensions/google/index.js +211 -0
  351. package/dist/extensions/google/openclaw.plugin.json +71 -0
  352. package/dist/extensions/google/package.json +12 -0
  353. package/dist/extensions/googlechat/openclaw.plugin.json +11 -0
  354. package/dist/extensions/googlechat/package.json +46 -0
  355. package/dist/extensions/huggingface/index.js +108 -0
  356. package/dist/extensions/huggingface/openclaw.plugin.json +33 -0
  357. package/dist/extensions/huggingface/package.json +12 -0
  358. package/dist/extensions/imessage/index.js +223 -0
  359. package/dist/extensions/imessage/openclaw.plugin.json +11 -0
  360. package/dist/extensions/imessage/package.json +26 -0
  361. package/dist/extensions/imessage/setup-entry.js +220 -0
  362. package/dist/extensions/irc/index.js +220 -0
  363. package/dist/extensions/irc/openclaw.plugin.json +11 -0
  364. package/dist/extensions/irc/package.json +25 -0
  365. package/dist/extensions/irc/setup-entry.js +222 -0
  366. package/dist/extensions/kilocode/index.js +282 -0
  367. package/dist/extensions/kilocode/openclaw.plugin.json +32 -0
  368. package/dist/extensions/kilocode/package.json +12 -0
  369. package/dist/extensions/kimi-coding/index.js +148 -0
  370. package/dist/extensions/kimi-coding/openclaw.plugin.json +37 -0
  371. package/dist/extensions/kimi-coding/package.json +12 -0
  372. package/dist/extensions/line/index.js +57 -0
  373. package/dist/extensions/line/openclaw.plugin.json +11 -0
  374. package/dist/extensions/line/package.json +39 -0
  375. package/dist/extensions/line/setup-entry.js +49 -0
  376. package/dist/extensions/llm-task/index.js +157 -0
  377. package/dist/extensions/llm-task/openclaw.plugin.json +33 -0
  378. package/dist/extensions/llm-task/package.json +16 -0
  379. package/dist/extensions/lobster/index.js +261 -0
  380. package/dist/extensions/lobster/openclaw.plugin.json +10 -0
  381. package/dist/extensions/lobster/package.json +17 -0
  382. package/dist/extensions/matrix/openclaw.plugin.json +11 -0
  383. package/dist/extensions/matrix/package.json +53 -0
  384. package/dist/extensions/mattermost/index.js +220 -0
  385. package/dist/extensions/mattermost/openclaw.plugin.json +11 -0
  386. package/dist/extensions/mattermost/package.json +41 -0
  387. package/dist/extensions/mattermost/setup-entry.js +222 -0
  388. package/dist/extensions/memory-core/index.js +36 -0
  389. package/dist/extensions/memory-core/openclaw.plugin.json +9 -0
  390. package/dist/extensions/memory-core/package.json +20 -0
  391. package/dist/extensions/memory-lancedb/openclaw.plugin.json +92 -0
  392. package/dist/extensions/memory-lancedb/package.json +24 -0
  393. package/dist/extensions/microsoft/index.js +223 -0
  394. package/dist/extensions/microsoft/openclaw.plugin.json +8 -0
  395. package/dist/extensions/microsoft/package.json +12 -0
  396. package/dist/extensions/minimax/index.js +437 -0
  397. package/dist/extensions/minimax/openclaw.plugin.json +71 -0
  398. package/dist/extensions/minimax/package.json +12 -0
  399. package/dist/extensions/mistral/index.js +149 -0
  400. package/dist/extensions/mistral/openclaw.plugin.json +31 -0
  401. package/dist/extensions/mistral/package.json +12 -0
  402. package/dist/extensions/modelstudio/index.js +144 -0
  403. package/dist/extensions/modelstudio/openclaw.plugin.json +46 -0
  404. package/dist/extensions/modelstudio/package.json +12 -0
  405. package/dist/extensions/moonshot/index.js +211 -0
  406. package/dist/extensions/moonshot/openclaw.plugin.json +78 -0
  407. package/dist/extensions/moonshot/package.json +12 -0
  408. package/dist/extensions/msteams/openclaw.plugin.json +11 -0
  409. package/dist/extensions/msteams/package.json +48 -0
  410. package/dist/extensions/nextcloud-talk/index.js +221 -0
  411. package/dist/extensions/nextcloud-talk/openclaw.plugin.json +11 -0
  412. package/dist/extensions/nextcloud-talk/package.json +48 -0
  413. package/dist/extensions/nextcloud-talk/setup-entry.js +223 -0
  414. package/dist/extensions/nostr/openclaw.plugin.json +11 -0
  415. package/dist/extensions/nostr/package.json +45 -0
  416. package/dist/extensions/nvidia/index.js +29 -0
  417. package/dist/extensions/nvidia/openclaw.plugin.json +16 -0
  418. package/dist/extensions/nvidia/package.json +12 -0
  419. package/dist/extensions/ollama/index.js +118 -0
  420. package/dist/extensions/ollama/openclaw.plugin.json +28 -0
  421. package/dist/extensions/ollama/package.json +12 -0
  422. package/dist/extensions/open-prose/index.js +10 -0
  423. package/dist/extensions/open-prose/openclaw.plugin.json +13 -0
  424. package/dist/extensions/open-prose/package.json +12 -0
  425. package/dist/extensions/open-prose/skills/prose/LICENSE +21 -0
  426. package/dist/extensions/open-prose/skills/prose/SKILL.md +323 -0
  427. package/dist/extensions/open-prose/skills/prose/alt-borges.md +141 -0
  428. package/dist/extensions/open-prose/skills/prose/alts/arabian-nights.md +229 -0
  429. package/dist/extensions/open-prose/skills/prose/alts/borges.md +360 -0
  430. package/dist/extensions/open-prose/skills/prose/alts/folk.md +322 -0
  431. package/dist/extensions/open-prose/skills/prose/alts/homer.md +217 -0
  432. package/dist/extensions/open-prose/skills/prose/alts/kafka.md +373 -0
  433. package/dist/extensions/open-prose/skills/prose/alts/shared-appendix.md +35 -0
  434. package/dist/extensions/open-prose/skills/prose/compiler.md +2971 -0
  435. package/dist/extensions/open-prose/skills/prose/examples/01-hello-world.prose +4 -0
  436. package/dist/extensions/open-prose/skills/prose/examples/02-research-and-summarize.prose +6 -0
  437. package/dist/extensions/open-prose/skills/prose/examples/03-code-review.prose +17 -0
  438. package/dist/extensions/open-prose/skills/prose/examples/04-write-and-refine.prose +14 -0
  439. package/dist/extensions/open-prose/skills/prose/examples/05-debug-issue.prose +20 -0
  440. package/dist/extensions/open-prose/skills/prose/examples/06-explain-codebase.prose +17 -0
  441. package/dist/extensions/open-prose/skills/prose/examples/07-refactor.prose +20 -0
  442. package/dist/extensions/open-prose/skills/prose/examples/08-blog-post.prose +20 -0
  443. package/dist/extensions/open-prose/skills/prose/examples/09-research-with-agents.prose +25 -0
  444. package/dist/extensions/open-prose/skills/prose/examples/10-code-review-agents.prose +32 -0
  445. package/dist/extensions/open-prose/skills/prose/examples/11-skills-and-imports.prose +27 -0
  446. package/dist/extensions/open-prose/skills/prose/examples/12-secure-agent-permissions.prose +43 -0
  447. package/dist/extensions/open-prose/skills/prose/examples/13-variables-and-context.prose +51 -0
  448. package/dist/extensions/open-prose/skills/prose/examples/14-composition-blocks.prose +48 -0
  449. package/dist/extensions/open-prose/skills/prose/examples/15-inline-sequences.prose +23 -0
  450. package/dist/extensions/open-prose/skills/prose/examples/16-parallel-reviews.prose +19 -0
  451. package/dist/extensions/open-prose/skills/prose/examples/17-parallel-research.prose +19 -0
  452. package/dist/extensions/open-prose/skills/prose/examples/18-mixed-parallel-sequential.prose +36 -0
  453. package/dist/extensions/open-prose/skills/prose/examples/19-advanced-parallel.prose +71 -0
  454. package/dist/extensions/open-prose/skills/prose/examples/20-fixed-loops.prose +20 -0
  455. package/dist/extensions/open-prose/skills/prose/examples/21-pipeline-operations.prose +35 -0
  456. package/dist/extensions/open-prose/skills/prose/examples/22-error-handling.prose +51 -0
  457. package/dist/extensions/open-prose/skills/prose/examples/23-retry-with-backoff.prose +63 -0
  458. package/dist/extensions/open-prose/skills/prose/examples/24-choice-blocks.prose +86 -0
  459. package/dist/extensions/open-prose/skills/prose/examples/25-conditionals.prose +114 -0
  460. package/dist/extensions/open-prose/skills/prose/examples/26-parameterized-blocks.prose +100 -0
  461. package/dist/extensions/open-prose/skills/prose/examples/27-string-interpolation.prose +105 -0
  462. package/dist/extensions/open-prose/skills/prose/examples/28-automated-pr-review.prose +37 -0
  463. package/dist/extensions/open-prose/skills/prose/examples/28-gas-town.prose +1572 -0
  464. package/dist/extensions/open-prose/skills/prose/examples/29-captains-chair.prose +218 -0
  465. package/dist/extensions/open-prose/skills/prose/examples/30-captains-chair-simple.prose +42 -0
  466. package/dist/extensions/open-prose/skills/prose/examples/31-captains-chair-with-memory.prose +145 -0
  467. package/dist/extensions/open-prose/skills/prose/examples/33-pr-review-autofix.prose +168 -0
  468. package/dist/extensions/open-prose/skills/prose/examples/34-content-pipeline.prose +204 -0
  469. package/dist/extensions/open-prose/skills/prose/examples/35-feature-factory.prose +296 -0
  470. package/dist/extensions/open-prose/skills/prose/examples/36-bug-hunter.prose +237 -0
  471. package/dist/extensions/open-prose/skills/prose/examples/37-the-forge.prose +1474 -0
  472. package/dist/extensions/open-prose/skills/prose/examples/38-skill-scan.prose +455 -0
  473. package/dist/extensions/open-prose/skills/prose/examples/39-architect-by-simulation.prose +277 -0
  474. package/dist/extensions/open-prose/skills/prose/examples/40-rlm-self-refine.prose +32 -0
  475. package/dist/extensions/open-prose/skills/prose/examples/41-rlm-divide-conquer.prose +38 -0
  476. package/dist/extensions/open-prose/skills/prose/examples/42-rlm-filter-recurse.prose +46 -0
  477. package/dist/extensions/open-prose/skills/prose/examples/43-rlm-pairwise.prose +50 -0
  478. package/dist/extensions/open-prose/skills/prose/examples/44-run-endpoint-ux-test.prose +261 -0
  479. package/dist/extensions/open-prose/skills/prose/examples/45-plugin-release.prose +159 -0
  480. package/dist/extensions/open-prose/skills/prose/examples/45-run-endpoint-ux-test-with-remediation.prose +637 -0
  481. package/dist/extensions/open-prose/skills/prose/examples/46-run-endpoint-ux-test-fast.prose +148 -0
  482. package/dist/extensions/open-prose/skills/prose/examples/46-workflow-crystallizer.prose +225 -0
  483. package/dist/extensions/open-prose/skills/prose/examples/47-language-self-improvement.prose +356 -0
  484. package/dist/extensions/open-prose/skills/prose/examples/48-habit-miner.prose +445 -0
  485. package/dist/extensions/open-prose/skills/prose/examples/49-prose-run-retrospective.prose +210 -0
  486. package/dist/extensions/open-prose/skills/prose/examples/README.md +391 -0
  487. package/dist/extensions/open-prose/skills/prose/examples/roadmap/README.md +22 -0
  488. package/dist/extensions/open-prose/skills/prose/examples/roadmap/iterative-refinement.prose +20 -0
  489. package/dist/extensions/open-prose/skills/prose/examples/roadmap/parallel-review.prose +18 -0
  490. package/dist/extensions/open-prose/skills/prose/examples/roadmap/simple-pipeline.prose +17 -0
  491. package/dist/extensions/open-prose/skills/prose/examples/roadmap/syntax/open-prose-syntax.prose +223 -0
  492. package/dist/extensions/open-prose/skills/prose/guidance/antipatterns.md +951 -0
  493. package/dist/extensions/open-prose/skills/prose/guidance/patterns.md +700 -0
  494. package/dist/extensions/open-prose/skills/prose/guidance/system-prompt.md +180 -0
  495. package/dist/extensions/open-prose/skills/prose/help.md +144 -0
  496. package/dist/extensions/open-prose/skills/prose/lib/README.md +108 -0
  497. package/dist/extensions/open-prose/skills/prose/lib/calibrator.prose +215 -0
  498. package/dist/extensions/open-prose/skills/prose/lib/cost-analyzer.prose +174 -0
  499. package/dist/extensions/open-prose/skills/prose/lib/error-forensics.prose +250 -0
  500. package/dist/extensions/open-prose/skills/prose/lib/inspector.prose +196 -0
  501. package/dist/extensions/open-prose/skills/prose/lib/profiler.prose +460 -0
  502. package/dist/extensions/open-prose/skills/prose/lib/program-improver.prose +275 -0
  503. package/dist/extensions/open-prose/skills/prose/lib/project-memory.prose +118 -0
  504. package/dist/extensions/open-prose/skills/prose/lib/user-memory.prose +93 -0
  505. package/dist/extensions/open-prose/skills/prose/lib/vm-improver.prose +243 -0
  506. package/dist/extensions/open-prose/skills/prose/primitives/session.md +593 -0
  507. package/dist/extensions/open-prose/skills/prose/prose.md +1237 -0
  508. package/dist/extensions/open-prose/skills/prose/state/filesystem.md +498 -0
  509. package/dist/extensions/open-prose/skills/prose/state/in-context.md +384 -0
  510. package/dist/extensions/open-prose/skills/prose/state/postgres.md +880 -0
  511. package/dist/extensions/open-prose/skills/prose/state/sqlite.md +531 -0
  512. package/dist/extensions/openai/index.js +677 -0
  513. package/dist/extensions/openai/openclaw.plugin.json +42 -0
  514. package/dist/extensions/openai/package.json +12 -0
  515. package/dist/extensions/opencode/index.js +116 -0
  516. package/dist/extensions/opencode/openclaw.plugin.json +32 -0
  517. package/dist/extensions/opencode/package.json +12 -0
  518. package/dist/extensions/opencode-go/index.js +114 -0
  519. package/dist/extensions/opencode-go/openclaw.plugin.json +32 -0
  520. package/dist/extensions/opencode-go/package.json +12 -0
  521. package/dist/extensions/openrouter/index.js +398 -0
  522. package/dist/extensions/openrouter/openclaw.plugin.json +31 -0
  523. package/dist/extensions/openrouter/package.json +12 -0
  524. package/dist/extensions/openshell/index.js +923 -0
  525. package/dist/extensions/openshell/openclaw.plugin.json +99 -0
  526. package/dist/extensions/openshell/package.json +12 -0
  527. package/dist/extensions/perplexity/index.js +23 -0
  528. package/dist/extensions/perplexity/openclaw.plugin.json +49 -0
  529. package/dist/extensions/perplexity/package.json +12 -0
  530. package/dist/extensions/phone-control/index.js +276 -0
  531. package/dist/extensions/phone-control/openclaw.plugin.json +10 -0
  532. package/dist/extensions/qianfan/index.js +114 -0
  533. package/dist/extensions/qianfan/openclaw.plugin.json +31 -0
  534. package/dist/extensions/qianfan/package.json +12 -0
  535. package/dist/extensions/qwen-portal-auth/index.js +350 -0
  536. package/dist/extensions/qwen-portal-auth/openclaw.plugin.json +29 -0
  537. package/dist/extensions/sglang/index.js +285 -0
  538. package/dist/extensions/sglang/openclaw.plugin.json +28 -0
  539. package/dist/extensions/sglang/package.json +12 -0
  540. package/dist/extensions/signal/index.js +218 -0
  541. package/dist/extensions/signal/openclaw.plugin.json +11 -0
  542. package/dist/extensions/signal/package.json +23 -0
  543. package/dist/extensions/signal/setup-entry.js +218 -0
  544. package/dist/extensions/slack/index.js +222 -0
  545. package/dist/extensions/slack/openclaw.plugin.json +11 -0
  546. package/dist/extensions/slack/package.json +30 -0
  547. package/dist/extensions/slack/setup-entry.js +220 -0
  548. package/dist/extensions/synology-chat/index.js +56 -0
  549. package/dist/extensions/synology-chat/openclaw.plugin.json +11 -0
  550. package/dist/extensions/synology-chat/package.json +29 -0
  551. package/dist/extensions/synology-chat/setup-entry.js +58 -0
  552. package/dist/extensions/synthetic/index.js +112 -0
  553. package/dist/extensions/synthetic/openclaw.plugin.json +31 -0
  554. package/dist/extensions/synthetic/package.json +12 -0
  555. package/dist/extensions/talk-voice/index.js +197 -0
  556. package/dist/extensions/talk-voice/openclaw.plugin.json +10 -0
  557. package/dist/extensions/tavily/index.js +211 -0
  558. package/dist/extensions/tavily/openclaw.plugin.json +44 -0
  559. package/dist/extensions/tavily/package.json +12 -0
  560. package/dist/extensions/tavily/skills/tavily/SKILL.md +94 -0
  561. package/dist/extensions/telegram/index.js +221 -0
  562. package/dist/extensions/telegram/openclaw.plugin.json +11 -0
  563. package/dist/extensions/telegram/package.json +31 -0
  564. package/dist/extensions/telegram/setup-entry.js +221 -0
  565. package/dist/extensions/thread-ownership/index.js +70 -0
  566. package/dist/extensions/thread-ownership/openclaw.plugin.json +30 -0
  567. package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/README.md +143 -0
  568. package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/SKILL.md +375 -0
  569. package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/bin/tlon.js +96 -0
  570. package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/package.json +40 -0
  571. package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/references/hooks-examples/auto-react.hoon +24 -0
  572. package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/references/hooks-examples/delete-old-posts.hoon +18 -0
  573. package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/references/hooks-examples/word-filter.hoon +52 -0
  574. package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/references/hooks.md +366 -0
  575. package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/references/urbit-api.md +113 -0
  576. package/dist/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/scripts/postinstall.js +74 -0
  577. package/dist/extensions/tlon/openclaw.plugin.json +14 -0
  578. package/dist/extensions/tlon/package.json +45 -0
  579. package/dist/extensions/together/index.js +113 -0
  580. package/dist/extensions/together/openclaw.plugin.json +31 -0
  581. package/dist/extensions/together/package.json +12 -0
  582. package/dist/extensions/twitch/openclaw.plugin.json +11 -0
  583. package/dist/extensions/twitch/package.json +27 -0
  584. package/dist/extensions/venice/index.js +132 -0
  585. package/dist/extensions/venice/openclaw.plugin.json +31 -0
  586. package/dist/extensions/venice/package.json +12 -0
  587. package/dist/extensions/vercel-ai-gateway/index.js +86 -0
  588. package/dist/extensions/vercel-ai-gateway/openclaw.plugin.json +31 -0
  589. package/dist/extensions/vercel-ai-gateway/package.json +12 -0
  590. package/dist/extensions/vllm/index.js +285 -0
  591. package/dist/extensions/vllm/openclaw.plugin.json +28 -0
  592. package/dist/extensions/vllm/package.json +12 -0
  593. package/dist/extensions/voice-call/index.js +5715 -0
  594. package/dist/extensions/voice-call/openclaw.plugin.json +648 -0
  595. package/dist/extensions/voice-call/package.json +31 -0
  596. package/dist/extensions/volcengine/index.js +112 -0
  597. package/dist/extensions/volcengine/openclaw.plugin.json +32 -0
  598. package/dist/extensions/volcengine/package.json +12 -0
  599. package/dist/extensions/whatsapp/openclaw.plugin.json +11 -0
  600. package/dist/extensions/whatsapp/package.json +44 -0
  601. package/dist/extensions/xai/index.js +211 -0
  602. package/dist/extensions/xai/openclaw.plugin.json +65 -0
  603. package/dist/extensions/xai/package.json +12 -0
  604. package/dist/extensions/xiaomi/index.js +115 -0
  605. package/dist/extensions/xiaomi/openclaw.plugin.json +31 -0
  606. package/dist/extensions/xiaomi/package.json +12 -0
  607. package/dist/extensions/zai/index.js +559 -0
  608. package/dist/extensions/zai/openclaw.plugin.json +88 -0
  609. package/dist/extensions/zai/package.json +12 -0
  610. package/dist/extensions/zalo/index.js +225 -0
  611. package/dist/extensions/zalo/openclaw.plugin.json +11 -0
  612. package/dist/extensions/zalo/package.json +48 -0
  613. package/dist/extensions/zalo/setup-entry.js +226 -0
  614. package/dist/extensions/zalouser/openclaw.plugin.json +11 -0
  615. package/dist/extensions/zalouser/package.json +49 -0
  616. package/dist/external-content-BUdUOqkv.js +238 -0
  617. package/dist/feishu-CiuVx86p.js +62821 -0
  618. package/dist/feishu-DKboNv0e.js +2664 -0
  619. package/dist/fetch-guard-DIyN1HW5.js +165 -0
  620. package/dist/fetch-timeout-C5xpMuGd.js +36 -0
  621. package/dist/file-identity-Cw0fQxYY.js +11 -0
  622. package/dist/file-lock-WbEmczmY.js +107 -0
  623. package/dist/filter-oMGaNOM1.js +20 -0
  624. package/dist/follow-redirects-BPQ_NgUo.js +9143 -0
  625. package/dist/format-DH8ysi7s.js +19 -0
  626. package/dist/format-datetime-BGS6tLDE.js +73 -0
  627. package/dist/format-duration-CO0BGWB0.js +57 -0
  628. package/dist/format-relative-C3nDxnXz.js +54 -0
  629. package/dist/frontmatter-S5vS-I4a.js +309 -0
  630. package/dist/fs-safe-D3qzH-ab.js +731 -0
  631. package/dist/gateway-cli-CPLQ73W9.js +28403 -0
  632. package/dist/gateway-install-token-CKAQVM8-.js +164 -0
  633. package/dist/gateway-rpc-BsgPg6MU.js +26 -0
  634. package/dist/gateway-runtime-B5HHmFvN.js +42 -0
  635. package/dist/gaxios-fetch-compat-KX6bsqFm.js +165 -0
  636. package/dist/gemini-auth-B5ljg7jr.js +29 -0
  637. package/dist/git-commit-BIdLubm5.js +2 -0
  638. package/dist/git-commit-OvUvjri2.js +177 -0
  639. package/dist/github-copilot-auth-BBn03354.js +104 -0
  640. package/dist/global-singleton-4KwY5RvX.js +13 -0
  641. package/dist/globals-41sdSaKv.js +38 -0
  642. package/dist/gmail-setup-utils-BX68dZla.js +419 -0
  643. package/dist/group-access-DJZrYPx1.js +113 -0
  644. package/dist/group-keys-BD_IYSMs.js +44 -0
  645. package/dist/group-policy-CWFxv3iB.js +201 -0
  646. package/dist/group-policy-warnings-Ddu6lBkh.js +175 -0
  647. package/dist/health-BW_d3hKj.js +573 -0
  648. package/dist/health-format-B5XfOTuJ.js +26 -0
  649. package/dist/health-o6N--_xj.js +59 -0
  650. package/dist/heartbeat-7aHh0m3d.js +169 -0
  651. package/dist/heartbeat-summary-Das49TYq.js +57 -0
  652. package/dist/help-Cr5cdpTF.js +81 -0
  653. package/dist/help-format-Dv45FpYu.js +15 -0
  654. package/dist/helpers-CLNycoI8.js +32 -0
  655. package/dist/helpers-DJ-5HEbE.js +24 -0
  656. package/dist/history-CHjo8B5W.js +102 -0
  657. package/dist/hook-runtime-BnNBi_q4.js +1 -0
  658. package/dist/hooks-cli-Bj8_UM2C.js +1102 -0
  659. package/dist/hooks-policy-BL6HDLUn.js +20 -0
  660. package/dist/hooks-status-gzNmo3li.js +78 -0
  661. package/dist/host-env-security-BogNN146.js +223 -0
  662. package/dist/http-body-CCiSfloA.js +237 -0
  663. package/dist/http-registry-WFFbLYRd.js +153 -0
  664. package/dist/identity-DovQV4zD.js +112 -0
  665. package/dist/identity-cyBYcoXS.js +84 -0
  666. package/dist/identity-file-EndG1nfc.js +60 -0
  667. package/dist/image-DWkjd9ze.js +211 -0
  668. package/dist/image-generation-CsblUROw.js +441 -0
  669. package/dist/image-ops-j01UkxEv.js +371 -0
  670. package/dist/imessage-Bb83msoJ.js +219 -0
  671. package/dist/imessage-CsiCgRcg.js +190 -0
  672. package/dist/imessage-CytlwbMq.js +1451 -0
  673. package/dist/imessage-core-CsYJuaRZ.js +1 -0
  674. package/dist/inbound-envelope-4P3IIJc3.js +61 -0
  675. package/dist/inbound-reply-dispatch-B6JDKPpf.js +72 -0
  676. package/dist/includes-7XyL3p1c.js +188 -0
  677. package/dist/includes-scan-y-rS6tTw.js +55 -0
  678. package/dist/index.js +57 -0
  679. package/dist/infra/warning-filter.js +2 -0
  680. package/dist/inspect-TkOiUCgp.js +279 -0
  681. package/dist/install-safe-path-Rwbw1XCZ.js +62 -0
  682. package/dist/installs-CShDWoiR.js +532 -0
  683. package/dist/interactive-F7iY0yED.js +8 -0
  684. package/dist/interactive-runtime-OweOj_Vv.js +90 -0
  685. package/dist/internal-hooks-0uipqzRY.js +156 -0
  686. package/dist/io-BYmuc7ha.js +35 -0
  687. package/dist/io-BjKpaXU3.js +7161 -0
  688. package/dist/ip-C8vmzVu0.js +203 -0
  689. package/dist/ipv4-CJCNv_K7.js +82 -0
  690. package/dist/irc-BSHd6-tL.js +12 -0
  691. package/dist/irc-CO-H7Npu.js +660 -0
  692. package/dist/is-main-YViS6wOn.js +27 -0
  693. package/dist/issue-format-CBEXVico.js +31 -0
  694. package/dist/issue-format-D3HehoKZ.js +4 -0
  695. package/dist/json-file-C2zjA0Gv.js +23 -0
  696. package/dist/json-files-WW-H_psG.js +60 -0
  697. package/dist/json-pointer-f9dEnBoR.js +43 -0
  698. package/dist/json-store-O1LwpnBH.js +37 -0
  699. package/dist/kb-cli-DMZs6PCu.js +65 -0
  700. package/dist/keyed-async-queue-CPUWV5Pm.js +32 -0
  701. package/dist/kill-tree-CbjXBw3z.js +149 -0
  702. package/dist/kilocode-shared-DS7_0IMs.js +29 -0
  703. package/dist/launchd-DowEtzjr.js +491 -0
  704. package/dist/lazy-runtime-BcXbyAaC.js +1 -0
  705. package/dist/lazy-runtime-bWkd2cs3.js +29 -0
  706. package/dist/legacy-names-CUNZ4vHN.js +7 -0
  707. package/dist/legacy-web-search-BgZjNG2h.js +222 -0
  708. package/dist/lib-CERS7N4b.js +503 -0
  709. package/dist/lib-PPICrHv1.js +1938 -0
  710. package/dist/library-DJriL3ed.js +211 -0
  711. package/dist/lifecycle-core-D08nRlzW.js +382 -0
  712. package/dist/line/accounts.js +10 -0
  713. package/dist/line/send.js +39 -0
  714. package/dist/line/template-messages.js +2 -0
  715. package/dist/line-BX_d0Jwk.js +688 -0
  716. package/dist/line-CJSvwApm.js +1 -0
  717. package/dist/line-core-BOIxkjgu.js +1 -0
  718. package/dist/links-CKahSp5K.js +13 -0
  719. package/dist/llm-slug-generator-X_rlkFDe.js +68 -0
  720. package/dist/llm-slug-generator.js +212 -0
  721. package/dist/llm-task-Dx8ymRFr.js +1 -0
  722. package/dist/local-roots-DAzCjWbC.js +34 -0
  723. package/dist/location-DefAH9WS.js +42 -0
  724. package/dist/logger-CoEtkjhn.js +550 -0
  725. package/dist/logger-Cqy7-Maj.js +70 -0
  726. package/dist/logging-Bz1qZDPg.js +16 -0
  727. package/dist/logging-CS185p8Q.js +13 -0
  728. package/dist/logging-CbTTfADU.js +1 -0
  729. package/dist/logging-CrGwCjML.js +36 -0
  730. package/dist/logs-cli-C3x0gsGh.js +261 -0
  731. package/dist/magic-string.es-DJPWMt-n.js +1011 -0
  732. package/dist/main-session-DKr0lBVk.js +36 -0
  733. package/dist/manager-BF-xRVUt.js +2005 -0
  734. package/dist/manager-DjPRm0yC.js +4226 -0
  735. package/dist/manager-runtime-DoKa4efG.js +59 -0
  736. package/dist/manager.runtime-CdPdh296.js +827 -0
  737. package/dist/manifest-registry-B90TyTWl.js +1350 -0
  738. package/dist/map-size-CMTQVKUV.js +15 -0
  739. package/dist/markdown-to-line-BWwaRx5F.js +640 -0
  740. package/dist/mask-api-key-CprzEe7l.js +10 -0
  741. package/dist/matrix-CMi2y980.js +228 -0
  742. package/dist/matrix-migration-snapshot-NMxdum7C.js +702 -0
  743. package/dist/mattermost-Cduscjlj.js +15 -0
  744. package/dist/mattermost-DO0BCfF3.js +1 -0
  745. package/dist/mcp-cli-D0PqoKGl.js +94 -0
  746. package/dist/mcp-config-BcFTambR.js +108 -0
  747. package/dist/media-limits-Cuvmmhop.js +14 -0
  748. package/dist/media-understanding-DptzemF7.js +48 -0
  749. package/dist/media-understanding.runtime-w4DWJMEQ.js +216 -0
  750. package/dist/memory-DBjQ0TPd.js +1 -0
  751. package/dist/memory-cli-D2AtVbYN.js +215 -0
  752. package/dist/memory-cli-DNq4q-b4.js +541 -0
  753. package/dist/memory-search-Das1tiuB.js +204 -0
  754. package/dist/memory-search-DxmSTjHq.js +18 -0
  755. package/dist/mention-gating-B_q-EHFx.js +25 -0
  756. package/dist/mentions-Bxys_va0.js +154 -0
  757. package/dist/message-channel-Cy-gN4K2.js +106 -0
  758. package/dist/message-hook-mappers-BBTV3JRQ.js +249 -0
  759. package/dist/method-scopes-ChbR5hu0.js +2650 -0
  760. package/dist/mime-C4vVTBso.js +150 -0
  761. package/dist/minimal-C5yUxtHy.js +2120 -0
  762. package/dist/model-auth-Blh0xL9g.js +309 -0
  763. package/dist/model-auth-env-CF9ts7Th.js +111 -0
  764. package/dist/model-catalog.runtime-Bq_DOgMs.js +211 -0
  765. package/dist/model-id-normalization-Y-MIsyK_.js +16 -0
  766. package/dist/model-input-BB2wSAHb.js +20 -0
  767. package/dist/model-overrides-sIzKU2wo.js +84 -0
  768. package/dist/model-param-b-DIFEhICm.js +15 -0
  769. package/dist/model-picker-CCcVTPVs.js +400 -0
  770. package/dist/model-picker-DbqaKTMq.js +215 -0
  771. package/dist/model-picker.runtime-CkLp1x9k.js +224 -0
  772. package/dist/model-selection-BTpJnslv.js +437 -0
  773. package/dist/model-selection-slZyRw2d.js +765 -0
  774. package/dist/model-suppression.runtime-DaobH5cQ.js +216 -0
  775. package/dist/models-BN_CtDV3.js +2536 -0
  776. package/dist/models-Dp5Lga_a.js +226 -0
  777. package/dist/models-cli-Cd_3pVLS.js +418 -0
  778. package/dist/models-config-jp2ZYjgH.js +211 -0
  779. package/dist/models-config.providers.discovery-BaIk1NKL.js +141 -0
  780. package/dist/models-config.runtime-CYpoeHa4.js +211 -0
  781. package/dist/monitor-Bbfus89A.js +3145 -0
  782. package/dist/monitor-D63iuNTd.js +3272 -0
  783. package/dist/monitor-DAPxJ4Fy.js +878 -0
  784. package/dist/monitor-DlFPue4X.js +223 -0
  785. package/dist/multimodal-DC43jYNv.js +75 -0
  786. package/dist/mutable-allowlist-detectors-C6EAzWYE.js +62 -0
  787. package/dist/net-DlJFp95v.js +270 -0
  788. package/dist/network-mode-DOgvmom4.js +17 -0
  789. package/dist/nextcloud-talk-4niIjhpY.js +12 -0
  790. package/dist/nextcloud-talk-CwnkUy8E.js +1 -0
  791. package/dist/node-cli-BQ0uYRRJ.js +2484 -0
  792. package/dist/node-command-policy-Bg2g6Xjp.js +192 -0
  793. package/dist/node-commands-B6W6Eo0b.js +11 -0
  794. package/dist/node-require-BgDD9bTi.js +14 -0
  795. package/dist/node-resolve-BunMro3f.js +69 -0
  796. package/dist/node-service-DEZvLQRW.js +65 -0
  797. package/dist/node-startup-env-Gz8ZQniA.js +50 -0
  798. package/dist/nodes-cli-Dvhiks4b.js +1330 -0
  799. package/dist/nodes-screen-DkGtEg3m.js +401 -0
  800. package/dist/normalize-secret-input-_PgpexOG.js +32 -0
  801. package/dist/note-dfjacCV8.js +109 -0
  802. package/dist/npm-pack-install-DFT7_ufP.js +574 -0
  803. package/dist/npm-resolution-O8ezGXjk.js +60 -0
  804. package/dist/oauth.runtime-Dn3J7wCH.js +318 -0
  805. package/dist/oauth.runtime-qCkidk8J.js +180 -0
  806. package/dist/oauth.runtime-y9sB_ut5.js +687 -0
  807. package/dist/ollama-defaults-asNuGW4_.js +4 -0
  808. package/dist/onboard-D9IU-7uw.js +48 -0
  809. package/dist/onboard-DQaHGPRm.js +25 -0
  810. package/dist/onboard-DXqBeqiM.js +589 -0
  811. package/dist/onboard-channels-CfZTqyJW.js +300 -0
  812. package/dist/onboard-channels-Cl8Z603m.js +1257 -0
  813. package/dist/onboard-config-DFKb-0sE.js +29 -0
  814. package/dist/onboard-config-DYykzJhx.js +2 -0
  815. package/dist/onboard-custom-BH3efE8p.js +216 -0
  816. package/dist/onboard-custom-z5zb42R-.js +644 -0
  817. package/dist/onboard-helpers-BN19CLP5.js +335 -0
  818. package/dist/onboard-helpers-Ddb9wkxO.js +54 -0
  819. package/dist/onboard-hooks-Hiw3_8VL.js +73 -0
  820. package/dist/onboard-remote-Bdqyy2tX.js +59 -0
  821. package/dist/onboard-remote-DZ1c3za2.js +182 -0
  822. package/dist/onboard-search-8Xnnh8SX.js +446 -0
  823. package/dist/onboard-skills-BTVz6kVV.js +69 -0
  824. package/dist/onboard-skills-BskXWJGU.js +133 -0
  825. package/dist/openai-codex-provider.runtime-BFsopDHI.js +2 -0
  826. package/dist/openai-defaults-B7FUywsh.js +10 -0
  827. package/dist/openclaw-exec-env-AcZ9we1N.js +14 -0
  828. package/dist/openclaw-root-TUHYdr9B.js +88 -0
  829. package/dist/openclaw-tools.runtime-BI4ZZ6Ie.js +211 -0
  830. package/dist/outbound-media-69yrWRDt.js +11 -0
  831. package/dist/outbound-runtime-ic_7ulJJ.js +1 -0
  832. package/dist/pairing-challenge-pdOQqb2j.js +48 -0
  833. package/dist/pairing-cli-DXxrNtvB.js +150 -0
  834. package/dist/pairing-labels-CNKCSmBK.js +7 -0
  835. package/dist/pairing-message-CBv2njJT.js +4 -0
  836. package/dist/pairing-store-C4lsd4pO.js +590 -0
  837. package/dist/pairing-token-gKj4SNFJ.js +55 -0
  838. package/dist/parse-duration-BBGYkY0S.js +41 -0
  839. package/dist/parse-finite-number-CP4MQF_w.js +30 -0
  840. package/dist/parse-log-line-CVh9zu3Q.js +43 -0
  841. package/dist/parse-port-COyt3COn.js +8 -0
  842. package/dist/path-alias-guards-ZTKqurNH.js +40 -0
  843. package/dist/path-env-CPkz6U0Y.js +87 -0
  844. package/dist/paths-CTjJI9l0.js +179 -0
  845. package/dist/paths-GHJ97ebE.js +268 -0
  846. package/dist/paths-nCHyK08H.js +56 -0
  847. package/dist/perplexity-kYSLNo8o.js +422 -0
  848. package/dist/persistent-dedupe-bjKjVI5u.js +116 -0
  849. package/dist/pi-embedded-CDH9LrEg.js +172586 -0
  850. package/dist/pi-model-discovery-CuX5CDyZ.js +125 -0
  851. package/dist/pi-model-discovery-runtime-DUWeqjUv.js +44 -0
  852. package/dist/pi-tools.before-tool-call.runtime-D9NV63QP.js +387 -0
  853. package/dist/platform-launcher-CqGy6UhP.js +83 -0
  854. package/dist/plugin-entry-CwuwM1jC.js +17 -0
  855. package/dist/plugin-install-CpMYi2tB.js +184 -0
  856. package/dist/plugin-install-aDvFMLBT.js +216 -0
  857. package/dist/plugin-install-plan-B_2cLkDP.js +49 -0
  858. package/dist/plugin-registry-C7Z7CkLP.js +213 -0
  859. package/dist/plugin-registry-C8bgJflP.js +51 -0
  860. package/dist/plugin-sdk/account-helpers.d.ts +1 -0
  861. package/dist/plugin-sdk/account-helpers.js +3 -0
  862. package/dist/plugin-sdk/account-id.d.ts +1 -0
  863. package/dist/plugin-sdk/account-id.js +2 -0
  864. package/dist/plugin-sdk/account-resolution.d.ts +1 -0
  865. package/dist/plugin-sdk/account-resolution.js +216 -0
  866. package/dist/plugin-sdk/acp-runtime.d.ts +1 -0
  867. package/dist/plugin-sdk/acp-runtime.js +46 -0
  868. package/dist/plugin-sdk/agent-runtime.d.ts +1 -0
  869. package/dist/plugin-sdk/agent-runtime.js +215 -0
  870. package/dist/plugin-sdk/allow-from.d.ts +1 -0
  871. package/dist/plugin-sdk/allow-from.js +17 -0
  872. package/dist/plugin-sdk/allowlist-config-edit.d.ts +1 -0
  873. package/dist/plugin-sdk/allowlist-config-edit.js +2 -0
  874. package/dist/plugin-sdk/bluebubbles.d.ts +1 -0
  875. package/dist/plugin-sdk/bluebubbles.js +232 -0
  876. package/dist/plugin-sdk/boolean-param.d.ts +1 -0
  877. package/dist/plugin-sdk/boolean-param.js +2 -0
  878. package/dist/plugin-sdk/channel-actions.d.ts +1 -0
  879. package/dist/plugin-sdk/channel-actions.js +16 -0
  880. package/dist/plugin-sdk/channel-config-helpers.d.ts +1 -0
  881. package/dist/plugin-sdk/channel-config-helpers.js +15 -0
  882. package/dist/plugin-sdk/channel-config-schema.d.ts +1 -0
  883. package/dist/plugin-sdk/channel-config-schema.js +5 -0
  884. package/dist/plugin-sdk/channel-contract.d.ts +1 -0
  885. package/dist/plugin-sdk/channel-contract.js +1 -0
  886. package/dist/plugin-sdk/channel-feedback.d.ts +1 -0
  887. package/dist/plugin-sdk/channel-feedback.js +4 -0
  888. package/dist/plugin-sdk/channel-inbound.d.ts +1 -0
  889. package/dist/plugin-sdk/channel-inbound.js +53 -0
  890. package/dist/plugin-sdk/channel-lifecycle.d.ts +1 -0
  891. package/dist/plugin-sdk/channel-lifecycle.js +2 -0
  892. package/dist/plugin-sdk/channel-pairing.d.ts +1 -0
  893. package/dist/plugin-sdk/channel-pairing.js +2 -0
  894. package/dist/plugin-sdk/channel-policy.d.ts +1 -0
  895. package/dist/plugin-sdk/channel-policy.js +19 -0
  896. package/dist/plugin-sdk/channel-reply-pipeline.d.ts +1 -0
  897. package/dist/plugin-sdk/channel-reply-pipeline.js +23 -0
  898. package/dist/plugin-sdk/channel-runtime.d.ts +1 -0
  899. package/dist/plugin-sdk/channel-runtime.js +33 -0
  900. package/dist/plugin-sdk/channel-send-result.d.ts +1 -0
  901. package/dist/plugin-sdk/channel-send-result.js +2 -0
  902. package/dist/plugin-sdk/channel-setup.d.ts +1 -0
  903. package/dist/plugin-sdk/channel-setup.js +24 -0
  904. package/dist/plugin-sdk/channel-targets.d.ts +1 -0
  905. package/dist/plugin-sdk/channel-targets.js +3 -0
  906. package/dist/plugin-sdk/cli-runtime.d.ts +1 -0
  907. package/dist/plugin-sdk/cli-runtime.js +5 -0
  908. package/dist/plugin-sdk/command-auth.d.ts +1 -0
  909. package/dist/plugin-sdk/command-auth.js +212 -0
  910. package/dist/plugin-sdk/compat.js +59 -0
  911. package/dist/plugin-sdk/config-runtime.d.ts +1 -0
  912. package/dist/plugin-sdk/config-runtime.js +51 -0
  913. package/dist/plugin-sdk/conversation-runtime.d.ts +1 -0
  914. package/dist/plugin-sdk/conversation-runtime.js +55 -0
  915. package/dist/plugin-sdk/core.d.ts +1 -0
  916. package/dist/plugin-sdk/core.js +40 -0
  917. package/dist/plugin-sdk/device-bootstrap.d.ts +1 -0
  918. package/dist/plugin-sdk/device-bootstrap.js +6 -0
  919. package/dist/plugin-sdk/diagnostics-otel.d.ts +1 -0
  920. package/dist/plugin-sdk/diagnostics-otel.js +7 -0
  921. package/dist/plugin-sdk/diffs.d.ts +1 -0
  922. package/dist/plugin-sdk/diffs.js +3 -0
  923. package/dist/plugin-sdk/directory-runtime.d.ts +1 -0
  924. package/dist/plugin-sdk/directory-runtime.js +5 -0
  925. package/dist/plugin-sdk/discord-core.d.ts +1 -0
  926. package/dist/plugin-sdk/discord-core.js +26 -0
  927. package/dist/plugin-sdk/discord.d.ts +1 -0
  928. package/dist/plugin-sdk/discord.js +219 -0
  929. package/dist/plugin-sdk/extension-shared.d.ts +1 -0
  930. package/dist/plugin-sdk/extension-shared.js +15 -0
  931. package/dist/plugin-sdk/extensions/anthropic-vertex/provider-catalog.d.ts +5 -0
  932. package/dist/plugin-sdk/extensions/bluebubbles/runtime-api.d.ts +1 -0
  933. package/dist/plugin-sdk/extensions/bluebubbles/src/group-policy.d.ts +14 -0
  934. package/dist/plugin-sdk/extensions/brave/index.d.ts +8 -0
  935. package/dist/plugin-sdk/extensions/brave/src/brave-web-search-provider.d.ts +42 -0
  936. package/dist/plugin-sdk/extensions/discord/api.d.ts +14 -0
  937. package/dist/plugin-sdk/extensions/discord/runtime-api.d.ts +17 -0
  938. package/dist/plugin-sdk/extensions/discord/session-key-api.d.ts +1 -0
  939. package/dist/plugin-sdk/extensions/discord/src/account-inspect.d.ts +17 -0
  940. package/dist/plugin-sdk/extensions/discord/src/accounts.d.ts +27 -0
  941. package/dist/plugin-sdk/extensions/discord/src/actions/handle-action.d.ts +3 -0
  942. package/dist/plugin-sdk/extensions/discord/src/actions/handle-action.guild-admin.d.ts +9 -0
  943. package/dist/plugin-sdk/extensions/discord/src/actions/runtime.d.ts +5 -0
  944. package/dist/plugin-sdk/extensions/discord/src/actions/runtime.guild.d.ts +24 -0
  945. package/dist/plugin-sdk/extensions/discord/src/actions/runtime.messaging.d.ts +32 -0
  946. package/dist/plugin-sdk/extensions/discord/src/actions/runtime.moderation-shared.d.ts +13 -0
  947. package/dist/plugin-sdk/extensions/discord/src/actions/runtime.moderation.d.ts +10 -0
  948. package/dist/plugin-sdk/extensions/discord/src/actions/runtime.presence.d.ts +3 -0
  949. package/dist/plugin-sdk/extensions/discord/src/actions/runtime.shared.d.ts +1 -0
  950. package/dist/plugin-sdk/extensions/discord/src/api.d.ts +11 -0
  951. package/dist/plugin-sdk/extensions/discord/src/audit.d.ts +29 -0
  952. package/dist/plugin-sdk/extensions/discord/src/channel-actions.d.ts +2 -0
  953. package/dist/plugin-sdk/extensions/discord/src/chunk.d.ts +20 -0
  954. package/dist/plugin-sdk/extensions/discord/src/client.d.ts +24 -0
  955. package/dist/plugin-sdk/extensions/discord/src/components-registry.d.ts +16 -0
  956. package/dist/plugin-sdk/extensions/discord/src/components.d.ts +204 -0
  957. package/dist/plugin-sdk/extensions/discord/src/directory-cache.d.ts +10 -0
  958. package/dist/plugin-sdk/extensions/discord/src/directory-config.d.ts +3 -0
  959. package/dist/plugin-sdk/extensions/discord/src/directory-live.d.ts +3 -0
  960. package/dist/plugin-sdk/extensions/discord/src/draft-chunking.d.ts +6 -0
  961. package/dist/plugin-sdk/extensions/discord/src/draft-stream.d.ts +21 -0
  962. package/dist/plugin-sdk/extensions/discord/src/gateway-logging.d.ts +8 -0
  963. package/dist/plugin-sdk/extensions/discord/src/group-policy.d.ts +4 -0
  964. package/dist/plugin-sdk/extensions/discord/src/guilds.d.ts +6 -0
  965. package/dist/plugin-sdk/extensions/discord/src/mentions.d.ts +8 -0
  966. package/dist/plugin-sdk/extensions/discord/src/message-tool-schema.d.ts +96 -0
  967. package/dist/plugin-sdk/extensions/discord/src/monitor/agent-components-helpers.d.ts +155 -0
  968. package/dist/plugin-sdk/extensions/discord/src/monitor/agent-components.d.ts +28 -0
  969. package/dist/plugin-sdk/extensions/discord/src/monitor/allow-list.d.ts +189 -0
  970. package/dist/plugin-sdk/extensions/discord/src/monitor/auto-presence.d.ts +59 -0
  971. package/dist/plugin-sdk/extensions/discord/src/monitor/commands.d.ts +2 -0
  972. package/dist/plugin-sdk/extensions/discord/src/monitor/dm-command-auth.d.ts +24 -0
  973. package/dist/plugin-sdk/extensions/discord/src/monitor/dm-command-decision.d.ts +14 -0
  974. package/dist/plugin-sdk/extensions/discord/src/monitor/exec-approvals.d.ts +55 -0
  975. package/dist/plugin-sdk/extensions/discord/src/monitor/format.d.ts +13 -0
  976. package/dist/plugin-sdk/extensions/discord/src/monitor/gateway-error-guard.d.ts +6 -0
  977. package/dist/plugin-sdk/extensions/discord/src/monitor/gateway-plugin.d.ts +8 -0
  978. package/dist/plugin-sdk/extensions/discord/src/monitor/gateway-registry.d.ts +9 -0
  979. package/dist/plugin-sdk/extensions/discord/src/monitor/inbound-context.d.ts +22 -0
  980. package/dist/plugin-sdk/extensions/discord/src/monitor/inbound-job.d.ts +13 -0
  981. package/dist/plugin-sdk/extensions/discord/src/monitor/inbound-worker.d.ts +15 -0
  982. package/dist/plugin-sdk/extensions/discord/src/monitor/listeners.d.ts +67 -0
  983. package/dist/plugin-sdk/extensions/discord/src/monitor/message-handler.d.ts +13 -0
  984. package/dist/plugin-sdk/extensions/discord/src/monitor/message-handler.preflight.d.ts +14 -0
  985. package/dist/plugin-sdk/extensions/discord/src/monitor/message-handler.preflight.types.d.ts +88 -0
  986. package/dist/plugin-sdk/extensions/discord/src/monitor/message-handler.process.d.ts +2 -0
  987. package/dist/plugin-sdk/extensions/discord/src/monitor/message-utils.d.ts +45 -0
  988. package/dist/plugin-sdk/extensions/discord/src/monitor/model-picker-preferences.d.ts +18 -0
  989. package/dist/plugin-sdk/extensions/discord/src/monitor/model-picker.d.ts +117 -0
  990. package/dist/plugin-sdk/extensions/discord/src/monitor/native-command-context.d.ts +68 -0
  991. package/dist/plugin-sdk/extensions/discord/src/monitor/native-command-ui.d.ts +97 -0
  992. package/dist/plugin-sdk/extensions/discord/src/monitor/native-command.d.ts +19 -0
  993. package/dist/plugin-sdk/extensions/discord/src/monitor/preflight-audio.d.ts +21 -0
  994. package/dist/plugin-sdk/extensions/discord/src/monitor/preflight-audio.runtime.d.ts +3 -0
  995. package/dist/plugin-sdk/extensions/discord/src/monitor/presence-cache.d.ts +9 -0
  996. package/dist/plugin-sdk/extensions/discord/src/monitor/presence.d.ts +5 -0
  997. package/dist/plugin-sdk/extensions/discord/src/monitor/provider.allowlist.d.ts +14 -0
  998. package/dist/plugin-sdk/extensions/discord/src/monitor/provider.d.ts +26 -0
  999. package/dist/plugin-sdk/extensions/discord/src/monitor/provider.lifecycle.d.ts +27 -0
  1000. package/dist/plugin-sdk/extensions/discord/src/monitor/reply-context.d.ts +17 -0
  1001. package/dist/plugin-sdk/extensions/discord/src/monitor/reply-delivery.d.ts +40 -0
  1002. package/dist/plugin-sdk/extensions/discord/src/monitor/rest-fetch.d.ts +2 -0
  1003. package/dist/plugin-sdk/extensions/discord/src/monitor/route-resolution.d.ts +40 -0
  1004. package/dist/plugin-sdk/extensions/discord/src/monitor/sender-identity.d.ts +31 -0
  1005. package/dist/plugin-sdk/extensions/discord/src/monitor/startup-status.d.ts +4 -0
  1006. package/dist/plugin-sdk/extensions/discord/src/monitor/status.d.ts +17 -0
  1007. package/dist/plugin-sdk/extensions/discord/src/monitor/system-events.d.ts +2 -0
  1008. package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.config.d.ts +11 -0
  1009. package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.d.ts +8 -0
  1010. package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.discord-api.d.ts +41 -0
  1011. package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.lifecycle.d.ts +60 -0
  1012. package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.manager.d.ts +21 -0
  1013. package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.messages.d.ts +1 -0
  1014. package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.persona.d.ts +6 -0
  1015. package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.state.d.ts +79 -0
  1016. package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.types.d.ts +79 -0
  1017. package/dist/plugin-sdk/extensions/discord/src/monitor/thread-session-close.d.ts +15 -0
  1018. package/dist/plugin-sdk/extensions/discord/src/monitor/threading.d.ts +98 -0
  1019. package/dist/plugin-sdk/extensions/discord/src/monitor/timeouts.d.ts +14 -0
  1020. package/dist/plugin-sdk/extensions/discord/src/monitor/typing.d.ts +5 -0
  1021. package/dist/plugin-sdk/extensions/discord/src/monitor.d.ts +10 -0
  1022. package/dist/plugin-sdk/extensions/discord/src/monitor.gateway.d.ts +14 -0
  1023. package/dist/plugin-sdk/extensions/discord/src/normalize.d.ts +14 -0
  1024. package/dist/plugin-sdk/extensions/discord/src/outbound-adapter.d.ts +3 -0
  1025. package/dist/plugin-sdk/extensions/discord/src/pluralkit.d.ts +26 -0
  1026. package/dist/plugin-sdk/extensions/discord/src/probe.d.ts +37 -0
  1027. package/dist/plugin-sdk/extensions/discord/src/resolve-allowlist-common.d.ts +11 -0
  1028. package/dist/plugin-sdk/extensions/discord/src/resolve-channels.d.ts +15 -0
  1029. package/dist/plugin-sdk/extensions/discord/src/resolve-users.d.ts +14 -0
  1030. package/dist/plugin-sdk/extensions/discord/src/retry.d.ts +12 -0
  1031. package/dist/plugin-sdk/extensions/discord/src/runtime-api.d.ts +11 -0
  1032. package/dist/plugin-sdk/extensions/discord/src/send.channels.d.ts +17 -0
  1033. package/dist/plugin-sdk/extensions/discord/src/send.components.d.ts +24 -0
  1034. package/dist/plugin-sdk/extensions/discord/src/send.d.ts +11 -0
  1035. package/dist/plugin-sdk/extensions/discord/src/send.emojis-stickers.d.ts +4 -0
  1036. package/dist/plugin-sdk/extensions/discord/src/send.guild.d.ts +24 -0
  1037. package/dist/plugin-sdk/extensions/discord/src/send.messages.d.ts +20 -0
  1038. package/dist/plugin-sdk/extensions/discord/src/send.outbound.d.ts +61 -0
  1039. package/dist/plugin-sdk/extensions/discord/src/send.permissions.d.ts +20 -0
  1040. package/dist/plugin-sdk/extensions/discord/src/send.reactions.d.ts +15 -0
  1041. package/dist/plugin-sdk/extensions/discord/src/send.shared.d.ts +86 -0
  1042. package/dist/plugin-sdk/extensions/discord/src/send.types.d.ts +148 -0
  1043. package/dist/plugin-sdk/extensions/discord/src/send.typing.d.ts +5 -0
  1044. package/dist/plugin-sdk/extensions/discord/src/session-key-normalization.d.ts +7 -0
  1045. package/dist/plugin-sdk/extensions/discord/src/shared-interactive.d.ts +3 -0
  1046. package/dist/plugin-sdk/extensions/discord/src/status-issues.d.ts +2 -0
  1047. package/dist/plugin-sdk/extensions/discord/src/targets.d.ts +18 -0
  1048. package/dist/plugin-sdk/extensions/discord/src/token.d.ts +11 -0
  1049. package/dist/plugin-sdk/extensions/discord/src/ui.d.ts +19 -0
  1050. package/dist/plugin-sdk/extensions/discord/src/voice/command.d.ts +15 -0
  1051. package/dist/plugin-sdk/extensions/discord/src/voice/manager.d.ts +60 -0
  1052. package/dist/plugin-sdk/extensions/discord/src/voice/manager.runtime.d.ts +5 -0
  1053. package/dist/plugin-sdk/extensions/discord/src/voice/sdk-runtime.d.ts +3 -0
  1054. package/dist/plugin-sdk/extensions/discord/src/voice-message.d.ts +50 -0
  1055. package/dist/plugin-sdk/extensions/discord/timeouts.d.ts +1 -0
  1056. package/dist/plugin-sdk/extensions/feishu/api.d.ts +4 -0
  1057. package/dist/plugin-sdk/extensions/feishu/runtime-api.d.ts +1 -0
  1058. package/dist/plugin-sdk/extensions/feishu/setup-api.d.ts +2 -0
  1059. package/dist/plugin-sdk/extensions/feishu/src/accounts.d.ts +48 -0
  1060. package/dist/plugin-sdk/extensions/feishu/src/async.d.ts +12 -0
  1061. package/dist/plugin-sdk/extensions/feishu/src/bot-content.d.ts +82 -0
  1062. package/dist/plugin-sdk/extensions/feishu/src/bot-sender-name.d.ts +16 -0
  1063. package/dist/plugin-sdk/extensions/feishu/src/bot.d.ts +70 -0
  1064. package/dist/plugin-sdk/extensions/feishu/src/client.d.ts +47 -0
  1065. package/dist/plugin-sdk/extensions/feishu/src/config-schema.d.ts +550 -0
  1066. package/dist/plugin-sdk/extensions/feishu/src/conversation-id.d.ts +17 -0
  1067. package/dist/plugin-sdk/extensions/feishu/src/dedup.d.ts +19 -0
  1068. package/dist/plugin-sdk/extensions/feishu/src/dynamic-agent.d.ts +18 -0
  1069. package/dist/plugin-sdk/extensions/feishu/src/external-keys.d.ts +1 -0
  1070. package/dist/plugin-sdk/extensions/feishu/src/media.d.ts +118 -0
  1071. package/dist/plugin-sdk/extensions/feishu/src/mention.d.ts +52 -0
  1072. package/dist/plugin-sdk/extensions/feishu/src/policy.d.ts +28 -0
  1073. package/dist/plugin-sdk/extensions/feishu/src/post.d.ts +11 -0
  1074. package/dist/plugin-sdk/extensions/feishu/src/probe.d.ts +10 -0
  1075. package/dist/plugin-sdk/extensions/feishu/src/reply-dispatcher.d.ts +35 -0
  1076. package/dist/plugin-sdk/extensions/feishu/src/runtime.d.ts +3 -0
  1077. package/dist/plugin-sdk/extensions/feishu/src/secret-input.d.ts +1 -0
  1078. package/dist/plugin-sdk/extensions/feishu/src/send-result.d.ts +12 -0
  1079. package/dist/plugin-sdk/extensions/feishu/src/send-target.d.ts +10 -0
  1080. package/dist/plugin-sdk/extensions/feishu/src/send.d.ts +131 -0
  1081. package/dist/plugin-sdk/extensions/feishu/src/setup-core.d.ts +3 -0
  1082. package/dist/plugin-sdk/extensions/feishu/src/setup-surface.d.ts +3 -0
  1083. package/dist/plugin-sdk/extensions/feishu/src/streaming-card.d.ts +55 -0
  1084. package/dist/plugin-sdk/extensions/feishu/src/targets.d.ts +6 -0
  1085. package/dist/plugin-sdk/extensions/feishu/src/thread-bindings.d.ts +42 -0
  1086. package/dist/plugin-sdk/extensions/feishu/src/types.d.ts +84 -0
  1087. package/dist/plugin-sdk/extensions/feishu/src/typing.d.ts +57 -0
  1088. package/dist/plugin-sdk/extensions/firecrawl/index.d.ts +8 -0
  1089. package/dist/plugin-sdk/extensions/firecrawl/src/config.d.ts +25 -0
  1090. package/dist/plugin-sdk/extensions/firecrawl/src/firecrawl-client.d.ts +43 -0
  1091. package/dist/plugin-sdk/extensions/firecrawl/src/firecrawl-scrape-tool.d.ts +17 -0
  1092. package/dist/plugin-sdk/extensions/firecrawl/src/firecrawl-search-provider.d.ts +2 -0
  1093. package/dist/plugin-sdk/extensions/firecrawl/src/firecrawl-search-tool.d.ts +15 -0
  1094. package/dist/plugin-sdk/extensions/google/gemini-cli-provider.d.ts +2 -0
  1095. package/dist/plugin-sdk/extensions/google/index.d.ts +8 -0
  1096. package/dist/plugin-sdk/extensions/google/media-understanding-provider.d.ts +6 -0
  1097. package/dist/plugin-sdk/extensions/google/oauth.credentials.d.ts +21 -0
  1098. package/dist/plugin-sdk/extensions/google/oauth.d.ts +5 -0
  1099. package/dist/plugin-sdk/extensions/google/oauth.flow.d.ts +20 -0
  1100. package/dist/plugin-sdk/extensions/google/oauth.http.d.ts +1 -0
  1101. package/dist/plugin-sdk/extensions/google/oauth.project.d.ts +4 -0
  1102. package/dist/plugin-sdk/extensions/google/oauth.runtime.d.ts +1 -0
  1103. package/dist/plugin-sdk/extensions/google/oauth.shared.d.ts +33 -0
  1104. package/dist/plugin-sdk/extensions/google/oauth.token.d.ts +2 -0
  1105. package/dist/plugin-sdk/extensions/google/provider-models.d.ts +6 -0
  1106. package/dist/plugin-sdk/extensions/google/runtime-api.d.ts +1 -0
  1107. package/dist/plugin-sdk/extensions/google/src/gemini-web-search-provider.d.ts +13 -0
  1108. package/dist/plugin-sdk/extensions/huggingface/provider-catalog.d.ts +2 -0
  1109. package/dist/plugin-sdk/extensions/imessage/api.d.ts +4 -0
  1110. package/dist/plugin-sdk/extensions/imessage/runtime-api.d.ts +6 -0
  1111. package/dist/plugin-sdk/extensions/imessage/src/accounts.d.ts +16 -0
  1112. package/dist/plugin-sdk/extensions/imessage/src/client.d.ts +46 -0
  1113. package/dist/plugin-sdk/extensions/imessage/src/constants.d.ts +2 -0
  1114. package/dist/plugin-sdk/extensions/imessage/src/group-policy.d.ts +14 -0
  1115. package/dist/plugin-sdk/extensions/imessage/src/monitor/abort-handler.d.ts +9 -0
  1116. package/dist/plugin-sdk/extensions/imessage/src/monitor/deliver.d.ts +14 -0
  1117. package/dist/plugin-sdk/extensions/imessage/src/monitor/echo-cache.d.ts +9 -0
  1118. package/dist/plugin-sdk/extensions/imessage/src/monitor/inbound-processing.d.ts +98 -0
  1119. package/dist/plugin-sdk/extensions/imessage/src/monitor/loop-rate-limiter.d.ts +14 -0
  1120. package/dist/plugin-sdk/extensions/imessage/src/monitor/monitor-provider.d.ts +7 -0
  1121. package/dist/plugin-sdk/extensions/imessage/src/monitor/parse-notification.d.ts +2 -0
  1122. package/dist/plugin-sdk/extensions/imessage/src/monitor/reflection-guard.d.ts +14 -0
  1123. package/dist/plugin-sdk/extensions/imessage/src/monitor/runtime.d.ts +4 -0
  1124. package/dist/plugin-sdk/extensions/imessage/src/monitor/sanitize-outbound.d.ts +6 -0
  1125. package/dist/plugin-sdk/extensions/imessage/src/monitor/self-chat-cache.d.ts +16 -0
  1126. package/dist/plugin-sdk/extensions/imessage/src/monitor/types.d.ts +37 -0
  1127. package/dist/plugin-sdk/extensions/imessage/src/monitor.d.ts +2 -0
  1128. package/dist/plugin-sdk/extensions/imessage/src/probe.d.ts +17 -0
  1129. package/dist/plugin-sdk/extensions/imessage/src/send.d.ts +34 -0
  1130. package/dist/plugin-sdk/extensions/imessage/src/target-parsing-helpers.d.ts +85 -0
  1131. package/dist/plugin-sdk/extensions/imessage/src/targets.d.ts +27 -0
  1132. package/dist/plugin-sdk/extensions/irc/api.d.ts +2 -0
  1133. package/dist/plugin-sdk/extensions/irc/src/accounts.d.ts +23 -0
  1134. package/dist/plugin-sdk/extensions/irc/src/control-chars.d.ts +3 -0
  1135. package/dist/plugin-sdk/extensions/irc/src/normalize.d.ts +18 -0
  1136. package/dist/plugin-sdk/extensions/irc/src/runtime-api.d.ts +1 -0
  1137. package/dist/plugin-sdk/extensions/irc/src/setup-core.d.ts +10 -0
  1138. package/dist/plugin-sdk/extensions/irc/src/setup-surface.d.ts +4 -0
  1139. package/dist/plugin-sdk/extensions/irc/src/types.d.ts +83 -0
  1140. package/dist/plugin-sdk/extensions/kilocode/provider-catalog.d.ts +3 -0
  1141. package/dist/plugin-sdk/extensions/kimi-coding/provider-catalog.d.ts +10 -0
  1142. package/dist/plugin-sdk/extensions/matrix/helper-api.d.ts +3 -0
  1143. package/dist/plugin-sdk/extensions/matrix/runtime-api.d.ts +7 -0
  1144. package/dist/plugin-sdk/extensions/matrix/src/account-selection.d.ts +6 -0
  1145. package/dist/plugin-sdk/extensions/matrix/src/auth-precedence.d.ts +11 -0
  1146. package/dist/plugin-sdk/extensions/matrix/src/env-vars.d.ts +10 -0
  1147. package/dist/plugin-sdk/extensions/matrix/src/matrix/thread-bindings-shared.d.ts +77 -0
  1148. package/dist/plugin-sdk/extensions/matrix/src/storage-paths.d.ts +26 -0
  1149. package/dist/plugin-sdk/extensions/matrix/thread-bindings-runtime.d.ts +1 -0
  1150. package/dist/plugin-sdk/extensions/modelstudio/provider-catalog.d.ts +4 -0
  1151. package/dist/plugin-sdk/extensions/moonshot/index.d.ts +8 -0
  1152. package/dist/plugin-sdk/extensions/moonshot/media-understanding-provider.d.ts +4 -0
  1153. package/dist/plugin-sdk/extensions/moonshot/onboard.d.ts +7 -0
  1154. package/dist/plugin-sdk/extensions/moonshot/provider-catalog.d.ts +4 -0
  1155. package/dist/plugin-sdk/extensions/moonshot/src/kimi-web-search-provider.d.ts +43 -0
  1156. package/dist/plugin-sdk/extensions/nvidia/provider-catalog.d.ts +2 -0
  1157. package/dist/plugin-sdk/extensions/perplexity/index.d.ts +8 -0
  1158. package/dist/plugin-sdk/extensions/perplexity/src/perplexity-web-search-provider.d.ts +37 -0
  1159. package/dist/plugin-sdk/extensions/qianfan/provider-catalog.d.ts +4 -0
  1160. package/dist/plugin-sdk/extensions/signal/api.d.ts +8 -0
  1161. package/dist/plugin-sdk/extensions/signal/src/accounts.d.ts +17 -0
  1162. package/dist/plugin-sdk/extensions/signal/src/client.d.ts +32 -0
  1163. package/dist/plugin-sdk/extensions/signal/src/daemon.d.ts +26 -0
  1164. package/dist/plugin-sdk/extensions/signal/src/format.d.ts +17 -0
  1165. package/dist/plugin-sdk/extensions/signal/src/identity.d.ts +25 -0
  1166. package/dist/plugin-sdk/extensions/signal/src/message-actions.d.ts +2 -0
  1167. package/dist/plugin-sdk/extensions/signal/src/monitor/access-policy.d.ts +40 -0
  1168. package/dist/plugin-sdk/extensions/signal/src/monitor/event-handler.d.ts +5 -0
  1169. package/dist/plugin-sdk/extensions/signal/src/monitor/event-handler.types.d.ts +126 -0
  1170. package/dist/plugin-sdk/extensions/signal/src/monitor/mentions.d.ts +2 -0
  1171. package/dist/plugin-sdk/extensions/signal/src/monitor.d.ts +27 -0
  1172. package/dist/plugin-sdk/extensions/signal/src/probe.d.ts +7 -0
  1173. package/dist/plugin-sdk/extensions/signal/src/reaction-level.d.ts +17 -0
  1174. package/dist/plugin-sdk/extensions/signal/src/rpc-context.d.ts +9 -0
  1175. package/dist/plugin-sdk/extensions/signal/src/runtime-api.d.ts +1 -0
  1176. package/dist/plugin-sdk/extensions/signal/src/send-reactions.d.ts +34 -0
  1177. package/dist/plugin-sdk/extensions/signal/src/send.d.ts +27 -0
  1178. package/dist/plugin-sdk/extensions/signal/src/sse-reconnect.d.ts +13 -0
  1179. package/dist/plugin-sdk/extensions/slack/api.d.ts +15 -0
  1180. package/dist/plugin-sdk/extensions/slack/runtime-api.d.ts +5 -0
  1181. package/dist/plugin-sdk/extensions/slack/src/account-inspect.d.ts +32 -0
  1182. package/dist/plugin-sdk/extensions/slack/src/account-surface-fields.d.ts +14 -0
  1183. package/dist/plugin-sdk/extensions/slack/src/accounts.d.ts +25 -0
  1184. package/dist/plugin-sdk/extensions/slack/src/action-runtime.d.ts +38 -0
  1185. package/dist/plugin-sdk/extensions/slack/src/actions.d.ts +74 -0
  1186. package/dist/plugin-sdk/extensions/slack/src/blocks-fallback.d.ts +2 -0
  1187. package/dist/plugin-sdk/extensions/slack/src/blocks-input.d.ts +3 -0
  1188. package/dist/plugin-sdk/extensions/slack/src/blocks-render.d.ts +6 -0
  1189. package/dist/plugin-sdk/extensions/slack/src/channel-migration.d.ts +20 -0
  1190. package/dist/plugin-sdk/extensions/slack/src/client.d.ts +4 -0
  1191. package/dist/plugin-sdk/extensions/slack/src/directory-config.d.ts +3 -0
  1192. package/dist/plugin-sdk/extensions/slack/src/directory-live.d.ts +3 -0
  1193. package/dist/plugin-sdk/extensions/slack/src/draft-stream.d.ts +25 -0
  1194. package/dist/plugin-sdk/extensions/slack/src/format.d.ts +8 -0
  1195. package/dist/plugin-sdk/extensions/slack/src/group-policy.d.ts +4 -0
  1196. package/dist/plugin-sdk/extensions/slack/src/http/index.d.ts +1 -0
  1197. package/dist/plugin-sdk/extensions/slack/src/http/registry.d.ts +12 -0
  1198. package/dist/plugin-sdk/extensions/slack/src/index.d.ts +7 -0
  1199. package/dist/plugin-sdk/extensions/slack/src/interactive-replies.d.ts +5 -0
  1200. package/dist/plugin-sdk/extensions/slack/src/message-actions.d.ts +5 -0
  1201. package/dist/plugin-sdk/extensions/slack/src/modal-metadata.d.ts +8 -0
  1202. package/dist/plugin-sdk/extensions/slack/src/monitor/allow-list.d.ts +24 -0
  1203. package/dist/plugin-sdk/extensions/slack/src/monitor/auth.d.ts +29 -0
  1204. package/dist/plugin-sdk/extensions/slack/src/monitor/channel-config.d.ts +45 -0
  1205. package/dist/plugin-sdk/extensions/slack/src/monitor/channel-type.d.ts +3 -0
  1206. package/dist/plugin-sdk/extensions/slack/src/monitor/commands.d.ts +9 -0
  1207. package/dist/plugin-sdk/extensions/slack/src/monitor/context.d.ts +107 -0
  1208. package/dist/plugin-sdk/extensions/slack/src/monitor/dm-auth.d.ts +17 -0
  1209. package/dist/plugin-sdk/extensions/slack/src/monitor/events/channels.d.ts +5 -0
  1210. package/dist/plugin-sdk/extensions/slack/src/monitor/events/interactions.block-actions.d.ts +49 -0
  1211. package/dist/plugin-sdk/extensions/slack/src/monitor/events/interactions.d.ts +4 -0
  1212. package/dist/plugin-sdk/extensions/slack/src/monitor/events/interactions.modal.d.ts +68 -0
  1213. package/dist/plugin-sdk/extensions/slack/src/monitor/events/members.d.ts +5 -0
  1214. package/dist/plugin-sdk/extensions/slack/src/monitor/events/message-subtype-handlers.d.ts +13 -0
  1215. package/dist/plugin-sdk/extensions/slack/src/monitor/events/messages.d.ts +6 -0
  1216. package/dist/plugin-sdk/extensions/slack/src/monitor/events/pins.d.ts +5 -0
  1217. package/dist/plugin-sdk/extensions/slack/src/monitor/events/reactions.d.ts +5 -0
  1218. package/dist/plugin-sdk/extensions/slack/src/monitor/events/system-event-context.d.ts +12 -0
  1219. package/dist/plugin-sdk/extensions/slack/src/monitor/events.d.ts +10 -0
  1220. package/dist/plugin-sdk/extensions/slack/src/monitor/external-arg-menu-store.d.ts +18 -0
  1221. package/dist/plugin-sdk/extensions/slack/src/monitor/media.d.ts +66 -0
  1222. package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/dispatch.d.ts +12 -0
  1223. package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/prepare-content.d.ts +14 -0
  1224. package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/prepare-thread-context.d.ts +24 -0
  1225. package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/prepare.d.ts +13 -0
  1226. package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/types.d.ts +23 -0
  1227. package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler.d.ts +22 -0
  1228. package/dist/plugin-sdk/extensions/slack/src/monitor/mrkdwn.d.ts +1 -0
  1229. package/dist/plugin-sdk/extensions/slack/src/monitor/policy.d.ts +5 -0
  1230. package/dist/plugin-sdk/extensions/slack/src/monitor/provider.d.ts +26 -0
  1231. package/dist/plugin-sdk/extensions/slack/src/monitor/reconnect-policy.d.ts +25 -0
  1232. package/dist/plugin-sdk/extensions/slack/src/monitor/replies.d.ts +56 -0
  1233. package/dist/plugin-sdk/extensions/slack/src/monitor/room-context.d.ts +14 -0
  1234. package/dist/plugin-sdk/extensions/slack/src/monitor/slash-commands.runtime.d.ts +11 -0
  1235. package/dist/plugin-sdk/extensions/slack/src/monitor/slash-dispatch.runtime.d.ts +17 -0
  1236. package/dist/plugin-sdk/extensions/slack/src/monitor/slash-skill-commands.runtime.d.ts +3 -0
  1237. package/dist/plugin-sdk/extensions/slack/src/monitor/slash.d.ts +6 -0
  1238. package/dist/plugin-sdk/extensions/slack/src/monitor/thread-resolution.d.ts +12 -0
  1239. package/dist/plugin-sdk/extensions/slack/src/monitor/types.d.ts +113 -0
  1240. package/dist/plugin-sdk/extensions/slack/src/monitor.d.ts +5 -0
  1241. package/dist/plugin-sdk/extensions/slack/src/probe.d.ts +14 -0
  1242. package/dist/plugin-sdk/extensions/slack/src/resolve-allowlist-common.d.ts +29 -0
  1243. package/dist/plugin-sdk/extensions/slack/src/resolve-channels.d.ts +19 -0
  1244. package/dist/plugin-sdk/extensions/slack/src/resolve-users.d.ts +26 -0
  1245. package/dist/plugin-sdk/extensions/slack/src/runtime-api.d.ts +4 -0
  1246. package/dist/plugin-sdk/extensions/slack/src/send.d.ts +24 -0
  1247. package/dist/plugin-sdk/extensions/slack/src/sent-thread-cache.d.ts +3 -0
  1248. package/dist/plugin-sdk/extensions/slack/src/stream-mode.d.ts +23 -0
  1249. package/dist/plugin-sdk/extensions/slack/src/streaming.d.ts +72 -0
  1250. package/dist/plugin-sdk/extensions/slack/src/targets.d.ts +7 -0
  1251. package/dist/plugin-sdk/extensions/slack/src/threading-tool-context.d.ts +10 -0
  1252. package/dist/plugin-sdk/extensions/slack/src/threading.d.ts +29 -0
  1253. package/dist/plugin-sdk/extensions/slack/src/token.d.ts +4 -0
  1254. package/dist/plugin-sdk/extensions/slack/src/truncate.d.ts +1 -0
  1255. package/dist/plugin-sdk/extensions/slack/src/types.d.ts +58 -0
  1256. package/dist/plugin-sdk/extensions/tavily/index.d.ts +8 -0
  1257. package/dist/plugin-sdk/extensions/tavily/src/config.d.ts +14 -0
  1258. package/dist/plugin-sdk/extensions/tavily/src/tavily-client.d.ts +29 -0
  1259. package/dist/plugin-sdk/extensions/tavily/src/tavily-extract-tool.d.ts +14 -0
  1260. package/dist/plugin-sdk/extensions/tavily/src/tavily-search-provider.d.ts +2 -0
  1261. package/dist/plugin-sdk/extensions/tavily/src/tavily-search-tool.d.ts +17 -0
  1262. package/dist/plugin-sdk/extensions/telegram/allow-from.d.ts +1 -0
  1263. package/dist/plugin-sdk/extensions/telegram/api.d.ts +20 -0
  1264. package/dist/plugin-sdk/extensions/telegram/runtime-api.d.ts +14 -0
  1265. package/dist/plugin-sdk/extensions/telegram/src/account-inspect.d.ts +18 -0
  1266. package/dist/plugin-sdk/extensions/telegram/src/accounts.d.ts +31 -0
  1267. package/dist/plugin-sdk/extensions/telegram/src/action-runtime.d.ts +21 -0
  1268. package/dist/plugin-sdk/extensions/telegram/src/allow-from.d.ts +2 -0
  1269. package/dist/plugin-sdk/extensions/telegram/src/allowed-updates.d.ts +4 -0
  1270. package/dist/plugin-sdk/extensions/telegram/src/api-fetch.d.ts +20 -0
  1271. package/dist/plugin-sdk/extensions/telegram/src/api-logging.d.ts +11 -0
  1272. package/dist/plugin-sdk/extensions/telegram/src/approval-buttons.d.ts +2 -0
  1273. package/dist/plugin-sdk/extensions/telegram/src/audit-membership-runtime.d.ts +4 -0
  1274. package/dist/plugin-sdk/extensions/telegram/src/audit.d.ts +33 -0
  1275. package/dist/plugin-sdk/extensions/telegram/src/bot/delivery.d.ts +2 -0
  1276. package/dist/plugin-sdk/extensions/telegram/src/bot/delivery.replies.d.ts +50 -0
  1277. package/dist/plugin-sdk/extensions/telegram/src/bot/delivery.resolve-media.d.ts +8 -0
  1278. package/dist/plugin-sdk/extensions/telegram/src/bot/delivery.send.d.ts +27 -0
  1279. package/dist/plugin-sdk/extensions/telegram/src/bot/helpers.d.ts +147 -0
  1280. package/dist/plugin-sdk/extensions/telegram/src/bot/reply-threading.d.ts +30 -0
  1281. package/dist/plugin-sdk/extensions/telegram/src/bot/types.d.ts +28 -0
  1282. package/dist/plugin-sdk/extensions/telegram/src/bot-access.d.ts +25 -0
  1283. package/dist/plugin-sdk/extensions/telegram/src/bot-deps.d.ts +19 -0
  1284. package/dist/plugin-sdk/extensions/telegram/src/bot-handlers.d.ts +1 -0
  1285. package/dist/plugin-sdk/extensions/telegram/src/bot-handlers.media.d.ts +7 -0
  1286. package/dist/plugin-sdk/extensions/telegram/src/bot-handlers.runtime.d.ts +2 -0
  1287. package/dist/plugin-sdk/extensions/telegram/src/bot-message-context.body.d.ts +39 -0
  1288. package/dist/plugin-sdk/extensions/telegram/src/bot-message-context.d.ts +34 -0
  1289. package/dist/plugin-sdk/extensions/telegram/src/bot-message-context.session.d.ts +41 -0
  1290. package/dist/plugin-sdk/extensions/telegram/src/bot-message-context.types.d.ts +56 -0
  1291. package/dist/plugin-sdk/extensions/telegram/src/bot-message-dispatch.d.ts +31 -0
  1292. package/dist/plugin-sdk/extensions/telegram/src/bot-message.d.ts +20 -0
  1293. package/dist/plugin-sdk/extensions/telegram/src/bot-native-command-menu.d.ts +37 -0
  1294. package/dist/plugin-sdk/extensions/telegram/src/bot-native-commands.d.ts +60 -0
  1295. package/dist/plugin-sdk/extensions/telegram/src/bot-updates.d.ts +31 -0
  1296. package/dist/plugin-sdk/extensions/telegram/src/bot.d.ts +39 -0
  1297. package/dist/plugin-sdk/extensions/telegram/src/bot.runtime.d.ts +4 -0
  1298. package/dist/plugin-sdk/extensions/telegram/src/button-types.d.ts +13 -0
  1299. package/dist/plugin-sdk/extensions/telegram/src/caption.d.ts +5 -0
  1300. package/dist/plugin-sdk/extensions/telegram/src/channel-actions.d.ts +6 -0
  1301. package/dist/plugin-sdk/extensions/telegram/src/conversation-route.d.ts +24 -0
  1302. package/dist/plugin-sdk/extensions/telegram/src/directory-config.d.ts +3 -0
  1303. package/dist/plugin-sdk/extensions/telegram/src/dm-access.d.ts +20 -0
  1304. package/dist/plugin-sdk/extensions/telegram/src/draft-stream.d.ts +48 -0
  1305. package/dist/plugin-sdk/extensions/telegram/src/exec-approvals-handler.d.ts +34 -0
  1306. package/dist/plugin-sdk/extensions/telegram/src/exec-approvals.d.ts +39 -0
  1307. package/dist/plugin-sdk/extensions/telegram/src/fetch.d.ts +23 -0
  1308. package/dist/plugin-sdk/extensions/telegram/src/format.d.ts +19 -0
  1309. package/dist/plugin-sdk/extensions/telegram/src/forum-service-message.d.ts +9 -0
  1310. package/dist/plugin-sdk/extensions/telegram/src/group-access.d.ts +54 -0
  1311. package/dist/plugin-sdk/extensions/telegram/src/group-config-helpers.d.ts +8 -0
  1312. package/dist/plugin-sdk/extensions/telegram/src/group-migration.d.ts +20 -0
  1313. package/dist/plugin-sdk/extensions/telegram/src/group-policy.d.ts +4 -0
  1314. package/dist/plugin-sdk/extensions/telegram/src/inline-buttons.d.ts +11 -0
  1315. package/dist/plugin-sdk/extensions/telegram/src/lane-delivery-state.d.ts +12 -0
  1316. package/dist/plugin-sdk/extensions/telegram/src/lane-delivery-text-deliverer.d.ts +55 -0
  1317. package/dist/plugin-sdk/extensions/telegram/src/lane-delivery.d.ts +2 -0
  1318. package/dist/plugin-sdk/extensions/telegram/src/media-understanding.runtime.d.ts +5 -0
  1319. package/dist/plugin-sdk/extensions/telegram/src/message-tool-schema.d.ts +5 -0
  1320. package/dist/plugin-sdk/extensions/telegram/src/model-buttons.d.ts +84 -0
  1321. package/dist/plugin-sdk/extensions/telegram/src/monitor.d.ts +20 -0
  1322. package/dist/plugin-sdk/extensions/telegram/src/network-config.d.ts +33 -0
  1323. package/dist/plugin-sdk/extensions/telegram/src/network-errors.d.ts +25 -0
  1324. package/dist/plugin-sdk/extensions/telegram/src/normalize.d.ts +2 -0
  1325. package/dist/plugin-sdk/extensions/telegram/src/outbound-adapter.d.ts +14 -0
  1326. package/dist/plugin-sdk/extensions/telegram/src/outbound-params.d.ts +2 -0
  1327. package/dist/plugin-sdk/extensions/telegram/src/polling-session.d.ts +27 -0
  1328. package/dist/plugin-sdk/extensions/telegram/src/probe.d.ts +25 -0
  1329. package/dist/plugin-sdk/extensions/telegram/src/proxy.d.ts +1 -0
  1330. package/dist/plugin-sdk/extensions/telegram/src/reaction-level.d.ts +11 -0
  1331. package/dist/plugin-sdk/extensions/telegram/src/reasoning-lane-coordinator.d.ts +18 -0
  1332. package/dist/plugin-sdk/extensions/telegram/src/send.d.ts +217 -0
  1333. package/dist/plugin-sdk/extensions/telegram/src/sendchataction-401-backoff.d.ts +28 -0
  1334. package/dist/plugin-sdk/extensions/telegram/src/sent-message-cache.d.ts +12 -0
  1335. package/dist/plugin-sdk/extensions/telegram/src/sequential-key.d.ts +25 -0
  1336. package/dist/plugin-sdk/extensions/telegram/src/status-issues.d.ts +2 -0
  1337. package/dist/plugin-sdk/extensions/telegram/src/status-reaction-variants.d.ts +21 -0
  1338. package/dist/plugin-sdk/extensions/telegram/src/sticker-cache.d.ts +46 -0
  1339. package/dist/plugin-sdk/extensions/telegram/src/target-writeback.d.ts +7 -0
  1340. package/dist/plugin-sdk/extensions/telegram/src/targets.d.ts +11 -0
  1341. package/dist/plugin-sdk/extensions/telegram/src/thread-bindings.d.ts +58 -0
  1342. package/dist/plugin-sdk/extensions/telegram/src/token.d.ts +13 -0
  1343. package/dist/plugin-sdk/extensions/telegram/src/update-offset-store.d.ts +15 -0
  1344. package/dist/plugin-sdk/extensions/telegram/src/voice.d.ts +16 -0
  1345. package/dist/plugin-sdk/extensions/telegram/src/webhook.d.ts +21 -0
  1346. package/dist/plugin-sdk/extensions/venice/provider-catalog.d.ts +2 -0
  1347. package/dist/plugin-sdk/extensions/vercel-ai-gateway/provider-catalog.d.ts +2 -0
  1348. package/dist/plugin-sdk/extensions/whatsapp/api.d.ts +7 -0
  1349. package/dist/plugin-sdk/extensions/whatsapp/auth-presence.d.ts +1 -0
  1350. package/dist/plugin-sdk/extensions/whatsapp/light-runtime-api.d.ts +4 -0
  1351. package/dist/plugin-sdk/extensions/whatsapp/login-qr-api.d.ts +1 -0
  1352. package/dist/plugin-sdk/extensions/whatsapp/runtime-api.d.ts +11 -0
  1353. package/dist/plugin-sdk/extensions/whatsapp/src/accounts.d.ts +42 -0
  1354. package/dist/plugin-sdk/extensions/whatsapp/src/action-runtime-target-auth.d.ts +10 -0
  1355. package/dist/plugin-sdk/extensions/whatsapp/src/action-runtime.d.ts +9 -0
  1356. package/dist/plugin-sdk/extensions/whatsapp/src/active-listener.d.ts +25 -0
  1357. package/dist/plugin-sdk/extensions/whatsapp/src/agent-tools-login.d.ts +2 -0
  1358. package/dist/plugin-sdk/extensions/whatsapp/src/auth-store.d.ts +26 -0
  1359. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/constants.d.ts +1 -0
  1360. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/deliver-reply.d.ts +19 -0
  1361. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/heartbeat-runner.d.ts +20 -0
  1362. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/loggers.d.ts +4 -0
  1363. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/mentions.d.ts +19 -0
  1364. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/ack-reaction.d.ts +13 -0
  1365. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/broadcast.d.ts +16 -0
  1366. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/commands.d.ts +2 -0
  1367. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/echo.d.ts +17 -0
  1368. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/group-activation.d.ts +9 -0
  1369. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/group-gating.d.ts +33 -0
  1370. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/group-members.d.ts +6 -0
  1371. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/last-route.d.ts +15 -0
  1372. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/message-line.d.ts +11 -0
  1373. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/on-message.d.ts +24 -0
  1374. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/peer.d.ts +2 -0
  1375. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/process-message.d.ts +40 -0
  1376. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor.d.ts +5 -0
  1377. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/session-snapshot.d.ts +17 -0
  1378. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/types.d.ts +30 -0
  1379. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/util.d.ts +2 -0
  1380. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply.d.ts +1 -0
  1381. package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply.impl.d.ts +6 -0
  1382. package/dist/plugin-sdk/extensions/whatsapp/src/channel.runtime.d.ts +23 -0
  1383. package/dist/plugin-sdk/extensions/whatsapp/src/directory-config.d.ts +3 -0
  1384. package/dist/plugin-sdk/extensions/whatsapp/src/group-policy.d.ts +14 -0
  1385. package/dist/plugin-sdk/extensions/whatsapp/src/inbound/access-control.d.ts +36 -0
  1386. package/dist/plugin-sdk/extensions/whatsapp/src/inbound/dedupe.d.ts +2 -0
  1387. package/dist/plugin-sdk/extensions/whatsapp/src/inbound/extract.d.ts +13 -0
  1388. package/dist/plugin-sdk/extensions/whatsapp/src/inbound/media.d.ts +7 -0
  1389. package/dist/plugin-sdk/extensions/whatsapp/src/inbound/monitor.d.ts +30 -0
  1390. package/dist/plugin-sdk/extensions/whatsapp/src/inbound/send-api.d.ts +22 -0
  1391. package/dist/plugin-sdk/extensions/whatsapp/src/inbound/types.d.ts +42 -0
  1392. package/dist/plugin-sdk/extensions/whatsapp/src/inbound.d.ts +4 -0
  1393. package/dist/plugin-sdk/extensions/whatsapp/src/login-qr.d.ts +19 -0
  1394. package/dist/plugin-sdk/extensions/whatsapp/src/login.d.ts +3 -0
  1395. package/dist/plugin-sdk/extensions/whatsapp/src/media.d.ts +43 -0
  1396. package/dist/plugin-sdk/extensions/whatsapp/src/normalize.d.ts +1 -0
  1397. package/dist/plugin-sdk/extensions/whatsapp/src/qr-image.d.ts +4 -0
  1398. package/dist/plugin-sdk/extensions/whatsapp/src/reconnect.d.ts +12 -0
  1399. package/dist/plugin-sdk/extensions/whatsapp/src/runtime-api.d.ts +3 -0
  1400. package/dist/plugin-sdk/extensions/whatsapp/src/send.d.ts +27 -0
  1401. package/dist/plugin-sdk/extensions/whatsapp/src/session-errors.d.ts +2 -0
  1402. package/dist/plugin-sdk/extensions/whatsapp/src/session.d.ts +17 -0
  1403. package/dist/plugin-sdk/extensions/whatsapp/src/setup-core.d.ts +2 -0
  1404. package/dist/plugin-sdk/extensions/whatsapp/src/setup-surface.d.ts +2 -0
  1405. package/dist/plugin-sdk/extensions/whatsapp/src/vcard.d.ts +6 -0
  1406. package/dist/plugin-sdk/extensions/xai/index.d.ts +8 -0
  1407. package/dist/plugin-sdk/extensions/xai/model-definitions.d.ts +17 -0
  1408. package/dist/plugin-sdk/extensions/xai/onboard.d.ts +5 -0
  1409. package/dist/plugin-sdk/extensions/xai/provider-catalog.d.ts +2 -0
  1410. package/dist/plugin-sdk/extensions/xai/provider-models.d.ts +6 -0
  1411. package/dist/plugin-sdk/extensions/xai/src/web-search-shared.d.ts +69 -0
  1412. package/dist/plugin-sdk/extensions/xai/stream.d.ts +3 -0
  1413. package/dist/plugin-sdk/extensions/xai/web-search.d.ts +10 -0
  1414. package/dist/plugin-sdk/extensions/xiaomi/provider-catalog.d.ts +3 -0
  1415. package/dist/plugin-sdk/extensions/zalo/api.d.ts +2 -0
  1416. package/dist/plugin-sdk/extensions/zalo/runtime-api.d.ts +1 -0
  1417. package/dist/plugin-sdk/extensions/zalo/src/accounts.d.ts +11 -0
  1418. package/dist/plugin-sdk/extensions/zalo/src/runtime-api.d.ts +1 -0
  1419. package/dist/plugin-sdk/extensions/zalo/src/secret-input.d.ts +1 -0
  1420. package/dist/plugin-sdk/extensions/zalo/src/setup-core.d.ts +1 -0
  1421. package/dist/plugin-sdk/extensions/zalo/src/setup-surface.d.ts +3 -0
  1422. package/dist/plugin-sdk/extensions/zalo/src/token.d.ts +8 -0
  1423. package/dist/plugin-sdk/extensions/zalo/src/types.d.ts +46 -0
  1424. package/dist/plugin-sdk/feishu.d.ts +1 -0
  1425. package/dist/plugin-sdk/feishu.js +101 -0
  1426. package/dist/plugin-sdk/gateway-runtime.d.ts +1 -0
  1427. package/dist/plugin-sdk/gateway-runtime.js +46 -0
  1428. package/dist/plugin-sdk/googlechat.d.ts +1 -0
  1429. package/dist/plugin-sdk/googlechat.js +93 -0
  1430. package/dist/plugin-sdk/group-access.d.ts +1 -0
  1431. package/dist/plugin-sdk/group-access.js +2 -0
  1432. package/dist/plugin-sdk/hook-runtime.d.ts +1 -0
  1433. package/dist/plugin-sdk/hook-runtime.js +12 -0
  1434. package/dist/plugin-sdk/image-generation.d.ts +1 -0
  1435. package/dist/plugin-sdk/image-generation.js +51 -0
  1436. package/dist/plugin-sdk/imessage-core.d.ts +1 -0
  1437. package/dist/plugin-sdk/imessage-core.js +214 -0
  1438. package/dist/plugin-sdk/imessage.d.ts +1 -0
  1439. package/dist/plugin-sdk/imessage.js +223 -0
  1440. package/dist/plugin-sdk/index.d.ts +1 -0
  1441. package/dist/plugin-sdk/index.js +55 -0
  1442. package/dist/plugin-sdk/infra-runtime.d.ts +1 -0
  1443. package/dist/plugin-sdk/infra-runtime.js +223 -0
  1444. package/dist/plugin-sdk/interactive-runtime.d.ts +1 -0
  1445. package/dist/plugin-sdk/interactive-runtime.js +3 -0
  1446. package/dist/plugin-sdk/irc.d.ts +1 -0
  1447. package/dist/plugin-sdk/irc.js +232 -0
  1448. package/dist/plugin-sdk/json-store.d.ts +1 -0
  1449. package/dist/plugin-sdk/json-store.js +9 -0
  1450. package/dist/plugin-sdk/keyed-async-queue.d.ts +1 -0
  1451. package/dist/plugin-sdk/keyed-async-queue.js +2 -0
  1452. package/dist/plugin-sdk/lazy-runtime.d.ts +1 -0
  1453. package/dist/plugin-sdk/lazy-runtime.js +2 -0
  1454. package/dist/plugin-sdk/line-core.d.ts +1 -0
  1455. package/dist/plugin-sdk/line-core.js +29 -0
  1456. package/dist/plugin-sdk/line.d.ts +1 -0
  1457. package/dist/plugin-sdk/line.js +22 -0
  1458. package/dist/plugin-sdk/llm-task.d.ts +1 -0
  1459. package/dist/plugin-sdk/llm-task.js +7 -0
  1460. package/dist/plugin-sdk/matrix-runtime-heavy.d.ts +1 -0
  1461. package/dist/plugin-sdk/matrix-runtime-heavy.js +223 -0
  1462. package/dist/plugin-sdk/matrix-runtime-shared.d.ts +1 -0
  1463. package/dist/plugin-sdk/matrix-runtime-shared.js +2 -0
  1464. package/dist/plugin-sdk/matrix.d.ts +1 -0
  1465. package/dist/plugin-sdk/matrix.js +84 -0
  1466. package/dist/plugin-sdk/mattermost.d.ts +1 -0
  1467. package/dist/plugin-sdk/mattermost.js +233 -0
  1468. package/dist/plugin-sdk/media-runtime.d.ts +1 -0
  1469. package/dist/plugin-sdk/media-runtime.js +212 -0
  1470. package/dist/plugin-sdk/media-understanding-runtime.d.ts +1 -0
  1471. package/dist/plugin-sdk/media-understanding-runtime.js +211 -0
  1472. package/dist/plugin-sdk/media-understanding.d.ts +1 -0
  1473. package/dist/plugin-sdk/media-understanding.js +15 -0
  1474. package/dist/plugin-sdk/memory-core.d.ts +1 -0
  1475. package/dist/plugin-sdk/memory-core.js +2 -0
  1476. package/dist/plugin-sdk/memory-lancedb.d.ts +1 -0
  1477. package/dist/plugin-sdk/memory-lancedb.js +2 -0
  1478. package/dist/plugin-sdk/msteams.d.ts +1 -0
  1479. package/dist/plugin-sdk/msteams.js +244 -0
  1480. package/dist/plugin-sdk/nextcloud-talk.d.ts +1 -0
  1481. package/dist/plugin-sdk/nextcloud-talk.js +231 -0
  1482. package/dist/plugin-sdk/nostr.d.ts +1 -0
  1483. package/dist/plugin-sdk/nostr.js +50 -0
  1484. package/dist/plugin-sdk/ollama-setup.d.ts +1 -0
  1485. package/dist/plugin-sdk/ollama-setup.js +33 -0
  1486. package/dist/plugin-sdk/outbound-runtime.d.ts +1 -0
  1487. package/dist/plugin-sdk/outbound-runtime.js +23 -0
  1488. package/dist/plugin-sdk/plugin-entry.d.ts +1 -0
  1489. package/dist/plugin-sdk/plugin-entry.js +3 -0
  1490. package/dist/plugin-sdk/plugin-runtime.d.ts +1 -0
  1491. package/dist/plugin-sdk/plugin-runtime.js +211 -0
  1492. package/dist/plugin-sdk/process-runtime.d.ts +1 -0
  1493. package/dist/plugin-sdk/process-runtime.js +12 -0
  1494. package/dist/plugin-sdk/provider-auth-api-key.d.ts +1 -0
  1495. package/dist/plugin-sdk/provider-auth-api-key.js +53 -0
  1496. package/dist/plugin-sdk/provider-auth-login.d.ts +1 -0
  1497. package/dist/plugin-sdk/provider-auth-login.js +2 -0
  1498. package/dist/plugin-sdk/provider-auth.d.ts +1 -0
  1499. package/dist/plugin-sdk/provider-auth.js +37 -0
  1500. package/dist/plugin-sdk/provider-catalog.d.ts +1 -0
  1501. package/dist/plugin-sdk/provider-catalog.js +2 -0
  1502. package/dist/plugin-sdk/provider-env-vars.d.ts +1 -0
  1503. package/dist/plugin-sdk/provider-env-vars.js +2 -0
  1504. package/dist/plugin-sdk/provider-google.d.ts +1 -0
  1505. package/dist/plugin-sdk/provider-google.js +3 -0
  1506. package/dist/plugin-sdk/provider-models.d.ts +1 -0
  1507. package/dist/plugin-sdk/provider-models.js +27 -0
  1508. package/dist/plugin-sdk/provider-onboard.d.ts +1 -0
  1509. package/dist/plugin-sdk/provider-onboard.js +20 -0
  1510. package/dist/plugin-sdk/provider-setup.d.ts +1 -0
  1511. package/dist/plugin-sdk/provider-setup.js +58 -0
  1512. package/dist/plugin-sdk/provider-stream.d.ts +1 -0
  1513. package/dist/plugin-sdk/provider-stream.js +211 -0
  1514. package/dist/plugin-sdk/provider-usage.d.ts +1 -0
  1515. package/dist/plugin-sdk/provider-usage.js +18 -0
  1516. package/dist/plugin-sdk/provider-web-search.d.ts +1 -0
  1517. package/dist/plugin-sdk/provider-web-search.js +23 -0
  1518. package/dist/plugin-sdk/provider-zai-endpoint.d.ts +1 -0
  1519. package/dist/plugin-sdk/provider-zai-endpoint.js +3 -0
  1520. package/dist/plugin-sdk/reply-history.d.ts +1 -0
  1521. package/dist/plugin-sdk/reply-history.js +23 -0
  1522. package/dist/plugin-sdk/reply-payload.d.ts +1 -0
  1523. package/dist/plugin-sdk/reply-payload.js +2 -0
  1524. package/dist/plugin-sdk/reply-runtime.d.ts +1 -0
  1525. package/dist/plugin-sdk/reply-runtime.js +211 -0
  1526. package/dist/plugin-sdk/request-url.d.ts +1 -0
  1527. package/dist/plugin-sdk/request-url.js +2 -0
  1528. package/dist/plugin-sdk/root-alias.cjs +272 -0
  1529. package/dist/plugin-sdk/routing.d.ts +1 -0
  1530. package/dist/plugin-sdk/routing.js +25 -0
  1531. package/dist/plugin-sdk/runtime-env.d.ts +1 -0
  1532. package/dist/plugin-sdk/runtime-env.js +15 -0
  1533. package/dist/plugin-sdk/runtime-store.d.ts +1 -0
  1534. package/dist/plugin-sdk/runtime-store.js +2 -0
  1535. package/dist/plugin-sdk/runtime.d.ts +1 -0
  1536. package/dist/plugin-sdk/runtime.js +15 -0
  1537. package/dist/plugin-sdk/sandbox.d.ts +1 -0
  1538. package/dist/plugin-sdk/sandbox.js +66 -0
  1539. package/dist/plugin-sdk/secret-input.d.ts +1 -0
  1540. package/dist/plugin-sdk/secret-input.js +3 -0
  1541. package/dist/plugin-sdk/security-runtime.d.ts +1 -0
  1542. package/dist/plugin-sdk/security-runtime.js +18 -0
  1543. package/dist/plugin-sdk/self-hosted-provider-setup.d.ts +1 -0
  1544. package/dist/plugin-sdk/self-hosted-provider-setup.js +33 -0
  1545. package/dist/plugin-sdk/setup-adapter-runtime.d.ts +1 -0
  1546. package/dist/plugin-sdk/setup-adapter-runtime.js +2 -0
  1547. package/dist/plugin-sdk/setup-runtime.d.ts +1 -0
  1548. package/dist/plugin-sdk/setup-runtime.js +17 -0
  1549. package/dist/plugin-sdk/setup-tools.d.ts +1 -0
  1550. package/dist/plugin-sdk/setup-tools.js +21 -0
  1551. package/dist/plugin-sdk/setup.d.ts +1 -0
  1552. package/dist/plugin-sdk/setup.js +26 -0
  1553. package/dist/plugin-sdk/signal.d.ts +1 -0
  1554. package/dist/plugin-sdk/signal.js +220 -0
  1555. package/dist/plugin-sdk/slack-core.d.ts +1 -0
  1556. package/dist/plugin-sdk/slack-core.js +22 -0
  1557. package/dist/plugin-sdk/slack.d.ts +1 -0
  1558. package/dist/plugin-sdk/slack.js +223 -0
  1559. package/dist/plugin-sdk/speech-runtime.d.ts +1 -0
  1560. package/dist/plugin-sdk/speech-runtime.js +213 -0
  1561. package/dist/plugin-sdk/speech.d.ts +1 -0
  1562. package/dist/plugin-sdk/speech.js +212 -0
  1563. package/dist/plugin-sdk/src/acp/control-plane/manager.core.d.ts +86 -0
  1564. package/dist/plugin-sdk/src/acp/control-plane/manager.d.ts +7 -0
  1565. package/dist/plugin-sdk/src/acp/control-plane/manager.identity-reconcile.d.ts +23 -0
  1566. package/dist/plugin-sdk/src/acp/control-plane/manager.runtime-controls.d.ts +14 -0
  1567. package/dist/plugin-sdk/src/acp/control-plane/manager.types.d.ts +109 -0
  1568. package/dist/plugin-sdk/src/acp/control-plane/manager.utils.d.ts +21 -0
  1569. package/dist/plugin-sdk/src/acp/control-plane/runtime-cache.d.ts +38 -0
  1570. package/dist/plugin-sdk/src/acp/control-plane/runtime-options.d.ts +23 -0
  1571. package/dist/plugin-sdk/src/acp/control-plane/session-actor-queue.d.ts +8 -0
  1572. package/dist/plugin-sdk/src/acp/control-plane/spawn.d.ts +25 -0
  1573. package/dist/plugin-sdk/src/acp/conversation-id.d.ts +15 -0
  1574. package/dist/plugin-sdk/src/acp/persistent-bindings.lifecycle.d.ts +33 -0
  1575. package/dist/plugin-sdk/src/acp/persistent-bindings.resolve.d.ts +18 -0
  1576. package/dist/plugin-sdk/src/acp/persistent-bindings.types.d.ts +39 -0
  1577. package/dist/plugin-sdk/src/acp/policy.d.ts +10 -0
  1578. package/dist/plugin-sdk/src/acp/runtime/error-text.d.ts +7 -0
  1579. package/dist/plugin-sdk/src/acp/runtime/errors.d.ts +20 -0
  1580. package/dist/plugin-sdk/src/acp/runtime/registry.d.ts +18 -0
  1581. package/dist/plugin-sdk/src/acp/runtime/session-identifiers.d.ts +17 -0
  1582. package/dist/plugin-sdk/src/acp/runtime/session-identity.d.ts +24 -0
  1583. package/dist/plugin-sdk/src/acp/runtime/session-meta.d.ts +31 -0
  1584. package/dist/plugin-sdk/src/acp/runtime/types.d.ts +118 -0
  1585. package/dist/plugin-sdk/src/agents/acp-spawn-parent-stream.d.ts +19 -0
  1586. package/dist/plugin-sdk/src/agents/acp-spawn.d.ts +44 -0
  1587. package/dist/plugin-sdk/src/agents/agent-command.d.ts +11 -0
  1588. package/dist/plugin-sdk/src/agents/agent-paths.d.ts +2 -0
  1589. package/dist/plugin-sdk/src/agents/agent-scope.d.ts +66 -0
  1590. package/dist/plugin-sdk/src/agents/announce-idempotency.d.ts +11 -0
  1591. package/dist/plugin-sdk/src/agents/anthropic-payload-log.d.ts +20 -0
  1592. package/dist/plugin-sdk/src/agents/anthropic-vertex-provider.d.ts +9 -0
  1593. package/dist/plugin-sdk/src/agents/anthropic-vertex-stream.d.ts +11 -0
  1594. package/dist/plugin-sdk/src/agents/api-key-rotation.d.ts +22 -0
  1595. package/dist/plugin-sdk/src/agents/apply-patch-update.d.ts +10 -0
  1596. package/dist/plugin-sdk/src/agents/apply-patch.d.ts +35 -0
  1597. package/dist/plugin-sdk/src/agents/auth-health.d.ts +40 -0
  1598. package/dist/plugin-sdk/src/agents/auth-profiles/constants.d.ts +20 -0
  1599. package/dist/plugin-sdk/src/agents/auth-profiles/credential-state.d.ts +11 -0
  1600. package/dist/plugin-sdk/src/agents/auth-profiles/display.d.ts +7 -0
  1601. package/dist/plugin-sdk/src/agents/auth-profiles/doctor.d.ts +8 -0
  1602. package/dist/plugin-sdk/src/agents/auth-profiles/external-cli-sync.d.ts +12 -0
  1603. package/dist/plugin-sdk/src/agents/auth-profiles/oauth.d.ts +14 -0
  1604. package/dist/plugin-sdk/src/agents/auth-profiles/order.d.ts +21 -0
  1605. package/dist/plugin-sdk/src/agents/auth-profiles/paths.d.ts +4 -0
  1606. package/dist/plugin-sdk/src/agents/auth-profiles/profiles.d.ts +24 -0
  1607. package/dist/plugin-sdk/src/agents/auth-profiles/repair.d.ts +14 -0
  1608. package/dist/plugin-sdk/src/agents/auth-profiles/session-override.d.ts +18 -0
  1609. package/dist/plugin-sdk/src/agents/auth-profiles/state-observation.d.ts +10 -0
  1610. package/dist/plugin-sdk/src/agents/auth-profiles/store.d.ts +22 -0
  1611. package/dist/plugin-sdk/src/agents/auth-profiles/types.d.ts +63 -0
  1612. package/dist/plugin-sdk/src/agents/auth-profiles/upsert-with-lock.d.ts +6 -0
  1613. package/dist/plugin-sdk/src/agents/auth-profiles/usage.d.ts +87 -0
  1614. package/dist/plugin-sdk/src/agents/auth-profiles.d.ts +13 -0
  1615. package/dist/plugin-sdk/src/agents/auth-profiles.runtime.d.ts +3 -0
  1616. package/dist/plugin-sdk/src/agents/bash-process-registry.d.ts +70 -0
  1617. package/dist/plugin-sdk/src/agents/bash-tools.d.ts +4 -0
  1618. package/dist/plugin-sdk/src/agents/bash-tools.exec-approval-followup.d.ts +12 -0
  1619. package/dist/plugin-sdk/src/agents/bash-tools.exec-approval-request.d.ts +70 -0
  1620. package/dist/plugin-sdk/src/agents/bash-tools.exec-host-gateway.d.ts +35 -0
  1621. package/dist/plugin-sdk/src/agents/bash-tools.exec-host-node.d.ts +26 -0
  1622. package/dist/plugin-sdk/src/agents/bash-tools.exec-host-shared.d.ts +143 -0
  1623. package/dist/plugin-sdk/src/agents/bash-tools.exec-runtime.d.ts +81 -0
  1624. package/dist/plugin-sdk/src/agents/bash-tools.exec-types.d.ts +68 -0
  1625. package/dist/plugin-sdk/src/agents/bash-tools.exec.d.ts +6 -0
  1626. package/dist/plugin-sdk/src/agents/bash-tools.process.d.ts +7 -0
  1627. package/dist/plugin-sdk/src/agents/bash-tools.shared.d.ts +56 -0
  1628. package/dist/plugin-sdk/src/agents/bedrock-discovery.d.ts +9 -0
  1629. package/dist/plugin-sdk/src/agents/bootstrap-budget.d.ts +87 -0
  1630. package/dist/plugin-sdk/src/agents/bootstrap-cache.d.ts +11 -0
  1631. package/dist/plugin-sdk/src/agents/bootstrap-files.d.ts +32 -0
  1632. package/dist/plugin-sdk/src/agents/bootstrap-hooks.d.ts +10 -0
  1633. package/dist/plugin-sdk/src/agents/btw.d.ts +24 -0
  1634. package/dist/plugin-sdk/src/agents/byteplus-models.d.ts +79 -0
  1635. package/dist/plugin-sdk/src/agents/cache-trace.d.ts +49 -0
  1636. package/dist/plugin-sdk/src/agents/channel-tools.d.ts +43 -0
  1637. package/dist/plugin-sdk/src/agents/chutes-models.d.ts +25 -0
  1638. package/dist/plugin-sdk/src/agents/chutes-oauth.d.ts +46 -0
  1639. package/dist/plugin-sdk/src/agents/cli-backends.d.ts +8 -0
  1640. package/dist/plugin-sdk/src/agents/cli-credentials.d.ts +83 -0
  1641. package/dist/plugin-sdk/src/agents/cli-runner/bundle-mcp.d.ts +14 -0
  1642. package/dist/plugin-sdk/src/agents/cli-runner/helpers.d.ts +70 -0
  1643. package/dist/plugin-sdk/src/agents/cli-runner/reliability.d.ts +11 -0
  1644. package/dist/plugin-sdk/src/agents/cli-runner.d.ts +44 -0
  1645. package/dist/plugin-sdk/src/agents/cli-session.d.ts +3 -0
  1646. package/dist/plugin-sdk/src/agents/cli-watchdog-defaults.d.ts +11 -0
  1647. package/dist/plugin-sdk/src/agents/cloudflare-ai-gateway.d.ts +22 -0
  1648. package/dist/plugin-sdk/src/agents/command/delivery.d.ts +21 -0
  1649. package/dist/plugin-sdk/src/agents/command/run-context.d.ts +2 -0
  1650. package/dist/plugin-sdk/src/agents/command/session-store.d.ts +17 -0
  1651. package/dist/plugin-sdk/src/agents/command/session.d.ts +33 -0
  1652. package/dist/plugin-sdk/src/agents/command/types.d.ts +95 -0
  1653. package/dist/plugin-sdk/src/agents/command-poll-backoff.d.ts +28 -0
  1654. package/dist/plugin-sdk/src/agents/command-poll-backoff.runtime.d.ts +3 -0
  1655. package/dist/plugin-sdk/src/agents/compaction-real-conversation.d.ts +4 -0
  1656. package/dist/plugin-sdk/src/agents/compaction.d.ts +70 -0
  1657. package/dist/plugin-sdk/src/agents/console-sanitize.d.ts +1 -0
  1658. package/dist/plugin-sdk/src/agents/content-blocks.d.ts +1 -0
  1659. package/dist/plugin-sdk/src/agents/context-cache.d.ts +2 -0
  1660. package/dist/plugin-sdk/src/agents/context-window-guard.d.ts +24 -0
  1661. package/dist/plugin-sdk/src/agents/context.d.ts +37 -0
  1662. package/dist/plugin-sdk/src/agents/current-time.d.ts +17 -0
  1663. package/dist/plugin-sdk/src/agents/custom-api-registry.d.ts +4 -0
  1664. package/dist/plugin-sdk/src/agents/date-time.d.ts +13 -0
  1665. package/dist/plugin-sdk/src/agents/defaults.d.ts +3 -0
  1666. package/dist/plugin-sdk/src/agents/docs-path.d.ts +6 -0
  1667. package/dist/plugin-sdk/src/agents/doubao-models.d.ts +100 -0
  1668. package/dist/plugin-sdk/src/agents/embedded-pi-lsp.d.ts +13 -0
  1669. package/dist/plugin-sdk/src/agents/embedded-pi-mcp.d.ts +10 -0
  1670. package/dist/plugin-sdk/src/agents/failover-error.d.ts +33 -0
  1671. package/dist/plugin-sdk/src/agents/fast-mode.d.ts +19 -0
  1672. package/dist/plugin-sdk/src/agents/glob-pattern.d.ts +18 -0
  1673. package/dist/plugin-sdk/src/agents/huggingface-models.d.ts +17 -0
  1674. package/dist/plugin-sdk/src/agents/identity-avatar.d.ts +15 -0
  1675. package/dist/plugin-sdk/src/agents/identity-file.d.ts +12 -0
  1676. package/dist/plugin-sdk/src/agents/identity.d.ts +28 -0
  1677. package/dist/plugin-sdk/src/agents/image-sanitization.d.ts +8 -0
  1678. package/dist/plugin-sdk/src/agents/internal-events.d.ts +16 -0
  1679. package/dist/plugin-sdk/src/agents/kilocode-models.d.ts +7 -0
  1680. package/dist/plugin-sdk/src/agents/lanes.d.ts +4 -0
  1681. package/dist/plugin-sdk/src/agents/live-auth-keys.d.ts +6 -0
  1682. package/dist/plugin-sdk/src/agents/mcp-stdio.d.ts +16 -0
  1683. package/dist/plugin-sdk/src/agents/memory-search.d.ts +79 -0
  1684. package/dist/plugin-sdk/src/agents/minimax-vlm.d.ts +9 -0
  1685. package/dist/plugin-sdk/src/agents/model-alias-lines.d.ts +2 -0
  1686. package/dist/plugin-sdk/src/agents/model-auth-env-vars.d.ts +2 -0
  1687. package/dist/plugin-sdk/src/agents/model-auth-env.d.ts +5 -0
  1688. package/dist/plugin-sdk/src/agents/model-auth-label.d.ts +8 -0
  1689. package/dist/plugin-sdk/src/agents/model-auth-markers.d.ts +20 -0
  1690. package/dist/plugin-sdk/src/agents/model-auth.d.ts +51 -0
  1691. package/dist/plugin-sdk/src/agents/model-catalog.d.ts +30 -0
  1692. package/dist/plugin-sdk/src/agents/model-catalog.runtime.d.ts +1 -0
  1693. package/dist/plugin-sdk/src/agents/model-compat.d.ts +20 -0
  1694. package/dist/plugin-sdk/src/agents/model-fallback-observation.d.ts +22 -0
  1695. package/dist/plugin-sdk/src/agents/model-fallback.d.ts +53 -0
  1696. package/dist/plugin-sdk/src/agents/model-fallback.types.d.ts +13 -0
  1697. package/dist/plugin-sdk/src/agents/model-id-normalization.d.ts +2 -0
  1698. package/dist/plugin-sdk/src/agents/model-ref-profile.d.ts +4 -0
  1699. package/dist/plugin-sdk/src/agents/model-selection.d.ts +125 -0
  1700. package/dist/plugin-sdk/src/agents/model-suppression.d.ts +8 -0
  1701. package/dist/plugin-sdk/src/agents/model-suppression.runtime.d.ts +3 -0
  1702. package/dist/plugin-sdk/src/agents/model-tool-support.d.ts +3 -0
  1703. package/dist/plugin-sdk/src/agents/models-config.d.ts +6 -0
  1704. package/dist/plugin-sdk/src/agents/models-config.merge.d.ts +17 -0
  1705. package/dist/plugin-sdk/src/agents/models-config.plan.d.ts +17 -0
  1706. package/dist/plugin-sdk/src/agents/models-config.providers.d.ts +50 -0
  1707. package/dist/plugin-sdk/src/agents/models-config.providers.discovery.d.ts +19 -0
  1708. package/dist/plugin-sdk/src/agents/models-config.runtime.d.ts +1 -0
  1709. package/dist/plugin-sdk/src/agents/ollama-defaults.d.ts +1 -0
  1710. package/dist/plugin-sdk/src/agents/ollama-models.d.ts +48 -0
  1711. package/dist/plugin-sdk/src/agents/ollama-stream.d.ts +58 -0
  1712. package/dist/plugin-sdk/src/agents/openai-ws-connection.d.ts +323 -0
  1713. package/dist/plugin-sdk/src/agents/openai-ws-stream.d.ts +70 -0
  1714. package/dist/plugin-sdk/src/agents/openclaw-tools.d.ts +63 -0
  1715. package/dist/plugin-sdk/src/agents/openclaw-tools.runtime.d.ts +1 -0
  1716. package/dist/plugin-sdk/src/agents/opencode-zen-models.d.ts +46 -0
  1717. package/dist/plugin-sdk/src/agents/owner-display.d.ts +19 -0
  1718. package/dist/plugin-sdk/src/agents/path-policy.d.ts +10 -0
  1719. package/dist/plugin-sdk/src/agents/payload-redaction.d.ts +5 -0
  1720. package/dist/plugin-sdk/src/agents/pi-auth-credentials.d.ts +16 -0
  1721. package/dist/plugin-sdk/src/agents/pi-bundle-lsp-runtime.d.ts +24 -0
  1722. package/dist/plugin-sdk/src/agents/pi-bundle-mcp-tools.d.ts +12 -0
  1723. package/dist/plugin-sdk/src/agents/pi-embedded-block-chunker.d.ts +19 -0
  1724. package/dist/plugin-sdk/src/agents/pi-embedded-error-observation.d.ts +19 -0
  1725. package/dist/plugin-sdk/src/agents/pi-embedded-helpers/bootstrap.d.ts +33 -0
  1726. package/dist/plugin-sdk/src/agents/pi-embedded-helpers/errors.d.ts +45 -0
  1727. package/dist/plugin-sdk/src/agents/pi-embedded-helpers/failover-matches.d.ts +8 -0
  1728. package/dist/plugin-sdk/src/agents/pi-embedded-helpers/google.d.ts +3 -0
  1729. package/dist/plugin-sdk/src/agents/pi-embedded-helpers/images.d.ts +21 -0
  1730. package/dist/plugin-sdk/src/agents/pi-embedded-helpers/messaging-dedupe.d.ts +10 -0
  1731. package/dist/plugin-sdk/src/agents/pi-embedded-helpers/openai.d.ts +17 -0
  1732. package/dist/plugin-sdk/src/agents/pi-embedded-helpers/thinking.d.ts +5 -0
  1733. package/dist/plugin-sdk/src/agents/pi-embedded-helpers/turns.d.ts +21 -0
  1734. package/dist/plugin-sdk/src/agents/pi-embedded-helpers/types.d.ts +5 -0
  1735. package/dist/plugin-sdk/src/agents/pi-embedded-helpers.d.ts +11 -0
  1736. package/dist/plugin-sdk/src/agents/pi-embedded-messaging.d.ts +9 -0
  1737. package/dist/plugin-sdk/src/agents/pi-embedded-payloads.d.ts +9 -0
  1738. package/dist/plugin-sdk/src/agents/pi-embedded-runner/abort.d.ts +6 -0
  1739. package/dist/plugin-sdk/src/agents/pi-embedded-runner/anthropic-stream-wrappers.d.ts +16 -0
  1740. package/dist/plugin-sdk/src/agents/pi-embedded-runner/cache-ttl.d.ts +9 -0
  1741. package/dist/plugin-sdk/src/agents/pi-embedded-runner/compact.d.ts +75 -0
  1742. package/dist/plugin-sdk/src/agents/pi-embedded-runner/compact.runtime.d.ts +3 -0
  1743. package/dist/plugin-sdk/src/agents/pi-embedded-runner/compaction-runtime-context.d.ts +50 -0
  1744. package/dist/plugin-sdk/src/agents/pi-embedded-runner/compaction-safety-timeout.d.ts +7 -0
  1745. package/dist/plugin-sdk/src/agents/pi-embedded-runner/context-engine-maintenance.d.ts +25 -0
  1746. package/dist/plugin-sdk/src/agents/pi-embedded-runner/extensions.d.ts +12 -0
  1747. package/dist/plugin-sdk/src/agents/pi-embedded-runner/extra-params.d.ts +24 -0
  1748. package/dist/plugin-sdk/src/agents/pi-embedded-runner/google-stream-wrappers.d.ts +8 -0
  1749. package/dist/plugin-sdk/src/agents/pi-embedded-runner/google.d.ts +43 -0
  1750. package/dist/plugin-sdk/src/agents/pi-embedded-runner/history.d.ts +18 -0
  1751. package/dist/plugin-sdk/src/agents/pi-embedded-runner/lanes.d.ts +3 -0
  1752. package/dist/plugin-sdk/src/agents/pi-embedded-runner/logger.d.ts +1 -0
  1753. package/dist/plugin-sdk/src/agents/pi-embedded-runner/message-action-discovery-input.d.ts +24 -0
  1754. package/dist/plugin-sdk/src/agents/pi-embedded-runner/model.d.ts +37 -0
  1755. package/dist/plugin-sdk/src/agents/pi-embedded-runner/model.provider-normalization.d.ts +9 -0
  1756. package/dist/plugin-sdk/src/agents/pi-embedded-runner/moonshot-stream-wrappers.d.ts +19 -0
  1757. package/dist/plugin-sdk/src/agents/pi-embedded-runner/openai-stream-wrappers.d.ts +11 -0
  1758. package/dist/plugin-sdk/src/agents/pi-embedded-runner/openrouter-model-capabilities.d.ts +53 -0
  1759. package/dist/plugin-sdk/src/agents/pi-embedded-runner/proxy-stream-wrappers.d.ts +6 -0
  1760. package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/attempt.d.ts +69 -0
  1761. package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/compaction-retry-aggregate-timeout.d.ts +13 -0
  1762. package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/compaction-timeout.d.ts +29 -0
  1763. package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/failover-observation.d.ts +20 -0
  1764. package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/history-image-prune.d.ts +7 -0
  1765. package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/images.d.ts +83 -0
  1766. package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/params.d.ts +138 -0
  1767. package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/payloads.d.ts +43 -0
  1768. package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/types.d.ts +70 -0
  1769. package/dist/plugin-sdk/src/agents/pi-embedded-runner/run.d.ts +3 -0
  1770. package/dist/plugin-sdk/src/agents/pi-embedded-runner/runs.d.ts +51 -0
  1771. package/dist/plugin-sdk/src/agents/pi-embedded-runner/sandbox-info.d.ts +4 -0
  1772. package/dist/plugin-sdk/src/agents/pi-embedded-runner/session-manager-cache.d.ts +2 -0
  1773. package/dist/plugin-sdk/src/agents/pi-embedded-runner/session-manager-init.d.ts +17 -0
  1774. package/dist/plugin-sdk/src/agents/pi-embedded-runner/session-truncation.d.ts +38 -0
  1775. package/dist/plugin-sdk/src/agents/pi-embedded-runner/skills-runtime.d.ts +10 -0
  1776. package/dist/plugin-sdk/src/agents/pi-embedded-runner/stream-payload-utils.d.ts +2 -0
  1777. package/dist/plugin-sdk/src/agents/pi-embedded-runner/system-prompt.d.ts +55 -0
  1778. package/dist/plugin-sdk/src/agents/pi-embedded-runner/thinking.d.ts +17 -0
  1779. package/dist/plugin-sdk/src/agents/pi-embedded-runner/tool-name-allowlist.d.ts +6 -0
  1780. package/dist/plugin-sdk/src/agents/pi-embedded-runner/tool-result-char-estimator.d.ts +10 -0
  1781. package/dist/plugin-sdk/src/agents/pi-embedded-runner/tool-result-context-guard.d.ts +9 -0
  1782. package/dist/plugin-sdk/src/agents/pi-embedded-runner/tool-result-truncation.d.ts +84 -0
  1783. package/dist/plugin-sdk/src/agents/pi-embedded-runner/tool-split.d.ts +11 -0
  1784. package/dist/plugin-sdk/src/agents/pi-embedded-runner/transcript-rewrite.d.ts +22 -0
  1785. package/dist/plugin-sdk/src/agents/pi-embedded-runner/types.d.ts +89 -0
  1786. package/dist/plugin-sdk/src/agents/pi-embedded-runner/utils.d.ts +5 -0
  1787. package/dist/plugin-sdk/src/agents/pi-embedded-runner/wait-for-idle-before-flush.d.ts +15 -0
  1788. package/dist/plugin-sdk/src/agents/pi-embedded-runner/zai-stream-wrappers.d.ts +7 -0
  1789. package/dist/plugin-sdk/src/agents/pi-embedded-runner.d.ts +12 -0
  1790. package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.d.ts +34 -0
  1791. package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.compaction.d.ts +8 -0
  1792. package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.d.ts +2 -0
  1793. package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.lifecycle.d.ts +4 -0
  1794. package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.messages.d.ts +35 -0
  1795. package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.tools.d.ts +18 -0
  1796. package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.types.d.ts +154 -0
  1797. package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.raw-stream.d.ts +1 -0
  1798. package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.tools.d.ts +26 -0
  1799. package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.types.d.ts +47 -0
  1800. package/dist/plugin-sdk/src/agents/pi-embedded-utils.d.ts +41 -0
  1801. package/dist/plugin-sdk/src/agents/pi-embedded.d.ts +2 -0
  1802. package/dist/plugin-sdk/src/agents/pi-extensions/compaction-instructions.d.ts +25 -0
  1803. package/dist/plugin-sdk/src/agents/pi-extensions/compaction-safeguard-runtime.d.ts +20 -0
  1804. package/dist/plugin-sdk/src/agents/pi-extensions/compaction-safeguard.d.ts +75 -0
  1805. package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning/extension.d.ts +2 -0
  1806. package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning/pruner.d.ts +10 -0
  1807. package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning/runtime.d.ts +9 -0
  1808. package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning/settings.d.ts +44 -0
  1809. package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning/tools.d.ts +2 -0
  1810. package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning.d.ts +10 -0
  1811. package/dist/plugin-sdk/src/agents/pi-extensions/session-manager-runtime-registry.d.ts +4 -0
  1812. package/dist/plugin-sdk/src/agents/pi-model-discovery-runtime.d.ts +1 -0
  1813. package/dist/plugin-sdk/src/agents/pi-model-discovery.d.ts +7 -0
  1814. package/dist/plugin-sdk/src/agents/pi-project-settings.d.ts +31 -0
  1815. package/dist/plugin-sdk/src/agents/pi-settings.d.ts +45 -0
  1816. package/dist/plugin-sdk/src/agents/pi-tool-definition-adapter.d.ts +8 -0
  1817. package/dist/plugin-sdk/src/agents/pi-tools.abort.d.ts +2 -0
  1818. package/dist/plugin-sdk/src/agents/pi-tools.before-tool-call.d.ts +39 -0
  1819. package/dist/plugin-sdk/src/agents/pi-tools.before-tool-call.runtime.d.ts +10 -0
  1820. package/dist/plugin-sdk/src/agents/pi-tools.d.ts +106 -0
  1821. package/dist/plugin-sdk/src/agents/pi-tools.host-edit.d.ts +8 -0
  1822. package/dist/plugin-sdk/src/agents/pi-tools.params.d.ts +34 -0
  1823. package/dist/plugin-sdk/src/agents/pi-tools.policy.d.ts +38 -0
  1824. package/dist/plugin-sdk/src/agents/pi-tools.read.d.ts +43 -0
  1825. package/dist/plugin-sdk/src/agents/pi-tools.schema.d.ts +12 -0
  1826. package/dist/plugin-sdk/src/agents/pi-tools.types.d.ts +2 -0
  1827. package/dist/plugin-sdk/src/agents/provider-attribution.d.ts +19 -0
  1828. package/dist/plugin-sdk/src/agents/provider-capabilities.d.ts +42 -0
  1829. package/dist/plugin-sdk/src/agents/provider-id.d.ts +5 -0
  1830. package/dist/plugin-sdk/src/agents/pty-dsr.d.ts +5 -0
  1831. package/dist/plugin-sdk/src/agents/pty-keys.d.ts +13 -0
  1832. package/dist/plugin-sdk/src/agents/queued-file-writer.d.ts +5 -0
  1833. package/dist/plugin-sdk/src/agents/runtime-plugins.d.ts +6 -0
  1834. package/dist/plugin-sdk/src/agents/sandbox/backend.d.ts +84 -0
  1835. package/dist/plugin-sdk/src/agents/sandbox/bind-spec.d.ts +7 -0
  1836. package/dist/plugin-sdk/src/agents/sandbox/browser-bridges.d.ts +7 -0
  1837. package/dist/plugin-sdk/src/agents/sandbox/browser.d.ts +12 -0
  1838. package/dist/plugin-sdk/src/agents/sandbox/config-hash.d.ts +18 -0
  1839. package/dist/plugin-sdk/src/agents/sandbox/config.d.ts +33 -0
  1840. package/dist/plugin-sdk/src/agents/sandbox/constants.d.ts +21 -0
  1841. package/dist/plugin-sdk/src/agents/sandbox/context.d.ts +20 -0
  1842. package/dist/plugin-sdk/src/agents/sandbox/docker-backend.d.ts +12 -0
  1843. package/dist/plugin-sdk/src/agents/sandbox/docker.d.ts +59 -0
  1844. package/dist/plugin-sdk/src/agents/sandbox/fs-bridge-mutation-helper.d.ts +24 -0
  1845. package/dist/plugin-sdk/src/agents/sandbox/fs-bridge-path-safety.d.ts +60 -0
  1846. package/dist/plugin-sdk/src/agents/sandbox/fs-bridge-shell-command-plans.d.ts +11 -0
  1847. package/dist/plugin-sdk/src/agents/sandbox/fs-bridge.d.ts +56 -0
  1848. package/dist/plugin-sdk/src/agents/sandbox/fs-paths.d.ts +28 -0
  1849. package/dist/plugin-sdk/src/agents/sandbox/hash.d.ts +1 -0
  1850. package/dist/plugin-sdk/src/agents/sandbox/host-paths.d.ts +9 -0
  1851. package/dist/plugin-sdk/src/agents/sandbox/manage.d.ts +13 -0
  1852. package/dist/plugin-sdk/src/agents/sandbox/network-mode.d.ts +7 -0
  1853. package/dist/plugin-sdk/src/agents/sandbox/novnc-auth.d.ts +24 -0
  1854. package/dist/plugin-sdk/src/agents/sandbox/path-utils.d.ts +2 -0
  1855. package/dist/plugin-sdk/src/agents/sandbox/prune.d.ts +2 -0
  1856. package/dist/plugin-sdk/src/agents/sandbox/registry.d.ts +34 -0
  1857. package/dist/plugin-sdk/src/agents/sandbox/remote-fs-bridge.d.ts +12 -0
  1858. package/dist/plugin-sdk/src/agents/sandbox/runtime-status.d.ts +18 -0
  1859. package/dist/plugin-sdk/src/agents/sandbox/sanitize-env-vars.d.ts +14 -0
  1860. package/dist/plugin-sdk/src/agents/sandbox/shared.d.ts +4 -0
  1861. package/dist/plugin-sdk/src/agents/sandbox/ssh-backend.d.ts +3 -0
  1862. package/dist/plugin-sdk/src/agents/sandbox/ssh.d.ts +52 -0
  1863. package/dist/plugin-sdk/src/agents/sandbox/tool-policy.d.ts +4 -0
  1864. package/dist/plugin-sdk/src/agents/sandbox/types.d.ts +98 -0
  1865. package/dist/plugin-sdk/src/agents/sandbox/types.docker.d.ts +4 -0
  1866. package/dist/plugin-sdk/src/agents/sandbox/validate-sandbox-security.d.ts +68 -0
  1867. package/dist/plugin-sdk/src/agents/sandbox/workspace-mounts.d.ts +8 -0
  1868. package/dist/plugin-sdk/src/agents/sandbox/workspace.d.ts +1 -0
  1869. package/dist/plugin-sdk/src/agents/sandbox-media-paths.d.ts +17 -0
  1870. package/dist/plugin-sdk/src/agents/sandbox-paths.d.ts +24 -0
  1871. package/dist/plugin-sdk/src/agents/sandbox-tool-policy.d.ts +8 -0
  1872. package/dist/plugin-sdk/src/agents/sandbox.d.ts +15 -0
  1873. package/dist/plugin-sdk/src/agents/sanitize-for-prompt.d.ts +21 -0
  1874. package/dist/plugin-sdk/src/agents/schema/clean-for-gemini.d.ts +2 -0
  1875. package/dist/plugin-sdk/src/agents/schema/clean-for-xai.d.ts +2 -0
  1876. package/dist/plugin-sdk/src/agents/schema/typebox.d.ts +14 -0
  1877. package/dist/plugin-sdk/src/agents/self-hosted-provider-defaults.d.ts +8 -0
  1878. package/dist/plugin-sdk/src/agents/session-dirs.d.ts +3 -0
  1879. package/dist/plugin-sdk/src/agents/session-file-repair.d.ts +11 -0
  1880. package/dist/plugin-sdk/src/agents/session-slug.d.ts +1 -0
  1881. package/dist/plugin-sdk/src/agents/session-tool-result-guard-wrapper.d.ts +19 -0
  1882. package/dist/plugin-sdk/src/agents/session-tool-result-guard.d.ts +44 -0
  1883. package/dist/plugin-sdk/src/agents/session-tool-result-state.d.ts +17 -0
  1884. package/dist/plugin-sdk/src/agents/session-transcript-repair.d.ts +33 -0
  1885. package/dist/plugin-sdk/src/agents/session-write-lock.d.ts +53 -0
  1886. package/dist/plugin-sdk/src/agents/sglang-defaults.d.ts +4 -0
  1887. package/dist/plugin-sdk/src/agents/shell-utils.d.ts +9 -0
  1888. package/dist/plugin-sdk/src/agents/simple-completion-transport.d.ts +6 -0
  1889. package/dist/plugin-sdk/src/agents/skills/bundled-dir.d.ts +7 -0
  1890. package/dist/plugin-sdk/src/agents/skills/config.d.ts +13 -0
  1891. package/dist/plugin-sdk/src/agents/skills/env-overrides.d.ts +12 -0
  1892. package/dist/plugin-sdk/src/agents/skills/filter.d.ts +3 -0
  1893. package/dist/plugin-sdk/src/agents/skills/frontmatter.d.ts +6 -0
  1894. package/dist/plugin-sdk/src/agents/skills/plugin-skills.d.ts +5 -0
  1895. package/dist/plugin-sdk/src/agents/skills/refresh.d.ts +19 -0
  1896. package/dist/plugin-sdk/src/agents/skills/serialize.d.ts +1 -0
  1897. package/dist/plugin-sdk/src/agents/skills/types.d.ts +87 -0
  1898. package/dist/plugin-sdk/src/agents/skills/workspace.d.ts +51 -0
  1899. package/dist/plugin-sdk/src/agents/skills.d.ts +7 -0
  1900. package/dist/plugin-sdk/src/agents/spawned-context.d.ts +30 -0
  1901. package/dist/plugin-sdk/src/agents/stable-stringify.d.ts +1 -0
  1902. package/dist/plugin-sdk/src/agents/stream-message-shared.d.ts +35 -0
  1903. package/dist/plugin-sdk/src/agents/subagent-announce-dispatch.d.ts +22 -0
  1904. package/dist/plugin-sdk/src/agents/subagent-announce-queue.d.ts +29 -0
  1905. package/dist/plugin-sdk/src/agents/subagent-announce.d.ts +48 -0
  1906. package/dist/plugin-sdk/src/agents/subagent-attachments.d.ts +39 -0
  1907. package/dist/plugin-sdk/src/agents/subagent-capabilities.d.ts +37 -0
  1908. package/dist/plugin-sdk/src/agents/subagent-control.d.ts +176 -0
  1909. package/dist/plugin-sdk/src/agents/subagent-depth.d.ts +11 -0
  1910. package/dist/plugin-sdk/src/agents/subagent-lifecycle-events.d.ts +18 -0
  1911. package/dist/plugin-sdk/src/agents/subagent-orphan-recovery.d.ts +41 -0
  1912. package/dist/plugin-sdk/src/agents/subagent-registry-cleanup.d.ts +25 -0
  1913. package/dist/plugin-sdk/src/agents/subagent-registry-completion.d.ts +15 -0
  1914. package/dist/plugin-sdk/src/agents/subagent-registry-queries.d.ts +17 -0
  1915. package/dist/plugin-sdk/src/agents/subagent-registry-runtime.d.ts +1 -0
  1916. package/dist/plugin-sdk/src/agents/subagent-registry-state.d.ts +7 -0
  1917. package/dist/plugin-sdk/src/agents/subagent-registry.d.ts +62 -0
  1918. package/dist/plugin-sdk/src/agents/subagent-registry.store.d.ts +5 -0
  1919. package/dist/plugin-sdk/src/agents/subagent-registry.types.d.ts +62 -0
  1920. package/dist/plugin-sdk/src/agents/subagent-spawn.d.ts +71 -0
  1921. package/dist/plugin-sdk/src/agents/synthetic-models.d.ts +160 -0
  1922. package/dist/plugin-sdk/src/agents/system-prompt-params.d.ts +30 -0
  1923. package/dist/plugin-sdk/src/agents/system-prompt-report.d.ts +22 -0
  1924. package/dist/plugin-sdk/src/agents/system-prompt.d.ts +72 -0
  1925. package/dist/plugin-sdk/src/agents/timeout.d.ts +8 -0
  1926. package/dist/plugin-sdk/src/agents/together-models.d.ts +4 -0
  1927. package/dist/plugin-sdk/src/agents/tool-call-id.d.ts +27 -0
  1928. package/dist/plugin-sdk/src/agents/tool-catalog.d.ts +35 -0
  1929. package/dist/plugin-sdk/src/agents/tool-display-common.d.ts +69 -0
  1930. package/dist/plugin-sdk/src/agents/tool-display.d.ts +15 -0
  1931. package/dist/plugin-sdk/src/agents/tool-fs-policy.d.ts +17 -0
  1932. package/dist/plugin-sdk/src/agents/tool-images.d.ts +11 -0
  1933. package/dist/plugin-sdk/src/agents/tool-loop-detection.d.ts +55 -0
  1934. package/dist/plugin-sdk/src/agents/tool-mutation.d.ts +14 -0
  1935. package/dist/plugin-sdk/src/agents/tool-policy-match.d.ts +3 -0
  1936. package/dist/plugin-sdk/src/agents/tool-policy-pipeline.d.ts +27 -0
  1937. package/dist/plugin-sdk/src/agents/tool-policy-shared.d.ts +11 -0
  1938. package/dist/plugin-sdk/src/agents/tool-policy.d.ts +33 -0
  1939. package/dist/plugin-sdk/src/agents/tool-summaries.d.ts +2 -0
  1940. package/dist/plugin-sdk/src/agents/tools/agent-step.d.ts +15 -0
  1941. package/dist/plugin-sdk/src/agents/tools/agents-list-tool.d.ts +6 -0
  1942. package/dist/plugin-sdk/src/agents/tools/browser-tool.actions.d.ts +34 -0
  1943. package/dist/plugin-sdk/src/agents/tools/browser-tool.d.ts +6 -0
  1944. package/dist/plugin-sdk/src/agents/tools/browser-tool.schema.d.ts +75 -0
  1945. package/dist/plugin-sdk/src/agents/tools/canvas-tool.d.ts +5 -0
  1946. package/dist/plugin-sdk/src/agents/tools/common.d.ts +81 -0
  1947. package/dist/plugin-sdk/src/agents/tools/cron-tool.d.ts +11 -0
  1948. package/dist/plugin-sdk/src/agents/tools/gateway-tool.d.ts +6 -0
  1949. package/dist/plugin-sdk/src/agents/tools/gateway.d.ts +15 -0
  1950. package/dist/plugin-sdk/src/agents/tools/image-generate-tool.d.ts +19 -0
  1951. package/dist/plugin-sdk/src/agents/tools/image-tool.d.ts +35 -0
  1952. package/dist/plugin-sdk/src/agents/tools/image-tool.helpers.d.ts +19 -0
  1953. package/dist/plugin-sdk/src/agents/tools/media-tool-shared.d.ts +47 -0
  1954. package/dist/plugin-sdk/src/agents/tools/memory-tool.d.ts +10 -0
  1955. package/dist/plugin-sdk/src/agents/tools/message-tool.d.ts +21 -0
  1956. package/dist/plugin-sdk/src/agents/tools/model-config.helpers.d.ts +21 -0
  1957. package/dist/plugin-sdk/src/agents/tools/nodes-tool.d.ts +13 -0
  1958. package/dist/plugin-sdk/src/agents/tools/nodes-utils.d.ts +14 -0
  1959. package/dist/plugin-sdk/src/agents/tools/pdf-native-providers.d.ts +24 -0
  1960. package/dist/plugin-sdk/src/agents/tools/pdf-tool.d.ts +23 -0
  1961. package/dist/plugin-sdk/src/agents/tools/pdf-tool.helpers.d.ts +27 -0
  1962. package/dist/plugin-sdk/src/agents/tools/session-status-tool.d.ts +7 -0
  1963. package/dist/plugin-sdk/src/agents/tools/sessions-access.d.ts +42 -0
  1964. package/dist/plugin-sdk/src/agents/tools/sessions-announce-target.d.ts +5 -0
  1965. package/dist/plugin-sdk/src/agents/tools/sessions-helpers.d.ts +73 -0
  1966. package/dist/plugin-sdk/src/agents/tools/sessions-history-tool.d.ts +7 -0
  1967. package/dist/plugin-sdk/src/agents/tools/sessions-list-tool.d.ts +7 -0
  1968. package/dist/plugin-sdk/src/agents/tools/sessions-resolution.d.ts +79 -0
  1969. package/dist/plugin-sdk/src/agents/tools/sessions-send-helpers.d.ts +34 -0
  1970. package/dist/plugin-sdk/src/agents/tools/sessions-send-tool.a2a.d.ts +12 -0
  1971. package/dist/plugin-sdk/src/agents/tools/sessions-send-tool.d.ts +9 -0
  1972. package/dist/plugin-sdk/src/agents/tools/sessions-spawn-tool.d.ts +13 -0
  1973. package/dist/plugin-sdk/src/agents/tools/sessions-yield-tool.d.ts +5 -0
  1974. package/dist/plugin-sdk/src/agents/tools/subagents-tool.d.ts +4 -0
  1975. package/dist/plugin-sdk/src/agents/tools/tool-runtime.helpers.d.ts +9 -0
  1976. package/dist/plugin-sdk/src/agents/tools/tts-tool.d.ts +7 -0
  1977. package/dist/plugin-sdk/src/agents/tools/web-fetch-utils.d.ts +25 -0
  1978. package/dist/plugin-sdk/src/agents/tools/web-fetch-visibility.d.ts +2 -0
  1979. package/dist/plugin-sdk/src/agents/tools/web-fetch.d.ts +39 -0
  1980. package/dist/plugin-sdk/src/agents/tools/web-guarded-fetch.d.ts +16 -0
  1981. package/dist/plugin-sdk/src/agents/tools/web-search-citation-redirect.d.ts +5 -0
  1982. package/dist/plugin-sdk/src/agents/tools/web-search-provider-common.d.ts +41 -0
  1983. package/dist/plugin-sdk/src/agents/tools/web-search-provider-config.d.ts +21 -0
  1984. package/dist/plugin-sdk/src/agents/tools/web-search-provider-credentials.d.ts +5 -0
  1985. package/dist/plugin-sdk/src/agents/tools/web-search.d.ts +13 -0
  1986. package/dist/plugin-sdk/src/agents/tools/web-shared.d.ts +24 -0
  1987. package/dist/plugin-sdk/src/agents/tools/web-tools.d.ts +2 -0
  1988. package/dist/plugin-sdk/src/agents/trace-base.d.ts +10 -0
  1989. package/dist/plugin-sdk/src/agents/transcript-policy.d.ts +24 -0
  1990. package/dist/plugin-sdk/src/agents/usage.d.ts +65 -0
  1991. package/dist/plugin-sdk/src/agents/venice-models.d.ts +369 -0
  1992. package/dist/plugin-sdk/src/agents/vercel-ai-gateway.d.ts +15 -0
  1993. package/dist/plugin-sdk/src/agents/vllm-defaults.d.ts +4 -0
  1994. package/dist/plugin-sdk/src/agents/volc-models.shared.d.ts +62 -0
  1995. package/dist/plugin-sdk/src/agents/workspace-dir.d.ts +2 -0
  1996. package/dist/plugin-sdk/src/agents/workspace-dirs.d.ts +2 -0
  1997. package/dist/plugin-sdk/src/agents/workspace-run.d.ts +18 -0
  1998. package/dist/plugin-sdk/src/agents/workspace-templates.d.ts +6 -0
  1999. package/dist/plugin-sdk/src/agents/workspace.d.ts +45 -0
  2000. package/dist/plugin-sdk/src/auto-reply/chunk.d.ts +45 -0
  2001. package/dist/plugin-sdk/src/auto-reply/command-auth.d.ts +17 -0
  2002. package/dist/plugin-sdk/src/auto-reply/command-detection.d.ts +13 -0
  2003. package/dist/plugin-sdk/src/auto-reply/commands-args.d.ts +3 -0
  2004. package/dist/plugin-sdk/src/auto-reply/commands-registry.d.ts +54 -0
  2005. package/dist/plugin-sdk/src/auto-reply/commands-registry.data.d.ts +3 -0
  2006. package/dist/plugin-sdk/src/auto-reply/commands-registry.runtime.d.ts +1 -0
  2007. package/dist/plugin-sdk/src/auto-reply/commands-registry.types.d.ts +67 -0
  2008. package/dist/plugin-sdk/src/auto-reply/commands-text-routing.d.ts +3 -0
  2009. package/dist/plugin-sdk/src/auto-reply/dispatch.d.ts +32 -0
  2010. package/dist/plugin-sdk/src/auto-reply/envelope.d.ts +60 -0
  2011. package/dist/plugin-sdk/src/auto-reply/fallback-state.d.ts +55 -0
  2012. package/dist/plugin-sdk/src/auto-reply/group-activation.d.ts +6 -0
  2013. package/dist/plugin-sdk/src/auto-reply/heartbeat-reply-payload.d.ts +2 -0
  2014. package/dist/plugin-sdk/src/auto-reply/heartbeat.d.ts +26 -0
  2015. package/dist/plugin-sdk/src/auto-reply/inbound-debounce.d.ts +18 -0
  2016. package/dist/plugin-sdk/src/auto-reply/media-note.d.ts +2 -0
  2017. package/dist/plugin-sdk/src/auto-reply/model-runtime.d.ts +17 -0
  2018. package/dist/plugin-sdk/src/auto-reply/model.d.ts +8 -0
  2019. package/dist/plugin-sdk/src/auto-reply/reply/abort-cutoff.d.ts +22 -0
  2020. package/dist/plugin-sdk/src/auto-reply/reply/abort-cutoff.runtime.d.ts +7 -0
  2021. package/dist/plugin-sdk/src/auto-reply/reply/abort-primitives.d.ts +7 -0
  2022. package/dist/plugin-sdk/src/auto-reply/reply/abort.d.ts +26 -0
  2023. package/dist/plugin-sdk/src/auto-reply/reply/acp-projector.d.ts +21 -0
  2024. package/dist/plugin-sdk/src/auto-reply/reply/acp-reset-target.d.ts +12 -0
  2025. package/dist/plugin-sdk/src/auto-reply/reply/acp-stream-settings.d.ts +24 -0
  2026. package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-execution.d.ts +59 -0
  2027. package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-helpers.d.ts +15 -0
  2028. package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-memory.d.ts +30 -0
  2029. package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-payloads.d.ts +28 -0
  2030. package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-reminder-guard.d.ts +13 -0
  2031. package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-utils.d.ts +214 -0
  2032. package/dist/plugin-sdk/src/auto-reply/reply/agent-runner.d.ts +38 -0
  2033. package/dist/plugin-sdk/src/auto-reply/reply/auto-topic-label-config.d.ts +14 -0
  2034. package/dist/plugin-sdk/src/auto-reply/reply/auto-topic-label.d.ts +26 -0
  2035. package/dist/plugin-sdk/src/auto-reply/reply/bash-command.d.ts +19 -0
  2036. package/dist/plugin-sdk/src/auto-reply/reply/block-reply-coalescer.d.ts +15 -0
  2037. package/dist/plugin-sdk/src/auto-reply/reply/block-reply-pipeline.d.ts +32 -0
  2038. package/dist/plugin-sdk/src/auto-reply/reply/block-streaming.d.ts +38 -0
  2039. package/dist/plugin-sdk/src/auto-reply/reply/body.d.ts +10 -0
  2040. package/dist/plugin-sdk/src/auto-reply/reply/btw-command.d.ts +3 -0
  2041. package/dist/plugin-sdk/src/auto-reply/reply/channel-context.d.ts +23 -0
  2042. package/dist/plugin-sdk/src/auto-reply/reply/command-gates.d.ts +24 -0
  2043. package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/context.d.ts +14 -0
  2044. package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/diagnostics.d.ts +4 -0
  2045. package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/install-hints.d.ts +3 -0
  2046. package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/lifecycle.d.ts +5 -0
  2047. package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/runtime-options.d.ts +9 -0
  2048. package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/shared.d.ts +95 -0
  2049. package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/targets.d.ts +12 -0
  2050. package/dist/plugin-sdk/src/auto-reply/reply/commands-acp.d.ts +2 -0
  2051. package/dist/plugin-sdk/src/auto-reply/reply/commands-allowlist.d.ts +2 -0
  2052. package/dist/plugin-sdk/src/auto-reply/reply/commands-approve.d.ts +2 -0
  2053. package/dist/plugin-sdk/src/auto-reply/reply/commands-bash.d.ts +2 -0
  2054. package/dist/plugin-sdk/src/auto-reply/reply/commands-btw.d.ts +2 -0
  2055. package/dist/plugin-sdk/src/auto-reply/reply/commands-compact.d.ts +2 -0
  2056. package/dist/plugin-sdk/src/auto-reply/reply/commands-config.d.ts +3 -0
  2057. package/dist/plugin-sdk/src/auto-reply/reply/commands-context-report.d.ts +3 -0
  2058. package/dist/plugin-sdk/src/auto-reply/reply/commands-context.d.ts +12 -0
  2059. package/dist/plugin-sdk/src/auto-reply/reply/commands-core.d.ts +13 -0
  2060. package/dist/plugin-sdk/src/auto-reply/reply/commands-core.runtime.d.ts +1 -0
  2061. package/dist/plugin-sdk/src/auto-reply/reply/commands-export-session.d.ts +3 -0
  2062. package/dist/plugin-sdk/src/auto-reply/reply/commands-info.d.ts +11 -0
  2063. package/dist/plugin-sdk/src/auto-reply/reply/commands-mcp.d.ts +2 -0
  2064. package/dist/plugin-sdk/src/auto-reply/reply/commands-models.d.ts +34 -0
  2065. package/dist/plugin-sdk/src/auto-reply/reply/commands-plugin.d.ts +13 -0
  2066. package/dist/plugin-sdk/src/auto-reply/reply/commands-plugins.d.ts +2 -0
  2067. package/dist/plugin-sdk/src/auto-reply/reply/commands-session-abort.d.ts +3 -0
  2068. package/dist/plugin-sdk/src/auto-reply/reply/commands-session-store.d.ts +13 -0
  2069. package/dist/plugin-sdk/src/auto-reply/reply/commands-session.d.ts +9 -0
  2070. package/dist/plugin-sdk/src/auto-reply/reply/commands-setunset-standard.d.ts +10 -0
  2071. package/dist/plugin-sdk/src/auto-reply/reply/commands-setunset.d.ts +34 -0
  2072. package/dist/plugin-sdk/src/auto-reply/reply/commands-slash-parse.d.ts +24 -0
  2073. package/dist/plugin-sdk/src/auto-reply/reply/commands-status.d.ts +27 -0
  2074. package/dist/plugin-sdk/src/auto-reply/reply/commands-status.runtime.d.ts +1 -0
  2075. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-agents.d.ts +3 -0
  2076. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-focus.d.ts +3 -0
  2077. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-help.d.ts +2 -0
  2078. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-info.d.ts +3 -0
  2079. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-kill.d.ts +3 -0
  2080. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-list.d.ts +3 -0
  2081. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-log.d.ts +3 -0
  2082. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-send.d.ts +3 -0
  2083. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-spawn.d.ts +3 -0
  2084. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-unfocus.d.ts +3 -0
  2085. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/shared.d.ts +87 -0
  2086. package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents.d.ts +4 -0
  2087. package/dist/plugin-sdk/src/auto-reply/reply/commands-system-prompt.d.ts +14 -0
  2088. package/dist/plugin-sdk/src/auto-reply/reply/commands-tts.d.ts +2 -0
  2089. package/dist/plugin-sdk/src/auto-reply/reply/commands-types.d.ts +70 -0
  2090. package/dist/plugin-sdk/src/auto-reply/reply/commands.d.ts +4 -0
  2091. package/dist/plugin-sdk/src/auto-reply/reply/commands.runtime.d.ts +1 -0
  2092. package/dist/plugin-sdk/src/auto-reply/reply/config-commands.d.ts +15 -0
  2093. package/dist/plugin-sdk/src/auto-reply/reply/config-value.d.ts +4 -0
  2094. package/dist/plugin-sdk/src/auto-reply/reply/config-write-authorization.d.ts +11 -0
  2095. package/dist/plugin-sdk/src/auto-reply/reply/debug-commands.d.ts +16 -0
  2096. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.auth-profile.d.ts +10 -0
  2097. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.auth.d.ts +11 -0
  2098. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.d.ts +7 -0
  2099. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.defaults.d.ts +10 -0
  2100. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.fast-lane.d.ts +7 -0
  2101. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.impl.d.ts +3 -0
  2102. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.levels.d.ts +26 -0
  2103. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.model-picker.d.ts +13 -0
  2104. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.model-selection.d.ts +23 -0
  2105. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.model.d.ts +44 -0
  2106. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.params.d.ts +52 -0
  2107. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.parse.d.ts +65 -0
  2108. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.persist.d.ts +29 -0
  2109. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.persist.runtime.d.ts +1 -0
  2110. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.queue-validation.d.ts +10 -0
  2111. package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.shared.d.ts +28 -0
  2112. package/dist/plugin-sdk/src/auto-reply/reply/directive-parsing.d.ts +5 -0
  2113. package/dist/plugin-sdk/src/auto-reply/reply/directives.d.ts +44 -0
  2114. package/dist/plugin-sdk/src/auto-reply/reply/discord-parent-channel.d.ts +1 -0
  2115. package/dist/plugin-sdk/src/auto-reply/reply/dispatch-acp-delivery.d.ts +29 -0
  2116. package/dist/plugin-sdk/src/auto-reply/reply/dispatch-acp.d.ts +32 -0
  2117. package/dist/plugin-sdk/src/auto-reply/reply/dispatch-from-config.d.ts +16 -0
  2118. package/dist/plugin-sdk/src/auto-reply/reply/dispatcher-registry.d.ts +24 -0
  2119. package/dist/plugin-sdk/src/auto-reply/reply/elevated-allowlist-matcher.d.ts +20 -0
  2120. package/dist/plugin-sdk/src/auto-reply/reply/elevated-unavailable.d.ts +8 -0
  2121. package/dist/plugin-sdk/src/auto-reply/reply/exec/directive.d.ts +20 -0
  2122. package/dist/plugin-sdk/src/auto-reply/reply/exec.d.ts +1 -0
  2123. package/dist/plugin-sdk/src/auto-reply/reply/followup-runner.d.ts +16 -0
  2124. package/dist/plugin-sdk/src/auto-reply/reply/get-reply-directives-apply.d.ts +67 -0
  2125. package/dist/plugin-sdk/src/auto-reply/reply/get-reply-directives-utils.d.ts +3 -0
  2126. package/dist/plugin-sdk/src/auto-reply/reply/get-reply-directives.d.ts +93 -0
  2127. package/dist/plugin-sdk/src/auto-reply/reply/get-reply-inline-actions.d.ts +62 -0
  2128. package/dist/plugin-sdk/src/auto-reply/reply/get-reply-run.d.ts +69 -0
  2129. package/dist/plugin-sdk/src/auto-reply/reply/get-reply.d.ts +7 -0
  2130. package/dist/plugin-sdk/src/auto-reply/reply/groups.d.ts +26 -0
  2131. package/dist/plugin-sdk/src/auto-reply/reply/history.d.ts +72 -0
  2132. package/dist/plugin-sdk/src/auto-reply/reply/inbound-context.d.ts +8 -0
  2133. package/dist/plugin-sdk/src/auto-reply/reply/inbound-dedupe.d.ts +8 -0
  2134. package/dist/plugin-sdk/src/auto-reply/reply/inbound-meta.d.ts +4 -0
  2135. package/dist/plugin-sdk/src/auto-reply/reply/inbound-text.d.ts +5 -0
  2136. package/dist/plugin-sdk/src/auto-reply/reply/line-directives.d.ts +22 -0
  2137. package/dist/plugin-sdk/src/auto-reply/reply/matrix-context.d.ts +13 -0
  2138. package/dist/plugin-sdk/src/auto-reply/reply/mcp-commands.d.ts +15 -0
  2139. package/dist/plugin-sdk/src/auto-reply/reply/memory-flush.d.ts +63 -0
  2140. package/dist/plugin-sdk/src/auto-reply/reply/mentions.d.ts +19 -0
  2141. package/dist/plugin-sdk/src/auto-reply/reply/message-preprocess-hooks.d.ts +7 -0
  2142. package/dist/plugin-sdk/src/auto-reply/reply/model-selection.d.ts +67 -0
  2143. package/dist/plugin-sdk/src/auto-reply/reply/normalize-reply.d.ts +14 -0
  2144. package/dist/plugin-sdk/src/auto-reply/reply/origin-routing.d.ts +13 -0
  2145. package/dist/plugin-sdk/src/auto-reply/reply/plugins-commands.d.ts +16 -0
  2146. package/dist/plugin-sdk/src/auto-reply/reply/post-compaction-context.d.ts +15 -0
  2147. package/dist/plugin-sdk/src/auto-reply/reply/provider-dispatcher.d.ts +19 -0
  2148. package/dist/plugin-sdk/src/auto-reply/reply/queue/cleanup.d.ts +6 -0
  2149. package/dist/plugin-sdk/src/auto-reply/reply/queue/directive.d.ts +15 -0
  2150. package/dist/plugin-sdk/src/auto-reply/reply/queue/drain.d.ts +5 -0
  2151. package/dist/plugin-sdk/src/auto-reply/reply/queue/enqueue.d.ts +4 -0
  2152. package/dist/plugin-sdk/src/auto-reply/reply/queue/normalize.d.ts +3 -0
  2153. package/dist/plugin-sdk/src/auto-reply/reply/queue/settings.d.ts +2 -0
  2154. package/dist/plugin-sdk/src/auto-reply/reply/queue/state.d.ts +20 -0
  2155. package/dist/plugin-sdk/src/auto-reply/reply/queue/types.d.ts +87 -0
  2156. package/dist/plugin-sdk/src/auto-reply/reply/queue-policy.d.ts +8 -0
  2157. package/dist/plugin-sdk/src/auto-reply/reply/queue.d.ts +8 -0
  2158. package/dist/plugin-sdk/src/auto-reply/reply/reply-delivery.d.ts +28 -0
  2159. package/dist/plugin-sdk/src/auto-reply/reply/reply-directives.d.ts +14 -0
  2160. package/dist/plugin-sdk/src/auto-reply/reply/reply-dispatcher.d.ts +57 -0
  2161. package/dist/plugin-sdk/src/auto-reply/reply/reply-elevated.d.ts +16 -0
  2162. package/dist/plugin-sdk/src/auto-reply/reply/reply-inline-whitespace.d.ts +1 -0
  2163. package/dist/plugin-sdk/src/auto-reply/reply/reply-inline.d.ts +8 -0
  2164. package/dist/plugin-sdk/src/auto-reply/reply/reply-media-paths.d.ts +7 -0
  2165. package/dist/plugin-sdk/src/auto-reply/reply/reply-payloads.d.ts +28 -0
  2166. package/dist/plugin-sdk/src/auto-reply/reply/reply-reference.d.ts +20 -0
  2167. package/dist/plugin-sdk/src/auto-reply/reply/reply-tags.d.ts +6 -0
  2168. package/dist/plugin-sdk/src/auto-reply/reply/reply-threading.d.ts +9 -0
  2169. package/dist/plugin-sdk/src/auto-reply/reply/response-prefix-template.d.ts +51 -0
  2170. package/dist/plugin-sdk/src/auto-reply/reply/route-reply.d.ts +60 -0
  2171. package/dist/plugin-sdk/src/auto-reply/reply/session-delivery.d.ts +30 -0
  2172. package/dist/plugin-sdk/src/auto-reply/reply/session-fork.d.ts +11 -0
  2173. package/dist/plugin-sdk/src/auto-reply/reply/session-fork.runtime.d.ts +9 -0
  2174. package/dist/plugin-sdk/src/auto-reply/reply/session-hooks.d.ts +32 -0
  2175. package/dist/plugin-sdk/src/auto-reply/reply/session-reset-model.d.ts +25 -0
  2176. package/dist/plugin-sdk/src/auto-reply/reply/session-reset-prompt.d.ts +9 -0
  2177. package/dist/plugin-sdk/src/auto-reply/reply/session-run-accounting.d.ts +12 -0
  2178. package/dist/plugin-sdk/src/auto-reply/reply/session-updates.d.ts +35 -0
  2179. package/dist/plugin-sdk/src/auto-reply/reply/session-usage.d.ts +23 -0
  2180. package/dist/plugin-sdk/src/auto-reply/reply/session.d.ts +26 -0
  2181. package/dist/plugin-sdk/src/auto-reply/reply/slack-directives.d.ts +3 -0
  2182. package/dist/plugin-sdk/src/auto-reply/reply/stage-sandbox-media.d.ts +9 -0
  2183. package/dist/plugin-sdk/src/auto-reply/reply/streaming-directives.d.ts +10 -0
  2184. package/dist/plugin-sdk/src/auto-reply/reply/strip-inbound-meta.d.ts +31 -0
  2185. package/dist/plugin-sdk/src/auto-reply/reply/subagents-utils.d.ts +27 -0
  2186. package/dist/plugin-sdk/src/auto-reply/reply/telegram-context.d.ts +12 -0
  2187. package/dist/plugin-sdk/src/auto-reply/reply/typing-mode.d.ts +30 -0
  2188. package/dist/plugin-sdk/src/auto-reply/reply/typing-policy.d.ts +13 -0
  2189. package/dist/plugin-sdk/src/auto-reply/reply/typing.d.ts +18 -0
  2190. package/dist/plugin-sdk/src/auto-reply/reply/untrusted-context.d.ts +1 -0
  2191. package/dist/plugin-sdk/src/auto-reply/reply.d.ts +6 -0
  2192. package/dist/plugin-sdk/src/auto-reply/send-policy.d.ts +6 -0
  2193. package/dist/plugin-sdk/src/auto-reply/skill-commands-base.d.ts +9 -0
  2194. package/dist/plugin-sdk/src/auto-reply/skill-commands.d.ts +16 -0
  2195. package/dist/plugin-sdk/src/auto-reply/skill-commands.runtime.d.ts +1 -0
  2196. package/dist/plugin-sdk/src/auto-reply/status.d.ts +61 -0
  2197. package/dist/plugin-sdk/src/auto-reply/templating.d.ts +190 -0
  2198. package/dist/plugin-sdk/src/auto-reply/thinking.d.ts +13 -0
  2199. package/dist/plugin-sdk/src/auto-reply/thinking.shared.d.ts +33 -0
  2200. package/dist/plugin-sdk/src/auto-reply/tokens.d.ts +10 -0
  2201. package/dist/plugin-sdk/src/auto-reply/tool-meta.d.ts +8 -0
  2202. package/dist/plugin-sdk/src/auto-reply/types.d.ts +95 -0
  2203. package/dist/plugin-sdk/src/bindings/records.d.ts +10 -0
  2204. package/dist/plugin-sdk/src/browser/bridge-auth-registry.d.ts +8 -0
  2205. package/dist/plugin-sdk/src/browser/bridge-server.d.ts +24 -0
  2206. package/dist/plugin-sdk/src/browser/cdp-proxy-bypass.d.ts +31 -0
  2207. package/dist/plugin-sdk/src/browser/cdp-timeouts.d.ts +26 -0
  2208. package/dist/plugin-sdk/src/browser/cdp.d.ts +125 -0
  2209. package/dist/plugin-sdk/src/browser/cdp.helpers.d.ts +29 -0
  2210. package/dist/plugin-sdk/src/browser/chrome-mcp.d.ts +127 -0
  2211. package/dist/plugin-sdk/src/browser/chrome-mcp.snapshot.d.ts +26 -0
  2212. package/dist/plugin-sdk/src/browser/chrome.d.ts +21 -0
  2213. package/dist/plugin-sdk/src/browser/chrome.executables.d.ts +15 -0
  2214. package/dist/plugin-sdk/src/browser/chrome.profile-decoration.d.ts +10 -0
  2215. package/dist/plugin-sdk/src/browser/client-actions-core.d.ts +159 -0
  2216. package/dist/plugin-sdk/src/browser/client-actions-observe.d.ts +68 -0
  2217. package/dist/plugin-sdk/src/browser/client-actions-state.d.ts +93 -0
  2218. package/dist/plugin-sdk/src/browser/client-actions-types.d.ts +18 -0
  2219. package/dist/plugin-sdk/src/browser/client-actions-url.d.ts +2 -0
  2220. package/dist/plugin-sdk/src/browser/client-actions.d.ts +4 -0
  2221. package/dist/plugin-sdk/src/browser/client-fetch.d.ts +21 -0
  2222. package/dist/plugin-sdk/src/browser/client.d.ts +157 -0
  2223. package/dist/plugin-sdk/src/browser/config.d.ts +46 -0
  2224. package/dist/plugin-sdk/src/browser/constants.d.ts +8 -0
  2225. package/dist/plugin-sdk/src/browser/control-auth.d.ts +13 -0
  2226. package/dist/plugin-sdk/src/browser/control-service.d.ts +5 -0
  2227. package/dist/plugin-sdk/src/browser/csrf.d.ts +8 -0
  2228. package/dist/plugin-sdk/src/browser/errors.d.ts +35 -0
  2229. package/dist/plugin-sdk/src/browser/form-fields.d.ts +8 -0
  2230. package/dist/plugin-sdk/src/browser/http-auth.d.ts +5 -0
  2231. package/dist/plugin-sdk/src/browser/navigation-guard.d.ts +30 -0
  2232. package/dist/plugin-sdk/src/browser/output-atomic.d.ts +5 -0
  2233. package/dist/plugin-sdk/src/browser/paths.d.ts +61 -0
  2234. package/dist/plugin-sdk/src/browser/profile-capabilities.d.ts +30 -0
  2235. package/dist/plugin-sdk/src/browser/profiles-service.d.ts +28 -0
  2236. package/dist/plugin-sdk/src/browser/profiles.d.ts +30 -0
  2237. package/dist/plugin-sdk/src/browser/proxy-files.d.ts +7 -0
  2238. package/dist/plugin-sdk/src/browser/pw-ai-module.d.ts +6 -0
  2239. package/dist/plugin-sdk/src/browser/pw-ai-state.d.ts +2 -0
  2240. package/dist/plugin-sdk/src/browser/pw-ai.d.ts +2 -0
  2241. package/dist/plugin-sdk/src/browser/pw-role-snapshot.d.ts +35 -0
  2242. package/dist/plugin-sdk/src/browser/pw-session.d.ts +164 -0
  2243. package/dist/plugin-sdk/src/browser/pw-session.page-cdp.d.ts +9 -0
  2244. package/dist/plugin-sdk/src/browser/pw-tools-core.activity.d.ts +21 -0
  2245. package/dist/plugin-sdk/src/browser/pw-tools-core.d.ts +8 -0
  2246. package/dist/plugin-sdk/src/browser/pw-tools-core.downloads.d.ts +34 -0
  2247. package/dist/plugin-sdk/src/browser/pw-tools-core.interactions.d.ts +135 -0
  2248. package/dist/plugin-sdk/src/browser/pw-tools-core.responses.d.ts +13 -0
  2249. package/dist/plugin-sdk/src/browser/pw-tools-core.shared.d.ts +10 -0
  2250. package/dist/plugin-sdk/src/browser/pw-tools-core.snapshot.d.ts +66 -0
  2251. package/dist/plugin-sdk/src/browser/pw-tools-core.state.d.ts +46 -0
  2252. package/dist/plugin-sdk/src/browser/pw-tools-core.storage.d.ts +47 -0
  2253. package/dist/plugin-sdk/src/browser/pw-tools-core.trace.d.ts +12 -0
  2254. package/dist/plugin-sdk/src/browser/resolved-config-refresh.d.ts +12 -0
  2255. package/dist/plugin-sdk/src/browser/routes/agent.act.d.ts +3 -0
  2256. package/dist/plugin-sdk/src/browser/routes/agent.act.download.d.ts +3 -0
  2257. package/dist/plugin-sdk/src/browser/routes/agent.act.hooks.d.ts +3 -0
  2258. package/dist/plugin-sdk/src/browser/routes/agent.act.shared.d.ts +10 -0
  2259. package/dist/plugin-sdk/src/browser/routes/agent.d.ts +3 -0
  2260. package/dist/plugin-sdk/src/browser/routes/agent.debug.d.ts +3 -0
  2261. package/dist/plugin-sdk/src/browser/routes/agent.shared.d.ts +37 -0
  2262. package/dist/plugin-sdk/src/browser/routes/agent.snapshot.d.ts +12 -0
  2263. package/dist/plugin-sdk/src/browser/routes/agent.snapshot.plan.d.ts +22 -0
  2264. package/dist/plugin-sdk/src/browser/routes/agent.storage.d.ts +14 -0
  2265. package/dist/plugin-sdk/src/browser/routes/basic.d.ts +3 -0
  2266. package/dist/plugin-sdk/src/browser/routes/dispatcher.d.ts +16 -0
  2267. package/dist/plugin-sdk/src/browser/routes/index.d.ts +3 -0
  2268. package/dist/plugin-sdk/src/browser/routes/output-paths.d.ts +10 -0
  2269. package/dist/plugin-sdk/src/browser/routes/path-output.d.ts +1 -0
  2270. package/dist/plugin-sdk/src/browser/routes/tabs.d.ts +3 -0
  2271. package/dist/plugin-sdk/src/browser/routes/types.d.ts +20 -0
  2272. package/dist/plugin-sdk/src/browser/routes/utils.d.ts +15 -0
  2273. package/dist/plugin-sdk/src/browser/runtime-lifecycle.d.ts +15 -0
  2274. package/dist/plugin-sdk/src/browser/safe-filename.d.ts +1 -0
  2275. package/dist/plugin-sdk/src/browser/screenshot.d.ts +9 -0
  2276. package/dist/plugin-sdk/src/browser/server-context.availability.d.ts +19 -0
  2277. package/dist/plugin-sdk/src/browser/server-context.constants.d.ts +7 -0
  2278. package/dist/plugin-sdk/src/browser/server-context.d.ts +4 -0
  2279. package/dist/plugin-sdk/src/browser/server-context.reset.d.ts +20 -0
  2280. package/dist/plugin-sdk/src/browser/server-context.selection.d.ts +16 -0
  2281. package/dist/plugin-sdk/src/browser/server-context.tab-ops.d.ts +13 -0
  2282. package/dist/plugin-sdk/src/browser/server-context.types.d.ts +74 -0
  2283. package/dist/plugin-sdk/src/browser/server-lifecycle.d.ts +10 -0
  2284. package/dist/plugin-sdk/src/browser/server-middleware.d.ts +6 -0
  2285. package/dist/plugin-sdk/src/browser/session-tab-registry.d.ts +30 -0
  2286. package/dist/plugin-sdk/src/browser/snapshot-roles.d.ts +11 -0
  2287. package/dist/plugin-sdk/src/browser/target-id.d.ts +11 -0
  2288. package/dist/plugin-sdk/src/browser/trash.d.ts +1 -0
  2289. package/dist/plugin-sdk/src/browser/url-pattern.d.ts +1 -0
  2290. package/dist/plugin-sdk/src/bundled-web-search-registry.d.ts +10 -0
  2291. package/dist/plugin-sdk/src/channel-web.d.ts +5 -0
  2292. package/dist/plugin-sdk/src/channels/account-snapshot-fields.d.ts +10 -0
  2293. package/dist/plugin-sdk/src/channels/account-summary.d.ts +28 -0
  2294. package/dist/plugin-sdk/src/channels/ack-reactions.d.ts +29 -0
  2295. package/dist/plugin-sdk/src/channels/allow-from.d.ts +16 -0
  2296. package/dist/plugin-sdk/src/channels/allowlist-match.d.ts +42 -0
  2297. package/dist/plugin-sdk/src/channels/allowlists/resolve-utils.d.ts +34 -0
  2298. package/dist/plugin-sdk/src/channels/channel-config.d.ts +39 -0
  2299. package/dist/plugin-sdk/src/channels/chat-type.d.ts +2 -0
  2300. package/dist/plugin-sdk/src/channels/command-gating.d.ts +32 -0
  2301. package/dist/plugin-sdk/src/channels/config-presence.d.ts +4 -0
  2302. package/dist/plugin-sdk/src/channels/conversation-label.d.ts +2 -0
  2303. package/dist/plugin-sdk/src/channels/draft-stream-controls.d.ts +54 -0
  2304. package/dist/plugin-sdk/src/channels/draft-stream-loop.d.ts +13 -0
  2305. package/dist/plugin-sdk/src/channels/ids.d.ts +3 -0
  2306. package/dist/plugin-sdk/src/channels/inbound-debounce-policy.d.ts +18 -0
  2307. package/dist/plugin-sdk/src/channels/location.d.ts +21 -0
  2308. package/dist/plugin-sdk/src/channels/logging.d.ts +20 -0
  2309. package/dist/plugin-sdk/src/channels/mention-gating.d.ts +27 -0
  2310. package/dist/plugin-sdk/src/channels/model-overrides.d.ts +18 -0
  2311. package/dist/plugin-sdk/src/channels/native-command-session-targets.d.ts +12 -0
  2312. package/dist/plugin-sdk/src/channels/plugins/account-action-gate.d.ts +5 -0
  2313. package/dist/plugin-sdk/src/channels/plugins/account-helpers.d.ts +8 -0
  2314. package/dist/plugin-sdk/src/channels/plugins/acp-configured-binding-consumer.d.ts +2 -0
  2315. package/dist/plugin-sdk/src/channels/plugins/acp-stateful-target-driver.d.ts +2 -0
  2316. package/dist/plugin-sdk/src/channels/plugins/actions/reaction-message-id.d.ts +8 -0
  2317. package/dist/plugin-sdk/src/channels/plugins/actions/shared.d.ts +7 -0
  2318. package/dist/plugin-sdk/src/channels/plugins/allowlist-match.d.ts +2 -0
  2319. package/dist/plugin-sdk/src/channels/plugins/binding-provider.d.ts +5 -0
  2320. package/dist/plugin-sdk/src/channels/plugins/binding-registry.d.ts +6 -0
  2321. package/dist/plugin-sdk/src/channels/plugins/binding-routing.d.ts +32 -0
  2322. package/dist/plugin-sdk/src/channels/plugins/binding-targets.d.ts +33 -0
  2323. package/dist/plugin-sdk/src/channels/plugins/binding-types.d.ts +40 -0
  2324. package/dist/plugin-sdk/src/channels/plugins/bluebubbles-actions.d.ts +48 -0
  2325. package/dist/plugin-sdk/src/channels/plugins/channel-config.d.ts +2 -0
  2326. package/dist/plugin-sdk/src/channels/plugins/config-helpers.d.ts +25 -0
  2327. package/dist/plugin-sdk/src/channels/plugins/config-schema.d.ts +20 -0
  2328. package/dist/plugin-sdk/src/channels/plugins/config-writes.d.ts +56 -0
  2329. package/dist/plugin-sdk/src/channels/plugins/configured-binding-builtins.d.ts +2 -0
  2330. package/dist/plugin-sdk/src/channels/plugins/configured-binding-compiler.d.ts +11 -0
  2331. package/dist/plugin-sdk/src/channels/plugins/configured-binding-consumers.d.ts +32 -0
  2332. package/dist/plugin-sdk/src/channels/plugins/configured-binding-match.d.ts +23 -0
  2333. package/dist/plugin-sdk/src/channels/plugins/configured-binding-registry.d.ts +28 -0
  2334. package/dist/plugin-sdk/src/channels/plugins/configured-binding-session-lookup.d.ts +6 -0
  2335. package/dist/plugin-sdk/src/channels/plugins/directory-adapters.d.ts +9 -0
  2336. package/dist/plugin-sdk/src/channels/plugins/directory-config-helpers.d.ts +69 -0
  2337. package/dist/plugin-sdk/src/channels/plugins/directory-types.d.ts +7 -0
  2338. package/dist/plugin-sdk/src/channels/plugins/exec-approval-local.d.ts +8 -0
  2339. package/dist/plugin-sdk/src/channels/plugins/group-policy-warnings.d.ts +126 -0
  2340. package/dist/plugin-sdk/src/channels/plugins/helpers.d.ts +24 -0
  2341. package/dist/plugin-sdk/src/channels/plugins/index.d.ts +4 -0
  2342. package/dist/plugin-sdk/src/channels/plugins/media-limits.d.ts +9 -0
  2343. package/dist/plugin-sdk/src/channels/plugins/media-payload.d.ts +15 -0
  2344. package/dist/plugin-sdk/src/channels/plugins/message-action-discovery.d.ts +77 -0
  2345. package/dist/plugin-sdk/src/channels/plugins/message-action-dispatch.d.ts +3 -0
  2346. package/dist/plugin-sdk/src/channels/plugins/message-action-names.d.ts +2 -0
  2347. package/dist/plugin-sdk/src/channels/plugins/message-capabilities.d.ts +2 -0
  2348. package/dist/plugin-sdk/src/channels/plugins/normalize/imessage.d.ts +2 -0
  2349. package/dist/plugin-sdk/src/channels/plugins/normalize/shared.d.ts +6 -0
  2350. package/dist/plugin-sdk/src/channels/plugins/normalize/signal.d.ts +2 -0
  2351. package/dist/plugin-sdk/src/channels/plugins/normalize/slack.d.ts +2 -0
  2352. package/dist/plugin-sdk/src/channels/plugins/normalize/whatsapp.d.ts +3 -0
  2353. package/dist/plugin-sdk/src/channels/plugins/outbound/direct-text-media.d.ts +39 -0
  2354. package/dist/plugin-sdk/src/channels/plugins/outbound/interactive.d.ts +2 -0
  2355. package/dist/plugin-sdk/src/channels/plugins/outbound/load.d.ts +2 -0
  2356. package/dist/plugin-sdk/src/channels/plugins/pairing-adapters.d.ts +13 -0
  2357. package/dist/plugin-sdk/src/channels/plugins/pairing-message.d.ts +1 -0
  2358. package/dist/plugin-sdk/src/channels/plugins/pairing.d.ts +16 -0
  2359. package/dist/plugin-sdk/src/channels/plugins/registry-loader.d.ts +5 -0
  2360. package/dist/plugin-sdk/src/channels/plugins/registry.d.ts +4 -0
  2361. package/dist/plugin-sdk/src/channels/plugins/runtime-forwarders.d.ts +26 -0
  2362. package/dist/plugin-sdk/src/channels/plugins/setup-group-access-configure.d.ts +22 -0
  2363. package/dist/plugin-sdk/src/channels/plugins/setup-group-access.d.ts +32 -0
  2364. package/dist/plugin-sdk/src/channels/plugins/setup-helpers.d.ts +81 -0
  2365. package/dist/plugin-sdk/src/channels/plugins/setup-wizard-binary.d.ts +34 -0
  2366. package/dist/plugin-sdk/src/channels/plugins/setup-wizard-helpers.d.ts +441 -0
  2367. package/dist/plugin-sdk/src/channels/plugins/setup-wizard-proxy.d.ts +48 -0
  2368. package/dist/plugin-sdk/src/channels/plugins/setup-wizard-types.d.ts +107 -0
  2369. package/dist/plugin-sdk/src/channels/plugins/setup-wizard.d.ts +267 -0
  2370. package/dist/plugin-sdk/src/channels/plugins/stateful-target-builtins.d.ts +2 -0
  2371. package/dist/plugin-sdk/src/channels/plugins/stateful-target-drivers.d.ts +54 -0
  2372. package/dist/plugin-sdk/src/channels/plugins/status-issues/bluebubbles.d.ts +2 -0
  2373. package/dist/plugin-sdk/src/channels/plugins/status-issues/shared.d.ts +29 -0
  2374. package/dist/plugin-sdk/src/channels/plugins/target-parsing.d.ts +7 -0
  2375. package/dist/plugin-sdk/src/channels/plugins/target-resolvers.d.ts +12 -0
  2376. package/dist/plugin-sdk/src/channels/plugins/threading-helpers.d.ts +12 -0
  2377. package/dist/plugin-sdk/src/channels/plugins/types.adapters.d.ts +557 -0
  2378. package/dist/plugin-sdk/src/channels/plugins/types.core.d.ts +522 -0
  2379. package/dist/plugin-sdk/src/channels/plugins/types.d.ts +8 -0
  2380. package/dist/plugin-sdk/src/channels/plugins/types.plugin.d.ts +58 -0
  2381. package/dist/plugin-sdk/src/channels/plugins/whatsapp-heartbeat.d.ts +11 -0
  2382. package/dist/plugin-sdk/src/channels/plugins/whatsapp-shared.d.ts +21 -0
  2383. package/dist/plugin-sdk/src/channels/read-only-account-inspect.d.ts +12 -0
  2384. package/dist/plugin-sdk/src/channels/read-only-account-inspect.discord.runtime.d.ts +3 -0
  2385. package/dist/plugin-sdk/src/channels/read-only-account-inspect.slack.runtime.d.ts +3 -0
  2386. package/dist/plugin-sdk/src/channels/read-only-account-inspect.telegram.runtime.d.ts +3 -0
  2387. package/dist/plugin-sdk/src/channels/registry.d.ts +15 -0
  2388. package/dist/plugin-sdk/src/channels/reply-prefix.d.ts +25 -0
  2389. package/dist/plugin-sdk/src/channels/run-state-machine.d.ts +19 -0
  2390. package/dist/plugin-sdk/src/channels/sender-label.d.ts +9 -0
  2391. package/dist/plugin-sdk/src/channels/session-envelope.d.ts +10 -0
  2392. package/dist/plugin-sdk/src/channels/session-meta.d.ts +9 -0
  2393. package/dist/plugin-sdk/src/channels/session.d.ts +26 -0
  2394. package/dist/plugin-sdk/src/channels/status-reactions.d.ts +66 -0
  2395. package/dist/plugin-sdk/src/channels/targets.d.ts +57 -0
  2396. package/dist/plugin-sdk/src/channels/thread-binding-id.d.ts +4 -0
  2397. package/dist/plugin-sdk/src/channels/thread-bindings-messages.d.ts +19 -0
  2398. package/dist/plugin-sdk/src/channels/thread-bindings-policy.d.ts +68 -0
  2399. package/dist/plugin-sdk/src/channels/transport/stall-watchdog.d.ts +20 -0
  2400. package/dist/plugin-sdk/src/channels/typing-lifecycle.d.ts +12 -0
  2401. package/dist/plugin-sdk/src/channels/typing-start-guard.d.ts +13 -0
  2402. package/dist/plugin-sdk/src/channels/typing.d.ts +18 -0
  2403. package/dist/plugin-sdk/src/cli/argv.d.ts +27 -0
  2404. package/dist/plugin-sdk/src/cli/cli-name.d.ts +3 -0
  2405. package/dist/plugin-sdk/src/cli/cli-utils.d.ts +19 -0
  2406. package/dist/plugin-sdk/src/cli/command-format.d.ts +1 -0
  2407. package/dist/plugin-sdk/src/cli/command-secret-gateway.d.ts +19 -0
  2408. package/dist/plugin-sdk/src/cli/command-secret-targets.d.ts +16 -0
  2409. package/dist/plugin-sdk/src/cli/deps.d.ts +11 -0
  2410. package/dist/plugin-sdk/src/cli/help-format.d.ts +5 -0
  2411. package/dist/plugin-sdk/src/cli/memory-cli.d.ts +12 -0
  2412. package/dist/plugin-sdk/src/cli/message-secret-scope.d.ts +11 -0
  2413. package/dist/plugin-sdk/src/cli/nodes-camera.d.ts +51 -0
  2414. package/dist/plugin-sdk/src/cli/nodes-canvas.d.ts +10 -0
  2415. package/dist/plugin-sdk/src/cli/nodes-media-utils.d.ts +13 -0
  2416. package/dist/plugin-sdk/src/cli/nodes-run.d.ts +3 -0
  2417. package/dist/plugin-sdk/src/cli/nodes-screen.d.ts +18 -0
  2418. package/dist/plugin-sdk/src/cli/outbound-send-deps.d.ts +4 -0
  2419. package/dist/plugin-sdk/src/cli/outbound-send-mapping.d.ts +13 -0
  2420. package/dist/plugin-sdk/src/cli/parse-bytes.d.ts +4 -0
  2421. package/dist/plugin-sdk/src/cli/parse-duration.d.ts +4 -0
  2422. package/dist/plugin-sdk/src/cli/parse-timeout.d.ts +4 -0
  2423. package/dist/plugin-sdk/src/cli/profile-utils.d.ts +2 -0
  2424. package/dist/plugin-sdk/src/cli/progress.d.ts +24 -0
  2425. package/dist/plugin-sdk/src/cli/prompt.d.ts +1 -0
  2426. package/dist/plugin-sdk/src/cli/send-runtime/discord.d.ts +4 -0
  2427. package/dist/plugin-sdk/src/cli/send-runtime/imessage.d.ts +4 -0
  2428. package/dist/plugin-sdk/src/cli/send-runtime/signal.d.ts +4 -0
  2429. package/dist/plugin-sdk/src/cli/send-runtime/slack.d.ts +4 -0
  2430. package/dist/plugin-sdk/src/cli/send-runtime/telegram.d.ts +4 -0
  2431. package/dist/plugin-sdk/src/cli/send-runtime/whatsapp.d.ts +4 -0
  2432. package/dist/plugin-sdk/src/cli/wait.d.ts +1 -0
  2433. package/dist/plugin-sdk/src/commands/backup-shared.d.ts +32 -0
  2434. package/dist/plugin-sdk/src/commands/chutes-oauth.d.ts +21 -0
  2435. package/dist/plugin-sdk/src/commands/cleanup-utils.d.ts +36 -0
  2436. package/dist/plugin-sdk/src/commands/daemon-runtime.d.ts +8 -0
  2437. package/dist/plugin-sdk/src/commands/health.d.ts +63 -0
  2438. package/dist/plugin-sdk/src/commands/models/shared.d.ts +58 -0
  2439. package/dist/plugin-sdk/src/commands/onboard-types.d.ts +92 -0
  2440. package/dist/plugin-sdk/src/compat/legacy-names.d.ts +8 -0
  2441. package/dist/plugin-sdk/src/config/agent-dirs.d.ts +14 -0
  2442. package/dist/plugin-sdk/src/config/agent-limits.d.ts +6 -0
  2443. package/dist/plugin-sdk/src/config/allowed-values.d.ts +7 -0
  2444. package/dist/plugin-sdk/src/config/backup-rotation.d.ts +32 -0
  2445. package/dist/plugin-sdk/src/config/bindings.d.ts +8 -0
  2446. package/dist/plugin-sdk/src/config/byte-size.d.ts +6 -0
  2447. package/dist/plugin-sdk/src/config/cache-utils.d.ts +10 -0
  2448. package/dist/plugin-sdk/src/config/channel-capabilities.d.ts +6 -0
  2449. package/dist/plugin-sdk/src/config/channel-configured.d.ts +2 -0
  2450. package/dist/plugin-sdk/src/config/commands.d.ts +25 -0
  2451. package/dist/plugin-sdk/src/config/config-paths.d.ts +10 -0
  2452. package/dist/plugin-sdk/src/config/config.d.ts +6 -0
  2453. package/dist/plugin-sdk/src/config/dangerous-name-matching.d.ts +12 -0
  2454. package/dist/plugin-sdk/src/config/defaults.d.ts +18 -0
  2455. package/dist/plugin-sdk/src/config/discord-preview-streaming.d.ts +27 -0
  2456. package/dist/plugin-sdk/src/config/env-preserve.d.ts +10 -0
  2457. package/dist/plugin-sdk/src/config/env-substitution.d.ts +45 -0
  2458. package/dist/plugin-sdk/src/config/env-vars.d.ts +7 -0
  2459. package/dist/plugin-sdk/src/config/gateway-control-ui-origins.d.ts +21 -0
  2460. package/dist/plugin-sdk/src/config/group-policy.d.ts +49 -0
  2461. package/dist/plugin-sdk/src/config/includes.d.ts +43 -0
  2462. package/dist/plugin-sdk/src/config/io.d.ts +79 -0
  2463. package/dist/plugin-sdk/src/config/issue-format.d.ts +14 -0
  2464. package/dist/plugin-sdk/src/config/legacy-migrate.d.ts +5 -0
  2465. package/dist/plugin-sdk/src/config/legacy-web-search.d.ts +8 -0
  2466. package/dist/plugin-sdk/src/config/legacy.d.ts +6 -0
  2467. package/dist/plugin-sdk/src/config/legacy.migrations.d.ts +1 -0
  2468. package/dist/plugin-sdk/src/config/legacy.migrations.part-1.d.ts +2 -0
  2469. package/dist/plugin-sdk/src/config/legacy.migrations.part-2.d.ts +2 -0
  2470. package/dist/plugin-sdk/src/config/legacy.migrations.part-3.d.ts +2 -0
  2471. package/dist/plugin-sdk/src/config/legacy.rules.d.ts +2 -0
  2472. package/dist/plugin-sdk/src/config/legacy.shared.d.ts +20 -0
  2473. package/dist/plugin-sdk/src/config/logging.d.ts +8 -0
  2474. package/dist/plugin-sdk/src/config/markdown-tables.d.ts +8 -0
  2475. package/dist/plugin-sdk/src/config/mcp-config.d.ts +33 -0
  2476. package/dist/plugin-sdk/src/config/merge-patch.d.ts +5 -0
  2477. package/dist/plugin-sdk/src/config/model-input.d.ts +9 -0
  2478. package/dist/plugin-sdk/src/config/normalize-exec-safe-bin.d.ts +2 -0
  2479. package/dist/plugin-sdk/src/config/normalize-paths.d.ts +8 -0
  2480. package/dist/plugin-sdk/src/config/paths.d.ts +57 -0
  2481. package/dist/plugin-sdk/src/config/plugin-auto-enable.d.ts +14 -0
  2482. package/dist/plugin-sdk/src/config/plugins-allowlist.d.ts +2 -0
  2483. package/dist/plugin-sdk/src/config/port-defaults.d.ts +13 -0
  2484. package/dist/plugin-sdk/src/config/prototype-keys.d.ts +1 -0
  2485. package/dist/plugin-sdk/src/config/runtime-group-policy.d.ts +56 -0
  2486. package/dist/plugin-sdk/src/config/runtime-overrides.d.ts +15 -0
  2487. package/dist/plugin-sdk/src/config/sessions/artifacts.d.ts +5 -0
  2488. package/dist/plugin-sdk/src/config/sessions/delivery-info.d.ts +16 -0
  2489. package/dist/plugin-sdk/src/config/sessions/disk-budget.d.ts +28 -0
  2490. package/dist/plugin-sdk/src/config/sessions/explicit-session-key-normalization.d.ts +2 -0
  2491. package/dist/plugin-sdk/src/config/sessions/group.d.ts +11 -0
  2492. package/dist/plugin-sdk/src/config/sessions/main-session.d.ts +42 -0
  2493. package/dist/plugin-sdk/src/config/sessions/main-session.runtime.d.ts +1 -0
  2494. package/dist/plugin-sdk/src/config/sessions/metadata.d.ts +16 -0
  2495. package/dist/plugin-sdk/src/config/sessions/paths.d.ts +23 -0
  2496. package/dist/plugin-sdk/src/config/sessions/reset.d.ts +43 -0
  2497. package/dist/plugin-sdk/src/config/sessions/session-file.d.ts +15 -0
  2498. package/dist/plugin-sdk/src/config/sessions/session-key.d.ts +8 -0
  2499. package/dist/plugin-sdk/src/config/sessions/store-cache.d.ts +19 -0
  2500. package/dist/plugin-sdk/src/config/sessions/store-maintenance.d.ts +62 -0
  2501. package/dist/plugin-sdk/src/config/sessions/store-migrations.d.ts +2 -0
  2502. package/dist/plugin-sdk/src/config/sessions/store-summary.d.ts +6 -0
  2503. package/dist/plugin-sdk/src/config/sessions/store.d.ts +91 -0
  2504. package/dist/plugin-sdk/src/config/sessions/store.runtime.d.ts +1 -0
  2505. package/dist/plugin-sdk/src/config/sessions/targets.d.ts +19 -0
  2506. package/dist/plugin-sdk/src/config/sessions/transcript.d.ts +33 -0
  2507. package/dist/plugin-sdk/src/config/sessions/types.d.ts +259 -0
  2508. package/dist/plugin-sdk/src/config/sessions.d.ts +15 -0
  2509. package/dist/plugin-sdk/src/config/talk.d.ts +18 -0
  2510. package/dist/plugin-sdk/src/config/telegram-custom-commands.d.ts +24 -0
  2511. package/dist/plugin-sdk/src/config/types.acp.d.ts +44 -0
  2512. package/dist/plugin-sdk/src/config/types.agent-defaults.d.ts +354 -0
  2513. package/dist/plugin-sdk/src/config/types.agents-shared.d.ts +33 -0
  2514. package/dist/plugin-sdk/src/config/types.agents.d.ts +94 -0
  2515. package/dist/plugin-sdk/src/config/types.approvals.d.ts +26 -0
  2516. package/dist/plugin-sdk/src/config/types.auth.d.ts +28 -0
  2517. package/dist/plugin-sdk/src/config/types.base.d.ts +216 -0
  2518. package/dist/plugin-sdk/src/config/types.browser.d.ts +71 -0
  2519. package/dist/plugin-sdk/src/config/types.channel-messaging-common.d.ts +46 -0
  2520. package/dist/plugin-sdk/src/config/types.channels.d.ts +63 -0
  2521. package/dist/plugin-sdk/src/config/types.cli.d.ts +12 -0
  2522. package/dist/plugin-sdk/src/config/types.cron.d.ts +55 -0
  2523. package/dist/plugin-sdk/src/config/types.d.ts +34 -0
  2524. package/dist/plugin-sdk/src/config/types.discord.d.ts +345 -0
  2525. package/dist/plugin-sdk/src/config/types.gateway.d.ts +416 -0
  2526. package/dist/plugin-sdk/src/config/types.googlechat.d.ts +115 -0
  2527. package/dist/plugin-sdk/src/config/types.hooks.d.ts +123 -0
  2528. package/dist/plugin-sdk/src/config/types.imessage.d.ts +81 -0
  2529. package/dist/plugin-sdk/src/config/types.installs.d.ts +14 -0
  2530. package/dist/plugin-sdk/src/config/types.irc.d.ts +56 -0
  2531. package/dist/plugin-sdk/src/config/types.mcp.d.ts +13 -0
  2532. package/dist/plugin-sdk/src/config/types.memory.d.ts +59 -0
  2533. package/dist/plugin-sdk/src/config/types.messages.d.ts +163 -0
  2534. package/dist/plugin-sdk/src/config/types.models.d.ts +57 -0
  2535. package/dist/plugin-sdk/src/config/types.msteams.d.ts +111 -0
  2536. package/dist/plugin-sdk/src/config/types.node-host.d.ts +10 -0
  2537. package/dist/plugin-sdk/src/config/types.openclaw.d.ts +141 -0
  2538. package/dist/plugin-sdk/src/config/types.plugins.d.ts +46 -0
  2539. package/dist/plugin-sdk/src/config/types.queue.d.ts +14 -0
  2540. package/dist/plugin-sdk/src/config/types.sandbox.d.ts +122 -0
  2541. package/dist/plugin-sdk/src/config/types.secrets.d.ts +90 -0
  2542. package/dist/plugin-sdk/src/config/types.signal.d.ts +58 -0
  2543. package/dist/plugin-sdk/src/config/types.skills.d.ts +42 -0
  2544. package/dist/plugin-sdk/src/config/types.slack.d.ts +190 -0
  2545. package/dist/plugin-sdk/src/config/types.telegram.d.ts +271 -0
  2546. package/dist/plugin-sdk/src/config/types.tools.d.ts +567 -0
  2547. package/dist/plugin-sdk/src/config/types.tts.d.ts +97 -0
  2548. package/dist/plugin-sdk/src/config/types.whatsapp.d.ts +105 -0
  2549. package/dist/plugin-sdk/src/config/validation.d.ts +35 -0
  2550. package/dist/plugin-sdk/src/config/version.d.ts +8 -0
  2551. package/dist/plugin-sdk/src/config/zod-schema.agent-defaults.d.ts +387 -0
  2552. package/dist/plugin-sdk/src/config/zod-schema.agent-model.d.ts +5 -0
  2553. package/dist/plugin-sdk/src/config/zod-schema.agent-runtime.d.ts +1571 -0
  2554. package/dist/plugin-sdk/src/config/zod-schema.agents.d.ts +803 -0
  2555. package/dist/plugin-sdk/src/config/zod-schema.allowdeny.d.ts +13 -0
  2556. package/dist/plugin-sdk/src/config/zod-schema.approvals.d.ts +15 -0
  2557. package/dist/plugin-sdk/src/config/zod-schema.channels.d.ts +9 -0
  2558. package/dist/plugin-sdk/src/config/zod-schema.core.d.ts +979 -0
  2559. package/dist/plugin-sdk/src/config/zod-schema.d.ts +5313 -0
  2560. package/dist/plugin-sdk/src/config/zod-schema.hooks.d.ts +85 -0
  2561. package/dist/plugin-sdk/src/config/zod-schema.installs.d.ts +34 -0
  2562. package/dist/plugin-sdk/src/config/zod-schema.providers-core.d.ts +4992 -0
  2563. package/dist/plugin-sdk/src/config/zod-schema.providers-whatsapp.d.ts +245 -0
  2564. package/dist/plugin-sdk/src/config/zod-schema.providers.d.ts +2923 -0
  2565. package/dist/plugin-sdk/src/config/zod-schema.secret-input-validation.d.ts +24 -0
  2566. package/dist/plugin-sdk/src/config/zod-schema.sensitive.d.ts +2 -0
  2567. package/dist/plugin-sdk/src/config/zod-schema.session.d.ts +277 -0
  2568. package/dist/plugin-sdk/src/context-engine/delegate.d.ts +15 -0
  2569. package/dist/plugin-sdk/src/context-engine/index.d.ts +6 -0
  2570. package/dist/plugin-sdk/src/context-engine/init.d.ts +1 -0
  2571. package/dist/plugin-sdk/src/context-engine/legacy.d.ts +50 -0
  2572. package/dist/plugin-sdk/src/context-engine/registry.d.ts +47 -0
  2573. package/dist/plugin-sdk/src/context-engine/types.d.ts +206 -0
  2574. package/dist/plugin-sdk/src/cron/delivery.d.ts +32 -0
  2575. package/dist/plugin-sdk/src/cron/isolated-agent/delivery-target.d.ts +26 -0
  2576. package/dist/plugin-sdk/src/cron/legacy-delivery.d.ts +15 -0
  2577. package/dist/plugin-sdk/src/cron/normalize.d.ts +13 -0
  2578. package/dist/plugin-sdk/src/cron/parse.d.ts +1 -0
  2579. package/dist/plugin-sdk/src/cron/payload-migration.d.ts +3 -0
  2580. package/dist/plugin-sdk/src/cron/schedule.d.ts +6 -0
  2581. package/dist/plugin-sdk/src/cron/service/initial-delivery.d.ts +3 -0
  2582. package/dist/plugin-sdk/src/cron/service/jobs.d.ts +32 -0
  2583. package/dist/plugin-sdk/src/cron/service/locked.d.ts +2 -0
  2584. package/dist/plugin-sdk/src/cron/service/normalize.d.ts +18 -0
  2585. package/dist/plugin-sdk/src/cron/service/ops.d.ts +84 -0
  2586. package/dist/plugin-sdk/src/cron/service/state.d.ts +158 -0
  2587. package/dist/plugin-sdk/src/cron/service/store.d.ts +11 -0
  2588. package/dist/plugin-sdk/src/cron/service/timeout-policy.d.ts +13 -0
  2589. package/dist/plugin-sdk/src/cron/service/timer.d.ts +45 -0
  2590. package/dist/plugin-sdk/src/cron/service.d.ts +69 -0
  2591. package/dist/plugin-sdk/src/cron/session-reaper.d.ts +35 -0
  2592. package/dist/plugin-sdk/src/cron/stagger.d.ts +8 -0
  2593. package/dist/plugin-sdk/src/cron/store-migration.d.ts +9 -0
  2594. package/dist/plugin-sdk/src/cron/store.d.ts +10 -0
  2595. package/dist/plugin-sdk/src/cron/types-shared.d.ts +17 -0
  2596. package/dist/plugin-sdk/src/cron/types.d.ts +142 -0
  2597. package/dist/plugin-sdk/src/cron/webhook-url.d.ts +1 -0
  2598. package/dist/plugin-sdk/src/daemon/arg-split.d.ts +4 -0
  2599. package/dist/plugin-sdk/src/daemon/cmd-argv.d.ts +3 -0
  2600. package/dist/plugin-sdk/src/daemon/cmd-set.d.ts +7 -0
  2601. package/dist/plugin-sdk/src/daemon/constants.d.ts +35 -0
  2602. package/dist/plugin-sdk/src/daemon/runtime-binary.d.ts +2 -0
  2603. package/dist/plugin-sdk/src/gateway/auth-mode-policy.d.ts +4 -0
  2604. package/dist/plugin-sdk/src/gateway/auth-rate-limit.d.ts +67 -0
  2605. package/dist/plugin-sdk/src/gateway/auth.d.ts +62 -0
  2606. package/dist/plugin-sdk/src/gateway/call.d.ts +88 -0
  2607. package/dist/plugin-sdk/src/gateway/channel-status-patches.d.ts +6 -0
  2608. package/dist/plugin-sdk/src/gateway/chat-abort.d.ts +46 -0
  2609. package/dist/plugin-sdk/src/gateway/chat-sanitize.d.ts +4 -0
  2610. package/dist/plugin-sdk/src/gateway/client.d.ts +83 -0
  2611. package/dist/plugin-sdk/src/gateway/connection-auth.d.ts +28 -0
  2612. package/dist/plugin-sdk/src/gateway/credential-planner.d.ts +53 -0
  2613. package/dist/plugin-sdk/src/gateway/credentials.d.ts +52 -0
  2614. package/dist/plugin-sdk/src/gateway/device-auth.d.ts +18 -0
  2615. package/dist/plugin-sdk/src/gateway/device-metadata-normalization.d.ts +2 -0
  2616. package/dist/plugin-sdk/src/gateway/exec-approval-manager.d.ts +47 -0
  2617. package/dist/plugin-sdk/src/gateway/method-scopes.d.ts +22 -0
  2618. package/dist/plugin-sdk/src/gateway/model-pricing-cache.d.ts +32 -0
  2619. package/dist/plugin-sdk/src/gateway/net.d.ts +88 -0
  2620. package/dist/plugin-sdk/src/gateway/node-registry.d.ts +60 -0
  2621. package/dist/plugin-sdk/src/gateway/operator-approvals-client.d.ts +6 -0
  2622. package/dist/plugin-sdk/src/gateway/protocol/client-info.d.ts +58 -0
  2623. package/dist/plugin-sdk/src/gateway/protocol/connect-error-details.d.ts +38 -0
  2624. package/dist/plugin-sdk/src/gateway/protocol/index.d.ts +874 -0
  2625. package/dist/plugin-sdk/src/gateway/protocol/schema/agent.d.ts +119 -0
  2626. package/dist/plugin-sdk/src/gateway/protocol/schema/agents-models-skills.d.ts +206 -0
  2627. package/dist/plugin-sdk/src/gateway/protocol/schema/channels.d.ts +229 -0
  2628. package/dist/plugin-sdk/src/gateway/protocol/schema/config.d.ts +110 -0
  2629. package/dist/plugin-sdk/src/gateway/protocol/schema/cron.d.ts +455 -0
  2630. package/dist/plugin-sdk/src/gateway/protocol/schema/devices.d.ts +42 -0
  2631. package/dist/plugin-sdk/src/gateway/protocol/schema/error-codes.d.ts +14 -0
  2632. package/dist/plugin-sdk/src/gateway/protocol/schema/exec-approvals.d.ts +184 -0
  2633. package/dist/plugin-sdk/src/gateway/protocol/schema/frames.d.ts +169 -0
  2634. package/dist/plugin-sdk/src/gateway/protocol/schema/logs-chat.d.ts +53 -0
  2635. package/dist/plugin-sdk/src/gateway/protocol/schema/nodes.d.ts +111 -0
  2636. package/dist/plugin-sdk/src/gateway/protocol/schema/primitives.d.ts +40 -0
  2637. package/dist/plugin-sdk/src/gateway/protocol/schema/protocol-schemas.d.ts +1601 -0
  2638. package/dist/plugin-sdk/src/gateway/protocol/schema/push.d.ts +16 -0
  2639. package/dist/plugin-sdk/src/gateway/protocol/schema/secrets.d.ts +23 -0
  2640. package/dist/plugin-sdk/src/gateway/protocol/schema/sessions.d.ts +112 -0
  2641. package/dist/plugin-sdk/src/gateway/protocol/schema/snapshot.d.ts +69 -0
  2642. package/dist/plugin-sdk/src/gateway/protocol/schema/types.d.ts +137 -0
  2643. package/dist/plugin-sdk/src/gateway/protocol/schema/wizard.d.ts +86 -0
  2644. package/dist/plugin-sdk/src/gateway/protocol/schema.d.ts +18 -0
  2645. package/dist/plugin-sdk/src/gateway/resolve-configured-secret-input-string.d.ts +33 -0
  2646. package/dist/plugin-sdk/src/gateway/security-path.d.ts +20 -0
  2647. package/dist/plugin-sdk/src/gateway/server/ws-types.d.ts +12 -0
  2648. package/dist/plugin-sdk/src/gateway/server-broadcast.d.ts +17 -0
  2649. package/dist/plugin-sdk/src/gateway/server-channels.d.ts +66 -0
  2650. package/dist/plugin-sdk/src/gateway/server-constants.d.ts +11 -0
  2651. package/dist/plugin-sdk/src/gateway/server-methods/types.d.ts +102 -0
  2652. package/dist/plugin-sdk/src/gateway/server-shared.d.ts +7 -0
  2653. package/dist/plugin-sdk/src/gateway/session-archive.fs.d.ts +20 -0
  2654. package/dist/plugin-sdk/src/gateway/session-utils.d.ts +108 -0
  2655. package/dist/plugin-sdk/src/gateway/session-utils.fs.d.ts +33 -0
  2656. package/dist/plugin-sdk/src/gateway/session-utils.types.d.ts +76 -0
  2657. package/dist/plugin-sdk/src/gateway/startup-auth.d.ts +20 -0
  2658. package/dist/plugin-sdk/src/gateway/ws-log.d.ts +5 -0
  2659. package/dist/plugin-sdk/src/gateway/ws-logging.d.ts +4 -0
  2660. package/dist/plugin-sdk/src/globals.d.ts +11 -0
  2661. package/dist/plugin-sdk/src/hooks/fire-and-forget.d.ts +1 -0
  2662. package/dist/plugin-sdk/src/hooks/internal-hooks.d.ts +216 -0
  2663. package/dist/plugin-sdk/src/hooks/message-hook-mappers.d.ts +76 -0
  2664. package/dist/plugin-sdk/src/hooks/types.d.ts +62 -0
  2665. package/dist/plugin-sdk/src/image-generation/provider-registry.d.ts +4 -0
  2666. package/dist/plugin-sdk/src/image-generation/providers/fal.d.ts +2 -0
  2667. package/dist/plugin-sdk/src/image-generation/providers/google.d.ts +2 -0
  2668. package/dist/plugin-sdk/src/image-generation/providers/openai.d.ts +2 -0
  2669. package/dist/plugin-sdk/src/image-generation/runtime.d.ts +27 -0
  2670. package/dist/plugin-sdk/src/image-generation/types.d.ts +64 -0
  2671. package/dist/plugin-sdk/src/infra/abort-signal.d.ts +1 -0
  2672. package/dist/plugin-sdk/src/infra/agent-events.d.ts +24 -0
  2673. package/dist/plugin-sdk/src/infra/archive-path.d.ts +12 -0
  2674. package/dist/plugin-sdk/src/infra/archive-staging.d.ts +24 -0
  2675. package/dist/plugin-sdk/src/infra/archive.d.ts +53 -0
  2676. package/dist/plugin-sdk/src/infra/backoff.d.ts +8 -0
  2677. package/dist/plugin-sdk/src/infra/backup-create.d.ts +29 -0
  2678. package/dist/plugin-sdk/src/infra/binaries.d.ts +3 -0
  2679. package/dist/plugin-sdk/src/infra/boundary-file-read.d.ts +34 -0
  2680. package/dist/plugin-sdk/src/infra/boundary-path.d.ts +38 -0
  2681. package/dist/plugin-sdk/src/infra/brew.d.ts +8 -0
  2682. package/dist/plugin-sdk/src/infra/channel-activity.d.ts +18 -0
  2683. package/dist/plugin-sdk/src/infra/channel-summary.d.ts +7 -0
  2684. package/dist/plugin-sdk/src/infra/cli-root-options.d.ts +3 -0
  2685. package/dist/plugin-sdk/src/infra/dedupe.d.ts +13 -0
  2686. package/dist/plugin-sdk/src/infra/device-auth-store.d.ts +18 -0
  2687. package/dist/plugin-sdk/src/infra/device-bootstrap.d.ts +41 -0
  2688. package/dist/plugin-sdk/src/infra/device-identity.d.ts +11 -0
  2689. package/dist/plugin-sdk/src/infra/device-pairing.d.ts +126 -0
  2690. package/dist/plugin-sdk/src/infra/diagnostic-events.d.ts +140 -0
  2691. package/dist/plugin-sdk/src/infra/diagnostic-flags.d.ts +4 -0
  2692. package/dist/plugin-sdk/src/infra/dotenv.d.ts +3 -0
  2693. package/dist/plugin-sdk/src/infra/env.d.ts +11 -0
  2694. package/dist/plugin-sdk/src/infra/errors.d.ts +13 -0
  2695. package/dist/plugin-sdk/src/infra/exec-allowlist-pattern.d.ts +1 -0
  2696. package/dist/plugin-sdk/src/infra/exec-approval-command-display.d.ts +6 -0
  2697. package/dist/plugin-sdk/src/infra/exec-approval-reply.d.ts +31 -0
  2698. package/dist/plugin-sdk/src/infra/exec-approval-session-target.d.ts +16 -0
  2699. package/dist/plugin-sdk/src/infra/exec-approval-surface.d.ts +20 -0
  2700. package/dist/plugin-sdk/src/infra/exec-approvals-allowlist.d.ts +64 -0
  2701. package/dist/plugin-sdk/src/infra/exec-approvals-analysis.d.ts +79 -0
  2702. package/dist/plugin-sdk/src/infra/exec-approvals.d.ts +147 -0
  2703. package/dist/plugin-sdk/src/infra/exec-command-resolution.d.ts +46 -0
  2704. package/dist/plugin-sdk/src/infra/exec-obfuscation-detect.d.ts +12 -0
  2705. package/dist/plugin-sdk/src/infra/exec-safe-bin-policy-profiles.d.ts +24 -0
  2706. package/dist/plugin-sdk/src/infra/exec-safe-bin-policy-validator.d.ts +2 -0
  2707. package/dist/plugin-sdk/src/infra/exec-safe-bin-policy.d.ts +2 -0
  2708. package/dist/plugin-sdk/src/infra/exec-safe-bin-runtime-policy.d.ts +25 -0
  2709. package/dist/plugin-sdk/src/infra/exec-safe-bin-trust.d.ts +23 -0
  2710. package/dist/plugin-sdk/src/infra/exec-safety.d.ts +1 -0
  2711. package/dist/plugin-sdk/src/infra/exec-wrapper-resolution.d.ts +48 -0
  2712. package/dist/plugin-sdk/src/infra/executable-path.d.ts +6 -0
  2713. package/dist/plugin-sdk/src/infra/fetch.d.ts +2 -0
  2714. package/dist/plugin-sdk/src/infra/file-identity.d.ts +5 -0
  2715. package/dist/plugin-sdk/src/infra/file-lock.d.ts +2 -0
  2716. package/dist/plugin-sdk/src/infra/format-time/format-datetime.d.ts +35 -0
  2717. package/dist/plugin-sdk/src/infra/format-time/format-duration.d.ts +23 -0
  2718. package/dist/plugin-sdk/src/infra/format-time/format-relative.d.ts +39 -0
  2719. package/dist/plugin-sdk/src/infra/fs-pinned-write-helper.d.ts +18 -0
  2720. package/dist/plugin-sdk/src/infra/fs-safe.d.ts +87 -0
  2721. package/dist/plugin-sdk/src/infra/gemini-auth.d.ts +16 -0
  2722. package/dist/plugin-sdk/src/infra/git-commit.d.ts +14 -0
  2723. package/dist/plugin-sdk/src/infra/git-root.d.ts +7 -0
  2724. package/dist/plugin-sdk/src/infra/hardlink-guards.d.ts +6 -0
  2725. package/dist/plugin-sdk/src/infra/heartbeat-events.d.ts +22 -0
  2726. package/dist/plugin-sdk/src/infra/heartbeat-reason.d.ts +5 -0
  2727. package/dist/plugin-sdk/src/infra/heartbeat-summary.d.ts +16 -0
  2728. package/dist/plugin-sdk/src/infra/heartbeat-visibility.d.ts +17 -0
  2729. package/dist/plugin-sdk/src/infra/heartbeat-wake.d.ts +33 -0
  2730. package/dist/plugin-sdk/src/infra/home-dir.d.ts +17 -0
  2731. package/dist/plugin-sdk/src/infra/host-env-security.d.ts +40 -0
  2732. package/dist/plugin-sdk/src/infra/http-body.d.ts +46 -0
  2733. package/dist/plugin-sdk/src/infra/json-file.d.ts +2 -0
  2734. package/dist/plugin-sdk/src/infra/json-files.d.ts +12 -0
  2735. package/dist/plugin-sdk/src/infra/json-utf8-bytes.d.ts +1 -0
  2736. package/dist/plugin-sdk/src/infra/jsonl-socket.d.ts +6 -0
  2737. package/dist/plugin-sdk/src/infra/machine-name.d.ts +1 -0
  2738. package/dist/plugin-sdk/src/infra/map-size.d.ts +1 -0
  2739. package/dist/plugin-sdk/src/infra/matrix-legacy-crypto.d.ts +41 -0
  2740. package/dist/plugin-sdk/src/infra/matrix-legacy-state.d.ts +30 -0
  2741. package/dist/plugin-sdk/src/infra/matrix-migration-config.d.ts +48 -0
  2742. package/dist/plugin-sdk/src/infra/matrix-migration-snapshot.d.ts +25 -0
  2743. package/dist/plugin-sdk/src/infra/matrix-plugin-helper.d.ts +29 -0
  2744. package/dist/plugin-sdk/src/infra/net/fetch-guard.d.ts +37 -0
  2745. package/dist/plugin-sdk/src/infra/net/hostname.d.ts +1 -0
  2746. package/dist/plugin-sdk/src/infra/net/proxy-env.d.ts +10 -0
  2747. package/dist/plugin-sdk/src/infra/net/proxy-fetch.d.ts +15 -0
  2748. package/dist/plugin-sdk/src/infra/net/ssrf.d.ts +55 -0
  2749. package/dist/plugin-sdk/src/infra/net/undici-global-dispatcher.d.ts +6 -0
  2750. package/dist/plugin-sdk/src/infra/node-pairing.d.ts +53 -0
  2751. package/dist/plugin-sdk/src/infra/node-shell.d.ts +1 -0
  2752. package/dist/plugin-sdk/src/infra/npm-registry-spec.d.ts +19 -0
  2753. package/dist/plugin-sdk/src/infra/openclaw-exec-env.d.ts +4 -0
  2754. package/dist/plugin-sdk/src/infra/openclaw-root.d.ts +10 -0
  2755. package/dist/plugin-sdk/src/infra/outbound/abort.d.ts +8 -0
  2756. package/dist/plugin-sdk/src/infra/outbound/agent-delivery.d.ts +46 -0
  2757. package/dist/plugin-sdk/src/infra/outbound/base-session-key.d.ts +9 -0
  2758. package/dist/plugin-sdk/src/infra/outbound/bound-delivery-router.d.ts +16 -0
  2759. package/dist/plugin-sdk/src/infra/outbound/channel-adapters.d.ts +14 -0
  2760. package/dist/plugin-sdk/src/infra/outbound/channel-resolution.d.ts +8 -0
  2761. package/dist/plugin-sdk/src/infra/outbound/channel-selection.d.ts +17 -0
  2762. package/dist/plugin-sdk/src/infra/outbound/channel-target.d.ts +6 -0
  2763. package/dist/plugin-sdk/src/infra/outbound/conversation-id.d.ts +4 -0
  2764. package/dist/plugin-sdk/src/infra/outbound/deliver-runtime.d.ts +1 -0
  2765. package/dist/plugin-sdk/src/infra/outbound/deliver.d.ts +49 -0
  2766. package/dist/plugin-sdk/src/infra/outbound/delivery-queue.d.ts +89 -0
  2767. package/dist/plugin-sdk/src/infra/outbound/directory-cache.d.ts +24 -0
  2768. package/dist/plugin-sdk/src/infra/outbound/envelope.d.ts +16 -0
  2769. package/dist/plugin-sdk/src/infra/outbound/format.d.ts +39 -0
  2770. package/dist/plugin-sdk/src/infra/outbound/identity.d.ts +9 -0
  2771. package/dist/plugin-sdk/src/infra/outbound/message-action-normalization.d.ts +6 -0
  2772. package/dist/plugin-sdk/src/infra/outbound/message-action-params.d.ts +36 -0
  2773. package/dist/plugin-sdk/src/infra/outbound/message-action-runner.d.ts +76 -0
  2774. package/dist/plugin-sdk/src/infra/outbound/message-action-spec.d.ts +7 -0
  2775. package/dist/plugin-sdk/src/infra/outbound/message.d.ts +84 -0
  2776. package/dist/plugin-sdk/src/infra/outbound/mirror.d.ts +13 -0
  2777. package/dist/plugin-sdk/src/infra/outbound/outbound-policy.d.ts +32 -0
  2778. package/dist/plugin-sdk/src/infra/outbound/outbound-send-service.d.ts +65 -0
  2779. package/dist/plugin-sdk/src/infra/outbound/outbound-session.d.ts +31 -0
  2780. package/dist/plugin-sdk/src/infra/outbound/payloads.d.ts +23 -0
  2781. package/dist/plugin-sdk/src/infra/outbound/sanitize-text.d.ts +23 -0
  2782. package/dist/plugin-sdk/src/infra/outbound/send-deps.d.ts +30 -0
  2783. package/dist/plugin-sdk/src/infra/outbound/session-binding-service.d.ts +90 -0
  2784. package/dist/plugin-sdk/src/infra/outbound/session-context.d.ts +12 -0
  2785. package/dist/plugin-sdk/src/infra/outbound/target-errors.d.ts +6 -0
  2786. package/dist/plugin-sdk/src/infra/outbound/target-normalization.d.ts +4 -0
  2787. package/dist/plugin-sdk/src/infra/outbound/target-resolver.d.ts +60 -0
  2788. package/dist/plugin-sdk/src/infra/outbound/targets.d.ts +87 -0
  2789. package/dist/plugin-sdk/src/infra/outbound/thread-id.d.ts +1 -0
  2790. package/dist/plugin-sdk/src/infra/outbound/tool-payload.d.ts +2 -0
  2791. package/dist/plugin-sdk/src/infra/pairing-files.d.ts +23 -0
  2792. package/dist/plugin-sdk/src/infra/pairing-pending.d.ts +13 -0
  2793. package/dist/plugin-sdk/src/infra/pairing-token.d.ts +3 -0
  2794. package/dist/plugin-sdk/src/infra/parse-finite-number.d.ts +4 -0
  2795. package/dist/plugin-sdk/src/infra/path-alias-guards.d.ts +18 -0
  2796. package/dist/plugin-sdk/src/infra/path-guards.d.ts +6 -0
  2797. package/dist/plugin-sdk/src/infra/path-prepend.d.ts +11 -0
  2798. package/dist/plugin-sdk/src/infra/path-safety.d.ts +2 -0
  2799. package/dist/plugin-sdk/src/infra/plain-object.d.ts +4 -0
  2800. package/dist/plugin-sdk/src/infra/ports-format.d.ts +5 -0
  2801. package/dist/plugin-sdk/src/infra/ports-inspect.d.ts +2 -0
  2802. package/dist/plugin-sdk/src/infra/ports-lsof.d.ts +2 -0
  2803. package/dist/plugin-sdk/src/infra/ports-probe.d.ts +5 -0
  2804. package/dist/plugin-sdk/src/infra/ports-types.d.ts +18 -0
  2805. package/dist/plugin-sdk/src/infra/ports.d.ts +14 -0
  2806. package/dist/plugin-sdk/src/infra/prototype-keys.d.ts +1 -0
  2807. package/dist/plugin-sdk/src/infra/provider-usage.auth.d.ts +14 -0
  2808. package/dist/plugin-sdk/src/infra/provider-usage.d.ts +4 -0
  2809. package/dist/plugin-sdk/src/infra/provider-usage.fetch.claude.d.ts +2 -0
  2810. package/dist/plugin-sdk/src/infra/provider-usage.fetch.codex.d.ts +2 -0
  2811. package/dist/plugin-sdk/src/infra/provider-usage.fetch.d.ts +5 -0
  2812. package/dist/plugin-sdk/src/infra/provider-usage.fetch.gemini.d.ts +2 -0
  2813. package/dist/plugin-sdk/src/infra/provider-usage.fetch.minimax.d.ts +2 -0
  2814. package/dist/plugin-sdk/src/infra/provider-usage.fetch.shared.d.ts +12 -0
  2815. package/dist/plugin-sdk/src/infra/provider-usage.fetch.zai.d.ts +2 -0
  2816. package/dist/plugin-sdk/src/infra/provider-usage.format.d.ts +13 -0
  2817. package/dist/plugin-sdk/src/infra/provider-usage.load.d.ts +16 -0
  2818. package/dist/plugin-sdk/src/infra/provider-usage.shared.d.ts +9 -0
  2819. package/dist/plugin-sdk/src/infra/provider-usage.types.d.ts +17 -0
  2820. package/dist/plugin-sdk/src/infra/restart-sentinel.d.ts +50 -0
  2821. package/dist/plugin-sdk/src/infra/restart-stale-pids.d.ts +22 -0
  2822. package/dist/plugin-sdk/src/infra/restart.d.ts +72 -0
  2823. package/dist/plugin-sdk/src/infra/retry-policy.d.ts +30 -0
  2824. package/dist/plugin-sdk/src/infra/retry.d.ts +21 -0
  2825. package/dist/plugin-sdk/src/infra/safe-open-sync.d.ts +25 -0
  2826. package/dist/plugin-sdk/src/infra/scp-host.d.ts +4 -0
  2827. package/dist/plugin-sdk/src/infra/secret-file.d.ts +18 -0
  2828. package/dist/plugin-sdk/src/infra/secure-random.d.ts +2 -0
  2829. package/dist/plugin-sdk/src/infra/session-cost-usage.d.ts +45 -0
  2830. package/dist/plugin-sdk/src/infra/session-cost-usage.types.d.ts +141 -0
  2831. package/dist/plugin-sdk/src/infra/session-maintenance-warning.d.ts +11 -0
  2832. package/dist/plugin-sdk/src/infra/shell-env.d.ts +34 -0
  2833. package/dist/plugin-sdk/src/infra/shell-inline-command.d.ts +8 -0
  2834. package/dist/plugin-sdk/src/infra/skills-remote.d.ts +25 -0
  2835. package/dist/plugin-sdk/src/infra/ssh-tunnel.d.ts +21 -0
  2836. package/dist/plugin-sdk/src/infra/system-events.d.ts +18 -0
  2837. package/dist/plugin-sdk/src/infra/system-message.d.ts +3 -0
  2838. package/dist/plugin-sdk/src/infra/system-run-approval-binding.d.ts +49 -0
  2839. package/dist/plugin-sdk/src/infra/system-run-approval-context.d.ts +45 -0
  2840. package/dist/plugin-sdk/src/infra/system-run-command.d.ts +36 -0
  2841. package/dist/plugin-sdk/src/infra/system-run-normalize.d.ts +2 -0
  2842. package/dist/plugin-sdk/src/infra/tailnet.d.ts +8 -0
  2843. package/dist/plugin-sdk/src/infra/tailscale.d.ts +34 -0
  2844. package/dist/plugin-sdk/src/infra/tls/fingerprint.d.ts +1 -0
  2845. package/dist/plugin-sdk/src/infra/tls/gateway.d.ts +16 -0
  2846. package/dist/plugin-sdk/src/infra/tmp-openclaw-dir.d.ts +20 -0
  2847. package/dist/plugin-sdk/src/infra/transport-ready.d.ts +16 -0
  2848. package/dist/plugin-sdk/src/infra/unhandled-rejections.d.ts +15 -0
  2849. package/dist/plugin-sdk/src/infra/warning-filter.d.ts +7 -0
  2850. package/dist/plugin-sdk/src/infra/windows-task-restart.d.ts +2 -0
  2851. package/dist/plugin-sdk/src/infra/ws.d.ts +2 -0
  2852. package/dist/plugin-sdk/src/infra/wsl.d.ts +12 -0
  2853. package/dist/plugin-sdk/src/interactive/payload.d.ts +53 -0
  2854. package/dist/plugin-sdk/src/line/accounts.d.ts +10 -0
  2855. package/dist/plugin-sdk/src/line/actions.d.ts +22 -0
  2856. package/dist/plugin-sdk/src/line/auto-reply-delivery.d.ts +38 -0
  2857. package/dist/plugin-sdk/src/line/bot-access.d.ts +17 -0
  2858. package/dist/plugin-sdk/src/line/bot-handlers.d.ts +23 -0
  2859. package/dist/plugin-sdk/src/line/bot-message-context.d.ts +129 -0
  2860. package/dist/plugin-sdk/src/line/bot.d.ts +24 -0
  2861. package/dist/plugin-sdk/src/line/channel-access-token.d.ts +4 -0
  2862. package/dist/plugin-sdk/src/line/config-schema.d.ts +65 -0
  2863. package/dist/plugin-sdk/src/line/download.d.ts +7 -0
  2864. package/dist/plugin-sdk/src/line/flex-templates/basic-cards.d.ts +46 -0
  2865. package/dist/plugin-sdk/src/line/flex-templates/common.d.ts +2 -0
  2866. package/dist/plugin-sdk/src/line/flex-templates/media-control-cards.d.ts +73 -0
  2867. package/dist/plugin-sdk/src/line/flex-templates/message.d.ts +6 -0
  2868. package/dist/plugin-sdk/src/line/flex-templates/schedule-cards.d.ts +55 -0
  2869. package/dist/plugin-sdk/src/line/flex-templates/types.d.ts +19 -0
  2870. package/dist/plugin-sdk/src/line/flex-templates.d.ts +5 -0
  2871. package/dist/plugin-sdk/src/line/group-keys.d.ts +17 -0
  2872. package/dist/plugin-sdk/src/line/markdown-to-line.d.ts +72 -0
  2873. package/dist/plugin-sdk/src/line/monitor.d.ts +28 -0
  2874. package/dist/plugin-sdk/src/line/probe.d.ts +2 -0
  2875. package/dist/plugin-sdk/src/line/reply-chunks.d.ts +24 -0
  2876. package/dist/plugin-sdk/src/line/send.d.ts +93 -0
  2877. package/dist/plugin-sdk/src/line/signature.d.ts +1 -0
  2878. package/dist/plugin-sdk/src/line/template-messages.d.ts +100 -0
  2879. package/dist/plugin-sdk/src/line/types.d.ts +115 -0
  2880. package/dist/plugin-sdk/src/line/webhook-node.d.ts +15 -0
  2881. package/dist/plugin-sdk/src/line/webhook-utils.d.ts +2 -0
  2882. package/dist/plugin-sdk/src/line/webhook.d.ts +19 -0
  2883. package/dist/plugin-sdk/src/link-understanding/apply.d.ts +10 -0
  2884. package/dist/plugin-sdk/src/link-understanding/apply.runtime.d.ts +1 -0
  2885. package/dist/plugin-sdk/src/link-understanding/defaults.d.ts +2 -0
  2886. package/dist/plugin-sdk/src/link-understanding/detect.d.ts +3 -0
  2887. package/dist/plugin-sdk/src/link-understanding/format.d.ts +4 -0
  2888. package/dist/plugin-sdk/src/link-understanding/runner.d.ts +11 -0
  2889. package/dist/plugin-sdk/src/logger.d.ts +6 -0
  2890. package/dist/plugin-sdk/src/logging/config.d.ts +4 -0
  2891. package/dist/plugin-sdk/src/logging/console.d.ts +23 -0
  2892. package/dist/plugin-sdk/src/logging/diagnostic-session-state.d.ts +30 -0
  2893. package/dist/plugin-sdk/src/logging/diagnostic.d.ts +67 -0
  2894. package/dist/plugin-sdk/src/logging/env-log-level.d.ts +2 -0
  2895. package/dist/plugin-sdk/src/logging/levels.d.ts +5 -0
  2896. package/dist/plugin-sdk/src/logging/logger.d.ts +48 -0
  2897. package/dist/plugin-sdk/src/logging/node-require.d.ts +1 -0
  2898. package/dist/plugin-sdk/src/logging/redact-bounded.d.ts +8 -0
  2899. package/dist/plugin-sdk/src/logging/redact-identifier.d.ts +4 -0
  2900. package/dist/plugin-sdk/src/logging/redact.d.ts +9 -0
  2901. package/dist/plugin-sdk/src/logging/state.d.ts +19 -0
  2902. package/dist/plugin-sdk/src/logging/subsystem.d.ts +18 -0
  2903. package/dist/plugin-sdk/src/logging/timestamps.d.ts +2 -0
  2904. package/dist/plugin-sdk/src/logging.d.ts +10 -0
  2905. package/dist/plugin-sdk/src/markdown/code-spans.d.ts +10 -0
  2906. package/dist/plugin-sdk/src/markdown/fences.d.ts +10 -0
  2907. package/dist/plugin-sdk/src/markdown/frontmatter.d.ts +2 -0
  2908. package/dist/plugin-sdk/src/markdown/ir.d.ts +32 -0
  2909. package/dist/plugin-sdk/src/markdown/render.d.ts +18 -0
  2910. package/dist/plugin-sdk/src/markdown/tables.d.ts +2 -0
  2911. package/dist/plugin-sdk/src/markdown/whatsapp.d.ts +14 -0
  2912. package/dist/plugin-sdk/src/media/audio-tags.d.ts +10 -0
  2913. package/dist/plugin-sdk/src/media/audio.d.ts +19 -0
  2914. package/dist/plugin-sdk/src/media/base64.d.ts +6 -0
  2915. package/dist/plugin-sdk/src/media/constants.d.ts +7 -0
  2916. package/dist/plugin-sdk/src/media/fetch.d.ts +34 -0
  2917. package/dist/plugin-sdk/src/media/ffmpeg-exec.d.ts +11 -0
  2918. package/dist/plugin-sdk/src/media/ffmpeg-limits.d.ts +4 -0
  2919. package/dist/plugin-sdk/src/media/file-context.d.ts +7 -0
  2920. package/dist/plugin-sdk/src/media/image-ops.d.ts +41 -0
  2921. package/dist/plugin-sdk/src/media/inbound-path-policy.d.ts +18 -0
  2922. package/dist/plugin-sdk/src/media/input-files.d.ts +99 -0
  2923. package/dist/plugin-sdk/src/media/load-options.d.ts +12 -0
  2924. package/dist/plugin-sdk/src/media/local-roots.d.ts +3 -0
  2925. package/dist/plugin-sdk/src/media/mime.d.ts +16 -0
  2926. package/dist/plugin-sdk/src/media/outbound-attachment.d.ts +6 -0
  2927. package/dist/plugin-sdk/src/media/parse.d.ts +8 -0
  2928. package/dist/plugin-sdk/src/media/pdf-extract.d.ts +17 -0
  2929. package/dist/plugin-sdk/src/media/png-encode.d.ts +8 -0
  2930. package/dist/plugin-sdk/src/media/read-response-with-limit.d.ts +8 -0
  2931. package/dist/plugin-sdk/src/media/sniff-mime-from-base64.d.ts +1 -0
  2932. package/dist/plugin-sdk/src/media/store.d.ts +37 -0
  2933. package/dist/plugin-sdk/src/media/temp-files.d.ts +1 -0
  2934. package/dist/plugin-sdk/src/media/web-media.d.ts +43 -0
  2935. package/dist/plugin-sdk/src/media-understanding/apply.d.ts +19 -0
  2936. package/dist/plugin-sdk/src/media-understanding/apply.runtime.d.ts +1 -0
  2937. package/dist/plugin-sdk/src/media-understanding/attachments.cache.d.ts +37 -0
  2938. package/dist/plugin-sdk/src/media-understanding/attachments.d.ts +3 -0
  2939. package/dist/plugin-sdk/src/media-understanding/attachments.normalize.d.ts +8 -0
  2940. package/dist/plugin-sdk/src/media-understanding/attachments.select.d.ts +7 -0
  2941. package/dist/plugin-sdk/src/media-understanding/audio-preflight.d.ts +16 -0
  2942. package/dist/plugin-sdk/src/media-understanding/audio-transcription-runner.d.ts +16 -0
  2943. package/dist/plugin-sdk/src/media-understanding/concurrency.d.ts +1 -0
  2944. package/dist/plugin-sdk/src/media-understanding/defaults.d.ts +20 -0
  2945. package/dist/plugin-sdk/src/media-understanding/echo-transcript.d.ts +13 -0
  2946. package/dist/plugin-sdk/src/media-understanding/errors.d.ts +6 -0
  2947. package/dist/plugin-sdk/src/media-understanding/format.d.ts +7 -0
  2948. package/dist/plugin-sdk/src/media-understanding/fs.d.ts +1 -0
  2949. package/dist/plugin-sdk/src/media-understanding/output-extract.d.ts +2 -0
  2950. package/dist/plugin-sdk/src/media-understanding/providers/deepgram/audio.d.ts +4 -0
  2951. package/dist/plugin-sdk/src/media-understanding/providers/deepgram/index.d.ts +2 -0
  2952. package/dist/plugin-sdk/src/media-understanding/providers/groq/index.d.ts +2 -0
  2953. package/dist/plugin-sdk/src/media-understanding/providers/image-runtime.d.ts +2 -0
  2954. package/dist/plugin-sdk/src/media-understanding/providers/image.d.ts +3 -0
  2955. package/dist/plugin-sdk/src/media-understanding/providers/index.d.ts +5 -0
  2956. package/dist/plugin-sdk/src/media-understanding/providers/openai-compatible-audio.d.ts +7 -0
  2957. package/dist/plugin-sdk/src/media-understanding/providers/shared.d.ts +28 -0
  2958. package/dist/plugin-sdk/src/media-understanding/resolve.d.ts +44 -0
  2959. package/dist/plugin-sdk/src/media-understanding/runner.d.ts +39 -0
  2960. package/dist/plugin-sdk/src/media-understanding/runner.entries.d.ts +33 -0
  2961. package/dist/plugin-sdk/src/media-understanding/runtime.d.ts +52 -0
  2962. package/dist/plugin-sdk/src/media-understanding/scope.d.ts +9 -0
  2963. package/dist/plugin-sdk/src/media-understanding/transcribe-audio.d.ts +1 -0
  2964. package/dist/plugin-sdk/src/media-understanding/types.d.ts +115 -0
  2965. package/dist/plugin-sdk/src/media-understanding/video.d.ts +2 -0
  2966. package/dist/plugin-sdk/src/memory/backend-config.d.ts +55 -0
  2967. package/dist/plugin-sdk/src/memory/batch-embedding-common.d.ts +9 -0
  2968. package/dist/plugin-sdk/src/memory/batch-error-utils.d.ts +15 -0
  2969. package/dist/plugin-sdk/src/memory/batch-gemini.d.ts +46 -0
  2970. package/dist/plugin-sdk/src/memory/batch-http.d.ts +8 -0
  2971. package/dist/plugin-sdk/src/memory/batch-openai.d.ts +19 -0
  2972. package/dist/plugin-sdk/src/memory/batch-output.d.ts +23 -0
  2973. package/dist/plugin-sdk/src/memory/batch-provider-common.d.ts +9 -0
  2974. package/dist/plugin-sdk/src/memory/batch-runner.d.ts +38 -0
  2975. package/dist/plugin-sdk/src/memory/batch-status.d.ts +27 -0
  2976. package/dist/plugin-sdk/src/memory/batch-upload.d.ts +6 -0
  2977. package/dist/plugin-sdk/src/memory/batch-utils.d.ts +11 -0
  2978. package/dist/plugin-sdk/src/memory/batch-voyage.d.ts +20 -0
  2979. package/dist/plugin-sdk/src/memory/embedding-chunk-limits.d.ts +3 -0
  2980. package/dist/plugin-sdk/src/memory/embedding-input-limits.d.ts +4 -0
  2981. package/dist/plugin-sdk/src/memory/embedding-inputs.d.ts +17 -0
  2982. package/dist/plugin-sdk/src/memory/embedding-model-limits.d.ts +2 -0
  2983. package/dist/plugin-sdk/src/memory/embedding-vectors.d.ts +1 -0
  2984. package/dist/plugin-sdk/src/memory/embeddings-debug.d.ts +1 -0
  2985. package/dist/plugin-sdk/src/memory/embeddings-gemini.d.ts +63 -0
  2986. package/dist/plugin-sdk/src/memory/embeddings-mistral.d.ts +15 -0
  2987. package/dist/plugin-sdk/src/memory/embeddings-model-normalize.d.ts +5 -0
  2988. package/dist/plugin-sdk/src/memory/embeddings-ollama.d.ts +14 -0
  2989. package/dist/plugin-sdk/src/memory/embeddings-openai.d.ts +15 -0
  2990. package/dist/plugin-sdk/src/memory/embeddings-remote-client.d.ts +12 -0
  2991. package/dist/plugin-sdk/src/memory/embeddings-remote-fetch.d.ts +8 -0
  2992. package/dist/plugin-sdk/src/memory/embeddings-remote-provider.d.ts +21 -0
  2993. package/dist/plugin-sdk/src/memory/embeddings-voyage.d.ts +15 -0
  2994. package/dist/plugin-sdk/src/memory/embeddings.d.ts +58 -0
  2995. package/dist/plugin-sdk/src/memory/fs-utils.d.ts +11 -0
  2996. package/dist/plugin-sdk/src/memory/hybrid.d.ts +45 -0
  2997. package/dist/plugin-sdk/src/memory/index.d.ts +3 -0
  2998. package/dist/plugin-sdk/src/memory/internal.d.ts +51 -0
  2999. package/dist/plugin-sdk/src/memory/manager-embedding-ops.d.ts +49 -0
  3000. package/dist/plugin-sdk/src/memory/manager-runtime.d.ts +1 -0
  3001. package/dist/plugin-sdk/src/memory/manager-search.d.ts +60 -0
  3002. package/dist/plugin-sdk/src/memory/manager-sync-ops.d.ts +147 -0
  3003. package/dist/plugin-sdk/src/memory/manager.d.ts +122 -0
  3004. package/dist/plugin-sdk/src/memory/memory-schema.d.ts +11 -0
  3005. package/dist/plugin-sdk/src/memory/mmr.d.ts +62 -0
  3006. package/dist/plugin-sdk/src/memory/multimodal.d.ts +36 -0
  3007. package/dist/plugin-sdk/src/memory/node-llama.d.ts +8 -0
  3008. package/dist/plugin-sdk/src/memory/post-json.d.ts +10 -0
  3009. package/dist/plugin-sdk/src/memory/prompt-section.d.ts +22 -0
  3010. package/dist/plugin-sdk/src/memory/qmd-manager.d.ts +149 -0
  3011. package/dist/plugin-sdk/src/memory/qmd-process.d.ts +24 -0
  3012. package/dist/plugin-sdk/src/memory/qmd-query-parser.d.ts +9 -0
  3013. package/dist/plugin-sdk/src/memory/qmd-scope.d.ts +4 -0
  3014. package/dist/plugin-sdk/src/memory/query-expansion.d.ts +41 -0
  3015. package/dist/plugin-sdk/src/memory/read-file.d.ts +21 -0
  3016. package/dist/plugin-sdk/src/memory/remote-http.d.ts +9 -0
  3017. package/dist/plugin-sdk/src/memory/search-manager.d.ts +12 -0
  3018. package/dist/plugin-sdk/src/memory/secret-input.d.ts +5 -0
  3019. package/dist/plugin-sdk/src/memory/session-files.d.ts +14 -0
  3020. package/dist/plugin-sdk/src/memory/sqlite-vec.d.ts +9 -0
  3021. package/dist/plugin-sdk/src/memory/sqlite.d.ts +1 -0
  3022. package/dist/plugin-sdk/src/memory/temporal-decay.d.ts +25 -0
  3023. package/dist/plugin-sdk/src/memory/types.d.ts +95 -0
  3024. package/dist/plugin-sdk/src/node-host/with-timeout.d.ts +1 -0
  3025. package/dist/plugin-sdk/src/pairing/pairing-challenge.d.ts +32 -0
  3026. package/dist/plugin-sdk/src/pairing/pairing-labels.d.ts +2 -0
  3027. package/dist/plugin-sdk/src/pairing/pairing-messages.d.ts +6 -0
  3028. package/dist/plugin-sdk/src/pairing/pairing-store.d.ts +52 -0
  3029. package/dist/plugin-sdk/src/param-key.d.ts +2 -0
  3030. package/dist/plugin-sdk/src/plugin-sdk/account-helpers.d.ts +2 -0
  3031. package/dist/plugin-sdk/src/plugin-sdk/account-id.d.ts +1 -0
  3032. package/dist/plugin-sdk/src/plugin-sdk/account-resolution.d.ts +24 -0
  3033. package/dist/plugin-sdk/src/plugin-sdk/acp-runtime.d.ts +7 -0
  3034. package/dist/plugin-sdk/src/plugin-sdk/acpx.d.ts +8 -0
  3035. package/dist/plugin-sdk/src/plugin-sdk/agent-media-payload.d.ts +13 -0
  3036. package/dist/plugin-sdk/src/plugin-sdk/agent-runtime.d.ts +25 -0
  3037. package/dist/plugin-sdk/src/plugin-sdk/allow-from.d.ts +58 -0
  3038. package/dist/plugin-sdk/src/plugin-sdk/allowlist-config-edit.d.ts +99 -0
  3039. package/dist/plugin-sdk/src/plugin-sdk/bluebubbles.d.ts +43 -0
  3040. package/dist/plugin-sdk/src/plugin-sdk/boolean-param.d.ts +2 -0
  3041. package/dist/plugin-sdk/src/plugin-sdk/channel-actions.d.ts +5 -0
  3042. package/dist/plugin-sdk/src/plugin-sdk/channel-config-helpers.d.ts +147 -0
  3043. package/dist/plugin-sdk/src/plugin-sdk/channel-config-schema.d.ts +4 -0
  3044. package/dist/plugin-sdk/src/plugin-sdk/channel-contract.d.ts +1 -0
  3045. package/dist/plugin-sdk/src/plugin-sdk/channel-feedback.d.ts +3 -0
  3046. package/dist/plugin-sdk/src/plugin-sdk/channel-inbound.d.ts +11 -0
  3047. package/dist/plugin-sdk/src/plugin-sdk/channel-lifecycle.d.ts +41 -0
  3048. package/dist/plugin-sdk/src/plugin-sdk/channel-pairing.d.ts +21 -0
  3049. package/dist/plugin-sdk/src/plugin-sdk/channel-plugin-common.d.ts +12 -0
  3050. package/dist/plugin-sdk/src/plugin-sdk/channel-policy.d.ts +6 -0
  3051. package/dist/plugin-sdk/src/plugin-sdk/channel-reply-pipeline.d.ts +16 -0
  3052. package/dist/plugin-sdk/src/plugin-sdk/channel-runtime.d.ts +11 -0
  3053. package/dist/plugin-sdk/src/plugin-sdk/channel-send-result.d.ts +39 -0
  3054. package/dist/plugin-sdk/src/plugin-sdk/channel-setup.d.ts +18 -0
  3055. package/dist/plugin-sdk/src/plugin-sdk/channel-targets.d.ts +3 -0
  3056. package/dist/plugin-sdk/src/plugin-sdk/cli-runtime.d.ts +4 -0
  3057. package/dist/plugin-sdk/src/plugin-sdk/command-auth.d.ts +62 -0
  3058. package/dist/plugin-sdk/src/plugin-sdk/compat.d.ts +17 -0
  3059. package/dist/plugin-sdk/src/plugin-sdk/config-paths.d.ts +7 -0
  3060. package/dist/plugin-sdk/src/plugin-sdk/config-runtime.d.ts +18 -0
  3061. package/dist/plugin-sdk/src/plugin-sdk/conversation-runtime.d.ts +18 -0
  3062. package/dist/plugin-sdk/src/plugin-sdk/copilot-proxy.d.ts +2 -0
  3063. package/dist/plugin-sdk/src/plugin-sdk/core.d.ts +142 -0
  3064. package/dist/plugin-sdk/src/plugin-sdk/device-bootstrap.d.ts +2 -0
  3065. package/dist/plugin-sdk/src/plugin-sdk/diagnostics-otel.d.ts +6 -0
  3066. package/dist/plugin-sdk/src/plugin-sdk/diffs.d.ts +4 -0
  3067. package/dist/plugin-sdk/src/plugin-sdk/directory-runtime.d.ts +8 -0
  3068. package/dist/plugin-sdk/src/plugin-sdk/discord-core.d.ts +10 -0
  3069. package/dist/plugin-sdk/src/plugin-sdk/discord-send.d.ts +31 -0
  3070. package/dist/plugin-sdk/src/plugin-sdk/discord.d.ts +33 -0
  3071. package/dist/plugin-sdk/src/plugin-sdk/entrypoints.d.ts +17 -0
  3072. package/dist/plugin-sdk/src/plugin-sdk/extension-shared.d.ts +67 -0
  3073. package/dist/plugin-sdk/src/plugin-sdk/feishu.d.ts +42 -0
  3074. package/dist/plugin-sdk/src/plugin-sdk/fetch-auth.d.ts +14 -0
  3075. package/dist/plugin-sdk/src/plugin-sdk/file-lock.d.ts +18 -0
  3076. package/dist/plugin-sdk/src/plugin-sdk/gateway-runtime.d.ts +4 -0
  3077. package/dist/plugin-sdk/src/plugin-sdk/google.d.ts +2 -0
  3078. package/dist/plugin-sdk/src/plugin-sdk/googlechat.d.ts +45 -0
  3079. package/dist/plugin-sdk/src/plugin-sdk/group-access.d.ts +57 -0
  3080. package/dist/plugin-sdk/src/plugin-sdk/hook-runtime.d.ts +3 -0
  3081. package/dist/plugin-sdk/src/plugin-sdk/image-generation-runtime.d.ts +1 -0
  3082. package/dist/plugin-sdk/src/plugin-sdk/image-generation.d.ts +4 -0
  3083. package/dist/plugin-sdk/src/plugin-sdk/imessage-core.d.ts +6 -0
  3084. package/dist/plugin-sdk/src/plugin-sdk/imessage-targets.d.ts +1 -0
  3085. package/dist/plugin-sdk/src/plugin-sdk/imessage.d.ts +14 -0
  3086. package/dist/plugin-sdk/src/plugin-sdk/inbound-envelope.d.ts +97 -0
  3087. package/dist/plugin-sdk/src/plugin-sdk/inbound-reply-dispatch.d.ts +73 -0
  3088. package/dist/plugin-sdk/src/plugin-sdk/index.d.ts +25 -0
  3089. package/dist/plugin-sdk/src/plugin-sdk/infra-runtime.d.ts +40 -0
  3090. package/dist/plugin-sdk/src/plugin-sdk/interactive-runtime.d.ts +3 -0
  3091. package/dist/plugin-sdk/src/plugin-sdk/irc.d.ts +37 -0
  3092. package/dist/plugin-sdk/src/plugin-sdk/json-store.d.ts +12 -0
  3093. package/dist/plugin-sdk/src/plugin-sdk/keyed-async-queue.d.ts +16 -0
  3094. package/dist/plugin-sdk/src/plugin-sdk/lazy-runtime.d.ts +1 -0
  3095. package/dist/plugin-sdk/src/plugin-sdk/line-core.d.ts +11 -0
  3096. package/dist/plugin-sdk/src/plugin-sdk/line.d.ts +15 -0
  3097. package/dist/plugin-sdk/src/plugin-sdk/llm-task.d.ts +4 -0
  3098. package/dist/plugin-sdk/src/plugin-sdk/lobster.d.ts +3 -0
  3099. package/dist/plugin-sdk/src/plugin-sdk/matrix-runtime-heavy.d.ts +4 -0
  3100. package/dist/plugin-sdk/src/plugin-sdk/matrix-runtime-shared.d.ts +6 -0
  3101. package/dist/plugin-sdk/src/plugin-sdk/matrix.d.ts +65 -0
  3102. package/dist/plugin-sdk/src/plugin-sdk/mattermost.d.ts +49 -0
  3103. package/dist/plugin-sdk/src/plugin-sdk/media-runtime.d.ts +22 -0
  3104. package/dist/plugin-sdk/src/plugin-sdk/media-understanding-runtime.d.ts +1 -0
  3105. package/dist/plugin-sdk/src/plugin-sdk/media-understanding.d.ts +4 -0
  3106. package/dist/plugin-sdk/src/plugin-sdk/memory-core.d.ts +3 -0
  3107. package/dist/plugin-sdk/src/plugin-sdk/memory-lancedb.d.ts +2 -0
  3108. package/dist/plugin-sdk/src/plugin-sdk/msteams.d.ts +57 -0
  3109. package/dist/plugin-sdk/src/plugin-sdk/nextcloud-talk.d.ts +41 -0
  3110. package/dist/plugin-sdk/src/plugin-sdk/nostr.d.ts +17 -0
  3111. package/dist/plugin-sdk/src/plugin-sdk/oauth-utils.d.ts +7 -0
  3112. package/dist/plugin-sdk/src/plugin-sdk/ollama-setup.d.ts +3 -0
  3113. package/dist/plugin-sdk/src/plugin-sdk/open-prose.d.ts +2 -0
  3114. package/dist/plugin-sdk/src/plugin-sdk/optional-channel-setup.d.ts +11 -0
  3115. package/dist/plugin-sdk/src/plugin-sdk/outbound-media.d.ts +6 -0
  3116. package/dist/plugin-sdk/src/plugin-sdk/outbound-runtime.d.ts +3 -0
  3117. package/dist/plugin-sdk/src/plugin-sdk/pairing-access.d.ts +19 -0
  3118. package/dist/plugin-sdk/src/plugin-sdk/persistent-dedupe.d.ts +22 -0
  3119. package/dist/plugin-sdk/src/plugin-sdk/phone-control.d.ts +2 -0
  3120. package/dist/plugin-sdk/src/plugin-sdk/plugin-entry.d.ts +20 -0
  3121. package/dist/plugin-sdk/src/plugin-sdk/plugin-runtime.d.ts +7 -0
  3122. package/dist/plugin-sdk/src/plugin-sdk/process-runtime.d.ts +1 -0
  3123. package/dist/plugin-sdk/src/plugin-sdk/provider-auth-api-key.d.ts +7 -0
  3124. package/dist/plugin-sdk/src/plugin-sdk/provider-auth-login.d.ts +27 -0
  3125. package/dist/plugin-sdk/src/plugin-sdk/provider-auth-login.runtime.d.ts +3 -0
  3126. package/dist/plugin-sdk/src/plugin-sdk/provider-auth-result.d.ts +15 -0
  3127. package/dist/plugin-sdk/src/plugin-sdk/provider-auth.d.ts +22 -0
  3128. package/dist/plugin-sdk/src/plugin-sdk/provider-catalog.d.ts +2 -0
  3129. package/dist/plugin-sdk/src/plugin-sdk/provider-env-vars.d.ts +1 -0
  3130. package/dist/plugin-sdk/src/plugin-sdk/provider-google.d.ts +2 -0
  3131. package/dist/plugin-sdk/src/plugin-sdk/provider-models.d.ts +31 -0
  3132. package/dist/plugin-sdk/src/plugin-sdk/provider-onboard.d.ts +5 -0
  3133. package/dist/plugin-sdk/src/plugin-sdk/provider-setup.d.ts +5 -0
  3134. package/dist/plugin-sdk/src/plugin-sdk/provider-stream.d.ts +7 -0
  3135. package/dist/plugin-sdk/src/plugin-sdk/provider-tools.d.ts +3 -0
  3136. package/dist/plugin-sdk/src/plugin-sdk/provider-usage.d.ts +4 -0
  3137. package/dist/plugin-sdk/src/plugin-sdk/provider-web-search.d.ts +18 -0
  3138. package/dist/plugin-sdk/src/plugin-sdk/provider-zai-endpoint.d.ts +1 -0
  3139. package/dist/plugin-sdk/src/plugin-sdk/reply-history.d.ts +3 -0
  3140. package/dist/plugin-sdk/src/plugin-sdk/reply-payload.d.ts +164 -0
  3141. package/dist/plugin-sdk/src/plugin-sdk/reply-runtime.d.ts +20 -0
  3142. package/dist/plugin-sdk/src/plugin-sdk/request-url.d.ts +2 -0
  3143. package/dist/plugin-sdk/src/plugin-sdk/resolution-notes.d.ts +5 -0
  3144. package/dist/plugin-sdk/src/plugin-sdk/routing.d.ts +8 -0
  3145. package/dist/plugin-sdk/src/plugin-sdk/run-command.d.ts +13 -0
  3146. package/dist/plugin-sdk/src/plugin-sdk/runtime-env.d.ts +6 -0
  3147. package/dist/plugin-sdk/src/plugin-sdk/runtime-store.d.ts +8 -0
  3148. package/dist/plugin-sdk/src/plugin-sdk/runtime.d.ts +28 -0
  3149. package/dist/plugin-sdk/src/plugin-sdk/sandbox.d.ts +5 -0
  3150. package/dist/plugin-sdk/src/plugin-sdk/secret-input-runtime.d.ts +1 -0
  3151. package/dist/plugin-sdk/src/plugin-sdk/secret-input-schema.d.ts +15 -0
  3152. package/dist/plugin-sdk/src/plugin-sdk/secret-input.d.ts +31 -0
  3153. package/dist/plugin-sdk/src/plugin-sdk/security-runtime.d.ts +4 -0
  3154. package/dist/plugin-sdk/src/plugin-sdk/self-hosted-provider-setup.d.ts +3 -0
  3155. package/dist/plugin-sdk/src/plugin-sdk/setup-adapter-runtime.d.ts +1 -0
  3156. package/dist/plugin-sdk/src/plugin-sdk/setup-runtime.d.ts +9 -0
  3157. package/dist/plugin-sdk/src/plugin-sdk/setup-tools.d.ts +4 -0
  3158. package/dist/plugin-sdk/src/plugin-sdk/setup.d.ts +21 -0
  3159. package/dist/plugin-sdk/src/plugin-sdk/signal-core.d.ts +8 -0
  3160. package/dist/plugin-sdk/src/plugin-sdk/signal.d.ts +23 -0
  3161. package/dist/plugin-sdk/src/plugin-sdk/slack-core.d.ts +6 -0
  3162. package/dist/plugin-sdk/src/plugin-sdk/slack-targets.d.ts +1 -0
  3163. package/dist/plugin-sdk/src/plugin-sdk/slack.d.ts +26 -0
  3164. package/dist/plugin-sdk/src/plugin-sdk/speech-runtime.d.ts +1 -0
  3165. package/dist/plugin-sdk/src/plugin-sdk/speech.d.ts +5 -0
  3166. package/dist/plugin-sdk/src/plugin-sdk/ssrf-policy.d.ts +20 -0
  3167. package/dist/plugin-sdk/src/plugin-sdk/ssrf-runtime.d.ts +2 -0
  3168. package/dist/plugin-sdk/src/plugin-sdk/state-paths.d.ts +1 -0
  3169. package/dist/plugin-sdk/src/plugin-sdk/status-helpers.d.ts +145 -0
  3170. package/dist/plugin-sdk/src/plugin-sdk/talk-voice.d.ts +2 -0
  3171. package/dist/plugin-sdk/src/plugin-sdk/telegram-core.d.ts +8 -0
  3172. package/dist/plugin-sdk/src/plugin-sdk/telegram.d.ts +1 -0
  3173. package/dist/plugin-sdk/src/plugin-sdk/temp-path.d.ts +14 -0
  3174. package/dist/plugin-sdk/src/plugin-sdk/test-utils.d.ts +1 -0
  3175. package/dist/plugin-sdk/src/plugin-sdk/testing.d.ts +26 -0
  3176. package/dist/plugin-sdk/src/plugin-sdk/text-chunking.d.ts +2 -0
  3177. package/dist/plugin-sdk/src/plugin-sdk/text-runtime.d.ts +22 -0
  3178. package/dist/plugin-sdk/src/plugin-sdk/thread-bindings-runtime.d.ts +2 -0
  3179. package/dist/plugin-sdk/src/plugin-sdk/thread-ownership.d.ts +3 -0
  3180. package/dist/plugin-sdk/src/plugin-sdk/tlon.d.ts +21 -0
  3181. package/dist/plugin-sdk/src/plugin-sdk/tool-send.d.ts +7 -0
  3182. package/dist/plugin-sdk/src/plugin-sdk/twitch.d.ts +18 -0
  3183. package/dist/plugin-sdk/src/plugin-sdk/voice-call.d.ts +9 -0
  3184. package/dist/plugin-sdk/src/plugin-sdk/web-media.d.ts +1 -0
  3185. package/dist/plugin-sdk/src/plugin-sdk/webhook-ingress.d.ts +4 -0
  3186. package/dist/plugin-sdk/src/plugin-sdk/webhook-memory-guards.d.ts +52 -0
  3187. package/dist/plugin-sdk/src/plugin-sdk/webhook-path.d.ts +8 -0
  3188. package/dist/plugin-sdk/src/plugin-sdk/webhook-request-guards.d.ts +89 -0
  3189. package/dist/plugin-sdk/src/plugin-sdk/webhook-targets.d.ts +97 -0
  3190. package/dist/plugin-sdk/src/plugin-sdk/whatsapp-action-runtime.d.ts +1 -0
  3191. package/dist/plugin-sdk/src/plugin-sdk/whatsapp-core.d.ts +10 -0
  3192. package/dist/plugin-sdk/src/plugin-sdk/whatsapp-login-qr.d.ts +1 -0
  3193. package/dist/plugin-sdk/src/plugin-sdk/whatsapp-shared.d.ts +6 -0
  3194. package/dist/plugin-sdk/src/plugin-sdk/whatsapp.d.ts +31 -0
  3195. package/dist/plugin-sdk/src/plugin-sdk/windows-spawn.d.ts +44 -0
  3196. package/dist/plugin-sdk/src/plugin-sdk/zai.d.ts +1 -0
  3197. package/dist/plugin-sdk/src/plugin-sdk/zalo.d.ts +46 -0
  3198. package/dist/plugin-sdk/src/plugin-sdk/zalouser.d.ts +39 -0
  3199. package/dist/plugin-sdk/src/plugins/bundle-commands.d.ts +12 -0
  3200. package/dist/plugin-sdk/src/plugins/bundle-lsp.d.ts +27 -0
  3201. package/dist/plugin-sdk/src/plugins/bundle-manifest.d.ts +32 -0
  3202. package/dist/plugin-sdk/src/plugins/bundle-mcp.d.ts +30 -0
  3203. package/dist/plugin-sdk/src/plugins/bundled-compat.d.ts +9 -0
  3204. package/dist/plugin-sdk/src/plugins/bundled-dir.d.ts +1 -0
  3205. package/dist/plugin-sdk/src/plugins/bundled-provider-auth-env-vars.d.ts +1 -0
  3206. package/dist/plugin-sdk/src/plugins/bundled-provider-auth-env-vars.generated.d.ts +40 -0
  3207. package/dist/plugin-sdk/src/plugins/bundled-web-search-ids.d.ts +2 -0
  3208. package/dist/plugin-sdk/src/plugins/bundled-web-search.d.ts +10 -0
  3209. package/dist/plugin-sdk/src/plugins/captured-registration.d.ts +14 -0
  3210. package/dist/plugin-sdk/src/plugins/commands.d.ts +111 -0
  3211. package/dist/plugin-sdk/src/plugins/config-schema.d.ts +2 -0
  3212. package/dist/plugin-sdk/src/plugins/config-state.d.ts +53 -0
  3213. package/dist/plugin-sdk/src/plugins/conversation-binding.d.ts +89 -0
  3214. package/dist/plugin-sdk/src/plugins/discovery.d.ts +30 -0
  3215. package/dist/plugin-sdk/src/plugins/enable.d.ts +7 -0
  3216. package/dist/plugin-sdk/src/plugins/hook-runner-global.d.ts +37 -0
  3217. package/dist/plugin-sdk/src/plugins/hooks.d.ts +70 -0
  3218. package/dist/plugin-sdk/src/plugins/http-path.d.ts +1 -0
  3219. package/dist/plugin-sdk/src/plugins/http-registry.d.ts +16 -0
  3220. package/dist/plugin-sdk/src/plugins/http-route-overlap.d.ts +11 -0
  3221. package/dist/plugin-sdk/src/plugins/interactive-dispatch-adapters.d.ts +44 -0
  3222. package/dist/plugin-sdk/src/plugins/interactive.d.ts +60 -0
  3223. package/dist/plugin-sdk/src/plugins/loader.d.ts +47 -0
  3224. package/dist/plugin-sdk/src/plugins/logger.d.ts +9 -0
  3225. package/dist/plugin-sdk/src/plugins/manifest-registry.d.ts +49 -0
  3226. package/dist/plugin-sdk/src/plugins/manifest.d.ts +119 -0
  3227. package/dist/plugin-sdk/src/plugins/path-safety.d.ts +5 -0
  3228. package/dist/plugin-sdk/src/plugins/provider-api-key-auth.d.ts +24 -0
  3229. package/dist/plugin-sdk/src/plugins/provider-api-key-auth.runtime.d.ts +11 -0
  3230. package/dist/plugin-sdk/src/plugins/provider-auth-helpers.d.ts +25 -0
  3231. package/dist/plugin-sdk/src/plugins/provider-auth-input.d.ts +49 -0
  3232. package/dist/plugin-sdk/src/plugins/provider-auth-mode.d.ts +14 -0
  3233. package/dist/plugin-sdk/src/plugins/provider-auth-ref.d.ts +32 -0
  3234. package/dist/plugin-sdk/src/plugins/provider-auth-token.d.ts +9 -0
  3235. package/dist/plugin-sdk/src/plugins/provider-auth-types.d.ts +1 -0
  3236. package/dist/plugin-sdk/src/plugins/provider-catalog-metadata.d.ts +6 -0
  3237. package/dist/plugin-sdk/src/plugins/provider-catalog.d.ts +24 -0
  3238. package/dist/plugin-sdk/src/plugins/provider-discovery.d.ts +37 -0
  3239. package/dist/plugin-sdk/src/plugins/provider-model-allowlist.d.ts +6 -0
  3240. package/dist/plugin-sdk/src/plugins/provider-model-defaults.d.ts +19 -0
  3241. package/dist/plugin-sdk/src/plugins/provider-model-definitions.d.ts +107 -0
  3242. package/dist/plugin-sdk/src/plugins/provider-model-helpers.d.ts +8 -0
  3243. package/dist/plugin-sdk/src/plugins/provider-model-primary.d.ts +12 -0
  3244. package/dist/plugin-sdk/src/plugins/provider-oauth-flow.d.ts +20 -0
  3245. package/dist/plugin-sdk/src/plugins/provider-ollama-setup.d.ts +32 -0
  3246. package/dist/plugin-sdk/src/plugins/provider-onboarding-config.d.ts +62 -0
  3247. package/dist/plugin-sdk/src/plugins/provider-openai-codex-oauth-tls.d.ts +22 -0
  3248. package/dist/plugin-sdk/src/plugins/provider-openai-codex-oauth.d.ts +10 -0
  3249. package/dist/plugin-sdk/src/plugins/provider-runtime.d.ts +154 -0
  3250. package/dist/plugin-sdk/src/plugins/provider-runtime.runtime.d.ts +1 -0
  3251. package/dist/plugin-sdk/src/plugins/provider-self-hosted-setup.d.ts +51 -0
  3252. package/dist/plugin-sdk/src/plugins/provider-thinking.d.ts +9 -0
  3253. package/dist/plugin-sdk/src/plugins/provider-validation.d.ts +7 -0
  3254. package/dist/plugin-sdk/src/plugins/provider-vllm-setup.d.ts +21 -0
  3255. package/dist/plugin-sdk/src/plugins/provider-zai-endpoint.d.ts +16 -0
  3256. package/dist/plugin-sdk/src/plugins/providers.d.ts +40 -0
  3257. package/dist/plugin-sdk/src/plugins/registry-empty.d.ts +2 -0
  3258. package/dist/plugin-sdk/src/plugins/registry.d.ts +191 -0
  3259. package/dist/plugin-sdk/src/plugins/roots.d.ts +18 -0
  3260. package/dist/plugin-sdk/src/plugins/runtime/gateway-request-scope.d.ts +19 -0
  3261. package/dist/plugin-sdk/src/plugins/runtime/index.d.ts +19 -0
  3262. package/dist/plugin-sdk/src/plugins/runtime/native-deps.d.ts +8 -0
  3263. package/dist/plugin-sdk/src/plugins/runtime/runtime-agent.d.ts +2 -0
  3264. package/dist/plugin-sdk/src/plugins/runtime/runtime-channel.d.ts +2 -0
  3265. package/dist/plugin-sdk/src/plugins/runtime/runtime-config.d.ts +2 -0
  3266. package/dist/plugin-sdk/src/plugins/runtime/runtime-discord-ops.runtime.d.ts +25 -0
  3267. package/dist/plugin-sdk/src/plugins/runtime/runtime-discord-typing.d.ts +15 -0
  3268. package/dist/plugin-sdk/src/plugins/runtime/runtime-discord.d.ts +2 -0
  3269. package/dist/plugin-sdk/src/plugins/runtime/runtime-events.d.ts +2 -0
  3270. package/dist/plugin-sdk/src/plugins/runtime/runtime-imessage.d.ts +2 -0
  3271. package/dist/plugin-sdk/src/plugins/runtime/runtime-logging.d.ts +2 -0
  3272. package/dist/plugin-sdk/src/plugins/runtime/runtime-matrix-boundary.d.ts +4 -0
  3273. package/dist/plugin-sdk/src/plugins/runtime/runtime-matrix.d.ts +2 -0
  3274. package/dist/plugin-sdk/src/plugins/runtime/runtime-media.d.ts +2 -0
  3275. package/dist/plugin-sdk/src/plugins/runtime/runtime-signal.d.ts +2 -0
  3276. package/dist/plugin-sdk/src/plugins/runtime/runtime-slack-ops.runtime.d.ts +11 -0
  3277. package/dist/plugin-sdk/src/plugins/runtime/runtime-slack.d.ts +2 -0
  3278. package/dist/plugin-sdk/src/plugins/runtime/runtime-system.d.ts +2 -0
  3279. package/dist/plugin-sdk/src/plugins/runtime/runtime-telegram-contract.d.ts +41 -0
  3280. package/dist/plugin-sdk/src/plugins/runtime/runtime-telegram-ops.runtime.d.ts +20 -0
  3281. package/dist/plugin-sdk/src/plugins/runtime/runtime-telegram-typing.d.ts +18 -0
  3282. package/dist/plugin-sdk/src/plugins/runtime/runtime-telegram.d.ts +2 -0
  3283. package/dist/plugin-sdk/src/plugins/runtime/runtime-tools.d.ts +2 -0
  3284. package/dist/plugin-sdk/src/plugins/runtime/runtime-whatsapp-boundary.d.ts +35 -0
  3285. package/dist/plugin-sdk/src/plugins/runtime/runtime-whatsapp-login-tool.d.ts +1 -0
  3286. package/dist/plugin-sdk/src/plugins/runtime/runtime-whatsapp.d.ts +2 -0
  3287. package/dist/plugin-sdk/src/plugins/runtime/types-channel.d.ts +242 -0
  3288. package/dist/plugin-sdk/src/plugins/runtime/types-core.d.ts +100 -0
  3289. package/dist/plugin-sdk/src/plugins/runtime/types.d.ts +50 -0
  3290. package/dist/plugin-sdk/src/plugins/runtime.d.ts +12 -0
  3291. package/dist/plugin-sdk/src/plugins/schema-validator.d.ts +17 -0
  3292. package/dist/plugin-sdk/src/plugins/sdk-alias.d.ts +47 -0
  3293. package/dist/plugin-sdk/src/plugins/setup-binary.d.ts +1 -0
  3294. package/dist/plugin-sdk/src/plugins/setup-browser.d.ts +2 -0
  3295. package/dist/plugin-sdk/src/plugins/signal-cli-install.d.ts +30 -0
  3296. package/dist/plugin-sdk/src/plugins/slots.d.ts +24 -0
  3297. package/dist/plugin-sdk/src/plugins/status.d.ts +97 -0
  3298. package/dist/plugin-sdk/src/plugins/toggle-config.d.ts +2 -0
  3299. package/dist/plugin-sdk/src/plugins/tools.d.ts +16 -0
  3300. package/dist/plugin-sdk/src/plugins/types.d.ts +1566 -0
  3301. package/dist/plugin-sdk/src/plugins/web-search-providers.d.ts +9 -0
  3302. package/dist/plugin-sdk/src/plugins/web-search-providers.runtime.d.ts +16 -0
  3303. package/dist/plugin-sdk/src/plugins/web-search-providers.shared.d.ts +13 -0
  3304. package/dist/plugin-sdk/src/poll-params.d.ts +42 -0
  3305. package/dist/plugin-sdk/src/polls.d.ts +32 -0
  3306. package/dist/plugin-sdk/src/process/command-queue.d.ts +63 -0
  3307. package/dist/plugin-sdk/src/process/exec.d.ts +36 -0
  3308. package/dist/plugin-sdk/src/process/kill-tree.d.ts +12 -0
  3309. package/dist/plugin-sdk/src/process/lanes.d.ts +6 -0
  3310. package/dist/plugin-sdk/src/process/spawn-utils.d.ts +26 -0
  3311. package/dist/plugin-sdk/src/process/supervisor/adapters/child.d.ts +10 -0
  3312. package/dist/plugin-sdk/src/process/supervisor/adapters/env.d.ts +1 -0
  3313. package/dist/plugin-sdk/src/process/supervisor/adapters/pty.d.ts +11 -0
  3314. package/dist/plugin-sdk/src/process/supervisor/index.d.ts +4 -0
  3315. package/dist/plugin-sdk/src/process/supervisor/registry.d.ts +21 -0
  3316. package/dist/plugin-sdk/src/process/supervisor/supervisor.d.ts +2 -0
  3317. package/dist/plugin-sdk/src/process/supervisor/types.d.ts +92 -0
  3318. package/dist/plugin-sdk/src/process/windows-command.d.ts +5 -0
  3319. package/dist/plugin-sdk/src/providers/github-copilot-auth.d.ts +5 -0
  3320. package/dist/plugin-sdk/src/providers/kilocode-shared.d.ts +27 -0
  3321. package/dist/plugin-sdk/src/providers/openai-defaults.d.ts +7 -0
  3322. package/dist/plugin-sdk/src/routing/account-id.d.ts +3 -0
  3323. package/dist/plugin-sdk/src/routing/account-lookup.d.ts +1 -0
  3324. package/dist/plugin-sdk/src/routing/bindings.d.ts +11 -0
  3325. package/dist/plugin-sdk/src/routing/default-account-warnings.d.ts +6 -0
  3326. package/dist/plugin-sdk/src/routing/resolve-route.d.ts +53 -0
  3327. package/dist/plugin-sdk/src/routing/session-key.d.ts +52 -0
  3328. package/dist/plugin-sdk/src/runtime.d.ts +7 -0
  3329. package/dist/plugin-sdk/src/secrets/command-config.d.ts +35 -0
  3330. package/dist/plugin-sdk/src/secrets/json-pointer.d.ts +6 -0
  3331. package/dist/plugin-sdk/src/secrets/path-utils.d.ts +5 -0
  3332. package/dist/plugin-sdk/src/secrets/provider-env-vars.d.ts +21 -0
  3333. package/dist/plugin-sdk/src/secrets/ref-contract.d.ts +33 -0
  3334. package/dist/plugin-sdk/src/secrets/resolve-secret-input-string.d.ts +12 -0
  3335. package/dist/plugin-sdk/src/secrets/resolve.d.ts +40 -0
  3336. package/dist/plugin-sdk/src/secrets/runtime-auth-collectors.d.ts +7 -0
  3337. package/dist/plugin-sdk/src/secrets/runtime-config-collectors-channels.d.ts +7 -0
  3338. package/dist/plugin-sdk/src/secrets/runtime-config-collectors-core.d.ts +7 -0
  3339. package/dist/plugin-sdk/src/secrets/runtime-config-collectors-tts.d.ts +9 -0
  3340. package/dist/plugin-sdk/src/secrets/runtime-config-collectors.d.ts +6 -0
  3341. package/dist/plugin-sdk/src/secrets/runtime-gateway-auth-surfaces.d.ts +16 -0
  3342. package/dist/plugin-sdk/src/secrets/runtime-shared.d.ts +52 -0
  3343. package/dist/plugin-sdk/src/secrets/runtime-web-tools.d.ts +9 -0
  3344. package/dist/plugin-sdk/src/secrets/runtime-web-tools.types.d.ts +26 -0
  3345. package/dist/plugin-sdk/src/secrets/runtime.d.ts +34 -0
  3346. package/dist/plugin-sdk/src/secrets/secret-value.d.ts +8 -0
  3347. package/dist/plugin-sdk/src/secrets/shared.d.ts +11 -0
  3348. package/dist/plugin-sdk/src/secrets/target-registry-data.d.ts +3 -0
  3349. package/dist/plugin-sdk/src/secrets/target-registry-pattern.d.ts +28 -0
  3350. package/dist/plugin-sdk/src/secrets/target-registry-query.d.ts +18 -0
  3351. package/dist/plugin-sdk/src/secrets/target-registry-types.d.ts +39 -0
  3352. package/dist/plugin-sdk/src/secrets/target-registry.d.ts +1 -0
  3353. package/dist/plugin-sdk/src/security/audit-fs.d.ts +44 -0
  3354. package/dist/plugin-sdk/src/security/channel-metadata.d.ts +6 -0
  3355. package/dist/plugin-sdk/src/security/config-regex.d.ts +22 -0
  3356. package/dist/plugin-sdk/src/security/dm-policy-shared.d.ts +92 -0
  3357. package/dist/plugin-sdk/src/security/external-content.d.ts +58 -0
  3358. package/dist/plugin-sdk/src/security/safe-regex.d.ts +16 -0
  3359. package/dist/plugin-sdk/src/security/scan-paths.d.ts +5 -0
  3360. package/dist/plugin-sdk/src/security/secret-equal.d.ts +1 -0
  3361. package/dist/plugin-sdk/src/security/windows-acl.d.ts +37 -0
  3362. package/dist/plugin-sdk/src/sessions/input-provenance.d.ts +17 -0
  3363. package/dist/plugin-sdk/src/sessions/level-overrides.d.ts +10 -0
  3364. package/dist/plugin-sdk/src/sessions/model-overrides.d.ts +14 -0
  3365. package/dist/plugin-sdk/src/sessions/send-policy.d.ts +11 -0
  3366. package/dist/plugin-sdk/src/sessions/session-id-resolution.d.ts +2 -0
  3367. package/dist/plugin-sdk/src/sessions/session-id.d.ts +2 -0
  3368. package/dist/plugin-sdk/src/sessions/session-key-utils.d.ts +20 -0
  3369. package/dist/plugin-sdk/src/sessions/session-label.d.ts +9 -0
  3370. package/dist/plugin-sdk/src/sessions/session-lifecycle-events.d.ts +11 -0
  3371. package/dist/plugin-sdk/src/sessions/transcript-events.d.ts +10 -0
  3372. package/dist/plugin-sdk/src/shared/assistant-error-format.d.ts +16 -0
  3373. package/dist/plugin-sdk/src/shared/avatar-policy.d.ts +16 -0
  3374. package/dist/plugin-sdk/src/shared/chat-content.d.ts +5 -0
  3375. package/dist/plugin-sdk/src/shared/chat-envelope.d.ts +2 -0
  3376. package/dist/plugin-sdk/src/shared/config-eval.d.ts +26 -0
  3377. package/dist/plugin-sdk/src/shared/device-auth-store.d.ts +23 -0
  3378. package/dist/plugin-sdk/src/shared/device-auth.d.ts +13 -0
  3379. package/dist/plugin-sdk/src/shared/frontmatter.d.ts +29 -0
  3380. package/dist/plugin-sdk/src/shared/gateway-bind-url.d.ts +14 -0
  3381. package/dist/plugin-sdk/src/shared/global-singleton.d.ts +2 -0
  3382. package/dist/plugin-sdk/src/shared/lazy-runtime.d.ts +7 -0
  3383. package/dist/plugin-sdk/src/shared/net/ip.d.ts +20 -0
  3384. package/dist/plugin-sdk/src/shared/net/url-userinfo.d.ts +1 -0
  3385. package/dist/plugin-sdk/src/shared/node-list-parse.d.ts +3 -0
  3386. package/dist/plugin-sdk/src/shared/node-list-types.d.ts +48 -0
  3387. package/dist/plugin-sdk/src/shared/node-match.d.ts +9 -0
  3388. package/dist/plugin-sdk/src/shared/node-resolve.d.ts +8 -0
  3389. package/dist/plugin-sdk/src/shared/operator-scope-compat.d.ts +10 -0
  3390. package/dist/plugin-sdk/src/shared/pid-alive.d.ts +10 -0
  3391. package/dist/plugin-sdk/src/shared/process-scoped-map.d.ts +1 -0
  3392. package/dist/plugin-sdk/src/shared/session-types.d.ts +25 -0
  3393. package/dist/plugin-sdk/src/shared/session-usage-timeseries-types.d.ts +15 -0
  3394. package/dist/plugin-sdk/src/shared/string-normalization.d.ts +4 -0
  3395. package/dist/plugin-sdk/src/shared/string-sample.d.ts +5 -0
  3396. package/dist/plugin-sdk/src/shared/subagents-format.d.ts +15 -0
  3397. package/dist/plugin-sdk/src/shared/tailscale-status.d.ts +8 -0
  3398. package/dist/plugin-sdk/src/shared/text/assistant-visible-text.d.ts +1 -0
  3399. package/dist/plugin-sdk/src/shared/text/auto-linked-file-ref.d.ts +2 -0
  3400. package/dist/plugin-sdk/src/shared/text/code-regions.d.ts +6 -0
  3401. package/dist/plugin-sdk/src/shared/text/join-segments.d.ts +9 -0
  3402. package/dist/plugin-sdk/src/shared/text/reasoning-tags.d.ts +6 -0
  3403. package/dist/plugin-sdk/src/shared/text-chunking.d.ts +1 -0
  3404. package/dist/plugin-sdk/src/terminal/ansi.d.ts +9 -0
  3405. package/dist/plugin-sdk/src/terminal/health-style.d.ts +1 -0
  3406. package/dist/plugin-sdk/src/terminal/links.d.ts +6 -0
  3407. package/dist/plugin-sdk/src/terminal/note.d.ts +5 -0
  3408. package/dist/plugin-sdk/src/terminal/palette.d.ts +10 -0
  3409. package/dist/plugin-sdk/src/terminal/progress-line.d.ts +3 -0
  3410. package/dist/plugin-sdk/src/terminal/prompt-style.d.ts +3 -0
  3411. package/dist/plugin-sdk/src/terminal/restore.d.ts +17 -0
  3412. package/dist/plugin-sdk/src/terminal/safe-text.d.ts +4 -0
  3413. package/dist/plugin-sdk/src/terminal/theme.d.ts +15 -0
  3414. package/dist/plugin-sdk/src/test-utils/vitest-mock-fn.d.ts +1 -0
  3415. package/dist/plugin-sdk/src/tts/provider-registry.d.ts +6 -0
  3416. package/dist/plugin-sdk/src/tts/provider-types.d.ts +46 -0
  3417. package/dist/plugin-sdk/src/tts/providers/elevenlabs.d.ts +7 -0
  3418. package/dist/plugin-sdk/src/tts/providers/microsoft.d.ts +4 -0
  3419. package/dist/plugin-sdk/src/tts/providers/openai.d.ts +2 -0
  3420. package/dist/plugin-sdk/src/tts/runtime.d.ts +1 -0
  3421. package/dist/plugin-sdk/src/tts/tts-core.d.ts +57 -0
  3422. package/dist/plugin-sdk/src/tts/tts.d.ts +216 -0
  3423. package/dist/plugin-sdk/src/utils/account-id.d.ts +1 -0
  3424. package/dist/plugin-sdk/src/utils/boolean.d.ts +5 -0
  3425. package/dist/plugin-sdk/src/utils/chunk-items.d.ts +1 -0
  3426. package/dist/plugin-sdk/src/utils/delivery-context.d.ts +42 -0
  3427. package/dist/plugin-sdk/src/utils/directive-tags.d.ts +29 -0
  3428. package/dist/plugin-sdk/src/utils/fetch-timeout.d.ts +13 -0
  3429. package/dist/plugin-sdk/src/utils/mask-api-key.d.ts +1 -0
  3430. package/dist/plugin-sdk/src/utils/message-channel.d.ts +27 -0
  3431. package/dist/plugin-sdk/src/utils/normalize-secret-input.d.ts +17 -0
  3432. package/dist/plugin-sdk/src/utils/parse-json-compat.d.ts +1 -0
  3433. package/dist/plugin-sdk/src/utils/provider-utils.d.ts +9 -0
  3434. package/dist/plugin-sdk/src/utils/queue-helpers.d.ts +80 -0
  3435. package/dist/plugin-sdk/src/utils/reaction-level.d.ts +15 -0
  3436. package/dist/plugin-sdk/src/utils/run-with-concurrency.d.ts +11 -0
  3437. package/dist/plugin-sdk/src/utils/safe-json.d.ts +1 -0
  3438. package/dist/plugin-sdk/src/utils/shell-argv.d.ts +1 -0
  3439. package/dist/plugin-sdk/src/utils/transcript-tools.d.ts +8 -0
  3440. package/dist/plugin-sdk/src/utils/usage-format.d.ts +27 -0
  3441. package/dist/plugin-sdk/src/utils/with-timeout.d.ts +1 -0
  3442. package/dist/plugin-sdk/src/utils.d.ts +61 -0
  3443. package/dist/plugin-sdk/src/version.d.ts +16 -0
  3444. package/dist/plugin-sdk/src/web-search/runtime.d.ts +46 -0
  3445. package/dist/plugin-sdk/src/whatsapp/normalize.d.ts +6 -0
  3446. package/dist/plugin-sdk/src/whatsapp/resolve-outbound-target.d.ts +12 -0
  3447. package/dist/plugin-sdk/src/wizard/prompts.d.ts +43 -0
  3448. package/dist/plugin-sdk/src/wizard/session.d.ts +42 -0
  3449. package/dist/plugin-sdk/ssrf-runtime.d.ts +1 -0
  3450. package/dist/plugin-sdk/ssrf-runtime.js +5 -0
  3451. package/dist/plugin-sdk/state-paths.d.ts +1 -0
  3452. package/dist/plugin-sdk/state-paths.js +3 -0
  3453. package/dist/plugin-sdk/status-helpers.d.ts +1 -0
  3454. package/dist/plugin-sdk/status-helpers.js +9 -0
  3455. package/dist/plugin-sdk/telegram-core.d.ts +1 -0
  3456. package/dist/plugin-sdk/telegram-core.js +23 -0
  3457. package/dist/plugin-sdk/telegram.d.ts +1 -0
  3458. package/dist/plugin-sdk/telegram.js +224 -0
  3459. package/dist/plugin-sdk/testing.d.ts +1 -0
  3460. package/dist/plugin-sdk/testing.js +13174 -0
  3461. package/dist/plugin-sdk/text-runtime.d.ts +1 -0
  3462. package/dist/plugin-sdk/text-runtime.js +45 -0
  3463. package/dist/plugin-sdk/thread-bindings-runtime.d.ts +1 -0
  3464. package/dist/plugin-sdk/thread-bindings-runtime.js +2 -0
  3465. package/dist/plugin-sdk/thread-ownership.d.ts +1 -0
  3466. package/dist/plugin-sdk/thread-ownership.js +2 -0
  3467. package/dist/plugin-sdk/tlon.d.ts +1 -0
  3468. package/dist/plugin-sdk/tlon.js +57 -0
  3469. package/dist/plugin-sdk/tool-send.d.ts +1 -0
  3470. package/dist/plugin-sdk/tool-send.js +2 -0
  3471. package/dist/plugin-sdk/twitch.d.ts +1 -0
  3472. package/dist/plugin-sdk/twitch.js +46 -0
  3473. package/dist/plugin-sdk/voice-call.d.ts +1 -0
  3474. package/dist/plugin-sdk/voice-call.js +213 -0
  3475. package/dist/plugin-sdk/web-media.d.ts +1 -0
  3476. package/dist/plugin-sdk/web-media.js +28 -0
  3477. package/dist/plugin-sdk/webhook-ingress.d.ts +1 -0
  3478. package/dist/plugin-sdk/webhook-ingress.js +7 -0
  3479. package/dist/plugin-sdk/webhook-path.d.ts +1 -0
  3480. package/dist/plugin-sdk/webhook-path.js +29 -0
  3481. package/dist/plugin-sdk/whatsapp-core.d.ts +1 -0
  3482. package/dist/plugin-sdk/whatsapp-core.js +219 -0
  3483. package/dist/plugin-sdk/whatsapp-shared.d.ts +1 -0
  3484. package/dist/plugin-sdk/whatsapp-shared.js +18 -0
  3485. package/dist/plugin-sdk/windows-spawn.d.ts +1 -0
  3486. package/dist/plugin-sdk/windows-spawn.js +2 -0
  3487. package/dist/plugin-sdk/zalo.d.ts +1 -0
  3488. package/dist/plugin-sdk/zalo.js +239 -0
  3489. package/dist/plugin-sdk/zalouser.d.ts +1 -0
  3490. package/dist/plugin-sdk/zalouser.js +240 -0
  3491. package/dist/plugins/build-smoke-entry.js +211 -0
  3492. package/dist/plugins/runtime/index.js +229 -0
  3493. package/dist/plugins-1Z50ecJ6.js +1 -0
  3494. package/dist/plugins-C6fKmNuA.js +7 -0
  3495. package/dist/plugins-cli-C9F7LFai.js +1192 -0
  3496. package/dist/policy-CpkbSAfm.js +60 -0
  3497. package/dist/polls-B2VH7SN9.js +35 -0
  3498. package/dist/ports-BjWuIIQw.js +262 -0
  3499. package/dist/ports-bjxjgHBT.js +385 -0
  3500. package/dist/ports-lsof-DtJqhFOr.js +25 -0
  3501. package/dist/ports-probe-BQqp8l8E.js +14 -0
  3502. package/dist/preflight-audio.runtime-CHKtYFCD.js +216 -0
  3503. package/dist/probe-B4addlGb.js +20 -0
  3504. package/dist/probe-DEHTy47Q.js +134 -0
  3505. package/dist/probe-auth-f8H5asG2.js +45 -0
  3506. package/dist/probe-auth-w1LTAARt.js +48 -0
  3507. package/dist/process-runtime-C7el-Ri4.js +1 -0
  3508. package/dist/process-scoped-map-C4gOa-gv.js +61 -0
  3509. package/dist/profile-utils-BcMYGFPT.js +15 -0
  3510. package/dist/profiles-D17eMKQZ.js +683 -0
  3511. package/dist/program-7yuBUzsM.js +155 -0
  3512. package/dist/program-context-BMWNUfqL.js +10 -0
  3513. package/dist/program-context-CD_RvRYh.js +2 -0
  3514. package/dist/progress-D1r9bZU1.js +132 -0
  3515. package/dist/prompt-select-styled-nNVADeGF.js +4879 -0
  3516. package/dist/prompt-style-BvciNCqy.js +7 -0
  3517. package/dist/prompts-NtuylUyl.js +9 -0
  3518. package/dist/prototype-keys-Cm_8mWvq.js +11 -0
  3519. package/dist/provider-api-key-auth-BE0taXiB.js +108 -0
  3520. package/dist/provider-api-key-auth.runtime-jDZZUAMX.js +34 -0
  3521. package/dist/provider-auth-Bw8x1a3o.js +58 -0
  3522. package/dist/provider-auth-api-key-BrQYvdxi.js +1 -0
  3523. package/dist/provider-auth-choice-CHLyhQwI.js +128 -0
  3524. package/dist/provider-auth-choice-helpers-Bj1GkOSn.js +48 -0
  3525. package/dist/provider-auth-choice-preference-DlolknHt.js +192 -0
  3526. package/dist/provider-auth-choice.runtime-unOg_4AL.js +223 -0
  3527. package/dist/provider-auth-choices-QSilukI1.js +58 -0
  3528. package/dist/provider-auth-guidance-7WCTw6mb.js +34 -0
  3529. package/dist/provider-auth-helpers-B0dS-1WK.js +86 -0
  3530. package/dist/provider-auth-input-BftBdgvW.js +112 -0
  3531. package/dist/provider-auth-login-MdVTo3EF.js +8 -0
  3532. package/dist/provider-auth-login.runtime-CmHgk5FU.js +243 -0
  3533. package/dist/provider-auth-mode-sTdccIKL.js +20 -0
  3534. package/dist/provider-auth-ref-BS3gwrNr.js +168 -0
  3535. package/dist/provider-auth-ref-BmEcEN7K.js +3 -0
  3536. package/dist/provider-catalog--18-pW5t.js +11 -0
  3537. package/dist/provider-catalog-2P2hel74.js +48 -0
  3538. package/dist/provider-catalog-B0FqWSwe.js +48 -0
  3539. package/dist/provider-catalog-BvORKzzD.js +91 -0
  3540. package/dist/provider-catalog-C34j1_or.js +26 -0
  3541. package/dist/provider-catalog-C5vmXjmb.js +11 -0
  3542. package/dist/provider-catalog-CBufm2Dr.js +36 -0
  3543. package/dist/provider-catalog-D7QvsUXS.js +12 -0
  3544. package/dist/provider-catalog-DKy_dzQZ.js +41 -0
  3545. package/dist/provider-env-vars-CsQlY7bF.js +110 -0
  3546. package/dist/provider-id-BpXo5t6v.js +31 -0
  3547. package/dist/provider-model-allowlist-4HSOnlX-.js +24 -0
  3548. package/dist/provider-model-primary-NJ-xlhec.js +53 -0
  3549. package/dist/provider-models-C2EjYMwW.js +2416 -0
  3550. package/dist/provider-oauth-flow-BQN6F6EC.js +33 -0
  3551. package/dist/provider-ollama-setup-DhQvDwAj.js +309 -0
  3552. package/dist/provider-onboard-CjOfyeQG.js +1 -0
  3553. package/dist/provider-onboarding-config-DOZ3pFA6.js +165 -0
  3554. package/dist/provider-openai-codex-oauth-tls-CciH-ElI.js +101 -0
  3555. package/dist/provider-runtime.runtime-CqLlOpNN.js +211 -0
  3556. package/dist/provider-self-hosted-setup-CUrmsugW.js +182 -0
  3557. package/dist/provider-usage-ClDVmkhl.js +633 -0
  3558. package/dist/provider-usage-Da21nLuJ.js +211 -0
  3559. package/dist/provider-web-search-D2JPMqCP.js +507 -0
  3560. package/dist/provider-wizard-DLQlOsRE.js +236 -0
  3561. package/dist/provider-zai-endpoint-DeDABzT4.js +106 -0
  3562. package/dist/proxy-H5O2p6AP.js +121 -0
  3563. package/dist/proxy-env-DG2u55RW.js +40 -0
  3564. package/dist/push-apns-DthmTY-D.js +1050 -0
  3565. package/dist/pw-ai-S7kXHa5n.js +1876 -0
  3566. package/dist/qmd-manager-BpygGMW9.js +1571 -0
  3567. package/dist/qr-cli-BujxPQbh.js +370 -0
  3568. package/dist/qr-cli-DVmW5mdc.js +213 -0
  3569. package/dist/query-expansion-Do45hILP.js +1114 -0
  3570. package/dist/reactions-BlWPBR0l.js +281 -0
  3571. package/dist/read-only-account-inspect-CuuTbX8x.js +42 -0
  3572. package/dist/read-only-account-inspect.discord.runtime-BNqMWV41.js +216 -0
  3573. package/dist/read-only-account-inspect.slack.runtime-CNRAytxm.js +216 -0
  3574. package/dist/read-only-account-inspect.telegram.runtime-byPPLnsZ.js +216 -0
  3575. package/dist/redact-BDinS1q9.js +102 -0
  3576. package/dist/redact-identifier-FUiWQxv5.js +13 -0
  3577. package/dist/redact-snapshot-DBPmeYy2.js +2654 -0
  3578. package/dist/ref-contract-CCBBbf1r.js +53 -0
  3579. package/dist/register-CppP7Ddc.js +43 -0
  3580. package/dist/register.agent-Cy1pvUnS.js +546 -0
  3581. package/dist/register.backup-Dxsn-Yi4.js +269 -0
  3582. package/dist/register.configure-BOONWPZN.js +354 -0
  3583. package/dist/register.maintenance-C_E5F3xW.js +694 -0
  3584. package/dist/register.message-BwmuEJ7n.js +812 -0
  3585. package/dist/register.onboard-D4Fu6BPi.js +298 -0
  3586. package/dist/register.setup-DJYgl_5E.js +318 -0
  3587. package/dist/register.status-health-sessions-B0KtOOEc.js +604 -0
  3588. package/dist/register.subclis-CKJ5Qvch.js +315 -0
  3589. package/dist/register.subclis-CcdM_H8W.js +13 -0
  3590. package/dist/registry-C3q59Qj0.js +55 -0
  3591. package/dist/registry-CPsHw6xU.js +219 -0
  3592. package/dist/registry-CxgtJ09C.js +28 -0
  3593. package/dist/registry-rgYi7KoO.js +160 -0
  3594. package/dist/repair-qXnOAvDy.js +105 -0
  3595. package/dist/replies-MyUi4VUF.js +122 -0
  3596. package/dist/reply-history-CVCD5oE9.js +1 -0
  3597. package/dist/reply-payload-DBGc074f.js +232 -0
  3598. package/dist/report-cli-DB1jQx32.js +42 -0
  3599. package/dist/request-url-BKfWAQx8.js +10 -0
  3600. package/dist/resolve-Ckjd8TAk.js +14 -0
  3601. package/dist/resolve-T2q_0ARF.js +619 -0
  3602. package/dist/resolve-route-vEY3ONZ2.js +466 -0
  3603. package/dist/resolve-utils-CF8cU9WO.js +102 -0
  3604. package/dist/response-generator-VdoCcQ3y.js +153 -0
  3605. package/dist/restart-stale-pids-CLGiqU2E.js +187 -0
  3606. package/dist/retry-D15TD1S3.js +168 -0
  3607. package/dist/root-help-2Fvs2dP7.js +32 -0
  3608. package/dist/routes-LnFKW9Eh.js +7084 -0
  3609. package/dist/routing-Y3m0o-kB.js +26 -0
  3610. package/dist/rpc-lnQaxoYH.js +67 -0
  3611. package/dist/run-command-DRKv5Lj6.js +32 -0
  3612. package/dist/run-main-XmwwulYd.js +425 -0
  3613. package/dist/run-with-concurrency-BrSjWzpg.js +41 -0
  3614. package/dist/runtime-B66W9flm.js +43 -0
  3615. package/dist/runtime-CT2LIJZu.js +91 -0
  3616. package/dist/runtime-Cl6sSlDG.js +143 -0
  3617. package/dist/runtime-CuvWMN7E.js +89 -0
  3618. package/dist/runtime-D4_OpzA1.js +5 -0
  3619. package/dist/runtime-DP-4DZja.js +5 -0
  3620. package/dist/runtime-Dl17x_cV.js +1 -0
  3621. package/dist/runtime-Dwejo3y0.js +2338 -0
  3622. package/dist/runtime-Z35JoYPC.js +30 -0
  3623. package/dist/runtime-api-AQf4CGN0.js +39 -0
  3624. package/dist/runtime-api-D79M0lQN.js +1 -0
  3625. package/dist/runtime-discord-ops.runtime-CvmUbfVm.js +234 -0
  3626. package/dist/runtime-env-a_iwdJIv.js +1 -0
  3627. package/dist/runtime-forwarders-DtMc8rBP.js +44 -0
  3628. package/dist/runtime-group-policy-B7irU4eu.js +59 -0
  3629. package/dist/runtime-guard-y62lPDGY.js +58 -0
  3630. package/dist/runtime-parse-CeqXmZHJ.js +84 -0
  3631. package/dist/runtime-paths-2jrzlMjr.js +334 -0
  3632. package/dist/runtime-slack-ops.runtime-D7IhY8CD.js +226 -0
  3633. package/dist/runtime-status-CgL02wYX.js +15 -0
  3634. package/dist/runtime-store-Bt3Sdbrn.js +22 -0
  3635. package/dist/runtime-telegram-ops.runtime-DMM0_L8z.js +233 -0
  3636. package/dist/runtime-whatsapp-boundary-BE-h0Dkz.js +371 -0
  3637. package/dist/safe-open-sync-Bt9R1Mnf.js +83 -0
  3638. package/dist/safe-regex-tLlDZYfM.js +244 -0
  3639. package/dist/safe-text-B_CQuica.js +16 -0
  3640. package/dist/sandbox-Ceruxpo4.js +2795 -0
  3641. package/dist/sandbox-cli-Bj_FeUbQ.js +499 -0
  3642. package/dist/sandbox-paths-fqp_TZdO.js +144 -0
  3643. package/dist/sandbox-qSs4h3sk.js +1 -0
  3644. package/dist/sanitize-env-vars-vNSNqm0y.js +74 -0
  3645. package/dist/scan-paths-BJmvUZ1E.js +28 -0
  3646. package/dist/search-manager-5CMnrJiG.js +392 -0
  3647. package/dist/search-manager-mbopau6D.js +17 -0
  3648. package/dist/secret-equal-ObQfyZGa.js +9 -0
  3649. package/dist/secret-file-Ch0yuOXR.js +11 -0
  3650. package/dist/secret-file-DYJtH6kf.js +92 -0
  3651. package/dist/secret-input-4REZ4sHo.js +35 -0
  3652. package/dist/secrets-cli-CDAAxiLx.js +2304 -0
  3653. package/dist/secure-random-Cs8tw_HQ.js +10 -0
  3654. package/dist/security-cli-73x8ZrPY.js +676 -0
  3655. package/dist/security-runtime-BuEhpJVE.js +23 -0
  3656. package/dist/send-3tabvle6.js +100 -0
  3657. package/dist/send-CK2mTZ2A.js +1026 -0
  3658. package/dist/send-CoghdDtC.js +250 -0
  3659. package/dist/send-deps-CrFMNvqO.js +19 -0
  3660. package/dist/server-DsQSJw3K.js +116 -0
  3661. package/dist/server-middleware-CCqKhKUb.js +106 -0
  3662. package/dist/server-node-events-ByKRzTEW.js +611 -0
  3663. package/dist/server-startup-matrix-migration-DXgvClaj.js +1595 -0
  3664. package/dist/service-CCEFa-Yp.js +21 -0
  3665. package/dist/service-DsLjWzXO.js +774 -0
  3666. package/dist/session-cost-usage-Bcu2puh5.js +615 -0
  3667. package/dist/session-cost-usage-CqAjBtg1.js +212 -0
  3668. package/dist/session-fork.runtime-BZfcC1Nc.js +51 -0
  3669. package/dist/session-key-gFFk3uv9.js +216 -0
  3670. package/dist/session-write-lock-DNKvpjKf.js +324 -0
  3671. package/dist/sessions-BjptmD-t.js +669 -0
  3672. package/dist/sessions-CcXbjCp-.js +212 -0
  3673. package/dist/sessions-DzQPJoHb.js +222 -0
  3674. package/dist/setup-CN-teRpz.js +8 -0
  3675. package/dist/setup-adapter-runtime-Bjv2adwG.js +1 -0
  3676. package/dist/setup-binary-BOJA7zdN.js +30 -0
  3677. package/dist/setup-browser-BhNPCUtK.js +71 -0
  3678. package/dist/setup-core-7tpbsHoe.js +510 -0
  3679. package/dist/setup-core-DsGvW4Oh.js +149 -0
  3680. package/dist/setup-core-m6QfoAWl.js +162 -0
  3681. package/dist/setup-entry-BgrHdl35.js +13 -0
  3682. package/dist/setup-entry-DKV-8VNp.js +13 -0
  3683. package/dist/setup-entry-Df-K2RuZ.js +12 -0
  3684. package/dist/setup-entry-DxtbuNKQ.js +12 -0
  3685. package/dist/setup-entry-Dzn7A8q7.js +10 -0
  3686. package/dist/setup-entry-bSF8R2r8.js +14 -0
  3687. package/dist/setup-group-access-BtPApRvE.js +70 -0
  3688. package/dist/setup-helpers-B62Ecg9r.js +362 -0
  3689. package/dist/setup-saJ2s_47.js +397 -0
  3690. package/dist/setup-surface-BGYo0Juy.js +452 -0
  3691. package/dist/setup-surface-Cx1YVfWw.js +298 -0
  3692. package/dist/setup-surface-DF1wiFx2.js +380 -0
  3693. package/dist/setup-tools-BPiMjAN7.js +1 -0
  3694. package/dist/setup-wizard-helpers-COZ1UAdX.js +770 -0
  3695. package/dist/setup-wizard-proxy-Slwi-1gX.js +116 -0
  3696. package/dist/setup.finalize-BEoLI29h.js +633 -0
  3697. package/dist/setup.gateway-config-6ACjCQcc.js +288 -0
  3698. package/dist/setup.secret-input-BL-bqJpt.js +25 -0
  3699. package/dist/shared-AygSbeCK.js +50 -0
  3700. package/dist/shared-BEtSbYbS.js +70 -0
  3701. package/dist/shared-BU0QgVMZ.js +36 -0
  3702. package/dist/shared-B_i-s5Yg.js +127 -0
  3703. package/dist/shared-CsOwQtm1.js +82 -0
  3704. package/dist/shared-DA95aWfS.js +196 -0
  3705. package/dist/shared-DsbqCNFQ.js +64 -0
  3706. package/dist/shared-LeP8iUTz.js +54 -0
  3707. package/dist/shared-N35AUgZI.js +351 -0
  3708. package/dist/shared-qmfOl6pa.js +87 -0
  3709. package/dist/shell-argv-DWV43Vya.js +72 -0
  3710. package/dist/shell-env-cD92jEyV.js +181 -0
  3711. package/dist/signal-8EYn_jCw.js +214 -0
  3712. package/dist/signal-Ca7y47bM.js +46 -0
  3713. package/dist/signal-CdndhLSx.js +315 -0
  3714. package/dist/signal-cli-install-DxoL8CgF.js +188 -0
  3715. package/dist/skill-commands-CiSwTFBQ.js +652 -0
  3716. package/dist/skill-commands.runtime-CEwlWT4j.js +34 -0
  3717. package/dist/skill-scanner-DG7MT7pu.js +354 -0
  3718. package/dist/skills-BC8GJ9Rp.js +22 -0
  3719. package/dist/skills-CCgKs_NJ.js +863 -0
  3720. package/dist/skills-cli-Xqm4TQ_x.js +339 -0
  3721. package/dist/skills-install-DiriUXJd.js +763 -0
  3722. package/dist/skills-status-BmQTn4jL.js +23 -0
  3723. package/dist/skills-status-a9b899Y3.js +169 -0
  3724. package/dist/slack-C3ZawHgc.js +217 -0
  3725. package/dist/slack-DnTAFEmr.js +730 -0
  3726. package/dist/slack-UD0yJzLR.js +24536 -0
  3727. package/dist/slack-core-DcsbATUs.js +1 -0
  3728. package/dist/slash-commands.runtime-sOpKLp0F.js +228 -0
  3729. package/dist/slash-dispatch.runtime-CbC_hoS7.js +238 -0
  3730. package/dist/slash-skill-commands.runtime-CXNUQJQR.js +216 -0
  3731. package/dist/speech-bSreRuDH.js +1 -0
  3732. package/dist/speech-runtime-y1FcnGVA.js +1 -0
  3733. package/dist/src-CmXHIz5f.js +846 -0
  3734. package/dist/ssh-config-ChqR6ijV.js +77 -0
  3735. package/dist/ssh-tunnel-BWqSNkJo.js +159 -0
  3736. package/dist/ssh-tunnel-DXVCvSif.js +16 -0
  3737. package/dist/ssrf-Dk9XaoKN.js +220 -0
  3738. package/dist/ssrf-policy-Dk6oMa20.js +69 -0
  3739. package/dist/ssrf-runtime-C-mAQLVA.js +1 -0
  3740. package/dist/stagger-DU7FjHYo.js +54 -0
  3741. package/dist/state-paths-DJIGEFq_.js +1 -0
  3742. package/dist/status-1dN68Nry.js +212 -0
  3743. package/dist/status-B5jKN_AU.js +606 -0
  3744. package/dist/status-BQWWxkTB.js +235 -0
  3745. package/dist/status-By03N6J2.js +44 -0
  3746. package/dist/status-COGoXc70.js +202 -0
  3747. package/dist/status-ClMSSlfZ.js +1665 -0
  3748. package/dist/status-Dl_kHCzm.js +75 -0
  3749. package/dist/status-helpers-Cda-rGLX.js +101 -0
  3750. package/dist/status-json-DXiuJMkM.js +322 -0
  3751. package/dist/status.link-channel-DVXC4ITW.js +40 -0
  3752. package/dist/status.scan.deps.runtime-BklcI9d4.js +77 -0
  3753. package/dist/status.scan.runtime-Bz0f5qUW.js +14 -0
  3754. package/dist/status.summary-D8-ms-9P.js +600 -0
  3755. package/dist/status.summary.runtime-Cng6MzRU.js +151 -0
  3756. package/dist/status.update-CjoH4lVV.js +79 -0
  3757. package/dist/store-AMSZUI0p.js +1446 -0
  3758. package/dist/store.runtime-B0dFf2pa.js +43 -0
  3759. package/dist/string-normalization-CvzuCAZv.js +19 -0
  3760. package/dist/string-sample-BOLqzr4Y.js +11 -0
  3761. package/dist/subagent-orphan-recovery-CDTomicF.js +407 -0
  3762. package/dist/subagent-registry-runtime-kD87ylaJ.js +211 -0
  3763. package/dist/subcli-descriptors-CteQXLPG.js +151 -0
  3764. package/dist/subsystem-CUp-6QQf.js +421 -0
  3765. package/dist/synology-chat-CFiJEDRu.js +12 -0
  3766. package/dist/system-cli-D2pMYxTX.js +99 -0
  3767. package/dist/system-events-mAu6Ap6K.js +75 -0
  3768. package/dist/system-message-DA9eUYzB.js +16 -0
  3769. package/dist/system-run-command-BV7UnYxn.js +258 -0
  3770. package/dist/systemd-CrxZBFae.js +557 -0
  3771. package/dist/systemd-hints-BLAoAquw.js +315 -0
  3772. package/dist/systemd-linger-BdklDcLg.js +16 -0
  3773. package/dist/systemd-linger-DLrbG9_d.js +68 -0
  3774. package/dist/table-DFMOhmNZ.js +305 -0
  3775. package/dist/tailnet-ofqBrXzu.js +38 -0
  3776. package/dist/tailscale-Cbsx-2HB.js +254 -0
  3777. package/dist/target-errors-ksphhzJg.js +26 -0
  3778. package/dist/target-registry-krAVlXi_.js +1321 -0
  3779. package/dist/telegram/audit.js +2 -0
  3780. package/dist/telegram/token.js +211 -0
  3781. package/dist/telegram--sUKZkSQ.js +218 -0
  3782. package/dist/telegram-T7TInjDG.js +575 -0
  3783. package/dist/telegram-core-B4Jo-uko.js +1 -0
  3784. package/dist/telegram-gE5VPMy9.js +10910 -0
  3785. package/dist/template-messages-kh7VfgOb.js +214 -0
  3786. package/dist/text-chunking-CUf5WgqG.js +19 -0
  3787. package/dist/text-format-sFXlJfHH.js +8 -0
  3788. package/dist/text-runtime-C_Roi_Je.js +1418 -0
  3789. package/dist/theme-B5HDbQfl.js +2 -0
  3790. package/dist/theme-CdOoMzRk.js +34 -0
  3791. package/dist/thinking-BBD_0HSp.js +68 -0
  3792. package/dist/thinking.shared-CncvRHts.js +246 -0
  3793. package/dist/thread-bindings-messages-Cdo8jSa9.js +229 -0
  3794. package/dist/thread-bindings-policy-DMjOaNyR.js +119 -0
  3795. package/dist/thread-bindings-runtime-Ckwk3Uuz.js +1 -0
  3796. package/dist/threading-helpers-Cq55SUtb.js +14 -0
  3797. package/dist/timeouts-BwR1sGom.js +72 -0
  3798. package/dist/tmp-openclaw-dir-idKIOMmb.js +102 -0
  3799. package/dist/token-Bgv8XEsC.js +50 -0
  3800. package/dist/tool-catalog-BV6FcEWS.js +337 -0
  3801. package/dist/tool-policy-match-hui3aCeL.js +46 -0
  3802. package/dist/tool-send-9LXKcrda.js +16 -0
  3803. package/dist/topology-cli-BhUXVViF.js +43 -0
  3804. package/dist/transcript-events-B1V6z5ct.js +29 -0
  3805. package/dist/tui-DPFSXSKf.js +3838 -0
  3806. package/dist/tui-cli-ARm2kBar.js +237 -0
  3807. package/dist/typebox-D0SHDJST.js +175 -0
  3808. package/dist/types-BCKGVVld.js +83 -0
  3809. package/dist/types-CtpUGsDP.js +30 -0
  3810. package/dist/types.secrets-BWSeXrF4.js +80 -0
  3811. package/dist/types.tools-BBO8HCi6.js +22 -0
  3812. package/dist/typing-DG_YqWJ7.js +224 -0
  3813. package/dist/unhandled-rejections-CDJ8dOVP.js +170 -0
  3814. package/dist/unhandled-rejections-O6cVOz2D.js +4 -0
  3815. package/dist/update-check-C3TeQaWg.js +464 -0
  3816. package/dist/update-cli-d9OEgooM.js +1625 -0
  3817. package/dist/update-offset-store-DxnWyB1g.js +211 -0
  3818. package/dist/update-yEO8OZ1B.js +1039 -0
  3819. package/dist/upsert-with-lock-Bb96JHpb.js +34 -0
  3820. package/dist/url-userinfo-Db63ng4y.js +14 -0
  3821. package/dist/utils-Bxk6BLTg.js +236 -0
  3822. package/dist/utils-vDeUf98G.js +7 -0
  3823. package/dist/version-BQotbaVq.js +65 -0
  3824. package/dist/version-riajrkRq.js +2 -0
  3825. package/dist/voice-call-D4fgwZNO.js +1 -0
  3826. package/dist/warning-filter-CgvLQB4Y.js +56 -0
  3827. package/dist/web-media-BfBb8i48.js +1 -0
  3828. package/dist/web-media-CtU6jM5V.js +498 -0
  3829. package/dist/webhook-ingress-CupqYpKM.js +338 -0
  3830. package/dist/webhook-memory-guards-BHrFZ4yq.js +129 -0
  3831. package/dist/webhook-path-BGFZ55ML.js +22 -0
  3832. package/dist/webhook-shared-DPtckp_I.js +349 -0
  3833. package/dist/webhooks-cli-DXesU9a9.js +357 -0
  3834. package/dist/whatsapp-Ba6KkyUx.js +58 -0
  3835. package/dist/whatsapp-DXbWlm3A.js +82 -0
  3836. package/dist/whatsapp-core-Ca4IJFs0.js +89490 -0
  3837. package/dist/whatsapp-heartbeat-CSWnPQ7q.js +84 -0
  3838. package/dist/whatsapp-shared-BmHKqTtR.js +95 -0
  3839. package/dist/widearea-dns-CXimgJzu.js +125 -0
  3840. package/dist/windows-argv-IXrdWrJj.js +145 -0
  3841. package/dist/windows-spawn-vMJGZo89.js +154 -0
  3842. package/dist/with-timeout-2AKTISee.js +58 -0
  3843. package/dist/workspace-BH7CXmrr.js +479 -0
  3844. package/dist/workspace-dirs-_O4V3xCR.js +13 -0
  3845. package/dist/workspace-v5XppK5M.js +302 -0
  3846. package/dist/ws-By-QcLjg.js +11 -0
  3847. package/dist/wsl-BV3Cb66X.js +57 -0
  3848. package/dist/zalo-Ca9sr4FS.js +301 -0
  3849. package/dist/zalo-x6b0tYi0.js +13 -0
  3850. package/dist/zod-schema.agent-runtime-T_EC_6fg.js +600 -0
  3851. package/dist/zod-schema.core-BdgRr-F1.js +545 -0
  3852. package/dist/zod-schema.providers-core-Dgq7MTqU.js +1613 -0
  3853. package/dist-runtime/extensions/acpx/openclaw.plugin.json +120 -0
  3854. package/dist-runtime/extensions/acpx/package.json +14 -0
  3855. package/dist-runtime/extensions/amazon-bedrock/index.js +3 -0
  3856. package/dist-runtime/extensions/amazon-bedrock/openclaw.plugin.json +11 -0
  3857. package/dist-runtime/extensions/amazon-bedrock/package.json +12 -0
  3858. package/dist-runtime/extensions/anthropic/index.js +3 -0
  3859. package/dist-runtime/extensions/anthropic/openclaw.plugin.json +42 -0
  3860. package/dist-runtime/extensions/anthropic/package.json +12 -0
  3861. package/dist-runtime/extensions/bluebubbles/index.js +3 -0
  3862. package/dist-runtime/extensions/bluebubbles/openclaw.plugin.json +11 -0
  3863. package/dist-runtime/extensions/bluebubbles/package.json +51 -0
  3864. package/dist-runtime/extensions/bluebubbles/setup-entry.js +3 -0
  3865. package/dist-runtime/extensions/brave/index.js +3 -0
  3866. package/dist-runtime/extensions/brave/openclaw.plugin.json +45 -0
  3867. package/dist-runtime/extensions/brave/package.json +12 -0
  3868. package/dist-runtime/extensions/byteplus/index.js +3 -0
  3869. package/dist-runtime/extensions/byteplus/openclaw.plugin.json +32 -0
  3870. package/dist-runtime/extensions/byteplus/package.json +12 -0
  3871. package/dist-runtime/extensions/chutes/index.js +3 -0
  3872. package/dist-runtime/extensions/chutes/openclaw.plugin.json +44 -0
  3873. package/dist-runtime/extensions/chutes/package.json +12 -0
  3874. package/dist-runtime/extensions/cloudflare-ai-gateway/index.js +3 -0
  3875. package/dist-runtime/extensions/cloudflare-ai-gateway/openclaw.plugin.json +32 -0
  3876. package/dist-runtime/extensions/cloudflare-ai-gateway/package.json +12 -0
  3877. package/dist-runtime/extensions/copilot-proxy/index.js +3 -0
  3878. package/dist-runtime/extensions/copilot-proxy/openclaw.plugin.json +23 -0
  3879. package/dist-runtime/extensions/copilot-proxy/package.json +12 -0
  3880. package/dist-runtime/extensions/device-pair/index.js +3 -0
  3881. package/dist-runtime/extensions/device-pair/openclaw.plugin.json +20 -0
  3882. package/dist-runtime/extensions/diagnostics-otel/openclaw.plugin.json +8 -0
  3883. package/dist-runtime/extensions/diagnostics-otel/package.json +27 -0
  3884. package/dist-runtime/extensions/diffs/openclaw.plugin.json +216 -0
  3885. package/dist-runtime/extensions/diffs/package.json +20 -0
  3886. package/dist-runtime/extensions/discord/index.js +3 -0
  3887. package/dist-runtime/extensions/discord/openclaw.plugin.json +11 -0
  3888. package/dist-runtime/extensions/discord/package.json +40 -0
  3889. package/dist-runtime/extensions/discord/setup-entry.js +3 -0
  3890. package/dist-runtime/extensions/elevenlabs/index.js +3 -0
  3891. package/dist-runtime/extensions/elevenlabs/openclaw.plugin.json +8 -0
  3892. package/dist-runtime/extensions/elevenlabs/package.json +12 -0
  3893. package/dist-runtime/extensions/fal/index.js +3 -0
  3894. package/dist-runtime/extensions/fal/openclaw.plugin.json +34 -0
  3895. package/dist-runtime/extensions/fal/package.json +12 -0
  3896. package/dist-runtime/extensions/feishu/index.js +3 -0
  3897. package/dist-runtime/extensions/feishu/openclaw.plugin.json +14 -0
  3898. package/dist-runtime/extensions/feishu/package.json +42 -0
  3899. package/dist-runtime/extensions/feishu/setup-entry.js +3 -0
  3900. package/dist-runtime/extensions/firecrawl/index.js +3 -0
  3901. package/dist-runtime/extensions/firecrawl/openclaw.plugin.json +41 -0
  3902. package/dist-runtime/extensions/firecrawl/package.json +12 -0
  3903. package/dist-runtime/extensions/github-copilot/index.js +3 -0
  3904. package/dist-runtime/extensions/github-copilot/openclaw.plugin.json +30 -0
  3905. package/dist-runtime/extensions/github-copilot/package.json +12 -0
  3906. package/dist-runtime/extensions/google/index.js +3 -0
  3907. package/dist-runtime/extensions/google/openclaw.plugin.json +71 -0
  3908. package/dist-runtime/extensions/google/package.json +12 -0
  3909. package/dist-runtime/extensions/googlechat/openclaw.plugin.json +11 -0
  3910. package/dist-runtime/extensions/googlechat/package.json +46 -0
  3911. package/dist-runtime/extensions/huggingface/index.js +3 -0
  3912. package/dist-runtime/extensions/huggingface/openclaw.plugin.json +33 -0
  3913. package/dist-runtime/extensions/huggingface/package.json +12 -0
  3914. package/dist-runtime/extensions/imessage/index.js +3 -0
  3915. package/dist-runtime/extensions/imessage/openclaw.plugin.json +11 -0
  3916. package/dist-runtime/extensions/imessage/package.json +26 -0
  3917. package/dist-runtime/extensions/imessage/setup-entry.js +3 -0
  3918. package/dist-runtime/extensions/irc/index.js +3 -0
  3919. package/dist-runtime/extensions/irc/openclaw.plugin.json +11 -0
  3920. package/dist-runtime/extensions/irc/package.json +25 -0
  3921. package/dist-runtime/extensions/irc/setup-entry.js +3 -0
  3922. package/dist-runtime/extensions/kilocode/index.js +3 -0
  3923. package/dist-runtime/extensions/kilocode/openclaw.plugin.json +32 -0
  3924. package/dist-runtime/extensions/kilocode/package.json +12 -0
  3925. package/dist-runtime/extensions/kimi-coding/index.js +3 -0
  3926. package/dist-runtime/extensions/kimi-coding/openclaw.plugin.json +37 -0
  3927. package/dist-runtime/extensions/kimi-coding/package.json +12 -0
  3928. package/dist-runtime/extensions/line/index.js +3 -0
  3929. package/dist-runtime/extensions/line/openclaw.plugin.json +11 -0
  3930. package/dist-runtime/extensions/line/package.json +39 -0
  3931. package/dist-runtime/extensions/line/setup-entry.js +3 -0
  3932. package/dist-runtime/extensions/llm-task/index.js +3 -0
  3933. package/dist-runtime/extensions/llm-task/openclaw.plugin.json +33 -0
  3934. package/dist-runtime/extensions/llm-task/package.json +16 -0
  3935. package/dist-runtime/extensions/lobster/index.js +3 -0
  3936. package/dist-runtime/extensions/lobster/openclaw.plugin.json +10 -0
  3937. package/dist-runtime/extensions/lobster/package.json +17 -0
  3938. package/dist-runtime/extensions/matrix/openclaw.plugin.json +11 -0
  3939. package/dist-runtime/extensions/matrix/package.json +53 -0
  3940. package/dist-runtime/extensions/mattermost/index.js +3 -0
  3941. package/dist-runtime/extensions/mattermost/openclaw.plugin.json +11 -0
  3942. package/dist-runtime/extensions/mattermost/package.json +41 -0
  3943. package/dist-runtime/extensions/mattermost/setup-entry.js +3 -0
  3944. package/dist-runtime/extensions/memory-core/index.js +3 -0
  3945. package/dist-runtime/extensions/memory-core/openclaw.plugin.json +9 -0
  3946. package/dist-runtime/extensions/memory-core/package.json +20 -0
  3947. package/dist-runtime/extensions/memory-lancedb/openclaw.plugin.json +92 -0
  3948. package/dist-runtime/extensions/memory-lancedb/package.json +24 -0
  3949. package/dist-runtime/extensions/microsoft/index.js +3 -0
  3950. package/dist-runtime/extensions/microsoft/openclaw.plugin.json +8 -0
  3951. package/dist-runtime/extensions/microsoft/package.json +12 -0
  3952. package/dist-runtime/extensions/minimax/index.js +3 -0
  3953. package/dist-runtime/extensions/minimax/openclaw.plugin.json +71 -0
  3954. package/dist-runtime/extensions/minimax/package.json +12 -0
  3955. package/dist-runtime/extensions/mistral/index.js +3 -0
  3956. package/dist-runtime/extensions/mistral/openclaw.plugin.json +31 -0
  3957. package/dist-runtime/extensions/mistral/package.json +12 -0
  3958. package/dist-runtime/extensions/modelstudio/index.js +3 -0
  3959. package/dist-runtime/extensions/modelstudio/openclaw.plugin.json +46 -0
  3960. package/dist-runtime/extensions/modelstudio/package.json +12 -0
  3961. package/dist-runtime/extensions/moonshot/index.js +3 -0
  3962. package/dist-runtime/extensions/moonshot/openclaw.plugin.json +78 -0
  3963. package/dist-runtime/extensions/moonshot/package.json +12 -0
  3964. package/dist-runtime/extensions/msteams/openclaw.plugin.json +11 -0
  3965. package/dist-runtime/extensions/msteams/package.json +48 -0
  3966. package/dist-runtime/extensions/nextcloud-talk/index.js +3 -0
  3967. package/dist-runtime/extensions/nextcloud-talk/openclaw.plugin.json +11 -0
  3968. package/dist-runtime/extensions/nextcloud-talk/package.json +48 -0
  3969. package/dist-runtime/extensions/nextcloud-talk/setup-entry.js +3 -0
  3970. package/dist-runtime/extensions/nostr/openclaw.plugin.json +11 -0
  3971. package/dist-runtime/extensions/nostr/package.json +45 -0
  3972. package/dist-runtime/extensions/nvidia/index.js +3 -0
  3973. package/dist-runtime/extensions/nvidia/openclaw.plugin.json +16 -0
  3974. package/dist-runtime/extensions/nvidia/package.json +12 -0
  3975. package/dist-runtime/extensions/ollama/index.js +3 -0
  3976. package/dist-runtime/extensions/ollama/openclaw.plugin.json +28 -0
  3977. package/dist-runtime/extensions/ollama/package.json +12 -0
  3978. package/dist-runtime/extensions/open-prose/index.js +3 -0
  3979. package/dist-runtime/extensions/open-prose/openclaw.plugin.json +13 -0
  3980. package/dist-runtime/extensions/open-prose/package.json +12 -0
  3981. package/dist-runtime/extensions/openai/index.js +3 -0
  3982. package/dist-runtime/extensions/openai/openclaw.plugin.json +42 -0
  3983. package/dist-runtime/extensions/openai/package.json +12 -0
  3984. package/dist-runtime/extensions/opencode/index.js +3 -0
  3985. package/dist-runtime/extensions/opencode/openclaw.plugin.json +32 -0
  3986. package/dist-runtime/extensions/opencode/package.json +12 -0
  3987. package/dist-runtime/extensions/opencode-go/index.js +3 -0
  3988. package/dist-runtime/extensions/opencode-go/openclaw.plugin.json +32 -0
  3989. package/dist-runtime/extensions/opencode-go/package.json +12 -0
  3990. package/dist-runtime/extensions/openrouter/index.js +3 -0
  3991. package/dist-runtime/extensions/openrouter/openclaw.plugin.json +31 -0
  3992. package/dist-runtime/extensions/openrouter/package.json +12 -0
  3993. package/dist-runtime/extensions/openshell/index.js +3 -0
  3994. package/dist-runtime/extensions/openshell/openclaw.plugin.json +99 -0
  3995. package/dist-runtime/extensions/openshell/package.json +12 -0
  3996. package/dist-runtime/extensions/perplexity/index.js +3 -0
  3997. package/dist-runtime/extensions/perplexity/openclaw.plugin.json +49 -0
  3998. package/dist-runtime/extensions/perplexity/package.json +12 -0
  3999. package/dist-runtime/extensions/phone-control/index.js +3 -0
  4000. package/dist-runtime/extensions/phone-control/openclaw.plugin.json +10 -0
  4001. package/dist-runtime/extensions/qianfan/index.js +3 -0
  4002. package/dist-runtime/extensions/qianfan/openclaw.plugin.json +31 -0
  4003. package/dist-runtime/extensions/qianfan/package.json +12 -0
  4004. package/dist-runtime/extensions/qwen-portal-auth/index.js +3 -0
  4005. package/dist-runtime/extensions/qwen-portal-auth/openclaw.plugin.json +29 -0
  4006. package/dist-runtime/extensions/sglang/index.js +3 -0
  4007. package/dist-runtime/extensions/sglang/openclaw.plugin.json +28 -0
  4008. package/dist-runtime/extensions/sglang/package.json +12 -0
  4009. package/dist-runtime/extensions/signal/index.js +3 -0
  4010. package/dist-runtime/extensions/signal/openclaw.plugin.json +11 -0
  4011. package/dist-runtime/extensions/signal/package.json +23 -0
  4012. package/dist-runtime/extensions/signal/setup-entry.js +3 -0
  4013. package/dist-runtime/extensions/slack/index.js +3 -0
  4014. package/dist-runtime/extensions/slack/openclaw.plugin.json +11 -0
  4015. package/dist-runtime/extensions/slack/package.json +30 -0
  4016. package/dist-runtime/extensions/slack/setup-entry.js +3 -0
  4017. package/dist-runtime/extensions/synology-chat/index.js +3 -0
  4018. package/dist-runtime/extensions/synology-chat/openclaw.plugin.json +11 -0
  4019. package/dist-runtime/extensions/synology-chat/package.json +29 -0
  4020. package/dist-runtime/extensions/synology-chat/setup-entry.js +3 -0
  4021. package/dist-runtime/extensions/synthetic/index.js +3 -0
  4022. package/dist-runtime/extensions/synthetic/openclaw.plugin.json +31 -0
  4023. package/dist-runtime/extensions/synthetic/package.json +12 -0
  4024. package/dist-runtime/extensions/talk-voice/index.js +3 -0
  4025. package/dist-runtime/extensions/talk-voice/openclaw.plugin.json +10 -0
  4026. package/dist-runtime/extensions/tavily/index.js +3 -0
  4027. package/dist-runtime/extensions/tavily/openclaw.plugin.json +44 -0
  4028. package/dist-runtime/extensions/tavily/package.json +12 -0
  4029. package/dist-runtime/extensions/telegram/index.js +3 -0
  4030. package/dist-runtime/extensions/telegram/openclaw.plugin.json +11 -0
  4031. package/dist-runtime/extensions/telegram/package.json +31 -0
  4032. package/dist-runtime/extensions/telegram/setup-entry.js +3 -0
  4033. package/dist-runtime/extensions/thread-ownership/index.js +3 -0
  4034. package/dist-runtime/extensions/thread-ownership/openclaw.plugin.json +30 -0
  4035. package/dist-runtime/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/bin/tlon.js +3 -0
  4036. package/dist-runtime/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/package.json +40 -0
  4037. package/dist-runtime/extensions/tlon/bundled-skills/@tloncorp/tlon-skill/scripts/postinstall.js +3 -0
  4038. package/dist-runtime/extensions/tlon/openclaw.plugin.json +14 -0
  4039. package/dist-runtime/extensions/tlon/package.json +45 -0
  4040. package/dist-runtime/extensions/together/index.js +3 -0
  4041. package/dist-runtime/extensions/together/openclaw.plugin.json +31 -0
  4042. package/dist-runtime/extensions/together/package.json +12 -0
  4043. package/dist-runtime/extensions/twitch/openclaw.plugin.json +11 -0
  4044. package/dist-runtime/extensions/twitch/package.json +27 -0
  4045. package/dist-runtime/extensions/venice/index.js +3 -0
  4046. package/dist-runtime/extensions/venice/openclaw.plugin.json +31 -0
  4047. package/dist-runtime/extensions/venice/package.json +12 -0
  4048. package/dist-runtime/extensions/vercel-ai-gateway/index.js +3 -0
  4049. package/dist-runtime/extensions/vercel-ai-gateway/openclaw.plugin.json +31 -0
  4050. package/dist-runtime/extensions/vercel-ai-gateway/package.json +12 -0
  4051. package/dist-runtime/extensions/vllm/index.js +3 -0
  4052. package/dist-runtime/extensions/vllm/openclaw.plugin.json +28 -0
  4053. package/dist-runtime/extensions/vllm/package.json +12 -0
  4054. package/dist-runtime/extensions/voice-call/index.js +3 -0
  4055. package/dist-runtime/extensions/voice-call/openclaw.plugin.json +648 -0
  4056. package/dist-runtime/extensions/voice-call/package.json +31 -0
  4057. package/dist-runtime/extensions/volcengine/index.js +3 -0
  4058. package/dist-runtime/extensions/volcengine/openclaw.plugin.json +32 -0
  4059. package/dist-runtime/extensions/volcengine/package.json +12 -0
  4060. package/dist-runtime/extensions/whatsapp/openclaw.plugin.json +11 -0
  4061. package/dist-runtime/extensions/whatsapp/package.json +44 -0
  4062. package/dist-runtime/extensions/xai/index.js +3 -0
  4063. package/dist-runtime/extensions/xai/openclaw.plugin.json +65 -0
  4064. package/dist-runtime/extensions/xai/package.json +12 -0
  4065. package/dist-runtime/extensions/xiaomi/index.js +3 -0
  4066. package/dist-runtime/extensions/xiaomi/openclaw.plugin.json +31 -0
  4067. package/dist-runtime/extensions/xiaomi/package.json +12 -0
  4068. package/dist-runtime/extensions/zai/index.js +3 -0
  4069. package/dist-runtime/extensions/zai/openclaw.plugin.json +88 -0
  4070. package/dist-runtime/extensions/zai/package.json +12 -0
  4071. package/dist-runtime/extensions/zalo/index.js +3 -0
  4072. package/dist-runtime/extensions/zalo/openclaw.plugin.json +11 -0
  4073. package/dist-runtime/extensions/zalo/package.json +48 -0
  4074. package/dist-runtime/extensions/zalo/setup-entry.js +3 -0
  4075. package/dist-runtime/extensions/zalouser/openclaw.plugin.json +11 -0
  4076. package/dist-runtime/extensions/zalouser/package.json +49 -0
  4077. package/openclaw.mjs +135 -0
  4078. package/package.json +673 -0
  4079. package/skills/1password/SKILL.md +70 -0
  4080. package/skills/1password/references/cli-examples.md +29 -0
  4081. package/skills/1password/references/get-started.md +17 -0
  4082. package/skills/apple-notes/SKILL.md +77 -0
  4083. package/skills/apple-reminders/SKILL.md +118 -0
  4084. package/skills/bear-notes/SKILL.md +107 -0
  4085. package/skills/blogwatcher/SKILL.md +69 -0
  4086. package/skills/blucli/SKILL.md +47 -0
  4087. package/skills/bluebubbles/SKILL.md +131 -0
  4088. package/skills/camsnap/SKILL.md +45 -0
  4089. package/skills/canvas/SKILL.md +198 -0
  4090. package/skills/clawhub/SKILL.md +77 -0
  4091. package/skills/coding-agent/SKILL.md +295 -0
  4092. package/skills/discord/SKILL.md +197 -0
  4093. package/skills/doubao-code/SKILL.md +43 -0
  4094. package/skills/eightctl/SKILL.md +50 -0
  4095. package/skills/gemini/SKILL.md +43 -0
  4096. package/skills/gh-issues/SKILL.md +865 -0
  4097. package/skills/gifgrep/SKILL.md +79 -0
  4098. package/skills/github/SKILL.md +163 -0
  4099. package/skills/gog/SKILL.md +116 -0
  4100. package/skills/goplaces/SKILL.md +52 -0
  4101. package/skills/healthcheck/SKILL.md +245 -0
  4102. package/skills/himalaya/SKILL.md +257 -0
  4103. package/skills/himalaya/references/configuration.md +184 -0
  4104. package/skills/himalaya/references/message-composition.md +199 -0
  4105. package/skills/imsg/SKILL.md +122 -0
  4106. package/skills/kimi-code/SKILL.md +42 -0
  4107. package/skills/mcporter/SKILL.md +61 -0
  4108. package/skills/model-usage/SKILL.md +69 -0
  4109. package/skills/model-usage/references/codexbar-cli.md +33 -0
  4110. package/skills/model-usage/scripts/model_usage.py +320 -0
  4111. package/skills/model-usage/scripts/test_model_usage.py +40 -0
  4112. package/skills/nano-pdf/SKILL.md +38 -0
  4113. package/skills/node-connect/SKILL.md +142 -0
  4114. package/skills/notion/SKILL.md +174 -0
  4115. package/skills/obsidian/SKILL.md +81 -0
  4116. package/skills/openai-image-gen/SKILL.md +92 -0
  4117. package/skills/openai-image-gen/scripts/gen.py +328 -0
  4118. package/skills/openai-image-gen/scripts/test_gen.py +140 -0
  4119. package/skills/openai-whisper/SKILL.md +38 -0
  4120. package/skills/openai-whisper-api/SKILL.md +52 -0
  4121. package/skills/openai-whisper-api/scripts/transcribe.sh +85 -0
  4122. package/skills/openhue/SKILL.md +112 -0
  4123. package/skills/oracle/SKILL.md +125 -0
  4124. package/skills/ordercli/SKILL.md +78 -0
  4125. package/skills/peekaboo/SKILL.md +190 -0
  4126. package/skills/sag/SKILL.md +87 -0
  4127. package/skills/session-logs/SKILL.md +115 -0
  4128. package/skills/sherpa-onnx-tts/SKILL.md +103 -0
  4129. package/skills/skill-creator/SKILL.md +372 -0
  4130. package/skills/skill-creator/license.txt +202 -0
  4131. package/skills/skill-creator/scripts/init_skill.py +378 -0
  4132. package/skills/skill-creator/scripts/package_skill.py +139 -0
  4133. package/skills/skill-creator/scripts/quick_validate.py +159 -0
  4134. package/skills/skill-creator/scripts/test_package_skill.py +160 -0
  4135. package/skills/skill-creator/scripts/test_quick_validate.py +72 -0
  4136. package/skills/slack/SKILL.md +144 -0
  4137. package/skills/songsee/SKILL.md +49 -0
  4138. package/skills/sonoscli/SKILL.md +65 -0
  4139. package/skills/spotify-player/SKILL.md +64 -0
  4140. package/skills/summarize/SKILL.md +87 -0
  4141. package/skills/things-mac/SKILL.md +86 -0
  4142. package/skills/tmux/SKILL.md +153 -0
  4143. package/skills/tmux/scripts/find-sessions.sh +112 -0
  4144. package/skills/tmux/scripts/wait-for-text.sh +83 -0
  4145. package/skills/trello/SKILL.md +95 -0
  4146. package/skills/video-frames/SKILL.md +46 -0
  4147. package/skills/video-frames/scripts/frame.sh +81 -0
  4148. package/skills/voice-call/SKILL.md +45 -0
  4149. package/skills/wacli/SKILL.md +72 -0
  4150. package/skills/weather/SKILL.md +112 -0
  4151. package/skills/xurl/SKILL.md +461 -0
@@ -0,0 +1,3272 @@
1
+ import { o as __toESM } from "./src-CmXHIz5f.js";
2
+ import { c as normalizeAgentId, u as resolveAgentIdFromSessionKey } from "./session-key-gFFk3uv9.js";
3
+ import { n as deriveLastRoutePolicy } from "./resolve-route-vEY3ONZ2.js";
4
+ import { n as resolveAgentOutboundIdentity } from "./identity-DovQV4zD.js";
5
+ import { o as getSessionBindingService } from "./thread-bindings-messages-Cdo8jSa9.js";
6
+ import { a as resolveConfiguredBindingRoute, i as ensureConfiguredBindingRouteReady } from "./conversation-runtime-zmG5YBsE.js";
7
+ import { t as createDedupeCache } from "./dedupe-Cgnk5BbX.js";
8
+ import { n as fetchWithSsrFGuard } from "./fetch-guard-DIyN1HW5.js";
9
+ import { n as createReplyPrefixContext } from "./typing-DG_YqWJ7.js";
10
+ import { a as warnMissingProviderGroupPolicyFallbackOnce, i as resolveOpenProviderRuntimeGroupPolicy, r as resolveDefaultGroupPolicy } from "./runtime-group-policy-B7irU4eu.js";
11
+ import { n as createChannelPairingController } from "./channel-pairing-rNA4qQPY.js";
12
+ import { t as readJsonFileWithFallback } from "./json-store-O1LwpnBH.js";
13
+ import { h as sendMediaWithLeadingCaption, m as resolveTextChunksWithFallback, p as resolveSendableOutboundReplyParts } from "./reply-payload-DBGc074f.js";
14
+ import { l as buildAgentMediaPayload } from "./follow-redirects-BPQ_NgUo.js";
15
+ import { i as installRequestBodyLimitGuard, o as readJsonBodyWithLimit } from "./http-body-CCiSfloA.js";
16
+ import { a as buildPendingHistoryContextFromMap, s as clearHistoryEntriesIfEnabled, u as recordPendingHistoryEntryIfEnabled } from "./history-CHjo8B5W.js";
17
+ import { r as logTypingFailure } from "./logging-Bz1qZDPg.js";
18
+ import { t as createChannelReplyPipeline } from "./channel-reply-pipeline-CPTuaW8n.js";
19
+ import { a as createFixedWindowRateLimiter, o as createWebhookAnomalyTracker, r as WEBHOOK_RATE_LIMIT_DEFAULTS, t as WEBHOOK_ANOMALY_COUNTER_DEFAULTS } from "./webhook-memory-guards-BHrFZ4yq.js";
20
+ import { d as applyBasicWebhookRequestGuards } from "./webhook-ingress-CupqYpKM.js";
21
+ import { c as createFeishuClient, d as raceWithTimeoutAndAbort, f as listEnabledFeishuAccounts, h as resolveFeishuAccount, l as createFeishuWSClient, o as probeFeishu, s as createEventDispatcher, t as createFeishuThreadBindingManager, u as require_lib } from "./feishu-CiuVx86p.js";
22
+ import { t as createPersistentDedupe } from "./persistent-dedupe-bjKjVI5u.js";
23
+ import { a as resolveReceiveIdType, t as getFeishuRuntime } from "./runtime-B66W9flm.js";
24
+ import { a as resolveFeishuReplyPolicy, n as resolveFeishuAllowlistMatch, r as resolveFeishuGroupConfig, t as isFeishuGroupAllowed } from "./policy-CpkbSAfm.js";
25
+ import { C as sendMediaFeishu, E as normalizeFeishuExternalKey, a as sendCardFeishu, b as downloadMessageResourceFeishu, c as sendStructuredCardFeishu, f as extractMentionTargets, i as resolveFeishuCardTemplate, n as getMessageFeishu, r as listFeishuThreadMessages, s as sendMessageFeishu, u as buildMentionedCardContent, v as isMentionForwardRequest, y as parsePostContent } from "./send-CK2mTZ2A.js";
26
+ import fs from "node:fs";
27
+ import path from "node:path";
28
+ import os from "node:os";
29
+ import crypto from "node:crypto";
30
+ import * as http from "http";
31
+ import * as crypto$1 from "crypto";
32
+ //#region extensions/feishu/src/bot-content.ts
33
+ function buildFeishuConversationId(params) {
34
+ switch (params.scope) {
35
+ case "group_sender": return `${params.chatId}:sender:${params.senderOpenId}`;
36
+ case "group_topic": return `${params.chatId}:topic:${params.topicId}`;
37
+ case "group_topic_sender": return `${params.chatId}:topic:${params.topicId}:sender:${params.senderOpenId}`;
38
+ default: return params.chatId;
39
+ }
40
+ }
41
+ function resolveFeishuGroupSession(params) {
42
+ const { chatId, senderOpenId, messageId, rootId, threadId, groupConfig, feishuCfg } = params;
43
+ const normalizedThreadId = threadId?.trim();
44
+ const normalizedRootId = rootId?.trim();
45
+ const threadReply = Boolean(normalizedThreadId || normalizedRootId);
46
+ const replyInThread = (groupConfig?.replyInThread ?? feishuCfg?.replyInThread ?? "disabled") === "enabled" || threadReply;
47
+ const legacyTopicSessionMode = groupConfig?.topicSessionMode ?? feishuCfg?.topicSessionMode ?? "disabled";
48
+ const groupSessionScope = groupConfig?.groupSessionScope ?? feishuCfg?.groupSessionScope ?? (legacyTopicSessionMode === "enabled" ? "group_topic" : "group");
49
+ const topicScope = groupSessionScope === "group_topic" || groupSessionScope === "group_topic_sender" ? normalizedRootId ?? normalizedThreadId ?? (replyInThread ? messageId : null) : null;
50
+ let peerId = chatId;
51
+ switch (groupSessionScope) {
52
+ case "group_sender":
53
+ peerId = buildFeishuConversationId({
54
+ chatId,
55
+ scope: "group_sender",
56
+ senderOpenId
57
+ });
58
+ break;
59
+ case "group_topic":
60
+ peerId = topicScope ? buildFeishuConversationId({
61
+ chatId,
62
+ scope: "group_topic",
63
+ topicId: topicScope
64
+ }) : chatId;
65
+ break;
66
+ case "group_topic_sender":
67
+ peerId = topicScope ? buildFeishuConversationId({
68
+ chatId,
69
+ scope: "group_topic_sender",
70
+ topicId: topicScope,
71
+ senderOpenId
72
+ }) : buildFeishuConversationId({
73
+ chatId,
74
+ scope: "group_sender",
75
+ senderOpenId
76
+ });
77
+ break;
78
+ default:
79
+ peerId = chatId;
80
+ break;
81
+ }
82
+ return {
83
+ peerId,
84
+ parentPeer: topicScope && (groupSessionScope === "group_topic" || groupSessionScope === "group_topic_sender") ? {
85
+ kind: "group",
86
+ id: chatId
87
+ } : null,
88
+ groupSessionScope,
89
+ replyInThread,
90
+ threadReply
91
+ };
92
+ }
93
+ function parseMessageContent(content, messageType) {
94
+ if (messageType === "post") return parsePostContent(content).textContent;
95
+ try {
96
+ const parsed = JSON.parse(content);
97
+ if (messageType === "text") return parsed.text || "";
98
+ if (messageType === "share_chat") {
99
+ if (parsed && typeof parsed === "object") {
100
+ const share = parsed;
101
+ if (typeof share.body === "string" && share.body.trim()) return share.body.trim();
102
+ if (typeof share.summary === "string" && share.summary.trim()) return share.summary.trim();
103
+ if (typeof share.share_chat_id === "string" && share.share_chat_id.trim()) return `[Forwarded message: ${share.share_chat_id.trim()}]`;
104
+ }
105
+ return "[Forwarded message]";
106
+ }
107
+ if (messageType === "merge_forward") return "[Merged and Forwarded Message - loading...]";
108
+ return content;
109
+ } catch {
110
+ return content;
111
+ }
112
+ }
113
+ function formatSubMessageContent(content, contentType) {
114
+ try {
115
+ const parsed = JSON.parse(content);
116
+ switch (contentType) {
117
+ case "text": return parsed.text || content;
118
+ case "post": return parsePostContent(content).textContent;
119
+ case "image": return "[Image]";
120
+ case "file": return `[File: ${parsed.file_name || "unknown"}]`;
121
+ case "audio": return "[Audio]";
122
+ case "video": return "[Video]";
123
+ case "sticker": return "[Sticker]";
124
+ case "merge_forward": return "[Nested Merged Forward]";
125
+ default: return `[${contentType}]`;
126
+ }
127
+ } catch {
128
+ return content;
129
+ }
130
+ }
131
+ function parseMergeForwardContent(params) {
132
+ const { content, log } = params;
133
+ const maxMessages = 50;
134
+ log?.("feishu: parsing merge_forward sub-messages from API response");
135
+ let items;
136
+ try {
137
+ items = JSON.parse(content);
138
+ } catch {
139
+ log?.("feishu: merge_forward items parse failed");
140
+ return "[Merged and Forwarded Message - parse error]";
141
+ }
142
+ if (!Array.isArray(items) || items.length === 0) return "[Merged and Forwarded Message - no sub-messages]";
143
+ const subMessages = items.filter((item) => item.upper_message_id);
144
+ if (subMessages.length === 0) return "[Merged and Forwarded Message - no sub-messages found]";
145
+ log?.(`feishu: merge_forward contains ${subMessages.length} sub-messages`);
146
+ subMessages.sort((a, b) => parseInt(a.create_time || "0", 10) - parseInt(b.create_time || "0", 10));
147
+ const lines = ["[Merged and Forwarded Messages]"];
148
+ for (const item of subMessages.slice(0, maxMessages)) lines.push(`- ${formatSubMessageContent(item.body?.content || "", item.msg_type || "text")}`);
149
+ if (subMessages.length > maxMessages) lines.push(`... and ${subMessages.length - maxMessages} more messages`);
150
+ return lines.join("\n");
151
+ }
152
+ function checkBotMentioned(event, botOpenId) {
153
+ if (!botOpenId) return false;
154
+ if ((event.message.content ?? "").includes("@_all")) return true;
155
+ const mentions = event.message.mentions ?? [];
156
+ if (mentions.length > 0) return mentions.some((mention) => mention.id.open_id === botOpenId);
157
+ if (event.message.message_type === "post") return parsePostContent(event.message.content).mentionedOpenIds.some((id) => id === botOpenId);
158
+ return false;
159
+ }
160
+ function normalizeMentions(text, mentions, botStripId) {
161
+ if (!mentions || mentions.length === 0) return text;
162
+ const escaped = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
163
+ const escapeName = (value) => value.replace(/</g, "&lt;").replace(/>/g, "&gt;");
164
+ let result = text;
165
+ for (const mention of mentions) {
166
+ const mentionId = mention.id.open_id;
167
+ const replacement = botStripId && mentionId === botStripId ? "" : mentionId ? `<at user_id="${mentionId}">${escapeName(mention.name)}</at>` : `@${mention.name}`;
168
+ result = result.replace(new RegExp(escaped(mention.key), "g"), () => replacement).trim();
169
+ }
170
+ return result;
171
+ }
172
+ function normalizeFeishuCommandProbeBody(text) {
173
+ if (!text) return "";
174
+ return text.replace(/<at\b[^>]*>[^<]*<\/at>/giu, " ").replace(/(^|\s)@[^/\s]+(?=\s|$|\/)/gu, "$1").replace(/\s+/g, " ").trim();
175
+ }
176
+ function parseMediaKeys(content, messageType) {
177
+ try {
178
+ const parsed = JSON.parse(content);
179
+ const imageKey = normalizeFeishuExternalKey(parsed.image_key);
180
+ const fileKey = normalizeFeishuExternalKey(parsed.file_key);
181
+ switch (messageType) {
182
+ case "image": return {
183
+ imageKey,
184
+ fileName: parsed.file_name
185
+ };
186
+ case "file":
187
+ case "audio":
188
+ case "sticker": return {
189
+ fileKey,
190
+ fileName: parsed.file_name
191
+ };
192
+ case "video":
193
+ case "media": return {
194
+ fileKey,
195
+ imageKey,
196
+ fileName: parsed.file_name
197
+ };
198
+ default: return {};
199
+ }
200
+ } catch {
201
+ return {};
202
+ }
203
+ }
204
+ function toMessageResourceType(messageType) {
205
+ return messageType === "image" ? "image" : "file";
206
+ }
207
+ function inferPlaceholder(messageType) {
208
+ switch (messageType) {
209
+ case "image": return "<media:image>";
210
+ case "file": return "<media:document>";
211
+ case "audio": return "<media:audio>";
212
+ case "video":
213
+ case "media": return "<media:video>";
214
+ case "sticker": return "<media:sticker>";
215
+ default: return "<media:document>";
216
+ }
217
+ }
218
+ async function resolveFeishuMediaList(params) {
219
+ const { cfg, messageId, messageType, content, maxBytes, log, accountId } = params;
220
+ if (![
221
+ "image",
222
+ "file",
223
+ "audio",
224
+ "video",
225
+ "media",
226
+ "sticker",
227
+ "post"
228
+ ].includes(messageType)) return [];
229
+ const out = [];
230
+ const core = getFeishuRuntime();
231
+ if (messageType === "post") {
232
+ const { imageKeys, mediaKeys } = parsePostContent(content);
233
+ if (imageKeys.length === 0 && mediaKeys.length === 0) return [];
234
+ if (imageKeys.length > 0) log?.(`feishu: post message contains ${imageKeys.length} embedded image(s)`);
235
+ if (mediaKeys.length > 0) log?.(`feishu: post message contains ${mediaKeys.length} embedded media file(s)`);
236
+ for (const imageKey of imageKeys) try {
237
+ const result = await downloadMessageResourceFeishu({
238
+ cfg,
239
+ messageId,
240
+ fileKey: imageKey,
241
+ type: "image",
242
+ accountId
243
+ });
244
+ const contentType = result.contentType ?? await core.media.detectMime({ buffer: result.buffer });
245
+ const saved = await core.channel.media.saveMediaBuffer(result.buffer, contentType, "inbound", maxBytes);
246
+ out.push({
247
+ path: saved.path,
248
+ contentType: saved.contentType,
249
+ placeholder: "<media:image>"
250
+ });
251
+ log?.(`feishu: downloaded embedded image ${imageKey}, saved to ${saved.path}`);
252
+ } catch (err) {
253
+ log?.(`feishu: failed to download embedded image ${imageKey}: ${String(err)}`);
254
+ }
255
+ for (const media of mediaKeys) try {
256
+ const result = await downloadMessageResourceFeishu({
257
+ cfg,
258
+ messageId,
259
+ fileKey: media.fileKey,
260
+ type: "file",
261
+ accountId
262
+ });
263
+ const contentType = result.contentType ?? await core.media.detectMime({ buffer: result.buffer });
264
+ const saved = await core.channel.media.saveMediaBuffer(result.buffer, contentType, "inbound", maxBytes);
265
+ out.push({
266
+ path: saved.path,
267
+ contentType: saved.contentType,
268
+ placeholder: "<media:video>"
269
+ });
270
+ log?.(`feishu: downloaded embedded media ${media.fileKey}, saved to ${saved.path}`);
271
+ } catch (err) {
272
+ log?.(`feishu: failed to download embedded media ${media.fileKey}: ${String(err)}`);
273
+ }
274
+ return out;
275
+ }
276
+ const mediaKeys = parseMediaKeys(content, messageType);
277
+ if (!mediaKeys.imageKey && !mediaKeys.fileKey) return [];
278
+ try {
279
+ const fileKey = mediaKeys.fileKey || mediaKeys.imageKey;
280
+ if (!fileKey) return [];
281
+ const result = await downloadMessageResourceFeishu({
282
+ cfg,
283
+ messageId,
284
+ fileKey,
285
+ type: toMessageResourceType(messageType),
286
+ accountId
287
+ });
288
+ const contentType = result.contentType ?? await core.media.detectMime({ buffer: result.buffer });
289
+ const saved = await core.channel.media.saveMediaBuffer(result.buffer, contentType, "inbound", maxBytes, result.fileName || mediaKeys.fileName);
290
+ out.push({
291
+ path: saved.path,
292
+ contentType: saved.contentType,
293
+ placeholder: inferPlaceholder(messageType)
294
+ });
295
+ log?.(`feishu: downloaded ${messageType} media, saved to ${saved.path}`);
296
+ } catch (err) {
297
+ log?.(`feishu: failed to download ${messageType} media: ${String(err)}`);
298
+ }
299
+ return out;
300
+ }
301
+ //#endregion
302
+ //#region extensions/feishu/src/bot-sender-name.ts
303
+ const IGNORED_PERMISSION_SCOPE_TOKENS = ["contact:contact.base:readonly"];
304
+ const FEISHU_SCOPE_CORRECTIONS = { "contact:contact.base:readonly": "contact:user.base:readonly" };
305
+ const SENDER_NAME_TTL_MS = 600 * 1e3;
306
+ const senderNameCache = /* @__PURE__ */ new Map();
307
+ function correctFeishuScopeInUrl(url) {
308
+ let corrected = url;
309
+ for (const [wrong, right] of Object.entries(FEISHU_SCOPE_CORRECTIONS)) {
310
+ corrected = corrected.replaceAll(encodeURIComponent(wrong), encodeURIComponent(right));
311
+ corrected = corrected.replaceAll(wrong, right);
312
+ }
313
+ return corrected;
314
+ }
315
+ function shouldSuppressPermissionErrorNotice(permissionError) {
316
+ const message = permissionError.message.toLowerCase();
317
+ return IGNORED_PERMISSION_SCOPE_TOKENS.some((token) => message.includes(token));
318
+ }
319
+ function extractPermissionError(err) {
320
+ if (!err || typeof err !== "object") return null;
321
+ const data = err.response?.data;
322
+ if (!data || typeof data !== "object") return null;
323
+ const feishuErr = data;
324
+ if (feishuErr.code !== 99991672) return null;
325
+ const msg = feishuErr.msg ?? "";
326
+ const urlMatch = msg.match(/https:\/\/[^\s,]+\/app\/[^\s,]+/);
327
+ return {
328
+ code: feishuErr.code,
329
+ message: msg,
330
+ grantUrl: urlMatch?.[0] ? correctFeishuScopeInUrl(urlMatch[0]) : void 0
331
+ };
332
+ }
333
+ function resolveSenderLookupIdType(senderId) {
334
+ const trimmed = senderId.trim();
335
+ if (trimmed.startsWith("ou_")) return "open_id";
336
+ if (trimmed.startsWith("on_")) return "union_id";
337
+ return "user_id";
338
+ }
339
+ async function resolveFeishuSenderName(params) {
340
+ const { account, senderId, log } = params;
341
+ if (!account.configured) return {};
342
+ const normalizedSenderId = senderId.trim();
343
+ if (!normalizedSenderId) return {};
344
+ const cached = senderNameCache.get(normalizedSenderId);
345
+ const now = Date.now();
346
+ if (cached && cached.expireAt > now) return { name: cached.name };
347
+ try {
348
+ const client = createFeishuClient(account);
349
+ const userIdType = resolveSenderLookupIdType(normalizedSenderId);
350
+ const res = await client.contact.user.get({
351
+ path: { user_id: normalizedSenderId },
352
+ params: { user_id_type: userIdType }
353
+ });
354
+ const name = res?.data?.user?.name || res?.data?.user?.display_name || res?.data?.user?.nickname || res?.data?.user?.en_name;
355
+ if (name && typeof name === "string") {
356
+ senderNameCache.set(normalizedSenderId, {
357
+ name,
358
+ expireAt: now + SENDER_NAME_TTL_MS
359
+ });
360
+ return { name };
361
+ }
362
+ return {};
363
+ } catch (err) {
364
+ const permErr = extractPermissionError(err);
365
+ if (permErr) {
366
+ if (shouldSuppressPermissionErrorNotice(permErr)) {
367
+ log(`feishu: ignoring stale permission scope error: ${permErr.message}`);
368
+ return {};
369
+ }
370
+ log(`feishu: permission error resolving sender name: code=${permErr.code}`);
371
+ return { permissionError: permErr };
372
+ }
373
+ log(`feishu: failed to resolve sender name for ${normalizedSenderId}: ${String(err)}`);
374
+ return {};
375
+ }
376
+ }
377
+ //#endregion
378
+ //#region extensions/feishu/src/dedup.ts
379
+ const DEDUP_TTL_MS = 1440 * 60 * 1e3;
380
+ const MEMORY_MAX_SIZE = 1e3;
381
+ const FILE_MAX_ENTRIES = 1e4;
382
+ const EVENT_DEDUP_TTL_MS = 300 * 1e3;
383
+ const EVENT_MEMORY_MAX_SIZE = 2e3;
384
+ const memoryDedupe = createDedupeCache({
385
+ ttlMs: DEDUP_TTL_MS,
386
+ maxSize: MEMORY_MAX_SIZE
387
+ });
388
+ const processingClaims = createDedupeCache({
389
+ ttlMs: EVENT_DEDUP_TTL_MS,
390
+ maxSize: EVENT_MEMORY_MAX_SIZE
391
+ });
392
+ function resolveStateDirFromEnv(env = process.env) {
393
+ const stateOverride = env.OPENCLAW_STATE_DIR?.trim() || env.CLAWDBOT_STATE_DIR?.trim();
394
+ if (stateOverride) return stateOverride;
395
+ if (env.VITEST || env.NODE_ENV === "test") return path.join(os.tmpdir(), ["openclaw-vitest", String(process.pid)].join("-"));
396
+ return path.join(os.homedir(), ".openclaw");
397
+ }
398
+ function resolveNamespaceFilePath(namespace) {
399
+ const safe = namespace.replace(/[^a-zA-Z0-9_-]/g, "_");
400
+ return path.join(resolveStateDirFromEnv(), "feishu", "dedup", `${safe}.json`);
401
+ }
402
+ const persistentDedupe = createPersistentDedupe({
403
+ ttlMs: DEDUP_TTL_MS,
404
+ memoryMaxSize: MEMORY_MAX_SIZE,
405
+ fileMaxEntries: FILE_MAX_ENTRIES,
406
+ resolveFilePath: resolveNamespaceFilePath
407
+ });
408
+ function resolveEventDedupeKey(namespace, messageId) {
409
+ const trimmed = messageId?.trim();
410
+ if (!trimmed) return null;
411
+ return `${namespace}:${trimmed}`;
412
+ }
413
+ function normalizeMessageId(messageId) {
414
+ const trimmed = messageId?.trim();
415
+ return trimmed ? trimmed : null;
416
+ }
417
+ function resolveMemoryDedupeKey(namespace, messageId) {
418
+ const trimmed = normalizeMessageId(messageId);
419
+ if (!trimmed) return null;
420
+ return `${namespace}:${trimmed}`;
421
+ }
422
+ function tryBeginFeishuMessageProcessing(messageId, namespace = "global") {
423
+ return !processingClaims.check(resolveEventDedupeKey(namespace, messageId));
424
+ }
425
+ function releaseFeishuMessageProcessing(messageId, namespace = "global") {
426
+ processingClaims.delete(resolveEventDedupeKey(namespace, messageId));
427
+ }
428
+ async function finalizeFeishuMessageProcessing(params) {
429
+ const { messageId, namespace = "global", log, claimHeld = false } = params;
430
+ const normalizedMessageId = normalizeMessageId(messageId);
431
+ const memoryKey = resolveMemoryDedupeKey(namespace, messageId);
432
+ if (!memoryKey || !normalizedMessageId) return false;
433
+ if (!claimHeld && !tryBeginFeishuMessageProcessing(normalizedMessageId, namespace)) return false;
434
+ if (!tryRecordMessage(memoryKey)) {
435
+ releaseFeishuMessageProcessing(normalizedMessageId, namespace);
436
+ return false;
437
+ }
438
+ if (!await tryRecordMessagePersistent(normalizedMessageId, namespace, log)) {
439
+ releaseFeishuMessageProcessing(normalizedMessageId, namespace);
440
+ return false;
441
+ }
442
+ return true;
443
+ }
444
+ async function recordProcessedFeishuMessage(messageId, namespace = "global", log) {
445
+ const normalizedMessageId = normalizeMessageId(messageId);
446
+ const memoryKey = resolveMemoryDedupeKey(namespace, messageId);
447
+ if (!memoryKey || !normalizedMessageId) return false;
448
+ tryRecordMessage(memoryKey);
449
+ return await tryRecordMessagePersistent(normalizedMessageId, namespace, log);
450
+ }
451
+ async function hasProcessedFeishuMessage(messageId, namespace = "global", log) {
452
+ const normalizedMessageId = normalizeMessageId(messageId);
453
+ const memoryKey = resolveMemoryDedupeKey(namespace, messageId);
454
+ if (!memoryKey || !normalizedMessageId) return false;
455
+ if (hasRecordedMessage(memoryKey)) return true;
456
+ return hasRecordedMessagePersistent(normalizedMessageId, namespace, log);
457
+ }
458
+ /**
459
+ * Synchronous dedup — memory only.
460
+ * Kept for backward compatibility; prefer {@link tryRecordMessagePersistent}.
461
+ */
462
+ function tryRecordMessage(messageId) {
463
+ return !memoryDedupe.check(messageId);
464
+ }
465
+ function hasRecordedMessage(messageId) {
466
+ const trimmed = messageId.trim();
467
+ if (!trimmed) return false;
468
+ return memoryDedupe.peek(trimmed);
469
+ }
470
+ async function tryRecordMessagePersistent(messageId, namespace = "global", log) {
471
+ return persistentDedupe.checkAndRecord(messageId, {
472
+ namespace,
473
+ onDiskError: (error) => {
474
+ log?.(`feishu-dedup: disk error, falling back to memory: ${String(error)}`);
475
+ }
476
+ });
477
+ }
478
+ async function hasRecordedMessagePersistent(messageId, namespace = "global", log) {
479
+ const trimmed = messageId.trim();
480
+ if (!trimmed) return false;
481
+ const now = Date.now();
482
+ const filePath = resolveNamespaceFilePath(namespace);
483
+ try {
484
+ const { value } = await readJsonFileWithFallback(filePath, {});
485
+ const seenAt = value[trimmed];
486
+ if (typeof seenAt !== "number" || !Number.isFinite(seenAt)) return false;
487
+ return DEDUP_TTL_MS <= 0 || now - seenAt < DEDUP_TTL_MS;
488
+ } catch (error) {
489
+ log?.(`feishu-dedup: persistent peek failed: ${String(error)}`);
490
+ return false;
491
+ }
492
+ }
493
+ async function warmupDedupFromDisk(namespace, log) {
494
+ return persistentDedupe.warmup(namespace, (error) => {
495
+ log?.(`feishu-dedup: warmup disk error: ${String(error)}`);
496
+ });
497
+ }
498
+ //#endregion
499
+ //#region extensions/feishu/src/dynamic-agent.ts
500
+ /**
501
+ * Check if a dynamic agent should be created for a DM user and create it if needed.
502
+ * This creates a unique agent instance with its own workspace for each DM user.
503
+ */
504
+ async function maybeCreateDynamicAgent(params) {
505
+ const { cfg, runtime, senderOpenId, dynamicCfg, log } = params;
506
+ const existingBindings = cfg.bindings ?? [];
507
+ if (existingBindings.some((b) => b.match?.channel === "feishu" && b.match?.peer?.kind === "direct" && b.match?.peer?.id === senderOpenId)) return {
508
+ created: false,
509
+ updatedCfg: cfg
510
+ };
511
+ if (dynamicCfg.maxAgents !== void 0) {
512
+ if ((cfg.agents?.list ?? []).filter((a) => a.id.startsWith("feishu-")).length >= dynamicCfg.maxAgents) {
513
+ log(`feishu: maxAgents limit (${dynamicCfg.maxAgents}) reached, not creating agent for ${senderOpenId}`);
514
+ return {
515
+ created: false,
516
+ updatedCfg: cfg
517
+ };
518
+ }
519
+ }
520
+ const agentId = `feishu-${senderOpenId}`;
521
+ if ((cfg.agents?.list ?? []).find((a) => a.id === agentId)) {
522
+ log(`feishu: agent "${agentId}" exists, adding missing binding for ${senderOpenId}`);
523
+ const updatedCfg = {
524
+ ...cfg,
525
+ bindings: [...existingBindings, {
526
+ agentId,
527
+ match: {
528
+ channel: "feishu",
529
+ peer: {
530
+ kind: "direct",
531
+ id: senderOpenId
532
+ }
533
+ }
534
+ }]
535
+ };
536
+ await runtime.config.writeConfigFile(updatedCfg);
537
+ return {
538
+ created: true,
539
+ updatedCfg,
540
+ agentId
541
+ };
542
+ }
543
+ const workspaceTemplate = dynamicCfg.workspaceTemplate ?? "~/.openclaw/workspace-{agentId}";
544
+ const agentDirTemplate = dynamicCfg.agentDirTemplate ?? "~/.openclaw/agents/{agentId}/agent";
545
+ const workspace = resolveUserPath(workspaceTemplate.replace("{userId}", senderOpenId).replace("{agentId}", agentId));
546
+ const agentDir = resolveUserPath(agentDirTemplate.replace("{userId}", senderOpenId).replace("{agentId}", agentId));
547
+ log(`feishu: creating dynamic agent "${agentId}" for user ${senderOpenId}`);
548
+ log(` workspace: ${workspace}`);
549
+ log(` agentDir: ${agentDir}`);
550
+ await fs.promises.mkdir(workspace, { recursive: true });
551
+ await fs.promises.mkdir(agentDir, { recursive: true });
552
+ const updatedCfg = {
553
+ ...cfg,
554
+ agents: {
555
+ ...cfg.agents,
556
+ list: [...cfg.agents?.list ?? [], {
557
+ id: agentId,
558
+ workspace,
559
+ agentDir
560
+ }]
561
+ },
562
+ bindings: [...existingBindings, {
563
+ agentId,
564
+ match: {
565
+ channel: "feishu",
566
+ peer: {
567
+ kind: "direct",
568
+ id: senderOpenId
569
+ }
570
+ }
571
+ }]
572
+ };
573
+ await runtime.config.writeConfigFile(updatedCfg);
574
+ return {
575
+ created: true,
576
+ updatedCfg,
577
+ agentId
578
+ };
579
+ }
580
+ /**
581
+ * Resolve a path that may start with ~ to the user's home directory.
582
+ */
583
+ function resolveUserPath(p) {
584
+ if (p.startsWith("~/")) return path.join(os.homedir(), p.slice(2));
585
+ return p;
586
+ }
587
+ //#endregion
588
+ //#region extensions/feishu/src/streaming-card.ts
589
+ const tokenCache = /* @__PURE__ */ new Map();
590
+ function resolveApiBase(domain) {
591
+ if (domain === "lark") return "https://open.larksuite.com/open-apis";
592
+ if (domain && domain !== "feishu" && domain.startsWith("http")) return `${domain.replace(/\/+$/, "")}/open-apis`;
593
+ return "https://open.feishu.cn/open-apis";
594
+ }
595
+ function resolveAllowedHostnames(domain) {
596
+ if (domain === "lark") return ["open.larksuite.com"];
597
+ if (domain && domain !== "feishu" && domain.startsWith("http")) try {
598
+ return [new URL(domain).hostname];
599
+ } catch {
600
+ return [];
601
+ }
602
+ return ["open.feishu.cn"];
603
+ }
604
+ async function getToken(creds) {
605
+ const key = `${creds.domain ?? "feishu"}|${creds.appId}`;
606
+ const cached = tokenCache.get(key);
607
+ if (cached && cached.expiresAt > Date.now() + 6e4) return cached.token;
608
+ const { response, release } = await fetchWithSsrFGuard({
609
+ url: `${resolveApiBase(creds.domain)}/auth/v3/tenant_access_token/internal`,
610
+ init: {
611
+ method: "POST",
612
+ headers: { "Content-Type": "application/json" },
613
+ body: JSON.stringify({
614
+ app_id: creds.appId,
615
+ app_secret: creds.appSecret
616
+ })
617
+ },
618
+ policy: { allowedHostnames: resolveAllowedHostnames(creds.domain) },
619
+ auditContext: "feishu.streaming-card.token"
620
+ });
621
+ if (!response.ok) {
622
+ await release();
623
+ throw new Error(`Token request failed with HTTP ${response.status}`);
624
+ }
625
+ const data = await response.json();
626
+ await release();
627
+ if (data.code !== 0 || !data.tenant_access_token) throw new Error(`Token error: ${data.msg}`);
628
+ tokenCache.set(key, {
629
+ token: data.tenant_access_token,
630
+ expiresAt: Date.now() + (data.expire ?? 7200) * 1e3
631
+ });
632
+ return data.tenant_access_token;
633
+ }
634
+ function truncateSummary(text, max = 50) {
635
+ if (!text) return "";
636
+ const clean = text.replace(/\n/g, " ").trim();
637
+ return clean.length <= max ? clean : clean.slice(0, max - 3) + "...";
638
+ }
639
+ function mergeStreamingText(previousText, nextText) {
640
+ const previous = typeof previousText === "string" ? previousText : "";
641
+ const next = typeof nextText === "string" ? nextText : "";
642
+ if (!next) return previous;
643
+ if (!previous || next === previous) return next;
644
+ if (next.startsWith(previous)) return next;
645
+ if (previous.startsWith(next)) return previous;
646
+ if (next.includes(previous)) return next;
647
+ if (previous.includes(next)) return previous;
648
+ const maxOverlap = Math.min(previous.length, next.length);
649
+ for (let overlap = maxOverlap; overlap > 0; overlap -= 1) if (previous.slice(-overlap) === next.slice(0, overlap)) return `${previous}${next.slice(overlap)}`;
650
+ return `${previous}${next}`;
651
+ }
652
+ function resolveStreamingCardSendMode(options) {
653
+ if (options?.replyToMessageId) return "reply";
654
+ if (options?.rootId) return "root_create";
655
+ return "create";
656
+ }
657
+ /** Streaming card session manager */
658
+ var FeishuStreamingSession = class {
659
+ constructor(client, creds, log) {
660
+ this.state = null;
661
+ this.queue = Promise.resolve();
662
+ this.closed = false;
663
+ this.lastUpdateTime = 0;
664
+ this.pendingText = null;
665
+ this.flushTimer = null;
666
+ this.updateThrottleMs = 100;
667
+ this.client = client;
668
+ this.creds = creds;
669
+ this.log = log;
670
+ }
671
+ async start(receiveId, receiveIdType = "chat_id", options) {
672
+ if (this.state) return;
673
+ const apiBase = resolveApiBase(this.creds.domain);
674
+ const elements = [{
675
+ tag: "markdown",
676
+ content: "⏳ Thinking...",
677
+ element_id: "content"
678
+ }];
679
+ if (options?.note) {
680
+ elements.push({ tag: "hr" });
681
+ elements.push({
682
+ tag: "markdown",
683
+ content: `<font color='grey'>${options.note}</font>`,
684
+ element_id: "note"
685
+ });
686
+ }
687
+ const cardJson = {
688
+ schema: "2.0",
689
+ config: {
690
+ streaming_mode: true,
691
+ summary: { content: "[Generating...]" },
692
+ streaming_config: {
693
+ print_frequency_ms: { default: 50 },
694
+ print_step: { default: 1 }
695
+ }
696
+ },
697
+ body: { elements }
698
+ };
699
+ if (options?.header) cardJson.header = {
700
+ title: {
701
+ tag: "plain_text",
702
+ content: options.header.title
703
+ },
704
+ template: resolveFeishuCardTemplate(options.header.template) ?? "blue"
705
+ };
706
+ const { response: createRes, release: releaseCreate } = await fetchWithSsrFGuard({
707
+ url: `${apiBase}/cardkit/v1/cards`,
708
+ init: {
709
+ method: "POST",
710
+ headers: {
711
+ Authorization: `Bearer ${await getToken(this.creds)}`,
712
+ "Content-Type": "application/json"
713
+ },
714
+ body: JSON.stringify({
715
+ type: "card_json",
716
+ data: JSON.stringify(cardJson)
717
+ })
718
+ },
719
+ policy: { allowedHostnames: resolveAllowedHostnames(this.creds.domain) },
720
+ auditContext: "feishu.streaming-card.create"
721
+ });
722
+ if (!createRes.ok) {
723
+ await releaseCreate();
724
+ throw new Error(`Create card request failed with HTTP ${createRes.status}`);
725
+ }
726
+ const createData = await createRes.json();
727
+ await releaseCreate();
728
+ if (createData.code !== 0 || !createData.data?.card_id) throw new Error(`Create card failed: ${createData.msg}`);
729
+ const cardId = createData.data.card_id;
730
+ const cardContent = JSON.stringify({
731
+ type: "card",
732
+ data: { card_id: cardId }
733
+ });
734
+ let sendRes;
735
+ const sendOptions = options ?? {};
736
+ const sendMode = resolveStreamingCardSendMode(sendOptions);
737
+ if (sendMode === "reply") sendRes = await this.client.im.message.reply({
738
+ path: { message_id: sendOptions.replyToMessageId },
739
+ data: {
740
+ msg_type: "interactive",
741
+ content: cardContent,
742
+ ...sendOptions.replyInThread ? { reply_in_thread: true } : {}
743
+ }
744
+ });
745
+ else if (sendMode === "root_create") sendRes = await this.client.im.message.create({
746
+ params: { receive_id_type: receiveIdType },
747
+ data: Object.assign({
748
+ receive_id: receiveId,
749
+ msg_type: "interactive",
750
+ content: cardContent
751
+ }, { root_id: sendOptions.rootId })
752
+ });
753
+ else sendRes = await this.client.im.message.create({
754
+ params: { receive_id_type: receiveIdType },
755
+ data: {
756
+ receive_id: receiveId,
757
+ msg_type: "interactive",
758
+ content: cardContent
759
+ }
760
+ });
761
+ if (sendRes.code !== 0 || !sendRes.data?.message_id) throw new Error(`Send card failed: ${sendRes.msg}`);
762
+ this.state = {
763
+ cardId,
764
+ messageId: sendRes.data.message_id,
765
+ sequence: 1,
766
+ currentText: "",
767
+ hasNote: !!options?.note
768
+ };
769
+ this.log?.(`Started streaming: cardId=${cardId}, messageId=${sendRes.data.message_id}`);
770
+ }
771
+ async updateCardContent(text, onError) {
772
+ if (!this.state) return;
773
+ const apiBase = resolveApiBase(this.creds.domain);
774
+ this.state.sequence += 1;
775
+ await fetchWithSsrFGuard({
776
+ url: `${apiBase}/cardkit/v1/cards/${this.state.cardId}/elements/content/content`,
777
+ init: {
778
+ method: "PUT",
779
+ headers: {
780
+ Authorization: `Bearer ${await getToken(this.creds)}`,
781
+ "Content-Type": "application/json"
782
+ },
783
+ body: JSON.stringify({
784
+ content: text,
785
+ sequence: this.state.sequence,
786
+ uuid: `s_${this.state.cardId}_${this.state.sequence}`
787
+ })
788
+ },
789
+ policy: { allowedHostnames: resolveAllowedHostnames(this.creds.domain) },
790
+ auditContext: "feishu.streaming-card.update"
791
+ }).then(async ({ release }) => {
792
+ await release();
793
+ }).catch((error) => onError?.(error));
794
+ }
795
+ async update(text) {
796
+ if (!this.state || this.closed) return;
797
+ const mergedInput = mergeStreamingText(this.pendingText ?? this.state.currentText, text);
798
+ if (!mergedInput || mergedInput === this.state.currentText) return;
799
+ const now = Date.now();
800
+ if (now - this.lastUpdateTime < this.updateThrottleMs) {
801
+ this.pendingText = mergedInput;
802
+ return;
803
+ }
804
+ this.pendingText = null;
805
+ this.lastUpdateTime = now;
806
+ if (this.flushTimer) {
807
+ clearTimeout(this.flushTimer);
808
+ this.flushTimer = null;
809
+ }
810
+ this.queue = this.queue.then(async () => {
811
+ if (!this.state || this.closed) return;
812
+ const mergedText = mergeStreamingText(this.state.currentText, mergedInput);
813
+ if (!mergedText || mergedText === this.state.currentText) return;
814
+ this.state.currentText = mergedText;
815
+ await this.updateCardContent(mergedText, (e) => this.log?.(`Update failed: ${String(e)}`));
816
+ });
817
+ await this.queue;
818
+ }
819
+ async updateNoteContent(note) {
820
+ if (!this.state || !this.state.hasNote) return;
821
+ const apiBase = resolveApiBase(this.creds.domain);
822
+ this.state.sequence += 1;
823
+ await fetchWithSsrFGuard({
824
+ url: `${apiBase}/cardkit/v1/cards/${this.state.cardId}/elements/note/content`,
825
+ init: {
826
+ method: "PUT",
827
+ headers: {
828
+ Authorization: `Bearer ${await getToken(this.creds)}`,
829
+ "Content-Type": "application/json"
830
+ },
831
+ body: JSON.stringify({
832
+ content: `<font color='grey'>${note}</font>`,
833
+ sequence: this.state.sequence,
834
+ uuid: `n_${this.state.cardId}_${this.state.sequence}`
835
+ })
836
+ },
837
+ policy: { allowedHostnames: resolveAllowedHostnames(this.creds.domain) },
838
+ auditContext: "feishu.streaming-card.note-update"
839
+ }).then(async ({ release }) => {
840
+ await release();
841
+ }).catch((e) => this.log?.(`Note update failed: ${String(e)}`));
842
+ }
843
+ async close(finalText, options) {
844
+ if (!this.state || this.closed) return;
845
+ this.closed = true;
846
+ if (this.flushTimer) {
847
+ clearTimeout(this.flushTimer);
848
+ this.flushTimer = null;
849
+ }
850
+ await this.queue;
851
+ const pendingMerged = mergeStreamingText(this.state.currentText, this.pendingText ?? void 0);
852
+ const text = finalText ? mergeStreamingText(pendingMerged, finalText) : pendingMerged;
853
+ const apiBase = resolveApiBase(this.creds.domain);
854
+ if (text && text !== this.state.currentText) {
855
+ await this.updateCardContent(text);
856
+ this.state.currentText = text;
857
+ }
858
+ if (options?.note) await this.updateNoteContent(options.note);
859
+ this.state.sequence += 1;
860
+ await fetchWithSsrFGuard({
861
+ url: `${apiBase}/cardkit/v1/cards/${this.state.cardId}/settings`,
862
+ init: {
863
+ method: "PATCH",
864
+ headers: {
865
+ Authorization: `Bearer ${await getToken(this.creds)}`,
866
+ "Content-Type": "application/json; charset=utf-8"
867
+ },
868
+ body: JSON.stringify({
869
+ settings: JSON.stringify({ config: {
870
+ streaming_mode: false,
871
+ summary: { content: truncateSummary(text) }
872
+ } }),
873
+ sequence: this.state.sequence,
874
+ uuid: `c_${this.state.cardId}_${this.state.sequence}`
875
+ })
876
+ },
877
+ policy: { allowedHostnames: resolveAllowedHostnames(this.creds.domain) },
878
+ auditContext: "feishu.streaming-card.close"
879
+ }).then(async ({ release }) => {
880
+ await release();
881
+ }).catch((e) => this.log?.(`Close failed: ${String(e)}`));
882
+ const finalState = this.state;
883
+ this.state = null;
884
+ this.pendingText = null;
885
+ this.log?.(`Closed streaming: cardId=${finalState.cardId}`);
886
+ }
887
+ isActive() {
888
+ return this.state !== null && !this.closed;
889
+ }
890
+ };
891
+ //#endregion
892
+ //#region extensions/feishu/src/typing.ts
893
+ const TYPING_EMOJI = "Typing";
894
+ /**
895
+ * Feishu API error codes that indicate the caller should back off.
896
+ * These must propagate to the typing circuit breaker so the keepalive loop
897
+ * can trip and stop retrying.
898
+ *
899
+ * - 99991400: Rate limit (too many requests per second)
900
+ * - 99991403: Monthly API call quota exceeded
901
+ * - 429: Standard HTTP 429 returned as a Feishu SDK error code
902
+ *
903
+ * @see https://open.feishu.cn/document/server-docs/api-call-guide/generic-error-code
904
+ */
905
+ const FEISHU_BACKOFF_CODES = new Set([
906
+ 99991400,
907
+ 99991403,
908
+ 429
909
+ ]);
910
+ /**
911
+ * Custom error class for Feishu backoff conditions detected from non-throwing
912
+ * SDK responses. Carries a numeric `.code` so that `isFeishuBackoffError()`
913
+ * recognises it when the error is caught downstream.
914
+ */
915
+ var FeishuBackoffError = class extends Error {
916
+ constructor(code) {
917
+ super(`Feishu API backoff: code ${code}`);
918
+ this.name = "FeishuBackoffError";
919
+ this.code = code;
920
+ }
921
+ };
922
+ /**
923
+ * Check whether an error represents a rate-limit or quota-exceeded condition
924
+ * from the Feishu API that should stop the typing keepalive loop.
925
+ *
926
+ * Handles two shapes:
927
+ * 1. AxiosError with `response.status` and `response.data.code`
928
+ * 2. Feishu SDK error with a top-level `code` property
929
+ */
930
+ function isFeishuBackoffError(err) {
931
+ if (typeof err !== "object" || err === null) return false;
932
+ const response = err.response;
933
+ if (response) {
934
+ if (response.status === 429) return true;
935
+ if (typeof response.data?.code === "number" && FEISHU_BACKOFF_CODES.has(response.data.code)) return true;
936
+ }
937
+ const code = err.code;
938
+ if (typeof code === "number" && FEISHU_BACKOFF_CODES.has(code)) return true;
939
+ return false;
940
+ }
941
+ /**
942
+ * Check whether a Feishu SDK response object contains a backoff error code.
943
+ *
944
+ * The Feishu SDK sometimes returns a normal response (no throw) with an
945
+ * API-level error code in the response body. This must be detected so the
946
+ * circuit breaker can trip. See codex review on #28157.
947
+ */
948
+ function getBackoffCodeFromResponse(response) {
949
+ if (typeof response !== "object" || response === null) return;
950
+ const code = response.code;
951
+ if (typeof code === "number" && FEISHU_BACKOFF_CODES.has(code)) return code;
952
+ }
953
+ /**
954
+ * Add a typing indicator (reaction) to a message.
955
+ *
956
+ * Rate-limit and quota errors are re-thrown so the circuit breaker in
957
+ * `createTypingCallbacks` (typing-start-guard) can trip and stop the
958
+ * keepalive loop. See #28062.
959
+ *
960
+ * Also checks for backoff codes in non-throwing SDK responses (#28157).
961
+ */
962
+ async function addTypingIndicator(params) {
963
+ const { cfg, messageId, accountId, runtime } = params;
964
+ const account = resolveFeishuAccount({
965
+ cfg,
966
+ accountId
967
+ });
968
+ if (!account.configured) return {
969
+ messageId,
970
+ reactionId: null
971
+ };
972
+ const client = createFeishuClient(account);
973
+ try {
974
+ const response = await client.im.messageReaction.create({
975
+ path: { message_id: messageId },
976
+ data: { reaction_type: { emoji_type: TYPING_EMOJI } }
977
+ });
978
+ const backoffCode = getBackoffCodeFromResponse(response);
979
+ if (backoffCode !== void 0) {
980
+ if (getFeishuRuntime().logging.shouldLogVerbose()) runtime?.log?.(`[feishu] typing indicator response contains backoff code ${backoffCode}, stopping keepalive`);
981
+ throw new FeishuBackoffError(backoffCode);
982
+ }
983
+ return {
984
+ messageId,
985
+ reactionId: response?.data?.reaction_id ?? null
986
+ };
987
+ } catch (err) {
988
+ if (isFeishuBackoffError(err)) {
989
+ if (getFeishuRuntime().logging.shouldLogVerbose()) runtime?.log?.("[feishu] typing indicator hit rate-limit/quota, stopping keepalive");
990
+ throw err;
991
+ }
992
+ if (getFeishuRuntime().logging.shouldLogVerbose()) runtime?.log?.(`[feishu] failed to add typing indicator: ${String(err)}`);
993
+ return {
994
+ messageId,
995
+ reactionId: null
996
+ };
997
+ }
998
+ }
999
+ /**
1000
+ * Remove a typing indicator (reaction) from a message.
1001
+ *
1002
+ * Rate-limit and quota errors are re-thrown for the same reason as above.
1003
+ */
1004
+ async function removeTypingIndicator(params) {
1005
+ const { cfg, state, accountId, runtime } = params;
1006
+ if (!state.reactionId) return;
1007
+ const account = resolveFeishuAccount({
1008
+ cfg,
1009
+ accountId
1010
+ });
1011
+ if (!account.configured) return;
1012
+ const client = createFeishuClient(account);
1013
+ try {
1014
+ const backoffCode = getBackoffCodeFromResponse(await client.im.messageReaction.delete({ path: {
1015
+ message_id: state.messageId,
1016
+ reaction_id: state.reactionId
1017
+ } }));
1018
+ if (backoffCode !== void 0) {
1019
+ if (getFeishuRuntime().logging.shouldLogVerbose()) runtime?.log?.(`[feishu] typing indicator removal response contains backoff code ${backoffCode}, stopping keepalive`);
1020
+ throw new FeishuBackoffError(backoffCode);
1021
+ }
1022
+ } catch (err) {
1023
+ if (isFeishuBackoffError(err)) {
1024
+ if (getFeishuRuntime().logging.shouldLogVerbose()) runtime?.log?.("[feishu] typing indicator removal hit rate-limit/quota, stopping keepalive");
1025
+ throw err;
1026
+ }
1027
+ if (getFeishuRuntime().logging.shouldLogVerbose()) runtime?.log?.(`[feishu] failed to remove typing indicator: ${String(err)}`);
1028
+ }
1029
+ }
1030
+ //#endregion
1031
+ //#region extensions/feishu/src/reply-dispatcher.ts
1032
+ /** Detect if text contains markdown elements that benefit from card rendering */
1033
+ function shouldUseCard(text) {
1034
+ return /```[\s\S]*?```/.test(text) || /\|.+\|[\r\n]+\|[-:| ]+\|/.test(text);
1035
+ }
1036
+ /** Maximum age (ms) for a message to receive a typing indicator reaction.
1037
+ * Messages older than this are likely replays after context compaction (#30418). */
1038
+ const TYPING_INDICATOR_MAX_AGE_MS = 2 * 6e4;
1039
+ const MS_EPOCH_MIN = 0xe8d4a51000;
1040
+ function normalizeEpochMs(timestamp) {
1041
+ if (!Number.isFinite(timestamp) || timestamp === void 0 || timestamp <= 0) return;
1042
+ return timestamp < MS_EPOCH_MIN ? timestamp * 1e3 : timestamp;
1043
+ }
1044
+ /** Build a card header from agent identity config. */
1045
+ function resolveCardHeader(agentId, identity) {
1046
+ const name = identity?.name?.trim() || agentId;
1047
+ const emoji = identity?.emoji?.trim();
1048
+ return {
1049
+ title: emoji ? `${emoji} ${name}` : name,
1050
+ template: identity?.theme ?? "blue"
1051
+ };
1052
+ }
1053
+ /** Build a card note footer from agent identity and model context. */
1054
+ function resolveCardNote(agentId, identity, prefixCtx) {
1055
+ const parts = [`Agent: ${identity?.name?.trim() || agentId}`];
1056
+ if (prefixCtx.model) parts.push(`Model: ${prefixCtx.model}`);
1057
+ if (prefixCtx.provider) parts.push(`Provider: ${prefixCtx.provider}`);
1058
+ return parts.join(" | ");
1059
+ }
1060
+ function createFeishuReplyDispatcher(params) {
1061
+ const core = getFeishuRuntime();
1062
+ const { cfg, agentId, chatId, replyToMessageId, skipReplyToInMessages, replyInThread, threadReply, rootId, mentionTargets, accountId, identity } = params;
1063
+ const sendReplyToMessageId = skipReplyToInMessages ? void 0 : replyToMessageId;
1064
+ const threadReplyMode = threadReply === true;
1065
+ const effectiveReplyInThread = threadReplyMode ? true : replyInThread;
1066
+ const account = resolveFeishuAccount({
1067
+ cfg,
1068
+ accountId
1069
+ });
1070
+ const prefixContext = createReplyPrefixContext({
1071
+ cfg,
1072
+ agentId
1073
+ });
1074
+ let typingState = null;
1075
+ const { typingCallbacks } = createChannelReplyPipeline({
1076
+ cfg,
1077
+ agentId,
1078
+ channel: "feishu",
1079
+ accountId,
1080
+ typing: {
1081
+ start: async () => {
1082
+ if (!(account.config.typingIndicator ?? true)) return;
1083
+ if (!replyToMessageId) return;
1084
+ const messageCreateTimeMs = normalizeEpochMs(params.messageCreateTimeMs);
1085
+ if (messageCreateTimeMs !== void 0 && Date.now() - messageCreateTimeMs > TYPING_INDICATOR_MAX_AGE_MS) return;
1086
+ if (typingState?.reactionId) return;
1087
+ typingState = await addTypingIndicator({
1088
+ cfg,
1089
+ messageId: replyToMessageId,
1090
+ accountId,
1091
+ runtime: params.runtime
1092
+ });
1093
+ },
1094
+ stop: async () => {
1095
+ if (!typingState) return;
1096
+ await removeTypingIndicator({
1097
+ cfg,
1098
+ state: typingState,
1099
+ accountId,
1100
+ runtime: params.runtime
1101
+ });
1102
+ typingState = null;
1103
+ },
1104
+ onStartError: (err) => logTypingFailure({
1105
+ log: (message) => params.runtime.log?.(message),
1106
+ channel: "feishu",
1107
+ action: "start",
1108
+ error: err
1109
+ }),
1110
+ onStopError: (err) => logTypingFailure({
1111
+ log: (message) => params.runtime.log?.(message),
1112
+ channel: "feishu",
1113
+ action: "stop",
1114
+ error: err
1115
+ })
1116
+ }
1117
+ });
1118
+ const textChunkLimit = core.channel.text.resolveTextChunkLimit(cfg, "feishu", accountId, { fallbackLimit: 4e3 });
1119
+ const chunkMode = core.channel.text.resolveChunkMode(cfg, "feishu");
1120
+ const tableMode = core.channel.text.resolveMarkdownTableMode({
1121
+ cfg,
1122
+ channel: "feishu"
1123
+ });
1124
+ const renderMode = account.config?.renderMode ?? "auto";
1125
+ const streamingEnabled = !threadReplyMode && account.config?.streaming !== false && renderMode !== "raw";
1126
+ let streaming = null;
1127
+ let streamText = "";
1128
+ let lastPartial = "";
1129
+ let reasoningText = "";
1130
+ const deliveredFinalTexts = /* @__PURE__ */ new Set();
1131
+ let partialUpdateQueue = Promise.resolve();
1132
+ let streamingStartPromise = null;
1133
+ const formatReasoningPrefix = (thinking) => {
1134
+ if (!thinking) return "";
1135
+ return `> 💭 **Thinking**\n${thinking.replace(/^Reasoning:\n/, "").replace(/^_(.*)_$/gm, "$1").split("\n").map((line) => `> ${line}`).join("\n")}`;
1136
+ };
1137
+ const buildCombinedStreamText = (thinking, answer) => {
1138
+ const parts = [];
1139
+ if (thinking) parts.push(formatReasoningPrefix(thinking));
1140
+ if (thinking && answer) parts.push("\n\n---\n\n");
1141
+ if (answer) parts.push(answer);
1142
+ return parts.join("");
1143
+ };
1144
+ const flushStreamingCardUpdate = (combined) => {
1145
+ partialUpdateQueue = partialUpdateQueue.then(async () => {
1146
+ if (streamingStartPromise) await streamingStartPromise;
1147
+ if (streaming?.isActive()) await streaming.update(combined);
1148
+ });
1149
+ };
1150
+ const queueStreamingUpdate = (nextText, options) => {
1151
+ if (!nextText) return;
1152
+ if (options?.dedupeWithLastPartial && nextText === lastPartial) return;
1153
+ if (options?.dedupeWithLastPartial) lastPartial = nextText;
1154
+ streamText = (options?.mode ?? "snapshot") === "delta" ? `${streamText}${nextText}` : mergeStreamingText(streamText, nextText);
1155
+ flushStreamingCardUpdate(buildCombinedStreamText(reasoningText, streamText));
1156
+ };
1157
+ const queueReasoningUpdate = (nextThinking) => {
1158
+ if (!nextThinking) return;
1159
+ reasoningText = nextThinking;
1160
+ flushStreamingCardUpdate(buildCombinedStreamText(reasoningText, streamText));
1161
+ };
1162
+ const startStreaming = () => {
1163
+ if (!streamingEnabled || streamingStartPromise || streaming) return;
1164
+ streamingStartPromise = (async () => {
1165
+ const creds = account.appId && account.appSecret ? {
1166
+ appId: account.appId,
1167
+ appSecret: account.appSecret,
1168
+ domain: account.domain
1169
+ } : null;
1170
+ if (!creds) return;
1171
+ streaming = new FeishuStreamingSession(createFeishuClient(account), creds, (message) => params.runtime.log?.(`feishu[${account.accountId}] ${message}`));
1172
+ try {
1173
+ const cardHeader = resolveCardHeader(agentId, identity);
1174
+ const cardNote = resolveCardNote(agentId, identity, prefixContext.prefixContext);
1175
+ await streaming.start(chatId, resolveReceiveIdType(chatId), {
1176
+ replyToMessageId,
1177
+ replyInThread: effectiveReplyInThread,
1178
+ rootId,
1179
+ header: cardHeader,
1180
+ note: cardNote
1181
+ });
1182
+ } catch (error) {
1183
+ params.runtime.error?.(`feishu: streaming start failed: ${String(error)}`);
1184
+ streaming = null;
1185
+ streamingStartPromise = null;
1186
+ }
1187
+ })();
1188
+ };
1189
+ const closeStreaming = async () => {
1190
+ if (streamingStartPromise) await streamingStartPromise;
1191
+ await partialUpdateQueue;
1192
+ if (streaming?.isActive()) {
1193
+ let text = buildCombinedStreamText(reasoningText, streamText);
1194
+ if (mentionTargets?.length) text = buildMentionedCardContent(mentionTargets, text);
1195
+ const finalNote = resolveCardNote(agentId, identity, prefixContext.prefixContext);
1196
+ await streaming.close(text, { note: finalNote });
1197
+ }
1198
+ streaming = null;
1199
+ streamingStartPromise = null;
1200
+ streamText = "";
1201
+ lastPartial = "";
1202
+ reasoningText = "";
1203
+ };
1204
+ const sendChunkedTextReply = async (params) => {
1205
+ const chunkSource = params.useCard ? params.text : core.channel.text.convertMarkdownTables(params.text, tableMode);
1206
+ const chunks = resolveTextChunksWithFallback(chunkSource, core.channel.text.chunkTextWithMode(chunkSource, textChunkLimit, chunkMode));
1207
+ for (const [index, chunk] of chunks.entries()) await params.sendChunk({
1208
+ chunk,
1209
+ isFirst: index === 0
1210
+ });
1211
+ if (params.infoKind === "final") deliveredFinalTexts.add(params.text);
1212
+ };
1213
+ const sendMediaReplies = async (payload) => {
1214
+ await sendMediaWithLeadingCaption({
1215
+ mediaUrls: resolveSendableOutboundReplyParts(payload).mediaUrls,
1216
+ caption: "",
1217
+ send: async ({ mediaUrl }) => {
1218
+ await sendMediaFeishu({
1219
+ cfg,
1220
+ to: chatId,
1221
+ mediaUrl,
1222
+ replyToMessageId: sendReplyToMessageId,
1223
+ replyInThread: effectiveReplyInThread,
1224
+ accountId
1225
+ });
1226
+ }
1227
+ });
1228
+ };
1229
+ const { dispatcher, replyOptions, markDispatchIdle } = core.channel.reply.createReplyDispatcherWithTyping({
1230
+ responsePrefix: prefixContext.responsePrefix,
1231
+ responsePrefixContextProvider: prefixContext.responsePrefixContextProvider,
1232
+ humanDelay: core.channel.reply.resolveHumanDelayConfig(cfg, agentId),
1233
+ onReplyStart: async () => {
1234
+ deliveredFinalTexts.clear();
1235
+ if (streamingEnabled && renderMode === "card") startStreaming();
1236
+ await typingCallbacks?.onReplyStart?.();
1237
+ },
1238
+ deliver: async (payload, info) => {
1239
+ const reply = resolveSendableOutboundReplyParts(payload);
1240
+ const text = reply.text;
1241
+ const hasText = reply.hasText;
1242
+ const hasMedia = reply.hasMedia;
1243
+ const skipTextForDuplicateFinal = info?.kind === "final" && hasText && deliveredFinalTexts.has(text);
1244
+ const shouldDeliverText = hasText && !skipTextForDuplicateFinal;
1245
+ if (!shouldDeliverText && !hasMedia) return;
1246
+ if (shouldDeliverText) {
1247
+ const useCard = renderMode === "card" || renderMode === "auto" && shouldUseCard(text);
1248
+ if (info?.kind === "block") {
1249
+ if (!(streamingEnabled && useCard)) return;
1250
+ startStreaming();
1251
+ if (streamingStartPromise) await streamingStartPromise;
1252
+ }
1253
+ if (info?.kind === "final" && streamingEnabled && useCard) {
1254
+ startStreaming();
1255
+ if (streamingStartPromise) await streamingStartPromise;
1256
+ }
1257
+ if (streaming?.isActive()) {
1258
+ if (info?.kind === "block") queueStreamingUpdate(text, { mode: "delta" });
1259
+ if (info?.kind === "final") {
1260
+ streamText = mergeStreamingText(streamText, text);
1261
+ await closeStreaming();
1262
+ deliveredFinalTexts.add(text);
1263
+ }
1264
+ if (hasMedia) await sendMediaReplies(payload);
1265
+ return;
1266
+ }
1267
+ if (useCard) {
1268
+ const cardHeader = resolveCardHeader(agentId, identity);
1269
+ const cardNote = resolveCardNote(agentId, identity, prefixContext.prefixContext);
1270
+ await sendChunkedTextReply({
1271
+ text,
1272
+ useCard: true,
1273
+ infoKind: info?.kind,
1274
+ sendChunk: async ({ chunk, isFirst }) => {
1275
+ await sendStructuredCardFeishu({
1276
+ cfg,
1277
+ to: chatId,
1278
+ text: chunk,
1279
+ replyToMessageId: sendReplyToMessageId,
1280
+ replyInThread: effectiveReplyInThread,
1281
+ mentions: isFirst ? mentionTargets : void 0,
1282
+ accountId,
1283
+ header: cardHeader,
1284
+ note: cardNote
1285
+ });
1286
+ }
1287
+ });
1288
+ } else await sendChunkedTextReply({
1289
+ text,
1290
+ useCard: false,
1291
+ infoKind: info?.kind,
1292
+ sendChunk: async ({ chunk, isFirst }) => {
1293
+ await sendMessageFeishu({
1294
+ cfg,
1295
+ to: chatId,
1296
+ text: chunk,
1297
+ replyToMessageId: sendReplyToMessageId,
1298
+ replyInThread: effectiveReplyInThread,
1299
+ mentions: isFirst ? mentionTargets : void 0,
1300
+ accountId
1301
+ });
1302
+ }
1303
+ });
1304
+ }
1305
+ if (hasMedia) await sendMediaReplies(payload);
1306
+ },
1307
+ onError: async (error, info) => {
1308
+ params.runtime.error?.(`feishu[${account.accountId}] ${info.kind} reply failed: ${String(error)}`);
1309
+ await closeStreaming();
1310
+ typingCallbacks?.onIdle?.();
1311
+ },
1312
+ onIdle: async () => {
1313
+ await closeStreaming();
1314
+ typingCallbacks?.onIdle?.();
1315
+ },
1316
+ onCleanup: () => {
1317
+ typingCallbacks?.onCleanup?.();
1318
+ }
1319
+ });
1320
+ return {
1321
+ dispatcher,
1322
+ replyOptions: {
1323
+ ...replyOptions,
1324
+ onModelSelected: prefixContext.onModelSelected,
1325
+ disableBlockStreaming: true,
1326
+ onPartialReply: streamingEnabled ? (payload) => {
1327
+ if (!payload.text) return;
1328
+ queueStreamingUpdate(payload.text, {
1329
+ dedupeWithLastPartial: true,
1330
+ mode: "snapshot"
1331
+ });
1332
+ } : void 0,
1333
+ onReasoningStream: streamingEnabled ? (payload) => {
1334
+ if (!payload.text) return;
1335
+ startStreaming();
1336
+ queueReasoningUpdate(payload.text);
1337
+ } : void 0,
1338
+ onReasoningEnd: streamingEnabled ? () => {} : void 0
1339
+ },
1340
+ markDispatchIdle
1341
+ };
1342
+ }
1343
+ //#endregion
1344
+ //#region extensions/feishu/src/bot.ts
1345
+ const permissionErrorNotifiedAt = /* @__PURE__ */ new Map();
1346
+ const PERMISSION_ERROR_COOLDOWN_MS = 300 * 1e3;
1347
+ function resolveBroadcastAgents(cfg, peerId) {
1348
+ const broadcast = cfg.broadcast;
1349
+ if (!broadcast || typeof broadcast !== "object") return null;
1350
+ const agents = broadcast[peerId];
1351
+ if (!Array.isArray(agents) || agents.length === 0) return null;
1352
+ return agents;
1353
+ }
1354
+ function buildBroadcastSessionKey(baseSessionKey, originalAgentId, targetAgentId) {
1355
+ const prefix = `agent:${originalAgentId}:`;
1356
+ if (baseSessionKey.startsWith(prefix)) return `agent:${targetAgentId}:${baseSessionKey.slice(prefix.length)}`;
1357
+ return baseSessionKey;
1358
+ }
1359
+ /**
1360
+ * Build media payload for inbound context.
1361
+ * Similar to Discord's buildDiscordMediaPayload().
1362
+ */
1363
+ function parseFeishuMessageEvent(event, botOpenId, _botName) {
1364
+ const rawContent = parseMessageContent(event.message.content, event.message.message_type);
1365
+ const mentionedBot = checkBotMentioned(event, botOpenId);
1366
+ const hasAnyMention = (event.message.mentions?.length ?? 0) > 0;
1367
+ const content = normalizeMentions(rawContent, event.message.mentions, botOpenId);
1368
+ const senderOpenId = event.sender.sender_id.open_id?.trim();
1369
+ const senderUserId = event.sender.sender_id.user_id?.trim();
1370
+ const senderFallbackId = senderOpenId || senderUserId || "";
1371
+ const ctx = {
1372
+ chatId: event.message.chat_id,
1373
+ messageId: event.message.message_id,
1374
+ senderId: senderUserId || senderOpenId || "",
1375
+ senderOpenId: senderFallbackId,
1376
+ chatType: event.message.chat_type,
1377
+ mentionedBot,
1378
+ hasAnyMention,
1379
+ rootId: event.message.root_id || void 0,
1380
+ parentId: event.message.parent_id || void 0,
1381
+ threadId: event.message.thread_id || void 0,
1382
+ content,
1383
+ contentType: event.message.message_type
1384
+ };
1385
+ if (isMentionForwardRequest(event, botOpenId)) {
1386
+ const mentionTargets = extractMentionTargets(event, botOpenId);
1387
+ if (mentionTargets.length > 0) ctx.mentionTargets = mentionTargets;
1388
+ }
1389
+ return ctx;
1390
+ }
1391
+ function buildFeishuAgentBody(params) {
1392
+ const { ctx, quotedContent, permissionErrorForAgent, botOpenId } = params;
1393
+ let messageBody = ctx.content;
1394
+ if (quotedContent) messageBody = `[Replying to: "${quotedContent}"]\n\n${ctx.content}`;
1395
+ messageBody = `${ctx.senderName ?? ctx.senderOpenId}: ${messageBody}`;
1396
+ if (ctx.hasAnyMention) {
1397
+ const botIdHint = botOpenId?.trim();
1398
+ messageBody += "\n\n[System: The content may include mention tags in the form <at user_id=\"...\">name</at>. Treat these as real mentions of Feishu entities (users or bots).]";
1399
+ if (botIdHint) messageBody += `\n[System: If user_id is "${botIdHint}", that mention refers to you.]`;
1400
+ }
1401
+ if (ctx.mentionTargets && ctx.mentionTargets.length > 0) {
1402
+ const targetNames = ctx.mentionTargets.map((t) => t.name).join(", ");
1403
+ messageBody += `\n\n[System: Your reply will automatically @mention: ${targetNames}. Do not write @xxx yourself.]`;
1404
+ }
1405
+ messageBody = `[message_id: ${ctx.messageId}]\n${messageBody}`;
1406
+ if (permissionErrorForAgent) {
1407
+ const grantUrl = permissionErrorForAgent.grantUrl ?? "";
1408
+ messageBody += `\n\n[System: The bot encountered a Feishu API permission error. Please inform the user about this issue and provide the permission grant URL for the admin to authorize. Permission grant URL: ${grantUrl}]`;
1409
+ }
1410
+ return messageBody;
1411
+ }
1412
+ async function handleFeishuMessage(params) {
1413
+ const { cfg, event, botOpenId, botName, runtime, chatHistories, accountId, processingClaimHeld = false } = params;
1414
+ const account = resolveFeishuAccount({
1415
+ cfg,
1416
+ accountId
1417
+ });
1418
+ const feishuCfg = account.config;
1419
+ const log = runtime?.log ?? console.log;
1420
+ const error = runtime?.error ?? console.error;
1421
+ const messageId = event.message.message_id;
1422
+ if (!await finalizeFeishuMessageProcessing({
1423
+ messageId,
1424
+ namespace: account.accountId,
1425
+ log,
1426
+ claimHeld: processingClaimHeld
1427
+ })) {
1428
+ log(`feishu: skipping duplicate message ${messageId}`);
1429
+ return;
1430
+ }
1431
+ let ctx = parseFeishuMessageEvent(event, botOpenId, botName);
1432
+ const isGroup = ctx.chatType === "group";
1433
+ const isDirect = !isGroup;
1434
+ const senderUserId = event.sender.sender_id.user_id?.trim() || void 0;
1435
+ if (event.message.message_type === "merge_forward") {
1436
+ log(`feishu[${account.accountId}]: processing merge_forward message, fetching full content via API`);
1437
+ try {
1438
+ const response = await createFeishuClient(account).im.message.get({ path: { message_id: event.message.message_id } });
1439
+ if (response.code === 0 && response.data?.items && response.data.items.length > 0) {
1440
+ log(`feishu[${account.accountId}]: merge_forward API returned ${response.data.items.length} items`);
1441
+ const expandedContent = parseMergeForwardContent({
1442
+ content: JSON.stringify(response.data.items),
1443
+ log
1444
+ });
1445
+ ctx = {
1446
+ ...ctx,
1447
+ content: expandedContent
1448
+ };
1449
+ } else {
1450
+ log(`feishu[${account.accountId}]: merge_forward API returned no items`);
1451
+ ctx = {
1452
+ ...ctx,
1453
+ content: "[Merged and Forwarded Message - could not fetch]"
1454
+ };
1455
+ }
1456
+ } catch (err) {
1457
+ log(`feishu[${account.accountId}]: merge_forward fetch failed: ${String(err)}`);
1458
+ ctx = {
1459
+ ...ctx,
1460
+ content: "[Merged and Forwarded Message - fetch error]"
1461
+ };
1462
+ }
1463
+ }
1464
+ let permissionErrorForAgent;
1465
+ if (feishuCfg?.resolveSenderNames ?? true) {
1466
+ const senderResult = await resolveFeishuSenderName({
1467
+ account,
1468
+ senderId: ctx.senderOpenId,
1469
+ log
1470
+ });
1471
+ if (senderResult.name) ctx = {
1472
+ ...ctx,
1473
+ senderName: senderResult.name
1474
+ };
1475
+ if (senderResult.permissionError) {
1476
+ const appKey = account.appId ?? "default";
1477
+ const now = Date.now();
1478
+ if (now - (permissionErrorNotifiedAt.get(appKey) ?? 0) > PERMISSION_ERROR_COOLDOWN_MS) {
1479
+ permissionErrorNotifiedAt.set(appKey, now);
1480
+ permissionErrorForAgent = senderResult.permissionError;
1481
+ }
1482
+ }
1483
+ }
1484
+ log(`feishu[${account.accountId}]: received message from ${ctx.senderOpenId} in ${ctx.chatId} (${ctx.chatType})`);
1485
+ if (ctx.mentionTargets && ctx.mentionTargets.length > 0) {
1486
+ const names = ctx.mentionTargets.map((t) => t.name).join(", ");
1487
+ log(`feishu[${account.accountId}]: detected @ forward request, targets: [${names}]`);
1488
+ }
1489
+ const historyLimit = Math.max(0, feishuCfg?.historyLimit ?? cfg.messages?.groupChat?.historyLimit ?? 50);
1490
+ const groupConfig = isGroup ? resolveFeishuGroupConfig({
1491
+ cfg: feishuCfg,
1492
+ groupId: ctx.chatId
1493
+ }) : void 0;
1494
+ const groupSession = isGroup ? resolveFeishuGroupSession({
1495
+ chatId: ctx.chatId,
1496
+ senderOpenId: ctx.senderOpenId,
1497
+ messageId: ctx.messageId,
1498
+ rootId: ctx.rootId,
1499
+ threadId: ctx.threadId,
1500
+ groupConfig,
1501
+ feishuCfg
1502
+ }) : null;
1503
+ const groupHistoryKey = isGroup ? groupSession?.peerId ?? ctx.chatId : void 0;
1504
+ const dmPolicy = feishuCfg?.dmPolicy ?? "pairing";
1505
+ const configAllowFrom = feishuCfg?.allowFrom ?? [];
1506
+ const useAccessGroups = cfg.commands?.useAccessGroups !== false;
1507
+ const rawBroadcastAgents = isGroup ? resolveBroadcastAgents(cfg, ctx.chatId) : null;
1508
+ const broadcastAgents = rawBroadcastAgents ? [...new Set(rawBroadcastAgents.map((id) => normalizeAgentId(id)))] : null;
1509
+ let requireMention = false;
1510
+ if (isGroup) {
1511
+ if (groupConfig?.enabled === false) {
1512
+ log(`feishu[${account.accountId}]: group ${ctx.chatId} is disabled`);
1513
+ return;
1514
+ }
1515
+ const defaultGroupPolicy = resolveDefaultGroupPolicy(cfg);
1516
+ const { groupPolicy, providerMissingFallbackApplied } = resolveOpenProviderRuntimeGroupPolicy({
1517
+ providerConfigPresent: cfg.channels?.feishu !== void 0,
1518
+ groupPolicy: feishuCfg?.groupPolicy,
1519
+ defaultGroupPolicy
1520
+ });
1521
+ warnMissingProviderGroupPolicyFallbackOnce({
1522
+ providerMissingFallbackApplied,
1523
+ providerKey: "feishu",
1524
+ accountId: account.accountId,
1525
+ log
1526
+ });
1527
+ if (!isFeishuGroupAllowed({
1528
+ groupPolicy,
1529
+ allowFrom: feishuCfg?.groupAllowFrom ?? [],
1530
+ senderId: ctx.chatId,
1531
+ senderName: void 0
1532
+ })) {
1533
+ log(`feishu[${account.accountId}]: group ${ctx.chatId} not in groupAllowFrom (groupPolicy=${groupPolicy})`);
1534
+ return;
1535
+ }
1536
+ const perGroupSenderAllowFrom = groupConfig?.allowFrom ?? [];
1537
+ const globalSenderAllowFrom = feishuCfg?.groupSenderAllowFrom ?? [];
1538
+ const effectiveSenderAllowFrom = perGroupSenderAllowFrom.length > 0 ? perGroupSenderAllowFrom : globalSenderAllowFrom;
1539
+ if (effectiveSenderAllowFrom.length > 0) {
1540
+ if (!isFeishuGroupAllowed({
1541
+ groupPolicy: "allowlist",
1542
+ allowFrom: effectiveSenderAllowFrom,
1543
+ senderId: ctx.senderOpenId,
1544
+ senderIds: [senderUserId],
1545
+ senderName: ctx.senderName
1546
+ })) {
1547
+ log(`feishu: sender ${ctx.senderOpenId} not in group ${ctx.chatId} sender allowlist`);
1548
+ return;
1549
+ }
1550
+ }
1551
+ ({requireMention} = resolveFeishuReplyPolicy({
1552
+ isDirectMessage: false,
1553
+ globalConfig: feishuCfg,
1554
+ groupConfig
1555
+ }));
1556
+ if (requireMention && !ctx.mentionedBot) {
1557
+ log(`feishu[${account.accountId}]: message in group ${ctx.chatId} did not mention bot`);
1558
+ if (!broadcastAgents && chatHistories && groupHistoryKey) recordPendingHistoryEntryIfEnabled({
1559
+ historyMap: chatHistories,
1560
+ historyKey: groupHistoryKey,
1561
+ limit: historyLimit,
1562
+ entry: {
1563
+ sender: ctx.senderOpenId,
1564
+ body: `${ctx.senderName ?? ctx.senderOpenId}: ${ctx.content}`,
1565
+ timestamp: Date.now(),
1566
+ messageId: ctx.messageId
1567
+ }
1568
+ });
1569
+ return;
1570
+ }
1571
+ }
1572
+ try {
1573
+ const core = getFeishuRuntime();
1574
+ const pairing = createChannelPairingController({
1575
+ core,
1576
+ channel: "feishu",
1577
+ accountId: account.accountId
1578
+ });
1579
+ const commandProbeBody = isGroup ? normalizeFeishuCommandProbeBody(ctx.content) : ctx.content;
1580
+ const shouldComputeCommandAuthorized = core.channel.commands.shouldComputeCommandAuthorized(commandProbeBody, cfg);
1581
+ const storeAllowFrom = !isGroup && dmPolicy !== "allowlist" && (dmPolicy !== "open" || shouldComputeCommandAuthorized) ? await pairing.readAllowFromStore().catch(() => []) : [];
1582
+ const effectiveDmAllowFrom = [...configAllowFrom, ...storeAllowFrom];
1583
+ const dmAllowed = resolveFeishuAllowlistMatch({
1584
+ allowFrom: effectiveDmAllowFrom,
1585
+ senderId: ctx.senderOpenId,
1586
+ senderIds: [senderUserId],
1587
+ senderName: ctx.senderName
1588
+ }).allowed;
1589
+ if (isDirect && dmPolicy !== "open" && !dmAllowed) {
1590
+ if (dmPolicy === "pairing") await pairing.issueChallenge({
1591
+ senderId: ctx.senderOpenId,
1592
+ senderIdLine: `Your Feishu user id: ${ctx.senderOpenId}`,
1593
+ meta: { name: ctx.senderName },
1594
+ onCreated: () => {
1595
+ log(`feishu[${account.accountId}]: pairing request sender=${ctx.senderOpenId}`);
1596
+ },
1597
+ sendPairingReply: async (text) => {
1598
+ await sendMessageFeishu({
1599
+ cfg,
1600
+ to: `chat:${ctx.chatId}`,
1601
+ text,
1602
+ accountId: account.accountId
1603
+ });
1604
+ },
1605
+ onReplyError: (err) => {
1606
+ log(`feishu[${account.accountId}]: pairing reply failed for ${ctx.senderOpenId}: ${String(err)}`);
1607
+ }
1608
+ });
1609
+ else log(`feishu[${account.accountId}]: blocked unauthorized sender ${ctx.senderOpenId} (dmPolicy=${dmPolicy})`);
1610
+ return;
1611
+ }
1612
+ const commandAllowFrom = isGroup ? groupConfig?.allowFrom ?? configAllowFrom : effectiveDmAllowFrom;
1613
+ const senderAllowedForCommands = resolveFeishuAllowlistMatch({
1614
+ allowFrom: commandAllowFrom,
1615
+ senderId: ctx.senderOpenId,
1616
+ senderIds: [senderUserId],
1617
+ senderName: ctx.senderName
1618
+ }).allowed;
1619
+ const commandAuthorized = shouldComputeCommandAuthorized ? core.channel.commands.resolveCommandAuthorizedFromAuthorizers({
1620
+ useAccessGroups,
1621
+ authorizers: [{
1622
+ configured: commandAllowFrom.length > 0,
1623
+ allowed: senderAllowedForCommands
1624
+ }]
1625
+ }) : void 0;
1626
+ const feishuFrom = `feishu:${ctx.senderOpenId}`;
1627
+ const feishuTo = isGroup ? `chat:${ctx.chatId}` : `user:${ctx.senderOpenId}`;
1628
+ const peerId = isGroup ? groupSession?.peerId ?? ctx.chatId : ctx.senderOpenId;
1629
+ const parentPeer = isGroup ? groupSession?.parentPeer ?? null : null;
1630
+ const replyInThread = isGroup ? groupSession?.replyInThread ?? false : false;
1631
+ const feishuAcpConversationSupported = !isGroup || groupSession?.groupSessionScope === "group_topic" || groupSession?.groupSessionScope === "group_topic_sender";
1632
+ if (isGroup && groupSession) log(`feishu[${account.accountId}]: group session scope=${groupSession.groupSessionScope}, peer=${peerId}`);
1633
+ let route = core.channel.routing.resolveAgentRoute({
1634
+ cfg,
1635
+ channel: "feishu",
1636
+ accountId: account.accountId,
1637
+ peer: {
1638
+ kind: isGroup ? "group" : "direct",
1639
+ id: peerId
1640
+ },
1641
+ parentPeer
1642
+ });
1643
+ let effectiveCfg = cfg;
1644
+ if (!isGroup && route.matchedBy === "default") {
1645
+ const dynamicCfg = feishuCfg?.dynamicAgentCreation;
1646
+ if (dynamicCfg?.enabled) {
1647
+ const result = await maybeCreateDynamicAgent({
1648
+ cfg,
1649
+ runtime: getFeishuRuntime(),
1650
+ senderOpenId: ctx.senderOpenId,
1651
+ dynamicCfg,
1652
+ log: (msg) => log(msg)
1653
+ });
1654
+ if (result.created) {
1655
+ effectiveCfg = result.updatedCfg;
1656
+ route = core.channel.routing.resolveAgentRoute({
1657
+ cfg: result.updatedCfg,
1658
+ channel: "feishu",
1659
+ accountId: account.accountId,
1660
+ peer: {
1661
+ kind: "direct",
1662
+ id: ctx.senderOpenId
1663
+ }
1664
+ });
1665
+ log(`feishu[${account.accountId}]: dynamic agent created, new route: ${route.sessionKey}`);
1666
+ }
1667
+ }
1668
+ }
1669
+ const currentConversationId = peerId;
1670
+ const parentConversationId = isGroup ? parentPeer?.id ?? ctx.chatId : void 0;
1671
+ let configuredBinding = null;
1672
+ if (feishuAcpConversationSupported) {
1673
+ const configuredRoute = resolveConfiguredBindingRoute({
1674
+ cfg: effectiveCfg,
1675
+ route,
1676
+ conversation: {
1677
+ channel: "feishu",
1678
+ accountId: account.accountId,
1679
+ conversationId: currentConversationId,
1680
+ parentConversationId
1681
+ }
1682
+ });
1683
+ configuredBinding = configuredRoute.bindingResolution;
1684
+ route = configuredRoute.route;
1685
+ const threadBinding = getSessionBindingService().resolveByConversation({
1686
+ channel: "feishu",
1687
+ accountId: account.accountId,
1688
+ conversationId: currentConversationId,
1689
+ ...parentConversationId ? { parentConversationId } : {}
1690
+ });
1691
+ const boundSessionKey = threadBinding?.targetSessionKey?.trim();
1692
+ if (threadBinding && boundSessionKey) {
1693
+ route = {
1694
+ ...route,
1695
+ sessionKey: boundSessionKey,
1696
+ agentId: resolveAgentIdFromSessionKey(boundSessionKey) || route.agentId,
1697
+ lastRoutePolicy: deriveLastRoutePolicy({
1698
+ sessionKey: boundSessionKey,
1699
+ mainSessionKey: route.mainSessionKey
1700
+ }),
1701
+ matchedBy: "binding.channel"
1702
+ };
1703
+ configuredBinding = null;
1704
+ getSessionBindingService().touch(threadBinding.bindingId);
1705
+ log(`feishu[${account.accountId}]: routed via bound conversation ${currentConversationId} -> ${boundSessionKey}`);
1706
+ }
1707
+ }
1708
+ if (configuredBinding) {
1709
+ const ensured = await ensureConfiguredBindingRouteReady({
1710
+ cfg: effectiveCfg,
1711
+ bindingResolution: configuredBinding
1712
+ });
1713
+ if (!ensured.ok) {
1714
+ const replyTargetMessageId = isGroup && (groupSession?.groupSessionScope === "group_topic" || groupSession?.groupSessionScope === "group_topic_sender") ? ctx.rootId ?? ctx.messageId : ctx.messageId;
1715
+ await sendMessageFeishu({
1716
+ cfg: effectiveCfg,
1717
+ to: `chat:${ctx.chatId}`,
1718
+ text: `⚠️ Failed to initialize the configured ACP session for this Feishu conversation: ${ensured.error}`,
1719
+ replyToMessageId: replyTargetMessageId,
1720
+ replyInThread: isGroup ? groupSession?.replyInThread ?? false : false,
1721
+ accountId: account.accountId
1722
+ }).catch((err) => {
1723
+ log(`feishu[${account.accountId}]: failed to send ACP init error reply: ${String(err)}`);
1724
+ });
1725
+ return;
1726
+ }
1727
+ }
1728
+ const preview = ctx.content.replace(/\s+/g, " ").slice(0, 160);
1729
+ const inboundLabel = isGroup ? `Feishu[${account.accountId}] message in group ${ctx.chatId}` : `Feishu[${account.accountId}] DM from ${ctx.senderOpenId}`;
1730
+ log(`feishu[${account.accountId}]: ${inboundLabel}: ${preview}`);
1731
+ const mediaMaxBytes = (feishuCfg?.mediaMaxMb ?? 30) * 1024 * 1024;
1732
+ const mediaPayload = buildAgentMediaPayload(await resolveFeishuMediaList({
1733
+ cfg,
1734
+ messageId: ctx.messageId,
1735
+ messageType: event.message.message_type,
1736
+ content: event.message.content,
1737
+ maxBytes: mediaMaxBytes,
1738
+ log,
1739
+ accountId: account.accountId
1740
+ }));
1741
+ let quotedMessageInfo = null;
1742
+ let quotedContent;
1743
+ if (ctx.parentId) try {
1744
+ quotedMessageInfo = await getMessageFeishu({
1745
+ cfg,
1746
+ messageId: ctx.parentId,
1747
+ accountId: account.accountId
1748
+ });
1749
+ if (quotedMessageInfo) {
1750
+ quotedContent = quotedMessageInfo.content;
1751
+ log(`feishu[${account.accountId}]: fetched quoted message: ${quotedContent?.slice(0, 100)}`);
1752
+ }
1753
+ } catch (err) {
1754
+ log(`feishu[${account.accountId}]: failed to fetch quoted message: ${String(err)}`);
1755
+ }
1756
+ const isTopicSessionForThread = isGroup && (groupSession?.groupSessionScope === "group_topic" || groupSession?.groupSessionScope === "group_topic_sender");
1757
+ const envelopeOptions = core.channel.reply.resolveEnvelopeFormatOptions(cfg);
1758
+ const messageBody = buildFeishuAgentBody({
1759
+ ctx,
1760
+ quotedContent,
1761
+ permissionErrorForAgent,
1762
+ botOpenId
1763
+ });
1764
+ const envelopeFrom = isGroup ? `${ctx.chatId}:${ctx.senderOpenId}` : ctx.senderOpenId;
1765
+ if (permissionErrorForAgent) log(`feishu[${account.accountId}]: appending permission error notice to message body`);
1766
+ let combinedBody = core.channel.reply.formatAgentEnvelope({
1767
+ channel: "Feishu",
1768
+ from: envelopeFrom,
1769
+ timestamp: /* @__PURE__ */ new Date(),
1770
+ envelope: envelopeOptions,
1771
+ body: messageBody
1772
+ });
1773
+ const historyKey = groupHistoryKey;
1774
+ if (isGroup && historyKey && chatHistories) combinedBody = buildPendingHistoryContextFromMap({
1775
+ historyMap: chatHistories,
1776
+ historyKey,
1777
+ limit: historyLimit,
1778
+ currentMessage: combinedBody,
1779
+ formatEntry: (entry) => core.channel.reply.formatAgentEnvelope({
1780
+ channel: "Feishu",
1781
+ from: `${ctx.chatId}:${entry.sender}`,
1782
+ timestamp: entry.timestamp,
1783
+ body: entry.body,
1784
+ envelope: envelopeOptions
1785
+ })
1786
+ });
1787
+ const inboundHistory = isGroup && historyKey && historyLimit > 0 && chatHistories ? (chatHistories.get(historyKey) ?? []).map((entry) => ({
1788
+ sender: entry.sender,
1789
+ body: entry.body,
1790
+ timestamp: entry.timestamp
1791
+ })) : void 0;
1792
+ const threadContextBySessionKey = /* @__PURE__ */ new Map();
1793
+ let rootMessageInfo;
1794
+ let rootMessageFetched = false;
1795
+ const getRootMessageInfo = async () => {
1796
+ if (!ctx.rootId) return null;
1797
+ if (!rootMessageFetched) {
1798
+ rootMessageFetched = true;
1799
+ if (ctx.rootId === ctx.parentId && quotedMessageInfo) rootMessageInfo = quotedMessageInfo;
1800
+ else try {
1801
+ rootMessageInfo = await getMessageFeishu({
1802
+ cfg,
1803
+ messageId: ctx.rootId,
1804
+ accountId: account.accountId
1805
+ });
1806
+ } catch (err) {
1807
+ log(`feishu[${account.accountId}]: failed to fetch root message: ${String(err)}`);
1808
+ rootMessageInfo = null;
1809
+ }
1810
+ }
1811
+ return rootMessageInfo ?? null;
1812
+ };
1813
+ const resolveThreadContextForAgent = async (agentId, agentSessionKey) => {
1814
+ const cached = threadContextBySessionKey.get(agentSessionKey);
1815
+ if (cached) return cached;
1816
+ const threadContext = { threadLabel: (ctx.rootId || ctx.threadId) && isTopicSessionForThread ? `Feishu thread in ${ctx.chatId}` : void 0 };
1817
+ if (!(ctx.rootId || ctx.threadId) || !isTopicSessionForThread) {
1818
+ threadContextBySessionKey.set(agentSessionKey, threadContext);
1819
+ return threadContext;
1820
+ }
1821
+ const storePath = core.channel.session.resolveStorePath(cfg.session?.store, { agentId });
1822
+ if (core.channel.session.readSessionUpdatedAt({
1823
+ storePath,
1824
+ sessionKey: agentSessionKey
1825
+ })) {
1826
+ log(`feishu[${account.accountId}]: skipping thread bootstrap for existing session ${agentSessionKey}`);
1827
+ threadContextBySessionKey.set(agentSessionKey, threadContext);
1828
+ return threadContext;
1829
+ }
1830
+ const rootMsg = await getRootMessageInfo();
1831
+ let feishuThreadId = ctx.threadId ?? rootMsg?.threadId;
1832
+ if (feishuThreadId) log(`feishu[${account.accountId}]: resolved thread ID: ${feishuThreadId}`);
1833
+ if (!feishuThreadId) {
1834
+ log(`feishu[${account.accountId}]: no threadId found for root message ${ctx.rootId ?? "none"}, skipping thread history`);
1835
+ threadContextBySessionKey.set(agentSessionKey, threadContext);
1836
+ return threadContext;
1837
+ }
1838
+ try {
1839
+ const threadMessages = await listFeishuThreadMessages({
1840
+ cfg,
1841
+ threadId: feishuThreadId,
1842
+ currentMessageId: ctx.messageId,
1843
+ rootMessageId: ctx.rootId,
1844
+ limit: 20,
1845
+ accountId: account.accountId
1846
+ });
1847
+ const senderScoped = groupSession?.groupSessionScope === "group_topic_sender";
1848
+ const senderIds = new Set([ctx.senderOpenId, senderUserId].map((id) => id?.trim()).filter((id) => id !== void 0 && id.length > 0));
1849
+ const relevantMessages = (senderScoped ? threadMessages.filter((msg) => msg.senderType === "app" || msg.senderId !== void 0 && senderIds.has(msg.senderId.trim())) : threadMessages) ?? [];
1850
+ const threadStarterBody = rootMsg?.content ?? relevantMessages[0]?.content;
1851
+ const historyMessages = Boolean(rootMsg?.content || ctx.rootId) ? relevantMessages : relevantMessages.slice(1);
1852
+ const historyParts = historyMessages.map((msg) => {
1853
+ const role = msg.senderType === "app" ? "assistant" : "user";
1854
+ return core.channel.reply.formatAgentEnvelope({
1855
+ channel: "Feishu",
1856
+ from: `${msg.senderId ?? "Unknown"} (${role})`,
1857
+ timestamp: msg.createTime,
1858
+ body: msg.content,
1859
+ envelope: envelopeOptions
1860
+ });
1861
+ });
1862
+ threadContext.threadStarterBody = threadStarterBody;
1863
+ threadContext.threadHistoryBody = historyParts.length > 0 ? historyParts.join("\n\n") : void 0;
1864
+ log(`feishu[${account.accountId}]: populated thread bootstrap with starter=${threadStarterBody ? "yes" : "no"} history=${historyMessages.length}`);
1865
+ } catch (err) {
1866
+ log(`feishu[${account.accountId}]: failed to fetch thread history: ${String(err)}`);
1867
+ }
1868
+ threadContextBySessionKey.set(agentSessionKey, threadContext);
1869
+ return threadContext;
1870
+ };
1871
+ const buildCtxPayloadForAgent = async (agentId, agentSessionKey, agentAccountId, wasMentioned) => {
1872
+ const threadContext = await resolveThreadContextForAgent(agentId, agentSessionKey);
1873
+ return core.channel.reply.finalizeInboundContext({
1874
+ Body: combinedBody,
1875
+ BodyForAgent: messageBody,
1876
+ InboundHistory: inboundHistory,
1877
+ ReplyToId: ctx.parentId,
1878
+ RootMessageId: ctx.rootId,
1879
+ RawBody: ctx.content,
1880
+ CommandBody: ctx.content,
1881
+ From: feishuFrom,
1882
+ To: feishuTo,
1883
+ SessionKey: agentSessionKey,
1884
+ AccountId: agentAccountId,
1885
+ ChatType: isGroup ? "group" : "direct",
1886
+ GroupSubject: isGroup ? ctx.chatId : void 0,
1887
+ SenderName: ctx.senderName ?? ctx.senderOpenId,
1888
+ SenderId: ctx.senderOpenId,
1889
+ Provider: "feishu",
1890
+ Surface: "feishu",
1891
+ MessageSid: ctx.messageId,
1892
+ ReplyToBody: quotedContent ?? void 0,
1893
+ ThreadStarterBody: threadContext.threadStarterBody,
1894
+ ThreadHistoryBody: threadContext.threadHistoryBody,
1895
+ ThreadLabel: threadContext.threadLabel,
1896
+ MessageThreadId: ctx.rootId && isTopicSessionForThread ? ctx.rootId : void 0,
1897
+ Timestamp: Date.now(),
1898
+ WasMentioned: wasMentioned,
1899
+ CommandAuthorized: commandAuthorized,
1900
+ OriginatingChannel: "feishu",
1901
+ OriginatingTo: feishuTo,
1902
+ GroupSystemPrompt: isGroup ? groupConfig?.systemPrompt?.trim() || void 0 : void 0,
1903
+ ...mediaPayload
1904
+ });
1905
+ };
1906
+ const messageCreateTimeMs = event.message.create_time ? parseInt(event.message.create_time, 10) : void 0;
1907
+ const isTopicSession = isGroup && (groupSession?.groupSessionScope === "group_topic" || groupSession?.groupSessionScope === "group_topic_sender");
1908
+ const configReplyInThread = isGroup && (groupConfig?.replyInThread ?? feishuCfg?.replyInThread ?? "disabled") === "enabled";
1909
+ const replyTargetMessageId = isTopicSession || configReplyInThread ? ctx.rootId ?? ctx.messageId : ctx.messageId;
1910
+ const threadReply = isGroup ? groupSession?.threadReply ?? false : false;
1911
+ if (broadcastAgents) {
1912
+ if (!await tryRecordMessagePersistent(ctx.messageId, "broadcast", log)) {
1913
+ log(`feishu[${account.accountId}]: broadcast already claimed by another account for message ${ctx.messageId}; skipping`);
1914
+ return;
1915
+ }
1916
+ const strategy = cfg.broadcast?.strategy || "parallel";
1917
+ const activeAgentId = ctx.mentionedBot || !requireMention ? normalizeAgentId(route.agentId) : null;
1918
+ const agentIds = (cfg.agents?.list ?? []).map((a) => normalizeAgentId(a.id));
1919
+ const hasKnownAgents = agentIds.length > 0;
1920
+ log(`feishu[${account.accountId}]: broadcasting to ${broadcastAgents.length} agents (strategy=${strategy}, active=${activeAgentId ?? "none"})`);
1921
+ const dispatchForAgent = async (agentId) => {
1922
+ if (hasKnownAgents && !agentIds.includes(normalizeAgentId(agentId))) {
1923
+ log(`feishu[${account.accountId}]: broadcast agent ${agentId} not found in agents.list; skipping`);
1924
+ return;
1925
+ }
1926
+ const agentSessionKey = buildBroadcastSessionKey(route.sessionKey, route.agentId, agentId);
1927
+ const agentCtx = await buildCtxPayloadForAgent(agentId, agentSessionKey, route.accountId, ctx.mentionedBot && agentId === activeAgentId);
1928
+ if (agentId === activeAgentId) {
1929
+ const identity = resolveAgentOutboundIdentity(cfg, agentId);
1930
+ const { dispatcher, replyOptions, markDispatchIdle } = createFeishuReplyDispatcher({
1931
+ cfg,
1932
+ agentId,
1933
+ runtime,
1934
+ chatId: ctx.chatId,
1935
+ replyToMessageId: replyTargetMessageId,
1936
+ skipReplyToInMessages: !isGroup,
1937
+ replyInThread,
1938
+ rootId: ctx.rootId,
1939
+ threadReply,
1940
+ mentionTargets: ctx.mentionTargets,
1941
+ accountId: account.accountId,
1942
+ identity,
1943
+ messageCreateTimeMs
1944
+ });
1945
+ log(`feishu[${account.accountId}]: broadcast active dispatch agent=${agentId} (session=${agentSessionKey})`);
1946
+ await core.channel.reply.withReplyDispatcher({
1947
+ dispatcher,
1948
+ onSettled: () => markDispatchIdle(),
1949
+ run: () => core.channel.reply.dispatchReplyFromConfig({
1950
+ ctx: agentCtx,
1951
+ cfg,
1952
+ dispatcher,
1953
+ replyOptions
1954
+ })
1955
+ });
1956
+ } else {
1957
+ delete agentCtx.CommandAuthorized;
1958
+ const noopDispatcher = {
1959
+ sendToolResult: () => false,
1960
+ sendBlockReply: () => false,
1961
+ sendFinalReply: () => false,
1962
+ waitForIdle: async () => {},
1963
+ getQueuedCounts: () => ({
1964
+ tool: 0,
1965
+ block: 0,
1966
+ final: 0
1967
+ }),
1968
+ markComplete: () => {}
1969
+ };
1970
+ log(`feishu[${account.accountId}]: broadcast observer dispatch agent=${agentId} (session=${agentSessionKey})`);
1971
+ await core.channel.reply.withReplyDispatcher({
1972
+ dispatcher: noopDispatcher,
1973
+ run: () => core.channel.reply.dispatchReplyFromConfig({
1974
+ ctx: agentCtx,
1975
+ cfg,
1976
+ dispatcher: noopDispatcher
1977
+ })
1978
+ });
1979
+ }
1980
+ };
1981
+ if (strategy === "sequential") for (const agentId of broadcastAgents) try {
1982
+ await dispatchForAgent(agentId);
1983
+ } catch (err) {
1984
+ log(`feishu[${account.accountId}]: broadcast dispatch failed for agent=${agentId}: ${String(err)}`);
1985
+ }
1986
+ else {
1987
+ const results = await Promise.allSettled(broadcastAgents.map(dispatchForAgent));
1988
+ for (let i = 0; i < results.length; i++) if (results[i].status === "rejected") log(`feishu[${account.accountId}]: broadcast dispatch failed for agent=${broadcastAgents[i]}: ${String(results[i].reason)}`);
1989
+ }
1990
+ if (isGroup && historyKey && chatHistories) clearHistoryEntriesIfEnabled({
1991
+ historyMap: chatHistories,
1992
+ historyKey,
1993
+ limit: historyLimit
1994
+ });
1995
+ log(`feishu[${account.accountId}]: broadcast dispatch complete for ${broadcastAgents.length} agents`);
1996
+ } else {
1997
+ const ctxPayload = await buildCtxPayloadForAgent(route.agentId, route.sessionKey, route.accountId, ctx.mentionedBot);
1998
+ const identity = resolveAgentOutboundIdentity(cfg, route.agentId);
1999
+ const { dispatcher, replyOptions, markDispatchIdle } = createFeishuReplyDispatcher({
2000
+ cfg,
2001
+ agentId: route.agentId,
2002
+ runtime,
2003
+ chatId: ctx.chatId,
2004
+ replyToMessageId: replyTargetMessageId,
2005
+ skipReplyToInMessages: !isGroup,
2006
+ replyInThread,
2007
+ rootId: ctx.rootId,
2008
+ threadReply,
2009
+ mentionTargets: ctx.mentionTargets,
2010
+ accountId: account.accountId,
2011
+ identity,
2012
+ messageCreateTimeMs
2013
+ });
2014
+ log(`feishu[${account.accountId}]: dispatching to agent (session=${route.sessionKey})`);
2015
+ const { queuedFinal, counts } = await core.channel.reply.withReplyDispatcher({
2016
+ dispatcher,
2017
+ onSettled: () => {
2018
+ markDispatchIdle();
2019
+ },
2020
+ run: () => core.channel.reply.dispatchReplyFromConfig({
2021
+ ctx: ctxPayload,
2022
+ cfg,
2023
+ dispatcher,
2024
+ replyOptions
2025
+ })
2026
+ });
2027
+ if (isGroup && historyKey && chatHistories) clearHistoryEntriesIfEnabled({
2028
+ historyMap: chatHistories,
2029
+ historyKey,
2030
+ limit: historyLimit
2031
+ });
2032
+ log(`feishu[${account.accountId}]: dispatch complete (queuedFinal=${queuedFinal}, replies=${counts.final})`);
2033
+ }
2034
+ } catch (err) {
2035
+ error(`feishu[${account.accountId}]: failed to dispatch message: ${String(err)}`);
2036
+ }
2037
+ }
2038
+ //#endregion
2039
+ //#region extensions/feishu/src/card-interaction.ts
2040
+ const FEISHU_CARD_INTERACTION_VERSION = "ocf1";
2041
+ function isRecord(value) {
2042
+ return typeof value === "object" && value !== null;
2043
+ }
2044
+ function isInteractionKind(value) {
2045
+ return value === "button" || value === "quick" || value === "meta";
2046
+ }
2047
+ function isMetadataValue(value) {
2048
+ return value === null || value === void 0 || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
2049
+ }
2050
+ function createFeishuCardInteractionEnvelope(envelope) {
2051
+ return {
2052
+ oc: FEISHU_CARD_INTERACTION_VERSION,
2053
+ ...envelope
2054
+ };
2055
+ }
2056
+ function buildFeishuCardActionTextFallback(event) {
2057
+ const actionValue = event.action.value;
2058
+ if (isRecord(actionValue)) {
2059
+ if (typeof actionValue.text === "string") return actionValue.text;
2060
+ if (typeof actionValue.command === "string") return actionValue.command;
2061
+ return JSON.stringify(actionValue);
2062
+ }
2063
+ return String(actionValue);
2064
+ }
2065
+ function decodeFeishuCardAction(params) {
2066
+ const { event, now = Date.now() } = params;
2067
+ const actionValue = event.action.value;
2068
+ if (!isRecord(actionValue) || actionValue.oc !== "ocf1") return {
2069
+ kind: "legacy",
2070
+ text: buildFeishuCardActionTextFallback(event)
2071
+ };
2072
+ if (!isInteractionKind(actionValue.k) || typeof actionValue.a !== "string" || !actionValue.a) return {
2073
+ kind: "invalid",
2074
+ reason: "malformed"
2075
+ };
2076
+ if (actionValue.q !== void 0 && typeof actionValue.q !== "string") return {
2077
+ kind: "invalid",
2078
+ reason: "malformed"
2079
+ };
2080
+ if (actionValue.m !== void 0) {
2081
+ if (!isRecord(actionValue.m)) return {
2082
+ kind: "invalid",
2083
+ reason: "malformed"
2084
+ };
2085
+ for (const value of Object.values(actionValue.m)) if (!isMetadataValue(value)) return {
2086
+ kind: "invalid",
2087
+ reason: "malformed"
2088
+ };
2089
+ }
2090
+ if (actionValue.c !== void 0) {
2091
+ if (!isRecord(actionValue.c)) return {
2092
+ kind: "invalid",
2093
+ reason: "malformed"
2094
+ };
2095
+ if (actionValue.c.u !== void 0 && typeof actionValue.c.u !== "string") return {
2096
+ kind: "invalid",
2097
+ reason: "malformed"
2098
+ };
2099
+ if (actionValue.c.h !== void 0 && typeof actionValue.c.h !== "string") return {
2100
+ kind: "invalid",
2101
+ reason: "malformed"
2102
+ };
2103
+ if (actionValue.c.s !== void 0 && typeof actionValue.c.s !== "string") return {
2104
+ kind: "invalid",
2105
+ reason: "malformed"
2106
+ };
2107
+ if (actionValue.c.e !== void 0 && !Number.isFinite(actionValue.c.e)) return {
2108
+ kind: "invalid",
2109
+ reason: "malformed"
2110
+ };
2111
+ if (actionValue.c.t !== void 0 && actionValue.c.t !== "p2p" && actionValue.c.t !== "group") return {
2112
+ kind: "invalid",
2113
+ reason: "malformed"
2114
+ };
2115
+ if (typeof actionValue.c.e === "number" && actionValue.c.e < now) return {
2116
+ kind: "invalid",
2117
+ reason: "stale"
2118
+ };
2119
+ const expectedUser = actionValue.c.u?.trim();
2120
+ if (expectedUser && expectedUser !== (event.operator.open_id ?? "").trim()) return {
2121
+ kind: "invalid",
2122
+ reason: "wrong_user"
2123
+ };
2124
+ const expectedChat = actionValue.c.h?.trim();
2125
+ if (expectedChat && expectedChat !== (event.context.chat_id ?? "").trim()) return {
2126
+ kind: "invalid",
2127
+ reason: "wrong_conversation"
2128
+ };
2129
+ }
2130
+ return {
2131
+ kind: "structured",
2132
+ envelope: actionValue
2133
+ };
2134
+ }
2135
+ //#endregion
2136
+ //#region extensions/feishu/src/card-ux-shared.ts
2137
+ function buildFeishuCardButton(params) {
2138
+ return {
2139
+ tag: "button",
2140
+ text: {
2141
+ tag: "plain_text",
2142
+ content: params.label
2143
+ },
2144
+ type: params.type ?? "default",
2145
+ value: params.value
2146
+ };
2147
+ }
2148
+ function buildFeishuCardInteractionContext(params) {
2149
+ return {
2150
+ u: params.operatorOpenId,
2151
+ ...params.chatId ? { h: params.chatId } : {},
2152
+ ...params.sessionKey ? { s: params.sessionKey } : {},
2153
+ e: params.expiresAt,
2154
+ ...params.chatType ? { t: params.chatType } : {}
2155
+ };
2156
+ }
2157
+ //#endregion
2158
+ //#region extensions/feishu/src/card-ux-approval.ts
2159
+ const FEISHU_APPROVAL_REQUEST_ACTION = "feishu.quick_actions.request_approval";
2160
+ const FEISHU_APPROVAL_CONFIRM_ACTION = "feishu.approval.confirm";
2161
+ const FEISHU_APPROVAL_CANCEL_ACTION = "feishu.approval.cancel";
2162
+ function createApprovalCard(params) {
2163
+ const context = buildFeishuCardInteractionContext(params);
2164
+ return {
2165
+ schema: "2.0",
2166
+ config: { wide_screen_mode: true },
2167
+ header: {
2168
+ title: {
2169
+ tag: "plain_text",
2170
+ content: "Confirm action"
2171
+ },
2172
+ template: "orange"
2173
+ },
2174
+ body: { elements: [{
2175
+ tag: "markdown",
2176
+ content: params.prompt
2177
+ }, {
2178
+ tag: "action",
2179
+ actions: [buildFeishuCardButton({
2180
+ label: params.confirmLabel ?? "Confirm",
2181
+ type: "primary",
2182
+ value: createFeishuCardInteractionEnvelope({
2183
+ k: "quick",
2184
+ a: FEISHU_APPROVAL_CONFIRM_ACTION,
2185
+ q: params.command,
2186
+ c: context
2187
+ })
2188
+ }), buildFeishuCardButton({
2189
+ label: params.cancelLabel ?? "Cancel",
2190
+ value: createFeishuCardInteractionEnvelope({
2191
+ k: "button",
2192
+ a: FEISHU_APPROVAL_CANCEL_ACTION,
2193
+ c: context
2194
+ })
2195
+ })]
2196
+ }] }
2197
+ };
2198
+ }
2199
+ //#endregion
2200
+ //#region extensions/feishu/src/card-action.ts
2201
+ const FEISHU_APPROVAL_CARD_TTL_MS = 5 * 6e4;
2202
+ const FEISHU_CARD_ACTION_TOKEN_TTL_MS = 15 * 6e4;
2203
+ const processedCardActionTokens = /* @__PURE__ */ new Map();
2204
+ function pruneProcessedCardActionTokens(now) {
2205
+ for (const [key, entry] of processedCardActionTokens.entries()) if (entry.expiresAt <= now) processedCardActionTokens.delete(key);
2206
+ }
2207
+ function beginFeishuCardActionToken(params) {
2208
+ const now = params.now ?? Date.now();
2209
+ pruneProcessedCardActionTokens(now);
2210
+ const normalizedToken = params.token.trim();
2211
+ if (!normalizedToken) return true;
2212
+ const key = `${params.accountId}:${normalizedToken}`;
2213
+ const existing = processedCardActionTokens.get(key);
2214
+ if (existing && existing.expiresAt > now) return false;
2215
+ processedCardActionTokens.set(key, {
2216
+ status: "inflight",
2217
+ expiresAt: now + FEISHU_CARD_ACTION_TOKEN_TTL_MS
2218
+ });
2219
+ return true;
2220
+ }
2221
+ function completeFeishuCardActionToken(params) {
2222
+ const now = params.now ?? Date.now();
2223
+ const normalizedToken = params.token.trim();
2224
+ if (!normalizedToken) return;
2225
+ processedCardActionTokens.set(`${params.accountId}:${normalizedToken}`, {
2226
+ status: "completed",
2227
+ expiresAt: now + FEISHU_CARD_ACTION_TOKEN_TTL_MS
2228
+ });
2229
+ }
2230
+ function releaseFeishuCardActionToken(params) {
2231
+ const normalizedToken = params.token.trim();
2232
+ if (!normalizedToken) return;
2233
+ processedCardActionTokens.delete(`${params.accountId}:${normalizedToken}`);
2234
+ }
2235
+ function buildSyntheticMessageEvent(event, content, chatType) {
2236
+ return {
2237
+ sender: { sender_id: {
2238
+ open_id: event.operator.open_id,
2239
+ user_id: event.operator.user_id,
2240
+ union_id: event.operator.union_id
2241
+ } },
2242
+ message: {
2243
+ message_id: `card-action-${event.token}`,
2244
+ chat_id: event.context.chat_id || event.operator.open_id,
2245
+ chat_type: chatType ?? (event.context.chat_id ? "group" : "p2p"),
2246
+ message_type: "text",
2247
+ content: JSON.stringify({ text: content })
2248
+ }
2249
+ };
2250
+ }
2251
+ function resolveCallbackTarget(event) {
2252
+ const chatId = event.context.chat_id?.trim();
2253
+ if (chatId) return `chat:${chatId}`;
2254
+ return `user:${event.operator.open_id}`;
2255
+ }
2256
+ async function dispatchSyntheticCommand(params) {
2257
+ await handleFeishuMessage({
2258
+ cfg: params.cfg,
2259
+ event: buildSyntheticMessageEvent(params.event, params.command, params.chatType),
2260
+ botOpenId: params.botOpenId,
2261
+ runtime: params.runtime,
2262
+ accountId: params.accountId
2263
+ });
2264
+ }
2265
+ async function sendInvalidInteractionNotice(params) {
2266
+ const reasonText = params.reason === "stale" ? "This card action has expired. Open a fresh launcher card and try again." : params.reason === "wrong_user" ? "This card action belongs to a different user." : params.reason === "wrong_conversation" ? "This card action belongs to a different conversation." : "This card action payload is invalid.";
2267
+ await sendMessageFeishu({
2268
+ cfg: params.cfg,
2269
+ to: resolveCallbackTarget(params.event),
2270
+ text: `⚠️ ${reasonText}`,
2271
+ accountId: params.accountId
2272
+ });
2273
+ }
2274
+ async function handleFeishuCardAction(params) {
2275
+ const { cfg, event, runtime, accountId } = params;
2276
+ const account = resolveFeishuAccount({
2277
+ cfg,
2278
+ accountId
2279
+ });
2280
+ const log = runtime?.log ?? console.log;
2281
+ const decoded = decodeFeishuCardAction({ event });
2282
+ if (!beginFeishuCardActionToken({
2283
+ token: event.token,
2284
+ accountId: account.accountId
2285
+ })) {
2286
+ log(`feishu[${account.accountId}]: skipping duplicate card action token ${event.token}`);
2287
+ return;
2288
+ }
2289
+ try {
2290
+ if (decoded.kind === "invalid") {
2291
+ log(`feishu[${account.accountId}]: rejected card action from ${event.operator.open_id}: ${decoded.reason}`);
2292
+ await sendInvalidInteractionNotice({
2293
+ cfg,
2294
+ event,
2295
+ reason: decoded.reason,
2296
+ accountId
2297
+ });
2298
+ completeFeishuCardActionToken({
2299
+ token: event.token,
2300
+ accountId: account.accountId
2301
+ });
2302
+ return;
2303
+ }
2304
+ if (decoded.kind === "structured") {
2305
+ const { envelope } = decoded;
2306
+ log(`feishu[${account.accountId}]: handling structured card action ${envelope.a} from ${event.operator.open_id}`);
2307
+ if (envelope.a === "feishu.quick_actions.request_approval") {
2308
+ const command = typeof envelope.m?.command === "string" ? envelope.m.command.trim() : "";
2309
+ if (!command) {
2310
+ await sendInvalidInteractionNotice({
2311
+ cfg,
2312
+ event,
2313
+ reason: "malformed",
2314
+ accountId
2315
+ });
2316
+ completeFeishuCardActionToken({
2317
+ token: event.token,
2318
+ accountId: account.accountId
2319
+ });
2320
+ return;
2321
+ }
2322
+ const prompt = typeof envelope.m?.prompt === "string" && envelope.m.prompt.trim() ? envelope.m.prompt : `Run \`${command}\` in this Feishu conversation?`;
2323
+ await sendCardFeishu({
2324
+ cfg,
2325
+ to: resolveCallbackTarget(event),
2326
+ card: createApprovalCard({
2327
+ operatorOpenId: event.operator.open_id,
2328
+ chatId: event.context.chat_id || void 0,
2329
+ command,
2330
+ prompt,
2331
+ sessionKey: envelope.c?.s,
2332
+ expiresAt: Date.now() + FEISHU_APPROVAL_CARD_TTL_MS,
2333
+ chatType: envelope.c?.t ?? (event.context.chat_id ? "group" : "p2p"),
2334
+ confirmLabel: command === "/reset" ? "Reset" : "Confirm"
2335
+ }),
2336
+ accountId
2337
+ });
2338
+ completeFeishuCardActionToken({
2339
+ token: event.token,
2340
+ accountId: account.accountId
2341
+ });
2342
+ return;
2343
+ }
2344
+ if (envelope.a === "feishu.approval.cancel") {
2345
+ await sendMessageFeishu({
2346
+ cfg,
2347
+ to: resolveCallbackTarget(event),
2348
+ text: "Cancelled.",
2349
+ accountId
2350
+ });
2351
+ completeFeishuCardActionToken({
2352
+ token: event.token,
2353
+ accountId: account.accountId
2354
+ });
2355
+ return;
2356
+ }
2357
+ if (envelope.a === "feishu.approval.confirm" || envelope.k === "quick") {
2358
+ const command = envelope.q?.trim();
2359
+ if (!command) {
2360
+ await sendInvalidInteractionNotice({
2361
+ cfg,
2362
+ event,
2363
+ reason: "malformed",
2364
+ accountId
2365
+ });
2366
+ completeFeishuCardActionToken({
2367
+ token: event.token,
2368
+ accountId: account.accountId
2369
+ });
2370
+ return;
2371
+ }
2372
+ await dispatchSyntheticCommand({
2373
+ cfg,
2374
+ event,
2375
+ command,
2376
+ botOpenId: params.botOpenId,
2377
+ runtime,
2378
+ accountId,
2379
+ chatType: envelope.c?.t ?? (event.context.chat_id ? "group" : "p2p")
2380
+ });
2381
+ completeFeishuCardActionToken({
2382
+ token: event.token,
2383
+ accountId: account.accountId
2384
+ });
2385
+ return;
2386
+ }
2387
+ await sendInvalidInteractionNotice({
2388
+ cfg,
2389
+ event,
2390
+ reason: "malformed",
2391
+ accountId
2392
+ });
2393
+ completeFeishuCardActionToken({
2394
+ token: event.token,
2395
+ accountId: account.accountId
2396
+ });
2397
+ return;
2398
+ }
2399
+ const content = buildFeishuCardActionTextFallback(event);
2400
+ log(`feishu[${account.accountId}]: handling card action from ${event.operator.open_id}: ${content}`);
2401
+ await dispatchSyntheticCommand({
2402
+ cfg,
2403
+ event,
2404
+ command: content,
2405
+ botOpenId: params.botOpenId,
2406
+ runtime,
2407
+ accountId
2408
+ });
2409
+ completeFeishuCardActionToken({
2410
+ token: event.token,
2411
+ accountId: account.accountId
2412
+ });
2413
+ } catch (err) {
2414
+ releaseFeishuCardActionToken({
2415
+ token: event.token,
2416
+ accountId: account.accountId
2417
+ });
2418
+ throw err;
2419
+ }
2420
+ }
2421
+ //#endregion
2422
+ //#region extensions/feishu/src/card-ux-launcher.ts
2423
+ const FEISHU_QUICK_ACTION_CARD_TTL_MS = 10 * 6e4;
2424
+ const QUICK_ACTION_MENU_KEYS = new Set([
2425
+ "quick-actions",
2426
+ "quick_actions",
2427
+ "launcher"
2428
+ ]);
2429
+ function isFeishuQuickActionMenuEventKey(eventKey) {
2430
+ return QUICK_ACTION_MENU_KEYS.has(eventKey.trim().toLowerCase());
2431
+ }
2432
+ function createQuickActionLauncherCard(params) {
2433
+ const context = buildFeishuCardInteractionContext(params);
2434
+ return {
2435
+ schema: "2.0",
2436
+ config: { wide_screen_mode: true },
2437
+ header: {
2438
+ title: {
2439
+ tag: "plain_text",
2440
+ content: "Quick actions"
2441
+ },
2442
+ template: "indigo"
2443
+ },
2444
+ body: { elements: [{
2445
+ tag: "markdown",
2446
+ content: "Run common actions without typing raw commands."
2447
+ }, {
2448
+ tag: "action",
2449
+ actions: [
2450
+ buildFeishuCardButton({
2451
+ label: "Help",
2452
+ value: createFeishuCardInteractionEnvelope({
2453
+ k: "quick",
2454
+ a: "feishu.quick_actions.help",
2455
+ q: "/help",
2456
+ c: context
2457
+ })
2458
+ }),
2459
+ buildFeishuCardButton({
2460
+ label: "New session",
2461
+ type: "primary",
2462
+ value: createFeishuCardInteractionEnvelope({
2463
+ k: "meta",
2464
+ a: FEISHU_APPROVAL_REQUEST_ACTION,
2465
+ m: {
2466
+ command: "/new",
2467
+ prompt: "Start a fresh session? This will reset the current chat context."
2468
+ },
2469
+ c: context
2470
+ })
2471
+ }),
2472
+ buildFeishuCardButton({
2473
+ label: "Reset",
2474
+ type: "danger",
2475
+ value: createFeishuCardInteractionEnvelope({
2476
+ k: "meta",
2477
+ a: FEISHU_APPROVAL_REQUEST_ACTION,
2478
+ m: {
2479
+ command: "/reset",
2480
+ prompt: "Reset this session now? Any active conversation state will be cleared."
2481
+ },
2482
+ c: context
2483
+ })
2484
+ })
2485
+ ]
2486
+ }] }
2487
+ };
2488
+ }
2489
+ async function maybeHandleFeishuQuickActionMenu(params) {
2490
+ if (!isFeishuQuickActionMenuEventKey(params.eventKey)) return false;
2491
+ const expiresAt = (params.now ?? Date.now()) + FEISHU_QUICK_ACTION_CARD_TTL_MS;
2492
+ try {
2493
+ await sendCardFeishu({
2494
+ cfg: params.cfg,
2495
+ to: `user:${params.operatorOpenId}`,
2496
+ card: createQuickActionLauncherCard({
2497
+ operatorOpenId: params.operatorOpenId,
2498
+ expiresAt,
2499
+ chatType: "p2p"
2500
+ }),
2501
+ accountId: params.accountId
2502
+ });
2503
+ } catch (err) {
2504
+ params.runtime?.log?.(`feishu[${params.accountId ?? "default"}]: failed to open quick-action launcher for ${params.operatorOpenId}: ${String(err)}`);
2505
+ return false;
2506
+ }
2507
+ params.runtime?.log?.(`feishu[${params.accountId ?? "default"}]: opened quick-action launcher for ${params.operatorOpenId}`);
2508
+ return true;
2509
+ }
2510
+ function isTimeoutErrorMessage(message) {
2511
+ return message?.toLowerCase().includes("timeout") || message?.toLowerCase().includes("timed out") ? true : false;
2512
+ }
2513
+ function isAbortErrorMessage(message) {
2514
+ return message?.toLowerCase().includes("aborted") ?? false;
2515
+ }
2516
+ async function fetchBotIdentityForMonitor(account, options = {}) {
2517
+ if (options.abortSignal?.aborted) return {};
2518
+ const timeoutMs = options.timeoutMs ?? 1e4;
2519
+ const result = await probeFeishu(account, {
2520
+ timeoutMs,
2521
+ abortSignal: options.abortSignal
2522
+ });
2523
+ if (result.ok) return {
2524
+ botOpenId: result.botOpenId,
2525
+ botName: result.botName
2526
+ };
2527
+ if (options.abortSignal?.aborted || isAbortErrorMessage(result.error)) return {};
2528
+ if (isTimeoutErrorMessage(result.error)) (options.runtime?.error ?? console.error)(`feishu[${account.accountId}]: bot info probe timed out after ${timeoutMs}ms; continuing startup`);
2529
+ return {};
2530
+ }
2531
+ //#endregion
2532
+ //#region extensions/feishu/src/monitor.state.ts
2533
+ const wsClients = /* @__PURE__ */ new Map();
2534
+ const httpServers = /* @__PURE__ */ new Map();
2535
+ const botOpenIds = /* @__PURE__ */ new Map();
2536
+ const botNames = /* @__PURE__ */ new Map();
2537
+ const FEISHU_WEBHOOK_MAX_BODY_BYTES = 1024 * 1024;
2538
+ const FEISHU_WEBHOOK_BODY_TIMEOUT_MS = 3e4;
2539
+ const FEISHU_WEBHOOK_RATE_LIMIT_FALLBACK_DEFAULTS = {
2540
+ windowMs: 6e4,
2541
+ maxRequests: 120,
2542
+ maxTrackedKeys: 4096
2543
+ };
2544
+ const FEISHU_WEBHOOK_ANOMALY_FALLBACK_DEFAULTS = {
2545
+ maxTrackedKeys: 4096,
2546
+ ttlMs: 360 * 6e4,
2547
+ logEvery: 25
2548
+ };
2549
+ function coercePositiveInt(value, fallback) {
2550
+ if (typeof value !== "number" || !Number.isFinite(value)) return fallback;
2551
+ const normalized = Math.floor(value);
2552
+ return normalized > 0 ? normalized : fallback;
2553
+ }
2554
+ function resolveFeishuWebhookRateLimitDefaultsForTest(defaults) {
2555
+ const resolved = defaults;
2556
+ return {
2557
+ windowMs: coercePositiveInt(resolved?.windowMs, FEISHU_WEBHOOK_RATE_LIMIT_FALLBACK_DEFAULTS.windowMs),
2558
+ maxRequests: coercePositiveInt(resolved?.maxRequests, FEISHU_WEBHOOK_RATE_LIMIT_FALLBACK_DEFAULTS.maxRequests),
2559
+ maxTrackedKeys: coercePositiveInt(resolved?.maxTrackedKeys, FEISHU_WEBHOOK_RATE_LIMIT_FALLBACK_DEFAULTS.maxTrackedKeys)
2560
+ };
2561
+ }
2562
+ function resolveFeishuWebhookAnomalyDefaultsForTest(defaults) {
2563
+ const resolved = defaults;
2564
+ return {
2565
+ maxTrackedKeys: coercePositiveInt(resolved?.maxTrackedKeys, FEISHU_WEBHOOK_ANOMALY_FALLBACK_DEFAULTS.maxTrackedKeys),
2566
+ ttlMs: coercePositiveInt(resolved?.ttlMs, FEISHU_WEBHOOK_ANOMALY_FALLBACK_DEFAULTS.ttlMs),
2567
+ logEvery: coercePositiveInt(resolved?.logEvery, FEISHU_WEBHOOK_ANOMALY_FALLBACK_DEFAULTS.logEvery)
2568
+ };
2569
+ }
2570
+ const feishuWebhookRateLimitDefaults = resolveFeishuWebhookRateLimitDefaultsForTest(WEBHOOK_RATE_LIMIT_DEFAULTS);
2571
+ const feishuWebhookAnomalyDefaults = resolveFeishuWebhookAnomalyDefaultsForTest(WEBHOOK_ANOMALY_COUNTER_DEFAULTS);
2572
+ const feishuWebhookRateLimiter = createFixedWindowRateLimiter({
2573
+ windowMs: feishuWebhookRateLimitDefaults.windowMs,
2574
+ maxRequests: feishuWebhookRateLimitDefaults.maxRequests,
2575
+ maxTrackedKeys: feishuWebhookRateLimitDefaults.maxTrackedKeys
2576
+ });
2577
+ const feishuWebhookAnomalyTracker = createWebhookAnomalyTracker({
2578
+ maxTrackedKeys: feishuWebhookAnomalyDefaults.maxTrackedKeys,
2579
+ ttlMs: feishuWebhookAnomalyDefaults.ttlMs,
2580
+ logEvery: feishuWebhookAnomalyDefaults.logEvery
2581
+ });
2582
+ function recordWebhookStatus(runtime, accountId, path, statusCode) {
2583
+ feishuWebhookAnomalyTracker.record({
2584
+ key: `${accountId}:${path}:${statusCode}`,
2585
+ statusCode,
2586
+ log: runtime?.log ?? console.log,
2587
+ message: (count) => `feishu[${accountId}]: webhook anomaly path=${path} status=${statusCode} count=${count}`
2588
+ });
2589
+ }
2590
+ //#endregion
2591
+ //#region extensions/feishu/src/monitor.transport.ts
2592
+ var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
2593
+ function isFeishuWebhookPayload(value) {
2594
+ return !!value && typeof value === "object" && !Array.isArray(value);
2595
+ }
2596
+ function timingSafeEqualString(left, right) {
2597
+ const leftBuffer = Buffer.from(left, "utf8");
2598
+ const rightBuffer = Buffer.from(right, "utf8");
2599
+ if (leftBuffer.length !== rightBuffer.length) return false;
2600
+ return crypto.timingSafeEqual(leftBuffer, rightBuffer);
2601
+ }
2602
+ function buildFeishuWebhookEnvelope(req, payload) {
2603
+ return Object.assign(Object.create({ headers: req.headers }), payload);
2604
+ }
2605
+ function isFeishuWebhookSignatureValid(params) {
2606
+ const encryptKey = params.encryptKey?.trim();
2607
+ if (!encryptKey) return true;
2608
+ const timestampHeader = params.headers["x-lark-request-timestamp"];
2609
+ const nonceHeader = params.headers["x-lark-request-nonce"];
2610
+ const signatureHeader = params.headers["x-lark-signature"];
2611
+ const timestamp = Array.isArray(timestampHeader) ? timestampHeader[0] : timestampHeader;
2612
+ const nonce = Array.isArray(nonceHeader) ? nonceHeader[0] : nonceHeader;
2613
+ const signature = Array.isArray(signatureHeader) ? signatureHeader[0] : signatureHeader;
2614
+ if (!timestamp || !nonce || !signature) return false;
2615
+ return timingSafeEqualString(crypto.createHash("sha256").update(timestamp + nonce + encryptKey + JSON.stringify(params.payload)).digest("hex"), signature);
2616
+ }
2617
+ function respondText(res, statusCode, body) {
2618
+ res.statusCode = statusCode;
2619
+ res.setHeader("Content-Type", "text/plain; charset=utf-8");
2620
+ res.end(body);
2621
+ }
2622
+ async function monitorWebSocket({ account, accountId, runtime, abortSignal, eventDispatcher }) {
2623
+ const log = runtime?.log ?? console.log;
2624
+ log(`feishu[${accountId}]: starting WebSocket connection...`);
2625
+ const wsClient = createFeishuWSClient(account);
2626
+ wsClients.set(accountId, wsClient);
2627
+ return new Promise((resolve, reject) => {
2628
+ const cleanup = () => {
2629
+ wsClients.delete(accountId);
2630
+ botOpenIds.delete(accountId);
2631
+ botNames.delete(accountId);
2632
+ };
2633
+ const handleAbort = () => {
2634
+ log(`feishu[${accountId}]: abort signal received, stopping`);
2635
+ cleanup();
2636
+ resolve();
2637
+ };
2638
+ if (abortSignal?.aborted) {
2639
+ cleanup();
2640
+ resolve();
2641
+ return;
2642
+ }
2643
+ abortSignal?.addEventListener("abort", handleAbort, { once: true });
2644
+ try {
2645
+ wsClient.start({ eventDispatcher });
2646
+ log(`feishu[${accountId}]: WebSocket client started`);
2647
+ } catch (err) {
2648
+ cleanup();
2649
+ abortSignal?.removeEventListener("abort", handleAbort);
2650
+ reject(err);
2651
+ }
2652
+ });
2653
+ }
2654
+ async function monitorWebhook({ account, accountId, runtime, abortSignal, eventDispatcher }) {
2655
+ const log = runtime?.log ?? console.log;
2656
+ const error = runtime?.error ?? console.error;
2657
+ const port = account.config.webhookPort ?? 3e3;
2658
+ const path = account.config.webhookPath ?? "/feishu/events";
2659
+ const host = account.config.webhookHost ?? "127.0.0.1";
2660
+ log(`feishu[${accountId}]: starting Webhook server on ${host}:${port}, path ${path}...`);
2661
+ const server = http.createServer();
2662
+ server.on("request", (req, res) => {
2663
+ res.on("finish", () => {
2664
+ recordWebhookStatus(runtime, accountId, path, res.statusCode);
2665
+ });
2666
+ if (!applyBasicWebhookRequestGuards({
2667
+ req,
2668
+ res,
2669
+ rateLimiter: feishuWebhookRateLimiter,
2670
+ rateLimitKey: `${accountId}:${path}:${req.socket.remoteAddress ?? "unknown"}`,
2671
+ nowMs: Date.now(),
2672
+ requireJsonContentType: true
2673
+ })) return;
2674
+ const guard = installRequestBodyLimitGuard(req, res, {
2675
+ maxBytes: FEISHU_WEBHOOK_MAX_BODY_BYTES,
2676
+ timeoutMs: FEISHU_WEBHOOK_BODY_TIMEOUT_MS,
2677
+ responseFormat: "text"
2678
+ });
2679
+ if (guard.isTripped()) return;
2680
+ (async () => {
2681
+ try {
2682
+ const bodyResult = await readJsonBodyWithLimit(req, {
2683
+ maxBytes: FEISHU_WEBHOOK_MAX_BODY_BYTES,
2684
+ timeoutMs: FEISHU_WEBHOOK_BODY_TIMEOUT_MS
2685
+ });
2686
+ if (guard.isTripped() || res.writableEnded) return;
2687
+ if (!bodyResult.ok) {
2688
+ if (bodyResult.code === "INVALID_JSON") respondText(res, 400, "Invalid JSON");
2689
+ return;
2690
+ }
2691
+ if (!isFeishuWebhookPayload(bodyResult.value)) {
2692
+ respondText(res, 400, "Invalid JSON");
2693
+ return;
2694
+ }
2695
+ if (!isFeishuWebhookSignatureValid({
2696
+ headers: req.headers,
2697
+ payload: bodyResult.value,
2698
+ encryptKey: account.encryptKey
2699
+ })) {
2700
+ respondText(res, 401, "Invalid signature");
2701
+ return;
2702
+ }
2703
+ const { isChallenge, challenge } = import_lib.generateChallenge(bodyResult.value, { encryptKey: account.encryptKey ?? "" });
2704
+ if (isChallenge) {
2705
+ res.statusCode = 200;
2706
+ res.setHeader("Content-Type", "application/json; charset=utf-8");
2707
+ res.end(JSON.stringify(challenge));
2708
+ return;
2709
+ }
2710
+ const value = await eventDispatcher.invoke(buildFeishuWebhookEnvelope(req, bodyResult.value), { needCheck: false });
2711
+ if (!res.headersSent) {
2712
+ res.statusCode = 200;
2713
+ res.setHeader("Content-Type", "application/json; charset=utf-8");
2714
+ res.end(JSON.stringify(value));
2715
+ }
2716
+ } catch (err) {
2717
+ if (!guard.isTripped()) {
2718
+ error(`feishu[${accountId}]: webhook handler error: ${String(err)}`);
2719
+ if (!res.headersSent) respondText(res, 500, "Internal Server Error");
2720
+ }
2721
+ } finally {
2722
+ guard.dispose();
2723
+ }
2724
+ })();
2725
+ });
2726
+ httpServers.set(accountId, server);
2727
+ return new Promise((resolve, reject) => {
2728
+ const cleanup = () => {
2729
+ server.close();
2730
+ httpServers.delete(accountId);
2731
+ botOpenIds.delete(accountId);
2732
+ botNames.delete(accountId);
2733
+ };
2734
+ const handleAbort = () => {
2735
+ log(`feishu[${accountId}]: abort signal received, stopping Webhook server`);
2736
+ cleanup();
2737
+ resolve();
2738
+ };
2739
+ if (abortSignal?.aborted) {
2740
+ cleanup();
2741
+ resolve();
2742
+ return;
2743
+ }
2744
+ abortSignal?.addEventListener("abort", handleAbort, { once: true });
2745
+ server.listen(port, host, () => {
2746
+ log(`feishu[${accountId}]: Webhook server listening on ${host}:${port}`);
2747
+ });
2748
+ server.on("error", (err) => {
2749
+ error(`feishu[${accountId}]: Webhook server error: ${err}`);
2750
+ abortSignal?.removeEventListener("abort", handleAbort);
2751
+ reject(err);
2752
+ });
2753
+ });
2754
+ }
2755
+ //#endregion
2756
+ //#region extensions/feishu/src/monitor.account.ts
2757
+ const FEISHU_REACTION_VERIFY_TIMEOUT_MS = 1500;
2758
+ async function resolveReactionSyntheticEvent(params) {
2759
+ const { cfg, accountId, event, botOpenId, fetchMessage = getMessageFeishu, verificationTimeoutMs = FEISHU_REACTION_VERIFY_TIMEOUT_MS, logger, uuid = () => crypto$1.randomUUID(), action = "created" } = params;
2760
+ const emoji = event.reaction_type?.emoji_type;
2761
+ const messageId = event.message_id;
2762
+ const senderId = event.user_id?.open_id;
2763
+ if (!emoji || !messageId || !senderId) return null;
2764
+ const reactionNotifications = resolveFeishuAccount({
2765
+ cfg,
2766
+ accountId
2767
+ }).config.reactionNotifications ?? "own";
2768
+ if (reactionNotifications === "off") return null;
2769
+ if (event.operator_type === "app" || senderId === botOpenId) return null;
2770
+ if (emoji === "Typing") return null;
2771
+ if (reactionNotifications === "own" && !botOpenId) {
2772
+ logger?.(`feishu[${accountId}]: bot open_id unavailable, skipping reaction ${emoji} on ${messageId}`);
2773
+ return null;
2774
+ }
2775
+ const reactedMsg = await raceWithTimeoutAndAbort(fetchMessage({
2776
+ cfg,
2777
+ messageId,
2778
+ accountId
2779
+ }), { timeoutMs: verificationTimeoutMs }).then((result) => result.status === "resolved" ? result.value : null).catch(() => null);
2780
+ const isBotMessage = reactedMsg?.senderType === "app" || reactedMsg?.senderOpenId === botOpenId;
2781
+ if (!reactedMsg || reactionNotifications === "own" && !isBotMessage) {
2782
+ logger?.(`feishu[${accountId}]: ignoring reaction on non-bot/unverified message ${messageId} (sender: ${reactedMsg?.senderOpenId ?? "unknown"})`);
2783
+ return null;
2784
+ }
2785
+ const fallbackChatType = reactedMsg.chatType;
2786
+ const resolvedChatType = normalizeFeishuChatType(event.chat_type) ?? fallbackChatType;
2787
+ if (!resolvedChatType) {
2788
+ logger?.(`feishu[${accountId}]: skipping reaction ${emoji} on ${messageId} without chat type context`);
2789
+ return null;
2790
+ }
2791
+ const syntheticChatIdRaw = event.chat_id ?? reactedMsg.chatId;
2792
+ const syntheticChatId = syntheticChatIdRaw?.trim() ? syntheticChatIdRaw : `p2p:${senderId}`;
2793
+ const syntheticChatType = resolvedChatType;
2794
+ return {
2795
+ sender: {
2796
+ sender_id: { open_id: senderId },
2797
+ sender_type: "user"
2798
+ },
2799
+ message: {
2800
+ message_id: `${messageId}:reaction:${emoji}:${uuid()}`,
2801
+ chat_id: syntheticChatId,
2802
+ chat_type: syntheticChatType,
2803
+ message_type: "text",
2804
+ content: JSON.stringify({ text: action === "deleted" ? `[removed reaction ${emoji} from message ${messageId}]` : `[reacted with ${emoji} to message ${messageId}]` })
2805
+ }
2806
+ };
2807
+ }
2808
+ function normalizeFeishuChatType(value) {
2809
+ return value === "group" || value === "private" || value === "p2p" ? value : void 0;
2810
+ }
2811
+ /**
2812
+ * Per-chat serial queue that ensures messages from the same chat are processed
2813
+ * in arrival order while allowing different chats to run concurrently.
2814
+ */
2815
+ function createChatQueue() {
2816
+ const queues = /* @__PURE__ */ new Map();
2817
+ return (chatId, task) => {
2818
+ const next = (queues.get(chatId) ?? Promise.resolve()).then(task, task);
2819
+ queues.set(chatId, next);
2820
+ next.finally(() => {
2821
+ if (queues.get(chatId) === next) queues.delete(chatId);
2822
+ });
2823
+ return next;
2824
+ };
2825
+ }
2826
+ function mergeFeishuDebounceMentions(entries) {
2827
+ const merged = /* @__PURE__ */ new Map();
2828
+ for (const entry of entries) for (const mention of entry.message.mentions ?? []) {
2829
+ const stableId = mention.id.open_id?.trim() || mention.id.user_id?.trim() || mention.id.union_id?.trim();
2830
+ const mentionName = mention.name?.trim();
2831
+ const mentionKey = mention.key?.trim();
2832
+ const fallback = mentionName && mentionKey ? `${mentionName}|${mentionKey}` : mentionName || mentionKey;
2833
+ const key = stableId || fallback;
2834
+ if (!key || merged.has(key)) continue;
2835
+ merged.set(key, mention);
2836
+ }
2837
+ if (merged.size === 0) return;
2838
+ return Array.from(merged.values());
2839
+ }
2840
+ function dedupeFeishuDebounceEntriesByMessageId(entries) {
2841
+ const seen = /* @__PURE__ */ new Set();
2842
+ const deduped = [];
2843
+ for (const entry of entries) {
2844
+ const messageId = entry.message.message_id?.trim();
2845
+ if (!messageId) {
2846
+ deduped.push(entry);
2847
+ continue;
2848
+ }
2849
+ if (seen.has(messageId)) continue;
2850
+ seen.add(messageId);
2851
+ deduped.push(entry);
2852
+ }
2853
+ return deduped;
2854
+ }
2855
+ function resolveFeishuDebounceMentions(params) {
2856
+ const { entries, botOpenId } = params;
2857
+ if (entries.length === 0) return;
2858
+ for (let index = entries.length - 1; index >= 0; index -= 1) {
2859
+ const entry = entries[index];
2860
+ if (isMentionForwardRequest(entry, botOpenId)) return mergeFeishuDebounceMentions([entry]);
2861
+ }
2862
+ const merged = mergeFeishuDebounceMentions(entries);
2863
+ if (!merged) return;
2864
+ const normalizedBotOpenId = botOpenId?.trim();
2865
+ if (!normalizedBotOpenId) return;
2866
+ const botMentions = merged.filter((mention) => mention.id.open_id?.trim() === normalizedBotOpenId);
2867
+ return botMentions.length > 0 ? botMentions : void 0;
2868
+ }
2869
+ function registerEventHandlers(eventDispatcher, context) {
2870
+ const { cfg, accountId, runtime, chatHistories, fireAndForget } = context;
2871
+ const core = getFeishuRuntime();
2872
+ const inboundDebounceMs = core.channel.debounce.resolveInboundDebounceMs({
2873
+ cfg,
2874
+ channel: "feishu"
2875
+ });
2876
+ const log = runtime?.log ?? console.log;
2877
+ const error = runtime?.error ?? console.error;
2878
+ const enqueue = createChatQueue();
2879
+ const runFeishuHandler = async (params) => {
2880
+ if (fireAndForget) {
2881
+ params.task().catch((err) => {
2882
+ error(`${params.errorMessage}: ${String(err)}`);
2883
+ });
2884
+ return;
2885
+ }
2886
+ try {
2887
+ await params.task();
2888
+ } catch (err) {
2889
+ error(`${params.errorMessage}: ${String(err)}`);
2890
+ }
2891
+ };
2892
+ const dispatchFeishuMessage = async (event) => {
2893
+ const chatId = event.message.chat_id?.trim() || "unknown";
2894
+ const task = () => handleFeishuMessage({
2895
+ cfg,
2896
+ event,
2897
+ botOpenId: botOpenIds.get(accountId),
2898
+ botName: botNames.get(accountId),
2899
+ runtime,
2900
+ chatHistories,
2901
+ accountId,
2902
+ processingClaimHeld: true
2903
+ });
2904
+ await enqueue(chatId, task);
2905
+ };
2906
+ const resolveSenderDebounceId = (event) => {
2907
+ return event.sender.sender_id.open_id?.trim() || event.sender.sender_id.user_id?.trim() || void 0;
2908
+ };
2909
+ const resolveDebounceText = (event) => {
2910
+ return parseFeishuMessageEvent(event, botOpenIds.get(accountId), botNames.get(accountId)).content.trim();
2911
+ };
2912
+ const recordSuppressedMessageIds = async (entries, dispatchMessageId) => {
2913
+ const keepMessageId = dispatchMessageId?.trim();
2914
+ const suppressedIds = new Set(entries.map((entry) => entry.message.message_id?.trim()).filter((id) => Boolean(id) && (!keepMessageId || id !== keepMessageId)));
2915
+ if (suppressedIds.size === 0) return;
2916
+ for (const messageId of suppressedIds) try {
2917
+ await recordProcessedFeishuMessage(messageId, accountId, log);
2918
+ } catch (err) {
2919
+ error(`feishu[${accountId}]: failed to record merged dedupe id ${messageId}: ${String(err)}`);
2920
+ }
2921
+ };
2922
+ const isMessageAlreadyProcessed = async (entry) => {
2923
+ return await hasProcessedFeishuMessage(entry.message.message_id, accountId, log);
2924
+ };
2925
+ const inboundDebouncer = core.channel.debounce.createInboundDebouncer({
2926
+ debounceMs: inboundDebounceMs,
2927
+ buildKey: (event) => {
2928
+ const chatId = event.message.chat_id?.trim();
2929
+ const senderId = resolveSenderDebounceId(event);
2930
+ if (!chatId || !senderId) return null;
2931
+ const rootId = event.message.root_id?.trim();
2932
+ return `feishu:${accountId}:${chatId}:${rootId ? `thread:${rootId}` : "chat"}:${senderId}`;
2933
+ },
2934
+ shouldDebounce: (event) => {
2935
+ if (event.message.message_type !== "text") return false;
2936
+ const text = resolveDebounceText(event);
2937
+ if (!text) return false;
2938
+ return !core.channel.text.hasControlCommand(text, cfg);
2939
+ },
2940
+ onFlush: async (entries) => {
2941
+ const last = entries.at(-1);
2942
+ if (!last) return;
2943
+ if (entries.length === 1) {
2944
+ await dispatchFeishuMessage(last);
2945
+ return;
2946
+ }
2947
+ const dedupedEntries = dedupeFeishuDebounceEntriesByMessageId(entries);
2948
+ const freshEntries = [];
2949
+ for (const entry of dedupedEntries) if (!await isMessageAlreadyProcessed(entry)) freshEntries.push(entry);
2950
+ const dispatchEntry = freshEntries.at(-1);
2951
+ if (!dispatchEntry) return;
2952
+ await recordSuppressedMessageIds(dedupedEntries, dispatchEntry.message.message_id);
2953
+ const combinedText = freshEntries.map((entry) => resolveDebounceText(entry)).filter(Boolean).join("\n");
2954
+ const mergedMentions = resolveFeishuDebounceMentions({
2955
+ entries: freshEntries,
2956
+ botOpenId: botOpenIds.get(accountId)
2957
+ });
2958
+ if (!combinedText.trim()) {
2959
+ await dispatchFeishuMessage({
2960
+ ...dispatchEntry,
2961
+ message: {
2962
+ ...dispatchEntry.message,
2963
+ mentions: mergedMentions ?? dispatchEntry.message.mentions
2964
+ }
2965
+ });
2966
+ return;
2967
+ }
2968
+ await dispatchFeishuMessage({
2969
+ ...dispatchEntry,
2970
+ message: {
2971
+ ...dispatchEntry.message,
2972
+ message_type: "text",
2973
+ content: JSON.stringify({ text: combinedText }),
2974
+ mentions: mergedMentions ?? dispatchEntry.message.mentions
2975
+ }
2976
+ });
2977
+ },
2978
+ onError: (err, entries) => {
2979
+ for (const entry of entries) releaseFeishuMessageProcessing(entry.message.message_id, accountId);
2980
+ error(`feishu[${accountId}]: inbound debounce flush failed: ${String(err)}`);
2981
+ }
2982
+ });
2983
+ eventDispatcher.register({
2984
+ "im.message.receive_v1": async (data) => {
2985
+ const event = data;
2986
+ const messageId = event.message?.message_id?.trim();
2987
+ if (!tryBeginFeishuMessageProcessing(messageId, accountId)) {
2988
+ log(`feishu[${accountId}]: dropping duplicate event for message ${messageId}`);
2989
+ return;
2990
+ }
2991
+ const processMessage = async () => {
2992
+ await inboundDebouncer.enqueue(event);
2993
+ };
2994
+ if (fireAndForget) {
2995
+ processMessage().catch((err) => {
2996
+ releaseFeishuMessageProcessing(messageId, accountId);
2997
+ error(`feishu[${accountId}]: error handling message: ${String(err)}`);
2998
+ });
2999
+ return;
3000
+ }
3001
+ try {
3002
+ await processMessage();
3003
+ } catch (err) {
3004
+ releaseFeishuMessageProcessing(messageId, accountId);
3005
+ error(`feishu[${accountId}]: error handling message: ${String(err)}`);
3006
+ }
3007
+ },
3008
+ "im.message.message_read_v1": async () => {},
3009
+ "im.chat.member.bot.added_v1": async (data) => {
3010
+ try {
3011
+ log(`feishu[${accountId}]: bot added to chat ${data.chat_id}`);
3012
+ } catch (err) {
3013
+ error(`feishu[${accountId}]: error handling bot added event: ${String(err)}`);
3014
+ }
3015
+ },
3016
+ "im.chat.member.bot.deleted_v1": async (data) => {
3017
+ try {
3018
+ log(`feishu[${accountId}]: bot removed from chat ${data.chat_id}`);
3019
+ } catch (err) {
3020
+ error(`feishu[${accountId}]: error handling bot removed event: ${String(err)}`);
3021
+ }
3022
+ },
3023
+ "im.message.reaction.created_v1": async (data) => {
3024
+ await runFeishuHandler({
3025
+ errorMessage: `feishu[${accountId}]: error handling reaction event`,
3026
+ task: async () => {
3027
+ const event = data;
3028
+ const myBotId = botOpenIds.get(accountId);
3029
+ const syntheticEvent = await resolveReactionSyntheticEvent({
3030
+ cfg,
3031
+ accountId,
3032
+ event,
3033
+ botOpenId: myBotId,
3034
+ logger: log
3035
+ });
3036
+ if (!syntheticEvent) return;
3037
+ await handleFeishuMessage({
3038
+ cfg,
3039
+ event: syntheticEvent,
3040
+ botOpenId: myBotId,
3041
+ botName: botNames.get(accountId),
3042
+ runtime,
3043
+ chatHistories,
3044
+ accountId
3045
+ });
3046
+ }
3047
+ });
3048
+ },
3049
+ "im.message.reaction.deleted_v1": async (data) => {
3050
+ await runFeishuHandler({
3051
+ errorMessage: `feishu[${accountId}]: error handling reaction removal event`,
3052
+ task: async () => {
3053
+ const event = data;
3054
+ const myBotId = botOpenIds.get(accountId);
3055
+ const syntheticEvent = await resolveReactionSyntheticEvent({
3056
+ cfg,
3057
+ accountId,
3058
+ event,
3059
+ botOpenId: myBotId,
3060
+ logger: log,
3061
+ action: "deleted"
3062
+ });
3063
+ if (!syntheticEvent) return;
3064
+ await handleFeishuMessage({
3065
+ cfg,
3066
+ event: syntheticEvent,
3067
+ botOpenId: myBotId,
3068
+ botName: botNames.get(accountId),
3069
+ runtime,
3070
+ chatHistories,
3071
+ accountId
3072
+ });
3073
+ }
3074
+ });
3075
+ },
3076
+ "application.bot.menu_v6": async (data) => {
3077
+ try {
3078
+ const event = data;
3079
+ const operatorOpenId = event.operator?.operator_id?.open_id?.trim();
3080
+ const eventKey = event.event_key?.trim();
3081
+ if (!operatorOpenId || !eventKey) return;
3082
+ const syntheticEvent = {
3083
+ sender: {
3084
+ sender_id: {
3085
+ open_id: operatorOpenId,
3086
+ user_id: event.operator?.operator_id?.user_id,
3087
+ union_id: event.operator?.operator_id?.union_id
3088
+ },
3089
+ sender_type: "user"
3090
+ },
3091
+ message: {
3092
+ message_id: `bot-menu:${eventKey}:${event.timestamp ?? Date.now()}`,
3093
+ chat_id: `p2p:${operatorOpenId}`,
3094
+ chat_type: "p2p",
3095
+ message_type: "text",
3096
+ content: JSON.stringify({ text: `/menu ${eventKey}` })
3097
+ }
3098
+ };
3099
+ const syntheticMessageId = syntheticEvent.message.message_id;
3100
+ if (await hasProcessedFeishuMessage(syntheticMessageId, accountId, log)) {
3101
+ log(`feishu[${accountId}]: dropping duplicate bot-menu event for ${syntheticMessageId}`);
3102
+ return;
3103
+ }
3104
+ if (!tryBeginFeishuMessageProcessing(syntheticMessageId, accountId)) {
3105
+ log(`feishu[${accountId}]: dropping in-flight bot-menu event for ${syntheticMessageId}`);
3106
+ return;
3107
+ }
3108
+ const handleLegacyMenu = () => handleFeishuMessage({
3109
+ cfg,
3110
+ event: syntheticEvent,
3111
+ botOpenId: botOpenIds.get(accountId),
3112
+ botName: botNames.get(accountId),
3113
+ runtime,
3114
+ chatHistories,
3115
+ accountId,
3116
+ processingClaimHeld: true
3117
+ });
3118
+ const promise = maybeHandleFeishuQuickActionMenu({
3119
+ cfg,
3120
+ eventKey,
3121
+ operatorOpenId,
3122
+ runtime,
3123
+ accountId
3124
+ }).then(async (handledMenu) => {
3125
+ if (handledMenu) {
3126
+ await recordProcessedFeishuMessage(syntheticMessageId, accountId, log);
3127
+ releaseFeishuMessageProcessing(syntheticMessageId, accountId);
3128
+ return;
3129
+ }
3130
+ return await handleLegacyMenu();
3131
+ }).catch((err) => {
3132
+ releaseFeishuMessageProcessing(syntheticMessageId, accountId);
3133
+ throw err;
3134
+ });
3135
+ if (fireAndForget) {
3136
+ promise.catch((err) => {
3137
+ error(`feishu[${accountId}]: error handling bot menu event: ${String(err)}`);
3138
+ });
3139
+ return;
3140
+ }
3141
+ await promise;
3142
+ } catch (err) {
3143
+ error(`feishu[${accountId}]: error handling bot menu event: ${String(err)}`);
3144
+ }
3145
+ },
3146
+ "card.action.trigger": async (data) => {
3147
+ try {
3148
+ const promise = handleFeishuCardAction({
3149
+ cfg,
3150
+ event: data,
3151
+ botOpenId: botOpenIds.get(accountId),
3152
+ runtime,
3153
+ accountId
3154
+ });
3155
+ if (fireAndForget) promise.catch((err) => {
3156
+ error(`feishu[${accountId}]: error handling card action: ${String(err)}`);
3157
+ });
3158
+ else await promise;
3159
+ } catch (err) {
3160
+ error(`feishu[${accountId}]: error handling card action: ${String(err)}`);
3161
+ }
3162
+ }
3163
+ });
3164
+ }
3165
+ async function monitorSingleAccount(params) {
3166
+ const { cfg, account, runtime, abortSignal } = params;
3167
+ const { accountId } = account;
3168
+ const log = runtime?.log ?? console.log;
3169
+ const botOpenIdSource = params.botOpenIdSource ?? { kind: "fetch" };
3170
+ const botIdentity = botOpenIdSource.kind === "prefetched" ? {
3171
+ botOpenId: botOpenIdSource.botOpenId,
3172
+ botName: botOpenIdSource.botName
3173
+ } : await fetchBotIdentityForMonitor(account, {
3174
+ runtime,
3175
+ abortSignal
3176
+ });
3177
+ const botOpenId = botIdentity.botOpenId;
3178
+ const botName = botIdentity.botName?.trim();
3179
+ botOpenIds.set(accountId, botOpenId ?? "");
3180
+ if (botName) botNames.set(accountId, botName);
3181
+ else botNames.delete(accountId);
3182
+ log(`feishu[${accountId}]: bot open_id resolved: ${botOpenId ?? "unknown"}`);
3183
+ const connectionMode = account.config.connectionMode ?? "websocket";
3184
+ if (connectionMode === "webhook" && !account.verificationToken?.trim()) throw new Error(`Feishu account "${accountId}" webhook mode requires verificationToken`);
3185
+ if (connectionMode === "webhook" && !account.encryptKey?.trim()) throw new Error(`Feishu account "${accountId}" webhook mode requires encryptKey`);
3186
+ const warmupCount = await warmupDedupFromDisk(accountId, log);
3187
+ if (warmupCount > 0) log(`feishu[${accountId}]: dedup warmup loaded ${warmupCount} entries from disk`);
3188
+ let threadBindingManager = null;
3189
+ try {
3190
+ const eventDispatcher = createEventDispatcher(account);
3191
+ const chatHistories = /* @__PURE__ */ new Map();
3192
+ threadBindingManager = createFeishuThreadBindingManager({
3193
+ accountId,
3194
+ cfg
3195
+ });
3196
+ registerEventHandlers(eventDispatcher, {
3197
+ cfg,
3198
+ accountId,
3199
+ runtime,
3200
+ chatHistories,
3201
+ fireAndForget: true
3202
+ });
3203
+ if (connectionMode === "webhook") return await monitorWebhook({
3204
+ account,
3205
+ accountId,
3206
+ runtime,
3207
+ abortSignal,
3208
+ eventDispatcher
3209
+ });
3210
+ return await monitorWebSocket({
3211
+ account,
3212
+ accountId,
3213
+ runtime,
3214
+ abortSignal,
3215
+ eventDispatcher
3216
+ });
3217
+ } finally {
3218
+ threadBindingManager?.stop();
3219
+ }
3220
+ }
3221
+ //#endregion
3222
+ //#region extensions/feishu/src/monitor.ts
3223
+ async function monitorFeishuProvider(opts = {}) {
3224
+ const cfg = opts.config;
3225
+ if (!cfg) throw new Error("Config is required for Feishu monitor");
3226
+ const log = opts.runtime?.log ?? console.log;
3227
+ if (opts.accountId) {
3228
+ const account = resolveFeishuAccount({
3229
+ cfg,
3230
+ accountId: opts.accountId
3231
+ });
3232
+ if (!account.enabled || !account.configured) throw new Error(`Feishu account "${opts.accountId}" not configured or disabled`);
3233
+ return monitorSingleAccount({
3234
+ cfg,
3235
+ account,
3236
+ runtime: opts.runtime,
3237
+ abortSignal: opts.abortSignal
3238
+ });
3239
+ }
3240
+ const accounts = listEnabledFeishuAccounts(cfg);
3241
+ if (accounts.length === 0) throw new Error("No enabled Feishu accounts configured");
3242
+ log(`feishu: starting ${accounts.length} account(s): ${accounts.map((a) => a.accountId).join(", ")}`);
3243
+ const monitorPromises = [];
3244
+ for (const account of accounts) {
3245
+ if (opts.abortSignal?.aborted) {
3246
+ log("feishu: abort signal received during startup preflight; stopping startup");
3247
+ break;
3248
+ }
3249
+ const { botOpenId, botName } = await fetchBotIdentityForMonitor(account, {
3250
+ runtime: opts.runtime,
3251
+ abortSignal: opts.abortSignal
3252
+ });
3253
+ if (opts.abortSignal?.aborted) {
3254
+ log("feishu: abort signal received during startup preflight; stopping startup");
3255
+ break;
3256
+ }
3257
+ monitorPromises.push(monitorSingleAccount({
3258
+ cfg,
3259
+ account,
3260
+ runtime: opts.runtime,
3261
+ abortSignal: opts.abortSignal,
3262
+ botOpenIdSource: {
3263
+ kind: "prefetched",
3264
+ botOpenId,
3265
+ botName
3266
+ }
3267
+ }));
3268
+ }
3269
+ await Promise.all(monitorPromises);
3270
+ }
3271
+ //#endregion
3272
+ export { resolveReactionSyntheticEvent as n, monitorFeishuProvider as t };