openclaw-multi-auto 1.2.2 → 1.2.5
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/{audio-preflight-5FEeDooz.js → audio-preflight-DDBLZBdb.js} +4 -4
- package/dist/{audio-transcription-runner-B-UvoDjZ.js → audio-transcription-runner-DZbSWT9E.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-D45SyhQL.js → chrome-CMU2WVFh.js} +8 -8
- package/dist/{deliver-B9cys0EZ.js → deliver-BXVcFIHL.js} +1 -1
- package/dist/{deliver-runtime-DhaQJ0pI.js → deliver-runtime-DTaIS-1i.js} +3 -3
- package/dist/{deps-send-whatsapp.runtime-DvTL2tzN.js → deps-send-whatsapp.runtime-CIZqFAqb.js} +7 -7
- package/dist/extensionAPI.js +6 -6
- package/dist/{image-DAOPwVXi.js → image-BCVLo0qw.js} +1 -1
- package/dist/{image-runtime-wlCLVvVv.js → image-runtime-DtCKpMPZ.js} +3 -3
- package/dist/{pi-embedded-DYU79yGe.js → pi-embedded-CgQ_W6Xs.js} +24 -24
- package/dist/{pi-embedded-helpers-uTRAmQ4n.js → pi-embedded-helpers-CwuBTKza.js} +3 -3
- package/dist/plugin-sdk/{accounts-DyFCXtHv.js → accounts-BslAlVYS.js} +2 -2
- package/dist/plugin-sdk/{accounts-BJAXxY46.js → accounts-C3m65--E.js} +2 -2
- package/dist/plugin-sdk/accounts-CJWOBzwB.js +35 -0
- package/dist/plugin-sdk/{accounts-C1j7HSL0.js → accounts-CNCCkdEF.js} +3 -3
- package/dist/plugin-sdk/accounts-DP1-L-QS.js +288 -0
- package/dist/plugin-sdk/accounts-DZhWlEg3.js +46 -0
- package/dist/plugin-sdk/{active-listener-CftX5jLD.js → active-listener-B_sLJTXM.js} +2 -2
- package/dist/plugin-sdk/active-listener-CkPnMUkB.js +50 -0
- package/dist/plugin-sdk/{api-key-rotation-8nyyt1kx.js → api-key-rotation-BRE4X2tf.js} +2 -2
- package/dist/plugin-sdk/api-key-rotation-BXnNsojA.js +181 -0
- package/dist/plugin-sdk/{audio-preflight-C_aSAPR1.js → audio-preflight-CtO4fFvp.js} +26 -26
- package/dist/plugin-sdk/audio-preflight-DGEUDxxR.js +69 -0
- package/dist/plugin-sdk/audio-transcription-runner-DkoPNPYt.js +2176 -0
- package/dist/plugin-sdk/{audio-transcription-runner-CB53F7_7.js → audio-transcription-runner-DnxvOS1-.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-BXndI4LG.js → audit-membership-runtime-BpfoSk8M.js} +2 -2
- package/dist/plugin-sdk/audit-membership-runtime-DSBHHw7o.js +58 -0
- package/dist/plugin-sdk/channel-activity-F3d0yUwy.js +94 -0
- package/dist/plugin-sdk/{channel-activity-C5y8AgAV.js → channel-activity-WJYxcJ3S.js} +3 -3
- package/dist/plugin-sdk/channel-web-QF7EpjeP.js +2256 -0
- package/dist/plugin-sdk/{channel-web-DBTRO03V.js → channel-web-dO5k3ubM.js} +18 -18
- package/dist/plugin-sdk/chrome-BXoCyCkY.js +2415 -0
- package/dist/plugin-sdk/{chrome-f00sZkDX.js → chrome-CjNTuJML.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-BJ_NxG2F.js → commands-registry-CdYjoI0i.js} +4 -4
- package/dist/plugin-sdk/commands-registry-t7cXBTfN.js +1125 -0
- package/dist/plugin-sdk/{common-Cf27Jwxu.js → common-oYc5vPFl.js} +2 -2
- package/dist/plugin-sdk/{config-CHQrpx-Q.js → config-B1z-UxQ3.js} +7 -7
- package/dist/plugin-sdk/config-BkEnz2Po.js +17913 -0
- package/dist/plugin-sdk/deliver-B6AG_l67.js +1694 -0
- package/dist/plugin-sdk/{deliver-DNEuetST.js → deliver-D5_6T567.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-C5dgvvga.js +32 -0
- package/dist/plugin-sdk/deliver-runtime-D585kJZc.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-Dg4N7PHJ.js +23 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-a_OKY2js.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-0OEwzMQm.js +22 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-Baxy9TD4.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BM1jRt3G.js +21 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BwXoCrFl.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-1E3BYRdF.js +19 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-CLmKjgso.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-BKfdBKnZ.js +24 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-DNCxIflA.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BOTwkbx_.js +57 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-OLwr-9c8.js +57 -0
- package/dist/plugin-sdk/{diagnostic-LYUUmjJ5.js → diagnostic-Bxxu0ig-.js} +2 -2
- package/dist/plugin-sdk/diagnostic-CsP-lEkI.js +319 -0
- package/dist/plugin-sdk/{errors-CtMWwS2Z.js → errors-B3cHyZZA.js} +1 -1
- package/dist/plugin-sdk/errors-DaiAM-yU.js +54 -0
- package/dist/plugin-sdk/fetch-guard-DETCcJzQ.js +156 -0
- package/dist/plugin-sdk/{fetch-guard-CxYB5Kg6.js → fetch-guard-Dcgod0tg.js} +2 -2
- package/dist/plugin-sdk/fs-safe-B8y811FR.js +352 -0
- package/dist/plugin-sdk/{fs-safe-DtfhxbrI.js → fs-safe-BaKqI3G4.js} +3 -3
- package/dist/plugin-sdk/{image-BwjYjRHx.js → image-B2mQW9Rb.js} +6 -6
- package/dist/plugin-sdk/image-DjTEkYZE.js +2310 -0
- package/dist/plugin-sdk/image-ops-BSiMpAw4.js +584 -0
- package/dist/plugin-sdk/{image-ops-BnZKcbd6.js → image-ops-Cbzr4U9l.js} +2 -2
- package/dist/plugin-sdk/image-runtime-6xPp8m5a.js +25 -0
- package/dist/plugin-sdk/image-runtime-BFm45j49.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/ir-DQ7_HbvK.js +1296 -0
- package/dist/plugin-sdk/{ir-Z4hX67TJ.js → ir-ZEmrTr4J.js} +7 -7
- package/dist/plugin-sdk/local-roots-BUP4YBmR.js +186 -0
- package/dist/plugin-sdk/{local-roots-KhjQw04O.js → local-roots-CIPRxA-4.js} +4 -4
- package/dist/plugin-sdk/logger-CZY9KIoY.js +1163 -0
- package/dist/plugin-sdk/{logger-DHIIvMxj.js → logger-CvPFVOgT.js} +2 -2
- package/dist/plugin-sdk/login-BxEKLlCo.js +57 -0
- package/dist/plugin-sdk/{login-C31642Ld.js → login-CCTew9bt.js} +4 -4
- package/dist/plugin-sdk/{login-qr--y2SG_Ue.js → login-qr-BI3Vi_wJ.js} +5 -5
- package/dist/plugin-sdk/login-qr-BQIpMPr9.js +320 -0
- package/dist/plugin-sdk/{manager-2UZBMCc7.js → manager-BEoYPn7R.js} +8 -8
- package/dist/plugin-sdk/manager-I6KbPihW.js +3917 -0
- package/dist/plugin-sdk/manager-runtime-CFfYYWIQ.js +15 -0
- package/dist/plugin-sdk/manager-runtime-DxclHQ4U.js +15 -0
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/{outbound-Ba0QUI5h.js → outbound-ByOw1K6W.js} +5 -5
- package/dist/plugin-sdk/outbound-NS6UHnB6.js +212 -0
- package/dist/plugin-sdk/{outbound-attachment-B1Laso-8.js → outbound-attachment-BzVhxRRw.js} +2 -2
- package/dist/plugin-sdk/outbound-attachment-Dy6fyf6H.js +19 -0
- package/dist/plugin-sdk/{path-alias-guards-C7Vm5DZ1.js → path-alias-guards-DBjLbIX_.js} +1 -1
- package/dist/plugin-sdk/path-alias-guards-sWayacde.js +43 -0
- package/dist/plugin-sdk/{paths-DopV9PQG.js → paths-Dpg3qxcl.js} +1 -1
- package/dist/plugin-sdk/paths-vTM3Lh3X.js +166 -0
- package/dist/plugin-sdk/pi-embedded-helpers-1R1gu7eX.js +9627 -0
- package/dist/plugin-sdk/{pi-embedded-helpers-DnA_OCzP.js → pi-embedded-helpers-DIxXkGJf.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-DdPqXk8f.js → pi-model-discovery-DM_2uFtj.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-BuzvkvNR.js +8 -0
- package/dist/plugin-sdk/pi-model-discovery-runtime-Do9o-dUd.js +8 -0
- package/dist/plugin-sdk/pi-model-discovery-v-XPUOOf.js +134 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D4sFsIks.js +354 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-DxFHiLUE.js → pi-tools.before-tool-call.runtime-w1dqL_ty.js} +4 -4
- package/dist/plugin-sdk/{plugins-CbCt4osF.js → plugins-C4USiH29.js} +4 -4
- package/dist/plugin-sdk/plugins-DeBZB9l_.js +864 -0
- package/dist/plugin-sdk/{proxy-env-C63mMdas.js → proxy-env-ET-rp8eg.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-Ch95c_Y2.js → proxy-fetch-ChxOhWF4.js} +1 -1
- package/dist/plugin-sdk/proxy-fetch-uDXGKG3Z.js +38 -0
- package/dist/plugin-sdk/{pw-ai-DpJk62D4.js → pw-ai-CyOt3RDA.js} +9 -9
- package/dist/plugin-sdk/pw-ai-DEOmCSSC.js +1938 -0
- package/dist/plugin-sdk/{qmd-manager-Ca-iSfEE.js → qmd-manager-BySdoVR7.js} +7 -7
- package/dist/plugin-sdk/qmd-manager-HyYKoEch.js +1448 -0
- package/dist/plugin-sdk/{query-expansion-B_Xe41Ab.js → query-expansion-C6uS-7lj.js} +4 -4
- package/dist/plugin-sdk/query-expansion-CeyKUeDW.js +1011 -0
- package/dist/plugin-sdk/{redact-hp9TOulW.js → redact-Bvxt1T_Q.js} +1 -1
- package/dist/plugin-sdk/redact-DjVX-1N3.js +319 -0
- package/dist/plugin-sdk/{reply-CovBlFea.js → reply-CTCSeQqW.js} +73 -73
- package/dist/plugin-sdk/reply-DAo_Jt8K.js +97916 -0
- package/dist/plugin-sdk/resolve-outbound-target-B42qgQS9.js +40 -0
- package/dist/plugin-sdk/{resolve-outbound-target-BbrHgyUk.js → resolve-outbound-target-Bw8YNANu.js} +2 -2
- package/dist/plugin-sdk/run-with-concurrency-Bt_ks0Qa.js +1994 -0
- package/dist/plugin-sdk/{run-with-concurrency-BR1DXa8T.js → run-with-concurrency-C_KCHwvf.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-B6W989eF.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxgRDkhc.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-c_GDFy37.js +19 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-elOqrkfg.js +19 -0
- package/dist/plugin-sdk/{send-BvAtLLPl.js → send-BZ6nYFZr.js} +5 -5
- package/dist/plugin-sdk/{send-BTztm3D2.js → send-C0w6xP2x.js} +6 -6
- package/dist/plugin-sdk/{send-CWJUuG0i.js → send-CFf-1V89.js} +8 -8
- package/dist/plugin-sdk/send-CQpMudwO.js +2587 -0
- package/dist/plugin-sdk/{send-EcglC4cG.js → send-CY-Qfwia.js} +7 -7
- package/dist/plugin-sdk/send-DQHLzVyO.js +414 -0
- package/dist/plugin-sdk/send-DTB24bEF.js +3135 -0
- package/dist/plugin-sdk/send-DfHadjZ_.js +503 -0
- package/dist/plugin-sdk/send-XXlW2iny.js +540 -0
- package/dist/plugin-sdk/{send-BXpXBwM_.js → send-qPyNGSe4.js} +13 -13
- package/dist/plugin-sdk/session-6TF6MyaC.js +169 -0
- package/dist/plugin-sdk/{session-k256LJZT.js → session-COrvpvUQ.js} +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/skill-commands-CkGeFUMl.js +342 -0
- package/dist/plugin-sdk/{skill-commands-DoRqLzxm.js → skill-commands-DZqhtmiv.js} +4 -4
- package/dist/plugin-sdk/skills-CBkHBYPq.js +1428 -0
- package/dist/plugin-sdk/{skills-QudILG6e.js → skills-Cw_vXEJb.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-CxliuGaP.js +13 -0
- package/dist/plugin-sdk/slash-commands.runtime-D67JLweo.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-DFaeYlJQ.js +52 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-DvcpvCJ0.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-0M0OLCxq.js +16 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-BM1x3azR.js +16 -0
- package/dist/plugin-sdk/ssrf-cFtplYtS.js +202 -0
- package/dist/plugin-sdk/store-5nyxY3WU.js +81 -0
- package/dist/plugin-sdk/{store-BbDQw3g6.js → store-CMHj6IIw.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-1lbDyRzz.js +52 -0
- package/dist/plugin-sdk/subagent-registry-runtime-DCtmDwna.js +52 -0
- package/dist/plugin-sdk/tables-C47P4GTN.js +55 -0
- package/dist/plugin-sdk/{tables-BhvloMKN.js → tables-CSqrHsKL.js} +1 -1
- package/dist/plugin-sdk/target-errors-Blia4S69.js +195 -0
- package/dist/plugin-sdk/thinking-Bo2eosVa.js +1206 -0
- package/dist/plugin-sdk/{thinking-URzkT-3p.js → thinking-DOnsR_A8.js} +7 -7
- package/dist/plugin-sdk/{tokens-B1PW5Ayy.js → tokens-BDr0Z9o3.js} +1 -1
- package/dist/plugin-sdk/tokens-DgNRBwIg.js +52 -0
- package/dist/plugin-sdk/{tool-images-xpqbP6RR.js → tool-images-Gk_-0y2N.js} +2 -2
- package/dist/plugin-sdk/tool-images-eEfOVkzf.js +274 -0
- package/dist/plugin-sdk/web-BLyT64pW.js +56 -0
- package/dist/plugin-sdk/web-CVxZbXyH.js +56 -0
- package/dist/plugin-sdk/whatsapp-actions-Bw0H9g-n.js +80 -0
- package/dist/plugin-sdk/{whatsapp-actions-RcZ6vp61.js → whatsapp-actions-xcleMoMv.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{pw-ai-GcYO6HPE.js → pw-ai-CmphSzHx.js} +1 -1
- package/dist/{slash-dispatch.runtime-Dh053pQK.js → slash-dispatch.runtime-131yup2e.js} +6 -6
- package/dist/{subagent-registry-runtime-DSi5mnCQ.js → subagent-registry-runtime-DbSf_Je6.js} +6 -6
- package/dist/{web-1hWJDzNA.js → web-MR9d7KyB.js} +6 -6
- package/package.json +7 -5
- package/scripts/create-instance.sh +143 -91
- package/dist/plugin-sdk/deliver-runtime-BFdqklJM.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-DuqpYwU0.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-CZ2rS8Lb.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BdqiWhIh.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-04s36qiC.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-LE5tkPvr.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-Bz57lobC.js +0 -57
- package/dist/plugin-sdk/image-runtime-B8twoubs.js +0 -25
- package/dist/plugin-sdk/manager-runtime-CMeLwose.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-D8CJhtJY.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-SkO91TZH.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-B0VWK5hm.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-DS6vCNSL.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-BXrxb2wd.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-Bd6qQ2oT.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-1uwQbuXj.js +0 -52
- package/dist/plugin-sdk/web-B74yhL2N.js +0 -56
|
@@ -8,8 +8,8 @@ import "./plugins-D32XloiU.js";
|
|
|
8
8
|
import "./accounts-CSwQwmi-.js";
|
|
9
9
|
import "./accounts-D0b225eZ.js";
|
|
10
10
|
import "./image-ops-Cdb65Ugz.js";
|
|
11
|
-
import "./pi-embedded-helpers-
|
|
12
|
-
import "./chrome-
|
|
11
|
+
import "./pi-embedded-helpers-CwuBTKza.js";
|
|
12
|
+
import "./chrome-CMU2WVFh.js";
|
|
13
13
|
import "./skills-DhJjHaBz.js";
|
|
14
14
|
import "./path-alias-guards-B6LFrksx.js";
|
|
15
15
|
import "./redact-DBcTOmRL.js";
|
|
@@ -20,8 +20,8 @@ import "./store-CSSX03Wl.js";
|
|
|
20
20
|
import "./accounts-CTAmvqQt.js";
|
|
21
21
|
import "./paths-BgCTr3-D.js";
|
|
22
22
|
import "./tool-images-DpgWhBLv.js";
|
|
23
|
-
import "./image-
|
|
24
|
-
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
23
|
+
import "./image-BCVLo0qw.js";
|
|
24
|
+
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-DZbSWT9E.js";
|
|
25
25
|
import "./fetch-Bz-lmDr4.js";
|
|
26
26
|
import "./fetch-guard-BiA86VyP.js";
|
|
27
27
|
import "./api-key-rotation-xR-rxS2R.js";
|
package/dist/{audio-transcription-runner-B-UvoDjZ.js → audio-transcription-runner-DZbSWT9E.js}
RENAMED
|
@@ -3,7 +3,7 @@ import { L as logVerbose, O as createSubsystemLogger, Y as resolvePreferredOpenC
|
|
|
3
3
|
import { A as requireApiKey, Y as loadConfig, at as isInboundPathAllowed, c as normalizeProviderId, cr as resolveOpenClawAgentDir, h as normalizeGoogleModelId, it as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, j as resolveApiKeyForProvider, ot as mergeInboundPathRoots, st as resolveIMessageAttachmentRoots } from "./model-selection-CGn4LwFd.js";
|
|
4
4
|
import { _ as normalizeChatType } from "./plugins-D32XloiU.js";
|
|
5
5
|
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-Cdb65Ugz.js";
|
|
6
|
-
import { t as describeImageWithModel, w as ensureOpenClawModelsJson } from "./image-
|
|
6
|
+
import { t as describeImageWithModel, w as ensureOpenClawModelsJson } from "./image-BCVLo0qw.js";
|
|
7
7
|
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-Bz-lmDr4.js";
|
|
8
8
|
import { n as fetchWithTimeout } from "./fetch-timeout-B_Wivh-n.js";
|
|
9
9
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-BiA86VyP.js";
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5f43fd4b2f6284c1ea5047f2d07fb2ea6da49c5a8489110cd2fb323f68c153ad
|
|
@@ -13,7 +13,7 @@ import { createHmac } from "node:crypto";
|
|
|
13
13
|
import net from "node:net";
|
|
14
14
|
import http, { createServer } from "node:http";
|
|
15
15
|
import https from "node:https";
|
|
16
|
-
import WebSocket
|
|
16
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
17
17
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
18
18
|
|
|
19
19
|
//#region src/browser/constants.ts
|
|
@@ -592,7 +592,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
592
592
|
let extensionWs = null;
|
|
593
593
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
594
594
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
595
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket
|
|
595
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
596
596
|
const hasConnectedTargets = () => connectedTargets.size > 0;
|
|
597
597
|
let extensionDisconnectCleanupTimer = null;
|
|
598
598
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
@@ -644,7 +644,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
644
644
|
let nextExtensionId = 1;
|
|
645
645
|
const sendToExtension = async (payload) => {
|
|
646
646
|
const ws = extensionWs;
|
|
647
|
-
if (!ws || ws.readyState !== WebSocket
|
|
647
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
648
648
|
ws.send(JSON.stringify(payload));
|
|
649
649
|
return await new Promise((resolve, reject) => {
|
|
650
650
|
const timer = setTimeout(() => {
|
|
@@ -661,12 +661,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
661
661
|
const broadcastToCdpClients = (evt) => {
|
|
662
662
|
const msg = JSON.stringify(evt);
|
|
663
663
|
for (const ws of cdpClients) {
|
|
664
|
-
if (ws.readyState !== WebSocket
|
|
664
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
665
665
|
ws.send(msg);
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
668
|
const sendResponseToCdp = (ws, res) => {
|
|
669
|
-
if (ws.readyState !== WebSocket
|
|
669
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
670
670
|
ws.send(JSON.stringify(res));
|
|
671
671
|
};
|
|
672
672
|
const dropConnectedTargetSession = (sessionId) => {
|
|
@@ -920,7 +920,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
920
920
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
921
921
|
return;
|
|
922
922
|
}
|
|
923
|
-
if (extensionWs && extensionWs.readyState !== WebSocket
|
|
923
|
+
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
924
924
|
try {
|
|
925
925
|
extensionWs.terminate();
|
|
926
926
|
} catch {}
|
|
@@ -953,7 +953,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
953
953
|
clearExtensionDisconnectCleanupTimer();
|
|
954
954
|
flushExtensionReconnectWaiters(true);
|
|
955
955
|
const ping = setInterval(() => {
|
|
956
|
-
if (ws.readyState !== WebSocket
|
|
956
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
957
957
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
958
958
|
}, 5e3);
|
|
959
959
|
ws.on("message", (data) => {
|
|
@@ -1309,7 +1309,7 @@ function openCdpWebSocket(wsUrl, opts) {
|
|
|
1309
1309
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
1310
1310
|
const handshakeTimeoutMs = typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : CDP_WS_HANDSHAKE_TIMEOUT_MS;
|
|
1311
1311
|
const agent = getDirectAgentForCdp(wsUrl);
|
|
1312
|
-
return new WebSocket
|
|
1312
|
+
return new WebSocket(wsUrl, {
|
|
1313
1313
|
handshakeTimeout: handshakeTimeoutMs,
|
|
1314
1314
|
...Object.keys(headers).length ? { headers } : {},
|
|
1315
1315
|
...agent ? { agent } : {}
|
|
@@ -7,7 +7,7 @@ import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-J9Qxdf
|
|
|
7
7
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-D32XloiU.js";
|
|
8
8
|
import { n as generateSecureUuid } from "./secure-random-D68-1Hhs.js";
|
|
9
9
|
import { r as parseTelegramTarget } from "./targets-D1wBrTyc.js";
|
|
10
|
-
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, i as isMessagingToolDuplicate, lt as parseInlineDirectives } from "./pi-embedded-helpers-
|
|
10
|
+
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, i as isMessagingToolDuplicate, lt as parseInlineDirectives } from "./pi-embedded-helpers-CwuBTKza.js";
|
|
11
11
|
import { i as getAgentScopedMediaLocalRoots } from "./fetch-Bz-lmDr4.js";
|
|
12
12
|
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-CGmIWskW.js";
|
|
13
13
|
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-BPEFN_Rs.js";
|
|
@@ -7,11 +7,11 @@ import "./thinking-BnMXBaoj.js";
|
|
|
7
7
|
import "./tokens-J9QxdfW4.js";
|
|
8
8
|
import "./plugins-D32XloiU.js";
|
|
9
9
|
import "./accounts-CSwQwmi-.js";
|
|
10
|
-
import { t as deliverOutboundPayloads } from "./deliver-
|
|
10
|
+
import { t as deliverOutboundPayloads } from "./deliver-BXVcFIHL.js";
|
|
11
11
|
import "./accounts-D0b225eZ.js";
|
|
12
12
|
import "./image-ops-Cdb65Ugz.js";
|
|
13
|
-
import "./pi-embedded-helpers-
|
|
14
|
-
import "./chrome-
|
|
13
|
+
import "./pi-embedded-helpers-CwuBTKza.js";
|
|
14
|
+
import "./chrome-CMU2WVFh.js";
|
|
15
15
|
import "./skills-DhJjHaBz.js";
|
|
16
16
|
import "./path-alias-guards-B6LFrksx.js";
|
|
17
17
|
import "./redact-DBcTOmRL.js";
|
package/dist/{deps-send-whatsapp.runtime-DvTL2tzN.js → deps-send-whatsapp.runtime-CIZqFAqb.js}
RENAMED
|
@@ -2,7 +2,7 @@ import "./run-with-concurrency-CwEpSWUB.js";
|
|
|
2
2
|
import "./paths-CaA28K0s.js";
|
|
3
3
|
import "./logger-DLNJPYG_.js";
|
|
4
4
|
import "./model-selection-CGn4LwFd.js";
|
|
5
|
-
import "./pi-embedded-
|
|
5
|
+
import "./pi-embedded-CgQ_W6Xs.js";
|
|
6
6
|
import "./github-copilot-token-BWXANsA6.js";
|
|
7
7
|
import "./thinking-BnMXBaoj.js";
|
|
8
8
|
import "./tokens-J9QxdfW4.js";
|
|
@@ -10,14 +10,14 @@ import "./plugins-D32XloiU.js";
|
|
|
10
10
|
import "./accounts-CSwQwmi-.js";
|
|
11
11
|
import "./send-gxHdLxHb.js";
|
|
12
12
|
import "./send-coHgGFcr.js";
|
|
13
|
-
import "./deliver-
|
|
13
|
+
import "./deliver-BXVcFIHL.js";
|
|
14
14
|
import "./diagnostic-B6424ZSe.js";
|
|
15
15
|
import "./accounts-D0b225eZ.js";
|
|
16
16
|
import "./image-ops-Cdb65Ugz.js";
|
|
17
17
|
import "./send-DEuQpTH0.js";
|
|
18
18
|
import "./pi-model-discovery-BKJwRHhi.js";
|
|
19
|
-
import "./pi-embedded-helpers-
|
|
20
|
-
import "./chrome-
|
|
19
|
+
import "./pi-embedded-helpers-CwuBTKza.js";
|
|
20
|
+
import "./chrome-CMU2WVFh.js";
|
|
21
21
|
import "./skills-DhJjHaBz.js";
|
|
22
22
|
import "./path-alias-guards-B6LFrksx.js";
|
|
23
23
|
import "./redact-DBcTOmRL.js";
|
|
@@ -28,8 +28,8 @@ import "./store-CSSX03Wl.js";
|
|
|
28
28
|
import "./accounts-CTAmvqQt.js";
|
|
29
29
|
import "./paths-BgCTr3-D.js";
|
|
30
30
|
import "./tool-images-DpgWhBLv.js";
|
|
31
|
-
import "./image-
|
|
32
|
-
import "./audio-transcription-runner-
|
|
31
|
+
import "./image-BCVLo0qw.js";
|
|
32
|
+
import "./audio-transcription-runner-DZbSWT9E.js";
|
|
33
33
|
import "./fetch-Bz-lmDr4.js";
|
|
34
34
|
import "./fetch-guard-BiA86VyP.js";
|
|
35
35
|
import "./api-key-rotation-xR-rxS2R.js";
|
|
@@ -51,6 +51,6 @@ import "./query-expansion-63ZssZwq.js";
|
|
|
51
51
|
import { t as sendMessageWhatsApp } from "./outbound-X5zpyh9i.js";
|
|
52
52
|
import "./session-CALrkcHT.js";
|
|
53
53
|
import "./login-D_H3eQpx.js";
|
|
54
|
-
import "./web-
|
|
54
|
+
import "./web-MR9d7KyB.js";
|
|
55
55
|
|
|
56
56
|
export { sendMessageWhatsApp };
|
package/dist/extensionAPI.js
CHANGED
|
@@ -2,7 +2,7 @@ import { S as ensureAgentWorkspace, a as resolveAgentDir, c as resolveAgentWorks
|
|
|
2
2
|
import "./paths-CaA28K0s.js";
|
|
3
3
|
import "./logger-DLNJPYG_.js";
|
|
4
4
|
import { Tr as DEFAULT_PROVIDER, m as resolveThinkingDefault, wr as DEFAULT_MODEL } from "./model-selection-CGn4LwFd.js";
|
|
5
|
-
import { G as resolveAgentIdentity, W as resolveAgentTimeoutMs, t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
5
|
+
import { G as resolveAgentIdentity, W as resolveAgentTimeoutMs, t as runEmbeddedPiAgent } from "./pi-embedded-CgQ_W6Xs.js";
|
|
6
6
|
import "./github-copilot-token-BWXANsA6.js";
|
|
7
7
|
import "./thinking-BnMXBaoj.js";
|
|
8
8
|
import "./tokens-J9QxdfW4.js";
|
|
@@ -10,14 +10,14 @@ import "./plugins-D32XloiU.js";
|
|
|
10
10
|
import "./accounts-CSwQwmi-.js";
|
|
11
11
|
import "./send-gxHdLxHb.js";
|
|
12
12
|
import "./send-coHgGFcr.js";
|
|
13
|
-
import "./deliver-
|
|
13
|
+
import "./deliver-BXVcFIHL.js";
|
|
14
14
|
import "./diagnostic-B6424ZSe.js";
|
|
15
15
|
import "./accounts-D0b225eZ.js";
|
|
16
16
|
import "./image-ops-Cdb65Ugz.js";
|
|
17
17
|
import "./send-DEuQpTH0.js";
|
|
18
18
|
import "./pi-model-discovery-BKJwRHhi.js";
|
|
19
|
-
import { W as loadSessionStore, q as saveSessionStore } from "./pi-embedded-helpers-
|
|
20
|
-
import "./chrome-
|
|
19
|
+
import { W as loadSessionStore, q as saveSessionStore } from "./pi-embedded-helpers-CwuBTKza.js";
|
|
20
|
+
import "./chrome-CMU2WVFh.js";
|
|
21
21
|
import "./skills-DhJjHaBz.js";
|
|
22
22
|
import "./path-alias-guards-B6LFrksx.js";
|
|
23
23
|
import "./redact-DBcTOmRL.js";
|
|
@@ -28,8 +28,8 @@ import "./store-CSSX03Wl.js";
|
|
|
28
28
|
import "./accounts-CTAmvqQt.js";
|
|
29
29
|
import { n as resolveSessionFilePath, s as resolveStorePath } from "./paths-BgCTr3-D.js";
|
|
30
30
|
import "./tool-images-DpgWhBLv.js";
|
|
31
|
-
import "./image-
|
|
32
|
-
import "./audio-transcription-runner-
|
|
31
|
+
import "./image-BCVLo0qw.js";
|
|
32
|
+
import "./audio-transcription-runner-DZbSWT9E.js";
|
|
33
33
|
import "./fetch-Bz-lmDr4.js";
|
|
34
34
|
import "./fetch-guard-BiA86VyP.js";
|
|
35
35
|
import "./api-key-rotation-xR-rxS2R.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mt as resolveAgentModelPrimaryValue, pt as resolveAgentModelFallbackValues } from "./run-with-concurrency-CwEpSWUB.js";
|
|
2
2
|
import { f as isRecord, x as shortenHomeInString } from "./logger-DLNJPYG_.js";
|
|
3
3
|
import { A as requireApiKey, O as getApiKeyForModel, Y as loadConfig, _ as resolveImplicitBedrockProvider, _r as normalizeSecretInput, cr as resolveOpenClawAgentDir, g as normalizeProviders, qn as applyConfigEnvVars, v as resolveImplicitCopilotProvider, y as resolveImplicitProviders } from "./model-selection-CGn4LwFd.js";
|
|
4
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
4
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-CwuBTKza.js";
|
|
5
5
|
import { n as redactToolDetail } from "./redact-DBcTOmRL.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -8,8 +8,8 @@ import "./plugins-D32XloiU.js";
|
|
|
8
8
|
import "./accounts-CSwQwmi-.js";
|
|
9
9
|
import "./accounts-D0b225eZ.js";
|
|
10
10
|
import "./image-ops-Cdb65Ugz.js";
|
|
11
|
-
import "./pi-embedded-helpers-
|
|
12
|
-
import "./chrome-
|
|
11
|
+
import "./pi-embedded-helpers-CwuBTKza.js";
|
|
12
|
+
import "./chrome-CMU2WVFh.js";
|
|
13
13
|
import "./skills-DhJjHaBz.js";
|
|
14
14
|
import "./path-alias-guards-B6LFrksx.js";
|
|
15
15
|
import "./redact-DBcTOmRL.js";
|
|
@@ -20,6 +20,6 @@ import "./store-CSSX03Wl.js";
|
|
|
20
20
|
import "./accounts-CTAmvqQt.js";
|
|
21
21
|
import "./paths-BgCTr3-D.js";
|
|
22
22
|
import "./tool-images-DpgWhBLv.js";
|
|
23
|
-
import { t as describeImageWithModel } from "./image-
|
|
23
|
+
import { t as describeImageWithModel } from "./image-BCVLo0qw.js";
|
|
24
24
|
|
|
25
25
|
export { describeImageWithModel };
|
|
@@ -10,15 +10,15 @@ import { a as logWebSelfId, h as resolveAccountEntry, i as getWebAuthAgeMs, m as
|
|
|
10
10
|
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-gxHdLxHb.js";
|
|
11
11
|
import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, 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 buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-coHgGFcr.js";
|
|
12
12
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-D68-1Hhs.js";
|
|
13
|
-
import { C as createReplyToModeFilterForChannel, D as normalizeTargetForProvider, E as normalizeChannelTargetInput, O as getGlobalHookRunner, S as shouldSuppressReasoningPayload, T as buildTargetResolverSignature, _ as applyReplyThreading, a as normalizeReplyPayloadsForDelivery, b as isRenderablePayload, c as splitMediaFromOutput, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as applyReplyTagsToPayload, h as fireAndForgetHook, i as normalizeOutboundPayloadsForJson, k as initializeGlobalHookRunner, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, n as formatOutboundPayloadLog, o as throwIfAborted, p as toPluginMessageContext, r as normalizeOutboundPayloads, s as parseReplyDirectives, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as filterMessagingToolDuplicates, w as resolveReplyToMode, x as shouldSuppressMessagingToolReplies, y as filterMessagingToolMediaDuplicates } from "./deliver-
|
|
13
|
+
import { C as createReplyToModeFilterForChannel, D as normalizeTargetForProvider, E as normalizeChannelTargetInput, O as getGlobalHookRunner, S as shouldSuppressReasoningPayload, T as buildTargetResolverSignature, _ as applyReplyThreading, a as normalizeReplyPayloadsForDelivery, b as isRenderablePayload, c as splitMediaFromOutput, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as applyReplyTagsToPayload, h as fireAndForgetHook, i as normalizeOutboundPayloadsForJson, k as initializeGlobalHookRunner, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, n as formatOutboundPayloadLog, o as throwIfAborted, p as toPluginMessageContext, r as normalizeOutboundPayloads, s as parseReplyDirectives, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as filterMessagingToolDuplicates, w as resolveReplyToMode, x as shouldSuppressMessagingToolReplies, y as filterMessagingToolMediaDuplicates } from "./deliver-BXVcFIHL.js";
|
|
14
14
|
import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as isDiagnosticsEnabled, i as logMessageProcessed, l as logWebhookProcessed, m as emitDiagnosticEvent, n as logLaneDequeue, o as logSessionStateChange, p as getDiagnosticSessionState, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-B6424ZSe.js";
|
|
15
15
|
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-D0b225eZ.js";
|
|
16
16
|
import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-D1wBrTyc.js";
|
|
17
17
|
import { A as mediaKindFromMime, C as imageMimeFromFormat, E as kindFromMime, O as MAX_IMAGE_BYTES, T as isGifMedia, _ as GATEWAY_CLIENT_IDS, b as detectMime, c as INTERNAL_MESSAGE_CHANNEL, d as isInternalMessageChannel, f as isMarkdownCapableMessageChannel, g as resolveMessageChannel, h as resolveGatewayMessageChannel, i as getImageMetadata, l as isDeliverableMessageChannel, m as normalizeMessageChannel, p as listDeliverableMessageChannels, s as resizeToJpeg, u as isGatewayMessageChannel, v as GATEWAY_CLIENT_MODES, w as isAudioFileName, x as extensionForMime, y as GATEWAY_CLIENT_NAMES } from "./image-ops-Cdb65Ugz.js";
|
|
18
18
|
import { $ as removeChannelAllowFromStoreEntry, A as expandTextLinks, B as resolveTelegramThreadSpec, C as buildSenderName, D as buildTelegramThreadParams, E as buildTelegramParentPeer, F as resolveTelegramForumThreadId, G as firstDefined$1, H as normalizeAllowFrom$2, I as resolveTelegramGroupAllowFromContext, J as resolveGroupAllowFromSources, K as isSenderIdAllowed, L as resolveTelegramMediaPlaceholder, M as hasBotMention, N as normalizeForwardedContext, O as buildTypingThreadParams, P as resolveTelegramDirectPeerId, Q as readChannelAllowFromStore, R as resolveTelegramReplyId, S as buildSenderLabel, T as buildTelegramGroupPeerId, U as normalizeDmAllowFromWithStore$1, V as isSenderAllowed$1, W as resolveSenderAllowMatch$1, X as toLocationContext, Y as formatLocationText, Z as addChannelAllowFromStoreEntry, _ as splitTelegramCaption, a as reactMessageTelegram, at as isVoiceCompatibleAudio, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, et as upsertChannelPairingRequest, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, it as listPairingChannels, j as extractTelegramLocation, k as describeReplyTarget, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, nt as writeJsonFileAtomically, o as sendMessageTelegram, p as markdownToTelegramHtml, q as mergeDmAllowFromSources, r as deleteMessageTelegram, rt as getPairingAdapter, s as sendPollTelegram, t as buildInlineKeyboard, tt as readJsonFileWithFallback, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildTelegramGroupFrom, x as buildGroupLabel, y as loadCronStore, z as resolveTelegramStreamMode } from "./send-DEuQpTH0.js";
|
|
19
19
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-BKJwRHhi.js";
|
|
20
|
-
import { $ as deliveryContextFromSession, $t as matchesAnyGlobPattern, A as isTransientHttpError, At as resolveGroupSessionKey, B as parseSessionThreadInfo, Bt as resolveGatewayCredentialsFromConfig, C as isCompactionFailureError, Ct as resolveFreshSessionTotalTokens, D as isLikelyContextOverflowError, Dt as resolveMainSessionKey, E as isFailoverErrorMessage, Et as resolveExplicitAgentSessionKey, F as isTimeoutErrorMessage, Ft as resolveBrowserConfig, G as readSessionUpdatedAt, Gt as collectExplicitAllowlist, Ht as resolveSandboxConfigForAgent, I as ensureSandboxWorkspaceForSession, It as resolveProfile, J as updateLastRoute, Jt as stripPluginOnlyAllowlist, K as recordSessionMetaFromInbound, Kt as expandPolicyWithPluginGroups, L as resolveSandboxContext, Lt as getBridgeAuthForPort, M as parseImageSizeError, Mt as resolveSessionLockMaxHoldFromTimeout, N as sanitizeUserFacingText, Nt as createBrowserRouteContext, O as isRateLimitAssistantError, Ot as deriveSessionMetaPatch, P as isAuthPermanentErrorMessage, Pt as registerBrowserRoutes, Q as resolveCacheTtlMs$1, Qt as compileGlobPatterns, R as resolveSandboxRuntimeStatus, Rt as ensureBrowserControlAuth, S as isCloudCodeAssistFormatError, St as mergeSessionEntry, T as isFailoverAssistantError, Tt as canonicalizeMainSessionAlias, U as resolveAndPersistSessionFile, Ut as applyOwnerOnlyToolPolicy, V as appendAssistantMessageToSessionTranscript, Vt as trimToUndefined$1, W as loadSessionStore, Wt as buildPluginToolGroups, X as updateSessionStoreEntry, Xt as normalizeToolName, Y as updateSessionStore, Yt as expandToolGroups, Z as isCacheEnabled, Zt as resolveToolProfilePolicy, _ as formatBillingErrorMessage, _t as resolveChannelResetConfig, a as isMessagingToolDuplicateNormalized, an as sanitizeGoogleTurnOrdering, at as archiveSessionTranscripts, b as isAuthAssistantError, bt as resolveThreadFlag, c as extractToolCallsFromAssistant, ct as extractToolCallNames, d as downgradeOpenAIFunctionCallReasoningPairs, dt as applyInputProvenanceToUserMessage, en as buildBootstrapContextFiles, et as deliveryContextKey, f as downgradeOpenAIReasoningBlocks, ft as hasInterSessionUserProvenance, g as formatAssistantErrorText, gt as evaluateSessionFreshness, h as classifyFailoverReason, ht as resolveSessionKey, in as resolveBootstrapTotalMaxChars, it as normalizeAccountId$3, j as parseImageDimensionError, jt as acquireSessionWriteLock, k as isRawApiErrorPayload, kt as resolveConversationLabel, l as extractToolResultId, lt as parseInlineDirectives$1, m as BILLING_ERROR_USER_MESSAGE, mt as jsonUtf8Bytes, n as validateGeminiTurns, nn as resolveBootstrapMaxChars, nt as normalizeDeliveryContext, o as normalizeTextForComparison, ot as capArrayByJsonBytes, p as isGoogleModelApi, pt as normalizeInputProvenance, qt as mergeAlsoAllowPolicy, r as pickFallbackThinkingLevel, rn as resolveBootstrapPromptTruncationWarningMode, rt as normalizeSessionDeliveryFields, s as sanitizeSessionMessagesImages, st as countToolResults, t as validateAnthropicTurns, tn as ensureSessionHeader, tt as mergeDeliveryContext, u as sanitizeToolCallIdsForCloudCodeAssist, ut as INPUT_PROVENANCE_KIND_VALUES, v as formatRawAssistantErrorForUi, vt as resolveSessionResetPolicy, w as isContextOverflowError, wt as setSessionRuntimeModel, x as isBillingAssistantError, xt as DEFAULT_RESET_TRIGGERS, y as getApiErrorPayloadFingerprint, yt as resolveSessionResetType, z as extractDeliveryInfo, zt as resolveBrowserControlAuth } from "./pi-embedded-helpers-
|
|
21
|
-
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-
|
|
20
|
+
import { $ as deliveryContextFromSession, $t as matchesAnyGlobPattern, A as isTransientHttpError, At as resolveGroupSessionKey, B as parseSessionThreadInfo, Bt as resolveGatewayCredentialsFromConfig, C as isCompactionFailureError, Ct as resolveFreshSessionTotalTokens, D as isLikelyContextOverflowError, Dt as resolveMainSessionKey, E as isFailoverErrorMessage, Et as resolveExplicitAgentSessionKey, F as isTimeoutErrorMessage, Ft as resolveBrowserConfig, G as readSessionUpdatedAt, Gt as collectExplicitAllowlist, Ht as resolveSandboxConfigForAgent, I as ensureSandboxWorkspaceForSession, It as resolveProfile, J as updateLastRoute, Jt as stripPluginOnlyAllowlist, K as recordSessionMetaFromInbound, Kt as expandPolicyWithPluginGroups, L as resolveSandboxContext, Lt as getBridgeAuthForPort, M as parseImageSizeError, Mt as resolveSessionLockMaxHoldFromTimeout, N as sanitizeUserFacingText, Nt as createBrowserRouteContext, O as isRateLimitAssistantError, Ot as deriveSessionMetaPatch, P as isAuthPermanentErrorMessage, Pt as registerBrowserRoutes, Q as resolveCacheTtlMs$1, Qt as compileGlobPatterns, R as resolveSandboxRuntimeStatus, Rt as ensureBrowserControlAuth, S as isCloudCodeAssistFormatError, St as mergeSessionEntry, T as isFailoverAssistantError, Tt as canonicalizeMainSessionAlias, U as resolveAndPersistSessionFile, Ut as applyOwnerOnlyToolPolicy, V as appendAssistantMessageToSessionTranscript, Vt as trimToUndefined$1, W as loadSessionStore, Wt as buildPluginToolGroups, X as updateSessionStoreEntry, Xt as normalizeToolName, Y as updateSessionStore, Yt as expandToolGroups, Z as isCacheEnabled, Zt as resolveToolProfilePolicy, _ as formatBillingErrorMessage, _t as resolveChannelResetConfig, a as isMessagingToolDuplicateNormalized, an as sanitizeGoogleTurnOrdering, at as archiveSessionTranscripts, b as isAuthAssistantError, bt as resolveThreadFlag, c as extractToolCallsFromAssistant, ct as extractToolCallNames, d as downgradeOpenAIFunctionCallReasoningPairs, dt as applyInputProvenanceToUserMessage, en as buildBootstrapContextFiles, et as deliveryContextKey, f as downgradeOpenAIReasoningBlocks, ft as hasInterSessionUserProvenance, g as formatAssistantErrorText, gt as evaluateSessionFreshness, h as classifyFailoverReason, ht as resolveSessionKey, in as resolveBootstrapTotalMaxChars, it as normalizeAccountId$3, j as parseImageDimensionError, jt as acquireSessionWriteLock, k as isRawApiErrorPayload, kt as resolveConversationLabel, l as extractToolResultId, lt as parseInlineDirectives$1, m as BILLING_ERROR_USER_MESSAGE, mt as jsonUtf8Bytes, n as validateGeminiTurns, nn as resolveBootstrapMaxChars, nt as normalizeDeliveryContext, o as normalizeTextForComparison, ot as capArrayByJsonBytes, p as isGoogleModelApi, pt as normalizeInputProvenance, qt as mergeAlsoAllowPolicy, r as pickFallbackThinkingLevel, rn as resolveBootstrapPromptTruncationWarningMode, rt as normalizeSessionDeliveryFields, s as sanitizeSessionMessagesImages, st as countToolResults, t as validateAnthropicTurns, tn as ensureSessionHeader, tt as mergeDeliveryContext, u as sanitizeToolCallIdsForCloudCodeAssist, ut as INPUT_PROVENANCE_KIND_VALUES, v as formatRawAssistantErrorForUi, vt as resolveSessionResetPolicy, w as isContextOverflowError, wt as setSessionRuntimeModel, x as isBillingAssistantError, xt as DEFAULT_RESET_TRIGGERS, y as getApiErrorPayloadFingerprint, yt as resolveSessionResetType, z as extractDeliveryInfo, zt as resolveBrowserControlAuth } from "./pi-embedded-helpers-CwuBTKza.js";
|
|
21
|
+
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-CMU2WVFh.js";
|
|
22
22
|
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-DhJjHaBz.js";
|
|
23
23
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-B6LFrksx.js";
|
|
24
24
|
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-DBcTOmRL.js";
|
|
@@ -31,8 +31,8 @@ import { t as resolveIMessageAccount } from "./accounts-CTAmvqQt.js";
|
|
|
31
31
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-BgCTr3-D.js";
|
|
32
32
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-UAKcGiUQ.js";
|
|
33
33
|
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-DpgWhBLv.js";
|
|
34
|
-
import { C as minimaxUnderstandImage, S as extractTextFromChatContent, _ as formatToolSummary, a as resolveProviderVisionModelFromConfig, b as findCodeRegions, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as resolveToolDisplay, w as ensureOpenClawModelsJson, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-
|
|
35
|
-
import { _ as resolveAttachmentKind, a as resolveAutoImageModel, b as modelSupportsVision, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, h as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, v as findModelInCatalog, y as loadModelCatalog } from "./audio-transcription-runner-
|
|
34
|
+
import { C as minimaxUnderstandImage, S as extractTextFromChatContent, _ as formatToolSummary, a as resolveProviderVisionModelFromConfig, b as findCodeRegions, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as resolveToolDisplay, w as ensureOpenClawModelsJson, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-BCVLo0qw.js";
|
|
35
|
+
import { _ as resolveAttachmentKind, a as resolveAutoImageModel, b as modelSupportsVision, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, h as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, v as findModelInCatalog, y as loadModelCatalog } from "./audio-transcription-runner-DZbSWT9E.js";
|
|
36
36
|
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-Bz-lmDr4.js";
|
|
37
37
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-B_Wivh-n.js";
|
|
38
38
|
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BiA86VyP.js";
|
|
@@ -69,7 +69,7 @@ import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, Setting
|
|
|
69
69
|
import { EdgeTTS } from "node-edge-tts";
|
|
70
70
|
import { createServer } from "node:http";
|
|
71
71
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
72
|
-
import WebSocket
|
|
72
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
73
73
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
74
74
|
import { createJiti } from "jiti";
|
|
75
75
|
import AjvPkg from "ajv";
|
|
@@ -8210,7 +8210,7 @@ var GatewayClient = class {
|
|
|
8210
8210
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
8211
8211
|
});
|
|
8212
8212
|
}
|
|
8213
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
8213
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
8214
8214
|
this.ws.on("open", () => {
|
|
8215
8215
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
8216
8216
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -8406,7 +8406,7 @@ var GatewayClient = class {
|
|
|
8406
8406
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
8407
8407
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
8408
8408
|
this.connectTimer = setTimeout(() => {
|
|
8409
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
8409
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
8410
8410
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
8411
8411
|
this.ws?.close(1008, "connect challenge timeout");
|
|
8412
8412
|
}, connectChallengeTimeoutMs);
|
|
@@ -8448,7 +8448,7 @@ var GatewayClient = class {
|
|
|
8448
8448
|
return null;
|
|
8449
8449
|
}
|
|
8450
8450
|
async request(method, params, opts) {
|
|
8451
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
8451
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
8452
8452
|
const id = randomUUID();
|
|
8453
8453
|
const frame = {
|
|
8454
8454
|
type: "req",
|
|
@@ -9870,7 +9870,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
9870
9870
|
*/
|
|
9871
9871
|
let deliverRuntimePromise$2 = null;
|
|
9872
9872
|
function loadDeliverRuntime$2() {
|
|
9873
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
9873
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-DTaIS-1i.js");
|
|
9874
9874
|
return deliverRuntimePromise$2;
|
|
9875
9875
|
}
|
|
9876
9876
|
/**
|
|
@@ -11158,7 +11158,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
|
|
|
11158
11158
|
const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
11159
11159
|
let subagentRegistryRuntimePromise = null;
|
|
11160
11160
|
function loadSubagentRegistryRuntime() {
|
|
11161
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
11161
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-DbSf_Je6.js");
|
|
11162
11162
|
return subagentRegistryRuntimePromise;
|
|
11163
11163
|
}
|
|
11164
11164
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
@@ -14512,7 +14512,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
14512
14512
|
//#region src/media-understanding/echo-transcript.ts
|
|
14513
14513
|
let deliverRuntimePromise$1 = null;
|
|
14514
14514
|
function loadDeliverRuntime$1() {
|
|
14515
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
14515
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-DTaIS-1i.js");
|
|
14516
14516
|
return deliverRuntimePromise$1;
|
|
14517
14517
|
}
|
|
14518
14518
|
const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
|
|
@@ -50944,7 +50944,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
50944
50944
|
const log$10 = createSubsystemLogger("session-maintenance-warning");
|
|
50945
50945
|
let deliverRuntimePromise = null;
|
|
50946
50946
|
function loadDeliverRuntime() {
|
|
50947
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
50947
|
+
deliverRuntimePromise ??= import("./deliver-runtime-DTaIS-1i.js");
|
|
50948
50948
|
return deliverRuntimePromise;
|
|
50949
50949
|
}
|
|
50950
50950
|
function shouldSendWarning() {
|
|
@@ -55921,7 +55921,7 @@ const VISION_PROVIDERS = [
|
|
|
55921
55921
|
];
|
|
55922
55922
|
let imageRuntimePromise = null;
|
|
55923
55923
|
function loadImageRuntime() {
|
|
55924
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
55924
|
+
imageRuntimePromise ??= import("./image-runtime-DtCKpMPZ.js");
|
|
55925
55925
|
return imageRuntimePromise;
|
|
55926
55926
|
}
|
|
55927
55927
|
/**
|
|
@@ -57914,7 +57914,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
57914
57914
|
const needsPreflightTranscription = !params.isDirectMessage && params.shouldRequireMention && hasAudioAttachment && !hasTypedText && params.mentionRegexes.length > 0;
|
|
57915
57915
|
let transcript;
|
|
57916
57916
|
if (needsPreflightTranscription) try {
|
|
57917
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
57917
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-DDBLZBdb.js");
|
|
57918
57918
|
const audioUrls = audioAttachments.map((att) => att.url).filter((url) => typeof url === "string" && url.length > 0);
|
|
57919
57919
|
if (audioUrls.length > 0) transcript = await transcribeFirstAudio({
|
|
57920
57920
|
ctx: {
|
|
@@ -65174,7 +65174,7 @@ let slackSenderRuntimePromise = null;
|
|
|
65174
65174
|
let signalSenderRuntimePromise = null;
|
|
65175
65175
|
let imessageSenderRuntimePromise = null;
|
|
65176
65176
|
function loadWhatsAppSenderRuntime() {
|
|
65177
|
-
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-
|
|
65177
|
+
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-CIZqFAqb.js");
|
|
65178
65178
|
return whatsappSenderRuntimePromise;
|
|
65179
65179
|
}
|
|
65180
65180
|
function loadTelegramSenderRuntime() {
|
|
@@ -68878,7 +68878,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
68878
68878
|
return super.registerClient(client);
|
|
68879
68879
|
}
|
|
68880
68880
|
createWebSocket(url) {
|
|
68881
|
-
return new WebSocket
|
|
68881
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
68882
68882
|
}
|
|
68883
68883
|
}
|
|
68884
68884
|
return new ProxyGatewayPlugin();
|
|
@@ -77933,7 +77933,7 @@ function loadSlashCommandsRuntime() {
|
|
|
77933
77933
|
return slashCommandsRuntimePromise;
|
|
77934
77934
|
}
|
|
77935
77935
|
function loadSlashDispatchRuntime() {
|
|
77936
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-
|
|
77936
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-131yup2e.js");
|
|
77937
77937
|
return slashDispatchRuntimePromise;
|
|
77938
77938
|
}
|
|
77939
77939
|
function loadSlashSkillCommandsRuntime() {
|
|
@@ -81302,7 +81302,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
81302
81302
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
81303
81303
|
let preflightTranscript;
|
|
81304
81304
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
81305
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
81305
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-DDBLZBdb.js");
|
|
81306
81306
|
preflightTranscript = await transcribeFirstAudio({
|
|
81307
81307
|
ctx: {
|
|
81308
81308
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -84202,7 +84202,7 @@ function loadWebLoginQr() {
|
|
|
84202
84202
|
return webLoginQrPromise;
|
|
84203
84203
|
}
|
|
84204
84204
|
function loadWebChannel() {
|
|
84205
|
-
webChannelPromise ??= import("./web-
|
|
84205
|
+
webChannelPromise ??= import("./web-MR9d7KyB.js");
|
|
84206
84206
|
return webChannelPromise;
|
|
84207
84207
|
}
|
|
84208
84208
|
function loadWhatsAppActions() {
|
|
@@ -92465,7 +92465,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
92465
92465
|
* Throws if the connection is not open.
|
|
92466
92466
|
*/
|
|
92467
92467
|
send(event) {
|
|
92468
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
92468
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
92469
92469
|
this.ws.send(JSON.stringify(event));
|
|
92470
92470
|
}
|
|
92471
92471
|
/**
|
|
@@ -92482,7 +92482,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
92482
92482
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
92483
92483
|
*/
|
|
92484
92484
|
isConnected() {
|
|
92485
|
-
return this.ws !== null && this.ws.readyState === WebSocket
|
|
92485
|
+
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
92486
92486
|
}
|
|
92487
92487
|
/**
|
|
92488
92488
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -92492,7 +92492,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
92492
92492
|
this._cancelRetryTimer();
|
|
92493
92493
|
if (this.ws) {
|
|
92494
92494
|
this.ws.removeAllListeners();
|
|
92495
|
-
if (this.ws.readyState === WebSocket
|
|
92495
|
+
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
92496
92496
|
this.ws = null;
|
|
92497
92497
|
}
|
|
92498
92498
|
}
|
|
@@ -92502,7 +92502,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
92502
92502
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
92503
92503
|
return;
|
|
92504
92504
|
}
|
|
92505
|
-
const socket = new WebSocket
|
|
92505
|
+
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
92506
92506
|
Authorization: `Bearer ${this.apiKey}`,
|
|
92507
92507
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
92508
92508
|
} });
|
|
@@ -6,7 +6,7 @@ import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug
|
|
|
6
6
|
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-D32XloiU.js";
|
|
7
7
|
import { t as generateSecureToken } from "./secure-random-D68-1Hhs.js";
|
|
8
8
|
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-Cdb65Ugz.js";
|
|
9
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_OPENCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
9
|
+
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_OPENCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-CMU2WVFh.js";
|
|
10
10
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-DhJjHaBz.js";
|
|
11
11
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-B6LFrksx.js";
|
|
12
12
|
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-BCQYh_Qb.js";
|
|
@@ -1275,7 +1275,7 @@ function isModuleNotFoundError(err) {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
async function loadPwAiModule(mode) {
|
|
1277
1277
|
try {
|
|
1278
|
-
return await import("./pw-ai-
|
|
1278
|
+
return await import("./pw-ai-CmphSzHx.js");
|
|
1279
1279
|
} catch (err) {
|
|
1280
1280
|
if (mode === "soft") return null;
|
|
1281
1281
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3641,7 +3641,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3641
3641
|
//#region src/browser/server-context.reset.ts
|
|
3642
3642
|
async function closePlaywrightBrowserConnection() {
|
|
3643
3643
|
try {
|
|
3644
|
-
await (await import("./pw-ai-
|
|
3644
|
+
await (await import("./pw-ai-CmphSzHx.js")).closePlaywrightBrowserConnection();
|
|
3645
3645
|
} catch {}
|
|
3646
3646
|
}
|
|
3647
3647
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-
|
|
1
|
+
import { ot as normalizeAccountId } from "./run-with-concurrency-C_KCHwvf.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-CNCCkdEF.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-
|
|
1
|
+
import { ot as normalizeAccountId } from "./run-with-concurrency-C_KCHwvf.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-CNCCkdEF.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ot as normalizeAccountId } from "./run-with-concurrency-Bt_ks0Qa.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-DP1-L-QS.js";
|
|
3
|
+
|
|
4
|
+
//#region src/imessage/accounts.ts
|
|
5
|
+
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
6
|
+
const listIMessageAccountIds = listAccountIds;
|
|
7
|
+
const resolveDefaultIMessageAccountId = resolveDefaultAccountId;
|
|
8
|
+
function resolveAccountConfig(cfg, accountId) {
|
|
9
|
+
return resolveAccountEntry(cfg.channels?.imessage?.accounts, accountId);
|
|
10
|
+
}
|
|
11
|
+
function mergeIMessageAccountConfig(cfg, accountId) {
|
|
12
|
+
const { accounts: _ignored, ...base } = cfg.channels?.imessage ?? {};
|
|
13
|
+
const account = resolveAccountConfig(cfg, accountId) ?? {};
|
|
14
|
+
return {
|
|
15
|
+
...base,
|
|
16
|
+
...account
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function resolveIMessageAccount(params) {
|
|
20
|
+
const accountId = normalizeAccountId(params.accountId);
|
|
21
|
+
const baseEnabled = params.cfg.channels?.imessage?.enabled !== false;
|
|
22
|
+
const merged = mergeIMessageAccountConfig(params.cfg, accountId);
|
|
23
|
+
const accountEnabled = merged.enabled !== false;
|
|
24
|
+
const configured = Boolean(merged.cliPath?.trim() || merged.dbPath?.trim() || merged.service || merged.region?.trim() || merged.allowFrom && merged.allowFrom.length > 0 || merged.groupAllowFrom && merged.groupAllowFrom.length > 0 || merged.dmPolicy || merged.groupPolicy || typeof merged.includeAttachments === "boolean" || merged.attachmentRoots && merged.attachmentRoots.length > 0 || merged.remoteAttachmentRoots && merged.remoteAttachmentRoots.length > 0 || typeof merged.mediaMaxMb === "number" || typeof merged.textChunkLimit === "number" || merged.groups && Object.keys(merged.groups).length > 0);
|
|
25
|
+
return {
|
|
26
|
+
accountId,
|
|
27
|
+
enabled: baseEnabled && accountEnabled,
|
|
28
|
+
name: merged.name?.trim() || void 0,
|
|
29
|
+
config: merged,
|
|
30
|
+
configured
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { resolveDefaultIMessageAccountId as n, resolveIMessageAccount as r, listIMessageAccountIds as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { Tr as formatCliCommand } from "./config-
|
|
3
|
-
import { B as success, G as getChildLogger, I as info, j as defaultRuntime, m as jidToE164, y as resolveUserPath } from "./logger-
|
|
1
|
+
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-C_KCHwvf.js";
|
|
2
|
+
import { Tr as formatCliCommand } from "./config-B1z-UxQ3.js";
|
|
3
|
+
import { B as success, G as getChildLogger, I as info, j as defaultRuntime, m as jidToE164, y as resolveUserPath } from "./logger-CvPFVOgT.js";
|
|
4
4
|
import { o as resolveOAuthDir } from "./paths-0d8fBoC4.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|