cclawd 1.0.3 → 1.0.5
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/{active-listener-Dkhmfuwx.js → active-listener-BLd27Pxd.js} +1 -1
- package/dist/{api-key-rotation-BOfI3cG3.js → api-key-rotation-Dg3JlNDQ.js} +1 -1
- package/dist/{audio-preflight-CtkZ5SAs.js → audio-preflight-eV5m9mMp.js} +6 -6
- package/dist/{audio-transcription-runner-CbPqoiHX.js → audio-transcription-runner-CQU4Eg1M.js} +6 -6
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +23 -23
- package/dist/bundled/session-memory/handler.js +23 -23
- package/dist/{channel-activity-DWAER4wd.js → channel-activity-dT3cYb0e.js} +1 -1
- package/dist/{commands-registry-BUyiA7nE.js → commands-registry-CyLMCPuP.js} +1 -1
- package/dist/compact.runtime-DGRl4st4.js +39 -0
- package/dist/{deliver-aHOaRbkt.js → deliver-B6eTtXSk.js} +4 -4
- package/dist/{deliver-runtime-D4bCsr6d.js → deliver-runtime-CLDpY6AW.js} +7 -7
- package/dist/{deps-send-discord.runtime-BziKU-pE.js → deps-send-discord.runtime-CxADlame.js} +7 -7
- package/dist/{deps-send-imessage.runtime-CFRnDTqp.js → deps-send-imessage.runtime-Wi79xm6H.js} +7 -7
- package/dist/{deps-send-signal.runtime-BuOtABJm.js → deps-send-signal.runtime-BDtzvsnR.js} +6 -6
- package/dist/{deps-send-slack.runtime-BOLqvMxW.js → deps-send-slack.runtime-CgX24hgT.js} +5 -5
- package/dist/{deps-send-telegram.runtime-DeEoFLv5.js → deps-send-telegram.runtime-CEWc7ePn.js} +6 -6
- package/dist/deps-send-whatsapp.runtime-B1KJ7YOp.js +43 -0
- package/dist/{diagnostic-BdcXX9iJ.js → diagnostic-BZmAxdu9.js} +1 -1
- package/dist/{fetch-D9NUULbj.js → fetch-CMLoICyN.js} +2 -2
- package/dist/{fetch-guard-B5ZMnGaN.js → fetch-guard-DCj3k042.js} +1 -1
- package/dist/{image-4x07m4Jl.js → image-Bt49ybRv.js} +2 -2
- package/dist/{image-runtime-smkMrIol.js → image-runtime-Cilhq73U.js} +2 -2
- package/dist/{ir-CsgNUpOU.js → ir-CVtBjUiL.js} +2 -2
- package/dist/llm-slug-generator.js +23 -23
- package/dist/{login-p_O59TVQ.js → login-D0fUoX-p.js} +2 -2
- package/dist/{login-qr-BCJpDsAy.js → login-qr-ClBxstxZ.js} +2 -2
- package/dist/{manager-CwYv8O3T.js → manager-DSfEj66R.js} +3 -3
- package/dist/{manager-runtime-D_jEoBr9.js → manager-runtime-BrZlGJsj.js} +4 -4
- package/dist/{model-selection-Cv2Puf5z.js → model-selection-CMEj8bpy.js} +11 -11
- package/dist/{outbound-Chpiwybe.js → outbound-BxIJyMzV.js} +4 -4
- package/dist/{outbound-attachment-BnAVJDLe.js → outbound-attachment-CVJwpypG.js} +2 -2
- package/dist/{pi-embedded-CJVNBk0y.js → pi-embedded-CHNPEUAv.js} +57 -57
- package/dist/{pi-model-discovery-7IzK0Uc3.js → pi-model-discovery-D-r5y7kV.js} +1 -1
- package/dist/{pi-model-discovery-runtime-DABef3qy.js → pi-model-discovery-runtime-DZQXYmdu.js} +2 -2
- package/dist/{pi-tools.before-tool-call.runtime-BP2UvGJb.js → pi-tools.before-tool-call.runtime-DagGpfw0.js} +2 -2
- package/dist/plugin-sdk/imessage.js +2 -2
- package/dist/{pw-ai-DwH5GpEO.js → pw-ai-CoIUdns_.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-BI3U306v.js → runtime-whatsapp-login.runtime-ChqE9BkX.js} +3 -3
- package/dist/{runtime-whatsapp-outbound.runtime-Bsc2uD09.js → runtime-whatsapp-outbound.runtime-yiy6jzKk.js} +6 -6
- package/dist/{send-DtBvCnPQ.js → send-4rRrSKp9.js} +4 -4
- package/dist/{send-ORtn50qg.js → send-BKO1-P1t.js} +3 -3
- package/dist/{send-C-Q_WPMf.js → send-EDBPXjTT.js} +3 -3
- package/dist/{send-DUibfNQD.js → send-K2mAG7KC.js} +4 -4
- package/dist/{send-BDnOgWIp.js → send-V1MRV7QF.js} +3 -3
- package/dist/{session-B7imi6T5.js → session-CuVCho2m.js} +1 -1
- package/dist/{skill-commands-B9brPuiL.js → skill-commands-B55LOaMB.js} +2 -2
- package/dist/{slash-commands.runtime-Cf6ygfBp.js → slash-commands.runtime-BchS0VkW.js} +2 -2
- package/dist/{slash-dispatch.runtime-CsmvhO5K.js → slash-dispatch.runtime-BIKRY3fr.js} +23 -23
- package/dist/{slash-skill-commands.runtime-CX7stIEP.js → slash-skill-commands.runtime-BP4jBHU9.js} +3 -3
- package/dist/{subagent-registry-runtime-B_S1nf7y.js → subagent-registry-runtime-DjEYzSyM.js} +23 -23
- package/dist/{tables-CjQqTOdD.js → tables-BAGqh2XD.js} +1 -1
- package/dist/{target-errors-BZE1mc-W.js → target-errors-CeBF8Pws.js} +1 -1
- package/dist/{web-Cd8yK1Zq.js → web-BRSmQdtm.js} +27 -27
- package/dist/{whatsapp-actions-CYEzUMBI.js → whatsapp-actions-Dxb2K2Xh.js} +7 -7
- package/extensions/mfa-auth/index.ts +22 -13
- package/extensions/mfa-auth/src/auth-manager.ts +4 -0
- package/extensions/mfa-auth/src/notification-service.ts +68 -24
- package/package.json +1 -1
- package/dist/compact.runtime-DpcZpcTl.js +0 -39
- package/dist/deps-send-whatsapp.runtime-CG1uXYLY.js +0 -43
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as defaultRuntime, h as success, l as danger, u as info } from "./subsystem-DfXy5gUB.js";
|
|
2
2
|
import { r as logInfo } from "./logger-CbUVl62f.js";
|
|
3
|
-
import { ao as loadConfig, dr as resolveWhatsAppAccount, gr as logoutWeb, nc as formatCliCommand } from "./model-selection-
|
|
4
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
3
|
+
import { ao as loadConfig, dr as resolveWhatsAppAccount, gr as logoutWeb, nc as formatCliCommand } from "./model-selection-CMEj8bpy.js";
|
|
4
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-CuVCho2m.js";
|
|
5
5
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
6
6
|
//#region src/web/login.ts
|
|
7
7
|
async function loginWeb(verbose, waitForConnection, runtime = defaultRuntime, accountId) {
|
|
@@ -3,12 +3,12 @@ import "./paths-DkxwiA8g.js";
|
|
|
3
3
|
import { a as defaultRuntime, h as success, l as danger, u as info } from "./subsystem-DfXy5gUB.js";
|
|
4
4
|
import "./workspace-DGIcKCCW.js";
|
|
5
5
|
import { r as logInfo } from "./logger-CbUVl62f.js";
|
|
6
|
-
import { ao as loadConfig, br as readWebSelfId, dr as resolveWhatsAppAccount, gr as logoutWeb, wr as webAuthExists } from "./model-selection-
|
|
6
|
+
import { ao as loadConfig, br as readWebSelfId, dr as resolveWhatsAppAccount, gr as logoutWeb, wr as webAuthExists } from "./model-selection-CMEj8bpy.js";
|
|
7
7
|
import "./github-copilot-token-8N63GdbE.js";
|
|
8
8
|
import "./boolean-C7Ct_klp.js";
|
|
9
9
|
import "./env-lw2hsIUY.js";
|
|
10
10
|
import "./frontmatter-C_obXuTp.js";
|
|
11
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
11
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-CuVCho2m.js";
|
|
12
12
|
import { randomUUID } from "node:crypto";
|
|
13
13
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
14
14
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -2,10 +2,10 @@ import { A as resolveAgentDir, P as resolveAgentWorkspaceDir, k as resolveAgentC
|
|
|
2
2
|
import { c as resolveStateDir } from "./paths-DkxwiA8g.js";
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-DfXy5gUB.js";
|
|
4
4
|
import { E as truncateUtf16Safe, c as clampNumber, s as clampInt, y as resolveUserPath } from "./logger-CbUVl62f.js";
|
|
5
|
-
import { C as resolveEnvApiKey, E as retryAsync, Ji as formatErrorMessage, S as resolveApiKeyForProvider, Xt as onSessionTranscriptUpdate, ac as normalizeOptionalSecretInput, lc as normalizeResolvedSecretInputString, x as requireApiKey } from "./model-selection-
|
|
5
|
+
import { C as resolveEnvApiKey, E as retryAsync, Ji as formatErrorMessage, S as resolveApiKeyForProvider, Xt as onSessionTranscriptUpdate, ac as normalizeOptionalSecretInput, lc as normalizeResolvedSecretInputString, x as requireApiKey } from "./model-selection-CMEj8bpy.js";
|
|
6
6
|
import { t as isTruthyEnvValue } from "./env-lw2hsIUY.js";
|
|
7
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
8
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
7
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-DCj3k042.js";
|
|
8
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-Dg3JlNDQ.js";
|
|
9
9
|
import { _ as runWithConcurrency, a as listSessionFilesForAgent, c as chunkMarkdown, d as hashText, f as isMemoryPath, g as remapChunkLines, h as parseEmbedding, i as buildSessionEntry, l as cosineSimilarity, m as normalizeExtraMemoryPaths, o as sessionPathForFile, p as listMemoryFiles, r as requireNodeSqlite, s as buildFileEntry, t as extractKeywords, u as ensureDir, v as isFileMissingError, y as statRegularFile } from "./query-expansion-BErUY8P2.js";
|
|
10
10
|
import fs from "node:fs/promises";
|
|
11
11
|
import os from "node:os";
|
|
@@ -3,13 +3,13 @@ import "./paths-DkxwiA8g.js";
|
|
|
3
3
|
import "./subsystem-DfXy5gUB.js";
|
|
4
4
|
import "./workspace-DGIcKCCW.js";
|
|
5
5
|
import "./logger-CbUVl62f.js";
|
|
6
|
-
import "./model-selection-
|
|
6
|
+
import "./model-selection-CMEj8bpy.js";
|
|
7
7
|
import "./github-copilot-token-8N63GdbE.js";
|
|
8
8
|
import "./boolean-C7Ct_klp.js";
|
|
9
9
|
import "./env-lw2hsIUY.js";
|
|
10
10
|
import "./frontmatter-C_obXuTp.js";
|
|
11
|
-
import "./fetch-guard-
|
|
12
|
-
import "./api-key-rotation-
|
|
13
|
-
import { n as closeAllMemoryIndexManagers, t as MemoryIndexManager } from "./manager-
|
|
11
|
+
import "./fetch-guard-DCj3k042.js";
|
|
12
|
+
import "./api-key-rotation-Dg3JlNDQ.js";
|
|
13
|
+
import { n as closeAllMemoryIndexManagers, t as MemoryIndexManager } from "./manager-DSfEj66R.js";
|
|
14
14
|
import "./query-expansion-BErUY8P2.js";
|
|
15
15
|
export { MemoryIndexManager, closeAllMemoryIndexManagers };
|
|
@@ -32,7 +32,7 @@ import "node:stream/promises";
|
|
|
32
32
|
import http, { createServer } from "node:http";
|
|
33
33
|
import https from "node:https";
|
|
34
34
|
import { fileTypeFromBuffer } from "file-type";
|
|
35
|
-
import WebSocket
|
|
35
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
36
36
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
37
37
|
import { BedrockClient, ListFoundationModelsCommand } from "@aws-sdk/client-bedrock";
|
|
38
38
|
import { createAssistantMessageEventStream, getEnvApiKey } from "@mariozechner/pi-ai";
|
|
@@ -17803,7 +17803,7 @@ function isModuleNotFoundError(err) {
|
|
|
17803
17803
|
}
|
|
17804
17804
|
async function loadPwAiModule(mode) {
|
|
17805
17805
|
try {
|
|
17806
|
-
return await import("./pw-ai-
|
|
17806
|
+
return await import("./pw-ai-CoIUdns_.js");
|
|
17807
17807
|
} catch (err) {
|
|
17808
17808
|
if (mode === "soft") return null;
|
|
17809
17809
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -19310,7 +19310,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
19310
19310
|
let extensionWs = null;
|
|
19311
19311
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
19312
19312
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
19313
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket
|
|
19313
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
19314
19314
|
const hasConnectedTargets = () => connectedTargets.size > 0;
|
|
19315
19315
|
let extensionDisconnectCleanupTimer = null;
|
|
19316
19316
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
@@ -19362,7 +19362,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
19362
19362
|
let nextExtensionId = 1;
|
|
19363
19363
|
const sendToExtension = async (payload) => {
|
|
19364
19364
|
const ws = extensionWs;
|
|
19365
|
-
if (!ws || ws.readyState !== WebSocket
|
|
19365
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
19366
19366
|
ws.send(JSON.stringify(payload));
|
|
19367
19367
|
return await new Promise((resolve, reject) => {
|
|
19368
19368
|
const timer = setTimeout(() => {
|
|
@@ -19379,12 +19379,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
19379
19379
|
const broadcastToCdpClients = (evt) => {
|
|
19380
19380
|
const msg = JSON.stringify(evt);
|
|
19381
19381
|
for (const ws of cdpClients) {
|
|
19382
|
-
if (ws.readyState !== WebSocket
|
|
19382
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
19383
19383
|
ws.send(msg);
|
|
19384
19384
|
}
|
|
19385
19385
|
};
|
|
19386
19386
|
const sendResponseToCdp = (ws, res) => {
|
|
19387
|
-
if (ws.readyState !== WebSocket
|
|
19387
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
19388
19388
|
ws.send(JSON.stringify(res));
|
|
19389
19389
|
};
|
|
19390
19390
|
const dropConnectedTargetSession = (sessionId) => {
|
|
@@ -19638,7 +19638,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
19638
19638
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
19639
19639
|
return;
|
|
19640
19640
|
}
|
|
19641
|
-
if (extensionWs && extensionWs.readyState !== WebSocket
|
|
19641
|
+
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
19642
19642
|
try {
|
|
19643
19643
|
extensionWs.terminate();
|
|
19644
19644
|
} catch {}
|
|
@@ -19671,7 +19671,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
19671
19671
|
clearExtensionDisconnectCleanupTimer();
|
|
19672
19672
|
flushExtensionReconnectWaiters(true);
|
|
19673
19673
|
const ping = setInterval(() => {
|
|
19674
|
-
if (ws.readyState !== WebSocket
|
|
19674
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
19675
19675
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
19676
19676
|
}, 5e3);
|
|
19677
19677
|
ws.on("message", (data) => {
|
|
@@ -20055,7 +20055,7 @@ function openCdpWebSocket(wsUrl, opts) {
|
|
|
20055
20055
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
20056
20056
|
const handshakeTimeoutMs = typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : CDP_WS_HANDSHAKE_TIMEOUT_MS;
|
|
20057
20057
|
const agent = getDirectAgentForCdp(wsUrl);
|
|
20058
|
-
return new WebSocket
|
|
20058
|
+
return new WebSocket(wsUrl, {
|
|
20059
20059
|
handshakeTimeout: handshakeTimeoutMs,
|
|
20060
20060
|
...Object.keys(headers).length ? { headers } : {},
|
|
20061
20061
|
...agent ? { agent } : {}
|
|
@@ -23032,7 +23032,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
23032
23032
|
};
|
|
23033
23033
|
const closePlaywrightBrowserConnectionForProfile = async (cdpUrl) => {
|
|
23034
23034
|
try {
|
|
23035
|
-
await (await import("./pw-ai-
|
|
23035
|
+
await (await import("./pw-ai-CoIUdns_.js")).closePlaywrightBrowserConnection(cdpUrl ? { cdpUrl } : void 0);
|
|
23036
23036
|
} catch {}
|
|
23037
23037
|
};
|
|
23038
23038
|
const reconcileProfileRuntime = async () => {
|
|
@@ -23129,7 +23129,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
23129
23129
|
//#region src/browser/server-context.reset.ts
|
|
23130
23130
|
async function closePlaywrightBrowserConnectionForProfile(cdpUrl) {
|
|
23131
23131
|
try {
|
|
23132
|
-
await (await import("./pw-ai-
|
|
23132
|
+
await (await import("./pw-ai-CoIUdns_.js")).closePlaywrightBrowserConnection(cdpUrl ? { cdpUrl } : void 0);
|
|
23133
23133
|
} catch {}
|
|
23134
23134
|
}
|
|
23135
23135
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { b as getChildLogger, t as createSubsystemLogger } from "./subsystem-DfXy5gUB.js";
|
|
2
2
|
import { T as toWhatsappJid, u as escapeRegExp } from "./logger-CbUVl62f.js";
|
|
3
|
-
import { Ja as redactIdentifier, ao as loadConfig, ci as generateSecureUuid, dr as resolveWhatsAppAccount, fr as resolveWhatsAppMediaMaxBytes } from "./model-selection-
|
|
4
|
-
import { a as loadWebMedia, s as resolveMarkdownTableMode } from "./ir-
|
|
3
|
+
import { Ja as redactIdentifier, ao as loadConfig, ci as generateSecureUuid, dr as resolveWhatsAppAccount, fr as resolveWhatsAppMediaMaxBytes } from "./model-selection-CMEj8bpy.js";
|
|
4
|
+
import { a as loadWebMedia, s as resolveMarkdownTableMode } from "./ir-CVtBjUiL.js";
|
|
5
5
|
import { n as normalizePollInput } from "./polls-Dw-aNTWI.js";
|
|
6
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
7
|
-
import { n as requireActiveWebListener } from "./active-listener-
|
|
6
|
+
import { t as convertMarkdownTables } from "./tables-BAGqh2XD.js";
|
|
7
|
+
import { n as requireActiveWebListener } from "./active-listener-BLd27Pxd.js";
|
|
8
8
|
//#region src/markdown/whatsapp.ts
|
|
9
9
|
/**
|
|
10
10
|
* Convert standard Markdown formatting to WhatsApp-compatible markup.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ai as saveMediaBuffer } from "./model-selection-
|
|
2
|
-
import { a as loadWebMedia } from "./ir-
|
|
1
|
+
import { Ai as saveMediaBuffer } from "./model-selection-CMEj8bpy.js";
|
|
2
|
+
import { a as loadWebMedia } from "./ir-CVtBjUiL.js";
|
|
3
3
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-C-AlrR3n.js";
|
|
4
4
|
//#region src/media/outbound-attachment.ts
|
|
5
5
|
async function resolveOutboundAttachmentFromUrl(mediaUrl, maxBytes, options) {
|
|
@@ -3,40 +3,40 @@ import { a as resolveGatewayPort, c as resolveStateDir, d as resolveRequiredHome
|
|
|
3
3
|
import { D as consumeRootOptionToken, E as resolvePreferredOpenClawTmpDir, _ as colorize, a as defaultRuntime, b as getChildLogger, c as unregisterActiveProgressLine, d as logVerbose, g as warn, i as createNonExitingRuntime, l as danger, m as shouldLogVerbose, n as sanitizeForLog, o as clearActiveProgressLine, p as setVerbose, s as registerActiveProgressLine, t as createSubsystemLogger, v as isRich, w as normalizeLogLevel, y as theme } from "./subsystem-DfXy5gUB.js";
|
|
4
4
|
import { $ as isCronSessionKey, B as normalizeMainKey, F as buildAgentPeerSessionKey, H as resolveThreadSessionKeys, J as normalizeOptionalAccountId, K as DEFAULT_ACCOUNT_ID, L as classifySessionKeyShape, M as DEFAULT_AGENT_ID, N as DEFAULT_MAIN_KEY, P as buildAgentMainSessionKey, Q as isAcpSessionKey, R as isValidAgentId, S as openBoundaryFileSync, U as sanitizeAgentId, V as resolveAgentIdFromSessionKey, W as scopedHeartbeatWakeOptions, X as deriveSessionChatType, Y as isBlockedObjectKey, Z as getSubagentDepth, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, et as isSubagentSessionKey, f as loadWorkspaceBootstrapFiles, g as runCommandWithTimeout, h as resolveOpenClawPackageRootSync, j as normalizeWindowsPathForComparison, l as ensureAgentWorkspace, m as resolveOpenClawPackageRoot, n as DEFAULT_AGENT_WORKSPACE_DIR, nt as resolveThreadParentSessionKey, q as normalizeAccountId$2, tt as parseAgentSessionKey, u as filterBootstrapFilesForSession, v as spawnWithFallback, x as openBoundaryFile, z as normalizeAgentId } from "./workspace-DGIcKCCW.js";
|
|
5
5
|
import { C as sleep$1, D as isPlainObject, E as truncateUtf16Safe, S as shortenHomePath, a as CONFIG_DIR, d as formatTerminalLink, f as isRecord$2, h as normalizeE164, i as logWarn, l as ensureDir$3, n as logError, r as logInfo, s as clampInt, t as logDebug, u as escapeRegExp, w as sliceUtf16Safe, x as shortenHomeInString, y as resolveUserPath } from "./logger-CbUVl62f.js";
|
|
6
|
-
import { $ as normalizeThinkLevel, $a as describeUnknownError$1, $n as buildChannelAccountBindings, $o as executePluginCommand, $r as GATEWAY_CLIENT_NAMES, $s as resolveAuthStorePathForDisplay, $t as recordSessionMetaFromInbound, A as buildStreamErrorAssistantMessage, Aa as resolveSandboxConfigForAgent, Ai as saveMediaBuffer, An as mergeSessionEntry, Ao as loadPluginManifestRegistry, Ar as createDiscordActionGate, As as unwrapKnownShellMultiplexerInvocation, At as isContextOverflowError, B as markAuthProfileUsed, Ba as compileGlobPatterns, Bn as normalizeChannelId$1, Bo as listChatChannels, Br as normalizeChatType, Bs as resolveSlackStreamingMode, Bt as isTimeoutErrorMessage, C as resolveEnvApiKey, Ca as resolveBrowserControlAuth, Cn as resolveSessionKey, Co as parseDurationMs, Cs as matchAllowlist, Ct as formatBillingErrorMessage, D as createConfiguredOllamaStreamFn, Da as isLoopbackHost, Di as rawDataToString, Dn as resolveSessionResetType, Do as isPathWithinRoot, Dr as normalizeWhatsAppTarget, Ds as isDispatchWrapperExecutable, Dt as isBillingAssistantError, E as retryAsync, Ea as trimToUndefined, En as resolveSessionResetPolicy, Eo as isAvatarHttpUrl, Er as isWhatsAppGroupJid, Es as extractShellWrapperInlineCommand, Et as isAuthAssistantError, F as resolveAuthProfileOrder, Fa as mergeAlsoAllowPolicy, Fi as isAudioFileName, Fn as resolveExplicitAgentSessionKey, Fo as normalizePluginsConfig, Fr as resolveChannelGroupPolicy, Fs as applyMergePatch, Ft as isRawApiErrorPayload, G as validateAnthropicTurns, Ga as resolveBootstrapPromptTruncationWarningMode, Gn as resolveLineGroupHistoryKey, Go as getActivePluginRegistryKey, Gr as isInternalMessageChannel, Gs as getShellPathFromLoginShell, H as buildApiErrorObservationFields, Ha as buildBootstrapContextFiles, Hn as listChannelDocks, Ho as normalizeChannelId$2, Hr as INTERNAL_MESSAGE_CHANNEL, Ht as resolveSandboxContext, I as clearExpiredCooldowns, Ia as stripPluginOnlyAllowlist, Ii as isGifMedia, In as resolveMainSessionKey, Io as resolveEffectiveEnableState, Ir as resolveChannelGroupRequireMention, Is as isSafeExecutableValue, It as isTransientHttpError, J as formatThinkingLevels, Ja as redactIdentifier, Ji as formatErrorMessage, Jn as listEnabledTelegramAccounts, Jo as setActivePluginRegistry, Jr as normalizeMessageChannel, Js as resolveOwnerDisplaySetting, Jt as extractDeliveryInfo, K as validateGeminiTurns, Ka as resolveBootstrapTotalMaxChars, Kn as inspectTelegramAccount, Kr as isMarkdownCapableMessageChannel, Ks as resolveShellEnvFallbackTimeoutMs, Kt as resolveSessionTranscriptFile, L as getSoonestCooldownExpiry, La as expandToolGroups, Li as kindFromMime, Ln as deriveSessionMetaPatch, Lo as resolveMemorySlotDecision, Lr as resolveChannelGroupToolsPolicy, Ls as mapStreamingModeToSlackLegacyDraftStreamMode, Lt as parseImageDimensionError, M as isNonSecretApiKeyMarker, Ma as buildPluginToolGroups, Mi as extensionForMime, Mn as setSessionRuntimeModel, Mo as isPathInside, Mr as resolveDiscordAccount, Ms as SAFE_BIN_PROFILES, Mt as isFailoverErrorMessage, N as isSecretRefHeaderValueMarker, Na as collectExplicitAllowlist, Nn as canonicalizeMainSessionAlias, No as safeStatSync, Nr as resolveDiscordMaxLinesPerMessage, Ns as normalizeSafeBinProfileFixtures, Nt as isLikelyContextOverflowError, O as buildAssistantMessage, Oa as isSecureWebSocketUrl, Oi as MEDIA_MAX_BYTES, On as resolveThreadFlag, Oo as isSupportedLocalAvatarExtension, Os as isShellWrapperExecutable, Ot as isCloudCodeAssistFormatError, Pa as expandPolicyWithPluginGroups, Pi as imageMimeFromFormat, Po as applyTestPluginDefaults, Pr as normalizeDiscordToken, Ps as resolveSafeBinProfiles, Pt as isRateLimitAssistantError, Q as normalizeReasoningLevel, Qa as resolveSecretRefValues, Qn as resolveTelegramToken, Qo as clearPluginCommands, Qr as GATEWAY_CLIENT_MODES, Qs as ensureAuthProfileStore, Qt as readSessionUpdatedAt, R as isProfileInCooldown, Ra as normalizeToolName, Rn as getChannelPlugin, Ro as CHAT_CHANNEL_ORDER, Rr as resolveAccountEntry, Rs as resolveDiscordPreviewStreamMode, Rt as parseImageSizeError, S as resolveApiKeyForProvider, Sa as ensureBrowserControlAuth, Sn as jsonUtf8Bytes, So as secretRefKey, Ss as DEFAULT_SAFE_BINS, St as formatAssistantErrorText, T as resolveRetryConfig, Ta as resolveGatewayCredentialsFromConfig, Ti as ensureChromeExtensionRelayServer, Tn as resolveChannelResetConfig, To as isAvatarDataUrl, Tr as resolveIMessageAccount, Ts as resolveCommandResolutionFromArgv, Tt as getApiErrorPayloadFingerprint, U as buildTextObservationFields, Ua as ensureSessionHeader, Ui as DEFAULT_UPLOAD_DIR, Un as normalizeSignalMessagingTarget, Uo as normalizeChatChannelId, Ur as isDeliverableMessageChannel, Us as resolveAgentMaxConcurrent, Ut as resolveSandboxRuntimeStatus, V as resolveProfilesUnavailableReason, Va as matchesAnyGlobPattern, Vi as mediaKindFromMime, Vn as getChannelDock, Vo as normalizeAnyChannelId, Vr as resolveGroupSessionKey, Vt as ensureSandboxWorkspaceForSession, W as sanitizeForConsole, Wa as resolveBootstrapMaxChars, Wi as resolveExistingPathsWithinRoot, Wn as resolveLineGroupConfigEntry, Wo as getActivePluginRegistry, Wr as isGatewayMessageChannel, Ws as VERSION, Wt as appendAssistantMessageToSessionTranscript, Xa as resolveSecretRefString, Xi as readErrorName, Xn as resolveTelegramAccount, Xo as findOverlappingPluginHttpRoute, Xr as resolveMessageChannel, Xs as listProfilesForProvider, Xt as onSessionTranscriptUpdate, Y as formatXHighModelHint, Ya as resolveApiKeyForProfile, Yi as formatUncaughtError, Yn as listTelegramAccountIds, Yo as createPluginRegistry, Yr as resolveGatewayMessageChannel, Ys as dedupeProfileIds, Yt as emitSessionTranscriptUpdate, Z as normalizeElevatedLevel, Za as resolveSecretRefValue, Zn as resolveTelegramPollActionGateState, Zo as normalizePluginHttpPath, Zr as GATEWAY_CLIENT_IDS, Zs as markAuthProfileGood, Zt as loadSessionStore, _a as assertSandboxPath, _i as resizeToJpeg, _n as parseInlineDirectives$1, _s as validateSafeBinArgv, _t as downgradeOpenAIReasoningBlocks, a as isCliProvider, ai as createBrowserRouteContext, an as resolveCacheTtlMs$1, ao as loadConfig, ar as resolveSlackAppToken, as as getConfigOverrides, at as isMessagingToolDuplicateNormalized, b as getCustomProviderApiKey, ba as applySkillEnvOverrides, bn as hasInterSessionUserProvenance, bo as normalizeScpRemoteHost, br as readWebSelfId, bs as isWindowsPlatform, bt as classifyFailoverReason, c as normalizeProviderId, ca as normalizeHostname, cc as hasConfiguredSecretInput, ci as generateSecureUuid, cn as deliveryContextKey, co as resolveConfigSnapshotHash, cr as resolveSignalAccount, cs as unsetConfigOverride, ct as sanitizeImageBlocks, d as resolveDefaultModelForAgent, dc as resolveSecretInputRef, dn as normalizeSessionDeliveryFields, do as validateConfigObjectWithPlugins, dr as resolveWhatsAppAccount, ds as setConfigValueAtPath, dt as canonicalizeBase64, ec as resolveOpenClawAgentDir, ei as acquireSessionWriteLock, en as resolveSessionStoreEntry, eo as isNonEmptyString, er as listBindings, es as getPluginCommandSpecs, et as normalizeUsageDisplay, f as resolveModelRefFromString, fa as buildWorkspaceSkillSnapshot, fc as splitTrailingAuthProfile, fi as resolveLsofCommandSync, fn as normalizeAccountId$3, fo as TELEGRAM_COMMAND_NAME_PATTERN, fs as unsetConfigValueAtPath, ft as estimateBase64DecodedBytes, ga as assertMediaNotDataUrl, gn as extractToolCallNames, go as isInboundPathAllowed, gr as logoutWeb, gs as normalizeTrustedSafeBinDirs, gt as downgradeOpenAIFunctionCallReasoningPairs, h as resolveThinkingDefault, hc as DEFAULT_PROVIDER, hn as countToolResults, hr as logWebSelfId, hs as listWritableExplicitTrustedSafeBinDirs, ht as sanitizeToolCallIdsForCloudCodeAssist, i as findNormalizedProviderValue, ic as resolveAuthProfileDisplayLabel, ii as writeJsonAtomic, in as isCacheEnabled, ir as resolveSlackReplyToMode, is as resolveContextEngine, j as buildUsageWithNoCost, ja as applyOwnerOnlyToolPolicy, ji as detectMime, jn as resolveFreshSessionTotalTokens, jo as discoverOpenClawPlugins, jr as listEnabledDiscordAccounts, js as splitShellArgs, jt as isFailoverAssistantError, k as buildAssistantMessageWithZeroUsage, ka as DEFAULT_AI_SNAPSHOT_MAX_CHARS, ki as getMediaDir, kn as DEFAULT_RESET_TRIGGERS, ko as validateJsonSchemaValue, kr as inspectDiscordAccount, ks as unwrapKnownDispatchWrapperInvocation, kt as isCompactionFailureError, lc as normalizeResolvedSecretInputString, li as resolveBrowserConfig, ln as mergeDeliveryContext, lo as setRuntimeConfigSnapshot, lr as mapAllowFromEntries, ls as getConfigValueAtPath, lt as sanitizeToolResultImages, m as resolveSubagentSpawnModelSelection, ma as resolveSkillsPromptForRun, mc as DEFAULT_MODEL, mi as getImageMetadata, mn as capArrayByJsonBytes, mo as resolveTelegramCustomCommands, mr as getWebAuthAgeMs, ms as isTrustedSafeBinPath, mt as extractToolResultId, n as buildConfiguredAllowlistKeys, nc as formatCliCommand, ni as createAsyncLock, nn as updateSessionStore, no as parseDotPath, nr as inspectSlackAccount, ns as matchPluginCommand, nt as resolveResponseUsageMode, o as modelKey, oa as isBlockedHostnameOrIp, oc as normalizeSecretInput, oi as registerBrowserRoutes, on as parseFiniteNumber$1, oo as readConfigFileSnapshot, or as resolveSlackBotToken, os as resetConfigOverrides, ot as normalizeTextForComparison, p as resolveReasoningDefault, pa as loadWorkspaceSkillEntries, pc as DEFAULT_CONTEXT_TOKENS, pn as archiveSessionTranscripts, po as normalizeTelegramCommandName, ps as getTrustedSafeBinDirs, pt as extractToolCallsFromAssistant, q as pickFallbackThinkingLevel, qa as sanitizeGoogleTurnOrdering, qn as createTelegramActionGate, qo as requireActivePluginRegistry, qr as listDeliverableMessageChannels, qs as isDangerousHostEnvVarName, qt as resolveAndPersistSessionFile, r as buildModelAliasIndex, ra as SsrFBlockedError, rc as resolveCliName, ri as readJsonFile, rn as updateSessionStoreEntry, rr as resolveSlackAccount, rs as registerContextEngine, rt as supportsXHighThinking, s as normalizeModelRef$2, sc as coerceSecretRef, si as generateSecureToken, sn as deliveryContextFromSession, so as readConfigFileSnapshotForWrite, sr as listEnabledSignalAccounts, ss as setConfigOverride, st as sanitizeSessionMessagesImages, t as buildAllowedModelSet, tc as withFileLock, ti as resolveSessionLockMaxHoldFromTimeout, tn as updateLastRoute, to as isRecord$3, tr as listAcpBindings, ts as listPluginCommands, tt as normalizeVerboseLevel, u as resolveConfiguredModelRef, ua as getBridgeAuthForPort, uc as normalizeSecretInputString, ui as resolveProfile, un as normalizeDeliveryContext, uo as writeConfigFile, ur as hasAnyWhatsAppAuth, us as parseConfigPath, ut as resolveImageSanitizationLimits, va as resolveSandboxInputPath, vn as INPUT_PROVENANCE_KIND_VALUES, vo as resolveIMessageAttachmentRoots, vs as analyzeShellCommand, vt as isGoogleModelApi, w as resolveModelAuthMode, wa as GatewaySecretRefUnavailableError, wn as evaluateSessionFreshness, wr as webAuthExists, ws as resolveAllowlistCandidatePath, wt as formatRawAssistantErrorForUi, x as requireApiKey, xa as applySkillEnvOverridesFromSnapshot, xn as normalizeInputProvenance, xo as parseNonNegativeByteSize, xs as splitCommandChain, xt as classifyFailoverReasonFromHttpStatus, y as getApiKeyForModel, ya as resolveSandboxedMediaSource, yn as applyInputProvenanceToUserMessage, yo as resolveIMessageRemoteAttachmentRoots, ys as buildEnforcedShellCommand, yt as BILLING_ERROR_USER_MESSAGE, z as markAuthProfileFailure, za as resolveToolProfilePolicy, zi as MAX_IMAGE_BYTES, zn as listChannelPlugins, zo as getChatChannelMeta, zr as resolveConversationLabel, zs as resolveSlackNativeStreaming, zt as sanitizeUserFacingText } from "./model-selection-Cv2Puf5z.js";
|
|
6
|
+
import { $ as normalizeThinkLevel, $a as describeUnknownError$1, $n as buildChannelAccountBindings, $o as executePluginCommand, $r as GATEWAY_CLIENT_NAMES, $s as resolveAuthStorePathForDisplay, $t as recordSessionMetaFromInbound, A as buildStreamErrorAssistantMessage, Aa as resolveSandboxConfigForAgent, Ai as saveMediaBuffer, An as mergeSessionEntry, Ao as loadPluginManifestRegistry, Ar as createDiscordActionGate, As as unwrapKnownShellMultiplexerInvocation, At as isContextOverflowError, B as markAuthProfileUsed, Ba as compileGlobPatterns, Bn as normalizeChannelId$1, Bo as listChatChannels, Br as normalizeChatType, Bs as resolveSlackStreamingMode, Bt as isTimeoutErrorMessage, C as resolveEnvApiKey, Ca as resolveBrowserControlAuth, Cn as resolveSessionKey, Co as parseDurationMs, Cs as matchAllowlist, Ct as formatBillingErrorMessage, D as createConfiguredOllamaStreamFn, Da as isLoopbackHost, Di as rawDataToString, Dn as resolveSessionResetType, Do as isPathWithinRoot, Dr as normalizeWhatsAppTarget, Ds as isDispatchWrapperExecutable, Dt as isBillingAssistantError, E as retryAsync, Ea as trimToUndefined, En as resolveSessionResetPolicy, Eo as isAvatarHttpUrl, Er as isWhatsAppGroupJid, Es as extractShellWrapperInlineCommand, Et as isAuthAssistantError, F as resolveAuthProfileOrder, Fa as mergeAlsoAllowPolicy, Fi as isAudioFileName, Fn as resolveExplicitAgentSessionKey, Fo as normalizePluginsConfig, Fr as resolveChannelGroupPolicy, Fs as applyMergePatch, Ft as isRawApiErrorPayload, G as validateAnthropicTurns, Ga as resolveBootstrapPromptTruncationWarningMode, Gn as resolveLineGroupHistoryKey, Go as getActivePluginRegistryKey, Gr as isInternalMessageChannel, Gs as getShellPathFromLoginShell, H as buildApiErrorObservationFields, Ha as buildBootstrapContextFiles, Hn as listChannelDocks, Ho as normalizeChannelId$2, Hr as INTERNAL_MESSAGE_CHANNEL, Ht as resolveSandboxContext, I as clearExpiredCooldowns, Ia as stripPluginOnlyAllowlist, Ii as isGifMedia, In as resolveMainSessionKey, Io as resolveEffectiveEnableState, Ir as resolveChannelGroupRequireMention, Is as isSafeExecutableValue, It as isTransientHttpError, J as formatThinkingLevels, Ja as redactIdentifier, Ji as formatErrorMessage, Jn as listEnabledTelegramAccounts, Jo as setActivePluginRegistry, Jr as normalizeMessageChannel, Js as resolveOwnerDisplaySetting, Jt as extractDeliveryInfo, K as validateGeminiTurns, Ka as resolveBootstrapTotalMaxChars, Kn as inspectTelegramAccount, Kr as isMarkdownCapableMessageChannel, Ks as resolveShellEnvFallbackTimeoutMs, Kt as resolveSessionTranscriptFile, L as getSoonestCooldownExpiry, La as expandToolGroups, Li as kindFromMime, Ln as deriveSessionMetaPatch, Lo as resolveMemorySlotDecision, Lr as resolveChannelGroupToolsPolicy, Ls as mapStreamingModeToSlackLegacyDraftStreamMode, Lt as parseImageDimensionError, M as isNonSecretApiKeyMarker, Ma as buildPluginToolGroups, Mi as extensionForMime, Mn as setSessionRuntimeModel, Mo as isPathInside, Mr as resolveDiscordAccount, Ms as SAFE_BIN_PROFILES, Mt as isFailoverErrorMessage, N as isSecretRefHeaderValueMarker, Na as collectExplicitAllowlist, Nn as canonicalizeMainSessionAlias, No as safeStatSync, Nr as resolveDiscordMaxLinesPerMessage, Ns as normalizeSafeBinProfileFixtures, Nt as isLikelyContextOverflowError, O as buildAssistantMessage, Oa as isSecureWebSocketUrl, Oi as MEDIA_MAX_BYTES, On as resolveThreadFlag, Oo as isSupportedLocalAvatarExtension, Os as isShellWrapperExecutable, Ot as isCloudCodeAssistFormatError, Pa as expandPolicyWithPluginGroups, Pi as imageMimeFromFormat, Po as applyTestPluginDefaults, Pr as normalizeDiscordToken, Ps as resolveSafeBinProfiles, Pt as isRateLimitAssistantError, Q as normalizeReasoningLevel, Qa as resolveSecretRefValues, Qn as resolveTelegramToken, Qo as clearPluginCommands, Qr as GATEWAY_CLIENT_MODES, Qs as ensureAuthProfileStore, Qt as readSessionUpdatedAt, R as isProfileInCooldown, Ra as normalizeToolName, Rn as getChannelPlugin, Ro as CHAT_CHANNEL_ORDER, Rr as resolveAccountEntry, Rs as resolveDiscordPreviewStreamMode, Rt as parseImageSizeError, S as resolveApiKeyForProvider, Sa as ensureBrowserControlAuth, Sn as jsonUtf8Bytes, So as secretRefKey, Ss as DEFAULT_SAFE_BINS, St as formatAssistantErrorText, T as resolveRetryConfig, Ta as resolveGatewayCredentialsFromConfig, Ti as ensureChromeExtensionRelayServer, Tn as resolveChannelResetConfig, To as isAvatarDataUrl, Tr as resolveIMessageAccount, Ts as resolveCommandResolutionFromArgv, Tt as getApiErrorPayloadFingerprint, U as buildTextObservationFields, Ua as ensureSessionHeader, Ui as DEFAULT_UPLOAD_DIR, Un as normalizeSignalMessagingTarget, Uo as normalizeChatChannelId, Ur as isDeliverableMessageChannel, Us as resolveAgentMaxConcurrent, Ut as resolveSandboxRuntimeStatus, V as resolveProfilesUnavailableReason, Va as matchesAnyGlobPattern, Vi as mediaKindFromMime, Vn as getChannelDock, Vo as normalizeAnyChannelId, Vr as resolveGroupSessionKey, Vt as ensureSandboxWorkspaceForSession, W as sanitizeForConsole, Wa as resolveBootstrapMaxChars, Wi as resolveExistingPathsWithinRoot, Wn as resolveLineGroupConfigEntry, Wo as getActivePluginRegistry, Wr as isGatewayMessageChannel, Ws as VERSION, Wt as appendAssistantMessageToSessionTranscript, Xa as resolveSecretRefString, Xi as readErrorName, Xn as resolveTelegramAccount, Xo as findOverlappingPluginHttpRoute, Xr as resolveMessageChannel, Xs as listProfilesForProvider, Xt as onSessionTranscriptUpdate, Y as formatXHighModelHint, Ya as resolveApiKeyForProfile, Yi as formatUncaughtError, Yn as listTelegramAccountIds, Yo as createPluginRegistry, Yr as resolveGatewayMessageChannel, Ys as dedupeProfileIds, Yt as emitSessionTranscriptUpdate, Z as normalizeElevatedLevel, Za as resolveSecretRefValue, Zn as resolveTelegramPollActionGateState, Zo as normalizePluginHttpPath, Zr as GATEWAY_CLIENT_IDS, Zs as markAuthProfileGood, Zt as loadSessionStore, _a as assertSandboxPath, _i as resizeToJpeg, _n as parseInlineDirectives$1, _s as validateSafeBinArgv, _t as downgradeOpenAIReasoningBlocks, a as isCliProvider, ai as createBrowserRouteContext, an as resolveCacheTtlMs$1, ao as loadConfig, ar as resolveSlackAppToken, as as getConfigOverrides, at as isMessagingToolDuplicateNormalized, b as getCustomProviderApiKey, ba as applySkillEnvOverrides, bn as hasInterSessionUserProvenance, bo as normalizeScpRemoteHost, br as readWebSelfId, bs as isWindowsPlatform, bt as classifyFailoverReason, c as normalizeProviderId, ca as normalizeHostname, cc as hasConfiguredSecretInput, ci as generateSecureUuid, cn as deliveryContextKey, co as resolveConfigSnapshotHash, cr as resolveSignalAccount, cs as unsetConfigOverride, ct as sanitizeImageBlocks, d as resolveDefaultModelForAgent, dc as resolveSecretInputRef, dn as normalizeSessionDeliveryFields, do as validateConfigObjectWithPlugins, dr as resolveWhatsAppAccount, ds as setConfigValueAtPath, dt as canonicalizeBase64, ec as resolveOpenClawAgentDir, ei as acquireSessionWriteLock, en as resolveSessionStoreEntry, eo as isNonEmptyString, er as listBindings, es as getPluginCommandSpecs, et as normalizeUsageDisplay, f as resolveModelRefFromString, fa as buildWorkspaceSkillSnapshot, fc as splitTrailingAuthProfile, fi as resolveLsofCommandSync, fn as normalizeAccountId$3, fo as TELEGRAM_COMMAND_NAME_PATTERN, fs as unsetConfigValueAtPath, ft as estimateBase64DecodedBytes, ga as assertMediaNotDataUrl, gn as extractToolCallNames, go as isInboundPathAllowed, gr as logoutWeb, gs as normalizeTrustedSafeBinDirs, gt as downgradeOpenAIFunctionCallReasoningPairs, h as resolveThinkingDefault, hc as DEFAULT_PROVIDER, hn as countToolResults, hr as logWebSelfId, hs as listWritableExplicitTrustedSafeBinDirs, ht as sanitizeToolCallIdsForCloudCodeAssist, i as findNormalizedProviderValue, ic as resolveAuthProfileDisplayLabel, ii as writeJsonAtomic, in as isCacheEnabled, ir as resolveSlackReplyToMode, is as resolveContextEngine, j as buildUsageWithNoCost, ja as applyOwnerOnlyToolPolicy, ji as detectMime, jn as resolveFreshSessionTotalTokens, jo as discoverOpenClawPlugins, jr as listEnabledDiscordAccounts, js as splitShellArgs, jt as isFailoverAssistantError, k as buildAssistantMessageWithZeroUsage, ka as DEFAULT_AI_SNAPSHOT_MAX_CHARS, ki as getMediaDir, kn as DEFAULT_RESET_TRIGGERS, ko as validateJsonSchemaValue, kr as inspectDiscordAccount, ks as unwrapKnownDispatchWrapperInvocation, kt as isCompactionFailureError, lc as normalizeResolvedSecretInputString, li as resolveBrowserConfig, ln as mergeDeliveryContext, lo as setRuntimeConfigSnapshot, lr as mapAllowFromEntries, ls as getConfigValueAtPath, lt as sanitizeToolResultImages, m as resolveSubagentSpawnModelSelection, ma as resolveSkillsPromptForRun, mc as DEFAULT_MODEL, mi as getImageMetadata, mn as capArrayByJsonBytes, mo as resolveTelegramCustomCommands, mr as getWebAuthAgeMs, ms as isTrustedSafeBinPath, mt as extractToolResultId, n as buildConfiguredAllowlistKeys, nc as formatCliCommand, ni as createAsyncLock, nn as updateSessionStore, no as parseDotPath, nr as inspectSlackAccount, ns as matchPluginCommand, nt as resolveResponseUsageMode, o as modelKey, oa as isBlockedHostnameOrIp, oc as normalizeSecretInput, oi as registerBrowserRoutes, on as parseFiniteNumber$1, oo as readConfigFileSnapshot, or as resolveSlackBotToken, os as resetConfigOverrides, ot as normalizeTextForComparison, p as resolveReasoningDefault, pa as loadWorkspaceSkillEntries, pc as DEFAULT_CONTEXT_TOKENS, pn as archiveSessionTranscripts, po as normalizeTelegramCommandName, ps as getTrustedSafeBinDirs, pt as extractToolCallsFromAssistant, q as pickFallbackThinkingLevel, qa as sanitizeGoogleTurnOrdering, qn as createTelegramActionGate, qo as requireActivePluginRegistry, qr as listDeliverableMessageChannels, qs as isDangerousHostEnvVarName, qt as resolveAndPersistSessionFile, r as buildModelAliasIndex, ra as SsrFBlockedError, rc as resolveCliName, ri as readJsonFile, rn as updateSessionStoreEntry, rr as resolveSlackAccount, rs as registerContextEngine, rt as supportsXHighThinking, s as normalizeModelRef$2, sc as coerceSecretRef, si as generateSecureToken, sn as deliveryContextFromSession, so as readConfigFileSnapshotForWrite, sr as listEnabledSignalAccounts, ss as setConfigOverride, st as sanitizeSessionMessagesImages, t as buildAllowedModelSet, tc as withFileLock, ti as resolveSessionLockMaxHoldFromTimeout, tn as updateLastRoute, to as isRecord$3, tr as listAcpBindings, ts as listPluginCommands, tt as normalizeVerboseLevel, u as resolveConfiguredModelRef, ua as getBridgeAuthForPort, uc as normalizeSecretInputString, ui as resolveProfile, un as normalizeDeliveryContext, uo as writeConfigFile, ur as hasAnyWhatsAppAuth, us as parseConfigPath, ut as resolveImageSanitizationLimits, va as resolveSandboxInputPath, vn as INPUT_PROVENANCE_KIND_VALUES, vo as resolveIMessageAttachmentRoots, vs as analyzeShellCommand, vt as isGoogleModelApi, w as resolveModelAuthMode, wa as GatewaySecretRefUnavailableError, wn as evaluateSessionFreshness, wr as webAuthExists, ws as resolveAllowlistCandidatePath, wt as formatRawAssistantErrorForUi, x as requireApiKey, xa as applySkillEnvOverridesFromSnapshot, xn as normalizeInputProvenance, xo as parseNonNegativeByteSize, xs as splitCommandChain, xt as classifyFailoverReasonFromHttpStatus, y as getApiKeyForModel, ya as resolveSandboxedMediaSource, yn as applyInputProvenanceToUserMessage, yo as resolveIMessageRemoteAttachmentRoots, ys as buildEnforcedShellCommand, yt as BILLING_ERROR_USER_MESSAGE, z as markAuthProfileFailure, za as resolveToolProfilePolicy, zi as MAX_IMAGE_BYTES, zn as listChannelPlugins, zo as getChatChannelMeta, zr as resolveConversationLabel, zs as resolveSlackNativeStreaming, zt as sanitizeUserFacingText } from "./model-selection-CMEj8bpy.js";
|
|
7
7
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-8N63GdbE.js";
|
|
8
8
|
import { t as parseBooleanValue$1 } from "./boolean-C7Ct_klp.js";
|
|
9
9
|
import { t as isTruthyEnvValue } from "./env-lw2hsIUY.js";
|
|
10
10
|
import { h as createInternalHookEvent, m as MANIFEST_KEY, y as triggerInternalHook } from "./frontmatter-C_obXuTp.js";
|
|
11
|
-
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-
|
|
12
|
-
import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveOpenProviderRuntimeGroupPolicy, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as GROUP_POLICY_BLOCKED_LABEL, E as listThreadsDiscord, Et as evaluateMatchedGroupAccessForPolicy, F as fetchMemberInfoDiscord, Ft as buildChannelKeyCandidates, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, It as normalizeChannelSlug, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, Lt as resolveChannelEntryMatchWithFallback, M as banMemberDiscord, Mt as DiscordApiError, N as createScheduledEventDiscord, Nt as fetchDiscord, O as readMessagesDiscord, Ot as resolveAllowlistProviderRuntimeGroupPolicy, P as fetchChannelInfoDiscord, Pt as applyChannelMatchMeta, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as evaluateGroupRouteAccessForPolicy, 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, jt as warnMissingProviderGroupPolicyFallbackOnce, k as searchMessagesDiscord, kt as resolveDefaultGroupPolicy, 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-
|
|
11
|
+
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-BKO1-P1t.js";
|
|
12
|
+
import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveOpenProviderRuntimeGroupPolicy, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as GROUP_POLICY_BLOCKED_LABEL, E as listThreadsDiscord, Et as evaluateMatchedGroupAccessForPolicy, F as fetchMemberInfoDiscord, Ft as buildChannelKeyCandidates, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, It as normalizeChannelSlug, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, Lt as resolveChannelEntryMatchWithFallback, M as banMemberDiscord, Mt as DiscordApiError, N as createScheduledEventDiscord, Nt as fetchDiscord, O as readMessagesDiscord, Ot as resolveAllowlistProviderRuntimeGroupPolicy, P as fetchChannelInfoDiscord, Pt as applyChannelMatchMeta, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as evaluateGroupRouteAccessForPolicy, 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, jt as warnMissingProviderGroupPolicyFallbackOnce, k as searchMessagesDiscord, kt as resolveDefaultGroupPolicy, 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-4rRrSKp9.js";
|
|
13
13
|
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-6ul2IrzG.js";
|
|
14
|
-
import { A as normalizeTargetForProvider, C as isRenderablePayload, D as resolveReplyToMode, E as createReplyToModeFilterForChannel, M as initializeGlobalHookRunner, N as joinPresentTextSegments, O as buildTargetResolverSignature, S as filterMessagingToolMediaDuplicates, T as shouldSuppressReasoningPayload, _ as toPluginMessageSentEvent, a as normalizeReplyPayloadsForDelivery, b as applyReplyThreading, c as splitMediaFromOutput, d as toInternalMessagePreprocessedContext, f as toInternalMessageReceivedContext, g as toPluginMessageReceivedEvent, h as toPluginMessageContext, i as normalizeOutboundPayloadsForJson, j as getGlobalHookRunner, k as normalizeChannelTargetInput, l as buildCanonicalSentMessageHookContext, m as toInternalMessageTranscribedContext, n as formatOutboundPayloadLog, o as throwIfAborted, p as toInternalMessageSentContext, r as normalizeOutboundPayloads, s as parseReplyDirectives, t as deliverOutboundPayloads, u as deriveInboundMessageHookContext, v as fireAndForgetHook, w as shouldSuppressMessagingToolReplies, x as filterMessagingToolDuplicates, y as applyReplyTagsToPayload } from "./deliver-
|
|
15
|
-
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-
|
|
14
|
+
import { A as normalizeTargetForProvider, C as isRenderablePayload, D as resolveReplyToMode, E as createReplyToModeFilterForChannel, M as initializeGlobalHookRunner, N as joinPresentTextSegments, O as buildTargetResolverSignature, S as filterMessagingToolMediaDuplicates, T as shouldSuppressReasoningPayload, _ as toPluginMessageSentEvent, a as normalizeReplyPayloadsForDelivery, b as applyReplyThreading, c as splitMediaFromOutput, d as toInternalMessagePreprocessedContext, f as toInternalMessageReceivedContext, g as toPluginMessageReceivedEvent, h as toPluginMessageContext, i as normalizeOutboundPayloadsForJson, j as getGlobalHookRunner, k as normalizeChannelTargetInput, l as buildCanonicalSentMessageHookContext, m as toInternalMessageTranscribedContext, n as formatOutboundPayloadLog, o as throwIfAborted, p as toInternalMessageSentContext, r as normalizeOutboundPayloads, s as parseReplyDirectives, t as deliverOutboundPayloads, u as deriveInboundMessageHookContext, v as fireAndForgetHook, w as shouldSuppressMessagingToolReplies, x as filterMessagingToolDuplicates, y as applyReplyTagsToPayload } from "./deliver-B6eTtXSk.js";
|
|
15
|
+
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-BZmAxdu9.js";
|
|
16
16
|
import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-D4pwl9LR.js";
|
|
17
|
-
import { $ as toLocationContext, A as buildTypingThreadParams, B as resolveTelegramMediaPlaceholder, C as buildGroupLabel, D as buildTelegramGroupPeerId, E as buildTelegramGroupFrom, F as hasBotMention, G as normalizeAllowFrom$2, H as resolveTelegramStreamMode, I as normalizeForwardedContext, J as firstDefined$1, K as normalizeDmAllowFromWithStore$1, L as resolveTelegramDirectPeerId, M as expandTextLinks, N as extractTelegramLocation, O as buildTelegramParentPeer, P as getTelegramTextParts, Q as formatLocationText, R as resolveTelegramForumThreadId, S as resolveCronStorePath, T as buildSenderName, U as resolveTelegramThreadSpec, V as resolveTelegramReplyId, W as isSenderAllowed$1, X as mergeDmAllowFromSources, Y as isSenderIdAllowed, Z as resolveGroupAllowFromSources, _ as renderTelegramHtmlText, a as editMessageTelegram, at as writeJsonFileAtomically, b as withTelegramApiErrorLogging, c as sendPollTelegram, ct as isVoiceCompatibleAudio, d as resolveTelegramVoiceSend, et as addChannelAllowFromStoreEntry, f as wasSentByBot, g as markdownToTelegramHtml, h as markdownToTelegramChunks, i as editMessageReplyMarkupTelegram, it as readJsonFileWithFallback, j as describeReplyTarget, k as buildTelegramThreadParams, l as sendStickerTelegram, m as isSafeToRetrySendError, n as createForumTopicTelegram, nt as removeChannelAllowFromStoreEntry, o as reactMessageTelegram, ot as getPairingAdapter, p as isRecoverableTelegramNetworkError, q as resolveSenderAllowMatch$1, r as deleteMessageTelegram, rt as upsertChannelPairingRequest, s as sendMessageTelegram, st as listPairingChannels, t as buildInlineKeyboard, tt as readChannelAllowFromStore, u as sendTypingTelegram, v as wrapFileReferencesInHtml, w as buildSenderLabel, x as loadCronStore, y as splitTelegramCaption, z as resolveTelegramGroupAllowFromContext } from "./send-
|
|
18
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
19
|
-
import { C as isMinimaxVlmModel, E as ensureOpenClawModelsJson, S as extractTextFromChatContent, T as minimaxUnderstandImage, _ 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 isMinimaxVlmProvider, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-
|
|
20
|
-
import { C as loadModelCatalog, S as findModelInCatalog, _ as registerUnhandledRejectionHandler, a as resolveAutoImageModel, b as normalizeAttachments, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, g as buildRandomTempFilePath, h as DEFAULT_IMAGE_MODELS, i as normalizeMediaAttachments, l as resolveConcurrency, m as CLI_OUTPUT_MAX_BUFFER, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as AUTO_IMAGE_KEY_PROVIDERS, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, w as modelSupportsVision, x as resolveAttachmentKind, y as normalizeAttachmentPath } from "./audio-transcription-runner-
|
|
21
|
-
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-
|
|
17
|
+
import { $ as toLocationContext, A as buildTypingThreadParams, B as resolveTelegramMediaPlaceholder, C as buildGroupLabel, D as buildTelegramGroupPeerId, E as buildTelegramGroupFrom, F as hasBotMention, G as normalizeAllowFrom$2, H as resolveTelegramStreamMode, I as normalizeForwardedContext, J as firstDefined$1, K as normalizeDmAllowFromWithStore$1, L as resolveTelegramDirectPeerId, M as expandTextLinks, N as extractTelegramLocation, O as buildTelegramParentPeer, P as getTelegramTextParts, Q as formatLocationText, R as resolveTelegramForumThreadId, S as resolveCronStorePath, T as buildSenderName, U as resolveTelegramThreadSpec, V as resolveTelegramReplyId, W as isSenderAllowed$1, X as mergeDmAllowFromSources, Y as isSenderIdAllowed, Z as resolveGroupAllowFromSources, _ as renderTelegramHtmlText, a as editMessageTelegram, at as writeJsonFileAtomically, b as withTelegramApiErrorLogging, c as sendPollTelegram, ct as isVoiceCompatibleAudio, d as resolveTelegramVoiceSend, et as addChannelAllowFromStoreEntry, f as wasSentByBot, g as markdownToTelegramHtml, h as markdownToTelegramChunks, i as editMessageReplyMarkupTelegram, it as readJsonFileWithFallback, j as describeReplyTarget, k as buildTelegramThreadParams, l as sendStickerTelegram, m as isSafeToRetrySendError, n as createForumTopicTelegram, nt as removeChannelAllowFromStoreEntry, o as reactMessageTelegram, ot as getPairingAdapter, p as isRecoverableTelegramNetworkError, q as resolveSenderAllowMatch$1, r as deleteMessageTelegram, rt as upsertChannelPairingRequest, s as sendMessageTelegram, st as listPairingChannels, t as buildInlineKeyboard, tt as readChannelAllowFromStore, u as sendTypingTelegram, v as wrapFileReferencesInHtml, w as buildSenderLabel, x as loadCronStore, y as splitTelegramCaption, z as resolveTelegramGroupAllowFromContext } from "./send-V1MRV7QF.js";
|
|
18
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-D-r5y7kV.js";
|
|
19
|
+
import { C as isMinimaxVlmModel, E as ensureOpenClawModelsJson, S as extractTextFromChatContent, T as minimaxUnderstandImage, _ 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 isMinimaxVlmProvider, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-Bt49ybRv.js";
|
|
20
|
+
import { C as loadModelCatalog, S as findModelInCatalog, _ as registerUnhandledRejectionHandler, a as resolveAutoImageModel, b as normalizeAttachments, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, g as buildRandomTempFilePath, h as DEFAULT_IMAGE_MODELS, i as normalizeMediaAttachments, l as resolveConcurrency, m as CLI_OUTPUT_MAX_BUFFER, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as AUTO_IMAGE_KEY_PROVIDERS, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, w as modelSupportsVision, x as resolveAttachmentKind, y as normalizeAttachmentPath } from "./audio-transcription-runner-CQU4Eg1M.js";
|
|
21
|
+
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-CMLoICyN.js";
|
|
22
22
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-Bj8qHhwJ.js";
|
|
23
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
23
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-DCj3k042.js";
|
|
24
24
|
import { n as makeProxyFetch } from "./proxy-fetch-BOh1PLOW.js";
|
|
25
|
-
import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-
|
|
26
|
-
import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-
|
|
27
|
-
import { _ as isRestartEnabled, a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, g as isNativeCommandsExplicitlyDisabled, h as isCommandFlagEnabled, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs, v as resolveNativeCommandsEnabled, y as resolveNativeSkillsEnabled } from "./commands-registry-
|
|
28
|
-
import { a as getRemoteSkillEligibility, c as pruneExpiredPending, i as resolveSkillCommandInvocation, l as resolvePairingPaths, n as listSkillCommandsForAgents, o as ensureSkillsWatcher, r as listSkillCommandsForWorkspace, s as getSkillsSnapshotVersion, t as listReservedChatSlashCommandNames } from "./skill-commands-
|
|
25
|
+
import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-CVtBjUiL.js";
|
|
26
|
+
import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-CeBF8Pws.js";
|
|
27
|
+
import { _ as isRestartEnabled, a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, g as isNativeCommandsExplicitlyDisabled, h as isCommandFlagEnabled, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs, v as resolveNativeCommandsEnabled, y as resolveNativeSkillsEnabled } from "./commands-registry-CyLMCPuP.js";
|
|
28
|
+
import { a as getRemoteSkillEligibility, c as pruneExpiredPending, i as resolveSkillCommandInvocation, l as resolvePairingPaths, n as listSkillCommandsForAgents, o as ensureSkillsWatcher, r as listSkillCommandsForWorkspace, s as getSkillsSnapshotVersion, t as listReservedChatSlashCommandNames } from "./skill-commands-B55LOaMB.js";
|
|
29
29
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-CeWULXBI.js";
|
|
30
30
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-DzL3RRfj.js";
|
|
31
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-
|
|
31
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-dT3cYb0e.js";
|
|
32
32
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-C-AlrR3n.js";
|
|
33
33
|
import { n as normalizePollInput, r as resolvePollMaxSelections } from "./polls-Dw-aNTWI.js";
|
|
34
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
35
|
-
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-
|
|
36
|
-
import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-
|
|
34
|
+
import { t as convertMarkdownTables } from "./tables-BAGqh2XD.js";
|
|
35
|
+
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-EDBPXjTT.js";
|
|
36
|
+
import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-K2mAG7KC.js";
|
|
37
37
|
import { t as resolveTelegramFetch } from "./fetch-C0iyt-Iz.js";
|
|
38
|
-
import { t as getActiveWebListener } from "./active-listener-
|
|
39
|
-
import { r as resolveMemorySearchConfig } from "./manager-
|
|
38
|
+
import { t as getActiveWebListener } from "./active-listener-BLd27Pxd.js";
|
|
39
|
+
import { r as resolveMemorySearchConfig } from "./manager-DSfEj66R.js";
|
|
40
40
|
import { m as normalizeExtraMemoryPaths, n as isQueryStopWordToken, p as listMemoryFiles, t as extractKeywords } from "./query-expansion-BErUY8P2.js";
|
|
41
41
|
import { createRequire } from "node:module";
|
|
42
42
|
import * as fs$1 from "node:fs/promises";
|
|
@@ -54,7 +54,7 @@ import * as net$1 from "node:net";
|
|
|
54
54
|
import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, SettingsManager, codingTools, createAgentSession, createEditTool, createReadTool, createWriteTool, estimateTokens, generateSummary, readTool } from "@mariozechner/pi-coding-agent";
|
|
55
55
|
import { Agent, EnvHttpProxyAgent, ProxyAgent, fetch as fetch$1, getGlobalDispatcher, setGlobalDispatcher } from "undici";
|
|
56
56
|
import { createServer } from "node:http";
|
|
57
|
-
import WebSocket
|
|
57
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
58
58
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
59
59
|
import { complete, completeSimple, createAssistantMessageEventStream, getApiProvider, registerApiProvider, streamSimple } from "@mariozechner/pi-ai";
|
|
60
60
|
import { EdgeTTS } from "node-edge-tts";
|
|
@@ -251,7 +251,7 @@ var LegacyContextEngine = class {
|
|
|
251
251
|
}
|
|
252
252
|
async afterTurn(_params) {}
|
|
253
253
|
async compact(params) {
|
|
254
|
-
const { compactEmbeddedPiSessionDirect } = await import("./compact.runtime-
|
|
254
|
+
const { compactEmbeddedPiSessionDirect } = await import("./compact.runtime-DGRl4st4.js");
|
|
255
255
|
const runtimeContext = params.runtimeContext ?? {};
|
|
256
256
|
const result = await compactEmbeddedPiSessionDirect({
|
|
257
257
|
...runtimeContext,
|
|
@@ -8670,7 +8670,7 @@ var GatewayClient = class {
|
|
|
8670
8670
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
8671
8671
|
});
|
|
8672
8672
|
}
|
|
8673
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
8673
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
8674
8674
|
this.ws.on("open", () => {
|
|
8675
8675
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
8676
8676
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -8866,7 +8866,7 @@ var GatewayClient = class {
|
|
|
8866
8866
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
8867
8867
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
8868
8868
|
this.connectTimer = setTimeout(() => {
|
|
8869
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
8869
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
8870
8870
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
8871
8871
|
this.ws?.close(1008, "connect challenge timeout");
|
|
8872
8872
|
}, connectChallengeTimeoutMs);
|
|
@@ -8908,7 +8908,7 @@ var GatewayClient = class {
|
|
|
8908
8908
|
return null;
|
|
8909
8909
|
}
|
|
8910
8910
|
async request(method, params, opts) {
|
|
8911
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
8911
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
8912
8912
|
const id = randomUUID();
|
|
8913
8913
|
const frame = {
|
|
8914
8914
|
type: "req",
|
|
@@ -10432,7 +10432,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
10432
10432
|
*/
|
|
10433
10433
|
let deliverRuntimePromise$2 = null;
|
|
10434
10434
|
function loadDeliverRuntime$2() {
|
|
10435
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
10435
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-CLDpY6AW.js");
|
|
10436
10436
|
return deliverRuntimePromise$2;
|
|
10437
10437
|
}
|
|
10438
10438
|
/**
|
|
@@ -11786,7 +11786,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
|
|
|
11786
11786
|
const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
11787
11787
|
let subagentRegistryRuntimePromise = null;
|
|
11788
11788
|
function loadSubagentRegistryRuntime() {
|
|
11789
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
11789
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-DjEYzSyM.js");
|
|
11790
11790
|
return subagentRegistryRuntimePromise;
|
|
11791
11791
|
}
|
|
11792
11792
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
@@ -15374,7 +15374,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
15374
15374
|
//#region src/media-understanding/echo-transcript.ts
|
|
15375
15375
|
let deliverRuntimePromise$1 = null;
|
|
15376
15376
|
function loadDeliverRuntime$1() {
|
|
15377
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
15377
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-CLDpY6AW.js");
|
|
15378
15378
|
return deliverRuntimePromise$1;
|
|
15379
15379
|
}
|
|
15380
15380
|
function formatEchoTranscript(transcript, format) {
|
|
@@ -25098,7 +25098,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
25098
25098
|
await ensureOpenClawModelsJson(cfg);
|
|
25099
25099
|
} catch {}
|
|
25100
25100
|
try {
|
|
25101
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
25101
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-D-r5y7kV.js").then((n) => n.r);
|
|
25102
25102
|
const agentDir = resolveOpenClawAgentDir();
|
|
25103
25103
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
25104
25104
|
applyDiscoveredContextWindows({
|
|
@@ -34852,7 +34852,7 @@ async function createModelSelectionState(params) {
|
|
|
34852
34852
|
}
|
|
34853
34853
|
}
|
|
34854
34854
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
34855
|
-
const { ensureAuthProfileStore } = await import("./model-selection-
|
|
34855
|
+
const { ensureAuthProfileStore } = await import("./model-selection-CMEj8bpy.js").then((n) => n.P);
|
|
34856
34856
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
34857
34857
|
const providerKey = normalizeProviderId(provider);
|
|
34858
34858
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -57723,7 +57723,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
57723
57723
|
const log$11 = createSubsystemLogger("session-maintenance-warning");
|
|
57724
57724
|
let deliverRuntimePromise = null;
|
|
57725
57725
|
function loadDeliverRuntime() {
|
|
57726
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
57726
|
+
deliverRuntimePromise ??= import("./deliver-runtime-CLDpY6AW.js");
|
|
57727
57727
|
return deliverRuntimePromise;
|
|
57728
57728
|
}
|
|
57729
57729
|
function shouldSendWarning() {
|
|
@@ -62782,7 +62782,7 @@ function getCacheStats() {
|
|
|
62782
62782
|
const STICKER_DESCRIPTION_PROMPT = "Describe this sticker image in 1-2 sentences. Focus on what the sticker depicts (character, object, action, emotion). Be concise and objective.";
|
|
62783
62783
|
let imageRuntimePromise = null;
|
|
62784
62784
|
function loadImageRuntime() {
|
|
62785
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
62785
|
+
imageRuntimePromise ??= import("./image-runtime-Cilhq73U.js");
|
|
62786
62786
|
return imageRuntimePromise;
|
|
62787
62787
|
}
|
|
62788
62788
|
/**
|
|
@@ -66950,7 +66950,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
66950
66950
|
hasTypedText
|
|
66951
66951
|
};
|
|
66952
66952
|
try {
|
|
66953
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
66953
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-eV5m9mMp.js");
|
|
66954
66954
|
if (params.abortSignal?.aborted) return {
|
|
66955
66955
|
hasAudioAttachment,
|
|
66956
66956
|
hasTypedText
|
|
@@ -70521,27 +70521,27 @@ let slackSenderRuntimePromise = null;
|
|
|
70521
70521
|
let signalSenderRuntimePromise = null;
|
|
70522
70522
|
let imessageSenderRuntimePromise = null;
|
|
70523
70523
|
function loadWhatsAppSenderRuntime() {
|
|
70524
|
-
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-
|
|
70524
|
+
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-B1KJ7YOp.js");
|
|
70525
70525
|
return whatsappSenderRuntimePromise;
|
|
70526
70526
|
}
|
|
70527
70527
|
function loadTelegramSenderRuntime() {
|
|
70528
|
-
telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-
|
|
70528
|
+
telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-CEWc7ePn.js");
|
|
70529
70529
|
return telegramSenderRuntimePromise;
|
|
70530
70530
|
}
|
|
70531
70531
|
function loadDiscordSenderRuntime() {
|
|
70532
|
-
discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-
|
|
70532
|
+
discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-CxADlame.js");
|
|
70533
70533
|
return discordSenderRuntimePromise;
|
|
70534
70534
|
}
|
|
70535
70535
|
function loadSlackSenderRuntime() {
|
|
70536
|
-
slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-
|
|
70536
|
+
slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-CgX24hgT.js");
|
|
70537
70537
|
return slackSenderRuntimePromise;
|
|
70538
70538
|
}
|
|
70539
70539
|
function loadSignalSenderRuntime() {
|
|
70540
|
-
signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-
|
|
70540
|
+
signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-BDtzvsnR.js");
|
|
70541
70541
|
return signalSenderRuntimePromise;
|
|
70542
70542
|
}
|
|
70543
70543
|
function loadIMessageSenderRuntime() {
|
|
70544
|
-
imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-
|
|
70544
|
+
imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-Wi79xm6H.js");
|
|
70545
70545
|
return imessageSenderRuntimePromise;
|
|
70546
70546
|
}
|
|
70547
70547
|
function createDefaultDeps() {
|
|
@@ -74448,7 +74448,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
74448
74448
|
return super.registerClient(client);
|
|
74449
74449
|
}
|
|
74450
74450
|
createWebSocket(url) {
|
|
74451
|
-
return new WebSocket
|
|
74451
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
74452
74452
|
}
|
|
74453
74453
|
}
|
|
74454
74454
|
return new ProxyGatewayPlugin();
|
|
@@ -83794,15 +83794,15 @@ let slashCommandsRuntimePromise = null;
|
|
|
83794
83794
|
let slashDispatchRuntimePromise = null;
|
|
83795
83795
|
let slashSkillCommandsRuntimePromise = null;
|
|
83796
83796
|
function loadSlashCommandsRuntime() {
|
|
83797
|
-
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-
|
|
83797
|
+
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-BchS0VkW.js");
|
|
83798
83798
|
return slashCommandsRuntimePromise;
|
|
83799
83799
|
}
|
|
83800
83800
|
function loadSlashDispatchRuntime() {
|
|
83801
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-
|
|
83801
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-BIKRY3fr.js");
|
|
83802
83802
|
return slashDispatchRuntimePromise;
|
|
83803
83803
|
}
|
|
83804
83804
|
function loadSlashSkillCommandsRuntime() {
|
|
83805
|
-
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-
|
|
83805
|
+
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-BP4jBHU9.js");
|
|
83806
83806
|
return slashSkillCommandsRuntimePromise;
|
|
83807
83807
|
}
|
|
83808
83808
|
const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
|
|
@@ -87308,7 +87308,7 @@ async function resolveTelegramInboundBody(params) {
|
|
|
87308
87308
|
const disableAudioPreflight = (topicConfig?.disableAudioPreflight ?? groupConfig?.disableAudioPreflight) === true;
|
|
87309
87309
|
let preflightTranscript;
|
|
87310
87310
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
87311
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
87311
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-eV5m9mMp.js");
|
|
87312
87312
|
preflightTranscript = await transcribeFirstAudio({
|
|
87313
87313
|
ctx: {
|
|
87314
87314
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -90974,7 +90974,7 @@ function createWhatsAppLoginTool() {
|
|
|
90974
90974
|
force: Type.Optional(Type.Boolean())
|
|
90975
90975
|
}),
|
|
90976
90976
|
execute: async (_toolCallId, args) => {
|
|
90977
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
90977
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-ClBxstxZ.js");
|
|
90978
90978
|
if ((args?.action ?? "start") === "wait") {
|
|
90979
90979
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
90980
90980
|
return {
|
|
@@ -91048,23 +91048,23 @@ let webOutboundPromise = null;
|
|
|
91048
91048
|
let webLoginPromise = null;
|
|
91049
91049
|
let whatsappActionsPromise = null;
|
|
91050
91050
|
function loadWebOutbound() {
|
|
91051
|
-
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-
|
|
91051
|
+
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-yiy6jzKk.js");
|
|
91052
91052
|
return webOutboundPromise;
|
|
91053
91053
|
}
|
|
91054
91054
|
function loadWebLogin() {
|
|
91055
|
-
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-
|
|
91055
|
+
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-ChqE9BkX.js");
|
|
91056
91056
|
return webLoginPromise;
|
|
91057
91057
|
}
|
|
91058
91058
|
function loadWebLoginQr() {
|
|
91059
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
91059
|
+
webLoginQrPromise ??= import("./login-qr-ClBxstxZ.js");
|
|
91060
91060
|
return webLoginQrPromise;
|
|
91061
91061
|
}
|
|
91062
91062
|
function loadWebChannel() {
|
|
91063
|
-
webChannelPromise ??= import("./web-
|
|
91063
|
+
webChannelPromise ??= import("./web-BRSmQdtm.js");
|
|
91064
91064
|
return webChannelPromise;
|
|
91065
91065
|
}
|
|
91066
91066
|
function loadWhatsAppActions() {
|
|
91067
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
91067
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-Dxb2K2Xh.js");
|
|
91068
91068
|
return whatsappActionsPromise;
|
|
91069
91069
|
}
|
|
91070
91070
|
function createRuntimeWhatsApp() {
|
|
@@ -91499,7 +91499,7 @@ const log$6 = createSubsystemLogger("memory");
|
|
|
91499
91499
|
const QMD_MANAGER_CACHE = /* @__PURE__ */ new Map();
|
|
91500
91500
|
let managerRuntimePromise = null;
|
|
91501
91501
|
function loadManagerRuntime() {
|
|
91502
|
-
managerRuntimePromise ??= import("./manager-runtime-
|
|
91502
|
+
managerRuntimePromise ??= import("./manager-runtime-BrZlGJsj.js");
|
|
91503
91503
|
return managerRuntimePromise;
|
|
91504
91504
|
}
|
|
91505
91505
|
async function getMemorySearchManager(params) {
|
|
@@ -93792,7 +93792,7 @@ const LOOP_WARNING_BUCKET_SIZE = 10;
|
|
|
93792
93792
|
const MAX_LOOP_WARNING_KEYS = 256;
|
|
93793
93793
|
let beforeToolCallRuntimePromise = null;
|
|
93794
93794
|
function loadBeforeToolCallRuntime() {
|
|
93795
|
-
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-
|
|
93795
|
+
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-DagGpfw0.js");
|
|
93796
93796
|
return beforeToolCallRuntimePromise;
|
|
93797
93797
|
}
|
|
93798
93798
|
function buildAdjustedParamsKey(params) {
|
|
@@ -99915,7 +99915,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
99915
99915
|
* Throws if the connection is not open.
|
|
99916
99916
|
*/
|
|
99917
99917
|
send(event) {
|
|
99918
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
99918
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
99919
99919
|
this.ws.send(JSON.stringify(event));
|
|
99920
99920
|
}
|
|
99921
99921
|
/**
|
|
@@ -99932,7 +99932,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
99932
99932
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
99933
99933
|
*/
|
|
99934
99934
|
isConnected() {
|
|
99935
|
-
return this.ws !== null && this.ws.readyState === WebSocket
|
|
99935
|
+
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
99936
99936
|
}
|
|
99937
99937
|
/**
|
|
99938
99938
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -99942,7 +99942,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
99942
99942
|
this._cancelRetryTimer();
|
|
99943
99943
|
if (this.ws) {
|
|
99944
99944
|
this.ws.removeAllListeners();
|
|
99945
|
-
if (this.ws.readyState === WebSocket
|
|
99945
|
+
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
99946
99946
|
this.ws = null;
|
|
99947
99947
|
}
|
|
99948
99948
|
}
|
|
@@ -99952,7 +99952,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
99952
99952
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
99953
99953
|
return;
|
|
99954
99954
|
}
|
|
99955
|
-
const socket = new WebSocket
|
|
99955
|
+
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
99956
99956
|
Authorization: `Bearer ${this.apiKey}`,
|
|
99957
99957
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
99958
99958
|
} });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
|
-
import { Qs as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { Qs as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-CMEj8bpy.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import syncFs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|