@bitseek/claw 1.3.4 → 1.3.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/{accounts-DMvETf-t.js → accounts-Bwq1wvds.js} +1 -1
- package/dist/{accounts-BTexwKe8.js → accounts-CX1yOBOk.js} +1 -1
- package/dist/{accounts-ubG6irXZ.js → accounts-CaiECgq3.js} +16 -16
- package/dist/{active-listener-Hd9sOu9T.js → active-listener-neKWQsOO.js} +1 -1
- package/dist/{agent-scope-C6hps0r3.js → agent-scope-CTbRzU1C.js} +4 -4
- package/dist/{api-key-rotation-Cv5_SG_o.js → api-key-rotation-BbZD-rsQ.js} +2 -2
- package/dist/{audio-preflight-C2pZmbnM.js → audio-preflight-C5Crv38h.js} +39 -39
- package/dist/{audio-transcription-runner-CQ4BMvGX.js → audio-transcription-runner-eVtEKUPC.js} +11 -11
- package/dist/{bindings-CsIiIjqN.js → bindings-Daa-Etag.js} +2 -2
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +65 -65
- package/dist/bundled/bootstrap-extra-files/handler.js +7 -7
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +65 -65
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-Dwc2BBvs.js → channel-activity-D0BHmeoE.js} +3 -3
- package/dist/{chrome-DWfXErGH.js → chrome-BRjY_MCc.js} +26 -26
- package/dist/{chunk-2ZxftpDd.js → chunk-Dfkbh8wX.js} +1 -1
- package/dist/{command-registry-DshPN0jE.js → command-registry-BSN6zVlZ.js} +5 -5
- package/dist/{commands-registry-CTkboeeC.js → commands-registry-NyRDVN7s.js} +5 -5
- package/dist/{completion-cli-BD1Wf-K1.js → completion-cli-BDeiV4p9.js} +1 -1
- package/dist/{completion-cli-Ds2kVMMx.js → completion-cli-lZ6S6oKA.js} +2 -2
- package/dist/{deliver-zrYSWfQ5.js → deliver-DlLNT2iR.js} +22 -22
- package/dist/{diagnostic-BO1GQJJf.js → diagnostic-DpOlXoSr.js} +2 -2
- package/dist/{dock-Bm23mfim.js → dock-DXlPVrMo.js} +6 -6
- package/dist/{doctor-completion-DpsPIdur.js → doctor-completion-BKCOmkBi.js} +1 -1
- package/dist/{doctor-completion-f2gLNSUa.js → doctor-completion-Bim4XRFT.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{env-DNMZEG57.js → env-Bn6pmvjK.js} +2 -2
- package/dist/{errors-B11yhRo6.js → errors-Ct2kCLWx.js} +1 -1
- package/dist/{fetch-4RonjgqX.js → fetch-2cO0rj7X.js} +5 -5
- package/dist/{fetch-guard-B1EGEHan.js → fetch-guard-iigSYt3Q.js} +2 -2
- package/dist/{frontmatter-D6vByAHn.js → frontmatter-rlCI8Hmw.js} +2 -2
- package/dist/{fs-safe-C77EShMC.js → fs-safe-CM9EhGvi.js} +4 -4
- package/dist/{gateway-cli-3rP04OO5.js → gateway-cli-8DmbQc9V.js} +1 -1
- package/dist/{gateway-cli-CbVaqoxB.js → gateway-cli-CDgld1qp.js} +1 -1
- package/dist/{github-copilot-token-DLGN-8YS.js → github-copilot-token-CPjAmbfr.js} +7 -7
- package/dist/{image-DnxYCkHO.js → image-BWlmyhr-.js} +6 -6
- package/dist/{image-ops-DCpyia_K.js → image-ops-jvmQoiyw.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{internal-hooks-yQe6H47q.js → internal-hooks-oLQ2m8YT.js} +1 -1
- package/dist/{ir-DcDVAFj3.js → ir-pR36nI-3.js} +6 -6
- package/dist/llm-slug-generator.js +65 -65
- package/dist/{logger-BlH5MJiV.js → logger-DelEB7MK.js} +1 -1
- package/dist/{login-CgEHUE7h.js → login-Cm2zDfEU.js} +6 -6
- package/dist/{login-qr-DUJfhbUe.js → login-qr-iS1jPDpP.js} +13 -13
- package/dist/{manager-tozHviEd.js → manager-BX3KtavU.js} +15 -15
- package/dist/{markdown-tables-BHONoo6S.js → markdown-tables-pfs_NCNh.js} +1 -1
- package/dist/{message-channel-pbgFFUNm.js → message-channel-DB68nc40.js} +1 -1
- package/dist/{model-selection-D_Si2Ict.js → model-selection-DfZMxaX3.js} +44 -44
- package/dist/{onboard-qD3I6PJW.js → onboard-BcaFvsav.js} +1 -1
- package/dist/{onboard-CE9V4Lb7.js → onboard-sKY5jwsH.js} +1 -1
- package/dist/{onboarding-CjwEj4uN.js → onboarding-BRfS3PSa.js} +1 -1
- package/dist/{onboarding-_GD-DZHG.js → onboarding-JNyox6ZE.js} +1 -1
- package/dist/{onboarding.finalize-B5hA5lV8.js → onboarding.finalize-CG9tTRyw.js} +3 -3
- package/dist/{onboarding.finalize-kX5lNpGT.js → onboarding.finalize-hBg4b8IC.js} +4 -4
- package/dist/{outbound-9rXkgGZM.js → outbound-N9_vLIGT.js} +7 -7
- package/dist/{outbound-attachment-Cy8rvvJE.js → outbound-attachment-CEt49GWZ.js} +2 -2
- package/dist/{path-alias-guards-Cpb5gMG6.js → path-alias-guards-xY_GOJVd.js} +1 -1
- package/dist/{paths-BHEVctLd.js → paths-Bi8MJ8NM.js} +3 -3
- package/dist/{paths-aGRLvQx9.js → paths-DKuX7-1L.js} +5 -5
- package/dist/{pi-embedded-BQqt592d.js → pi-embedded-CDXssetE.js} +187 -187
- package/dist/{pi-embedded-helpers-Bo7e-QzJ.js → pi-embedded-helpers-DSPiPpLM.js} +29 -29
- package/dist/{pi-model-discovery-DA46fxhD.js → pi-model-discovery-N7o4F93J.js} +7 -7
- package/dist/{plugins-CJoaoIHc.js → plugins-D63QYxW6.js} +11 -11
- package/dist/{program-BTBw45uK.js → program-B_-eFyJE.js} +2 -2
- package/dist/{program-context-CqvVc2Bn.js → program-context-BJQXRZ1w.js} +7 -7
- package/dist/{prompt-select-styled-DK1SacDX.js → prompt-select-styled-QH4mD93d.js} +1 -1
- package/dist/{prompt-select-styled-7VZwhnhd.js → prompt-select-styled-asxoqY78.js} +1 -1
- package/dist/{proxy-env-ynOWOBHx.js → proxy-env-Drg9J503.js} +1 -1
- package/dist/{proxy-fetch-xlbVQYN_.js → proxy-fetch-AvkSvetA.js} +1 -1
- package/dist/{proxy-DfJJLvch.js → proxy-jINniQBi.js} +1 -1
- package/dist/{pw-ai-Cu3cnNF0.js → pw-ai-gDXxKGzT.js} +17 -17
- package/dist/{qmd-manager-n4jauq3A.js → qmd-manager-DXbV8CPG.js} +11 -11
- package/dist/{query-expansion-CdDUaBcQ.js → query-expansion-C0A4WwZX.js} +5 -5
- package/dist/{redact-CaZQhKzI.js → redact-BC9R18Uw.js} +1 -1
- package/dist/{register.init-BXkISfms.js → register.init-BdPckTb9.js} +12 -3
- package/dist/{register.init-BvMr7cj9.js → register.init-CNKrbvCo.js} +12 -3
- package/dist/{register.maintenance-qjXr4IGe.js → register.maintenance-B0nZqqML.js} +4 -4
- package/dist/{register.maintenance-FKHpDu3E.js → register.maintenance-DvWoKstb.js} +5 -5
- package/dist/{register.onboard-BzpyjklK.js → register.onboard-B1-O21vU.js} +2 -2
- package/dist/{register.onboard--_sGklZ6.js → register.onboard-DOhvWYV7.js} +2 -2
- package/dist/{register.setup-qYawYgIM.js → register.setup-KPZYo_I1.js} +2 -2
- package/dist/{register.setup-Degyv4Bj.js → register.setup-ixDBzvTR.js} +2 -2
- package/dist/{register.subclis-DkDc3aKk.js → register.subclis-BSGvOwqU.js} +3 -3
- package/dist/{registry-CJCkqTms.js → registry-C2GEGa2t.js} +3 -3
- package/dist/{replies-D6zARd6r.js → replies-B6I1tT5t.js} +3 -3
- package/dist/{reply-prefix-DK1i6bCJ.js → reply-prefix-9mzt89Cf.js} +1 -1
- package/dist/{resolve-route-C5hVstLo.js → resolve-route-BNElrVxR.js} +4 -4
- package/dist/{retry-DTeP7C3h.js → retry-Ayb7e4XG.js} +1 -1
- package/dist/{run-main-VaM4RFaa.js → run-main-CdI1kXKr.js} +3 -3
- package/dist/{send-CcQZM0c7.js → send-B6QQ8XfC.js} +8 -8
- package/dist/{send--Gq-Uh-l.js → send-BMzVXosN.js} +7 -7
- package/dist/{send-DcL81tZr.js → send-BQETStDl.js} +10 -10
- package/dist/{send-D2zYssqK.js → send-Buidj_8L.js} +27 -27
- package/dist/{send-BpyiQEov.js → send-DC_e_Iev.js} +6 -6
- package/dist/{session-xKPVUYQP.js → session-TVb8hgJP.js} +9 -9
- package/dist/{session-meta-BbCwXniv.js → session-meta-DAMj6ZRX.js} +2 -2
- package/dist/{sessions-D7EjW0sG.js → sessions-Ck4ZR4dY.js} +31 -31
- package/dist/{skill-commands-Cea3CZFF.js → skill-commands-KesfMtZ9.js} +9 -9
- package/dist/{skills-BttlqUXr.js → skills-BYmEoxNo.js} +22 -22
- package/dist/{store-B7PaqfvZ.js → store-KLMMBnKE.js} +2 -2
- package/dist/{subsystem-BRjuJbbM.js → subsystem-CAatx5oo.js} +14 -14
- package/dist/{tables-BJ0XAman.js → tables-DqechQWF.js} +1 -1
- package/dist/{target-errors-Dad0aUFR.js → target-errors-C-KolUyX.js} +2 -2
- package/dist/{tokens-B9EDT4jv.js → tokens-BvzZdrVJ.js} +1 -1
- package/dist/{tool-images-ArXzv82F.js → tool-images-DiKIlElg.js} +2 -2
- package/dist/{tool-loop-detection-CLoYKYIq.js → tool-loop-detection-C4V990MS.js} +3 -3
- package/dist/{update-cli-Do4BIFSd.js → update-cli-CfeiDzYx.js} +4 -4
- package/dist/{update-cli-CWS0bKZV.js → update-cli-DKmrzt8l.js} +5 -5
- package/dist/{utils-BFZnl-5N.js → utils-Bo1RFF0l.js} +6 -6
- package/dist/{web-C5gLi1bN.js → web-BPI4HIht.js} +69 -69
- package/dist/{whatsapp-actions-Be9uvUUL.js → whatsapp-actions-Bf61u88d.js} +28 -28
- package/dist/{workspace-D6mrCnXi.js → workspace-CswOYN9T.js} +21 -21
- package/docs/install/installer.md +7 -0
- package/package.json +6 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { p as normalizeSkillFilter } from "./agent-scope-
|
|
2
|
-
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
3
|
-
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-
|
|
4
|
-
import { A as isPathInside, _ as resolveOpenClawPackageRootSync } from "./workspace-
|
|
5
|
-
import { At as resolveEffectiveEnableState, Sn as isDangerousHostEnvVarName, hn as isPathInsideWithRealpath, jt as resolveMemorySlotDecision, kt as normalizePluginsConfig, wt as loadPluginManifestRegistry } from "./model-selection-
|
|
6
|
-
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-
|
|
7
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { p as normalizeSkillFilter } from "./agent-scope-CTbRzU1C.js";
|
|
2
|
+
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-CAatx5oo.js";
|
|
3
|
+
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-Bo1RFF0l.js";
|
|
4
|
+
import { A as isPathInside, _ as resolveOpenClawPackageRootSync } from "./workspace-CswOYN9T.js";
|
|
5
|
+
import { At as resolveEffectiveEnableState, Sn as isDangerousHostEnvVarName, hn as isPathInsideWithRealpath, jt as resolveMemorySlotDecision, kt as normalizePluginsConfig, wt as loadPluginManifestRegistry } from "./model-selection-DfZMxaX3.js";
|
|
6
|
+
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-rlCI8Hmw.js";
|
|
7
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-xY_GOJVd.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs from "node:fs";
|
|
11
11
|
import { URL as URL$1, fileURLToPath } from "node:url";
|
|
12
12
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
13
13
|
|
|
@@ -540,13 +540,13 @@ function shortPath(value) {
|
|
|
540
540
|
//#region src/agents/skills/bundled-dir.ts
|
|
541
541
|
function looksLikeSkillsDir(dir) {
|
|
542
542
|
try {
|
|
543
|
-
const entries =
|
|
543
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
544
544
|
for (const entry of entries) {
|
|
545
545
|
if (entry.name.startsWith(".")) continue;
|
|
546
546
|
const fullPath = path.join(dir, entry.name);
|
|
547
547
|
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
548
548
|
if (entry.isDirectory()) {
|
|
549
|
-
if (
|
|
549
|
+
if (fs.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
} catch {
|
|
@@ -561,7 +561,7 @@ function resolveBundledSkillsDir(opts = {}) {
|
|
|
561
561
|
const execPath = opts.execPath ?? process.execPath;
|
|
562
562
|
const execDir = path.dirname(execPath);
|
|
563
563
|
const sibling = path.join(execDir, "skills");
|
|
564
|
-
if (
|
|
564
|
+
if (fs.existsSync(sibling)) return sibling;
|
|
565
565
|
} catch {}
|
|
566
566
|
try {
|
|
567
567
|
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
@@ -624,7 +624,7 @@ function resolvePluginSkillDirs(params) {
|
|
|
624
624
|
const trimmed = raw.trim();
|
|
625
625
|
if (!trimmed) continue;
|
|
626
626
|
const candidate = path.resolve(record.rootDir, trimmed);
|
|
627
|
-
if (!
|
|
627
|
+
if (!fs.existsSync(candidate)) {
|
|
628
628
|
log.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
629
629
|
continue;
|
|
630
630
|
}
|
|
@@ -655,7 +655,7 @@ async function serializeByKey(key, task) {
|
|
|
655
655
|
|
|
656
656
|
//#endregion
|
|
657
657
|
//#region src/agents/skills/workspace.ts
|
|
658
|
-
const fsp =
|
|
658
|
+
const fsp = fs.promises;
|
|
659
659
|
const skillsLogger = createSubsystemLogger("skills");
|
|
660
660
|
const skillCommandDebugOnce = /* @__PURE__ */ new Set();
|
|
661
661
|
/**
|
|
@@ -732,7 +732,7 @@ function resolveSkillsLimits(config) {
|
|
|
732
732
|
}
|
|
733
733
|
function listChildDirectories(dir) {
|
|
734
734
|
try {
|
|
735
|
-
const entries =
|
|
735
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
736
736
|
const dirs = [];
|
|
737
737
|
for (const entry of entries) {
|
|
738
738
|
if (entry.name.startsWith(".")) continue;
|
|
@@ -743,7 +743,7 @@ function listChildDirectories(dir) {
|
|
|
743
743
|
continue;
|
|
744
744
|
}
|
|
745
745
|
if (entry.isSymbolicLink()) try {
|
|
746
|
-
if (
|
|
746
|
+
if (fs.statSync(fullPath).isDirectory()) dirs.push(entry.name);
|
|
747
747
|
} catch {}
|
|
748
748
|
}
|
|
749
749
|
return dirs;
|
|
@@ -754,7 +754,7 @@ function listChildDirectories(dir) {
|
|
|
754
754
|
function resolveNestedSkillsRoot(dir, opts) {
|
|
755
755
|
const nested = path.join(dir, "skills");
|
|
756
756
|
try {
|
|
757
|
-
if (!
|
|
757
|
+
if (!fs.existsSync(nested) || !fs.statSync(nested).isDirectory()) return { baseDir: dir };
|
|
758
758
|
} catch {
|
|
759
759
|
return { baseDir: dir };
|
|
760
760
|
}
|
|
@@ -763,7 +763,7 @@ function resolveNestedSkillsRoot(dir, opts) {
|
|
|
763
763
|
const toScan = scanLimit === 0 ? [] : nestedDirs.slice(0, Math.min(nestedDirs.length, scanLimit));
|
|
764
764
|
for (const name of toScan) {
|
|
765
765
|
const skillMd = path.join(nested, name, "SKILL.md");
|
|
766
|
-
if (
|
|
766
|
+
if (fs.existsSync(skillMd)) return {
|
|
767
767
|
baseDir: nested,
|
|
768
768
|
note: `Detected nested skills root at ${nested}`
|
|
769
769
|
};
|
|
@@ -783,9 +783,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
783
783
|
const loadSkills = (params) => {
|
|
784
784
|
const baseDir = resolveNestedSkillsRoot(params.dir, { maxEntriesToScan: limits.maxCandidatesPerRoot }).baseDir;
|
|
785
785
|
const rootSkillMd = path.join(baseDir, "SKILL.md");
|
|
786
|
-
if (
|
|
786
|
+
if (fs.existsSync(rootSkillMd)) {
|
|
787
787
|
try {
|
|
788
|
-
const size =
|
|
788
|
+
const size = fs.statSync(rootSkillMd).size;
|
|
789
789
|
if (size > limits.maxSkillFileBytes) {
|
|
790
790
|
skillsLogger.warn("Skipping skills root due to oversized SKILL.md.", {
|
|
791
791
|
dir: baseDir,
|
|
@@ -824,9 +824,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
824
824
|
for (const name of limitedChildren) {
|
|
825
825
|
const skillDir = path.join(baseDir, name);
|
|
826
826
|
const skillMd = path.join(skillDir, "SKILL.md");
|
|
827
|
-
if (!
|
|
827
|
+
if (!fs.existsSync(skillMd)) continue;
|
|
828
828
|
try {
|
|
829
|
-
const size =
|
|
829
|
+
const size = fs.statSync(skillMd).size;
|
|
830
830
|
if (size > limits.maxSkillFileBytes) {
|
|
831
831
|
skillsLogger.warn("Skipping skill due to oversized SKILL.md.", {
|
|
832
832
|
skill: name,
|
|
@@ -894,7 +894,7 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
894
894
|
return Array.from(merged.values()).map((skill) => {
|
|
895
895
|
let frontmatter = {};
|
|
896
896
|
try {
|
|
897
|
-
frontmatter = parseFrontmatter(
|
|
897
|
+
frontmatter = parseFrontmatter(fs.readFileSync(skill.filePath, "utf-8"));
|
|
898
898
|
} catch {}
|
|
899
899
|
return {
|
|
900
900
|
skill,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as resolveConfigDir } from "./utils-
|
|
2
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
1
|
+
import { p as resolveConfigDir } from "./utils-Bo1RFF0l.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-jvmQoiyw.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as resolveConfigPath } from "./paths-
|
|
1
|
+
import { r as resolveConfigPath } from "./paths-DKuX7-1L.js";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import chalk, { Chalk } from "chalk";
|
|
6
6
|
import { Logger } from "tslog";
|
|
7
7
|
import JSON5 from "json5";
|
|
@@ -54,15 +54,15 @@ function getCommandPathInternal(argv, depth, opts) {
|
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/infra/tmp-openclaw-dir.ts
|
|
56
56
|
const POSIX_OPENCLAW_TMP_DIR = "/tmp/openclaw";
|
|
57
|
-
const TMP_DIR_ACCESS_MODE =
|
|
57
|
+
const TMP_DIR_ACCESS_MODE = fs.constants.W_OK | fs.constants.X_OK;
|
|
58
58
|
function isNodeErrorWithCode(err, code) {
|
|
59
59
|
return typeof err === "object" && err !== null && "code" in err && err.code === code;
|
|
60
60
|
}
|
|
61
61
|
function resolvePreferredOpenClawTmpDir(options = {}) {
|
|
62
|
-
const accessSync = options.accessSync ??
|
|
63
|
-
const chmodSync = options.chmodSync ??
|
|
64
|
-
const lstatSync = options.lstatSync ??
|
|
65
|
-
const mkdirSync = options.mkdirSync ??
|
|
62
|
+
const accessSync = options.accessSync ?? fs.accessSync;
|
|
63
|
+
const chmodSync = options.chmodSync ?? fs.chmodSync;
|
|
64
|
+
const lstatSync = options.lstatSync ?? fs.lstatSync;
|
|
65
|
+
const mkdirSync = options.mkdirSync ?? fs.mkdirSync;
|
|
66
66
|
const warn = options.warn ?? ((message) => console.warn(message));
|
|
67
67
|
const getuid = options.getuid ?? (() => {
|
|
68
68
|
try {
|
|
@@ -155,8 +155,8 @@ function resolvePreferredOpenClawTmpDir(options = {}) {
|
|
|
155
155
|
function readLoggingConfig() {
|
|
156
156
|
const configPath = resolveConfigPath();
|
|
157
157
|
try {
|
|
158
|
-
if (!
|
|
159
|
-
const raw =
|
|
158
|
+
if (!fs.existsSync(configPath)) return;
|
|
159
|
+
const raw = fs.readFileSync(configPath, "utf-8");
|
|
160
160
|
const logging = JSON5.parse(raw)?.logging;
|
|
161
161
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
162
162
|
return logging;
|
|
@@ -344,7 +344,7 @@ function buildLogger(settings) {
|
|
|
344
344
|
for (const transport of externalTransports) attachExternalTransport(logger, transport);
|
|
345
345
|
return logger;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
fs.mkdirSync(path.dirname(settings.file), { recursive: true });
|
|
348
348
|
if (isRollingPath(settings.file)) pruneOldRollingLogs(path.dirname(settings.file));
|
|
349
349
|
let currentFileBytes = getCurrentLogFileBytes(settings.file);
|
|
350
350
|
let warnedAboutSizeCap = false;
|
|
@@ -383,14 +383,14 @@ function resolveMaxLogFileBytes(raw) {
|
|
|
383
383
|
}
|
|
384
384
|
function getCurrentLogFileBytes(file) {
|
|
385
385
|
try {
|
|
386
|
-
return
|
|
386
|
+
return fs.statSync(file).size;
|
|
387
387
|
} catch {
|
|
388
388
|
return 0;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
function appendLogLine(file, line) {
|
|
392
392
|
try {
|
|
393
|
-
|
|
393
|
+
fs.appendFileSync(file, line, { encoding: "utf8" });
|
|
394
394
|
return true;
|
|
395
395
|
} catch {
|
|
396
396
|
return false;
|
|
@@ -442,14 +442,14 @@ function isRollingPath(file) {
|
|
|
442
442
|
}
|
|
443
443
|
function pruneOldRollingLogs(dir) {
|
|
444
444
|
try {
|
|
445
|
-
const entries =
|
|
445
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
446
446
|
const cutoff = Date.now() - MAX_LOG_AGE_MS;
|
|
447
447
|
for (const entry of entries) {
|
|
448
448
|
if (!entry.isFile()) continue;
|
|
449
449
|
if (!entry.name.startsWith(`${LOG_PREFIX}-`) || !entry.name.endsWith(LOG_SUFFIX)) continue;
|
|
450
450
|
const fullPath = path.join(dir, entry.name);
|
|
451
451
|
try {
|
|
452
|
-
if (
|
|
452
|
+
if (fs.statSync(fullPath).mtimeMs < cutoff) fs.rmSync(fullPath, { force: true });
|
|
453
453
|
} catch {}
|
|
454
454
|
}
|
|
455
455
|
} catch {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as detectMime } from "./image-ops-
|
|
2
|
-
import { r as sanitizeToolResultImages } from "./tool-images-
|
|
1
|
+
import { c as detectMime } from "./image-ops-jvmQoiyw.js";
|
|
2
|
+
import { r as sanitizeToolResultImages } from "./tool-images-DiKIlElg.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/agents/tools/common.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CAatx5oo.js";
|
|
2
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-jvmQoiyw.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media/base64.ts
|
|
5
5
|
function estimateBase64DecodedBytes(base64) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { C as isPlainObject } from "./utils-
|
|
1
|
+
import "./paths-DKuX7-1L.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CAatx5oo.js";
|
|
3
|
+
import { C as isPlainObject } from "./utils-Bo1RFF0l.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
|
|
6
6
|
//#region src/agents/tool-loop-detection.ts
|
|
@@ -122,7 +122,7 @@ import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLa
|
|
|
122
122
|
import "./constants-BJMtcGm_.js";
|
|
123
123
|
import "./context-window-guard-DfLcl4Sl.js";
|
|
124
124
|
import { r as parseSemver } from "./runtime-guard-IbCMXYfp.js";
|
|
125
|
-
import "./program-context-
|
|
125
|
+
import "./program-context-BJQXRZ1w.js";
|
|
126
126
|
import "./skills-status-CXKKJa9Q.js";
|
|
127
127
|
import { n as inheritOptionFromParent } from "./command-options-CfGhT1Of.js";
|
|
128
128
|
import "./note-CvWjGRTD.js";
|
|
@@ -132,7 +132,7 @@ import "./skill-scanner-ew2xZjjk.js";
|
|
|
132
132
|
import "./installs-DOXDa0sd.js";
|
|
133
133
|
import { n as formatConfigIssueLines } from "./issue-format-DTqjZOjH.js";
|
|
134
134
|
import "./channels-status-issues-9pCBFmqu.js";
|
|
135
|
-
import { r as installCompletion } from "./completion-cli-
|
|
135
|
+
import { r as installCompletion } from "./completion-cli-BDeiV4p9.js";
|
|
136
136
|
import "./daemon-install-helpers-BM1DaOy4.js";
|
|
137
137
|
import "./systemd-BeNGyFHw.js";
|
|
138
138
|
import { t as resolveGatewayService } from "./service-Y993dKjs.js";
|
|
@@ -152,8 +152,8 @@ import "./doctor-config-flow-CiAsN7mG.js";
|
|
|
152
152
|
import "./oauth-tls-preflight-Di_O2hPI.js";
|
|
153
153
|
import "./systemd-linger-iDZhUJvT.js";
|
|
154
154
|
import "./health-format-Cp-jlwLm.js";
|
|
155
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
156
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
155
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-QH4mD93d.js";
|
|
156
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-Bim4XRFT.js";
|
|
157
157
|
import os from "node:os";
|
|
158
158
|
import path from "node:path";
|
|
159
159
|
import fs from "node:fs/promises";
|
|
@@ -131,9 +131,9 @@ import "./skill-scanner-CSmiOSFd.js";
|
|
|
131
131
|
import "./installs-B-WNFE2v.js";
|
|
132
132
|
import { n as formatConfigIssueLines } from "./issue-format-Bm-71lmf.js";
|
|
133
133
|
import "./channels-status-issues-ib5LY9cR.js";
|
|
134
|
-
import { r as installCompletion } from "./completion-cli-
|
|
135
|
-
import "./register.subclis-
|
|
136
|
-
import "./command-registry-
|
|
134
|
+
import { r as installCompletion } from "./completion-cli-lZ6S6oKA.js";
|
|
135
|
+
import "./register.subclis-BSGvOwqU.js";
|
|
136
|
+
import "./command-registry-BSN6zVlZ.js";
|
|
137
137
|
import "./program-context-BqyLhTGk.js";
|
|
138
138
|
import "./daemon-install-helpers-DJg83rPu.js";
|
|
139
139
|
import { r as parseSemver } from "./runtime-guard-DzZMAUj_.js";
|
|
@@ -155,8 +155,8 @@ import "./doctor-config-flow-DhnDuMG9.js";
|
|
|
155
155
|
import "./oauth-tls-preflight-DLADeojn.js";
|
|
156
156
|
import "./systemd-linger-CTeOH7Nl.js";
|
|
157
157
|
import "./health-format-rPE0ELW5.js";
|
|
158
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
159
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
158
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-asxoqY78.js";
|
|
159
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-BKCOmkBi.js";
|
|
160
160
|
import { spawn, spawnSync } from "node:child_process";
|
|
161
161
|
import path from "node:path";
|
|
162
162
|
import os from "node:os";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir, u as resolveEffectiveHomeDir } from "./paths-
|
|
2
|
-
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-
|
|
1
|
+
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir, u as resolveEffectiveHomeDir } from "./paths-DKuX7-1L.js";
|
|
2
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-CAatx5oo.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
|
|
|
7
7
|
//#region src/infra/plain-object.ts
|
|
8
8
|
/**
|
|
@@ -15,14 +15,14 @@ function isPlainObject(value) {
|
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/utils.ts
|
|
17
17
|
async function ensureDir(dir) {
|
|
18
|
-
await
|
|
18
|
+
await fs.promises.mkdir(dir, { recursive: true });
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Check if a file or directory exists at the given path.
|
|
22
22
|
*/
|
|
23
23
|
async function pathExists(targetPath) {
|
|
24
24
|
try {
|
|
25
|
-
await
|
|
25
|
+
await fs.promises.access(targetPath);
|
|
26
26
|
return true;
|
|
27
27
|
} catch {
|
|
28
28
|
return false;
|
|
@@ -105,7 +105,7 @@ function readLidReverseMapping(lid, opts) {
|
|
|
105
105
|
for (const dir of mappingDirs) {
|
|
106
106
|
const mappingPath = path.join(dir, mappingFilename);
|
|
107
107
|
try {
|
|
108
|
-
const data =
|
|
108
|
+
const data = fs.readFileSync(mappingPath, "utf8");
|
|
109
109
|
const phone = JSON.parse(data);
|
|
110
110
|
if (phone === null || phone === void 0) continue;
|
|
111
111
|
return normalizeE164(String(phone));
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-
|
|
1
|
+
import "./agent-scope-CTbRzU1C.js";
|
|
2
|
+
import "./paths-DKuX7-1L.js";
|
|
3
|
+
import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-CAatx5oo.js";
|
|
4
4
|
import { a as buildGroupHistoryKey, c as normalizeAgentId, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey } from "./session-key-a6av96Fj.js";
|
|
5
|
-
import { d as normalizeE164, l as isSelfChatMode, m as resolveJidToE164, n as clamp, u as jidToE164, x as toWhatsappJid, y as sleep } from "./utils-
|
|
6
|
-
import "./workspace-
|
|
7
|
-
import "./logger-
|
|
8
|
-
import { H as loadConfig } from "./model-selection-
|
|
9
|
-
import "./github-copilot-token-
|
|
10
|
-
import { n as formatCliCommand } from "./env-
|
|
5
|
+
import { d as normalizeE164, l as isSelfChatMode, m as resolveJidToE164, n as clamp, u as jidToE164, x as toWhatsappJid, y as sleep } from "./utils-Bo1RFF0l.js";
|
|
6
|
+
import "./workspace-CswOYN9T.js";
|
|
7
|
+
import "./logger-DelEB7MK.js";
|
|
8
|
+
import { H as loadConfig } from "./model-selection-DfZMxaX3.js";
|
|
9
|
+
import "./github-copilot-token-CPjAmbfr.js";
|
|
10
|
+
import { n as formatCliCommand } from "./env-Bn6pmvjK.js";
|
|
11
11
|
import "./boolean-mcn6kL0s.js";
|
|
12
|
-
import "./internal-hooks-
|
|
13
|
-
import "./registry-
|
|
14
|
-
import { a as resolveChannelGroupRequireMention, i as resolveChannelGroupPolicy } from "./dock-
|
|
15
|
-
import "./tokens-
|
|
16
|
-
import { A as enqueueSystemEvent, C as resolveInboundDebounceMs, D as normalizeGroupActivation, E as getReplyFromConfig, M as shouldComputeCommandAuthorized, N as buildMentionRegexes, O as parseActivationCommand, P as normalizeMentionText, S as createInboundDebouncer, T as createDedupeCache, _ as resolveDmGroupAccessWithLists, b as dispatchReplyWithBufferedBlockDispatcher, c as resolveMentionGating, d as recordPendingHistoryEntryIfEnabled, f as resolveDefaultGroupPolicy, g as resolveDmGroupAccessWithCommandGate, h as readStoreAllowFromForDmPolicy, i as sleepWithAbort, j as hasControlCommand, k as formatDurationPrecise, l as DEFAULT_GROUP_HISTORY_LIMIT, m as warnMissingProviderGroupPolicyFallbackOnce, n as resolveInboundSessionEnvelopeContext, p as resolveOpenProviderRuntimeGroupPolicy, r as computeBackoff, s as buildPairingReply, u as buildHistoryContextFromEntries, v as resolvePinnedMainDmOwnerFromAllowlist, w as formatInboundEnvelope, y as shouldAckReactionForWhatsApp } from "./pi-embedded-
|
|
17
|
-
import "./plugins-
|
|
18
|
-
import { a as logWebSelfId, c as pickWebChannel, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, r as WA_WEB_AUTH_DIR, u as readWebSelfId } from "./accounts-
|
|
19
|
-
import "./bindings-
|
|
20
|
-
import "./send-
|
|
21
|
-
import "./send-
|
|
22
|
-
import "./deliver-
|
|
23
|
-
import "./diagnostic-
|
|
12
|
+
import "./internal-hooks-oLQ2m8YT.js";
|
|
13
|
+
import "./registry-C2GEGa2t.js";
|
|
14
|
+
import { a as resolveChannelGroupRequireMention, i as resolveChannelGroupPolicy } from "./dock-DXlPVrMo.js";
|
|
15
|
+
import "./tokens-BvzZdrVJ.js";
|
|
16
|
+
import { A as enqueueSystemEvent, C as resolveInboundDebounceMs, D as normalizeGroupActivation, E as getReplyFromConfig, M as shouldComputeCommandAuthorized, N as buildMentionRegexes, O as parseActivationCommand, P as normalizeMentionText, S as createInboundDebouncer, T as createDedupeCache, _ as resolveDmGroupAccessWithLists, b as dispatchReplyWithBufferedBlockDispatcher, c as resolveMentionGating, d as recordPendingHistoryEntryIfEnabled, f as resolveDefaultGroupPolicy, g as resolveDmGroupAccessWithCommandGate, h as readStoreAllowFromForDmPolicy, i as sleepWithAbort, j as hasControlCommand, k as formatDurationPrecise, l as DEFAULT_GROUP_HISTORY_LIMIT, m as warnMissingProviderGroupPolicyFallbackOnce, n as resolveInboundSessionEnvelopeContext, p as resolveOpenProviderRuntimeGroupPolicy, r as computeBackoff, s as buildPairingReply, u as buildHistoryContextFromEntries, v as resolvePinnedMainDmOwnerFromAllowlist, w as formatInboundEnvelope, y as shouldAckReactionForWhatsApp } from "./pi-embedded-CDXssetE.js";
|
|
17
|
+
import "./plugins-D63QYxW6.js";
|
|
18
|
+
import { a as logWebSelfId, c as pickWebChannel, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, r as WA_WEB_AUTH_DIR, u as readWebSelfId } from "./accounts-CaiECgq3.js";
|
|
19
|
+
import "./bindings-Daa-Etag.js";
|
|
20
|
+
import "./send-B6QQ8XfC.js";
|
|
21
|
+
import "./send-BQETStDl.js";
|
|
22
|
+
import "./deliver-DlLNT2iR.js";
|
|
23
|
+
import "./diagnostic-DpOlXoSr.js";
|
|
24
24
|
import "./diagnostic-session-state-DBPrVBk3.js";
|
|
25
|
-
import "./accounts-
|
|
26
|
-
import { X as formatLocationText, Z as toLocationContext, tt as upsertChannelPairingRequest } from "./send-
|
|
27
|
-
import "./image-ops-
|
|
28
|
-
import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
29
|
-
import "./pi-model-discovery-
|
|
30
|
-
import "./message-channel-
|
|
31
|
-
import "./pi-embedded-helpers-
|
|
32
|
-
import "./chrome-
|
|
33
|
-
import "./frontmatter-
|
|
34
|
-
import "./skills-
|
|
35
|
-
import "./path-alias-guards-
|
|
36
|
-
import "./redact-
|
|
37
|
-
import "./errors-
|
|
38
|
-
import "./fs-safe-
|
|
39
|
-
import "./proxy-env-
|
|
40
|
-
import { i as saveMediaBuffer } from "./store-
|
|
41
|
-
import { G as resolveGroupSessionKey, c as recordSessionMetaFromInbound, l as updateLastRoute, o as loadSessionStore } from "./sessions-
|
|
42
|
-
import "./accounts-
|
|
43
|
-
import { s as resolveStorePath } from "./paths-
|
|
44
|
-
import "./tool-images-
|
|
25
|
+
import "./accounts-CX1yOBOk.js";
|
|
26
|
+
import { X as formatLocationText, Z as toLocationContext, tt as upsertChannelPairingRequest } from "./send-Buidj_8L.js";
|
|
27
|
+
import "./image-ops-jvmQoiyw.js";
|
|
28
|
+
import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-eVtEKUPC.js";
|
|
29
|
+
import "./pi-model-discovery-N7o4F93J.js";
|
|
30
|
+
import "./message-channel-DB68nc40.js";
|
|
31
|
+
import "./pi-embedded-helpers-DSPiPpLM.js";
|
|
32
|
+
import "./chrome-BRjY_MCc.js";
|
|
33
|
+
import "./frontmatter-rlCI8Hmw.js";
|
|
34
|
+
import "./skills-BYmEoxNo.js";
|
|
35
|
+
import "./path-alias-guards-xY_GOJVd.js";
|
|
36
|
+
import "./redact-BC9R18Uw.js";
|
|
37
|
+
import "./errors-Ct2kCLWx.js";
|
|
38
|
+
import "./fs-safe-CM9EhGvi.js";
|
|
39
|
+
import "./proxy-env-Drg9J503.js";
|
|
40
|
+
import { i as saveMediaBuffer } from "./store-KLMMBnKE.js";
|
|
41
|
+
import { G as resolveGroupSessionKey, c as recordSessionMetaFromInbound, l as updateLastRoute, o as loadSessionStore } from "./sessions-Ck4ZR4dY.js";
|
|
42
|
+
import "./accounts-Bwq1wvds.js";
|
|
43
|
+
import { s as resolveStorePath } from "./paths-Bi8MJ8NM.js";
|
|
44
|
+
import "./tool-images-DiKIlElg.js";
|
|
45
45
|
import "./thinking-BcOnJa2q.js";
|
|
46
|
-
import "./image-
|
|
47
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
48
|
-
import "./fetch-guard-
|
|
49
|
-
import "./api-key-rotation-
|
|
50
|
-
import "./proxy-fetch-
|
|
51
|
-
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
52
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
53
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
54
|
-
import { a as loadWebMedia } from "./ir-
|
|
46
|
+
import "./image-BWlmyhr-.js";
|
|
47
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-2cO0rj7X.js";
|
|
48
|
+
import "./fetch-guard-iigSYt3Q.js";
|
|
49
|
+
import "./api-key-rotation-BbZD-rsQ.js";
|
|
50
|
+
import "./proxy-fetch-AvkSvetA.js";
|
|
51
|
+
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-9mzt89Cf.js";
|
|
52
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-Dfkbh8wX.js";
|
|
53
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-pfs_NCNh.js";
|
|
54
|
+
import { a as loadWebMedia } from "./ir-pR36nI-3.js";
|
|
55
55
|
import "./render-flG67HhW.js";
|
|
56
|
-
import "./target-errors-
|
|
57
|
-
import "./commands-registry-
|
|
58
|
-
import "./skill-commands-
|
|
56
|
+
import "./target-errors-C-KolUyX.js";
|
|
57
|
+
import "./commands-registry-NyRDVN7s.js";
|
|
58
|
+
import "./skill-commands-KesfMtZ9.js";
|
|
59
59
|
import { t as finalizeInboundContext } from "./inbound-context-CTd41MBO.js";
|
|
60
60
|
import "./fetch-CIXnD4u2.js";
|
|
61
|
-
import "./retry-
|
|
62
|
-
import { n as recordChannelActivity } from "./channel-activity-
|
|
63
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
64
|
-
import "./send-
|
|
65
|
-
import "./outbound-attachment-
|
|
66
|
-
import "./send
|
|
67
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
68
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
69
|
-
import "./proxy-
|
|
70
|
-
import "./replies-
|
|
71
|
-
import "./session-meta-
|
|
72
|
-
import "./manager-
|
|
73
|
-
import "./query-expansion-
|
|
74
|
-
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
75
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
76
|
-
import { t as loginWeb } from "./login-
|
|
61
|
+
import "./retry-Ayb7e4XG.js";
|
|
62
|
+
import { n as recordChannelActivity } from "./channel-activity-D0BHmeoE.js";
|
|
63
|
+
import { t as convertMarkdownTables } from "./tables-DqechQWF.js";
|
|
64
|
+
import "./send-DC_e_Iev.js";
|
|
65
|
+
import "./outbound-attachment-CEt49GWZ.js";
|
|
66
|
+
import "./send-BMzVXosN.js";
|
|
67
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-BNElrVxR.js";
|
|
68
|
+
import { r as setActiveWebListener } from "./active-listener-neKWQsOO.js";
|
|
69
|
+
import "./proxy-jINniQBi.js";
|
|
70
|
+
import "./replies-B6I1tT5t.js";
|
|
71
|
+
import "./session-meta-DAMj6ZRX.js";
|
|
72
|
+
import "./manager-BX3KtavU.js";
|
|
73
|
+
import "./query-expansion-C0A4WwZX.js";
|
|
74
|
+
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-N9_vLIGT.js";
|
|
75
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-TVb8hgJP.js";
|
|
76
|
+
import { t as loginWeb } from "./login-Cm2zDfEU.js";
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
79
79
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import "./subsystem-
|
|
4
|
-
import "./utils-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./logger-
|
|
7
|
-
import "./model-selection-
|
|
8
|
-
import "./github-copilot-token-
|
|
9
|
-
import "./env-
|
|
1
|
+
import "./agent-scope-CTbRzU1C.js";
|
|
2
|
+
import "./paths-DKuX7-1L.js";
|
|
3
|
+
import "./subsystem-CAatx5oo.js";
|
|
4
|
+
import "./utils-Bo1RFF0l.js";
|
|
5
|
+
import "./workspace-CswOYN9T.js";
|
|
6
|
+
import "./logger-DelEB7MK.js";
|
|
7
|
+
import "./model-selection-DfZMxaX3.js";
|
|
8
|
+
import "./github-copilot-token-CPjAmbfr.js";
|
|
9
|
+
import "./env-Bn6pmvjK.js";
|
|
10
10
|
import "./boolean-mcn6kL0s.js";
|
|
11
|
-
import "./internal-hooks-
|
|
12
|
-
import "./registry-
|
|
13
|
-
import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-
|
|
14
|
-
import { n as resolveWhatsAppAccount } from "./accounts-
|
|
15
|
-
import "./bindings-
|
|
16
|
-
import "./image-ops-
|
|
17
|
-
import "./message-channel-
|
|
18
|
-
import "./path-alias-guards-
|
|
19
|
-
import "./fs-safe-
|
|
20
|
-
import "./proxy-env-
|
|
21
|
-
import "./tool-images-
|
|
22
|
-
import "./fetch-
|
|
23
|
-
import "./fetch-guard-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./markdown-tables-
|
|
26
|
-
import "./ir-
|
|
11
|
+
import "./internal-hooks-oLQ2m8YT.js";
|
|
12
|
+
import "./registry-C2GEGa2t.js";
|
|
13
|
+
import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-D63QYxW6.js";
|
|
14
|
+
import { n as resolveWhatsAppAccount } from "./accounts-CaiECgq3.js";
|
|
15
|
+
import "./bindings-Daa-Etag.js";
|
|
16
|
+
import "./image-ops-jvmQoiyw.js";
|
|
17
|
+
import "./message-channel-DB68nc40.js";
|
|
18
|
+
import "./path-alias-guards-xY_GOJVd.js";
|
|
19
|
+
import "./fs-safe-CM9EhGvi.js";
|
|
20
|
+
import "./proxy-env-Drg9J503.js";
|
|
21
|
+
import "./tool-images-DiKIlElg.js";
|
|
22
|
+
import "./fetch-2cO0rj7X.js";
|
|
23
|
+
import "./fetch-guard-iigSYt3Q.js";
|
|
24
|
+
import "./chunk-Dfkbh8wX.js";
|
|
25
|
+
import "./markdown-tables-pfs_NCNh.js";
|
|
26
|
+
import "./ir-pR36nI-3.js";
|
|
27
27
|
import "./render-flG67HhW.js";
|
|
28
|
-
import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-
|
|
29
|
-
import "./tables-
|
|
30
|
-
import { r as sendReactionWhatsApp } from "./outbound-
|
|
28
|
+
import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-C-KolUyX.js";
|
|
29
|
+
import "./tables-DqechQWF.js";
|
|
30
|
+
import { r as sendReactionWhatsApp } from "./outbound-N9_vLIGT.js";
|
|
31
31
|
|
|
32
32
|
//#region src/whatsapp/resolve-outbound-target.ts
|
|
33
33
|
function resolveWhatsAppOutboundTarget(params) {
|