@qingchencloud/openclaw-zh 2026.2.12-zh.4 → 2026.2.12-zh.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/{audio-preflight-ZHvOxKXt.js → audio-preflight-H6j5U0KI.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{chrome-DdVSJTXz.js → chrome-DL0avO8n.js} +7 -7
- package/dist/{completion-cli-CyzyrHrR.js → completion-cli-Bh5I8KKW.js} +1 -1
- package/dist/{completion-cli-2Bc_7G0a.js → completion-cli-CcaE0pUj.js} +2 -2
- package/dist/{config-guard-Qy6xO2kN.js → config-guard-Dwy_SXfj.js} +3 -3
- package/dist/{deliver-DazjengH.js → deliver-Cfwk8SNA.js} +2 -2
- package/dist/{doctor-x8clSb3C.js → doctor-BLN7IPI4.js} +1 -1
- package/dist/{doctor-DccTxMMp.js → doctor-mJ96-PMI.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +14 -14
- package/dist/{fetch-timeout-urfh02mK.js → fetch-timeout-ZWIvvTQK.js} +1 -1
- package/dist/{gateway-cli-L7E32fcm.js → gateway-cli-DRTmlmrN.js} +4 -4
- package/dist/{gateway-cli-CnNUVLJw.js → gateway-cli-JDQ6uvV5.js} +3 -3
- package/dist/{image-Z9r6K1Eq.js → image-BE3W5CBO.js} +1 -1
- package/dist/index.js +4 -4
- package/dist/{onboarding-Cm5cxA6O.js → onboarding-FiHTLDne.js} +2 -2
- package/dist/{pi-embedded-helpers-B8kx4lpS.js → pi-embedded-helpers-BIzZ1S6e.js} +4 -4
- package/dist/{program-Bv5v01xf.js → program-CDBEm6if.js} +6 -6
- package/dist/{pw-ai-eOgDb58E.js → pw-ai-sS1fRKW_.js} +1 -1
- package/dist/{register.subclis-B2BD8ORC.js → register.subclis-RSfGxYNZ.js} +3 -3
- package/dist/{run-main-BPyWOeaK.js → run-main-CoC16qlB.js} +8 -8
- package/dist/{runner-D-Iscnow.js → runner-BlBPOkt7.js} +3 -3
- package/dist/{status-DUJJSMsU.js → status-D7wvJfkI.js} +2 -2
- package/dist/{update-cli-BEUw_fIP.js → update-cli-CWwlZWt8.js} +4 -4
- package/dist/{update-cli-CHfWPN1e.js → update-cli-I4ys5Qke.js} +5 -5
- package/dist/{update-runner-DnDmKzoe.js → update-runner-fgGnSCWB.js} +1 -1
- package/dist/{update-runner-DKTjSH-j.js → update-runner-x-LsF29G.js} +1 -1
- package/package.json +1 -1
|
@@ -3,15 +3,15 @@ import "./agent-scope-vDqmal6_.js";
|
|
|
3
3
|
import { J as logVerbose, X as shouldLogVerbose } from "./exec-CJFFoM7H.js";
|
|
4
4
|
import "./model-selection-DYQRxo9K.js";
|
|
5
5
|
import "./github-copilot-token-wCk9Fg_E.js";
|
|
6
|
-
import "./pi-embedded-helpers-
|
|
6
|
+
import "./pi-embedded-helpers-BIzZ1S6e.js";
|
|
7
7
|
import "./config-B7W10B0P.js";
|
|
8
8
|
import "./pi-model-discovery-EhM2JAQo.js";
|
|
9
|
-
import "./chrome-
|
|
9
|
+
import "./chrome-DL0avO8n.js";
|
|
10
10
|
import "./paths-BSvO0qdk.js";
|
|
11
|
-
import "./image-
|
|
11
|
+
import "./image-BE3W5CBO.js";
|
|
12
12
|
import "./redact-BIMJ3ntQ.js";
|
|
13
|
-
import "./fetch-timeout-
|
|
14
|
-
import { a as runCapability, l as isAudioAttachment, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-
|
|
13
|
+
import "./fetch-timeout-ZWIvvTQK.js";
|
|
14
|
+
import { a as runCapability, l as isAudioAttachment, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry } from "./runner-BlBPOkt7.js";
|
|
15
15
|
|
|
16
16
|
//#region src/media-understanding/audio-preflight.ts
|
|
17
17
|
/**
|
package/dist/build-info.json
CHANGED
|
@@ -8,7 +8,7 @@ import fs$1 from "node:fs/promises";
|
|
|
8
8
|
import { execFileSync, spawn } from "node:child_process";
|
|
9
9
|
import { randomBytes } from "node:crypto";
|
|
10
10
|
import { createServer } from "node:http";
|
|
11
|
-
import WebSocket, { WebSocketServer } from "ws";
|
|
11
|
+
import WebSocket$1, { WebSocketServer } from "ws";
|
|
12
12
|
import net from "node:net";
|
|
13
13
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
14
14
|
|
|
@@ -173,7 +173,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
173
173
|
let nextExtensionId = 1;
|
|
174
174
|
const sendToExtension = async (payload) => {
|
|
175
175
|
const ws = extensionWs;
|
|
176
|
-
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
176
|
+
if (!ws || ws.readyState !== WebSocket$1.OPEN) throw new Error("Chrome extension not connected");
|
|
177
177
|
ws.send(JSON.stringify(payload));
|
|
178
178
|
return await new Promise((resolve, reject) => {
|
|
179
179
|
const timer = setTimeout(() => {
|
|
@@ -190,12 +190,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
190
190
|
const broadcastToCdpClients = (evt) => {
|
|
191
191
|
const msg = JSON.stringify(evt);
|
|
192
192
|
for (const ws of cdpClients) {
|
|
193
|
-
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
193
|
+
if (ws.readyState !== WebSocket$1.OPEN) continue;
|
|
194
194
|
ws.send(msg);
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
197
|
const sendResponseToCdp = (ws, res) => {
|
|
198
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
198
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
199
199
|
ws.send(JSON.stringify(res));
|
|
200
200
|
};
|
|
201
201
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -415,7 +415,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
415
415
|
wssExtension.on("connection", (ws) => {
|
|
416
416
|
extensionWs = ws;
|
|
417
417
|
const ping = setInterval(() => {
|
|
418
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
418
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
419
419
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
420
420
|
}, 5e3);
|
|
421
421
|
ws.on("message", (data) => {
|
|
@@ -712,7 +712,7 @@ async function fetchJson(url, timeoutMs = 1500, init) {
|
|
|
712
712
|
}
|
|
713
713
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
714
714
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
715
|
-
const ws = new WebSocket(wsUrl, {
|
|
715
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
716
716
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
717
717
|
...Object.keys(headers).length ? { headers } : {}
|
|
718
718
|
});
|
|
@@ -1847,7 +1847,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1847
1847
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1848
1848
|
return await new Promise((resolve) => {
|
|
1849
1849
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1850
|
-
const ws = new WebSocket(wsUrl, {
|
|
1850
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
1851
1851
|
handshakeTimeout: timeoutMs,
|
|
1852
1852
|
...Object.keys(headers).length ? { headers } : {}
|
|
1853
1853
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { Z as resolveStateDir } from "./entry.js";
|
|
3
3
|
import { h as pathExists } from "./utils-BLJAc3ZV.js";
|
|
4
|
-
import { n as registerSubCliByName, t as getSubCliEntries } from "./register.subclis-
|
|
4
|
+
import { n as registerSubCliByName, t as getSubCliEntries } from "./register.subclis-RSfGxYNZ.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -125,7 +125,7 @@ const entries = [
|
|
|
125
125
|
name: "gateway",
|
|
126
126
|
description: "网关控制",
|
|
127
127
|
register: async (program) => {
|
|
128
|
-
(await import("./gateway-cli-
|
|
128
|
+
(await import("./gateway-cli-JDQ6uvV5.js")).registerGatewayCli(program);
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
{
|
|
@@ -283,7 +283,7 @@ const entries = [
|
|
|
283
283
|
name: "update",
|
|
284
284
|
description: "CLI 更新工具",
|
|
285
285
|
register: async (program) => {
|
|
286
|
-
(await import("./update-cli-
|
|
286
|
+
(await import("./update-cli-CWwlZWt8.js")).registerUpdateCli(program);
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
289
|
{
|
|
@@ -23,7 +23,7 @@ import { P as resolveFreshSessionTotalTokens, d as loadSessionStore } from "./sa
|
|
|
23
23
|
import { n as formatTimeAgo } from "./format-relative-CZOlQ2pA.js";
|
|
24
24
|
import { n as runCommandWithRuntime } from "./cli-utils-LcHOt63h.js";
|
|
25
25
|
import { n as ensurePluginRegistryLoaded, t as hasExplicitOptions } from "./command-options-DYRvCvYt.js";
|
|
26
|
-
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-
|
|
26
|
+
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-RSfGxYNZ.js";
|
|
27
27
|
import { n as parsePositiveIntOrUndefined, t as collectOption } from "./helpers-D_jqdWkd.js";
|
|
28
28
|
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-DtfOsxPK.js";
|
|
29
29
|
import { t as createDefaultDeps } from "./deps-DT6W1A83.js";
|
|
@@ -35,12 +35,12 @@ import { _ as applyOpenAIConfig, a as applyCustomApiConfig, b as applyGoogleGemi
|
|
|
35
35
|
import { l as healthCommand } from "./health-format-CZ--pwnE.js";
|
|
36
36
|
import { C as applyLitellmConfig, E as applyMoonshotConfigCn, F as applySyntheticConfig, G as applyXiaomiConfig, L as applyTogetherConfig, N as applyShengsuanyunConfig, Ot as buildTokenProfileId, T as applyMoonshotConfig, U as applyXaiConfig, V as applyVercelAiGatewayConfig, _t as setXiaomiApiKey, at as setLitellmApiKey, ct as setOpencodeZenApiKey, dt as setShengSuanYunApiKey, f as applyOpencodeZenConfig, ft as setSyntheticApiKey, g as applyMinimaxConfig, gt as setXaiApiKey, ht as setVercelAiGatewayApiKey, it as setKimiCodingApiKey, j as applyQianfanConfig, k as applyOpenrouterConfig, kt as validateAnthropicSetupToken, lt as setOpenrouterApiKey, m as applyMinimaxApiConfig, mt as setVeniceApiKey, nt as setCloudflareAiGatewayConfig, ot as setMinimaxApiKey, pt as setTogetherApiKey, q as applyZaiConfig, rt as setGeminiApiKey, st as setMoonshotApiKey, tt as setAnthropicApiKey, ut as setQianfanApiKey, v as applyAuthProfileConfig, vt as setZaiApiKey, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyVeniceConfig } from "./github-copilot-auth-B60M4Pk2.js";
|
|
37
37
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-CRq4h04P.js";
|
|
38
|
-
import { a as findAgentEntryIndex, c as pruneAgentConfig, d as parseIdentityMarkdown, f as runOnboardingWizard, i as buildAgentSummaries, l as identityHasValues, o as listAgentEntries, r as applyAgentConfig, s as loadAgentIdentity, t as statusCommand } from "./status-
|
|
38
|
+
import { a as findAgentEntryIndex, c as pruneAgentConfig, d as parseIdentityMarkdown, f as runOnboardingWizard, i as buildAgentSummaries, l as identityHasValues, o as listAgentEntries, r as applyAgentConfig, s as loadAgentIdentity, t as statusCommand } from "./status-D7wvJfkI.js";
|
|
39
39
|
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-CRIyzXmq.js";
|
|
40
40
|
import { t as formatHelpExamples } from "./help-format-R5fLToDw.js";
|
|
41
41
|
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-CVEM7ZqO.js";
|
|
42
42
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-xdn3BdPh.js";
|
|
43
|
-
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-
|
|
43
|
+
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-mJ96-PMI.js";
|
|
44
44
|
import path from "node:path";
|
|
45
45
|
import fs from "node:fs";
|
|
46
46
|
import JSON5 from "json5";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { j as normalizeAccountId$1 } from "./agent-scope-vDqmal6_.js";
|
|
3
3
|
import { J as logVerbose, O as escapeRegExp, R as resolveUserPath, X as shouldLogVerbose, b as getActivePluginRegistry, l as createSubsystemLogger } from "./exec-CJFFoM7H.js";
|
|
4
|
-
import { Cn as detectMime, Fn as getChannelPlugin, Ft as optimizeImageToPng, It as resizeToJpeg, J as resolveMirroredTranscriptText, Ln as normalizeChannelId, Mn as mediaKindFromMime, Mt as convertHeicToJpeg, Pn as resolveSignalAccount, Pt as hasAlphaChannel, Rt as saveMediaBuffer, bt as getChannelDock, fn as INTERNAL_MESSAGE_CHANNEL, jn as maxBytesForKind, m as isMessagingToolDuplicate, q as appendAssistantMessageToSessionTranscript, wn as extensionForMime } from "./pi-embedded-helpers-
|
|
4
|
+
import { Cn as detectMime, Fn as getChannelPlugin, Ft as optimizeImageToPng, It as resizeToJpeg, J as resolveMirroredTranscriptText, Ln as normalizeChannelId, Mn as mediaKindFromMime, Mt as convertHeicToJpeg, Pn as resolveSignalAccount, Pt as hasAlphaChannel, Rt as saveMediaBuffer, bt as getChannelDock, fn as INTERNAL_MESSAGE_CHANNEL, jn as maxBytesForKind, m as isMessagingToolDuplicate, q as appendAssistantMessageToSessionTranscript, wn as extensionForMime } from "./pi-embedded-helpers-BIzZ1S6e.js";
|
|
5
5
|
import { t as loadConfig } from "./config-B7W10B0P.js";
|
|
6
|
-
import { r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-
|
|
6
|
+
import { r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-ZWIvvTQK.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
@@ -28,7 +28,7 @@ import { n as logConfigUpdated } from "./logging-BAyPwvdH.js";
|
|
|
28
28
|
import { t as note$1 } from "./note-BhRSeNeu.js";
|
|
29
29
|
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-DSrxJ2PG.js";
|
|
30
30
|
import { i as resolveControlUiDistIndexPathForRoot, l as healthCommand, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-kTD3mmIm.js";
|
|
31
|
-
import { c as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-
|
|
31
|
+
import { c as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-fgGnSCWB.js";
|
|
32
32
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-CVjDLqne.js";
|
|
33
33
|
import { a as repairLaunchAgentBootstrap, i as launchAgentPlistExists, n as isLaunchAgentListed, o as resolveGatewayLogPaths, r as isLaunchAgentLoaded, t as resolveGatewayService } from "./service-_k92xd0b.js";
|
|
34
34
|
import { r as isSystemdUserServiceAvailable } from "./systemd-DrmBtJ5T.js";
|
|
@@ -30,7 +30,7 @@ import { r as isSystemdUserServiceAvailable } from "./systemd-C0VZriGM.js";
|
|
|
30
30
|
import { n as renderSystemdUnavailableHints, t as isSystemdUnavailableDetail } from "./systemd-hints-DsH4XJ6V.js";
|
|
31
31
|
import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, o as readLastGatewayErrorLine, r as needsNodeRuntimeMigration, t as SERVICE_AUDIT_CODES } from "./service-audit-Dj9U3c2F.js";
|
|
32
32
|
import { i as resolveControlUiDistIndexPathForRoot, l as healthCommand, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-CZ--pwnE.js";
|
|
33
|
-
import { f as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-
|
|
33
|
+
import { f as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-x-LsF29G.js";
|
|
34
34
|
import { n as logConfigUpdated } from "./logging-CRq4h04P.js";
|
|
35
35
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-DlFKDXgJ.js";
|
|
36
36
|
import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-CAmZcrDg.js";
|
package/dist/entry.js
CHANGED
|
@@ -1454,7 +1454,7 @@ if (!ensureExperimentalWarningSuppressed()) {
|
|
|
1454
1454
|
applyCliProfileEnv({ profile: parsed.profile });
|
|
1455
1455
|
process$1.argv = parsed.argv;
|
|
1456
1456
|
}
|
|
1457
|
-
import("./run-main-
|
|
1457
|
+
import("./run-main-CoC16qlB.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
|
|
1458
1458
|
console.error("[openclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
1459
1459
|
process$1.exitCode = 1;
|
|
1460
1460
|
});
|
package/dist/extensionAPI.js
CHANGED
|
@@ -4,20 +4,20 @@ import { $ as colorize, A as isPlainObject, B as shortenHomeInString, C as CONFI
|
|
|
4
4
|
import { A as isTruthyEnvValue, B as ensureAuthProfileStore, C as resolveEnvApiKey, D as resolveShellEnvFallbackTimeoutMs, F as markAuthProfileFailure, G as DEFAULT_CONTEXT_TOKENS, H as resolveOpenClawAgentDir, I as markAuthProfileUsed, K as DEFAULT_MODEL, L as resolveApiKeyForProfile, N as resolveAuthProfileOrder, P as isProfileInCooldown, R as listProfilesForProvider, S as resolveApiKeyForProvider, T as getShellPathFromLoginShell, U as normalizeSecretInput, V as resolveAuthStorePathForDisplay, W as resolveAuthProfileDisplayLabel, _ as SHENGSUANYUN_BASE_URL, a as modelKey, b as getCustomProviderApiKey, c as resolveConfiguredModelRef, d as resolveThinkingDefault, i as isCliProvider, j as parseBooleanValue$1, l as resolveDefaultModelForAgent, n as buildConfiguredAllowlistKeys, o as normalizeProviderId, q as DEFAULT_PROVIDER, r as buildModelAliasIndex, t as buildAllowedModelSet, u as resolveModelRefFromString, v as getShengSuanYunModalityModels, w as resolveModelAuthMode, x as requireApiKey, y as getApiKeyForModel, z as markAuthProfileGood } from "./model-selection-DYQRxo9K.js";
|
|
5
5
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-wCk9Fg_E.js";
|
|
6
6
|
import { n as resolveCliName, t as formatCliCommand } from "./command-format-CFzL448l.js";
|
|
7
|
-
import { A as loadWebMediaRaw, B as isSafeFenceBreak, C as parseInlineDirectives$1, D as markdownToIR, E as chunkMarkdownIR, F as chunkText, G as SILENT_REPLY_TOKEN, H as getGlobalHookRunner, I as chunkTextWithMode, K as isSilentReplyText, L as resolveChunkMode, M as chunkByNewline, N as chunkMarkdownText, O as markdownToIRWithMeta, P as chunkMarkdownTextWithMode, R as resolveTextChunkLimit, S as splitMediaFromOutput, T as wrapFetchWithAbortSignal, U as initializeGlobalHookRunner, V as parseFenceSpans, W as HEARTBEAT_TOKEN, _ as buildTargetResolverSignature, a as applyReplyThreading, b as throwIfAborted, c as shouldSuppressMessagingToolReplies, d as sendMessageSignal, f as sendReadReceiptSignal, g as streamSignalEvents, h as signalRpcRequest, i as applyReplyTagsToPayload, j as resolveMarkdownTableMode, k as loadWebMedia, l as createReplyToModeFilterForChannel, m as signalCheck, o as filterMessagingToolDuplicates, p as sendTypingSignal, r as normalizeReplyPayloadsForDelivery, s as isRenderablePayload, t as deliverOutboundPayloads, u as resolveReplyToMode, v as normalizeChannelTargetInput, w as resolveFetch, x as parseReplyDirectives, y as normalizeTargetForProvider, z as findFenceSpanAt } from "./deliver-
|
|
8
|
-
import { $ as updateLastRoute, $t as resolveSandboxConfigForAgent, A as isBillingAssistantError, An as MAX_IMAGE_BYTES, At as resolveBrowserConfig, B as isTransientHttpError, Bn as listEnabledTelegramAccounts, C as BILLING_ERROR_USER_MESSAGE, Cn as detectMime, Ct as resolveChannelGroupPolicy, D as formatRawAssistantErrorForUi, Dn as isAudioFileName, Dt as resolveGroupSessionKey, E as formatBillingErrorMessage, En as imageMimeFromFormat, Et as resolveConversationLabel, F as isFailoverErrorMessage, Fn as getChannelPlugin, G as resolveSandboxContext, Gn as resolveSlackAccount, Gt as loadWorkspaceSkillEntries, H as parseImageSizeError, Hn as resolveTelegramAccount, I as isLikelyContextOverflowError, In as listChannelPlugins, It as resizeToJpeg, Jn as normalizeChatType, Jt as assertMediaNotDataUrl, K as resolveSandboxRuntimeStatus, Kn as resolveSlackAppToken, Kt as resolveSkillsPromptForRun, L as isRateLimitAssistantError, Ln as normalizeChannelId$1, Lt as getMediaDir, M as isCompactionFailureError, Mn as mediaKindFromMime, N as isContextOverflowError, Nn as listEnabledSignalAccounts, Nt as getImageMetadata, O as getApiErrorPayloadFingerprint, On as isGifMedia, Ot as createBrowserRouteContext, P as isFailoverAssistantError, Pn as resolveSignalAccount, Q as saveSessionStore, Qt as applySkillEnvOverridesFromSnapshot, R as isRawApiErrorPayload, Rn as isWhatsAppGroupJid, Rt as saveMediaBuffer, S as isGoogleModelApi, Sn as GATEWAY_CLIENT_NAMES, St as resolveIMessageAccount, T as formatAssistantErrorText, Tn as getFileExtension, Tt as resolveChannelGroupToolsPolicy, U as sanitizeUserFacingText, Un as resolveTelegramToken, Ut as buildWorkspaceSkillCommandSpecs, V as parseImageDimensionError, Vn as listTelegramAccountIds, W as ensureSandboxWorkspaceForSession, Wn as listBindings, Wt as buildWorkspaceSkillSnapshot, X as readSessionUpdatedAt, Xn as resolveDiscordAccount, Xt as resolveSandboxedMediaSource, Y as loadSessionStore, Yn as listEnabledDiscordAccounts, Yt as assertSandboxPath, Z as recordSessionMetaFromInbound, Zn as normalizeDiscordToken, Zt as applySkillEnvOverrides, _ as sanitizeSessionMessagesImages, _n as normalizeMessageChannel, _t as resolveFreshSessionTotalTokens, a as formatXHighModelHint, an as normalizeToolName, at as deliveryContextKey, b as downgradeOpenAIReasoningBlocks, bn as GATEWAY_CLIENT_IDS, bt as getChannelDock, c as normalizeReasoningLevel, cn as buildBootstrapContextFiles, ct as normalizeSessionDeliveryFields, d as normalizeVerboseLevel, dn as sanitizeGoogleTurnOrdering, dt as evaluateSessionFreshness, en as applyOwnerOnlyToolPolicy, et as updateSessionStore, f as resolveResponseUsageMode, fn as INTERNAL_MESSAGE_CHANNEL, ft as resolveChannelResetConfig, g as normalizeTextForComparison, gn as listDeliverableMessageChannels, gt as DEFAULT_RESET_TRIGGERS, h as isMessagingToolDuplicateNormalized, hn as isMarkdownCapableMessageChannel, ht as resolveThreadFlag, i as formatThinkingLevels, in as expandToolGroups, it as deliveryContextFromSession, j as isCloudCodeAssistFormatError, jt as resolveProfile, k as isAuthAssistantError, kt as registerBrowserRoutes, l as normalizeThinkLevel, ln as ensureSessionHeader, lt as acquireSessionWriteLock, mn as isInternalMessageChannel, mt as resolveSessionResetType, n as validateGeminiTurns, nn as collectExplicitAllowlist, nt as isCacheEnabled, o as listThinkingLevels, on as resolveToolProfilePolicy, ot as mergeDeliveryContext, p as supportsXHighThinking, pn as isDeliverableMessageChannel, pt as resolveSessionResetPolicy, q as appendAssistantMessageToSessionTranscript, qn as resolveSlackBotToken, qt as resolvePluginSkillDirs, r as pickFallbackThinkingLevel, rn as expandPolicyWithPluginGroups, rt as resolveCacheTtlMs$1, s as normalizeElevatedLevel, sn as stripPluginOnlyAllowlist, st as normalizeDeliveryContext, t as validateAnthropicTurns, tn as buildPluginToolGroups, tt as updateSessionStoreEntry, u as normalizeUsageDisplay, un as resolveBootstrapMaxChars, ut as resolveSessionKey$1, v as sanitizeImageBlocks, vn as resolveGatewayMessageChannel, vt as resolveMainSessionKey, w as classifyFailoverReason, wn as extensionForMime, wt as resolveChannelGroupRequireMention, x as isAntigravityClaude, xn as GATEWAY_CLIENT_MODES, xt as listChannelDocks, y as sanitizeToolResultImages, yn as resolveMessageChannel, yt as deriveSessionMetaPatch, z as isTimeoutErrorMessage, zn as normalizeWhatsAppTarget, zt as SsrFBlockedError } from "./pi-embedded-helpers-
|
|
7
|
+
import { A as loadWebMediaRaw, B as isSafeFenceBreak, C as parseInlineDirectives$1, D as markdownToIR, E as chunkMarkdownIR, F as chunkText, G as SILENT_REPLY_TOKEN, H as getGlobalHookRunner, I as chunkTextWithMode, K as isSilentReplyText, L as resolveChunkMode, M as chunkByNewline, N as chunkMarkdownText, O as markdownToIRWithMeta, P as chunkMarkdownTextWithMode, R as resolveTextChunkLimit, S as splitMediaFromOutput, T as wrapFetchWithAbortSignal, U as initializeGlobalHookRunner, V as parseFenceSpans, W as HEARTBEAT_TOKEN, _ as buildTargetResolverSignature, a as applyReplyThreading, b as throwIfAborted, c as shouldSuppressMessagingToolReplies, d as sendMessageSignal, f as sendReadReceiptSignal, g as streamSignalEvents, h as signalRpcRequest, i as applyReplyTagsToPayload, j as resolveMarkdownTableMode, k as loadWebMedia, l as createReplyToModeFilterForChannel, m as signalCheck, o as filterMessagingToolDuplicates, p as sendTypingSignal, r as normalizeReplyPayloadsForDelivery, s as isRenderablePayload, t as deliverOutboundPayloads, u as resolveReplyToMode, v as normalizeChannelTargetInput, w as resolveFetch, x as parseReplyDirectives, y as normalizeTargetForProvider, z as findFenceSpanAt } from "./deliver-Cfwk8SNA.js";
|
|
8
|
+
import { $ as updateLastRoute, $t as resolveSandboxConfigForAgent, A as isBillingAssistantError, An as MAX_IMAGE_BYTES, At as resolveBrowserConfig, B as isTransientHttpError, Bn as listEnabledTelegramAccounts, C as BILLING_ERROR_USER_MESSAGE, Cn as detectMime, Ct as resolveChannelGroupPolicy, D as formatRawAssistantErrorForUi, Dn as isAudioFileName, Dt as resolveGroupSessionKey, E as formatBillingErrorMessage, En as imageMimeFromFormat, Et as resolveConversationLabel, F as isFailoverErrorMessage, Fn as getChannelPlugin, G as resolveSandboxContext, Gn as resolveSlackAccount, Gt as loadWorkspaceSkillEntries, H as parseImageSizeError, Hn as resolveTelegramAccount, I as isLikelyContextOverflowError, In as listChannelPlugins, It as resizeToJpeg, Jn as normalizeChatType, Jt as assertMediaNotDataUrl, K as resolveSandboxRuntimeStatus, Kn as resolveSlackAppToken, Kt as resolveSkillsPromptForRun, L as isRateLimitAssistantError, Ln as normalizeChannelId$1, Lt as getMediaDir, M as isCompactionFailureError, Mn as mediaKindFromMime, N as isContextOverflowError, Nn as listEnabledSignalAccounts, Nt as getImageMetadata, O as getApiErrorPayloadFingerprint, On as isGifMedia, Ot as createBrowserRouteContext, P as isFailoverAssistantError, Pn as resolveSignalAccount, Q as saveSessionStore, Qt as applySkillEnvOverridesFromSnapshot, R as isRawApiErrorPayload, Rn as isWhatsAppGroupJid, Rt as saveMediaBuffer, S as isGoogleModelApi, Sn as GATEWAY_CLIENT_NAMES, St as resolveIMessageAccount, T as formatAssistantErrorText, Tn as getFileExtension, Tt as resolveChannelGroupToolsPolicy, U as sanitizeUserFacingText, Un as resolveTelegramToken, Ut as buildWorkspaceSkillCommandSpecs, V as parseImageDimensionError, Vn as listTelegramAccountIds, W as ensureSandboxWorkspaceForSession, Wn as listBindings, Wt as buildWorkspaceSkillSnapshot, X as readSessionUpdatedAt, Xn as resolveDiscordAccount, Xt as resolveSandboxedMediaSource, Y as loadSessionStore, Yn as listEnabledDiscordAccounts, Yt as assertSandboxPath, Z as recordSessionMetaFromInbound, Zn as normalizeDiscordToken, Zt as applySkillEnvOverrides, _ as sanitizeSessionMessagesImages, _n as normalizeMessageChannel, _t as resolveFreshSessionTotalTokens, a as formatXHighModelHint, an as normalizeToolName, at as deliveryContextKey, b as downgradeOpenAIReasoningBlocks, bn as GATEWAY_CLIENT_IDS, bt as getChannelDock, c as normalizeReasoningLevel, cn as buildBootstrapContextFiles, ct as normalizeSessionDeliveryFields, d as normalizeVerboseLevel, dn as sanitizeGoogleTurnOrdering, dt as evaluateSessionFreshness, en as applyOwnerOnlyToolPolicy, et as updateSessionStore, f as resolveResponseUsageMode, fn as INTERNAL_MESSAGE_CHANNEL, ft as resolveChannelResetConfig, g as normalizeTextForComparison, gn as listDeliverableMessageChannels, gt as DEFAULT_RESET_TRIGGERS, h as isMessagingToolDuplicateNormalized, hn as isMarkdownCapableMessageChannel, ht as resolveThreadFlag, i as formatThinkingLevels, in as expandToolGroups, it as deliveryContextFromSession, j as isCloudCodeAssistFormatError, jt as resolveProfile, k as isAuthAssistantError, kt as registerBrowserRoutes, l as normalizeThinkLevel, ln as ensureSessionHeader, lt as acquireSessionWriteLock, mn as isInternalMessageChannel, mt as resolveSessionResetType, n as validateGeminiTurns, nn as collectExplicitAllowlist, nt as isCacheEnabled, o as listThinkingLevels, on as resolveToolProfilePolicy, ot as mergeDeliveryContext, p as supportsXHighThinking, pn as isDeliverableMessageChannel, pt as resolveSessionResetPolicy, q as appendAssistantMessageToSessionTranscript, qn as resolveSlackBotToken, qt as resolvePluginSkillDirs, r as pickFallbackThinkingLevel, rn as expandPolicyWithPluginGroups, rt as resolveCacheTtlMs$1, s as normalizeElevatedLevel, sn as stripPluginOnlyAllowlist, st as normalizeDeliveryContext, t as validateAnthropicTurns, tn as buildPluginToolGroups, tt as updateSessionStoreEntry, u as normalizeUsageDisplay, un as resolveBootstrapMaxChars, ut as resolveSessionKey$1, v as sanitizeImageBlocks, vn as resolveGatewayMessageChannel, vt as resolveMainSessionKey, w as classifyFailoverReason, wn as extensionForMime, wt as resolveChannelGroupRequireMention, x as isAntigravityClaude, xn as GATEWAY_CLIENT_MODES, xt as listChannelDocks, y as sanitizeToolResultImages, yn as resolveMessageChannel, yt as deriveSessionMetaPatch, z as isTimeoutErrorMessage, zn as normalizeWhatsAppTarget, zt as SsrFBlockedError } from "./pi-embedded-helpers-BIzZ1S6e.js";
|
|
9
9
|
import { A as VERSION, B as webAuthExists, C as setConfigOverride, D as setConfigValueAtPath, E as parseConfigPath, I as readWebSelfId, M as getWebAuthAgeMs, N as logWebSelfId, O as unsetConfigValueAtPath, P as logoutWeb, S as resetConfigOverrides, T as getConfigValueAtPath, _ as applyTestPluginDefaults, a as validateConfigObjectWithPlugins, b as resolveMemorySlotDecision, c as normalizeTelegramCommandName, d as parseDurationMs, f as validateJsonSchemaValue, i as writeConfigFile, j as resolveWhatsAppAccount, k as resolveAgentMaxConcurrent, l as resolveTelegramCustomCommands, m as discoverOpenClawPlugins, n as readConfigFileSnapshot, p as loadPluginManifestRegistry, r as resolveConfigSnapshotHash, s as TELEGRAM_COMMAND_NAME_PATTERN, t as loadConfig, u as isSafeExecutableValue, v as normalizePluginsConfig, w as unsetConfigOverride, x as getConfigOverrides, y as resolveEnableState } from "./config-B7W10B0P.js";
|
|
10
10
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-EhM2JAQo.js";
|
|
11
|
-
import { S as pickPrimaryTailnetIPv4, T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer, x as pickPrimaryLanIPv4, y as rawDataToString } from "./chrome-
|
|
11
|
+
import { S as pickPrimaryTailnetIPv4, T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer, x as pickPrimaryLanIPv4, y as rawDataToString } from "./chrome-DL0avO8n.js";
|
|
12
12
|
import { n as formatErrorMessage, r as formatUncaughtError, t as extractErrorCode } from "./errors-dpUbQseI.js";
|
|
13
13
|
import { a as resolveSessionTranscriptsDirForAgent, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveStorePath, r as resolveSessionFilePathOptions } from "./paths-BSvO0qdk.js";
|
|
14
14
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BrkSiEN9.js";
|
|
15
|
-
import { _ as stripThinkingTagsFromText, a as decodeDataUrl, b as ensureOpenClawModelsJson, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractAssistantThinking, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as resolveToolDisplay, y as stripReasoningTagsFromText } from "./image-
|
|
15
|
+
import { _ as stripThinkingTagsFromText, a as decodeDataUrl, b as ensureOpenClawModelsJson, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractAssistantThinking, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as resolveToolDisplay, y as stripReasoningTagsFromText } from "./image-BE3W5CBO.js";
|
|
16
16
|
import { i as resolveMemorySearchConfig, n as resolveRetryConfig, r as retryAsync } from "./manager-DkmC4noL.js";
|
|
17
17
|
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-Cx4BZXnU.js";
|
|
18
18
|
import { t as redactSensitiveText } from "./redact-BIMJ3ntQ.js";
|
|
19
|
-
import { i as fetchWithSsrFGuard, r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-
|
|
20
|
-
import { _ as applyTemplate, a as runCapability, c as modelSupportsVision, d as registerUnhandledRejectionHandler, f as resolveConcurrency, g as CLI_OUTPUT_MAX_BUFFER, h as resolveMediaUnderstandingScope, i as resolveAutoImageModel, m as normalizeMediaUnderstandingChatType, n as createMediaAttachmentCache, o as findModelInCatalog, p as resolveTimeoutMs$1, r as normalizeMediaAttachments, s as loadModelCatalog, t as buildProviderRegistry, u as resolveAttachmentKind } from "./runner-
|
|
19
|
+
import { i as fetchWithSsrFGuard, r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-ZWIvvTQK.js";
|
|
20
|
+
import { _ as applyTemplate, a as runCapability, c as modelSupportsVision, d as registerUnhandledRejectionHandler, f as resolveConcurrency, g as CLI_OUTPUT_MAX_BUFFER, h as resolveMediaUnderstandingScope, i as resolveAutoImageModel, m as normalizeMediaUnderstandingChatType, n as createMediaAttachmentCache, o as findModelInCatalog, p as resolveTimeoutMs$1, r as normalizeMediaAttachments, s as loadModelCatalog, t as buildProviderRegistry, u as resolveAttachmentKind } from "./runner-BlBPOkt7.js";
|
|
21
21
|
import { a as formatError$1, i as createWaSocket, n as startWebLoginWithQr, o as getStatusCode$1, r as waitForWebLogin, s as waitForWaConnection } from "./login-qr-Dzh1IX4z.js";
|
|
22
22
|
import { createRequire } from "node:module";
|
|
23
23
|
import * as path$1 from "node:path";
|
|
@@ -38,7 +38,7 @@ import { EdgeTTS } from "node-edge-tts";
|
|
|
38
38
|
import AjvPkg from "ajv";
|
|
39
39
|
import { createServer } from "node:http";
|
|
40
40
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
41
|
-
import { WebSocket
|
|
41
|
+
import { WebSocket } from "ws";
|
|
42
42
|
import * as net$1 from "node:net";
|
|
43
43
|
import net from "node:net";
|
|
44
44
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
@@ -8149,7 +8149,7 @@ var GatewayClient = class {
|
|
|
8149
8149
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
8150
8150
|
});
|
|
8151
8151
|
}
|
|
8152
|
-
this.ws = new WebSocket
|
|
8152
|
+
this.ws = new WebSocket(url, wsOptions);
|
|
8153
8153
|
this.ws.on("open", () => {
|
|
8154
8154
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
8155
8155
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -8353,7 +8353,7 @@ var GatewayClient = class {
|
|
|
8353
8353
|
return null;
|
|
8354
8354
|
}
|
|
8355
8355
|
async request(method, params, opts) {
|
|
8356
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
8356
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
8357
8357
|
const id = randomUUID();
|
|
8358
8358
|
const frame = {
|
|
8359
8359
|
type: "req",
|
|
@@ -9275,7 +9275,7 @@ async function routeReply(params) {
|
|
|
9275
9275
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
9276
9276
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
9277
9277
|
try {
|
|
9278
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
9278
|
+
const { deliverOutboundPayloads } = await import("./deliver-Cfwk8SNA.js").then((n) => n.n);
|
|
9279
9279
|
return {
|
|
9280
9280
|
ok: true,
|
|
9281
9281
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -39595,7 +39595,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
39595
39595
|
return;
|
|
39596
39596
|
}
|
|
39597
39597
|
try {
|
|
39598
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
39598
|
+
const { deliverOutboundPayloads } = await import("./deliver-Cfwk8SNA.js").then((n) => n.n);
|
|
39599
39599
|
await deliverOutboundPayloads({
|
|
39600
39600
|
cfg: params.cfg,
|
|
39601
39601
|
channel,
|
|
@@ -44662,7 +44662,7 @@ async function describeStickerImage(params) {
|
|
|
44662
44662
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
44663
44663
|
try {
|
|
44664
44664
|
const buffer = await fs$1.readFile(imagePath);
|
|
44665
|
-
const { describeImageWithModel } = await import("./image-
|
|
44665
|
+
const { describeImageWithModel } = await import("./image-BE3W5CBO.js").then((n) => n.n);
|
|
44666
44666
|
return (await describeImageWithModel({
|
|
44667
44667
|
buffer,
|
|
44668
44668
|
fileName: "sticker.webp",
|
|
@@ -48954,7 +48954,7 @@ async function preflightDiscordMessage(params) {
|
|
|
48954
48954
|
let preflightTranscript;
|
|
48955
48955
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
48956
48956
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
48957
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
48957
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-H6j5U0KI.js");
|
|
48958
48958
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
48959
48959
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
48960
48960
|
ctx: {
|
|
@@ -59577,7 +59577,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
|
|
|
59577
59577
|
let preflightTranscript;
|
|
59578
59578
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
59579
59579
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
59580
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
59580
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-H6j5U0KI.js");
|
|
59581
59581
|
preflightTranscript = await transcribeFirstAudio({
|
|
59582
59582
|
ctx: {
|
|
59583
59583
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as logWarn } from "./exec-CJFFoM7H.js";
|
|
2
|
-
import { Bt as closeDispatcher, Cn as detectMime, Ht as resolvePinnedHostnameWithPolicy, Vt as createPinnedDispatcher, wn as extensionForMime, zt as SsrFBlockedError } from "./pi-embedded-helpers-
|
|
2
|
+
import { Bt as closeDispatcher, Cn as detectMime, Ht as resolvePinnedHostnameWithPolicy, Vt as createPinnedDispatcher, wn as extensionForMime, zt as SsrFBlockedError } from "./pi-embedded-helpers-BIzZ1S6e.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/net/fetch-guard.ts
|
|
@@ -64,8 +64,8 @@ import { n as runCommandWithRuntime } from "./cli-utils-LcHOt63h.js";
|
|
|
64
64
|
import "./pairing-labels-B79qs8YT.js";
|
|
65
65
|
import { t as buildChannelAccountSnapshot } from "./status-CoAy6bEC.js";
|
|
66
66
|
import "./channels-status-issues-B8Y1nkIX.js";
|
|
67
|
-
import "./register.subclis-
|
|
68
|
-
import "./completion-cli-
|
|
67
|
+
import "./register.subclis-RSfGxYNZ.js";
|
|
68
|
+
import "./completion-cli-Bh5I8KKW.js";
|
|
69
69
|
import { n as createOutboundSendDeps, t as createDefaultDeps } from "./deps-DT6W1A83.js";
|
|
70
70
|
import "./daemon-runtime-N8YAnttH.js";
|
|
71
71
|
import "./service-DVi9-qHB.js";
|
|
@@ -79,11 +79,11 @@ import { a as toOptionString, i as parsePort$1, n as extractGatewayMiskeys, r as
|
|
|
79
79
|
import { i as probeGateway } from "./audit-CYu83z-9.js";
|
|
80
80
|
import { S as discoverGatewayBeacons, n as installSkill } from "./onboard-skills-DnHguAep.js";
|
|
81
81
|
import { a as resolveControlUiRootOverrideSync, c as getHealthSnapshot, d as runHeartbeatOnce, f as setHeartbeatsEnabled, n as ensureControlUiAssetsBuilt, o as resolveControlUiRootSync, p as startHeartbeatRunner, s as formatHealthChannelLines } from "./health-format-CZ--pwnE.js";
|
|
82
|
-
import { S as normalizeUpdateChannel, _ as resolveNpmChannelTag, h as compareSemverStrings, m as checkUpdateStatus, t as runGatewayUpdate, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-
|
|
82
|
+
import { S as normalizeUpdateChannel, _ as resolveNpmChannelTag, h as compareSemverStrings, m as checkUpdateStatus, t as runGatewayUpdate, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-x-LsF29G.js";
|
|
83
83
|
import "./github-copilot-auth-B60M4Pk2.js";
|
|
84
84
|
import "./logging-CRq4h04P.js";
|
|
85
85
|
import { i as shouldIncludeHook, n as loadWorkspaceHookEntries, r as resolveHookConfig } from "./hooks-status-mYce18XT.js";
|
|
86
|
-
import { a as findAgentEntryIndex, c as pruneAgentConfig, f as runOnboardingWizard, n as getStatusSummary, o as listAgentEntries, r as applyAgentConfig, s as loadAgentIdentity, u as loadAgentIdentityFromWorkspace } from "./status-
|
|
86
|
+
import { a as findAgentEntryIndex, c as pruneAgentConfig, f as runOnboardingWizard, n as getStatusSummary, o as listAgentEntries, r as applyAgentConfig, s as loadAgentIdentity, u as loadAgentIdentityFromWorkspace } from "./status-D7wvJfkI.js";
|
|
87
87
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-DlFKDXgJ.js";
|
|
88
88
|
import "./tui-b6JyR0_t.js";
|
|
89
89
|
import { i as setGatewayWsLogStyle, n as logWs, r as summarizeAgentEventForWsLog, t as formatForLog } from "./ws-log-CIXbLCka.js";
|
|
@@ -59,7 +59,7 @@ import { n as resolveMessageChannelSelection } from "./channel-selection-ChpuaGX
|
|
|
59
59
|
import { n as createOutboundSendDeps, t as createDefaultDeps } from "./deps-DFUmprQ6.js";
|
|
60
60
|
import { t as ensureOpenClawCliOnPath } from "./path-env-CaYUVIML.js";
|
|
61
61
|
import "./daemon-runtime-iSrznGok.js";
|
|
62
|
-
import { c as loadAgentIdentity, d as loadAgentIdentityFromWorkspace, i as applyAgentConfig, l as pruneAgentConfig, o as findAgentEntryIndex, p as forceFreePortAndWait, r as getStatusSummary, s as listAgentEntries, t as runOnboardingWizard } from "./onboarding-
|
|
62
|
+
import { c as loadAgentIdentity, d as loadAgentIdentityFromWorkspace, i as applyAgentConfig, l as pruneAgentConfig, o as findAgentEntryIndex, p as forceFreePortAndWait, r as getStatusSummary, s as listAgentEntries, t as runOnboardingWizard } from "./onboarding-FiHTLDne.js";
|
|
63
63
|
import { t as resolveChannelDefaultAccountId } from "./helpers-HyeZXsnu.js";
|
|
64
64
|
import "./logging-BAyPwvdH.js";
|
|
65
65
|
import "./note-BhRSeNeu.js";
|
|
@@ -72,7 +72,7 @@ import "./archive-beaSfAzA.js";
|
|
|
72
72
|
import "./skill-scanner-CucvxYhu.js";
|
|
73
73
|
import "./installs-DscWb9b9.js";
|
|
74
74
|
import { a as resolveControlUiRootOverrideSync, c as getHealthSnapshot, d as runHeartbeatOnce, f as setHeartbeatsEnabled, n as ensureControlUiAssetsBuilt, o as resolveControlUiRootSync, p as startHeartbeatRunner, s as formatHealthChannelLines } from "./health-format-kTD3mmIm.js";
|
|
75
|
-
import { S as normalizeUpdateChannel, _ as resolveNpmChannelTag, h as compareSemverStrings, m as checkUpdateStatus, t as runGatewayUpdate, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-
|
|
75
|
+
import { S as normalizeUpdateChannel, _ as resolveNpmChannelTag, h as compareSemverStrings, m as checkUpdateStatus, t as runGatewayUpdate, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-fgGnSCWB.js";
|
|
76
76
|
import { i as probeGateway } from "./audit-CUmgk0Zg.js";
|
|
77
77
|
import "./table-B8dx3v4v.js";
|
|
78
78
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-CVjDLqne.js";
|
|
@@ -81,7 +81,7 @@ import "./systemd-DrmBtJ5T.js";
|
|
|
81
81
|
import "./service-audit-BKZxDDMk.js";
|
|
82
82
|
import "./node-service-Dkjve8e3.js";
|
|
83
83
|
import "./channels-status-issues-BZM5SM_X.js";
|
|
84
|
-
import "./completion-cli-
|
|
84
|
+
import "./completion-cli-CcaE0pUj.js";
|
|
85
85
|
import { a as createOutboundSendDeps$1, i as resolveAgentOutboundTarget, r as resolveAgentDeliveryPlan, t as agentCommand } from "./agent-DkJ7dZl8.js";
|
|
86
86
|
import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } from "./widearea-dns-DzuRdwk5.js";
|
|
87
87
|
import { i as shouldIncludeHook, n as loadWorkspaceHookEntries, r as resolveHookConfig } from "./hooks-status-D5px3C3Y.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { B as shortenHomeInString, j as isRecord } from "./exec-CJFFoM7H.js";
|
|
3
3
|
import { H as resolveOpenClawAgentDir, U as normalizeSecretInput, g as resolveImplicitProviders, h as resolveImplicitCopilotProvider, m as resolveImplicitBedrockProvider, p as normalizeProviders, x as requireApiKey, y as getApiKeyForModel } from "./model-selection-DYQRxo9K.js";
|
|
4
|
-
import { U as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
4
|
+
import { U as sanitizeUserFacingText } from "./pi-embedded-helpers-BIzZ1S6e.js";
|
|
5
5
|
import { t as loadConfig } from "./config-B7W10B0P.js";
|
|
6
6
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-EhM2JAQo.js";
|
|
7
7
|
import { n as redactToolDetail } from "./redact-BIMJ3ntQ.js";
|
package/dist/index.js
CHANGED
|
@@ -56,7 +56,7 @@ import { t as createDefaultDeps } from "./deps-DFUmprQ6.js";
|
|
|
56
56
|
import { t as isMainModule } from "./is-main-BWoXGz7p.js";
|
|
57
57
|
import { t as ensureOpenClawCliOnPath } from "./path-env-CaYUVIML.js";
|
|
58
58
|
import { a as gatewayInstallErrorHint, g as assertSupportedRuntime, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-iSrznGok.js";
|
|
59
|
-
import { a as buildAgentSummaries, c as loadAgentIdentity, f as parseIdentityMarkdown, i as applyAgentConfig, l as pruneAgentConfig, n as statusCommand, o as findAgentEntryIndex, s as listAgentEntries, t as runOnboardingWizard, u as identityHasValues } from "./onboarding-
|
|
59
|
+
import { a as buildAgentSummaries, c as loadAgentIdentity, f as parseIdentityMarkdown, i as applyAgentConfig, l as pruneAgentConfig, n as statusCommand, o as findAgentEntryIndex, s as listAgentEntries, t as runOnboardingWizard, u as identityHasValues } from "./onboarding-FiHTLDne.js";
|
|
60
60
|
import { t as resolveChannelDefaultAccountId } from "./helpers-HyeZXsnu.js";
|
|
61
61
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-BAyPwvdH.js";
|
|
62
62
|
import "./note-BhRSeNeu.js";
|
|
@@ -70,7 +70,7 @@ import "./archive-beaSfAzA.js";
|
|
|
70
70
|
import "./skill-scanner-CucvxYhu.js";
|
|
71
71
|
import "./installs-DscWb9b9.js";
|
|
72
72
|
import { l as healthCommand } from "./health-format-kTD3mmIm.js";
|
|
73
|
-
import "./update-runner-
|
|
73
|
+
import "./update-runner-fgGnSCWB.js";
|
|
74
74
|
import "./audit-CUmgk0Zg.js";
|
|
75
75
|
import { t as renderTable } from "./table-B8dx3v4v.js";
|
|
76
76
|
import "./skills-status-CVjDLqne.js";
|
|
@@ -79,7 +79,7 @@ import { r as isSystemdUserServiceAvailable } from "./systemd-DrmBtJ5T.js";
|
|
|
79
79
|
import "./service-audit-BKZxDDMk.js";
|
|
80
80
|
import "./node-service-Dkjve8e3.js";
|
|
81
81
|
import "./channels-status-issues-BZM5SM_X.js";
|
|
82
|
-
import { c as registerSubCliCommands, d as getPositiveIntFlagValue, f as getVerboseFlag, l as getCommandPath, m as hasHelpOrVersion, p as hasFlag, u as getFlagValue } from "./completion-cli-
|
|
82
|
+
import { c as registerSubCliCommands, d as getPositiveIntFlagValue, f as getVerboseFlag, l as getCommandPath, m as hasHelpOrVersion, p as hasFlag, u as getFlagValue } from "./completion-cli-CcaE0pUj.js";
|
|
83
83
|
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-BSDURAX_.js";
|
|
84
84
|
import { t as formatHelpExamples } from "./help-format-C48TXngO.js";
|
|
85
85
|
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-DkJ7dZl8.js";
|
|
@@ -89,7 +89,7 @@ import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCo
|
|
|
89
89
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-NC2kl1SC.js";
|
|
90
90
|
import "./widearea-dns-DzuRdwk5.js";
|
|
91
91
|
import "./auth-health-CMuCsJTt.js";
|
|
92
|
-
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-
|
|
92
|
+
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-BLN7IPI4.js";
|
|
93
93
|
import "./hooks-status-D5px3C3Y.js";
|
|
94
94
|
import "./tui-BNFWBg77.js";
|
|
95
95
|
import process$1 from "node:process";
|
|
@@ -25,7 +25,7 @@ import { t as WizardCancelledError } from "./prompts-Bg96reub.js";
|
|
|
25
25
|
import { S as promptAuthChoiceGrouped, _ as applyAuthChoice, c as promptCustomApiConfig, f as applyPrimaryModel, g as warnIfModelConfigLooksOff, h as resolvePreferredProviderForAuthChoice, p as promptDefaultModel, r as promptRemoteGatewayConfig, t as setupSkills } from "./onboard-skills-gWje1Dwu.js";
|
|
26
26
|
import { n as setupChannels } from "./onboard-channels-C0RLYPhJ.js";
|
|
27
27
|
import { l as healthCommand, n as ensureControlUiAssetsBuilt, s as formatHealthChannelLines, t as formatHealthCheckFailure, u as resolveHeartbeatSummaryForAgent } from "./health-format-kTD3mmIm.js";
|
|
28
|
-
import { C as resolveEffectiveUpdateChannel, S as normalizeUpdateChannel, d as formatUpdateOneLiner, f as getUpdateCheckResult, h as compareSemverStrings, l as ensureCompletionCacheExists, m as checkUpdateStatus, p as resolveUpdateAvailability, s as checkShellCompletionStatus, u as formatUpdateAvailableHint, x as formatUpdateChannelLabel } from "./update-runner-
|
|
28
|
+
import { C as resolveEffectiveUpdateChannel, S as normalizeUpdateChannel, d as formatUpdateOneLiner, f as getUpdateCheckResult, h as compareSemverStrings, l as ensureCompletionCacheExists, m as checkUpdateStatus, p as resolveUpdateAvailability, s as checkShellCompletionStatus, u as formatUpdateAvailableHint, x as formatUpdateChannelLabel } from "./update-runner-fgGnSCWB.js";
|
|
29
29
|
import { i as probeGateway, t as runSecurityAudit } from "./audit-CUmgk0Zg.js";
|
|
30
30
|
import { t as renderTable } from "./table-B8dx3v4v.js";
|
|
31
31
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-CVjDLqne.js";
|
|
@@ -35,7 +35,7 @@ import { o as readLastGatewayErrorLine } from "./service-audit-BKZxDDMk.js";
|
|
|
35
35
|
import { t as resolveNodeService } from "./node-service-Dkjve8e3.js";
|
|
36
36
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-BZM5SM_X.js";
|
|
37
37
|
import { n as redactSecrets, t as formatGatewayAuthUsed } from "./format-DcfK-dwd.js";
|
|
38
|
-
import { r as installCompletion } from "./completion-cli-
|
|
38
|
+
import { r as installCompletion } from "./completion-cli-CcaE0pUj.js";
|
|
39
39
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-D5px3C3Y.js";
|
|
40
40
|
import { t as runTui } from "./tui-BNFWBg77.js";
|
|
41
41
|
import fs from "node:fs";
|
|
@@ -4,7 +4,7 @@ import { C as CONFIG_DIR, I as resolveConfigDir, O as escapeRegExp, P as normali
|
|
|
4
4
|
import { A as isTruthyEnvValue, j as parseBooleanValue } from "./model-selection-DYQRxo9K.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-CFzL448l.js";
|
|
6
6
|
import { b as resolveMemorySlotDecision, d as parseDurationMs, g as MANIFEST_KEY, h as LEGACY_MANIFEST_KEYS, i as writeConfigFile, j as resolveWhatsAppAccount, o as parseByteSize, p as loadPluginManifestRegistry, t as loadConfig, v as normalizePluginsConfig, y as resolveEnableState } from "./config-B7W10B0P.js";
|
|
7
|
-
import { A as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, C as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, D as DEFAULT_BROWSER_EVALUATE_ENABLED, E as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, O as DEFAULT_OPENCLAW_BROWSER_COLOR, T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer, a as resolveOpenClawUserDataDir, b as isLoopbackHost, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, h as getHeadersWithAuth, i as launchOpenClawChrome, k as DEFAULT_OPENCLAW_BROWSER_ENABLED, l as createTargetViaCdp, n as isChromeCdpReady, o as stopOpenClawChrome, p as appendCdpPath, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as stopChromeExtensionRelayServer, w as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS } from "./chrome-
|
|
7
|
+
import { A as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, C as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, D as DEFAULT_BROWSER_EVALUATE_ENABLED, E as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, O as DEFAULT_OPENCLAW_BROWSER_COLOR, T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer, a as resolveOpenClawUserDataDir, b as isLoopbackHost, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, h as getHeadersWithAuth, i as launchOpenClawChrome, k as DEFAULT_OPENCLAW_BROWSER_ENABLED, l as createTargetViaCdp, n as isChromeCdpReady, o as stopOpenClawChrome, p as appendCdpPath, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as stopChromeExtensionRelayServer, w as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS } from "./chrome-DL0avO8n.js";
|
|
8
8
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-dpUbQseI.js";
|
|
9
9
|
import { n as resolveSessionFilePath, t as resolveDefaultSessionStorePath } from "./paths-BSvO0qdk.js";
|
|
10
10
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BrkSiEN9.js";
|
|
@@ -2175,7 +2175,7 @@ function isModuleNotFoundError(err) {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
async function loadPwAiModule(mode) {
|
|
2177
2177
|
try {
|
|
2178
|
-
return await import("./pw-ai-
|
|
2178
|
+
return await import("./pw-ai-sS1fRKW_.js");
|
|
2179
2179
|
} catch (err) {
|
|
2180
2180
|
if (mode === "soft") return null;
|
|
2181
2181
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -5014,11 +5014,11 @@ function createProfileContext(opts, profile) {
|
|
|
5014
5014
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
5015
5015
|
const profileState = getProfileState();
|
|
5016
5016
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
5017
|
-
await (await import("./pw-ai-
|
|
5017
|
+
await (await import("./pw-ai-sS1fRKW_.js")).closePlaywrightBrowserConnection();
|
|
5018
5018
|
} catch {}
|
|
5019
5019
|
if (profileState.running) await stopRunningBrowser();
|
|
5020
5020
|
try {
|
|
5021
|
-
await (await import("./pw-ai-
|
|
5021
|
+
await (await import("./pw-ai-sS1fRKW_.js")).closePlaywrightBrowserConnection();
|
|
5022
5022
|
} catch {}
|
|
5023
5023
|
if (!fs.existsSync(userDataDir)) return {
|
|
5024
5024
|
moved: false,
|
|
@@ -54,8 +54,8 @@ import "./pairing-labels-B79qs8YT.js";
|
|
|
54
54
|
import "./channels-status-issues-B8Y1nkIX.js";
|
|
55
55
|
import { n as ensurePluginRegistryLoaded } from "./command-options-DYRvCvYt.js";
|
|
56
56
|
import { n as resolveCliChannelOptions } from "./channel-options-BMb6EQmf.js";
|
|
57
|
-
import { a as getCommandPath, d as hasHelpOrVersion, l as getVerboseFlag } from "./register.subclis-
|
|
58
|
-
import "./completion-cli-
|
|
57
|
+
import { a as getCommandPath, d as hasHelpOrVersion, l as getVerboseFlag } from "./register.subclis-RSfGxYNZ.js";
|
|
58
|
+
import "./completion-cli-Bh5I8KKW.js";
|
|
59
59
|
import "./gateway-rpc-DtfOsxPK.js";
|
|
60
60
|
import "./deps-DT6W1A83.js";
|
|
61
61
|
import "./daemon-runtime-N8YAnttH.js";
|
|
@@ -67,22 +67,22 @@ import "./widearea-dns-BaIgNEhY.js";
|
|
|
67
67
|
import "./audit-CYu83z-9.js";
|
|
68
68
|
import "./onboard-skills-DnHguAep.js";
|
|
69
69
|
import "./health-format-CZ--pwnE.js";
|
|
70
|
-
import "./update-runner-
|
|
70
|
+
import "./update-runner-x-LsF29G.js";
|
|
71
71
|
import "./github-copilot-auth-B60M4Pk2.js";
|
|
72
72
|
import "./logging-CRq4h04P.js";
|
|
73
73
|
import "./hooks-status-mYce18XT.js";
|
|
74
|
-
import "./status-
|
|
74
|
+
import "./status-D7wvJfkI.js";
|
|
75
75
|
import "./skills-status-DlFKDXgJ.js";
|
|
76
76
|
import "./tui-b6JyR0_t.js";
|
|
77
77
|
import "./agent-CRIyzXmq.js";
|
|
78
78
|
import "./node-service--f_DYkaK.js";
|
|
79
79
|
import { t as forceFreePort } from "./ports-qkt29rdC.js";
|
|
80
80
|
import "./auth-health-CAmZcrDg.js";
|
|
81
|
-
import { i as hasEmittedCliBanner, n as emitCliBanner, o as registerProgramCommands, r as formatCliBannerLine, t as ensureConfigReady } from "./config-guard-
|
|
81
|
+
import { i as hasEmittedCliBanner, n as emitCliBanner, o as registerProgramCommands, r as formatCliBannerLine, t as ensureConfigReady } from "./config-guard-Dwy_SXfj.js";
|
|
82
82
|
import "./help-format-R5fLToDw.js";
|
|
83
83
|
import "./configure-CVEM7ZqO.js";
|
|
84
84
|
import "./systemd-linger-xdn3BdPh.js";
|
|
85
|
-
import "./doctor-
|
|
85
|
+
import "./doctor-mJ96-PMI.js";
|
|
86
86
|
import { Command } from "commander";
|
|
87
87
|
|
|
88
88
|
//#region src/cli/program/context.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./paths-rb94mUrR.js";
|
|
2
2
|
import { at as resolvePreferredOpenClawTmpDir } from "./exec-CJFFoM7H.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-CFzL448l.js";
|
|
4
|
-
import { d as normalizeCdpWsUrl, g as withCdpSocket, h as getHeadersWithAuth, m as fetchJson, p as appendCdpPath, t as getChromeWebSocketUrl, u as formatAriaSnapshot } from "./chrome-
|
|
4
|
+
import { d as normalizeCdpWsUrl, g as withCdpSocket, h as getHeadersWithAuth, m as fetchJson, p as appendCdpPath, t as getChromeWebSocketUrl, u as formatAriaSnapshot } from "./chrome-DL0avO8n.js";
|
|
5
5
|
import { n as formatErrorMessage } from "./errors-dpUbQseI.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -124,7 +124,7 @@ const entries = [
|
|
|
124
124
|
name: "gateway",
|
|
125
125
|
description: "网关控制",
|
|
126
126
|
register: async (program) => {
|
|
127
|
-
(await import("./gateway-cli-
|
|
127
|
+
(await import("./gateway-cli-DRTmlmrN.js")).registerGatewayCli(program);
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
{
|
|
@@ -282,14 +282,14 @@ const entries = [
|
|
|
282
282
|
name: "update",
|
|
283
283
|
description: "CLI 更新工具",
|
|
284
284
|
register: async (program) => {
|
|
285
|
-
(await import("./update-cli-
|
|
285
|
+
(await import("./update-cli-I4ys5Qke.js")).registerUpdateCli(program);
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
289
|
name: "completion",
|
|
290
290
|
description: "生成 Shell 补全脚本",
|
|
291
291
|
register: async (program) => {
|
|
292
|
-
(await import("./completion-cli-
|
|
292
|
+
(await import("./completion-cli-Bh5I8KKW.js").then((n) => n.n)).registerCompletionCli(program);
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
];
|
|
@@ -54,8 +54,8 @@ import "./login-qr-ByETC4Ze.js";
|
|
|
54
54
|
import "./pairing-labels-B79qs8YT.js";
|
|
55
55
|
import "./channels-status-issues-B8Y1nkIX.js";
|
|
56
56
|
import { n as ensurePluginRegistryLoaded } from "./command-options-DYRvCvYt.js";
|
|
57
|
-
import { a as getCommandPath, c as getPrimaryCommand, d as hasHelpOrVersion } from "./register.subclis-
|
|
58
|
-
import "./completion-cli-
|
|
57
|
+
import { a as getCommandPath, c as getPrimaryCommand, d as hasHelpOrVersion } from "./register.subclis-RSfGxYNZ.js";
|
|
58
|
+
import "./completion-cli-Bh5I8KKW.js";
|
|
59
59
|
import "./gateway-rpc-DtfOsxPK.js";
|
|
60
60
|
import "./deps-DT6W1A83.js";
|
|
61
61
|
import { h as assertSupportedRuntime } from "./daemon-runtime-N8YAnttH.js";
|
|
@@ -67,21 +67,21 @@ import "./widearea-dns-BaIgNEhY.js";
|
|
|
67
67
|
import "./audit-CYu83z-9.js";
|
|
68
68
|
import "./onboard-skills-DnHguAep.js";
|
|
69
69
|
import "./health-format-CZ--pwnE.js";
|
|
70
|
-
import "./update-runner-
|
|
70
|
+
import "./update-runner-x-LsF29G.js";
|
|
71
71
|
import "./github-copilot-auth-B60M4Pk2.js";
|
|
72
72
|
import "./logging-CRq4h04P.js";
|
|
73
73
|
import "./hooks-status-mYce18XT.js";
|
|
74
|
-
import "./status-
|
|
74
|
+
import "./status-D7wvJfkI.js";
|
|
75
75
|
import "./skills-status-DlFKDXgJ.js";
|
|
76
76
|
import "./tui-b6JyR0_t.js";
|
|
77
77
|
import "./agent-CRIyzXmq.js";
|
|
78
78
|
import "./node-service--f_DYkaK.js";
|
|
79
79
|
import "./auth-health-CAmZcrDg.js";
|
|
80
|
-
import { a as findRoutedCommand, n as emitCliBanner, t as ensureConfigReady } from "./config-guard-
|
|
80
|
+
import { a as findRoutedCommand, n as emitCliBanner, t as ensureConfigReady } from "./config-guard-Dwy_SXfj.js";
|
|
81
81
|
import "./help-format-R5fLToDw.js";
|
|
82
82
|
import "./configure-CVEM7ZqO.js";
|
|
83
83
|
import "./systemd-linger-xdn3BdPh.js";
|
|
84
|
-
import "./doctor-
|
|
84
|
+
import "./doctor-mJ96-PMI.js";
|
|
85
85
|
import path from "node:path";
|
|
86
86
|
import process$1 from "node:process";
|
|
87
87
|
import fs from "node:fs";
|
|
@@ -128,7 +128,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
128
128
|
assertSupportedRuntime();
|
|
129
129
|
if (await tryRouteCli(normalizedArgv)) return;
|
|
130
130
|
enableConsoleCapture();
|
|
131
|
-
const { buildProgram } = await import("./program-
|
|
131
|
+
const { buildProgram } = await import("./program-CDBEm6if.js");
|
|
132
132
|
const program = buildProgram();
|
|
133
133
|
installUnhandledRejectionHandler();
|
|
134
134
|
process$1.on("uncaughtException", (error) => {
|
|
@@ -138,7 +138,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
138
138
|
const parseArgv = rewriteUpdateFlagArgv(normalizedArgv);
|
|
139
139
|
const primary = getPrimaryCommand(parseArgv);
|
|
140
140
|
if (primary) {
|
|
141
|
-
const { registerSubCliByName } = await import("./register.subclis-
|
|
141
|
+
const { registerSubCliByName } = await import("./register.subclis-RSfGxYNZ.js").then((n) => n.i);
|
|
142
142
|
await registerSubCliByName(program, primary);
|
|
143
143
|
}
|
|
144
144
|
if (!(!primary && hasHelpOrVersion(parseArgv))) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { J as logVerbose, X as shouldLogVerbose, n as runExec } from "./exec-CJFFoM7H.js";
|
|
2
2
|
import { H as resolveOpenClawAgentDir, S as resolveApiKeyForProvider, f as normalizeGoogleModelId, o as normalizeProviderId, x as requireApiKey } from "./model-selection-DYQRxo9K.js";
|
|
3
|
-
import { Cn as detectMime, Dn as isAudioFileName, Jn as normalizeChatType, Tn as getFileExtension, kn as kindFromMime } from "./pi-embedded-helpers-
|
|
3
|
+
import { Cn as detectMime, Dn as isAudioFileName, Jn as normalizeChatType, Tn as getFileExtension, kn as kindFromMime } from "./pi-embedded-helpers-BIzZ1S6e.js";
|
|
4
4
|
import { t as loadConfig } from "./config-B7W10B0P.js";
|
|
5
|
-
import { b as ensureOpenClawModelsJson, t as describeImageWithModel } from "./image-
|
|
6
|
-
import { i as fetchWithSsrFGuard, n as MediaFetchError, r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-
|
|
5
|
+
import { b as ensureOpenClawModelsJson, t as describeImageWithModel } from "./image-BE3W5CBO.js";
|
|
6
|
+
import { i as fetchWithSsrFGuard, n as MediaFetchError, r as fetchRemoteMedia, t as fetchWithTimeout } from "./fetch-timeout-ZWIvvTQK.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { constants } from "node:fs";
|
|
9
9
|
import os from "node:os";
|
|
@@ -21,7 +21,7 @@ import { P as resolveFreshSessionTotalTokens, R as resolveMainSessionKey, d as l
|
|
|
21
21
|
import { r as formatDurationPrecise } from "./format-duration-Bo9zNKwO.js";
|
|
22
22
|
import { n as formatTimeAgo } from "./format-relative-CZOlQ2pA.js";
|
|
23
23
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-B8Y1nkIX.js";
|
|
24
|
-
import { r as installCompletion } from "./completion-cli-
|
|
24
|
+
import { r as installCompletion } from "./completion-cli-Bh5I8KKW.js";
|
|
25
25
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-N8YAnttH.js";
|
|
26
26
|
import { o as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-DVi9-qHB.js";
|
|
27
27
|
import { r as isSystemdUserServiceAvailable } from "./systemd-C0VZriGM.js";
|
|
@@ -30,7 +30,7 @@ import { t as renderTable } from "./table-CwulTLQp.js";
|
|
|
30
30
|
import { i as probeGateway, t as runSecurityAudit } from "./audit-CYu83z-9.js";
|
|
31
31
|
import { d as applyPrimaryModel, f as promptDefaultModel, g as applyAuthChoice, h as warnIfModelConfigLooksOff, m as resolvePreferredProviderForAuthChoice, r as promptRemoteGatewayConfig, s as promptCustomApiConfig, t as setupSkills, x as promptAuthChoiceGrouped } from "./onboard-skills-DnHguAep.js";
|
|
32
32
|
import { l as healthCommand, n as ensureControlUiAssetsBuilt, s as formatHealthChannelLines, t as formatHealthCheckFailure, u as resolveHeartbeatSummaryForAgent } from "./health-format-CZ--pwnE.js";
|
|
33
|
-
import { C as resolveEffectiveUpdateChannel, S as normalizeUpdateChannel, c as formatUpdateOneLiner, d as checkShellCompletionStatus, h as compareSemverStrings, l as getUpdateCheckResult, m as checkUpdateStatus, p as ensureCompletionCacheExists, s as formatUpdateAvailableHint, u as resolveUpdateAvailability, x as formatUpdateChannelLabel } from "./update-runner-
|
|
33
|
+
import { C as resolveEffectiveUpdateChannel, S as normalizeUpdateChannel, c as formatUpdateOneLiner, d as checkShellCompletionStatus, h as compareSemverStrings, l as getUpdateCheckResult, m as checkUpdateStatus, p as ensureCompletionCacheExists, s as formatUpdateAvailableHint, u as resolveUpdateAvailability, x as formatUpdateChannelLabel } from "./update-runner-x-LsF29G.js";
|
|
34
34
|
import { n as logConfigUpdated } from "./logging-CRq4h04P.js";
|
|
35
35
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-mYce18XT.js";
|
|
36
36
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-DlFKDXgJ.js";
|
|
@@ -58,18 +58,18 @@ import "./archive-beaSfAzA.js";
|
|
|
58
58
|
import "./skill-scanner-CucvxYhu.js";
|
|
59
59
|
import "./installs-DscWb9b9.js";
|
|
60
60
|
import "./health-format-kTD3mmIm.js";
|
|
61
|
-
import { C as resolveEffectiveUpdateChannel, S as normalizeUpdateChannel, _ as resolveNpmChannelTag, a as globalInstallArgs, b as channelToNpmTag, d as formatUpdateOneLiner, g as fetchNpmTagVersion, h as compareSemverStrings, i as detectGlobalInstallManagerForRoot, l as ensureCompletionCacheExists, m as checkUpdateStatus, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, p as resolveUpdateAvailability, r as detectGlobalInstallManagerByPresence, s as checkShellCompletionStatus, t as runGatewayUpdate, u as formatUpdateAvailableHint, v as DEFAULT_GIT_CHANNEL, x as formatUpdateChannelLabel, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-
|
|
61
|
+
import { C as resolveEffectiveUpdateChannel, S as normalizeUpdateChannel, _ as resolveNpmChannelTag, a as globalInstallArgs, b as channelToNpmTag, d as formatUpdateOneLiner, g as fetchNpmTagVersion, h as compareSemverStrings, i as detectGlobalInstallManagerForRoot, l as ensureCompletionCacheExists, m as checkUpdateStatus, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, p as resolveUpdateAvailability, r as detectGlobalInstallManagerByPresence, s as checkShellCompletionStatus, t as runGatewayUpdate, u as formatUpdateAvailableHint, v as DEFAULT_GIT_CHANNEL, x as formatUpdateChannelLabel, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-fgGnSCWB.js";
|
|
62
62
|
import { t as renderTable } from "./table-B8dx3v4v.js";
|
|
63
63
|
import "./skills-status-CVjDLqne.js";
|
|
64
64
|
import "./service-_k92xd0b.js";
|
|
65
65
|
import "./systemd-DrmBtJ5T.js";
|
|
66
66
|
import "./service-audit-BKZxDDMk.js";
|
|
67
67
|
import "./channels-status-issues-BZM5SM_X.js";
|
|
68
|
-
import { r as installCompletion } from "./completion-cli-
|
|
68
|
+
import { r as installCompletion } from "./completion-cli-CcaE0pUj.js";
|
|
69
69
|
import { t as formatHelpExamples } from "./help-format-C48TXngO.js";
|
|
70
70
|
import "./systemd-linger-NC2kl1SC.js";
|
|
71
71
|
import "./auth-health-CMuCsJTt.js";
|
|
72
|
-
import { t as doctorCommand } from "./doctor-
|
|
72
|
+
import { t as doctorCommand } from "./doctor-BLN7IPI4.js";
|
|
73
73
|
import "./shared-CDZqQyn6.js";
|
|
74
74
|
import { r as runDaemonRestart } from "./daemon-cli-DHyesS5N.js";
|
|
75
75
|
import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from "./update-DHVxMTpQ.js";
|
|
@@ -142,7 +142,7 @@ const UPDATE_QUIPS = [
|
|
|
142
142
|
];
|
|
143
143
|
const MAX_LOG_CHARS = 8e3;
|
|
144
144
|
const DEFAULT_PACKAGE_NAME = "openclaw";
|
|
145
|
-
const CORE_PACKAGE_NAMES = new Set([DEFAULT_PACKAGE_NAME]);
|
|
145
|
+
const CORE_PACKAGE_NAMES = new Set([DEFAULT_PACKAGE_NAME, "@qingchencloud/openclaw-zh"]);
|
|
146
146
|
const CLI_NAME = resolveCliName();
|
|
147
147
|
const OPENCLAW_REPO_URL = "https://github.com/openclaw/openclaw.git";
|
|
148
148
|
function normalizeTag(value) {
|
|
@@ -52,8 +52,8 @@ import "./pairing-store-BWxRFAek.js";
|
|
|
52
52
|
import "./login-qr-ByETC4Ze.js";
|
|
53
53
|
import "./pairing-labels-B79qs8YT.js";
|
|
54
54
|
import "./channels-status-issues-B8Y1nkIX.js";
|
|
55
|
-
import "./register.subclis-
|
|
56
|
-
import { r as installCompletion } from "./completion-cli-
|
|
55
|
+
import "./register.subclis-RSfGxYNZ.js";
|
|
56
|
+
import { r as installCompletion } from "./completion-cli-Bh5I8KKW.js";
|
|
57
57
|
import "./deps-DT6W1A83.js";
|
|
58
58
|
import { g as parseSemver } from "./daemon-runtime-N8YAnttH.js";
|
|
59
59
|
import "./service-DVi9-qHB.js";
|
|
@@ -63,14 +63,14 @@ import { r as runDaemonRestart } from "./daemon-cli-CINUxr51.js";
|
|
|
63
63
|
import "./service-audit-Dj9U3c2F.js";
|
|
64
64
|
import { t as renderTable } from "./table-CwulTLQp.js";
|
|
65
65
|
import "./health-format-CZ--pwnE.js";
|
|
66
|
-
import { C as resolveEffectiveUpdateChannel, S as normalizeUpdateChannel, _ as resolveNpmChannelTag, a as globalInstallArgs, b as channelToNpmTag, c as formatUpdateOneLiner, d as checkShellCompletionStatus, g as fetchNpmTagVersion, h as compareSemverStrings, i as detectGlobalInstallManagerForRoot, m as checkUpdateStatus, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, p as ensureCompletionCacheExists, r as detectGlobalInstallManagerByPresence, s as formatUpdateAvailableHint, t as runGatewayUpdate, u as resolveUpdateAvailability, v as DEFAULT_GIT_CHANNEL, x as formatUpdateChannelLabel, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-
|
|
66
|
+
import { C as resolveEffectiveUpdateChannel, S as normalizeUpdateChannel, _ as resolveNpmChannelTag, a as globalInstallArgs, b as channelToNpmTag, c as formatUpdateOneLiner, d as checkShellCompletionStatus, g as fetchNpmTagVersion, h as compareSemverStrings, i as detectGlobalInstallManagerForRoot, m as checkUpdateStatus, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, p as ensureCompletionCacheExists, r as detectGlobalInstallManagerByPresence, s as formatUpdateAvailableHint, t as runGatewayUpdate, u as resolveUpdateAvailability, v as DEFAULT_GIT_CHANNEL, x as formatUpdateChannelLabel, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-x-LsF29G.js";
|
|
67
67
|
import "./logging-CRq4h04P.js";
|
|
68
68
|
import "./skills-status-DlFKDXgJ.js";
|
|
69
69
|
import "./auth-health-CAmZcrDg.js";
|
|
70
70
|
import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from "./update-DU1geolI.js";
|
|
71
71
|
import { t as formatHelpExamples } from "./help-format-R5fLToDw.js";
|
|
72
72
|
import "./systemd-linger-xdn3BdPh.js";
|
|
73
|
-
import { t as doctorCommand } from "./doctor-
|
|
73
|
+
import { t as doctorCommand } from "./doctor-mJ96-PMI.js";
|
|
74
74
|
import { spawnSync } from "node:child_process";
|
|
75
75
|
import path from "node:path";
|
|
76
76
|
import os from "node:os";
|
|
@@ -140,7 +140,7 @@ const UPDATE_QUIPS = [
|
|
|
140
140
|
];
|
|
141
141
|
const MAX_LOG_CHARS = 8e3;
|
|
142
142
|
const DEFAULT_PACKAGE_NAME = "openclaw";
|
|
143
|
-
const CORE_PACKAGE_NAMES = new Set([DEFAULT_PACKAGE_NAME]);
|
|
143
|
+
const CORE_PACKAGE_NAMES = new Set([DEFAULT_PACKAGE_NAME, "@qingchencloud/openclaw-zh"]);
|
|
144
144
|
const CLI_NAME = resolveCliName();
|
|
145
145
|
const OPENCLAW_REPO_URL = "https://github.com/openclaw/openclaw.git";
|
|
146
146
|
function normalizeTag(value) {
|
|
@@ -8,7 +8,7 @@ import { r as fetchWithTimeout } from "./fetch-BUGtVlvh.js";
|
|
|
8
8
|
import { _ as parseSemver } from "./daemon-runtime-iSrznGok.js";
|
|
9
9
|
import { t as note } from "./note-BhRSeNeu.js";
|
|
10
10
|
import { i as resolveControlUiDistIndexPathForRoot, r as resolveControlUiDistIndexHealth } from "./health-format-kTD3mmIm.js";
|
|
11
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
11
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-CcaE0pUj.js";
|
|
12
12
|
import os from "node:os";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
@@ -6,7 +6,7 @@ import { N as VERSION } from "./config-CsgV6hot.js";
|
|
|
6
6
|
import { In as trimLogTail } from "./loader-CSDol7K7.js";
|
|
7
7
|
import { t as note } from "./note-hhtubr2j.js";
|
|
8
8
|
import { t as fetchWithTimeout } from "./fetch-timeout-BNXhTVzQ.js";
|
|
9
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
9
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-Bh5I8KKW.js";
|
|
10
10
|
import { g as parseSemver } from "./daemon-runtime-N8YAnttH.js";
|
|
11
11
|
import { i as resolveControlUiDistIndexPathForRoot, r as resolveControlUiDistIndexHealth } from "./health-format-CZ--pwnE.js";
|
|
12
12
|
import { spawnSync } from "node:child_process";
|