@multiplytech/openclaw 2026.2.15-pairing-code.2 → 2026.2.15-pairing-code.3
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/{agent-DSNLBtzv.js → agent-DTNvKM2P.js} +2 -2
- package/dist/{agent-CET80Gay.js → agent-DoKOzDAt.js} +2 -2
- package/dist/{agents-DVhI-sID.js → agents-DB8xHohl.js} +2 -2
- package/dist/{auth-choice-CzyYAKv4.js → auth-choice-C3--CpEI.js} +1 -1
- package/dist/{auth-choice-CM1FwPhS.js → auth-choice-CTK4oGkS.js} +1 -1
- package/dist/{banner-CC6AnOLA.js → banner-DlnL7Slb.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-DM0gtR7J.js → channel-options-DTszr7UZ.js} +1 -1
- package/dist/{channel-options-DP6dkP-J.js → channel-options-DjpVPRIl.js} +1 -1
- package/dist/{channel-web-DDHUGqV-.js → channel-web-D7bde6n5.js} +2 -2
- package/dist/{channels-cli-_m5J1SUj.js → channels-cli-HhdoLxhz.js} +4 -4
- package/dist/{channels-cli-BWY19Tr3.js → channels-cli-u2oRC89U.js} +4 -4
- package/dist/{cli-CkxVFOPr.js → cli-BmEEG6LF.js} +1 -1
- package/dist/{cli-cysSgfbp.js → cli-DALx-L2z.js} +1 -1
- package/dist/{command-registry-Ms3vUNfw.js → command-registry-Zu61QmVf.js} +9 -9
- package/dist/{completion-cli-CbvLZfUs.js → completion-cli-C-q-FkeT.js} +2 -2
- package/dist/{completion-cli-DuE48nk4.js → completion-cli-sZBZnfMK.js} +1 -1
- package/dist/{config-cli-eb9CK3uV.js → config-cli-BWKb4EMZ.js} +1 -1
- package/dist/{config-cli-C58ZfUhH.js → config-cli-CGOyIowg.js} +1 -1
- package/dist/{configure-DFUm_Dof.js → configure-DOqQjooh.js} +3 -3
- package/dist/{configure-DyMYMaNh.js → configure-Vvq-cip8.js} +3 -3
- package/dist/{deps-CiaNIqTD.js → deps-CtD8VF2g.js} +1 -1
- package/dist/{doctor-BCC19s0G.js → doctor-C4_8AvIH.js} +4 -4
- package/dist/{doctor-DFR69Jkv.js → doctor-DtN-z3_C.js} +4 -4
- package/dist/{doctor-completion-B7UatwRt.js → doctor-completion-CHjJchGS.js} +1 -1
- package/dist/{doctor-completion-CiuhTB62.js → doctor-completion-I1dEiTU-.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +1 -1
- package/dist/{gateway-cli-CbP4cmFj.js → gateway-cli-CjGNIUv4.js} +9 -9
- package/dist/{gateway-cli-DGB1KeyL.js → gateway-cli-DLgphSfL.js} +9 -9
- package/dist/{health-B2fbSIi_.js → health-B7GSkRWi.js} +2 -2
- package/dist/{health-B6AmPi2R.js → health-CZTNBGMI.js} +2 -2
- package/dist/{heartbeat-visibility-BYMUmHPs.js → heartbeat-visibility-B9nOsKDd.js} +1 -1
- package/dist/{heartbeat-visibility-WVqHxZgg.js → heartbeat-visibility-Dgp5aP37.js} +1 -1
- package/dist/{hooks-cli-BWmreFRZ.js → hooks-cli-C8IQCUf9.js} +2 -2
- package/dist/{hooks-cli-dFwTZLe2.js → hooks-cli-CB0R6yP9.js} +2 -2
- package/dist/index.js +9 -9
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{login-D1k4q2qY.js → login-CFjSEIg1.js} +1 -1
- package/dist/{login-CNy8yFnm.js → login-CfzZlhYy.js} +1 -1
- package/dist/{login-Cw2wldnK.js → login-CrD6iwIT.js} +1 -1
- package/dist/{login-ngyKaHO6.js → login-NEYiBobK.js} +1 -1
- package/dist/{login-qr-CfaLyR02.js → login-qr-B92LRmnh.js} +1 -1
- package/dist/{login-qr-DiVZZgtR.js → login-qr-CmkMkiw0.js} +1 -1
- package/dist/{login-qr-W7COevag.js → login-qr-D3hsc4br.js} +1 -1
- package/dist/{login-qr-BLRuJdO9.js → login-qr-LM0fkvty.js} +1 -1
- package/dist/{models-VQB6E13t.js → models-VeXFWmzm.js} +2 -2
- package/dist/{models-cli-DP8Ioz-0.js → models-cli-QFp-Qadk.js} +2 -2
- package/dist/{models-cli-CNFpMBjO.js → models-cli-fOdGdULJ.js} +3 -3
- package/dist/{onboard-DkRM_urM.js → onboard-ApR__J6N.js} +2 -2
- package/dist/{onboard-CYiDuEzd.js → onboard-DkkjXP5u.js} +2 -2
- package/dist/{onboard-channels-BXaJuRoE.js → onboard-channels-CTkeYXWn.js} +1 -1
- package/dist/{onboard-channels-DKTbKmlk.js → onboard-channels-Oo2BI8vk.js} +1 -1
- package/dist/{onboarding-Dy7479qd.js → onboarding-BvGs6yhQ.js} +3 -3
- package/dist/{onboarding-HxGLP3p_.js → onboarding-DE9maYL1.js} +3 -3
- package/dist/{onboarding.finalize-LbRxZIJE.js → onboarding.finalize-CS-chLDk.js} +5 -5
- package/dist/{onboarding.finalize-CL9qSnkc.js → onboarding.finalize-DFyOM5B6.js} +6 -6
- package/dist/{outbound-send-deps-BTWti9aw.js → outbound-send-deps-SJCtmIUG.js} +1 -1
- package/dist/{pi-embedded-eJxVRGMo.js → pi-embedded-D_ek_HF_.js} +4 -4
- package/dist/{pi-embedded-VsjyhRZJ.js → pi-embedded-DyKQ3bSU.js} +4 -4
- package/dist/{plugin-registry-BikAQNm7.js → plugin-registry-DBpayaga.js} +1 -1
- package/dist/{plugin-registry-JsmPJwwm.js → plugin-registry-Dcizpoio.js} +1 -1
- package/dist/plugin-sdk/{active-listener-CkyAenz6.js → active-listener-CFLZdKRQ.js} +2 -2
- package/dist/plugin-sdk/{agent-scope-DWZdK6Cr.js → agent-scope-ip6rBrUD.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-BzSvof9i.js → audio-preflight-C0NlyreL.js} +12 -12
- package/dist/plugin-sdk/{channel-web-CvD0K75f.js → channel-web-Za6SnC7J.js} +11 -11
- package/dist/plugin-sdk/{chrome-BLYh1Ek9.js → chrome-OZ5Ge8PR.js} +1 -1
- package/dist/plugin-sdk/{common-STTVkT-Z.js → common-pKa0kElY.js} +2 -2
- package/dist/plugin-sdk/{config-iUJxJaTT.js → config-DelXkt58.js} +8 -8
- package/dist/plugin-sdk/{deliver-Bkdn7hYJ.js → deliver-ebYNQy_5.js} +6 -6
- package/dist/plugin-sdk/{exec-9HIVkGqi.js → exec-C5lqk9X4.js} +2 -2
- package/dist/plugin-sdk/{fetch-DjHoyhHv.js → fetch-Cw_7QfME.js} +2 -2
- package/dist/plugin-sdk/{image-DolmBtru.js → image-2KL1DOmN.js} +4 -4
- package/dist/plugin-sdk/{image-ops-DvO68zWD.js → image-ops-zm4O3fkk.js} +4 -4
- package/dist/plugin-sdk/index.js +23 -23
- package/dist/plugin-sdk/{ir-D6TOa8wy.js → ir-BEwiHV7R.js} +4 -4
- package/dist/plugin-sdk/{login-D94FA38f.js → login-DG-oB1Gg.js} +3 -3
- package/dist/plugin-sdk/{login-qr-CjfMeBeY.js → login-qr-DjYOgNGQ.js} +5 -5
- package/dist/plugin-sdk/{manager-DSG4npLd.js → manager-Cqyl7HDP.js} +5 -5
- package/dist/plugin-sdk/{model-selection-BfTuBvS4.js → model-selection-DHMRsTNB.js} +2 -2
- package/dist/plugin-sdk/{outbound-BuWEi6UJ.js → outbound-DT2nH6dY.js} +4 -4
- package/dist/plugin-sdk/{paths-6C0IeDIg.js → paths-wRVSwmkX.js} +1 -1
- package/dist/plugin-sdk/{pi-auth-json-CdSpUvvH.js → pi-auth-json-XTF0mVQ6.js} +3 -3
- package/dist/plugin-sdk/{pi-embedded-helpers-rNIrRqeN.js → pi-embedded-helpers-C3_rwWkJ.js} +13 -13
- package/dist/plugin-sdk/{pw-ai-DHGDCfpy.js → pw-ai-BYr2wRwE.js} +2 -2
- package/dist/plugin-sdk/{qmd-manager-D0FXZkrS.js → qmd-manager-CY7j7J3V.js} +4 -4
- package/dist/plugin-sdk/{reply-DOp68zJ4.js → reply-CnWG5ty5.js} +35 -35
- package/dist/plugin-sdk/{runner-CaaUwzMJ.js → runner-DxPwS4ed.js} +7 -7
- package/dist/plugin-sdk/{session-CNtQTHPb.js → session-BO6X9uoj.js} +13 -3
- package/dist/plugin-sdk/{sqlite-QNHsO4bW.js → sqlite-CKrK6KKr.js} +2 -2
- package/dist/plugin-sdk/{tool-images-BuctNDly.js → tool-images-C4GaQjrF.js} +2 -2
- package/dist/plugin-sdk/web-DY7ps8Jl.js +30 -0
- package/dist/plugin-sdk/{whatsapp-actions-3adtwpVJ.js → whatsapp-actions-C5T64qvX.js} +11 -11
- package/dist/{plugins-cli-opkeYzuP.js → plugins-cli-ByM99YMv.js} +2 -2
- package/dist/{plugins-cli-B55b-uPy.js → plugins-cli-Dc9-hwnS.js} +2 -2
- package/dist/{program-BVG5Yw8K.js → program-CxbZh7UH.js} +7 -7
- package/dist/{program-context-BDR_kl7O.js → program-context-BAwPjqcT.js} +17 -17
- package/dist/{provider-auth-helpers-B8jWzXEO.js → provider-auth-helpers-BHnRj7nc.js} +1 -1
- package/dist/{provider-auth-helpers-C3wYwZR7.js → provider-auth-helpers-iolF14w8.js} +1 -1
- package/dist/{register.agent-BKnzC9V7.js → register.agent-BBVjFp8Y.js} +7 -7
- package/dist/{register.agent-DB-odXrN.js → register.agent-C4IrpTkN.js} +6 -6
- package/dist/{register.configure-bgPety_6.js → register.configure-CUZo4Aot.js} +6 -6
- package/dist/{register.configure-UbUNKSDs.js → register.configure-aZaemwQh.js} +6 -6
- package/dist/{register.maintenance-CUeaYZFE.js → register.maintenance-BUk55ZfL.js} +7 -7
- package/dist/{register.maintenance-rRcua9fF.js → register.maintenance-k-FF9sjN.js} +8 -8
- package/dist/{register.message-Bc3xTouE.js → register.message-C85LDxMG.js} +3 -3
- package/dist/{register.message-BuW1XfhN.js → register.message-rDz6Pyj3.js} +3 -3
- package/dist/{register.onboard-CLHbHGLn.js → register.onboard-DoeqvAhF.js} +4 -4
- package/dist/{register.onboard-D_6kLdSR.js → register.onboard-qQ-XzgeJ.js} +4 -4
- package/dist/{register.setup-Dki8fLKm.js → register.setup-BYePf2X9.js} +4 -4
- package/dist/{register.setup-TQ_JN-KE.js → register.setup-UW5rhwoL.js} +4 -4
- package/dist/{register.status-health-sessions-DXjYJmpA.js → register.status-health-sessions-C7tVEUfl.js} +3 -3
- package/dist/{register.status-health-sessions-CtrsNaio.js → register.status-health-sessions-D-e34zX_.js} +3 -3
- package/dist/{register.subclis-Qnt7Zvdi.js → register.subclis-tuSSdE3-.js} +9 -9
- package/dist/{reply-BWHF3Tu2.js → reply-jLqhHIBQ.js} +4 -4
- package/dist/{run-main-BGTntYOK.js → run-main-B3U7jH0W.js} +14 -14
- package/dist/{server-node-events-hULwDzWN.js → server-node-events-CF_WTOvc.js} +3 -3
- package/dist/{server-node-events-C7DIp79E.js → server-node-events-CKA4Mn5e.js} +3 -3
- package/dist/{session-Bu-wfBqD.js → session-BrloLgwj.js} +11 -1
- package/dist/{session-BIaiqJ9l.js → session-CJ3QUnhn.js} +11 -1
- package/dist/{session-CuaA1jvm.js → session-D0vLMCo1.js} +11 -1
- package/dist/{session-DAcG6tIg.js → session-EJQdFRC5.js} +11 -1
- package/dist/{status-BGWVilxi.js → status-D0bufmRu.js} +2 -2
- package/dist/{status-BbNIlVr-.js → status-DVBJLUIs.js} +2 -2
- package/dist/{status-BRGJERN0.js → status-DfjRvBXf.js} +1 -1
- package/dist/{status-Dm5F4RCD.js → status-DrjhxuYR.js} +1 -1
- package/dist/{subagent-registry-CHt6rcAF.js → subagent-registry-Do5aAYdm.js} +4 -4
- package/dist/{update-cli-CkIRtgV9.js → update-cli-COHKHs55.js} +7 -7
- package/dist/{update-cli-DPVK3LQY.js → update-cli-Dz5XBQ_v.js} +8 -8
- package/dist/{update-runner-BopZcn8o.js → update-runner-DIgoatPE.js} +1 -1
- package/dist/{update-runner-Dm6YThw6.js → update-runner-rbu-IrlQ.js} +1 -1
- package/dist/{web-DmkmSHj7.js → web-B-mup9LH.js} +4 -4
- package/dist/{web-BhEzjpss.js → web-BTK9UUaM.js} +3 -3
- package/dist/{web-Is78NGCZ.js → web-DIO2jYwG.js} +3 -3
- package/dist/{web-ulvSoKNk.js → web-RzuY5nXI.js} +3 -3
- package/package.json +1 -1
- package/dist/plugin-sdk/web-Db22IeLz.js +0 -30
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { $ as truncateUtf16Safe, C as requireActivePluginRegistry, H as normalizeE164, I as escapeRegExp, K as resolveUserPath, W as resolveConfigDir, _ as CHAT_CHANNEL_ORDER, f as defaultRuntime, g as CHANNEL_IDS, j as CONFIG_DIR, l as createSubsystemLogger, mt as resolvePreferredOpenClawTmpDir, n as runExec, v as getChatChannelMeta } from "./exec-
|
|
1
|
+
import { $ as truncateUtf16Safe, C as requireActivePluginRegistry, H as normalizeE164, I as escapeRegExp, K as resolveUserPath, W as resolveConfigDir, _ as CHAT_CHANNEL_ORDER, f as defaultRuntime, g as CHANNEL_IDS, j as CONFIG_DIR, l as createSubsystemLogger, mt as resolvePreferredOpenClawTmpDir, n as runExec, v as getChatChannelMeta } from "./exec-C5lqk9X4.js";
|
|
2
2
|
import { i as resolveGatewayPort, t as STATE_DIR } from "./paths-ZQWYGl2V.js";
|
|
3
|
-
import { J as parseBooleanValue, Z as isPidAlive } from "./model-selection-
|
|
4
|
-
import { a as writeConfigFile, d as LEGACY_MANIFEST_KEYS, dt as parseDurationMs, f as MANIFEST_KEY, g as resolveMemorySlotDecision, h as resolveEnableState, k as resolveWhatsAppAccount, l as loadPluginManifestRegistry, m as normalizePluginsConfig, n as loadConfig, s as parseByteSize, t as createConfigIO } from "./config-
|
|
5
|
-
import { C as resolveOpenClawPackageRootSync, D as buildAgentMainSessionKey, M as normalizeAgentId, N as normalizeMainKey, P as resolveAgentIdFromSessionKey, T as DEFAULT_AGENT_ID, _ as DEFAULT_TOOLS_FILENAME, d as DEFAULT_AGENTS_FILENAME, f as DEFAULT_AGENT_WORKSPACE_DIR, g as DEFAULT_SOUL_FILENAME, h as DEFAULT_IDENTITY_FILENAME, j as normalizeAccountId$1, l as resolveSessionAgentId, m as DEFAULT_HEARTBEAT_FILENAME, n as resolveAgentConfig, p as DEFAULT_BOOTSTRAP_FILENAME, v as DEFAULT_USER_FILENAME, w as DEFAULT_ACCOUNT_ID, y as ensureAgentWorkspace } from "./agent-scope-
|
|
3
|
+
import { J as parseBooleanValue, Z as isPidAlive } from "./model-selection-DHMRsTNB.js";
|
|
4
|
+
import { a as writeConfigFile, d as LEGACY_MANIFEST_KEYS, dt as parseDurationMs, f as MANIFEST_KEY, g as resolveMemorySlotDecision, h as resolveEnableState, k as resolveWhatsAppAccount, l as loadPluginManifestRegistry, m as normalizePluginsConfig, n as loadConfig, s as parseByteSize, t as createConfigIO } from "./config-DelXkt58.js";
|
|
5
|
+
import { C as resolveOpenClawPackageRootSync, D as buildAgentMainSessionKey, M as normalizeAgentId, N as normalizeMainKey, P as resolveAgentIdFromSessionKey, T as DEFAULT_AGENT_ID, _ as DEFAULT_TOOLS_FILENAME, d as DEFAULT_AGENTS_FILENAME, f as DEFAULT_AGENT_WORKSPACE_DIR, g as DEFAULT_SOUL_FILENAME, h as DEFAULT_IDENTITY_FILENAME, j as normalizeAccountId$1, l as resolveSessionAgentId, m as DEFAULT_HEARTBEAT_FILENAME, n as resolveAgentConfig, p as DEFAULT_BOOTSTRAP_FILENAME, v as DEFAULT_USER_FILENAME, w as DEFAULT_ACCOUNT_ID, y as ensureAgentWorkspace } from "./agent-scope-ip6rBrUD.js";
|
|
6
6
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-CB-Jxwa7.js";
|
|
7
|
-
import { A as normalizeChannelId, S as normalizeMessageChannel, Z as resolveTelegramAccount, a as resizeToJpeg, dt as resolveDiscordAccount, it as resolveSlackReplyToMode, n as getImageMetadata, o as detectMime, q as normalizeWhatsAppTarget, rt as resolveSlackAccount, s as extensionForMime, st as normalizeChatType, x as listDeliverableMessageChannels } from "./image-ops-
|
|
7
|
+
import { A as normalizeChannelId, S as normalizeMessageChannel, Z as resolveTelegramAccount, a as resizeToJpeg, dt as resolveDiscordAccount, it as resolveSlackReplyToMode, n as getImageMetadata, o as detectMime, q as normalizeWhatsAppTarget, rt as resolveSlackAccount, s as extensionForMime, st as normalizeChatType, x as listDeliverableMessageChannels } from "./image-ops-zm4O3fkk.js";
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-D8xZiqKN.js";
|
|
9
|
-
import { n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-
|
|
9
|
+
import { n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-wRVSwmkX.js";
|
|
10
10
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BiU0SOrl.js";
|
|
11
|
-
import { t as sanitizeContentBlocksImages } from "./tool-images-
|
|
12
|
-
import { C as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, D as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, E as DEFAULT_OPENCLAW_BROWSER_ENABLED, O as isLoopbackHost, S as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as DEFAULT_OPENCLAW_BROWSER_COLOR, a as resolveOpenClawUserDataDir, b as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, h as fetchOk, i as launchOpenClawChrome, l as createTargetViaCdp, m as fetchJson, n as isChromeCdpReady, o as stopOpenClawChrome, p as appendCdpPath, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as ensureChromeExtensionRelayServer, w as DEFAULT_BROWSER_EVALUATE_ENABLED, x as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, y as stopChromeExtensionRelayServer } from "./chrome-
|
|
11
|
+
import { t as sanitizeContentBlocksImages } from "./tool-images-C4GaQjrF.js";
|
|
12
|
+
import { C as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, D as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, E as DEFAULT_OPENCLAW_BROWSER_ENABLED, O as isLoopbackHost, S as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as DEFAULT_OPENCLAW_BROWSER_COLOR, a as resolveOpenClawUserDataDir, b as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, h as fetchOk, i as launchOpenClawChrome, l as createTargetViaCdp, m as fetchJson, n as isChromeCdpReady, o as stopOpenClawChrome, p as appendCdpPath, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as ensureChromeExtensionRelayServer, w as DEFAULT_BROWSER_EVALUATE_ENABLED, x as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, y as stopChromeExtensionRelayServer } from "./chrome-OZ5Ge8PR.js";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import fs, { createWriteStream, existsSync } from "node:fs";
|
|
15
15
|
import os from "node:os";
|
|
16
|
-
import
|
|
16
|
+
import JSON5 from "json5";
|
|
17
17
|
import fs$1 from "node:fs/promises";
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
19
19
|
import { fileURLToPath } from "node:url";
|
|
@@ -3292,7 +3292,7 @@ function resolveOpenClawManifestBlock(params) {
|
|
|
3292
3292
|
const raw = getFrontmatterString(params.frontmatter, params.key ?? "metadata");
|
|
3293
3293
|
if (!raw) return;
|
|
3294
3294
|
try {
|
|
3295
|
-
const parsed =
|
|
3295
|
+
const parsed = JSON5.parse(raw);
|
|
3296
3296
|
if (!parsed || typeof parsed !== "object") return;
|
|
3297
3297
|
const manifestKeys = [MANIFEST_KEY, ...LEGACY_MANIFEST_KEYS];
|
|
3298
3298
|
for (const key of manifestKeys) {
|
|
@@ -4026,7 +4026,7 @@ function isModuleNotFoundError(err) {
|
|
|
4026
4026
|
}
|
|
4027
4027
|
async function loadPwAiModule(mode) {
|
|
4028
4028
|
try {
|
|
4029
|
-
return await import("./pw-ai-
|
|
4029
|
+
return await import("./pw-ai-BYr2wRwE.js");
|
|
4030
4030
|
} catch (err) {
|
|
4031
4031
|
if (mode === "soft") return null;
|
|
4032
4032
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -6396,11 +6396,11 @@ function createProfileContext(opts, profile) {
|
|
|
6396
6396
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
6397
6397
|
const profileState = getProfileState();
|
|
6398
6398
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
6399
|
-
await (await import("./pw-ai-
|
|
6399
|
+
await (await import("./pw-ai-BYr2wRwE.js")).closePlaywrightBrowserConnection();
|
|
6400
6400
|
} catch {}
|
|
6401
6401
|
if (profileState.running) await stopRunningBrowser();
|
|
6402
6402
|
try {
|
|
6403
|
-
await (await import("./pw-ai-
|
|
6403
|
+
await (await import("./pw-ai-BYr2wRwE.js")).closePlaywrightBrowserConnection();
|
|
6404
6404
|
} catch {}
|
|
6405
6405
|
if (!fs.existsSync(userDataDir)) return {
|
|
6406
6406
|
moved: false,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { mt as resolvePreferredOpenClawTmpDir } from "./exec-
|
|
1
|
+
import { mt as resolvePreferredOpenClawTmpDir } from "./exec-C5lqk9X4.js";
|
|
2
2
|
import "./paths-ZQWYGl2V.js";
|
|
3
3
|
import { n as formatErrorMessage } from "./errors-CB-Jxwa7.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-D8xZiqKN.js";
|
|
5
|
-
import { _ as withCdpSocket, d as normalizeCdpWsUrl, g as getHeadersWithAuth, m as fetchJson, p as appendCdpPath, t as getChromeWebSocketUrl, u as formatAriaSnapshot } from "./chrome-
|
|
5
|
+
import { _ as withCdpSocket, d as normalizeCdpWsUrl, g as getHeadersWithAuth, m as fetchJson, p as appendCdpPath, t as getChromeWebSocketUrl, u as formatAriaSnapshot } from "./chrome-OZ5Ge8PR.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import crypto from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as createSubsystemLogger } from "./exec-
|
|
1
|
+
import { l as createSubsystemLogger } from "./exec-C5lqk9X4.js";
|
|
2
2
|
import { s as resolveStateDir } from "./paths-ZQWYGl2V.js";
|
|
3
|
-
import { V as parseAgentSessionKey, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import "./paths-
|
|
3
|
+
import { V as parseAgentSessionKey, s as resolveAgentWorkspaceDir } from "./agent-scope-ip6rBrUD.js";
|
|
4
|
+
import "./paths-wRVSwmkX.js";
|
|
5
5
|
import "./redact-CZWjP0qB.js";
|
|
6
|
-
import { n as buildSessionEntry, r as listSessionFilesForAgent, t as requireNodeSqlite } from "./sqlite-
|
|
6
|
+
import { n as buildSessionEntry, r as listSessionFilesForAgent, t as requireNodeSqlite } from "./sqlite-CKrK6KKr.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { $ as truncateUtf16Safe, A as matchPluginCommand, C as requireActivePluginRegistry, D as executePluginCommand, E as clearPluginCommands, F as ensureDir$3, H as normalizeE164, I as escapeRegExp, J as shortenHomeInString, K as resolveUserPath, L as formatTerminalLink, N as clampInt, O as getPluginCommandSpecs, R as isPlainObject, S as getActivePluginRegistry, T as createPluginRegistry, X as sleep, Y as shortenHomePath, Z as sliceUtf16Safe, _ as CHAT_CHANNEL_ORDER, _t as normalizePluginHttpPath, a as logDebug, b as normalizeChannelId, c as logWarn, ct as isRich, d as createNonExitingRuntime, et as danger, f as defaultRuntime, gt as triggerInternalHook, h as unregisterActiveProgressLine, ht as createInternalHookEvent, i as spawnWithFallback, it as shouldLogVerbose, j as CONFIG_DIR, k as listPluginCommands, l as createSubsystemLogger, lt as theme, m as registerActiveProgressLine, mt as resolvePreferredOpenClawTmpDir, n as runExec, nt as logVerbose, o as logError, ot as warn, p as clearActiveProgressLine, pt as normalizeLogLevel, q as safeParseJson, r as formatSpawnError, rt as setVerbose, s as logInfo, st as colorize, t as runCommandWithTimeout, ut as getChildLogger, w as setActivePluginRegistry, y as normalizeAnyChannelId, z as isRecord$1 } from "./exec-
|
|
2
|
+
import { $ as truncateUtf16Safe, A as matchPluginCommand, C as requireActivePluginRegistry, D as executePluginCommand, E as clearPluginCommands, F as ensureDir$3, H as normalizeE164, I as escapeRegExp, J as shortenHomeInString, K as resolveUserPath, L as formatTerminalLink, N as clampInt, O as getPluginCommandSpecs, R as isPlainObject, S as getActivePluginRegistry, T as createPluginRegistry, X as sleep, Y as shortenHomePath, Z as sliceUtf16Safe, _ as CHAT_CHANNEL_ORDER, _t as normalizePluginHttpPath, a as logDebug, b as normalizeChannelId, c as logWarn, ct as isRich, d as createNonExitingRuntime, et as danger, f as defaultRuntime, gt as triggerInternalHook, h as unregisterActiveProgressLine, ht as createInternalHookEvent, i as spawnWithFallback, it as shouldLogVerbose, j as CONFIG_DIR, k as listPluginCommands, l as createSubsystemLogger, lt as theme, m as registerActiveProgressLine, mt as resolvePreferredOpenClawTmpDir, n as runExec, nt as logVerbose, o as logError, ot as warn, p as clearActiveProgressLine, pt as normalizeLogLevel, q as safeParseJson, r as formatSpawnError, rt as setVerbose, s as logInfo, st as colorize, t as runCommandWithTimeout, ut as getChildLogger, w as setActivePluginRegistry, y as normalizeAnyChannelId, z as isRecord$1 } from "./exec-C5lqk9X4.js";
|
|
3
3
|
import { a as resolveOAuthDir, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-ZQWYGl2V.js";
|
|
4
|
-
import { A as markAuthProfileUsed, B as DEFAULT_MODEL, C as resolveApiKeyForProvider, D as resolveAuthProfileOrder, F as resolveAuthStorePathForDisplay, H as getShellPathFromLoginShell, I as resolveOpenClawAgentDir, J as parseBooleanValue$1, L as normalizeSecretInput, M as listProfilesForProvider, N as markAuthProfileGood, O as isProfileInCooldown, P as ensureAuthProfileStore, R as resolveAuthProfileDisplayLabel, S as requireApiKey, T as resolveModelAuthMode, V as DEFAULT_PROVIDER, W as resolveShellEnvFallbackTimeoutMs, X as withFileLock$1, a as modelKey, b as getApiKeyForModel, d as resolveModelRefFromString, f as resolveThinkingDefault, i as isCliProvider, j as resolveApiKeyForProfile, k as markAuthProfileFailure, l as resolveConfiguredModelRef, n as buildConfiguredAllowlistKeys, o as normalizeModelRef, q as isTruthyEnvValue, r as buildModelAliasIndex, s as normalizeProviderId, t as buildAllowedModelSet, u as resolveDefaultModelForAgent, v as OLLAMA_NATIVE_BASE_URL, w as resolveEnvApiKey, x as getCustomProviderApiKey, y as createOllamaStreamFn, z as DEFAULT_CONTEXT_TOKENS } from "./model-selection-
|
|
5
|
-
import { C as setConfigValueAtPath, E as VERSION, H as webAuthExists, M as getWebAuthAgeMs, N as logWebSelfId, P as logoutWeb, R as readWebSelfId, S as parseConfigPath, T as resolveAgentMaxConcurrent, _ as getConfigOverrides, a as writeConfigFile, b as unsetConfigOverride, c as validateJsonSchemaValue, dt as parseDurationMs, ft as TELEGRAM_COMMAND_NAME_PATTERN, g as resolveMemorySlotDecision, h as resolveEnableState, i as resolveConfigSnapshotHash, k as resolveWhatsAppAccount, l as loadPluginManifestRegistry, m as normalizePluginsConfig, mt as resolveTelegramCustomCommands, n as loadConfig, o as validateConfigObjectWithPlugins, p as applyTestPluginDefaults, pt as normalizeTelegramCommandName, r as readConfigFileSnapshot, u as discoverOpenClawPlugins, ut as isSafeExecutableValue, v as resetConfigOverrides, w as unsetConfigValueAtPath, x as getConfigValueAtPath, y as setConfigOverride } from "./config-
|
|
6
|
-
import { A as classifySessionKeyShape, B as isSubagentSessionKey, D as buildAgentMainSessionKey, E as DEFAULT_MAIN_KEY, F as resolveThreadSessionKeys, H as resolveThreadParentSessionKey, I as sanitizeAgentId, L as getSubagentDepth, M as normalizeAgentId, N as normalizeMainKey, O as buildAgentPeerSessionKey, P as resolveAgentIdFromSessionKey, R as isAcpSessionKey, S as resolveOpenClawPackageRoot, T as DEFAULT_AGENT_ID, V as parseAgentSessionKey, b as filterBootstrapFilesForSession, c as resolveDefaultAgentId, f as DEFAULT_AGENT_WORKSPACE_DIR, i as resolveAgentModelFallbacksOverride, j as normalizeAccountId$3, 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 isCronSessionKey } from "./agent-scope-
|
|
7
|
-
import { A as HEARTBEAT_TOKEN, C as resolveSignalRpcContext, D as getGlobalHookRunner, E as streamSignalEvents, M as isSilentReplyText, O as initializeGlobalHookRunner, S as resolveOutboundAttachmentFromUrl, T as signalRpcRequest, _ as splitMediaFromOutput, a as applyReplyThreading, b as sendReadReceiptSignal, c as shouldSuppressMessagingToolReplies, d as buildTargetResolverSignature, f as normalizeChannelTargetInput, g as MEDIA_TOKEN_RE, h as parseReplyDirectives, i as applyReplyTagsToPayload, j as SILENT_REPLY_TOKEN, l as createReplyToModeFilterForChannel, m as throwIfAborted, o as filterMessagingToolDuplicates, p as normalizeTargetForProvider, r as normalizeReplyPayloadsForDelivery, s as isRenderablePayload, t as deliverOutboundPayloads, u as resolveReplyToMode, v as parseInlineDirectives$1, w as signalCheck, x as sendTypingSignal, y as sendMessageSignal } from "./deliver-
|
|
8
|
-
import { $ as applySkillEnvOverridesFromSnapshot, $t as resolveSessionResetType, A as isTransientHttpError, At as getMediaDir, B as resolveProfile, Bt as updateSessionStoreEntry, C as isContextOverflowError, Ct as normalizeReasoningLevel, D as isRateLimitAssistantError, Dt as resolveResponseUsageMode, E as isLikelyContextOverflowError, Et as normalizeVerboseLevel, F as resolveSandboxContext, Ft as loadSessionStore, G as buildWorkspaceSkillSnapshot, Gt as mergeDeliveryContext, H as resolvePathsWithinRoot, Ht as resolveCacheTtlMs$1, I as resolveSandboxRuntimeStatus, It as readSessionUpdatedAt, J as resolvePluginSkillDirs, Jt as acquireSessionWriteLock, K as loadWorkspaceSkillEntries, Kt as normalizeDeliveryContext, L as createBrowserRouteContext, Lt as recordSessionMetaFromInbound, M as parseImageSizeError, Mn as resolveChannelGroupPolicy, Mt as extractDeliveryInfo, N as sanitizeUserFacingText, Nn as resolveChannelGroupRequireMention, Nt as appendAssistantMessageToSessionTranscript, O as isRawApiErrorPayload, On as resolveSignalAccount, Ot as supportsXHighThinking, P as ensureSandboxWorkspaceForSession, Pn as resolveChannelGroupToolsPolicy, Q as applySkillEnvOverrides, Qt as resolveSessionResetPolicy, R as registerBrowserRoutes, Rt as updateLastRoute, S as isCompactionFailureError, St as normalizeElevatedLevel, T as isFailoverErrorMessage, Tn as listEnabledSignalAccounts, Tt as normalizeUsageDisplay, U as getBridgeAuthForPort, Ut as deliveryContextFromSession, V as DEFAULT_UPLOAD_DIR, Vt as isCacheEnabled, W as buildWorkspaceSkillCommandSpecs, Wt as deliveryContextKey, X as assertSandboxPath, Xt as evaluateSessionFreshness, Y as assertMediaNotDataUrl, Yt as resolveSessionKey$1, Z as resolveSandboxedMediaSource, Zt as resolveChannelResetConfig, _ as formatRawAssistantErrorForUi, _t as resolveBootstrapTotalMaxChars, a as isMessagingToolDuplicateNormalized, an as deriveSessionMetaPatch, at as collectExplicitAllowlist, b as isBillingAssistantError, bt as formatXHighModelHint, c as extractToolCallsFromAssistant, cn as getChannelDock, ct as mergeAlsoAllowPolicy, d as isAntigravityClaude, dt as stripPluginOnlyAllowlist, en as resolveThreadFlag, et as ensureBrowserControlAuth, f as isGoogleModelApi, ft as compileGlobPatterns, g as formatBillingErrorMessage, gt as resolveBootstrapMaxChars, h as formatAssistantErrorText, ht as ensureSessionHeader, in as resolveMainSessionKey, it as buildPluginToolGroups, j as parseImageDimensionError, jn as resolveIMessageAccount, jt as saveMediaBuffer, k as isTimeoutErrorMessage, l as extractToolResultId, ln as listChannelDocks, lt as normalizeToolName, m as classifyFailoverReason, mt as buildBootstrapContextFiles, n as validateGeminiTurns, nn as resolveFreshSessionTotalTokens, nt as resolveSandboxConfigForAgent, o as normalizeTextForComparison, on as resolveConversationLabel, ot as expandPolicyWithPluginGroups, p as BILLING_ERROR_USER_MESSAGE, pt as matchesAnyGlobPattern, q as resolveSkillsPromptForRun, qt as normalizeSessionDeliveryFields, r as pickFallbackThinkingLevel, rn as canonicalizeMainSessionAlias, rt as applyOwnerOnlyToolPolicy, s as sanitizeSessionMessagesImages, sn as resolveGroupSessionKey, st as expandToolGroups, t as validateAnthropicTurns, tn as DEFAULT_RESET_TRIGGERS, tt as resolveBrowserControlAuth, u as downgradeOpenAIReasoningBlocks, ut as resolveToolProfilePolicy, v as getApiErrorPayloadFingerprint, vt as sanitizeGoogleTurnOrdering, w as isFailoverAssistantError, wt as normalizeThinkLevel, x as isCloudCodeAssistFormatError, xt as listThinkingLevels, y as isAuthAssistantError, yt as formatThinkingLevels, z as resolveBrowserConfig, zt as updateSessionStore } from "./pi-embedded-helpers-
|
|
4
|
+
import { A as markAuthProfileUsed, B as DEFAULT_MODEL, C as resolveApiKeyForProvider, D as resolveAuthProfileOrder, F as resolveAuthStorePathForDisplay, H as getShellPathFromLoginShell, I as resolveOpenClawAgentDir, J as parseBooleanValue$1, L as normalizeSecretInput, M as listProfilesForProvider, N as markAuthProfileGood, O as isProfileInCooldown, P as ensureAuthProfileStore, R as resolveAuthProfileDisplayLabel, S as requireApiKey, T as resolveModelAuthMode, V as DEFAULT_PROVIDER, W as resolveShellEnvFallbackTimeoutMs, X as withFileLock$1, a as modelKey, b as getApiKeyForModel, d as resolveModelRefFromString, f as resolveThinkingDefault, i as isCliProvider, j as resolveApiKeyForProfile, k as markAuthProfileFailure, l as resolveConfiguredModelRef, n as buildConfiguredAllowlistKeys, o as normalizeModelRef, q as isTruthyEnvValue, r as buildModelAliasIndex, s as normalizeProviderId, t as buildAllowedModelSet, u as resolveDefaultModelForAgent, v as OLLAMA_NATIVE_BASE_URL, w as resolveEnvApiKey, x as getCustomProviderApiKey, y as createOllamaStreamFn, z as DEFAULT_CONTEXT_TOKENS } from "./model-selection-DHMRsTNB.js";
|
|
5
|
+
import { C as setConfigValueAtPath, E as VERSION, H as webAuthExists, M as getWebAuthAgeMs, N as logWebSelfId, P as logoutWeb, R as readWebSelfId, S as parseConfigPath, T as resolveAgentMaxConcurrent, _ as getConfigOverrides, a as writeConfigFile, b as unsetConfigOverride, c as validateJsonSchemaValue, dt as parseDurationMs, ft as TELEGRAM_COMMAND_NAME_PATTERN, g as resolveMemorySlotDecision, h as resolveEnableState, i as resolveConfigSnapshotHash, k as resolveWhatsAppAccount, l as loadPluginManifestRegistry, m as normalizePluginsConfig, mt as resolveTelegramCustomCommands, n as loadConfig, o as validateConfigObjectWithPlugins, p as applyTestPluginDefaults, pt as normalizeTelegramCommandName, r as readConfigFileSnapshot, u as discoverOpenClawPlugins, ut as isSafeExecutableValue, v as resetConfigOverrides, w as unsetConfigValueAtPath, x as getConfigValueAtPath, y as setConfigOverride } from "./config-DelXkt58.js";
|
|
6
|
+
import { A as classifySessionKeyShape, B as isSubagentSessionKey, D as buildAgentMainSessionKey, E as DEFAULT_MAIN_KEY, F as resolveThreadSessionKeys, H as resolveThreadParentSessionKey, I as sanitizeAgentId, L as getSubagentDepth, M as normalizeAgentId, N as normalizeMainKey, O as buildAgentPeerSessionKey, P as resolveAgentIdFromSessionKey, R as isAcpSessionKey, S as resolveOpenClawPackageRoot, T as DEFAULT_AGENT_ID, V as parseAgentSessionKey, b as filterBootstrapFilesForSession, c as resolveDefaultAgentId, f as DEFAULT_AGENT_WORKSPACE_DIR, i as resolveAgentModelFallbacksOverride, j as normalizeAccountId$3, 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 isCronSessionKey } from "./agent-scope-ip6rBrUD.js";
|
|
7
|
+
import { A as HEARTBEAT_TOKEN, C as resolveSignalRpcContext, D as getGlobalHookRunner, E as streamSignalEvents, M as isSilentReplyText, O as initializeGlobalHookRunner, S as resolveOutboundAttachmentFromUrl, T as signalRpcRequest, _ as splitMediaFromOutput, a as applyReplyThreading, b as sendReadReceiptSignal, c as shouldSuppressMessagingToolReplies, d as buildTargetResolverSignature, f as normalizeChannelTargetInput, g as MEDIA_TOKEN_RE, h as parseReplyDirectives, i as applyReplyTagsToPayload, j as SILENT_REPLY_TOKEN, l as createReplyToModeFilterForChannel, m as throwIfAborted, o as filterMessagingToolDuplicates, p as normalizeTargetForProvider, r as normalizeReplyPayloadsForDelivery, s as isRenderablePayload, t as deliverOutboundPayloads, u as resolveReplyToMode, v as parseInlineDirectives$1, w as signalCheck, x as sendTypingSignal, y as sendMessageSignal } from "./deliver-ebYNQy_5.js";
|
|
8
|
+
import { $ as applySkillEnvOverridesFromSnapshot, $t as resolveSessionResetType, A as isTransientHttpError, At as getMediaDir, B as resolveProfile, Bt as updateSessionStoreEntry, C as isContextOverflowError, Ct as normalizeReasoningLevel, D as isRateLimitAssistantError, Dt as resolveResponseUsageMode, E as isLikelyContextOverflowError, Et as normalizeVerboseLevel, F as resolveSandboxContext, Ft as loadSessionStore, G as buildWorkspaceSkillSnapshot, Gt as mergeDeliveryContext, H as resolvePathsWithinRoot, Ht as resolveCacheTtlMs$1, I as resolveSandboxRuntimeStatus, It as readSessionUpdatedAt, J as resolvePluginSkillDirs, Jt as acquireSessionWriteLock, K as loadWorkspaceSkillEntries, Kt as normalizeDeliveryContext, L as createBrowserRouteContext, Lt as recordSessionMetaFromInbound, M as parseImageSizeError, Mn as resolveChannelGroupPolicy, Mt as extractDeliveryInfo, N as sanitizeUserFacingText, Nn as resolveChannelGroupRequireMention, Nt as appendAssistantMessageToSessionTranscript, O as isRawApiErrorPayload, On as resolveSignalAccount, Ot as supportsXHighThinking, P as ensureSandboxWorkspaceForSession, Pn as resolveChannelGroupToolsPolicy, Q as applySkillEnvOverrides, Qt as resolveSessionResetPolicy, R as registerBrowserRoutes, Rt as updateLastRoute, S as isCompactionFailureError, St as normalizeElevatedLevel, T as isFailoverErrorMessage, Tn as listEnabledSignalAccounts, Tt as normalizeUsageDisplay, U as getBridgeAuthForPort, Ut as deliveryContextFromSession, V as DEFAULT_UPLOAD_DIR, Vt as isCacheEnabled, W as buildWorkspaceSkillCommandSpecs, Wt as deliveryContextKey, X as assertSandboxPath, Xt as evaluateSessionFreshness, Y as assertMediaNotDataUrl, Yt as resolveSessionKey$1, Z as resolveSandboxedMediaSource, Zt as resolveChannelResetConfig, _ as formatRawAssistantErrorForUi, _t as resolveBootstrapTotalMaxChars, a as isMessagingToolDuplicateNormalized, an as deriveSessionMetaPatch, at as collectExplicitAllowlist, b as isBillingAssistantError, bt as formatXHighModelHint, c as extractToolCallsFromAssistant, cn as getChannelDock, ct as mergeAlsoAllowPolicy, d as isAntigravityClaude, dt as stripPluginOnlyAllowlist, en as resolveThreadFlag, et as ensureBrowserControlAuth, f as isGoogleModelApi, ft as compileGlobPatterns, g as formatBillingErrorMessage, gt as resolveBootstrapMaxChars, h as formatAssistantErrorText, ht as ensureSessionHeader, in as resolveMainSessionKey, it as buildPluginToolGroups, j as parseImageDimensionError, jn as resolveIMessageAccount, jt as saveMediaBuffer, k as isTimeoutErrorMessage, l as extractToolResultId, ln as listChannelDocks, lt as normalizeToolName, m as classifyFailoverReason, mt as buildBootstrapContextFiles, n as validateGeminiTurns, nn as resolveFreshSessionTotalTokens, nt as resolveSandboxConfigForAgent, o as normalizeTextForComparison, on as resolveConversationLabel, ot as expandPolicyWithPluginGroups, p as BILLING_ERROR_USER_MESSAGE, pt as matchesAnyGlobPattern, q as resolveSkillsPromptForRun, qt as normalizeSessionDeliveryFields, r as pickFallbackThinkingLevel, rn as canonicalizeMainSessionAlias, rt as applyOwnerOnlyToolPolicy, s as sanitizeSessionMessagesImages, sn as resolveGroupSessionKey, st as expandToolGroups, t as validateAnthropicTurns, tn as DEFAULT_RESET_TRIGGERS, tt as resolveBrowserControlAuth, u as downgradeOpenAIReasoningBlocks, ut as resolveToolProfilePolicy, v as getApiErrorPayloadFingerprint, vt as sanitizeGoogleTurnOrdering, w as isFailoverAssistantError, wt as normalizeThinkLevel, x as isCloudCodeAssistFormatError, xt as listThinkingLevels, y as isAuthAssistantError, yt as formatThinkingLevels, z as resolveBrowserConfig, zt as updateSessionStore } from "./pi-embedded-helpers-C3_rwWkJ.js";
|
|
9
9
|
import { n as formatErrorMessage, r as formatUncaughtError, t as extractErrorCode } from "./errors-CB-Jxwa7.js";
|
|
10
10
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-BD-UJHcc.js";
|
|
11
|
-
import { $ as listBindings, A as normalizeChannelId$1, C as resolveGatewayMessageChannel, D as GATEWAY_CLIENT_NAMES, E as GATEWAY_CLIENT_MODES, G as requireTargetKind, H as resolveSlackChannelId, J as listEnabledTelegramAccounts, K as isWhatsAppGroupJid, O as getChannelPlugin, Q as resolveTelegramToken, S as normalizeMessageChannel, T as GATEWAY_CLIENT_IDS, U as buildMessagingTarget, V as parseSlackTarget, W as ensureTargetId, Y as listTelegramAccountIds, Z as resolveTelegramAccount, _ as INTERNAL_MESSAGE_CHANNEL, _t as isPrivateIpAddress, a as resizeToJpeg, at as resolveSlackAppToken, b as isMarkdownCapableMessageChannel, c as getFileExtension, d as isGifMedia, dt as resolveDiscordAccount, ft as normalizeDiscordToken, g as mediaKindFromMime, gt as isBlockedHostname, h as maxBytesForKind, k as listChannelPlugins, l as imageMimeFromFormat, lt as listEnabledDiscordAccounts, m as MAX_IMAGE_BYTES, n as getImageMetadata, o as detectMime, ot as resolveSlackBotToken, p as normalizeMimeType$1, pt as SsrFBlockedError, q as normalizeWhatsAppTarget, rt as resolveSlackAccount, s as extensionForMime, st as normalizeChatType, u as isAudioFileName, v as isDeliverableMessageChannel, w as resolveMessageChannel, x as listDeliverableMessageChannels, y as isInternalMessageChannel } from "./image-ops-
|
|
12
|
-
import { i as fetchWithSsrFGuard, n as fetchRemoteMedia, r as readResponseWithLimit } from "./fetch-
|
|
11
|
+
import { $ as listBindings, A as normalizeChannelId$1, C as resolveGatewayMessageChannel, D as GATEWAY_CLIENT_NAMES, E as GATEWAY_CLIENT_MODES, G as requireTargetKind, H as resolveSlackChannelId, J as listEnabledTelegramAccounts, K as isWhatsAppGroupJid, O as getChannelPlugin, Q as resolveTelegramToken, S as normalizeMessageChannel, T as GATEWAY_CLIENT_IDS, U as buildMessagingTarget, V as parseSlackTarget, W as ensureTargetId, Y as listTelegramAccountIds, Z as resolveTelegramAccount, _ as INTERNAL_MESSAGE_CHANNEL, _t as isPrivateIpAddress, a as resizeToJpeg, at as resolveSlackAppToken, b as isMarkdownCapableMessageChannel, c as getFileExtension, d as isGifMedia, dt as resolveDiscordAccount, ft as normalizeDiscordToken, g as mediaKindFromMime, gt as isBlockedHostname, h as maxBytesForKind, k as listChannelPlugins, l as imageMimeFromFormat, lt as listEnabledDiscordAccounts, m as MAX_IMAGE_BYTES, n as getImageMetadata, o as detectMime, ot as resolveSlackBotToken, p as normalizeMimeType$1, pt as SsrFBlockedError, q as normalizeWhatsAppTarget, rt as resolveSlackAccount, s as extensionForMime, st as normalizeChatType, u as isAudioFileName, v as isDeliverableMessageChannel, w as resolveMessageChannel, x as listDeliverableMessageChannels, y as isInternalMessageChannel } from "./image-ops-zm4O3fkk.js";
|
|
12
|
+
import { i as fetchWithSsrFGuard, n as fetchRemoteMedia, r as readResponseWithLimit } from "./fetch-Cw_7QfME.js";
|
|
13
13
|
import { n as resolveCliName, t as formatCliCommand } from "./command-format-D8xZiqKN.js";
|
|
14
14
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-BmLW2kW0.js";
|
|
15
|
-
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath } from "./paths-
|
|
15
|
+
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath } from "./paths-wRVSwmkX.js";
|
|
16
16
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BiU0SOrl.js";
|
|
17
|
-
import { n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-
|
|
18
|
-
import { a as readNumberParam, c as readStringOrNumberParam, i as jsonResult, l as readStringParam, n as imageResult, o as readReactionParams, r as imageResultFromFile, s as readStringArrayParam, t as createActionGate } from "./common-
|
|
19
|
-
import { a as renderMarkdownWithMarkers, i as convertMarkdownTables, o as normalizePollDurationHours, s as normalizePollInput, t as getActiveWebListener } from "./active-listener-
|
|
20
|
-
import { _ as loadWebMedia, a as chunkByNewline, c as chunkMarkdownTextWithMode, d as resolveChunkMode, f as resolveTextChunkLimit, g as getDefaultLocalRoots, h as parseFenceSpans, i as resolveMarkdownTableMode, l as chunkText, m as isSafeFenceBreak, n as markdownToIR, p as findFenceSpanAt, s as chunkMarkdownText, t as chunkMarkdownIR, u as chunkTextWithMode, v as loadWebMediaRaw, y as getAgentScopedMediaLocalRoots } from "./ir-
|
|
21
|
-
import { i as retryAsync, n as resolveMemorySearchConfig, r as resolveRetryConfig } from "./manager-
|
|
17
|
+
import { n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-C4GaQjrF.js";
|
|
18
|
+
import { a as readNumberParam, c as readStringOrNumberParam, i as jsonResult, l as readStringParam, n as imageResult, o as readReactionParams, r as imageResultFromFile, s as readStringArrayParam, t as createActionGate } from "./common-pKa0kElY.js";
|
|
19
|
+
import { a as renderMarkdownWithMarkers, i as convertMarkdownTables, o as normalizePollDurationHours, s as normalizePollInput, t as getActiveWebListener } from "./active-listener-CFLZdKRQ.js";
|
|
20
|
+
import { _ as loadWebMedia, a as chunkByNewline, c as chunkMarkdownTextWithMode, d as resolveChunkMode, f as resolveTextChunkLimit, g as getDefaultLocalRoots, h as parseFenceSpans, i as resolveMarkdownTableMode, l as chunkText, m as isSafeFenceBreak, n as markdownToIR, p as findFenceSpanAt, s as chunkMarkdownText, t as chunkMarkdownIR, u as chunkTextWithMode, v as loadWebMediaRaw, y as getAgentScopedMediaLocalRoots } from "./ir-BEwiHV7R.js";
|
|
21
|
+
import { i as retryAsync, n as resolveMemorySearchConfig, r as resolveRetryConfig } from "./manager-Cqyl7HDP.js";
|
|
22
22
|
import { t as resolveFetch } from "./fetch-4S_PaC9f.js";
|
|
23
|
-
import { A as rawDataToString, S as DEFAULT_AI_SNAPSHOT_MAX_CHARS, j as pickPrimaryTailnetIPv4, k as pickPrimaryLanIPv4, v as ensureChromeExtensionRelayServer } from "./chrome-
|
|
24
|
-
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-
|
|
25
|
-
import { _ as stripThinkingTagsFromText, a as decodeDataUrl, b as ensureOpenClawModelsJson, c as extractAssistantThinking, d as formatReasoningMessage, f as inferToolMetaFromArgs, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractThinkingFromTaggedStream, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as isAssistantMessage, r as coerceImageAssistantText, s as extractAssistantText$1, u as extractThinkingFromTaggedText, v as resolveToolDisplay, x as minimaxUnderstandImage, y as stripReasoningTagsFromText } from "./image-
|
|
23
|
+
import { A as rawDataToString, S as DEFAULT_AI_SNAPSHOT_MAX_CHARS, j as pickPrimaryTailnetIPv4, k as pickPrimaryLanIPv4, v as ensureChromeExtensionRelayServer } from "./chrome-OZ5Ge8PR.js";
|
|
24
|
+
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-DxPwS4ed.js";
|
|
25
|
+
import { _ as stripThinkingTagsFromText, a as decodeDataUrl, b as ensureOpenClawModelsJson, c as extractAssistantThinking, d as formatReasoningMessage, f as inferToolMetaFromArgs, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractThinkingFromTaggedStream, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as isAssistantMessage, r as coerceImageAssistantText, s as extractAssistantText$1, u as extractThinkingFromTaggedText, v as resolveToolDisplay, x as minimaxUnderstandImage, y as stripReasoningTagsFromText } from "./image-2KL1DOmN.js";
|
|
26
26
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DX1x3UsN.js";
|
|
27
27
|
import { t as redactSensitiveText } from "./redact-CZWjP0qB.js";
|
|
28
|
-
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-
|
|
28
|
+
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-CKrK6KKr.js";
|
|
29
29
|
import { t as makeProxyFetch } from "./proxy-CLlXFbH0.js";
|
|
30
30
|
import { createRequire } from "node:module";
|
|
31
31
|
import * as path$1 from "node:path";
|
|
@@ -33,7 +33,7 @@ import path from "node:path";
|
|
|
33
33
|
import fs, { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
34
34
|
import * as os$1 from "node:os";
|
|
35
35
|
import os, { homedir, tmpdir } from "node:os";
|
|
36
|
-
import
|
|
36
|
+
import JSON5 from "json5";
|
|
37
37
|
import * as fs$2 from "node:fs/promises";
|
|
38
38
|
import fs$1 from "node:fs/promises";
|
|
39
39
|
import { execFile, execSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -8649,7 +8649,7 @@ async function createModelSelectionState(params) {
|
|
|
8649
8649
|
}
|
|
8650
8650
|
}
|
|
8651
8651
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
8652
|
-
const { ensureAuthProfileStore } = await import("./model-selection-
|
|
8652
|
+
const { ensureAuthProfileStore } = await import("./model-selection-DHMRsTNB.js").then((n) => n.E);
|
|
8653
8653
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
8654
8654
|
const providerKey = normalizeProviderId(provider);
|
|
8655
8655
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -12614,7 +12614,7 @@ async function getMemorySearchManager(params) {
|
|
|
12614
12614
|
if (cached) return { manager: cached };
|
|
12615
12615
|
}
|
|
12616
12616
|
try {
|
|
12617
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
12617
|
+
const { QmdMemoryManager } = await import("./qmd-manager-CY7j7J3V.js");
|
|
12618
12618
|
const primary = await QmdMemoryManager.create({
|
|
12619
12619
|
cfg: params.cfg,
|
|
12620
12620
|
agentId: params.agentId,
|
|
@@ -12626,7 +12626,7 @@ async function getMemorySearchManager(params) {
|
|
|
12626
12626
|
const wrapper = new FallbackMemoryManager({
|
|
12627
12627
|
primary,
|
|
12628
12628
|
fallbackFactory: async () => {
|
|
12629
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
12629
|
+
const { MemoryIndexManager } = await import("./manager-Cqyl7HDP.js").then((n) => n.t);
|
|
12630
12630
|
return await MemoryIndexManager.get(params);
|
|
12631
12631
|
}
|
|
12632
12632
|
}, () => QMD_MANAGER_CACHE.delete(cacheKey));
|
|
@@ -12639,7 +12639,7 @@ async function getMemorySearchManager(params) {
|
|
|
12639
12639
|
}
|
|
12640
12640
|
}
|
|
12641
12641
|
try {
|
|
12642
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
12642
|
+
const { MemoryIndexManager } = await import("./manager-Cqyl7HDP.js").then((n) => n.t);
|
|
12643
12643
|
return { manager: await MemoryIndexManager.get(params) };
|
|
12644
12644
|
} catch (err) {
|
|
12645
12645
|
return {
|
|
@@ -14711,7 +14711,7 @@ function normalizeSessionKey(value) {
|
|
|
14711
14711
|
function readSessionStore(storePath) {
|
|
14712
14712
|
try {
|
|
14713
14713
|
const raw = fs.readFileSync(storePath, "utf-8");
|
|
14714
|
-
const parsed =
|
|
14714
|
+
const parsed = JSON5.parse(raw);
|
|
14715
14715
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
14716
14716
|
} catch {}
|
|
14717
14717
|
return {};
|
|
@@ -16807,7 +16807,7 @@ async function routeReply(params) {
|
|
|
16807
16807
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
16808
16808
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
16809
16809
|
try {
|
|
16810
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
16810
|
+
const { deliverOutboundPayloads } = await import("./deliver-ebYNQy_5.js").then((n) => n.n);
|
|
16811
16811
|
return {
|
|
16812
16812
|
ok: true,
|
|
16813
16813
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -20512,7 +20512,7 @@ async function describeStickerImage(params) {
|
|
|
20512
20512
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
20513
20513
|
try {
|
|
20514
20514
|
const buffer = await fs$1.readFile(imagePath);
|
|
20515
|
-
const { describeImageWithModel } = await import("./image-
|
|
20515
|
+
const { describeImageWithModel } = await import("./image-2KL1DOmN.js").then((n) => n.n);
|
|
20516
20516
|
return (await describeImageWithModel({
|
|
20517
20517
|
buffer,
|
|
20518
20518
|
fileName: "sticker.webp",
|
|
@@ -20874,7 +20874,7 @@ function createWhatsAppLoginTool() {
|
|
|
20874
20874
|
force: Type.Optional(Type.Boolean())
|
|
20875
20875
|
}),
|
|
20876
20876
|
execute: async (_toolCallId, args) => {
|
|
20877
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
20877
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-DjYOgNGQ.js");
|
|
20878
20878
|
if ((args?.action ?? "start") === "wait") {
|
|
20879
20879
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
20880
20880
|
return {
|
|
@@ -23050,7 +23050,7 @@ async function preflightDiscordMessage(params) {
|
|
|
23050
23050
|
let preflightTranscript;
|
|
23051
23051
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
23052
23052
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
23053
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
23053
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-C0NlyreL.js");
|
|
23054
23054
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
23055
23055
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
23056
23056
|
ctx: {
|
|
@@ -37092,7 +37092,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
|
|
|
37092
37092
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
37093
37093
|
let preflightTranscript;
|
|
37094
37094
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
37095
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
37095
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-C0NlyreL.js");
|
|
37096
37096
|
preflightTranscript = await transcribeFirstAudio({
|
|
37097
37097
|
ctx: {
|
|
37098
37098
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -39164,23 +39164,23 @@ let webLoginQrPromise = null;
|
|
|
39164
39164
|
let webChannelPromise = null;
|
|
39165
39165
|
let whatsappActionsPromise = null;
|
|
39166
39166
|
function loadWebOutbound() {
|
|
39167
|
-
webOutboundPromise ??= import("./outbound-
|
|
39167
|
+
webOutboundPromise ??= import("./outbound-DT2nH6dY.js").then((n) => n.t);
|
|
39168
39168
|
return webOutboundPromise;
|
|
39169
39169
|
}
|
|
39170
39170
|
function loadWebLogin() {
|
|
39171
|
-
webLoginPromise ??= import("./login-
|
|
39171
|
+
webLoginPromise ??= import("./login-DG-oB1Gg.js").then((n) => n.n);
|
|
39172
39172
|
return webLoginPromise;
|
|
39173
39173
|
}
|
|
39174
39174
|
function loadWebLoginQr() {
|
|
39175
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
39175
|
+
webLoginQrPromise ??= import("./login-qr-DjYOgNGQ.js");
|
|
39176
39176
|
return webLoginQrPromise;
|
|
39177
39177
|
}
|
|
39178
39178
|
function loadWebChannel() {
|
|
39179
|
-
webChannelPromise ??= import("./web-
|
|
39179
|
+
webChannelPromise ??= import("./web-DY7ps8Jl.js");
|
|
39180
39180
|
return webChannelPromise;
|
|
39181
39181
|
}
|
|
39182
39182
|
function loadWhatsAppActions() {
|
|
39183
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
39183
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-C5T64qvX.js");
|
|
39184
39184
|
return whatsappActionsPromise;
|
|
39185
39185
|
}
|
|
39186
39186
|
function createPluginRuntime() {
|
|
@@ -68914,7 +68914,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
68914
68914
|
return;
|
|
68915
68915
|
}
|
|
68916
68916
|
try {
|
|
68917
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
68917
|
+
const { deliverOutboundPayloads } = await import("./deliver-ebYNQy_5.js").then((n) => n.n);
|
|
68918
68918
|
await deliverOutboundPayloads({
|
|
68919
68919
|
cfg: params.cfg,
|
|
68920
68920
|
channel,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { it as shouldLogVerbose, n as runExec, nt as logVerbose } from "./exec-
|
|
2
|
-
import { C as resolveApiKeyForProvider, I as resolveOpenClawAgentDir, S as requireApiKey, p as normalizeGoogleModelId, s as normalizeProviderId } from "./model-selection-
|
|
3
|
-
import { n as loadConfig } from "./config-
|
|
1
|
+
import { it as shouldLogVerbose, n as runExec, nt as logVerbose } from "./exec-C5lqk9X4.js";
|
|
2
|
+
import { C as resolveApiKeyForProvider, I as resolveOpenClawAgentDir, S as requireApiKey, p as normalizeGoogleModelId, s as normalizeProviderId } from "./model-selection-DHMRsTNB.js";
|
|
3
|
+
import { n as loadConfig } from "./config-DelXkt58.js";
|
|
4
4
|
import { n as fetchWithTimeout } from "./fetch-timeout-BD-UJHcc.js";
|
|
5
|
-
import { c as getFileExtension, f as kindFromMime, o as detectMime, st as normalizeChatType, u as isAudioFileName } from "./image-ops-
|
|
6
|
-
import { i as fetchWithSsrFGuard, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-
|
|
7
|
-
import { b as ensureOpenClawModelsJson, t as describeImageWithModel } from "./image-
|
|
5
|
+
import { c as getFileExtension, f as kindFromMime, o as detectMime, st as normalizeChatType, u as isAudioFileName } from "./image-ops-zm4O3fkk.js";
|
|
6
|
+
import { i as fetchWithSsrFGuard, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-Cw_7QfME.js";
|
|
7
|
+
import { b as ensureOpenClawModelsJson, t as describeImageWithModel } from "./image-2KL1DOmN.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { constants } from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
@@ -829,7 +829,7 @@ async function loadModelCatalog(params) {
|
|
|
829
829
|
});
|
|
830
830
|
try {
|
|
831
831
|
await ensureOpenClawModelsJson(params?.config ?? loadConfig());
|
|
832
|
-
await (await import("./pi-auth-json-
|
|
832
|
+
await (await import("./pi-auth-json-XTF0mVQ6.js")).ensurePiAuthJsonFromAuthProfiles(resolveOpenClawAgentDir());
|
|
833
833
|
const piSdk = await importPiSdk();
|
|
834
834
|
const agentDir = resolveOpenClawAgentDir();
|
|
835
835
|
const { join } = await import("node:path");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as ensureDir, K as resolveUserPath, at as success, et as danger, ft as toPinoLikeLogger, ut as getChildLogger } from "./exec-
|
|
2
|
-
import { B as resolveWebCredsBackupPath, E as VERSION, F as maybeRestoreCredsFromBackup, L as readCredsJsonRaw, V as resolveWebCredsPath, z as resolveDefaultWebAuthDir } from "./config-
|
|
1
|
+
import { F as ensureDir, K as resolveUserPath, at as success, et as danger, ft as toPinoLikeLogger, ut as getChildLogger } from "./exec-C5lqk9X4.js";
|
|
2
|
+
import { B as resolveWebCredsBackupPath, E as VERSION, F as maybeRestoreCredsFromBackup, L as readCredsJsonRaw, V as resolveWebCredsPath, z as resolveDefaultWebAuthDir } from "./config-DelXkt58.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-D8xZiqKN.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
@@ -47,6 +47,15 @@ async function createWaSocket(printQr, verbose, opts = {}) {
|
|
|
47
47
|
maybeRestoreCredsFromBackup(authDir);
|
|
48
48
|
const { state, saveCreds } = await useMultiFileAuthState(authDir);
|
|
49
49
|
const { version } = await fetchLatestBaileysVersion();
|
|
50
|
+
let agent;
|
|
51
|
+
const proxyUrl = process.env.HTTPS_PROXY || process.env.HTTP_PROXY;
|
|
52
|
+
if (proxyUrl) try {
|
|
53
|
+
const { HttpsProxyAgent } = await import("https-proxy-agent");
|
|
54
|
+
agent = new HttpsProxyAgent(proxyUrl);
|
|
55
|
+
sessionLogger.info(`Using proxy agent for WhatsApp WebSocket: ${proxyUrl.replace(/\/\/.*@/, "//***@")}`);
|
|
56
|
+
} catch (err) {
|
|
57
|
+
sessionLogger.warn({ err }, "Failed to create proxy agent, connecting directly");
|
|
58
|
+
}
|
|
50
59
|
const sock = makeWASocket({
|
|
51
60
|
auth: {
|
|
52
61
|
creds: state.creds,
|
|
@@ -61,7 +70,8 @@ async function createWaSocket(printQr, verbose, opts = {}) {
|
|
|
61
70
|
VERSION
|
|
62
71
|
],
|
|
63
72
|
syncFullHistory: false,
|
|
64
|
-
markOnlineOnConnect: false
|
|
73
|
+
markOnlineOnConnect: false,
|
|
74
|
+
agent
|
|
65
75
|
});
|
|
66
76
|
sock.ev.on("creds.update", () => enqueueSaveCreds(authDir, saveCreds, sessionLogger));
|
|
67
77
|
sock.ev.on("connection.update", (update) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as createSubsystemLogger } from "./exec-
|
|
2
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
1
|
+
import { l as createSubsystemLogger } from "./exec-C5lqk9X4.js";
|
|
2
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-wRVSwmkX.js";
|
|
3
3
|
import { t as redactSensitiveText } from "./redact-CZWjP0qB.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as createSubsystemLogger } from "./exec-
|
|
2
|
-
import { a as resizeToJpeg, n as getImageMetadata } from "./image-ops-
|
|
1
|
+
import { l as createSubsystemLogger } from "./exec-C5lqk9X4.js";
|
|
2
|
+
import { a as resizeToJpeg, n as getImageMetadata } from "./image-ops-zm4O3fkk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/tool-images.ts
|
|
5
5
|
const MAX_IMAGE_DIMENSION_PX = 2e3;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "./reply-CnWG5ty5.js";
|
|
2
|
+
import "./exec-C5lqk9X4.js";
|
|
3
|
+
import "./paths-ZQWYGl2V.js";
|
|
4
|
+
import "./model-selection-DHMRsTNB.js";
|
|
5
|
+
import { H as webAuthExists, I as pickWebChannel, N as logWebSelfId, j as WA_WEB_AUTH_DIR } from "./config-DelXkt58.js";
|
|
6
|
+
import "./agent-scope-ip6rBrUD.js";
|
|
7
|
+
import "./deliver-ebYNQy_5.js";
|
|
8
|
+
import "./pi-embedded-helpers-C3_rwWkJ.js";
|
|
9
|
+
import "./image-ops-zm4O3fkk.js";
|
|
10
|
+
import "./fetch-Cw_7QfME.js";
|
|
11
|
+
import "./github-copilot-token-BmLW2kW0.js";
|
|
12
|
+
import "./paths-wRVSwmkX.js";
|
|
13
|
+
import "./tool-images-C4GaQjrF.js";
|
|
14
|
+
import "./common-pKa0kElY.js";
|
|
15
|
+
import "./active-listener-CFLZdKRQ.js";
|
|
16
|
+
import "./ir-BEwiHV7R.js";
|
|
17
|
+
import "./manager-Cqyl7HDP.js";
|
|
18
|
+
import "./chrome-OZ5Ge8PR.js";
|
|
19
|
+
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-Za6SnC7J.js";
|
|
20
|
+
import "./runner-DxPwS4ed.js";
|
|
21
|
+
import "./image-2KL1DOmN.js";
|
|
22
|
+
import "./pi-model-discovery-DX1x3UsN.js";
|
|
23
|
+
import "./redact-CZWjP0qB.js";
|
|
24
|
+
import "./sqlite-CKrK6KKr.js";
|
|
25
|
+
import "./proxy-CLlXFbH0.js";
|
|
26
|
+
import { n as sendMessageWhatsApp } from "./outbound-DT2nH6dY.js";
|
|
27
|
+
import { i as waitForWaConnection, t as createWaSocket } from "./session-BO6X9uoj.js";
|
|
28
|
+
import { t as loginWeb } from "./login-DG-oB1Gg.js";
|
|
29
|
+
|
|
30
|
+
export { WA_WEB_AUTH_DIR, createWaSocket, logWebSelfId, loginWeb, monitorWebChannel, monitorWebInbox, pickWebChannel, sendMessageWhatsApp, waitForWaConnection, webAuthExists };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./exec-
|
|
1
|
+
import "./exec-C5lqk9X4.js";
|
|
2
2
|
import "./paths-ZQWYGl2V.js";
|
|
3
|
-
import "./model-selection-
|
|
4
|
-
import "./config-
|
|
5
|
-
import "./agent-scope-
|
|
6
|
-
import "./image-ops-
|
|
7
|
-
import "./fetch-
|
|
3
|
+
import "./model-selection-DHMRsTNB.js";
|
|
4
|
+
import "./config-DelXkt58.js";
|
|
5
|
+
import "./agent-scope-ip6rBrUD.js";
|
|
6
|
+
import "./image-ops-zm4O3fkk.js";
|
|
7
|
+
import "./fetch-Cw_7QfME.js";
|
|
8
8
|
import "./github-copilot-token-BmLW2kW0.js";
|
|
9
|
-
import "./tool-images-
|
|
10
|
-
import { i as jsonResult, l as readStringParam, o as readReactionParams, t as createActionGate } from "./common-
|
|
11
|
-
import "./active-listener-
|
|
12
|
-
import "./ir-
|
|
13
|
-
import { r as sendReactionWhatsApp } from "./outbound-
|
|
9
|
+
import "./tool-images-C4GaQjrF.js";
|
|
10
|
+
import { i as jsonResult, l as readStringParam, o as readReactionParams, t as createActionGate } from "./common-pKa0kElY.js";
|
|
11
|
+
import "./active-listener-CFLZdKRQ.js";
|
|
12
|
+
import "./ir-BEwiHV7R.js";
|
|
13
|
+
import { r as sendReactionWhatsApp } from "./outbound-DT2nH6dY.js";
|
|
14
14
|
|
|
15
15
|
//#region src/agents/tools/whatsapp-actions.ts
|
|
16
16
|
async function handleWhatsAppAction(params, cfg) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-B4BZAPZh.js";
|
|
2
2
|
import { B as theme, C as shortenHomePath, S as shortenHomeInString, _ as resolveConfigDir, b as resolveUserPath } from "./utils-CFnnyoTP.js";
|
|
3
3
|
import "./pi-embedded-helpers-DwIwt1C1.js";
|
|
4
|
-
import "./reply-
|
|
4
|
+
import "./reply-jLqhHIBQ.js";
|
|
5
5
|
import { d as defaultRuntime } from "./subsystem-azPHgTb4.js";
|
|
6
6
|
import "./exec-V7mqHC8U.js";
|
|
7
7
|
import "./agent-scope-aaTVOkax.js";
|
|
@@ -80,7 +80,7 @@ import "./npm-registry-spec-CuFgcvQy.js";
|
|
|
80
80
|
import "./skill-scanner-rZe1OKVo.js";
|
|
81
81
|
import { i as resolvePluginInstallDir, n as installPluginFromNpmSpec, r as installPluginFromPath, t as recordPluginInstall } from "./installs-J67aL6S5.js";
|
|
82
82
|
import { t as renderTable } from "./table-CQy-QAll.js";
|
|
83
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
83
|
+
import { t as buildPluginStatusReport } from "./status-DfjRvBXf.js";
|
|
84
84
|
import { n as updateNpmInstalledPlugins } from "./update-vJ0EItfH.js";
|
|
85
85
|
import fs from "node:fs";
|
|
86
86
|
import os from "node:os";
|
|
@@ -12,7 +12,7 @@ import { i as loadConfig, l as writeConfigFile } from "./config-B4-Vvu6M.js";
|
|
|
12
12
|
import "./client-gZv0X5tz.js";
|
|
13
13
|
import "./call-CeM4F1rK.js";
|
|
14
14
|
import "./message-channel-CZpVDeRr.js";
|
|
15
|
-
import "./subagent-registry-
|
|
15
|
+
import "./subagent-registry-Do5aAYdm.js";
|
|
16
16
|
import "./sessions-D-LiJehh.js";
|
|
17
17
|
import "./deliver-a9TlmfSI.js";
|
|
18
18
|
import "./plugins-bX81iDy5.js";
|
|
@@ -77,7 +77,7 @@ import "./npm-registry-spec-0gjaSbs4.js";
|
|
|
77
77
|
import "./skill-scanner-C6Fsebtt.js";
|
|
78
78
|
import { i as resolvePluginInstallDir, n as installPluginFromNpmSpec, r as installPluginFromPath, t as recordPluginInstall } from "./installs-FdZTML_g.js";
|
|
79
79
|
import { t as renderTable } from "./table-BU9JaTpc.js";
|
|
80
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
80
|
+
import { t as buildPluginStatusReport } from "./status-DrjhxuYR.js";
|
|
81
81
|
import { n as updateNpmInstalledPlugins } from "./update-BX5yicnj.js";
|
|
82
82
|
import os from "node:os";
|
|
83
83
|
import path from "node:path";
|
|
@@ -13,7 +13,7 @@ import { F as VERSION } from "./config-B4-Vvu6M.js";
|
|
|
13
13
|
import "./client-gZv0X5tz.js";
|
|
14
14
|
import "./call-CeM4F1rK.js";
|
|
15
15
|
import "./message-channel-CZpVDeRr.js";
|
|
16
|
-
import "./subagent-registry-
|
|
16
|
+
import "./subagent-registry-Do5aAYdm.js";
|
|
17
17
|
import "./sessions-D-LiJehh.js";
|
|
18
18
|
import "./deliver-a9TlmfSI.js";
|
|
19
19
|
import "./plugins-bX81iDy5.js";
|
|
@@ -74,13 +74,13 @@ import "./onboard-helpers-Bfg43UBg.js";
|
|
|
74
74
|
import "./prompt-style-Ws1ofeXe.js";
|
|
75
75
|
import "./pairing-labels-DKrwGHA2.js";
|
|
76
76
|
import "./catalog-D8aoRgov.js";
|
|
77
|
-
import "./plugin-registry-
|
|
78
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
79
|
-
import "./register.subclis-
|
|
80
|
-
import { i as registerProgramCommands } from "./command-registry-
|
|
77
|
+
import "./plugin-registry-DBpayaga.js";
|
|
78
|
+
import { n as resolveCliChannelOptions } from "./channel-options-DTszr7UZ.js";
|
|
79
|
+
import "./register.subclis-tuSSdE3-.js";
|
|
80
|
+
import { i as registerProgramCommands } from "./command-registry-Zu61QmVf.js";
|
|
81
81
|
import { r as setProgramContext } from "./program-context-D2pNx-CZ.js";
|
|
82
82
|
import { t as forceFreePort } from "./ports-CBEgLU1F.js";
|
|
83
|
-
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-
|
|
83
|
+
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-DlnL7Slb.js";
|
|
84
84
|
import { Command } from "commander";
|
|
85
85
|
|
|
86
86
|
//#region src/cli/program/context.ts
|
|
@@ -173,7 +173,7 @@ function registerPreActionHooks(program, programVersion) {
|
|
|
173
173
|
commandPath
|
|
174
174
|
});
|
|
175
175
|
if (PLUGIN_REQUIRED_COMMANDS.has(commandPath[0])) {
|
|
176
|
-
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-
|
|
176
|
+
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-DBpayaga.js").then((n) => n.n);
|
|
177
177
|
ensurePluginRegistryLoaded();
|
|
178
178
|
}
|
|
179
179
|
});
|