@lawpath-tech/openclaw 2026.2.21-29 → 2026.2.21-30
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/{accounts-CQT5u65w.js → accounts-CJEDkyd7.js} +1 -1
- package/dist/{accounts-DFrH9IVU.js → accounts-CaJg9v7D.js} +1 -1
- package/dist/{accounts-C8m4ADkw.js → accounts-DQo5uGA3.js} +14 -14
- package/dist/{active-listener-BKTctYlH.js → active-listener-Bhmh-BBe.js} +1 -1
- package/dist/{agent-scope-DSUeV7-g.js → agent-scope-DiO1KimT.js} +3 -3
- package/dist/{audio-preflight-CODznzqu.js → audio-preflight-Da7vejCH.js} +4 -4
- package/dist/{audio-preflight-CLqoZYgI.js → audio-preflight-z9oahneY.js} +29 -29
- package/dist/{bindings-BKEEBdsb.js → bindings-CEJk9Gww.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-BgsTqLau.js → channel-activity-pOw1s-fe.js} +1 -1
- package/dist/{chrome-Bqbv_ZSj.js → chrome-B3ZZfPkj.js} +13 -13
- package/dist/{chrome-lRUqqgSD.js → chrome-CZuniMYN.js} +7 -7
- package/dist/{chunk-fZrBDWYg.js → chunk-BkGjWi6P.js} +1 -1
- package/dist/{command-format-BOHIfoCX.js → command-format-CM0AxuCk.js} +1 -1
- package/dist/{commands-registry-BzlB3qtZ.js → commands-registry-C0QzohKU.js} +4 -4
- package/dist/{config-Du_-inxH.js → config-7ClJ9IDt.js} +12 -12
- package/dist/{deliver-B2d2N8OJ.js → deliver-0ThKlzQo.js} +1 -1
- package/dist/{deliver-CKH_FhS0.js → deliver-CrJoiqws.js} +20 -20
- package/dist/{diagnostic-DriDPU6M.js → diagnostic-DTfVTKJM.js} +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-CdkBcBAo.js → frontmatter-Dab6NVCF.js} +2 -2
- package/dist/{gemini-auth-A2JaRMHH.js → gemini-auth-CnEqRhSo.js} +1 -1
- package/dist/{github-copilot-token-Dgb9dAHW.js → github-copilot-token-DAycnoAs.js} +7 -7
- package/dist/{image-CxPjVob-.js → image-2bonNMVD.js} +4 -4
- package/dist/{image--DDZnw-F.js → image-88q3KE-C.js} +1 -1
- package/dist/{image-ops-BGmpOcey.js → image-ops-D-bh1BTN.js} +1 -1
- package/dist/{ir-DJPm0a4k.js → ir-j1Xb0PNv.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-JqlMsAYY.js → local-roots-Dx32AY60.js} +5 -5
- package/dist/{login-DXtAIVXy.js → login-CLQskGt7.js} +7 -7
- package/dist/{login-qr-D0A3WDBN.js → login-qr-CxZVehrh.js} +12 -12
- package/dist/{manager-D7SRrHxT.js → manager-C6KdjXEH.js} +13 -13
- package/dist/{manifest-registry-Dhk4A5vb.js → manifest-registry-D31TP66o.js} +19 -19
- package/dist/{markdown-tables-DpVJE0eA.js → markdown-tables-BOmw5zkp.js} +1 -1
- package/dist/{message-channel-CHYSjmbr.js → message-channel-BckS8bQ9.js} +1 -1
- package/dist/{model-auth-vtNH8C4P.js → model-auth-C-Vzzybi.js} +9 -9
- package/dist/{outbound-BWgFha97.js → outbound-Bk0PGZ1q.js} +7 -7
- package/dist/{outbound-attachment-B8WHzsCX.js → outbound-attachment-CHLSsIj_.js} +2 -2
- package/dist/{paths-CyR9Pa1R.js → paths-CkkDESQ2.js} +5 -5
- package/dist/{paths-BEAbheM8.js → paths-Cv2Q0cX2.js} +1 -1
- package/dist/{pi-auth-json-BiwfFswL.js → pi-auth-json-DzcwV2uo.js} +8 -8
- package/dist/{pi-embedded-Dz24QZz9.js → pi-embedded-BFPKtgT3.js} +158 -158
- package/dist/{pi-embedded-C_B8_quB.js → pi-embedded-ZvazjIyF.js} +16 -16
- package/dist/{pi-embedded-helpers-Cd0S0WfR.js → pi-embedded-helpers-B0Kht0I2.js} +4 -4
- package/dist/{pi-embedded-helpers-CSE0v99A.js → pi-embedded-helpers-eDaF2UhI.js} +52 -52
- package/dist/{plugins-DIrNa311.js → plugins-Bf_qBfZ7.js} +9 -9
- package/dist/{pw-ai-D-_aGzdQ.js → pw-ai-B3EislzC.js} +11 -11
- package/dist/{pw-ai-C-kqYO4L.js → pw-ai-S3cpSYOy.js} +1 -1
- package/dist/{qmd-manager-DePh-PT0.js → qmd-manager-DVrv2Huu.js} +7 -7
- package/dist/{registry-DpeZG5fo.js → registry-wimgwqAA.js} +18 -18
- package/dist/{replies-CSVWkVda.js → replies-DuQ9MtQM.js} +3 -3
- package/dist/{reply-prefix-DZrS3Kf7.js → reply-prefix-B_1VtLm5.js} +1 -1
- package/dist/{resolve-route-1ar2IrQt.js → resolve-route-CSE9DZsB.js} +4 -4
- package/dist/{retry-Bdu4_ZcT.js → retry-DwLEH9x4.js} +1 -1
- package/dist/{runner-D1eXJZ8T.js → runner-BeO6HoPY.js} +9 -9
- package/dist/{runner-Dq-qfrq7.js → runner-a43IsYad.js} +1 -1
- package/dist/{send-DPVf5tQ4.js → send-BCt1G0xY.js} +6 -6
- package/dist/{send-BeWYOs1x.js → send-CEP4RX_l.js} +7 -7
- package/dist/{send-Byt_wJDK.js → send-CMeyW_Bu.js} +6 -6
- package/dist/{send-CWtaJF1G.js → send-CdIaqNP6.js} +18 -18
- package/dist/{send-BEFzSOoD.js → send-DrfA4RxA.js} +10 -10
- package/dist/{session-Bnp7PC7f.js → session-CQ9JJgSo.js} +8 -8
- package/dist/{skill-commands-CqyVDpti.js → skill-commands-CwFNOYqC.js} +9 -9
- package/dist/{skills-DSZuhFx9.js → skills-C8xf0p1B.js} +21 -21
- package/dist/{sqlite-C3XxSzBN.js → sqlite-B6SD9PTM.js} +4 -4
- package/dist/{store-BrNiRjgB.js → store-VFVAfYgh.js} +2 -2
- package/dist/{subsystem-BF9jT_Nw.js → subsystem-BEdh_1O5.js} +1 -1
- package/dist/{tables-C3clT_iA.js → tables-QNO5uMcm.js} +1 -1
- package/dist/{target-errors-ChHV8dPI.js → target-errors-DD2466Y6.js} +2 -2
- package/dist/{thinking-Dg8vKjw_.js → thinking-BZFf1juV.js} +5 -5
- package/dist/{tokens-B-c56SkM.js → tokens-GCiqN5mi.js} +1 -1
- package/dist/{tool-images-C1rdDr34.js → tool-images-D0sBSASn.js} +2 -2
- package/dist/{tool-loop-detection-Bu3OGskw.js → tool-loop-detection-BPAeTbUj.js} +3 -3
- package/dist/{web-DiYh3u92.js → web-CVSol55V.js} +6 -6
- package/dist/{web-Y49Dumye.js → web-CfqjWSEf.js} +57 -57
- package/dist/{whatsapp-actions-DFZYzkBp.js → whatsapp-actions-kX73ghOz.js} +23 -23
- package/dist/{workspace-DYx5Dxtw.js → workspace-CH9k4Qgz.js} +6 -6
- package/extensions/voice-call/src/providers/realtime-session.ts +1 -32
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { s as resolveStateDir } from "./paths-
|
|
3
|
-
import { I as resolveUserPath, T as clampNumber, U as truncateUtf16Safe, w as clampInt } from "./registry-
|
|
4
|
-
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { r as isTruthyEnvValue } from "./command-format-
|
|
7
|
-
import { i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-
|
|
2
|
+
import { s as resolveStateDir } from "./paths-CkkDESQ2.js";
|
|
3
|
+
import { I as resolveUserPath, T as clampNumber, U as truncateUtf16Safe, w as clampInt } from "./registry-wimgwqAA.js";
|
|
4
|
+
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-DiO1KimT.js";
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-BEdh_1O5.js";
|
|
6
|
+
import { r as isTruthyEnvValue } from "./command-format-CM0AxuCk.js";
|
|
7
|
+
import { i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-C-Vzzybi.js";
|
|
8
8
|
import { n as formatErrorMessage } from "./errors-BoQgnc8X.js";
|
|
9
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
9
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-Cv2Q0cX2.js";
|
|
10
10
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-DDYvbmRV.js";
|
|
11
|
-
import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-
|
|
12
|
-
import { _ as isFileMissingError, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath, v as statRegularFile } from "./sqlite-
|
|
13
|
-
import { n as retryAsync } from "./retry-
|
|
11
|
+
import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-CnEqRhSo.js";
|
|
12
|
+
import { _ as isFileMissingError, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath, v as statRegularFile } from "./sqlite-B6SD9PTM.js";
|
|
13
|
+
import { n as retryAsync } from "./retry-DwLEH9x4.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
17
|
-
import
|
|
17
|
+
import fsSync from "node:fs";
|
|
18
18
|
import { randomUUID } from "node:crypto";
|
|
19
19
|
import { createInterface } from "node:readline";
|
|
20
20
|
import { Readable } from "node:stream";
|
|
@@ -511,7 +511,7 @@ function canAutoSelectLocal(options) {
|
|
|
511
511
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
512
512
|
const resolved = resolveUserPath(modelPath);
|
|
513
513
|
try {
|
|
514
|
-
return
|
|
514
|
+
return fsSync.statSync(resolved).isFile();
|
|
515
515
|
} catch {
|
|
516
516
|
return false;
|
|
517
517
|
}
|
|
@@ -1939,7 +1939,7 @@ var MemoryManagerSyncOps = class {
|
|
|
1939
1939
|
]);
|
|
1940
1940
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
1941
1941
|
for (const entry of additionalPaths) try {
|
|
1942
|
-
const stat =
|
|
1942
|
+
const stat = fsSync.lstatSync(entry);
|
|
1943
1943
|
if (stat.isSymbolicLink()) continue;
|
|
1944
1944
|
if (stat.isDirectory()) {
|
|
1945
1945
|
watchPaths.add(path.join(entry, "**", "*.md"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as resolveUserPath, P as resolveConfigDir, k as isRecord } from "./registry-
|
|
1
|
+
import { I as resolveUserPath, P as resolveConfigDir, k as isRecord } from "./registry-wimgwqAA.js";
|
|
2
2
|
import { n as MANIFEST_KEY } from "./legacy-names-Bn-k7U5-.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsSync from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/host-env-security-policy.json
|
|
@@ -59,7 +59,7 @@ function isPathInside$1(basePath, candidatePath) {
|
|
|
59
59
|
}
|
|
60
60
|
function safeRealpathSync$1(filePath) {
|
|
61
61
|
try {
|
|
62
|
-
return
|
|
62
|
+
return fsSync.realpathSync(filePath);
|
|
63
63
|
} catch {
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
@@ -226,13 +226,13 @@ function resolveBundledPluginsDir() {
|
|
|
226
226
|
try {
|
|
227
227
|
const execDir = path.dirname(process.execPath);
|
|
228
228
|
const sibling = path.join(execDir, "extensions");
|
|
229
|
-
if (
|
|
229
|
+
if (fsSync.existsSync(sibling)) return sibling;
|
|
230
230
|
} catch {}
|
|
231
231
|
try {
|
|
232
232
|
let cursor = path.dirname(fileURLToPath(import.meta.url));
|
|
233
233
|
for (let i = 0; i < 6; i += 1) {
|
|
234
234
|
const candidate = path.join(cursor, "extensions");
|
|
235
|
-
if (
|
|
235
|
+
if (fsSync.existsSync(candidate)) return candidate;
|
|
236
236
|
const parent = path.dirname(cursor);
|
|
237
237
|
if (parent === cursor) break;
|
|
238
238
|
cursor = parent;
|
|
@@ -251,20 +251,20 @@ function normalizeStringList(value) {
|
|
|
251
251
|
function resolvePluginManifestPath(rootDir) {
|
|
252
252
|
for (const filename of PLUGIN_MANIFEST_FILENAMES) {
|
|
253
253
|
const candidate = path.join(rootDir, filename);
|
|
254
|
-
if (
|
|
254
|
+
if (fsSync.existsSync(candidate)) return candidate;
|
|
255
255
|
}
|
|
256
256
|
return path.join(rootDir, PLUGIN_MANIFEST_FILENAME);
|
|
257
257
|
}
|
|
258
258
|
function loadPluginManifest(rootDir) {
|
|
259
259
|
const manifestPath = resolvePluginManifestPath(rootDir);
|
|
260
|
-
if (!
|
|
260
|
+
if (!fsSync.existsSync(manifestPath)) return {
|
|
261
261
|
ok: false,
|
|
262
262
|
error: `plugin manifest not found: ${manifestPath}`,
|
|
263
263
|
manifestPath
|
|
264
264
|
};
|
|
265
265
|
let raw;
|
|
266
266
|
try {
|
|
267
|
-
raw = JSON.parse(
|
|
267
|
+
raw = JSON.parse(fsSync.readFileSync(manifestPath, "utf-8"));
|
|
268
268
|
} catch (err) {
|
|
269
269
|
return {
|
|
270
270
|
ok: false,
|
|
@@ -331,7 +331,7 @@ function safeRealpathSync(targetPath, cache) {
|
|
|
331
331
|
const cached = cache?.get(targetPath);
|
|
332
332
|
if (cached) return cached;
|
|
333
333
|
try {
|
|
334
|
-
const resolved =
|
|
334
|
+
const resolved = fsSync.realpathSync(targetPath);
|
|
335
335
|
cache?.set(targetPath, resolved);
|
|
336
336
|
return resolved;
|
|
337
337
|
} catch {
|
|
@@ -340,7 +340,7 @@ function safeRealpathSync(targetPath, cache) {
|
|
|
340
340
|
}
|
|
341
341
|
function safeStatSync(targetPath) {
|
|
342
342
|
try {
|
|
343
|
-
return
|
|
343
|
+
return fsSync.statSync(targetPath);
|
|
344
344
|
} catch {
|
|
345
345
|
return null;
|
|
346
346
|
}
|
|
@@ -454,9 +454,9 @@ function isExtensionFile(filePath) {
|
|
|
454
454
|
}
|
|
455
455
|
function readPackageManifest(dir) {
|
|
456
456
|
const manifestPath = path.join(dir, "package.json");
|
|
457
|
-
if (!
|
|
457
|
+
if (!fsSync.existsSync(manifestPath)) return null;
|
|
458
458
|
try {
|
|
459
|
-
const raw =
|
|
459
|
+
const raw = fsSync.readFileSync(manifestPath, "utf-8");
|
|
460
460
|
return JSON.parse(raw);
|
|
461
461
|
} catch {
|
|
462
462
|
return null;
|
|
@@ -514,10 +514,10 @@ function resolvePackageEntrySource(params) {
|
|
|
514
514
|
return source;
|
|
515
515
|
}
|
|
516
516
|
function discoverInDirectory(params) {
|
|
517
|
-
if (!
|
|
517
|
+
if (!fsSync.existsSync(params.dir)) return;
|
|
518
518
|
let entries = [];
|
|
519
519
|
try {
|
|
520
|
-
entries =
|
|
520
|
+
entries = fsSync.readdirSync(params.dir, { withFileTypes: true });
|
|
521
521
|
} catch (err) {
|
|
522
522
|
params.diagnostics.push({
|
|
523
523
|
level: "warn",
|
|
@@ -579,7 +579,7 @@ function discoverInDirectory(params) {
|
|
|
579
579
|
"index.js",
|
|
580
580
|
"index.mjs",
|
|
581
581
|
"index.cjs"
|
|
582
|
-
].map((candidate) => path.join(fullPath, candidate)).find((candidate) =>
|
|
582
|
+
].map((candidate) => path.join(fullPath, candidate)).find((candidate) => fsSync.existsSync(candidate));
|
|
583
583
|
if (indexFile && isExtensionFile(indexFile)) addCandidate({
|
|
584
584
|
candidates: params.candidates,
|
|
585
585
|
diagnostics: params.diagnostics,
|
|
@@ -597,7 +597,7 @@ function discoverInDirectory(params) {
|
|
|
597
597
|
}
|
|
598
598
|
function discoverFromPath(params) {
|
|
599
599
|
const resolved = resolveUserPath(params.rawPath);
|
|
600
|
-
if (!
|
|
600
|
+
if (!fsSync.existsSync(resolved)) {
|
|
601
601
|
params.diagnostics.push({
|
|
602
602
|
level: "error",
|
|
603
603
|
message: `plugin path not found: ${resolved}`,
|
|
@@ -605,7 +605,7 @@ function discoverFromPath(params) {
|
|
|
605
605
|
});
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
|
-
const stat =
|
|
608
|
+
const stat = fsSync.statSync(resolved);
|
|
609
609
|
if (stat.isFile()) {
|
|
610
610
|
if (!isExtensionFile(resolved)) {
|
|
611
611
|
params.diagnostics.push({
|
|
@@ -665,7 +665,7 @@ function discoverFromPath(params) {
|
|
|
665
665
|
"index.js",
|
|
666
666
|
"index.mjs",
|
|
667
667
|
"index.cjs"
|
|
668
|
-
].map((candidate) => path.join(resolved, candidate)).find((candidate) =>
|
|
668
|
+
].map((candidate) => path.join(resolved, candidate)).find((candidate) => fsSync.existsSync(candidate));
|
|
669
669
|
if (indexFile && isExtensionFile(indexFile)) {
|
|
670
670
|
addCandidate({
|
|
671
671
|
candidates: params.candidates,
|
|
@@ -779,7 +779,7 @@ function buildCacheKey(params) {
|
|
|
779
779
|
}
|
|
780
780
|
function safeStatMtimeMs(filePath) {
|
|
781
781
|
try {
|
|
782
|
-
return
|
|
782
|
+
return fsSync.statSync(filePath).mtimeMs;
|
|
783
783
|
} catch {
|
|
784
784
|
return null;
|
|
785
785
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
3
|
+
import { r as normalizeChannelId } from "./plugins-Bf_qBfZ7.js";
|
|
4
4
|
|
|
5
5
|
//#region src/config/markdown-tables.ts
|
|
6
6
|
var markdown_tables_exports = /* @__PURE__ */ __exportAll({ resolveMarkdownTableMode: () => resolveMarkdownTableMode });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-
|
|
1
|
+
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-wimgwqAA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/gateway/protocol/client-info.ts
|
|
4
4
|
const GATEWAY_CLIENT_IDS = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-
|
|
2
|
+
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-CkkDESQ2.js";
|
|
3
3
|
import { t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
|
|
4
|
-
import { I as resolveUserPath } from "./registry-
|
|
5
|
-
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-
|
|
8
|
-
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-
|
|
4
|
+
import { I as resolveUserPath } from "./registry-wimgwqAA.js";
|
|
5
|
+
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-DiO1KimT.js";
|
|
6
|
+
import { t as createSubsystemLogger } from "./subsystem-BEdh_1O5.js";
|
|
7
|
+
import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-CM0AxuCk.js";
|
|
8
|
+
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-DAycnoAs.js";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import fsSync from "node:fs";
|
|
12
12
|
import { execFileSync } from "node:child_process";
|
|
13
13
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
14
14
|
import { createAssistantMessageEventStream, getEnvApiKey } from "@mariozechner/pi-ai";
|
|
@@ -2900,7 +2900,7 @@ function resolveAuthStorePathForDisplay(agentDir) {
|
|
|
2900
2900
|
return pathname.startsWith("~") ? pathname : resolveUserPath(pathname);
|
|
2901
2901
|
}
|
|
2902
2902
|
function ensureAuthStoreFile(pathname) {
|
|
2903
|
-
if (
|
|
2903
|
+
if (fsSync.existsSync(pathname)) return;
|
|
2904
2904
|
saveJsonFile(pathname, {
|
|
2905
2905
|
version: AUTH_STORE_VERSION,
|
|
2906
2906
|
profiles: {}
|
|
@@ -3069,7 +3069,7 @@ function loadAuthProfileStoreForAgent(agentDir, _options) {
|
|
|
3069
3069
|
if (shouldWrite && legacy !== null) {
|
|
3070
3070
|
const legacyPath = resolveLegacyAuthStorePath(agentDir);
|
|
3071
3071
|
try {
|
|
3072
|
-
|
|
3072
|
+
fsSync.unlinkSync(legacyPath);
|
|
3073
3073
|
} catch (err) {
|
|
3074
3074
|
if (err?.code !== "ENOENT") log$1.warn("failed to delete legacy auth.json after migration", {
|
|
3075
3075
|
err,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { D as escapeRegExp, H as toWhatsappJid, rt as getChildLogger } from "./registry-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { n as loadConfig } from "./config-
|
|
5
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
6
|
-
import { a as loadWebMedia } from "./ir-
|
|
2
|
+
import { D as escapeRegExp, H as toWhatsappJid, rt as getChildLogger } from "./registry-wimgwqAA.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BEdh_1O5.js";
|
|
4
|
+
import { n as loadConfig } from "./config-7ClJ9IDt.js";
|
|
5
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BOmw5zkp.js";
|
|
6
|
+
import { a as loadWebMedia } from "./ir-j1Xb0PNv.js";
|
|
7
7
|
import { n as normalizePollInput } from "./polls-CCuCaqgv.js";
|
|
8
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
9
|
-
import { n as requireActiveWebListener } from "./active-listener-
|
|
8
|
+
import { t as convertMarkdownTables } from "./tables-QNO5uMcm.js";
|
|
9
|
+
import { n as requireActiveWebListener } from "./active-listener-Bhmh-BBe.js";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
|
|
12
12
|
//#region src/markdown/whatsapp.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as saveMediaBuffer } from "./store-
|
|
2
|
-
import { a as loadWebMedia } from "./ir-
|
|
1
|
+
import { r as saveMediaBuffer } from "./store-VFVAfYgh.js";
|
|
2
|
+
import { a as loadWebMedia } from "./ir-j1Xb0PNv.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media/outbound-attachment.ts
|
|
5
5
|
async function resolveOutboundAttachmentFromUrl(mediaUrl, maxBytes, options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import os from "node:os";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import fsSync from "node:fs";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/home-dir.ts
|
|
6
6
|
function normalize(value) {
|
|
@@ -93,10 +93,10 @@ function resolveStateDir(env = process.env, homedir = envHomedir(env)) {
|
|
|
93
93
|
if (override) return resolveUserPath(override, env, effectiveHomedir);
|
|
94
94
|
const newDir = newStateDir(effectiveHomedir);
|
|
95
95
|
const legacyDirs = legacyStateDirs(effectiveHomedir);
|
|
96
|
-
if (
|
|
96
|
+
if (fsSync.existsSync(newDir)) return newDir;
|
|
97
97
|
const existingLegacy = legacyDirs.find((dir) => {
|
|
98
98
|
try {
|
|
99
|
-
return
|
|
99
|
+
return fsSync.existsSync(dir);
|
|
100
100
|
} catch {
|
|
101
101
|
return false;
|
|
102
102
|
}
|
|
@@ -135,7 +135,7 @@ function resolveCanonicalConfigPath(env = process.env, stateDir = resolveStateDi
|
|
|
135
135
|
function resolveConfigPathCandidate(env = process.env, homedir = envHomedir(env)) {
|
|
136
136
|
const existing = resolveDefaultConfigCandidates(env, homedir).find((candidate) => {
|
|
137
137
|
try {
|
|
138
|
-
return
|
|
138
|
+
return fsSync.existsSync(candidate);
|
|
139
139
|
} catch {
|
|
140
140
|
return false;
|
|
141
141
|
}
|
|
@@ -152,7 +152,7 @@ function resolveConfigPath(env = process.env, stateDir = resolveStateDir(env, en
|
|
|
152
152
|
const stateOverride = env.OPENCLAW_STATE_DIR?.trim();
|
|
153
153
|
const existing = [path.join(stateDir, CONFIG_FILENAME), ...LEGACY_CONFIG_FILENAMES.map((name) => path.join(stateDir, name))].find((candidate) => {
|
|
154
154
|
try {
|
|
155
|
-
return
|
|
155
|
+
return fsSync.existsSync(candidate);
|
|
156
156
|
} catch {
|
|
157
157
|
return false;
|
|
158
158
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-
|
|
1
|
+
import { c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-CkkDESQ2.js";
|
|
2
2
|
import { s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
1
|
+
import "./paths-CkkDESQ2.js";
|
|
2
|
+
import "./registry-wimgwqAA.js";
|
|
3
|
+
import "./agent-scope-DiO1KimT.js";
|
|
4
|
+
import "./subsystem-BEdh_1O5.js";
|
|
5
|
+
import "./workspace-CH9k4Qgz.js";
|
|
6
6
|
import "./boolean-B8-BqKGQ.js";
|
|
7
|
-
import "./command-format-
|
|
8
|
-
import { A as normalizeProviderId, _ as ensureAuthProfileStore } from "./model-auth-
|
|
9
|
-
import "./github-copilot-token-
|
|
7
|
+
import "./command-format-CM0AxuCk.js";
|
|
8
|
+
import { A as normalizeProviderId, _ as ensureAuthProfileStore } from "./model-auth-C-Vzzybi.js";
|
|
9
|
+
import "./github-copilot-token-DAycnoAs.js";
|
|
10
10
|
import fs from "node:fs/promises";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
|