cclawd 1.0.5 → 1.0.7
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/{active-listener-BLd27Pxd.js → active-listener-DYmI7imH.js} +2 -2
- package/dist/{api-key-rotation-Dg3JlNDQ.js → api-key-rotation-DLU4jvSu.js} +1 -1
- package/dist/{audio-preflight-eV5m9mMp.js → audio-preflight-C9TMbRb4.js} +15 -15
- package/dist/{audio-transcription-runner-CQU4Eg1M.js → audio-transcription-runner-Q5zG_hYd.js} +10 -10
- package/dist/{audit-membership-runtime-hXUuer4x.js → audit-membership-runtime-DhxSwFnF.js} +6 -6
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +35 -35
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +35 -35
- package/dist/{channel-activity-dT3cYb0e.js → channel-activity-Bx08UTAg.js} +2 -2
- package/dist/{commands-registry-CyLMCPuP.js → commands-registry-llLVCTH9.js} +2 -2
- package/dist/compact.runtime-BEn3giMt.js +39 -0
- package/dist/{deliver-B6eTtXSk.js → deliver-DJf2ZBpe.js} +19 -19
- package/dist/deliver-runtime-DkQ3XzGv.js +19 -0
- package/dist/deps-send-discord.runtime-BLpqSj6s.js +19 -0
- package/dist/deps-send-imessage.runtime-BFzyYqvR.js +18 -0
- package/dist/deps-send-signal.runtime-DT0TYCy1.js +17 -0
- package/dist/deps-send-slack.runtime-BhaGFfMX.js +17 -0
- package/dist/deps-send-telegram.runtime-B6Cic9NX.js +20 -0
- package/dist/deps-send-whatsapp.runtime-WtEhIq2S.js +43 -0
- package/dist/{diagnostic-BZmAxdu9.js → diagnostic-BCCMF3O_.js} +2 -2
- package/dist/{env-lw2hsIUY.js → env-aYXLHjfZ.js} +1 -1
- package/dist/{fetch-CMLoICyN.js → fetch-DCTUdr1U.js} +5 -5
- package/dist/{fetch-C0iyt-Iz.js → fetch-bvgIiupu.js} +3 -3
- package/dist/{fetch-guard-DCj3k042.js → fetch-guard-CqpEmMQ2.js} +2 -2
- package/dist/{frontmatter-C_obXuTp.js → frontmatter-DjZuS525.js} +3 -3
- package/dist/{github-copilot-token-8N63GdbE.js → github-copilot-token-CQmATy5E.js} +7 -7
- package/dist/{image-Bt49ybRv.js → image-Q8E1-lZn.js} +4 -4
- package/dist/image-runtime-B1LFYfQ2.js +12 -0
- package/dist/{ir-CVtBjUiL.js → ir-CzM3SxId.js} +6 -6
- package/dist/llm-slug-generator.js +35 -35
- package/dist/{logger-CbUVl62f.js → logger-ChbX1G7s.js} +7 -7
- package/dist/{login-D0fUoX-p.js → login-B0mtU11X.js} +4 -4
- package/dist/{login-qr-ClBxstxZ.js → login-qr-DY_i60f5.js} +10 -10
- package/dist/{manager-DSfEj66R.js → manager-FAQPC0uO.js} +12 -12
- package/dist/manager-runtime-Da7ME9vS.js +15 -0
- package/dist/{model-selection-CMEj8bpy.js → model-selection-wf3OY5DX.js} +130 -130
- package/dist/{outbound-BxIJyMzV.js → outbound-Bw0dOVS7.js} +6 -6
- package/dist/{outbound-attachment-CVJwpypG.js → outbound-attachment-1R6r9Pg_.js} +2 -2
- package/dist/{paths-CehYKFsO.js → paths-C0HLtPu0.js} +7 -7
- package/dist/{paths-DkxwiA8g.js → paths-hfkBoC7i.js} +5 -5
- package/dist/{pi-embedded-CHNPEUAv.js → pi-embedded-BAHaY-Oh.js} +159 -159
- package/dist/{pi-model-discovery-D-r5y7kV.js → pi-model-discovery-ItS07aJB.js} +7 -7
- package/dist/pi-model-discovery-runtime-DjM7Z1fx.js +12 -0
- package/dist/{pi-tools.before-tool-call.runtime-DagGpfw0.js → pi-tools.before-tool-call.runtime-D_mthvtC.js} +10 -10
- package/dist/plugin-sdk/imessage.js +2 -2
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/{proxy-fetch-BOh1PLOW.js → proxy-fetch-c1ZUFFcO.js} +1 -1
- package/dist/{pw-ai-CoIUdns_.js → pw-ai-Ok6KGelf.js} +9 -9
- package/dist/{qmd-manager-DEscZz5_.js → qmd-manager-DhfEz4Ar.js} +6 -6
- package/dist/{query-expansion-BErUY8P2.js → query-expansion-GqNV2iIE.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-D4BRhQkK.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-DJPpS6g-.js +17 -0
- package/dist/{send-K2mAG7KC.js → send-6R8b9zsj.js} +5 -5
- package/dist/{send-BKO1-P1t.js → send-CEg4P96c.js} +5 -5
- package/dist/{send-EDBPXjTT.js → send-CS0ocZHl.js} +3 -3
- package/dist/{send-4rRrSKp9.js → send-DPflcjM5.js} +6 -6
- package/dist/{send-V1MRV7QF.js → send-DwAoiT2p.js} +25 -25
- package/dist/{session-CuVCho2m.js → session-BoIID5UR.js} +7 -7
- package/dist/{skill-commands-B55LOaMB.js → skill-commands-DhdiziMs.js} +9 -9
- package/dist/slash-commands.runtime-Cu1lTjV9.js +12 -0
- package/dist/slash-dispatch.runtime-DRVJEF4l.js +39 -0
- package/dist/slash-skill-commands.runtime-C373PJjv.js +13 -0
- package/dist/subagent-registry-runtime-D7hWBo1G.js +39 -0
- package/dist/{subsystem-DfXy5gUB.js → subsystem-C8z6w6xC.js} +14 -14
- package/dist/{tables-BAGqh2XD.js → tables-DQusRhkD.js} +1 -1
- package/dist/{target-errors-CeBF8Pws.js → target-errors-CfavnC9U.js} +1 -1
- package/dist/{tokens-6ul2IrzG.js → tokens-BWDIKewp.js} +1 -1
- package/dist/{web-BRSmQdtm.js → web-CrcrTQ2c.js} +39 -39
- package/dist/{whatsapp-actions-Dxb2K2Xh.js → whatsapp-actions-B0u0ZAme.js} +15 -15
- package/dist/{workspace-DGIcKCCW.js → workspace-CWDYHR27.js} +20 -20
- package/extensions/mfa-auth/index.ts +1029 -695
- package/extensions/mfa-auth/node_modules/.package-lock.json +21 -0
- package/extensions/mfa-auth/node_modules/ws/LICENSE +20 -0
- package/extensions/mfa-auth/node_modules/ws/README.md +548 -0
- package/extensions/mfa-auth/node_modules/ws/browser.js +8 -0
- package/extensions/mfa-auth/node_modules/ws/index.js +13 -0
- package/extensions/mfa-auth/node_modules/ws/lib/buffer-util.js +131 -0
- package/extensions/mfa-auth/node_modules/ws/lib/constants.js +19 -0
- package/extensions/mfa-auth/node_modules/ws/lib/event-target.js +292 -0
- package/extensions/mfa-auth/node_modules/ws/lib/extension.js +203 -0
- package/extensions/mfa-auth/node_modules/ws/lib/limiter.js +55 -0
- package/extensions/mfa-auth/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/extensions/mfa-auth/node_modules/ws/lib/receiver.js +706 -0
- package/extensions/mfa-auth/node_modules/ws/lib/sender.js +602 -0
- package/extensions/mfa-auth/node_modules/ws/lib/stream.js +161 -0
- package/extensions/mfa-auth/node_modules/ws/lib/subprotocol.js +62 -0
- package/extensions/mfa-auth/node_modules/ws/lib/validation.js +152 -0
- package/extensions/mfa-auth/node_modules/ws/lib/websocket-server.js +554 -0
- package/extensions/mfa-auth/node_modules/ws/lib/websocket.js +1393 -0
- package/extensions/mfa-auth/node_modules/ws/package.json +69 -0
- package/extensions/mfa-auth/node_modules/ws/wrapper.mjs +8 -0
- package/extensions/mfa-auth/openclaw.plugin.json +1 -1
- package/extensions/mfa-auth/package-lock.json +23 -1
- package/extensions/mfa-auth/src/auth-manager.ts +0 -4
- package/extensions/mfa-auth/src/notification-service.ts +32 -74
- package/package.json +1 -1
- package/dist/compact.runtime-DGRl4st4.js +0 -39
- package/dist/deliver-runtime-CLDpY6AW.js +0 -19
- package/dist/deps-send-discord.runtime-CxADlame.js +0 -19
- package/dist/deps-send-imessage.runtime-Wi79xm6H.js +0 -18
- package/dist/deps-send-signal.runtime-BDtzvsnR.js +0 -17
- package/dist/deps-send-slack.runtime-CgX24hgT.js +0 -17
- package/dist/deps-send-telegram.runtime-CEWc7ePn.js +0 -20
- package/dist/deps-send-whatsapp.runtime-B1KJ7YOp.js +0 -43
- package/dist/image-runtime-Cilhq73U.js +0 -12
- package/dist/manager-runtime-BrZlGJsj.js +0 -15
- package/dist/pi-model-discovery-runtime-DZQXYmdu.js +0 -12
- package/dist/runtime-whatsapp-login.runtime-ChqE9BkX.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-yiy6jzKk.js +0 -17
- package/dist/slash-commands.runtime-BchS0VkW.js +0 -12
- package/dist/slash-dispatch.runtime-BIKRY3fr.js +0 -39
- package/dist/slash-skill-commands.runtime-BP4jBHU9.js +0 -13
- package/dist/subagent-registry-runtime-DjEYzSyM.js +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-C8z6w6xC.js";
|
|
2
2
|
import { t as parseBooleanValue } from "./boolean-C7Ct_klp.js";
|
|
3
3
|
createSubsystemLogger("env");
|
|
4
4
|
function isTruthyEnvValue(value) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as resolveAgentWorkspaceDir } from "./paths-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { E as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import { Mi as extensionForMime, ji as detectMime } from "./model-selection-
|
|
5
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
1
|
+
import { P as resolveAgentWorkspaceDir } from "./paths-C0HLtPu0.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-hfkBoC7i.js";
|
|
3
|
+
import { E as resolvePreferredOpenClawTmpDir } from "./subsystem-C8z6w6xC.js";
|
|
4
|
+
import { Mi as extensionForMime, ji as detectMime } from "./model-selection-wf3OY5DX.js";
|
|
5
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CqpEmMQ2.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
//#region src/media/local-roots.ts
|
|
8
8
|
let cachedPreferredTmpDir;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
3
|
-
import { t as getProxyUrlFromFetch } from "./proxy-fetch-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-C8z6w6xC.js";
|
|
2
|
+
import { t as isTruthyEnvValue } from "./env-aYXLHjfZ.js";
|
|
3
|
+
import { t as getProxyUrlFromFetch } from "./proxy-fetch-c1ZUFFcO.js";
|
|
4
4
|
import { t as resolveFetch } from "./fetch-CeWULXBI.js";
|
|
5
5
|
import "node:fs/promises";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as logWarn } from "./logger-
|
|
2
|
-
import { aa as createPinnedDispatcher, ia as closeDispatcher, na as hasProxyEnvConfigured, ra as SsrFBlockedError, sa as resolvePinnedHostnameWithPolicy } from "./model-selection-
|
|
1
|
+
import { i as logWarn } from "./logger-ChbX1G7s.js";
|
|
2
|
+
import { aa as createPinnedDispatcher, ia as closeDispatcher, na as hasProxyEnvConfigured, ra as SsrFBlockedError, sa as resolvePinnedHostnameWithPolicy } from "./model-selection-wf3OY5DX.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-Bj8qHhwJ.js";
|
|
4
4
|
import { EnvHttpProxyAgent } from "undici";
|
|
5
5
|
//#region src/infra/net/fetch-guard.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-C8z6w6xC.js";
|
|
2
2
|
import { t as parseBooleanValue } from "./boolean-C7Ct_klp.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import JSON5 from "json5";
|
|
6
6
|
import YAML from "yaml";
|
|
7
7
|
//#region src/hooks/internal-hooks.ts
|
|
@@ -200,7 +200,7 @@ function hasBinary(bin) {
|
|
|
200
200
|
for (const part of parts) for (const ext of extensions) {
|
|
201
201
|
const candidate = path.join(part, bin + ext);
|
|
202
202
|
try {
|
|
203
|
-
|
|
203
|
+
fs.accessSync(candidate, fs.constants.X_OK);
|
|
204
204
|
hasBinaryCache.set(bin, true);
|
|
205
205
|
return true;
|
|
206
206
|
} catch {}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
+
import { c as resolveStateDir } from "./paths-hfkBoC7i.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
//#region src/infra/json-file.ts
|
|
6
6
|
function loadJsonFile(pathname) {
|
|
7
7
|
try {
|
|
8
|
-
if (!
|
|
9
|
-
const raw =
|
|
8
|
+
if (!fs.existsSync(pathname)) return;
|
|
9
|
+
const raw = fs.readFileSync(pathname, "utf8");
|
|
10
10
|
return JSON.parse(raw);
|
|
11
11
|
} catch {
|
|
12
12
|
return;
|
|
@@ -14,12 +14,12 @@ function loadJsonFile(pathname) {
|
|
|
14
14
|
}
|
|
15
15
|
function saveJsonFile(pathname, data) {
|
|
16
16
|
const dir = path.dirname(pathname);
|
|
17
|
-
if (!
|
|
17
|
+
if (!fs.existsSync(dir)) fs.mkdirSync(dir, {
|
|
18
18
|
recursive: true,
|
|
19
19
|
mode: 448
|
|
20
20
|
});
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
fs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
22
|
+
fs.chmodSync(pathname, 384);
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/providers/github-copilot-token.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as redactToolDetail, G as resolveAgentModelFallbackValues, K as resolveAgentModelPrimaryValue } from "./paths-
|
|
2
|
-
import { f as isRecord, x as shortenHomeInString } from "./logger-
|
|
3
|
-
import { Hs as createConfigRuntimeEnv, M as isNonSecretApiKeyMarker, _ as normalizeProviders, ao as loadConfig, ec as resolveOpenClawAgentDir, io as getRuntimeConfigSourceSnapshot, oc as normalizeSecretInput, ro as getRuntimeConfigSnapshot, s as normalizeModelRef, v as resolveImplicitProviders, x as requireApiKey, y as getApiKeyForModel, zt as sanitizeUserFacingText } from "./model-selection-
|
|
1
|
+
import { C as redactToolDetail, G as resolveAgentModelFallbackValues, K as resolveAgentModelPrimaryValue } from "./paths-C0HLtPu0.js";
|
|
2
|
+
import { f as isRecord, x as shortenHomeInString } from "./logger-ChbX1G7s.js";
|
|
3
|
+
import { Hs as createConfigRuntimeEnv, M as isNonSecretApiKeyMarker, _ as normalizeProviders, ao as loadConfig, ec as resolveOpenClawAgentDir, io as getRuntimeConfigSourceSnapshot, oc as normalizeSecretInput, ro as getRuntimeConfigSnapshot, s as normalizeModelRef, v as resolveImplicitProviders, x as requireApiKey, y as getApiKeyForModel, zt as sanitizeUserFacingText } from "./model-selection-wf3OY5DX.js";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { complete } from "@mariozechner/pi-ai";
|
|
@@ -2363,7 +2363,7 @@ function resolveProviderVisionModelFromConfig(params) {
|
|
|
2363
2363
|
//#region src/media-understanding/providers/image.ts
|
|
2364
2364
|
let piModelDiscoveryRuntimePromise = null;
|
|
2365
2365
|
function loadPiModelDiscoveryRuntime() {
|
|
2366
|
-
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-
|
|
2366
|
+
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-DjM7Z1fx.js");
|
|
2367
2367
|
return piModelDiscoveryRuntimePromise;
|
|
2368
2368
|
}
|
|
2369
2369
|
async function describeImageWithModel(params) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./paths-C0HLtPu0.js";
|
|
2
|
+
import "./paths-hfkBoC7i.js";
|
|
3
|
+
import "./subsystem-C8z6w6xC.js";
|
|
4
|
+
import "./workspace-CWDYHR27.js";
|
|
5
|
+
import "./logger-ChbX1G7s.js";
|
|
6
|
+
import "./model-selection-wf3OY5DX.js";
|
|
7
|
+
import "./github-copilot-token-CQmATy5E.js";
|
|
8
|
+
import "./boolean-C7Ct_klp.js";
|
|
9
|
+
import "./env-aYXLHjfZ.js";
|
|
10
|
+
import "./frontmatter-DjZuS525.js";
|
|
11
|
+
import { t as describeImageWithModel } from "./image-Q8E1-lZn.js";
|
|
12
|
+
export { describeImageWithModel };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as readLocalFileSafely, u as SafeOpenError } from "./paths-
|
|
2
|
-
import { d as logVerbose, m as shouldLogVerbose } from "./subsystem-
|
|
3
|
-
import { q as normalizeAccountId } from "./workspace-
|
|
4
|
-
import { y as resolveUserPath } from "./logger-
|
|
5
|
-
import { Bi as maxBytesForKind, Bn as normalizeChannelId, Li as kindFromMime, Mi as extensionForMime, Rr as resolveAccountEntry, _i as resizeToJpeg, gi as optimizeImageToPng, hi as hasAlphaChannel, ji as detectMime, pi as convertHeicToJpeg } from "./model-selection-
|
|
6
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-
|
|
1
|
+
import { g as readLocalFileSafely, u as SafeOpenError } from "./paths-C0HLtPu0.js";
|
|
2
|
+
import { d as logVerbose, m as shouldLogVerbose } from "./subsystem-C8z6w6xC.js";
|
|
3
|
+
import { q as normalizeAccountId } from "./workspace-CWDYHR27.js";
|
|
4
|
+
import { y as resolveUserPath } from "./logger-ChbX1G7s.js";
|
|
5
|
+
import { Bi as maxBytesForKind, Bn as normalizeChannelId, Li as kindFromMime, Mi as extensionForMime, Rr as resolveAccountEntry, _i as resizeToJpeg, gi as optimizeImageToPng, hi as hasAlphaChannel, ji as detectMime, pi as convertHeicToJpeg } from "./model-selection-wf3OY5DX.js";
|
|
6
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-DCTUdr1U.js";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { A as resolveAgentDir, F as resolveDefaultAgentId, P as resolveAgentWorkspaceDir, j as resolveAgentEffectiveModelPrimary } from "./paths-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import { hc as DEFAULT_PROVIDER, l as parseModelRef } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
1
|
+
import { A as resolveAgentDir, F as resolveDefaultAgentId, P as resolveAgentWorkspaceDir, j as resolveAgentEffectiveModelPrimary } from "./paths-C0HLtPu0.js";
|
|
2
|
+
import "./paths-hfkBoC7i.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-C8z6w6xC.js";
|
|
4
|
+
import "./workspace-CWDYHR27.js";
|
|
5
|
+
import "./logger-ChbX1G7s.js";
|
|
6
|
+
import { hc as DEFAULT_PROVIDER, l as parseModelRef } from "./model-selection-wf3OY5DX.js";
|
|
7
|
+
import "./github-copilot-token-CQmATy5E.js";
|
|
8
8
|
import "./boolean-C7Ct_klp.js";
|
|
9
|
-
import "./env-
|
|
10
|
-
import "./frontmatter-
|
|
11
|
-
import "./send-
|
|
12
|
-
import "./send-
|
|
13
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
14
|
-
import "./tokens-
|
|
15
|
-
import "./deliver-
|
|
16
|
-
import "./diagnostic-
|
|
17
|
-
import "./send-
|
|
18
|
-
import "./pi-model-discovery-
|
|
19
|
-
import "./image-
|
|
20
|
-
import "./audio-transcription-runner-
|
|
21
|
-
import "./fetch-
|
|
22
|
-
import "./fetch-guard-
|
|
23
|
-
import "./api-key-rotation-
|
|
24
|
-
import "./proxy-fetch-
|
|
25
|
-
import "./ir-
|
|
9
|
+
import "./env-aYXLHjfZ.js";
|
|
10
|
+
import "./frontmatter-DjZuS525.js";
|
|
11
|
+
import "./send-CEg4P96c.js";
|
|
12
|
+
import "./send-DPflcjM5.js";
|
|
13
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-BAHaY-Oh.js";
|
|
14
|
+
import "./tokens-BWDIKewp.js";
|
|
15
|
+
import "./deliver-DJf2ZBpe.js";
|
|
16
|
+
import "./diagnostic-BCCMF3O_.js";
|
|
17
|
+
import "./send-DwAoiT2p.js";
|
|
18
|
+
import "./pi-model-discovery-ItS07aJB.js";
|
|
19
|
+
import "./image-Q8E1-lZn.js";
|
|
20
|
+
import "./audio-transcription-runner-Q5zG_hYd.js";
|
|
21
|
+
import "./fetch-DCTUdr1U.js";
|
|
22
|
+
import "./fetch-guard-CqpEmMQ2.js";
|
|
23
|
+
import "./api-key-rotation-DLU4jvSu.js";
|
|
24
|
+
import "./proxy-fetch-c1ZUFFcO.js";
|
|
25
|
+
import "./ir-CzM3SxId.js";
|
|
26
26
|
import "./render-IRnn-2gt.js";
|
|
27
|
-
import "./target-errors-
|
|
28
|
-
import "./commands-registry-
|
|
29
|
-
import "./skill-commands-
|
|
27
|
+
import "./target-errors-CfavnC9U.js";
|
|
28
|
+
import "./commands-registry-llLVCTH9.js";
|
|
29
|
+
import "./skill-commands-DhdiziMs.js";
|
|
30
30
|
import "./fetch-CeWULXBI.js";
|
|
31
|
-
import "./channel-activity-
|
|
32
|
-
import "./tables-
|
|
33
|
-
import "./send-
|
|
34
|
-
import "./outbound-attachment-
|
|
35
|
-
import "./send-
|
|
36
|
-
import "./fetch-
|
|
37
|
-
import "./manager-
|
|
38
|
-
import "./query-expansion-
|
|
31
|
+
import "./channel-activity-Bx08UTAg.js";
|
|
32
|
+
import "./tables-DQusRhkD.js";
|
|
33
|
+
import "./send-CS0ocZHl.js";
|
|
34
|
+
import "./outbound-attachment-1R6r9Pg_.js";
|
|
35
|
+
import "./send-6R8b9zsj.js";
|
|
36
|
+
import "./fetch-bvgIiupu.js";
|
|
37
|
+
import "./manager-FAQPC0uO.js";
|
|
38
|
+
import "./query-expansion-GqNV2iIE.js";
|
|
39
39
|
import fs from "node:fs/promises";
|
|
40
40
|
import os from "node:os";
|
|
41
41
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir, u as resolveEffectiveHomeDir } from "./paths-
|
|
2
|
-
import { a as defaultRuntime, d as logVerbose, f as logVerboseConsole, g as warn, l as danger, m as shouldLogVerbose, t as createSubsystemLogger, u as info, x as getLogger } from "./subsystem-
|
|
1
|
+
import { d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir, u as resolveEffectiveHomeDir } from "./paths-hfkBoC7i.js";
|
|
2
|
+
import { a as defaultRuntime, d as logVerbose, f as logVerboseConsole, g as warn, l as danger, m as shouldLogVerbose, t as createSubsystemLogger, u as info, x as getLogger } from "./subsystem-C8z6w6xC.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fs from "node:fs";
|
|
6
6
|
//#region src/infra/plain-object.ts
|
|
7
7
|
/**
|
|
8
8
|
* Strict plain-object guard (excludes arrays and host objects).
|
|
@@ -13,14 +13,14 @@ function isPlainObject(value) {
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/utils.ts
|
|
15
15
|
async function ensureDir(dir) {
|
|
16
|
-
await
|
|
16
|
+
await fs.promises.mkdir(dir, { recursive: true });
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Check if a file or directory exists at the given path.
|
|
20
20
|
*/
|
|
21
21
|
async function pathExists(targetPath) {
|
|
22
22
|
try {
|
|
23
|
-
await
|
|
23
|
+
await fs.promises.access(targetPath);
|
|
24
24
|
return true;
|
|
25
25
|
} catch {
|
|
26
26
|
return false;
|
|
@@ -103,7 +103,7 @@ function readLidReverseMapping(lid, opts) {
|
|
|
103
103
|
for (const dir of mappingDirs) {
|
|
104
104
|
const mappingPath = path.join(dir, mappingFilename);
|
|
105
105
|
try {
|
|
106
|
-
const data =
|
|
106
|
+
const data = fs.readFileSync(mappingPath, "utf8");
|
|
107
107
|
const phone = JSON.parse(data);
|
|
108
108
|
if (phone === null || phone === void 0) continue;
|
|
109
109
|
return normalizeE164(String(phone));
|
|
@@ -188,7 +188,7 @@ function resolveConfigDir(env = process.env, homedir = os.homedir) {
|
|
|
188
188
|
if (override) return resolveUserPath(override);
|
|
189
189
|
const newDir = path.join(resolveRequiredHomeDir(env, homedir), ".openclaw");
|
|
190
190
|
try {
|
|
191
|
-
if (
|
|
191
|
+
if (fs.existsSync(newDir)) return newDir;
|
|
192
192
|
} catch {}
|
|
193
193
|
return newDir;
|
|
194
194
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as defaultRuntime, h as success, l as danger, u as info } from "./subsystem-
|
|
2
|
-
import { r as logInfo } from "./logger-
|
|
3
|
-
import { ao as loadConfig, dr as resolveWhatsAppAccount, gr as logoutWeb, nc as formatCliCommand } from "./model-selection-
|
|
4
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
1
|
+
import { a as defaultRuntime, h as success, l as danger, u as info } from "./subsystem-C8z6w6xC.js";
|
|
2
|
+
import { r as logInfo } from "./logger-ChbX1G7s.js";
|
|
3
|
+
import { ao as loadConfig, dr as resolveWhatsAppAccount, gr as logoutWeb, nc as formatCliCommand } from "./model-selection-wf3OY5DX.js";
|
|
4
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-BoIID5UR.js";
|
|
5
5
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
6
6
|
//#region src/web/login.ts
|
|
7
7
|
async function loginWeb(verbose, waitForConnection, runtime = defaultRuntime, accountId) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { a as defaultRuntime, h as success, l as danger, u as info } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import { r as logInfo } from "./logger-
|
|
6
|
-
import { ao as loadConfig, br as readWebSelfId, dr as resolveWhatsAppAccount, gr as logoutWeb, wr as webAuthExists } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
1
|
+
import "./paths-C0HLtPu0.js";
|
|
2
|
+
import "./paths-hfkBoC7i.js";
|
|
3
|
+
import { a as defaultRuntime, h as success, l as danger, u as info } from "./subsystem-C8z6w6xC.js";
|
|
4
|
+
import "./workspace-CWDYHR27.js";
|
|
5
|
+
import { r as logInfo } from "./logger-ChbX1G7s.js";
|
|
6
|
+
import { ao as loadConfig, br as readWebSelfId, dr as resolveWhatsAppAccount, gr as logoutWeb, wr as webAuthExists } from "./model-selection-wf3OY5DX.js";
|
|
7
|
+
import "./github-copilot-token-CQmATy5E.js";
|
|
8
8
|
import "./boolean-C7Ct_klp.js";
|
|
9
|
-
import "./env-
|
|
10
|
-
import "./frontmatter-
|
|
11
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
9
|
+
import "./env-aYXLHjfZ.js";
|
|
10
|
+
import "./frontmatter-DjZuS525.js";
|
|
11
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-BoIID5UR.js";
|
|
12
12
|
import { randomUUID } from "node:crypto";
|
|
13
13
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
14
14
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { A as resolveAgentDir, P as resolveAgentWorkspaceDir, k as resolveAgentConfig, o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { E as truncateUtf16Safe, c as clampNumber, s as clampInt, y as resolveUserPath } from "./logger-
|
|
5
|
-
import { C as resolveEnvApiKey, E as retryAsync, Ji as formatErrorMessage, S as resolveApiKeyForProvider, Xt as onSessionTranscriptUpdate, ac as normalizeOptionalSecretInput, lc as normalizeResolvedSecretInputString, x as requireApiKey } from "./model-selection-
|
|
6
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
7
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
8
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
9
|
-
import { _ as runWithConcurrency, a as listSessionFilesForAgent, c as chunkMarkdown, d as hashText, f as isMemoryPath, g as remapChunkLines, h as parseEmbedding, i as buildSessionEntry, l as cosineSimilarity, m as normalizeExtraMemoryPaths, o as sessionPathForFile, p as listMemoryFiles, r as requireNodeSqlite, s as buildFileEntry, t as extractKeywords, u as ensureDir, v as isFileMissingError, y as statRegularFile } from "./query-expansion-
|
|
1
|
+
import { A as resolveAgentDir, P as resolveAgentWorkspaceDir, k as resolveAgentConfig, o as resolveSessionTranscriptsDirForAgent } from "./paths-C0HLtPu0.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-hfkBoC7i.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-C8z6w6xC.js";
|
|
4
|
+
import { E as truncateUtf16Safe, c as clampNumber, s as clampInt, y as resolveUserPath } from "./logger-ChbX1G7s.js";
|
|
5
|
+
import { C as resolveEnvApiKey, E as retryAsync, Ji as formatErrorMessage, S as resolveApiKeyForProvider, Xt as onSessionTranscriptUpdate, ac as normalizeOptionalSecretInput, lc as normalizeResolvedSecretInputString, x as requireApiKey } from "./model-selection-wf3OY5DX.js";
|
|
6
|
+
import { t as isTruthyEnvValue } from "./env-aYXLHjfZ.js";
|
|
7
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-CqpEmMQ2.js";
|
|
8
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-DLU4jvSu.js";
|
|
9
|
+
import { _ as runWithConcurrency, a as listSessionFilesForAgent, c as chunkMarkdown, d as hashText, f as isMemoryPath, g as remapChunkLines, h as parseEmbedding, i as buildSessionEntry, l as cosineSimilarity, m as normalizeExtraMemoryPaths, o as sessionPathForFile, p as listMemoryFiles, r as requireNodeSqlite, s as buildFileEntry, t as extractKeywords, u as ensureDir, v as isFileMissingError, y as statRegularFile } from "./query-expansion-GqNV2iIE.js";
|
|
10
10
|
import fs from "node:fs/promises";
|
|
11
11
|
import os from "node:os";
|
|
12
12
|
import path from "node:path";
|
|
13
|
-
import
|
|
13
|
+
import fs$1 from "node:fs";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
15
15
|
import chokidar from "chokidar";
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
@@ -728,7 +728,7 @@ function canAutoSelectLocal(options) {
|
|
|
728
728
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
729
729
|
const resolved = resolveUserPath(modelPath);
|
|
730
730
|
try {
|
|
731
|
-
return
|
|
731
|
+
return fs$1.statSync(resolved).isFile();
|
|
732
732
|
} catch {
|
|
733
733
|
return false;
|
|
734
734
|
}
|
|
@@ -2278,7 +2278,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2278
2278
|
]);
|
|
2279
2279
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
2280
2280
|
for (const entry of additionalPaths) try {
|
|
2281
|
-
const stat =
|
|
2281
|
+
const stat = fs$1.lstatSync(entry);
|
|
2282
2282
|
if (stat.isSymbolicLink()) continue;
|
|
2283
2283
|
if (stat.isDirectory()) {
|
|
2284
2284
|
watchPaths.add(path.join(entry, "**", "*.md"));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./paths-C0HLtPu0.js";
|
|
2
|
+
import "./paths-hfkBoC7i.js";
|
|
3
|
+
import "./subsystem-C8z6w6xC.js";
|
|
4
|
+
import "./workspace-CWDYHR27.js";
|
|
5
|
+
import "./logger-ChbX1G7s.js";
|
|
6
|
+
import "./model-selection-wf3OY5DX.js";
|
|
7
|
+
import "./github-copilot-token-CQmATy5E.js";
|
|
8
|
+
import "./boolean-C7Ct_klp.js";
|
|
9
|
+
import "./env-aYXLHjfZ.js";
|
|
10
|
+
import "./frontmatter-DjZuS525.js";
|
|
11
|
+
import "./fetch-guard-CqpEmMQ2.js";
|
|
12
|
+
import "./api-key-rotation-DLU4jvSu.js";
|
|
13
|
+
import { n as closeAllMemoryIndexManagers, t as MemoryIndexManager } from "./manager-FAQPC0uO.js";
|
|
14
|
+
import "./query-expansion-GqNV2iIE.js";
|
|
15
|
+
export { MemoryIndexManager, closeAllMemoryIndexManagers };
|