@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.
Files changed (116) hide show
  1. package/dist/{accounts-DMvETf-t.js → accounts-Bwq1wvds.js} +1 -1
  2. package/dist/{accounts-BTexwKe8.js → accounts-CX1yOBOk.js} +1 -1
  3. package/dist/{accounts-ubG6irXZ.js → accounts-CaiECgq3.js} +16 -16
  4. package/dist/{active-listener-Hd9sOu9T.js → active-listener-neKWQsOO.js} +1 -1
  5. package/dist/{agent-scope-C6hps0r3.js → agent-scope-CTbRzU1C.js} +4 -4
  6. package/dist/{api-key-rotation-Cv5_SG_o.js → api-key-rotation-BbZD-rsQ.js} +2 -2
  7. package/dist/{audio-preflight-C2pZmbnM.js → audio-preflight-C5Crv38h.js} +39 -39
  8. package/dist/{audio-transcription-runner-CQ4BMvGX.js → audio-transcription-runner-eVtEKUPC.js} +11 -11
  9. package/dist/{bindings-CsIiIjqN.js → bindings-Daa-Etag.js} +2 -2
  10. package/dist/build-info.json +2 -2
  11. package/dist/bundled/boot-md/handler.js +65 -65
  12. package/dist/bundled/bootstrap-extra-files/handler.js +7 -7
  13. package/dist/bundled/command-logger/handler.js +2 -2
  14. package/dist/bundled/session-memory/handler.js +65 -65
  15. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  16. package/dist/{channel-activity-Dwc2BBvs.js → channel-activity-D0BHmeoE.js} +3 -3
  17. package/dist/{chrome-DWfXErGH.js → chrome-BRjY_MCc.js} +26 -26
  18. package/dist/{chunk-2ZxftpDd.js → chunk-Dfkbh8wX.js} +1 -1
  19. package/dist/{command-registry-DshPN0jE.js → command-registry-BSN6zVlZ.js} +5 -5
  20. package/dist/{commands-registry-CTkboeeC.js → commands-registry-NyRDVN7s.js} +5 -5
  21. package/dist/{completion-cli-BD1Wf-K1.js → completion-cli-BDeiV4p9.js} +1 -1
  22. package/dist/{completion-cli-Ds2kVMMx.js → completion-cli-lZ6S6oKA.js} +2 -2
  23. package/dist/{deliver-zrYSWfQ5.js → deliver-DlLNT2iR.js} +22 -22
  24. package/dist/{diagnostic-BO1GQJJf.js → diagnostic-DpOlXoSr.js} +2 -2
  25. package/dist/{dock-Bm23mfim.js → dock-DXlPVrMo.js} +6 -6
  26. package/dist/{doctor-completion-DpsPIdur.js → doctor-completion-BKCOmkBi.js} +1 -1
  27. package/dist/{doctor-completion-f2gLNSUa.js → doctor-completion-Bim4XRFT.js} +1 -1
  28. package/dist/entry.js +2 -2
  29. package/dist/{env-DNMZEG57.js → env-Bn6pmvjK.js} +2 -2
  30. package/dist/{errors-B11yhRo6.js → errors-Ct2kCLWx.js} +1 -1
  31. package/dist/{fetch-4RonjgqX.js → fetch-2cO0rj7X.js} +5 -5
  32. package/dist/{fetch-guard-B1EGEHan.js → fetch-guard-iigSYt3Q.js} +2 -2
  33. package/dist/{frontmatter-D6vByAHn.js → frontmatter-rlCI8Hmw.js} +2 -2
  34. package/dist/{fs-safe-C77EShMC.js → fs-safe-CM9EhGvi.js} +4 -4
  35. package/dist/{gateway-cli-3rP04OO5.js → gateway-cli-8DmbQc9V.js} +1 -1
  36. package/dist/{gateway-cli-CbVaqoxB.js → gateway-cli-CDgld1qp.js} +1 -1
  37. package/dist/{github-copilot-token-DLGN-8YS.js → github-copilot-token-CPjAmbfr.js} +7 -7
  38. package/dist/{image-DnxYCkHO.js → image-BWlmyhr-.js} +6 -6
  39. package/dist/{image-ops-DCpyia_K.js → image-ops-jvmQoiyw.js} +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/{internal-hooks-yQe6H47q.js → internal-hooks-oLQ2m8YT.js} +1 -1
  42. package/dist/{ir-DcDVAFj3.js → ir-pR36nI-3.js} +6 -6
  43. package/dist/llm-slug-generator.js +65 -65
  44. package/dist/{logger-BlH5MJiV.js → logger-DelEB7MK.js} +1 -1
  45. package/dist/{login-CgEHUE7h.js → login-Cm2zDfEU.js} +6 -6
  46. package/dist/{login-qr-DUJfhbUe.js → login-qr-iS1jPDpP.js} +13 -13
  47. package/dist/{manager-tozHviEd.js → manager-BX3KtavU.js} +15 -15
  48. package/dist/{markdown-tables-BHONoo6S.js → markdown-tables-pfs_NCNh.js} +1 -1
  49. package/dist/{message-channel-pbgFFUNm.js → message-channel-DB68nc40.js} +1 -1
  50. package/dist/{model-selection-D_Si2Ict.js → model-selection-DfZMxaX3.js} +44 -44
  51. package/dist/{onboard-qD3I6PJW.js → onboard-BcaFvsav.js} +1 -1
  52. package/dist/{onboard-CE9V4Lb7.js → onboard-sKY5jwsH.js} +1 -1
  53. package/dist/{onboarding-CjwEj4uN.js → onboarding-BRfS3PSa.js} +1 -1
  54. package/dist/{onboarding-_GD-DZHG.js → onboarding-JNyox6ZE.js} +1 -1
  55. package/dist/{onboarding.finalize-B5hA5lV8.js → onboarding.finalize-CG9tTRyw.js} +3 -3
  56. package/dist/{onboarding.finalize-kX5lNpGT.js → onboarding.finalize-hBg4b8IC.js} +4 -4
  57. package/dist/{outbound-9rXkgGZM.js → outbound-N9_vLIGT.js} +7 -7
  58. package/dist/{outbound-attachment-Cy8rvvJE.js → outbound-attachment-CEt49GWZ.js} +2 -2
  59. package/dist/{path-alias-guards-Cpb5gMG6.js → path-alias-guards-xY_GOJVd.js} +1 -1
  60. package/dist/{paths-BHEVctLd.js → paths-Bi8MJ8NM.js} +3 -3
  61. package/dist/{paths-aGRLvQx9.js → paths-DKuX7-1L.js} +5 -5
  62. package/dist/{pi-embedded-BQqt592d.js → pi-embedded-CDXssetE.js} +187 -187
  63. package/dist/{pi-embedded-helpers-Bo7e-QzJ.js → pi-embedded-helpers-DSPiPpLM.js} +29 -29
  64. package/dist/{pi-model-discovery-DA46fxhD.js → pi-model-discovery-N7o4F93J.js} +7 -7
  65. package/dist/{plugins-CJoaoIHc.js → plugins-D63QYxW6.js} +11 -11
  66. package/dist/{program-BTBw45uK.js → program-B_-eFyJE.js} +2 -2
  67. package/dist/{program-context-CqvVc2Bn.js → program-context-BJQXRZ1w.js} +7 -7
  68. package/dist/{prompt-select-styled-DK1SacDX.js → prompt-select-styled-QH4mD93d.js} +1 -1
  69. package/dist/{prompt-select-styled-7VZwhnhd.js → prompt-select-styled-asxoqY78.js} +1 -1
  70. package/dist/{proxy-env-ynOWOBHx.js → proxy-env-Drg9J503.js} +1 -1
  71. package/dist/{proxy-fetch-xlbVQYN_.js → proxy-fetch-AvkSvetA.js} +1 -1
  72. package/dist/{proxy-DfJJLvch.js → proxy-jINniQBi.js} +1 -1
  73. package/dist/{pw-ai-Cu3cnNF0.js → pw-ai-gDXxKGzT.js} +17 -17
  74. package/dist/{qmd-manager-n4jauq3A.js → qmd-manager-DXbV8CPG.js} +11 -11
  75. package/dist/{query-expansion-CdDUaBcQ.js → query-expansion-C0A4WwZX.js} +5 -5
  76. package/dist/{redact-CaZQhKzI.js → redact-BC9R18Uw.js} +1 -1
  77. package/dist/{register.init-BXkISfms.js → register.init-BdPckTb9.js} +12 -3
  78. package/dist/{register.init-BvMr7cj9.js → register.init-CNKrbvCo.js} +12 -3
  79. package/dist/{register.maintenance-qjXr4IGe.js → register.maintenance-B0nZqqML.js} +4 -4
  80. package/dist/{register.maintenance-FKHpDu3E.js → register.maintenance-DvWoKstb.js} +5 -5
  81. package/dist/{register.onboard-BzpyjklK.js → register.onboard-B1-O21vU.js} +2 -2
  82. package/dist/{register.onboard--_sGklZ6.js → register.onboard-DOhvWYV7.js} +2 -2
  83. package/dist/{register.setup-qYawYgIM.js → register.setup-KPZYo_I1.js} +2 -2
  84. package/dist/{register.setup-Degyv4Bj.js → register.setup-ixDBzvTR.js} +2 -2
  85. package/dist/{register.subclis-DkDc3aKk.js → register.subclis-BSGvOwqU.js} +3 -3
  86. package/dist/{registry-CJCkqTms.js → registry-C2GEGa2t.js} +3 -3
  87. package/dist/{replies-D6zARd6r.js → replies-B6I1tT5t.js} +3 -3
  88. package/dist/{reply-prefix-DK1i6bCJ.js → reply-prefix-9mzt89Cf.js} +1 -1
  89. package/dist/{resolve-route-C5hVstLo.js → resolve-route-BNElrVxR.js} +4 -4
  90. package/dist/{retry-DTeP7C3h.js → retry-Ayb7e4XG.js} +1 -1
  91. package/dist/{run-main-VaM4RFaa.js → run-main-CdI1kXKr.js} +3 -3
  92. package/dist/{send-CcQZM0c7.js → send-B6QQ8XfC.js} +8 -8
  93. package/dist/{send--Gq-Uh-l.js → send-BMzVXosN.js} +7 -7
  94. package/dist/{send-DcL81tZr.js → send-BQETStDl.js} +10 -10
  95. package/dist/{send-D2zYssqK.js → send-Buidj_8L.js} +27 -27
  96. package/dist/{send-BpyiQEov.js → send-DC_e_Iev.js} +6 -6
  97. package/dist/{session-xKPVUYQP.js → session-TVb8hgJP.js} +9 -9
  98. package/dist/{session-meta-BbCwXniv.js → session-meta-DAMj6ZRX.js} +2 -2
  99. package/dist/{sessions-D7EjW0sG.js → sessions-Ck4ZR4dY.js} +31 -31
  100. package/dist/{skill-commands-Cea3CZFF.js → skill-commands-KesfMtZ9.js} +9 -9
  101. package/dist/{skills-BttlqUXr.js → skills-BYmEoxNo.js} +22 -22
  102. package/dist/{store-B7PaqfvZ.js → store-KLMMBnKE.js} +2 -2
  103. package/dist/{subsystem-BRjuJbbM.js → subsystem-CAatx5oo.js} +14 -14
  104. package/dist/{tables-BJ0XAman.js → tables-DqechQWF.js} +1 -1
  105. package/dist/{target-errors-Dad0aUFR.js → target-errors-C-KolUyX.js} +2 -2
  106. package/dist/{tokens-B9EDT4jv.js → tokens-BvzZdrVJ.js} +1 -1
  107. package/dist/{tool-images-ArXzv82F.js → tool-images-DiKIlElg.js} +2 -2
  108. package/dist/{tool-loop-detection-CLoYKYIq.js → tool-loop-detection-C4V990MS.js} +3 -3
  109. package/dist/{update-cli-Do4BIFSd.js → update-cli-CfeiDzYx.js} +4 -4
  110. package/dist/{update-cli-CWS0bKZV.js → update-cli-DKmrzt8l.js} +5 -5
  111. package/dist/{utils-BFZnl-5N.js → utils-Bo1RFF0l.js} +6 -6
  112. package/dist/{web-C5gLi1bN.js → web-BPI4HIht.js} +69 -69
  113. package/dist/{whatsapp-actions-Be9uvUUL.js → whatsapp-actions-Bf61u88d.js} +28 -28
  114. package/dist/{workspace-D6mrCnXi.js → workspace-CswOYN9T.js} +21 -21
  115. package/docs/install/installer.md +7 -0
  116. package/package.json +6 -1
