@bitseek/claw 1.1.0-beta.1 → 1.2.0
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-Q4TInGRB.js → accounts-B1Ev8y2Q.js} +1 -1
- package/dist/{accounts-CX1yOBOk.js → accounts-BTexwKe8.js} +1 -1
- package/dist/{accounts-BcjOiql6.js → accounts-BvAUwnNS.js} +1 -1
- package/dist/{accounts-DZqwa5NK.js → accounts-CFz9Jc5d.js} +1 -1
- package/dist/{accounts-DU3tdXTQ.js → accounts-DYfFud2l.js} +3 -3
- package/dist/{accounts-CaiECgq3.js → accounts-ubG6irXZ.js} +16 -16
- package/dist/{active-listener-B5NrQkZf.js → active-listener-CTS8r9of.js} +1 -1
- package/dist/{active-listener-neKWQsOO.js → active-listener-Hd9sOu9T.js} +1 -1
- package/dist/{agent-scope-WFSLjKze.js → agent-scope-BV1a5xUb.js} +3 -3
- package/dist/{agent-scope-CTbRzU1C.js → agent-scope-C6hps0r3.js} +4 -4
- package/dist/{api-key-rotation-BTSy5kZN.js → api-key-rotation-Bcht0XFN.js} +2 -2
- package/dist/{api-key-rotation-QF_IgxAt.js → api-key-rotation-WzOC5dTW.js} +2 -2
- package/dist/{audio-preflight-DZWb0ozj.js → audio-preflight-BWOdDA2n.js} +39 -39
- package/dist/{audio-preflight-BmP9CWz5.js → audio-preflight-CHD1xVrt.js} +33 -33
- package/dist/{audio-transcription-runner-2dp0SxL3.js → audio-transcription-runner-DaoqvWoi.js} +11 -11
- package/dist/{audio-transcription-runner-DY-f5ESH.js → audio-transcription-runner-DwWOJBSn.js} +10 -10
- package/dist/{bindings-BiLTzEDB.js → bindings-Cn3Pwuys.js} +2 -2
- package/dist/{bindings-Daa-Etag.js → bindings-CsIiIjqN.js} +2 -2
- package/dist/build-info.json +3 -3
- 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-B0EccK2Z.js → channel-activity-BFQ7OM6W.js} +3 -3
- package/dist/{channel-activity-Btz1t5_1.js → channel-activity-D81g48kD.js} +3 -3
- package/dist/{chrome-DX1blHAJ.js → chrome-CjTE-vWv.js} +18 -18
- package/dist/{chrome-B6KLicBS.js → chrome-CuMCXCQN.js} +7 -7
- package/dist/{chunk-DRA82fRK.js → chunk-CJxSBMow.js} +1 -1
- package/dist/{chunk-DEkdXze6.js → chunk-DtYb6TYl.js} +1 -1
- package/dist/{commands-registry-BQkQRhEo.js → commands-registry-NIsv9Z4R.js} +5 -5
- package/dist/{commands-registry-BcwiV2E6.js → commands-registry-sN7UY9o6.js} +5 -5
- package/dist/{deliver-BebswuJX.js → deliver-Dyh8ZsLI.js} +11 -11
- package/dist/{deliver-C82Egs0W.js → deliver-xY3h9X6N.js} +22 -22
- package/dist/{diagnostic-DpOlXoSr.js → diagnostic-BO1GQJJf.js} +2 -2
- package/dist/{diagnostic-BfH0uEFW.js → diagnostic-Co8pKHgV.js} +2 -2
- package/dist/{dock-DWqb4ufG.js → dock-Cr9V9V1V.js} +6 -6
- package/dist/{dock-DC1L25RR.js → dock-L5TLZmhV.js} +6 -6
- package/dist/{env-Bn6pmvjK.js → env-DNMZEG57.js} +2 -2
- package/dist/{env-C4fkljkr.js → env-zky96nK6.js} +1 -1
- package/dist/{errors-Co1cHB39.js → errors-DEkWxItM.js} +1 -1
- package/dist/{errors-azBrKJmF.js → errors-Dt6Q4949.js} +1 -1
- package/dist/extensionAPI.js +59 -59
- package/dist/{fetch-B82CeaHJ.js → fetch--iXu7oa7.js} +5 -5
- package/dist/{fetch-yZvEqNBq.js → fetch-BfCWv6tx.js} +4 -4
- package/dist/{fetch-guard-CCLWHwu7.js → fetch-guard-CNvY0vzQ.js} +2 -2
- package/dist/{fetch-guard-HVq6HV21.js → fetch-guard-DfeA6yKv.js} +2 -2
- package/dist/{frontmatter-5U1LYLH9.js → frontmatter-DIRc-IR1.js} +2 -2
- package/dist/{fs-safe-BDR6eQAw.js → fs-safe-D8x_nIIA.js} +4 -4
- package/dist/{fs-safe-Bjb1TwNw.js → fs-safe-DkXQKmLV.js} +3 -3
- package/dist/{github-copilot-token-CPjAmbfr.js → github-copilot-token-DLGN-8YS.js} +7 -7
- package/dist/{image-BQ1JgwZu.js → image-DCyaYY2d.js} +6 -6
- package/dist/{image-D0UuqhWe.js → image-DihIv8Eo.js} +6 -6
- package/dist/{image-ops-DZueuY58.js → image-ops-CSs8oYrR.js} +1 -1
- package/dist/{image-ops-jvmQoiyw.js → image-ops-DCpyia_K.js} +1 -1
- package/dist/{internal-hooks-oLQ2m8YT.js → internal-hooks-yQe6H47q.js} +1 -1
- package/dist/{ir-B8_sHx0x.js → ir-BZUjdf-6.js} +7 -7
- package/dist/{ir-BODD8g-I.js → ir-D805RkIy.js} +7 -7
- package/dist/llm-slug-generator.js +65 -65
- package/dist/{logger-DelEB7MK.js → logger-9KuF7Fqb.js} +1 -1
- package/dist/{logger-Dq_8pk7N.js → logger-BlH5MJiV.js} +1 -1
- package/dist/{login-BLdQCgev.js → login-CgEHUE7h.js} +6 -6
- package/dist/{login-Cm2zDfEU.js → login-CrT31QVq.js} +6 -6
- package/dist/{login-qr-BlBmIbUe.js → login-qr-Bu-zPzca.js} +9 -9
- package/dist/{login-qr-iS1jPDpP.js → login-qr-DUJfhbUe.js} +13 -13
- package/dist/{manager-DdzkWOvc.js → manager-BNuB9clC.js} +15 -15
- package/dist/{manager-DZ1r4cza.js → manager-BwSA683a.js} +10 -10
- package/dist/{markdown-tables-pfs_NCNh.js → markdown-tables-BHONoo6S.js} +1 -1
- package/dist/{markdown-tables-D3tGrgw6.js → markdown-tables-ChcK0mrw.js} +1 -1
- package/dist/{message-channel-POuk6EOq.js → message-channel-B1_JjaQ_.js} +1 -1
- package/dist/{message-channel-Dla8iIQh.js → message-channel-Dl8dSs0T.js} +1 -1
- package/dist/{model-selection-Lcv6_xTw.js → model-selection-D5OFBCTr.js} +10 -10
- package/dist/{model-selection-DfZMxaX3.js → model-selection-D_Si2Ict.js} +44 -44
- package/dist/{outbound-io4lysA3.js → outbound-B9pGRwxd.js} +7 -7
- package/dist/{outbound-4q4mbU-Z.js → outbound-DOVV_R6m.js} +7 -7
- package/dist/{outbound-attachment-DObhzSFC.js → outbound-attachment-Bnm1vH9k.js} +2 -2
- package/dist/{outbound-attachment-CBCp1oVQ.js → outbound-attachment-C7sJLSnv.js} +2 -2
- package/dist/{path-alias-guards-DcdNrTfo.js → path-alias-guards-BaYeiedF.js} +1 -1
- package/dist/{path-alias-guards-DfQIjfhB.js → path-alias-guards-CKjKIhQ3.js} +1 -1
- package/dist/{paths-BZO1jkK2.js → paths-Cpu0XgUj.js} +3 -3
- package/dist/{paths-DKuX7-1L.js → paths-aGRLvQx9.js} +5 -5
- package/dist/{pi-embedded-DiUmkZyz.js → pi-embedded-DE3hb87F.js} +178 -178
- package/dist/{pi-embedded-helpers-Bhiht_Fr.js → pi-embedded-helpers-Bmj18lhA.js} +17 -17
- package/dist/{pi-embedded-helpers-CuwhW4u9.js → pi-embedded-helpers-CMTVhLjq.js} +29 -29
- package/dist/{pi-embedded-ZTnJGCQY.js → pi-embedded-xCcmCTnf.js} +93 -93
- package/dist/{pi-model-discovery-COjkql-U.js → pi-model-discovery-DCIw1y1c.js} +7 -7
- package/dist/{pi-model-discovery-DkGEaaQo.js → pi-model-discovery-DpYZ-y1X.js} +1 -1
- package/dist/{plugins-Q9sCFgDd.js → plugins-BuQyooWr.js} +6 -6
- package/dist/{plugins-D63QYxW6.js → plugins-CJoaoIHc.js} +11 -11
- package/dist/{proxy-DXnFb9JG.js → proxy-DfJJLvch.js} +1 -1
- package/dist/{proxy-jINniQBi.js → proxy-DuIUyAbU.js} +1 -1
- package/dist/{proxy-env-gJ_T0CNE.js → proxy-env-2PDGuovA.js} +1 -1
- package/dist/{proxy-env-vYAjKL5q.js → proxy-env-BnDt8j9F.js} +1 -1
- package/dist/{proxy-fetch-AvkSvetA.js → proxy-fetch-fN-NLyCx.js} +1 -1
- package/dist/{proxy-fetch-Cwaqi3Sd.js → proxy-fetch-xlbVQYN_.js} +1 -1
- package/dist/{pw-ai-BLNiRUPI.js → pw-ai-DGwA7iCM.js} +17 -17
- package/dist/{pw-ai-Cu00qsvT.js → pw-ai-pqeoAqm_.js} +13 -13
- package/dist/{qmd-manager-BBKfRzj-.js → qmd-manager-CeN3N992.js} +11 -11
- package/dist/{qmd-manager-BXnhgEhZ.js → qmd-manager-DCiOmvlF.js} +8 -8
- package/dist/{query-expansion-GvCTlZq8.js → query-expansion-Bxi0ZwK0.js} +2 -2
- package/dist/{query-expansion-2BrixCA2.js → query-expansion-CGnW4Mk_.js} +5 -5
- package/dist/{redact-uUggP88O.js → redact-ScShueoF.js} +1 -1
- package/dist/{redact-BeNq-0Ah.js → redact-b4XSqAVh.js} +1 -1
- package/dist/{registry-Cm2o3UqV.js → registry-BOq-EU8K.js} +2 -2
- package/dist/{registry-C2GEGa2t.js → registry-CJCkqTms.js} +3 -3
- package/dist/{replies-yAf6dFeT.js → replies-BFYGUEKu.js} +3 -3
- package/dist/{replies-BoccpPLY.js → replies-CRQL_9_u.js} +3 -3
- package/dist/{reply-prefix-9mzt89Cf.js → reply-prefix-BDSRMl8C.js} +1 -1
- package/dist/{reply-prefix-V_WbQmQI.js → reply-prefix-DK1i6bCJ.js} +1 -1
- package/dist/{resolve-route-BNElrVxR.js → resolve-route-C5hVstLo.js} +4 -4
- package/dist/{resolve-route-CbtpwLIw.js → resolve-route-CeAUOHqF.js} +4 -4
- package/dist/{retry-Ayb7e4XG.js → retry-CqXTCn07.js} +1 -1
- package/dist/{retry-Do0h0jOj.js → retry-DTeP7C3h.js} +1 -1
- package/dist/{send-Bclgg0Ur.js → send-B4pSMBHk.js} +8 -8
- package/dist/{send-DOfOQoAW.js → send-BSw60pEI.js} +6 -6
- package/dist/{send-BUF5JmoX.js → send-BpJIVMP0.js} +10 -10
- package/dist/{send-Bjaa69Cy.js → send-BqKSZyIb.js} +27 -27
- package/dist/{send-TCeoSiar.js → send-CIQavYDH.js} +15 -15
- package/dist/{send-DYY51FOR.js → send-CN0f1Yst.js} +6 -6
- package/dist/{send-DQ7hIAIK.js → send-DrLGfHcu.js} +7 -7
- package/dist/{send-Cp0yQi_p.js → send-V3fEVmLq.js} +10 -10
- package/dist/{send-CPXpZun_.js → send-XAO1mk64.js} +7 -7
- package/dist/{send-D8-j0bqb.js → send-paWifUry.js} +8 -8
- package/dist/{session-CJ9krhUZ.js → session-BrRIoGdv.js} +5 -5
- package/dist/{session-meta-DDoYe-12.js → session-meta-B56tnXvx.js} +1 -1
- package/dist/{session-meta-CyQWVUk4.js → session-meta-Cqv55kSk.js} +2 -2
- package/dist/{session-TVb8hgJP.js → session-xKPVUYQP.js} +9 -9
- package/dist/{sessions-DRS5w42J.js → sessions-BXwugIi3.js} +6 -6
- package/dist/{sessions-3jroJwu7.js → sessions-CA_BydGA.js} +31 -31
- package/dist/{skill-commands-CSr9_48V.js → skill-commands-CZFmIM-s.js} +9 -9
- package/dist/{skill-commands-gSVeOO1_.js → skill-commands-DfX4Z2l_.js} +5 -5
- package/dist/{skills-B82IjVxn.js → skills-DMmr25nW.js} +22 -22
- package/dist/{skills-L3SwymRq.js → skills-Z-lrvzqS.js} +8 -8
- package/dist/{store-DhC72KqW.js → store-C8KgeMt2.js} +2 -2
- package/dist/{store-kjBSBYUM.js → store-DzT4cJNJ.js} +2 -2
- package/dist/{subsystem-CAatx5oo.js → subsystem-BRjuJbbM.js} +14 -14
- package/dist/{subsystem-B9sSF5B5.js → subsystem-CVmydYhZ.js} +2 -2
- package/dist/{tables-Bfh_TnCf.js → tables-BKnPZssn.js} +1 -1
- package/dist/{tables-D8eYbmn5.js → tables-DAQMuyH8.js} +1 -1
- package/dist/{target-errors-CGYXYvSZ.js → target-errors-B9Jzop3d.js} +2 -2
- package/dist/{target-errors-C6-JcltW.js → target-errors-BPINy_1M.js} +2 -2
- package/dist/{tokens-BvzZdrVJ.js → tokens-2c_yMaYC.js} +1 -1
- package/dist/{tokens-JC-PGa1O.js → tokens-B9EDT4jv.js} +1 -1
- package/dist/{tool-images-CqsWnc1k.js → tool-images-BOZsvFJ9.js} +2 -2
- package/dist/{tool-images-BieqkTsF.js → tool-images-ffdfBx0b.js} +2 -2
- package/dist/{tool-loop-detection-C4V990MS.js → tool-loop-detection-CLoYKYIq.js} +3 -3
- package/dist/{tool-loop-detection-CrEXrBzX.js → tool-loop-detection-Cmi-kldp.js} +2 -2
- package/dist/{utils-Bo1RFF0l.js → utils-BFZnl-5N.js} +6 -6
- package/dist/{utils-LC1iyEdx.js → utils-CM9uSTVd.js} +1 -1
- package/dist/{web-DsAoa63g.js → web-B2_c07KN.js} +69 -69
- package/dist/{web-D5Vw9sie.js → web-CvYmNThc.js} +63 -63
- package/dist/{whatsapp-actions-DXjy9m41.js → whatsapp-actions-CHt12z-f.js} +28 -28
- package/dist/{whatsapp-actions-BOYS1jdy.js → whatsapp-actions-D_-xXIS-.js} +24 -24
- package/dist/{workspace-CswOYN9T.js → workspace-D6mrCnXi.js} +21 -21
- package/docs/plans/2026-03-11-npm-publish-workflow-design.md +31 -0
- package/extensions/googlechat/package.json +1 -1
- package/package.json +7 -6
|
@@ -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-BFZnl-5N.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-DCpyia_K.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|
|
@@ -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-CM9uSTVd.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-CSs8oYrR.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
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-aGRLvQx9.js";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs 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 = syncFs.constants.W_OK | syncFs.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 ?? syncFs.accessSync;
|
|
63
|
+
const chmodSync = options.chmodSync ?? syncFs.chmodSync;
|
|
64
|
+
const lstatSync = options.lstatSync ?? syncFs.lstatSync;
|
|
65
|
+
const mkdirSync = options.mkdirSync ?? syncFs.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 (!syncFs.existsSync(configPath)) return;
|
|
159
|
+
const raw = syncFs.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
|
+
syncFs.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 syncFs.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
|
+
syncFs.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 = syncFs.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 (syncFs.statSync(fullPath).mtimeMs < cutoff) syncFs.rmSync(fullPath, { force: true });
|
|
453
453
|
} catch {}
|
|
454
454
|
}
|
|
455
455
|
} catch {}
|
|
@@ -4,7 +4,7 @@ import syncFs from "node:fs";
|
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import chalk, { Chalk } from "chalk";
|
|
6
6
|
import { Logger } from "tslog";
|
|
7
|
-
import
|
|
7
|
+
import JSON5 from "json5";
|
|
8
8
|
import util from "node:util";
|
|
9
9
|
|
|
10
10
|
//#region src/infra/cli-root-options.ts
|
|
@@ -157,7 +157,7 @@ function readLoggingConfig() {
|
|
|
157
157
|
try {
|
|
158
158
|
if (!syncFs.existsSync(configPath)) return;
|
|
159
159
|
const raw = syncFs.readFileSync(configPath, "utf-8");
|
|
160
|
-
const logging =
|
|
160
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
161
161
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
162
162
|
return logging;
|
|
163
163
|
} 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-DCpyia_K.js";
|
|
2
|
+
import { r as sanitizeToolResultImages } from "./tool-images-ffdfBx0b.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 { c as detectMime } from "./image-ops-
|
|
2
|
-
import { r as sanitizeToolResultImages } from "./tool-images-
|
|
1
|
+
import { c as detectMime } from "./image-ops-CSs8oYrR.js";
|
|
2
|
+
import { r as sanitizeToolResultImages } from "./tool-images-BOZsvFJ9.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-CVmydYhZ.js";
|
|
2
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-CSs8oYrR.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media/base64.ts
|
|
5
5
|
function estimateBase64DecodedBytes(base64) {
|
|
@@ -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-BRjuJbbM.js";
|
|
2
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-DCpyia_K.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-aGRLvQx9.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-BRjuJbbM.js";
|
|
3
|
+
import { C as isPlainObject } from "./utils-BFZnl-5N.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
|
|
6
6
|
//#region src/agents/tool-loop-detection.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./paths-De1_4l4O.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { C as isPlainObject } from "./utils-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CVmydYhZ.js";
|
|
3
|
+
import { C as isPlainObject } from "./utils-CM9uSTVd.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
|
|
6
6
|
//#region src/agents/tool-loop-detection.ts
|
|
@@ -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-aGRLvQx9.js";
|
|
2
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-BRjuJbbM.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
|
|
|
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 syncFs.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 syncFs.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 = syncFs.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,5 +1,5 @@
|
|
|
1
1
|
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir, u as resolveEffectiveHomeDir } from "./paths-De1_4l4O.js";
|
|
2
|
-
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-
|
|
2
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-CVmydYhZ.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import syncFs from "node:fs";
|
|
5
5
|
import os from "node:os";
|
|
@@ -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-C6hps0r3.js";
|
|
2
|
+
import "./paths-aGRLvQx9.js";
|
|
3
|
+
import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-BRjuJbbM.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-BFZnl-5N.js";
|
|
6
|
+
import "./workspace-D6mrCnXi.js";
|
|
7
|
+
import "./logger-BlH5MJiV.js";
|
|
8
|
+
import { H as loadConfig } from "./model-selection-D_Si2Ict.js";
|
|
9
|
+
import "./github-copilot-token-DLGN-8YS.js";
|
|
10
|
+
import { n as formatCliCommand } from "./env-DNMZEG57.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-yQe6H47q.js";
|
|
13
|
+
import "./registry-CJCkqTms.js";
|
|
14
|
+
import { a as resolveChannelGroupRequireMention, i as resolveChannelGroupPolicy } from "./dock-Cr9V9V1V.js";
|
|
15
|
+
import "./tokens-B9EDT4jv.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-DE3hb87F.js";
|
|
17
|
+
import "./plugins-CJoaoIHc.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-ubG6irXZ.js";
|
|
19
|
+
import "./bindings-CsIiIjqN.js";
|
|
20
|
+
import "./send-B4pSMBHk.js";
|
|
21
|
+
import "./send-V3fEVmLq.js";
|
|
22
|
+
import "./deliver-xY3h9X6N.js";
|
|
23
|
+
import "./diagnostic-BO1GQJJf.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 "./pi-model-discovery-
|
|
29
|
-
import "./message-channel-
|
|
30
|
-
import "./pi-embedded-helpers-
|
|
31
|
-
import "./chrome-
|
|
32
|
-
import "./frontmatter-
|
|
33
|
-
import "./skills-
|
|
34
|
-
import "./path-alias-guards-
|
|
35
|
-
import "./redact-
|
|
36
|
-
import "./errors-
|
|
37
|
-
import "./fs-safe-
|
|
38
|
-
import "./proxy-env-
|
|
39
|
-
import { i as saveMediaBuffer } from "./store-
|
|
40
|
-
import { G as resolveGroupSessionKey, c as recordSessionMetaFromInbound, l as updateLastRoute, o as loadSessionStore } from "./sessions-
|
|
41
|
-
import "./accounts-
|
|
42
|
-
import { s as resolveStorePath } from "./paths-
|
|
43
|
-
import "./tool-images-
|
|
25
|
+
import "./accounts-BTexwKe8.js";
|
|
26
|
+
import { X as formatLocationText, Z as toLocationContext, tt as upsertChannelPairingRequest } from "./send-BqKSZyIb.js";
|
|
27
|
+
import "./image-ops-DCpyia_K.js";
|
|
28
|
+
import "./pi-model-discovery-DCIw1y1c.js";
|
|
29
|
+
import "./message-channel-Dl8dSs0T.js";
|
|
30
|
+
import "./pi-embedded-helpers-CMTVhLjq.js";
|
|
31
|
+
import "./chrome-CjTE-vWv.js";
|
|
32
|
+
import "./frontmatter-DIRc-IR1.js";
|
|
33
|
+
import "./skills-DMmr25nW.js";
|
|
34
|
+
import "./path-alias-guards-CKjKIhQ3.js";
|
|
35
|
+
import "./redact-ScShueoF.js";
|
|
36
|
+
import "./errors-DEkWxItM.js";
|
|
37
|
+
import "./fs-safe-D8x_nIIA.js";
|
|
38
|
+
import "./proxy-env-BnDt8j9F.js";
|
|
39
|
+
import { i as saveMediaBuffer } from "./store-C8KgeMt2.js";
|
|
40
|
+
import { G as resolveGroupSessionKey, c as recordSessionMetaFromInbound, l as updateLastRoute, o as loadSessionStore } from "./sessions-CA_BydGA.js";
|
|
41
|
+
import "./accounts-CFz9Jc5d.js";
|
|
42
|
+
import { s as resolveStorePath } from "./paths-Cpu0XgUj.js";
|
|
43
|
+
import "./tool-images-ffdfBx0b.js";
|
|
44
44
|
import "./thinking-FnAYAFD8.js";
|
|
45
|
-
import "./image-
|
|
46
|
-
import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
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-
|
|
45
|
+
import "./image-DCyaYY2d.js";
|
|
46
|
+
import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-DaoqvWoi.js";
|
|
47
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch--iXu7oa7.js";
|
|
48
|
+
import "./fetch-guard-CNvY0vzQ.js";
|
|
49
|
+
import "./api-key-rotation-WzOC5dTW.js";
|
|
50
|
+
import "./proxy-fetch-xlbVQYN_.js";
|
|
51
|
+
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-DK1i6bCJ.js";
|
|
52
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-DtYb6TYl.js";
|
|
53
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
|
|
54
|
+
import { a as loadWebMedia } from "./ir-BZUjdf-6.js";
|
|
55
55
|
import "./render-flG67HhW.js";
|
|
56
|
-
import "./target-errors-
|
|
57
|
-
import "./commands-registry-
|
|
58
|
-
import "./skill-commands-
|
|
56
|
+
import "./target-errors-B9Jzop3d.js";
|
|
57
|
+
import "./commands-registry-NIsv9Z4R.js";
|
|
58
|
+
import "./skill-commands-CZFmIM-s.js";
|
|
59
59
|
import { t as finalizeInboundContext } from "./inbound-context-D4jdbLFJ.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-DTeP7C3h.js";
|
|
62
|
+
import { n as recordChannelActivity } from "./channel-activity-D81g48kD.js";
|
|
63
|
+
import { t as convertMarkdownTables } from "./tables-BKnPZssn.js";
|
|
64
|
+
import "./send-CN0f1Yst.js";
|
|
65
|
+
import "./outbound-attachment-C7sJLSnv.js";
|
|
66
|
+
import "./send-XAO1mk64.js";
|
|
67
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-C5hVstLo.js";
|
|
68
|
+
import { r as setActiveWebListener } from "./active-listener-Hd9sOu9T.js";
|
|
69
|
+
import "./proxy-DfJJLvch.js";
|
|
70
|
+
import "./replies-BFYGUEKu.js";
|
|
71
|
+
import "./session-meta-Cqv55kSk.js";
|
|
72
|
+
import "./manager-BNuB9clC.js";
|
|
73
|
+
import "./query-expansion-CGnW4Mk_.js";
|
|
74
|
+
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-DOVV_R6m.js";
|
|
75
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-xKPVUYQP.js";
|
|
76
|
+
import { t as loginWeb } from "./login-CgEHUE7h.js";
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
79
79
|
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
1
|
+
import "./agent-scope-BV1a5xUb.js";
|
|
2
2
|
import "./paths-De1_4l4O.js";
|
|
3
|
-
import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-
|
|
3
|
+
import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-CVmydYhZ.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 "./logger-
|
|
7
|
-
import { V as loadConfig } from "./model-selection-
|
|
8
|
-
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
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-CM9uSTVd.js";
|
|
6
|
+
import "./logger-9KuF7Fqb.js";
|
|
7
|
+
import { V as loadConfig } from "./model-selection-D5OFBCTr.js";
|
|
8
|
+
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-BDSRMl8C.js";
|
|
9
9
|
import "./github-copilot-token-CwIS0zs9.js";
|
|
10
|
-
import { r as formatCliCommand } from "./env-
|
|
11
|
-
import "./registry-
|
|
12
|
-
import { a as resolveChannelGroupRequireMention, i as resolveChannelGroupPolicy } from "./dock-
|
|
13
|
-
import "./tokens-
|
|
14
|
-
import { A as shouldComputeCommandAuthorized, C as createDedupeCache, D as formatDurationPrecise, E as parseActivationCommand, M as normalizeMentionText, O as enqueueSystemEvent, S as formatInboundEnvelope, T as normalizeGroupActivation, _ as shouldAckReactionForWhatsApp, a as buildPairingReply, b as createInboundDebouncer, c as buildHistoryContextFromEntries, d as resolveOpenProviderRuntimeGroupPolicy, f as warnMissingProviderGroupPolicyFallbackOnce, g as resolvePinnedMainDmOwnerFromAllowlist, h as resolveDmGroupAccessWithLists, i as sleepWithAbort, j as buildMentionRegexes, k as hasControlCommand, l as recordPendingHistoryEntryIfEnabled, m as resolveDmGroupAccessWithCommandGate, n as resolveInboundSessionEnvelopeContext, o as resolveMentionGating, p as readStoreAllowFromForDmPolicy, r as computeBackoff, s as DEFAULT_GROUP_HISTORY_LIMIT, u as resolveDefaultGroupPolicy, v as dispatchReplyWithBufferedBlockDispatcher, w as getReplyFromConfig, x as resolveInboundDebounceMs } from "./pi-embedded-
|
|
15
|
-
import "./plugins-
|
|
16
|
-
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-
|
|
17
|
-
import "./bindings-
|
|
18
|
-
import "./send-
|
|
19
|
-
import "./send-
|
|
20
|
-
import "./deliver-
|
|
21
|
-
import "./diagnostic-
|
|
10
|
+
import { r as formatCliCommand } from "./env-zky96nK6.js";
|
|
11
|
+
import "./registry-BOq-EU8K.js";
|
|
12
|
+
import { a as resolveChannelGroupRequireMention, i as resolveChannelGroupPolicy } from "./dock-L5TLZmhV.js";
|
|
13
|
+
import "./tokens-2c_yMaYC.js";
|
|
14
|
+
import { A as shouldComputeCommandAuthorized, C as createDedupeCache, D as formatDurationPrecise, E as parseActivationCommand, M as normalizeMentionText, O as enqueueSystemEvent, S as formatInboundEnvelope, T as normalizeGroupActivation, _ as shouldAckReactionForWhatsApp, a as buildPairingReply, b as createInboundDebouncer, c as buildHistoryContextFromEntries, d as resolveOpenProviderRuntimeGroupPolicy, f as warnMissingProviderGroupPolicyFallbackOnce, g as resolvePinnedMainDmOwnerFromAllowlist, h as resolveDmGroupAccessWithLists, i as sleepWithAbort, j as buildMentionRegexes, k as hasControlCommand, l as recordPendingHistoryEntryIfEnabled, m as resolveDmGroupAccessWithCommandGate, n as resolveInboundSessionEnvelopeContext, o as resolveMentionGating, p as readStoreAllowFromForDmPolicy, r as computeBackoff, s as DEFAULT_GROUP_HISTORY_LIMIT, u as resolveDefaultGroupPolicy, v as dispatchReplyWithBufferedBlockDispatcher, w as getReplyFromConfig, x as resolveInboundDebounceMs } from "./pi-embedded-xCcmCTnf.js";
|
|
15
|
+
import "./plugins-BuQyooWr.js";
|
|
16
|
+
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-DYfFud2l.js";
|
|
17
|
+
import "./bindings-Cn3Pwuys.js";
|
|
18
|
+
import "./send-paWifUry.js";
|
|
19
|
+
import "./send-BpJIVMP0.js";
|
|
20
|
+
import "./deliver-Dyh8ZsLI.js";
|
|
21
|
+
import "./diagnostic-Co8pKHgV.js";
|
|
22
22
|
import "./diagnostic-session-state-iIgQ4O9h.js";
|
|
23
|
-
import "./accounts-
|
|
24
|
-
import { X as formatLocationText, Z as toLocationContext, tt as upsertChannelPairingRequest } from "./send-
|
|
25
|
-
import "./image-ops-
|
|
26
|
-
import "./pi-model-discovery-
|
|
27
|
-
import "./message-channel-
|
|
28
|
-
import "./pi-embedded-helpers-
|
|
29
|
-
import "./chrome-
|
|
30
|
-
import "./skills-
|
|
31
|
-
import "./path-alias-guards-
|
|
32
|
-
import "./redact-
|
|
33
|
-
import "./errors-
|
|
34
|
-
import "./fs-safe-
|
|
35
|
-
import "./proxy-env-
|
|
36
|
-
import { i as saveMediaBuffer } from "./store-
|
|
37
|
-
import { K as resolveGroupSessionKey, c as recordSessionMetaFromInbound, o as loadSessionStore, u as updateLastRoute } from "./sessions-
|
|
38
|
-
import "./accounts-
|
|
23
|
+
import "./accounts-BvAUwnNS.js";
|
|
24
|
+
import { X as formatLocationText, Z as toLocationContext, tt as upsertChannelPairingRequest } from "./send-CIQavYDH.js";
|
|
25
|
+
import "./image-ops-CSs8oYrR.js";
|
|
26
|
+
import "./pi-model-discovery-DpYZ-y1X.js";
|
|
27
|
+
import "./message-channel-B1_JjaQ_.js";
|
|
28
|
+
import "./pi-embedded-helpers-Bmj18lhA.js";
|
|
29
|
+
import "./chrome-CuMCXCQN.js";
|
|
30
|
+
import "./skills-Z-lrvzqS.js";
|
|
31
|
+
import "./path-alias-guards-BaYeiedF.js";
|
|
32
|
+
import "./redact-b4XSqAVh.js";
|
|
33
|
+
import "./errors-Dt6Q4949.js";
|
|
34
|
+
import "./fs-safe-DkXQKmLV.js";
|
|
35
|
+
import "./proxy-env-2PDGuovA.js";
|
|
36
|
+
import { i as saveMediaBuffer } from "./store-DzT4cJNJ.js";
|
|
37
|
+
import { K as resolveGroupSessionKey, c as recordSessionMetaFromInbound, o as loadSessionStore, u as updateLastRoute } from "./sessions-BXwugIi3.js";
|
|
38
|
+
import "./accounts-B1Ev8y2Q.js";
|
|
39
39
|
import { s as resolveStorePath } from "./paths-BmEQm4ho.js";
|
|
40
|
-
import "./tool-images-
|
|
40
|
+
import "./tool-images-BOZsvFJ9.js";
|
|
41
41
|
import "./thinking-kXAj2UX9.js";
|
|
42
|
-
import "./image-
|
|
43
|
-
import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
44
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
45
|
-
import "./fetch-guard-
|
|
46
|
-
import "./api-key-rotation-
|
|
47
|
-
import "./proxy-fetch-
|
|
48
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
49
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
50
|
-
import { a as loadWebMedia } from "./ir-
|
|
42
|
+
import "./image-DihIv8Eo.js";
|
|
43
|
+
import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-DwWOJBSn.js";
|
|
44
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-BfCWv6tx.js";
|
|
45
|
+
import "./fetch-guard-DfeA6yKv.js";
|
|
46
|
+
import "./api-key-rotation-Bcht0XFN.js";
|
|
47
|
+
import "./proxy-fetch-fN-NLyCx.js";
|
|
48
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-CJxSBMow.js";
|
|
49
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-ChcK0mrw.js";
|
|
50
|
+
import { a as loadWebMedia } from "./ir-D805RkIy.js";
|
|
51
51
|
import "./render-DIvHuHqk.js";
|
|
52
|
-
import "./target-errors-
|
|
53
|
-
import "./commands-registry-
|
|
54
|
-
import "./skill-commands-
|
|
52
|
+
import "./target-errors-BPINy_1M.js";
|
|
53
|
+
import "./commands-registry-sN7UY9o6.js";
|
|
54
|
+
import "./skill-commands-DfX4Z2l_.js";
|
|
55
55
|
import { t as finalizeInboundContext } from "./inbound-context-Jol-RpNX.js";
|
|
56
56
|
import "./fetch-C7rJ-pyI.js";
|
|
57
|
-
import "./retry-
|
|
58
|
-
import { n as recordChannelActivity } from "./channel-activity-
|
|
59
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
60
|
-
import "./send-
|
|
61
|
-
import "./outbound-attachment-
|
|
62
|
-
import "./send-
|
|
63
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
64
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
65
|
-
import "./proxy-
|
|
66
|
-
import "./replies-
|
|
67
|
-
import "./session-meta-
|
|
68
|
-
import "./manager-
|
|
69
|
-
import "./query-expansion-
|
|
70
|
-
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
71
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
72
|
-
import { t as loginWeb } from "./login-
|
|
57
|
+
import "./retry-CqXTCn07.js";
|
|
58
|
+
import { n as recordChannelActivity } from "./channel-activity-BFQ7OM6W.js";
|
|
59
|
+
import { t as convertMarkdownTables } from "./tables-DAQMuyH8.js";
|
|
60
|
+
import "./send-BSw60pEI.js";
|
|
61
|
+
import "./outbound-attachment-Bnm1vH9k.js";
|
|
62
|
+
import "./send-DrLGfHcu.js";
|
|
63
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-CeAUOHqF.js";
|
|
64
|
+
import { r as setActiveWebListener } from "./active-listener-CTS8r9of.js";
|
|
65
|
+
import "./proxy-DuIUyAbU.js";
|
|
66
|
+
import "./replies-CRQL_9_u.js";
|
|
67
|
+
import "./session-meta-B56tnXvx.js";
|
|
68
|
+
import "./manager-BwSA683a.js";
|
|
69
|
+
import "./query-expansion-Bxi0ZwK0.js";
|
|
70
|
+
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-B9pGRwxd.js";
|
|
71
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-BrRIoGdv.js";
|
|
72
|
+
import { t as loginWeb } from "./login-CrT31QVq.js";
|
|
73
73
|
import { randomUUID } from "node:crypto";
|
|
74
74
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
75
75
|
|
|
@@ -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-C6hps0r3.js";
|
|
2
|
+
import "./paths-aGRLvQx9.js";
|
|
3
|
+
import "./subsystem-BRjuJbbM.js";
|
|
4
|
+
import "./utils-BFZnl-5N.js";
|
|
5
|
+
import "./workspace-D6mrCnXi.js";
|
|
6
|
+
import "./logger-BlH5MJiV.js";
|
|
7
|
+
import "./model-selection-D_Si2Ict.js";
|
|
8
|
+
import "./github-copilot-token-DLGN-8YS.js";
|
|
9
|
+
import "./env-DNMZEG57.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-yQe6H47q.js";
|
|
12
|
+
import "./registry-CJCkqTms.js";
|
|
13
|
+
import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-CJoaoIHc.js";
|
|
14
|
+
import { n as resolveWhatsAppAccount } from "./accounts-ubG6irXZ.js";
|
|
15
|
+
import "./bindings-CsIiIjqN.js";
|
|
16
|
+
import "./image-ops-DCpyia_K.js";
|
|
17
|
+
import "./message-channel-Dl8dSs0T.js";
|
|
18
|
+
import "./path-alias-guards-CKjKIhQ3.js";
|
|
19
|
+
import "./fs-safe-D8x_nIIA.js";
|
|
20
|
+
import "./proxy-env-BnDt8j9F.js";
|
|
21
|
+
import "./tool-images-ffdfBx0b.js";
|
|
22
|
+
import "./fetch--iXu7oa7.js";
|
|
23
|
+
import "./fetch-guard-CNvY0vzQ.js";
|
|
24
|
+
import "./chunk-DtYb6TYl.js";
|
|
25
|
+
import "./markdown-tables-BHONoo6S.js";
|
|
26
|
+
import "./ir-BZUjdf-6.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-B9Jzop3d.js";
|
|
29
|
+
import "./tables-BKnPZssn.js";
|
|
30
|
+
import { r as sendReactionWhatsApp } from "./outbound-DOVV_R6m.js";
|
|
31
31
|
|
|
32
32
|
//#region src/whatsapp/resolve-outbound-target.ts
|
|
33
33
|
function resolveWhatsAppOutboundTarget(params) {
|