stableclaw 2026.5.1 → 2026.5.3
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.
- package/dist/.buildstamp +1 -1
- package/dist/abort-DbOWfk1R.js +192 -0
- package/dist/abort-cutoff.runtime-ZDeu_mNv.js +20 -0
- package/dist/abort-cutoff.runtime.js +1 -1
- package/dist/abort.runtime-DzSEcqwd.js +2 -0
- package/dist/abort.runtime.js +1 -1
- package/dist/access-control-ChkJvEGP.js +152 -0
- package/dist/account-inspect-DCKRZRny.js +158 -0
- package/dist/accounts-BGTN7cr-.js +102 -0
- package/dist/accounts-CinolZTU.js +107 -0
- package/dist/accounts-CkhyYlS6.js +137 -0
- package/dist/accounts-D219ghr6.js +57 -0
- package/dist/accounts-DrggbKcd.js +2 -0
- package/dist/acp-runtime-_pYPcJEH.js +8 -0
- package/dist/acp-stateful-target-driver-BEIUsg83.js +60 -0
- package/dist/action-runtime-CJhBKfDC.js +318 -0
- package/dist/action-runtime-NLKQbAQA.js +72 -0
- package/dist/action-runtime-api-YzbQ4Qy6.js +1028 -0
- package/dist/actions-BrAcUNm-.js +531 -0
- package/dist/actions.runtime-BwB4CvxW.js +2 -0
- package/dist/actions.runtime-CiYUOMp1.js +18 -0
- package/dist/actions.runtime-SFl3LXbz.js +5 -0
- package/dist/actions.runtime.js +1 -1
- package/dist/agent-CdYMZ9fr.js +2 -0
- package/dist/agent-command-wY0aEiLZ.js +1457 -0
- package/dist/agent-runner.runtime-BJYxz_AG.js +2241 -0
- package/dist/agent-runner.runtime.js +1 -1
- package/dist/agent-runtime-Cm6WYH1X.js +142 -0
- package/dist/agent-tools-login-Bd1V75kh.js +57 -0
- package/dist/agents-IbQmK8Yn.js +888 -0
- package/dist/agents-MrSC-Up6.js +5 -0
- package/dist/api-BQHk-t06.js +5 -0
- package/dist/api-Bmx0BK0F.js +5 -0
- package/dist/api-CJIpnZrc.js +10 -0
- package/dist/api-CRhMGxLB.js +6 -0
- package/dist/api-CdYIiak82.js +322 -0
- package/dist/api-DOdPShPk.js +2 -0
- package/dist/api-jI3BtiNB.js +2 -0
- package/dist/apply-Cbt003x7.js +485 -0
- package/dist/apply.runtime-CY47EbzA.js +2 -0
- package/dist/apply.runtime.js +1 -1
- package/dist/approval-native-B4HJRa55.js +79 -0
- package/dist/approval-runtime-B6PXavdQ.js +262 -0
- package/dist/assistant-identity-CeKI09AJ.js +74 -0
- package/dist/attachment-normalize-BZdNI2So.js +921 -0
- package/dist/audit-BLq9P3oA.js +86 -0
- package/dist/audit-DtlsDuaM.js +892 -0
- package/dist/audit-channel.allow-from.runtime.js +1 -1
- package/dist/audit-channel.collect.runtime-CTutyCbl.js +528 -0
- package/dist/audit-channel.collect.runtime.js +1 -1
- package/dist/audit-channel.discord.runtime.js +1 -1
- package/dist/audit-channel.telegram.runtime-DgjqHj_y.js +8 -0
- package/dist/audit-channel.telegram.runtime.js +1 -1
- package/dist/audit-channel.zalouser.runtime.js +1 -1
- package/dist/audit-extra.async-azTwi9Ii.js +820 -0
- package/dist/audit.deep.runtime-DczMVmZl.js +2 -0
- package/dist/audit.deep.runtime.js +1 -1
- package/dist/audit.nondeep.runtime-C0-gevdg.js +831 -0
- package/dist/audit.nondeep.runtime.js +1 -1
- package/dist/audit.runtime-CjmP-IVf.js +7 -0
- package/dist/audit.runtime.js +1 -1
- package/dist/auth-D9R9vTdP.js +181 -0
- package/dist/auth-choice-ASVf3uqH.js +3 -0
- package/dist/auth-choice-CUGc7jRT.js +341 -0
- package/dist/auth-choice-TdFpgqf8.js +69 -0
- package/dist/binding-targets-BB736PNg.js +99 -0
- package/dist/bot-i7rkFnoU.js +4268 -0
- package/dist/bot-message-context-NjuZxwNf.js +2 -0
- package/dist/bot-message-context-SFoFcMU0.js +1175 -0
- package/dist/bot-message-context.runtime-BuHjCi1s.js +7 -0
- package/dist/bot-message-context.runtime.js +1 -1
- package/dist/bot-message-context.session.runtime-BOjKvTjg.js +12 -0
- package/dist/bot-message-context.session.runtime.js +1 -1
- package/dist/bot-native-commands.delivery.runtime-CMVcyVfr.js +3 -0
- package/dist/bot-native-commands.delivery.runtime.js +1 -1
- package/dist/bot-native-commands.runtime-DPXiZ-g-.js +11 -0
- package/dist/bot-native-commands.runtime.js +1 -1
- package/dist/bundled/boot-md/handler.js +3 -3
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/channel-6JSPqz3S.js +599 -0
- package/dist/channel-8fxnaoxA.js +1135 -0
- package/dist/channel-BGr4lB_p.js +208 -0
- package/dist/channel-BRZOhpO-.js +1217 -0
- package/dist/channel-BTaI9Vsm.js +454 -0
- package/dist/channel-BuvbHCUl.js +800 -0
- package/dist/channel-C0kxZQ7E.js +883 -0
- package/dist/channel-CJgXhuIs.js +698 -0
- package/dist/channel-DQWDH71E.js +337 -0
- package/dist/channel-DqywfjHt.js +361 -0
- package/dist/channel-inbound-BbIwjinv.js +30 -0
- package/dist/channel-o7dERoVP.js +1129 -0
- package/dist/channel-ouAyZmKb.js +788 -0
- package/dist/channel-pGQXHihG.js +783 -0
- package/dist/channel-plugin-resolution-E1W_efdm.js +144 -0
- package/dist/channel-qw2GU-78.js +1661 -0
- package/dist/channel-shared-DsqgfMVz.js +58 -0
- package/dist/channel-x8EJXY-p.js +4976 -0
- package/dist/channel.runtime-9U-FzlTX.js +22252 -0
- package/dist/channel.runtime-CDRgtalS.js +309 -0
- package/dist/channel.runtime-CrTb-acp.js +373 -0
- package/dist/channel.runtime-CvUJhEWE.js +14 -0
- package/dist/channel.runtime-D86obE0J.js +108 -0
- package/dist/channel.runtime-DR14R1qn.js +125 -0
- package/dist/channel.runtime-DY-t80Mq.js +335 -0
- package/dist/channel.runtime-Db6-JgiT.js +80 -0
- package/dist/channel.setup-5ccX1E-a.js +279 -0
- package/dist/channels-CU1r9oWn.js +1134 -0
- package/dist/channels-cli-H6kLKRCJ.js +246 -0
- package/dist/clawhub-CicQAK3Q.js +163 -0
- package/dist/cli/daemon-cli.js +3 -9
- package/dist/cli-BeJobAfz.js +695 -0
- package/dist/cli-Bw_QTHCD.js +152 -0
- package/dist/cli-migration-DBUl9wOM.js +100 -0
- package/dist/cli-runner-CNdeXILj.js +1014 -0
- package/dist/client-C7KrfnR_.js +5 -0
- package/dist/client-D1IMuN2R.js +7 -0
- package/dist/client-bootstrap-BRL3IJbX.js +2 -0
- package/dist/client-bootstrap-BnU_fgOa.js +121 -0
- package/dist/code-execution-Dy3oNAvz.js +142 -0
- package/dist/command-auth-BoH1IkmW.js +64 -0
- package/dist/command-registry-CFUnlk3Y.js +199 -0
- package/dist/command-registry-Dy7lErHE.js +3 -0
- package/dist/commands-P7L4abaE.js +4 -0
- package/dist/commands-acp-CRBC84-r.js +990 -0
- package/dist/commands-core-DfVd-xq7.js +241 -0
- package/dist/commands-core.runtime-CCF1BiL7.js +2 -0
- package/dist/commands-core.runtime.js +1 -1
- package/dist/commands-handlers.runtime-BWoNwBZE.js +3708 -0
- package/dist/commands-handlers.runtime.js +1 -1
- package/dist/commands-info-CSt3aoRZ.js +651 -0
- package/dist/commands-models-FgUB1hGv.js +395 -0
- package/dist/commands-status.runtime-jcqPwtM3.js +2 -0
- package/dist/commands-status.runtime.js +1 -1
- package/dist/commands.runtime-CIbt20JL.js +4 -0
- package/dist/commands.runtime.js +1 -1
- package/dist/compact.runtime-DKdAjeMZ.js +7 -0
- package/dist/compact.runtime.js +1 -1
- package/dist/completion-cli-7xXpXxID.js +2 -0
- package/dist/completion-cli-Csbpl09N.js +466 -0
- package/dist/config-BGW2qyLw.js +475 -0
- package/dist/config-cli--4OexF6J.js +945 -0
- package/dist/config-guard-V5IAh_mF.js +113 -0
- package/dist/config-runtime-D208l2BL.js +13 -0
- package/dist/config-secret-input.runtime-BF9IBBeM.js +3 -0
- package/dist/config-secret-input.runtime.js +1 -1
- package/dist/config-update-BBzrkxal.js +127 -0
- package/dist/config-update-DrtP_s0Y.js +3 -0
- package/dist/configure-B5cJf26V.js +2 -0
- package/dist/configure-Ts01pF4g.js +1140 -0
- package/dist/context-DeDQINVq.js +227 -0
- package/dist/control-ui/assets/agents-DIJiVfPj.js +813 -0
- package/dist/control-ui/assets/anthropic-BnQLajET.js +37 -0
- package/dist/control-ui/assets/azure-openai-responses-D6oH5P8v.js +2 -0
- package/dist/control-ui/assets/channel-config-extras-Cu8rP5sC.js +2 -0
- package/dist/control-ui/assets/channels-DMte0OdA.js +349 -0
- package/dist/control-ui/assets/cron-hM6tj-cg.js +928 -0
- package/dist/control-ui/assets/de-BzA7Smom.js +2 -0
- package/dist/control-ui/assets/debug-ChdgbieB.js +94 -0
- package/dist/control-ui/assets/es--sAce87o.js +2 -0
- package/dist/control-ui/assets/github-copilot-headers-cUjskhp6.js +2 -0
- package/dist/control-ui/assets/google-DDYMjR2f.js +2 -0
- package/dist/control-ui/assets/google-gemini-cli-BBZpF1Bz.js +3 -0
- package/dist/control-ui/assets/google-shared-Brxly9jR.js +12 -0
- package/dist/control-ui/assets/google-vertex-moPkJqQt.js +2 -0
- package/dist/control-ui/assets/hash-BN8UQrrC.js +2 -0
- package/dist/control-ui/assets/index-hSu8pNmQ.js +4841 -0
- package/dist/control-ui/assets/instances-BO-5LU4G.js +57 -0
- package/dist/control-ui/assets/logs-CaFT90eM.js +74 -0
- package/dist/control-ui/assets/mistral-yMnz8nsP.js +8 -0
- package/dist/control-ui/assets/nodes-6XxETMb5.js +430 -0
- package/dist/control-ui/assets/openai-CQsomflW.js +17 -0
- package/dist/control-ui/assets/openai-codex-responses-DXqDuiSK.js +8 -0
- package/dist/control-ui/assets/openai-completions-Bme8q7yw.js +6 -0
- package/dist/control-ui/assets/openai-responses-DpESo9k8.js +2 -0
- package/dist/control-ui/assets/openai-responses-shared-CjacPL_h.js +11 -0
- package/dist/control-ui/assets/preview-Ca6p7-4-.js +2 -0
- package/dist/control-ui/assets/pt-BR-DkjnRLn3.js +2 -0
- package/dist/control-ui/assets/sessions-USutdtjY.js +236 -0
- package/dist/control-ui/assets/skills-DLY8KTEh.js +216 -0
- package/dist/control-ui/assets/skills-shared-DUfo2UBp.js +11 -0
- package/dist/control-ui/assets/transform-messages-Lu1Q3cQf.js +2 -0
- package/dist/control-ui/assets/zh-CN-Di7IMlSu.js +2 -0
- package/dist/control-ui/assets/zh-TW-yENTnmx1.js +2 -0
- package/dist/control-ui/index.html +2 -2
- package/dist/control-ui-C9vPgc9L.js +388 -0
- package/dist/conversation-bindings-CwHBn1fl.js +210 -0
- package/dist/conversation-id-BOk-dTsl.js +168 -0
- package/dist/conversation-runtime-DvoDx5Lp.js +85 -0
- package/dist/core-_nKe7lGV.js +195 -0
- package/dist/create-client-BenzpBNt.js +2 -0
- package/dist/create-client-CGt4-gcv.js +58 -0
- package/dist/credentials-7IVnN_TF.js +22 -0
- package/dist/credentials-write.runtime-D1VXZncp.js +9 -0
- package/dist/credentials-write.runtime.js +1 -1
- package/dist/crypto-runtime-Y20cyTTx.js +3495 -0
- package/dist/daemon-cli-DvP7I-Uu.js +383 -0
- package/dist/daemon-install-CVIbxBN5.js +63 -0
- package/dist/delegate-VctUvdru.js +43 -0
- package/dist/deliver-DTfKSC4Q.js +954 -0
- package/dist/deliver-LbQQnhR5.js +3 -0
- package/dist/deliver-reply-18sWD8M4.js +238 -0
- package/dist/deliver-runtime-Qg81IeZu.js +2 -0
- package/dist/delivery-D8E92dmQ.js +834 -0
- package/dist/delivery-info-Cls9iWRl.js +40 -0
- package/dist/direct-dm-Dg-rhCG0.js +139 -0
- package/dist/direct-management-CaI85_dA.js +2 -0
- package/dist/direct-management-DjdwL-F4.js +300 -0
- package/dist/directive-handling.fast-lane-3sGyxlH_.js +64 -0
- package/dist/directive-handling.fast-lane-CKe_S3fo.js +2 -0
- package/dist/directive-handling.impl-C1D-MGbp.js +2 -0
- package/dist/directive-handling.impl-Dk6oRN3H.js +672 -0
- package/dist/directive-handling.parse-ni5LIlSW.js +375 -0
- package/dist/directive-handling.persist-DSyJG2Kq.js +133 -0
- package/dist/directive-handling.persist.runtime-WEeAbhJ8.js +2 -0
- package/dist/directive-handling.persist.runtime.js +1 -1
- package/dist/directive-handling.shared-DPXk9T6l.js +158 -0
- package/dist/directory-cli-CL6UudXS.js +238 -0
- package/dist/directory.static-BX7RI4Aq.js +45 -0
- package/dist/discovery-DhEDepjw.js +171 -0
- package/dist/dispatch-acp.runtime-DHUc4MMQ.js +884 -0
- package/dist/dispatch-acp.runtime.js +1 -1
- package/dist/dispatch-au2t5HsH.js +858 -0
- package/dist/doctor-completion-fD570xvd.js +90 -0
- package/dist/doctor-config-preflight-B0C_HTWN.js +2 -0
- package/dist/doctor-config-preflight-OMEufm7U.js +148 -0
- package/dist/doctor-state-migrations-BJ5M0r8a.js +2 -0
- package/dist/doctor-state-migrations-CPG_ii-i.js +3 -0
- package/dist/embedding-provider-vb6JoF5D.js +129 -0
- package/dist/encryption-guidance-BRY-GWVy.js +33 -0
- package/dist/entry.js +2 -2
- package/dist/error-text-CM5bR2qT.js +24 -0
- package/dist/exec-approval-session-target-Ci45mXNL.js +159 -0
- package/dist/exec-approvals-D9wFcLn9.js +121 -0
- package/dist/extensionAPI.js +3 -3
- package/dist/extensions/acpx/index.js +3 -3
- package/dist/extensions/acpx/runtime-api.js +2 -2
- package/dist/extensions/amazon-bedrock/api.js +2 -2
- package/dist/extensions/amazon-bedrock/discovery.js +1 -1
- package/dist/extensions/amazon-bedrock/index.js +2 -2
- package/dist/extensions/anthropic/cli-migration.js +1 -1
- package/dist/extensions/anthropic/index.js +5 -5
- package/dist/extensions/anthropic/media-understanding-provider.js +1 -1
- package/dist/extensions/bluebubbles/api.js +2 -2
- package/dist/extensions/bluebubbles/index.js +2 -2
- package/dist/extensions/bluebubbles/setup-entry.js +1 -1
- package/dist/extensions/browser/test-support.js +1 -1
- package/dist/extensions/byteplus/index.js +2 -2
- package/dist/extensions/chutes/index.js +4 -4
- package/dist/extensions/cloudflare-ai-gateway/index.js +1 -1
- package/dist/extensions/deepseek/index.js +1 -1
- package/dist/extensions/device-pair/api.js +2 -2
- package/dist/extensions/device-pair/index.js +3 -3
- package/dist/extensions/device-pair/notify.js +1 -1
- package/dist/extensions/device-pair/qr-image.js +2 -2
- package/dist/extensions/diffs/index.js +1 -1
- package/dist/extensions/discord/action-runtime-api.js +1 -1
- package/dist/extensions/discord/api.js +4 -4
- package/dist/extensions/discord/index.js +9 -9
- package/dist/extensions/discord/runtime-api.js +10 -10
- package/dist/extensions/discord/setup-entry.js +2 -2
- package/dist/extensions/discord/test-api.js +3 -3
- package/dist/extensions/fal/index.js +2 -2
- package/dist/extensions/feishu/api.js +2 -2
- package/dist/extensions/feishu/index.js +7 -7
- package/dist/extensions/feishu/setup-api.js +1 -1
- package/dist/extensions/feishu/setup-entry.js +2 -2
- package/dist/extensions/github-copilot/api.js +1 -1
- package/dist/extensions/github-copilot/index.js +2 -2
- package/dist/extensions/github-copilot/login.js +1 -1
- package/dist/extensions/google/index.js +2 -2
- package/dist/extensions/google/media-understanding-provider.js +2 -2
- package/dist/extensions/googlechat/api.js +1 -1
- package/dist/extensions/googlechat/index.js +2 -2
- package/dist/extensions/googlechat/setup-entry.js +2 -2
- package/dist/extensions/googlechat/test-api.js +1 -1
- package/dist/extensions/groq/index.js +1 -1
- package/dist/extensions/groq/media-understanding-provider.js +1 -1
- package/dist/extensions/huggingface/index.js +2 -2
- package/dist/extensions/imessage/api.js +2 -2
- package/dist/extensions/imessage/index.js +7 -7
- package/dist/extensions/imessage/runtime-api.js +2 -2
- package/dist/extensions/imessage/setup-entry.js +3 -3
- package/dist/extensions/irc/api.js +1 -1
- package/dist/extensions/irc/index.js +2 -2
- package/dist/extensions/irc/setup-entry.js +2 -2
- package/dist/extensions/kilocode/index.js +1 -1
- package/dist/extensions/kimi-coding/index.js +2 -2
- package/dist/extensions/line/api.js +4 -4
- package/dist/extensions/line/index.js +5 -5
- package/dist/extensions/line/runtime-api.js +2 -2
- package/dist/extensions/line/setup-api.js +2 -2
- package/dist/extensions/line/setup-entry.js +3 -3
- package/dist/extensions/litellm/index.js +1 -1
- package/dist/extensions/lobster/index.js +1 -1
- package/dist/extensions/lobster/runtime-api.js +1 -1
- package/dist/extensions/matrix/api.js +3 -3
- package/dist/extensions/matrix/index.js +3 -3
- package/dist/extensions/matrix/plugin-entry.handlers.runtime.js +3 -3
- package/dist/extensions/matrix/setup-entry.js +2 -2
- package/dist/extensions/matrix/test-api.js +1 -1
- package/dist/extensions/mattermost/api.js +1 -1
- package/dist/extensions/mattermost/index.js +2 -2
- package/dist/extensions/mattermost/runtime-api.js +4 -4
- package/dist/extensions/mattermost/setup-entry.js +2 -2
- package/dist/extensions/media-understanding-core/runtime-api.js +2 -2
- package/dist/extensions/microsoft/index.js +1 -1
- package/dist/extensions/microsoft/speech-provider.js +1 -1
- package/dist/extensions/microsoft/test-api.js +1 -1
- package/dist/extensions/microsoft-foundry/auth.js +1 -1
- package/dist/extensions/microsoft-foundry/cli.js +1 -1
- package/dist/extensions/microsoft-foundry/index.js +1 -1
- package/dist/extensions/microsoft-foundry/onboard.js +2 -2
- package/dist/extensions/microsoft-foundry/provider.js +1 -1
- package/dist/extensions/microsoft-foundry/runtime.js +1 -1
- package/dist/extensions/microsoft-foundry/shared-runtime.js +2 -2
- package/dist/extensions/microsoft-foundry/shared.js +1 -1
- package/dist/extensions/minimax/index.js +4 -4
- package/dist/extensions/minimax/media-understanding-provider.js +1 -1
- package/dist/extensions/minimax/oauth.js +1 -1
- package/dist/extensions/minimax/oauth.runtime.js +1 -1
- package/dist/extensions/mistral/index.js +2 -2
- package/dist/extensions/mistral/media-understanding-provider.js +1 -1
- package/dist/extensions/modelstudio/index.js +1 -1
- package/dist/extensions/moonshot/index.js +2 -2
- package/dist/extensions/moonshot/media-understanding-provider.js +1 -1
- package/dist/extensions/msteams/api.js +1 -1
- package/dist/extensions/msteams/index.js +3 -3
- package/dist/extensions/msteams/runtime-api.js +4 -4
- package/dist/extensions/msteams/setup-entry.js +2 -2
- package/dist/extensions/msteams/test-api.js +1 -1
- package/dist/extensions/nextcloud-talk/api.js +1 -1
- package/dist/extensions/nextcloud-talk/index.js +2 -2
- package/dist/extensions/nextcloud-talk/runtime-api.js +2 -2
- package/dist/extensions/nextcloud-talk/setup-entry.js +2 -2
- package/dist/extensions/nostr/api.js +3 -3
- package/dist/extensions/nostr/index.js +4 -4
- package/dist/extensions/nostr/runtime-api.js +3 -3
- package/dist/extensions/nostr/setup-api.js +1 -1
- package/dist/extensions/nostr/setup-entry.js +2 -2
- package/dist/extensions/nostr/test-api.js +1 -1
- package/dist/extensions/nvidia/index.js +1 -1
- package/dist/extensions/ollama/api.js +2 -2
- package/dist/extensions/ollama/index.js +3 -3
- package/dist/extensions/ollama/runtime-api.js +2 -2
- package/dist/extensions/openai/api.js +1 -1
- package/dist/extensions/openai/index.js +3 -3
- package/dist/extensions/openai/media-understanding-provider.js +1 -1
- package/dist/extensions/openai/openai-codex-provider.js +1 -1
- package/dist/extensions/openai/openai-provider.js +1 -1
- package/dist/extensions/openai/test-api.js +1 -1
- package/dist/extensions/opencode/index.js +2 -2
- package/dist/extensions/opencode-go/index.js +2 -2
- package/dist/extensions/openrouter/index.js +3 -3
- package/dist/extensions/openrouter/media-understanding-provider.js +1 -1
- package/dist/extensions/openshell/index.js +1 -1
- package/dist/extensions/qianfan/index.js +1 -1
- package/dist/extensions/qqbot/index.js +2 -2
- package/dist/extensions/qqbot/setup-entry.js +2 -2
- package/dist/extensions/signal/api.js +4 -4
- package/dist/extensions/signal/index.js +9 -9
- package/dist/extensions/signal/reaction-runtime-api.js +1 -1
- package/dist/extensions/signal/runtime-api.js +4 -4
- package/dist/extensions/signal/setup-entry.js +2 -2
- package/dist/extensions/signal/test-api.js +4 -4
- package/dist/extensions/slack/api.js +6 -6
- package/dist/extensions/slack/index.js +2 -2
- package/dist/extensions/slack/runtime-api.js +6 -6
- package/dist/extensions/slack/setup-entry.js +2 -2
- package/dist/extensions/slack/test-api.js +4 -4
- package/dist/extensions/stepfun/index.js +2 -2
- package/dist/extensions/synology-chat/index.js +2 -2
- package/dist/extensions/synology-chat/setup-api.js +1 -1
- package/dist/extensions/synology-chat/setup-entry.js +2 -2
- package/dist/extensions/synthetic/index.js +1 -1
- package/dist/extensions/talk-voice/index.js +1 -1
- package/dist/extensions/telegram/api.js +8 -8
- package/dist/extensions/telegram/index.js +2 -2
- package/dist/extensions/telegram/runtime-api.js +8 -8
- package/dist/extensions/telegram/setup-entry.js +3 -3
- package/dist/extensions/telegram/test-api.js +7 -7
- package/dist/extensions/telegram/test-support.js +4 -4
- package/dist/extensions/tlon/index.js +2 -2
- package/dist/extensions/tlon/setup-entry.js +2 -2
- package/dist/extensions/tlon/test-api.js +1 -1
- package/dist/extensions/together/index.js +1 -1
- package/dist/extensions/twitch/index.js +1 -1
- package/dist/extensions/venice/index.js +1 -1
- package/dist/extensions/vercel-ai-gateway/index.js +1 -1
- package/dist/extensions/volcengine/index.js +2 -2
- package/dist/extensions/whatsapp/action-runtime-api.js +1 -1
- package/dist/extensions/whatsapp/action-runtime.runtime.js +1 -1
- package/dist/extensions/whatsapp/api.js +2 -2
- package/dist/extensions/whatsapp/index.js +2 -2
- package/dist/extensions/whatsapp/light-runtime-api.js +1 -1
- package/dist/extensions/whatsapp/login-qr-api.js +1 -1
- package/dist/extensions/whatsapp/runtime-api.js +13 -13
- package/dist/extensions/whatsapp/setup-entry.js +3 -3
- package/dist/extensions/whatsapp/test-api.js +6 -6
- package/dist/extensions/xai/code-execution.js +1 -1
- package/dist/extensions/xai/index.js +4 -4
- package/dist/extensions/xai/x-search.js +1 -1
- package/dist/extensions/xiaomi/index.js +1 -1
- package/dist/extensions/zai/index.js +2 -2
- package/dist/extensions/zai/media-understanding-provider.js +1 -1
- package/dist/extensions/zalo/api.js +2 -2
- package/dist/extensions/zalo/index.js +2 -2
- package/dist/extensions/zalo/runtime-api.js +2 -2
- package/dist/extensions/zalo/setup-entry.js +2 -2
- package/dist/extensions/zalo/test-api.js +1 -1
- package/dist/extensions/zalouser/api.js +1 -1
- package/dist/extensions/zalouser/index.js +10 -10
- package/dist/extensions/zalouser/runtime-api.js +3 -3
- package/dist/extensions/zalouser/setup-entry.js +3 -3
- package/dist/extensions/zalouser/test-api.js +4 -4
- package/dist/format-BN8tV56q.js +817 -0
- package/dist/gateway-CK0mVyJH.js +2575 -0
- package/dist/gateway-cli-BIGurgdT.js +1596 -0
- package/dist/gateway-install-token-CnLiX_Zd.js +230 -0
- package/dist/get-reply-from-config.runtime-DHVxBB-O.js +2 -0
- package/dist/get-reply-from-config.runtime.js +1 -1
- package/dist/gmail-watcher-lifecycle-BOSlI4iv.js +2 -0
- package/dist/graph-users-CceVBSPZ.js +918 -0
- package/dist/group-access-Cwl8gW8B.js +32 -0
- package/dist/group-access-DHoGAQFt.js +119 -0
- package/dist/handle-action-BmBnXGdV.js +500 -0
- package/dist/health-CkL8pqV8.js +2 -0
- package/dist/health-DhHzqohg.js +577 -0
- package/dist/heartbeat-runner-N3rkIDfo.js +995 -0
- package/dist/hooks-cli-LfG_KZSu.js +353 -0
- package/dist/http-client-lTUwUVkV.js +294 -0
- package/dist/image-BZJoriob.js +152 -0
- package/dist/image-runtime-V0FuCGlj.js +7 -0
- package/dist/inbound-reply-dispatch-C8za1uEq.js +73 -0
- package/dist/inbound.runtime-BYJ118rE.js +3 -0
- package/dist/inbound.runtime.js +1 -1
- package/dist/index.js +2 -2
- package/dist/infra-runtime-C9fJenAY.js +22 -0
- package/dist/install-BKR6ckWd.js +590 -0
- package/dist/install-security-scan-BWWG9NEd.js +22 -0
- package/dist/install-security-scan.runtime-CNFIn93M.js +299 -0
- package/dist/install-security-scan.runtime.js +1 -1
- package/dist/install.runtime-BKwzESsg.js +11 -0
- package/dist/install.runtime-DrieSb_M.js +27 -0
- package/dist/install.runtime.js +1 -1
- package/dist/irc-DRWT3CQf.js +14 -0
- package/dist/legacy-crypto-restore-CZycrxha.js +85 -0
- package/dist/library-CVZUhyOq.js +44 -0
- package/dist/llm-slug-generator-B79ECeWZ.js +68 -0
- package/dist/llm-slug-generator.js +1 -1
- package/dist/loader-BJO8z2ig.js +2 -0
- package/dist/login-Cs2tMFcs.js +2332 -0
- package/dist/login-GAWpWfxh.js +108 -0
- package/dist/login-qr-CUosF6JZ.js +211 -0
- package/dist/login-qr-api-W1NF3gA_.js +16 -0
- package/dist/manager.runtime-Dmq8R0mb.js +670 -0
- package/dist/manager.runtime.js +1 -1
- package/dist/matrix-DrH1M_Sr.js +351 -0
- package/dist/matrix-runtime-heavy-C6fkT2VX.js +4 -0
- package/dist/mattermost-B9327zl5.js +18 -0
- package/dist/media-CIdwV3Lu.js +1691 -0
- package/dist/media-runtime-QMgMQ3WZ.js +295 -0
- package/dist/media-understanding-C66pUC4U.js +51 -0
- package/dist/media-understanding-provider-BRzfmJfY.js +86 -0
- package/dist/media-understanding-provider-Bd8aZtsH.js +11 -0
- package/dist/media-understanding-provider-By1hanjB.js +16 -0
- package/dist/media-understanding-provider-C6SiAxyT.js +11 -0
- package/dist/media-understanding-provider-DGKwGu0P.js +16 -0
- package/dist/media-understanding-provider-Jlh0zs2Z.js +17 -0
- package/dist/media-understanding-provider-SRUeyQqG.js +28 -0
- package/dist/media-understanding-provider-wimL3kdC.js +11 -0
- package/dist/media-understanding.runtime-BPtAeqrg.js +7 -0
- package/dist/media-understanding.runtime.js +1 -1
- package/dist/message-CzGnK5F3.js +206 -0
- package/dist/message-action-runner-BZ8x9K7O.js +1330 -0
- package/dist/message-handler-gpYZEW_K.js +1771 -0
- package/dist/messages-Xy50Pa2j.js +270 -0
- package/dist/migration-snapshot.runtime-jCZaBq39.js +3 -0
- package/dist/migration-snapshot.runtime.js +1 -1
- package/dist/model-catalog-sx4GaLTc.js +216 -0
- package/dist/model-catalog.runtime-DDSdoGE4.js +2 -0
- package/dist/model-catalog.runtime.js +1 -1
- package/dist/model-picker-CDs8bq1G.js +3 -0
- package/dist/model-picker-bY3x3ppH.js +439 -0
- package/dist/model-runtime-BiWDK2-B.js +1772 -0
- package/dist/model-selection-rJYfkbE0.js +407 -0
- package/dist/models-D5u4cqP1.js +3 -0
- package/dist/models-Xs8Qafsh.js +2550 -0
- package/dist/models-cli-6McdkNo9.js +197 -0
- package/dist/models-config-CAPHcyO2.js +1106 -0
- package/dist/models-config-DABSjBBO.js +2 -0
- package/dist/models-config.runtime-B4-0SSTG.js +2 -0
- package/dist/models-config.runtime.js +1 -1
- package/dist/models-provider-runtime-C0oxGm-e.js +2 -0
- package/dist/monitor-B1P5ei52.js +3622 -0
- package/dist/monitor-B8Q7rxtC.js +666 -0
- package/dist/monitor-B9o5AegX.js +3660 -0
- package/dist/monitor-BSMPXJ97.js +676 -0
- package/dist/monitor-BgD5Jrad.js +4067 -0
- package/dist/monitor-Bzvaap7m.js +1525 -0
- package/dist/monitor-DOHgeQjB.js +687 -0
- package/dist/monitor-auth-3ZkW5CEr.js +192 -0
- package/dist/monitor-polling.runtime-Bs9-PKyv.js +307 -0
- package/dist/monitor-polling.runtime.js +1 -1
- package/dist/monitor-provider-BhVxiO1J.js +1782 -0
- package/dist/monitor-webhook.runtime-DtF-7o03.js +297 -0
- package/dist/monitor-webhook.runtime.js +1 -1
- package/dist/msteams-BIcHfY4o.js +33 -0
- package/dist/nextcloud-talk-Csx58yBv.js +18 -0
- package/dist/nostr-CMrgscuJ.js +19 -0
- package/dist/notify-DSCFVe6i.js +298 -0
- package/dist/oauth-CthjG7hQ.js +152 -0
- package/dist/onboard-C-jsaHwd.js +307 -0
- package/dist/onboard-channels-I98y7NZ8.js +2 -0
- package/dist/onboard-channels-NS1vMCQr.js +705 -0
- package/dist/onboard-custom-BMQ33xqX.js +2 -0
- package/dist/onboard-custom-Dz1DOCJM.js +646 -0
- package/dist/onboard-helpers-BnxgMgMT.js +228 -0
- package/dist/onboard-helpers-DEn4dg5k.js +4 -0
- package/dist/onboard-oYw6GJEA.js +591 -0
- package/dist/onboard-remote-CMmcPmsN.js +2 -0
- package/dist/onboard-remote-uiiE3QnY.js +193 -0
- package/dist/onboard-skills-CttSUeZa.js +2 -0
- package/dist/onboard-skills-DbUk33Ct.js +134 -0
- package/dist/openai-codex-provider-DZN_1A31.js +254 -0
- package/dist/openai-provider-CxBasM1Z.js +272 -0
- package/dist/openclaw-tools.runtime-nwmrOrNY.js +2 -0
- package/dist/openclaw-tools.runtime.js +1 -1
- package/dist/outbound-adapter-DfYvjhM_.js +183 -0
- package/dist/outbound-session-BTLOycg4.js +41 -0
- package/dist/persistent-bindings.lifecycle-CR9WhqMq.js +159 -0
- package/dist/pi-embedded-T_JLa73v.js +40738 -0
- package/dist/pi-embedded.runtime-Bn2DltTS.js +4 -0
- package/dist/pi-embedded.runtime.js +1 -1
- package/dist/plugin-install-BQ6Yfbir.js +230 -0
- package/dist/plugin-install-config-policy-Dr_wjNho.js +93 -0
- package/dist/plugin-install-lmnNJcpj.js +2 -0
- package/dist/plugin-install-plan-BysT2Zgt.js +50 -0
- package/dist/plugin-sdk/acp-runtime.js +2 -2
- package/dist/plugin-sdk/agent-runtime.js +4 -4
- package/dist/plugin-sdk/approval-runtime.js +2 -2
- package/dist/plugin-sdk/channel-inbound.js +3 -3
- package/dist/plugin-sdk/command-auth.js +6 -6
- package/dist/plugin-sdk/compat.js +1 -1
- package/dist/plugin-sdk/config-runtime.js +4 -4
- package/dist/plugin-sdk/conversation-runtime.js +3 -3
- package/dist/plugin-sdk/core.js +2 -2
- package/dist/plugin-sdk/direct-dm.js +1 -1
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/infra-runtime.js +2 -2
- package/dist/plugin-sdk/irc.js +2 -2
- package/dist/plugin-sdk/matrix-runtime-heavy.js +3 -3
- package/dist/plugin-sdk/mattermost.js +4 -4
- package/dist/plugin-sdk/media-runtime.js +3 -3
- package/dist/plugin-sdk/media-understanding.js +2 -2
- package/dist/plugin-sdk/models-provider-runtime.js +2 -2
- package/dist/plugin-sdk/msteams.js +3 -3
- package/dist/plugin-sdk/nextcloud-talk.js +2 -2
- package/dist/plugin-sdk/nostr.js +2 -2
- package/dist/plugin-sdk/provider-auth-api-key.js +2 -2
- package/dist/plugin-sdk/provider-auth-login.js +1 -1
- package/dist/plugin-sdk/provider-auth.js +2 -2
- package/dist/plugin-sdk/provider-entry.js +1 -1
- package/dist/plugin-sdk/reply-dispatch-runtime.js +2 -2
- package/dist/plugin-sdk/reply-runtime.js +4 -4
- package/dist/plugin-sdk/session-store-runtime.js +2 -2
- package/dist/plugin-sdk/testing.js +3 -3
- package/dist/plugin-sdk/webhook-path.js +2 -29
- package/dist/plugin-sdk/zalo.js +2 -2
- package/dist/plugin-sdk/zalouser.js +2 -2
- package/dist/plugins/runtime/index.js +1 -1
- package/dist/plugins-cli-QKhcgiO8.js +561 -0
- package/dist/plugins-command-helpers-DhvJn5jI.js +116 -0
- package/dist/plugins-install-persist-Qeas2eSh.js +121 -0
- package/dist/plugins-update-command-BKJEivnf.js +974 -0
- package/dist/policy-Oilx4qmu.js +147 -0
- package/dist/preflight-audio-BmL4gGyL.js +48 -0
- package/dist/preflight-audio.runtime-CAepz41v.js +7 -0
- package/dist/preflight-audio.runtime.js +1 -1
- package/dist/prepare-8M63vDxs.js +1301 -0
- package/dist/probe-Btp49F9p.js +170 -0
- package/dist/probe-CAA_bibg.js +349 -0
- package/dist/probe-CcT1Zjlx.js +431 -0
- package/dist/probe-zQeRFb2K.js +1868 -0
- package/dist/profile-update-P49WNZII.js +67 -0
- package/dist/program-Kb8jcb5x.js +158 -0
- package/dist/prompt-select-styled-G8WwN-L7.js +6434 -0
- package/dist/provider-B2yqefja.js +3685 -0
- package/dist/provider-CzbklD1X.js +70 -0
- package/dist/provider-DIIdFC34.js +18901 -0
- package/dist/provider-api-key-auth-BliP73d_.js +109 -0
- package/dist/provider-api-key-auth.runtime.js +1 -1
- package/dist/provider-auth-DxViiapc.js +43 -0
- package/dist/provider-auth-api-key-BlF9OozZ.js +5 -0
- package/dist/provider-auth-login-DAhr6tMx.js +8 -0
- package/dist/provider-auth-login.runtime.js +1 -1
- package/dist/provider-discovery.runtime.js +1 -1
- package/dist/provider-dispatcher-BEZOvNvI.js +22 -0
- package/dist/provider-entry-CSq-QYSf.js +86 -0
- package/dist/provider-session.runtime-D3rfVYR5.js +7 -0
- package/dist/provider-session.runtime.js +1 -1
- package/dist/provider.runtime-Bbi0dGrm.js +2 -0
- package/dist/provider.runtime.js +1 -1
- package/dist/qr-image-IXoz2Bw3.js +2 -0
- package/dist/queue-Ca31F-8a.js +663 -0
- package/dist/reaction-runtime-api-CZLmJ_WX.js +114 -0
- package/dist/reactions-D-WSon-m.js +258 -0
- package/dist/read-only-account-inspect.telegram-MmNQAAZr.js +202 -0
- package/dist/register.agent-B7D4sSrd.js +240 -0
- package/dist/register.configure-BgQOxerG.js +15 -0
- package/dist/register.maintenance-CiTThGcR.js +449 -0
- package/dist/register.message-CReL6dlw.js +644 -0
- package/dist/register.onboard-DHhhEg9U.js +79 -0
- package/dist/register.setup-COczC1It.js +183 -0
- package/dist/register.status-health-sessions-DRX2aQSL.js +1206 -0
- package/dist/register.subclis-DXBjIEu_.js +3 -0
- package/dist/register.subclis-DokJMw3i.js +295 -0
- package/dist/replies-DuTJPPK4.js +118 -0
- package/dist/reply-CU8qGvKT.js +3192 -0
- package/dist/reply-blocks-BpVJG1en.js +103 -0
- package/dist/reply-dispatch-runtime-DxUm7xv8.js +3 -0
- package/dist/reply-runtime-CvaF7P6-.js +123 -0
- package/dist/reply.runtime-BfN6C1_l.js +2 -0
- package/dist/reply.runtime.js +1 -1
- package/dist/resolve-allowlist-C_Y8enFH.js +147 -0
- package/dist/resolve-targets-gk4hti4C.js +280 -0
- package/dist/rooms-Can12aFd.js +325 -0
- package/dist/route-reply-BxhqzhSe.js +133 -0
- package/dist/route-reply.runtime-BuSWcdvc.js +2 -0
- package/dist/route-reply.runtime.js +1 -1
- package/dist/route-resolution-DSj60ZbR.js +461 -0
- package/dist/rpc-context-a4f1uaqq.js +155 -0
- package/dist/run-main-CvRWW8mV.js +425 -0
- package/dist/runner-D_uJ9v3f.js +1479 -0
- package/dist/runtime-8Mw5wFou.js +68 -0
- package/dist/runtime-DQ8O9TLG.js +1175 -0
- package/dist/runtime-api-2l7jjGPw.js +3 -0
- package/dist/runtime-api-3_TNQnpI.js +81 -0
- package/dist/runtime-api-B6vjGOFJ.js +2 -0
- package/dist/runtime-api-BVjd5QC5.js +2 -0
- package/dist/runtime-api-BcMW34og.js +14 -0
- package/dist/runtime-api-Bih0haVa.js +2 -0
- package/dist/runtime-api-CZBqKHRi.js +2 -0
- package/dist/runtime-api-CnP_Jrha.js +2 -0
- package/dist/runtime-api-CnS87iaj.js +2 -0
- package/dist/runtime-api-DOLRVoZD.js +29 -0
- package/dist/runtime-api-R7oPeDFN.js +3676 -0
- package/dist/runtime-api-SP4kFvYZ.js +2 -0
- package/dist/runtime-api-y4jBsmod.js +2 -0
- package/dist/runtime-discord-ops.runtime.js +1 -1
- package/dist/runtime-embedded-pi.runtime-eHP2DunP.js +2 -0
- package/dist/runtime-embedded-pi.runtime.js +1 -1
- package/dist/runtime-media-understanding.runtime.js +1 -1
- package/dist/runtime-model-auth.runtime.js +1 -1
- package/dist/runtime-slack-ops.runtime.js +1 -1
- package/dist/runtime-tts.runtime.js +1 -1
- package/dist/sandbox-cli-DT2znKIY.js +443 -0
- package/dist/sdk-V8yEikk_.js +1108 -0
- package/dist/security-cli-DYR5zC6Y.js +477 -0
- package/dist/send-B-Z8V4Cq.js +532 -0
- package/dist/send-Bqywq3tg.js +3 -0
- package/dist/send-BxvA6SmF.js +100 -0
- package/dist/send-ChbtrSVp.js +2 -0
- package/dist/send-CzWEW9Zb.js +856 -0
- package/dist/send-DIfvOzDT.js +318 -0
- package/dist/send-DLHztqfo.js +442 -0
- package/dist/send-DYtTIT9n.js +178 -0
- package/dist/send-DiOk2E98.js +1076 -0
- package/dist/send.components-6LOUmhSy.js +2 -0
- package/dist/send.components-D75OT62r.js +942 -0
- package/dist/server-BNNkiKsj.js +9741 -0
- package/dist/server-cron-DuTAwT4O.js +4173 -0
- package/dist/server-cron-dsNWt3Xk.js +2 -0
- package/dist/server-lite-COJ3scXX.js +830 -0
- package/dist/server-maintenance-B1miba9h.js +542 -0
- package/dist/server-maintenance-Bc6xlNTK.js +2 -0
- package/dist/server-node-events-C8B10rlc.js +454 -0
- package/dist/server-node-subscriptions-BbcfGfam.js +2 -0
- package/dist/server-plugins-40fdRywj.js +10354 -0
- package/dist/server-plugins-D2LGejil.js +2 -0
- package/dist/server-startup-memory-BSth6DJB.js +2 -0
- package/dist/server-tailscale-Bwmz6UuQ.js +2 -0
- package/dist/services-CdVUH8cK.js +2 -0
- package/dist/session-DifMNh_t.js +50 -0
- package/dist/session-archive.runtime-EJGWbu-k.js +2 -0
- package/dist/session-archive.runtime.js +1 -1
- package/dist/session-envelope-Cc5bPuvN.js +18 -0
- package/dist/session-file-C6zGg-sn.js +120 -0
- package/dist/session-key-DPKf0dWL.js +52 -0
- package/dist/session-override-Cd7zBl0i.js +100 -0
- package/dist/session-reset-model.runtime-D_iAW4sx.js +119 -0
- package/dist/session-reset-model.runtime.js +1 -1
- package/dist/session-route-USlsJP9v.js +91 -0
- package/dist/session-store-runtime-Bac-IfWa.js +2 -0
- package/dist/session-subagent-reactivation.runtime-BrSBT1dK.js +2 -0
- package/dist/session-subagent-reactivation.runtime.js +1 -1
- package/dist/session-transcript-files.fs-D2Mq9mp7.js +149 -0
- package/dist/session-updates-RRq3LS7F.js +222 -0
- package/dist/session-updates.runtime-DlCqhR2y.js +2 -0
- package/dist/session-updates.runtime.js +1 -1
- package/dist/session-utils-B6yctVT6.js +1743 -0
- package/dist/sessions-BDZF0KSB.js +224 -0
- package/dist/sessions-Di_GACQe.js +2 -0
- package/dist/sessions-xeX9HpAZ.js +443 -0
- package/dist/setup-Du8OSH3g.js +427 -0
- package/dist/setup-api-ALaLEpZD.js +2 -0
- package/dist/setup-bootstrap-Dzdz67yA.js +54 -0
- package/dist/setup-core-CljP-9Aw.js +256 -0
- package/dist/setup-core-mlfG8i3t.js +146 -0
- package/dist/setup-surface-8NjprfQ4.js +261 -0
- package/dist/setup-surface-BBhpO_bO.js +304 -0
- package/dist/setup-surface-BpJACnBD.js +450 -0
- package/dist/setup-surface-C3-Jx6vF.js +272 -0
- package/dist/setup-surface-CzMh5yAL.js +656 -0
- package/dist/setup-surface-CzzVm3hE.js +353 -0
- package/dist/setup-surface-D6yTgwHY.js +346 -0
- package/dist/setup-surface-DjJE20Ud.js +484 -0
- package/dist/setup-surface-DpqfELkE.js +261 -0
- package/dist/setup-surface-VdCxFOLw.js +237 -0
- package/dist/setup-surface-fuNIOdUY.js +8848 -0
- package/dist/setup-surface-v155bftZ.js +333 -0
- package/dist/setup.finalize-iyzp5VAT.js +458 -0
- package/dist/setup.gateway-config-CU0y8lbT.js +247 -0
- package/dist/shared-Blh_fJTo.js +64 -0
- package/dist/shared-CBnUPRHA.js +180 -0
- package/dist/shared-CM5Gt0l4.js +198 -0
- package/dist/shared-CaqlRGF3.js +160 -0
- package/dist/shared-Cf75swpz.js +144 -0
- package/dist/shared-DL7by7Wd.js +2 -0
- package/dist/shared-DSx0wubR.js +72 -0
- package/dist/shared-DykGaEWS.js +94 -0
- package/dist/shared-azg27y31.js +78 -0
- package/dist/shared-runtime-Bt4waeX3.js +7 -0
- package/dist/skills-install-ByDR1-M6.js +819 -0
- package/dist/slash-commands-DG50c1a2.js +672 -0
- package/dist/slash-commands.runtime-CVcxhZ8u.js +20 -0
- package/dist/slash-commands.runtime.js +1 -1
- package/dist/slash-dispatch.runtime-C_YtFTUx.js +38 -0
- package/dist/slash-dispatch.runtime.js +1 -1
- package/dist/slash-skill-commands.runtime-Bj_cUvfb.js +8 -0
- package/dist/slash-skill-commands.runtime.js +1 -1
- package/dist/speech-provider-CC-UZuqH.js +190 -0
- package/dist/src-CAL53FNb.js +2739 -0
- package/dist/startup-verification-BpSIv6hV.js +131 -0
- package/dist/state-migrations-BZk1lezo.js +845 -0
- package/dist/status-8IelSped.js +650 -0
- package/dist/status-BVcZIA1F.js +3 -0
- package/dist/status-Bf-qPLzv.js +608 -0
- package/dist/status-BviySeE3.js +2 -0
- package/dist/status-all-Cmj7Gw5o.js +798 -0
- package/dist/status-issues--arI8w_g.js +187 -0
- package/dist/status-issues-byw_R8T_.js +336 -0
- package/dist/status-json-CKuOdeh3.js +86 -0
- package/dist/status.command.text-runtime-B3Z2fUDH.js +18 -0
- package/dist/status.scan-boBZeJmL.js +264 -0
- package/dist/status.scan.fast-json-AJppC2D5.js +97 -0
- package/dist/status.scan.fast-json-shj4aBtI.js +2 -0
- package/dist/status.scan.json-core-BpHhaewp.js +254 -0
- package/dist/status.summary-C4itGbbW.js +210 -0
- package/dist/status.summary-zSPMfFai.js +2 -0
- package/dist/sticker-cache-BN_g5-an.js +1573 -0
- package/dist/sticker-vision.runtime-DC2hIjcl.js +16 -0
- package/dist/sticker-vision.runtime.js +1 -1
- package/dist/storage-YrOCuZuJ.js +234 -0
- package/dist/store-DJaTq2_f.js +1343 -0
- package/dist/store.runtime-B05zX98d.js +2 -0
- package/dist/store.runtime.js +1 -1
- package/dist/stream-D5aKuhrW.js +633 -0
- package/dist/subagent-orphan-recovery-vUbckcfb.js +206 -0
- package/dist/subagent-registry-runtime-BE_luJ3B.js +2 -0
- package/dist/supervisor-log.runtime.js +1 -1
- package/dist/targets-BG8dKyny.js +748 -0
- package/dist/task-registry-delivery-runtime-B-oO-IGC.js +2 -0
- package/dist/task-registry.audit-BCghpxrn.js +320 -0
- package/dist/task-registry.maintenance-B55J7Hf8.js +2 -0
- package/dist/telegram/token.js +1 -1
- package/dist/test-api-BBW7IReU.js +47 -0
- package/dist/testing-fkQ9XFkv.js +677 -0
- package/dist/thread-bindings-B0ugWuKq.js +534 -0
- package/dist/thread-bindings-Dx2arldI.js +778 -0
- package/dist/thread-bindings-iFF5pMFx.js +219 -0
- package/dist/thread-bindings-lTuhY3On.js +352 -0
- package/dist/thread-bindings.discord-api-iGyDtjBI.js +487 -0
- package/dist/threading-7EMTgTsu.js +832 -0
- package/dist/threading-BkydE-cL.js +2 -0
- package/dist/threading-tool-context-C3JbrV_5.js +157 -0
- package/dist/token-wT6DwKaB.js +82 -0
- package/dist/tool-actions.runtime-B5mERIej.js +532 -0
- package/dist/tool-actions.runtime.js +1 -1
- package/dist/tools-effective-inventory-DWXkEygO.js +148 -0
- package/dist/tts.runtime.js +1 -1
- package/dist/ui-CC9JMpg4.js +212 -0
- package/dist/update-BjW3w9eI.js +1253 -0
- package/dist/update-cli-B27tZquO.js +1447 -0
- package/dist/update-runner-BMiyTW62.js +1195 -0
- package/dist/verification-C_ZgAv5v.js +130 -0
- package/dist/verification-DCQ1M0pg.js +2 -0
- package/dist/x-search-Btj7UfUg.js +166 -0
- package/dist/zalo-CnU0tzBl.js +13 -0
- package/dist/zalo-js-InpiWFuE.js +1156 -0
- package/dist/zalouser-CuRMbL4r.js +22 -0
- package/package.json +4 -1
- package/dist/abort-CuFxEr2t.js +0 -192
- package/dist/abort-cutoff.runtime-CU97Q3Ef.js +0 -20
- package/dist/abort.runtime-CZflOJv6.js +0 -2
- package/dist/access-control-CLswIHY1.js +0 -152
- package/dist/account-inspect-DiDpXY0-.js +0 -158
- package/dist/accounts-BwSkt2tm.js +0 -57
- package/dist/accounts-C8c90Uek.js +0 -2
- package/dist/accounts-CiFhbmdr.js +0 -107
- package/dist/accounts-D9Qnnbfl.js +0 -102
- package/dist/accounts-DKwfzzAC.js +0 -137
- package/dist/acp-runtime-CwGef6ZP.js +0 -8
- package/dist/acp-stateful-target-driver-p0EDW10u.js +0 -60
- package/dist/action-runtime-BWY3HXxf.js +0 -318
- package/dist/action-runtime-DNi9yizU.js +0 -72
- package/dist/action-runtime-api-BSPlMrO-.js +0 -1028
- package/dist/actions-MNvlds_S.js +0 -531
- package/dist/actions.runtime--mEwSSNe.js +0 -18
- package/dist/actions.runtime-B1HzEE8Z.js +0 -5
- package/dist/actions.runtime-BG6xvov3.js +0 -2
- package/dist/agent-CGwFOztX.js +0 -2
- package/dist/agent-command-IPMBbUVI.js +0 -1457
- package/dist/agent-runner.runtime-Bzf0jJA9.js +0 -2241
- package/dist/agent-runtime-oVxaAl9G.js +0 -142
- package/dist/agent-tools-login-BIEsXGSl.js +0 -57
- package/dist/agents-CYexVjSC.js +0 -888
- package/dist/agents-DpXXlVMm.js +0 -5
- package/dist/api-B5hYfONF2.js +0 -322
- package/dist/api-CWf7SD_r.js +0 -2
- package/dist/api-CoVu8JQC.js +0 -6
- package/dist/api-D1zC-04H.js +0 -2
- package/dist/api-DAJXC6Eh.js +0 -5
- package/dist/api-DIBiOiU5.js +0 -5
- package/dist/api-DNiO8MKu.js +0 -10
- package/dist/apply-T4gGjbIw.js +0 -485
- package/dist/apply.runtime-BIKyTMdb.js +0 -2
- package/dist/approval-native-PdTPYbWz.js +0 -79
- package/dist/approval-runtime-DQds_bzO.js +0 -262
- package/dist/attachment-normalize-KVBm83XJ.js +0 -921
- package/dist/audit-ClUk-eTw.js +0 -892
- package/dist/audit-NQngcqbL.js +0 -86
- package/dist/audit-channel.collect.runtime-BJlZ1Tqv.js +0 -528
- package/dist/audit-channel.telegram.runtime-CoLwvFcv.js +0 -8
- package/dist/audit-extra.async-B3ODYISl.js +0 -820
- package/dist/audit.deep.runtime-BaiMFfPv.js +0 -2
- package/dist/audit.nondeep.runtime-Cvt1jVHR.js +0 -831
- package/dist/audit.runtime-BOuTTKD4.js +0 -7
- package/dist/auth-BuSqMfLL.js +0 -181
- package/dist/auth-choice-B69NsSNK.js +0 -69
- package/dist/auth-choice-C7dAbZYQ.js +0 -3
- package/dist/auth-choice-ChlvsxHZ.js +0 -341
- package/dist/binding-targets-i1Phu9Ml.js +0 -99
- package/dist/bot-DA6nZ125.js +0 -4268
- package/dist/bot-message-context-4RzAPTiL.js +0 -2
- package/dist/bot-message-context-Bd0CyeDw.js +0 -1175
- package/dist/bot-message-context.runtime-CwPXKJUK.js +0 -7
- package/dist/bot-message-context.session.runtime-C9Qk9RJ2.js +0 -12
- package/dist/bot-native-commands.delivery.runtime-DP3bmRQI.js +0 -3
- package/dist/bot-native-commands.runtime-CIprmHSX.js +0 -11
- package/dist/build-info.json +0 -5
- package/dist/bundled/boot-md/HOOK.md +0 -20
- package/dist/bundled/bootstrap-extra-files/HOOK.md +0 -53
- package/dist/bundled/command-logger/HOOK.md +0 -122
- package/dist/bundled/session-memory/HOOK.md +0 -108
- package/dist/bundled/workflow-summary/HOOK.md +0 -123
- package/dist/canvas-host/a2ui/.bundle.hash +0 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +0 -14896
- package/dist/canvas-host/a2ui/index.html +0 -307
- package/dist/channel-5dQinNdH.js +0 -783
- package/dist/channel-7CzQF9TT.js +0 -1135
- package/dist/channel-B4fvHRK-.js +0 -698
- package/dist/channel-B_TyijiN.js +0 -454
- package/dist/channel-Bcj7dCz-.js +0 -208
- package/dist/channel-CAPp1zv2.js +0 -599
- package/dist/channel-CSFDlAzr.js +0 -337
- package/dist/channel-CYMfBONo.js +0 -4976
- package/dist/channel-CkvHjmWG.js +0 -883
- package/dist/channel-CoWCft7t.js +0 -1217
- package/dist/channel-DNTrg5rc.js +0 -1661
- package/dist/channel-Dw5L6ZCL.js +0 -1129
- package/dist/channel-DzPVCd5F.js +0 -361
- package/dist/channel-GiLFmQxZ.js +0 -800
- package/dist/channel-XFvR7Dxh.js +0 -788
- package/dist/channel-inbound-bfoCnYI3.js +0 -30
- package/dist/channel-plugin-resolution-BMT07Y4B.js +0 -144
- package/dist/channel-shared-BNnyz1wC.js +0 -58
- package/dist/channel.runtime-B_dMxh1q.js +0 -125
- package/dist/channel.runtime-B_fR3JCp.js +0 -335
- package/dist/channel.runtime-BhQ_73jj.js +0 -14
- package/dist/channel.runtime-CDgrnVP6.js +0 -108
- package/dist/channel.runtime-DPFtjm6K.js +0 -309
- package/dist/channel.runtime-DigoZ45U.js +0 -80
- package/dist/channel.runtime-IHt2hi0h.js +0 -22252
- package/dist/channel.runtime-M3E3w35V.js +0 -373
- package/dist/channel.setup-CQIfV874.js +0 -279
- package/dist/channels-PlRayWHp.js +0 -1134
- package/dist/channels-cli-B4MObWHe.js +0 -246
- package/dist/clawhub-UfARocx9.js +0 -163
- package/dist/cli-B7qV90_y.js +0 -152
- package/dist/cli-DoYOPf2E.js +0 -695
- package/dist/cli-migration-7qu0VuUR.js +0 -100
- package/dist/cli-runner-C1qdQ4P5.js +0 -1014
- package/dist/cli-startup-metadata.json +0 -14
- package/dist/client-bootstrap-Bf-VJF8o.js +0 -2
- package/dist/client-bootstrap-BtDC_ghW.js +0 -121
- package/dist/client-c8NPFdV6.js +0 -7
- package/dist/client-xBBbf9T_.js +0 -5
- package/dist/code-execution-IwkUcM9K.js +0 -142
- package/dist/command-auth-CDvEQqI-.js +0 -64
- package/dist/command-registry-1pRI9W0V.js +0 -3
- package/dist/command-registry-Dr8xswzu.js +0 -199
- package/dist/commands-B7zoPsaq.js +0 -4
- package/dist/commands-acp-_0Jt7bpI.js +0 -990
- package/dist/commands-core-B2PxYebU.js +0 -241
- package/dist/commands-core.runtime-Bk-kMe8I.js +0 -2
- package/dist/commands-handlers.runtime-Dp-fdvyC.js +0 -3708
- package/dist/commands-info-CM-kPvq5.js +0 -651
- package/dist/commands-models-B_KkCnYQ.js +0 -395
- package/dist/commands-status.runtime-B7xG5l06.js +0 -2
- package/dist/commands.runtime-DTcg2ygT.js +0 -4
- package/dist/compact.runtime-C-TOc6On.js +0 -7
- package/dist/completion-cli-DYyVmY2G.js +0 -466
- package/dist/completion-cli-IsVueMzq.js +0 -2
- package/dist/config-DgES7wDO.js +0 -475
- package/dist/config-cli-B-FLvmji.js +0 -945
- package/dist/config-guard-DolG9Hb3.js +0 -113
- package/dist/config-runtime-DOU6nuit.js +0 -13
- package/dist/config-secret-input.runtime-D8uisXyK.js +0 -3
- package/dist/config-update-6NzLhzi0.js +0 -3
- package/dist/config-update-DvNp6OTj.js +0 -127
- package/dist/configure-BMLNn-t4.js +0 -1140
- package/dist/configure-Ce061vUB.js +0 -2
- package/dist/context-B_IskqEg.js +0 -227
- package/dist/control-ui/assets/agents-BQThDjmV.js +0 -813
- package/dist/control-ui/assets/anthropic-DgG8lDlL.js +0 -37
- package/dist/control-ui/assets/azure-openai-responses-CBgrXqWI.js +0 -2
- package/dist/control-ui/assets/channel-config-extras-DNCeHtEf.js +0 -2
- package/dist/control-ui/assets/channels-Dpq8rmYk.js +0 -349
- package/dist/control-ui/assets/cron-Cc7oz4VO.js +0 -928
- package/dist/control-ui/assets/de-DU-XmSEb.js +0 -2
- package/dist/control-ui/assets/debug-CwAvIw7x.js +0 -94
- package/dist/control-ui/assets/dist-D8DZLmCF.js +0 -18
- package/dist/control-ui/assets/es-Be891ZDf.js +0 -2
- package/dist/control-ui/assets/github-copilot-headers-CrI0CIJ7.js +0 -2
- package/dist/control-ui/assets/google-D-Vqc1qj.js +0 -2
- package/dist/control-ui/assets/google-gemini-cli-BpxbH95Q.js +0 -3
- package/dist/control-ui/assets/google-shared-CbPHVnPr.js +0 -12
- package/dist/control-ui/assets/google-vertex-lQwbjEII.js +0 -2
- package/dist/control-ui/assets/hash-Bt1aVMQ3.js +0 -2
- package/dist/control-ui/assets/index-CUmjeRtH.js +0 -4841
- package/dist/control-ui/assets/instances-BwyJkk_4.js +0 -57
- package/dist/control-ui/assets/logs-vVeVJ0CI.js +0 -74
- package/dist/control-ui/assets/mistral-C-PkU019.js +0 -8
- package/dist/control-ui/assets/nodes-CeaJKODa.js +0 -430
- package/dist/control-ui/assets/openai-Cn7eGqwa.js +0 -17
- package/dist/control-ui/assets/openai-codex-responses-Cr7J2fxH.js +0 -8
- package/dist/control-ui/assets/openai-completions-ZUYR4bUM.js +0 -6
- package/dist/control-ui/assets/openai-responses-D5cbpSni.js +0 -2
- package/dist/control-ui/assets/openai-responses-shared-BzAz6CNs.js +0 -11
- package/dist/control-ui/assets/pt-BR-RqwUvKTB.js +0 -2
- package/dist/control-ui/assets/sessions-_scr02pD.js +0 -236
- package/dist/control-ui/assets/skills-DCt5NidQ.js +0 -216
- package/dist/control-ui/assets/skills-shared-DJsJP4-4.js +0 -11
- package/dist/control-ui/assets/transform-messages-XKqwKV3D.js +0 -2
- package/dist/control-ui/assets/zh-CN-CUzhgfRs.js +0 -2
- package/dist/control-ui/assets/zh-TW-CCgwa2eS.js +0 -2
- package/dist/conversation-bindings-BWn8Eq0t.js +0 -210
- package/dist/conversation-id-CIpyn-VD.js +0 -168
- package/dist/conversation-runtime-BpJdJqei.js +0 -85
- package/dist/core-BsdZRsb0.js +0 -195
- package/dist/create-client-HZBJ7-Fl.js +0 -2
- package/dist/create-client-WqOz1ro_.js +0 -58
- package/dist/credentials-5vTiF-oK.js +0 -22
- package/dist/credentials-write.runtime-3bouyp8U.js +0 -9
- package/dist/crypto-runtime-DirRLBDM.js +0 -3495
- package/dist/daemon-cli-AJpZY4sn.js +0 -383
- package/dist/daemon-install-FZTHcBaU.js +0 -63
- package/dist/delegate-BaC3I_I2.js +0 -43
- package/dist/deliver-BaDjGKa4.js +0 -3
- package/dist/deliver-CWBM3uFK.js +0 -954
- package/dist/deliver-reply-B1lULS4T.js +0 -238
- package/dist/deliver-runtime-C9wPhPVo.js +0 -2
- package/dist/delivery-info-UablM7m8.js +0 -40
- package/dist/delivery-jNAx1UXj.js +0 -834
- package/dist/direct-dm-BOWirToy.js +0 -139
- package/dist/direct-management-D7iGx6GI.js +0 -300
- package/dist/direct-management-DmQUf3My.js +0 -2
- package/dist/directive-handling.fast-lane-BgUe6rBZ.js +0 -64
- package/dist/directive-handling.fast-lane-C__EV2OZ.js +0 -2
- package/dist/directive-handling.impl-D466FFH9.js +0 -672
- package/dist/directive-handling.impl-tl3nNkjQ.js +0 -2
- package/dist/directive-handling.parse-H-NqZbGQ.js +0 -375
- package/dist/directive-handling.persist-D-TH7X00.js +0 -133
- package/dist/directive-handling.persist.runtime-CKzh0FFl.js +0 -2
- package/dist/directive-handling.shared-CMdDhj2s.js +0 -158
- package/dist/directory-cli-BkFOqvau.js +0 -238
- package/dist/directory.static-CWHw_6bd.js +0 -45
- package/dist/discovery-CmDmBzyt.js +0 -171
- package/dist/dispatch-5P8XNY-z.js +0 -858
- package/dist/dispatch-acp.runtime-BXLlUo6a.js +0 -884
- package/dist/doctor-completion-C-PtqnX4.js +0 -90
- package/dist/doctor-config-preflight--G_zFI_P.js +0 -148
- package/dist/doctor-config-preflight-Cgmj0J2d.js +0 -2
- package/dist/doctor-state-migrations-B4vgkpe8.js +0 -3
- package/dist/doctor-state-migrations-R3EnGfXE.js +0 -2
- package/dist/embedding-provider-DllEP1OZ.js +0 -129
- package/dist/encryption-guidance-DDwXFxqS.js +0 -33
- package/dist/error-text-C4BdRT0b.js +0 -24
- package/dist/exec-approval-session-target-BpHDdAt6.js +0 -159
- package/dist/exec-approvals-Lpud2QXU.js +0 -121
- package/dist/export-html/template.css +0 -1060
- package/dist/export-html/template.html +0 -88
- package/dist/export-html/template.js +0 -1875
- package/dist/export-html/vendor/highlight.min.js +0 -1213
- package/dist/export-html/vendor/marked.min.js +0 -6
- package/dist/format-CerBTToC.js +0 -817
- package/dist/gateway-BuNsK2ll.js +0 -2575
- package/dist/gateway-cli-WL9O_amN.js +0 -1596
- package/dist/gateway-install-token-DBjV7vuQ.js +0 -230
- package/dist/get-reply-from-config.runtime-Ci2UvY3-.js +0 -2
- package/dist/gmail-watcher-lifecycle-BE_4dMST.js +0 -2
- package/dist/graph-users-CGePGfzI.js +0 -918
- package/dist/group-access-D9zxJ9Eg.js +0 -119
- package/dist/group-access-qaCYNF5W.js +0 -32
- package/dist/handle-action-CqjxOWwH.js +0 -500
- package/dist/health-Ckh-98zt.js +0 -577
- package/dist/health-Dte2hwwy.js +0 -2
- package/dist/heartbeat-runner-BSkqJHkl.js +0 -995
- package/dist/hooks-cli-5qH5guhQ.js +0 -353
- package/dist/http-client-E-AK0hBj.js +0 -294
- package/dist/image-Dflgshq4.js +0 -152
- package/dist/image-runtime-C8N4pHiL.js +0 -7
- package/dist/inbound-reply-dispatch-DnSGPONh.js +0 -73
- package/dist/inbound.runtime-CSV1NzQc.js +0 -3
- package/dist/infra-runtime-B0CHuzrJ.js +0 -22
- package/dist/install-security-scan-pEC-BNIh.js +0 -22
- package/dist/install-security-scan.runtime-KtCBz8Ms.js +0 -299
- package/dist/install-slQpgebI.js +0 -590
- package/dist/install.runtime-BDKuVJIa.js +0 -27
- package/dist/install.runtime-Cdb5F3uW.js +0 -11
- package/dist/irc-CWidrqqa.js +0 -14
- package/dist/legacy-crypto-restore-DrVtd4-4.js +0 -85
- package/dist/library-CmpBsnzV.js +0 -44
- package/dist/llm-slug-generator-5ztca3GP.js +0 -68
- package/dist/loader-BOVnpEv5.js +0 -2
- package/dist/login-I8HWXek2.js +0 -108
- package/dist/login-Xx8YN-Ut.js +0 -2332
- package/dist/login-qr-AEmAM7Qe.js +0 -211
- package/dist/login-qr-api-BSW8Ta-A.js +0 -16
- package/dist/manager.runtime-DpPqh8fu.js +0 -670
- package/dist/matrix-CVj94cvn.js +0 -351
- package/dist/matrix-runtime-heavy-n2o8hviY.js +0 -4
- package/dist/mattermost-D0PPzHDR.js +0 -18
- package/dist/media-CS8BGM6_.js +0 -1691
- package/dist/media-runtime-CzcnSxHP.js +0 -295
- package/dist/media-understanding-6pmWMadX.js +0 -51
- package/dist/media-understanding-provider--2czf2Xl.js +0 -16
- package/dist/media-understanding-provider-1v3aAmph.js +0 -17
- package/dist/media-understanding-provider-Bo02B0WG.js +0 -16
- package/dist/media-understanding-provider-C1e568I5.js +0 -86
- package/dist/media-understanding-provider-DftOn7qM.js +0 -28
- package/dist/media-understanding-provider-JfEcvB6a.js +0 -11
- package/dist/media-understanding-provider-Zvb9Fi0L.js +0 -11
- package/dist/media-understanding-provider-fpeKUYrh.js +0 -11
- package/dist/media-understanding.runtime-CBg9Myvx.js +0 -7
- package/dist/message-DTcLbUjJ.js +0 -206
- package/dist/message-action-runner-Nkrb1psP.js +0 -1330
- package/dist/message-handler-ozmV6rws.js +0 -1771
- package/dist/messages-W3Tl9C55.js +0 -270
- package/dist/migration-snapshot.runtime-CBx6_nXj.js +0 -3
- package/dist/model-catalog-BdRYqKL1.js +0 -216
- package/dist/model-catalog.runtime--yFOIYWV.js +0 -2
- package/dist/model-picker-Cgjw3ytp.js +0 -3
- package/dist/model-picker-jZueDrUL.js +0 -439
- package/dist/model-runtime-51DWArDE.js +0 -1772
- package/dist/model-selection-BohZPMIS.js +0 -407
- package/dist/models-By72Z6_k.js +0 -2550
- package/dist/models-Dgkh71VB.js +0 -3
- package/dist/models-cli-6ZWkpdCu.js +0 -197
- package/dist/models-config-C4DcwiKp.js +0 -2
- package/dist/models-config-CMbP7C_L.js +0 -1106
- package/dist/models-config.runtime-Chha_CyE.js +0 -2
- package/dist/models-provider-runtime-Bu0Agcak.js +0 -2
- package/dist/monitor-B7gDwViK.js +0 -3622
- package/dist/monitor-BE6u7xIu.js +0 -1525
- package/dist/monitor-BRMbIrFT.js +0 -3660
- package/dist/monitor-COLTfgXl.js +0 -676
- package/dist/monitor-CvHGVZmI.js +0 -4067
- package/dist/monitor-DB9RduAn.js +0 -687
- package/dist/monitor-DL7WkrAh.js +0 -666
- package/dist/monitor-auth-EM0izKiw.js +0 -192
- package/dist/monitor-polling.runtime-DFWDyq0r.js +0 -307
- package/dist/monitor-provider-BCduxzuC.js +0 -1782
- package/dist/monitor-webhook.runtime-66MaZoy1.js +0 -297
- package/dist/msteams-DfVsNAAv.js +0 -33
- package/dist/nextcloud-talk-DzdSPp33.js +0 -18
- package/dist/nostr-CA9Nyz3w.js +0 -19
- package/dist/notify-C6g-CT-E.js +0 -298
- package/dist/oauth-0jEycYdH.js +0 -152
- package/dist/onboard-BBY0wtI-.js +0 -591
- package/dist/onboard-BJZUne8W.js +0 -307
- package/dist/onboard-channels-2M_l-yYq.js +0 -705
- package/dist/onboard-channels-B8fOn_J8.js +0 -2
- package/dist/onboard-custom-BQxH-LlD.js +0 -646
- package/dist/onboard-custom-BXJFm5tv.js +0 -2
- package/dist/onboard-helpers-DAmUY5cA.js +0 -228
- package/dist/onboard-helpers-DalDwXjg.js +0 -4
- package/dist/onboard-remote-CAS2F09D.js +0 -2
- package/dist/onboard-remote-nfFOhKzl.js +0 -193
- package/dist/onboard-skills-CH4ZsJr7.js +0 -2
- package/dist/onboard-skills-DSYZC5D0.js +0 -134
- package/dist/openai-codex-provider-B_8TNnmh.js +0 -254
- package/dist/openai-provider-CwnYhA5Q.js +0 -272
- package/dist/openclaw-tools.runtime-1mX4RgUb.js +0 -2
- package/dist/outbound-adapter-DDaf1Qmt.js +0 -183
- package/dist/outbound-session-XCEG44pM.js +0 -41
- package/dist/persistent-bindings.lifecycle-CC1LNlZw.js +0 -159
- package/dist/pi-embedded-B2zIKehU.js +0 -40738
- package/dist/pi-embedded.runtime-tIoF88cE.js +0 -4
- package/dist/plugin-install-CqzqZMog.js +0 -230
- package/dist/plugin-install-P8ACZKV4.js +0 -2
- package/dist/plugin-install-config-policy-CWxlz2Uf.js +0 -93
- package/dist/plugin-install-plan-D2X3sbgg.js +0 -50
- package/dist/plugin-sdk/account-core.d.ts +0 -1
- package/dist/plugin-sdk/account-helpers.d.ts +0 -1
- package/dist/plugin-sdk/account-id.d.ts +0 -1
- package/dist/plugin-sdk/account-resolution.d.ts +0 -1
- package/dist/plugin-sdk/acp-runtime.d.ts +0 -1
- package/dist/plugin-sdk/agent-config-primitives.d.ts +0 -1
- package/dist/plugin-sdk/agent-runtime.d.ts +0 -1
- package/dist/plugin-sdk/allow-from.d.ts +0 -1
- package/dist/plugin-sdk/allowlist-config-edit.d.ts +0 -1
- package/dist/plugin-sdk/amazon-bedrock.d.ts +0 -1
- package/dist/plugin-sdk/anthropic-vertex.d.ts +0 -1
- package/dist/plugin-sdk/approval-runtime.d.ts +0 -1
- package/dist/plugin-sdk/bluebubbles-policy.d.ts +0 -1
- package/dist/plugin-sdk/bluebubbles.d.ts +0 -1
- package/dist/plugin-sdk/boolean-param.d.ts +0 -1
- package/dist/plugin-sdk/browser-runtime.d.ts +0 -1
- package/dist/plugin-sdk/browser-support.d.ts +0 -1
- package/dist/plugin-sdk/browser.d.ts +0 -1
- package/dist/plugin-sdk/byteplus.d.ts +0 -1
- package/dist/plugin-sdk/channel-actions.d.ts +0 -1
- package/dist/plugin-sdk/channel-config-helpers.d.ts +0 -1
- package/dist/plugin-sdk/channel-config-primitives.d.ts +0 -1
- package/dist/plugin-sdk/channel-config-schema.d.ts +0 -1
- package/dist/plugin-sdk/channel-config-writes.d.ts +0 -1
- package/dist/plugin-sdk/channel-contract.d.ts +0 -1
- package/dist/plugin-sdk/channel-feedback.d.ts +0 -1
- package/dist/plugin-sdk/channel-inbound.d.ts +0 -1
- package/dist/plugin-sdk/channel-lifecycle.d.ts +0 -1
- package/dist/plugin-sdk/channel-pairing.d.ts +0 -1
- package/dist/plugin-sdk/channel-policy.d.ts +0 -1
- package/dist/plugin-sdk/channel-reply-pipeline.d.ts +0 -1
- package/dist/plugin-sdk/channel-runtime.d.ts +0 -1
- package/dist/plugin-sdk/channel-send-result.d.ts +0 -1
- package/dist/plugin-sdk/channel-setup.d.ts +0 -1
- package/dist/plugin-sdk/channel-status.d.ts +0 -1
- package/dist/plugin-sdk/channel-targets.d.ts +0 -1
- package/dist/plugin-sdk/chutes.d.ts +0 -1
- package/dist/plugin-sdk/cli-backend.d.ts +0 -1
- package/dist/plugin-sdk/cli-runtime.d.ts +0 -1
- package/dist/plugin-sdk/cloudflare-ai-gateway.d.ts +0 -1
- package/dist/plugin-sdk/collection-runtime.d.ts +0 -1
- package/dist/plugin-sdk/command-auth-native.d.ts +0 -1
- package/dist/plugin-sdk/command-auth.d.ts +0 -1
- package/dist/plugin-sdk/command-detection.d.ts +0 -1
- package/dist/plugin-sdk/command-surface.d.ts +0 -1
- package/dist/plugin-sdk/compat.d.ts +0 -1
- package/dist/plugin-sdk/config-runtime.d.ts +0 -1
- package/dist/plugin-sdk/conversation-runtime.d.ts +0 -1
- package/dist/plugin-sdk/core.d.ts +0 -1
- package/dist/plugin-sdk/dangerous-name-runtime.d.ts +0 -1
- package/dist/plugin-sdk/deepseek.d.ts +0 -1
- package/dist/plugin-sdk/device-bootstrap.d.ts +0 -1
- package/dist/plugin-sdk/diagnostic-runtime.d.ts +0 -1
- package/dist/plugin-sdk/diagnostics-otel.d.ts +0 -1
- package/dist/plugin-sdk/diffs.d.ts +0 -1
- package/dist/plugin-sdk/direct-dm.d.ts +0 -1
- package/dist/plugin-sdk/directory-runtime.d.ts +0 -1
- package/dist/plugin-sdk/discord-account.d.ts +0 -1
- package/dist/plugin-sdk/discord-core.d.ts +0 -1
- package/dist/plugin-sdk/discord-runtime-surface.d.ts +0 -1
- package/dist/plugin-sdk/discord-session-key.d.ts +0 -1
- package/dist/plugin-sdk/discord-surface.d.ts +0 -1
- package/dist/plugin-sdk/discord-thread-bindings.d.ts +0 -1
- package/dist/plugin-sdk/discord-timeouts.d.ts +0 -1
- package/dist/plugin-sdk/discord.d.ts +0 -1
- package/dist/plugin-sdk/error-runtime.d.ts +0 -1
- package/dist/plugin-sdk/extension-shared.d.ts +0 -1
- package/dist/plugin-sdk/extensions/anthropic/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/anthropic/cli-shared.d.ts +0 -8
- package/dist/plugin-sdk/extensions/anthropic/stream-wrappers.d.ts +0 -12
- package/dist/plugin-sdk/extensions/bluebubbles/api.d.ts +0 -5
- package/dist/plugin-sdk/extensions/bluebubbles/src/account-resolve.d.ts +0 -13
- package/dist/plugin-sdk/extensions/bluebubbles/src/accounts.d.ts +0 -17
- package/dist/plugin-sdk/extensions/bluebubbles/src/actions.d.ts +0 -2
- package/dist/plugin-sdk/extensions/bluebubbles/src/actions.runtime.d.ts +0 -19
- package/dist/plugin-sdk/extensions/bluebubbles/src/attachments.d.ts +0 -34
- package/dist/plugin-sdk/extensions/bluebubbles/src/channel-shared.d.ts +0 -49
- package/dist/plugin-sdk/extensions/bluebubbles/src/channel.d.ts +0 -4
- package/dist/plugin-sdk/extensions/bluebubbles/src/channel.runtime.d.ts +0 -13
- package/dist/plugin-sdk/extensions/bluebubbles/src/chat.d.ts +0 -48
- package/dist/plugin-sdk/extensions/bluebubbles/src/config-apply.d.ts +0 -15
- package/dist/plugin-sdk/extensions/bluebubbles/src/config-schema.d.ts +0 -76
- package/dist/plugin-sdk/extensions/bluebubbles/src/config-ui-hints.d.ts +0 -10
- package/dist/plugin-sdk/extensions/bluebubbles/src/conversation-bindings.d.ts +0 -37
- package/dist/plugin-sdk/extensions/bluebubbles/src/conversation-id.d.ts +0 -18
- package/dist/plugin-sdk/extensions/bluebubbles/src/conversation-route.d.ts +0 -12
- package/dist/plugin-sdk/extensions/bluebubbles/src/group-policy.d.ts +0 -14
- package/dist/plugin-sdk/extensions/bluebubbles/src/history.d.ts +0 -40
- package/dist/plugin-sdk/extensions/bluebubbles/src/local-file-access.d.ts +0 -2
- package/dist/plugin-sdk/extensions/bluebubbles/src/media-send.d.ts +0 -14
- package/dist/plugin-sdk/extensions/bluebubbles/src/monitor-debounce.d.ts +0 -22
- package/dist/plugin-sdk/extensions/bluebubbles/src/monitor-normalize.d.ts +0 -77
- package/dist/plugin-sdk/extensions/bluebubbles/src/monitor-processing.d.ts +0 -5
- package/dist/plugin-sdk/extensions/bluebubbles/src/monitor-reply-cache.d.ts +0 -36
- package/dist/plugin-sdk/extensions/bluebubbles/src/monitor-self-chat-cache.d.ts +0 -15
- package/dist/plugin-sdk/extensions/bluebubbles/src/monitor-shared.d.ts +0 -31
- package/dist/plugin-sdk/extensions/bluebubbles/src/monitor.d.ts +0 -8
- package/dist/plugin-sdk/extensions/bluebubbles/src/multipart.d.ts +0 -10
- package/dist/plugin-sdk/extensions/bluebubbles/src/participant-contact-names.d.ts +0 -28
- package/dist/plugin-sdk/extensions/bluebubbles/src/probe.d.ts +0 -53
- package/dist/plugin-sdk/extensions/bluebubbles/src/reactions.d.ts +0 -17
- package/dist/plugin-sdk/extensions/bluebubbles/src/request-url.d.ts +0 -1
- package/dist/plugin-sdk/extensions/bluebubbles/src/runtime-api.d.ts +0 -28
- package/dist/plugin-sdk/extensions/bluebubbles/src/runtime.d.ts +0 -6
- package/dist/plugin-sdk/extensions/bluebubbles/src/secret-input.d.ts +0 -1
- package/dist/plugin-sdk/extensions/bluebubbles/src/send-helpers.d.ts +0 -3
- package/dist/plugin-sdk/extensions/bluebubbles/src/send.d.ts +0 -45
- package/dist/plugin-sdk/extensions/bluebubbles/src/session-route.d.ts +0 -2
- package/dist/plugin-sdk/extensions/bluebubbles/src/setup-core.d.ts +0 -4
- package/dist/plugin-sdk/extensions/bluebubbles/src/setup-surface.d.ts +0 -4
- package/dist/plugin-sdk/extensions/bluebubbles/src/targets.d.ts +0 -45
- package/dist/plugin-sdk/extensions/bluebubbles/src/types.d.ts +0 -121
- package/dist/plugin-sdk/extensions/bluebubbles/src/webhook-shared.d.ts +0 -5
- package/dist/plugin-sdk/extensions/browser/runtime-api.d.ts +0 -7
- package/dist/plugin-sdk/extensions/browser/src/browser/bridge-auth-registry.d.ts +0 -8
- package/dist/plugin-sdk/extensions/browser/src/browser/bridge-server.d.ts +0 -24
- package/dist/plugin-sdk/extensions/browser/src/browser/cdp-proxy-bypass.d.ts +0 -31
- package/dist/plugin-sdk/extensions/browser/src/browser/cdp-timeouts.d.ts +0 -28
- package/dist/plugin-sdk/extensions/browser/src/browser/cdp.d.ts +0 -125
- package/dist/plugin-sdk/extensions/browser/src/browser/cdp.helpers.d.ts +0 -29
- package/dist/plugin-sdk/extensions/browser/src/browser/chrome-mcp.d.ts +0 -127
- package/dist/plugin-sdk/extensions/browser/src/browser/chrome-mcp.snapshot.d.ts +0 -26
- package/dist/plugin-sdk/extensions/browser/src/browser/chrome.d.ts +0 -26
- package/dist/plugin-sdk/extensions/browser/src/browser/chrome.executables.d.ts +0 -15
- package/dist/plugin-sdk/extensions/browser/src/browser/chrome.profile-decoration.d.ts +0 -10
- package/dist/plugin-sdk/extensions/browser/src/browser/client-actions-core.d.ts +0 -159
- package/dist/plugin-sdk/extensions/browser/src/browser/client-actions-observe.d.ts +0 -68
- package/dist/plugin-sdk/extensions/browser/src/browser/client-actions-state.d.ts +0 -93
- package/dist/plugin-sdk/extensions/browser/src/browser/client-actions-types.d.ts +0 -18
- package/dist/plugin-sdk/extensions/browser/src/browser/client-actions-url.d.ts +0 -2
- package/dist/plugin-sdk/extensions/browser/src/browser/client-actions.d.ts +0 -4
- package/dist/plugin-sdk/extensions/browser/src/browser/client-fetch.d.ts +0 -21
- package/dist/plugin-sdk/extensions/browser/src/browser/client.d.ts +0 -157
- package/dist/plugin-sdk/extensions/browser/src/browser/config-refresh-source.d.ts +0 -2
- package/dist/plugin-sdk/extensions/browser/src/browser/config.d.ts +0 -46
- package/dist/plugin-sdk/extensions/browser/src/browser/constants.d.ts +0 -8
- package/dist/plugin-sdk/extensions/browser/src/browser/control-auth.d.ts +0 -13
- package/dist/plugin-sdk/extensions/browser/src/browser/control-service.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/browser/csrf.d.ts +0 -8
- package/dist/plugin-sdk/extensions/browser/src/browser/errors.d.ts +0 -35
- package/dist/plugin-sdk/extensions/browser/src/browser/form-fields.d.ts +0 -8
- package/dist/plugin-sdk/extensions/browser/src/browser/http-auth.d.ts +0 -5
- package/dist/plugin-sdk/extensions/browser/src/browser/navigation-guard.d.ts +0 -30
- package/dist/plugin-sdk/extensions/browser/src/browser/output-atomic.d.ts +0 -5
- package/dist/plugin-sdk/extensions/browser/src/browser/paths.d.ts +0 -61
- package/dist/plugin-sdk/extensions/browser/src/browser/profile-capabilities.d.ts +0 -30
- package/dist/plugin-sdk/extensions/browser/src/browser/profiles-service.d.ts +0 -28
- package/dist/plugin-sdk/extensions/browser/src/browser/profiles.d.ts +0 -30
- package/dist/plugin-sdk/extensions/browser/src/browser/proxy-files.d.ts +0 -7
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-ai-module.d.ts +0 -6
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-ai-state.d.ts +0 -2
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-ai.d.ts +0 -2
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-role-snapshot.d.ts +0 -35
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-session.d.ts +0 -182
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-session.page-cdp.d.ts +0 -9
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-tools-core.activity.d.ts +0 -21
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-tools-core.d.ts +0 -8
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-tools-core.downloads.d.ts +0 -34
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-tools-core.interactions.d.ts +0 -135
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-tools-core.responses.d.ts +0 -13
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-tools-core.shared.d.ts +0 -10
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-tools-core.snapshot.d.ts +0 -66
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-tools-core.state.d.ts +0 -46
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-tools-core.storage.d.ts +0 -47
- package/dist/plugin-sdk/extensions/browser/src/browser/pw-tools-core.trace.d.ts +0 -12
- package/dist/plugin-sdk/extensions/browser/src/browser/request-policy.d.ts +0 -9
- package/dist/plugin-sdk/extensions/browser/src/browser/resolved-config-refresh.d.ts +0 -12
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/agent.act.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/agent.act.download.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/agent.act.hooks.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/agent.act.shared.d.ts +0 -10
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/agent.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/agent.debug.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/agent.shared.d.ts +0 -37
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/agent.snapshot.d.ts +0 -12
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/agent.snapshot.plan.d.ts +0 -22
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/agent.storage.d.ts +0 -14
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/basic.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/dispatcher.d.ts +0 -16
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/index.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/output-paths.d.ts +0 -10
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/path-output.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/tabs.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/types.d.ts +0 -20
- package/dist/plugin-sdk/extensions/browser/src/browser/routes/utils.d.ts +0 -15
- package/dist/plugin-sdk/extensions/browser/src/browser/runtime-lifecycle.d.ts +0 -15
- package/dist/plugin-sdk/extensions/browser/src/browser/safe-filename.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/browser/screenshot.d.ts +0 -9
- package/dist/plugin-sdk/extensions/browser/src/browser/server-context.availability.d.ts +0 -19
- package/dist/plugin-sdk/extensions/browser/src/browser/server-context.constants.d.ts +0 -7
- package/dist/plugin-sdk/extensions/browser/src/browser/server-context.d.ts +0 -4
- package/dist/plugin-sdk/extensions/browser/src/browser/server-context.reset.d.ts +0 -20
- package/dist/plugin-sdk/extensions/browser/src/browser/server-context.selection.d.ts +0 -16
- package/dist/plugin-sdk/extensions/browser/src/browser/server-context.tab-ops.d.ts +0 -13
- package/dist/plugin-sdk/extensions/browser/src/browser/server-context.types.d.ts +0 -74
- package/dist/plugin-sdk/extensions/browser/src/browser/server-lifecycle.d.ts +0 -10
- package/dist/plugin-sdk/extensions/browser/src/browser/server-middleware.d.ts +0 -6
- package/dist/plugin-sdk/extensions/browser/src/browser/session-tab-registry.d.ts +0 -30
- package/dist/plugin-sdk/extensions/browser/src/browser/snapshot-roles.d.ts +0 -11
- package/dist/plugin-sdk/extensions/browser/src/browser/target-id.d.ts +0 -11
- package/dist/plugin-sdk/extensions/browser/src/browser/trash.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/browser/url-pattern.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/browser-runtime.d.ts +0 -28
- package/dist/plugin-sdk/extensions/browser/src/browser-tool.actions.d.ts +0 -44
- package/dist/plugin-sdk/extensions/browser/src/browser-tool.d.ts +0 -30
- package/dist/plugin-sdk/extensions/browser/src/browser-tool.schema.d.ts +0 -75
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-actions-input/register.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-actions-input/register.element.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-actions-input/register.files-downloads.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-actions-input/register.form-wait-eval.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-actions-input/register.navigation.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-actions-input/shared.d.ts +0 -20
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-actions-input.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-actions-observe.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-debug.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-examples.d.ts +0 -2
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-inspect.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-manage.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-resize.d.ts +0 -10
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-shared.d.ts +0 -24
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-state.cookies-storage.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli-state.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/cli/browser-cli.d.ts +0 -2
- package/dist/plugin-sdk/extensions/browser/src/cli/command-format.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/cli/core-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/config/config.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/config/paths.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/config/port-defaults.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/control-service.d.ts +0 -5
- package/dist/plugin-sdk/extensions/browser/src/core-api.d.ts +0 -4
- package/dist/plugin-sdk/extensions/browser/src/gateway/auth.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/gateway/browser-request.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/gateway/net.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/gateway/startup-auth.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/infra/errors.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/infra/fs-safe.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/infra/net/proxy-env.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/infra/net/ssrf.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/infra/path-guards.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/infra/ports.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/infra/secure-random.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/infra/tmp-openclaw-dir.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/infra/ws.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/logging/redact.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/logging/subsystem.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/media/image-ops.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/media/store.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/node-host/invoke-browser.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/plugin-enabled.d.ts +0 -2
- package/dist/plugin-sdk/extensions/browser/src/plugin-service.d.ts +0 -2
- package/dist/plugin-sdk/extensions/browser/src/process/exec.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/security/secret-equal.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/server.d.ts +0 -3
- package/dist/plugin-sdk/extensions/browser/src/utils/boolean.d.ts +0 -1
- package/dist/plugin-sdk/extensions/browser/src/utils.d.ts +0 -1
- package/dist/plugin-sdk/extensions/byteplus/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/byteplus/models.d.ts +0 -73
- package/dist/plugin-sdk/extensions/byteplus/provider-catalog.d.ts +0 -3
- package/dist/plugin-sdk/extensions/chutes/api.d.ts +0 -3
- package/dist/plugin-sdk/extensions/chutes/models.d.ts +0 -7
- package/dist/plugin-sdk/extensions/chutes/onboard.d.ts +0 -13
- package/dist/plugin-sdk/extensions/chutes/provider-catalog.d.ts +0 -7
- package/dist/plugin-sdk/extensions/cloudflare-ai-gateway/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/cloudflare-ai-gateway/models.d.ts +0 -14
- package/dist/plugin-sdk/extensions/cloudflare-ai-gateway/onboard.d.ts +0 -32
- package/dist/plugin-sdk/extensions/deepseek/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/deepseek/models.d.ts +0 -4
- package/dist/plugin-sdk/extensions/deepseek/provider-catalog.d.ts +0 -2
- package/dist/plugin-sdk/extensions/discord/action-runtime-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/discord/api.d.ts +0 -19
- package/dist/plugin-sdk/extensions/discord/runtime-api.d.ts +0 -18
- package/dist/plugin-sdk/extensions/discord/session-key-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/discord/src/actions/handle-action.d.ts +0 -3
- package/dist/plugin-sdk/extensions/discord/src/actions/handle-action.guild-admin.d.ts +0 -9
- package/dist/plugin-sdk/extensions/discord/src/actions/runtime.d.ts +0 -5
- package/dist/plugin-sdk/extensions/discord/src/actions/runtime.guild.d.ts +0 -24
- package/dist/plugin-sdk/extensions/discord/src/actions/runtime.messaging.d.ts +0 -33
- package/dist/plugin-sdk/extensions/discord/src/actions/runtime.moderation-shared.d.ts +0 -13
- package/dist/plugin-sdk/extensions/discord/src/actions/runtime.moderation.d.ts +0 -10
- package/dist/plugin-sdk/extensions/discord/src/actions/runtime.presence.d.ts +0 -3
- package/dist/plugin-sdk/extensions/discord/src/actions/runtime.shared.d.ts +0 -1
- package/dist/plugin-sdk/extensions/discord/src/approval-native.d.ts +0 -31
- package/dist/plugin-sdk/extensions/discord/src/audit.d.ts +0 -29
- package/dist/plugin-sdk/extensions/discord/src/channel-actions.d.ts +0 -2
- package/dist/plugin-sdk/extensions/discord/src/chunk.d.ts +0 -20
- package/dist/plugin-sdk/extensions/discord/src/client.d.ts +0 -23
- package/dist/plugin-sdk/extensions/discord/src/component-custom-id.d.ts +0 -15
- package/dist/plugin-sdk/extensions/discord/src/components-registry.d.ts +0 -16
- package/dist/plugin-sdk/extensions/discord/src/components.d.ts +0 -195
- package/dist/plugin-sdk/extensions/discord/src/directory-config.d.ts +0 -3
- package/dist/plugin-sdk/extensions/discord/src/draft-chunking.d.ts +0 -6
- package/dist/plugin-sdk/extensions/discord/src/draft-stream.d.ts +0 -21
- package/dist/plugin-sdk/extensions/discord/src/exec-approvals.d.ts +0 -24
- package/dist/plugin-sdk/extensions/discord/src/gateway-logging.d.ts +0 -8
- package/dist/plugin-sdk/extensions/discord/src/group-policy.d.ts +0 -4
- package/dist/plugin-sdk/extensions/discord/src/guilds.d.ts +0 -6
- package/dist/plugin-sdk/extensions/discord/src/mentions.d.ts +0 -8
- package/dist/plugin-sdk/extensions/discord/src/message-tool-schema.d.ts +0 -96
- package/dist/plugin-sdk/extensions/discord/src/monitor/agent-components-helpers.d.ts +0 -160
- package/dist/plugin-sdk/extensions/discord/src/monitor/agent-components.d.ts +0 -28
- package/dist/plugin-sdk/extensions/discord/src/monitor/auto-presence.d.ts +0 -59
- package/dist/plugin-sdk/extensions/discord/src/monitor/commands.d.ts +0 -2
- package/dist/plugin-sdk/extensions/discord/src/monitor/dm-command-auth.d.ts +0 -24
- package/dist/plugin-sdk/extensions/discord/src/monitor/dm-command-decision.d.ts +0 -14
- package/dist/plugin-sdk/extensions/discord/src/monitor/exec-approvals.d.ts +0 -54
- package/dist/plugin-sdk/extensions/discord/src/monitor/gateway-handle.d.ts +0 -28
- package/dist/plugin-sdk/extensions/discord/src/monitor/gateway-plugin.d.ts +0 -22
- package/dist/plugin-sdk/extensions/discord/src/monitor/gateway-registry.d.ts +0 -9
- package/dist/plugin-sdk/extensions/discord/src/monitor/gateway-supervisor.d.ts +0 -25
- package/dist/plugin-sdk/extensions/discord/src/monitor/inbound-context.d.ts +0 -36
- package/dist/plugin-sdk/extensions/discord/src/monitor/inbound-job.d.ts +0 -13
- package/dist/plugin-sdk/extensions/discord/src/monitor/inbound-worker.d.ts +0 -22
- package/dist/plugin-sdk/extensions/discord/src/monitor/listeners.d.ts +0 -67
- package/dist/plugin-sdk/extensions/discord/src/monitor/message-handler.d.ts +0 -19
- package/dist/plugin-sdk/extensions/discord/src/monitor/message-handler.preflight.d.ts +0 -14
- package/dist/plugin-sdk/extensions/discord/src/monitor/message-handler.preflight.types.d.ts +0 -88
- package/dist/plugin-sdk/extensions/discord/src/monitor/message-handler.process.d.ts +0 -11
- package/dist/plugin-sdk/extensions/discord/src/monitor/message-utils.d.ts +0 -53
- package/dist/plugin-sdk/extensions/discord/src/monitor/model-picker-preferences.d.ts +0 -18
- package/dist/plugin-sdk/extensions/discord/src/monitor/model-picker.d.ts +0 -117
- package/dist/plugin-sdk/extensions/discord/src/monitor/native-command-context.d.ts +0 -68
- package/dist/plugin-sdk/extensions/discord/src/monitor/native-command-route.d.ts +0 -28
- package/dist/plugin-sdk/extensions/discord/src/monitor/native-command-ui.d.ts +0 -106
- package/dist/plugin-sdk/extensions/discord/src/monitor/native-command.d.ts +0 -28
- package/dist/plugin-sdk/extensions/discord/src/monitor/preflight-audio.d.ts +0 -21
- package/dist/plugin-sdk/extensions/discord/src/monitor/preflight-audio.runtime.d.ts +0 -3
- package/dist/plugin-sdk/extensions/discord/src/monitor/presence.d.ts +0 -5
- package/dist/plugin-sdk/extensions/discord/src/monitor/provider-session.runtime.d.ts +0 -4
- package/dist/plugin-sdk/extensions/discord/src/monitor/provider.allowlist.d.ts +0 -14
- package/dist/plugin-sdk/extensions/discord/src/monitor/provider.d.ts +0 -61
- package/dist/plugin-sdk/extensions/discord/src/monitor/provider.lifecycle.d.ts +0 -27
- package/dist/plugin-sdk/extensions/discord/src/monitor/provider.startup.d.ts +0 -82
- package/dist/plugin-sdk/extensions/discord/src/monitor/reply-context.d.ts +0 -21
- package/dist/plugin-sdk/extensions/discord/src/monitor/reply-delivery.d.ts +0 -40
- package/dist/plugin-sdk/extensions/discord/src/monitor/rest-fetch.d.ts +0 -2
- package/dist/plugin-sdk/extensions/discord/src/monitor/route-resolution.d.ts +0 -40
- package/dist/plugin-sdk/extensions/discord/src/monitor/sender-identity.d.ts +0 -31
- package/dist/plugin-sdk/extensions/discord/src/monitor/startup-status.d.ts +0 -4
- package/dist/plugin-sdk/extensions/discord/src/monitor/status.d.ts +0 -17
- package/dist/plugin-sdk/extensions/discord/src/monitor/system-events.d.ts +0 -2
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.config.d.ts +0 -11
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.d.ts +0 -8
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.discord-api.d.ts +0 -41
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.lifecycle.d.ts +0 -60
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.manager.d.ts +0 -21
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.messages.d.ts +0 -1
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.persona.d.ts +0 -6
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.state.d.ts +0 -79
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-bindings.types.d.ts +0 -79
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-session-close.d.ts +0 -15
- package/dist/plugin-sdk/extensions/discord/src/monitor/thread-title.d.ts +0 -11
- package/dist/plugin-sdk/extensions/discord/src/monitor/threading.d.ts +0 -108
- package/dist/plugin-sdk/extensions/discord/src/monitor/timeouts.d.ts +0 -16
- package/dist/plugin-sdk/extensions/discord/src/monitor/typing.d.ts +0 -5
- package/dist/plugin-sdk/extensions/discord/src/monitor.d.ts +0 -10
- package/dist/plugin-sdk/extensions/discord/src/monitor.gateway.d.ts +0 -12
- package/dist/plugin-sdk/extensions/discord/src/normalize.d.ts +0 -14
- package/dist/plugin-sdk/extensions/discord/src/outbound-adapter.d.ts +0 -3
- package/dist/plugin-sdk/extensions/discord/src/pluralkit.d.ts +0 -26
- package/dist/plugin-sdk/extensions/discord/src/probe.d.ts +0 -37
- package/dist/plugin-sdk/extensions/discord/src/resolve-allowlist-common.d.ts +0 -11
- package/dist/plugin-sdk/extensions/discord/src/resolve-channels.d.ts +0 -15
- package/dist/plugin-sdk/extensions/discord/src/resolve-users.d.ts +0 -14
- package/dist/plugin-sdk/extensions/discord/src/retry.d.ts +0 -12
- package/dist/plugin-sdk/extensions/discord/src/send.channels.d.ts +0 -17
- package/dist/plugin-sdk/extensions/discord/src/send.components.d.ts +0 -29
- package/dist/plugin-sdk/extensions/discord/src/send.d.ts +0 -11
- package/dist/plugin-sdk/extensions/discord/src/send.emojis-stickers.d.ts +0 -4
- package/dist/plugin-sdk/extensions/discord/src/send.guild.d.ts +0 -24
- package/dist/plugin-sdk/extensions/discord/src/send.messages.d.ts +0 -20
- package/dist/plugin-sdk/extensions/discord/src/send.outbound.d.ts +0 -67
- package/dist/plugin-sdk/extensions/discord/src/send.permissions.d.ts +0 -20
- package/dist/plugin-sdk/extensions/discord/src/send.reactions.d.ts +0 -15
- package/dist/plugin-sdk/extensions/discord/src/send.shared.d.ts +0 -86
- package/dist/plugin-sdk/extensions/discord/src/send.types.d.ts +0 -148
- package/dist/plugin-sdk/extensions/discord/src/send.typing.d.ts +0 -5
- package/dist/plugin-sdk/extensions/discord/src/session-key-normalization.d.ts +0 -7
- package/dist/plugin-sdk/extensions/discord/src/shared-interactive.d.ts +0 -3
- package/dist/plugin-sdk/extensions/discord/src/status-issues.d.ts +0 -2
- package/dist/plugin-sdk/extensions/discord/src/ui.d.ts +0 -19
- package/dist/plugin-sdk/extensions/discord/src/voice/access.d.ts +0 -31
- package/dist/plugin-sdk/extensions/discord/src/voice/command.d.ts +0 -15
- package/dist/plugin-sdk/extensions/discord/src/voice/manager.d.ts +0 -59
- package/dist/plugin-sdk/extensions/discord/src/voice/manager.runtime.d.ts +0 -5
- package/dist/plugin-sdk/extensions/discord/src/voice/sdk-runtime.d.ts +0 -3
- package/dist/plugin-sdk/extensions/discord/src/voice-message.d.ts +0 -50
- package/dist/plugin-sdk/extensions/discord/timeouts.d.ts +0 -1
- package/dist/plugin-sdk/extensions/feishu/api.d.ts +0 -6
- package/dist/plugin-sdk/extensions/feishu/runtime-api.d.ts +0 -4
- package/dist/plugin-sdk/extensions/feishu/src/accounts.d.ts +0 -72
- package/dist/plugin-sdk/extensions/feishu/src/async.d.ts +0 -13
- package/dist/plugin-sdk/extensions/feishu/src/bot-content.d.ts +0 -85
- package/dist/plugin-sdk/extensions/feishu/src/bot-sender-name.d.ts +0 -19
- package/dist/plugin-sdk/extensions/feishu/src/bot.d.ts +0 -70
- package/dist/plugin-sdk/extensions/feishu/src/client.d.ts +0 -47
- package/dist/plugin-sdk/extensions/feishu/src/config-schema.d.ts +0 -550
- package/dist/plugin-sdk/extensions/feishu/src/conversation-id.d.ts +0 -19
- package/dist/plugin-sdk/extensions/feishu/src/dedup.d.ts +0 -19
- package/dist/plugin-sdk/extensions/feishu/src/dynamic-agent.d.ts +0 -18
- package/dist/plugin-sdk/extensions/feishu/src/external-keys.d.ts +0 -1
- package/dist/plugin-sdk/extensions/feishu/src/media.d.ts +0 -118
- package/dist/plugin-sdk/extensions/feishu/src/mention.d.ts +0 -52
- package/dist/plugin-sdk/extensions/feishu/src/policy.d.ts +0 -36
- package/dist/plugin-sdk/extensions/feishu/src/post.d.ts +0 -11
- package/dist/plugin-sdk/extensions/feishu/src/probe.d.ts +0 -10
- package/dist/plugin-sdk/extensions/feishu/src/reply-dispatcher.d.ts +0 -35
- package/dist/plugin-sdk/extensions/feishu/src/runtime.d.ts +0 -3
- package/dist/plugin-sdk/extensions/feishu/src/secret-input.d.ts +0 -1
- package/dist/plugin-sdk/extensions/feishu/src/send-result.d.ts +0 -12
- package/dist/plugin-sdk/extensions/feishu/src/send-target.d.ts +0 -10
- package/dist/plugin-sdk/extensions/feishu/src/send.d.ts +0 -131
- package/dist/plugin-sdk/extensions/feishu/src/setup-core.d.ts +0 -3
- package/dist/plugin-sdk/extensions/feishu/src/setup-surface.d.ts +0 -3
- package/dist/plugin-sdk/extensions/feishu/src/streaming-card.d.ts +0 -55
- package/dist/plugin-sdk/extensions/feishu/src/targets.d.ts +0 -6
- package/dist/plugin-sdk/extensions/feishu/src/thread-bindings.d.ts +0 -42
- package/dist/plugin-sdk/extensions/feishu/src/types.d.ts +0 -84
- package/dist/plugin-sdk/extensions/feishu/src/typing.d.ts +0 -57
- package/dist/plugin-sdk/extensions/github-copilot/api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/github-copilot/login.d.ts +0 -5
- package/dist/plugin-sdk/extensions/google/api.d.ts +0 -33
- package/dist/plugin-sdk/extensions/google/model-id.d.ts +0 -2
- package/dist/plugin-sdk/extensions/huggingface/api.d.ts +0 -3
- package/dist/plugin-sdk/extensions/huggingface/models.d.ts +0 -7
- package/dist/plugin-sdk/extensions/huggingface/onboard.d.ts +0 -4
- package/dist/plugin-sdk/extensions/huggingface/provider-catalog.d.ts +0 -3
- package/dist/plugin-sdk/extensions/image-generation-core/api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/image-generation-core/runtime-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/image-generation-core/src/runtime.d.ts +0 -24
- package/dist/plugin-sdk/extensions/irc/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/irc/src/accounts.d.ts +0 -23
- package/dist/plugin-sdk/extensions/irc/src/control-chars.d.ts +0 -3
- package/dist/plugin-sdk/extensions/irc/src/normalize.d.ts +0 -18
- package/dist/plugin-sdk/extensions/irc/src/runtime-api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/irc/src/setup-core.d.ts +0 -10
- package/dist/plugin-sdk/extensions/irc/src/setup-surface.d.ts +0 -4
- package/dist/plugin-sdk/extensions/irc/src/types.d.ts +0 -83
- package/dist/plugin-sdk/extensions/kilocode/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/kilocode/provider-catalog.d.ts +0 -3
- package/dist/plugin-sdk/extensions/kilocode/provider-models.d.ts +0 -18
- package/dist/plugin-sdk/extensions/kimi-coding/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/kimi-coding/onboard.d.ts +0 -5
- package/dist/plugin-sdk/extensions/kimi-coding/provider-catalog.d.ts +0 -10
- package/dist/plugin-sdk/extensions/line/runtime-api.d.ts +0 -36
- package/dist/plugin-sdk/extensions/line/src/accounts.d.ts +0 -10
- package/dist/plugin-sdk/extensions/line/src/actions.d.ts +0 -22
- package/dist/plugin-sdk/extensions/line/src/auto-reply-delivery.d.ts +0 -38
- package/dist/plugin-sdk/extensions/line/src/bot-access.d.ts +0 -17
- package/dist/plugin-sdk/extensions/line/src/bot-handlers.d.ts +0 -23
- package/dist/plugin-sdk/extensions/line/src/bot-message-context.d.ts +0 -129
- package/dist/plugin-sdk/extensions/line/src/bot.d.ts +0 -24
- package/dist/plugin-sdk/extensions/line/src/channel-access-token.d.ts +0 -4
- package/dist/plugin-sdk/extensions/line/src/config-schema.d.ts +0 -80
- package/dist/plugin-sdk/extensions/line/src/download.d.ts +0 -7
- package/dist/plugin-sdk/extensions/line/src/flex-templates/basic-cards.d.ts +0 -46
- package/dist/plugin-sdk/extensions/line/src/flex-templates/common.d.ts +0 -2
- package/dist/plugin-sdk/extensions/line/src/flex-templates/media-control-cards.d.ts +0 -73
- package/dist/plugin-sdk/extensions/line/src/flex-templates/message.d.ts +0 -6
- package/dist/plugin-sdk/extensions/line/src/flex-templates/schedule-cards.d.ts +0 -55
- package/dist/plugin-sdk/extensions/line/src/flex-templates/types.d.ts +0 -19
- package/dist/plugin-sdk/extensions/line/src/flex-templates.d.ts +0 -5
- package/dist/plugin-sdk/extensions/line/src/group-keys.d.ts +0 -17
- package/dist/plugin-sdk/extensions/line/src/markdown-to-line.d.ts +0 -67
- package/dist/plugin-sdk/extensions/line/src/monitor.d.ts +0 -28
- package/dist/plugin-sdk/extensions/line/src/probe.d.ts +0 -2
- package/dist/plugin-sdk/extensions/line/src/reply-chunks.d.ts +0 -24
- package/dist/plugin-sdk/extensions/line/src/rich-menu.d.ts +0 -50
- package/dist/plugin-sdk/extensions/line/src/send.d.ts +0 -73
- package/dist/plugin-sdk/extensions/line/src/signature.d.ts +0 -1
- package/dist/plugin-sdk/extensions/line/src/template-messages.d.ts +0 -100
- package/dist/plugin-sdk/extensions/line/src/types.d.ts +0 -120
- package/dist/plugin-sdk/extensions/line/src/webhook-node.d.ts +0 -16
- package/dist/plugin-sdk/extensions/line/src/webhook-utils.d.ts +0 -3
- package/dist/plugin-sdk/extensions/line/src/webhook.d.ts +0 -19
- package/dist/plugin-sdk/extensions/litellm/api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/litellm/onboard.d.ts +0 -7
- package/dist/plugin-sdk/extensions/matrix/api.d.ts +0 -9
- package/dist/plugin-sdk/extensions/matrix/runtime-api.d.ts +0 -12
- package/dist/plugin-sdk/extensions/matrix/src/account-selection.d.ts +0 -6
- package/dist/plugin-sdk/extensions/matrix/src/auth-precedence.d.ts +0 -11
- package/dist/plugin-sdk/extensions/matrix/src/directory-live.d.ts +0 -10
- package/dist/plugin-sdk/extensions/matrix/src/env-vars.d.ts +0 -10
- package/dist/plugin-sdk/extensions/matrix/src/matrix/account-config.d.ts +0 -10
- package/dist/plugin-sdk/extensions/matrix/src/matrix/accounts.d.ts +0 -23
- package/dist/plugin-sdk/extensions/matrix/src/matrix/actions/client.d.ts +0 -6
- package/dist/plugin-sdk/extensions/matrix/src/matrix/actions/types.d.ts +0 -68
- package/dist/plugin-sdk/extensions/matrix/src/matrix/actions/verification.d.ts +0 -78
- package/dist/plugin-sdk/extensions/matrix/src/matrix/active-client.d.ts +0 -3
- package/dist/plugin-sdk/extensions/matrix/src/matrix/async-lock.d.ts +0 -2
- package/dist/plugin-sdk/extensions/matrix/src/matrix/backup-health.d.ts +0 -19
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/config-runtime-api.d.ts +0 -3
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/config-secret-input.runtime.d.ts +0 -1
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/config.d.ts +0 -55
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/create-client.d.ts +0 -18
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/env-auth.d.ts +0 -23
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/file-sync-store.d.ts +0 -29
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/logging.d.ts +0 -13
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/migration-snapshot.runtime.d.ts +0 -1
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/private-network-host.d.ts +0 -1
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/runtime.d.ts +0 -1
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/shared.d.ts +0 -24
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/storage.d.ts +0 -30
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client/types.d.ts +0 -47
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client-bootstrap.d.ts +0 -25
- package/dist/plugin-sdk/extensions/matrix/src/matrix/client.d.ts +0 -6
- package/dist/plugin-sdk/extensions/matrix/src/matrix/config-paths.d.ts +0 -4
- package/dist/plugin-sdk/extensions/matrix/src/matrix/config-update.d.ts +0 -24
- package/dist/plugin-sdk/extensions/matrix/src/matrix/credentials-read.d.ts +0 -17
- package/dist/plugin-sdk/extensions/matrix/src/matrix/credentials-write.runtime.d.ts +0 -3
- package/dist/plugin-sdk/extensions/matrix/src/matrix/credentials.d.ts +0 -5
- package/dist/plugin-sdk/extensions/matrix/src/matrix/deps.d.ts +0 -25
- package/dist/plugin-sdk/extensions/matrix/src/matrix/direct-management.d.ts +0 -53
- package/dist/plugin-sdk/extensions/matrix/src/matrix/direct-room.d.ts +0 -27
- package/dist/plugin-sdk/extensions/matrix/src/matrix/encryption-guidance.d.ts +0 -4
- package/dist/plugin-sdk/extensions/matrix/src/matrix/errors.d.ts +0 -1
- package/dist/plugin-sdk/extensions/matrix/src/matrix/format.d.ts +0 -17
- package/dist/plugin-sdk/extensions/matrix/src/matrix/outbound-media-runtime.d.ts +0 -1
- package/dist/plugin-sdk/extensions/matrix/src/matrix/poll-types.d.ts +0 -114
- package/dist/plugin-sdk/extensions/matrix/src/matrix/reaction-common.d.ts +0 -32
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/crypto-bootstrap.d.ts +0 -34
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/crypto-facade.d.ts +0 -67
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/crypto-node.runtime.d.ts +0 -2
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/crypto-runtime.d.ts +0 -10
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/decrypt-bridge.d.ts +0 -45
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/event-helpers.d.ts +0 -10
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/http-client.d.ts +0 -34
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/idb-persistence-lock.d.ts +0 -4
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/idb-persistence.d.ts +0 -5
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/logger.d.ts +0 -25
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/read-response-with-limit.d.ts +0 -11
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/recovery-key-store.d.ts +0 -48
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/transport.d.ts +0 -29
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/types.d.ts +0 -186
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/verification-manager.d.ts +0 -127
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk/verification-status.d.ts +0 -4
- package/dist/plugin-sdk/extensions/matrix/src/matrix/sdk.d.ts +0 -212
- package/dist/plugin-sdk/extensions/matrix/src/matrix/send/client.d.ts +0 -15
- package/dist/plugin-sdk/extensions/matrix/src/matrix/send/formatting.d.ts +0 -25
- package/dist/plugin-sdk/extensions/matrix/src/matrix/send/media.d.ts +0 -42
- package/dist/plugin-sdk/extensions/matrix/src/matrix/send/targets.d.ts +0 -3
- package/dist/plugin-sdk/extensions/matrix/src/matrix/send/types.d.ts +0 -80
- package/dist/plugin-sdk/extensions/matrix/src/matrix/send.d.ts +0 -54
- package/dist/plugin-sdk/extensions/matrix/src/matrix/target-ids.d.ts +0 -19
- package/dist/plugin-sdk/extensions/matrix/src/matrix/thread-bindings-shared.d.ts +0 -77
- package/dist/plugin-sdk/extensions/matrix/src/matrix/thread-bindings.d.ts +0 -15
- package/dist/plugin-sdk/extensions/matrix/src/onboarding.d.ts +0 -2
- package/dist/plugin-sdk/extensions/matrix/src/resolve-targets.d.ts +0 -8
- package/dist/plugin-sdk/extensions/matrix/src/runtime-api.d.ts +0 -11
- package/dist/plugin-sdk/extensions/matrix/src/runtime.d.ts +0 -3
- package/dist/plugin-sdk/extensions/matrix/src/setup-bootstrap.d.ts +0 -20
- package/dist/plugin-sdk/extensions/matrix/src/setup-config.d.ts +0 -12
- package/dist/plugin-sdk/extensions/matrix/src/setup-core.d.ts +0 -2
- package/dist/plugin-sdk/extensions/matrix/src/setup-surface.d.ts +0 -1
- package/dist/plugin-sdk/extensions/matrix/src/storage-paths.d.ts +0 -26
- package/dist/plugin-sdk/extensions/matrix/src/types.d.ts +0 -202
- package/dist/plugin-sdk/extensions/mattermost/api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/mattermost/runtime-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/mattermost/src/mattermost/accounts.d.ts +0 -33
- package/dist/plugin-sdk/extensions/mattermost/src/mattermost/client.d.ts +0 -103
- package/dist/plugin-sdk/extensions/mattermost/src/mattermost/monitor-auth.d.ts +0 -51
- package/dist/plugin-sdk/extensions/mattermost/src/mattermost/runtime-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/mattermost/src/runtime-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/mattermost/src/secret-input.d.ts +0 -2
- package/dist/plugin-sdk/extensions/mattermost/src/types.d.ts +0 -105
- package/dist/plugin-sdk/extensions/media-understanding-core/runtime-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/media-understanding-core/src/runtime.d.ts +0 -54
- package/dist/plugin-sdk/extensions/memory-core/runtime-api.d.ts +0 -3
- package/dist/plugin-sdk/extensions/memory-core/src/memory/embeddings.d.ts +0 -21
- package/dist/plugin-sdk/extensions/memory-core/src/memory/hybrid.d.ts +0 -45
- package/dist/plugin-sdk/extensions/memory-core/src/memory/index.d.ts +0 -3
- package/dist/plugin-sdk/extensions/memory-core/src/memory/manager-embedding-ops.d.ts +0 -47
- package/dist/plugin-sdk/extensions/memory-core/src/memory/manager-runtime.d.ts +0 -1
- package/dist/plugin-sdk/extensions/memory-core/src/memory/manager-search.d.ts +0 -61
- package/dist/plugin-sdk/extensions/memory-core/src/memory/manager-sync-ops.d.ts +0 -142
- package/dist/plugin-sdk/extensions/memory-core/src/memory/manager.d.ts +0 -155
- package/dist/plugin-sdk/extensions/memory-core/src/memory/mmr.d.ts +0 -67
- package/dist/plugin-sdk/extensions/memory-core/src/memory/provider-adapters.d.ts +0 -19
- package/dist/plugin-sdk/extensions/memory-core/src/memory/qmd-manager.d.ts +0 -191
- package/dist/plugin-sdk/extensions/memory-core/src/memory/search-manager.d.ts +0 -12
- package/dist/plugin-sdk/extensions/memory-core/src/memory/temporal-decay.d.ts +0 -25
- package/dist/plugin-sdk/extensions/minimax/api.d.ts +0 -4
- package/dist/plugin-sdk/extensions/minimax/model-definitions.d.ts +0 -35
- package/dist/plugin-sdk/extensions/minimax/onboard.d.ts +0 -5
- package/dist/plugin-sdk/extensions/minimax/provider-catalog.d.ts +0 -3
- package/dist/plugin-sdk/extensions/minimax/provider-models.d.ts +0 -15
- package/dist/plugin-sdk/extensions/mistral/api.d.ts +0 -11
- package/dist/plugin-sdk/extensions/mistral/model-definitions.d.ts +0 -14
- package/dist/plugin-sdk/extensions/mistral/onboard.d.ts +0 -4
- package/dist/plugin-sdk/extensions/mistral/provider-catalog.d.ts +0 -2
- package/dist/plugin-sdk/extensions/modelstudio/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/modelstudio/models.d.ts +0 -27
- package/dist/plugin-sdk/extensions/modelstudio/provider-catalog.d.ts +0 -2
- package/dist/plugin-sdk/extensions/moonshot/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/moonshot/onboard.d.ts +0 -6
- package/dist/plugin-sdk/extensions/moonshot/provider-catalog.d.ts +0 -7
- package/dist/plugin-sdk/extensions/nvidia/api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/nvidia/provider-catalog.d.ts +0 -2
- package/dist/plugin-sdk/extensions/ollama/api.d.ts +0 -4
- package/dist/plugin-sdk/extensions/ollama/runtime-api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/ollama/src/defaults.d.ts +0 -11
- package/dist/plugin-sdk/extensions/ollama/src/embedding-provider.d.ts +0 -37
- package/dist/plugin-sdk/extensions/ollama/src/provider-models.d.ts +0 -31
- package/dist/plugin-sdk/extensions/ollama/src/setup.d.ts +0 -36
- package/dist/plugin-sdk/extensions/ollama/src/stream.d.ts +0 -104
- package/dist/plugin-sdk/extensions/openai/api.d.ts +0 -3
- package/dist/plugin-sdk/extensions/openai/default-models.d.ts +0 -10
- package/dist/plugin-sdk/extensions/openai/openai-codex-catalog.d.ts +0 -3
- package/dist/plugin-sdk/extensions/openai/openai-provider.d.ts +0 -2
- package/dist/plugin-sdk/extensions/openai/shared.d.ts +0 -5
- package/dist/plugin-sdk/extensions/opencode/api.d.ts +0 -6
- package/dist/plugin-sdk/extensions/opencode/onboard.d.ts +0 -4
- package/dist/plugin-sdk/extensions/opencode-go/api.d.ts +0 -5
- package/dist/plugin-sdk/extensions/opencode-go/onboard.d.ts +0 -4
- package/dist/plugin-sdk/extensions/openrouter/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/openrouter/onboard.d.ts +0 -4
- package/dist/plugin-sdk/extensions/openrouter/provider-catalog.d.ts +0 -2
- package/dist/plugin-sdk/extensions/qianfan/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/qianfan/onboard.d.ts +0 -4
- package/dist/plugin-sdk/extensions/qianfan/provider-catalog.d.ts +0 -4
- package/dist/plugin-sdk/extensions/sglang/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/sglang/defaults.d.ts +0 -4
- package/dist/plugin-sdk/extensions/sglang/models.d.ts +0 -8
- package/dist/plugin-sdk/extensions/signal/api.d.ts +0 -11
- package/dist/plugin-sdk/extensions/signal/reaction-runtime-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/signal/src/accounts.d.ts +0 -17
- package/dist/plugin-sdk/extensions/signal/src/client.d.ts +0 -32
- package/dist/plugin-sdk/extensions/signal/src/daemon.d.ts +0 -26
- package/dist/plugin-sdk/extensions/signal/src/format.d.ts +0 -17
- package/dist/plugin-sdk/extensions/signal/src/identity.d.ts +0 -25
- package/dist/plugin-sdk/extensions/signal/src/message-actions.d.ts +0 -2
- package/dist/plugin-sdk/extensions/signal/src/monitor/access-policy.d.ts +0 -40
- package/dist/plugin-sdk/extensions/signal/src/monitor/event-handler.d.ts +0 -5
- package/dist/plugin-sdk/extensions/signal/src/monitor/event-handler.types.d.ts +0 -128
- package/dist/plugin-sdk/extensions/signal/src/monitor/inbound-context.d.ts +0 -17
- package/dist/plugin-sdk/extensions/signal/src/monitor/mentions.d.ts +0 -2
- package/dist/plugin-sdk/extensions/signal/src/monitor.d.ts +0 -26
- package/dist/plugin-sdk/extensions/signal/src/normalize.d.ts +0 -2
- package/dist/plugin-sdk/extensions/signal/src/outbound-session.d.ts +0 -8
- package/dist/plugin-sdk/extensions/signal/src/probe.d.ts +0 -7
- package/dist/plugin-sdk/extensions/signal/src/reaction-level.d.ts +0 -17
- package/dist/plugin-sdk/extensions/signal/src/rpc-context.d.ts +0 -9
- package/dist/plugin-sdk/extensions/signal/src/runtime-api.d.ts +0 -25
- package/dist/plugin-sdk/extensions/signal/src/send-reactions.d.ts +0 -34
- package/dist/plugin-sdk/extensions/signal/src/send.d.ts +0 -32
- package/dist/plugin-sdk/extensions/signal/src/setup-core.d.ts +0 -20
- package/dist/plugin-sdk/extensions/signal/src/sse-reconnect.d.ts +0 -12
- package/dist/plugin-sdk/extensions/slack/api.d.ts +0 -19
- package/dist/plugin-sdk/extensions/slack/runtime-api.d.ts +0 -5
- package/dist/plugin-sdk/extensions/slack/src/account-inspect.d.ts +0 -32
- package/dist/plugin-sdk/extensions/slack/src/account-surface-fields.d.ts +0 -14
- package/dist/plugin-sdk/extensions/slack/src/accounts.d.ts +0 -25
- package/dist/plugin-sdk/extensions/slack/src/accounts.runtime.d.ts +0 -1
- package/dist/plugin-sdk/extensions/slack/src/action-runtime.d.ts +0 -38
- package/dist/plugin-sdk/extensions/slack/src/action-threading.d.ts +0 -11
- package/dist/plugin-sdk/extensions/slack/src/actions.d.ts +0 -81
- package/dist/plugin-sdk/extensions/slack/src/actions.runtime.d.ts +0 -1
- package/dist/plugin-sdk/extensions/slack/src/approval-auth.d.ts +0 -25
- package/dist/plugin-sdk/extensions/slack/src/approval-native.d.ts +0 -10
- package/dist/plugin-sdk/extensions/slack/src/blocks-fallback.d.ts +0 -2
- package/dist/plugin-sdk/extensions/slack/src/blocks-input.d.ts +0 -4
- package/dist/plugin-sdk/extensions/slack/src/blocks-render.d.ts +0 -6
- package/dist/plugin-sdk/extensions/slack/src/channel-actions.d.ts +0 -7
- package/dist/plugin-sdk/extensions/slack/src/channel-migration.d.ts +0 -20
- package/dist/plugin-sdk/extensions/slack/src/channel-type.d.ts +0 -6
- package/dist/plugin-sdk/extensions/slack/src/channel.d.ts +0 -4
- package/dist/plugin-sdk/extensions/slack/src/client.d.ts +0 -7
- package/dist/plugin-sdk/extensions/slack/src/config-schema.d.ts +0 -1
- package/dist/plugin-sdk/extensions/slack/src/config-ui-hints.d.ts +0 -98
- package/dist/plugin-sdk/extensions/slack/src/directory-config.d.ts +0 -3
- package/dist/plugin-sdk/extensions/slack/src/directory-live.d.ts +0 -3
- package/dist/plugin-sdk/extensions/slack/src/draft-stream.d.ts +0 -25
- package/dist/plugin-sdk/extensions/slack/src/exec-approvals.d.ts +0 -43
- package/dist/plugin-sdk/extensions/slack/src/format.d.ts +0 -8
- package/dist/plugin-sdk/extensions/slack/src/group-policy.d.ts +0 -4
- package/dist/plugin-sdk/extensions/slack/src/http/index.d.ts +0 -1
- package/dist/plugin-sdk/extensions/slack/src/http/registry.d.ts +0 -12
- package/dist/plugin-sdk/extensions/slack/src/index.d.ts +0 -7
- package/dist/plugin-sdk/extensions/slack/src/interactive-replies.d.ts +0 -5
- package/dist/plugin-sdk/extensions/slack/src/limits.d.ts +0 -1
- package/dist/plugin-sdk/extensions/slack/src/message-action-dispatch.d.ts +0 -12
- package/dist/plugin-sdk/extensions/slack/src/message-actions.d.ts +0 -5
- package/dist/plugin-sdk/extensions/slack/src/message-tool-schema.d.ts +0 -1
- package/dist/plugin-sdk/extensions/slack/src/modal-metadata.d.ts +0 -8
- package/dist/plugin-sdk/extensions/slack/src/monitor/allow-list.d.ts +0 -24
- package/dist/plugin-sdk/extensions/slack/src/monitor/auth.d.ts +0 -29
- package/dist/plugin-sdk/extensions/slack/src/monitor/channel-config.d.ts +0 -45
- package/dist/plugin-sdk/extensions/slack/src/monitor/channel-type.d.ts +0 -3
- package/dist/plugin-sdk/extensions/slack/src/monitor/commands.d.ts +0 -9
- package/dist/plugin-sdk/extensions/slack/src/monitor/context.d.ts +0 -107
- package/dist/plugin-sdk/extensions/slack/src/monitor/dm-auth.d.ts +0 -17
- package/dist/plugin-sdk/extensions/slack/src/monitor/events/channels.d.ts +0 -5
- package/dist/plugin-sdk/extensions/slack/src/monitor/events/interactions.block-actions.d.ts +0 -49
- package/dist/plugin-sdk/extensions/slack/src/monitor/events/interactions.d.ts +0 -4
- package/dist/plugin-sdk/extensions/slack/src/monitor/events/interactions.modal.d.ts +0 -68
- package/dist/plugin-sdk/extensions/slack/src/monitor/events/members.d.ts +0 -5
- package/dist/plugin-sdk/extensions/slack/src/monitor/events/message-subtype-handlers.d.ts +0 -13
- package/dist/plugin-sdk/extensions/slack/src/monitor/events/messages.d.ts +0 -6
- package/dist/plugin-sdk/extensions/slack/src/monitor/events/pins.d.ts +0 -5
- package/dist/plugin-sdk/extensions/slack/src/monitor/events/reactions.d.ts +0 -5
- package/dist/plugin-sdk/extensions/slack/src/monitor/events/system-event-context.d.ts +0 -12
- package/dist/plugin-sdk/extensions/slack/src/monitor/events.d.ts +0 -10
- package/dist/plugin-sdk/extensions/slack/src/monitor/exec-approvals.d.ts +0 -26
- package/dist/plugin-sdk/extensions/slack/src/monitor/external-arg-menu-store.d.ts +0 -18
- package/dist/plugin-sdk/extensions/slack/src/monitor/media.d.ts +0 -67
- package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/dispatch.d.ts +0 -21
- package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/prepare-content.d.ts +0 -14
- package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/prepare-thread-context.d.ts +0 -28
- package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/prepare.d.ts +0 -13
- package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/prepare.test-helpers.d.ts +0 -12
- package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/preview-finalize.d.ts +0 -44
- package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler/types.d.ts +0 -23
- package/dist/plugin-sdk/extensions/slack/src/monitor/message-handler.d.ts +0 -22
- package/dist/plugin-sdk/extensions/slack/src/monitor/mrkdwn.d.ts +0 -1
- package/dist/plugin-sdk/extensions/slack/src/monitor/policy.d.ts +0 -5
- package/dist/plugin-sdk/extensions/slack/src/monitor/provider.d.ts +0 -33
- package/dist/plugin-sdk/extensions/slack/src/monitor/reconnect-policy.d.ts +0 -25
- package/dist/plugin-sdk/extensions/slack/src/monitor/replies.d.ts +0 -56
- package/dist/plugin-sdk/extensions/slack/src/monitor/room-context.d.ts +0 -14
- package/dist/plugin-sdk/extensions/slack/src/monitor/slash-commands.runtime.d.ts +0 -11
- package/dist/plugin-sdk/extensions/slack/src/monitor/slash-dispatch.runtime.d.ts +0 -17
- package/dist/plugin-sdk/extensions/slack/src/monitor/slash-skill-commands.runtime.d.ts +0 -3
- package/dist/plugin-sdk/extensions/slack/src/monitor/slash.d.ts +0 -6
- package/dist/plugin-sdk/extensions/slack/src/monitor/thread-resolution.d.ts +0 -12
- package/dist/plugin-sdk/extensions/slack/src/monitor/types.d.ts +0 -113
- package/dist/plugin-sdk/extensions/slack/src/monitor.d.ts +0 -5
- package/dist/plugin-sdk/extensions/slack/src/outbound-adapter.d.ts +0 -2
- package/dist/plugin-sdk/extensions/slack/src/probe.d.ts +0 -14
- package/dist/plugin-sdk/extensions/slack/src/reply-blocks.d.ts +0 -3
- package/dist/plugin-sdk/extensions/slack/src/resolve-allowlist-common.d.ts +0 -29
- package/dist/plugin-sdk/extensions/slack/src/resolve-channels.d.ts +0 -19
- package/dist/plugin-sdk/extensions/slack/src/resolve-users.d.ts +0 -26
- package/dist/plugin-sdk/extensions/slack/src/runtime-api.d.ts +0 -6
- package/dist/plugin-sdk/extensions/slack/src/runtime.d.ts +0 -3
- package/dist/plugin-sdk/extensions/slack/src/scopes.d.ts +0 -7
- package/dist/plugin-sdk/extensions/slack/src/send.d.ts +0 -32
- package/dist/plugin-sdk/extensions/slack/src/sent-thread-cache.d.ts +0 -3
- package/dist/plugin-sdk/extensions/slack/src/setup-core.d.ts +0 -80
- package/dist/plugin-sdk/extensions/slack/src/setup-surface.d.ts +0 -2
- package/dist/plugin-sdk/extensions/slack/src/shared.d.ts +0 -39
- package/dist/plugin-sdk/extensions/slack/src/stream-mode.d.ts +0 -23
- package/dist/plugin-sdk/extensions/slack/src/streaming.d.ts +0 -72
- package/dist/plugin-sdk/extensions/slack/src/targets.d.ts +0 -9
- package/dist/plugin-sdk/extensions/slack/src/threading-tool-context.d.ts +0 -10
- package/dist/plugin-sdk/extensions/slack/src/threading.d.ts +0 -29
- package/dist/plugin-sdk/extensions/slack/src/token.d.ts +0 -4
- package/dist/plugin-sdk/extensions/slack/src/truncate.d.ts +0 -1
- package/dist/plugin-sdk/extensions/slack/src/types.d.ts +0 -58
- package/dist/plugin-sdk/extensions/slack/test-api.d.ts +0 -9
- package/dist/plugin-sdk/extensions/speech-core/api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/speech-core/runtime-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/speech-core/src/tts.d.ts +0 -145
- package/dist/plugin-sdk/extensions/synthetic/api.d.ts +0 -3
- package/dist/plugin-sdk/extensions/synthetic/models.d.ts +0 -160
- package/dist/plugin-sdk/extensions/synthetic/onboard.d.ts +0 -5
- package/dist/plugin-sdk/extensions/synthetic/provider-catalog.d.ts +0 -2
- package/dist/plugin-sdk/extensions/together/api.d.ts +0 -3
- package/dist/plugin-sdk/extensions/together/models.d.ts +0 -4
- package/dist/plugin-sdk/extensions/together/onboard.d.ts +0 -4
- package/dist/plugin-sdk/extensions/together/provider-catalog.d.ts +0 -2
- package/dist/plugin-sdk/extensions/venice/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/venice/models.d.ts +0 -345
- package/dist/plugin-sdk/extensions/venice/provider-catalog.d.ts +0 -2
- package/dist/plugin-sdk/extensions/vercel-ai-gateway/api.d.ts +0 -3
- package/dist/plugin-sdk/extensions/vercel-ai-gateway/models.d.ts +0 -15
- package/dist/plugin-sdk/extensions/vercel-ai-gateway/onboard.d.ts +0 -4
- package/dist/plugin-sdk/extensions/vercel-ai-gateway/provider-catalog.d.ts +0 -2
- package/dist/plugin-sdk/extensions/vllm/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/vllm/defaults.d.ts +0 -4
- package/dist/plugin-sdk/extensions/vllm/models.d.ts +0 -8
- package/dist/plugin-sdk/extensions/volcengine/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/volcengine/models.d.ts +0 -94
- package/dist/plugin-sdk/extensions/volcengine/provider-catalog.d.ts +0 -3
- package/dist/plugin-sdk/extensions/whatsapp/api.d.ts +0 -10
- package/dist/plugin-sdk/extensions/whatsapp/constants.d.ts +0 -1
- package/dist/plugin-sdk/extensions/whatsapp/light-runtime-api.d.ts +0 -4
- package/dist/plugin-sdk/extensions/whatsapp/login-qr-api.d.ts +0 -5
- package/dist/plugin-sdk/extensions/whatsapp/runtime-api.d.ts +0 -14
- package/dist/plugin-sdk/extensions/whatsapp/src/account-config.d.ts +0 -8
- package/dist/plugin-sdk/extensions/whatsapp/src/accounts.d.ts +0 -43
- package/dist/plugin-sdk/extensions/whatsapp/src/action-runtime-target-auth.d.ts +0 -10
- package/dist/plugin-sdk/extensions/whatsapp/src/action-runtime.d.ts +0 -9
- package/dist/plugin-sdk/extensions/whatsapp/src/agent-tools-login.d.ts +0 -2
- package/dist/plugin-sdk/extensions/whatsapp/src/auth-store.d.ts +0 -31
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/constants.d.ts +0 -1
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/deliver-reply.d.ts +0 -19
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/heartbeat-runner.d.ts +0 -20
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/loggers.d.ts +0 -4
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/mentions.d.ts +0 -19
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/ack-reaction.d.ts +0 -13
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/broadcast.d.ts +0 -16
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/commands.d.ts +0 -2
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/echo.d.ts +0 -17
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/group-activation.d.ts +0 -9
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/group-gating.d.ts +0 -33
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/group-members.d.ts +0 -6
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/inbound-context.d.ts +0 -28
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/inbound-dispatch.d.ts +0 -140
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/last-route.d.ts +0 -15
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/message-line.d.ts +0 -11
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/on-message.d.ts +0 -24
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/peer.d.ts +0 -2
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/process-message.d.ts +0 -31
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor/runtime-api.d.ts +0 -14
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor-state.d.ts +0 -18
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/monitor.d.ts +0 -5
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/session-snapshot.d.ts +0 -17
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/types.d.ts +0 -33
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply/util.d.ts +0 -2
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply.d.ts +0 -1
- package/dist/plugin-sdk/extensions/whatsapp/src/auto-reply.impl.d.ts +0 -6
- package/dist/plugin-sdk/extensions/whatsapp/src/channel.runtime.d.ts +0 -23
- package/dist/plugin-sdk/extensions/whatsapp/src/creds-files.d.ts +0 -3
- package/dist/plugin-sdk/extensions/whatsapp/src/directory-config.d.ts +0 -3
- package/dist/plugin-sdk/extensions/whatsapp/src/group-policy.d.ts +0 -14
- package/dist/plugin-sdk/extensions/whatsapp/src/identity.d.ts +0 -52
- package/dist/plugin-sdk/extensions/whatsapp/src/inbound/access-control.d.ts +0 -36
- package/dist/plugin-sdk/extensions/whatsapp/src/inbound/dedupe.d.ts +0 -12
- package/dist/plugin-sdk/extensions/whatsapp/src/inbound/extract.d.ts +0 -8
- package/dist/plugin-sdk/extensions/whatsapp/src/inbound/lifecycle.d.ts +0 -14
- package/dist/plugin-sdk/extensions/whatsapp/src/inbound/media.d.ts +0 -7
- package/dist/plugin-sdk/extensions/whatsapp/src/inbound/monitor.d.ts +0 -32
- package/dist/plugin-sdk/extensions/whatsapp/src/inbound/send-api.d.ts +0 -22
- package/dist/plugin-sdk/extensions/whatsapp/src/inbound/types.d.ts +0 -48
- package/dist/plugin-sdk/extensions/whatsapp/src/inbound.d.ts +0 -4
- package/dist/plugin-sdk/extensions/whatsapp/src/login-qr.d.ts +0 -19
- package/dist/plugin-sdk/extensions/whatsapp/src/login.d.ts +0 -3
- package/dist/plugin-sdk/extensions/whatsapp/src/media.d.ts +0 -2
- package/dist/plugin-sdk/extensions/whatsapp/src/normalize-target.d.ts +0 -3
- package/dist/plugin-sdk/extensions/whatsapp/src/normalize.d.ts +0 -2
- package/dist/plugin-sdk/extensions/whatsapp/src/qr-image.d.ts +0 -1
- package/dist/plugin-sdk/extensions/whatsapp/src/reaction-level.d.ts +0 -9
- package/dist/plugin-sdk/extensions/whatsapp/src/reconnect.d.ts +0 -11
- package/dist/plugin-sdk/extensions/whatsapp/src/resolve-outbound-target.d.ts +0 -12
- package/dist/plugin-sdk/extensions/whatsapp/src/runtime-api.d.ts +0 -16
- package/dist/plugin-sdk/extensions/whatsapp/src/send.d.ts +0 -32
- package/dist/plugin-sdk/extensions/whatsapp/src/session-errors.d.ts +0 -2
- package/dist/plugin-sdk/extensions/whatsapp/src/session.d.ts +0 -17
- package/dist/plugin-sdk/extensions/whatsapp/src/setup-core.d.ts +0 -2
- package/dist/plugin-sdk/extensions/whatsapp/src/setup-surface.d.ts +0 -2
- package/dist/plugin-sdk/extensions/whatsapp/src/vcard.d.ts +0 -6
- package/dist/plugin-sdk/extensions/xai/api.d.ts +0 -27
- package/dist/plugin-sdk/extensions/xai/model-definitions.d.ts +0 -13
- package/dist/plugin-sdk/extensions/xai/model-id.d.ts +0 -1
- package/dist/plugin-sdk/extensions/xai/onboard.d.ts +0 -5
- package/dist/plugin-sdk/extensions/xai/provider-catalog.d.ts +0 -2
- package/dist/plugin-sdk/extensions/xai/provider-models.d.ts +0 -6
- package/dist/plugin-sdk/extensions/xiaomi/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/xiaomi/onboard.d.ts +0 -4
- package/dist/plugin-sdk/extensions/xiaomi/provider-catalog.d.ts +0 -3
- package/dist/plugin-sdk/extensions/zai/api.d.ts +0 -2
- package/dist/plugin-sdk/extensions/zai/model-definitions.d.ts +0 -23
- package/dist/plugin-sdk/extensions/zai/onboard.d.ts +0 -10
- package/dist/plugin-sdk/extensions/zalo/api.d.ts +0 -3
- package/dist/plugin-sdk/extensions/zalo/runtime-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/zalo/src/accounts.d.ts +0 -11
- package/dist/plugin-sdk/extensions/zalo/src/group-access.d.ts +0 -17
- package/dist/plugin-sdk/extensions/zalo/src/runtime-api.d.ts +0 -1
- package/dist/plugin-sdk/extensions/zalo/src/secret-input.d.ts +0 -1
- package/dist/plugin-sdk/extensions/zalo/src/setup-core.d.ts +0 -1
- package/dist/plugin-sdk/extensions/zalo/src/setup-surface.d.ts +0 -3
- package/dist/plugin-sdk/extensions/zalo/src/token.d.ts +0 -8
- package/dist/plugin-sdk/extensions/zalo/src/types.d.ts +0 -46
- package/dist/plugin-sdk/feishu-conversation.d.ts +0 -1
- package/dist/plugin-sdk/feishu-setup.d.ts +0 -1
- package/dist/plugin-sdk/feishu.d.ts +0 -1
- package/dist/plugin-sdk/fetch-runtime.d.ts +0 -1
- package/dist/plugin-sdk/file-lock.d.ts +0 -1
- package/dist/plugin-sdk/gateway-runtime.d.ts +0 -1
- package/dist/plugin-sdk/github-copilot-login.d.ts +0 -1
- package/dist/plugin-sdk/github-copilot-token.d.ts +0 -1
- package/dist/plugin-sdk/global-singleton.d.ts +0 -1
- package/dist/plugin-sdk/google.d.ts +0 -1
- package/dist/plugin-sdk/googlechat.d.ts +0 -1
- package/dist/plugin-sdk/group-access.d.ts +0 -1
- package/dist/plugin-sdk/hook-runtime.d.ts +0 -1
- package/dist/plugin-sdk/host-runtime.d.ts +0 -1
- package/dist/plugin-sdk/huggingface.d.ts +0 -1
- package/dist/plugin-sdk/image-generation-core.d.ts +0 -1
- package/dist/plugin-sdk/image-generation.d.ts +0 -1
- package/dist/plugin-sdk/index.d.ts +0 -1
- package/dist/plugin-sdk/infra-runtime.d.ts +0 -1
- package/dist/plugin-sdk/interactive-runtime.d.ts +0 -1
- package/dist/plugin-sdk/irc-surface.d.ts +0 -1
- package/dist/plugin-sdk/irc.d.ts +0 -1
- package/dist/plugin-sdk/json-store.d.ts +0 -1
- package/dist/plugin-sdk/keyed-async-queue.d.ts +0 -1
- package/dist/plugin-sdk/kilocode.d.ts +0 -1
- package/dist/plugin-sdk/kimi-coding.d.ts +0 -1
- package/dist/plugin-sdk/lazy-runtime.d.ts +0 -1
- package/dist/plugin-sdk/line-core.d.ts +0 -1
- package/dist/plugin-sdk/line-runtime.d.ts +0 -1
- package/dist/plugin-sdk/line-surface.d.ts +0 -1
- package/dist/plugin-sdk/line.d.ts +0 -1
- package/dist/plugin-sdk/llm-task.d.ts +0 -1
- package/dist/plugin-sdk/logging-core.d.ts +0 -1
- package/dist/plugin-sdk/markdown-table-runtime.d.ts +0 -1
- package/dist/plugin-sdk/matrix-helper.d.ts +0 -1
- package/dist/plugin-sdk/matrix-runtime-heavy.d.ts +0 -1
- package/dist/plugin-sdk/matrix-runtime-shared.d.ts +0 -1
- package/dist/plugin-sdk/matrix-runtime-surface.d.ts +0 -1
- package/dist/plugin-sdk/matrix-surface.d.ts +0 -1
- package/dist/plugin-sdk/matrix-thread-bindings.d.ts +0 -1
- package/dist/plugin-sdk/matrix.d.ts +0 -1
- package/dist/plugin-sdk/mattermost-policy.d.ts +0 -1
- package/dist/plugin-sdk/mattermost.d.ts +0 -1
- package/dist/plugin-sdk/media-runtime.d.ts +0 -1
- package/dist/plugin-sdk/media-understanding-runtime.d.ts +0 -1
- package/dist/plugin-sdk/media-understanding.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-engine-runtime.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-engine-embeddings.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-engine-foundation.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-engine-qmd.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-engine-storage.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-multimodal.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-query.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-runtime-cli.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-runtime-core.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-runtime-files.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-secret.d.ts +0 -1
- package/dist/plugin-sdk/memory-core-host-status.d.ts +0 -1
- package/dist/plugin-sdk/memory-core.d.ts +0 -1
- package/dist/plugin-sdk/memory-lancedb.d.ts +0 -1
- package/dist/plugin-sdk/minimax.d.ts +0 -1
- package/dist/plugin-sdk/mistral.d.ts +0 -1
- package/dist/plugin-sdk/models-provider-runtime.d.ts +0 -1
- package/dist/plugin-sdk/modelstudio-definitions.d.ts +0 -1
- package/dist/plugin-sdk/modelstudio.d.ts +0 -1
- package/dist/plugin-sdk/moonshot.d.ts +0 -1
- package/dist/plugin-sdk/msteams.d.ts +0 -1
- package/dist/plugin-sdk/native-command-registry.d.ts +0 -1
- package/dist/plugin-sdk/nextcloud-talk.d.ts +0 -1
- package/dist/plugin-sdk/nostr.d.ts +0 -1
- package/dist/plugin-sdk/nvidia.d.ts +0 -1
- package/dist/plugin-sdk/ollama-surface.d.ts +0 -1
- package/dist/plugin-sdk/ollama.d.ts +0 -1
- package/dist/plugin-sdk/openai.d.ts +0 -1
- package/dist/plugin-sdk/opencode-go.d.ts +0 -1
- package/dist/plugin-sdk/opencode.d.ts +0 -1
- package/dist/plugin-sdk/outbound-runtime.d.ts +0 -1
- package/dist/plugin-sdk/packages/memory-host-sdk/src/engine-embeddings.d.ts +0 -16
- package/dist/plugin-sdk/packages/memory-host-sdk/src/engine-foundation.d.ts +0 -20
- package/dist/plugin-sdk/packages/memory-host-sdk/src/engine-qmd.d.ts +0 -5
- package/dist/plugin-sdk/packages/memory-host-sdk/src/engine.d.ts +0 -4
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-embedding-common.d.ts +0 -9
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-error-utils.d.ts +0 -15
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-gemini.d.ts +0 -46
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-http.d.ts +0 -8
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-openai.d.ts +0 -19
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-output.d.ts +0 -23
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-provider-common.d.ts +0 -9
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-runner.d.ts +0 -38
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-status.d.ts +0 -27
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-upload.d.ts +0 -6
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-utils.d.ts +0 -11
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/batch-voyage.d.ts +0 -29
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embedding-chunk-limits.d.ts +0 -3
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embedding-model-limits.d.ts +0 -2
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embedding-vectors.d.ts +0 -1
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings-debug.d.ts +0 -1
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings-gemini.d.ts +0 -63
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings-mistral.d.ts +0 -15
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings-model-normalize.d.ts +0 -5
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings-ollama.d.ts +0 -2
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings-openai.d.ts +0 -15
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings-remote-client.d.ts +0 -12
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings-remote-fetch.d.ts +0 -8
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings-remote-provider.d.ts +0 -21
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings-voyage.d.ts +0 -15
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/embeddings.d.ts +0 -59
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/node-llama.d.ts +0 -8
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/post-json.d.ts +0 -10
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/qmd-process.d.ts +0 -34
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/qmd-query-parser.d.ts +0 -11
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/qmd-scope.d.ts +0 -4
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/remote-http.d.ts +0 -9
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/secret-input.d.ts +0 -5
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/session-files.d.ts +0 -14
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/status-format.d.ts +0 -28
- package/dist/plugin-sdk/packages/memory-host-sdk/src/host/test-helpers/ssrf.d.ts +0 -2
- package/dist/plugin-sdk/packages/memory-host-sdk/src/runtime-cli.d.ts +0 -9
- package/dist/plugin-sdk/packages/memory-host-sdk/src/runtime-core.d.ts +0 -17
- package/dist/plugin-sdk/packages/memory-host-sdk/src/runtime-files.d.ts +0 -4
- package/dist/plugin-sdk/packages/memory-host-sdk/src/runtime.d.ts +0 -3
- package/dist/plugin-sdk/packages/memory-host-sdk/src/secret.d.ts +0 -1
- package/dist/plugin-sdk/packages/memory-host-sdk/src/status.d.ts +0 -1
- package/dist/plugin-sdk/param-readers.d.ts +0 -1
- package/dist/plugin-sdk/plugin-entry.d.ts +0 -1
- package/dist/plugin-sdk/plugin-runtime.d.ts +0 -1
- package/dist/plugin-sdk/process-runtime.d.ts +0 -1
- package/dist/plugin-sdk/provider-auth-api-key.d.ts +0 -1
- package/dist/plugin-sdk/provider-auth-login.d.ts +0 -1
- package/dist/plugin-sdk/provider-auth-result.d.ts +0 -1
- package/dist/plugin-sdk/provider-auth-runtime.d.ts +0 -1
- package/dist/plugin-sdk/provider-auth.d.ts +0 -1
- package/dist/plugin-sdk/provider-catalog-shared.d.ts +0 -1
- package/dist/plugin-sdk/provider-entry.d.ts +0 -1
- package/dist/plugin-sdk/provider-env-vars.d.ts +0 -1
- package/dist/plugin-sdk/provider-http.d.ts +0 -1
- package/dist/plugin-sdk/provider-model-shared.d.ts +0 -1
- package/dist/plugin-sdk/provider-moonshot.d.ts +0 -1
- package/dist/plugin-sdk/provider-onboard.d.ts +0 -1
- package/dist/plugin-sdk/provider-setup.d.ts +0 -1
- package/dist/plugin-sdk/provider-stream.d.ts +0 -1
- package/dist/plugin-sdk/provider-tools.d.ts +0 -1
- package/dist/plugin-sdk/provider-usage.d.ts +0 -1
- package/dist/plugin-sdk/provider-web-fetch.d.ts +0 -1
- package/dist/plugin-sdk/provider-web-search.d.ts +0 -1
- package/dist/plugin-sdk/provider-zai-endpoint.d.ts +0 -1
- package/dist/plugin-sdk/qianfan.d.ts +0 -1
- package/dist/plugin-sdk/reply-chunking.d.ts +0 -1
- package/dist/plugin-sdk/reply-dispatch-runtime.d.ts +0 -1
- package/dist/plugin-sdk/reply-history.d.ts +0 -1
- package/dist/plugin-sdk/reply-payload.d.ts +0 -1
- package/dist/plugin-sdk/reply-runtime.d.ts +0 -1
- package/dist/plugin-sdk/request-url.d.ts +0 -1
- package/dist/plugin-sdk/retry-runtime.d.ts +0 -1
- package/dist/plugin-sdk/routing.d.ts +0 -1
- package/dist/plugin-sdk/runtime-config-snapshot.d.ts +0 -1
- package/dist/plugin-sdk/runtime-env.d.ts +0 -1
- package/dist/plugin-sdk/runtime-group-policy.d.ts +0 -1
- package/dist/plugin-sdk/runtime-store.d.ts +0 -1
- package/dist/plugin-sdk/runtime.d.ts +0 -1
- package/dist/plugin-sdk/sandbox.d.ts +0 -1
- package/dist/plugin-sdk/scripts/lib/plugin-sdk-doc-metadata.d.ts +0 -64
- package/dist/plugin-sdk/secret-input.d.ts +0 -1
- package/dist/plugin-sdk/security-runtime.d.ts +0 -1
- package/dist/plugin-sdk/self-hosted-provider-setup.d.ts +0 -1
- package/dist/plugin-sdk/session-store-runtime.d.ts +0 -1
- package/dist/plugin-sdk/setup-adapter-runtime.d.ts +0 -1
- package/dist/plugin-sdk/setup-runtime.d.ts +0 -1
- package/dist/plugin-sdk/setup-tools.d.ts +0 -1
- package/dist/plugin-sdk/setup.d.ts +0 -1
- package/dist/plugin-sdk/sglang.d.ts +0 -1
- package/dist/plugin-sdk/signal-account.d.ts +0 -1
- package/dist/plugin-sdk/signal-surface.d.ts +0 -1
- package/dist/plugin-sdk/signal.d.ts +0 -1
- package/dist/plugin-sdk/skill-commands-runtime.d.ts +0 -1
- package/dist/plugin-sdk/slack-account.d.ts +0 -1
- package/dist/plugin-sdk/slack-core.d.ts +0 -1
- package/dist/plugin-sdk/slack-runtime-surface.d.ts +0 -1
- package/dist/plugin-sdk/slack-surface.d.ts +0 -1
- package/dist/plugin-sdk/slack-target-parser.d.ts +0 -1
- package/dist/plugin-sdk/slack-targets.d.ts +0 -1
- package/dist/plugin-sdk/slack.d.ts +0 -1
- package/dist/plugin-sdk/speech-core.d.ts +0 -1
- package/dist/plugin-sdk/speech-runtime.d.ts +0 -1
- package/dist/plugin-sdk/speech.d.ts +0 -1
- package/dist/plugin-sdk/src/acp/runtime/adapter-contract.testkit.d.ts +0 -14
- package/dist/plugin-sdk/src/agents/auth-profiles/upsert-with-lock.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/live-test-helpers.d.ts +0 -12
- package/dist/plugin-sdk/src/agents/model-allowlist-ref.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/model-catalog.d.ts +0 -35
- package/dist/plugin-sdk/src/agents/model-suppression.runtime.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/openclaw-tools.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/openrouter-model-capabilities.d.ts +0 -53
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/proxy-stream-wrappers.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/zai-stream-wrappers.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/pi-embedded.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/sandbox/test-fixtures.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/self-hosted-provider-defaults.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/simple-completion-transport.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/skills.e2e-test-helpers.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/chunk.d.ts +0 -45
- package/dist/plugin-sdk/src/auto-reply/dispatch.d.ts +0 -32
- package/dist/plugin-sdk/src/auto-reply/heartbeat-reply-payload.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/media-note.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/abort-cutoff.runtime.d.ts +0 -7
- package/dist/plugin-sdk/src/auto-reply/reply/abort.d.ts +0 -40
- package/dist/plugin-sdk/src/auto-reply/reply/abort.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/acp-projector.d.ts +0 -21
- package/dist/plugin-sdk/src/auto-reply/reply/acp-stream-settings.d.ts +0 -24
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-helpers.d.ts +0 -15
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-memory.d.ts +0 -42
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-payloads.d.ts +0 -29
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-reminder-guard.d.ts +0 -13
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-usage-line.d.ts +0 -17
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner.d.ts +0 -39
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/auto-topic-label-config.d.ts +0 -14
- package/dist/plugin-sdk/src/auto-reply/reply/auto-topic-label.d.ts +0 -26
- package/dist/plugin-sdk/src/auto-reply/reply/body.d.ts +0 -10
- package/dist/plugin-sdk/src/auto-reply/reply/commands-core.d.ts +0 -13
- package/dist/plugin-sdk/src/auto-reply/reply/commands-core.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/commands-handlers.runtime.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/commands-session-abort.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-session-store.d.ts +0 -13
- package/dist/plugin-sdk/src/auto-reply/reply/commands-session.d.ts +0 -9
- package/dist/plugin-sdk/src/auto-reply/reply/commands-spawn.test-harness.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-agents.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-focus.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-help.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-info.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-kill.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-list.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-log.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-send.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-spawn.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents/action-unfocus.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents.d.ts +0 -4
- package/dist/plugin-sdk/src/auto-reply/reply/commands-tasks.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/reply/commands-tts.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/commands.d.ts +0 -4
- package/dist/plugin-sdk/src/auto-reply/reply/commands.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/commands.test-harness.d.ts +0 -6
- package/dist/plugin-sdk/src/auto-reply/reply/dispatch-acp-delivery.d.ts +0 -35
- package/dist/plugin-sdk/src/auto-reply/reply/dispatch-acp.d.ts +0 -34
- package/dist/plugin-sdk/src/auto-reply/reply/dispatch-acp.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/dispatch-from-config.d.ts +0 -17
- package/dist/plugin-sdk/src/auto-reply/reply/exec.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/followup-runner.d.ts +0 -16
- package/dist/plugin-sdk/src/auto-reply/reply/get-reply-from-config.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/get-reply-inline-actions.d.ts +0 -62
- package/dist/plugin-sdk/src/auto-reply/reply/get-reply-run.d.ts +0 -69
- package/dist/plugin-sdk/src/auto-reply/reply/get-reply.d.ts +0 -4
- package/dist/plugin-sdk/src/auto-reply/reply/history.d.ts +0 -72
- package/dist/plugin-sdk/src/auto-reply/reply/inbound-meta.d.ts +0 -4
- package/dist/plugin-sdk/src/auto-reply/reply/matrix-context.d.ts +0 -13
- package/dist/plugin-sdk/src/auto-reply/reply/memory-flush.d.ts +0 -48
- package/dist/plugin-sdk/src/auto-reply/reply/message-preprocess-hooks.d.ts +0 -7
- package/dist/plugin-sdk/src/auto-reply/reply/queue-policy.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/reply/reply-payloads-dedupe.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/reply-reference.d.ts +0 -20
- package/dist/plugin-sdk/src/auto-reply/reply/session-delivery.d.ts +0 -30
- package/dist/plugin-sdk/src/auto-reply/reply/session-fork.d.ts +0 -11
- package/dist/plugin-sdk/src/auto-reply/reply/session-fork.runtime.d.ts +0 -9
- package/dist/plugin-sdk/src/auto-reply/reply/session-reset-model.d.ts +0 -27
- package/dist/plugin-sdk/src/auto-reply/reply/session-reset-model.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/session-reset-prompt.d.ts +0 -9
- package/dist/plugin-sdk/src/auto-reply/reply/session-run-accounting.d.ts +0 -15
- package/dist/plugin-sdk/src/auto-reply/reply/session-updates.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/session-usage.d.ts +0 -25
- package/dist/plugin-sdk/src/auto-reply/reply/session.d.ts +0 -26
- package/dist/plugin-sdk/src/auto-reply/reply/stage-sandbox-media.d.ts +0 -9
- package/dist/plugin-sdk/src/auto-reply/reply/stage-sandbox-media.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/untrusted-context.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply.d.ts +0 -6
- package/dist/plugin-sdk/src/auto-reply/send-policy.d.ts +0 -6
- package/dist/plugin-sdk/src/channel-web.d.ts +0 -5
- package/dist/plugin-sdk/src/channels/draft-stream-controls.d.ts +0 -54
- package/dist/plugin-sdk/src/channels/draft-stream-loop.d.ts +0 -13
- package/dist/plugin-sdk/src/channels/native-command-session-targets.d.ts +0 -12
- package/dist/plugin-sdk/src/channels/plugins/actions/reaction-message-id.d.ts +0 -8
- package/dist/plugin-sdk/src/channels/plugins/actions/shared.d.ts +0 -7
- package/dist/plugin-sdk/src/channels/plugins/bluebubbles-actions.d.ts +0 -48
- package/dist/plugin-sdk/src/channels/plugins/bundled.d.ts +0 -7
- package/dist/plugin-sdk/src/channels/plugins/contracts/inbound-testkit.d.ts +0 -70
- package/dist/plugin-sdk/src/channels/plugins/contracts/suites.d.ts +0 -129
- package/dist/plugin-sdk/src/channels/plugins/pairing-adapters.d.ts +0 -13
- package/dist/plugin-sdk/src/channels/plugins/setup-registry.d.ts +0 -3
- package/dist/plugin-sdk/src/channels/plugins/status-issues/bluebubbles.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/types.adapters.d.ts +0 -694
- package/dist/plugin-sdk/src/channels/plugins/types.d.ts +0 -8
- package/dist/plugin-sdk/src/channels/plugins/whatsapp-shared.d.ts +0 -44
- package/dist/plugin-sdk/src/channels/registry.d.ts +0 -13
- package/dist/plugin-sdk/src/channels/run-state-machine.d.ts +0 -19
- package/dist/plugin-sdk/src/channels/sender-identity.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/status-reactions.d.ts +0 -66
- package/dist/plugin-sdk/src/channels/transport/stall-watchdog.d.ts +0 -20
- package/dist/plugin-sdk/src/cli/cli-utils.d.ts +0 -19
- package/dist/plugin-sdk/src/cli/command-options.d.ts +0 -3
- package/dist/plugin-sdk/src/cli/deps.d.ts +0 -10
- package/dist/plugin-sdk/src/cli/gateway-rpc.d.ts +0 -13
- package/dist/plugin-sdk/src/cli/help-format.d.ts +0 -5
- package/dist/plugin-sdk/src/cli/progress.d.ts +0 -24
- package/dist/plugin-sdk/src/cli/send-runtime/discord.d.ts +0 -3
- package/dist/plugin-sdk/src/cli/send-runtime/imessage.d.ts +0 -12
- package/dist/plugin-sdk/src/cli/send-runtime/signal.d.ts +0 -3
- package/dist/plugin-sdk/src/cli/send-runtime/slack.d.ts +0 -3
- package/dist/plugin-sdk/src/cli/send-runtime/telegram.d.ts +0 -16
- package/dist/plugin-sdk/src/cli/send-runtime/whatsapp.d.ts +0 -4
- package/dist/plugin-sdk/src/cli/test-runtime-capture.d.ts +0 -31
- package/dist/plugin-sdk/src/commands/backup-shared.d.ts +0 -32
- package/dist/plugin-sdk/src/commands/channel-setup/registry.d.ts +0 -6
- package/dist/plugin-sdk/src/commands/channel-setup/types.d.ts +0 -1
- package/dist/plugin-sdk/src/commands/channel-test-helpers.d.ts +0 -7
- package/dist/plugin-sdk/src/commands/chutes-oauth.d.ts +0 -21
- package/dist/plugin-sdk/src/commands/cleanup-utils.d.ts +0 -36
- package/dist/plugin-sdk/src/commands/daemon-runtime.d.ts +0 -8
- package/dist/plugin-sdk/src/commands/health.d.ts +0 -63
- package/dist/plugin-sdk/src/commands/onboard-types.d.ts +0 -95
- package/dist/plugin-sdk/src/config/backup-rotation.d.ts +0 -58
- package/dist/plugin-sdk/src/config/config.d.ts +0 -8
- package/dist/plugin-sdk/src/config/env-preserve.d.ts +0 -10
- package/dist/plugin-sdk/src/config/includes.d.ts +0 -43
- package/dist/plugin-sdk/src/config/io.d.ts +0 -93
- package/dist/plugin-sdk/src/config/paths.d.ts +0 -58
- package/dist/plugin-sdk/src/config/types.agent-defaults.d.ts +0 -377
- package/dist/plugin-sdk/src/config/types.channel-messaging-common.d.ts +0 -53
- package/dist/plugin-sdk/src/config/types.d.ts +0 -34
- package/dist/plugin-sdk/src/config/types.googlechat.d.ts +0 -120
- package/dist/plugin-sdk/src/config/types.imessage.d.ts +0 -88
- package/dist/plugin-sdk/src/config/types.irc.d.ts +0 -61
- package/dist/plugin-sdk/src/config/types.msteams.d.ts +0 -132
- package/dist/plugin-sdk/src/config/types.signal.d.ts +0 -65
- package/dist/plugin-sdk/src/context-engine/registry.d.ts +0 -47
- package/dist/plugin-sdk/src/cron/delivery.d.ts +0 -33
- package/dist/plugin-sdk/src/cron/isolated-agent/delivery-target.d.ts +0 -27
- package/dist/plugin-sdk/src/cron/isolated-agent/session.d.ts +0 -15
- package/dist/plugin-sdk/src/cron/schedule.d.ts +0 -6
- package/dist/plugin-sdk/src/cron/service/initial-delivery.d.ts +0 -2
- package/dist/plugin-sdk/src/cron/service/jobs.d.ts +0 -33
- package/dist/plugin-sdk/src/cron/service/locked.d.ts +0 -2
- package/dist/plugin-sdk/src/cron/service/ops.d.ts +0 -84
- package/dist/plugin-sdk/src/cron/service/state.d.ts +0 -158
- package/dist/plugin-sdk/src/cron/service/store.d.ts +0 -11
- package/dist/plugin-sdk/src/cron/service/timeout-policy.d.ts +0 -13
- package/dist/plugin-sdk/src/cron/service/timer.d.ts +0 -46
- package/dist/plugin-sdk/src/cron/service.d.ts +0 -69
- package/dist/plugin-sdk/src/cron/session-reaper.d.ts +0 -35
- package/dist/plugin-sdk/src/gateway/auth-mode-policy.d.ts +0 -4
- package/dist/plugin-sdk/src/gateway/channel-status-patches.d.ts +0 -6
- package/dist/plugin-sdk/src/gateway/chat-abort.d.ts +0 -47
- package/dist/plugin-sdk/src/gateway/exec-approval-manager.d.ts +0 -47
- package/dist/plugin-sdk/src/gateway/node-command-policy.d.ts +0 -18
- package/dist/plugin-sdk/src/gateway/security-path.d.ts +0 -20
- package/dist/plugin-sdk/src/gateway/server-broadcast.d.ts +0 -17
- package/dist/plugin-sdk/src/gateway/server-channels.d.ts +0 -78
- package/dist/plugin-sdk/src/gateway/server-constants.d.ts +0 -9
- package/dist/plugin-sdk/src/gateway/server-methods/nodes.helpers.d.ts +0 -20
- package/dist/plugin-sdk/src/gateway/server-methods/types.d.ts +0 -108
- package/dist/plugin-sdk/src/gateway/server-shared.d.ts +0 -7
- package/dist/plugin-sdk/src/gateway/startup-auth.d.ts +0 -21
- package/dist/plugin-sdk/src/gateway/ws-log.d.ts +0 -5
- package/dist/plugin-sdk/src/gateway/ws-logging.d.ts +0 -4
- package/dist/plugin-sdk/src/generated/plugin-sdk-facade-type-map.generated.d.ts +0 -769
- package/dist/plugin-sdk/src/hooks/types.d.ts +0 -62
- package/dist/plugin-sdk/src/image-generation/provider-registry.d.ts +0 -4
- package/dist/plugin-sdk/src/infra/backup-create.d.ts +0 -29
- package/dist/plugin-sdk/src/infra/device-bootstrap.d.ts +0 -46
- package/dist/plugin-sdk/src/infra/device-pairing.d.ts +0 -122
- package/dist/plugin-sdk/src/infra/dotenv.d.ts +0 -9
- package/dist/plugin-sdk/src/infra/gemini-auth.d.ts +0 -16
- package/dist/plugin-sdk/src/infra/google-api-base-url.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/heartbeat-active-hours.d.ts +0 -5
- package/dist/plugin-sdk/src/infra/heartbeat-events-filter.d.ts +0 -8
- package/dist/plugin-sdk/src/infra/heartbeat-runner.d.ts +0 -35
- package/dist/plugin-sdk/src/infra/heartbeat-summary.d.ts +0 -16
- package/dist/plugin-sdk/src/infra/http-body.d.ts +0 -46
- package/dist/plugin-sdk/src/infra/matrix-legacy-crypto.d.ts +0 -41
- package/dist/plugin-sdk/src/infra/matrix-legacy-state.d.ts +0 -30
- package/dist/plugin-sdk/src/infra/matrix-migration-config.d.ts +0 -48
- package/dist/plugin-sdk/src/infra/matrix-migration-snapshot.d.ts +0 -25
- package/dist/plugin-sdk/src/infra/matrix-plugin-helper.d.ts +0 -29
- package/dist/plugin-sdk/src/infra/outbound/deliver.d.ts +0 -50
- package/dist/plugin-sdk/src/infra/outbound/delivery-queue-recovery.d.ts +0 -41
- package/dist/plugin-sdk/src/infra/outbound/delivery-queue-storage.d.ts +0 -50
- package/dist/plugin-sdk/src/infra/outbound/delivery-queue.d.ts +0 -4
- package/dist/plugin-sdk/src/infra/outbound/sanitize-text.d.ts +0 -23
- package/dist/plugin-sdk/src/infra/session-maintenance-warning.d.ts +0 -15
- package/dist/plugin-sdk/src/link-understanding/apply.d.ts +0 -10
- package/dist/plugin-sdk/src/link-understanding/apply.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/link-understanding/defaults.d.ts +0 -2
- package/dist/plugin-sdk/src/link-understanding/detect.d.ts +0 -3
- package/dist/plugin-sdk/src/link-understanding/format.d.ts +0 -4
- package/dist/plugin-sdk/src/link-understanding/runner.d.ts +0 -11
- package/dist/plugin-sdk/src/media/file-context.d.ts +0 -7
- package/dist/plugin-sdk/src/media/input-files.d.ts +0 -99
- package/dist/plugin-sdk/src/media-understanding/apply.d.ts +0 -19
- package/dist/plugin-sdk/src/media-understanding/apply.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/media-understanding/audio.test-helpers.d.ts +0 -27
- package/dist/plugin-sdk/src/media-understanding/concurrency.d.ts +0 -1
- package/dist/plugin-sdk/src/media-understanding/echo-transcript.d.ts +0 -13
- package/dist/plugin-sdk/src/media-understanding/format.d.ts +0 -7
- package/dist/plugin-sdk/src/media-understanding/runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/media-understanding/transcribe-audio.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/account-core.d.ts +0 -20
- package/dist/plugin-sdk/src/plugin-sdk/account-resolution.d.ts +0 -24
- package/dist/plugin-sdk/src/plugin-sdk/acp-runtime.d.ts +0 -16
- package/dist/plugin-sdk/src/plugin-sdk/acpx.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/agent-config-primitives.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/allowlist-config-edit.d.ts +0 -99
- package/dist/plugin-sdk/src/plugin-sdk/amazon-bedrock.d.ts +0 -9
- package/dist/plugin-sdk/src/plugin-sdk/api-baseline.d.ts +0 -43
- package/dist/plugin-sdk/src/plugin-sdk/bluebubbles-policy.d.ts +0 -7
- package/dist/plugin-sdk/src/plugin-sdk/bluebubbles.d.ts +0 -62
- package/dist/plugin-sdk/src/plugin-sdk/browser-support.d.ts +0 -54
- package/dist/plugin-sdk/src/plugin-sdk/browser.d.ts +0 -9
- package/dist/plugin-sdk/src/plugin-sdk/byteplus.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/channel-actions.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/channel-config-primitives.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/channel-config-schema.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/channel-config-writes.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/channel-feedback.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/channel-lifecycle.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/channel-pairing.d.ts +0 -24
- package/dist/plugin-sdk/src/plugin-sdk/channel-plugin-common.d.ts +0 -12
- package/dist/plugin-sdk/src/plugin-sdk/channel-setup.d.ts +0 -21
- package/dist/plugin-sdk/src/plugin-sdk/chutes.d.ts +0 -14
- package/dist/plugin-sdk/src/plugin-sdk/cli-backend.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/cloudflare-ai-gateway.d.ts +0 -12
- package/dist/plugin-sdk/src/plugin-sdk/collection-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/command-auth-native.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/command-auth.d.ts +0 -65
- package/dist/plugin-sdk/src/plugin-sdk/command-detection.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/command-surface.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/compat.d.ts +0 -17
- package/dist/plugin-sdk/src/plugin-sdk/config-paths.d.ts +0 -7
- package/dist/plugin-sdk/src/plugin-sdk/copilot-proxy.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/dangerous-name-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/deepseek.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/device-bootstrap.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/diagnostics-otel.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/diffs.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/discord-account.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/discord-runtime-surface.d.ts +0 -61
- package/dist/plugin-sdk/src/plugin-sdk/discord-send.d.ts +0 -36
- package/dist/plugin-sdk/src/plugin-sdk/entrypoints.d.ts +0 -17
- package/dist/plugin-sdk/src/plugin-sdk/extension-shared.d.ts +0 -67
- package/dist/plugin-sdk/src/plugin-sdk/feishu-conversation.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/feishu-setup.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/feishu.d.ts +0 -45
- package/dist/plugin-sdk/src/plugin-sdk/fetch-auth.d.ts +0 -14
- package/dist/plugin-sdk/src/plugin-sdk/gateway-runtime.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/github-copilot-login.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/github-copilot-token.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/global-singleton.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/google.d.ts +0 -18
- package/dist/plugin-sdk/src/plugin-sdk/googlechat.d.ts +0 -49
- package/dist/plugin-sdk/src/plugin-sdk/hook-runtime.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/host-runtime.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/huggingface.d.ts +0 -12
- package/dist/plugin-sdk/src/plugin-sdk/image-generation-core.d.ts +0 -15
- package/dist/plugin-sdk/src/plugin-sdk/image-generation.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/index.d.ts +0 -28
- package/dist/plugin-sdk/src/plugin-sdk/infra-runtime.d.ts +0 -47
- package/dist/plugin-sdk/src/plugin-sdk/irc-surface.d.ts +0 -9
- package/dist/plugin-sdk/src/plugin-sdk/irc.d.ts +0 -38
- package/dist/plugin-sdk/src/plugin-sdk/kilocode.d.ts +0 -17
- package/dist/plugin-sdk/src/plugin-sdk/kimi-coding.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/lazy-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/line-core.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/line-runtime.d.ts +0 -75
- package/dist/plugin-sdk/src/plugin-sdk/litellm.d.ts +0 -10
- package/dist/plugin-sdk/src/plugin-sdk/llm-task.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/lobster.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/logging-core.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/markdown-table-runtime.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/matrix-helper.d.ts +0 -14
- package/dist/plugin-sdk/src/plugin-sdk/matrix-runtime-heavy.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/matrix-runtime-shared.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/matrix-runtime-surface.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/matrix-surface.d.ts +0 -7
- package/dist/plugin-sdk/src/plugin-sdk/matrix-thread-bindings.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/matrix.d.ts +0 -72
- package/dist/plugin-sdk/src/plugin-sdk/mattermost-policy.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/mattermost.d.ts +0 -50
- package/dist/plugin-sdk/src/plugin-sdk/memory-core-engine-runtime.d.ts +0 -9
- package/dist/plugin-sdk/src/plugin-sdk/memory-core-host-engine-embeddings.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/memory-core-host-engine-foundation.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/memory-core-host-engine-qmd.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/memory-core-host-runtime-cli.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/memory-core-host-runtime-core.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/memory-core-host-runtime-files.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/memory-core-host-secret.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/memory-core-host-status.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/memory-core.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/memory-lancedb.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/minimax.d.ts +0 -18
- package/dist/plugin-sdk/src/plugin-sdk/mistral.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/models-provider-runtime.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/modelstudio-definitions.d.ts +0 -13
- package/dist/plugin-sdk/src/plugin-sdk/modelstudio.d.ts +0 -18
- package/dist/plugin-sdk/src/plugin-sdk/moonshot.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/msteams.d.ts +0 -60
- package/dist/plugin-sdk/src/plugin-sdk/native-command-registry.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/nextcloud-talk.d.ts +0 -45
- package/dist/plugin-sdk/src/plugin-sdk/nostr.d.ts +0 -20
- package/dist/plugin-sdk/src/plugin-sdk/nvidia.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/ollama-surface.d.ts +0 -21
- package/dist/plugin-sdk/src/plugin-sdk/open-prose.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/openai.d.ts +0 -15
- package/dist/plugin-sdk/src/plugin-sdk/opencode-go.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/opencode.d.ts +0 -9
- package/dist/plugin-sdk/src/plugin-sdk/openrouter.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/optional-channel-setup.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/pairing-access.d.ts +0 -19
- package/dist/plugin-sdk/src/plugin-sdk/param-readers.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/persistent-dedupe.d.ts +0 -22
- package/dist/plugin-sdk/src/plugin-sdk/phone-control.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/plugin-runtime.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/process-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/provider-auth-api-key.d.ts +0 -7
- package/dist/plugin-sdk/src/plugin-sdk/provider-auth-login.d.ts +0 -27
- package/dist/plugin-sdk/src/plugin-sdk/provider-auth-login.runtime.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/provider-catalog-shared.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/provider-entry.d.ts +0 -38
- package/dist/plugin-sdk/src/plugin-sdk/provider-env-vars.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/provider-moonshot.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/provider-onboard.d.ts +0 -85
- package/dist/plugin-sdk/src/plugin-sdk/provider-reasoning.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/provider-setup.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/provider-stream.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/provider-usage.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/provider-web-fetch.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/provider-zai-endpoint.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/qianfan.d.ts +0 -7
- package/dist/plugin-sdk/src/plugin-sdk/reply-chunking.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/reply-dispatch-runtime.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/reply-history.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/reply-runtime.d.ts +0 -21
- package/dist/plugin-sdk/src/plugin-sdk/request-url.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/resolution-notes.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/run-command.d.ts +0 -13
- package/dist/plugin-sdk/src/plugin-sdk/runtime-config-snapshot.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/runtime-group-policy.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/runtime-store.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/runtime.d.ts +0 -39
- package/dist/plugin-sdk/src/plugin-sdk/sandbox.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/secret-input-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/security-runtime.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/self-hosted-provider-setup.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/session-store-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/setup-adapter-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/setup-runtime.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/setup-tools.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/setup.d.ts +0 -22
- package/dist/plugin-sdk/src/plugin-sdk/sglang.d.ts +0 -9
- package/dist/plugin-sdk/src/plugin-sdk/signal-account.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/signal-core.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/skill-commands-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/slack-account.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/slack-core.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/speech-core.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/speech.d.ts +0 -7
- package/dist/plugin-sdk/src/plugin-sdk/string-normalization-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/synthetic.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/talk-voice.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/telegram-account.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/telegram-allow-from.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/telegram-command-config.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/telegram-surface.d.ts +0 -44
- package/dist/plugin-sdk/src/plugin-sdk/test-utils.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/testing.d.ts +0 -53
- package/dist/plugin-sdk/src/plugin-sdk/text-chunking.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/thread-bindings-runtime.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/thread-ownership.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/tlon.d.ts +0 -22
- package/dist/plugin-sdk/src/plugin-sdk/together.d.ts +0 -10
- package/dist/plugin-sdk/src/plugin-sdk/tool-send.d.ts +0 -7
- package/dist/plugin-sdk/src/plugin-sdk/twitch.d.ts +0 -18
- package/dist/plugin-sdk/src/plugin-sdk/venice.d.ts +0 -10
- package/dist/plugin-sdk/src/plugin-sdk/vercel-ai-gateway.d.ts +0 -14
- package/dist/plugin-sdk/src/plugin-sdk/vllm.d.ts +0 -9
- package/dist/plugin-sdk/src/plugin-sdk/voice-call.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/volcengine.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/webhook-ingress.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/webhook-memory-guards.d.ts +0 -52
- package/dist/plugin-sdk/src/plugin-sdk/webhook-path.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/webhook-request-guards.d.ts +0 -89
- package/dist/plugin-sdk/src/plugin-sdk/webhook-targets.d.ts +0 -97
- package/dist/plugin-sdk/src/plugin-sdk/whatsapp-action-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/whatsapp-core.d.ts +0 -10
- package/dist/plugin-sdk/src/plugin-sdk/whatsapp-login-qr.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/whatsapp-shared.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/whatsapp-surface.d.ts +0 -19
- package/dist/plugin-sdk/src/plugin-sdk/whatsapp.d.ts +0 -32
- package/dist/plugin-sdk/src/plugin-sdk/xai.d.ts +0 -21
- package/dist/plugin-sdk/src/plugin-sdk/xiaomi.d.ts +0 -9
- package/dist/plugin-sdk/src/plugin-sdk/zai.d.ts +0 -12
- package/dist/plugin-sdk/src/plugin-sdk/zalo-setup.d.ts +0 -8
- package/dist/plugin-sdk/src/plugin-sdk/zalo.d.ts +0 -47
- package/dist/plugin-sdk/src/plugin-sdk/zalouser.d.ts +0 -39
- package/dist/plugin-sdk/src/plugin-sdk/zod.d.ts +0 -1
- package/dist/plugin-sdk/src/plugins/bundled-compat.d.ts +0 -14
- package/dist/plugin-sdk/src/plugins/http-path.d.ts +0 -1
- package/dist/plugin-sdk/src/plugins/http-registry.d.ts +0 -16
- package/dist/plugin-sdk/src/plugins/http-route-overlap.d.ts +0 -11
- package/dist/plugin-sdk/src/plugins/interactive-dispatch-adapters.d.ts +0 -44
- package/dist/plugin-sdk/src/plugins/interactive.d.ts +0 -60
- package/dist/plugin-sdk/src/plugins/lazy-service-module.d.ts +0 -13
- package/dist/plugin-sdk/src/plugins/loader.d.ts +0 -74
- package/dist/plugin-sdk/src/plugins/plugin-error-handler.d.ts +0 -130
- package/dist/plugin-sdk/src/plugins/provider-auth-choice.runtime.d.ts +0 -7
- package/dist/plugin-sdk/src/plugins/provider-catalog.d.ts +0 -24
- package/dist/plugin-sdk/src/plugins/provider-model-allowlist.d.ts +0 -6
- package/dist/plugin-sdk/src/plugins/provider-model-defaults.d.ts +0 -26
- package/dist/plugin-sdk/src/plugins/provider-oauth-flow.d.ts +0 -20
- package/dist/plugin-sdk/src/plugins/provider-openai-codex-oauth-tls.d.ts +0 -22
- package/dist/plugin-sdk/src/plugins/provider-openai-codex-oauth.d.ts +0 -10
- package/dist/plugin-sdk/src/plugins/provider-runtime.d.ts +0 -271
- package/dist/plugin-sdk/src/plugins/provider-runtime.runtime.d.ts +0 -14
- package/dist/plugin-sdk/src/plugins/provider-self-hosted-setup.d.ts +0 -60
- package/dist/plugin-sdk/src/plugins/provider-validation.d.ts +0 -7
- package/dist/plugin-sdk/src/plugins/provider-wizard.d.ts +0 -45
- package/dist/plugin-sdk/src/plugins/provider-zai-endpoint.d.ts +0 -16
- package/dist/plugin-sdk/src/plugins/providers.d.ts +0 -39
- package/dist/plugin-sdk/src/plugins/registry-empty.d.ts +0 -2
- package/dist/plugin-sdk/src/plugins/registry.d.ts +0 -217
- package/dist/plugin-sdk/src/plugins/runtime/gateway-request-scope.d.ts +0 -19
- package/dist/plugin-sdk/src/plugins/runtime/index.d.ts +0 -19
- package/dist/plugin-sdk/src/plugins/runtime/native-deps.d.ts +0 -8
- package/dist/plugin-sdk/src/plugins/runtime/runtime-channel.d.ts +0 -2
- package/dist/plugin-sdk/src/plugins/runtime/runtime-config.d.ts +0 -2
- package/dist/plugin-sdk/src/plugins/runtime/runtime-events.d.ts +0 -2
- package/dist/plugin-sdk/src/plugins/runtime/runtime-logging.d.ts +0 -2
- package/dist/plugin-sdk/src/plugins/runtime/runtime-media-understanding.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugins/runtime/runtime-media.d.ts +0 -2
- package/dist/plugin-sdk/src/plugins/runtime/runtime-slack-ops.runtime.d.ts +0 -10
- package/dist/plugin-sdk/src/plugins/runtime/runtime-slack.d.ts +0 -2
- package/dist/plugin-sdk/src/plugins/runtime/runtime-system.d.ts +0 -2
- package/dist/plugin-sdk/src/plugins/runtime/runtime-tts.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/plugins/runtime/runtime-whatsapp-boundary.d.ts +0 -35
- package/dist/plugin-sdk/src/plugins/runtime/types-channel.d.ts +0 -200
- package/dist/plugin-sdk/src/plugins/runtime/types-core.d.ts +0 -123
- package/dist/plugin-sdk/src/plugins/runtime/types.d.ts +0 -51
- package/dist/plugin-sdk/src/plugins/runtime.d.ts +0 -39
- package/dist/plugin-sdk/src/plugins/slots.d.ts +0 -36
- package/dist/plugin-sdk/src/plugins/types.d.ts +0 -2287
- package/dist/plugin-sdk/src/security/channel-metadata.d.ts +0 -6
- package/dist/plugin-sdk/src/security/context-visibility.d.ts +0 -26
- package/dist/plugin-sdk/src/shared/device-bootstrap-profile.d.ts +0 -10
- package/dist/plugin-sdk/src/terminal/health-style.d.ts +0 -1
- package/dist/plugin-sdk/src/terminal/note.d.ts +0 -5
- package/dist/plugin-sdk/src/test-helpers/http.d.ts +0 -3
- package/dist/plugin-sdk/src/test-helpers/ssrf.d.ts +0 -2
- package/dist/plugin-sdk/src/test-helpers/state-dir-env.d.ts +0 -9
- package/dist/plugin-sdk/src/test-helpers/whatsapp-outbound.d.ts +0 -22
- package/dist/plugin-sdk/src/test-utils/bundled-plugin-public-surface.d.ts +0 -10
- package/dist/plugin-sdk/src/test-utils/channel-plugins.d.ts +0 -40
- package/dist/plugin-sdk/src/test-utils/env.d.ts +0 -10
- package/dist/plugin-sdk/src/test-utils/fetch-mock.d.ts +0 -13
- package/dist/plugin-sdk/src/test-utils/session-state-cleanup.d.ts +0 -10
- package/dist/plugin-sdk/src/test-utils/vitest-mock-fn.d.ts +0 -1
- package/dist/plugin-sdk/src/tts/directives.d.ts +0 -10
- package/dist/plugin-sdk/src/tts/provider-error-utils.d.ts +0 -4
- package/dist/plugin-sdk/src/tts/provider-registry.d.ts +0 -7
- package/dist/plugin-sdk/src/tts/provider-types.d.ts +0 -100
- package/dist/plugin-sdk/src/tts/tts-core.d.ts +0 -32
- package/dist/plugin-sdk/src/tts/tts.runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/utils/message-channel.d.ts +0 -29
- package/dist/plugin-sdk/src/utils.d.ts +0 -58
- package/dist/plugin-sdk/src/wizard/session.d.ts +0 -42
- package/dist/plugin-sdk/ssrf-runtime.d.ts +0 -1
- package/dist/plugin-sdk/state-paths.d.ts +0 -1
- package/dist/plugin-sdk/status-helpers.d.ts +0 -1
- package/dist/plugin-sdk/string-normalization-runtime.d.ts +0 -1
- package/dist/plugin-sdk/synthetic.d.ts +0 -1
- package/dist/plugin-sdk/telegram-account.d.ts +0 -1
- package/dist/plugin-sdk/telegram-allow-from.d.ts +0 -1
- package/dist/plugin-sdk/telegram-command-config.d.ts +0 -1
- package/dist/plugin-sdk/telegram-core.d.ts +0 -1
- package/dist/plugin-sdk/telegram-surface.d.ts +0 -1
- package/dist/plugin-sdk/temp-path.d.ts +0 -1
- package/dist/plugin-sdk/testing.d.ts +0 -1
- package/dist/plugin-sdk/text-runtime.d.ts +0 -1
- package/dist/plugin-sdk/thread-bindings-runtime.d.ts +0 -1
- package/dist/plugin-sdk/thread-ownership.d.ts +0 -1
- package/dist/plugin-sdk/tlon.d.ts +0 -1
- package/dist/plugin-sdk/together.d.ts +0 -1
- package/dist/plugin-sdk/tool-send.d.ts +0 -1
- package/dist/plugin-sdk/twitch.d.ts +0 -1
- package/dist/plugin-sdk/venice.d.ts +0 -1
- package/dist/plugin-sdk/vllm.d.ts +0 -1
- package/dist/plugin-sdk/voice-call.d.ts +0 -1
- package/dist/plugin-sdk/volcengine.d.ts +0 -1
- package/dist/plugin-sdk/web-media.d.ts +0 -1
- package/dist/plugin-sdk/webhook-ingress.d.ts +0 -1
- package/dist/plugin-sdk/webhook-path.d.ts +0 -1
- package/dist/plugin-sdk/webhook-request-guards.d.ts +0 -1
- package/dist/plugin-sdk/whatsapp-auth-presence.d.ts +0 -1
- package/dist/plugin-sdk/whatsapp-core.d.ts +0 -1
- package/dist/plugin-sdk/whatsapp-shared.d.ts +0 -1
- package/dist/plugin-sdk/whatsapp-surface.d.ts +0 -1
- package/dist/plugin-sdk/whatsapp-targets.d.ts +0 -1
- package/dist/plugin-sdk/windows-spawn.d.ts +0 -1
- package/dist/plugin-sdk/xai.d.ts +0 -1
- package/dist/plugin-sdk/zalo-setup.d.ts +0 -1
- package/dist/plugin-sdk/zalo.d.ts +0 -1
- package/dist/plugin-sdk/zalouser.d.ts +0 -1
- package/dist/plugin-sdk/zod.d.ts +0 -1
- package/dist/plugins-cli-BuRzZElZ.js +0 -561
- package/dist/plugins-command-helpers-2uhVdnBb.js +0 -116
- package/dist/plugins-install-persist-BVZkrB2-.js +0 -121
- package/dist/plugins-update-command-CWl-U7Wy.js +0 -974
- package/dist/policy-CBLebx7K.js +0 -147
- package/dist/preflight-audio-RQNk7yfw.js +0 -48
- package/dist/preflight-audio.runtime-BKLaDdXh.js +0 -7
- package/dist/prepare-BdWIhg02.js +0 -1301
- package/dist/probe-7PmWRQdg.js +0 -1868
- package/dist/probe-DBGVRz02.js +0 -170
- package/dist/probe-DtN67E1D.js +0 -349
- package/dist/probe-F0974SeN.js +0 -431
- package/dist/profile-update-B98rJ-pB.js +0 -67
- package/dist/program-CCSYcbNv.js +0 -158
- package/dist/prompt-select-styled-QezSJIFt.js +0 -6434
- package/dist/provider-CvWQLyt5.js +0 -18901
- package/dist/provider-Cvp1QQuM.js +0 -70
- package/dist/provider-IEIXFsBr.js +0 -3685
- package/dist/provider-api-key-auth-BjgG22Cp.js +0 -109
- package/dist/provider-auth-Dlfypk2e.js +0 -43
- package/dist/provider-auth-api-key-DPeAD4Wh.js +0 -5
- package/dist/provider-auth-login-eRYV4NRi.js +0 -8
- package/dist/provider-dispatcher-D2OJ5CNa.js +0 -22
- package/dist/provider-entry-D8rVAPy0.js +0 -86
- package/dist/provider-session.runtime-GQeUwL4B.js +0 -7
- package/dist/provider.runtime-BokN-cp6.js +0 -2
- package/dist/qr-image-CNXmqHBd.js +0 -2
- package/dist/queue-eLL6EbrW.js +0 -663
- package/dist/reaction-runtime-api-DwLFcfeo.js +0 -114
- package/dist/reactions-K9RuCuhE.js +0 -258
- package/dist/read-only-account-inspect.telegram-BoATG5TP.js +0 -202
- package/dist/register.agent-DdFsdgdX.js +0 -240
- package/dist/register.configure-BTVikzNj.js +0 -15
- package/dist/register.maintenance-CDt8_LBs.js +0 -449
- package/dist/register.message-C_Wf261e.js +0 -644
- package/dist/register.onboard-FL6Mny10.js +0 -79
- package/dist/register.setup-BeW8HY0P.js +0 -183
- package/dist/register.status-health-sessions-Bl0-x2Ok.js +0 -1206
- package/dist/register.subclis-DUBZB3bR.js +0 -295
- package/dist/register.subclis-Db9Qegv7.js +0 -3
- package/dist/replies-CWZyv0g5.js +0 -118
- package/dist/reply-DMsC03Iw.js +0 -3192
- package/dist/reply-blocks-DuXsQojy.js +0 -103
- package/dist/reply-dispatch-runtime-D_8J_oEP.js +0 -3
- package/dist/reply-runtime-TZcIYAGQ.js +0 -123
- package/dist/reply.runtime-Bht7FBbJ.js +0 -2
- package/dist/resolve-allowlist-Bnvzjka0.js +0 -147
- package/dist/resolve-targets-D3K5Z5gf.js +0 -280
- package/dist/rooms-mp7F7lsA.js +0 -325
- package/dist/route-reply-DKoNoGml.js +0 -133
- package/dist/route-reply.runtime-ByCsyDjS.js +0 -2
- package/dist/route-resolution-CshIQw9s.js +0 -461
- package/dist/rpc-context-DQ0FBc41.js +0 -155
- package/dist/run-main-BzIbww9g.js +0 -425
- package/dist/runner-IAThb076.js +0 -1479
- package/dist/runtime-C4nQKohR.js +0 -68
- package/dist/runtime-DpQadrfd.js +0 -1175
- package/dist/runtime-api-B-n73E_A.js +0 -2
- package/dist/runtime-api-B0TzzMRA.js +0 -2
- package/dist/runtime-api-B2g4aFI0.js +0 -2
- package/dist/runtime-api-Bjn-vYvi.js +0 -3676
- package/dist/runtime-api-Ckw6TKHu.js +0 -2
- package/dist/runtime-api-CqpkXWTZ.js +0 -14
- package/dist/runtime-api-DLcWBYBn.js +0 -2
- package/dist/runtime-api-DTkksxUA.js +0 -2
- package/dist/runtime-api-Dqjul0s_.js +0 -3
- package/dist/runtime-api-Dt4a5hxH.js +0 -81
- package/dist/runtime-api-exjXBw5x.js +0 -2
- package/dist/runtime-api-iiaetepr.js +0 -29
- package/dist/runtime-api-uq8PFObQ.js +0 -2
- package/dist/runtime-embedded-pi.runtime-C_VTO5Hb.js +0 -2
- package/dist/sandbox-cli-DCBzqdRP.js +0 -443
- package/dist/sdk-xNF3YVy5.js +0 -1108
- package/dist/security-cli-BRQ9l5SH.js +0 -477
- package/dist/send-BR9WsDjK.js +0 -532
- package/dist/send-BYZ6LXaA.js +0 -856
- package/dist/send-C9XFbxrx.js +0 -2
- package/dist/send-CP6xLBgu.js +0 -100
- package/dist/send-CevSHBU3.js +0 -442
- package/dist/send-CiU0wWHJ.js +0 -178
- package/dist/send-CzZHXvb0.js +0 -318
- package/dist/send-D8Q38WQW.js +0 -1076
- package/dist/send-DSrMDTx6.js +0 -3
- package/dist/send.components-CSiMYa_k.js +0 -2
- package/dist/send.components-DuCC5xXW.js +0 -942
- package/dist/server-cron-CnWsiroT.js +0 -2
- package/dist/server-cron-pXTPca6M.js +0 -4173
- package/dist/server-hfFKzOMa.js +0 -10120
- package/dist/server-lite-CpD0TAwt.js +0 -831
- package/dist/server-maintenance-CSzGshfI.js +0 -542
- package/dist/server-maintenance-m-ekNAYN.js +0 -2
- package/dist/server-node-events-o25FUhFi.js +0 -454
- package/dist/server-node-subscriptions-D1cnZtZz.js +0 -2
- package/dist/server-plugins-BYGRllKK.js +0 -10423
- package/dist/server-plugins-D-GLUOyL.js +0 -2
- package/dist/server-startup-memory-CwdtRW65.js +0 -2
- package/dist/server-tailscale-BurW9eR4.js +0 -2
- package/dist/services-B4WpjjQk.js +0 -2
- package/dist/session-BZC_ExXj.js +0 -50
- package/dist/session-archive.runtime-CpJ_-vMn.js +0 -2
- package/dist/session-envelope-D53bqIsw.js +0 -18
- package/dist/session-file-L8H_0oIY.js +0 -120
- package/dist/session-key-DlGku_2P.js +0 -52
- package/dist/session-override-BwLTMvlR.js +0 -100
- package/dist/session-reset-model.runtime-B-f6UyAY.js +0 -119
- package/dist/session-route-CWWuYCWY.js +0 -91
- package/dist/session-store-runtime-DbJ_acdU.js +0 -2
- package/dist/session-subagent-reactivation.runtime-DQP-UkdA.js +0 -2
- package/dist/session-transcript-files.fs-BRLPQRBN.js +0 -149
- package/dist/session-updates-BiofcJQ9.js +0 -222
- package/dist/session-updates.runtime-B5YxiezL.js +0 -2
- package/dist/session-utils-BsLMe4R0.js +0 -1743
- package/dist/sessions-BGky6-U4.js +0 -224
- package/dist/sessions-CizZS4Rb.js +0 -2
- package/dist/sessions-CnolLDg0.js +0 -443
- package/dist/setup-BPkdGC8C.js +0 -427
- package/dist/setup-api-Bd-qaaRg.js +0 -2
- package/dist/setup-bootstrap-BUPymwJl.js +0 -54
- package/dist/setup-core-CE5GuYaV.js +0 -256
- package/dist/setup-core-tvt7DN1q.js +0 -146
- package/dist/setup-surface-BbOvAxU6.js +0 -484
- package/dist/setup-surface-BlIvCltJ.js +0 -450
- package/dist/setup-surface-BoJI-ftG.js +0 -237
- package/dist/setup-surface-C6yPqLIS.js +0 -261
- package/dist/setup-surface-CNFczxjl.js +0 -656
- package/dist/setup-surface-D5hZFXlx.js +0 -8848
- package/dist/setup-surface-DMOex3oo.js +0 -346
- package/dist/setup-surface-DRmn71vw.js +0 -333
- package/dist/setup-surface-DUodX6wM.js +0 -353
- package/dist/setup-surface-DVnka34A.js +0 -272
- package/dist/setup-surface-DrFSCD5A.js +0 -304
- package/dist/setup-surface-WtMan1x2.js +0 -261
- package/dist/setup.finalize-BcpxSMo5.js +0 -458
- package/dist/setup.gateway-config-BHvGYGOD.js +0 -247
- package/dist/shared-1r1qYN6z.js +0 -198
- package/dist/shared-BXz6HKLm.js +0 -180
- package/dist/shared-Bg7yDHOE.js +0 -94
- package/dist/shared-DBX8qPP6.js +0 -144
- package/dist/shared-DHFHItFt.js +0 -160
- package/dist/shared-DJV3Mmv8.js +0 -72
- package/dist/shared-ZeWcr3rG.js +0 -2
- package/dist/shared-nCJ3kgXi.js +0 -78
- package/dist/shared-rKEs-OIg.js +0 -64
- package/dist/shared-runtime-CTD5ywGR.js +0 -7
- package/dist/skills-install-CoUJk9aZ.js +0 -819
- package/dist/slash-commands-CKUKTwMa.js +0 -672
- package/dist/slash-commands.runtime-BrfELsEA.js +0 -20
- package/dist/slash-dispatch.runtime-CfjHhQmx.js +0 -38
- package/dist/slash-skill-commands.runtime-Bxm-652_.js +0 -8
- package/dist/speech-provider-BjDZhOzO.js +0 -190
- package/dist/src-BscJ0OyQ.js +0 -2739
- package/dist/startup-verification-Bwer6SPQ.js +0 -131
- package/dist/state-migrations-Dh5gaxn0.js +0 -845
- package/dist/status-CxiD9-L2.js +0 -2
- package/dist/status-all-CteZuvg_.js +0 -798
- package/dist/status-hLuTMJgT.js +0 -650
- package/dist/status-issues-CZdlgUVQ.js +0 -187
- package/dist/status-issues-Dx4xsUU6.js +0 -336
- package/dist/status-json-CU_sqXwN.js +0 -86
- package/dist/status-l8LyDb-X.js +0 -608
- package/dist/status-mpmZALQx.js +0 -3
- package/dist/status.command.text-runtime-Ck9abrv4.js +0 -18
- package/dist/status.scan-N2AgYo5y.js +0 -264
- package/dist/status.scan.fast-json-B8TmllqQ.js +0 -97
- package/dist/status.scan.fast-json-CiJfPteF.js +0 -2
- package/dist/status.scan.json-core-Bqw5Ethf.js +0 -254
- package/dist/status.summary-CN0kS8iw.js +0 -2
- package/dist/status.summary-joaOukPU.js +0 -210
- package/dist/sticker-cache-DXLBnGCi.js +0 -1573
- package/dist/sticker-vision.runtime-DP1NsaCZ.js +0 -16
- package/dist/storage-BRnLX4P7.js +0 -234
- package/dist/store-BvP1FWCI.js +0 -1343
- package/dist/store.runtime-NoYeZeac.js +0 -2
- package/dist/stream-BJ4HYVwA.js +0 -633
- package/dist/subagent-orphan-recovery-hTBxfwY4.js +0 -206
- package/dist/subagent-registry-runtime-3PIBzuDd.js +0 -2
- package/dist/targets-BAsektUE.js +0 -748
- package/dist/task-registry-delivery-runtime-CkJ71rwb.js +0 -2
- package/dist/task-registry.audit-gdULOiFp.js +0 -320
- package/dist/task-registry.maintenance-DhI_cx5O.js +0 -2
- package/dist/test-api-B4g2UUbw.js +0 -47
- package/dist/testing-DFnq00vr.js +0 -677
- package/dist/thread-bindings-CEuvQ0a5.js +0 -219
- package/dist/thread-bindings-CzFRpuy7.js +0 -534
- package/dist/thread-bindings-D-QA8SBh.js +0 -352
- package/dist/thread-bindings-EP9pAodb.js +0 -778
- package/dist/thread-bindings.discord-api-DKSgmJf_.js +0 -487
- package/dist/threading-CLq9AwSD.js +0 -832
- package/dist/threading-CQM3vrch.js +0 -2
- package/dist/threading-tool-context-DN0TQ-o6.js +0 -157
- package/dist/token-Bs7YIYbI.js +0 -82
- package/dist/tool-actions.runtime-mxezUV4D.js +0 -532
- package/dist/tools-effective-inventory-Dz6tWQxy.js +0 -148
- package/dist/ui-Cmeq4ZXg.js +0 -212
- package/dist/update-CADy3L5e.js +0 -1253
- package/dist/update-cli-B61EQsEl.js +0 -1447
- package/dist/update-runner--BEMGokU.js +0 -1195
- package/dist/verification-C5PYFyB0.js +0 -130
- package/dist/verification-CzP234iv.js +0 -2
- package/dist/x-search-ToCIaz7t.js +0 -166
- package/dist/zalo-BCF4thCG.js +0 -13
- package/dist/zalo-js-C4A7Gxjy.js +0 -1156
- package/dist/zalouser-CO0W9KZf.js +0 -22
- /package/dist/{apply.runtime-DBsSkbq5.js → apply.runtime-eSa-O_F2.js} +0 -0
- /package/dist/{audit-channel.allow-from.runtime-BE3PpHCg.js → audit-channel.allow-from.runtime-DNte8cmH.js} +0 -0
- /package/dist/{audit-channel.discord.runtime-CKQwUTue.js → audit-channel.discord.runtime-BWLuLCE0.js} +0 -0
- /package/dist/{audit-channel.zalouser.runtime-DvOclP53.js → audit-channel.zalouser.runtime-D_nIX7hv.js} +0 -0
- /package/dist/{gaxios-fetch-compat-DSrL7y2X.js → gaxios-fetch-compat-Dsb6Dess.js} +0 -0
- /package/dist/{gmail-watcher-lifecycle-CnbN1EfN.js → gmail-watcher-lifecycle-D6jhzjD2.js} +0 -0
- /package/dist/{hooks-policy-BjyPwwpQ.js → hooks-policy-BS7eSxPm.js} +0 -0
- /package/dist/{install-target-BXHZSfie.js → install-target-DunBxcXd.js} +0 -0
- /package/dist/{loader-_QerU742.js → loader-DrwewZGF.js} +0 -0
- /package/dist/{plugin-error-boundary-Ze95TniC.js → plugin-error-boundary-BkeWnWCG.js} +0 -0
- /package/dist/{plugin-health-checker-BdL9iBvs.js → plugin-health-checker--ObpW5TZ.js} +0 -0
- /package/dist/{plugin-hot-reload-t-fD3k4-.js → plugin-hot-reload-uBgB89Et.js} +0 -0
- /package/dist/{provider-api-key-auth.runtime-PWOshlD_.js → provider-api-key-auth.runtime-s-qWJDKg.js} +0 -0
- /package/dist/{provider-auth-login.runtime-B8ZroIz0.js → provider-auth-login.runtime-BJ3_RYVu.js} +0 -0
- /package/dist/{provider-discovery.runtime-C9i7ZYfW.js → provider-discovery.runtime-hzNrePTv.js} +0 -0
- /package/dist/{runtime-discord-ops.runtime-DD-5fh_t.js → runtime-discord-ops.runtime-DXnkkrxh.js} +0 -0
- /package/dist/{runtime-media-understanding.runtime-BnpKjL7w.js → runtime-media-understanding.runtime-CqkE-xQD.js} +0 -0
- /package/dist/{runtime-model-auth.runtime-BJVutp59.js → runtime-model-auth.runtime-Eceghr0K.js} +0 -0
- /package/dist/{runtime-slack-ops.runtime-BHlRr1Yr.js → runtime-slack-ops.runtime-BiNFnBIK.js} +0 -0
- /package/dist/{runtime-tts.runtime-CraALy-I.js → runtime-tts.runtime-DucSlAZ7.js} +0 -0
- /package/dist/{server-constants-DYaJmd0J.js → server-constants-DygisMJm.js} +0 -0
- /package/dist/{server-node-subscriptions-B0IJt_Ut.js → server-node-subscriptions-k9pzvFjc.js} +0 -0
- /package/dist/{server-startup-memory-DVUV59tb.js → server-startup-memory-BF7b6hV-.js} +0 -0
- /package/dist/{server-tailscale-YNZLPwK0.js → server-tailscale-C4_57iBM.js} +0 -0
- /package/dist/{services-D-LPmYY2.js → services-DGh2Nlk1.js} +0 -0
- /package/dist/{skill-scanner-CiGO-i2b.js → skill-scanner-CQOOKx41.js} +0 -0
- /package/dist/{ssh-config-BeNW3BFI.js → ssh-config-C0OJnSro.js} +0 -0
- /package/dist/{supervisor-log.runtime-C5wGw6pn.js → supervisor-log.runtime-C7jNH-kn.js} +0 -0
- /package/dist/{system-presence-Dllq5OiL.js → system-presence-Ctj0G23x.js} +0 -0
- /package/dist/{tts.runtime-DmgJozN5.js → tts.runtime-BmZyMwz6.js} +0 -0
package/dist/src-BscJ0OyQ.js
DELETED
|
@@ -1,2739 +0,0 @@
|
|
|
1
|
-
import { g as DEFAULT_ACCOUNT_ID } from "./session-key-Do__tq1E.js";
|
|
2
|
-
import { n as formatAllowlistMatchMeta } from "./allowlist-match-CvP7M2nU.js";
|
|
3
|
-
import { r as resolveDefaultGroupPolicy } from "./runtime-group-policy-5Lr0Ieci.js";
|
|
4
|
-
import { n as fetchWithSsrFGuard } from "./fetch-guard-a7JwFUYT.js";
|
|
5
|
-
import { x as buildMediaPayload } from "./reply-payload-DPD7eb4b.js";
|
|
6
|
-
import { r as resolveDualTextControlCommandGate } from "./command-gating-HO-bVa6h.js";
|
|
7
|
-
import { t as resolveChannelMediaMaxBytes } from "./media-limits-DKs4csWd.js";
|
|
8
|
-
import { n as keepHttpServerTaskAlive } from "./channel-lifecycle.core-DGFtUSNK.js";
|
|
9
|
-
import { i as mergeAllowlist, o as summarizeMapping } from "./resolve-utils-lzHLWW1m.js";
|
|
10
|
-
import { a as resolveSenderScopedGroupPolicy, i as evaluateSenderGroupAccessForPolicy } from "./group-access-ekSGhWQ1.js";
|
|
11
|
-
import { n as readStoreAllowFromForDmPolicy, o as resolveDmGroupAccessWithLists, s as resolveEffectiveAllowFromLists } from "./dm-policy-shared-CaDbQVNm.js";
|
|
12
|
-
import { a as buildPendingHistoryContextFromMap, s as clearHistoryEntriesIfEnabled, u as recordPendingHistoryEntryIfEnabled } from "./history-UDByIZZ1.js";
|
|
13
|
-
import { t as resolveChannelContextVisibilityMode } from "./context-visibility-DzjNwztO.js";
|
|
14
|
-
import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-DK6-X-Xt.js";
|
|
15
|
-
import { t as createChannelReplyPipeline } from "./channel-reply-pipeline-Dyh1zCi9.js";
|
|
16
|
-
import { n as DEFAULT_WEBHOOK_MAX_BODY_BYTES } from "./http-body-CfWmnfar.js";
|
|
17
|
-
import { n as dispatchReplyFromConfigWithSettledDispatcher } from "./inbound-reply-dispatch-DnSGPONh.js";
|
|
18
|
-
import { n as filterSupplementalContextItems, r as shouldIncludeSupplementalContext } from "./context-visibility-Ct0SprKG.js";
|
|
19
|
-
import { n as createChannelPairingController } from "./channel-pairing-mk5cf7oC.js";
|
|
20
|
-
import { n as logInboundDrop, r as logTypingFailure } from "./logging-DIucOhk1.js";
|
|
21
|
-
import { t as resolveMentionGating } from "./mention-gating-wYlgG3vD.js";
|
|
22
|
-
import { t as resolveInboundSessionEnvelopeContext } from "./session-envelope-D53bqIsw.js";
|
|
23
|
-
import { c as createDraftStreamLoop } from "./channel-lifecycle-CobgWzsY.js";
|
|
24
|
-
import "./runtime-api-DTkksxUA.js";
|
|
25
|
-
import { A as extractInlineImageCandidates, B as safeFetchWithPolicy, C as formatUnknownError, D as IMG_SRC_RE, E as GRAPH_ROOT, F as isUrlAllowed, I as normalizeContentType, L as resolveAttachmentFetchPolicy, M as isDownloadableAttachment, N as isLikelyImageAttachment, O as applyAuthorizationHeaderForUrl, P as isRecord, R as resolveMediaSsrfPolicy, S as formatMSTeamsSendErrorHint, T as ATTACHMENT_TAG_RE, V as safeHostForUrl, _ as loadMSTeamsSdkWithAuth, f as resolveMSTeamsCredentials, g as createMSTeamsTokenProvider, h as createMSTeamsAdapter, i as fetchGraphJson, j as inferPlaceholder, k as extractHtmlFromAttachment, m as createBotFrameworkJwtValidator, x as classifyMSTeamsSendError, y as getMSTeamsRuntime, z as resolveRequestUrl } from "./graph-users-CGePGfzI.js";
|
|
26
|
-
import { o as resolveMSTeamsChannelAllowlist, s as resolveMSTeamsUserAllowlist } from "./resolve-allowlist-Bnvzjka0.js";
|
|
27
|
-
import { a as resolveMSTeamsRouteConfig, i as resolveMSTeamsReplyPolicy, n as resolveMSTeamsAllowlistMatch, t as isMSTeamsGroupAllowed } from "./policy-CBLebx7K.js";
|
|
28
|
-
import { _ as createMSTeamsPollStoreFs, c as renderReplyPayloadsToMessages, d as withRevokedProxyFallback, f as getPendingUpload, g as uploadToConsentUrl, h as parseFileConsentInvoke, l as sendMSTeamsMessages, m as buildFileInfoCard, p as removePendingUpload, s as buildConversationReference, u as AI_GENERATED_ENTITY, v as extractMSTeamsPollVote, y as createMSTeamsConversationStoreFs } from "./probe-7PmWRQdg.js";
|
|
29
|
-
//#region extensions/msteams/src/feedback-reflection-prompt.ts
|
|
30
|
-
/** Max chars of the thumbed-down response to include in the reflection prompt. */
|
|
31
|
-
const MAX_RESPONSE_CHARS = 500;
|
|
32
|
-
function buildReflectionPrompt(params) {
|
|
33
|
-
const parts = ["A user indicated your previous response wasn't helpful."];
|
|
34
|
-
if (params.thumbedDownResponse) {
|
|
35
|
-
const truncated = params.thumbedDownResponse.length > MAX_RESPONSE_CHARS ? `${params.thumbedDownResponse.slice(0, MAX_RESPONSE_CHARS)}...` : params.thumbedDownResponse;
|
|
36
|
-
parts.push(`\nYour response was:\n> ${truncated}`);
|
|
37
|
-
}
|
|
38
|
-
if (params.userComment) parts.push(`\nUser's comment: "${params.userComment}"`);
|
|
39
|
-
parts.push("\nBriefly reflect: what could you improve? Consider tone, length, accuracy, relevance, and specificity. Reply with a single JSON object only, no markdown or prose, using this exact shape:\n{\"learning\":\"...\",\"followUp\":false,\"userMessage\":\"\"}\n- learning: a short internal adjustment note (1-2 sentences) for your future behavior in this conversation.\n- followUp: true only if the user needs a direct follow-up message.\n- userMessage: only the exact user-facing message to send; empty string when followUp is false.");
|
|
40
|
-
return parts.join("\n");
|
|
41
|
-
}
|
|
42
|
-
function parseBooleanLike(value) {
|
|
43
|
-
if (typeof value === "boolean") return value;
|
|
44
|
-
if (typeof value === "string") {
|
|
45
|
-
const normalized = value.trim().toLowerCase();
|
|
46
|
-
if (normalized === "true" || normalized === "yes") return true;
|
|
47
|
-
if (normalized === "false" || normalized === "no") return false;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function parseStructuredReflectionValue(value) {
|
|
51
|
-
if (value == null || typeof value !== "object" || Array.isArray(value)) return null;
|
|
52
|
-
const candidate = value;
|
|
53
|
-
const learning = typeof candidate.learning === "string" ? candidate.learning.trim() : void 0;
|
|
54
|
-
if (!learning) return null;
|
|
55
|
-
return {
|
|
56
|
-
learning,
|
|
57
|
-
followUp: parseBooleanLike(candidate.followUp) ?? false,
|
|
58
|
-
userMessage: typeof candidate.userMessage === "string" && candidate.userMessage.trim() ? candidate.userMessage.trim() : void 0
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function parseReflectionResponse(text) {
|
|
62
|
-
const trimmed = text.trim();
|
|
63
|
-
if (!trimmed) return null;
|
|
64
|
-
const candidates = [trimmed, ...trimmed.match(/```(?:json)?\s*([\s\S]*?)```/i)?.slice(1, 2) ?? []];
|
|
65
|
-
for (const candidateText of candidates) {
|
|
66
|
-
const candidate = candidateText.trim();
|
|
67
|
-
if (!candidate) continue;
|
|
68
|
-
try {
|
|
69
|
-
const parsed = parseStructuredReflectionValue(JSON.parse(candidate));
|
|
70
|
-
if (parsed) return parsed;
|
|
71
|
-
} catch {}
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
learning: trimmed,
|
|
75
|
-
followUp: false
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
/** Tracks last reflection time per session to enforce cooldown. */
|
|
79
|
-
const lastReflectionBySession = /* @__PURE__ */ new Map();
|
|
80
|
-
/** Maximum cooldown entries before pruning expired ones. */
|
|
81
|
-
const MAX_COOLDOWN_ENTRIES = 500;
|
|
82
|
-
function sanitizeSessionKey(sessionKey) {
|
|
83
|
-
return sessionKey.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
84
|
-
}
|
|
85
|
-
/** Prune expired cooldown entries to prevent unbounded memory growth. */
|
|
86
|
-
function pruneExpiredCooldowns(cooldownMs) {
|
|
87
|
-
if (lastReflectionBySession.size <= MAX_COOLDOWN_ENTRIES) return;
|
|
88
|
-
const now = Date.now();
|
|
89
|
-
for (const [key, time] of lastReflectionBySession) if (now - time >= cooldownMs) lastReflectionBySession.delete(key);
|
|
90
|
-
}
|
|
91
|
-
/** Check if a reflection is allowed (cooldown not active). */
|
|
92
|
-
function isReflectionAllowed(sessionKey, cooldownMs) {
|
|
93
|
-
const cooldown = cooldownMs ?? 3e5;
|
|
94
|
-
const lastTime = lastReflectionBySession.get(sessionKey);
|
|
95
|
-
if (lastTime == null) return true;
|
|
96
|
-
return Date.now() - lastTime >= cooldown;
|
|
97
|
-
}
|
|
98
|
-
/** Record that a reflection was run for a session. */
|
|
99
|
-
function recordReflectionTime(sessionKey, cooldownMs) {
|
|
100
|
-
lastReflectionBySession.set(sessionKey, Date.now());
|
|
101
|
-
pruneExpiredCooldowns(cooldownMs ?? 3e5);
|
|
102
|
-
}
|
|
103
|
-
/** Store a learning derived from feedback reflection in a session companion file. */
|
|
104
|
-
async function storeSessionLearning(params) {
|
|
105
|
-
const fs = await import("node:fs/promises");
|
|
106
|
-
const path = await import("node:path");
|
|
107
|
-
const learningsFile = path.join(params.storePath, `${sanitizeSessionKey(params.sessionKey)}.learnings.json`);
|
|
108
|
-
let learnings = [];
|
|
109
|
-
try {
|
|
110
|
-
const existing = await fs.readFile(learningsFile, "utf-8");
|
|
111
|
-
const parsed = JSON.parse(existing);
|
|
112
|
-
if (Array.isArray(parsed)) learnings = parsed;
|
|
113
|
-
} catch {}
|
|
114
|
-
learnings.push(params.learning);
|
|
115
|
-
if (learnings.length > 10) learnings = learnings.slice(-10);
|
|
116
|
-
await fs.mkdir(path.dirname(learningsFile), { recursive: true });
|
|
117
|
-
await fs.writeFile(learningsFile, JSON.stringify(learnings, null, 2), "utf-8");
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region extensions/msteams/src/feedback-reflection.ts
|
|
121
|
-
/**
|
|
122
|
-
* Background reflection triggered by negative user feedback (thumbs-down).
|
|
123
|
-
*
|
|
124
|
-
* Flow:
|
|
125
|
-
* 1. User thumbs-down -> invoke handler acks immediately
|
|
126
|
-
* 2. This module runs in the background (fire-and-forget)
|
|
127
|
-
* 3. Reads recent session context
|
|
128
|
-
* 4. Sends a synthetic reflection prompt to the agent
|
|
129
|
-
* 5. Stores the derived learning in session
|
|
130
|
-
* 6. Optionally sends a proactive follow-up to the user
|
|
131
|
-
*/
|
|
132
|
-
function buildFeedbackEvent(params) {
|
|
133
|
-
return {
|
|
134
|
-
type: "custom",
|
|
135
|
-
event: "feedback",
|
|
136
|
-
ts: Date.now(),
|
|
137
|
-
messageId: params.messageId,
|
|
138
|
-
value: params.value,
|
|
139
|
-
comment: params.comment,
|
|
140
|
-
sessionKey: params.sessionKey,
|
|
141
|
-
agentId: params.agentId,
|
|
142
|
-
conversationId: params.conversationId
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
function buildReflectionContext(params) {
|
|
146
|
-
const core = getMSTeamsRuntime();
|
|
147
|
-
const envelopeOptions = core.channel.reply.resolveEnvelopeFormatOptions(params.cfg);
|
|
148
|
-
const body = core.channel.reply.formatAgentEnvelope({
|
|
149
|
-
channel: "Teams",
|
|
150
|
-
from: "system",
|
|
151
|
-
body: params.reflectionPrompt,
|
|
152
|
-
envelope: envelopeOptions
|
|
153
|
-
});
|
|
154
|
-
return { ctxPayload: core.channel.reply.finalizeInboundContext({
|
|
155
|
-
Body: body,
|
|
156
|
-
BodyForAgent: params.reflectionPrompt,
|
|
157
|
-
RawBody: params.reflectionPrompt,
|
|
158
|
-
CommandBody: params.reflectionPrompt,
|
|
159
|
-
From: `msteams:system:${params.conversationId}`,
|
|
160
|
-
To: `conversation:${params.conversationId}`,
|
|
161
|
-
SessionKey: params.sessionKey,
|
|
162
|
-
ChatType: "direct",
|
|
163
|
-
SenderName: "system",
|
|
164
|
-
SenderId: "system",
|
|
165
|
-
Provider: "msteams",
|
|
166
|
-
Surface: "msteams",
|
|
167
|
-
Timestamp: Date.now(),
|
|
168
|
-
WasMentioned: true,
|
|
169
|
-
CommandAuthorized: false,
|
|
170
|
-
OriginatingChannel: "msteams",
|
|
171
|
-
OriginatingTo: `conversation:${params.conversationId}`
|
|
172
|
-
}) };
|
|
173
|
-
}
|
|
174
|
-
function createReflectionCaptureDispatcher(params) {
|
|
175
|
-
const core = getMSTeamsRuntime();
|
|
176
|
-
let response = "";
|
|
177
|
-
const { dispatcher, replyOptions } = core.channel.reply.createReplyDispatcherWithTyping({
|
|
178
|
-
deliver: async (payload) => {
|
|
179
|
-
if (payload.text) response += (response ? "\n" : "") + payload.text;
|
|
180
|
-
},
|
|
181
|
-
typingCallbacks: {
|
|
182
|
-
onReplyStart: async () => {},
|
|
183
|
-
onIdle: () => {},
|
|
184
|
-
onCleanup: () => {}
|
|
185
|
-
},
|
|
186
|
-
humanDelay: core.channel.reply.resolveHumanDelayConfig(params.cfg, params.agentId),
|
|
187
|
-
onError: (err) => {
|
|
188
|
-
params.log.debug?.("reflection reply error", { error: formatUnknownError(err) });
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
return {
|
|
192
|
-
dispatcher,
|
|
193
|
-
replyOptions,
|
|
194
|
-
readResponse: () => response
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
async function sendReflectionFollowUp(params) {
|
|
198
|
-
const proactiveRef = {
|
|
199
|
-
...buildConversationReference(params.conversationRef),
|
|
200
|
-
activityId: void 0
|
|
201
|
-
};
|
|
202
|
-
await params.adapter.continueConversation(params.appId, proactiveRef, async (ctx) => {
|
|
203
|
-
await ctx.sendActivity({
|
|
204
|
-
type: "message",
|
|
205
|
-
text: params.userMessage
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Run a background reflection after negative feedback.
|
|
211
|
-
* This is designed to be called fire-and-forget (don't await in the invoke handler).
|
|
212
|
-
*/
|
|
213
|
-
async function runFeedbackReflection(params) {
|
|
214
|
-
const { cfg, log, sessionKey } = params;
|
|
215
|
-
const cooldownMs = cfg.channels?.msteams?.feedbackReflectionCooldownMs ?? 3e5;
|
|
216
|
-
if (!isReflectionAllowed(sessionKey, cooldownMs)) {
|
|
217
|
-
log.debug?.("skipping reflection (cooldown active)", { sessionKey });
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
const reflectionPrompt = buildReflectionPrompt({
|
|
221
|
-
thumbedDownResponse: params.thumbedDownResponse,
|
|
222
|
-
userComment: params.userComment
|
|
223
|
-
});
|
|
224
|
-
const storePath = getMSTeamsRuntime().channel.session.resolveStorePath(cfg.session?.store, { agentId: params.agentId });
|
|
225
|
-
const { ctxPayload } = buildReflectionContext({
|
|
226
|
-
cfg,
|
|
227
|
-
conversationId: params.conversationId,
|
|
228
|
-
sessionKey: params.sessionKey,
|
|
229
|
-
reflectionPrompt
|
|
230
|
-
});
|
|
231
|
-
const capture = createReflectionCaptureDispatcher({
|
|
232
|
-
cfg,
|
|
233
|
-
agentId: params.agentId,
|
|
234
|
-
log
|
|
235
|
-
});
|
|
236
|
-
try {
|
|
237
|
-
await dispatchReplyFromConfigWithSettledDispatcher({
|
|
238
|
-
ctxPayload,
|
|
239
|
-
cfg,
|
|
240
|
-
dispatcher: capture.dispatcher,
|
|
241
|
-
onSettled: () => {},
|
|
242
|
-
replyOptions: capture.replyOptions
|
|
243
|
-
});
|
|
244
|
-
} catch (err) {
|
|
245
|
-
log.error("reflection dispatch failed", { error: formatUnknownError(err) });
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
const reflectionResponse = capture.readResponse().trim();
|
|
249
|
-
if (!reflectionResponse) {
|
|
250
|
-
log.debug?.("reflection produced no output");
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
const parsedReflection = parseReflectionResponse(reflectionResponse);
|
|
254
|
-
if (!parsedReflection) {
|
|
255
|
-
log.debug?.("reflection produced no structured output");
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
recordReflectionTime(sessionKey, cooldownMs);
|
|
259
|
-
log.info("reflection complete", {
|
|
260
|
-
sessionKey,
|
|
261
|
-
responseLength: reflectionResponse.length,
|
|
262
|
-
followUp: parsedReflection.followUp
|
|
263
|
-
});
|
|
264
|
-
try {
|
|
265
|
-
await storeSessionLearning({
|
|
266
|
-
storePath,
|
|
267
|
-
sessionKey: params.sessionKey,
|
|
268
|
-
learning: parsedReflection.learning
|
|
269
|
-
});
|
|
270
|
-
} catch (err) {
|
|
271
|
-
log.debug?.("failed to store reflection learning", { error: formatUnknownError(err) });
|
|
272
|
-
}
|
|
273
|
-
const conversationType = params.conversationRef.conversation?.conversationType?.toLowerCase();
|
|
274
|
-
if (!(conversationType === "personal" && parsedReflection.followUp && Boolean(parsedReflection.userMessage))) {
|
|
275
|
-
if (parsedReflection.followUp && conversationType !== "personal") log.debug?.("skipping reflection follow-up outside direct message", {
|
|
276
|
-
sessionKey,
|
|
277
|
-
conversationType
|
|
278
|
-
});
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
try {
|
|
282
|
-
await sendReflectionFollowUp({
|
|
283
|
-
adapter: params.adapter,
|
|
284
|
-
appId: params.appId,
|
|
285
|
-
conversationRef: params.conversationRef,
|
|
286
|
-
userMessage: parsedReflection.userMessage
|
|
287
|
-
});
|
|
288
|
-
log.info("sent reflection follow-up", { sessionKey });
|
|
289
|
-
} catch (err) {
|
|
290
|
-
log.debug?.("failed to send reflection follow-up", { error: formatUnknownError(err) });
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
//#endregion
|
|
294
|
-
//#region extensions/msteams/src/inbound.ts
|
|
295
|
-
/**
|
|
296
|
-
* Decode common HTML entities to plain text.
|
|
297
|
-
*/
|
|
298
|
-
function decodeHtmlEntities(html) {
|
|
299
|
-
return html.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\"").replace(/'/g, "'").replace(/'/g, "'").replace(/ /g, " ").replace(/&/g, "&");
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Strip HTML tags, preserving text content.
|
|
303
|
-
*/
|
|
304
|
-
function htmlToPlainText(html) {
|
|
305
|
-
return decodeHtmlEntities(html.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim());
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* Extract quote info from MS Teams HTML reply attachments.
|
|
309
|
-
* Teams wraps quoted content in a blockquote with itemtype="http://schema.skype.com/Reply".
|
|
310
|
-
*/
|
|
311
|
-
function extractMSTeamsQuoteInfo(attachments) {
|
|
312
|
-
for (const att of attachments) {
|
|
313
|
-
const content = typeof att.content === "string" ? att.content : typeof att.content === "object" && att.content !== null ? String(att.content.text ?? att.content.body ?? "") : "";
|
|
314
|
-
if (!content) continue;
|
|
315
|
-
if (!content.includes("http://schema.skype.com/Reply")) continue;
|
|
316
|
-
const senderMatch = /<strong[^>]*itemprop=["']mri["'][^>]*>(.*?)<\/strong>/i.exec(content);
|
|
317
|
-
const sender = senderMatch?.[1] ? htmlToPlainText(senderMatch[1]) : void 0;
|
|
318
|
-
const bodyMatch = /<p[^>]*itemprop=["']copy["'][^>]*>(.*?)<\/p>/is.exec(content);
|
|
319
|
-
const body = bodyMatch?.[1] ? htmlToPlainText(bodyMatch[1]) : void 0;
|
|
320
|
-
if (body) return {
|
|
321
|
-
sender: sender ?? "unknown",
|
|
322
|
-
body
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
function normalizeMSTeamsConversationId(raw) {
|
|
327
|
-
return raw.split(";")[0] ?? raw;
|
|
328
|
-
}
|
|
329
|
-
function extractMSTeamsConversationMessageId(raw) {
|
|
330
|
-
if (!raw) return;
|
|
331
|
-
return (/(?:^|;)messageid=([^;]+)/i.exec(raw)?.[1]?.trim() ?? "") || void 0;
|
|
332
|
-
}
|
|
333
|
-
function parseMSTeamsActivityTimestamp(value) {
|
|
334
|
-
if (!value) return;
|
|
335
|
-
if (value instanceof Date) return value;
|
|
336
|
-
if (typeof value !== "string") return;
|
|
337
|
-
const date = new Date(value);
|
|
338
|
-
return Number.isNaN(date.getTime()) ? void 0 : date;
|
|
339
|
-
}
|
|
340
|
-
function stripMSTeamsMentionTags(text) {
|
|
341
|
-
return text.replace(/<at[^>]*>.*?<\/at>/gi, "").trim();
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* Bot Framework uses 'a:xxx' conversation IDs for personal chats, but Graph API
|
|
345
|
-
* requires the '19:{userId}_{botAppId}@unq.gbl.spaces' format.
|
|
346
|
-
*
|
|
347
|
-
* This is the documented Graph API format for 1:1 chat thread IDs between a user
|
|
348
|
-
* and a bot/app. See Microsoft docs "Get chat between user and app":
|
|
349
|
-
* https://learn.microsoft.com/en-us/graph/api/userscopeteamsappinstallation-get-chat
|
|
350
|
-
*
|
|
351
|
-
* The format is only synthesized when the Bot Framework conversation ID starts with
|
|
352
|
-
* 'a:' (the opaque format used by BF but not recognized by Graph). If the ID already
|
|
353
|
-
* has the '19:...' Graph format, it is passed through unchanged.
|
|
354
|
-
*/
|
|
355
|
-
function translateMSTeamsDmConversationIdForGraph(params) {
|
|
356
|
-
const { isDirectMessage, conversationId, aadObjectId, appId } = params;
|
|
357
|
-
return isDirectMessage && conversationId.startsWith("a:") && aadObjectId && appId ? `19:${aadObjectId}_${appId}@unq.gbl.spaces` : conversationId;
|
|
358
|
-
}
|
|
359
|
-
function wasMSTeamsBotMentioned(activity) {
|
|
360
|
-
const botId = activity.recipient?.id;
|
|
361
|
-
if (!botId) return false;
|
|
362
|
-
return (activity.entities ?? []).some((e) => e.type === "mention" && e.mentioned?.id === botId);
|
|
363
|
-
}
|
|
364
|
-
//#endregion
|
|
365
|
-
//#region extensions/msteams/src/monitor-handler/access.ts
|
|
366
|
-
async function resolveMSTeamsSenderAccess(params) {
|
|
367
|
-
const activity = params.activity;
|
|
368
|
-
const msteamsCfg = params.cfg.channels?.msteams;
|
|
369
|
-
const conversationId = normalizeMSTeamsConversationId(activity.conversation?.id ?? "unknown");
|
|
370
|
-
const convType = activity.conversation?.conversationType?.toLowerCase();
|
|
371
|
-
const isDirectMessage = convType === "personal" || !convType && !activity.conversation?.isGroup;
|
|
372
|
-
const senderId = activity.from?.aadObjectId ?? activity.from?.id ?? "unknown";
|
|
373
|
-
const senderName = activity.from?.name ?? activity.from?.id ?? senderId;
|
|
374
|
-
const pairing = createChannelPairingController({
|
|
375
|
-
core: getMSTeamsRuntime(),
|
|
376
|
-
channel: "msteams",
|
|
377
|
-
accountId: DEFAULT_ACCOUNT_ID
|
|
378
|
-
});
|
|
379
|
-
const dmPolicy = msteamsCfg?.dmPolicy ?? "pairing";
|
|
380
|
-
const storedAllowFrom = await readStoreAllowFromForDmPolicy({
|
|
381
|
-
provider: "msteams",
|
|
382
|
-
accountId: pairing.accountId,
|
|
383
|
-
dmPolicy,
|
|
384
|
-
readStore: pairing.readStoreForDmPolicy
|
|
385
|
-
});
|
|
386
|
-
const configuredDmAllowFrom = (msteamsCfg?.allowFrom ?? []).map((entry) => String(entry));
|
|
387
|
-
const groupAllowFrom = msteamsCfg?.groupAllowFrom;
|
|
388
|
-
const resolvedAllowFromLists = resolveEffectiveAllowFromLists({
|
|
389
|
-
allowFrom: configuredDmAllowFrom,
|
|
390
|
-
groupAllowFrom,
|
|
391
|
-
storeAllowFrom: storedAllowFrom,
|
|
392
|
-
dmPolicy
|
|
393
|
-
});
|
|
394
|
-
const defaultGroupPolicy = resolveDefaultGroupPolicy(params.cfg);
|
|
395
|
-
const groupPolicy = !isDirectMessage && msteamsCfg ? msteamsCfg.groupPolicy ?? defaultGroupPolicy ?? "allowlist" : "disabled";
|
|
396
|
-
const effectiveGroupAllowFrom = resolvedAllowFromLists.effectiveGroupAllowFrom;
|
|
397
|
-
const allowNameMatching = isDangerousNameMatchingEnabled(msteamsCfg);
|
|
398
|
-
const channelGate = resolveMSTeamsRouteConfig({
|
|
399
|
-
cfg: msteamsCfg,
|
|
400
|
-
teamId: activity.channelData?.team?.id,
|
|
401
|
-
teamName: activity.channelData?.team?.name,
|
|
402
|
-
conversationId,
|
|
403
|
-
channelName: activity.channelData?.channel?.name,
|
|
404
|
-
allowNameMatching
|
|
405
|
-
});
|
|
406
|
-
const senderGroupPolicy = channelGate.allowlistConfigured && effectiveGroupAllowFrom.length === 0 ? groupPolicy : resolveSenderScopedGroupPolicy({
|
|
407
|
-
groupPolicy,
|
|
408
|
-
groupAllowFrom: effectiveGroupAllowFrom
|
|
409
|
-
});
|
|
410
|
-
const access = resolveDmGroupAccessWithLists({
|
|
411
|
-
isGroup: !isDirectMessage,
|
|
412
|
-
dmPolicy,
|
|
413
|
-
groupPolicy: senderGroupPolicy,
|
|
414
|
-
allowFrom: configuredDmAllowFrom,
|
|
415
|
-
groupAllowFrom,
|
|
416
|
-
storeAllowFrom: storedAllowFrom,
|
|
417
|
-
groupAllowFromFallbackToAllowFrom: false,
|
|
418
|
-
isSenderAllowed: (allowFrom) => resolveMSTeamsAllowlistMatch({
|
|
419
|
-
allowFrom,
|
|
420
|
-
senderId,
|
|
421
|
-
senderName,
|
|
422
|
-
allowNameMatching
|
|
423
|
-
}).allowed
|
|
424
|
-
});
|
|
425
|
-
return {
|
|
426
|
-
msteamsCfg,
|
|
427
|
-
pairing,
|
|
428
|
-
isDirectMessage,
|
|
429
|
-
conversationId,
|
|
430
|
-
senderId,
|
|
431
|
-
senderName,
|
|
432
|
-
dmPolicy,
|
|
433
|
-
channelGate,
|
|
434
|
-
access,
|
|
435
|
-
senderGroupAccess: evaluateSenderGroupAccessForPolicy({
|
|
436
|
-
groupPolicy,
|
|
437
|
-
groupAllowFrom: effectiveGroupAllowFrom,
|
|
438
|
-
senderId,
|
|
439
|
-
isSenderAllowed: (_senderId, allowFrom) => resolveMSTeamsAllowlistMatch({
|
|
440
|
-
allowFrom,
|
|
441
|
-
senderId,
|
|
442
|
-
senderName,
|
|
443
|
-
allowNameMatching
|
|
444
|
-
}).allowed
|
|
445
|
-
}),
|
|
446
|
-
configuredDmAllowFrom,
|
|
447
|
-
effectiveDmAllowFrom: access.effectiveAllowFrom,
|
|
448
|
-
effectiveGroupAllowFrom,
|
|
449
|
-
allowNameMatching,
|
|
450
|
-
groupPolicy
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
//#endregion
|
|
454
|
-
//#region extensions/msteams/src/attachments/remote-media.ts
|
|
455
|
-
async function downloadAndStoreMSTeamsRemoteMedia(params) {
|
|
456
|
-
const fetched = await getMSTeamsRuntime().channel.media.fetchRemoteMedia({
|
|
457
|
-
url: params.url,
|
|
458
|
-
fetchImpl: params.fetchImpl,
|
|
459
|
-
filePathHint: params.filePathHint,
|
|
460
|
-
maxBytes: params.maxBytes,
|
|
461
|
-
ssrfPolicy: params.ssrfPolicy
|
|
462
|
-
});
|
|
463
|
-
const mime = await getMSTeamsRuntime().media.detectMime({
|
|
464
|
-
buffer: fetched.buffer,
|
|
465
|
-
headerMime: fetched.contentType ?? params.contentTypeHint,
|
|
466
|
-
filePath: params.filePathHint
|
|
467
|
-
});
|
|
468
|
-
const originalFilename = params.preserveFilenames ? params.filePathHint : void 0;
|
|
469
|
-
const saved = await getMSTeamsRuntime().channel.media.saveMediaBuffer(fetched.buffer, mime ?? params.contentTypeHint, "inbound", params.maxBytes, originalFilename);
|
|
470
|
-
return {
|
|
471
|
-
path: saved.path,
|
|
472
|
-
contentType: saved.contentType,
|
|
473
|
-
placeholder: params.placeholder ?? inferPlaceholder({
|
|
474
|
-
contentType: saved.contentType,
|
|
475
|
-
fileName: params.filePathHint
|
|
476
|
-
})
|
|
477
|
-
};
|
|
478
|
-
}
|
|
479
|
-
//#endregion
|
|
480
|
-
//#region extensions/msteams/src/attachments/download.ts
|
|
481
|
-
function resolveDownloadCandidate(att) {
|
|
482
|
-
const contentType = normalizeContentType(att.contentType);
|
|
483
|
-
const name = typeof att.name === "string" ? att.name.trim() : "";
|
|
484
|
-
if (contentType === "application/vnd.microsoft.teams.file.download.info") {
|
|
485
|
-
if (!isRecord(att.content)) return null;
|
|
486
|
-
const downloadUrl = typeof att.content.downloadUrl === "string" ? att.content.downloadUrl.trim() : "";
|
|
487
|
-
if (!downloadUrl) return null;
|
|
488
|
-
const fileType = typeof att.content.fileType === "string" ? att.content.fileType.trim() : "";
|
|
489
|
-
const uniqueId = typeof att.content.uniqueId === "string" ? att.content.uniqueId.trim() : "";
|
|
490
|
-
const fileName = typeof att.content.fileName === "string" ? att.content.fileName.trim() : "";
|
|
491
|
-
const fileHint = name || fileName || (uniqueId && fileType ? `${uniqueId}.${fileType}` : "");
|
|
492
|
-
return {
|
|
493
|
-
url: downloadUrl,
|
|
494
|
-
fileHint: fileHint || void 0,
|
|
495
|
-
contentTypeHint: void 0,
|
|
496
|
-
placeholder: inferPlaceholder({
|
|
497
|
-
contentType,
|
|
498
|
-
fileName: fileHint,
|
|
499
|
-
fileType
|
|
500
|
-
})
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
const contentUrl = typeof att.contentUrl === "string" ? att.contentUrl.trim() : "";
|
|
504
|
-
if (!contentUrl) return null;
|
|
505
|
-
return {
|
|
506
|
-
url: contentUrl,
|
|
507
|
-
fileHint: name || void 0,
|
|
508
|
-
contentTypeHint: contentType,
|
|
509
|
-
placeholder: inferPlaceholder({
|
|
510
|
-
contentType,
|
|
511
|
-
fileName: name
|
|
512
|
-
})
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
function scopeCandidatesForUrl(url) {
|
|
516
|
-
try {
|
|
517
|
-
const host = new URL(url).hostname.toLowerCase();
|
|
518
|
-
return host.endsWith("graph.microsoft.com") || host.endsWith("sharepoint.com") || host.endsWith("1drv.ms") || host.includes("sharepoint") ? ["https://graph.microsoft.com", "https://api.botframework.com"] : ["https://api.botframework.com", "https://graph.microsoft.com"];
|
|
519
|
-
} catch {
|
|
520
|
-
return ["https://api.botframework.com", "https://graph.microsoft.com"];
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
function isRedirectStatus(status) {
|
|
524
|
-
return status === 301 || status === 302 || status === 303 || status === 307 || status === 308;
|
|
525
|
-
}
|
|
526
|
-
async function fetchWithAuthFallback(params) {
|
|
527
|
-
const firstAttempt = await safeFetchWithPolicy({
|
|
528
|
-
url: params.url,
|
|
529
|
-
policy: params.policy,
|
|
530
|
-
fetchFn: params.fetchFn,
|
|
531
|
-
requestInit: params.requestInit
|
|
532
|
-
});
|
|
533
|
-
if (firstAttempt.ok) return firstAttempt;
|
|
534
|
-
if (!params.tokenProvider) return firstAttempt;
|
|
535
|
-
if (firstAttempt.status !== 401 && firstAttempt.status !== 403) return firstAttempt;
|
|
536
|
-
if (!isUrlAllowed(params.url, params.policy.authAllowHosts)) return firstAttempt;
|
|
537
|
-
const scopes = scopeCandidatesForUrl(params.url);
|
|
538
|
-
const fetchFn = params.fetchFn ?? fetch;
|
|
539
|
-
for (const scope of scopes) try {
|
|
540
|
-
const token = await params.tokenProvider.getAccessToken(scope);
|
|
541
|
-
const authHeaders = new Headers(params.requestInit?.headers);
|
|
542
|
-
authHeaders.set("Authorization", `Bearer ${token}`);
|
|
543
|
-
const authAttempt = await safeFetchWithPolicy({
|
|
544
|
-
url: params.url,
|
|
545
|
-
policy: params.policy,
|
|
546
|
-
fetchFn,
|
|
547
|
-
requestInit: {
|
|
548
|
-
...params.requestInit,
|
|
549
|
-
headers: authHeaders
|
|
550
|
-
}
|
|
551
|
-
});
|
|
552
|
-
if (authAttempt.ok) return authAttempt;
|
|
553
|
-
if (isRedirectStatus(authAttempt.status)) return authAttempt;
|
|
554
|
-
if (authAttempt.status !== 401 && authAttempt.status !== 403) continue;
|
|
555
|
-
} catch {}
|
|
556
|
-
return firstAttempt;
|
|
557
|
-
}
|
|
558
|
-
/**
|
|
559
|
-
* Download all file attachments from a Teams message (images, documents, etc.).
|
|
560
|
-
* Renamed from downloadMSTeamsImageAttachments to support all file types.
|
|
561
|
-
*/
|
|
562
|
-
async function downloadMSTeamsAttachments(params) {
|
|
563
|
-
const list = Array.isArray(params.attachments) ? params.attachments : [];
|
|
564
|
-
if (list.length === 0) return [];
|
|
565
|
-
const policy = resolveAttachmentFetchPolicy({
|
|
566
|
-
allowHosts: params.allowHosts,
|
|
567
|
-
authAllowHosts: params.authAllowHosts
|
|
568
|
-
});
|
|
569
|
-
const allowHosts = policy.allowHosts;
|
|
570
|
-
const ssrfPolicy = resolveMediaSsrfPolicy(allowHosts);
|
|
571
|
-
const candidates = list.filter(isDownloadableAttachment).map(resolveDownloadCandidate).filter(Boolean);
|
|
572
|
-
const inlineCandidates = extractInlineImageCandidates(list, {
|
|
573
|
-
maxInlineBytes: params.maxBytes,
|
|
574
|
-
maxInlineTotalBytes: params.maxBytes
|
|
575
|
-
});
|
|
576
|
-
const seenUrls = /* @__PURE__ */ new Set();
|
|
577
|
-
for (const inline of inlineCandidates) if (inline.kind === "url") {
|
|
578
|
-
if (!isUrlAllowed(inline.url, allowHosts)) continue;
|
|
579
|
-
if (seenUrls.has(inline.url)) continue;
|
|
580
|
-
seenUrls.add(inline.url);
|
|
581
|
-
candidates.push({
|
|
582
|
-
url: inline.url,
|
|
583
|
-
fileHint: inline.fileHint,
|
|
584
|
-
contentTypeHint: inline.contentType,
|
|
585
|
-
placeholder: inline.placeholder
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
if (candidates.length === 0 && inlineCandidates.length === 0) return [];
|
|
589
|
-
const out = [];
|
|
590
|
-
for (const inline of inlineCandidates) {
|
|
591
|
-
if (inline.kind !== "data") continue;
|
|
592
|
-
if (inline.data.byteLength > params.maxBytes) continue;
|
|
593
|
-
try {
|
|
594
|
-
const saved = await getMSTeamsRuntime().channel.media.saveMediaBuffer(inline.data, inline.contentType, "inbound", params.maxBytes);
|
|
595
|
-
out.push({
|
|
596
|
-
path: saved.path,
|
|
597
|
-
contentType: saved.contentType,
|
|
598
|
-
placeholder: inline.placeholder
|
|
599
|
-
});
|
|
600
|
-
} catch {}
|
|
601
|
-
}
|
|
602
|
-
for (const candidate of candidates) {
|
|
603
|
-
if (!isUrlAllowed(candidate.url, allowHosts)) continue;
|
|
604
|
-
try {
|
|
605
|
-
const media = await downloadAndStoreMSTeamsRemoteMedia({
|
|
606
|
-
url: candidate.url,
|
|
607
|
-
filePathHint: candidate.fileHint ?? candidate.url,
|
|
608
|
-
maxBytes: params.maxBytes,
|
|
609
|
-
contentTypeHint: candidate.contentTypeHint,
|
|
610
|
-
placeholder: candidate.placeholder,
|
|
611
|
-
preserveFilenames: params.preserveFilenames,
|
|
612
|
-
ssrfPolicy,
|
|
613
|
-
fetchImpl: (input, init) => fetchWithAuthFallback({
|
|
614
|
-
url: resolveRequestUrl(input),
|
|
615
|
-
tokenProvider: params.tokenProvider,
|
|
616
|
-
fetchFn: params.fetchFn,
|
|
617
|
-
requestInit: init,
|
|
618
|
-
policy
|
|
619
|
-
})
|
|
620
|
-
});
|
|
621
|
-
out.push(media);
|
|
622
|
-
} catch {}
|
|
623
|
-
}
|
|
624
|
-
return out;
|
|
625
|
-
}
|
|
626
|
-
//#endregion
|
|
627
|
-
//#region extensions/msteams/src/attachments/graph.ts
|
|
628
|
-
function readNestedString(value, keys) {
|
|
629
|
-
let current = value;
|
|
630
|
-
for (const key of keys) {
|
|
631
|
-
if (!isRecord(current)) return;
|
|
632
|
-
current = current[key];
|
|
633
|
-
}
|
|
634
|
-
return typeof current === "string" && current.trim() ? current.trim() : void 0;
|
|
635
|
-
}
|
|
636
|
-
function buildMSTeamsGraphMessageUrls(params) {
|
|
637
|
-
const conversationType = params.conversationType?.trim().toLowerCase() ?? "";
|
|
638
|
-
const messageIdCandidates = /* @__PURE__ */ new Set();
|
|
639
|
-
const pushCandidate = (value) => {
|
|
640
|
-
const trimmed = typeof value === "string" ? value.trim() : "";
|
|
641
|
-
if (trimmed) messageIdCandidates.add(trimmed);
|
|
642
|
-
};
|
|
643
|
-
pushCandidate(params.messageId);
|
|
644
|
-
pushCandidate(params.conversationMessageId);
|
|
645
|
-
pushCandidate(readNestedString(params.channelData, ["messageId"]));
|
|
646
|
-
pushCandidate(readNestedString(params.channelData, ["teamsMessageId"]));
|
|
647
|
-
const replyToId = typeof params.replyToId === "string" ? params.replyToId.trim() : "";
|
|
648
|
-
if (conversationType === "channel") {
|
|
649
|
-
const teamId = readNestedString(params.channelData, ["team", "id"]) ?? readNestedString(params.channelData, ["teamId"]);
|
|
650
|
-
const channelId = readNestedString(params.channelData, ["channel", "id"]) ?? readNestedString(params.channelData, ["channelId"]) ?? readNestedString(params.channelData, ["teamsChannelId"]);
|
|
651
|
-
if (!teamId || !channelId) return [];
|
|
652
|
-
const urls = [];
|
|
653
|
-
if (replyToId) for (const candidate of messageIdCandidates) {
|
|
654
|
-
if (candidate === replyToId) continue;
|
|
655
|
-
urls.push(`${GRAPH_ROOT}/teams/${encodeURIComponent(teamId)}/channels/${encodeURIComponent(channelId)}/messages/${encodeURIComponent(replyToId)}/replies/${encodeURIComponent(candidate)}`);
|
|
656
|
-
}
|
|
657
|
-
if (messageIdCandidates.size === 0 && replyToId) messageIdCandidates.add(replyToId);
|
|
658
|
-
for (const candidate of messageIdCandidates) urls.push(`${GRAPH_ROOT}/teams/${encodeURIComponent(teamId)}/channels/${encodeURIComponent(channelId)}/messages/${encodeURIComponent(candidate)}`);
|
|
659
|
-
return Array.from(new Set(urls));
|
|
660
|
-
}
|
|
661
|
-
const chatId = params.conversationId?.trim() || readNestedString(params.channelData, ["chatId"]);
|
|
662
|
-
if (!chatId) return [];
|
|
663
|
-
if (messageIdCandidates.size === 0 && replyToId) messageIdCandidates.add(replyToId);
|
|
664
|
-
const urls = Array.from(messageIdCandidates).map((candidate) => `${GRAPH_ROOT}/chats/${encodeURIComponent(chatId)}/messages/${encodeURIComponent(candidate)}`);
|
|
665
|
-
return Array.from(new Set(urls));
|
|
666
|
-
}
|
|
667
|
-
async function fetchGraphCollection(params) {
|
|
668
|
-
const fetchFn = params.fetchFn ?? fetch;
|
|
669
|
-
const { response, release } = await fetchWithSsrFGuard({
|
|
670
|
-
url: params.url,
|
|
671
|
-
fetchImpl: fetchFn,
|
|
672
|
-
init: { headers: { Authorization: `Bearer ${params.accessToken}` } },
|
|
673
|
-
policy: params.ssrfPolicy,
|
|
674
|
-
auditContext: "msteams.graph.collection"
|
|
675
|
-
});
|
|
676
|
-
try {
|
|
677
|
-
const status = response.status;
|
|
678
|
-
if (!response.ok) return {
|
|
679
|
-
status,
|
|
680
|
-
items: []
|
|
681
|
-
};
|
|
682
|
-
try {
|
|
683
|
-
const data = await response.json();
|
|
684
|
-
return {
|
|
685
|
-
status,
|
|
686
|
-
items: Array.isArray(data.value) ? data.value : []
|
|
687
|
-
};
|
|
688
|
-
} catch {
|
|
689
|
-
return {
|
|
690
|
-
status,
|
|
691
|
-
items: []
|
|
692
|
-
};
|
|
693
|
-
}
|
|
694
|
-
} finally {
|
|
695
|
-
await release();
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
function normalizeGraphAttachment(att) {
|
|
699
|
-
let content = att.content;
|
|
700
|
-
if (typeof content === "string") try {
|
|
701
|
-
content = JSON.parse(content);
|
|
702
|
-
} catch {}
|
|
703
|
-
return {
|
|
704
|
-
contentType: normalizeContentType(att.contentType) ?? void 0,
|
|
705
|
-
contentUrl: att.contentUrl ?? void 0,
|
|
706
|
-
name: att.name ?? void 0,
|
|
707
|
-
thumbnailUrl: att.thumbnailUrl ?? void 0,
|
|
708
|
-
content
|
|
709
|
-
};
|
|
710
|
-
}
|
|
711
|
-
/**
|
|
712
|
-
* Download all hosted content from a Teams message (images, documents, etc.).
|
|
713
|
-
* Renamed from downloadGraphHostedImages to support all file types.
|
|
714
|
-
*/
|
|
715
|
-
async function downloadGraphHostedContent(params) {
|
|
716
|
-
const hosted = await fetchGraphCollection({
|
|
717
|
-
url: `${params.messageUrl}/hostedContents`,
|
|
718
|
-
accessToken: params.accessToken,
|
|
719
|
-
fetchFn: params.fetchFn,
|
|
720
|
-
ssrfPolicy: params.ssrfPolicy
|
|
721
|
-
});
|
|
722
|
-
if (hosted.items.length === 0) return {
|
|
723
|
-
media: [],
|
|
724
|
-
status: hosted.status,
|
|
725
|
-
count: 0
|
|
726
|
-
};
|
|
727
|
-
const out = [];
|
|
728
|
-
for (const item of hosted.items) {
|
|
729
|
-
const contentBytes = typeof item.contentBytes === "string" ? item.contentBytes : "";
|
|
730
|
-
let buffer;
|
|
731
|
-
if (contentBytes) try {
|
|
732
|
-
buffer = Buffer.from(contentBytes, "base64");
|
|
733
|
-
} catch {
|
|
734
|
-
continue;
|
|
735
|
-
}
|
|
736
|
-
else if (item.id) try {
|
|
737
|
-
const { response: valRes, release } = await fetchWithSsrFGuard({
|
|
738
|
-
url: `${params.messageUrl}/hostedContents/${encodeURIComponent(item.id)}/$value`,
|
|
739
|
-
fetchImpl: params.fetchFn ?? fetch,
|
|
740
|
-
init: { headers: { Authorization: `Bearer ${params.accessToken}` } },
|
|
741
|
-
policy: params.ssrfPolicy,
|
|
742
|
-
auditContext: "msteams.graph.hostedContent.value"
|
|
743
|
-
});
|
|
744
|
-
try {
|
|
745
|
-
if (!valRes.ok) continue;
|
|
746
|
-
const cl = valRes.headers.get("content-length");
|
|
747
|
-
if (cl && Number(cl) > params.maxBytes) continue;
|
|
748
|
-
const ab = await valRes.arrayBuffer();
|
|
749
|
-
buffer = Buffer.from(ab);
|
|
750
|
-
} finally {
|
|
751
|
-
await release();
|
|
752
|
-
}
|
|
753
|
-
} catch {
|
|
754
|
-
continue;
|
|
755
|
-
}
|
|
756
|
-
else continue;
|
|
757
|
-
if (buffer.byteLength > params.maxBytes) continue;
|
|
758
|
-
const mime = await getMSTeamsRuntime().media.detectMime({
|
|
759
|
-
buffer,
|
|
760
|
-
headerMime: item.contentType ?? void 0
|
|
761
|
-
});
|
|
762
|
-
try {
|
|
763
|
-
const saved = await getMSTeamsRuntime().channel.media.saveMediaBuffer(buffer, mime ?? item.contentType ?? void 0, "inbound", params.maxBytes);
|
|
764
|
-
out.push({
|
|
765
|
-
path: saved.path,
|
|
766
|
-
contentType: saved.contentType,
|
|
767
|
-
placeholder: inferPlaceholder({ contentType: saved.contentType })
|
|
768
|
-
});
|
|
769
|
-
} catch {}
|
|
770
|
-
}
|
|
771
|
-
return {
|
|
772
|
-
media: out,
|
|
773
|
-
status: hosted.status,
|
|
774
|
-
count: hosted.items.length
|
|
775
|
-
};
|
|
776
|
-
}
|
|
777
|
-
async function downloadMSTeamsGraphMedia(params) {
|
|
778
|
-
if (!params.messageUrl || !params.tokenProvider) return { media: [] };
|
|
779
|
-
const policy = resolveAttachmentFetchPolicy({
|
|
780
|
-
allowHosts: params.allowHosts,
|
|
781
|
-
authAllowHosts: params.authAllowHosts
|
|
782
|
-
});
|
|
783
|
-
const ssrfPolicy = resolveMediaSsrfPolicy(policy.allowHosts);
|
|
784
|
-
const messageUrl = params.messageUrl;
|
|
785
|
-
let accessToken;
|
|
786
|
-
try {
|
|
787
|
-
accessToken = await params.tokenProvider.getAccessToken("https://graph.microsoft.com");
|
|
788
|
-
} catch {
|
|
789
|
-
return {
|
|
790
|
-
media: [],
|
|
791
|
-
messageUrl,
|
|
792
|
-
tokenError: true
|
|
793
|
-
};
|
|
794
|
-
}
|
|
795
|
-
const fetchFn = params.fetchFn ?? fetch;
|
|
796
|
-
const sharePointMedia = [];
|
|
797
|
-
const downloadedReferenceUrls = /* @__PURE__ */ new Set();
|
|
798
|
-
try {
|
|
799
|
-
const { response: msgRes, release } = await fetchWithSsrFGuard({
|
|
800
|
-
url: messageUrl,
|
|
801
|
-
fetchImpl: fetchFn,
|
|
802
|
-
init: { headers: { Authorization: `Bearer ${accessToken}` } },
|
|
803
|
-
policy: ssrfPolicy,
|
|
804
|
-
auditContext: "msteams.graph.message"
|
|
805
|
-
});
|
|
806
|
-
try {
|
|
807
|
-
if (msgRes.ok) {
|
|
808
|
-
const spAttachments = ((await msgRes.json()).attachments ?? []).filter((a) => a.contentType === "reference" && a.contentUrl && a.name);
|
|
809
|
-
for (const att of spAttachments) {
|
|
810
|
-
const name = att.name ?? "file";
|
|
811
|
-
try {
|
|
812
|
-
const shareUrl = att.contentUrl;
|
|
813
|
-
if (!isUrlAllowed(shareUrl, policy.allowHosts)) continue;
|
|
814
|
-
const media = await downloadAndStoreMSTeamsRemoteMedia({
|
|
815
|
-
url: `${GRAPH_ROOT}/shares/u!${Buffer.from(shareUrl).toString("base64url")}/driveItem/content`,
|
|
816
|
-
filePathHint: name,
|
|
817
|
-
maxBytes: params.maxBytes,
|
|
818
|
-
contentTypeHint: "application/octet-stream",
|
|
819
|
-
preserveFilenames: params.preserveFilenames,
|
|
820
|
-
ssrfPolicy,
|
|
821
|
-
fetchImpl: async (input, init) => {
|
|
822
|
-
const requestUrl = resolveRequestUrl(input);
|
|
823
|
-
const headers = new Headers(init?.headers);
|
|
824
|
-
applyAuthorizationHeaderForUrl({
|
|
825
|
-
headers,
|
|
826
|
-
url: requestUrl,
|
|
827
|
-
authAllowHosts: policy.authAllowHosts,
|
|
828
|
-
bearerToken: accessToken
|
|
829
|
-
});
|
|
830
|
-
return await safeFetchWithPolicy({
|
|
831
|
-
url: requestUrl,
|
|
832
|
-
policy,
|
|
833
|
-
fetchFn,
|
|
834
|
-
requestInit: {
|
|
835
|
-
...init,
|
|
836
|
-
headers
|
|
837
|
-
}
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
});
|
|
841
|
-
sharePointMedia.push(media);
|
|
842
|
-
downloadedReferenceUrls.add(shareUrl);
|
|
843
|
-
} catch {}
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
} finally {
|
|
847
|
-
await release();
|
|
848
|
-
}
|
|
849
|
-
} catch {}
|
|
850
|
-
const hosted = await downloadGraphHostedContent({
|
|
851
|
-
accessToken,
|
|
852
|
-
messageUrl,
|
|
853
|
-
maxBytes: params.maxBytes,
|
|
854
|
-
fetchFn: params.fetchFn,
|
|
855
|
-
preserveFilenames: params.preserveFilenames,
|
|
856
|
-
ssrfPolicy
|
|
857
|
-
});
|
|
858
|
-
const attachments = await fetchGraphCollection({
|
|
859
|
-
url: `${messageUrl}/attachments`,
|
|
860
|
-
accessToken,
|
|
861
|
-
fetchFn: params.fetchFn,
|
|
862
|
-
ssrfPolicy
|
|
863
|
-
});
|
|
864
|
-
const normalizedAttachments = attachments.items.map(normalizeGraphAttachment);
|
|
865
|
-
const filteredAttachments = sharePointMedia.length > 0 ? normalizedAttachments.filter((att) => {
|
|
866
|
-
if (att.contentType?.toLowerCase() !== "reference") return true;
|
|
867
|
-
const url = typeof att.contentUrl === "string" ? att.contentUrl : "";
|
|
868
|
-
if (!url) return true;
|
|
869
|
-
return !downloadedReferenceUrls.has(url);
|
|
870
|
-
}) : normalizedAttachments;
|
|
871
|
-
const attachmentMedia = await downloadMSTeamsAttachments({
|
|
872
|
-
attachments: filteredAttachments,
|
|
873
|
-
maxBytes: params.maxBytes,
|
|
874
|
-
tokenProvider: params.tokenProvider,
|
|
875
|
-
allowHosts: policy.allowHosts,
|
|
876
|
-
authAllowHosts: policy.authAllowHosts,
|
|
877
|
-
fetchFn: params.fetchFn,
|
|
878
|
-
preserveFilenames: params.preserveFilenames
|
|
879
|
-
});
|
|
880
|
-
return {
|
|
881
|
-
media: [
|
|
882
|
-
...sharePointMedia,
|
|
883
|
-
...hosted.media,
|
|
884
|
-
...attachmentMedia
|
|
885
|
-
],
|
|
886
|
-
hostedCount: hosted.count,
|
|
887
|
-
attachmentCount: filteredAttachments.length + sharePointMedia.length,
|
|
888
|
-
hostedStatus: hosted.status,
|
|
889
|
-
attachmentStatus: attachments.status,
|
|
890
|
-
messageUrl
|
|
891
|
-
};
|
|
892
|
-
}
|
|
893
|
-
//#endregion
|
|
894
|
-
//#region extensions/msteams/src/attachments/html.ts
|
|
895
|
-
function summarizeMSTeamsHtmlAttachments(attachments) {
|
|
896
|
-
const list = Array.isArray(attachments) ? attachments : [];
|
|
897
|
-
if (list.length === 0) return;
|
|
898
|
-
let htmlAttachments = 0;
|
|
899
|
-
let imgTags = 0;
|
|
900
|
-
let dataImages = 0;
|
|
901
|
-
let cidImages = 0;
|
|
902
|
-
const srcHosts = /* @__PURE__ */ new Set();
|
|
903
|
-
let attachmentTags = 0;
|
|
904
|
-
const attachmentIds = /* @__PURE__ */ new Set();
|
|
905
|
-
for (const att of list) {
|
|
906
|
-
const html = extractHtmlFromAttachment(att);
|
|
907
|
-
if (!html) continue;
|
|
908
|
-
htmlAttachments += 1;
|
|
909
|
-
IMG_SRC_RE.lastIndex = 0;
|
|
910
|
-
let match = IMG_SRC_RE.exec(html);
|
|
911
|
-
while (match) {
|
|
912
|
-
imgTags += 1;
|
|
913
|
-
const src = match[1]?.trim();
|
|
914
|
-
if (src) if (src.startsWith("data:")) dataImages += 1;
|
|
915
|
-
else if (src.startsWith("cid:")) cidImages += 1;
|
|
916
|
-
else srcHosts.add(safeHostForUrl(src));
|
|
917
|
-
match = IMG_SRC_RE.exec(html);
|
|
918
|
-
}
|
|
919
|
-
ATTACHMENT_TAG_RE.lastIndex = 0;
|
|
920
|
-
let attachmentMatch = ATTACHMENT_TAG_RE.exec(html);
|
|
921
|
-
while (attachmentMatch) {
|
|
922
|
-
attachmentTags += 1;
|
|
923
|
-
const id = attachmentMatch[1]?.trim();
|
|
924
|
-
if (id) attachmentIds.add(id);
|
|
925
|
-
attachmentMatch = ATTACHMENT_TAG_RE.exec(html);
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
if (htmlAttachments === 0) return;
|
|
929
|
-
return {
|
|
930
|
-
htmlAttachments,
|
|
931
|
-
imgTags,
|
|
932
|
-
dataImages,
|
|
933
|
-
cidImages,
|
|
934
|
-
srcHosts: Array.from(srcHosts).slice(0, 5),
|
|
935
|
-
attachmentTags,
|
|
936
|
-
attachmentIds: Array.from(attachmentIds).slice(0, 5)
|
|
937
|
-
};
|
|
938
|
-
}
|
|
939
|
-
function buildMSTeamsAttachmentPlaceholder(attachments) {
|
|
940
|
-
const list = Array.isArray(attachments) ? attachments : [];
|
|
941
|
-
if (list.length === 0) return "";
|
|
942
|
-
const totalImages = list.filter(isLikelyImageAttachment).length + extractInlineImageCandidates(list).length;
|
|
943
|
-
if (totalImages > 0) return `<media:image>${totalImages > 1 ? ` (${totalImages} images)` : ""}`;
|
|
944
|
-
const count = list.length;
|
|
945
|
-
return `<media:document>${count > 1 ? ` (${count} files)` : ""}`;
|
|
946
|
-
}
|
|
947
|
-
//#endregion
|
|
948
|
-
//#region extensions/msteams/src/attachments/payload.ts
|
|
949
|
-
function buildMSTeamsMediaPayload(mediaList) {
|
|
950
|
-
return buildMediaPayload(mediaList, { preserveMediaTypeCardinality: true });
|
|
951
|
-
}
|
|
952
|
-
//#endregion
|
|
953
|
-
//#region extensions/msteams/src/graph-thread.ts
|
|
954
|
-
const teamGroupIdCache = /* @__PURE__ */ new Map();
|
|
955
|
-
const CACHE_TTL_MS = 600 * 1e3;
|
|
956
|
-
/**
|
|
957
|
-
* Strip HTML tags from Teams message content, preserving @mention display names.
|
|
958
|
-
* Teams wraps mentions in <at>Name</at> tags.
|
|
959
|
-
*/
|
|
960
|
-
function stripHtmlFromTeamsMessage(html) {
|
|
961
|
-
let text = html.replace(/<at[^>]*>(.*?)<\/at>/gi, "@$1");
|
|
962
|
-
text = text.replace(/<[^>]*>/g, " ");
|
|
963
|
-
text = text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\"").replace(/'/g, "'").replace(/ /g, " ");
|
|
964
|
-
return text.replace(/\s+/g, " ").trim();
|
|
965
|
-
}
|
|
966
|
-
/**
|
|
967
|
-
* Resolve the Azure AD group GUID for a Teams conversation team ID.
|
|
968
|
-
* Results are cached with a TTL to avoid repeated Graph API calls.
|
|
969
|
-
*/
|
|
970
|
-
async function resolveTeamGroupId(token, conversationTeamId) {
|
|
971
|
-
const cached = teamGroupIdCache.get(conversationTeamId);
|
|
972
|
-
if (cached && cached.expiresAt > Date.now()) return cached.groupId;
|
|
973
|
-
try {
|
|
974
|
-
const groupId = (await fetchGraphJson({
|
|
975
|
-
token,
|
|
976
|
-
path: `/teams/${encodeURIComponent(conversationTeamId)}?$select=id`
|
|
977
|
-
})).id ?? conversationTeamId;
|
|
978
|
-
teamGroupIdCache.set(conversationTeamId, {
|
|
979
|
-
groupId,
|
|
980
|
-
expiresAt: Date.now() + CACHE_TTL_MS
|
|
981
|
-
});
|
|
982
|
-
return groupId;
|
|
983
|
-
} catch {
|
|
984
|
-
return conversationTeamId;
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
/**
|
|
988
|
-
* Fetch a single channel message (the parent/root of a thread).
|
|
989
|
-
* Returns undefined on error so callers can degrade gracefully.
|
|
990
|
-
*/
|
|
991
|
-
async function fetchChannelMessage(token, groupId, channelId, messageId) {
|
|
992
|
-
const path = `/teams/${encodeURIComponent(groupId)}/channels/${encodeURIComponent(channelId)}/messages/${encodeURIComponent(messageId)}?$select=id,from,body,createdDateTime`;
|
|
993
|
-
try {
|
|
994
|
-
return await fetchGraphJson({
|
|
995
|
-
token,
|
|
996
|
-
path
|
|
997
|
-
});
|
|
998
|
-
} catch {
|
|
999
|
-
return;
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
/**
|
|
1003
|
-
* Fetch thread replies for a channel message, ordered chronologically.
|
|
1004
|
-
*
|
|
1005
|
-
* **Limitation:** The Graph API replies endpoint (`/messages/{id}/replies`) does not
|
|
1006
|
-
* support `$orderby`, so results are always returned in ascending (oldest-first) order.
|
|
1007
|
-
* Combined with the `$top` cap of 50, this means only the **oldest 50 replies** are
|
|
1008
|
-
* returned for long threads — newer replies are silently omitted. There is currently no
|
|
1009
|
-
* Graph API workaround for this; pagination via `@odata.nextLink` can retrieve more
|
|
1010
|
-
* replies but still in ascending order only.
|
|
1011
|
-
*/
|
|
1012
|
-
async function fetchThreadReplies(token, groupId, channelId, messageId, limit = 50) {
|
|
1013
|
-
return (await fetchGraphJson({
|
|
1014
|
-
token,
|
|
1015
|
-
path: `/teams/${encodeURIComponent(groupId)}/channels/${encodeURIComponent(channelId)}/messages/${encodeURIComponent(messageId)}/replies?$top=${Math.min(Math.max(limit, 1), 50)}&$select=id,from,body,createdDateTime`
|
|
1016
|
-
})).value ?? [];
|
|
1017
|
-
}
|
|
1018
|
-
/**
|
|
1019
|
-
* Format thread messages into a context string for the agent.
|
|
1020
|
-
* Skips the current message (by id) and blank messages.
|
|
1021
|
-
*/
|
|
1022
|
-
function formatThreadContext(messages, currentMessageId) {
|
|
1023
|
-
const lines = [];
|
|
1024
|
-
for (const msg of messages) {
|
|
1025
|
-
if (msg.id && msg.id === currentMessageId) continue;
|
|
1026
|
-
const sender = msg.from?.user?.displayName ?? msg.from?.application?.displayName ?? "unknown";
|
|
1027
|
-
const contentType = msg.body?.contentType ?? "text";
|
|
1028
|
-
const rawContent = msg.body?.content ?? "";
|
|
1029
|
-
const content = contentType === "html" ? stripHtmlFromTeamsMessage(rawContent) : rawContent.trim();
|
|
1030
|
-
if (!content) continue;
|
|
1031
|
-
lines.push(`${sender}: ${content}`);
|
|
1032
|
-
}
|
|
1033
|
-
return lines.join("\n");
|
|
1034
|
-
}
|
|
1035
|
-
//#endregion
|
|
1036
|
-
//#region extensions/msteams/src/streaming-message.ts
|
|
1037
|
-
/**
|
|
1038
|
-
* Teams streaming message using the streaminfo entity protocol.
|
|
1039
|
-
*
|
|
1040
|
-
* Follows the official Teams SDK pattern:
|
|
1041
|
-
* 1. First chunk → POST a typing activity with streaminfo entity (streamType: "streaming")
|
|
1042
|
-
* 2. Subsequent chunks → POST typing activities with streaminfo + incrementing streamSequence
|
|
1043
|
-
* 3. Finalize → POST a message activity with streaminfo (streamType: "final")
|
|
1044
|
-
*
|
|
1045
|
-
* Uses the shared draft-stream-loop for throttling (avoids rate limits).
|
|
1046
|
-
*/
|
|
1047
|
-
/** Default throttle interval between stream updates (ms).
|
|
1048
|
-
* Teams docs recommend buffering tokens for 1.5-2s; limit is 1 req/s. */
|
|
1049
|
-
const DEFAULT_THROTTLE_MS = 1500;
|
|
1050
|
-
/** Minimum chars before sending the first streaming message. */
|
|
1051
|
-
const MIN_INITIAL_CHARS = 20;
|
|
1052
|
-
/** Teams message text limit. */
|
|
1053
|
-
const TEAMS_MAX_CHARS = 4e3;
|
|
1054
|
-
function extractId(response) {
|
|
1055
|
-
if (response && typeof response === "object" && "id" in response) {
|
|
1056
|
-
const id = response.id;
|
|
1057
|
-
return typeof id === "string" ? id : void 0;
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
function buildStreamInfoEntity(streamId, streamType, streamSequence) {
|
|
1061
|
-
const entity = {
|
|
1062
|
-
type: "streaminfo",
|
|
1063
|
-
streamType
|
|
1064
|
-
};
|
|
1065
|
-
if (streamId) entity.streamId = streamId;
|
|
1066
|
-
if (streamSequence != null) entity.streamSequence = streamSequence;
|
|
1067
|
-
return entity;
|
|
1068
|
-
}
|
|
1069
|
-
var TeamsHttpStream = class {
|
|
1070
|
-
constructor(options) {
|
|
1071
|
-
this.accumulatedText = "";
|
|
1072
|
-
this.streamId = void 0;
|
|
1073
|
-
this.sequenceNumber = 0;
|
|
1074
|
-
this.stopped = false;
|
|
1075
|
-
this.finalized = false;
|
|
1076
|
-
this.streamFailed = false;
|
|
1077
|
-
this.lastStreamedText = "";
|
|
1078
|
-
this.sendActivity = options.sendActivity;
|
|
1079
|
-
this.feedbackLoopEnabled = options.feedbackLoopEnabled ?? false;
|
|
1080
|
-
this.onError = options.onError;
|
|
1081
|
-
this.loop = createDraftStreamLoop({
|
|
1082
|
-
throttleMs: options.throttleMs ?? DEFAULT_THROTTLE_MS,
|
|
1083
|
-
isStopped: () => this.stopped,
|
|
1084
|
-
sendOrEditStreamMessage: (text) => this.pushStreamChunk(text)
|
|
1085
|
-
});
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* Send an informative status update (blue progress bar in Teams).
|
|
1089
|
-
* Call this immediately when a message is received, before LLM starts generating.
|
|
1090
|
-
* Establishes the stream so subsequent chunks continue from this stream ID.
|
|
1091
|
-
*/
|
|
1092
|
-
async sendInformativeUpdate(text) {
|
|
1093
|
-
if (this.stopped || this.finalized) return;
|
|
1094
|
-
this.sequenceNumber++;
|
|
1095
|
-
const activity = {
|
|
1096
|
-
type: "typing",
|
|
1097
|
-
text,
|
|
1098
|
-
entities: [buildStreamInfoEntity(this.streamId, "informative", this.sequenceNumber)]
|
|
1099
|
-
};
|
|
1100
|
-
try {
|
|
1101
|
-
const response = await this.sendActivity(activity);
|
|
1102
|
-
if (!this.streamId) this.streamId = extractId(response);
|
|
1103
|
-
} catch (err) {
|
|
1104
|
-
this.onError?.(err);
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
/**
|
|
1108
|
-
* Ingest partial text from the LLM token stream.
|
|
1109
|
-
* Called by onPartialReply — accumulates text and throttles updates.
|
|
1110
|
-
*/
|
|
1111
|
-
update(text) {
|
|
1112
|
-
if (this.stopped || this.finalized) return;
|
|
1113
|
-
this.accumulatedText = text;
|
|
1114
|
-
if (!this.streamId && this.accumulatedText.length < MIN_INITIAL_CHARS) return;
|
|
1115
|
-
if (this.accumulatedText.length > TEAMS_MAX_CHARS) {
|
|
1116
|
-
this.streamFailed = true;
|
|
1117
|
-
this.finalize();
|
|
1118
|
-
return;
|
|
1119
|
-
}
|
|
1120
|
-
this.loop.update(this.accumulatedText);
|
|
1121
|
-
}
|
|
1122
|
-
/**
|
|
1123
|
-
* Finalize the stream — send the final message activity.
|
|
1124
|
-
*/
|
|
1125
|
-
async finalize() {
|
|
1126
|
-
if (this.finalized) return;
|
|
1127
|
-
this.finalized = true;
|
|
1128
|
-
this.stopped = true;
|
|
1129
|
-
this.loop.stop();
|
|
1130
|
-
await this.loop.waitForInFlight();
|
|
1131
|
-
if (!this.accumulatedText.trim()) return;
|
|
1132
|
-
if (this.streamFailed) {
|
|
1133
|
-
if (this.streamId) try {
|
|
1134
|
-
await this.sendActivity({
|
|
1135
|
-
type: "message",
|
|
1136
|
-
text: this.lastStreamedText || "",
|
|
1137
|
-
channelData: { feedbackLoopEnabled: this.feedbackLoopEnabled },
|
|
1138
|
-
entities: [AI_GENERATED_ENTITY, buildStreamInfoEntity(this.streamId, "final")]
|
|
1139
|
-
});
|
|
1140
|
-
} catch {}
|
|
1141
|
-
return;
|
|
1142
|
-
}
|
|
1143
|
-
try {
|
|
1144
|
-
const entities = [AI_GENERATED_ENTITY];
|
|
1145
|
-
if (this.streamId) entities.push(buildStreamInfoEntity(this.streamId, "final"));
|
|
1146
|
-
const finalActivity = {
|
|
1147
|
-
type: "message",
|
|
1148
|
-
text: this.accumulatedText,
|
|
1149
|
-
channelData: { feedbackLoopEnabled: this.feedbackLoopEnabled },
|
|
1150
|
-
entities
|
|
1151
|
-
};
|
|
1152
|
-
await this.sendActivity(finalActivity);
|
|
1153
|
-
} catch (err) {
|
|
1154
|
-
this.onError?.(err);
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
/** Whether streaming successfully delivered content (at least one chunk sent, not failed). */
|
|
1158
|
-
get hasContent() {
|
|
1159
|
-
return this.accumulatedText.length > 0 && !this.streamFailed;
|
|
1160
|
-
}
|
|
1161
|
-
/** Whether streaming failed and fallback delivery is needed. */
|
|
1162
|
-
get isFailed() {
|
|
1163
|
-
return this.streamFailed;
|
|
1164
|
-
}
|
|
1165
|
-
/** Number of characters successfully streamed before failure. */
|
|
1166
|
-
get streamedLength() {
|
|
1167
|
-
return this.lastStreamedText.length;
|
|
1168
|
-
}
|
|
1169
|
-
/** Whether the stream has been finalized. */
|
|
1170
|
-
get isFinalized() {
|
|
1171
|
-
return this.finalized;
|
|
1172
|
-
}
|
|
1173
|
-
/** Whether streaming fell back (not used in this implementation). */
|
|
1174
|
-
get isFallback() {
|
|
1175
|
-
return false;
|
|
1176
|
-
}
|
|
1177
|
-
/**
|
|
1178
|
-
* Send a single streaming chunk as a typing activity with streaminfo.
|
|
1179
|
-
* Per the Teams REST API spec:
|
|
1180
|
-
* - First chunk: no streamId, streamSequence=1 → returns 201 with { id: streamId }
|
|
1181
|
-
* - Subsequent chunks: include streamId, increment streamSequence → returns 202
|
|
1182
|
-
*/
|
|
1183
|
-
async pushStreamChunk(text) {
|
|
1184
|
-
if (this.stopped && !this.finalized) return false;
|
|
1185
|
-
this.sequenceNumber++;
|
|
1186
|
-
const activity = {
|
|
1187
|
-
type: "typing",
|
|
1188
|
-
text,
|
|
1189
|
-
entities: [buildStreamInfoEntity(this.streamId, "streaming", this.sequenceNumber)]
|
|
1190
|
-
};
|
|
1191
|
-
try {
|
|
1192
|
-
const response = await this.sendActivity(activity);
|
|
1193
|
-
if (!this.streamId) this.streamId = extractId(response);
|
|
1194
|
-
this.lastStreamedText = text;
|
|
1195
|
-
return true;
|
|
1196
|
-
} catch (err) {
|
|
1197
|
-
const axiosData = err?.response;
|
|
1198
|
-
const statusCode = axiosData?.status ?? err?.statusCode;
|
|
1199
|
-
const responseBody = axiosData?.data ? JSON.stringify(axiosData.data).slice(0, 300) : "";
|
|
1200
|
-
const msg = formatUnknownError(err);
|
|
1201
|
-
this.onError?.(/* @__PURE__ */ new Error(`stream POST failed (HTTP ${statusCode ?? "?"}): ${msg}${responseBody ? ` body=${responseBody}` : ""}`));
|
|
1202
|
-
this.streamFailed = true;
|
|
1203
|
-
return false;
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
};
|
|
1207
|
-
//#endregion
|
|
1208
|
-
//#region extensions/msteams/src/reply-stream-controller.ts
|
|
1209
|
-
const INFORMATIVE_STATUS_TEXTS = [
|
|
1210
|
-
"Thinking...",
|
|
1211
|
-
"Working on that...",
|
|
1212
|
-
"Checking the details...",
|
|
1213
|
-
"Putting an answer together..."
|
|
1214
|
-
];
|
|
1215
|
-
function pickInformativeStatusText(random = Math.random) {
|
|
1216
|
-
return INFORMATIVE_STATUS_TEXTS[Math.floor(random() * INFORMATIVE_STATUS_TEXTS.length)] ?? INFORMATIVE_STATUS_TEXTS[0];
|
|
1217
|
-
}
|
|
1218
|
-
function createTeamsReplyStreamController(params) {
|
|
1219
|
-
const stream = params.conversationType?.toLowerCase() === "personal" ? new TeamsHttpStream({
|
|
1220
|
-
sendActivity: (activity) => params.context.sendActivity(activity),
|
|
1221
|
-
feedbackLoopEnabled: params.feedbackLoopEnabled,
|
|
1222
|
-
onError: (err) => {
|
|
1223
|
-
params.log.debug?.(`stream error: ${formatUnknownError(err)}`);
|
|
1224
|
-
}
|
|
1225
|
-
}) : void 0;
|
|
1226
|
-
let streamReceivedTokens = false;
|
|
1227
|
-
let informativeUpdateSent = false;
|
|
1228
|
-
let pendingFinalize;
|
|
1229
|
-
return {
|
|
1230
|
-
async onReplyStart() {
|
|
1231
|
-
if (!stream || informativeUpdateSent) return;
|
|
1232
|
-
informativeUpdateSent = true;
|
|
1233
|
-
await stream.sendInformativeUpdate(pickInformativeStatusText(params.random));
|
|
1234
|
-
},
|
|
1235
|
-
onPartialReply(payload) {
|
|
1236
|
-
if (!stream || !payload.text) return;
|
|
1237
|
-
streamReceivedTokens = true;
|
|
1238
|
-
stream.update(payload.text);
|
|
1239
|
-
},
|
|
1240
|
-
preparePayload(payload) {
|
|
1241
|
-
if (!stream || !streamReceivedTokens) return payload;
|
|
1242
|
-
const hasMedia = Boolean(payload.mediaUrl || payload.mediaUrls?.length);
|
|
1243
|
-
if (stream.isFailed) {
|
|
1244
|
-
streamReceivedTokens = false;
|
|
1245
|
-
if (!payload.text) return payload;
|
|
1246
|
-
const streamedLength = stream.streamedLength;
|
|
1247
|
-
if (streamedLength <= 0) return payload;
|
|
1248
|
-
const remainingText = payload.text.slice(streamedLength);
|
|
1249
|
-
if (!remainingText) return hasMedia ? {
|
|
1250
|
-
...payload,
|
|
1251
|
-
text: void 0
|
|
1252
|
-
} : void 0;
|
|
1253
|
-
return {
|
|
1254
|
-
...payload,
|
|
1255
|
-
text: remainingText
|
|
1256
|
-
};
|
|
1257
|
-
}
|
|
1258
|
-
if (!stream.hasContent || stream.isFinalized) return payload;
|
|
1259
|
-
streamReceivedTokens = false;
|
|
1260
|
-
pendingFinalize = stream.finalize();
|
|
1261
|
-
if (!hasMedia) return;
|
|
1262
|
-
return {
|
|
1263
|
-
...payload,
|
|
1264
|
-
text: void 0
|
|
1265
|
-
};
|
|
1266
|
-
},
|
|
1267
|
-
async finalize() {
|
|
1268
|
-
await pendingFinalize;
|
|
1269
|
-
await stream?.finalize();
|
|
1270
|
-
},
|
|
1271
|
-
hasStream() {
|
|
1272
|
-
return Boolean(stream);
|
|
1273
|
-
}
|
|
1274
|
-
};
|
|
1275
|
-
}
|
|
1276
|
-
//#endregion
|
|
1277
|
-
//#region extensions/msteams/src/reply-dispatcher.ts
|
|
1278
|
-
function createMSTeamsReplyDispatcher(params) {
|
|
1279
|
-
const core = getMSTeamsRuntime();
|
|
1280
|
-
const msteamsCfg = params.cfg.channels?.msteams;
|
|
1281
|
-
const conversationType = params.conversationRef.conversation?.conversationType?.toLowerCase();
|
|
1282
|
-
const sendTypingIndicator = conversationType === "personal" || conversationType === "groupchat" ? async () => {
|
|
1283
|
-
await withRevokedProxyFallback({
|
|
1284
|
-
run: async () => {
|
|
1285
|
-
await params.context.sendActivity({ type: "typing" });
|
|
1286
|
-
},
|
|
1287
|
-
onRevoked: async () => {
|
|
1288
|
-
const baseRef = buildConversationReference(params.conversationRef);
|
|
1289
|
-
await params.adapter.continueConversation(params.appId, {
|
|
1290
|
-
...baseRef,
|
|
1291
|
-
activityId: void 0
|
|
1292
|
-
}, async (ctx) => {
|
|
1293
|
-
await ctx.sendActivity({ type: "typing" });
|
|
1294
|
-
});
|
|
1295
|
-
},
|
|
1296
|
-
onRevokedLog: () => {
|
|
1297
|
-
params.log.debug?.("turn context revoked, sending typing via proactive messaging");
|
|
1298
|
-
}
|
|
1299
|
-
});
|
|
1300
|
-
} : async () => {};
|
|
1301
|
-
const { onModelSelected, typingCallbacks, ...replyPipeline } = createChannelReplyPipeline({
|
|
1302
|
-
cfg: params.cfg,
|
|
1303
|
-
agentId: params.agentId,
|
|
1304
|
-
channel: "msteams",
|
|
1305
|
-
accountId: params.accountId,
|
|
1306
|
-
typing: {
|
|
1307
|
-
start: sendTypingIndicator,
|
|
1308
|
-
onStartError: (err) => {
|
|
1309
|
-
logTypingFailure({
|
|
1310
|
-
log: (message) => params.log.debug?.(message),
|
|
1311
|
-
channel: "msteams",
|
|
1312
|
-
action: "start",
|
|
1313
|
-
error: err
|
|
1314
|
-
});
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
});
|
|
1318
|
-
const chunkMode = core.channel.text.resolveChunkMode(params.cfg, "msteams");
|
|
1319
|
-
const tableMode = core.channel.text.resolveMarkdownTableMode({
|
|
1320
|
-
cfg: params.cfg,
|
|
1321
|
-
channel: "msteams"
|
|
1322
|
-
});
|
|
1323
|
-
const mediaMaxBytes = resolveChannelMediaMaxBytes({
|
|
1324
|
-
cfg: params.cfg,
|
|
1325
|
-
resolveChannelLimitMb: ({ cfg }) => cfg.channels?.msteams?.mediaMaxMb
|
|
1326
|
-
});
|
|
1327
|
-
const feedbackLoopEnabled = params.cfg.channels?.msteams?.feedbackEnabled !== false;
|
|
1328
|
-
const streamController = createTeamsReplyStreamController({
|
|
1329
|
-
conversationType,
|
|
1330
|
-
context: params.context,
|
|
1331
|
-
feedbackLoopEnabled,
|
|
1332
|
-
log: params.log
|
|
1333
|
-
});
|
|
1334
|
-
const blockStreamingEnabled = typeof msteamsCfg?.blockStreaming === "boolean" ? msteamsCfg.blockStreaming : false;
|
|
1335
|
-
const pendingMessages = [];
|
|
1336
|
-
const sendMessages = async (messages) => {
|
|
1337
|
-
return sendMSTeamsMessages({
|
|
1338
|
-
replyStyle: params.replyStyle,
|
|
1339
|
-
adapter: params.adapter,
|
|
1340
|
-
appId: params.appId,
|
|
1341
|
-
conversationRef: params.conversationRef,
|
|
1342
|
-
context: params.context,
|
|
1343
|
-
messages,
|
|
1344
|
-
retry: {},
|
|
1345
|
-
onRetry: (event) => {
|
|
1346
|
-
params.log.debug?.("retrying send", {
|
|
1347
|
-
replyStyle: params.replyStyle,
|
|
1348
|
-
...event
|
|
1349
|
-
});
|
|
1350
|
-
},
|
|
1351
|
-
tokenProvider: params.tokenProvider,
|
|
1352
|
-
sharePointSiteId: params.sharePointSiteId,
|
|
1353
|
-
mediaMaxBytes,
|
|
1354
|
-
feedbackLoopEnabled
|
|
1355
|
-
});
|
|
1356
|
-
};
|
|
1357
|
-
const flushPendingMessages = async () => {
|
|
1358
|
-
if (pendingMessages.length === 0) return;
|
|
1359
|
-
const toSend = pendingMessages.splice(0);
|
|
1360
|
-
const total = toSend.length;
|
|
1361
|
-
let ids;
|
|
1362
|
-
try {
|
|
1363
|
-
ids = await sendMessages(toSend);
|
|
1364
|
-
} catch {
|
|
1365
|
-
ids = [];
|
|
1366
|
-
let failed = 0;
|
|
1367
|
-
for (const msg of toSend) try {
|
|
1368
|
-
const msgIds = await sendMessages([msg]);
|
|
1369
|
-
ids.push(...msgIds);
|
|
1370
|
-
} catch {
|
|
1371
|
-
failed += 1;
|
|
1372
|
-
params.log.debug?.("individual message send failed, continuing with remaining blocks");
|
|
1373
|
-
}
|
|
1374
|
-
if (failed > 0) params.log.warn?.(`failed to deliver ${failed} of ${total} message blocks`, {
|
|
1375
|
-
failed,
|
|
1376
|
-
total
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
if (ids.length > 0) params.onSentMessageIds?.(ids);
|
|
1380
|
-
};
|
|
1381
|
-
const { dispatcher, replyOptions, markDispatchIdle: baseMarkDispatchIdle } = core.channel.reply.createReplyDispatcherWithTyping({
|
|
1382
|
-
...replyPipeline,
|
|
1383
|
-
humanDelay: core.channel.reply.resolveHumanDelayConfig(params.cfg, params.agentId),
|
|
1384
|
-
onReplyStart: async () => {
|
|
1385
|
-
await streamController.onReplyStart();
|
|
1386
|
-
await typingCallbacks?.onReplyStart?.();
|
|
1387
|
-
},
|
|
1388
|
-
typingCallbacks,
|
|
1389
|
-
deliver: async (payload) => {
|
|
1390
|
-
const preparedPayload = streamController.preparePayload(payload);
|
|
1391
|
-
if (!preparedPayload) return;
|
|
1392
|
-
const messages = renderReplyPayloadsToMessages([preparedPayload], {
|
|
1393
|
-
textChunkLimit: params.textLimit,
|
|
1394
|
-
chunkText: true,
|
|
1395
|
-
mediaMode: "split",
|
|
1396
|
-
tableMode,
|
|
1397
|
-
chunkMode
|
|
1398
|
-
});
|
|
1399
|
-
pendingMessages.push(...messages);
|
|
1400
|
-
if (blockStreamingEnabled) await flushPendingMessages();
|
|
1401
|
-
},
|
|
1402
|
-
onError: (err, info) => {
|
|
1403
|
-
const errMsg = formatUnknownError(err);
|
|
1404
|
-
const classification = classifyMSTeamsSendError(err);
|
|
1405
|
-
const hint = formatMSTeamsSendErrorHint(classification);
|
|
1406
|
-
params.runtime.error?.(`msteams ${info.kind} reply failed: ${errMsg}${hint ? ` (${hint})` : ""}`);
|
|
1407
|
-
params.log.error("reply failed", {
|
|
1408
|
-
kind: info.kind,
|
|
1409
|
-
error: errMsg,
|
|
1410
|
-
classification,
|
|
1411
|
-
hint
|
|
1412
|
-
});
|
|
1413
|
-
}
|
|
1414
|
-
});
|
|
1415
|
-
const markDispatchIdle = () => {
|
|
1416
|
-
return flushPendingMessages().catch((err) => {
|
|
1417
|
-
const errMsg = formatUnknownError(err);
|
|
1418
|
-
const classification = classifyMSTeamsSendError(err);
|
|
1419
|
-
const hint = formatMSTeamsSendErrorHint(classification);
|
|
1420
|
-
params.runtime.error?.(`msteams flush reply failed: ${errMsg}${hint ? ` (${hint})` : ""}`);
|
|
1421
|
-
params.log.error("flush reply failed", {
|
|
1422
|
-
error: errMsg,
|
|
1423
|
-
classification,
|
|
1424
|
-
hint
|
|
1425
|
-
});
|
|
1426
|
-
}).then(() => {
|
|
1427
|
-
return streamController.finalize().catch((err) => {
|
|
1428
|
-
params.log.debug?.("stream finalize failed", { error: formatUnknownError(err) });
|
|
1429
|
-
});
|
|
1430
|
-
}).finally(() => {
|
|
1431
|
-
baseMarkDispatchIdle();
|
|
1432
|
-
});
|
|
1433
|
-
};
|
|
1434
|
-
return {
|
|
1435
|
-
dispatcher,
|
|
1436
|
-
replyOptions: {
|
|
1437
|
-
...replyOptions,
|
|
1438
|
-
...streamController.hasStream() ? { onPartialReply: (payload) => streamController.onPartialReply(payload) } : {},
|
|
1439
|
-
disableBlockStreaming: typeof msteamsCfg?.blockStreaming === "boolean" ? !msteamsCfg.blockStreaming : void 0,
|
|
1440
|
-
onModelSelected
|
|
1441
|
-
},
|
|
1442
|
-
markDispatchIdle
|
|
1443
|
-
};
|
|
1444
|
-
}
|
|
1445
|
-
//#endregion
|
|
1446
|
-
//#region extensions/msteams/src/sent-message-cache.ts
|
|
1447
|
-
const TTL_MS = 1440 * 60 * 1e3;
|
|
1448
|
-
const MSTEAMS_SENT_MESSAGES_KEY = Symbol.for("openclaw.msteamsSentMessages");
|
|
1449
|
-
let sentMessageCache;
|
|
1450
|
-
function getSentMessageCache() {
|
|
1451
|
-
if (!sentMessageCache) {
|
|
1452
|
-
const globalStore = globalThis;
|
|
1453
|
-
sentMessageCache = globalStore[MSTEAMS_SENT_MESSAGES_KEY] ?? /* @__PURE__ */ new Map();
|
|
1454
|
-
globalStore[MSTEAMS_SENT_MESSAGES_KEY] = sentMessageCache;
|
|
1455
|
-
}
|
|
1456
|
-
return sentMessageCache;
|
|
1457
|
-
}
|
|
1458
|
-
function cleanupExpired(scopeKey, entry, now) {
|
|
1459
|
-
for (const [id, timestamp] of entry) if (now - timestamp > TTL_MS) entry.delete(id);
|
|
1460
|
-
if (entry.size === 0) getSentMessageCache().delete(scopeKey);
|
|
1461
|
-
}
|
|
1462
|
-
function recordMSTeamsSentMessage(conversationId, messageId) {
|
|
1463
|
-
if (!conversationId || !messageId) return;
|
|
1464
|
-
const now = Date.now();
|
|
1465
|
-
const store = getSentMessageCache();
|
|
1466
|
-
let entry = store.get(conversationId);
|
|
1467
|
-
if (!entry) {
|
|
1468
|
-
entry = /* @__PURE__ */ new Map();
|
|
1469
|
-
store.set(conversationId, entry);
|
|
1470
|
-
}
|
|
1471
|
-
entry.set(messageId, now);
|
|
1472
|
-
if (entry.size > 200) cleanupExpired(conversationId, entry, now);
|
|
1473
|
-
}
|
|
1474
|
-
function wasMSTeamsMessageSent(conversationId, messageId) {
|
|
1475
|
-
const entry = getSentMessageCache().get(conversationId);
|
|
1476
|
-
if (!entry) return false;
|
|
1477
|
-
cleanupExpired(conversationId, entry, Date.now());
|
|
1478
|
-
return entry.has(messageId);
|
|
1479
|
-
}
|
|
1480
|
-
//#endregion
|
|
1481
|
-
//#region extensions/msteams/src/monitor-handler/inbound-media.ts
|
|
1482
|
-
async function resolveMSTeamsInboundMedia(params) {
|
|
1483
|
-
const { attachments, htmlSummary, maxBytes, tokenProvider, allowHosts, conversationType, conversationId, conversationMessageId, activity, log, preserveFilenames } = params;
|
|
1484
|
-
let mediaList = await downloadMSTeamsAttachments({
|
|
1485
|
-
attachments,
|
|
1486
|
-
maxBytes,
|
|
1487
|
-
tokenProvider,
|
|
1488
|
-
allowHosts,
|
|
1489
|
-
authAllowHosts: params.authAllowHosts,
|
|
1490
|
-
preserveFilenames
|
|
1491
|
-
});
|
|
1492
|
-
if (mediaList.length === 0) {
|
|
1493
|
-
if (attachments.length > 0 && attachments.some((att) => String(att.contentType ?? "").startsWith("text/html"))) {
|
|
1494
|
-
const messageUrls = buildMSTeamsGraphMessageUrls({
|
|
1495
|
-
conversationType,
|
|
1496
|
-
conversationId,
|
|
1497
|
-
messageId: activity.id ?? void 0,
|
|
1498
|
-
replyToId: activity.replyToId ?? void 0,
|
|
1499
|
-
conversationMessageId,
|
|
1500
|
-
channelData: activity.channelData
|
|
1501
|
-
});
|
|
1502
|
-
if (messageUrls.length === 0) log.debug?.("graph message url unavailable", {
|
|
1503
|
-
conversationType,
|
|
1504
|
-
hasChannelData: Boolean(activity.channelData),
|
|
1505
|
-
messageId: activity.id ?? void 0,
|
|
1506
|
-
replyToId: activity.replyToId ?? void 0
|
|
1507
|
-
});
|
|
1508
|
-
else {
|
|
1509
|
-
const attempts = [];
|
|
1510
|
-
for (const messageUrl of messageUrls) {
|
|
1511
|
-
const graphMedia = await downloadMSTeamsGraphMedia({
|
|
1512
|
-
messageUrl,
|
|
1513
|
-
tokenProvider,
|
|
1514
|
-
maxBytes,
|
|
1515
|
-
allowHosts,
|
|
1516
|
-
authAllowHosts: params.authAllowHosts,
|
|
1517
|
-
preserveFilenames
|
|
1518
|
-
});
|
|
1519
|
-
attempts.push({
|
|
1520
|
-
url: messageUrl,
|
|
1521
|
-
hostedStatus: graphMedia.hostedStatus,
|
|
1522
|
-
attachmentStatus: graphMedia.attachmentStatus,
|
|
1523
|
-
hostedCount: graphMedia.hostedCount,
|
|
1524
|
-
attachmentCount: graphMedia.attachmentCount,
|
|
1525
|
-
tokenError: graphMedia.tokenError
|
|
1526
|
-
});
|
|
1527
|
-
if (graphMedia.media.length > 0) {
|
|
1528
|
-
mediaList = graphMedia.media;
|
|
1529
|
-
break;
|
|
1530
|
-
}
|
|
1531
|
-
if (graphMedia.tokenError) break;
|
|
1532
|
-
}
|
|
1533
|
-
if (mediaList.length === 0) log.debug?.("graph media fetch empty", { attempts });
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
if (mediaList.length > 0) log.debug?.("downloaded attachments", { count: mediaList.length });
|
|
1538
|
-
else if (htmlSummary?.imgTags) log.debug?.("inline images detected but none downloaded", {
|
|
1539
|
-
imgTags: htmlSummary.imgTags,
|
|
1540
|
-
srcHosts: htmlSummary.srcHosts,
|
|
1541
|
-
dataImages: htmlSummary.dataImages,
|
|
1542
|
-
cidImages: htmlSummary.cidImages
|
|
1543
|
-
});
|
|
1544
|
-
return mediaList;
|
|
1545
|
-
}
|
|
1546
|
-
//#endregion
|
|
1547
|
-
//#region extensions/msteams/src/monitor-handler/message-handler.ts
|
|
1548
|
-
function createMSTeamsMessageHandler(deps) {
|
|
1549
|
-
const { cfg, runtime, appId, adapter, tokenProvider, textLimit, mediaMaxBytes, conversationStore, pollStore, log } = deps;
|
|
1550
|
-
const core = getMSTeamsRuntime();
|
|
1551
|
-
const logVerboseMessage = (message) => {
|
|
1552
|
-
if (core.logging.shouldLogVerbose()) log.debug?.(message);
|
|
1553
|
-
};
|
|
1554
|
-
const msteamsCfg = cfg.channels?.msteams;
|
|
1555
|
-
const contextVisibilityMode = resolveChannelContextVisibilityMode({
|
|
1556
|
-
cfg,
|
|
1557
|
-
channel: "msteams"
|
|
1558
|
-
});
|
|
1559
|
-
const historyLimit = Math.max(0, msteamsCfg?.historyLimit ?? cfg.messages?.groupChat?.historyLimit ?? 50);
|
|
1560
|
-
const conversationHistories = /* @__PURE__ */ new Map();
|
|
1561
|
-
const inboundDebounceMs = core.channel.debounce.resolveInboundDebounceMs({
|
|
1562
|
-
cfg,
|
|
1563
|
-
channel: "msteams"
|
|
1564
|
-
});
|
|
1565
|
-
const handleTeamsMessageNow = async (params) => {
|
|
1566
|
-
const context = params.context;
|
|
1567
|
-
const activity = context.activity;
|
|
1568
|
-
const rawText = params.rawText;
|
|
1569
|
-
const text = params.text;
|
|
1570
|
-
const attachments = params.attachments;
|
|
1571
|
-
const attachmentPlaceholder = buildMSTeamsAttachmentPlaceholder(attachments);
|
|
1572
|
-
const rawBody = text || attachmentPlaceholder;
|
|
1573
|
-
const quoteInfo = extractMSTeamsQuoteInfo(attachments);
|
|
1574
|
-
let quoteSenderId;
|
|
1575
|
-
let quoteSenderName;
|
|
1576
|
-
const from = activity.from;
|
|
1577
|
-
const conversation = activity.conversation;
|
|
1578
|
-
const attachmentTypes = attachments.map((att) => typeof att.contentType === "string" ? att.contentType : void 0).filter(Boolean).slice(0, 3);
|
|
1579
|
-
const htmlSummary = summarizeMSTeamsHtmlAttachments(attachments);
|
|
1580
|
-
log.info("received message", {
|
|
1581
|
-
rawText: rawText.slice(0, 50),
|
|
1582
|
-
text: text.slice(0, 50),
|
|
1583
|
-
attachments: attachments.length,
|
|
1584
|
-
attachmentTypes,
|
|
1585
|
-
from: from?.id,
|
|
1586
|
-
conversation: conversation?.id
|
|
1587
|
-
});
|
|
1588
|
-
if (htmlSummary) log.debug?.("html attachment summary", htmlSummary);
|
|
1589
|
-
if (!from?.id) {
|
|
1590
|
-
log.debug?.("skipping message without from.id");
|
|
1591
|
-
return;
|
|
1592
|
-
}
|
|
1593
|
-
const rawConversationId = conversation?.id ?? "";
|
|
1594
|
-
const conversationId = normalizeMSTeamsConversationId(rawConversationId);
|
|
1595
|
-
const conversationMessageId = extractMSTeamsConversationMessageId(rawConversationId);
|
|
1596
|
-
const conversationType = conversation?.conversationType ?? "personal";
|
|
1597
|
-
const teamId = activity.channelData?.team?.id;
|
|
1598
|
-
const { dmPolicy, senderId, senderName, pairing, isDirectMessage, channelGate, access, configuredDmAllowFrom, effectiveDmAllowFrom, effectiveGroupAllowFrom, allowNameMatching, groupPolicy } = await resolveMSTeamsSenderAccess({
|
|
1599
|
-
cfg,
|
|
1600
|
-
activity
|
|
1601
|
-
});
|
|
1602
|
-
const useAccessGroups = cfg.commands?.useAccessGroups !== false;
|
|
1603
|
-
const isChannel = conversationType === "channel";
|
|
1604
|
-
if (isDirectMessage && msteamsCfg && access.decision !== "allow") {
|
|
1605
|
-
if (access.reason === "dmPolicy=disabled") {
|
|
1606
|
-
log.info("dropping dm (dms disabled)", {
|
|
1607
|
-
sender: senderId,
|
|
1608
|
-
label: senderName
|
|
1609
|
-
});
|
|
1610
|
-
log.debug?.("dropping dm (dms disabled)");
|
|
1611
|
-
return;
|
|
1612
|
-
}
|
|
1613
|
-
const allowMatch = resolveMSTeamsAllowlistMatch({
|
|
1614
|
-
allowFrom: effectiveDmAllowFrom,
|
|
1615
|
-
senderId,
|
|
1616
|
-
senderName,
|
|
1617
|
-
allowNameMatching
|
|
1618
|
-
});
|
|
1619
|
-
if (access.decision === "pairing") {
|
|
1620
|
-
if (await pairing.upsertPairingRequest({
|
|
1621
|
-
id: senderId,
|
|
1622
|
-
meta: { name: senderName }
|
|
1623
|
-
})) log.info("msteams pairing request created", {
|
|
1624
|
-
sender: senderId,
|
|
1625
|
-
label: senderName
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
log.debug?.("dropping dm (not allowlisted)", {
|
|
1629
|
-
sender: senderId,
|
|
1630
|
-
label: senderName,
|
|
1631
|
-
allowlistMatch: formatAllowlistMatchMeta(allowMatch)
|
|
1632
|
-
});
|
|
1633
|
-
log.info("dropping dm (not allowlisted)", {
|
|
1634
|
-
sender: senderId,
|
|
1635
|
-
label: senderName,
|
|
1636
|
-
dmPolicy,
|
|
1637
|
-
reason: access.reason,
|
|
1638
|
-
allowlistMatch: formatAllowlistMatchMeta(allowMatch)
|
|
1639
|
-
});
|
|
1640
|
-
return;
|
|
1641
|
-
}
|
|
1642
|
-
if (!isDirectMessage && msteamsCfg) {
|
|
1643
|
-
if (channelGate.allowlistConfigured && !channelGate.allowed) {
|
|
1644
|
-
log.info("dropping group message (not in team/channel allowlist)", {
|
|
1645
|
-
conversationId,
|
|
1646
|
-
teamKey: channelGate.teamKey ?? "none",
|
|
1647
|
-
channelKey: channelGate.channelKey ?? "none",
|
|
1648
|
-
channelMatchKey: channelGate.channelMatchKey ?? "none",
|
|
1649
|
-
channelMatchSource: channelGate.channelMatchSource ?? "none"
|
|
1650
|
-
});
|
|
1651
|
-
log.debug?.("dropping group message (not in team/channel allowlist)", {
|
|
1652
|
-
conversationId,
|
|
1653
|
-
teamKey: channelGate.teamKey ?? "none",
|
|
1654
|
-
channelKey: channelGate.channelKey ?? "none",
|
|
1655
|
-
channelMatchKey: channelGate.channelMatchKey ?? "none",
|
|
1656
|
-
channelMatchSource: channelGate.channelMatchSource ?? "none"
|
|
1657
|
-
});
|
|
1658
|
-
return;
|
|
1659
|
-
}
|
|
1660
|
-
const senderGroupAccess = evaluateSenderGroupAccessForPolicy({
|
|
1661
|
-
groupPolicy,
|
|
1662
|
-
groupAllowFrom: effectiveGroupAllowFrom,
|
|
1663
|
-
senderId,
|
|
1664
|
-
isSenderAllowed: (_senderId, allowFrom) => resolveMSTeamsAllowlistMatch({
|
|
1665
|
-
allowFrom,
|
|
1666
|
-
senderId,
|
|
1667
|
-
senderName,
|
|
1668
|
-
allowNameMatching
|
|
1669
|
-
}).allowed
|
|
1670
|
-
});
|
|
1671
|
-
if (!senderGroupAccess.allowed && senderGroupAccess.reason === "disabled") {
|
|
1672
|
-
log.info("dropping group message (groupPolicy: disabled)", { conversationId });
|
|
1673
|
-
log.debug?.("dropping group message (groupPolicy: disabled)", { conversationId });
|
|
1674
|
-
return;
|
|
1675
|
-
}
|
|
1676
|
-
if (!senderGroupAccess.allowed && senderGroupAccess.reason === "empty_allowlist") {
|
|
1677
|
-
log.info("dropping group message (groupPolicy: allowlist, no allowlist)", { conversationId });
|
|
1678
|
-
log.debug?.("dropping group message (groupPolicy: allowlist, no allowlist)", { conversationId });
|
|
1679
|
-
return;
|
|
1680
|
-
}
|
|
1681
|
-
if (!senderGroupAccess.allowed && senderGroupAccess.reason === "sender_not_allowlisted") {
|
|
1682
|
-
const allowMatch = resolveMSTeamsAllowlistMatch({
|
|
1683
|
-
allowFrom: effectiveGroupAllowFrom,
|
|
1684
|
-
senderId,
|
|
1685
|
-
senderName,
|
|
1686
|
-
allowNameMatching
|
|
1687
|
-
});
|
|
1688
|
-
log.debug?.("dropping group message (not in groupAllowFrom)", {
|
|
1689
|
-
sender: senderId,
|
|
1690
|
-
label: senderName,
|
|
1691
|
-
allowlistMatch: formatAllowlistMatchMeta(allowMatch)
|
|
1692
|
-
});
|
|
1693
|
-
log.info("dropping group message (not in groupAllowFrom)", {
|
|
1694
|
-
sender: senderId,
|
|
1695
|
-
label: senderName,
|
|
1696
|
-
allowlistMatch: formatAllowlistMatchMeta(allowMatch)
|
|
1697
|
-
});
|
|
1698
|
-
return;
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
const commandDmAllowFrom = isDirectMessage ? effectiveDmAllowFrom : configuredDmAllowFrom;
|
|
1702
|
-
const ownerAllowedForCommands = isMSTeamsGroupAllowed({
|
|
1703
|
-
groupPolicy: "allowlist",
|
|
1704
|
-
allowFrom: commandDmAllowFrom,
|
|
1705
|
-
senderId,
|
|
1706
|
-
senderName,
|
|
1707
|
-
allowNameMatching
|
|
1708
|
-
});
|
|
1709
|
-
const groupAllowedForCommands = isMSTeamsGroupAllowed({
|
|
1710
|
-
groupPolicy: "allowlist",
|
|
1711
|
-
allowFrom: effectiveGroupAllowFrom,
|
|
1712
|
-
senderId,
|
|
1713
|
-
senderName,
|
|
1714
|
-
allowNameMatching
|
|
1715
|
-
});
|
|
1716
|
-
const { commandAuthorized, shouldBlock } = resolveDualTextControlCommandGate({
|
|
1717
|
-
useAccessGroups,
|
|
1718
|
-
primaryConfigured: commandDmAllowFrom.length > 0,
|
|
1719
|
-
primaryAllowed: ownerAllowedForCommands,
|
|
1720
|
-
secondaryConfigured: effectiveGroupAllowFrom.length > 0,
|
|
1721
|
-
secondaryAllowed: groupAllowedForCommands,
|
|
1722
|
-
hasControlCommand: core.channel.text.hasControlCommand(text, cfg)
|
|
1723
|
-
});
|
|
1724
|
-
if (shouldBlock) {
|
|
1725
|
-
logInboundDrop({
|
|
1726
|
-
log: logVerboseMessage,
|
|
1727
|
-
channel: "msteams",
|
|
1728
|
-
reason: "control command (unauthorized)",
|
|
1729
|
-
target: senderId
|
|
1730
|
-
});
|
|
1731
|
-
return;
|
|
1732
|
-
}
|
|
1733
|
-
const clientInfo = activity.entities?.find((e) => e.type === "clientInfo");
|
|
1734
|
-
const agent = activity.recipient;
|
|
1735
|
-
const conversationRef = {
|
|
1736
|
-
activityId: activity.id,
|
|
1737
|
-
user: {
|
|
1738
|
-
id: from.id,
|
|
1739
|
-
name: from.name,
|
|
1740
|
-
aadObjectId: from.aadObjectId
|
|
1741
|
-
},
|
|
1742
|
-
agent,
|
|
1743
|
-
bot: agent ? {
|
|
1744
|
-
id: agent.id,
|
|
1745
|
-
name: agent.name
|
|
1746
|
-
} : void 0,
|
|
1747
|
-
conversation: {
|
|
1748
|
-
id: conversationId,
|
|
1749
|
-
conversationType,
|
|
1750
|
-
tenantId: conversation?.tenantId
|
|
1751
|
-
},
|
|
1752
|
-
teamId,
|
|
1753
|
-
channelId: activity.channelId,
|
|
1754
|
-
serviceUrl: activity.serviceUrl,
|
|
1755
|
-
locale: activity.locale,
|
|
1756
|
-
...clientInfo?.timezone ? { timezone: clientInfo.timezone } : {}
|
|
1757
|
-
};
|
|
1758
|
-
conversationStore.upsert(conversationId, conversationRef).catch((err) => {
|
|
1759
|
-
log.debug?.("failed to save conversation reference", { error: formatUnknownError(err) });
|
|
1760
|
-
});
|
|
1761
|
-
const pollVote = extractMSTeamsPollVote(activity);
|
|
1762
|
-
if (pollVote) {
|
|
1763
|
-
try {
|
|
1764
|
-
if (!await pollStore.recordVote({
|
|
1765
|
-
pollId: pollVote.pollId,
|
|
1766
|
-
voterId: senderId,
|
|
1767
|
-
selections: pollVote.selections
|
|
1768
|
-
})) log.debug?.("poll vote ignored (poll not found)", { pollId: pollVote.pollId });
|
|
1769
|
-
else log.info("recorded poll vote", {
|
|
1770
|
-
pollId: pollVote.pollId,
|
|
1771
|
-
voter: senderId,
|
|
1772
|
-
selections: pollVote.selections
|
|
1773
|
-
});
|
|
1774
|
-
} catch (err) {
|
|
1775
|
-
log.error("failed to record poll vote", {
|
|
1776
|
-
pollId: pollVote.pollId,
|
|
1777
|
-
error: formatUnknownError(err)
|
|
1778
|
-
});
|
|
1779
|
-
}
|
|
1780
|
-
return;
|
|
1781
|
-
}
|
|
1782
|
-
if (!rawBody) {
|
|
1783
|
-
log.debug?.("skipping empty message after stripping mentions");
|
|
1784
|
-
return;
|
|
1785
|
-
}
|
|
1786
|
-
const teamsFrom = isDirectMessage ? `msteams:${senderId}` : isChannel ? `msteams:channel:${conversationId}` : `msteams:group:${conversationId}`;
|
|
1787
|
-
const teamsTo = isDirectMessage ? `user:${senderId}` : `conversation:${conversationId}`;
|
|
1788
|
-
const route = core.channel.routing.resolveAgentRoute({
|
|
1789
|
-
cfg,
|
|
1790
|
-
channel: "msteams",
|
|
1791
|
-
teamId,
|
|
1792
|
-
peer: {
|
|
1793
|
-
kind: isDirectMessage ? "direct" : isChannel ? "channel" : "group",
|
|
1794
|
-
id: isDirectMessage ? senderId : conversationId
|
|
1795
|
-
}
|
|
1796
|
-
});
|
|
1797
|
-
const preview = rawBody.replace(/\s+/g, " ").slice(0, 160);
|
|
1798
|
-
const inboundLabel = isDirectMessage ? `Teams DM from ${senderName}` : `Teams message in ${conversationType} from ${senderName}`;
|
|
1799
|
-
core.system.enqueueSystemEvent(`${inboundLabel}: ${preview}`, {
|
|
1800
|
-
sessionKey: route.sessionKey,
|
|
1801
|
-
contextKey: `msteams:message:${conversationId}:${activity.id ?? "unknown"}`
|
|
1802
|
-
});
|
|
1803
|
-
const channelId = conversationId;
|
|
1804
|
-
const { teamConfig, channelConfig } = channelGate;
|
|
1805
|
-
const { requireMention, replyStyle } = resolveMSTeamsReplyPolicy({
|
|
1806
|
-
isDirectMessage,
|
|
1807
|
-
globalConfig: msteamsCfg,
|
|
1808
|
-
teamConfig,
|
|
1809
|
-
channelConfig
|
|
1810
|
-
});
|
|
1811
|
-
const timestamp = parseMSTeamsActivityTimestamp(activity.timestamp);
|
|
1812
|
-
if (!isDirectMessage) {
|
|
1813
|
-
const mentionGate = resolveMentionGating({
|
|
1814
|
-
requireMention: Boolean(requireMention),
|
|
1815
|
-
canDetectMention: true,
|
|
1816
|
-
wasMentioned: params.wasMentioned,
|
|
1817
|
-
implicitMention: params.implicitMention,
|
|
1818
|
-
shouldBypassMention: false
|
|
1819
|
-
});
|
|
1820
|
-
const mentioned = mentionGate.effectiveWasMentioned;
|
|
1821
|
-
if (requireMention && mentionGate.shouldSkip) {
|
|
1822
|
-
log.debug?.("skipping message (mention required)", {
|
|
1823
|
-
teamId,
|
|
1824
|
-
channelId,
|
|
1825
|
-
requireMention,
|
|
1826
|
-
mentioned
|
|
1827
|
-
});
|
|
1828
|
-
recordPendingHistoryEntryIfEnabled({
|
|
1829
|
-
historyMap: conversationHistories,
|
|
1830
|
-
historyKey: conversationId,
|
|
1831
|
-
limit: historyLimit,
|
|
1832
|
-
entry: {
|
|
1833
|
-
sender: senderName,
|
|
1834
|
-
body: rawBody,
|
|
1835
|
-
timestamp: timestamp?.getTime(),
|
|
1836
|
-
messageId: activity.id ?? void 0
|
|
1837
|
-
}
|
|
1838
|
-
});
|
|
1839
|
-
return;
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
const graphConversationId = translateMSTeamsDmConversationIdForGraph({
|
|
1843
|
-
isDirectMessage,
|
|
1844
|
-
conversationId,
|
|
1845
|
-
aadObjectId: from.aadObjectId,
|
|
1846
|
-
appId
|
|
1847
|
-
});
|
|
1848
|
-
const mediaPayload = buildMSTeamsMediaPayload(await resolveMSTeamsInboundMedia({
|
|
1849
|
-
attachments,
|
|
1850
|
-
htmlSummary: htmlSummary ?? void 0,
|
|
1851
|
-
maxBytes: mediaMaxBytes,
|
|
1852
|
-
tokenProvider,
|
|
1853
|
-
allowHosts: msteamsCfg?.mediaAllowHosts,
|
|
1854
|
-
authAllowHosts: msteamsCfg?.mediaAuthAllowHosts,
|
|
1855
|
-
conversationType,
|
|
1856
|
-
conversationId: graphConversationId,
|
|
1857
|
-
conversationMessageId: conversationMessageId ?? void 0,
|
|
1858
|
-
activity: {
|
|
1859
|
-
id: activity.id,
|
|
1860
|
-
replyToId: activity.replyToId,
|
|
1861
|
-
channelData: activity.channelData
|
|
1862
|
-
},
|
|
1863
|
-
log,
|
|
1864
|
-
preserveFilenames: cfg.media?.preserveFilenames
|
|
1865
|
-
}));
|
|
1866
|
-
let threadContext;
|
|
1867
|
-
if (activity.replyToId && isChannel && teamId) try {
|
|
1868
|
-
const graphToken = await tokenProvider.getAccessToken("https://graph.microsoft.com");
|
|
1869
|
-
const groupId = await resolveTeamGroupId(graphToken, teamId);
|
|
1870
|
-
const [parentMsg, replies] = await Promise.all([fetchChannelMessage(graphToken, groupId, conversationId, activity.replyToId), fetchThreadReplies(graphToken, groupId, conversationId, activity.replyToId)]);
|
|
1871
|
-
const allMessages = parentMsg ? [parentMsg, ...replies] : replies;
|
|
1872
|
-
quoteSenderId = parentMsg?.from?.user?.id ?? parentMsg?.from?.application?.id ?? void 0;
|
|
1873
|
-
quoteSenderName = parentMsg?.from?.user?.displayName ?? parentMsg?.from?.application?.displayName ?? quoteInfo?.sender;
|
|
1874
|
-
const { items: threadMessages } = filterSupplementalContextItems({
|
|
1875
|
-
items: allMessages,
|
|
1876
|
-
mode: contextVisibilityMode,
|
|
1877
|
-
kind: "thread",
|
|
1878
|
-
isSenderAllowed: (msg) => groupPolicy === "allowlist" ? resolveMSTeamsAllowlistMatch({
|
|
1879
|
-
allowFrom: effectiveGroupAllowFrom,
|
|
1880
|
-
senderId: msg.from?.user?.id ?? "",
|
|
1881
|
-
senderName: msg.from?.user?.displayName,
|
|
1882
|
-
allowNameMatching
|
|
1883
|
-
}).allowed : true
|
|
1884
|
-
});
|
|
1885
|
-
const formatted = formatThreadContext(threadMessages, activity.id);
|
|
1886
|
-
if (formatted) threadContext = formatted;
|
|
1887
|
-
} catch (err) {
|
|
1888
|
-
log.debug?.("failed to fetch thread history", { error: formatUnknownError(err) });
|
|
1889
|
-
}
|
|
1890
|
-
quoteSenderName ??= quoteInfo?.sender;
|
|
1891
|
-
const envelopeFrom = isDirectMessage ? senderName : conversationType;
|
|
1892
|
-
const { storePath, envelopeOptions, previousTimestamp } = resolveInboundSessionEnvelopeContext({
|
|
1893
|
-
cfg,
|
|
1894
|
-
agentId: route.agentId,
|
|
1895
|
-
sessionKey: route.sessionKey
|
|
1896
|
-
});
|
|
1897
|
-
let combinedBody = core.channel.reply.formatAgentEnvelope({
|
|
1898
|
-
channel: "Teams",
|
|
1899
|
-
from: envelopeFrom,
|
|
1900
|
-
timestamp,
|
|
1901
|
-
previousTimestamp,
|
|
1902
|
-
envelope: envelopeOptions,
|
|
1903
|
-
body: rawBody
|
|
1904
|
-
});
|
|
1905
|
-
const isRoomish = !isDirectMessage;
|
|
1906
|
-
const historyKey = isRoomish ? conversationId : void 0;
|
|
1907
|
-
if (isRoomish && historyKey) combinedBody = buildPendingHistoryContextFromMap({
|
|
1908
|
-
historyMap: conversationHistories,
|
|
1909
|
-
historyKey,
|
|
1910
|
-
limit: historyLimit,
|
|
1911
|
-
currentMessage: combinedBody,
|
|
1912
|
-
formatEntry: (entry) => core.channel.reply.formatAgentEnvelope({
|
|
1913
|
-
channel: "Teams",
|
|
1914
|
-
from: conversationType,
|
|
1915
|
-
timestamp: entry.timestamp,
|
|
1916
|
-
body: `${entry.sender}: ${entry.body}${entry.messageId ? ` [id:${entry.messageId}]` : ""}`,
|
|
1917
|
-
envelope: envelopeOptions
|
|
1918
|
-
})
|
|
1919
|
-
});
|
|
1920
|
-
const inboundHistory = isRoomish && historyKey && historyLimit > 0 ? (conversationHistories.get(historyKey) ?? []).map((entry) => ({
|
|
1921
|
-
sender: entry.sender,
|
|
1922
|
-
body: entry.body,
|
|
1923
|
-
timestamp: entry.timestamp
|
|
1924
|
-
})) : void 0;
|
|
1925
|
-
const commandBody = text.trim();
|
|
1926
|
-
const quoteSenderAllowed = quoteInfo && quoteInfo.sender ? !isChannel || groupPolicy !== "allowlist" ? true : resolveMSTeamsAllowlistMatch({
|
|
1927
|
-
allowFrom: effectiveGroupAllowFrom,
|
|
1928
|
-
senderId: quoteSenderId ?? "",
|
|
1929
|
-
senderName: quoteSenderName,
|
|
1930
|
-
allowNameMatching
|
|
1931
|
-
}).allowed : true;
|
|
1932
|
-
const includeQuoteContext = quoteInfo && shouldIncludeSupplementalContext({
|
|
1933
|
-
mode: contextVisibilityMode,
|
|
1934
|
-
kind: "quote",
|
|
1935
|
-
senderAllowed: quoteSenderAllowed
|
|
1936
|
-
});
|
|
1937
|
-
const bodyForAgent = threadContext ? `[Thread history]\n${threadContext}\n[/Thread history]\n\n${rawBody}` : rawBody;
|
|
1938
|
-
const ctxPayload = core.channel.reply.finalizeInboundContext({
|
|
1939
|
-
Body: combinedBody,
|
|
1940
|
-
BodyForAgent: bodyForAgent,
|
|
1941
|
-
InboundHistory: inboundHistory,
|
|
1942
|
-
RawBody: rawBody,
|
|
1943
|
-
CommandBody: commandBody,
|
|
1944
|
-
BodyForCommands: commandBody,
|
|
1945
|
-
From: teamsFrom,
|
|
1946
|
-
To: teamsTo,
|
|
1947
|
-
SessionKey: route.sessionKey,
|
|
1948
|
-
AccountId: route.accountId,
|
|
1949
|
-
ChatType: isDirectMessage ? "direct" : isChannel ? "channel" : "group",
|
|
1950
|
-
ConversationLabel: envelopeFrom,
|
|
1951
|
-
GroupSubject: !isDirectMessage ? conversationType : void 0,
|
|
1952
|
-
SenderName: senderName,
|
|
1953
|
-
SenderId: senderId,
|
|
1954
|
-
Provider: "msteams",
|
|
1955
|
-
Surface: "msteams",
|
|
1956
|
-
MessageSid: activity.id,
|
|
1957
|
-
Timestamp: timestamp?.getTime() ?? Date.now(),
|
|
1958
|
-
WasMentioned: isDirectMessage || params.wasMentioned || params.implicitMention,
|
|
1959
|
-
CommandAuthorized: commandAuthorized,
|
|
1960
|
-
OriginatingChannel: "msteams",
|
|
1961
|
-
OriginatingTo: teamsTo,
|
|
1962
|
-
ReplyToId: activity.replyToId ?? void 0,
|
|
1963
|
-
ReplyToBody: includeQuoteContext ? quoteInfo?.body : void 0,
|
|
1964
|
-
ReplyToSender: includeQuoteContext ? quoteInfo?.sender : void 0,
|
|
1965
|
-
ReplyToIsQuote: quoteInfo ? true : void 0,
|
|
1966
|
-
...mediaPayload
|
|
1967
|
-
});
|
|
1968
|
-
await core.channel.session.recordInboundSession({
|
|
1969
|
-
storePath,
|
|
1970
|
-
sessionKey: ctxPayload.SessionKey ?? route.sessionKey,
|
|
1971
|
-
ctx: ctxPayload,
|
|
1972
|
-
onRecordError: (err) => {
|
|
1973
|
-
logVerboseMessage(`msteams: failed updating session meta: ${formatUnknownError(err)}`);
|
|
1974
|
-
}
|
|
1975
|
-
});
|
|
1976
|
-
logVerboseMessage(`msteams inbound: from=${ctxPayload.From} preview="${preview}"`);
|
|
1977
|
-
const sharePointSiteId = msteamsCfg?.sharePointSiteId;
|
|
1978
|
-
const { dispatcher, replyOptions, markDispatchIdle } = createMSTeamsReplyDispatcher({
|
|
1979
|
-
cfg,
|
|
1980
|
-
agentId: route.agentId,
|
|
1981
|
-
accountId: route.accountId,
|
|
1982
|
-
runtime,
|
|
1983
|
-
log,
|
|
1984
|
-
adapter,
|
|
1985
|
-
appId,
|
|
1986
|
-
conversationRef,
|
|
1987
|
-
context,
|
|
1988
|
-
replyStyle,
|
|
1989
|
-
textLimit,
|
|
1990
|
-
onSentMessageIds: (ids) => {
|
|
1991
|
-
for (const id of ids) recordMSTeamsSentMessage(conversationId, id);
|
|
1992
|
-
},
|
|
1993
|
-
tokenProvider,
|
|
1994
|
-
sharePointSiteId
|
|
1995
|
-
});
|
|
1996
|
-
const senderTimezone = clientInfo?.timezone || conversationRef.timezone;
|
|
1997
|
-
const configOverride = senderTimezone && !cfg.agents?.defaults?.userTimezone ? { agents: { defaults: {
|
|
1998
|
-
...cfg.agents?.defaults,
|
|
1999
|
-
userTimezone: senderTimezone
|
|
2000
|
-
} } } : void 0;
|
|
2001
|
-
log.info("dispatching to agent", { sessionKey: route.sessionKey });
|
|
2002
|
-
try {
|
|
2003
|
-
const { queuedFinal, counts } = await dispatchReplyFromConfigWithSettledDispatcher({
|
|
2004
|
-
cfg,
|
|
2005
|
-
ctxPayload,
|
|
2006
|
-
dispatcher,
|
|
2007
|
-
onSettled: () => markDispatchIdle(),
|
|
2008
|
-
replyOptions,
|
|
2009
|
-
configOverride
|
|
2010
|
-
});
|
|
2011
|
-
log.info("dispatch complete", {
|
|
2012
|
-
queuedFinal,
|
|
2013
|
-
counts
|
|
2014
|
-
});
|
|
2015
|
-
if (!queuedFinal) {
|
|
2016
|
-
if (isRoomish && historyKey) clearHistoryEntriesIfEnabled({
|
|
2017
|
-
historyMap: conversationHistories,
|
|
2018
|
-
historyKey,
|
|
2019
|
-
limit: historyLimit
|
|
2020
|
-
});
|
|
2021
|
-
return;
|
|
2022
|
-
}
|
|
2023
|
-
const finalCount = counts.final;
|
|
2024
|
-
logVerboseMessage(`msteams: delivered ${finalCount} reply${finalCount === 1 ? "" : "ies"} to ${teamsTo}`);
|
|
2025
|
-
if (isRoomish && historyKey) clearHistoryEntriesIfEnabled({
|
|
2026
|
-
historyMap: conversationHistories,
|
|
2027
|
-
historyKey,
|
|
2028
|
-
limit: historyLimit
|
|
2029
|
-
});
|
|
2030
|
-
} catch (err) {
|
|
2031
|
-
log.error("dispatch failed", { error: formatUnknownError(err) });
|
|
2032
|
-
runtime.error?.(`msteams dispatch failed: ${formatUnknownError(err)}`);
|
|
2033
|
-
try {
|
|
2034
|
-
await context.sendActivity("⚠️ Something went wrong. Please try again.");
|
|
2035
|
-
} catch {}
|
|
2036
|
-
}
|
|
2037
|
-
};
|
|
2038
|
-
const inboundDebouncer = core.channel.debounce.createInboundDebouncer({
|
|
2039
|
-
debounceMs: inboundDebounceMs,
|
|
2040
|
-
buildKey: (entry) => {
|
|
2041
|
-
const conversationId = normalizeMSTeamsConversationId(entry.context.activity.conversation?.id ?? "");
|
|
2042
|
-
const senderId = entry.context.activity.from?.aadObjectId ?? entry.context.activity.from?.id ?? "";
|
|
2043
|
-
if (!senderId || !conversationId) return null;
|
|
2044
|
-
return `msteams:${appId}:${conversationId}:${senderId}`;
|
|
2045
|
-
},
|
|
2046
|
-
shouldDebounce: (entry) => {
|
|
2047
|
-
if (!entry.text.trim()) return false;
|
|
2048
|
-
if (entry.attachments.length > 0) return false;
|
|
2049
|
-
return !core.channel.text.hasControlCommand(entry.text, cfg);
|
|
2050
|
-
},
|
|
2051
|
-
onFlush: async (entries) => {
|
|
2052
|
-
const last = entries.at(-1);
|
|
2053
|
-
if (!last) return;
|
|
2054
|
-
if (entries.length === 1) {
|
|
2055
|
-
await handleTeamsMessageNow(last);
|
|
2056
|
-
return;
|
|
2057
|
-
}
|
|
2058
|
-
const combinedText = entries.map((entry) => entry.text).filter(Boolean).join("\n");
|
|
2059
|
-
if (!combinedText.trim()) return;
|
|
2060
|
-
const combinedRawText = entries.map((entry) => entry.rawText).filter(Boolean).join("\n");
|
|
2061
|
-
const wasMentioned = entries.some((entry) => entry.wasMentioned);
|
|
2062
|
-
const implicitMention = entries.some((entry) => entry.implicitMention);
|
|
2063
|
-
await handleTeamsMessageNow({
|
|
2064
|
-
context: last.context,
|
|
2065
|
-
rawText: combinedRawText,
|
|
2066
|
-
text: combinedText,
|
|
2067
|
-
attachments: [],
|
|
2068
|
-
wasMentioned,
|
|
2069
|
-
implicitMention
|
|
2070
|
-
});
|
|
2071
|
-
},
|
|
2072
|
-
onError: (err) => {
|
|
2073
|
-
runtime.error?.(`msteams debounce flush failed: ${formatUnknownError(err)}`);
|
|
2074
|
-
}
|
|
2075
|
-
});
|
|
2076
|
-
return async function handleTeamsMessage(context) {
|
|
2077
|
-
const activity = context.activity;
|
|
2078
|
-
const rawText = activity.text?.trim() ?? "";
|
|
2079
|
-
const text = stripMSTeamsMentionTags(rawText);
|
|
2080
|
-
const attachments = Array.isArray(activity.attachments) ? activity.attachments : [];
|
|
2081
|
-
const wasMentioned = wasMSTeamsBotMentioned(activity);
|
|
2082
|
-
const conversationId = normalizeMSTeamsConversationId(activity.conversation?.id ?? "");
|
|
2083
|
-
const replyToId = activity.replyToId ?? void 0;
|
|
2084
|
-
const implicitMention = Boolean(conversationId && replyToId && wasMSTeamsMessageSent(conversationId, replyToId));
|
|
2085
|
-
await inboundDebouncer.enqueue({
|
|
2086
|
-
context,
|
|
2087
|
-
rawText,
|
|
2088
|
-
text,
|
|
2089
|
-
attachments,
|
|
2090
|
-
wasMentioned,
|
|
2091
|
-
implicitMention
|
|
2092
|
-
});
|
|
2093
|
-
};
|
|
2094
|
-
}
|
|
2095
|
-
//#endregion
|
|
2096
|
-
//#region extensions/msteams/src/welcome-card.ts
|
|
2097
|
-
/**
|
|
2098
|
-
* Builds an Adaptive Card for welcoming users when the bot is added to a conversation.
|
|
2099
|
-
*/
|
|
2100
|
-
const DEFAULT_PROMPT_STARTERS = [
|
|
2101
|
-
"What can you do?",
|
|
2102
|
-
"Summarize my last meeting",
|
|
2103
|
-
"Help me draft an email"
|
|
2104
|
-
];
|
|
2105
|
-
/**
|
|
2106
|
-
* Build a welcome Adaptive Card for 1:1 personal chats.
|
|
2107
|
-
*/
|
|
2108
|
-
function buildWelcomeCard(options) {
|
|
2109
|
-
const botName = options?.botName || "OpenClaw";
|
|
2110
|
-
const starters = options?.promptStarters?.length ? options.promptStarters : DEFAULT_PROMPT_STARTERS;
|
|
2111
|
-
return {
|
|
2112
|
-
type: "AdaptiveCard",
|
|
2113
|
-
version: "1.5",
|
|
2114
|
-
body: [{
|
|
2115
|
-
type: "TextBlock",
|
|
2116
|
-
text: `Hi! I'm ${botName}.`,
|
|
2117
|
-
weight: "bolder",
|
|
2118
|
-
size: "medium"
|
|
2119
|
-
}, {
|
|
2120
|
-
type: "TextBlock",
|
|
2121
|
-
text: "I can help you with questions, tasks, and more. Here are some things to try:",
|
|
2122
|
-
wrap: true
|
|
2123
|
-
}],
|
|
2124
|
-
actions: starters.map((label) => ({
|
|
2125
|
-
type: "Action.Submit",
|
|
2126
|
-
title: label,
|
|
2127
|
-
data: { msteams: {
|
|
2128
|
-
type: "imBack",
|
|
2129
|
-
value: label
|
|
2130
|
-
} }
|
|
2131
|
-
}))
|
|
2132
|
-
};
|
|
2133
|
-
}
|
|
2134
|
-
/**
|
|
2135
|
-
* Build a brief welcome message for group chats (when the bot is @mentioned).
|
|
2136
|
-
*/
|
|
2137
|
-
function buildGroupWelcomeText(botName) {
|
|
2138
|
-
const name = botName || "OpenClaw";
|
|
2139
|
-
return `Hi! I'm ${name}. Mention me with @${name} to get started.`;
|
|
2140
|
-
}
|
|
2141
|
-
//#endregion
|
|
2142
|
-
//#region extensions/msteams/src/monitor-handler.ts
|
|
2143
|
-
async function isFeedbackInvokeAuthorized(context, deps) {
|
|
2144
|
-
const resolved = await resolveMSTeamsSenderAccess({
|
|
2145
|
-
cfg: deps.cfg,
|
|
2146
|
-
activity: context.activity
|
|
2147
|
-
});
|
|
2148
|
-
const { msteamsCfg, isDirectMessage, conversationId, senderId } = resolved;
|
|
2149
|
-
if (!msteamsCfg) return true;
|
|
2150
|
-
if (isDirectMessage && resolved.access.decision !== "allow") {
|
|
2151
|
-
deps.log.debug?.("dropping feedback invoke (dm sender not allowlisted)", {
|
|
2152
|
-
sender: senderId,
|
|
2153
|
-
conversationId
|
|
2154
|
-
});
|
|
2155
|
-
return false;
|
|
2156
|
-
}
|
|
2157
|
-
if (!isDirectMessage && resolved.channelGate.allowlistConfigured && !resolved.channelGate.allowed) {
|
|
2158
|
-
deps.log.debug?.("dropping feedback invoke (not in team/channel allowlist)", {
|
|
2159
|
-
conversationId,
|
|
2160
|
-
teamKey: resolved.channelGate.teamKey ?? "none",
|
|
2161
|
-
channelKey: resolved.channelGate.channelKey ?? "none"
|
|
2162
|
-
});
|
|
2163
|
-
return false;
|
|
2164
|
-
}
|
|
2165
|
-
if (!isDirectMessage && !resolved.senderGroupAccess.allowed) {
|
|
2166
|
-
deps.log.debug?.("dropping feedback invoke (group sender not allowlisted)", {
|
|
2167
|
-
sender: senderId,
|
|
2168
|
-
conversationId
|
|
2169
|
-
});
|
|
2170
|
-
return false;
|
|
2171
|
-
}
|
|
2172
|
-
return true;
|
|
2173
|
-
}
|
|
2174
|
-
/**
|
|
2175
|
-
* Handle fileConsent/invoke activities for large file uploads.
|
|
2176
|
-
*/
|
|
2177
|
-
async function handleFileConsentInvoke(context, log) {
|
|
2178
|
-
const expiredUploadMessage = "The file upload request has expired. Please try sending the file again.";
|
|
2179
|
-
const activity = context.activity;
|
|
2180
|
-
if (activity.type !== "invoke" || activity.name !== "fileConsent/invoke") return false;
|
|
2181
|
-
const consentResponse = parseFileConsentInvoke(activity);
|
|
2182
|
-
if (!consentResponse) {
|
|
2183
|
-
log.debug?.("invalid file consent invoke", { value: activity.value });
|
|
2184
|
-
return false;
|
|
2185
|
-
}
|
|
2186
|
-
const uploadId = typeof consentResponse.context?.uploadId === "string" ? consentResponse.context.uploadId : void 0;
|
|
2187
|
-
const pendingFile = getPendingUpload(uploadId);
|
|
2188
|
-
if (pendingFile) {
|
|
2189
|
-
const pendingConversationId = normalizeMSTeamsConversationId(pendingFile.conversationId);
|
|
2190
|
-
const invokeConversationId = normalizeMSTeamsConversationId(activity.conversation?.id ?? "");
|
|
2191
|
-
if (!invokeConversationId || pendingConversationId !== invokeConversationId) {
|
|
2192
|
-
log.info("file consent conversation mismatch", {
|
|
2193
|
-
uploadId,
|
|
2194
|
-
expectedConversationId: pendingConversationId,
|
|
2195
|
-
receivedConversationId: invokeConversationId || void 0
|
|
2196
|
-
});
|
|
2197
|
-
if (consentResponse.action === "accept") await context.sendActivity(expiredUploadMessage);
|
|
2198
|
-
return true;
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
if (consentResponse.action === "accept" && consentResponse.uploadInfo) if (pendingFile) {
|
|
2202
|
-
log.debug?.("user accepted file consent, uploading", {
|
|
2203
|
-
uploadId,
|
|
2204
|
-
filename: pendingFile.filename,
|
|
2205
|
-
size: pendingFile.buffer.length
|
|
2206
|
-
});
|
|
2207
|
-
try {
|
|
2208
|
-
await uploadToConsentUrl({
|
|
2209
|
-
url: consentResponse.uploadInfo.uploadUrl,
|
|
2210
|
-
buffer: pendingFile.buffer,
|
|
2211
|
-
contentType: pendingFile.contentType
|
|
2212
|
-
});
|
|
2213
|
-
const fileInfoCard = buildFileInfoCard({
|
|
2214
|
-
filename: consentResponse.uploadInfo.name,
|
|
2215
|
-
contentUrl: consentResponse.uploadInfo.contentUrl,
|
|
2216
|
-
uniqueId: consentResponse.uploadInfo.uniqueId,
|
|
2217
|
-
fileType: consentResponse.uploadInfo.fileType
|
|
2218
|
-
});
|
|
2219
|
-
await context.sendActivity({
|
|
2220
|
-
type: "message",
|
|
2221
|
-
attachments: [fileInfoCard]
|
|
2222
|
-
});
|
|
2223
|
-
log.info("file upload complete", {
|
|
2224
|
-
uploadId,
|
|
2225
|
-
filename: consentResponse.uploadInfo.name,
|
|
2226
|
-
uniqueId: consentResponse.uploadInfo.uniqueId
|
|
2227
|
-
});
|
|
2228
|
-
} catch (err) {
|
|
2229
|
-
log.error("file upload failed", {
|
|
2230
|
-
uploadId,
|
|
2231
|
-
error: formatUnknownError(err)
|
|
2232
|
-
});
|
|
2233
|
-
await context.sendActivity("File upload failed. Please try again.");
|
|
2234
|
-
} finally {
|
|
2235
|
-
removePendingUpload(uploadId);
|
|
2236
|
-
}
|
|
2237
|
-
} else {
|
|
2238
|
-
log.debug?.("pending file not found for consent", { uploadId });
|
|
2239
|
-
await context.sendActivity(expiredUploadMessage);
|
|
2240
|
-
}
|
|
2241
|
-
else {
|
|
2242
|
-
log.debug?.("user declined file consent", { uploadId });
|
|
2243
|
-
removePendingUpload(uploadId);
|
|
2244
|
-
}
|
|
2245
|
-
return true;
|
|
2246
|
-
}
|
|
2247
|
-
/**
|
|
2248
|
-
* Parse and handle feedback invoke activities (thumbs up/down).
|
|
2249
|
-
* Returns true if the activity was a feedback invoke, false otherwise.
|
|
2250
|
-
*/
|
|
2251
|
-
async function handleFeedbackInvoke(context, deps) {
|
|
2252
|
-
const activity = context.activity;
|
|
2253
|
-
const value = activity.value;
|
|
2254
|
-
if (!value) return false;
|
|
2255
|
-
if (value.actionName !== "feedback") return false;
|
|
2256
|
-
const reaction = value.actionValue?.reaction;
|
|
2257
|
-
if (reaction !== "like" && reaction !== "dislike") {
|
|
2258
|
-
deps.log.debug?.("ignoring feedback with unknown reaction", { reaction });
|
|
2259
|
-
return false;
|
|
2260
|
-
}
|
|
2261
|
-
const msteamsCfg = deps.cfg.channels?.msteams;
|
|
2262
|
-
if (msteamsCfg?.feedbackEnabled === false) {
|
|
2263
|
-
deps.log.debug?.("feedback handling disabled");
|
|
2264
|
-
return true;
|
|
2265
|
-
}
|
|
2266
|
-
if (!await isFeedbackInvokeAuthorized(context, deps)) return true;
|
|
2267
|
-
let userComment;
|
|
2268
|
-
if (value.actionValue?.feedback) try {
|
|
2269
|
-
userComment = JSON.parse(value.actionValue.feedback).feedbackText || void 0;
|
|
2270
|
-
} catch {}
|
|
2271
|
-
const conversationId = normalizeMSTeamsConversationId(activity.conversation?.id ?? "unknown");
|
|
2272
|
-
const senderId = activity.from?.aadObjectId ?? activity.from?.id ?? "unknown";
|
|
2273
|
-
const messageId = value.replyToId ?? activity.replyToId ?? "unknown";
|
|
2274
|
-
const isNegative = reaction === "dislike";
|
|
2275
|
-
const convType = activity.conversation?.conversationType?.toLowerCase();
|
|
2276
|
-
const isDirectMessage = convType === "personal" || !convType && !activity.conversation?.isGroup;
|
|
2277
|
-
const isChannel = convType === "channel";
|
|
2278
|
-
const core = getMSTeamsRuntime();
|
|
2279
|
-
const route = core.channel.routing.resolveAgentRoute({
|
|
2280
|
-
cfg: deps.cfg,
|
|
2281
|
-
channel: "msteams",
|
|
2282
|
-
peer: {
|
|
2283
|
-
kind: isDirectMessage ? "direct" : isChannel ? "channel" : "group",
|
|
2284
|
-
id: isDirectMessage ? senderId : conversationId
|
|
2285
|
-
}
|
|
2286
|
-
});
|
|
2287
|
-
const feedbackEvent = buildFeedbackEvent({
|
|
2288
|
-
messageId,
|
|
2289
|
-
value: isNegative ? "negative" : "positive",
|
|
2290
|
-
comment: userComment,
|
|
2291
|
-
sessionKey: route.sessionKey,
|
|
2292
|
-
agentId: route.agentId,
|
|
2293
|
-
conversationId
|
|
2294
|
-
});
|
|
2295
|
-
deps.log.info("received feedback", {
|
|
2296
|
-
value: feedbackEvent.value,
|
|
2297
|
-
messageId,
|
|
2298
|
-
conversationId,
|
|
2299
|
-
hasComment: Boolean(userComment)
|
|
2300
|
-
});
|
|
2301
|
-
try {
|
|
2302
|
-
const storePath = core.channel.session.resolveStorePath(deps.cfg.session?.store, { agentId: route.agentId });
|
|
2303
|
-
const fs = await import("node:fs/promises");
|
|
2304
|
-
const pathMod = await import("node:path");
|
|
2305
|
-
const safeKey = route.sessionKey.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
2306
|
-
const transcriptFile = pathMod.join(storePath, `${safeKey}.jsonl`);
|
|
2307
|
-
await fs.appendFile(transcriptFile, JSON.stringify(feedbackEvent) + "\n", "utf-8").catch(() => {});
|
|
2308
|
-
} catch {}
|
|
2309
|
-
const conversationRef = {
|
|
2310
|
-
activityId: activity.id,
|
|
2311
|
-
user: {
|
|
2312
|
-
id: activity.from?.id,
|
|
2313
|
-
name: activity.from?.name,
|
|
2314
|
-
aadObjectId: activity.from?.aadObjectId
|
|
2315
|
-
},
|
|
2316
|
-
agent: activity.recipient ? {
|
|
2317
|
-
id: activity.recipient.id,
|
|
2318
|
-
name: activity.recipient.name
|
|
2319
|
-
} : void 0,
|
|
2320
|
-
bot: activity.recipient ? {
|
|
2321
|
-
id: activity.recipient.id,
|
|
2322
|
-
name: activity.recipient.name
|
|
2323
|
-
} : void 0,
|
|
2324
|
-
conversation: {
|
|
2325
|
-
id: conversationId,
|
|
2326
|
-
conversationType: activity.conversation?.conversationType,
|
|
2327
|
-
tenantId: activity.conversation?.tenantId
|
|
2328
|
-
},
|
|
2329
|
-
channelId: activity.channelId ?? "msteams",
|
|
2330
|
-
serviceUrl: activity.serviceUrl,
|
|
2331
|
-
locale: activity.locale
|
|
2332
|
-
};
|
|
2333
|
-
if (isNegative && msteamsCfg?.feedbackReflection !== false) runFeedbackReflection({
|
|
2334
|
-
cfg: deps.cfg,
|
|
2335
|
-
adapter: deps.adapter,
|
|
2336
|
-
appId: deps.appId,
|
|
2337
|
-
conversationRef,
|
|
2338
|
-
sessionKey: route.sessionKey,
|
|
2339
|
-
agentId: route.agentId,
|
|
2340
|
-
conversationId,
|
|
2341
|
-
feedbackMessageId: messageId,
|
|
2342
|
-
userComment,
|
|
2343
|
-
log: deps.log
|
|
2344
|
-
}).catch((err) => {
|
|
2345
|
-
deps.log.error("feedback reflection failed", { error: formatUnknownError(err) });
|
|
2346
|
-
});
|
|
2347
|
-
return true;
|
|
2348
|
-
}
|
|
2349
|
-
function registerMSTeamsHandlers(handler, deps) {
|
|
2350
|
-
const handleTeamsMessage = createMSTeamsMessageHandler(deps);
|
|
2351
|
-
const originalRun = handler.run;
|
|
2352
|
-
if (originalRun) handler.run = async (context) => {
|
|
2353
|
-
const ctx = context;
|
|
2354
|
-
if (ctx.activity?.type === "invoke" && ctx.activity?.name === "fileConsent/invoke") {
|
|
2355
|
-
await ctx.sendActivity({
|
|
2356
|
-
type: "invokeResponse",
|
|
2357
|
-
value: { status: 200 }
|
|
2358
|
-
});
|
|
2359
|
-
try {
|
|
2360
|
-
await withRevokedProxyFallback({
|
|
2361
|
-
run: async () => await handleFileConsentInvoke(ctx, deps.log),
|
|
2362
|
-
onRevoked: async () => true,
|
|
2363
|
-
onRevokedLog: () => {
|
|
2364
|
-
deps.log.debug?.("turn context revoked during file consent invoke; skipping delayed response");
|
|
2365
|
-
}
|
|
2366
|
-
});
|
|
2367
|
-
} catch (err) {
|
|
2368
|
-
deps.log.debug?.("file consent handler error", { error: formatUnknownError(err) });
|
|
2369
|
-
}
|
|
2370
|
-
return;
|
|
2371
|
-
}
|
|
2372
|
-
if (ctx.activity?.type === "invoke" && ctx.activity?.name === "message/submitAction") {
|
|
2373
|
-
if (await handleFeedbackInvoke(ctx, deps)) return;
|
|
2374
|
-
}
|
|
2375
|
-
return originalRun.call(handler, context);
|
|
2376
|
-
};
|
|
2377
|
-
handler.onMessage(async (context, next) => {
|
|
2378
|
-
try {
|
|
2379
|
-
await handleTeamsMessage(context);
|
|
2380
|
-
} catch (err) {
|
|
2381
|
-
deps.runtime.error?.(`msteams handler failed: ${formatUnknownError(err)}`);
|
|
2382
|
-
}
|
|
2383
|
-
await next();
|
|
2384
|
-
});
|
|
2385
|
-
handler.onMembersAdded(async (context, next) => {
|
|
2386
|
-
const ctx = context;
|
|
2387
|
-
const membersAdded = ctx.activity?.membersAdded ?? [];
|
|
2388
|
-
const botId = ctx.activity?.recipient?.id;
|
|
2389
|
-
const msteamsCfg = deps.cfg.channels?.msteams;
|
|
2390
|
-
for (const member of membersAdded) if (member.id === botId) {
|
|
2391
|
-
const isPersonal = (ctx.activity?.conversation?.conversationType?.toLowerCase() ?? "personal") === "personal";
|
|
2392
|
-
if (isPersonal && msteamsCfg?.welcomeCard !== false) {
|
|
2393
|
-
const card = buildWelcomeCard({
|
|
2394
|
-
botName: ctx.activity?.recipient?.name ?? void 0,
|
|
2395
|
-
promptStarters: msteamsCfg?.promptStarters
|
|
2396
|
-
});
|
|
2397
|
-
try {
|
|
2398
|
-
await ctx.sendActivity({
|
|
2399
|
-
type: "message",
|
|
2400
|
-
attachments: [{
|
|
2401
|
-
contentType: "application/vnd.microsoft.card.adaptive",
|
|
2402
|
-
content: card
|
|
2403
|
-
}]
|
|
2404
|
-
});
|
|
2405
|
-
deps.log.info("sent welcome card");
|
|
2406
|
-
} catch (err) {
|
|
2407
|
-
deps.log.debug?.("failed to send welcome card", { error: formatUnknownError(err) });
|
|
2408
|
-
}
|
|
2409
|
-
} else if (!isPersonal && msteamsCfg?.groupWelcomeCard === true) {
|
|
2410
|
-
const botName = ctx.activity?.recipient?.name ?? void 0;
|
|
2411
|
-
try {
|
|
2412
|
-
await ctx.sendActivity(buildGroupWelcomeText(botName));
|
|
2413
|
-
deps.log.info("sent group welcome message");
|
|
2414
|
-
} catch (err) {
|
|
2415
|
-
deps.log.debug?.("failed to send group welcome", { error: formatUnknownError(err) });
|
|
2416
|
-
}
|
|
2417
|
-
} else deps.log.debug?.("skipping welcome (disabled by config or conversation type)");
|
|
2418
|
-
} else deps.log.debug?.("member added", { member: member.id });
|
|
2419
|
-
await next();
|
|
2420
|
-
});
|
|
2421
|
-
return handler;
|
|
2422
|
-
}
|
|
2423
|
-
//#endregion
|
|
2424
|
-
//#region extensions/msteams/src/webhook-timeouts.ts
|
|
2425
|
-
const MSTEAMS_WEBHOOK_INACTIVITY_TIMEOUT_MS = 3e4;
|
|
2426
|
-
const MSTEAMS_WEBHOOK_REQUEST_TIMEOUT_MS = 3e4;
|
|
2427
|
-
const MSTEAMS_WEBHOOK_HEADERS_TIMEOUT_MS = 15e3;
|
|
2428
|
-
function applyMSTeamsWebhookTimeouts(httpServer, opts) {
|
|
2429
|
-
const inactivityTimeoutMs = opts?.inactivityTimeoutMs ?? MSTEAMS_WEBHOOK_INACTIVITY_TIMEOUT_MS;
|
|
2430
|
-
const requestTimeoutMs = opts?.requestTimeoutMs ?? MSTEAMS_WEBHOOK_REQUEST_TIMEOUT_MS;
|
|
2431
|
-
const headersTimeoutMs = Math.min(opts?.headersTimeoutMs ?? MSTEAMS_WEBHOOK_HEADERS_TIMEOUT_MS, requestTimeoutMs);
|
|
2432
|
-
httpServer.setTimeout(inactivityTimeoutMs);
|
|
2433
|
-
httpServer.requestTimeout = requestTimeoutMs;
|
|
2434
|
-
httpServer.headersTimeout = headersTimeoutMs;
|
|
2435
|
-
}
|
|
2436
|
-
//#endregion
|
|
2437
|
-
//#region extensions/msteams/src/monitor.ts
|
|
2438
|
-
const MSTEAMS_WEBHOOK_MAX_BODY_BYTES = DEFAULT_WEBHOOK_MAX_BODY_BYTES;
|
|
2439
|
-
async function monitorMSTeamsProvider(opts) {
|
|
2440
|
-
const core = getMSTeamsRuntime();
|
|
2441
|
-
const log = core.logging.getChildLogger({ name: "msteams" });
|
|
2442
|
-
let cfg = opts.cfg;
|
|
2443
|
-
let msteamsCfg = cfg.channels?.msteams;
|
|
2444
|
-
if (!msteamsCfg?.enabled) {
|
|
2445
|
-
log.debug?.("msteams provider disabled");
|
|
2446
|
-
return {
|
|
2447
|
-
app: null,
|
|
2448
|
-
shutdown: async () => {}
|
|
2449
|
-
};
|
|
2450
|
-
}
|
|
2451
|
-
const creds = resolveMSTeamsCredentials(msteamsCfg);
|
|
2452
|
-
if (!creds) {
|
|
2453
|
-
log.error("msteams credentials not configured");
|
|
2454
|
-
return {
|
|
2455
|
-
app: null,
|
|
2456
|
-
shutdown: async () => {}
|
|
2457
|
-
};
|
|
2458
|
-
}
|
|
2459
|
-
const appId = creds.appId;
|
|
2460
|
-
const runtime = opts.runtime ?? {
|
|
2461
|
-
log: console.log,
|
|
2462
|
-
error: console.error,
|
|
2463
|
-
exit: (code) => {
|
|
2464
|
-
throw new Error(`exit ${code}`);
|
|
2465
|
-
}
|
|
2466
|
-
};
|
|
2467
|
-
let allowFrom = msteamsCfg.allowFrom;
|
|
2468
|
-
let groupAllowFrom = msteamsCfg.groupAllowFrom;
|
|
2469
|
-
let teamsConfig = msteamsCfg.teams;
|
|
2470
|
-
const cleanAllowEntry = (entry) => entry.replace(/^(msteams|teams):/i, "").replace(/^user:/i, "").trim();
|
|
2471
|
-
const resolveAllowlistUsers = async (label, entries) => {
|
|
2472
|
-
if (entries.length === 0) return {
|
|
2473
|
-
additions: [],
|
|
2474
|
-
unresolved: []
|
|
2475
|
-
};
|
|
2476
|
-
const resolved = await resolveMSTeamsUserAllowlist({
|
|
2477
|
-
cfg,
|
|
2478
|
-
entries
|
|
2479
|
-
});
|
|
2480
|
-
const additions = [];
|
|
2481
|
-
const unresolved = [];
|
|
2482
|
-
for (const entry of resolved) if (entry.resolved && entry.id) additions.push(entry.id);
|
|
2483
|
-
else unresolved.push(entry.input);
|
|
2484
|
-
summarizeMapping(label, resolved.filter((entry) => entry.resolved && entry.id).map((entry) => `${entry.input}→${entry.id}`), unresolved, runtime);
|
|
2485
|
-
return {
|
|
2486
|
-
additions,
|
|
2487
|
-
unresolved
|
|
2488
|
-
};
|
|
2489
|
-
};
|
|
2490
|
-
try {
|
|
2491
|
-
const allowEntries = allowFrom?.map((entry) => cleanAllowEntry(String(entry))).filter((entry) => entry && entry !== "*") ?? [];
|
|
2492
|
-
if (allowEntries.length > 0) {
|
|
2493
|
-
const { additions } = await resolveAllowlistUsers("msteams users", allowEntries);
|
|
2494
|
-
allowFrom = mergeAllowlist({
|
|
2495
|
-
existing: allowFrom,
|
|
2496
|
-
additions
|
|
2497
|
-
});
|
|
2498
|
-
}
|
|
2499
|
-
if (Array.isArray(groupAllowFrom) && groupAllowFrom.length > 0) {
|
|
2500
|
-
const groupEntries = groupAllowFrom.map((entry) => cleanAllowEntry(String(entry))).filter((entry) => entry && entry !== "*");
|
|
2501
|
-
if (groupEntries.length > 0) {
|
|
2502
|
-
const { additions } = await resolveAllowlistUsers("msteams group users", groupEntries);
|
|
2503
|
-
groupAllowFrom = mergeAllowlist({
|
|
2504
|
-
existing: groupAllowFrom,
|
|
2505
|
-
additions
|
|
2506
|
-
});
|
|
2507
|
-
}
|
|
2508
|
-
}
|
|
2509
|
-
if (teamsConfig && Object.keys(teamsConfig).length > 0) {
|
|
2510
|
-
const entries = [];
|
|
2511
|
-
for (const [teamKey, teamCfg] of Object.entries(teamsConfig)) {
|
|
2512
|
-
if (teamKey === "*") continue;
|
|
2513
|
-
const channels = teamCfg?.channels ?? {};
|
|
2514
|
-
const channelKeys = Object.keys(channels).filter((key) => key !== "*");
|
|
2515
|
-
if (channelKeys.length === 0) {
|
|
2516
|
-
entries.push({
|
|
2517
|
-
input: teamKey,
|
|
2518
|
-
teamKey
|
|
2519
|
-
});
|
|
2520
|
-
continue;
|
|
2521
|
-
}
|
|
2522
|
-
for (const channelKey of channelKeys) entries.push({
|
|
2523
|
-
input: `${teamKey}/${channelKey}`,
|
|
2524
|
-
teamKey,
|
|
2525
|
-
channelKey
|
|
2526
|
-
});
|
|
2527
|
-
}
|
|
2528
|
-
if (entries.length > 0) {
|
|
2529
|
-
const resolved = await resolveMSTeamsChannelAllowlist({
|
|
2530
|
-
cfg,
|
|
2531
|
-
entries: entries.map((entry) => entry.input)
|
|
2532
|
-
});
|
|
2533
|
-
const mapping = [];
|
|
2534
|
-
const unresolved = [];
|
|
2535
|
-
const nextTeams = { ...teamsConfig };
|
|
2536
|
-
resolved.forEach((entry, idx) => {
|
|
2537
|
-
const source = entries[idx];
|
|
2538
|
-
if (!source) return;
|
|
2539
|
-
const sourceTeam = teamsConfig?.[source.teamKey] ?? {};
|
|
2540
|
-
if (!entry.resolved || !entry.teamId) {
|
|
2541
|
-
unresolved.push(entry.input);
|
|
2542
|
-
return;
|
|
2543
|
-
}
|
|
2544
|
-
mapping.push(entry.channelId ? `${entry.input}→${entry.teamId}/${entry.channelId}` : `${entry.input}→${entry.teamId}`);
|
|
2545
|
-
const existing = nextTeams[entry.teamId] ?? {};
|
|
2546
|
-
const mergedChannels = {
|
|
2547
|
-
...sourceTeam.channels,
|
|
2548
|
-
...existing.channels
|
|
2549
|
-
};
|
|
2550
|
-
const mergedTeam = {
|
|
2551
|
-
...sourceTeam,
|
|
2552
|
-
...existing,
|
|
2553
|
-
channels: mergedChannels
|
|
2554
|
-
};
|
|
2555
|
-
nextTeams[entry.teamId] = mergedTeam;
|
|
2556
|
-
if (source.channelKey && entry.channelId) {
|
|
2557
|
-
const sourceChannel = sourceTeam.channels?.[source.channelKey];
|
|
2558
|
-
if (sourceChannel) nextTeams[entry.teamId] = {
|
|
2559
|
-
...mergedTeam,
|
|
2560
|
-
channels: {
|
|
2561
|
-
...mergedChannels,
|
|
2562
|
-
[entry.channelId]: {
|
|
2563
|
-
...sourceChannel,
|
|
2564
|
-
...mergedChannels?.[entry.channelId]
|
|
2565
|
-
}
|
|
2566
|
-
}
|
|
2567
|
-
};
|
|
2568
|
-
}
|
|
2569
|
-
});
|
|
2570
|
-
teamsConfig = nextTeams;
|
|
2571
|
-
summarizeMapping("msteams channels", mapping, unresolved, runtime);
|
|
2572
|
-
}
|
|
2573
|
-
}
|
|
2574
|
-
} catch (err) {
|
|
2575
|
-
runtime.log?.(`msteams resolve failed; using config entries. ${formatUnknownError(err)}`);
|
|
2576
|
-
}
|
|
2577
|
-
msteamsCfg = {
|
|
2578
|
-
...msteamsCfg,
|
|
2579
|
-
allowFrom,
|
|
2580
|
-
groupAllowFrom,
|
|
2581
|
-
teams: teamsConfig
|
|
2582
|
-
};
|
|
2583
|
-
cfg = {
|
|
2584
|
-
...cfg,
|
|
2585
|
-
channels: {
|
|
2586
|
-
...cfg.channels,
|
|
2587
|
-
msteams: msteamsCfg
|
|
2588
|
-
}
|
|
2589
|
-
};
|
|
2590
|
-
const port = msteamsCfg.webhook?.port ?? 3978;
|
|
2591
|
-
const textLimit = core.channel.text.resolveTextChunkLimit(cfg, "msteams");
|
|
2592
|
-
const MB = 1024 * 1024;
|
|
2593
|
-
const agentDefaults = cfg.agents?.defaults;
|
|
2594
|
-
const mediaMaxBytes = typeof agentDefaults?.mediaMaxMb === "number" && agentDefaults.mediaMaxMb > 0 ? Math.floor(agentDefaults.mediaMaxMb * MB) : 8 * MB;
|
|
2595
|
-
const conversationStore = opts.conversationStore ?? createMSTeamsConversationStoreFs();
|
|
2596
|
-
const pollStore = opts.pollStore ?? createMSTeamsPollStoreFs();
|
|
2597
|
-
log.info(`starting provider (port ${port})`);
|
|
2598
|
-
const express = await import("express");
|
|
2599
|
-
const { sdk, app } = await loadMSTeamsSdkWithAuth(creds);
|
|
2600
|
-
const tokenProvider = createMSTeamsTokenProvider(app);
|
|
2601
|
-
const adapter = createMSTeamsAdapter(app, sdk);
|
|
2602
|
-
const handler = buildActivityHandler();
|
|
2603
|
-
registerMSTeamsHandlers(handler, {
|
|
2604
|
-
cfg,
|
|
2605
|
-
runtime,
|
|
2606
|
-
appId,
|
|
2607
|
-
adapter,
|
|
2608
|
-
tokenProvider,
|
|
2609
|
-
textLimit,
|
|
2610
|
-
mediaMaxBytes,
|
|
2611
|
-
conversationStore,
|
|
2612
|
-
pollStore,
|
|
2613
|
-
log
|
|
2614
|
-
});
|
|
2615
|
-
const expressApp = express.default();
|
|
2616
|
-
expressApp.use((req, res, next) => {
|
|
2617
|
-
const auth = req.headers.authorization;
|
|
2618
|
-
if (!auth || !auth.startsWith("Bearer ")) {
|
|
2619
|
-
res.status(401).json({ error: "Unauthorized" });
|
|
2620
|
-
return;
|
|
2621
|
-
}
|
|
2622
|
-
next();
|
|
2623
|
-
});
|
|
2624
|
-
const jwtValidator = await createBotFrameworkJwtValidator(creds);
|
|
2625
|
-
expressApp.use((req, res, next) => {
|
|
2626
|
-
const authHeader = req.headers.authorization;
|
|
2627
|
-
jwtValidator.validate(authHeader).then((valid) => {
|
|
2628
|
-
if (!valid) {
|
|
2629
|
-
log.debug?.("JWT validation failed");
|
|
2630
|
-
res.status(401).json({ error: "Unauthorized" });
|
|
2631
|
-
return;
|
|
2632
|
-
}
|
|
2633
|
-
next();
|
|
2634
|
-
}).catch((err) => {
|
|
2635
|
-
log.debug?.(`JWT validation error: ${formatUnknownError(err)}`);
|
|
2636
|
-
res.status(401).json({ error: "Unauthorized" });
|
|
2637
|
-
});
|
|
2638
|
-
});
|
|
2639
|
-
expressApp.use(express.json({ limit: MSTEAMS_WEBHOOK_MAX_BODY_BYTES }));
|
|
2640
|
-
expressApp.use((err, _req, res, next) => {
|
|
2641
|
-
if (err && typeof err === "object" && "status" in err && err.status === 413) {
|
|
2642
|
-
res.status(413).json({ error: "Payload too large" });
|
|
2643
|
-
return;
|
|
2644
|
-
}
|
|
2645
|
-
next(err);
|
|
2646
|
-
});
|
|
2647
|
-
const configuredPath = msteamsCfg.webhook?.path ?? "/api/messages";
|
|
2648
|
-
const messageHandler = (req, res) => {
|
|
2649
|
-
adapter.process(req, res, (context) => handler.run(context)).catch((err) => {
|
|
2650
|
-
log.error("msteams webhook failed", { error: formatUnknownError(err) });
|
|
2651
|
-
});
|
|
2652
|
-
};
|
|
2653
|
-
expressApp.post(configuredPath, messageHandler);
|
|
2654
|
-
if (configuredPath !== "/api/messages") expressApp.post("/api/messages", messageHandler);
|
|
2655
|
-
log.debug?.("listening on paths", {
|
|
2656
|
-
primary: configuredPath,
|
|
2657
|
-
fallback: "/api/messages"
|
|
2658
|
-
});
|
|
2659
|
-
const httpServer = expressApp.listen(port);
|
|
2660
|
-
await new Promise((resolve, reject) => {
|
|
2661
|
-
const onListening = () => {
|
|
2662
|
-
httpServer.off("error", onError);
|
|
2663
|
-
log.info(`msteams provider started on port ${port}`);
|
|
2664
|
-
resolve();
|
|
2665
|
-
};
|
|
2666
|
-
const onError = (err) => {
|
|
2667
|
-
httpServer.off("listening", onListening);
|
|
2668
|
-
log.error("msteams server error", { error: formatUnknownError(err) });
|
|
2669
|
-
reject(err);
|
|
2670
|
-
};
|
|
2671
|
-
httpServer.once("listening", onListening);
|
|
2672
|
-
httpServer.once("error", onError);
|
|
2673
|
-
});
|
|
2674
|
-
applyMSTeamsWebhookTimeouts(httpServer);
|
|
2675
|
-
httpServer.on("error", (err) => {
|
|
2676
|
-
log.error("msteams server error", { error: formatUnknownError(err) });
|
|
2677
|
-
});
|
|
2678
|
-
const shutdown = async () => {
|
|
2679
|
-
log.info("shutting down msteams provider");
|
|
2680
|
-
return new Promise((resolve) => {
|
|
2681
|
-
httpServer.close((err) => {
|
|
2682
|
-
if (err) log.debug?.("msteams server close error", { error: formatUnknownError(err) });
|
|
2683
|
-
resolve();
|
|
2684
|
-
});
|
|
2685
|
-
});
|
|
2686
|
-
};
|
|
2687
|
-
await keepHttpServerTaskAlive({
|
|
2688
|
-
server: httpServer,
|
|
2689
|
-
abortSignal: opts.abortSignal,
|
|
2690
|
-
onAbort: shutdown
|
|
2691
|
-
});
|
|
2692
|
-
return {
|
|
2693
|
-
app: expressApp,
|
|
2694
|
-
shutdown
|
|
2695
|
-
};
|
|
2696
|
-
}
|
|
2697
|
-
/**
|
|
2698
|
-
* Build a minimal ActivityHandler-compatible object that supports
|
|
2699
|
-
* onMessage / onMembersAdded registration and a run() method.
|
|
2700
|
-
*/
|
|
2701
|
-
function buildActivityHandler() {
|
|
2702
|
-
const messageHandlers = [];
|
|
2703
|
-
const membersAddedHandlers = [];
|
|
2704
|
-
const reactionsAddedHandlers = [];
|
|
2705
|
-
const reactionsRemovedHandlers = [];
|
|
2706
|
-
const handler = {
|
|
2707
|
-
onMessage(cb) {
|
|
2708
|
-
messageHandlers.push(cb);
|
|
2709
|
-
return handler;
|
|
2710
|
-
},
|
|
2711
|
-
onMembersAdded(cb) {
|
|
2712
|
-
membersAddedHandlers.push(cb);
|
|
2713
|
-
return handler;
|
|
2714
|
-
},
|
|
2715
|
-
onReactionsAdded(cb) {
|
|
2716
|
-
reactionsAddedHandlers.push(cb);
|
|
2717
|
-
return handler;
|
|
2718
|
-
},
|
|
2719
|
-
onReactionsRemoved(cb) {
|
|
2720
|
-
reactionsRemovedHandlers.push(cb);
|
|
2721
|
-
return handler;
|
|
2722
|
-
},
|
|
2723
|
-
async run(context) {
|
|
2724
|
-
const ctx = context;
|
|
2725
|
-
const activityType = ctx?.activity?.type;
|
|
2726
|
-
const noop = async () => {};
|
|
2727
|
-
if (activityType === "message") for (const h of messageHandlers) await h(context, noop);
|
|
2728
|
-
else if (activityType === "conversationUpdate") for (const h of membersAddedHandlers) await h(context, noop);
|
|
2729
|
-
else if (activityType === "messageReaction") {
|
|
2730
|
-
const activity = ctx?.activity;
|
|
2731
|
-
if (activity?.reactionsAdded?.length) for (const h of reactionsAddedHandlers) await h(context, noop);
|
|
2732
|
-
if (activity?.reactionsRemoved?.length) for (const h of reactionsRemovedHandlers) await h(context, noop);
|
|
2733
|
-
}
|
|
2734
|
-
}
|
|
2735
|
-
};
|
|
2736
|
-
return handler;
|
|
2737
|
-
}
|
|
2738
|
-
//#endregion
|
|
2739
|
-
export { monitorMSTeamsProvider };
|