@lawpath-tech/openclaw 2026.2.21-10 → 2026.2.21-12
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/{agents-XFUpnhyw.js → agents-Acsw6oEr.js} +4 -4
- package/dist/{agents.config-DjELUleJ.js → agents.config-BAILtL0e.js} +1 -1
- package/dist/{agents.config-CTbtf-Et.js → agents.config-DA4Kt9C5.js} +1 -1
- package/dist/{audio-preflight-Bqg8wRF0.js → audio-preflight-BnwMjf3g.js} +3 -3
- package/dist/{audio-preflight-0nE4BIvV.js → audio-preflight-C56sndLt.js} +4 -4
- package/dist/{audio-preflight-DUN77LMG.js → audio-preflight-DTxmK1ti.js} +3 -3
- package/dist/{audio-preflight-DESlWRvS.js → audio-preflight-UmMU18Rf.js} +3 -3
- package/dist/{auth-choice-C-VbNMFC.js → auth-choice-B0ExtimG.js} +1 -1
- package/dist/{auth-choice-Ce5ZhgZB.js → auth-choice-Cc9nPCSG.js} +1 -1
- package/dist/{banner-BO0EC6gi.js → banner-l8hdGVT6.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +5 -5
- package/dist/bundled/session-memory/handler.js +5 -5
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-Dnl_ON0t.js → channel-options-BOgY_qkz.js} +1 -1
- package/dist/{channel-options-CJ562Awb.js → channel-options-DU0lH77F.js} +1 -1
- package/dist/{channel-web-C6by66Ik.js → channel-web-Bn_o0ClJ.js} +2 -2
- package/dist/{channels-cli-DmemjJTj.js → channels-cli-B8iPHVyY.js} +8 -8
- package/dist/{channels-cli-CX3e33oJ.js → channels-cli-HyoLT0X_.js} +8 -8
- package/dist/{chrome-Cag1SQQf.js → chrome-EGHj-WC_.js} +7 -7
- package/dist/{cli-CZYqgXep.js → cli-BjW27QBR.js} +5 -5
- package/dist/{cli-C-oUtdv5.js → cli-CB8wKUFa.js} +5 -5
- package/dist/{command-registry-DPgcpkAs.js → command-registry-hszLgVfh.js} +9 -9
- package/dist/{completion-cli-BIW77wm1.js → completion-cli-BTOzPrOy.js} +2 -2
- package/dist/{completion-cli-B8nHppfQ.js → completion-cli-jFF5jQZF.js} +1 -1
- package/dist/{config-cli-DLSqMYRk.js → config-cli-CV3y1IAq.js} +1 -1
- package/dist/{config-cli-DF3Frhtb.js → config-cli-Cuv_T0Jj.js} +1 -1
- package/dist/{configure-DIlxSV4l.js → configure-80FWz9jT.js} +3 -3
- package/dist/{configure-ku8C0kaJ.js → configure-BHGABgNw.js} +3 -3
- package/dist/control-ui/assets/{index-Cx1_w3YP.js → index-BfDl8X4O.js} +2 -2
- package/dist/control-ui/assets/index-BfDl8X4O.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/{deliver-D3HyJhTX.js → deliver-B1Ddgm7X.js} +11 -6
- package/dist/{deliver-CX6Se-jI.js → deliver-BLkQFTzD.js} +11 -6
- package/dist/{deliver-Ct_AlJg5.js → deliver-J2cVd3TS.js} +11 -6
- package/dist/{deliver-BAjdrEoI.js → deliver-meQdcFaA.js} +11 -6
- package/dist/{doctor-completion-Dqrz2Mxm.js → doctor-completion-BSCz_dGZ.js} +1 -1
- package/dist/{doctor-completion-BpvOQ6nZ.js → doctor-completion-DGHNIbJN.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{gateway-cli-eWm9cU71.js → gateway-cli-DYYSJuSK.js} +13 -13
- package/dist/{gateway-cli-DbV5glYW.js → gateway-cli-gLp4lZSu.js} +13 -13
- package/dist/{health-DxhXaHDj.js → health-BfWYn33I.js} +2 -2
- package/dist/{health-TlGblGrz.js → health-DEibfTDK.js} +2 -2
- package/dist/{hooks-cli-DN_-ZC-d.js → hooks-cli-D-nL8J6w.js} +6 -6
- package/dist/{hooks-cli-CNBIyMVL.js → hooks-cli-wQnxbc8T.js} +6 -6
- package/dist/{image-D-DzmVjC.js → image-BZOs5dHY.js} +2 -2
- package/dist/{image-CvBYo9Bu.js → image-C8HOu4vb.js} +2 -2
- package/dist/{image-paXd6zl5.js → image-Cj9tfO74.js} +2 -2
- package/dist/{image-Cgalj9ct.js → image-DuT8yGCI.js} +2 -2
- package/dist/index.js +10 -10
- package/dist/llm-slug-generator.js +5 -5
- package/dist/{models-CSk9HAo_.js → models-DFRcZ415.js} +2 -2
- package/dist/{models-cli-Cw6yV7Hw.js → models-cli-CwEUrjU_.js} +7 -7
- package/dist/{models-cli-DDUpEy7b.js → models-cli-t1rYl_DG.js} +6 -6
- package/dist/{onboard-BHWdJtCd.js → onboard-8PGPC4o-.js} +2 -2
- package/dist/{onboard-B-sVSXzj.js → onboard-XsnXtjOy.js} +2 -2
- package/dist/{onboard-channels-BCAVs_mB.js → onboard-channels-Cb8T_ers.js} +1 -1
- package/dist/{onboard-channels-CWxLkkUp.js → onboard-channels-vQihczqp.js} +1 -1
- package/dist/{onboarding-BRNVJxT8.js → onboarding-C_807D1O.js} +3 -3
- package/dist/{onboarding-BoSfn2h0.js → onboarding-EwJ1WIut.js} +3 -3
- package/dist/{onboarding.finalize-Uy8WceA5.js → onboarding.finalize-Crpg17t7.js} +10 -10
- package/dist/{onboarding.finalize-D1hu4S6g.js → onboarding.finalize-DWFR8IbD.js} +11 -11
- package/dist/{pi-embedded-CZT36FAl.js → pi-embedded-Be34NhAY.js} +29 -12
- package/dist/{pi-embedded-1isHWl0U.js → pi-embedded-BywyyGi2.js} +34 -17
- package/dist/{pi-embedded-helpers-ISSMvBMe.js → pi-embedded-helpers-BVCPWN6Q.js} +40 -8
- package/dist/{pi-embedded-helpers-Cx3WmubG.js → pi-embedded-helpers-C4Annkh_.js} +40 -8
- package/dist/{pi-embedded-helpers-DOmGm3QX.js → pi-embedded-helpers-C_U_c_EU.js} +40 -8
- package/dist/{pi-embedded-helpers-DWuT7Pe9.js → pi-embedded-helpers-Dl_FdUMU.js} +44 -12
- package/dist/{plugin-registry-CGpIcEOM.js → plugin-registry-BrN1y1ig.js} +1 -1
- package/dist/{plugin-registry-qgZzbjWa.js → plugin-registry-CtLhKV8N.js} +1 -1
- package/dist/plugin-sdk/{accounts-DUBJHEgi.js → accounts-BcQo4OUu.js} +1 -1
- package/dist/plugin-sdk/{accounts-wSu5JyDM.js → accounts-DEsAwvaZ.js} +1 -1
- package/dist/plugin-sdk/{accounts-Ciwy7Yxd.js → accounts-fnLsjAOi.js} +3 -3
- package/dist/plugin-sdk/{active-listener-Bnau4oiu.js → active-listener-CeaKSm29.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-j9eoKDzr.js → agent-scope-DnU66cJq.js} +2 -2
- package/dist/plugin-sdk/agents/pi-embedded-helpers/errors.d.ts +1 -0
- package/dist/plugin-sdk/{api-key-rotation-BKOzXMVg.js → api-key-rotation-DRhVpAS4.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-BWBtA5BS.js → audio-preflight-zFFuY6Bd.js} +24 -24
- package/dist/plugin-sdk/auto-reply/reply/reply-dispatcher.d.ts +1 -0
- package/dist/plugin-sdk/{bindings-BxwR115d.js → bindings-HAeLX6mi.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-CCnr-9bS.js → channel-activity-WgE8Z4Bb.js} +1 -1
- package/dist/plugin-sdk/{channel-web-C6_SUXeh.js → channel-web-DfA1sgI9.js} +22 -22
- package/dist/plugin-sdk/{chrome-CAPUVzg9.js → chrome-NvVwZ3Xn.js} +3 -3
- package/dist/plugin-sdk/{chunk-DyzO7IVo.js → chunk-CQk9vawA.js} +1 -1
- package/dist/plugin-sdk/{command-format-DcBXOX9Z.js → command-format-DHXa0Clc.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-C-WjNyFR.js → commands-registry-C0vBsgUy.js} +4 -4
- package/dist/plugin-sdk/{config-DxWaFEai.js → config-C1a-yGCa.js} +9 -9
- package/dist/plugin-sdk/{deliver-C9FGk-m8.js → deliver-D4QMj1KQ.js} +20 -15
- package/dist/plugin-sdk/{diagnostic-DKyVS3IK.js → diagnostic-Up1aMyxZ.js} +1 -1
- package/dist/plugin-sdk/{image-DiGppfRt.js → image-Bu6pmW6i.js} +5 -5
- package/dist/plugin-sdk/{image-ops-Bjog8bLM.js → image-ops-6S8Fa1d6.js} +1 -1
- package/dist/plugin-sdk/index.js +53 -53
- package/dist/plugin-sdk/{ir-98uc6iQ2.js → ir-yosTlCQ0.js} +4 -4
- package/dist/plugin-sdk/{local-roots-9jdLho_V.js → local-roots-CW6TWE2a.js} +3 -3
- package/dist/plugin-sdk/{login-DTf65Ckq.js → login-CkOX36_Y.js} +7 -7
- package/dist/plugin-sdk/{login-qr-CRlrA1Km.js → login-qr-DyxTgmGK.js} +9 -9
- package/dist/plugin-sdk/{manager-B44bHk5P.js → manager-CtapJqej.js} +8 -8
- package/dist/plugin-sdk/{manifest-registry-sgHvjA6E.js → manifest-registry-DvEm2HHf.js} +1 -1
- package/dist/plugin-sdk/{markdown-tables-DV9FqwR1.js → markdown-tables-OYHjLFmr.js} +1 -1
- package/dist/plugin-sdk/{message-channel-DmB4bGFh.js → message-channel-DY9wVB2A.js} +1 -1
- package/dist/plugin-sdk/{model-selection-BALQkWtM.js → model-selection-TMsqRl-p.js} +4 -4
- package/dist/plugin-sdk/{outbound-CjucU9tz.js → outbound-Cs6LZhj-.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-BGKevRhJ.js → outbound-attachment-C1DtqQQb.js} +2 -2
- package/dist/plugin-sdk/{pi-auth-json-CYvT0sDr.js → pi-auth-json-Dpj7O31p.js} +5 -5
- package/dist/plugin-sdk/{pi-embedded-helpers-BMLQ8noc.js → pi-embedded-helpers-DBCtPcLq.js} +57 -25
- package/dist/plugin-sdk/{plugins-DwNa_Bjz.js → plugins-BizZYn_y.js} +4 -4
- package/dist/plugin-sdk/{pw-ai-mUE_oZph.js → pw-ai-CtYVo9Ju.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-CxvLwD3u.js → qmd-manager-qSSWvVwi.js} +4 -4
- package/dist/plugin-sdk/{registry-O1yza0Vh.js → registry-DL-33c9X.js} +2 -2
- package/dist/plugin-sdk/{replies-BLJ6SuWd.js → replies-YDjHVGij.js} +3 -3
- package/dist/plugin-sdk/{reply-Fe-yY6qo.js → reply-Dl9JHnGW.js} +96 -79
- package/dist/plugin-sdk/{reply-prefix-Ohtg483v.js → reply-prefix-DNmkrWtV.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-vib4nnNx.js → resolve-outbound-target-DCb1ht31.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-DM-CdB9Z.js → resolve-route-BDLDhEh_.js} +3 -3
- package/dist/plugin-sdk/{retry-JFNwfUew.js → retry-5P3d0rYw.js} +1 -1
- package/dist/plugin-sdk/{runner-CCzW7WWc.js → runner-DvYaPG7_.js} +9 -9
- package/dist/plugin-sdk/{send-C-9MUMZ2.js → send-3DmbiJfM.js} +6 -6
- package/dist/plugin-sdk/{send-D4OqVuu3.js → send-BsKrW0Xh.js} +6 -6
- package/dist/plugin-sdk/{send-DQL4fKTV.js → send-CNMXFSjB.js} +10 -10
- package/dist/plugin-sdk/{send-CAhPO5Zx.js → send-DU1Pnsmd.js} +7 -7
- package/dist/plugin-sdk/{send-BzXVnK8V.js → send-DZQYUVIY.js} +10 -10
- package/dist/plugin-sdk/{session-B-KGD6AG.js → session-D38ojZ3_.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-DzurlBtL.js → skill-commands-D7degVS7.js} +5 -5
- package/dist/plugin-sdk/{skills-aG_v8SgP.js → skills-DBG2n4rQ.js} +7 -7
- package/dist/plugin-sdk/slack/monitor/context.d.ts +1 -0
- package/dist/plugin-sdk/{sqlite-DUu0dwic.js → sqlite-ulpcowfN.js} +1 -1
- package/dist/plugin-sdk/{store-gutZwMLb.js → store-CMGBlFGX.js} +2 -2
- package/dist/plugin-sdk/{subsystem-C4Rh0kdL.js → subsystem-C9WnrKN8.js} +1 -1
- package/dist/plugin-sdk/{tables-DhuVe5ji.js → tables-DzujD35V.js} +1 -1
- package/dist/plugin-sdk/{target-errors-2VrFN2Zl.js → target-errors-KOPdGMxQ.js} +2 -2
- package/dist/plugin-sdk/{thinking-DK3F1Tth.js → thinking-BiNjzudU.js} +5 -5
- package/dist/plugin-sdk/{tokens-K9ITCatc.js → tokens-2475WU2Z.js} +1 -1
- package/dist/plugin-sdk/{tool-images-Bu_rB65-.js → tool-images-BlYojiWx.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-BBRtoox8.js → tool-loop-detection-D0ADW0h2.js} +2 -2
- package/dist/plugin-sdk/web-BFEz8bk-.js +65 -0
- package/dist/plugin-sdk/{whatsapp-actions-DfsMoZFo.js → whatsapp-actions-Bffbt65T.js} +21 -21
- package/dist/{plugins-cli-DjCM2809.js → plugins-cli-ByB9fyeR.js} +6 -6
- package/dist/{plugins-cli-CTlSXbxE.js → plugins-cli-CP_m4f99.js} +6 -6
- package/dist/{program-lAdk-rjf.js → program-DlspJVqc.js} +11 -11
- package/dist/{program-context-DvlZb8HS.js → program-context-CpcNVMdA.js} +18 -18
- package/dist/{prompt-select-styled-Ct2adJGY.js → prompt-select-styled-CWRcbfIK.js} +4 -4
- package/dist/{prompt-select-styled-BR9UJTaa.js → prompt-select-styled-DHXAx5uX.js} +4 -4
- package/dist/{provider-auth-helpers-B7pkCdJK.js → provider-auth-helpers-AORB3hk9.js} +1 -1
- package/dist/{provider-auth-helpers-B22yzT-e.js → provider-auth-helpers-TZ3D-fXq.js} +1 -1
- package/dist/{push-apns-CA7elLw_.js → push-apns-BTcu7pip.js} +1 -1
- package/dist/{push-apns-BLrPdufQ.js → push-apns-CSSSwhDY.js} +1 -1
- package/dist/{pw-ai-Bib1qJp-.js → pw-ai-Cs2YQmkQ.js} +1 -1
- package/dist/{register.agent-DWWw3Tcp.js → register.agent-C4G2zuxZ.js} +9 -9
- package/dist/{register.agent-DnXXai-R.js → register.agent-xMmK5W-R.js} +10 -10
- package/dist/{register.configure-wl-tJn4s.js → register.configure-CeFYJnjt.js} +10 -10
- package/dist/{register.configure-DzpjSPql.js → register.configure-aXmgTNuB.js} +10 -10
- package/dist/{register.maintenance-BkvduEtB.js → register.maintenance-B_bQy-mZ.js} +11 -11
- package/dist/{register.maintenance-B7aWrfAO.js → register.maintenance-CWHUzso3.js} +12 -12
- package/dist/{register.message-DooMLu1o.js → register.message-42he49is.js} +6 -6
- package/dist/{register.message-CL812HS5.js → register.message-Cx6UTHOb.js} +6 -6
- package/dist/{register.onboard-DkQtlTNE.js → register.onboard-BmtcBw-6.js} +8 -8
- package/dist/{register.onboard-C6f5DRg1.js → register.onboard-C9pozCFG.js} +8 -8
- package/dist/{register.setup-9RQgdDUL.js → register.setup-C4TWvr5B.js} +8 -8
- package/dist/{register.setup-zBBsTx7h.js → register.setup-C54kkyhM.js} +8 -8
- package/dist/{register.status-health-sessions-hl3bzjXd.js → register.status-health-sessions-DHHGaJsX.js} +7 -7
- package/dist/{register.status-health-sessions-DLETokGZ.js → register.status-health-sessions-DNqvYowR.js} +7 -7
- package/dist/{register.subclis-DJkdsClC.js → register.subclis-m5WJHhwT.js} +10 -10
- package/dist/{reply-B4tyXo72.js → reply-V8UXM1XU.js} +29 -12
- package/dist/{run-main-C1xUseJS.js → run-main-Djlctozd.js} +18 -18
- package/dist/{runner-B9g6ervv.js → runner-BMHyFfIL.js} +1 -1
- package/dist/{runner-Be7-7BcC.js → runner-CbkB3vpb.js} +1 -1
- package/dist/{runner-BIWQkeih.js → runner-DkWpm1Ly.js} +1 -1
- package/dist/{runner-U_c8SvOa.js → runner-DzmbTP-U.js} +1 -1
- package/dist/{server-node-events-CXomRKtF.js → server-node-events-D5Fen-q2.js} +6 -6
- package/dist/{server-node-events-CRVgNQ0_.js → server-node-events-Dm6MSKk0.js} +6 -6
- package/dist/{session-dirs-2TEacrvL.js → session-dirs-BmVdF2KM.js} +1 -1
- package/dist/{session-dirs-C7dOvbkp.js → session-dirs-CRnGB63U.js} +1 -1
- package/dist/{status-BlmQ68Lr.js → status-2w8d47j-.js} +2 -2
- package/dist/{status-BjUudjm_.js → status-Bi_g-8aS.js} +1 -1
- package/dist/{status-Cd-_yawg.js → status-BjjDHl4v.js} +1 -1
- package/dist/{status-CDINUwpc.js → status-DQEnKbht.js} +2 -2
- package/dist/{subagent-registry-CWSe1lKN.js → subagent-registry-DGNGenUN.js} +29 -12
- package/dist/{tui-C8TIc36Z.js → tui-BPSckkGa.js} +1 -1
- package/dist/{tui-dDj0kI9K.js → tui-Dn3NzP7B.js} +1 -1
- package/dist/{tui-cli-B1R2UxjK.js → tui-cli-DYhd0RT6.js} +2 -2
- package/dist/{tui-cli-DXNQuXf_.js → tui-cli-Dscc8usx.js} +2 -2
- package/dist/{update-cli-HS6kiKIK.js → update-cli-BQIIdEwf.js} +11 -11
- package/dist/{update-cli-BUIB_VFr.js → update-cli-C-xMtbk9.js} +12 -12
- package/dist/{web-CO5qanzX.js → web-CIdW3A5E.js} +5 -5
- package/dist/{web-Cz_gOgql.js → web-Ciz1i7yI.js} +6 -6
- package/dist/{web-CmGHJmHB.js → web-H55ayBNa.js} +5 -5
- package/dist/{web-0-iNcZsR.js → web-aUEiU7C4.js} +6 -6
- package/package.json +1 -1
- package/dist/control-ui/assets/index-Cx1_w3YP.js.map +0 -1
- package/dist/plugin-sdk/web-DbHQRXHi.js +0 -65
|
@@ -3,7 +3,7 @@ import fs from "node:fs";
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
|
-
import
|
|
6
|
+
import json5 from "json5";
|
|
7
7
|
import chalk, { Chalk } from "chalk";
|
|
8
8
|
|
|
9
9
|
//#region src/infra/tmp-openclaw-dir.ts
|
|
@@ -70,7 +70,7 @@ function readLoggingConfig() {
|
|
|
70
70
|
try {
|
|
71
71
|
if (!fs.existsSync(configPath)) return;
|
|
72
72
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
73
|
-
const logging =
|
|
73
|
+
const logging = json5.parse(raw)?.logging;
|
|
74
74
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
75
75
|
return logging;
|
|
76
76
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as chunkMarkdownTextWithMode } from "./chunk-
|
|
3
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
4
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
2
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-CQk9vawA.js";
|
|
3
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-3DmbiJfM.js";
|
|
4
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-2475WU2Z.js";
|
|
5
5
|
|
|
6
6
|
//#region src/auto-reply/reply/reply-reference.ts
|
|
7
7
|
function createReplyReferencePlanner(options) {
|
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { _ as isCronSessionKey, b as resolveThreadParentSessionKey, c as normalizeMainKey, d as sanitizeAgentId, f as DEFAULT_ACCOUNT_ID, g as isAcpSessionKey, h as getSubagentDepth, l as resolveAgentIdFromSessionKey, o as classifySessionKeyShape, p as normalizeAccountId$2, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveThreadSessionKeys, v as isSubagentSessionKey, y as parseAgentSessionKey } from "./session-key-C_0eELjb.js";
|
|
3
|
-
import { c as logoutWeb, f as readWebSelfId, g as webAuthExists, o as getWebAuthAgeMs, r as resolveWhatsAppAccount, s as logWebSelfId } from "./accounts-
|
|
3
|
+
import { c as logoutWeb, f as readWebSelfId, g as webAuthExists, o as getWebAuthAgeMs, r as resolveWhatsAppAccount, s as logWebSelfId } from "./accounts-fnLsjAOi.js";
|
|
4
4
|
import { c as expandHomePrefix, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-DVWx7USN.js";
|
|
5
5
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-Cg0YPPSu.js";
|
|
6
|
-
import { A as resolveSlackBotToken, C as resolveTelegramToken, D as resolveSlackAccount, F as resolveDiscordAccount, I as normalizeDiscordToken, N as listEnabledDiscordAccounts, S as resolveTelegramAccount, _ as normalizeWhatsAppTarget, b as listTelegramAccountIds, g as isWhatsAppGroupJid, h as resolveSlackChannelId, j as createDiscordActionGate, k as resolveSlackAppToken, m as parseSlackTarget, n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin, v as createTelegramActionGate, y as listEnabledTelegramAccounts } from "./plugins-
|
|
6
|
+
import { A as resolveSlackBotToken, C as resolveTelegramToken, D as resolveSlackAccount, F as resolveDiscordAccount, I as normalizeDiscordToken, N as listEnabledDiscordAccounts, S as resolveTelegramAccount, _ as normalizeWhatsAppTarget, b as listTelegramAccountIds, g as isWhatsAppGroupJid, h as resolveSlackChannelId, j as createDiscordActionGate, k as resolveSlackAppToken, m as parseSlackTarget, n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin, v as createTelegramActionGate, y as listEnabledTelegramAccounts } from "./plugins-BizZYn_y.js";
|
|
7
7
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-ChYuW7LE.js";
|
|
8
8
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-b2Zm8y7X.js";
|
|
9
|
-
import { $ as isRich, A as normalizeE164, D as isRecord$1, E as formatTerminalLink, H as isPlainObject, I as shortenHomeInString, J as setVerbose, K as logVerbose, L as shortenHomePath, P as resolveUserPath, Q as colorize, R as sleep$1, S as clampInt, T as escapeRegExp, U as danger, V as truncateUtf16Safe, Y as shouldLogVerbose, Z as warn, _ as matchPluginCommand, a as normalizeAnyChannelId, b as CONFIG_DIR, ct as normalizeLogLevel, d as createPluginRegistry, et as theme, f as normalizePluginHttpPath, g as listPluginCommands, h as getPluginCommandSpecs, l as requireActivePluginRegistry, m as executePluginCommand, n as CHAT_CHANNEL_ORDER, o as normalizeChannelId$1, p as clearPluginCommands, r as DEFAULT_CHAT_CHANNEL, tt as getChildLogger, u as setActivePluginRegistry, ut as resolvePreferredOpenClawTmpDir, v as createInternalHookEvent, w as ensureDir$3, y as triggerInternalHook, z as sliceUtf16Safe } from "./registry-
|
|
10
|
-
import { n as retryAsync } from "./retry-
|
|
11
|
-
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, At as fetchDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, E as listThreadsDiscord, Et as normalizeChannelSlug, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as buildChannelKeyCandidates, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as applyChannelMatchMeta, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-
|
|
12
|
-
import { B as getConfigOverrides, C as resolveIMessageRemoteAttachmentRoots, G as parseConfigPath, H as setConfigOverride, J as isSafeExecutableValue, K as setConfigValueAtPath, R as parseDurationMs, S as resolveIMessageAttachmentRoots, U as unsetConfigOverride, V as resetConfigOverrides, W as getConfigValueAtPath, X as resolveAgentMaxConcurrent, Y as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Z as VERSION, _ as normalizeTelegramCommandName, a as writeConfigFile, b as isInboundPathAllowed, g as TELEGRAM_COMMAND_NAME_PATTERN, i as resolveConfigSnapshotHash, n as loadConfig, o as validateConfigObjectWithPlugins, q as unsetConfigValueAtPath, r as readConfigFileSnapshot, v as resolveTelegramCustomCommands, w as normalizeScpRemoteHost, z as validateJsonSchemaValue } from "./config-
|
|
13
|
-
import { a as clearActiveProgressLine, i as defaultRuntime, o as registerActiveProgressLine, r as createNonExitingRuntime, s as unregisterActiveProgressLine, t as createSubsystemLogger } from "./subsystem-
|
|
14
|
-
import { i as parseBooleanValue$1, n as resolveCliName, r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-
|
|
15
|
-
import { A as getSoonestCooldownExpiry, B as resolveOpenClawAgentDir, C as getCustomProviderApiKey, D as resolveModelAuthMode, E as resolveEnvApiKey, F as dedupeProfileIds, G as normalizeSecretInput, H as withFileLock, I as listProfilesForProvider, J as DEFAULT_MODEL, K as resolveAuthProfileDisplayLabel, L as markAuthProfileGood, M as markAuthProfileFailure, N as markAuthProfileUsed, P as resolveApiKeyForProfile, Q as resolveShellEnvFallbackTimeoutMs, R as ensureAuthProfileStore, S as getApiKeyForModel, T as resolveApiKeyForProvider, X as getShellPathFromLoginShell, Y as DEFAULT_PROVIDER, a as isCliProvider, b as OLLAMA_NATIVE_BASE_URL, c as normalizeProviderId, d as resolveDefaultModelForAgent, f as resolveModelRefFromString, i as findNormalizedProviderValue, j as isProfileInCooldown, k as resolveAuthProfileOrder, m as resolveThinkingDefault, n as buildConfiguredAllowlistKeys, o as modelKey, p as resolveSubagentSpawnModelSelection, q as DEFAULT_CONTEXT_TOKENS, r as buildModelAliasIndex, s as normalizeModelRef$2, t as buildAllowedModelSet, u as resolveConfiguredModelRef, w as requireApiKey, x as createOllamaStreamFn, z as resolveAuthStorePathForDisplay } from "./model-selection-
|
|
16
|
-
import { A as logInfo, C as resolveOpenClawPackageRoot, D as spawnWithFallback, E as runExec, O as logDebug, S as loadWorkspaceBootstrapFiles, T as runCommandWithTimeout, a as resolveAgentModelPrimary, b as ensureAgentWorkspace, c as resolveDefaultAgentId, d as resolveSessionAgentIds, g as DEFAULT_IDENTITY_FILENAME, i as resolveAgentModelFallbacksOverride, j as logWarn, k as logError, l as resolveEffectiveModelFallbacks, m as DEFAULT_BOOTSTRAP_FILENAME, n as resolveAgentConfig, o as resolveAgentSkillsFilter, p as DEFAULT_AGENT_WORKSPACE_DIR, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentId, x as filterBootstrapFilesForSession } from "./agent-scope-
|
|
17
|
-
import { c as normalizePluginsConfig, f as isPathInsideWithRealpath, i as safeStatSync, l as resolveEnableState, n as discoverOpenClawPlugins, p as isDangerousHostEnvVarName, r as isPathInside, s as applyTestPluginDefaults, t as loadPluginManifestRegistry, u as resolveMemorySlotDecision } from "./manifest-registry-
|
|
9
|
+
import { $ as isRich, A as normalizeE164, D as isRecord$1, E as formatTerminalLink, H as isPlainObject, I as shortenHomeInString, J as setVerbose, K as logVerbose, L as shortenHomePath, P as resolveUserPath, Q as colorize, R as sleep$1, S as clampInt, T as escapeRegExp, U as danger, V as truncateUtf16Safe, Y as shouldLogVerbose, Z as warn, _ as matchPluginCommand, a as normalizeAnyChannelId, b as CONFIG_DIR, ct as normalizeLogLevel, d as createPluginRegistry, et as theme, f as normalizePluginHttpPath, g as listPluginCommands, h as getPluginCommandSpecs, l as requireActivePluginRegistry, m as executePluginCommand, n as CHAT_CHANNEL_ORDER, o as normalizeChannelId$1, p as clearPluginCommands, r as DEFAULT_CHAT_CHANNEL, tt as getChildLogger, u as setActivePluginRegistry, ut as resolvePreferredOpenClawTmpDir, v as createInternalHookEvent, w as ensureDir$3, y as triggerInternalHook, z as sliceUtf16Safe } from "./registry-DL-33c9X.js";
|
|
10
|
+
import { n as retryAsync } from "./retry-5P3d0rYw.js";
|
|
11
|
+
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, At as fetchDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, E as listThreadsDiscord, Et as normalizeChannelSlug, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as buildChannelKeyCandidates, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as applyChannelMatchMeta, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-DZQYUVIY.js";
|
|
12
|
+
import { B as getConfigOverrides, C as resolveIMessageRemoteAttachmentRoots, G as parseConfigPath, H as setConfigOverride, J as isSafeExecutableValue, K as setConfigValueAtPath, R as parseDurationMs, S as resolveIMessageAttachmentRoots, U as unsetConfigOverride, V as resetConfigOverrides, W as getConfigValueAtPath, X as resolveAgentMaxConcurrent, Y as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Z as VERSION, _ as normalizeTelegramCommandName, a as writeConfigFile, b as isInboundPathAllowed, g as TELEGRAM_COMMAND_NAME_PATTERN, i as resolveConfigSnapshotHash, n as loadConfig, o as validateConfigObjectWithPlugins, q as unsetConfigValueAtPath, r as readConfigFileSnapshot, v as resolveTelegramCustomCommands, w as normalizeScpRemoteHost, z as validateJsonSchemaValue } from "./config-C1a-yGCa.js";
|
|
13
|
+
import { a as clearActiveProgressLine, i as defaultRuntime, o as registerActiveProgressLine, r as createNonExitingRuntime, s as unregisterActiveProgressLine, t as createSubsystemLogger } from "./subsystem-C9WnrKN8.js";
|
|
14
|
+
import { i as parseBooleanValue$1, n as resolveCliName, r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-DHXa0Clc.js";
|
|
15
|
+
import { A as getSoonestCooldownExpiry, B as resolveOpenClawAgentDir, C as getCustomProviderApiKey, D as resolveModelAuthMode, E as resolveEnvApiKey, F as dedupeProfileIds, G as normalizeSecretInput, H as withFileLock, I as listProfilesForProvider, J as DEFAULT_MODEL, K as resolveAuthProfileDisplayLabel, L as markAuthProfileGood, M as markAuthProfileFailure, N as markAuthProfileUsed, P as resolveApiKeyForProfile, Q as resolveShellEnvFallbackTimeoutMs, R as ensureAuthProfileStore, S as getApiKeyForModel, T as resolveApiKeyForProvider, X as getShellPathFromLoginShell, Y as DEFAULT_PROVIDER, a as isCliProvider, b as OLLAMA_NATIVE_BASE_URL, c as normalizeProviderId, d as resolveDefaultModelForAgent, f as resolveModelRefFromString, i as findNormalizedProviderValue, j as isProfileInCooldown, k as resolveAuthProfileOrder, m as resolveThinkingDefault, n as buildConfiguredAllowlistKeys, o as modelKey, p as resolveSubagentSpawnModelSelection, q as DEFAULT_CONTEXT_TOKENS, r as buildModelAliasIndex, s as normalizeModelRef$2, t as buildAllowedModelSet, u as resolveConfiguredModelRef, w as requireApiKey, x as createOllamaStreamFn, z as resolveAuthStorePathForDisplay } from "./model-selection-TMsqRl-p.js";
|
|
16
|
+
import { A as logInfo, C as resolveOpenClawPackageRoot, D as spawnWithFallback, E as runExec, O as logDebug, S as loadWorkspaceBootstrapFiles, T as runCommandWithTimeout, a as resolveAgentModelPrimary, b as ensureAgentWorkspace, c as resolveDefaultAgentId, d as resolveSessionAgentIds, g as DEFAULT_IDENTITY_FILENAME, i as resolveAgentModelFallbacksOverride, j as logWarn, k as logError, l as resolveEffectiveModelFallbacks, m as DEFAULT_BOOTSTRAP_FILENAME, n as resolveAgentConfig, o as resolveAgentSkillsFilter, p as DEFAULT_AGENT_WORKSPACE_DIR, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentId, x as filterBootstrapFilesForSession } from "./agent-scope-DnU66cJq.js";
|
|
17
|
+
import { c as normalizePluginsConfig, f as isPathInsideWithRealpath, i as safeStatSync, l as resolveEnableState, n as discoverOpenClawPlugins, p as isDangerousHostEnvVarName, r as isPathInside, s as applyTestPluginDefaults, t as loadPluginManifestRegistry, u as resolveMemorySlotDecision } from "./manifest-registry-DvEm2HHf.js";
|
|
18
18
|
import { n as formatErrorMessage, r as formatUncaughtError } from "./errors-Bv8oZiTO.js";
|
|
19
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-
|
|
19
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-WgE8Z4Bb.js";
|
|
20
20
|
import { n as normalizePollInput } from "./polls-3WJMd-G-.js";
|
|
21
|
-
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-
|
|
21
|
+
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-6S8Fa1d6.js";
|
|
22
22
|
import { a as isBlockedHostnameOrIp, c as normalizeHostname, t as SsrFBlockedError } from "./ssrf-DKZ8eBrk.js";
|
|
23
|
-
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
24
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-
|
|
25
|
-
import { a as chunkText, c as resolveChunkMode, d as findFenceSpanAt, f as isSafeFenceBreak, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, p as parseFenceSpans, r as chunkMarkdownText, t as chunkByNewline } from "./chunk-
|
|
26
|
-
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-
|
|
23
|
+
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, t as getAgentScopedMediaLocalRoots } from "./local-roots-CW6TWE2a.js";
|
|
24
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-yosTlCQ0.js";
|
|
25
|
+
import { a as chunkText, c as resolveChunkMode, d as findFenceSpanAt, f as isSafeFenceBreak, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, p as parseFenceSpans, r as chunkMarkdownText, t as chunkByNewline } from "./chunk-CQk9vawA.js";
|
|
26
|
+
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-DY9wVB2A.js";
|
|
27
27
|
import { t as normalizeChatType } from "./chat-type-CEMQNtWX.js";
|
|
28
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
29
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
30
|
-
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-
|
|
31
|
-
import { i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-
|
|
32
|
-
import { a as createActionGate, c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as imageResult, p as readStringOrNumberParam, r as unknownTargetError, s as imageResultFromFile, t as ambiguousTargetError, u as readNumberParam } from "./target-errors-
|
|
33
|
-
import { a as createSlackWebClient, c as validateSlackBlocksArray, i as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack } from "./send-
|
|
34
|
-
import { $ as parseTelegramTarget, A as hasBotMention, B as resolveSenderAllowMatch, C as buildTelegramGroupPeerId, D as describeReplyTarget, E as buildTypingThreadParams, F as resolveTelegramReplyId, G as readChannelAllowFromStore, H as isSenderIdAllowed, I as resolveTelegramStreamMode, J as upsertChannelPairingRequest, L as resolveTelegramThreadSpec, M as resolveTelegramForumThreadId, N as resolveTelegramGroupAllowFromContext, O as expandTextLinks, P as resolveTelegramMediaPlaceholder, Q as isVoiceCompatibleAudio, R as isSenderAllowed$1, S as buildTelegramGroupFrom, T as buildTelegramThreadParams, U as mergeAllowFromSources, V as firstDefined$1, W as addChannelAllowFromStoreEntry, X as listPairingChannels, Y as getPairingAdapter, Z as withTelegramApiErrorLogging, _ as resolveTelegramFetch, a as reactMessageTelegram, b as buildSenderLabel, c as sendStickerTelegram, d as wasSentByBot, et as resolveTelegramTargetChatType, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as normalizeForwardedContext, k as extractTelegramLocation, m as markdownToTelegramHtml, n as createForumTopicTelegram, nt as toLocationContext, o as sendMessageTelegram, p as markdownToTelegramChunks, q as removeChannelAllowFromStoreEntry, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, tt as formatLocationText, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramParentPeer, x as buildSenderName, y as buildGroupLabel, z as normalizeAllowFromWithStore$1 } from "./send-
|
|
35
|
-
import { _ as CLI_OUTPUT_MAX_BUFFER, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as registerUnhandledRejectionHandler, g as resolveMediaUnderstandingScope, h as normalizeMediaUnderstandingChatType, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveTimeoutMs$1, n as createMediaAttachmentCache, o as runCapability, p as resolveConcurrency, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as applyTemplate, y as buildRandomTempFilePath } from "./runner-
|
|
36
|
-
import { a as resolveAckReaction, c as resolveHumanDelayConfig, i as resolveResponsePrefixTemplate, n as createReplyPrefixOptions, o as resolveAgentIdentity, s as resolveEffectiveMessagesConfig } from "./reply-prefix-
|
|
37
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-
|
|
38
|
-
import { c as getSkillsSnapshotVersion, d as resolvePairingPaths, f as createAsyncLock, i as resolveSkillCommandInvocation, l as generatePairingToken, m as writeJsonAtomic, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as readJsonFile, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as pruneExpiredPending } from "./skill-commands-
|
|
39
|
-
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-
|
|
40
|
-
import { M as isSecureWebSocketUrl, N as rawDataToString, T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
41
|
-
import { A as normalizeHyphenSlug, F as resolveChannelGroupRequireMention, I as resolveChannelGroupToolsPolicy, M as normalizeStringEntriesLower, P as resolveChannelGroupPolicy, a as normalizeReasoningLevel, c as normalizeVerboseLevel, d as getChannelDock, f as listChannelDocks, i as normalizeElevatedLevel, j as normalizeStringEntries, k as normalizeAtHashSlug, l as resolveResponseUsageMode, m as normalizeSignalMessagingTarget, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-
|
|
42
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
43
|
-
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-
|
|
44
|
-
import { C as getGlobalHookRunner, S as throwIfAborted, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as splitMediaFromOutput, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as parseReplyDirectives, w as initializeGlobalHookRunner, x as parseInlineDirectives$1, y as MEDIA_TOKEN_RE } from "./deliver-
|
|
45
|
-
import { $ as normalizeToolName, A as isTransientHttpError, At as countToolResults, B as resolveProfile, Bt as resolveChannelResetConfig, C as isContextOverflowError, Ct as deliveryContextKey, D as isRateLimitAssistantError, Dt as normalizeAccountId$3, E as isLikelyContextOverflowError, Et as normalizeSessionDeliveryFields, F as resolveSandboxContext, Ft as normalizeInputProvenance, G as resolveBrowserControlAuth, Gt as resolveFreshSessionTotalTokens, H as resolveExistingPathsWithinRoot, Ht as resolveSessionResetType, I as resolveSandboxRuntimeStatus, It as acquireSessionWriteLock, J as buildPluginToolGroups, Jt as resolveMainSessionKey, K as resolveSandboxConfigForAgent, Kt as canonicalizeMainSessionAlias, L as createBrowserRouteContext, Lt as resolveSessionLockMaxHoldFromTimeout, M as parseImageSizeError, Mt as INPUT_PROVENANCE_KIND_VALUES, N as sanitizeUserFacingText, Nt as applyInputProvenanceToUserMessage, O as isRawApiErrorPayload, Ot as archiveSessionTranscripts, P as ensureSandboxWorkspaceForSession, Pt as hasInterSessionUserProvenance, Q as mergeAlsoAllowPolicy, R as registerBrowserRoutes, Rt as resolveSessionKey, S as isCompactionFailureError, St as deliveryContextFromSession, T as isFailoverErrorMessage, Tt as normalizeDeliveryContext, U as getBridgeAuthForPort, Ut as resolveThreadFlag, V as DEFAULT_UPLOAD_DIR, Vt as resolveSessionResetPolicy, W as ensureBrowserControlAuth, Wt as DEFAULT_RESET_TRIGGERS, X as expandPolicyWithPluginGroups, Xt as resolveGroupSessionKey, Y as collectExplicitAllowlist, Yt as deriveSessionMetaPatch, Z as expandToolGroups, _ as formatRawAssistantErrorForUi, _t as updateLastRoute, a as isMessagingToolDuplicateNormalized, at as ensureSessionHeader, b as isBillingAssistantError, bt as isCacheEnabled, c as extractToolCallsFromAssistant, ct as sanitizeGoogleTurnOrdering, d as isAntigravityClaude, dt as appendAssistantMessageToSessionTranscript, et as resolveToolProfilePolicy, f as isGoogleModelApi, g as formatBillingErrorMessage, gt as recordSessionMetaFromInbound, h as formatAssistantErrorText, ht as readSessionUpdatedAt, it as buildBootstrapContextFiles, j as parseImageDimensionError, jt as extractToolCallNames, k as isTimeoutErrorMessage, kt as capArrayByJsonBytes, l as extractToolResultId, lt as extractDeliveryInfo, m as classifyFailoverReason, mt as loadSessionStore, n as validateGeminiTurns, nt as compileGlobPatterns, o as normalizeTextForComparison, ot as resolveBootstrapMaxChars, p as BILLING_ERROR_USER_MESSAGE, pt as resolveAndPersistSessionFile, q as applyOwnerOnlyToolPolicy, qt as resolveExplicitAgentSessionKey, r as pickFallbackThinkingLevel, rt as matchesAnyGlobPattern, s as sanitizeSessionMessagesImages, st as resolveBootstrapTotalMaxChars, t as validateAnthropicTurns, tt as stripPluginOnlyAllowlist, u as downgradeOpenAIReasoningBlocks, ut as parseSessionThreadInfo, v as getApiErrorPayloadFingerprint, vt as updateSessionStore, w as isFailoverAssistantError, wt as mergeDeliveryContext, x as isCloudCodeAssistFormatError, xt as resolveCacheTtlMs$1, y as isAuthAssistantError, yt as updateSessionStoreEntry, z as resolveBrowserConfig, zt as evaluateSessionFreshness } from "./pi-embedded-helpers-
|
|
28
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-OYHjLFmr.js";
|
|
29
|
+
import { t as convertMarkdownTables } from "./tables-DzujD35V.js";
|
|
30
|
+
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-DU1Pnsmd.js";
|
|
31
|
+
import { i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-BlYojiWx.js";
|
|
32
|
+
import { a as createActionGate, c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as imageResult, p as readStringOrNumberParam, r as unknownTargetError, s as imageResultFromFile, t as ambiguousTargetError, u as readNumberParam } from "./target-errors-KOPdGMxQ.js";
|
|
33
|
+
import { a as createSlackWebClient, c as validateSlackBlocksArray, i as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack } from "./send-3DmbiJfM.js";
|
|
34
|
+
import { $ as parseTelegramTarget, A as hasBotMention, B as resolveSenderAllowMatch, C as buildTelegramGroupPeerId, D as describeReplyTarget, E as buildTypingThreadParams, F as resolveTelegramReplyId, G as readChannelAllowFromStore, H as isSenderIdAllowed, I as resolveTelegramStreamMode, J as upsertChannelPairingRequest, L as resolveTelegramThreadSpec, M as resolveTelegramForumThreadId, N as resolveTelegramGroupAllowFromContext, O as expandTextLinks, P as resolveTelegramMediaPlaceholder, Q as isVoiceCompatibleAudio, R as isSenderAllowed$1, S as buildTelegramGroupFrom, T as buildTelegramThreadParams, U as mergeAllowFromSources, V as firstDefined$1, W as addChannelAllowFromStoreEntry, X as listPairingChannels, Y as getPairingAdapter, Z as withTelegramApiErrorLogging, _ as resolveTelegramFetch, a as reactMessageTelegram, b as buildSenderLabel, c as sendStickerTelegram, d as wasSentByBot, et as resolveTelegramTargetChatType, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as normalizeForwardedContext, k as extractTelegramLocation, m as markdownToTelegramHtml, n as createForumTopicTelegram, nt as toLocationContext, o as sendMessageTelegram, p as markdownToTelegramChunks, q as removeChannelAllowFromStoreEntry, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, tt as formatLocationText, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramParentPeer, x as buildSenderName, y as buildGroupLabel, z as normalizeAllowFromWithStore$1 } from "./send-CNMXFSjB.js";
|
|
35
|
+
import { _ as CLI_OUTPUT_MAX_BUFFER, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as registerUnhandledRejectionHandler, g as resolveMediaUnderstandingScope, h as normalizeMediaUnderstandingChatType, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveTimeoutMs$1, n as createMediaAttachmentCache, o as runCapability, p as resolveConcurrency, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as applyTemplate, y as buildRandomTempFilePath } from "./runner-DvYaPG7_.js";
|
|
36
|
+
import { a as resolveAckReaction, c as resolveHumanDelayConfig, i as resolveResponsePrefixTemplate, n as createReplyPrefixOptions, o as resolveAgentIdentity, s as resolveEffectiveMessagesConfig } from "./reply-prefix-DNmkrWtV.js";
|
|
37
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-2475WU2Z.js";
|
|
38
|
+
import { c as getSkillsSnapshotVersion, d as resolvePairingPaths, f as createAsyncLock, i as resolveSkillCommandInvocation, l as generatePairingToken, m as writeJsonAtomic, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as readJsonFile, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as pruneExpiredPending } from "./skill-commands-D7degVS7.js";
|
|
39
|
+
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-DBG2n4rQ.js";
|
|
40
|
+
import { M as isSecureWebSocketUrl, N as rawDataToString, T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, x as ensureChromeExtensionRelayServer } from "./chrome-NvVwZ3Xn.js";
|
|
41
|
+
import { A as normalizeHyphenSlug, F as resolveChannelGroupRequireMention, I as resolveChannelGroupToolsPolicy, M as normalizeStringEntriesLower, P as resolveChannelGroupPolicy, a as normalizeReasoningLevel, c as normalizeVerboseLevel, d as getChannelDock, f as listChannelDocks, i as normalizeElevatedLevel, j as normalizeStringEntries, k as normalizeAtHashSlug, l as resolveResponseUsageMode, m as normalizeSignalMessagingTarget, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-BiNjzudU.js";
|
|
42
|
+
import { r as resolveIMessageAccount } from "./accounts-DEsAwvaZ.js";
|
|
43
|
+
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-BcQo4OUu.js";
|
|
44
|
+
import { C as getGlobalHookRunner, S as throwIfAborted, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as splitMediaFromOutput, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as parseReplyDirectives, w as initializeGlobalHookRunner, x as parseInlineDirectives$1, y as MEDIA_TOKEN_RE } from "./deliver-D4QMj1KQ.js";
|
|
45
|
+
import { $ as normalizeToolName, A as isTransientHttpError, At as countToolResults, B as resolveProfile, Bt as resolveChannelResetConfig, C as isContextOverflowError, Ct as deliveryContextKey, D as isRateLimitAssistantError, Dt as normalizeAccountId$3, E as isLikelyContextOverflowError, Et as normalizeSessionDeliveryFields, F as resolveSandboxContext, Ft as normalizeInputProvenance, G as resolveBrowserControlAuth, Gt as resolveFreshSessionTotalTokens, H as resolveExistingPathsWithinRoot, Ht as resolveSessionResetType, I as resolveSandboxRuntimeStatus, It as acquireSessionWriteLock, J as buildPluginToolGroups, Jt as resolveMainSessionKey, K as resolveSandboxConfigForAgent, Kt as canonicalizeMainSessionAlias, L as createBrowserRouteContext, Lt as resolveSessionLockMaxHoldFromTimeout, M as parseImageSizeError, Mt as INPUT_PROVENANCE_KIND_VALUES, N as sanitizeUserFacingText, Nt as applyInputProvenanceToUserMessage, O as isRawApiErrorPayload, Ot as archiveSessionTranscripts, P as ensureSandboxWorkspaceForSession, Pt as hasInterSessionUserProvenance, Q as mergeAlsoAllowPolicy, R as registerBrowserRoutes, Rt as resolveSessionKey, S as isCompactionFailureError, St as deliveryContextFromSession, T as isFailoverErrorMessage, Tt as normalizeDeliveryContext, U as getBridgeAuthForPort, Ut as resolveThreadFlag, V as DEFAULT_UPLOAD_DIR, Vt as resolveSessionResetPolicy, W as ensureBrowserControlAuth, Wt as DEFAULT_RESET_TRIGGERS, X as expandPolicyWithPluginGroups, Xt as resolveGroupSessionKey, Y as collectExplicitAllowlist, Yt as deriveSessionMetaPatch, Z as expandToolGroups, _ as formatRawAssistantErrorForUi, _t as updateLastRoute, a as isMessagingToolDuplicateNormalized, at as ensureSessionHeader, b as isBillingAssistantError, bt as isCacheEnabled, c as extractToolCallsFromAssistant, ct as sanitizeGoogleTurnOrdering, d as isAntigravityClaude, dt as appendAssistantMessageToSessionTranscript, et as resolveToolProfilePolicy, f as isGoogleModelApi, g as formatBillingErrorMessage, gt as recordSessionMetaFromInbound, h as formatAssistantErrorText, ht as readSessionUpdatedAt, it as buildBootstrapContextFiles, j as parseImageDimensionError, jt as extractToolCallNames, k as isTimeoutErrorMessage, kt as capArrayByJsonBytes, l as extractToolResultId, lt as extractDeliveryInfo, m as classifyFailoverReason, mt as loadSessionStore, n as validateGeminiTurns, nt as compileGlobPatterns, o as normalizeTextForComparison, ot as resolveBootstrapMaxChars, p as BILLING_ERROR_USER_MESSAGE, pt as resolveAndPersistSessionFile, q as applyOwnerOnlyToolPolicy, qt as resolveExplicitAgentSessionKey, r as pickFallbackThinkingLevel, rt as matchesAnyGlobPattern, s as sanitizeSessionMessagesImages, st as resolveBootstrapTotalMaxChars, t as validateAnthropicTurns, tt as stripPluginOnlyAllowlist, u as downgradeOpenAIReasoningBlocks, ut as parseSessionThreadInfo, v as getApiErrorPayloadFingerprint, vt as updateSessionStore, w as isFailoverAssistantError, wt as mergeDeliveryContext, x as isCloudCodeAssistFormatError, xt as resolveCacheTtlMs$1, y as isAuthAssistantError, yt as updateSessionStoreEntry, z as resolveBrowserConfig, zt as evaluateSessionFreshness } from "./pi-embedded-helpers-DBCtPcLq.js";
|
|
46
46
|
import { n as resolveConversationLabel } from "./conversation-label-yNSj43Jt.js";
|
|
47
47
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-BNQjLbn7.js";
|
|
48
48
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-x1D4Vniz.js";
|
|
49
|
-
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-
|
|
50
|
-
import { i as saveMediaBuffer, r as getMediaDir } from "./store-
|
|
49
|
+
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-Up1aMyxZ.js";
|
|
50
|
+
import { i as saveMediaBuffer, r as getMediaDir } from "./store-CMGBlFGX.js";
|
|
51
51
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-D5EzMeL_.js";
|
|
52
|
-
import { S as minimaxUnderstandImage, _ as stripThinkingTagsFromText, a as decodeDataUrl, b as extractTextFromChatContent, c as extractAssistantThinking, d as formatReasoningMessage, f as inferToolMetaFromArgs, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractThinkingFromTaggedStream, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as isAssistantMessage, r as coerceImageAssistantText, s as extractAssistantText$1, u as extractThinkingFromTaggedText, v as resolveToolDisplay, x as ensureOpenClawModelsJson, y as stripReasoningTagsFromText } from "./image-
|
|
52
|
+
import { S as minimaxUnderstandImage, _ as stripThinkingTagsFromText, a as decodeDataUrl, b as extractTextFromChatContent, c as extractAssistantThinking, d as formatReasoningMessage, f as inferToolMetaFromArgs, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractThinkingFromTaggedStream, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as isAssistantMessage, r as coerceImageAssistantText, s as extractAssistantText$1, u as extractThinkingFromTaggedText, v as resolveToolDisplay, x as ensureOpenClawModelsJson, y as stripReasoningTagsFromText } from "./image-Bu6pmW6i.js";
|
|
53
53
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-LbcEa65a.js";
|
|
54
|
-
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths, v as runTasksWithConcurrency } from "./sqlite-
|
|
54
|
+
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths, v as runTasksWithConcurrency } from "./sqlite-ulpcowfN.js";
|
|
55
55
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-Wd5tNeQG.js";
|
|
56
|
-
import { n as resolveMemorySearchConfig } from "./manager-
|
|
57
|
-
import { _ as resolveNativeCommandsEnabled, a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, g as isRestartEnabled, h as isNativeCommandsExplicitlyDisabled, i as listChatCommands, l as parseCommandArgs, m as isCommandFlagEnabled, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices, v as resolveNativeSkillsEnabled } from "./commands-registry-
|
|
58
|
-
import { c as signalRpcRequest, l as streamSignalEvents, n as sendReadReceiptSignal, o as resolveSignalRpcContext, r as sendTypingSignal, s as signalCheck, t as sendMessageSignal } from "./send-
|
|
56
|
+
import { n as resolveMemorySearchConfig } from "./manager-CtapJqej.js";
|
|
57
|
+
import { _ as resolveNativeCommandsEnabled, a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, g as isRestartEnabled, h as isNativeCommandsExplicitlyDisabled, i as listChatCommands, l as parseCommandArgs, m as isCommandFlagEnabled, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices, v as resolveNativeSkillsEnabled } from "./commands-registry-C0vBsgUy.js";
|
|
58
|
+
import { c as signalRpcRequest, l as streamSignalEvents, n as sendReadReceiptSignal, o as resolveSignalRpcContext, r as sendTypingSignal, s as signalCheck, t as sendMessageSignal } from "./send-BsKrW0Xh.js";
|
|
59
59
|
import { t as makeProxyFetch } from "./proxy-MquBDehr.js";
|
|
60
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
61
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
62
|
-
import { t as getActiveWebListener } from "./active-listener-
|
|
60
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-BDLDhEh_.js";
|
|
61
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-YDjHVGij.js";
|
|
62
|
+
import { t as getActiveWebListener } from "./active-listener-CeaKSm29.js";
|
|
63
63
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-CBq0jVRw.js";
|
|
64
64
|
import { createRequire } from "node:module";
|
|
65
65
|
import fs, { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
66
66
|
import * as path$1 from "node:path";
|
|
67
67
|
import path from "node:path";
|
|
68
68
|
import os, { homedir } from "node:os";
|
|
69
|
-
import
|
|
69
|
+
import json5 from "json5";
|
|
70
70
|
import { ApplicationCommandOptionType, ButtonStyle, ChannelType, PermissionFlagsBits, Routes, StickerFormatType } from "discord-api-types/v10";
|
|
71
71
|
import { Button, ChannelSelectMenu, ChannelType as ChannelType$1, Client, Command, CommandWithSubcommands, Container, MentionableSelectMenu, MessageCreateListener, MessageReactionAddListener, MessageReactionRemoveListener, MessageType, Modal, PresenceUpdateListener, ReadyListener, RoleSelectMenu, Row, Separator, StringSelectMenu, TextDisplay, UserSelectMenu, serializePayload } from "@buape/carbon";
|
|
72
72
|
import crypto, { X509Certificate, createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -7787,7 +7787,7 @@ async function createModelSelectionState(params) {
|
|
|
7787
7787
|
}
|
|
7788
7788
|
}
|
|
7789
7789
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
7790
|
-
const { ensureAuthProfileStore } = await import("./model-selection-
|
|
7790
|
+
const { ensureAuthProfileStore } = await import("./model-selection-TMsqRl-p.js").then((n) => n.O);
|
|
7791
7791
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
7792
7792
|
const providerKey = normalizeProviderId(provider);
|
|
7793
7793
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -11539,7 +11539,7 @@ async function getMemorySearchManager(params) {
|
|
|
11539
11539
|
if (cached) return { manager: cached };
|
|
11540
11540
|
}
|
|
11541
11541
|
try {
|
|
11542
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
11542
|
+
const { QmdMemoryManager } = await import("./qmd-manager-qSSWvVwi.js");
|
|
11543
11543
|
const primary = await QmdMemoryManager.create({
|
|
11544
11544
|
cfg: params.cfg,
|
|
11545
11545
|
agentId: params.agentId,
|
|
@@ -11551,7 +11551,7 @@ async function getMemorySearchManager(params) {
|
|
|
11551
11551
|
const wrapper = new FallbackMemoryManager({
|
|
11552
11552
|
primary,
|
|
11553
11553
|
fallbackFactory: async () => {
|
|
11554
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
11554
|
+
const { MemoryIndexManager } = await import("./manager-CtapJqej.js").then((n) => n.t);
|
|
11555
11555
|
return await MemoryIndexManager.get(params);
|
|
11556
11556
|
}
|
|
11557
11557
|
}, () => QMD_MANAGER_CACHE.delete(cacheKey));
|
|
@@ -11564,7 +11564,7 @@ async function getMemorySearchManager(params) {
|
|
|
11564
11564
|
}
|
|
11565
11565
|
}
|
|
11566
11566
|
try {
|
|
11567
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
11567
|
+
const { MemoryIndexManager } = await import("./manager-CtapJqej.js").then((n) => n.t);
|
|
11568
11568
|
return { manager: await MemoryIndexManager.get(params) };
|
|
11569
11569
|
} catch (err) {
|
|
11570
11570
|
return {
|
|
@@ -12623,7 +12623,7 @@ function normalizeSessionKey(value) {
|
|
|
12623
12623
|
function readSessionStore(storePath) {
|
|
12624
12624
|
try {
|
|
12625
12625
|
const raw = fs.readFileSync(storePath, "utf-8");
|
|
12626
|
-
const parsed =
|
|
12626
|
+
const parsed = json5.parse(raw);
|
|
12627
12627
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
12628
12628
|
} catch {}
|
|
12629
12629
|
return {};
|
|
@@ -15480,7 +15480,7 @@ async function routeReply(params) {
|
|
|
15480
15480
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
15481
15481
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
15482
15482
|
try {
|
|
15483
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
15483
|
+
const { deliverOutboundPayloads } = await import("./deliver-D4QMj1KQ.js").then((n) => n.n);
|
|
15484
15484
|
return {
|
|
15485
15485
|
ok: true,
|
|
15486
15486
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -15968,6 +15968,9 @@ function createReplyDispatcherWithTyping(options) {
|
|
|
15968
15968
|
typingController = typing;
|
|
15969
15969
|
}
|
|
15970
15970
|
},
|
|
15971
|
+
markRunComplete: () => {
|
|
15972
|
+
typingController?.markRunComplete();
|
|
15973
|
+
},
|
|
15971
15974
|
markDispatchIdle: () => {
|
|
15972
15975
|
typingController?.markDispatchIdle();
|
|
15973
15976
|
onIdle?.();
|
|
@@ -16003,7 +16006,7 @@ async function dispatchInboundMessage(params) {
|
|
|
16003
16006
|
});
|
|
16004
16007
|
}
|
|
16005
16008
|
async function dispatchInboundMessageWithBufferedDispatcher(params) {
|
|
16006
|
-
const { dispatcher, replyOptions, markDispatchIdle } = createReplyDispatcherWithTyping(params.dispatcherOptions);
|
|
16009
|
+
const { dispatcher, replyOptions, markDispatchIdle, markRunComplete } = createReplyDispatcherWithTyping(params.dispatcherOptions);
|
|
16007
16010
|
try {
|
|
16008
16011
|
return await dispatchInboundMessage({
|
|
16009
16012
|
ctx: params.ctx,
|
|
@@ -16016,6 +16019,7 @@ async function dispatchInboundMessageWithBufferedDispatcher(params) {
|
|
|
16016
16019
|
}
|
|
16017
16020
|
});
|
|
16018
16021
|
} finally {
|
|
16022
|
+
markRunComplete();
|
|
16019
16023
|
markDispatchIdle();
|
|
16020
16024
|
}
|
|
16021
16025
|
}
|
|
@@ -17954,7 +17958,7 @@ async function describeStickerImage(params) {
|
|
|
17954
17958
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
17955
17959
|
try {
|
|
17956
17960
|
const buffer = await fs$1.readFile(imagePath);
|
|
17957
|
-
const { describeImageWithModel } = await import("./image-
|
|
17961
|
+
const { describeImageWithModel } = await import("./image-Bu6pmW6i.js").then((n) => n.n);
|
|
17958
17962
|
return (await describeImageWithModel({
|
|
17959
17963
|
buffer,
|
|
17960
17964
|
fileName: "sticker.webp",
|
|
@@ -18365,7 +18369,7 @@ function createWhatsAppLoginTool() {
|
|
|
18365
18369
|
force: Type.Optional(Type.Boolean())
|
|
18366
18370
|
}),
|
|
18367
18371
|
execute: async (_toolCallId, args) => {
|
|
18368
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
18372
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-DyxTgmGK.js");
|
|
18369
18373
|
if ((args?.action ?? "start") === "wait") {
|
|
18370
18374
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
18371
18375
|
return {
|
|
@@ -20232,7 +20236,7 @@ async function preflightDiscordMessage(params) {
|
|
|
20232
20236
|
let preflightTranscript;
|
|
20233
20237
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
20234
20238
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
20235
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
20239
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-zFFuY6Bd.js");
|
|
20236
20240
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
20237
20241
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
20238
20242
|
ctx: {
|
|
@@ -26832,27 +26836,27 @@ async function runWithImageModelFallback(params) {
|
|
|
26832
26836
|
function createDefaultDeps() {
|
|
26833
26837
|
return {
|
|
26834
26838
|
sendMessageWhatsApp: async (...args) => {
|
|
26835
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
26839
|
+
const { sendMessageWhatsApp } = await import("./web-BFEz8bk-.js");
|
|
26836
26840
|
return await sendMessageWhatsApp(...args);
|
|
26837
26841
|
},
|
|
26838
26842
|
sendMessageTelegram: async (...args) => {
|
|
26839
|
-
const { sendMessageTelegram } = await import("./send-
|
|
26843
|
+
const { sendMessageTelegram } = await import("./send-CNMXFSjB.js").then((n) => n.l);
|
|
26840
26844
|
return await sendMessageTelegram(...args);
|
|
26841
26845
|
},
|
|
26842
26846
|
sendMessageDiscord: async (...args) => {
|
|
26843
|
-
const { sendMessageDiscord } = await import("./send-
|
|
26847
|
+
const { sendMessageDiscord } = await import("./send-DZQYUVIY.js").then((n) => n.t);
|
|
26844
26848
|
return await sendMessageDiscord(...args);
|
|
26845
26849
|
},
|
|
26846
26850
|
sendMessageSlack: async (...args) => {
|
|
26847
|
-
const { sendMessageSlack } = await import("./send-
|
|
26851
|
+
const { sendMessageSlack } = await import("./send-3DmbiJfM.js").then((n) => n.n);
|
|
26848
26852
|
return await sendMessageSlack(...args);
|
|
26849
26853
|
},
|
|
26850
26854
|
sendMessageSignal: async (...args) => {
|
|
26851
|
-
const { sendMessageSignal } = await import("./send-
|
|
26855
|
+
const { sendMessageSignal } = await import("./send-BsKrW0Xh.js").then((n) => n.i);
|
|
26852
26856
|
return await sendMessageSignal(...args);
|
|
26853
26857
|
},
|
|
26854
26858
|
sendMessageIMessage: async (...args) => {
|
|
26855
|
-
const { sendMessageIMessage } = await import("./send-
|
|
26859
|
+
const { sendMessageIMessage } = await import("./send-DU1Pnsmd.js").then((n) => n.n);
|
|
26856
26860
|
return await sendMessageIMessage(...args);
|
|
26857
26861
|
}
|
|
26858
26862
|
};
|
|
@@ -34565,6 +34569,10 @@ function createSlackMonitorContext(params) {
|
|
|
34565
34569
|
ttlMs: 6e4,
|
|
34566
34570
|
maxSize: 500
|
|
34567
34571
|
});
|
|
34572
|
+
const seenEventIds = createDedupeCache({
|
|
34573
|
+
ttlMs: 6e4,
|
|
34574
|
+
maxSize: 500
|
|
34575
|
+
});
|
|
34568
34576
|
const allowFrom = normalizeAllowList(params.allowFrom);
|
|
34569
34577
|
const groupDmChannels = normalizeAllowList(params.groupDmChannels);
|
|
34570
34578
|
const defaultRequireMention = params.defaultRequireMention ?? true;
|
|
@@ -34572,6 +34580,10 @@ function createSlackMonitorContext(params) {
|
|
|
34572
34580
|
if (!channelId || !ts) return false;
|
|
34573
34581
|
return seenMessages.check(`${channelId}:${ts}`);
|
|
34574
34582
|
};
|
|
34583
|
+
const markEventIdSeen = (eventId) => {
|
|
34584
|
+
if (!eventId) return false;
|
|
34585
|
+
return seenEventIds.check(eventId);
|
|
34586
|
+
};
|
|
34575
34587
|
const resolveSlackSystemEventSessionKey = (p) => {
|
|
34576
34588
|
const channelId = p.channelId?.trim() ?? "";
|
|
34577
34589
|
if (!channelId) return params.mainKey;
|
|
@@ -34736,6 +34748,7 @@ function createSlackMonitorContext(params) {
|
|
|
34736
34748
|
removeAckAfterReply: params.removeAckAfterReply,
|
|
34737
34749
|
logger,
|
|
34738
34750
|
markMessageSeen,
|
|
34751
|
+
markEventIdSeen,
|
|
34739
34752
|
shouldDropMismatchedSlackEvent,
|
|
34740
34753
|
resolveSlackSystemEventSessionKey,
|
|
34741
34754
|
isChannelAllowed,
|
|
@@ -35360,6 +35373,8 @@ function registerSlackMessageEvents(params) {
|
|
|
35360
35373
|
ctx.app.event("message", async ({ event, body }) => {
|
|
35361
35374
|
try {
|
|
35362
35375
|
if (ctx.shouldDropMismatchedSlackEvent(body)) return;
|
|
35376
|
+
const eventId = body.event_id;
|
|
35377
|
+
if (ctx.markEventIdSeen(eventId)) return;
|
|
35363
35378
|
const message = event;
|
|
35364
35379
|
if (message.subtype === "message_changed") {
|
|
35365
35380
|
const changed = event;
|
|
@@ -35405,6 +35420,8 @@ function registerSlackMessageEvents(params) {
|
|
|
35405
35420
|
ctx.app.event("app_mention", async ({ event, body }) => {
|
|
35406
35421
|
try {
|
|
35407
35422
|
if (ctx.shouldDropMismatchedSlackEvent(body)) return;
|
|
35423
|
+
const eventId = body.event_id;
|
|
35424
|
+
if (ctx.markEventIdSeen(eventId)) return;
|
|
35408
35425
|
const mention = event;
|
|
35409
35426
|
const channelType = mention.channel_type;
|
|
35410
35427
|
if (channelType === "im" || channelType === "mpim") return;
|
|
@@ -37110,7 +37127,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
37110
37127
|
}
|
|
37111
37128
|
let commandsRegistry;
|
|
37112
37129
|
async function getCommandsRegistry() {
|
|
37113
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
37130
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-C0vBsgUy.js").then((n) => n.n);
|
|
37114
37131
|
return commandsRegistry;
|
|
37115
37132
|
}
|
|
37116
37133
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -37452,11 +37469,11 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
37452
37469
|
const channelName = channelInfo?.name;
|
|
37453
37470
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
37454
37471
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
37455
|
-
import("./resolve-route-
|
|
37472
|
+
import("./resolve-route-BDLDhEh_.js").then((n) => n.r),
|
|
37456
37473
|
import("./inbound-context-D5EzMeL_.js").then((n) => n.n),
|
|
37457
37474
|
Promise.resolve().then(() => provider_dispatcher_exports)
|
|
37458
37475
|
]);
|
|
37459
|
-
const [{ resolveConversationLabel }, { createReplyPrefixOptions }] = await Promise.all([import("./conversation-label-yNSj43Jt.js").then((n) => n.t), import("./reply-prefix-
|
|
37476
|
+
const [{ resolveConversationLabel }, { createReplyPrefixOptions }] = await Promise.all([import("./conversation-label-yNSj43Jt.js").then((n) => n.t), import("./reply-prefix-DNmkrWtV.js").then((n) => n.r)]);
|
|
37460
37477
|
const route = resolveAgentRoute({
|
|
37461
37478
|
cfg,
|
|
37462
37479
|
channel: "slack",
|
|
@@ -37513,9 +37530,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
37513
37530
|
});
|
|
37514
37531
|
const deliverSlashPayloads = async (replies) => {
|
|
37515
37532
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
37516
|
-
import("./replies-
|
|
37517
|
-
import("./chunk-
|
|
37518
|
-
import("./markdown-tables-
|
|
37533
|
+
import("./replies-YDjHVGij.js").then((n) => n.r),
|
|
37534
|
+
import("./chunk-CQk9vawA.js").then((n) => n.s),
|
|
37535
|
+
import("./markdown-tables-OYHjLFmr.js").then((n) => n.t)
|
|
37519
37536
|
]);
|
|
37520
37537
|
await deliverSlackSlashReplies({
|
|
37521
37538
|
replies,
|
|
@@ -37568,7 +37585,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
37568
37585
|
let nativeCommands = [];
|
|
37569
37586
|
if (nativeEnabled) {
|
|
37570
37587
|
reg = await getCommandsRegistry();
|
|
37571
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
37588
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-D7degVS7.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
|
|
37572
37589
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
37573
37590
|
skillCommands,
|
|
37574
37591
|
provider: "slack"
|
|
@@ -42349,7 +42366,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
|
|
|
42349
42366
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
42350
42367
|
let preflightTranscript;
|
|
42351
42368
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
42352
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
42369
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-zFFuY6Bd.js");
|
|
42353
42370
|
preflightTranscript = await transcribeFirstAudio({
|
|
42354
42371
|
ctx: {
|
|
42355
42372
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -44494,23 +44511,23 @@ let webLoginQrPromise = null;
|
|
|
44494
44511
|
let webChannelPromise = null;
|
|
44495
44512
|
let whatsappActionsPromise = null;
|
|
44496
44513
|
function loadWebOutbound() {
|
|
44497
|
-
webOutboundPromise ??= import("./outbound-
|
|
44514
|
+
webOutboundPromise ??= import("./outbound-Cs6LZhj-.js").then((n) => n.t);
|
|
44498
44515
|
return webOutboundPromise;
|
|
44499
44516
|
}
|
|
44500
44517
|
function loadWebLogin() {
|
|
44501
|
-
webLoginPromise ??= import("./login-
|
|
44518
|
+
webLoginPromise ??= import("./login-CkOX36_Y.js").then((n) => n.n);
|
|
44502
44519
|
return webLoginPromise;
|
|
44503
44520
|
}
|
|
44504
44521
|
function loadWebLoginQr() {
|
|
44505
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
44522
|
+
webLoginQrPromise ??= import("./login-qr-DyxTgmGK.js");
|
|
44506
44523
|
return webLoginQrPromise;
|
|
44507
44524
|
}
|
|
44508
44525
|
function loadWebChannel() {
|
|
44509
|
-
webChannelPromise ??= import("./web-
|
|
44526
|
+
webChannelPromise ??= import("./web-BFEz8bk-.js");
|
|
44510
44527
|
return webChannelPromise;
|
|
44511
44528
|
}
|
|
44512
44529
|
function loadWhatsAppActions() {
|
|
44513
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
44530
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-Bffbt65T.js");
|
|
44514
44531
|
return whatsappActionsPromise;
|
|
44515
44532
|
}
|
|
44516
44533
|
function createPluginRuntime() {
|
|
@@ -59644,7 +59661,7 @@ async function recordLoopOutcome(args) {
|
|
|
59644
59661
|
if (!args.ctx?.sessionKey) return;
|
|
59645
59662
|
try {
|
|
59646
59663
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Wd5tNeQG.js").then((n) => n.n);
|
|
59647
|
-
const { recordToolCallOutcome } = await import("./tool-loop-detection-
|
|
59664
|
+
const { recordToolCallOutcome } = await import("./tool-loop-detection-D0ADW0h2.js");
|
|
59648
59665
|
recordToolCallOutcome(getDiagnosticSessionState({
|
|
59649
59666
|
sessionKey: args.ctx.sessionKey,
|
|
59650
59667
|
sessionId: args.ctx?.agentId
|
|
@@ -59665,8 +59682,8 @@ async function runBeforeToolCallHook(args) {
|
|
|
59665
59682
|
const params = args.params;
|
|
59666
59683
|
if (args.ctx?.sessionKey) {
|
|
59667
59684
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Wd5tNeQG.js").then((n) => n.n);
|
|
59668
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
59669
|
-
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-
|
|
59685
|
+
const { logToolLoopAction } = await import("./diagnostic-Up1aMyxZ.js").then((n) => n.n);
|
|
59686
|
+
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-D0ADW0h2.js");
|
|
59670
59687
|
const sessionState = getDiagnosticSessionState({
|
|
59671
59688
|
sessionKey: args.ctx.sessionKey,
|
|
59672
59689
|
sessionId: args.ctx?.agentId
|
|
@@ -76393,7 +76410,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
76393
76410
|
return;
|
|
76394
76411
|
}
|
|
76395
76412
|
try {
|
|
76396
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
76413
|
+
const { deliverOutboundPayloads } = await import("./deliver-D4QMj1KQ.js").then((n) => n.n);
|
|
76397
76414
|
await deliverOutboundPayloads({
|
|
76398
76415
|
cfg: params.cfg,
|
|
76399
76416
|
channel,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as resolveAgentConfig } from "./agent-scope-
|
|
2
|
+
import { n as resolveAgentConfig } from "./agent-scope-DnU66cJq.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/identity.ts
|
|
5
5
|
const DEFAULT_ACK_REACTION = "👀";
|
package/dist/plugin-sdk/{resolve-outbound-target-vib4nnNx.js → resolve-outbound-target-DCb1ht31.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as normalizeWhatsAppTarget, g as isWhatsAppGroupJid } from "./plugins-
|
|
2
|
-
import { n as missingTargetError } from "./target-errors-
|
|
1
|
+
import { _ as normalizeWhatsAppTarget, g as isWhatsAppGroupJid } from "./plugins-BizZYn_y.js";
|
|
2
|
+
import { n as missingTargetError } from "./target-errors-KOPdGMxQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/whatsapp/resolve-outbound-target.ts
|
|
5
5
|
function resolveWhatsAppOutboundTarget(params) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { d as sanitizeAgentId, f as DEFAULT_ACCOUNT_ID, i as buildAgentPeerSessionKey, n as DEFAULT_MAIN_KEY, p as normalizeAccountId, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-C_0eELjb.js";
|
|
3
|
-
import { Y as shouldLogVerbose } from "./registry-
|
|
4
|
-
import { O as logDebug, c as resolveDefaultAgentId } from "./agent-scope-
|
|
3
|
+
import { Y as shouldLogVerbose } from "./registry-DL-33c9X.js";
|
|
4
|
+
import { O as logDebug, c as resolveDefaultAgentId } from "./agent-scope-DnU66cJq.js";
|
|
5
5
|
import { t as normalizeChatType } from "./chat-type-CEMQNtWX.js";
|
|
6
|
-
import { t as listBindings } from "./bindings-
|
|
6
|
+
import { t as listBindings } from "./bindings-HAeLX6mi.js";
|
|
7
7
|
|
|
8
8
|
//#region src/routing/resolve-route.ts
|
|
9
9
|
var resolve_route_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as fetchWithTimeout } from "./fetch-timeout-ChYuW7LE.js";
|
|
2
|
-
import { K as logVerbose, Y as shouldLogVerbose } from "./registry-
|
|
3
|
-
import { S as resolveIMessageAttachmentRoots, b as isInboundPathAllowed, n as loadConfig, x as mergeInboundPathRoots, y as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS } from "./config-
|
|
4
|
-
import { B as resolveOpenClawAgentDir, T as resolveApiKeyForProvider, c as normalizeProviderId, h as normalizeGoogleModelId, w as requireApiKey } from "./model-selection-
|
|
5
|
-
import { E as runExec } from "./agent-scope-
|
|
6
|
-
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-
|
|
7
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, r as MediaFetchError } from "./local-roots-
|
|
2
|
+
import { K as logVerbose, Y as shouldLogVerbose } from "./registry-DL-33c9X.js";
|
|
3
|
+
import { S as resolveIMessageAttachmentRoots, b as isInboundPathAllowed, n as loadConfig, x as mergeInboundPathRoots, y as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS } from "./config-C1a-yGCa.js";
|
|
4
|
+
import { B as resolveOpenClawAgentDir, T as resolveApiKeyForProvider, c as normalizeProviderId, h as normalizeGoogleModelId, w as requireApiKey } from "./model-selection-TMsqRl-p.js";
|
|
5
|
+
import { E as runExec } from "./agent-scope-DnU66cJq.js";
|
|
6
|
+
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-6S8Fa1d6.js";
|
|
7
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, r as MediaFetchError } from "./local-roots-CW6TWE2a.js";
|
|
8
8
|
import { t as normalizeChatType } from "./chat-type-CEMQNtWX.js";
|
|
9
|
-
import { t as describeImageWithModel, x as ensureOpenClawModelsJson } from "./image-
|
|
10
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
9
|
+
import { t as describeImageWithModel, x as ensureOpenClawModelsJson } from "./image-Bu6pmW6i.js";
|
|
10
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-DRhVpAS4.js";
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import os from "node:os";
|
|
@@ -899,7 +899,7 @@ async function loadModelCatalog(params) {
|
|
|
899
899
|
});
|
|
900
900
|
try {
|
|
901
901
|
await ensureOpenClawModelsJson(params?.config ?? loadConfig());
|
|
902
|
-
await (await import("./pi-auth-json-
|
|
902
|
+
await (await import("./pi-auth-json-Dpj7O31p.js")).ensurePiAuthJsonFromAuthProfiles(resolveOpenClawAgentDir());
|
|
903
903
|
const piSdk = await importPiSdk();
|
|
904
904
|
const agentDir = resolveOpenClawAgentDir();
|
|
905
905
|
const { join } = await import("node:path");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { A as resolveSlackBotToken, D as resolveSlackAccount, m as parseSlackTarget } from "./plugins-
|
|
3
|
-
import { K as logVerbose } from "./registry-
|
|
4
|
-
import { n as loadConfig } from "./config-
|
|
5
|
-
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
6
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
2
|
+
import { A as resolveSlackBotToken, D as resolveSlackAccount, m as parseSlackTarget } from "./plugins-BizZYn_y.js";
|
|
3
|
+
import { K as logVerbose } from "./registry-DL-33c9X.js";
|
|
4
|
+
import { n as loadConfig } from "./config-C1a-yGCa.js";
|
|
5
|
+
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-yosTlCQ0.js";
|
|
6
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-CQk9vawA.js";
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-OYHjLFmr.js";
|
|
8
8
|
import { t as renderMarkdownWithMarkers } from "./render-BiJZ5W4Z.js";
|
|
9
9
|
import { WebClient } from "@slack/web-api";
|
|
10
10
|
|