openclaw-multi-auto 1.7.7 → 1.7.8
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-BK4MI6Gs.js → audio-preflight-GAYJDgGF.js} +1 -1
- package/dist/{auth-profiles.runtime-DEhTAVAo.js → auth-profiles.runtime-IXde-3_L.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{compact.runtime-CH24Vvny.js → compact.runtime-BCHQpekB.js} +1 -1
- package/dist/{deliver-runtime-6WeFOxSI.js → deliver-runtime-Bm3VqH55.js} +1 -1
- package/dist/extensionAPI.js +1 -1
- package/dist/{image-runtime-BwzYRCA5.js → image-runtime-CReMeTZL.js} +1 -1
- package/dist/{login-qr-FW_sLvPl.js → login-qr-D2jYdV8v.js} +2 -2
- package/dist/{login-BEOnxdap.js → login-xsvrgJJt.js} +2 -2
- package/dist/{manager-runtime-DV0_pZDZ.js → manager-runtime-BBxiBzvv.js} +1 -1
- package/dist/{manager.runtime-CynsHdcO.js → manager.runtime-CF3GyuMb.js} +7 -7
- package/dist/{model-selection-qaBek98Q.js → model-selection-BQm6_iuT.js} +43 -43
- package/dist/{pi-model-discovery-runtime-Q0BoklY3.js → pi-model-discovery-runtime-DeRljgTs.js} +1 -1
- package/dist/{pi-tools.before-tool-call.runtime-B_uML_Gt.js → pi-tools.before-tool-call.runtime-PhxG0y1R.js} +1 -1
- package/dist/{pw-ai-DzdseGw2.js → pw-ai-CzFFsGR7.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-Dsz-DNfa.js → runtime-whatsapp-login.runtime-vKFKNi8Z.js} +3 -3
- package/dist/{runtime-whatsapp-outbound.runtime-BeZMBTt6.js → runtime-whatsapp-outbound.runtime-SAT-C6UE.js} +2 -2
- package/dist/{send-DxYxezcL.js → send-DGQUY-kp.js} +1 -1
- package/dist/{session--tqRfZQU.js → session-CbQ43pUq.js} +1 -1
- package/dist/{slash-commands.runtime-C8j-n-bX.js → slash-commands.runtime-DoT9bJKb.js} +1 -1
- package/dist/{slash-dispatch.runtime-BA-MMy0P.js → slash-dispatch.runtime--9HmQuIE.js} +1 -1
- package/dist/{slash-skill-commands.runtime-Cm8K1kWM.js → slash-skill-commands.runtime-BZqnnkHJ.js} +1 -1
- package/dist/{subagent-registry-runtime-DKOXxZgH.js → subagent-registry-runtime-9WfVik2h.js} +1 -1
- package/dist/{web-RzQ9jrtt.js → web-B_EVHbEP.js} +4 -4
- package/dist/{whatsapp-actions-BmDvJijd.js → whatsapp-actions-pQqLTCXJ.js} +2 -2
- package/package.json +1 -1
- package/scripts/create-instance.sh +5 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import { B as shouldLogVerbose, R as logVerbose } from "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { Hn as resolveMediaAttachmentLocalRoots, Kn as isAudioAttachment, Rn as runAudioTranscription, Vn as normalizeMediaAttachments } from "./model-selection-
|
|
4
|
+
import { Hn as resolveMediaAttachmentLocalRoots, Kn as isAudioAttachment, Rn as runAudioTranscription, Vn as normalizeMediaAttachments } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
//#region src/media-understanding/audio-preflight.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { _i as ensureAuthProfileStore } from "./model-selection-
|
|
4
|
+
import { _i as ensureAuthProfileStore } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { ensureAuthProfileStore };
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9313a6f7ae0a26b97c1954ce3ba31d2b352e1d73d411e09014b68f5e37b4c842
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { X as compactEmbeddedPiSessionDirect } from "./model-selection-
|
|
4
|
+
import { X as compactEmbeddedPiSessionDirect } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { compactEmbeddedPiSessionDirect };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { jt as deliverOutboundPayloads } from "./model-selection-
|
|
4
|
+
import { jt as deliverOutboundPayloads } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { deliverOutboundPayloads };
|
package/dist/extensionAPI.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { It as ensureAgentWorkspace, N as resolveSessionFilePath, R as resolveStorePath, St as resolveAgentWorkspaceDir, vt as resolveAgentDir } from "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { $n as saveSessionStore, Oi as DEFAULT_MODEL, Zn as loadSessionStore, at as resolveAgentTimeoutMs, c as resolveThinkingDefault, ki as DEFAULT_PROVIDER, q as runEmbeddedPiAgent, wi as resolveAgentIdentity } from "./model-selection-
|
|
4
|
+
import { $n as saveSessionStore, Oi as DEFAULT_MODEL, Zn as loadSessionStore, at as resolveAgentTimeoutMs, c as resolveThinkingDefault, ki as DEFAULT_PROVIDER, q as runEmbeddedPiAgent, wi as resolveAgentIdentity } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { DEFAULT_MODEL, DEFAULT_PROVIDER, ensureAgentWorkspace, loadSessionStore, resolveAgentDir, resolveAgentIdentity, resolveAgentTimeoutMs, resolveAgentWorkspaceDir, resolveSessionFilePath, resolveStorePath, resolveThinkingDefault, runEmbeddedPiAgent, saveSessionStore };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { Wn as describeImageWithModel } from "./model-selection-
|
|
4
|
+
import { Wn as describeImageWithModel } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { describeImageWithModel };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import { I as danger, L as info, M as defaultRuntime, V as success, r as logInfo } from "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { Cr as readWebSelfId, Dr as webAuthExists, mr as resolveWhatsAppAccount, pi as loadConfig, yr as logoutWeb } from "./model-selection-
|
|
4
|
+
import { Cr as readWebSelfId, Dr as webAuthExists, mr as resolveWhatsAppAccount, pi as loadConfig, yr as logoutWeb } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session
|
|
7
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-CbQ43pUq.js";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
9
9
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
10
10
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as danger, L as info, M as defaultRuntime, V as success, r as logInfo } from "./logger-Cmh2bFJD.js";
|
|
2
|
-
import { mr as resolveWhatsAppAccount, pi as loadConfig, vi as formatCliCommand, yr as logoutWeb } from "./model-selection-
|
|
3
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session
|
|
2
|
+
import { mr as resolveWhatsAppAccount, pi as loadConfig, vi as formatCliCommand, yr as logoutWeb } from "./model-selection-BQm6_iuT.js";
|
|
3
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-CbQ43pUq.js";
|
|
4
4
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
5
5
|
//#region extensions/whatsapp/src/login.ts
|
|
6
6
|
async function loginWeb(verbose, waitForConnection, runtime = defaultRuntime, accountId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { Jt as closeAllMemoryIndexManagers, qt as MemoryIndexManager } from "./model-selection-
|
|
4
|
+
import { Jt as closeAllMemoryIndexManagers, qt as MemoryIndexManager } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { MemoryIndexManager, closeAllMemoryIndexManagers };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Et as resolveSessionAgentId, It as ensureAgentWorkspace, R as resolveStorePath, St as resolveAgentWorkspaceDir, fn as normalizeAgentId, gt as listAgentIds, mn as resolveAgentIdFromSessionKey, pn as normalizeMainKey, vt as resolveAgentDir, wt as resolveEffectiveModelFallbacks, xt as resolveAgentSkillsFilter } from "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import { B as shouldLogVerbose, M as defaultRuntime, O as createSubsystemLogger, R as logVerbose, Z as resolvePreferredOpenClawTmpDir } from "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { $t as toAcpRuntimeError, At as buildOutboundSessionContext, B as resolveSendPolicy, Bn as createMediaAttachmentCache, Ci as supportsXHighThinking, Ct as normalizeReplyPayload, Fr as isInternalMessageChannel, I as getRemoteSkillEligibility, Ir as normalizeMessageChannel, It as resolveMessageChannelSelection, J as prepareSessionManagerForRun, Jn as loadModelCatalog, L as getSkillsSnapshotVersion, Lr as resolveMessageChannel, Lt as runWithModelFallback, M as setCliSessionId, Mn as textToSpeech, Mr as INTERNAL_MESSAGE_CHANNEL, Mt as formatOutboundPayloadLog, N as runCliAgent, Nn as parseTtsDirectives, Nr as isDeliverableMessageChannel, Nt as normalizeOutboundPayloads, Oi as DEFAULT_MODEL, Ot as resolveOutboundTarget, P as applyVerboseOverride, Pr as isGatewayMessageChannel, Pt as normalizeOutboundPayloadsForJson, Qt as getAcpSessionManager, R as clearSessionAuthProfileOverride, Rt as FailoverError, Si as normalizeVerboseLevel, Sn as formatDiscordUserTag, Un as runCapability, Vn as normalizeMediaAttachments, Wt as clearBootstrapSnapshotOnSessionRollover, Xn as emitSessionTranscriptUpdate, Xt as isSilentReplyPrefixText, Y as resolveBootstrapWarningSignaturesSeen, Yn as resolveSessionTranscriptFile, Zn as loadSessionStore, Zt as isSilentReplyText, _i as ensureAuthProfileStore, _n as formatMention, _t as deriveSessionTotalTokens, a as normalizeProviderId, ar as resolveChannelResetConfig, at as resolveAgentTimeoutMs, bi as formatXHighModelHint, c as resolveThinkingDefault, cr as mergeSessionEntry, ct as clearAgentRunContext, di as buildWorkspaceSkillSnapshot, dr as getChannelPlugin, dt as resolveAcpSessionCwd, fn as resolveAgentRoute, fr as normalizeChannelId, ft as resolveAcpAgentPolicyError, gt as applyModelOverrideToSessionEntry, hi as setRuntimeConfigSnapshot, ht as AGENT_LANE_SUBAGENT, i as normalizeModelRef, ir as evaluateSessionFreshness, j as getCliSessionId, jn as resolveTtsConfig, jt as deliverOutboundPayloads, ki as DEFAULT_PROVIDER, kt as resolveSessionDeliveryTarget, l as getAgentRuntimeCommandSecretTargetIds, lr as setSessionRuntimeModel, lt as emitAgentEvent, mi as readConfigFileSnapshotForWrite, mt as AGENT_LANE_NESTED, n as isCliProvider, nr as normalizeAccountId, o as resolveConfiguredModelRef, or as resolveSessionResetPolicy, ot as formatAgentInternalEventsForPrompt, pi as loadConfig, pt as resolveAcpDispatchPolicyError, q as runEmbeddedPiAgent, r as modelKey, ri as formatErrorMessage, rr as resolveSessionKey, s as resolveDefaultModelForAgent, sr as resolveSessionResetType, st as normalizeSpawnedRunMetadata, t as buildAllowedModelSet, tr as updateSessionStore, u as resolveCommandSecretRefsViaGateway, ur as resolveExplicitAgentSessionKey, ut as registerAgentRunContext, vi as formatCliCommand, vt as hasNonzeroUsage, w as isDangerousNameMatchingEnabled, xi as normalizeThinkLevel, xn as resolveDiscordOwnerAccess, yi as formatThinkingLevels, yt as resolveContextTokensForModel, zn as buildProviderRegistry } from "./model-selection-
|
|
4
|
+
import { $t as toAcpRuntimeError, At as buildOutboundSessionContext, B as resolveSendPolicy, Bn as createMediaAttachmentCache, Ci as supportsXHighThinking, Ct as normalizeReplyPayload, Fr as isInternalMessageChannel, I as getRemoteSkillEligibility, Ir as normalizeMessageChannel, It as resolveMessageChannelSelection, J as prepareSessionManagerForRun, Jn as loadModelCatalog, L as getSkillsSnapshotVersion, Lr as resolveMessageChannel, Lt as runWithModelFallback, M as setCliSessionId, Mn as textToSpeech, Mr as INTERNAL_MESSAGE_CHANNEL, Mt as formatOutboundPayloadLog, N as runCliAgent, Nn as parseTtsDirectives, Nr as isDeliverableMessageChannel, Nt as normalizeOutboundPayloads, Oi as DEFAULT_MODEL, Ot as resolveOutboundTarget, P as applyVerboseOverride, Pr as isGatewayMessageChannel, Pt as normalizeOutboundPayloadsForJson, Qt as getAcpSessionManager, R as clearSessionAuthProfileOverride, Rt as FailoverError, Si as normalizeVerboseLevel, Sn as formatDiscordUserTag, Un as runCapability, Vn as normalizeMediaAttachments, Wt as clearBootstrapSnapshotOnSessionRollover, Xn as emitSessionTranscriptUpdate, Xt as isSilentReplyPrefixText, Y as resolveBootstrapWarningSignaturesSeen, Yn as resolveSessionTranscriptFile, Zn as loadSessionStore, Zt as isSilentReplyText, _i as ensureAuthProfileStore, _n as formatMention, _t as deriveSessionTotalTokens, a as normalizeProviderId, ar as resolveChannelResetConfig, at as resolveAgentTimeoutMs, bi as formatXHighModelHint, c as resolveThinkingDefault, cr as mergeSessionEntry, ct as clearAgentRunContext, di as buildWorkspaceSkillSnapshot, dr as getChannelPlugin, dt as resolveAcpSessionCwd, fn as resolveAgentRoute, fr as normalizeChannelId, ft as resolveAcpAgentPolicyError, gt as applyModelOverrideToSessionEntry, hi as setRuntimeConfigSnapshot, ht as AGENT_LANE_SUBAGENT, i as normalizeModelRef, ir as evaluateSessionFreshness, j as getCliSessionId, jn as resolveTtsConfig, jt as deliverOutboundPayloads, ki as DEFAULT_PROVIDER, kt as resolveSessionDeliveryTarget, l as getAgentRuntimeCommandSecretTargetIds, lr as setSessionRuntimeModel, lt as emitAgentEvent, mi as readConfigFileSnapshotForWrite, mt as AGENT_LANE_NESTED, n as isCliProvider, nr as normalizeAccountId, o as resolveConfiguredModelRef, or as resolveSessionResetPolicy, ot as formatAgentInternalEventsForPrompt, pi as loadConfig, pt as resolveAcpDispatchPolicyError, q as runEmbeddedPiAgent, r as modelKey, ri as formatErrorMessage, rr as resolveSessionKey, s as resolveDefaultModelForAgent, sr as resolveSessionResetType, st as normalizeSpawnedRunMetadata, t as buildAllowedModelSet, tr as updateSessionStore, u as resolveCommandSecretRefsViaGateway, ur as resolveExplicitAgentSessionKey, ut as registerAgentRunContext, vi as formatCliCommand, vt as hasNonzeroUsage, w as isDangerousNameMatchingEnabled, xi as normalizeThinkLevel, xn as resolveDiscordOwnerAccess, yi as formatThinkingLevels, yt as resolveContextTokensForModel, zn as buildProviderRegistry } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
@@ -64,12 +64,12 @@ function createLazySender(channelId, loader, exportName) {
|
|
|
64
64
|
}
|
|
65
65
|
function createDefaultDeps() {
|
|
66
66
|
return {
|
|
67
|
-
whatsapp: createLazySender("whatsapp", () => import("./web-
|
|
68
|
-
telegram: createLazySender("telegram", () => import("./model-selection-
|
|
69
|
-
discord: createLazySender("discord", () => import("./model-selection-
|
|
70
|
-
slack: createLazySender("slack", () => import("./model-selection-
|
|
71
|
-
signal: createLazySender("signal", () => import("./model-selection-
|
|
72
|
-
imessage: createLazySender("imessage", () => import("./model-selection-
|
|
67
|
+
whatsapp: createLazySender("whatsapp", () => import("./web-B_EVHbEP.js"), "sendMessageWhatsApp"),
|
|
68
|
+
telegram: createLazySender("telegram", () => import("./model-selection-BQm6_iuT.js").then((n) => n.h), "sendMessageTelegram"),
|
|
69
|
+
discord: createLazySender("discord", () => import("./model-selection-BQm6_iuT.js").then((n) => n.gn), "sendMessageDiscord"),
|
|
70
|
+
slack: createLazySender("slack", () => import("./model-selection-BQm6_iuT.js").then((n) => n._), "sendMessageSlack"),
|
|
71
|
+
signal: createLazySender("signal", () => import("./model-selection-BQm6_iuT.js").then((n) => n.Ft), "sendMessageSignal"),
|
|
72
|
+
imessage: createLazySender("imessage", () => import("./model-selection-BQm6_iuT.js").then((n) => n.v), "sendMessageIMessage")
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
@@ -37,7 +37,7 @@ import { EventEmitter } from "node:events";
|
|
|
37
37
|
import "node:stream/promises";
|
|
38
38
|
import http, { createServer } from "node:http";
|
|
39
39
|
import https from "node:https";
|
|
40
|
-
import WebSocket, { WebSocket
|
|
40
|
+
import WebSocket$1, { WebSocket, WebSocketServer } from "ws";
|
|
41
41
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
42
42
|
import { BedrockClient, ListFoundationModelsCommand } from "@aws-sdk/client-bedrock";
|
|
43
43
|
import { complete, completeSimple, createAssistantMessageEventStream, getApiProvider, getEnvApiKey, registerApiProvider, streamSimple } from "@mariozechner/pi-ai";
|
|
@@ -19575,7 +19575,7 @@ function isModuleNotFoundError(err) {
|
|
|
19575
19575
|
}
|
|
19576
19576
|
async function loadPwAiModule(mode) {
|
|
19577
19577
|
try {
|
|
19578
|
-
return await import("./pw-ai-
|
|
19578
|
+
return await import("./pw-ai-CzFFsGR7.js");
|
|
19579
19579
|
} catch (err) {
|
|
19580
19580
|
if (mode === "soft") return null;
|
|
19581
19581
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -22749,7 +22749,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
22749
22749
|
let extensionWs = null;
|
|
22750
22750
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
22751
22751
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
22752
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
22752
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket$1.OPEN;
|
|
22753
22753
|
const hasConnectedTargets = () => connectedTargets.size > 0;
|
|
22754
22754
|
let extensionDisconnectCleanupTimer = null;
|
|
22755
22755
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
@@ -22801,7 +22801,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
22801
22801
|
let nextExtensionId = 1;
|
|
22802
22802
|
const sendToExtension = async (payload) => {
|
|
22803
22803
|
const ws = extensionWs;
|
|
22804
|
-
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
22804
|
+
if (!ws || ws.readyState !== WebSocket$1.OPEN) throw new Error("Chrome extension not connected");
|
|
22805
22805
|
ws.send(JSON.stringify(payload));
|
|
22806
22806
|
return await new Promise((resolve, reject) => {
|
|
22807
22807
|
const timer = setTimeout(() => {
|
|
@@ -22818,12 +22818,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
22818
22818
|
const broadcastToCdpClients = (evt) => {
|
|
22819
22819
|
const msg = JSON.stringify(evt);
|
|
22820
22820
|
for (const ws of cdpClients) {
|
|
22821
|
-
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
22821
|
+
if (ws.readyState !== WebSocket$1.OPEN) continue;
|
|
22822
22822
|
ws.send(msg);
|
|
22823
22823
|
}
|
|
22824
22824
|
};
|
|
22825
22825
|
const sendResponseToCdp = (ws, res) => {
|
|
22826
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
22826
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
22827
22827
|
ws.send(JSON.stringify(res));
|
|
22828
22828
|
};
|
|
22829
22829
|
const dropConnectedTargetSession = (sessionId) => {
|
|
@@ -23077,7 +23077,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
23077
23077
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
23078
23078
|
return;
|
|
23079
23079
|
}
|
|
23080
|
-
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
23080
|
+
if (extensionWs && extensionWs.readyState !== WebSocket$1.OPEN) {
|
|
23081
23081
|
try {
|
|
23082
23082
|
extensionWs.terminate();
|
|
23083
23083
|
} catch {}
|
|
@@ -23110,7 +23110,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
23110
23110
|
clearExtensionDisconnectCleanupTimer();
|
|
23111
23111
|
flushExtensionReconnectWaiters(true);
|
|
23112
23112
|
const ping = setInterval(() => {
|
|
23113
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
23113
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
23114
23114
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
23115
23115
|
}, 5e3);
|
|
23116
23116
|
ws.on("message", (data) => {
|
|
@@ -23463,7 +23463,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
23463
23463
|
};
|
|
23464
23464
|
const closePlaywrightBrowserConnectionForProfile = async (cdpUrl) => {
|
|
23465
23465
|
try {
|
|
23466
|
-
await (await import("./pw-ai-
|
|
23466
|
+
await (await import("./pw-ai-CzFFsGR7.js")).closePlaywrightBrowserConnection(cdpUrl ? { cdpUrl } : void 0);
|
|
23467
23467
|
} catch {}
|
|
23468
23468
|
};
|
|
23469
23469
|
const reconcileProfileRuntime = async () => {
|
|
@@ -23590,7 +23590,7 @@ async function movePathToTrash(targetPath) {
|
|
|
23590
23590
|
//#region src/browser/server-context.reset.ts
|
|
23591
23591
|
async function closePlaywrightBrowserConnectionForProfile(cdpUrl) {
|
|
23592
23592
|
try {
|
|
23593
|
-
await (await import("./pw-ai-
|
|
23593
|
+
await (await import("./pw-ai-CzFFsGR7.js")).closePlaywrightBrowserConnection(cdpUrl ? { cdpUrl } : void 0);
|
|
23594
23594
|
} catch {}
|
|
23595
23595
|
}
|
|
23596
23596
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -24554,7 +24554,7 @@ function openCdpWebSocket(wsUrl, opts) {
|
|
|
24554
24554
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
24555
24555
|
const handshakeTimeoutMs = typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : CDP_WS_HANDSHAKE_TIMEOUT_MS;
|
|
24556
24556
|
const agent = getDirectAgentForCdp(wsUrl);
|
|
24557
|
-
return new WebSocket(wsUrl, {
|
|
24557
|
+
return new WebSocket$1(wsUrl, {
|
|
24558
24558
|
handshakeTimeout: handshakeTimeoutMs,
|
|
24559
24559
|
...Object.keys(headers).length ? { headers } : {},
|
|
24560
24560
|
...agent ? { agent } : {}
|
|
@@ -40548,7 +40548,7 @@ async function ensureOpenClawModelsJson(config, agentDirOverride) {
|
|
|
40548
40548
|
const log$31 = createSubsystemLogger("model-catalog");
|
|
40549
40549
|
let modelCatalogPromise = null;
|
|
40550
40550
|
let hasLoggedModelCatalogError = false;
|
|
40551
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-runtime-
|
|
40551
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-runtime-DeRljgTs.js");
|
|
40552
40552
|
let importPiSdk = defaultImportPiSdk;
|
|
40553
40553
|
const CODEX_PROVIDER = "openai-codex";
|
|
40554
40554
|
const OPENAI_PROVIDER = "openai";
|
|
@@ -43720,7 +43720,7 @@ function resolveProviderVisionModelFromConfig(params) {
|
|
|
43720
43720
|
//#region src/media-understanding/providers/image.ts
|
|
43721
43721
|
let piModelDiscoveryRuntimePromise = null;
|
|
43722
43722
|
function loadPiModelDiscoveryRuntime() {
|
|
43723
|
-
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-
|
|
43723
|
+
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-DeRljgTs.js");
|
|
43724
43724
|
return piModelDiscoveryRuntimePromise;
|
|
43725
43725
|
}
|
|
43726
43726
|
async function describeImageWithModel(params) {
|
|
@@ -59260,7 +59260,7 @@ var LegacyContextEngine = class {
|
|
|
59260
59260
|
}
|
|
59261
59261
|
async afterTurn(_params) {}
|
|
59262
59262
|
async compact(params) {
|
|
59263
|
-
const { compactEmbeddedPiSessionDirect } = await import("./compact.runtime-
|
|
59263
|
+
const { compactEmbeddedPiSessionDirect } = await import("./compact.runtime-BCHQpekB.js");
|
|
59264
59264
|
const runtimeContext = params.runtimeContext ?? {};
|
|
59265
59265
|
const currentTokenCount = params.currentTokenCount ?? (typeof runtimeContext.currentTokenCount === "number" && Number.isFinite(runtimeContext.currentTokenCount) && runtimeContext.currentTokenCount > 0 ? Math.floor(runtimeContext.currentTokenCount) : void 0);
|
|
59266
59266
|
const result = await compactEmbeddedPiSessionDirect({
|
|
@@ -63699,7 +63699,7 @@ const log$24 = createSubsystemLogger("memory");
|
|
|
63699
63699
|
const QMD_MANAGER_CACHE = /* @__PURE__ */ new Map();
|
|
63700
63700
|
let managerRuntimePromise = null;
|
|
63701
63701
|
function loadManagerRuntime() {
|
|
63702
|
-
managerRuntimePromise ??= import("./manager-runtime-
|
|
63702
|
+
managerRuntimePromise ??= import("./manager-runtime-BBxiBzvv.js");
|
|
63703
63703
|
return managerRuntimePromise;
|
|
63704
63704
|
}
|
|
63705
63705
|
async function getMemorySearchManager(params) {
|
|
@@ -70065,7 +70065,7 @@ var GatewayClient = class {
|
|
|
70065
70065
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
70066
70066
|
});
|
|
70067
70067
|
}
|
|
70068
|
-
this.ws = new WebSocket
|
|
70068
|
+
this.ws = new WebSocket(url, wsOptions);
|
|
70069
70069
|
this.ws.on("open", () => {
|
|
70070
70070
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
70071
70071
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -70341,7 +70341,7 @@ var GatewayClient = class {
|
|
|
70341
70341
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
70342
70342
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
70343
70343
|
this.connectTimer = setTimeout(() => {
|
|
70344
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket
|
|
70344
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
70345
70345
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
70346
70346
|
this.ws?.close(1008, "connect challenge timeout");
|
|
70347
70347
|
}, connectChallengeTimeoutMs);
|
|
@@ -70386,7 +70386,7 @@ var GatewayClient = class {
|
|
|
70386
70386
|
return null;
|
|
70387
70387
|
}
|
|
70388
70388
|
async request(method, params, opts) {
|
|
70389
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
70389
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
70390
70390
|
const id = randomUUID();
|
|
70391
70391
|
const frame = {
|
|
70392
70392
|
type: "req",
|
|
@@ -89582,7 +89582,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
89582
89582
|
*/
|
|
89583
89583
|
let deliverRuntimePromise$2 = null;
|
|
89584
89584
|
function loadDeliverRuntime$2() {
|
|
89585
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
89585
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-Bm3VqH55.js");
|
|
89586
89586
|
return deliverRuntimePromise$2;
|
|
89587
89587
|
}
|
|
89588
89588
|
/**
|
|
@@ -90132,7 +90132,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
90132
90132
|
await ensureOpenClawModelsJson(cfg);
|
|
90133
90133
|
} catch {}
|
|
90134
90134
|
try {
|
|
90135
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-
|
|
90135
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-DeRljgTs.js");
|
|
90136
90136
|
const agentDir = resolveOpenClawAgentDir();
|
|
90137
90137
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
90138
90138
|
applyDiscoveredContextWindows({
|
|
@@ -95132,7 +95132,7 @@ const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
|
95132
95132
|
const GATEWAY_TIMEOUT_PATTERN = /gateway timeout/i;
|
|
95133
95133
|
let subagentRegistryRuntimePromise = null;
|
|
95134
95134
|
function loadSubagentRegistryRuntime() {
|
|
95135
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
95135
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-9WfVik2h.js");
|
|
95136
95136
|
return subagentRegistryRuntimePromise;
|
|
95137
95137
|
}
|
|
95138
95138
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
@@ -101157,7 +101157,7 @@ const LOOP_WARNING_BUCKET_SIZE = 10;
|
|
|
101157
101157
|
const MAX_LOOP_WARNING_KEYS = 256;
|
|
101158
101158
|
let beforeToolCallRuntimePromise = null;
|
|
101159
101159
|
function loadBeforeToolCallRuntime() {
|
|
101160
|
-
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-
|
|
101160
|
+
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-PhxG0y1R.js");
|
|
101161
101161
|
return beforeToolCallRuntimePromise;
|
|
101162
101162
|
}
|
|
101163
101163
|
function buildAdjustedParamsKey(params) {
|
|
@@ -109110,7 +109110,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
109110
109110
|
* Throws if the connection is not open.
|
|
109111
109111
|
*/
|
|
109112
109112
|
send(event) {
|
|
109113
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
109113
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
109114
109114
|
this.ws.send(JSON.stringify(event));
|
|
109115
109115
|
}
|
|
109116
109116
|
/**
|
|
@@ -109127,7 +109127,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
109127
109127
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
109128
109128
|
*/
|
|
109129
109129
|
isConnected() {
|
|
109130
|
-
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
109130
|
+
return this.ws !== null && this.ws.readyState === WebSocket$1.OPEN;
|
|
109131
109131
|
}
|
|
109132
109132
|
/**
|
|
109133
109133
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -109137,7 +109137,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
109137
109137
|
this._cancelRetryTimer();
|
|
109138
109138
|
if (this.ws) {
|
|
109139
109139
|
this.ws.removeAllListeners();
|
|
109140
|
-
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
109140
|
+
if (this.ws.readyState === WebSocket$1.OPEN || this.ws.readyState === WebSocket$1.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
109141
109141
|
this.ws = null;
|
|
109142
109142
|
}
|
|
109143
109143
|
}
|
|
@@ -109147,7 +109147,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
109147
109147
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
109148
109148
|
return;
|
|
109149
109149
|
}
|
|
109150
|
-
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
109150
|
+
const socket = new WebSocket$1(this.wsUrl, { headers: {
|
|
109151
109151
|
Authorization: `Bearer ${this.apiKey}`,
|
|
109152
109152
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
109153
109153
|
} });
|
|
@@ -117396,7 +117396,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
117396
117396
|
//#region src/media-understanding/echo-transcript.ts
|
|
117397
117397
|
let deliverRuntimePromise$1 = null;
|
|
117398
117398
|
function loadDeliverRuntime$1() {
|
|
117399
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
117399
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-Bm3VqH55.js");
|
|
117400
117400
|
return deliverRuntimePromise$1;
|
|
117401
117401
|
}
|
|
117402
117402
|
function formatEchoTranscript(transcript, format) {
|
|
@@ -127229,7 +127229,7 @@ async function createModelSelectionState(params) {
|
|
|
127229
127229
|
}
|
|
127230
127230
|
}
|
|
127231
127231
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
127232
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles.runtime-
|
|
127232
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles.runtime-IXde-3_L.js");
|
|
127233
127233
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
127234
127234
|
const providerKey = normalizeProviderId(provider);
|
|
127235
127235
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -133589,7 +133589,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
133589
133589
|
const log$5 = createSubsystemLogger("session-maintenance-warning");
|
|
133590
133590
|
let deliverRuntimePromise = null;
|
|
133591
133591
|
function loadDeliverRuntime() {
|
|
133592
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
133592
|
+
deliverRuntimePromise ??= import("./deliver-runtime-Bm3VqH55.js");
|
|
133593
133593
|
return deliverRuntimePromise;
|
|
133594
133594
|
}
|
|
133595
133595
|
function shouldSendWarning() {
|
|
@@ -138753,7 +138753,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
138753
138753
|
hasTypedText
|
|
138754
138754
|
};
|
|
138755
138755
|
try {
|
|
138756
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
138756
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-GAYJDgGF.js");
|
|
138757
138757
|
if (params.abortSignal?.aborted) return {
|
|
138758
138758
|
hasAudioAttachment,
|
|
138759
138759
|
hasTypedText
|
|
@@ -144096,7 +144096,7 @@ function createGatewayPlugin(params) {
|
|
|
144096
144096
|
}
|
|
144097
144097
|
createWebSocket(url) {
|
|
144098
144098
|
if (!params.wsAgent) return super.createWebSocket(url);
|
|
144099
|
-
return new WebSocket(url, { agent: params.wsAgent });
|
|
144099
|
+
return new WebSocket$1(url, { agent: params.wsAgent });
|
|
144100
144100
|
}
|
|
144101
144101
|
}
|
|
144102
144102
|
return new SafeGatewayPlugin();
|
|
@@ -145089,7 +145089,7 @@ function resolveDiscordRestFetch(proxyUrl, runtime) {
|
|
|
145089
145089
|
//#region extensions/discord/src/monitor/provider.ts
|
|
145090
145090
|
let discordVoiceRuntimePromise;
|
|
145091
145091
|
async function loadDiscordVoiceRuntime() {
|
|
145092
|
-
discordVoiceRuntimePromise ??= import("./manager.runtime-
|
|
145092
|
+
discordVoiceRuntimePromise ??= import("./manager.runtime-CF3GyuMb.js");
|
|
145093
145093
|
return await discordVoiceRuntimePromise;
|
|
145094
145094
|
}
|
|
145095
145095
|
function formatThreadBindingDurationForConfigLabel(durationMs) {
|
|
@@ -153069,15 +153069,15 @@ let slashCommandsRuntimePromise = null;
|
|
|
153069
153069
|
let slashDispatchRuntimePromise = null;
|
|
153070
153070
|
let slashSkillCommandsRuntimePromise = null;
|
|
153071
153071
|
function loadSlashCommandsRuntime() {
|
|
153072
|
-
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-
|
|
153072
|
+
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-DoT9bJKb.js");
|
|
153073
153073
|
return slashCommandsRuntimePromise;
|
|
153074
153074
|
}
|
|
153075
153075
|
function loadSlashDispatchRuntime() {
|
|
153076
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime
|
|
153076
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime--9HmQuIE.js");
|
|
153077
153077
|
return slashDispatchRuntimePromise;
|
|
153078
153078
|
}
|
|
153079
153079
|
function loadSlashSkillCommandsRuntime() {
|
|
153080
|
-
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-
|
|
153080
|
+
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-BZqnnkHJ.js");
|
|
153081
153081
|
return slashSkillCommandsRuntimePromise;
|
|
153082
153082
|
}
|
|
153083
153083
|
const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
|
|
@@ -156697,7 +156697,7 @@ function getCacheStats() {
|
|
|
156697
156697
|
const STICKER_DESCRIPTION_PROMPT = "Describe this sticker image in 1-2 sentences. Focus on what the sticker depicts (character, object, action, emotion). Be concise and objective.";
|
|
156698
156698
|
let imageRuntimePromise = null;
|
|
156699
156699
|
function loadImageRuntime() {
|
|
156700
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
156700
|
+
imageRuntimePromise ??= import("./image-runtime-CReMeTZL.js");
|
|
156701
156701
|
return imageRuntimePromise;
|
|
156702
156702
|
}
|
|
156703
156703
|
/**
|
|
@@ -158429,7 +158429,7 @@ async function resolveTelegramInboundBody(params) {
|
|
|
158429
158429
|
const disableAudioPreflight = (topicConfig?.disableAudioPreflight ?? groupConfig?.disableAudioPreflight) === true;
|
|
158430
158430
|
let preflightTranscript;
|
|
158431
158431
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
158432
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
158432
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-GAYJDgGF.js");
|
|
158433
158433
|
preflightTranscript = await transcribeFirstAudio({
|
|
158434
158434
|
ctx: {
|
|
158435
158435
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -166551,7 +166551,7 @@ function createWhatsAppLoginTool() {
|
|
|
166551
166551
|
force: Type.Optional(Type.Boolean())
|
|
166552
166552
|
}),
|
|
166553
166553
|
execute: async (_toolCallId, args) => {
|
|
166554
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
166554
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-D2jYdV8v.js");
|
|
166555
166555
|
if ((args?.action ?? "start") === "wait") {
|
|
166556
166556
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
166557
166557
|
return {
|
|
@@ -166625,23 +166625,23 @@ let webOutboundPromise = null;
|
|
|
166625
166625
|
let webLoginPromise = null;
|
|
166626
166626
|
let whatsappActionsPromise = null;
|
|
166627
166627
|
function loadWebOutbound() {
|
|
166628
|
-
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-
|
|
166628
|
+
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-SAT-C6UE.js");
|
|
166629
166629
|
return webOutboundPromise;
|
|
166630
166630
|
}
|
|
166631
166631
|
function loadWebLogin() {
|
|
166632
|
-
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-
|
|
166632
|
+
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-vKFKNi8Z.js");
|
|
166633
166633
|
return webLoginPromise;
|
|
166634
166634
|
}
|
|
166635
166635
|
function loadWebLoginQr() {
|
|
166636
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
166636
|
+
webLoginQrPromise ??= import("./login-qr-D2jYdV8v.js");
|
|
166637
166637
|
return webLoginQrPromise;
|
|
166638
166638
|
}
|
|
166639
166639
|
function loadWebChannel() {
|
|
166640
|
-
webChannelPromise ??= import("./web-
|
|
166640
|
+
webChannelPromise ??= import("./web-B_EVHbEP.js");
|
|
166641
166641
|
return webChannelPromise;
|
|
166642
166642
|
}
|
|
166643
166643
|
function loadWhatsAppActions() {
|
|
166644
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
166644
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-pQqLTCXJ.js");
|
|
166645
166645
|
return whatsappActionsPromise;
|
|
166646
166646
|
}
|
|
166647
166647
|
function createRuntimeWhatsApp() {
|
package/dist/{pi-model-discovery-runtime-Q0BoklY3.js → pi-model-discovery-runtime-DeRljgTs.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { Fn as PiModelRegistryClass, In as discoverAuthStorage, Ln as discoverModels, Pn as PiAuthStorageClass } from "./model-selection-
|
|
4
|
+
import { Fn as PiModelRegistryClass, In as discoverAuthStorage, Ln as discoverModels, Pn as PiAuthStorageClass } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { PiAuthStorageClass as AuthStorage, PiModelRegistryClass as ModelRegistry, discoverAuthStorage, discoverModels };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import { D as isPlainObject, O as createSubsystemLogger } from "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { Gt as logToolLoopAction, Kt as getDiagnosticSessionState } from "./model-selection-
|
|
4
|
+
import { Gt as logToolLoopAction, Kt as getDiagnosticSessionState } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { at as writeFileFromPathWithinRoot } from "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import { Z as resolvePreferredOpenClawTmpDir } from "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { Br as getRoleSnapshotStats, Gr as fetchJson, Hr as formatAriaSnapshot, Jr as withCdpSocket, Kr as getHeadersWithAuth, Qr as withNoProxyForCdpUrl, Rr as buildRoleSnapshotFromAiSnapshot, Ur as normalizeCdpWsUrl, Vr as parseRoleRef, Wr as appendCdpPath, Xr as getChromeWebSocketUrl, Zr as markPwAiLoaded, ci as assertBrowserNavigationRedirectChainAllowed, ei as DEFAULT_TRACE_DIR, ii as matchBrowserUrlPattern, li as assertBrowserNavigationResultAllowed, ni as resolveStrictExistingPathsWithinRoot, oi as BrowserTabNotFoundError, qr as normalizeCdpHttpBaseForJsonEndpoints, ri as formatErrorMessage, si as assertBrowserNavigationAllowed, ti as DEFAULT_UPLOAD_DIR, ui as withBrowserNavigationPolicy, vi as formatCliCommand, zr as buildRoleSnapshotFromAriaSnapshot } from "./model-selection-
|
|
4
|
+
import { Br as getRoleSnapshotStats, Gr as fetchJson, Hr as formatAriaSnapshot, Jr as withCdpSocket, Kr as getHeadersWithAuth, Qr as withNoProxyForCdpUrl, Rr as buildRoleSnapshotFromAiSnapshot, Ur as normalizeCdpWsUrl, Vr as parseRoleRef, Wr as appendCdpPath, Xr as getChromeWebSocketUrl, Zr as markPwAiLoaded, ci as assertBrowserNavigationRedirectChainAllowed, ei as DEFAULT_TRACE_DIR, ii as matchBrowserUrlPattern, li as assertBrowserNavigationResultAllowed, ni as resolveStrictExistingPathsWithinRoot, oi as BrowserTabNotFoundError, qr as normalizeCdpHttpBaseForJsonEndpoints, ri as formatErrorMessage, si as assertBrowserNavigationAllowed, ti as DEFAULT_UPLOAD_DIR, ui as withBrowserNavigationPolicy, vi as formatCliCommand, zr as buildRoleSnapshotFromAriaSnapshot } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import "./model-selection-
|
|
4
|
+
import "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
|
-
import "./session
|
|
8
|
-
import { t as loginWeb } from "./login-
|
|
7
|
+
import "./session-CbQ43pUq.js";
|
|
8
|
+
import { t as loginWeb } from "./login-xsvrgJJt.js";
|
|
9
9
|
export { loginWeb };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import "./model-selection-
|
|
4
|
+
import "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
|
-
import { n as sendPollWhatsApp, t as sendMessageWhatsApp } from "./send-
|
|
7
|
+
import { n as sendPollWhatsApp, t as sendMessageWhatsApp } from "./send-DGQUY-kp.js";
|
|
8
8
|
export { sendMessageWhatsApp, sendPollWhatsApp };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { K as getChildLogger, O as createSubsystemLogger, T as toWhatsappJid, u as escapeRegExp } from "./logger-Cmh2bFJD.js";
|
|
2
|
-
import { An as normalizePollInput, Yr as generateSecureUuid, bn as resolveMarkdownTableMode, d as requireActiveWebListener, fi as redactIdentifier, hr as resolveWhatsAppMediaMaxBytes, kn as loadWebMedia, mr as resolveWhatsAppAccount, pi as loadConfig, vn as convertMarkdownTables } from "./model-selection-
|
|
2
|
+
import { An as normalizePollInput, Yr as generateSecureUuid, bn as resolveMarkdownTableMode, d as requireActiveWebListener, fi as redactIdentifier, hr as resolveWhatsAppMediaMaxBytes, kn as loadWebMedia, mr as resolveWhatsAppAccount, pi as loadConfig, vn as convertMarkdownTables } from "./model-selection-BQm6_iuT.js";
|
|
3
3
|
//#region src/markdown/whatsapp.ts
|
|
4
4
|
/**
|
|
5
5
|
* Convert standard Markdown formatting to WhatsApp-compatible markup.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I as danger, K as getChildLogger, V as success, l as ensureDir, q as toPinoLikeLogger, y as resolveUserPath } from "./logger-Cmh2bFJD.js";
|
|
2
|
-
import { Er as resolveWebCredsPath, Sr as readCredsJsonRaw, Tr as resolveWebCredsBackupPath, br as maybeRestoreCredsFromBackup, gi as VERSION, vi as formatCliCommand, wr as resolveDefaultWebAuthDir } from "./model-selection-
|
|
2
|
+
import { Er as resolveWebCredsPath, Sr as readCredsJsonRaw, Tr as resolveWebCredsBackupPath, br as maybeRestoreCredsFromBackup, gi as VERSION, vi as formatCliCommand, wr as resolveDefaultWebAuthDir } from "./model-selection-BQm6_iuT.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import "node:crypto";
|
|
5
5
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { en as buildCommandTextFromArgs, in as resolveCommandArgMenu, nn as listNativeCommandSpecsForConfig, rn as parseCommandArgs, tn as findCommandByNativeName } from "./model-selection-
|
|
4
|
+
import { en as buildCommandTextFromArgs, in as resolveCommandArgMenu, nn as listNativeCommandSpecsForConfig, rn as parseCommandArgs, tn as findCommandByNativeName } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { buildCommandTextFromArgs, findCommandByNativeName, listNativeCommandSpecsForConfig, parseCommandArgs, resolveCommandArgMenu };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { Ar as resolveConversationLabel, Dn as resolveChunkMode, T as createReplyPrefixOptions, bn as resolveMarkdownTableMode, fn as resolveAgentRoute, g as deliverSlackSlashReplies, m as recordInboundSessionMetaSafe, x as dispatchReplyWithDispatcher, z as finalizeInboundContext } from "./model-selection-
|
|
4
|
+
import { Ar as resolveConversationLabel, Dn as resolveChunkMode, T as createReplyPrefixOptions, bn as resolveMarkdownTableMode, fn as resolveAgentRoute, g as deliverSlackSlashReplies, m as recordInboundSessionMetaSafe, x as dispatchReplyWithDispatcher, z as finalizeInboundContext } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { createReplyPrefixOptions, deliverSlackSlashReplies, dispatchReplyWithDispatcher, finalizeInboundContext, recordInboundSessionMetaSafe, resolveAgentRoute, resolveChunkMode, resolveConversationLabel, resolveMarkdownTableMode };
|
package/dist/{slash-skill-commands.runtime-Cm8K1kWM.js → slash-skill-commands.runtime-BZqnnkHJ.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { F as listSkillCommandsForAgents } from "./model-selection-
|
|
4
|
+
import { F as listSkillCommandsForAgents } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { listSkillCommandsForAgents };
|
package/dist/{subagent-registry-runtime-DKOXxZgH.js → subagent-registry-runtime-9WfVik2h.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { $ as countPendingDescendantRunsExcludingRun, Q as countPendingDescendantRuns, Z as countActiveDescendantRuns, et as isSubagentSessionRunActive, it as shouldIgnorePostCompletionAnnounceForSession, nt as replaceSubagentRunAfterSteer, rt as resolveRequesterForChildSession, tt as listSubagentRunsForRequester } from "./model-selection-
|
|
4
|
+
import { $ as countPendingDescendantRunsExcludingRun, Q as countPendingDescendantRuns, Z as countActiveDescendantRuns, et as isSubagentSessionRunActive, it as shouldIgnorePostCompletionAnnounceForSession, nt as replaceSubagentRunAfterSteer, rt as resolveRequesterForChildSession, tt as listSubagentRunsForRequester } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { countActiveDescendantRuns, countPendingDescendantRuns, countPendingDescendantRunsExcludingRun, isSubagentSessionRunActive, listSubagentRunsForRequester, replaceSubagentRunAfterSteer, resolveRequesterForChildSession, shouldIgnorePostCompletionAnnounceForSession };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { R as resolveStorePath, fn as normalizeAgentId, ln as buildGroupHistoryKey, on as DEFAULT_MAIN_KEY, sn as buildAgentMainSessionKey } from "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import { B as shouldLogVerbose, C as sleep, K as getChildLogger, M as defaultRuntime, O as createSubsystemLogger, R as logVerbose, T as toWhatsappJid, h as normalizeE164, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164 } from "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { $r as saveMediaBuffer, A as getReplyFromConfig, C as resolveMentionGating, Cn as resolveDefaultGroupPolicy, Cr as readWebSelfId, D as buildHistoryContextFromEntries, Dn as resolveChunkMode, Dr as webAuthExists, Dt as toLocationContext, E as shouldAckReactionForWhatsApp, Ei as resolveMessagePrefix, En as chunkMarkdownTextWithMode, Et as formatLocationText, G as buildMentionRegexes, Gn as registerUnhandledRejectionHandler, H as resolveInboundDebounceMs, K as normalizeMentionText, O as recordPendingHistoryEntryIfEnabled, On as resolveTextChunkLimit, Or as resolveChannelGroupPolicy, Qn as recordSessionMetaFromInbound, S as issuePairingChallenge, St as createDedupeCache, T as createReplyPrefixOptions, Ti as resolveIdentityNamePrefix, Tn as warnMissingProviderGroupPolicyFallbackOnce, Tt as parseActivationCommand, U as hasControlCommand, V as createInboundDebouncer, W as shouldComputeCommandAuthorized, Zn as loadSessionStore, _r as getWebAuthAgeMs, an as readStoreAllowFromForDmPolicy, b as dispatchReplyWithBufferedBlockDispatcher, bn as resolveMarkdownTableMode, bt as computeBackoff, cn as resolvePinnedMainDmOwnerFromAllowlist, dn as deriveLastRoutePolicy, er as updateLastRoute, f as setActiveWebListener, fn as resolveAgentRoute, gr as WA_WEB_AUTH_DIR, hn as formatDurationPrecise, hr as resolveWhatsAppMediaMaxBytes, jr as resolveGroupSessionKey, k as formatInboundEnvelope, kn as loadWebMedia, kr as resolveChannelGroupRequireMention, ln as upsertChannelPairingRequest, mn as enqueueSystemEvent, mr as resolveWhatsAppAccount, on as resolveDmGroupAccessWithCommandGate, p as resolveInboundSessionEnvelopeContext, pi as loadConfig, pn as resolveInboundLastRouteSessionKey, qn as getAgentScopedMediaLocalRoots, sn as resolveDmGroupAccessWithLists, un as buildAgentSessionKey, vi as formatCliCommand, vn as convertMarkdownTables, vr as logWebSelfId, wn as resolveOpenProviderRuntimeGroupPolicy, wt as normalizeGroupActivation, xr as pickWebChannel, xt as sleepWithAbort, y as createConnectedChannelStatusPatch, yn as recordChannelActivity, z as finalizeInboundContext } from "./model-selection-
|
|
4
|
+
import { $r as saveMediaBuffer, A as getReplyFromConfig, C as resolveMentionGating, Cn as resolveDefaultGroupPolicy, Cr as readWebSelfId, D as buildHistoryContextFromEntries, Dn as resolveChunkMode, Dr as webAuthExists, Dt as toLocationContext, E as shouldAckReactionForWhatsApp, Ei as resolveMessagePrefix, En as chunkMarkdownTextWithMode, Et as formatLocationText, G as buildMentionRegexes, Gn as registerUnhandledRejectionHandler, H as resolveInboundDebounceMs, K as normalizeMentionText, O as recordPendingHistoryEntryIfEnabled, On as resolveTextChunkLimit, Or as resolveChannelGroupPolicy, Qn as recordSessionMetaFromInbound, S as issuePairingChallenge, St as createDedupeCache, T as createReplyPrefixOptions, Ti as resolveIdentityNamePrefix, Tn as warnMissingProviderGroupPolicyFallbackOnce, Tt as parseActivationCommand, U as hasControlCommand, V as createInboundDebouncer, W as shouldComputeCommandAuthorized, Zn as loadSessionStore, _r as getWebAuthAgeMs, an as readStoreAllowFromForDmPolicy, b as dispatchReplyWithBufferedBlockDispatcher, bn as resolveMarkdownTableMode, bt as computeBackoff, cn as resolvePinnedMainDmOwnerFromAllowlist, dn as deriveLastRoutePolicy, er as updateLastRoute, f as setActiveWebListener, fn as resolveAgentRoute, gr as WA_WEB_AUTH_DIR, hn as formatDurationPrecise, hr as resolveWhatsAppMediaMaxBytes, jr as resolveGroupSessionKey, k as formatInboundEnvelope, kn as loadWebMedia, kr as resolveChannelGroupRequireMention, ln as upsertChannelPairingRequest, mn as enqueueSystemEvent, mr as resolveWhatsAppAccount, on as resolveDmGroupAccessWithCommandGate, p as resolveInboundSessionEnvelopeContext, pi as loadConfig, pn as resolveInboundLastRouteSessionKey, qn as getAgentScopedMediaLocalRoots, sn as resolveDmGroupAccessWithLists, un as buildAgentSessionKey, vi as formatCliCommand, vn as convertMarkdownTables, vr as logWebSelfId, wn as resolveOpenProviderRuntimeGroupPolicy, wt as normalizeGroupActivation, xr as pickWebChannel, xt as sleepWithAbort, y as createConnectedChannelStatusPatch, yn as recordChannelActivity, z as finalizeInboundContext } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session
|
|
8
|
-
import { i as markdownToWhatsApp, r as sendReactionWhatsApp, t as sendMessageWhatsApp } from "./send-
|
|
9
|
-
import { t as loginWeb } from "./login-
|
|
7
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-CbQ43pUq.js";
|
|
8
|
+
import { i as markdownToWhatsApp, r as sendReactionWhatsApp, t as sendMessageWhatsApp } from "./send-DGQUY-kp.js";
|
|
9
|
+
import { t as loginWeb } from "./login-xsvrgJJt.js";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
12
12
|
const DEFAULT_RECONNECT_POLICY = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { Bt as createActionGate, Ht as readReactionParams, Ut as readStringParam, Vt as jsonResult, mr as resolveWhatsAppAccount, pr as resolveWhatsAppOutboundTarget, zt as ToolAuthorizationError } from "./model-selection-
|
|
4
|
+
import { Bt as createActionGate, Ht as readReactionParams, Ut as readStringParam, Vt as jsonResult, mr as resolveWhatsAppAccount, pr as resolveWhatsAppOutboundTarget, zt as ToolAuthorizationError } from "./model-selection-BQm6_iuT.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
|
-
import { r as sendReactionWhatsApp } from "./send-
|
|
7
|
+
import { r as sendReactionWhatsApp } from "./send-DGQUY-kp.js";
|
|
8
8
|
//#region src/agents/tools/whatsapp-target-auth.ts
|
|
9
9
|
function resolveAuthorizedWhatsAppOutboundTarget(params) {
|
|
10
10
|
const account = resolveWhatsAppAccount({
|
package/package.json
CHANGED
|
@@ -109,8 +109,11 @@ echo -e "${BLUE}🔄 正在从源码复制文件到实例根目录...${NC}"
|
|
|
109
109
|
echo -e "${YELLOW}源码路径: ${SOURCE_CODE}${NC}"
|
|
110
110
|
echo -e "${YELLOW}目标路径: ${INSTANCE_DIR}${NC}"
|
|
111
111
|
|
|
112
|
-
#
|
|
113
|
-
|
|
112
|
+
# 清理已存在的实例目录(如果存在)
|
|
113
|
+
if [ -d "$INSTANCE_DIR" ]; then
|
|
114
|
+
echo -e "${YELLOW}⚠️ 清理旧实例目录...${NC}"
|
|
115
|
+
rm -rf "$INSTANCE_DIR"
|
|
116
|
+
fi
|
|
114
117
|
|
|
115
118
|
# 复制源码所有内容到实例根目录
|
|
116
119
|
if cp -r "${SOURCE_CODE}/." "${INSTANCE_DIR}/"; then
|