@qingchencloud/openclaw-zh 2026.2.12-zh.1 → 2026.2.12-zh.2
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/CHANGELOG.md +2 -0
- package/dist/{acp-cli-uoyHSz0c.js → acp-cli-BIo5C73R.js} +2 -2
- package/dist/{acp-cli-CfKtsvP_.js → acp-cli-mwUNTJKB.js} +2 -2
- package/dist/{agent-Cz57zcuT.js → agent-CRIyzXmq.js} +13 -11
- package/dist/{agent-B5fF_yEn.js → agent-DkJ7dZl8.js} +13 -11
- package/dist/{audio-preflight-BwMtY4ba.js → audio-preflight-Bcffx1-3.js} +7 -7
- package/dist/{audio-preflight-Djim8x69.js → audio-preflight-Bs6PzOXJ.js} +7 -7
- package/dist/{audio-preflight-GAD9YDi4.js → audio-preflight-C1qO9t63.js} +5 -5
- package/dist/{audio-preflight-B2LrwWJW.js → audio-preflight-H6j5U0KI.js} +5 -5
- package/dist/{audit-WOv5QzoK.js → audit-CUmgk0Zg.js} +5 -5
- package/dist/{audit-BM9wBa2X.js → audit-CYu83z-9.js} +5 -5
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +13 -11
- package/dist/bundled/session-memory/handler.js +8 -8
- package/dist/{call-BPtdjkAZ.js → call-CM9p7Dfb.js} +1 -1
- package/dist/{call-BKSz6pj6.js → call-Cm2FBCt5.js} +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +2 -2
- package/dist/{channel-options-BIta-2N3.js → channel-options-BMb6EQmf.js} +1 -1
- package/dist/{channel-options-qwSYaRDh.js → channel-options-BNXXM75U.js} +2 -2
- package/dist/{channels-cli-D6LHAjw4.js → channels-cli-D_6tO7aq.js} +20 -20
- package/dist/{channels-cli-DBaQnKRs.js → channels-cli-JToyofA9.js} +19 -19
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-BAjSW3GK.js → cli-Cz1JaZzb.js} +17 -17
- package/dist/{cli-CkvRlCgK.js → cli-vaHE6Ss0.js} +17 -17
- package/dist/{command-options-CrmQKtT-.js → command-options-DYRvCvYt.js} +2 -2
- package/dist/{commands-BXh64EGn.js → commands-qSV3wLis.js} +1 -1
- package/dist/{completion-cli-D3NphcFT.js → completion-cli-29hSs7Be.js} +1 -1
- package/dist/{completion-cli-Cp9-H23L.js → completion-cli-CQdsmnqz.js} +26 -26
- package/dist/{config-CV7061Gp.js → config-B7W10B0P.js} +2 -1
- package/dist/{config-iQV2cSUl.js → config-Bwm-jWmj.js} +2 -1
- package/dist/{config-BPNGB8pr.js → config-CsgV6hot.js} +2 -1
- package/dist/{config-KNuEIzi2.js → config-DwUoNnvu.js} +2 -1
- package/dist/{config-guard-B_44nDtZ.js → config-guard-D9_It3AA.js} +26 -22
- package/dist/{configure-1v_baBMM.js → configure-B_ZaVlaT.js} +6 -6
- package/dist/{configure-3zqP17iV.js → configure-DRSUMlfQ.js} +6 -6
- package/dist/{control-auth-DgqNWstq.js → control-auth-3TGty6C_.js} +1 -1
- package/dist/{control-auth-CGfuXjF3.js → control-auth-CvHHUNFp.js} +1 -1
- package/dist/{control-service-BQ5nyCH5.js → control-service-44Hpjwl_.js} +2 -2
- package/dist/{control-service-Cw8XTO11.js → control-service-xgm2_RSY.js} +2 -2
- package/dist/control-ui/assets/index-DQnLNukP.js +2 -2
- package/dist/{cron-cli-hP2RHJf-.js → cron-cli-B-moajJN.js} +3 -3
- package/dist/{cron-cli-JHaBaHtk.js → cron-cli-TlF4hwc_.js} +3 -3
- package/dist/{daemon-cli-CpjoayhV.js → daemon-cli-CINUxr51.js} +7 -7
- package/dist/{daemon-cli-BRiPBQMz.js → daemon-cli-DHyesS5N.js} +7 -7
- package/dist/{daemon-runtime-DO8RtLUV.js → daemon-runtime-N8YAnttH.js} +1 -1
- package/dist/{daemon-runtime-D0qVL7Ex.js → daemon-runtime-iSrznGok.js} +1 -1
- package/dist/{deliver-DG6rDoHj.js → deliver-Cfwk8SNA.js} +3 -3
- package/dist/{deliver-1Ctj4pn2.js → deliver-DG_b2sWz.js} +5 -5
- package/dist/{deliver-BJ2dUUvF.js → deliver-MEyBgFMm.js} +5 -5
- package/dist/{deliver-qd2nBfyN.js → deliver-ufxTyb_h.js} +3 -3
- package/dist/{deps-A9Fwu-Cm.js → deps-DFUmprQ6.js} +2 -2
- package/dist/{deps-Dpfghx9h.js → deps-DT6W1A83.js} +2 -2
- package/dist/{devices-cli-CwwaF2ZM.js → devices-cli-Dhld9HSg.js} +2 -2
- package/dist/{devices-cli-DT4S3TnA.js → devices-cli-qzt4c9XH.js} +2 -2
- package/dist/{directory-cli-GpX9tyqD.js → directory-cli-B6a2wmz6.js} +1 -1
- package/dist/{directory-cli-BcRHbTkI.js → directory-cli-DrvNw_9Q.js} +1 -1
- package/dist/{dispatcher-GGAJZUlD.js → dispatcher-Cd598AEP.js} +1 -1
- package/dist/{dns-cli-Bh9uqYpI.js → dns-cli-B1Vw6TBi.js} +1 -1
- package/dist/{dns-cli-Bnr4kGnn.js → dns-cli-DpmPsqbg.js} +1 -1
- package/dist/{doctor-B6qr9DpT.js → doctor-CL1Vk1FP.js} +10 -10
- package/dist/{doctor-BciCZA0K.js → doctor-CT9FseG4.js} +10 -10
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-CArUM33W.js → exec-approvals-cli-D16J-Sqo.js} +4 -4
- package/dist/{exec-approvals-cli-CFcQ-Wa1.js → exec-approvals-cli-DQgdWjVL.js} +4 -4
- package/dist/extensionAPI.js +129 -28
- package/dist/{fetch-CO_1RF5n.js → fetch-BUGtVlvh.js} +1 -1
- package/dist/{fetch-timeout-Bev9aIJ9.js → fetch-timeout-BNXhTVzQ.js} +1 -1
- package/dist/{fetch-timeout--Jglptg_.js → fetch-timeout-CQAXYpkf.js} +1 -1
- package/dist/{fetch-timeout-BlmaoSuw.js → fetch-timeout-ZWIvvTQK.js} +1 -1
- package/dist/{gateway-cli-Dzoh6cWt.js → gateway-cli-BiX4UqWn.js} +45 -39
- package/dist/{gateway-cli-C1PTTKrl.js → gateway-cli-D78VNFTj.js} +44 -38
- package/dist/{gateway-rpc-a9LdbFVI.js → gateway-rpc-BSDURAX_.js} +1 -1
- package/dist/{gateway-rpc-CyGXiuKg.js → gateway-rpc-DtfOsxPK.js} +1 -1
- package/dist/{github-copilot-auth-DarPaoP9.js → github-copilot-auth-B60M4Pk2.js} +3 -3
- package/dist/{github-copilot-auth-N_gPQIVD.js → github-copilot-auth-BuJoinE9.js} +3 -3
- package/dist/{health-format-BqJaalxA.js → health-format-CZ--pwnE.js} +5 -5
- package/dist/{health-format-CtQGRYzt.js → health-format-kTD3mmIm.js} +5 -5
- package/dist/{hooks-cli-C8QheNFT.js → hooks-cli-BBzv7bEl.js} +18 -18
- package/dist/{hooks-cli-1tBuiu0S.js → hooks-cli-DeKUFhbp.js} +18 -18
- package/dist/{image-D1q-FRVA.js → image-BE3W5CBO.js} +2 -2
- package/dist/{image-CB-HvPVx.js → image-D4de_QCI.js} +2 -2
- package/dist/{image-ClorcNXU.js → image-Se69TxM6.js} +2 -2
- package/dist/{image-CWzCKzdo.js → image-UsdV9ukr.js} +2 -2
- package/dist/index.js +43 -39
- package/dist/llm-slug-generator.js +8 -8
- package/dist/{loader-BCWrPsYE.js → loader-CSDol7K7.js} +141 -38
- package/dist/{login-qr-DUd774cC.js → login-qr-ByETC4Ze.js} +1 -1
- package/dist/{login-qr-DpIaUH7B.js → login-qr-DARtJUzz.js} +1 -1
- package/dist/{login-qr-Bwx0rzTE.js → login-qr-DJ1Ty1b5.js} +1 -1
- package/dist/{login-qr-DUq1d7_J.js → login-qr-Dzh1IX4z.js} +1 -1
- package/dist/{logs-cli-C0Tjr-OI.js → logs-cli-BXc1cGrM.js} +3 -3
- package/dist/{logs-cli-BeFoxf1z.js → logs-cli-Cq0_lPmQ.js} +3 -3
- package/dist/{models-cli-X2_PYIyz.js → models-cli-CAqBE2fi.js} +18 -18
- package/dist/{models-cli-BH4YrX_n.js → models-cli-Df30aEOn.js} +18 -18
- package/dist/{node-cli-B3bwDh-z.js → node-cli-BloftuR2.js} +6 -6
- package/dist/{node-cli-tIcs4Y0B.js → node-cli-Dg49HCr9.js} +6 -6
- package/dist/{nodes-cli-DtyeJmEN.js → nodes-cli-Cqx9nEo4.js} +3 -3
- package/dist/{nodes-cli-DmBKcVYF.js → nodes-cli-DkW6V1gh.js} +3 -3
- package/dist/{onboard-channels-CtOXUjmA.js → onboard-channels-C0RLYPhJ.js} +1 -1
- package/dist/{onboard-channels-CjB6HqRq.js → onboard-channels-DBBWvRSH.js} +1 -1
- package/dist/{onboard-skills-BpAxxCQv.js → onboard-skills-CsNz0Wkv.js} +23 -23
- package/dist/{onboard-skills-LxDcwQWg.js → onboard-skills-D6Y95BQU.js} +23 -23
- package/dist/{onboarding-JkaXVms5.js → onboarding-OanncRVz.js} +20 -19
- package/dist/{pairing-cli-CiO-SeXy.js → pairing-cli-CPGQORKI.js} +1 -1
- package/dist/{pairing-cli-DfWRiIFy.js → pairing-cli-Czby0_Z-.js} +1 -1
- package/dist/{pi-embedded-JB3dZIy9.js → pi-embedded-BajpkVXG.js} +129 -28
- package/dist/{pi-embedded-helpers-DW50SuYm.js → pi-embedded-helpers-B-3fAh6o.js} +2 -2
- package/dist/{pi-embedded-helpers-2nvxw7nH.js → pi-embedded-helpers-BIzZ1S6e.js} +8 -2
- package/dist/{pi-embedded-helpers-BIztacG3.js → pi-embedded-helpers-D6YyZfbk.js} +8 -2
- package/dist/{pi-embedded-helpers-BvgEUi1y.js → pi-embedded-helpers-DZNTWfNb.js} +2 -2
- package/dist/{pi-tools.policy-CaSZPybo.js → pi-tools.policy-MOsLvT8R.js} +1 -1
- package/dist/plugin-sdk/auto-reply/reply/memory-flush.d.ts +2 -2
- package/dist/plugin-sdk/auto-reply/templating.d.ts +3 -0
- package/dist/plugin-sdk/config/sessions/types.d.ts +8 -0
- package/dist/plugin-sdk/config/types.slack.d.ts +2 -0
- package/dist/plugin-sdk/config/zod-schema.d.ts +2 -0
- package/dist/plugin-sdk/config/zod-schema.providers-core.d.ts +4 -0
- package/dist/plugin-sdk/config/zod-schema.providers.d.ts +2 -0
- package/dist/plugin-sdk/gateway/session-utils.types.d.ts +1 -0
- package/dist/plugin-sdk/index.js +8 -7
- package/dist/plugin-sdk/slack/monitor/media.d.ts +21 -0
- package/dist/{plugins-cli-BfdQPqDE.js → plugins-cli-CItWSAbg.js} +18 -18
- package/dist/{plugins-cli-DyC4jer1.js → plugins-cli-Dk2G3oHa.js} +18 -18
- package/dist/{program-Du4Tjefh.js → program-4GvkPUxO.js} +37 -37
- package/dist/{register.subclis-CO3DgK_d.js → register.subclis-Ckg92JnL.js} +27 -27
- package/dist/{reply-CCAIJFKJ.js → reply-CzeukZx3.js} +141 -38
- package/dist/{routes-Di5N1dWR.js → routes-B11oJ2uJ.js} +1 -1
- package/dist/{routes-Datjeo5J.js → routes-ebYDJ3hp.js} +1 -1
- package/dist/{rpc-DQKKTrzx.js → rpc-91sUm3lr.js} +1 -1
- package/dist/{rpc-Bg-pctpF.js → rpc-9mbsKNA1.js} +1 -1
- package/dist/{run-main-YabPUHkO.js → run-main-DmVeZxrJ.js} +40 -40
- package/dist/{runner-C_ehVwY4.js → runner-BlBPOkt7.js} +4 -4
- package/dist/{runner-BekVGJBV.js → runner-D2z39olS.js} +4 -4
- package/dist/{runner-BgIgtTF8.js → runner-Dh_HAVq-.js} +4 -4
- package/dist/{runner-wgKAhBdt.js → runner-P4by-a3c.js} +4 -4
- package/dist/{sandbox-B2Qv5ymS.js → sandbox-CkwJYahp.js} +9 -3
- package/dist/{sandbox-C5soKA_G.js → sandbox-DqN_69nG.js} +9 -3
- package/dist/{sandbox-cli-D9bTSwrY.js → sandbox-cli-BLR-Jjoj.js} +3 -3
- package/dist/{sandbox-cli-Bg1wSOT1.js → sandbox-cli-EeKiCI8E.js} +3 -3
- package/dist/{security-cli-VR70eRUR.js → security-cli-DPfghCvK.js} +7 -7
- package/dist/{security-cli-DDI29e0_.js → security-cli-df7Abf4t.js} +7 -7
- package/dist/{server-node-events-BJWVFgPh.js → server-node-events-Cv2Hlk3Q.js} +19 -19
- package/dist/{server-node-events-WHv_dwNH.js → server-node-events-DH61Z7k2.js} +19 -19
- package/dist/{service-audit-X_sdxSbt.js → service-audit-BKZxDDMk.js} +1 -1
- package/dist/{service-audit-BIqC-kB_.js → service-audit-Dj9U3c2F.js} +1 -1
- package/dist/{session-cost-usage-DFU_TQo9.js → session-cost-usage-BJcwIRA3.js} +0 -2
- package/dist/{session-cost-usage-DvUjfv-z.js → session-cost-usage-CeuLjYki.js} +0 -2
- package/dist/{skills-cli-DP8BCHJE.js → skills-cli-4RBHeQ1O.js} +1 -1
- package/dist/{skills-cli-BlrWxOEN.js → skills-cli-BB7WFoBr.js} +1 -1
- package/dist/{status-Bjr8rgLf.js → status-B8yEH2PQ.js} +2 -2
- package/dist/{status-BaCBcDSA.js → status-BLlAKv15.js} +20 -19
- package/dist/{status-DbylXleJ.js → status-QmHMkM20.js} +2 -2
- package/dist/{system-cli-DwajBOvj.js → system-cli--hgfwYsA.js} +3 -3
- package/dist/{system-cli-BycSVFhr.js → system-cli-CSkZVhRO.js} +3 -3
- package/dist/{tui-Qa7_p_-a.js → tui-BNFWBg77.js} +4 -4
- package/dist/{tui-CW0r2N0r.js → tui-b6JyR0_t.js} +4 -4
- package/dist/{tui-cli-CTEOUJrN.js → tui-cli-6c44eLbB.js} +7 -7
- package/dist/{tui-cli-DNPW6d_z.js → tui-cli-D9Msf60Q.js} +7 -7
- package/dist/{tui-formatters-BP8ZpqwB.js → tui-formatters-8yXEPozl.js} +2 -2
- package/dist/{tui-formatters-D2Fo2d-L.js → tui-formatters-W7EC5XW5.js} +2 -2
- package/dist/{update-cli-CMssHovY.js → update-cli-BF9GxtAB.js} +25 -25
- package/dist/{update-cli-BKszbonp.js → update-cli-DQ4jF07H.js} +26 -26
- package/dist/{update-runner-C3VkOnCm.js → update-runner-BjsDLkPY.js} +6 -6
- package/dist/{update-runner-CPkwwgxy.js → update-runner-VnnYRmT8.js} +6 -6
- package/dist/{webhooks-cli-Cr6rnR4l.js → webhooks-cli-BHodhzBA.js} +1 -1
- package/dist/{webhooks-cli-BuKM02H3.js → webhooks-cli-UIBFcn2g.js} +1 -1
- package/dist/{wsl-ClliQjPX.js → wsl-DiUuRIGr.js} +1 -1
- package/docs/channels/pairing.md +1 -1
- package/docs/channels/slack.md +1 -0
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/feishu/src/bot.test.ts +265 -0
- package/extensions/feishu/src/bot.ts +72 -17
- package/extensions/google-antigravity-auth/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +6 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +6 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +6 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +6 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +6 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +6 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +6 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,7 @@ Docs: https://docs.openclaw.ai
|
|
|
17
17
|
- Docs/Mermaid: remove hardcoded Mermaid init theme blocks from four docs diagrams so dark mode inherits readable theme defaults. (#15157) Thanks @heytulsiprasad.
|
|
18
18
|
- Outbound/Threading: pass `replyTo` and `threadId` from `message send` tool actions through the core outbound send path to channel adapters, preserving thread/reply routing. (#14948) Thanks @mcaxtr.
|
|
19
19
|
- Sessions/Agents: pass `agentId` when resolving existing transcript paths in reply runs so non-default agents and heartbeat/chat handlers no longer fail with `Session file path must be within sessions directory`. (#15141) Thanks @Goldenmonstew.
|
|
20
|
+
- Status/Sessions: stop clamping derived `totalTokens` to context-window size, keep prompt-token snapshots wired through session accounting, and surface context usage as unknown when fresh snapshot data is missing to avoid false 100% reports. (#15114) Thanks @echoVic.
|
|
20
21
|
|
|
21
22
|
## 2026.2.12
|
|
22
23
|
|
|
@@ -140,6 +141,7 @@ Docs: https://docs.openclaw.ai
|
|
|
140
141
|
- Sessions: prune stale entries, cap session store size, rotate large stores, accept duration/size thresholds, default to warn-only maintenance, and prune cron run sessions after retention windows. (#13083) Thanks @skyfallsin, @Glucksberg, @gumadeiras.
|
|
141
142
|
- CI: Implement pipeline and workflow order. Thanks @quotentiroler.
|
|
142
143
|
- WhatsApp: preserve original filenames for inbound documents. (#12691) Thanks @akramcodez.
|
|
144
|
+
- Feishu: enforce DM `dmPolicy`/pairing gating and sender allow checks for inbound DMs. (#14876) Thanks @coygeek.
|
|
143
145
|
- Telegram: harden quote parsing; preserve quote context; avoid QUOTE_TEXT_INVALID; avoid nested reply quote misclassification. (#12156) Thanks @rybnikov.
|
|
144
146
|
- Telegram: recover proactive sends when stale topic thread IDs are used by retrying without `message_thread_id`. (#11620)
|
|
145
147
|
- Discord: auto-create forum/media thread posts on send, with chunked follow-up replies and media handling for forum sends. (#12380) Thanks @magendary, @thewilloftheshadow.
|
|
@@ -7,11 +7,11 @@ import "./model-selection-D3HvLP83.js";
|
|
|
7
7
|
import "./github-copilot-token-BW-SEg7E.js";
|
|
8
8
|
import "./boolean-BgXe2hyu.js";
|
|
9
9
|
import "./env-ONzUVAG2.js";
|
|
10
|
-
import { N as VERSION, i as loadConfig } from "./config-
|
|
10
|
+
import { N as VERSION, i as loadConfig } from "./config-DwUoNnvu.js";
|
|
11
11
|
import "./manifest-registry-CQhdnDBZ.js";
|
|
12
12
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BLi2a6Yw.js";
|
|
13
13
|
import { t as GatewayClient } from "./client-BrYfyoDK.js";
|
|
14
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
14
|
+
import { t as buildGatewayConnectionDetails } from "./call-CM9p7Dfb.js";
|
|
15
15
|
import { t as formatDocsLink } from "./links-Eax1UO3w.js";
|
|
16
16
|
import { i as resolveGatewayAuth } from "./auth-CQNl_IaI.js";
|
|
17
17
|
import { t as isMainModule } from "./is-main-BWoXGz7p.js";
|
|
@@ -4,12 +4,12 @@ import "./utils-BLJAc3ZV.js";
|
|
|
4
4
|
import "./exec-CACT5OAW.js";
|
|
5
5
|
import "./agent-scope-DJbuXTpY.js";
|
|
6
6
|
import "./github-copilot-token-Cfs0Wxr8.js";
|
|
7
|
-
import { N as VERSION, i as loadConfig } from "./config-
|
|
7
|
+
import { N as VERSION, i as loadConfig } from "./config-CsgV6hot.js";
|
|
8
8
|
import "./manifest-registry-u0okVSkU.js";
|
|
9
9
|
import { i as resolveGatewayAuth } from "./auth-9x3lqfIY.js";
|
|
10
10
|
import { t as ensureOpenClawCliOnPath } from "./path-env-CLvYNwtL.js";
|
|
11
11
|
import { t as GatewayClient } from "./client-CTwXnRl7.js";
|
|
12
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
12
|
+
import { t as buildGatewayConnectionDetails } from "./call-Cm2FBCt5.js";
|
|
13
13
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-C_MmebBt.js";
|
|
14
14
|
import { t as isMainModule } from "./is-main-qJ675wPV.js";
|
|
15
15
|
import { t as formatDocsLink } from "./links-B8LAzWwg.js";
|
|
@@ -3,18 +3,18 @@ import { C as buildAllowedModelSet, D as isCliProvider, Dt as DEFAULT_PROVIDER,
|
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-Bxe0mWee.js";
|
|
4
4
|
import { d as resolveAgentIdFromSessionKey, l as normalizeAgentId, u as normalizeMainKey } from "./session-key-DVvxnFKg.js";
|
|
5
5
|
import { a as resolveAgentModelPrimary, i as resolveAgentModelFallbacksOverride, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, x as ensureAgentWorkspace } from "./agent-scope-DJbuXTpY.js";
|
|
6
|
-
import { i as loadConfig } from "./config-
|
|
6
|
+
import { i as loadConfig } from "./config-CsgV6hot.js";
|
|
7
7
|
import { a as isInternalMessageChannel, d as resolveMessageChannel, i as isGatewayMessageChannel, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-C_MmebBt.js";
|
|
8
8
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-BVC10PUq.js";
|
|
9
|
-
import { At as runEmbeddedPiAgent, G as setCliSessionId, Gt as AGENT_LANE_NESTED, Ht as registerAgentRunContext, K as runCliAgent, Kt as applyModelOverrideToSessionEntry, Lt as resolveAgentTimeoutMs, Rt as clearAgentRunContext, W as getCliSessionId, X as getRemoteSkillEligibility, Y as resolveSendPolicy, bn as resolveSessionDeliveryTarget, dt as clearSessionAuthProfileOverride, ft as applyVerboseOverride, lt as getSkillsSnapshotVersion, un as lookupContextTokens, wn as runWithModelFallback, yn as resolveOutboundTarget, zt as emitAgentEvent } from "./loader-
|
|
10
|
-
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-
|
|
9
|
+
import { At as runEmbeddedPiAgent, G as setCliSessionId, Gt as AGENT_LANE_NESTED, Ht as registerAgentRunContext, K as runCliAgent, Kt as applyModelOverrideToSessionEntry, Lt as resolveAgentTimeoutMs, Rt as clearAgentRunContext, W as getCliSessionId, X as getRemoteSkillEligibility, Y as resolveSendPolicy, bn as resolveSessionDeliveryTarget, dt as clearSessionAuthProfileOverride, ft as applyVerboseOverride, lt as getSkillsSnapshotVersion, un as lookupContextTokens, wn as runWithModelFallback, yn as resolveOutboundTarget, zt as emitAgentEvent } from "./loader-CSDol7K7.js";
|
|
10
|
+
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-MEyBgFMm.js";
|
|
11
11
|
import { c as resolveStorePath, n as resolveSessionFilePath } from "./paths-C7DmYI5-.js";
|
|
12
|
-
import { H as normalizeThinkLevel, I as formatThinkingLevels, K as supportsXHighThinking, L as formatXHighModelHint, W as normalizeVerboseLevel } from "./pi-embedded-helpers-
|
|
13
|
-
import { A as resolveSessionResetPolicy, D as resolveSessionKey,
|
|
12
|
+
import { H as normalizeThinkLevel, I as formatThinkingLevels, K as supportsXHighThinking, L as formatXHighModelHint, W as normalizeVerboseLevel } from "./pi-embedded-helpers-B-3fAh6o.js";
|
|
13
|
+
import { A as resolveSessionResetPolicy, D as resolveSessionKey, L as resolveExplicitAgentSessionKey, O as evaluateSessionFreshness, T as normalizeAccountId, d as loadSessionStore, g as updateSessionStore, j as resolveSessionResetType, k as resolveChannelResetConfig } from "./sandbox-DqN_69nG.js";
|
|
14
14
|
import { r as buildWorkspaceSkillSnapshot } from "./skills-B_HdHX5J.js";
|
|
15
|
-
import { l as deriveSessionTotalTokens, u as hasNonzeroUsage } from "./session-cost-usage-
|
|
16
|
-
import { _ as loadModelCatalog } from "./runner-
|
|
17
|
-
import { t as createDefaultDeps } from "./deps-
|
|
15
|
+
import { l as deriveSessionTotalTokens, u as hasNonzeroUsage } from "./session-cost-usage-CeuLjYki.js";
|
|
16
|
+
import { _ as loadModelCatalog } from "./runner-P4by-a3c.js";
|
|
17
|
+
import { t as createDefaultDeps } from "./deps-DT6W1A83.js";
|
|
18
18
|
import crypto from "node:crypto";
|
|
19
19
|
|
|
20
20
|
//#region src/cli/outbound-send-deps.ts
|
|
@@ -275,13 +275,15 @@ async function updateSessionStoreAfterAgentRun(params) {
|
|
|
275
275
|
if (hasNonzeroUsage(usage)) {
|
|
276
276
|
const input = usage.input ?? 0;
|
|
277
277
|
const output = usage.output ?? 0;
|
|
278
|
-
|
|
279
|
-
next.outputTokens = output;
|
|
280
|
-
next.totalTokens = deriveSessionTotalTokens({
|
|
278
|
+
const totalTokens = deriveSessionTotalTokens({
|
|
281
279
|
usage,
|
|
282
280
|
contextTokens,
|
|
283
281
|
promptTokens
|
|
284
282
|
}) ?? input;
|
|
283
|
+
next.inputTokens = input;
|
|
284
|
+
next.outputTokens = output;
|
|
285
|
+
next.totalTokens = totalTokens;
|
|
286
|
+
next.totalTokensFresh = true;
|
|
285
287
|
}
|
|
286
288
|
if (compactionsThisRun > 0) next.compactionCount = (entry.compactionCount ?? 0) + compactionsThisRun;
|
|
287
289
|
sessionStore[sessionKey] = next;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { c as defaultRuntime, h as DEFAULT_CHAT_CHANNEL } from "./subsystem-BoExtIHo.js";
|
|
2
|
-
import { J as supportsXHighThinking, K as normalizeVerboseLevel, R as formatThinkingLevels, W as normalizeThinkLevel, z as formatXHighModelHint } from "./pi-embedded-helpers-
|
|
3
|
-
import { Cr as lookupContextTokens, Er as applyVerboseOverride, Ln as registerAgentRunContext, Mn as AGENT_LANE_NESTED, N as resolveOutboundTarget, Nn as clearAgentRunContext, P as resolveSessionDeliveryTarget, Pn as emitAgentEvent, R as runWithModelFallback, Tr as applyModelOverrideToSessionEntry, Vt as getRemoteSkillEligibility, Wr as resolveAgentTimeoutMs, en as getSkillsSnapshotVersion, i as runCliAgent, l as runEmbeddedPiAgent, n as getCliSessionId, r as setCliSessionId, s as resolveSendPolicy, wr as clearSessionAuthProfileOverride } from "./reply-
|
|
2
|
+
import { J as supportsXHighThinking, K as normalizeVerboseLevel, R as formatThinkingLevels, W as normalizeThinkLevel, z as formatXHighModelHint } from "./pi-embedded-helpers-DZNTWfNb.js";
|
|
3
|
+
import { Cr as lookupContextTokens, Er as applyVerboseOverride, Ln as registerAgentRunContext, Mn as AGENT_LANE_NESTED, N as resolveOutboundTarget, Nn as clearAgentRunContext, P as resolveSessionDeliveryTarget, Pn as emitAgentEvent, R as runWithModelFallback, Tr as applyModelOverrideToSessionEntry, Vt as getRemoteSkillEligibility, Wr as resolveAgentTimeoutMs, en as getSkillsSnapshotVersion, i as runCliAgent, l as runEmbeddedPiAgent, n as getCliSessionId, r as setCliSessionId, s as resolveSendPolicy, wr as clearSessionAuthProfileOverride } from "./reply-CzeukZx3.js";
|
|
4
4
|
import { d as resolveAgentIdFromSessionKey, l as normalizeAgentId, u as normalizeMainKey } from "./session-key-BWxPj0z_.js";
|
|
5
5
|
import { a as resolveAgentModelPrimary, i as resolveAgentModelFallbacksOverride, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, x as ensureAgentWorkspace } from "./agent-scope-Dk0mrTXJ.js";
|
|
6
6
|
import { At as DEFAULT_PROVIDER, Ot as DEFAULT_CONTEXT_TOKENS, _t as ensureAuthProfileStore, a as isCliProvider, d as resolveConfiguredModelRef, h as resolveThinkingDefault, kt as DEFAULT_MODEL, o as modelKey, t as buildAllowedModelSet } from "./model-selection-D3HvLP83.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
8
|
-
import { i as loadConfig } from "./config-
|
|
8
|
+
import { i as loadConfig } from "./config-DwUoNnvu.js";
|
|
9
9
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-Qw51VIv3.js";
|
|
10
|
-
import { A as resolveChannelResetConfig,
|
|
11
|
-
import { s as loadModelCatalog } from "./runner-
|
|
10
|
+
import { A as resolveChannelResetConfig, M as resolveSessionResetType, O as resolveSessionKey, R as resolveExplicitAgentSessionKey, T as normalizeAccountId, d as loadSessionStore, g as updateSessionStore, j as resolveSessionResetPolicy, k as evaluateSessionFreshness } from "./sandbox-CkwJYahp.js";
|
|
11
|
+
import { s as loadModelCatalog } from "./runner-D2z39olS.js";
|
|
12
12
|
import { r as buildWorkspaceSkillSnapshot } from "./skills-DMPVuDGM.js";
|
|
13
13
|
import { a as isInternalMessageChannel, d as resolveMessageChannel, i as isGatewayMessageChannel, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-BLi2a6Yw.js";
|
|
14
14
|
import { c as resolveStorePath, n as resolveSessionFilePath } from "./paths-Cx2RmFI-.js";
|
|
15
|
-
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-
|
|
16
|
-
import { l as deriveSessionTotalTokens, u as hasNonzeroUsage } from "./session-cost-usage-
|
|
17
|
-
import { t as createDefaultDeps } from "./deps-
|
|
15
|
+
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-DG_b2sWz.js";
|
|
16
|
+
import { l as deriveSessionTotalTokens, u as hasNonzeroUsage } from "./session-cost-usage-BJcwIRA3.js";
|
|
17
|
+
import { t as createDefaultDeps } from "./deps-DFUmprQ6.js";
|
|
18
18
|
import crypto from "node:crypto";
|
|
19
19
|
|
|
20
20
|
//#region src/cli/outbound-send-deps.ts
|
|
@@ -275,13 +275,15 @@ async function updateSessionStoreAfterAgentRun(params) {
|
|
|
275
275
|
if (hasNonzeroUsage(usage)) {
|
|
276
276
|
const input = usage.input ?? 0;
|
|
277
277
|
const output = usage.output ?? 0;
|
|
278
|
-
|
|
279
|
-
next.outputTokens = output;
|
|
280
|
-
next.totalTokens = deriveSessionTotalTokens({
|
|
278
|
+
const totalTokens = deriveSessionTotalTokens({
|
|
281
279
|
usage,
|
|
282
280
|
contextTokens,
|
|
283
281
|
promptTokens
|
|
284
282
|
}) ?? input;
|
|
283
|
+
next.inputTokens = input;
|
|
284
|
+
next.outputTokens = output;
|
|
285
|
+
next.totalTokens = totalTokens;
|
|
286
|
+
next.totalTokensFresh = true;
|
|
285
287
|
}
|
|
286
288
|
if (compactionsThisRun > 0) next.compactionCount = (entry.compactionCount ?? 0) + compactionsThisRun;
|
|
287
289
|
sessionStore[sessionKey] = next;
|
|
@@ -5,7 +5,7 @@ import "./exec-CACT5OAW.js";
|
|
|
5
5
|
import "./agent-scope-DJbuXTpY.js";
|
|
6
6
|
import "./github-copilot-token-Cfs0Wxr8.js";
|
|
7
7
|
import "./pi-model-discovery-DzEIEgHL.js";
|
|
8
|
-
import "./config-
|
|
8
|
+
import "./config-CsgV6hot.js";
|
|
9
9
|
import "./manifest-registry-u0okVSkU.js";
|
|
10
10
|
import "./server-context-BGpGs3qd.js";
|
|
11
11
|
import "./chrome-foEwx3lN.js";
|
|
@@ -15,14 +15,14 @@ import "./logging-CfEk_PnX.js";
|
|
|
15
15
|
import "./accounts-DCDeFTra.js";
|
|
16
16
|
import "./paths-C7DmYI5-.js";
|
|
17
17
|
import "./redact-Br9GfacZ.js";
|
|
18
|
-
import "./routes-
|
|
19
|
-
import "./pi-embedded-helpers-
|
|
20
|
-
import "./fetch-timeout-
|
|
21
|
-
import "./sandbox-
|
|
18
|
+
import "./routes-ebYDJ3hp.js";
|
|
19
|
+
import "./pi-embedded-helpers-B-3fAh6o.js";
|
|
20
|
+
import "./fetch-timeout-BNXhTVzQ.js";
|
|
21
|
+
import "./sandbox-DqN_69nG.js";
|
|
22
22
|
import "./skills-B_HdHX5J.js";
|
|
23
|
-
import "./image-
|
|
23
|
+
import "./image-D4de_QCI.js";
|
|
24
24
|
import "./tool-display-ClRud3pg.js";
|
|
25
|
-
import { a as runCapability, n as createMediaAttachmentCache, o as isAudioAttachment, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-
|
|
25
|
+
import { a as runCapability, n as createMediaAttachmentCache, o as isAudioAttachment, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-P4by-a3c.js";
|
|
26
26
|
|
|
27
27
|
//#region src/media-understanding/audio-preflight.ts
|
|
28
28
|
/**
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "./paths-DVBShlw6.js";
|
|
2
2
|
import { A as logVerbose, N as shouldLogVerbose } from "./subsystem-BoExtIHo.js";
|
|
3
3
|
import "./utils-Cd9QdCHh.js";
|
|
4
|
-
import "./pi-embedded-helpers-
|
|
4
|
+
import "./pi-embedded-helpers-DZNTWfNb.js";
|
|
5
5
|
import "./exec-YIosokWE.js";
|
|
6
6
|
import "./agent-scope-Dk0mrTXJ.js";
|
|
7
7
|
import "./model-selection-D3HvLP83.js";
|
|
8
8
|
import "./github-copilot-token-BW-SEg7E.js";
|
|
9
9
|
import "./boolean-BgXe2hyu.js";
|
|
10
10
|
import "./env-ONzUVAG2.js";
|
|
11
|
-
import "./config-
|
|
11
|
+
import "./config-DwUoNnvu.js";
|
|
12
12
|
import "./manifest-registry-CQhdnDBZ.js";
|
|
13
13
|
import "./plugins-Qw51VIv3.js";
|
|
14
|
-
import "./sandbox-
|
|
15
|
-
import { a as runCapability, l as isAudioAttachment, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-
|
|
16
|
-
import "./image-
|
|
14
|
+
import "./sandbox-CkwJYahp.js";
|
|
15
|
+
import { a as runCapability, l as isAudioAttachment, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-D2z39olS.js";
|
|
16
|
+
import "./image-UsdV9ukr.js";
|
|
17
17
|
import "./pi-model-discovery-EwKVHlZB.js";
|
|
18
18
|
import "./chrome-Cvr-57lg.js";
|
|
19
19
|
import "./skills-DMPVuDGM.js";
|
|
20
|
-
import "./routes-
|
|
20
|
+
import "./routes-B11oJ2uJ.js";
|
|
21
21
|
import "./server-context-Cl0U0vE3.js";
|
|
22
22
|
import "./message-channel-BLi2a6Yw.js";
|
|
23
23
|
import "./logging-fywhKCmE.js";
|
|
@@ -25,7 +25,7 @@ import "./accounts-DeqIQjo1.js";
|
|
|
25
25
|
import "./paths-Cx2RmFI-.js";
|
|
26
26
|
import "./redact-BRsnXqwD.js";
|
|
27
27
|
import "./tool-display-CZRIDMRm.js";
|
|
28
|
-
import "./fetch-
|
|
28
|
+
import "./fetch-BUGtVlvh.js";
|
|
29
29
|
|
|
30
30
|
//#region src/media-understanding/audio-preflight.ts
|
|
31
31
|
/**
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "./paths-BZtyHNCi.js";
|
|
2
2
|
import "./agent-scope-CzIrFPCY.js";
|
|
3
3
|
import { Y as logVerbose, Z as shouldLogVerbose } from "./exec-B8lXct-k.js";
|
|
4
|
-
import "./pi-embedded-helpers-
|
|
4
|
+
import "./pi-embedded-helpers-D6YyZfbk.js";
|
|
5
5
|
import "./model-auth-a4aBSOeG.js";
|
|
6
|
-
import "./config-
|
|
6
|
+
import "./config-Bwm-jWmj.js";
|
|
7
7
|
import "./github-copilot-token-DkiRbJdR.js";
|
|
8
8
|
import "./pi-model-discovery-DqgqUyAv.js";
|
|
9
9
|
import "./chrome-DBK0k-zW.js";
|
|
10
10
|
import "./paths-Zbzpgrfo.js";
|
|
11
|
-
import "./image-
|
|
11
|
+
import "./image-Se69TxM6.js";
|
|
12
12
|
import "./redact-BrXLgslJ.js";
|
|
13
|
-
import "./fetch-timeout
|
|
14
|
-
import { a as runCapability, l as isAudioAttachment, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-
|
|
13
|
+
import "./fetch-timeout-CQAXYpkf.js";
|
|
14
|
+
import { a as runCapability, l as isAudioAttachment, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-Dh_HAVq-.js";
|
|
15
15
|
|
|
16
16
|
//#region src/media-understanding/audio-preflight.ts
|
|
17
17
|
/**
|
|
@@ -3,15 +3,15 @@ import "./agent-scope-vDqmal6_.js";
|
|
|
3
3
|
import { J as logVerbose, X as shouldLogVerbose } from "./exec-CJFFoM7H.js";
|
|
4
4
|
import "./model-selection-DYQRxo9K.js";
|
|
5
5
|
import "./github-copilot-token-wCk9Fg_E.js";
|
|
6
|
-
import "./pi-embedded-helpers-
|
|
7
|
-
import "./config-
|
|
6
|
+
import "./pi-embedded-helpers-BIzZ1S6e.js";
|
|
7
|
+
import "./config-B7W10B0P.js";
|
|
8
8
|
import "./pi-model-discovery-EhM2JAQo.js";
|
|
9
9
|
import "./chrome-DL0avO8n.js";
|
|
10
10
|
import "./paths-BSvO0qdk.js";
|
|
11
|
-
import "./image-
|
|
11
|
+
import "./image-BE3W5CBO.js";
|
|
12
12
|
import "./redact-BIMJ3ntQ.js";
|
|
13
|
-
import "./fetch-timeout-
|
|
14
|
-
import { a as runCapability, l as isAudioAttachment, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-
|
|
13
|
+
import "./fetch-timeout-ZWIvvTQK.js";
|
|
14
|
+
import { a as runCapability, l as isAudioAttachment, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-BlBPOkt7.js";
|
|
15
15
|
|
|
16
16
|
//#region src/media-understanding/audio-preflight.ts
|
|
17
17
|
/**
|
|
@@ -3,20 +3,20 @@ import { l as normalizeAgentId } from "./session-key-BWxPj0z_.js";
|
|
|
3
3
|
import { n as runExec } from "./exec-YIosokWE.js";
|
|
4
4
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-Dk0mrTXJ.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
6
|
-
import { O as INCLUDE_KEY, k as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-
|
|
6
|
+
import { O as INCLUDE_KEY, k as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-DwUoNnvu.js";
|
|
7
7
|
import { a as MANIFEST_KEY } from "./manifest-registry-CQhdnDBZ.js";
|
|
8
8
|
import { n as listChannelPlugins } from "./plugins-Qw51VIv3.js";
|
|
9
|
-
import {
|
|
9
|
+
import { $ as resolveSandboxConfigForAgent, ct as resolveToolProfilePolicy, tt as resolveSandboxToolPolicyForAgent } from "./sandbox-CkwJYahp.js";
|
|
10
10
|
import { i as loadWorkspaceSkillEntries } from "./skills-DMPVuDGM.js";
|
|
11
11
|
import { n as formatErrorMessage } from "./errors-Bv81hF2P.js";
|
|
12
12
|
import { a as resolveProfile, i as resolveBrowserConfig } from "./server-context-Cl0U0vE3.js";
|
|
13
13
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BLi2a6Yw.js";
|
|
14
14
|
import { t as GatewayClient } from "./client-BrYfyoDK.js";
|
|
15
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
15
|
+
import { t as buildGatewayConnectionDetails } from "./call-CM9p7Dfb.js";
|
|
16
16
|
import { i as readChannelAllowFromStore } from "./pairing-store-D-ShH4yn.js";
|
|
17
|
-
import { c as resolveNativeSkillsEnabled, n as isToolAllowedByPolicies, s as resolveNativeCommandsEnabled } from "./pi-tools.policy-
|
|
17
|
+
import { c as resolveNativeSkillsEnabled, n as isToolAllowedByPolicies, s as resolveNativeCommandsEnabled } from "./pi-tools.policy-MOsLvT8R.js";
|
|
18
18
|
import { i as resolveGatewayAuth } from "./auth-CQNl_IaI.js";
|
|
19
|
-
import { n as resolveBrowserControlAuth } from "./control-auth-
|
|
19
|
+
import { n as resolveBrowserControlAuth } from "./control-auth-CvHHUNFp.js";
|
|
20
20
|
import { t as resolveChannelDefaultAccountId } from "./helpers-HyeZXsnu.js";
|
|
21
21
|
import { t as scanDirectoryWithSummary } from "./skill-scanner-CucvxYhu.js";
|
|
22
22
|
import os from "node:os";
|
|
@@ -3,21 +3,21 @@ import { t as formatCliCommand } from "./command-format-Bxe0mWee.js";
|
|
|
3
3
|
import { l as normalizeAgentId } from "./session-key-DVvxnFKg.js";
|
|
4
4
|
import { n as runExec } from "./exec-CACT5OAW.js";
|
|
5
5
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-DJbuXTpY.js";
|
|
6
|
-
import { O as INCLUDE_KEY, k as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-
|
|
6
|
+
import { O as INCLUDE_KEY, k as MAX_INCLUDE_DEPTH, r as createConfigIO } from "./config-CsgV6hot.js";
|
|
7
7
|
import { a as MANIFEST_KEY } from "./manifest-registry-u0okVSkU.js";
|
|
8
8
|
import { a as resolveBrowserConfig, o as resolveProfile } from "./server-context-BGpGs3qd.js";
|
|
9
9
|
import { i as resolveGatewayAuth } from "./auth-9x3lqfIY.js";
|
|
10
|
-
import { n as resolveBrowserControlAuth } from "./control-auth-
|
|
10
|
+
import { n as resolveBrowserControlAuth } from "./control-auth-3TGty6C_.js";
|
|
11
11
|
import { n as formatErrorMessage } from "./errors-DjZBTJJ3.js";
|
|
12
12
|
import { t as GatewayClient } from "./client-CTwXnRl7.js";
|
|
13
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
13
|
+
import { t as buildGatewayConnectionDetails } from "./call-Cm2FBCt5.js";
|
|
14
14
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-C_MmebBt.js";
|
|
15
15
|
import { n as listChannelPlugins } from "./plugins-BVC10PUq.js";
|
|
16
16
|
import { t as resolveChannelDefaultAccountId } from "./helpers-DdwqKAAS.js";
|
|
17
17
|
import { t as scanDirectoryWithSummary } from "./skill-scanner-rHMtUHtP.js";
|
|
18
|
-
import {
|
|
18
|
+
import { G as resolveSandboxConfigForAgent, et as resolveToolProfilePolicy, q as resolveSandboxToolPolicyForAgent } from "./sandbox-DqN_69nG.js";
|
|
19
19
|
import { i as loadWorkspaceSkillEntries } from "./skills-B_HdHX5J.js";
|
|
20
|
-
import { a as isToolAllowedByPolicies, n as resolveNativeCommandsEnabled, r as resolveNativeSkillsEnabled } from "./commands-
|
|
20
|
+
import { a as isToolAllowedByPolicies, n as resolveNativeCommandsEnabled, r as resolveNativeSkillsEnabled } from "./commands-qSV3wLis.js";
|
|
21
21
|
import { i as readChannelAllowFromStore } from "./pairing-store-BWxRFAek.js";
|
|
22
22
|
import path from "node:path";
|
|
23
23
|
import os from "node:os";
|
package/dist/build-info.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "../../paths-BZtyHNCi.js";
|
|
2
2
|
import { M as normalizeAgentId, N as normalizeMainKey, P as resolveAgentIdFromSessionKey, a as resolveAgentModelPrimary, i as resolveAgentModelFallbacksOverride, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, y as ensureAgentWorkspace } from "../../agent-scope-CzIrFPCY.js";
|
|
3
3
|
import { g as DEFAULT_CHAT_CHANNEL, l as createSubsystemLogger, u as defaultRuntime } from "../../exec-B8lXct-k.js";
|
|
4
|
-
import { J as SILENT_REPLY_TOKEN, a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, m as sendMessageSignal, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "../../deliver-
|
|
5
|
-
import { C as emitAgentEvent, D as sendMessageSlack, E as sendMessageWhatsApp, S as clearAgentRunContext, _ as clearSessionAuthProfileOverride, a as getCliSessionId, b as resolveAgentTimeoutMs, c as resolveOutboundTarget, d as deriveSessionTotalTokens, f as hasNonzeroUsage, g as lookupContextTokens, h as getSkillsSnapshotVersion, i as sendMessageDiscord, l as resolveSessionDeliveryTarget, m as getRemoteSkillEligibility, n as sendMessageIMessage, o as setCliSessionId, p as resolveSendPolicy, r as sendMessageTelegram, s as runCliAgent, t as runEmbeddedPiAgent, u as runWithModelFallback, v as applyModelOverrideToSessionEntry, w as registerAgentRunContext, x as AGENT_LANE_NESTED, y as applyVerboseOverride } from "../../pi-embedded-
|
|
6
|
-
import { $ as updateSessionStore,
|
|
4
|
+
import { J as SILENT_REPLY_TOKEN, a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, m as sendMessageSignal, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "../../deliver-ufxTyb_h.js";
|
|
5
|
+
import { C as emitAgentEvent, D as sendMessageSlack, E as sendMessageWhatsApp, S as clearAgentRunContext, _ as clearSessionAuthProfileOverride, a as getCliSessionId, b as resolveAgentTimeoutMs, c as resolveOutboundTarget, d as deriveSessionTotalTokens, f as hasNonzeroUsage, g as lookupContextTokens, h as getSkillsSnapshotVersion, i as sendMessageDiscord, l as resolveSessionDeliveryTarget, m as getRemoteSkillEligibility, n as sendMessageIMessage, o as setCliSessionId, p as resolveSendPolicy, r as sendMessageTelegram, s as runCliAgent, t as runEmbeddedPiAgent, u as runWithModelFallback, v as applyModelOverrideToSessionEntry, w as registerAgentRunContext, x as AGENT_LANE_NESTED, y as applyVerboseOverride } from "../../pi-embedded-BajpkVXG.js";
|
|
6
|
+
import { $ as updateSessionStore, Gt as buildWorkspaceSkillSnapshot, Ln as getChannelPlugin, Y as loadSessionStore, a as formatXHighModelHint, ct as normalizeAccountId, d as normalizeVerboseLevel, dt as evaluateSessionFreshness, ft as resolveChannelResetConfig, gn as isInternalMessageChannel, hn as isGatewayMessageChannel, i as formatThinkingLevels, l as normalizeThinkLevel, mn as isDeliverableMessageChannel, mt as resolveSessionResetType, p as supportsXHighThinking, pn as INTERNAL_MESSAGE_CHANNEL, pt as resolveSessionResetPolicy, ut as resolveSessionKey, vt as resolveExplicitAgentSessionKey, xn as resolveMessageChannel, yn as normalizeMessageChannel, yt as resolveMainSessionKey, zn as normalizeChannelId } from "../../pi-embedded-helpers-D6YyZfbk.js";
|
|
7
7
|
import { I as DEFAULT_CONTEXT_TOKENS, L as DEFAULT_MODEL, O as resolveThinkingDefault, R as DEFAULT_PROVIDER, S as modelKey, T as resolveConfiguredModelRef, h as ensureAuthProfileStore, v as buildAllowedModelSet, x as isCliProvider } from "../../model-auth-a4aBSOeG.js";
|
|
8
8
|
import { t as formatCliCommand } from "../../command-format-qUVxzqYm.js";
|
|
9
|
-
import { t as loadConfig } from "../../config-
|
|
9
|
+
import { t as loadConfig } from "../../config-Bwm-jWmj.js";
|
|
10
10
|
import "../../github-copilot-token-DkiRbJdR.js";
|
|
11
11
|
import "../../pi-model-discovery-DqgqUyAv.js";
|
|
12
12
|
import "../../chrome-DBK0k-zW.js";
|
|
13
13
|
import { n as resolveSessionFilePath, o as resolveStorePath } from "../../paths-Zbzpgrfo.js";
|
|
14
|
-
import "../../image-
|
|
14
|
+
import "../../image-Se69TxM6.js";
|
|
15
15
|
import "../../manager-uvWYLB0i.js";
|
|
16
16
|
import "../../sqlite-CVNCxBL9.js";
|
|
17
17
|
import "../../redact-BrXLgslJ.js";
|
|
18
|
-
import "../../fetch-timeout
|
|
19
|
-
import { s as loadModelCatalog } from "../../runner-
|
|
20
|
-
import "../../login-qr-
|
|
18
|
+
import "../../fetch-timeout-CQAXYpkf.js";
|
|
19
|
+
import { s as loadModelCatalog } from "../../runner-Dh_HAVq-.js";
|
|
20
|
+
import "../../login-qr-DJ1Ty1b5.js";
|
|
21
21
|
import fs from "node:fs/promises";
|
|
22
22
|
import path from "node:path";
|
|
23
23
|
import crypto from "node:crypto";
|
|
@@ -293,13 +293,15 @@ async function updateSessionStoreAfterAgentRun(params) {
|
|
|
293
293
|
if (hasNonzeroUsage(usage)) {
|
|
294
294
|
const input = usage.input ?? 0;
|
|
295
295
|
const output = usage.output ?? 0;
|
|
296
|
-
|
|
297
|
-
next.outputTokens = output;
|
|
298
|
-
next.totalTokens = deriveSessionTotalTokens({
|
|
296
|
+
const totalTokens = deriveSessionTotalTokens({
|
|
299
297
|
usage,
|
|
300
298
|
contextTokens,
|
|
301
299
|
promptTokens
|
|
302
300
|
}) ?? input;
|
|
301
|
+
next.inputTokens = input;
|
|
302
|
+
next.outputTokens = output;
|
|
303
|
+
next.totalTokens = totalTokens;
|
|
304
|
+
next.totalTokensFresh = true;
|
|
303
305
|
}
|
|
304
306
|
if (compactionsThisRun > 0) next.compactionCount = (entry.compactionCount ?? 0) + compactionsThisRun;
|
|
305
307
|
sessionStore[sessionKey] = next;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { s as resolveStateDir } from "../../paths-BZtyHNCi.js";
|
|
2
2
|
import { P as resolveAgentIdFromSessionKey, s as resolveAgentWorkspaceDir } from "../../agent-scope-CzIrFPCY.js";
|
|
3
3
|
import { l as createSubsystemLogger } from "../../exec-B8lXct-k.js";
|
|
4
|
-
import "../../deliver-
|
|
5
|
-
import { T as hasInterSessionUserProvenance } from "../../pi-embedded-
|
|
6
|
-
import "../../pi-embedded-helpers-
|
|
4
|
+
import "../../deliver-ufxTyb_h.js";
|
|
5
|
+
import { T as hasInterSessionUserProvenance } from "../../pi-embedded-BajpkVXG.js";
|
|
6
|
+
import "../../pi-embedded-helpers-D6YyZfbk.js";
|
|
7
7
|
import "../../model-auth-a4aBSOeG.js";
|
|
8
|
-
import "../../config-
|
|
8
|
+
import "../../config-Bwm-jWmj.js";
|
|
9
9
|
import "../../github-copilot-token-DkiRbJdR.js";
|
|
10
10
|
import "../../pi-model-discovery-DqgqUyAv.js";
|
|
11
11
|
import "../../chrome-DBK0k-zW.js";
|
|
12
12
|
import "../../paths-Zbzpgrfo.js";
|
|
13
|
-
import "../../image-
|
|
13
|
+
import "../../image-Se69TxM6.js";
|
|
14
14
|
import "../../manager-uvWYLB0i.js";
|
|
15
15
|
import "../../sqlite-CVNCxBL9.js";
|
|
16
16
|
import "../../redact-BrXLgslJ.js";
|
|
17
|
-
import "../../fetch-timeout
|
|
18
|
-
import "../../runner-
|
|
19
|
-
import "../../login-qr-
|
|
17
|
+
import "../../fetch-timeout-CQAXYpkf.js";
|
|
18
|
+
import "../../runner-Dh_HAVq-.js";
|
|
19
|
+
import "../../login-qr-DJ1Ty1b5.js";
|
|
20
20
|
import { generateSlugViaLLM } from "../../llm-slug-generator.js";
|
|
21
21
|
import fs from "node:fs/promises";
|
|
22
22
|
import os from "node:os";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as resolveStateDir, o as resolveConfigPath, u as resolveGatewayPort } from "./paths-DVBShlw6.js";
|
|
2
2
|
import { S as shortenHomeInString, b as resolveUserPath, c as ensureDir, t as CONFIG_DIR } from "./utils-Cd9QdCHh.js";
|
|
3
|
-
import { i as loadConfig } from "./config-
|
|
3
|
+
import { i as loadConfig } from "./config-DwUoNnvu.js";
|
|
4
4
|
import { t as pickPrimaryTailnetIPv4 } from "./tailnet-DATIFSsY.js";
|
|
5
5
|
import { s as pickPrimaryLanIPv4 } from "./ws-CHCQHs0F.js";
|
|
6
6
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BLi2a6Yw.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { G as resolveGatewayPort, V as resolveConfigPath, Z as resolveStateDir } from "./entry.js";
|
|
2
2
|
import { s as ensureDir, t as CONFIG_DIR, x as shortenHomeInString, y as resolveUserPath } from "./utils-BLJAc3ZV.js";
|
|
3
|
-
import { i as loadConfig } from "./config-
|
|
3
|
+
import { i as loadConfig } from "./config-CsgV6hot.js";
|
|
4
4
|
import { t as pickPrimaryTailnetIPv4 } from "./tailnet-CL5GtL7t.js";
|
|
5
5
|
import { s as pickPrimaryLanIPv4 } from "./ws-C0k_dhCP.js";
|
|
6
6
|
import { Et as PROTOCOL_VERSION, Ft as normalizeFingerprint, Lt as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-CTwXnRl7.js";
|
|
@@ -17787,7 +17787,7 @@ if (!customElements.get("openclaw-a2ui-host")) {
|
|
|
17787
17787
|
'use strict';
|
|
17788
17788
|
|
|
17789
17789
|
// 面板数据(构建时会被替换为实际数据)
|
|
17790
|
-
const PANEL_DATA = {"faq": [{"id": "quick-start", "question": "新手入门:如何开始使用?", "answer": "第一步:运行初始化向导\n```\nopenclaw onboard\n```\n\n向导会引导你完成:\n1. 选择 AI 模型提供商\n2. 配置 API 密钥\n3. 设置聊天通道\n\n第二步:启动服务\n```\nopenclaw\n```\n\n第三步:访问 Dashboard\n打开 http://localhost:18789"}, {"id": "config-ai-model", "question": "如何配置 AI 模型?", "answer": "方法1:通过向导配置(推荐)\n```\nopenclaw onboard\n```\n\n方法2:命令行配置\n```\n# 设置 Claude(推荐)\nopenclaw config set agents.default.model anthropic/claude-sonnet-4-20250514\nopenclaw config set auth.anthropic.apiKey sk-ant-xxx\n\n# 设置 GPT-4\nopenclaw config set agents.default.model openai/gpt-4o\nopenclaw config set auth.openai.apiKey sk-xxx\n```\n\n查看当前配置\n```\nopenclaw config get agents.default.model\n```"}, {"id": "config-api-key", "question": "如何配置 API Key?", "answer": "Anthropic (Claude)\n```\nopenclaw config set auth.anthropic.apiKey sk-ant-xxx\n```\n获取地址:https://console.anthropic.com/\n\nOpenAI (GPT)\n```\nopenclaw config set auth.openai.apiKey sk-xxx\n```\n获取地址:https://platform.openai.com/\n\n智谱 GLM(需安装插件)\n```\nnpm install -g @qingchencloud/openclaw-zhipu\nopenclaw config set auth.zhipu.apiKey xxx\n```\n获取地址:https://open.bigmodel.cn/"}, {"id": "config-whatsapp", "question": "如何配置 WhatsApp 渠道?", "answer": "1. 进入 Dashboard → 渠道 → WhatsApp\n2. 点击「设置」按钮\n3. 使用手机 WhatsApp 扫描二维码\n4. 等待连接成功\n\n命令行方式:\n```\nopenclaw channels add whatsapp\n```\n\n注意:需要保持 WhatsApp 手机在线"}, {"id": "config-telegram", "question": "如何配置 Telegram 渠道?", "answer": "1. 在 Telegram 找 @BotFather 创建机器人\n2. 获取 Bot Token\n3. 配置到 OpenClaw:\n```\nopenclaw config set channels.telegram.botToken YOUR_BOT_TOKEN\n```\n\n或在 Dashboard → 渠道 → Telegram 中配置"}, {"id": "secure-context", "question": "显示 requires HTTPS or localhost 怎么办?", "answer": "这是浏览器安全限制。通过局域网 IP 访问时,必须设置 Token 认证。\n\nDocker 环境:\n```\ndocker exec openclaw-test openclaw config set gateway.auth.token 你的密码\ndocker restart openclaw-test\n```\n\nnpm 安装环境:\n```\nopenclaw config set gateway.auth.token 你的密码\nopenclaw gateway restart\n```\n\n然后在 Dashboard 登录页面的「网关令牌」输入框填入你设置的密码。\n\n或者直接用 localhost:18789 访问(仅限本机)。"}, {"id": "token-mismatch", "question": "显示 gateway token mismatch 怎么办?", "answer": "这是 Token 认证失败。请使用命令 openclaw dashboard 自动打开带 token 的 URL。\n\nDocker 环境下:\n```\ndocker exec openclaw openclaw dashboard --print-url\n```\n复制输出的 URL 到浏览器打开。"}, {"id": "pairing-required", "question": "连接显示 pairing required 怎么办?", "answer": "这是设备配对安全机制。解决步骤:\n\n1. 查看待配对设备:\n```\ndocker exec openclaw openclaw devices list --password '你的密码'\n```\n\n2. 批准配对请求:\n```\ndocker exec openclaw openclaw devices approve <Request-ID>\n```\n\n3. 在 Dashboard 点击「连接」按钮"}, {"id": "remote-access", "question": "远程访问 Dashboard 连不上?", "answer": "通过 HTTP 远程访问需要设置 Token 认证:\n\n```\ndocker exec openclaw openclaw config set gateway.auth.token YOUR_TOKEN\ndocker restart openclaw\n```\n\n然后打开 http://服务器IP:18789,在「网关令牌」输入框填入 token。"}, {"id": "docker-restart", "question": "Docker 容器一直重启?", "answer": "通常是没有初始化配置。先查看日志:\n```\ndocker logs openclaw\n```\n\n如果提示 Missing config,按以下步骤重新配置:\n```\ndocker stop openclaw && docker rm openclaw\ndocker run --rm -v openclaw-data:/root/.openclaw IMAGE openclaw setup\ndocker run --rm -v openclaw-data:/root/.openclaw IMAGE openclaw config set gateway.mode local\n```"}, {"id": "lan-access", "question": "npm 安装后内网其他电脑无法访问?", "answer": "默认情况下 Gateway 只监听本机,需要配置监听所有网络接口:\n\n```\nopenclaw config set gateway.bind lan\nopenclaw config set gateway.auth.token '你的密码'\nopenclaw gateway restart\n```\n\n如果还是无法访问,检查防火墙是否放行 18789 端口。"}, {"id": "icon-missing", "question": "图标不显示?", "answer": "更新到最新版即可:\n```\nnpm update -g @qingchencloud/openclaw-zh\n```"}, {"id": "still-english", "question": "安装后运行还是英文?", "answer": "先卸载原版,再安装汉化版:\n```\nnpm uninstall -g openclaw\nnpm install -g @qingchencloud/openclaw-zh@latest\n```"}, {"id": "config-shengsuanyun", "question": "如何配置胜算云 API(国内聚合平台)?", "answer": "胜算云是国内 API 聚合平台,支持多种 AI 模型。新用户注册可获赠体验金(限时活动,详情以官网为准)。\n\n方法1:通过向导配置\n```\nopenclaw onboard\n```\n选择「胜算云」即可。\n\n方法2:命令行配置(推荐)\n```\nopenclaw onboard --non-interactive --accept-risk --auth-choice shengsuanyun-api-key --shengsuanyun-api-key YOUR_API_KEY --no-install-daemon\nopenclaw config set agents.defaults.model.primary \"shengsuanyun/openai/gpt-4.1-nano\"\n```\n\n方法3:Dashboard AI 创作面板\n打开功能面板 → AI 创作 → 输入 API Key\n\n获取 API Key:https://
|
|
17790
|
+
const PANEL_DATA = {"faq": [{"id": "quick-start", "question": "新手入门:如何开始使用?", "answer": "第一步:运行初始化向导\n```\nopenclaw onboard\n```\n\n向导会引导你完成:\n1. 选择 AI 模型提供商\n2. 配置 API 密钥\n3. 设置聊天通道\n\n第二步:启动服务\n```\nopenclaw\n```\n\n第三步:访问 Dashboard\n打开 http://localhost:18789"}, {"id": "config-ai-model", "question": "如何配置 AI 模型?", "answer": "方法1:通过向导配置(推荐)\n```\nopenclaw onboard\n```\n\n方法2:命令行配置\n```\n# 设置 Claude(推荐)\nopenclaw config set agents.default.model anthropic/claude-sonnet-4-20250514\nopenclaw config set auth.anthropic.apiKey sk-ant-xxx\n\n# 设置 GPT-4\nopenclaw config set agents.default.model openai/gpt-4o\nopenclaw config set auth.openai.apiKey sk-xxx\n```\n\n查看当前配置\n```\nopenclaw config get agents.default.model\n```"}, {"id": "config-api-key", "question": "如何配置 API Key?", "answer": "Anthropic (Claude)\n```\nopenclaw config set auth.anthropic.apiKey sk-ant-xxx\n```\n获取地址:https://console.anthropic.com/\n\nOpenAI (GPT)\n```\nopenclaw config set auth.openai.apiKey sk-xxx\n```\n获取地址:https://platform.openai.com/\n\n智谱 GLM(需安装插件)\n```\nnpm install -g @qingchencloud/openclaw-zhipu\nopenclaw config set auth.zhipu.apiKey xxx\n```\n获取地址:https://open.bigmodel.cn/"}, {"id": "config-whatsapp", "question": "如何配置 WhatsApp 渠道?", "answer": "1. 进入 Dashboard → 渠道 → WhatsApp\n2. 点击「设置」按钮\n3. 使用手机 WhatsApp 扫描二维码\n4. 等待连接成功\n\n命令行方式:\n```\nopenclaw channels add whatsapp\n```\n\n注意:需要保持 WhatsApp 手机在线"}, {"id": "config-telegram", "question": "如何配置 Telegram 渠道?", "answer": "1. 在 Telegram 找 @BotFather 创建机器人\n2. 获取 Bot Token\n3. 配置到 OpenClaw:\n```\nopenclaw config set channels.telegram.botToken YOUR_BOT_TOKEN\n```\n\n或在 Dashboard → 渠道 → Telegram 中配置"}, {"id": "secure-context", "question": "显示 requires HTTPS or localhost 怎么办?", "answer": "这是浏览器安全限制。通过局域网 IP 访问时,必须设置 Token 认证。\n\nDocker 环境:\n```\ndocker exec openclaw-test openclaw config set gateway.auth.token 你的密码\ndocker restart openclaw-test\n```\n\nnpm 安装环境:\n```\nopenclaw config set gateway.auth.token 你的密码\nopenclaw gateway restart\n```\n\n然后在 Dashboard 登录页面的「网关令牌」输入框填入你设置的密码。\n\n或者直接用 localhost:18789 访问(仅限本机)。"}, {"id": "token-mismatch", "question": "显示 gateway token mismatch 怎么办?", "answer": "这是 Token 认证失败。请使用命令 openclaw dashboard 自动打开带 token 的 URL。\n\nDocker 环境下:\n```\ndocker exec openclaw openclaw dashboard --print-url\n```\n复制输出的 URL 到浏览器打开。"}, {"id": "pairing-required", "question": "连接显示 pairing required 怎么办?", "answer": "这是设备配对安全机制。解决步骤:\n\n1. 查看待配对设备:\n```\ndocker exec openclaw openclaw devices list --password '你的密码'\n```\n\n2. 批准配对请求:\n```\ndocker exec openclaw openclaw devices approve <Request-ID>\n```\n\n3. 在 Dashboard 点击「连接」按钮"}, {"id": "remote-access", "question": "远程访问 Dashboard 连不上?", "answer": "通过 HTTP 远程访问需要设置 Token 认证:\n\n```\ndocker exec openclaw openclaw config set gateway.auth.token YOUR_TOKEN\ndocker restart openclaw\n```\n\n然后打开 http://服务器IP:18789,在「网关令牌」输入框填入 token。"}, {"id": "docker-restart", "question": "Docker 容器一直重启?", "answer": "通常是没有初始化配置。先查看日志:\n```\ndocker logs openclaw\n```\n\n如果提示 Missing config,按以下步骤重新配置:\n```\ndocker stop openclaw && docker rm openclaw\ndocker run --rm -v openclaw-data:/root/.openclaw IMAGE openclaw setup\ndocker run --rm -v openclaw-data:/root/.openclaw IMAGE openclaw config set gateway.mode local\n```"}, {"id": "lan-access", "question": "npm 安装后内网其他电脑无法访问?", "answer": "默认情况下 Gateway 只监听本机,需要配置监听所有网络接口:\n\n```\nopenclaw config set gateway.bind lan\nopenclaw config set gateway.auth.token '你的密码'\nopenclaw gateway restart\n```\n\n如果还是无法访问,检查防火墙是否放行 18789 端口。"}, {"id": "icon-missing", "question": "图标不显示?", "answer": "更新到最新版即可:\n```\nnpm update -g @qingchencloud/openclaw-zh\n```"}, {"id": "still-english", "question": "安装后运行还是英文?", "answer": "先卸载原版,再安装汉化版:\n```\nnpm uninstall -g openclaw\nnpm install -g @qingchencloud/openclaw-zh@latest\n```"}, {"id": "config-shengsuanyun", "question": "如何配置胜算云 API(国内聚合平台)?", "answer": "胜算云是国内 API 聚合平台,支持多种 AI 模型。新用户注册可获赠体验金(限时活动,详情以官网为准)。\n\n方法1:通过向导配置\n```\nopenclaw onboard\n```\n选择「胜算云」即可。\n\n方法2:命令行配置(推荐)\n```\nopenclaw onboard --non-interactive --accept-risk --auth-choice shengsuanyun-api-key --shengsuanyun-api-key YOUR_API_KEY --no-install-daemon\nopenclaw config set agents.defaults.model.primary \"shengsuanyun/openai/gpt-4.1-nano\"\n```\n\n方法3:Dashboard AI 创作面板\n打开功能面板 → AI 创作 → 输入 API Key\n\n获取 API Key:https://www.shengsuanyun.com/?from=CH_4BVI0BM2"}, {"id": "how-to-update", "question": "如何更新到最新版?", "answer": "npm 环境:\n```\nnpm update -g @qingchencloud/openclaw-zh\n```\n\nDocker 环境:\n```\ndocker pull ghcr.io/1186258278/openclaw-zh:latest\ndocker stop openclaw && docker rm openclaw\n# 重新启动容器\n```"}], "plugins": [{"id": "updater", "name": "OpenClaw 自动更新器", "description": "为 OpenClaw 添加自动检测更新和一键升级功能", "version": "1.0.0", "status": "available", "install": "npm install -g @qingchencloud/openclaw-updater", "aiPrompt": "请帮我安装 @qingchencloud/openclaw-updater 插件,这是 OpenClaw 汉化版的自动更新插件"}, {"id": "zhipu-provider", "name": "智谱 GLM 模型提供商", "description": "为 OpenClaw 添加智谱 GLM-4 系列模型支持,包括 GLM-4-Plus、GLM-4-Flash(免费)等", "version": "1.0.0", "status": "available", "install": "npm install -g @qingchencloud/openclaw-zhipu", "aiPrompt": "请帮我安装 @qingchencloud/openclaw-zhipu 插件,我想使用智谱 GLM 模型"}, {"id": "deepseek-provider", "name": "DeepSeek 模型提供商", "description": "为 OpenClaw 添加 DeepSeek-V3 模型支持", "version": "待开发", "status": "coming-soon", "install": "", "aiPrompt": ""}, {"id": "qwen-provider", "name": "通义千问模型提供商", "description": "为 OpenClaw 添加阿里通义千问 Qwen 系列模型支持", "version": "待开发", "status": "coming-soon", "install": "", "aiPrompt": ""}], "provider": {"name": "胜算云", "description": "国内 API 聚合平台,支持多种 AI 模型", "website": "https://www.shengsuanyun.com", "apiKeyUrl": "https://www.shengsuanyun.com/?from=CH_4BVI0BM2", "affiliateParam": "from=CH_4BVI0BM2", "apiBase": "https://router.shengsuanyun.com/api/v1", "modelsApi": "https://router.shengsuanyun.com/api/v1/models", "multimodalApi": "https://router.shengsuanyun.com/api/v1/models/multimodal", "defaultLlmModel": "openai/gpt-4.1-nano", "defaultImageModel": "ali/z-image-turbo", "defaultVideoModel": "google/veo3.1-fast-preview", "defaultAudioModel": "runway/eleven_text_to_sound_v2", "preferredLlmModels": ["openai/gpt-4.1-nano", "openai/o4-mini", "deepseek/deepseek-v3.2", "anthropic/claude-sonnet-4.5", "google/gemini-2.5-flash"], "modelCacheTtlMs": 300000, "multimodalEnabled": true, "multimodalBadgeText": "内测中", "promoText": "🎁 新用户送10元", "promoNote": "限时活动,详情以官网为准", "getKeyText": "点此获取 API Key", "footerText": "生成的内容仅供参考 · API 费用由胜算云收取", "footerLink": "了解更多", "cooperationLink": "", "cooperationText": "商务合作"}, "about": {"project": "OpenClaw 汉化发行版", "company": "武汉晴辰天下网络科技有限公司", "website": "https://openclaw.qt.cool/", "github": "https://github.com/1186258278/OpenClawChineseTranslation", "npm": "https://www.npmjs.com/package/@qingchencloud/openclaw-zh", "companyWebsite": "https://qingchencloud.com/", "license": "MIT License"}};
|
|
17791
17791
|
|
|
17792
17792
|
// 图标 SVG
|
|
17793
17793
|
const ICONS = {
|
|
@@ -18021,7 +18021,7 @@ if (!customElements.get("openclaw-a2ui-host")) {
|
|
|
18021
18021
|
const SSY_MODELS_API = SSY_PROVIDER.modelsApi || 'https://router.shengsuanyun.com/api/v1/models';
|
|
18022
18022
|
const SSY_MULTIMODAL_API = SSY_PROVIDER.multimodalApi || 'https://router.shengsuanyun.com/api/v1/models/multimodal';
|
|
18023
18023
|
const SSY_WEBSITE = SSY_PROVIDER.website || 'https://www.shengsuanyun.com';
|
|
18024
|
-
const SSY_API_KEY_URL = SSY_PROVIDER.apiKeyUrl || 'https://
|
|
18024
|
+
const SSY_API_KEY_URL = SSY_PROVIDER.apiKeyUrl || 'https://shengsuanyun.com/?from=CH_4BVI0BM2';
|
|
18025
18025
|
const SSY_AFFILIATE_PARAM = SSY_PROVIDER.affiliateParam || 'from=CH_4BVI0BM2';
|
|
18026
18026
|
const SSY_PROMO_TEXT = SSY_PROVIDER.promoText || '🎁 新用户送10元';
|
|
18027
18027
|
const SSY_PROMO_NOTE = SSY_PROVIDER.promoNote || '';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { et as CHAT_CHANNEL_ORDER, n as isTruthyEnvValue } from "./entry.js";
|
|
2
2
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-BgogPY8p.js";
|
|
3
3
|
import { n as listChannelPlugins } from "./plugins-BVC10PUq.js";
|
|
4
|
-
import { n as ensurePluginRegistryLoaded } from "./command-options-
|
|
4
|
+
import { n as ensurePluginRegistryLoaded } from "./command-options-DYRvCvYt.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/channel-options.ts
|
|
7
7
|
function dedupe(values) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as getActivePluginRegistry, m as CHAT_CHANNEL_ORDER, t as createSubsystemLogger } from "./subsystem-BoExtIHo.js";
|
|
2
|
-
import { dt as loadOpenClawPlugins } from "./reply-
|
|
2
|
+
import { dt as loadOpenClawPlugins } from "./reply-CzeukZx3.js";
|
|
3
3
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-Dk0mrTXJ.js";
|
|
4
4
|
import { t as isTruthyEnvValue } from "./env-ONzUVAG2.js";
|
|
5
|
-
import { i as loadConfig } from "./config-
|
|
5
|
+
import { i as loadConfig } from "./config-DwUoNnvu.js";
|
|
6
6
|
import { n as listChannelPlugins } from "./plugins-Qw51VIv3.js";
|
|
7
7
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-DSrxJ2PG.js";
|
|
8
8
|
|