@fased/fased 0.1.41 → 0.1.43
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/brand.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/cli/daemon-cli/restart-health.js +49 -13
- package/dist/cli/plugins-cli.js +6 -103
- package/dist/cli/plugins-doctor-cli.js +45 -0
- package/dist/cli/plugins-info-cli.js +50 -0
- package/dist/cli/plugins-status-cli.js +4 -0
- package/dist/cli/program/routes.js +38 -0
- package/dist/cli/update-cli/shared.js +1 -29
- package/dist/cli/update-cli/update-command.js +87 -28
- package/dist/config/legacy.migrations.part-3.js +25 -0
- package/dist/gateway/server-plugins.js +12 -0
- package/dist/infra/hosted-runtime-artifact.js +40 -1
- package/dist/infra/update-global.js +1 -0
- package/dist/infra/update-runner.js +318 -38
- package/dist/light-plugin-doctor.js +1 -0
- package/dist/light-plugin-info.js +2 -0
- package/dist/light-update-precheck.js +1 -0
- package/dist/light-update-status.js +12 -0
- package/dist/plugin-sdk/account-id.d.ts +2 -1
- package/dist/plugin-sdk/account-id.js +1 -32
- package/dist/plugin-sdk/accounts-Bz_2QZSt.js +305 -0
- package/dist/plugin-sdk/accounts-CuqIKU8X.js +84 -0
- package/dist/plugin-sdk/accounts-RHZyaB73.js +63 -0
- package/dist/plugin-sdk/actions-CysoQjk1.js +150 -0
- package/dist/plugin-sdk/active-listener-C5ALSs7Y.js +37 -0
- package/dist/plugin-sdk/agent-scope-BbgPlhtw.js +1372 -0
- package/dist/plugin-sdk/allow-list-yqasgPpz.js +479 -0
- package/dist/plugin-sdk/audio-preflight-CzG6BjAn.js +107 -0
- package/dist/plugin-sdk/audit-BFnu5TVB.js +90 -0
- package/dist/plugin-sdk/blocks-input-DdQwSVtP.js +30 -0
- package/dist/plugin-sdk/channel-access-BiWxa3LR.js +68 -0
- package/dist/plugin-sdk/channel-access-configure-gJvqbbXB.js +28 -0
- package/dist/plugin-sdk/channel-adapters.discord-g8Do3f5N.js +35 -0
- package/dist/plugin-sdk/channel-core-CMPoGCik.js +1 -0
- package/dist/plugin-sdk/channel-plugin-common.d.ts +5 -1
- package/dist/plugin-sdk/channel-plugin-common.js +18 -1014
- package/dist/plugin-sdk/chat-type-CK5stkc4.d.ts +4 -0
- package/dist/plugin-sdk/chunk-CuJIMshx.js +341 -0
- package/dist/plugin-sdk/chunk-items-CxRDAM7m.js +34 -0
- package/dist/plugin-sdk/command-status.d.ts +20 -1
- package/dist/plugin-sdk/command-status.js +58 -47
- package/dist/plugin-sdk/commands-registry-DwQIFJmL.js +1337 -0
- package/dist/plugin-sdk/common-C90EHP1w.js +440 -0
- package/dist/plugin-sdk/config-DKNrb8oT.js +23271 -0
- package/dist/plugin-sdk/device-pair.d.ts +3 -1
- package/dist/plugin-sdk/device-pair.js +8 -840
- package/dist/plugin-sdk/device-pairing-J1IH1jFl.js +156 -0
- package/dist/plugin-sdk/diagnostic-C16gioN6.js +282 -0
- package/dist/plugin-sdk/directory-live-DK_83362.js +105 -0
- package/dist/plugin-sdk/directory-live-G7AN8y8N.js +88 -0
- package/dist/plugin-sdk/discord.d.ts +91 -1
- package/dist/plugin-sdk/discord.js +71 -3287
- package/dist/plugin-sdk/draft-stream-controls-DGYBMJYc.js +323 -0
- package/dist/plugin-sdk/exec-DQ8j4Fm3.js +230 -0
- package/dist/plugin-sdk/fetch-RV7QDF43.js +68 -0
- package/dist/plugin-sdk/fetch-guard-CxXvFYq5.js +168 -0
- package/dist/plugin-sdk/filesystem-manager-CeSmCA_A.js +188 -0
- package/dist/plugin-sdk/fs-safe-DztQeyQe.js +192 -0
- package/dist/plugin-sdk/group-mentions-DLOOve8d.d.ts +108 -0
- package/dist/plugin-sdk/guilds-n7MMnX1c.js +13 -0
- package/dist/plugin-sdk/handle-action-DkfMckah.js +1450 -0
- package/dist/plugin-sdk/helpers-C1pcZJsv.js +439 -0
- package/dist/plugin-sdk/image-ops-BSQmb-17.js +510 -0
- package/dist/plugin-sdk/index.d.ts +2575 -1
- package/dist/plugin-sdk/index.js +63 -783
- package/dist/plugin-sdk/ip-BkeyFRJr.js +181 -0
- package/dist/plugin-sdk/links-D5ecKoG9.js +74 -0
- package/dist/plugin-sdk/logger-BbFvCoKk.js +48 -0
- package/dist/plugin-sdk/login-YbYyMkkE.js +61 -0
- package/dist/plugin-sdk/login-qr-DvJw8_2g.js +326 -0
- package/dist/plugin-sdk/manager-DQ1dH8OM.js +3792 -0
- package/dist/plugin-sdk/markdown-tables-DrB-IM8r.js +29 -0
- package/dist/plugin-sdk/media-D8pWjqEt.js +1137 -0
- package/dist/plugin-sdk/memory-search-DHSeU4pJ.js +242 -0
- package/dist/plugin-sdk/monitor-B1PUtkd6.js +4539 -0
- package/dist/plugin-sdk/monitor-BrxWsb7H.js +7739 -0
- package/dist/plugin-sdk/openresponses-http-DJ2lfMja.js +923 -0
- package/dist/plugin-sdk/optional-runtime-dependency-Bt_3Yigu.js +41 -0
- package/dist/plugin-sdk/outbound-B5ukMdUv.js +224 -0
- package/dist/plugin-sdk/outbound-attachment-C9oadpUP.js +95 -0
- package/dist/plugin-sdk/pairing-message-B787pcJI.js +293 -0
- package/dist/plugin-sdk/pairing-message-DWXHX-jt.d.ts +46 -0
- package/dist/plugin-sdk/pairing-store-BdOcH_GA.js +437 -0
- package/dist/plugin-sdk/pairing-token-HQpaqod5.js +91 -0
- package/dist/plugin-sdk/path-alias-guards-BlIJ0AmG.js +43 -0
- package/dist/plugin-sdk/pi-embedded-runner-DMfkIj60.js +95517 -0
- package/dist/plugin-sdk/pi-model-discovery-DQdXL_-F.js +134 -0
- package/dist/plugin-sdk/pi-model-discovery-runtime-IwiWDCQ3.js +14 -0
- package/dist/plugin-sdk/probe-CJ6lN-jD.js +41 -0
- package/dist/plugin-sdk/probe-CvXWxzag.js +68 -0
- package/dist/plugin-sdk/probe-DO4M1Qd1.js +109 -0
- package/dist/plugin-sdk/probe-DbhD54Aw.js +89 -0
- package/dist/plugin-sdk/provider-web-search-config-contract.d.ts +42 -1
- package/dist/plugin-sdk/pw-ai-BgsJH_P8.js +1931 -0
- package/dist/plugin-sdk/qmd-manager-D2LMB27z.js +1335 -0
- package/dist/plugin-sdk/query-expansion-BM7lmqaP.js +769 -0
- package/dist/plugin-sdk/replies-BPFt4O-j.js +107 -0
- package/dist/plugin-sdk/reply-prefix-CbPHNXlm.js +171 -0
- package/dist/plugin-sdk/resolve-channels-B-dUtZYa.js +4 -0
- package/dist/plugin-sdk/resolve-channels-sscr14hU.js +208 -0
- package/dist/plugin-sdk/resolve-outbound-target-BP_JscKT.js +40 -0
- package/dist/plugin-sdk/resolve-route-wp5xq4Ws.js +249 -0
- package/dist/plugin-sdk/resolve-users-B63RqPIO.js +118 -0
- package/dist/plugin-sdk/resolve-users-C1sjzEsV.js +125 -0
- package/dist/plugin-sdk/retry-policy-BTH89onl.js +70 -0
- package/dist/plugin-sdk/run-command-i_W6EFb1.d.ts +99 -0
- package/dist/plugin-sdk/runtime-BUpqjZNM.js +6821 -0
- package/dist/plugin-sdk/runtime-dependency-pUwxUAJp.js +2110 -0
- package/dist/plugin-sdk/sandbox-paths-fc-HFGJr.js +158 -0
- package/dist/plugin-sdk/sat-runtime.d.ts +932 -1
- package/dist/plugin-sdk/sat-runtime.js +23 -11815
- package/dist/plugin-sdk/send-CRI83FPV.js +1353 -0
- package/dist/plugin-sdk/send-DGUAXb2b.js +518 -0
- package/dist/plugin-sdk/send-DUp9GIX8.js +329 -0
- package/dist/plugin-sdk/send-DWB5HFdb.js +547 -0
- package/dist/plugin-sdk/send-zn5KBXIN.js +2250 -0
- package/dist/plugin-sdk/session-BLyxz03u.js +175 -0
- package/dist/plugin-sdk/session-key--_1zVBRB.d.ts +17 -0
- package/dist/plugin-sdk/shared-V35XNAbz.js +37 -0
- package/dist/plugin-sdk/skill-commands-DCnCOVR_.js +1514 -0
- package/dist/plugin-sdk/slack-B6lIY1Jk.js +3742 -0
- package/dist/plugin-sdk/slack-actions-Dwy-8Zg7.js +254 -0
- package/dist/plugin-sdk/slack.d.ts +73 -1
- package/dist/plugin-sdk/slack.js +28 -2568
- package/dist/plugin-sdk/ssrf-D_4q0mKh.js +209 -0
- package/dist/plugin-sdk/sticker-cache-D4Ljzv1P.js +170 -0
- package/dist/plugin-sdk/tables-DX84FwPB.js +55 -0
- package/dist/plugin-sdk/tailscale-status-BGBRraZW.js +104 -0
- package/dist/plugin-sdk/targets-BgSHco9b.js +101 -0
- package/dist/plugin-sdk/targets-CuTZl1mO.js +79 -0
- package/dist/plugin-sdk/telegram-actions-tOhBd6st.js +319 -0
- package/dist/plugin-sdk/telegram.d.ts +39 -1
- package/dist/plugin-sdk/telegram.js +26 -2530
- package/dist/plugin-sdk/thread-bindings.lifecycle-DjpMLjhY.js +823 -0
- package/dist/plugin-sdk/thread-bindings.state-DYYR9qeT.js +643 -0
- package/dist/plugin-sdk/tmp-fased-dir-Be1wBhVz.d.ts +77 -0
- package/dist/plugin-sdk/tokens-Do_JU4Rh.js +21 -0
- package/dist/plugin-sdk/types-CBCtqtMn.d.ts +54 -0
- package/dist/plugin-sdk/types-CJGVZX6j.d.ts +1795 -0
- package/dist/plugin-sdk/types-CXLEOrJX.d.ts +3359 -0
- package/dist/plugin-sdk/types.plugin-CvUiB3Kh.d.ts +4959 -0
- package/dist/plugin-sdk/ui-KGr1WRXC.js +33 -0
- package/dist/plugin-sdk/wallet-status-CdxTkLWz.js +11880 -0
- package/dist/plugin-sdk/web-CX12Rpz1.js +2238 -0
- package/dist/plugin-sdk/whatsapp-actions-DISRDbu1.js +92 -0
- package/dist/plugin-sdk/whatsapp-heartbeat-KM3lYpt-.js +70 -0
- package/dist/plugin-sdk/whatsapp.d.ts +239 -1
- package/dist/plugin-sdk/whatsapp.js +29 -2474
- package/dist/plugin-sdk/ws-CxmRDbD9.js +114 -0
- package/dist/plugin-sdk/wsl-Cw-xOsqF.js +554 -0
- package/dist/plugin-sdk/zod-schema.providers-core-BEbNizPe.d.ts +1773 -0
- package/dist/plugins/status-cache.js +112 -0
- package/dist/plugins/status-manifest.js +61 -0
- package/dist/plugins/status.js +23 -2
- package/dist/wizard/onboarding.gateway-config.js +0 -21
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/fased-federation/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +6 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +2 -2
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +6 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +6 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/sat-mining/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +6 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +6 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +6 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +6 -0
- package/extensions/zalouser/package.json +1 -1
- package/fased.mjs +29 -1
- package/package.json +6 -4
- package/dist/plugin-sdk/account-helpers-CMvQP0I-.js +0 -38
- package/dist/plugin-sdk/accounts-BJFheJNv.js +0 -62
- package/dist/plugin-sdk/accounts-BRbbLNW_.js +0 -76
- package/dist/plugin-sdk/accounts-BwkH5bTD.js +0 -304
- package/dist/plugin-sdk/accounts-COY-15zJ.js +0 -231
- package/dist/plugin-sdk/accounts-D7_p-Ivb.js +0 -62
- package/dist/plugin-sdk/accounts-DTdM1xcj.js +0 -76
- package/dist/plugin-sdk/accounts-RT6y7n3H.js +0 -304
- package/dist/plugin-sdk/actions-BrU_JMqM.js +0 -149
- package/dist/plugin-sdk/actions-CUdVHzeJ.js +0 -149
- package/dist/plugin-sdk/active-listener-CE8t5g6l.js +0 -37
- package/dist/plugin-sdk/active-listener-Dx1SEGDn.js +0 -37
- package/dist/plugin-sdk/agent-scope-BuTbywla.js +0 -1641
- package/dist/plugin-sdk/agent-scope-kIJqg5PA.js +0 -1641
- package/dist/plugin-sdk/allow-list-C9N6FKeC.js +0 -479
- package/dist/plugin-sdk/allow-list-CBtbuDI8.js +0 -473
- package/dist/plugin-sdk/allow-list-Cgjx0Mc-.js +0 -215
- package/dist/plugin-sdk/audio-preflight-Chxqjwxe.js +0 -96
- package/dist/plugin-sdk/audio-preflight-aupYKWfa.js +0 -96
- package/dist/plugin-sdk/audit-DxB2Kml5.js +0 -78
- package/dist/plugin-sdk/audit-sSeRDwJb.js +0 -78
- package/dist/plugin-sdk/channel-adapters.discord-Chc31YZN.js +0 -35
- package/dist/plugin-sdk/channel-adapters.discord-DXVW1q8n.js +0 -35
- package/dist/plugin-sdk/chat-type-CH3W-zKy.js +0 -11
- package/dist/plugin-sdk/chunk-KCxbJLsV.js +0 -341
- package/dist/plugin-sdk/chunk-M2d7r-Zt.js +0 -341
- package/dist/plugin-sdk/chunk-items-BDhRe_xU.js +0 -34
- package/dist/plugin-sdk/client-DP_eXDIO.js +0 -22
- package/dist/plugin-sdk/client-Dn_01zRN.js +0 -28
- package/dist/plugin-sdk/command-poll-backoff-q0xAK3nQ.js +0 -65
- package/dist/plugin-sdk/commands-registry-CdT-nl7v.js +0 -1337
- package/dist/plugin-sdk/commands-registry-DoWdYAJd.js +0 -1337
- package/dist/plugin-sdk/common-Cpw-vuuM.js +0 -440
- package/dist/plugin-sdk/common-DJWrErdE.js +0 -440
- package/dist/plugin-sdk/config-B6SjJFp-.js +0 -20435
- package/dist/plugin-sdk/config-BULEb5QB.js +0 -19698
- package/dist/plugin-sdk/config-C0qggNKQ.js +0 -20423
- package/dist/plugin-sdk/config-CgwTaper.js +0 -22905
- package/dist/plugin-sdk/config-DLVjQxOu.js +0 -20435
- package/dist/plugin-sdk/config-DgD5T-Ui.js +0 -20656
- package/dist/plugin-sdk/config-DtqAN2L3.js +0 -23249
- package/dist/plugin-sdk/conversation-label-CDH4rKMG.js +0 -36
- package/dist/plugin-sdk/date-time-BtRPVcm7.js +0 -120
- package/dist/plugin-sdk/diagnostic-CuhHqubd.js +0 -282
- package/dist/plugin-sdk/diagnostic-DpyvOvs2.js +0 -275
- package/dist/plugin-sdk/diagnostic-session-state-Zw87xFym.js +0 -59
- package/dist/plugin-sdk/directory-live-8umGGN7a.js +0 -88
- package/dist/plugin-sdk/directory-live-BC7oHcsY.js +0 -105
- package/dist/plugin-sdk/directory-live-BJgud06p.js +0 -105
- package/dist/plugin-sdk/directory-live-BxSH0XXX.js +0 -88
- package/dist/plugin-sdk/draft-stream-controls-Bfbhumzv.js +0 -323
- package/dist/plugin-sdk/draft-stream-controls-v_5gdUYG.js +0 -323
- package/dist/plugin-sdk/draft-stream-loop-B3uUPmuU.js +0 -81
- package/dist/plugin-sdk/extensions/sat-mining/src/config.d.ts +0 -117
- package/dist/plugin-sdk/extensions/sat-mining/src/hash-spec.d.ts +0 -58
- package/dist/plugin-sdk/extensions/sat-mining/src/rpc-read.d.ts +0 -648
- package/dist/plugin-sdk/extensions/sat-mining/src/sat-bond-layout.d.ts +0 -110
- package/dist/plugin-sdk/extensions/sat-mining/src/solana-submit.d.ts +0 -297
- package/dist/plugin-sdk/fetch-D70syO9t.js +0 -68
- package/dist/plugin-sdk/fetch-guard-BLdujDnt.js +0 -163
- package/dist/plugin-sdk/fetch-guard-DTKgMN9f.js +0 -163
- package/dist/plugin-sdk/fetch-headers-my7hgV2G.js +0 -26
- package/dist/plugin-sdk/fetch-timeout-l_6RdoMw.js +0 -43
- package/dist/plugin-sdk/fetch-xfeOsibm.js +0 -68
- package/dist/plugin-sdk/filesystem-manager-BEd8NKL9.js +0 -186
- package/dist/plugin-sdk/filesystem-manager-D-4lQ3Af.js +0 -186
- package/dist/plugin-sdk/fs-safe-BDnJzutp.js +0 -192
- package/dist/plugin-sdk/fs-safe-BPYS6-j1.js +0 -192
- package/dist/plugin-sdk/gateway-registry-w_Z-PHGf.js +0 -58
- package/dist/plugin-sdk/github-copilot-token-Djqpy66R.js +0 -127
- package/dist/plugin-sdk/globals-BtKmaIS3.js +0 -439
- package/dist/plugin-sdk/guilds-BdkvRFue.js +0 -13
- package/dist/plugin-sdk/guilds-DmzO7n0X.js +0 -13
- package/dist/plugin-sdk/guilds-iTYlgBat.js +0 -13
- package/dist/plugin-sdk/handle-action-B61D85yo.js +0 -1445
- package/dist/plugin-sdk/handle-action-CjcxGzQD.js +0 -1445
- package/dist/plugin-sdk/inbound-context-CeJDjLk-.js +0 -68
- package/dist/plugin-sdk/internal-DMTDEiDF.js +0 -247
- package/dist/plugin-sdk/ip-Ddk9SPR-.js +0 -47
- package/dist/plugin-sdk/login-CB_nCjX3.js +0 -61
- package/dist/plugin-sdk/login-CzUuDd1v.js +0 -61
- package/dist/plugin-sdk/login-YveoqEvH.js +0 -268
- package/dist/plugin-sdk/login-qr-D7MEpFza.js +0 -324
- package/dist/plugin-sdk/login-qr-DgxfBFVN.js +0 -324
- package/dist/plugin-sdk/manager-9see0IX5.js +0 -3792
- package/dist/plugin-sdk/manager-D2kZ0Cps.js +0 -3792
- package/dist/plugin-sdk/markdown-tables-CCSD52rA.js +0 -29
- package/dist/plugin-sdk/markdown-tables-DWUNvLrc.js +0 -29
- package/dist/plugin-sdk/media-C7YT4DeU.js +0 -1641
- package/dist/plugin-sdk/media-Cxw-xLGU.js +0 -1641
- package/dist/plugin-sdk/memory-search-B-0Fwnrp.js +0 -242
- package/dist/plugin-sdk/memory-search-J6AYuENR.js +0 -242
- package/dist/plugin-sdk/monitor-38DGeIwS.js +0 -4528
- package/dist/plugin-sdk/monitor-CYCSEVee.js +0 -7743
- package/dist/plugin-sdk/monitor-Ceu-Wayc.js +0 -4528
- package/dist/plugin-sdk/monitor-DCyBaUCs.js +0 -7728
- package/dist/plugin-sdk/openresponses-http-CCfimy89.js +0 -912
- package/dist/plugin-sdk/openresponses-http-DAL_9jE-.js +0 -912
- package/dist/plugin-sdk/optional-runtime-dependency-szS49voX.js +0 -426
- package/dist/plugin-sdk/outbound-BCxOxdi-.js +0 -224
- package/dist/plugin-sdk/outbound-JIwQbpRY.js +0 -224
- package/dist/plugin-sdk/outbound-attachment-C-jSFaEB.js +0 -94
- package/dist/plugin-sdk/outbound-attachment-D6tj5Y5H.js +0 -78
- package/dist/plugin-sdk/path-alias-guards-C76pC928.js +0 -43
- package/dist/plugin-sdk/path-alias-guards-CcQroDXQ.js +0 -43
- package/dist/plugin-sdk/paths-DTurNPnO.js +0 -158
- package/dist/plugin-sdk/paths-GdhK5mV_.js +0 -191
- package/dist/plugin-sdk/pi-embedded-runner-Dum71Tdo.js +0 -107134
- package/dist/plugin-sdk/pi-model-discovery-DadlvsZW.js +0 -134
- package/dist/plugin-sdk/pi-model-discovery-G2L8gMcs.js +0 -22703
- package/dist/plugin-sdk/pi-model-discovery-runtime-BpR1pe7K.js +0 -3
- package/dist/plugin-sdk/pi-model-discovery-runtime-C5ssE6EW.js +0 -127
- package/dist/plugin-sdk/pi-model-discovery-runtime-CQOauapl.js +0 -127
- package/dist/plugin-sdk/pi-model-discovery-runtime-DAaOPt64.js +0 -12
- package/dist/plugin-sdk/pi-model-discovery-runtime-DYfUuqPN.js +0 -127
- package/dist/plugin-sdk/pi-model-discovery-runtime-DyOIGBor.js +0 -127
- package/dist/plugin-sdk/pi-model-discovery-runtime-gd77b0UF.js +0 -12
- package/dist/plugin-sdk/pi-model-discovery-runtime-w4DRRv53.js +0 -128
- package/dist/plugin-sdk/pi-model-discovery-yifTIDIn.js +0 -134
- package/dist/plugin-sdk/polls-D0YNJBfc.js +0 -33
- package/dist/plugin-sdk/probe-0Xt6fbw2.js +0 -109
- package/dist/plugin-sdk/probe-1paqsAk5.js +0 -89
- package/dist/plugin-sdk/probe-BPYqD-cg.js +0 -68
- package/dist/plugin-sdk/probe-Ba4KG8Vi.js +0 -41
- package/dist/plugin-sdk/probe-BfzwvkxZ.js +0 -68
- package/dist/plugin-sdk/probe-CsFmvxbr.js +0 -89
- package/dist/plugin-sdk/probe-Dqx0N4uk.js +0 -109
- package/dist/plugin-sdk/probe-DrTulmwQ.js +0 -41
- package/dist/plugin-sdk/proxy-CV9uL4Wi.js +0 -16
- package/dist/plugin-sdk/pw-ai-SNCI9UXT.js +0 -1926
- package/dist/plugin-sdk/pw-ai-sH1Pi-Fh.js +0 -1926
- package/dist/plugin-sdk/qmd-manager-BfJXNhlO.js +0 -1333
- package/dist/plugin-sdk/qmd-manager-QNVr__Z6.js +0 -1333
- package/dist/plugin-sdk/qmd-scope-Cei2-7Q5.js +0 -78
- package/dist/plugin-sdk/query-expansion-DjJAUtDU.js +0 -769
- package/dist/plugin-sdk/query-expansion-VePrajug.js +0 -769
- package/dist/plugin-sdk/redact-Ck-wgswc.js +0 -188
- package/dist/plugin-sdk/redact-identifier-DdQO7P4_.js +0 -15
- package/dist/plugin-sdk/registry-DNkJsNsz.js +0 -6463
- package/dist/plugin-sdk/replies-fvzN5wnU.js +0 -107
- package/dist/plugin-sdk/replies-zebgZCHX.js +0 -107
- package/dist/plugin-sdk/reply-prefix-DqlCqHXT.js +0 -171
- package/dist/plugin-sdk/reply-prefix-Y14LY6Rn.js +0 -171
- package/dist/plugin-sdk/reply-reference-mUSl_ExV.js +0 -35
- package/dist/plugin-sdk/resolve-channels-CGCkchAo.js +0 -208
- package/dist/plugin-sdk/resolve-channels-CHkzoB7d.js +0 -4
- package/dist/plugin-sdk/resolve-channels-CIoMOUEH.js +0 -88
- package/dist/plugin-sdk/resolve-channels-CU3vZXOG.js +0 -4
- package/dist/plugin-sdk/resolve-channels-J5m_-ZOk.js +0 -208
- package/dist/plugin-sdk/resolve-channels-gIpOj1wt.js +0 -206
- package/dist/plugin-sdk/resolve-route-CNhTJG_2.js +0 -248
- package/dist/plugin-sdk/resolve-route-DO0WR4nB.js +0 -248
- package/dist/plugin-sdk/resolve-users-Bm78yvE3.js +0 -123
- package/dist/plugin-sdk/resolve-users-C0F3LQs2.js +0 -118
- package/dist/plugin-sdk/resolve-users-CTKaESmf.js +0 -116
- package/dist/plugin-sdk/resolve-users-Ct0fO5kP.js +0 -125
- package/dist/plugin-sdk/resolve-users-DlpsBzVS.js +0 -118
- package/dist/plugin-sdk/resolve-users-sv9og6yh.js +0 -125
- package/dist/plugin-sdk/resolve-utils-r6ef8mj8.js +0 -147
- package/dist/plugin-sdk/retry-CB29XXbz.js +0 -780
- package/dist/plugin-sdk/retry-Cq65ROXv.js +0 -77
- package/dist/plugin-sdk/retry-policy-BLYEgIwP.js +0 -70
- package/dist/plugin-sdk/retry-policy-sM01QZT2.js +0 -70
- package/dist/plugin-sdk/run-with-concurrency-CavAFhML.js +0 -42
- package/dist/plugin-sdk/runtime-BPyuAmka.js +0 -6577
- package/dist/plugin-sdk/runtime-dependency-B-1u41Ph.js +0 -2217
- package/dist/plugin-sdk/runtime-dependency-Csswyv5r.js +0 -2217
- package/dist/plugin-sdk/sandbox-paths-CkTERCrj.js +0 -158
- package/dist/plugin-sdk/sandbox-paths-DMnFyOaA.js +0 -158
- package/dist/plugin-sdk/secure-random-DLpYiUzR.js +0 -12
- package/dist/plugin-sdk/send-B09HRfHN.js +0 -1351
- package/dist/plugin-sdk/send-BBYcgXA4.js +0 -546
- package/dist/plugin-sdk/send-BQXQA81e.js +0 -2249
- package/dist/plugin-sdk/send-BzFdvD_i.js +0 -1351
- package/dist/plugin-sdk/send-C3u-F_8s.js +0 -2249
- package/dist/plugin-sdk/send-D3836_UN.js +0 -505
- package/dist/plugin-sdk/send-D7tr-EsH.js +0 -546
- package/dist/plugin-sdk/send-DRGzRdI3.js +0 -518
- package/dist/plugin-sdk/send-DfkPKz_0.js +0 -356
- package/dist/plugin-sdk/send-DsxFXrCO.js +0 -356
- package/dist/plugin-sdk/session-DG_bYisw.js +0 -175
- package/dist/plugin-sdk/session-EIStzK0E.js +0 -175
- package/dist/plugin-sdk/session-key-Bp3qq3bm.js +0 -228
- package/dist/plugin-sdk/skill-commands-CkgGmWBS.js +0 -1600
- package/dist/plugin-sdk/skill-commands-hyZA0LE3.js +0 -1571
- package/dist/plugin-sdk/slack-B0dLDyHM.js +0 -3731
- package/dist/plugin-sdk/slack-Dv4zCw-x.js +0 -3730
- package/dist/plugin-sdk/slack-actions-BQawWGTJ.js +0 -248
- package/dist/plugin-sdk/slack-actions-DDMszx56.js +0 -248
- package/dist/plugin-sdk/src/acp/acpx-mutating-wrapper-policy.d.ts +0 -35
- package/dist/plugin-sdk/src/acp/acpx-push-test-approval-contract.d.ts +0 -62
- package/dist/plugin-sdk/src/acp/acpx-push-test-execution-adapter.d.ts +0 -44
- package/dist/plugin-sdk/src/acp/control-plane/manager.core.d.ts +0 -74
- package/dist/plugin-sdk/src/acp/control-plane/manager.d.ts +0 -7
- package/dist/plugin-sdk/src/acp/control-plane/manager.identity-reconcile.d.ts +0 -23
- package/dist/plugin-sdk/src/acp/control-plane/manager.runtime-controls.d.ts +0 -14
- package/dist/plugin-sdk/src/acp/control-plane/manager.types.d.ts +0 -103
- package/dist/plugin-sdk/src/acp/control-plane/manager.utils.d.ts +0 -14
- package/dist/plugin-sdk/src/acp/control-plane/runtime-cache.d.ts +0 -38
- package/dist/plugin-sdk/src/acp/control-plane/runtime-options.d.ts +0 -23
- package/dist/plugin-sdk/src/acp/control-plane/session-actor-queue.d.ts +0 -8
- package/dist/plugin-sdk/src/acp/control-plane/spawn.d.ts +0 -25
- package/dist/plugin-sdk/src/acp/policy.d.ts +0 -10
- package/dist/plugin-sdk/src/acp/runtime/error-text.d.ts +0 -7
- package/dist/plugin-sdk/src/acp/runtime/errors.d.ts +0 -20
- package/dist/plugin-sdk/src/acp/runtime/registry.d.ts +0 -18
- package/dist/plugin-sdk/src/acp/runtime/session-identifiers.d.ts +0 -17
- package/dist/plugin-sdk/src/acp/runtime/session-identity.d.ts +0 -23
- package/dist/plugin-sdk/src/acp/runtime/session-meta.d.ts +0 -30
- package/dist/plugin-sdk/src/acp/runtime/types.d.ts +0 -102
- package/dist/plugin-sdk/src/acp/status-snapshot.d.ts +0 -54
- package/dist/plugin-sdk/src/agents/acp-spawn-parent-stream.d.ts +0 -20
- package/dist/plugin-sdk/src/agents/acp-spawn.d.ts +0 -39
- package/dist/plugin-sdk/src/agents/agent-model-providers.d.ts +0 -47
- package/dist/plugin-sdk/src/agents/agent-paths.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/agent-scope.d.ts +0 -71
- package/dist/plugin-sdk/src/agents/announce-idempotency.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/anthropic-payload-log.d.ts +0 -20
- package/dist/plugin-sdk/src/agents/api-key-rotation.d.ts +0 -22
- package/dist/plugin-sdk/src/agents/apply-patch-update.d.ts +0 -10
- package/dist/plugin-sdk/src/agents/apply-patch.d.ts +0 -35
- package/dist/plugin-sdk/src/agents/auth-health.d.ts +0 -40
- package/dist/plugin-sdk/src/agents/auth-profiles/constants.d.ts +0 -19
- package/dist/plugin-sdk/src/agents/auth-profiles/display.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/auth-profiles/doctor.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/auth-profiles/external-cli-sync.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/auth-profiles/oauth.d.ts +0 -14
- package/dist/plugin-sdk/src/agents/auth-profiles/order.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/auth-profiles/paths.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/auth-profiles/profiles.d.ts +0 -25
- package/dist/plugin-sdk/src/agents/auth-profiles/repair.d.ts +0 -14
- package/dist/plugin-sdk/src/agents/auth-profiles/session-override.d.ts +0 -19
- package/dist/plugin-sdk/src/agents/auth-profiles/store.d.ts +0 -24
- package/dist/plugin-sdk/src/agents/auth-profiles/types.d.ts +0 -65
- package/dist/plugin-sdk/src/agents/auth-profiles/usage.d.ts +0 -85
- package/dist/plugin-sdk/src/agents/auth-profiles.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/bash-process-registry.d.ts +0 -72
- package/dist/plugin-sdk/src/agents/bash-tools.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/bash-tools.exec-approval-followup.d.ts +0 -12
- package/dist/plugin-sdk/src/agents/bash-tools.exec-approval-request.d.ts +0 -70
- package/dist/plugin-sdk/src/agents/bash-tools.exec-host-gateway.d.ts +0 -34
- package/dist/plugin-sdk/src/agents/bash-tools.exec-host-node.d.ts +0 -26
- package/dist/plugin-sdk/src/agents/bash-tools.exec-host-shared.d.ts +0 -155
- package/dist/plugin-sdk/src/agents/bash-tools.exec-runtime.d.ts +0 -116
- package/dist/plugin-sdk/src/agents/bash-tools.exec-types.d.ts +0 -76
- package/dist/plugin-sdk/src/agents/bash-tools.exec.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/bash-tools.process.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/bash-tools.shared.d.ts +0 -56
- package/dist/plugin-sdk/src/agents/bootstrap-budget.d.ts +0 -87
- package/dist/plugin-sdk/src/agents/bootstrap-cache.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/bootstrap-files.d.ts +0 -32
- package/dist/plugin-sdk/src/agents/bootstrap-hooks.d.ts +0 -10
- package/dist/plugin-sdk/src/agents/byteplus-models.d.ts +0 -128
- package/dist/plugin-sdk/src/agents/cache-trace.d.ts +0 -49
- package/dist/plugin-sdk/src/agents/channel-tools.d.ts +0 -30
- package/dist/plugin-sdk/src/agents/chutes-models.d.ts +0 -25
- package/dist/plugin-sdk/src/agents/chutes-oauth.d.ts +0 -46
- package/dist/plugin-sdk/src/agents/cli-backends.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/cli-credentials.d.ts +0 -72
- package/dist/plugin-sdk/src/agents/cli-runner/helpers.d.ts +0 -72
- package/dist/plugin-sdk/src/agents/cli-runner/reliability.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/cli-runner.d.ts +0 -42
- package/dist/plugin-sdk/src/agents/cli-session.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/cli-watchdog-defaults.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/cloudflare-ai-gateway.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/command-poll-backoff.d.ts +0 -28
- package/dist/plugin-sdk/src/agents/compaction.d.ts +0 -72
- package/dist/plugin-sdk/src/agents/content-blocks.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/context-window-guard.d.ts +0 -25
- package/dist/plugin-sdk/src/agents/context.d.ts +0 -38
- package/dist/plugin-sdk/src/agents/current-model-catalog.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/current-time.d.ts +0 -17
- package/dist/plugin-sdk/src/agents/date-time.d.ts +0 -13
- package/dist/plugin-sdk/src/agents/defaults.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/docs-path.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/doubao-models.d.ts +0 -128
- package/dist/plugin-sdk/src/agents/embedded-pi-mcp.d.ts +0 -13
- package/dist/plugin-sdk/src/agents/exec-approval-result.d.ts +0 -21
- package/dist/plugin-sdk/src/agents/failover-error.d.ts +0 -33
- package/dist/plugin-sdk/src/agents/fased-tools.d.ts +0 -58
- package/dist/plugin-sdk/src/agents/glob-pattern.d.ts +0 -18
- package/dist/plugin-sdk/src/agents/huggingface-models.d.ts +0 -14
- package/dist/plugin-sdk/src/agents/identity-avatar.d.ts +0 -17
- package/dist/plugin-sdk/src/agents/identity-file.d.ts +0 -12
- package/dist/plugin-sdk/src/agents/identity.d.ts +0 -28
- package/dist/plugin-sdk/src/agents/image-sanitization.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/lanes.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/live-auth-keys.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/mcp-config-shared.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/mcp-http.d.ts +0 -19
- package/dist/plugin-sdk/src/agents/mcp-stdio.d.ts +0 -16
- package/dist/plugin-sdk/src/agents/mcp-transport-config.d.ts +0 -23
- package/dist/plugin-sdk/src/agents/mcp-transport.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/memory-search.d.ts +0 -80
- package/dist/plugin-sdk/src/agents/minimax-vlm.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/model-alias-lines.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/model-auth-label.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/model-auth.d.ts +0 -37
- package/dist/plugin-sdk/src/agents/model-catalog-access.d.ts +0 -30
- package/dist/plugin-sdk/src/agents/model-catalog-normalized.d.ts +0 -27
- package/dist/plugin-sdk/src/agents/model-catalog-source.d.ts +0 -41
- package/dist/plugin-sdk/src/agents/model-catalog-status.d.ts +0 -92
- package/dist/plugin-sdk/src/agents/model-catalog.d.ts +0 -35
- package/dist/plugin-sdk/src/agents/model-compat.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/model-fallback.d.ts +0 -54
- package/dist/plugin-sdk/src/agents/model-forward-compat.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/model-metadata.d.ts +0 -49
- package/dist/plugin-sdk/src/agents/model-ref-profile.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/model-selection.d.ts +0 -130
- package/dist/plugin-sdk/src/agents/models-config.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/models-config.providers.d.ts +0 -40
- package/dist/plugin-sdk/src/agents/opencode-zen-models.d.ts +0 -46
- package/dist/plugin-sdk/src/agents/owner-display.d.ts +0 -19
- package/dist/plugin-sdk/src/agents/payload-redaction.d.ts +0 -10
- package/dist/plugin-sdk/src/agents/pi-auth-credentials.d.ts +0 -16
- package/dist/plugin-sdk/src/agents/pi-bundle-mcp-materialize.d.ts +0 -12
- package/dist/plugin-sdk/src/agents/pi-bundle-mcp-names.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/pi-bundle-mcp-runtime.d.ts +0 -21
- package/dist/plugin-sdk/src/agents/pi-bundle-mcp-tools.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/pi-bundle-mcp-types.d.ts +0 -52
- package/dist/plugin-sdk/src/agents/pi-embedded-block-chunker.d.ts +0 -19
- package/dist/plugin-sdk/src/agents/pi-embedded-helpers/bootstrap.d.ts +0 -33
- package/dist/plugin-sdk/src/agents/pi-embedded-helpers/errors.d.ts +0 -70
- package/dist/plugin-sdk/src/agents/pi-embedded-helpers/google.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/pi-embedded-helpers/images.d.ts +0 -22
- package/dist/plugin-sdk/src/agents/pi-embedded-helpers/messaging-dedupe.d.ts +0 -10
- package/dist/plugin-sdk/src/agents/pi-embedded-helpers/openai.d.ts +0 -17
- package/dist/plugin-sdk/src/agents/pi-embedded-helpers/thinking.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/pi-embedded-helpers/turns.d.ts +0 -21
- package/dist/plugin-sdk/src/agents/pi-embedded-helpers/types.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/pi-embedded-helpers.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/pi-embedded-messaging.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/pi-embedded-payloads.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/abort.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/cache-ttl.d.ts +0 -17
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/compact.d.ts +0 -57
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/compaction-safety-timeout.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/extensions.d.ts +0 -12
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/extra-params.d.ts +0 -76
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/google.d.ts +0 -42
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/history.d.ts +0 -18
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/lanes.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/logger.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/model.d.ts +0 -30
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/attempt.d.ts +0 -30
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/compaction-timeout.d.ts +0 -20
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/history-image-prune.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/images.d.ts +0 -83
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/llm-idle-timeout.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/params.d.ts +0 -128
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/payloads.d.ts +0 -42
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/run/types.d.ts +0 -67
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/run.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/runs.d.ts +0 -32
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/sandbox-info.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/session-manager-cache.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/session-manager-init.d.ts +0 -17
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/system-prompt.d.ts +0 -55
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/thinking.d.ts +0 -17
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/tool-name-allowlist.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/tool-result-context-guard.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/tool-result-truncation.d.ts +0 -79
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/tool-split.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/types.d.ts +0 -95
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/utils.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/pi-embedded-runner/wait-for-idle-before-flush.d.ts +0 -14
- package/dist/plugin-sdk/src/agents/pi-embedded-runner.d.ts +0 -12
- package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.d.ts +0 -34
- package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.compaction.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.lifecycle.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.messages.d.ts +0 -16
- package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.tools.d.ts +0 -18
- package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.handlers.types.d.ts +0 -152
- package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.raw-stream.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.tools.d.ts +0 -20
- package/dist/plugin-sdk/src/agents/pi-embedded-subscribe.types.d.ts +0 -45
- package/dist/plugin-sdk/src/agents/pi-embedded-utils.d.ts +0 -42
- package/dist/plugin-sdk/src/agents/pi-embedded.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/pi-extensions/compaction-safeguard-runtime.d.ts +0 -16
- package/dist/plugin-sdk/src/agents/pi-extensions/compaction-safeguard.d.ts +0 -22
- package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning/extension.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning/pruner.d.ts +0 -10
- package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning/runtime.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning/settings.d.ts +0 -44
- package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning/tools.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/pi-extensions/context-pruning.d.ts +0 -10
- package/dist/plugin-sdk/src/agents/pi-extensions/session-manager-runtime-registry.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/pi-model-discovery-runtime.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/pi-model-discovery.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/pi-project-settings.d.ts +0 -28
- package/dist/plugin-sdk/src/agents/pi-settings.d.ts +0 -45
- package/dist/plugin-sdk/src/agents/pi-tool-definition-adapter.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/pi-tools.abort.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/pi-tools.before-tool-call.d.ts +0 -31
- package/dist/plugin-sdk/src/agents/pi-tools.d.ts +0 -84
- package/dist/plugin-sdk/src/agents/pi-tools.policy.d.ts +0 -38
- package/dist/plugin-sdk/src/agents/pi-tools.read.d.ts +0 -61
- package/dist/plugin-sdk/src/agents/pi-tools.schema.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/pi-tools.types.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/prompt-cache-stability.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/provider-attribution.d.ts +0 -70
- package/dist/plugin-sdk/src/agents/provider-auth-aliases.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/provider-extension-catalog-index.d.ts +0 -37
- package/dist/plugin-sdk/src/agents/provider-extension-catalog-manifest.d.ts +0 -29
- package/dist/plugin-sdk/src/agents/provider-id.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/provider-request-config.d.ts +0 -194
- package/dist/plugin-sdk/src/agents/pty-dsr.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/pty-keys.d.ts +0 -14
- package/dist/plugin-sdk/src/agents/queued-file-writer.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/sandbox/backend.d.ts +0 -29
- package/dist/plugin-sdk/src/agents/sandbox/bind-spec.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/sandbox/browser-bridges.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/sandbox/browser.d.ts +0 -12
- package/dist/plugin-sdk/src/agents/sandbox/config-hash.d.ts +0 -18
- package/dist/plugin-sdk/src/agents/sandbox/config.d.ts +0 -32
- package/dist/plugin-sdk/src/agents/sandbox/constants.d.ts +0 -21
- package/dist/plugin-sdk/src/agents/sandbox/context.d.ts +0 -20
- package/dist/plugin-sdk/src/agents/sandbox/docker.d.ts +0 -48
- package/dist/plugin-sdk/src/agents/sandbox/fs-bridge.d.ts +0 -56
- package/dist/plugin-sdk/src/agents/sandbox/fs-paths.d.ts +0 -28
- package/dist/plugin-sdk/src/agents/sandbox/hash.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/sandbox/host-paths.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/sandbox/manage.d.ts +0 -13
- package/dist/plugin-sdk/src/agents/sandbox/network-mode.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/sandbox/novnc-auth.d.ts +0 -15
- package/dist/plugin-sdk/src/agents/sandbox/path-utils.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/sandbox/prune.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/sandbox/registry.d.ts +0 -31
- package/dist/plugin-sdk/src/agents/sandbox/runtime-status.d.ts +0 -18
- package/dist/plugin-sdk/src/agents/sandbox/sanitize-env-vars.d.ts +0 -14
- package/dist/plugin-sdk/src/agents/sandbox/shared.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/sandbox/tool-policy.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/sandbox/types.d.ts +0 -91
- package/dist/plugin-sdk/src/agents/sandbox/types.docker.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/sandbox/validate-sandbox-security.d.ts +0 -68
- package/dist/plugin-sdk/src/agents/sandbox/workspace.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/sandbox-media-paths.d.ts +0 -17
- package/dist/plugin-sdk/src/agents/sandbox-paths.d.ts +0 -24
- package/dist/plugin-sdk/src/agents/sandbox-tool-policy.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/sandbox.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/sanitize-for-prompt.d.ts +0 -21
- package/dist/plugin-sdk/src/agents/schema/clean-for-gemini.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/schema/typebox.d.ts +0 -14
- package/dist/plugin-sdk/src/agents/session-dirs.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/session-file-repair.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/session-slug.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/session-tool-result-guard-wrapper.d.ts +0 -19
- package/dist/plugin-sdk/src/agents/session-tool-result-guard.d.ts +0 -40
- package/dist/plugin-sdk/src/agents/session-transcript-repair.d.ts +0 -34
- package/dist/plugin-sdk/src/agents/session-write-lock.d.ts +0 -54
- package/dist/plugin-sdk/src/agents/shell-utils.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/skills/agent-filter.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/skills/bundled-context.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/skills/bundled-dir.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/skills/config.d.ts +0 -13
- package/dist/plugin-sdk/src/agents/skills/env-overrides.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/skills/filter.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/skills/frontmatter.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/skills/local-loader.d.ts +0 -13
- package/dist/plugin-sdk/src/agents/skills/plugin-skills.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/skills/refresh-state.d.ts +0 -15
- package/dist/plugin-sdk/src/agents/skills/refresh.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/skills/serialize.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/skills/skill-contract.d.ts +0 -27
- package/dist/plugin-sdk/src/agents/skills/source.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/skills/types.d.ts +0 -105
- package/dist/plugin-sdk/src/agents/skills/workspace.d.ts +0 -54
- package/dist/plugin-sdk/src/agents/skills-clawhub.d.ts +0 -150
- package/dist/plugin-sdk/src/agents/skills-install-plan.d.ts +0 -25
- package/dist/plugin-sdk/src/agents/skills-install-trust.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/skills-marketplace-policy.d.ts +0 -29
- package/dist/plugin-sdk/src/agents/skills-marketplace-scan.d.ts +0 -17
- package/dist/plugin-sdk/src/agents/skills-status.d.ts +0 -65
- package/dist/plugin-sdk/src/agents/skills.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/spawned-context.d.ts +0 -30
- package/dist/plugin-sdk/src/agents/stable-stringify.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/subagent-announce-dispatch.d.ts +0 -22
- package/dist/plugin-sdk/src/agents/subagent-announce-output.d.ts +0 -97
- package/dist/plugin-sdk/src/agents/subagent-announce-queue.d.ts +0 -24
- package/dist/plugin-sdk/src/agents/subagent-announce.d.ts +0 -51
- package/dist/plugin-sdk/src/agents/subagent-announce.runtime.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/subagent-depth.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/subagent-lifecycle-events.d.ts +0 -18
- package/dist/plugin-sdk/src/agents/subagent-registry-cleanup.d.ts +0 -25
- package/dist/plugin-sdk/src/agents/subagent-registry-completion.d.ts +0 -15
- package/dist/plugin-sdk/src/agents/subagent-registry-queries.d.ts +0 -17
- package/dist/plugin-sdk/src/agents/subagent-registry-state.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/subagent-registry.d.ts +0 -67
- package/dist/plugin-sdk/src/agents/subagent-registry.store.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/subagent-registry.types.d.ts +0 -62
- package/dist/plugin-sdk/src/agents/subagent-spawn.d.ts +0 -49
- package/dist/plugin-sdk/src/agents/synthetic-models.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/system-prompt-cache-boundary.d.ts +0 -10
- package/dist/plugin-sdk/src/agents/system-prompt-params.d.ts +0 -30
- package/dist/plugin-sdk/src/agents/system-prompt-report.d.ts +0 -22
- package/dist/plugin-sdk/src/agents/system-prompt.d.ts +0 -77
- package/dist/plugin-sdk/src/agents/timeout.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/together-models.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/tool-call-id.d.ts +0 -29
- package/dist/plugin-sdk/src/agents/tool-catalog.d.ts +0 -35
- package/dist/plugin-sdk/src/agents/tool-description-presets.d.ts +0 -15
- package/dist/plugin-sdk/src/agents/tool-description-summary.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/tool-display-common.d.ts +0 -70
- package/dist/plugin-sdk/src/agents/tool-display-config.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/tool-display-exec-shell.d.ts +0 -17
- package/dist/plugin-sdk/src/agents/tool-display-exec.d.ts +0 -1
- package/dist/plugin-sdk/src/agents/tool-display.d.ts +0 -15
- package/dist/plugin-sdk/src/agents/tool-fs-policy.d.ts +0 -21
- package/dist/plugin-sdk/src/agents/tool-images.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/tool-loop-detection.d.ts +0 -55
- package/dist/plugin-sdk/src/agents/tool-mutation.d.ts +0 -14
- package/dist/plugin-sdk/src/agents/tool-policy-match.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/tool-policy-pipeline.d.ts +0 -32
- package/dist/plugin-sdk/src/agents/tool-policy-shared.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/tool-policy.d.ts +0 -35
- package/dist/plugin-sdk/src/agents/tool-summaries.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/tools/agent-step.d.ts +0 -23
- package/dist/plugin-sdk/src/agents/tools/agents-list-tool.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/tools/browser-tool.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/tools/browser-tool.schema.d.ts +0 -50
- package/dist/plugin-sdk/src/agents/tools/canvas-tool.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/tools/common.d.ts +0 -86
- package/dist/plugin-sdk/src/agents/tools/cron-tool.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/tools/diff-view-tool.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/tools/discord-actions-guild.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/tools/discord-actions-messaging.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/tools/discord-actions-moderation-shared.d.ts +0 -13
- package/dist/plugin-sdk/src/agents/tools/discord-actions-moderation.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/tools/discord-actions-presence.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/tools/discord-actions.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/tools/gateway-tool.d.ts +0 -14
- package/dist/plugin-sdk/src/agents/tools/gateway.d.ts +0 -20
- package/dist/plugin-sdk/src/agents/tools/image-tool.d.ts +0 -37
- package/dist/plugin-sdk/src/agents/tools/image-tool.helpers.d.ts +0 -21
- package/dist/plugin-sdk/src/agents/tools/marketplace-offer-draft-tool.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/tools/memory-tool.d.ts +0 -10
- package/dist/plugin-sdk/src/agents/tools/message-tool.d.ts +0 -26
- package/dist/plugin-sdk/src/agents/tools/mining-tool.d.ts +0 -8
- package/dist/plugin-sdk/src/agents/tools/nodes-tool.d.ts +0 -13
- package/dist/plugin-sdk/src/agents/tools/nodes-utils.d.ts +0 -13
- package/dist/plugin-sdk/src/agents/tools/session-status-tool.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/tools/sessions-access.d.ts +0 -42
- package/dist/plugin-sdk/src/agents/tools/sessions-announce-target.d.ts +0 -5
- package/dist/plugin-sdk/src/agents/tools/sessions-helpers.d.ts +0 -54
- package/dist/plugin-sdk/src/agents/tools/sessions-history-tool.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/tools/sessions-list-tool.d.ts +0 -11
- package/dist/plugin-sdk/src/agents/tools/sessions-resolution.d.ts +0 -67
- package/dist/plugin-sdk/src/agents/tools/sessions-send-helpers.d.ts +0 -34
- package/dist/plugin-sdk/src/agents/tools/sessions-send-tool.a2a.d.ts +0 -20
- package/dist/plugin-sdk/src/agents/tools/sessions-send-tool.d.ts +0 -13
- package/dist/plugin-sdk/src/agents/tools/sessions-spawn-tool.d.ts +0 -16
- package/dist/plugin-sdk/src/agents/tools/slack-actions.d.ts +0 -15
- package/dist/plugin-sdk/src/agents/tools/subagents-tool.d.ts +0 -4
- package/dist/plugin-sdk/src/agents/tools/telegram-actions.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/tools/tts-tool.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/tools/wallet-action-tool.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/tools/wallet-skill-policy.d.ts +0 -39
- package/dist/plugin-sdk/src/agents/tools/wallet-tool.d.ts +0 -9
- package/dist/plugin-sdk/src/agents/tools/web-fetch-utils.d.ts +0 -18
- package/dist/plugin-sdk/src/agents/tools/web-fetch-visibility.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/tools/web-fetch.d.ts +0 -25
- package/dist/plugin-sdk/src/agents/tools/web-guarded-fetch.d.ts +0 -12
- package/dist/plugin-sdk/src/agents/tools/web-search.d.ts +0 -148
- package/dist/plugin-sdk/src/agents/tools/web-shared.d.ts +0 -24
- package/dist/plugin-sdk/src/agents/tools/web-tools.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/tools/whatsapp-actions.d.ts +0 -3
- package/dist/plugin-sdk/src/agents/tools/whatsapp-target-auth.d.ts +0 -10
- package/dist/plugin-sdk/src/agents/tools-effective-inventory.d.ts +0 -49
- package/dist/plugin-sdk/src/agents/trace-base.d.ts +0 -10
- package/dist/plugin-sdk/src/agents/transcript-policy.d.ts +0 -25
- package/dist/plugin-sdk/src/agents/usage.d.ts +0 -65
- package/dist/plugin-sdk/src/agents/venice-models.d.ts +0 -7
- package/dist/plugin-sdk/src/agents/volc-models.shared.d.ts +0 -90
- package/dist/plugin-sdk/src/agents/workspace-dir.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/workspace-dirs.d.ts +0 -2
- package/dist/plugin-sdk/src/agents/workspace-run.d.ts +0 -18
- package/dist/plugin-sdk/src/agents/workspace-templates.d.ts +0 -6
- package/dist/plugin-sdk/src/agents/workspace.d.ts +0 -45
- package/dist/plugin-sdk/src/auto-reply/chunk.d.ts +0 -45
- package/dist/plugin-sdk/src/auto-reply/command-auth.d.ts +0 -17
- package/dist/plugin-sdk/src/auto-reply/command-detection.d.ts +0 -13
- package/dist/plugin-sdk/src/auto-reply/commands-args.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/commands-registry.d.ts +0 -55
- package/dist/plugin-sdk/src/auto-reply/commands-registry.data.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/commands-registry.types.d.ts +0 -66
- package/dist/plugin-sdk/src/auto-reply/dispatch.d.ts +0 -32
- package/dist/plugin-sdk/src/auto-reply/envelope.d.ts +0 -58
- package/dist/plugin-sdk/src/auto-reply/fallback-state.d.ts +0 -55
- package/dist/plugin-sdk/src/auto-reply/group-activation.d.ts +0 -6
- package/dist/plugin-sdk/src/auto-reply/heartbeat-reply-payload.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/heartbeat.d.ts +0 -26
- package/dist/plugin-sdk/src/auto-reply/inbound-debounce.d.ts +0 -17
- package/dist/plugin-sdk/src/auto-reply/media-note.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/model-runtime.d.ts +0 -17
- package/dist/plugin-sdk/src/auto-reply/model.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/reply/abort-cutoff.d.ts +0 -28
- package/dist/plugin-sdk/src/auto-reply/reply/abort.d.ts +0 -33
- package/dist/plugin-sdk/src/auto-reply/reply/acp-projector.d.ts +0 -15
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-execution.d.ts +0 -59
- 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 -20
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-payloads.d.ts +0 -27
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner-utils.d.ts +0 -148
- package/dist/plugin-sdk/src/auto-reply/reply/agent-runner.d.ts +0 -38
- package/dist/plugin-sdk/src/auto-reply/reply/bash-command.d.ts +0 -19
- package/dist/plugin-sdk/src/auto-reply/reply/block-reply-coalescer.d.ts +0 -15
- package/dist/plugin-sdk/src/auto-reply/reply/block-reply-pipeline.d.ts +0 -31
- package/dist/plugin-sdk/src/auto-reply/reply/block-streaming.d.ts +0 -36
- package/dist/plugin-sdk/src/auto-reply/reply/body.d.ts +0 -10
- package/dist/plugin-sdk/src/auto-reply/reply/command-gates.d.ts +0 -18
- package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/context.d.ts +0 -12
- package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/diagnostics.d.ts +0 -4
- package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/lifecycle.d.ts +0 -5
- package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/runtime-options.d.ts +0 -9
- package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/shared.d.ts +0 -97
- package/dist/plugin-sdk/src/auto-reply/reply/commands-acp/targets.d.ts +0 -12
- package/dist/plugin-sdk/src/auto-reply/reply/commands-acp.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/commands-allowlist.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/commands-approve.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/commands-bash.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/commands-compact.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/commands-config.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-context-report.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-context.d.ts +0 -12
- package/dist/plugin-sdk/src/auto-reply/reply/commands-control.d.ts +0 -5
- package/dist/plugin-sdk/src/auto-reply/reply/commands-core.d.ts +0 -13
- package/dist/plugin-sdk/src/auto-reply/reply/commands-export-session.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/commands-info.d.ts +0 -11
- package/dist/plugin-sdk/src/auto-reply/reply/commands-models.d.ts +0 -36
- package/dist/plugin-sdk/src/auto-reply/reply/commands-plugin.d.ts +0 -13
- 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 -8
- package/dist/plugin-sdk/src/auto-reply/reply/commands-setunset-standard.d.ts +0 -10
- package/dist/plugin-sdk/src/auto-reply/reply/commands-setunset.d.ts +0 -34
- package/dist/plugin-sdk/src/auto-reply/reply/commands-slash-parse.d.ts +0 -24
- package/dist/plugin-sdk/src/auto-reply/reply/commands-status.d.ts +0 -26
- 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/shared.d.ts +0 -81
- package/dist/plugin-sdk/src/auto-reply/reply/commands-subagents.d.ts +0 -4
- package/dist/plugin-sdk/src/auto-reply/reply/commands-system-prompt.d.ts +0 -14
- package/dist/plugin-sdk/src/auto-reply/reply/commands-tts.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/commands-types.d.ts +0 -63
- package/dist/plugin-sdk/src/auto-reply/reply/commands.d.ts +0 -4
- package/dist/plugin-sdk/src/auto-reply/reply/config-commands.d.ts +0 -15
- package/dist/plugin-sdk/src/auto-reply/reply/config-value.d.ts +0 -4
- package/dist/plugin-sdk/src/auto-reply/reply/debug-commands.d.ts +0 -16
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.auth.d.ts +0 -19
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.d.ts +0 -6
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.fast-lane.d.ts +0 -7
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.impl.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.levels.d.ts +0 -20
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.model-picker.d.ts +0 -13
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.model.d.ts +0 -44
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.params.d.ts +0 -51
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.parse.d.ts +0 -62
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.persist.d.ts +0 -37
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.queue-validation.d.ts +0 -10
- package/dist/plugin-sdk/src/auto-reply/reply/directive-handling.shared.d.ts +0 -28
- package/dist/plugin-sdk/src/auto-reply/reply/directive-parsing.d.ts +0 -5
- package/dist/plugin-sdk/src/auto-reply/reply/directives.d.ts +0 -38
- package/dist/plugin-sdk/src/auto-reply/reply/dispatch-acp.d.ts +0 -30
- package/dist/plugin-sdk/src/auto-reply/reply/dispatch-from-config.d.ts +0 -16
- package/dist/plugin-sdk/src/auto-reply/reply/dispatcher-registry.d.ts +0 -24
- package/dist/plugin-sdk/src/auto-reply/reply/elevated-allowlist-matcher.d.ts +0 -20
- package/dist/plugin-sdk/src/auto-reply/reply/elevated-unavailable.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/reply/exec/directive.d.ts +0 -20
- 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-directives-apply.d.ts +0 -64
- package/dist/plugin-sdk/src/auto-reply/reply/get-reply-directives-utils.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/get-reply-directives.d.ts +0 -92
- package/dist/plugin-sdk/src/auto-reply/reply/get-reply-inline-actions.d.ts +0 -59
- 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/groups.d.ts +0 -26
- package/dist/plugin-sdk/src/auto-reply/reply/history.d.ts +0 -72
- package/dist/plugin-sdk/src/auto-reply/reply/inbound-context.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/reply/inbound-dedupe.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/reply/inbound-meta.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/inbound-text.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/line-directives.d.ts +0 -22
- package/dist/plugin-sdk/src/auto-reply/reply/memory-flush.d.ts +0 -28
- package/dist/plugin-sdk/src/auto-reply/reply/mentions.d.ts +0 -19
- package/dist/plugin-sdk/src/auto-reply/reply/model-selection.d.ts +0 -67
- package/dist/plugin-sdk/src/auto-reply/reply/normalize-reply.d.ts +0 -13
- package/dist/plugin-sdk/src/auto-reply/reply/origin-routing.d.ts +0 -13
- package/dist/plugin-sdk/src/auto-reply/reply/post-compaction-audit.d.ts +0 -26
- package/dist/plugin-sdk/src/auto-reply/reply/post-compaction-context.d.ts +0 -12
- package/dist/plugin-sdk/src/auto-reply/reply/provider-dispatcher.d.ts +0 -19
- package/dist/plugin-sdk/src/auto-reply/reply/queue/cleanup.d.ts +0 -11
- package/dist/plugin-sdk/src/auto-reply/reply/queue/directive.d.ts +0 -15
- package/dist/plugin-sdk/src/auto-reply/reply/queue/drain.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/queue/enqueue.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/queue/normalize.d.ts +0 -3
- package/dist/plugin-sdk/src/auto-reply/reply/queue/settings.d.ts +0 -2
- package/dist/plugin-sdk/src/auto-reply/reply/queue/state.d.ts +0 -20
- package/dist/plugin-sdk/src/auto-reply/reply/queue/types.d.ts +0 -85
- package/dist/plugin-sdk/src/auto-reply/reply/queue-policy.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/reply/queue.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/reply/reply-delivery.d.ts +0 -27
- package/dist/plugin-sdk/src/auto-reply/reply/reply-directives.d.ts +0 -14
- package/dist/plugin-sdk/src/auto-reply/reply/reply-dispatcher.d.ts +0 -54
- package/dist/plugin-sdk/src/auto-reply/reply/reply-elevated.d.ts +0 -16
- package/dist/plugin-sdk/src/auto-reply/reply/reply-inline.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/reply/reply-payloads.d.ts +0 -27
- package/dist/plugin-sdk/src/auto-reply/reply/reply-reference.d.ts +0 -22
- package/dist/plugin-sdk/src/auto-reply/reply/reply-tags.d.ts +0 -6
- package/dist/plugin-sdk/src/auto-reply/reply/reply-threading.d.ts +0 -9
- package/dist/plugin-sdk/src/auto-reply/reply/response-prefix-template.d.ts +0 -51
- package/dist/plugin-sdk/src/auto-reply/reply/route-reply.d.ts +0 -56
- package/dist/plugin-sdk/src/auto-reply/reply/session-reset-model.d.ts +0 -24
- package/dist/plugin-sdk/src/auto-reply/reply/session-reset-prompt.d.ts +0 -1
- package/dist/plugin-sdk/src/auto-reply/reply/session-run-accounting.d.ts +0 -12
- package/dist/plugin-sdk/src/auto-reply/reply/session-updates.d.ts +0 -34
- package/dist/plugin-sdk/src/auto-reply/reply/session-usage.d.ts +0 -21
- 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/streaming-directives.d.ts +0 -10
- package/dist/plugin-sdk/src/auto-reply/reply/strip-inbound-meta.d.ts +0 -27
- package/dist/plugin-sdk/src/auto-reply/reply/subagents-utils.d.ts +0 -27
- package/dist/plugin-sdk/src/auto-reply/reply/typing-mode.d.ts +0 -30
- package/dist/plugin-sdk/src/auto-reply/reply/typing-policy.d.ts +0 -13
- package/dist/plugin-sdk/src/auto-reply/reply/typing.d.ts +0 -18
- 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/auto-reply/skill-commands.d.ts +0 -19
- package/dist/plugin-sdk/src/auto-reply/status.d.ts +0 -60
- package/dist/plugin-sdk/src/auto-reply/templating.d.ts +0 -161
- package/dist/plugin-sdk/src/auto-reply/thinking.d.ts +0 -16
- package/dist/plugin-sdk/src/auto-reply/tokens.d.ts +0 -4
- package/dist/plugin-sdk/src/auto-reply/tool-meta.d.ts +0 -8
- package/dist/plugin-sdk/src/auto-reply/types.d.ts +0 -85
- package/dist/plugin-sdk/src/brand.d.ts +0 -6
- package/dist/plugin-sdk/src/browser/bridge-auth-registry.d.ts +0 -8
- package/dist/plugin-sdk/src/browser/bridge-server.d.ts +0 -19
- package/dist/plugin-sdk/src/browser/cdp.d.ts +0 -125
- package/dist/plugin-sdk/src/browser/cdp.helpers.d.ts +0 -13
- package/dist/plugin-sdk/src/browser/chrome.d.ts +0 -20
- package/dist/plugin-sdk/src/browser/chrome.executables.d.ts +0 -9
- package/dist/plugin-sdk/src/browser/chrome.profile-decoration.d.ts +0 -10
- package/dist/plugin-sdk/src/browser/client-actions-core.d.ts +0 -142
- package/dist/plugin-sdk/src/browser/client-actions-observe.d.ts +0 -68
- package/dist/plugin-sdk/src/browser/client-actions-state.d.ts +0 -90
- package/dist/plugin-sdk/src/browser/client-actions-types.d.ts +0 -18
- package/dist/plugin-sdk/src/browser/client-actions-url.d.ts +0 -2
- package/dist/plugin-sdk/src/browser/client-actions.d.ts +0 -4
- package/dist/plugin-sdk/src/browser/client-fetch.d.ts +0 -20
- package/dist/plugin-sdk/src/browser/client.d.ts +0 -147
- package/dist/plugin-sdk/src/browser/config.d.ts +0 -43
- package/dist/plugin-sdk/src/browser/constants.d.ts +0 -8
- package/dist/plugin-sdk/src/browser/control-auth.d.ts +0 -13
- package/dist/plugin-sdk/src/browser/control-service.d.ts +0 -5
- package/dist/plugin-sdk/src/browser/csrf.d.ts +0 -8
- package/dist/plugin-sdk/src/browser/extension-relay-auth.d.ts +0 -8
- package/dist/plugin-sdk/src/browser/extension-relay.d.ts +0 -15
- package/dist/plugin-sdk/src/browser/form-fields.d.ts +0 -8
- package/dist/plugin-sdk/src/browser/http-auth.d.ts +0 -5
- package/dist/plugin-sdk/src/browser/navigation-guard.d.ts +0 -21
- package/dist/plugin-sdk/src/browser/paths.d.ts +0 -61
- package/dist/plugin-sdk/src/browser/profiles-service.d.ts +0 -25
- package/dist/plugin-sdk/src/browser/profiles.d.ts +0 -30
- package/dist/plugin-sdk/src/browser/proxy-files.d.ts +0 -7
- package/dist/plugin-sdk/src/browser/pw-ai-module.d.ts +0 -6
- package/dist/plugin-sdk/src/browser/pw-ai-state.d.ts +0 -2
- package/dist/plugin-sdk/src/browser/pw-ai.d.ts +0 -2
- package/dist/plugin-sdk/src/browser/pw-role-snapshot.d.ts +0 -35
- package/dist/plugin-sdk/src/browser/pw-session.d.ts +0 -162
- package/dist/plugin-sdk/src/browser/pw-tools-core.activity.d.ts +0 -21
- package/dist/plugin-sdk/src/browser/pw-tools-core.d.ts +0 -8
- package/dist/plugin-sdk/src/browser/pw-tools-core.downloads.d.ts +0 -34
- package/dist/plugin-sdk/src/browser/pw-tools-core.interactions.d.ts +0 -114
- package/dist/plugin-sdk/src/browser/pw-tools-core.responses.d.ts +0 -13
- package/dist/plugin-sdk/src/browser/pw-tools-core.shared.d.ts +0 -6
- package/dist/plugin-sdk/src/browser/pw-tools-core.snapshot.d.ts +0 -66
- package/dist/plugin-sdk/src/browser/pw-tools-core.state.d.ts +0 -46
- package/dist/plugin-sdk/src/browser/pw-tools-core.storage.d.ts +0 -47
- package/dist/plugin-sdk/src/browser/pw-tools-core.trace.d.ts +0 -12
- package/dist/plugin-sdk/src/browser/resolved-config-refresh.d.ts +0 -12
- package/dist/plugin-sdk/src/browser/routes/agent.act.d.ts +0 -3
- package/dist/plugin-sdk/src/browser/routes/agent.act.download.d.ts +0 -3
- package/dist/plugin-sdk/src/browser/routes/agent.act.hooks.d.ts +0 -3
- package/dist/plugin-sdk/src/browser/routes/agent.act.shared.d.ts +0 -10
- package/dist/plugin-sdk/src/browser/routes/agent.d.ts +0 -3
- package/dist/plugin-sdk/src/browser/routes/agent.debug.d.ts +0 -3
- package/dist/plugin-sdk/src/browser/routes/agent.shared.d.ts +0 -37
- package/dist/plugin-sdk/src/browser/routes/agent.snapshot.d.ts +0 -3
- package/dist/plugin-sdk/src/browser/routes/agent.storage.d.ts +0 -14
- package/dist/plugin-sdk/src/browser/routes/basic.d.ts +0 -3
- package/dist/plugin-sdk/src/browser/routes/dispatcher.d.ts +0 -16
- package/dist/plugin-sdk/src/browser/routes/index.d.ts +0 -3
- package/dist/plugin-sdk/src/browser/routes/output-paths.d.ts +0 -10
- package/dist/plugin-sdk/src/browser/routes/path-output.d.ts +0 -1
- package/dist/plugin-sdk/src/browser/routes/tabs.d.ts +0 -3
- package/dist/plugin-sdk/src/browser/routes/types.d.ts +0 -20
- package/dist/plugin-sdk/src/browser/routes/utils.d.ts +0 -15
- package/dist/plugin-sdk/src/browser/runtime-dependency.d.ts +0 -3
- package/dist/plugin-sdk/src/browser/screenshot.d.ts +0 -9
- package/dist/plugin-sdk/src/browser/server-context.d.ts +0 -4
- package/dist/plugin-sdk/src/browser/server-context.types.d.ts +0 -65
- package/dist/plugin-sdk/src/browser/server-lifecycle.d.ts +0 -10
- package/dist/plugin-sdk/src/browser/server-middleware.d.ts +0 -6
- package/dist/plugin-sdk/src/browser/target-id.d.ts +0 -11
- package/dist/plugin-sdk/src/browser/trash.d.ts +0 -1
- package/dist/plugin-sdk/src/canvas-host/a2ui.d.ts +0 -6
- package/dist/plugin-sdk/src/canvas-host/file-resolver.d.ts +0 -3
- package/dist/plugin-sdk/src/canvas-host/server.d.ts +0 -36
- package/dist/plugin-sdk/src/channel-web.d.ts +0 -6
- package/dist/plugin-sdk/src/channels/account-snapshot-fields.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/account-summary.d.ts +0 -17
- package/dist/plugin-sdk/src/channels/ack-reactions.d.ts +0 -29
- package/dist/plugin-sdk/src/channels/allow-from.d.ts +0 -16
- package/dist/plugin-sdk/src/channels/allowlist-match.d.ts +0 -16
- package/dist/plugin-sdk/src/channels/allowlists/resolve-utils.d.ts +0 -33
- package/dist/plugin-sdk/src/channels/channel-config.d.ts +0 -39
- package/dist/plugin-sdk/src/channels/chat-type.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/command-gating.d.ts +0 -20
- package/dist/plugin-sdk/src/channels/conversation-label.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/dock.d.ts +0 -25
- 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/ids.d.ts +0 -9
- package/dist/plugin-sdk/src/channels/location.d.ts +0 -21
- package/dist/plugin-sdk/src/channels/logging.d.ts +0 -20
- package/dist/plugin-sdk/src/channels/mention-gating.d.ts +0 -27
- package/dist/plugin-sdk/src/channels/model-overrides.d.ts +0 -18
- package/dist/plugin-sdk/src/channels/plugins/account-action-gate.d.ts +0 -5
- package/dist/plugin-sdk/src/channels/plugins/account-helpers.d.ts +0 -6
- package/dist/plugin-sdk/src/channels/plugins/actions/discord/handle-action.d.ts +0 -3
- package/dist/plugin-sdk/src/channels/plugins/actions/discord/handle-action.guild-admin.d.ts +0 -9
- package/dist/plugin-sdk/src/channels/plugins/actions/discord.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/actions/shared.d.ts +0 -7
- package/dist/plugin-sdk/src/channels/plugins/actions/signal.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/actions/telegram.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/agent-tools/whatsapp-login.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/allowlist-match.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/bluebubbles-actions.d.ts +0 -48
- package/dist/plugin-sdk/src/channels/plugins/catalog.d.ts +0 -50
- package/dist/plugin-sdk/src/channels/plugins/channel-config.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/config-helpers.d.ts +0 -14
- package/dist/plugin-sdk/src/channels/plugins/config-schema.d.ts +0 -3
- package/dist/plugin-sdk/src/channels/plugins/config-writes.d.ts +0 -7
- package/dist/plugin-sdk/src/channels/plugins/directory-config.d.ts +0 -16
- package/dist/plugin-sdk/src/channels/plugins/group-mentions.d.ts +0 -18
- package/dist/plugin-sdk/src/channels/plugins/helpers.d.ts +0 -8
- package/dist/plugin-sdk/src/channels/plugins/index.d.ts +0 -8
- package/dist/plugin-sdk/src/channels/plugins/media-limits.d.ts +0 -9
- package/dist/plugin-sdk/src/channels/plugins/media-payload.d.ts +0 -15
- package/dist/plugin-sdk/src/channels/plugins/message-action-names.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/message-actions.d.ts +0 -15
- package/dist/plugin-sdk/src/channels/plugins/normalize/discord.d.ts +0 -14
- package/dist/plugin-sdk/src/channels/plugins/normalize/imessage.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/normalize/shared.d.ts +0 -6
- package/dist/plugin-sdk/src/channels/plugins/normalize/signal.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/normalize/slack.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/normalize/telegram.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/normalize/whatsapp.d.ts +0 -3
- package/dist/plugin-sdk/src/channels/plugins/onboarding/channel-access-configure.d.ts +0 -21
- package/dist/plugin-sdk/src/channels/plugins/onboarding/channel-access.d.ts +0 -31
- package/dist/plugin-sdk/src/channels/plugins/onboarding/discord.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/onboarding/helpers.d.ts +0 -177
- package/dist/plugin-sdk/src/channels/plugins/onboarding/imessage.d.ts +0 -6
- package/dist/plugin-sdk/src/channels/plugins/onboarding/signal.d.ts +0 -7
- package/dist/plugin-sdk/src/channels/plugins/onboarding/slack.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/onboarding/telegram.d.ts +0 -4
- package/dist/plugin-sdk/src/channels/plugins/onboarding/whatsapp.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/onboarding-types.d.ts +0 -149
- package/dist/plugin-sdk/src/channels/plugins/outbound/load.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/pairing-message.d.ts +0 -1
- package/dist/plugin-sdk/src/channels/plugins/pairing.d.ts +0 -16
- package/dist/plugin-sdk/src/channels/plugins/registry-loader.d.ts +0 -5
- package/dist/plugin-sdk/src/channels/plugins/setup-helpers.d.ts +0 -21
- package/dist/plugin-sdk/src/channels/plugins/status-issues/bluebubbles.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/status-issues/discord.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/status-issues/shared.d.ts +0 -29
- package/dist/plugin-sdk/src/channels/plugins/status-issues/telegram.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/status-issues/whatsapp.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/plugins/types.adapters.d.ts +0 -294
- package/dist/plugin-sdk/src/channels/plugins/types.core.d.ts +0 -357
- package/dist/plugin-sdk/src/channels/plugins/types.d.ts +0 -6
- package/dist/plugin-sdk/src/channels/plugins/types.plugin.d.ts +0 -54
- package/dist/plugin-sdk/src/channels/plugins/whatsapp-heartbeat.d.ts +0 -11
- package/dist/plugin-sdk/src/channels/plugins/whatsapp-shared.d.ts +0 -5
- package/dist/plugin-sdk/src/channels/registry.d.ts +0 -12
- package/dist/plugin-sdk/src/channels/reply-prefix.d.ts +0 -24
- package/dist/plugin-sdk/src/channels/sender-label.d.ts +0 -9
- package/dist/plugin-sdk/src/channels/session.d.ts +0 -18
- package/dist/plugin-sdk/src/channels/status-reactions.d.ts +0 -62
- package/dist/plugin-sdk/src/channels/targets.d.ts +0 -42
- package/dist/plugin-sdk/src/channels/telegram/allow-from.d.ts +0 -2
- package/dist/plugin-sdk/src/channels/telegram/api.d.ts +0 -5
- package/dist/plugin-sdk/src/channels/thread-bindings-messages.d.ts +0 -19
- package/dist/plugin-sdk/src/channels/thread-bindings-policy.d.ts +0 -68
- package/dist/plugin-sdk/src/channels/typing-lifecycle.d.ts +0 -12
- package/dist/plugin-sdk/src/channels/typing-start-guard.d.ts +0 -13
- package/dist/plugin-sdk/src/channels/typing.d.ts +0 -18
- package/dist/plugin-sdk/src/channels/web/index.d.ts +0 -1
- package/dist/plugin-sdk/src/cli/argv.d.ts +0 -17
- package/dist/plugin-sdk/src/cli/banner.d.ts +0 -11
- package/dist/plugin-sdk/src/cli/cli-name.d.ts +0 -3
- package/dist/plugin-sdk/src/cli/cli-utils.d.ts +0 -19
- package/dist/plugin-sdk/src/cli/command-format.d.ts +0 -1
- package/dist/plugin-sdk/src/cli/deps.d.ts +0 -18
- package/dist/plugin-sdk/src/cli/help-format.d.ts +0 -5
- package/dist/plugin-sdk/src/cli/memory-cli.d.ts +0 -21
- package/dist/plugin-sdk/src/cli/nodes-camera.d.ts +0 -38
- package/dist/plugin-sdk/src/cli/nodes-canvas.d.ts +0 -10
- package/dist/plugin-sdk/src/cli/nodes-media-utils.d.ts +0 -13
- package/dist/plugin-sdk/src/cli/nodes-run.d.ts +0 -3
- package/dist/plugin-sdk/src/cli/nodes-screen.d.ts +0 -18
- package/dist/plugin-sdk/src/cli/outbound-send-deps.d.ts +0 -4
- package/dist/plugin-sdk/src/cli/outbound-send-mapping.d.ts +0 -10
- package/dist/plugin-sdk/src/cli/parse-bytes.d.ts +0 -4
- package/dist/plugin-sdk/src/cli/parse-duration.d.ts +0 -4
- package/dist/plugin-sdk/src/cli/parse-timeout.d.ts +0 -1
- package/dist/plugin-sdk/src/cli/profile-utils.d.ts +0 -2
- package/dist/plugin-sdk/src/cli/progress.d.ts +0 -24
- package/dist/plugin-sdk/src/cli/prompt.d.ts +0 -1
- package/dist/plugin-sdk/src/cli/wait.d.ts +0 -1
- package/dist/plugin-sdk/src/commands/agent/attempt.d.ts +0 -39
- package/dist/plugin-sdk/src/commands/agent/delivery.d.ts +0 -21
- package/dist/plugin-sdk/src/commands/agent/lifecycle.d.ts +0 -17
- package/dist/plugin-sdk/src/commands/agent/run-context.d.ts +0 -2
- package/dist/plugin-sdk/src/commands/agent/session-store.d.ts +0 -17
- package/dist/plugin-sdk/src/commands/agent/session.d.ts +0 -33
- package/dist/plugin-sdk/src/commands/agent/strict-agentic-contract.d.ts +0 -44
- package/dist/plugin-sdk/src/commands/agent/types.d.ts +0 -77
- package/dist/plugin-sdk/src/commands/agent.d.ts +0 -7
- package/dist/plugin-sdk/src/commands/agents.config.d.ts +0 -42
- package/dist/plugin-sdk/src/commands/channel-account-context.d.ts +0 -10
- package/dist/plugin-sdk/src/commands/cleanup-utils.d.ts +0 -37
- package/dist/plugin-sdk/src/commands/daemon-runtime.d.ts +0 -8
- package/dist/plugin-sdk/src/commands/gateway-presence.d.ts +0 -7
- package/dist/plugin-sdk/src/commands/health.d.ts +0 -74
- package/dist/plugin-sdk/src/commands/hosted-dashboard-probe.d.ts +0 -40
- package/dist/plugin-sdk/src/commands/oauth-flow.d.ts +0 -21
- package/dist/plugin-sdk/src/commands/onboard-helpers.d.ts +0 -84
- package/dist/plugin-sdk/src/commands/onboard-types.d.ts +0 -119
- package/dist/plugin-sdk/src/commands/signal-install.d.ts +0 -30
- package/dist/plugin-sdk/src/commands/status-all/agents.d.ts +0 -16
- package/dist/plugin-sdk/src/commands/status-all/channels.d.ts +0 -19
- package/dist/plugin-sdk/src/commands/status-all/diagnosis.d.ts +0 -62
- package/dist/plugin-sdk/src/commands/status-all/format.d.ts +0 -7
- package/dist/plugin-sdk/src/commands/status-all/gateway.d.ts +0 -5
- package/dist/plugin-sdk/src/commands/status-all/report-lines.d.ts +0 -44
- package/dist/plugin-sdk/src/commands/status-all.d.ts +0 -4
- package/dist/plugin-sdk/src/commands/status.acpx-bridge.d.ts +0 -19
- package/dist/plugin-sdk/src/commands/status.agent-local.d.ts +0 -16
- package/dist/plugin-sdk/src/commands/status.command.d.ts +0 -9
- package/dist/plugin-sdk/src/commands/status.d.ts +0 -3
- package/dist/plugin-sdk/src/commands/status.daemon.d.ts +0 -9
- package/dist/plugin-sdk/src/commands/status.format.d.ts +0 -12
- package/dist/plugin-sdk/src/commands/status.gateway-probe.d.ts +0 -6
- package/dist/plugin-sdk/src/commands/status.link-channel.d.ts +0 -10
- package/dist/plugin-sdk/src/commands/status.scan.d.ts +0 -46
- package/dist/plugin-sdk/src/commands/status.strict-agentic.d.ts +0 -18
- package/dist/plugin-sdk/src/commands/status.summary.d.ts +0 -5
- package/dist/plugin-sdk/src/commands/status.types.d.ts +0 -67
- package/dist/plugin-sdk/src/commands/status.update.d.ts +0 -23
- package/dist/plugin-sdk/src/commands/text-format.d.ts +0 -1
- package/dist/plugin-sdk/src/commands/wallet.d.ts +0 -300
- package/dist/plugin-sdk/src/commands/xai-oauth.d.ts +0 -17
- package/dist/plugin-sdk/src/config/agent-dirs.d.ts +0 -14
- package/dist/plugin-sdk/src/config/agent-limits.d.ts +0 -6
- package/dist/plugin-sdk/src/config/backup-rotation.d.ts +0 -5
- package/dist/plugin-sdk/src/config/cache-utils.d.ts +0 -6
- package/dist/plugin-sdk/src/config/channel-capabilities.d.ts +0 -6
- package/dist/plugin-sdk/src/config/commands.d.ts +0 -25
- package/dist/plugin-sdk/src/config/config-paths.d.ts +0 -10
- package/dist/plugin-sdk/src/config/config.d.ts +0 -7
- package/dist/plugin-sdk/src/config/dangerous-name-matching.d.ts +0 -12
- package/dist/plugin-sdk/src/config/defaults.d.ts +0 -19
- package/dist/plugin-sdk/src/config/discord-preview-streaming.d.ts +0 -25
- package/dist/plugin-sdk/src/config/env-preserve.d.ts +0 -10
- package/dist/plugin-sdk/src/config/env-substitution.d.ts +0 -36
- package/dist/plugin-sdk/src/config/env-vars.d.ts +0 -6
- package/dist/plugin-sdk/src/config/group-policy.d.ts +0 -49
- package/dist/plugin-sdk/src/config/includes-scan.d.ts +0 -4
- package/dist/plugin-sdk/src/config/includes.d.ts +0 -43
- package/dist/plugin-sdk/src/config/io.d.ts +0 -63
- package/dist/plugin-sdk/src/config/legacy-migrate.d.ts +0 -5
- package/dist/plugin-sdk/src/config/legacy.d.ts +0 -6
- package/dist/plugin-sdk/src/config/legacy.migrations.d.ts +0 -1
- package/dist/plugin-sdk/src/config/legacy.migrations.part-1.d.ts +0 -2
- package/dist/plugin-sdk/src/config/legacy.migrations.part-2.d.ts +0 -2
- package/dist/plugin-sdk/src/config/legacy.migrations.part-3.d.ts +0 -2
- package/dist/plugin-sdk/src/config/legacy.rules.d.ts +0 -2
- package/dist/plugin-sdk/src/config/legacy.shared.d.ts +0 -19
- package/dist/plugin-sdk/src/config/markdown-tables.d.ts +0 -7
- package/dist/plugin-sdk/src/config/merge-config.d.ts +0 -7
- package/dist/plugin-sdk/src/config/merge-patch.d.ts +0 -5
- package/dist/plugin-sdk/src/config/model-input.d.ts +0 -11
- package/dist/plugin-sdk/src/config/normalize-exec-safe-bin.d.ts +0 -2
- package/dist/plugin-sdk/src/config/normalize-paths.d.ts +0 -8
- package/dist/plugin-sdk/src/config/paths.d.ts +0 -57
- package/dist/plugin-sdk/src/config/plugin-auto-enable.d.ts +0 -15
- package/dist/plugin-sdk/src/config/plugins-allowlist.d.ts +0 -12
- package/dist/plugin-sdk/src/config/port-defaults.d.ts +0 -13
- package/dist/plugin-sdk/src/config/prototype-keys.d.ts +0 -1
- package/dist/plugin-sdk/src/config/runtime-group-policy.d.ts +0 -56
- package/dist/plugin-sdk/src/config/runtime-overrides.d.ts +0 -15
- package/dist/plugin-sdk/src/config/sat-runtime-ids.d.ts +0 -23
- package/dist/plugin-sdk/src/config/sessions/artifacts.d.ts +0 -6
- package/dist/plugin-sdk/src/config/sessions/delivery-info.d.ts +0 -16
- package/dist/plugin-sdk/src/config/sessions/disk-budget.d.ts +0 -28
- package/dist/plugin-sdk/src/config/sessions/group.d.ts +0 -11
- package/dist/plugin-sdk/src/config/sessions/main-session.d.ts +0 -43
- package/dist/plugin-sdk/src/config/sessions/metadata.d.ts +0 -16
- package/dist/plugin-sdk/src/config/sessions/paths.d.ts +0 -21
- package/dist/plugin-sdk/src/config/sessions/reset.d.ts +0 -43
- package/dist/plugin-sdk/src/config/sessions/session-file.d.ts +0 -15
- package/dist/plugin-sdk/src/config/sessions/session-key.d.ts +0 -8
- package/dist/plugin-sdk/src/config/sessions/store.d.ts +0 -124
- package/dist/plugin-sdk/src/config/sessions/transcript.d.ts +0 -32
- package/dist/plugin-sdk/src/config/sessions/types.d.ts +0 -273
- package/dist/plugin-sdk/src/config/sessions.d.ts +0 -13
- package/dist/plugin-sdk/src/config/talk.d.ts +0 -22
- package/dist/plugin-sdk/src/config/telegram-custom-commands.d.ts +0 -24
- package/dist/plugin-sdk/src/config/types.acp.d.ts +0 -28
- package/dist/plugin-sdk/src/config/types.agent-defaults.d.ts +0 -322
- package/dist/plugin-sdk/src/config/types.agents-shared.d.ts +0 -53
- package/dist/plugin-sdk/src/config/types.agents.d.ts +0 -71
- package/dist/plugin-sdk/src/config/types.approvals.d.ts +0 -26
- package/dist/plugin-sdk/src/config/types.auth.d.ts +0 -34
- package/dist/plugin-sdk/src/config/types.base.d.ts +0 -227
- package/dist/plugin-sdk/src/config/types.browser.d.ts +0 -65
- package/dist/plugin-sdk/src/config/types.channel-messaging-common.d.ts +0 -44
- package/dist/plugin-sdk/src/config/types.channels.d.ts +0 -53
- package/dist/plugin-sdk/src/config/types.cron.d.ts +0 -26
- package/dist/plugin-sdk/src/config/types.d.ts +0 -35
- package/dist/plugin-sdk/src/config/types.discord.d.ts +0 -283
- package/dist/plugin-sdk/src/config/types.fased.d.ts +0 -134
- package/dist/plugin-sdk/src/config/types.federation.d.ts +0 -319
- package/dist/plugin-sdk/src/config/types.gateway.d.ts +0 -313
- package/dist/plugin-sdk/src/config/types.googlechat.d.ts +0 -110
- package/dist/plugin-sdk/src/config/types.hooks.d.ts +0 -141
- package/dist/plugin-sdk/src/config/types.imessage.d.ts +0 -77
- package/dist/plugin-sdk/src/config/types.installs.d.ts +0 -36
- package/dist/plugin-sdk/src/config/types.irc.d.ts +0 -54
- package/dist/plugin-sdk/src/config/types.mcp.d.ts +0 -5
- package/dist/plugin-sdk/src/config/types.memory.d.ts +0 -59
- package/dist/plugin-sdk/src/config/types.messages.d.ts +0 -151
- package/dist/plugin-sdk/src/config/types.models.d.ts +0 -70
- package/dist/plugin-sdk/src/config/types.msteams.d.ts +0 -110
- package/dist/plugin-sdk/src/config/types.node-host.d.ts +0 -10
- package/dist/plugin-sdk/src/config/types.plugins.d.ts +0 -48
- package/dist/plugin-sdk/src/config/types.queue.d.ts +0 -14
- package/dist/plugin-sdk/src/config/types.sandbox.d.ts +0 -97
- package/dist/plugin-sdk/src/config/types.secrets.d.ts +0 -67
- package/dist/plugin-sdk/src/config/types.signal.d.ts +0 -46
- package/dist/plugin-sdk/src/config/types.skills.d.ts +0 -47
- package/dist/plugin-sdk/src/config/types.slack.d.ts +0 -181
- package/dist/plugin-sdk/src/config/types.telegram.d.ts +0 -199
- package/dist/plugin-sdk/src/config/types.tools.d.ts +0 -637
- package/dist/plugin-sdk/src/config/types.tts.d.ts +0 -78
- package/dist/plugin-sdk/src/config/types.wallet.d.ts +0 -88
- package/dist/plugin-sdk/src/config/types.whatsapp.d.ts +0 -101
- package/dist/plugin-sdk/src/config/validation.d.ts +0 -37
- package/dist/plugin-sdk/src/config/version.d.ts +0 -9
- package/dist/plugin-sdk/src/config/zod-schema.agent-defaults.d.ts +0 -308
- package/dist/plugin-sdk/src/config/zod-schema.agent-model.d.ts +0 -24
- package/dist/plugin-sdk/src/config/zod-schema.agent-runtime.d.ts +0 -1439
- package/dist/plugin-sdk/src/config/zod-schema.agents.d.ts +0 -621
- package/dist/plugin-sdk/src/config/zod-schema.allowdeny.d.ts +0 -13
- package/dist/plugin-sdk/src/config/zod-schema.approvals.d.ts +0 -15
- package/dist/plugin-sdk/src/config/zod-schema.channels.d.ts +0 -6
- package/dist/plugin-sdk/src/config/zod-schema.core.d.ts +0 -926
- package/dist/plugin-sdk/src/config/zod-schema.d.ts +0 -4763
- package/dist/plugin-sdk/src/config/zod-schema.hooks.d.ts +0 -83
- package/dist/plugin-sdk/src/config/zod-schema.installs.d.ts +0 -38
- package/dist/plugin-sdk/src/config/zod-schema.providers-core.d.ts +0 -3785
- package/dist/plugin-sdk/src/config/zod-schema.providers-whatsapp.d.ts +0 -235
- package/dist/plugin-sdk/src/config/zod-schema.providers.d.ts +0 -2261
- package/dist/plugin-sdk/src/config/zod-schema.sensitive.d.ts +0 -2
- package/dist/plugin-sdk/src/config/zod-schema.session.d.ts +0 -237
- package/dist/plugin-sdk/src/context-engine/types.d.ts +0 -6
- package/dist/plugin-sdk/src/cron/access-block.d.ts +0 -22
- package/dist/plugin-sdk/src/cron/delivery.d.ts +0 -10
- package/dist/plugin-sdk/src/cron/graph-context.d.ts +0 -45
- package/dist/plugin-sdk/src/cron/legacy-delivery.d.ts +0 -3
- package/dist/plugin-sdk/src/cron/normalize.d.ts +0 -9
- package/dist/plugin-sdk/src/cron/parse.d.ts +0 -1
- package/dist/plugin-sdk/src/cron/payload-migration.d.ts +0 -3
- package/dist/plugin-sdk/src/cron/run-detail-format.d.ts +0 -28
- package/dist/plugin-sdk/src/cron/run-detail.d.ts +0 -95
- package/dist/plugin-sdk/src/cron/run-log.d.ts +0 -65
- package/dist/plugin-sdk/src/cron/schedule.d.ts +0 -2
- package/dist/plugin-sdk/src/cron/service/jobs.d.ts +0 -23
- package/dist/plugin-sdk/src/cron/service/locked.d.ts +0 -2
- package/dist/plugin-sdk/src/cron/service/normalize.d.ts +0 -18
- package/dist/plugin-sdk/src/cron/service/ops.d.ts +0 -152
- package/dist/plugin-sdk/src/cron/service/run-lease.d.ts +0 -15
- package/dist/plugin-sdk/src/cron/service/state.d.ts +0 -154
- package/dist/plugin-sdk/src/cron/service/store.d.ts +0 -9
- package/dist/plugin-sdk/src/cron/service/timeout-policy.d.ts +0 -13
- package/dist/plugin-sdk/src/cron/service/timer.d.ts +0 -80
- package/dist/plugin-sdk/src/cron/service.d.ts +0 -122
- package/dist/plugin-sdk/src/cron/session-reaper.d.ts +0 -35
- package/dist/plugin-sdk/src/cron/stagger.d.ts +0 -8
- package/dist/plugin-sdk/src/cron/store.d.ts +0 -6
- package/dist/plugin-sdk/src/cron/task-adaptive-routing.d.ts +0 -21
- package/dist/plugin-sdk/src/cron/task-evaluator.d.ts +0 -28
- package/dist/plugin-sdk/src/cron/task-model-roles.d.ts +0 -21
- package/dist/plugin-sdk/src/cron/task-planner.d.ts +0 -37
- package/dist/plugin-sdk/src/cron/task-run-queue.d.ts +0 -270
- package/dist/plugin-sdk/src/cron/trusted-sources.d.ts +0 -28
- package/dist/plugin-sdk/src/cron/types.d.ts +0 -673
- package/dist/plugin-sdk/src/cron/webhook-url.d.ts +0 -1
- package/dist/plugin-sdk/src/daemon/arg-split.d.ts +0 -4
- package/dist/plugin-sdk/src/daemon/cmd-argv.d.ts +0 -3
- package/dist/plugin-sdk/src/daemon/cmd-set.d.ts +0 -7
- package/dist/plugin-sdk/src/daemon/constants.d.ts +0 -63
- package/dist/plugin-sdk/src/daemon/diagnostics.d.ts +0 -1
- package/dist/plugin-sdk/src/daemon/exec-file.d.ts +0 -7
- package/dist/plugin-sdk/src/daemon/launchd-plist.d.ts +0 -15
- package/dist/plugin-sdk/src/daemon/launchd.d.ts +0 -49
- package/dist/plugin-sdk/src/daemon/node-service.d.ts +0 -2
- package/dist/plugin-sdk/src/daemon/output.d.ts +0 -8
- package/dist/plugin-sdk/src/daemon/paths.d.ts +0 -3
- package/dist/plugin-sdk/src/daemon/runtime-binary.d.ts +0 -2
- package/dist/plugin-sdk/src/daemon/runtime-parse.d.ts +0 -1
- package/dist/plugin-sdk/src/daemon/schtasks-exec.d.ts +0 -5
- package/dist/plugin-sdk/src/daemon/schtasks.d.ts +0 -18
- package/dist/plugin-sdk/src/daemon/service-runtime.d.ts +0 -13
- package/dist/plugin-sdk/src/daemon/service-types.d.ts +0 -32
- package/dist/plugin-sdk/src/daemon/service.d.ts +0 -16
- package/dist/plugin-sdk/src/daemon/systemd-linger.d.ts +0 -15
- package/dist/plugin-sdk/src/daemon/systemd-system.d.ts +0 -28
- package/dist/plugin-sdk/src/daemon/systemd-unit.d.ts +0 -7
- package/dist/plugin-sdk/src/daemon/systemd.d.ts +0 -32
- package/dist/plugin-sdk/src/discord/accounts.d.ts +0 -21
- package/dist/plugin-sdk/src/discord/api.d.ts +0 -11
- package/dist/plugin-sdk/src/discord/audit.d.ts +0 -29
- package/dist/plugin-sdk/src/discord/chunk.d.ts +0 -20
- package/dist/plugin-sdk/src/discord/client.d.ts +0 -21
- package/dist/plugin-sdk/src/discord/components-registry.d.ts +0 -16
- package/dist/plugin-sdk/src/discord/components.d.ts +0 -196
- package/dist/plugin-sdk/src/discord/directory-live.d.ts +0 -4
- package/dist/plugin-sdk/src/discord/draft-chunking.d.ts +0 -6
- package/dist/plugin-sdk/src/discord/draft-stream.d.ts +0 -21
- package/dist/plugin-sdk/src/discord/gateway-logging.d.ts +0 -8
- package/dist/plugin-sdk/src/discord/guilds.d.ts +0 -6
- package/dist/plugin-sdk/src/discord/monitor/agent-components.d.ts +0 -55
- package/dist/plugin-sdk/src/discord/monitor/allow-list.d.ts +0 -176
- package/dist/plugin-sdk/src/discord/monitor/commands.d.ts +0 -2
- package/dist/plugin-sdk/src/discord/monitor/exec-approvals.d.ts +0 -55
- package/dist/plugin-sdk/src/discord/monitor/format.d.ts +0 -13
- package/dist/plugin-sdk/src/discord/monitor/gateway-error-guard.d.ts +0 -6
- package/dist/plugin-sdk/src/discord/monitor/gateway-plugin.d.ts +0 -8
- package/dist/plugin-sdk/src/discord/monitor/gateway-registry.d.ts +0 -9
- package/dist/plugin-sdk/src/discord/monitor/listeners.d.ts +0 -50
- package/dist/plugin-sdk/src/discord/monitor/message-handler.d.ts +0 -5
- package/dist/plugin-sdk/src/discord/monitor/message-handler.preflight.d.ts +0 -14
- package/dist/plugin-sdk/src/discord/monitor/message-handler.preflight.types.d.ts +0 -96
- package/dist/plugin-sdk/src/discord/monitor/message-handler.process.d.ts +0 -2
- package/dist/plugin-sdk/src/discord/monitor/message-utils.d.ts +0 -44
- package/dist/plugin-sdk/src/discord/monitor/model-picker-preferences.d.ts +0 -18
- package/dist/plugin-sdk/src/discord/monitor/model-picker.d.ts +0 -117
- package/dist/plugin-sdk/src/discord/monitor/native-command.d.ts +0 -26
- package/dist/plugin-sdk/src/discord/monitor/presence-cache.d.ts +0 -9
- package/dist/plugin-sdk/src/discord/monitor/presence.d.ts +0 -5
- package/dist/plugin-sdk/src/discord/monitor/provider.allowlist.d.ts +0 -14
- package/dist/plugin-sdk/src/discord/monitor/provider.d.ts +0 -34
- package/dist/plugin-sdk/src/discord/monitor/provider.lifecycle.d.ts +0 -28
- package/dist/plugin-sdk/src/discord/monitor/reply-context.d.ts +0 -17
- package/dist/plugin-sdk/src/discord/monitor/reply-delivery.d.ts +0 -37
- package/dist/plugin-sdk/src/discord/monitor/rest-fetch.d.ts +0 -2
- package/dist/plugin-sdk/src/discord/monitor/sender-identity.d.ts +0 -31
- package/dist/plugin-sdk/src/discord/monitor/system-events.d.ts +0 -2
- package/dist/plugin-sdk/src/discord/monitor/thread-bindings.config.d.ts +0 -11
- package/dist/plugin-sdk/src/discord/monitor/thread-bindings.d.ts +0 -8
- package/dist/plugin-sdk/src/discord/monitor/thread-bindings.discord-api.d.ts +0 -36
- package/dist/plugin-sdk/src/discord/monitor/thread-bindings.lifecycle.d.ts +0 -46
- package/dist/plugin-sdk/src/discord/monitor/thread-bindings.manager.d.ts +0 -18
- package/dist/plugin-sdk/src/discord/monitor/thread-bindings.messages.d.ts +0 -1
- package/dist/plugin-sdk/src/discord/monitor/thread-bindings.persona.d.ts +0 -6
- package/dist/plugin-sdk/src/discord/monitor/thread-bindings.state.d.ts +0 -80
- package/dist/plugin-sdk/src/discord/monitor/thread-bindings.types.d.ts +0 -77
- package/dist/plugin-sdk/src/discord/monitor/threading.d.ts +0 -106
- package/dist/plugin-sdk/src/discord/monitor/typing.d.ts +0 -5
- package/dist/plugin-sdk/src/discord/monitor.d.ts +0 -10
- package/dist/plugin-sdk/src/discord/monitor.gateway.d.ts +0 -12
- package/dist/plugin-sdk/src/discord/pluralkit.d.ts +0 -26
- package/dist/plugin-sdk/src/discord/probe.d.ts +0 -28
- package/dist/plugin-sdk/src/discord/resolve-channels.d.ts +0 -15
- package/dist/plugin-sdk/src/discord/resolve-users.d.ts +0 -14
- package/dist/plugin-sdk/src/discord/send.channels.d.ts +0 -17
- package/dist/plugin-sdk/src/discord/send.components.d.ts +0 -17
- package/dist/plugin-sdk/src/discord/send.d.ts +0 -10
- package/dist/plugin-sdk/src/discord/send.emojis-stickers.d.ts +0 -4
- package/dist/plugin-sdk/src/discord/send.guild.d.ts +0 -24
- package/dist/plugin-sdk/src/discord/send.messages.d.ts +0 -20
- package/dist/plugin-sdk/src/discord/send.outbound.d.ts +0 -57
- package/dist/plugin-sdk/src/discord/send.permissions.d.ts +0 -20
- package/dist/plugin-sdk/src/discord/send.reactions.d.ts +0 -15
- package/dist/plugin-sdk/src/discord/send.shared.d.ts +0 -85
- package/dist/plugin-sdk/src/discord/send.types.d.ts +0 -144
- package/dist/plugin-sdk/src/discord/targets.d.ts +0 -18
- package/dist/plugin-sdk/src/discord/token.d.ts +0 -11
- package/dist/plugin-sdk/src/discord/ui.d.ts +0 -19
- package/dist/plugin-sdk/src/discord/voice/command.d.ts +0 -15
- package/dist/plugin-sdk/src/discord/voice/manager.d.ts +0 -52
- package/dist/plugin-sdk/src/discord/voice-message.d.ts +0 -50
- package/dist/plugin-sdk/src/federation/access-token.d.ts +0 -34
- package/dist/plugin-sdk/src/federation/attestation.d.ts +0 -37
- package/dist/plugin-sdk/src/federation/auto-connect.d.ts +0 -103
- package/dist/plugin-sdk/src/federation/marketplace-capability-adapter.d.ts +0 -31
- package/dist/plugin-sdk/src/federation/marketplace-chat-command.d.ts +0 -13
- package/dist/plugin-sdk/src/federation/marketplace-delivery.d.ts +0 -61
- package/dist/plugin-sdk/src/federation/marketplace-direct-payment.d.ts +0 -36
- package/dist/plugin-sdk/src/federation/marketplace-escrow.d.ts +0 -58
- package/dist/plugin-sdk/src/federation/marketplace-service-kinds.d.ts +0 -23
- package/dist/plugin-sdk/src/federation/marketplace-task-ledger.d.ts +0 -12
- package/dist/plugin-sdk/src/federation/offers.d.ts +0 -258
- package/dist/plugin-sdk/src/federation/runtime.d.ts +0 -14
- package/dist/plugin-sdk/src/federation/settlement-evidence.d.ts +0 -27
- package/dist/plugin-sdk/src/gateway/a2a-http.d.ts +0 -25
- package/dist/plugin-sdk/src/gateway/a2a-settlement.d.ts +0 -36
- package/dist/plugin-sdk/src/gateway/agent-event-assistant-text.d.ts +0 -2
- package/dist/plugin-sdk/src/gateway/agent-prompt.d.ts +0 -6
- package/dist/plugin-sdk/src/gateway/assistant-identity.d.ts +0 -13
- package/dist/plugin-sdk/src/gateway/auth-rate-limit.d.ts +0 -67
- package/dist/plugin-sdk/src/gateway/auth.d.ts +0 -63
- package/dist/plugin-sdk/src/gateway/call.d.ts +0 -82
- package/dist/plugin-sdk/src/gateway/canvas-capability.d.ts +0 -14
- package/dist/plugin-sdk/src/gateway/chat-abort.d.ts +0 -70
- package/dist/plugin-sdk/src/gateway/chat-sanitize.d.ts +0 -4
- package/dist/plugin-sdk/src/gateway/client.d.ts +0 -66
- package/dist/plugin-sdk/src/gateway/control-plane-audit.d.ts +0 -10
- package/dist/plugin-sdk/src/gateway/control-ui-boot-check.d.ts +0 -22
- package/dist/plugin-sdk/src/gateway/control-ui-contract.d.ts +0 -7
- package/dist/plugin-sdk/src/gateway/control-ui-csp.d.ts +0 -1
- package/dist/plugin-sdk/src/gateway/control-ui-login.d.ts +0 -115
- package/dist/plugin-sdk/src/gateway/control-ui-shared.d.ts +0 -9
- package/dist/plugin-sdk/src/gateway/control-ui.d.ts +0 -36
- package/dist/plugin-sdk/src/gateway/credentials.d.ts +0 -34
- package/dist/plugin-sdk/src/gateway/device-auth.d.ts +0 -17
- package/dist/plugin-sdk/src/gateway/exec-approval-manager.d.ts +0 -38
- package/dist/plugin-sdk/src/gateway/federation-http.d.ts +0 -7
- package/dist/plugin-sdk/src/gateway/federation-marketplace.d.ts +0 -90
- package/dist/plugin-sdk/src/gateway/fedify-http.d.ts +0 -5
- package/dist/plugin-sdk/src/gateway/gateway-identity.d.ts +0 -5
- package/dist/plugin-sdk/src/gateway/hooks-mapping.d.ts +0 -80
- package/dist/plugin-sdk/src/gateway/hooks.d.ts +0 -102
- package/dist/plugin-sdk/src/gateway/http-auth-helpers.d.ts +0 -11
- package/dist/plugin-sdk/src/gateway/http-common.d.ts +0 -21
- package/dist/plugin-sdk/src/gateway/http-endpoint-helpers.d.ts +0 -13
- package/dist/plugin-sdk/src/gateway/http-utils.d.ts +0 -15
- package/dist/plugin-sdk/src/gateway/internal-call-auth.d.ts +0 -3
- package/dist/plugin-sdk/src/gateway/method-scopes.d.ts +0 -22
- package/dist/plugin-sdk/src/gateway/mutating-admin-rpc-rate-limit.d.ts +0 -29
- package/dist/plugin-sdk/src/gateway/net.d.ts +0 -83
- package/dist/plugin-sdk/src/gateway/node-command-policy.d.ts +0 -14
- package/dist/plugin-sdk/src/gateway/node-registry.d.ts +0 -60
- package/dist/plugin-sdk/src/gateway/open-responses.schema.d.ts +0 -765
- package/dist/plugin-sdk/src/gateway/openai-http.d.ts +0 -12
- package/dist/plugin-sdk/src/gateway/openresponses-http.d.ts +0 -21
- package/dist/plugin-sdk/src/gateway/openresponses-prompt.d.ts +0 -5
- package/dist/plugin-sdk/src/gateway/probe-auth.d.ts +0 -9
- package/dist/plugin-sdk/src/gateway/probe.d.ts +0 -26
- package/dist/plugin-sdk/src/gateway/protocol/client-info.d.ts +0 -58
- package/dist/plugin-sdk/src/gateway/protocol/index.d.ts +0 -1048
- package/dist/plugin-sdk/src/gateway/protocol/schema/agent.d.ts +0 -91
- package/dist/plugin-sdk/src/gateway/protocol/schema/agents-models-skills.d.ts +0 -1400
- package/dist/plugin-sdk/src/gateway/protocol/schema/channels.d.ts +0 -158
- package/dist/plugin-sdk/src/gateway/protocol/schema/commands.d.ts +0 -68
- package/dist/plugin-sdk/src/gateway/protocol/schema/config.d.ts +0 -115
- package/dist/plugin-sdk/src/gateway/protocol/schema/cron.d.ts +0 -1551
- package/dist/plugin-sdk/src/gateway/protocol/schema/devices.d.ts +0 -42
- package/dist/plugin-sdk/src/gateway/protocol/schema/error-codes.d.ts +0 -15
- package/dist/plugin-sdk/src/gateway/protocol/schema/exec-approvals.d.ts +0 -182
- package/dist/plugin-sdk/src/gateway/protocol/schema/frames.d.ts +0 -168
- package/dist/plugin-sdk/src/gateway/protocol/schema/logs-chat.d.ts +0 -45
- package/dist/plugin-sdk/src/gateway/protocol/schema/nodes.d.ts +0 -85
- package/dist/plugin-sdk/src/gateway/protocol/schema/primitives.d.ts +0 -4
- package/dist/plugin-sdk/src/gateway/protocol/schema/protocol-schemas.d.ts +0 -3
- package/dist/plugin-sdk/src/gateway/protocol/schema/push.d.ts +0 -15
- package/dist/plugin-sdk/src/gateway/protocol/schema/sessions.d.ts +0 -134
- package/dist/plugin-sdk/src/gateway/protocol/schema/snapshot.d.ts +0 -69
- package/dist/plugin-sdk/src/gateway/protocol/schema/types.d.ts +0 -245
- package/dist/plugin-sdk/src/gateway/protocol/schema/wizard.d.ts +0 -86
- package/dist/plugin-sdk/src/gateway/protocol/schema.d.ts +0 -18
- package/dist/plugin-sdk/src/gateway/security-path.d.ts +0 -15
- package/dist/plugin-sdk/src/gateway/server/readiness.d.ts +0 -6
- package/dist/plugin-sdk/src/gateway/server/ws-types.d.ts +0 -12
- package/dist/plugin-sdk/src/gateway/server-broadcast.d.ts +0 -17
- package/dist/plugin-sdk/src/gateway/server-channels.d.ts +0 -26
- package/dist/plugin-sdk/src/gateway/server-constants.d.ts +0 -10
- package/dist/plugin-sdk/src/gateway/server-http.d.ts +0 -131
- package/dist/plugin-sdk/src/gateway/server-methods/commands.d.ts +0 -11
- package/dist/plugin-sdk/src/gateway/server-methods/mutating-admin-rpc-audit.d.ts +0 -41
- package/dist/plugin-sdk/src/gateway/server-methods/nodes.helpers.d.ts +0 -20
- package/dist/plugin-sdk/src/gateway/server-methods/push.d.ts +0 -2
- package/dist/plugin-sdk/src/gateway/server-methods/types.d.ts +0 -106
- package/dist/plugin-sdk/src/gateway/server-model-catalog.d.ts +0 -17
- package/dist/plugin-sdk/src/gateway/server-shared.d.ts +0 -7
- package/dist/plugin-sdk/src/gateway/server-startup-readiness.d.ts +0 -21
- package/dist/plugin-sdk/src/gateway/server-startup-trace.d.ts +0 -29
- package/dist/plugin-sdk/src/gateway/session-compaction-checkpoints.d.ts +0 -24
- package/dist/plugin-sdk/src/gateway/session-utils.d.ts +0 -80
- package/dist/plugin-sdk/src/gateway/session-utils.fs.d.ts +0 -48
- package/dist/plugin-sdk/src/gateway/session-utils.types.d.ts +0 -106
- package/dist/plugin-sdk/src/gateway/tools-invoke-http.d.ts +0 -10
- package/dist/plugin-sdk/src/gateway/update-status.d.ts +0 -27
- 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/globals.d.ts +0 -11
- package/dist/plugin-sdk/src/hooks/config.d.ts +0 -11
- package/dist/plugin-sdk/src/hooks/frontmatter.d.ts +0 -5
- package/dist/plugin-sdk/src/hooks/internal-hooks.d.ts +0 -155
- package/dist/plugin-sdk/src/hooks/module-loader.d.ts +0 -18
- package/dist/plugin-sdk/src/hooks/types.d.ts +0 -62
- package/dist/plugin-sdk/src/image-generation/types.d.ts +0 -74
- package/dist/plugin-sdk/src/imessage/accounts.d.ts +0 -16
- package/dist/plugin-sdk/src/imessage/client.d.ts +0 -46
- package/dist/plugin-sdk/src/imessage/constants.d.ts +0 -2
- package/dist/plugin-sdk/src/imessage/monitor/abort-handler.d.ts +0 -9
- package/dist/plugin-sdk/src/imessage/monitor/deliver.d.ts +0 -14
- package/dist/plugin-sdk/src/imessage/monitor/echo-cache.d.ts +0 -9
- package/dist/plugin-sdk/src/imessage/monitor/inbound-processing.d.ts +0 -96
- package/dist/plugin-sdk/src/imessage/monitor/monitor-provider.d.ts +0 -7
- package/dist/plugin-sdk/src/imessage/monitor/parse-notification.d.ts +0 -2
- package/dist/plugin-sdk/src/imessage/monitor/runtime.d.ts +0 -4
- package/dist/plugin-sdk/src/imessage/monitor/types.d.ts +0 -37
- package/dist/plugin-sdk/src/imessage/monitor.d.ts +0 -2
- package/dist/plugin-sdk/src/imessage/probe.d.ts +0 -17
- package/dist/plugin-sdk/src/imessage/send.d.ts +0 -34
- package/dist/plugin-sdk/src/imessage/target-parsing-helpers.d.ts +0 -45
- package/dist/plugin-sdk/src/imessage/targets.d.ts +0 -40
- package/dist/plugin-sdk/src/infra/abort-signal.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/agent-events.d.ts +0 -24
- package/dist/plugin-sdk/src/infra/archive-path.d.ts +0 -12
- package/dist/plugin-sdk/src/infra/archive.d.ts +0 -46
- package/dist/plugin-sdk/src/infra/backoff.d.ts +0 -8
- package/dist/plugin-sdk/src/infra/binaries.d.ts +0 -3
- package/dist/plugin-sdk/src/infra/boundary-file-read.d.ts +0 -33
- package/dist/plugin-sdk/src/infra/boundary-path.d.ts +0 -38
- package/dist/plugin-sdk/src/infra/brew.d.ts +0 -8
- package/dist/plugin-sdk/src/infra/channel-activity.d.ts +0 -18
- package/dist/plugin-sdk/src/infra/channel-summary.d.ts +0 -6
- package/dist/plugin-sdk/src/infra/channels-status-issues.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/clawhub.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/control-ui-assets.d.ts +0 -32
- package/dist/plugin-sdk/src/infra/dedupe.d.ts +0 -12
- package/dist/plugin-sdk/src/infra/detect-package-manager.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/device-auth-store.d.ts +0 -19
- package/dist/plugin-sdk/src/infra/device-identity.d.ts +0 -13
- package/dist/plugin-sdk/src/infra/device-pairing.d.ts +0 -103
- package/dist/plugin-sdk/src/infra/diagnostic-events.d.ts +0 -140
- package/dist/plugin-sdk/src/infra/diagnostic-flags.d.ts +0 -4
- package/dist/plugin-sdk/src/infra/dotenv.d.ts +0 -13
- package/dist/plugin-sdk/src/infra/env.d.ts +0 -11
- package/dist/plugin-sdk/src/infra/errors.d.ts +0 -11
- package/dist/plugin-sdk/src/infra/exec-approval-reply.d.ts +0 -11
- package/dist/plugin-sdk/src/infra/exec-approval-surface.d.ts +0 -38
- package/dist/plugin-sdk/src/infra/exec-approvals-allowlist.d.ts +0 -69
- package/dist/plugin-sdk/src/infra/exec-approvals-analysis.d.ts +0 -78
- package/dist/plugin-sdk/src/infra/exec-approvals.d.ts +0 -147
- package/dist/plugin-sdk/src/infra/exec-command-resolution.d.ts +0 -45
- package/dist/plugin-sdk/src/infra/exec-obfuscation-detect.d.ts +0 -12
- package/dist/plugin-sdk/src/infra/exec-safe-bin-policy-profiles.d.ts +0 -24
- package/dist/plugin-sdk/src/infra/exec-safe-bin-policy-validator.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/exec-safe-bin-policy.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/exec-safe-bin-runtime-policy.d.ts +0 -25
- package/dist/plugin-sdk/src/infra/exec-safe-bin-trust.d.ts +0 -23
- package/dist/plugin-sdk/src/infra/exec-safety.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/exec-wrapper-resolution.d.ts +0 -48
- package/dist/plugin-sdk/src/infra/fased-exec-env.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/fased-root.d.ts +0 -10
- package/dist/plugin-sdk/src/infra/fasedhub.d.ts +0 -114
- package/dist/plugin-sdk/src/infra/fetch-headers.d.ts +0 -4
- package/dist/plugin-sdk/src/infra/fetch.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/file-identity.d.ts +0 -5
- package/dist/plugin-sdk/src/infra/file-lock.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/format-time/format-datetime.d.ts +0 -35
- package/dist/plugin-sdk/src/infra/format-time/format-duration.d.ts +0 -23
- package/dist/plugin-sdk/src/infra/format-time/format-relative.d.ts +0 -39
- package/dist/plugin-sdk/src/infra/fs-safe.d.ts +0 -43
- package/dist/plugin-sdk/src/infra/gemini-auth.d.ts +0 -16
- package/dist/plugin-sdk/src/infra/git-commit.d.ts +0 -4
- package/dist/plugin-sdk/src/infra/git-root.d.ts +0 -7
- package/dist/plugin-sdk/src/infra/hardlink-guards.d.ts +0 -6
- 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-events.d.ts +0 -21
- package/dist/plugin-sdk/src/infra/heartbeat-reason.d.ts +0 -5
- package/dist/plugin-sdk/src/infra/heartbeat-runner.d.ts +0 -46
- package/dist/plugin-sdk/src/infra/heartbeat-visibility.d.ts +0 -17
- package/dist/plugin-sdk/src/infra/heartbeat-wake.d.ts +0 -32
- package/dist/plugin-sdk/src/infra/home-dir.d.ts +0 -7
- package/dist/plugin-sdk/src/infra/host-env-security.d.ts +0 -26
- package/dist/plugin-sdk/src/infra/http-body.d.ts +0 -46
- package/dist/plugin-sdk/src/infra/install-flow.d.ts +0 -24
- package/dist/plugin-sdk/src/infra/install-mode-options.d.ts +0 -20
- package/dist/plugin-sdk/src/infra/install-package-dir.d.ts +0 -19
- package/dist/plugin-sdk/src/infra/install-safe-path.d.ts +0 -14
- package/dist/plugin-sdk/src/infra/install-source-utils.d.ts +0 -32
- package/dist/plugin-sdk/src/infra/json-file.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/json-files.d.ts +0 -5
- package/dist/plugin-sdk/src/infra/jsonl-socket.d.ts +0 -6
- package/dist/plugin-sdk/src/infra/machine-name.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/map-size.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/net/fetch-guard.d.ts +0 -28
- package/dist/plugin-sdk/src/infra/net/hostname.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/net/ssrf.d.ts +0 -35
- package/dist/plugin-sdk/src/infra/node-commands.d.ts +0 -4
- package/dist/plugin-sdk/src/infra/node-pairing.d.ts +0 -65
- package/dist/plugin-sdk/src/infra/node-shell.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/npm-integrity.d.ts +0 -38
- package/dist/plugin-sdk/src/infra/npm-pack-install.d.ts +0 -56
- package/dist/plugin-sdk/src/infra/npm-registry-spec.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/optional-runtime-dependency.d.ts +0 -6
- package/dist/plugin-sdk/src/infra/os-summary.d.ts +0 -7
- package/dist/plugin-sdk/src/infra/outbound/abort.d.ts +0 -8
- package/dist/plugin-sdk/src/infra/outbound/agent-delivery.d.ts +0 -46
- package/dist/plugin-sdk/src/infra/outbound/best-effort-delivery.d.ts +0 -13
- package/dist/plugin-sdk/src/infra/outbound/bound-delivery-router.d.ts +0 -16
- package/dist/plugin-sdk/src/infra/outbound/channel-adapters.d.ts +0 -15
- package/dist/plugin-sdk/src/infra/outbound/channel-adapters.discord.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/outbound/channel-resolution.d.ts +0 -8
- package/dist/plugin-sdk/src/infra/outbound/channel-selection.d.ts +0 -11
- package/dist/plugin-sdk/src/infra/outbound/channel-target.d.ts +0 -6
- package/dist/plugin-sdk/src/infra/outbound/conversation-id.d.ts +0 -4
- package/dist/plugin-sdk/src/infra/outbound/deliver.d.ts +0 -80
- package/dist/plugin-sdk/src/infra/outbound/delivery-queue.d.ts +0 -85
- package/dist/plugin-sdk/src/infra/outbound/directory-cache.d.ts +0 -24
- package/dist/plugin-sdk/src/infra/outbound/envelope.d.ts +0 -16
- package/dist/plugin-sdk/src/infra/outbound/format.d.ts +0 -41
- package/dist/plugin-sdk/src/infra/outbound/identity.d.ts +0 -8
- package/dist/plugin-sdk/src/infra/outbound/message-action-params.d.ts +0 -54
- package/dist/plugin-sdk/src/infra/outbound/message-action-runner.d.ts +0 -81
- package/dist/plugin-sdk/src/infra/outbound/message-action-spec.d.ts +0 -5
- package/dist/plugin-sdk/src/infra/outbound/message.d.ts +0 -87
- package/dist/plugin-sdk/src/infra/outbound/outbound-policy.d.ts +0 -32
- package/dist/plugin-sdk/src/infra/outbound/outbound-send-service.d.ts +0 -74
- package/dist/plugin-sdk/src/infra/outbound/outbound-session.d.ts +0 -31
- package/dist/plugin-sdk/src/infra/outbound/payloads.d.ts +0 -18
- package/dist/plugin-sdk/src/infra/outbound/session-binding-service.d.ts +0 -89
- package/dist/plugin-sdk/src/infra/outbound/session-context.d.ts +0 -12
- package/dist/plugin-sdk/src/infra/outbound/target-errors.d.ts +0 -6
- package/dist/plugin-sdk/src/infra/outbound/target-normalization.d.ts +0 -4
- package/dist/plugin-sdk/src/infra/outbound/target-resolver.d.ts +0 -53
- package/dist/plugin-sdk/src/infra/outbound/targets.d.ts +0 -87
- package/dist/plugin-sdk/src/infra/outbound/tool-payload.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/pairing-files.d.ts +0 -23
- package/dist/plugin-sdk/src/infra/pairing-pending.d.ts +0 -13
- package/dist/plugin-sdk/src/infra/pairing-token.d.ts +0 -3
- package/dist/plugin-sdk/src/infra/path-alias-guards.d.ts +0 -18
- package/dist/plugin-sdk/src/infra/path-guards.d.ts +0 -5
- package/dist/plugin-sdk/src/infra/path-prepend.d.ts +0 -6
- package/dist/plugin-sdk/src/infra/path-safety.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/plain-object.d.ts +0 -4
- package/dist/plugin-sdk/src/infra/ports-format.d.ts +0 -5
- package/dist/plugin-sdk/src/infra/ports-inspect.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/ports-lsof.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/ports-probe.d.ts +0 -5
- package/dist/plugin-sdk/src/infra/ports-types.d.ts +0 -18
- package/dist/plugin-sdk/src/infra/ports.d.ts +0 -14
- package/dist/plugin-sdk/src/infra/prototype-keys.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/provider-usage.auth.d.ts +0 -11
- package/dist/plugin-sdk/src/infra/provider-usage.d.ts +0 -4
- package/dist/plugin-sdk/src/infra/provider-usage.fetch.claude.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/provider-usage.fetch.codex.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/provider-usage.fetch.copilot.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/provider-usage.fetch.d.ts +0 -6
- package/dist/plugin-sdk/src/infra/provider-usage.fetch.gemini.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/provider-usage.fetch.minimax.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/provider-usage.fetch.shared.d.ts +0 -12
- package/dist/plugin-sdk/src/infra/provider-usage.fetch.zai.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/provider-usage.format.d.ts +0 -13
- package/dist/plugin-sdk/src/infra/provider-usage.load.d.ts +0 -12
- package/dist/plugin-sdk/src/infra/provider-usage.shared.d.ts +0 -8
- package/dist/plugin-sdk/src/infra/provider-usage.types.d.ts +0 -17
- package/dist/plugin-sdk/src/infra/push-apns.d.ts +0 -83
- package/dist/plugin-sdk/src/infra/restart-sentinel.d.ts +0 -50
- package/dist/plugin-sdk/src/infra/restart-stale-pids.d.ts +0 -13
- package/dist/plugin-sdk/src/infra/restart.d.ts +0 -72
- package/dist/plugin-sdk/src/infra/retry-policy.d.ts +0 -25
- package/dist/plugin-sdk/src/infra/retry.d.ts +0 -21
- package/dist/plugin-sdk/src/infra/runtime-guard.d.ts +0 -21
- package/dist/plugin-sdk/src/infra/runtime-status.d.ts +0 -8
- package/dist/plugin-sdk/src/infra/safe-open-sync.d.ts +0 -23
- package/dist/plugin-sdk/src/infra/scp-host.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/secure-random.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/session-cost-usage.d.ts +0 -45
- package/dist/plugin-sdk/src/infra/session-cost-usage.types.d.ts +0 -153
- package/dist/plugin-sdk/src/infra/session-maintenance-warning.d.ts +0 -10
- package/dist/plugin-sdk/src/infra/shell-env.d.ts +0 -34
- package/dist/plugin-sdk/src/infra/skills-remote.d.ts +0 -25
- package/dist/plugin-sdk/src/infra/system-events.d.ts +0 -20
- package/dist/plugin-sdk/src/infra/system-message.d.ts +0 -3
- package/dist/plugin-sdk/src/infra/system-presence.d.ts +0 -45
- package/dist/plugin-sdk/src/infra/system-run-command.d.ts +0 -30
- package/dist/plugin-sdk/src/infra/tailnet.d.ts +0 -7
- package/dist/plugin-sdk/src/infra/tailscale.d.ts +0 -34
- package/dist/plugin-sdk/src/infra/tls/fingerprint.d.ts +0 -1
- package/dist/plugin-sdk/src/infra/tls/gateway.d.ts +0 -16
- package/dist/plugin-sdk/src/infra/tmp-fased-dir.d.ts +0 -20
- package/dist/plugin-sdk/src/infra/transport-ready.d.ts +0 -16
- package/dist/plugin-sdk/src/infra/unhandled-rejections.d.ts +0 -15
- package/dist/plugin-sdk/src/infra/update-channels.d.ts +0 -36
- package/dist/plugin-sdk/src/infra/update-check.d.ts +0 -69
- package/dist/plugin-sdk/src/infra/update-global.d.ts +0 -29
- package/dist/plugin-sdk/src/infra/warning-filter.d.ts +0 -7
- package/dist/plugin-sdk/src/infra/ws.d.ts +0 -2
- package/dist/plugin-sdk/src/infra/wsl.d.ts +0 -11
- package/dist/plugin-sdk/src/line/accounts.d.ts +0 -10
- package/dist/plugin-sdk/src/line/actions.d.ts +0 -22
- package/dist/plugin-sdk/src/line/auto-reply-delivery.d.ts +0 -38
- package/dist/plugin-sdk/src/line/bot-access.d.ts +0 -17
- package/dist/plugin-sdk/src/line/bot-handlers.d.ts +0 -13
- package/dist/plugin-sdk/src/line/bot-message-context.d.ts +0 -118
- package/dist/plugin-sdk/src/line/bot.d.ts +0 -24
- package/dist/plugin-sdk/src/line/channel-access-token.d.ts +0 -4
- package/dist/plugin-sdk/src/line/config-schema.d.ts +0 -64
- package/dist/plugin-sdk/src/line/download.d.ts +0 -7
- package/dist/plugin-sdk/src/line/flex-templates/basic-cards.d.ts +0 -46
- package/dist/plugin-sdk/src/line/flex-templates/common.d.ts +0 -2
- package/dist/plugin-sdk/src/line/flex-templates/media-control-cards.d.ts +0 -73
- package/dist/plugin-sdk/src/line/flex-templates/message.d.ts +0 -6
- package/dist/plugin-sdk/src/line/flex-templates/schedule-cards.d.ts +0 -55
- package/dist/plugin-sdk/src/line/flex-templates/types.d.ts +0 -19
- package/dist/plugin-sdk/src/line/flex-templates.d.ts +0 -5
- package/dist/plugin-sdk/src/line/logging.d.ts +0 -2
- package/dist/plugin-sdk/src/line/markdown-to-line.d.ts +0 -72
- package/dist/plugin-sdk/src/line/monitor.d.ts +0 -28
- package/dist/plugin-sdk/src/line/probe.d.ts +0 -2
- package/dist/plugin-sdk/src/line/reply-chunks.d.ts +0 -24
- package/dist/plugin-sdk/src/line/send.d.ts +0 -91
- package/dist/plugin-sdk/src/line/signature.d.ts +0 -1
- package/dist/plugin-sdk/src/line/template-messages.d.ts +0 -100
- package/dist/plugin-sdk/src/line/types.d.ts +0 -113
- package/dist/plugin-sdk/src/line/webhook-node.d.ts +0 -15
- package/dist/plugin-sdk/src/line/webhook-utils.d.ts +0 -3
- package/dist/plugin-sdk/src/line/webhook.d.ts +0 -19
- package/dist/plugin-sdk/src/link-understanding/apply.d.ts +0 -10
- 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 -13
- package/dist/plugin-sdk/src/logger.d.ts +0 -6
- package/dist/plugin-sdk/src/logging/config.d.ts +0 -4
- package/dist/plugin-sdk/src/logging/console.d.ts +0 -23
- package/dist/plugin-sdk/src/logging/diagnostic-session-state.d.ts +0 -30
- package/dist/plugin-sdk/src/logging/diagnostic-stability.d.ts +0 -85
- package/dist/plugin-sdk/src/logging/diagnostic.d.ts +0 -65
- package/dist/plugin-sdk/src/logging/env-log-level.d.ts +0 -2
- package/dist/plugin-sdk/src/logging/levels.d.ts +0 -5
- package/dist/plugin-sdk/src/logging/logger.d.ts +0 -44
- package/dist/plugin-sdk/src/logging/node-require.d.ts +0 -1
- package/dist/plugin-sdk/src/logging/redact-identifier.d.ts +0 -4
- package/dist/plugin-sdk/src/logging/redact.d.ts +0 -9
- package/dist/plugin-sdk/src/logging/state.d.ts +0 -19
- package/dist/plugin-sdk/src/logging/subsystem.d.ts +0 -18
- package/dist/plugin-sdk/src/logging/timestamps.d.ts +0 -1
- package/dist/plugin-sdk/src/logging.d.ts +0 -10
- package/dist/plugin-sdk/src/managed/federation.d.ts +0 -16
- package/dist/plugin-sdk/src/markdown/code-spans.d.ts +0 -10
- package/dist/plugin-sdk/src/markdown/fences.d.ts +0 -10
- package/dist/plugin-sdk/src/markdown/frontmatter.d.ts +0 -2
- package/dist/plugin-sdk/src/markdown/ir.d.ts +0 -32
- package/dist/plugin-sdk/src/markdown/render.d.ts +0 -18
- package/dist/plugin-sdk/src/markdown/tables.d.ts +0 -2
- package/dist/plugin-sdk/src/markdown/whatsapp.d.ts +0 -14
- package/dist/plugin-sdk/src/media/audio-tags.d.ts +0 -10
- package/dist/plugin-sdk/src/media/audio.d.ts +0 -19
- package/dist/plugin-sdk/src/media/base64.d.ts +0 -6
- package/dist/plugin-sdk/src/media/constants.d.ts +0 -7
- package/dist/plugin-sdk/src/media/fetch.d.ts +0 -24
- package/dist/plugin-sdk/src/media/image-ops.d.ts +0 -41
- package/dist/plugin-sdk/src/media/inbound-path-policy.d.ts +0 -18
- package/dist/plugin-sdk/src/media/input-files.d.ts +0 -95
- package/dist/plugin-sdk/src/media/local-roots.d.ts +0 -3
- package/dist/plugin-sdk/src/media/mime.d.ts +0 -16
- package/dist/plugin-sdk/src/media/outbound-attachment.d.ts +0 -6
- package/dist/plugin-sdk/src/media/parse.d.ts +0 -8
- package/dist/plugin-sdk/src/media/png-encode.d.ts +0 -8
- package/dist/plugin-sdk/src/media/read-response-with-limit.d.ts +0 -7
- package/dist/plugin-sdk/src/media/sniff-mime-from-base64.d.ts +0 -1
- package/dist/plugin-sdk/src/media/store.d.ts +0 -33
- package/dist/plugin-sdk/src/media-understanding/apply.d.ts +0 -19
- package/dist/plugin-sdk/src/media-understanding/attachments.d.ts +0 -49
- package/dist/plugin-sdk/src/media-understanding/audio-preflight.d.ts +0 -16
- package/dist/plugin-sdk/src/media-understanding/concurrency.d.ts +0 -1
- package/dist/plugin-sdk/src/media-understanding/defaults.d.ts +0 -14
- package/dist/plugin-sdk/src/media-understanding/errors.d.ts +0 -6
- package/dist/plugin-sdk/src/media-understanding/format.d.ts +0 -7
- package/dist/plugin-sdk/src/media-understanding/fs.d.ts +0 -1
- package/dist/plugin-sdk/src/media-understanding/output-extract.d.ts +0 -2
- package/dist/plugin-sdk/src/media-understanding/providers/anthropic/index.d.ts +0 -2
- package/dist/plugin-sdk/src/media-understanding/providers/deepgram/audio.d.ts +0 -4
- package/dist/plugin-sdk/src/media-understanding/providers/deepgram/index.d.ts +0 -2
- package/dist/plugin-sdk/src/media-understanding/providers/google/audio.d.ts +0 -3
- package/dist/plugin-sdk/src/media-understanding/providers/google/index.d.ts +0 -2
- package/dist/plugin-sdk/src/media-understanding/providers/google/inline-data.d.ts +0 -20
- package/dist/plugin-sdk/src/media-understanding/providers/google/video.d.ts +0 -3
- package/dist/plugin-sdk/src/media-understanding/providers/groq/index.d.ts +0 -2
- package/dist/plugin-sdk/src/media-understanding/providers/image.d.ts +0 -2
- package/dist/plugin-sdk/src/media-understanding/providers/index.d.ts +0 -4
- package/dist/plugin-sdk/src/media-understanding/providers/minimax/index.d.ts +0 -2
- package/dist/plugin-sdk/src/media-understanding/providers/mistral/index.d.ts +0 -2
- package/dist/plugin-sdk/src/media-understanding/providers/moonshot/index.d.ts +0 -2
- package/dist/plugin-sdk/src/media-understanding/providers/moonshot/video.d.ts +0 -3
- package/dist/plugin-sdk/src/media-understanding/providers/openai/audio.d.ts +0 -3
- package/dist/plugin-sdk/src/media-understanding/providers/openai/index.d.ts +0 -3
- package/dist/plugin-sdk/src/media-understanding/providers/shared.d.ts +0 -20
- package/dist/plugin-sdk/src/media-understanding/providers/zai/index.d.ts +0 -2
- package/dist/plugin-sdk/src/media-understanding/resolve.d.ts +0 -44
- package/dist/plugin-sdk/src/media-understanding/runner.d.ts +0 -39
- package/dist/plugin-sdk/src/media-understanding/runner.entries.d.ts +0 -33
- package/dist/plugin-sdk/src/media-understanding/scope.d.ts +0 -9
- package/dist/plugin-sdk/src/media-understanding/types.d.ts +0 -93
- package/dist/plugin-sdk/src/media-understanding/video.d.ts +0 -2
- package/dist/plugin-sdk/src/memory/backend-config.d.ts +0 -55
- package/dist/plugin-sdk/src/memory/batch-error-utils.d.ts +0 -15
- package/dist/plugin-sdk/src/memory/batch-gemini.d.ts +0 -51
- package/dist/plugin-sdk/src/memory/batch-http.d.ts +0 -8
- package/dist/plugin-sdk/src/memory/batch-openai.d.ts +0 -20
- package/dist/plugin-sdk/src/memory/batch-output.d.ts +0 -23
- package/dist/plugin-sdk/src/memory/batch-provider-common.d.ts +0 -9
- package/dist/plugin-sdk/src/memory/batch-runner.d.ts +0 -38
- package/dist/plugin-sdk/src/memory/batch-upload.d.ts +0 -6
- package/dist/plugin-sdk/src/memory/batch-utils.d.ts +0 -11
- package/dist/plugin-sdk/src/memory/batch-voyage.d.ts +0 -21
- package/dist/plugin-sdk/src/memory/embedding-chunk-limits.d.ts +0 -3
- package/dist/plugin-sdk/src/memory/embedding-input-limits.d.ts +0 -2
- package/dist/plugin-sdk/src/memory/embedding-model-limits.d.ts +0 -2
- package/dist/plugin-sdk/src/memory/embeddings-debug.d.ts +0 -1
- package/dist/plugin-sdk/src/memory/embeddings-gemini.d.ts +0 -16
- package/dist/plugin-sdk/src/memory/embeddings-mistral.d.ts +0 -15
- package/dist/plugin-sdk/src/memory/embeddings-openai.d.ts +0 -15
- package/dist/plugin-sdk/src/memory/embeddings-remote-client.d.ts +0 -12
- package/dist/plugin-sdk/src/memory/embeddings-remote-fetch.d.ts +0 -8
- package/dist/plugin-sdk/src/memory/embeddings-remote-provider.d.ts +0 -21
- package/dist/plugin-sdk/src/memory/embeddings-voyage.d.ts +0 -15
- package/dist/plugin-sdk/src/memory/embeddings.d.ts +0 -48
- package/dist/plugin-sdk/src/memory/filesystem-manager.d.ts +0 -38
- package/dist/plugin-sdk/src/memory/fs-utils.d.ts +0 -11
- package/dist/plugin-sdk/src/memory/hybrid.d.ts +0 -45
- package/dist/plugin-sdk/src/memory/index.d.ts +0 -4
- package/dist/plugin-sdk/src/memory/internal.d.ts +0 -38
- package/dist/plugin-sdk/src/memory/inventory.d.ts +0 -150
- package/dist/plugin-sdk/src/memory/manager-embedding-ops.d.ts +0 -42
- package/dist/plugin-sdk/src/memory/manager-search.d.ts +0 -60
- package/dist/plugin-sdk/src/memory/manager-sync-ops.d.ts +0 -137
- package/dist/plugin-sdk/src/memory/manager.d.ts +0 -111
- package/dist/plugin-sdk/src/memory/memory-schema.d.ts +0 -10
- package/dist/plugin-sdk/src/memory/mmr.d.ts +0 -62
- package/dist/plugin-sdk/src/memory/node-llama.d.ts +0 -8
- package/dist/plugin-sdk/src/memory/post-json.d.ts +0 -10
- package/dist/plugin-sdk/src/memory/qmd-manager.d.ts +0 -134
- package/dist/plugin-sdk/src/memory/qmd-query-parser.d.ts +0 -9
- package/dist/plugin-sdk/src/memory/qmd-scope.d.ts +0 -5
- package/dist/plugin-sdk/src/memory/query-expansion.d.ts +0 -40
- package/dist/plugin-sdk/src/memory/remote-http.d.ts +0 -9
- package/dist/plugin-sdk/src/memory/repair-audit-plan.d.ts +0 -68
- package/dist/plugin-sdk/src/memory/repair-cli-preview-contract.d.ts +0 -22
- package/dist/plugin-sdk/src/memory/repair-contracts.d.ts +0 -80
- package/dist/plugin-sdk/src/memory/repair-dashboard-preview-contract.d.ts +0 -65
- package/dist/plugin-sdk/src/memory/repair-execution-policy.d.ts +0 -36
- package/dist/plugin-sdk/src/memory/repair-execution-request-contract.d.ts +0 -43
- package/dist/plugin-sdk/src/memory/repair-executor-fs-safety-contract.d.ts +0 -33
- package/dist/plugin-sdk/src/memory/repair-executor-gate.d.ts +0 -27
- package/dist/plugin-sdk/src/memory/repair-executor-lock-contract.d.ts +0 -40
- package/dist/plugin-sdk/src/memory/repair-executor-result-contract.d.ts +0 -72
- package/dist/plugin-sdk/src/memory/repair-executor.d.ts +0 -60
- package/dist/plugin-sdk/src/memory/repair-preflight-cli-preview-contract.d.ts +0 -15
- package/dist/plugin-sdk/src/memory/repair-preflight-dashboard-preview-contract.d.ts +0 -50
- package/dist/plugin-sdk/src/memory/repair-preflight-pipeline-contract.d.ts +0 -35
- package/dist/plugin-sdk/src/memory/search-manager.d.ts +0 -11
- package/dist/plugin-sdk/src/memory/session-files.d.ts +0 -14
- package/dist/plugin-sdk/src/memory/sqlite-vec.d.ts +0 -9
- package/dist/plugin-sdk/src/memory/sqlite.d.ts +0 -1
- package/dist/plugin-sdk/src/memory/status-format.d.ts +0 -28
- package/dist/plugin-sdk/src/memory/temporal-decay.d.ts +0 -25
- package/dist/plugin-sdk/src/memory/types.d.ts +0 -94
- package/dist/plugin-sdk/src/mining/chat-command.d.ts +0 -19
- package/dist/plugin-sdk/src/mining/mainnet-sync.d.ts +0 -32
- package/dist/plugin-sdk/src/pairing/pairing-challenge.d.ts +0 -32
- package/dist/plugin-sdk/src/pairing/pairing-labels.d.ts +0 -2
- package/dist/plugin-sdk/src/pairing/pairing-messages.d.ts +0 -6
- package/dist/plugin-sdk/src/pairing/pairing-store.d.ts +0 -50
- package/dist/plugin-sdk/src/plugin-sdk/account-id.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/agent-media-payload.d.ts +0 -12
- package/dist/plugin-sdk/src/plugin-sdk/allow-from.d.ts +0 -32
- package/dist/plugin-sdk/src/plugin-sdk/channel-core.d.ts +0 -18
- package/dist/plugin-sdk/src/plugin-sdk/command-auth.d.ts +0 -27
- package/dist/plugin-sdk/src/plugin-sdk/config-paths.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/device-pair.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/discord.d.ts +0 -10
- package/dist/plugin-sdk/src/plugin-sdk/fetch-auth.d.ts +0 -13
- package/dist/plugin-sdk/src/plugin-sdk/file-lock.d.ts +0 -16
- package/dist/plugin-sdk/src/plugin-sdk/group-access.d.ts +0 -16
- package/dist/plugin-sdk/src/plugin-sdk/image-generation.d.ts +0 -2
- package/dist/plugin-sdk/src/plugin-sdk/index.d.ts +0 -163
- package/dist/plugin-sdk/src/plugin-sdk/json-store.d.ts +0 -5
- package/dist/plugin-sdk/src/plugin-sdk/onboarding.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/pairing-access.d.ts +0 -18
- package/dist/plugin-sdk/src/plugin-sdk/persistent-dedupe.d.ts +0 -20
- package/dist/plugin-sdk/src/plugin-sdk/provider-auth-result.d.ts +0 -14
- package/dist/plugin-sdk/src/plugin-sdk/realtime-transcription.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/realtime-voice.d.ts +0 -3
- package/dist/plugin-sdk/src/plugin-sdk/reply-payload.d.ts +0 -22
- package/dist/plugin-sdk/src/plugin-sdk/run-command.d.ts +0 -12
- package/dist/plugin-sdk/src/plugin-sdk/runtime.d.ts +0 -10
- package/dist/plugin-sdk/src/plugin-sdk/sat-runtime.d.ts +0 -32
- package/dist/plugin-sdk/src/plugin-sdk/slack-message-actions.d.ts +0 -11
- package/dist/plugin-sdk/src/plugin-sdk/slack.d.ts +0 -9
- package/dist/plugin-sdk/src/plugin-sdk/ssrf-policy.d.ts +0 -12
- package/dist/plugin-sdk/src/plugin-sdk/status-helpers.d.ts +0 -88
- package/dist/plugin-sdk/src/plugin-sdk/telegram.d.ts +0 -9
- package/dist/plugin-sdk/src/plugin-sdk/temp-path.d.ts +0 -12
- package/dist/plugin-sdk/src/plugin-sdk/text-chunking.d.ts +0 -1
- package/dist/plugin-sdk/src/plugin-sdk/tool-send.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/video-generation.d.ts +0 -4
- package/dist/plugin-sdk/src/plugin-sdk/webhook-path.d.ts +0 -6
- package/dist/plugin-sdk/src/plugin-sdk/webhook-targets.d.ts +0 -23
- package/dist/plugin-sdk/src/plugin-sdk/whatsapp.d.ts +0 -11
- package/dist/plugin-sdk/src/plugins/bundled-dir.d.ts +0 -7
- package/dist/plugin-sdk/src/plugins/capability-provider-runtime.d.ts +0 -9
- package/dist/plugin-sdk/src/plugins/commands.d.ts +0 -85
- package/dist/plugin-sdk/src/plugins/config-schema.d.ts +0 -2
- package/dist/plugin-sdk/src/plugins/config-state.d.ts +0 -86
- package/dist/plugin-sdk/src/plugins/discovery.d.ts +0 -25
- package/dist/plugin-sdk/src/plugins/hook-runner-global.d.ts +0 -37
- package/dist/plugin-sdk/src/plugins/hooks.d.ts +0 -55
- package/dist/plugin-sdk/src/plugins/http-path.d.ts +0 -1
- package/dist/plugin-sdk/src/plugins/http-registry.d.ts +0 -13
- package/dist/plugin-sdk/src/plugins/install.d.ts +0 -93
- package/dist/plugin-sdk/src/plugins/loader.d.ts +0 -35
- package/dist/plugin-sdk/src/plugins/logger.d.ts +0 -9
- package/dist/plugin-sdk/src/plugins/manifest-registry.d.ts +0 -53
- package/dist/plugin-sdk/src/plugins/manifest.d.ts +0 -136
- package/dist/plugin-sdk/src/plugins/memory-embedding-providers.d.ts +0 -15
- package/dist/plugin-sdk/src/plugins/min-host-version.d.ts +0 -28
- package/dist/plugin-sdk/src/plugins/package-extensions.d.ts +0 -23
- package/dist/plugin-sdk/src/plugins/path-safety.d.ts +0 -5
- package/dist/plugin-sdk/src/plugins/provider-discovery.d.ts +0 -13
- package/dist/plugin-sdk/src/plugins/provider-runtime.runtime.d.ts +0 -8
- package/dist/plugin-sdk/src/plugins/providers.d.ts +0 -28
- package/dist/plugin-sdk/src/plugins/registry.d.ts +0 -171
- package/dist/plugin-sdk/src/plugins/runtime/admin-rpc-helper.d.ts +0 -71
- package/dist/plugin-sdk/src/plugins/runtime/index.d.ts +0 -4
- package/dist/plugin-sdk/src/plugins/runtime/native-deps.d.ts +0 -8
- package/dist/plugin-sdk/src/plugins/runtime/scoped.d.ts +0 -6
- package/dist/plugin-sdk/src/plugins/runtime/session-read-helper.d.ts +0 -115
- package/dist/plugin-sdk/src/plugins/runtime/types.d.ts +0 -370
- package/dist/plugin-sdk/src/plugins/runtime.d.ts +0 -6
- package/dist/plugin-sdk/src/plugins/schema-validator.d.ts +0 -10
- package/dist/plugin-sdk/src/plugins/slots.d.ts +0 -24
- package/dist/plugin-sdk/src/plugins/tools.d.ts +0 -14
- package/dist/plugin-sdk/src/plugins/types.d.ts +0 -684
- package/dist/plugin-sdk/src/plugins/uninstall.d.ts +0 -45
- package/dist/plugin-sdk/src/polls.d.ts +0 -31
- package/dist/plugin-sdk/src/process/command-queue.d.ts +0 -63
- package/dist/plugin-sdk/src/process/exec.d.ts +0 -31
- package/dist/plugin-sdk/src/process/kill-tree.d.ts +0 -12
- package/dist/plugin-sdk/src/process/lanes.d.ts +0 -6
- package/dist/plugin-sdk/src/process/spawn-utils.d.ts +0 -26
- package/dist/plugin-sdk/src/process/supervisor/adapters/child.d.ts +0 -10
- package/dist/plugin-sdk/src/process/supervisor/adapters/env.d.ts +0 -1
- package/dist/plugin-sdk/src/process/supervisor/adapters/pty.d.ts +0 -11
- package/dist/plugin-sdk/src/process/supervisor/index.d.ts +0 -4
- package/dist/plugin-sdk/src/process/supervisor/registry.d.ts +0 -21
- package/dist/plugin-sdk/src/process/supervisor/supervisor.d.ts +0 -2
- package/dist/plugin-sdk/src/process/supervisor/types.d.ts +0 -92
- package/dist/plugin-sdk/src/project.d.ts +0 -3
- package/dist/plugin-sdk/src/providers/cloudflare-ai-gateway-shared.d.ts +0 -84
- package/dist/plugin-sdk/src/providers/github-copilot-models.d.ts +0 -5
- package/dist/plugin-sdk/src/providers/github-copilot-token.d.ts +0 -22
- package/dist/plugin-sdk/src/providers/health.d.ts +0 -15
- package/dist/plugin-sdk/src/providers/huggingface-models.d.ts +0 -47
- package/dist/plugin-sdk/src/providers/litellm-models.d.ts +0 -30
- package/dist/plugin-sdk/src/providers/opencode-zen-shared.d.ts +0 -7
- package/dist/plugin-sdk/src/providers/refreshed-model-capabilities.d.ts +0 -14
- package/dist/plugin-sdk/src/providers/registry.d.ts +0 -204
- package/dist/plugin-sdk/src/providers/synthetic-models.d.ts +0 -31
- package/dist/plugin-sdk/src/providers/together-models.d.ts +0 -38
- package/dist/plugin-sdk/src/providers/venice-models.d.ts +0 -175
- package/dist/plugin-sdk/src/providers/vercel-ai-gateway-models.d.ts +0 -113
- package/dist/plugin-sdk/src/providers/xiaomi-models.d.ts +0 -21
- package/dist/plugin-sdk/src/realtime-transcription/provider-registry.d.ts +0 -7
- package/dist/plugin-sdk/src/realtime-transcription/provider-types.d.ts +0 -26
- package/dist/plugin-sdk/src/realtime-voice/provider-registry.d.ts +0 -7
- package/dist/plugin-sdk/src/realtime-voice/provider-types.d.ts +0 -55
- package/dist/plugin-sdk/src/routing/account-id.d.ts +0 -3
- package/dist/plugin-sdk/src/routing/account-lookup.d.ts +0 -1
- package/dist/plugin-sdk/src/routing/bindings.d.ts +0 -11
- package/dist/plugin-sdk/src/routing/resolve-route.d.ts +0 -42
- package/dist/plugin-sdk/src/routing/session-key.d.ts +0 -48
- package/dist/plugin-sdk/src/runtime.d.ts +0 -7
- package/dist/plugin-sdk/src/secrets/json-pointer.d.ts +0 -6
- package/dist/plugin-sdk/src/secrets/ref-contract.d.ts +0 -19
- package/dist/plugin-sdk/src/secrets/resolve.d.ts +0 -15
- package/dist/plugin-sdk/src/secrets/runtime-web-tools.types.d.ts +0 -26
- package/dist/plugin-sdk/src/secrets/shared.d.ts +0 -7
- package/dist/plugin-sdk/src/security/audit-channel.d.ts +0 -7
- package/dist/plugin-sdk/src/security/audit-extra.async.d.ts +0 -47
- package/dist/plugin-sdk/src/security/audit-extra.d.ts +0 -10
- package/dist/plugin-sdk/src/security/audit-extra.sync.d.ts +0 -25
- package/dist/plugin-sdk/src/security/audit-fs.d.ts +0 -44
- package/dist/plugin-sdk/src/security/audit-tool-policy.d.ts +0 -1
- package/dist/plugin-sdk/src/security/audit.d.ts +0 -57
- package/dist/plugin-sdk/src/security/channel-metadata.d.ts +0 -6
- package/dist/plugin-sdk/src/security/dangerous-config-flags.d.ts +0 -2
- package/dist/plugin-sdk/src/security/dangerous-tools.d.ts +0 -12
- package/dist/plugin-sdk/src/security/dm-policy-shared.d.ts +0 -93
- package/dist/plugin-sdk/src/security/external-content.d.ts +0 -58
- package/dist/plugin-sdk/src/security/mutable-allowlist-detectors.d.ts +0 -6
- package/dist/plugin-sdk/src/security/safe-regex.d.ts +0 -2
- package/dist/plugin-sdk/src/security/scan-paths.d.ts +0 -5
- package/dist/plugin-sdk/src/security/secret-equal.d.ts +0 -1
- package/dist/plugin-sdk/src/security/skill-scanner.d.ts +0 -25
- package/dist/plugin-sdk/src/security/windows-acl.d.ts +0 -37
- package/dist/plugin-sdk/src/sessions/input-provenance.d.ts +0 -16
- package/dist/plugin-sdk/src/sessions/level-overrides.d.ts +0 -10
- package/dist/plugin-sdk/src/sessions/model-overrides.d.ts +0 -16
- package/dist/plugin-sdk/src/sessions/send-policy.d.ts +0 -11
- package/dist/plugin-sdk/src/sessions/session-key-utils.d.ts +0 -20
- package/dist/plugin-sdk/src/sessions/session-label.d.ts +0 -9
- package/dist/plugin-sdk/src/sessions/transcript-events.d.ts +0 -9
- package/dist/plugin-sdk/src/shared/avatar-policy.d.ts +0 -16
- package/dist/plugin-sdk/src/shared/chat-content.d.ts +0 -5
- package/dist/plugin-sdk/src/shared/chat-envelope.d.ts +0 -2
- package/dist/plugin-sdk/src/shared/config-eval.d.ts +0 -27
- package/dist/plugin-sdk/src/shared/device-auth.d.ts +0 -13
- package/dist/plugin-sdk/src/shared/entry-metadata.d.ts +0 -15
- package/dist/plugin-sdk/src/shared/entry-status.d.ts +0 -47
- package/dist/plugin-sdk/src/shared/frontmatter.d.ts +0 -24
- package/dist/plugin-sdk/src/shared/gateway-bind-url.d.ts +0 -14
- package/dist/plugin-sdk/src/shared/gateway-method-policy.d.ts +0 -8
- package/dist/plugin-sdk/src/shared/model-param-b.d.ts +0 -1
- package/dist/plugin-sdk/src/shared/model-thinking.d.ts +0 -31
- package/dist/plugin-sdk/src/shared/net/ip.d.ts +0 -20
- package/dist/plugin-sdk/src/shared/net/redact-sensitive-url.d.ts +0 -2
- package/dist/plugin-sdk/src/shared/node-list-parse.d.ts +0 -3
- package/dist/plugin-sdk/src/shared/node-list-types.d.ts +0 -48
- package/dist/plugin-sdk/src/shared/node-match.d.ts +0 -9
- package/dist/plugin-sdk/src/shared/operator-scope-compat.d.ts +0 -5
- package/dist/plugin-sdk/src/shared/pid-alive.d.ts +0 -1
- package/dist/plugin-sdk/src/shared/process-scoped-map.d.ts +0 -1
- package/dist/plugin-sdk/src/shared/requirements.d.ts +0 -80
- package/dist/plugin-sdk/src/shared/string-normalization.d.ts +0 -4
- package/dist/plugin-sdk/src/shared/subagents-format.d.ts +0 -15
- package/dist/plugin-sdk/src/shared/tailscale-status.d.ts +0 -8
- package/dist/plugin-sdk/src/shared/text/code-regions.d.ts +0 -6
- package/dist/plugin-sdk/src/shared/text/reasoning-tags.d.ts +0 -6
- package/dist/plugin-sdk/src/shared/text-chunking.d.ts +0 -1
- package/dist/plugin-sdk/src/signal/accounts.d.ts +0 -17
- package/dist/plugin-sdk/src/signal/client.d.ts +0 -32
- package/dist/plugin-sdk/src/signal/daemon.d.ts +0 -26
- package/dist/plugin-sdk/src/signal/format.d.ts +0 -17
- package/dist/plugin-sdk/src/signal/identity.d.ts +0 -24
- package/dist/plugin-sdk/src/signal/index.d.ts +0 -5
- package/dist/plugin-sdk/src/signal/monitor/access-policy.d.ts +0 -40
- package/dist/plugin-sdk/src/signal/monitor/event-handler.d.ts +0 -5
- package/dist/plugin-sdk/src/signal/monitor/event-handler.types.d.ts +0 -125
- package/dist/plugin-sdk/src/signal/monitor/mentions.d.ts +0 -2
- package/dist/plugin-sdk/src/signal/monitor.d.ts +0 -25
- package/dist/plugin-sdk/src/signal/probe.d.ts +0 -7
- package/dist/plugin-sdk/src/signal/reaction-level.d.ts +0 -17
- package/dist/plugin-sdk/src/signal/rpc-context.d.ts +0 -9
- package/dist/plugin-sdk/src/signal/send-reactions.d.ts +0 -32
- package/dist/plugin-sdk/src/signal/send.d.ts +0 -25
- package/dist/plugin-sdk/src/signal/sse-reconnect.d.ts +0 -13
- package/dist/plugin-sdk/src/slack/accounts.d.ts +0 -32
- package/dist/plugin-sdk/src/slack/actions.d.ts +0 -56
- package/dist/plugin-sdk/src/slack/blocks-fallback.d.ts +0 -2
- package/dist/plugin-sdk/src/slack/blocks-input.d.ts +0 -3
- package/dist/plugin-sdk/src/slack/channel-migration.d.ts +0 -20
- package/dist/plugin-sdk/src/slack/client.d.ts +0 -4
- package/dist/plugin-sdk/src/slack/directory-live.d.ts +0 -4
- package/dist/plugin-sdk/src/slack/draft-stream.d.ts +0 -25
- package/dist/plugin-sdk/src/slack/format.d.ts +0 -7
- package/dist/plugin-sdk/src/slack/http/index.d.ts +0 -1
- package/dist/plugin-sdk/src/slack/http/registry.d.ts +0 -12
- package/dist/plugin-sdk/src/slack/index.d.ts +0 -6
- package/dist/plugin-sdk/src/slack/message-actions.d.ts +0 -4
- package/dist/plugin-sdk/src/slack/modal-metadata.d.ts +0 -8
- package/dist/plugin-sdk/src/slack/monitor/allow-list.d.ts +0 -23
- package/dist/plugin-sdk/src/slack/monitor/auth.d.ts +0 -26
- package/dist/plugin-sdk/src/slack/monitor/channel-config.d.ts +0 -43
- package/dist/plugin-sdk/src/slack/monitor/commands.d.ts +0 -9
- package/dist/plugin-sdk/src/slack/monitor/context.d.ts +0 -104
- package/dist/plugin-sdk/src/slack/monitor/dm-auth.d.ts +0 -17
- package/dist/plugin-sdk/src/slack/monitor/events/channels.d.ts +0 -4
- package/dist/plugin-sdk/src/slack/monitor/events/interactions.d.ts +0 -4
- package/dist/plugin-sdk/src/slack/monitor/events/members.d.ts +0 -4
- package/dist/plugin-sdk/src/slack/monitor/events/messages.d.ts +0 -6
- package/dist/plugin-sdk/src/slack/monitor/events/pins.d.ts +0 -4
- package/dist/plugin-sdk/src/slack/monitor/events/reactions.d.ts +0 -4
- package/dist/plugin-sdk/src/slack/monitor/events/system-event-context.d.ts +0 -12
- package/dist/plugin-sdk/src/slack/monitor/events.d.ts +0 -8
- package/dist/plugin-sdk/src/slack/monitor/external-arg-menu-store.d.ts +0 -18
- package/dist/plugin-sdk/src/slack/monitor/media.d.ts +0 -66
- package/dist/plugin-sdk/src/slack/monitor/message-handler/dispatch.d.ts +0 -12
- package/dist/plugin-sdk/src/slack/monitor/message-handler/prepare.d.ts +0 -13
- package/dist/plugin-sdk/src/slack/monitor/message-handler/types.d.ts +0 -22
- package/dist/plugin-sdk/src/slack/monitor/message-handler.d.ts +0 -11
- package/dist/plugin-sdk/src/slack/monitor/mrkdwn.d.ts +0 -1
- package/dist/plugin-sdk/src/slack/monitor/policy.d.ts +0 -5
- package/dist/plugin-sdk/src/slack/monitor/provider.d.ts +0 -7
- package/dist/plugin-sdk/src/slack/monitor/replies.d.ts +0 -54
- package/dist/plugin-sdk/src/slack/monitor/room-context.d.ts +0 -14
- package/dist/plugin-sdk/src/slack/monitor/slash.d.ts +0 -6
- package/dist/plugin-sdk/src/slack/monitor/thread-resolution.d.ts +0 -12
- package/dist/plugin-sdk/src/slack/monitor/types.d.ts +0 -109
- package/dist/plugin-sdk/src/slack/monitor.d.ts +0 -5
- package/dist/plugin-sdk/src/slack/probe.d.ts +0 -14
- package/dist/plugin-sdk/src/slack/resolve-channels.d.ts +0 -19
- package/dist/plugin-sdk/src/slack/resolve-users.d.ts +0 -26
- package/dist/plugin-sdk/src/slack/send.d.ts +0 -22
- package/dist/plugin-sdk/src/slack/stream-mode.d.ts +0 -23
- package/dist/plugin-sdk/src/slack/streaming.d.ts +0 -72
- package/dist/plugin-sdk/src/slack/targets.d.ts +0 -7
- package/dist/plugin-sdk/src/slack/threading-tool-context.d.ts +0 -10
- package/dist/plugin-sdk/src/slack/threading.d.ts +0 -29
- package/dist/plugin-sdk/src/slack/token.d.ts +0 -3
- package/dist/plugin-sdk/src/slack/types.d.ts +0 -58
- package/dist/plugin-sdk/src/tasks/channel-task-ledger.d.ts +0 -9
- package/dist/plugin-sdk/src/tasks/task-executor.d.ts +0 -86
- package/dist/plugin-sdk/src/tasks/task-owner-access.d.ts +0 -12
- package/dist/plugin-sdk/src/tasks/task-registry.d.ts +0 -35
- package/dist/plugin-sdk/src/tasks/task-registry.types.d.ts +0 -114
- package/dist/plugin-sdk/src/tasks/task-status.d.ts +0 -11
- package/dist/plugin-sdk/src/telegram/accounts.d.ts +0 -21
- package/dist/plugin-sdk/src/telegram/allowed-updates.d.ts +0 -4
- package/dist/plugin-sdk/src/telegram/api-logging.d.ts +0 -11
- package/dist/plugin-sdk/src/telegram/audit.d.ts +0 -29
- package/dist/plugin-sdk/src/telegram/bot/delivery.d.ts +0 -35
- package/dist/plugin-sdk/src/telegram/bot/helpers.d.ts +0 -127
- package/dist/plugin-sdk/src/telegram/bot/types.d.ts +0 -28
- package/dist/plugin-sdk/src/telegram/bot-access.d.ts +0 -26
- package/dist/plugin-sdk/src/telegram/bot-handlers.d.ts +0 -2
- package/dist/plugin-sdk/src/telegram/bot-message-context.d.ts +0 -149
- package/dist/plugin-sdk/src/telegram/bot-message-dispatch.d.ts +0 -29
- package/dist/plugin-sdk/src/telegram/bot-message.d.ts +0 -20
- package/dist/plugin-sdk/src/telegram/bot-native-command-menu.d.ts +0 -33
- package/dist/plugin-sdk/src/telegram/bot-native-commands.d.ts +0 -58
- package/dist/plugin-sdk/src/telegram/bot-updates.d.ts +0 -31
- package/dist/plugin-sdk/src/telegram/bot.d.ts +0 -62
- package/dist/plugin-sdk/src/telegram/button-types.d.ts +0 -7
- package/dist/plugin-sdk/src/telegram/caption.d.ts +0 -5
- package/dist/plugin-sdk/src/telegram/dm-access.d.ts +0 -18
- package/dist/plugin-sdk/src/telegram/draft-stream.d.ts +0 -37
- package/dist/plugin-sdk/src/telegram/fetch.d.ts +0 -5
- package/dist/plugin-sdk/src/telegram/format.d.ts +0 -18
- package/dist/plugin-sdk/src/telegram/group-access.d.ts +0 -54
- package/dist/plugin-sdk/src/telegram/group-config-helpers.d.ts +0 -8
- package/dist/plugin-sdk/src/telegram/group-migration.d.ts +0 -20
- package/dist/plugin-sdk/src/telegram/inline-buttons.d.ts +0 -11
- package/dist/plugin-sdk/src/telegram/lane-delivery.d.ts +0 -56
- package/dist/plugin-sdk/src/telegram/model-buttons.d.ts +0 -63
- package/dist/plugin-sdk/src/telegram/monitor.d.ts +0 -19
- package/dist/plugin-sdk/src/telegram/network-config.d.ts +0 -33
- package/dist/plugin-sdk/src/telegram/network-errors.d.ts +0 -5
- package/dist/plugin-sdk/src/telegram/outbound-params.d.ts +0 -2
- package/dist/plugin-sdk/src/telegram/probe.d.ts +0 -17
- package/dist/plugin-sdk/src/telegram/proxy.d.ts +0 -1
- package/dist/plugin-sdk/src/telegram/reaction-level.d.ts +0 -11
- package/dist/plugin-sdk/src/telegram/reasoning-lane-coordinator.d.ts +0 -18
- package/dist/plugin-sdk/src/telegram/send.d.ts +0 -153
- package/dist/plugin-sdk/src/telegram/sendchataction-401-backoff.d.ts +0 -28
- package/dist/plugin-sdk/src/telegram/sent-message-cache.d.ts +0 -16
- package/dist/plugin-sdk/src/telegram/status-reaction-variants.d.ts +0 -21
- package/dist/plugin-sdk/src/telegram/sticker-cache.d.ts +0 -46
- package/dist/plugin-sdk/src/telegram/target-writeback.d.ts +0 -7
- package/dist/plugin-sdk/src/telegram/targets.d.ts +0 -11
- package/dist/plugin-sdk/src/telegram/token.d.ts +0 -13
- package/dist/plugin-sdk/src/telegram/update-offset-store.d.ts +0 -15
- package/dist/plugin-sdk/src/telegram/voice.d.ts +0 -16
- package/dist/plugin-sdk/src/telegram/webhook.d.ts +0 -20
- package/dist/plugin-sdk/src/terminal/ansi.d.ts +0 -2
- package/dist/plugin-sdk/src/terminal/health-style.d.ts +0 -1
- package/dist/plugin-sdk/src/terminal/links.d.ts +0 -6
- package/dist/plugin-sdk/src/terminal/palette.d.ts +0 -10
- package/dist/plugin-sdk/src/terminal/progress-line.d.ts +0 -3
- package/dist/plugin-sdk/src/terminal/prompt-style.d.ts +0 -6
- package/dist/plugin-sdk/src/terminal/restore.d.ts +0 -17
- package/dist/plugin-sdk/src/terminal/table.d.ts +0 -18
- package/dist/plugin-sdk/src/terminal/theme.d.ts +0 -18
- package/dist/plugin-sdk/src/tts/tts-core.d.ts +0 -52
- package/dist/plugin-sdk/src/tts/tts.d.ts +0 -194
- package/dist/plugin-sdk/src/utils/account-id.d.ts +0 -1
- package/dist/plugin-sdk/src/utils/boolean.d.ts +0 -5
- package/dist/plugin-sdk/src/utils/chunk-items.d.ts +0 -1
- package/dist/plugin-sdk/src/utils/delivery-context.d.ts +0 -29
- package/dist/plugin-sdk/src/utils/directive-tags.d.ts +0 -29
- package/dist/plugin-sdk/src/utils/fetch-timeout.d.ts +0 -13
- package/dist/plugin-sdk/src/utils/mask-api-key.d.ts +0 -1
- package/dist/plugin-sdk/src/utils/message-channel.d.ts +0 -27
- package/dist/plugin-sdk/src/utils/normalize-secret-input.d.ts +0 -11
- package/dist/plugin-sdk/src/utils/private-network-url.d.ts +0 -1
- package/dist/plugin-sdk/src/utils/provider-utils.d.ts +0 -9
- package/dist/plugin-sdk/src/utils/queue-helpers.d.ts +0 -80
- package/dist/plugin-sdk/src/utils/reaction-level.d.ts +0 -15
- package/dist/plugin-sdk/src/utils/run-with-concurrency.d.ts +0 -11
- package/dist/plugin-sdk/src/utils/safe-json.d.ts +0 -1
- package/dist/plugin-sdk/src/utils/shell-argv.d.ts +0 -1
- package/dist/plugin-sdk/src/utils/transcript-tools.d.ts +0 -8
- package/dist/plugin-sdk/src/utils/usage-format.d.ts +0 -26
- package/dist/plugin-sdk/src/utils/with-timeout.d.ts +0 -1
- package/dist/plugin-sdk/src/utils.d.ts +0 -63
- package/dist/plugin-sdk/src/version.d.ts +0 -8
- package/dist/plugin-sdk/src/video-generation/dashscope-compatible.d.ts +0 -45
- package/dist/plugin-sdk/src/video-generation/types.d.ts +0 -79
- package/dist/plugin-sdk/src/wallet/chat-command.d.ts +0 -17
- package/dist/plugin-sdk/src/wallet/local-socket-signer-broker.d.ts +0 -13
- package/dist/plugin-sdk/src/wallet/local-socket-signer-custody.d.ts +0 -35
- package/dist/plugin-sdk/src/wallet/local-socket-signer-protocol.d.ts +0 -191
- package/dist/plugin-sdk/src/wallet/providers/alchemy-adapter.d.ts +0 -29
- package/dist/plugin-sdk/src/wallet/providers/embedded-keystore-adapter.d.ts +0 -37
- package/dist/plugin-sdk/src/wallet/providers/local-socket-signer-adapter.d.ts +0 -44
- package/dist/plugin-sdk/src/wallet/providers/privy-adapter.d.ts +0 -31
- package/dist/plugin-sdk/src/wallet/providers/turnkey-adapter.d.ts +0 -33
- package/dist/plugin-sdk/src/wallet/solana-address.d.ts +0 -2
- package/dist/plugin-sdk/src/wallet/solana-assets.d.ts +0 -80
- package/dist/plugin-sdk/src/wallet/solana-bond-signing.d.ts +0 -20
- package/dist/plugin-sdk/src/wallet/solana-spl-transfer.d.ts +0 -33
- package/dist/plugin-sdk/src/wallet/solana-swap.d.ts +0 -93
- package/dist/plugin-sdk/src/wallet/solana-token-resolver.d.ts +0 -36
- package/dist/plugin-sdk/src/wallet/solana-transaction-inspection.d.ts +0 -16
- package/dist/plugin-sdk/src/wallet/solana-trigger.d.ts +0 -74
- package/dist/plugin-sdk/src/wallet/trade-chat-command.d.ts +0 -18
- package/dist/plugin-sdk/src/wallet/wallet-agent-selection.d.ts +0 -43
- package/dist/plugin-sdk/src/wallet/wallet-approval-auth.d.ts +0 -212
- package/dist/plugin-sdk/src/wallet/wallet-audit-log.d.ts +0 -18
- package/dist/plugin-sdk/src/wallet/wallet-canary.d.ts +0 -47
- package/dist/plugin-sdk/src/wallet/wallet-custody.d.ts +0 -313
- package/dist/plugin-sdk/src/wallet/wallet-inbound-events.d.ts +0 -88
- package/dist/plugin-sdk/src/wallet/wallet-observability.d.ts +0 -16
- package/dist/plugin-sdk/src/wallet/wallet-policy-simulation.d.ts +0 -61
- package/dist/plugin-sdk/src/wallet/wallet-policy.d.ts +0 -144
- package/dist/plugin-sdk/src/wallet/wallet-provider-adapter.d.ts +0 -111
- package/dist/plugin-sdk/src/wallet/wallet-provider-capabilities.d.ts +0 -51
- package/dist/plugin-sdk/src/wallet/wallet-provider-registry.d.ts +0 -128
- package/dist/plugin-sdk/src/wallet/wallet-provider-resolver.d.ts +0 -17
- package/dist/plugin-sdk/src/wallet/wallet-redaction.d.ts +0 -3
- package/dist/plugin-sdk/src/wallet/wallet-runtime-config.d.ts +0 -93
- package/dist/plugin-sdk/src/wallet/wallet-secrets-store.d.ts +0 -63
- package/dist/plugin-sdk/src/wallet/wallet-send-approvals.d.ts +0 -165
- package/dist/plugin-sdk/src/wallet/wallet-settlement-links.d.ts +0 -57
- package/dist/plugin-sdk/src/wallet/wallet-status.d.ts +0 -106
- package/dist/plugin-sdk/src/wallet/wallet-task-ledger.d.ts +0 -7
- package/dist/plugin-sdk/src/web/accounts.d.ts +0 -39
- package/dist/plugin-sdk/src/web/active-listener.d.ts +0 -26
- package/dist/plugin-sdk/src/web/auth-store.d.ts +0 -26
- package/dist/plugin-sdk/src/web/auto-reply/constants.d.ts +0 -1
- package/dist/plugin-sdk/src/web/auto-reply/deliver-reply.d.ts +0 -19
- package/dist/plugin-sdk/src/web/auto-reply/heartbeat-runner.d.ts +0 -20
- package/dist/plugin-sdk/src/web/auto-reply/loggers.d.ts +0 -4
- package/dist/plugin-sdk/src/web/auto-reply/mentions.d.ts +0 -19
- package/dist/plugin-sdk/src/web/auto-reply/monitor/ack-reaction.d.ts +0 -13
- package/dist/plugin-sdk/src/web/auto-reply/monitor/broadcast.d.ts +0 -16
- package/dist/plugin-sdk/src/web/auto-reply/monitor/commands.d.ts +0 -2
- package/dist/plugin-sdk/src/web/auto-reply/monitor/echo.d.ts +0 -17
- package/dist/plugin-sdk/src/web/auto-reply/monitor/group-activation.d.ts +0 -9
- package/dist/plugin-sdk/src/web/auto-reply/monitor/group-gating.d.ts +0 -33
- package/dist/plugin-sdk/src/web/auto-reply/monitor/group-members.d.ts +0 -6
- package/dist/plugin-sdk/src/web/auto-reply/monitor/last-route.d.ts +0 -15
- package/dist/plugin-sdk/src/web/auto-reply/monitor/message-line.d.ts +0 -11
- package/dist/plugin-sdk/src/web/auto-reply/monitor/on-message.d.ts +0 -24
- package/dist/plugin-sdk/src/web/auto-reply/monitor/peer.d.ts +0 -2
- package/dist/plugin-sdk/src/web/auto-reply/monitor/process-message.d.ts +0 -40
- package/dist/plugin-sdk/src/web/auto-reply/monitor.d.ts +0 -5
- package/dist/plugin-sdk/src/web/auto-reply/session-snapshot.d.ts +0 -17
- package/dist/plugin-sdk/src/web/auto-reply/types.d.ts +0 -30
- package/dist/plugin-sdk/src/web/auto-reply/util.d.ts +0 -2
- package/dist/plugin-sdk/src/web/auto-reply.d.ts +0 -1
- package/dist/plugin-sdk/src/web/auto-reply.impl.d.ts +0 -6
- package/dist/plugin-sdk/src/web/inbound/access-control.d.ts +0 -36
- package/dist/plugin-sdk/src/web/inbound/dedupe.d.ts +0 -2
- package/dist/plugin-sdk/src/web/inbound/extract.d.ts +0 -13
- package/dist/plugin-sdk/src/web/inbound/media.d.ts +0 -7
- package/dist/plugin-sdk/src/web/inbound/monitor.d.ts +0 -30
- package/dist/plugin-sdk/src/web/inbound/send-api.d.ts +0 -22
- package/dist/plugin-sdk/src/web/inbound/types.d.ts +0 -41
- package/dist/plugin-sdk/src/web/inbound.d.ts +0 -4
- package/dist/plugin-sdk/src/web/login-qr.d.ts +0 -19
- package/dist/plugin-sdk/src/web/login.d.ts +0 -3
- package/dist/plugin-sdk/src/web/media.d.ts +0 -43
- package/dist/plugin-sdk/src/web/outbound.d.ts +0 -25
- package/dist/plugin-sdk/src/web/qr-image.d.ts +0 -4
- package/dist/plugin-sdk/src/web/reconnect.d.ts +0 -12
- package/dist/plugin-sdk/src/web/session.d.ts +0 -14
- package/dist/plugin-sdk/src/web/vcard.d.ts +0 -6
- package/dist/plugin-sdk/src/whatsapp/normalize.d.ts +0 -6
- package/dist/plugin-sdk/src/whatsapp/resolve-outbound-target.d.ts +0 -12
- package/dist/plugin-sdk/src/wizard/onboarding.types.d.ts +0 -31
- package/dist/plugin-sdk/src/wizard/onboarding.wallet.d.ts +0 -45
- package/dist/plugin-sdk/src/wizard/prompts.d.ts +0 -45
- package/dist/plugin-sdk/src/wizard/session.d.ts +0 -42
- package/dist/plugin-sdk/ssrf-Cce6LubA.js +0 -421
- package/dist/plugin-sdk/ssrf-Cg5wg0v3.js +0 -4
- package/dist/plugin-sdk/status-B2vb7zNW.js +0 -106417
- package/dist/plugin-sdk/sticker-cache-C1vOWkzA.js +0 -170
- package/dist/plugin-sdk/sticker-cache-CJDzqowL.js +0 -170
- package/dist/plugin-sdk/subsystem-BmpnSVOu.js +0 -358
- package/dist/plugin-sdk/tables-BD7H5ug-.js +0 -55
- package/dist/plugin-sdk/tables-CJE8kB35.js +0 -55
- package/dist/plugin-sdk/target-errors-kz4lDpCF.js +0 -26
- package/dist/plugin-sdk/targets-4QTk4tTz.js +0 -45
- package/dist/plugin-sdk/targets-DmSpDM4F.js +0 -45
- package/dist/plugin-sdk/targets-cA134MEE.js +0 -101
- package/dist/plugin-sdk/targets-t1hbjHdJ.js +0 -101
- package/dist/plugin-sdk/telegram-actions-BoiC9J7L.js +0 -307
- package/dist/plugin-sdk/telegram-actions-CwAsKaNz.js +0 -307
- package/dist/plugin-sdk/thread-bindings.lifecycle-Djem8FWF.js +0 -737
- package/dist/plugin-sdk/thread-bindings.lifecycle-gmHv3hc7.js +0 -737
- package/dist/plugin-sdk/thread-bindings.state-CNT2vxm3.js +0 -643
- package/dist/plugin-sdk/thread-bindings.state-D8kN2X6H.js +0 -643
- package/dist/plugin-sdk/token-BWZYO8QR.js +0 -36
- package/dist/plugin-sdk/tokens-BK5rrwBB.js +0 -72
- package/dist/plugin-sdk/tokens-CQRTq-NN.js +0 -72
- package/dist/plugin-sdk/tool-loop-detection-Ci_YYA7P.js +0 -352
- package/dist/plugin-sdk/transcript-events-BJQWUdmU.js +0 -24
- package/dist/plugin-sdk/ui-7sxJ-x37.js +0 -33
- package/dist/plugin-sdk/ui-BQ-Vvq_c.js +0 -33
- package/dist/plugin-sdk/utils-LGKVujSU.js +0 -237
- package/dist/plugin-sdk/web-BjV7ROeA.js +0 -2226
- package/dist/plugin-sdk/web-DjTSgU98.js +0 -2226
- package/dist/plugin-sdk/whatsapp-actions-68Mfs2dJ.js +0 -123
- package/dist/plugin-sdk/whatsapp-actions-DRqtzvTO.js +0 -123
- package/dist/plugin-sdk/wsl-DcM2PgSS.js +0 -1016
- package/dist/plugin-sdk/wsl-PXrdWitE.js +0 -1016
- /package/dist/plugin-sdk/{channel-activity-Cf5sKkfd.js → channel-activity-B7MIaDei.js} +0 -0
- /package/dist/plugin-sdk/{client-DWTXscox.js → client-BTUzO_8g.js} +0 -0
- /package/dist/plugin-sdk/{command-poll-backoff-C2vOB38t.js → command-poll-backoff-CBq0jVRw.js} +0 -0
- /package/dist/plugin-sdk/{date-time-Bo5FVB7G.js → date-time-Bbp5JvNw.js} +0 -0
- /package/dist/plugin-sdk/{diagnostic-session-state-CT36_PCE.js → diagnostic-session-state-B-9PL5r7.js} +0 -0
- /package/dist/plugin-sdk/{draft-stream-loop-2KC6-8CG.js → draft-stream-loop-DZ1OAyye.js} +0 -0
- /package/dist/plugin-sdk/{fetch-headers-BTcaUCW6.js → fetch-headers-DvXyXtoI.js} +0 -0
- /package/dist/plugin-sdk/{fetch-timeout-Dyj5Y_Ss.js → fetch-timeout-jOIu9Xud.js} +0 -0
- /package/dist/plugin-sdk/{gateway-registry-CtUjFG3Q.js → gateway-registry-C-MTEdvG.js} +0 -0
- /package/dist/plugin-sdk/{inbound-context-Daf9i2Me.js → inbound-context-BNCTzgjG.js} +0 -0
- /package/dist/plugin-sdk/{internal-DFhCtnuk.js → internal-CC6TMTtc.js} +0 -0
- /package/dist/plugin-sdk/{media-payload-CcW51vQj.js → media-payload-DpYEcV-X.js} +0 -0
- /package/dist/plugin-sdk/{polls-B4cMiwMo.js → polls-Dy1NsYKT.js} +0 -0
- /package/dist/plugin-sdk/{proxy-CKQOQYAl.js → proxy-R5TjOIFS.js} +0 -0
- /package/dist/plugin-sdk/{qmd-scope-ubzoBMhc.js → qmd-scope-C9tRnohc.js} +0 -0
- /package/dist/plugin-sdk/{redact-identifier-BAD7jXcr.js → redact-identifier-CDvAeiFm.js} +0 -0
- /package/dist/plugin-sdk/{redact-sensitive-url-DK8OUExz.js → redact-sensitive-url-B0RJQqO7.js} +0 -0
- /package/dist/plugin-sdk/{render-C9LkRUhd.js → render-K7NwXvVu.js} +0 -0
- /package/dist/plugin-sdk/{reply-reference-DxIu2vr0.js → reply-reference-CWEIswqw.js} +0 -0
- /package/dist/plugin-sdk/{secure-random-CO1VkMEt.js → secure-random-C2EhANj2.js} +0 -0
- /package/dist/plugin-sdk/{target-errors-Dn4aykSV.js → target-errors-C0yNDbGS.js} +0 -0
- /package/dist/plugin-sdk/{tool-loop-detection-D6OX2-I9.js → tool-loop-detection-P5u2k0_f.js} +0 -0
- /package/dist/plugin-sdk/{with-timeout-DqkblR98.js → with-timeout-Dl513q34.js} +0 -0
|
@@ -0,0 +1,3359 @@
|
|
|
1
|
+
import { t as ChatType } from "./chat-type-CK5stkc4.js";
|
|
2
|
+
import { An as GetReplyOptions, At as FasedAgentConfig, B as ChannelCapabilities, Ct as RuntimeEnv, Dn as MarkdownTableMode, E as ChannelPairingAdapter, F as ChannelAccountSnapshot, G as ChannelId, J as ChannelMessageActionAdapter, Jt as SlackSlashCommandConfig, Kt as TelegramGroupConfig, L as ChannelAgentPromptAdapter, N as BaseProbeResult, Nt as ModelProviderConfig, On as ReplyToMode, Ot as sendMessageDiscord, P as BaseTokenResolution, R as ChannelAgentTool, St as sendMessageIMessage, Tn as HumanDelayConfig, V as ChannelDirectoryEntry, _t as sendPollWhatsApp, bn as GroupToolPolicyConfig, bt as sendMessageSlack, c as writeConfigFile, dn as chunkMarkdownTextWithMode, f as ChannelCommandAdapter, fn as chunkText, ft as FinalizedMsgContext, gt as sendMessageWhatsApp, h as ChannelElevatedAdapter, hn as resolveTextChunkLimit, ht as ShouldHandleTextCommandsParams, jn as ReplyPayload, kt as sendPollDiscord, ln as chunkByNewline, mn as resolveChunkMode, mt as CommandNormalizeOptions, n as ChannelPlugin, o as WizardPrompter, ot as ChannelThreadingAdapter, p as ChannelConfigAdapter, pn as chunkTextWithMode, pt as MsgContext, q as ChannelMentionAdapter, s as loadConfig, sn as TtsAutoMode, un as chunkMarkdownText, v as ChannelGroupAdapter, vn as PollInput, vt as sendMessageTelegram, wn as GroupPolicy, xt as sendMessageSignal, yn as GroupToolPolicyBySenderConfig, yt as sendPollTelegram } from "./types.plugin-CvUiB3Kh.js";
|
|
3
|
+
import { C as readWebSelfId, H as resolveStateDir, M as LookupFn, P as SsrFPolicy, S as logoutWeb, _ as PushTestParams, a as GatewayClient, b as getWebAuthAgeMs, c as GatewayRequestHandlerOptions, i as OperatorScope, j as LogLevel, l as GatewayRequestHandlers, m as ChatInjectParams, n as AuthProfileStore, o as GatewayRequestContext, r as OAuthCredential, s as GatewayRequestHandler, t as AuthProfileCredential, v as WebLoginStartParams, w as webAuthExists, x as logWebSelfId, y as WebLoginWaitParams } from "./types-CJGVZX6j.js";
|
|
4
|
+
import { WebClient } from "@slack/web-api";
|
|
5
|
+
import { Skill } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import { AgentMessage, AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core";
|
|
7
|
+
import { TSchema } from "@sinclair/typebox";
|
|
8
|
+
import { IncomingMessage, ServerResponse } from "node:http";
|
|
9
|
+
import { Command } from "commander";
|
|
10
|
+
import { AnyMessageContent, makeWASocket } from "@whiskeysockets/baileys";
|
|
11
|
+
import { WebhookRequestBody, messagingApi } from "@line/bot-sdk";
|
|
12
|
+
|
|
13
|
+
//#region src/utils/delivery-context.d.ts
|
|
14
|
+
type DeliveryContext = {
|
|
15
|
+
channel?: string;
|
|
16
|
+
to?: string;
|
|
17
|
+
accountId?: string;
|
|
18
|
+
threadId?: string | number;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/config/sessions/types.d.ts
|
|
22
|
+
type SessionChannelId = ChannelId | "webchat";
|
|
23
|
+
type SessionChatType = ChatType;
|
|
24
|
+
type SessionOrigin = {
|
|
25
|
+
label?: string;
|
|
26
|
+
provider?: string;
|
|
27
|
+
surface?: string;
|
|
28
|
+
chatType?: SessionChatType;
|
|
29
|
+
from?: string;
|
|
30
|
+
to?: string;
|
|
31
|
+
accountId?: string;
|
|
32
|
+
threadId?: string | number;
|
|
33
|
+
};
|
|
34
|
+
type SessionAcpIdentitySource = "ensure" | "status" | "event";
|
|
35
|
+
type SessionAcpIdentityState = "pending" | "resolved";
|
|
36
|
+
type SessionAcpIdentity = {
|
|
37
|
+
state: SessionAcpIdentityState;
|
|
38
|
+
acpxRecordId?: string;
|
|
39
|
+
acpxSessionId?: string;
|
|
40
|
+
agentSessionId?: string;
|
|
41
|
+
source: SessionAcpIdentitySource;
|
|
42
|
+
lastUpdatedAt: number;
|
|
43
|
+
};
|
|
44
|
+
type SessionAcpMeta = {
|
|
45
|
+
backend: string;
|
|
46
|
+
agent: string;
|
|
47
|
+
runtimeSessionName: string;
|
|
48
|
+
identity?: SessionAcpIdentity;
|
|
49
|
+
mode: "persistent" | "oneshot";
|
|
50
|
+
runtimeOptions?: AcpSessionRuntimeOptions;
|
|
51
|
+
cwd?: string;
|
|
52
|
+
state: "idle" | "running" | "error";
|
|
53
|
+
lastActivityAt: number;
|
|
54
|
+
lastError?: string;
|
|
55
|
+
};
|
|
56
|
+
type AcpSessionRuntimeOptions = {
|
|
57
|
+
/**
|
|
58
|
+
* ACP runtime mode set via session/set_mode (for example: "plan", "normal", "auto").
|
|
59
|
+
*/
|
|
60
|
+
runtimeMode?: string; /** ACP runtime config option: model id. */
|
|
61
|
+
model?: string; /** Working directory override for ACP session turns. */
|
|
62
|
+
cwd?: string; /** ACP runtime config option: permission profile id. */
|
|
63
|
+
permissionProfile?: string; /** ACP runtime config option: per-turn timeout in seconds. */
|
|
64
|
+
timeoutSeconds?: number; /** Backend-specific option bag mapped through session/set_config_option. */
|
|
65
|
+
backendExtras?: Record<string, string>;
|
|
66
|
+
};
|
|
67
|
+
type SessionCompactionCheckpointReason = "manual" | "auto-threshold" | "overflow-retry" | "timeout-retry";
|
|
68
|
+
type SessionCompactionTranscriptReference = {
|
|
69
|
+
sessionId: string;
|
|
70
|
+
sessionFile?: string;
|
|
71
|
+
leafId?: string;
|
|
72
|
+
entryId?: string;
|
|
73
|
+
};
|
|
74
|
+
type SessionCompactionCheckpoint = {
|
|
75
|
+
checkpointId: string;
|
|
76
|
+
sessionKey: string;
|
|
77
|
+
sessionId: string;
|
|
78
|
+
createdAt: number;
|
|
79
|
+
reason: SessionCompactionCheckpointReason;
|
|
80
|
+
tokensBefore?: number;
|
|
81
|
+
tokensAfter?: number;
|
|
82
|
+
summary?: string;
|
|
83
|
+
firstKeptEntryId?: string;
|
|
84
|
+
preCompaction: SessionCompactionTranscriptReference;
|
|
85
|
+
postCompaction: SessionCompactionTranscriptReference;
|
|
86
|
+
};
|
|
87
|
+
type SessionEntry = {
|
|
88
|
+
/**
|
|
89
|
+
* Last delivered heartbeat payload (used to suppress duplicate heartbeat notifications).
|
|
90
|
+
* Stored on the main session entry.
|
|
91
|
+
*/
|
|
92
|
+
lastHeartbeatText?: string; /** Timestamp (ms) when lastHeartbeatText was delivered. */
|
|
93
|
+
lastHeartbeatSentAt?: number;
|
|
94
|
+
sessionId: string;
|
|
95
|
+
updatedAt: number;
|
|
96
|
+
sessionFile?: string; /** Parent session key that spawned this session (used for sandbox session-tool scoping). */
|
|
97
|
+
spawnedBy?: string; /** Legacy alias retained for older tests and persisted stores. Prefer spawnedBy/baseSessionKey. */
|
|
98
|
+
parentSessionKey?: string; /** True after a thread/topic session has been forked from its parent transcript once. */
|
|
99
|
+
forkedFromParent?: boolean; /** Subagent spawn depth (0 = main, 1 = sub-agent, 2 = sub-sub-agent). */
|
|
100
|
+
spawnDepth?: number;
|
|
101
|
+
systemSent?: boolean;
|
|
102
|
+
abortedLastRun?: boolean; /** Runtime status snapshot for detached/sub-agent sessions. */
|
|
103
|
+
status?: string; /** Runtime start timestamp for detached/sub-agent sessions. */
|
|
104
|
+
startedAt?: number; /** Runtime end timestamp for detached/sub-agent sessions. */
|
|
105
|
+
endedAt?: number; /** Runtime duration snapshot for detached/sub-agent sessions. */
|
|
106
|
+
runtimeMs?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Session-level stop cutoff captured when /stop is received.
|
|
109
|
+
* Messages at/before this boundary are skipped to avoid replaying
|
|
110
|
+
* queued pre-stop backlog.
|
|
111
|
+
*/
|
|
112
|
+
abortCutoffMessageSid?: string; /** Epoch ms cutoff paired with abortCutoffMessageSid when available. */
|
|
113
|
+
abortCutoffTimestamp?: number;
|
|
114
|
+
chatType?: SessionChatType;
|
|
115
|
+
thinkingLevel?: string;
|
|
116
|
+
verboseLevel?: string;
|
|
117
|
+
reasoningLevel?: string;
|
|
118
|
+
elevatedLevel?: string;
|
|
119
|
+
ttsAuto?: TtsAutoMode;
|
|
120
|
+
execHost?: string;
|
|
121
|
+
execSecurity?: string;
|
|
122
|
+
execAsk?: string;
|
|
123
|
+
execNode?: string;
|
|
124
|
+
responseUsage?: "on" | "off" | "tokens" | "full";
|
|
125
|
+
providerOverride?: string;
|
|
126
|
+
modelOverride?: string;
|
|
127
|
+
modelOverrideSource?: "auto" | "user";
|
|
128
|
+
authProfileOverride?: string;
|
|
129
|
+
authProfileOverrideSource?: "auto" | "user";
|
|
130
|
+
authProfileOverrideCompactionCount?: number;
|
|
131
|
+
groupActivation?: "mention" | "always";
|
|
132
|
+
systemPromptOverride?: string;
|
|
133
|
+
groupActivationNeedsSystemIntro?: boolean;
|
|
134
|
+
sendPolicy?: "allow" | "deny";
|
|
135
|
+
queueMode?: "steer" | "followup" | "collect" | "steer-backlog" | "steer+backlog" | "queue" | "interrupt";
|
|
136
|
+
queueDebounceMs?: number;
|
|
137
|
+
queueCap?: number;
|
|
138
|
+
queueDrop?: "old" | "new" | "summarize";
|
|
139
|
+
inputTokens?: number;
|
|
140
|
+
outputTokens?: number;
|
|
141
|
+
totalTokens?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Whether totalTokens reflects a fresh context snapshot for the latest run.
|
|
144
|
+
* Undefined means legacy/unknown freshness; false forces consumers to treat
|
|
145
|
+
* totalTokens as stale/unknown for context-utilization displays.
|
|
146
|
+
*/
|
|
147
|
+
totalTokensFresh?: boolean;
|
|
148
|
+
cacheRead?: number;
|
|
149
|
+
cacheWrite?: number;
|
|
150
|
+
modelProvider?: string;
|
|
151
|
+
model?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Last selected/runtime model pair for which a fallback notice was emitted.
|
|
154
|
+
* Used to avoid repeating the same fallback notice every turn.
|
|
155
|
+
*/
|
|
156
|
+
fallbackNoticeSelectedModel?: string;
|
|
157
|
+
fallbackNoticeActiveModel?: string;
|
|
158
|
+
fallbackNoticeReason?: string;
|
|
159
|
+
contextTokens?: number;
|
|
160
|
+
liveModelSwitchPending?: boolean;
|
|
161
|
+
compactionCount?: number;
|
|
162
|
+
compactionCheckpoints?: SessionCompactionCheckpoint[];
|
|
163
|
+
memoryFlushAt?: number;
|
|
164
|
+
memoryFlushCompactionCount?: number;
|
|
165
|
+
cliSessionIds?: Record<string, string>;
|
|
166
|
+
claudeCliSessionId?: string;
|
|
167
|
+
label?: string;
|
|
168
|
+
displayName?: string;
|
|
169
|
+
/**
|
|
170
|
+
* For a channel/base session, the currently selected named child session.
|
|
171
|
+
* This lets a single Telegram/Discord/Slack chat switch between named work
|
|
172
|
+
* contexts without changing the channel route itself.
|
|
173
|
+
*/
|
|
174
|
+
activeSessionKey?: string; /** Base channel/session key that owns this named child session. */
|
|
175
|
+
baseSessionKey?: string; /** Stable slug used by /session switch/list for named channel sessions. */
|
|
176
|
+
sessionSlug?: string;
|
|
177
|
+
channel?: string;
|
|
178
|
+
groupId?: string;
|
|
179
|
+
subject?: string;
|
|
180
|
+
groupChannel?: string;
|
|
181
|
+
space?: string;
|
|
182
|
+
origin?: SessionOrigin;
|
|
183
|
+
deliveryContext?: DeliveryContext;
|
|
184
|
+
lastChannel?: SessionChannelId;
|
|
185
|
+
lastTo?: string;
|
|
186
|
+
lastAccountId?: string;
|
|
187
|
+
lastThreadId?: string | number;
|
|
188
|
+
skillsSnapshot?: SessionSkillSnapshot;
|
|
189
|
+
systemPromptReport?: SessionSystemPromptReport;
|
|
190
|
+
acp?: SessionAcpMeta;
|
|
191
|
+
};
|
|
192
|
+
type GroupKeyResolution = {
|
|
193
|
+
key: string;
|
|
194
|
+
channel?: string;
|
|
195
|
+
id?: string;
|
|
196
|
+
chatType?: SessionChatType;
|
|
197
|
+
};
|
|
198
|
+
type SessionSkillSnapshot = {
|
|
199
|
+
prompt: string;
|
|
200
|
+
skills: Array<{
|
|
201
|
+
name: string;
|
|
202
|
+
primaryEnv?: string;
|
|
203
|
+
requiredEnv?: string[];
|
|
204
|
+
}>; /** Normalized agent-level filter used to build this snapshot; undefined means unrestricted. */
|
|
205
|
+
skillFilter?: string[];
|
|
206
|
+
resolvedSkills?: Skill[];
|
|
207
|
+
version?: number;
|
|
208
|
+
};
|
|
209
|
+
type SessionSystemPromptReport = {
|
|
210
|
+
source: "run" | "estimate";
|
|
211
|
+
generatedAt: number;
|
|
212
|
+
sessionId?: string;
|
|
213
|
+
sessionKey?: string;
|
|
214
|
+
provider?: string;
|
|
215
|
+
model?: string;
|
|
216
|
+
workspaceDir?: string;
|
|
217
|
+
bootstrapMaxChars?: number;
|
|
218
|
+
bootstrapTotalMaxChars?: number;
|
|
219
|
+
bootstrapTruncation?: {
|
|
220
|
+
warningMode?: "off" | "once" | "always";
|
|
221
|
+
warningSignaturesSeen?: string[];
|
|
222
|
+
promptWarningSignature?: string;
|
|
223
|
+
[key: string]: unknown;
|
|
224
|
+
};
|
|
225
|
+
sandbox?: {
|
|
226
|
+
mode?: string;
|
|
227
|
+
sandboxed?: boolean;
|
|
228
|
+
};
|
|
229
|
+
systemPrompt: {
|
|
230
|
+
chars: number;
|
|
231
|
+
projectContextChars: number;
|
|
232
|
+
nonProjectContextChars: number;
|
|
233
|
+
};
|
|
234
|
+
injectedWorkspaceFiles: Array<{
|
|
235
|
+
name: string;
|
|
236
|
+
path: string;
|
|
237
|
+
missing: boolean;
|
|
238
|
+
rawChars: number;
|
|
239
|
+
injectedChars: number;
|
|
240
|
+
truncated: boolean;
|
|
241
|
+
}>;
|
|
242
|
+
skills: {
|
|
243
|
+
promptChars: number;
|
|
244
|
+
entries: Array<{
|
|
245
|
+
name: string;
|
|
246
|
+
blockChars: number;
|
|
247
|
+
}>;
|
|
248
|
+
};
|
|
249
|
+
tools: {
|
|
250
|
+
listChars: number;
|
|
251
|
+
schemaChars: number;
|
|
252
|
+
entries: Array<{
|
|
253
|
+
name: string;
|
|
254
|
+
summaryChars: number;
|
|
255
|
+
schemaChars: number;
|
|
256
|
+
propertiesCount?: number | null;
|
|
257
|
+
}>;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
//#endregion
|
|
261
|
+
//#region src/config/sessions/paths.d.ts
|
|
262
|
+
declare function resolveStorePath(store?: string, opts?: {
|
|
263
|
+
agentId?: string;
|
|
264
|
+
}): string;
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region src/config/sessions/store.d.ts
|
|
267
|
+
declare function readSessionUpdatedAt(params: {
|
|
268
|
+
storePath: string;
|
|
269
|
+
sessionKey: string;
|
|
270
|
+
}): number | undefined;
|
|
271
|
+
declare function recordSessionMetaFromInbound(params: {
|
|
272
|
+
storePath: string;
|
|
273
|
+
sessionKey: string;
|
|
274
|
+
ctx: MsgContext;
|
|
275
|
+
groupResolution?: GroupKeyResolution | null;
|
|
276
|
+
createIfMissing?: boolean;
|
|
277
|
+
}): Promise<SessionEntry | null>;
|
|
278
|
+
declare function updateLastRoute(params: {
|
|
279
|
+
storePath: string;
|
|
280
|
+
sessionKey: string;
|
|
281
|
+
channel?: SessionEntry["lastChannel"];
|
|
282
|
+
to?: string;
|
|
283
|
+
accountId?: string;
|
|
284
|
+
threadId?: string | number;
|
|
285
|
+
deliveryContext?: DeliveryContext;
|
|
286
|
+
ctx?: MsgContext;
|
|
287
|
+
groupResolution?: GroupKeyResolution | null;
|
|
288
|
+
}): Promise<SessionEntry>;
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/globals.d.ts
|
|
291
|
+
declare function shouldLogVerbose(): boolean;
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region src/auto-reply/reply/get-reply.d.ts
|
|
294
|
+
declare function getReplyFromConfig(ctx: MsgContext, opts?: GetReplyOptions, configOverride?: FasedAgentConfig): Promise<ReplyPayload | ReplyPayload[] | undefined>;
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/agents/tools/common.d.ts
|
|
297
|
+
type AnyAgentTool = AgentTool<any, unknown> & {
|
|
298
|
+
ownerOnly?: boolean;
|
|
299
|
+
displaySummary?: string;
|
|
300
|
+
};
|
|
301
|
+
type StringParamOptions = {
|
|
302
|
+
required?: boolean;
|
|
303
|
+
trim?: boolean;
|
|
304
|
+
label?: string;
|
|
305
|
+
allowEmpty?: boolean;
|
|
306
|
+
};
|
|
307
|
+
type ActionGate<T extends Record<string, boolean | undefined>> = (key: keyof T, defaultValue?: boolean) => boolean;
|
|
308
|
+
declare function createActionGate<T extends Record<string, boolean | undefined>>(actions: T | undefined): ActionGate<T>;
|
|
309
|
+
declare function readStringParam(params: Record<string, unknown>, key: string, options: StringParamOptions & {
|
|
310
|
+
required: true;
|
|
311
|
+
}): string;
|
|
312
|
+
declare function readStringParam(params: Record<string, unknown>, key: string, options?: StringParamOptions): string | undefined;
|
|
313
|
+
declare function readNumberParam(params: Record<string, unknown>, key: string, options?: {
|
|
314
|
+
required?: boolean;
|
|
315
|
+
label?: string;
|
|
316
|
+
integer?: boolean;
|
|
317
|
+
}): number | undefined;
|
|
318
|
+
type ReactionParams = {
|
|
319
|
+
emoji: string;
|
|
320
|
+
remove: boolean;
|
|
321
|
+
isEmpty: boolean;
|
|
322
|
+
};
|
|
323
|
+
declare function readReactionParams(params: Record<string, unknown>, options: {
|
|
324
|
+
emojiKey?: string;
|
|
325
|
+
removeKey?: string;
|
|
326
|
+
removeErrorMessage: string;
|
|
327
|
+
}): ReactionParams;
|
|
328
|
+
declare function jsonResult(payload: unknown): AgentToolResult<unknown>;
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region src/channels/typing.d.ts
|
|
331
|
+
type TypingCallbacks = {
|
|
332
|
+
onReplyStart: () => Promise<void>;
|
|
333
|
+
onIdle?: () => void; /** Called when the typing controller is cleaned up (e.g. on NO_REPLY). */
|
|
334
|
+
onCleanup?: () => void;
|
|
335
|
+
};
|
|
336
|
+
type CreateTypingCallbacksParams = {
|
|
337
|
+
start: () => Promise<void>;
|
|
338
|
+
stop?: () => Promise<void>;
|
|
339
|
+
onStartError: (err: unknown) => void;
|
|
340
|
+
onStopError?: (err: unknown) => void;
|
|
341
|
+
keepaliveIntervalMs?: number; /** Stop keepalive after this many consecutive start() failures. Default: 2 */
|
|
342
|
+
maxConsecutiveFailures?: number; /** Maximum duration for typing indicator before auto-cleanup (safety TTL). Default: 60s */
|
|
343
|
+
maxDurationMs?: number;
|
|
344
|
+
};
|
|
345
|
+
declare function createTypingCallbacks(params: CreateTypingCallbacksParams): TypingCallbacks;
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region src/auto-reply/reply/response-prefix-template.d.ts
|
|
348
|
+
/**
|
|
349
|
+
* Template interpolation for response prefix.
|
|
350
|
+
*
|
|
351
|
+
* Supports variables like `{model}`, `{provider}`, `{thinkingLevel}`, etc.
|
|
352
|
+
* Variables are case-insensitive and unresolved ones remain as literal text.
|
|
353
|
+
*/
|
|
354
|
+
type ResponsePrefixContext = {
|
|
355
|
+
/** Short model name (e.g., "gpt-5.2", "claude-opus-4-6") */model?: string; /** Full model ID including provider (e.g., "openai-codex/gpt-5.2") */
|
|
356
|
+
modelFull?: string; /** Provider name (e.g., "openai-codex", "anthropic") */
|
|
357
|
+
provider?: string; /** Current thinking level (e.g., "high", "low", "off") */
|
|
358
|
+
thinkingLevel?: string; /** Agent identity name */
|
|
359
|
+
identityName?: string;
|
|
360
|
+
};
|
|
361
|
+
//#endregion
|
|
362
|
+
//#region src/auto-reply/reply/normalize-reply.d.ts
|
|
363
|
+
type NormalizeReplySkipReason = "empty" | "silent" | "heartbeat";
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region src/auto-reply/reply/reply-dispatcher.d.ts
|
|
366
|
+
type ReplyDispatchKind = "tool" | "block" | "final";
|
|
367
|
+
type ReplyDispatchErrorHandler = (err: unknown, info: {
|
|
368
|
+
kind: ReplyDispatchKind;
|
|
369
|
+
}) => void;
|
|
370
|
+
type ReplyDispatchSkipHandler = (payload: ReplyPayload, info: {
|
|
371
|
+
kind: ReplyDispatchKind;
|
|
372
|
+
reason: NormalizeReplySkipReason;
|
|
373
|
+
}) => void;
|
|
374
|
+
type ReplyDispatchDeliverer = (payload: ReplyPayload, info: {
|
|
375
|
+
kind: ReplyDispatchKind;
|
|
376
|
+
}) => Promise<void>;
|
|
377
|
+
type ReplyDispatcherOptions = {
|
|
378
|
+
deliver: ReplyDispatchDeliverer;
|
|
379
|
+
responsePrefix?: string; /** Static context for response prefix template interpolation. */
|
|
380
|
+
responsePrefixContext?: ResponsePrefixContext;
|
|
381
|
+
/** Dynamic context provider for response prefix template interpolation.
|
|
382
|
+
* Called at normalization time, after model selection is complete. */
|
|
383
|
+
responsePrefixContextProvider?: () => ResponsePrefixContext;
|
|
384
|
+
onHeartbeatStrip?: () => void;
|
|
385
|
+
onIdle?: () => void;
|
|
386
|
+
onError?: ReplyDispatchErrorHandler;
|
|
387
|
+
onSkip?: ReplyDispatchSkipHandler; /** Human-like delay between block replies for natural rhythm. */
|
|
388
|
+
humanDelay?: HumanDelayConfig;
|
|
389
|
+
};
|
|
390
|
+
type ReplyDispatcherWithTypingOptions = Omit<ReplyDispatcherOptions, "onIdle"> & {
|
|
391
|
+
typingCallbacks?: TypingCallbacks;
|
|
392
|
+
onReplyStart?: () => Promise<void> | void;
|
|
393
|
+
onIdle?: () => void; /** Called when the typing controller is cleaned up (e.g., on NO_REPLY). */
|
|
394
|
+
onCleanup?: () => void;
|
|
395
|
+
};
|
|
396
|
+
type ReplyDispatcherWithTypingResult = {
|
|
397
|
+
dispatcher: ReplyDispatcher;
|
|
398
|
+
replyOptions: Pick<GetReplyOptions, "onReplyStart" | "onTypingController" | "onTypingCleanup">;
|
|
399
|
+
markDispatchIdle: () => void;
|
|
400
|
+
};
|
|
401
|
+
type ReplyDispatcher = {
|
|
402
|
+
sendToolResult: (payload: ReplyPayload) => boolean;
|
|
403
|
+
sendBlockReply: (payload: ReplyPayload) => boolean;
|
|
404
|
+
sendFinalReply: (payload: ReplyPayload) => boolean;
|
|
405
|
+
waitForIdle: () => Promise<void>;
|
|
406
|
+
getQueuedCounts: () => Record<ReplyDispatchKind, number>;
|
|
407
|
+
markComplete: () => void;
|
|
408
|
+
};
|
|
409
|
+
declare function createReplyDispatcherWithTyping(options: ReplyDispatcherWithTypingOptions): ReplyDispatcherWithTypingResult;
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region src/auto-reply/reply/dispatch-from-config.d.ts
|
|
412
|
+
type DispatchFromConfigResult = {
|
|
413
|
+
queuedFinal: boolean;
|
|
414
|
+
counts: Record<ReplyDispatchKind, number>;
|
|
415
|
+
};
|
|
416
|
+
declare function dispatchReplyFromConfig(params: {
|
|
417
|
+
ctx: FinalizedMsgContext;
|
|
418
|
+
cfg: FasedAgentConfig;
|
|
419
|
+
dispatcher: ReplyDispatcher;
|
|
420
|
+
replyOptions?: Omit<GetReplyOptions, "onToolResult" | "onBlockReply">;
|
|
421
|
+
replyResolver?: typeof getReplyFromConfig;
|
|
422
|
+
}): Promise<DispatchFromConfigResult>;
|
|
423
|
+
//#endregion
|
|
424
|
+
//#region src/auto-reply/dispatch.d.ts
|
|
425
|
+
type DispatchInboundResult = DispatchFromConfigResult;
|
|
426
|
+
declare function withReplyDispatcher<T>(params: {
|
|
427
|
+
dispatcher: ReplyDispatcher;
|
|
428
|
+
run: () => Promise<T>;
|
|
429
|
+
onSettled?: () => void | Promise<void>;
|
|
430
|
+
}): Promise<T>;
|
|
431
|
+
//#endregion
|
|
432
|
+
//#region src/auto-reply/reply/provider-dispatcher.d.ts
|
|
433
|
+
declare function dispatchReplyWithBufferedBlockDispatcher(params: {
|
|
434
|
+
ctx: MsgContext | FinalizedMsgContext;
|
|
435
|
+
cfg: FasedAgentConfig;
|
|
436
|
+
dispatcherOptions: ReplyDispatcherWithTypingOptions;
|
|
437
|
+
replyOptions?: Omit<GetReplyOptions, "onToolResult" | "onBlockReply">;
|
|
438
|
+
replyResolver?: typeof getReplyFromConfig;
|
|
439
|
+
}): Promise<DispatchInboundResult>;
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region src/agents/identity.d.ts
|
|
442
|
+
declare function resolveAckReaction(cfg: FasedAgentConfig, agentId: string, opts?: {
|
|
443
|
+
channel?: string;
|
|
444
|
+
accountId?: string;
|
|
445
|
+
}): string;
|
|
446
|
+
declare function resolveEffectiveMessagesConfig(cfg: FasedAgentConfig, agentId: string, opts?: {
|
|
447
|
+
hasAllowFrom?: boolean;
|
|
448
|
+
fallbackMessagePrefix?: string;
|
|
449
|
+
channel?: string;
|
|
450
|
+
accountId?: string;
|
|
451
|
+
}): {
|
|
452
|
+
messagePrefix: string;
|
|
453
|
+
responsePrefix?: string;
|
|
454
|
+
};
|
|
455
|
+
declare function resolveHumanDelayConfig(cfg: FasedAgentConfig, agentId: string): HumanDelayConfig | undefined;
|
|
456
|
+
//#endregion
|
|
457
|
+
//#region src/routing/resolve-route.d.ts
|
|
458
|
+
/** @deprecated Use ChatType from channels/chat-type.js */
|
|
459
|
+
type RoutePeerKind = ChatType;
|
|
460
|
+
type RoutePeer = {
|
|
461
|
+
kind: ChatType;
|
|
462
|
+
id: string;
|
|
463
|
+
};
|
|
464
|
+
type ResolveAgentRouteInput = {
|
|
465
|
+
cfg: FasedAgentConfig;
|
|
466
|
+
channel: string;
|
|
467
|
+
accountId?: string | null;
|
|
468
|
+
peer?: RoutePeer | null; /** Parent peer for threads — used for binding inheritance when peer doesn't match directly. */
|
|
469
|
+
parentPeer?: RoutePeer | null;
|
|
470
|
+
guildId?: string | null;
|
|
471
|
+
teamId?: string | null; /** Discord member role IDs — used for role-based agent routing. */
|
|
472
|
+
memberRoleIds?: string[];
|
|
473
|
+
};
|
|
474
|
+
type ResolvedAgentRoute = {
|
|
475
|
+
agentId: string;
|
|
476
|
+
channel: string;
|
|
477
|
+
accountId: string; /** Internal session key used for persistence + concurrency. */
|
|
478
|
+
sessionKey: string; /** Convenience alias for direct-chat collapse. */
|
|
479
|
+
mainSessionKey: string; /** Match description for debugging/logging. */
|
|
480
|
+
matchedBy: "binding.peer" | "binding.peer.parent" | "binding.guild+roles" | "binding.guild" | "binding.team" | "binding.account" | "binding.channel" | "default";
|
|
481
|
+
};
|
|
482
|
+
declare function resolveAgentRoute(input: ResolveAgentRouteInput): ResolvedAgentRoute;
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region src/pairing/pairing-store.d.ts
|
|
485
|
+
type PairingChannel = ChannelId;
|
|
486
|
+
declare function readChannelAllowFromStore(channel: PairingChannel, env: NodeJS.ProcessEnv | undefined, accountId: string): Promise<string[]>;
|
|
487
|
+
declare function upsertChannelPairingRequest(params: {
|
|
488
|
+
channel: PairingChannel;
|
|
489
|
+
id: string | number;
|
|
490
|
+
accountId: string;
|
|
491
|
+
meta?: Record<string, string | undefined | null>;
|
|
492
|
+
env?: NodeJS.ProcessEnv; /** Extension channels can pass their adapter directly to bypass registry lookup. */
|
|
493
|
+
pairingAdapter?: ChannelPairingAdapter;
|
|
494
|
+
}): Promise<{
|
|
495
|
+
code: string;
|
|
496
|
+
created: boolean;
|
|
497
|
+
}>;
|
|
498
|
+
//#endregion
|
|
499
|
+
//#region src/pairing/pairing-messages.d.ts
|
|
500
|
+
declare function buildPairingReply(params: {
|
|
501
|
+
channel: PairingChannel;
|
|
502
|
+
idLine: string;
|
|
503
|
+
code: string;
|
|
504
|
+
}): string;
|
|
505
|
+
//#endregion
|
|
506
|
+
//#region src/media/fetch.d.ts
|
|
507
|
+
type FetchMediaResult = {
|
|
508
|
+
buffer: Buffer;
|
|
509
|
+
contentType?: string;
|
|
510
|
+
fileName?: string;
|
|
511
|
+
};
|
|
512
|
+
type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
513
|
+
type FetchMediaOptions = {
|
|
514
|
+
url: string;
|
|
515
|
+
fetchImpl?: FetchLike;
|
|
516
|
+
requestInit?: RequestInit;
|
|
517
|
+
filePathHint?: string;
|
|
518
|
+
maxBytes?: number;
|
|
519
|
+
maxRedirects?: number;
|
|
520
|
+
ssrfPolicy?: SsrFPolicy;
|
|
521
|
+
lookupFn?: LookupFn;
|
|
522
|
+
};
|
|
523
|
+
declare function fetchRemoteMedia(options: FetchMediaOptions): Promise<FetchMediaResult>;
|
|
524
|
+
//#endregion
|
|
525
|
+
//#region src/media/store.d.ts
|
|
526
|
+
/**
|
|
527
|
+
* Extract original filename from path if it matches the embedded format.
|
|
528
|
+
* Pattern: {original}---{uuid}.{ext} → returns "{original}.{ext}"
|
|
529
|
+
* Falls back to basename if no pattern match, or "file.bin" if empty.
|
|
530
|
+
*/
|
|
531
|
+
declare function extractOriginalFilename(filePath: string): string;
|
|
532
|
+
type SavedMedia = {
|
|
533
|
+
id: string;
|
|
534
|
+
path: string;
|
|
535
|
+
size: number;
|
|
536
|
+
contentType?: string;
|
|
537
|
+
};
|
|
538
|
+
declare function saveMediaBuffer(buffer: Buffer, contentType?: string, subdir?: string, maxBytes?: number, originalFilename?: string): Promise<SavedMedia>;
|
|
539
|
+
//#endregion
|
|
540
|
+
//#region src/tts/tts.d.ts
|
|
541
|
+
type TtsTelephonyResult = {
|
|
542
|
+
success: boolean;
|
|
543
|
+
audioBuffer?: Buffer;
|
|
544
|
+
error?: string;
|
|
545
|
+
latencyMs?: number;
|
|
546
|
+
provider?: string;
|
|
547
|
+
outputFormat?: string;
|
|
548
|
+
sampleRate?: number;
|
|
549
|
+
};
|
|
550
|
+
declare function textToSpeechTelephony(params: {
|
|
551
|
+
text: string;
|
|
552
|
+
cfg: FasedAgentConfig;
|
|
553
|
+
prefsPath?: string;
|
|
554
|
+
}): Promise<TtsTelephonyResult>;
|
|
555
|
+
//#endregion
|
|
556
|
+
//#region src/auto-reply/reply/mentions.d.ts
|
|
557
|
+
declare function buildMentionRegexes(cfg: FasedAgentConfig | undefined, agentId?: string): RegExp[];
|
|
558
|
+
declare function matchesMentionPatterns(text: string, mentionRegexes: RegExp[]): boolean;
|
|
559
|
+
type ExplicitMentionSignal = {
|
|
560
|
+
hasAnyMention: boolean;
|
|
561
|
+
isExplicitlyMentioned: boolean;
|
|
562
|
+
canResolveExplicit: boolean;
|
|
563
|
+
};
|
|
564
|
+
declare function matchesMentionWithExplicit(params: {
|
|
565
|
+
text: string;
|
|
566
|
+
mentionRegexes: RegExp[];
|
|
567
|
+
explicit?: ExplicitMentionSignal;
|
|
568
|
+
transcript?: string;
|
|
569
|
+
}): boolean;
|
|
570
|
+
//#endregion
|
|
571
|
+
//#region src/channels/ack-reactions.d.ts
|
|
572
|
+
type AckReactionScope = "all" | "direct" | "group-all" | "group-mentions" | "off" | "none";
|
|
573
|
+
type WhatsAppAckReactionMode = "always" | "mentions" | "never";
|
|
574
|
+
type AckReactionGateParams = {
|
|
575
|
+
scope: AckReactionScope | undefined;
|
|
576
|
+
isDirect: boolean;
|
|
577
|
+
isGroup: boolean;
|
|
578
|
+
isMentionableGroup: boolean;
|
|
579
|
+
requireMention: boolean;
|
|
580
|
+
canDetectMention: boolean;
|
|
581
|
+
effectiveWasMentioned: boolean;
|
|
582
|
+
shouldBypassMention?: boolean;
|
|
583
|
+
};
|
|
584
|
+
declare function shouldAckReaction(params: AckReactionGateParams): boolean;
|
|
585
|
+
declare function shouldAckReactionForWhatsApp(params: {
|
|
586
|
+
emoji: string;
|
|
587
|
+
isDirect: boolean;
|
|
588
|
+
isGroup: boolean;
|
|
589
|
+
directEnabled: boolean;
|
|
590
|
+
groupMode: WhatsAppAckReactionMode;
|
|
591
|
+
wasMentioned: boolean;
|
|
592
|
+
groupActivated: boolean;
|
|
593
|
+
}): boolean;
|
|
594
|
+
declare function removeAckReactionAfterReply(params: {
|
|
595
|
+
removeAfterReply: boolean;
|
|
596
|
+
ackReactionPromise: Promise<boolean> | null;
|
|
597
|
+
ackReactionValue: string | null;
|
|
598
|
+
remove: () => Promise<void>;
|
|
599
|
+
onError?: (err: unknown) => void;
|
|
600
|
+
}): void;
|
|
601
|
+
//#endregion
|
|
602
|
+
//#region src/config/group-policy.d.ts
|
|
603
|
+
type GroupPolicyChannel = ChannelId;
|
|
604
|
+
type ChannelGroupConfig = {
|
|
605
|
+
requireMention?: boolean;
|
|
606
|
+
tools?: GroupToolPolicyConfig;
|
|
607
|
+
toolsBySender?: GroupToolPolicyBySenderConfig;
|
|
608
|
+
};
|
|
609
|
+
type ChannelGroupPolicy = {
|
|
610
|
+
allowlistEnabled: boolean;
|
|
611
|
+
allowed: boolean;
|
|
612
|
+
groupConfig?: ChannelGroupConfig;
|
|
613
|
+
defaultConfig?: ChannelGroupConfig;
|
|
614
|
+
};
|
|
615
|
+
type GroupToolPolicySender = {
|
|
616
|
+
senderId?: string | null;
|
|
617
|
+
senderName?: string | null;
|
|
618
|
+
senderUsername?: string | null;
|
|
619
|
+
senderE164?: string | null;
|
|
620
|
+
};
|
|
621
|
+
declare function resolveToolsBySender(params: {
|
|
622
|
+
toolsBySender?: GroupToolPolicyBySenderConfig;
|
|
623
|
+
} & GroupToolPolicySender): GroupToolPolicyConfig | undefined;
|
|
624
|
+
declare function resolveChannelGroupPolicy(params: {
|
|
625
|
+
cfg: FasedAgentConfig;
|
|
626
|
+
channel: GroupPolicyChannel;
|
|
627
|
+
groupId?: string | null;
|
|
628
|
+
accountId?: string | null;
|
|
629
|
+
groupIdCaseInsensitive?: boolean; /** When true, sender-level filtering (groupAllowFrom) is configured upstream. */
|
|
630
|
+
hasGroupAllowFrom?: boolean;
|
|
631
|
+
}): ChannelGroupPolicy;
|
|
632
|
+
declare function resolveChannelGroupRequireMention(params: {
|
|
633
|
+
cfg: FasedAgentConfig;
|
|
634
|
+
channel: GroupPolicyChannel;
|
|
635
|
+
groupId?: string | null;
|
|
636
|
+
accountId?: string | null;
|
|
637
|
+
groupIdCaseInsensitive?: boolean;
|
|
638
|
+
requireMentionOverride?: boolean;
|
|
639
|
+
overrideOrder?: "before-config" | "after-config";
|
|
640
|
+
}): boolean;
|
|
641
|
+
//#endregion
|
|
642
|
+
//#region src/auto-reply/inbound-debounce.d.ts
|
|
643
|
+
declare function resolveInboundDebounceMs(params: {
|
|
644
|
+
cfg: FasedAgentConfig;
|
|
645
|
+
channel: string;
|
|
646
|
+
overrideMs?: number;
|
|
647
|
+
}): number;
|
|
648
|
+
declare function createInboundDebouncer<T>(params: {
|
|
649
|
+
debounceMs: number;
|
|
650
|
+
buildKey: (item: T) => string | null | undefined;
|
|
651
|
+
shouldDebounce?: (item: T) => boolean;
|
|
652
|
+
resolveDebounceMs?: (item: T) => number | undefined;
|
|
653
|
+
onFlush: (items: T[]) => Promise<void>;
|
|
654
|
+
onError?: (err: unknown, items: T[]) => void;
|
|
655
|
+
}): {
|
|
656
|
+
enqueue: (item: T) => Promise<void>;
|
|
657
|
+
flushKey: (key: string) => Promise<void>;
|
|
658
|
+
};
|
|
659
|
+
//#endregion
|
|
660
|
+
//#region src/channels/command-gating.d.ts
|
|
661
|
+
type CommandAuthorizer = {
|
|
662
|
+
configured: boolean;
|
|
663
|
+
allowed: boolean;
|
|
664
|
+
};
|
|
665
|
+
type CommandGatingModeWhenAccessGroupsOff = "allow" | "deny" | "configured";
|
|
666
|
+
declare function resolveCommandAuthorizedFromAuthorizers(params: {
|
|
667
|
+
useAccessGroups: boolean;
|
|
668
|
+
authorizers: CommandAuthorizer[];
|
|
669
|
+
modeWhenAccessGroupsOff?: CommandGatingModeWhenAccessGroupsOff;
|
|
670
|
+
}): boolean;
|
|
671
|
+
declare function resolveControlCommandGate(params: {
|
|
672
|
+
useAccessGroups: boolean;
|
|
673
|
+
authorizers: CommandAuthorizer[];
|
|
674
|
+
allowTextCommands: boolean;
|
|
675
|
+
hasControlCommand: boolean;
|
|
676
|
+
modeWhenAccessGroupsOff?: CommandGatingModeWhenAccessGroupsOff;
|
|
677
|
+
}): {
|
|
678
|
+
commandAuthorized: boolean;
|
|
679
|
+
shouldBlock: boolean;
|
|
680
|
+
};
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region src/config/markdown-tables.d.ts
|
|
683
|
+
declare function resolveMarkdownTableMode(params: {
|
|
684
|
+
cfg?: Partial<FasedAgentConfig>;
|
|
685
|
+
channel?: string | null;
|
|
686
|
+
accountId?: string | null;
|
|
687
|
+
}): MarkdownTableMode;
|
|
688
|
+
//#endregion
|
|
689
|
+
//#region src/markdown/tables.d.ts
|
|
690
|
+
declare function convertMarkdownTables(markdown: string, mode: MarkdownTableMode): string;
|
|
691
|
+
//#endregion
|
|
692
|
+
//#region src/auto-reply/commands-registry.d.ts
|
|
693
|
+
declare function shouldHandleTextCommands(params: ShouldHandleTextCommandsParams): boolean;
|
|
694
|
+
//#endregion
|
|
695
|
+
//#region src/auto-reply/command-detection.d.ts
|
|
696
|
+
declare function hasControlCommand(text?: string, cfg?: FasedAgentConfig, options?: CommandNormalizeOptions): boolean;
|
|
697
|
+
declare function isControlCommandMessage(text?: string, cfg?: FasedAgentConfig, options?: CommandNormalizeOptions): boolean;
|
|
698
|
+
declare function shouldComputeCommandAuthorized(text?: string, cfg?: FasedAgentConfig, options?: CommandNormalizeOptions): boolean;
|
|
699
|
+
//#endregion
|
|
700
|
+
//#region src/auto-reply/reply/inbound-context.d.ts
|
|
701
|
+
type FinalizeInboundContextOptions = {
|
|
702
|
+
forceBodyForAgent?: boolean;
|
|
703
|
+
forceBodyForCommands?: boolean;
|
|
704
|
+
forceChatType?: boolean;
|
|
705
|
+
forceConversationLabel?: boolean;
|
|
706
|
+
};
|
|
707
|
+
declare function finalizeInboundContext<T extends Record<string, unknown>>(ctx: T, opts?: FinalizeInboundContextOptions): T & FinalizedMsgContext;
|
|
708
|
+
//#endregion
|
|
709
|
+
//#region src/channels/sender-label.d.ts
|
|
710
|
+
type SenderLabelParams = {
|
|
711
|
+
name?: string;
|
|
712
|
+
username?: string;
|
|
713
|
+
tag?: string;
|
|
714
|
+
e164?: string;
|
|
715
|
+
id?: string;
|
|
716
|
+
};
|
|
717
|
+
//#endregion
|
|
718
|
+
//#region src/auto-reply/envelope.d.ts
|
|
719
|
+
type AgentEnvelopeParams = {
|
|
720
|
+
channel: string;
|
|
721
|
+
from?: string;
|
|
722
|
+
timestamp?: number | Date;
|
|
723
|
+
host?: string;
|
|
724
|
+
ip?: string;
|
|
725
|
+
body: string;
|
|
726
|
+
previousTimestamp?: number | Date;
|
|
727
|
+
envelope?: EnvelopeFormatOptions;
|
|
728
|
+
};
|
|
729
|
+
type EnvelopeFormatOptions = {
|
|
730
|
+
/**
|
|
731
|
+
* "local" (default), "utc", "user", or an explicit IANA timezone string.
|
|
732
|
+
*/
|
|
733
|
+
timezone?: string;
|
|
734
|
+
/**
|
|
735
|
+
* Include absolute timestamps in the envelope (default: true).
|
|
736
|
+
*/
|
|
737
|
+
includeTimestamp?: boolean;
|
|
738
|
+
/**
|
|
739
|
+
* Include elapsed time suffix when previousTimestamp is provided (default: true).
|
|
740
|
+
*/
|
|
741
|
+
includeElapsed?: boolean;
|
|
742
|
+
/**
|
|
743
|
+
* Optional user timezone used when timezone="user".
|
|
744
|
+
*/
|
|
745
|
+
userTimezone?: string;
|
|
746
|
+
};
|
|
747
|
+
declare function resolveEnvelopeFormatOptions(cfg?: FasedAgentConfig): EnvelopeFormatOptions;
|
|
748
|
+
declare function formatAgentEnvelope(params: AgentEnvelopeParams): string;
|
|
749
|
+
declare function formatInboundEnvelope(params: {
|
|
750
|
+
channel: string;
|
|
751
|
+
from: string;
|
|
752
|
+
body: string;
|
|
753
|
+
timestamp?: number | Date;
|
|
754
|
+
chatType?: string;
|
|
755
|
+
senderLabel?: string;
|
|
756
|
+
sender?: SenderLabelParams;
|
|
757
|
+
previousTimestamp?: number | Date;
|
|
758
|
+
envelope?: EnvelopeFormatOptions;
|
|
759
|
+
}): string;
|
|
760
|
+
declare function formatInboundFromLabel(params: {
|
|
761
|
+
isGroup: boolean;
|
|
762
|
+
groupLabel?: string;
|
|
763
|
+
groupId?: string;
|
|
764
|
+
directLabel: string;
|
|
765
|
+
directId?: string;
|
|
766
|
+
groupFallback?: string;
|
|
767
|
+
}): string;
|
|
768
|
+
//#endregion
|
|
769
|
+
//#region src/channels/session.d.ts
|
|
770
|
+
type InboundLastRouteUpdate = {
|
|
771
|
+
sessionKey: string;
|
|
772
|
+
channel: SessionEntry["lastChannel"];
|
|
773
|
+
to: string;
|
|
774
|
+
accountId?: string;
|
|
775
|
+
threadId?: string | number;
|
|
776
|
+
};
|
|
777
|
+
declare function recordInboundSession(params: {
|
|
778
|
+
storePath: string;
|
|
779
|
+
sessionKey: string;
|
|
780
|
+
ctx: MsgContext;
|
|
781
|
+
groupResolution?: GroupKeyResolution | null;
|
|
782
|
+
createIfMissing?: boolean;
|
|
783
|
+
updateLastRoute?: InboundLastRouteUpdate;
|
|
784
|
+
onRecordError: (err: unknown) => void;
|
|
785
|
+
}): Promise<void>;
|
|
786
|
+
//#endregion
|
|
787
|
+
//#region src/infra/channel-activity.d.ts
|
|
788
|
+
type ChannelDirection = "inbound" | "outbound";
|
|
789
|
+
type ActivityEntry = {
|
|
790
|
+
inboundAt: number | null;
|
|
791
|
+
outboundAt: number | null;
|
|
792
|
+
};
|
|
793
|
+
declare function recordChannelActivity(params: {
|
|
794
|
+
channel: ChannelId;
|
|
795
|
+
accountId?: string | null;
|
|
796
|
+
direction: ChannelDirection;
|
|
797
|
+
at?: number;
|
|
798
|
+
}): void;
|
|
799
|
+
declare function getChannelActivity(params: {
|
|
800
|
+
channel: ChannelId;
|
|
801
|
+
accountId?: string | null;
|
|
802
|
+
}): ActivityEntry;
|
|
803
|
+
//#endregion
|
|
804
|
+
//#region src/infra/system-events.d.ts
|
|
805
|
+
type SystemEventOptions = {
|
|
806
|
+
sessionKey: string;
|
|
807
|
+
contextKey?: string | null;
|
|
808
|
+
trusted?: boolean;
|
|
809
|
+
};
|
|
810
|
+
declare function enqueueSystemEvent(text: string, options: SystemEventOptions): boolean | undefined;
|
|
811
|
+
//#endregion
|
|
812
|
+
//#region src/process/exec.d.ts
|
|
813
|
+
type SpawnResult = {
|
|
814
|
+
pid?: number;
|
|
815
|
+
stdout: string;
|
|
816
|
+
stderr: string;
|
|
817
|
+
code: number | null;
|
|
818
|
+
signal: NodeJS.Signals | null;
|
|
819
|
+
killed: boolean;
|
|
820
|
+
termination: "exit" | "timeout" | "no-output-timeout" | "signal";
|
|
821
|
+
noOutputTimedOut?: boolean;
|
|
822
|
+
};
|
|
823
|
+
type CommandOptions = {
|
|
824
|
+
timeoutMs: number;
|
|
825
|
+
cwd?: string;
|
|
826
|
+
input?: string;
|
|
827
|
+
env?: NodeJS.ProcessEnv;
|
|
828
|
+
windowsVerbatimArguments?: boolean;
|
|
829
|
+
noOutputTimeoutMs?: number;
|
|
830
|
+
};
|
|
831
|
+
declare function runCommandWithTimeout(argv: string[], optionsOrTimeout: number | CommandOptions): Promise<SpawnResult>;
|
|
832
|
+
//#endregion
|
|
833
|
+
//#region src/plugins/runtime/native-deps.d.ts
|
|
834
|
+
type NativeDependencyHintParams = {
|
|
835
|
+
packageName: string;
|
|
836
|
+
manager?: "pnpm" | "npm" | "yarn";
|
|
837
|
+
rebuildCommand?: string;
|
|
838
|
+
approveBuildsCommand?: string;
|
|
839
|
+
downloadCommand?: string;
|
|
840
|
+
};
|
|
841
|
+
declare function formatNativeDependencyHint(params: NativeDependencyHintParams): string;
|
|
842
|
+
//#endregion
|
|
843
|
+
//#region src/media/constants.d.ts
|
|
844
|
+
type MediaKind = "image" | "audio" | "video" | "document" | "unknown";
|
|
845
|
+
declare function mediaKindFromMime(mime?: string | null): MediaKind;
|
|
846
|
+
//#endregion
|
|
847
|
+
//#region src/media/image-ops.d.ts
|
|
848
|
+
type ImageMetadata = {
|
|
849
|
+
width: number;
|
|
850
|
+
height: number;
|
|
851
|
+
};
|
|
852
|
+
declare function getImageMetadata(buffer: Buffer): Promise<ImageMetadata | null>;
|
|
853
|
+
declare function resizeToJpeg(params: {
|
|
854
|
+
buffer: Buffer;
|
|
855
|
+
maxSide: number;
|
|
856
|
+
quality: number;
|
|
857
|
+
withoutEnlargement?: boolean;
|
|
858
|
+
}): Promise<Buffer>;
|
|
859
|
+
//#endregion
|
|
860
|
+
//#region src/web/media.d.ts
|
|
861
|
+
type WebMediaResult = {
|
|
862
|
+
buffer: Buffer;
|
|
863
|
+
contentType?: string;
|
|
864
|
+
kind: MediaKind;
|
|
865
|
+
fileName?: string;
|
|
866
|
+
};
|
|
867
|
+
type WebMediaOptions = {
|
|
868
|
+
maxBytes?: number;
|
|
869
|
+
optimizeImages?: boolean;
|
|
870
|
+
ssrfPolicy?: SsrFPolicy; /** Allowed root directories for local path reads. "any" is deprecated; prefer sandboxValidated + readFile. */
|
|
871
|
+
localRoots?: readonly string[] | "any"; /** Caller already validated the local path (sandbox/other guards); requires readFile override. */
|
|
872
|
+
sandboxValidated?: boolean;
|
|
873
|
+
readFile?: (filePath: string) => Promise<Buffer>;
|
|
874
|
+
};
|
|
875
|
+
declare function loadWebMedia(mediaUrl: string, maxBytesOrOptions?: number | WebMediaOptions, options?: {
|
|
876
|
+
ssrfPolicy?: SsrFPolicy;
|
|
877
|
+
localRoots?: readonly string[] | "any";
|
|
878
|
+
}): Promise<WebMediaResult>;
|
|
879
|
+
//#endregion
|
|
880
|
+
//#region src/media/mime.d.ts
|
|
881
|
+
declare function getFileExtension(filePath?: string | null): string | undefined;
|
|
882
|
+
declare function detectMime(opts: {
|
|
883
|
+
buffer?: Buffer;
|
|
884
|
+
headerMime?: string | null;
|
|
885
|
+
filePath?: string;
|
|
886
|
+
}): Promise<string | undefined>;
|
|
887
|
+
declare function extensionForMime(mime?: string | null): string | undefined;
|
|
888
|
+
//#endregion
|
|
889
|
+
//#region src/media/audio.d.ts
|
|
890
|
+
/**
|
|
891
|
+
* Backward-compatible alias used across plugin/runtime call sites.
|
|
892
|
+
* Keeps existing behavior while making Telegram-specific policy explicit.
|
|
893
|
+
*/
|
|
894
|
+
declare function isVoiceCompatibleAudio(opts: {
|
|
895
|
+
contentType?: string | null;
|
|
896
|
+
fileName?: string | null;
|
|
897
|
+
}): boolean;
|
|
898
|
+
//#endregion
|
|
899
|
+
//#region src/agents/tools/memory-tool.d.ts
|
|
900
|
+
declare function createMemorySearchTool(options: {
|
|
901
|
+
config?: FasedAgentConfig;
|
|
902
|
+
agentSessionKey?: string;
|
|
903
|
+
}): AnyAgentTool | null;
|
|
904
|
+
declare function createMemoryGetTool(options: {
|
|
905
|
+
config?: FasedAgentConfig;
|
|
906
|
+
agentSessionKey?: string;
|
|
907
|
+
}): AnyAgentTool | null;
|
|
908
|
+
//#endregion
|
|
909
|
+
//#region src/cli/memory-cli.d.ts
|
|
910
|
+
declare function registerMemoryCli(program: Command): void;
|
|
911
|
+
//#endregion
|
|
912
|
+
//#region src/channels/plugins/actions/discord.d.ts
|
|
913
|
+
declare const discordMessageActions: ChannelMessageActionAdapter;
|
|
914
|
+
//#endregion
|
|
915
|
+
//#region src/discord/audit.d.ts
|
|
916
|
+
type DiscordChannelPermissionsAuditEntry = {
|
|
917
|
+
channelId: string;
|
|
918
|
+
ok: boolean;
|
|
919
|
+
missing?: string[];
|
|
920
|
+
error?: string | null;
|
|
921
|
+
matchKey?: string;
|
|
922
|
+
matchSource?: "id";
|
|
923
|
+
};
|
|
924
|
+
type DiscordChannelPermissionsAudit = {
|
|
925
|
+
ok: boolean;
|
|
926
|
+
checkedChannels: number;
|
|
927
|
+
unresolvedChannels: number;
|
|
928
|
+
channels: DiscordChannelPermissionsAuditEntry[];
|
|
929
|
+
elapsedMs: number;
|
|
930
|
+
};
|
|
931
|
+
declare function collectDiscordAuditChannelIds(params: {
|
|
932
|
+
cfg: FasedAgentConfig;
|
|
933
|
+
accountId?: string | null;
|
|
934
|
+
}): {
|
|
935
|
+
channelIds: string[];
|
|
936
|
+
unresolvedChannels: number;
|
|
937
|
+
};
|
|
938
|
+
declare function auditDiscordChannelPermissions(params: {
|
|
939
|
+
token: string;
|
|
940
|
+
accountId?: string | null;
|
|
941
|
+
channelIds: string[];
|
|
942
|
+
timeoutMs: number;
|
|
943
|
+
}): Promise<DiscordChannelPermissionsAudit>;
|
|
944
|
+
//#endregion
|
|
945
|
+
//#region src/channels/plugins/directory-config.d.ts
|
|
946
|
+
type DirectoryConfigParams = {
|
|
947
|
+
cfg: FasedAgentConfig;
|
|
948
|
+
accountId?: string | null;
|
|
949
|
+
query?: string | null;
|
|
950
|
+
limit?: number | null;
|
|
951
|
+
};
|
|
952
|
+
declare function listSlackDirectoryPeersFromConfig(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
953
|
+
declare function listSlackDirectoryGroupsFromConfig(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
954
|
+
declare function listDiscordDirectoryPeersFromConfig(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
955
|
+
declare function listDiscordDirectoryGroupsFromConfig(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
956
|
+
declare function listTelegramDirectoryPeersFromConfig(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
957
|
+
declare function listTelegramDirectoryGroupsFromConfig(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
958
|
+
declare function listWhatsAppDirectoryPeersFromConfig(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
959
|
+
declare function listWhatsAppDirectoryGroupsFromConfig(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
960
|
+
//#endregion
|
|
961
|
+
//#region src/discord/directory-live.d.ts
|
|
962
|
+
declare function listDiscordDirectoryGroupsLive(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
963
|
+
declare function listDiscordDirectoryPeersLive(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region src/discord/probe.d.ts
|
|
966
|
+
type DiscordProbe = BaseProbeResult & {
|
|
967
|
+
status?: number | null;
|
|
968
|
+
elapsedMs: number;
|
|
969
|
+
bot?: {
|
|
970
|
+
id?: string | null;
|
|
971
|
+
username?: string | null;
|
|
972
|
+
};
|
|
973
|
+
application?: DiscordApplicationSummary;
|
|
974
|
+
};
|
|
975
|
+
type DiscordPrivilegedIntentStatus = "enabled" | "limited" | "disabled";
|
|
976
|
+
type DiscordPrivilegedIntentsSummary = {
|
|
977
|
+
messageContent: DiscordPrivilegedIntentStatus;
|
|
978
|
+
guildMembers: DiscordPrivilegedIntentStatus;
|
|
979
|
+
presence: DiscordPrivilegedIntentStatus;
|
|
980
|
+
};
|
|
981
|
+
type DiscordApplicationSummary = {
|
|
982
|
+
id?: string | null;
|
|
983
|
+
flags?: number | null;
|
|
984
|
+
intents?: DiscordPrivilegedIntentsSummary;
|
|
985
|
+
};
|
|
986
|
+
declare function probeDiscord(token: string, timeoutMs: number, opts?: {
|
|
987
|
+
fetcher?: typeof fetch;
|
|
988
|
+
includeApplication?: boolean;
|
|
989
|
+
}): Promise<DiscordProbe>;
|
|
990
|
+
//#endregion
|
|
991
|
+
//#region src/discord/resolve-channels.d.ts
|
|
992
|
+
type DiscordChannelResolution = {
|
|
993
|
+
input: string;
|
|
994
|
+
resolved: boolean;
|
|
995
|
+
guildId?: string;
|
|
996
|
+
guildName?: string;
|
|
997
|
+
channelId?: string;
|
|
998
|
+
channelName?: string;
|
|
999
|
+
archived?: boolean;
|
|
1000
|
+
note?: string;
|
|
1001
|
+
};
|
|
1002
|
+
declare function resolveDiscordChannelAllowlist(params: {
|
|
1003
|
+
token: string;
|
|
1004
|
+
entries: string[];
|
|
1005
|
+
fetcher?: typeof fetch;
|
|
1006
|
+
}): Promise<DiscordChannelResolution[]>;
|
|
1007
|
+
//#endregion
|
|
1008
|
+
//#region src/discord/resolve-users.d.ts
|
|
1009
|
+
type DiscordUserResolution = {
|
|
1010
|
+
input: string;
|
|
1011
|
+
resolved: boolean;
|
|
1012
|
+
id?: string;
|
|
1013
|
+
name?: string;
|
|
1014
|
+
guildId?: string;
|
|
1015
|
+
guildName?: string;
|
|
1016
|
+
note?: string;
|
|
1017
|
+
};
|
|
1018
|
+
declare function resolveDiscordUserAllowlist(params: {
|
|
1019
|
+
token: string;
|
|
1020
|
+
entries: string[];
|
|
1021
|
+
fetcher?: typeof fetch;
|
|
1022
|
+
}): Promise<DiscordUserResolution[]>;
|
|
1023
|
+
//#endregion
|
|
1024
|
+
//#region src/config/runtime-group-policy.d.ts
|
|
1025
|
+
type RuntimeGroupPolicyResolution = {
|
|
1026
|
+
groupPolicy: GroupPolicy;
|
|
1027
|
+
providerMissingFallbackApplied: boolean;
|
|
1028
|
+
};
|
|
1029
|
+
type ResolveProviderRuntimeGroupPolicyParams = {
|
|
1030
|
+
providerConfigPresent: boolean;
|
|
1031
|
+
groupPolicy?: GroupPolicy;
|
|
1032
|
+
defaultGroupPolicy?: GroupPolicy;
|
|
1033
|
+
};
|
|
1034
|
+
type GroupPolicyDefaultsConfig = {
|
|
1035
|
+
channels?: {
|
|
1036
|
+
defaults?: {
|
|
1037
|
+
groupPolicy?: GroupPolicy;
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
};
|
|
1041
|
+
declare function resolveDefaultGroupPolicy(cfg: GroupPolicyDefaultsConfig): GroupPolicy | undefined;
|
|
1042
|
+
declare const GROUP_POLICY_BLOCKED_LABEL: {
|
|
1043
|
+
readonly group: "group messages";
|
|
1044
|
+
readonly guild: "guild messages";
|
|
1045
|
+
readonly room: "room messages";
|
|
1046
|
+
readonly channel: "channel messages";
|
|
1047
|
+
readonly space: "space messages";
|
|
1048
|
+
};
|
|
1049
|
+
/**
|
|
1050
|
+
* Standard provider runtime policy:
|
|
1051
|
+
* - configured provider fallback: open
|
|
1052
|
+
* - missing provider fallback: allowlist (fail-closed)
|
|
1053
|
+
*/
|
|
1054
|
+
declare function resolveOpenProviderRuntimeGroupPolicy(params: ResolveProviderRuntimeGroupPolicyParams): RuntimeGroupPolicyResolution;
|
|
1055
|
+
/**
|
|
1056
|
+
* Strict provider runtime policy:
|
|
1057
|
+
* - configured provider fallback: allowlist
|
|
1058
|
+
* - missing provider fallback: allowlist (fail-closed)
|
|
1059
|
+
*/
|
|
1060
|
+
declare function resolveAllowlistProviderRuntimeGroupPolicy(params: ResolveProviderRuntimeGroupPolicyParams): RuntimeGroupPolicyResolution;
|
|
1061
|
+
declare function warnMissingProviderGroupPolicyFallbackOnce(params: {
|
|
1062
|
+
providerMissingFallbackApplied: boolean;
|
|
1063
|
+
providerKey: string;
|
|
1064
|
+
accountId?: string;
|
|
1065
|
+
blockedLabel?: string;
|
|
1066
|
+
log: (message: string) => void;
|
|
1067
|
+
}): boolean;
|
|
1068
|
+
//#endregion
|
|
1069
|
+
//#region src/discord/monitor/provider.d.ts
|
|
1070
|
+
type MonitorDiscordOpts = {
|
|
1071
|
+
token?: string;
|
|
1072
|
+
accountId?: string;
|
|
1073
|
+
config?: FasedAgentConfig;
|
|
1074
|
+
runtime?: RuntimeEnv;
|
|
1075
|
+
abortSignal?: AbortSignal;
|
|
1076
|
+
mediaMaxMb?: number;
|
|
1077
|
+
historyLimit?: number;
|
|
1078
|
+
replyToMode?: ReplyToMode;
|
|
1079
|
+
getStatus?: () => ChannelAccountSnapshot;
|
|
1080
|
+
setStatus?: (next: ChannelAccountSnapshot) => void;
|
|
1081
|
+
};
|
|
1082
|
+
declare function monitorDiscordProvider(opts?: MonitorDiscordOpts): Promise<void>;
|
|
1083
|
+
//#endregion
|
|
1084
|
+
//#region src/slack/directory-live.d.ts
|
|
1085
|
+
declare function listSlackDirectoryPeersLive(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
1086
|
+
declare function listSlackDirectoryGroupsLive(params: DirectoryConfigParams): Promise<ChannelDirectoryEntry[]>;
|
|
1087
|
+
//#endregion
|
|
1088
|
+
//#region src/slack/probe.d.ts
|
|
1089
|
+
type SlackProbe = BaseProbeResult & {
|
|
1090
|
+
status?: number | null;
|
|
1091
|
+
elapsedMs?: number | null;
|
|
1092
|
+
bot?: {
|
|
1093
|
+
id?: string;
|
|
1094
|
+
name?: string;
|
|
1095
|
+
};
|
|
1096
|
+
team?: {
|
|
1097
|
+
id?: string;
|
|
1098
|
+
name?: string;
|
|
1099
|
+
};
|
|
1100
|
+
};
|
|
1101
|
+
declare function probeSlack(token: string, timeoutMs?: number): Promise<SlackProbe>;
|
|
1102
|
+
//#endregion
|
|
1103
|
+
//#region src/slack/resolve-channels.d.ts
|
|
1104
|
+
type SlackChannelResolution = {
|
|
1105
|
+
input: string;
|
|
1106
|
+
resolved: boolean;
|
|
1107
|
+
id?: string;
|
|
1108
|
+
name?: string;
|
|
1109
|
+
archived?: boolean;
|
|
1110
|
+
};
|
|
1111
|
+
declare function resolveSlackChannelAllowlist(params: {
|
|
1112
|
+
token: string;
|
|
1113
|
+
entries: string[];
|
|
1114
|
+
client?: WebClient;
|
|
1115
|
+
}): Promise<SlackChannelResolution[]>;
|
|
1116
|
+
//#endregion
|
|
1117
|
+
//#region src/slack/resolve-users.d.ts
|
|
1118
|
+
type SlackUserResolution = {
|
|
1119
|
+
input: string;
|
|
1120
|
+
resolved: boolean;
|
|
1121
|
+
id?: string;
|
|
1122
|
+
name?: string;
|
|
1123
|
+
email?: string;
|
|
1124
|
+
deleted?: boolean;
|
|
1125
|
+
isBot?: boolean;
|
|
1126
|
+
note?: string;
|
|
1127
|
+
};
|
|
1128
|
+
declare function resolveSlackUserAllowlist(params: {
|
|
1129
|
+
token: string;
|
|
1130
|
+
entries: string[];
|
|
1131
|
+
client?: WebClient;
|
|
1132
|
+
}): Promise<SlackUserResolution[]>;
|
|
1133
|
+
//#endregion
|
|
1134
|
+
//#region src/slack/monitor/types.d.ts
|
|
1135
|
+
type MonitorSlackOpts = {
|
|
1136
|
+
botToken?: string;
|
|
1137
|
+
appToken?: string;
|
|
1138
|
+
accountId?: string;
|
|
1139
|
+
mode?: "socket" | "http";
|
|
1140
|
+
config?: FasedAgentConfig;
|
|
1141
|
+
runtime?: RuntimeEnv;
|
|
1142
|
+
abortSignal?: AbortSignal;
|
|
1143
|
+
mediaMaxMb?: number;
|
|
1144
|
+
slashCommand?: SlackSlashCommandConfig;
|
|
1145
|
+
};
|
|
1146
|
+
//#endregion
|
|
1147
|
+
//#region src/slack/monitor/provider.d.ts
|
|
1148
|
+
declare function monitorSlackProvider(opts?: MonitorSlackOpts): Promise<void>;
|
|
1149
|
+
//#endregion
|
|
1150
|
+
//#region src/agents/tools/slack-actions.d.ts
|
|
1151
|
+
type SlackActionContext = {
|
|
1152
|
+
/** Current channel ID for auto-threading. */currentChannelId?: string; /** Current thread timestamp for auto-threading. */
|
|
1153
|
+
currentThreadTs?: string; /** Reply-to mode for auto-threading. */
|
|
1154
|
+
replyToMode?: "off" | "first" | "all"; /** Mutable ref to track if a reply was sent (for "first" mode). */
|
|
1155
|
+
hasRepliedRef?: {
|
|
1156
|
+
value: boolean;
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
declare function handleSlackAction(params: Record<string, unknown>, cfg: FasedAgentConfig, context?: SlackActionContext): Promise<AgentToolResult<unknown>>;
|
|
1160
|
+
//#endregion
|
|
1161
|
+
//#region src/telegram/audit.d.ts
|
|
1162
|
+
type TelegramGroupMembershipAuditEntry = {
|
|
1163
|
+
chatId: string;
|
|
1164
|
+
ok: boolean;
|
|
1165
|
+
status?: string | null;
|
|
1166
|
+
error?: string | null;
|
|
1167
|
+
matchKey?: string;
|
|
1168
|
+
matchSource?: "id";
|
|
1169
|
+
};
|
|
1170
|
+
type TelegramGroupMembershipAudit = {
|
|
1171
|
+
ok: boolean;
|
|
1172
|
+
checkedGroups: number;
|
|
1173
|
+
unresolvedGroups: number;
|
|
1174
|
+
hasWildcardUnmentionedGroups: boolean;
|
|
1175
|
+
groups: TelegramGroupMembershipAuditEntry[];
|
|
1176
|
+
elapsedMs: number;
|
|
1177
|
+
};
|
|
1178
|
+
declare function collectTelegramUnmentionedGroupIds(groups: Record<string, TelegramGroupConfig> | undefined): {
|
|
1179
|
+
groupIds: string[];
|
|
1180
|
+
unresolvedGroups: number;
|
|
1181
|
+
hasWildcardUnmentionedGroups: boolean;
|
|
1182
|
+
};
|
|
1183
|
+
declare function auditTelegramGroupMembership(params: {
|
|
1184
|
+
token: string;
|
|
1185
|
+
botId: number;
|
|
1186
|
+
groupIds: string[];
|
|
1187
|
+
proxyUrl?: string;
|
|
1188
|
+
timeoutMs: number;
|
|
1189
|
+
}): Promise<TelegramGroupMembershipAudit>;
|
|
1190
|
+
//#endregion
|
|
1191
|
+
//#region src/telegram/probe.d.ts
|
|
1192
|
+
type TelegramProbe = BaseProbeResult & {
|
|
1193
|
+
status?: number | null;
|
|
1194
|
+
elapsedMs: number;
|
|
1195
|
+
bot?: {
|
|
1196
|
+
id?: number | null;
|
|
1197
|
+
username?: string | null;
|
|
1198
|
+
canJoinGroups?: boolean | null;
|
|
1199
|
+
canReadAllGroupMessages?: boolean | null;
|
|
1200
|
+
supportsInlineQueries?: boolean | null;
|
|
1201
|
+
};
|
|
1202
|
+
webhook?: {
|
|
1203
|
+
url?: string | null;
|
|
1204
|
+
hasCustomCert?: boolean | null;
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
declare function probeTelegram(token: string, timeoutMs: number, proxyUrl?: string): Promise<TelegramProbe>;
|
|
1208
|
+
//#endregion
|
|
1209
|
+
//#region src/telegram/token.d.ts
|
|
1210
|
+
type TelegramTokenSource = "env" | "tokenFile" | "config" | "none";
|
|
1211
|
+
type TelegramTokenResolution = BaseTokenResolution & {
|
|
1212
|
+
source: TelegramTokenSource;
|
|
1213
|
+
};
|
|
1214
|
+
type ResolveTelegramTokenOpts = {
|
|
1215
|
+
envToken?: string | null;
|
|
1216
|
+
accountId?: string | null;
|
|
1217
|
+
logMissingFile?: (message: string) => void;
|
|
1218
|
+
};
|
|
1219
|
+
declare function resolveTelegramToken(cfg?: FasedAgentConfig, opts?: ResolveTelegramTokenOpts): TelegramTokenResolution;
|
|
1220
|
+
//#endregion
|
|
1221
|
+
//#region src/telegram/monitor.d.ts
|
|
1222
|
+
type MonitorTelegramOpts = {
|
|
1223
|
+
token?: string;
|
|
1224
|
+
accountId?: string;
|
|
1225
|
+
config?: FasedAgentConfig;
|
|
1226
|
+
runtime?: RuntimeEnv;
|
|
1227
|
+
abortSignal?: AbortSignal;
|
|
1228
|
+
useWebhook?: boolean;
|
|
1229
|
+
webhookPath?: string;
|
|
1230
|
+
webhookPort?: number;
|
|
1231
|
+
webhookSecret?: string;
|
|
1232
|
+
webhookHost?: string;
|
|
1233
|
+
proxyFetch?: typeof fetch;
|
|
1234
|
+
webhookUrl?: string;
|
|
1235
|
+
};
|
|
1236
|
+
declare function monitorTelegramProvider(opts?: MonitorTelegramOpts): Promise<void>;
|
|
1237
|
+
//#endregion
|
|
1238
|
+
//#region src/channels/plugins/actions/telegram.d.ts
|
|
1239
|
+
declare const telegramMessageActions: ChannelMessageActionAdapter;
|
|
1240
|
+
//#endregion
|
|
1241
|
+
//#region src/signal/probe.d.ts
|
|
1242
|
+
type SignalProbe = BaseProbeResult & {
|
|
1243
|
+
status?: number | null;
|
|
1244
|
+
elapsedMs: number;
|
|
1245
|
+
version?: string | null;
|
|
1246
|
+
};
|
|
1247
|
+
declare function probeSignal(baseUrl: string, timeoutMs: number): Promise<SignalProbe>;
|
|
1248
|
+
//#endregion
|
|
1249
|
+
//#region src/infra/backoff.d.ts
|
|
1250
|
+
type BackoffPolicy = {
|
|
1251
|
+
initialMs: number;
|
|
1252
|
+
maxMs: number;
|
|
1253
|
+
factor: number;
|
|
1254
|
+
jitter: number;
|
|
1255
|
+
};
|
|
1256
|
+
//#endregion
|
|
1257
|
+
//#region src/signal/monitor.d.ts
|
|
1258
|
+
type MonitorSignalOpts = {
|
|
1259
|
+
runtime?: RuntimeEnv;
|
|
1260
|
+
abortSignal?: AbortSignal;
|
|
1261
|
+
account?: string;
|
|
1262
|
+
accountId?: string;
|
|
1263
|
+
config?: FasedAgentConfig;
|
|
1264
|
+
baseUrl?: string;
|
|
1265
|
+
autoStart?: boolean;
|
|
1266
|
+
startupTimeoutMs?: number;
|
|
1267
|
+
cliPath?: string;
|
|
1268
|
+
httpHost?: string;
|
|
1269
|
+
httpPort?: number;
|
|
1270
|
+
receiveMode?: "on-start" | "manual";
|
|
1271
|
+
ignoreAttachments?: boolean;
|
|
1272
|
+
ignoreStories?: boolean;
|
|
1273
|
+
sendReadReceipts?: boolean;
|
|
1274
|
+
allowFrom?: Array<string | number>;
|
|
1275
|
+
groupAllowFrom?: Array<string | number>;
|
|
1276
|
+
mediaMaxMb?: number;
|
|
1277
|
+
reconnectPolicy?: Partial<BackoffPolicy>;
|
|
1278
|
+
};
|
|
1279
|
+
declare function monitorSignalProvider(opts?: MonitorSignalOpts): Promise<void>;
|
|
1280
|
+
//#endregion
|
|
1281
|
+
//#region src/channels/plugins/actions/signal.d.ts
|
|
1282
|
+
declare const signalMessageActions: ChannelMessageActionAdapter;
|
|
1283
|
+
//#endregion
|
|
1284
|
+
//#region src/imessage/monitor/types.d.ts
|
|
1285
|
+
type MonitorIMessageOpts = {
|
|
1286
|
+
runtime?: RuntimeEnv;
|
|
1287
|
+
abortSignal?: AbortSignal;
|
|
1288
|
+
cliPath?: string;
|
|
1289
|
+
dbPath?: string;
|
|
1290
|
+
accountId?: string;
|
|
1291
|
+
config?: FasedAgentConfig;
|
|
1292
|
+
allowFrom?: Array<string | number>;
|
|
1293
|
+
groupAllowFrom?: Array<string | number>;
|
|
1294
|
+
includeAttachments?: boolean;
|
|
1295
|
+
mediaMaxMb?: number;
|
|
1296
|
+
requireMention?: boolean;
|
|
1297
|
+
};
|
|
1298
|
+
//#endregion
|
|
1299
|
+
//#region src/imessage/monitor/monitor-provider.d.ts
|
|
1300
|
+
declare function monitorIMessageProvider(opts?: MonitorIMessageOpts): Promise<void>;
|
|
1301
|
+
//#endregion
|
|
1302
|
+
//#region src/imessage/probe.d.ts
|
|
1303
|
+
type IMessageProbe = BaseProbeResult & {
|
|
1304
|
+
fatal?: boolean;
|
|
1305
|
+
};
|
|
1306
|
+
type IMessageProbeOptions = {
|
|
1307
|
+
cliPath?: string;
|
|
1308
|
+
dbPath?: string;
|
|
1309
|
+
runtime?: RuntimeEnv;
|
|
1310
|
+
};
|
|
1311
|
+
/**
|
|
1312
|
+
* Probe iMessage RPC availability.
|
|
1313
|
+
* @param timeoutMs - Explicit timeout in ms. If undefined, uses config or default.
|
|
1314
|
+
* @param opts - Additional options (cliPath, dbPath, runtime).
|
|
1315
|
+
*/
|
|
1316
|
+
declare function probeIMessage(timeoutMs?: number, opts?: IMessageProbeOptions): Promise<IMessageProbe>;
|
|
1317
|
+
//#endregion
|
|
1318
|
+
//#region src/web/active-listener.d.ts
|
|
1319
|
+
type ActiveWebSendOptions = {
|
|
1320
|
+
gifPlayback?: boolean;
|
|
1321
|
+
accountId?: string;
|
|
1322
|
+
fileName?: string;
|
|
1323
|
+
replyToId?: string;
|
|
1324
|
+
};
|
|
1325
|
+
type ActiveWebListener = {
|
|
1326
|
+
sendMessage: (to: string, text: string, mediaBuffer?: Buffer, mediaType?: string, options?: ActiveWebSendOptions) => Promise<{
|
|
1327
|
+
messageId: string;
|
|
1328
|
+
}>;
|
|
1329
|
+
sendPoll: (to: string, poll: PollInput) => Promise<{
|
|
1330
|
+
messageId: string;
|
|
1331
|
+
}>;
|
|
1332
|
+
sendReaction: (chatJid: string, messageId: string, emoji: string, fromMe: boolean, participant?: string) => Promise<void>;
|
|
1333
|
+
sendComposingTo: (to: string) => Promise<void>;
|
|
1334
|
+
close?: () => Promise<void>;
|
|
1335
|
+
};
|
|
1336
|
+
declare function getActiveWebListener(accountId?: string | null): ActiveWebListener | null;
|
|
1337
|
+
//#endregion
|
|
1338
|
+
//#region src/web/session.d.ts
|
|
1339
|
+
declare function waitForWaConnection(sock: ReturnType<typeof makeWASocket>): Promise<void>;
|
|
1340
|
+
//#endregion
|
|
1341
|
+
//#region src/web/login.d.ts
|
|
1342
|
+
declare function loginWeb(verbose: boolean, waitForConnection?: typeof waitForWaConnection, runtime?: RuntimeEnv, accountId?: string): Promise<void>;
|
|
1343
|
+
//#endregion
|
|
1344
|
+
//#region src/web/login-qr.d.ts
|
|
1345
|
+
declare function startWebLoginWithQr(opts?: {
|
|
1346
|
+
verbose?: boolean;
|
|
1347
|
+
timeoutMs?: number;
|
|
1348
|
+
force?: boolean;
|
|
1349
|
+
accountId?: string;
|
|
1350
|
+
runtime?: RuntimeEnv;
|
|
1351
|
+
}): Promise<{
|
|
1352
|
+
qrDataUrl?: string;
|
|
1353
|
+
message: string;
|
|
1354
|
+
}>;
|
|
1355
|
+
declare function waitForWebLogin(opts?: {
|
|
1356
|
+
timeoutMs?: number;
|
|
1357
|
+
runtime?: RuntimeEnv;
|
|
1358
|
+
accountId?: string;
|
|
1359
|
+
}): Promise<{
|
|
1360
|
+
connected: boolean;
|
|
1361
|
+
message: string;
|
|
1362
|
+
}>;
|
|
1363
|
+
//#endregion
|
|
1364
|
+
//#region src/channels/location.d.ts
|
|
1365
|
+
type LocationSource = "pin" | "place" | "live";
|
|
1366
|
+
type NormalizedLocation = {
|
|
1367
|
+
latitude: number;
|
|
1368
|
+
longitude: number;
|
|
1369
|
+
accuracy?: number;
|
|
1370
|
+
name?: string;
|
|
1371
|
+
address?: string;
|
|
1372
|
+
isLive?: boolean;
|
|
1373
|
+
source?: LocationSource;
|
|
1374
|
+
caption?: string;
|
|
1375
|
+
};
|
|
1376
|
+
declare function formatLocationText(location: NormalizedLocation): string;
|
|
1377
|
+
declare function toLocationContext(location: NormalizedLocation): {
|
|
1378
|
+
LocationLat: number;
|
|
1379
|
+
LocationLon: number;
|
|
1380
|
+
LocationAccuracy?: number;
|
|
1381
|
+
LocationName?: string;
|
|
1382
|
+
LocationAddress?: string;
|
|
1383
|
+
LocationSource: LocationSource;
|
|
1384
|
+
LocationIsLive: boolean;
|
|
1385
|
+
};
|
|
1386
|
+
//#endregion
|
|
1387
|
+
//#region src/web/inbound/types.d.ts
|
|
1388
|
+
type WebListenerCloseReason = {
|
|
1389
|
+
status?: number;
|
|
1390
|
+
isLoggedOut: boolean;
|
|
1391
|
+
error?: unknown;
|
|
1392
|
+
};
|
|
1393
|
+
type WebInboundMessage = {
|
|
1394
|
+
id?: string;
|
|
1395
|
+
from: string;
|
|
1396
|
+
conversationId: string;
|
|
1397
|
+
to: string;
|
|
1398
|
+
accountId: string;
|
|
1399
|
+
body: string;
|
|
1400
|
+
pushName?: string;
|
|
1401
|
+
timestamp?: number;
|
|
1402
|
+
chatType: "direct" | "group";
|
|
1403
|
+
chatId: string;
|
|
1404
|
+
senderJid?: string;
|
|
1405
|
+
senderE164?: string;
|
|
1406
|
+
senderName?: string;
|
|
1407
|
+
replyToId?: string;
|
|
1408
|
+
replyToBody?: string;
|
|
1409
|
+
replyToSender?: string;
|
|
1410
|
+
replyToSenderJid?: string;
|
|
1411
|
+
replyToSenderE164?: string;
|
|
1412
|
+
groupSubject?: string;
|
|
1413
|
+
groupParticipants?: string[];
|
|
1414
|
+
mentionedJids?: string[];
|
|
1415
|
+
selfJid?: string | null;
|
|
1416
|
+
selfE164?: string | null;
|
|
1417
|
+
location?: NormalizedLocation;
|
|
1418
|
+
sendComposing: () => Promise<void>;
|
|
1419
|
+
reply: (text: string) => Promise<void>;
|
|
1420
|
+
sendMedia: (payload: AnyMessageContent) => Promise<void>;
|
|
1421
|
+
mediaPath?: string;
|
|
1422
|
+
mediaType?: string;
|
|
1423
|
+
mediaFileName?: string;
|
|
1424
|
+
mediaUrl?: string;
|
|
1425
|
+
wasMentioned?: boolean;
|
|
1426
|
+
};
|
|
1427
|
+
//#endregion
|
|
1428
|
+
//#region src/web/inbound/monitor.d.ts
|
|
1429
|
+
declare function monitorWebInbox(options: {
|
|
1430
|
+
verbose: boolean;
|
|
1431
|
+
accountId: string;
|
|
1432
|
+
authDir: string;
|
|
1433
|
+
onMessage: (msg: WebInboundMessage) => Promise<void>;
|
|
1434
|
+
mediaMaxMb?: number; /** Send read receipts for incoming messages (default true). */
|
|
1435
|
+
sendReadReceipts?: boolean; /** Debounce window (ms) for batching rapid consecutive messages from the same sender (0 to disable). */
|
|
1436
|
+
debounceMs?: number; /** Optional debounce gating predicate. */
|
|
1437
|
+
shouldDebounce?: (msg: WebInboundMessage) => boolean;
|
|
1438
|
+
}): Promise<{
|
|
1439
|
+
readonly sendMessage: (to: string, text: string, mediaBuffer?: Buffer, mediaType?: string, sendOptions?: ActiveWebSendOptions) => Promise<{
|
|
1440
|
+
messageId: string;
|
|
1441
|
+
}>;
|
|
1442
|
+
readonly sendPoll: (to: string, poll: {
|
|
1443
|
+
question: string;
|
|
1444
|
+
options: string[];
|
|
1445
|
+
maxSelections?: number;
|
|
1446
|
+
}) => Promise<{
|
|
1447
|
+
messageId: string;
|
|
1448
|
+
}>;
|
|
1449
|
+
readonly sendReaction: (chatJid: string, messageId: string, emoji: string, fromMe: boolean, participant?: string) => Promise<void>;
|
|
1450
|
+
readonly sendComposingTo: (to: string) => Promise<void>;
|
|
1451
|
+
readonly close: () => Promise<void>;
|
|
1452
|
+
readonly onClose: Promise<WebListenerCloseReason>;
|
|
1453
|
+
readonly signalClose: (reason?: WebListenerCloseReason) => void;
|
|
1454
|
+
}>;
|
|
1455
|
+
//#endregion
|
|
1456
|
+
//#region src/web/reconnect.d.ts
|
|
1457
|
+
type ReconnectPolicy = BackoffPolicy & {
|
|
1458
|
+
maxAttempts: number;
|
|
1459
|
+
};
|
|
1460
|
+
//#endregion
|
|
1461
|
+
//#region src/web/auto-reply/types.d.ts
|
|
1462
|
+
type WebChannelStatus = {
|
|
1463
|
+
running: boolean;
|
|
1464
|
+
connected: boolean;
|
|
1465
|
+
reconnectAttempts: number;
|
|
1466
|
+
lastConnectedAt?: number | null;
|
|
1467
|
+
lastDisconnect?: {
|
|
1468
|
+
at: number;
|
|
1469
|
+
status?: number;
|
|
1470
|
+
error?: string;
|
|
1471
|
+
loggedOut?: boolean;
|
|
1472
|
+
} | null;
|
|
1473
|
+
lastMessageAt?: number | null;
|
|
1474
|
+
lastEventAt?: number | null;
|
|
1475
|
+
lastError?: string | null;
|
|
1476
|
+
};
|
|
1477
|
+
type WebMonitorTuning = {
|
|
1478
|
+
reconnect?: Partial<ReconnectPolicy>;
|
|
1479
|
+
heartbeatSeconds?: number;
|
|
1480
|
+
messageTimeoutMs?: number;
|
|
1481
|
+
watchdogCheckMs?: number;
|
|
1482
|
+
sleep?: (ms: number, signal?: AbortSignal) => Promise<void>;
|
|
1483
|
+
statusSink?: (status: WebChannelStatus) => void; /** WhatsApp account id. Default: "default". */
|
|
1484
|
+
accountId?: string; /** Debounce window (ms) for batching rapid consecutive messages from the same sender. */
|
|
1485
|
+
debounceMs?: number;
|
|
1486
|
+
};
|
|
1487
|
+
//#endregion
|
|
1488
|
+
//#region src/web/auto-reply/monitor.d.ts
|
|
1489
|
+
declare function monitorWebChannel(verbose: boolean, listenerFactory?: typeof monitorWebInbox | undefined, keepAlive?: boolean, replyResolver?: typeof getReplyFromConfig | undefined, runtime?: RuntimeEnv, abortSignal?: AbortSignal, tuning?: WebMonitorTuning): Promise<void>;
|
|
1490
|
+
//#endregion
|
|
1491
|
+
//#region src/agents/tools/whatsapp-actions.d.ts
|
|
1492
|
+
declare function handleWhatsAppAction(params: Record<string, unknown>, cfg: FasedAgentConfig): Promise<AgentToolResult<unknown>>;
|
|
1493
|
+
//#endregion
|
|
1494
|
+
//#region src/channels/plugins/agent-tools/whatsapp-login.d.ts
|
|
1495
|
+
declare function createWhatsAppLoginTool(): ChannelAgentTool;
|
|
1496
|
+
//#endregion
|
|
1497
|
+
//#region src/line/types.d.ts
|
|
1498
|
+
type LineTokenSource = "config" | "env" | "file" | "none";
|
|
1499
|
+
interface LineAccountBaseConfig {
|
|
1500
|
+
enabled?: boolean;
|
|
1501
|
+
channelAccessToken?: string;
|
|
1502
|
+
channelSecret?: string;
|
|
1503
|
+
tokenFile?: string;
|
|
1504
|
+
secretFile?: string;
|
|
1505
|
+
name?: string;
|
|
1506
|
+
allowFrom?: Array<string | number>;
|
|
1507
|
+
groupAllowFrom?: Array<string | number>;
|
|
1508
|
+
dmPolicy?: "open" | "allowlist" | "pairing" | "disabled";
|
|
1509
|
+
groupPolicy?: "open" | "allowlist" | "disabled";
|
|
1510
|
+
/** Outbound response prefix override for this account. */
|
|
1511
|
+
responsePrefix?: string;
|
|
1512
|
+
mediaMaxMb?: number;
|
|
1513
|
+
webhookPath?: string;
|
|
1514
|
+
groups?: Record<string, LineGroupConfig>;
|
|
1515
|
+
}
|
|
1516
|
+
interface LineConfig extends LineAccountBaseConfig {
|
|
1517
|
+
/** Per-account overrides keyed by account id. */
|
|
1518
|
+
accounts?: Record<string, LineAccountConfig>;
|
|
1519
|
+
}
|
|
1520
|
+
interface LineAccountConfig extends LineAccountBaseConfig {}
|
|
1521
|
+
interface LineGroupConfig {
|
|
1522
|
+
enabled?: boolean;
|
|
1523
|
+
allowFrom?: Array<string | number>;
|
|
1524
|
+
requireMention?: boolean;
|
|
1525
|
+
systemPrompt?: string;
|
|
1526
|
+
skills?: string[];
|
|
1527
|
+
}
|
|
1528
|
+
interface ResolvedLineAccount {
|
|
1529
|
+
accountId: string;
|
|
1530
|
+
name?: string;
|
|
1531
|
+
enabled: boolean;
|
|
1532
|
+
channelAccessToken: string;
|
|
1533
|
+
channelSecret: string;
|
|
1534
|
+
tokenSource: LineTokenSource;
|
|
1535
|
+
config: LineConfig & LineAccountConfig;
|
|
1536
|
+
}
|
|
1537
|
+
interface LineSendResult {
|
|
1538
|
+
messageId: string;
|
|
1539
|
+
chatId: string;
|
|
1540
|
+
}
|
|
1541
|
+
type LineProbeResult = BaseProbeResult<string> & {
|
|
1542
|
+
bot?: {
|
|
1543
|
+
displayName?: string;
|
|
1544
|
+
userId?: string;
|
|
1545
|
+
basicId?: string;
|
|
1546
|
+
pictureUrl?: string;
|
|
1547
|
+
};
|
|
1548
|
+
};
|
|
1549
|
+
type LineFlexMessagePayload = {
|
|
1550
|
+
altText: string;
|
|
1551
|
+
contents: unknown;
|
|
1552
|
+
};
|
|
1553
|
+
type LineTemplateMessagePayload = {
|
|
1554
|
+
type: "confirm";
|
|
1555
|
+
text: string;
|
|
1556
|
+
confirmLabel: string;
|
|
1557
|
+
confirmData: string;
|
|
1558
|
+
cancelLabel: string;
|
|
1559
|
+
cancelData: string;
|
|
1560
|
+
altText?: string;
|
|
1561
|
+
} | {
|
|
1562
|
+
type: "buttons";
|
|
1563
|
+
title: string;
|
|
1564
|
+
text: string;
|
|
1565
|
+
actions: Array<{
|
|
1566
|
+
type: "message" | "uri" | "postback";
|
|
1567
|
+
label: string;
|
|
1568
|
+
data?: string;
|
|
1569
|
+
uri?: string;
|
|
1570
|
+
}>;
|
|
1571
|
+
thumbnailImageUrl?: string;
|
|
1572
|
+
altText?: string;
|
|
1573
|
+
} | {
|
|
1574
|
+
type: "carousel";
|
|
1575
|
+
columns: Array<{
|
|
1576
|
+
title?: string;
|
|
1577
|
+
text: string;
|
|
1578
|
+
thumbnailImageUrl?: string;
|
|
1579
|
+
actions: Array<{
|
|
1580
|
+
type: "message" | "uri" | "postback";
|
|
1581
|
+
label: string;
|
|
1582
|
+
data?: string;
|
|
1583
|
+
uri?: string;
|
|
1584
|
+
}>;
|
|
1585
|
+
}>;
|
|
1586
|
+
altText?: string;
|
|
1587
|
+
};
|
|
1588
|
+
type LineChannelData = {
|
|
1589
|
+
quickReplies?: string[];
|
|
1590
|
+
location?: {
|
|
1591
|
+
title: string;
|
|
1592
|
+
address: string;
|
|
1593
|
+
latitude: number;
|
|
1594
|
+
longitude: number;
|
|
1595
|
+
};
|
|
1596
|
+
flexMessage?: LineFlexMessagePayload;
|
|
1597
|
+
templateMessage?: LineTemplateMessagePayload;
|
|
1598
|
+
};
|
|
1599
|
+
//#endregion
|
|
1600
|
+
//#region src/line/accounts.d.ts
|
|
1601
|
+
declare function resolveLineAccount(params: {
|
|
1602
|
+
cfg: FasedAgentConfig;
|
|
1603
|
+
accountId?: string;
|
|
1604
|
+
}): ResolvedLineAccount;
|
|
1605
|
+
declare function listLineAccountIds(cfg: FasedAgentConfig): string[];
|
|
1606
|
+
declare function resolveDefaultLineAccountId(cfg: FasedAgentConfig): string;
|
|
1607
|
+
declare function normalizeAccountId(accountId: string | undefined): string;
|
|
1608
|
+
//#endregion
|
|
1609
|
+
//#region src/line/probe.d.ts
|
|
1610
|
+
declare function probeLineBot(channelAccessToken: string, timeoutMs?: number): Promise<LineProbeResult>;
|
|
1611
|
+
//#endregion
|
|
1612
|
+
//#region src/line/send.d.ts
|
|
1613
|
+
type Message = messagingApi.Message;
|
|
1614
|
+
type FlexContainer = messagingApi.FlexContainer;
|
|
1615
|
+
type TemplateMessage$1 = messagingApi.TemplateMessage;
|
|
1616
|
+
type QuickReply = messagingApi.QuickReply;
|
|
1617
|
+
interface LineSendOpts {
|
|
1618
|
+
channelAccessToken?: string;
|
|
1619
|
+
accountId?: string;
|
|
1620
|
+
verbose?: boolean;
|
|
1621
|
+
mediaUrl?: string;
|
|
1622
|
+
replyToken?: string;
|
|
1623
|
+
}
|
|
1624
|
+
type LinePushOpts = Pick<LineSendOpts, "channelAccessToken" | "accountId" | "verbose">;
|
|
1625
|
+
declare function sendMessageLine(to: string, text: string, opts?: LineSendOpts): Promise<LineSendResult>;
|
|
1626
|
+
declare function pushMessageLine(to: string, text: string, opts?: LineSendOpts): Promise<LineSendResult>;
|
|
1627
|
+
declare function pushMessagesLine(to: string, messages: Message[], opts?: LinePushOpts): Promise<LineSendResult>;
|
|
1628
|
+
/**
|
|
1629
|
+
* Push a location message to a user/group
|
|
1630
|
+
*/
|
|
1631
|
+
declare function pushLocationMessage(to: string, location: {
|
|
1632
|
+
title: string;
|
|
1633
|
+
address: string;
|
|
1634
|
+
latitude: number;
|
|
1635
|
+
longitude: number;
|
|
1636
|
+
}, opts?: LinePushOpts): Promise<LineSendResult>;
|
|
1637
|
+
/**
|
|
1638
|
+
* Push a Flex Message to a user/group
|
|
1639
|
+
*/
|
|
1640
|
+
declare function pushFlexMessage(to: string, altText: string, contents: FlexContainer, opts?: LinePushOpts): Promise<LineSendResult>;
|
|
1641
|
+
/**
|
|
1642
|
+
* Push a Template Message to a user/group
|
|
1643
|
+
*/
|
|
1644
|
+
declare function pushTemplateMessage(to: string, template: TemplateMessage$1, opts?: LinePushOpts): Promise<LineSendResult>;
|
|
1645
|
+
/**
|
|
1646
|
+
* Push a text message with quick reply buttons
|
|
1647
|
+
*/
|
|
1648
|
+
declare function pushTextMessageWithQuickReplies(to: string, text: string, quickReplyLabels: string[], opts?: LinePushOpts): Promise<LineSendResult>;
|
|
1649
|
+
/**
|
|
1650
|
+
* Create quick reply buttons to attach to a message
|
|
1651
|
+
*/
|
|
1652
|
+
declare function createQuickReplyItems(labels: string[]): QuickReply;
|
|
1653
|
+
//#endregion
|
|
1654
|
+
//#region src/line/template-messages.d.ts
|
|
1655
|
+
type TemplateMessage = messagingApi.TemplateMessage;
|
|
1656
|
+
/**
|
|
1657
|
+
* Convert a TemplateMessagePayload from ReplyPayload to a LINE TemplateMessage
|
|
1658
|
+
*/
|
|
1659
|
+
declare function buildTemplateMessageFromPayload(payload: LineTemplateMessagePayload): TemplateMessage | null;
|
|
1660
|
+
//#endregion
|
|
1661
|
+
//#region src/line/monitor.d.ts
|
|
1662
|
+
interface MonitorLineProviderOptions {
|
|
1663
|
+
channelAccessToken: string;
|
|
1664
|
+
channelSecret: string;
|
|
1665
|
+
accountId?: string;
|
|
1666
|
+
config: FasedAgentConfig;
|
|
1667
|
+
runtime: RuntimeEnv;
|
|
1668
|
+
abortSignal?: AbortSignal;
|
|
1669
|
+
webhookUrl?: string;
|
|
1670
|
+
webhookPath?: string;
|
|
1671
|
+
}
|
|
1672
|
+
interface LineProviderMonitor {
|
|
1673
|
+
account: ResolvedLineAccount;
|
|
1674
|
+
handleWebhook: (body: WebhookRequestBody) => Promise<void>;
|
|
1675
|
+
stop: () => void;
|
|
1676
|
+
}
|
|
1677
|
+
declare function monitorLineProvider(opts: MonitorLineProviderOptions): Promise<LineProviderMonitor>;
|
|
1678
|
+
//#endregion
|
|
1679
|
+
//#region src/gateway/session-utils.types.d.ts
|
|
1680
|
+
type GatewaySessionsDefaults = {
|
|
1681
|
+
modelProvider: string | null;
|
|
1682
|
+
model: string | null;
|
|
1683
|
+
contextTokens: number | null;
|
|
1684
|
+
};
|
|
1685
|
+
type GatewaySessionCompactionCheckpointSummary = {
|
|
1686
|
+
checkpointId: string;
|
|
1687
|
+
createdAt: number;
|
|
1688
|
+
reason: SessionCompactionCheckpointReason;
|
|
1689
|
+
tokensBefore?: number;
|
|
1690
|
+
tokensAfter?: number;
|
|
1691
|
+
summary?: string;
|
|
1692
|
+
};
|
|
1693
|
+
type GatewaySessionRow = {
|
|
1694
|
+
key: string;
|
|
1695
|
+
kind: "direct" | "group" | "global" | "unknown";
|
|
1696
|
+
label?: string;
|
|
1697
|
+
displayName?: string;
|
|
1698
|
+
derivedTitle?: string;
|
|
1699
|
+
lastMessagePreview?: string;
|
|
1700
|
+
channel?: string;
|
|
1701
|
+
subject?: string;
|
|
1702
|
+
groupChannel?: string;
|
|
1703
|
+
space?: string;
|
|
1704
|
+
chatType?: ChatType;
|
|
1705
|
+
origin?: SessionEntry["origin"];
|
|
1706
|
+
updatedAt: number | null;
|
|
1707
|
+
sessionId?: string;
|
|
1708
|
+
systemSent?: boolean;
|
|
1709
|
+
abortedLastRun?: boolean;
|
|
1710
|
+
thinkingLevel?: string;
|
|
1711
|
+
verboseLevel?: string;
|
|
1712
|
+
reasoningLevel?: string;
|
|
1713
|
+
elevatedLevel?: string;
|
|
1714
|
+
sendPolicy?: "allow" | "deny";
|
|
1715
|
+
inputTokens?: number;
|
|
1716
|
+
outputTokens?: number;
|
|
1717
|
+
totalTokens?: number;
|
|
1718
|
+
totalTokensFresh?: boolean;
|
|
1719
|
+
responseUsage?: "on" | "off" | "tokens" | "full";
|
|
1720
|
+
modelProvider?: string;
|
|
1721
|
+
model?: string;
|
|
1722
|
+
skills?: {
|
|
1723
|
+
count: number;
|
|
1724
|
+
names: string[];
|
|
1725
|
+
skillFilter?: string[];
|
|
1726
|
+
};
|
|
1727
|
+
contextTokens?: number;
|
|
1728
|
+
compactionCheckpointCount?: number;
|
|
1729
|
+
compactionCheckpoints?: GatewaySessionCompactionCheckpointSummary[];
|
|
1730
|
+
deliveryContext?: DeliveryContext;
|
|
1731
|
+
lastChannel?: SessionEntry["lastChannel"];
|
|
1732
|
+
lastTo?: string;
|
|
1733
|
+
lastAccountId?: string;
|
|
1734
|
+
hasActiveRun?: boolean;
|
|
1735
|
+
activeRunIds?: string[];
|
|
1736
|
+
};
|
|
1737
|
+
//#endregion
|
|
1738
|
+
//#region src/channels/dock.d.ts
|
|
1739
|
+
type ChannelDock = {
|
|
1740
|
+
id: ChannelId;
|
|
1741
|
+
capabilities: ChannelCapabilities;
|
|
1742
|
+
commands?: ChannelCommandAdapter;
|
|
1743
|
+
outbound?: {
|
|
1744
|
+
textChunkLimit?: number;
|
|
1745
|
+
};
|
|
1746
|
+
streaming?: ChannelDockStreaming;
|
|
1747
|
+
elevated?: ChannelElevatedAdapter;
|
|
1748
|
+
config?: Pick<ChannelConfigAdapter<unknown>, "resolveAllowFrom" | "formatAllowFrom" | "resolveDefaultTo">;
|
|
1749
|
+
groups?: ChannelGroupAdapter;
|
|
1750
|
+
mentions?: ChannelMentionAdapter;
|
|
1751
|
+
threading?: ChannelThreadingAdapter;
|
|
1752
|
+
agentPrompt?: ChannelAgentPromptAdapter;
|
|
1753
|
+
};
|
|
1754
|
+
type ChannelDockStreaming = {
|
|
1755
|
+
blockStreamingCoalesceDefaults?: {
|
|
1756
|
+
minChars?: number;
|
|
1757
|
+
idleMs?: number;
|
|
1758
|
+
};
|
|
1759
|
+
};
|
|
1760
|
+
//#endregion
|
|
1761
|
+
//#region src/hooks/internal-hooks.d.ts
|
|
1762
|
+
type InternalHookEventType = "command" | "session" | "agent" | "gateway" | "message";
|
|
1763
|
+
interface InternalHookEvent {
|
|
1764
|
+
/** The type of event (command, session, agent, gateway, etc.) */
|
|
1765
|
+
type: InternalHookEventType;
|
|
1766
|
+
/** The specific action within the type (e.g., 'new', 'reset', 'stop') */
|
|
1767
|
+
action: string;
|
|
1768
|
+
/** The session key this event relates to */
|
|
1769
|
+
sessionKey: string;
|
|
1770
|
+
/** Additional context specific to the event */
|
|
1771
|
+
context: Record<string, unknown>;
|
|
1772
|
+
/** Timestamp when the event occurred */
|
|
1773
|
+
timestamp: Date;
|
|
1774
|
+
/** Messages to send back to the user (hooks can push to this array) */
|
|
1775
|
+
messages: string[];
|
|
1776
|
+
}
|
|
1777
|
+
type InternalHookHandler = (event: InternalHookEvent) => Promise<void> | void;
|
|
1778
|
+
//#endregion
|
|
1779
|
+
//#region src/hooks/types.d.ts
|
|
1780
|
+
type HookInstallSpec = {
|
|
1781
|
+
id?: string;
|
|
1782
|
+
kind: "bundled" | "npm" | "git";
|
|
1783
|
+
label?: string;
|
|
1784
|
+
package?: string;
|
|
1785
|
+
repository?: string;
|
|
1786
|
+
bins?: string[];
|
|
1787
|
+
};
|
|
1788
|
+
type FasedAgentHookMetadata = {
|
|
1789
|
+
always?: boolean;
|
|
1790
|
+
hookKey?: string;
|
|
1791
|
+
emoji?: string;
|
|
1792
|
+
homepage?: string; /** Events this hook handles (e.g., ["command:new", "session:start"]) */
|
|
1793
|
+
events: string[]; /** Optional export name (default: "default") */
|
|
1794
|
+
export?: string;
|
|
1795
|
+
os?: string[];
|
|
1796
|
+
requires?: {
|
|
1797
|
+
bins?: string[];
|
|
1798
|
+
anyBins?: string[];
|
|
1799
|
+
env?: string[];
|
|
1800
|
+
config?: string[];
|
|
1801
|
+
};
|
|
1802
|
+
install?: HookInstallSpec[];
|
|
1803
|
+
};
|
|
1804
|
+
type HookInvocationPolicy = {
|
|
1805
|
+
enabled: boolean;
|
|
1806
|
+
};
|
|
1807
|
+
type ParsedHookFrontmatter = Record<string, string>;
|
|
1808
|
+
type Hook = {
|
|
1809
|
+
name: string;
|
|
1810
|
+
description: string;
|
|
1811
|
+
source: "fased-bundled" | "fased-managed" | "fased-workspace" | "fased-plugin";
|
|
1812
|
+
pluginId?: string;
|
|
1813
|
+
filePath: string;
|
|
1814
|
+
baseDir: string;
|
|
1815
|
+
handlerPath: string;
|
|
1816
|
+
};
|
|
1817
|
+
type HookEntry = {
|
|
1818
|
+
hook: Hook;
|
|
1819
|
+
frontmatter: ParsedHookFrontmatter;
|
|
1820
|
+
metadata?: FasedAgentHookMetadata;
|
|
1821
|
+
invocation?: HookInvocationPolicy;
|
|
1822
|
+
};
|
|
1823
|
+
//#endregion
|
|
1824
|
+
//#region src/commands/oauth-flow.d.ts
|
|
1825
|
+
type OAuthPrompt = {
|
|
1826
|
+
message: string;
|
|
1827
|
+
placeholder?: string;
|
|
1828
|
+
};
|
|
1829
|
+
declare function createVpsAwareOAuthHandlers(params: {
|
|
1830
|
+
isRemote: boolean;
|
|
1831
|
+
prompter: WizardPrompter;
|
|
1832
|
+
runtime: RuntimeEnv;
|
|
1833
|
+
spin: ReturnType<WizardPrompter["progress"]>;
|
|
1834
|
+
openUrl: (url: string) => Promise<unknown>;
|
|
1835
|
+
localBrowserMessage: string;
|
|
1836
|
+
manualPromptMessage?: string;
|
|
1837
|
+
}): {
|
|
1838
|
+
onAuth: (event: {
|
|
1839
|
+
url: string;
|
|
1840
|
+
}) => Promise<void>;
|
|
1841
|
+
onPrompt: (prompt: OAuthPrompt) => Promise<string>;
|
|
1842
|
+
};
|
|
1843
|
+
//#endregion
|
|
1844
|
+
//#region src/image-generation/types.d.ts
|
|
1845
|
+
type GeneratedImageAsset = {
|
|
1846
|
+
buffer: Buffer;
|
|
1847
|
+
mimeType: string;
|
|
1848
|
+
fileName?: string;
|
|
1849
|
+
revisedPrompt?: string;
|
|
1850
|
+
metadata?: Record<string, unknown>;
|
|
1851
|
+
};
|
|
1852
|
+
type ImageGenerationResolution = "1K" | "2K" | "4K";
|
|
1853
|
+
type ImageGenerationSourceImage = {
|
|
1854
|
+
buffer: Buffer;
|
|
1855
|
+
mimeType: string;
|
|
1856
|
+
fileName?: string;
|
|
1857
|
+
metadata?: Record<string, unknown>;
|
|
1858
|
+
};
|
|
1859
|
+
type ImageGenerationProviderConfiguredContext = {
|
|
1860
|
+
cfg?: FasedAgentConfig;
|
|
1861
|
+
agentDir?: string;
|
|
1862
|
+
};
|
|
1863
|
+
type ImageGenerationRequest = {
|
|
1864
|
+
provider: string;
|
|
1865
|
+
model: string;
|
|
1866
|
+
prompt: string;
|
|
1867
|
+
cfg: FasedAgentConfig;
|
|
1868
|
+
agentDir?: string;
|
|
1869
|
+
authStore?: AuthProfileStore;
|
|
1870
|
+
timeoutMs?: number;
|
|
1871
|
+
count?: number;
|
|
1872
|
+
size?: string;
|
|
1873
|
+
aspectRatio?: string;
|
|
1874
|
+
resolution?: ImageGenerationResolution;
|
|
1875
|
+
inputImages?: ImageGenerationSourceImage[];
|
|
1876
|
+
};
|
|
1877
|
+
type ImageGenerationResult = {
|
|
1878
|
+
images: GeneratedImageAsset[];
|
|
1879
|
+
model?: string;
|
|
1880
|
+
metadata?: Record<string, unknown>;
|
|
1881
|
+
};
|
|
1882
|
+
type ImageGenerationModeCapabilities = {
|
|
1883
|
+
maxCount?: number;
|
|
1884
|
+
supportsSize?: boolean;
|
|
1885
|
+
supportsAspectRatio?: boolean;
|
|
1886
|
+
supportsResolution?: boolean;
|
|
1887
|
+
};
|
|
1888
|
+
type ImageGenerationEditCapabilities = ImageGenerationModeCapabilities & {
|
|
1889
|
+
enabled: boolean;
|
|
1890
|
+
maxInputImages?: number;
|
|
1891
|
+
};
|
|
1892
|
+
type ImageGenerationGeometryCapabilities = {
|
|
1893
|
+
sizes?: string[];
|
|
1894
|
+
aspectRatios?: string[];
|
|
1895
|
+
resolutions?: ImageGenerationResolution[];
|
|
1896
|
+
};
|
|
1897
|
+
type ImageGenerationProviderCapabilities = {
|
|
1898
|
+
generate: ImageGenerationModeCapabilities;
|
|
1899
|
+
edit: ImageGenerationEditCapabilities;
|
|
1900
|
+
geometry?: ImageGenerationGeometryCapabilities;
|
|
1901
|
+
};
|
|
1902
|
+
type ImageGenerationProvider = {
|
|
1903
|
+
id: string;
|
|
1904
|
+
aliases?: string[];
|
|
1905
|
+
label?: string;
|
|
1906
|
+
defaultModel?: string;
|
|
1907
|
+
models?: string[];
|
|
1908
|
+
capabilities: ImageGenerationProviderCapabilities;
|
|
1909
|
+
isConfigured?: (ctx: ImageGenerationProviderConfiguredContext) => boolean;
|
|
1910
|
+
generateImage: (req: ImageGenerationRequest) => Promise<ImageGenerationResult>;
|
|
1911
|
+
};
|
|
1912
|
+
//#endregion
|
|
1913
|
+
//#region src/realtime-transcription/provider-types.d.ts
|
|
1914
|
+
type RealtimeTranscriptionProviderId = string;
|
|
1915
|
+
type RealtimeTranscriptionProviderConfig = Record<string, unknown>;
|
|
1916
|
+
type RealtimeTranscriptionProviderResolveConfigContext = {
|
|
1917
|
+
cfg: FasedAgentConfig;
|
|
1918
|
+
rawConfig: RealtimeTranscriptionProviderConfig;
|
|
1919
|
+
};
|
|
1920
|
+
type RealtimeTranscriptionProviderConfiguredContext = {
|
|
1921
|
+
cfg?: FasedAgentConfig;
|
|
1922
|
+
providerConfig: RealtimeTranscriptionProviderConfig;
|
|
1923
|
+
};
|
|
1924
|
+
type RealtimeTranscriptionSessionCallbacks = {
|
|
1925
|
+
onPartial?: (partial: string) => void;
|
|
1926
|
+
onTranscript?: (transcript: string) => void;
|
|
1927
|
+
onSpeechStart?: () => void;
|
|
1928
|
+
onError?: (error: Error) => void;
|
|
1929
|
+
};
|
|
1930
|
+
type RealtimeTranscriptionSessionCreateRequest = RealtimeTranscriptionSessionCallbacks & {
|
|
1931
|
+
providerConfig: RealtimeTranscriptionProviderConfig;
|
|
1932
|
+
};
|
|
1933
|
+
type RealtimeTranscriptionSession = {
|
|
1934
|
+
connect(): Promise<void>;
|
|
1935
|
+
sendAudio(audio: Buffer): void;
|
|
1936
|
+
close(): void;
|
|
1937
|
+
isConnected(): boolean;
|
|
1938
|
+
};
|
|
1939
|
+
//#endregion
|
|
1940
|
+
//#region src/realtime-voice/provider-types.d.ts
|
|
1941
|
+
type RealtimeVoiceProviderId = string;
|
|
1942
|
+
type RealtimeVoiceRole = "user" | "assistant";
|
|
1943
|
+
type RealtimeVoiceCloseReason = "completed" | "error";
|
|
1944
|
+
type RealtimeVoiceTool = {
|
|
1945
|
+
type: "function";
|
|
1946
|
+
name: string;
|
|
1947
|
+
description: string;
|
|
1948
|
+
parameters: {
|
|
1949
|
+
type: "object";
|
|
1950
|
+
properties: Record<string, unknown>;
|
|
1951
|
+
required?: string[];
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
type RealtimeVoiceToolCallEvent = {
|
|
1955
|
+
itemId: string;
|
|
1956
|
+
callId: string;
|
|
1957
|
+
name: string;
|
|
1958
|
+
args: unknown;
|
|
1959
|
+
};
|
|
1960
|
+
type RealtimeVoiceBridgeCallbacks = {
|
|
1961
|
+
onAudio: (muLaw: Buffer) => void;
|
|
1962
|
+
onClearAudio: () => void;
|
|
1963
|
+
onMark?: (markName: string) => void;
|
|
1964
|
+
onTranscript?: (role: RealtimeVoiceRole, text: string, isFinal: boolean) => void;
|
|
1965
|
+
onToolCall?: (event: RealtimeVoiceToolCallEvent) => void;
|
|
1966
|
+
onReady?: () => void;
|
|
1967
|
+
onError?: (error: Error) => void;
|
|
1968
|
+
onClose?: (reason: RealtimeVoiceCloseReason) => void;
|
|
1969
|
+
};
|
|
1970
|
+
type RealtimeVoiceProviderConfig = Record<string, unknown>;
|
|
1971
|
+
type RealtimeVoiceProviderResolveConfigContext = {
|
|
1972
|
+
cfg: FasedAgentConfig;
|
|
1973
|
+
rawConfig: RealtimeVoiceProviderConfig;
|
|
1974
|
+
};
|
|
1975
|
+
type RealtimeVoiceProviderConfiguredContext = {
|
|
1976
|
+
cfg?: FasedAgentConfig;
|
|
1977
|
+
providerConfig: RealtimeVoiceProviderConfig;
|
|
1978
|
+
};
|
|
1979
|
+
type RealtimeVoiceBridgeCreateRequest = RealtimeVoiceBridgeCallbacks & {
|
|
1980
|
+
providerConfig: RealtimeVoiceProviderConfig;
|
|
1981
|
+
instructions?: string;
|
|
1982
|
+
tools?: RealtimeVoiceTool[];
|
|
1983
|
+
};
|
|
1984
|
+
type RealtimeVoiceBridge = {
|
|
1985
|
+
connect(): Promise<void>;
|
|
1986
|
+
sendAudio(audio: Buffer): void;
|
|
1987
|
+
setMediaTimestamp(ts: number): void;
|
|
1988
|
+
sendUserMessage?(text: string): void;
|
|
1989
|
+
triggerGreeting?(instructions?: string): void;
|
|
1990
|
+
submitToolResult(callId: string, result: unknown): void;
|
|
1991
|
+
acknowledgeMark(): void;
|
|
1992
|
+
close(): void;
|
|
1993
|
+
isConnected(): boolean;
|
|
1994
|
+
};
|
|
1995
|
+
//#endregion
|
|
1996
|
+
//#region src/secrets/runtime-web-tools.types.d.ts
|
|
1997
|
+
type RuntimeWebDiagnosticCode = "WEB_SEARCH_PROVIDER_INVALID_AUTODETECT" | "WEB_SEARCH_AUTODETECT_SELECTED" | "WEB_SEARCH_KEY_UNRESOLVED_FALLBACK_USED" | "WEB_SEARCH_KEY_UNRESOLVED_NO_FALLBACK" | "WEB_FETCH_PROVIDER_INVALID_AUTODETECT" | "WEB_FETCH_AUTODETECT_SELECTED" | "WEB_FETCH_PROVIDER_KEY_UNRESOLVED_FALLBACK_USED" | "WEB_FETCH_PROVIDER_KEY_UNRESOLVED_NO_FALLBACK";
|
|
1998
|
+
type RuntimeWebDiagnostic = {
|
|
1999
|
+
code: RuntimeWebDiagnosticCode;
|
|
2000
|
+
message: string;
|
|
2001
|
+
path?: string;
|
|
2002
|
+
};
|
|
2003
|
+
type RuntimeWebSearchMetadata = {
|
|
2004
|
+
providerConfigured?: string;
|
|
2005
|
+
providerSource: "configured" | "auto-detect" | "none";
|
|
2006
|
+
selectedProvider?: string;
|
|
2007
|
+
selectedProviderKeySource?: "config" | "secretRef" | "env" | "missing";
|
|
2008
|
+
perplexityTransport?: "search_api" | "chat_completions";
|
|
2009
|
+
diagnostics: RuntimeWebDiagnostic[];
|
|
2010
|
+
};
|
|
2011
|
+
//#endregion
|
|
2012
|
+
//#region src/video-generation/types.d.ts
|
|
2013
|
+
type GeneratedVideoAsset = {
|
|
2014
|
+
buffer: Buffer;
|
|
2015
|
+
mimeType: string;
|
|
2016
|
+
fileName?: string;
|
|
2017
|
+
metadata?: Record<string, unknown>;
|
|
2018
|
+
};
|
|
2019
|
+
type VideoGenerationResolution = "480P" | "720P" | "768P" | "1080P";
|
|
2020
|
+
type VideoGenerationSourceAsset = {
|
|
2021
|
+
url?: string;
|
|
2022
|
+
buffer?: Buffer;
|
|
2023
|
+
mimeType?: string;
|
|
2024
|
+
fileName?: string;
|
|
2025
|
+
metadata?: Record<string, unknown>;
|
|
2026
|
+
};
|
|
2027
|
+
type VideoGenerationProviderConfiguredContext = {
|
|
2028
|
+
cfg?: FasedAgentConfig;
|
|
2029
|
+
agentDir?: string;
|
|
2030
|
+
};
|
|
2031
|
+
type VideoGenerationRequest = {
|
|
2032
|
+
provider: string;
|
|
2033
|
+
model: string;
|
|
2034
|
+
prompt: string;
|
|
2035
|
+
cfg: FasedAgentConfig;
|
|
2036
|
+
agentDir?: string;
|
|
2037
|
+
authStore?: AuthProfileStore;
|
|
2038
|
+
timeoutMs?: number;
|
|
2039
|
+
size?: string;
|
|
2040
|
+
aspectRatio?: string;
|
|
2041
|
+
resolution?: VideoGenerationResolution;
|
|
2042
|
+
durationSeconds?: number;
|
|
2043
|
+
audio?: boolean;
|
|
2044
|
+
watermark?: boolean;
|
|
2045
|
+
inputImages?: VideoGenerationSourceAsset[];
|
|
2046
|
+
inputVideos?: VideoGenerationSourceAsset[];
|
|
2047
|
+
};
|
|
2048
|
+
type VideoGenerationResult = {
|
|
2049
|
+
videos: GeneratedVideoAsset[];
|
|
2050
|
+
model?: string;
|
|
2051
|
+
metadata?: Record<string, unknown>;
|
|
2052
|
+
};
|
|
2053
|
+
type VideoGenerationIgnoredOverrideKey = "size" | "aspectRatio" | "resolution" | "audio" | "watermark";
|
|
2054
|
+
type VideoGenerationIgnoredOverride = {
|
|
2055
|
+
key: VideoGenerationIgnoredOverrideKey;
|
|
2056
|
+
value: string | boolean;
|
|
2057
|
+
};
|
|
2058
|
+
type VideoGenerationMode = "generate" | "imageToVideo" | "videoToVideo";
|
|
2059
|
+
type VideoGenerationModeCapabilities = {
|
|
2060
|
+
maxVideos?: number;
|
|
2061
|
+
maxInputImages?: number;
|
|
2062
|
+
maxInputVideos?: number;
|
|
2063
|
+
maxDurationSeconds?: number;
|
|
2064
|
+
supportedDurationSeconds?: readonly number[];
|
|
2065
|
+
supportedDurationSecondsByModel?: Readonly<Record<string, readonly number[]>>;
|
|
2066
|
+
supportsSize?: boolean;
|
|
2067
|
+
supportsAspectRatio?: boolean;
|
|
2068
|
+
supportsResolution?: boolean;
|
|
2069
|
+
supportsAudio?: boolean;
|
|
2070
|
+
supportsWatermark?: boolean;
|
|
2071
|
+
};
|
|
2072
|
+
type VideoGenerationTransformCapabilities = VideoGenerationModeCapabilities & {
|
|
2073
|
+
enabled: boolean;
|
|
2074
|
+
};
|
|
2075
|
+
type VideoGenerationProviderCapabilities = VideoGenerationModeCapabilities & {
|
|
2076
|
+
generate?: VideoGenerationModeCapabilities;
|
|
2077
|
+
imageToVideo?: VideoGenerationTransformCapabilities;
|
|
2078
|
+
videoToVideo?: VideoGenerationTransformCapabilities;
|
|
2079
|
+
};
|
|
2080
|
+
type VideoGenerationProvider = {
|
|
2081
|
+
id: string;
|
|
2082
|
+
aliases?: string[];
|
|
2083
|
+
label?: string;
|
|
2084
|
+
defaultModel?: string;
|
|
2085
|
+
models?: string[];
|
|
2086
|
+
capabilities: VideoGenerationProviderCapabilities;
|
|
2087
|
+
isConfigured?: (ctx: VideoGenerationProviderConfiguredContext) => boolean;
|
|
2088
|
+
generateVideo: (req: VideoGenerationRequest) => Promise<VideoGenerationResult>;
|
|
2089
|
+
};
|
|
2090
|
+
//#endregion
|
|
2091
|
+
//#region src/plugins/types.d.ts
|
|
2092
|
+
type PluginLogger = {
|
|
2093
|
+
debug?: (message: string) => void;
|
|
2094
|
+
info: (message: string) => void;
|
|
2095
|
+
warn: (message: string) => void;
|
|
2096
|
+
error: (message: string) => void;
|
|
2097
|
+
};
|
|
2098
|
+
type PluginConfigUiHint = {
|
|
2099
|
+
label?: string;
|
|
2100
|
+
help?: string;
|
|
2101
|
+
tags?: string[];
|
|
2102
|
+
advanced?: boolean;
|
|
2103
|
+
sensitive?: boolean;
|
|
2104
|
+
placeholder?: string;
|
|
2105
|
+
};
|
|
2106
|
+
type PluginKind = "memory";
|
|
2107
|
+
type PluginConfigValidation = {
|
|
2108
|
+
ok: true;
|
|
2109
|
+
value?: unknown;
|
|
2110
|
+
} | {
|
|
2111
|
+
ok: false;
|
|
2112
|
+
errors: string[];
|
|
2113
|
+
};
|
|
2114
|
+
type FasedAgentPluginConfigSchema = {
|
|
2115
|
+
safeParse?: (value: unknown) => {
|
|
2116
|
+
success: boolean;
|
|
2117
|
+
data?: unknown;
|
|
2118
|
+
error?: {
|
|
2119
|
+
issues?: Array<{
|
|
2120
|
+
path: Array<string | number>;
|
|
2121
|
+
message: string;
|
|
2122
|
+
}>;
|
|
2123
|
+
};
|
|
2124
|
+
};
|
|
2125
|
+
parse?: (value: unknown) => unknown;
|
|
2126
|
+
validate?: (value: unknown) => PluginConfigValidation;
|
|
2127
|
+
uiHints?: Record<string, PluginConfigUiHint>;
|
|
2128
|
+
jsonSchema?: Record<string, unknown>;
|
|
2129
|
+
};
|
|
2130
|
+
type FasedAgentPluginToolContext = {
|
|
2131
|
+
config?: FasedAgentConfig;
|
|
2132
|
+
workspaceDir?: string;
|
|
2133
|
+
agentDir?: string;
|
|
2134
|
+
agentId?: string;
|
|
2135
|
+
sessionKey?: string;
|
|
2136
|
+
messageChannel?: string;
|
|
2137
|
+
agentAccountId?: string;
|
|
2138
|
+
sandboxed?: boolean;
|
|
2139
|
+
};
|
|
2140
|
+
type FasedAgentPluginToolFactory = (ctx: FasedAgentPluginToolContext) => AnyAgentTool | AnyAgentTool[] | null | undefined;
|
|
2141
|
+
type FasedAgentPluginToolOptions = {
|
|
2142
|
+
name?: string;
|
|
2143
|
+
names?: string[];
|
|
2144
|
+
optional?: boolean;
|
|
2145
|
+
};
|
|
2146
|
+
type FasedAgentPluginHookOptions = {
|
|
2147
|
+
entry?: HookEntry;
|
|
2148
|
+
name?: string;
|
|
2149
|
+
description?: string;
|
|
2150
|
+
register?: boolean;
|
|
2151
|
+
};
|
|
2152
|
+
type ProviderAuthKind = "oauth" | "api_key" | "token" | "device_code" | "custom";
|
|
2153
|
+
type ProviderAuthResult = {
|
|
2154
|
+
profiles: Array<{
|
|
2155
|
+
profileId: string;
|
|
2156
|
+
credential: AuthProfileCredential;
|
|
2157
|
+
}>;
|
|
2158
|
+
configPatch?: Partial<FasedAgentConfig>;
|
|
2159
|
+
defaultModel?: string;
|
|
2160
|
+
notes?: string[];
|
|
2161
|
+
};
|
|
2162
|
+
type ProviderAuthContext = {
|
|
2163
|
+
config: FasedAgentConfig;
|
|
2164
|
+
agentDir?: string;
|
|
2165
|
+
workspaceDir?: string;
|
|
2166
|
+
prompter: WizardPrompter;
|
|
2167
|
+
runtime: RuntimeEnv;
|
|
2168
|
+
isRemote: boolean;
|
|
2169
|
+
openUrl: (url: string) => Promise<void>;
|
|
2170
|
+
oauth: {
|
|
2171
|
+
createVpsAwareHandlers: typeof createVpsAwareOAuthHandlers;
|
|
2172
|
+
};
|
|
2173
|
+
};
|
|
2174
|
+
type ProviderAuthMethod = {
|
|
2175
|
+
id: string;
|
|
2176
|
+
label: string;
|
|
2177
|
+
hint?: string;
|
|
2178
|
+
kind: ProviderAuthKind;
|
|
2179
|
+
wizard?: ProviderPluginWizardSetup;
|
|
2180
|
+
run: (ctx: ProviderAuthContext) => Promise<ProviderAuthResult>;
|
|
2181
|
+
};
|
|
2182
|
+
type ProviderPluginWizardSetup = {
|
|
2183
|
+
choiceId?: string;
|
|
2184
|
+
choiceLabel?: string;
|
|
2185
|
+
choiceHint?: string;
|
|
2186
|
+
assistantPriority?: number;
|
|
2187
|
+
assistantVisibility?: "visible" | "manual-only";
|
|
2188
|
+
deprecatedChoiceIds?: string[];
|
|
2189
|
+
groupId?: string;
|
|
2190
|
+
groupLabel?: string;
|
|
2191
|
+
groupHint?: string;
|
|
2192
|
+
optionKey?: string;
|
|
2193
|
+
cliFlag?: string;
|
|
2194
|
+
cliOption?: string;
|
|
2195
|
+
cliDescription?: string;
|
|
2196
|
+
onboardingScopes?: Array<"text-inference" | "image-generation">;
|
|
2197
|
+
};
|
|
2198
|
+
type ProviderPluginWizardModelPicker = {
|
|
2199
|
+
label?: string;
|
|
2200
|
+
hint?: string;
|
|
2201
|
+
methodId?: string;
|
|
2202
|
+
};
|
|
2203
|
+
type ProviderPluginWizard = {
|
|
2204
|
+
setup?: ProviderPluginWizardSetup;
|
|
2205
|
+
modelPicker?: ProviderPluginWizardModelPicker;
|
|
2206
|
+
};
|
|
2207
|
+
type ProviderCatalogOrder = "simple" | "profile" | "paired" | "late";
|
|
2208
|
+
type ProviderCatalogContext = {
|
|
2209
|
+
config: FasedAgentConfig;
|
|
2210
|
+
agentDir?: string;
|
|
2211
|
+
workspaceDir?: string;
|
|
2212
|
+
env: NodeJS.ProcessEnv;
|
|
2213
|
+
resolveProviderApiKey: (providerId?: string) => {
|
|
2214
|
+
apiKey: string | undefined;
|
|
2215
|
+
discoveryApiKey?: string;
|
|
2216
|
+
};
|
|
2217
|
+
resolveProviderAuth: (providerId?: string, options?: {
|
|
2218
|
+
oauthMarker?: string;
|
|
2219
|
+
}) => {
|
|
2220
|
+
apiKey: string | undefined;
|
|
2221
|
+
discoveryApiKey?: string;
|
|
2222
|
+
mode: "api_key" | "oauth" | "token" | "none";
|
|
2223
|
+
source: "env" | "profile" | "none";
|
|
2224
|
+
profileId?: string;
|
|
2225
|
+
};
|
|
2226
|
+
};
|
|
2227
|
+
type ProviderCatalogResult = {
|
|
2228
|
+
provider: ModelProviderConfig;
|
|
2229
|
+
} | {
|
|
2230
|
+
providers: Record<string, ModelProviderConfig>;
|
|
2231
|
+
} | null | undefined;
|
|
2232
|
+
type ProviderPluginCatalog = {
|
|
2233
|
+
order?: ProviderCatalogOrder;
|
|
2234
|
+
run: (ctx: ProviderCatalogContext) => Promise<ProviderCatalogResult>;
|
|
2235
|
+
};
|
|
2236
|
+
/**
|
|
2237
|
+
* @deprecated Use ProviderPluginCatalog.
|
|
2238
|
+
*/
|
|
2239
|
+
type ProviderPluginDiscovery = ProviderPluginCatalog;
|
|
2240
|
+
type ProviderPlugin = {
|
|
2241
|
+
id: string;
|
|
2242
|
+
label: string;
|
|
2243
|
+
docsPath?: string;
|
|
2244
|
+
aliases?: string[];
|
|
2245
|
+
envVars?: string[];
|
|
2246
|
+
models?: ModelProviderConfig;
|
|
2247
|
+
auth: ProviderAuthMethod[];
|
|
2248
|
+
catalog?: ProviderPluginCatalog;
|
|
2249
|
+
staticCatalog?: ProviderPluginCatalog;
|
|
2250
|
+
discovery?: ProviderPluginDiscovery;
|
|
2251
|
+
wizard?: ProviderPluginWizard;
|
|
2252
|
+
formatApiKey?: (cred: AuthProfileCredential) => string;
|
|
2253
|
+
refreshOAuth?: (cred: OAuthCredential) => Promise<OAuthCredential>;
|
|
2254
|
+
};
|
|
2255
|
+
type ImageGenerationProviderPlugin = ImageGenerationProvider;
|
|
2256
|
+
type VideoGenerationProviderPlugin = VideoGenerationProvider;
|
|
2257
|
+
type RealtimeTranscriptionProviderPlugin = {
|
|
2258
|
+
id: RealtimeTranscriptionProviderId;
|
|
2259
|
+
label: string;
|
|
2260
|
+
aliases?: string[];
|
|
2261
|
+
autoSelectOrder?: number;
|
|
2262
|
+
resolveConfig?: (ctx: RealtimeTranscriptionProviderResolveConfigContext) => RealtimeTranscriptionProviderConfig;
|
|
2263
|
+
isConfigured: (ctx: RealtimeTranscriptionProviderConfiguredContext) => boolean;
|
|
2264
|
+
createSession: (req: RealtimeTranscriptionSessionCreateRequest) => RealtimeTranscriptionSession;
|
|
2265
|
+
};
|
|
2266
|
+
type RealtimeVoiceProviderPlugin = {
|
|
2267
|
+
id: RealtimeVoiceProviderId;
|
|
2268
|
+
label: string;
|
|
2269
|
+
aliases?: string[];
|
|
2270
|
+
autoSelectOrder?: number;
|
|
2271
|
+
resolveConfig?: (ctx: RealtimeVoiceProviderResolveConfigContext) => RealtimeVoiceProviderConfig;
|
|
2272
|
+
isConfigured: (ctx: RealtimeVoiceProviderConfiguredContext) => boolean;
|
|
2273
|
+
createBridge: (req: RealtimeVoiceBridgeCreateRequest) => RealtimeVoiceBridge;
|
|
2274
|
+
};
|
|
2275
|
+
type WebSearchProviderToolDefinition = {
|
|
2276
|
+
description: string;
|
|
2277
|
+
parameters: Record<string, unknown>;
|
|
2278
|
+
execute: (args: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
2279
|
+
};
|
|
2280
|
+
type PluginWebSearchProviderEntry = {
|
|
2281
|
+
pluginId: string;
|
|
2282
|
+
id: string;
|
|
2283
|
+
label: string;
|
|
2284
|
+
hint?: string;
|
|
2285
|
+
inactiveSecretPaths?: string[];
|
|
2286
|
+
envVars: string[];
|
|
2287
|
+
placeholder?: string;
|
|
2288
|
+
signupUrl?: string;
|
|
2289
|
+
credentialPath: string;
|
|
2290
|
+
autoDetectOrder?: number;
|
|
2291
|
+
requiresCredential?: boolean;
|
|
2292
|
+
getCredentialValue?: (searchConfig?: Record<string, unknown>) => unknown;
|
|
2293
|
+
setCredentialValue?: (value: string, searchConfig?: Record<string, unknown>) => void;
|
|
2294
|
+
getConfiguredCredentialValue?: (config?: FasedAgentConfig) => unknown;
|
|
2295
|
+
setConfiguredCredentialValue?: (configTarget: FasedAgentConfig, value: unknown) => void;
|
|
2296
|
+
applySelectionConfig?: (config: FasedAgentConfig) => FasedAgentConfig;
|
|
2297
|
+
createTool: (params: {
|
|
2298
|
+
config?: FasedAgentConfig;
|
|
2299
|
+
searchConfig?: Record<string, unknown>;
|
|
2300
|
+
runtimeMetadata?: RuntimeWebSearchMetadata;
|
|
2301
|
+
}) => WebSearchProviderToolDefinition | null;
|
|
2302
|
+
};
|
|
2303
|
+
type WebSearchProviderPlugin = Omit<PluginWebSearchProviderEntry, "pluginId">;
|
|
2304
|
+
/**
|
|
2305
|
+
* Context passed to plugin command handlers.
|
|
2306
|
+
*/
|
|
2307
|
+
type PluginCommandContext = {
|
|
2308
|
+
/** The sender's identifier (e.g., Telegram user ID) */senderId?: string; /** The channel/surface (e.g., "telegram", "discord") */
|
|
2309
|
+
channel: string; /** Provider channel id (e.g., "telegram") */
|
|
2310
|
+
channelId?: ChannelId; /** Whether the sender is on the allowlist */
|
|
2311
|
+
isAuthorizedSender: boolean; /** Raw command arguments after the command name */
|
|
2312
|
+
args?: string; /** The full normalized command body */
|
|
2313
|
+
commandBody: string; /** Current FasedAgent configuration */
|
|
2314
|
+
config: FasedAgentConfig; /** Raw "From" value (channel-scoped id) */
|
|
2315
|
+
from?: string; /** Raw "To" value (channel-scoped id) */
|
|
2316
|
+
to?: string; /** Account id for multi-account channels */
|
|
2317
|
+
accountId?: string; /** Thread/topic id if available */
|
|
2318
|
+
messageThreadId?: number;
|
|
2319
|
+
};
|
|
2320
|
+
/**
|
|
2321
|
+
* Result returned by a plugin command handler.
|
|
2322
|
+
*/
|
|
2323
|
+
type PluginCommandResult = ReplyPayload;
|
|
2324
|
+
/**
|
|
2325
|
+
* Handler function for plugin commands.
|
|
2326
|
+
*/
|
|
2327
|
+
type PluginCommandHandler = (ctx: PluginCommandContext) => PluginCommandResult | Promise<PluginCommandResult>;
|
|
2328
|
+
/**
|
|
2329
|
+
* Definition for a plugin-registered command.
|
|
2330
|
+
*/
|
|
2331
|
+
type FasedAgentPluginCommandDefinition = {
|
|
2332
|
+
/** Command name without leading slash (e.g., "tts") */name: string; /** Description shown in /help and command menus */
|
|
2333
|
+
description: string; /** Whether this command accepts arguments */
|
|
2334
|
+
acceptsArgs?: boolean; /** Whether only authorized senders can use this command (default: true) */
|
|
2335
|
+
requireAuth?: boolean; /** The handler function */
|
|
2336
|
+
handler: PluginCommandHandler;
|
|
2337
|
+
};
|
|
2338
|
+
type FasedAgentPluginHttpHandler = (req: IncomingMessage, res: ServerResponse) => Promise<boolean> | boolean;
|
|
2339
|
+
type FasedAgentPluginHttpRouteHandler = (req: IncomingMessage, res: ServerResponse) => Promise<void> | void;
|
|
2340
|
+
type FasedAgentPluginCliContext = {
|
|
2341
|
+
program: Command;
|
|
2342
|
+
config: FasedAgentConfig;
|
|
2343
|
+
workspaceDir?: string;
|
|
2344
|
+
logger: PluginLogger;
|
|
2345
|
+
};
|
|
2346
|
+
type FasedAgentPluginCliRegistrar = (ctx: FasedAgentPluginCliContext) => void | Promise<void>;
|
|
2347
|
+
type FasedAgentPluginServiceContext = {
|
|
2348
|
+
config: FasedAgentConfig;
|
|
2349
|
+
workspaceDir?: string;
|
|
2350
|
+
stateDir: string;
|
|
2351
|
+
logger: PluginLogger;
|
|
2352
|
+
};
|
|
2353
|
+
type FasedAgentPluginService = {
|
|
2354
|
+
id: string;
|
|
2355
|
+
start: (ctx: FasedAgentPluginServiceContext) => void | Promise<void>;
|
|
2356
|
+
stop?: (ctx: FasedAgentPluginServiceContext) => void | Promise<void>;
|
|
2357
|
+
};
|
|
2358
|
+
type FasedAgentPluginChannelRegistration = {
|
|
2359
|
+
plugin: ChannelPlugin;
|
|
2360
|
+
dock?: ChannelDock;
|
|
2361
|
+
};
|
|
2362
|
+
type FasedAgentPluginApi = {
|
|
2363
|
+
id: string;
|
|
2364
|
+
name: string;
|
|
2365
|
+
version?: string;
|
|
2366
|
+
description?: string;
|
|
2367
|
+
source: string;
|
|
2368
|
+
config: FasedAgentConfig;
|
|
2369
|
+
pluginConfig?: Record<string, unknown>;
|
|
2370
|
+
runtime: PluginRuntime;
|
|
2371
|
+
logger: PluginLogger;
|
|
2372
|
+
registerTool: (tool: AnyAgentTool | FasedAgentPluginToolFactory, opts?: FasedAgentPluginToolOptions) => void;
|
|
2373
|
+
registerHook: (events: string | string[], handler: InternalHookHandler, opts?: FasedAgentPluginHookOptions) => void;
|
|
2374
|
+
registerHttpHandler: (handler: FasedAgentPluginHttpHandler) => void;
|
|
2375
|
+
registerHttpRoute: (params: {
|
|
2376
|
+
path: string;
|
|
2377
|
+
handler: FasedAgentPluginHttpRouteHandler;
|
|
2378
|
+
}) => void;
|
|
2379
|
+
registerChannel: (registration: FasedAgentPluginChannelRegistration | ChannelPlugin) => void;
|
|
2380
|
+
registerGatewayMethod: (method: string, handler: GatewayRequestHandler, opts?: {
|
|
2381
|
+
scope?: OperatorScope;
|
|
2382
|
+
}) => void;
|
|
2383
|
+
registerCli: (registrar: FasedAgentPluginCliRegistrar, opts?: {
|
|
2384
|
+
commands?: string[];
|
|
2385
|
+
}) => void;
|
|
2386
|
+
registerService: (service: FasedAgentPluginService) => void;
|
|
2387
|
+
registerProvider: (provider: ProviderPlugin) => void;
|
|
2388
|
+
registerWebSearchProvider: (provider: WebSearchProviderPlugin) => void;
|
|
2389
|
+
registerImageGenerationProvider: (provider: ImageGenerationProviderPlugin) => void;
|
|
2390
|
+
registerVideoGenerationProvider: (provider: VideoGenerationProviderPlugin) => void;
|
|
2391
|
+
registerRealtimeTranscriptionProvider: (provider: RealtimeTranscriptionProviderPlugin) => void;
|
|
2392
|
+
registerRealtimeVoiceProvider: (provider: RealtimeVoiceProviderPlugin) => void;
|
|
2393
|
+
/**
|
|
2394
|
+
* Register a custom command that bypasses the LLM agent.
|
|
2395
|
+
* Plugin commands are processed before built-in commands and before agent invocation.
|
|
2396
|
+
* Use this for simple state-toggling or status commands that don't need AI reasoning.
|
|
2397
|
+
*/
|
|
2398
|
+
registerCommand: (command: FasedAgentPluginCommandDefinition) => void;
|
|
2399
|
+
resolvePath: (input: string) => string; /** Register a lifecycle hook handler */
|
|
2400
|
+
on: <K extends PluginHookName>(hookName: K, handler: PluginHookHandlerMap[K], opts?: {
|
|
2401
|
+
priority?: number;
|
|
2402
|
+
}) => void;
|
|
2403
|
+
};
|
|
2404
|
+
type PluginOrigin = "bundled" | "global" | "workspace" | "config";
|
|
2405
|
+
type PluginDiagnostic = {
|
|
2406
|
+
level: "warn" | "error";
|
|
2407
|
+
message: string;
|
|
2408
|
+
pluginId?: string;
|
|
2409
|
+
source?: string;
|
|
2410
|
+
};
|
|
2411
|
+
type PluginHookName = "before_model_resolve" | "before_prompt_build" | "before_agent_start" | "llm_input" | "llm_output" | "agent_end" | "before_compaction" | "after_compaction" | "before_reset" | "message_received" | "message_sending" | "message_sent" | "before_tool_call" | "after_tool_call" | "tool_result_persist" | "before_message_write" | "session_start" | "session_end" | "subagent_spawning" | "subagent_delivery_target" | "subagent_spawned" | "subagent_ended" | "gateway_start" | "gateway_stop";
|
|
2412
|
+
type PluginHookAgentContext = {
|
|
2413
|
+
agentId?: string;
|
|
2414
|
+
sessionKey?: string;
|
|
2415
|
+
sessionId?: string;
|
|
2416
|
+
workspaceDir?: string;
|
|
2417
|
+
messageProvider?: string;
|
|
2418
|
+
};
|
|
2419
|
+
type PluginHookBeforeModelResolveEvent = {
|
|
2420
|
+
/** User prompt for this run. No session messages are available yet in this phase. */prompt: string;
|
|
2421
|
+
};
|
|
2422
|
+
type PluginHookBeforeModelResolveResult = {
|
|
2423
|
+
/** Override the model for this agent run. E.g. "llama3.3:8b" */modelOverride?: string; /** Override the provider for this agent run. E.g. "openrouter" */
|
|
2424
|
+
providerOverride?: string;
|
|
2425
|
+
};
|
|
2426
|
+
type PluginHookBeforePromptBuildEvent = {
|
|
2427
|
+
prompt: string; /** Session messages prepared for this run. */
|
|
2428
|
+
messages: unknown[];
|
|
2429
|
+
};
|
|
2430
|
+
type PluginHookBeforePromptBuildResult = {
|
|
2431
|
+
systemPrompt?: string;
|
|
2432
|
+
prependContext?: string;
|
|
2433
|
+
};
|
|
2434
|
+
type PluginHookBeforeAgentStartEvent = {
|
|
2435
|
+
prompt: string; /** Optional because legacy hook can run in pre-session phase. */
|
|
2436
|
+
messages?: unknown[];
|
|
2437
|
+
};
|
|
2438
|
+
type PluginHookBeforeAgentStartResult = PluginHookBeforePromptBuildResult & PluginHookBeforeModelResolveResult;
|
|
2439
|
+
type PluginHookLlmInputEvent = {
|
|
2440
|
+
runId: string;
|
|
2441
|
+
sessionId: string;
|
|
2442
|
+
provider: string;
|
|
2443
|
+
model: string;
|
|
2444
|
+
systemPrompt?: string;
|
|
2445
|
+
prompt: string;
|
|
2446
|
+
historyMessages: unknown[];
|
|
2447
|
+
imagesCount: number;
|
|
2448
|
+
};
|
|
2449
|
+
type PluginHookLlmOutputEvent = {
|
|
2450
|
+
runId: string;
|
|
2451
|
+
sessionId: string;
|
|
2452
|
+
provider: string;
|
|
2453
|
+
model: string;
|
|
2454
|
+
assistantTexts: string[];
|
|
2455
|
+
lastAssistant?: unknown;
|
|
2456
|
+
usage?: {
|
|
2457
|
+
input?: number;
|
|
2458
|
+
output?: number;
|
|
2459
|
+
cacheRead?: number;
|
|
2460
|
+
cacheWrite?: number;
|
|
2461
|
+
total?: number;
|
|
2462
|
+
};
|
|
2463
|
+
};
|
|
2464
|
+
type PluginHookAgentEndEvent = {
|
|
2465
|
+
messages: unknown[];
|
|
2466
|
+
success: boolean;
|
|
2467
|
+
error?: string;
|
|
2468
|
+
durationMs?: number;
|
|
2469
|
+
};
|
|
2470
|
+
type PluginHookBeforeCompactionEvent = {
|
|
2471
|
+
/** Total messages in the session before any truncation or compaction */messageCount: number; /** Messages being fed to the compaction LLM (after history-limit truncation) */
|
|
2472
|
+
compactingCount?: number;
|
|
2473
|
+
tokenCount?: number;
|
|
2474
|
+
messages?: unknown[];
|
|
2475
|
+
/** Path to the session JSONL transcript. All messages are already on disk
|
|
2476
|
+
* before compaction starts, so plugins can read this file asynchronously
|
|
2477
|
+
* and process in parallel with the compaction LLM call. */
|
|
2478
|
+
sessionFile?: string;
|
|
2479
|
+
};
|
|
2480
|
+
type PluginHookBeforeResetEvent = {
|
|
2481
|
+
sessionFile?: string;
|
|
2482
|
+
messages?: unknown[];
|
|
2483
|
+
reason?: string;
|
|
2484
|
+
};
|
|
2485
|
+
type PluginHookAfterCompactionEvent = {
|
|
2486
|
+
messageCount: number;
|
|
2487
|
+
tokenCount?: number;
|
|
2488
|
+
compactedCount: number;
|
|
2489
|
+
/** Path to the session JSONL transcript. All pre-compaction messages are
|
|
2490
|
+
* preserved on disk, so plugins can read and process them asynchronously
|
|
2491
|
+
* without blocking the compaction pipeline. */
|
|
2492
|
+
sessionFile?: string;
|
|
2493
|
+
};
|
|
2494
|
+
type PluginHookMessageContext = {
|
|
2495
|
+
channelId: string;
|
|
2496
|
+
accountId?: string;
|
|
2497
|
+
conversationId?: string;
|
|
2498
|
+
};
|
|
2499
|
+
type PluginHookMessageReceivedEvent = {
|
|
2500
|
+
from: string;
|
|
2501
|
+
content: string;
|
|
2502
|
+
timestamp?: number;
|
|
2503
|
+
metadata?: Record<string, unknown>;
|
|
2504
|
+
};
|
|
2505
|
+
type PluginHookMessageSendingEvent = {
|
|
2506
|
+
to: string;
|
|
2507
|
+
content: string;
|
|
2508
|
+
metadata?: Record<string, unknown>;
|
|
2509
|
+
};
|
|
2510
|
+
type PluginHookMessageSendingResult = {
|
|
2511
|
+
content?: string;
|
|
2512
|
+
cancel?: boolean;
|
|
2513
|
+
};
|
|
2514
|
+
type PluginHookMessageSentEvent = {
|
|
2515
|
+
to: string;
|
|
2516
|
+
content: string;
|
|
2517
|
+
success: boolean;
|
|
2518
|
+
error?: string;
|
|
2519
|
+
};
|
|
2520
|
+
type PluginHookToolContext = {
|
|
2521
|
+
agentId?: string;
|
|
2522
|
+
sessionKey?: string;
|
|
2523
|
+
toolName: string;
|
|
2524
|
+
};
|
|
2525
|
+
type PluginHookBeforeToolCallEvent = {
|
|
2526
|
+
toolName: string;
|
|
2527
|
+
params: Record<string, unknown>;
|
|
2528
|
+
};
|
|
2529
|
+
type PluginHookBeforeToolCallResult = {
|
|
2530
|
+
params?: Record<string, unknown>;
|
|
2531
|
+
block?: boolean;
|
|
2532
|
+
blockReason?: string;
|
|
2533
|
+
};
|
|
2534
|
+
type PluginHookAfterToolCallEvent = {
|
|
2535
|
+
toolName: string;
|
|
2536
|
+
params: Record<string, unknown>;
|
|
2537
|
+
result?: unknown;
|
|
2538
|
+
error?: string;
|
|
2539
|
+
durationMs?: number;
|
|
2540
|
+
};
|
|
2541
|
+
type PluginHookToolResultPersistContext = {
|
|
2542
|
+
agentId?: string;
|
|
2543
|
+
sessionKey?: string;
|
|
2544
|
+
toolName?: string;
|
|
2545
|
+
toolCallId?: string;
|
|
2546
|
+
};
|
|
2547
|
+
type PluginHookToolResultPersistEvent = {
|
|
2548
|
+
toolName?: string;
|
|
2549
|
+
toolCallId?: string;
|
|
2550
|
+
/**
|
|
2551
|
+
* The toolResult message about to be written to the session transcript.
|
|
2552
|
+
* Handlers may return a modified message (e.g. drop non-essential fields).
|
|
2553
|
+
*/
|
|
2554
|
+
message: AgentMessage; /** True when the tool result was synthesized by a guard/repair step. */
|
|
2555
|
+
isSynthetic?: boolean;
|
|
2556
|
+
};
|
|
2557
|
+
type PluginHookToolResultPersistResult = {
|
|
2558
|
+
message?: AgentMessage;
|
|
2559
|
+
};
|
|
2560
|
+
type PluginHookBeforeMessageWriteEvent = {
|
|
2561
|
+
message: AgentMessage;
|
|
2562
|
+
sessionKey?: string;
|
|
2563
|
+
agentId?: string;
|
|
2564
|
+
};
|
|
2565
|
+
type PluginHookBeforeMessageWriteResult = {
|
|
2566
|
+
block?: boolean;
|
|
2567
|
+
message?: AgentMessage;
|
|
2568
|
+
};
|
|
2569
|
+
type PluginHookSessionContext = {
|
|
2570
|
+
agentId?: string;
|
|
2571
|
+
sessionId: string;
|
|
2572
|
+
};
|
|
2573
|
+
type PluginHookSessionStartEvent = {
|
|
2574
|
+
sessionId: string;
|
|
2575
|
+
resumedFrom?: string;
|
|
2576
|
+
};
|
|
2577
|
+
type PluginHookSessionEndEvent = {
|
|
2578
|
+
sessionId: string;
|
|
2579
|
+
messageCount: number;
|
|
2580
|
+
durationMs?: number;
|
|
2581
|
+
};
|
|
2582
|
+
type PluginHookSubagentContext = {
|
|
2583
|
+
runId?: string;
|
|
2584
|
+
childSessionKey?: string;
|
|
2585
|
+
requesterSessionKey?: string;
|
|
2586
|
+
};
|
|
2587
|
+
type PluginHookSubagentTargetKind = "subagent" | "acp";
|
|
2588
|
+
type PluginHookSubagentSpawningEvent = {
|
|
2589
|
+
childSessionKey: string;
|
|
2590
|
+
agentId: string;
|
|
2591
|
+
label?: string;
|
|
2592
|
+
mode: "run" | "session";
|
|
2593
|
+
requester?: {
|
|
2594
|
+
channel?: string;
|
|
2595
|
+
accountId?: string;
|
|
2596
|
+
to?: string;
|
|
2597
|
+
threadId?: string | number;
|
|
2598
|
+
};
|
|
2599
|
+
threadRequested: boolean;
|
|
2600
|
+
};
|
|
2601
|
+
type PluginHookSubagentSpawningResult = {
|
|
2602
|
+
status: "ok";
|
|
2603
|
+
threadBindingReady?: boolean;
|
|
2604
|
+
} | {
|
|
2605
|
+
status: "error";
|
|
2606
|
+
error: string;
|
|
2607
|
+
};
|
|
2608
|
+
type PluginHookSubagentDeliveryTargetEvent = {
|
|
2609
|
+
childSessionKey: string;
|
|
2610
|
+
requesterSessionKey: string;
|
|
2611
|
+
requesterOrigin?: {
|
|
2612
|
+
channel?: string;
|
|
2613
|
+
accountId?: string;
|
|
2614
|
+
to?: string;
|
|
2615
|
+
threadId?: string | number;
|
|
2616
|
+
};
|
|
2617
|
+
childRunId?: string;
|
|
2618
|
+
spawnMode?: "run" | "session";
|
|
2619
|
+
expectsCompletionMessage: boolean;
|
|
2620
|
+
};
|
|
2621
|
+
type PluginHookSubagentDeliveryTargetResult = {
|
|
2622
|
+
origin?: {
|
|
2623
|
+
channel?: string;
|
|
2624
|
+
accountId?: string;
|
|
2625
|
+
to?: string;
|
|
2626
|
+
threadId?: string | number;
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2629
|
+
type PluginHookSubagentSpawnedEvent = {
|
|
2630
|
+
runId: string;
|
|
2631
|
+
childSessionKey: string;
|
|
2632
|
+
agentId: string;
|
|
2633
|
+
label?: string;
|
|
2634
|
+
mode: "run" | "session";
|
|
2635
|
+
requester?: {
|
|
2636
|
+
channel?: string;
|
|
2637
|
+
accountId?: string;
|
|
2638
|
+
to?: string;
|
|
2639
|
+
threadId?: string | number;
|
|
2640
|
+
};
|
|
2641
|
+
threadRequested: boolean;
|
|
2642
|
+
};
|
|
2643
|
+
type PluginHookSubagentEndedEvent = {
|
|
2644
|
+
targetSessionKey: string;
|
|
2645
|
+
targetKind: PluginHookSubagentTargetKind;
|
|
2646
|
+
reason: string;
|
|
2647
|
+
sendFarewell?: boolean;
|
|
2648
|
+
accountId?: string;
|
|
2649
|
+
runId?: string;
|
|
2650
|
+
endedAt?: number;
|
|
2651
|
+
outcome?: "ok" | "error" | "timeout" | "killed" | "reset" | "deleted";
|
|
2652
|
+
error?: string;
|
|
2653
|
+
};
|
|
2654
|
+
type PluginHookGatewayContext = {
|
|
2655
|
+
port?: number;
|
|
2656
|
+
};
|
|
2657
|
+
type PluginHookGatewayStartEvent = {
|
|
2658
|
+
port: number;
|
|
2659
|
+
};
|
|
2660
|
+
type PluginHookGatewayStopEvent = {
|
|
2661
|
+
reason?: string;
|
|
2662
|
+
};
|
|
2663
|
+
type PluginHookHandlerMap = {
|
|
2664
|
+
before_model_resolve: (event: PluginHookBeforeModelResolveEvent, ctx: PluginHookAgentContext) => Promise<PluginHookBeforeModelResolveResult | void> | PluginHookBeforeModelResolveResult | void;
|
|
2665
|
+
before_prompt_build: (event: PluginHookBeforePromptBuildEvent, ctx: PluginHookAgentContext) => Promise<PluginHookBeforePromptBuildResult | void> | PluginHookBeforePromptBuildResult | void;
|
|
2666
|
+
before_agent_start: (event: PluginHookBeforeAgentStartEvent, ctx: PluginHookAgentContext) => Promise<PluginHookBeforeAgentStartResult | void> | PluginHookBeforeAgentStartResult | void;
|
|
2667
|
+
llm_input: (event: PluginHookLlmInputEvent, ctx: PluginHookAgentContext) => Promise<void> | void;
|
|
2668
|
+
llm_output: (event: PluginHookLlmOutputEvent, ctx: PluginHookAgentContext) => Promise<void> | void;
|
|
2669
|
+
agent_end: (event: PluginHookAgentEndEvent, ctx: PluginHookAgentContext) => Promise<void> | void;
|
|
2670
|
+
before_compaction: (event: PluginHookBeforeCompactionEvent, ctx: PluginHookAgentContext) => Promise<void> | void;
|
|
2671
|
+
after_compaction: (event: PluginHookAfterCompactionEvent, ctx: PluginHookAgentContext) => Promise<void> | void;
|
|
2672
|
+
before_reset: (event: PluginHookBeforeResetEvent, ctx: PluginHookAgentContext) => Promise<void> | void;
|
|
2673
|
+
message_received: (event: PluginHookMessageReceivedEvent, ctx: PluginHookMessageContext) => Promise<void> | void;
|
|
2674
|
+
message_sending: (event: PluginHookMessageSendingEvent, ctx: PluginHookMessageContext) => Promise<PluginHookMessageSendingResult | void> | PluginHookMessageSendingResult | void;
|
|
2675
|
+
message_sent: (event: PluginHookMessageSentEvent, ctx: PluginHookMessageContext) => Promise<void> | void;
|
|
2676
|
+
before_tool_call: (event: PluginHookBeforeToolCallEvent, ctx: PluginHookToolContext) => Promise<PluginHookBeforeToolCallResult | void> | PluginHookBeforeToolCallResult | void;
|
|
2677
|
+
after_tool_call: (event: PluginHookAfterToolCallEvent, ctx: PluginHookToolContext) => Promise<void> | void;
|
|
2678
|
+
tool_result_persist: (event: PluginHookToolResultPersistEvent, ctx: PluginHookToolResultPersistContext) => PluginHookToolResultPersistResult | void;
|
|
2679
|
+
before_message_write: (event: PluginHookBeforeMessageWriteEvent, ctx: {
|
|
2680
|
+
agentId?: string;
|
|
2681
|
+
sessionKey?: string;
|
|
2682
|
+
}) => PluginHookBeforeMessageWriteResult | void;
|
|
2683
|
+
session_start: (event: PluginHookSessionStartEvent, ctx: PluginHookSessionContext) => Promise<void> | void;
|
|
2684
|
+
session_end: (event: PluginHookSessionEndEvent, ctx: PluginHookSessionContext) => Promise<void> | void;
|
|
2685
|
+
subagent_spawning: (event: PluginHookSubagentSpawningEvent, ctx: PluginHookSubagentContext) => Promise<PluginHookSubagentSpawningResult | void> | PluginHookSubagentSpawningResult | void;
|
|
2686
|
+
subagent_delivery_target: (event: PluginHookSubagentDeliveryTargetEvent, ctx: PluginHookSubagentContext) => Promise<PluginHookSubagentDeliveryTargetResult | void> | PluginHookSubagentDeliveryTargetResult | void;
|
|
2687
|
+
subagent_spawned: (event: PluginHookSubagentSpawnedEvent, ctx: PluginHookSubagentContext) => Promise<void> | void;
|
|
2688
|
+
subagent_ended: (event: PluginHookSubagentEndedEvent, ctx: PluginHookSubagentContext) => Promise<void> | void;
|
|
2689
|
+
gateway_start: (event: PluginHookGatewayStartEvent, ctx: PluginHookGatewayContext) => Promise<void> | void;
|
|
2690
|
+
gateway_stop: (event: PluginHookGatewayStopEvent, ctx: PluginHookGatewayContext) => Promise<void> | void;
|
|
2691
|
+
};
|
|
2692
|
+
type PluginHookRegistration$1<K extends PluginHookName = PluginHookName> = {
|
|
2693
|
+
pluginId: string;
|
|
2694
|
+
hookName: K;
|
|
2695
|
+
handler: PluginHookHandlerMap[K];
|
|
2696
|
+
priority?: number;
|
|
2697
|
+
source: string;
|
|
2698
|
+
};
|
|
2699
|
+
//#endregion
|
|
2700
|
+
//#region src/plugins/registry.d.ts
|
|
2701
|
+
type PluginToolRegistration = {
|
|
2702
|
+
pluginId: string;
|
|
2703
|
+
factory: FasedAgentPluginToolFactory;
|
|
2704
|
+
names: string[];
|
|
2705
|
+
optional: boolean;
|
|
2706
|
+
source: string;
|
|
2707
|
+
};
|
|
2708
|
+
type PluginCliRegistration = {
|
|
2709
|
+
pluginId: string;
|
|
2710
|
+
register: FasedAgentPluginCliRegistrar;
|
|
2711
|
+
commands: string[];
|
|
2712
|
+
source: string;
|
|
2713
|
+
};
|
|
2714
|
+
type PluginHttpRegistration = {
|
|
2715
|
+
pluginId: string;
|
|
2716
|
+
handler: FasedAgentPluginHttpHandler;
|
|
2717
|
+
source: string;
|
|
2718
|
+
};
|
|
2719
|
+
type PluginHttpRouteRegistration = {
|
|
2720
|
+
pluginId?: string;
|
|
2721
|
+
path: string;
|
|
2722
|
+
handler: FasedAgentPluginHttpRouteHandler;
|
|
2723
|
+
source?: string;
|
|
2724
|
+
};
|
|
2725
|
+
type PluginChannelRegistration = {
|
|
2726
|
+
pluginId: string;
|
|
2727
|
+
plugin: ChannelPlugin;
|
|
2728
|
+
dock?: ChannelDock;
|
|
2729
|
+
source: string;
|
|
2730
|
+
};
|
|
2731
|
+
type PluginProviderRegistration = {
|
|
2732
|
+
pluginId: string;
|
|
2733
|
+
provider: ProviderPlugin;
|
|
2734
|
+
source: string;
|
|
2735
|
+
};
|
|
2736
|
+
type PluginWebSearchProviderRegistration = {
|
|
2737
|
+
pluginId: string;
|
|
2738
|
+
provider: WebSearchProviderPlugin;
|
|
2739
|
+
source: string;
|
|
2740
|
+
};
|
|
2741
|
+
type PluginImageGenerationProviderRegistration = {
|
|
2742
|
+
pluginId: string;
|
|
2743
|
+
provider: ImageGenerationProviderPlugin;
|
|
2744
|
+
source: string;
|
|
2745
|
+
};
|
|
2746
|
+
type PluginVideoGenerationProviderRegistration = {
|
|
2747
|
+
pluginId: string;
|
|
2748
|
+
provider: VideoGenerationProviderPlugin;
|
|
2749
|
+
source: string;
|
|
2750
|
+
};
|
|
2751
|
+
type PluginRealtimeTranscriptionProviderRegistration = {
|
|
2752
|
+
pluginId: string;
|
|
2753
|
+
provider: RealtimeTranscriptionProviderPlugin;
|
|
2754
|
+
source: string;
|
|
2755
|
+
};
|
|
2756
|
+
type PluginRealtimeVoiceProviderRegistration = {
|
|
2757
|
+
pluginId: string;
|
|
2758
|
+
provider: RealtimeVoiceProviderPlugin;
|
|
2759
|
+
source: string;
|
|
2760
|
+
};
|
|
2761
|
+
type PluginHookRegistration = {
|
|
2762
|
+
pluginId: string;
|
|
2763
|
+
entry: HookEntry;
|
|
2764
|
+
events: string[];
|
|
2765
|
+
source: string;
|
|
2766
|
+
};
|
|
2767
|
+
type PluginServiceRegistration = {
|
|
2768
|
+
pluginId: string;
|
|
2769
|
+
service: FasedAgentPluginService;
|
|
2770
|
+
source: string;
|
|
2771
|
+
};
|
|
2772
|
+
type PluginCommandRegistration = {
|
|
2773
|
+
pluginId: string;
|
|
2774
|
+
command: FasedAgentPluginCommandDefinition;
|
|
2775
|
+
source: string;
|
|
2776
|
+
};
|
|
2777
|
+
type PluginRecord = {
|
|
2778
|
+
id: string;
|
|
2779
|
+
name: string;
|
|
2780
|
+
version?: string;
|
|
2781
|
+
description?: string;
|
|
2782
|
+
kind?: PluginKind;
|
|
2783
|
+
source: string;
|
|
2784
|
+
origin: PluginOrigin;
|
|
2785
|
+
workspaceDir?: string;
|
|
2786
|
+
enabled: boolean;
|
|
2787
|
+
status: "loaded" | "disabled" | "error";
|
|
2788
|
+
error?: string;
|
|
2789
|
+
toolNames: string[];
|
|
2790
|
+
hookNames: string[];
|
|
2791
|
+
channelIds: string[];
|
|
2792
|
+
providerIds: string[];
|
|
2793
|
+
webSearchProviderIds?: string[];
|
|
2794
|
+
gatewayMethods: string[];
|
|
2795
|
+
cliCommands: string[];
|
|
2796
|
+
services: string[];
|
|
2797
|
+
commands: string[];
|
|
2798
|
+
httpHandlers: number;
|
|
2799
|
+
hookCount: number;
|
|
2800
|
+
configSchema: boolean;
|
|
2801
|
+
configUiHints?: Record<string, PluginConfigUiHint>;
|
|
2802
|
+
configJsonSchema?: Record<string, unknown>;
|
|
2803
|
+
};
|
|
2804
|
+
type PluginRegistry = {
|
|
2805
|
+
plugins: PluginRecord[];
|
|
2806
|
+
tools: PluginToolRegistration[];
|
|
2807
|
+
hooks: PluginHookRegistration[];
|
|
2808
|
+
typedHooks: PluginHookRegistration$1[];
|
|
2809
|
+
channels: PluginChannelRegistration[];
|
|
2810
|
+
providers: PluginProviderRegistration[];
|
|
2811
|
+
webSearchProviders: PluginWebSearchProviderRegistration[];
|
|
2812
|
+
imageGenerationProviders: PluginImageGenerationProviderRegistration[];
|
|
2813
|
+
videoGenerationProviders: PluginVideoGenerationProviderRegistration[];
|
|
2814
|
+
realtimeTranscriptionProviders: PluginRealtimeTranscriptionProviderRegistration[];
|
|
2815
|
+
realtimeVoiceProviders: PluginRealtimeVoiceProviderRegistration[];
|
|
2816
|
+
gatewayHandlers: GatewayRequestHandlers;
|
|
2817
|
+
gatewayMethodScopes: Partial<Record<string, OperatorScope>>;
|
|
2818
|
+
httpHandlers: PluginHttpRegistration[];
|
|
2819
|
+
httpRoutes: PluginHttpRouteRegistration[];
|
|
2820
|
+
cliRegistrars: PluginCliRegistration[];
|
|
2821
|
+
services: PluginServiceRegistration[];
|
|
2822
|
+
commands: PluginCommandRegistration[];
|
|
2823
|
+
diagnostics: PluginDiagnostic[];
|
|
2824
|
+
};
|
|
2825
|
+
//#endregion
|
|
2826
|
+
//#region src/plugins/config-state.d.ts
|
|
2827
|
+
declare const PLUGIN_ADMIN_RPC_ACTION_METHODS: readonly ["chat.inject", "push.test", "web.login.start", "web.login.wait"];
|
|
2828
|
+
type PluginAdminRpcActionMethod = (typeof PLUGIN_ADMIN_RPC_ACTION_METHODS)[number];
|
|
2829
|
+
//#endregion
|
|
2830
|
+
//#region src/plugins/runtime/admin-rpc-helper.d.ts
|
|
2831
|
+
type PluginRuntimeAdminRpcCallContext = {
|
|
2832
|
+
context: GatewayRequestContext;
|
|
2833
|
+
client: GatewayClient | null;
|
|
2834
|
+
isWebchatConnect?: GatewayRequestHandlerOptions["isWebchatConnect"];
|
|
2835
|
+
};
|
|
2836
|
+
type PluginRuntimeAdminRpcInvocation = {
|
|
2837
|
+
method: PluginAdminRpcActionMethod;
|
|
2838
|
+
params: Record<string, unknown>;
|
|
2839
|
+
call: PluginRuntimeAdminRpcCallContext;
|
|
2840
|
+
};
|
|
2841
|
+
type PluginRuntimeAdminRpcInvoker = (invocation: PluginRuntimeAdminRpcInvocation) => Promise<unknown>;
|
|
2842
|
+
type PluginRuntimeAdminRpcAuditEvent = {
|
|
2843
|
+
pluginId?: string;
|
|
2844
|
+
method: PluginAdminRpcActionMethod;
|
|
2845
|
+
outcome: "allowed" | "denied" | "failed";
|
|
2846
|
+
denyReason?: string;
|
|
2847
|
+
matchedSource?: string;
|
|
2848
|
+
};
|
|
2849
|
+
type PluginRuntimeAdminRpcAuditSink = (event: PluginRuntimeAdminRpcAuditEvent) => void;
|
|
2850
|
+
type PluginRuntimeAdminRpcHelpers = {
|
|
2851
|
+
/**
|
|
2852
|
+
* Inject a labeled assistant message into an existing session transcript.
|
|
2853
|
+
*
|
|
2854
|
+
* This is not a generic gateway dispatcher. It requires an explicit
|
|
2855
|
+
* `chat.inject` grant and an operator-scoped gateway call context.
|
|
2856
|
+
*/
|
|
2857
|
+
chatInject: (params: ChatInjectParams, call: PluginRuntimeAdminRpcCallContext) => Promise<{
|
|
2858
|
+
ok: boolean;
|
|
2859
|
+
messageId?: string;
|
|
2860
|
+
}>;
|
|
2861
|
+
/**
|
|
2862
|
+
* Send one test push to a specific registered node.
|
|
2863
|
+
*/
|
|
2864
|
+
pushTest: (params: PushTestParams, call: PluginRuntimeAdminRpcCallContext) => Promise<{
|
|
2865
|
+
ok?: boolean;
|
|
2866
|
+
status?: number;
|
|
2867
|
+
reason?: string;
|
|
2868
|
+
environment?: string;
|
|
2869
|
+
apnsId?: string;
|
|
2870
|
+
tokenSuffix?: string;
|
|
2871
|
+
topic?: string;
|
|
2872
|
+
}>;
|
|
2873
|
+
/**
|
|
2874
|
+
* Start a provider QR-login flow. The returned payload is intentionally
|
|
2875
|
+
* reduced so plugins never receive QR payloads, tokens, cookies, or secrets.
|
|
2876
|
+
*/
|
|
2877
|
+
webLoginStart: (params: WebLoginStartParams, call: PluginRuntimeAdminRpcCallContext) => Promise<{
|
|
2878
|
+
ok: true;
|
|
2879
|
+
started: true;
|
|
2880
|
+
}>;
|
|
2881
|
+
/**
|
|
2882
|
+
* Wait for a provider QR-login flow. The returned payload exposes only
|
|
2883
|
+
* connection status and never returns login secrets.
|
|
2884
|
+
*/
|
|
2885
|
+
webLoginWait: (params: WebLoginWaitParams, call: PluginRuntimeAdminRpcCallContext) => Promise<{
|
|
2886
|
+
connected: boolean;
|
|
2887
|
+
}>;
|
|
2888
|
+
};
|
|
2889
|
+
//#endregion
|
|
2890
|
+
//#region src/plugins/runtime/session-read-helper.d.ts
|
|
2891
|
+
/**
|
|
2892
|
+
* Sanitized session metadata returned to permissioned plugins.
|
|
2893
|
+
*
|
|
2894
|
+
* This type is intentionally metadata-only. It does not include transcript
|
|
2895
|
+
* bodies, message previews, session file paths, raw origin/delivery targets,
|
|
2896
|
+
* account ids, or compaction summaries.
|
|
2897
|
+
*/
|
|
2898
|
+
type PluginRuntimeSessionStatus = {
|
|
2899
|
+
key: string;
|
|
2900
|
+
kind: GatewaySessionRow["kind"];
|
|
2901
|
+
label?: string;
|
|
2902
|
+
displayName?: string;
|
|
2903
|
+
channel?: string;
|
|
2904
|
+
subject?: string;
|
|
2905
|
+
groupChannel?: string;
|
|
2906
|
+
space?: string;
|
|
2907
|
+
chatType?: ChatType;
|
|
2908
|
+
updatedAt: number | null;
|
|
2909
|
+
systemSent?: boolean;
|
|
2910
|
+
abortedLastRun?: boolean;
|
|
2911
|
+
thinkingLevel?: string;
|
|
2912
|
+
verboseLevel?: string;
|
|
2913
|
+
reasoningLevel?: string;
|
|
2914
|
+
elevatedLevel?: string;
|
|
2915
|
+
sendPolicy?: "allow" | "deny";
|
|
2916
|
+
inputTokens?: number;
|
|
2917
|
+
outputTokens?: number;
|
|
2918
|
+
totalTokens?: number;
|
|
2919
|
+
totalTokensFresh?: boolean;
|
|
2920
|
+
responseUsage?: "on" | "off" | "tokens" | "full";
|
|
2921
|
+
modelProvider?: string;
|
|
2922
|
+
model?: string;
|
|
2923
|
+
contextTokens?: number;
|
|
2924
|
+
compactionCheckpointCount?: number;
|
|
2925
|
+
lastChannel?: GatewaySessionRow["lastChannel"];
|
|
2926
|
+
};
|
|
2927
|
+
/**
|
|
2928
|
+
* Filters for `runtime.helpers.sessions.list()`.
|
|
2929
|
+
*/
|
|
2930
|
+
type PluginRuntimeSessionListParams = {
|
|
2931
|
+
agentId?: string;
|
|
2932
|
+
activeMinutes?: number;
|
|
2933
|
+
includeGlobal?: boolean;
|
|
2934
|
+
includeUnknown?: boolean;
|
|
2935
|
+
limit?: number;
|
|
2936
|
+
};
|
|
2937
|
+
/**
|
|
2938
|
+
* Result returned by `runtime.helpers.sessions.list()`.
|
|
2939
|
+
*/
|
|
2940
|
+
type PluginRuntimeSessionListResult = {
|
|
2941
|
+
ts: number;
|
|
2942
|
+
count: number;
|
|
2943
|
+
defaults: GatewaySessionsDefaults;
|
|
2944
|
+
sessions: PluginRuntimeSessionStatus[];
|
|
2945
|
+
};
|
|
2946
|
+
/**
|
|
2947
|
+
* Lookup parameters for `runtime.helpers.sessions.get()`.
|
|
2948
|
+
*/
|
|
2949
|
+
type PluginRuntimeSessionGetParams = {
|
|
2950
|
+
key: string;
|
|
2951
|
+
agentId?: string;
|
|
2952
|
+
includeGlobal?: boolean;
|
|
2953
|
+
includeUnknown?: boolean;
|
|
2954
|
+
};
|
|
2955
|
+
/**
|
|
2956
|
+
* Read-only plugin runtime helpers for session metadata/status.
|
|
2957
|
+
*
|
|
2958
|
+
* Access requires `plugins.entries.<pluginId>.runtime.helpers.sessions.read =
|
|
2959
|
+
* true`. Calls are scoped to the trusted plugin id assigned by the plugin
|
|
2960
|
+
* loader. These helpers are not a gateway dispatcher and cannot read
|
|
2961
|
+
* transcripts, mutate sessions, invoke nodes, edit config, or perform admin
|
|
2962
|
+
* actions.
|
|
2963
|
+
*/
|
|
2964
|
+
type PluginRuntimeSessionHelpers = {
|
|
2965
|
+
/**
|
|
2966
|
+
* List sanitized session metadata/status rows.
|
|
2967
|
+
*
|
|
2968
|
+
* The returned rows are safe for plugin status and diagnostics. They do not
|
|
2969
|
+
* contain message bodies, transcript previews, raw routing targets, account
|
|
2970
|
+
* ids, session file paths, or compaction summaries.
|
|
2971
|
+
*/
|
|
2972
|
+
list: (params?: PluginRuntimeSessionListParams) => PluginRuntimeSessionListResult;
|
|
2973
|
+
/**
|
|
2974
|
+
* Return one sanitized session metadata/status row by canonical session key,
|
|
2975
|
+
* or `null` when the row is not visible.
|
|
2976
|
+
*/
|
|
2977
|
+
get: (params: PluginRuntimeSessionGetParams) => PluginRuntimeSessionStatus | null;
|
|
2978
|
+
};
|
|
2979
|
+
/**
|
|
2980
|
+
* Lightweight audit event emitted for plugin session-helper reads and denials.
|
|
2981
|
+
*/
|
|
2982
|
+
type PluginRuntimeSessionAuditEvent = {
|
|
2983
|
+
pluginId?: string;
|
|
2984
|
+
helper: "sessions.list" | "sessions.get";
|
|
2985
|
+
outcome: "allowed" | "denied";
|
|
2986
|
+
sessionKey?: string;
|
|
2987
|
+
listCount?: number;
|
|
2988
|
+
denyReason?: string;
|
|
2989
|
+
};
|
|
2990
|
+
type PluginRuntimeSessionAuditSink = (event: PluginRuntimeSessionAuditEvent) => void;
|
|
2991
|
+
//#endregion
|
|
2992
|
+
//#region src/plugins/runtime/types.d.ts
|
|
2993
|
+
type ShouldLogVerbose = typeof shouldLogVerbose;
|
|
2994
|
+
type DispatchReplyWithBufferedBlockDispatcher = typeof dispatchReplyWithBufferedBlockDispatcher;
|
|
2995
|
+
type CreateReplyDispatcherWithTyping = typeof createReplyDispatcherWithTyping;
|
|
2996
|
+
type ResolveEffectiveMessagesConfig = typeof resolveEffectiveMessagesConfig;
|
|
2997
|
+
type ResolveHumanDelayConfig = typeof resolveHumanDelayConfig;
|
|
2998
|
+
type ResolveAgentRoute = typeof resolveAgentRoute;
|
|
2999
|
+
type BuildPairingReply = typeof buildPairingReply;
|
|
3000
|
+
type ReadChannelAllowFromStore = typeof readChannelAllowFromStore;
|
|
3001
|
+
type UpsertChannelPairingRequest = typeof upsertChannelPairingRequest;
|
|
3002
|
+
type ReadChannelAllowFromStoreForAccount = (params: {
|
|
3003
|
+
channel: Parameters<ReadChannelAllowFromStore>[0];
|
|
3004
|
+
accountId: string;
|
|
3005
|
+
env?: Parameters<ReadChannelAllowFromStore>[1];
|
|
3006
|
+
}) => ReturnType<ReadChannelAllowFromStore>;
|
|
3007
|
+
type UpsertChannelPairingRequestForAccount = (params: Omit<Parameters<UpsertChannelPairingRequest>[0], "accountId"> & {
|
|
3008
|
+
accountId: string;
|
|
3009
|
+
}) => ReturnType<UpsertChannelPairingRequest>;
|
|
3010
|
+
type FetchRemoteMedia = typeof fetchRemoteMedia;
|
|
3011
|
+
type SaveMediaBuffer = typeof saveMediaBuffer;
|
|
3012
|
+
type TextToSpeechTelephony = typeof textToSpeechTelephony;
|
|
3013
|
+
type BuildMentionRegexes = typeof buildMentionRegexes;
|
|
3014
|
+
type MatchesMentionPatterns = typeof matchesMentionPatterns;
|
|
3015
|
+
type MatchesMentionWithExplicit = typeof matchesMentionWithExplicit;
|
|
3016
|
+
type ShouldAckReaction = typeof shouldAckReaction;
|
|
3017
|
+
type RemoveAckReactionAfterReply = typeof removeAckReactionAfterReply;
|
|
3018
|
+
type ResolveChannelGroupPolicy = typeof resolveChannelGroupPolicy;
|
|
3019
|
+
type ResolveChannelGroupRequireMention = typeof resolveChannelGroupRequireMention;
|
|
3020
|
+
type CreateInboundDebouncer = typeof createInboundDebouncer;
|
|
3021
|
+
type ResolveInboundDebounceMs = typeof resolveInboundDebounceMs;
|
|
3022
|
+
type ResolveCommandAuthorizedFromAuthorizers = typeof resolveCommandAuthorizedFromAuthorizers;
|
|
3023
|
+
type ResolveTextChunkLimit = typeof resolveTextChunkLimit;
|
|
3024
|
+
type ResolveChunkMode = typeof resolveChunkMode;
|
|
3025
|
+
type ChunkMarkdownText = typeof chunkMarkdownText;
|
|
3026
|
+
type ChunkMarkdownTextWithMode = typeof chunkMarkdownTextWithMode;
|
|
3027
|
+
type ChunkText = typeof chunkText;
|
|
3028
|
+
type ChunkTextWithMode = typeof chunkTextWithMode;
|
|
3029
|
+
type ChunkByNewline = typeof chunkByNewline;
|
|
3030
|
+
type ResolveMarkdownTableMode = typeof resolveMarkdownTableMode;
|
|
3031
|
+
type ConvertMarkdownTables = typeof convertMarkdownTables;
|
|
3032
|
+
type HasControlCommand = typeof hasControlCommand;
|
|
3033
|
+
type IsControlCommandMessage = typeof isControlCommandMessage;
|
|
3034
|
+
type ShouldComputeCommandAuthorized = typeof shouldComputeCommandAuthorized;
|
|
3035
|
+
type ShouldHandleTextCommands = typeof shouldHandleTextCommands;
|
|
3036
|
+
type DispatchReplyFromConfig = typeof dispatchReplyFromConfig;
|
|
3037
|
+
type WithReplyDispatcher = typeof withReplyDispatcher;
|
|
3038
|
+
type FinalizeInboundContext = typeof finalizeInboundContext;
|
|
3039
|
+
type FormatAgentEnvelope = typeof formatAgentEnvelope;
|
|
3040
|
+
type FormatInboundEnvelope = typeof formatInboundEnvelope;
|
|
3041
|
+
type ResolveEnvelopeFormatOptions = typeof resolveEnvelopeFormatOptions;
|
|
3042
|
+
type ResolveStateDir = typeof resolveStateDir;
|
|
3043
|
+
type RecordInboundSession = typeof recordInboundSession;
|
|
3044
|
+
type RecordSessionMetaFromInbound = typeof recordSessionMetaFromInbound;
|
|
3045
|
+
type ResolveStorePath = typeof resolveStorePath;
|
|
3046
|
+
type ReadSessionUpdatedAt = typeof readSessionUpdatedAt;
|
|
3047
|
+
type UpdateLastRoute = typeof updateLastRoute;
|
|
3048
|
+
type LoadConfig = typeof loadConfig;
|
|
3049
|
+
type WriteConfigFile = typeof writeConfigFile;
|
|
3050
|
+
type RecordChannelActivity = typeof recordChannelActivity;
|
|
3051
|
+
type GetChannelActivity = typeof getChannelActivity;
|
|
3052
|
+
type EnqueueSystemEvent = typeof enqueueSystemEvent;
|
|
3053
|
+
type RunCommandWithTimeout = typeof runCommandWithTimeout;
|
|
3054
|
+
type FormatNativeDependencyHint = typeof formatNativeDependencyHint;
|
|
3055
|
+
type LoadWebMedia = typeof loadWebMedia;
|
|
3056
|
+
type DetectMime = typeof detectMime;
|
|
3057
|
+
type MediaKindFromMime = typeof mediaKindFromMime;
|
|
3058
|
+
type IsVoiceCompatibleAudio = typeof isVoiceCompatibleAudio;
|
|
3059
|
+
type GetImageMetadata = typeof getImageMetadata;
|
|
3060
|
+
type ResizeToJpeg = typeof resizeToJpeg;
|
|
3061
|
+
type CreateMemoryGetTool = typeof createMemoryGetTool;
|
|
3062
|
+
type CreateMemorySearchTool = typeof createMemorySearchTool;
|
|
3063
|
+
type RegisterMemoryCli = typeof registerMemoryCli;
|
|
3064
|
+
type DiscordMessageActions = typeof discordMessageActions;
|
|
3065
|
+
type AuditDiscordChannelPermissions = typeof auditDiscordChannelPermissions;
|
|
3066
|
+
type ListDiscordDirectoryGroupsLive = typeof listDiscordDirectoryGroupsLive;
|
|
3067
|
+
type ListDiscordDirectoryPeersLive = typeof listDiscordDirectoryPeersLive;
|
|
3068
|
+
type ProbeDiscord = typeof probeDiscord;
|
|
3069
|
+
type ResolveDiscordChannelAllowlist = typeof resolveDiscordChannelAllowlist;
|
|
3070
|
+
type ResolveDiscordUserAllowlist = typeof resolveDiscordUserAllowlist;
|
|
3071
|
+
type SendMessageDiscord = typeof sendMessageDiscord;
|
|
3072
|
+
type SendPollDiscord = typeof sendPollDiscord;
|
|
3073
|
+
type MonitorDiscordProvider = typeof monitorDiscordProvider;
|
|
3074
|
+
type ListSlackDirectoryGroupsLive = typeof listSlackDirectoryGroupsLive;
|
|
3075
|
+
type ListSlackDirectoryPeersLive = typeof listSlackDirectoryPeersLive;
|
|
3076
|
+
type ProbeSlack = typeof probeSlack;
|
|
3077
|
+
type ResolveSlackChannelAllowlist = typeof resolveSlackChannelAllowlist;
|
|
3078
|
+
type ResolveSlackUserAllowlist = typeof resolveSlackUserAllowlist;
|
|
3079
|
+
type SendMessageSlack = typeof sendMessageSlack;
|
|
3080
|
+
type MonitorSlackProvider = typeof monitorSlackProvider;
|
|
3081
|
+
type HandleSlackAction = typeof handleSlackAction;
|
|
3082
|
+
type AuditTelegramGroupMembership = typeof auditTelegramGroupMembership;
|
|
3083
|
+
type CollectTelegramUnmentionedGroupIds = typeof collectTelegramUnmentionedGroupIds;
|
|
3084
|
+
type ProbeTelegram = typeof probeTelegram;
|
|
3085
|
+
type ResolveTelegramToken = typeof resolveTelegramToken;
|
|
3086
|
+
type SendMessageTelegram = typeof sendMessageTelegram;
|
|
3087
|
+
type SendPollTelegram = typeof sendPollTelegram;
|
|
3088
|
+
type MonitorTelegramProvider = typeof monitorTelegramProvider;
|
|
3089
|
+
type TelegramMessageActions = typeof telegramMessageActions;
|
|
3090
|
+
type ProbeSignal = typeof probeSignal;
|
|
3091
|
+
type SendMessageSignal = typeof sendMessageSignal;
|
|
3092
|
+
type MonitorSignalProvider = typeof monitorSignalProvider;
|
|
3093
|
+
type SignalMessageActions = typeof signalMessageActions;
|
|
3094
|
+
type MonitorIMessageProvider = typeof monitorIMessageProvider;
|
|
3095
|
+
type ProbeIMessage = typeof probeIMessage;
|
|
3096
|
+
type SendMessageIMessage = typeof sendMessageIMessage;
|
|
3097
|
+
type GetActiveWebListener = typeof getActiveWebListener;
|
|
3098
|
+
type GetWebAuthAgeMs = typeof getWebAuthAgeMs;
|
|
3099
|
+
type LogoutWeb = typeof logoutWeb;
|
|
3100
|
+
type LogWebSelfId = typeof logWebSelfId;
|
|
3101
|
+
type ReadWebSelfId = typeof readWebSelfId;
|
|
3102
|
+
type WebAuthExists = typeof webAuthExists;
|
|
3103
|
+
type SendMessageWhatsApp = typeof sendMessageWhatsApp;
|
|
3104
|
+
type SendPollWhatsApp = typeof sendPollWhatsApp;
|
|
3105
|
+
type LoginWeb = typeof loginWeb;
|
|
3106
|
+
type StartWebLoginWithQr = typeof startWebLoginWithQr;
|
|
3107
|
+
type WaitForWebLogin = typeof waitForWebLogin;
|
|
3108
|
+
type MonitorWebChannel = typeof monitorWebChannel;
|
|
3109
|
+
type HandleWhatsAppAction = typeof handleWhatsAppAction;
|
|
3110
|
+
type CreateWhatsAppLoginTool = typeof createWhatsAppLoginTool;
|
|
3111
|
+
type ListLineAccountIds = typeof listLineAccountIds;
|
|
3112
|
+
type ResolveDefaultLineAccountId = typeof resolveDefaultLineAccountId;
|
|
3113
|
+
type ResolveLineAccount = typeof resolveLineAccount;
|
|
3114
|
+
type NormalizeLineAccountId = typeof normalizeAccountId;
|
|
3115
|
+
type ProbeLineBot = typeof probeLineBot;
|
|
3116
|
+
type SendMessageLine = typeof sendMessageLine;
|
|
3117
|
+
type PushMessageLine = typeof pushMessageLine;
|
|
3118
|
+
type PushMessagesLine = typeof pushMessagesLine;
|
|
3119
|
+
type PushFlexMessage = typeof pushFlexMessage;
|
|
3120
|
+
type PushTemplateMessage = typeof pushTemplateMessage;
|
|
3121
|
+
type PushLocationMessage = typeof pushLocationMessage;
|
|
3122
|
+
type PushTextMessageWithQuickReplies = typeof pushTextMessageWithQuickReplies;
|
|
3123
|
+
type CreateQuickReplyItems = typeof createQuickReplyItems;
|
|
3124
|
+
type BuildTemplateMessageFromPayload = typeof buildTemplateMessageFromPayload;
|
|
3125
|
+
type MonitorLineProvider = typeof monitorLineProvider;
|
|
3126
|
+
type RuntimeLogger = {
|
|
3127
|
+
debug?: (message: string, meta?: Record<string, unknown>) => void;
|
|
3128
|
+
info: (message: string, meta?: Record<string, unknown>) => void;
|
|
3129
|
+
warn: (message: string, meta?: Record<string, unknown>) => void;
|
|
3130
|
+
error: (message: string, meta?: Record<string, unknown>) => void;
|
|
3131
|
+
};
|
|
3132
|
+
type PluginRuntime = {
|
|
3133
|
+
version: string;
|
|
3134
|
+
config: {
|
|
3135
|
+
loadConfig: LoadConfig;
|
|
3136
|
+
writeConfigFile: WriteConfigFile;
|
|
3137
|
+
};
|
|
3138
|
+
system: {
|
|
3139
|
+
enqueueSystemEvent: EnqueueSystemEvent;
|
|
3140
|
+
runCommandWithTimeout: RunCommandWithTimeout;
|
|
3141
|
+
formatNativeDependencyHint: FormatNativeDependencyHint;
|
|
3142
|
+
};
|
|
3143
|
+
media: {
|
|
3144
|
+
loadWebMedia: LoadWebMedia;
|
|
3145
|
+
detectMime: DetectMime;
|
|
3146
|
+
mediaKindFromMime: MediaKindFromMime;
|
|
3147
|
+
isVoiceCompatibleAudio: IsVoiceCompatibleAudio;
|
|
3148
|
+
getImageMetadata: GetImageMetadata;
|
|
3149
|
+
resizeToJpeg: ResizeToJpeg;
|
|
3150
|
+
};
|
|
3151
|
+
tts: {
|
|
3152
|
+
textToSpeechTelephony: TextToSpeechTelephony;
|
|
3153
|
+
};
|
|
3154
|
+
tools: {
|
|
3155
|
+
createMemoryGetTool: CreateMemoryGetTool;
|
|
3156
|
+
createMemorySearchTool: CreateMemorySearchTool;
|
|
3157
|
+
registerMemoryCli: RegisterMemoryCli;
|
|
3158
|
+
};
|
|
3159
|
+
channel: {
|
|
3160
|
+
text: {
|
|
3161
|
+
chunkByNewline: ChunkByNewline;
|
|
3162
|
+
chunkMarkdownText: ChunkMarkdownText;
|
|
3163
|
+
chunkMarkdownTextWithMode: ChunkMarkdownTextWithMode;
|
|
3164
|
+
chunkText: ChunkText;
|
|
3165
|
+
chunkTextWithMode: ChunkTextWithMode;
|
|
3166
|
+
resolveChunkMode: ResolveChunkMode;
|
|
3167
|
+
resolveTextChunkLimit: ResolveTextChunkLimit;
|
|
3168
|
+
hasControlCommand: HasControlCommand;
|
|
3169
|
+
resolveMarkdownTableMode: ResolveMarkdownTableMode;
|
|
3170
|
+
convertMarkdownTables: ConvertMarkdownTables;
|
|
3171
|
+
};
|
|
3172
|
+
reply: {
|
|
3173
|
+
dispatchReplyWithBufferedBlockDispatcher: DispatchReplyWithBufferedBlockDispatcher;
|
|
3174
|
+
createReplyDispatcherWithTyping: CreateReplyDispatcherWithTyping;
|
|
3175
|
+
resolveEffectiveMessagesConfig: ResolveEffectiveMessagesConfig;
|
|
3176
|
+
resolveHumanDelayConfig: ResolveHumanDelayConfig;
|
|
3177
|
+
dispatchReplyFromConfig: DispatchReplyFromConfig;
|
|
3178
|
+
withReplyDispatcher: WithReplyDispatcher;
|
|
3179
|
+
finalizeInboundContext: FinalizeInboundContext;
|
|
3180
|
+
formatAgentEnvelope: FormatAgentEnvelope; /** @deprecated Prefer `BodyForAgent` + structured user-context blocks (do not build plaintext envelopes for prompts). */
|
|
3181
|
+
formatInboundEnvelope: FormatInboundEnvelope;
|
|
3182
|
+
resolveEnvelopeFormatOptions: ResolveEnvelopeFormatOptions;
|
|
3183
|
+
};
|
|
3184
|
+
routing: {
|
|
3185
|
+
resolveAgentRoute: ResolveAgentRoute;
|
|
3186
|
+
};
|
|
3187
|
+
pairing: {
|
|
3188
|
+
buildPairingReply: BuildPairingReply;
|
|
3189
|
+
readAllowFromStore: ReadChannelAllowFromStoreForAccount;
|
|
3190
|
+
upsertPairingRequest: UpsertChannelPairingRequestForAccount;
|
|
3191
|
+
};
|
|
3192
|
+
media: {
|
|
3193
|
+
fetchRemoteMedia: FetchRemoteMedia;
|
|
3194
|
+
saveMediaBuffer: SaveMediaBuffer;
|
|
3195
|
+
};
|
|
3196
|
+
activity: {
|
|
3197
|
+
record: RecordChannelActivity;
|
|
3198
|
+
get: GetChannelActivity;
|
|
3199
|
+
};
|
|
3200
|
+
session: {
|
|
3201
|
+
resolveStorePath: ResolveStorePath;
|
|
3202
|
+
readSessionUpdatedAt: ReadSessionUpdatedAt;
|
|
3203
|
+
recordSessionMetaFromInbound: RecordSessionMetaFromInbound;
|
|
3204
|
+
recordInboundSession: RecordInboundSession;
|
|
3205
|
+
updateLastRoute: UpdateLastRoute;
|
|
3206
|
+
};
|
|
3207
|
+
mentions: {
|
|
3208
|
+
buildMentionRegexes: BuildMentionRegexes;
|
|
3209
|
+
matchesMentionPatterns: MatchesMentionPatterns;
|
|
3210
|
+
matchesMentionWithExplicit: MatchesMentionWithExplicit;
|
|
3211
|
+
};
|
|
3212
|
+
reactions: {
|
|
3213
|
+
shouldAckReaction: ShouldAckReaction;
|
|
3214
|
+
removeAckReactionAfterReply: RemoveAckReactionAfterReply;
|
|
3215
|
+
};
|
|
3216
|
+
groups: {
|
|
3217
|
+
resolveGroupPolicy: ResolveChannelGroupPolicy;
|
|
3218
|
+
resolveRequireMention: ResolveChannelGroupRequireMention;
|
|
3219
|
+
};
|
|
3220
|
+
debounce: {
|
|
3221
|
+
createInboundDebouncer: CreateInboundDebouncer;
|
|
3222
|
+
resolveInboundDebounceMs: ResolveInboundDebounceMs;
|
|
3223
|
+
};
|
|
3224
|
+
commands: {
|
|
3225
|
+
resolveCommandAuthorizedFromAuthorizers: ResolveCommandAuthorizedFromAuthorizers;
|
|
3226
|
+
isControlCommandMessage: IsControlCommandMessage;
|
|
3227
|
+
shouldComputeCommandAuthorized: ShouldComputeCommandAuthorized;
|
|
3228
|
+
shouldHandleTextCommands: ShouldHandleTextCommands;
|
|
3229
|
+
};
|
|
3230
|
+
discord: {
|
|
3231
|
+
messageActions: DiscordMessageActions;
|
|
3232
|
+
auditChannelPermissions: AuditDiscordChannelPermissions;
|
|
3233
|
+
listDirectoryGroupsLive: ListDiscordDirectoryGroupsLive;
|
|
3234
|
+
listDirectoryPeersLive: ListDiscordDirectoryPeersLive;
|
|
3235
|
+
probeDiscord: ProbeDiscord;
|
|
3236
|
+
resolveChannelAllowlist: ResolveDiscordChannelAllowlist;
|
|
3237
|
+
resolveUserAllowlist: ResolveDiscordUserAllowlist;
|
|
3238
|
+
sendMessageDiscord: SendMessageDiscord;
|
|
3239
|
+
sendPollDiscord: SendPollDiscord;
|
|
3240
|
+
monitorDiscordProvider: MonitorDiscordProvider;
|
|
3241
|
+
};
|
|
3242
|
+
slack: {
|
|
3243
|
+
listDirectoryGroupsLive: ListSlackDirectoryGroupsLive;
|
|
3244
|
+
listDirectoryPeersLive: ListSlackDirectoryPeersLive;
|
|
3245
|
+
probeSlack: ProbeSlack;
|
|
3246
|
+
resolveChannelAllowlist: ResolveSlackChannelAllowlist;
|
|
3247
|
+
resolveUserAllowlist: ResolveSlackUserAllowlist;
|
|
3248
|
+
sendMessageSlack: SendMessageSlack;
|
|
3249
|
+
monitorSlackProvider: MonitorSlackProvider;
|
|
3250
|
+
handleSlackAction: HandleSlackAction;
|
|
3251
|
+
};
|
|
3252
|
+
telegram: {
|
|
3253
|
+
auditGroupMembership: AuditTelegramGroupMembership;
|
|
3254
|
+
collectUnmentionedGroupIds: CollectTelegramUnmentionedGroupIds;
|
|
3255
|
+
probeTelegram: ProbeTelegram;
|
|
3256
|
+
resolveTelegramToken: ResolveTelegramToken;
|
|
3257
|
+
sendMessageTelegram: SendMessageTelegram;
|
|
3258
|
+
sendPollTelegram: SendPollTelegram;
|
|
3259
|
+
monitorTelegramProvider: MonitorTelegramProvider;
|
|
3260
|
+
messageActions: TelegramMessageActions;
|
|
3261
|
+
};
|
|
3262
|
+
signal: {
|
|
3263
|
+
probeSignal: ProbeSignal;
|
|
3264
|
+
sendMessageSignal: SendMessageSignal;
|
|
3265
|
+
monitorSignalProvider: MonitorSignalProvider;
|
|
3266
|
+
messageActions: SignalMessageActions;
|
|
3267
|
+
};
|
|
3268
|
+
imessage: {
|
|
3269
|
+
monitorIMessageProvider: MonitorIMessageProvider;
|
|
3270
|
+
probeIMessage: ProbeIMessage;
|
|
3271
|
+
sendMessageIMessage: SendMessageIMessage;
|
|
3272
|
+
};
|
|
3273
|
+
whatsapp: {
|
|
3274
|
+
getActiveWebListener: GetActiveWebListener;
|
|
3275
|
+
getWebAuthAgeMs: GetWebAuthAgeMs;
|
|
3276
|
+
logoutWeb: LogoutWeb;
|
|
3277
|
+
logWebSelfId: LogWebSelfId;
|
|
3278
|
+
readWebSelfId: ReadWebSelfId;
|
|
3279
|
+
webAuthExists: WebAuthExists;
|
|
3280
|
+
sendMessageWhatsApp: SendMessageWhatsApp;
|
|
3281
|
+
sendPollWhatsApp: SendPollWhatsApp;
|
|
3282
|
+
loginWeb: LoginWeb;
|
|
3283
|
+
startWebLoginWithQr: StartWebLoginWithQr;
|
|
3284
|
+
waitForWebLogin: WaitForWebLogin;
|
|
3285
|
+
monitorWebChannel: MonitorWebChannel;
|
|
3286
|
+
handleWhatsAppAction: HandleWhatsAppAction;
|
|
3287
|
+
createLoginTool: CreateWhatsAppLoginTool;
|
|
3288
|
+
};
|
|
3289
|
+
line: {
|
|
3290
|
+
listLineAccountIds: ListLineAccountIds;
|
|
3291
|
+
resolveDefaultLineAccountId: ResolveDefaultLineAccountId;
|
|
3292
|
+
resolveLineAccount: ResolveLineAccount;
|
|
3293
|
+
normalizeAccountId: NormalizeLineAccountId;
|
|
3294
|
+
probeLineBot: ProbeLineBot;
|
|
3295
|
+
sendMessageLine: SendMessageLine;
|
|
3296
|
+
pushMessageLine: PushMessageLine;
|
|
3297
|
+
pushMessagesLine: PushMessagesLine;
|
|
3298
|
+
pushFlexMessage: PushFlexMessage;
|
|
3299
|
+
pushTemplateMessage: PushTemplateMessage;
|
|
3300
|
+
pushLocationMessage: PushLocationMessage;
|
|
3301
|
+
pushTextMessageWithQuickReplies: PushTextMessageWithQuickReplies;
|
|
3302
|
+
createQuickReplyItems: CreateQuickReplyItems;
|
|
3303
|
+
buildTemplateMessageFromPayload: BuildTemplateMessageFromPayload;
|
|
3304
|
+
monitorLineProvider: MonitorLineProvider;
|
|
3305
|
+
};
|
|
3306
|
+
};
|
|
3307
|
+
logging: {
|
|
3308
|
+
shouldLogVerbose: ShouldLogVerbose;
|
|
3309
|
+
getChildLogger: (bindings?: Record<string, unknown>, opts?: {
|
|
3310
|
+
level?: LogLevel;
|
|
3311
|
+
}) => RuntimeLogger;
|
|
3312
|
+
};
|
|
3313
|
+
state: {
|
|
3314
|
+
resolveStateDir: ResolveStateDir;
|
|
3315
|
+
};
|
|
3316
|
+
/**
|
|
3317
|
+
* Fixed helper surfaces exposed to plugins through the scoped runtime.
|
|
3318
|
+
*
|
|
3319
|
+
* Helpers are permission-gated and intentionally narrower than gateway RPC.
|
|
3320
|
+
* They must not be treated as a generic gateway dispatcher.
|
|
3321
|
+
*/
|
|
3322
|
+
helpers: {
|
|
3323
|
+
/**
|
|
3324
|
+
* Fixed, permission-gated wrappers for selected admin/write helper RPCs.
|
|
3325
|
+
*
|
|
3326
|
+
* This is intentionally not a generic gateway dispatcher. Each method
|
|
3327
|
+
* requires an explicit `plugins.entries.<plugin-id>.runtime.adminRpcActions`
|
|
3328
|
+
* grant, trusted plugin source match, operator-scoped call context, inherited
|
|
3329
|
+
* rate limit, and sanitized audit.
|
|
3330
|
+
*/
|
|
3331
|
+
adminRpc: PluginRuntimeAdminRpcHelpers;
|
|
3332
|
+
/**
|
|
3333
|
+
* Read-only session metadata/status helper.
|
|
3334
|
+
*
|
|
3335
|
+
* Requires:
|
|
3336
|
+
*
|
|
3337
|
+
* ```json
|
|
3338
|
+
* {
|
|
3339
|
+
* "plugins": {
|
|
3340
|
+
* "entries": {
|
|
3341
|
+
* "<plugin-id>": {
|
|
3342
|
+
* "runtime": {
|
|
3343
|
+
* "helpers": { "sessions": { "read": true } }
|
|
3344
|
+
* }
|
|
3345
|
+
* }
|
|
3346
|
+
* }
|
|
3347
|
+
* }
|
|
3348
|
+
* }
|
|
3349
|
+
* ```
|
|
3350
|
+
*
|
|
3351
|
+
* Returns sanitized metadata only. It does not expose transcripts, message
|
|
3352
|
+
* previews, session mutation, node invocation, config mutation, or a gateway
|
|
3353
|
+
* dispatcher.
|
|
3354
|
+
*/
|
|
3355
|
+
sessions: PluginRuntimeSessionHelpers;
|
|
3356
|
+
};
|
|
3357
|
+
};
|
|
3358
|
+
//#endregion
|
|
3359
|
+
export { RealtimeVoiceBridge as $, extensionForMime as $t, ProviderPlugin as A, LineAccountConfig as At, GeneratedVideoAsset as B, resolveDefaultGroupPolicy as Bt, ProviderAuthContext as C, readStringParam as Cn, ImageGenerationSourceImage as Ct, ProviderCatalogContext as D, SessionEntry as Dn, normalizeAccountId as Dt, ProviderAuthResult as E, SessionAcpMeta as En, listLineAccountIds as Et, RealtimeTranscriptionProviderPlugin as F, formatLocationText as Ft, VideoGenerationProviderCapabilities as G, listSlackDirectoryGroupsFromConfig as Gt, VideoGenerationMode as H, warnMissingProviderGroupPolicyFallbackOnce as Ht, RealtimeVoiceProviderPlugin as I, toLocationContext as It, VideoGenerationResolution as J, listTelegramDirectoryPeersFromConfig as Jt, VideoGenerationProviderConfiguredContext as K, listSlackDirectoryPeersFromConfig as Kt, VideoGenerationProviderPlugin as L, TelegramProbe as Lt, ProviderPluginWizard as M, LineConfig as Mt, ProviderPluginWizardModelPicker as N, ResolvedLineAccount as Nt, ProviderCatalogOrder as O, SessionSystemPromptReport as On, resolveDefaultLineAccountId as Ot, ProviderPluginWizardSetup as P, NormalizedLocation as Pt, RuntimeWebSearchMetadata as Q, detectMime as Qt, WebSearchProviderPlugin as R, GROUP_POLICY_BLOCKED_LABEL as Rt, PluginLogger as S, readReactionParams as Sn, ImageGenerationResult as St, ProviderAuthMethod as T, SessionAcpIdentity as Tn, ChannelDock as Tt, VideoGenerationModeCapabilities as U, listDiscordDirectoryGroupsFromConfig as Ut, VideoGenerationIgnoredOverride as V, resolveOpenProviderRuntimeGroupPolicy as Vt, VideoGenerationProvider as W, listDiscordDirectoryPeersFromConfig as Wt, VideoGenerationSourceAsset as X, listWhatsAppDirectoryPeersFromConfig as Xt, VideoGenerationResult as Y, listWhatsAppDirectoryGroupsFromConfig as Yt, VideoGenerationTransformCapabilities as Z, collectDiscordAuditChannelIds as Zt, FasedAgentPluginApi as _, createTypingCallbacks as _n, GeneratedImageAsset as _t, PluginRuntimeSessionGetParams as a, resolveControlCommandGate as an, RealtimeVoiceProviderId as at, FasedAgentPluginServiceContext as b, jsonResult as bn, ImageGenerationRequest as bt, PluginRuntimeSessionListResult as c, AckReactionScope as cn, RealtimeVoiceTool as ct, PluginRuntimeAdminRpcAuditSink as d, shouldAckReaction as dn, RealtimeTranscriptionProviderConfiguredContext as dt, getFileExtension as en, RealtimeVoiceBridgeCallbacks as et, PluginRuntimeAdminRpcCallContext as f, shouldAckReactionForWhatsApp as fn, RealtimeTranscriptionProviderId as ft, PluginRegistry as g, ResponsePrefixContext as gn, RealtimeTranscriptionSessionCreateRequest as gt, PluginRuntimeAdminRpcInvoker as h, resolveAckReaction as hn, RealtimeTranscriptionSessionCallbacks as ht, PluginRuntimeSessionAuditSink as i, formatInboundFromLabel as in, RealtimeVoiceProviderConfiguredContext as it, ProviderPluginCatalog as j, LineChannelData as jt, ProviderCatalogResult as k, resolveLineAccount as kt, PluginRuntimeSessionStatus as l, WhatsAppAckReactionMode as ln, RealtimeVoiceToolCallEvent as lt, PluginRuntimeAdminRpcInvocation as m, RoutePeerKind as mn, RealtimeTranscriptionSession as mt, RuntimeLogger as n, loadWebMedia as nn, RealtimeVoiceCloseReason as nt, PluginRuntimeSessionHelpers as o, resolveToolsBySender as on, RealtimeVoiceProviderResolveConfigContext as ot, PluginRuntimeAdminRpcHelpers as p, extractOriginalFilename as pn, RealtimeTranscriptionProviderResolveConfigContext as pt, VideoGenerationRequest as q, listTelegramDirectoryGroupsFromConfig as qt, PluginRuntimeSessionAuditEvent as r, recordInboundSession as rn, RealtimeVoiceProviderConfig as rt, PluginRuntimeSessionListParams as s, AckReactionGateParams as sn, RealtimeVoiceRole as st, PluginRuntime as t, WebMediaResult as tn, RealtimeVoiceBridgeCreateRequest as tt, PluginRuntimeAdminRpcAuditEvent as u, removeAckReactionAfterReply as un, RealtimeTranscriptionProviderConfig as ut, FasedAgentPluginConfigSchema as v, AnyAgentTool as vn, ImageGenerationProvider as vt, ProviderAuthKind as w, AcpSessionRuntimeOptions as wn, HookEntry as wt, ImageGenerationProviderPlugin as x, readNumberParam as xn, ImageGenerationResolution as xt, FasedAgentPluginService as y, createActionGate as yn, ImageGenerationProviderConfiguredContext as yt, WebSearchProviderToolDefinition as z, resolveAllowlistProviderRuntimeGroupPolicy as zt };
|