@hanzo/bot 2026.3.8 → 2026.3.9

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 (150) hide show
  1. package/dist/{accounts-Cp7zE1zb.js → accounts-B-9Bhdn6.js} +17 -17
  2. package/dist/{accounts-B4Cft76I.js → accounts-C2vo5fEt.js} +2 -2
  3. package/dist/{accounts-C_LXSS3x.js → accounts-DNligSyz.js} +2 -2
  4. package/dist/{active-listener-BR7vpJxr.js → active-listener-zLV9i9LQ.js} +2 -2
  5. package/dist/{api-key-rotation-iYITGuLK.js → api-key-rotation-BENZC8ep.js} +2 -2
  6. package/dist/{audio-preflight-BEc8i-bS.js → audio-preflight-Bd44yEnM.js} +32 -32
  7. package/dist/{audio-transcription-runner-X1KzI7dF.js → audio-transcription-runner-CsXaWVup.js} +12 -12
  8. package/dist/{audit-membership-runtime-CVVxrZ7j.js → audit-membership-runtime-BJ149bTU.js} +4 -4
  9. package/dist/build-info.json +3 -3
  10. package/dist/bundled/boot-md/handler.js +51 -51
  11. package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
  12. package/dist/bundled/command-logger/handler.js +2 -2
  13. package/dist/bundled/session-memory/handler.js +51 -51
  14. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  15. package/dist/{channel-activity-DR4SiHcg.js → channel-activity-DO-d_jr4.js} +3 -3
  16. package/dist/{chrome-C7OwLtx9.js → chrome-hkgY24uS.js} +26 -26
  17. package/dist/{commands-registry-Ce7SJnAP.js → commands-registry-C6INZSSX.js} +4 -4
  18. package/dist/{deliver-D8dBbzpu.js → deliver-B1PE5Kmq.js} +21 -21
  19. package/dist/deliver-runtime-L42k3QaI.js +36 -0
  20. package/dist/deps-send-discord.runtime-DSqcSnN3.js +26 -0
  21. package/dist/deps-send-imessage.runtime-Ch2ZcE2r.js +25 -0
  22. package/dist/deps-send-signal.runtime-c-v7bD8y.js +24 -0
  23. package/dist/deps-send-slack.runtime-xA-JRpSq.js +22 -0
  24. package/dist/deps-send-telegram.runtime-CO2npp7q.js +27 -0
  25. package/dist/deps-send-whatsapp.runtime-wvdxQphB.js +60 -0
  26. package/dist/{diagnostic-D1IbJfJM.js → diagnostic-Do7hUiao.js} +2 -2
  27. package/dist/entry.js +14 -7
  28. package/dist/{errors-CHd6Q-vF.js → errors-DDrhcWHi.js} +1 -1
  29. package/dist/{fetch-C6doVJxZ.js → fetch-BETRLmK8.js} +5 -5
  30. package/dist/{fetch-guard-C-neMX4E.js → fetch-guard-pwJ-F5aP.js} +2 -2
  31. package/dist/{frontmatter-B6XNqDx2.js → frontmatter-BFHzrAY7.js} +3 -3
  32. package/dist/{fs-safe-DmeSz0Nd.js → fs-safe-CeZ_BXcn.js} +4 -4
  33. package/dist/{github-copilot-token-BDioPmd6.js → github-copilot-token-D13V9YBz.js} +7 -7
  34. package/dist/{image-BOybyCis.js → image-DJo3nF6e.js} +6 -6
  35. package/dist/{image-ops-C-QWxnVw.js → image-ops-CLQ9abCf.js} +2 -2
  36. package/dist/image-runtime-Bd2-_2Fa.js +29 -0
  37. package/dist/{ir-B0iARYlT.js → ir-9Bn85Mqy.js} +8 -8
  38. package/dist/{legacy-names-DZdACm3t.js → legacy-names-Bkl4tjN-.js} +1 -1
  39. package/dist/llm-slug-generator.js +51 -51
  40. package/dist/{logger-LCC1m_20.js → logger-D4RcXHR-.js} +7 -7
  41. package/dist/{login-BbBqhgOM.js → login-nNeuyFrd.js} +5 -5
  42. package/dist/{login-qr-AAX0vgZR.js → login-qr-BEawmd_E.js} +10 -10
  43. package/dist/{manager-BOyc7q1-.js → manager-Bq6y1TH8.js} +13 -13
  44. package/dist/manager-runtime-DNkH2nza.js +18 -0
  45. package/dist/{model-selection-BNMWRHZu.js → model-selection-DQ5NblsF.js} +43 -43
  46. package/dist/{outbound-C72ULCcI.js → outbound-CPL9ID8o.js} +6 -6
  47. package/dist/{outbound-attachment-BF1JVcCB.js → outbound-attachment-BmiVeNLr.js} +2 -2
  48. package/dist/{path-alias-guards-BCv18tKc.js → path-alias-guards-DBVdJRcc.js} +1 -1
  49. package/dist/{paths-Cvc9EM8Y.js → paths-C6TxBCvO.js} +5 -5
  50. package/dist/{paths-l8GkNRRD.js → paths-Cgd1FfOW.js} +4 -4
  51. package/dist/{pi-embedded-BHXPs-Ix.js → pi-embedded-BYfpUcIY.js} +168 -168
  52. package/dist/{pi-embedded-helpers-xIXwvwuE.js → pi-embedded-helpers-_OL4yNw0.js} +52 -52
  53. package/dist/{pi-model-discovery-Cucu_uXw.js → pi-model-discovery-DANpv7pw.js} +7 -7
  54. package/dist/pi-model-discovery-runtime-Dr5-MM2j.js +11 -0
  55. package/dist/{pi-tools.before-tool-call.runtime-DQ2d5nM_.js → pi-tools.before-tool-call.runtime-CLb1M0uM.js} +9 -9
  56. package/dist/plugin-sdk/discord.js +6 -6
  57. package/dist/{plugins-YJZX7mvv.js → plugins-CeflwBVL.js} +13 -13
  58. package/dist/{proxy-env-CreSu2Ej.js → proxy-env-zUD967XQ.js} +1 -1
  59. package/dist/{proxy-fetch-lxJGuoUa.js → proxy-fetch-ChfJDZwG.js} +1 -1
  60. package/dist/{pw-ai-DsYmOxCp.js → pw-ai-yR5naMge.js} +14 -14
  61. package/dist/{qmd-manager-5C5L5YNn.js → qmd-manager-CWAXF3Vk.js} +10 -10
  62. package/dist/{query-expansion-BeRz7_bo.js → query-expansion-Cbd21KuP.js} +6 -6
  63. package/dist/{redact-DqlKR0-n.js → redact-DGz6yigq.js} +1 -1
  64. package/dist/{run-with-concurrency-ffnO0KnQ.js → run-with-concurrency-kEFC1Fle.js} +4 -4
  65. package/dist/runtime-whatsapp-login.runtime-BKnJdTKn.js +13 -0
  66. package/dist/runtime-whatsapp-outbound.runtime-DZYgfcRc.js +22 -0
  67. package/dist/{send-CmVj590_.js → send-Bi_r7Hno.js} +7 -7
  68. package/dist/{send-BrlM68Dd.js → send-C4kartXc.js} +6 -6
  69. package/dist/{send-Cp6dmr2f.js → send-CisFoCif.js} +28 -28
  70. package/dist/{send-BXQ1U9Zk.js → send-DKjV2v4c.js} +5 -5
  71. package/dist/{send-CKIMBFLs.js → send-DqQOo6dv.js} +8 -8
  72. package/dist/{session-DoD05Mm8.js → session-U4Hk8Woy.js} +8 -8
  73. package/dist/{skill-commands-DGy6Juvb.js → skill-commands-BN9qtrxT.js} +9 -9
  74. package/dist/{skills-BDJUqEFI.js → skills-DgwotBrr.js} +22 -22
  75. package/dist/slash-commands.runtime-iBi9rbmg.js +16 -0
  76. package/dist/slash-dispatch.runtime-8okSdt7k.js +56 -0
  77. package/dist/slash-skill-commands.runtime-a4qnxIQp.js +20 -0
  78. package/dist/{store-cJlS-gR6.js → store-CNWtYorN.js} +2 -2
  79. package/dist/subagent-registry-runtime-C4H5Ofm0.js +56 -0
  80. package/dist/{subsystem-CdFYjh2k.js → subsystem-W834z9Wa.js} +14 -14
  81. package/dist/{tables-CgcFNr6G.js → tables-DBZFzS9x.js} +1 -1
  82. package/dist/{target-errors-DPj6Es2y.js → target-errors-CxUP9L6c.js} +2 -2
  83. package/dist/{thinking-C3b10cHs.js → thinking-Xlbm5WNq.js} +7 -7
  84. package/dist/{tokens-mtgzW7UN.js → tokens-Cyi-NbsV.js} +1 -1
  85. package/dist/{tool-images-D9pdW1gE.js → tool-images-D217wDXi.js} +2 -2
  86. package/dist/{web-CREcqhe9.js → web-o9PMPEDK.js} +55 -55
  87. package/dist/{whatsapp-actions-nZnQ4BwK.js → whatsapp-actions-DmKZmCkz.js} +21 -21
  88. package/dist/{workspace-BC5WA0Th.js → workspace-CPNwHoy5.js} +20 -20
  89. package/extensions/acpx/package.json +1 -1
  90. package/extensions/bluebubbles/package.json +1 -1
  91. package/extensions/ci-fix-loop/package.json +1 -1
  92. package/extensions/continuous-learning/package.json +1 -1
  93. package/extensions/copilot-proxy/package.json +1 -1
  94. package/extensions/diagnostics-otel/package.json +1 -1
  95. package/extensions/diffs/package.json +1 -1
  96. package/extensions/discord/package.json +1 -1
  97. package/extensions/feishu/package.json +1 -1
  98. package/extensions/flow/package.json +1 -1
  99. package/extensions/google-antigravity-auth/package.json +1 -1
  100. package/extensions/google-gemini-cli-auth/package.json +1 -1
  101. package/extensions/googlechat/package.json +1 -1
  102. package/extensions/imessage/package.json +1 -1
  103. package/extensions/irc/package.json +1 -1
  104. package/extensions/line/package.json +1 -1
  105. package/extensions/llm-task/package.json +1 -1
  106. package/extensions/lobster/package.json +1 -1
  107. package/extensions/matrix/CHANGELOG.md +5 -0
  108. package/extensions/matrix/package.json +1 -1
  109. package/extensions/mattermost/package.json +1 -1
  110. package/extensions/memory-core/package.json +1 -1
  111. package/extensions/memory-lancedb/package.json +1 -1
  112. package/extensions/minimax-portal-auth/package.json +1 -1
  113. package/extensions/msteams/CHANGELOG.md +5 -0
  114. package/extensions/msteams/package.json +1 -1
  115. package/extensions/nextcloud-talk/package.json +1 -1
  116. package/extensions/nostr/CHANGELOG.md +5 -0
  117. package/extensions/nostr/package.json +1 -1
  118. package/extensions/open-prose/package.json +1 -1
  119. package/extensions/self-improvement/package.json +1 -1
  120. package/extensions/signal/package.json +1 -1
  121. package/extensions/slack/package.json +1 -1
  122. package/extensions/synology-chat/package.json +1 -1
  123. package/extensions/telegram/package.json +1 -1
  124. package/extensions/tlon/package.json +1 -1
  125. package/extensions/twitch/CHANGELOG.md +5 -0
  126. package/extensions/twitch/package.json +1 -1
  127. package/extensions/voice-call/CHANGELOG.md +5 -0
  128. package/extensions/voice-call/package.json +1 -1
  129. package/extensions/whatsapp/package.json +1 -1
  130. package/extensions/zalo/CHANGELOG.md +5 -0
  131. package/extensions/zalo/package.json +1 -1
  132. package/extensions/zalouser/CHANGELOG.md +5 -0
  133. package/extensions/zalouser/package.json +1 -1
  134. package/package.json +2 -1
  135. package/dist/deliver-runtime-C76IMU4W.js +0 -36
  136. package/dist/deps-send-discord.runtime-BM3uHet5.js +0 -26
  137. package/dist/deps-send-imessage.runtime-CBlUhUeN.js +0 -25
  138. package/dist/deps-send-signal.runtime-DnH0lazO.js +0 -24
  139. package/dist/deps-send-slack.runtime-Dmq0lsvR.js +0 -22
  140. package/dist/deps-send-telegram.runtime-33sbp3Ol.js +0 -27
  141. package/dist/deps-send-whatsapp.runtime-Cv_awFtm.js +0 -60
  142. package/dist/image-runtime-y4msd5bn.js +0 -29
  143. package/dist/manager-runtime-20Upetpf.js +0 -18
  144. package/dist/pi-model-discovery-runtime-BcJAGnf4.js +0 -11
  145. package/dist/runtime-whatsapp-login.runtime-BcbYtLph.js +0 -13
  146. package/dist/runtime-whatsapp-outbound.runtime-MIKcURpN.js +0 -22
  147. package/dist/slash-commands.runtime-2kptrdDi.js +0 -16
  148. package/dist/slash-dispatch.runtime-D28-UnsO.js +0 -56
  149. package/dist/slash-skill-commands.runtime-6jUbSMOW.js +0 -20
  150. package/dist/subagent-registry-runtime-Bt-LYyrB.js +0 -56
