wednesdayai 0.5.0 → 0.5.1-dev.2
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-DaYoimRo.js → agent-scope-VTjBKG-0.js} +3 -3
- package/dist/{agent-turn-runner-B9ZpICYG.js → agent-turn-runner-CZilDjoa.js} +4 -4
- package/dist/{agent-turn-runner-D17nO0vK.js → agent-turn-runner-DGW1XTSZ.js} +6 -6
- package/dist/{api-key-rotation-CFBqEjJo.js → api-key-rotation-C7Uer3wX.js} +2 -2
- package/dist/{audio-preflight-IAvClu-y.js → audio-preflight-5kfGz36M.js} +29 -29
- package/dist/{audio-preflight-0IORdIpv.js → audio-preflight-CyoX7lif.js} +5 -5
- package/dist/{audio-transcription-runner-XF9vtq2K.js → audio-transcription-runner-6owLZL6w.js} +1 -1
- package/dist/{audio-transcription-runner-DO37G4ea.js → audio-transcription-runner-CBRRwnRT.js} +26 -26
- package/dist/build-info.json +4 -4
- package/dist/bundled/boot-md/handler.js +60 -60
- 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 +60 -60
- package/dist/bundled/session-memory/handler.js +60 -60
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-osbmoIZV.js → channel-activity-CgARXGuN.js} +3 -3
- package/dist/{chat-content-D9t717tu.js → chat-content-CjKyPXfO.js} +34 -34
- package/dist/{chat-content-CF94bdqd.js → chat-content-Dp_TK_pI.js} +3 -3
- package/dist/{chrome-Bz--jRWP.js → chrome-C9hAxf3E.js} +5 -5
- package/dist/{chrome-Cb_eHwXe.js → chrome-DKYaSdXE.js} +23 -23
- package/dist/{chunk-BGAIfwvG.js → chunk-CmQRdRrT.js} +3 -3
- package/dist/{command-queue-Blj57uZh.js → command-queue-DiOM6aJb.js} +1 -1
- package/dist/{command-queue-CHDYFklA.js → command-queue-arMRWvX5.js} +1 -1
- package/dist/{commands-registry-CHyanyMK.js → commands-registry-Bpqy7T_m.js} +2 -2
- package/dist/{deliver-ItqNbpAj.js → deliver-DGxrgy4y.js} +1 -1
- package/dist/{deliver-B1z53DPr.js → deliver-hdhBsluU.js} +29 -29
- package/dist/{diagnostic-DHSjiKQ1.js → diagnostic-DWnW43D8.js} +5 -5
- package/dist/{diagnostic-BsxoGiFO.js → diagnostic-f8CKHXWb.js} +1 -1
- package/dist/{errors-CCOle-CH.js → errors-h4QgDEJU.js} +1 -1
- package/dist/extensionAPI.js +12 -12
- package/dist/{fetch-CJta9EH3.js → fetch-BkWHUyJz.js} +8 -8
- package/dist/{fetch-guard-CnaMeBGo.js → fetch-guard-BUJnD_0T.js} +3 -3
- package/dist/{frontmatter-DlRD-Jnx.js → frontmatter-IfoWyoLV.js} +3 -3
- package/dist/{fs-safe-DpdLT3fB.js → fs-safe-joAzTKB9.js} +26 -26
- package/dist/{image-ops-YU6OONEl.js → image-ops-d6AhYSNh.js} +1 -1
- package/dist/{ir-BdHn6F6Y.js → ir-B0cUtyev.js} +5 -5
- package/dist/{legacy-names-me5dD9PP.js → legacy-names-Dh4RlQMQ.js} +1 -1
- package/dist/llm-slug-generator.js +60 -60
- package/dist/{logger-BrQxLcMY.js → logger-vVASmiVr.js} +1 -1
- package/dist/{manager-xwMosvyt.js → manager-SEkHJEk4.js} +18 -18
- package/dist/{markdown-tables-BVgH365V.js → markdown-tables-pw9wiTpN.js} +2 -2
- package/dist/{model-selection-CYypdqr8.js → model-selection-BTxcwzNF.js} +83 -83
- package/dist/{models-config-D7vsT5RL.js → models-config-CrYtS7l_.js} +2 -2
- package/dist/{outbound-attachment-C_QOYkXN.js → outbound-attachment-ecpn937X.js} +2 -2
- package/dist/{outbound-message-hooks-BYTh0d2Q.js → outbound-message-hooks-BA0MXlRL.js} +5 -5
- package/dist/{path-alias-guards-BdGLz9X0.js → path-alias-guards-BzCkdlOk.js} +1 -1
- package/dist/{pi-embedded-BtqsPDuE.js → pi-embedded-C3a3mJgO.js} +272 -272
- package/dist/{pi-embedded-D6nR71l7.js → pi-embedded-cc9FvjV6.js} +28 -28
- package/dist/{pi-embedded-utils-C-iiawNt.js → pi-embedded-utils-Bu-pLHgt.js} +3 -3
- package/dist/{pi-embedded-utils-Bb82klSc.js → pi-embedded-utils-DKfjTsdf.js} +1 -1
- package/dist/{pi-model-discovery-fTAJjO1L.js → pi-model-discovery-BHTeo1nC.js} +7 -7
- package/dist/plugin-sdk/{agent-turn-execute-R1HDfkzv.js → agent-turn-execute-5UY7VtoM.js} +12 -12
- package/dist/plugin-sdk/{agent-turn-runner-BJKm0xiy.js → agent-turn-runner-Cn8kBLTA.js} +4 -4
- package/dist/plugin-sdk/{audio-preflight-BB1yTgKL.js → audio-preflight-DmcETAqz.js} +5 -5
- package/dist/plugin-sdk/{audio-transcription-runner-reKaz0zD.js → audio-transcription-runner-CmY7S8fK.js} +1 -1
- package/dist/plugin-sdk/{chrome-WLpY6l2E.js → chrome-6h5M_drY.js} +8 -8
- package/dist/plugin-sdk/{command-queue-CAp1zb7F.js → command-queue-DIuk1L2E.js} +1 -1
- package/dist/plugin-sdk/{deliver-DlvbM-qn.js → deliver-C9GFYFwr.js} +1 -1
- package/dist/plugin-sdk/{deliver-BmT0wV-k.js → deliver-DPfI8dVE.js} +3 -3
- package/dist/plugin-sdk/{diagnostic-RXIEvDQf.js → diagnostic-DRY8-0JL.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-21OqohWy.js → pi-embedded-helpers-D5vYvfne.js} +3 -3
- package/dist/plugin-sdk/{pi-embedded-utils-BW2p1kKO.js → pi-embedded-utils-CGDgVtzV.js} +1 -1
- package/dist/plugin-sdk/{provider-dispatcher-rwnQ0CEc.js → provider-dispatcher-DryAXJsi.js} +12 -12
- package/dist/plugin-sdk/{provider-image-3obRwbTZ.js → provider-image-CVcMld07.js} +4 -4
- package/dist/plugin-sdk/{provider-image-B68yYRAm.js → provider-image-Df0uD0Oe.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-CSRaN1ac.js → pw-ai-DMALp-EA.js} +1 -1
- package/dist/plugin-sdk/{runs-5hM5yurH.js → runs-BASRXkuM.js} +3 -3
- package/dist/plugin-sdk/{runs-DvLuGamE.js → runs-yMaO6qGS.js} +5 -5
- package/dist/plugin-sdk/{send-Zxl5JOn5.js → send-BqbtJqgu.js} +1 -1
- package/dist/plugin-sdk/{send-CzwcnXPR.js → send-CmZ4gvBw.js} +2 -2
- package/dist/plugin-sdk/{subagent-registry-Y727Of1U.js → subagent-registry-GgT4DYT1.js} +12 -12
- package/dist/plugin-sdk/testing.js +12 -12
- package/dist/plugin-sdk/{tools-joKDe6rw.js → tools-Bigk4qN-.js} +32 -32
- package/dist/{provider-image-Do7qMZhI.js → provider-image-BZgdxPq1.js} +1 -1
- package/dist/{provider-image-DEcMOAkN.js → provider-image-BoLaTMGA.js} +6 -6
- package/dist/{proxy-DaAwoyLn.js → proxy-CPi-EHQf.js} +1 -1
- package/dist/{proxy-env-DbK61KfJ.js → proxy-env-D-BYfN9f.js} +1 -1
- package/dist/{proxy-fetch-DfICXirF.js → proxy-fetch-SAeVJOzX.js} +1 -1
- package/dist/{pw-ai-BPTONp50.js → pw-ai-BX6tMIuu.js} +14 -14
- package/dist/{pw-ai-vX880pfn.js → pw-ai-ZhKSFpfJ.js} +1 -1
- package/dist/{qmd-manager-BwE9yS9R.js → qmd-manager-D8ak7kq1.js} +12 -12
- package/dist/{query-expansion-D98bVcfg.js → query-expansion-Cfj6kuQN.js} +13 -13
- package/dist/{recorder-DsunFllM.js → recorder-9g0HAfTV.js} +2 -2
- package/dist/{redact-CO0RqVMz.js → redact-CteA3IBL.js} +1 -1
- package/dist/{replies-pB9HCyld.js → replies-BbIj7g9M.js} +5 -5
- package/dist/{reply-directives-mulrKdb0.js → reply-directives-DBlsFghT.js} +2 -2
- package/dist/{reply-prefix-JmOFNTVH.js → reply-prefix-B4-hQLj2.js} +1 -1
- package/dist/{resolve-route-5h1UlQhK.js → resolve-route-BVQQmyE-.js} +5 -5
- package/dist/{runs-DEhpITiC.js → runs-Dar4NRlC.js} +3 -3
- package/dist/{runs-CYEm5TJX.js → runs-n_IyEnjI.js} +9 -9
- package/dist/{send-Bcmcrt2M.js → send-BaBji8OV.js} +6 -6
- package/dist/{send-CaxLshmb.js → send-Blzch_-J.js} +6 -6
- package/dist/{send-i_w4A0N2.js → send-D3AqPouq.js} +7 -7
- package/dist/{send-LdGFidPd.js → send-D4CyRJfb.js} +8 -8
- package/dist/{send-mGol3d2c.js → send-Owye3CdT.js} +27 -27
- package/dist/{send-C4CkAZXl.js → send-tEYUiTsj.js} +1 -1
- package/dist/{session-meta-CmQ6a7H5.js → session-meta-n_Hhzi0B.js} +1 -1
- package/dist/{sessions-ZdGPevHF.js → sessions-C8YjZYd5.js} +5 -5
- package/dist/{skill-commands-XRDXSro6.js → skill-commands-DyocWgx1.js} +8 -8
- package/dist/{skills-CXVcffYI.js → skills-BNWKnQc8.js} +21 -21
- package/dist/{store-CYs-lya8.js → store-BkbDrlDX.js} +7 -7
- package/dist/{subsystem-Bv4j-uIg.js → subsystem-D_zHSy02.js} +67 -67
- package/dist/{tables-BbGV4Ys1.js → tables-B_gp2rXG.js} +1 -1
- package/dist/{tokens-BdntrBR4.js → tokens-B3OPeQh5.js} +1 -1
- package/dist/{tool-loop-detection-CdZfb_CR.js → tool-loop-detection-ST5jhih3.js} +2 -2
- package/dist/{user-run-recording-Dr98Mjnd.js → user-run-recording-CMwTVvoc.js} +2 -2
- package/dist/{workspace-yHh5Lf7Z.js → workspace-CkXKTYV4.js} +27 -27
- 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 +6 -0
- 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 +6 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +6 -0
- 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 +6 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +6 -0
- 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 +6 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +6 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/github-copilot-token-DYYKoDuV.js +0 -106
- package/dist/paths-BIDPYPVC.js +0 -233
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { H as isPathInside, V as isNotFoundPathError, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { U as loadConfig, _t as normalizeIpAddress, ft as isIpInCidr, gt as isPrivateOrLoopbackIpAddress, ht as isLoopbackIpAddress } from "./model-selection-
|
|
3
|
-
import { s as isErrno } from "./errors-
|
|
4
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
5
|
-
import { c as resolvePinnedHostnameWithPolicy, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { H as isPathInside, V as isNotFoundPathError, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-BaT-AAVZ.js";
|
|
2
|
+
import { U as loadConfig, _t as normalizeIpAddress, ft as isIpInCidr, gt as isPrivateOrLoopbackIpAddress, ht as isLoopbackIpAddress } from "./model-selection-BfWX9DVv.js";
|
|
3
|
+
import { s as isErrno } from "./errors-DuWEJolt.js";
|
|
4
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-B3XheN2k.js";
|
|
5
|
+
import { c as resolvePinnedHostnameWithPolicy, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-CdoM4MKQ.js";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import syncFs from "node:fs";
|
|
8
8
|
import os from "node:os";
|
|
9
|
-
import fs
|
|
9
|
+
import fs from "node:fs/promises";
|
|
10
10
|
import { execFileSync, spawn } from "node:child_process";
|
|
11
11
|
import { createHmac } from "node:crypto";
|
|
12
12
|
import net from "node:net";
|
|
@@ -203,28 +203,28 @@ function invalidPath(scopeLabel) {
|
|
|
203
203
|
}
|
|
204
204
|
async function resolveRealPathIfExists(targetPath) {
|
|
205
205
|
try {
|
|
206
|
-
return await fs
|
|
206
|
+
return await fs.realpath(targetPath);
|
|
207
207
|
} catch {
|
|
208
208
|
return;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
async function resolveTrustedRootRealPath(rootDir) {
|
|
212
212
|
try {
|
|
213
|
-
const rootLstat = await fs
|
|
213
|
+
const rootLstat = await fs.lstat(rootDir);
|
|
214
214
|
if (!rootLstat.isDirectory() || rootLstat.isSymbolicLink()) return;
|
|
215
|
-
return await fs
|
|
215
|
+
return await fs.realpath(rootDir);
|
|
216
216
|
} catch {
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
async function validateCanonicalPathWithinRoot(params) {
|
|
221
221
|
try {
|
|
222
|
-
const candidateLstat = await fs
|
|
222
|
+
const candidateLstat = await fs.lstat(params.candidatePath);
|
|
223
223
|
if (candidateLstat.isSymbolicLink()) return "invalid";
|
|
224
224
|
if (params.expect === "directory" && !candidateLstat.isDirectory()) return "invalid";
|
|
225
225
|
if (params.expect === "file" && !candidateLstat.isFile()) return "invalid";
|
|
226
226
|
if (params.expect === "file" && candidateLstat.nlink > 1) return "invalid";
|
|
227
|
-
const candidateRealPath = await fs
|
|
227
|
+
const candidateRealPath = await fs.realpath(params.candidatePath);
|
|
228
228
|
return isPathInside(params.rootRealPath, candidateRealPath) ? "ok" : "invalid";
|
|
229
229
|
} catch (err) {
|
|
230
230
|
return isNotFoundPathError(err) ? "not-found" : "invalid";
|
|
@@ -302,7 +302,7 @@ async function resolveCheckedPathsWithinRoot(params) {
|
|
|
302
302
|
};
|
|
303
303
|
if (!rootRealPath || !raw || !path.isAbsolute(raw)) return lexicalPathResult;
|
|
304
304
|
try {
|
|
305
|
-
const resolvedExistingPath = await fs
|
|
305
|
+
const resolvedExistingPath = await fs.realpath(raw);
|
|
306
306
|
const relativePath = path.relative(rootRealPath, resolvedExistingPath);
|
|
307
307
|
if (!isInRoot(relativePath)) return lexicalPathResult;
|
|
308
308
|
return {
|
|
@@ -1650,7 +1650,7 @@ const CHROMIUM_EXE_NAMES = new Set([
|
|
|
1650
1650
|
]);
|
|
1651
1651
|
function exists$1(filePath) {
|
|
1652
1652
|
try {
|
|
1653
|
-
return
|
|
1653
|
+
return syncFs.existsSync(filePath);
|
|
1654
1654
|
} catch {
|
|
1655
1655
|
return false;
|
|
1656
1656
|
}
|
|
@@ -1793,7 +1793,7 @@ function findDesktopFilePath(desktopId) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
function readDesktopExecLine(desktopPath) {
|
|
1795
1795
|
try {
|
|
1796
|
-
const lines =
|
|
1796
|
+
const lines = syncFs.readFileSync(desktopPath, "utf8").split(/\r?\n/);
|
|
1797
1797
|
for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
|
|
1798
1798
|
} catch {}
|
|
1799
1799
|
return null;
|
|
@@ -2051,7 +2051,7 @@ function resolveBrowserExecutableForPlatform(resolved, platform) {
|
|
|
2051
2051
|
const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
|
|
2052
2052
|
function resolveLsofCommandSync() {
|
|
2053
2053
|
for (const candidate of LSOF_CANDIDATES) try {
|
|
2054
|
-
|
|
2054
|
+
syncFs.accessSync(candidate, syncFs.constants.X_OK);
|
|
2055
2055
|
return candidate;
|
|
2056
2056
|
} catch {}
|
|
2057
2057
|
return "lsof";
|
|
@@ -2096,8 +2096,8 @@ function decoratedMarkerPath(userDataDir) {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
function safeReadJson(filePath) {
|
|
2098
2098
|
try {
|
|
2099
|
-
if (!
|
|
2100
|
-
const raw =
|
|
2099
|
+
if (!syncFs.existsSync(filePath)) return null;
|
|
2100
|
+
const raw = syncFs.readFileSync(filePath, "utf-8");
|
|
2101
2101
|
const parsed = JSON.parse(raw);
|
|
2102
2102
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
2103
2103
|
return parsed;
|
|
@@ -2106,8 +2106,8 @@ function safeReadJson(filePath) {
|
|
|
2106
2106
|
}
|
|
2107
2107
|
}
|
|
2108
2108
|
function safeWriteJson(filePath, data) {
|
|
2109
|
-
|
|
2110
|
-
|
|
2109
|
+
syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
2110
|
+
syncFs.writeFileSync(filePath, JSON.stringify(data, null, 2));
|
|
2111
2111
|
}
|
|
2112
2112
|
function setDeep(obj, keys, value) {
|
|
2113
2113
|
let node = obj;
|
|
@@ -2234,7 +2234,7 @@ function decorateOpenClawProfile(userDataDir, opts) {
|
|
|
2234
2234
|
}
|
|
2235
2235
|
safeWriteJson(preferencesPath, prefs);
|
|
2236
2236
|
try {
|
|
2237
|
-
|
|
2237
|
+
syncFs.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
|
|
2238
2238
|
} catch {}
|
|
2239
2239
|
}
|
|
2240
2240
|
function ensureProfileCleanExit(userDataDir) {
|
|
@@ -2250,7 +2250,7 @@ function ensureProfileCleanExit(userDataDir) {
|
|
|
2250
2250
|
const log = createSubsystemLogger("browser").child("chrome");
|
|
2251
2251
|
function exists(filePath) {
|
|
2252
2252
|
try {
|
|
2253
|
-
return
|
|
2253
|
+
return syncFs.existsSync(filePath);
|
|
2254
2254
|
} catch {
|
|
2255
2255
|
return false;
|
|
2256
2256
|
}
|
|
@@ -2348,7 +2348,7 @@ async function launchOpenClawChrome(resolved, profile) {
|
|
|
2348
2348
|
const exe = resolveBrowserExecutable(resolved);
|
|
2349
2349
|
if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
|
|
2350
2350
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
2351
|
-
|
|
2351
|
+
syncFs.mkdirSync(userDataDir, { recursive: true });
|
|
2352
2352
|
const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_OPENCLAW_BROWSER_COLOR).toUpperCase());
|
|
2353
2353
|
const spawnOnce = () => {
|
|
2354
2354
|
const args = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { V as normalizeAccountId } from "./workspace-
|
|
4
|
-
import { Fr as INTERNAL_MESSAGE_CHANNEL, kr as resolveAccountEntry } from "./model-selection-
|
|
2
|
+
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-D_zHSy02.js";
|
|
3
|
+
import { V as normalizeAccountId } from "./workspace-CkXKTYV4.js";
|
|
4
|
+
import { Fr as INTERNAL_MESSAGE_CHANNEL, kr as resolveAccountEntry } from "./model-selection-BTxcwzNF.js";
|
|
5
5
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-RrqZTgHp.js";
|
|
6
6
|
|
|
7
7
|
//#region src/auto-reply/chunk.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-
|
|
2
|
+
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-DWnW43D8.js";
|
|
3
3
|
import { t as CommandLane } from "./lanes-DTaUAkeG.js";
|
|
4
4
|
|
|
5
5
|
//#region src/process/command-queue.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-
|
|
2
|
+
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-f8CKHXWb.js";
|
|
3
3
|
import { t as CommandLane } from "./lanes-DBBnME5O.js";
|
|
4
4
|
|
|
5
5
|
//#region src/process/command-queue.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { tt as escapeRegExp } from "./subsystem-
|
|
2
|
+
import { tt as escapeRegExp } from "./subsystem-D_zHSy02.js";
|
|
3
3
|
import { t as isPlainObject } from "./plain-object-CLm2c5Nu.js";
|
|
4
|
-
import { Aa as DEFAULT_PROVIDER, Gt as getActivePluginRegistry, Jn as normalizeChannelId, Xn as listChannelDocks, ka as DEFAULT_MODEL, u as resolveConfiguredModelRef } from "./model-selection-
|
|
4
|
+
import { Aa as DEFAULT_PROVIDER, Gt as getActivePluginRegistry, Jn as normalizeChannelId, Xn as listChannelDocks, ka as DEFAULT_MODEL, u as resolveConfiguredModelRef } from "./model-selection-BTxcwzNF.js";
|
|
5
5
|
import { r as listThinkingLevels } from "./thinking-CcoiS9V4.js";
|
|
6
6
|
|
|
7
7
|
//#region src/config/commands.ts
|
|
@@ -5,7 +5,7 @@ import { t as createSubsystemLogger } from "./subsystem-BaT-AAVZ.js";
|
|
|
5
5
|
import { $n as getChannelDock, Jt as getActivePluginRegistryVersion, Kt as getActivePluginRegistry, Qn as normalizeChannelId, U as loadConfig, Xn as getChannelPlugin, ba as resolveOpenClawAgentDir, bn as loadSessionStore, fn as getConversationReadQuery, kn as updateSessionStoreEntry, qn as resolveStorePath, un as StorageReadAccessError, yn as listConfiguredSessionStorageAgentIds } from "./model-selection-BfWX9DVv.js";
|
|
6
6
|
import { O as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, et as eventOrder, ft as getGlobalHookRunner, i as appendAssistantMessageToSessionTranscript, j as resolveMainSessionKey, o as parseInlineDirectives } from "./sessions-6Ql8ERz-.js";
|
|
7
7
|
import { n as generateSecureUuid } from "./secure-random-BDA1WAvZ.js";
|
|
8
|
-
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-
|
|
8
|
+
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-Dp_TK_pI.js";
|
|
9
9
|
import { o as hasErrnoCode } from "./errors-DuWEJolt.js";
|
|
10
10
|
import { t as ensureOpenClawModelsJson } from "./models-config-FAZy8DyR.js";
|
|
11
11
|
import { i as getAgentScopedMediaLocalRoots } from "./fetch-DtE_K97A.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { l as resolveDefaultAgentId } from "./agent-scope-
|
|
3
|
-
import { l as resolveStateDir } from "./paths-
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { H as normalizeOptionalAccountId, M as normalizeMainKey, V as normalizeAccountId, Z as parseAgentSessionKey, j as normalizeAgentId } from "./workspace-
|
|
6
|
-
import { Gt as getActivePluginRegistry, Jn as normalizeChannelId, Kn as getChannelPlugin, Tn as updateSessionStoreEntry, U as loadConfig, Un as resolveStorePath, Yn as getChannelDock, _n as loadSessionStore, gn as listConfiguredSessionStorageAgentIds, ha as resolveOpenClawAgentDir, ln as getConversationReadQuery, qt as getActivePluginRegistryVersion, sn as StorageReadAccessError } from "./model-selection-
|
|
7
|
-
import { O as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, et as eventOrder, ft as getGlobalHookRunner, i as appendAssistantMessageToSessionTranscript, j as resolveMainSessionKey, o as parseInlineDirectives, ut as hasInterSessionUserProvenance } from "./sessions-
|
|
2
|
+
import { l as resolveDefaultAgentId } from "./agent-scope-VTjBKG-0.js";
|
|
3
|
+
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-D_zHSy02.js";
|
|
5
|
+
import { H as normalizeOptionalAccountId, M as normalizeMainKey, V as normalizeAccountId, Z as parseAgentSessionKey, j as normalizeAgentId } from "./workspace-CkXKTYV4.js";
|
|
6
|
+
import { Gt as getActivePluginRegistry, Jn as normalizeChannelId, Kn as getChannelPlugin, Tn as updateSessionStoreEntry, U as loadConfig, Un as resolveStorePath, Yn as getChannelDock, _n as loadSessionStore, gn as listConfiguredSessionStorageAgentIds, ha as resolveOpenClawAgentDir, ln as getConversationReadQuery, qt as getActivePluginRegistryVersion, sn as StorageReadAccessError } from "./model-selection-BTxcwzNF.js";
|
|
7
|
+
import { O as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, et as eventOrder, ft as getGlobalHookRunner, i as appendAssistantMessageToSessionTranscript, j as resolveMainSessionKey, o as parseInlineDirectives, ut as hasInterSessionUserProvenance } from "./sessions-C8YjZYd5.js";
|
|
8
8
|
import { n as generateSecureUuid } from "./secure-random-BEYczWtd.js";
|
|
9
|
-
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-
|
|
10
|
-
import { o as hasErrnoCode } from "./errors-
|
|
11
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
12
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
13
|
-
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-
|
|
14
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
15
|
-
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-
|
|
16
|
-
import { t as parseReplyDirectives } from "./reply-directives-
|
|
17
|
-
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
9
|
+
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-CjKyPXfO.js";
|
|
10
|
+
import { o as hasErrnoCode } from "./errors-h4QgDEJU.js";
|
|
11
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-CrYtS7l_.js";
|
|
12
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-BkWHUyJz.js";
|
|
13
|
+
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-CmQRdRrT.js";
|
|
14
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-pw9wiTpN.js";
|
|
15
|
+
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-BA0MXlRL.js";
|
|
16
|
+
import { t as parseReplyDirectives } from "./reply-directives-DBlsFghT.js";
|
|
17
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-BaBji8OV.js";
|
|
18
18
|
import path from "node:path";
|
|
19
|
-
import
|
|
19
|
+
import syncFs from "node:fs";
|
|
20
20
|
import { createHash } from "node:crypto";
|
|
21
21
|
import { setTimeout } from "node:timers/promises";
|
|
22
22
|
|
|
@@ -372,7 +372,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
372
372
|
await ensureOpenClawModelsJson(cfg);
|
|
373
373
|
} catch {}
|
|
374
374
|
try {
|
|
375
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
375
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-BHTeo1nC.js").then((n) => n.r);
|
|
376
376
|
const agentDir = resolveOpenClawAgentDir();
|
|
377
377
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
378
378
|
applyDiscoveredContextWindows({
|
|
@@ -686,7 +686,7 @@ function listExistingAgentIdsFromDisk() {
|
|
|
686
686
|
const root = resolveStateDir();
|
|
687
687
|
const agentsDir = path.join(root, "agents");
|
|
688
688
|
try {
|
|
689
|
-
return
|
|
689
|
+
return syncFs.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
|
|
690
690
|
} catch {
|
|
691
691
|
return [];
|
|
692
692
|
}
|
|
@@ -887,11 +887,11 @@ function resolveFailedDir(stateDir) {
|
|
|
887
887
|
/** Ensure the queue directory (and failed/ subdirectory) exist. */
|
|
888
888
|
async function ensureQueueDir(stateDir) {
|
|
889
889
|
const queueDir = resolveQueueDir(stateDir);
|
|
890
|
-
await
|
|
890
|
+
await syncFs.promises.mkdir(queueDir, {
|
|
891
891
|
recursive: true,
|
|
892
892
|
mode: 448
|
|
893
893
|
});
|
|
894
|
-
await
|
|
894
|
+
await syncFs.promises.mkdir(resolveFailedDir(stateDir), {
|
|
895
895
|
recursive: true,
|
|
896
896
|
mode: 448
|
|
897
897
|
});
|
|
@@ -921,18 +921,18 @@ async function enqueueDelivery(params, stateDir) {
|
|
|
921
921
|
const filePath = path.join(queueDir, `${id}.json`);
|
|
922
922
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
923
923
|
const json = JSON.stringify(entry, null, 2);
|
|
924
|
-
await
|
|
924
|
+
await syncFs.promises.writeFile(tmp, json, {
|
|
925
925
|
encoding: "utf-8",
|
|
926
926
|
mode: 384
|
|
927
927
|
});
|
|
928
|
-
await
|
|
928
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
929
929
|
return id;
|
|
930
930
|
}
|
|
931
931
|
/** Remove a successfully delivered entry from the queue. */
|
|
932
932
|
async function ackDelivery(id, stateDir) {
|
|
933
933
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
934
934
|
try {
|
|
935
|
-
await
|
|
935
|
+
await syncFs.promises.unlink(filePath);
|
|
936
936
|
} catch (err) {
|
|
937
937
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
|
|
938
938
|
}
|
|
@@ -959,22 +959,22 @@ async function failDelivery(id, error, stateDir) {
|
|
|
959
959
|
return serializeByKey(filePath, () => failDeliveryWrite(filePath, error));
|
|
960
960
|
}
|
|
961
961
|
async function failDeliveryWrite(filePath, error) {
|
|
962
|
-
const raw = await
|
|
962
|
+
const raw = await syncFs.promises.readFile(filePath, "utf-8");
|
|
963
963
|
const entry = JSON.parse(raw);
|
|
964
964
|
entry.retryCount += 1;
|
|
965
965
|
entry.lastAttemptAt = Date.now();
|
|
966
966
|
entry.lastError = error;
|
|
967
967
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
968
|
-
await
|
|
968
|
+
await syncFs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
|
|
969
969
|
encoding: "utf-8",
|
|
970
970
|
mode: 384
|
|
971
971
|
});
|
|
972
|
-
await
|
|
972
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
973
973
|
}
|
|
974
974
|
/** Read a queue entry raw; null when the file is missing. */
|
|
975
975
|
async function readEntryFile(filePath) {
|
|
976
976
|
try {
|
|
977
|
-
const raw = await
|
|
977
|
+
const raw = await syncFs.promises.readFile(filePath, "utf-8");
|
|
978
978
|
return JSON.parse(raw);
|
|
979
979
|
} catch (err) {
|
|
980
980
|
if (hasErrnoCode(err, "ENOENT")) return null;
|
|
@@ -996,11 +996,11 @@ function markDeliveryPhase(filePath, transition) {
|
|
|
996
996
|
const next = transition(entry);
|
|
997
997
|
if (!next.advanced) return next;
|
|
998
998
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
999
|
-
await
|
|
999
|
+
await syncFs.promises.writeFile(tmp, JSON.stringify(next.entry, null, 2), {
|
|
1000
1000
|
encoding: "utf-8",
|
|
1001
1001
|
mode: 384
|
|
1002
1002
|
});
|
|
1003
|
-
await
|
|
1003
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
1004
1004
|
return next;
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { N as resolveAgentIdFromSessionKey } from "./workspace-
|
|
4
|
-
import { U as loadConfig } from "./model-selection-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-D_zHSy02.js";
|
|
3
|
+
import { N as resolveAgentIdFromSessionKey } from "./workspace-CkXKTYV4.js";
|
|
4
|
+
import { U as loadConfig } from "./model-selection-BTxcwzNF.js";
|
|
5
5
|
import { t as emitDiagnosticEvent } from "./diagnostic-events-DGRcTqIH.js";
|
|
6
6
|
import { a as recordSessionChannelCorrelation, i as pruneDiagnosticSessionStates, o as recordTurnDuration, r as getDiagnosticSessionState, s as redactChannelCorrelation, t as diagnosticSessionStates } from "./diagnostic-session-state-Bnyx-w0F.js";
|
|
7
7
|
import { t as redactIdentifier } from "./redact-identifier-WYElxwAZ.js";
|
|
8
|
-
import { t as redactSensitiveText } from "./redact-
|
|
8
|
+
import { t as redactSensitiveText } from "./redact-CteA3IBL.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
|
|
11
11
|
//#region src/agents/command-poll-backoff.ts
|
|
@@ -837,7 +837,7 @@ function startDiagnosticHeartbeat(config) {
|
|
|
837
837
|
if (ageMs > stuckSessionAbortMs && state.queueDepth > 0 && !state.capturedEnd && !state.abortDispatched && state.sessionId) {
|
|
838
838
|
state.abortDispatched = true;
|
|
839
839
|
diag.warn(`stuck-session abort: sessionId=${state.sessionId} progressAge=${Math.round(ageMs / 1e3)}s threshold=${Math.round(stuckSessionAbortMs / 1e3)}s queueDepth=${state.queueDepth}`);
|
|
840
|
-
import("./runs-
|
|
840
|
+
import("./runs-n_IyEnjI.js").then((n) => n.c).then(({ abortEmbeddedPiRun }) => {
|
|
841
841
|
if (state.sessionId && state.abortDispatched) abortEmbeddedPiRun(state.sessionId);
|
|
842
842
|
}).catch((err) => {
|
|
843
843
|
diag.warn(`stuck-session abort import failed: ${String(err)}`);
|
|
@@ -837,7 +837,7 @@ function startDiagnosticHeartbeat(config) {
|
|
|
837
837
|
if (ageMs > stuckSessionAbortMs && state.queueDepth > 0 && !state.capturedEnd && !state.abortDispatched && state.sessionId) {
|
|
838
838
|
state.abortDispatched = true;
|
|
839
839
|
diag.warn(`stuck-session abort: sessionId=${state.sessionId} progressAge=${Math.round(ageMs / 1e3)}s threshold=${Math.round(stuckSessionAbortMs / 1e3)}s queueDepth=${state.queueDepth}`);
|
|
840
|
-
import("./runs-
|
|
840
|
+
import("./runs-Dar4NRlC.js").then((n) => n.c).then(({ abortEmbeddedPiRun }) => {
|
|
841
841
|
if (state.sessionId && state.abortDispatched) abortEmbeddedPiRun(state.sessionId);
|
|
842
842
|
}).catch((err) => {
|
|
843
843
|
diag.warn(`stuck-session abort import failed: ${String(err)}`);
|
package/dist/extensionAPI.js
CHANGED
|
@@ -7,19 +7,19 @@ import { a as resolveAgentIdentity } from "./reply-prefix-BcdmDWLD.js";
|
|
|
7
7
|
import "./github-copilot-token-DHoyZ4I0.js";
|
|
8
8
|
import "./send-C9Yc0eNr.js";
|
|
9
9
|
import "./send-CUQVQLdt.js";
|
|
10
|
-
import { a as resolveAgentTimeoutMs, t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
10
|
+
import { a as resolveAgentTimeoutMs, t as runEmbeddedPiAgent } from "./pi-embedded-cc9FvjV6.js";
|
|
11
11
|
import "./tokens-CnCqZSqd.js";
|
|
12
12
|
import "./sessions-6Ql8ERz-.js";
|
|
13
13
|
import "./diagnostic-events-BTSwhIfk.js";
|
|
14
|
-
import "./diagnostic-
|
|
14
|
+
import "./diagnostic-f8CKHXWb.js";
|
|
15
15
|
import "./diagnostic-session-state-evjvR-jF.js";
|
|
16
16
|
import "./redact-CpxuujTJ.js";
|
|
17
|
-
import "./command-queue-
|
|
18
|
-
import "./send-
|
|
17
|
+
import "./command-queue-arMRWvX5.js";
|
|
18
|
+
import "./send-tEYUiTsj.js";
|
|
19
19
|
import "./image-ops-A6f7GNWY.js";
|
|
20
20
|
import "./pi-model-discovery-C_8_TEXa.js";
|
|
21
|
-
import "./chat-content-
|
|
22
|
-
import "./chrome-
|
|
21
|
+
import "./chat-content-Dp_TK_pI.js";
|
|
22
|
+
import "./chrome-DKYaSdXE.js";
|
|
23
23
|
import "./skills-Cgo8C-YA.js";
|
|
24
24
|
import "./path-alias-guards-Doc1hCCV.js";
|
|
25
25
|
import "./errors-DuWEJolt.js";
|
|
@@ -28,9 +28,9 @@ import "./proxy-env-CdoM4MKQ.js";
|
|
|
28
28
|
import "./store-pFLK6f6N.js";
|
|
29
29
|
import "./thinking-D6R5MauW.js";
|
|
30
30
|
import "./models-config-FAZy8DyR.js";
|
|
31
|
-
import "./audio-transcription-runner-
|
|
32
|
-
import "./pi-embedded-utils-
|
|
33
|
-
import "./provider-image-
|
|
31
|
+
import "./audio-transcription-runner-6owLZL6w.js";
|
|
32
|
+
import "./pi-embedded-utils-DKfjTsdf.js";
|
|
33
|
+
import "./provider-image-BZgdxPq1.js";
|
|
34
34
|
import "./fetch-DtE_K97A.js";
|
|
35
35
|
import "./fetch-guard-CcqzMcBg.js";
|
|
36
36
|
import "./proxy-fetch-DlgRJUWl.js";
|
|
@@ -42,11 +42,11 @@ import "./render-BHXtBhhj.js";
|
|
|
42
42
|
import "./commands-registry-nHQ9P8O0.js";
|
|
43
43
|
import "./user-run-recording-CkVjgvr2.js";
|
|
44
44
|
import "./recorder-BHmAvEK3.js";
|
|
45
|
-
import "./agent-turn-runner-
|
|
45
|
+
import "./agent-turn-runner-CZilDjoa.js";
|
|
46
46
|
import "./skill-commands-B-ELxZrr.js";
|
|
47
|
-
import "./runs-
|
|
47
|
+
import "./runs-Dar4NRlC.js";
|
|
48
48
|
import "./outbound-message-hooks-BD3IsE3b.js";
|
|
49
|
-
import "./deliver-
|
|
49
|
+
import "./deliver-DGxrgy4y.js";
|
|
50
50
|
import "./fetch-BNVTc8Bi.js";
|
|
51
51
|
import "./channel-activity-IUrxETF7.js";
|
|
52
52
|
import "./tables-CV6Lmlu2.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import { l as resolveStateDir } from "./paths-
|
|
3
|
-
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import { U as loadConfig } from "./model-selection-
|
|
5
|
-
import { t as redactSensitiveText } from "./redact-
|
|
6
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
7
|
-
import { r as formatErrorChainMessage } from "./errors-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-VTjBKG-0.js";
|
|
2
|
+
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
3
|
+
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-D_zHSy02.js";
|
|
4
|
+
import { U as loadConfig } from "./model-selection-BTxcwzNF.js";
|
|
5
|
+
import { t as redactSensitiveText } from "./redact-CteA3IBL.js";
|
|
6
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-d6AhYSNh.js";
|
|
7
|
+
import { r as formatErrorChainMessage } from "./errors-h4QgDEJU.js";
|
|
8
8
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-Cj-XaaTu.js";
|
|
9
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BUJnD_0T.js";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
|
|
12
12
|
//#region src/media/local-roots.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as logWarn, r as logInfo } from "./logger-
|
|
2
|
-
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { i as logWarn, r as logInfo } from "./logger-vVASmiVr.js";
|
|
2
|
+
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-D-BYfN9f.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-Dyj5Y_Ss.js";
|
|
4
|
-
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-
|
|
4
|
+
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-SAeVJOzX.js";
|
|
5
5
|
import { EnvHttpProxyAgent, FormData, fetch } from "undici";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/net/form-data.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-
|
|
1
|
+
import { s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-Dh4RlQMQ.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import syncFs from "node:fs";
|
|
4
4
|
import json5 from "json5";
|
|
5
5
|
import YAML from "yaml";
|
|
6
6
|
|
|
@@ -92,7 +92,7 @@ function hasBinary(bin) {
|
|
|
92
92
|
for (const part of parts) for (const ext of extensions) {
|
|
93
93
|
const candidate = path.join(part, bin + ext);
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
syncFs.accessSync(candidate, syncFs.constants.X_OK);
|
|
96
96
|
hasBinaryCache.set(bin, true);
|
|
97
97
|
return true;
|
|
98
98
|
} catch {}
|