@@ -1,20 +1,20 @@
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-B11yhRo6.js";
6
- import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-C77EShMC.js";
7
- import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-ynOWOBHx.js";
1
+ import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-CAatx5oo.js";
2
+ import { t as CONFIG_DIR } from "./utils-Bo1RFF0l.js";
3
+ import { A as isPathInside, k as isNotFoundPathError } from "./workspace-CswOYN9T.js";
4
+ import { H as loadConfig, ht as normalizeIpAddress, mt as isPrivateOrLoopbackIpAddress, pt as isLoopbackIpAddress } from "./model-selection-DfZMxaX3.js";
5
+ import { a as isErrno } from "./errors-Ct2kCLWx.js";
6
+ import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-CM9EhGvi.js";
7
+ import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-Drg9J503.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 syncFs from "node:fs";
11
+ import fs$1 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";
15
15
  import http, { createServer } from "node:http";
16
16
  import https from "node:https";
17
- import WebSocket$1, { WebSocketServer } from "ws";
17
+ import WebSocket, { WebSocketServer } from "ws";
18
18
  import { Buffer as Buffer$1 } from "node:buffer";
19
19
 
20
20
  //#region src/browser/constants.ts
@@ -593,7 +593,7 @@ async function ensureChromeExtensionRelayServer(opts) {
593
593
  let extensionWs = null;
594
594
  const cdpClients = /* @__PURE__ */ new Set();
595
595
  const connectedTargets = /* @__PURE__ */ new Map();
596
- const extensionConnected = () => extensionWs?.readyState === WebSocket$1.OPEN;
596
+ const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
597
597
  const hasConnectedTargets = () => connectedTargets.size > 0;
598
598
  let extensionDisconnectCleanupTimer = null;
599
599
  const extensionReconnectWaiters = /* @__PURE__ */ new Set();
@@ -645,7 +645,7 @@ async function ensureChromeExtensionRelayServer(opts) {
645
645
  let nextExtensionId = 1;
646
646
  const sendToExtension = async (payload) => {
647
647
  const ws = extensionWs;
648
- if (!ws || ws.readyState !== WebSocket$1.OPEN) throw new Error("Chrome extension not connected");
648
+ if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
649
649
  ws.send(JSON.stringify(payload));
650
650
  return await new Promise((resolve, reject) => {
651
651
  const timer = setTimeout(() => {
@@ -662,12 +662,12 @@ async function ensureChromeExtensionRelayServer(opts) {
662
662
  const broadcastToCdpClients = (evt) => {
663
663
  const msg = JSON.stringify(evt);
664
664
  for (const ws of cdpClients) {
665
- if (ws.readyState !== WebSocket$1.OPEN) continue;
665
+ if (ws.readyState !== WebSocket.OPEN) continue;
666
666
  ws.send(msg);
667
667
  }
668
668
  };
669
669
  const sendResponseToCdp = (ws, res) => {
670
- if (ws.readyState !== WebSocket$1.OPEN) return;
670
+ if (ws.readyState !== WebSocket.OPEN) return;
671
671
  ws.send(JSON.stringify(res));
672
672
  };
673
673
  const dropConnectedTargetSession = (sessionId) => {
@@ -921,7 +921,7 @@ async function ensureChromeExtensionRelayServer(opts) {
921
921
  rejectUpgrade(socket, 401, "Unauthorized");
922
922
  return;
923
923
  }
924
- if (extensionWs && extensionWs.readyState !== WebSocket$1.OPEN) {
924
+ if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
925
925
  try {
926
926
  extensionWs.terminate();
927
927
  } catch {}
@@ -954,7 +954,7 @@ async function ensureChromeExtensionRelayServer(opts) {
954
954
  clearExtensionDisconnectCleanupTimer();
955
955
  flushExtensionReconnectWaiters(true);
956
956
  const ping = setInterval(() => {
957
- if (ws.readyState !== WebSocket$1.OPEN) return;
957
+ if (ws.readyState !== WebSocket.OPEN) return;
958
958
  ws.send(JSON.stringify({ method: "ping" }));
959
959
  }, 5e3);
960
960
  ws.on("message", (data) => {
@@ -1310,7 +1310,7 @@ function openCdpWebSocket(wsUrl, opts) {
1310
1310
  const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
1311
1311
  const handshakeTimeoutMs = typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : CDP_WS_HANDSHAKE_TIMEOUT_MS;
1312
1312
  const agent = getDirectAgentForCdp(wsUrl);
1313
- return new WebSocket$1(wsUrl, {
1313
+ return new WebSocket(wsUrl, {
1314
1314
  handshakeTimeout: handshakeTimeoutMs,
1315
1315
  ...Object.keys(headers).length ? { headers } : {},
1316
1316
  ...agent ? { agent } : {}
@@ -1595,7 +1595,7 @@ const CHROMIUM_EXE_NAMES = new Set([
1595
1595
  ]);
1596
1596
  function exists$1(filePath) {
1597
1597
  try {
1598
- return syncFs.existsSync(filePath);
1598
+ return fs$1.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 = syncFs.readFileSync(desktopPath, "utf8").split(/\r?\n/);
1741
+ const lines = fs$1.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
- syncFs.accessSync(candidate, syncFs.constants.X_OK);
1999
+ fs$1.accessSync(candidate, fs$1.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 (!syncFs.existsSync(filePath)) return null;
2045
- const raw = syncFs.readFileSync(filePath, "utf-8");
2044
+ if (!fs$1.existsSync(filePath)) return null;
2045
+ const raw = fs$1.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
- syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
2055
- syncFs.writeFileSync(filePath, JSON.stringify(data, null, 2));
2054
+ fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
2055
+ fs$1.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
- syncFs.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
2182
+ fs$1.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 syncFs.existsSync(filePath);
2198
+ return fs$1.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
- syncFs.mkdirSync(userDataDir, { recursive: true });
2296
+ fs$1.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-pbgFFUNm.js";
4
+ import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-DB68nc40.js";
5
5
 
6
6
  //#region src/markdown/fences.ts
7
7
  function parseFenceSpans(buffer) {
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
2
  import { F as getPrimaryCommand, R as hasHelpOrVersion } from "./globals-B68W7uN8.js";
3
- import { i as registerSubCliCommands, o as removeCommandByName, s as reparseProgramFromActionArgs } from "./register.subclis-DkDc3aKk.js";
3
+ import { i as registerSubCliCommands, o as removeCommandByName, s as reparseProgramFromActionArgs } from "./register.subclis-BSGvOwqU.js";
4
4
 
5
5
  //#region src/cli/program/command-registry.ts
6
6
  var command_registry_exports = /* @__PURE__ */ __exportAll({
@@ -22,7 +22,7 @@ const coreEntries = [
22
22
  hasSubcommands: false
23
23
  }],
24
24
  register: async ({ program }) => {
25
- (await import("./register.init-BXkISfms.js")).registerInitCommand(program);
25
+ (await import("./register.init-BdPckTb9.js")).registerInitCommand(program);
26
26
  }
27
27
  },
28
28
  {
@@ -42,7 +42,7 @@ const coreEntries = [
42
42
  hasSubcommands: false
43
43
  }],
44
44
  register: async ({ program }) => {
45
- (await import("./register.setup-qYawYgIM.js")).registerSetupCommand(program);
45
+ (await import("./register.setup-KPZYo_I1.js")).registerSetupCommand(program);
46
46
  }
47
47
  },
48
48
  {
@@ -52,7 +52,7 @@ const coreEntries = [
52
52
  hasSubcommands: false
53
53
  }],
54
54
  register: async ({ program }) => {
55
- (await import("./register.onboard--_sGklZ6.js")).registerOnboardCommand(program);
55
+ (await import("./register.onboard-DOhvWYV7.js")).registerOnboardCommand(program);
56
56
  }
57
57
  },
58
58
  {
@@ -99,7 +99,7 @@ const coreEntries = [
99
99
  }
100
100
  ],
101
101
  register: async ({ program }) => {
102
- (await import("./register.maintenance-FKHpDu3E.js")).registerMaintenanceCommands(program);
102
+ (await import("./register.maintenance-DvWoKstb.js")).registerMaintenanceCommands(program);
103
103
  }
104
104
  },
105
105
  {
@@ -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-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-Bm23mfim.js";
6
- import { r as normalizeChannelId } from "./plugins-CJoaoIHc.js";
2
+ import { C as isPlainObject, o as escapeRegExp } from "./utils-Bo1RFF0l.js";
3
+ import { Bn as DEFAULT_PROVIDER, u as resolveConfiguredModelRef, zn as DEFAULT_MODEL } from "./model-selection-DfZMxaX3.js";
4
+ import { c as getActivePluginRegistry } from "./registry-C2GEGa2t.js";
5
+ import { n as listChannelDocks } from "./dock-DXlPVrMo.js";
6
+ import { r as normalizeChannelId } from "./plugins-D63QYxW6.js";
7
7
  import { r as listThinkingLevels } from "./thinking-BcOnJa2q.js";
8
8
 
9
9
  //#region src/config/commands.ts
@@ -4,7 +4,7 @@ import { p as theme } from "./globals-uLeGcRW1.js";
4
4
  import { h as pathExists } from "./utils-CP51tiAi.js";
5
5
  import { i as routeLogsToStderr } from "./subsystem-BT74-yyS.js";
6
6
  import { t as formatDocsLink } from "./links-BmPrxqtc.js";
7
- import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-CqvVc2Bn.js";
7
+ import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-BJQXRZ1w.js";
8
8
  import os from "node:os";
9
9
  import path from "node:path";
10
10
  import fs from "node:fs/promises";
@@ -4,8 +4,8 @@ import { g as resolveStateDir } from "./paths-BnKiOk2S.js";
4
4
  import { i as routeLogsToStderr } from "./subsystem-DjdBljTA.js";
5
5
  import { m as pathExists } from "./utils-DIzy5B5o.js";
6
6
  import { t as formatDocsLink } from "./links-CbS2yOg-.js";
7
- import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-DkDc3aKk.js";
8
- import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry-DshPN0jE.js";
7
+ import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-BSGvOwqU.js";
8
+ import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry-BSN6zVlZ.js";
9
9
  import { t as getProgramContext } from "./program-context-BqyLhTGk.js";
10
10
  import path from "node:path";
11
11
  import os from "node:os";
@@ -1,21 +1,21 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { c as resolveStateDir } from "./paths-aGRLvQx9.js";
3
- import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-BRjuJbbM.js";
2
+ import { c as resolveStateDir } from "./paths-DKuX7-1L.js";
3
+ import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-CAatx5oo.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-yQe6H47q.js";
6
- import { c as getActivePluginRegistry, u as getActivePluginRegistryVersion } from "./registry-CJCkqTms.js";
7
- import { t as getChannelDock } from "./dock-Bm23mfim.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";
5
+ import { a as triggerInternalHook, t as createInternalHookEvent } from "./internal-hooks-oLQ2m8YT.js";
6
+ import { c as getActivePluginRegistry, u as getActivePluginRegistryVersion } from "./registry-C2GEGa2t.js";
7
+ import { t as getChannelDock } from "./dock-DXlPVrMo.js";
8
+ import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-BvzZdrVJ.js";
9
+ import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-D63QYxW6.js";
10
10
  import { n as generateSecureUuid } from "./secure-random-CY3Mg7Dp.js";
11
- import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-Bo7e-QzJ.js";
12
- import { i as resolveMirroredTranscriptText, r as appendAssistantMessageToSessionTranscript, w as parseInlineDirectives } from "./sessions-D7EjW0sG.js";
13
- import { i as getAgentScopedMediaLocalRoots } from "./fetch-4RonjgqX.js";
14
- import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-2ZxftpDd.js";
15
- import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
16
- import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-BpyiQEov.js";
11
+ import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-DSPiPpLM.js";
12
+ import { i as resolveMirroredTranscriptText, r as appendAssistantMessageToSessionTranscript, w as parseInlineDirectives } from "./sessions-Ck4ZR4dY.js";
13
+ import { i as getAgentScopedMediaLocalRoots } from "./fetch-2cO0rj7X.js";
14
+ import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-Dfkbh8wX.js";
15
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-pfs_NCNh.js";
16
+ import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-DC_e_Iev.js";
17
17
  import path from "node:path";
18
- import syncFs from "node:fs";
18
+ import fs 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 syncFs.promises.mkdir(queueDir, {
1057
+ await fs.promises.mkdir(queueDir, {
1058
1058
  recursive: true,
1059
1059
  mode: 448
1060
1060
  });
1061
- await syncFs.promises.mkdir(resolveFailedDir(stateDir), {
1061
+ await fs.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 syncFs.promises.writeFile(tmp, json, {
1088
+ await fs.promises.writeFile(tmp, json, {
1089
1089
  encoding: "utf-8",
1090
1090
  mode: 384
1091
1091
  });
1092
- await syncFs.promises.rename(tmp, filePath);
1092
+ await fs.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 syncFs.promises.unlink(filePath);
1099
+ await fs.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 syncFs.promises.readFile(filePath, "utf-8");
1107
+ const raw = await fs.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 syncFs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
1113
+ await fs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
1114
1114
  encoding: "utf-8",
1115
1115
  mode: 384
1116
1116
  });
1117
- await syncFs.promises.rename(tmp, filePath);
1117
+ await fs.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-BRjuJbbM.js";
3
- import { H as loadConfig } from "./model-selection-D_Si2Ict.js";
2
+ import { t as createSubsystemLogger } from "./subsystem-CAatx5oo.js";
3
+ import { H as loadConfig } from "./model-selection-DfZMxaX3.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-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";
2
+ import { d as normalizeE164, o as escapeRegExp } from "./utils-Bo1RFF0l.js";
3
+ import { d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, r as getChatChannelMeta } from "./registry-C2GEGa2t.js";
4
+ import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, d as resolveSlackAccount, f as resolveSlackReplyToMode, l as resolveTelegramAccount } from "./plugins-D63QYxW6.js";
5
+ import { n as resolveWhatsAppAccount } from "./accounts-CaiECgq3.js";
6
6
  import { t as resolveAccountEntry } from "./account-lookup-JrULBwdR.js";
7
- import { n as resolveSignalAccount } from "./accounts-BTexwKe8.js";
8
- import { t as resolveIMessageAccount } from "./accounts-DMvETf-t.js";
7
+ import { n as resolveSignalAccount } from "./accounts-CX1yOBOk.js";
8
+ import { t as resolveIMessageAccount } from "./accounts-Bwq1wvds.js";
9
9
 
10
10
  //#region src/config/types.tools.ts
11
11
  const TOOLS_BY_SENDER_KEY_TYPES = [
@@ -1,7 +1,7 @@
1
1
  import { S as resolveCliName } from "./paths-BnKiOk2S.js";
2
2
  import { y as resolveOpenClawPackageRoot } from "./workspace-BHfqkuYN.js";
3
3
  import { t as note } from "./note-qHayYqee.js";
4
- import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-Ds2kVMMx.js";
4
+ import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-lZ6S6oKA.js";
5
5
  import { spawnSync } from "node:child_process";
6
6
  import path from "node:path";
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { S as resolveCliName } from "./paths-BYr-iJJ9.js";
2
2
  import { y as resolveOpenClawPackageRoot } from "./workspace-CRdln__H.js";
3
3
  import { t as note } from "./note-CvWjGRTD.js";
4
- import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-BD1Wf-K1.js";
4
+ import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-BDeiV4p9.js";
5
5
  import path from "node:path";
6
6
  import { spawnSync } from "node:child_process";
7
7
 
package/dist/entry.js CHANGED
@@ -384,7 +384,7 @@ if (!isMainModule({
384
384
  }
385
385
  function tryHandleRootHelpFastPath(argv) {
386
386
  if (!isRootHelpInvocation(argv)) return false;
387
- import("./program-BTBw45uK.js").then(({ buildProgram }) => {
387
+ import("./program-B_-eFyJE.js").then(({ buildProgram }) => {
388
388
  buildProgram().outputHelp();
389
389
  }).catch((error) => {
390
390
  console.error("[openclaw] Failed to display help:", error instanceof Error ? error.stack ?? error.message : error);
@@ -403,7 +403,7 @@ if (!isMainModule({
403
403
  applyCliProfileEnv({ profile: parsed.profile });
404
404
  process$1.argv = parsed.argv;
405
405
  }
406
- if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-VaM4RFaa.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
406
+ if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-CdI1kXKr.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
407
407
  console.error("[openclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
408
408
  process$1.exitCode = 1;
409
409
  });
@@ -1,5 +1,5 @@
1
- import { f as replaceCliName, p as resolveCliName } from "./paths-aGRLvQx9.js";
2
- import { t as createSubsystemLogger } from "./subsystem-BRjuJbbM.js";
1
+ import { f as replaceCliName, p as resolveCliName } from "./paths-DKuX7-1L.js";
2
+ import { t as createSubsystemLogger } from "./subsystem-CAatx5oo.js";
3
3
  import { t as parseBooleanValue } from "./boolean-mcn6kL0s.js";
4
4
 
5
5
  //#region src/cli/profile-utils.ts
@@ -1,4 +1,4 @@
1
- import { t as redactSensitiveText } from "./redact-CaZQhKzI.js";
1
+ import { t as redactSensitiveText } from "./redact-BC9R18Uw.js";
2
2
 
3
3
  //#region src/infra/errors.ts
4
4
  function extractErrorCode(err) {
@@ -1,8 +1,8 @@
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-B1EGEHan.js";
1
+ import { s as resolveAgentWorkspaceDir } from "./agent-scope-CTbRzU1C.js";
2
+ import { c as resolveStateDir } from "./paths-DKuX7-1L.js";
3
+ import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-CAatx5oo.js";
4
+ import { c as detectMime, l as extensionForMime } from "./image-ops-jvmQoiyw.js";
5
+ import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-iigSYt3Q.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-BlH5MJiV.js";
2
- import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-ynOWOBHx.js";
1
+ import { i as logWarn } from "./logger-DelEB7MK.js";
2
+ import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-Drg9J503.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 syncFs from "node:fs";
4
+ import fs 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
- syncFs.accessSync(candidate, syncFs.constants.X_OK);
96
+ fs.accessSync(candidate, fs.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-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-Cpb5gMG6.js";
1
+ import { l as expandHomePrefix } from "./paths-DKuX7-1L.js";
2
+ import { A as isPathInside, O as hasNodeErrorCode, j as isSymlinkOpenError, k as isNotFoundPathError, w as sameFileIdentity } from "./workspace-CswOYN9T.js";
3
+ import { i as logWarn } from "./logger-DelEB7MK.js";
4
+ import { n as assertNoPathAliasEscape } from "./path-alias-guards-xY_GOJVd.js";
5
5
  import fs from "node:fs/promises";
6
6
  import os from "node:os";
7
7
  import path from "node:path";
@@ -161,7 +161,7 @@ import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t
161
161
  import { o as isBitseekBuild } from "./status.update-CMEQvQ5o.js";
162
162
  import { h as normalizeUpdateChannel, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-kALkWZk9.js";
163
163
  import { i as prepareSecretsRuntimeSnapshot, n as clearSecretsRuntimeSnapshot, r as getActiveSecretsRuntimeSnapshot, t as activateSecretsRuntimeSnapshot } from "./runtime-C-snrkmg.js";
164
- import { t as runOnboardingWizard } from "./onboarding-CjwEj4uN.js";
164
+ import { t as runOnboardingWizard } from "./onboarding-BRfS3PSa.js";
165
165
  import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-DZ0qaSFA.js";
166
166
  import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-DwofK3RT.js";
167
167
  import { n as isNodeCommandAllowed, r as resolveNodeCommandAllowlist } from "./node-command-policy-MaQhBrGC.js";
@@ -162,7 +162,7 @@ import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t
162
162
  import { o as isBitseekBuild } from "./status.update-BX7tZJju.js";
163
163
  import { h as normalizeUpdateChannel, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-DSofwLgp.js";
164
164
  import { i as prepareSecretsRuntimeSnapshot, n as clearSecretsRuntimeSnapshot, r as getActiveSecretsRuntimeSnapshot, t as activateSecretsRuntimeSnapshot } from "./runtime-BKPQGwlu.js";
165
- import { t as runOnboardingWizard } from "./onboarding-_GD-DZHG.js";
165
+ import { t as runOnboardingWizard } from "./onboarding-JNyox6ZE.js";
166
166
  import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-DMeB2M_b.js";
167
167
  import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-C53ABYUi.js";
168
168
  import { n as isNodeCommandAllowed, r as resolveNodeCommandAllowlist } from "./node-command-policy-bP6LYXJe.js";
@@ -1,13 +1,13 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { c as resolveStateDir } from "./paths-aGRLvQx9.js";
2
+ import { c as resolveStateDir } from "./paths-DKuX7-1L.js";
3
3
  import path from "node:path";
4
- import syncFs from "node:fs";
4
+ import fs from "node:fs";
5
5
 
6
6
  //#region src/infra/json-file.ts
7
7
  function loadJsonFile(pathname) {
8
8
  try {
9
- if (!syncFs.existsSync(pathname)) return;
10
- const raw = syncFs.readFileSync(pathname, "utf8");
9
+ if (!fs.existsSync(pathname)) return;
10
+ const raw = fs.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 (!syncFs.existsSync(dir)) syncFs.mkdirSync(dir, {
18
+ if (!fs.existsSync(dir)) fs.mkdirSync(dir, {
19
19
  recursive: true,
20
20
  mode: 448
21
21
  });
22
- syncFs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
23
- syncFs.chmodSync(pathname, 384);
22
+ fs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
23
+ fs.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-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-DA46fxhD.js";
6
- import { F as sanitizeUserFacingText } from "./pi-embedded-helpers-Bo7e-QzJ.js";
7
- import { n as redactToolDetail } from "./redact-CaZQhKzI.js";
2
+ import { h as resolveAgentModelPrimaryValue, m as resolveAgentModelFallbackValues } from "./agent-scope-CTbRzU1C.js";
3
+ import { _ as shortenHomeInString, c as isRecord } from "./utils-Bo1RFF0l.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-DfZMxaX3.js";
5
+ import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-N7o4F93J.js";
6
+ import { F as sanitizeUserFacingText } from "./pi-embedded-helpers-DSPiPpLM.js";
7
+ import { n as redactToolDetail } from "./redact-BC9R18Uw.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,4 +1,4 @@
1
- import { y as runExec } from "./workspace-D6mrCnXi.js";
1
+ import { y as runExec } from "./workspace-CswOYN9T.js";
2
2
  import fs from "node:fs/promises";
3
3
  import os from "node:os";
4
4
  import path from "node:path";
package/dist/index.js CHANGED
@@ -127,7 +127,7 @@ import { t as isMainModule } from "./is-main-DMW049m8.js";
127
127
  import { t as ensureOpenClawCliOnPath } from "./path-env-B9XC36yo.js";
128
128
  import { t as assertSupportedRuntime } from "./runtime-guard-IbCMXYfp.js";
129
129
  import "./ports-QNTr2u5E.js";
130
- import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-CqvVc2Bn.js";
130
+ import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-BJQXRZ1w.js";
131
131
  import "./plugin-registry-2CmN8Jv2.js";
132
132
  import { n as resolveCliChannelOptions } from "./channel-options-Didnr81h.js";
133
133
  import process$1 from "node:process";
@@ -1,4 +1,4 @@
1
- import { t as createSubsystemLogger } from "./subsystem-BRjuJbbM.js";
1
+ import { t as createSubsystemLogger } from "./subsystem-CAatx5oo.js";
2
2
 
3
3
  //#region src/hooks/internal-hooks.ts
4
4
  /**
@@ -1,9 +1,9 @@
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-C77EShMC.js";
5
- import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-4RonjgqX.js";
6
- import { a as chunkText } from "./chunk-2ZxftpDd.js";
1
+ import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-CAatx5oo.js";
2
+ import { h as resolveUserPath } from "./utils-Bo1RFF0l.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-jvmQoiyw.js";
4
+ import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-CM9EhGvi.js";
5
+ import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-2cO0rj7X.js";
6
+ import { a as chunkText } from "./chunk-Dfkbh8wX.js";
7
7
  import fs from "node:fs/promises";
8
8
  import path from "node:path";
9
9
  import { fileURLToPath } from "node:url";