@spacebar_ai/moldclaw-core 2026.3.41 → 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/docs/reference/templates/AGENTS.dev.md +83 -0
- package/docs/reference/templates/AGENTS.md +219 -0
- package/docs/reference/templates/BOOT.md +11 -0
- package/docs/reference/templates/BOOTSTRAP.md +62 -0
- package/docs/reference/templates/HEARTBEAT.md +12 -0
- package/docs/reference/templates/IDENTITY.dev.md +47 -0
- package/docs/reference/templates/IDENTITY.md +29 -0
- package/docs/reference/templates/SOUL.dev.md +76 -0
- package/docs/reference/templates/SOUL.md +43 -0
- package/docs/reference/templates/TOOLS.dev.md +24 -0
- package/docs/reference/templates/TOOLS.md +47 -0
- package/docs/reference/templates/USER.dev.md +18 -0
- package/docs/reference/templates/USER.md +23 -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 +2 -1
- package/dist/accounts-CDr-lDaV.d.ts +0 -103
- package/dist/accounts-CS8U4v8C.js +0 -114
- 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-CnT9wiS4.d.ts +0 -6
- package/dist/bot-CuzVYwa_.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-jm751KJ9.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-Coivm0Mt.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-DKzsSLlO.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-C1dM8pl2.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-CNZQb1jd.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-06OUQvAV.d.ts +0 -6
- package/dist/hooks-cli-B7uGJs2O.js +0 -1000
- package/dist/hooks-status-CfceaUSg.js +0 -78
- package/dist/http-registry-DYskWhOr.d.ts +0 -20
- package/dist/identity-file-sshkKKIr.js +0 -60
- package/dist/image-generation-D4o3j8o6.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-D6_HNqH8.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-B8gTtl3Y.d.ts +0 -75
- package/dist/line-CGsemKWJ.js +0 -530
- 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-D2JoHzb4.d.ts +0 -68
- package/dist/matrix-DiABGjJR.js +0 -1269
- 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-BFoM4IPf.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-Dc905FWG.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-DBTFTxKs.js +0 -8744
- package/dist/nostr-DLqaIuZx.d.ts +0 -7
- 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-CXKqTh2X.d.ts +0 -11
- package/dist/outbound-media-DYRO2vTD.js +0 -11
- package/dist/pairing-access-BwJu1mkk.d.ts +0 -21
- package/dist/pairing-cli-BOnv0TYn.js +0 -217
- package/dist/perplexity-EZwC3y2b.js +0 -24
- package/dist/persistent-dedupe-hNES5tS1.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-5xgWoVGi.d.ts +0 -18
- package/dist/provider-models-BCId_Lfu.js +0 -2113
- package/dist/provider-models-D-eFl9oH.d.ts +0 -867
- package/dist/provider-ollama-setup-B6XJZ0So.js +0 -314
- package/dist/provider-ollama-setup-BF1vhob8.d.ts +0 -32
- package/dist/provider-onboard-BjXHP3IZ.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-BQ5BIlpi.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-Cy8pqYUB.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-DGszQH0_.js +0 -387
- package/dist/setup-DR5rRw9y.d.ts +0 -37
- 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-BtuGx_gN.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-Y3dPBOuZ.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-BBJ3Qz7j.d.ts +0 -45
- package/dist/types-Ckufs_BY.d.ts +0 -22692
- 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-HSGD3yGt.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-Di17rt8e.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-BN3VCrRY.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,1100 +0,0 @@
|
|
|
1
|
-
import { t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-D6AgsMTU.js";
|
|
2
|
-
import { n as defaultRuntime } from "./runtime-_tQz41uA.js";
|
|
3
|
-
import { S as shortenHomePath, y as resolveUserPath } from "./utils-C7ykRPCQ.js";
|
|
4
|
-
import { Pn as resolvePluginProviders, T as listChannelPlugins, w as getChannelPlugin, wE as ensureAuthProfileStore } from "./auth-profiles-1kPLbBwI.js";
|
|
5
|
-
import { g as resolveDefaultAgentWorkspaceDir } from "./workspace-CpWi5wPr.js";
|
|
6
|
-
import { c as loadConfig, f as readConfigFileSnapshot, y as writeConfigFile } from "./io-CMfWWPXQ.js";
|
|
7
|
-
import { o as isSecretRef, s as isValidEnvSecretRefId } from "./types.secrets-Ca-9L8vU.js";
|
|
8
|
-
import { l as resolveDefaultSecretProviderAlias } from "./ref-contract-4C9nIZsw.js";
|
|
9
|
-
import { w as findTailscaleBinary } from "./config-BwkGZjD5.js";
|
|
10
|
-
import { t as formatCliCommand } from "./command-format-C_z0Ru-7.js";
|
|
11
|
-
import { Mt as applyPrimaryModel } from "./provider-models-BCId_Lfu.js";
|
|
12
|
-
import { n as logConfigUpdated } from "./logging-CxP9suT8.js";
|
|
13
|
-
import { i as stylePromptTitle, n as stylePromptHint, r as stylePromptMessage, t as note$1 } from "./note-dOl5kPAy.js";
|
|
14
|
-
import { n as withProgress } from "./progress-Cwq59vgZ.js";
|
|
15
|
-
import { n as buildGatewayInstallPlan, r as gatewayInstallErrorHint, t as resolveGatewayInstallToken } from "./gateway-install-token-CNv17ac9.js";
|
|
16
|
-
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-BR9EstPe.js";
|
|
17
|
-
import { a as ensureWorkspaceAndSessions, b as waitForGatewayReachable, f as printWizardHeader, g as resolveControlUiLinks, m as randomToken, n as applyWizardMetadata, p as probeGatewayReachable, s as guardCancel, t as DEFAULT_WORKSPACE, u as normalizeGatewayTokenInput, v as summarizeExistingConfig, y as validateGatewayPasswordInput } from "./onboard-helpers-BK0Hsb7Y.js";
|
|
18
|
-
import { n as resolveGatewayService, t as describeGatewayServiceRestart } from "./service-D-iBQb7Y.js";
|
|
19
|
-
import { n as isNonFatalSystemdInstallProbeError } from "./systemd-C3JL-Eyf.js";
|
|
20
|
-
import { t as WizardCancelledError } from "./prompts-Ck2MeFCv.js";
|
|
21
|
-
import { r as healthCommand } from "./health-BEjzWwaB.js";
|
|
22
|
-
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-CH3MYmAo.js";
|
|
23
|
-
import { t as resolveSetupSecretInputString } from "./setup.secret-input-BaplsS1Y.js";
|
|
24
|
-
import { t as createClackPrompter } from "./clack-prompter-yY7QJAil.js";
|
|
25
|
-
import { n as resolveProviderPluginChoice } from "./provider-wizard-DMdb-zj_.js";
|
|
26
|
-
import { t as promptAuthChoiceGrouped } from "./auth-choice-prompt-BP2b6aXz.js";
|
|
27
|
-
import { t as resolvePreferredProviderForAuthChoice } from "./provider-auth-choice-preference-se3zAM_2.js";
|
|
28
|
-
import { n as applyAuthChoice } from "./auth-choice-ePNfg0iQ.js";
|
|
29
|
-
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-B_JL0Djc.js";
|
|
30
|
-
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-C6Aja8xE.js";
|
|
31
|
-
import { i as promptModelAllowlist, n as applyModelFallbacksFromSelection, r as promptDefaultModel, t as applyModelAllowlist } from "./model-picker-Svaw-APs.js";
|
|
32
|
-
import { i as promptCustomApiConfig } from "./onboard-custom-CER3Ggbq.js";
|
|
33
|
-
import { a as maybeAddTailnetOriginToControlUiAllowedOrigins, i as TAILSCALE_MISSING_BIN_NOTE_LINES, n as TAILSCALE_DOCS_LINES, r as TAILSCALE_EXPOSURE_OPTIONS, t as validateIPv4AddressInput } from "./ipv4-BGD4p_ce.js";
|
|
34
|
-
import { t as formatHealthCheckFailure } from "./health-format-BN81wqbV.js";
|
|
35
|
-
import { t as promptRemoteGatewayConfig } from "./onboard-remote-OwRcDuB3.js";
|
|
36
|
-
import { t as setupSkills } from "./onboard-skills-c9qWCNe9.js";
|
|
37
|
-
import path from "node:path";
|
|
38
|
-
import fs from "node:fs/promises";
|
|
39
|
-
import { confirm, intro, outro, select, text } from "@clack/prompts";
|
|
40
|
-
//#region src/commands/configure.shared.ts
|
|
41
|
-
const CONFIGURE_WIZARD_SECTIONS = [
|
|
42
|
-
"workspace",
|
|
43
|
-
"model",
|
|
44
|
-
"web",
|
|
45
|
-
"gateway",
|
|
46
|
-
"daemon",
|
|
47
|
-
"channels",
|
|
48
|
-
"skills",
|
|
49
|
-
"health"
|
|
50
|
-
];
|
|
51
|
-
function parseConfigureWizardSections(raw) {
|
|
52
|
-
const sectionsRaw = Array.isArray(raw) ? raw.map((value) => typeof value === "string" ? value.trim() : "").filter(Boolean) : [];
|
|
53
|
-
if (sectionsRaw.length === 0) return {
|
|
54
|
-
sections: [],
|
|
55
|
-
invalid: []
|
|
56
|
-
};
|
|
57
|
-
const invalid = sectionsRaw.filter((s) => !CONFIGURE_WIZARD_SECTIONS.includes(s));
|
|
58
|
-
return {
|
|
59
|
-
sections: sectionsRaw.filter((s) => CONFIGURE_WIZARD_SECTIONS.includes(s)),
|
|
60
|
-
invalid
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
const CONFIGURE_SECTION_OPTIONS = [
|
|
64
|
-
{
|
|
65
|
-
value: "workspace",
|
|
66
|
-
label: "Workspace",
|
|
67
|
-
hint: "Set workspace + sessions"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
value: "model",
|
|
71
|
-
label: "Model",
|
|
72
|
-
hint: "Pick provider + credentials"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
value: "web",
|
|
76
|
-
label: "Web tools",
|
|
77
|
-
hint: "Configure web search (Perplexity/Brave) + fetch"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
value: "gateway",
|
|
81
|
-
label: "Gateway",
|
|
82
|
-
hint: "Port, bind, auth, tailscale"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
value: "daemon",
|
|
86
|
-
label: "Daemon",
|
|
87
|
-
hint: "Install/manage the background service"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
value: "channels",
|
|
91
|
-
label: "Channels",
|
|
92
|
-
hint: "Link WhatsApp/Telegram/etc and defaults"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
value: "skills",
|
|
96
|
-
label: "Skills",
|
|
97
|
-
hint: "Install/enable workspace skills"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
value: "health",
|
|
101
|
-
label: "Health check",
|
|
102
|
-
hint: "Run gateway + channel checks"
|
|
103
|
-
}
|
|
104
|
-
];
|
|
105
|
-
const intro$1 = (message) => intro(stylePromptTitle(message) ?? message);
|
|
106
|
-
const outro$1 = (message) => outro(stylePromptTitle(message) ?? message);
|
|
107
|
-
const text$1 = (params) => text({
|
|
108
|
-
...params,
|
|
109
|
-
message: stylePromptMessage(params.message)
|
|
110
|
-
});
|
|
111
|
-
const confirm$1 = (params) => confirm({
|
|
112
|
-
...params,
|
|
113
|
-
message: stylePromptMessage(params.message)
|
|
114
|
-
});
|
|
115
|
-
const select$1 = (params) => select({
|
|
116
|
-
...params,
|
|
117
|
-
message: stylePromptMessage(params.message),
|
|
118
|
-
options: params.options.map((opt) => opt.hint === void 0 ? opt : {
|
|
119
|
-
...opt,
|
|
120
|
-
hint: stylePromptHint(opt.hint)
|
|
121
|
-
})
|
|
122
|
-
});
|
|
123
|
-
//#endregion
|
|
124
|
-
//#region src/commands/configure.channels.ts
|
|
125
|
-
async function removeChannelConfigWizard(cfg, runtime) {
|
|
126
|
-
let next = { ...cfg };
|
|
127
|
-
const listConfiguredChannels = () => listChannelPlugins().map((plugin) => plugin.meta).filter((meta) => next.channels?.[meta.id] !== void 0);
|
|
128
|
-
while (true) {
|
|
129
|
-
const configured = listConfiguredChannels();
|
|
130
|
-
if (configured.length === 0) {
|
|
131
|
-
note$1(["No channel config found in moldclaw.json.", `Tip: \`${formatCliCommand("moldclaw channels status")}\` shows what is configured and enabled.`].join("\n"), "Remove channel");
|
|
132
|
-
return next;
|
|
133
|
-
}
|
|
134
|
-
const channel = guardCancel(await select$1({
|
|
135
|
-
message: "Remove which channel config?",
|
|
136
|
-
options: [...configured.map((meta) => ({
|
|
137
|
-
value: meta.id,
|
|
138
|
-
label: meta.label,
|
|
139
|
-
hint: "Deletes tokens + settings from config (credentials stay on disk)"
|
|
140
|
-
})), {
|
|
141
|
-
value: "done",
|
|
142
|
-
label: "Done"
|
|
143
|
-
}]
|
|
144
|
-
}), runtime);
|
|
145
|
-
if (channel === "done") return next;
|
|
146
|
-
const label = getChannelPlugin(channel)?.meta.label ?? channel;
|
|
147
|
-
if (!guardCancel(await confirm$1({
|
|
148
|
-
message: `Delete ${label} configuration from ${shortenHomePath(CONFIG_PATH)}?`,
|
|
149
|
-
initialValue: false
|
|
150
|
-
}), runtime)) continue;
|
|
151
|
-
const nextChannels = { ...next.channels };
|
|
152
|
-
delete nextChannels[channel];
|
|
153
|
-
next = {
|
|
154
|
-
...next,
|
|
155
|
-
channels: Object.keys(nextChannels).length ? nextChannels : void 0
|
|
156
|
-
};
|
|
157
|
-
note$1([`${label} removed from config.`, "Note: credentials/sessions on disk are unchanged."].join("\n"), "Channel removed");
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
//#endregion
|
|
161
|
-
//#region src/commands/configure.daemon.ts
|
|
162
|
-
async function maybeInstallDaemon(params) {
|
|
163
|
-
const service = resolveGatewayService();
|
|
164
|
-
let loaded = false;
|
|
165
|
-
try {
|
|
166
|
-
loaded = await service.isLoaded({ env: process.env });
|
|
167
|
-
} catch (error) {
|
|
168
|
-
if (!isNonFatalSystemdInstallProbeError(error)) throw error;
|
|
169
|
-
loaded = false;
|
|
170
|
-
}
|
|
171
|
-
let shouldCheckLinger = false;
|
|
172
|
-
let shouldInstall = true;
|
|
173
|
-
let daemonRuntime = params.daemonRuntime ?? "node";
|
|
174
|
-
if (loaded) {
|
|
175
|
-
const action = guardCancel(await select$1({
|
|
176
|
-
message: "Gateway service already installed",
|
|
177
|
-
options: [
|
|
178
|
-
{
|
|
179
|
-
value: "restart",
|
|
180
|
-
label: "Restart"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
value: "reinstall",
|
|
184
|
-
label: "Reinstall"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
value: "skip",
|
|
188
|
-
label: "Skip"
|
|
189
|
-
}
|
|
190
|
-
]
|
|
191
|
-
}), params.runtime);
|
|
192
|
-
if (action === "restart") {
|
|
193
|
-
await withProgress({
|
|
194
|
-
label: "Gateway service",
|
|
195
|
-
indeterminate: true,
|
|
196
|
-
delayMs: 0
|
|
197
|
-
}, async (progress) => {
|
|
198
|
-
progress.setLabel("Restarting Gateway service…");
|
|
199
|
-
const restartResult = await service.restart({
|
|
200
|
-
env: process.env,
|
|
201
|
-
stdout: process.stdout
|
|
202
|
-
});
|
|
203
|
-
progress.setLabel(describeGatewayServiceRestart("Gateway", restartResult).progressMessage);
|
|
204
|
-
});
|
|
205
|
-
shouldCheckLinger = true;
|
|
206
|
-
shouldInstall = false;
|
|
207
|
-
}
|
|
208
|
-
if (action === "skip") return;
|
|
209
|
-
if (action === "reinstall") await withProgress({
|
|
210
|
-
label: "Gateway service",
|
|
211
|
-
indeterminate: true,
|
|
212
|
-
delayMs: 0
|
|
213
|
-
}, async (progress) => {
|
|
214
|
-
progress.setLabel("Uninstalling Gateway service…");
|
|
215
|
-
await service.uninstall({
|
|
216
|
-
env: process.env,
|
|
217
|
-
stdout: process.stdout
|
|
218
|
-
});
|
|
219
|
-
progress.setLabel("Gateway service uninstalled.");
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
if (shouldInstall) {
|
|
223
|
-
let installError = null;
|
|
224
|
-
if (!params.daemonRuntime) if (GATEWAY_DAEMON_RUNTIME_OPTIONS.length === 1) daemonRuntime = GATEWAY_DAEMON_RUNTIME_OPTIONS[0]?.value ?? "node";
|
|
225
|
-
else daemonRuntime = guardCancel(await select$1({
|
|
226
|
-
message: "Gateway service runtime",
|
|
227
|
-
options: GATEWAY_DAEMON_RUNTIME_OPTIONS,
|
|
228
|
-
initialValue: DEFAULT_GATEWAY_DAEMON_RUNTIME
|
|
229
|
-
}), params.runtime);
|
|
230
|
-
await withProgress({
|
|
231
|
-
label: "Gateway service",
|
|
232
|
-
indeterminate: true,
|
|
233
|
-
delayMs: 0
|
|
234
|
-
}, async (progress) => {
|
|
235
|
-
progress.setLabel("Preparing Gateway service…");
|
|
236
|
-
const cfg = loadConfig();
|
|
237
|
-
const tokenResolution = await resolveGatewayInstallToken({
|
|
238
|
-
config: cfg,
|
|
239
|
-
env: process.env
|
|
240
|
-
});
|
|
241
|
-
for (const warning of tokenResolution.warnings) note$1(warning, "Gateway");
|
|
242
|
-
if (tokenResolution.unavailableReason) {
|
|
243
|
-
installError = [
|
|
244
|
-
"Gateway install blocked:",
|
|
245
|
-
tokenResolution.unavailableReason,
|
|
246
|
-
"Fix gateway auth config/token input and rerun configure."
|
|
247
|
-
].join(" ");
|
|
248
|
-
progress.setLabel("Gateway service install blocked.");
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
const { programArguments, workingDirectory, environment } = await buildGatewayInstallPlan({
|
|
252
|
-
env: process.env,
|
|
253
|
-
port: params.port,
|
|
254
|
-
runtime: daemonRuntime,
|
|
255
|
-
warn: (message, title) => note$1(message, title),
|
|
256
|
-
config: cfg
|
|
257
|
-
});
|
|
258
|
-
progress.setLabel("Installing Gateway service…");
|
|
259
|
-
try {
|
|
260
|
-
await service.install({
|
|
261
|
-
env: process.env,
|
|
262
|
-
stdout: process.stdout,
|
|
263
|
-
programArguments,
|
|
264
|
-
workingDirectory,
|
|
265
|
-
environment
|
|
266
|
-
});
|
|
267
|
-
progress.setLabel("Gateway service installed.");
|
|
268
|
-
} catch (err) {
|
|
269
|
-
installError = err instanceof Error ? err.message : String(err);
|
|
270
|
-
progress.setLabel("Gateway service install failed.");
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
if (installError) {
|
|
274
|
-
note$1("Gateway service install failed: " + installError, "Gateway");
|
|
275
|
-
note$1(gatewayInstallErrorHint(), "Gateway");
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
shouldCheckLinger = true;
|
|
279
|
-
}
|
|
280
|
-
if (shouldCheckLinger) await ensureSystemdUserLingerInteractive({
|
|
281
|
-
runtime: params.runtime,
|
|
282
|
-
prompter: {
|
|
283
|
-
confirm: async (p) => guardCancel(await confirm$1(p), params.runtime),
|
|
284
|
-
note: note$1
|
|
285
|
-
},
|
|
286
|
-
reason: "Linux installs use a systemd user service. Without lingering, systemd stops the user session on logout/idle and kills the Gateway.",
|
|
287
|
-
requireConfirm: true
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
//#endregion
|
|
291
|
-
//#region src/commands/configure.gateway-auth.ts
|
|
292
|
-
/** Reject undefined, empty, and common JS string-coercion artifacts for token auth. */
|
|
293
|
-
function sanitizeTokenValue(value) {
|
|
294
|
-
if (typeof value !== "string") return;
|
|
295
|
-
const trimmed = value.trim();
|
|
296
|
-
if (!trimmed || trimmed === "undefined" || trimmed === "null") return;
|
|
297
|
-
return trimmed;
|
|
298
|
-
}
|
|
299
|
-
function resolveProviderChoiceModelAllowlist(params) {
|
|
300
|
-
return resolveProviderPluginChoice({
|
|
301
|
-
providers: resolvePluginProviders({
|
|
302
|
-
config: params.config,
|
|
303
|
-
workspaceDir: params.workspaceDir,
|
|
304
|
-
env: params.env,
|
|
305
|
-
bundledProviderAllowlistCompat: true,
|
|
306
|
-
bundledProviderVitestCompat: true
|
|
307
|
-
}),
|
|
308
|
-
choice: params.authChoice
|
|
309
|
-
})?.wizard?.modelAllowlist;
|
|
310
|
-
}
|
|
311
|
-
function buildGatewayAuthConfig(params) {
|
|
312
|
-
const allowTailscale = params.existing?.allowTailscale;
|
|
313
|
-
const base = {};
|
|
314
|
-
if (typeof allowTailscale === "boolean") base.allowTailscale = allowTailscale;
|
|
315
|
-
if (params.mode === "token") {
|
|
316
|
-
if (isSecretRef(params.token)) return {
|
|
317
|
-
...base,
|
|
318
|
-
mode: "token",
|
|
319
|
-
token: params.token
|
|
320
|
-
};
|
|
321
|
-
const token = sanitizeTokenValue(params.token) ?? randomToken();
|
|
322
|
-
return {
|
|
323
|
-
...base,
|
|
324
|
-
mode: "token",
|
|
325
|
-
token
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
if (params.mode === "password") {
|
|
329
|
-
const password = params.password?.trim();
|
|
330
|
-
return {
|
|
331
|
-
...base,
|
|
332
|
-
mode: "password",
|
|
333
|
-
...password && { password }
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
if (params.mode === "trusted-proxy") {
|
|
337
|
-
if (!params.trustedProxy) throw new Error("trustedProxy config is required when mode is trusted-proxy");
|
|
338
|
-
return {
|
|
339
|
-
...base,
|
|
340
|
-
mode: "trusted-proxy",
|
|
341
|
-
trustedProxy: params.trustedProxy
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
return base;
|
|
345
|
-
}
|
|
346
|
-
async function promptAuthConfig(cfg, runtime, prompter) {
|
|
347
|
-
const authChoice = await promptAuthChoiceGrouped({
|
|
348
|
-
prompter,
|
|
349
|
-
store: ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }),
|
|
350
|
-
includeSkip: true,
|
|
351
|
-
config: cfg
|
|
352
|
-
});
|
|
353
|
-
let next = cfg;
|
|
354
|
-
if (authChoice === "custom-api-key") next = (await promptCustomApiConfig({
|
|
355
|
-
prompter,
|
|
356
|
-
runtime,
|
|
357
|
-
config: next
|
|
358
|
-
})).config;
|
|
359
|
-
else if (authChoice !== "skip") next = (await applyAuthChoice({
|
|
360
|
-
authChoice,
|
|
361
|
-
config: next,
|
|
362
|
-
prompter,
|
|
363
|
-
runtime,
|
|
364
|
-
setDefaultModel: true
|
|
365
|
-
})).config;
|
|
366
|
-
else {
|
|
367
|
-
const modelSelection = await promptDefaultModel({
|
|
368
|
-
config: next,
|
|
369
|
-
prompter,
|
|
370
|
-
allowKeep: true,
|
|
371
|
-
ignoreAllowlist: true,
|
|
372
|
-
includeProviderPluginSetups: true,
|
|
373
|
-
preferredProvider: await resolvePreferredProviderForAuthChoice({
|
|
374
|
-
choice: authChoice,
|
|
375
|
-
config: next
|
|
376
|
-
}),
|
|
377
|
-
workspaceDir: resolveDefaultAgentWorkspaceDir(),
|
|
378
|
-
runtime
|
|
379
|
-
});
|
|
380
|
-
if (modelSelection.config) next = modelSelection.config;
|
|
381
|
-
if (modelSelection.model) next = applyPrimaryModel(next, modelSelection.model);
|
|
382
|
-
}
|
|
383
|
-
if (authChoice !== "custom-api-key") {
|
|
384
|
-
const modelAllowlist = resolveProviderChoiceModelAllowlist({
|
|
385
|
-
authChoice,
|
|
386
|
-
config: next,
|
|
387
|
-
workspaceDir: resolveDefaultAgentWorkspaceDir(),
|
|
388
|
-
env: process.env
|
|
389
|
-
});
|
|
390
|
-
const allowlistSelection = await promptModelAllowlist({
|
|
391
|
-
config: next,
|
|
392
|
-
prompter,
|
|
393
|
-
allowedKeys: modelAllowlist?.allowedKeys,
|
|
394
|
-
initialSelections: modelAllowlist?.initialSelections,
|
|
395
|
-
message: modelAllowlist?.message
|
|
396
|
-
});
|
|
397
|
-
if (allowlistSelection.models) {
|
|
398
|
-
next = applyModelAllowlist(next, allowlistSelection.models);
|
|
399
|
-
next = applyModelFallbacksFromSelection(next, allowlistSelection.models);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
return next;
|
|
403
|
-
}
|
|
404
|
-
//#endregion
|
|
405
|
-
//#region src/commands/configure.gateway.ts
|
|
406
|
-
async function promptGatewayConfig(cfg, runtime) {
|
|
407
|
-
const portRaw = guardCancel(await text$1({
|
|
408
|
-
message: "Gateway port",
|
|
409
|
-
initialValue: String(resolveGatewayPort(cfg)),
|
|
410
|
-
validate: (value) => Number.isFinite(Number(value)) ? void 0 : "Invalid port"
|
|
411
|
-
}), runtime);
|
|
412
|
-
const port = Number.parseInt(String(portRaw), 10);
|
|
413
|
-
let bind = guardCancel(await select$1({
|
|
414
|
-
message: "Gateway bind mode",
|
|
415
|
-
options: [
|
|
416
|
-
{
|
|
417
|
-
value: "loopback",
|
|
418
|
-
label: "Loopback (Local only)",
|
|
419
|
-
hint: "Bind to 127.0.0.1 - secure, local-only access"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
value: "tailnet",
|
|
423
|
-
label: "Tailnet (Tailscale IP)",
|
|
424
|
-
hint: "Bind to your Tailscale IP only (100.x.x.x)"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
value: "auto",
|
|
428
|
-
label: "Auto (Loopback → LAN)",
|
|
429
|
-
hint: "Prefer loopback; fall back to all interfaces if unavailable"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
value: "lan",
|
|
433
|
-
label: "LAN (All interfaces)",
|
|
434
|
-
hint: "Bind to 0.0.0.0 - accessible from anywhere on your network"
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
value: "custom",
|
|
438
|
-
label: "Custom IP",
|
|
439
|
-
hint: "Specify a specific IP address, with 0.0.0.0 fallback if unavailable"
|
|
440
|
-
}
|
|
441
|
-
]
|
|
442
|
-
}), runtime);
|
|
443
|
-
let customBindHost;
|
|
444
|
-
if (bind === "custom") {
|
|
445
|
-
const input = guardCancel(await text$1({
|
|
446
|
-
message: "Custom IP address",
|
|
447
|
-
placeholder: "192.168.1.100",
|
|
448
|
-
validate: validateIPv4AddressInput
|
|
449
|
-
}), runtime);
|
|
450
|
-
customBindHost = typeof input === "string" ? input : void 0;
|
|
451
|
-
}
|
|
452
|
-
let authMode = guardCancel(await select$1({
|
|
453
|
-
message: "Gateway auth",
|
|
454
|
-
options: [
|
|
455
|
-
{
|
|
456
|
-
value: "token",
|
|
457
|
-
label: "Token",
|
|
458
|
-
hint: "Recommended default"
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
value: "password",
|
|
462
|
-
label: "Password"
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
value: "trusted-proxy",
|
|
466
|
-
label: "Trusted Proxy",
|
|
467
|
-
hint: "Behind reverse proxy (Pomerium, Caddy, Traefik, etc.)"
|
|
468
|
-
}
|
|
469
|
-
],
|
|
470
|
-
initialValue: "token"
|
|
471
|
-
}), runtime);
|
|
472
|
-
let tailscaleMode = guardCancel(await select$1({
|
|
473
|
-
message: "Tailscale exposure",
|
|
474
|
-
options: [...TAILSCALE_EXPOSURE_OPTIONS]
|
|
475
|
-
}), runtime);
|
|
476
|
-
let tailscaleBin = null;
|
|
477
|
-
if (tailscaleMode !== "off") {
|
|
478
|
-
tailscaleBin = await findTailscaleBinary();
|
|
479
|
-
if (!tailscaleBin) note$1(TAILSCALE_MISSING_BIN_NOTE_LINES.join("\n"), "Tailscale Warning");
|
|
480
|
-
}
|
|
481
|
-
let tailscaleResetOnExit = false;
|
|
482
|
-
if (tailscaleMode !== "off") {
|
|
483
|
-
note$1(TAILSCALE_DOCS_LINES.join("\n"), "Tailscale");
|
|
484
|
-
tailscaleResetOnExit = Boolean(guardCancel(await confirm$1({
|
|
485
|
-
message: "Reset Tailscale serve/funnel on exit?",
|
|
486
|
-
initialValue: false
|
|
487
|
-
}), runtime));
|
|
488
|
-
}
|
|
489
|
-
if (tailscaleMode !== "off" && bind !== "loopback") {
|
|
490
|
-
note$1("Tailscale requires bind=loopback. Adjusting bind to loopback.", "Note");
|
|
491
|
-
bind = "loopback";
|
|
492
|
-
}
|
|
493
|
-
if (tailscaleMode === "funnel" && authMode !== "password") {
|
|
494
|
-
note$1("Tailscale funnel requires password auth.", "Note");
|
|
495
|
-
authMode = "password";
|
|
496
|
-
}
|
|
497
|
-
if (authMode === "trusted-proxy" && tailscaleMode !== "off") {
|
|
498
|
-
note$1("Trusted proxy auth is incompatible with Tailscale serve/funnel. Disabling Tailscale.", "Note");
|
|
499
|
-
tailscaleMode = "off";
|
|
500
|
-
tailscaleResetOnExit = false;
|
|
501
|
-
}
|
|
502
|
-
let gatewayToken;
|
|
503
|
-
let gatewayTokenForCalls;
|
|
504
|
-
let gatewayPassword;
|
|
505
|
-
let trustedProxyConfig;
|
|
506
|
-
let trustedProxies;
|
|
507
|
-
let next = cfg;
|
|
508
|
-
if (authMode === "token") if (guardCancel(await select$1({
|
|
509
|
-
message: "Gateway token source",
|
|
510
|
-
options: [{
|
|
511
|
-
value: "plaintext",
|
|
512
|
-
label: "Generate/store plaintext token",
|
|
513
|
-
hint: "Default"
|
|
514
|
-
}, {
|
|
515
|
-
value: "ref",
|
|
516
|
-
label: "Use SecretRef",
|
|
517
|
-
hint: "Store an env-backed reference instead of plaintext"
|
|
518
|
-
}],
|
|
519
|
-
initialValue: "plaintext"
|
|
520
|
-
}), runtime) === "ref") {
|
|
521
|
-
const envVar = guardCancel(await text$1({
|
|
522
|
-
message: "Gateway token env var",
|
|
523
|
-
initialValue: "MOLDCLAW_GATEWAY_TOKEN",
|
|
524
|
-
placeholder: "MOLDCLAW_GATEWAY_TOKEN",
|
|
525
|
-
validate: (value) => {
|
|
526
|
-
const candidate = String(value ?? "").trim();
|
|
527
|
-
if (!isValidEnvSecretRefId(candidate)) return "Use an env var name like MOLDCLAW_GATEWAY_TOKEN.";
|
|
528
|
-
if (!process.env[candidate]?.trim()) return `Environment variable "${candidate}" is missing or empty in this session.`;
|
|
529
|
-
}
|
|
530
|
-
}), runtime);
|
|
531
|
-
const envVarName = String(envVar ?? "").trim();
|
|
532
|
-
gatewayToken = {
|
|
533
|
-
source: "env",
|
|
534
|
-
provider: resolveDefaultSecretProviderAlias(cfg, "env", { preferFirstProviderForSource: true }),
|
|
535
|
-
id: envVarName
|
|
536
|
-
};
|
|
537
|
-
note$1(`Validated ${envVarName}. moldClaw will store a token SecretRef.`, "Gateway token");
|
|
538
|
-
} else {
|
|
539
|
-
gatewayTokenForCalls = normalizeGatewayTokenInput(guardCancel(await text$1({
|
|
540
|
-
message: "Gateway token (blank to generate)",
|
|
541
|
-
initialValue: randomToken()
|
|
542
|
-
}), runtime)) || randomToken();
|
|
543
|
-
gatewayToken = gatewayTokenForCalls;
|
|
544
|
-
}
|
|
545
|
-
if (authMode === "password") {
|
|
546
|
-
const password = guardCancel(await text$1({
|
|
547
|
-
message: "Gateway password",
|
|
548
|
-
validate: validateGatewayPasswordInput
|
|
549
|
-
}), runtime);
|
|
550
|
-
gatewayPassword = String(password ?? "").trim();
|
|
551
|
-
}
|
|
552
|
-
if (authMode === "trusted-proxy") {
|
|
553
|
-
note$1([
|
|
554
|
-
"Trusted proxy mode: moldClaw trusts user identity from a reverse proxy.",
|
|
555
|
-
"The proxy must authenticate users and pass identity via headers.",
|
|
556
|
-
"Only requests from specified proxy IPs will be trusted.",
|
|
557
|
-
"",
|
|
558
|
-
"Common use cases: Pomerium, Caddy + OAuth, Traefik + forward auth",
|
|
559
|
-
"Docs: https://docs.moldclaw.ai/gateway/trusted-proxy-auth"
|
|
560
|
-
].join("\n"), "Trusted Proxy Auth");
|
|
561
|
-
const userHeader = guardCancel(await text$1({
|
|
562
|
-
message: "Header containing user identity",
|
|
563
|
-
placeholder: "x-forwarded-user",
|
|
564
|
-
initialValue: "x-forwarded-user",
|
|
565
|
-
validate: (value) => value?.trim() ? void 0 : "User header is required"
|
|
566
|
-
}), runtime);
|
|
567
|
-
const requiredHeadersRaw = guardCancel(await text$1({
|
|
568
|
-
message: "Required headers (comma-separated, optional)",
|
|
569
|
-
placeholder: "x-forwarded-proto,x-forwarded-host"
|
|
570
|
-
}), runtime);
|
|
571
|
-
const requiredHeaders = requiredHeadersRaw ? String(requiredHeadersRaw).split(",").map((h) => h.trim()).filter(Boolean) : [];
|
|
572
|
-
const allowUsersRaw = guardCancel(await text$1({
|
|
573
|
-
message: "Allowed users (comma-separated, blank = all authenticated users)",
|
|
574
|
-
placeholder: "nick@example.com,admin@company.com"
|
|
575
|
-
}), runtime);
|
|
576
|
-
const allowUsers = allowUsersRaw ? String(allowUsersRaw).split(",").map((u) => u.trim()).filter(Boolean) : [];
|
|
577
|
-
const trustedProxiesRaw = guardCancel(await text$1({
|
|
578
|
-
message: "Trusted proxy IPs (comma-separated)",
|
|
579
|
-
placeholder: "10.0.1.10,192.168.1.5",
|
|
580
|
-
validate: (value) => {
|
|
581
|
-
if (!value || String(value).trim() === "") return "At least one trusted proxy IP is required";
|
|
582
|
-
}
|
|
583
|
-
}), runtime);
|
|
584
|
-
trustedProxies = String(trustedProxiesRaw).split(",").map((ip) => ip.trim()).filter(Boolean);
|
|
585
|
-
trustedProxyConfig = {
|
|
586
|
-
userHeader: String(userHeader).trim(),
|
|
587
|
-
requiredHeaders: requiredHeaders.length > 0 ? requiredHeaders : void 0,
|
|
588
|
-
allowUsers: allowUsers.length > 0 ? allowUsers : void 0
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
const authConfig = buildGatewayAuthConfig({
|
|
592
|
-
existing: next.gateway?.auth,
|
|
593
|
-
mode: authMode,
|
|
594
|
-
token: gatewayToken,
|
|
595
|
-
password: gatewayPassword,
|
|
596
|
-
trustedProxy: trustedProxyConfig
|
|
597
|
-
});
|
|
598
|
-
next = {
|
|
599
|
-
...next,
|
|
600
|
-
gateway: {
|
|
601
|
-
...next.gateway,
|
|
602
|
-
mode: "local",
|
|
603
|
-
port,
|
|
604
|
-
bind,
|
|
605
|
-
auth: authConfig,
|
|
606
|
-
...customBindHost && { customBindHost },
|
|
607
|
-
...trustedProxies && { trustedProxies },
|
|
608
|
-
tailscale: {
|
|
609
|
-
...next.gateway?.tailscale,
|
|
610
|
-
mode: tailscaleMode,
|
|
611
|
-
resetOnExit: tailscaleResetOnExit
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
next = await maybeAddTailnetOriginToControlUiAllowedOrigins({
|
|
616
|
-
config: next,
|
|
617
|
-
tailscaleMode,
|
|
618
|
-
tailscaleBin
|
|
619
|
-
});
|
|
620
|
-
return {
|
|
621
|
-
config: next,
|
|
622
|
-
port,
|
|
623
|
-
token: gatewayTokenForCalls
|
|
624
|
-
};
|
|
625
|
-
}
|
|
626
|
-
//#endregion
|
|
627
|
-
//#region src/commands/configure.wizard.ts
|
|
628
|
-
async function resolveGatewaySecretInputForWizard(params) {
|
|
629
|
-
try {
|
|
630
|
-
return await resolveSetupSecretInputString({
|
|
631
|
-
config: params.cfg,
|
|
632
|
-
value: params.value,
|
|
633
|
-
path: params.path,
|
|
634
|
-
env: process.env
|
|
635
|
-
});
|
|
636
|
-
} catch {
|
|
637
|
-
return;
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
async function runGatewayHealthCheck(params) {
|
|
641
|
-
const localLinks = resolveControlUiLinks({
|
|
642
|
-
bind: params.cfg.gateway?.bind ?? "loopback",
|
|
643
|
-
port: params.port,
|
|
644
|
-
customBindHost: params.cfg.gateway?.customBindHost,
|
|
645
|
-
basePath: void 0
|
|
646
|
-
});
|
|
647
|
-
const remoteUrl = params.cfg.gateway?.remote?.url?.trim();
|
|
648
|
-
const wsUrl = params.cfg.gateway?.mode === "remote" && remoteUrl ? remoteUrl : localLinks.wsUrl;
|
|
649
|
-
const configuredToken = await resolveGatewaySecretInputForWizard({
|
|
650
|
-
cfg: params.cfg,
|
|
651
|
-
value: params.cfg.gateway?.auth?.token,
|
|
652
|
-
path: "gateway.auth.token"
|
|
653
|
-
});
|
|
654
|
-
const configuredPassword = await resolveGatewaySecretInputForWizard({
|
|
655
|
-
cfg: params.cfg,
|
|
656
|
-
value: params.cfg.gateway?.auth?.password,
|
|
657
|
-
path: "gateway.auth.password"
|
|
658
|
-
});
|
|
659
|
-
await waitForGatewayReachable({
|
|
660
|
-
url: wsUrl,
|
|
661
|
-
token: process.env.MOLDCLAW_GATEWAY_TOKEN ?? process.env.MOLDCLAW_GATEWAY_TOKEN ?? configuredToken,
|
|
662
|
-
password: process.env.MOLDCLAW_GATEWAY_PASSWORD ?? process.env.MOLDCLAW_GATEWAY_PASSWORD ?? configuredPassword,
|
|
663
|
-
deadlineMs: 15e3
|
|
664
|
-
});
|
|
665
|
-
try {
|
|
666
|
-
await healthCommand({
|
|
667
|
-
json: false,
|
|
668
|
-
timeoutMs: 1e4
|
|
669
|
-
}, params.runtime);
|
|
670
|
-
} catch (err) {
|
|
671
|
-
params.runtime.error(formatHealthCheckFailure(err));
|
|
672
|
-
note$1([
|
|
673
|
-
"Docs:",
|
|
674
|
-
"https://docs.moldclaw.ai/gateway/health",
|
|
675
|
-
"https://docs.moldclaw.ai/gateway/troubleshooting"
|
|
676
|
-
].join("\n"), "Health check help");
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
async function promptConfigureSection(runtime, hasSelection) {
|
|
680
|
-
return guardCancel(await select$1({
|
|
681
|
-
message: "Select sections to configure",
|
|
682
|
-
options: [...CONFIGURE_SECTION_OPTIONS, {
|
|
683
|
-
value: "__continue",
|
|
684
|
-
label: "Continue",
|
|
685
|
-
hint: hasSelection ? "Done" : "Skip for now"
|
|
686
|
-
}],
|
|
687
|
-
initialValue: CONFIGURE_SECTION_OPTIONS[0]?.value
|
|
688
|
-
}), runtime);
|
|
689
|
-
}
|
|
690
|
-
async function promptChannelMode(runtime) {
|
|
691
|
-
return guardCancel(await select$1({
|
|
692
|
-
message: "Channels",
|
|
693
|
-
options: [{
|
|
694
|
-
value: "configure",
|
|
695
|
-
label: "Configure/link",
|
|
696
|
-
hint: "Add/update channels; disable unselected accounts"
|
|
697
|
-
}, {
|
|
698
|
-
value: "remove",
|
|
699
|
-
label: "Remove channel config",
|
|
700
|
-
hint: "Delete channel tokens/settings from moldclaw.json"
|
|
701
|
-
}],
|
|
702
|
-
initialValue: "configure"
|
|
703
|
-
}), runtime);
|
|
704
|
-
}
|
|
705
|
-
async function promptWebToolsConfig(nextConfig, runtime) {
|
|
706
|
-
const existingSearch = nextConfig.tools?.web?.search;
|
|
707
|
-
const existingFetch = nextConfig.tools?.web?.fetch;
|
|
708
|
-
const { SEARCH_PROVIDER_OPTIONS, resolveExistingKey, hasExistingKey, applySearchKey, hasKeyInEnv } = await import("./onboard-search-Cy8dOq2W.js");
|
|
709
|
-
const defaultProvider = SEARCH_PROVIDER_OPTIONS[0]?.value;
|
|
710
|
-
if (!defaultProvider) throw new Error("No web search providers are registered.");
|
|
711
|
-
const hasKeyForProvider = (provider) => {
|
|
712
|
-
const entry = SEARCH_PROVIDER_OPTIONS.find((e) => e.value === provider);
|
|
713
|
-
if (!entry) return false;
|
|
714
|
-
return hasExistingKey(nextConfig, provider) || hasKeyInEnv(entry);
|
|
715
|
-
};
|
|
716
|
-
const existingProvider = (() => {
|
|
717
|
-
const stored = existingSearch?.provider;
|
|
718
|
-
if (stored && SEARCH_PROVIDER_OPTIONS.some((e) => e.value === stored)) return stored;
|
|
719
|
-
return SEARCH_PROVIDER_OPTIONS.find((e) => hasKeyForProvider(e.value))?.value ?? defaultProvider;
|
|
720
|
-
})();
|
|
721
|
-
note$1([
|
|
722
|
-
"Web search lets your agent look things up online using the `web_search` tool.",
|
|
723
|
-
"Choose a provider and paste your API key.",
|
|
724
|
-
"Docs: https://docs.moldclaw.ai/tools/web"
|
|
725
|
-
].join("\n"), "Web search");
|
|
726
|
-
const enableSearch = guardCancel(await confirm$1({
|
|
727
|
-
message: "Enable web_search?",
|
|
728
|
-
initialValue: existingSearch?.enabled ?? SEARCH_PROVIDER_OPTIONS.some((e) => hasKeyForProvider(e.value))
|
|
729
|
-
}), runtime);
|
|
730
|
-
let nextSearch = {
|
|
731
|
-
...existingSearch,
|
|
732
|
-
enabled: enableSearch
|
|
733
|
-
};
|
|
734
|
-
if (enableSearch) {
|
|
735
|
-
const providerChoice = guardCancel(await select$1({
|
|
736
|
-
message: "Choose web search provider",
|
|
737
|
-
options: SEARCH_PROVIDER_OPTIONS.map((entry) => {
|
|
738
|
-
const configured = hasKeyForProvider(entry.value);
|
|
739
|
-
return {
|
|
740
|
-
value: entry.value,
|
|
741
|
-
label: entry.label,
|
|
742
|
-
hint: configured ? `${entry.hint} · configured` : entry.hint
|
|
743
|
-
};
|
|
744
|
-
}),
|
|
745
|
-
initialValue: existingProvider
|
|
746
|
-
}), runtime);
|
|
747
|
-
nextSearch = {
|
|
748
|
-
...nextSearch,
|
|
749
|
-
provider: providerChoice
|
|
750
|
-
};
|
|
751
|
-
const entry = SEARCH_PROVIDER_OPTIONS.find((e) => e.value === providerChoice);
|
|
752
|
-
const existingKey = resolveExistingKey(nextConfig, providerChoice);
|
|
753
|
-
const keyConfigured = hasExistingKey(nextConfig, providerChoice);
|
|
754
|
-
const envAvailable = entry.envKeys.some((k) => Boolean(process.env[k]?.trim()));
|
|
755
|
-
const envVarNames = entry.envKeys.join(" / ");
|
|
756
|
-
const keyInput = guardCancel(await text$1({
|
|
757
|
-
message: keyConfigured ? envAvailable ? `${entry.label} API key (leave blank to keep current or use ${envVarNames})` : `${entry.label} API key (leave blank to keep current)` : envAvailable ? `${entry.label} API key (paste it here; leave blank to use ${envVarNames})` : `${entry.label} API key`,
|
|
758
|
-
placeholder: keyConfigured ? "Leave blank to keep current" : entry.placeholder
|
|
759
|
-
}), runtime);
|
|
760
|
-
const key = String(keyInput ?? "").trim();
|
|
761
|
-
if (key || existingKey) nextSearch = { ...applySearchKey(nextConfig, providerChoice, key || existingKey).tools?.web?.search };
|
|
762
|
-
else if (keyConfigured || envAvailable) nextSearch = { ...nextSearch };
|
|
763
|
-
else note$1([
|
|
764
|
-
"No key stored yet — web_search won't work until a key is available.",
|
|
765
|
-
`Store a key here or set ${envVarNames} in the Gateway environment.`,
|
|
766
|
-
`Get your API key at: ${entry.signupUrl}`,
|
|
767
|
-
"Docs: https://docs.moldclaw.ai/tools/web"
|
|
768
|
-
].join("\n"), "Web search");
|
|
769
|
-
}
|
|
770
|
-
const enableFetch = guardCancel(await confirm$1({
|
|
771
|
-
message: "Enable web_fetch (keyless HTTP fetch)?",
|
|
772
|
-
initialValue: existingFetch?.enabled ?? true
|
|
773
|
-
}), runtime);
|
|
774
|
-
const nextFetch = {
|
|
775
|
-
...existingFetch,
|
|
776
|
-
enabled: enableFetch
|
|
777
|
-
};
|
|
778
|
-
return {
|
|
779
|
-
...nextConfig,
|
|
780
|
-
tools: {
|
|
781
|
-
...nextConfig.tools,
|
|
782
|
-
web: {
|
|
783
|
-
...nextConfig.tools?.web,
|
|
784
|
-
search: nextSearch,
|
|
785
|
-
fetch: nextFetch
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
}
|
|
790
|
-
async function runConfigureWizard(opts, runtime = defaultRuntime) {
|
|
791
|
-
try {
|
|
792
|
-
printWizardHeader(runtime);
|
|
793
|
-
intro$1(opts.command === "update" ? "moldClaw update wizard" : "moldClaw configure");
|
|
794
|
-
const prompter = createClackPrompter();
|
|
795
|
-
const snapshot = await readConfigFileSnapshot();
|
|
796
|
-
const baseConfig = snapshot.valid ? snapshot.config : {};
|
|
797
|
-
if (snapshot.exists) {
|
|
798
|
-
const title = snapshot.valid ? "Existing config detected" : "Invalid config";
|
|
799
|
-
note$1(summarizeExistingConfig(baseConfig), title);
|
|
800
|
-
if (!snapshot.valid && snapshot.issues.length > 0) note$1([
|
|
801
|
-
...snapshot.issues.map((iss) => `- ${iss.path}: ${iss.message}`),
|
|
802
|
-
"",
|
|
803
|
-
"Docs: https://docs.moldclaw.ai/gateway/configuration"
|
|
804
|
-
].join("\n"), "Config issues");
|
|
805
|
-
if (!snapshot.valid) {
|
|
806
|
-
outro$1(`Config invalid. Run \`${formatCliCommand("moldclaw doctor")}\` to repair it, then re-run configure.`);
|
|
807
|
-
runtime.exit(1);
|
|
808
|
-
return;
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
const localUrl = "ws://127.0.0.1:28789";
|
|
812
|
-
const baseLocalProbeToken = await resolveGatewaySecretInputForWizard({
|
|
813
|
-
cfg: baseConfig,
|
|
814
|
-
value: baseConfig.gateway?.auth?.token,
|
|
815
|
-
path: "gateway.auth.token"
|
|
816
|
-
});
|
|
817
|
-
const baseLocalProbePassword = await resolveGatewaySecretInputForWizard({
|
|
818
|
-
cfg: baseConfig,
|
|
819
|
-
value: baseConfig.gateway?.auth?.password,
|
|
820
|
-
path: "gateway.auth.password"
|
|
821
|
-
});
|
|
822
|
-
const localProbe = await probeGatewayReachable({
|
|
823
|
-
url: localUrl,
|
|
824
|
-
token: process.env.MOLDCLAW_GATEWAY_TOKEN ?? process.env.MOLDCLAW_GATEWAY_TOKEN ?? baseLocalProbeToken,
|
|
825
|
-
password: process.env.MOLDCLAW_GATEWAY_PASSWORD ?? process.env.MOLDCLAW_GATEWAY_PASSWORD ?? baseLocalProbePassword
|
|
826
|
-
});
|
|
827
|
-
const remoteUrl = baseConfig.gateway?.remote?.url?.trim() ?? "";
|
|
828
|
-
const baseRemoteProbeToken = await resolveGatewaySecretInputForWizard({
|
|
829
|
-
cfg: baseConfig,
|
|
830
|
-
value: baseConfig.gateway?.remote?.token,
|
|
831
|
-
path: "gateway.remote.token"
|
|
832
|
-
});
|
|
833
|
-
const remoteProbe = remoteUrl ? await probeGatewayReachable({
|
|
834
|
-
url: remoteUrl,
|
|
835
|
-
token: baseRemoteProbeToken
|
|
836
|
-
}) : null;
|
|
837
|
-
const mode = guardCancel(await select$1({
|
|
838
|
-
message: "Where will the Gateway run?",
|
|
839
|
-
options: [{
|
|
840
|
-
value: "local",
|
|
841
|
-
label: "Local (this machine)",
|
|
842
|
-
hint: localProbe.ok ? `Gateway reachable (${localUrl})` : `No gateway detected (${localUrl})`
|
|
843
|
-
}, {
|
|
844
|
-
value: "remote",
|
|
845
|
-
label: "Remote (info-only)",
|
|
846
|
-
hint: !remoteUrl ? "No remote URL configured yet" : remoteProbe?.ok ? `Gateway reachable (${remoteUrl})` : `Configured but unreachable (${remoteUrl})`
|
|
847
|
-
}]
|
|
848
|
-
}), runtime);
|
|
849
|
-
if (mode === "remote") {
|
|
850
|
-
let remoteConfig = await promptRemoteGatewayConfig(baseConfig, prompter);
|
|
851
|
-
remoteConfig = applyWizardMetadata(remoteConfig, {
|
|
852
|
-
command: opts.command,
|
|
853
|
-
mode
|
|
854
|
-
});
|
|
855
|
-
await writeConfigFile(remoteConfig);
|
|
856
|
-
logConfigUpdated(runtime);
|
|
857
|
-
outro$1("Remote gateway configured.");
|
|
858
|
-
return;
|
|
859
|
-
}
|
|
860
|
-
let nextConfig = { ...baseConfig };
|
|
861
|
-
let didSetGatewayMode = false;
|
|
862
|
-
if (nextConfig.gateway?.mode !== "local") {
|
|
863
|
-
nextConfig = {
|
|
864
|
-
...nextConfig,
|
|
865
|
-
gateway: {
|
|
866
|
-
...nextConfig.gateway,
|
|
867
|
-
mode: "local"
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
didSetGatewayMode = true;
|
|
871
|
-
}
|
|
872
|
-
let workspaceDir = nextConfig.agents?.defaults?.workspace ?? baseConfig.agents?.defaults?.workspace ?? DEFAULT_WORKSPACE;
|
|
873
|
-
let gatewayPort = resolveGatewayPort(baseConfig);
|
|
874
|
-
const persistConfig = async () => {
|
|
875
|
-
nextConfig = applyWizardMetadata(nextConfig, {
|
|
876
|
-
command: opts.command,
|
|
877
|
-
mode
|
|
878
|
-
});
|
|
879
|
-
await writeConfigFile(nextConfig);
|
|
880
|
-
logConfigUpdated(runtime);
|
|
881
|
-
};
|
|
882
|
-
const configureWorkspace = async () => {
|
|
883
|
-
const workspaceInput = guardCancel(await text$1({
|
|
884
|
-
message: "Workspace directory",
|
|
885
|
-
initialValue: workspaceDir
|
|
886
|
-
}), runtime);
|
|
887
|
-
workspaceDir = resolveUserPath(String(workspaceInput ?? "").trim() || DEFAULT_WORKSPACE);
|
|
888
|
-
if (!snapshot.exists) {
|
|
889
|
-
const indicators = [
|
|
890
|
-
"MEMORY.md",
|
|
891
|
-
"memory",
|
|
892
|
-
".git"
|
|
893
|
-
].map((name) => path.join(workspaceDir, name));
|
|
894
|
-
if ((await Promise.all(indicators.map(async (candidate) => {
|
|
895
|
-
try {
|
|
896
|
-
await fs.access(candidate);
|
|
897
|
-
return true;
|
|
898
|
-
} catch {
|
|
899
|
-
return false;
|
|
900
|
-
}
|
|
901
|
-
}))).some(Boolean)) note$1([`Existing workspace detected at ${workspaceDir}`, "Existing files are preserved. Missing templates may be created, never overwritten."].join("\n"), "Existing workspace");
|
|
902
|
-
}
|
|
903
|
-
nextConfig = {
|
|
904
|
-
...nextConfig,
|
|
905
|
-
agents: {
|
|
906
|
-
...nextConfig.agents,
|
|
907
|
-
defaults: {
|
|
908
|
-
...nextConfig.agents?.defaults,
|
|
909
|
-
workspace: workspaceDir
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
|
-
await ensureWorkspaceAndSessions(workspaceDir, runtime);
|
|
914
|
-
};
|
|
915
|
-
const configureChannelsSection = async () => {
|
|
916
|
-
await noteChannelStatus({
|
|
917
|
-
cfg: nextConfig,
|
|
918
|
-
prompter
|
|
919
|
-
});
|
|
920
|
-
if (await promptChannelMode(runtime) === "configure") nextConfig = await setupChannels(nextConfig, runtime, prompter, {
|
|
921
|
-
allowDisable: true,
|
|
922
|
-
allowSignalInstall: true,
|
|
923
|
-
skipConfirm: true,
|
|
924
|
-
skipStatusNote: true
|
|
925
|
-
});
|
|
926
|
-
else nextConfig = await removeChannelConfigWizard(nextConfig, runtime);
|
|
927
|
-
};
|
|
928
|
-
const promptDaemonPort = async () => {
|
|
929
|
-
const portInput = guardCancel(await text$1({
|
|
930
|
-
message: "Gateway port for service install",
|
|
931
|
-
initialValue: String(gatewayPort),
|
|
932
|
-
validate: (value) => Number.isFinite(Number(value)) ? void 0 : "Invalid port"
|
|
933
|
-
}), runtime);
|
|
934
|
-
gatewayPort = Number.parseInt(String(portInput), 10);
|
|
935
|
-
};
|
|
936
|
-
if (opts.sections) {
|
|
937
|
-
const selected = opts.sections;
|
|
938
|
-
if (!selected || selected.length === 0) {
|
|
939
|
-
outro$1("No changes selected.");
|
|
940
|
-
return;
|
|
941
|
-
}
|
|
942
|
-
if (selected.includes("workspace")) await configureWorkspace();
|
|
943
|
-
if (selected.includes("model")) nextConfig = await promptAuthConfig(nextConfig, runtime, prompter);
|
|
944
|
-
if (selected.includes("web")) nextConfig = await promptWebToolsConfig(nextConfig, runtime);
|
|
945
|
-
if (selected.includes("gateway")) {
|
|
946
|
-
const gateway = await promptGatewayConfig(nextConfig, runtime);
|
|
947
|
-
nextConfig = gateway.config;
|
|
948
|
-
gatewayPort = gateway.port;
|
|
949
|
-
}
|
|
950
|
-
if (selected.includes("channels")) await configureChannelsSection();
|
|
951
|
-
if (selected.includes("skills")) {
|
|
952
|
-
const wsDir = resolveUserPath(workspaceDir);
|
|
953
|
-
nextConfig = await setupSkills(nextConfig, wsDir, runtime, prompter);
|
|
954
|
-
}
|
|
955
|
-
await persistConfig();
|
|
956
|
-
if (selected.includes("daemon")) {
|
|
957
|
-
if (!selected.includes("gateway")) await promptDaemonPort();
|
|
958
|
-
await maybeInstallDaemon({
|
|
959
|
-
runtime,
|
|
960
|
-
port: gatewayPort
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
if (selected.includes("health")) await runGatewayHealthCheck({
|
|
964
|
-
cfg: nextConfig,
|
|
965
|
-
runtime,
|
|
966
|
-
port: gatewayPort
|
|
967
|
-
});
|
|
968
|
-
} else {
|
|
969
|
-
let ranSection = false;
|
|
970
|
-
let didConfigureGateway = false;
|
|
971
|
-
while (true) {
|
|
972
|
-
const choice = await promptConfigureSection(runtime, ranSection);
|
|
973
|
-
if (choice === "__continue") break;
|
|
974
|
-
ranSection = true;
|
|
975
|
-
if (choice === "workspace") {
|
|
976
|
-
await configureWorkspace();
|
|
977
|
-
await persistConfig();
|
|
978
|
-
}
|
|
979
|
-
if (choice === "model") {
|
|
980
|
-
nextConfig = await promptAuthConfig(nextConfig, runtime, prompter);
|
|
981
|
-
await persistConfig();
|
|
982
|
-
}
|
|
983
|
-
if (choice === "web") {
|
|
984
|
-
nextConfig = await promptWebToolsConfig(nextConfig, runtime);
|
|
985
|
-
await persistConfig();
|
|
986
|
-
}
|
|
987
|
-
if (choice === "gateway") {
|
|
988
|
-
const gateway = await promptGatewayConfig(nextConfig, runtime);
|
|
989
|
-
nextConfig = gateway.config;
|
|
990
|
-
gatewayPort = gateway.port;
|
|
991
|
-
didConfigureGateway = true;
|
|
992
|
-
await persistConfig();
|
|
993
|
-
}
|
|
994
|
-
if (choice === "channels") {
|
|
995
|
-
await configureChannelsSection();
|
|
996
|
-
await persistConfig();
|
|
997
|
-
}
|
|
998
|
-
if (choice === "skills") {
|
|
999
|
-
const wsDir = resolveUserPath(workspaceDir);
|
|
1000
|
-
nextConfig = await setupSkills(nextConfig, wsDir, runtime, prompter);
|
|
1001
|
-
await persistConfig();
|
|
1002
|
-
}
|
|
1003
|
-
if (choice === "daemon") {
|
|
1004
|
-
if (!didConfigureGateway) await promptDaemonPort();
|
|
1005
|
-
await maybeInstallDaemon({
|
|
1006
|
-
runtime,
|
|
1007
|
-
port: gatewayPort
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
if (choice === "health") await runGatewayHealthCheck({
|
|
1011
|
-
cfg: nextConfig,
|
|
1012
|
-
runtime,
|
|
1013
|
-
port: gatewayPort
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
if (!ranSection) {
|
|
1017
|
-
if (didSetGatewayMode) {
|
|
1018
|
-
await persistConfig();
|
|
1019
|
-
outro$1("Gateway mode set to local.");
|
|
1020
|
-
return;
|
|
1021
|
-
}
|
|
1022
|
-
outro$1("No changes selected.");
|
|
1023
|
-
return;
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
const controlUiAssets = await ensureControlUiAssetsBuilt(runtime);
|
|
1027
|
-
if (!controlUiAssets.ok && controlUiAssets.message) runtime.error(controlUiAssets.message);
|
|
1028
|
-
const links = resolveControlUiLinks({
|
|
1029
|
-
bind: nextConfig.gateway?.bind ?? "loopback",
|
|
1030
|
-
port: gatewayPort,
|
|
1031
|
-
customBindHost: nextConfig.gateway?.customBindHost,
|
|
1032
|
-
basePath: nextConfig.gateway?.controlUi?.basePath
|
|
1033
|
-
});
|
|
1034
|
-
const newPassword = process.env.MOLDCLAW_GATEWAY_PASSWORD ?? process.env.MOLDCLAW_GATEWAY_PASSWORD ?? await resolveGatewaySecretInputForWizard({
|
|
1035
|
-
cfg: nextConfig,
|
|
1036
|
-
value: nextConfig.gateway?.auth?.password,
|
|
1037
|
-
path: "gateway.auth.password"
|
|
1038
|
-
});
|
|
1039
|
-
const oldPassword = process.env.MOLDCLAW_GATEWAY_PASSWORD ?? process.env.MOLDCLAW_GATEWAY_PASSWORD ?? await resolveGatewaySecretInputForWizard({
|
|
1040
|
-
cfg: baseConfig,
|
|
1041
|
-
value: baseConfig.gateway?.auth?.password,
|
|
1042
|
-
path: "gateway.auth.password"
|
|
1043
|
-
});
|
|
1044
|
-
const token = process.env.MOLDCLAW_GATEWAY_TOKEN ?? process.env.MOLDCLAW_GATEWAY_TOKEN ?? await resolveGatewaySecretInputForWizard({
|
|
1045
|
-
cfg: nextConfig,
|
|
1046
|
-
value: nextConfig.gateway?.auth?.token,
|
|
1047
|
-
path: "gateway.auth.token"
|
|
1048
|
-
});
|
|
1049
|
-
let gatewayProbe = await probeGatewayReachable({
|
|
1050
|
-
url: links.wsUrl,
|
|
1051
|
-
token,
|
|
1052
|
-
password: newPassword
|
|
1053
|
-
});
|
|
1054
|
-
if (!gatewayProbe.ok && newPassword !== oldPassword && oldPassword) gatewayProbe = await probeGatewayReachable({
|
|
1055
|
-
url: links.wsUrl,
|
|
1056
|
-
token,
|
|
1057
|
-
password: oldPassword
|
|
1058
|
-
});
|
|
1059
|
-
const gatewayStatusLine = gatewayProbe.ok ? "Gateway: reachable" : `Gateway: not detected${gatewayProbe.detail ? ` (${gatewayProbe.detail})` : ""}`;
|
|
1060
|
-
note$1([
|
|
1061
|
-
`Web UI: ${links.httpUrl}`,
|
|
1062
|
-
`Gateway WS: ${links.wsUrl}`,
|
|
1063
|
-
gatewayStatusLine,
|
|
1064
|
-
"Docs: https://docs.moldclaw.ai/web/control-ui"
|
|
1065
|
-
].join("\n"), "Control UI");
|
|
1066
|
-
outro$1("Configure complete.");
|
|
1067
|
-
} catch (err) {
|
|
1068
|
-
if (err instanceof WizardCancelledError) {
|
|
1069
|
-
runtime.exit(1);
|
|
1070
|
-
return;
|
|
1071
|
-
}
|
|
1072
|
-
throw err;
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
//#endregion
|
|
1076
|
-
//#region src/commands/configure.commands.ts
|
|
1077
|
-
async function configureCommand(runtime = defaultRuntime) {
|
|
1078
|
-
await runConfigureWizard({ command: "configure" }, runtime);
|
|
1079
|
-
}
|
|
1080
|
-
async function configureCommandWithSections(sections, runtime = defaultRuntime) {
|
|
1081
|
-
await runConfigureWizard({
|
|
1082
|
-
command: "configure",
|
|
1083
|
-
sections
|
|
1084
|
-
}, runtime);
|
|
1085
|
-
}
|
|
1086
|
-
async function configureCommandFromSectionsArg(rawSections, runtime = defaultRuntime) {
|
|
1087
|
-
const { sections, invalid } = parseConfigureWizardSections(rawSections);
|
|
1088
|
-
if (sections.length === 0) {
|
|
1089
|
-
await configureCommand(runtime);
|
|
1090
|
-
return;
|
|
1091
|
-
}
|
|
1092
|
-
if (invalid.length > 0) {
|
|
1093
|
-
runtime.error(`Invalid --section: ${invalid.join(", ")}. Expected one of: ${CONFIGURE_WIZARD_SECTIONS.join(", ")}.`);
|
|
1094
|
-
runtime.exit(1);
|
|
1095
|
-
return;
|
|
1096
|
-
}
|
|
1097
|
-
await configureCommandWithSections(sections, runtime);
|
|
1098
|
-
}
|
|
1099
|
-
//#endregion
|
|
1100
|
-
export { buildGatewayAuthConfig as a, runConfigureWizard as i, configureCommandFromSectionsArg as n, CONFIGURE_WIZARD_SECTIONS as o, configureCommandWithSections as r, parseConfigureWizardSections as s, configureCommand as t };
|