@qingchencloud/openclaw-zh 2026.2.12-zh.5 → 2026.2.12-zh.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{audio-preflight-BNKhW-Vt.js → audio-preflight-C1qO9t63.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/bundled/boot-md/handler.js +7 -7
- package/dist/bundled/session-memory/handler.js +7 -7
- package/dist/{chrome-BfB6JdKF.js → chrome-DBK0k-zW.js} +7 -7
- package/dist/{deliver-DwAAnv-O.js → deliver-ufxTyb_h.js} +2 -2
- package/dist/{fetch-timeout-D9vZxmn-.js → fetch-timeout-CQAXYpkf.js} +1 -1
- package/dist/{image-DYbYO_Of.js → image-Se69TxM6.js} +1 -1
- package/dist/llm-slug-generator.js +7 -7
- package/dist/{pi-embedded-C-S7ujlk.js → pi-embedded-BajpkVXG.js} +14 -14
- package/dist/{pi-embedded-helpers-BIu8IFQZ.js → pi-embedded-helpers-D6YyZfbk.js} +4 -4
- package/dist/plugin-sdk/index.js +6 -6
- package/dist/{pw-ai-FGoRVblI.js → pw-ai-BC4pMrPo.js} +1 -1
- package/dist/{runner-nc039KUI.js → runner-Dh_HAVq-.js} +3 -3
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "./paths-BZtyHNCi.js";
|
|
2
2
|
import "./agent-scope-CzIrFPCY.js";
|
|
3
3
|
import { Y as logVerbose, Z as shouldLogVerbose } from "./exec-B8lXct-k.js";
|
|
4
|
-
import "./pi-embedded-helpers-
|
|
4
|
+
import "./pi-embedded-helpers-D6YyZfbk.js";
|
|
5
5
|
import "./model-auth-a4aBSOeG.js";
|
|
6
6
|
import "./config-Bwm-jWmj.js";
|
|
7
7
|
import "./github-copilot-token-DkiRbJdR.js";
|
|
8
8
|
import "./pi-model-discovery-DqgqUyAv.js";
|
|
9
|
-
import "./chrome-
|
|
9
|
+
import "./chrome-DBK0k-zW.js";
|
|
10
10
|
import "./paths-Zbzpgrfo.js";
|
|
11
|
-
import "./image-
|
|
11
|
+
import "./image-Se69TxM6.js";
|
|
12
12
|
import "./redact-BrXLgslJ.js";
|
|
13
|
-
import "./fetch-timeout-
|
|
14
|
-
import { a as runCapability, l as isAudioAttachment, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-
|
|
13
|
+
import "./fetch-timeout-CQAXYpkf.js";
|
|
14
|
+
import { a as runCapability, l as isAudioAttachment, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-Dh_HAVq-.js";
|
|
15
15
|
|
|
16
16
|
//#region src/media-understanding/audio-preflight.ts
|
|
17
17
|
/**
|
package/dist/build-info.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "../../paths-BZtyHNCi.js";
|
|
2
2
|
import { M as normalizeAgentId, N as normalizeMainKey, P as resolveAgentIdFromSessionKey, a as resolveAgentModelPrimary, i as resolveAgentModelFallbacksOverride, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, y as ensureAgentWorkspace } from "../../agent-scope-CzIrFPCY.js";
|
|
3
3
|
import { g as DEFAULT_CHAT_CHANNEL, l as createSubsystemLogger, u as defaultRuntime } from "../../exec-B8lXct-k.js";
|
|
4
|
-
import { J as SILENT_REPLY_TOKEN, a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, m as sendMessageSignal, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "../../deliver-
|
|
5
|
-
import { C as emitAgentEvent, D as sendMessageSlack, E as sendMessageWhatsApp, S as clearAgentRunContext, _ as clearSessionAuthProfileOverride, a as getCliSessionId, b as resolveAgentTimeoutMs, c as resolveOutboundTarget, d as deriveSessionTotalTokens, f as hasNonzeroUsage, g as lookupContextTokens, h as getSkillsSnapshotVersion, i as sendMessageDiscord, l as resolveSessionDeliveryTarget, m as getRemoteSkillEligibility, n as sendMessageIMessage, o as setCliSessionId, p as resolveSendPolicy, r as sendMessageTelegram, s as runCliAgent, t as runEmbeddedPiAgent, u as runWithModelFallback, v as applyModelOverrideToSessionEntry, w as registerAgentRunContext, x as AGENT_LANE_NESTED, y as applyVerboseOverride } from "../../pi-embedded-
|
|
6
|
-
import { $ as updateSessionStore, Gt as buildWorkspaceSkillSnapshot, Ln as getChannelPlugin, Y as loadSessionStore, a as formatXHighModelHint, ct as normalizeAccountId, d as normalizeVerboseLevel, dt as evaluateSessionFreshness, ft as resolveChannelResetConfig, gn as isInternalMessageChannel, hn as isGatewayMessageChannel, i as formatThinkingLevels, l as normalizeThinkLevel, mn as isDeliverableMessageChannel, mt as resolveSessionResetType, p as supportsXHighThinking, pn as INTERNAL_MESSAGE_CHANNEL, pt as resolveSessionResetPolicy, ut as resolveSessionKey, vt as resolveExplicitAgentSessionKey, xn as resolveMessageChannel, yn as normalizeMessageChannel, yt as resolveMainSessionKey, zn as normalizeChannelId } from "../../pi-embedded-helpers-
|
|
4
|
+
import { J as SILENT_REPLY_TOKEN, a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, m as sendMessageSignal, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "../../deliver-ufxTyb_h.js";
|
|
5
|
+
import { C as emitAgentEvent, D as sendMessageSlack, E as sendMessageWhatsApp, S as clearAgentRunContext, _ as clearSessionAuthProfileOverride, a as getCliSessionId, b as resolveAgentTimeoutMs, c as resolveOutboundTarget, d as deriveSessionTotalTokens, f as hasNonzeroUsage, g as lookupContextTokens, h as getSkillsSnapshotVersion, i as sendMessageDiscord, l as resolveSessionDeliveryTarget, m as getRemoteSkillEligibility, n as sendMessageIMessage, o as setCliSessionId, p as resolveSendPolicy, r as sendMessageTelegram, s as runCliAgent, t as runEmbeddedPiAgent, u as runWithModelFallback, v as applyModelOverrideToSessionEntry, w as registerAgentRunContext, x as AGENT_LANE_NESTED, y as applyVerboseOverride } from "../../pi-embedded-BajpkVXG.js";
|
|
6
|
+
import { $ as updateSessionStore, Gt as buildWorkspaceSkillSnapshot, Ln as getChannelPlugin, Y as loadSessionStore, a as formatXHighModelHint, ct as normalizeAccountId, d as normalizeVerboseLevel, dt as evaluateSessionFreshness, ft as resolveChannelResetConfig, gn as isInternalMessageChannel, hn as isGatewayMessageChannel, i as formatThinkingLevels, l as normalizeThinkLevel, mn as isDeliverableMessageChannel, mt as resolveSessionResetType, p as supportsXHighThinking, pn as INTERNAL_MESSAGE_CHANNEL, pt as resolveSessionResetPolicy, ut as resolveSessionKey, vt as resolveExplicitAgentSessionKey, xn as resolveMessageChannel, yn as normalizeMessageChannel, yt as resolveMainSessionKey, zn as normalizeChannelId } from "../../pi-embedded-helpers-D6YyZfbk.js";
|
|
7
7
|
import { I as DEFAULT_CONTEXT_TOKENS, L as DEFAULT_MODEL, O as resolveThinkingDefault, R as DEFAULT_PROVIDER, S as modelKey, T as resolveConfiguredModelRef, h as ensureAuthProfileStore, v as buildAllowedModelSet, x as isCliProvider } from "../../model-auth-a4aBSOeG.js";
|
|
8
8
|
import { t as formatCliCommand } from "../../command-format-qUVxzqYm.js";
|
|
9
9
|
import { t as loadConfig } from "../../config-Bwm-jWmj.js";
|
|
10
10
|
import "../../github-copilot-token-DkiRbJdR.js";
|
|
11
11
|
import "../../pi-model-discovery-DqgqUyAv.js";
|
|
12
|
-
import "../../chrome-
|
|
12
|
+
import "../../chrome-DBK0k-zW.js";
|
|
13
13
|
import { n as resolveSessionFilePath, o as resolveStorePath } from "../../paths-Zbzpgrfo.js";
|
|
14
|
-
import "../../image-
|
|
14
|
+
import "../../image-Se69TxM6.js";
|
|
15
15
|
import "../../manager-uvWYLB0i.js";
|
|
16
16
|
import "../../sqlite-CVNCxBL9.js";
|
|
17
17
|
import "../../redact-BrXLgslJ.js";
|
|
18
|
-
import "../../fetch-timeout-
|
|
19
|
-
import { s as loadModelCatalog } from "../../runner-
|
|
18
|
+
import "../../fetch-timeout-CQAXYpkf.js";
|
|
19
|
+
import { s as loadModelCatalog } from "../../runner-Dh_HAVq-.js";
|
|
20
20
|
import "../../login-qr-DJ1Ty1b5.js";
|
|
21
21
|
import fs from "node:fs/promises";
|
|
22
22
|
import path from "node:path";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { s as resolveStateDir } from "../../paths-BZtyHNCi.js";
|
|
2
2
|
import { P as resolveAgentIdFromSessionKey, s as resolveAgentWorkspaceDir } from "../../agent-scope-CzIrFPCY.js";
|
|
3
3
|
import { l as createSubsystemLogger } from "../../exec-B8lXct-k.js";
|
|
4
|
-
import "../../deliver-
|
|
5
|
-
import { T as hasInterSessionUserProvenance } from "../../pi-embedded-
|
|
6
|
-
import "../../pi-embedded-helpers-
|
|
4
|
+
import "../../deliver-ufxTyb_h.js";
|
|
5
|
+
import { T as hasInterSessionUserProvenance } from "../../pi-embedded-BajpkVXG.js";
|
|
6
|
+
import "../../pi-embedded-helpers-D6YyZfbk.js";
|
|
7
7
|
import "../../model-auth-a4aBSOeG.js";
|
|
8
8
|
import "../../config-Bwm-jWmj.js";
|
|
9
9
|
import "../../github-copilot-token-DkiRbJdR.js";
|
|
10
10
|
import "../../pi-model-discovery-DqgqUyAv.js";
|
|
11
|
-
import "../../chrome-
|
|
11
|
+
import "../../chrome-DBK0k-zW.js";
|
|
12
12
|
import "../../paths-Zbzpgrfo.js";
|
|
13
|
-
import "../../image-
|
|
13
|
+
import "../../image-Se69TxM6.js";
|
|
14
14
|
import "../../manager-uvWYLB0i.js";
|
|
15
15
|
import "../../sqlite-CVNCxBL9.js";
|
|
16
16
|
import "../../redact-BrXLgslJ.js";
|
|
17
|
-
import "../../fetch-timeout-
|
|
18
|
-
import "../../runner-
|
|
17
|
+
import "../../fetch-timeout-CQAXYpkf.js";
|
|
18
|
+
import "../../runner-Dh_HAVq-.js";
|
|
19
19
|
import "../../login-qr-DJ1Ty1b5.js";
|
|
20
20
|
import { generateSlugViaLLM } from "../../llm-slug-generator.js";
|
|
21
21
|
import fs from "node:fs/promises";
|
|
@@ -8,7 +8,7 @@ import fs$1 from "node:fs";
|
|
|
8
8
|
import { execFileSync, spawn } from "node:child_process";
|
|
9
9
|
import { randomBytes } from "node:crypto";
|
|
10
10
|
import { createServer } from "node:http";
|
|
11
|
-
import WebSocket, { WebSocketServer } from "ws";
|
|
11
|
+
import WebSocket$1, { WebSocketServer } from "ws";
|
|
12
12
|
import net from "node:net";
|
|
13
13
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
14
14
|
|
|
@@ -173,7 +173,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
173
173
|
let nextExtensionId = 1;
|
|
174
174
|
const sendToExtension = async (payload) => {
|
|
175
175
|
const ws = extensionWs;
|
|
176
|
-
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
176
|
+
if (!ws || ws.readyState !== WebSocket$1.OPEN) throw new Error("Chrome extension not connected");
|
|
177
177
|
ws.send(JSON.stringify(payload));
|
|
178
178
|
return await new Promise((resolve, reject) => {
|
|
179
179
|
const timer = setTimeout(() => {
|
|
@@ -190,12 +190,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
190
190
|
const broadcastToCdpClients = (evt) => {
|
|
191
191
|
const msg = JSON.stringify(evt);
|
|
192
192
|
for (const ws of cdpClients) {
|
|
193
|
-
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
193
|
+
if (ws.readyState !== WebSocket$1.OPEN) continue;
|
|
194
194
|
ws.send(msg);
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
197
|
const sendResponseToCdp = (ws, res) => {
|
|
198
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
198
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
199
199
|
ws.send(JSON.stringify(res));
|
|
200
200
|
};
|
|
201
201
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -415,7 +415,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
415
415
|
wssExtension.on("connection", (ws) => {
|
|
416
416
|
extensionWs = ws;
|
|
417
417
|
const ping = setInterval(() => {
|
|
418
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
418
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
419
419
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
420
420
|
}, 5e3);
|
|
421
421
|
ws.on("message", (data) => {
|
|
@@ -712,7 +712,7 @@ async function fetchJson(url, timeoutMs = 1500, init) {
|
|
|
712
712
|
}
|
|
713
713
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
714
714
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
715
|
-
const ws = new WebSocket(wsUrl, {
|
|
715
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
716
716
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
717
717
|
...Object.keys(headers).length ? { headers } : {}
|
|
718
718
|
});
|
|
@@ -1847,7 +1847,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1847
1847
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1848
1848
|
return await new Promise((resolve) => {
|
|
1849
1849
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1850
|
-
const ws = new WebSocket(wsUrl, {
|
|
1850
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
1851
1851
|
handshakeTimeout: timeoutMs,
|
|
1852
1852
|
...Object.keys(headers).length ? { headers } : {}
|
|
1853
1853
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { j as normalizeAccountId$1 } from "./agent-scope-CzIrFPCY.js";
|
|
3
3
|
import { Y as logVerbose, Z as shouldLogVerbose, k as escapeRegExp, l as createSubsystemLogger, x as getActivePluginRegistry, z as resolveUserPath } from "./exec-B8lXct-k.js";
|
|
4
|
-
import { En as extensionForMime, Ft as hasAlphaChannel, In as resolveSignalAccount, It as optimizeImageToPng, J as resolveMirroredTranscriptText, Ln as getChannelPlugin, Lt as resizeToJpeg, Nn as maxBytesForKind, Nt as convertHeicToJpeg, Pn as mediaKindFromMime, Tn as detectMime, m as isMessagingToolDuplicate, pn as INTERNAL_MESSAGE_CHANNEL, q as appendAssistantMessageToSessionTranscript, xt as getChannelDock, zn as normalizeChannelId, zt as saveMediaBuffer } from "./pi-embedded-helpers-
|
|
4
|
+
import { En as extensionForMime, Ft as hasAlphaChannel, In as resolveSignalAccount, It as optimizeImageToPng, J as resolveMirroredTranscriptText, Ln as getChannelPlugin, Lt as resizeToJpeg, Nn as maxBytesForKind, Nt as convertHeicToJpeg, Pn as mediaKindFromMime, Tn as detectMime, m as isMessagingToolDuplicate, pn as INTERNAL_MESSAGE_CHANNEL, q as appendAssistantMessageToSessionTranscript, xt as getChannelDock, zn as normalizeChannelId, zt as saveMediaBuffer } from "./pi-embedded-helpers-D6YyZfbk.js";
|
|
5
5
|
import { t as loadConfig } from "./config-Bwm-jWmj.js";
|
|
6
|
-
import { r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-
|
|
6
|
+
import { r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-CQAXYpkf.js";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as logWarn } from "./exec-B8lXct-k.js";
|
|
2
|
-
import { Bt as SsrFBlockedError, En as extensionForMime, Ht as createPinnedDispatcher, Tn as detectMime, Ut as resolvePinnedHostnameWithPolicy, Vt as closeDispatcher } from "./pi-embedded-helpers-
|
|
2
|
+
import { Bt as SsrFBlockedError, En as extensionForMime, Ht as createPinnedDispatcher, Tn as detectMime, Ut as resolvePinnedHostnameWithPolicy, Vt as closeDispatcher } from "./pi-embedded-helpers-D6YyZfbk.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/net/fetch-guard.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { M as isRecord, V as shortenHomeInString } from "./exec-B8lXct-k.js";
|
|
3
|
-
import { U as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
3
|
+
import { U as sanitizeUserFacingText } from "./pi-embedded-helpers-D6YyZfbk.js";
|
|
4
4
|
import { A as normalizeProviders, B as normalizeSecretInput, M as resolveImplicitCopilotProvider, N as resolveImplicitProviders, _ as resolveOpenClawAgentDir, j as resolveImplicitBedrockProvider, r as requireApiKey, t as getApiKeyForModel } from "./model-auth-a4aBSOeG.js";
|
|
5
5
|
import { t as loadConfig } from "./config-Bwm-jWmj.js";
|
|
6
6
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DqgqUyAv.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import "./paths-BZtyHNCi.js";
|
|
2
2
|
import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-CzIrFPCY.js";
|
|
3
3
|
import "./exec-B8lXct-k.js";
|
|
4
|
-
import "./deliver-
|
|
5
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
6
|
-
import "./pi-embedded-helpers-
|
|
4
|
+
import "./deliver-ufxTyb_h.js";
|
|
5
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-BajpkVXG.js";
|
|
6
|
+
import "./pi-embedded-helpers-D6YyZfbk.js";
|
|
7
7
|
import "./model-auth-a4aBSOeG.js";
|
|
8
8
|
import "./config-Bwm-jWmj.js";
|
|
9
9
|
import "./github-copilot-token-DkiRbJdR.js";
|
|
10
10
|
import "./pi-model-discovery-DqgqUyAv.js";
|
|
11
|
-
import "./chrome-
|
|
11
|
+
import "./chrome-DBK0k-zW.js";
|
|
12
12
|
import "./paths-Zbzpgrfo.js";
|
|
13
|
-
import "./image-
|
|
13
|
+
import "./image-Se69TxM6.js";
|
|
14
14
|
import "./manager-uvWYLB0i.js";
|
|
15
15
|
import "./sqlite-CVNCxBL9.js";
|
|
16
16
|
import "./redact-BrXLgslJ.js";
|
|
17
|
-
import "./fetch-timeout-
|
|
18
|
-
import "./runner-
|
|
17
|
+
import "./fetch-timeout-CQAXYpkf.js";
|
|
18
|
+
import "./runner-Dh_HAVq-.js";
|
|
19
19
|
import "./login-qr-DJ1Ty1b5.js";
|
|
20
20
|
import fs from "node:fs/promises";
|
|
21
21
|
import os from "node:os";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { a as resolveOAuthDir, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-BZtyHNCi.js";
|
|
2
2
|
import { A as classifySessionKeyShape, B as resolveThreadParentSessionKey, D as buildAgentMainSessionKey, E as DEFAULT_MAIN_KEY, F as resolveThreadSessionKeys, I as sanitizeAgentId, L as isAcpSessionKey, M as normalizeAgentId, N as normalizeMainKey, O as buildAgentPeerSessionKey, P as resolveAgentIdFromSessionKey, R as isSubagentSessionKey, S as resolveOpenClawPackageRoot, T as DEFAULT_AGENT_ID, b as filterBootstrapFilesForSession, c as resolveDefaultAgentId, f as DEFAULT_AGENT_WORKSPACE_DIR, i as resolveAgentModelFallbacksOverride, j as normalizeAccountId$3, k as buildGroupHistoryKey, l as resolveSessionAgentId, n as resolveAgentConfig, o as resolveAgentSkillsFilter, p as DEFAULT_BOOTSTRAP_FILENAME, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentIds, w as DEFAULT_ACCOUNT_ID$1, x as loadWorkspaceBootstrapFiles, y as ensureAgentWorkspace, z as parseAgentSessionKey } from "./agent-scope-CzIrFPCY.js";
|
|
3
3
|
import { $ as warn, A as formatTerminalLink, B as safeParseJson, C as setActivePluginRegistry, E as clampInt, F as normalizeE164, G as toWhatsappJid, H as shortenHomePath, J as info, K as truncateUtf16Safe, M as isRecord, N as isSelfChatMode, O as ensureDir$3, P as jidToE164, Q as success, R as resolveJidToE164, S as requireActivePluginRegistry, T as clamp, U as sleep, V as shortenHomeInString, W as sliceUtf16Safe, X as setVerbose, Y as logVerbose, Z as shouldLogVerbose, a as logDebug, at as normalizeLogLevel, c as logWarn, d as clearActiveProgressLine, et as colorize, f as registerActiveProgressLine, h as CHAT_CHANNEL_ORDER, i as spawnWithFallback, j as isPlainObject, k as escapeRegExp, l as createSubsystemLogger, n as runExec, nt as theme, o as logError, p as unregisterActiveProgressLine, q as danger, r as formatSpawnError, rt as getChildLogger, s as logInfo, t as runCommandWithTimeout, tt as isRich, u as defaultRuntime, v as normalizeAnyChannelId, w as CONFIG_DIR, x as getActivePluginRegistry, y as normalizeChannelId, z as resolveUserPath } from "./exec-B8lXct-k.js";
|
|
4
|
-
import { A as markdownToIR, B as resolveChunkMode, C as throwIfAborted, D as resolveFetch, E as parseInlineDirectives$1, F as chunkByNewline, G as getGlobalHookRunner, H as findFenceSpanAt, I as chunkMarkdownText, J as SILENT_REPLY_TOKEN, K as initializeGlobalHookRunner, L as chunkMarkdownTextWithMode, M as loadWebMedia, N as loadWebMediaRaw, O as wrapFetchWithAbortSignal, P as resolveMarkdownTableMode, R as chunkText, S as normalizeTargetForProvider, T as splitMediaFromOutput, U as isSafeFenceBreak, V as resolveTextChunkLimit, W as parseFenceSpans, Y as isSilentReplyText, _ as signalCheck, b as buildTargetResolverSignature, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as sendTypingSignal, h as sendReadReceiptSignal, j as markdownToIRWithMeta, k as chunkMarkdownIR, l as filterMessagingToolDuplicates, m as sendMessageSignal, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, q as HEARTBEAT_TOKEN, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as signalRpcRequest, w as parseReplyDirectives, x as normalizeChannelTargetInput, y as streamSignalEvents, z as chunkTextWithMode } from "./deliver-
|
|
5
|
-
import { $ as updateSessionStore, $n as normalizeDiscordToken, $t as applySkillEnvOverridesFromSnapshot, A as isBillingAssistantError, An as isGifMedia, At as registerBrowserRoutes, B as isTransientHttpError, Bn as isWhatsAppGroupJid, Bt as SsrFBlockedError, C as BILLING_ERROR_USER_MESSAGE, Cn as GATEWAY_CLIENT_MODES, Ct as resolveIMessageAccount, D as formatRawAssistantErrorForUi, Dn as getFileExtension, Dt as resolveConversationLabel, E as formatBillingErrorMessage, En as extensionForMime, Et as resolveChannelGroupToolsPolicy, F as isFailoverErrorMessage, Fn as listEnabledSignalAccounts, G as resolveSandboxContext, Gn as resolveTelegramToken, Gt as buildWorkspaceSkillSnapshot, H as parseImageSizeError, Hn as listEnabledTelegramAccounts, I as isLikelyContextOverflowError, In as resolveSignalAccount, Jn as resolveSlackAppToken, Jt as resolvePluginSkillDirs, K as resolveSandboxRuntimeStatus, Kn as listBindings, Kt as loadWorkspaceSkillEntries, L as isRateLimitAssistantError, Ln as getChannelPlugin, Lt as resizeToJpeg, M as isCompactionFailureError, Mn as MAX_IMAGE_BYTES, Mt as resolveProfile, N as isContextOverflowError, O as getApiErrorPayloadFingerprint, On as imageMimeFromFormat, Ot as resolveGroupSessionKey, P as isFailoverAssistantError, Pn as mediaKindFromMime, Pt as getImageMetadata, Q as updateLastRoute, Qn as resolveDiscordAccount, Qt as applySkillEnvOverrides, R as isRawApiErrorPayload, Rn as listChannelPlugins, Rt as getMediaDir, S as isGoogleModelApi, Sn as GATEWAY_CLIENT_IDS, St as listChannelDocks, T as formatAssistantErrorText, Tn as detectMime, Tt as resolveChannelGroupRequireMention, U as sanitizeUserFacingText, Un as listTelegramAccountIds, V as parseImageDimensionError, Vn as normalizeWhatsAppTarget, W as ensureSandboxWorkspaceForSession, Wn as resolveTelegramAccount, Wt as buildWorkspaceSkillCommandSpecs, X as readSessionUpdatedAt, Xn as normalizeChatType, Xt as assertSandboxPath, Y as loadSessionStore, Yn as resolveSlackBotToken, Yt as assertMediaNotDataUrl, Z as recordSessionMetaFromInbound, Zn as listEnabledDiscordAccounts, Zt as resolveSandboxedMediaSource, _ as sanitizeSessionMessagesImages, _n as isMarkdownCapableMessageChannel, _t as resolveFreshSessionTotalTokens, a as formatXHighModelHint, an as expandToolGroups, at as mergeDeliveryContext, b as downgradeOpenAIReasoningBlocks, bn as resolveGatewayMessageChannel, bt as deriveSessionMetaPatch, c as normalizeReasoningLevel, cn as stripPluginOnlyAllowlist, d as normalizeVerboseLevel, dn as resolveBootstrapMaxChars, dt as evaluateSessionFreshness, en as resolveSandboxConfigForAgent, et as updateSessionStoreEntry, f as resolveResponseUsageMode, fn as sanitizeGoogleTurnOrdering, ft as resolveChannelResetConfig, g as normalizeTextForComparison, gn as isInternalMessageChannel, gt as DEFAULT_RESET_TRIGGERS, h as isMessagingToolDuplicateNormalized, ht as resolveThreadFlag, i as formatThinkingLevels, in as expandPolicyWithPluginGroups, it as deliveryContextKey, j as isCloudCodeAssistFormatError, jt as resolveBrowserConfig, k as isAuthAssistantError, kn as isAudioFileName, kt as createBrowserRouteContext, l as normalizeThinkLevel, ln as buildBootstrapContextFiles, lt as acquireSessionWriteLock, mn as isDeliverableMessageChannel, mt as resolveSessionResetType, n as validateGeminiTurns, nn as buildPluginToolGroups, nt as resolveCacheTtlMs$1, o as listThinkingLevels, on as normalizeToolName, ot as normalizeDeliveryContext, p as supportsXHighThinking, pn as INTERNAL_MESSAGE_CHANNEL, pt as resolveSessionResetPolicy, q as appendAssistantMessageToSessionTranscript, qn as resolveSlackAccount, qt as resolveSkillsPromptForRun, r as pickFallbackThinkingLevel, rn as collectExplicitAllowlist, rt as deliveryContextFromSession, s as normalizeElevatedLevel, sn as resolveToolProfilePolicy, st as normalizeSessionDeliveryFields, t as validateAnthropicTurns, tn as applyOwnerOnlyToolPolicy, tt as isCacheEnabled, u as normalizeUsageDisplay, un as ensureSessionHeader, ut as resolveSessionKey$1, v as sanitizeImageBlocks, vn as listDeliverableMessageChannels, w as classifyFailoverReason, wn as GATEWAY_CLIENT_NAMES, wt as resolveChannelGroupPolicy, x as isAntigravityClaude, xn as resolveMessageChannel, xt as getChannelDock, y as sanitizeToolResultImages, yn as normalizeMessageChannel, yt as resolveMainSessionKey, z as isTimeoutErrorMessage, zn as normalizeChannelId$1, zt as saveMediaBuffer } from "./pi-embedded-helpers-
|
|
4
|
+
import { A as markdownToIR, B as resolveChunkMode, C as throwIfAborted, D as resolveFetch, E as parseInlineDirectives$1, F as chunkByNewline, G as getGlobalHookRunner, H as findFenceSpanAt, I as chunkMarkdownText, J as SILENT_REPLY_TOKEN, K as initializeGlobalHookRunner, L as chunkMarkdownTextWithMode, M as loadWebMedia, N as loadWebMediaRaw, O as wrapFetchWithAbortSignal, P as resolveMarkdownTableMode, R as chunkText, S as normalizeTargetForProvider, T as splitMediaFromOutput, U as isSafeFenceBreak, V as resolveTextChunkLimit, W as parseFenceSpans, Y as isSilentReplyText, _ as signalCheck, b as buildTargetResolverSignature, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as sendTypingSignal, h as sendReadReceiptSignal, j as markdownToIRWithMeta, k as chunkMarkdownIR, l as filterMessagingToolDuplicates, m as sendMessageSignal, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, q as HEARTBEAT_TOKEN, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as signalRpcRequest, w as parseReplyDirectives, x as normalizeChannelTargetInput, y as streamSignalEvents, z as chunkTextWithMode } from "./deliver-ufxTyb_h.js";
|
|
5
|
+
import { $ as updateSessionStore, $n as normalizeDiscordToken, $t as applySkillEnvOverridesFromSnapshot, A as isBillingAssistantError, An as isGifMedia, At as registerBrowserRoutes, B as isTransientHttpError, Bn as isWhatsAppGroupJid, Bt as SsrFBlockedError, C as BILLING_ERROR_USER_MESSAGE, Cn as GATEWAY_CLIENT_MODES, Ct as resolveIMessageAccount, D as formatRawAssistantErrorForUi, Dn as getFileExtension, Dt as resolveConversationLabel, E as formatBillingErrorMessage, En as extensionForMime, Et as resolveChannelGroupToolsPolicy, F as isFailoverErrorMessage, Fn as listEnabledSignalAccounts, G as resolveSandboxContext, Gn as resolveTelegramToken, Gt as buildWorkspaceSkillSnapshot, H as parseImageSizeError, Hn as listEnabledTelegramAccounts, I as isLikelyContextOverflowError, In as resolveSignalAccount, Jn as resolveSlackAppToken, Jt as resolvePluginSkillDirs, K as resolveSandboxRuntimeStatus, Kn as listBindings, Kt as loadWorkspaceSkillEntries, L as isRateLimitAssistantError, Ln as getChannelPlugin, Lt as resizeToJpeg, M as isCompactionFailureError, Mn as MAX_IMAGE_BYTES, Mt as resolveProfile, N as isContextOverflowError, O as getApiErrorPayloadFingerprint, On as imageMimeFromFormat, Ot as resolveGroupSessionKey, P as isFailoverAssistantError, Pn as mediaKindFromMime, Pt as getImageMetadata, Q as updateLastRoute, Qn as resolveDiscordAccount, Qt as applySkillEnvOverrides, R as isRawApiErrorPayload, Rn as listChannelPlugins, Rt as getMediaDir, S as isGoogleModelApi, Sn as GATEWAY_CLIENT_IDS, St as listChannelDocks, T as formatAssistantErrorText, Tn as detectMime, Tt as resolveChannelGroupRequireMention, U as sanitizeUserFacingText, Un as listTelegramAccountIds, V as parseImageDimensionError, Vn as normalizeWhatsAppTarget, W as ensureSandboxWorkspaceForSession, Wn as resolveTelegramAccount, Wt as buildWorkspaceSkillCommandSpecs, X as readSessionUpdatedAt, Xn as normalizeChatType, Xt as assertSandboxPath, Y as loadSessionStore, Yn as resolveSlackBotToken, Yt as assertMediaNotDataUrl, Z as recordSessionMetaFromInbound, Zn as listEnabledDiscordAccounts, Zt as resolveSandboxedMediaSource, _ as sanitizeSessionMessagesImages, _n as isMarkdownCapableMessageChannel, _t as resolveFreshSessionTotalTokens, a as formatXHighModelHint, an as expandToolGroups, at as mergeDeliveryContext, b as downgradeOpenAIReasoningBlocks, bn as resolveGatewayMessageChannel, bt as deriveSessionMetaPatch, c as normalizeReasoningLevel, cn as stripPluginOnlyAllowlist, d as normalizeVerboseLevel, dn as resolveBootstrapMaxChars, dt as evaluateSessionFreshness, en as resolveSandboxConfigForAgent, et as updateSessionStoreEntry, f as resolveResponseUsageMode, fn as sanitizeGoogleTurnOrdering, ft as resolveChannelResetConfig, g as normalizeTextForComparison, gn as isInternalMessageChannel, gt as DEFAULT_RESET_TRIGGERS, h as isMessagingToolDuplicateNormalized, ht as resolveThreadFlag, i as formatThinkingLevels, in as expandPolicyWithPluginGroups, it as deliveryContextKey, j as isCloudCodeAssistFormatError, jt as resolveBrowserConfig, k as isAuthAssistantError, kn as isAudioFileName, kt as createBrowserRouteContext, l as normalizeThinkLevel, ln as buildBootstrapContextFiles, lt as acquireSessionWriteLock, mn as isDeliverableMessageChannel, mt as resolveSessionResetType, n as validateGeminiTurns, nn as buildPluginToolGroups, nt as resolveCacheTtlMs$1, o as listThinkingLevels, on as normalizeToolName, ot as normalizeDeliveryContext, p as supportsXHighThinking, pn as INTERNAL_MESSAGE_CHANNEL, pt as resolveSessionResetPolicy, q as appendAssistantMessageToSessionTranscript, qn as resolveSlackAccount, qt as resolveSkillsPromptForRun, r as pickFallbackThinkingLevel, rn as collectExplicitAllowlist, rt as deliveryContextFromSession, s as normalizeElevatedLevel, sn as resolveToolProfilePolicy, st as normalizeSessionDeliveryFields, t as validateAnthropicTurns, tn as applyOwnerOnlyToolPolicy, tt as isCacheEnabled, u as normalizeUsageDisplay, un as ensureSessionHeader, ut as resolveSessionKey$1, v as sanitizeImageBlocks, vn as listDeliverableMessageChannels, w as classifyFailoverReason, wn as GATEWAY_CLIENT_NAMES, wt as resolveChannelGroupPolicy, x as isAntigravityClaude, xn as resolveMessageChannel, xt as getChannelDock, y as sanitizeToolResultImages, yn as normalizeMessageChannel, yt as resolveMainSessionKey, z as isTimeoutErrorMessage, zn as normalizeChannelId$1, zt as saveMediaBuffer } from "./pi-embedded-helpers-D6YyZfbk.js";
|
|
6
6
|
import { B as normalizeSecretInput, C as normalizeProviderId, D as resolveModelRefFromString, E as resolveDefaultModelForAgent, F as getShengSuanYunModalityModels, I as DEFAULT_CONTEXT_TOKENS, K as isTruthyEnvValue, L as DEFAULT_MODEL, O as resolveThinkingDefault, P as SHENGSUANYUN_BASE_URL, R as DEFAULT_PROVIDER, S as modelKey, T as resolveConfiguredModelRef, U as resolveShellEnvFallbackTimeoutMs, V as getShellPathFromLoginShell, _ as resolveOpenClawAgentDir, a as resolveEnvApiKey, b as buildModelAliasIndex, c as resolveAuthProfileOrder, d as markAuthProfileUsed, f as resolveApiKeyForProfile, g as resolveAuthStorePathForDisplay, h as ensureAuthProfileStore, i as resolveApiKeyForProvider, l as isProfileInCooldown, m as markAuthProfileGood, n as getCustomProviderApiKey, o as resolveModelAuthMode, p as listProfilesForProvider, q as parseBooleanValue$1, r as requireApiKey, t as getApiKeyForModel, u as markAuthProfileFailure, v as buildAllowedModelSet, x as isCliProvider, y as buildConfiguredAllowlistKeys, z as resolveAuthProfileDisplayLabel } from "./model-auth-a4aBSOeG.js";
|
|
7
7
|
import { n as resolveCliName, t as formatCliCommand } from "./command-format-qUVxzqYm.js";
|
|
8
8
|
import { A as VERSION, B as webAuthExists, C as setConfigOverride, D as setConfigValueAtPath, E as parseConfigPath, I as readWebSelfId, M as getWebAuthAgeMs, N as logWebSelfId, O as unsetConfigValueAtPath, P as logoutWeb, S as resetConfigOverrides, T as getConfigValueAtPath, _ as applyTestPluginDefaults, a as validateConfigObjectWithPlugins, b as resolveMemorySlotDecision, c as normalizeTelegramCommandName, d as parseDurationMs, f as validateJsonSchemaValue, i as writeConfigFile, j as resolveWhatsAppAccount, k as resolveAgentMaxConcurrent, l as resolveTelegramCustomCommands, m as discoverOpenClawPlugins, n as readConfigFileSnapshot, p as loadPluginManifestRegistry, r as resolveConfigSnapshotHash, s as TELEGRAM_COMMAND_NAME_PATTERN, t as loadConfig, u as isSafeExecutableValue, v as normalizePluginsConfig, w as unsetConfigOverride, x as getConfigOverrides, y as resolveEnableState } from "./config-Bwm-jWmj.js";
|
|
9
9
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-DkiRbJdR.js";
|
|
10
10
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DqgqUyAv.js";
|
|
11
|
-
import { S as pickPrimaryTailnetIPv4, T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer, x as pickPrimaryLanIPv4, y as rawDataToString } from "./chrome-
|
|
11
|
+
import { S as pickPrimaryTailnetIPv4, T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer, x as pickPrimaryLanIPv4, y as rawDataToString } from "./chrome-DBK0k-zW.js";
|
|
12
12
|
import { n as formatErrorMessage, r as formatUncaughtError, t as extractErrorCode } from "./errors-B91HIDPD.js";
|
|
13
13
|
import { a as resolveSessionTranscriptsDirForAgent, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveStorePath, r as resolveSessionFilePathOptions } from "./paths-Zbzpgrfo.js";
|
|
14
14
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BHS7QoRl.js";
|
|
15
|
-
import { _ as stripThinkingTagsFromText, a as decodeDataUrl, b as ensureOpenClawModelsJson, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractAssistantThinking, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as resolveToolDisplay, y as stripReasoningTagsFromText } from "./image-
|
|
15
|
+
import { _ as stripThinkingTagsFromText, a as decodeDataUrl, b as ensureOpenClawModelsJson, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractAssistantThinking, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as resolveToolDisplay, y as stripReasoningTagsFromText } from "./image-Se69TxM6.js";
|
|
16
16
|
import { i as resolveMemorySearchConfig, n as resolveRetryConfig, r as retryAsync } from "./manager-uvWYLB0i.js";
|
|
17
17
|
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-CVNCxBL9.js";
|
|
18
18
|
import { t as redactSensitiveText } from "./redact-BrXLgslJ.js";
|
|
19
|
-
import { i as fetchWithSsrFGuard, r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-
|
|
20
|
-
import { _ as applyTemplate, a as runCapability, c as modelSupportsVision, d as registerUnhandledRejectionHandler, f as resolveConcurrency, g as CLI_OUTPUT_MAX_BUFFER, h as resolveMediaUnderstandingScope, i as resolveAutoImageModel, m as normalizeMediaUnderstandingChatType, n as createMediaAttachmentCache, o as findModelInCatalog, p as resolveTimeoutMs$1, r as normalizeMediaAttachments, s as loadModelCatalog, t as buildProviderRegistry, u as resolveAttachmentKind } from "./runner-
|
|
19
|
+
import { i as fetchWithSsrFGuard, r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-CQAXYpkf.js";
|
|
20
|
+
import { _ as applyTemplate, a as runCapability, c as modelSupportsVision, d as registerUnhandledRejectionHandler, f as resolveConcurrency, g as CLI_OUTPUT_MAX_BUFFER, h as resolveMediaUnderstandingScope, i as resolveAutoImageModel, m as normalizeMediaUnderstandingChatType, n as createMediaAttachmentCache, o as findModelInCatalog, p as resolveTimeoutMs$1, r as normalizeMediaAttachments, s as loadModelCatalog, t as buildProviderRegistry, u as resolveAttachmentKind } from "./runner-Dh_HAVq-.js";
|
|
21
21
|
import { a as formatError$1, i as createWaSocket, n as startWebLoginWithQr, o as getStatusCode$1, r as waitForWebLogin, s as waitForWaConnection } from "./login-qr-DJ1Ty1b5.js";
|
|
22
22
|
import { createRequire } from "node:module";
|
|
23
23
|
import * as fs$2 from "node:fs/promises";
|
|
@@ -38,7 +38,7 @@ import crypto, { X509Certificate, randomUUID } from "node:crypto";
|
|
|
38
38
|
import AjvPkg from "ajv";
|
|
39
39
|
import { createServer } from "node:http";
|
|
40
40
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
41
|
-
import { WebSocket
|
|
41
|
+
import { WebSocket } from "ws";
|
|
42
42
|
import * as net$1 from "node:net";
|
|
43
43
|
import net from "node:net";
|
|
44
44
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
@@ -8149,7 +8149,7 @@ var GatewayClient = class {
|
|
|
8149
8149
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
8150
8150
|
});
|
|
8151
8151
|
}
|
|
8152
|
-
this.ws = new WebSocket
|
|
8152
|
+
this.ws = new WebSocket(url, wsOptions);
|
|
8153
8153
|
this.ws.on("open", () => {
|
|
8154
8154
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
8155
8155
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -8353,7 +8353,7 @@ var GatewayClient = class {
|
|
|
8353
8353
|
return null;
|
|
8354
8354
|
}
|
|
8355
8355
|
async request(method, params, opts) {
|
|
8356
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
8356
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
8357
8357
|
const id = randomUUID();
|
|
8358
8358
|
const frame = {
|
|
8359
8359
|
type: "req",
|
|
@@ -9278,7 +9278,7 @@ async function routeReply(params) {
|
|
|
9278
9278
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
9279
9279
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
9280
9280
|
try {
|
|
9281
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
9281
|
+
const { deliverOutboundPayloads } = await import("./deliver-ufxTyb_h.js").then((n) => n.n);
|
|
9282
9282
|
return {
|
|
9283
9283
|
ok: true,
|
|
9284
9284
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -39598,7 +39598,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
39598
39598
|
return;
|
|
39599
39599
|
}
|
|
39600
39600
|
try {
|
|
39601
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
39601
|
+
const { deliverOutboundPayloads } = await import("./deliver-ufxTyb_h.js").then((n) => n.n);
|
|
39602
39602
|
await deliverOutboundPayloads({
|
|
39603
39603
|
cfg: params.cfg,
|
|
39604
39604
|
channel,
|
|
@@ -44665,7 +44665,7 @@ async function describeStickerImage(params) {
|
|
|
44665
44665
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
44666
44666
|
try {
|
|
44667
44667
|
const buffer = await fs.readFile(imagePath);
|
|
44668
|
-
const { describeImageWithModel } = await import("./image-
|
|
44668
|
+
const { describeImageWithModel } = await import("./image-Se69TxM6.js").then((n) => n.n);
|
|
44669
44669
|
return (await describeImageWithModel({
|
|
44670
44670
|
buffer,
|
|
44671
44671
|
fileName: "sticker.webp",
|
|
@@ -48957,7 +48957,7 @@ async function preflightDiscordMessage(params) {
|
|
|
48957
48957
|
let preflightTranscript;
|
|
48958
48958
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
48959
48959
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
48960
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
48960
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-C1qO9t63.js");
|
|
48961
48961
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
48962
48962
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
48963
48963
|
ctx: {
|
|
@@ -59580,7 +59580,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
|
|
|
59580
59580
|
let preflightTranscript;
|
|
59581
59581
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
59582
59582
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
59583
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
59583
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-C1qO9t63.js");
|
|
59584
59584
|
preflightTranscript = await transcribeFirstAudio({
|
|
59585
59585
|
ctx: {
|
|
59586
59586
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -4,7 +4,7 @@ import { F as normalizeE164, L as resolveConfigDir, S as requireActivePluginRegi
|
|
|
4
4
|
import { K as isTruthyEnvValue, q as parseBooleanValue } from "./model-auth-a4aBSOeG.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-qUVxzqYm.js";
|
|
6
6
|
import { b as resolveMemorySlotDecision, d as parseDurationMs, g as MANIFEST_KEY, h as LEGACY_MANIFEST_KEYS, i as writeConfigFile, j as resolveWhatsAppAccount, o as parseByteSize, p as loadPluginManifestRegistry, t as loadConfig, v as normalizePluginsConfig, y as resolveEnableState } from "./config-Bwm-jWmj.js";
|
|
7
|
-
import { A as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, C as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, D as DEFAULT_BROWSER_EVALUATE_ENABLED, E as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, O as DEFAULT_OPENCLAW_BROWSER_COLOR, T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer, a as resolveOpenClawUserDataDir, b as isLoopbackHost, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, h as getHeadersWithAuth, i as launchOpenClawChrome, k as DEFAULT_OPENCLAW_BROWSER_ENABLED, l as createTargetViaCdp, n as isChromeCdpReady, o as stopOpenClawChrome, p as appendCdpPath, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as stopChromeExtensionRelayServer, w as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS } from "./chrome-
|
|
7
|
+
import { A as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, C as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, D as DEFAULT_BROWSER_EVALUATE_ENABLED, E as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, O as DEFAULT_OPENCLAW_BROWSER_COLOR, T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer, a as resolveOpenClawUserDataDir, b as isLoopbackHost, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, h as getHeadersWithAuth, i as launchOpenClawChrome, k as DEFAULT_OPENCLAW_BROWSER_ENABLED, l as createTargetViaCdp, n as isChromeCdpReady, o as stopOpenClawChrome, p as appendCdpPath, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as stopChromeExtensionRelayServer, w as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS } from "./chrome-DBK0k-zW.js";
|
|
8
8
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-B91HIDPD.js";
|
|
9
9
|
import { n as resolveSessionFilePath, t as resolveDefaultSessionStorePath } from "./paths-Zbzpgrfo.js";
|
|
10
10
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BHS7QoRl.js";
|
|
@@ -2175,7 +2175,7 @@ function isModuleNotFoundError(err) {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
async function loadPwAiModule(mode) {
|
|
2177
2177
|
try {
|
|
2178
|
-
return await import("./pw-ai-
|
|
2178
|
+
return await import("./pw-ai-BC4pMrPo.js");
|
|
2179
2179
|
} catch (err) {
|
|
2180
2180
|
if (mode === "soft") return null;
|
|
2181
2181
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -5014,11 +5014,11 @@ function createProfileContext(opts, profile) {
|
|
|
5014
5014
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
5015
5015
|
const profileState = getProfileState();
|
|
5016
5016
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
5017
|
-
await (await import("./pw-ai-
|
|
5017
|
+
await (await import("./pw-ai-BC4pMrPo.js")).closePlaywrightBrowserConnection();
|
|
5018
5018
|
} catch {}
|
|
5019
5019
|
if (profileState.running) await stopRunningBrowser();
|
|
5020
5020
|
try {
|
|
5021
|
-
await (await import("./pw-ai-
|
|
5021
|
+
await (await import("./pw-ai-BC4pMrPo.js")).closePlaywrightBrowserConnection();
|
|
5022
5022
|
} catch {}
|
|
5023
5023
|
if (!fs$1.existsSync(userDataDir)) return {
|
|
5024
5024
|
moved: false,
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import path from "node:path";
|
|
|
5
5
|
import fs, { createWriteStream, existsSync, readFileSync, statSync } from "node:fs";
|
|
6
6
|
import os, { homedir } from "node:os";
|
|
7
7
|
import { Logger } from "tslog";
|
|
8
|
-
import
|
|
8
|
+
import JSON5 from "json5";
|
|
9
9
|
import chalk, { Chalk } from "chalk";
|
|
10
10
|
import fs$1 from "node:fs/promises";
|
|
11
11
|
import { execFile, execFileSync, spawn } from "node:child_process";
|
|
@@ -2446,7 +2446,7 @@ function readLoggingConfig() {
|
|
|
2446
2446
|
try {
|
|
2447
2447
|
if (!fs.existsSync(configPath)) return;
|
|
2448
2448
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
2449
|
-
const logging =
|
|
2449
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
2450
2450
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
2451
2451
|
return logging;
|
|
2452
2452
|
} catch {
|
|
@@ -8915,7 +8915,7 @@ var IncludeProcessor = class IncludeProcessor {
|
|
|
8915
8915
|
};
|
|
8916
8916
|
const defaultResolver = {
|
|
8917
8917
|
readFile: (p) => fs.readFileSync(p, "utf-8"),
|
|
8918
|
-
parseJson: (raw) =>
|
|
8918
|
+
parseJson: (raw) => JSON5.parse(raw)
|
|
8919
8919
|
};
|
|
8920
8920
|
/**
|
|
8921
8921
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -11716,7 +11716,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
11716
11716
|
function normalizeDeps(overrides = {}) {
|
|
11717
11717
|
return {
|
|
11718
11718
|
fs: overrides.fs ?? fs,
|
|
11719
|
-
json5: overrides.json5 ??
|
|
11719
|
+
json5: overrides.json5 ?? JSON5,
|
|
11720
11720
|
env: overrides.env ?? process.env,
|
|
11721
11721
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
11722
11722
|
configPath: overrides.configPath ?? "",
|
|
@@ -11727,11 +11727,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
11727
11727
|
if (env !== process.env) return;
|
|
11728
11728
|
loadDotEnv({ quiet: true });
|
|
11729
11729
|
}
|
|
11730
|
-
function parseConfigJson5(raw, json5
|
|
11730
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
11731
11731
|
try {
|
|
11732
11732
|
return {
|
|
11733
11733
|
ok: true,
|
|
11734
|
-
parsed: json5
|
|
11734
|
+
parsed: json5.parse(raw)
|
|
11735
11735
|
};
|
|
11736
11736
|
} catch (err) {
|
|
11737
11737
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./paths-BZtyHNCi.js";
|
|
2
2
|
import { ot as resolvePreferredOpenClawTmpDir } from "./exec-B8lXct-k.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-qUVxzqYm.js";
|
|
4
|
-
import { d as normalizeCdpWsUrl, g as withCdpSocket, h as getHeadersWithAuth, m as fetchJson, p as appendCdpPath, t as getChromeWebSocketUrl, u as formatAriaSnapshot } from "./chrome-
|
|
4
|
+
import { d as normalizeCdpWsUrl, g as withCdpSocket, h as getHeadersWithAuth, m as fetchJson, p as appendCdpPath, t as getChromeWebSocketUrl, u as formatAriaSnapshot } from "./chrome-DBK0k-zW.js";
|
|
5
5
|
import { n as formatErrorMessage } from "./errors-B91HIDPD.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Y as logVerbose, Z as shouldLogVerbose, n as runExec } from "./exec-B8lXct-k.js";
|
|
2
|
-
import { Dn as getFileExtension, Tn as detectMime, Xn as normalizeChatType, jn as kindFromMime, kn as isAudioFileName } from "./pi-embedded-helpers-
|
|
2
|
+
import { Dn as getFileExtension, Tn as detectMime, Xn as normalizeChatType, jn as kindFromMime, kn as isAudioFileName } from "./pi-embedded-helpers-D6YyZfbk.js";
|
|
3
3
|
import { C as normalizeProviderId, _ as resolveOpenClawAgentDir, i as resolveApiKeyForProvider, k as normalizeGoogleModelId, r as requireApiKey } from "./model-auth-a4aBSOeG.js";
|
|
4
4
|
import { t as loadConfig } from "./config-Bwm-jWmj.js";
|
|
5
|
-
import { b as ensureOpenClawModelsJson, t as describeImageWithModel } from "./image-
|
|
6
|
-
import { i as fetchWithSsrFGuard, n as MediaFetchError, r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-
|
|
5
|
+
import { b as ensureOpenClawModelsJson, t as describeImageWithModel } from "./image-Se69TxM6.js";
|
|
6
|
+
import { i as fetchWithSsrFGuard, n as MediaFetchError, r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-CQAXYpkf.js";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|