@spacebar_ai/moldclaw-core 2026.3.43 → 2026.3.44
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/accounts-5qY-dKca.d.ts +103 -0
- package/dist/accounts-SqdHz2ZP.js +114 -0
- package/dist/acp-cli-E6bcNqiE.js +2093 -0
- package/dist/actions.runtime-BU_XMuLk.js +119 -0
- package/dist/actions.runtime-CY5h8lqH.js +133 -0
- package/dist/agent-scope-lZlwP1At.js +208 -0
- package/dist/agents-C4SkadR1.js +853 -0
- package/dist/agents-RfwqGCzE.js +222 -0
- package/dist/agents.config-CX9CPNfP.js +17 -0
- package/dist/agents.config-DF9Zwn9n.js +121 -0
- package/dist/allow-list-3WSjz1zl.js +81 -0
- package/dist/allowlist-DNbDjFjw.js +142 -0
- package/dist/api-BEOpJ7dR.js +117 -0
- package/dist/audit-CpJz_eu6.js +787 -0
- package/dist/audit-CpfSjvyo.js +54 -0
- package/dist/audit-channel.collect.runtime-BeGotloZ.js +605 -0
- package/dist/audit-channel.runtime-BJDZ7ETt.js +121 -0
- package/dist/audit-extra.async-C2G0mqmk.js +813 -0
- package/dist/audit-membership-runtime-B1FqJsPV.js +162 -0
- package/dist/audit.deep.runtime-DyL9O_sU.js +25 -0
- package/dist/audit.nondeep.runtime-C6jFgJfH.js +832 -0
- package/dist/audit.runtime-Dnlsn23e.js +118 -0
- package/dist/auth-Ch3Rchm4.js +101 -0
- package/dist/auth-choice-CEFSlnLT.js +122 -0
- package/dist/auth-choice-CVCef-eU.js +268 -0
- package/dist/auth-choice-Cez-pXrg.js +507 -0
- package/dist/auth-choice-options-DO78mvPe.js +123 -0
- package/dist/auth-choice-prompt-CUkC7Mmb.js +36 -0
- package/dist/auth-choice-prompt-DCuQRiVl.js +115 -0
- package/dist/auth-choice.apply-helpers-BhbNIV8X.js +66 -0
- package/dist/auth-choice.plugin-providers.runtime-4BhqvEw_.js +119 -0
- package/dist/auth-profiles-smABVXzp.js +128040 -0
- package/dist/auth-profiles.runtime-Cr-ojtTc.js +116 -0
- package/dist/banner-CojBHPWr.js +342 -0
- package/dist/bluebubbles-BnLsj2Fy.d.ts +6 -0
- package/dist/bluebubbles-CVk7M3Bl.js +64 -0
- package/dist/bot-DdyrB2z9.d.ts +478 -0
- package/dist/brave-w4Fo8WZ3.js +24 -0
- package/dist/browser-cli-DWFs3P_i.js +1494 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.d.ts +1 -1
- package/dist/bundled/boot-md/handler.js +35 -35
- package/dist/bundled/bootstrap-extra-files/handler.d.ts +1 -1
- package/dist/bundled/bootstrap-extra-files/handler.js +1 -1
- package/dist/bundled/command-logger/handler.d.ts +1 -1
- package/dist/bundled/session-memory/handler.d.ts +1 -1
- package/dist/bundled/session-memory/handler.js +36 -36
- package/dist/call-Do7wTSr7.js +39 -0
- package/dist/call-gdDAt07d.js +640 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/channel-B26pkce0.js +214 -0
- package/dist/channel-BJHp0AQC.js +352 -0
- package/dist/channel-BKFOv51P.js +4681 -0
- package/dist/channel-BNgpOY8v.js +538 -0
- package/dist/channel-BcQAAo2P.js +226 -0
- package/dist/channel-BvNdnhbx.js +1598 -0
- package/dist/channel-C1Rda3Jd.js +306 -0
- package/dist/channel-C87DG-F7.js +803 -0
- package/dist/channel-CIip0kvZ.js +619 -0
- package/dist/channel-CTPxoT_E2.js +316 -0
- package/dist/channel-CklaCzUG.js +562 -0
- package/dist/channel-CoJnAdLs.js +920 -0
- package/dist/channel-D3tafL1_.js +949 -0
- package/dist/channel-DFMrP2uu.js +542 -0
- package/dist/channel-DMd5cJQe.js +397 -0
- package/dist/channel-Dm34kxAJ.js +207 -0
- package/dist/channel-DmwF9udn.js +1321 -0
- package/dist/channel-account-context-Bjur9nlh.js +103 -0
- package/dist/channel-bGnST659.js +943 -0
- package/dist/channel-hIgbkTZf.js +575 -0
- package/dist/channel-m_TGrDKo.js +497 -0
- package/dist/channel-options-DoUPBMa8.js +50 -0
- package/dist/channel-plugin-ids-TZIY4hFs.js +26 -0
- package/dist/channel-summary-qD54bOBO.js +111 -0
- package/dist/channel.runtime-B0H04Dkk.js +199 -0
- package/dist/channel.runtime-BU1f3NkV.js +418 -0
- package/dist/channel.runtime-Bj1sfLep.js +4011 -0
- package/dist/channel.runtime-BtPAAJc3.js +870 -0
- package/dist/channel.runtime-Bx-10m_j.js +171 -0
- package/dist/channel.runtime-CI_TBywQ.js +179 -0
- package/dist/channel.runtime-CSLj14-Z.js +182 -0
- package/dist/channel.runtime-D-lTSYAd.js +404 -0
- package/dist/channel.runtime-DJqIOSji.js +127 -0
- package/dist/channel.runtime-Ec8aQ9V2.js +241 -0
- package/dist/channel.runtime-ax5a1jBm.js +218 -0
- package/dist/channel.setup-B-ncdYLT.js +9 -0
- package/dist/channel.setup-BY4bh5dm.js +9 -0
- package/dist/channel.setup-BovsdMnL.js +57 -0
- package/dist/channel.setup-CXzXA25h.js +6 -0
- package/dist/channel.setup-DcZUEufN.js +8 -0
- package/dist/channel.setup-E6zceRsE.js +8 -0
- package/dist/channel.setup-Pc7nGbdX.js +11 -0
- package/dist/channels/plugins/actions/discord.d.ts +2 -2
- package/dist/channels/plugins/actions/discord.js +35 -35
- package/dist/channels/plugins/actions/signal.d.ts +1 -1
- package/dist/channels/plugins/actions/signal.js +35 -35
- package/dist/channels/plugins/actions/telegram.d.ts +2 -2
- package/dist/channels/plugins/actions/telegram.js +35 -35
- package/dist/channels/plugins/agent-tools/whatsapp-login.d.ts +3 -3
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +35 -35
- package/dist/channels-CPtE5ND6.js +404 -0
- package/dist/channels-Cj8ZolHI.js +1118 -0
- package/dist/channels-cli-D2sKrntt.js +291 -0
- package/dist/channels-status-issues-CzIHODg2.js +16 -0
- package/dist/clawbot-cli-BcwEDmUn.js +118 -0
- package/dist/cleanup-utils-D0L17RsX.js +96 -0
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-BvGVPKnD.js +154 -0
- package/dist/command-registry-CADQzTAg.js +14 -0
- package/dist/command-registry-ktiJNAJd.js +242 -0
- package/dist/command-secret-gateway-CXp10RTM.js +111 -0
- package/dist/compact.runtime-DyKL-Iar.js +116 -0
- package/dist/completion-cli-Bz4STrpt.js +17 -0
- package/dist/completion-cli-pVda2OFb.js +445 -0
- package/dist/config-BbvDRSYp.js +31 -0
- package/dist/config-CwBv71QC.js +44 -0
- package/dist/config-cli-Y0uXHbOw.js +678 -0
- package/dist/config-guard-BpW5g7JE.js +118 -0
- package/dist/config-validation-B-vLIsbo.js +262 -0
- package/dist/config-value-DT3-5958.js +132 -0
- package/dist/configure-B9U-jCqP.js +1100 -0
- package/dist/configure-BJ3Wrs5b.js +243 -0
- package/dist/control-ui-assets-C1YDYi82.js +232 -0
- package/dist/control-ui-shared-Dm5Dh0Lo.js +29 -0
- package/dist/core-BwKq3krw.js +150 -0
- package/dist/core-hjBwfDsW.d.ts +87 -0
- package/dist/cron-cli-DTDgfoMh.js +639 -0
- package/dist/daemon-cli-C-dkAXR1.js +339 -0
- package/dist/daemon-install-Oy0Q5pMF.js +180 -0
- package/dist/deliver-DNGnDqF9.js +111 -0
- package/dist/deliver-runtime-CCNZIhET.js +111 -0
- package/dist/device-id-cli-XvwZbIyC.js +52 -0
- package/dist/device-identity-IG5DngWM.js +365 -0
- package/dist/devices-cli-DIsxj4xp.js +342 -0
- package/dist/diagnostic-DTPopFvh.js +310 -0
- package/dist/directory-cli-DTSY3Ktr.js +311 -0
- package/dist/directory-config-helpers-DpFcAbmo.d.ts +38 -0
- package/dist/directory.static-CBRAUwUW.js +44 -0
- package/dist/discord-CrgxhEWw.js +114 -0
- package/dist/discovery-DrG7wmAR.js +48 -0
- package/dist/dm-policy-shared-DKoGdUpY.d.ts +95 -0
- package/dist/dns-cli-BJiz6CLK.js +217 -0
- package/dist/docs-cli-Dq2Yi5qO.js +174 -0
- package/dist/doctor-completion-D3GeVcFP.js +90 -0
- package/dist/doctor-config-flow-B1cMjr8h.js +112 -0
- package/dist/doctor-config-flow-BUe7JpV3.js +2437 -0
- package/dist/enable-Bc8bCuVe.js +24 -0
- package/dist/entry.js +4 -4
- package/dist/exec-approvals-cli-kLAev6bP.js +421 -0
- package/dist/extensions/acpx/index.d.ts +1 -1
- package/dist/extensions/amazon-bedrock/index.d.ts +1 -1
- package/dist/extensions/amazon-bedrock/index.js +4 -4
- package/dist/extensions/anthropic/index.d.ts +1 -1
- package/dist/extensions/anthropic/index.js +35 -35
- package/dist/extensions/bluebubbles/index.d.ts +1 -1
- package/dist/extensions/bluebubbles/index.js +39 -39
- package/dist/extensions/bluebubbles/setup-entry.d.ts +2 -2
- package/dist/extensions/bluebubbles/setup-entry.js +39 -39
- package/dist/extensions/brave/index.d.ts +1 -1
- package/dist/extensions/brave/index.js +5 -5
- package/dist/extensions/byteplus/index.d.ts +1 -1
- package/dist/extensions/byteplus/index.js +35 -35
- package/dist/extensions/cloudflare-ai-gateway/index.d.ts +1 -1
- package/dist/extensions/cloudflare-ai-gateway/index.js +36 -36
- package/dist/extensions/copilot-proxy/index.d.ts +1 -1
- package/dist/extensions/copilot-proxy/index.js +4 -4
- package/dist/extensions/device-pair/index.d.ts +1 -1
- package/dist/extensions/device-pair/index.js +4 -4
- package/dist/extensions/diagnostics-otel/index.d.ts +1 -1
- package/dist/extensions/diagnostics-otel/index.js +4 -4
- package/dist/extensions/diffs/index.d.ts +1 -1
- package/dist/extensions/discord/index.d.ts +1 -1
- package/dist/extensions/discord/index.js +40 -40
- package/dist/extensions/discord/setup-entry.d.ts +1 -1
- package/dist/extensions/discord/setup-entry.js +38 -38
- package/dist/extensions/elevenlabs/index.d.ts +1 -1
- package/dist/extensions/elevenlabs/index.js +35 -35
- package/dist/extensions/feishu/index.d.ts +2 -2
- package/dist/extensions/feishu/index.js +40 -40
- package/dist/extensions/feishu/setup-entry.d.ts +2 -2
- package/dist/extensions/feishu/setup-entry.js +37 -37
- package/dist/extensions/firecrawl/index.d.ts +1 -1
- package/dist/extensions/firecrawl/index.js +35 -35
- package/dist/extensions/github-copilot/index.d.ts +1 -1
- package/dist/extensions/github-copilot/index.js +35 -35
- package/dist/extensions/google/index.d.ts +1 -1
- package/dist/extensions/google/index.js +35 -35
- package/dist/extensions/googlechat/index.d.ts +1 -1
- package/dist/extensions/googlechat/index.js +38 -38
- package/dist/extensions/googlechat/setup-entry.d.ts +1 -1
- package/dist/extensions/googlechat/setup-entry.js +38 -38
- package/dist/extensions/huggingface/index.d.ts +1 -1
- package/dist/extensions/huggingface/index.js +35 -35
- package/dist/extensions/imessage/index.d.ts +1 -1
- package/dist/extensions/imessage/index.js +39 -39
- package/dist/extensions/imessage/setup-entry.d.ts +1 -1
- package/dist/extensions/imessage/setup-entry.js +39 -39
- package/dist/extensions/irc/index.d.ts +1 -1
- package/dist/extensions/irc/index.js +38 -38
- package/dist/extensions/irc/setup-entry.d.ts +2 -2
- package/dist/extensions/irc/setup-entry.js +38 -38
- package/dist/extensions/kakao-talkchannel/index.d.ts +1 -1
- package/dist/extensions/kakao-talkchannel/index.js +4 -4
- package/dist/extensions/kilocode/index.d.ts +1 -1
- package/dist/extensions/kilocode/index.js +35 -35
- package/dist/extensions/kimi-coding/index.d.ts +1 -1
- package/dist/extensions/kimi-coding/index.js +35 -35
- package/dist/extensions/line/index.d.ts +1 -1
- package/dist/extensions/line/index.js +37 -37
- package/dist/extensions/line/setup-entry.d.ts +1 -1
- package/dist/extensions/line/setup-entry.js +37 -37
- package/dist/extensions/llm-task/index.d.ts +1 -1
- package/dist/extensions/llm-task/index.js +35 -35
- package/dist/extensions/lobster/index.d.ts +1 -1
- package/dist/extensions/lobster/index.js +4 -4
- package/dist/extensions/matrix/index.d.ts +1 -1
- package/dist/extensions/matrix/index.js +40 -40
- package/dist/extensions/matrix/setup-entry.d.ts +2 -2
- package/dist/extensions/matrix/setup-entry.js +40 -40
- package/dist/extensions/mattermost/index.d.ts +1 -1
- package/dist/extensions/mattermost/index.js +37 -37
- package/dist/extensions/mattermost/setup-entry.d.ts +2 -2
- package/dist/extensions/mattermost/setup-entry.js +37 -37
- package/dist/extensions/memory-core/index.d.ts +1 -1
- package/dist/extensions/memory-core/index.js +4 -4
- package/dist/extensions/memory-lancedb/index.d.ts +1 -1
- package/dist/extensions/memory-lancedb/index.js +4 -4
- package/dist/extensions/microsoft/index.d.ts +1 -1
- package/dist/extensions/microsoft/index.js +35 -35
- package/dist/extensions/minimax/index.d.ts +1 -1
- package/dist/extensions/minimax/index.js +35 -35
- package/dist/extensions/mistral/index.d.ts +1 -1
- package/dist/extensions/mistral/index.js +35 -35
- package/dist/extensions/modelstudio/index.d.ts +1 -1
- package/dist/extensions/modelstudio/index.js +35 -35
- package/dist/extensions/moonshot/index.d.ts +1 -1
- package/dist/extensions/moonshot/index.js +35 -35
- package/dist/extensions/msteams/index.d.ts +1 -1
- package/dist/extensions/msteams/index.js +40 -40
- package/dist/extensions/msteams/setup-entry.d.ts +1 -1
- package/dist/extensions/msteams/setup-entry.js +40 -40
- package/dist/extensions/nextcloud-talk/index.d.ts +1 -1
- package/dist/extensions/nextcloud-talk/index.js +37 -37
- package/dist/extensions/nextcloud-talk/setup-entry.d.ts +2 -2
- package/dist/extensions/nextcloud-talk/setup-entry.js +37 -37
- package/dist/extensions/nostr/index.d.ts +1 -1
- package/dist/extensions/nostr/index.js +37 -37
- package/dist/extensions/nostr/setup-entry.d.ts +1 -1
- package/dist/extensions/nostr/setup-entry.js +37 -37
- package/dist/extensions/nvidia/index.d.ts +1 -1
- package/dist/extensions/nvidia/index.js +4 -4
- package/dist/extensions/ollama/index.d.ts +1 -1
- package/dist/extensions/ollama/index.js +7 -7
- package/dist/extensions/open-prose/index.d.ts +1 -1
- package/dist/extensions/open-prose/index.js +4 -4
- package/dist/extensions/openai/index.d.ts +1 -1
- package/dist/extensions/openai/index.js +35 -35
- package/dist/extensions/opencode/index.d.ts +1 -1
- package/dist/extensions/opencode/index.js +35 -35
- package/dist/extensions/opencode-go/index.d.ts +1 -1
- package/dist/extensions/opencode-go/index.js +35 -35
- package/dist/extensions/openrouter/index.d.ts +1 -1
- package/dist/extensions/openrouter/index.js +35 -35
- package/dist/extensions/openshell/index.d.ts +1 -1
- package/dist/extensions/openshell/index.js +35 -35
- package/dist/extensions/perplexity/index.d.ts +1 -1
- package/dist/extensions/perplexity/index.js +5 -5
- package/dist/extensions/phone-control/index.d.ts +1 -1
- package/dist/extensions/phone-control/index.js +4 -4
- package/dist/extensions/qianfan/index.d.ts +1 -1
- package/dist/extensions/qianfan/index.js +35 -35
- package/dist/extensions/qwen-portal-auth/index.d.ts +1 -1
- package/dist/extensions/qwen-portal-auth/index.js +35 -35
- package/dist/extensions/sglang/index.d.ts +1 -1
- package/dist/extensions/sglang/index.js +35 -35
- package/dist/extensions/signal/index.d.ts +1 -1
- package/dist/extensions/signal/index.js +38 -38
- package/dist/extensions/signal/setup-entry.d.ts +1 -1
- package/dist/extensions/signal/setup-entry.js +38 -38
- package/dist/extensions/slack/index.d.ts +1 -1
- package/dist/extensions/slack/index.js +39 -39
- package/dist/extensions/slack/setup-entry.d.ts +1 -1
- package/dist/extensions/slack/setup-entry.js +38 -38
- package/dist/extensions/synology-chat/index.d.ts +1 -1
- package/dist/extensions/synology-chat/index.js +37 -37
- package/dist/extensions/synology-chat/setup-entry.d.ts +1 -1
- package/dist/extensions/synology-chat/setup-entry.js +37 -37
- package/dist/extensions/synthetic/index.d.ts +1 -1
- package/dist/extensions/synthetic/index.js +35 -35
- package/dist/extensions/talk-voice/index.d.ts +1 -1
- package/dist/extensions/talk-voice/index.js +35 -35
- package/dist/extensions/telegram/index.d.ts +1 -1
- package/dist/extensions/telegram/index.js +38 -38
- package/dist/extensions/telegram/setup-entry.d.ts +1 -1
- package/dist/extensions/telegram/setup-entry.js +37 -37
- package/dist/extensions/thread-ownership/index.d.ts +1 -1
- package/dist/extensions/thread-ownership/index.js +4 -4
- package/dist/extensions/tlon/index.d.ts +1 -1
- package/dist/extensions/tlon/index.js +37 -37
- package/dist/extensions/tlon/setup-entry.d.ts +1 -1
- package/dist/extensions/tlon/setup-entry.js +37 -37
- package/dist/extensions/together/index.d.ts +1 -1
- package/dist/extensions/together/index.js +35 -35
- package/dist/extensions/twitch/index.d.ts +2 -2
- package/dist/extensions/twitch/index.js +37 -37
- package/dist/extensions/venice/index.d.ts +1 -1
- package/dist/extensions/venice/index.js +35 -35
- package/dist/extensions/vercel-ai-gateway/index.d.ts +1 -1
- package/dist/extensions/vercel-ai-gateway/index.js +36 -36
- package/dist/extensions/vllm/index.d.ts +1 -1
- package/dist/extensions/vllm/index.js +35 -35
- package/dist/extensions/voice-call/index.d.ts +1 -1
- package/dist/extensions/voice-call/index.js +35 -35
- package/dist/extensions/volcengine/index.d.ts +1 -1
- package/dist/extensions/volcengine/index.js +35 -35
- package/dist/extensions/whatsapp/index.d.ts +1 -1
- package/dist/extensions/whatsapp/index.js +38 -38
- package/dist/extensions/whatsapp/setup-entry.d.ts +1 -1
- package/dist/extensions/whatsapp/setup-entry.js +38 -38
- package/dist/extensions/xai/index.d.ts +1 -1
- package/dist/extensions/xai/index.js +35 -35
- package/dist/extensions/xiaomi/index.d.ts +1 -1
- package/dist/extensions/xiaomi/index.js +35 -35
- package/dist/extensions/zai/index.d.ts +1 -1
- package/dist/extensions/zai/index.js +35 -35
- package/dist/extensions/zalo/index.d.ts +1 -1
- package/dist/extensions/zalo/index.js +39 -39
- package/dist/extensions/zalo/setup-entry.d.ts +1 -1
- package/dist/extensions/zalo/setup-entry.js +39 -39
- package/dist/extensions/zalouser/index.d.ts +1 -1
- package/dist/extensions/zalouser/index.js +40 -40
- package/dist/extensions/zalouser/setup-entry.d.ts +1 -1
- package/dist/extensions/zalouser/setup-entry.js +40 -40
- package/dist/feishu-fIcnHDTd.d.ts +36 -0
- package/dist/gateway-cli-0c-8h93_.js +26437 -0
- package/dist/gateway-install-token-1PwJvrBY.js +163 -0
- package/dist/gateway-rpc-C0Vk51W7.js +26 -0
- package/dist/gateway-runtime-CBm3CCoA.js +69 -0
- package/dist/git-commit-BTWXFY41.js +177 -0
- package/dist/git-commit-D6GTN5Yt.js +2 -0
- package/dist/googlechat-BQr4xgoZ.js +307 -0
- package/dist/googlechat-BvwsCVKl.d.ts +12 -0
- package/dist/group-access-DpiQnd-G.d.ts +61 -0
- package/dist/health-6yZQGADY.js +113 -0
- package/dist/health-C9DYGyRe.js +570 -0
- package/dist/heartbeat-summary-Dct2lqJj.js +57 -0
- package/dist/help-CtwSApfq.js +81 -0
- package/dist/hooks-9gokOxZ5.d.ts +6 -0
- package/dist/hooks-cli-BegKzHZT.js +1000 -0
- package/dist/hooks-status-Bm_pGORf.js +78 -0
- package/dist/http-registry-D-S6a1Na.d.ts +20 -0
- package/dist/identity-file-Diub2a0t.js +60 -0
- package/dist/image-generation-CbIVzmAR.d.ts +9 -0
- package/dist/imessage-Bgok9kfl.js +31 -0
- package/dist/imessage-VIHePprL.js +115 -0
- package/dist/inbound-reply-dispatch-B53GAGWq.js +71 -0
- package/dist/inbound-reply-dispatch-n7U3qg15.d.ts +72 -0
- package/dist/index.js +2 -2
- package/dist/install-target-oz1pjfHH.js +574 -0
- package/dist/installs-CUFm5V8a.js +532 -0
- package/dist/io-BaBxjB1v.js +9739 -0
- package/dist/io-CgHb1Jld.js +29 -0
- package/dist/irc-CaRKzGvW.js +672 -0
- package/dist/library-C5SNBCMb.js +112 -0
- package/dist/lifecycle-core-Dn8PK6nk.js +382 -0
- package/dist/line/accounts.d.ts +2 -2
- package/dist/line/send.d.ts +1 -1
- package/dist/line/send.js +7 -7
- package/dist/line/template-messages.d.ts +1 -1
- package/dist/line-B5QFpgN_.d.ts +75 -0
- package/dist/line-fePrrQOD.js +530 -0
- package/dist/llm-slug-generator-hKae3XDA.js +67 -0
- package/dist/llm-slug-generator.d.ts +1 -1
- package/dist/llm-slug-generator.js +36 -36
- package/dist/logging-CdisccbY.js +13 -0
- package/dist/logging-LKQSgX1d.js +30 -0
- package/dist/login-qr-C1YWh4nE.js +233 -0
- package/dist/login-qr-WFluMDMb.js +112 -0
- package/dist/logs-cli-CNzOvZ2d.js +256 -0
- package/dist/manager-runtime-DgMhLTkR.js +111 -0
- package/dist/manager.runtime-hUWgpPt2.js +715 -0
- package/dist/manifest-registry-CS_p1OBQ.js +1329 -0
- package/dist/matrix-43_RGLZN.d.ts +68 -0
- package/dist/matrix-CCFxHfxa.js +1269 -0
- package/dist/matrix-DWs_qIkJ.js +1495 -0
- package/dist/mcp-cli-Ci2jvv3s.js +87 -0
- package/dist/media-understanding.runtime-Cdr6iTW6.js +116 -0
- package/dist/memory-cli-LZbyF0Iu.js +111 -0
- package/dist/memory-search-BHhETk6u.js +17 -0
- package/dist/memory-search-tTD5o_rU.js +204 -0
- package/dist/method-scopes-B2ZKSsxQ.js +2452 -0
- package/dist/model-auth-markers-LqZ4qhrZ.d.ts +20 -0
- package/dist/model-picker-CTR5mo4v.js +112 -0
- package/dist/model-picker-DG4z_dBs.js +390 -0
- package/dist/model-picker.runtime-DMQ9Pj9_.js +125 -0
- package/dist/model-selection-bBBxfXdb.js +653 -0
- package/dist/model-suppression.runtime-BVG75tZ7.js +116 -0
- package/dist/models-BjkVLfgw.js +2514 -0
- package/dist/models-ZO01Q4cx.js +118 -0
- package/dist/models-cli-DemdF-bm.js +309 -0
- package/dist/models-config-B2Jja8ua.js +111 -0
- package/dist/models-config.providers.discovery-puxTsH39.d.ts +18 -0
- package/dist/moldclaw-root-Cb6HRlUO.js +92 -0
- package/dist/monitor-BP4idxJD.js +782 -0
- package/dist/monitor-B_eP8Eim.js +772 -0
- package/dist/monitor-CRHYNl5J.js +3468 -0
- package/dist/monitor-Ci1Xg4g3.js +113 -0
- package/dist/monitor-DEodDl3z.js +6823 -0
- package/dist/monitor-DJlNKuMz.js +115 -0
- package/dist/monitor-DvFwDS9w.js +3076 -0
- package/dist/monitor-shared--cEjSf8s.js +444 -0
- package/dist/msteams-CV2a8uE8.js +852 -0
- package/dist/node-cli-Of2g7DSd.js +2503 -0
- package/dist/node-resolve-BYC2FbO2.js +835 -0
- package/dist/nodes-cli-CPHM6Upj.js +1380 -0
- package/dist/nostr-BFKRoOlz.d.ts +7 -0
- package/dist/nostr-lHpcBzz4.js +8744 -0
- package/dist/npm-resolution-kqHN85wB.js +60 -0
- package/dist/oauth-env-CLG8KOrz.js +10 -0
- package/dist/onboard-BON0C360.js +48 -0
- package/dist/onboard-CRkIBgOI.js +589 -0
- package/dist/onboard-DsKI17iq.js +25 -0
- package/dist/onboard-channels-BY3IbBBf.js +1241 -0
- package/dist/onboard-channels-CLKdRxvW.js +205 -0
- package/dist/onboard-custom-BjPrMo_R.js +571 -0
- package/dist/onboard-custom-DqcPiZBN.js +114 -0
- package/dist/onboard-helpers-BkrOY5OE.js +113 -0
- package/dist/onboard-helpers-DiSRTpZC.js +335 -0
- package/dist/onboard-hooks-pzEPZAvl.js +72 -0
- package/dist/onboard-remote-ChyLC6Dk.js +181 -0
- package/dist/onboard-remote-DHmK9ntl.js +117 -0
- package/dist/onboard-search-BgA3jEMW.js +302 -0
- package/dist/onboard-skills-BMo_NvnW.js +133 -0
- package/dist/onboard-skills-Bba-Z2p8.js +117 -0
- package/dist/outbound-media-BHD4aJEX.d.ts +11 -0
- package/dist/outbound-media-DSno0N82.js +11 -0
- package/dist/pairing-access-CzHpaM0R.d.ts +21 -0
- package/dist/pairing-cli-CmklqK0q.js +217 -0
- package/dist/perplexity-CXwMDD3u.js +24 -0
- package/dist/persistent-dedupe-B9vrAf8t.d.ts +26 -0
- package/dist/pi-model-discovery-runtime-BrK7tcaO.js +111 -0
- package/dist/pi-tools.before-tool-call.runtime-C5yLUogH.js +381 -0
- package/dist/plugin-install-C4AWJIFP.js +117 -0
- package/dist/plugin-install-CB3J1hfV.js +184 -0
- package/dist/plugin-install-plan-7itZiegi.js +49 -0
- package/dist/plugin-registry-DX_GFoiz.js +113 -0
- package/dist/plugin-registry-e3cxTtvb.js +49 -0
- package/dist/plugin-sdk/account-resolution.js +35 -35
- package/dist/plugin-sdk/acp-runtime.js +35 -35
- package/dist/plugin-sdk/agent-runtime.js +35 -35
- package/dist/plugin-sdk/bluebubbles.js +37 -37
- package/dist/plugin-sdk/channel-config-helpers.js +35 -35
- package/dist/plugin-sdk/channel-policy.js +35 -35
- package/dist/plugin-sdk/channel-runtime.js +35 -35
- package/dist/plugin-sdk/compat.js +36 -36
- package/dist/plugin-sdk/config-runtime.js +35 -35
- package/dist/plugin-sdk/conversation-runtime.js +35 -35
- package/dist/plugin-sdk/copilot-proxy.js +4 -4
- package/dist/plugin-sdk/core.js +4 -4
- package/dist/plugin-sdk/device-pair.js +4 -4
- package/dist/plugin-sdk/discord.js +35 -35
- package/dist/plugin-sdk/feishu.js +35 -35
- package/dist/plugin-sdk/gateway-runtime.js +10 -10
- package/dist/plugin-sdk/googlechat.js +37 -37
- package/dist/plugin-sdk/image-generation-runtime.js +35 -35
- package/dist/plugin-sdk/image-generation.js +35 -35
- package/dist/plugin-sdk/imessage.js +36 -36
- package/dist/plugin-sdk/index.js +35 -35
- package/dist/plugin-sdk/infra-runtime.js +35 -35
- package/dist/plugin-sdk/irc.js +37 -37
- package/dist/plugin-sdk/line.js +36 -36
- package/dist/plugin-sdk/llm-task.js +35 -35
- package/dist/plugin-sdk/lobster.js +4 -4
- package/dist/plugin-sdk/matrix.js +37 -37
- package/dist/plugin-sdk/mattermost.js +36 -36
- package/dist/plugin-sdk/media-runtime.js +35 -35
- package/dist/plugin-sdk/media-understanding-runtime.js +35 -35
- package/dist/plugin-sdk/media-understanding.js +35 -35
- package/dist/plugin-sdk/memory-lancedb.js +4 -4
- package/dist/plugin-sdk/minimax-portal-auth.js +4 -4
- package/dist/plugin-sdk/msteams.js +38 -38
- package/dist/plugin-sdk/nextcloud-talk.js +36 -36
- package/dist/plugin-sdk/nostr.js +36 -36
- package/dist/plugin-sdk/ollama-setup.js +9 -9
- package/dist/plugin-sdk/open-prose.js +4 -4
- package/dist/plugin-sdk/phone-control.js +4 -4
- package/dist/plugin-sdk/plugin-runtime.js +35 -35
- package/dist/plugin-sdk/provider-auth.js +35 -35
- package/dist/plugin-sdk/provider-models.js +5 -5
- package/dist/plugin-sdk/provider-onboard.js +4 -4
- package/dist/plugin-sdk/provider-setup.js +39 -39
- package/dist/plugin-sdk/provider-stream.js +4 -4
- package/dist/plugin-sdk/provider-usage.js +4 -4
- package/dist/plugin-sdk/qwen-portal-auth.js +35 -35
- package/dist/plugin-sdk/reply-history.js +35 -35
- package/dist/plugin-sdk/reply-runtime.js +35 -35
- package/dist/plugin-sdk/routing.js +3 -3
- package/dist/plugin-sdk/sandbox.js +35 -35
- package/dist/plugin-sdk/security-runtime.js +35 -35
- package/dist/plugin-sdk/self-hosted-provider-setup.js +37 -37
- package/dist/plugin-sdk/setup.js +35 -35
- package/dist/plugin-sdk/signal.js +35 -35
- package/dist/plugin-sdk/slack.js +35 -35
- package/dist/plugin-sdk/speech-runtime.js +35 -35
- package/dist/plugin-sdk/speech.js +35 -35
- package/dist/plugin-sdk/src/secrets/secure-file-store.d.ts +26 -0
- package/dist/plugin-sdk/src/subscription/provider.d.ts +5 -3
- package/dist/plugin-sdk/synology-chat.js +36 -36
- package/dist/plugin-sdk/talk-voice.js +4 -4
- package/dist/plugin-sdk/telegram.js +35 -35
- package/dist/plugin-sdk/text-runtime.js +7 -7
- package/dist/plugin-sdk/thread-ownership.js +4 -4
- package/dist/plugin-sdk/tlon.js +36 -36
- package/dist/plugin-sdk/twitch.js +35 -35
- package/dist/plugin-sdk/voice-call.js +35 -35
- package/dist/plugin-sdk/whatsapp.js +35 -35
- package/dist/plugin-sdk/zalo.js +38 -38
- package/dist/plugin-sdk/zalouser.js +38 -38
- package/dist/plugins/runtime/index.d.ts +1 -1
- package/dist/plugins/runtime/index.js +35 -35
- package/dist/plugins-DF5FaTO0.js +111 -0
- package/dist/plugins-cli-CvTJemqC.js +917 -0
- package/dist/policy-CNXISK_a.js +143 -0
- package/dist/preflight-audio.runtime-RP000oxo.js +116 -0
- package/dist/probe-BkM5pykD.js +21 -0
- package/dist/probe-DKbRTJv5.js +1793 -0
- package/dist/probe-DkrfRsjU.js +47 -0
- package/dist/probe-DpcJ0WeP.js +129 -0
- package/dist/probe-auth-BcNjX8hy.js +40 -0
- package/dist/probe-auth-DhuAb8ls.js +48 -0
- package/dist/probe-wciBj-aL.js +6329 -0
- package/dist/program-C8-p0mW5.js +253 -0
- package/dist/prompt-select-styled-DH0pVoc0.js +2673 -0
- package/dist/provider-api-key-auth.runtime-CAFeIQ1u.js +121 -0
- package/dist/provider-auth-choice-CB_HzdTl.js +126 -0
- package/dist/provider-auth-choice-helpers-hzDkh3f1.js +48 -0
- package/dist/provider-auth-choice-preference-BHCXvNSE.js +189 -0
- package/dist/provider-auth-choice.runtime-Dx4ms2C5.js +123 -0
- package/dist/provider-auth-choices-0KaDNPBQ.js +57 -0
- package/dist/provider-auth-guidance-BaAUiNr_.js +34 -0
- package/dist/provider-auth-result-Bto1bYtS.d.ts +18 -0
- package/dist/provider-models-DxOmeToO.d.ts +867 -0
- package/dist/provider-models-xnyxy6mO.js +2113 -0
- package/dist/provider-ollama-setup-DBYK__ov.d.ts +32 -0
- package/dist/provider-ollama-setup-QzgCxj44.js +314 -0
- package/dist/provider-onboard-B9ionepI.js +139 -0
- package/dist/provider-onboard-CURxJ_UX.d.ts +40 -0
- package/dist/provider-runtime.runtime-4xwmsl5L.js +111 -0
- package/dist/provider-self-hosted-setup-BHd24EDG.js +182 -0
- package/dist/provider-self-hosted-setup-qeY8BYSy.d.ts +61 -0
- package/dist/provider-stream-Chz_EFw3.js +512 -0
- package/dist/provider-usage-C11Q7UwS.js +111 -0
- package/dist/provider-usage-kxemdMp2.js +633 -0
- package/dist/provider-wizard-CanJoxNC.js +152 -0
- package/dist/push-apns-Dsajnm8C.js +1038 -0
- package/dist/pw-ai-DUe4BbH2.js +1867 -0
- package/dist/qmd-manager-CAAFp7qK.js +1570 -0
- package/dist/qr-cli-Bu2jqTPY.js +113 -0
- package/dist/qr-cli-Bu9Z-X48.js +369 -0
- package/dist/reactions-Cpfum4iU.js +281 -0
- package/dist/read-only-account-inspect.discord.runtime-BK0LaMgC.js +116 -0
- package/dist/read-only-account-inspect.slack.runtime-DgKiC5wT.js +116 -0
- package/dist/read-only-account-inspect.telegram.runtime-mxfgFVOU.js +116 -0
- package/dist/redact-snapshot-DD8A4tdd.js +2663 -0
- package/dist/register.agent-DU4FtrU2.js +439 -0
- package/dist/register.backup-8nOYtJqg.js +625 -0
- package/dist/register.configure-DmtecqIH.js +252 -0
- package/dist/register.maintenance-Dir3ulKP.js +574 -0
- package/dist/register.message-Cfl-f3Ju.js +709 -0
- package/dist/register.onboard-Bv7WVzEi.js +192 -0
- package/dist/register.setup-BIyeI8RY.js +212 -0
- package/dist/register.status-health-sessions-C69WQcF4.js +498 -0
- package/dist/register.subclis-B_4KCgTd.js +315 -0
- package/dist/register.subclis-BeXsmgBL.js +13 -0
- package/dist/replies-DdcFUmki.js +110 -0
- package/dist/resolve-channels-DRZqPV5o.js +226 -0
- package/dist/resolve-channels-DxW1kqxA.js +262 -0
- package/dist/resolve-route-DdX-HBVt.js +538 -0
- package/dist/resolve-users-rgCQvkLs.js +143 -0
- package/dist/root-help-QAkoA7GD.js +32 -0
- package/dist/routes-CcJNnwTF.js +7097 -0
- package/dist/rpc-DDUAlBbH.js +67 -0
- package/dist/run-main-D9ci5pn7.js +424 -0
- package/dist/runtime-Bitmi8Er.d.ts +26 -0
- package/dist/runtime-discord-ops.runtime-T4sf7aRB.js +9078 -0
- package/dist/runtime-slack-ops.runtime-BQpP48mC.js +4556 -0
- package/dist/runtime-telegram-ops.runtime-cVO5dqOp.js +133 -0
- package/dist/runtime-whatsapp-login.runtime-DtNx0dSY.js +114 -0
- package/dist/runtime-whatsapp-outbound.runtime-Bw47QbFK.js +117 -0
- package/dist/sandbox-cli-DsFwjbjC.js +535 -0
- package/dist/search-manager-BRAK8fEe.js +16 -0
- package/dist/search-manager-BS5Db0A6.js +386 -0
- package/dist/secrets-cli-D3J46TJp.js +2070 -0
- package/dist/security-cli-B866M9cB.js +575 -0
- package/dist/send-B1pX9_Oc.js +283 -0
- package/dist/send-B2RrLg83.js +100 -0
- package/dist/send-DFnV__Aq.js +1025 -0
- package/dist/send-DZIH6CJt.js +629 -0
- package/dist/send-sl9WnKbW.js +631 -0
- package/dist/server-node-events-BT6egg20.js +506 -0
- package/dist/server-zI_K-D05.js +107 -0
- package/dist/sessions-C8kiAcoJ.js +112 -0
- package/dist/sessions-DLBpp52_.js +218 -0
- package/dist/setup-C7eOzMiC.js +387 -0
- package/dist/setup-CFIMq-Pz.d.ts +37 -0
- package/dist/setup-binary-CcAv8NXz.js +406 -0
- package/dist/setup-browser-C4eRV3h6.js +70 -0
- package/dist/setup-core-BnR486P-.js +143 -0
- package/dist/setup-core-CIswIiu5.js +166 -0
- package/dist/setup-core-CcbcrXXg.js +47 -0
- package/dist/setup-core-nZSw5BSv.js +205 -0
- package/dist/setup-surface-C5iSpT4M.js +490 -0
- package/dist/setup-wizard-helpers-r0J6l8ST.d.ts +203 -0
- package/dist/setup.finalize-adiRfo0U.js +522 -0
- package/dist/setup.gateway-config-BwFWKDfT.js +343 -0
- package/dist/shared-12TimyeF.js +182 -0
- package/dist/shared-9EWO34-k.js +298 -0
- package/dist/shared-B4vUbaRR.js +75 -0
- package/dist/shared-bNWpW3Dd.js +96 -0
- package/dist/shared-lU1y5dvS.js +102 -0
- package/dist/signal-DBlETRu9.js +114 -0
- package/dist/skills-Bio8GwTE.js +20 -0
- package/dist/skills-DE_MXFSN.js +853 -0
- package/dist/skills-cli-BGuW-tKw.js +292 -0
- package/dist/skills-install--rnorIoJ.js +763 -0
- package/dist/skills-status-B08PtBc_.js +21 -0
- package/dist/skills-status-CzM008aB.js +169 -0
- package/dist/slack-C4T53Nc-.js +114 -0
- package/dist/slash-commands.runtime-B7fsD8Be.js +128 -0
- package/dist/slash-dispatch.runtime-t0PAX4vQ.js +141 -0
- package/dist/slash-skill-commands.runtime-DIhPnEfR.js +116 -0
- package/dist/src-DrDirlvw.js +1701 -0
- package/dist/status-Bld14WSA.js +131 -0
- package/dist/status-CgeO4RuH.js +43 -0
- package/dist/status-HlvixAOq.js +606 -0
- package/dist/status-Rom_Lf3c.js +1599 -0
- package/dist/status-TwbMH6Am.js +126 -0
- package/dist/status-json-DMW7cmuK.js +288 -0
- package/dist/status.link-channel-V4LkB6Gq.js +143 -0
- package/dist/status.scan.deps.runtime-BE3X-dcP.js +126 -0
- package/dist/status.scan.runtime-BxVY4mty.js +119 -0
- package/dist/status.summary-CzLM0vVr.js +592 -0
- package/dist/status.summary.runtime-BSBnHZ1Q.js +118 -0
- package/dist/status.update-BxblMS7P.js +77 -0
- package/dist/subagent-orphan-recovery-BpRPryEj.js +307 -0
- package/dist/subagent-registry-runtime-DYYU5p3X.js +111 -0
- package/dist/subscription-CpFdxuFS.js +33 -0
- package/dist/subscription-DaA1urx-.js +102 -0
- package/dist/subscription-cli-Bvto9EmO.js +134 -0
- package/dist/synology-chat-3nwk-Nj0.js +297 -0
- package/dist/system-cli-BvNps8sl.js +94 -0
- package/dist/telegram/audit.d.ts +1 -1
- package/dist/telegram/audit.js +1 -1
- package/dist/telegram/token.d.ts +1 -1
- package/dist/telegram/token.js +35 -35
- package/dist/telegram-RtKXoEsF.js +114 -0
- package/dist/text-chunking-BD5mQe2R.js +84 -0
- package/dist/text-chunking-DDUU_vAF.d.ts +79 -0
- package/dist/tlon-z-kYmJE-.js +433 -0
- package/dist/tui-cli-CzSK08Rh.js +137 -0
- package/dist/tui-wV7R1Tlc.js +3834 -0
- package/dist/types-2H_e7eWT.d.ts +45 -0
- package/dist/types-ZKnGUchG.d.ts +22692 -0
- package/dist/types.base-BFiQZ4J9.d.ts +188 -0
- package/dist/ui-BWVHreeR.js +31 -0
- package/dist/update-D1Wgh1Tj.js +1036 -0
- package/dist/update-cli-CZh99uyY.js +1503 -0
- package/dist/update-offset-store-D5xTdUr0.js +112 -0
- package/dist/update-runner-GbKfoCHs.js +1496 -0
- package/dist/upsert-with-lock-BZU7Le8n.js +33 -0
- package/dist/usage-Czgwvg0h.js +115 -0
- package/dist/web-CMczmL90.js +112 -0
- package/dist/web-shared-B5Q0mIJq.d.ts +45 -0
- package/dist/webhook-request-guards-CsKDhZJr.d.ts +76 -0
- package/dist/webhook-targets-BSmFtesN.js +181 -0
- package/dist/webhook-targets-CjxuEE9C.d.ts +106 -0
- package/dist/webhooks-cli-Wl9y6AWW.js +350 -0
- package/dist/whatsapp-VzRW8MdR.js +114 -0
- package/dist/whatsapp-actions-Cg1Wxv8W.js +167 -0
- package/dist/workspace-DJ_S272u.js +484 -0
- package/dist/workspace-DbZSqjw0.js +289 -0
- package/dist/workspace-cli-D93DLmAh.js +154 -0
- package/dist/workspace-dirs-CGeIPpGN.js +2003 -0
- package/dist/zalo-CK2dlGmu.d.ts +9 -0
- package/dist/zalo-Db7s2boL.js +415 -0
- package/dist/zalouser-Jh5YTJX3.js +30911 -0
- package/extensions/discord/src/monitor/allow-list.ts +8 -1
- package/extensions/discord/src/monitor/message-handler.preflight.ts +4 -1
- package/package.json +1 -1
- package/dist/accounts-CS8U4v8C.js +0 -114
- package/dist/accounts-gLr-Udmt.d.ts +0 -103
- package/dist/acp-cli-BGT0jXcC.js +0 -2093
- package/dist/actions.runtime-BfckTw6c.js +0 -119
- package/dist/actions.runtime-Cl9mBfqH.js +0 -133
- package/dist/agent-scope-C-YmLnnb.js +0 -208
- package/dist/agents-CydD54p8.js +0 -222
- package/dist/agents-DpQsZO6O.js +0 -853
- package/dist/agents.config-XU7IsYE-.js +0 -121
- package/dist/agents.config-ssoQXuvF.js +0 -17
- package/dist/allow-list-Cfn6lmMK.js +0 -81
- package/dist/allowlist-CCYXVpM9.js +0 -142
- package/dist/api-BoXoFKxy.js +0 -117
- package/dist/audit-Bv05N5o9.js +0 -787
- package/dist/audit-CIWW1Aqm.js +0 -54
- package/dist/audit-channel.collect.runtime-Bi7yrdcO.js +0 -605
- package/dist/audit-channel.runtime-C_NDweiW.js +0 -121
- package/dist/audit-extra.async-Dp7OKSXg.js +0 -813
- package/dist/audit-membership-runtime-B8FQ6VtN.js +0 -162
- package/dist/audit.deep.runtime-CXhobL6b.js +0 -25
- package/dist/audit.nondeep.runtime-CrEm3T16.js +0 -832
- package/dist/audit.runtime-CJPKj1Zg.js +0 -118
- package/dist/auth-Byfp0flq.js +0 -101
- package/dist/auth-choice-BgOjdeXN.js +0 -507
- package/dist/auth-choice-CD1Heq0M.js +0 -122
- package/dist/auth-choice-ePNfg0iQ.js +0 -268
- package/dist/auth-choice-options-BlewQWI0.js +0 -123
- package/dist/auth-choice-prompt-BP2b6aXz.js +0 -36
- package/dist/auth-choice-prompt-Cmwl4n97.js +0 -115
- package/dist/auth-choice.apply-helpers-Dq-nxuuX.js +0 -66
- package/dist/auth-choice.plugin-providers.runtime-B23kOUzQ.js +0 -119
- package/dist/auth-profiles-1kPLbBwI.js +0 -127823
- package/dist/auth-profiles.runtime-DAfSjku1.js +0 -116
- package/dist/banner-DeOsobLO.js +0 -342
- package/dist/bluebubbles-BsLGedBM.js +0 -64
- package/dist/bluebubbles-U2sAfO4_.d.ts +0 -6
- package/dist/bot-DW12K3bO.d.ts +0 -478
- package/dist/brave-BoWimrLe.js +0 -24
- package/dist/browser-cli-D_S3wEYE.js +0 -1494
- package/dist/call-ByEzDJ1_.js +0 -640
- package/dist/call-CHCWVg-O.js +0 -39
- package/dist/channel-3VC0oOMu.js +0 -214
- package/dist/channel-B9fCBPiS.js +0 -207
- package/dist/channel-B9q775cM.js +0 -562
- package/dist/channel-BG3UK54j.js +0 -803
- package/dist/channel-BRQAdMML.js +0 -352
- package/dist/channel-BmlLp933.js +0 -1321
- package/dist/channel-By6KvdTG.js +0 -920
- package/dist/channel-C8rRsdf6.js +0 -226
- package/dist/channel-CLEDBbXE.js +0 -943
- package/dist/channel-CMvBAG7o.js +0 -306
- package/dist/channel-CmlxxjHY.js +0 -1598
- package/dist/channel-CqG6_xN0.js +0 -949
- package/dist/channel-DNueHKs92.js +0 -316
- package/dist/channel-DUtyN7BX.js +0 -4681
- package/dist/channel-DWD6GrfZ.js +0 -538
- package/dist/channel-DaRYMYzj.js +0 -619
- package/dist/channel-Dj6BgLp8.js +0 -575
- package/dist/channel-account-context-Ba3u5D21.js +0 -103
- package/dist/channel-crabk6Em.js +0 -542
- package/dist/channel-i8uqQaK2.js +0 -497
- package/dist/channel-options-xljvwHS2.js +0 -50
- package/dist/channel-plugin-ids-DAgknSG4.js +0 -26
- package/dist/channel-summary-dHTMCG75.js +0 -111
- package/dist/channel-xVWQ96Ni.js +0 -397
- package/dist/channel.runtime-B6PoZ4BV.js +0 -182
- package/dist/channel.runtime-BPZmo57e.js +0 -404
- package/dist/channel.runtime-B_1uGR-U.js +0 -199
- package/dist/channel.runtime-BiXnPU0d.js +0 -218
- package/dist/channel.runtime-BpvDc9sv.js +0 -870
- package/dist/channel.runtime-CUua3W80.js +0 -418
- package/dist/channel.runtime-CaCBTd0A.js +0 -179
- package/dist/channel.runtime-D0FfYvUj.js +0 -4011
- package/dist/channel.runtime-DhoJtpvJ.js +0 -241
- package/dist/channel.runtime-Kj9EXNE0.js +0 -127
- package/dist/channel.runtime-r4tPuPyh.js +0 -171
- package/dist/channel.setup-B7d_grfe.js +0 -6
- package/dist/channel.setup-C0vu1fhi.js +0 -9
- package/dist/channel.setup-CAI0FNHj.js +0 -11
- package/dist/channel.setup-CkDVwv5R.js +0 -57
- package/dist/channel.setup-Cpd00YqQ.js +0 -8
- package/dist/channel.setup-DbBz1-WT.js +0 -9
- package/dist/channel.setup-GZnAvD9g.js +0 -8
- package/dist/channels-5H484RSw.js +0 -1118
- package/dist/channels-BnPudfyx.js +0 -404
- package/dist/channels-cli-WIC-QeH_.js +0 -291
- package/dist/channels-status-issues-RDmzovJU.js +0 -16
- package/dist/clawbot-cli-BgutNwf8.js +0 -118
- package/dist/cleanup-utils-DBl1Aij1.js +0 -96
- package/dist/cli-1P7u6zqu.js +0 -154
- package/dist/command-registry-B8jovrws.js +0 -232
- package/dist/command-registry-DtDl1FVm.js +0 -14
- package/dist/command-secret-gateway-BgUo3FxJ.js +0 -111
- package/dist/compact.runtime-CXbXM0AU.js +0 -116
- package/dist/completion-cli-Cik_owAE.js +0 -17
- package/dist/completion-cli-RU3P2RSl.js +0 -445
- package/dist/config-5HUpB1L1.js +0 -31
- package/dist/config-cli-QHaUHoZI.js +0 -433
- package/dist/config-guard-C9Sn3pE-.js +0 -118
- package/dist/config-sW57gztj.js +0 -44
- package/dist/config-validation-5LkjIKNt.js +0 -262
- package/dist/config-value-CtTWALxG.js +0 -132
- package/dist/configure-BmR2TPLf.js +0 -243
- package/dist/configure-DaLN-5xM.js +0 -1100
- package/dist/control-ui-assets-CH3MYmAo.js +0 -232
- package/dist/control-ui-shared-CA77PTml.js +0 -29
- package/dist/core-CvDzLs7B.js +0 -150
- package/dist/core-dPA4nFkn.d.ts +0 -87
- package/dist/cron-cli-tguLpzyq.js +0 -639
- package/dist/daemon-cli-ptosOkL8.js +0 -339
- package/dist/daemon-install-DzU4EnVa.js +0 -180
- package/dist/deliver-DwxFoHM3.js +0 -111
- package/dist/deliver-runtime-DOdDyaPI.js +0 -111
- package/dist/device-id-cli-GopvlxxZ.js +0 -52
- package/dist/device-identity-CRfhC3_s.js +0 -365
- package/dist/devices-cli-ain7ESqU.js +0 -342
- package/dist/diagnostic-D96Xaqrj.js +0 -310
- package/dist/directory-cli-fh1UxGgY.js +0 -311
- package/dist/directory-config-helpers-CpU1oflo.d.ts +0 -38
- package/dist/directory.static-CKjJUNGl.js +0 -44
- package/dist/discord-CflhwDEM.js +0 -114
- package/dist/discovery-x0ZqY4AB.js +0 -48
- package/dist/dm-policy-shared-73A52W6E.d.ts +0 -95
- package/dist/dns-cli-DCHyKjGf.js +0 -217
- package/dist/docs-cli-D3OoqYSP.js +0 -174
- package/dist/doctor-completion-Bq2eP87s.js +0 -90
- package/dist/doctor-config-flow-D8XRG9Ku.js +0 -2437
- package/dist/doctor-config-flow-DGiF1HGc.js +0 -112
- package/dist/enable-0QSF4YGH.js +0 -24
- package/dist/exec-approvals-cli-Bncym0Gd.js +0 -421
- package/dist/feishu-B5JDcyF9.d.ts +0 -36
- package/dist/gateway-cli-DYscsmA-.js +0 -26437
- package/dist/gateway-install-token-CNv17ac9.js +0 -163
- package/dist/gateway-rpc-BGC1Rxvg.js +0 -26
- package/dist/gateway-runtime-D89mSQPB.js +0 -69
- package/dist/git-commit-CeLH5Ozm.js +0 -2
- package/dist/git-commit-DUKRiCP-.js +0 -177
- package/dist/googlechat-BgXeXjd1.js +0 -307
- package/dist/googlechat-De-T7C31.d.ts +0 -12
- package/dist/group-access-Deh1tVNr.d.ts +0 -61
- package/dist/health-BEjzWwaB.js +0 -570
- package/dist/health-FjqrWQL6.js +0 -113
- package/dist/heartbeat-summary-CfdSA9M1.js +0 -57
- package/dist/help-BZeVprq1.js +0 -81
- package/dist/hooks-B5pYs_d7.d.ts +0 -6
- package/dist/hooks-cli-B7uGJs2O.js +0 -1000
- package/dist/hooks-status-CfceaUSg.js +0 -78
- package/dist/http-registry-C-KXqwnj.d.ts +0 -20
- package/dist/identity-file-sshkKKIr.js +0 -60
- package/dist/image-generation-CafM5hZh.d.ts +0 -9
- package/dist/imessage-BcV3WGx_.js +0 -31
- package/dist/imessage-Dhje7Ty-.js +0 -115
- package/dist/inbound-reply-dispatch-C73_7SOl.js +0 -71
- package/dist/inbound-reply-dispatch-DmL0KWLe.d.ts +0 -72
- package/dist/install-target-D7NRhfzc.js +0 -574
- package/dist/installs-Bj6jblqc.js +0 -532
- package/dist/io-CMfWWPXQ.js +0 -9738
- package/dist/io-CV844hAM.js +0 -29
- package/dist/irc-DKi1fDYI.js +0 -672
- package/dist/library-rygTG3oA.js +0 -112
- package/dist/lifecycle-core-BPlvShWY.js +0 -382
- package/dist/line-CGsemKWJ.js +0 -530
- package/dist/line-CKU3ER-n.d.ts +0 -75
- package/dist/llm-slug-generator-DlhVyMqT.js +0 -67
- package/dist/logging-5wu9k6w4.js +0 -30
- package/dist/logging-CxP9suT8.js +0 -13
- package/dist/login-qr-BcDsiwHs.js +0 -233
- package/dist/login-qr-Y8pJ5yV4.js +0 -112
- package/dist/logs-cli-XI9oVXpH.js +0 -256
- package/dist/manager-runtime-DkIlXBhD.js +0 -111
- package/dist/manager.runtime-Q0q2rJCC.js +0 -715
- package/dist/manifest-registry-DAd0SRAP.js +0 -1329
- package/dist/matrix-BI0DBBrG.js +0 -1495
- package/dist/matrix-DiABGjJR.js +0 -1269
- package/dist/matrix-fC6NrFM5.d.ts +0 -68
- package/dist/mcp-cli-BOyn_DLL.js +0 -87
- package/dist/media-understanding.runtime-DjUa7Dka.js +0 -116
- package/dist/memory-cli-CJd_vl-Y.js +0 -111
- package/dist/memory-search-CEEItIFR.js +0 -17
- package/dist/memory-search-Cv1SBrn7.js +0 -204
- package/dist/method-scopes-CQE7-bZ-.js +0 -2452
- package/dist/model-auth-markers-B1bbs9Qd.d.ts +0 -20
- package/dist/model-picker-D6_89XHg.js +0 -112
- package/dist/model-picker-Svaw-APs.js +0 -390
- package/dist/model-picker.runtime-Chi9nV7A.js +0 -125
- package/dist/model-selection-hL8i1Jbs.js +0 -653
- package/dist/model-suppression.runtime-DjWJZ0X-.js +0 -116
- package/dist/models-7qj1dG_W.js +0 -118
- package/dist/models-BPOB_xJF.js +0 -2514
- package/dist/models-cli-DdlOVUjS.js +0 -309
- package/dist/models-config-CBqUS-jX.js +0 -111
- package/dist/models-config.providers.discovery-BKB5JH9M.d.ts +0 -18
- package/dist/moldclaw-root-D6PbhbZk.js +0 -88
- package/dist/monitor-BPYhkEqF.js +0 -782
- package/dist/monitor-BuTcQ24j.js +0 -3468
- package/dist/monitor-CuXvNhFh.js +0 -113
- package/dist/monitor-D-TqSIHF.js +0 -6823
- package/dist/monitor-DRSgo9u2.js +0 -3076
- package/dist/monitor-DcHch39z.js +0 -772
- package/dist/monitor-DsHBMrXp.js +0 -115
- package/dist/monitor-shared-CL8T4gt1.js +0 -444
- package/dist/msteams-7FMwTvQG.js +0 -852
- package/dist/node-cli-BCjaSCZM.js +0 -2503
- package/dist/node-resolve-D5Hvcgyx.js +0 -835
- package/dist/nodes-cli-Dd_SNbkt.js +0 -1380
- package/dist/nostr-D8scBiYq.d.ts +0 -7
- package/dist/nostr-DBTFTxKs.js +0 -8744
- package/dist/npm-resolution-CYfb3MHG.js +0 -60
- package/dist/oauth-env-zPt5RywA.js +0 -10
- package/dist/onboard-BEFQQeig.js +0 -25
- package/dist/onboard-CJHNyxJh.js +0 -48
- package/dist/onboard-D_3UeLEN.js +0 -589
- package/dist/onboard-channels-B_JL0Djc.js +0 -1241
- package/dist/onboard-channels-CqZzHt2C.js +0 -205
- package/dist/onboard-custom-CER3Ggbq.js +0 -571
- package/dist/onboard-custom-bNRdGECb.js +0 -114
- package/dist/onboard-helpers-BK0Hsb7Y.js +0 -335
- package/dist/onboard-helpers-CXZ5RPoR.js +0 -113
- package/dist/onboard-hooks-1NsxEDjH.js +0 -72
- package/dist/onboard-remote-DuKhC_7W.js +0 -117
- package/dist/onboard-remote-OwRcDuB3.js +0 -181
- package/dist/onboard-search-Cy8dOq2W.js +0 -302
- package/dist/onboard-skills-D5phRa6r.js +0 -117
- package/dist/onboard-skills-c9qWCNe9.js +0 -133
- package/dist/outbound-media-CgNYEQWb.d.ts +0 -11
- package/dist/outbound-media-DYRO2vTD.js +0 -11
- package/dist/pairing-access-Dsiu5Mvl.d.ts +0 -21
- package/dist/pairing-cli-BOnv0TYn.js +0 -217
- package/dist/perplexity-EZwC3y2b.js +0 -24
- package/dist/persistent-dedupe-DMLOqJ23.d.ts +0 -26
- package/dist/pi-model-discovery-runtime-BToY3A6K.js +0 -111
- package/dist/pi-tools.before-tool-call.runtime-D_acPtld.js +0 -381
- package/dist/plugin-install-CgJpSjYd.js +0 -184
- package/dist/plugin-install-Cl1A4EF6.js +0 -117
- package/dist/plugin-install-plan-Dc2Z4DeU.js +0 -49
- package/dist/plugin-registry-B1UaWrQD.js +0 -49
- package/dist/plugin-registry-Cy8biwnn.js +0 -113
- package/dist/plugins-CXwvg50F.js +0 -111
- package/dist/plugins-cli-Uvzp2aYV.js +0 -917
- package/dist/policy-DsMBbEe7.js +0 -143
- package/dist/preflight-audio.runtime-hWsZIYvc.js +0 -116
- package/dist/probe-CNsSf1Uf.js +0 -6329
- package/dist/probe-CqOIrPhb.js +0 -47
- package/dist/probe-DH6gDw-h.js +0 -129
- package/dist/probe-DM16PLf4.js +0 -21
- package/dist/probe-DvAEEWYr.js +0 -1793
- package/dist/probe-auth-COfgCble.js +0 -48
- package/dist/probe-auth-I_5TX1Eh.js +0 -40
- package/dist/program-Dz80sgTU.js +0 -253
- package/dist/prompt-select-styled-wQehwFxK.js +0 -2673
- package/dist/provider-api-key-auth.runtime-BR9GU4ya.js +0 -121
- package/dist/provider-auth-choice-CdhA84kr.js +0 -126
- package/dist/provider-auth-choice-helpers-kabp_0zA.js +0 -48
- package/dist/provider-auth-choice-preference-se3zAM_2.js +0 -189
- package/dist/provider-auth-choice.runtime-BMc8-xNQ.js +0 -123
- package/dist/provider-auth-choices-CYsCViGi.js +0 -57
- package/dist/provider-auth-guidance-CMjUWlNf.js +0 -34
- package/dist/provider-auth-result-Cw6qIhO-.d.ts +0 -18
- package/dist/provider-models-BCId_Lfu.js +0 -2113
- package/dist/provider-models-Ok-DrSiY.d.ts +0 -867
- package/dist/provider-ollama-setup-B6XJZ0So.js +0 -314
- package/dist/provider-ollama-setup-lGDdTl0b.d.ts +0 -32
- package/dist/provider-onboard-CSPi7jOK.d.ts +0 -40
- package/dist/provider-onboard-Ca0TaNud.js +0 -139
- package/dist/provider-runtime.runtime-DwwkHw_7.js +0 -111
- package/dist/provider-self-hosted-setup-BEKLVGpj.js +0 -182
- package/dist/provider-self-hosted-setup-Df91By-J.d.ts +0 -61
- package/dist/provider-stream-DrUD69ai.js +0 -512
- package/dist/provider-usage-BgKHCnjr.js +0 -111
- package/dist/provider-usage-D8EZpFz9.js +0 -633
- package/dist/provider-wizard-DMdb-zj_.js +0 -152
- package/dist/push-apns-BPH6d4VV.js +0 -1038
- package/dist/pw-ai-DttfldtL.js +0 -1867
- package/dist/qmd-manager-CybcDUfk.js +0 -1570
- package/dist/qr-cli-8NcmJ8Ft.js +0 -369
- package/dist/qr-cli-DWe0Our3.js +0 -113
- package/dist/reactions-D6N0LR16.js +0 -281
- package/dist/read-only-account-inspect.discord.runtime-CqUWTRfl.js +0 -116
- package/dist/read-only-account-inspect.slack.runtime-9-jpln3q.js +0 -116
- package/dist/read-only-account-inspect.telegram.runtime-EKPI1D7n.js +0 -116
- package/dist/redact-snapshot-DwJEIVk9.js +0 -2663
- package/dist/register.agent-D3YdDirP.js +0 -439
- package/dist/register.backup-dR27qCuo.js +0 -625
- package/dist/register.configure-BjFhkkka.js +0 -252
- package/dist/register.maintenance-DiMQJIOa.js +0 -574
- package/dist/register.message-CdZsKYH1.js +0 -709
- package/dist/register.onboard-B0rV1eaO.js +0 -192
- package/dist/register.setup-wKMvohzo.js +0 -212
- package/dist/register.status-health-sessions-BJ68m6pt.js +0 -498
- package/dist/register.subclis-CnnrWt2a.js +0 -315
- package/dist/register.subclis-lSvTkC6z.js +0 -13
- package/dist/replies-BABt9b48.js +0 -110
- package/dist/resolve-channels-BqZFl2Ux.js +0 -262
- package/dist/resolve-channels-DjQLXb7B.js +0 -226
- package/dist/resolve-route-CSHDsa_m.js +0 -538
- package/dist/resolve-users-BG6HaSR5.js +0 -143
- package/dist/root-help-ohmaCyC_.js +0 -32
- package/dist/routes-4k2kpvoT.js +0 -7097
- package/dist/rpc-Cnwn4Q6L.js +0 -67
- package/dist/run-main-VYlacKA0.js +0 -424
- package/dist/runtime-D61jzMiI.d.ts +0 -26
- package/dist/runtime-discord-ops.runtime-DafrU-rI.js +0 -9078
- package/dist/runtime-slack-ops.runtime-CdXBKXwd.js +0 -4556
- package/dist/runtime-telegram-ops.runtime-B12sF7gE.js +0 -133
- package/dist/runtime-whatsapp-login.runtime-CqEudH37.js +0 -114
- package/dist/runtime-whatsapp-outbound.runtime-D5m2qyn-.js +0 -117
- package/dist/sandbox-cli-CHJiEWXB.js +0 -535
- package/dist/search-manager-BtNC3-i_.js +0 -16
- package/dist/search-manager-C7J7B3_a.js +0 -386
- package/dist/secrets-cli-C6yIWBbN.js +0 -2070
- package/dist/security-cli-BVu9BkjD.js +0 -575
- package/dist/send-BSreC7rr.js +0 -631
- package/dist/send-BsLHQG_B.js +0 -1025
- package/dist/send-BuNhp8PH.js +0 -283
- package/dist/send-DOCswVar.js +0 -100
- package/dist/send-Dl0LLErk.js +0 -629
- package/dist/server-node-events-Bq2067EG.js +0 -506
- package/dist/server-y38L7N5H.js +0 -107
- package/dist/sessions-BV8gXURR.js +0 -112
- package/dist/sessions-dl1Kc-Ci.js +0 -218
- package/dist/setup-BSPXdMuK.d.ts +0 -37
- package/dist/setup-DGszQH0_.js +0 -387
- package/dist/setup-binary-C17YnmA8.js +0 -406
- package/dist/setup-browser-CPx-nEsr.js +0 -70
- package/dist/setup-core-BByHN1ME.js +0 -143
- package/dist/setup-core-C0KPlBmL.js +0 -47
- package/dist/setup-core-Cq37G6of.js +0 -166
- package/dist/setup-core-uO84_Y75.js +0 -205
- package/dist/setup-surface-BEMi7Rmb.js +0 -490
- package/dist/setup-wizard-helpers-Ck9wDR0b.d.ts +0 -203
- package/dist/setup.finalize-BzPBa8zW.js +0 -522
- package/dist/setup.gateway-config-DdwkF-8e.js +0 -343
- package/dist/shared-BCw4SKjB.js +0 -96
- package/dist/shared-CjNzsULP.js +0 -75
- package/dist/shared-Cu1BE7ZE.js +0 -298
- package/dist/shared-DSClmyUn.js +0 -182
- package/dist/shared-DyJdGH6y.js +0 -102
- package/dist/signal-Dyv4NZsB.js +0 -114
- package/dist/skills-CbB5b27M.js +0 -853
- package/dist/skills-CnfI7Szw.js +0 -20
- package/dist/skills-cli-CavB1f_3.js +0 -292
- package/dist/skills-install-B1OBdgd0.js +0 -763
- package/dist/skills-status-B3gAmIbW.js +0 -169
- package/dist/skills-status-DrHhFgU9.js +0 -21
- package/dist/slack-BRzqnoAz.js +0 -114
- package/dist/slash-commands.runtime-BK88kgds.js +0 -128
- package/dist/slash-dispatch.runtime-COGywwJE.js +0 -141
- package/dist/slash-skill-commands.runtime-Ti4brxgh.js +0 -116
- package/dist/src-DUR6OQxI.js +0 -1701
- package/dist/status-C6dgQY9a.js +0 -131
- package/dist/status-CNK0Q7QH.js +0 -606
- package/dist/status-DBcX0DSC.js +0 -43
- package/dist/status-DKgFgbwv.js +0 -1599
- package/dist/status-Wn5lhNAc.js +0 -126
- package/dist/status-json-D2EkWqAl.js +0 -288
- package/dist/status.link-channel-D3ULIdEa.js +0 -143
- package/dist/status.scan.deps.runtime-BsjWTAm4.js +0 -126
- package/dist/status.scan.runtime-D4HbzROD.js +0 -119
- package/dist/status.summary-C3YxPrDK.js +0 -592
- package/dist/status.summary.runtime-DAkXPSaK.js +0 -118
- package/dist/status.update-B4NnN9P1.js +0 -77
- package/dist/subagent-orphan-recovery-QiQEBv36.js +0 -307
- package/dist/subagent-registry-runtime-BJatPQFK.js +0 -111
- package/dist/subscription-BhZORXN9.js +0 -100
- package/dist/subscription-QEUjQRMv.js +0 -33
- package/dist/subscription-cli-HrULlAgc.js +0 -134
- package/dist/synology-chat-DB76GWMN.js +0 -297
- package/dist/system-cli-D8jDwWuL.js +0 -94
- package/dist/telegram-BHiiqKkQ.js +0 -114
- package/dist/text-chunking-Baonm9Lu.js +0 -84
- package/dist/text-chunking-DzB11ONk.d.ts +0 -79
- package/dist/tlon-DLESxNgD.js +0 -433
- package/dist/tui-C75zi2Cl.js +0 -3834
- package/dist/tui-cli-DFwx5e6i.js +0 -137
- package/dist/types-BKldC9YN.d.ts +0 -22692
- package/dist/types-MeyueBE0.d.ts +0 -45
- package/dist/types.base-Cw0-zIvE.d.ts +0 -188
- package/dist/ui-B55NOIB6.js +0 -31
- package/dist/update--ojavYQ4.js +0 -1036
- package/dist/update-cli-Cvj5aWYM.js +0 -1503
- package/dist/update-offset-store-upatuWwX.js +0 -112
- package/dist/update-runner-DHkY_-76.js +0 -1496
- package/dist/upsert-with-lock-C171GLaR.js +0 -33
- package/dist/usage-N3bxnbmt.js +0 -115
- package/dist/web-RdvT7gKa.js +0 -112
- package/dist/web-shared-C2qHVxw1.d.ts +0 -45
- package/dist/webhook-request-guards-CosLyl01.d.ts +0 -76
- package/dist/webhook-targets-Bfnag-du.js +0 -181
- package/dist/webhook-targets-DP_EkQa4.d.ts +0 -106
- package/dist/webhooks-cli-ZpnXrq7G.js +0 -350
- package/dist/whatsapp-DNTAyZHt.js +0 -114
- package/dist/whatsapp-actions-o1zKQzKZ.js +0 -167
- package/dist/workspace-CpWi5wPr.js +0 -479
- package/dist/workspace-Ii7aRS7c.js +0 -289
- package/dist/workspace-dirs-x10McA9t.js +0 -2003
- package/dist/zalo-C9OQRYRw.d.ts +0 -9
- package/dist/zalo-zm_bYCKg.js +0 -415
- package/dist/zalouser-CvVEUvc5.js +0 -30911
- /package/dist/{account-id-B3YSn4hl.d.ts → account-id-B8ce6G_4.d.ts} +0 -0
- /package/dist/{acpx-CnNv70m2.d.ts → acpx-Ci50I9T2.d.ts} +0 -0
- /package/dist/{agent-media-payload-DE2pEcsz.d.ts → agent-media-payload-en-gS5p6.d.ts} +0 -0
- /package/dist/{allow-from-DPpHnT2A.d.ts → allow-from-cMeQ47Ot.d.ts} +0 -0
- /package/dist/{allowlist-resolution-CLFiZ6nE.d.ts → allowlist-resolution-DoAWbfXV.d.ts} +0 -0
- /package/dist/{bluebubbles-Duhu-Jer.d.ts → bluebubbles-C6yYmUl0.d.ts} +0 -0
- /package/dist/{boolean-param-BhFjB3gp.d.ts → boolean-param-CdO2TFTk.d.ts} +0 -0
- /package/dist/{channel-config-schema-DnnVMdjR.d.ts → channel-config-schema-Chp38wel.d.ts} +0 -0
- /package/dist/{channel-policy-Baq-Z06b.d.ts → channel-policy-g2h6AbYQ.d.ts} +0 -0
- /package/dist/{chat-type-DpiBgwuG.d.ts → chat-type-BLt59pPT.d.ts} +0 -0
- /package/dist/{command-format-vi4xq8e8.d.ts → command-format-BDJC05Jp.d.ts} +0 -0
- /package/dist/{diffs-DK7fVSDo.d.ts → diffs-D_iNKCyn.d.ts} +0 -0
- /package/dist/{directory-runtime-BTLPaysA.d.ts → directory-runtime-DhMex6HY.d.ts} +0 -0
- /package/dist/{exec-C01wtBHu.d.ts → exec-pjfUY4KM.d.ts} +0 -0
- /package/dist/{gaxios-fetch-compat-wZ38b3w3.js → gaxios-fetch-compat-B_vtINdV.js} +0 -0
- /package/dist/{history-CwXuP2TW.d.ts → history-aqSS5VGQ.d.ts} +0 -0
- /package/dist/{inbound-envelope-SggrBs9m.d.ts → inbound-envelope-C5hWuZod.d.ts} +0 -0
- /package/dist/{index-apAZHsDo.d.ts → index-DXVQFYGX.d.ts} +0 -0
- /package/dist/{json-store-r75IZGk9.d.ts → json-store-UnqQ5aV3.d.ts} +0 -0
- /package/dist/{keyed-async-queue-DHIr7yNe.d.ts → keyed-async-queue-guucpLw3.d.ts} +0 -0
- /package/dist/{links-HeQ3r_L0.d.ts → links-Bar0meEK.d.ts} +0 -0
- /package/dist/{markdown-to-line-CDb4Jy3V.d.ts → markdown-to-line-D8uH_KOj.d.ts} +0 -0
- /package/dist/{mattermost-DtCsxpgg.d.ts → mattermost-xl7jAFJL.d.ts} +0 -0
- /package/dist/{net-BATPDwdQ.d.ts → net-rGOKGds6.d.ts} +0 -0
- /package/dist/{nextcloud-talk-Bb2wHOwp.d.ts → nextcloud-talk-De2CZ9dV.d.ts} +0 -0
- /package/dist/{oauth-utils-u567CLT0.d.ts → oauth-utils-DzN1AlEH.d.ts} +0 -0
- /package/dist/{parse-finite-number-l3tNlrZh.d.ts → parse-finite-number-odgyqhi0.d.ts} +0 -0
- /package/dist/{provider-usage.types-C6061OVN.d.ts → provider-usage.types-EDE9o-H_.d.ts} +0 -0
- /package/dist/{reply-history-BDsFnZFl.d.ts → reply-history-CVuU31xe.d.ts} +0 -0
- /package/dist/{reply-payload-CCvM4W9u.d.ts → reply-payload-CHkpBYwL.d.ts} +0 -0
- /package/dist/{request-url-C54l4-xC.d.ts → request-url-DHisbiHY.d.ts} +0 -0
- /package/dist/{run-command-D3RqWcHu.d.ts → run-command-y0Cndsb1.d.ts} +0 -0
- /package/dist/{secret-input-schema-BLBt-NAP.d.ts → secret-input-schema-b1vpYDQN.d.ts} +0 -0
- /package/dist/{session-key-BQ2-bR-9.d.ts → session-key-DTHQl57f.d.ts} +0 -0
- /package/dist/{ssh-config-C4mcH9Ly.js → ssh-config-hEHBfU2_.js} +0 -0
- /package/dist/{testing-DLkhGsoz.d.ts → testing-DszuZXgK.d.ts} +0 -0
- /package/dist/{thinking-DRkjX18p.d.ts → thinking-IwXTGSeT.d.ts} +0 -0
- /package/dist/{tool-send-CMMD1uDu.d.ts → tool-send-DWHRmKpz.d.ts} +0 -0
- /package/dist/{vllm-defaults-CcGuf4hL.d.ts → vllm-defaults-CrxZgE6-.d.ts} +0 -0
- /package/dist/{wait-Daog8bxM.d.ts → wait-wDWw_MTI.d.ts} +0 -0
- /package/dist/{webhook-memory-guards-C5MrExwT.d.ts → webhook-memory-guards-DreORuJy.d.ts} +0 -0
- /package/dist/{windows-spawn-j2l-dqu8.d.ts → windows-spawn-BIzH92x2.d.ts} +0 -0
- /package/dist/{zod-schema.agent-runtime-krMrBnIn.d.ts → zod-schema.agent-runtime-CP2rmis3.d.ts} +0 -0
- /package/dist/{zod-schema.core-BNDieZDZ.d.ts → zod-schema.core-Foi1tYwi.d.ts} +0 -0
|
@@ -1,1118 +0,0 @@
|
|
|
1
|
-
import "./redact-fatrROh9.js";
|
|
2
|
-
import "./errors-DOJWZqNo.js";
|
|
3
|
-
import "./unhandled-rejections-CTvNvnT0.js";
|
|
4
|
-
import { o as getResolvedLoggerSettings } from "./logger-BFfIIIKH.js";
|
|
5
|
-
import "./paths-D6AgsMTU.js";
|
|
6
|
-
import "./tmp-moldclaw-dir-DWF-d8qD.js";
|
|
7
|
-
import { r as theme } from "./theme-BSXzMzAA.js";
|
|
8
|
-
import { t as danger } from "./globals-DESrFYmC.js";
|
|
9
|
-
import { n as defaultRuntime } from "./runtime-_tQz41uA.js";
|
|
10
|
-
import "./ansi-BPhP6LBZ.js";
|
|
11
|
-
import "./subsystem-CPmDTJ2P.js";
|
|
12
|
-
import "./boolean-B6zcAynR.js";
|
|
13
|
-
import "./env-D42cffog.js";
|
|
14
|
-
import "./warning-filter-B1UOeM0G.js";
|
|
15
|
-
import "./utils-C7ykRPCQ.js";
|
|
16
|
-
import { t as formatDocsLink } from "./links-BcahUP5U.js";
|
|
17
|
-
import "./setup-binary-C17YnmA8.js";
|
|
18
|
-
import { $C as hasResolvedCredentialValue, Aw as moveSingleAccountChannelSectionToDefaultAccount, E as normalizeChannelId, Fw as listChannelPluginCatalogEntries, MT as resolveChannelDefaultAccountId, Ol as loadProviderUsageSummary, QC as hasConfiguredUnavailableCredentialStatus, T as listChannelPlugins, TE as loadAuthProfileStore, hu as resolveMessageChannelSelection, jT as parseOptionalDelimitedEntries, kl as formatUsageReportLines, w as getChannelPlugin, yu as resolveCommandSecretRefsViaGateway } from "./auth-profiles-1kPLbBwI.js";
|
|
19
|
-
import "./model-selection-hL8i1Jbs.js";
|
|
20
|
-
import { m as resolveDefaultAgentId, p as resolveAgentWorkspaceDir } from "./agent-scope-C-YmLnnb.js";
|
|
21
|
-
import { n as normalizeAccountId } from "./account-id-BuyZMNja.js";
|
|
22
|
-
import "./boundary-file-read-tPYh_8fH.js";
|
|
23
|
-
import "./logger-BGzLUitz.js";
|
|
24
|
-
import "./exec-CvEtXqTZ.js";
|
|
25
|
-
import "./workspace-CpWi5wPr.js";
|
|
26
|
-
import { c as loadConfig, f as readConfigFileSnapshot, y as writeConfigFile } from "./io-CMfWWPXQ.js";
|
|
27
|
-
import "./host-env-security-DQ2i_W12.js";
|
|
28
|
-
import "./safe-text-Cnulee_z.js";
|
|
29
|
-
import "./version-T8nMYUnU.js";
|
|
30
|
-
import "./env-substitution-68cyvF5h.js";
|
|
31
|
-
import "./config-state-h5jUoHya.js";
|
|
32
|
-
import "./network-mode-BtWXzwYn.js";
|
|
33
|
-
import "./registry-C1pRrsQl.js";
|
|
34
|
-
import "./manifest-registry-DAd0SRAP.js";
|
|
35
|
-
import "./ip-C4YAIpr4.js";
|
|
36
|
-
import "./zod-schema.core-DvwgNmpd.js";
|
|
37
|
-
import "./config-sW57gztj.js";
|
|
38
|
-
import "./audit-fs-CMb-YUHX.js";
|
|
39
|
-
import "./resolve-PSlwZjg3.js";
|
|
40
|
-
import "./provider-web-search-CcUC9ktE.js";
|
|
41
|
-
import "./text-runtime-Cfq-Uyx0.js";
|
|
42
|
-
import "./workspace-dirs-x10McA9t.js";
|
|
43
|
-
import "./config-BwkGZjD5.js";
|
|
44
|
-
import { t as formatCliCommand } from "./command-format-C_z0Ru-7.js";
|
|
45
|
-
import "./tailnet-fFTz5Twr.js";
|
|
46
|
-
import "./net-K181nxTH.js";
|
|
47
|
-
import "./credentials-D-5Pb-aZ.js";
|
|
48
|
-
import "./routes-4k2kpvoT.js";
|
|
49
|
-
import "./frontmatter-Cgg0ICvh.js";
|
|
50
|
-
import "./env-overrides-DBQl3LRc.js";
|
|
51
|
-
import "./path-alias-guards-BtSO7sk7.js";
|
|
52
|
-
import "./skills-CbB5b27M.js";
|
|
53
|
-
import "./ports-Ca74cFb2.js";
|
|
54
|
-
import "./ports-lsof-CoiADo0p.js";
|
|
55
|
-
import "./ssh-tunnel-DsY-9yao.js";
|
|
56
|
-
import "./image-ops-Ck_D_vpe.js";
|
|
57
|
-
import "./fs-safe-CRXFoBmh.js";
|
|
58
|
-
import "./mime-DGFQe4XX.js";
|
|
59
|
-
import "./server-middleware-Djfoa1s0.js";
|
|
60
|
-
import "./message-channel-DFE4FuE_.js";
|
|
61
|
-
import "./resolve-route-CSHDsa_m.js";
|
|
62
|
-
import "./internal-hooks-83AcmxP3.js";
|
|
63
|
-
import "./lazy-runtime-BoGB4usD.js";
|
|
64
|
-
import "./config-schema-BNU4GQh_.js";
|
|
65
|
-
import "./method-scopes-CQE7-bZ-.js";
|
|
66
|
-
import "./session-cost-usage-DWgQk6XT.js";
|
|
67
|
-
import "./paths-ApLcu1Uu.js";
|
|
68
|
-
import "./routing-DQ-fpTaA.js";
|
|
69
|
-
import "./send-BuNhp8PH.js";
|
|
70
|
-
import "./node-resolve-D5Hvcgyx.js";
|
|
71
|
-
import "./provider-stream-DrUD69ai.js";
|
|
72
|
-
import "./identity-file-sshkKKIr.js";
|
|
73
|
-
import "./provider-models-BCId_Lfu.js";
|
|
74
|
-
import "./secret-file-p1IhQzwJ.js";
|
|
75
|
-
import "./logging-Dy7UYzIN.js";
|
|
76
|
-
import "./runtime-env-BlEtPF6b.js";
|
|
77
|
-
import "./registry-BFMbkmgR.js";
|
|
78
|
-
import "./provider-onboard-Ca0TaNud.js";
|
|
79
|
-
import "./model-definitions-Cyyzm6Kr.js";
|
|
80
|
-
import "./usage-N3bxnbmt.js";
|
|
81
|
-
import "./device-identity-CRfhC3_s.js";
|
|
82
|
-
import "./auth-Byfp0flq.js";
|
|
83
|
-
import "./subscription-BhZORXN9.js";
|
|
84
|
-
import "./diagnostic-D96Xaqrj.js";
|
|
85
|
-
import "./message-hook-mappers-CeiHXgSQ.js";
|
|
86
|
-
import "./json-store--7cBPxTG.js";
|
|
87
|
-
import { n as callGateway } from "./call-ByEzDJ1_.js";
|
|
88
|
-
import "./multimodal-BJBBn_4F.js";
|
|
89
|
-
import "./memory-search-Cv1SBrn7.js";
|
|
90
|
-
import "./query-expansion-D_Mm5Hhi.js";
|
|
91
|
-
import "./search-manager-C7J7B3_a.js";
|
|
92
|
-
import "./core-CvDzLs7B.js";
|
|
93
|
-
import "./issue-format-B0SI57Es.js";
|
|
94
|
-
import "./logging-CxP9suT8.js";
|
|
95
|
-
import "./note-dOl5kPAy.js";
|
|
96
|
-
import "./state-paths-DsMoTg25.js";
|
|
97
|
-
import "./config-value-CtTWALxG.js";
|
|
98
|
-
import { n as getChannelsCommandSecretTargetIds } from "./command-secret-targets-BFF4x_RB.js";
|
|
99
|
-
import "./brave-BoWimrLe.js";
|
|
100
|
-
import "./provider-usage-D8EZpFz9.js";
|
|
101
|
-
import "./perplexity-EZwC3y2b.js";
|
|
102
|
-
import "./restart-stale-pids-CPF1_61W.js";
|
|
103
|
-
import "./delivery-queue-BOf5wYIc.js";
|
|
104
|
-
import { n as formatTimeAgo } from "./format-relative-B1Jfwsqe.js";
|
|
105
|
-
import "./pairing-token-bu1e6z6X.js";
|
|
106
|
-
import "./accounts-J2OhhhQi.js";
|
|
107
|
-
import "./process-runtime-D27SftX_.js";
|
|
108
|
-
import "./audit-CIWW1Aqm.js";
|
|
109
|
-
import "./cli-runtime-DTCHPjCi.js";
|
|
110
|
-
import "./cli-utils-BCuSS4l6.js";
|
|
111
|
-
import "./help-format-BFzPm_8V.js";
|
|
112
|
-
import { n as withProgress } from "./progress-Cwq59vgZ.js";
|
|
113
|
-
import "./gateway-runtime-D89mSQPB.js";
|
|
114
|
-
import { n as buildReadOnlySourceChannelAccountSnapshot, t as buildChannelAccountSnapshot } from "./status-DBcX0DSC.js";
|
|
115
|
-
import { t as collectChannelStatusIssues } from "./channels-status-issues-RDmzovJU.js";
|
|
116
|
-
import { t as parseLogLine } from "./parse-log-line-yNpbRbdK.js";
|
|
117
|
-
import { t as createClackPrompter } from "./clack-prompter-yY7QJAil.js";
|
|
118
|
-
import { i as describeBinding, n as applyAgentBindings, t as requireValidConfigSnapshot } from "./config-validation-5LkjIKNt.js";
|
|
119
|
-
import { t as isCatalogChannelInstalled } from "./discovery-x0ZqY4AB.js";
|
|
120
|
-
import fs from "node:fs/promises";
|
|
121
|
-
//#region src/commands/channels/add-mutators.ts
|
|
122
|
-
function applyAccountName(params) {
|
|
123
|
-
const accountId = normalizeAccountId(params.accountId);
|
|
124
|
-
const apply = (params.plugin ?? getChannelPlugin(params.channel))?.setup?.applyAccountName;
|
|
125
|
-
return apply ? apply({
|
|
126
|
-
cfg: params.cfg,
|
|
127
|
-
accountId,
|
|
128
|
-
name: params.name
|
|
129
|
-
}) : params.cfg;
|
|
130
|
-
}
|
|
131
|
-
function applyChannelAccountConfig(params) {
|
|
132
|
-
const accountId = normalizeAccountId(params.accountId);
|
|
133
|
-
const apply = (params.plugin ?? getChannelPlugin(params.channel))?.setup?.applyAccountConfig;
|
|
134
|
-
if (!apply) return params.cfg;
|
|
135
|
-
return apply({
|
|
136
|
-
cfg: params.cfg,
|
|
137
|
-
accountId,
|
|
138
|
-
input: params.input
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
//#endregion
|
|
142
|
-
//#region src/commands/channels/shared.ts
|
|
143
|
-
async function requireValidConfig(runtime = defaultRuntime, secretResolution) {
|
|
144
|
-
const cfg = await requireValidConfigSnapshot(runtime);
|
|
145
|
-
if (!cfg) return null;
|
|
146
|
-
const { resolvedConfig, diagnostics } = await resolveCommandSecretRefsViaGateway({
|
|
147
|
-
config: cfg,
|
|
148
|
-
commandName: secretResolution?.commandName ?? "channels",
|
|
149
|
-
targetIds: getChannelsCommandSecretTargetIds(),
|
|
150
|
-
mode: secretResolution?.mode
|
|
151
|
-
});
|
|
152
|
-
for (const entry of diagnostics) runtime.log(`[secrets] ${entry}`);
|
|
153
|
-
return resolvedConfig;
|
|
154
|
-
}
|
|
155
|
-
function formatAccountLabel(params) {
|
|
156
|
-
const base = params.accountId || "default";
|
|
157
|
-
if (params.name?.trim()) return `${base} (${params.name.trim()})`;
|
|
158
|
-
return base;
|
|
159
|
-
}
|
|
160
|
-
const channelLabel = (channel) => {
|
|
161
|
-
return getChannelPlugin(channel)?.meta.label ?? channel;
|
|
162
|
-
};
|
|
163
|
-
function formatChannelAccountLabel(params) {
|
|
164
|
-
const channelText = channelLabel(params.channel);
|
|
165
|
-
const accountText = formatAccountLabel({
|
|
166
|
-
accountId: params.accountId,
|
|
167
|
-
name: params.name
|
|
168
|
-
});
|
|
169
|
-
return `${params.channelStyle ? params.channelStyle(channelText) : channelText} ${params.accountStyle ? params.accountStyle(accountText) : accountText}`;
|
|
170
|
-
}
|
|
171
|
-
function shouldUseWizard(params) {
|
|
172
|
-
return params?.hasFlags === false;
|
|
173
|
-
}
|
|
174
|
-
//#endregion
|
|
175
|
-
//#region src/commands/channels/add.ts
|
|
176
|
-
function resolveCatalogChannelEntry(raw, cfg) {
|
|
177
|
-
const trimmed = raw.trim().toLowerCase();
|
|
178
|
-
if (!trimmed) return;
|
|
179
|
-
return listChannelPluginCatalogEntries({ workspaceDir: cfg ? resolveAgentWorkspaceDir(cfg, resolveDefaultAgentId(cfg)) : void 0 }).find((entry) => {
|
|
180
|
-
if (entry.id.toLowerCase() === trimmed) return true;
|
|
181
|
-
return (entry.meta.aliases ?? []).some((alias) => alias.trim().toLowerCase() === trimmed);
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
async function channelsAddCommand(opts, runtime = defaultRuntime, params) {
|
|
185
|
-
const cfg = await requireValidConfig(runtime);
|
|
186
|
-
if (!cfg) return;
|
|
187
|
-
let nextConfig = cfg;
|
|
188
|
-
if (shouldUseWizard(params)) {
|
|
189
|
-
const [{ buildAgentSummaries }, { setupChannels }] = await Promise.all([import("./agents.config-ssoQXuvF.js"), import("./onboard-channels-CqZzHt2C.js")]);
|
|
190
|
-
const prompter = createClackPrompter();
|
|
191
|
-
let selection = [];
|
|
192
|
-
const accountIds = {};
|
|
193
|
-
const resolvedPlugins = /* @__PURE__ */ new Map();
|
|
194
|
-
await prompter.intro("Channel setup");
|
|
195
|
-
let nextConfig = await setupChannels(cfg, runtime, prompter, {
|
|
196
|
-
allowDisable: false,
|
|
197
|
-
allowSignalInstall: true,
|
|
198
|
-
promptAccountIds: true,
|
|
199
|
-
onSelection: (value) => {
|
|
200
|
-
selection = value;
|
|
201
|
-
},
|
|
202
|
-
onAccountId: (channel, accountId) => {
|
|
203
|
-
accountIds[channel] = accountId;
|
|
204
|
-
},
|
|
205
|
-
onResolvedPlugin: (channel, plugin) => {
|
|
206
|
-
resolvedPlugins.set(channel, plugin);
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
if (selection.length === 0) {
|
|
210
|
-
await prompter.outro("No channels selected.");
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
if (await prompter.confirm({
|
|
214
|
-
message: "Add display names for these accounts? (optional)",
|
|
215
|
-
initialValue: false
|
|
216
|
-
})) for (const channel of selection) {
|
|
217
|
-
const accountId = accountIds[channel] ?? "default";
|
|
218
|
-
const plugin = resolvedPlugins.get(channel) ?? getChannelPlugin(channel);
|
|
219
|
-
const account = plugin?.config.resolveAccount(nextConfig, accountId);
|
|
220
|
-
const existingName = (plugin?.config.describeAccount?.(account, nextConfig))?.name ?? account?.name;
|
|
221
|
-
const name = await prompter.text({
|
|
222
|
-
message: `${channel} account name (${accountId})`,
|
|
223
|
-
initialValue: existingName
|
|
224
|
-
});
|
|
225
|
-
if (name?.trim()) nextConfig = applyAccountName({
|
|
226
|
-
cfg: nextConfig,
|
|
227
|
-
channel,
|
|
228
|
-
accountId,
|
|
229
|
-
name,
|
|
230
|
-
plugin
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
const bindTargets = selection.map((channel) => ({
|
|
234
|
-
channel,
|
|
235
|
-
accountId: accountIds[channel]?.trim()
|
|
236
|
-
})).filter((value) => Boolean(value.accountId));
|
|
237
|
-
if (bindTargets.length > 0) {
|
|
238
|
-
if (await prompter.confirm({
|
|
239
|
-
message: "Bind configured channel accounts to agents now?",
|
|
240
|
-
initialValue: true
|
|
241
|
-
})) {
|
|
242
|
-
const agentSummaries = buildAgentSummaries(nextConfig);
|
|
243
|
-
const defaultAgentId = resolveDefaultAgentId(nextConfig);
|
|
244
|
-
for (const target of bindTargets) {
|
|
245
|
-
const targetAgentId = await prompter.select({
|
|
246
|
-
message: `Route ${target.channel} account "${target.accountId}" to agent`,
|
|
247
|
-
options: agentSummaries.map((agent) => ({
|
|
248
|
-
value: agent.id,
|
|
249
|
-
label: agent.isDefault ? `${agent.id} (default)` : agent.id
|
|
250
|
-
})),
|
|
251
|
-
initialValue: defaultAgentId
|
|
252
|
-
});
|
|
253
|
-
const bindingResult = applyAgentBindings(nextConfig, [{
|
|
254
|
-
agentId: targetAgentId,
|
|
255
|
-
match: {
|
|
256
|
-
channel: target.channel,
|
|
257
|
-
accountId: target.accountId
|
|
258
|
-
}
|
|
259
|
-
}]);
|
|
260
|
-
nextConfig = bindingResult.config;
|
|
261
|
-
if (bindingResult.added.length > 0 || bindingResult.updated.length > 0) await prompter.note([...bindingResult.added.map((binding) => `Added: ${describeBinding(binding)}`), ...bindingResult.updated.map((binding) => `Updated: ${describeBinding(binding)}`)].join("\n"), "Routing bindings");
|
|
262
|
-
if (bindingResult.conflicts.length > 0) await prompter.note(["Skipped bindings already claimed by another agent:", ...bindingResult.conflicts.map((conflict) => `- ${describeBinding(conflict.binding)} (agent=${conflict.existingAgentId})`)].join("\n"), "Routing bindings");
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
await writeConfigFile(nextConfig);
|
|
267
|
-
await prompter.outro("Channels updated.");
|
|
268
|
-
return;
|
|
269
|
-
}
|
|
270
|
-
const rawChannel = String(opts.channel ?? "");
|
|
271
|
-
let channel = normalizeChannelId(rawChannel);
|
|
272
|
-
let catalogEntry = channel ? void 0 : resolveCatalogChannelEntry(rawChannel, nextConfig);
|
|
273
|
-
const resolveWorkspaceDir = () => resolveAgentWorkspaceDir(nextConfig, resolveDefaultAgentId(nextConfig));
|
|
274
|
-
const loadScopedPlugin = async (channelId, pluginId) => {
|
|
275
|
-
const existing = getChannelPlugin(channelId);
|
|
276
|
-
if (existing) return existing;
|
|
277
|
-
const { loadChannelSetupPluginRegistrySnapshotForChannel } = await import("./plugin-install-Cl1A4EF6.js");
|
|
278
|
-
const snapshot = loadChannelSetupPluginRegistrySnapshotForChannel({
|
|
279
|
-
cfg: nextConfig,
|
|
280
|
-
runtime,
|
|
281
|
-
channel: channelId,
|
|
282
|
-
...pluginId ? { pluginId } : {},
|
|
283
|
-
workspaceDir: resolveWorkspaceDir()
|
|
284
|
-
});
|
|
285
|
-
return snapshot.channels.find((entry) => entry.plugin.id === channelId)?.plugin ?? snapshot.channelSetups.find((entry) => entry.plugin.id === channelId)?.plugin;
|
|
286
|
-
};
|
|
287
|
-
if (!channel && catalogEntry) {
|
|
288
|
-
const workspaceDir = resolveWorkspaceDir();
|
|
289
|
-
if (!isCatalogChannelInstalled({
|
|
290
|
-
cfg: nextConfig,
|
|
291
|
-
entry: catalogEntry,
|
|
292
|
-
workspaceDir
|
|
293
|
-
})) {
|
|
294
|
-
const { ensureChannelSetupPluginInstalled } = await import("./plugin-install-Cl1A4EF6.js");
|
|
295
|
-
const prompter = createClackPrompter();
|
|
296
|
-
const result = await ensureChannelSetupPluginInstalled({
|
|
297
|
-
cfg: nextConfig,
|
|
298
|
-
entry: catalogEntry,
|
|
299
|
-
prompter,
|
|
300
|
-
runtime,
|
|
301
|
-
workspaceDir
|
|
302
|
-
});
|
|
303
|
-
nextConfig = result.cfg;
|
|
304
|
-
if (!result.installed) return;
|
|
305
|
-
catalogEntry = {
|
|
306
|
-
...catalogEntry,
|
|
307
|
-
...result.pluginId ? { pluginId: result.pluginId } : {}
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
channel = normalizeChannelId(catalogEntry.id) ?? catalogEntry.id;
|
|
311
|
-
}
|
|
312
|
-
if (!channel) {
|
|
313
|
-
const hint = catalogEntry ? `Plugin ${catalogEntry.meta.label} could not be loaded after install.` : `Unknown channel: ${String(opts.channel ?? "")}`;
|
|
314
|
-
runtime.error(hint);
|
|
315
|
-
runtime.exit(1);
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
const plugin = await loadScopedPlugin(channel, catalogEntry?.pluginId);
|
|
319
|
-
if (!plugin?.setup?.applyAccountConfig) {
|
|
320
|
-
runtime.error(`Channel ${channel} does not support add.`);
|
|
321
|
-
runtime.exit(1);
|
|
322
|
-
return;
|
|
323
|
-
}
|
|
324
|
-
const useEnv = opts.useEnv === true;
|
|
325
|
-
const initialSyncLimit = typeof opts.initialSyncLimit === "number" ? opts.initialSyncLimit : typeof opts.initialSyncLimit === "string" && opts.initialSyncLimit.trim() ? Number.parseInt(opts.initialSyncLimit, 10) : void 0;
|
|
326
|
-
const groupChannels = parseOptionalDelimitedEntries(opts.groupChannels);
|
|
327
|
-
const dmAllowlist = parseOptionalDelimitedEntries(opts.dmAllowlist);
|
|
328
|
-
const input = {
|
|
329
|
-
name: opts.name,
|
|
330
|
-
token: opts.token,
|
|
331
|
-
privateKey: opts.privateKey,
|
|
332
|
-
tokenFile: opts.tokenFile,
|
|
333
|
-
botToken: opts.botToken,
|
|
334
|
-
appToken: opts.appToken,
|
|
335
|
-
signalNumber: opts.signalNumber,
|
|
336
|
-
cliPath: opts.cliPath,
|
|
337
|
-
dbPath: opts.dbPath,
|
|
338
|
-
service: opts.service,
|
|
339
|
-
region: opts.region,
|
|
340
|
-
authDir: opts.authDir,
|
|
341
|
-
httpUrl: opts.httpUrl,
|
|
342
|
-
httpHost: opts.httpHost,
|
|
343
|
-
httpPort: opts.httpPort,
|
|
344
|
-
webhookPath: opts.webhookPath,
|
|
345
|
-
webhookUrl: opts.webhookUrl,
|
|
346
|
-
audienceType: opts.audienceType,
|
|
347
|
-
audience: opts.audience,
|
|
348
|
-
homeserver: opts.homeserver,
|
|
349
|
-
userId: opts.userId,
|
|
350
|
-
accessToken: opts.accessToken,
|
|
351
|
-
password: opts.password,
|
|
352
|
-
deviceName: opts.deviceName,
|
|
353
|
-
initialSyncLimit,
|
|
354
|
-
useEnv,
|
|
355
|
-
ship: opts.ship,
|
|
356
|
-
url: opts.url,
|
|
357
|
-
relayUrls: opts.relayUrls,
|
|
358
|
-
code: opts.code,
|
|
359
|
-
groupChannels,
|
|
360
|
-
dmAllowlist,
|
|
361
|
-
autoDiscoverChannels: opts.autoDiscoverChannels
|
|
362
|
-
};
|
|
363
|
-
const accountId = plugin.setup.resolveAccountId?.({
|
|
364
|
-
cfg: nextConfig,
|
|
365
|
-
accountId: opts.account,
|
|
366
|
-
input
|
|
367
|
-
}) ?? normalizeAccountId(opts.account);
|
|
368
|
-
const validationError = plugin.setup.validateInput?.({
|
|
369
|
-
cfg: nextConfig,
|
|
370
|
-
accountId,
|
|
371
|
-
input
|
|
372
|
-
});
|
|
373
|
-
if (validationError) {
|
|
374
|
-
runtime.error(validationError);
|
|
375
|
-
runtime.exit(1);
|
|
376
|
-
return;
|
|
377
|
-
}
|
|
378
|
-
const prevConfig = nextConfig;
|
|
379
|
-
if (accountId !== "default") nextConfig = moveSingleAccountChannelSectionToDefaultAccount({
|
|
380
|
-
cfg: nextConfig,
|
|
381
|
-
channelKey: channel
|
|
382
|
-
});
|
|
383
|
-
nextConfig = applyChannelAccountConfig({
|
|
384
|
-
cfg: nextConfig,
|
|
385
|
-
channel,
|
|
386
|
-
accountId,
|
|
387
|
-
input,
|
|
388
|
-
plugin
|
|
389
|
-
});
|
|
390
|
-
await plugin.lifecycle?.onAccountConfigChanged?.({
|
|
391
|
-
prevCfg: prevConfig,
|
|
392
|
-
nextCfg: nextConfig,
|
|
393
|
-
accountId,
|
|
394
|
-
runtime
|
|
395
|
-
});
|
|
396
|
-
await writeConfigFile(nextConfig);
|
|
397
|
-
runtime.log(`Added ${channelLabel(channel)} account "${accountId}".`);
|
|
398
|
-
}
|
|
399
|
-
//#endregion
|
|
400
|
-
//#region src/commands/channels/capabilities.ts
|
|
401
|
-
function normalizeTimeout(raw, fallback = 1e4) {
|
|
402
|
-
const value = typeof raw === "string" ? Number(raw) : Number(raw);
|
|
403
|
-
if (!Number.isFinite(value) || value <= 0) return fallback;
|
|
404
|
-
return value;
|
|
405
|
-
}
|
|
406
|
-
function formatSupport(capabilities) {
|
|
407
|
-
if (!capabilities) return "unknown";
|
|
408
|
-
const bits = [];
|
|
409
|
-
if (capabilities.chatTypes?.length) bits.push(`chatTypes=${capabilities.chatTypes.join(",")}`);
|
|
410
|
-
if (capabilities.polls) bits.push("polls");
|
|
411
|
-
if (capabilities.reactions) bits.push("reactions");
|
|
412
|
-
if (capabilities.edit) bits.push("edit");
|
|
413
|
-
if (capabilities.unsend) bits.push("unsend");
|
|
414
|
-
if (capabilities.reply) bits.push("reply");
|
|
415
|
-
if (capabilities.effects) bits.push("effects");
|
|
416
|
-
if (capabilities.groupManagement) bits.push("groupManagement");
|
|
417
|
-
if (capabilities.threads) bits.push("threads");
|
|
418
|
-
if (capabilities.media) bits.push("media");
|
|
419
|
-
if (capabilities.nativeCommands) bits.push("nativeCommands");
|
|
420
|
-
if (capabilities.blockStreaming) bits.push("blockStreaming");
|
|
421
|
-
return bits.length ? bits.join(" ") : "none";
|
|
422
|
-
}
|
|
423
|
-
function formatGenericProbeLines(probe) {
|
|
424
|
-
if (!probe || typeof probe !== "object") return [];
|
|
425
|
-
const probeObj = probe;
|
|
426
|
-
const ok = typeof probeObj.ok === "boolean" ? probeObj.ok : void 0;
|
|
427
|
-
if (ok === true) return [{ text: "Probe: ok" }];
|
|
428
|
-
if (ok === false) return [{
|
|
429
|
-
text: `Probe: failed${typeof probeObj.error === "string" && probeObj.error ? ` (${probeObj.error})` : ""}`,
|
|
430
|
-
tone: "error"
|
|
431
|
-
}];
|
|
432
|
-
return [];
|
|
433
|
-
}
|
|
434
|
-
function renderDisplayLine(line) {
|
|
435
|
-
switch (line.tone) {
|
|
436
|
-
case "muted": return theme.muted(line.text);
|
|
437
|
-
case "success": return theme.success(line.text);
|
|
438
|
-
case "warn": return theme.warn(line.text);
|
|
439
|
-
case "error": return theme.error(line.text);
|
|
440
|
-
default: return line.text;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
async function resolveChannelReports(params) {
|
|
444
|
-
const { plugin, cfg, timeoutMs } = params;
|
|
445
|
-
const accountIds = params.accountOverride ? [params.accountOverride] : (() => {
|
|
446
|
-
const ids = plugin.config.listAccountIds(cfg);
|
|
447
|
-
return ids.length > 0 ? ids : [resolveChannelDefaultAccountId({
|
|
448
|
-
plugin,
|
|
449
|
-
cfg,
|
|
450
|
-
accountIds: ids
|
|
451
|
-
})];
|
|
452
|
-
})();
|
|
453
|
-
const reports = [];
|
|
454
|
-
const listedActions = plugin.actions?.listActions?.({ cfg }) ?? [];
|
|
455
|
-
const actions = Array.from(new Set([
|
|
456
|
-
"send",
|
|
457
|
-
"broadcast",
|
|
458
|
-
...listedActions.map((action) => String(action))
|
|
459
|
-
]));
|
|
460
|
-
for (const accountId of accountIds) {
|
|
461
|
-
const resolvedAccount = plugin.config.resolveAccount(cfg, accountId);
|
|
462
|
-
const configured = plugin.config.isConfigured ? await plugin.config.isConfigured(resolvedAccount, cfg) : Boolean(resolvedAccount);
|
|
463
|
-
const enabled = plugin.config.isEnabled ? plugin.config.isEnabled(resolvedAccount, cfg) : resolvedAccount.enabled !== false;
|
|
464
|
-
let probe;
|
|
465
|
-
if (configured && enabled && plugin.status?.probeAccount) try {
|
|
466
|
-
probe = await plugin.status.probeAccount({
|
|
467
|
-
account: resolvedAccount,
|
|
468
|
-
timeoutMs,
|
|
469
|
-
cfg
|
|
470
|
-
});
|
|
471
|
-
} catch (err) {
|
|
472
|
-
probe = {
|
|
473
|
-
ok: false,
|
|
474
|
-
error: err instanceof Error ? err.message : String(err)
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
const diagnostics = configured && enabled ? await plugin.status?.buildCapabilitiesDiagnostics?.({
|
|
478
|
-
account: resolvedAccount,
|
|
479
|
-
timeoutMs,
|
|
480
|
-
cfg,
|
|
481
|
-
probe,
|
|
482
|
-
target: params.target
|
|
483
|
-
}) : void 0;
|
|
484
|
-
reports.push({
|
|
485
|
-
channel: plugin.id,
|
|
486
|
-
accountId,
|
|
487
|
-
accountName: typeof resolvedAccount.name === "string" ? resolvedAccount.name?.trim() || void 0 : void 0,
|
|
488
|
-
configured,
|
|
489
|
-
enabled,
|
|
490
|
-
support: plugin.capabilities,
|
|
491
|
-
probe,
|
|
492
|
-
actions,
|
|
493
|
-
diagnostics
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
return reports;
|
|
497
|
-
}
|
|
498
|
-
async function channelsCapabilitiesCommand(opts, runtime = defaultRuntime) {
|
|
499
|
-
const cfg = await requireValidConfig(runtime);
|
|
500
|
-
if (!cfg) return;
|
|
501
|
-
const timeoutMs = normalizeTimeout(opts.timeout, 1e4);
|
|
502
|
-
const rawChannel = typeof opts.channel === "string" ? opts.channel.trim().toLowerCase() : "";
|
|
503
|
-
const rawTarget = typeof opts.target === "string" ? opts.target.trim() : "";
|
|
504
|
-
if (opts.account && (!rawChannel || rawChannel === "all")) {
|
|
505
|
-
runtime.error(danger("--account requires a specific --channel."));
|
|
506
|
-
runtime.exit(1);
|
|
507
|
-
return;
|
|
508
|
-
}
|
|
509
|
-
if (rawTarget && (!rawChannel || rawChannel === "all")) {
|
|
510
|
-
runtime.error(danger("--target requires a specific --channel."));
|
|
511
|
-
runtime.exit(1);
|
|
512
|
-
return;
|
|
513
|
-
}
|
|
514
|
-
const plugins = listChannelPlugins();
|
|
515
|
-
const selected = !rawChannel || rawChannel === "all" ? plugins : (() => {
|
|
516
|
-
const plugin = getChannelPlugin(rawChannel);
|
|
517
|
-
if (!plugin) return null;
|
|
518
|
-
return [plugin];
|
|
519
|
-
})();
|
|
520
|
-
if (!selected || selected.length === 0) {
|
|
521
|
-
runtime.error(danger(`Unknown channel "${rawChannel}".`));
|
|
522
|
-
runtime.exit(1);
|
|
523
|
-
return;
|
|
524
|
-
}
|
|
525
|
-
const reports = [];
|
|
526
|
-
for (const plugin of selected) {
|
|
527
|
-
const accountOverride = opts.account?.trim() || void 0;
|
|
528
|
-
reports.push(...await resolveChannelReports({
|
|
529
|
-
plugin,
|
|
530
|
-
cfg,
|
|
531
|
-
timeoutMs,
|
|
532
|
-
accountOverride,
|
|
533
|
-
target: rawTarget || void 0
|
|
534
|
-
}));
|
|
535
|
-
}
|
|
536
|
-
if (opts.json) {
|
|
537
|
-
runtime.log(JSON.stringify({ channels: reports }, null, 2));
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
const lines = [];
|
|
541
|
-
for (const report of reports) {
|
|
542
|
-
const label = formatChannelAccountLabel({
|
|
543
|
-
channel: report.channel,
|
|
544
|
-
accountId: report.accountId,
|
|
545
|
-
name: report.accountName,
|
|
546
|
-
channelStyle: theme.accent,
|
|
547
|
-
accountStyle: theme.heading
|
|
548
|
-
});
|
|
549
|
-
lines.push(theme.heading(label));
|
|
550
|
-
lines.push(`Support: ${formatSupport(report.support)}`);
|
|
551
|
-
if (report.actions && report.actions.length > 0) lines.push(`Actions: ${report.actions.join(", ")}`);
|
|
552
|
-
if (report.configured === false || report.enabled === false) {
|
|
553
|
-
const configuredLabel = report.configured === false ? "not configured" : "configured";
|
|
554
|
-
const enabledLabel = report.enabled === false ? "disabled" : "enabled";
|
|
555
|
-
lines.push(`Status: ${configuredLabel}, ${enabledLabel}`);
|
|
556
|
-
}
|
|
557
|
-
const probeLines = getChannelPlugin(report.channel)?.status?.formatCapabilitiesProbe?.({ probe: report.probe }) ?? formatGenericProbeLines(report.probe);
|
|
558
|
-
if (probeLines.length > 0) lines.push(...probeLines.map(renderDisplayLine));
|
|
559
|
-
else if (report.configured && report.enabled) lines.push(theme.muted("Probe: unavailable"));
|
|
560
|
-
if (report.diagnostics?.lines?.length) lines.push(...report.diagnostics.lines.map(renderDisplayLine));
|
|
561
|
-
lines.push("");
|
|
562
|
-
}
|
|
563
|
-
runtime.log(lines.join("\n").trimEnd());
|
|
564
|
-
}
|
|
565
|
-
//#endregion
|
|
566
|
-
//#region src/commands/channels/list.ts
|
|
567
|
-
const colorValue = (value) => {
|
|
568
|
-
if (value === "none") return theme.error(value);
|
|
569
|
-
if (value === "env") return theme.accent(value);
|
|
570
|
-
return theme.success(value);
|
|
571
|
-
};
|
|
572
|
-
function formatEnabled(value) {
|
|
573
|
-
return value === false ? theme.error("disabled") : theme.success("enabled");
|
|
574
|
-
}
|
|
575
|
-
function formatConfigured(value) {
|
|
576
|
-
return value ? theme.success("configured") : theme.warn("not configured");
|
|
577
|
-
}
|
|
578
|
-
function formatTokenSource(source) {
|
|
579
|
-
return `token=${colorValue(source || "none")}`;
|
|
580
|
-
}
|
|
581
|
-
function formatSource(label, source) {
|
|
582
|
-
return `${label}=${colorValue(source || "none")}`;
|
|
583
|
-
}
|
|
584
|
-
function formatLinked(value) {
|
|
585
|
-
return value ? theme.success("linked") : theme.warn("not linked");
|
|
586
|
-
}
|
|
587
|
-
function shouldShowConfigured(channel) {
|
|
588
|
-
return channel.meta.showConfigured !== false;
|
|
589
|
-
}
|
|
590
|
-
function formatAccountLine(params) {
|
|
591
|
-
const { channel, snapshot } = params;
|
|
592
|
-
const label = formatChannelAccountLabel({
|
|
593
|
-
channel: channel.id,
|
|
594
|
-
accountId: snapshot.accountId,
|
|
595
|
-
name: snapshot.name,
|
|
596
|
-
channelStyle: theme.accent,
|
|
597
|
-
accountStyle: theme.heading
|
|
598
|
-
});
|
|
599
|
-
const bits = [];
|
|
600
|
-
if (snapshot.linked !== void 0) bits.push(formatLinked(snapshot.linked));
|
|
601
|
-
if (shouldShowConfigured(channel) && typeof snapshot.configured === "boolean") bits.push(formatConfigured(snapshot.configured));
|
|
602
|
-
if (snapshot.tokenSource) bits.push(formatTokenSource(snapshot.tokenSource));
|
|
603
|
-
if (snapshot.botTokenSource) bits.push(formatSource("bot", snapshot.botTokenSource));
|
|
604
|
-
if (snapshot.appTokenSource) bits.push(formatSource("app", snapshot.appTokenSource));
|
|
605
|
-
if (snapshot.baseUrl) bits.push(`base=${theme.muted(snapshot.baseUrl)}`);
|
|
606
|
-
if (typeof snapshot.enabled === "boolean") bits.push(formatEnabled(snapshot.enabled));
|
|
607
|
-
return `- ${label}: ${bits.join(", ")}`;
|
|
608
|
-
}
|
|
609
|
-
async function loadUsageWithProgress(runtime) {
|
|
610
|
-
try {
|
|
611
|
-
return await withProgress({
|
|
612
|
-
label: "Fetching usage snapshot…",
|
|
613
|
-
indeterminate: true,
|
|
614
|
-
enabled: true
|
|
615
|
-
}, async () => await loadProviderUsageSummary());
|
|
616
|
-
} catch (err) {
|
|
617
|
-
runtime.error(String(err));
|
|
618
|
-
return null;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
async function channelsListCommand(opts, runtime = defaultRuntime) {
|
|
622
|
-
const cfg = await requireValidConfig(runtime);
|
|
623
|
-
if (!cfg) return;
|
|
624
|
-
const includeUsage = opts.usage !== false;
|
|
625
|
-
const plugins = listChannelPlugins();
|
|
626
|
-
const authStore = loadAuthProfileStore();
|
|
627
|
-
const authProfiles = Object.entries(authStore.profiles).map(([profileId, profile]) => ({
|
|
628
|
-
id: profileId,
|
|
629
|
-
provider: profile.provider,
|
|
630
|
-
type: profile.type,
|
|
631
|
-
isExternal: false
|
|
632
|
-
}));
|
|
633
|
-
if (opts.json) {
|
|
634
|
-
const usage = includeUsage ? await loadProviderUsageSummary() : void 0;
|
|
635
|
-
const chat = {};
|
|
636
|
-
for (const plugin of plugins) chat[plugin.id] = plugin.config.listAccountIds(cfg);
|
|
637
|
-
const payload = {
|
|
638
|
-
chat,
|
|
639
|
-
auth: authProfiles,
|
|
640
|
-
...usage ? { usage } : {}
|
|
641
|
-
};
|
|
642
|
-
runtime.log(JSON.stringify(payload, null, 2));
|
|
643
|
-
return;
|
|
644
|
-
}
|
|
645
|
-
const lines = [];
|
|
646
|
-
lines.push(theme.heading("Chat channels:"));
|
|
647
|
-
for (const plugin of plugins) {
|
|
648
|
-
const accounts = plugin.config.listAccountIds(cfg);
|
|
649
|
-
if (!accounts || accounts.length === 0) continue;
|
|
650
|
-
for (const accountId of accounts) {
|
|
651
|
-
const snapshot = await buildChannelAccountSnapshot({
|
|
652
|
-
plugin,
|
|
653
|
-
cfg,
|
|
654
|
-
accountId
|
|
655
|
-
});
|
|
656
|
-
lines.push(formatAccountLine({
|
|
657
|
-
channel: plugin,
|
|
658
|
-
snapshot
|
|
659
|
-
}));
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
lines.push("");
|
|
663
|
-
lines.push(theme.heading("Auth providers (OAuth + API keys):"));
|
|
664
|
-
if (authProfiles.length === 0) lines.push(theme.muted("- none"));
|
|
665
|
-
else for (const profile of authProfiles) {
|
|
666
|
-
const external = profile.isExternal ? theme.muted(" (synced)") : "";
|
|
667
|
-
lines.push(`- ${theme.accent(profile.id)} (${theme.success(profile.type)}${external})`);
|
|
668
|
-
}
|
|
669
|
-
runtime.log(lines.join("\n"));
|
|
670
|
-
if (includeUsage) {
|
|
671
|
-
runtime.log("");
|
|
672
|
-
const usage = await loadUsageWithProgress(runtime);
|
|
673
|
-
if (usage) {
|
|
674
|
-
const usageLines = formatUsageReportLines(usage);
|
|
675
|
-
if (usageLines.length > 0) {
|
|
676
|
-
usageLines[0] = theme.accent(usageLines[0]);
|
|
677
|
-
runtime.log(usageLines.join("\n"));
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
runtime.log("");
|
|
682
|
-
runtime.log(`Docs: ${formatDocsLink("/gateway/configuration", "gateway/configuration")}`);
|
|
683
|
-
}
|
|
684
|
-
//#endregion
|
|
685
|
-
//#region src/commands/channels/logs.ts
|
|
686
|
-
const DEFAULT_LIMIT = 200;
|
|
687
|
-
const MAX_BYTES = 1e6;
|
|
688
|
-
const getChannelSet = () => new Set([...listChannelPlugins().map((plugin) => plugin.id), "all"]);
|
|
689
|
-
function parseChannelFilter(raw) {
|
|
690
|
-
const trimmed = raw?.trim().toLowerCase();
|
|
691
|
-
if (!trimmed) return "all";
|
|
692
|
-
return getChannelSet().has(trimmed) ? trimmed : "all";
|
|
693
|
-
}
|
|
694
|
-
function matchesChannel(line, channel) {
|
|
695
|
-
if (channel === "all") return true;
|
|
696
|
-
const needle = `gateway/channels/${channel}`;
|
|
697
|
-
if (line.subsystem?.includes(needle)) return true;
|
|
698
|
-
if (line.module?.includes(channel)) return true;
|
|
699
|
-
return false;
|
|
700
|
-
}
|
|
701
|
-
async function readTailLines(file, limit) {
|
|
702
|
-
const stat = await fs.stat(file).catch(() => null);
|
|
703
|
-
if (!stat) return [];
|
|
704
|
-
const size = stat.size;
|
|
705
|
-
const start = Math.max(0, size - MAX_BYTES);
|
|
706
|
-
const handle = await fs.open(file, "r");
|
|
707
|
-
try {
|
|
708
|
-
const length = Math.max(0, size - start);
|
|
709
|
-
if (length === 0) return [];
|
|
710
|
-
const buffer = Buffer.alloc(length);
|
|
711
|
-
const readResult = await handle.read(buffer, 0, length, start);
|
|
712
|
-
let lines = buffer.toString("utf8", 0, readResult.bytesRead).split("\n");
|
|
713
|
-
if (start > 0) lines = lines.slice(1);
|
|
714
|
-
if (lines.length && lines[lines.length - 1] === "") lines = lines.slice(0, -1);
|
|
715
|
-
if (lines.length > limit) lines = lines.slice(lines.length - limit);
|
|
716
|
-
return lines;
|
|
717
|
-
} finally {
|
|
718
|
-
await handle.close();
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
async function channelsLogsCommand(opts, runtime = defaultRuntime) {
|
|
722
|
-
const channel = parseChannelFilter(opts.channel);
|
|
723
|
-
const limitRaw = typeof opts.lines === "string" ? Number(opts.lines) : opts.lines;
|
|
724
|
-
const limit = typeof limitRaw === "number" && Number.isFinite(limitRaw) && limitRaw > 0 ? Math.floor(limitRaw) : DEFAULT_LIMIT;
|
|
725
|
-
const file = getResolvedLoggerSettings().file;
|
|
726
|
-
const filtered = (await readTailLines(file, limit * 4)).map(parseLogLine).filter((line) => Boolean(line)).filter((line) => matchesChannel(line, channel));
|
|
727
|
-
const lines = filtered.slice(Math.max(0, filtered.length - limit));
|
|
728
|
-
if (opts.json) {
|
|
729
|
-
runtime.log(JSON.stringify({
|
|
730
|
-
file,
|
|
731
|
-
channel,
|
|
732
|
-
lines
|
|
733
|
-
}, null, 2));
|
|
734
|
-
return;
|
|
735
|
-
}
|
|
736
|
-
runtime.log(theme.info(`Log file: ${file}`));
|
|
737
|
-
if (channel !== "all") runtime.log(theme.info(`Channel: ${channel}`));
|
|
738
|
-
if (lines.length === 0) {
|
|
739
|
-
runtime.log(theme.muted("No matching log lines."));
|
|
740
|
-
return;
|
|
741
|
-
}
|
|
742
|
-
for (const line of lines) {
|
|
743
|
-
const ts = line.time ? `${line.time} ` : "";
|
|
744
|
-
const level = line.level ? `${line.level.toLowerCase()} ` : "";
|
|
745
|
-
runtime.log(`${ts}${level}${line.message}`.trim());
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
//#endregion
|
|
749
|
-
//#region src/commands/channels/remove.ts
|
|
750
|
-
function listAccountIds(cfg, channel) {
|
|
751
|
-
const plugin = getChannelPlugin(channel);
|
|
752
|
-
if (!plugin) return [];
|
|
753
|
-
return plugin.config.listAccountIds(cfg);
|
|
754
|
-
}
|
|
755
|
-
async function channelsRemoveCommand(opts, runtime = defaultRuntime, params) {
|
|
756
|
-
const cfg = await requireValidConfig(runtime);
|
|
757
|
-
if (!cfg) return;
|
|
758
|
-
const useWizard = shouldUseWizard(params);
|
|
759
|
-
const prompter = useWizard ? createClackPrompter() : null;
|
|
760
|
-
let channel = normalizeChannelId(opts.channel);
|
|
761
|
-
let accountId = normalizeAccountId(opts.account);
|
|
762
|
-
const deleteConfig = Boolean(opts.delete);
|
|
763
|
-
if (useWizard && prompter) {
|
|
764
|
-
await prompter.intro("Remove channel account");
|
|
765
|
-
const selectedChannel = await prompter.select({
|
|
766
|
-
message: "Channel",
|
|
767
|
-
options: listChannelPlugins().map((plugin) => ({
|
|
768
|
-
value: plugin.id,
|
|
769
|
-
label: plugin.meta.label
|
|
770
|
-
}))
|
|
771
|
-
});
|
|
772
|
-
channel = selectedChannel;
|
|
773
|
-
accountId = await (async () => {
|
|
774
|
-
const ids = listAccountIds(cfg, selectedChannel);
|
|
775
|
-
return normalizeAccountId(await prompter.select({
|
|
776
|
-
message: "Account",
|
|
777
|
-
options: ids.map((id) => ({
|
|
778
|
-
value: id,
|
|
779
|
-
label: id === "default" ? "default (primary)" : id
|
|
780
|
-
})),
|
|
781
|
-
initialValue: ids[0] ?? "default"
|
|
782
|
-
}));
|
|
783
|
-
})();
|
|
784
|
-
if (!await prompter.confirm({
|
|
785
|
-
message: `Disable ${channelLabel(selectedChannel)} account "${accountId}"? (keeps config)`,
|
|
786
|
-
initialValue: true
|
|
787
|
-
})) {
|
|
788
|
-
await prompter.outro("Cancelled.");
|
|
789
|
-
return;
|
|
790
|
-
}
|
|
791
|
-
} else {
|
|
792
|
-
if (!channel) {
|
|
793
|
-
runtime.error("Channel is required. Use --channel <name>.");
|
|
794
|
-
runtime.exit(1);
|
|
795
|
-
return;
|
|
796
|
-
}
|
|
797
|
-
if (!deleteConfig) {
|
|
798
|
-
if (!await createClackPrompter().confirm({
|
|
799
|
-
message: `Disable ${channelLabel(channel)} account "${accountId}"? (keeps config)`,
|
|
800
|
-
initialValue: true
|
|
801
|
-
})) return;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
const plugin = getChannelPlugin(channel);
|
|
805
|
-
if (!plugin) {
|
|
806
|
-
runtime.error(`Unknown channel: ${channel}`);
|
|
807
|
-
runtime.exit(1);
|
|
808
|
-
return;
|
|
809
|
-
}
|
|
810
|
-
const resolvedAccountId = normalizeAccountId(accountId) ?? resolveChannelDefaultAccountId({
|
|
811
|
-
plugin,
|
|
812
|
-
cfg
|
|
813
|
-
});
|
|
814
|
-
const accountKey = resolvedAccountId || "default";
|
|
815
|
-
let next = { ...cfg };
|
|
816
|
-
const prevCfg = cfg;
|
|
817
|
-
if (deleteConfig) {
|
|
818
|
-
if (!plugin.config.deleteAccount) {
|
|
819
|
-
runtime.error(`Channel ${channel} does not support delete.`);
|
|
820
|
-
runtime.exit(1);
|
|
821
|
-
return;
|
|
822
|
-
}
|
|
823
|
-
next = plugin.config.deleteAccount({
|
|
824
|
-
cfg: next,
|
|
825
|
-
accountId: resolvedAccountId
|
|
826
|
-
});
|
|
827
|
-
await plugin.lifecycle?.onAccountRemoved?.({
|
|
828
|
-
prevCfg,
|
|
829
|
-
accountId: resolvedAccountId,
|
|
830
|
-
runtime
|
|
831
|
-
});
|
|
832
|
-
} else {
|
|
833
|
-
if (!plugin.config.setAccountEnabled) {
|
|
834
|
-
runtime.error(`Channel ${channel} does not support disable.`);
|
|
835
|
-
runtime.exit(1);
|
|
836
|
-
return;
|
|
837
|
-
}
|
|
838
|
-
next = plugin.config.setAccountEnabled({
|
|
839
|
-
cfg: next,
|
|
840
|
-
accountId: resolvedAccountId,
|
|
841
|
-
enabled: false
|
|
842
|
-
});
|
|
843
|
-
await plugin.lifecycle?.onAccountConfigChanged?.({
|
|
844
|
-
prevCfg,
|
|
845
|
-
nextCfg: next,
|
|
846
|
-
accountId: resolvedAccountId,
|
|
847
|
-
runtime
|
|
848
|
-
});
|
|
849
|
-
}
|
|
850
|
-
await writeConfigFile(next);
|
|
851
|
-
if (useWizard && prompter) await prompter.outro(deleteConfig ? `Deleted ${channelLabel(channel)} account "${accountKey}".` : `Disabled ${channelLabel(channel)} account "${accountKey}".`);
|
|
852
|
-
else runtime.log(deleteConfig ? `Deleted ${channelLabel(channel)} account "${accountKey}".` : `Disabled ${channelLabel(channel)} account "${accountKey}".`);
|
|
853
|
-
}
|
|
854
|
-
//#endregion
|
|
855
|
-
//#region src/commands/channels/resolve.ts
|
|
856
|
-
function resolvePreferredKind(kind) {
|
|
857
|
-
if (!kind || kind === "auto") return;
|
|
858
|
-
if (kind === "user") return "user";
|
|
859
|
-
return "group";
|
|
860
|
-
}
|
|
861
|
-
function detectAutoKind(input) {
|
|
862
|
-
const trimmed = input.trim();
|
|
863
|
-
if (!trimmed) return "group";
|
|
864
|
-
if (trimmed.startsWith("@")) return "user";
|
|
865
|
-
if (/^<@!?/.test(trimmed)) return "user";
|
|
866
|
-
if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(trimmed)) return "user";
|
|
867
|
-
if (/^(user|discord|slack|matrix|msteams|teams|zalo|zalouser|googlechat|google-chat|gchat):/i.test(trimmed)) return "user";
|
|
868
|
-
return "group";
|
|
869
|
-
}
|
|
870
|
-
function formatResolveResult(result) {
|
|
871
|
-
if (!result.resolved || !result.id) return `${result.input} -> unresolved`;
|
|
872
|
-
const name = result.name ? ` (${result.name})` : "";
|
|
873
|
-
const note = result.note ? ` [${result.note}]` : "";
|
|
874
|
-
return `${result.input} -> ${result.id}${name}${note}`;
|
|
875
|
-
}
|
|
876
|
-
async function channelsResolveCommand(opts, runtime) {
|
|
877
|
-
const { resolvedConfig: cfg, diagnostics } = await resolveCommandSecretRefsViaGateway({
|
|
878
|
-
config: loadConfig(),
|
|
879
|
-
commandName: "channels resolve",
|
|
880
|
-
targetIds: getChannelsCommandSecretTargetIds(),
|
|
881
|
-
mode: "read_only_operational"
|
|
882
|
-
});
|
|
883
|
-
for (const entry of diagnostics) runtime.log(`[secrets] ${entry}`);
|
|
884
|
-
const entries = (opts.entries ?? []).map((entry) => entry.trim()).filter(Boolean);
|
|
885
|
-
if (entries.length === 0) throw new Error("At least one entry is required.");
|
|
886
|
-
const selection = await resolveMessageChannelSelection({
|
|
887
|
-
cfg,
|
|
888
|
-
channel: opts.channel ?? null
|
|
889
|
-
});
|
|
890
|
-
const plugin = getChannelPlugin(selection.channel);
|
|
891
|
-
if (!plugin?.resolver?.resolveTargets) throw new Error(`Channel ${selection.channel} does not support resolve.`);
|
|
892
|
-
const preferredKind = resolvePreferredKind(opts.kind);
|
|
893
|
-
let results = [];
|
|
894
|
-
if (preferredKind) results = (await plugin.resolver.resolveTargets({
|
|
895
|
-
cfg,
|
|
896
|
-
accountId: opts.account ?? null,
|
|
897
|
-
inputs: entries,
|
|
898
|
-
kind: preferredKind,
|
|
899
|
-
runtime
|
|
900
|
-
})).map((entry) => ({
|
|
901
|
-
input: entry.input,
|
|
902
|
-
resolved: entry.resolved,
|
|
903
|
-
id: entry.id,
|
|
904
|
-
name: entry.name,
|
|
905
|
-
note: entry.note
|
|
906
|
-
}));
|
|
907
|
-
else {
|
|
908
|
-
const byKind = /* @__PURE__ */ new Map();
|
|
909
|
-
for (const entry of entries) {
|
|
910
|
-
const kind = detectAutoKind(entry);
|
|
911
|
-
byKind.set(kind, [...byKind.get(kind) ?? [], entry]);
|
|
912
|
-
}
|
|
913
|
-
const resolved = [];
|
|
914
|
-
for (const [kind, inputs] of byKind.entries()) {
|
|
915
|
-
const batch = await plugin.resolver.resolveTargets({
|
|
916
|
-
cfg,
|
|
917
|
-
accountId: opts.account ?? null,
|
|
918
|
-
inputs,
|
|
919
|
-
kind,
|
|
920
|
-
runtime
|
|
921
|
-
});
|
|
922
|
-
resolved.push(...batch);
|
|
923
|
-
}
|
|
924
|
-
const byInput = new Map(resolved.map((entry) => [entry.input, entry]));
|
|
925
|
-
results = entries.map((input) => {
|
|
926
|
-
const entry = byInput.get(input);
|
|
927
|
-
return {
|
|
928
|
-
input,
|
|
929
|
-
resolved: entry?.resolved ?? false,
|
|
930
|
-
id: entry?.id,
|
|
931
|
-
name: entry?.name,
|
|
932
|
-
note: entry?.note
|
|
933
|
-
};
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
if (opts.json) {
|
|
937
|
-
runtime.log(JSON.stringify(results, null, 2));
|
|
938
|
-
return;
|
|
939
|
-
}
|
|
940
|
-
for (const result of results) if (result.resolved && result.id) runtime.log(formatResolveResult(result));
|
|
941
|
-
else runtime.error(danger(`${result.input} -> unresolved${result.error ? ` (${result.error})` : result.note ? ` (${result.note})` : ""}`));
|
|
942
|
-
}
|
|
943
|
-
//#endregion
|
|
944
|
-
//#region src/commands/channels/status.ts
|
|
945
|
-
function appendEnabledConfiguredLinkedBits(bits, account) {
|
|
946
|
-
if (typeof account.enabled === "boolean") bits.push(account.enabled ? "enabled" : "disabled");
|
|
947
|
-
if (typeof account.configured === "boolean") if (account.configured) {
|
|
948
|
-
bits.push("configured");
|
|
949
|
-
if (hasConfiguredUnavailableCredentialStatus(account)) bits.push("secret unavailable in this command path");
|
|
950
|
-
} else bits.push("not configured");
|
|
951
|
-
if (typeof account.linked === "boolean") bits.push(account.linked ? "linked" : "not linked");
|
|
952
|
-
}
|
|
953
|
-
function appendModeBit(bits, account) {
|
|
954
|
-
if (typeof account.mode === "string" && account.mode.length > 0) bits.push(`mode:${account.mode}`);
|
|
955
|
-
}
|
|
956
|
-
function appendTokenSourceBits(bits, account) {
|
|
957
|
-
const appendSourceBit = (label, sourceKey, statusKey) => {
|
|
958
|
-
const source = account[sourceKey];
|
|
959
|
-
if (typeof source !== "string" || !source || source === "none") return;
|
|
960
|
-
const unavailable = account[statusKey] === "configured_unavailable" ? " (unavailable)" : "";
|
|
961
|
-
bits.push(`${label}:${source}${unavailable}`);
|
|
962
|
-
};
|
|
963
|
-
appendSourceBit("token", "tokenSource", "tokenStatus");
|
|
964
|
-
appendSourceBit("bot", "botTokenSource", "botTokenStatus");
|
|
965
|
-
appendSourceBit("app", "appTokenSource", "appTokenStatus");
|
|
966
|
-
appendSourceBit("signing", "signingSecretSource", "signingSecretStatus");
|
|
967
|
-
}
|
|
968
|
-
function appendBaseUrlBit(bits, account) {
|
|
969
|
-
if (typeof account.baseUrl === "string" && account.baseUrl) bits.push(`url:${account.baseUrl}`);
|
|
970
|
-
}
|
|
971
|
-
function buildChannelAccountLine(provider, account, bits) {
|
|
972
|
-
return `- ${formatChannelAccountLabel({
|
|
973
|
-
channel: provider,
|
|
974
|
-
accountId: typeof account.accountId === "string" ? account.accountId : "default",
|
|
975
|
-
name: (typeof account.name === "string" ? account.name.trim() : "") || void 0
|
|
976
|
-
})}: ${bits.join(", ")}`;
|
|
977
|
-
}
|
|
978
|
-
function formatGatewayChannelsStatusLines(payload) {
|
|
979
|
-
const lines = [];
|
|
980
|
-
lines.push(theme.success("Gateway reachable."));
|
|
981
|
-
const accountLines = (provider, accounts) => accounts.map((account) => {
|
|
982
|
-
const bits = [];
|
|
983
|
-
appendEnabledConfiguredLinkedBits(bits, account);
|
|
984
|
-
if (typeof account.running === "boolean") bits.push(account.running ? "running" : "stopped");
|
|
985
|
-
if (typeof account.connected === "boolean") bits.push(account.connected ? "connected" : "disconnected");
|
|
986
|
-
const inboundAt = typeof account.lastInboundAt === "number" && Number.isFinite(account.lastInboundAt) ? account.lastInboundAt : null;
|
|
987
|
-
const outboundAt = typeof account.lastOutboundAt === "number" && Number.isFinite(account.lastOutboundAt) ? account.lastOutboundAt : null;
|
|
988
|
-
if (inboundAt) bits.push(`in:${formatTimeAgo(Date.now() - inboundAt)}`);
|
|
989
|
-
if (outboundAt) bits.push(`out:${formatTimeAgo(Date.now() - outboundAt)}`);
|
|
990
|
-
appendModeBit(bits, account);
|
|
991
|
-
const botUsername = (() => {
|
|
992
|
-
const bot = account.bot;
|
|
993
|
-
const probeBot = account.probe?.bot;
|
|
994
|
-
const raw = bot?.username ?? probeBot?.username ?? "";
|
|
995
|
-
if (typeof raw !== "string") return "";
|
|
996
|
-
const trimmed = raw.trim();
|
|
997
|
-
if (!trimmed) return "";
|
|
998
|
-
return trimmed.startsWith("@") ? trimmed : `@${trimmed}`;
|
|
999
|
-
})();
|
|
1000
|
-
if (botUsername) bits.push(`bot:${botUsername}`);
|
|
1001
|
-
if (typeof account.dmPolicy === "string" && account.dmPolicy.length > 0) bits.push(`dm:${account.dmPolicy}`);
|
|
1002
|
-
if (Array.isArray(account.allowFrom) && account.allowFrom.length > 0) bits.push(`allow:${account.allowFrom.slice(0, 2).join(",")}`);
|
|
1003
|
-
appendTokenSourceBits(bits, account);
|
|
1004
|
-
const messageContent = account.application?.intents?.messageContent;
|
|
1005
|
-
if (typeof messageContent === "string" && messageContent.length > 0 && messageContent !== "enabled") bits.push(`intents:content=${messageContent}`);
|
|
1006
|
-
if (account.allowUnmentionedGroups === true) bits.push("groups:unmentioned");
|
|
1007
|
-
appendBaseUrlBit(bits, account);
|
|
1008
|
-
const probe = account.probe;
|
|
1009
|
-
if (probe && typeof probe.ok === "boolean") bits.push(probe.ok ? "works" : "probe failed");
|
|
1010
|
-
const audit = account.audit;
|
|
1011
|
-
if (audit && typeof audit.ok === "boolean") bits.push(audit.ok ? "audit ok" : "audit failed");
|
|
1012
|
-
if (typeof account.lastError === "string" && account.lastError) bits.push(`error:${account.lastError}`);
|
|
1013
|
-
return buildChannelAccountLine(provider, account, bits);
|
|
1014
|
-
});
|
|
1015
|
-
const plugins = listChannelPlugins();
|
|
1016
|
-
const accountsByChannel = payload.channelAccounts;
|
|
1017
|
-
const accountPayloads = {};
|
|
1018
|
-
for (const plugin of plugins) {
|
|
1019
|
-
const raw = accountsByChannel?.[plugin.id];
|
|
1020
|
-
if (Array.isArray(raw)) accountPayloads[plugin.id] = raw;
|
|
1021
|
-
}
|
|
1022
|
-
for (const plugin of plugins) {
|
|
1023
|
-
const accounts = accountPayloads[plugin.id];
|
|
1024
|
-
if (accounts && accounts.length > 0) lines.push(...accountLines(plugin.id, accounts));
|
|
1025
|
-
}
|
|
1026
|
-
lines.push("");
|
|
1027
|
-
const issues = collectChannelStatusIssues(payload);
|
|
1028
|
-
if (issues.length > 0) {
|
|
1029
|
-
lines.push(theme.warn("Warnings:"));
|
|
1030
|
-
for (const issue of issues) lines.push(`- ${issue.channel} ${issue.accountId}: ${issue.message}${issue.fix ? ` (${issue.fix})` : ""}`);
|
|
1031
|
-
lines.push(`- Run: ${formatCliCommand("moldclaw doctor")}`);
|
|
1032
|
-
lines.push("");
|
|
1033
|
-
}
|
|
1034
|
-
lines.push(`Tip: ${formatDocsLink("/cli#status", "status --deep")} adds gateway health probes to status output (requires a reachable gateway).`);
|
|
1035
|
-
return lines;
|
|
1036
|
-
}
|
|
1037
|
-
async function formatConfigChannelsStatusLines(cfg, meta, opts) {
|
|
1038
|
-
const lines = [];
|
|
1039
|
-
lines.push(theme.warn("Gateway not reachable; showing config-only status."));
|
|
1040
|
-
if (meta.path) lines.push(`Config: ${meta.path}`);
|
|
1041
|
-
if (meta.mode) lines.push(`Mode: ${meta.mode}`);
|
|
1042
|
-
if (meta.path || meta.mode) lines.push("");
|
|
1043
|
-
const accountLines = (provider, accounts) => accounts.map((account) => {
|
|
1044
|
-
const bits = [];
|
|
1045
|
-
appendEnabledConfiguredLinkedBits(bits, account);
|
|
1046
|
-
appendModeBit(bits, account);
|
|
1047
|
-
appendTokenSourceBits(bits, account);
|
|
1048
|
-
appendBaseUrlBit(bits, account);
|
|
1049
|
-
return buildChannelAccountLine(provider, account, bits);
|
|
1050
|
-
});
|
|
1051
|
-
const plugins = listChannelPlugins();
|
|
1052
|
-
const sourceConfig = opts?.sourceConfig ?? cfg;
|
|
1053
|
-
for (const plugin of plugins) {
|
|
1054
|
-
const accountIds = plugin.config.listAccountIds(cfg);
|
|
1055
|
-
if (!accountIds.length) continue;
|
|
1056
|
-
const snapshots = [];
|
|
1057
|
-
for (const accountId of accountIds) {
|
|
1058
|
-
const sourceSnapshot = await buildReadOnlySourceChannelAccountSnapshot({
|
|
1059
|
-
plugin,
|
|
1060
|
-
cfg: sourceConfig,
|
|
1061
|
-
accountId
|
|
1062
|
-
});
|
|
1063
|
-
const resolvedSnapshot = await buildChannelAccountSnapshot({
|
|
1064
|
-
plugin,
|
|
1065
|
-
cfg,
|
|
1066
|
-
accountId
|
|
1067
|
-
});
|
|
1068
|
-
snapshots.push(sourceSnapshot && hasConfiguredUnavailableCredentialStatus(sourceSnapshot) && (!hasResolvedCredentialValue(resolvedSnapshot) || sourceSnapshot.configured === true && resolvedSnapshot.configured === false) ? sourceSnapshot : resolvedSnapshot);
|
|
1069
|
-
}
|
|
1070
|
-
if (snapshots.length > 0) lines.push(...accountLines(plugin.id, snapshots));
|
|
1071
|
-
}
|
|
1072
|
-
lines.push("");
|
|
1073
|
-
lines.push(`Tip: ${formatDocsLink("/cli#status", "status --deep")} adds gateway health probes to status output (requires a reachable gateway).`);
|
|
1074
|
-
return lines;
|
|
1075
|
-
}
|
|
1076
|
-
async function channelsStatusCommand(opts, runtime = defaultRuntime) {
|
|
1077
|
-
const timeoutMs = Number(opts.timeout ?? 1e4);
|
|
1078
|
-
const statusLabel = opts.probe ? "Checking channel status (probe)…" : "Checking channel status…";
|
|
1079
|
-
if (opts.json !== true && !process.stderr.isTTY) runtime.log(statusLabel);
|
|
1080
|
-
try {
|
|
1081
|
-
const payload = await withProgress({
|
|
1082
|
-
label: statusLabel,
|
|
1083
|
-
indeterminate: true,
|
|
1084
|
-
enabled: opts.json !== true
|
|
1085
|
-
}, async () => await callGateway({
|
|
1086
|
-
method: "channels.status",
|
|
1087
|
-
params: {
|
|
1088
|
-
probe: Boolean(opts.probe),
|
|
1089
|
-
timeoutMs
|
|
1090
|
-
},
|
|
1091
|
-
timeoutMs
|
|
1092
|
-
}));
|
|
1093
|
-
if (opts.json) {
|
|
1094
|
-
runtime.log(JSON.stringify(payload, null, 2));
|
|
1095
|
-
return;
|
|
1096
|
-
}
|
|
1097
|
-
runtime.log(formatGatewayChannelsStatusLines(payload).join("\n"));
|
|
1098
|
-
} catch (err) {
|
|
1099
|
-
runtime.error(`Gateway not reachable: ${String(err)}`);
|
|
1100
|
-
const cfg = await requireValidConfigSnapshot(runtime);
|
|
1101
|
-
if (!cfg) return;
|
|
1102
|
-
const { resolvedConfig, diagnostics } = await resolveCommandSecretRefsViaGateway({
|
|
1103
|
-
config: cfg,
|
|
1104
|
-
commandName: "channels status",
|
|
1105
|
-
targetIds: getChannelsCommandSecretTargetIds(),
|
|
1106
|
-
mode: "read_only_status"
|
|
1107
|
-
});
|
|
1108
|
-
for (const entry of diagnostics) runtime.log(`[secrets] ${entry}`);
|
|
1109
|
-
const snapshot = await readConfigFileSnapshot();
|
|
1110
|
-
const mode = cfg.gateway?.mode === "remote" ? "remote" : "local";
|
|
1111
|
-
runtime.log((await formatConfigChannelsStatusLines(resolvedConfig, {
|
|
1112
|
-
path: snapshot.path,
|
|
1113
|
-
mode
|
|
1114
|
-
}, { sourceConfig: cfg })).join("\n"));
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
//#endregion
|
|
1118
|
-
export { channelsAddCommand, channelsCapabilitiesCommand, channelsListCommand, channelsLogsCommand, channelsRemoveCommand, channelsResolveCommand, channelsStatusCommand };
|