@bitseek/claw 1.1.0-beta.2 → 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-CX1yOBOk.js → accounts-BTexwKe8.js} +1 -1
- package/dist/{accounts-DZqwa5NK.js → accounts-CFz9Jc5d.js} +1 -1
- package/dist/{accounts-CaiECgq3.js → accounts-ubG6irXZ.js} +16 -16
- package/dist/{active-listener-neKWQsOO.js → active-listener-Hd9sOu9T.js} +1 -1
- package/dist/{agent-scope-CTbRzU1C.js → agent-scope-C6hps0r3.js} +4 -4
- package/dist/{api-key-rotation-BTSy5kZN.js → api-key-rotation-WzOC5dTW.js} +2 -2
- package/dist/{audio-preflight-DZWb0ozj.js → audio-preflight-BWOdDA2n.js} +39 -39
- package/dist/{audio-transcription-runner-2dp0SxL3.js → audio-transcription-runner-DaoqvWoi.js} +11 -11
- 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-Btz1t5_1.js → channel-activity-D81g48kD.js} +3 -3
- package/dist/{chrome-DX1blHAJ.js → chrome-CjTE-vWv.js} +18 -18
- package/dist/{chunk-DEkdXze6.js → chunk-DtYb6TYl.js} +1 -1
- package/dist/{commands-registry-BQkQRhEo.js → commands-registry-NIsv9Z4R.js} +5 -5
- package/dist/{deliver-C82Egs0W.js → deliver-xY3h9X6N.js} +22 -22
- package/dist/{diagnostic-DpOlXoSr.js → diagnostic-BO1GQJJf.js} +2 -2
- package/dist/{dock-DWqb4ufG.js → dock-Cr9V9V1V.js} +6 -6
- package/dist/{env-Bn6pmvjK.js → env-DNMZEG57.js} +2 -2
- package/dist/{errors-azBrKJmF.js → errors-DEkWxItM.js} +1 -1
- package/dist/{fetch-B82CeaHJ.js → fetch--iXu7oa7.js} +5 -5
- package/dist/{fetch-guard-CCLWHwu7.js → fetch-guard-CNvY0vzQ.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/{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-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-BODD8g-I.js → ir-BZUjdf-6.js} +6 -6
- package/dist/llm-slug-generator.js +65 -65
- package/dist/{logger-DelEB7MK.js → logger-BlH5MJiV.js} +1 -1
- package/dist/{login-Cm2zDfEU.js → login-CgEHUE7h.js} +6 -6
- package/dist/{login-qr-iS1jPDpP.js → login-qr-DUJfhbUe.js} +13 -13
- package/dist/{manager-DdzkWOvc.js → manager-BNuB9clC.js} +15 -15
- package/dist/{markdown-tables-pfs_NCNh.js → markdown-tables-BHONoo6S.js} +1 -1
- package/dist/{message-channel-POuk6EOq.js → message-channel-Dl8dSs0T.js} +1 -1
- package/dist/{model-selection-DfZMxaX3.js → model-selection-D_Si2Ict.js} +44 -44
- package/dist/{outbound-4q4mbU-Z.js → outbound-DOVV_R6m.js} +7 -7
- package/dist/{outbound-attachment-CBCp1oVQ.js → outbound-attachment-C7sJLSnv.js} +2 -2
- 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-CuwhW4u9.js → pi-embedded-helpers-CMTVhLjq.js} +29 -29
- package/dist/{pi-model-discovery-COjkql-U.js → pi-model-discovery-DCIw1y1c.js} +7 -7
- package/dist/{plugins-D63QYxW6.js → plugins-CJoaoIHc.js} +11 -11
- package/dist/{proxy-jINniQBi.js → proxy-DfJJLvch.js} +1 -1
- package/dist/{proxy-env-vYAjKL5q.js → proxy-env-BnDt8j9F.js} +1 -1
- package/dist/{proxy-fetch-AvkSvetA.js → proxy-fetch-xlbVQYN_.js} +1 -1
- package/dist/{pw-ai-BLNiRUPI.js → pw-ai-DGwA7iCM.js} +17 -17
- package/dist/{qmd-manager-BBKfRzj-.js → qmd-manager-CeN3N992.js} +11 -11
- package/dist/{query-expansion-2BrixCA2.js → query-expansion-CGnW4Mk_.js} +5 -5
- package/dist/{redact-uUggP88O.js → redact-ScShueoF.js} +1 -1
- package/dist/{registry-C2GEGa2t.js → registry-CJCkqTms.js} +3 -3
- package/dist/{replies-yAf6dFeT.js → replies-BFYGUEKu.js} +3 -3
- package/dist/{reply-prefix-9mzt89Cf.js → reply-prefix-DK1i6bCJ.js} +1 -1
- package/dist/{resolve-route-BNElrVxR.js → resolve-route-C5hVstLo.js} +4 -4
- package/dist/{retry-Ayb7e4XG.js → retry-DTeP7C3h.js} +1 -1
- package/dist/{send-Bclgg0Ur.js → send-B4pSMBHk.js} +8 -8
- package/dist/{send-Bjaa69Cy.js → send-BqKSZyIb.js} +27 -27
- package/dist/{send-DYY51FOR.js → send-CN0f1Yst.js} +6 -6
- package/dist/{send-Cp0yQi_p.js → send-V3fEVmLq.js} +10 -10
- package/dist/{send-DQ7hIAIK.js → send-XAO1mk64.js} +7 -7
- 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-3jroJwu7.js → sessions-CA_BydGA.js} +31 -31
- package/dist/{skill-commands-CSr9_48V.js → skill-commands-CZFmIM-s.js} +9 -9
- package/dist/{skills-B82IjVxn.js → skills-DMmr25nW.js} +22 -22
- package/dist/{store-DhC72KqW.js → store-C8KgeMt2.js} +2 -2
- package/dist/{subsystem-CAatx5oo.js → subsystem-BRjuJbbM.js} +14 -14
- package/dist/{tables-Bfh_TnCf.js → tables-BKnPZssn.js} +1 -1
- package/dist/{target-errors-CGYXYvSZ.js → target-errors-B9Jzop3d.js} +2 -2
- package/dist/{tokens-BvzZdrVJ.js → tokens-B9EDT4jv.js} +1 -1
- package/dist/{tool-images-CqsWnc1k.js → tool-images-ffdfBx0b.js} +2 -2
- package/dist/{tool-loop-detection-C4V990MS.js → tool-loop-detection-CLoYKYIq.js} +3 -3
- package/dist/{utils-Bo1RFF0l.js → utils-BFZnl-5N.js} +6 -6
- package/dist/{web-DsAoa63g.js → web-B2_c07KN.js} +69 -69
- package/dist/{whatsapp-actions-DXjy9m41.js → whatsapp-actions-CHt12z-f.js} +28 -28
- package/dist/{workspace-CswOYN9T.js → workspace-D6mrCnXi.js} +21 -21
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
2
|
-
import { t as CONFIG_DIR } from "./utils-
|
|
3
|
-
import { A as isPathInside, k as isNotFoundPathError } from "./workspace-
|
|
4
|
-
import { H as loadConfig, ht as normalizeIpAddress, mt as isPrivateOrLoopbackIpAddress, pt as isLoopbackIpAddress } from "./model-selection-
|
|
5
|
-
import { a as isErrno } from "./errors-
|
|
6
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
7
|
-
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-BRjuJbbM.js";
|
|
2
|
+
import { t as CONFIG_DIR } from "./utils-BFZnl-5N.js";
|
|
3
|
+
import { A as isPathInside, k as isNotFoundPathError } from "./workspace-D6mrCnXi.js";
|
|
4
|
+
import { H as loadConfig, ht as normalizeIpAddress, mt as isPrivateOrLoopbackIpAddress, pt as isLoopbackIpAddress } from "./model-selection-D_Si2Ict.js";
|
|
5
|
+
import { a as isErrno } from "./errors-DEkWxItM.js";
|
|
6
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-D8x_nIIA.js";
|
|
7
|
+
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-BnDt8j9F.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import syncFs from "node:fs";
|
|
12
12
|
import { execFileSync, spawn } from "node:child_process";
|
|
13
13
|
import { createHmac } from "node:crypto";
|
|
14
14
|
import net from "node:net";
|
|
@@ -1595,7 +1595,7 @@ const CHROMIUM_EXE_NAMES = new Set([
|
|
|
1595
1595
|
]);
|
|
1596
1596
|
function exists$1(filePath) {
|
|
1597
1597
|
try {
|
|
1598
|
-
return
|
|
1598
|
+
return syncFs.existsSync(filePath);
|
|
1599
1599
|
} catch {
|
|
1600
1600
|
return false;
|
|
1601
1601
|
}
|
|
@@ -1738,7 +1738,7 @@ function findDesktopFilePath(desktopId) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
function readDesktopExecLine(desktopPath) {
|
|
1740
1740
|
try {
|
|
1741
|
-
const lines =
|
|
1741
|
+
const lines = syncFs.readFileSync(desktopPath, "utf8").split(/\r?\n/);
|
|
1742
1742
|
for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
|
|
1743
1743
|
} catch {}
|
|
1744
1744
|
return null;
|
|
@@ -1996,7 +1996,7 @@ function resolveBrowserExecutableForPlatform(resolved, platform) {
|
|
|
1996
1996
|
const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
|
|
1997
1997
|
function resolveLsofCommandSync() {
|
|
1998
1998
|
for (const candidate of LSOF_CANDIDATES) try {
|
|
1999
|
-
|
|
1999
|
+
syncFs.accessSync(candidate, syncFs.constants.X_OK);
|
|
2000
2000
|
return candidate;
|
|
2001
2001
|
} catch {}
|
|
2002
2002
|
return "lsof";
|
|
@@ -2041,8 +2041,8 @@ function decoratedMarkerPath(userDataDir) {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
function safeReadJson(filePath) {
|
|
2043
2043
|
try {
|
|
2044
|
-
if (!
|
|
2045
|
-
const raw =
|
|
2044
|
+
if (!syncFs.existsSync(filePath)) return null;
|
|
2045
|
+
const raw = syncFs.readFileSync(filePath, "utf-8");
|
|
2046
2046
|
const parsed = JSON.parse(raw);
|
|
2047
2047
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
2048
2048
|
return parsed;
|
|
@@ -2051,8 +2051,8 @@ function safeReadJson(filePath) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
2053
|
function safeWriteJson(filePath, data) {
|
|
2054
|
-
|
|
2055
|
-
|
|
2054
|
+
syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
2055
|
+
syncFs.writeFileSync(filePath, JSON.stringify(data, null, 2));
|
|
2056
2056
|
}
|
|
2057
2057
|
function setDeep(obj, keys, value) {
|
|
2058
2058
|
let node = obj;
|
|
@@ -2179,7 +2179,7 @@ function decorateOpenClawProfile(userDataDir, opts) {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
safeWriteJson(preferencesPath, prefs);
|
|
2181
2181
|
try {
|
|
2182
|
-
|
|
2182
|
+
syncFs.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
|
|
2183
2183
|
} catch {}
|
|
2184
2184
|
}
|
|
2185
2185
|
function ensureProfileCleanExit(userDataDir) {
|
|
@@ -2195,7 +2195,7 @@ function ensureProfileCleanExit(userDataDir) {
|
|
|
2195
2195
|
const log = createSubsystemLogger("browser").child("chrome");
|
|
2196
2196
|
function exists(filePath) {
|
|
2197
2197
|
try {
|
|
2198
|
-
return
|
|
2198
|
+
return syncFs.existsSync(filePath);
|
|
2199
2199
|
} catch {
|
|
2200
2200
|
return false;
|
|
2201
2201
|
}
|
|
@@ -2293,7 +2293,7 @@ async function launchOpenClawChrome(resolved, profile) {
|
|
|
2293
2293
|
const exe = resolveBrowserExecutable(resolved);
|
|
2294
2294
|
if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
|
|
2295
2295
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
2296
|
-
|
|
2296
|
+
syncFs.mkdirSync(userDataDir, { recursive: true });
|
|
2297
2297
|
const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_OPENCLAW_BROWSER_COLOR).toUpperCase());
|
|
2298
2298
|
const spawnOnce = () => {
|
|
2299
2299
|
const args = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { m as normalizeAccountId } from "./session-key-a6av96Fj.js";
|
|
3
3
|
import { t as resolveAccountEntry } from "./account-lookup-JrULBwdR.js";
|
|
4
|
-
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-
|
|
4
|
+
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-Dl8dSs0T.js";
|
|
5
5
|
|
|
6
6
|
//#region src/markdown/fences.ts
|
|
7
7
|
function parseFenceSpans(buffer) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { C as isPlainObject, o as escapeRegExp } from "./utils-
|
|
3
|
-
import { Bn as DEFAULT_PROVIDER, u as resolveConfiguredModelRef, zn as DEFAULT_MODEL } from "./model-selection-
|
|
4
|
-
import { c as getActivePluginRegistry } from "./registry-
|
|
5
|
-
import { n as listChannelDocks } from "./dock-
|
|
6
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
2
|
+
import { C as isPlainObject, o as escapeRegExp } from "./utils-BFZnl-5N.js";
|
|
3
|
+
import { Bn as DEFAULT_PROVIDER, u as resolveConfiguredModelRef, zn as DEFAULT_MODEL } from "./model-selection-D_Si2Ict.js";
|
|
4
|
+
import { c as getActivePluginRegistry } from "./registry-CJCkqTms.js";
|
|
5
|
+
import { n as listChannelDocks } from "./dock-Cr9V9V1V.js";
|
|
6
|
+
import { r as normalizeChannelId } from "./plugins-CJoaoIHc.js";
|
|
7
7
|
import { r as listThinkingLevels } from "./thinking-FnAYAFD8.js";
|
|
8
8
|
|
|
9
9
|
//#region src/config/commands.ts
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
2
|
+
import { c as resolveStateDir } from "./paths-aGRLvQx9.js";
|
|
3
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-BRjuJbbM.js";
|
|
4
4
|
import { h as normalizeOptionalAccountId, m as normalizeAccountId } from "./session-key-a6av96Fj.js";
|
|
5
|
-
import { a as triggerInternalHook, t as createInternalHookEvent } from "./internal-hooks-
|
|
6
|
-
import { c as getActivePluginRegistry, u as getActivePluginRegistryVersion } from "./registry-
|
|
7
|
-
import { t as getChannelDock } from "./dock-
|
|
8
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
9
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
5
|
+
import { a as triggerInternalHook, t as createInternalHookEvent } from "./internal-hooks-yQe6H47q.js";
|
|
6
|
+
import { c as getActivePluginRegistry, u as getActivePluginRegistryVersion } from "./registry-CJCkqTms.js";
|
|
7
|
+
import { t as getChannelDock } from "./dock-Cr9V9V1V.js";
|
|
8
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-B9EDT4jv.js";
|
|
9
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CJoaoIHc.js";
|
|
10
10
|
import { n as generateSecureUuid } from "./secure-random-CY3Mg7Dp.js";
|
|
11
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
12
|
-
import { i as resolveMirroredTranscriptText, r as appendAssistantMessageToSessionTranscript, w as parseInlineDirectives } from "./sessions-
|
|
13
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch
|
|
14
|
-
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-
|
|
15
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
16
|
-
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
11
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-CMTVhLjq.js";
|
|
12
|
+
import { i as resolveMirroredTranscriptText, r as appendAssistantMessageToSessionTranscript, w as parseInlineDirectives } from "./sessions-CA_BydGA.js";
|
|
13
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch--iXu7oa7.js";
|
|
14
|
+
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-DtYb6TYl.js";
|
|
15
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
|
|
16
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-CN0f1Yst.js";
|
|
17
17
|
import path from "node:path";
|
|
18
|
-
import
|
|
18
|
+
import syncFs from "node:fs";
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/hooks.ts
|
|
21
21
|
/**
|
|
@@ -1054,11 +1054,11 @@ function resolveFailedDir(stateDir) {
|
|
|
1054
1054
|
/** Ensure the queue directory (and failed/ subdirectory) exist. */
|
|
1055
1055
|
async function ensureQueueDir(stateDir) {
|
|
1056
1056
|
const queueDir = resolveQueueDir(stateDir);
|
|
1057
|
-
await
|
|
1057
|
+
await syncFs.promises.mkdir(queueDir, {
|
|
1058
1058
|
recursive: true,
|
|
1059
1059
|
mode: 448
|
|
1060
1060
|
});
|
|
1061
|
-
await
|
|
1061
|
+
await syncFs.promises.mkdir(resolveFailedDir(stateDir), {
|
|
1062
1062
|
recursive: true,
|
|
1063
1063
|
mode: 448
|
|
1064
1064
|
});
|
|
@@ -1085,18 +1085,18 @@ async function enqueueDelivery(params, stateDir) {
|
|
|
1085
1085
|
const filePath = path.join(queueDir, `${id}.json`);
|
|
1086
1086
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
1087
1087
|
const json = JSON.stringify(entry, null, 2);
|
|
1088
|
-
await
|
|
1088
|
+
await syncFs.promises.writeFile(tmp, json, {
|
|
1089
1089
|
encoding: "utf-8",
|
|
1090
1090
|
mode: 384
|
|
1091
1091
|
});
|
|
1092
|
-
await
|
|
1092
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
1093
1093
|
return id;
|
|
1094
1094
|
}
|
|
1095
1095
|
/** Remove a successfully delivered entry from the queue. */
|
|
1096
1096
|
async function ackDelivery(id, stateDir) {
|
|
1097
1097
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
1098
1098
|
try {
|
|
1099
|
-
await
|
|
1099
|
+
await syncFs.promises.unlink(filePath);
|
|
1100
1100
|
} catch (err) {
|
|
1101
1101
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
|
|
1102
1102
|
}
|
|
@@ -1104,17 +1104,17 @@ async function ackDelivery(id, stateDir) {
|
|
|
1104
1104
|
/** Update a queue entry after a failed delivery attempt. */
|
|
1105
1105
|
async function failDelivery(id, error, stateDir) {
|
|
1106
1106
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
1107
|
-
const raw = await
|
|
1107
|
+
const raw = await syncFs.promises.readFile(filePath, "utf-8");
|
|
1108
1108
|
const entry = JSON.parse(raw);
|
|
1109
1109
|
entry.retryCount += 1;
|
|
1110
1110
|
entry.lastAttemptAt = Date.now();
|
|
1111
1111
|
entry.lastError = error;
|
|
1112
1112
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
1113
|
-
await
|
|
1113
|
+
await syncFs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
|
|
1114
1114
|
encoding: "utf-8",
|
|
1115
1115
|
mode: 384
|
|
1116
1116
|
});
|
|
1117
|
-
await
|
|
1117
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
1120
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { H as loadConfig } from "./model-selection-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-BRjuJbbM.js";
|
|
3
|
+
import { H as loadConfig } from "./model-selection-D_Si2Ict.js";
|
|
4
4
|
import { i as pruneDiagnosticSessionStates, r as getDiagnosticSessionState, t as diagnosticSessionStates } from "./diagnostic-session-state-DBPrVBk3.js";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/diagnostic-events.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { m as normalizeAccountId } from "./session-key-a6av96Fj.js";
|
|
2
|
-
import { d as normalizeE164, o as escapeRegExp } from "./utils-
|
|
3
|
-
import { d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, r as getChatChannelMeta } from "./registry-
|
|
4
|
-
import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, d as resolveSlackAccount, f as resolveSlackReplyToMode, l as resolveTelegramAccount } from "./plugins-
|
|
5
|
-
import { n as resolveWhatsAppAccount } from "./accounts-
|
|
2
|
+
import { d as normalizeE164, o as escapeRegExp } from "./utils-BFZnl-5N.js";
|
|
3
|
+
import { d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, r as getChatChannelMeta } from "./registry-CJCkqTms.js";
|
|
4
|
+
import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, d as resolveSlackAccount, f as resolveSlackReplyToMode, l as resolveTelegramAccount } from "./plugins-CJoaoIHc.js";
|
|
5
|
+
import { n as resolveWhatsAppAccount } from "./accounts-ubG6irXZ.js";
|
|
6
6
|
import { t as resolveAccountEntry } from "./account-lookup-JrULBwdR.js";
|
|
7
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
8
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
7
|
+
import { n as resolveSignalAccount } from "./accounts-BTexwKe8.js";
|
|
8
|
+
import { t as resolveIMessageAccount } from "./accounts-CFz9Jc5d.js";
|
|
9
9
|
|
|
10
10
|
//#region src/config/types.tools.ts
|
|
11
11
|
const TOOLS_BY_SENDER_KEY_TYPES = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as replaceCliName, p as resolveCliName } from "./paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { f as replaceCliName, p as resolveCliName } from "./paths-aGRLvQx9.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-BRjuJbbM.js";
|
|
3
3
|
import { t as parseBooleanValue } from "./boolean-mcn6kL0s.js";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/profile-utils.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
5
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
1
|
+
import { s as resolveAgentWorkspaceDir } from "./agent-scope-C6hps0r3.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-aGRLvQx9.js";
|
|
3
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-BRjuJbbM.js";
|
|
4
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-DCpyia_K.js";
|
|
5
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CNvY0vzQ.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/media/local-roots.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as logWarn } from "./logger-
|
|
2
|
-
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { i as logWarn } from "./logger-BlH5MJiV.js";
|
|
2
|
+
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-BnDt8j9F.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-CYFFedEH.js";
|
|
4
4
|
import { EnvHttpProxyAgent } from "undici";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as parseBooleanValue } from "./boolean-mcn6kL0s.js";
|
|
2
2
|
import { n as MANIFEST_KEY, t as LEGACY_MANIFEST_KEYS } from "./legacy-names-CaxS8pq2.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
import JSON5 from "json5";
|
|
6
6
|
import YAML from "yaml";
|
|
7
7
|
|
|
@@ -93,7 +93,7 @@ function hasBinary(bin) {
|
|
|
93
93
|
for (const part of parts) for (const ext of extensions) {
|
|
94
94
|
const candidate = path.join(part, bin + ext);
|
|
95
95
|
try {
|
|
96
|
-
|
|
96
|
+
syncFs.accessSync(candidate, syncFs.constants.X_OK);
|
|
97
97
|
hasBinaryCache.set(bin, true);
|
|
98
98
|
return true;
|
|
99
99
|
} catch {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as expandHomePrefix } from "./paths-
|
|
2
|
-
import { A as isPathInside, O as hasNodeErrorCode, j as isSymlinkOpenError, k as isNotFoundPathError, w as sameFileIdentity } from "./workspace-
|
|
3
|
-
import { i as logWarn } from "./logger-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { l as expandHomePrefix } from "./paths-aGRLvQx9.js";
|
|
2
|
+
import { A as isPathInside, O as hasNodeErrorCode, j as isSymlinkOpenError, k as isNotFoundPathError, w as sameFileIdentity } from "./workspace-D6mrCnXi.js";
|
|
3
|
+
import { i as logWarn } from "./logger-BlH5MJiV.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-CKjKIhQ3.js";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
+
import { c as resolveStateDir } from "./paths-aGRLvQx9.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/json-file.ts
|
|
7
7
|
function loadJsonFile(pathname) {
|
|
8
8
|
try {
|
|
9
|
-
if (!
|
|
10
|
-
const raw =
|
|
9
|
+
if (!syncFs.existsSync(pathname)) return;
|
|
10
|
+
const raw = syncFs.readFileSync(pathname, "utf8");
|
|
11
11
|
return JSON.parse(raw);
|
|
12
12
|
} catch {
|
|
13
13
|
return;
|
|
@@ -15,12 +15,12 @@ function loadJsonFile(pathname) {
|
|
|
15
15
|
}
|
|
16
16
|
function saveJsonFile(pathname, data) {
|
|
17
17
|
const dir = path.dirname(pathname);
|
|
18
|
-
if (!
|
|
18
|
+
if (!syncFs.existsSync(dir)) syncFs.mkdirSync(dir, {
|
|
19
19
|
recursive: true,
|
|
20
20
|
mode: 448
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
syncFs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
23
|
+
syncFs.chmodSync(pathname, 384);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { h as resolveAgentModelPrimaryValue, m as resolveAgentModelFallbackValues } from "./agent-scope-
|
|
3
|
-
import { _ as shortenHomeInString, c as isRecord } from "./utils-
|
|
4
|
-
import { D as getApiKeyForModel, H as loadConfig, In as normalizeSecretInput, _ as normalizeProviders, b as resolveImplicitProviders, gn as applyConfigEnvVars, k as requireApiKey, kn as resolveOpenClawAgentDir, v as resolveImplicitBedrockProvider, y as resolveImplicitCopilotProvider } from "./model-selection-
|
|
5
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
6
|
-
import { F as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
7
|
-
import { n as redactToolDetail } from "./redact-
|
|
2
|
+
import { h as resolveAgentModelPrimaryValue, m as resolveAgentModelFallbackValues } from "./agent-scope-C6hps0r3.js";
|
|
3
|
+
import { _ as shortenHomeInString, c as isRecord } from "./utils-BFZnl-5N.js";
|
|
4
|
+
import { D as getApiKeyForModel, H as loadConfig, In as normalizeSecretInput, _ as normalizeProviders, b as resolveImplicitProviders, gn as applyConfigEnvVars, k as requireApiKey, kn as resolveOpenClawAgentDir, v as resolveImplicitBedrockProvider, y as resolveImplicitCopilotProvider } from "./model-selection-D_Si2Ict.js";
|
|
5
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DCIw1y1c.js";
|
|
6
|
+
import { F as sanitizeUserFacingText } from "./pi-embedded-helpers-CMTVhLjq.js";
|
|
7
|
+
import { n as redactToolDetail } from "./redact-ScShueoF.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import { complete } from "@mariozechner/pi-ai";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-
|
|
2
|
-
import { h as resolveUserPath } from "./utils-
|
|
3
|
-
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-
|
|
4
|
-
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
5
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch
|
|
6
|
-
import { a as chunkText } from "./chunk-
|
|
1
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-BRjuJbbM.js";
|
|
2
|
+
import { h as resolveUserPath } from "./utils-BFZnl-5N.js";
|
|
3
|
+
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-DCpyia_K.js";
|
|
4
|
+
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-D8x_nIIA.js";
|
|
5
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch--iXu7oa7.js";
|
|
6
|
+
import { a as chunkText } from "./chunk-DtYb6TYl.js";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, i as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./utils-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./logger-
|
|
7
|
-
import { Bn as DEFAULT_PROVIDER, l as parseModelRef, zn as DEFAULT_MODEL } from "./model-selection-
|
|
8
|
-
import "./github-copilot-token-
|
|
9
|
-
import "./env-
|
|
1
|
+
import { a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, i as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-C6hps0r3.js";
|
|
2
|
+
import "./paths-aGRLvQx9.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BRjuJbbM.js";
|
|
4
|
+
import "./utils-BFZnl-5N.js";
|
|
5
|
+
import "./workspace-D6mrCnXi.js";
|
|
6
|
+
import "./logger-BlH5MJiV.js";
|
|
7
|
+
import { Bn as DEFAULT_PROVIDER, l as parseModelRef, zn as DEFAULT_MODEL } from "./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 "./dock-
|
|
14
|
-
import "./tokens-
|
|
15
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
16
|
-
import "./plugins-
|
|
17
|
-
import "./accounts-
|
|
18
|
-
import "./bindings-
|
|
19
|
-
import "./send-
|
|
20
|
-
import "./send-
|
|
21
|
-
import "./deliver-
|
|
22
|
-
import "./diagnostic-
|
|
11
|
+
import "./internal-hooks-yQe6H47q.js";
|
|
12
|
+
import "./registry-CJCkqTms.js";
|
|
13
|
+
import "./dock-Cr9V9V1V.js";
|
|
14
|
+
import "./tokens-B9EDT4jv.js";
|
|
15
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-DE3hb87F.js";
|
|
16
|
+
import "./plugins-CJoaoIHc.js";
|
|
17
|
+
import "./accounts-ubG6irXZ.js";
|
|
18
|
+
import "./bindings-CsIiIjqN.js";
|
|
19
|
+
import "./send-B4pSMBHk.js";
|
|
20
|
+
import "./send-V3fEVmLq.js";
|
|
21
|
+
import "./deliver-xY3h9X6N.js";
|
|
22
|
+
import "./diagnostic-BO1GQJJf.js";
|
|
23
23
|
import "./diagnostic-session-state-DBPrVBk3.js";
|
|
24
|
-
import "./accounts-
|
|
25
|
-
import "./send-
|
|
26
|
-
import "./image-ops-
|
|
27
|
-
import "./pi-model-discovery-
|
|
28
|
-
import "./message-channel-
|
|
29
|
-
import "./pi-embedded-helpers-
|
|
30
|
-
import "./chrome-
|
|
31
|
-
import "./frontmatter-
|
|
32
|
-
import "./skills-
|
|
33
|
-
import "./path-alias-guards-
|
|
34
|
-
import "./redact-
|
|
35
|
-
import "./errors-
|
|
36
|
-
import "./fs-safe-
|
|
37
|
-
import "./proxy-env-
|
|
38
|
-
import "./store-
|
|
39
|
-
import "./sessions-
|
|
40
|
-
import "./accounts-
|
|
41
|
-
import "./paths-
|
|
42
|
-
import "./tool-images-
|
|
24
|
+
import "./accounts-BTexwKe8.js";
|
|
25
|
+
import "./send-BqKSZyIb.js";
|
|
26
|
+
import "./image-ops-DCpyia_K.js";
|
|
27
|
+
import "./pi-model-discovery-DCIw1y1c.js";
|
|
28
|
+
import "./message-channel-Dl8dSs0T.js";
|
|
29
|
+
import "./pi-embedded-helpers-CMTVhLjq.js";
|
|
30
|
+
import "./chrome-CjTE-vWv.js";
|
|
31
|
+
import "./frontmatter-DIRc-IR1.js";
|
|
32
|
+
import "./skills-DMmr25nW.js";
|
|
33
|
+
import "./path-alias-guards-CKjKIhQ3.js";
|
|
34
|
+
import "./redact-ScShueoF.js";
|
|
35
|
+
import "./errors-DEkWxItM.js";
|
|
36
|
+
import "./fs-safe-D8x_nIIA.js";
|
|
37
|
+
import "./proxy-env-BnDt8j9F.js";
|
|
38
|
+
import "./store-C8KgeMt2.js";
|
|
39
|
+
import "./sessions-CA_BydGA.js";
|
|
40
|
+
import "./accounts-CFz9Jc5d.js";
|
|
41
|
+
import "./paths-Cpu0XgUj.js";
|
|
42
|
+
import "./tool-images-ffdfBx0b.js";
|
|
43
43
|
import "./thinking-FnAYAFD8.js";
|
|
44
|
-
import "./image-
|
|
45
|
-
import "./audio-transcription-runner-
|
|
46
|
-
import "./fetch
|
|
47
|
-
import "./fetch-guard-
|
|
48
|
-
import "./api-key-rotation-
|
|
49
|
-
import "./proxy-fetch-
|
|
50
|
-
import "./reply-prefix-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./markdown-tables-
|
|
53
|
-
import "./ir-
|
|
44
|
+
import "./image-DCyaYY2d.js";
|
|
45
|
+
import "./audio-transcription-runner-DaoqvWoi.js";
|
|
46
|
+
import "./fetch--iXu7oa7.js";
|
|
47
|
+
import "./fetch-guard-CNvY0vzQ.js";
|
|
48
|
+
import "./api-key-rotation-WzOC5dTW.js";
|
|
49
|
+
import "./proxy-fetch-xlbVQYN_.js";
|
|
50
|
+
import "./reply-prefix-DK1i6bCJ.js";
|
|
51
|
+
import "./chunk-DtYb6TYl.js";
|
|
52
|
+
import "./markdown-tables-BHONoo6S.js";
|
|
53
|
+
import "./ir-BZUjdf-6.js";
|
|
54
54
|
import "./render-flG67HhW.js";
|
|
55
|
-
import "./target-errors-
|
|
56
|
-
import "./commands-registry-
|
|
57
|
-
import "./skill-commands-
|
|
55
|
+
import "./target-errors-B9Jzop3d.js";
|
|
56
|
+
import "./commands-registry-NIsv9Z4R.js";
|
|
57
|
+
import "./skill-commands-CZFmIM-s.js";
|
|
58
58
|
import "./fetch-CIXnD4u2.js";
|
|
59
|
-
import "./retry-
|
|
60
|
-
import "./channel-activity-
|
|
61
|
-
import "./tables-
|
|
62
|
-
import "./send-
|
|
63
|
-
import "./outbound-attachment-
|
|
64
|
-
import "./send-
|
|
65
|
-
import "./resolve-route-
|
|
66
|
-
import "./proxy-
|
|
67
|
-
import "./replies-
|
|
68
|
-
import "./session-meta-
|
|
69
|
-
import "./manager-
|
|
70
|
-
import "./query-expansion-
|
|
59
|
+
import "./retry-DTeP7C3h.js";
|
|
60
|
+
import "./channel-activity-D81g48kD.js";
|
|
61
|
+
import "./tables-BKnPZssn.js";
|
|
62
|
+
import "./send-CN0f1Yst.js";
|
|
63
|
+
import "./outbound-attachment-C7sJLSnv.js";
|
|
64
|
+
import "./send-XAO1mk64.js";
|
|
65
|
+
import "./resolve-route-C5hVstLo.js";
|
|
66
|
+
import "./proxy-DfJJLvch.js";
|
|
67
|
+
import "./replies-BFYGUEKu.js";
|
|
68
|
+
import "./session-meta-Cqv55kSk.js";
|
|
69
|
+
import "./manager-BNuB9clC.js";
|
|
70
|
+
import "./query-expansion-CGnW4Mk_.js";
|
|
71
71
|
import fs from "node:fs/promises";
|
|
72
72
|
import os from "node:os";
|
|
73
73
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as getLogger, c as danger, d as logVerboseConsole, h as warn, i as defaultRuntime, l as info, t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { b as getLogger, c as danger, d as logVerboseConsole, h as warn, i as defaultRuntime, l as info, t as createSubsystemLogger } from "./subsystem-BRjuJbbM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/logger.ts
|
|
4
4
|
const subsystemPrefixRe = /^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-
|
|
3
|
-
import { r as logInfo } from "./logger-
|
|
4
|
-
import { H as loadConfig } from "./model-selection-
|
|
5
|
-
import { n as formatCliCommand } from "./env-
|
|
6
|
-
import { n as resolveWhatsAppAccount, o as logoutWeb } from "./accounts-
|
|
7
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
2
|
+
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-BRjuJbbM.js";
|
|
3
|
+
import { r as logInfo } from "./logger-BlH5MJiV.js";
|
|
4
|
+
import { H as loadConfig } from "./model-selection-D_Si2Ict.js";
|
|
5
|
+
import { n as formatCliCommand } from "./env-DNMZEG57.js";
|
|
6
|
+
import { n as resolveWhatsAppAccount, o as logoutWeb } from "./accounts-ubG6irXZ.js";
|
|
7
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-xKPVUYQP.js";
|
|
8
8
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
9
9
|
|
|
10
10
|
//#region src/web/login.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-
|
|
4
|
-
import "./utils-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import { r as logInfo } from "./logger-
|
|
7
|
-
import { H as loadConfig } from "./model-selection-
|
|
8
|
-
import "./github-copilot-token-
|
|
9
|
-
import "./env-
|
|
1
|
+
import "./agent-scope-C6hps0r3.js";
|
|
2
|
+
import "./paths-aGRLvQx9.js";
|
|
3
|
+
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-BRjuJbbM.js";
|
|
4
|
+
import "./utils-BFZnl-5N.js";
|
|
5
|
+
import "./workspace-D6mrCnXi.js";
|
|
6
|
+
import { r as logInfo } from "./logger-BlH5MJiV.js";
|
|
7
|
+
import { H as loadConfig } from "./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 { m as webAuthExists, n as resolveWhatsAppAccount, o as logoutWeb, u as readWebSelfId } from "./accounts-
|
|
14
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
11
|
+
import "./internal-hooks-yQe6H47q.js";
|
|
12
|
+
import "./registry-CJCkqTms.js";
|
|
13
|
+
import { m as webAuthExists, n as resolveWhatsAppAccount, o as logoutWeb, u as readWebSelfId } from "./accounts-ubG6irXZ.js";
|
|
14
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-xKPVUYQP.js";
|
|
15
15
|
import { randomUUID } from "node:crypto";
|
|
16
16
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
17
17
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|