openclaw-multi-auto 1.8.4 → 1.8.6
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-ef71Xoo3.js → agent-BomWJjOy.js} +10 -10
- package/dist/{audio-preflight-BQoP-O-0.js → audio-preflight-CZHCr2-5.js} +9 -9
- package/dist/{audio-preflight-SOY4qjTl.js → audio-preflight-DcneE70v.js} +6 -6
- package/dist/{audit-membership-runtime-BQmoiW7f.js → audit-membership-runtime-BDoMjPgy.js} +3 -3
- package/dist/{audit-membership-runtime-0b4ZhE41.js → audit-membership-runtime-fBOVjLNx.js} +4 -4
- package/dist/{auth-profiles-CEEqFOKJ.js → auth-profiles-Dta-Mhaw.js} +438 -438
- package/dist/auth-profiles.runtime-CLSx3zsq.js +7 -0
- package/dist/auth-profiles.runtime-DNqCx0L5.js +11 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +10 -10
- 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 +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/compact.runtime-BgRco6mO.js +7 -0
- package/dist/compact.runtime-pgjSlzSY.js +11 -0
- package/dist/daemon-cli.js +53 -53
- package/dist/deliver-runtime-BBwve6gL.js +7 -0
- package/dist/deliver-runtime-D4aWAXZ9.js +11 -0
- package/dist/{fetch-sH_NN8SV.js → fetch-BdTTF2z-.js} +2 -2
- package/dist/{fetch-wjPVlu-r.js → fetch-Bdod8UI1.js} +3 -3
- package/dist/{frontmatter-DhmdUnBP.js → frontmatter-DZlWsaUx.js} +3 -3
- package/dist/{github-copilot-token-368sRGBD.js → github-copilot-token-BeFx3MLn.js} +7 -7
- package/dist/{github-copilot-token-C-NbPL95.js → github-copilot-token-BgPOyCXe.js} +7 -7
- package/dist/image-runtime-Brryt_BU.js +11 -0
- package/dist/image-runtime-DiA6CU2y.js +7 -0
- package/dist/llm-slug-generator.js +9 -9
- package/dist/{logger-mQKrXyAc.js → logger-Budylr6i.js} +18 -18
- package/dist/{logger-C0l_Gj8Y.js → logger-DCBlX1uz.js} +7 -7
- package/dist/{login-Ctt81ov4.js → login-Bk8BjEUN.js} +3 -3
- package/dist/{login-CvFRLU0k.js → login-CKmmxErc.js} +4 -4
- package/dist/{login-qr-CHrXhUJY.js → login-qr-CVQlH0l0.js} +7 -7
- package/dist/{login-qr-D-_3HfJq.js → login-qr-KVA4wuh0.js} +10 -10
- package/dist/manager-runtime-BW_M_Kzt.js +7 -0
- package/dist/manager-runtime-D9AEoM1M.js +11 -0
- package/dist/{manager.runtime-DF-LRAbL.js → manager.runtime-BV-CBNb2.js} +10 -10
- package/dist/{manager.runtime-C5odxL4B.js → manager.runtime-KPIwNjNW.js} +12 -12
- package/dist/{model-selection-C9tlIhgN.js → model-selection-CNRMBWfR.js} +271 -271
- package/dist/{paths-jtwudEDq.js → paths-BnSNMlFT.js} +5 -5
- package/dist/{paths-BwJ6yG6k.js → paths-CNIc83Pn.js} +5 -5
- package/dist/pi-model-discovery-runtime-CDKkuBYh.js +11 -0
- package/dist/{pi-model-discovery-runtime-C-YPAOQR.js → pi-model-discovery-runtime-CLfgSk3o.js} +6 -6
- package/dist/{pi-tools.before-tool-call.runtime-CWgsv7kC.js → pi-tools.before-tool-call.runtime-CKzFGrVv.js} +6 -6
- package/dist/{pi-tools.before-tool-call.runtime-CLRTNt4A.js → pi-tools.before-tool-call.runtime-DgAiY2la.js} +9 -9
- package/dist/{pw-ai-CRL5SGWK.js → pw-ai-3ual6adI.js} +9 -9
- package/dist/{pw-ai-BFfAJexr.js → pw-ai-BZnl84YT.js} +6 -6
- package/dist/{qmd-manager-rY-Y6sbN.js → qmd-manager-BmuMJQP3.js} +3 -3
- package/dist/{qmd-manager-CFVuAj9l.js → qmd-manager-DvglNhlJ.js} +5 -5
- package/dist/{query-expansion-BIMwPSMg.js → query-expansion-BMQzl41m.js} +89 -89
- package/dist/{query-expansion-DnS6CGY2.js → query-expansion-DXwSmE_K.js} +8 -8
- package/dist/runtime-whatsapp-login.runtime-Br3SxDXL.js +13 -0
- package/dist/runtime-whatsapp-login.runtime-Dd6rJjLo.js +9 -0
- package/dist/runtime-whatsapp-outbound.runtime-CatYliOE.js +8 -0
- package/dist/runtime-whatsapp-outbound.runtime-L3Qkst0n.js +12 -0
- package/dist/{send-UG1n3OAg.js → send-CHO1gc7n.js} +2 -2
- package/dist/{send-CsgNtXyY.js → send-CXnKWzde.js} +3 -3
- package/dist/{session-BhX4LYCK.js → session-kt-bqE_z.js} +7 -7
- package/dist/{session-Bpmn--zO.js → session-r38wrRC6.js} +6 -6
- package/dist/slash-commands.runtime-BYfxn_xu.js +11 -0
- package/dist/{slash-commands.runtime-DIrX0Ynq.js → slash-commands.runtime-J-gBOPcL.js} +6 -6
- package/dist/{slash-dispatch.runtime-cYx62DOd.js → slash-dispatch.runtime-Cu8ghe1h.js} +9 -9
- package/dist/{slash-dispatch.runtime-CG-xSDdf.js → slash-dispatch.runtime-CwO02PY8.js} +6 -6
- package/dist/slash-skill-commands.runtime-8dS5PTaH.js +11 -0
- package/dist/slash-skill-commands.runtime-BQRfyLdb.js +7 -0
- package/dist/{subagent-registry-runtime-rBYzVSXG.js → subagent-registry-runtime-1IiL0xom.js} +6 -6
- package/dist/{subagent-registry-runtime-DkamrsVw.js → subagent-registry-runtime-Z0fdsGSq.js} +9 -9
- package/dist/{subsystem-CDcEQtQK.js → subsystem-Cr1MiLhx.js} +14 -14
- package/dist/{web-DbsQPRh2.js → web-B_GcnsRF.js} +9 -9
- package/dist/{web-bHB4SzXZ.js → web-CXyjF_si.js} +12 -12
- package/dist/{whatsapp-actions-CnWp29AN.js → whatsapp-actions-BCgsmzOa.js} +7 -7
- package/dist/{whatsapp-actions-BqFiZbuw.js → whatsapp-actions-BUvGEDSk.js} +10 -10
- package/dist/{workspace-Cg3kGb1y.js → workspace-Bi8vpJN0.js} +20 -20
- package/package.json +1 -1
- package/scripts/create-instance.sh +20 -4
- package/dist/auth-profiles.runtime-CuInvQ6F.js +0 -11
- package/dist/auth-profiles.runtime-DXPqJP5A.js +0 -7
- package/dist/compact.runtime-BOg89Gro.js +0 -11
- package/dist/compact.runtime-DS9UVeOh.js +0 -7
- package/dist/deliver-runtime-CUrIlSzN.js +0 -11
- package/dist/deliver-runtime-D929PgeO.js +0 -7
- package/dist/image-runtime-CkdY0-Oo.js +0 -7
- package/dist/image-runtime-Dur8cmII.js +0 -11
- package/dist/manager-runtime-CfBjUnwB.js +0 -11
- package/dist/manager-runtime-PqJtJx-b.js +0 -7
- package/dist/pi-model-discovery-runtime-CK36RhYz.js +0 -11
- package/dist/runtime-whatsapp-login.runtime-CO-iUlqS.js +0 -13
- package/dist/runtime-whatsapp-login.runtime-DeV-bhiR.js +0 -9
- package/dist/runtime-whatsapp-outbound.runtime-BFY32bnC.js +0 -8
- package/dist/runtime-whatsapp-outbound.runtime-IeVUgrJu.js +0 -12
- package/dist/slash-commands.runtime-BTNXGYOP.js +0 -11
- package/dist/slash-skill-commands.runtime-JEA80FeR.js +0 -7
- package/dist/slash-skill-commands.runtime-ThOxhaze.js +0 -11
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./query-expansion-DXwSmE_K.js";
|
|
2
|
+
import "./paths-CNIc83Pn.js";
|
|
3
|
+
import "./subsystem-Cr1MiLhx.js";
|
|
4
|
+
import "./workspace-Bi8vpJN0.js";
|
|
5
|
+
import "./logger-DCBlX1uz.js";
|
|
6
|
+
import { qn as describeImageWithModel } from "./model-selection-CNRMBWfR.js";
|
|
7
|
+
import "./github-copilot-token-BeFx3MLn.js";
|
|
8
|
+
import "./boolean-C7Ct_klp.js";
|
|
9
|
+
import "./fetch-BdTTF2z-.js";
|
|
10
|
+
import "./frontmatter-DZlWsaUx.js";
|
|
11
|
+
export { describeImageWithModel };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./paths-BnSNMlFT.js";
|
|
2
|
+
import "./logger-Budylr6i.js";
|
|
3
|
+
import { Sr as describeImageWithModel } from "./auth-profiles-Dta-Mhaw.js";
|
|
4
|
+
import "./query-expansion-BMQzl41m.js";
|
|
5
|
+
import "./github-copilot-token-BgPOyCXe.js";
|
|
6
|
+
import "./fetch-Bdod8UI1.js";
|
|
7
|
+
export { describeImageWithModel };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Ct as resolveAgentWorkspaceDir, vt as resolveAgentDir, wt as resolveDefaultAgentId, yt as resolveAgentEffectiveModelPrimary } from "./query-expansion-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import { J as runEmbeddedPiAgent, ji as DEFAULT_PROVIDER, o as parseModelRef } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
1
|
+
import { Ct as resolveAgentWorkspaceDir, vt as resolveAgentDir, wt as resolveDefaultAgentId, yt as resolveAgentEffectiveModelPrimary } from "./query-expansion-DXwSmE_K.js";
|
|
2
|
+
import "./paths-CNIc83Pn.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-Cr1MiLhx.js";
|
|
4
|
+
import "./workspace-Bi8vpJN0.js";
|
|
5
|
+
import "./logger-DCBlX1uz.js";
|
|
6
|
+
import { J as runEmbeddedPiAgent, ji as DEFAULT_PROVIDER, o as parseModelRef } from "./model-selection-CNRMBWfR.js";
|
|
7
|
+
import "./github-copilot-token-BeFx3MLn.js";
|
|
8
8
|
import "./boolean-C7Ct_klp.js";
|
|
9
|
-
import "./fetch-
|
|
10
|
-
import "./frontmatter-
|
|
9
|
+
import "./fetch-BdTTF2z-.js";
|
|
10
|
+
import "./frontmatter-DZlWsaUx.js";
|
|
11
11
|
import fs from "node:fs/promises";
|
|
12
12
|
import os from "node:os";
|
|
13
13
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as resolveEffectiveHomeDir, f as resolveHomeRelativePath, p as resolveRequiredHomeDir, r as resolveConfigPath, s as resolveOAuthDir } from "./paths-
|
|
2
|
-
import
|
|
1
|
+
import { d as resolveEffectiveHomeDir, f as resolveHomeRelativePath, p as resolveRequiredHomeDir, r as resolveConfigPath, s as resolveOAuthDir } from "./paths-BnSNMlFT.js";
|
|
2
|
+
import fsSync from "node:fs";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { Logger } from "tslog";
|
|
@@ -64,15 +64,15 @@ function getCommandPathInternal(argv, depth, opts) {
|
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region src/infra/tmp-openclaw-dir.ts
|
|
66
66
|
const POSIX_OPENCLAW_TMP_DIR = "/tmp/openclaw";
|
|
67
|
-
const TMP_DIR_ACCESS_MODE =
|
|
67
|
+
const TMP_DIR_ACCESS_MODE = fsSync.constants.W_OK | fsSync.constants.X_OK;
|
|
68
68
|
function isNodeErrorWithCode(err, code) {
|
|
69
69
|
return typeof err === "object" && err !== null && "code" in err && err.code === code;
|
|
70
70
|
}
|
|
71
71
|
function resolvePreferredOpenClawTmpDir(options = {}) {
|
|
72
|
-
const accessSync = options.accessSync ??
|
|
73
|
-
const chmodSync = options.chmodSync ??
|
|
74
|
-
const lstatSync = options.lstatSync ??
|
|
75
|
-
const mkdirSync = options.mkdirSync ??
|
|
72
|
+
const accessSync = options.accessSync ?? fsSync.accessSync;
|
|
73
|
+
const chmodSync = options.chmodSync ?? fsSync.chmodSync;
|
|
74
|
+
const lstatSync = options.lstatSync ?? fsSync.lstatSync;
|
|
75
|
+
const mkdirSync = options.mkdirSync ?? fsSync.mkdirSync;
|
|
76
76
|
const warn = options.warn ?? ((message) => console.warn(message));
|
|
77
77
|
const getuid = options.getuid ?? (() => {
|
|
78
78
|
try {
|
|
@@ -164,8 +164,8 @@ function resolvePreferredOpenClawTmpDir(options = {}) {
|
|
|
164
164
|
function readLoggingConfig() {
|
|
165
165
|
const configPath = resolveConfigPath();
|
|
166
166
|
try {
|
|
167
|
-
if (!
|
|
168
|
-
const raw =
|
|
167
|
+
if (!fsSync.existsSync(configPath)) return;
|
|
168
|
+
const raw = fsSync.readFileSync(configPath, "utf-8");
|
|
169
169
|
const logging = JSON5.parse(raw)?.logging;
|
|
170
170
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
171
171
|
return logging;
|
|
@@ -347,7 +347,7 @@ function buildLogger(settings) {
|
|
|
347
347
|
for (const transport of externalTransports) attachExternalTransport(logger, transport);
|
|
348
348
|
return logger;
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
fsSync.mkdirSync(path.dirname(settings.file), { recursive: true });
|
|
351
351
|
if (isRollingPath(settings.file)) pruneOldRollingLogs(path.dirname(settings.file));
|
|
352
352
|
let currentFileBytes = getCurrentLogFileBytes(settings.file);
|
|
353
353
|
let warnedAboutSizeCap = false;
|
|
@@ -386,14 +386,14 @@ function resolveMaxLogFileBytes(raw) {
|
|
|
386
386
|
}
|
|
387
387
|
function getCurrentLogFileBytes(file) {
|
|
388
388
|
try {
|
|
389
|
-
return
|
|
389
|
+
return fsSync.statSync(file).size;
|
|
390
390
|
} catch {
|
|
391
391
|
return 0;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
function appendLogLine(file, line) {
|
|
395
395
|
try {
|
|
396
|
-
|
|
396
|
+
fsSync.appendFileSync(file, line, { encoding: "utf8" });
|
|
397
397
|
return true;
|
|
398
398
|
} catch {
|
|
399
399
|
return false;
|
|
@@ -448,14 +448,14 @@ function isRollingPath(file) {
|
|
|
448
448
|
}
|
|
449
449
|
function pruneOldRollingLogs(dir) {
|
|
450
450
|
try {
|
|
451
|
-
const entries =
|
|
451
|
+
const entries = fsSync.readdirSync(dir, { withFileTypes: true });
|
|
452
452
|
const cutoff = Date.now() - MAX_LOG_AGE_MS;
|
|
453
453
|
for (const entry of entries) {
|
|
454
454
|
if (!entry.isFile()) continue;
|
|
455
455
|
if (!entry.name.startsWith(`${LOG_PREFIX}-`) || !entry.name.endsWith(LOG_SUFFIX)) continue;
|
|
456
456
|
const fullPath = path.join(dir, entry.name);
|
|
457
457
|
try {
|
|
458
|
-
if (
|
|
458
|
+
if (fsSync.statSync(fullPath).mtimeMs < cutoff) fsSync.rmSync(fullPath, { force: true });
|
|
459
459
|
} catch {}
|
|
460
460
|
}
|
|
461
461
|
} catch {}
|
|
@@ -531,14 +531,14 @@ function isPlainObject(value) {
|
|
|
531
531
|
//#endregion
|
|
532
532
|
//#region src/utils.ts
|
|
533
533
|
async function ensureDir(dir) {
|
|
534
|
-
await
|
|
534
|
+
await fsSync.promises.mkdir(dir, { recursive: true });
|
|
535
535
|
}
|
|
536
536
|
/**
|
|
537
537
|
* Check if a file or directory exists at the given path.
|
|
538
538
|
*/
|
|
539
539
|
async function pathExists(targetPath) {
|
|
540
540
|
try {
|
|
541
|
-
await
|
|
541
|
+
await fsSync.promises.access(targetPath);
|
|
542
542
|
return true;
|
|
543
543
|
} catch {
|
|
544
544
|
return false;
|
|
@@ -621,7 +621,7 @@ function readLidReverseMapping(lid, opts) {
|
|
|
621
621
|
for (const dir of mappingDirs) {
|
|
622
622
|
const mappingPath = path.join(dir, mappingFilename);
|
|
623
623
|
try {
|
|
624
|
-
const data =
|
|
624
|
+
const data = fsSync.readFileSync(mappingPath, "utf8");
|
|
625
625
|
const phone = JSON.parse(data);
|
|
626
626
|
if (phone === null || phone === void 0) continue;
|
|
627
627
|
return normalizeE164(String(phone));
|
|
@@ -699,7 +699,7 @@ function resolveConfigDir(env = process.env, homedir = os.homedir) {
|
|
|
699
699
|
if (override) return resolveUserPath(override, env, homedir);
|
|
700
700
|
const newDir = path.join(resolveRequiredHomeDir(env, homedir), ".openclaw");
|
|
701
701
|
try {
|
|
702
|
-
if (
|
|
702
|
+
if (fsSync.existsSync(newDir)) return newDir;
|
|
703
703
|
} catch {}
|
|
704
704
|
return newDir;
|
|
705
705
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as resolveHomeRelativePath, f as resolveRequiredHomeDir, 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 resolveHomeRelativePath, f as resolveRequiredHomeDir, o as resolveOAuthDir, u as resolveEffectiveHomeDir } from "./paths-CNIc83Pn.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-Cr1MiLhx.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import syncFs 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 syncFs.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 syncFs.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 = syncFs.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));
|
|
@@ -181,7 +181,7 @@ function resolveConfigDir(env = process.env, homedir = os.homedir) {
|
|
|
181
181
|
if (override) return resolveUserPath(override, env, homedir);
|
|
182
182
|
const newDir = path.join(resolveRequiredHomeDir(env, homedir), ".openclaw");
|
|
183
183
|
try {
|
|
184
|
-
if (
|
|
184
|
+
if (syncFs.existsSync(newDir)) return newDir;
|
|
185
185
|
} catch {}
|
|
186
186
|
return newDir;
|
|
187
187
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as danger, L as info, V as success, l as defaultRuntime, r as logInfo } from "./logger-
|
|
2
|
-
import { Da as formatCliCommand, Jr as logoutWeb, Ur as resolveWhatsAppAccount, sa as loadConfig } from "./auth-profiles-
|
|
3
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
1
|
+
import { I as danger, L as info, V as success, l as defaultRuntime, r as logInfo } from "./logger-Budylr6i.js";
|
|
2
|
+
import { Da as formatCliCommand, Jr as logoutWeb, Ur as resolveWhatsAppAccount, sa as loadConfig } from "./auth-profiles-Dta-Mhaw.js";
|
|
3
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-r38wrRC6.js";
|
|
4
4
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
5
5
|
//#region extensions/whatsapp/src/login.ts
|
|
6
6
|
async function loginWeb(verbose, waitForConnection, runtime = defaultRuntime, accountId) {
|
|
@@ -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 { Ci as formatCliCommand, vi as loadConfig, wr as logoutWeb, yr as resolveWhatsAppAccount } 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-Cr1MiLhx.js";
|
|
2
|
+
import { r as logInfo } from "./logger-DCBlX1uz.js";
|
|
3
|
+
import { Ci as formatCliCommand, vi as loadConfig, wr as logoutWeb, yr as resolveWhatsAppAccount } from "./model-selection-CNRMBWfR.js";
|
|
4
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-kt-bqE_z.js";
|
|
5
5
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
6
6
|
//#region extensions/whatsapp/src/login.ts
|
|
7
7
|
async function loginWeb(verbose, waitForConnection, runtime = defaultRuntime, accountId) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { I as danger, L as info, V as success, l as defaultRuntime, r as logInfo } from "./logger-
|
|
3
|
-
import { Jr as logoutWeb, Qr as readWebSelfId, Ur as resolveWhatsAppAccount, ni as webAuthExists, sa as loadConfig } from "./auth-profiles-
|
|
4
|
-
import "./query-expansion-
|
|
5
|
-
import "./github-copilot-token-
|
|
6
|
-
import "./fetch-
|
|
7
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
1
|
+
import "./paths-BnSNMlFT.js";
|
|
2
|
+
import { I as danger, L as info, V as success, l as defaultRuntime, r as logInfo } from "./logger-Budylr6i.js";
|
|
3
|
+
import { Jr as logoutWeb, Qr as readWebSelfId, Ur as resolveWhatsAppAccount, ni as webAuthExists, sa as loadConfig } from "./auth-profiles-Dta-Mhaw.js";
|
|
4
|
+
import "./query-expansion-BMQzl41m.js";
|
|
5
|
+
import "./github-copilot-token-BgPOyCXe.js";
|
|
6
|
+
import "./fetch-Bdod8UI1.js";
|
|
7
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-r38wrRC6.js";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
9
9
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
10
10
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./query-expansion-
|
|
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 { Mr as webAuthExists, Or as readWebSelfId, vi as loadConfig, wr as logoutWeb, yr as resolveWhatsAppAccount } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
1
|
+
import "./query-expansion-DXwSmE_K.js";
|
|
2
|
+
import "./paths-CNIc83Pn.js";
|
|
3
|
+
import { a as defaultRuntime, h as success, l as danger, u as info } from "./subsystem-Cr1MiLhx.js";
|
|
4
|
+
import "./workspace-Bi8vpJN0.js";
|
|
5
|
+
import { r as logInfo } from "./logger-DCBlX1uz.js";
|
|
6
|
+
import { Mr as webAuthExists, Or as readWebSelfId, vi as loadConfig, wr as logoutWeb, yr as resolveWhatsAppAccount } from "./model-selection-CNRMBWfR.js";
|
|
7
|
+
import "./github-copilot-token-BeFx3MLn.js";
|
|
8
8
|
import "./boolean-C7Ct_klp.js";
|
|
9
|
-
import "./fetch-
|
|
10
|
-
import "./frontmatter-
|
|
11
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
9
|
+
import "./fetch-BdTTF2z-.js";
|
|
10
|
+
import "./frontmatter-DZlWsaUx.js";
|
|
11
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-kt-bqE_z.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";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./paths-BnSNMlFT.js";
|
|
2
|
+
import "./logger-Budylr6i.js";
|
|
3
|
+
import { Tn as closeAllMemoryIndexManagers, wn as MemoryIndexManager } from "./auth-profiles-Dta-Mhaw.js";
|
|
4
|
+
import "./query-expansion-BMQzl41m.js";
|
|
5
|
+
import "./github-copilot-token-BgPOyCXe.js";
|
|
6
|
+
import "./fetch-Bdod8UI1.js";
|
|
7
|
+
export { MemoryIndexManager, closeAllMemoryIndexManagers };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./query-expansion-DXwSmE_K.js";
|
|
2
|
+
import "./paths-CNIc83Pn.js";
|
|
3
|
+
import "./subsystem-Cr1MiLhx.js";
|
|
4
|
+
import "./workspace-Bi8vpJN0.js";
|
|
5
|
+
import "./logger-DCBlX1uz.js";
|
|
6
|
+
import { Xt as MemoryIndexManager, Zt as closeAllMemoryIndexManagers } from "./model-selection-CNRMBWfR.js";
|
|
7
|
+
import "./github-copilot-token-BeFx3MLn.js";
|
|
8
|
+
import "./boolean-C7Ct_klp.js";
|
|
9
|
+
import "./fetch-BdTTF2z-.js";
|
|
10
|
+
import "./frontmatter-DZlWsaUx.js";
|
|
11
|
+
export { MemoryIndexManager, closeAllMemoryIndexManagers };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { vt as resolveAgentDir } from "./query-expansion-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { E as resolvePreferredOpenClawTmpDir, d as logVerbose, m as shouldLogVerbose, t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import { Fn as textToSpeech, Hn as buildProviderRegistry, In as parseTtsDirectives, Kn as runCapability, Pn as resolveTtsConfig, T as isDangerousNameMatchingEnabled, Tn as formatDiscordUserTag, Un as createMediaAttachmentCache, Wn as normalizeMediaAttachments, bn as formatMention, ci as formatErrorMessage, hn as resolveAgentRoute, wn as resolveDiscordOwnerAccess } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
1
|
+
import { vt as resolveAgentDir } from "./query-expansion-DXwSmE_K.js";
|
|
2
|
+
import "./paths-CNIc83Pn.js";
|
|
3
|
+
import { E as resolvePreferredOpenClawTmpDir, d as logVerbose, m as shouldLogVerbose, t as createSubsystemLogger } from "./subsystem-Cr1MiLhx.js";
|
|
4
|
+
import "./workspace-Bi8vpJN0.js";
|
|
5
|
+
import "./logger-DCBlX1uz.js";
|
|
6
|
+
import { Fn as textToSpeech, Hn as buildProviderRegistry, In as parseTtsDirectives, Kn as runCapability, Pn as resolveTtsConfig, T as isDangerousNameMatchingEnabled, Tn as formatDiscordUserTag, Un as createMediaAttachmentCache, Wn as normalizeMediaAttachments, bn as formatMention, ci as formatErrorMessage, hn as resolveAgentRoute, wn as resolveDiscordOwnerAccess } from "./model-selection-CNRMBWfR.js";
|
|
7
|
+
import "./github-copilot-token-BeFx3MLn.js";
|
|
8
8
|
import "./boolean-C7Ct_klp.js";
|
|
9
|
-
import "./fetch-
|
|
10
|
-
import "./frontmatter-
|
|
11
|
-
import { n as agentCommandFromIngress } from "./agent-
|
|
9
|
+
import "./fetch-BdTTF2z-.js";
|
|
10
|
+
import "./frontmatter-DZlWsaUx.js";
|
|
11
|
+
import { n as agentCommandFromIngress } from "./agent-BomWJjOy.js";
|
|
12
12
|
import { createRequire } from "node:module";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import path from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { B as shouldLogVerbose, Q as resolvePreferredOpenClawTmpDir, R as logVerbose, a as createSubsystemLogger, l as defaultRuntime } from "./logger-
|
|
3
|
-
import { $ as prepareSessionManagerForRun, $n as resolveDiscordOwnerAccess, An as toAcpRuntimeError, Br as getChannelPlugin, Bt as normalizeOutboundPayloads, Ca as formatXHighModelHint, Cr as resolveSessionTranscriptFile, Ct as hasNonzeroUsage, Da as formatCliCommand, Dn as isSilentReplyPrefixText, Ea as supportsXHighThinking, Fr as resolveSessionResetPolicy, Ft as resolveOutboundTarget, G as resolveSendPolicy, H as getSkillsSnapshotVersion, I as getCliSessionId, Ir as resolveSessionResetType, It as resolveSessionDeliveryTarget, Kt as FailoverError, L as setCliSessionId, Lr as mergeSessionEntry, Lt as buildOutboundSessionContext, Mr as resolveSessionKey, Nr as evaluateSessionFreshness, On as isSilentReplyText, Or as updateSessionStore, Ot as normalizeReplyPayload, Pr as resolveChannelResetConfig, Q as runEmbeddedPiAgent, R as runCliAgent, Rr as setSessionRuntimeModel, Rt as deliverOutboundPayloads, Sa as formatThinkingLevels, St as deriveSessionTotalTokens, Ta as normalizeVerboseLevel, Tr as loadSessionStore, U as clearSessionAuthProfileOverride, Ut as resolveMessageChannelSelection, V as getRemoteSkillEligibility, Vr as normalizeChannelId, Vt as normalizeOutboundPayloadsForJson, Wi as buildWorkspaceSkillSnapshot, Wn as resolveAgentRoute, Wt as runWithModelFallback, Yn as formatMention, _r as buildProviderRegistry, _t as resolveAcpAgentPolicyError, a as modelKey, aa as loadModelCatalog, ba as DEFAULT_MODEL, bt as AGENT_LANE_SUBAGENT, c as resolveConfiguredModelRef, ci as isDeliverableMessageChannel, da as setRuntimeConfigSnapshot, di as normalizeMessageChannel, dr as parseTtsDirectives, dt as formatAgentInternalEventsForPrompt, er as formatDiscordUserTag, et as resolveBootstrapWarningSignaturesSeen, f as getAgentRuntimeCommandSecretTargetIds, fi as resolveMessageChannel, ft as normalizeSpawnedRunMetadata, gt as resolveAcpSessionCwd, ht as registerAgentRunContext, i as isCliProvider, jr as normalizeAccountId, k as isDangerousNameMatchingEnabled, kn as getAcpSessionManager, l as resolveDefaultModelForAgent, li as isGatewayMessageChannel, lr as resolveTtsConfig, mt as emitAgentEvent, na as formatErrorMessage, o as normalizeModelRef, p as resolveCommandSecretRefsViaGateway, pt as clearAgentRunContext, r as buildAllowedModelSet, s as normalizeProviderId, sa as loadConfig, si as INTERNAL_MESSAGE_CHANNEL, t as ensureAuthProfileStore, u as resolveThinkingDefault, ua as readConfigFileSnapshotForWrite, ui as isInternalMessageChannel, ur as textToSpeech, ut as resolveAgentTimeoutMs, vr as createMediaAttachmentCache, vt as resolveAcpDispatchPolicyError, wa as normalizeThinkLevel, wr as emitSessionTranscriptUpdate, wt as resolveContextTokensForModel, xa as DEFAULT_PROVIDER, xn as clearBootstrapSnapshotOnSessionRollover, xr as runCapability, xt as applyModelOverrideToSessionEntry, yr as normalizeMediaAttachments, yt as AGENT_LANE_NESTED, z as applyVerboseOverride, zr as resolveExplicitAgentSessionKey, zt as formatOutboundPayloadLog } from "./auth-profiles-
|
|
4
|
-
import { Et as resolveSessionAgentId, It as ensureAgentWorkspace, R as resolveStorePath, St as resolveAgentWorkspaceDir, fn as normalizeAgentId, gt as listAgentIds, mn as resolveAgentIdFromSessionKey, pn as normalizeMainKey, vt as resolveAgentDir, wt as resolveEffectiveModelFallbacks, xt as resolveAgentSkillsFilter } from "./query-expansion-
|
|
5
|
-
import "./github-copilot-token-
|
|
6
|
-
import "./fetch-
|
|
1
|
+
import "./paths-BnSNMlFT.js";
|
|
2
|
+
import { B as shouldLogVerbose, Q as resolvePreferredOpenClawTmpDir, R as logVerbose, a as createSubsystemLogger, l as defaultRuntime } from "./logger-Budylr6i.js";
|
|
3
|
+
import { $ as prepareSessionManagerForRun, $n as resolveDiscordOwnerAccess, An as toAcpRuntimeError, Br as getChannelPlugin, Bt as normalizeOutboundPayloads, Ca as formatXHighModelHint, Cr as resolveSessionTranscriptFile, Ct as hasNonzeroUsage, Da as formatCliCommand, Dn as isSilentReplyPrefixText, Ea as supportsXHighThinking, Fr as resolveSessionResetPolicy, Ft as resolveOutboundTarget, G as resolveSendPolicy, H as getSkillsSnapshotVersion, I as getCliSessionId, Ir as resolveSessionResetType, It as resolveSessionDeliveryTarget, Kt as FailoverError, L as setCliSessionId, Lr as mergeSessionEntry, Lt as buildOutboundSessionContext, Mr as resolveSessionKey, Nr as evaluateSessionFreshness, On as isSilentReplyText, Or as updateSessionStore, Ot as normalizeReplyPayload, Pr as resolveChannelResetConfig, Q as runEmbeddedPiAgent, R as runCliAgent, Rr as setSessionRuntimeModel, Rt as deliverOutboundPayloads, Sa as formatThinkingLevels, St as deriveSessionTotalTokens, Ta as normalizeVerboseLevel, Tr as loadSessionStore, U as clearSessionAuthProfileOverride, Ut as resolveMessageChannelSelection, V as getRemoteSkillEligibility, Vr as normalizeChannelId, Vt as normalizeOutboundPayloadsForJson, Wi as buildWorkspaceSkillSnapshot, Wn as resolveAgentRoute, Wt as runWithModelFallback, Yn as formatMention, _r as buildProviderRegistry, _t as resolveAcpAgentPolicyError, a as modelKey, aa as loadModelCatalog, ba as DEFAULT_MODEL, bt as AGENT_LANE_SUBAGENT, c as resolveConfiguredModelRef, ci as isDeliverableMessageChannel, da as setRuntimeConfigSnapshot, di as normalizeMessageChannel, dr as parseTtsDirectives, dt as formatAgentInternalEventsForPrompt, er as formatDiscordUserTag, et as resolveBootstrapWarningSignaturesSeen, f as getAgentRuntimeCommandSecretTargetIds, fi as resolveMessageChannel, ft as normalizeSpawnedRunMetadata, gt as resolveAcpSessionCwd, ht as registerAgentRunContext, i as isCliProvider, jr as normalizeAccountId, k as isDangerousNameMatchingEnabled, kn as getAcpSessionManager, l as resolveDefaultModelForAgent, li as isGatewayMessageChannel, lr as resolveTtsConfig, mt as emitAgentEvent, na as formatErrorMessage, o as normalizeModelRef, p as resolveCommandSecretRefsViaGateway, pt as clearAgentRunContext, r as buildAllowedModelSet, s as normalizeProviderId, sa as loadConfig, si as INTERNAL_MESSAGE_CHANNEL, t as ensureAuthProfileStore, u as resolveThinkingDefault, ua as readConfigFileSnapshotForWrite, ui as isInternalMessageChannel, ur as textToSpeech, ut as resolveAgentTimeoutMs, vr as createMediaAttachmentCache, vt as resolveAcpDispatchPolicyError, wa as normalizeThinkLevel, wr as emitSessionTranscriptUpdate, wt as resolveContextTokensForModel, xa as DEFAULT_PROVIDER, xn as clearBootstrapSnapshotOnSessionRollover, xr as runCapability, xt as applyModelOverrideToSessionEntry, yr as normalizeMediaAttachments, yt as AGENT_LANE_NESTED, z as applyVerboseOverride, zr as resolveExplicitAgentSessionKey, zt as formatOutboundPayloadLog } from "./auth-profiles-Dta-Mhaw.js";
|
|
4
|
+
import { Et as resolveSessionAgentId, It as ensureAgentWorkspace, R as resolveStorePath, St as resolveAgentWorkspaceDir, fn as normalizeAgentId, gt as listAgentIds, mn as resolveAgentIdFromSessionKey, pn as normalizeMainKey, vt as resolveAgentDir, wt as resolveEffectiveModelFallbacks, xt as resolveAgentSkillsFilter } from "./query-expansion-BMQzl41m.js";
|
|
5
|
+
import "./github-copilot-token-BgPOyCXe.js";
|
|
6
|
+
import "./fetch-Bdod8UI1.js";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
@@ -64,12 +64,12 @@ function createLazySender(channelId, loader, exportName) {
|
|
|
64
64
|
}
|
|
65
65
|
function createDefaultDeps() {
|
|
66
66
|
return {
|
|
67
|
-
whatsapp: createLazySender("whatsapp", () => import("./web-
|
|
68
|
-
telegram: createLazySender("telegram", () => import("./auth-profiles-
|
|
69
|
-
discord: createLazySender("discord", () => import("./auth-profiles-
|
|
70
|
-
slack: createLazySender("slack", () => import("./auth-profiles-
|
|
71
|
-
signal: createLazySender("signal", () => import("./auth-profiles-
|
|
72
|
-
imessage: createLazySender("imessage", () => import("./auth-profiles-
|
|
67
|
+
whatsapp: createLazySender("whatsapp", () => import("./web-B_GcnsRF.js"), "sendMessageWhatsApp"),
|
|
68
|
+
telegram: createLazySender("telegram", () => import("./auth-profiles-Dta-Mhaw.js").then((n) => n.v), "sendMessageTelegram"),
|
|
69
|
+
discord: createLazySender("discord", () => import("./auth-profiles-Dta-Mhaw.js").then((n) => n.Jn), "sendMessageDiscord"),
|
|
70
|
+
slack: createLazySender("slack", () => import("./auth-profiles-Dta-Mhaw.js").then((n) => n.b), "sendMessageSlack"),
|
|
71
|
+
signal: createLazySender("signal", () => import("./auth-profiles-Dta-Mhaw.js").then((n) => n.Ht), "sendMessageSignal"),
|
|
72
|
+
imessage: createLazySender("imessage", () => import("./auth-profiles-Dta-Mhaw.js").then((n) => n.x), "sendMessageIMessage")
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|