@fased/fased 0.1.36 → 0.1.38
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/config/capability-catalog.json +241 -0
- package/config/dependency-ownership.json +130 -0
- package/config/official-channel-catalog.json +39 -0
- package/dist/agents/tools/web-fetch-utils.js +2 -1
- package/dist/agents/tools/web-fetch-visibility.js +3 -1
- package/dist/brand.js +1 -1
- package/dist/browser/pw-session.js +2 -1
- package/dist/browser/pw-tools-core.state.js +3 -2
- package/dist/browser/runtime-dependency.js +27 -0
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/capabilities/catalog.js +228 -0
- package/dist/cli/components-cli.js +105 -0
- package/dist/cli/hooks-cli.js +1 -1
- package/dist/cli/plugins-cli.js +3 -3
- package/dist/cli/program/register.subclis.js +9 -0
- package/dist/cli/update-cli/update-command.js +1 -1
- package/dist/commands/doctor-capabilities.js +26 -0
- package/dist/commands/doctor.js +2 -0
- package/dist/control-ui/assets/{app-DXYMrRJ9.js → app-JBrTSsNu.js} +1480 -1465
- package/dist/control-ui/assets/{index-iGQkJE0l.js → index-H-2DWAnH.js} +3 -3
- package/dist/control-ui/index.html +1 -1
- package/dist/gateway/method-scopes.js +1 -0
- package/dist/gateway/server-methods/plugins-marketplace.js +1 -1
- package/dist/gateway/server-methods/services.js +8 -0
- package/dist/gateway/server-methods-list.js +1 -0
- package/dist/infra/optional-runtime-dependency.js +46 -0
- package/dist/media/image-ops.js +6 -1
- package/dist/media/input-files.js +11 -2
- package/dist/media/mime.js +6 -1
- package/dist/memory/sqlite-vec.js +7 -1
- package/dist/plugin-sdk/{accounts-VqAX3HJ0.js → accounts-BwkH5bTD.js} +1 -1
- package/dist/plugin-sdk/{accounts-Zgt0NP54.js → accounts-RT6y7n3H.js} +1 -1
- package/dist/plugin-sdk/{actions-lB3PCwsz.js → actions-BrU_JMqM.js} +2 -2
- package/dist/plugin-sdk/{actions-BI5QViLk.js → actions-CUdVHzeJ.js} +2 -2
- package/dist/plugin-sdk/{active-listener-DKZiSaRA.js → active-listener-CE8t5g6l.js} +1 -1
- package/dist/plugin-sdk/{active-listener-D6_pdTMC.js → active-listener-Dx1SEGDn.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-Dx8J7XhV.js → audio-preflight-BPK8t0tI.js} +22 -22
- package/dist/plugin-sdk/{audio-preflight-CeRstduc.js → audio-preflight-kCa_KGRH.js} +22 -22
- package/dist/plugin-sdk/{audit-BImNOQvk.js → audit-DxB2Kml5.js} +11 -11
- package/dist/plugin-sdk/{audit-CKWkq0Un.js → audit-sSeRDwJb.js} +11 -11
- package/dist/plugin-sdk/channel-plugin-common.js +3 -2
- package/dist/plugin-sdk/{chunk-skAJZWCT.js → chunk-KCxbJLsV.js} +1 -1
- package/dist/plugin-sdk/{chunk-Cjw4712g.js → chunk-M2d7r-Zt.js} +1 -1
- package/dist/plugin-sdk/{chunk-items-Df5811D0.js → chunk-items-DGHUeFuI.js} +1 -1
- package/dist/plugin-sdk/command-status.js +22 -22
- package/dist/plugin-sdk/{commands-registry-5J619bQ2.js → commands-registry-CdT-nl7v.js} +2 -2
- package/dist/plugin-sdk/{commands-registry-CoLAT03J.js → commands-registry-DoWdYAJd.js} +2 -2
- package/dist/plugin-sdk/{common-CSTxewqY.js → common-Cpw-vuuM.js} +1 -1
- package/dist/plugin-sdk/{common-BiF0sTnY.js → common-DJWrErdE.js} +1 -1
- package/dist/plugin-sdk/{config-BxVjLTIv.js → config-C0qggNKQ.js} +7 -7
- package/dist/plugin-sdk/{config-TFokWwvO.js → config-CgwTaper.js} +45 -2
- package/dist/plugin-sdk/{config-DXlISPlx.js → config-DtqAN2L3.js} +45 -2
- package/dist/plugin-sdk/discord.js +2 -1
- package/dist/plugin-sdk/{fetch-guard-DPMynms8.js → fetch-guard-BLdujDnt.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-COLmW2TM.js → fetch-guard-DTKgMN9f.js} +1 -1
- package/dist/plugin-sdk/{handle-action-C-UndB8E.js → handle-action-B61D85yo.js} +12 -12
- package/dist/plugin-sdk/{handle-action-hhufKxmU.js → handle-action-CjcxGzQD.js} +12 -12
- package/dist/plugin-sdk/index.js +22 -22
- package/dist/plugin-sdk/{login-DL1oBBfL.js → login-CB_nCjX3.js} +3 -3
- package/dist/plugin-sdk/{login-Dnxas1dI.js → login-CzUuDd1v.js} +3 -3
- package/dist/plugin-sdk/{login-qr-CVQsGWKq.js → login-qr-D7MEpFza.js} +3 -3
- package/dist/plugin-sdk/{login-qr-B343JNXJ.js → login-qr-DgxfBFVN.js} +3 -3
- package/dist/plugin-sdk/{manager-BytwRIfK.js → manager-9see0IX5.js} +8 -3
- package/dist/plugin-sdk/{manager-BZjd_PCt.js → manager-D2kZ0Cps.js} +8 -3
- package/dist/plugin-sdk/{markdown-tables-krKiU4cT.js → markdown-tables-CCSD52rA.js} +1 -1
- package/dist/plugin-sdk/{markdown-tables-9rJDQ1X-.js → markdown-tables-DWUNvLrc.js} +1 -1
- package/dist/plugin-sdk/{media-D7ZkWU-A.js → media-C7YT4DeU.js} +13 -4
- package/dist/plugin-sdk/{media-C6C2c9a4.js → media-Cxw-xLGU.js} +13 -4
- package/dist/plugin-sdk/{monitor-BsLMfn3U.js → monitor-6lkdOqhQ.js} +26 -26
- package/dist/plugin-sdk/{monitor-BCxkQBoh.js → monitor-C6Ohw9BA.js} +26 -26
- package/dist/plugin-sdk/{monitor-BzDW50H6.js → monitor-o20KTHIi.js} +29 -29
- package/dist/plugin-sdk/{monitor-CVQNDfhs.js → monitor-rOs3mUol.js} +27 -27
- package/dist/plugin-sdk/{openresponses-http-BB67Z4QM.js → openresponses-http-BJONnUdy.js} +22 -22
- package/dist/plugin-sdk/{openresponses-http-NE76GGhj.js → openresponses-http-DkWqYznu.js} +22 -22
- package/dist/plugin-sdk/{ssrf-u0Ul7okY.js → optional-runtime-dependency-szS49voX.js} +46 -2
- package/dist/plugin-sdk/{outbound-PGNWU6T-.js → outbound-BCxOxdi-.js} +6 -6
- package/dist/plugin-sdk/{outbound-BHWJD9q0.js → outbound-JIwQbpRY.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-BVzfhqnk.js → outbound-attachment-C-jSFaEB.js} +1 -1
- package/dist/plugin-sdk/{outbound-attachment-ClMvNW17.js → outbound-attachment-D6tj5Y5H.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-runner-DQ6UPx6-.js → pi-embedded-runner-DqDy0MWN.js} +72 -60
- package/dist/plugin-sdk/{pi-model-discovery-D51L5E9I.js → pi-model-discovery-DadlvsZW.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-DxoFm4Vd.js → pi-model-discovery-runtime-C5ssE6EW.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-DRuh4PNV.js → pi-model-discovery-runtime-DAaOPt64.js} +2 -2
- package/dist/plugin-sdk/{pi-model-discovery-runtime-BTWgkx4x.js → pi-model-discovery-runtime-gd77b0UF.js} +2 -2
- package/dist/plugin-sdk/{pi-model-discovery-CkH5l9X5.js → pi-model-discovery-yifTIDIn.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-DZs6uYRd.js → pw-ai-Boor5vYw.js} +6 -5
- package/dist/plugin-sdk/{pw-ai-Cn-EUPZK.js → pw-ai-sH1Pi-Fh.js} +6 -5
- package/dist/plugin-sdk/{registry-B4HvWzob.js → registry-DNkJsNsz.js} +4 -3
- package/dist/plugin-sdk/{replies-jDMUBsNO.js → replies-fvzN5wnU.js} +2 -2
- package/dist/plugin-sdk/{replies-B_LW9c9f.js → replies-zebgZCHX.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-_YZHbS-z.js → resolve-route-CNhTJG_2.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-DlHzggnG.js → resolve-route-DO0WR4nB.js} +1 -1
- package/dist/plugin-sdk/{resolve-utils-zBhVX3Vx.js → resolve-utils-bixHYDBj.js} +1 -1
- package/dist/plugin-sdk/{retry-policy-DGLs5ebP.js → retry-policy-BLYEgIwP.js} +1 -1
- package/dist/plugin-sdk/{retry-policy-DaodShGa.js → retry-policy-sM01QZT2.js} +1 -1
- package/dist/plugin-sdk/{runtime-Dd0sswuW.js → runtime-BPyuAmka.js} +4 -3
- package/dist/plugin-sdk/{paths-CBCpJ5bu.js → runtime-dependency-Csswyv5r.js} +27 -3
- package/dist/plugin-sdk/{paths-DW-U2r7Y.js → runtime-dependency-Deg_sw2k.js} +36 -12
- package/dist/plugin-sdk/sat-runtime.js +1 -0
- package/dist/plugin-sdk/{send-8remZhsH.js → send-B09HRfHN.js} +6 -6
- package/dist/plugin-sdk/{send-DaaAscWj.js → send-BBYcgXA4.js} +5 -5
- package/dist/plugin-sdk/{send-DFTB0cnx.js → send-BQXQA81e.js} +6 -6
- package/dist/plugin-sdk/{send-CtMVvMJs.js → send-BzFdvD_i.js} +6 -6
- package/dist/plugin-sdk/{send-Di9irjS-.js → send-C3u-F_8s.js} +6 -6
- package/dist/plugin-sdk/{send-Dl88ZKq2.js → send-D3836_UN.js} +6 -6
- package/dist/plugin-sdk/{send-ifgZCHVB.js → send-D7tr-EsH.js} +5 -5
- package/dist/plugin-sdk/{send-DvUpYh0d.js → send-DRGzRdI3.js} +6 -6
- package/dist/plugin-sdk/{send-D2jlPeKH.js → send-DfkPKz_0.js} +4 -4
- package/dist/plugin-sdk/{send-QSt6nbny.js → send-DsxFXrCO.js} +4 -4
- package/dist/plugin-sdk/{session-CknrceVU.js → session-DG_bYisw.js} +2 -2
- package/dist/plugin-sdk/{session-CyRTcJ8N.js → session-EIStzK0E.js} +2 -2
- package/dist/plugin-sdk/{skill-commands-DHxkTA0s.js → skill-commands-CkgGmWBS.js} +2 -2
- package/dist/plugin-sdk/{skill-commands-CLXAG5sU.js → skill-commands-hyZA0LE3.js} +2 -2
- package/dist/plugin-sdk/{slack-Br9c6Yzs.js → slack-BErIh0uj.js} +34 -34
- package/dist/plugin-sdk/{slack-BpJXkwxF.js → slack-CGTAN4UD.js} +34 -34
- package/dist/plugin-sdk/{slack-actions-8tLGt1Ht.js → slack-actions-BQawWGTJ.js} +11 -11
- package/dist/plugin-sdk/{slack-actions-CDSSRo8Y.js → slack-actions-DDMszx56.js} +11 -11
- package/dist/plugin-sdk/slack.js +2 -1
- package/dist/plugin-sdk/src/brand.d.ts +2 -2
- package/dist/plugin-sdk/src/browser/runtime-dependency.d.ts +3 -0
- package/dist/plugin-sdk/src/infra/optional-runtime-dependency.d.ts +6 -0
- package/dist/plugin-sdk/{ssrf-fG4UHKBw.js → ssrf-Cce6LubA.js} +41 -7
- package/dist/plugin-sdk/{status-DoxnzyMC.js → status-CCGFb0f2.js} +76 -64
- package/dist/plugin-sdk/{sticker-cache-zmJ39ByC.js → sticker-cache-CKAkkCoU.js} +3 -3
- package/dist/plugin-sdk/{sticker-cache-D7WcMYsF.js → sticker-cache-wxl1Me2i.js} +3 -3
- package/dist/plugin-sdk/{tables-CkxblF0u.js → tables-BD7H5ug-.js} +1 -1
- package/dist/plugin-sdk/{tables-RBtf8G4P.js → tables-CJE8kB35.js} +1 -1
- package/dist/plugin-sdk/{telegram-actions-DAeYXSLk.js → telegram-actions-BRUNEXMr.js} +25 -25
- package/dist/plugin-sdk/{telegram-actions-BDeS3ocd.js → telegram-actions-r86ntIKR.js} +25 -25
- package/dist/plugin-sdk/telegram.js +2 -1
- package/dist/plugin-sdk/{thread-bindings.lifecycle-DsB94WbE.js → thread-bindings.lifecycle-Djem8FWF.js} +2 -2
- package/dist/plugin-sdk/{thread-bindings.lifecycle-DMhV3TsR.js → thread-bindings.lifecycle-gmHv3hc7.js} +2 -2
- package/dist/plugin-sdk/{thread-bindings.state-DYWpy7hJ.js → thread-bindings.state-CNT2vxm3.js} +2 -2
- package/dist/plugin-sdk/{thread-bindings.state-DG5cBaRn.js → thread-bindings.state-D8kN2X6H.js} +2 -2
- package/dist/plugin-sdk/{web-DJwacWQo.js → web-02I0vmdu.js} +26 -26
- package/dist/plugin-sdk/{web-IJ4NoGPJ.js → web-CXz56wyu.js} +26 -26
- package/dist/plugin-sdk/{whatsapp-actions-DAY8hWpD.js → whatsapp-actions-68Mfs2dJ.js} +12 -12
- package/dist/plugin-sdk/{whatsapp-actions-6opfo-oB.js → whatsapp-actions-DRqtzvTO.js} +12 -12
- package/dist/plugin-sdk/whatsapp.js +2 -1
- package/dist/plugin-sdk/{wsl-B2euLEc2.js → wsl-DcM2PgSS.js} +3 -3
- package/dist/plugin-sdk/{wsl-B8eyviuv.js → wsl-PXrdWitE.js} +3 -3
- package/dist/plugins/update.js +1 -1
- package/dist/tts/tts-core.js +6 -1
- package/dist/wizard/onboarding.finalize.js +9 -0
- 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 +12 -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 +12 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +12 -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 +12 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +12 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +12 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +12 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +22 -15
- package/extensions/feishu/fased.plugin.json +0 -10
- package/extensions/feishu/index.ts +0 -63
- package/extensions/feishu/package.json +0 -33
- package/extensions/feishu/skills/feishu-doc/SKILL.md +0 -211
- package/extensions/feishu/skills/feishu-doc/references/block-types.md +0 -103
- package/extensions/feishu/skills/feishu-drive/SKILL.md +0 -97
- package/extensions/feishu/skills/feishu-perm/SKILL.md +0 -119
- package/extensions/feishu/skills/feishu-wiki/SKILL.md +0 -111
- package/extensions/feishu/src/accounts.ts +0 -159
- package/extensions/feishu/src/bitable.ts +0 -713
- package/extensions/feishu/src/bot.ts +0 -979
- package/extensions/feishu/src/channel.ts +0 -359
- package/extensions/feishu/src/client.ts +0 -118
- package/extensions/feishu/src/config-schema.ts +0 -226
- package/extensions/feishu/src/dedup.ts +0 -54
- package/extensions/feishu/src/directory.ts +0 -177
- package/extensions/feishu/src/doc-schema.ts +0 -122
- package/extensions/feishu/src/docx.ts +0 -998
- package/extensions/feishu/src/drive-schema.ts +0 -46
- package/extensions/feishu/src/drive.ts +0 -232
- package/extensions/feishu/src/dynamic-agent.ts +0 -131
- package/extensions/feishu/src/external-keys.ts +0 -19
- package/extensions/feishu/src/media.ts +0 -447
- package/extensions/feishu/src/mention.ts +0 -133
- package/extensions/feishu/src/monitor.ts +0 -434
- package/extensions/feishu/src/onboarding.ts +0 -430
- package/extensions/feishu/src/outbound.ts +0 -56
- package/extensions/feishu/src/perm-schema.ts +0 -52
- package/extensions/feishu/src/perm.ts +0 -180
- package/extensions/feishu/src/policy.ts +0 -116
- package/extensions/feishu/src/probe.ts +0 -44
- package/extensions/feishu/src/reactions.ts +0 -160
- package/extensions/feishu/src/reply-dispatcher.ts +0 -239
- package/extensions/feishu/src/runtime.ts +0 -14
- package/extensions/feishu/src/send-result.ts +0 -29
- package/extensions/feishu/src/send-target.ts +0 -25
- package/extensions/feishu/src/send.ts +0 -313
- package/extensions/feishu/src/streaming-card.ts +0 -218
- package/extensions/feishu/src/targets.ts +0 -78
- package/extensions/feishu/src/tool-account.ts +0 -58
- package/extensions/feishu/src/tools-config.ts +0 -21
- package/extensions/feishu/src/types.ts +0 -81
- package/extensions/feishu/src/typing.ts +0 -80
- package/extensions/feishu/src/wiki-schema.ts +0 -55
- package/extensions/feishu/src/wiki.ts +0 -237
- package/extensions/googlechat/fased.plugin.json +0 -9
- package/extensions/googlechat/index.ts +0 -19
- package/extensions/googlechat/package.json +0 -37
- package/extensions/googlechat/src/accounts.ts +0 -147
- package/extensions/googlechat/src/actions.ts +0 -176
- package/extensions/googlechat/src/api.ts +0 -282
- package/extensions/googlechat/src/auth.ts +0 -137
- package/extensions/googlechat/src/channel.ts +0 -591
- package/extensions/googlechat/src/monitor.ts +0 -996
- package/extensions/googlechat/src/onboarding.ts +0 -344
- package/extensions/googlechat/src/runtime.ts +0 -14
- package/extensions/googlechat/src/targets.ts +0 -65
- package/extensions/googlechat/src/types.config.ts +0 -3
- package/extensions/googlechat/src/types.ts +0 -73
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./config-
|
|
1
|
+
import "./config-CgwTaper.js";
|
|
2
2
|
import "./paths-GdhK5mV_.js";
|
|
3
3
|
import "./globals-BtKmaIS3.js";
|
|
4
4
|
import "./utils-LGKVujSU.js";
|
|
@@ -7,43 +7,43 @@ import "./agent-scope-BuTbywla.js";
|
|
|
7
7
|
import "./redact-Ck-wgswc.js";
|
|
8
8
|
import "./github-copilot-token-Djqpy66R.js";
|
|
9
9
|
import "./retry-Cq65ROXv.js";
|
|
10
|
-
import "./registry-
|
|
10
|
+
import "./registry-DNkJsNsz.js";
|
|
11
11
|
import "./accounts-BJFheJNv.js";
|
|
12
12
|
import "./accounts-BRbbLNW_.js";
|
|
13
|
-
import "./accounts-
|
|
13
|
+
import "./accounts-BwkH5bTD.js";
|
|
14
14
|
import "./tokens-BK5rrwBB.js";
|
|
15
15
|
import "./allow-list-CBtbuDI8.js";
|
|
16
16
|
import "./paths-DTurNPnO.js";
|
|
17
|
-
import { n as buildCommandsMessagePaginated, r as buildHelpMessage, t as buildCommandsMessage } from "./status-
|
|
18
|
-
import "./
|
|
19
|
-
import "./ssrf-
|
|
20
|
-
import "./skill-commands-
|
|
21
|
-
import "./pi-model-discovery-
|
|
17
|
+
import { n as buildCommandsMessagePaginated, r as buildHelpMessage, t as buildCommandsMessage } from "./status-CCGFb0f2.js";
|
|
18
|
+
import "./runtime-dependency-Deg_sw2k.js";
|
|
19
|
+
import "./ssrf-Cce6LubA.js";
|
|
20
|
+
import "./skill-commands-hyZA0LE3.js";
|
|
21
|
+
import "./pi-model-discovery-DadlvsZW.js";
|
|
22
22
|
import "./reply-prefix-Y14LY6Rn.js";
|
|
23
|
-
import "./media-
|
|
23
|
+
import "./media-C7YT4DeU.js";
|
|
24
24
|
import "./path-alias-guards-C76pC928.js";
|
|
25
25
|
import "./fs-safe-BDnJzutp.js";
|
|
26
26
|
import "./diagnostic-DpyvOvs2.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./markdown-tables-
|
|
29
|
-
import "./send-
|
|
30
|
-
import "./fetch-guard-
|
|
31
|
-
import "./outbound-attachment-
|
|
27
|
+
import "./chunk-KCxbJLsV.js";
|
|
28
|
+
import "./markdown-tables-DWUNvLrc.js";
|
|
29
|
+
import "./send-BBYcgXA4.js";
|
|
30
|
+
import "./fetch-guard-BLdujDnt.js";
|
|
31
|
+
import "./outbound-attachment-D6tj5Y5H.js";
|
|
32
32
|
import "./fetch-xfeOsibm.js";
|
|
33
|
-
import "./common-
|
|
34
|
-
import "./commands-registry-
|
|
35
|
-
import "./thread-bindings.state-
|
|
33
|
+
import "./common-DJWrErdE.js";
|
|
34
|
+
import "./commands-registry-DoWdYAJd.js";
|
|
35
|
+
import "./thread-bindings.state-D8kN2X6H.js";
|
|
36
36
|
import "./memory-search-B-0Fwnrp.js";
|
|
37
|
-
import "./manager-
|
|
37
|
+
import "./manager-9see0IX5.js";
|
|
38
38
|
import "./query-expansion-DjJAUtDU.js";
|
|
39
39
|
import "./diagnostic-session-state-CT36_PCE.js";
|
|
40
|
-
import "./wsl-
|
|
40
|
+
import "./wsl-DcM2PgSS.js";
|
|
41
41
|
import "./sandbox-paths-DMnFyOaA.js";
|
|
42
42
|
import "./directory-live-8umGGN7a.js";
|
|
43
43
|
import "./targets-t1hbjHdJ.js";
|
|
44
|
-
import "./send-
|
|
45
|
-
import "./resolve-route-
|
|
44
|
+
import "./send-D3836_UN.js";
|
|
45
|
+
import "./resolve-route-DO0WR4nB.js";
|
|
46
46
|
import "./render-C9LkRUhd.js";
|
|
47
|
-
import "./tables-
|
|
47
|
+
import "./tables-BD7H5ug-.js";
|
|
48
48
|
|
|
49
49
|
export { buildCommandsMessage, buildCommandsMessagePaginated, buildHelpMessage };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { dt as listChannelDocks, lt as normalizeChannelId, t as getActivePluginRegistry } from "./runtime-
|
|
2
|
+
import { dt as listChannelDocks, lt as normalizeChannelId, t as getActivePluginRegistry } from "./runtime-BPyuAmka.js";
|
|
3
3
|
import { C as isPlainObject, o as escapeRegExp } from "./utils-CYk9EKoq.js";
|
|
4
|
-
import { Wt as resolveConfiguredModelRef, Xn as listThinkingLevels, nr as DEFAULT_PROVIDER, tr as DEFAULT_MODEL } from "./config-
|
|
4
|
+
import { Wt as resolveConfiguredModelRef, Xn as listThinkingLevels, nr as DEFAULT_PROVIDER, tr as DEFAULT_MODEL } from "./config-DtqAN2L3.js";
|
|
5
5
|
|
|
6
6
|
//#region src/config/commands.ts
|
|
7
7
|
function resolveAutoDefault(providerId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Hn as DEFAULT_MODEL, Ln as listThinkingLevels, Un as DEFAULT_PROVIDER, wt as resolveConfiguredModelRef } from "./config-
|
|
2
|
+
import { Hn as DEFAULT_MODEL, Ln as listThinkingLevels, Un as DEFAULT_PROVIDER, wt as resolveConfiguredModelRef } from "./config-CgwTaper.js";
|
|
3
3
|
import { C as isPlainObject, o as escapeRegExp } from "./utils-LGKVujSU.js";
|
|
4
|
-
import { a as getActivePluginRegistry, lt as listChannelDocks, st as normalizeChannelId } from "./registry-
|
|
4
|
+
import { a as getActivePluginRegistry, lt as listChannelDocks, st as normalizeChannelId } from "./registry-DNkJsNsz.js";
|
|
5
5
|
|
|
6
6
|
//#region src/auto-reply/thinking.ts
|
|
7
7
|
function normalizeOnOffFullLevel(raw) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
2
|
-
import { a as buildImageResizeSideGrid, g as detectMime, i as IMAGE_REDUCE_QUALITY_STEPS, o as getImageMetadata, s as resizeToJpeg } from "./media-
|
|
2
|
+
import { a as buildImageResizeSideGrid, g as detectMime, i as IMAGE_REDUCE_QUALITY_STEPS, o as getImageMetadata, s as resizeToJpeg } from "./media-Cxw-xLGU.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/media/base64.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-BmpnSVOu.js";
|
|
2
|
-
import { a as buildImageResizeSideGrid, g as detectMime, i as IMAGE_REDUCE_QUALITY_STEPS, o as getImageMetadata, s as resizeToJpeg } from "./media-
|
|
2
|
+
import { a as buildImageResizeSideGrid, g as detectMime, i as IMAGE_REDUCE_QUALITY_STEPS, o as getImageMetadata, s as resizeToJpeg } from "./media-C7YT4DeU.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/media/base64.ts
|
|
@@ -4,7 +4,7 @@ import path from "node:path";
|
|
|
4
4
|
import chalk, { Chalk } from "chalk";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
6
|
import os from "node:os";
|
|
7
|
-
import
|
|
7
|
+
import JSON5 from "json5";
|
|
8
8
|
import { isDeepStrictEqual, promisify } from "node:util";
|
|
9
9
|
import fs$1 from "node:fs/promises";
|
|
10
10
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -433,7 +433,7 @@ function readLoggingConfig() {
|
|
|
433
433
|
try {
|
|
434
434
|
if (!fs.existsSync(configPath)) return;
|
|
435
435
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
436
|
-
const logging =
|
|
436
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
437
437
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
438
438
|
return logging;
|
|
439
439
|
} catch {
|
|
@@ -2795,7 +2795,7 @@ function loadPluginManifest(rootDir) {
|
|
|
2795
2795
|
}
|
|
2796
2796
|
let raw;
|
|
2797
2797
|
try {
|
|
2798
|
-
raw =
|
|
2798
|
+
raw = JSON5.parse(fs.readFileSync(opened.fd, "utf-8"));
|
|
2799
2799
|
} catch (err) {
|
|
2800
2800
|
return {
|
|
2801
2801
|
ok: false,
|
|
@@ -13235,7 +13235,7 @@ const defaultResolver = {
|
|
|
13235
13235
|
resolvedPath,
|
|
13236
13236
|
rootRealDir
|
|
13237
13237
|
}),
|
|
13238
|
-
parseJson: (raw) =>
|
|
13238
|
+
parseJson: (raw) => JSON5.parse(raw)
|
|
13239
13239
|
};
|
|
13240
13240
|
/**
|
|
13241
13241
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -19848,7 +19848,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
19848
19848
|
function normalizeDeps(overrides = {}) {
|
|
19849
19849
|
return {
|
|
19850
19850
|
fs: overrides.fs ?? fs,
|
|
19851
|
-
json5: overrides.json5 ??
|
|
19851
|
+
json5: overrides.json5 ?? JSON5,
|
|
19852
19852
|
env: overrides.env ?? process.env,
|
|
19853
19853
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
19854
19854
|
configPath: overrides.configPath ?? "",
|
|
@@ -19859,11 +19859,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
19859
19859
|
if (env !== process.env) return;
|
|
19860
19860
|
loadDotEnv({ quiet: true });
|
|
19861
19861
|
}
|
|
19862
|
-
function parseConfigJson5(raw, json5
|
|
19862
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
19863
19863
|
try {
|
|
19864
19864
|
return {
|
|
19865
19865
|
ok: true,
|
|
19866
|
-
parsed: json5
|
|
19866
|
+
parsed: json5.parse(raw)
|
|
19867
19867
|
};
|
|
19868
19868
|
} catch (err) {
|
|
19869
19869
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { c as expandHomePrefix, n as resolveConfigPath, o as resolveOAuthPath, r as resolveDefaultConfigCandidates, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-GdhK5mV_.js";
|
|
3
|
-
import { C as isPlainObject$2, c as isRecord$3, h as resolveUserPath, p as resolveConfigDir } from "./utils-LGKVujSU.js";
|
|
3
|
+
import { C as isPlainObject$2, c as isRecord$3, h as resolveUserPath, p as resolveConfigDir, t as CONFIG_DIR } from "./utils-LGKVujSU.js";
|
|
4
4
|
import { d as normalizeChatChannelId, l as CORE_RUNTIME_CHANNEL_IDS, s as CHANNEL_IDS, t as createSubsystemLogger } from "./subsystem-BmpnSVOu.js";
|
|
5
5
|
import { $ as isPathInside$2, B as openBoundaryFileSync, D as resolveFasedAgentPackageRootSync, F as resolveAgentModelFallbackValues, I as resolveAgentModelPrimaryValue, K as runExec, L as toAgentModelListLike, P as MAX_AGENT_MODEL_FALLBACKS, R as canUseBoundaryFileOpen, i as resolveAgentConfig, l as resolveAgentWorkspaceDir, o as resolveAgentEffectiveModelPrimary, u as resolveDefaultAgentId } from "./agent-scope-BuTbywla.js";
|
|
6
6
|
import { t as redactSensitiveText } from "./redact-Ck-wgswc.js";
|
|
@@ -828,6 +828,28 @@ const DEFAULT_MAX_EXTRACTED_BYTES = 512 * 1024 * 1024;
|
|
|
828
828
|
const DEFAULT_MAX_ENTRY_BYTES = 256 * 1024 * 1024;
|
|
829
829
|
const OPEN_WRITE_FLAGS = constants.O_WRONLY | constants.O_CREAT | constants.O_TRUNC | (process.platform !== "win32" && "O_NOFOLLOW" in constants ? constants.O_NOFOLLOW : 0);
|
|
830
830
|
|
|
831
|
+
//#endregion
|
|
832
|
+
//#region src/infra/install-safe-path.ts
|
|
833
|
+
function safeDirName(input) {
|
|
834
|
+
const trimmed = input.trim();
|
|
835
|
+
if (!trimmed) return trimmed;
|
|
836
|
+
return trimmed.replaceAll("/", "__").replaceAll("\\", "__");
|
|
837
|
+
}
|
|
838
|
+
function resolveSafeInstallDir(params) {
|
|
839
|
+
const targetDir = path.join(params.baseDir, safeDirName(params.id));
|
|
840
|
+
const resolvedBase = path.resolve(params.baseDir);
|
|
841
|
+
const resolvedTarget = path.resolve(targetDir);
|
|
842
|
+
const relative = path.relative(resolvedBase, resolvedTarget);
|
|
843
|
+
if (!relative || relative === ".." || relative.startsWith(`..${path.sep}`) || path.isAbsolute(relative)) return {
|
|
844
|
+
ok: false,
|
|
845
|
+
error: params.invalidNameMessage
|
|
846
|
+
};
|
|
847
|
+
return {
|
|
848
|
+
ok: true,
|
|
849
|
+
path: targetDir
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
|
|
831
853
|
//#endregion
|
|
832
854
|
//#region src/security/scan-paths.ts
|
|
833
855
|
function isPathInside$1(basePath, candidatePath) {
|
|
@@ -1122,6 +1144,27 @@ function getPackageManifestMetadata(manifest) {
|
|
|
1122
1144
|
return manifest[MANIFEST_KEY];
|
|
1123
1145
|
}
|
|
1124
1146
|
|
|
1147
|
+
//#endregion
|
|
1148
|
+
//#region src/plugins/install.ts
|
|
1149
|
+
function validatePluginId(pluginId) {
|
|
1150
|
+
if (!pluginId) return "invalid plugin name: missing";
|
|
1151
|
+
if (pluginId === "." || pluginId === "..") return "invalid plugin name: reserved path segment";
|
|
1152
|
+
if (pluginId.includes("/") || pluginId.includes("\\")) return "invalid plugin name: path separators not allowed";
|
|
1153
|
+
return null;
|
|
1154
|
+
}
|
|
1155
|
+
function resolvePluginInstallDir(pluginId, extensionsDir) {
|
|
1156
|
+
const extensionsBase = extensionsDir ? resolveUserPath(extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
1157
|
+
const pluginIdError = validatePluginId(pluginId);
|
|
1158
|
+
if (pluginIdError) throw new Error(pluginIdError);
|
|
1159
|
+
const targetDirResult = resolveSafeInstallDir({
|
|
1160
|
+
baseDir: extensionsBase,
|
|
1161
|
+
id: pluginId,
|
|
1162
|
+
invalidNameMessage: "invalid plugin name: path traversal detected"
|
|
1163
|
+
});
|
|
1164
|
+
if (!targetDirResult.ok) throw new Error(targetDirResult.error);
|
|
1165
|
+
return targetDirResult.path;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1125
1168
|
//#endregion
|
|
1126
1169
|
//#region src/plugins/slots.ts
|
|
1127
1170
|
const DEFAULT_SLOT_BY_KEY = { memory: "memory-core" };
|
|
@@ -22859,4 +22902,4 @@ async function writeConfigFile(cfg, options = {}) {
|
|
|
22859
22902
|
}
|
|
22860
22903
|
|
|
22861
22904
|
//#endregion
|
|
22862
|
-
export { unwrapKnownDispatchWrapperInvocation as $,
|
|
22905
|
+
export { unwrapKnownDispatchWrapperInvocation as $, resolveShellEnvFallbackTimeoutMs as $n, markAuthProfileUsed as $t, setConfigOverride as A, assertSecretInputResolved as An, resolveThinkingDefault as At, normalizeTrustedSafeBinDirs as B, supportsXHighThinking as Bn, resolveModelAuthMode as Bt, isAvatarDataUrl as C, resolveMemorySlotDecision as Cn, parseModelRef as Ct, validateJsonSchemaValue as D, resolveAuthProfileDisplayLabel as Dn, resolveModelRefFromString as Dt, isSupportedLocalAvatarExtension as E, resolveCliName as En, resolveExplicitConfiguredModelRef as Et, unsetConfigValueAtPath as F, formatThinkingLevels as Fn, getApiKeyForModel as Ft, splitCommandChain as G, resolvePluginInstallDir as Gn, normalizeModelCatalogModelId as Gt, analyzeShellCommand as H, DEFAULT_MODEL as Hn, listCurrentModelCatalogRows as Ht, ensurePluginAllowlisted as I, formatXHighModelHint as In, getCustomProviderApiKey as It, resolveAllowlistCandidatePath as J, extractErrorCode as Jn, auth_profiles_exports as Jt, DEFAULT_SAFE_BINS as K, getPackageManifestMetadata as Kn, normalizeModelCatalogProviderId as Kt, getTrustedSafeBinDirs as L, listThinkingLevels as Ln, requireApiKey as Lt, getConfigValueAtPath as M, splitTrailingAuthProfile as Mn, normalizeProviders as Mt, parseConfigPath as N, isOpenAISignInRuntimeModelSupported as Nn, resolveImplicitCopilotProvider as Nt, getConfigOverrides as O, isPrivateNetworkBaseUrl as On, resolveReasoningDefault as Ot, setConfigValueAtPath as P, lookupProviderManifestModelCapability as Pn, resolveImplicitProviders as Pt, isShellWrapperExecutable as Q, getShellPathFromLoginShell as Qn, markAuthProfileFailure as Qt, isTrustedSafeBinPath as R, normalizeThinkLevel as Rn, resolveApiKeyForProvider as Rt, AVATAR_MAX_BYTES as S, resolveEffectiveEnableState as Sn, normalizeProviderId as St, isPathWithinRoot as T, formatCliCommand as Tn, resolveDefaultModelForAgent as Tt, buildEnforcedShellCommand as U, DEFAULT_PROVIDER as Un, buildModelCatalogMergeKey as Ut, validateSafeBinArgv as V, DEFAULT_CONTEXT_TOKENS as Vn, CURRENT_MODEL_PROVIDER_CATALOG as Vt, isWindowsPlatform as W, VERSION as Wn, mergeModelCatalogRowsByAuthority as Wt, extractShellWrapperInlineCommand as X, formatUncaughtError as Xn, getSoonestCooldownExpiry as Xt, resolveCommandResolutionFromArgv as Y, formatErrorMessage as Yn, resolveAuthProfileOrder as Yt, isDispatchWrapperExecutable as Z, isErrno as Zn, isProfileInCooldown as Zt, normalizeScpRemoteHost as _, isPathInside as _n, findNormalizedProviderValue as _t, readConfigFileSnapshotForWrite as a, markAuthProfileGood as an, sanitizeHostExecEnv as ar, applyMergePatch as at, parseDurationMs as b, isPluginRuntimeSessionReadAllowed as bn, modelKey as bt, validateConfigObjectWithPlugins as c, resolveFasedAgentAgentDir as cn, resolveDiscordPreviewStreamMode as ct, resolveTelegramCustomCommands as d, resolveProcessScopedMap as dn, resolveTelegramPreviewStreamMode as dt, resolveProfilesUnavailableReason as en, isTruthyEnvValue as er, unwrapKnownShellMultiplexerInvocation as et, DEFAULT_IMESSAGE_ATTACHMENT_ROOTS as f, isPidAlive as fn, DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH as ft, resolveIMessageRemoteAttachmentRoots as g, discoverFasedAgentPlugins as gn, buildModelAliasIndex as gt, resolveIMessageAttachmentRoots as h, loadPluginManifestRegistry as hn, buildConfiguredAllowlistKeys as ht, readConfigFileSnapshot as i, listProvidersWithStoredCredentials as in, isDangerousHostInheritedEnvVarName as ir, resolveSafeBinProfiles as it, unsetConfigOverride as j, coerceSecretRef as jn, normalizeGoogleModelId as jt, resetConfigOverrides as k, normalizeSecretInput as kn, resolveSubagentSpawnModelSelection as kt, TELEGRAM_COMMAND_NAME_PATTERN as l, resolveFasedAgentDir as ln, resolveSlackNativeStreaming as lt, mergeInboundPathRoots as m, normalizeProviderId$1 as mn, buildAllowedModelSet as mt, loadConfig as n, dedupeProfileIds as nn, isDangerousHostEnvOverrideVarName as nr, SAFE_BIN_PROFILES as nt, resolveConfigSnapshotHash as o, ensureAuthProfileStore as on, resolveOwnerDisplaySetting as or, isSafeExecutableValue as ot, isInboundPathAllowed as p, findNormalizedProviderValue$1 as pn, resolveAgentMaxConcurrent as pt, matchAllowlist as q, MANIFEST_KEY as qn, normalizeProviderCatalogRows as qt, parseConfigJson5 as r, listProfilesForProvider as rn, isDangerousHostEnvVarName as rr, normalizeSafeBinProfileFixtures as rt, writeConfigFile as s, resolveAuthStorePathForDisplay as sn, mapStreamingModeToSlackLegacyDraftStreamMode as st, createConfigIO as t, resolveApiKeyForProfile as tn, parseBooleanValue as tr, splitShellArgs as tt, normalizeTelegramCommandName as u, withFileLock as un, resolveSlackStreamingMode as ut, MODEL_APIS as v, safeStatSync as vn, inferUniqueProviderFromConfiguredModels as vt, isAvatarHttpUrl as w, resolvePluginAdminRpcActionGrant as wn, resolveConfiguredModelRef as wt, parseByteSize as x, normalizePluginsConfig as xn, normalizeModelRef as xt, getBlockedNetworkModeReason as y, applyTestPluginDefaults as yn, isCliProvider as yt, listWritableExplicitTrustedSafeBinDirs as z, resolveModelThinkingCapability as zn, resolveEnvApiKey as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { c as CHANNEL_IDS, f as normalizeChatChannelId, t as createSubsystemLogger, u as CORE_RUNTIME_CHANNEL_IDS } from "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import { c as expandHomePrefix, n as resolveConfigPath, o as resolveOAuthPath, r as resolveDefaultConfigCandidates, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-BEmvSyOV.js";
|
|
4
|
-
import { C as isPlainObject$2, c as isRecord$3, h as resolveUserPath, p as resolveConfigDir } from "./utils-CYk9EKoq.js";
|
|
4
|
+
import { C as isPlainObject$2, c as isRecord$3, h as resolveUserPath, p as resolveConfigDir, t as CONFIG_DIR } from "./utils-CYk9EKoq.js";
|
|
5
5
|
import { D as resolveFasedAgentPackageRootSync, F as canUseBoundaryFileOpen, H as isNotFoundPathError, J as resolveAgentModelFallbackValues, L as openBoundaryFileSync, U as isPathInside$2, W as isSymlinkOpenError, X as toAgentModelListLike, Y as resolveAgentModelPrimaryValue, i as resolveAgentConfig, k as runExec, l as resolveAgentWorkspaceDir, o as resolveAgentEffectiveModelPrimary, q as MAX_AGENT_MODEL_FALLBACKS, u as resolveDefaultAgentId } from "./agent-scope-kIJqg5PA.js";
|
|
6
6
|
import { h as isBlockedObjectKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-HSJ2KQTc.js";
|
|
7
7
|
import { n as redactSensitiveText } from "./redact-CwCz68Mi.js";
|
|
@@ -1472,6 +1472,28 @@ async function extractArchive(params) {
|
|
|
1472
1472
|
}), params.timeoutMs, label);
|
|
1473
1473
|
}
|
|
1474
1474
|
|
|
1475
|
+
//#endregion
|
|
1476
|
+
//#region src/infra/install-safe-path.ts
|
|
1477
|
+
function safeDirName(input) {
|
|
1478
|
+
const trimmed = input.trim();
|
|
1479
|
+
if (!trimmed) return trimmed;
|
|
1480
|
+
return trimmed.replaceAll("/", "__").replaceAll("\\", "__");
|
|
1481
|
+
}
|
|
1482
|
+
function resolveSafeInstallDir(params) {
|
|
1483
|
+
const targetDir = path.join(params.baseDir, safeDirName(params.id));
|
|
1484
|
+
const resolvedBase = path.resolve(params.baseDir);
|
|
1485
|
+
const resolvedTarget = path.resolve(targetDir);
|
|
1486
|
+
const relative = path.relative(resolvedBase, resolvedTarget);
|
|
1487
|
+
if (!relative || relative === ".." || relative.startsWith(`..${path.sep}`) || path.isAbsolute(relative)) return {
|
|
1488
|
+
ok: false,
|
|
1489
|
+
error: params.invalidNameMessage
|
|
1490
|
+
};
|
|
1491
|
+
return {
|
|
1492
|
+
ok: true,
|
|
1493
|
+
path: targetDir
|
|
1494
|
+
};
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1475
1497
|
//#endregion
|
|
1476
1498
|
//#region src/security/scan-paths.ts
|
|
1477
1499
|
function isPathInside$1(basePath, candidatePath) {
|
|
@@ -1766,6 +1788,27 @@ function getPackageManifestMetadata(manifest) {
|
|
|
1766
1788
|
return manifest[MANIFEST_KEY];
|
|
1767
1789
|
}
|
|
1768
1790
|
|
|
1791
|
+
//#endregion
|
|
1792
|
+
//#region src/plugins/install.ts
|
|
1793
|
+
function validatePluginId(pluginId) {
|
|
1794
|
+
if (!pluginId) return "invalid plugin name: missing";
|
|
1795
|
+
if (pluginId === "." || pluginId === "..") return "invalid plugin name: reserved path segment";
|
|
1796
|
+
if (pluginId.includes("/") || pluginId.includes("\\")) return "invalid plugin name: path separators not allowed";
|
|
1797
|
+
return null;
|
|
1798
|
+
}
|
|
1799
|
+
function resolvePluginInstallDir(pluginId, extensionsDir) {
|
|
1800
|
+
const extensionsBase = extensionsDir ? resolveUserPath(extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
1801
|
+
const pluginIdError = validatePluginId(pluginId);
|
|
1802
|
+
if (pluginIdError) throw new Error(pluginIdError);
|
|
1803
|
+
const targetDirResult = resolveSafeInstallDir({
|
|
1804
|
+
baseDir: extensionsBase,
|
|
1805
|
+
id: pluginId,
|
|
1806
|
+
invalidNameMessage: "invalid plugin name: path traversal detected"
|
|
1807
|
+
});
|
|
1808
|
+
if (!targetDirResult.ok) throw new Error(targetDirResult.error);
|
|
1809
|
+
return targetDirResult.path;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1769
1812
|
//#endregion
|
|
1770
1813
|
//#region src/plugins/uninstall.ts
|
|
1771
1814
|
/**
|
|
@@ -23203,4 +23246,4 @@ async function writeConfigFile(cfg, options = {}) {
|
|
|
23203
23246
|
}
|
|
23204
23247
|
|
|
23205
23248
|
//#endregion
|
|
23206
|
-
export { parseConfigPath as $, supportsXHighThinking as $n, resolveImplicitCopilotProvider as $t, TtsAutoSchema as A, acquireFileLock as An, resolveSlackStreamingMode as At, AVATAR_MAX_BYTES as B, resolveAuthProfileDisplayLabel as Bn, modelKey as Bt, BlockStreamingCoalesceSchema as C, listProfilesForProvider as Cn,
|
|
23249
|
+
export { parseConfigPath as $, supportsXHighThinking as $n, resolveImplicitCopilotProvider as $t, TtsAutoSchema as A, acquireFileLock as An, resolveSlackStreamingMode as At, AVATAR_MAX_BYTES as B, resolveAuthProfileDisplayLabel as Bn, modelKey as Bt, BlockStreamingCoalesceSchema as C, listProfilesForProvider as Cn, applyTestPluginDefaults as Cr, normalizeSafeBinProfileFixtures as Ct, MarkdownConfigSchema as D, resolveAuthStorePathForDisplay as Dn, resolveMemorySlotDecision as Dr, mapStreamingModeToSlackLegacyDraftStreamMode as Dt, GroupPolicySchema as E, ensureAuthProfileStore as En, resolveEffectiveEnableState as Er, isSafeExecutableValue as Et, requireOpenAllowFrom as F, normalizeProviderId$1 as Fn, buildConfiguredAllowlistKeys as Ft, isWorkspaceRelativeAvatarPath as G, splitTrailingAuthProfile as Gn, resolveDefaultModelForAgent as Gt, isAvatarHttpUrl as H, normalizeSecretInput as Hn, normalizeProviderId as Ht, MODEL_APIS as I, loadPluginManifestRegistry as In, buildModelAliasIndex as It, getConfigOverrides as J, formatThinkingLevels as Jn, resolveReasoningDefault as Jt, resolveAvatarMime as K, isOpenAISignInRuntimeModelSupported as Kn, resolveExplicitConfiguredModelRef as Kt, getBlockedNetworkModeReason as L, discoverFasedAgentPlugins as Ln, findNormalizedProviderValue as Lt, TtsModeSchema as M, resolveProcessScopedMap as Mn, DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH as Mt, TtsProviderSchema as N, isPidAlive as Nn, resolveAgentMaxConcurrent as Nt, MarkdownTableModeSchema as O, resolveFasedAgentAgentDir as On, resolvePluginAdminRpcActionGrant as Or, resolveDiscordPreviewStreamMode as Ot, normalizeAllowFrom as P, findNormalizedProviderValue$1 as Pn, buildAllowedModelSet as Pt, getConfigValueAtPath as Q, resolveModelThinkingCapability as Qn, normalizeProviders as Qt, parseDurationMs as R, isPathInside as Rn, inferUniqueProviderFromConfiguredModels as Rt, ToolPolicySchema as S, dedupeProfileIds as Sn, parseBooleanValue as Sr, SAFE_BIN_PROFILES as St, DmPolicySchema as T, markAuthProfileGood as Tn, normalizePluginsConfig as Tr, applyMergePatch as Tt, isPathWithinRoot as U, assertSecretInputResolved as Un, parseModelRef as Ut, isAvatarDataUrl as V, isPrivateNetworkBaseUrl as Vn, normalizeModelRef as Vt, isSupportedLocalAvatarExtension as W, coerceSecretRef as Wn, resolveConfiguredModelRef as Wt, setConfigOverride as X, listThinkingLevels as Xn, resolveThinkingDefault as Xt, resetConfigOverrides as Y, formatXHighModelHint as Yn, resolveSubagentSpawnModelSelection as Yt, unsetConfigOverride as Z, normalizeThinkLevel as Zn, normalizeGoogleModelId as Zt, isInboundPathAllowed as _, isProfileInCooldown as _n, sanitizeHostExecEnv as _r, isDispatchWrapperExecutable as _t, readConfigFileSnapshotForWrite as a, resolveEnvApiKey as an, getPackageManifestMetadata as ar, listWritableExplicitTrustedSafeBinDirs as at, resolveIMessageRemoteAttachmentRoots as b, resolveProfilesUnavailableReason as bn, resolveCliName as br, unwrapKnownShellMultiplexerInvocation as bt, validateConfigObjectWithPlugins as c, listCurrentModelCatalogRows as cn, formatErrorMessage as cr, analyzeShellCommand as ct, MSTeamsConfigSchema as d, normalizeModelCatalogModelId as dn, extractArchive as dr, splitCommandChain as dt, resolveImplicitProviders as en, DEFAULT_CONTEXT_TOKENS as er, setConfigValueAtPath as et, SignalConfigSchema as f, normalizeModelCatalogProviderId as fn, getShellPathFromLoginShell as fr, DEFAULT_SAFE_BINS as ft, DEFAULT_IMESSAGE_ATTACHMENT_ROOTS as g, getSoonestCooldownExpiry as gn, isDangerousHostInheritedEnvVarName as gr, extractShellWrapperInlineCommand as gt, resolveTelegramCustomCommands as h, resolveAuthProfileOrder as hn, isDangerousHostEnvVarName as hr, resolveCommandResolutionFromArgv as ht, readConfigFileSnapshot as i, resolveApiKeyForProvider as in, resolvePluginInstallDir as ir, isTrustedSafeBinPath as it, TtsConfigSchema as j, withFileLock as jn, resolveTelegramPreviewStreamMode as jt, ReplyRuntimeConfigSchemaShape as k, resolveFasedAgentDir as kn, resolveSlackNativeStreaming as kt, GoogleChatConfigSchema as l, buildModelCatalogMergeKey as ln, formatUncaughtError as lr, buildEnforcedShellCommand as lt, normalizeTelegramCommandName as m, auth_profiles_exports as mn, isDangerousHostEnvOverrideVarName as mr, resolveAllowlistCandidatePath as mt, loadConfig as n, getCustomProviderApiKey as nn, DEFAULT_PROVIDER as nr, ensurePluginAllowlisted as nt, resolveConfigSnapshotHash as o, resolveModelAuthMode as on, MANIFEST_KEY as or, normalizeTrustedSafeBinDirs as ot, TELEGRAM_COMMAND_NAME_PATTERN as p, normalizeProviderCatalogRows as pn, resolveShellEnvFallbackTimeoutMs as pr, matchAllowlist as pt, validateJsonSchemaValue as q, lookupProviderManifestModelCapability as qn, resolveModelRefFromString as qt, parseConfigJson5 as r, requireApiKey as rn, VERSION as rr, getTrustedSafeBinDirs as rt, writeConfigFile as s, CURRENT_MODEL_PROVIDER_CATALOG as sn, extractErrorCode as sr, validateSafeBinArgv as st, createConfigIO as t, getApiKeyForModel as tn, DEFAULT_MODEL as tr, unsetConfigValueAtPath as tt, IMessageConfigSchema as u, mergeModelCatalogRowsByAuthority as un, isErrno as ur, isWindowsPlatform as ut, mergeInboundPathRoots as v, markAuthProfileFailure as vn, resolveOwnerDisplaySetting as vr, isShellWrapperExecutable as vt, DmConfigSchema as w, listProvidersWithStoredCredentials as wn, isPluginRuntimeSessionReadAllowed as wr, resolveSafeBinProfiles as wt, normalizeScpRemoteHost as x, resolveApiKeyForProfile as xn, isTruthyEnvValue as xr, splitShellArgs as xt, resolveIMessageAttachmentRoots as y, markAuthProfileUsed as yn, formatCliCommand as yr, unwrapKnownDispatchWrapperInvocation as yt, parseByteSize as z, safeStatSync as zn, isCliProvider as zt };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { a as resolveImplicitCopilotProvider, c as resolveFasedAgentDir, d as saveJsonFile, f as formatCliCommand, g as normalizeChatChannelId, h as createSubsystemLogger, i as normalizeProviders, l as resolveProcessScopedMap, m as isTruthyEnvValue, n as DiscordConfigSchema, o as resolveImplicitProviders, p as resolveDefaultAgentId, t as loadConfig, u as loadJsonFile } from "./config-BULEb5QB.js";
|
|
2
2
|
import { A as expandHomePrefix, D as resolveOAuthDir, a as resolveAgentIdFromSessionKey, d as normalizeE164, g as logVerbose, i as normalizeAgentId, j as resolveRequiredHomeDir, k as resolveStateDir, l as formatTerminalLink, o as DEFAULT_ACCOUNT_ID, p as resolveUserPath, s as normalizeAccountId, u as isRecord } from "./retry-CB29XXbz.js";
|
|
3
3
|
import { i as resolveDiscordToken, r as normalizeDiscordToken, t as normalizeDiscordSlug$1 } from "./allow-list-Cgjx0Mc-.js";
|
|
4
|
+
import { createRequire } from "node:module";
|
|
4
5
|
import path from "node:path";
|
|
5
6
|
import fs, { constants } from "node:fs";
|
|
6
7
|
import os from "node:os";
|
|
@@ -10,7 +11,6 @@ import { execFile } from "node:child_process";
|
|
|
10
11
|
import { fileURLToPath } from "node:url";
|
|
11
12
|
import crypto from "node:crypto";
|
|
12
13
|
import "@mariozechner/pi-coding-agent";
|
|
13
|
-
import "file-type";
|
|
14
14
|
import { ChannelType, PermissionFlagsBits, Routes } from "discord-api-types/v10";
|
|
15
15
|
import { RequestClient } from "@buape/carbon";
|
|
16
16
|
import "discord-api-types/payloads/v10";
|
|
@@ -112,6 +112,7 @@ const METHOD_SCOPE_GROUPS = {
|
|
|
112
112
|
"commands.list",
|
|
113
113
|
"tools.catalog",
|
|
114
114
|
"tools.effective",
|
|
115
|
+
"services.capabilities",
|
|
115
116
|
"services.webSearch.providers",
|
|
116
117
|
"services.webSearch.test",
|
|
117
118
|
"tasks.list",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Z as logWarn } from "./agent-scope-BuTbywla.js";
|
|
2
|
-
import { a as resolvePinnedHostnameWithPolicy, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError } from "./ssrf-
|
|
2
|
+
import { a as resolvePinnedHostnameWithPolicy, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError } from "./ssrf-Cce6LubA.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-Dyj5Y_Ss.js";
|
|
4
4
|
import { t as normalizeRequestInitHeadersForFetch } from "./fetch-headers-BTcaUCW6.js";
|
|
5
5
|
import { EnvHttpProxyAgent } from "undici";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { P as logWarn } from "./agent-scope-kIJqg5PA.js";
|
|
2
2
|
import { t as bindAbortRelay } from "./fetch-timeout-l_6RdoMw.js";
|
|
3
3
|
import { t as normalizeRequestInitHeadersForFetch } from "./fetch-headers-my7hgV2G.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher } from "./optional-runtime-dependency-szS49voX.js";
|
|
5
5
|
import { EnvHttpProxyAgent } from "undici";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/net/fetch-guard.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./config-
|
|
1
|
+
import "./config-CgwTaper.js";
|
|
2
2
|
import "./paths-GdhK5mV_.js";
|
|
3
3
|
import "./globals-BtKmaIS3.js";
|
|
4
4
|
import "./utils-LGKVujSU.js";
|
|
@@ -7,30 +7,30 @@ import "./agent-scope-BuTbywla.js";
|
|
|
7
7
|
import "./redact-Ck-wgswc.js";
|
|
8
8
|
import "./github-copilot-token-Djqpy66R.js";
|
|
9
9
|
import "./retry-Cq65ROXv.js";
|
|
10
|
-
import "./registry-
|
|
10
|
+
import "./registry-DNkJsNsz.js";
|
|
11
11
|
import { t as createDiscordActionGate } from "./accounts-BJFheJNv.js";
|
|
12
12
|
import "./accounts-BRbbLNW_.js";
|
|
13
|
-
import "./accounts-
|
|
13
|
+
import "./accounts-BwkH5bTD.js";
|
|
14
14
|
import "./allow-list-CBtbuDI8.js";
|
|
15
15
|
import "./paths-DTurNPnO.js";
|
|
16
|
-
import "./ssrf-
|
|
17
|
-
import "./media-
|
|
16
|
+
import "./ssrf-Cce6LubA.js";
|
|
17
|
+
import "./media-C7YT4DeU.js";
|
|
18
18
|
import "./path-alias-guards-C76pC928.js";
|
|
19
19
|
import "./fs-safe-BDnJzutp.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./markdown-tables-
|
|
22
|
-
import "./fetch-guard-
|
|
20
|
+
import "./chunk-KCxbJLsV.js";
|
|
21
|
+
import "./markdown-tables-DWUNvLrc.js";
|
|
22
|
+
import "./fetch-guard-BLdujDnt.js";
|
|
23
23
|
import "./fetch-xfeOsibm.js";
|
|
24
|
-
import { a as jsonResult, c as readReactionParams, d as readStringParam, l as readStringArrayParam, o as parseAvailableTags, s as readNumberParam } from "./common-
|
|
24
|
+
import { a as jsonResult, c as readReactionParams, d as readStringParam, l as readStringArrayParam, o as parseAvailableTags, s as readNumberParam } from "./common-DJWrErdE.js";
|
|
25
25
|
import { i as withNormalizedTimestamp } from "./date-time-BtRPVcm7.js";
|
|
26
26
|
import { t as assertMediaNotDataUrl } from "./sandbox-paths-DMnFyOaA.js";
|
|
27
27
|
import "./directory-live-8umGGN7a.js";
|
|
28
28
|
import { n as resolveDiscordChannelId } from "./targets-t1hbjHdJ.js";
|
|
29
29
|
import "./render-C9LkRUhd.js";
|
|
30
|
-
import "./tables-
|
|
31
|
-
import "./retry-policy-
|
|
30
|
+
import "./tables-BD7H5ug-.js";
|
|
31
|
+
import "./retry-policy-BLYEgIwP.js";
|
|
32
32
|
import { i as getPresence, t as getGateway } from "./gateway-registry-w_Z-PHGf.js";
|
|
33
|
-
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, D as pinMessageDiscord, E as listThreadsDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, R as kickMemberDiscord, S as deleteMessageDiscord, T as listPinsDiscord, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, a as removeReactionDiscord, et as hasAnyGuildPermissionDiscord, g as sendMessageDiscord, i as removeOwnReactionsDiscord, j as addRoleDiscord, k as searchMessagesDiscord, n as fetchReactionsDiscord, o as sendDiscordComponentMessage, p as readDiscordComponentSpec, q as deleteChannelDiscord, r as reactMessageDiscord, v as sendStickerDiscord, w as fetchMessageDiscord, x as createThreadDiscord, y as sendVoiceMessageDiscord, z as listGuildChannelsDiscord } from "./send-
|
|
33
|
+
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, D as pinMessageDiscord, E as listThreadsDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, R as kickMemberDiscord, S as deleteMessageDiscord, T as listPinsDiscord, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, a as removeReactionDiscord, et as hasAnyGuildPermissionDiscord, g as sendMessageDiscord, i as removeOwnReactionsDiscord, j as addRoleDiscord, k as searchMessagesDiscord, n as fetchReactionsDiscord, o as sendDiscordComponentMessage, p as readDiscordComponentSpec, q as deleteChannelDiscord, r as reactMessageDiscord, v as sendStickerDiscord, w as fetchMessageDiscord, x as createThreadDiscord, y as sendVoiceMessageDiscord, z as listGuildChannelsDiscord } from "./send-C3u-F_8s.js";
|
|
34
34
|
import { PermissionFlagsBits } from "discord-api-types/v10";
|
|
35
35
|
|
|
36
36
|
//#region src/agents/tools/discord-actions-guild.ts
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import "./runtime-
|
|
1
|
+
import "./runtime-BPyuAmka.js";
|
|
2
2
|
import "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import "./globals-B_jjtAje.js";
|
|
4
4
|
import "./paths-BEmvSyOV.js";
|
|
5
5
|
import "./utils-CYk9EKoq.js";
|
|
6
|
-
import "./config-
|
|
6
|
+
import "./config-DtqAN2L3.js";
|
|
7
7
|
import "./agent-scope-kIJqg5PA.js";
|
|
8
8
|
import { t as createDiscordActionGate } from "./accounts-D7_p-Ivb.js";
|
|
9
9
|
import "./accounts-DTdM1xcj.js";
|
|
10
|
-
import "./accounts-
|
|
10
|
+
import "./accounts-RT6y7n3H.js";
|
|
11
11
|
import "./allow-list-C9N6FKeC.js";
|
|
12
12
|
import "./redact-CwCz68Mi.js";
|
|
13
13
|
import "./github-copilot-token-Dgug856m.js";
|
|
14
14
|
import "./retry-DycQ4ymF.js";
|
|
15
15
|
import "./paths-B88DQEK8.js";
|
|
16
|
-
import "./
|
|
17
|
-
import "./fetch-guard-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./media-
|
|
16
|
+
import "./optional-runtime-dependency-szS49voX.js";
|
|
17
|
+
import "./fetch-guard-DTKgMN9f.js";
|
|
18
|
+
import "./chunk-M2d7r-Zt.js";
|
|
19
|
+
import "./media-Cxw-xLGU.js";
|
|
20
20
|
import "./path-alias-guards-CcQroDXQ.js";
|
|
21
21
|
import "./fs-safe-BPYS6-j1.js";
|
|
22
|
-
import "./markdown-tables-
|
|
22
|
+
import "./markdown-tables-CCSD52rA.js";
|
|
23
23
|
import "./fetch-D70syO9t.js";
|
|
24
|
-
import { a as jsonResult, c as readReactionParams, d as readStringParam, l as readStringArrayParam, o as parseAvailableTags, s as readNumberParam } from "./common-
|
|
24
|
+
import { a as jsonResult, c as readReactionParams, d as readStringParam, l as readStringArrayParam, o as parseAvailableTags, s as readNumberParam } from "./common-Cpw-vuuM.js";
|
|
25
25
|
import "./directory-live-BxSH0XXX.js";
|
|
26
26
|
import { n as resolveDiscordChannelId } from "./targets-cA134MEE.js";
|
|
27
27
|
import { t as assertMediaNotDataUrl } from "./sandbox-paths-CkTERCrj.js";
|
|
28
28
|
import { i as withNormalizedTimestamp } from "./date-time-Bo5FVB7G.js";
|
|
29
29
|
import "./render-C9LkRUhd.js";
|
|
30
|
-
import "./tables-
|
|
31
|
-
import "./retry-policy-
|
|
30
|
+
import "./tables-CJE8kB35.js";
|
|
31
|
+
import "./retry-policy-sM01QZT2.js";
|
|
32
32
|
import { i as getPresence, t as getGateway } from "./gateway-registry-CtUjFG3Q.js";
|
|
33
|
-
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, D as pinMessageDiscord, E as listThreadsDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, R as kickMemberDiscord, S as deleteMessageDiscord, T as listPinsDiscord, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, a as removeReactionDiscord, et as hasAnyGuildPermissionDiscord, g as sendMessageDiscord, i as removeOwnReactionsDiscord, j as addRoleDiscord, k as searchMessagesDiscord, n as fetchReactionsDiscord, o as sendDiscordComponentMessage, p as readDiscordComponentSpec, q as deleteChannelDiscord, r as reactMessageDiscord, v as sendStickerDiscord, w as fetchMessageDiscord, x as createThreadDiscord, y as sendVoiceMessageDiscord, z as listGuildChannelsDiscord } from "./send-
|
|
33
|
+
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, D as pinMessageDiscord, E as listThreadsDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, R as kickMemberDiscord, S as deleteMessageDiscord, T as listPinsDiscord, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, a as removeReactionDiscord, et as hasAnyGuildPermissionDiscord, g as sendMessageDiscord, i as removeOwnReactionsDiscord, j as addRoleDiscord, k as searchMessagesDiscord, n as fetchReactionsDiscord, o as sendDiscordComponentMessage, p as readDiscordComponentSpec, q as deleteChannelDiscord, r as reactMessageDiscord, v as sendStickerDiscord, w as fetchMessageDiscord, x as createThreadDiscord, y as sendVoiceMessageDiscord, z as listGuildChannelsDiscord } from "./send-BQXQA81e.js";
|
|
34
34
|
import { PermissionFlagsBits } from "discord-api-types/v10";
|
|
35
35
|
|
|
36
36
|
//#region src/agents/tools/discord-actions-guild.ts
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $t as resolveToolDisplay, A as clearHistoryEntriesIfEnabled, An as DEFAULT_FEDERATION_BASE_URL, Bn as validatePushTestParams, Cn as readRequestBodyWithLimit, Cr as assertOkOrThrowHttpError, Dn as runFederationAutoConnectOnce, Dr as BLUEBUBBLES_GROUP_ACTIONS, E as DEFAULT_GROUP_HISTORY_LIMIT, En as resolveChannelMediaMaxBytes, Er as BLUEBUBBLES_ACTION_NAMES, F as recordInboundSession, G as formatInboundFromLabel, Hn as errorShape, I as removeAckReactionAfterReply, Jn as processLineMessage, Kn as resolveModel, L as shouldAckReaction, Ln as loadOrCreateDeviceIdentity, M as recordPendingHistoryEntry, Mn as resolveAgentPublicOrigin, N as recordPendingHistoryEntryIfEnabled, Nn as resolveFederationBaseUrl, O as buildPendingHistoryContextFromMap, On as startFederationAutoConnect, Or as CHANNEL_MESSAGE_ACTION_NAMES, P as formatDocsLink, Pn as resolveFederationHandle, R as shouldAckReactionForWhatsApp, Rn as publicKeyRawBase64UrlFromPem, S as detectBinary, Sn as readJsonBodyWithLimit, Sr as warnMissingProviderGroupPolicyFallbackOnce, Tr as BLUEBUBBLES_ACTIONS, Ut as optionalStringEnum, Vn as ErrorCodes, Wt as stringEnum, Xn as createReceiptCard, Yn as stripMarkdown, Zn as attachFooterText, _ as resolveDefaultLineAccountId, _n as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, _r as resolveControlCommandGate, _t as getChannelAgentToolMeta, an as getAcpSessionManager, ar as listDevicePairing, b as logInboundDrop, bn as installRequestBodyLimitGuard, br as resolveDefaultGroupPolicy, c as loadModelCatalog, cn as unregisterAcpRuntimeBackend, d as issuePairingChallenge, dr as DM_GROUP_ACCESS_REASON, er as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, f as createTypingCallbacks, fr as readStoreAllowFromForDmPolicy, g as normalizeAccountId$1, h as listLineAccountIds, hr as resolveEffectiveAllowFromLists, ir as approveDevicePairing, j as evictOldHistoryKeys, jn as normalizeHandle, k as clearHistoryEntries, ln as resolveRuntimeOptionsFromMeta, lr as extractToolSend, m as resolveMentionGatingWithBypass, mr as resolveDmGroupAccessWithLists, nr as resolveHeartbeatPrompt, o as resolveStrictAgenticRuntimeMode, on as getAcpRuntimeBackend, or as rejectDevicePairing, ot as createFasedAgentCodingTools, p as resolveMentionGating, pr as resolveDmGroupAccessWithCommandGate, qn as hasMarkdownToConvert, rr as waitForAbortSignal, sn as registerAcpRuntimeBackend, sr as createDedupeCache, st as resolveEffectiveToolPolicy, t as runEmbeddedPiAgent, tr as DEFAULT_HEARTBEAT_EVERY, u as deriveModelMetadata, un as AcpRuntimeError, ur as withTempDownloadPath, v as resolveLineAccount, vn as DEFAULT_WEBHOOK_MAX_BODY_BYTES, vr as GROUP_POLICY_BLOCKED_LABEL, vt as getPluginToolMeta, wn as requestBodyErrorToText, wr as registerPluginHttpRoute, wt as peekSystemEvents, x as logTypingFailure, xn as isRequestBodyLimitError, xr as resolveOpenProviderRuntimeGroupPolicy, y as logAckFailure, yn as RequestBodyLimitError, yr as resolveAllowlistProviderRuntimeGroupPolicy, yt as buildChannelSummary, zn as formatValidationErrors } from "./pi-embedded-runner-
|
|
2
|
-
import { Ct as resolveIMessageGroupToolPolicy, Ft as listIMessageAccountIds, It as resolveDefaultIMessageAccountId, Lt as resolveIMessageAccount, Mt as listSignalAccountIds, Nt as resolveDefaultSignalAccountId, Pt as resolveSignalAccount, St as resolveIMessageGroupRequireMention, Vt as resolveToolsBySender, _t as normalizeSignalMessagingTarget, an as logMutatingAdminRpcAudit, at as resolveMainSessionKey, bt as resolveGoogleChatGroupRequireMention, c as listAgentsForGateway, ct as listChannelPlugins, et as resolveFreshSessionTotalTokens, f as resolveContextTokensForModel, ft as looksLikeHandleOrPhoneTarget, gt as looksLikeSignalTargetId, ln as authorizeOperatorScopesForMethod, mn as listPluginCommands, on as consumeMutatingAdminRpcBudget, pn as getPluginCommandSpecs, pt as trimMessagingTarget, s as classifySessionKey, t as getActivePluginRegistry, tn as getChatChannelMeta, u as resolveSessionModelRef, vn as normalizePluginHttpPath, vt as resolveBlueBubblesGroupRequireMention, x as loadSessionStore, xt as resolveGoogleChatGroupToolPolicy, yt as resolveBlueBubblesGroupToolPolicy } from "./runtime-
|
|
1
|
+
import { $t as resolveToolDisplay, A as clearHistoryEntriesIfEnabled, An as DEFAULT_FEDERATION_BASE_URL, Bn as validatePushTestParams, Cn as readRequestBodyWithLimit, Cr as assertOkOrThrowHttpError, Dn as runFederationAutoConnectOnce, Dr as BLUEBUBBLES_GROUP_ACTIONS, E as DEFAULT_GROUP_HISTORY_LIMIT, En as resolveChannelMediaMaxBytes, Er as BLUEBUBBLES_ACTION_NAMES, F as recordInboundSession, G as formatInboundFromLabel, Hn as errorShape, I as removeAckReactionAfterReply, Jn as processLineMessage, Kn as resolveModel, L as shouldAckReaction, Ln as loadOrCreateDeviceIdentity, M as recordPendingHistoryEntry, Mn as resolveAgentPublicOrigin, N as recordPendingHistoryEntryIfEnabled, Nn as resolveFederationBaseUrl, O as buildPendingHistoryContextFromMap, On as startFederationAutoConnect, Or as CHANNEL_MESSAGE_ACTION_NAMES, P as formatDocsLink, Pn as resolveFederationHandle, R as shouldAckReactionForWhatsApp, Rn as publicKeyRawBase64UrlFromPem, S as detectBinary, Sn as readJsonBodyWithLimit, Sr as warnMissingProviderGroupPolicyFallbackOnce, Tr as BLUEBUBBLES_ACTIONS, Ut as optionalStringEnum, Vn as ErrorCodes, Wt as stringEnum, Xn as createReceiptCard, Yn as stripMarkdown, Zn as attachFooterText, _ as resolveDefaultLineAccountId, _n as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, _r as resolveControlCommandGate, _t as getChannelAgentToolMeta, an as getAcpSessionManager, ar as listDevicePairing, b as logInboundDrop, bn as installRequestBodyLimitGuard, br as resolveDefaultGroupPolicy, c as loadModelCatalog, cn as unregisterAcpRuntimeBackend, d as issuePairingChallenge, dr as DM_GROUP_ACCESS_REASON, er as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, f as createTypingCallbacks, fr as readStoreAllowFromForDmPolicy, g as normalizeAccountId$1, h as listLineAccountIds, hr as resolveEffectiveAllowFromLists, ir as approveDevicePairing, j as evictOldHistoryKeys, jn as normalizeHandle, k as clearHistoryEntries, ln as resolveRuntimeOptionsFromMeta, lr as extractToolSend, m as resolveMentionGatingWithBypass, mr as resolveDmGroupAccessWithLists, nr as resolveHeartbeatPrompt, o as resolveStrictAgenticRuntimeMode, on as getAcpRuntimeBackend, or as rejectDevicePairing, ot as createFasedAgentCodingTools, p as resolveMentionGating, pr as resolveDmGroupAccessWithCommandGate, qn as hasMarkdownToConvert, rr as waitForAbortSignal, sn as registerAcpRuntimeBackend, sr as createDedupeCache, st as resolveEffectiveToolPolicy, t as runEmbeddedPiAgent, tr as DEFAULT_HEARTBEAT_EVERY, u as deriveModelMetadata, un as AcpRuntimeError, ur as withTempDownloadPath, v as resolveLineAccount, vn as DEFAULT_WEBHOOK_MAX_BODY_BYTES, vr as GROUP_POLICY_BLOCKED_LABEL, vt as getPluginToolMeta, wn as requestBodyErrorToText, wr as registerPluginHttpRoute, wt as peekSystemEvents, x as logTypingFailure, xn as isRequestBodyLimitError, xr as resolveOpenProviderRuntimeGroupPolicy, y as logAckFailure, yn as RequestBodyLimitError, yr as resolveAllowlistProviderRuntimeGroupPolicy, yt as buildChannelSummary, zn as formatValidationErrors } from "./pi-embedded-runner-DqDy0MWN.js";
|
|
2
|
+
import { Ct as resolveIMessageGroupToolPolicy, Ft as listIMessageAccountIds, It as resolveDefaultIMessageAccountId, Lt as resolveIMessageAccount, Mt as listSignalAccountIds, Nt as resolveDefaultSignalAccountId, Pt as resolveSignalAccount, St as resolveIMessageGroupRequireMention, Vt as resolveToolsBySender, _t as normalizeSignalMessagingTarget, an as logMutatingAdminRpcAudit, at as resolveMainSessionKey, bt as resolveGoogleChatGroupRequireMention, c as listAgentsForGateway, ct as listChannelPlugins, et as resolveFreshSessionTotalTokens, f as resolveContextTokensForModel, ft as looksLikeHandleOrPhoneTarget, gt as looksLikeSignalTargetId, ln as authorizeOperatorScopesForMethod, mn as listPluginCommands, on as consumeMutatingAdminRpcBudget, pn as getPluginCommandSpecs, pt as trimMessagingTarget, s as classifySessionKey, t as getActivePluginRegistry, tn as getChatChannelMeta, u as resolveSessionModelRef, vn as normalizePluginHttpPath, vt as resolveBlueBubblesGroupRequireMention, x as loadSessionStore, xt as resolveGoogleChatGroupToolPolicy, yt as resolveBlueBubblesGroupToolPolicy } from "./runtime-BPyuAmka.js";
|
|
3
3
|
import { n as stripAnsi, t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
4
4
|
import { g as registerLogTransport, w as resolvePreferredFasedAgentTmpDir } from "./globals-B_jjtAje.js";
|
|
5
5
|
import { s as resolveStateDir } from "./paths-BEmvSyOV.js";
|
|
6
6
|
import { c as isRecord, d as normalizeE164, g as safeParseJson, n as clamp, o as escapeRegExp, t as CONFIG_DIR, y as sleep } from "./utils-CYk9EKoq.js";
|
|
7
|
-
import { A as TtsAutoSchema, An as acquireFileLock, C as BlockStreamingCoalesceSchema, D as MarkdownConfigSchema, E as GroupPolicySchema, F as requireOpenAllowFrom, Fn as normalizeProviderId, M as TtsModeSchema, N as TtsProviderSchema, O as MarkdownTableModeSchema, P as normalizeAllowFrom, R as parseDurationMs, S as ToolPolicySchema, T as DmPolicySchema, Wt as resolveConfiguredModelRef,
|
|
7
|
+
import { A as TtsAutoSchema, An as acquireFileLock, C as BlockStreamingCoalesceSchema, D as MarkdownConfigSchema, E as GroupPolicySchema, F as requireOpenAllowFrom, Fn as normalizeProviderId, M as TtsModeSchema, N as TtsProviderSchema, O as MarkdownTableModeSchema, P as normalizeAllowFrom, R as parseDurationMs, S as ToolPolicySchema, T as DmPolicySchema, Wt as resolveConfiguredModelRef, cr as formatErrorMessage, d as MSTeamsConfigSchema, dr as extractArchive, er as DEFAULT_CONTEXT_TOKENS, f as SignalConfigSchema, i as readConfigFileSnapshot, j as TtsConfigSchema, jn as withFileLock, k as ReplyRuntimeConfigSchemaShape, l as GoogleChatConfigSchema, n as loadConfig, nr as DEFAULT_PROVIDER, rr as VERSION, tr as DEFAULT_MODEL, u as IMessageConfigSchema, w as DmConfigSchema, xr as isTruthyEnvValue, yr as formatCliCommand } from "./config-DtqAN2L3.js";
|
|
8
8
|
import { E as resolveFasedAgentPackageRoot, O as runCommandWithTimeout, a as resolveAgentDir, i as resolveAgentConfig, l as resolveAgentWorkspaceDir, p as resolveSessionAgentId, r as listAgentIds, u as resolveDefaultAgentId } from "./agent-scope-kIJqg5PA.js";
|
|
9
9
|
import { S as parseAgentSessionKey, f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId, s as normalizeAgentId, u as resolveThreadSessionKeys } from "./session-key-HSJ2KQTc.js";
|
|
10
10
|
import "./accounts-D7_p-Ivb.js";
|
|
11
11
|
import "./accounts-DTdM1xcj.js";
|
|
12
|
-
import "./accounts-
|
|
12
|
+
import "./accounts-RT6y7n3H.js";
|
|
13
13
|
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN, t as HEARTBEAT_TOKEN } from "./tokens-CQRTq-NN.js";
|
|
14
14
|
import { C as resolveNestedAllowlistDecision, S as resolveChannelEntryMatchWithFallback, b as normalizeChannelSlug, x as resolveChannelEntryMatch, y as buildChannelKeyCandidates } from "./allow-list-C9N6FKeC.js";
|
|
15
15
|
import { c as formatAllowlistMatchMeta, i as mergeAllowlist, l as resolveAllowlistMatchSimple, o as summarizeMapping, s as isDangerousNameMatchingEnabled } from "./resolve-utils-DrvLA82C.js";
|
|
@@ -19,38 +19,38 @@ import "./retry-DycQ4ymF.js";
|
|
|
19
19
|
import { l as resolveStorePath } from "./paths-B88DQEK8.js";
|
|
20
20
|
import { n as fetchWithTimeout } from "./fetch-timeout-l_6RdoMw.js";
|
|
21
21
|
import { t as normalizeRequestInitHeadersForFetch } from "./fetch-headers-my7hgV2G.js";
|
|
22
|
-
import { a as
|
|
23
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
22
|
+
import { a as isBlockedHostname, n as SsrFBlockedError, o as isBlockedHostnameOrIp, s as isPrivateIpAddress } from "./optional-runtime-dependency-szS49voX.js";
|
|
23
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-DTKgMN9f.js";
|
|
24
24
|
import { t as redactSensitiveUrl } from "./redact-sensitive-url-DK8OUExz.js";
|
|
25
|
-
import { c as normalizeIMessageHandle, d as parseChatTargetPrefixesOrThrow, f as resolveServicePrefixedAllowTarget, g as isNormalizedSenderAllowed, h as isAllowedParsedChatSender, m as formatAllowFromLowercase, p as resolveServicePrefixedTarget, u as parseChatAllowTargetPrefixes } from "./send-
|
|
26
|
-
import { D as formatLocationText, H as readJsonFileWithFallback, O as toLocationContext, U as writeJsonFileAtomically, n as isWSLEnv, r as isWSLSync, t as isWSL2Sync } from "./wsl-
|
|
27
|
-
import { p as chunkTextByBreakResolver } from "./chunk-
|
|
25
|
+
import { c as normalizeIMessageHandle, d as parseChatTargetPrefixesOrThrow, f as resolveServicePrefixedAllowTarget, g as isNormalizedSenderAllowed, h as isAllowedParsedChatSender, m as formatAllowFromLowercase, p as resolveServicePrefixedTarget, u as parseChatAllowTargetPrefixes } from "./send-DRGzRdI3.js";
|
|
26
|
+
import { D as formatLocationText, H as readJsonFileWithFallback, O as toLocationContext, U as writeJsonFileAtomically, n as isWSLEnv, r as isWSLSync, t as isWSL2Sync } from "./wsl-PXrdWitE.js";
|
|
27
|
+
import { p as chunkTextByBreakResolver } from "./chunk-M2d7r-Zt.js";
|
|
28
28
|
import { a as resolveAckReaction, n as createReplyPrefixOptions, t as createReplyPrefixContext } from "./reply-prefix-DqlCqHXT.js";
|
|
29
|
-
import { S as readJsonFile, n as listSkillCommandsForAgents, x as createAsyncLock } from "./skill-commands-
|
|
29
|
+
import { S as readJsonFile, n as listSkillCommandsForAgents, x as createAsyncLock } from "./skill-commands-CkgGmWBS.js";
|
|
30
30
|
import { h as onDiagnosticEvent, m as isDiagnosticsEnabled, p as emitDiagnosticEvent } from "./diagnostic-CuhHqubd.js";
|
|
31
31
|
import "./diagnostic-session-state-Zw87xFym.js";
|
|
32
|
-
import { _ as extensionForMime, g as detectMime, n as loadWebMedia, v as getFileExtension } from "./media-
|
|
33
|
-
import "./pi-model-discovery-
|
|
34
|
-
import {
|
|
32
|
+
import { _ as extensionForMime, g as detectMime, n as loadWebMedia, v as getFileExtension } from "./media-Cxw-xLGU.js";
|
|
33
|
+
import "./pi-model-discovery-yifTIDIn.js";
|
|
34
|
+
import { I as rawDataToString } from "./runtime-dependency-Csswyv5r.js";
|
|
35
35
|
import "./path-alias-guards-CcQroDXQ.js";
|
|
36
36
|
import "./fs-safe-BPYS6-j1.js";
|
|
37
|
-
import "./markdown-tables-
|
|
38
|
-
import "./send-
|
|
39
|
-
import { r as extractOriginalFilename } from "./outbound-attachment-
|
|
37
|
+
import "./markdown-tables-CCSD52rA.js";
|
|
38
|
+
import "./send-D7tr-EsH.js";
|
|
39
|
+
import { r as extractOriginalFilename } from "./outbound-attachment-C-jSFaEB.js";
|
|
40
40
|
import "./fetch-D70syO9t.js";
|
|
41
|
-
import { U as listAcpSessionEntries } from "./thread-bindings.state-
|
|
41
|
+
import { U as listAcpSessionEntries } from "./thread-bindings.state-CNT2vxm3.js";
|
|
42
42
|
import "./memory-search-J6AYuENR.js";
|
|
43
|
-
import "./manager-
|
|
43
|
+
import "./manager-D2kZ0Cps.js";
|
|
44
44
|
import "./query-expansion-VePrajug.js";
|
|
45
|
-
import { a as jsonResult, c as readReactionParams, d as readStringParam, n as createActionGate, s as readNumberParam } from "./common-
|
|
46
|
-
import { m as resolveNativeCommandName, o as listChatCommandsForConfig } from "./commands-registry-
|
|
45
|
+
import { a as jsonResult, c as readReactionParams, d as readStringParam, n as createActionGate, s as readNumberParam } from "./common-Cpw-vuuM.js";
|
|
46
|
+
import { m as resolveNativeCommandName, o as listChatCommandsForConfig } from "./commands-registry-CdT-nl7v.js";
|
|
47
47
|
import "./directory-live-BxSH0XXX.js";
|
|
48
48
|
import "./targets-cA134MEE.js";
|
|
49
49
|
import "./sandbox-paths-CkTERCrj.js";
|
|
50
50
|
import { n as missingTargetError } from "./target-errors-Dn4aykSV.js";
|
|
51
|
-
import "./resolve-route-
|
|
51
|
+
import "./resolve-route-CNhTJG_2.js";
|
|
52
52
|
import "./render-C9LkRUhd.js";
|
|
53
|
-
import "./tables-
|
|
53
|
+
import "./tables-CJE8kB35.js";
|
|
54
54
|
import { t as buildMediaPayload } from "./media-payload-CcW51vQj.js";
|
|
55
55
|
import path from "node:path";
|
|
56
56
|
import chalk from "chalk";
|