@guadskill/openclaw-proxy 2026.3.8 → 2026.3.9
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-CqbpJICd.js → audio-preflight-DbDIZaaN.js} +4 -4
- package/dist/{audio-transcription-runner-EQqd2K8L.js → audio-transcription-runner-DX0Waokh.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-BKmthESk.js → chrome-CMibSHuV.js} +8 -8
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{command-registry-BSFcUzBH.js → command-registry-CrsK0cpv.js} +7 -7
- package/dist/{compact.runtime-CMZ_UYyk.js → compact.runtime-DdbMKiHW.js} +6 -6
- package/dist/{completion-cli-zIdVRdtd.js → completion-cli-Bg8nShmO.js} +1 -1
- package/dist/{completion-cli-BdQTDV8t.js → completion-cli-D1eUD4z0.js} +2 -2
- package/dist/{config-cli-B_kqtEhR.js → config-cli-C8aGIdsa.js} +1 -1
- package/dist/{config-cli-Co-3YWh2.js → config-cli-DfABZZJ1.js} +1 -1
- package/dist/{configure-B075hG1k.js → configure-PWOO1SWf.js} +1 -1
- package/dist/{configure-DZlhkqdz.js → configure-tNoPV8AJ.js} +1 -1
- package/dist/{daemon-cli-Do2eSRFn.js → daemon-cli-Ckhi3S0x.js} +5 -5
- package/dist/{daemon-cli-CG5pDkoX.js → daemon-cli-Di0mFZWs.js} +5 -5
- package/dist/daemon-cli.js +2 -1
- package/dist/{daemon-install-BjTbptxg.js → daemon-install-B2fT93a3.js} +1 -1
- package/dist/{daemon-install-B4g7CJzN.js → daemon-install-CWpghW8k.js} +1 -1
- package/dist/{deliver-D-x487kv.js → deliver-DBsYfyHP.js} +1 -1
- package/dist/{deliver-runtime-gs8PEJHW.js → deliver-runtime-Yz8xsseU.js} +3 -3
- package/dist/{deps-send-whatsapp.runtime-D9cBUcGe.js → deps-send-whatsapp.runtime-Mb5nI79S.js} +7 -7
- package/dist/{diagnostics-Dw5hxDHb.js → diagnostics-CJLP-HQK.js} +1 -1
- package/dist/{diagnostics-u_S7lLCk.js → diagnostics-g4kCl3Wr.js} +1 -1
- package/dist/{doctor-completion-B6bMdoGq.js → doctor-completion-B7MotNqQ.js} +1 -1
- package/dist/{doctor-completion-CiTouDxa.js → doctor-completion-DmWeZX0M.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-cli-CvjTLXzw.js → exec-approvals-cli-DzmNRLok.js} +2 -2
- package/dist/{exec-approvals-cli-BK_ejDaD.js → exec-approvals-cli-sNZ1MCrZ.js} +2 -2
- package/dist/extensionAPI.js +6 -6
- package/dist/{gateway-cli-mzHefPu4.js → gateway-cli-B-C_BUeg.js} +9 -9
- package/dist/{gateway-cli-CtTyvNJX.js → gateway-cli-DuJgUJEo.js} +9 -9
- package/dist/{image-BH87HyHn.js → image-Nk4Z8dsI.js} +1 -1
- package/dist/{image-runtime-RUsR--QR.js → image-runtime-koB5Zl5s.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{inspect-Dh5RAT00.js → inspect-BESssF_o.js} +1 -1
- package/dist/{inspect-CMCnRCVS.js → inspect-BLDaR51z.js} +1 -1
- package/dist/{lifecycle-core-DVonEIX9.js → lifecycle-core-BDRJ-gZl.js} +2 -2
- package/dist/{lifecycle-core-Ca5M7Y1g.js → lifecycle-core-Cuioj9RE.js} +2 -2
- package/dist/{node-cli-CFVMySsa.js → node-cli-C9unxcj_.js} +4 -4
- package/dist/{node-cli-7BhLJK9j.js → node-cli-DCokZ5VQ.js} +4 -4
- package/dist/{node-service-DL27mRHp.js → node-service-DCfQospz.js} +1 -1
- package/dist/{node-service-1uAmWTe6.js → node-service-DhooZn04.js} +1 -1
- package/dist/{onboard-o8utng4a.js → onboard-CI27VpfB.js} +2 -2
- package/dist/{onboard-Btcvgez6.js → onboard-DQpNrN8f.js} +2 -2
- package/dist/{onboarding-DkwDhIMb.js → onboarding-BV3dioI3.js} +1 -1
- package/dist/{onboarding-BNW8Mw64.js → onboarding-bSVnEk-q.js} +1 -1
- package/dist/{onboarding.finalize-D23ut0o-.js → onboarding.finalize-CthILcfJ.js} +5 -5
- package/dist/{onboarding.finalize-l2v6AhHn.js → onboarding.finalize-V311LPsU.js} +4 -4
- package/dist/{pi-embedded-NHtVbVqt.js → pi-embedded-DhjXWD5O.js} +25 -25
- package/dist/{pi-embedded-helpers-o22sdqT_.js → pi-embedded-helpers-CSodYzr7.js} +3 -3
- package/dist/plugin-sdk/feishu.js +2 -2
- package/dist/plugin-sdk/googlechat.js +2 -2
- package/dist/plugin-sdk/zalo.js +2 -2
- package/dist/plugin-sdk/zalouser.js +2 -2
- package/dist/{program-CprZGioA.js → program-DslcDMLC.js} +2 -2
- package/dist/{program-context-CS5584sI.js → program-context-BCkMeZ0D.js} +12 -12
- package/dist/{prompt-select-styled-B9GiK_E1.js → prompt-select-styled-C0PnL2-4.js} +5 -5
- package/dist/{prompt-select-styled-BrT_7sIE.js → prompt-select-styled-DtsNnfFy.js} +5 -5
- package/dist/{pw-ai-MWIrQHO4.js → pw-ai-DZOmcrIm.js} +1 -1
- package/dist/{register.configure-B2nMwGLv.js → register.configure-COPz8XYt.js} +2 -2
- package/dist/{register.configure-mb0bcI2H.js → register.configure-NmyxXY5V.js} +2 -2
- package/dist/{register.maintenance-BpEGf495.js → register.maintenance-CEk4B6v4.js} +8 -8
- package/dist/{register.maintenance-CJL2RNVj.js → register.maintenance-CyYEm7iS.js} +7 -7
- package/dist/{register.onboard-DUSDTS78.js → register.onboard-2PhRDQTS.js} +2 -2
- package/dist/{register.onboard-CZ9REq-8.js → register.onboard-BP9GuZks.js} +2 -2
- package/dist/{register.setup-B6hNcK-U.js → register.setup-CprZSMEV.js} +2 -2
- package/dist/{register.setup-KfjNQHCt.js → register.setup-Ni4737D9.js} +2 -2
- package/dist/{register.status-health-sessions-DvrR3lZO.js → register.status-health-sessions-BpTP5AfU.js} +4 -4
- package/dist/{register.status-health-sessions-BEFmvneI.js → register.status-health-sessions-HgeTqr9l.js} +4 -4
- package/dist/{register.subclis-DRHcGmi5.js → register.subclis-CXGjQuPd.js} +6 -6
- package/dist/{run-main-DpB0_oyS.js → run-main-CHHrSCWI.js} +6 -6
- package/dist/{service-DlryhLGk.js → service-CkeyjKgU.js} +2 -1
- package/dist/{service-Co0eCoXP.js → service-VB8hrx3m.js} +2 -1
- package/dist/{shared-D_HoYmk8.js → shared-Bto9UlKB.js} +1 -1
- package/dist/{shared-CihPvfSx.js → shared-DFIymKVc.js} +1 -1
- package/dist/{slash-dispatch.runtime-Du0T-jw8.js → slash-dispatch.runtime--1geVpWH.js} +6 -6
- package/dist/{status-CvfQTLht.js → status-BvATDhyx.js} +3 -3
- package/dist/{status-yIwujPsG.js → status-gmvLzqWY.js} +3 -3
- package/dist/{subagent-registry-runtime-BX7PeNcG.js → subagent-registry-runtime-BF8LA25p.js} +6 -6
- package/dist/{systemd-hints-DXRwYsJ0.js → systemd-hints-B1wK4V9O.js} +1 -1
- package/dist/{systemd-hints-BSdjRdbD.js → systemd-hints-C8DMAujY.js} +1 -1
- package/dist/{update-cli-CUmtD5Vu.js → update-cli-BKMUoIZY.js} +10 -10
- package/dist/{update-cli-B8syns8k.js → update-cli-ByxIfOIf.js} +9 -9
- package/dist/{web-CuWkibTO.js → web-DUmwaFF8.js} +6 -6
- package/package.json +1 -1
|
@@ -137,30 +137,30 @@ import { a as buildBaseHints, i as applySensitiveHints, n as redactConfigSnapsho
|
|
|
137
137
|
import "./daemon-install-helpers-ScsMdtM-.js";
|
|
138
138
|
import "./gateway-install-token-CSpOrS5b.js";
|
|
139
139
|
import "./systemd-CF1Vay4a.js";
|
|
140
|
-
import "./service-
|
|
141
|
-
import "./lifecycle-core-
|
|
142
|
-
import "./systemd-hints-
|
|
140
|
+
import "./service-CkeyjKgU.js";
|
|
141
|
+
import "./lifecycle-core-Cuioj9RE.js";
|
|
142
|
+
import "./systemd-hints-B1wK4V9O.js";
|
|
143
143
|
import { t as parsePort$1 } from "./parse-port-Vm8F7Kus.js";
|
|
144
|
-
import { n as addGatewayServiceCommands } from "./daemon-cli-
|
|
144
|
+
import { n as addGatewayServiceCommands } from "./daemon-cli-Ckhi3S0x.js";
|
|
145
145
|
import { t as probeGateway } from "./probe-EYjJQI0Q.js";
|
|
146
|
-
import "./diagnostics-
|
|
146
|
+
import "./diagnostics-g4kCl3Wr.js";
|
|
147
147
|
import "./table-CQ1N3VVM.js";
|
|
148
148
|
import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } from "./widearea-dns-DP95NS-j.js";
|
|
149
|
-
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-
|
|
149
|
+
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-DFIymKVc.js";
|
|
150
150
|
import { t as discoverGatewayBeacons } from "./bonjour-discovery-Cuz62Jgh.js";
|
|
151
151
|
import { t as resolveConfiguredSecretInputString } from "./resolve-configured-secret-input-string-CMFsuuNB.js";
|
|
152
|
-
import { n as getStatusSummary, r as pickGatewaySelfPresence } from "./status-
|
|
152
|
+
import { n as getStatusSummary, r as pickGatewaySelfPresence } from "./status-gmvLzqWY.js";
|
|
153
153
|
import { a as styleHealthChannelLine, c as setHeartbeatsEnabled, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines, u as isCronSystemEvent } from "./health-DtKnpxWq.js";
|
|
154
154
|
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-CRg5Sl3v.js";
|
|
155
155
|
import { h as normalizeUpdateChannel, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-hMGr49iu.js";
|
|
156
156
|
import { a as resolveCommandSecretsFromActiveRuntimeSnapshot, i as prepareSecretsRuntimeSnapshot, n as clearSecretsRuntimeSnapshot, r as getActiveSecretsRuntimeSnapshot, t as activateSecretsRuntimeSnapshot } from "./runtime-CaCobclI.js";
|
|
157
157
|
import "./onboarding.secret-input-BsP7EAhV.js";
|
|
158
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
158
|
+
import { t as runOnboardingWizard } from "./onboarding-bSVnEk-q.js";
|
|
159
159
|
import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-BSW1aeZq.js";
|
|
160
160
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-BiZTsU9O.js";
|
|
161
161
|
import { n as isNodeCommandAllowed, r as resolveNodeCommandAllowlist } from "./node-command-policy-DrA4ZCZD.js";
|
|
162
162
|
import { n as collectEnabledInsecureOrDangerousFlags } from "./audit-B_em7hqq.js";
|
|
163
|
-
import "./node-service-
|
|
163
|
+
import "./node-service-DhooZn04.js";
|
|
164
164
|
import "./status.update-CxjuA592.js";
|
|
165
165
|
import { t as installSkill } from "./skills-install-6hfH8rW4.js";
|
|
166
166
|
import { t as runGatewayUpdate } from "./update-runner-DcsVPetI.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mt as resolveAgentModelPrimaryValue, pt as resolveAgentModelFallbackValues } from "./run-with-concurrency-Bs9-HnHw.js";
|
|
2
2
|
import { f as isRecord, x as shortenHomeInString } from "./logger-03l-fZAz.js";
|
|
3
3
|
import { A as requireApiKey, O as getApiKeyForModel, Z as loadConfig, Zn as applyConfigEnvVars, _ as resolveImplicitBedrockProvider, fr as resolveOpenClawAgentDir, g as normalizeProviders, v as resolveImplicitCopilotProvider, xr as normalizeSecretInput, y as resolveImplicitProviders } from "./model-selection-cS_zSy97.js";
|
|
4
|
-
import { P as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
4
|
+
import { P as sanitizeUserFacingText } from "./pi-embedded-helpers-CSodYzr7.js";
|
|
5
5
|
import { n as redactToolDetail } from "./redact-COiNLRqA.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -8,8 +8,8 @@ import "./accounts-UwV5AIRM.js";
|
|
|
8
8
|
import "./plugins-DVUzcEPT.js";
|
|
9
9
|
import "./accounts-CdWRqpfK.js";
|
|
10
10
|
import "./image-ops-DVXcAqlu.js";
|
|
11
|
-
import "./pi-embedded-helpers-
|
|
12
|
-
import "./chrome-
|
|
11
|
+
import "./pi-embedded-helpers-CSodYzr7.js";
|
|
12
|
+
import "./chrome-CMibSHuV.js";
|
|
13
13
|
import "./skills-C2hKwiN4.js";
|
|
14
14
|
import "./path-alias-guards-Ba9jvI-u.js";
|
|
15
15
|
import "./redact-COiNLRqA.js";
|
|
@@ -20,6 +20,6 @@ import "./store-D6GdUBYO.js";
|
|
|
20
20
|
import "./accounts-DjqGHhCq.js";
|
|
21
21
|
import "./paths-DCMEFJb9.js";
|
|
22
22
|
import "./tool-images-CUV07CW3.js";
|
|
23
|
-
import { t as describeImageWithModel } from "./image-
|
|
23
|
+
import { t as describeImageWithModel } from "./image-Nk4Z8dsI.js";
|
|
24
24
|
|
|
25
25
|
export { describeImageWithModel };
|
package/dist/index.js
CHANGED
|
@@ -119,7 +119,7 @@ import { t as isMainModule } from "./is-main-BKnVb2S7.js";
|
|
|
119
119
|
import { t as ensureOpenClawCliOnPath } from "./path-env-BLEmQl_v.js";
|
|
120
120
|
import { t as assertSupportedRuntime } from "./runtime-guard-CkHll-l1.js";
|
|
121
121
|
import "./ports-BERQp3mU.js";
|
|
122
|
-
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-
|
|
122
|
+
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-BCkMeZ0D.js";
|
|
123
123
|
import "./plugin-registry-Vw97I_gW.js";
|
|
124
124
|
import { n as resolveCliChannelOptions } from "./channel-options-wDgmRTei.js";
|
|
125
125
|
import process$1 from "node:process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as GATEWAY_SERVICE_MARKER, m as resolveGatewayWindowsTaskName, p as resolveGatewaySystemdServiceName, r as GATEWAY_SERVICE_KIND, u as resolveGatewayLaunchAgentLabel } from "./arg-split-BFqTUfhW.js";
|
|
2
|
-
import { n as execSchtasks } from "./service-
|
|
2
|
+
import { n as execSchtasks } from "./service-CkeyjKgU.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as GATEWAY_SERVICE_MARKER, m as resolveGatewayWindowsTaskName, p as resolveGatewaySystemdServiceName, r as GATEWAY_SERVICE_KIND, u as resolveGatewayLaunchAgentLabel } from "./arg-split-BCMOiDRb.js";
|
|
2
|
-
import { n as execSchtasks } from "./service-
|
|
2
|
+
import { n as execSchtasks } from "./service-VB8hrx3m.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fsPromises from "node:fs/promises";
|
|
5
5
|
|
|
@@ -5,8 +5,8 @@ import { n as resolveGatewayCredentialsFromConfig, t as isGatewaySecretRefUnavai
|
|
|
5
5
|
import { m as resolveGatewayWindowsTaskName, p as resolveGatewaySystemdServiceName, u as resolveGatewayLaunchAgentLabel } from "./arg-split-BCMOiDRb.js";
|
|
6
6
|
import { t as isWSL } from "./wsl-Dd7vjPIH.js";
|
|
7
7
|
import { r as isSystemdUserServiceAvailable } from "./systemd-QfmEIyC_.js";
|
|
8
|
-
import { c as resolveGatewayLogPaths } from "./service-
|
|
9
|
-
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-
|
|
8
|
+
import { c as resolveGatewayLogPaths } from "./service-VB8hrx3m.js";
|
|
9
|
+
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-C8DMAujY.js";
|
|
10
10
|
import { t as parsePort } from "./parse-port-DnJYkByg.js";
|
|
11
11
|
import { Writable } from "node:stream";
|
|
12
12
|
|
|
@@ -7,8 +7,8 @@ import { n as resolveGatewayCredentialsFromConfig, t as isGatewaySecretRefUnavai
|
|
|
7
7
|
import { t as isWSL } from "./wsl-Dk6WfABt.js";
|
|
8
8
|
import { m as resolveGatewayWindowsTaskName, p as resolveGatewaySystemdServiceName, u as resolveGatewayLaunchAgentLabel } from "./arg-split-BFqTUfhW.js";
|
|
9
9
|
import { r as isSystemdUserServiceAvailable } from "./systemd-CF1Vay4a.js";
|
|
10
|
-
import { c as resolveGatewayLogPaths } from "./service-
|
|
11
|
-
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-
|
|
10
|
+
import { c as resolveGatewayLogPaths } from "./service-CkeyjKgU.js";
|
|
11
|
+
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-B1wK4V9O.js";
|
|
12
12
|
import { t as parsePort } from "./parse-port-Vm8F7Kus.js";
|
|
13
13
|
import { Writable } from "node:stream";
|
|
14
14
|
|
|
@@ -47,12 +47,12 @@ import { a as buildNodeServiceEnvironment, i as emitNodeRuntimeWarning, m as res
|
|
|
47
47
|
import "./runtime-guard-kzIyHhvr.js";
|
|
48
48
|
import { r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-9oDBR7YW.js";
|
|
49
49
|
import "./systemd-QfmEIyC_.js";
|
|
50
|
-
import { c as resolveGatewayLogPaths } from "./service-
|
|
51
|
-
import { a as createCliStatusTextStyles, f as resolveRuntimeStatusColor, g as installDaemonServiceAndEmit, h as createDaemonActionContext, i as runServiceUninstall, m as buildDaemonServiceSnapshot, r as runServiceStop, t as runServiceRestart } from "./lifecycle-core-
|
|
52
|
-
import { s as formatRuntimeStatus } from "./systemd-hints-
|
|
50
|
+
import { c as resolveGatewayLogPaths } from "./service-VB8hrx3m.js";
|
|
51
|
+
import { a as createCliStatusTextStyles, f as resolveRuntimeStatusColor, g as installDaemonServiceAndEmit, h as createDaemonActionContext, i as runServiceUninstall, m as buildDaemonServiceSnapshot, r as runServiceStop, t as runServiceRestart } from "./lifecycle-core-BDRJ-gZl.js";
|
|
52
|
+
import { s as formatRuntimeStatus } from "./systemd-hints-C8DMAujY.js";
|
|
53
53
|
import { t as parsePort } from "./parse-port-DnJYkByg.js";
|
|
54
54
|
import { i as NODE_SYSTEM_RUN_COMMANDS, n as NODE_EXEC_APPROVALS_COMMANDS, t as NODE_BROWSER_PROXY_COMMAND } from "./node-commands-CBavBUhj.js";
|
|
55
|
-
import { t as resolveNodeService } from "./node-service-
|
|
55
|
+
import { t as resolveNodeService } from "./node-service-DCfQospz.js";
|
|
56
56
|
import { spawn, spawnSync } from "node:child_process";
|
|
57
57
|
import path from "node:path";
|
|
58
58
|
import fs from "node:fs";
|
|
@@ -50,12 +50,12 @@ import "./runtime-guard-CkHll-l1.js";
|
|
|
50
50
|
import { a as buildNodeServiceEnvironment, i as emitNodeRuntimeWarning, m as resolveNodeProgramArguments, r as resolveGatewayDevMode, u as resolvePreferredNodePath } from "./daemon-install-helpers-ScsMdtM-.js";
|
|
51
51
|
import { r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-B7Tmba31.js";
|
|
52
52
|
import "./systemd-CF1Vay4a.js";
|
|
53
|
-
import { c as resolveGatewayLogPaths } from "./service-
|
|
54
|
-
import { a as createCliStatusTextStyles, f as resolveRuntimeStatusColor, g as installDaemonServiceAndEmit, h as createDaemonActionContext, i as runServiceUninstall, m as buildDaemonServiceSnapshot, r as runServiceStop, t as runServiceRestart } from "./lifecycle-core-
|
|
55
|
-
import { s as formatRuntimeStatus } from "./systemd-hints-
|
|
53
|
+
import { c as resolveGatewayLogPaths } from "./service-CkeyjKgU.js";
|
|
54
|
+
import { a as createCliStatusTextStyles, f as resolveRuntimeStatusColor, g as installDaemonServiceAndEmit, h as createDaemonActionContext, i as runServiceUninstall, m as buildDaemonServiceSnapshot, r as runServiceStop, t as runServiceRestart } from "./lifecycle-core-Cuioj9RE.js";
|
|
55
|
+
import { s as formatRuntimeStatus } from "./systemd-hints-B1wK4V9O.js";
|
|
56
56
|
import { t as parsePort } from "./parse-port-Vm8F7Kus.js";
|
|
57
57
|
import { i as NODE_SYSTEM_RUN_COMMANDS, n as NODE_EXEC_APPROVALS_COMMANDS, t as NODE_BROWSER_PROXY_COMMAND } from "./node-commands-BB0F4hRZ.js";
|
|
58
|
-
import { t as resolveNodeService } from "./node-service-
|
|
58
|
+
import { t as resolveNodeService } from "./node-service-DhooZn04.js";
|
|
59
59
|
import fs from "node:fs";
|
|
60
60
|
import path from "node:path";
|
|
61
61
|
import fs$1 from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as resolveNodeSystemdServiceName, c as NODE_WINDOWS_TASK_SCRIPT_NAME, g as resolveNodeLaunchAgentLabel, o as NODE_SERVICE_KIND, s as NODE_SERVICE_MARKER, v as resolveNodeWindowsTaskName } from "./arg-split-BCMOiDRb.js";
|
|
2
|
-
import { t as resolveGatewayService } from "./service-
|
|
2
|
+
import { t as resolveGatewayService } from "./service-VB8hrx3m.js";
|
|
3
3
|
|
|
4
4
|
//#region src/daemon/node-service.ts
|
|
5
5
|
function withNodeServiceEnv(env) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as resolveNodeSystemdServiceName, c as NODE_WINDOWS_TASK_SCRIPT_NAME, g as resolveNodeLaunchAgentLabel, o as NODE_SERVICE_KIND, s as NODE_SERVICE_MARKER, v as resolveNodeWindowsTaskName } from "./arg-split-BFqTUfhW.js";
|
|
2
|
-
import { t as resolveGatewayService } from "./service-
|
|
2
|
+
import { t as resolveGatewayService } from "./service-CkeyjKgU.js";
|
|
3
3
|
|
|
4
4
|
//#region src/daemon/node-service.ts
|
|
5
5
|
function withNodeServiceEnv(env) {
|
|
@@ -8,7 +8,7 @@ import { t as WizardCancelledError } from "./prompts-ULYkmWPj.js";
|
|
|
8
8
|
import { t as createClackPrompter } from "./clack-prompter-DreZeG8D.js";
|
|
9
9
|
import { t as assertSupportedRuntime } from "./runtime-guard-kzIyHhvr.js";
|
|
10
10
|
import { t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-9oDBR7YW.js";
|
|
11
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
11
|
+
import { t as runOnboardingWizard } from "./onboarding-BV3dioI3.js";
|
|
12
12
|
import { n as logConfigUpdated } from "./logging-Cs4gi49x.js";
|
|
13
13
|
import { i as normalizeLegacyOnboardAuthChoice, r as isDeprecatedAuthChoice, t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-BCpV8eT0.js";
|
|
14
14
|
import { t as applyOnboardingLocalWorkspaceConfig } from "./onboard-config-Cg5gnY9A.js";
|
|
@@ -276,7 +276,7 @@ async function runNonInteractiveOnboardingLocal(params) {
|
|
|
276
276
|
logConfigUpdated(runtime);
|
|
277
277
|
await ensureWorkspaceAndSessions(workspaceDir, runtime, { skipBootstrap: Boolean(nextConfig.agents?.defaults?.skipBootstrap) });
|
|
278
278
|
if (opts.installDaemon) {
|
|
279
|
-
const { installGatewayDaemonNonInteractive } = await import("./daemon-install-
|
|
279
|
+
const { installGatewayDaemonNonInteractive } = await import("./daemon-install-B2fT93a3.js");
|
|
280
280
|
await installGatewayDaemonNonInteractive({
|
|
281
281
|
nextConfig,
|
|
282
282
|
opts,
|
|
@@ -9,7 +9,7 @@ import { t as assertSupportedRuntime } from "./runtime-guard-CkHll-l1.js";
|
|
|
9
9
|
import { t as WizardCancelledError } from "./prompts-BUM8PGwR.js";
|
|
10
10
|
import { t as createClackPrompter } from "./clack-prompter-CY8wEoSQ.js";
|
|
11
11
|
import { t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-B7Tmba31.js";
|
|
12
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
12
|
+
import { t as runOnboardingWizard } from "./onboarding-bSVnEk-q.js";
|
|
13
13
|
import { n as logConfigUpdated } from "./logging-BG0MVb1_.js";
|
|
14
14
|
import { i as normalizeLegacyOnboardAuthChoice, r as isDeprecatedAuthChoice, t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-DNRmUdMN.js";
|
|
15
15
|
import { t as applyOnboardingLocalWorkspaceConfig } from "./onboard-config-15UFqACB.js";
|
|
@@ -277,7 +277,7 @@ async function runNonInteractiveOnboardingLocal(params) {
|
|
|
277
277
|
logConfigUpdated(runtime);
|
|
278
278
|
await ensureWorkspaceAndSessions(workspaceDir, runtime, { skipBootstrap: Boolean(nextConfig.agents?.defaults?.skipBootstrap) });
|
|
279
279
|
if (opts.installDaemon) {
|
|
280
|
-
const { installGatewayDaemonNonInteractive } = await import("./daemon-install-
|
|
280
|
+
const { installGatewayDaemonNonInteractive } = await import("./daemon-install-CWpghW8k.js");
|
|
281
281
|
await installGatewayDaemonNonInteractive({
|
|
282
282
|
nextConfig,
|
|
283
283
|
opts,
|
|
@@ -358,7 +358,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
358
358
|
mode
|
|
359
359
|
});
|
|
360
360
|
await writeConfigFile(nextConfig);
|
|
361
|
-
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-
|
|
361
|
+
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-CthILcfJ.js");
|
|
362
362
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
363
363
|
flow,
|
|
364
364
|
opts,
|
|
@@ -359,7 +359,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
359
359
|
mode
|
|
360
360
|
});
|
|
361
361
|
await writeConfigFile(nextConfig);
|
|
362
|
-
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-
|
|
362
|
+
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-V311LPsU.js");
|
|
363
363
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
364
364
|
flow,
|
|
365
365
|
opts,
|
|
@@ -109,22 +109,22 @@ import "./cli-utils-CI_KkT8q.js";
|
|
|
109
109
|
import "./help-format-B08o9IQj.js";
|
|
110
110
|
import "./progress-BNL5DRrQ.js";
|
|
111
111
|
import "./note-CSNRHYey.js";
|
|
112
|
-
import { r as installCompletion } from "./completion-cli-
|
|
113
|
-
import "./register.subclis-
|
|
114
|
-
import "./command-registry-
|
|
112
|
+
import { r as installCompletion } from "./completion-cli-D1eUD4z0.js";
|
|
113
|
+
import "./register.subclis-CXGjQuPd.js";
|
|
114
|
+
import "./command-registry-CrsK0cpv.js";
|
|
115
115
|
import "./program-context-Ccaxp4DE.js";
|
|
116
116
|
import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-BWyx8Sx7.js";
|
|
117
117
|
import "./runtime-guard-kzIyHhvr.js";
|
|
118
118
|
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-9oDBR7YW.js";
|
|
119
119
|
import { t as resolveGatewayInstallToken } from "./gateway-install-token-DUJ-X-CS.js";
|
|
120
120
|
import { r as isSystemdUserServiceAvailable } from "./systemd-QfmEIyC_.js";
|
|
121
|
-
import { r as isPm2Available, t as resolveGatewayService } from "./service-
|
|
121
|
+
import { r as isPm2Available, t as resolveGatewayService } from "./service-VB8hrx3m.js";
|
|
122
122
|
import "./resolve-configured-secret-input-string-DvKJxAtp.js";
|
|
123
123
|
import { r as healthCommand } from "./health-CqfjbU3N.js";
|
|
124
124
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-B1qVA62q.js";
|
|
125
125
|
import { t as resolveOnboardingSecretInputString } from "./onboarding.secret-input-yXmtdEMi.js";
|
|
126
126
|
import { t as formatHealthCheckFailure } from "./health-format-VoJWfbo2.js";
|
|
127
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
127
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-DmWeZX0M.js";
|
|
128
128
|
import { t as runTui } from "./tui-o3M_Bbq1.js";
|
|
129
129
|
import os from "node:os";
|
|
130
130
|
import path from "node:path";
|
|
@@ -111,20 +111,20 @@ import "./system-run-command-BU06RvCP.js";
|
|
|
111
111
|
import "./server-lifecycle-C9842N5M.js";
|
|
112
112
|
import "./stagger-DHf-39rR.js";
|
|
113
113
|
import "./runtime-guard-CkHll-l1.js";
|
|
114
|
-
import "./program-context-
|
|
114
|
+
import "./program-context-BCkMeZ0D.js";
|
|
115
115
|
import "./note-BUO8oeHQ.js";
|
|
116
|
-
import { r as installCompletion } from "./completion-cli-
|
|
116
|
+
import { r as installCompletion } from "./completion-cli-Bg8nShmO.js";
|
|
117
117
|
import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-ScsMdtM-.js";
|
|
118
118
|
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-B7Tmba31.js";
|
|
119
119
|
import { t as resolveGatewayInstallToken } from "./gateway-install-token-CSpOrS5b.js";
|
|
120
120
|
import { r as isSystemdUserServiceAvailable } from "./systemd-CF1Vay4a.js";
|
|
121
|
-
import { r as isPm2Available, t as resolveGatewayService } from "./service-
|
|
121
|
+
import { r as isPm2Available, t as resolveGatewayService } from "./service-CkeyjKgU.js";
|
|
122
122
|
import "./resolve-configured-secret-input-string-CMFsuuNB.js";
|
|
123
123
|
import { r as healthCommand } from "./health-DtKnpxWq.js";
|
|
124
124
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-CRg5Sl3v.js";
|
|
125
125
|
import { t as resolveOnboardingSecretInputString } from "./onboarding.secret-input-BsP7EAhV.js";
|
|
126
126
|
import { t as formatHealthCheckFailure } from "./health-format-VF51LMf7.js";
|
|
127
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
127
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-B7MotNqQ.js";
|
|
128
128
|
import { t as runTui } from "./tui-DY3qq1nc.js";
|
|
129
129
|
import os from "node:os";
|
|
130
130
|
import path from "node:path";
|
|
@@ -10,15 +10,15 @@ import { C as createDiscordActionGate, E as normalizeDiscordToken, S as inspectD
|
|
|
10
10
|
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-DpzGLEaw.js";
|
|
11
11
|
import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-Dqd2ItKE.js";
|
|
12
12
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-CAcbtr_w.js";
|
|
13
|
-
import { A as joinPresentTextSegments, C as createReplyToModeFilterForChannel, D as normalizeTargetForProvider, E as normalizeChannelTargetInput, O as getGlobalHookRunner, S as shouldSuppressReasoningPayload, T as buildTargetResolverSignature, _ as applyReplyThreading, a as normalizeReplyPayloadsForDelivery, b as isRenderablePayload, c as splitMediaFromOutput, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as applyReplyTagsToPayload, h as fireAndForgetHook, i as normalizeOutboundPayloadsForJson, k as initializeGlobalHookRunner, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, n as formatOutboundPayloadLog, o as throwIfAborted, p as toPluginMessageContext, r as normalizeOutboundPayloads, s as parseReplyDirectives, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as filterMessagingToolDuplicates, w as resolveReplyToMode, x as shouldSuppressMessagingToolReplies, y as filterMessagingToolMediaDuplicates } from "./deliver-
|
|
13
|
+
import { A as joinPresentTextSegments, C as createReplyToModeFilterForChannel, D as normalizeTargetForProvider, E as normalizeChannelTargetInput, O as getGlobalHookRunner, S as shouldSuppressReasoningPayload, T as buildTargetResolverSignature, _ as applyReplyThreading, a as normalizeReplyPayloadsForDelivery, b as isRenderablePayload, c as splitMediaFromOutput, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as applyReplyTagsToPayload, h as fireAndForgetHook, i as normalizeOutboundPayloadsForJson, k as initializeGlobalHookRunner, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, n as formatOutboundPayloadLog, o as throwIfAborted, p as toPluginMessageContext, r as normalizeOutboundPayloads, s as parseReplyDirectives, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as filterMessagingToolDuplicates, w as resolveReplyToMode, x as shouldSuppressMessagingToolReplies, y as filterMessagingToolMediaDuplicates } from "./deliver-DBsYfyHP.js";
|
|
14
14
|
import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as isDiagnosticsEnabled, i as logMessageProcessed, l as logWebhookProcessed, m as emitDiagnosticEvent, n as logLaneDequeue, o as logSessionStateChange, p as getDiagnosticSessionState, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-DkCNQXnY.js";
|
|
15
15
|
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-CdWRqpfK.js";
|
|
16
16
|
import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-Li6U9bGq.js";
|
|
17
17
|
import { A as mediaKindFromMime, C as imageMimeFromFormat, E as kindFromMime, O as MAX_IMAGE_BYTES, T as isGifMedia, _ as GATEWAY_CLIENT_IDS, b as detectMime, c as INTERNAL_MESSAGE_CHANNEL, d as isInternalMessageChannel, f as isMarkdownCapableMessageChannel, g as resolveMessageChannel, h as resolveGatewayMessageChannel, i as getImageMetadata, l as isDeliverableMessageChannel, m as normalizeMessageChannel, p as listDeliverableMessageChannels, s as resizeToJpeg, u as isGatewayMessageChannel, v as GATEWAY_CLIENT_MODES, w as isAudioFileName, x as extensionForMime, y as GATEWAY_CLIENT_NAMES } from "./image-ops-DVXcAqlu.js";
|
|
18
18
|
import { $ as removeChannelAllowFromStoreEntry, A as expandTextLinks, B as resolveTelegramThreadSpec, C as buildSenderName, D as buildTelegramThreadParams, E as buildTelegramParentPeer, F as resolveTelegramForumThreadId, G as firstDefined$1, H as normalizeAllowFrom$2, I as resolveTelegramGroupAllowFromContext, J as resolveGroupAllowFromSources, K as isSenderIdAllowed, L as resolveTelegramMediaPlaceholder, M as hasBotMention, N as normalizeForwardedContext, O as buildTypingThreadParams, P as resolveTelegramDirectPeerId, Q as readChannelAllowFromStore, R as resolveTelegramReplyId, S as buildSenderLabel, T as buildTelegramGroupPeerId, U as normalizeDmAllowFromWithStore$1, V as isSenderAllowed$1, W as resolveSenderAllowMatch$1, X as toLocationContext, Y as formatLocationText, Z as addChannelAllowFromStoreEntry, _ as splitTelegramCaption, a as reactMessageTelegram, at as isVoiceCompatibleAudio, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, et as upsertChannelPairingRequest, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, it as listPairingChannels, j as extractTelegramLocation, k as describeReplyTarget, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, nt as writeJsonFileAtomically, o as sendMessageTelegram, p as markdownToTelegramHtml, q as mergeDmAllowFromSources, r as deleteMessageTelegram, rt as getPairingAdapter, s as sendPollTelegram, t as buildInlineKeyboard, tt as readJsonFileWithFallback, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildTelegramGroupFrom, x as buildGroupLabel, y as loadCronStore, z as resolveTelegramStreamMode } from "./send-BEOBr-1i.js";
|
|
19
19
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-BFeJ0ZCz.js";
|
|
20
|
-
import { $ as resolveCacheTtlMs$1, $t as compileGlobPatterns, A as isRawApiErrorPayload, At as resolveConversationLabel, B as parseSessionThreadInfo, Bt as resolveBrowserControlAuth, C as isCloudCodeAssistFormatError, Ct as mergeSessionEntry, D as isFailoverErrorMessage, Dt as resolveExplicitAgentSessionKey, E as isFailoverAssistantError, Et as canonicalizeMainSessionAlias, F as isTimeoutErrorMessage, Ft as registerBrowserRoutes, G as readSessionUpdatedAt, Gt as buildPluginToolGroups, Ht as trimToUndefined$1, I as ensureSandboxWorkspaceForSession, It as resolveBrowserConfig, Jt as mergeAlsoAllowPolicy, K as recordSessionMetaFromInbound, Kt as collectExplicitAllowlist, L as resolveSandboxContext, Lt as resolveProfile, M as parseImageDimensionError, Mt as acquireSessionWriteLock, N as parseImageSizeError, Nt as resolveSessionLockMaxHoldFromTimeout, O as isLikelyContextOverflowError, Ot as resolveMainSessionKey, P as sanitizeUserFacingText, Pt as createBrowserRouteContext, Q as isCacheEnabled, Qt as resolveToolProfilePolicy, R as resolveSandboxRuntimeStatus, Rt as getBridgeAuthForPort, S as isBillingAssistantError, St as DEFAULT_RESET_TRIGGERS, T as isContextOverflowError, Tt as setSessionRuntimeModel, U as resolveAndPersistSessionFile, Ut as resolveSandboxConfigForAgent, V as appendAssistantMessageToSessionTranscript, Vt as resolveGatewayCredentialsFromConfig, W as loadSessionStore, Wt as applyOwnerOnlyToolPolicy, X as updateSessionStore, Xt as expandToolGroups, Y as updateLastRoute, Yt as stripPluginOnlyAllowlist, Z as updateSessionStoreEntry, Zt as normalizeToolName, _ as formatAssistantErrorText, _t as evaluateSessionFreshness, a as isMessagingToolDuplicateNormalized, an as resolveBootstrapTotalMaxChars, at as normalizeAccountId$3, b as getApiErrorPayloadFingerprint, bt as resolveSessionResetType, c as extractToolCallsFromAssistant, ct as countToolResults, d as downgradeOpenAIFunctionCallReasoningPairs, dt as INPUT_PROVENANCE_KIND_VALUES, en as matchesAnyGlobPattern, et as deliveryContextFromSession, f as downgradeOpenAIReasoningBlocks, ft as applyInputProvenanceToUserMessage, g as classifyFailoverReasonFromHttpStatus, gt as resolveSessionKey, h as classifyFailoverReason, ht as jsonUtf8Bytes, in as resolveBootstrapPromptTruncationWarningMode, it as normalizeSessionDeliveryFields, j as isTransientHttpError, jt as resolveGroupSessionKey, k as isRateLimitAssistantError, kt as deriveSessionMetaPatch, l as extractToolResultId, lt as extractToolCallNames, m as BILLING_ERROR_USER_MESSAGE, mt as normalizeInputProvenance, n as validateGeminiTurns, nn as ensureSessionHeader, nt as mergeDeliveryContext, o as normalizeTextForComparison, on as sanitizeGoogleTurnOrdering, ot as archiveSessionTranscripts, p as isGoogleModelApi, pt as hasInterSessionUserProvenance, q as resolveSessionStoreEntry, qt as expandPolicyWithPluginGroups, r as pickFallbackThinkingLevel, rn as resolveBootstrapMaxChars, rt as normalizeDeliveryContext, s as sanitizeSessionMessagesImages, st as capArrayByJsonBytes, t as validateAnthropicTurns, tn as buildBootstrapContextFiles, tt as deliveryContextKey, u as sanitizeToolCallIdsForCloudCodeAssist, ut as parseInlineDirectives$1, v as formatBillingErrorMessage, vt as resolveChannelResetConfig, w as isCompactionFailureError, wt as resolveFreshSessionTotalTokens, x as isAuthAssistantError, xt as resolveThreadFlag, y as formatRawAssistantErrorForUi, yt as resolveSessionResetPolicy, z as extractDeliveryInfo, zt as ensureBrowserControlAuth } from "./pi-embedded-helpers-
|
|
21
|
-
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-
|
|
20
|
+
import { $ as resolveCacheTtlMs$1, $t as compileGlobPatterns, A as isRawApiErrorPayload, At as resolveConversationLabel, B as parseSessionThreadInfo, Bt as resolveBrowserControlAuth, C as isCloudCodeAssistFormatError, Ct as mergeSessionEntry, D as isFailoverErrorMessage, Dt as resolveExplicitAgentSessionKey, E as isFailoverAssistantError, Et as canonicalizeMainSessionAlias, F as isTimeoutErrorMessage, Ft as registerBrowserRoutes, G as readSessionUpdatedAt, Gt as buildPluginToolGroups, Ht as trimToUndefined$1, I as ensureSandboxWorkspaceForSession, It as resolveBrowserConfig, Jt as mergeAlsoAllowPolicy, K as recordSessionMetaFromInbound, Kt as collectExplicitAllowlist, L as resolveSandboxContext, Lt as resolveProfile, M as parseImageDimensionError, Mt as acquireSessionWriteLock, N as parseImageSizeError, Nt as resolveSessionLockMaxHoldFromTimeout, O as isLikelyContextOverflowError, Ot as resolveMainSessionKey, P as sanitizeUserFacingText, Pt as createBrowserRouteContext, Q as isCacheEnabled, Qt as resolveToolProfilePolicy, R as resolveSandboxRuntimeStatus, Rt as getBridgeAuthForPort, S as isBillingAssistantError, St as DEFAULT_RESET_TRIGGERS, T as isContextOverflowError, Tt as setSessionRuntimeModel, U as resolveAndPersistSessionFile, Ut as resolveSandboxConfigForAgent, V as appendAssistantMessageToSessionTranscript, Vt as resolveGatewayCredentialsFromConfig, W as loadSessionStore, Wt as applyOwnerOnlyToolPolicy, X as updateSessionStore, Xt as expandToolGroups, Y as updateLastRoute, Yt as stripPluginOnlyAllowlist, Z as updateSessionStoreEntry, Zt as normalizeToolName, _ as formatAssistantErrorText, _t as evaluateSessionFreshness, a as isMessagingToolDuplicateNormalized, an as resolveBootstrapTotalMaxChars, at as normalizeAccountId$3, b as getApiErrorPayloadFingerprint, bt as resolveSessionResetType, c as extractToolCallsFromAssistant, ct as countToolResults, d as downgradeOpenAIFunctionCallReasoningPairs, dt as INPUT_PROVENANCE_KIND_VALUES, en as matchesAnyGlobPattern, et as deliveryContextFromSession, f as downgradeOpenAIReasoningBlocks, ft as applyInputProvenanceToUserMessage, g as classifyFailoverReasonFromHttpStatus, gt as resolveSessionKey, h as classifyFailoverReason, ht as jsonUtf8Bytes, in as resolveBootstrapPromptTruncationWarningMode, it as normalizeSessionDeliveryFields, j as isTransientHttpError, jt as resolveGroupSessionKey, k as isRateLimitAssistantError, kt as deriveSessionMetaPatch, l as extractToolResultId, lt as extractToolCallNames, m as BILLING_ERROR_USER_MESSAGE, mt as normalizeInputProvenance, n as validateGeminiTurns, nn as ensureSessionHeader, nt as mergeDeliveryContext, o as normalizeTextForComparison, on as sanitizeGoogleTurnOrdering, ot as archiveSessionTranscripts, p as isGoogleModelApi, pt as hasInterSessionUserProvenance, q as resolveSessionStoreEntry, qt as expandPolicyWithPluginGroups, r as pickFallbackThinkingLevel, rn as resolveBootstrapMaxChars, rt as normalizeDeliveryContext, s as sanitizeSessionMessagesImages, st as capArrayByJsonBytes, t as validateAnthropicTurns, tn as buildBootstrapContextFiles, tt as deliveryContextKey, u as sanitizeToolCallIdsForCloudCodeAssist, ut as parseInlineDirectives$1, v as formatBillingErrorMessage, vt as resolveChannelResetConfig, w as isCompactionFailureError, wt as resolveFreshSessionTotalTokens, x as isAuthAssistantError, xt as resolveThreadFlag, y as formatRawAssistantErrorForUi, yt as resolveSessionResetPolicy, z as extractDeliveryInfo, zt as ensureBrowserControlAuth } from "./pi-embedded-helpers-CSodYzr7.js";
|
|
21
|
+
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-CMibSHuV.js";
|
|
22
22
|
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-C2hKwiN4.js";
|
|
23
23
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Ba9jvI-u.js";
|
|
24
24
|
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-COiNLRqA.js";
|
|
@@ -31,8 +31,8 @@ import { t as resolveIMessageAccount } from "./accounts-DjqGHhCq.js";
|
|
|
31
31
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-DCMEFJb9.js";
|
|
32
32
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-DENAGPZH.js";
|
|
33
33
|
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-CUV07CW3.js";
|
|
34
|
-
import { C as minimaxUnderstandImage, S as extractTextFromChatContent, _ as formatToolSummary, a as resolveProviderVisionModelFromConfig, b as findCodeRegions, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as resolveToolDisplay, w as ensureOpenClawModelsJson, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-
|
|
35
|
-
import { _ as resolveAttachmentKind, a as resolveAutoImageModel, b as modelSupportsVision, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, h as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, v as findModelInCatalog, y as loadModelCatalog } from "./audio-transcription-runner-
|
|
34
|
+
import { C as minimaxUnderstandImage, S as extractTextFromChatContent, _ as formatToolSummary, a as resolveProviderVisionModelFromConfig, b as findCodeRegions, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as resolveToolDisplay, w as ensureOpenClawModelsJson, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-Nk4Z8dsI.js";
|
|
35
|
+
import { _ as resolveAttachmentKind, a as resolveAutoImageModel, b as modelSupportsVision, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, h as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, v as findModelInCatalog, y as loadModelCatalog } from "./audio-transcription-runner-DX0Waokh.js";
|
|
36
36
|
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-B7wAopED.js";
|
|
37
37
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-Dtlf2N0l.js";
|
|
38
38
|
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-MFfRSNg-.js";
|
|
@@ -70,7 +70,7 @@ import { EdgeTTS } from "node-edge-tts";
|
|
|
70
70
|
import * as net$1 from "node:net";
|
|
71
71
|
import { createServer } from "node:http";
|
|
72
72
|
import { Agent, EnvHttpProxyAgent, ProxyAgent, fetch as fetch$1, getGlobalDispatcher, setGlobalDispatcher } from "undici";
|
|
73
|
-
import WebSocket
|
|
73
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
74
74
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
75
75
|
import { createJiti } from "jiti";
|
|
76
76
|
import AjvPkg from "ajv";
|
|
@@ -356,7 +356,7 @@ var LegacyContextEngine = class {
|
|
|
356
356
|
}
|
|
357
357
|
async afterTurn(_params) {}
|
|
358
358
|
async compact(params) {
|
|
359
|
-
const { compactEmbeddedPiSessionDirect } = await import("./compact.runtime-
|
|
359
|
+
const { compactEmbeddedPiSessionDirect } = await import("./compact.runtime-DdbMKiHW.js");
|
|
360
360
|
const lp = params.legacyParams ?? {};
|
|
361
361
|
const result = await compactEmbeddedPiSessionDirect({
|
|
362
362
|
...lp,
|
|
@@ -8544,7 +8544,7 @@ var GatewayClient = class {
|
|
|
8544
8544
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
8545
8545
|
});
|
|
8546
8546
|
}
|
|
8547
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
8547
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
8548
8548
|
this.ws.on("open", () => {
|
|
8549
8549
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
8550
8550
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -8740,7 +8740,7 @@ var GatewayClient = class {
|
|
|
8740
8740
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
8741
8741
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
8742
8742
|
this.connectTimer = setTimeout(() => {
|
|
8743
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
8743
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
8744
8744
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
8745
8745
|
this.ws?.close(1008, "connect challenge timeout");
|
|
8746
8746
|
}, connectChallengeTimeoutMs);
|
|
@@ -8782,7 +8782,7 @@ var GatewayClient = class {
|
|
|
8782
8782
|
return null;
|
|
8783
8783
|
}
|
|
8784
8784
|
async request(method, params, opts) {
|
|
8785
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
8785
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
8786
8786
|
const id = randomUUID();
|
|
8787
8787
|
const frame = {
|
|
8788
8788
|
type: "req",
|
|
@@ -10205,7 +10205,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
10205
10205
|
*/
|
|
10206
10206
|
let deliverRuntimePromise$2 = null;
|
|
10207
10207
|
function loadDeliverRuntime$2() {
|
|
10208
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
10208
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-Yz8xsseU.js");
|
|
10209
10209
|
return deliverRuntimePromise$2;
|
|
10210
10210
|
}
|
|
10211
10211
|
/**
|
|
@@ -11493,7 +11493,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
|
|
|
11493
11493
|
const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
11494
11494
|
let subagentRegistryRuntimePromise = null;
|
|
11495
11495
|
function loadSubagentRegistryRuntime() {
|
|
11496
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
11496
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-BF8LA25p.js");
|
|
11497
11497
|
return subagentRegistryRuntimePromise;
|
|
11498
11498
|
}
|
|
11499
11499
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
@@ -15021,7 +15021,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
15021
15021
|
//#region src/media-understanding/echo-transcript.ts
|
|
15022
15022
|
let deliverRuntimePromise$1 = null;
|
|
15023
15023
|
function loadDeliverRuntime$1() {
|
|
15024
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
15024
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-Yz8xsseU.js");
|
|
15025
15025
|
return deliverRuntimePromise$1;
|
|
15026
15026
|
}
|
|
15027
15027
|
const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
|
|
@@ -53897,7 +53897,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
53897
53897
|
const log$10 = createSubsystemLogger("session-maintenance-warning");
|
|
53898
53898
|
let deliverRuntimePromise = null;
|
|
53899
53899
|
function loadDeliverRuntime() {
|
|
53900
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
53900
|
+
deliverRuntimePromise ??= import("./deliver-runtime-Yz8xsseU.js");
|
|
53901
53901
|
return deliverRuntimePromise;
|
|
53902
53902
|
}
|
|
53903
53903
|
function shouldSendWarning() {
|
|
@@ -59020,7 +59020,7 @@ const VISION_PROVIDERS = [
|
|
|
59020
59020
|
];
|
|
59021
59021
|
let imageRuntimePromise = null;
|
|
59022
59022
|
function loadImageRuntime() {
|
|
59023
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
59023
|
+
imageRuntimePromise ??= import("./image-runtime-koB5Zl5s.js");
|
|
59024
59024
|
return imageRuntimePromise;
|
|
59025
59025
|
}
|
|
59026
59026
|
/**
|
|
@@ -63224,7 +63224,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
63224
63224
|
hasTypedText
|
|
63225
63225
|
};
|
|
63226
63226
|
try {
|
|
63227
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
63227
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-DbDIZaaN.js");
|
|
63228
63228
|
if (params.abortSignal?.aborted) return {
|
|
63229
63229
|
hasAudioAttachment,
|
|
63230
63230
|
hasTypedText
|
|
@@ -68926,7 +68926,7 @@ let slackSenderRuntimePromise = null;
|
|
|
68926
68926
|
let signalSenderRuntimePromise = null;
|
|
68927
68927
|
let imessageSenderRuntimePromise = null;
|
|
68928
68928
|
function loadWhatsAppSenderRuntime() {
|
|
68929
|
-
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-
|
|
68929
|
+
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-Mb5nI79S.js");
|
|
68930
68930
|
return whatsappSenderRuntimePromise;
|
|
68931
68931
|
}
|
|
68932
68932
|
function loadTelegramSenderRuntime() {
|
|
@@ -72691,7 +72691,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
72691
72691
|
return super.registerClient(client);
|
|
72692
72692
|
}
|
|
72693
72693
|
createWebSocket(url) {
|
|
72694
|
-
return new WebSocket
|
|
72694
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
72695
72695
|
}
|
|
72696
72696
|
}
|
|
72697
72697
|
return new ProxyGatewayPlugin();
|
|
@@ -82033,7 +82033,7 @@ function loadSlashCommandsRuntime() {
|
|
|
82033
82033
|
return slashCommandsRuntimePromise;
|
|
82034
82034
|
}
|
|
82035
82035
|
function loadSlashDispatchRuntime() {
|
|
82036
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime
|
|
82036
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime--1geVpWH.js");
|
|
82037
82037
|
return slashDispatchRuntimePromise;
|
|
82038
82038
|
}
|
|
82039
82039
|
function loadSlashSkillCommandsRuntime() {
|
|
@@ -85520,7 +85520,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
85520
85520
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
85521
85521
|
let preflightTranscript;
|
|
85522
85522
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
85523
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
85523
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-DbDIZaaN.js");
|
|
85524
85524
|
preflightTranscript = await transcribeFirstAudio({
|
|
85525
85525
|
ctx: {
|
|
85526
85526
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -88513,7 +88513,7 @@ function loadWebLoginQr() {
|
|
|
88513
88513
|
return webLoginQrPromise;
|
|
88514
88514
|
}
|
|
88515
88515
|
function loadWebChannel() {
|
|
88516
|
-
webChannelPromise ??= import("./web-
|
|
88516
|
+
webChannelPromise ??= import("./web-DUmwaFF8.js");
|
|
88517
88517
|
return webChannelPromise;
|
|
88518
88518
|
}
|
|
88519
88519
|
function loadWhatsAppActions() {
|
|
@@ -97339,7 +97339,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
97339
97339
|
* Throws if the connection is not open.
|
|
97340
97340
|
*/
|
|
97341
97341
|
send(event) {
|
|
97342
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
97342
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
97343
97343
|
this.ws.send(JSON.stringify(event));
|
|
97344
97344
|
}
|
|
97345
97345
|
/**
|
|
@@ -97356,7 +97356,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
97356
97356
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
97357
97357
|
*/
|
|
97358
97358
|
isConnected() {
|
|
97359
|
-
return this.ws !== null && this.ws.readyState === WebSocket
|
|
97359
|
+
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
97360
97360
|
}
|
|
97361
97361
|
/**
|
|
97362
97362
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -97366,7 +97366,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
97366
97366
|
this._cancelRetryTimer();
|
|
97367
97367
|
if (this.ws) {
|
|
97368
97368
|
this.ws.removeAllListeners();
|
|
97369
|
-
if (this.ws.readyState === WebSocket
|
|
97369
|
+
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
97370
97370
|
this.ws = null;
|
|
97371
97371
|
}
|
|
97372
97372
|
}
|
|
@@ -97376,7 +97376,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
97376
97376
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
97377
97377
|
return;
|
|
97378
97378
|
}
|
|
97379
|
-
const socket = new WebSocket
|
|
97379
|
+
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
97380
97380
|
Authorization: `Bearer ${this.apiKey}`,
|
|
97381
97381
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
97382
97382
|
} });
|
|
@@ -6,7 +6,7 @@ import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug
|
|
|
6
6
|
import { r as normalizeChannelId, x as normalizeChatType } from "./plugins-DVUzcEPT.js";
|
|
7
7
|
import { t as generateSecureToken } from "./secure-random-CAcbtr_w.js";
|
|
8
8
|
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-DVXcAqlu.js";
|
|
9
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_OPENCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
9
|
+
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_OPENCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-CMibSHuV.js";
|
|
10
10
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-C2hKwiN4.js";
|
|
11
11
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Ba9jvI-u.js";
|
|
12
12
|
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-CnhmRVkC.js";
|
|
@@ -1347,7 +1347,7 @@ function isModuleNotFoundError(err) {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
async function loadPwAiModule(mode) {
|
|
1349
1349
|
try {
|
|
1350
|
-
return await import("./pw-ai-
|
|
1350
|
+
return await import("./pw-ai-DZOmcrIm.js");
|
|
1351
1351
|
} catch (err) {
|
|
1352
1352
|
if (mode === "soft") return null;
|
|
1353
1353
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3713,7 +3713,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3713
3713
|
//#region src/browser/server-context.reset.ts
|
|
3714
3714
|
async function closePlaywrightBrowserConnection() {
|
|
3715
3715
|
try {
|
|
3716
|
-
await (await import("./pw-ai-
|
|
3716
|
+
await (await import("./pw-ai-DZOmcrIm.js")).closePlaywrightBrowserConnection();
|
|
3717
3717
|
} catch {}
|
|
3718
3718
|
}
|
|
3719
3719
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -4,7 +4,7 @@ import fs from "node:fs";
|
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import chalk, { Chalk } from "chalk";
|
|
6
6
|
import { Logger } from "tslog";
|
|
7
|
-
import
|
|
7
|
+
import json5 from "json5";
|
|
8
8
|
import { promisify } from "node:util";
|
|
9
9
|
import fs$1, { mkdtemp, rm } from "node:fs/promises";
|
|
10
10
|
import { execFile, spawn } from "node:child_process";
|
|
@@ -372,7 +372,7 @@ function readLoggingConfig() {
|
|
|
372
372
|
try {
|
|
373
373
|
if (!fs.existsSync(configPath)) return;
|
|
374
374
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
375
|
-
const logging =
|
|
375
|
+
const logging = json5.parse(raw)?.logging;
|
|
376
376
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
377
377
|
return logging;
|
|
378
378
|
} catch {
|
|
@@ -5,7 +5,7 @@ import chalk, { Chalk } from "chalk";
|
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import { Logger } from "tslog";
|
|
7
7
|
import os from "node:os";
|
|
8
|
-
import
|
|
8
|
+
import json5 from "json5";
|
|
9
9
|
import { promisify } from "node:util";
|
|
10
10
|
import { execFile } from "node:child_process";
|
|
11
11
|
import { getOAuthProviders } from "@mariozechner/pi-ai";
|
|
@@ -415,7 +415,7 @@ function readLoggingConfig() {
|
|
|
415
415
|
try {
|
|
416
416
|
if (!fs.existsSync(configPath)) return;
|
|
417
417
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
418
|
-
const logging =
|
|
418
|
+
const logging = json5.parse(raw)?.logging;
|
|
419
419
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
420
420
|
return logging;
|
|
421
421
|
} catch {
|