openclaw-multi-auto 1.6.0 → 1.6.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-DpxQCpsA.js → audio-preflight-DoPfNXDz.js} +4 -4
- package/dist/{audio-transcription-runner-28fcRNNi.js → audio-transcription-runner-CzjuH3uL.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-DwizpzOC.js → chrome-DlhJHqj8.js} +8 -8
- package/dist/{deliver-D4o6VIur.js → deliver-CApVJA_l.js} +1 -1
- package/dist/{deliver-runtime-P-G3bPjW.js → deliver-runtime-D1z-h5eg.js} +3 -3
- package/dist/{deps-send-whatsapp.runtime-CJkTHkah.js → deps-send-whatsapp.runtime-Dz_4fi2D.js} +7 -7
- package/dist/{image-Bbn53mzj.js → image-B3Mz7N5I.js} +1 -1
- package/dist/{image-runtime-CVv2ra9J.js → image-runtime-DWjhow2W.js} +3 -3
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{pi-embedded-BaGj07T0.js → pi-embedded-bcjMe3wj.js} +24 -24
- package/dist/{pi-embedded-helpers-wy0DZvx1.js → pi-embedded-helpers-D5yyGEvA.js} +3 -3
- package/dist/plugin-sdk/accounts-CJWOBzwB.js +35 -0
- package/dist/plugin-sdk/accounts-DP1-L-QS.js +288 -0
- package/dist/plugin-sdk/accounts-DZhWlEg3.js +46 -0
- package/dist/plugin-sdk/active-listener-B_sLJTXM.js +50 -0
- package/dist/plugin-sdk/api-key-rotation-BRE4X2tf.js +181 -0
- package/dist/plugin-sdk/audio-preflight-DGEUDxxR.js +69 -0
- package/dist/plugin-sdk/audio-transcription-runner-DkoPNPYt.js +2176 -0
- package/dist/plugin-sdk/audit-membership-runtime-DSBHHw7o.js +58 -0
- package/dist/plugin-sdk/channel-activity-F3d0yUwy.js +94 -0
- package/dist/plugin-sdk/channel-web-QF7EpjeP.js +2256 -0
- package/dist/plugin-sdk/chrome-BXoCyCkY.js +2415 -0
- package/dist/plugin-sdk/commands-registry-t7cXBTfN.js +1125 -0
- package/dist/plugin-sdk/compat.js +50 -50
- package/dist/plugin-sdk/config-BkEnz2Po.js +17913 -0
- package/dist/plugin-sdk/deliver-B6AG_l67.js +1694 -0
- package/dist/plugin-sdk/deliver-runtime-D585kJZc.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-a_OKY2js.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-Baxy9TD4.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BwXoCrFl.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-CLmKjgso.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-BKfdBKnZ.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BOTwkbx_.js +57 -0
- package/dist/plugin-sdk/diagnostic-CsP-lEkI.js +319 -0
- package/dist/plugin-sdk/discord.js +6 -6
- package/dist/plugin-sdk/errors-DaiAM-yU.js +54 -0
- package/dist/plugin-sdk/fetch-guard-DETCcJzQ.js +156 -0
- package/dist/plugin-sdk/fs-safe-B8y811FR.js +352 -0
- package/dist/plugin-sdk/image-DjTEkYZE.js +2310 -0
- package/dist/plugin-sdk/image-ops-BSiMpAw4.js +584 -0
- package/dist/plugin-sdk/image-runtime-6xPp8m5a.js +25 -0
- package/dist/plugin-sdk/imessage.js +2 -2
- package/dist/plugin-sdk/ir-DQ7_HbvK.js +1296 -0
- package/dist/plugin-sdk/local-roots-BUP4YBmR.js +186 -0
- package/dist/plugin-sdk/logger-CZY9KIoY.js +1163 -0
- package/dist/plugin-sdk/login-BxEKLlCo.js +57 -0
- package/dist/plugin-sdk/login-qr-BQIpMPr9.js +320 -0
- package/dist/plugin-sdk/manager-I6KbPihW.js +3917 -0
- package/dist/plugin-sdk/manager-runtime-CFfYYWIQ.js +15 -0
- package/dist/plugin-sdk/outbound-NS6UHnB6.js +212 -0
- package/dist/plugin-sdk/outbound-attachment-Dy6fyf6H.js +19 -0
- package/dist/plugin-sdk/path-alias-guards-DBjLbIX_.js +43 -0
- package/dist/plugin-sdk/paths-vTM3Lh3X.js +166 -0
- package/dist/plugin-sdk/pi-embedded-helpers-1R1gu7eX.js +9627 -0
- package/dist/plugin-sdk/pi-model-discovery-runtime-Do9o-dUd.js +8 -0
- package/dist/plugin-sdk/pi-model-discovery-v-XPUOOf.js +134 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D4sFsIks.js +354 -0
- package/dist/plugin-sdk/plugins-DeBZB9l_.js +864 -0
- package/dist/plugin-sdk/proxy-fetch-ChxOhWF4.js +38 -0
- package/dist/plugin-sdk/pw-ai-DEOmCSSC.js +1938 -0
- package/dist/plugin-sdk/qmd-manager-HyYKoEch.js +1448 -0
- package/dist/plugin-sdk/query-expansion-CeyKUeDW.js +1011 -0
- package/dist/plugin-sdk/redact-DjVX-1N3.js +319 -0
- package/dist/plugin-sdk/reply-DAo_Jt8K.js +97916 -0
- package/dist/plugin-sdk/resolve-outbound-target-B42qgQS9.js +40 -0
- package/dist/plugin-sdk/run-with-concurrency-Bt_ks0Qa.js +1994 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-B6W989eF.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-c_GDFy37.js +19 -0
- package/dist/plugin-sdk/send-CQpMudwO.js +2587 -0
- package/dist/plugin-sdk/send-DQHLzVyO.js +414 -0
- package/dist/plugin-sdk/send-DTB24bEF.js +3135 -0
- package/dist/plugin-sdk/send-DfHadjZ_.js +503 -0
- package/dist/plugin-sdk/send-XXlW2iny.js +540 -0
- package/dist/plugin-sdk/session-6TF6MyaC.js +169 -0
- package/dist/plugin-sdk/skill-commands-CkGeFUMl.js +342 -0
- package/dist/plugin-sdk/skills-CBkHBYPq.js +1428 -0
- package/dist/plugin-sdk/slack.js +2 -2
- package/dist/plugin-sdk/slash-commands.runtime-CxliuGaP.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-DFaeYlJQ.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-0M0OLCxq.js +16 -0
- package/dist/plugin-sdk/ssrf-cFtplYtS.js +202 -0
- package/dist/plugin-sdk/store-5nyxY3WU.js +81 -0
- package/dist/plugin-sdk/subagent-registry-runtime-DCtmDwna.js +52 -0
- package/dist/plugin-sdk/tables-C47P4GTN.js +55 -0
- package/dist/plugin-sdk/target-errors-Blia4S69.js +195 -0
- package/dist/plugin-sdk/thinking-Bo2eosVa.js +1206 -0
- package/dist/plugin-sdk/tokens-DgNRBwIg.js +52 -0
- package/dist/plugin-sdk/tool-images-Gk_-0y2N.js +274 -0
- package/dist/plugin-sdk/web-CVxZbXyH.js +56 -0
- package/dist/plugin-sdk/whatsapp-actions-Bw0H9g-n.js +80 -0
- package/dist/{pw-ai-Cl1Lc7RC.js → pw-ai-CDQDCfUa.js} +1 -1
- package/dist/{slash-dispatch.runtime-DoBAQBU5.js → slash-dispatch.runtime-CWbpp23S.js} +6 -6
- package/dist/{subagent-registry-runtime-ppWS3tVu.js → subagent-registry-runtime-DEVpAaAP.js} +6 -6
- package/dist/{web-CzWRVmFt.js → web-NWKn8ABz.js} +6 -6
- package/package.json +1 -1
- package/scripts/create-instance.sh +37 -125
|
@@ -11,8 +11,8 @@ import "./plugins-CWkRQYDj.js";
|
|
|
11
11
|
import "./accounts-yfBeCZtS.js";
|
|
12
12
|
import "./accounts-L9ByEpnP.js";
|
|
13
13
|
import "./image-ops-CehkHxmW.js";
|
|
14
|
-
import "./pi-embedded-helpers-
|
|
15
|
-
import "./chrome-
|
|
14
|
+
import "./pi-embedded-helpers-D5yyGEvA.js";
|
|
15
|
+
import "./chrome-DlhJHqj8.js";
|
|
16
16
|
import "./frontmatter-CvaMP376.js";
|
|
17
17
|
import "./skills-CE_iqvM5.js";
|
|
18
18
|
import "./path-alias-guards-DqXRZmsL.js";
|
|
@@ -24,8 +24,8 @@ import "./store--eR1R_UX.js";
|
|
|
24
24
|
import "./accounts-BOzyfwW4.js";
|
|
25
25
|
import "./paths-CCxysrzL.js";
|
|
26
26
|
import "./tool-images-2cBx1W8h.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-B3Mz7N5I.js";
|
|
28
|
+
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-CzjuH3uL.js";
|
|
29
29
|
import "./fetch-BlJWzEP6.js";
|
|
30
30
|
import "./fetch-guard-ChYBwfiy.js";
|
|
31
31
|
import "./api-key-rotation-DtsNS2Nb.js";
|
package/dist/{audio-transcription-runner-28fcRNNi.js → audio-transcription-runner-CzjuH3uL.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { _ as runExec } from "./workspace-CUVC6GX1.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-idoqPmw0.js";
|
|
5
5
|
import { _ as normalizeChatType } from "./plugins-CWkRQYDj.js";
|
|
6
6
|
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-CehkHxmW.js";
|
|
7
|
-
import { t as describeImageWithModel, w as ensureOpenClawModelsJson } from "./image-
|
|
7
|
+
import { t as describeImageWithModel, w as ensureOpenClawModelsJson } from "./image-B3Mz7N5I.js";
|
|
8
8
|
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-BlJWzEP6.js";
|
|
9
9
|
import { n as fetchWithTimeout } from "./fetch-timeout-Wgx3OXYj.js";
|
|
10
10
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-ChYBwfiy.js";
|
package/dist/build-info.json
CHANGED
|
@@ -8,19 +8,19 @@ import "../../github-copilot-token-D13V9YBz.js";
|
|
|
8
8
|
import { a as isGatewayStartupEvent } from "../../legacy-names-TyzbVqa_.js";
|
|
9
9
|
import "../../thinking-DXYisHiZ.js";
|
|
10
10
|
import { n as SILENT_REPLY_TOKEN } from "../../tokens-DxnY9ui_.js";
|
|
11
|
-
import { a as agentCommand, o as createDefaultDeps } from "../../pi-embedded-
|
|
11
|
+
import { a as agentCommand, o as createDefaultDeps } from "../../pi-embedded-bcjMe3wj.js";
|
|
12
12
|
import "../../plugins-CWkRQYDj.js";
|
|
13
13
|
import "../../accounts-yfBeCZtS.js";
|
|
14
14
|
import "../../send-Dx2RkUOZ.js";
|
|
15
15
|
import "../../send-DcxmcFi_.js";
|
|
16
|
-
import "../../deliver-
|
|
16
|
+
import "../../deliver-CApVJA_l.js";
|
|
17
17
|
import "../../diagnostic-Bn4PZjMZ.js";
|
|
18
18
|
import "../../accounts-L9ByEpnP.js";
|
|
19
19
|
import "../../image-ops-CehkHxmW.js";
|
|
20
20
|
import "../../send-vmONuVgL.js";
|
|
21
21
|
import "../../pi-model-discovery-BGgOlX8N.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-D5yyGEvA.js";
|
|
23
|
+
import "../../chrome-DlhJHqj8.js";
|
|
24
24
|
import "../../frontmatter-CvaMP376.js";
|
|
25
25
|
import "../../skills-CE_iqvM5.js";
|
|
26
26
|
import "../../path-alias-guards-DqXRZmsL.js";
|
|
@@ -32,8 +32,8 @@ import "../../store--eR1R_UX.js";
|
|
|
32
32
|
import "../../accounts-BOzyfwW4.js";
|
|
33
33
|
import { s as resolveStorePath } from "../../paths-CCxysrzL.js";
|
|
34
34
|
import "../../tool-images-2cBx1W8h.js";
|
|
35
|
-
import "../../image-
|
|
36
|
-
import "../../audio-transcription-runner-
|
|
35
|
+
import "../../image-B3Mz7N5I.js";
|
|
36
|
+
import "../../audio-transcription-runner-CzjuH3uL.js";
|
|
37
37
|
import "../../fetch-BlJWzEP6.js";
|
|
38
38
|
import "../../fetch-guard-ChYBwfiy.js";
|
|
39
39
|
import "../../api-key-rotation-DtsNS2Nb.js";
|
|
@@ -8,19 +8,19 @@ import "../../github-copilot-token-D13V9YBz.js";
|
|
|
8
8
|
import "../../legacy-names-TyzbVqa_.js";
|
|
9
9
|
import "../../thinking-DXYisHiZ.js";
|
|
10
10
|
import "../../tokens-DxnY9ui_.js";
|
|
11
|
-
import "../../pi-embedded-
|
|
11
|
+
import "../../pi-embedded-bcjMe3wj.js";
|
|
12
12
|
import "../../plugins-CWkRQYDj.js";
|
|
13
13
|
import "../../accounts-yfBeCZtS.js";
|
|
14
14
|
import "../../send-Dx2RkUOZ.js";
|
|
15
15
|
import "../../send-DcxmcFi_.js";
|
|
16
|
-
import "../../deliver-
|
|
16
|
+
import "../../deliver-CApVJA_l.js";
|
|
17
17
|
import "../../diagnostic-Bn4PZjMZ.js";
|
|
18
18
|
import "../../accounts-L9ByEpnP.js";
|
|
19
19
|
import "../../image-ops-CehkHxmW.js";
|
|
20
20
|
import "../../send-vmONuVgL.js";
|
|
21
21
|
import "../../pi-model-discovery-BGgOlX8N.js";
|
|
22
|
-
import { dt as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-
|
|
23
|
-
import "../../chrome-
|
|
22
|
+
import { dt as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-D5yyGEvA.js";
|
|
23
|
+
import "../../chrome-DlhJHqj8.js";
|
|
24
24
|
import "../../frontmatter-CvaMP376.js";
|
|
25
25
|
import "../../skills-CE_iqvM5.js";
|
|
26
26
|
import "../../path-alias-guards-DqXRZmsL.js";
|
|
@@ -32,8 +32,8 @@ import "../../store--eR1R_UX.js";
|
|
|
32
32
|
import "../../accounts-BOzyfwW4.js";
|
|
33
33
|
import "../../paths-CCxysrzL.js";
|
|
34
34
|
import "../../tool-images-2cBx1W8h.js";
|
|
35
|
-
import "../../image-
|
|
36
|
-
import "../../audio-transcription-runner-
|
|
35
|
+
import "../../image-B3Mz7N5I.js";
|
|
36
|
+
import "../../audio-transcription-runner-CzjuH3uL.js";
|
|
37
37
|
import "../../fetch-BlJWzEP6.js";
|
|
38
38
|
import "../../fetch-guard-ChYBwfiy.js";
|
|
39
39
|
import "../../api-key-rotation-DtsNS2Nb.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b93372a5f363c5ebdf2738f69ac257f0f2368a0001480cf0d31b09354ebcfd6f
|
|
@@ -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, { WebSocketServer } from "ws";
|
|
17
|
+
import WebSocket$1, { 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.OPEN;
|
|
596
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket$1.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.OPEN) throw new Error("Chrome extension not connected");
|
|
648
|
+
if (!ws || ws.readyState !== WebSocket$1.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.OPEN) continue;
|
|
665
|
+
if (ws.readyState !== WebSocket$1.OPEN) continue;
|
|
666
666
|
ws.send(msg);
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
const sendResponseToCdp = (ws, res) => {
|
|
670
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
670
|
+
if (ws.readyState !== WebSocket$1.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.OPEN) {
|
|
924
|
+
if (extensionWs && extensionWs.readyState !== WebSocket$1.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.OPEN) return;
|
|
957
|
+
if (ws.readyState !== WebSocket$1.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(wsUrl, {
|
|
1313
|
+
return new WebSocket$1(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-DxnY9u
|
|
|
8
8
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CWkRQYDj.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-D5yyGEvA.js";
|
|
12
12
|
import { i as getAgentScopedMediaLocalRoots } from "./fetch-BlJWzEP6.js";
|
|
13
13
|
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-DAP-B-Xw.js";
|
|
14
14
|
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-BQERFNyo.js";
|
|
@@ -10,11 +10,11 @@ import "./thinking-DXYisHiZ.js";
|
|
|
10
10
|
import "./tokens-DxnY9ui_.js";
|
|
11
11
|
import "./plugins-CWkRQYDj.js";
|
|
12
12
|
import "./accounts-yfBeCZtS.js";
|
|
13
|
-
import { t as deliverOutboundPayloads } from "./deliver-
|
|
13
|
+
import { t as deliverOutboundPayloads } from "./deliver-CApVJA_l.js";
|
|
14
14
|
import "./accounts-L9ByEpnP.js";
|
|
15
15
|
import "./image-ops-CehkHxmW.js";
|
|
16
|
-
import "./pi-embedded-helpers-
|
|
17
|
-
import "./chrome-
|
|
16
|
+
import "./pi-embedded-helpers-D5yyGEvA.js";
|
|
17
|
+
import "./chrome-DlhJHqj8.js";
|
|
18
18
|
import "./frontmatter-CvaMP376.js";
|
|
19
19
|
import "./skills-CE_iqvM5.js";
|
|
20
20
|
import "./path-alias-guards-DqXRZmsL.js";
|
package/dist/{deps-send-whatsapp.runtime-CJkTHkah.js → deps-send-whatsapp.runtime-Dz_4fi2D.js}
RENAMED
|
@@ -8,19 +8,19 @@ import "./github-copilot-token-D13V9YBz.js";
|
|
|
8
8
|
import "./legacy-names-TyzbVqa_.js";
|
|
9
9
|
import "./thinking-DXYisHiZ.js";
|
|
10
10
|
import "./tokens-DxnY9ui_.js";
|
|
11
|
-
import "./pi-embedded-
|
|
11
|
+
import "./pi-embedded-bcjMe3wj.js";
|
|
12
12
|
import "./plugins-CWkRQYDj.js";
|
|
13
13
|
import "./accounts-yfBeCZtS.js";
|
|
14
14
|
import "./send-Dx2RkUOZ.js";
|
|
15
15
|
import "./send-DcxmcFi_.js";
|
|
16
|
-
import "./deliver-
|
|
16
|
+
import "./deliver-CApVJA_l.js";
|
|
17
17
|
import "./diagnostic-Bn4PZjMZ.js";
|
|
18
18
|
import "./accounts-L9ByEpnP.js";
|
|
19
19
|
import "./image-ops-CehkHxmW.js";
|
|
20
20
|
import "./send-vmONuVgL.js";
|
|
21
21
|
import "./pi-model-discovery-BGgOlX8N.js";
|
|
22
|
-
import "./pi-embedded-helpers-
|
|
23
|
-
import "./chrome-
|
|
22
|
+
import "./pi-embedded-helpers-D5yyGEvA.js";
|
|
23
|
+
import "./chrome-DlhJHqj8.js";
|
|
24
24
|
import "./frontmatter-CvaMP376.js";
|
|
25
25
|
import "./skills-CE_iqvM5.js";
|
|
26
26
|
import "./path-alias-guards-DqXRZmsL.js";
|
|
@@ -32,8 +32,8 @@ import "./store--eR1R_UX.js";
|
|
|
32
32
|
import "./accounts-BOzyfwW4.js";
|
|
33
33
|
import "./paths-CCxysrzL.js";
|
|
34
34
|
import "./tool-images-2cBx1W8h.js";
|
|
35
|
-
import "./image-
|
|
36
|
-
import "./audio-transcription-runner-
|
|
35
|
+
import "./image-B3Mz7N5I.js";
|
|
36
|
+
import "./audio-transcription-runner-CzjuH3uL.js";
|
|
37
37
|
import "./fetch-BlJWzEP6.js";
|
|
38
38
|
import "./fetch-guard-ChYBwfiy.js";
|
|
39
39
|
import "./api-key-rotation-DtsNS2Nb.js";
|
|
@@ -55,6 +55,6 @@ import "./query-expansion-DtLc3wjL.js";
|
|
|
55
55
|
import { t as sendMessageWhatsApp } from "./outbound-C2kanETZ.js";
|
|
56
56
|
import "./session-A4QhBRvH.js";
|
|
57
57
|
import "./login-DiCctRo1.js";
|
|
58
|
-
import "./web-
|
|
58
|
+
import "./web-NWKn8ABz.js";
|
|
59
59
|
|
|
60
60
|
export { sendMessageWhatsApp };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-D_ZpbgEG.js";
|
|
2
2
|
import { f as isRecord, x as shortenHomeInString } from "./logger-DMZQQtxK.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-idoqPmw0.js";
|
|
4
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
4
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-D5yyGEvA.js";
|
|
5
5
|
import { n as redactToolDetail } from "./redact-ClbcYG1J.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
@@ -11,8 +11,8 @@ import "./plugins-CWkRQYDj.js";
|
|
|
11
11
|
import "./accounts-yfBeCZtS.js";
|
|
12
12
|
import "./accounts-L9ByEpnP.js";
|
|
13
13
|
import "./image-ops-CehkHxmW.js";
|
|
14
|
-
import "./pi-embedded-helpers-
|
|
15
|
-
import "./chrome-
|
|
14
|
+
import "./pi-embedded-helpers-D5yyGEvA.js";
|
|
15
|
+
import "./chrome-DlhJHqj8.js";
|
|
16
16
|
import "./frontmatter-CvaMP376.js";
|
|
17
17
|
import "./skills-CE_iqvM5.js";
|
|
18
18
|
import "./path-alias-guards-DqXRZmsL.js";
|
|
@@ -24,6 +24,6 @@ import "./store--eR1R_UX.js";
|
|
|
24
24
|
import "./accounts-BOzyfwW4.js";
|
|
25
25
|
import "./paths-CCxysrzL.js";
|
|
26
26
|
import "./tool-images-2cBx1W8h.js";
|
|
27
|
-
import { t as describeImageWithModel } from "./image-
|
|
27
|
+
import { t as describeImageWithModel } from "./image-B3Mz7N5I.js";
|
|
28
28
|
|
|
29
29
|
export { describeImageWithModel };
|
|
@@ -8,19 +8,19 @@ import "./github-copilot-token-D13V9YBz.js";
|
|
|
8
8
|
import "./legacy-names-TyzbVqa_.js";
|
|
9
9
|
import "./thinking-DXYisHiZ.js";
|
|
10
10
|
import "./tokens-DxnY9ui_.js";
|
|
11
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
11
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-bcjMe3wj.js";
|
|
12
12
|
import "./plugins-CWkRQYDj.js";
|
|
13
13
|
import "./accounts-yfBeCZtS.js";
|
|
14
14
|
import "./send-Dx2RkUOZ.js";
|
|
15
15
|
import "./send-DcxmcFi_.js";
|
|
16
|
-
import "./deliver-
|
|
16
|
+
import "./deliver-CApVJA_l.js";
|
|
17
17
|
import "./diagnostic-Bn4PZjMZ.js";
|
|
18
18
|
import "./accounts-L9ByEpnP.js";
|
|
19
19
|
import "./image-ops-CehkHxmW.js";
|
|
20
20
|
import "./send-vmONuVgL.js";
|
|
21
21
|
import "./pi-model-discovery-BGgOlX8N.js";
|
|
22
|
-
import "./pi-embedded-helpers-
|
|
23
|
-
import "./chrome-
|
|
22
|
+
import "./pi-embedded-helpers-D5yyGEvA.js";
|
|
23
|
+
import "./chrome-DlhJHqj8.js";
|
|
24
24
|
import "./frontmatter-CvaMP376.js";
|
|
25
25
|
import "./skills-CE_iqvM5.js";
|
|
26
26
|
import "./path-alias-guards-DqXRZmsL.js";
|
|
@@ -32,8 +32,8 @@ import "./store--eR1R_UX.js";
|
|
|
32
32
|
import "./accounts-BOzyfwW4.js";
|
|
33
33
|
import "./paths-CCxysrzL.js";
|
|
34
34
|
import "./tool-images-2cBx1W8h.js";
|
|
35
|
-
import "./image-
|
|
36
|
-
import "./audio-transcription-runner-
|
|
35
|
+
import "./image-B3Mz7N5I.js";
|
|
36
|
+
import "./audio-transcription-runner-CzjuH3uL.js";
|
|
37
37
|
import "./fetch-BlJWzEP6.js";
|
|
38
38
|
import "./fetch-guard-ChYBwfiy.js";
|
|
39
39
|
import "./api-key-rotation-DtsNS2Nb.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-Dx2RkUOZ.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-DcxmcFi_.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-CApVJA_l.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-Bn4PZjMZ.js";
|
|
18
18
|
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-L9ByEpnP.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-CehkHxmW.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-vmONuVgL.js";
|
|
22
22
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-BGgOlX8N.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-D5yyGEvA.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-DlhJHqj8.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-CE_iqvM5.js";
|
|
26
26
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DqXRZmsL.js";
|
|
27
27
|
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-ClbcYG1J.js";
|
|
@@ -34,8 +34,8 @@ import { t as resolveIMessageAccount } from "./accounts-BOzyfwW4.js";
|
|
|
34
34
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-CCxysrzL.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-2cBx1W8h.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-B3Mz7N5I.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-CzjuH3uL.js";
|
|
39
39
|
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-BlJWzEP6.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-ChYBwfiy.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, { WebSocket
|
|
75
|
+
import WebSocket$1, { WebSocket } 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
|
|
8216
|
+
this.ws = new WebSocket(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
|
|
8412
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket.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
|
|
8454
|
+
if (!this.ws || this.ws.readyState !== WebSocket.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-D1z-h5eg.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-DEVpAaAP.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-D1z-h5eg.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-D1z-h5eg.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-DWjhow2W.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-DoPfNXDz.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-Dz_4fi2D.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(url, { agent: wsAgent });
|
|
68890
|
+
return new WebSocket$1(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-CWbpp23S.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-DoPfNXDz.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-NWKn8ABz.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.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
92477
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
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.OPEN;
|
|
92494
|
+
return this.ws !== null && this.ws.readyState === WebSocket$1.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.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
92504
|
+
if (this.ws.readyState === WebSocket$1.OPEN || this.ws.readyState === WebSocket$1.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(this.wsUrl, { headers: {
|
|
92514
|
+
const socket = new WebSocket$1(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-CWkRQYDj.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-CehkHxmW.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-DlhJHqj8.js";
|
|
13
13
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-CE_iqvM5.js";
|
|
14
14
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DqXRZmsL.js";
|
|
15
15
|
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-CCLeFWAg.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-CDQDCfUa.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-CDQDCfUa.js")).closePlaywrightBrowserConnection();
|
|
3648
3648
|
} catch {}
|
|
3649
3649
|
}
|
|
3650
3650
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ot as normalizeAccountId } from "./run-with-concurrency-Bt_ks0Qa.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-DP1-L-QS.js";
|
|
3
|
+
|
|
4
|
+
//#region src/imessage/accounts.ts
|
|
5
|
+
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
6
|
+
const listIMessageAccountIds = listAccountIds;
|
|
7
|
+
const resolveDefaultIMessageAccountId = resolveDefaultAccountId;
|
|
8
|
+
function resolveAccountConfig(cfg, accountId) {
|
|
9
|
+
return resolveAccountEntry(cfg.channels?.imessage?.accounts, accountId);
|
|
10
|
+
}
|
|
11
|
+
function mergeIMessageAccountConfig(cfg, accountId) {
|
|
12
|
+
const { accounts: _ignored, ...base } = cfg.channels?.imessage ?? {};
|
|
13
|
+
const account = resolveAccountConfig(cfg, accountId) ?? {};
|
|
14
|
+
return {
|
|
15
|
+
...base,
|
|
16
|
+
...account
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function resolveIMessageAccount(params) {
|
|
20
|
+
const accountId = normalizeAccountId(params.accountId);
|
|
21
|
+
const baseEnabled = params.cfg.channels?.imessage?.enabled !== false;
|
|
22
|
+
const merged = mergeIMessageAccountConfig(params.cfg, accountId);
|
|
23
|
+
const accountEnabled = merged.enabled !== false;
|
|
24
|
+
const configured = Boolean(merged.cliPath?.trim() || merged.dbPath?.trim() || merged.service || merged.region?.trim() || merged.allowFrom && merged.allowFrom.length > 0 || merged.groupAllowFrom && merged.groupAllowFrom.length > 0 || merged.dmPolicy || merged.groupPolicy || typeof merged.includeAttachments === "boolean" || merged.attachmentRoots && merged.attachmentRoots.length > 0 || merged.remoteAttachmentRoots && merged.remoteAttachmentRoots.length > 0 || typeof merged.mediaMaxMb === "number" || typeof merged.textChunkLimit === "number" || merged.groups && Object.keys(merged.groups).length > 0);
|
|
25
|
+
return {
|
|
26
|
+
accountId,
|
|
27
|
+
enabled: baseEnabled && accountEnabled,
|
|
28
|
+
name: merged.name?.trim() || void 0,
|
|
29
|
+
config: merged,
|
|
30
|
+
configured
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { resolveDefaultIMessageAccountId as n, resolveIMessageAccount as r, listIMessageAccountIds as t };
|