@@ -1,20 +1,20 @@
1
- import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-CdFYjh2k.js";
2
- import { D as isNotFoundPathError, O as isPathInside } from "./workspace-BC5WA0Th.js";
3
- import { a as CONFIG_DIR } from "./logger-LCC1m_20.js";
4
- import { Ct as isLoopbackIpAddress, G as resolveSecretRefValues, Tt as normalizeIpAddress, Z as loadConfig, br as normalizeSecretInputString, pt as secretRefKey, wt as isPrivateOrLoopbackIpAddress, xr as resolveSecretInputRef } from "./model-selection-BNMWRHZu.js";
5
- import { a as isErrno } from "./errors-CHd6Q-vF.js";
6
- import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-DmeSz0Nd.js";
7
- import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-CreSu2Ej.js";
1
+ import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-W834z9Wa.js";
2
+ import { D as isNotFoundPathError, O as isPathInside } from "./workspace-CPNwHoy5.js";
3
+ import { a as CONFIG_DIR } from "./logger-D4RcXHR-.js";
4
+ import { Ct as isLoopbackIpAddress, G as resolveSecretRefValues, Tt as normalizeIpAddress, Z as loadConfig, br as normalizeSecretInputString, pt as secretRefKey, wt as isPrivateOrLoopbackIpAddress, xr as resolveSecretInputRef } from "./model-selection-DQ5NblsF.js";
5
+ import { a as isErrno } from "./errors-DDrhcWHi.js";
6
+ import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-CeZ_BXcn.js";
7
+ import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-zUD967XQ.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 fs$1 from "node:fs";
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";
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
@@ -626,7 +626,7 @@ async function ensureChromeExtensionRelayServer(opts) {
626
626
  let extensionWs = null;
627
627
  const cdpClients = /* @__PURE__ */ new Set();
628
628
  const connectedTargets = /* @__PURE__ */ new Map();
629
- const extensionConnected = () => extensionWs?.readyState === WebSocket$1.OPEN;
629
+ const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
630
630
  const hasConnectedTargets = () => connectedTargets.size > 0;
631
631
  let extensionDisconnectCleanupTimer = null;
632
632
  const extensionReconnectWaiters = /* @__PURE__ */ new Set();
@@ -678,7 +678,7 @@ async function ensureChromeExtensionRelayServer(opts) {
678
678
  let nextExtensionId = 1;
679
679
  const sendToExtension = async (payload) => {
680
680
  const ws = extensionWs;
681
- if (!ws || ws.readyState !== WebSocket$1.OPEN) throw new Error("Chrome extension not connected");
681
+ if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
682
682
  ws.send(JSON.stringify(payload));
683
683
  return await new Promise((resolve, reject) => {
684
684
  const timer = setTimeout(() => {
@@ -695,12 +695,12 @@ async function ensureChromeExtensionRelayServer(opts) {
695
695
  const broadcastToCdpClients = (evt) => {
696
696
  const msg = JSON.stringify(evt);
697
697
  for (const ws of cdpClients) {
698
- if (ws.readyState !== WebSocket$1.OPEN) continue;
698
+ if (ws.readyState !== WebSocket.OPEN) continue;
699
699
  ws.send(msg);
700
700
  }
701
701
  };
702
702
  const sendResponseToCdp = (ws, res) => {
703
- if (ws.readyState !== WebSocket$1.OPEN) return;
703
+ if (ws.readyState !== WebSocket.OPEN) return;
704
704
  ws.send(JSON.stringify(res));
705
705
  };
706
706
  const dropConnectedTargetSession = (sessionId) => {
@@ -954,7 +954,7 @@ async function ensureChromeExtensionRelayServer(opts) {
954
954
  rejectUpgrade(socket, 401, "Unauthorized");
955
955
  return;
956
956
  }
957
- if (extensionWs && extensionWs.readyState !== WebSocket$1.OPEN) {
957
+ if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
958
958
  try {
959
959
  extensionWs.terminate();
960
960
  } catch {}
@@ -987,7 +987,7 @@ async function ensureChromeExtensionRelayServer(opts) {
987
987
  clearExtensionDisconnectCleanupTimer();
988
988
  flushExtensionReconnectWaiters(true);
989
989
  const ping = setInterval(() => {
990
- if (ws.readyState !== WebSocket$1.OPEN) return;
990
+ if (ws.readyState !== WebSocket.OPEN) return;
991
991
  ws.send(JSON.stringify({ method: "ping" }));
992
992
  }, 5e3);
993
993
  ws.on("message", (data) => {
@@ -1343,7 +1343,7 @@ function openCdpWebSocket(wsUrl, opts) {
1343
1343
  const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
1344
1344
  const handshakeTimeoutMs = typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : CDP_WS_HANDSHAKE_TIMEOUT_MS;
1345
1345
  const agent = getDirectAgentForCdp(wsUrl);
1346
- return new WebSocket$1(wsUrl, {
1346
+ return new WebSocket(wsUrl, {
1347
1347
  handshakeTimeout: handshakeTimeoutMs,
1348
1348
  ...Object.keys(headers).length ? { headers } : {},
1349
1349
  ...agent ? { agent } : {}
@@ -1628,7 +1628,7 @@ const CHROMIUM_EXE_NAMES = new Set([
1628
1628
  ]);
1629
1629
  function exists$1(filePath) {
1630
1630
  try {
1631
- return fs$1.existsSync(filePath);
1631
+ return syncFs.existsSync(filePath);
1632
1632
  } catch {
1633
1633
  return false;
1634
1634
  }
@@ -1771,7 +1771,7 @@ function findDesktopFilePath(desktopId) {
1771
1771
  }
1772
1772
  function readDesktopExecLine(desktopPath) {
1773
1773
  try {
1774
- const lines = fs$1.readFileSync(desktopPath, "utf8").split(/\r?\n/);
1774
+ const lines = syncFs.readFileSync(desktopPath, "utf8").split(/\r?\n/);
1775
1775
  for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
1776
1776
  } catch {}
1777
1777
  return null;
@@ -2029,7 +2029,7 @@ function resolveBrowserExecutableForPlatform(resolved, platform) {
2029
2029
  const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
2030
2030
  function resolveLsofCommandSync() {
2031
2031
  for (const candidate of LSOF_CANDIDATES) try {
2032
- fs$1.accessSync(candidate, fs$1.constants.X_OK);
2032
+ syncFs.accessSync(candidate, syncFs.constants.X_OK);
2033
2033
  return candidate;
2034
2034
  } catch {}
2035
2035
  return "lsof";
@@ -2074,8 +2074,8 @@ function decoratedMarkerPath(userDataDir) {
2074
2074
  }
2075
2075
  function safeReadJson(filePath) {
2076
2076
  try {
2077
- if (!fs$1.existsSync(filePath)) return null;
2078
- const raw = fs$1.readFileSync(filePath, "utf-8");
2077
+ if (!syncFs.existsSync(filePath)) return null;
2078
+ const raw = syncFs.readFileSync(filePath, "utf-8");
2079
2079
  const parsed = JSON.parse(raw);
2080
2080
  if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
2081
2081
  return parsed;
@@ -2084,8 +2084,8 @@ function safeReadJson(filePath) {
2084
2084
  }
2085
2085
  }
2086
2086
  function safeWriteJson(filePath, data) {
2087
- fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
2088
- fs$1.writeFileSync(filePath, JSON.stringify(data, null, 2));
2087
+ syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
2088
+ syncFs.writeFileSync(filePath, JSON.stringify(data, null, 2));
2089
2089
  }
2090
2090
  function setDeep(obj, keys, value) {
2091
2091
  let node = obj;
@@ -2212,7 +2212,7 @@ function decorateOpenClawProfile(userDataDir, opts) {
2212
2212
  }
2213
2213
  safeWriteJson(preferencesPath, prefs);
2214
2214
  try {
2215
- fs$1.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
2215
+ syncFs.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
2216
2216
  } catch {}
2217
2217
  }
2218
2218
  function ensureProfileCleanExit(userDataDir) {
@@ -2228,7 +2228,7 @@ function ensureProfileCleanExit(userDataDir) {
2228
2228
  const log = createSubsystemLogger("browser").child("chrome");
2229
2229
  function exists(filePath) {
2230
2230
  try {
2231
- return fs$1.existsSync(filePath);
2231
+ return syncFs.existsSync(filePath);
2232
2232
  } catch {
2233
2233
  return false;
2234
2234
  }
@@ -2326,7 +2326,7 @@ async function launchOpenClawChrome(resolved, profile) {
2326
2326
  const exe = resolveBrowserExecutable(resolved);
2327
2327
  if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
2328
2328
  const userDataDir = resolveOpenClawUserDataDir(profile.name);
2329
- fs$1.mkdirSync(userDataDir, { recursive: true });
2329
+ syncFs.mkdirSync(userDataDir, { recursive: true });
2330
2330
  const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_OPENCLAW_BROWSER_COLOR).toUpperCase());
2331
2331
  const spawnOnce = () => {
2332
2332
  const args = [
@@ -1,7 +1,7 @@
1
- import { D as isPlainObject, u as escapeRegExp } from "./logger-LCC1m_20.js";
2
- import { Tr as DEFAULT_PROVIDER, Yt as getActivePluginRegistry, u as resolveConfiguredModelRef, wr as DEFAULT_MODEL } from "./model-selection-BNMWRHZu.js";
3
- import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-C3b10cHs.js";
4
- import { r as normalizeChannelId } from "./plugins-YJZX7mvv.js";
1
+ import { D as isPlainObject, u as escapeRegExp } from "./logger-D4RcXHR-.js";
2
+ import { Tr as DEFAULT_PROVIDER, Yt as getActivePluginRegistry, u as resolveConfiguredModelRef, wr as DEFAULT_MODEL } from "./model-selection-DQ5NblsF.js";
3
+ import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-Xlbm5WNq.js";
4
+ import { r as normalizeChannelId } from "./plugins-CeflwBVL.js";
5
5
 
6
6
  //#region src/config/commands.ts
7
7
  function resolveAutoDefault(providerId) {
@@ -1,19 +1,19 @@
1
- import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
2
- import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-CdFYjh2k.js";
3
- import { G as normalizeAccountId, K as normalizeOptionalAccountId } from "./workspace-BC5WA0Th.js";
4
- import { Yt as getActivePluginRegistry, Zt as getActivePluginRegistryVersion } from "./model-selection-BNMWRHZu.js";
5
- import { r as createInternalHookEvent, s as triggerInternalHook } from "./legacy-names-DZdACm3t.js";
6
- import { d as getChannelDock } from "./thinking-C3b10cHs.js";
7
- import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-mtgzW7UN.js";
8
- import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-YJZX7mvv.js";
1
+ import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
2
+ import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-W834z9Wa.js";
3
+ import { G as normalizeAccountId, K as normalizeOptionalAccountId } from "./workspace-CPNwHoy5.js";
4
+ import { Yt as getActivePluginRegistry, Zt as getActivePluginRegistryVersion } from "./model-selection-DQ5NblsF.js";
5
+ import { r as createInternalHookEvent, s as triggerInternalHook } from "./legacy-names-Bkl4tjN-.js";
6
+ import { d as getChannelDock } from "./thinking-Xlbm5WNq.js";
7
+ import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-Cyi-NbsV.js";
8
+ import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CeflwBVL.js";
9
9
  import { n as generateSecureUuid } from "./secure-random-CXrBi7Jq.js";
10
10
  import { r as parseTelegramTarget } from "./targets-BiE9e9-P.js";
11
- import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, ct as parseInlineDirectives, i as isMessagingToolDuplicate } from "./pi-embedded-helpers-xIXwvwuE.js";
12
- import { i as getAgentScopedMediaLocalRoots } from "./fetch-C6doVJxZ.js";
13
- import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-B0iARYlT.js";
14
- import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-BXQ1U9Zk.js";
11
+ import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, ct as parseInlineDirectives, i as isMessagingToolDuplicate } from "./pi-embedded-helpers-_OL4yNw0.js";
12
+ import { i as getAgentScopedMediaLocalRoots } from "./fetch-BETRLmK8.js";
13
+ import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-9Bn85Mqy.js";
14
+ import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-DKjV2v4c.js";
15
15
  import path from "node:path";
16
- import fs from "node:fs";
16
+ import syncFs from "node:fs";
17
17
 
18
18
  //#region src/shared/text/join-segments.ts
19
19
  function concatOptionalTextSegments(params) {
@@ -1106,11 +1106,11 @@ function resolveFailedDir(stateDir) {
1106
1106
  /** Ensure the queue directory (and failed/ subdirectory) exist. */
1107
1107
  async function ensureQueueDir(stateDir) {
1108
1108
  const queueDir = resolveQueueDir(stateDir);
1109
- await fs.promises.mkdir(queueDir, {
1109
+ await syncFs.promises.mkdir(queueDir, {
1110
1110
  recursive: true,
1111
1111
  mode: 448
1112
1112
  });
1113
- await fs.promises.mkdir(resolveFailedDir(stateDir), {
1113
+ await syncFs.promises.mkdir(resolveFailedDir(stateDir), {
1114
1114
  recursive: true,
1115
1115
  mode: 448
1116
1116
  });
@@ -1137,18 +1137,18 @@ async function enqueueDelivery(params, stateDir) {
1137
1137
  const filePath = path.join(queueDir, `${id}.json`);
1138
1138
  const tmp = `${filePath}.${process.pid}.tmp`;
1139
1139
  const json = JSON.stringify(entry, null, 2);
1140
- await fs.promises.writeFile(tmp, json, {
1140
+ await syncFs.promises.writeFile(tmp, json, {
1141
1141
  encoding: "utf-8",
1142
1142
  mode: 384
1143
1143
  });
1144
- await fs.promises.rename(tmp, filePath);
1144
+ await syncFs.promises.rename(tmp, filePath);
1145
1145
  return id;
1146
1146
  }
1147
1147
  /** Remove a successfully delivered entry from the queue. */
1148
1148
  async function ackDelivery(id, stateDir) {
1149
1149
  const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
1150
1150
  try {
1151
- await fs.promises.unlink(filePath);
1151
+ await syncFs.promises.unlink(filePath);
1152
1152
  } catch (err) {
1153
1153
  if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
1154
1154
  }
@@ -1156,17 +1156,17 @@ async function ackDelivery(id, stateDir) {
1156
1156
  /** Update a queue entry after a failed delivery attempt. */
1157
1157
  async function failDelivery(id, error, stateDir) {
1158
1158
  const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
1159
- const raw = await fs.promises.readFile(filePath, "utf-8");
1159
+ const raw = await syncFs.promises.readFile(filePath, "utf-8");
1160
1160
  const entry = JSON.parse(raw);
1161
1161
  entry.retryCount += 1;
1162
1162
  entry.lastAttemptAt = Date.now();
1163
1163
  entry.lastError = error;
1164
1164
  const tmp = `${filePath}.${process.pid}.tmp`;
1165
- await fs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
1165
+ await syncFs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
1166
1166
  encoding: "utf-8",
1167
1167
  mode: 384
1168
1168
  });
1169
- await fs.promises.rename(tmp, filePath);
1169
+ await syncFs.promises.rename(tmp, filePath);
1170
1170
  }
1171
1171
 
1172
1172
  //#endregion
@@ -0,0 +1,36 @@
1
+ import "./run-with-concurrency-kEFC1Fle.js";
2
+ import "./paths-C6TxBCvO.js";
3
+ import "./subsystem-W834z9Wa.js";
4
+ import "./workspace-CPNwHoy5.js";
5
+ import "./logger-D4RcXHR-.js";
6
+ import "./model-selection-DQ5NblsF.js";
7
+ import "./github-copilot-token-D13V9YBz.js";
8
+ import "./legacy-names-Bkl4tjN-.js";
9
+ import "./thinking-Xlbm5WNq.js";
10
+ import "./tokens-Cyi-NbsV.js";
11
+ import "./accounts-B-9Bhdn6.js";
12
+ import "./plugins-CeflwBVL.js";
13
+ import { t as deliverOutboundPayloads } from "./deliver-B1PE5Kmq.js";
14
+ import "./accounts-DNligSyz.js";
15
+ import "./image-ops-CLQ9abCf.js";
16
+ import "./pi-embedded-helpers-_OL4yNw0.js";
17
+ import "./chrome-hkgY24uS.js";
18
+ import "./frontmatter-BFHzrAY7.js";
19
+ import "./skills-DgwotBrr.js";
20
+ import "./path-alias-guards-DBVdJRcc.js";
21
+ import "./redact-DGz6yigq.js";
22
+ import "./errors-DDrhcWHi.js";
23
+ import "./fs-safe-CeZ_BXcn.js";
24
+ import "./proxy-env-zUD967XQ.js";
25
+ import "./store-CNWtYorN.js";
26
+ import "./accounts-C2vo5fEt.js";
27
+ import "./paths-Cgd1FfOW.js";
28
+ import "./tool-images-D217wDXi.js";
29
+ import "./fetch-BETRLmK8.js";
30
+ import "./fetch-guard-pwJ-F5aP.js";
31
+ import "./ir-9Bn85Mqy.js";
32
+ import "./fetch-BfuG8uZ8.js";
33
+ import "./send-DKjV2v4c.js";
34
+ import "./outbound-attachment-BmiVeNLr.js";
35
+
36
+ export { deliverOutboundPayloads };
@@ -0,0 +1,26 @@
1
+ import "./run-with-concurrency-kEFC1Fle.js";
2
+ import "./paths-C6TxBCvO.js";
3
+ import "./subsystem-W834z9Wa.js";
4
+ import "./workspace-CPNwHoy5.js";
5
+ import "./logger-D4RcXHR-.js";
6
+ import "./model-selection-DQ5NblsF.js";
7
+ import "./github-copilot-token-D13V9YBz.js";
8
+ import "./legacy-names-Bkl4tjN-.js";
9
+ import "./accounts-B-9Bhdn6.js";
10
+ import "./plugins-CeflwBVL.js";
11
+ import { h as sendMessageDiscord } from "./send-DqQOo6dv.js";
12
+ import "./image-ops-CLQ9abCf.js";
13
+ import "./path-alias-guards-DBVdJRcc.js";
14
+ import "./redact-DGz6yigq.js";
15
+ import "./errors-DDrhcWHi.js";
16
+ import "./fs-safe-CeZ_BXcn.js";
17
+ import "./proxy-env-zUD967XQ.js";
18
+ import "./fetch-BETRLmK8.js";
19
+ import "./fetch-guard-pwJ-F5aP.js";
20
+ import "./ir-9Bn85Mqy.js";
21
+ import "./render-DW7AcFdD.js";
22
+ import "./fetch-BfuG8uZ8.js";
23
+ import "./channel-activity-DO-d_jr4.js";
24
+ import "./tables-DBZFzS9x.js";
25
+
26
+ export { sendMessageDiscord };
@@ -0,0 +1,25 @@
1
+ import "./run-with-concurrency-kEFC1Fle.js";
2
+ import "./paths-C6TxBCvO.js";
3
+ import "./subsystem-W834z9Wa.js";
4
+ import "./workspace-CPNwHoy5.js";
5
+ import "./logger-D4RcXHR-.js";
6
+ import "./model-selection-DQ5NblsF.js";
7
+ import "./github-copilot-token-D13V9YBz.js";
8
+ import "./legacy-names-Bkl4tjN-.js";
9
+ import "./accounts-B-9Bhdn6.js";
10
+ import "./plugins-CeflwBVL.js";
11
+ import "./image-ops-CLQ9abCf.js";
12
+ import "./path-alias-guards-DBVdJRcc.js";
13
+ import "./fs-safe-CeZ_BXcn.js";
14
+ import "./proxy-env-zUD967XQ.js";
15
+ import "./store-CNWtYorN.js";
16
+ import "./accounts-C2vo5fEt.js";
17
+ import "./fetch-BETRLmK8.js";
18
+ import "./fetch-guard-pwJ-F5aP.js";
19
+ import "./ir-9Bn85Mqy.js";
20
+ import "./render-DW7AcFdD.js";
21
+ import "./tables-DBZFzS9x.js";
22
+ import "./outbound-attachment-BmiVeNLr.js";
23
+ import { t as sendMessageIMessage } from "./send-Bi_r7Hno.js";
24
+
25
+ export { sendMessageIMessage };
@@ -0,0 +1,24 @@
1
+ import "./run-with-concurrency-kEFC1Fle.js";
2
+ import "./paths-C6TxBCvO.js";
3
+ import "./subsystem-W834z9Wa.js";
4
+ import "./workspace-CPNwHoy5.js";
5
+ import "./logger-D4RcXHR-.js";
6
+ import "./model-selection-DQ5NblsF.js";
7
+ import "./github-copilot-token-D13V9YBz.js";
8
+ import "./legacy-names-Bkl4tjN-.js";
9
+ import "./accounts-B-9Bhdn6.js";
10
+ import "./plugins-CeflwBVL.js";
11
+ import "./accounts-DNligSyz.js";
12
+ import "./image-ops-CLQ9abCf.js";
13
+ import "./path-alias-guards-DBVdJRcc.js";
14
+ import "./fs-safe-CeZ_BXcn.js";
15
+ import "./proxy-env-zUD967XQ.js";
16
+ import "./store-CNWtYorN.js";
17
+ import "./fetch-BETRLmK8.js";
18
+ import "./fetch-guard-pwJ-F5aP.js";
19
+ import "./ir-9Bn85Mqy.js";
20
+ import "./fetch-BfuG8uZ8.js";
21
+ import { t as sendMessageSignal } from "./send-DKjV2v4c.js";
22
+ import "./outbound-attachment-BmiVeNLr.js";
23
+
24
+ export { sendMessageSignal };
@@ -0,0 +1,22 @@
1
+ import "./run-with-concurrency-kEFC1Fle.js";
2
+ import "./paths-C6TxBCvO.js";
3
+ import "./subsystem-W834z9Wa.js";
4
+ import "./workspace-CPNwHoy5.js";
5
+ import "./logger-D4RcXHR-.js";
6
+ import "./model-selection-DQ5NblsF.js";
7
+ import "./github-copilot-token-D13V9YBz.js";
8
+ import "./legacy-names-Bkl4tjN-.js";
9
+ import "./tokens-Cyi-NbsV.js";
10
+ import "./accounts-B-9Bhdn6.js";
11
+ import "./plugins-CeflwBVL.js";
12
+ import { t as sendMessageSlack } from "./send-C4kartXc.js";
13
+ import "./image-ops-CLQ9abCf.js";
14
+ import "./path-alias-guards-DBVdJRcc.js";
15
+ import "./fs-safe-CeZ_BXcn.js";
16
+ import "./proxy-env-zUD967XQ.js";
17
+ import "./fetch-BETRLmK8.js";
18
+ import "./fetch-guard-pwJ-F5aP.js";
19
+ import "./ir-9Bn85Mqy.js";
20
+ import "./render-DW7AcFdD.js";
21
+
22
+ export { sendMessageSlack };
@@ -0,0 +1,27 @@
1
+ import "./run-with-concurrency-kEFC1Fle.js";
2
+ import "./paths-C6TxBCvO.js";
3
+ import "./subsystem-W834z9Wa.js";
4
+ import "./workspace-CPNwHoy5.js";
5
+ import "./logger-D4RcXHR-.js";
6
+ import "./model-selection-DQ5NblsF.js";
7
+ import "./github-copilot-token-D13V9YBz.js";
8
+ import "./legacy-names-Bkl4tjN-.js";
9
+ import "./accounts-B-9Bhdn6.js";
10
+ import "./plugins-CeflwBVL.js";
11
+ import "./image-ops-CLQ9abCf.js";
12
+ import { o as sendMessageTelegram } from "./send-CisFoCif.js";
13
+ import "./path-alias-guards-DBVdJRcc.js";
14
+ import "./redact-DGz6yigq.js";
15
+ import "./errors-DDrhcWHi.js";
16
+ import "./fs-safe-CeZ_BXcn.js";
17
+ import "./proxy-env-zUD967XQ.js";
18
+ import "./fetch-BETRLmK8.js";
19
+ import "./fetch-guard-pwJ-F5aP.js";
20
+ import "./proxy-fetch-ChfJDZwG.js";
21
+ import "./ir-9Bn85Mqy.js";
22
+ import "./render-DW7AcFdD.js";
23
+ import "./fetch-BfuG8uZ8.js";
24
+ import "./channel-activity-DO-d_jr4.js";
25
+ import "./proxy-CecQTx_Z.js";
26
+
27
+ export { sendMessageTelegram };
@@ -0,0 +1,60 @@
1
+ import "./run-with-concurrency-kEFC1Fle.js";
2
+ import "./paths-C6TxBCvO.js";
3
+ import "./subsystem-W834z9Wa.js";
4
+ import "./workspace-CPNwHoy5.js";
5
+ import "./logger-D4RcXHR-.js";
6
+ import "./model-selection-DQ5NblsF.js";
7
+ import "./github-copilot-token-D13V9YBz.js";
8
+ import "./legacy-names-Bkl4tjN-.js";
9
+ import "./thinking-Xlbm5WNq.js";
10
+ import "./tokens-Cyi-NbsV.js";
11
+ import "./pi-embedded-BYfpUcIY.js";
12
+ import "./accounts-B-9Bhdn6.js";
13
+ import "./plugins-CeflwBVL.js";
14
+ import "./send-C4kartXc.js";
15
+ import "./send-DqQOo6dv.js";
16
+ import "./deliver-B1PE5Kmq.js";
17
+ import "./diagnostic-Do7hUiao.js";
18
+ import "./accounts-DNligSyz.js";
19
+ import "./image-ops-CLQ9abCf.js";
20
+ import "./send-CisFoCif.js";
21
+ import "./pi-model-discovery-DANpv7pw.js";
22
+ import "./pi-embedded-helpers-_OL4yNw0.js";
23
+ import "./chrome-hkgY24uS.js";
24
+ import "./frontmatter-BFHzrAY7.js";
25
+ import "./skills-DgwotBrr.js";
26
+ import "./path-alias-guards-DBVdJRcc.js";
27
+ import "./redact-DGz6yigq.js";
28
+ import "./errors-DDrhcWHi.js";
29
+ import "./fs-safe-CeZ_BXcn.js";
30
+ import "./proxy-env-zUD967XQ.js";
31
+ import "./store-CNWtYorN.js";
32
+ import "./accounts-C2vo5fEt.js";
33
+ import "./paths-Cgd1FfOW.js";
34
+ import "./tool-images-D217wDXi.js";
35
+ import "./image-DJo3nF6e.js";
36
+ import "./audio-transcription-runner-CsXaWVup.js";
37
+ import "./fetch-BETRLmK8.js";
38
+ import "./fetch-guard-pwJ-F5aP.js";
39
+ import "./api-key-rotation-BENZC8ep.js";
40
+ import "./proxy-fetch-ChfJDZwG.js";
41
+ import "./ir-9Bn85Mqy.js";
42
+ import "./render-DW7AcFdD.js";
43
+ import "./target-errors-CxUP9L6c.js";
44
+ import "./commands-registry-C6INZSSX.js";
45
+ import "./skill-commands-BN9qtrxT.js";
46
+ import "./fetch-BfuG8uZ8.js";
47
+ import "./channel-activity-DO-d_jr4.js";
48
+ import "./tables-DBZFzS9x.js";
49
+ import "./send-DKjV2v4c.js";
50
+ import "./outbound-attachment-BmiVeNLr.js";
51
+ import "./send-Bi_r7Hno.js";
52
+ import "./proxy-CecQTx_Z.js";
53
+ import "./manager-Bq6y1TH8.js";
54
+ import "./query-expansion-Cbd21KuP.js";
55
+ import { t as sendMessageWhatsApp } from "./outbound-CPL9ID8o.js";
56
+ import "./session-U4Hk8Woy.js";
57
+ import "./login-nNeuyFrd.js";
58
+ import "./web-o9PMPEDK.js";
59
+
60
+ export { sendMessageWhatsApp };
@@ -1,5 +1,5 @@
1
- import { t as createSubsystemLogger } from "./subsystem-CdFYjh2k.js";
2
- import { Z as loadConfig } from "./model-selection-BNMWRHZu.js";
1
+ import { t as createSubsystemLogger } from "./subsystem-W834z9Wa.js";
2
+ import { Z as loadConfig } from "./model-selection-DQ5NblsF.js";
3
3
 
4
4
  //#region src/infra/diagnostic-events.ts
5
5
  function getDiagnosticEventsState() {
package/dist/entry.js CHANGED
@@ -297,13 +297,20 @@ function attachChildProcessBridge(child, { signals = defaultSignals, onSignal }
297
297
 
298
298
  //#endregion
299
299
  //#region src/entry.ts
300
- const ENTRY_WRAPPER_PAIRS = [{
301
- wrapperBasename: "openclaw.mjs",
302
- entryBasename: "entry.js"
303
- }, {
304
- wrapperBasename: "openclaw.js",
305
- entryBasename: "entry.js"
306
- }];
300
+ const ENTRY_WRAPPER_PAIRS = [
301
+ {
302
+ wrapperBasename: "openclaw.mjs",
303
+ entryBasename: "entry.js"
304
+ },
305
+ {
306
+ wrapperBasename: "openclaw.js",
307
+ entryBasename: "entry.js"
308
+ },
309
+ {
310
+ wrapperBasename: "hanzo-bot.mjs",
311
+ entryBasename: "entry.js"
312
+ }
313
+ ];
307
314
  function shouldForceReadOnlyAuthStore(argv) {
308
315
  const tokens = argv.slice(2).filter((token) => token.length > 0 && !token.startsWith("-"));
309
316
  for (let index = 0; index < tokens.length - 1; index += 1) if (tokens[index] === "secrets" && tokens[index + 1] === "audit") return true;
@@ -1,4 +1,4 @@
1
- import { t as redactSensitiveText } from "./redact-DqlKR0-n.js";
1
+ import { t as redactSensitiveText } from "./redact-DGz6yigq.js";
2
2
 
3
3
  //#region src/infra/errors.ts
4
4
  function extractErrorCode(err) {
@@ -1,8 +1,8 @@
1
- import { c as resolveAgentWorkspaceDir } from "./run-with-concurrency-ffnO0KnQ.js";
2
- import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
3
- import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-CdFYjh2k.js";
4
- import { b as detectMime, x as extensionForMime } from "./image-ops-C-QWxnVw.js";
5
- import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-C-neMX4E.js";
1
+ import { c as resolveAgentWorkspaceDir } from "./run-with-concurrency-kEFC1Fle.js";
2
+ import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
3
+ import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-W834z9Wa.js";
4
+ import { b as detectMime, x as extensionForMime } from "./image-ops-CLQ9abCf.js";
5
+ import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-pwJ-F5aP.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-LCC1m_20.js";
2
- import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-CreSu2Ej.js";
1
+ import { i as logWarn } from "./logger-D4RcXHR-.js";
2
+ import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-zUD967XQ.js";
3
3
  import { t as bindAbortRelay } from "./fetch-timeout-Wgx3OXYj.js";
4
4
  import { EnvHttpProxyAgent } from "undici";
5
5
 
@@ -1,6 +1,6 @@
1
- import { c as parseBooleanValue, n as MANIFEST_KEY, t as LEGACY_MANIFEST_KEYS } from "./legacy-names-DZdACm3t.js";
1
+ import { c as parseBooleanValue, n as MANIFEST_KEY, t as LEGACY_MANIFEST_KEYS } from "./legacy-names-Bkl4tjN-.js";
2
2
  import path from "node:path";
3
- import fs from "node:fs";
3
+ import syncFs from "node:fs";
4
4
  import JSON5 from "json5";
5
5
  import YAML from "yaml";
6
6
 
@@ -92,7 +92,7 @@ function hasBinary(bin) {
92
92
  for (const part of parts) for (const ext of extensions) {
93
93
  const candidate = path.join(part, bin + ext);
94
94
  try {
95
- fs.accessSync(candidate, fs.constants.X_OK);
95
+ syncFs.accessSync(candidate, syncFs.constants.X_OK);
96
96
  hasBinaryCache.set(bin, true);
97
97
  return true;
98
98
  } catch {}
@@ -1,7 +1,7 @@
1
- import { l as expandHomePrefix } from "./paths-Cvc9EM8Y.js";
2
- import { D as isNotFoundPathError, E as hasNodeErrorCode, O as isPathInside, S as sameFileIdentity, k as isSymlinkOpenError } from "./workspace-BC5WA0Th.js";
3
- import { i as logWarn } from "./logger-LCC1m_20.js";
4
- import { n as assertNoPathAliasEscape } from "./path-alias-guards-BCv18tKc.js";
1
+ import { l as expandHomePrefix } from "./paths-C6TxBCvO.js";
2
+ import { D as isNotFoundPathError, E as hasNodeErrorCode, O as isPathInside, S as sameFileIdentity, k as isSymlinkOpenError } from "./workspace-CPNwHoy5.js";
3
+ import { i as logWarn } from "./logger-D4RcXHR-.js";
4
+ import { n as assertNoPathAliasEscape } from "./path-alias-guards-DBVdJRcc.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-Cvc9EM8Y.js";
2
+ import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
3
3
  import path from "node:path";
4
- import fs from "node:fs";
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 (!fs.existsSync(pathname)) return;
10
- const raw = fs.readFileSync(pathname, "utf8");
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 (!fs.existsSync(dir)) fs.mkdirSync(dir, {
18
+ if (!syncFs.existsSync(dir)) syncFs.mkdirSync(dir, {
19
19
  recursive: true,
20
20
  mode: 448
21
21
  });
22
- fs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
23
- fs.chmodSync(pathname, 384);
22
+ syncFs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
23
+ syncFs.chmodSync(pathname, 384);
24
24
  }
25
25
 
26
26
  //#endregion