@bitseek/claw 1.3.6 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-CX1yOBOk.js → accounts-BTexwKe8.js} +1 -1
- package/dist/{accounts-Bwq1wvds.js → accounts-DMvETf-t.js} +1 -1
- package/dist/{accounts-CaiECgq3.js → accounts-ubG6irXZ.js} +16 -16
- package/dist/{active-listener-neKWQsOO.js → active-listener-Hd9sOu9T.js} +1 -1
- package/dist/{agent-scope-CTbRzU1C.js → agent-scope-C6hps0r3.js} +4 -4
- package/dist/{api-key-rotation-BbZD-rsQ.js → api-key-rotation-Cv5_SG_o.js} +2 -2
- package/dist/{audio-preflight-C5Crv38h.js → audio-preflight-C2pZmbnM.js} +39 -39
- package/dist/{audio-transcription-runner-eVtEKUPC.js → audio-transcription-runner-CQ4BMvGX.js} +11 -11
- package/dist/{bindings-Daa-Etag.js → bindings-CsIiIjqN.js} +2 -2
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +65 -65
- package/dist/bundled/bootstrap-extra-files/handler.js +7 -7
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +65 -65
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{plugin-sdk/channel-activity-DAEbma-o.js → channel-activity-Dwc2BBvs.js} +3 -3
- package/dist/{chrome-BRjY_MCc.js → chrome-DWfXErGH.js} +26 -26
- package/dist/{chunk-Dfkbh8wX.js → chunk-2ZxftpDd.js} +1 -1
- package/dist/{command-registry-BSN6zVlZ.js → command-registry-CtTmCFgA.js} +5 -5
- package/dist/{commands-registry-NyRDVN7s.js → commands-registry-CTkboeeC.js} +5 -5
- package/dist/{completion-cli-lZ6S6oKA.js → completion-cli-D_Hxee-R.js} +2 -2
- package/dist/{completion-cli-BDeiV4p9.js → completion-cli-wYWbi5wA.js} +1 -1
- package/dist/{deliver-DlLNT2iR.js → deliver-zrYSWfQ5.js} +22 -22
- package/dist/{diagnostic-DpOlXoSr.js → diagnostic-BO1GQJJf.js} +2 -2
- package/dist/{dock-DXlPVrMo.js → dock-Bm23mfim.js} +6 -6
- package/dist/{doctor-completion-BKCOmkBi.js → doctor-completion-BYgrEW3s.js} +1 -1
- package/dist/{doctor-completion-Bim4XRFT.js → doctor-completion-Bai361_Y.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{env-Bn6pmvjK.js → env-DNMZEG57.js} +2 -2
- package/dist/{plugin-sdk/errors-jusxdu7M.js → errors-B11yhRo6.js} +1 -1
- package/dist/{fetch-2cO0rj7X.js → fetch-4RonjgqX.js} +5 -5
- package/dist/{fetch-guard-iigSYt3Q.js → fetch-guard-B1EGEHan.js} +2 -2
- package/dist/{frontmatter-rlCI8Hmw.js → frontmatter-D6vByAHn.js} +2 -2
- package/dist/{fs-safe-CM9EhGvi.js → fs-safe-C77EShMC.js} +4 -4
- package/dist/{gateway-cli-CDgld1qp.js → gateway-cli-C3ftrrlK.js} +1 -1
- package/dist/{gateway-cli-8DmbQc9V.js → gateway-cli-CBGutU8q.js} +1 -1
- package/dist/{github-copilot-token-CPjAmbfr.js → github-copilot-token-DLGN-8YS.js} +7 -7
- package/dist/{image-BWlmyhr-.js → image-DnxYCkHO.js} +6 -6
- package/dist/{image-ops-jvmQoiyw.js → image-ops-DCpyia_K.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{internal-hooks-oLQ2m8YT.js → internal-hooks-yQe6H47q.js} +1 -1
- package/dist/{ir-pR36nI-3.js → ir-DcDVAFj3.js} +6 -6
- package/dist/llm-slug-generator.js +65 -65
- package/dist/{plugin-sdk/logger-Cr-x0vMf.js → logger-BlH5MJiV.js} +1 -1
- package/dist/{login-Cm2zDfEU.js → login-CgEHUE7h.js} +6 -6
- package/dist/{login-qr-iS1jPDpP.js → login-qr-DUJfhbUe.js} +13 -13
- package/dist/{manager-BX3KtavU.js → manager-tozHviEd.js} +15 -15
- package/dist/{markdown-tables-pfs_NCNh.js → markdown-tables-BHONoo6S.js} +1 -1
- package/dist/{message-channel-DB68nc40.js → message-channel-pbgFFUNm.js} +1 -1
- package/dist/{model-selection-DfZMxaX3.js → model-selection-D_Si2Ict.js} +44 -44
- package/dist/{onboard-BcaFvsav.js → onboard-C0Bo_5Vw.js} +1 -1
- package/dist/{onboard-sKY5jwsH.js → onboard-CI1TyO0l.js} +1 -1
- package/dist/{onboarding-BRfS3PSa.js → onboarding-DjOCmNCk.js} +1 -1
- package/dist/{onboarding-JNyox6ZE.js → onboarding-DufCP2B8.js} +1 -1
- package/dist/{onboarding.finalize-hBg4b8IC.js → onboarding.finalize-BI2feWXN.js} +4 -4
- package/dist/{onboarding.finalize-CG9tTRyw.js → onboarding.finalize-C7iEnG3X.js} +3 -3
- package/dist/{outbound-N9_vLIGT.js → outbound-9rXkgGZM.js} +7 -7
- package/dist/{outbound-attachment-CEt49GWZ.js → outbound-attachment-Cy8rvvJE.js} +2 -2
- package/dist/{path-alias-guards-xY_GOJVd.js → path-alias-guards-Cpb5gMG6.js} +1 -1
- package/dist/{paths-Bi8MJ8NM.js → paths-BHEVctLd.js} +3 -3
- package/dist/{paths-DKuX7-1L.js → paths-aGRLvQx9.js} +5 -5
- package/dist/{pi-embedded-CDXssetE.js → pi-embedded-BQqt592d.js} +187 -187
- package/dist/{pi-embedded-helpers-DSPiPpLM.js → pi-embedded-helpers-Bo7e-QzJ.js} +29 -29
- package/dist/{pi-model-discovery-N7o4F93J.js → pi-model-discovery-DA46fxhD.js} +7 -7
- package/dist/plugin-sdk/{accounts-COLYAAOx.js → accounts-4WE2wtsW.js} +1 -1
- package/dist/plugin-sdk/{accounts-BZrkOo6-.js → accounts-AbI8uETR.js} +1 -1
- package/dist/plugin-sdk/{accounts-D_pT5EjF.js → accounts-BYcizTXn.js} +3 -3
- package/dist/plugin-sdk/{active-listener-DxBXcWm_.js → active-listener-pnqLAUOh.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-DT5pxpJB.js → agent-scope-_j3fIYCK.js} +3 -3
- package/dist/plugin-sdk/{api-key-rotation-Dl6Ad7Nj.js → api-key-rotation-CYI51U_M.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-PGsiEosa.js → audio-preflight-D8BVTHCB.js} +33 -33
- package/dist/plugin-sdk/{audio-transcription-runner-CooPnqtC.js → audio-transcription-runner-CRpY5uDq.js} +10 -10
- package/dist/plugin-sdk/{bindings-BSfhEjKN.js → bindings-CxxzC7gn.js} +2 -2
- package/dist/{channel-activity-D0BHmeoE.js → plugin-sdk/channel-activity-B3yZ-f-m.js} +3 -3
- package/dist/plugin-sdk/{channel-web-Dn5fneOY.js → channel-web-BgnipXq5.js} +23 -23
- package/dist/plugin-sdk/{chrome-Dn0G4NoF.js → chrome-oPevdeh5.js} +7 -7
- package/dist/plugin-sdk/{chunk-cvtXztAT.js → chunk-BPyPeheZ.js} +1 -1
- package/dist/plugin-sdk/{command-format-BOJz3y1v.js → command-format-DvyMEXQo.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-CZWv_JwZ.js → commands-registry-Dk8re8Lz.js} +5 -5
- package/dist/plugin-sdk/{config-DAwOhnVF.js → config-D7I2_X4P.js} +10 -10
- package/dist/plugin-sdk/{deliver-PdH-MCq8.js → deliver-NrIHn0__.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-BZvj-qNu.js → diagnostic-DL3k_wRi.js} +2 -2
- package/dist/plugin-sdk/{dock-BdR3OYZn.js → dock-CjdkiLH7.js} +6 -6
- package/dist/{errors-Ct2kCLWx.js → plugin-sdk/errors-DFTN4h2I.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Dary6WwJ.js → fetch-guard-BivEyA4v.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DMCE0ej9.js → fs-safe-B256n7Ff.js} +3 -3
- package/dist/plugin-sdk/{image-B3A2l2ep.js → image-CkPzr3XN.js} +6 -6
- package/dist/plugin-sdk/{image-ops-DulHE5Qc.js → image-ops-C9GXWF3o.js} +1 -1
- package/dist/plugin-sdk/index.js +64 -64
- package/dist/plugin-sdk/{ir-BFXiJrsN.js → ir-BIm-jvIK.js} +6 -6
- package/dist/plugin-sdk/{local-roots-DssN60r6.js → local-roots-2AOXGUXW.js} +4 -4
- package/dist/{logger-DelEB7MK.js → plugin-sdk/logger-CNhs9eKJ.js} +1 -1
- package/dist/plugin-sdk/{login-D0ul3-6C.js → login-BcLiF9tC.js} +6 -6
- package/dist/plugin-sdk/{login-qr-XWKTFBuI.js → login-qr-GyPUodKJ.js} +9 -9
- package/dist/plugin-sdk/{manager-DGx_cF54.js → manager-DYLqNUb4.js} +10 -10
- package/dist/plugin-sdk/{markdown-tables-CsQpDNU5.js → markdown-tables-D9mmqMKi.js} +1 -1
- package/dist/plugin-sdk/{message-channel-CvNq-esz.js → message-channel-_CEZcqxE.js} +1 -1
- package/dist/plugin-sdk/{outbound-D29FHlQl.js → outbound-DdTsUaXa.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-DRHrZUOx.js → outbound-attachment--hkuIDR1.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DpKV1B5p.js → path-alias-guards-BqUCBfUg.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-CKEUWckk.js → pi-embedded-helpers-CTfvZz83.js} +17 -17
- package/dist/plugin-sdk/{pi-model-discovery-BPeQq9XM.js → pi-model-discovery-CK3Ih_kq.js} +1 -1
- package/dist/plugin-sdk/{plugins-DF_dKXTR.js → plugins-BpHAMNJ1.js} +6 -6
- package/dist/plugin-sdk/{proxy-BfmEDoun.js → proxy-BJdRZOnJ.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-BpHIgvBk.js → proxy-fetch-jmbopGcm.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-BmmXDjtm.js → pw-ai-D0Kx7w1D.js} +13 -13
- package/dist/plugin-sdk/{qmd-manager-3hQbqkm5.js → qmd-manager-BDcutPp9.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-BOGLUWB7.js → query-expansion-C_X8SyEA.js} +2 -2
- package/dist/{redact-BC9R18Uw.js → plugin-sdk/redact-DH8u23pF.js} +1 -1
- package/dist/plugin-sdk/{registry-Cv-oHUj1.js → registry-HF8_S7QO.js} +2 -2
- package/dist/{replies-B6I1tT5t.js → plugin-sdk/replies-DbjvV4gf.js} +3 -3
- package/dist/plugin-sdk/{reply-rsLB0nJs.js → reply-DpplAsbO.js} +93 -93
- package/dist/plugin-sdk/{reply-prefix-DXthVxCx.js → reply-prefix-KODsMNJ-.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-D3Y4F2Le.js → resolve-outbound-target-BPT4aNiD.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-DuwYYn4a.js → resolve-route-De2B5QY_.js} +4 -4
- package/dist/plugin-sdk/{retry-BMcrIz7L.js → retry-pZ8iKytf.js} +1 -1
- package/dist/plugin-sdk/{send-D0AaWnIj.js → send-1uW-uqPf.js} +7 -7
- package/dist/plugin-sdk/{send-C5USYGq7.js → send-BoNw1Bki.js} +8 -8
- package/dist/plugin-sdk/{send-B0ztz6QC.js → send-C-Rd2stz.js} +6 -6
- package/dist/plugin-sdk/{send-DJzwu8kk.js → send-CZIN8SDx.js} +15 -15
- package/dist/plugin-sdk/{send-DEyQJTzd.js → send-wCqsQs_s.js} +10 -10
- package/dist/plugin-sdk/{session-meta-ChWvKVWj.js → session-meta-7J-uHiM_.js} +1 -1
- package/dist/plugin-sdk/{session-BA7tVDpV.js → session-ooYcB82T.js} +5 -5
- package/dist/plugin-sdk/{sessions-BXps6YzJ.js → sessions-lAIo5l8W.js} +6 -6
- package/dist/plugin-sdk/{skill-commands-B20uUsji.js → skill-commands-D1Q6hGS4.js} +5 -5
- package/dist/plugin-sdk/{skills-DXOTei42.js → skills-BWSDv2F_.js} +8 -8
- package/dist/plugin-sdk/{ssrf-Doxv9M7Q.js → ssrf-JKDwTi8i.js} +1 -1
- package/dist/plugin-sdk/{store-BZbE1V-C.js → store-BMeqzQAf.js} +2 -2
- package/dist/plugin-sdk/{subsystem-CM1s2lDT.js → subsystem-B0V8LFBA.js} +2 -2
- package/dist/plugin-sdk/{tables-BhH8EIqU.js → tables-DCSeBGBz.js} +1 -1
- package/dist/{target-errors-C-KolUyX.js → plugin-sdk/target-errors-0u6pegQv.js} +2 -2
- package/dist/{tokens-BvzZdrVJ.js → plugin-sdk/tokens-DF2_VTJy.js} +1 -1
- package/dist/{tool-images-DiKIlElg.js → plugin-sdk/tool-images-BbsgbHMZ.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-CygMSQUK.js → tool-loop-detection-JkCpGrfk.js} +2 -2
- package/dist/plugin-sdk/{utils-BcL6KGZf.js → utils-BfVxx6bk.js} +1 -1
- package/dist/plugin-sdk/web-pXzbtWjI.js +72 -0
- package/dist/plugin-sdk/{whatsapp-actions-CRean1yN.js → whatsapp-actions-tVcrGNQc.js} +25 -25
- package/dist/{plugins-D63QYxW6.js → plugins-CJoaoIHc.js} +11 -11
- package/dist/{program-B_-eFyJE.js → program-CQtsVyIe.js} +2 -2
- package/dist/{program-context-BJQXRZ1w.js → program-context-CbirfwjC.js} +7 -7
- package/dist/{prompt-select-styled-asxoqY78.js → prompt-select-styled-BlHvgGuv.js} +1 -1
- package/dist/{prompt-select-styled-QH4mD93d.js → prompt-select-styled-CY9iF1l-.js} +1 -1
- package/dist/{proxy-jINniQBi.js → proxy-DfJJLvch.js} +1 -1
- package/dist/{proxy-env-Drg9J503.js → proxy-env-ynOWOBHx.js} +1 -1
- package/dist/{proxy-fetch-AvkSvetA.js → proxy-fetch-xlbVQYN_.js} +1 -1
- package/dist/{pw-ai-gDXxKGzT.js → pw-ai-Cu3cnNF0.js} +17 -17
- package/dist/{qmd-manager-DXbV8CPG.js → qmd-manager-n4jauq3A.js} +11 -11
- package/dist/{query-expansion-C0A4WwZX.js → query-expansion-CdDUaBcQ.js} +5 -5
- package/dist/{plugin-sdk/redact-BOuKZWXa.js → redact-CaZQhKzI.js} +1 -1
- package/dist/{register.maintenance-DvWoKstb.js → register.maintenance-Cid2HJ-t.js} +5 -5
- package/dist/{register.maintenance-B0nZqqML.js → register.maintenance-CyXghztz.js} +4 -4
- package/dist/{register.onboard-DOhvWYV7.js → register.onboard-BsT9XRRr.js} +2 -2
- package/dist/{register.onboard-B1-O21vU.js → register.onboard-CoItO2Ov.js} +2 -2
- package/dist/{register.setup-ixDBzvTR.js → register.setup-2S-SXPOC.js} +2 -2
- package/dist/{register.setup-KPZYo_I1.js → register.setup-DJjPOLJK.js} +2 -2
- package/dist/{register.start-Df91ZVJJ.js → register.start-CI8ol0Mk.js} +1 -1
- package/dist/{register.start-DErNT3nQ.js → register.start-D5trBtN0.js} +1 -1
- package/dist/{register.subclis-BSGvOwqU.js → register.subclis-CIlBs5A-.js} +3 -3
- package/dist/{registry-C2GEGa2t.js → registry-CJCkqTms.js} +3 -3
- package/dist/{plugin-sdk/replies-CddwWBTJ.js → replies-D6zARd6r.js} +3 -3
- package/dist/{reply-prefix-9mzt89Cf.js → reply-prefix-DK1i6bCJ.js} +1 -1
- package/dist/{resolve-route-BNElrVxR.js → resolve-route-C5hVstLo.js} +4 -4
- package/dist/{retry-Ayb7e4XG.js → retry-DTeP7C3h.js} +1 -1
- package/dist/{run-main-CdI1kXKr.js → run-main-bo-QbYn_.js} +3 -3
- package/dist/{send-BMzVXosN.js → send--Gq-Uh-l.js} +7 -7
- package/dist/{send-DC_e_Iev.js → send-BpyiQEov.js} +6 -6
- package/dist/{send-B6QQ8XfC.js → send-CcQZM0c7.js} +8 -8
- package/dist/{send-Buidj_8L.js → send-D2zYssqK.js} +27 -27
- package/dist/{send-BQETStDl.js → send-DcL81tZr.js} +10 -10
- package/dist/{session-meta-DAMj6ZRX.js → session-meta-BbCwXniv.js} +2 -2
- package/dist/{session-TVb8hgJP.js → session-xKPVUYQP.js} +9 -9
- package/dist/{sessions-Ck4ZR4dY.js → sessions-D7EjW0sG.js} +31 -31
- package/dist/{skill-commands-KesfMtZ9.js → skill-commands-Cea3CZFF.js} +9 -9
- package/dist/{skills-BYmEoxNo.js → skills-BttlqUXr.js} +22 -22
- package/dist/{store-KLMMBnKE.js → store-B7PaqfvZ.js} +2 -2
- package/dist/{subsystem-CAatx5oo.js → subsystem-BRjuJbbM.js} +14 -14
- package/dist/{tables-DqechQWF.js → tables-BJ0XAman.js} +1 -1
- package/dist/{plugin-sdk/target-errors-QZay02Cv.js → target-errors-Dad0aUFR.js} +2 -2
- package/dist/{plugin-sdk/tokens-DIE-Bf72.js → tokens-B9EDT4jv.js} +1 -1
- package/dist/{plugin-sdk/tool-images-heXfaJdb.js → tool-images-ArXzv82F.js} +2 -2
- package/dist/{tool-loop-detection-C4V990MS.js → tool-loop-detection-CLoYKYIq.js} +3 -3
- package/dist/{update-cli-CfeiDzYx.js → update-cli-BYrdZPXD.js} +4 -4
- package/dist/{update-cli-DKmrzt8l.js → update-cli-wmp8VSbx.js} +5 -5
- package/dist/{utils-Bo1RFF0l.js → utils-BFZnl-5N.js} +6 -6
- package/dist/{web-BPI4HIht.js → web-C5gLi1bN.js} +69 -69
- package/dist/{whatsapp-actions-Bf61u88d.js → whatsapp-actions-Be9uvUUL.js} +28 -28
- package/dist/{workspace-CswOYN9T.js → workspace-D6mrCnXi.js} +21 -21
- package/package.json +1 -1
- package/dist/plugin-sdk/web-RBob4uU1.js +0 -72
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
2
|
-
import { h as resolveUserPath } from "./utils-
|
|
1
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-B0V8LFBA.js";
|
|
2
|
+
import { h as resolveUserPath } from "./utils-BfVxx6bk.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
|
|
5
5
|
//#region src/hooks/internal-hooks.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as
|
|
3
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
4
|
-
import { i as
|
|
2
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-BPyPeheZ.js";
|
|
3
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-BoNw1Bki.js";
|
|
4
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-DF2_VTJy.js";
|
|
5
5
|
|
|
6
6
|
//#region src/auto-reply/reply/reply-reference.ts
|
|
7
7
|
function createReplyReferencePlanner(options) {
|
|
@@ -1,79 +1,79 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { C as resolveThreadParentSessionKey, S as parseAgentSessionKey, _ as deriveSessionChatType, b as isCronSessionKey, c as normalizeAgentId, d as resolveThreadSessionKeys, f as sanitizeAgentId, g as isBlockedObjectKey, h as normalizeOptionalAccountId, l as normalizeMainKey, m as normalizeAccountId$2, o as classifySessionKeyShape, p as DEFAULT_ACCOUNT_ID, r as buildAgentMainSessionKey, s as isValidAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, v as getSubagentDepth, x as isSubagentSessionKey, y as isAcpSessionKey } from "./session-key-CVIXEtLx.js";
|
|
3
|
-
import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, t as hasAnyWhatsAppAuth } from "./accounts-
|
|
3
|
+
import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, t as hasAnyWhatsAppAuth } from "./accounts-BYcizTXn.js";
|
|
4
4
|
import { a as resolveGatewayPort, c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, n as STATE_DIR, p as resolveCliName, r as resolveConfigPath } from "./paths-C__vjTc0.js";
|
|
5
5
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-WHEJfZD4.js";
|
|
6
|
-
import { $n as resolveAuthProfileDisplayLabel, An as resolveApiKeyForProvider, At as buildEnforcedShellCommand, Bn as resolveApiKeyForProfile, Bt as unwrapKnownDispatchWrapperInvocation, C as resolveIMessageRemoteAttachmentRoots, Cn as buildAssistantMessage, Ct as unsetConfigValueAtPath, Dn as getApiKeyForModel, Dt as normalizeTrustedSafeBinDirs, En as buildUsageWithNoCost, Et as listWritableExplicitTrustedSafeBinDirs, Fn as getSoonestCooldownExpiry, Ft as resolveAllowlistCandidatePath, Gn as ensureAuthProfileStore, Gt as resolveSafeBinProfiles, Hn as dedupeProfileIds, Ht as splitShellArgs, In as isProfileInCooldown, It as resolveCommandResolutionFromArgv, Jt as mapStreamingModeToSlackLegacyDraftStreamMode, Kn as resolveAuthStorePathForDisplay, Kt as applyMergePatch, Ln as markAuthProfileFailure, Lt as extractShellWrapperInlineCommand, Mn as resolveModelAuthMode, Mt as splitCommandChain, Nt as DEFAULT_SAFE_BINS, On as getCustomProviderApiKey, Ot as validateSafeBinArgv, Pn as resolveAuthProfileOrder, Pt as matchAllowlist, Rn as markAuthProfileUsed, Rt as isDispatchWrapperExecutable, S as resolveIMessageAttachmentRoots, Sn as createOllamaStreamFn, St as setConfigValueAtPath, T as parseNonNegativeByteSize, Tn as buildStreamErrorAssistantMessage, Tt as isTrustedSafeBinPath, Un as listProfilesForProvider, Ut as SAFE_BIN_PROFILES, V as parseDurationMs, Vt as unwrapKnownShellMultiplexerInvocation, Wn as markAuthProfileGood, Wt as normalizeSafeBinProfileFixtures, Xt as resolveSlackNativeStreaming, Yn as withFileLock, Yt as resolveDiscordPreviewStreamMode, Zt as resolveSlackStreamingMode, _ as normalizeTelegramCommandName, _t as resetConfigOverrides, a as resolveConfigSnapshotHash, an as findNormalizedProviderValue, ar as DEFAULT_PROVIDER, at as validateJsonSchemaValue, b as isInboundPathAllowed, bt as getConfigValueAtPath, cn as normalizeModelRef$2, cr as resolveShellEnvFallbackTimeoutMs, ct as isPathInside, dn as resolveDefaultModelForAgent, dt as MANIFEST_KEY, en as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, et as AVATAR_MAX_BYTES, fn as resolveModelRefFromString, ft as applyTestPluginDefaults, g as TELEGRAM_COMMAND_NAME_PATTERN, gt as getConfigOverrides, hn as resolveThinkingDefault, ht as resolveMemorySlotDecision, in as buildModelAliasIndex, ir as DEFAULT_MODEL, it as isSupportedLocalAvatarExtension, jn as resolveEnvApiKey, jt as isWindowsPlatform, kn as requireApiKey, kt as analyzeShellCommand, ln as normalizeProviderId, lr as isDangerousHostEnvVarName, lt as safeStatSync, mn as resolveSubagentSpawnModelSelection, mt as resolveEffectiveEnableState, n as loadConfig, nn as buildAllowedModelSet, nr as splitTrailingAuthProfile, nt as isAvatarHttpUrl, o as writeConfigFile, on as isCliProvider, or as VERSION, ot as loadPluginManifestRegistry, pn as resolveReasoningDefault, pt as normalizePluginsConfig, qn as resolveOpenClawAgentDir, qt as isSafeExecutableValue, r as readConfigFileSnapshot, rn as buildConfiguredAllowlistKeys, rr as DEFAULT_CONTEXT_TOKENS, rt as isPathWithinRoot, s as validateConfigObjectWithPlugins, sn as modelKey, sr as getShellPathFromLoginShell, st as discoverOpenClawPlugins, tn as resolveAgentMaxConcurrent, tr as normalizeSecretInput, tt as isAvatarDataUrl, un as resolveConfiguredModelRef, ur as resolveOwnerDisplaySetting, v as resolveTelegramCustomCommands, vt as setConfigOverride, w as normalizeScpRemoteHost, wn as buildAssistantMessageWithZeroUsage, wt as getTrustedSafeBinDirs, xn as OLLAMA_NATIVE_BASE_URL, xt as parseConfigPath, yt as unsetConfigOverride, zn as resolveProfilesUnavailableReason, zt as isShellWrapperExecutable } from "./config-
|
|
7
|
-
import { D as consumeRootOptionToken, E as FLAG_TERMINATOR, T as resolvePreferredOpenClawTmpDir, _ as isRich, a as clearActiveProgressLine, c as danger, f as setVerbose, g as colorize, h as warn, i as defaultRuntime, o as registerActiveProgressLine, p as shouldLogVerbose, r as createNonExitingRuntime, s as unregisterActiveProgressLine, t as createSubsystemLogger, u as logVerbose, v as theme, w as normalizeLogLevel, y as getChildLogger } from "./subsystem-
|
|
8
|
-
import { C as isPlainObject, S as truncateUtf16Safe, _ as shortenHomeInString, a as ensureDir$3, b as sliceUtf16Safe, c as isRecord$1, d as normalizeE164, h as resolveUserPath, o as escapeRegExp, r as clampInt, s as formatTerminalLink, t as CONFIG_DIR, v as shortenHomePath, y as sleep$1 } from "./utils-
|
|
9
|
-
import { n as isTruthyEnvValue, r as parseBooleanValue$1, t as formatCliCommand } from "./command-format-
|
|
10
|
-
import { A as spawnWithFallback, C as loadWorkspaceBootstrapFiles, E as resolveOpenClawPackageRoot, G as resolveAgentModelPrimaryValue, H as normalizeWindowsPathForComparison, K as toAgentModelListLike, M as openBoundaryFile, N as openBoundaryFileSync, O as runCommandWithTimeout, S as filterBootstrapFilesForSession, W as resolveAgentModelFallbackValues, _ as DEFAULT_IDENTITY_FILENAME, c as resolveDefaultAgentId, d as resolveSessionAgentId, f as resolveSessionAgentIds, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, k as runExec, l as resolveEffectiveModelFallbacks, m as DEFAULT_AGENT_WORKSPACE_DIR, n as listAgentIds, o as resolveAgentSkillsFilter, r as resolveAgentConfig, s as resolveAgentWorkspaceDir, t as hasConfiguredModelFallbacks, u as resolveRunModelFallbacksOverride, w as resolveWorkspaceAttachmentsRoot, x as ensureAgentWorkspace } from "./agent-scope-
|
|
11
|
-
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-
|
|
6
|
+
import { $n as resolveAuthProfileDisplayLabel, An as resolveApiKeyForProvider, At as buildEnforcedShellCommand, Bn as resolveApiKeyForProfile, Bt as unwrapKnownDispatchWrapperInvocation, C as resolveIMessageRemoteAttachmentRoots, Cn as buildAssistantMessage, Ct as unsetConfigValueAtPath, Dn as getApiKeyForModel, Dt as normalizeTrustedSafeBinDirs, En as buildUsageWithNoCost, Et as listWritableExplicitTrustedSafeBinDirs, Fn as getSoonestCooldownExpiry, Ft as resolveAllowlistCandidatePath, Gn as ensureAuthProfileStore, Gt as resolveSafeBinProfiles, Hn as dedupeProfileIds, Ht as splitShellArgs, In as isProfileInCooldown, It as resolveCommandResolutionFromArgv, Jt as mapStreamingModeToSlackLegacyDraftStreamMode, Kn as resolveAuthStorePathForDisplay, Kt as applyMergePatch, Ln as markAuthProfileFailure, Lt as extractShellWrapperInlineCommand, Mn as resolveModelAuthMode, Mt as splitCommandChain, Nt as DEFAULT_SAFE_BINS, On as getCustomProviderApiKey, Ot as validateSafeBinArgv, Pn as resolveAuthProfileOrder, Pt as matchAllowlist, Rn as markAuthProfileUsed, Rt as isDispatchWrapperExecutable, S as resolveIMessageAttachmentRoots, Sn as createOllamaStreamFn, St as setConfigValueAtPath, T as parseNonNegativeByteSize, Tn as buildStreamErrorAssistantMessage, Tt as isTrustedSafeBinPath, Un as listProfilesForProvider, Ut as SAFE_BIN_PROFILES, V as parseDurationMs, Vt as unwrapKnownShellMultiplexerInvocation, Wn as markAuthProfileGood, Wt as normalizeSafeBinProfileFixtures, Xt as resolveSlackNativeStreaming, Yn as withFileLock, Yt as resolveDiscordPreviewStreamMode, Zt as resolveSlackStreamingMode, _ as normalizeTelegramCommandName, _t as resetConfigOverrides, a as resolveConfigSnapshotHash, an as findNormalizedProviderValue, ar as DEFAULT_PROVIDER, at as validateJsonSchemaValue, b as isInboundPathAllowed, bt as getConfigValueAtPath, cn as normalizeModelRef$2, cr as resolveShellEnvFallbackTimeoutMs, ct as isPathInside, dn as resolveDefaultModelForAgent, dt as MANIFEST_KEY, en as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, et as AVATAR_MAX_BYTES, fn as resolveModelRefFromString, ft as applyTestPluginDefaults, g as TELEGRAM_COMMAND_NAME_PATTERN, gt as getConfigOverrides, hn as resolveThinkingDefault, ht as resolveMemorySlotDecision, in as buildModelAliasIndex, ir as DEFAULT_MODEL, it as isSupportedLocalAvatarExtension, jn as resolveEnvApiKey, jt as isWindowsPlatform, kn as requireApiKey, kt as analyzeShellCommand, ln as normalizeProviderId, lr as isDangerousHostEnvVarName, lt as safeStatSync, mn as resolveSubagentSpawnModelSelection, mt as resolveEffectiveEnableState, n as loadConfig, nn as buildAllowedModelSet, nr as splitTrailingAuthProfile, nt as isAvatarHttpUrl, o as writeConfigFile, on as isCliProvider, or as VERSION, ot as loadPluginManifestRegistry, pn as resolveReasoningDefault, pt as normalizePluginsConfig, qn as resolveOpenClawAgentDir, qt as isSafeExecutableValue, r as readConfigFileSnapshot, rn as buildConfiguredAllowlistKeys, rr as DEFAULT_CONTEXT_TOKENS, rt as isPathWithinRoot, s as validateConfigObjectWithPlugins, sn as modelKey, sr as getShellPathFromLoginShell, st as discoverOpenClawPlugins, tn as resolveAgentMaxConcurrent, tr as normalizeSecretInput, tt as isAvatarDataUrl, un as resolveConfiguredModelRef, ur as resolveOwnerDisplaySetting, v as resolveTelegramCustomCommands, vt as setConfigOverride, w as normalizeScpRemoteHost, wn as buildAssistantMessageWithZeroUsage, wt as getTrustedSafeBinDirs, xn as OLLAMA_NATIVE_BASE_URL, xt as parseConfigPath, yt as unsetConfigOverride, zn as resolveProfilesUnavailableReason, zt as isShellWrapperExecutable } from "./config-D7I2_X4P.js";
|
|
7
|
+
import { D as consumeRootOptionToken, E as FLAG_TERMINATOR, T as resolvePreferredOpenClawTmpDir, _ as isRich, a as clearActiveProgressLine, c as danger, f as setVerbose, g as colorize, h as warn, i as defaultRuntime, o as registerActiveProgressLine, p as shouldLogVerbose, r as createNonExitingRuntime, s as unregisterActiveProgressLine, t as createSubsystemLogger, u as logVerbose, v as theme, w as normalizeLogLevel, y as getChildLogger } from "./subsystem-B0V8LFBA.js";
|
|
8
|
+
import { C as isPlainObject, S as truncateUtf16Safe, _ as shortenHomeInString, a as ensureDir$3, b as sliceUtf16Safe, c as isRecord$1, d as normalizeE164, h as resolveUserPath, o as escapeRegExp, r as clampInt, s as formatTerminalLink, t as CONFIG_DIR, v as shortenHomePath, y as sleep$1 } from "./utils-BfVxx6bk.js";
|
|
9
|
+
import { n as isTruthyEnvValue, r as parseBooleanValue$1, t as formatCliCommand } from "./command-format-DvyMEXQo.js";
|
|
10
|
+
import { A as spawnWithFallback, C as loadWorkspaceBootstrapFiles, E as resolveOpenClawPackageRoot, G as resolveAgentModelPrimaryValue, H as normalizeWindowsPathForComparison, K as toAgentModelListLike, M as openBoundaryFile, N as openBoundaryFileSync, O as runCommandWithTimeout, S as filterBootstrapFilesForSession, W as resolveAgentModelFallbackValues, _ as DEFAULT_IDENTITY_FILENAME, c as resolveDefaultAgentId, d as resolveSessionAgentId, f as resolveSessionAgentIds, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, k as runExec, l as resolveEffectiveModelFallbacks, m as DEFAULT_AGENT_WORKSPACE_DIR, n as listAgentIds, o as resolveAgentSkillsFilter, r as resolveAgentConfig, s as resolveAgentWorkspaceDir, t as hasConfiguredModelFallbacks, u as resolveRunModelFallbacksOverride, w as resolveWorkspaceAttachmentsRoot, x as ensureAgentWorkspace } from "./agent-scope-_j3fIYCK.js";
|
|
11
|
+
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-CNhs9eKJ.js";
|
|
12
12
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-Ckp-v-FK.js";
|
|
13
|
-
import { _ as getPluginCommandSpecs, a as normalizeAnyChannelId, b as createInternalHookEvent, c as getActivePluginRegistry, d as requireActivePluginRegistry, f as setActivePluginRegistry, g as executePluginCommand, h as clearPluginCommands, i as listChatChannels, l as getActivePluginRegistryKey, m as normalizePluginHttpPath, n as CHAT_CHANNEL_ORDER, o as normalizeChannelId$1, p as createPluginRegistry, r as getChatChannelMeta, s as normalizeChatChannelId, v as listPluginCommands, x as triggerInternalHook, y as matchPluginCommand } from "./registry-
|
|
14
|
-
import { B as normalizeStringEntriesLower, F as resolveChannelGroupToolsPolicy, L as normalizeAtHashSlug, N as resolveChannelGroupPolicy, P as resolveChannelGroupRequireMention, R as normalizeHyphenSlug, n as listChannelDocks, o as normalizeSignalMessagingTarget, t as getChannelDock, z as normalizeStringEntries } from "./dock-
|
|
15
|
-
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-
|
|
16
|
-
import { A as acquireSessionWriteLock, B as resolveFreshSessionTotalTokens, C as extractToolCallNames, D as hasInterSessionUserProvenance, E as applyInputProvenanceToUserMessage, F as resolveSessionResetPolicy, G as resolveMainSessionKey, H as canonicalizeMainSessionAlias, I as resolveSessionResetType, K as deriveSessionMetaPatch, L as resolveThreadFlag, M as resolveSessionKey, N as evaluateSessionFreshness, O as normalizeInputProvenance, P as resolveChannelResetConfig, R as DEFAULT_RESET_TRIGGERS, S as countToolResults, T as INPUT_PROVENANCE_KIND_VALUES, V as setSessionRuntimeModel, W as resolveExplicitAgentSessionKey, _ as normalizeDeliveryContext, a as resolveAndPersistSessionFile, b as archiveSessionTranscripts, c as recordSessionMetaFromInbound, d as updateSessionStoreEntry, f as isCacheEnabled, g as mergeDeliveryContext, h as deliveryContextKey, j as resolveSessionLockMaxHoldFromTimeout, k as jsonUtf8Bytes, l as updateLastRoute, m as deliveryContextFromSession, n as parseSessionThreadInfo, o as loadSessionStore, p as resolveCacheTtlMs$1, q as resolveGroupSessionKey, r as appendAssistantMessageToSessionTranscript, s as readSessionUpdatedAt, t as extractDeliveryInfo, u as updateSessionStore, v as normalizeSessionDeliveryFields, w as parseInlineDirectives$1, x as capArrayByJsonBytes, y as normalizeAccountId$3, z as mergeSessionEntry } from "./sessions-
|
|
13
|
+
import { _ as getPluginCommandSpecs, a as normalizeAnyChannelId, b as createInternalHookEvent, c as getActivePluginRegistry, d as requireActivePluginRegistry, f as setActivePluginRegistry, g as executePluginCommand, h as clearPluginCommands, i as listChatChannels, l as getActivePluginRegistryKey, m as normalizePluginHttpPath, n as CHAT_CHANNEL_ORDER, o as normalizeChannelId$1, p as createPluginRegistry, r as getChatChannelMeta, s as normalizeChatChannelId, v as listPluginCommands, x as triggerInternalHook, y as matchPluginCommand } from "./registry-HF8_S7QO.js";
|
|
14
|
+
import { B as normalizeStringEntriesLower, F as resolveChannelGroupToolsPolicy, L as normalizeAtHashSlug, N as resolveChannelGroupPolicy, P as resolveChannelGroupRequireMention, R as normalizeHyphenSlug, n as listChannelDocks, o as normalizeSignalMessagingTarget, t as getChannelDock, z as normalizeStringEntries } from "./dock-CjdkiLH7.js";
|
|
15
|
+
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-_CEZcqxE.js";
|
|
16
|
+
import { A as acquireSessionWriteLock, B as resolveFreshSessionTotalTokens, C as extractToolCallNames, D as hasInterSessionUserProvenance, E as applyInputProvenanceToUserMessage, F as resolveSessionResetPolicy, G as resolveMainSessionKey, H as canonicalizeMainSessionAlias, I as resolveSessionResetType, K as deriveSessionMetaPatch, L as resolveThreadFlag, M as resolveSessionKey, N as evaluateSessionFreshness, O as normalizeInputProvenance, P as resolveChannelResetConfig, R as DEFAULT_RESET_TRIGGERS, S as countToolResults, T as INPUT_PROVENANCE_KIND_VALUES, V as setSessionRuntimeModel, W as resolveExplicitAgentSessionKey, _ as normalizeDeliveryContext, a as resolveAndPersistSessionFile, b as archiveSessionTranscripts, c as recordSessionMetaFromInbound, d as updateSessionStoreEntry, f as isCacheEnabled, g as mergeDeliveryContext, h as deliveryContextKey, j as resolveSessionLockMaxHoldFromTimeout, k as jsonUtf8Bytes, l as updateLastRoute, m as deliveryContextFromSession, n as parseSessionThreadInfo, o as loadSessionStore, p as resolveCacheTtlMs$1, q as resolveGroupSessionKey, r as appendAssistantMessageToSessionTranscript, s as readSessionUpdatedAt, t as extractDeliveryInfo, u as updateSessionStore, v as normalizeSessionDeliveryFields, w as parseInlineDirectives$1, x as capArrayByJsonBytes, y as normalizeAccountId$3, z as mergeSessionEntry } from "./sessions-lAIo5l8W.js";
|
|
17
17
|
import { t as normalizeChatType } from "./chat-type-C4pAlbsI.js";
|
|
18
18
|
import { n as resolveConversationLabel } from "./conversation-label-nAHBBt-I.js";
|
|
19
19
|
import { t as resolveAccountEntry } from "./account-lookup-BCxEEOS8.js";
|
|
20
|
-
import { A as resolveSlackAccount, B as resolveDiscordAccount, C as resolveTelegramAccount, F as normalizeWhatsAppTarget, I as createDiscordActionGate, M as resolveSlackAppToken, N as resolveSlackBotToken, P as isWhatsAppGroupJid, R as listEnabledDiscordAccounts, V as normalizeDiscordToken, b as listEnabledTelegramAccounts, h as resolveSlackChannelId, j as resolveSlackReplyToMode, m as parseSlackTarget, n as listChannelPlugins, r as normalizeChannelId$2, t as getChannelPlugin, w as resolveTelegramToken, x as listTelegramAccountIds, y as createTelegramActionGate } from "./plugins-
|
|
21
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
22
|
-
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-
|
|
23
|
-
import { t as buildChannelAccountBindings } from "./bindings-
|
|
24
|
-
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, 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 isDiscordGroupAllowedByPolicy, d as parseDiscordModalCustomId, dt as resolveDiscordAllowListMatch, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordChannelConfigWithFallback, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordOwnerAccess, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, kt as resolveChannelEntryMatchWithFallback, l as parseDiscordComponentCustomId, lt as normalizeDiscordAllowList, m as resolveDiscordComponentEntry, mt as resolveDiscordMemberAccessState, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordGuildEntry, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordSlug, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-
|
|
20
|
+
import { A as resolveSlackAccount, B as resolveDiscordAccount, C as resolveTelegramAccount, F as normalizeWhatsAppTarget, I as createDiscordActionGate, M as resolveSlackAppToken, N as resolveSlackBotToken, P as isWhatsAppGroupJid, R as listEnabledDiscordAccounts, V as normalizeDiscordToken, b as listEnabledTelegramAccounts, h as resolveSlackChannelId, j as resolveSlackReplyToMode, m as parseSlackTarget, n as listChannelPlugins, r as normalizeChannelId$2, t as getChannelPlugin, w as resolveTelegramToken, x as listTelegramAccountIds, y as createTelegramActionGate } from "./plugins-BpHAMNJ1.js";
|
|
21
|
+
import { r as resolveIMessageAccount } from "./accounts-4WE2wtsW.js";
|
|
22
|
+
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-AbI8uETR.js";
|
|
23
|
+
import { t as buildChannelAccountBindings } from "./bindings-CxxzC7gn.js";
|
|
24
|
+
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, 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 isDiscordGroupAllowedByPolicy, d as parseDiscordModalCustomId, dt as resolveDiscordAllowListMatch, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordChannelConfigWithFallback, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordOwnerAccess, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, kt as resolveChannelEntryMatchWithFallback, l as parseDiscordComponentCustomId, lt as normalizeDiscordAllowList, m as resolveDiscordComponentEntry, mt as resolveDiscordMemberAccessState, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordGuildEntry, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordSlug, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-wCqsQs_s.js";
|
|
25
25
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-DlLOyPPw.js";
|
|
26
26
|
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-BLPb80aT.js";
|
|
27
27
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-Bitiknz-.js";
|
|
28
28
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-C-qHqfzG.js";
|
|
29
29
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-BEtAimXS.js";
|
|
30
|
-
import { n as retryAsync } from "./retry-
|
|
31
|
-
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-
|
|
32
|
-
import { i as formatUncaughtError, o as readErrorName, r as formatErrorMessage } from "./errors-
|
|
33
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-
|
|
30
|
+
import { n as retryAsync } from "./retry-pZ8iKytf.js";
|
|
31
|
+
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-DH8u23pF.js";
|
|
32
|
+
import { i as formatUncaughtError, o as readErrorName, r as formatErrorMessage } from "./errors-DFTN4h2I.js";
|
|
33
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-B3yZ-f-m.js";
|
|
34
34
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-TTlmt77_.js";
|
|
35
35
|
import { n as normalizePollInput } from "./polls-DN23oxyB.js";
|
|
36
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
37
|
-
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
38
|
-
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-
|
|
39
|
-
import { a as isBlockedHostnameOrIp, l as normalizeHostname, t as SsrFBlockedError } from "./ssrf-
|
|
40
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
41
|
-
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
42
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-
|
|
43
|
-
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-
|
|
44
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
45
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
46
|
-
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-
|
|
47
|
-
import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as parseTelegramTarget, K as isVoiceCompatibleAudio, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, X as formatLocationText, Y as resolveTelegramTargetChatType, Z as toLocationContext, _ as renderTelegramHtmlText, a as reactMessageTelegram, at as upsertChannelPairingRequest, b as splitTelegramCaption, c as sendStickerTelegram, ct as getPairingAdapter, d as loadCronStore, dt as isSenderIdAllowed, f as resolveCronStorePath, ft as mergeDmAllowFromSources, g as markdownToTelegramHtml, h as markdownToTelegramChunks, i as editMessageTelegram, it as removeChannelAllowFromStoreEntry, j as expandTextLinks, k as buildTypingThreadParams, lt as listPairingChannels, m as isRecoverableTelegramNetworkError, n as createForumTopicTelegram, nt as readChannelAllowFromStore, o as sendMessageTelegram, ot as readJsonFileWithFallback, p as wasSentByBot, pt as resolveGroupAllowFromSources, r as deleteMessageTelegram, s as sendPollTelegram, st as writeJsonFileAtomically, t as buildInlineKeyboard, tt as addChannelAllowFromStoreEntry, u as resolveTelegramVoiceSend, ut as firstDefined$1, v as wrapFileReferencesInHtml, w as buildSenderName, x as withTelegramApiErrorLogging, y as resolveTelegramFetch, z as resolveTelegramReplyId } from "./send-
|
|
48
|
-
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-
|
|
49
|
-
import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-
|
|
50
|
-
import { a as buildSlackBlocksFallbackText, c as parseSlackBlocksInput, i as normalizeSlackOutboundText, l as validateSlackBlocksArray, o as createSlackWebClient, s as resolveSlackWebClientOptions, t as sendMessageSlack } from "./send-
|
|
51
|
-
import { _ as normalizeMediaUnderstandingChatType, a as resolveAutoImageModel, b as applyTemplate, c as findModelInCatalog, d as resolveAliasedOpenAiCompatibleModelId, f as registerUnhandledRejectionHandler, g as resolveTimeoutMs$2, h as resolveConcurrency, i as normalizeMediaAttachments, l as loadModelCatalog, m as resolveAttachmentKind, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as modelSupportsVision, v as resolveMediaUnderstandingScope, x as buildRandomTempFilePath, y as CLI_OUTPUT_MAX_BUFFER } from "./audio-transcription-runner-
|
|
52
|
-
import { a as resolveAckReaction, c as resolveHumanDelayConfig, i as resolveResponsePrefixTemplate, n as createReplyPrefixOptions, o as resolveAgentIdentity, s as resolveEffectiveMessagesConfig } from "./reply-prefix-
|
|
53
|
-
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-
|
|
54
|
-
import { c as getSkillsSnapshotVersion, d as pruneExpiredPending, f as resolvePairingPaths, i as resolveSkillCommandInvocation, l as generatePairingToken, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as rejectPendingPairingRequest } from "./skill-commands-
|
|
55
|
-
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-
|
|
56
|
-
import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, J as rawDataToString, K as isLoopbackHost, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, q as isSecureWebSocketUrl, s as resolveLsofCommandSync } from "./chrome-
|
|
57
|
-
import { A as initializeGlobalHookRunner, C as shouldSuppressReasoningPayload, D as normalizeChannelTargetInput, E as buildTargetResolverSignature, O as normalizeTargetForProvider, S as shouldSuppressMessagingToolReplies, T as resolveReplyToMode, _ as applyReplyTagsToPayload, a as normalizeOutboundPayloadsForJson, b as filterMessagingToolMediaDuplicates, c as parseReplyDirectives, d as toInternalMessagePreprocessedContext, f as toInternalMessageReceivedContext, g as fireAndForgetHook, h as toPluginMessageReceivedEvent, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as toPluginMessageContext, o as normalizeReplyPayloadsForDelivery, p as toInternalMessageTranscribedContext, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as deriveInboundMessageHookContext, v as applyReplyThreading, w as createReplyToModeFilterForChannel, x as isRenderablePayload, y as filterMessagingToolDuplicates } from "./deliver-
|
|
58
|
-
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-
|
|
59
|
-
import { a as saveMediaBuffer, i as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-
|
|
60
|
-
import { $ as expandToolGroups, A as isRawApiErrorPayload, B as registerBrowserRoutes, C as isCloudCodeAssistFormatError, D as isFailoverErrorMessage, E as isFailoverAssistantError, F as sanitizeUserFacingText, G as resolveBrowserControlAuth, H as resolveProfile, I as ensureSandboxWorkspaceForSession, J as buildPluginToolGroups, K as resolveSandboxConfigForAgent, L as resolveSandboxContext, M as isTransientHttpError, N as parseImageDimensionError, O as isLikelyContextOverflowError, P as parseImageSizeError, Q as stripPluginOnlyAllowlist, R as resolveSandboxRuntimeStatus, S as isBillingAssistantError, T as isContextOverflowError, U as getBridgeAuthForPort, V as resolveBrowserConfig, W as ensureBrowserControlAuth, X as expandPolicyWithPluginGroups, Y as collectExplicitAllowlist, Z as mergeAlsoAllowPolicy, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, at as ensureSessionHeader, b as isAuthAssistantError, c as extractToolCallsFromAssistant, ct as sanitizeGoogleTurnOrdering, d as downgradeOpenAIFunctionCallReasoningPairs, et as normalizeToolName, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, it as buildBootstrapContextFiles, j as isTimeoutErrorMessage, k as isRateLimitAssistantError, l as extractToolResultId, lt as resolveGatewayCredentialsFromConfig, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, nt as compileGlobPatterns, o as normalizeTextForComparison, ot as resolveBootstrapMaxChars, p as isGoogleModelApi, q as applyOwnerOnlyToolPolicy, r as pickFallbackThinkingLevel, rt as matchesAnyGlobPattern, s as sanitizeSessionMessagesImages, st as resolveBootstrapTotalMaxChars, t as validateAnthropicTurns, tt as resolveToolProfilePolicy, u as sanitizeToolCallIdsForCloudCodeAssist, ut as trimToUndefined$1, v as formatRawAssistantErrorForUi, w as isCompactionFailureError, x as isAuthPermanentErrorMessage, y as getApiErrorPayloadFingerprint, z as createBrowserRouteContext } from "./pi-embedded-helpers-
|
|
36
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-BqUCBfUg.js";
|
|
37
|
+
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-B256n7Ff.js";
|
|
38
|
+
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-C9GXWF3o.js";
|
|
39
|
+
import { a as isBlockedHostnameOrIp, l as normalizeHostname, t as SsrFBlockedError } from "./ssrf-JKDwTi8i.js";
|
|
40
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BivEyA4v.js";
|
|
41
|
+
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-2AOXGUXW.js";
|
|
42
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-BIm-jvIK.js";
|
|
43
|
+
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-BPyPeheZ.js";
|
|
44
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-D9mmqMKi.js";
|
|
45
|
+
import { t as convertMarkdownTables } from "./tables-DCSeBGBz.js";
|
|
46
|
+
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-1uW-uqPf.js";
|
|
47
|
+
import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as parseTelegramTarget, K as isVoiceCompatibleAudio, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, X as formatLocationText, Y as resolveTelegramTargetChatType, Z as toLocationContext, _ as renderTelegramHtmlText, a as reactMessageTelegram, at as upsertChannelPairingRequest, b as splitTelegramCaption, c as sendStickerTelegram, ct as getPairingAdapter, d as loadCronStore, dt as isSenderIdAllowed, f as resolveCronStorePath, ft as mergeDmAllowFromSources, g as markdownToTelegramHtml, h as markdownToTelegramChunks, i as editMessageTelegram, it as removeChannelAllowFromStoreEntry, j as expandTextLinks, k as buildTypingThreadParams, lt as listPairingChannels, m as isRecoverableTelegramNetworkError, n as createForumTopicTelegram, nt as readChannelAllowFromStore, o as sendMessageTelegram, ot as readJsonFileWithFallback, p as wasSentByBot, pt as resolveGroupAllowFromSources, r as deleteMessageTelegram, s as sendPollTelegram, st as writeJsonFileAtomically, t as buildInlineKeyboard, tt as addChannelAllowFromStoreEntry, u as resolveTelegramVoiceSend, ut as firstDefined$1, v as wrapFileReferencesInHtml, w as buildSenderName, x as withTelegramApiErrorLogging, y as resolveTelegramFetch, z as resolveTelegramReplyId } from "./send-CZIN8SDx.js";
|
|
48
|
+
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-BbsgbHMZ.js";
|
|
49
|
+
import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-0u6pegQv.js";
|
|
50
|
+
import { a as buildSlackBlocksFallbackText, c as parseSlackBlocksInput, i as normalizeSlackOutboundText, l as validateSlackBlocksArray, o as createSlackWebClient, s as resolveSlackWebClientOptions, t as sendMessageSlack } from "./send-BoNw1Bki.js";
|
|
51
|
+
import { _ as normalizeMediaUnderstandingChatType, a as resolveAutoImageModel, b as applyTemplate, c as findModelInCatalog, d as resolveAliasedOpenAiCompatibleModelId, f as registerUnhandledRejectionHandler, g as resolveTimeoutMs$2, h as resolveConcurrency, i as normalizeMediaAttachments, l as loadModelCatalog, m as resolveAttachmentKind, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as modelSupportsVision, v as resolveMediaUnderstandingScope, x as buildRandomTempFilePath, y as CLI_OUTPUT_MAX_BUFFER } from "./audio-transcription-runner-CRpY5uDq.js";
|
|
52
|
+
import { a as resolveAckReaction, c as resolveHumanDelayConfig, i as resolveResponsePrefixTemplate, n as createReplyPrefixOptions, o as resolveAgentIdentity, s as resolveEffectiveMessagesConfig } from "./reply-prefix-KODsMNJ-.js";
|
|
53
|
+
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-DF2_VTJy.js";
|
|
54
|
+
import { c as getSkillsSnapshotVersion, d as pruneExpiredPending, f as resolvePairingPaths, i as resolveSkillCommandInvocation, l as generatePairingToken, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as rejectPendingPairingRequest } from "./skill-commands-D1Q6hGS4.js";
|
|
55
|
+
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-BWSDv2F_.js";
|
|
56
|
+
import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, J as rawDataToString, K as isLoopbackHost, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, q as isSecureWebSocketUrl, s as resolveLsofCommandSync } from "./chrome-oPevdeh5.js";
|
|
57
|
+
import { A as initializeGlobalHookRunner, C as shouldSuppressReasoningPayload, D as normalizeChannelTargetInput, E as buildTargetResolverSignature, O as normalizeTargetForProvider, S as shouldSuppressMessagingToolReplies, T as resolveReplyToMode, _ as applyReplyTagsToPayload, a as normalizeOutboundPayloadsForJson, b as filterMessagingToolMediaDuplicates, c as parseReplyDirectives, d as toInternalMessagePreprocessedContext, f as toInternalMessageReceivedContext, g as fireAndForgetHook, h as toPluginMessageReceivedEvent, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as toPluginMessageContext, o as normalizeReplyPayloadsForDelivery, p as toInternalMessageTranscribedContext, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as deriveInboundMessageHookContext, v as applyReplyThreading, w as createReplyToModeFilterForChannel, x as isRenderablePayload, y as filterMessagingToolDuplicates } from "./deliver-NrIHn0__.js";
|
|
58
|
+
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-DL3k_wRi.js";
|
|
59
|
+
import { a as saveMediaBuffer, i as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-BMeqzQAf.js";
|
|
60
|
+
import { $ as expandToolGroups, A as isRawApiErrorPayload, B as registerBrowserRoutes, C as isCloudCodeAssistFormatError, D as isFailoverErrorMessage, E as isFailoverAssistantError, F as sanitizeUserFacingText, G as resolveBrowserControlAuth, H as resolveProfile, I as ensureSandboxWorkspaceForSession, J as buildPluginToolGroups, K as resolveSandboxConfigForAgent, L as resolveSandboxContext, M as isTransientHttpError, N as parseImageDimensionError, O as isLikelyContextOverflowError, P as parseImageSizeError, Q as stripPluginOnlyAllowlist, R as resolveSandboxRuntimeStatus, S as isBillingAssistantError, T as isContextOverflowError, U as getBridgeAuthForPort, V as resolveBrowserConfig, W as ensureBrowserControlAuth, X as expandPolicyWithPluginGroups, Y as collectExplicitAllowlist, Z as mergeAlsoAllowPolicy, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, at as ensureSessionHeader, b as isAuthAssistantError, c as extractToolCallsFromAssistant, ct as sanitizeGoogleTurnOrdering, d as downgradeOpenAIFunctionCallReasoningPairs, et as normalizeToolName, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, it as buildBootstrapContextFiles, j as isTimeoutErrorMessage, k as isRateLimitAssistantError, l as extractToolResultId, lt as resolveGatewayCredentialsFromConfig, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, nt as compileGlobPatterns, o as normalizeTextForComparison, ot as resolveBootstrapMaxChars, p as isGoogleModelApi, q as applyOwnerOnlyToolPolicy, r as pickFallbackThinkingLevel, rt as matchesAnyGlobPattern, s as sanitizeSessionMessagesImages, st as resolveBootstrapTotalMaxChars, t as validateAnthropicTurns, tt as resolveToolProfilePolicy, u as sanitizeToolCallIdsForCloudCodeAssist, ut as trimToUndefined$1, v as formatRawAssistantErrorForUi, w as isCompactionFailureError, x as isAuthPermanentErrorMessage, y as getApiErrorPayloadFingerprint, z as createBrowserRouteContext } from "./pi-embedded-helpers-CTfvZz83.js";
|
|
61
61
|
import { a as normalizeReasoningLevel, c as normalizeVerboseLevel, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-DGaZRXAR.js";
|
|
62
62
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-DZb6zIHq.js";
|
|
63
|
-
import { C as extractTextFromChatContent, S as isInsideCode, T as minimaxUnderstandImage, _ as stripThinkingTagsFromText, a as decodeDataUrl, b as stripReasoningTagsFromText, 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 formatToolSummary, w as ensureOpenClawModelsJson, x as findCodeRegions, y as resolveToolDisplay } from "./image-
|
|
64
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
63
|
+
import { C as extractTextFromChatContent, S as isInsideCode, T as minimaxUnderstandImage, _ as stripThinkingTagsFromText, a as decodeDataUrl, b as stripReasoningTagsFromText, 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 formatToolSummary, w as ensureOpenClawModelsJson, x as findCodeRegions, y as resolveToolDisplay } from "./image-CkPzr3XN.js";
|
|
64
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-CK3Ih_kq.js";
|
|
65
65
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-C5PtFEje.js";
|
|
66
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
67
|
-
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-
|
|
66
|
+
import { t as makeProxyFetch } from "./proxy-fetch-jmbopGcm.js";
|
|
67
|
+
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-Dk8re8Lz.js";
|
|
68
68
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-Wd5tNeQG.js";
|
|
69
69
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-4RHRb_OP.js";
|
|
70
|
-
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-
|
|
71
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
72
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
73
|
-
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-
|
|
74
|
-
import { t as recordInboundSessionMetaSafe } from "./session-meta-
|
|
75
|
-
import { n as resolveMemorySearchConfig } from "./manager-
|
|
76
|
-
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-
|
|
70
|
+
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-C-Rd2stz.js";
|
|
71
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-De2B5QY_.js";
|
|
72
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-DbjvV4gf.js";
|
|
73
|
+
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-pnqLAUOh.js";
|
|
74
|
+
import { t as recordInboundSessionMetaSafe } from "./session-meta-7J-uHiM_.js";
|
|
75
|
+
import { n as resolveMemorySearchConfig } from "./manager-DYLqNUb4.js";
|
|
76
|
+
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-C_X8SyEA.js";
|
|
77
77
|
import { createRequire } from "node:module";
|
|
78
78
|
import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
79
79
|
import * as path$1 from "node:path";
|
|
@@ -83,7 +83,7 @@ import * as fs$2 from "node:fs/promises";
|
|
|
83
83
|
import fs$1 from "node:fs/promises";
|
|
84
84
|
import crypto, { X509Certificate, createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
|
|
85
85
|
import { inspect, promisify } from "node:util";
|
|
86
|
-
import
|
|
86
|
+
import JSON5 from "json5";
|
|
87
87
|
import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
88
88
|
import { fileURLToPath } from "node:url";
|
|
89
89
|
import { complete, completeSimple, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
|
|
@@ -7852,7 +7852,7 @@ async function sendTranscriptEcho(params) {
|
|
|
7852
7852
|
}
|
|
7853
7853
|
const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
|
|
7854
7854
|
try {
|
|
7855
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
7855
|
+
const { deliverOutboundPayloads } = await import("./deliver-NrIHn0__.js").then((n) => n.n);
|
|
7856
7856
|
await deliverOutboundPayloads({
|
|
7857
7857
|
cfg,
|
|
7858
7858
|
channel: normalizedChannel,
|
|
@@ -22391,7 +22391,7 @@ async function routeReply(params) {
|
|
|
22391
22391
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
22392
22392
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
22393
22393
|
try {
|
|
22394
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
22394
|
+
const { deliverOutboundPayloads } = await import("./deliver-NrIHn0__.js").then((n) => n.n);
|
|
22395
22395
|
const outboundSession = buildOutboundSessionContext({
|
|
22396
22396
|
cfg,
|
|
22397
22397
|
agentId: resolvedAgentId,
|
|
@@ -22875,7 +22875,7 @@ function normalizeSessionKey(value) {
|
|
|
22875
22875
|
function readSessionStore(storePath) {
|
|
22876
22876
|
try {
|
|
22877
22877
|
const raw = fs.readFileSync(storePath, "utf-8");
|
|
22878
|
-
const parsed =
|
|
22878
|
+
const parsed = JSON5.parse(raw);
|
|
22879
22879
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
22880
22880
|
} catch {}
|
|
22881
22881
|
return {};
|
|
@@ -32282,7 +32282,7 @@ async function describeStickerImage(params) {
|
|
|
32282
32282
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
32283
32283
|
try {
|
|
32284
32284
|
const buffer = await fs$1.readFile(imagePath);
|
|
32285
|
-
const { describeImageWithModel } = await import("./image-
|
|
32285
|
+
const { describeImageWithModel } = await import("./image-CkPzr3XN.js").then((n) => n.n);
|
|
32286
32286
|
return (await describeImageWithModel({
|
|
32287
32287
|
buffer,
|
|
32288
32288
|
fileName: "sticker.webp",
|
|
@@ -33549,7 +33549,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
33549
33549
|
const needsPreflightTranscription = !params.isDirectMessage && params.shouldRequireMention && hasAudioAttachment && !hasTypedText && params.mentionRegexes.length > 0;
|
|
33550
33550
|
let transcript;
|
|
33551
33551
|
if (needsPreflightTranscription) try {
|
|
33552
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
33552
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-D8BVTHCB.js");
|
|
33553
33553
|
const audioUrls = audioAttachments.map((att) => att.url).filter((url) => typeof url === "string" && url.length > 0);
|
|
33554
33554
|
if (audioUrls.length > 0) transcript = await transcribeFirstAudio({
|
|
33555
33555
|
ctx: {
|
|
@@ -36160,7 +36160,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
36160
36160
|
await ensureOpenClawModelsJson(cfg);
|
|
36161
36161
|
} catch {}
|
|
36162
36162
|
try {
|
|
36163
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
36163
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-CK3Ih_kq.js").then((n) => n.r);
|
|
36164
36164
|
const agentDir = resolveOpenClawAgentDir();
|
|
36165
36165
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
36166
36166
|
applyDiscoveredContextWindows({
|
|
@@ -36522,7 +36522,7 @@ async function createModelSelectionState(params) {
|
|
|
36522
36522
|
}
|
|
36523
36523
|
}
|
|
36524
36524
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
36525
|
-
const { ensureAuthProfileStore } = await import("./config-
|
|
36525
|
+
const { ensureAuthProfileStore } = await import("./config-D7I2_X4P.js").then((n) => n.Nn);
|
|
36526
36526
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
36527
36527
|
const providerKey = normalizeProviderId(provider);
|
|
36528
36528
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -41201,27 +41201,27 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
41201
41201
|
function createDefaultDeps() {
|
|
41202
41202
|
return {
|
|
41203
41203
|
sendMessageWhatsApp: async (...args) => {
|
|
41204
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
41204
|
+
const { sendMessageWhatsApp } = await import("./web-pXzbtWjI.js");
|
|
41205
41205
|
return await sendMessageWhatsApp(...args);
|
|
41206
41206
|
},
|
|
41207
41207
|
sendMessageTelegram: async (...args) => {
|
|
41208
|
-
const { sendMessageTelegram } = await import("./send-
|
|
41208
|
+
const { sendMessageTelegram } = await import("./send-CZIN8SDx.js").then((n) => n.l);
|
|
41209
41209
|
return await sendMessageTelegram(...args);
|
|
41210
41210
|
},
|
|
41211
41211
|
sendMessageDiscord: async (...args) => {
|
|
41212
|
-
const { sendMessageDiscord } = await import("./send-
|
|
41212
|
+
const { sendMessageDiscord } = await import("./send-wCqsQs_s.js").then((n) => n.t);
|
|
41213
41213
|
return await sendMessageDiscord(...args);
|
|
41214
41214
|
},
|
|
41215
41215
|
sendMessageSlack: async (...args) => {
|
|
41216
|
-
const { sendMessageSlack } = await import("./send-
|
|
41216
|
+
const { sendMessageSlack } = await import("./send-BoNw1Bki.js").then((n) => n.n);
|
|
41217
41217
|
return await sendMessageSlack(...args);
|
|
41218
41218
|
},
|
|
41219
41219
|
sendMessageSignal: async (...args) => {
|
|
41220
|
-
const { sendMessageSignal } = await import("./send-
|
|
41220
|
+
const { sendMessageSignal } = await import("./send-C-Rd2stz.js").then((n) => n.i);
|
|
41221
41221
|
return await sendMessageSignal(...args);
|
|
41222
41222
|
},
|
|
41223
41223
|
sendMessageIMessage: async (...args) => {
|
|
41224
|
-
const { sendMessageIMessage } = await import("./send-
|
|
41224
|
+
const { sendMessageIMessage } = await import("./send-1uW-uqPf.js").then((n) => n.n);
|
|
41225
41225
|
return await sendMessageIMessage(...args);
|
|
41226
41226
|
}
|
|
41227
41227
|
};
|
|
@@ -52654,7 +52654,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
52654
52654
|
}
|
|
52655
52655
|
let commandsRegistry;
|
|
52656
52656
|
async function getCommandsRegistry() {
|
|
52657
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
52657
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-Dk8re8Lz.js").then((n) => n.n);
|
|
52658
52658
|
return commandsRegistry;
|
|
52659
52659
|
}
|
|
52660
52660
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -52984,14 +52984,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
52984
52984
|
const channelName = channelInfo?.name;
|
|
52985
52985
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
52986
52986
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
52987
|
-
import("./resolve-route-
|
|
52987
|
+
import("./resolve-route-De2B5QY_.js").then((n) => n.r),
|
|
52988
52988
|
import("./inbound-context-DZb6zIHq.js").then((n) => n.n),
|
|
52989
52989
|
Promise.resolve().then(() => provider_dispatcher_exports)
|
|
52990
52990
|
]);
|
|
52991
52991
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
|
|
52992
52992
|
import("./conversation-label-nAHBBt-I.js").then((n) => n.t),
|
|
52993
|
-
import("./reply-prefix-
|
|
52994
|
-
import("./session-meta-
|
|
52993
|
+
import("./reply-prefix-KODsMNJ-.js").then((n) => n.r),
|
|
52994
|
+
import("./session-meta-7J-uHiM_.js").then((n) => n.n)
|
|
52995
52995
|
]);
|
|
52996
52996
|
const route = resolveAgentRoute({
|
|
52997
52997
|
cfg,
|
|
@@ -53056,9 +53056,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
53056
53056
|
});
|
|
53057
53057
|
const deliverSlashPayloads = async (replies) => {
|
|
53058
53058
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
53059
|
-
import("./replies-
|
|
53060
|
-
import("./chunk-
|
|
53061
|
-
import("./markdown-tables-
|
|
53059
|
+
import("./replies-DbjvV4gf.js").then((n) => n.r),
|
|
53060
|
+
import("./chunk-BPyPeheZ.js").then((n) => n.s),
|
|
53061
|
+
import("./markdown-tables-D9mmqMKi.js").then((n) => n.t)
|
|
53062
53062
|
]);
|
|
53063
53063
|
await deliverSlackSlashReplies({
|
|
53064
53064
|
replies,
|
|
@@ -53111,7 +53111,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
53111
53111
|
let nativeCommands = [];
|
|
53112
53112
|
if (nativeEnabled) {
|
|
53113
53113
|
reg = await getCommandsRegistry();
|
|
53114
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
53114
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-D1Q6hGS4.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
|
|
53115
53115
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
53116
53116
|
skillCommands,
|
|
53117
53117
|
provider: "slack"
|
|
@@ -53697,7 +53697,7 @@ async function auditTelegramGroupMembership(params) {
|
|
|
53697
53697
|
groups: [],
|
|
53698
53698
|
elapsedMs: Date.now() - started
|
|
53699
53699
|
};
|
|
53700
|
-
const fetcher = params.proxyUrl ? (await import("./proxy-
|
|
53700
|
+
const fetcher = params.proxyUrl ? (await import("./proxy-BJdRZOnJ.js").then((n) => n.t)).makeProxyFetch(params.proxyUrl) : fetch;
|
|
53701
53701
|
const { fetchWithTimeout } = await import("./fetch-timeout-C-qHqfzG.js").then((n) => n.r);
|
|
53702
53702
|
const base = `${TELEGRAM_API_BASE$1}/bot${token}`;
|
|
53703
53703
|
const groups = [];
|
|
@@ -58451,7 +58451,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
58451
58451
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
58452
58452
|
let preflightTranscript;
|
|
58453
58453
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
58454
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
58454
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-D8BVTHCB.js");
|
|
58455
58455
|
preflightTranscript = await transcribeFirstAudio({
|
|
58456
58456
|
ctx: {
|
|
58457
58457
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -61149,7 +61149,7 @@ function createWhatsAppLoginTool() {
|
|
|
61149
61149
|
force: Type.Optional(Type.Boolean())
|
|
61150
61150
|
}),
|
|
61151
61151
|
execute: async (_toolCallId, args) => {
|
|
61152
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
61152
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-GyPUodKJ.js");
|
|
61153
61153
|
if ((args?.action ?? "start") === "wait") {
|
|
61154
61154
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
61155
61155
|
return {
|
|
@@ -61224,23 +61224,23 @@ let webLoginQrPromise = null;
|
|
|
61224
61224
|
let webChannelPromise = null;
|
|
61225
61225
|
let whatsappActionsPromise = null;
|
|
61226
61226
|
function loadWebOutbound() {
|
|
61227
|
-
webOutboundPromise ??= import("./outbound-
|
|
61227
|
+
webOutboundPromise ??= import("./outbound-DdTsUaXa.js").then((n) => n.t);
|
|
61228
61228
|
return webOutboundPromise;
|
|
61229
61229
|
}
|
|
61230
61230
|
function loadWebLogin() {
|
|
61231
|
-
webLoginPromise ??= import("./login-
|
|
61231
|
+
webLoginPromise ??= import("./login-BcLiF9tC.js").then((n) => n.n);
|
|
61232
61232
|
return webLoginPromise;
|
|
61233
61233
|
}
|
|
61234
61234
|
function loadWebLoginQr() {
|
|
61235
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
61235
|
+
webLoginQrPromise ??= import("./login-qr-GyPUodKJ.js");
|
|
61236
61236
|
return webLoginQrPromise;
|
|
61237
61237
|
}
|
|
61238
61238
|
function loadWebChannel() {
|
|
61239
|
-
webChannelPromise ??= import("./web-
|
|
61239
|
+
webChannelPromise ??= import("./web-pXzbtWjI.js");
|
|
61240
61240
|
return webChannelPromise;
|
|
61241
61241
|
}
|
|
61242
61242
|
function loadWhatsAppActions() {
|
|
61243
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
61243
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-tVcrGNQc.js");
|
|
61244
61244
|
return whatsappActionsPromise;
|
|
61245
61245
|
}
|
|
61246
61246
|
function createRuntimeWhatsApp() {
|
|
@@ -61690,7 +61690,7 @@ async function getMemorySearchManager(params) {
|
|
|
61690
61690
|
if (cached) return { manager: cached };
|
|
61691
61691
|
}
|
|
61692
61692
|
try {
|
|
61693
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
61693
|
+
const { QmdMemoryManager } = await import("./qmd-manager-BDcutPp9.js");
|
|
61694
61694
|
const primary = await QmdMemoryManager.create({
|
|
61695
61695
|
cfg: params.cfg,
|
|
61696
61696
|
agentId: params.agentId,
|
|
@@ -61702,7 +61702,7 @@ async function getMemorySearchManager(params) {
|
|
|
61702
61702
|
const wrapper = new FallbackMemoryManager({
|
|
61703
61703
|
primary,
|
|
61704
61704
|
fallbackFactory: async () => {
|
|
61705
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
61705
|
+
const { MemoryIndexManager } = await import("./manager-DYLqNUb4.js").then((n) => n.t);
|
|
61706
61706
|
return await MemoryIndexManager.get(params);
|
|
61707
61707
|
}
|
|
61708
61708
|
}, () => {
|
|
@@ -61717,7 +61717,7 @@ async function getMemorySearchManager(params) {
|
|
|
61717
61717
|
}
|
|
61718
61718
|
}
|
|
61719
61719
|
try {
|
|
61720
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
61720
|
+
const { MemoryIndexManager } = await import("./manager-DYLqNUb4.js").then((n) => n.t);
|
|
61721
61721
|
return { manager: await MemoryIndexManager.get(params) };
|
|
61722
61722
|
} catch (err) {
|
|
61723
61723
|
return {
|
|
@@ -73349,7 +73349,7 @@ async function recordLoopOutcome(args) {
|
|
|
73349
73349
|
if (!args.ctx?.sessionKey) return;
|
|
73350
73350
|
try {
|
|
73351
73351
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Wd5tNeQG.js").then((n) => n.n);
|
|
73352
|
-
const { recordToolCallOutcome } = await import("./tool-loop-detection-
|
|
73352
|
+
const { recordToolCallOutcome } = await import("./tool-loop-detection-JkCpGrfk.js");
|
|
73353
73353
|
recordToolCallOutcome(getDiagnosticSessionState({
|
|
73354
73354
|
sessionKey: args.ctx.sessionKey,
|
|
73355
73355
|
sessionId: args.ctx?.agentId
|
|
@@ -73370,8 +73370,8 @@ async function runBeforeToolCallHook(args) {
|
|
|
73370
73370
|
const params = args.params;
|
|
73371
73371
|
if (args.ctx?.sessionKey) {
|
|
73372
73372
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Wd5tNeQG.js").then((n) => n.n);
|
|
73373
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
73374
|
-
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-
|
|
73373
|
+
const { logToolLoopAction } = await import("./diagnostic-DL3k_wRi.js").then((n) => n.n);
|
|
73374
|
+
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-JkCpGrfk.js");
|
|
73375
73375
|
const sessionState = getDiagnosticSessionState({
|
|
73376
73376
|
sessionKey: args.ctx.sessionKey,
|
|
73377
73377
|
sessionId: args.ctx?.agentId
|
|
@@ -91415,7 +91415,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
91415
91415
|
return;
|
|
91416
91416
|
}
|
|
91417
91417
|
try {
|
|
91418
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
91418
|
+
const { deliverOutboundPayloads } = await import("./deliver-NrIHn0__.js").then((n) => n.n);
|
|
91419
91419
|
const outboundSession = buildOutboundSessionContext({
|
|
91420
91420
|
cfg: params.cfg,
|
|
91421
91421
|
sessionKey: params.sessionKey
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as resolveAgentConfig } from "./agent-scope-
|
|
2
|
+
import { r as resolveAgentConfig } from "./agent-scope-_j3fIYCK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/identity.ts
|
|
5
5
|
const DEFAULT_ACK_REACTION = "👀";
|
package/dist/plugin-sdk/{resolve-outbound-target-D3Y4F2Le.js → resolve-outbound-target-BPT4aNiD.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as normalizeWhatsAppTarget, P as isWhatsAppGroupJid } from "./plugins-
|
|
2
|
-
import { n as missingTargetError } from "./target-errors-
|
|
1
|
+
import { F as normalizeWhatsAppTarget, P as isWhatsAppGroupJid } from "./plugins-BpHAMNJ1.js";
|
|
2
|
+
import { n as missingTargetError } from "./target-errors-0u6pegQv.js";
|
|
3
3
|
|
|
4
4
|
//#region src/whatsapp/resolve-outbound-target.ts
|
|
5
5
|
function resolveWhatsAppOutboundTarget(params) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { c as normalizeAgentId, f as sanitizeAgentId, i as buildAgentPeerSessionKey, m as normalizeAccountId, n as DEFAULT_MAIN_KEY, p as DEFAULT_ACCOUNT_ID, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID } from "./session-key-CVIXEtLx.js";
|
|
3
|
-
import { p as shouldLogVerbose } from "./subsystem-
|
|
4
|
-
import { c as resolveDefaultAgentId } from "./agent-scope-
|
|
5
|
-
import { t as logDebug } from "./logger-
|
|
3
|
+
import { p as shouldLogVerbose } from "./subsystem-B0V8LFBA.js";
|
|
4
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-_j3fIYCK.js";
|
|
5
|
+
import { t as logDebug } from "./logger-CNhs9eKJ.js";
|
|
6
6
|
import { t as normalizeChatType } from "./chat-type-C4pAlbsI.js";
|
|
7
|
-
import { n as listBindings } from "./bindings-
|
|
7
|
+
import { n as listBindings } from "./bindings-CxxzC7gn.js";
|
|
8
8
|
|
|
9
9
|
//#region src/routing/resolve-route.ts
|
|
10
10
|
var resolve_route_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as loadConfig } from "./config-
|
|
3
|
-
import { d as normalizeE164, h as resolveUserPath } from "./utils-
|
|
4
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
5
|
-
import { m as kindFromMime } from "./image-ops-
|
|
6
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
7
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
8
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment
|
|
2
|
+
import { n as loadConfig } from "./config-D7I2_X4P.js";
|
|
3
|
+
import { d as normalizeE164, h as resolveUserPath } from "./utils-BfVxx6bk.js";
|
|
4
|
+
import { r as resolveIMessageAccount } from "./accounts-4WE2wtsW.js";
|
|
5
|
+
import { m as kindFromMime } from "./image-ops-C9GXWF3o.js";
|
|
6
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-D9mmqMKi.js";
|
|
7
|
+
import { t as convertMarkdownTables } from "./tables-DCSeBGBz.js";
|
|
8
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment--hkuIDR1.js";
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { createInterface } from "node:readline";
|
|
11
11
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as loadConfig } from "./config-
|
|
3
|
-
import { u as logVerbose } from "./subsystem-
|
|
4
|
-
import { A as resolveSlackAccount, N as resolveSlackBotToken, m as parseSlackTarget } from "./plugins-
|
|
5
|
-
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
6
|
-
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
7
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
8
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
2
|
+
import { n as loadConfig } from "./config-D7I2_X4P.js";
|
|
3
|
+
import { u as logVerbose } from "./subsystem-B0V8LFBA.js";
|
|
4
|
+
import { A as resolveSlackAccount, N as resolveSlackBotToken, m as parseSlackTarget } from "./plugins-BpHAMNJ1.js";
|
|
5
|
+
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BivEyA4v.js";
|
|
6
|
+
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-BIm-jvIK.js";
|
|
7
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-BPyPeheZ.js";
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-D9mmqMKi.js";
|
|
9
9
|
import { t as renderMarkdownWithMarkers } from "./render-BDQg502o.js";
|
|
10
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
10
|
+
import { i as isSilentReplyText } from "./tokens-DF2_VTJy.js";
|
|
11
11
|
import { WebClient } from "@slack/web-api";
|
|
12
12
|
|
|
13
13
|
//#region src/slack/blocks-input.ts
|