openclaw-multi-auto 1.2.5 → 1.2.6
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-DDBLZBdb.js → audio-preflight-5FEeDooz.js} +4 -4
- package/dist/{audio-transcription-runner-DZbSWT9E.js → audio-transcription-runner-B-UvoDjZ.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-CMU2WVFh.js → chrome-D45SyhQL.js} +8 -8
- package/dist/{deliver-BXVcFIHL.js → deliver-B9cys0EZ.js} +1 -1
- package/dist/{deliver-runtime-DTaIS-1i.js → deliver-runtime-DhaQJ0pI.js} +3 -3
- package/dist/{deps-send-whatsapp.runtime-CIZqFAqb.js → deps-send-whatsapp.runtime-DvTL2tzN.js} +7 -7
- package/dist/extensionAPI.js +6 -6
- package/dist/{image-BCVLo0qw.js → image-DAOPwVXi.js} +1 -1
- package/dist/{image-runtime-DtCKpMPZ.js → image-runtime-wlCLVvVv.js} +3 -3
- package/dist/{pi-embedded-CgQ_W6Xs.js → pi-embedded-DYU79yGe.js} +24 -24
- package/dist/{pi-embedded-helpers-CwuBTKza.js → pi-embedded-helpers-uTRAmQ4n.js} +3 -3
- package/dist/plugin-sdk/{accounts-C3m65--E.js → accounts-BJAXxY46.js} +2 -2
- package/dist/plugin-sdk/{accounts-CNCCkdEF.js → accounts-C1j7HSL0.js} +3 -3
- package/dist/plugin-sdk/{accounts-BslAlVYS.js → accounts-DyFCXtHv.js} +2 -2
- package/dist/plugin-sdk/{active-listener-CkPnMUkB.js → active-listener-CftX5jLD.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-BRE4X2tf.js → api-key-rotation-8nyyt1kx.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-CtO4fFvp.js → audio-preflight-C_aSAPR1.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-DnxvOS1-.js → audio-transcription-runner-CB53F7_7.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-BpfoSk8M.js → audit-membership-runtime-BXndI4LG.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-WJYxcJ3S.js → channel-activity-C5y8AgAV.js} +3 -3
- package/dist/plugin-sdk/{channel-web-dO5k3ubM.js → channel-web-DBTRO03V.js} +18 -18
- package/dist/plugin-sdk/{chrome-CjNTuJML.js → chrome-f00sZkDX.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-CdYjoI0i.js → commands-registry-BJ_NxG2F.js} +4 -4
- package/dist/plugin-sdk/{common-oYc5vPFl.js → common-Cf27Jwxu.js} +2 -2
- package/dist/plugin-sdk/{config-B1z-UxQ3.js → config-CHQrpx-Q.js} +7 -7
- package/dist/plugin-sdk/{deliver-D5_6T567.js → deliver-DNEuetST.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-BFdqklJM.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-DuqpYwU0.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-CZ2rS8Lb.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BdqiWhIh.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-04s36qiC.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-LE5tkPvr.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-Bz57lobC.js +57 -0
- package/dist/plugin-sdk/{diagnostic-Bxxu0ig-.js → diagnostic-LYUUmjJ5.js} +2 -2
- package/dist/plugin-sdk/{errors-B3cHyZZA.js → errors-CtMWwS2Z.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Dcgod0tg.js → fetch-guard-CxYB5Kg6.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-BaKqI3G4.js → fs-safe-DtfhxbrI.js} +3 -3
- package/dist/plugin-sdk/{image-B2mQW9Rb.js → image-BwjYjRHx.js} +6 -6
- package/dist/plugin-sdk/{image-ops-Cbzr4U9l.js → image-ops-BnZKcbd6.js} +2 -2
- package/dist/plugin-sdk/image-runtime-B8twoubs.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-ZEmrTr4J.js → ir-Z4hX67TJ.js} +7 -7
- package/dist/plugin-sdk/{local-roots-CIPRxA-4.js → local-roots-KhjQw04O.js} +4 -4
- package/dist/plugin-sdk/{logger-CvPFVOgT.js → logger-DHIIvMxj.js} +2 -2
- package/dist/plugin-sdk/{login-CCTew9bt.js → login-C31642Ld.js} +4 -4
- package/dist/plugin-sdk/{login-qr-BI3Vi_wJ.js → login-qr--y2SG_Ue.js} +5 -5
- package/dist/plugin-sdk/{manager-BEoYPn7R.js → manager-2UZBMCc7.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-CMeLwose.js +15 -0
- package/dist/plugin-sdk/{outbound-ByOw1K6W.js → outbound-Ba0QUI5h.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-BzVhxRRw.js → outbound-attachment-B1Laso-8.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DBjLbIX_.js → path-alias-guards-C7Vm5DZ1.js} +1 -1
- package/dist/plugin-sdk/{paths-Dpg3qxcl.js → paths-DopV9PQG.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-DIxXkGJf.js → pi-embedded-helpers-DnA_OCzP.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-DM_2uFtj.js → pi-model-discovery-DdPqXk8f.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-D8CJhtJY.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-w1dqL_ty.js → pi-tools.before-tool-call.runtime-DxFHiLUE.js} +4 -4
- package/dist/plugin-sdk/{plugins-C4USiH29.js → plugins-CbCt4osF.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-ET-rp8eg.js → proxy-env-C63mMdas.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-ChxOhWF4.js → proxy-fetch-Ch95c_Y2.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-CyOt3RDA.js → pw-ai-DpJk62D4.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-BySdoVR7.js → qmd-manager-Ca-iSfEE.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-C6uS-7lj.js → query-expansion-B_Xe41Ab.js} +4 -4
- package/dist/plugin-sdk/{redact-DjVX-1N3.js → redact-hp9TOulW.js} +1 -1
- package/dist/plugin-sdk/{reply-CTCSeQqW.js → reply-CovBlFea.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-Bw8YNANu.js → resolve-outbound-target-BbrHgyUk.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-C_KCHwvf.js → run-with-concurrency-BR1DXa8T.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-SkO91TZH.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-B0VWK5hm.js +19 -0
- package/dist/plugin-sdk/{send-C0w6xP2x.js → send-BTztm3D2.js} +6 -6
- package/dist/plugin-sdk/{send-qPyNGSe4.js → send-BXpXBwM_.js} +13 -13
- package/dist/plugin-sdk/{send-BZ6nYFZr.js → send-BvAtLLPl.js} +5 -5
- package/dist/plugin-sdk/{send-CFf-1V89.js → send-CWJUuG0i.js} +8 -8
- package/dist/plugin-sdk/{send-CY-Qfwia.js → send-EcglC4cG.js} +7 -7
- package/dist/plugin-sdk/{session-COrvpvUQ.js → session-k256LJZT.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-DZqhtmiv.js → skill-commands-DoRqLzxm.js} +4 -4
- package/dist/plugin-sdk/{skills-Cw_vXEJb.js → skills-QudILG6e.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-DS6vCNSL.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BXrxb2wd.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-Bd6qQ2oT.js +16 -0
- package/dist/plugin-sdk/{store-CMHj6IIw.js → store-BbDQw3g6.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-1uwQbuXj.js +52 -0
- package/dist/plugin-sdk/{tables-CSqrHsKL.js → tables-BhvloMKN.js} +1 -1
- package/dist/plugin-sdk/{thinking-DOnsR_A8.js → thinking-URzkT-3p.js} +7 -7
- package/dist/plugin-sdk/{tokens-DgNRBwIg.js → tokens-B1PW5Ayy.js} +1 -1
- package/dist/plugin-sdk/{tool-images-Gk_-0y2N.js → tool-images-xpqbP6RR.js} +2 -2
- package/dist/plugin-sdk/web-B74yhL2N.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-xcleMoMv.js → whatsapp-actions-RcZ6vp61.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{pw-ai-CmphSzHx.js → pw-ai-GcYO6HPE.js} +1 -1
- package/dist/{slash-dispatch.runtime-131yup2e.js → slash-dispatch.runtime-Dh053pQK.js} +6 -6
- package/dist/{subagent-registry-runtime-DbSf_Je6.js → subagent-registry-runtime-DSi5mnCQ.js} +6 -6
- package/dist/{web-MR9d7KyB.js → web-1hWJDzNA.js} +6 -6
- package/package.json +1 -1
- package/scripts/create-instance.sh +104 -71
- package/dist/plugin-sdk/accounts-CJWOBzwB.js +0 -35
- package/dist/plugin-sdk/accounts-DP1-L-QS.js +0 -288
- package/dist/plugin-sdk/accounts-DZhWlEg3.js +0 -46
- package/dist/plugin-sdk/active-listener-B_sLJTXM.js +0 -50
- package/dist/plugin-sdk/api-key-rotation-BXnNsojA.js +0 -181
- package/dist/plugin-sdk/audio-preflight-DGEUDxxR.js +0 -69
- package/dist/plugin-sdk/audio-transcription-runner-DkoPNPYt.js +0 -2176
- package/dist/plugin-sdk/audit-membership-runtime-DSBHHw7o.js +0 -58
- package/dist/plugin-sdk/channel-activity-F3d0yUwy.js +0 -94
- package/dist/plugin-sdk/channel-web-QF7EpjeP.js +0 -2256
- package/dist/plugin-sdk/chrome-BXoCyCkY.js +0 -2415
- package/dist/plugin-sdk/commands-registry-t7cXBTfN.js +0 -1125
- package/dist/plugin-sdk/config-BkEnz2Po.js +0 -17913
- package/dist/plugin-sdk/deliver-B6AG_l67.js +0 -1694
- package/dist/plugin-sdk/deliver-runtime-C5dgvvga.js +0 -32
- package/dist/plugin-sdk/deliver-runtime-D585kJZc.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-Dg4N7PHJ.js +0 -23
- package/dist/plugin-sdk/deps-send-discord.runtime-a_OKY2js.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-0OEwzMQm.js +0 -22
- package/dist/plugin-sdk/deps-send-imessage.runtime-Baxy9TD4.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BM1jRt3G.js +0 -21
- package/dist/plugin-sdk/deps-send-signal.runtime-BwXoCrFl.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-1E3BYRdF.js +0 -19
- package/dist/plugin-sdk/deps-send-slack.runtime-CLmKjgso.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-BKfdBKnZ.js +0 -24
- package/dist/plugin-sdk/deps-send-telegram.runtime-DNCxIflA.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BOTwkbx_.js +0 -57
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-OLwr-9c8.js +0 -57
- package/dist/plugin-sdk/diagnostic-CsP-lEkI.js +0 -319
- package/dist/plugin-sdk/errors-DaiAM-yU.js +0 -54
- package/dist/plugin-sdk/fetch-guard-DETCcJzQ.js +0 -156
- package/dist/plugin-sdk/fs-safe-B8y811FR.js +0 -352
- package/dist/plugin-sdk/image-DjTEkYZE.js +0 -2310
- package/dist/plugin-sdk/image-ops-BSiMpAw4.js +0 -584
- package/dist/plugin-sdk/image-runtime-6xPp8m5a.js +0 -25
- package/dist/plugin-sdk/image-runtime-BFm45j49.js +0 -25
- package/dist/plugin-sdk/ir-DQ7_HbvK.js +0 -1296
- package/dist/plugin-sdk/local-roots-BUP4YBmR.js +0 -186
- package/dist/plugin-sdk/logger-CZY9KIoY.js +0 -1163
- package/dist/plugin-sdk/login-BxEKLlCo.js +0 -57
- package/dist/plugin-sdk/login-qr-BQIpMPr9.js +0 -320
- package/dist/plugin-sdk/manager-I6KbPihW.js +0 -3917
- package/dist/plugin-sdk/manager-runtime-CFfYYWIQ.js +0 -15
- package/dist/plugin-sdk/manager-runtime-DxclHQ4U.js +0 -15
- package/dist/plugin-sdk/outbound-NS6UHnB6.js +0 -212
- package/dist/plugin-sdk/outbound-attachment-Dy6fyf6H.js +0 -19
- package/dist/plugin-sdk/path-alias-guards-sWayacde.js +0 -43
- package/dist/plugin-sdk/paths-vTM3Lh3X.js +0 -166
- package/dist/plugin-sdk/pi-embedded-helpers-1R1gu7eX.js +0 -9627
- package/dist/plugin-sdk/pi-model-discovery-runtime-BuzvkvNR.js +0 -8
- package/dist/plugin-sdk/pi-model-discovery-runtime-Do9o-dUd.js +0 -8
- package/dist/plugin-sdk/pi-model-discovery-v-XPUOOf.js +0 -134
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D4sFsIks.js +0 -354
- package/dist/plugin-sdk/plugins-DeBZB9l_.js +0 -864
- package/dist/plugin-sdk/proxy-fetch-uDXGKG3Z.js +0 -38
- package/dist/plugin-sdk/pw-ai-DEOmCSSC.js +0 -1938
- package/dist/plugin-sdk/qmd-manager-HyYKoEch.js +0 -1448
- package/dist/plugin-sdk/query-expansion-CeyKUeDW.js +0 -1011
- package/dist/plugin-sdk/redact-Bvxt1T_Q.js +0 -319
- package/dist/plugin-sdk/reply-DAo_Jt8K.js +0 -97916
- package/dist/plugin-sdk/resolve-outbound-target-B42qgQS9.js +0 -40
- package/dist/plugin-sdk/run-with-concurrency-Bt_ks0Qa.js +0 -1994
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-B6W989eF.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxgRDkhc.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-c_GDFy37.js +0 -19
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-elOqrkfg.js +0 -19
- package/dist/plugin-sdk/send-CQpMudwO.js +0 -2587
- package/dist/plugin-sdk/send-DQHLzVyO.js +0 -414
- package/dist/plugin-sdk/send-DTB24bEF.js +0 -3135
- package/dist/plugin-sdk/send-DfHadjZ_.js +0 -503
- package/dist/plugin-sdk/send-XXlW2iny.js +0 -540
- package/dist/plugin-sdk/session-6TF6MyaC.js +0 -169
- package/dist/plugin-sdk/skill-commands-CkGeFUMl.js +0 -342
- package/dist/plugin-sdk/skills-CBkHBYPq.js +0 -1428
- package/dist/plugin-sdk/slash-commands.runtime-CxliuGaP.js +0 -13
- package/dist/plugin-sdk/slash-commands.runtime-D67JLweo.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DFaeYlJQ.js +0 -52
- package/dist/plugin-sdk/slash-dispatch.runtime-DvcpvCJ0.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-0M0OLCxq.js +0 -16
- package/dist/plugin-sdk/slash-skill-commands.runtime-BM1x3azR.js +0 -16
- package/dist/plugin-sdk/ssrf-cFtplYtS.js +0 -202
- package/dist/plugin-sdk/store-5nyxY3WU.js +0 -81
- package/dist/plugin-sdk/subagent-registry-runtime-1lbDyRzz.js +0 -52
- package/dist/plugin-sdk/subagent-registry-runtime-DCtmDwna.js +0 -52
- package/dist/plugin-sdk/tables-C47P4GTN.js +0 -55
- package/dist/plugin-sdk/target-errors-Blia4S69.js +0 -195
- package/dist/plugin-sdk/thinking-Bo2eosVa.js +0 -1206
- package/dist/plugin-sdk/tokens-BDr0Z9o3.js +0 -52
- package/dist/plugin-sdk/tool-images-eEfOVkzf.js +0 -274
- package/dist/plugin-sdk/web-BLyT64pW.js +0 -56
- package/dist/plugin-sdk/web-CVxZbXyH.js +0 -56
- package/dist/plugin-sdk/whatsapp-actions-Bw0H9g-n.js +0 -80
|
@@ -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-uTRAmQ4n.js";
|
|
12
|
+
import "./chrome-D45SyhQL.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-DAOPwVXi.js";
|
|
24
|
+
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-B-UvoDjZ.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-DZbSWT9E.js → audio-transcription-runner-B-UvoDjZ.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-DAOPwVXi.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
|
+
c2101e9aa079fd4883f2065a79f48608285936dab5e241cdb2aac7ced5623089
|
|
@@ -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, { WebSocketServer } from "ws";
|
|
16
|
+
import WebSocket$1, { 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.OPEN;
|
|
595
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket$1.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.OPEN) throw new Error("Chrome extension not connected");
|
|
647
|
+
if (!ws || ws.readyState !== WebSocket$1.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.OPEN) continue;
|
|
664
|
+
if (ws.readyState !== WebSocket$1.OPEN) continue;
|
|
665
665
|
ws.send(msg);
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
668
|
const sendResponseToCdp = (ws, res) => {
|
|
669
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
669
|
+
if (ws.readyState !== WebSocket$1.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.OPEN) {
|
|
923
|
+
if (extensionWs && extensionWs.readyState !== WebSocket$1.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.OPEN) return;
|
|
956
|
+
if (ws.readyState !== WebSocket$1.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(wsUrl, {
|
|
1312
|
+
return new WebSocket$1(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-uTRAmQ4n.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-B9cys0EZ.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-uTRAmQ4n.js";
|
|
14
|
+
import "./chrome-D45SyhQL.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-CIZqFAqb.js → deps-send-whatsapp.runtime-DvTL2tzN.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-DYU79yGe.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-B9cys0EZ.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-uTRAmQ4n.js";
|
|
20
|
+
import "./chrome-D45SyhQL.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-DAOPwVXi.js";
|
|
32
|
+
import "./audio-transcription-runner-B-UvoDjZ.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-1hWJDzNA.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-DYU79yGe.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-B9cys0EZ.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-uTRAmQ4n.js";
|
|
20
|
+
import "./chrome-D45SyhQL.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-DAOPwVXi.js";
|
|
32
|
+
import "./audio-transcription-runner-B-UvoDjZ.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-uTRAmQ4n.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-uTRAmQ4n.js";
|
|
12
|
+
import "./chrome-D45SyhQL.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-DAOPwVXi.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-B9cys0EZ.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-uTRAmQ4n.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-D45SyhQL.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-DAOPwVXi.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-B-UvoDjZ.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, { WebSocket
|
|
72
|
+
import WebSocket$1, { WebSocket } 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
|
|
8213
|
+
this.ws = new WebSocket(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
|
|
8409
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket.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
|
|
8451
|
+
if (!this.ws || this.ws.readyState !== WebSocket.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-DhaQJ0pI.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-DSi5mnCQ.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-DhaQJ0pI.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-DhaQJ0pI.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-wlCLVvVv.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-5FEeDooz.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-DvTL2tzN.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(url, { agent: wsAgent });
|
|
68881
|
+
return new WebSocket$1(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-Dh053pQK.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-5FEeDooz.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-1hWJDzNA.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.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
92468
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.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.OPEN;
|
|
92485
|
+
return this.ws !== null && this.ws.readyState === WebSocket$1.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.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
92495
|
+
if (this.ws.readyState === WebSocket$1.OPEN || this.ws.readyState === WebSocket$1.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(this.wsUrl, { headers: {
|
|
92505
|
+
const socket = new WebSocket$1(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-D45SyhQL.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-GcYO6HPE.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-GcYO6HPE.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-BR1DXa8T.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-C1j7HSL0.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -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-BR1DXa8T.js";
|
|
2
|
+
import { Tr as formatCliCommand } from "./config-CHQrpx-Q.js";
|
|
3
|
+
import { B as success, G as getChildLogger, I as info, j as defaultRuntime, m as jidToE164, y as resolveUserPath } from "./logger-DHIIvMxj.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";
|
|
@@ -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-BR1DXa8T.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-C1j7HSL0.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { at as DEFAULT_ACCOUNT_ID } from "./run-with-concurrency-
|
|
2
|
-
import { Tr as formatCliCommand } from "./config-
|
|
1
|
+
import { at as DEFAULT_ACCOUNT_ID } from "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import { Tr as formatCliCommand } from "./config-CHQrpx-Q.js";
|
|
3
3
|
import crypto from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/logging/redact-identifier.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { Ht as normalizeProviderId } from "./config-CHQrpx-Q.js";
|
|
2
|
+
import { r as formatErrorMessage } from "./errors-CtMWwS2Z.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/gemini-auth.ts
|
|
5
5
|
/**
|