@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,30 +1,30 @@
|
|
|
1
|
-
import { d as resolveSessionAgentId, r as resolveAgentConfig } from "./agent-scope-
|
|
2
|
-
import { a as resolveGatewayPort, n as STATE_DIR } from "./paths-
|
|
3
|
-
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { d as resolveSessionAgentId, r as resolveAgentConfig } from "./agent-scope-CTbRzU1C.js";
|
|
2
|
+
import { a as resolveGatewayPort, n as STATE_DIR } from "./paths-DKuX7-1L.js";
|
|
3
|
+
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-CAatx5oo.js";
|
|
4
4
|
import { c as normalizeAgentId, u as resolveAgentIdFromSessionKey } from "./session-key-a6av96Fj.js";
|
|
5
|
-
import { S as truncateUtf16Safe, h as resolveUserPath } from "./utils-
|
|
6
|
-
import { D as resolvePathViaExistingAncestorSync, S as openBoundaryFile, a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, y as runExec } from "./workspace-
|
|
7
|
-
import { H as loadConfig, K as writeConfigFile, V as createConfigIO, it as getBlockedNetworkModeReason } from "./model-selection-
|
|
8
|
-
import { n as formatCliCommand } from "./env-
|
|
5
|
+
import { S as truncateUtf16Safe, h as resolveUserPath } from "./utils-Bo1RFF0l.js";
|
|
6
|
+
import { D as resolvePathViaExistingAncestorSync, S as openBoundaryFile, a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, y as runExec } from "./workspace-CswOYN9T.js";
|
|
7
|
+
import { H as loadConfig, K as writeConfigFile, V as createConfigIO, it as getBlockedNetworkModeReason } from "./model-selection-DfZMxaX3.js";
|
|
8
|
+
import { n as formatCliCommand } from "./env-Bn6pmvjK.js";
|
|
9
9
|
import { t as parseBooleanValue } from "./boolean-mcn6kL0s.js";
|
|
10
|
-
import { t as CHANNEL_IDS } from "./registry-
|
|
10
|
+
import { t as CHANNEL_IDS } from "./registry-C2GEGa2t.js";
|
|
11
11
|
import { t as generateSecureToken } from "./secure-random-CY3Mg7Dp.js";
|
|
12
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
13
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_OPENCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
14
|
-
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-
|
|
15
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
16
|
-
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-
|
|
17
|
-
import { n as SsrFBlockedError } from "./proxy-env-
|
|
18
|
-
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-
|
|
12
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-jvmQoiyw.js";
|
|
13
|
+
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_OPENCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-BRjY_MCc.js";
|
|
14
|
+
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-BYmEoxNo.js";
|
|
15
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-xY_GOJVd.js";
|
|
16
|
+
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-Ct2kCLWx.js";
|
|
17
|
+
import { n as SsrFBlockedError } from "./proxy-env-Drg9J503.js";
|
|
18
|
+
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-KLMMBnKE.js";
|
|
19
19
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-wLpB_Uk8.js";
|
|
20
20
|
import { r as writeJsonAtomic } from "./json-files-BpxTFudd.js";
|
|
21
|
-
import { B as canonicalizeMainSessionAlias, K as acquireSessionWriteLock, V as resolveAgentMainSessionKey } from "./sessions-
|
|
22
|
-
import { t as sanitizeContentBlocksImages } from "./tool-images-
|
|
21
|
+
import { B as canonicalizeMainSessionAlias, K as acquireSessionWriteLock, V as resolveAgentMainSessionKey } from "./sessions-Ck4ZR4dY.js";
|
|
22
|
+
import { t as sanitizeContentBlocksImages } from "./tool-images-DiKIlElg.js";
|
|
23
23
|
import { o as normalizeThinkLevel } from "./thinking-BcOnJa2q.js";
|
|
24
24
|
import fs from "node:fs/promises";
|
|
25
25
|
import os from "node:os";
|
|
26
26
|
import path, { posix } from "node:path";
|
|
27
|
-
import
|
|
27
|
+
import fs$1, { existsSync } from "node:fs";
|
|
28
28
|
import { spawn } from "node:child_process";
|
|
29
29
|
import crypto, { createHash, timingSafeEqual } from "node:crypto";
|
|
30
30
|
import express from "express";
|
|
@@ -1192,7 +1192,7 @@ function isModuleNotFoundError(err) {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
async function loadPwAiModule(mode) {
|
|
1194
1194
|
try {
|
|
1195
|
-
return await import("./pw-ai-
|
|
1195
|
+
return await import("./pw-ai-gDXxKGzT.js");
|
|
1196
1196
|
} catch (err) {
|
|
1197
1197
|
if (mode === "soft") return null;
|
|
1198
1198
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -2969,11 +2969,11 @@ async function movePathToTrash(targetPath) {
|
|
|
2969
2969
|
return targetPath;
|
|
2970
2970
|
} catch {
|
|
2971
2971
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
2972
|
-
|
|
2972
|
+
fs$1.mkdirSync(trashDir, { recursive: true });
|
|
2973
2973
|
const base = path.basename(targetPath);
|
|
2974
2974
|
let dest = path.join(trashDir, `${base}-${Date.now()}`);
|
|
2975
|
-
if (
|
|
2976
|
-
|
|
2975
|
+
if (fs$1.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${generateSecureToken(6)}`);
|
|
2976
|
+
fs$1.renameSync(targetPath, dest);
|
|
2977
2977
|
return dest;
|
|
2978
2978
|
}
|
|
2979
2979
|
}
|
|
@@ -3060,7 +3060,7 @@ function createBrowserProfilesService(ctx) {
|
|
|
3060
3060
|
} catch {}
|
|
3061
3061
|
const userDataDir = resolveOpenClawUserDataDir(name);
|
|
3062
3062
|
const profileDir = path.dirname(userDataDir);
|
|
3063
|
-
if (
|
|
3063
|
+
if (fs$1.existsSync(profileDir)) {
|
|
3064
3064
|
await movePathToTrash(profileDir);
|
|
3065
3065
|
deleted = true;
|
|
3066
3066
|
}
|
|
@@ -3558,7 +3558,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3558
3558
|
//#region src/browser/server-context.reset.ts
|
|
3559
3559
|
async function closePlaywrightBrowserConnection() {
|
|
3560
3560
|
try {
|
|
3561
|
-
await (await import("./pw-ai-
|
|
3561
|
+
await (await import("./pw-ai-gDXxKGzT.js")).closePlaywrightBrowserConnection();
|
|
3562
3562
|
} catch {}
|
|
3563
3563
|
}
|
|
3564
3564
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -3576,7 +3576,7 @@ function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, i
|
|
|
3576
3576
|
if (await isHttpReachable(300) && !profileState.running) await closePlaywrightBrowserConnection();
|
|
3577
3577
|
if (profileState.running) await stopRunningBrowser();
|
|
3578
3578
|
await closePlaywrightBrowserConnection();
|
|
3579
|
-
if (!
|
|
3579
|
+
if (!fs$1.existsSync(userDataDir)) return {
|
|
3580
3580
|
moved: false,
|
|
3581
3581
|
from: userDataDir
|
|
3582
3582
|
};
|
|
@@ -5635,7 +5635,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
5635
5635
|
if (guarded.reason !== "path") {
|
|
5636
5636
|
if (!(options.allowedType === "directory" && this.pathIsExistingDirectory(target.hostPath))) throw guarded.error instanceof Error ? guarded.error : /* @__PURE__ */ new Error(`Sandbox boundary checks failed; cannot ${options.action}: ${target.containerPath}`);
|
|
5637
5637
|
}
|
|
5638
|
-
} else
|
|
5638
|
+
} else fs$1.closeSync(guarded.fd);
|
|
5639
5639
|
const canonicalContainerPath = await this.resolveCanonicalContainerPath({
|
|
5640
5640
|
containerPath: target.containerPath,
|
|
5641
5641
|
allowFinalSymlinkForUnlink: options.aliasPolicy?.allowFinalSymlinkForUnlink === true
|
|
@@ -5646,7 +5646,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
5646
5646
|
}
|
|
5647
5647
|
pathIsExistingDirectory(hostPath) {
|
|
5648
5648
|
try {
|
|
5649
|
-
return
|
|
5649
|
+
return fs$1.statSync(hostPath).isDirectory();
|
|
5650
5650
|
} catch {
|
|
5651
5651
|
return false;
|
|
5652
5652
|
}
|
|
@@ -5914,13 +5914,13 @@ async function ensureSandboxWorkspace(workspaceDir, seedFrom, skipBootstrap) {
|
|
|
5914
5914
|
});
|
|
5915
5915
|
if (!opened.ok) continue;
|
|
5916
5916
|
try {
|
|
5917
|
-
const content =
|
|
5917
|
+
const content = fs$1.readFileSync(opened.fd, "utf-8");
|
|
5918
5918
|
await fs.writeFile(dest, content, {
|
|
5919
5919
|
encoding: "utf-8",
|
|
5920
5920
|
flag: "wx"
|
|
5921
5921
|
});
|
|
5922
5922
|
} finally {
|
|
5923
|
-
|
|
5923
|
+
fs$1.closeSync(opened.fd);
|
|
5924
5924
|
}
|
|
5925
5925
|
} catch {}
|
|
5926
5926
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Dn as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { Dn as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-DfZMxaX3.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/pi-auth-credentials.ts
|
|
@@ -70,10 +70,10 @@ function isRecord(value) {
|
|
|
70
70
|
}
|
|
71
71
|
function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
72
72
|
if (process.env.OPENCLAW_AUTH_STORE_READONLY === "1") return;
|
|
73
|
-
if (!
|
|
73
|
+
if (!fs.existsSync(pathname)) return;
|
|
74
74
|
let parsed;
|
|
75
75
|
try {
|
|
76
|
-
parsed = JSON.parse(
|
|
76
|
+
parsed = JSON.parse(fs.readFileSync(pathname, "utf8"));
|
|
77
77
|
} catch {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -87,11 +87,11 @@ function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
|
87
87
|
}
|
|
88
88
|
if (!changed) return;
|
|
89
89
|
if (Object.keys(parsed).length === 0) {
|
|
90
|
-
|
|
90
|
+
fs.rmSync(pathname, { force: true });
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
fs.writeFileSync(pathname, `${JSON.stringify(parsed, null, 2)}\n`, "utf8");
|
|
94
|
+
fs.chmodSync(pathname, 384);
|
|
95
95
|
}
|
|
96
96
|
function createAuthStorage(AuthStorageLike, path, creds) {
|
|
97
97
|
const withInMemory = AuthStorageLike;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CAatx5oo.js";
|
|
2
2
|
import { h as normalizeOptionalAccountId, m as normalizeAccountId, p as DEFAULT_ACCOUNT_ID } from "./session-key-a6av96Fj.js";
|
|
3
|
-
import { d as normalizeE164 } from "./utils-
|
|
4
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
5
|
-
import { a as normalizeAnyChannelId, d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, u as getActivePluginRegistryVersion } from "./registry-
|
|
6
|
-
import { h as createAccountListHelpers } from "./accounts-
|
|
3
|
+
import { d as normalizeE164 } from "./utils-Bo1RFF0l.js";
|
|
4
|
+
import { t as isTruthyEnvValue } from "./env-Bn6pmvjK.js";
|
|
5
|
+
import { a as normalizeAnyChannelId, d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, u as getActivePluginRegistryVersion } from "./registry-C2GEGa2t.js";
|
|
6
|
+
import { h as createAccountListHelpers } from "./accounts-CaiECgq3.js";
|
|
7
7
|
import { t as resolveAccountEntry } from "./account-lookup-JrULBwdR.js";
|
|
8
8
|
import { t as normalizeChatType } from "./chat-type-DKb2TlGZ.js";
|
|
9
|
-
import { i as resolveDefaultAgentBoundAccountId, r as listBoundAccountIds } from "./bindings-
|
|
10
|
-
import
|
|
9
|
+
import { i as resolveDefaultAgentBoundAccountId, r as listBoundAccountIds } from "./bindings-Daa-Etag.js";
|
|
10
|
+
import fs from "node:fs";
|
|
11
11
|
import util from "node:util";
|
|
12
12
|
|
|
13
13
|
//#region src/channels/plugins/account-action-gate.ts
|
|
@@ -218,7 +218,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
218
218
|
const accountCfg = resolveAccountCfg(accountId !== DEFAULT_ACCOUNT_ID ? accountId : DEFAULT_ACCOUNT_ID);
|
|
219
219
|
const accountTokenFile = accountCfg?.tokenFile?.trim();
|
|
220
220
|
if (accountTokenFile) {
|
|
221
|
-
if (!
|
|
221
|
+
if (!fs.existsSync(accountTokenFile)) {
|
|
222
222
|
opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile not found: ${accountTokenFile}`);
|
|
223
223
|
return {
|
|
224
224
|
token: "",
|
|
@@ -226,7 +226,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
228
|
try {
|
|
229
|
-
const token =
|
|
229
|
+
const token = fs.readFileSync(accountTokenFile, "utf-8").trim();
|
|
230
230
|
if (token) return {
|
|
231
231
|
token,
|
|
232
232
|
source: "tokenFile"
|
|
@@ -251,7 +251,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
251
251
|
const allowEnv = accountId === DEFAULT_ACCOUNT_ID;
|
|
252
252
|
const tokenFile = telegramCfg?.tokenFile?.trim();
|
|
253
253
|
if (tokenFile && allowEnv) {
|
|
254
|
-
if (!
|
|
254
|
+
if (!fs.existsSync(tokenFile)) {
|
|
255
255
|
opts.logMissingFile?.(`channels.telegram.tokenFile not found: ${tokenFile}`);
|
|
256
256
|
return {
|
|
257
257
|
token: "",
|
|
@@ -259,7 +259,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
261
|
try {
|
|
262
|
-
const token =
|
|
262
|
+
const token = fs.readFileSync(tokenFile, "utf-8").trim();
|
|
263
263
|
if (token) return {
|
|
264
264
|
token,
|
|
265
265
|
source: "tokenFile"
|
|
@@ -122,8 +122,8 @@ import "./constants-D1Q8yQ1_.js";
|
|
|
122
122
|
import "./context-window-guard-BqrKjiIm.js";
|
|
123
123
|
import "./plugin-registry-NaHPDM1s.js";
|
|
124
124
|
import { n as resolveCliChannelOptions } from "./channel-options-gDhT85r4.js";
|
|
125
|
-
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-
|
|
126
|
-
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-
|
|
125
|
+
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-BSGvOwqU.js";
|
|
126
|
+
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-BSN6zVlZ.js";
|
|
127
127
|
import { r as setProgramContext } from "./program-context-BqyLhTGk.js";
|
|
128
128
|
import { t as forceFreePort } from "./ports-CmP85Z6Y.js";
|
|
129
129
|
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-CMCfl-_K.js";
|
|
@@ -58,7 +58,7 @@ const entries = [
|
|
|
58
58
|
description: "Run, inspect, and query the WebSocket Gateway",
|
|
59
59
|
hasSubcommands: true,
|
|
60
60
|
register: async (program) => {
|
|
61
|
-
(await import("./gateway-cli-
|
|
61
|
+
(await import("./gateway-cli-8DmbQc9V.js")).registerGatewayCli(program);
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
{
|
|
@@ -262,7 +262,7 @@ const entries = [
|
|
|
262
262
|
description: "Update OpenClaw and inspect update channel status",
|
|
263
263
|
hasSubcommands: true,
|
|
264
264
|
register: async (program) => {
|
|
265
|
-
(await import("./update-cli-
|
|
265
|
+
(await import("./update-cli-CfeiDzYx.js")).registerUpdateCli(program);
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
268
|
{
|
|
@@ -270,7 +270,7 @@ const entries = [
|
|
|
270
270
|
description: "Generate shell completion script",
|
|
271
271
|
hasSubcommands: false,
|
|
272
272
|
register: async (program) => {
|
|
273
|
-
(await import("./completion-cli-
|
|
273
|
+
(await import("./completion-cli-BDeiV4p9.js").then((n) => n.n)).registerCompletionCli(program);
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
];
|
|
@@ -327,7 +327,7 @@ const coreEntries = [
|
|
|
327
327
|
hasSubcommands: false
|
|
328
328
|
}],
|
|
329
329
|
register: async ({ program }) => {
|
|
330
|
-
(await import("./register.init-
|
|
330
|
+
(await import("./register.init-CNKrbvCo.js")).registerInitCommand(program);
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
{
|
|
@@ -347,7 +347,7 @@ const coreEntries = [
|
|
|
347
347
|
hasSubcommands: false
|
|
348
348
|
}],
|
|
349
349
|
register: async ({ program }) => {
|
|
350
|
-
(await import("./register.setup-
|
|
350
|
+
(await import("./register.setup-ixDBzvTR.js")).registerSetupCommand(program);
|
|
351
351
|
}
|
|
352
352
|
},
|
|
353
353
|
{
|
|
@@ -357,7 +357,7 @@ const coreEntries = [
|
|
|
357
357
|
hasSubcommands: false
|
|
358
358
|
}],
|
|
359
359
|
register: async ({ program }) => {
|
|
360
|
-
(await import("./register.onboard-
|
|
360
|
+
(await import("./register.onboard-B1-O21vU.js")).registerOnboardCommand(program);
|
|
361
361
|
}
|
|
362
362
|
},
|
|
363
363
|
{
|
|
@@ -404,7 +404,7 @@ const coreEntries = [
|
|
|
404
404
|
}
|
|
405
405
|
],
|
|
406
406
|
register: async ({ program }) => {
|
|
407
|
-
(await import("./register.maintenance-
|
|
407
|
+
(await import("./register.maintenance-B0nZqqML.js")).registerMaintenanceCommands(program);
|
|
408
408
|
}
|
|
409
409
|
},
|
|
410
410
|
{
|
|
@@ -45,7 +45,7 @@ import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as l
|
|
|
45
45
|
import { n as noteOpenAIOAuthTlsPrerequisites } from "./oauth-tls-preflight-Di_O2hPI.js";
|
|
46
46
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-iDZhUJvT.js";
|
|
47
47
|
import { t as formatHealthCheckFailure } from "./health-format-Cp-jlwLm.js";
|
|
48
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
48
|
+
import { n as doctorShellCompletion } from "./doctor-completion-Bim4XRFT.js";
|
|
49
49
|
import fs from "node:fs";
|
|
50
50
|
import os from "node:os";
|
|
51
51
|
import path from "node:path";
|
|
@@ -45,7 +45,7 @@ import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as l
|
|
|
45
45
|
import { n as noteOpenAIOAuthTlsPrerequisites } from "./oauth-tls-preflight-DLADeojn.js";
|
|
46
46
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-CTeOH7Nl.js";
|
|
47
47
|
import { t as formatHealthCheckFailure } from "./health-format-rPE0ELW5.js";
|
|
48
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
48
|
+
import { n as doctorShellCompletion } from "./doctor-completion-BKCOmkBi.js";
|
|
49
49
|
import { execFile } from "node:child_process";
|
|
50
50
|
import path from "node:path";
|
|
51
51
|
import os from "node:os";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _t as parseLooseIpAddress, ct as isBlockedSpecialUseIpv4Address, dt as isIpv4Address, ft as isLegacyIpv4Literal, gt as parseCanonicalIpAddress, lt as isBlockedSpecialUseIpv6Address, st as extractEmbeddedIpv4FromIpv6, ut as isCanonicalDottedDecimalIPv4 } from "./model-selection-
|
|
1
|
+
import { _t as parseLooseIpAddress, ct as isBlockedSpecialUseIpv4Address, dt as isIpv4Address, ft as isLegacyIpv4Literal, gt as parseCanonicalIpAddress, lt as isBlockedSpecialUseIpv6Address, st as extractEmbeddedIpv4FromIpv6, ut as isCanonicalDottedDecimalIPv4 } from "./model-selection-DfZMxaX3.js";
|
|
2
2
|
import { lookup } from "node:dns";
|
|
3
3
|
import { lookup as lookup$1 } from "node:dns/promises";
|
|
4
4
|
import { Agent } from "undici";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
2
|
+
import { t as makeProxyFetch } from "./proxy-fetch-AvkSvetA.js";
|
|
3
3
|
|
|
4
4
|
//#region src/telegram/proxy.ts
|
|
5
5
|
var proxy_exports = /* @__PURE__ */ __exportAll({ makeProxyFetch: () => makeProxyFetch });
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import "./utils-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./logger-
|
|
7
|
-
import "./model-selection-
|
|
8
|
-
import "./github-copilot-token-
|
|
9
|
-
import { n as formatCliCommand } from "./env-
|
|
1
|
+
import "./agent-scope-CTbRzU1C.js";
|
|
2
|
+
import "./paths-DKuX7-1L.js";
|
|
3
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./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 { n as formatCliCommand } from "./env-Bn6pmvjK.js";
|
|
10
10
|
import "./boolean-mcn6kL0s.js";
|
|
11
|
-
import "./internal-hooks-
|
|
12
|
-
import "./registry-
|
|
13
|
-
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-
|
|
14
|
-
import "./path-alias-guards-
|
|
15
|
-
import "./redact-
|
|
16
|
-
import { r as formatErrorMessage } from "./errors-
|
|
17
|
-
import { s as writeFileFromPathWithinRoot } from "./fs-safe-
|
|
18
|
-
import "./proxy-env-
|
|
11
|
+
import "./internal-hooks-oLQ2m8YT.js";
|
|
12
|
+
import "./registry-C2GEGa2t.js";
|
|
13
|
+
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-BRjY_MCc.js";
|
|
14
|
+
import "./path-alias-guards-xY_GOJVd.js";
|
|
15
|
+
import "./redact-BC9R18Uw.js";
|
|
16
|
+
import { r as formatErrorMessage } from "./errors-Ct2kCLWx.js";
|
|
17
|
+
import { s as writeFileFromPathWithinRoot } from "./fs-safe-CM9EhGvi.js";
|
|
18
|
+
import "./proxy-env-Drg9J503.js";
|
|
19
19
|
import fs from "node:fs/promises";
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import crypto from "node:crypto";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { s as resolveAgentWorkspaceDir } from "./agent-scope-CTbRzU1C.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-DKuX7-1L.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-CAatx5oo.js";
|
|
4
4
|
import { S as parseAgentSessionKey } from "./session-key-a6av96Fj.js";
|
|
5
|
-
import "./utils-
|
|
6
|
-
import "./workspace-
|
|
7
|
-
import "./logger-
|
|
8
|
-
import "./path-alias-guards-
|
|
9
|
-
import "./redact-
|
|
10
|
-
import { c as writeFileWithinRoot } from "./fs-safe-
|
|
5
|
+
import "./utils-Bo1RFF0l.js";
|
|
6
|
+
import "./workspace-CswOYN9T.js";
|
|
7
|
+
import "./logger-DelEB7MK.js";
|
|
8
|
+
import "./path-alias-guards-xY_GOJVd.js";
|
|
9
|
+
import "./redact-BC9R18Uw.js";
|
|
10
|
+
import { c as writeFileWithinRoot } from "./fs-safe-CM9EhGvi.js";
|
|
11
11
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-wLpB_Uk8.js";
|
|
12
|
-
import "./paths-
|
|
13
|
-
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-
|
|
12
|
+
import "./paths-Bi8MJ8NM.js";
|
|
13
|
+
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-C0A4WwZX.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CAatx5oo.js";
|
|
2
2
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-NY-gTuzr.js";
|
|
3
|
-
import { t as redactSensitiveText } from "./redact-
|
|
4
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
3
|
+
import { t as redactSensitiveText } from "./redact-BC9R18Uw.js";
|
|
4
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-Bi8MJ8NM.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fs$1 from "node:fs";
|
|
9
9
|
import crypto from "node:crypto";
|
|
10
10
|
|
|
11
11
|
//#region src/memory/fs-utils.ts
|
|
@@ -31,7 +31,7 @@ async function statRegularFile(absPath) {
|
|
|
31
31
|
//#region src/memory/internal.ts
|
|
32
32
|
function ensureDir(dir) {
|
|
33
33
|
try {
|
|
34
|
-
|
|
34
|
+
fs$1.mkdirSync(dir, { recursive: true });
|
|
35
35
|
} catch {}
|
|
36
36
|
return dir;
|
|
37
37
|
}
|
|
@@ -5,7 +5,7 @@ import "./boolean-DtWR5bt3.js";
|
|
|
5
5
|
import { P as readConfigFileSnapshot, R as writeConfigFile, Un as upsertAuthProfile } from "./auth-profiles-Ncv1fyN5.js";
|
|
6
6
|
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-CJelRKYY.js";
|
|
7
7
|
import { c as normalizeAgentId, s as isValidAgentId } from "./session-key-BLprDJYq.js";
|
|
8
|
-
import
|
|
8
|
+
import "./utils-DIzy5B5o.js";
|
|
9
9
|
import { a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_SOUL_FILENAME, d as ensureAgentWorkspace } from "./workspace-BHfqkuYN.js";
|
|
10
10
|
import "./logger-BJMfryJd.js";
|
|
11
11
|
import "./exec-CEAvKSx9.js";
|
|
@@ -163,7 +163,16 @@ function renderBitseekSoulMarkdown(agent) {
|
|
|
163
163
|
|
|
164
164
|
//#endregion
|
|
165
165
|
//#region src/commands/bitseek-init.ts
|
|
166
|
-
const
|
|
166
|
+
const BITSEEK_API_KEY_PROMPT_NOTE = [
|
|
167
|
+
"[ACTION REQUIRED]",
|
|
168
|
+
"To activate your local sovereign node, please provide your API Key.",
|
|
169
|
+
"",
|
|
170
|
+
"[NO KEY YET?]",
|
|
171
|
+
"If you haven't generated a API-Key, please follow these steps:",
|
|
172
|
+
"1. Log in to BitSeek: [https://bitseek.ai]",
|
|
173
|
+
"2. Go to [Account & API] to create your unique key.",
|
|
174
|
+
"3. Check our Quick-Start Guide: [https://bitseek.ai/guide]"
|
|
175
|
+
].join("\n");
|
|
167
176
|
function randomSecret(size = 24) {
|
|
168
177
|
return crypto.randomBytes(size).toString("hex");
|
|
169
178
|
}
|
|
@@ -350,7 +359,7 @@ async function bitseekInitCommand(runtime = defaultRuntime, options = {}) {
|
|
|
350
359
|
if (!hasConfiguredAgents) selectedAgentId = parsed.agent ?? BITSEEK_DEFAULT_BUILTIN_AGENT_ID;
|
|
351
360
|
else selectedAgentId = parsed.agent;
|
|
352
361
|
} else {
|
|
353
|
-
await prompter.note(
|
|
362
|
+
await prompter.note(BITSEEK_API_KEY_PROMPT_NOTE);
|
|
354
363
|
apiKey = await prompter.text({
|
|
355
364
|
message: "Enter BitSeek API key",
|
|
356
365
|
placeholder: "bsk-...",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./paths-BYr-iJJ9.js";
|
|
2
2
|
import "./globals-uLeGcRW1.js";
|
|
3
|
-
import
|
|
3
|
+
import "./utils-CP51tiAi.js";
|
|
4
4
|
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-CiBV1K6b.js";
|
|
5
5
|
import { d as defaultRuntime } from "./subsystem-BT74-yyS.js";
|
|
6
6
|
import { c as normalizeAgentId, s as isValidAgentId } from "./session-key-C9z4VQtw.js";
|
|
@@ -163,7 +163,16 @@ function renderBitseekSoulMarkdown(agent) {
|
|
|
163
163
|
|
|
164
164
|
//#endregion
|
|
165
165
|
//#region src/commands/bitseek-init.ts
|
|
166
|
-
const
|
|
166
|
+
const BITSEEK_API_KEY_PROMPT_NOTE = [
|
|
167
|
+
"[ACTION REQUIRED]",
|
|
168
|
+
"To activate your local sovereign node, please provide your API Key.",
|
|
169
|
+
"",
|
|
170
|
+
"[NO KEY YET?]",
|
|
171
|
+
"If you haven't generated a API-Key, please follow these steps:",
|
|
172
|
+
"1. Log in to BitSeek: [https://bitseek.ai]",
|
|
173
|
+
"2. Go to [Account & API] to create your unique key.",
|
|
174
|
+
"3. Check our Quick-Start Guide: [https://bitseek.ai/guide]"
|
|
175
|
+
].join("\n");
|
|
167
176
|
function randomSecret(size = 24) {
|
|
168
177
|
return crypto.randomBytes(size).toString("hex");
|
|
169
178
|
}
|
|
@@ -350,7 +359,7 @@ async function bitseekInitCommand(runtime = defaultRuntime, options = {}) {
|
|
|
350
359
|
if (!hasConfiguredAgents) selectedAgentId = parsed.agent ?? BITSEEK_DEFAULT_BUILTIN_AGENT_ID;
|
|
351
360
|
else selectedAgentId = parsed.agent;
|
|
352
361
|
} else {
|
|
353
|
-
await prompter.note(
|
|
362
|
+
await prompter.note(BITSEEK_API_KEY_PROMPT_NOTE);
|
|
354
363
|
apiKey = await prompter.text({
|
|
355
364
|
message: "Enter BitSeek API key",
|
|
356
365
|
placeholder: "bsk-...",
|
|
@@ -120,13 +120,13 @@ import "./stagger-BIZMWR_z.js";
|
|
|
120
120
|
import "./constants-BJMtcGm_.js";
|
|
121
121
|
import "./context-window-guard-DfLcl4Sl.js";
|
|
122
122
|
import "./runtime-guard-IbCMXYfp.js";
|
|
123
|
-
import "./program-context-
|
|
123
|
+
import "./program-context-BJQXRZ1w.js";
|
|
124
124
|
import "./skills-status-CXKKJa9Q.js";
|
|
125
125
|
import "./clipboard-B5W7Nj1R.js";
|
|
126
126
|
import "./note-CvWjGRTD.js";
|
|
127
127
|
import "./issue-format-DTqjZOjH.js";
|
|
128
128
|
import "./channels-status-issues-9pCBFmqu.js";
|
|
129
|
-
import "./completion-cli-
|
|
129
|
+
import "./completion-cli-BDeiV4p9.js";
|
|
130
130
|
import "./daemon-install-helpers-BM1DaOy4.js";
|
|
131
131
|
import "./systemd-BeNGyFHw.js";
|
|
132
132
|
import { t as resolveGatewayService } from "./service-Y993dKjs.js";
|
|
@@ -142,8 +142,8 @@ import "./oauth-tls-preflight-Di_O2hPI.js";
|
|
|
142
142
|
import "./systemd-linger-iDZhUJvT.js";
|
|
143
143
|
import "./health-format-Cp-jlwLm.js";
|
|
144
144
|
import { t as dashboardCommand } from "./dashboard-2Jln8Cg-.js";
|
|
145
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
146
|
-
import "./doctor-completion-
|
|
145
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-QH4mD93d.js";
|
|
146
|
+
import "./doctor-completion-Bim4XRFT.js";
|
|
147
147
|
import path from "node:path";
|
|
148
148
|
import fs from "node:fs/promises";
|
|
149
149
|
import { cancel, confirm, isCancel, multiselect } from "@clack/prompts";
|
|
@@ -125,9 +125,9 @@ import "./clipboard-DenHeqX-.js";
|
|
|
125
125
|
import "./note-qHayYqee.js";
|
|
126
126
|
import "./issue-format-Bm-71lmf.js";
|
|
127
127
|
import "./channels-status-issues-ib5LY9cR.js";
|
|
128
|
-
import "./completion-cli-
|
|
129
|
-
import "./register.subclis-
|
|
130
|
-
import "./command-registry-
|
|
128
|
+
import "./completion-cli-lZ6S6oKA.js";
|
|
129
|
+
import "./register.subclis-BSGvOwqU.js";
|
|
130
|
+
import "./command-registry-BSN6zVlZ.js";
|
|
131
131
|
import "./program-context-BqyLhTGk.js";
|
|
132
132
|
import "./daemon-install-helpers-DJg83rPu.js";
|
|
133
133
|
import "./runtime-guard-DzZMAUj_.js";
|
|
@@ -145,8 +145,8 @@ import "./oauth-tls-preflight-DLADeojn.js";
|
|
|
145
145
|
import "./systemd-linger-CTeOH7Nl.js";
|
|
146
146
|
import "./health-format-rPE0ELW5.js";
|
|
147
147
|
import { t as dashboardCommand } from "./dashboard-CCwQ2XPE.js";
|
|
148
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
149
|
-
import "./doctor-completion-
|
|
148
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-asxoqY78.js";
|
|
149
|
+
import "./doctor-completion-BKCOmkBi.js";
|
|
150
150
|
import path from "node:path";
|
|
151
151
|
import fs from "node:fs/promises";
|
|
152
152
|
import { cancel, confirm, isCancel, multiselect } from "@clack/prompts";
|
|
@@ -40,11 +40,11 @@ import "./progress-BNTrvrfJ.js";
|
|
|
40
40
|
import "./runtime-guard-IbCMXYfp.js";
|
|
41
41
|
import "./note-CvWjGRTD.js";
|
|
42
42
|
import "./clack-prompter-CVmIKCoz.js";
|
|
43
|
-
import "./onboarding-
|
|
43
|
+
import "./onboarding-BRfS3PSa.js";
|
|
44
44
|
import "./logging-DUqFcGxI.js";
|
|
45
45
|
import { t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-BagFJEug.js";
|
|
46
46
|
import { n as formatAuthChoiceChoicesForCli } from "./auth-choice-options-BiRuYr-r.js";
|
|
47
|
-
import { t as onboardCommand } from "./onboard-
|
|
47
|
+
import { t as onboardCommand } from "./onboard-BcaFvsav.js";
|
|
48
48
|
|
|
49
49
|
//#region src/cli/program/register.onboard.ts
|
|
50
50
|
function resolveInstallDaemonFlag(command, opts) {
|
|
@@ -40,11 +40,11 @@ import "./progress-BkZzF3Qm.js";
|
|
|
40
40
|
import "./note-qHayYqee.js";
|
|
41
41
|
import "./clack-prompter-fBizq68H.js";
|
|
42
42
|
import "./runtime-guard-DzZMAUj_.js";
|
|
43
|
-
import "./onboarding-
|
|
43
|
+
import "./onboarding-JNyox6ZE.js";
|
|
44
44
|
import "./logging-CmPhQ5QB.js";
|
|
45
45
|
import { t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-ijrpDurI.js";
|
|
46
46
|
import { n as formatAuthChoiceChoicesForCli } from "./auth-choice-options-CD4jsvdS.js";
|
|
47
|
-
import { t as onboardCommand } from "./onboard-
|
|
47
|
+
import { t as onboardCommand } from "./onboard-sKY5jwsH.js";
|
|
48
48
|
|
|
49
49
|
//#region src/cli/program/register.onboard.ts
|
|
50
50
|
function resolveInstallDaemonFlag(command, opts) {
|
|
@@ -41,9 +41,9 @@ import { t as hasExplicitOptions } from "./command-options-DGYxc3D_.js";
|
|
|
41
41
|
import "./note-qHayYqee.js";
|
|
42
42
|
import "./clack-prompter-fBizq68H.js";
|
|
43
43
|
import "./runtime-guard-DzZMAUj_.js";
|
|
44
|
-
import "./onboarding-
|
|
44
|
+
import "./onboarding-JNyox6ZE.js";
|
|
45
45
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-CmPhQ5QB.js";
|
|
46
|
-
import { t as onboardCommand } from "./onboard-
|
|
46
|
+
import { t as onboardCommand } from "./onboard-sKY5jwsH.js";
|
|
47
47
|
import JSON5 from "json5";
|
|
48
48
|
import fs from "node:fs/promises";
|
|
49
49
|
|