winclaw 2026.4.7 → 2026.4.9
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-BYLUYfqy.js → audio-preflight-BGqZ89hb.js} +4 -4
- package/dist/{audio-transcription-runner-CFQlwuzM.js → audio-transcription-runner-DYNg5Naa.js} +1 -1
- package/dist/build-info.json +3 -3
- 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-Bba_wP3w.js → chrome-CecoPcma.js} +8 -8
- package/dist/{deliver-CcdmhwPl.js → deliver-6BwkZx1I.js} +1 -1
- package/dist/{deliver-runtime-fehsuhfN.js → deliver-runtime-guJNzNEk.js} +3 -3
- package/dist/{deps-send-whatsapp.runtime-DJAsJgdo.js → deps-send-whatsapp.runtime-DDQQmVsc.js} +7 -7
- package/dist/{image-BGj83cWk.js → image-f-oAxq2Q.js} +1 -1
- package/dist/{image-runtime-Dghm6p6S.js → image-runtime-VBHn-i7b.js} +3 -3
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{pi-embedded-DVbRjCDp.js → pi-embedded-DOoz8kXI.js} +24 -24
- package/dist/{pi-embedded-helpers-BhY3qP27.js → pi-embedded-helpers--Z_8lnOv.js} +3 -3
- package/dist/plugin-sdk/{accounts-BT5EpQaE.js → accounts-1bzzEqCq.js} +3 -3
- package/dist/plugin-sdk/{accounts-SWOJf0Zr.js → accounts-D5Ytgn1j.js} +2 -2
- package/dist/plugin-sdk/{accounts-Bo_L4GB8.js → accounts-KQqup-wT.js} +2 -2
- package/dist/plugin-sdk/{active-listener-BDBDp0yG.js → active-listener-Cc-BM45w.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-URWIRpND.js → api-key-rotation-Cb3E9LBK.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-Dn6BLcm6.js → audio-preflight-Dikq_pYB.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-VqrwvGts.js → audio-transcription-runner-u3cAlUX5.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-B42TeQQ9.js → audit-membership-runtime-Zn07K1la.js} +2 -2
- package/dist/plugin-sdk/bluebubbles.js +2 -2
- package/dist/plugin-sdk/{channel-activity-KQaZcgcJ.js → channel-activity-BN0W3tud.js} +3 -3
- package/dist/plugin-sdk/{channel-web-CmWlFwt_.js → channel-web-CGNilPIw.js} +18 -18
- package/dist/plugin-sdk/{chrome-BM9KqEvf.js → chrome-CtiAt3Zb.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-7UE1vytf.js → commands-registry-DlifF3We.js} +4 -4
- package/dist/plugin-sdk/compat.js +50 -50
- package/dist/plugin-sdk/{config-BnAVPu39.js → config-B4-Hm0aM.js} +7 -7
- package/dist/plugin-sdk/{deliver-f21NdY9q.js → deliver-mx2VtnYT.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-oGAUVVor.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-D1LGNWgt.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-mLkXTidY.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BKdi95iT.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-Ctx2XGy0.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-B5QfK_Jx.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-CAxGUPvj.js +57 -0
- package/dist/plugin-sdk/{diagnostic-B36srN4X.js → diagnostic-CAKNuXMX.js} +2 -2
- package/dist/plugin-sdk/{errors-2-v56wDo.js → errors-DAfLLw2G.js} +1 -1
- package/dist/plugin-sdk/feishu.js +2 -2
- package/dist/plugin-sdk/{fetch-guard-Dj1NjmMd.js → fetch-guard-8G2MckwA.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DtWXvEVq.js → fs-safe-Cn3EBd8y.js} +3 -3
- package/dist/plugin-sdk/{image-CcYkUHIa.js → image-CBt_FCcy.js} +6 -6
- package/dist/plugin-sdk/{image-ops-C-LvNuJZ.js → image-ops-CxVlbwRv.js} +2 -2
- package/dist/plugin-sdk/image-runtime-Bw_agCNy.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-CUSxJHBw.js → ir-XcAR7roj.js} +7 -7
- package/dist/plugin-sdk/{local-roots-Bm6HtRCq.js → local-roots-BY5Rqkq-.js} +4 -4
- package/dist/plugin-sdk/{logger-CQeZlKzM.js → logger-BHi7awW5.js} +2 -2
- package/dist/plugin-sdk/{login-C9pSZGrb.js → login-CzSCUeAF.js} +4 -4
- package/dist/plugin-sdk/{login-qr-BHzjIIab.js → login-qr-EUI3Hbtb.js} +5 -5
- package/dist/plugin-sdk/{manager-CauYuzq-.js → manager-Bl39FmYC.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-BgGPHCst.js +15 -0
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/{outbound-_xa5BzV1.js → outbound-DaYy197W.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-fQQg7Hcf.js → outbound-attachment-DEDdZu2S.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-BsMZIdy7.js → path-alias-guards-BE5cXKeM.js} +1 -1
- package/dist/plugin-sdk/{paths-BfPFPV-o.js → paths-QKxrPQAs.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-BaGaw5cW.js → pi-embedded-helpers-DyCBt4Rw.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-DdPpeOkT.js → pi-model-discovery-BQvluBtf.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-D4Oj-MtR.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-I3uZ-LuJ.js → pi-tools.before-tool-call.runtime-B193V6BP.js} +4 -4
- package/dist/plugin-sdk/{plugins-DBkP5Jjf.js → plugins-OYo1J6HN.js} +4 -4
- package/dist/plugin-sdk/{proxy-fetch-Csz91smQ.js → proxy-fetch-Kqzg_jlJ.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-DwOoNlz6.js → pw-ai-v036me-h.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-DHR7eamb.js → qmd-manager-DXg30o7S.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-a4wQ4HTi.js → query-expansion-CQ_uOkGu.js} +4 -4
- package/dist/plugin-sdk/{redact-Csc3dORG.js → redact-z2L7o3IH.js} +1 -1
- package/dist/plugin-sdk/{reply-C3taBv3H.js → reply-B1x5oZJH.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-DMsFQSjk.js → resolve-outbound-target-D5oEg9at.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-BLLS70oF.js → run-with-concurrency-JUi6fZ2Z.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-cYTZXZFn.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Qlry3PSb.js +19 -0
- package/dist/plugin-sdk/{send-cmW84lr6.js → send-4n1llZdq.js} +13 -13
- package/dist/plugin-sdk/{send-DYhwi9gy.js → send-BArogNRA.js} +6 -6
- package/dist/plugin-sdk/{send-CqyWsYdo.js → send-BlgyWftU.js} +7 -7
- package/dist/plugin-sdk/{send-zVy9HN7J.js → send-CRgbJsRP.js} +8 -8
- package/dist/plugin-sdk/{send-DniOe_cc.js → send-CfuoLePn.js} +5 -5
- package/dist/plugin-sdk/{session-CwaTbw90.js → session-CCGT3f2D.js} +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/{skill-commands-Da1Fscw7.js → skill-commands-CV-Axgrh.js} +4 -4
- package/dist/plugin-sdk/{skills-DpEr4IOQ.js → skills-CmXOys3q.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-DKJL3uXI.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-nNeoFR0O.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-D2QHo42_.js +16 -0
- package/dist/plugin-sdk/{ssrf-CcMJLDDB.js → ssrf-CGW1yzyH.js} +1 -1
- package/dist/plugin-sdk/{store-BiVz3O9g.js → store-CScKIKO6.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-DBVc0kv9.js +52 -0
- package/dist/plugin-sdk/{tables-D637OTYU.js → tables-OOlL_rlP.js} +1 -1
- package/dist/plugin-sdk/{target-errors-B7S4kulN.js → target-errors-CcLN4iYc.js} +2 -2
- package/dist/plugin-sdk/telegram.js +2 -2
- package/dist/plugin-sdk/{thinking-r0LJHAQn.js → thinking-Dyp8-p1E.js} +7 -7
- package/dist/plugin-sdk/{tokens-DeC-ZM__.js → tokens-kIYqzGs4.js} +1 -1
- package/dist/plugin-sdk/{tool-images-Fv29HRfB.js → tool-images-DENWSk8t.js} +2 -2
- package/dist/plugin-sdk/web-zLJ3gxhx.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-C0LfsyHW.js → whatsapp-actions-CXIV2vRJ.js} +17 -17
- package/dist/{pw-ai-CItsOwdU.js → pw-ai-BPPLea1y.js} +1 -1
- package/dist/{slash-dispatch.runtime-Cq4szyy8.js → slash-dispatch.runtime-D4Bt7WUe.js} +6 -6
- package/dist/{subagent-registry-runtime-B7duK1wg.js → subagent-registry-runtime-kZEc4AOo.js} +6 -6
- package/dist/{web-BwSmiv5n.js → web-C3zdCnqy.js} +6 -6
- package/package.json +1 -1
- package/dist/plugin-sdk/deliver-runtime-CCuCD8eb.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-Bj3IiQWh.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-CNbh4-Ws.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-Dss3Lmg7.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-CJTz2nv7.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-CVZuM6_G.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-1ir8PBXo.js +0 -57
- package/dist/plugin-sdk/image-runtime-BFvP4XUz.js +0 -25
- package/dist/plugin-sdk/manager-runtime-B2MNXZNG.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-DOfJAOwo.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DFzO6ndJ.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-FXu-Tm3j.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-tSTflBTv.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-EIcSjzV6.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-C8Bg6WgD.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-BCLoDLV3.js +0 -52
- package/dist/plugin-sdk/web-CMWNFG7y.js +0 -56
|
@@ -11,8 +11,8 @@ import "./plugins-DmFEHGuU.js";
|
|
|
11
11
|
import "./accounts-DJJqfTqt.js";
|
|
12
12
|
import "./accounts-BT1b-E5M.js";
|
|
13
13
|
import "./image-ops-BMWIc9fJ.js";
|
|
14
|
-
import "./pi-embedded-helpers
|
|
15
|
-
import "./chrome-
|
|
14
|
+
import "./pi-embedded-helpers--Z_8lnOv.js";
|
|
15
|
+
import "./chrome-CecoPcma.js";
|
|
16
16
|
import "./frontmatter-rXfmpfX3.js";
|
|
17
17
|
import "./skills-K-Z-a8ol.js";
|
|
18
18
|
import "./path-alias-guards-Caq9mLAy.js";
|
|
@@ -24,8 +24,8 @@ import "./store-C6_Vn47n.js";
|
|
|
24
24
|
import "./accounts-Cnwcfc-c.js";
|
|
25
25
|
import "./paths-BEplEem3.js";
|
|
26
26
|
import "./tool-images-W9lm0PY7.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-f-oAxq2Q.js";
|
|
28
|
+
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-DYNg5Naa.js";
|
|
29
29
|
import "./fetch-BUx01Coa.js";
|
|
30
30
|
import "./fetch-guard-BgQjNYdV.js";
|
|
31
31
|
import "./api-key-rotation-BWpi0oED.js";
|
package/dist/{audio-transcription-runner-CFQlwuzM.js → audio-transcription-runner-DYNg5Naa.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { _ as runExec } from "./workspace--7XQbzUj.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 resolveWinClawAgentDir, j as requireApiKey, ot as isInboundPathAllowed, st as mergeInboundPathRoots } from "./model-selection-DwP0SZq0.js";
|
|
5
5
|
import { _ as normalizeChatType } from "./plugins-DmFEHGuU.js";
|
|
6
6
|
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-BMWIc9fJ.js";
|
|
7
|
-
import { t as describeImageWithModel, w as ensureWinClawModelsJson } from "./image-
|
|
7
|
+
import { t as describeImageWithModel, w as ensureWinClawModelsJson } from "./image-f-oAxq2Q.js";
|
|
8
8
|
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-BUx01Coa.js";
|
|
9
9
|
import { n as fetchWithTimeout } from "./fetch-timeout-Bghlv-lk.js";
|
|
10
10
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-BgQjNYdV.js";
|
package/dist/build-info.json
CHANGED
|
@@ -8,19 +8,19 @@ import "../../github-copilot-token-B2GRi9DU.js";
|
|
|
8
8
|
import { a as isGatewayStartupEvent } from "../../legacy-names-YyhpL1aw.js";
|
|
9
9
|
import "../../thinking-Dfo3AHcK.js";
|
|
10
10
|
import { n as SILENT_REPLY_TOKEN } from "../../tokens-DXPt0_Ft.js";
|
|
11
|
-
import { a as agentCommand, o as createDefaultDeps } from "../../pi-embedded-
|
|
11
|
+
import { a as agentCommand, o as createDefaultDeps } from "../../pi-embedded-DOoz8kXI.js";
|
|
12
12
|
import "../../plugins-DmFEHGuU.js";
|
|
13
13
|
import "../../accounts-DJJqfTqt.js";
|
|
14
14
|
import "../../send-mAEmNhTy.js";
|
|
15
15
|
import "../../send-BVwGLS12.js";
|
|
16
|
-
import "../../deliver-
|
|
16
|
+
import "../../deliver-6BwkZx1I.js";
|
|
17
17
|
import "../../diagnostic-BqD0CLOw.js";
|
|
18
18
|
import "../../accounts-BT1b-E5M.js";
|
|
19
19
|
import "../../image-ops-BMWIc9fJ.js";
|
|
20
20
|
import "../../send-B_vb0GGP.js";
|
|
21
21
|
import "../../pi-model-discovery-WhP-6ab6.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--Z_8lnOv.js";
|
|
23
|
+
import "../../chrome-CecoPcma.js";
|
|
24
24
|
import "../../frontmatter-rXfmpfX3.js";
|
|
25
25
|
import "../../skills-K-Z-a8ol.js";
|
|
26
26
|
import "../../path-alias-guards-Caq9mLAy.js";
|
|
@@ -32,8 +32,8 @@ import "../../store-C6_Vn47n.js";
|
|
|
32
32
|
import "../../accounts-Cnwcfc-c.js";
|
|
33
33
|
import { s as resolveStorePath } from "../../paths-BEplEem3.js";
|
|
34
34
|
import "../../tool-images-W9lm0PY7.js";
|
|
35
|
-
import "../../image-
|
|
36
|
-
import "../../audio-transcription-runner-
|
|
35
|
+
import "../../image-f-oAxq2Q.js";
|
|
36
|
+
import "../../audio-transcription-runner-DYNg5Naa.js";
|
|
37
37
|
import "../../fetch-BUx01Coa.js";
|
|
38
38
|
import "../../fetch-guard-BgQjNYdV.js";
|
|
39
39
|
import "../../api-key-rotation-BWpi0oED.js";
|
|
@@ -8,19 +8,19 @@ import "../../github-copilot-token-B2GRi9DU.js";
|
|
|
8
8
|
import "../../legacy-names-YyhpL1aw.js";
|
|
9
9
|
import "../../thinking-Dfo3AHcK.js";
|
|
10
10
|
import "../../tokens-DXPt0_Ft.js";
|
|
11
|
-
import "../../pi-embedded-
|
|
11
|
+
import "../../pi-embedded-DOoz8kXI.js";
|
|
12
12
|
import "../../plugins-DmFEHGuU.js";
|
|
13
13
|
import "../../accounts-DJJqfTqt.js";
|
|
14
14
|
import "../../send-mAEmNhTy.js";
|
|
15
15
|
import "../../send-BVwGLS12.js";
|
|
16
|
-
import "../../deliver-
|
|
16
|
+
import "../../deliver-6BwkZx1I.js";
|
|
17
17
|
import "../../diagnostic-BqD0CLOw.js";
|
|
18
18
|
import "../../accounts-BT1b-E5M.js";
|
|
19
19
|
import "../../image-ops-BMWIc9fJ.js";
|
|
20
20
|
import "../../send-B_vb0GGP.js";
|
|
21
21
|
import "../../pi-model-discovery-WhP-6ab6.js";
|
|
22
|
-
import { ut as hasInterSessionUserProvenance } from "../../pi-embedded-helpers
|
|
23
|
-
import "../../chrome-
|
|
22
|
+
import { ut as hasInterSessionUserProvenance } from "../../pi-embedded-helpers--Z_8lnOv.js";
|
|
23
|
+
import "../../chrome-CecoPcma.js";
|
|
24
24
|
import "../../frontmatter-rXfmpfX3.js";
|
|
25
25
|
import "../../skills-K-Z-a8ol.js";
|
|
26
26
|
import "../../path-alias-guards-Caq9mLAy.js";
|
|
@@ -32,8 +32,8 @@ import "../../store-C6_Vn47n.js";
|
|
|
32
32
|
import "../../accounts-Cnwcfc-c.js";
|
|
33
33
|
import "../../paths-BEplEem3.js";
|
|
34
34
|
import "../../tool-images-W9lm0PY7.js";
|
|
35
|
-
import "../../image-
|
|
36
|
-
import "../../audio-transcription-runner-
|
|
35
|
+
import "../../image-f-oAxq2Q.js";
|
|
36
|
+
import "../../audio-transcription-runner-DYNg5Naa.js";
|
|
37
37
|
import "../../fetch-BUx01Coa.js";
|
|
38
38
|
import "../../fetch-guard-BgQjNYdV.js";
|
|
39
39
|
import "../../api-key-rotation-BWpi0oED.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
38cd9b4ab453f7487336251f0e90f0668afeb652b652014f8be7f09b6a442bfb
|
|
@@ -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-DXPt0_
|
|
|
8
8
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-DmFEHGuU.js";
|
|
9
9
|
import { n as generateSecureUuid } from "./secure-random-BEYczWtd.js";
|
|
10
10
|
import { r as parseTelegramTarget } from "./targets-B5BJmNgG.js";
|
|
11
|
-
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, i as isMessagingToolDuplicate, st as parseInlineDirectives } from "./pi-embedded-helpers
|
|
11
|
+
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, i as isMessagingToolDuplicate, st as parseInlineDirectives } from "./pi-embedded-helpers--Z_8lnOv.js";
|
|
12
12
|
import { i as getAgentScopedMediaLocalRoots } from "./fetch-BUx01Coa.js";
|
|
13
13
|
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-B0XBhuU2.js";
|
|
14
14
|
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-CsTQiEZn.js";
|
|
@@ -10,11 +10,11 @@ import "./thinking-Dfo3AHcK.js";
|
|
|
10
10
|
import "./tokens-DXPt0_Ft.js";
|
|
11
11
|
import "./plugins-DmFEHGuU.js";
|
|
12
12
|
import "./accounts-DJJqfTqt.js";
|
|
13
|
-
import { t as deliverOutboundPayloads } from "./deliver-
|
|
13
|
+
import { t as deliverOutboundPayloads } from "./deliver-6BwkZx1I.js";
|
|
14
14
|
import "./accounts-BT1b-E5M.js";
|
|
15
15
|
import "./image-ops-BMWIc9fJ.js";
|
|
16
|
-
import "./pi-embedded-helpers
|
|
17
|
-
import "./chrome-
|
|
16
|
+
import "./pi-embedded-helpers--Z_8lnOv.js";
|
|
17
|
+
import "./chrome-CecoPcma.js";
|
|
18
18
|
import "./frontmatter-rXfmpfX3.js";
|
|
19
19
|
import "./skills-K-Z-a8ol.js";
|
|
20
20
|
import "./path-alias-guards-Caq9mLAy.js";
|
package/dist/{deps-send-whatsapp.runtime-DJAsJgdo.js → deps-send-whatsapp.runtime-DDQQmVsc.js}
RENAMED
|
@@ -8,19 +8,19 @@ import "./github-copilot-token-B2GRi9DU.js";
|
|
|
8
8
|
import "./legacy-names-YyhpL1aw.js";
|
|
9
9
|
import "./thinking-Dfo3AHcK.js";
|
|
10
10
|
import "./tokens-DXPt0_Ft.js";
|
|
11
|
-
import "./pi-embedded-
|
|
11
|
+
import "./pi-embedded-DOoz8kXI.js";
|
|
12
12
|
import "./plugins-DmFEHGuU.js";
|
|
13
13
|
import "./accounts-DJJqfTqt.js";
|
|
14
14
|
import "./send-mAEmNhTy.js";
|
|
15
15
|
import "./send-BVwGLS12.js";
|
|
16
|
-
import "./deliver-
|
|
16
|
+
import "./deliver-6BwkZx1I.js";
|
|
17
17
|
import "./diagnostic-BqD0CLOw.js";
|
|
18
18
|
import "./accounts-BT1b-E5M.js";
|
|
19
19
|
import "./image-ops-BMWIc9fJ.js";
|
|
20
20
|
import "./send-B_vb0GGP.js";
|
|
21
21
|
import "./pi-model-discovery-WhP-6ab6.js";
|
|
22
|
-
import "./pi-embedded-helpers
|
|
23
|
-
import "./chrome-
|
|
22
|
+
import "./pi-embedded-helpers--Z_8lnOv.js";
|
|
23
|
+
import "./chrome-CecoPcma.js";
|
|
24
24
|
import "./frontmatter-rXfmpfX3.js";
|
|
25
25
|
import "./skills-K-Z-a8ol.js";
|
|
26
26
|
import "./path-alias-guards-Caq9mLAy.js";
|
|
@@ -32,8 +32,8 @@ import "./store-C6_Vn47n.js";
|
|
|
32
32
|
import "./accounts-Cnwcfc-c.js";
|
|
33
33
|
import "./paths-BEplEem3.js";
|
|
34
34
|
import "./tool-images-W9lm0PY7.js";
|
|
35
|
-
import "./image-
|
|
36
|
-
import "./audio-transcription-runner-
|
|
35
|
+
import "./image-f-oAxq2Q.js";
|
|
36
|
+
import "./audio-transcription-runner-DYNg5Naa.js";
|
|
37
37
|
import "./fetch-BUx01Coa.js";
|
|
38
38
|
import "./fetch-guard-BgQjNYdV.js";
|
|
39
39
|
import "./api-key-rotation-BWpi0oED.js";
|
|
@@ -55,6 +55,6 @@ import "./query-expansion-DnK_9wYg.js";
|
|
|
55
55
|
import { t as sendMessageWhatsApp } from "./outbound-DGtKaDDF.js";
|
|
56
56
|
import "./session-DqCth1od.js";
|
|
57
57
|
import "./login-CuSCyoEP.js";
|
|
58
|
-
import "./web-
|
|
58
|
+
import "./web-C3zdCnqy.js";
|
|
59
59
|
|
|
60
60
|
export { sendMessageWhatsApp };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-TwJ9k3Q5.js";
|
|
2
2
|
import { f as isRecord, x as shortenHomeInString } from "./logger-DiK_f06N.js";
|
|
3
3
|
import { Wn as applyConfigEnvVars, X as loadConfig, _ as normalizeProviders, b as resolveImplicitProviders, ir as resolveWinClawAgentDir, j as requireApiKey, k as getApiKeyForModel, pr as normalizeSecretInput, v as resolveImplicitBedrockProvider, y as resolveImplicitCopilotProvider } from "./model-selection-DwP0SZq0.js";
|
|
4
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers
|
|
4
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers--Z_8lnOv.js";
|
|
5
5
|
import { n as redactToolDetail } from "./redact-DVcfylV9.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
@@ -11,8 +11,8 @@ import "./plugins-DmFEHGuU.js";
|
|
|
11
11
|
import "./accounts-DJJqfTqt.js";
|
|
12
12
|
import "./accounts-BT1b-E5M.js";
|
|
13
13
|
import "./image-ops-BMWIc9fJ.js";
|
|
14
|
-
import "./pi-embedded-helpers
|
|
15
|
-
import "./chrome-
|
|
14
|
+
import "./pi-embedded-helpers--Z_8lnOv.js";
|
|
15
|
+
import "./chrome-CecoPcma.js";
|
|
16
16
|
import "./frontmatter-rXfmpfX3.js";
|
|
17
17
|
import "./skills-K-Z-a8ol.js";
|
|
18
18
|
import "./path-alias-guards-Caq9mLAy.js";
|
|
@@ -24,6 +24,6 @@ import "./store-C6_Vn47n.js";
|
|
|
24
24
|
import "./accounts-Cnwcfc-c.js";
|
|
25
25
|
import "./paths-BEplEem3.js";
|
|
26
26
|
import "./tool-images-W9lm0PY7.js";
|
|
27
|
-
import { t as describeImageWithModel } from "./image-
|
|
27
|
+
import { t as describeImageWithModel } from "./image-f-oAxq2Q.js";
|
|
28
28
|
|
|
29
29
|
export { describeImageWithModel };
|
|
@@ -8,19 +8,19 @@ import "./github-copilot-token-B2GRi9DU.js";
|
|
|
8
8
|
import "./legacy-names-YyhpL1aw.js";
|
|
9
9
|
import "./thinking-Dfo3AHcK.js";
|
|
10
10
|
import "./tokens-DXPt0_Ft.js";
|
|
11
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
11
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-DOoz8kXI.js";
|
|
12
12
|
import "./plugins-DmFEHGuU.js";
|
|
13
13
|
import "./accounts-DJJqfTqt.js";
|
|
14
14
|
import "./send-mAEmNhTy.js";
|
|
15
15
|
import "./send-BVwGLS12.js";
|
|
16
|
-
import "./deliver-
|
|
16
|
+
import "./deliver-6BwkZx1I.js";
|
|
17
17
|
import "./diagnostic-BqD0CLOw.js";
|
|
18
18
|
import "./accounts-BT1b-E5M.js";
|
|
19
19
|
import "./image-ops-BMWIc9fJ.js";
|
|
20
20
|
import "./send-B_vb0GGP.js";
|
|
21
21
|
import "./pi-model-discovery-WhP-6ab6.js";
|
|
22
|
-
import "./pi-embedded-helpers
|
|
23
|
-
import "./chrome-
|
|
22
|
+
import "./pi-embedded-helpers--Z_8lnOv.js";
|
|
23
|
+
import "./chrome-CecoPcma.js";
|
|
24
24
|
import "./frontmatter-rXfmpfX3.js";
|
|
25
25
|
import "./skills-K-Z-a8ol.js";
|
|
26
26
|
import "./path-alias-guards-Caq9mLAy.js";
|
|
@@ -32,8 +32,8 @@ import "./store-C6_Vn47n.js";
|
|
|
32
32
|
import "./accounts-Cnwcfc-c.js";
|
|
33
33
|
import "./paths-BEplEem3.js";
|
|
34
34
|
import "./tool-images-W9lm0PY7.js";
|
|
35
|
-
import "./image-
|
|
36
|
-
import "./audio-transcription-runner-
|
|
35
|
+
import "./image-f-oAxq2Q.js";
|
|
36
|
+
import "./audio-transcription-runner-DYNg5Naa.js";
|
|
37
37
|
import "./fetch-BUx01Coa.js";
|
|
38
38
|
import "./fetch-guard-BgQjNYdV.js";
|
|
39
39
|
import "./api-key-rotation-BWpi0oED.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-mAEmNhTy.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-BVwGLS12.js";
|
|
15
15
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-BEYczWtd.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-6BwkZx1I.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-BqD0CLOw.js";
|
|
18
18
|
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-BT1b-E5M.js";
|
|
19
19
|
import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-B5BJmNgG.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-BMWIc9fJ.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-B_vb0GGP.js";
|
|
22
22
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-WhP-6ab6.js";
|
|
23
|
-
import { $ as deliveryContextKey, $t as matchesAnyGlobPattern, A as isTransientHttpError$1, 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 countToolResults, b as isAuthAssistantError, bt as DEFAULT_RESET_TRIGGERS, c as extractToolCallsFromAssistant, ct as INPUT_PROVENANCE_KIND_VALUES, d as downgradeOpenAIFunctionCallReasoningPairs, dt as normalizeInputProvenance, en as buildBootstrapContextFiles, et as mergeDeliveryContext, f as downgradeOpenAIReasoningBlocks, ft as jsonUtf8Bytes, g as formatAssistantErrorText, gt as resolveChannelResetConfig, h as classifyFailoverReason, ht as evaluateSessionFreshness, in as resolveBootstrapTotalMaxChars, it as capArrayByJsonBytes, j as parseImageDimensionError, jt as acquireSessionWriteLock, k as isRawApiErrorPayload, kt as resolveConversationLabel, l as extractToolResultId, lt as applyInputProvenanceToUserMessage, m as BILLING_ERROR_USER_MESSAGE, mt as resolveSessionKey, n as validateGeminiTurns, nn as resolveBootstrapMaxChars, nt as normalizeSessionDeliveryFields, o as normalizeTextForComparison, ot as extractToolCallNames, p as isGoogleModelApi, pt as archiveSessionTranscripts, q as updateLastRoute, qt as mergeAlsoAllowPolicy, r as pickFallbackThinkingLevel, rn as resolveBootstrapPromptTruncationWarningMode, rt as normalizeAccountId$3, s as sanitizeSessionMessagesImages, st as parseInlineDirectives$1, t as validateAnthropicTurns, tn as ensureSessionHeader, tt as normalizeDeliveryContext, u as sanitizeToolCallIdsForCloudCodeAssist, ut as hasInterSessionUserProvenance, 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$1, 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 countToolResults, b as isAuthAssistantError, bt as DEFAULT_RESET_TRIGGERS, c as extractToolCallsFromAssistant, ct as INPUT_PROVENANCE_KIND_VALUES, d as downgradeOpenAIFunctionCallReasoningPairs, dt as normalizeInputProvenance, en as buildBootstrapContextFiles, et as mergeDeliveryContext, f as downgradeOpenAIReasoningBlocks, ft as jsonUtf8Bytes, g as formatAssistantErrorText, gt as resolveChannelResetConfig, h as classifyFailoverReason, ht as evaluateSessionFreshness, in as resolveBootstrapTotalMaxChars, it as capArrayByJsonBytes, j as parseImageDimensionError, jt as acquireSessionWriteLock, k as isRawApiErrorPayload, kt as resolveConversationLabel, l as extractToolResultId, lt as applyInputProvenanceToUserMessage, m as BILLING_ERROR_USER_MESSAGE, mt as resolveSessionKey, n as validateGeminiTurns, nn as resolveBootstrapMaxChars, nt as normalizeSessionDeliveryFields, o as normalizeTextForComparison, ot as extractToolCallNames, p as isGoogleModelApi, pt as archiveSessionTranscripts, q as updateLastRoute, qt as mergeAlsoAllowPolicy, r as pickFallbackThinkingLevel, rn as resolveBootstrapPromptTruncationWarningMode, rt as normalizeAccountId$3, s as sanitizeSessionMessagesImages, st as parseInlineDirectives$1, t as validateAnthropicTurns, tn as ensureSessionHeader, tt as normalizeDeliveryContext, u as sanitizeToolCallIdsForCloudCodeAssist, ut as hasInterSessionUserProvenance, 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--Z_8lnOv.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-CecoPcma.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-K-Z-a8ol.js";
|
|
26
26
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Caq9mLAy.js";
|
|
27
27
|
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-DVcfylV9.js";
|
|
@@ -34,8 +34,8 @@ import { t as resolveIMessageAccount } from "./accounts-Cnwcfc-c.js";
|
|
|
34
34
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-BEplEem3.js";
|
|
35
35
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-Db-3GZzv.js";
|
|
36
36
|
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-W9lm0PY7.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 ensureWinClawModelsJson, 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 ensureWinClawModelsJson, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-f-oAxq2Q.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-DYNg5Naa.js";
|
|
39
39
|
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-BUx01Coa.js";
|
|
40
40
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-Bghlv-lk.js";
|
|
41
41
|
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BgQjNYdV.js";
|
|
@@ -73,7 +73,7 @@ import { EdgeTTS } from "node-edge-tts";
|
|
|
73
73
|
import { pipeline } from "node:stream/promises";
|
|
74
74
|
import { createServer } from "node:http";
|
|
75
75
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
76
|
-
import WebSocket
|
|
76
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
77
77
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
78
78
|
import { createJiti } from "jiti";
|
|
79
79
|
import AjvPkg from "ajv";
|
|
@@ -8472,7 +8472,7 @@ var GatewayClient = class {
|
|
|
8472
8472
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
8473
8473
|
});
|
|
8474
8474
|
}
|
|
8475
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
8475
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
8476
8476
|
this.ws.on("open", () => {
|
|
8477
8477
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
8478
8478
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -8668,7 +8668,7 @@ var GatewayClient = class {
|
|
|
8668
8668
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
8669
8669
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
8670
8670
|
this.connectTimer = setTimeout(() => {
|
|
8671
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
8671
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
8672
8672
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
8673
8673
|
this.ws?.close(1008, "connect challenge timeout");
|
|
8674
8674
|
}, connectChallengeTimeoutMs);
|
|
@@ -8710,7 +8710,7 @@ var GatewayClient = class {
|
|
|
8710
8710
|
return null;
|
|
8711
8711
|
}
|
|
8712
8712
|
async request(method, params, opts) {
|
|
8713
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
8713
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
8714
8714
|
const id = randomUUID();
|
|
8715
8715
|
const frame = {
|
|
8716
8716
|
type: "req",
|
|
@@ -10132,7 +10132,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
10132
10132
|
*/
|
|
10133
10133
|
let deliverRuntimePromise$2 = null;
|
|
10134
10134
|
function loadDeliverRuntime$2() {
|
|
10135
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
10135
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-guJNzNEk.js");
|
|
10136
10136
|
return deliverRuntimePromise$2;
|
|
10137
10137
|
}
|
|
10138
10138
|
/**
|
|
@@ -11419,7 +11419,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
|
|
|
11419
11419
|
const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
11420
11420
|
let subagentRegistryRuntimePromise = null;
|
|
11421
11421
|
function loadSubagentRegistryRuntime() {
|
|
11422
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
11422
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-kZEc4AOo.js");
|
|
11423
11423
|
return subagentRegistryRuntimePromise;
|
|
11424
11424
|
}
|
|
11425
11425
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
@@ -14748,7 +14748,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
14748
14748
|
//#region src/media-understanding/echo-transcript.ts
|
|
14749
14749
|
let deliverRuntimePromise$1 = null;
|
|
14750
14750
|
function loadDeliverRuntime$1() {
|
|
14751
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
14751
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-guJNzNEk.js");
|
|
14752
14752
|
return deliverRuntimePromise$1;
|
|
14753
14753
|
}
|
|
14754
14754
|
const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
|
|
@@ -53037,7 +53037,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
53037
53037
|
const log$10 = createSubsystemLogger("session-maintenance-warning");
|
|
53038
53038
|
let deliverRuntimePromise = null;
|
|
53039
53039
|
function loadDeliverRuntime() {
|
|
53040
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
53040
|
+
deliverRuntimePromise ??= import("./deliver-runtime-guJNzNEk.js");
|
|
53041
53041
|
return deliverRuntimePromise;
|
|
53042
53042
|
}
|
|
53043
53043
|
function shouldSendWarning() {
|
|
@@ -58014,7 +58014,7 @@ const VISION_PROVIDERS = [
|
|
|
58014
58014
|
];
|
|
58015
58015
|
let imageRuntimePromise = null;
|
|
58016
58016
|
function loadImageRuntime() {
|
|
58017
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
58017
|
+
imageRuntimePromise ??= import("./image-runtime-VBHn-i7b.js");
|
|
58018
58018
|
return imageRuntimePromise;
|
|
58019
58019
|
}
|
|
58020
58020
|
/**
|
|
@@ -60075,7 +60075,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
60075
60075
|
hasTypedText
|
|
60076
60076
|
};
|
|
60077
60077
|
try {
|
|
60078
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
60078
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BGqZ89hb.js");
|
|
60079
60079
|
if (params.abortSignal?.aborted) return {
|
|
60080
60080
|
hasAudioAttachment,
|
|
60081
60081
|
hasTypedText
|
|
@@ -67469,7 +67469,7 @@ let slackSenderRuntimePromise = null;
|
|
|
67469
67469
|
let signalSenderRuntimePromise = null;
|
|
67470
67470
|
let imessageSenderRuntimePromise = null;
|
|
67471
67471
|
function loadWhatsAppSenderRuntime() {
|
|
67472
|
-
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-
|
|
67472
|
+
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-DDQQmVsc.js");
|
|
67473
67473
|
return whatsappSenderRuntimePromise;
|
|
67474
67474
|
}
|
|
67475
67475
|
function loadTelegramSenderRuntime() {
|
|
@@ -71179,7 +71179,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
71179
71179
|
return super.registerClient(client);
|
|
71180
71180
|
}
|
|
71181
71181
|
createWebSocket(url) {
|
|
71182
|
-
return new WebSocket
|
|
71182
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
71183
71183
|
}
|
|
71184
71184
|
}
|
|
71185
71185
|
return new ProxyGatewayPlugin();
|
|
@@ -80315,7 +80315,7 @@ function loadSlashCommandsRuntime() {
|
|
|
80315
80315
|
return slashCommandsRuntimePromise;
|
|
80316
80316
|
}
|
|
80317
80317
|
function loadSlashDispatchRuntime() {
|
|
80318
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-
|
|
80318
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-D4Bt7WUe.js");
|
|
80319
80319
|
return slashDispatchRuntimePromise;
|
|
80320
80320
|
}
|
|
80321
80321
|
function loadSlashSkillCommandsRuntime() {
|
|
@@ -83684,7 +83684,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
83684
83684
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
83685
83685
|
let preflightTranscript;
|
|
83686
83686
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
83687
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
83687
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BGqZ89hb.js");
|
|
83688
83688
|
preflightTranscript = await transcribeFirstAudio({
|
|
83689
83689
|
ctx: {
|
|
83690
83690
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -86610,7 +86610,7 @@ function loadWebLoginQr() {
|
|
|
86610
86610
|
return webLoginQrPromise;
|
|
86611
86611
|
}
|
|
86612
86612
|
function loadWebChannel() {
|
|
86613
|
-
webChannelPromise ??= import("./web-
|
|
86613
|
+
webChannelPromise ??= import("./web-C3zdCnqy.js");
|
|
86614
86614
|
return webChannelPromise;
|
|
86615
86615
|
}
|
|
86616
86616
|
function loadWhatsAppActions() {
|
|
@@ -94961,7 +94961,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
94961
94961
|
* Throws if the connection is not open.
|
|
94962
94962
|
*/
|
|
94963
94963
|
send(event) {
|
|
94964
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
94964
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
94965
94965
|
this.ws.send(JSON.stringify(event));
|
|
94966
94966
|
}
|
|
94967
94967
|
/**
|
|
@@ -94978,7 +94978,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
94978
94978
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
94979
94979
|
*/
|
|
94980
94980
|
isConnected() {
|
|
94981
|
-
return this.ws !== null && this.ws.readyState === WebSocket
|
|
94981
|
+
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
94982
94982
|
}
|
|
94983
94983
|
/**
|
|
94984
94984
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -94988,7 +94988,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
94988
94988
|
this._cancelRetryTimer();
|
|
94989
94989
|
if (this.ws) {
|
|
94990
94990
|
this.ws.removeAllListeners();
|
|
94991
|
-
if (this.ws.readyState === WebSocket
|
|
94991
|
+
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
94992
94992
|
this.ws = null;
|
|
94993
94993
|
}
|
|
94994
94994
|
}
|
|
@@ -94998,7 +94998,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
94998
94998
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
94999
94999
|
return;
|
|
95000
95000
|
}
|
|
95001
|
-
const socket = new WebSocket
|
|
95001
|
+
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
95002
95002
|
Authorization: `Bearer ${this.apiKey}`,
|
|
95003
95003
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
95004
95004
|
} });
|
|
@@ -9,7 +9,7 @@ import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug
|
|
|
9
9
|
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-DmFEHGuU.js";
|
|
10
10
|
import { t as generateSecureToken } from "./secure-random-BEYczWtd.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-BMWIc9fJ.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_WINCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_WINCLAW_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 resolveWinClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchWinClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopWinClawChrome, p as snapshotAria, q as DEFAULT_WINCLAW_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_WINCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_WINCLAW_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 resolveWinClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchWinClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopWinClawChrome, p as snapshotAria, q as DEFAULT_WINCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-CecoPcma.js";
|
|
13
13
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-K-Z-a8ol.js";
|
|
14
14
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Caq9mLAy.js";
|
|
15
15
|
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-ixBzedqV.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-BPPLea1y.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-BPPLea1y.js")).closePlaywrightBrowserConnection();
|
|
3648
3648
|
} catch {}
|
|
3649
3649
|
}
|
|
3650
3650
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveWinClawUserDataDir }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-
|
|
1
|
+
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-JUi6fZ2Z.js";
|
|
2
2
|
import { o as resolveOAuthDir } from "./paths-C2qA2GWL.js";
|
|
3
|
-
import { Pr as formatCliCommand } from "./config-
|
|
4
|
-
import { B as success, E as resolveUserPath, G as getChildLogger, I as info, c as defaultRuntime, x as jidToE164 } from "./logger-
|
|
3
|
+
import { Pr as formatCliCommand } from "./config-B4-Hm0aM.js";
|
|
4
|
+
import { B as success, E as resolveUserPath, G as getChildLogger, I as info, c as defaultRuntime, x as jidToE164 } from "./logger-BHi7awW5.js";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs$1 from "node:fs/promises";
|
|
@@ -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-JUi6fZ2Z.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-1bzzEqCq.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-
|
|
1
|
+
import { ot as normalizeAccountId } from "./run-with-concurrency-JUi6fZ2Z.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-1bzzEqCq.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { at as DEFAULT_ACCOUNT_ID } from "./run-with-concurrency-
|
|
2
|
-
import { Pr as formatCliCommand } from "./config-
|
|
1
|
+
import { at as DEFAULT_ACCOUNT_ID } from "./run-with-concurrency-JUi6fZ2Z.js";
|
|
2
|
+
import { Pr as formatCliCommand } from "./config-B4-Hm0aM.js";
|
|
3
3
|
import crypto from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/logging/redact-identifier.ts
|