wednesdayai 0.4.12-dev.708 → 0.4.12-dev.709
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-scope-DxKPMu8w.js → agent-scope-cbxkoURo.js} +3 -3
- package/dist/{agent-turn-runner-Bo-14dCk.js → agent-turn-runner-BGEMB9i7.js} +5 -5
- package/dist/{api-key-rotation-MCks5z9E.js → api-key-rotation-Di-Xv7dE.js} +2 -2
- package/dist/{audio-preflight-D-jX_3PI.js → audio-preflight-B2oeH152.js} +27 -27
- package/dist/{audio-transcription-runner-z8iu9ZW_.js → audio-transcription-runner-D1gaKiYc.js} +11 -11
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +58 -58
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +58 -58
- package/dist/bundled/session-memory/handler.js +58 -58
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-CSc4nhSd.js → channel-activity-rKX7OerG.js} +3 -3
- package/dist/{chrome-DsAfEH5c.js → chrome-DFRVroOs.js} +15 -15
- package/dist/{chunk-c1jvtxVA.js → chunk-B7KZoDXm.js} +3 -3
- package/dist/{command-queue-BkU8VL2o.js → command-queue-DZsc5M2W.js} +1 -1
- package/dist/{command-registry-b8VeqJpJ.js → command-registry-XVw7Umb-.js} +4 -4
- package/dist/{commands-registry-K0xWPmkW.js → commands-registry-CeUqKxlW.js} +2 -2
- package/dist/{completion-cli-eM5rgTAp.js → completion-cli-Cs6_r67M.js} +1 -1
- package/dist/{completion-cli-SMlq8SpJ.js → completion-cli-OG8408r3.js} +2 -2
- package/dist/{deliver-CKX3D5Qb.js → deliver-D9ZlDeeK.js} +24 -24
- package/dist/{diagnostic-CwxQVPgP.js → diagnostic-BQTUSnsG.js} +5 -5
- package/dist/{doctor-completion-CVSivX8q.js → doctor-completion-DHGYwnha.js} +1 -1
- package/dist/{doctor-completion-DSkCajIl.js → doctor-completion-DHzAQdU5.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{fetch-D0fPm94V.js → fetch-BRLmqIUZ.js} +8 -8
- package/dist/{fetch-guard-DGkoJpgm.js → fetch-guard-DaQ-LaL5.js} +3 -3
- package/dist/{frontmatter-saAwiKEb.js → frontmatter-PMByWrfP.js} +5 -5
- package/dist/{fs-safe-LRpYbPaA.js → fs-safe-DwICJjkN.js} +4 -4
- package/dist/{gateway-cli-90-omfdt.js → gateway-cli-0mPia-yK.js} +18 -1
- package/dist/{gateway-cli-CilhVdIf.js → gateway-cli-DZZF_m3l.js} +18 -1
- package/dist/{github-copilot-token-zGOMIGSh.js → github-copilot-token-WSjo05vB.js} +7 -7
- package/dist/{image-ops-D_fm2PuR.js → image-ops-O8pHxo7i.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{ir-CM-jZPvD.js → ir-BdrsYTip.js} +5 -5
- package/dist/{legacy-names-vLJrYADD.js → legacy-names-CLlrMq8r.js} +1 -1
- package/dist/llm-slug-generator.js +58 -58
- package/dist/{logger-a0-zAY5a.js → logger-DNehzD_s.js} +1 -1
- package/dist/{manager-D8_WeA0B.js → manager-Dha79IeT.js} +12 -12
- package/dist/{markdown-tables-DDy0mHfA.js → markdown-tables-CPpxzad4.js} +2 -2
- package/dist/{model-selection-C8cuSPJ6.js → model-selection-CpVr-61V.js} +86 -86
- package/dist/{onboard-DSm2g3vN.js → onboard-8QmY5qtC.js} +1 -1
- package/dist/{onboard-DqwoTpU5.js → onboard-BwuGjbN2.js} +1 -1
- package/dist/{onboarding-CbkMsexm.js → onboarding-BeCgp92Z.js} +1 -1
- package/dist/{onboarding-BA0mgN0_.js → onboarding-BwJssndg.js} +1 -1
- package/dist/{onboarding.finalize-GSMxZGDr.js → onboarding.finalize-Dl0NbVZ8.js} +3 -3
- package/dist/{onboarding.finalize-DmqP9pws.js → onboarding.finalize-GThlsTQx.js} +4 -4
- package/dist/{outbound-attachment-BqwSHCKk.js → outbound-attachment-DrSw_Ksh.js} +2 -2
- package/dist/{outbound-message-hooks-B2Lq5cjw.js → outbound-message-hooks-BclU8TMt.js} +4 -4
- package/dist/{path-alias-guards-Zj-NwKjV.js → path-alias-guards-Cd5yHmTq.js} +1 -1
- package/dist/{paths-C6TxBCvO.js → paths-Cvc9EM8Y.js} +5 -5
- package/dist/{pi-embedded-BruS0ZnZ.js → pi-embedded-JPR-Maki.js} +169 -169
- package/dist/{pi-embedded-helpers-BYrpALPI.js → pi-embedded-helpers-C-hJQ8AQ.js} +24 -24
- package/dist/{pi-embedded-utils-B-HQafgJ.js → pi-embedded-utils-DPMX1Kdc.js} +3 -3
- package/dist/{pi-model-discovery-DoljOCVG.js → pi-model-discovery-ynxqOQma.js} +7 -7
- package/dist/{program-BR_-31Ib.js → program-DAwSVRFz.js} +2 -2
- package/dist/{program-context-DqNMfWhq.js → program-context-B3m_Vhb8.js} +6 -6
- package/dist/{prompt-select-styled-Cft7TSRk.js → prompt-select-styled-DGKn-Jnb.js} +1 -1
- package/dist/{prompt-select-styled-D0PhzQ3o.js → prompt-select-styled-DWcT6TS3.js} +1 -1
- package/dist/{provider-image-BGFyw5bc.js → provider-image-CjgTKy78.js} +5 -5
- package/dist/{proxy-fWL7CKDP.js → proxy-C9sq6M-h.js} +1 -1
- package/dist/{proxy-env-Bp4LRKl9.js → proxy-env-BL6Wl2NH.js} +2 -2
- package/dist/{proxy-fetch-DCI0KuH6.js → proxy-fetch-CK5AQAYw.js} +1 -1
- package/dist/{pw-ai-CYVcKfKX.js → pw-ai-DM-YIw_o.js} +14 -14
- package/dist/{qmd-manager-xNXMqudI.js → qmd-manager-fdxSsmnA.js} +10 -10
- package/dist/{query-expansion-DwSgrk0v.js → query-expansion-Dm2XbrYk.js} +5 -5
- package/dist/{recorder-DHFOr5-p.js → recorder--EPc-GsC.js} +4 -4
- package/dist/{redact-DZne_lu8.js → redact-BOHmCPP_.js} +1 -1
- package/dist/{register.maintenance-Dgcu5Nb-.js → register.maintenance-B0E0HWS3.js} +5 -5
- package/dist/{register.maintenance-BFoMS877.js → register.maintenance-Cde6wAYK.js} +4 -4
- package/dist/{register.onboard-9IafuGo3.js → register.onboard-BpTumYaA.js} +2 -2
- package/dist/{register.onboard-CWxGOIeC.js → register.onboard-BzLofY35.js} +2 -2
- package/dist/{register.setup-Bawf4MtR.js → register.setup-C9FYWtwC.js} +2 -2
- package/dist/{register.setup-CpH51l_z.js → register.setup-mxq7ayTY.js} +2 -2
- package/dist/{register.subclis-CHB5C1GR.js → register.subclis-DyqB2k1U.js} +3 -3
- package/dist/{replies-czd0p1_N.js → replies-zGU1jl6b.js} +4 -4
- package/dist/{reply-directives-v0ld56O3.js → reply-directives-BpvtuQ6W.js} +2 -2
- package/dist/{reply-prefix-DVkNDBNe.js → reply-prefix-C7WlN3qm.js} +1 -1
- package/dist/{resolve-route-Bx05SNin.js → resolve-route-BuurQ_RE.js} +5 -5
- package/dist/{run-main-BShsJ2ew.js → run-main-WS7QF27g.js} +3 -3
- package/dist/{run-with-concurrency-BXDCD4Tu.js → run-with-concurrency-4jh_yc-4.js} +4 -4
- package/dist/{runs-BIIlPzkU.js → runs-ysBHYx8g.js} +8 -8
- package/dist/{send-CDhxZ4gL.js → send-AlsHHAwq.js} +7 -7
- package/dist/{send-BHu4zHcK.js → send-B8TQjDLF.js} +6 -6
- package/dist/{send-DB64Q7ia.js → send-CdkJHvhd.js} +6 -6
- package/dist/{send-Bx7VMqkE.js → send-D5oa8eVL.js} +8 -8
- package/dist/{send-D1vxqVJJ.js → send-DDzPcUw9.js} +27 -27
- package/dist/{session-meta-D3RTAsqe.js → session-meta-BM6rSCmn.js} +2 -2
- package/dist/{skill-commands-D7C-ROwS.js → skill-commands-C_W-vMXu.js} +9 -9
- package/dist/{skills-Dz90ga_I.js → skills-Bn7terph.js} +21 -21
- package/dist/{store-gQ6FSjVk.js → store-xxN6qyAh.js} +2 -2
- package/dist/{subsystem-CPYnUTN4.js → subsystem-BCjklMkJ.js} +64 -64
- package/dist/{tables-DHp8qKo9.js → tables-CjRug-NJ.js} +1 -1
- package/dist/{tokens-9BPY4SaX.js → tokens-9Mla_HDp.js} +1 -1
- package/dist/{tool-loop-detection-C1fqyXXD.js → tool-loop-detection-8uvf8mSd.js} +2 -2
- package/dist/{update-cli-_yxN7Iuk.js → update-cli-BrR0aq-I.js} +4 -4
- package/dist/{update-cli-pxJZTMTe.js → update-cli-CjIUOznW.js} +5 -5
- package/dist/{user-run-recording-BCrEbuKq.js → user-run-recording-B6Tm0B7M.js} +2 -2
- package/dist/{workspace-B707AGIc.js → workspace-Dbn4gFdH.js} +9 -9
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { f as resolveSessionAgentId, r as resolveAgentConfig } from "./agent-scope-
|
|
2
|
-
import { a as resolveGatewayPort, n as STATE_DIR } from "./paths-
|
|
3
|
-
import { P as openBoundaryFile, o as defaultRuntime, pt as truncateUtf16Safe, st as resolveUserPath, t as createSubsystemLogger, z as resolvePathViaExistingAncestorSync } from "./subsystem-
|
|
4
|
-
import { D as normalizeAgentId, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, k as resolveAgentIdFromSessionKey, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-
|
|
5
|
-
import { Bi as acquireSessionWriteLock, H as resolveSecretRefValues, Ht as CHANNEL_IDS, J as loadConfig, Rr as canonicalizeMainSessionAlias, Wn as writeJsonAtomic, Z as writeConfigFile, fi as formatCliCommand, ft as getBlockedNetworkModeReason, io as resolveSecretInputRef, q as createConfigIO, ut as secretRefKey, zr as resolveAgentMainSessionKey } from "./model-selection-
|
|
6
|
-
import { s as parseBooleanValue } from "./legacy-names-
|
|
1
|
+
import { f as resolveSessionAgentId, r as resolveAgentConfig } from "./agent-scope-cbxkoURo.js";
|
|
2
|
+
import { a as resolveGatewayPort, n as STATE_DIR } from "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import { P as openBoundaryFile, o as defaultRuntime, pt as truncateUtf16Safe, st as resolveUserPath, t as createSubsystemLogger, z as resolvePathViaExistingAncestorSync } from "./subsystem-BCjklMkJ.js";
|
|
4
|
+
import { D as normalizeAgentId, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, k as resolveAgentIdFromSessionKey, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-Dbn4gFdH.js";
|
|
5
|
+
import { Bi as acquireSessionWriteLock, H as resolveSecretRefValues, Ht as CHANNEL_IDS, J as loadConfig, Rr as canonicalizeMainSessionAlias, Wn as writeJsonAtomic, Z as writeConfigFile, fi as formatCliCommand, ft as getBlockedNetworkModeReason, io as resolveSecretInputRef, q as createConfigIO, ut as secretRefKey, zr as resolveAgentMainSessionKey } from "./model-selection-CpVr-61V.js";
|
|
6
|
+
import { s as parseBooleanValue } from "./legacy-names-CLlrMq8r.js";
|
|
7
7
|
import { t as generateSecureToken } from "./secure-random-BDA1WAvZ.js";
|
|
8
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
9
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_ENABLED, K as DEFAULT_BROWSER_EVALUATE_ENABLED, 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_EFFICIENT_MAX_CHARS, W as DEFAULT_AI_SNAPSHOT_MAX_CHARS, Y as DEFAULT_OPENCLAW_BROWSER_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_COLOR, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
10
|
-
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-
|
|
11
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
12
|
-
import { d as extractErrorCode, n as SsrFBlockedError, p as formatErrorMessage } from "./proxy-env-
|
|
13
|
-
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-
|
|
8
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-O8pHxo7i.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_DEFAULT_PROFILE_NAME, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_ENABLED, K as DEFAULT_BROWSER_EVALUATE_ENABLED, 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_EFFICIENT_MAX_CHARS, W as DEFAULT_AI_SNAPSHOT_MAX_CHARS, Y as DEFAULT_OPENCLAW_BROWSER_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_COLOR, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-DFRVroOs.js";
|
|
10
|
+
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-Bn7terph.js";
|
|
11
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Cd5yHmTq.js";
|
|
12
|
+
import { d as extractErrorCode, n as SsrFBlockedError, p as formatErrorMessage } from "./proxy-env-BL6Wl2NH.js";
|
|
13
|
+
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-xxN6qyAh.js";
|
|
14
14
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-CNiEVKpL.js";
|
|
15
15
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-CjNYeBcQ.js";
|
|
16
16
|
import { o as normalizeThinkLevel } from "./thinking-CwmtMy_H.js";
|
|
17
17
|
import fs from "node:fs/promises";
|
|
18
18
|
import os from "node:os";
|
|
19
19
|
import path, { posix } from "node:path";
|
|
20
|
-
import
|
|
20
|
+
import fs$1, { existsSync } from "node:fs";
|
|
21
21
|
import { spawn } from "node:child_process";
|
|
22
22
|
import crypto, { createHash, timingSafeEqual } from "node:crypto";
|
|
23
23
|
import express from "express";
|
|
@@ -1281,7 +1281,7 @@ function isModuleNotFoundError(err) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
async function loadPwAiModule(mode) {
|
|
1283
1283
|
try {
|
|
1284
|
-
return await import("./pw-ai-
|
|
1284
|
+
return await import("./pw-ai-DM-YIw_o.js");
|
|
1285
1285
|
} catch (err) {
|
|
1286
1286
|
if (mode === "soft") return null;
|
|
1287
1287
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3057,11 +3057,11 @@ async function movePathToTrash(targetPath) {
|
|
|
3057
3057
|
return targetPath;
|
|
3058
3058
|
} catch {
|
|
3059
3059
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
3060
|
-
|
|
3060
|
+
fs$1.mkdirSync(trashDir, { recursive: true });
|
|
3061
3061
|
const base = path.basename(targetPath);
|
|
3062
3062
|
let dest = path.join(trashDir, `${base}-${Date.now()}`);
|
|
3063
|
-
if (
|
|
3064
|
-
|
|
3063
|
+
if (fs$1.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${generateSecureToken(6)}`);
|
|
3064
|
+
fs$1.renameSync(targetPath, dest);
|
|
3065
3065
|
return dest;
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
@@ -3148,7 +3148,7 @@ function createBrowserProfilesService(ctx) {
|
|
|
3148
3148
|
} catch {}
|
|
3149
3149
|
const userDataDir = resolveOpenClawUserDataDir(name);
|
|
3150
3150
|
const profileDir = path.dirname(userDataDir);
|
|
3151
|
-
if (
|
|
3151
|
+
if (fs$1.existsSync(profileDir)) {
|
|
3152
3152
|
await movePathToTrash(profileDir);
|
|
3153
3153
|
deleted = true;
|
|
3154
3154
|
}
|
|
@@ -3646,7 +3646,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3646
3646
|
//#region src/browser/server-context.reset.ts
|
|
3647
3647
|
async function closePlaywrightBrowserConnection() {
|
|
3648
3648
|
try {
|
|
3649
|
-
await (await import("./pw-ai-
|
|
3649
|
+
await (await import("./pw-ai-DM-YIw_o.js")).closePlaywrightBrowserConnection();
|
|
3650
3650
|
} catch {}
|
|
3651
3651
|
}
|
|
3652
3652
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -3664,7 +3664,7 @@ function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, i
|
|
|
3664
3664
|
if (await isHttpReachable(300) && !profileState.running) await closePlaywrightBrowserConnection();
|
|
3665
3665
|
if (profileState.running) await stopRunningBrowser();
|
|
3666
3666
|
await closePlaywrightBrowserConnection();
|
|
3667
|
-
if (!
|
|
3667
|
+
if (!fs$1.existsSync(userDataDir)) return {
|
|
3668
3668
|
moved: false,
|
|
3669
3669
|
from: userDataDir
|
|
3670
3670
|
};
|
|
@@ -5727,7 +5727,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
5727
5727
|
if (guarded.reason !== "path") {
|
|
5728
5728
|
if (!(options.allowedType === "directory" && this.pathIsExistingDirectory(target.hostPath))) throw guarded.error instanceof Error ? guarded.error : /* @__PURE__ */ new Error(`Sandbox boundary checks failed; cannot ${options.action}: ${target.containerPath}`);
|
|
5729
5729
|
}
|
|
5730
|
-
} else
|
|
5730
|
+
} else fs$1.closeSync(guarded.fd);
|
|
5731
5731
|
const canonicalContainerPath = await this.resolveCanonicalContainerPath({
|
|
5732
5732
|
containerPath: target.containerPath,
|
|
5733
5733
|
allowFinalSymlinkForUnlink: options.aliasPolicy?.allowFinalSymlinkForUnlink === true
|
|
@@ -5738,7 +5738,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
5738
5738
|
}
|
|
5739
5739
|
pathIsExistingDirectory(hostPath) {
|
|
5740
5740
|
try {
|
|
5741
|
-
return
|
|
5741
|
+
return fs$1.statSync(hostPath).isDirectory();
|
|
5742
5742
|
} catch {
|
|
5743
5743
|
return false;
|
|
5744
5744
|
}
|
|
@@ -6006,13 +6006,13 @@ async function ensureSandboxWorkspace(workspaceDir, seedFrom, skipBootstrap) {
|
|
|
6006
6006
|
});
|
|
6007
6007
|
if (!opened.ok) continue;
|
|
6008
6008
|
try {
|
|
6009
|
-
const content =
|
|
6009
|
+
const content = fs$1.readFileSync(opened.fd, "utf-8");
|
|
6010
6010
|
await fs.writeFile(dest, content, {
|
|
6011
6011
|
encoding: "utf-8",
|
|
6012
6012
|
flag: "wx"
|
|
6013
6013
|
});
|
|
6014
6014
|
} finally {
|
|
6015
|
-
|
|
6015
|
+
fs$1.closeSync(opened.fd);
|
|
6016
6016
|
}
|
|
6017
6017
|
} catch {}
|
|
6018
6018
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { lt as shortenHomeInString } from "./subsystem-
|
|
2
|
-
import { n as redactToolDetail } from "./redact-
|
|
3
|
-
import { R as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
1
|
+
import { lt as shortenHomeInString } from "./subsystem-BCjklMkJ.js";
|
|
2
|
+
import { n as redactToolDetail } from "./redact-BOHmCPP_.js";
|
|
3
|
+
import { R as sanitizeUserFacingText } from "./pi-embedded-helpers-C-hJQ8AQ.js";
|
|
4
4
|
|
|
5
5
|
//#region src/shared/chat-content.ts
|
|
6
6
|
function extractTextFromChatContent(content, opts) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Ja as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { Ja as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-CpVr-61V.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/pi-auth-credentials.ts
|
|
@@ -70,10 +70,10 @@ function isRecord(value) {
|
|
|
70
70
|
}
|
|
71
71
|
function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
72
72
|
if (process.env.OPENCLAW_AUTH_STORE_READONLY === "1") return;
|
|
73
|
-
if (!
|
|
73
|
+
if (!fs.existsSync(pathname)) return;
|
|
74
74
|
let parsed;
|
|
75
75
|
try {
|
|
76
|
-
parsed = JSON.parse(
|
|
76
|
+
parsed = JSON.parse(fs.readFileSync(pathname, "utf8"));
|
|
77
77
|
} catch {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -87,11 +87,11 @@ function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
|
87
87
|
}
|
|
88
88
|
if (!changed) return;
|
|
89
89
|
if (Object.keys(parsed).length === 0) {
|
|
90
|
-
|
|
90
|
+
fs.rmSync(pathname, { force: true });
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
fs.writeFileSync(pathname, `${JSON.stringify(parsed, null, 2)}\n`, "utf8");
|
|
94
|
+
fs.chmodSync(pathname, 384);
|
|
95
95
|
}
|
|
96
96
|
function createAuthStorage(AuthStorageLike, path, creds) {
|
|
97
97
|
const withInMemory = AuthStorageLike;
|
|
@@ -121,8 +121,8 @@ import "./help-format-DuL_Y84f.js";
|
|
|
121
121
|
import "./progress-Dc4ihErK.js";
|
|
122
122
|
import "./plugin-registry-BJ4o7mzv.js";
|
|
123
123
|
import { n as resolveCliChannelOptions } from "./channel-options-Cax4W7Ni.js";
|
|
124
|
-
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-
|
|
125
|
-
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-
|
|
124
|
+
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-DyqB2k1U.js";
|
|
125
|
+
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-XVw7Umb-.js";
|
|
126
126
|
import { r as setProgramContext } from "./program-context-DFqiHyZ3.js";
|
|
127
127
|
import { t as forceFreePort } from "./ports-BxjQwKMc.js";
|
|
128
128
|
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-CRhBWHsu.js";
|
|
@@ -58,7 +58,7 @@ const entries = [
|
|
|
58
58
|
description: "Run, inspect, and query the WebSocket Gateway",
|
|
59
59
|
hasSubcommands: true,
|
|
60
60
|
register: async (program) => {
|
|
61
|
-
(await import("./gateway-cli-
|
|
61
|
+
(await import("./gateway-cli-DZZF_m3l.js")).registerGatewayCli(program);
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
{
|
|
@@ -278,7 +278,7 @@ const entries = [
|
|
|
278
278
|
description: "Update OpenClaw and inspect update channel status",
|
|
279
279
|
hasSubcommands: true,
|
|
280
280
|
register: async (program) => {
|
|
281
|
-
(await import("./update-cli-
|
|
281
|
+
(await import("./update-cli-BrR0aq-I.js")).registerUpdateCli(program);
|
|
282
282
|
}
|
|
283
283
|
},
|
|
284
284
|
{
|
|
@@ -286,7 +286,7 @@ const entries = [
|
|
|
286
286
|
description: "Generate shell completion script",
|
|
287
287
|
hasSubcommands: false,
|
|
288
288
|
register: async (program) => {
|
|
289
|
-
(await import("./completion-cli-
|
|
289
|
+
(await import("./completion-cli-Cs6_r67M.js").then((n) => n.n)).registerCompletionCli(program);
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
];
|
|
@@ -343,7 +343,7 @@ const coreEntries = [
|
|
|
343
343
|
hasSubcommands: false
|
|
344
344
|
}],
|
|
345
345
|
register: async ({ program }) => {
|
|
346
|
-
(await import("./register.setup-
|
|
346
|
+
(await import("./register.setup-mxq7ayTY.js")).registerSetupCommand(program);
|
|
347
347
|
}
|
|
348
348
|
},
|
|
349
349
|
{
|
|
@@ -353,7 +353,7 @@ const coreEntries = [
|
|
|
353
353
|
hasSubcommands: false
|
|
354
354
|
}],
|
|
355
355
|
register: async ({ program }) => {
|
|
356
|
-
(await import("./register.onboard-
|
|
356
|
+
(await import("./register.onboard-BpTumYaA.js")).registerOnboardCommand(program);
|
|
357
357
|
}
|
|
358
358
|
},
|
|
359
359
|
{
|
|
@@ -400,7 +400,7 @@ const coreEntries = [
|
|
|
400
400
|
}
|
|
401
401
|
],
|
|
402
402
|
register: async ({ program }) => {
|
|
403
|
-
(await import("./register.maintenance-
|
|
403
|
+
(await import("./register.maintenance-Cde6wAYK.js")).registerMaintenanceCommands(program);
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
406
|
{
|
|
@@ -45,7 +45,7 @@ import { i as runLegacyStateMigrations, n as loadAndMaybeMigrateDoctorConfig, r
|
|
|
45
45
|
import { n as noteOpenAIOAuthTlsPrerequisites } from "./oauth-tls-preflight-YpSAMEf-.js";
|
|
46
46
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-EvpJ4ZxF.js";
|
|
47
47
|
import { t as formatHealthCheckFailure } from "./health-format-_VGfj3fm.js";
|
|
48
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
48
|
+
import { n as doctorShellCompletion } from "./doctor-completion-DHGYwnha.js";
|
|
49
49
|
import fs from "node:fs";
|
|
50
50
|
import os from "node:os";
|
|
51
51
|
import path from "node:path";
|
|
@@ -45,7 +45,7 @@ import { i as runLegacyStateMigrations, n as loadAndMaybeMigrateDoctorConfig, r
|
|
|
45
45
|
import { n as noteOpenAIOAuthTlsPrerequisites } from "./oauth-tls-preflight-DJESrRid.js";
|
|
46
46
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-BPzLwumk.js";
|
|
47
47
|
import { t as formatHealthCheckFailure } from "./health-format-DX1WwWnG.js";
|
|
48
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
48
|
+
import { n as doctorShellCompletion } from "./doctor-completion-DHzAQdU5.js";
|
|
49
49
|
import { execFile } from "node:child_process";
|
|
50
50
|
import os from "node:os";
|
|
51
51
|
import path from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./agent-scope-
|
|
3
|
-
import { G as applyConfigEnvVars, rt as isRecord } from "./subsystem-
|
|
4
|
-
import { A as requireApiKey, J as loadConfig, O as getApiKeyForModel, Xa as resolveOpenClawAgentDir, _ as resolveImplicitBedrockProvider, eo as normalizeSecretInput, g as normalizeProviders, v as resolveImplicitCopilotProvider, y as resolveImplicitProviders } from "./model-selection-
|
|
5
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
6
|
-
import { t as extractAssistantText } from "./pi-embedded-utils-
|
|
2
|
+
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./agent-scope-cbxkoURo.js";
|
|
3
|
+
import { G as applyConfigEnvVars, rt as isRecord } from "./subsystem-BCjklMkJ.js";
|
|
4
|
+
import { A as requireApiKey, J as loadConfig, O as getApiKeyForModel, Xa as resolveOpenClawAgentDir, _ as resolveImplicitBedrockProvider, eo as normalizeSecretInput, g as normalizeProviders, v as resolveImplicitCopilotProvider, y as resolveImplicitProviders } from "./model-selection-CpVr-61V.js";
|
|
5
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-ynxqOQma.js";
|
|
6
|
+
import { t as extractAssistantText } from "./pi-embedded-utils-DPMX1Kdc.js";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { complete } from "@mariozechner/pi-ai";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as makeManagedProxyFetch, r as makeProxyFetch } from "./proxy-fetch-
|
|
2
|
+
import { n as makeManagedProxyFetch, r as makeProxyFetch } from "./proxy-fetch-CK5AQAYw.js";
|
|
3
3
|
|
|
4
4
|
//#region src/telegram/proxy.ts
|
|
5
5
|
var proxy_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Tt as parseLooseIpAddress, _t as isCanonicalDottedDecimalIPv4, bt as isLegacyIpv4Literal, gt as isBlockedSpecialUseIpv6Address, ht as isBlockedSpecialUseIpv4Address, mt as ipMatchesAnyCidr, pt as extractEmbeddedIpv4FromIpv6, wt as parseCanonicalIpAddress, yt as isIpv4Address } from "./model-selection-
|
|
2
|
-
import { t as redactSensitiveText } from "./redact-
|
|
1
|
+
import { Tt as parseLooseIpAddress, _t as isCanonicalDottedDecimalIPv4, bt as isLegacyIpv4Literal, gt as isBlockedSpecialUseIpv6Address, ht as isBlockedSpecialUseIpv4Address, mt as ipMatchesAnyCidr, pt as extractEmbeddedIpv4FromIpv6, wt as parseCanonicalIpAddress, yt as isIpv4Address } from "./model-selection-CpVr-61V.js";
|
|
2
|
+
import { t as redactSensitiveText } from "./redact-BOHmCPP_.js";
|
|
3
3
|
import { lookup } from "node:dns";
|
|
4
4
|
import { lookup as lookup$1 } from "node:dns/promises";
|
|
5
5
|
import { Agent } from "undici";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import { fi as formatCliCommand } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import "./run-with-concurrency-
|
|
10
|
-
import "./redact-
|
|
11
|
-
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-
|
|
12
|
-
import "./path-alias-guards-
|
|
13
|
-
import { p as formatErrorMessage } from "./proxy-env-
|
|
14
|
-
import { s as writeFileFromPathWithinRoot } from "./fs-safe-
|
|
1
|
+
import "./agent-scope-cbxkoURo.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-BCjklMkJ.js";
|
|
4
|
+
import "./workspace-Dbn4gFdH.js";
|
|
5
|
+
import "./logger-DNehzD_s.js";
|
|
6
|
+
import { fi as formatCliCommand } from "./model-selection-CpVr-61V.js";
|
|
7
|
+
import "./github-copilot-token-WSjo05vB.js";
|
|
8
|
+
import "./legacy-names-CLlrMq8r.js";
|
|
9
|
+
import "./run-with-concurrency-4jh_yc-4.js";
|
|
10
|
+
import "./redact-BOHmCPP_.js";
|
|
11
|
+
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-DFRVroOs.js";
|
|
12
|
+
import "./path-alias-guards-Cd5yHmTq.js";
|
|
13
|
+
import { p as formatErrorMessage } from "./proxy-env-BL6Wl2NH.js";
|
|
14
|
+
import { s as writeFileFromPathWithinRoot } from "./fs-safe-DwICJjkN.js";
|
|
15
15
|
import fs from "node:fs/promises";
|
|
16
16
|
import path from "node:path";
|
|
17
17
|
import crypto from "node:crypto";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { G as parseAgentSessionKey } from "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import "./run-with-concurrency-
|
|
7
|
-
import "./redact-
|
|
8
|
-
import "./path-alias-guards-
|
|
9
|
-
import { c as writeFileWithinRoot } from "./fs-safe-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-cbxkoURo.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BCjklMkJ.js";
|
|
4
|
+
import { G as parseAgentSessionKey } from "./workspace-Dbn4gFdH.js";
|
|
5
|
+
import "./logger-DNehzD_s.js";
|
|
6
|
+
import "./run-with-concurrency-4jh_yc-4.js";
|
|
7
|
+
import "./redact-BOHmCPP_.js";
|
|
8
|
+
import "./path-alias-guards-Cd5yHmTq.js";
|
|
9
|
+
import { c as writeFileWithinRoot } from "./fs-safe-DwICJjkN.js";
|
|
10
10
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-CjNYeBcQ.js";
|
|
11
|
-
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-
|
|
11
|
+
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-Dm2XbrYk.js";
|
|
12
12
|
import fs from "node:fs/promises";
|
|
13
13
|
import os from "node:os";
|
|
14
14
|
import path from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { f as resolveSessionTranscriptsDirForAgent, r as isPrimarySessionTranscriptFileName, t as runTasksWithConcurrency } from "./run-with-concurrency-
|
|
3
|
-
import { t as redactSensitiveText } from "./redact-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-BCjklMkJ.js";
|
|
2
|
+
import { f as resolveSessionTranscriptsDirForAgent, r as isPrimarySessionTranscriptFileName, t as runTasksWithConcurrency } from "./run-with-concurrency-4jh_yc-4.js";
|
|
3
|
+
import { t as redactSensitiveText } from "./redact-BOHmCPP_.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import fs$1 from "node:fs";
|
|
8
8
|
import crypto from "node:crypto";
|
|
9
9
|
|
|
10
10
|
//#region src/memory/fs-utils.ts
|
|
@@ -30,7 +30,7 @@ async function statRegularFile(absPath) {
|
|
|
30
30
|
//#region src/memory/internal.ts
|
|
31
31
|
function ensureDir(dir) {
|
|
32
32
|
try {
|
|
33
|
-
|
|
33
|
+
fs$1.mkdirSync(dir, { recursive: true });
|
|
34
34
|
} catch {}
|
|
35
35
|
return dir;
|
|
36
36
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { y as DEFAULT_AGENT_ID } from "./workspace-
|
|
3
|
-
import { Er as createJsonlSessionRunStore, hn as getConfiguredSessionStorageRuntime, sr as instrumentSessionRunsForRunInvalidation, yr as emitDiagnosticEvent } from "./model-selection-
|
|
4
|
-
import { o as resolveDefaultSessionRunStorePath } from "./run-with-concurrency-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-BCjklMkJ.js";
|
|
2
|
+
import { y as DEFAULT_AGENT_ID } from "./workspace-Dbn4gFdH.js";
|
|
3
|
+
import { Er as createJsonlSessionRunStore, hn as getConfiguredSessionStorageRuntime, sr as instrumentSessionRunsForRunInvalidation, yr as emitDiagnosticEvent } from "./model-selection-CpVr-61V.js";
|
|
4
|
+
import { o as resolveDefaultSessionRunStorePath } from "./run-with-concurrency-4jh_yc-4.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { createHash, randomUUID } from "node:crypto";
|
|
7
7
|
|
|
@@ -123,9 +123,9 @@ import { t as copyToClipboard } from "./clipboard-DczD_L5d.js";
|
|
|
123
123
|
import "./note-CWaaN_Hi.js";
|
|
124
124
|
import "./issue-format-CZWi08uz.js";
|
|
125
125
|
import "./channels-status-issues-Dqam-IC6.js";
|
|
126
|
-
import "./completion-cli-
|
|
127
|
-
import "./register.subclis-
|
|
128
|
-
import "./command-registry-
|
|
126
|
+
import "./completion-cli-OG8408r3.js";
|
|
127
|
+
import "./register.subclis-DyqB2k1U.js";
|
|
128
|
+
import "./command-registry-XVw7Umb-.js";
|
|
129
129
|
import "./program-context-DFqiHyZ3.js";
|
|
130
130
|
import "./daemon-install-helpers-CKbnFsNZ.js";
|
|
131
131
|
import "./runtime-guard-DchtXvGj.js";
|
|
@@ -143,8 +143,8 @@ import "./doctor-config-flow-ruZ9-7vC.js";
|
|
|
143
143
|
import "./oauth-tls-preflight-DJESrRid.js";
|
|
144
144
|
import "./systemd-linger-BPzLwumk.js";
|
|
145
145
|
import "./health-format-DX1WwWnG.js";
|
|
146
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
147
|
-
import "./doctor-completion-
|
|
146
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-DWcT6TS3.js";
|
|
147
|
+
import "./doctor-completion-DHzAQdU5.js";
|
|
148
148
|
import path from "node:path";
|
|
149
149
|
import fs from "node:fs/promises";
|
|
150
150
|
import { cancel, confirm, isCancel, multiselect } from "@clack/prompts";
|
|
@@ -119,13 +119,13 @@ import "./heartbeat-tick-CsyeD75h.js";
|
|
|
119
119
|
import "./redact-snapshot-nXjCb0rC.js";
|
|
120
120
|
import "./session-cost-usage-BiAoknlp.js";
|
|
121
121
|
import "./runtime-guard-DYUXYZIl.js";
|
|
122
|
-
import "./program-context-
|
|
122
|
+
import "./program-context-B3m_Vhb8.js";
|
|
123
123
|
import "./skills-status-DlRO5tPX.js";
|
|
124
124
|
import { t as copyToClipboard } from "./clipboard-DcxpnFIc.js";
|
|
125
125
|
import "./note-DCbCarQS.js";
|
|
126
126
|
import "./issue-format-CaQXSrSl.js";
|
|
127
127
|
import "./channels-status-issues-ftWYsHm7.js";
|
|
128
|
-
import "./completion-cli-
|
|
128
|
+
import "./completion-cli-Cs6_r67M.js";
|
|
129
129
|
import "./daemon-install-helpers-DLapr-v1.js";
|
|
130
130
|
import { t as resolveGatewayService } from "./service-Hy5BSgmp.js";
|
|
131
131
|
import "./systemd-DsBMxUv1.js";
|
|
@@ -141,8 +141,8 @@ import "./doctor-config-flow-WOuFtQ3Z.js";
|
|
|
141
141
|
import "./oauth-tls-preflight-YpSAMEf-.js";
|
|
142
142
|
import "./systemd-linger-EvpJ4ZxF.js";
|
|
143
143
|
import "./health-format-_VGfj3fm.js";
|
|
144
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
145
|
-
import "./doctor-completion-
|
|
144
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-DGKn-Jnb.js";
|
|
145
|
+
import "./doctor-completion-DHGYwnha.js";
|
|
146
146
|
import path from "node:path";
|
|
147
147
|
import fs from "node:fs/promises";
|
|
148
148
|
import { cancel, confirm, isCancel, multiselect } from "@clack/prompts";
|
|
@@ -30,11 +30,11 @@ import "./runtime-guard-DYUXYZIl.js";
|
|
|
30
30
|
import "./note-DCbCarQS.js";
|
|
31
31
|
import "./clack-prompter-CcVX4jId.js";
|
|
32
32
|
import "./onboarding.secret-input-COacoKk4.js";
|
|
33
|
-
import "./onboarding-
|
|
33
|
+
import "./onboarding-BwJssndg.js";
|
|
34
34
|
import "./logging-DcZLtf7P.js";
|
|
35
35
|
import { t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-D3DJ3bcx.js";
|
|
36
36
|
import { n as formatAuthChoiceChoicesForCli } from "./auth-choice-options-1kTi8wDU.js";
|
|
37
|
-
import { t as onboardCommand } from "./onboard-
|
|
37
|
+
import { t as onboardCommand } from "./onboard-BwuGjbN2.js";
|
|
38
38
|
|
|
39
39
|
//#region src/cli/program/register.onboard.ts
|
|
40
40
|
function resolveInstallDaemonFlag(command, opts) {
|
|
@@ -29,11 +29,11 @@ import "./note-CWaaN_Hi.js";
|
|
|
29
29
|
import "./clack-prompter-fldgCPEr.js";
|
|
30
30
|
import "./runtime-guard-DchtXvGj.js";
|
|
31
31
|
import "./onboarding.secret-input-CsF4Gvtt.js";
|
|
32
|
-
import "./onboarding-
|
|
32
|
+
import "./onboarding-BeCgp92Z.js";
|
|
33
33
|
import "./logging-DgKdQHpc.js";
|
|
34
34
|
import { t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-CloquEDg.js";
|
|
35
35
|
import { n as formatAuthChoiceChoicesForCli } from "./auth-choice-options-Bfm3PDjb.js";
|
|
36
|
-
import { t as onboardCommand } from "./onboard-
|
|
36
|
+
import { t as onboardCommand } from "./onboard-8QmY5qtC.js";
|
|
37
37
|
|
|
38
38
|
//#region src/cli/program/register.onboard.ts
|
|
39
39
|
function resolveInstallDaemonFlag(command, opts) {
|
|
@@ -30,9 +30,9 @@ import "./note-CWaaN_Hi.js";
|
|
|
30
30
|
import "./clack-prompter-fldgCPEr.js";
|
|
31
31
|
import "./runtime-guard-DchtXvGj.js";
|
|
32
32
|
import "./onboarding.secret-input-CsF4Gvtt.js";
|
|
33
|
-
import "./onboarding-
|
|
33
|
+
import "./onboarding-BeCgp92Z.js";
|
|
34
34
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-DgKdQHpc.js";
|
|
35
|
-
import { t as onboardCommand } from "./onboard-
|
|
35
|
+
import { t as onboardCommand } from "./onboard-8QmY5qtC.js";
|
|
36
36
|
import JSON5 from "json5";
|
|
37
37
|
import fs from "node:fs/promises";
|
|
38
38
|
|
|
@@ -31,9 +31,9 @@ import { t as hasExplicitOptions } from "./command-options-6wdtBBWB.js";
|
|
|
31
31
|
import "./note-DCbCarQS.js";
|
|
32
32
|
import "./clack-prompter-CcVX4jId.js";
|
|
33
33
|
import "./onboarding.secret-input-COacoKk4.js";
|
|
34
|
-
import "./onboarding-
|
|
34
|
+
import "./onboarding-BwJssndg.js";
|
|
35
35
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-DcZLtf7P.js";
|
|
36
|
-
import { t as onboardCommand } from "./onboard-
|
|
36
|
+
import { t as onboardCommand } from "./onboard-BwuGjbN2.js";
|
|
37
37
|
import JSON5 from "json5";
|
|
38
38
|
import fs from "node:fs/promises";
|
|
39
39
|
|
|
@@ -65,7 +65,7 @@ const entries = [
|
|
|
65
65
|
description: "Run, inspect, and query the WebSocket Gateway",
|
|
66
66
|
hasSubcommands: true,
|
|
67
67
|
register: async (program) => {
|
|
68
|
-
(await import("./gateway-cli-
|
|
68
|
+
(await import("./gateway-cli-0mPia-yK.js")).registerGatewayCli(program);
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -285,7 +285,7 @@ const entries = [
|
|
|
285
285
|
description: "Update OpenClaw and inspect update channel status",
|
|
286
286
|
hasSubcommands: true,
|
|
287
287
|
register: async (program) => {
|
|
288
|
-
(await import("./update-cli-
|
|
288
|
+
(await import("./update-cli-CjIUOznW.js")).registerUpdateCli(program);
|
|
289
289
|
}
|
|
290
290
|
},
|
|
291
291
|
{
|
|
@@ -293,7 +293,7 @@ const entries = [
|
|
|
293
293
|
description: "Generate shell completion script",
|
|
294
294
|
hasSubcommands: false,
|
|
295
295
|
register: async (program) => {
|
|
296
|
-
(await import("./completion-cli-
|
|
296
|
+
(await import("./completion-cli-OG8408r3.js").then((n) => n.n)).registerCompletionCli(program);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
3
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
4
|
-
import { d as resolveOutboundSessionId, f as getGlobalHookRunner, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-
|
|
5
|
-
import { i as chunkMarkdownTextWithMode } from "./chunk-
|
|
2
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-AlsHHAwq.js";
|
|
3
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-9Mla_HDp.js";
|
|
4
|
+
import { d as resolveOutboundSessionId, f as getGlobalHookRunner, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-BclU8TMt.js";
|
|
5
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-B7KZoDXm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/auto-reply/reply/reply-reference.ts
|
|
8
8
|
function createReplyReferencePlanner(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { In as parseInlineDirectives } from "./model-selection-
|
|
2
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
1
|
+
import { In as parseInlineDirectives } from "./model-selection-CpVr-61V.js";
|
|
2
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-9Mla_HDp.js";
|
|
3
3
|
import { r as parseFenceSpans } from "./fences-DHXKaTRv.js";
|
|
4
4
|
|
|
5
5
|
//#region src/media/audio-tags.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as resolveAgentConfig } from "./agent-scope-
|
|
2
|
+
import { r as resolveAgentConfig } from "./agent-scope-cbxkoURo.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/identity.ts
|
|
5
5
|
const DEFAULT_ACK_REACTION = "👀";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { l as resolveDefaultAgentId } from "./agent-scope-
|
|
3
|
-
import { h as shouldLogVerbose } from "./subsystem-
|
|
4
|
-
import { A as resolveCanonicalIdentity, D as normalizeAgentId, I as DEFAULT_ACCOUNT_ID, L as normalizeAccountId, P as sanitizeAgentId, S as buildAgentPeerSessionKey, b as DEFAULT_MAIN_KEY, x as buildAgentMainSessionKey, y as DEFAULT_AGENT_ID } from "./workspace-
|
|
5
|
-
import { t as logDebug } from "./logger-
|
|
6
|
-
import { ti as listBindings } from "./model-selection-
|
|
2
|
+
import { l as resolveDefaultAgentId } from "./agent-scope-cbxkoURo.js";
|
|
3
|
+
import { h as shouldLogVerbose } from "./subsystem-BCjklMkJ.js";
|
|
4
|
+
import { A as resolveCanonicalIdentity, D as normalizeAgentId, I as DEFAULT_ACCOUNT_ID, L as normalizeAccountId, P as sanitizeAgentId, S as buildAgentPeerSessionKey, b as DEFAULT_MAIN_KEY, x as buildAgentMainSessionKey, y as DEFAULT_AGENT_ID } from "./workspace-Dbn4gFdH.js";
|
|
5
|
+
import { t as logDebug } from "./logger-DNehzD_s.js";
|
|
6
|
+
import { ti as listBindings } from "./model-selection-CpVr-61V.js";
|
|
7
7
|
import { r as normalizeChatType } from "./conversation-label-BnH5Yy9T.js";
|
|
8
8
|
|
|
9
9
|
//#region src/routing/resolve-route.ts
|
|
@@ -408,7 +408,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
408
408
|
assertSupportedRuntime();
|
|
409
409
|
if (await tryRouteCli(normalizedArgv)) return;
|
|
410
410
|
enableConsoleCapture();
|
|
411
|
-
const { buildProgram } = await import("./program-
|
|
411
|
+
const { buildProgram } = await import("./program-DAwSVRFz.js");
|
|
412
412
|
const program = buildProgram();
|
|
413
413
|
installUnhandledRejectionHandler();
|
|
414
414
|
process$1.on("uncaughtException", (error) => {
|
|
@@ -421,10 +421,10 @@ async function runCli(argv = process$1.argv) {
|
|
|
421
421
|
const { getProgramContext } = await import("./program-context-DFqiHyZ3.js").then((n) => n.n);
|
|
422
422
|
const ctx = getProgramContext(program);
|
|
423
423
|
if (ctx) {
|
|
424
|
-
const { registerCoreCliByName } = await import("./command-registry-
|
|
424
|
+
const { registerCoreCliByName } = await import("./command-registry-XVw7Umb-.js").then((n) => n.t);
|
|
425
425
|
await registerCoreCliByName(program, ctx, primary, parseArgv);
|
|
426
426
|
}
|
|
427
|
-
const { registerSubCliByName } = await import("./register.subclis-
|
|
427
|
+
const { registerSubCliByName } = await import("./register.subclis-DyqB2k1U.js").then((n) => n.a);
|
|
428
428
|
await registerSubCliByName(program, primary);
|
|
429
429
|
}
|
|
430
430
|
if (!shouldSkipPluginCommandRegistration({
|