openclaw-multi-auto 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{audio-preflight-C58LeYZM.js → audio-preflight-BMvgEQ5j.js} +4 -4
- package/dist/{audio-transcription-runner-B8jbozH5.js → audio-transcription-runner-gLFfz8fr.js} +1 -1
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-CRBG2YP_.js → chrome-DxxEKrY7.js} +8 -8
- package/dist/{deliver-ChbFOwjw.js → deliver-DbdywYJE.js} +1 -1
- package/dist/{deliver-runtime-B80mXYrL.js → deliver-runtime-BFs7iAZF.js} +3 -3
- package/dist/{deps-send-whatsapp.runtime-UBgpoWg9.js → deps-send-whatsapp.runtime-DK8jqd14.js} +7 -7
- package/dist/{image-C7RmnYxa.js → image-eT7Y-nP5.js} +1 -1
- package/dist/{image-runtime-DtMbm7AR.js → image-runtime-BcAK3n8a.js} +3 -3
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{pi-embedded-BC_GWGuw.js → pi-embedded-BQQa91aA.js} +24 -24
- package/dist/{pi-embedded-helpers-CbIShbOM.js → pi-embedded-helpers-CLXm10bV.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-BXnNsojA.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/discord.js +6 -6
- 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/{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/mattermost.js +3 -3
- 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-sWayacde.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-uDXGKG3Z.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-Bvxt1T_Q.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-BDr0Z9o3.js → tokens-B1PW5Ayy.js} +1 -1
- package/dist/plugin-sdk/{tool-images-eEfOVkzf.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-D2wlMJtN.js → pw-ai-DNMjFMqH.js} +1 -1
- package/dist/{slash-dispatch.runtime-CMK_EPYG.js → slash-dispatch.runtime-B9Ygtzi4.js} +6 -6
- package/dist/{subagent-registry-runtime-DdGrQBnQ.js → subagent-registry-runtime-DL1Wv7nA.js} +6 -6
- package/dist/{web-igmw_EhT.js → web-Btj-e8kN.js} +6 -6
- package/package.json +2 -4
- package/scripts/install.sh +52 -31
- package/dist/plugin-sdk/deliver-runtime-C5dgvvga.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-Dg4N7PHJ.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-0OEwzMQm.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BM1jRt3G.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-1E3BYRdF.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-DNCxIflA.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-OLwr-9c8.js +0 -57
- package/dist/plugin-sdk/image-runtime-BFm45j49.js +0 -25
- package/dist/plugin-sdk/manager-runtime-DxclHQ4U.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-BuzvkvNR.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxgRDkhc.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-elOqrkfg.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-D67JLweo.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DvcpvCJ0.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-BM1x3azR.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-1lbDyRzz.js +0 -52
- package/dist/plugin-sdk/web-BLyT64pW.js +0 -56
|
@@ -11,8 +11,8 @@ import "./plugins-4Rj4OjLY.js";
|
|
|
11
11
|
import "./accounts-Tgelvk0C.js";
|
|
12
12
|
import "./accounts-C9HcPI9h.js";
|
|
13
13
|
import "./image-ops-BuUnEOE0.js";
|
|
14
|
-
import "./pi-embedded-helpers-
|
|
15
|
-
import "./chrome-
|
|
14
|
+
import "./pi-embedded-helpers-CLXm10bV.js";
|
|
15
|
+
import "./chrome-DxxEKrY7.js";
|
|
16
16
|
import "./frontmatter-BkTfEZ93.js";
|
|
17
17
|
import "./skills-7ODkHQYp.js";
|
|
18
18
|
import "./path-alias-guards-BzvdLvTI.js";
|
|
@@ -24,8 +24,8 @@ import "./store-D89wDcz9.js";
|
|
|
24
24
|
import "./accounts-C_lW3Ag9.js";
|
|
25
25
|
import "./paths-Bkr-BCxW.js";
|
|
26
26
|
import "./tool-images-RZdHiZcG.js";
|
|
27
|
-
import "./image-
|
|
28
|
-
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
27
|
+
import "./image-eT7Y-nP5.js";
|
|
28
|
+
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-gLFfz8fr.js";
|
|
29
29
|
import "./fetch-DuraYswo.js";
|
|
30
30
|
import "./fetch-guard-DWr0d00H.js";
|
|
31
31
|
import "./api-key-rotation-BJpKWXy0.js";
|
package/dist/{audio-transcription-runner-B8jbozH5.js → audio-transcription-runner-gLFfz8fr.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { _ as runExec } from "./workspace-U-DyR64O.js";
|
|
|
4
4
|
import { M as resolveApiKeyForProvider, X as loadConfig, at as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, c as normalizeProviderId, ct as resolveIMessageAttachmentRoots, g as normalizeGoogleModelId, ir as resolveOpenClawAgentDir, j as requireApiKey, ot as isInboundPathAllowed, st as mergeInboundPathRoots } from "./model-selection-Dna0Gz1k.js";
|
|
5
5
|
import { _ as normalizeChatType } from "./plugins-4Rj4OjLY.js";
|
|
6
6
|
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-BuUnEOE0.js";
|
|
7
|
-
import { t as describeImageWithModel, w as ensureOpenClawModelsJson } from "./image-
|
|
7
|
+
import { t as describeImageWithModel, w as ensureOpenClawModelsJson } from "./image-eT7Y-nP5.js";
|
|
8
8
|
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-DuraYswo.js";
|
|
9
9
|
import { n as fetchWithTimeout } from "./fetch-timeout-Wgx3OXYj.js";
|
|
10
10
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-DWr0d00H.js";
|
package/dist/build-info.json
CHANGED
|
@@ -8,19 +8,19 @@ import "../../github-copilot-token-BDioPmd6.js";
|
|
|
8
8
|
import { a as isGatewayStartupEvent } from "../../legacy-names-DOC03BkU.js";
|
|
9
9
|
import "../../thinking-BeGmb5k6.js";
|
|
10
10
|
import { n as SILENT_REPLY_TOKEN } from "../../tokens-q32vI39c.js";
|
|
11
|
-
import { a as agentCommand, o as createDefaultDeps } from "../../pi-embedded-
|
|
11
|
+
import { a as agentCommand, o as createDefaultDeps } from "../../pi-embedded-BQQa91aA.js";
|
|
12
12
|
import "../../plugins-4Rj4OjLY.js";
|
|
13
13
|
import "../../accounts-Tgelvk0C.js";
|
|
14
14
|
import "../../send-6lz6rNVP.js";
|
|
15
15
|
import "../../send-PE6cwoTe.js";
|
|
16
|
-
import "../../deliver-
|
|
16
|
+
import "../../deliver-DbdywYJE.js";
|
|
17
17
|
import "../../diagnostic-Co6Kghr-.js";
|
|
18
18
|
import "../../accounts-C9HcPI9h.js";
|
|
19
19
|
import "../../image-ops-BuUnEOE0.js";
|
|
20
20
|
import "../../send-BHTiZcH3.js";
|
|
21
21
|
import "../../pi-model-discovery-Dymwdjt0.js";
|
|
22
|
-
import { Dt as resolveMainSessionKey, J as updateSessionStore, Tt as resolveAgentMainSessionKey, W as loadSessionStore } from "../../pi-embedded-helpers-
|
|
23
|
-
import "../../chrome-
|
|
22
|
+
import { Dt as resolveMainSessionKey, J as updateSessionStore, Tt as resolveAgentMainSessionKey, W as loadSessionStore } from "../../pi-embedded-helpers-CLXm10bV.js";
|
|
23
|
+
import "../../chrome-DxxEKrY7.js";
|
|
24
24
|
import "../../frontmatter-BkTfEZ93.js";
|
|
25
25
|
import "../../skills-7ODkHQYp.js";
|
|
26
26
|
import "../../path-alias-guards-BzvdLvTI.js";
|
|
@@ -32,8 +32,8 @@ import "../../store-D89wDcz9.js";
|
|
|
32
32
|
import "../../accounts-C_lW3Ag9.js";
|
|
33
33
|
import { s as resolveStorePath } from "../../paths-Bkr-BCxW.js";
|
|
34
34
|
import "../../tool-images-RZdHiZcG.js";
|
|
35
|
-
import "../../image-
|
|
36
|
-
import "../../audio-transcription-runner-
|
|
35
|
+
import "../../image-eT7Y-nP5.js";
|
|
36
|
+
import "../../audio-transcription-runner-gLFfz8fr.js";
|
|
37
37
|
import "../../fetch-DuraYswo.js";
|
|
38
38
|
import "../../fetch-guard-DWr0d00H.js";
|
|
39
39
|
import "../../api-key-rotation-BJpKWXy0.js";
|
|
@@ -8,19 +8,19 @@ import "../../github-copilot-token-BDioPmd6.js";
|
|
|
8
8
|
import "../../legacy-names-DOC03BkU.js";
|
|
9
9
|
import "../../thinking-BeGmb5k6.js";
|
|
10
10
|
import "../../tokens-q32vI39c.js";
|
|
11
|
-
import "../../pi-embedded-
|
|
11
|
+
import "../../pi-embedded-BQQa91aA.js";
|
|
12
12
|
import "../../plugins-4Rj4OjLY.js";
|
|
13
13
|
import "../../accounts-Tgelvk0C.js";
|
|
14
14
|
import "../../send-6lz6rNVP.js";
|
|
15
15
|
import "../../send-PE6cwoTe.js";
|
|
16
|
-
import "../../deliver-
|
|
16
|
+
import "../../deliver-DbdywYJE.js";
|
|
17
17
|
import "../../diagnostic-Co6Kghr-.js";
|
|
18
18
|
import "../../accounts-C9HcPI9h.js";
|
|
19
19
|
import "../../image-ops-BuUnEOE0.js";
|
|
20
20
|
import "../../send-BHTiZcH3.js";
|
|
21
21
|
import "../../pi-model-discovery-Dymwdjt0.js";
|
|
22
|
-
import { dt as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-
|
|
23
|
-
import "../../chrome-
|
|
22
|
+
import { dt as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-CLXm10bV.js";
|
|
23
|
+
import "../../chrome-DxxEKrY7.js";
|
|
24
24
|
import "../../frontmatter-BkTfEZ93.js";
|
|
25
25
|
import "../../skills-7ODkHQYp.js";
|
|
26
26
|
import "../../path-alias-guards-BzvdLvTI.js";
|
|
@@ -32,8 +32,8 @@ import "../../store-D89wDcz9.js";
|
|
|
32
32
|
import "../../accounts-C_lW3Ag9.js";
|
|
33
33
|
import "../../paths-Bkr-BCxW.js";
|
|
34
34
|
import "../../tool-images-RZdHiZcG.js";
|
|
35
|
-
import "../../image-
|
|
36
|
-
import "../../audio-transcription-runner-
|
|
35
|
+
import "../../image-eT7Y-nP5.js";
|
|
36
|
+
import "../../audio-transcription-runner-gLFfz8fr.js";
|
|
37
37
|
import "../../fetch-DuraYswo.js";
|
|
38
38
|
import "../../fetch-guard-DWr0d00H.js";
|
|
39
39
|
import "../../api-key-rotation-BJpKWXy0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
36d0e7810c5bd57192dc6fe75793429eed27a44228777a3ae48a2b0168b32c49
|
|
@@ -14,7 +14,7 @@ import { createHmac } from "node:crypto";
|
|
|
14
14
|
import net from "node:net";
|
|
15
15
|
import http, { createServer } from "node:http";
|
|
16
16
|
import https from "node:https";
|
|
17
|
-
import WebSocket
|
|
17
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
18
18
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
19
19
|
|
|
20
20
|
//#region src/browser/constants.ts
|
|
@@ -593,7 +593,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
593
593
|
let extensionWs = null;
|
|
594
594
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
595
595
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
596
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket
|
|
596
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
597
597
|
const hasConnectedTargets = () => connectedTargets.size > 0;
|
|
598
598
|
let extensionDisconnectCleanupTimer = null;
|
|
599
599
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
@@ -645,7 +645,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
645
645
|
let nextExtensionId = 1;
|
|
646
646
|
const sendToExtension = async (payload) => {
|
|
647
647
|
const ws = extensionWs;
|
|
648
|
-
if (!ws || ws.readyState !== WebSocket
|
|
648
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
649
649
|
ws.send(JSON.stringify(payload));
|
|
650
650
|
return await new Promise((resolve, reject) => {
|
|
651
651
|
const timer = setTimeout(() => {
|
|
@@ -662,12 +662,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
662
662
|
const broadcastToCdpClients = (evt) => {
|
|
663
663
|
const msg = JSON.stringify(evt);
|
|
664
664
|
for (const ws of cdpClients) {
|
|
665
|
-
if (ws.readyState !== WebSocket
|
|
665
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
666
666
|
ws.send(msg);
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
const sendResponseToCdp = (ws, res) => {
|
|
670
|
-
if (ws.readyState !== WebSocket
|
|
670
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
671
671
|
ws.send(JSON.stringify(res));
|
|
672
672
|
};
|
|
673
673
|
const dropConnectedTargetSession = (sessionId) => {
|
|
@@ -921,7 +921,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
921
921
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
922
922
|
return;
|
|
923
923
|
}
|
|
924
|
-
if (extensionWs && extensionWs.readyState !== WebSocket
|
|
924
|
+
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
925
925
|
try {
|
|
926
926
|
extensionWs.terminate();
|
|
927
927
|
} catch {}
|
|
@@ -954,7 +954,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
954
954
|
clearExtensionDisconnectCleanupTimer();
|
|
955
955
|
flushExtensionReconnectWaiters(true);
|
|
956
956
|
const ping = setInterval(() => {
|
|
957
|
-
if (ws.readyState !== WebSocket
|
|
957
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
958
958
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
959
959
|
}, 5e3);
|
|
960
960
|
ws.on("message", (data) => {
|
|
@@ -1310,7 +1310,7 @@ function openCdpWebSocket(wsUrl, opts) {
|
|
|
1310
1310
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
1311
1311
|
const handshakeTimeoutMs = typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : CDP_WS_HANDSHAKE_TIMEOUT_MS;
|
|
1312
1312
|
const agent = getDirectAgentForCdp(wsUrl);
|
|
1313
|
-
return new WebSocket
|
|
1313
|
+
return new WebSocket(wsUrl, {
|
|
1314
1314
|
handshakeTimeout: handshakeTimeoutMs,
|
|
1315
1315
|
...Object.keys(headers).length ? { headers } : {},
|
|
1316
1316
|
...agent ? { agent } : {}
|
|
@@ -8,7 +8,7 @@ import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-q32vI3
|
|
|
8
8
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-4Rj4OjLY.js";
|
|
9
9
|
import { n as generateSecureUuid } from "./secure-random-CXrBi7Jq.js";
|
|
10
10
|
import { r as parseTelegramTarget } from "./targets-BiE9e9-P.js";
|
|
11
|
-
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, ct as parseInlineDirectives, i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
11
|
+
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, ct as parseInlineDirectives, i as isMessagingToolDuplicate } from "./pi-embedded-helpers-CLXm10bV.js";
|
|
12
12
|
import { i as getAgentScopedMediaLocalRoots } from "./fetch-DuraYswo.js";
|
|
13
13
|
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-B83looB-.js";
|
|
14
14
|
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-dfu6_rgf.js";
|
|
@@ -10,11 +10,11 @@ import "./thinking-BeGmb5k6.js";
|
|
|
10
10
|
import "./tokens-q32vI39c.js";
|
|
11
11
|
import "./plugins-4Rj4OjLY.js";
|
|
12
12
|
import "./accounts-Tgelvk0C.js";
|
|
13
|
-
import { t as deliverOutboundPayloads } from "./deliver-
|
|
13
|
+
import { t as deliverOutboundPayloads } from "./deliver-DbdywYJE.js";
|
|
14
14
|
import "./accounts-C9HcPI9h.js";
|
|
15
15
|
import "./image-ops-BuUnEOE0.js";
|
|
16
|
-
import "./pi-embedded-helpers-
|
|
17
|
-
import "./chrome-
|
|
16
|
+
import "./pi-embedded-helpers-CLXm10bV.js";
|
|
17
|
+
import "./chrome-DxxEKrY7.js";
|
|
18
18
|
import "./frontmatter-BkTfEZ93.js";
|
|
19
19
|
import "./skills-7ODkHQYp.js";
|
|
20
20
|
import "./path-alias-guards-BzvdLvTI.js";
|
package/dist/{deps-send-whatsapp.runtime-UBgpoWg9.js → deps-send-whatsapp.runtime-DK8jqd14.js}
RENAMED
|
@@ -8,19 +8,19 @@ import "./github-copilot-token-BDioPmd6.js";
|
|
|
8
8
|
import "./legacy-names-DOC03BkU.js";
|
|
9
9
|
import "./thinking-BeGmb5k6.js";
|
|
10
10
|
import "./tokens-q32vI39c.js";
|
|
11
|
-
import "./pi-embedded-
|
|
11
|
+
import "./pi-embedded-BQQa91aA.js";
|
|
12
12
|
import "./plugins-4Rj4OjLY.js";
|
|
13
13
|
import "./accounts-Tgelvk0C.js";
|
|
14
14
|
import "./send-6lz6rNVP.js";
|
|
15
15
|
import "./send-PE6cwoTe.js";
|
|
16
|
-
import "./deliver-
|
|
16
|
+
import "./deliver-DbdywYJE.js";
|
|
17
17
|
import "./diagnostic-Co6Kghr-.js";
|
|
18
18
|
import "./accounts-C9HcPI9h.js";
|
|
19
19
|
import "./image-ops-BuUnEOE0.js";
|
|
20
20
|
import "./send-BHTiZcH3.js";
|
|
21
21
|
import "./pi-model-discovery-Dymwdjt0.js";
|
|
22
|
-
import "./pi-embedded-helpers-
|
|
23
|
-
import "./chrome-
|
|
22
|
+
import "./pi-embedded-helpers-CLXm10bV.js";
|
|
23
|
+
import "./chrome-DxxEKrY7.js";
|
|
24
24
|
import "./frontmatter-BkTfEZ93.js";
|
|
25
25
|
import "./skills-7ODkHQYp.js";
|
|
26
26
|
import "./path-alias-guards-BzvdLvTI.js";
|
|
@@ -32,8 +32,8 @@ import "./store-D89wDcz9.js";
|
|
|
32
32
|
import "./accounts-C_lW3Ag9.js";
|
|
33
33
|
import "./paths-Bkr-BCxW.js";
|
|
34
34
|
import "./tool-images-RZdHiZcG.js";
|
|
35
|
-
import "./image-
|
|
36
|
-
import "./audio-transcription-runner-
|
|
35
|
+
import "./image-eT7Y-nP5.js";
|
|
36
|
+
import "./audio-transcription-runner-gLFfz8fr.js";
|
|
37
37
|
import "./fetch-DuraYswo.js";
|
|
38
38
|
import "./fetch-guard-DWr0d00H.js";
|
|
39
39
|
import "./api-key-rotation-BJpKWXy0.js";
|
|
@@ -55,6 +55,6 @@ import "./query-expansion-CX-1fS52.js";
|
|
|
55
55
|
import { t as sendMessageWhatsApp } from "./outbound-ChDjtuD6.js";
|
|
56
56
|
import "./session-D8ImowSs.js";
|
|
57
57
|
import "./login-CrIwcrVI.js";
|
|
58
|
-
import "./web-
|
|
58
|
+
import "./web-Btj-e8kN.js";
|
|
59
59
|
|
|
60
60
|
export { sendMessageWhatsApp };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-BgYfgkXT.js";
|
|
2
2
|
import { f as isRecord, x as shortenHomeInString } from "./logger-BfjWMCSD.js";
|
|
3
3
|
import { Wn as applyConfigEnvVars, X as loadConfig, _ as normalizeProviders, b as resolveImplicitProviders, ir as resolveOpenClawAgentDir, j as requireApiKey, k as getApiKeyForModel, pr as normalizeSecretInput, v as resolveImplicitBedrockProvider, y as resolveImplicitCopilotProvider } from "./model-selection-Dna0Gz1k.js";
|
|
4
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
4
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-CLXm10bV.js";
|
|
5
5
|
import { n as redactToolDetail } from "./redact-COik8ET1.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
@@ -11,8 +11,8 @@ import "./plugins-4Rj4OjLY.js";
|
|
|
11
11
|
import "./accounts-Tgelvk0C.js";
|
|
12
12
|
import "./accounts-C9HcPI9h.js";
|
|
13
13
|
import "./image-ops-BuUnEOE0.js";
|
|
14
|
-
import "./pi-embedded-helpers-
|
|
15
|
-
import "./chrome-
|
|
14
|
+
import "./pi-embedded-helpers-CLXm10bV.js";
|
|
15
|
+
import "./chrome-DxxEKrY7.js";
|
|
16
16
|
import "./frontmatter-BkTfEZ93.js";
|
|
17
17
|
import "./skills-7ODkHQYp.js";
|
|
18
18
|
import "./path-alias-guards-BzvdLvTI.js";
|
|
@@ -24,6 +24,6 @@ import "./store-D89wDcz9.js";
|
|
|
24
24
|
import "./accounts-C_lW3Ag9.js";
|
|
25
25
|
import "./paths-Bkr-BCxW.js";
|
|
26
26
|
import "./tool-images-RZdHiZcG.js";
|
|
27
|
-
import { t as describeImageWithModel } from "./image-
|
|
27
|
+
import { t as describeImageWithModel } from "./image-eT7Y-nP5.js";
|
|
28
28
|
|
|
29
29
|
export { describeImageWithModel };
|
|
@@ -8,19 +8,19 @@ import "./github-copilot-token-BDioPmd6.js";
|
|
|
8
8
|
import "./legacy-names-DOC03BkU.js";
|
|
9
9
|
import "./thinking-BeGmb5k6.js";
|
|
10
10
|
import "./tokens-q32vI39c.js";
|
|
11
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
11
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-BQQa91aA.js";
|
|
12
12
|
import "./plugins-4Rj4OjLY.js";
|
|
13
13
|
import "./accounts-Tgelvk0C.js";
|
|
14
14
|
import "./send-6lz6rNVP.js";
|
|
15
15
|
import "./send-PE6cwoTe.js";
|
|
16
|
-
import "./deliver-
|
|
16
|
+
import "./deliver-DbdywYJE.js";
|
|
17
17
|
import "./diagnostic-Co6Kghr-.js";
|
|
18
18
|
import "./accounts-C9HcPI9h.js";
|
|
19
19
|
import "./image-ops-BuUnEOE0.js";
|
|
20
20
|
import "./send-BHTiZcH3.js";
|
|
21
21
|
import "./pi-model-discovery-Dymwdjt0.js";
|
|
22
|
-
import "./pi-embedded-helpers-
|
|
23
|
-
import "./chrome-
|
|
22
|
+
import "./pi-embedded-helpers-CLXm10bV.js";
|
|
23
|
+
import "./chrome-DxxEKrY7.js";
|
|
24
24
|
import "./frontmatter-BkTfEZ93.js";
|
|
25
25
|
import "./skills-7ODkHQYp.js";
|
|
26
26
|
import "./path-alias-guards-BzvdLvTI.js";
|
|
@@ -32,8 +32,8 @@ import "./store-D89wDcz9.js";
|
|
|
32
32
|
import "./accounts-C_lW3Ag9.js";
|
|
33
33
|
import "./paths-Bkr-BCxW.js";
|
|
34
34
|
import "./tool-images-RZdHiZcG.js";
|
|
35
|
-
import "./image-
|
|
36
|
-
import "./audio-transcription-runner-
|
|
35
|
+
import "./image-eT7Y-nP5.js";
|
|
36
|
+
import "./audio-transcription-runner-gLFfz8fr.js";
|
|
37
37
|
import "./fetch-DuraYswo.js";
|
|
38
38
|
import "./fetch-guard-DWr0d00H.js";
|
|
39
39
|
import "./api-key-rotation-BJpKWXy0.js";
|
|
@@ -13,15 +13,15 @@ import { a as logWebSelfId, h as resolveAccountEntry, i as getWebAuthAgeMs, m as
|
|
|
13
13
|
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-6lz6rNVP.js";
|
|
14
14
|
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-PE6cwoTe.js";
|
|
15
15
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-CXrBi7Jq.js";
|
|
16
|
-
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-
|
|
16
|
+
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-DbdywYJE.js";
|
|
17
17
|
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-Co6Kghr-.js";
|
|
18
18
|
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-C9HcPI9h.js";
|
|
19
19
|
import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-BiE9e9-P.js";
|
|
20
20
|
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-BuUnEOE0.js";
|
|
21
21
|
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-BHTiZcH3.js";
|
|
22
22
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Dymwdjt0.js";
|
|
23
|
-
import { $ as deliveryContextKey, $t as matchesAnyGlobPattern, A as isTransientHttpError, At as resolveGroupSessionKey, B as parseSessionThreadInfo, Bt as resolveGatewayCredentialsFromConfig, C as isCompactionFailureError, Ct as setSessionRuntimeModel, 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 updateSessionStore, 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 deliveryContextFromSession, Qt as compileGlobPatterns, R as resolveSandboxRuntimeStatus, Rt as ensureBrowserControlAuth, S as isCloudCodeAssistFormatError, St as resolveFreshSessionTotalTokens, T as isFailoverAssistantError, U as resolveAndPersistSessionFile, Ut as applyOwnerOnlyToolPolicy, V as appendAssistantMessageToSessionTranscript, Vt as trimToUndefined$1, W as loadSessionStore, Wt as buildPluginToolGroups, X as isCacheEnabled, Xt as normalizeToolName, Y as updateSessionStoreEntry, Yt as expandToolGroups, Z as resolveCacheTtlMs$1, Zt as resolveToolProfilePolicy, _ as formatBillingErrorMessage, _t as resolveSessionResetPolicy, a as isMessagingToolDuplicateNormalized, an as sanitizeGoogleTurnOrdering, at as capArrayByJsonBytes, b as isAuthAssistantError, bt as DEFAULT_RESET_TRIGGERS, c as extractToolCallsFromAssistant, ct as parseInlineDirectives$1, d as downgradeOpenAIFunctionCallReasoningPairs, dt as hasInterSessionUserProvenance, en as buildBootstrapContextFiles, et as mergeDeliveryContext, f as downgradeOpenAIReasoningBlocks, ft as normalizeInputProvenance, g as formatAssistantErrorText, gt as resolveChannelResetConfig, h as classifyFailoverReason, ht as evaluateSessionFreshness, in as resolveBootstrapTotalMaxChars, it as archiveSessionTranscripts, j as parseImageDimensionError, jt as acquireSessionWriteLock, k as isRawApiErrorPayload, kt as resolveConversationLabel, l as extractToolResultId, lt as INPUT_PROVENANCE_KIND_VALUES, m as BILLING_ERROR_USER_MESSAGE, mt as resolveSessionKey, n as validateGeminiTurns, nn as resolveBootstrapMaxChars, nt as normalizeSessionDeliveryFields, o as normalizeTextForComparison, ot as countToolResults, p as isGoogleModelApi, pt as jsonUtf8Bytes, q as updateLastRoute, qt as mergeAlsoAllowPolicy, r as pickFallbackThinkingLevel, rn as resolveBootstrapPromptTruncationWarningMode, rt as normalizeAccountId$3, s as sanitizeSessionMessagesImages, st as extractToolCallNames, t as validateAnthropicTurns, tn as ensureSessionHeader, tt as normalizeDeliveryContext, u as sanitizeToolCallIdsForCloudCodeAssist, ut as applyInputProvenanceToUserMessage, v as formatRawAssistantErrorForUi, vt as resolveSessionResetType, w as isContextOverflowError, wt as canonicalizeMainSessionAlias, x as isBillingAssistantError, xt as mergeSessionEntry, y as getApiErrorPayloadFingerprint, yt as resolveThreadFlag, z as extractDeliveryInfo, zt as resolveBrowserControlAuth } from "./pi-embedded-helpers-
|
|
24
|
-
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-
|
|
23
|
+
import { $ as deliveryContextKey, $t as matchesAnyGlobPattern, A as isTransientHttpError, At as resolveGroupSessionKey, B as parseSessionThreadInfo, Bt as resolveGatewayCredentialsFromConfig, C as isCompactionFailureError, Ct as setSessionRuntimeModel, 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 updateSessionStore, 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 deliveryContextFromSession, Qt as compileGlobPatterns, R as resolveSandboxRuntimeStatus, Rt as ensureBrowserControlAuth, S as isCloudCodeAssistFormatError, St as resolveFreshSessionTotalTokens, T as isFailoverAssistantError, U as resolveAndPersistSessionFile, Ut as applyOwnerOnlyToolPolicy, V as appendAssistantMessageToSessionTranscript, Vt as trimToUndefined$1, W as loadSessionStore, Wt as buildPluginToolGroups, X as isCacheEnabled, Xt as normalizeToolName, Y as updateSessionStoreEntry, Yt as expandToolGroups, Z as resolveCacheTtlMs$1, Zt as resolveToolProfilePolicy, _ as formatBillingErrorMessage, _t as resolveSessionResetPolicy, a as isMessagingToolDuplicateNormalized, an as sanitizeGoogleTurnOrdering, at as capArrayByJsonBytes, b as isAuthAssistantError, bt as DEFAULT_RESET_TRIGGERS, c as extractToolCallsFromAssistant, ct as parseInlineDirectives$1, d as downgradeOpenAIFunctionCallReasoningPairs, dt as hasInterSessionUserProvenance, en as buildBootstrapContextFiles, et as mergeDeliveryContext, f as downgradeOpenAIReasoningBlocks, ft as normalizeInputProvenance, g as formatAssistantErrorText, gt as resolveChannelResetConfig, h as classifyFailoverReason, ht as evaluateSessionFreshness, in as resolveBootstrapTotalMaxChars, it as archiveSessionTranscripts, j as parseImageDimensionError, jt as acquireSessionWriteLock, k as isRawApiErrorPayload, kt as resolveConversationLabel, l as extractToolResultId, lt as INPUT_PROVENANCE_KIND_VALUES, m as BILLING_ERROR_USER_MESSAGE, mt as resolveSessionKey, n as validateGeminiTurns, nn as resolveBootstrapMaxChars, nt as normalizeSessionDeliveryFields, o as normalizeTextForComparison, ot as countToolResults, p as isGoogleModelApi, pt as jsonUtf8Bytes, q as updateLastRoute, qt as mergeAlsoAllowPolicy, r as pickFallbackThinkingLevel, rn as resolveBootstrapPromptTruncationWarningMode, rt as normalizeAccountId$3, s as sanitizeSessionMessagesImages, st as extractToolCallNames, t as validateAnthropicTurns, tn as ensureSessionHeader, tt as normalizeDeliveryContext, u as sanitizeToolCallIdsForCloudCodeAssist, ut as applyInputProvenanceToUserMessage, v as formatRawAssistantErrorForUi, vt as resolveSessionResetType, w as isContextOverflowError, wt as canonicalizeMainSessionAlias, x as isBillingAssistantError, xt as mergeSessionEntry, y as getApiErrorPayloadFingerprint, yt as resolveThreadFlag, z as extractDeliveryInfo, zt as resolveBrowserControlAuth } from "./pi-embedded-helpers-CLXm10bV.js";
|
|
24
|
+
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-DxxEKrY7.js";
|
|
25
25
|
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-7ODkHQYp.js";
|
|
26
26
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-BzvdLvTI.js";
|
|
27
27
|
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-COik8ET1.js";
|
|
@@ -34,8 +34,8 @@ import { t as resolveIMessageAccount } from "./accounts-C_lW3Ag9.js";
|
|
|
34
34
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-Bkr-BCxW.js";
|
|
35
35
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-uYL2gEou.js";
|
|
36
36
|
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-RZdHiZcG.js";
|
|
37
|
-
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-
|
|
38
|
-
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-
|
|
37
|
+
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-eT7Y-nP5.js";
|
|
38
|
+
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-gLFfz8fr.js";
|
|
39
39
|
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-DuraYswo.js";
|
|
40
40
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-Wgx3OXYj.js";
|
|
41
41
|
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-DWr0d00H.js";
|
|
@@ -72,7 +72,7 @@ import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, Setting
|
|
|
72
72
|
import { EdgeTTS } from "node-edge-tts";
|
|
73
73
|
import { createServer } from "node:http";
|
|
74
74
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
75
|
-
import WebSocket
|
|
75
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
76
76
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
77
77
|
import { createJiti } from "jiti";
|
|
78
78
|
import AjvPkg from "ajv";
|
|
@@ -8213,7 +8213,7 @@ var GatewayClient = class {
|
|
|
8213
8213
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
8214
8214
|
});
|
|
8215
8215
|
}
|
|
8216
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
8216
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
8217
8217
|
this.ws.on("open", () => {
|
|
8218
8218
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
8219
8219
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -8409,7 +8409,7 @@ var GatewayClient = class {
|
|
|
8409
8409
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
8410
8410
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
8411
8411
|
this.connectTimer = setTimeout(() => {
|
|
8412
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
8412
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
8413
8413
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
8414
8414
|
this.ws?.close(1008, "connect challenge timeout");
|
|
8415
8415
|
}, connectChallengeTimeoutMs);
|
|
@@ -8451,7 +8451,7 @@ var GatewayClient = class {
|
|
|
8451
8451
|
return null;
|
|
8452
8452
|
}
|
|
8453
8453
|
async request(method, params, opts) {
|
|
8454
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
8454
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
8455
8455
|
const id = randomUUID();
|
|
8456
8456
|
const frame = {
|
|
8457
8457
|
type: "req",
|
|
@@ -9873,7 +9873,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
9873
9873
|
*/
|
|
9874
9874
|
let deliverRuntimePromise$2 = null;
|
|
9875
9875
|
function loadDeliverRuntime$2() {
|
|
9876
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
9876
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-BFs7iAZF.js");
|
|
9877
9877
|
return deliverRuntimePromise$2;
|
|
9878
9878
|
}
|
|
9879
9879
|
/**
|
|
@@ -11161,7 +11161,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
|
|
|
11161
11161
|
const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
11162
11162
|
let subagentRegistryRuntimePromise = null;
|
|
11163
11163
|
function loadSubagentRegistryRuntime() {
|
|
11164
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
11164
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-DL1Wv7nA.js");
|
|
11165
11165
|
return subagentRegistryRuntimePromise;
|
|
11166
11166
|
}
|
|
11167
11167
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
@@ -14515,7 +14515,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
14515
14515
|
//#region src/media-understanding/echo-transcript.ts
|
|
14516
14516
|
let deliverRuntimePromise$1 = null;
|
|
14517
14517
|
function loadDeliverRuntime$1() {
|
|
14518
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
14518
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-BFs7iAZF.js");
|
|
14519
14519
|
return deliverRuntimePromise$1;
|
|
14520
14520
|
}
|
|
14521
14521
|
const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
|
|
@@ -50947,7 +50947,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
50947
50947
|
const log$10 = createSubsystemLogger("session-maintenance-warning");
|
|
50948
50948
|
let deliverRuntimePromise = null;
|
|
50949
50949
|
function loadDeliverRuntime() {
|
|
50950
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
50950
|
+
deliverRuntimePromise ??= import("./deliver-runtime-BFs7iAZF.js");
|
|
50951
50951
|
return deliverRuntimePromise;
|
|
50952
50952
|
}
|
|
50953
50953
|
function shouldSendWarning() {
|
|
@@ -55924,7 +55924,7 @@ const VISION_PROVIDERS = [
|
|
|
55924
55924
|
];
|
|
55925
55925
|
let imageRuntimePromise = null;
|
|
55926
55926
|
function loadImageRuntime() {
|
|
55927
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
55927
|
+
imageRuntimePromise ??= import("./image-runtime-BcAK3n8a.js");
|
|
55928
55928
|
return imageRuntimePromise;
|
|
55929
55929
|
}
|
|
55930
55930
|
/**
|
|
@@ -57917,7 +57917,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
57917
57917
|
const needsPreflightTranscription = !params.isDirectMessage && params.shouldRequireMention && hasAudioAttachment && !hasTypedText && params.mentionRegexes.length > 0;
|
|
57918
57918
|
let transcript;
|
|
57919
57919
|
if (needsPreflightTranscription) try {
|
|
57920
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
57920
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BMvgEQ5j.js");
|
|
57921
57921
|
const audioUrls = audioAttachments.map((att) => att.url).filter((url) => typeof url === "string" && url.length > 0);
|
|
57922
57922
|
if (audioUrls.length > 0) transcript = await transcribeFirstAudio({
|
|
57923
57923
|
ctx: {
|
|
@@ -65177,7 +65177,7 @@ let slackSenderRuntimePromise = null;
|
|
|
65177
65177
|
let signalSenderRuntimePromise = null;
|
|
65178
65178
|
let imessageSenderRuntimePromise = null;
|
|
65179
65179
|
function loadWhatsAppSenderRuntime() {
|
|
65180
|
-
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-
|
|
65180
|
+
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-DK8jqd14.js");
|
|
65181
65181
|
return whatsappSenderRuntimePromise;
|
|
65182
65182
|
}
|
|
65183
65183
|
function loadTelegramSenderRuntime() {
|
|
@@ -68887,7 +68887,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
68887
68887
|
return super.registerClient(client);
|
|
68888
68888
|
}
|
|
68889
68889
|
createWebSocket(url) {
|
|
68890
|
-
return new WebSocket
|
|
68890
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
68891
68891
|
}
|
|
68892
68892
|
}
|
|
68893
68893
|
return new ProxyGatewayPlugin();
|
|
@@ -77942,7 +77942,7 @@ function loadSlashCommandsRuntime() {
|
|
|
77942
77942
|
return slashCommandsRuntimePromise;
|
|
77943
77943
|
}
|
|
77944
77944
|
function loadSlashDispatchRuntime() {
|
|
77945
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-
|
|
77945
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-B9Ygtzi4.js");
|
|
77946
77946
|
return slashDispatchRuntimePromise;
|
|
77947
77947
|
}
|
|
77948
77948
|
function loadSlashSkillCommandsRuntime() {
|
|
@@ -81311,7 +81311,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
81311
81311
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
81312
81312
|
let preflightTranscript;
|
|
81313
81313
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
81314
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
81314
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BMvgEQ5j.js");
|
|
81315
81315
|
preflightTranscript = await transcribeFirstAudio({
|
|
81316
81316
|
ctx: {
|
|
81317
81317
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -84211,7 +84211,7 @@ function loadWebLoginQr() {
|
|
|
84211
84211
|
return webLoginQrPromise;
|
|
84212
84212
|
}
|
|
84213
84213
|
function loadWebChannel() {
|
|
84214
|
-
webChannelPromise ??= import("./web-
|
|
84214
|
+
webChannelPromise ??= import("./web-Btj-e8kN.js");
|
|
84215
84215
|
return webChannelPromise;
|
|
84216
84216
|
}
|
|
84217
84217
|
function loadWhatsAppActions() {
|
|
@@ -92474,7 +92474,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
92474
92474
|
* Throws if the connection is not open.
|
|
92475
92475
|
*/
|
|
92476
92476
|
send(event) {
|
|
92477
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
92477
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
92478
92478
|
this.ws.send(JSON.stringify(event));
|
|
92479
92479
|
}
|
|
92480
92480
|
/**
|
|
@@ -92491,7 +92491,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
92491
92491
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
92492
92492
|
*/
|
|
92493
92493
|
isConnected() {
|
|
92494
|
-
return this.ws !== null && this.ws.readyState === WebSocket
|
|
92494
|
+
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
92495
92495
|
}
|
|
92496
92496
|
/**
|
|
92497
92497
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -92501,7 +92501,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
92501
92501
|
this._cancelRetryTimer();
|
|
92502
92502
|
if (this.ws) {
|
|
92503
92503
|
this.ws.removeAllListeners();
|
|
92504
|
-
if (this.ws.readyState === WebSocket
|
|
92504
|
+
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
92505
92505
|
this.ws = null;
|
|
92506
92506
|
}
|
|
92507
92507
|
}
|
|
@@ -92511,7 +92511,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
92511
92511
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
92512
92512
|
return;
|
|
92513
92513
|
}
|
|
92514
|
-
const socket = new WebSocket
|
|
92514
|
+
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
92515
92515
|
Authorization: `Bearer ${this.apiKey}`,
|
|
92516
92516
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
92517
92517
|
} });
|
|
@@ -9,7 +9,7 @@ import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug
|
|
|
9
9
|
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-4Rj4OjLY.js";
|
|
10
10
|
import { t as generateSecureToken } from "./secure-random-CXrBi7Jq.js";
|
|
11
11
|
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-BuUnEOE0.js";
|
|
12
|
-
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-
|
|
12
|
+
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-DxxEKrY7.js";
|
|
13
13
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-7ODkHQYp.js";
|
|
14
14
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-BzvdLvTI.js";
|
|
15
15
|
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-xt401nuk.js";
|
|
@@ -1278,7 +1278,7 @@ function isModuleNotFoundError(err) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
async function loadPwAiModule(mode) {
|
|
1280
1280
|
try {
|
|
1281
|
-
return await import("./pw-ai-
|
|
1281
|
+
return await import("./pw-ai-DNMjFMqH.js");
|
|
1282
1282
|
} catch (err) {
|
|
1283
1283
|
if (mode === "soft") return null;
|
|
1284
1284
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3644,7 +3644,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3644
3644
|
//#region src/browser/server-context.reset.ts
|
|
3645
3645
|
async function closePlaywrightBrowserConnection() {
|
|
3646
3646
|
try {
|
|
3647
|
-
await (await import("./pw-ai-
|
|
3647
|
+
await (await import("./pw-ai-DNMjFMqH.js")).closePlaywrightBrowserConnection();
|
|
3648
3648
|
} catch {}
|
|
3649
3649
|
}
|
|
3650
3650
|
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
|