@termix-it/cryptoclaw 1.1.9 → 1.1.11

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 (148) hide show
  1. package/dist/{accounts-7nNRr4R3.js → accounts-4l7ba973.js} +1 -1
  2. package/dist/{accounts-CKpnUMZd.js → accounts-CAjupeYV.js} +16 -16
  3. package/dist/{accounts-BIr_ieyH.js → accounts-k5nTdi32.js} +1 -1
  4. package/dist/{active-listener-ClXqZUsD.js → active-listener-D9FARjMd.js} +1 -1
  5. package/dist/{api-key-rotation-CUJC6xSi.js → api-key-rotation-C-Q6XdUW.js} +2 -2
  6. package/dist/{audio-preflight--MDRrrlB.js → audio-preflight-C7kt2vOu.js} +33 -33
  7. package/dist/{audio-transcription-runner-CgLX4N3r.js → audio-transcription-runner-CawngPvE.js} +12 -12
  8. package/dist/{audit-membership-runtime-Ch2lLD_u.js → audit-membership-runtime-C6dnIaXJ.js} +5 -5
  9. package/dist/build-info.json +3 -3
  10. package/dist/bundled/boot-md/handler.js +52 -52
  11. package/dist/bundled/bootstrap-extra-files/handler.js +7 -7
  12. package/dist/bundled/command-logger/handler.js +2 -2
  13. package/dist/bundled/session-memory/handler.js +52 -52
  14. package/dist/bundled/soul-evil/handler.js +5 -5
  15. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  16. package/dist/{channel-account-context-Crd0PQwN.js → channel-account-context-BAivtK8t.js} +1 -1
  17. package/dist/{channel-account-context-DPRR3rFq.js → channel-account-context-DptVE7IR.js} +1 -1
  18. package/dist/{channel-activity-32lmgAZH.js → channel-activity-Hho38eZq.js} +3 -3
  19. package/dist/{chrome-CtEQV_6p.js → chrome-palWvTtp.js} +18 -18
  20. package/dist/{command-registry-CBfNNhgy.js → command-registry-BEFHpoCL.js} +5 -5
  21. package/dist/{commands-registry-FnGtnvb0.js → commands-registry-A3LstXeY.js} +4 -4
  22. package/dist/{completion-cli-FP9HAEQ3.js → completion-cli-BxbU_lYn.js} +2 -2
  23. package/dist/{completion-cli-Bai3pUlw.js → completion-cli-rNt-qwSw.js} +1 -1
  24. package/dist/{deliver-32OxViWG.js → deliver-JkYjt9Qz.js} +20 -20
  25. package/dist/deliver-runtime-BvTbrDXE.js +37 -0
  26. package/dist/deps-send-discord.runtime-1mqY0Pn3.js +27 -0
  27. package/dist/deps-send-imessage.runtime-NAKUx6Vy.js +26 -0
  28. package/dist/deps-send-signal.runtime-CHqnnRXO.js +25 -0
  29. package/dist/deps-send-slack.runtime-CbGlCNTX.js +23 -0
  30. package/dist/deps-send-telegram.runtime-CgApeKta.js +28 -0
  31. package/dist/deps-send-whatsapp.runtime-CAPjqcnc.js +61 -0
  32. package/dist/{diagnostic-UO82MQjo.js → diagnostic-BGtFj4tU.js} +2 -2
  33. package/dist/{doctor-completion-CCNHTpp9.js → doctor-completion--S9fsNQo.js} +1 -1
  34. package/dist/{doctor-completion-BQBZQyQq.js → doctor-completion-BAJbdzsD.js} +1 -1
  35. package/dist/entry.js +2 -2
  36. package/dist/{errors-BwBpGOBV.js → errors-C1YF712P.js} +1 -1
  37. package/dist/{fetch-DozurFmr.js → fetch-_iocPLV2.js} +5 -5
  38. package/dist/{fetch-guard-XtFb6zM7.js → fetch-guard-CiQUuV0r.js} +2 -2
  39. package/dist/{frontmatter-Cy6ESb-O.js → frontmatter-Dn68lQ_o.js} +5 -5
  40. package/dist/{fs-safe-YxZ8RAEw.js → fs-safe-BLpOReWZ.js} +4 -4
  41. package/dist/{gateway-cli-CyeZq5AC.js → gateway-cli-HRo8JRRd.js} +5 -5
  42. package/dist/{gateway-cli-DLWVlNsd.js → gateway-cli-LhABh8fD.js} +5 -5
  43. package/dist/{github-copilot-token-D7knylDF.js → github-copilot-token-DDa7O18e.js} +7 -7
  44. package/dist/{image-B2LPzwKF.js → image-BlRI3dXw.js} +6 -6
  45. package/dist/{image-ops-gm8VfGiD.js → image-ops-D7mq-4y1.js} +2 -2
  46. package/dist/image-runtime-Cp3I725X.js +30 -0
  47. package/dist/index.js +1 -1
  48. package/dist/{ir-B7IR3m4T.js → ir-Dpg87zYv.js} +7 -7
  49. package/dist/{legacy-names-TrN6kryB.js → legacy-names-BAiRv0I2.js} +1 -1
  50. package/dist/llm-slug-generator.js +52 -52
  51. package/dist/{logger-CV2IWsAW.js → logger-C53B395N.js} +1 -1
  52. package/dist/{login-C6CkDgLi.js → login-CHsCISh4.js} +5 -5
  53. package/dist/{login-qr-WEr1WQvg.js → login-qr-BEW3jIOt.js} +11 -11
  54. package/dist/{manager-BWh3BVp1.js → manager-Dfrejf6z.js} +13 -13
  55. package/dist/manager-runtime-DacMHR37.js +19 -0
  56. package/dist/{model-selection-BiqOlgFe.js → model-selection-e9hodq0l.js} +48 -48
  57. package/dist/{onboard-BCnqRDky.js → onboard-BgQUk8KO.js} +2 -2
  58. package/dist/{onboard-CQ-YoTSl.js → onboard-CukHmJnb.js} +2 -2
  59. package/dist/{onboard-config-DWnlWcjI.js → onboard-config-C06y4K2b.js} +1 -1
  60. package/dist/{onboard-config-oUKoFfFB.js → onboard-config-DzpTyHer.js} +1 -1
  61. package/dist/{onboarding-DR-2kdRy.js → onboarding-BjkMcLV3.js} +2 -2
  62. package/dist/{onboarding-BY3YZMkn.js → onboarding-Dl2vyZrH.js} +2 -2
  63. package/dist/{onboarding.finalize-B_gI9SXJ.js → onboarding.finalize-D5Wmhsa1.js} +4 -4
  64. package/dist/{onboarding.finalize-CEgugO0l.js → onboarding.finalize-DPeb5UKU.js} +3 -3
  65. package/dist/{outbound-DSVwKSv4.js → outbound-BZqL8UdJ.js} +6 -6
  66. package/dist/{outbound-attachment-CcY_Rg0-.js → outbound-attachment-wzHGF-Is.js} +2 -2
  67. package/dist/{path-alias-guards-Gzq1eAOo.js → path-alias-guards-It4BBRdm.js} +1 -1
  68. package/dist/{paths-Cvc9EM8Y.js → paths-C6TxBCvO.js} +5 -5
  69. package/dist/{paths-BWg7M5Yy.js → paths-CZ0nrg7g.js} +3 -3
  70. package/dist/{pi-embedded-DkdNpxSe.js → pi-embedded-BNcbv6lg.js} +161 -161
  71. package/dist/{pi-embedded-helpers-B_qa7ikD.js → pi-embedded-helpers-CE9KKP1Q.js} +52 -52
  72. package/dist/{pi-model-discovery-FwBV8Q5J.js → pi-model-discovery-32EFg27L.js} +7 -7
  73. package/dist/pi-model-discovery-runtime-C8SNNnEN.js +12 -0
  74. package/dist/{pi-tools.before-tool-call.runtime-2r6sdUt5.js → pi-tools.before-tool-call.runtime-BfjlGXIc.js} +10 -10
  75. package/dist/plugin-sdk/signal.js +2 -2
  76. package/dist/plugin-sdk/slack.js +2 -2
  77. package/dist/{plugins-Burzc1_i.js → plugins-rc2l4VJe.js} +10 -10
  78. package/dist/{program-Rna_eew4.js → program-IR_GbPYL.js} +2 -2
  79. package/dist/{program-context-BfnHzkXT.js → program-context-CqbW3Ozx.js} +7 -7
  80. package/dist/{prompt-select-styled-1nWCPZKF.js → prompt-select-styled-4VXtaC_Y.js} +3 -3
  81. package/dist/{prompt-select-styled-BDi5UBUn.js → prompt-select-styled-CDVjf5nV.js} +3 -3
  82. package/dist/{proxy-env-C05eD8Tt.js → proxy-env-C2sbN0UU.js} +1 -1
  83. package/dist/{proxy-fetch-C_2Ejh5T.js → proxy-fetch-CVSmQMZt.js} +1 -1
  84. package/dist/{pw-ai-BbxaV2Cy.js → pw-ai-CWE0qzH7.js} +15 -15
  85. package/dist/{qmd-manager-JjGGwn8R.js → qmd-manager-DMSLC2iu.js} +11 -11
  86. package/dist/{query-expansion-DkXzaUOH.js → query-expansion-MI1dZ5Nj.js} +6 -6
  87. package/dist/{redact-C-aJRv5O.js → redact-BXURioma.js} +1 -1
  88. package/dist/{register.maintenance-BoigTo1u.js → register.maintenance-CxSE7-Kl.js} +6 -6
  89. package/dist/{register.maintenance-RJM2wCjj.js → register.maintenance-DwOfJhoP.js} +7 -7
  90. package/dist/{register.onboard--1jxOBJy.js → register.onboard-CvYvmVAO.js} +2 -2
  91. package/dist/{register.onboard-BtBM_7Qe.js → register.onboard-D336Th_C.js} +2 -2
  92. package/dist/{register.setup-B_O283DR.js → register.setup-B43LcoaE.js} +2 -2
  93. package/dist/{register.setup-o2PFpqW-.js → register.setup-DaJKzoTH.js} +2 -2
  94. package/dist/{register.status-health-sessions-CVjLnoAQ.js → register.status-health-sessions-BteqJ3fo.js} +3 -3
  95. package/dist/{register.status-health-sessions-ByZDjDZf.js → register.status-health-sessions-DYYi2rkn.js} +3 -3
  96. package/dist/{register.subclis-Cm8zQPce.js → register.subclis-Cjl06Zry.js} +3 -3
  97. package/dist/{run-main-Bcwtj17t.js → run-main-DM79Bp3w.js} +4 -4
  98. package/dist/{run-with-concurrency-CYTs7gPY.js → run-with-concurrency-C5E9gJhP.js} +4 -4
  99. package/dist/runtime-whatsapp-login.runtime-BhVxslsH.js +14 -0
  100. package/dist/runtime-whatsapp-outbound.runtime-CFivqxoq.js +23 -0
  101. package/dist/{send-DDKqu28r.js → send-BWySsurX.js} +7 -7
  102. package/dist/{send-ChW15YPB.js → send-BlTVCcYd.js} +27 -27
  103. package/dist/{send-Cj0LCSvd.js → send-C87tIqIn.js} +7 -7
  104. package/dist/{send-q-l5fncb.js → send-Cpja8Q1N.js} +5 -5
  105. package/dist/{send-hOoCA9jX.js → send-OP60RbsK.js} +6 -6
  106. package/dist/{session-BzKpA5X4.js → session-DmXsj3JD.js} +8 -8
  107. package/dist/{skill-commands-CIcvUo1A.js → skill-commands-DEsgUSH3.js} +9 -9
  108. package/dist/{skills-DU6_fNPx.js → skills-OklkZyI1.js} +22 -22
  109. package/dist/slash-commands.runtime-gtQnheWz.js +17 -0
  110. package/dist/slash-dispatch.runtime-w1y_0I6t.js +57 -0
  111. package/dist/slash-skill-commands.runtime-CA_oN4df.js +21 -0
  112. package/dist/{status-CKWYXIIT.js → status-B-T9Cvvn.js} +2 -2
  113. package/dist/{status-CZ9ThIxK.js → status-XxtmLZrL.js} +2 -2
  114. package/dist/{status.update-CoOEUoUN.js → status.update-CY3ejLFL.js} +1 -1
  115. package/dist/{status.update-CO_hSO5b.js → status.update-mgzBYrgy.js} +1 -1
  116. package/dist/{store-DcxsUE2f.js → store-BNhebBGr.js} +2 -2
  117. package/dist/subagent-registry-runtime-HYpWtFUu.js +57 -0
  118. package/dist/{subsystem-CEiApUN8.js → subsystem-W834z9Wa.js} +16 -16
  119. package/dist/{tables-DTb5mzup.js → tables-XtcH-BaF.js} +1 -1
  120. package/dist/{target-errors-jNfnUab4.js → target-errors-CNzteBWz.js} +2 -2
  121. package/dist/{thinking-BJkp7vCP.js → thinking-X8yYhVf1.js} +6 -6
  122. package/dist/{tokens-tz04P2cO.js → tokens-DxcVnNVJ.js} +1 -1
  123. package/dist/{tool-images-DRyUUf-X.js → tool-images-B-4ixjYn.js} +2 -2
  124. package/dist/{update-cli-C1DALvzD.js → update-cli-CNBvXpVS.js} +8 -8
  125. package/dist/{update-cli-BDOF9xoT.js → update-cli-PgA0bnyk.js} +7 -7
  126. package/dist/{update-runner-C7Ixr_Ti.js → update-runner-BACLkDvl.js} +3 -3
  127. package/dist/{update-runner-Bw1MljLh.js → update-runner-D7HCCtTd.js} +3 -3
  128. package/dist/{utils-BFS4zK3g.js → utils-D2oM4XHm.js} +7 -7
  129. package/dist/{web-fbVaDaVW.js → web-B8rFiLYw.js} +56 -56
  130. package/dist/{whatsapp-actions-CMHMrQzp.js → whatsapp-actions-BPIXiPAR.js} +22 -22
  131. package/dist/{workspace-D6GL2anS.js → workspace-ZgWjBCAm.js} +21 -21
  132. package/package.json +1 -1
  133. package/dist/deliver-runtime-DGYhS7K1.js +0 -37
  134. package/dist/deps-send-discord.runtime-BJmezHoH.js +0 -27
  135. package/dist/deps-send-imessage.runtime-Dsq-J7FK.js +0 -26
  136. package/dist/deps-send-signal.runtime-2kRNCAkm.js +0 -25
  137. package/dist/deps-send-slack.runtime-DoM54spr.js +0 -23
  138. package/dist/deps-send-telegram.runtime-DGtmyBk2.js +0 -28
  139. package/dist/deps-send-whatsapp.runtime-B_ZiouDf.js +0 -61
  140. package/dist/image-runtime-BL3D208M.js +0 -30
  141. package/dist/manager-runtime-CJHBIXOb.js +0 -19
  142. package/dist/pi-model-discovery-runtime-BozG-CtU.js +0 -12
  143. package/dist/runtime-whatsapp-login.runtime-BU92rhCA.js +0 -14
  144. package/dist/runtime-whatsapp-outbound.runtime-DZy-sAPP.js +0 -23
  145. package/dist/slash-commands.runtime-CXJJf0jq.js +0 -17
  146. package/dist/slash-dispatch.runtime-CnDWfnhw.js +0 -57
  147. package/dist/slash-skill-commands.runtime-NPMuDGFx.js +0 -21
  148. package/dist/subagent-registry-runtime-R6EArAuY.js +0 -57
@@ -1,19 +1,19 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { _ as toAgentModelListLike, c as resolveAgentWorkspaceDir, g as resolveAgentModelPrimaryValue, i as resolveAgentConfig, l as resolveDefaultAgentId, o as resolveAgentEffectiveModelPrimary, t as runTasksWithConcurrency } from "./run-with-concurrency-CYTs7gPY.js";
3
- import { c as resolveStateDir, d as resolveRequiredHomeDir, i as resolveDefaultConfigCandidates, l as expandHomePrefix, r as resolveConfigPath, s as resolveOAuthPath, t as DEFAULT_GATEWAY_PORT } from "./paths-Cvc9EM8Y.js";
4
- import { n as stripAnsi, t as createSubsystemLogger, u as logVerbose } from "./subsystem-CEiApUN8.js";
2
+ import { _ as toAgentModelListLike, c as resolveAgentWorkspaceDir, g as resolveAgentModelPrimaryValue, i as resolveAgentConfig, l as resolveDefaultAgentId, o as resolveAgentEffectiveModelPrimary, t as runTasksWithConcurrency } from "./run-with-concurrency-C5E9gJhP.js";
3
+ import { c as resolveStateDir, d as resolveRequiredHomeDir, i as resolveDefaultConfigCandidates, l as expandHomePrefix, r as resolveConfigPath, s as resolveOAuthPath, t as DEFAULT_GATEWAY_PORT } from "./paths-C6TxBCvO.js";
4
+ import { n as stripAnsi, t as createSubsystemLogger, u as logVerbose } from "./subsystem-W834z9Wa.js";
5
5
  import { _ as isBlockedObjectKey, c as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-DgdmD4k7.js";
6
- import { C as isPlainObject$2, c as isRecord$3, h as resolveUserPath, p as resolveConfigDir, y as sleep } from "./utils-BFS4zK3g.js";
7
- import { O as isPathInside$2, _ as runExec, x as openBoundaryFileSync, y as canUseBoundaryFileOpen } from "./workspace-D6GL2anS.js";
8
- import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-D7knylDF.js";
9
- import { c as parseBooleanValue, n as MANIFEST_KEY, o as registerInternalHook } from "./legacy-names-TrN6kryB.js";
6
+ import { C as isPlainObject$2, c as isRecord$3, h as resolveUserPath, p as resolveConfigDir, y as sleep } from "./utils-D2oM4XHm.js";
7
+ import { O as isPathInside$2, _ as runExec, x as openBoundaryFileSync, y as canUseBoundaryFileOpen } from "./workspace-ZgWjBCAm.js";
8
+ import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-DDa7O18e.js";
9
+ import { c as parseBooleanValue, n as MANIFEST_KEY, o as registerInternalHook } from "./legacy-names-BAiRv0I2.js";
10
10
  import { t as parseDurationMs } from "./parse-duration-D8SaZ9Wv.js";
11
11
  import { createRequire } from "node:module";
12
12
  import fs from "node:fs/promises";
13
13
  import os from "node:os";
14
14
  import path from "node:path";
15
- import fs$1 from "node:fs";
16
- import json5 from "json5";
15
+ import syncFs from "node:fs";
16
+ import JSON5 from "json5";
17
17
  import { isDeepStrictEqual } from "node:util";
18
18
  import { execFileSync, spawn } from "node:child_process";
19
19
  import { fileURLToPath } from "node:url";
@@ -323,7 +323,7 @@ function isValidPid(pid) {
323
323
  function isZombieProcess(pid) {
324
324
  if (process.platform !== "linux") return false;
325
325
  try {
326
- return fs$1.readFileSync(`/proc/${pid}/status`, "utf8").match(/^State:\s+(\S)/m)?.[1] === "Z";
326
+ return syncFs.readFileSync(`/proc/${pid}/status`, "utf8").match(/^State:\s+(\S)/m)?.[1] === "Z";
327
327
  } catch {
328
328
  return false;
329
329
  }
@@ -350,7 +350,7 @@ function getProcessStartTime(pid) {
350
350
  if (process.platform !== "linux") return null;
351
351
  if (!isValidPid(pid)) return null;
352
352
  try {
353
- const stat = fs$1.readFileSync(`/proc/${pid}/stat`, "utf8");
353
+ const stat = syncFs.readFileSync(`/proc/${pid}/stat`, "utf8");
354
354
  const commEndIndex = stat.lastIndexOf(")");
355
355
  if (commEndIndex < 0) return null;
356
356
  const fields = stat.slice(commEndIndex + 1).trimStart().split(/\s+/);
@@ -619,7 +619,7 @@ function resolveAuthStorePathForDisplay(agentDir) {
619
619
  return pathname.startsWith("~") ? pathname : resolveUserPath(pathname);
620
620
  }
621
621
  function ensureAuthStoreFile(pathname) {
622
- if (fs$1.existsSync(pathname)) return;
622
+ if (syncFs.existsSync(pathname)) return;
623
623
  saveJsonFile(pathname, {
624
624
  version: AUTH_STORE_VERSION,
625
625
  profiles: {}
@@ -881,7 +881,7 @@ function loadAuthProfileStoreForAgent(agentDir, options) {
881
881
  if (shouldWrite && legacy !== null) {
882
882
  const legacyPath = resolveLegacyAuthStorePath(agentDir);
883
883
  try {
884
- fs$1.unlinkSync(legacyPath);
884
+ syncFs.unlinkSync(legacyPath);
885
885
  } catch (err) {
886
886
  if (err?.code !== "ENOENT") log$8.warn("failed to delete legacy auth.json after migration", {
887
887
  err,
@@ -1069,7 +1069,7 @@ function loadDotEnv(opts) {
1069
1069
  const quiet = opts?.quiet ?? true;
1070
1070
  dotenv.config({ quiet });
1071
1071
  const globalEnvPath = path.join(resolveConfigDir(process.env), ".env");
1072
- if (!fs$1.existsSync(globalEnvPath)) return;
1072
+ if (!syncFs.existsSync(globalEnvPath)) return;
1073
1073
  dotenv.config({
1074
1074
  quiet,
1075
1075
  path: globalEnvPath,
@@ -1199,7 +1199,7 @@ function resolveTimeoutMs(timeoutMs) {
1199
1199
  function readEtcShells() {
1200
1200
  if (cachedEtcShells !== void 0) return cachedEtcShells;
1201
1201
  try {
1202
- const entries = fs$1.readFileSync("/etc/shells", "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line.length > 0 && !line.startsWith("#") && path.isAbsolute(line));
1202
+ const entries = syncFs.readFileSync("/etc/shells", "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line.length > 0 && !line.startsWith("#") && path.isAbsolute(line));
1203
1203
  cachedEtcShells = new Set(entries);
1204
1204
  } catch {
1205
1205
  cachedEtcShells = null;
@@ -1676,7 +1676,7 @@ function resolveActiveTalkProviderConfig(talk) {
1676
1676
  };
1677
1677
  }
1678
1678
  function readTalkApiKeyFromProfile(deps = {}) {
1679
- const fsImpl = deps.fs ?? fs$1;
1679
+ const fsImpl = deps.fs ?? syncFs;
1680
1680
  const osImpl = deps.os ?? os;
1681
1681
  const pathImpl = deps.path ?? path;
1682
1682
  const home = osImpl.homedir();
@@ -2312,7 +2312,7 @@ function isPathInside$1(basePath, candidatePath) {
2312
2312
  }
2313
2313
  function safeRealpathSync$1(filePath) {
2314
2314
  try {
2315
- return fs$1.realpathSync(filePath);
2315
+ return syncFs.realpathSync(filePath);
2316
2316
  } catch {
2317
2317
  return null;
2318
2318
  }
@@ -2422,7 +2422,7 @@ var IncludeProcessor = class IncludeProcessor {
2422
2422
  const normalized = path.normalize(resolved);
2423
2423
  if (!isPathInside$1(this.rootDir, normalized)) throw new ConfigIncludeError(`Include path escapes config directory: ${includePath} (root: ${this.rootDir})`, includePath);
2424
2424
  try {
2425
- const real = fs$1.realpathSync(normalized);
2425
+ const real = syncFs.realpathSync(normalized);
2426
2426
  if (!isPathInside$1(this.rootRealDir, real)) throw new ConfigIncludeError(`Include path resolves outside config directory (symlink): ${includePath} (root: ${this.rootDir})`, includePath);
2427
2427
  } catch (err) {
2428
2428
  if (err instanceof ConfigIncludeError) throw err;
@@ -2464,13 +2464,13 @@ var IncludeProcessor = class IncludeProcessor {
2464
2464
  };
2465
2465
  function safeRealpath(target) {
2466
2466
  try {
2467
- return fs$1.realpathSync(target);
2467
+ return syncFs.realpathSync(target);
2468
2468
  } catch {
2469
2469
  return target;
2470
2470
  }
2471
2471
  }
2472
2472
  function readConfigIncludeFileWithGuards(params) {
2473
- const ioFs = params.ioFs ?? fs$1;
2473
+ const ioFs = params.ioFs ?? syncFs;
2474
2474
  const maxBytes = params.maxBytes ?? MAX_INCLUDE_FILE_BYTES;
2475
2475
  if (!canUseBoundaryFileOpen(ioFs)) return ioFs.readFileSync(params.resolvedPath, "utf-8");
2476
2476
  const opened = openBoundaryFileSync({
@@ -2493,13 +2493,13 @@ function readConfigIncludeFileWithGuards(params) {
2493
2493
  }
2494
2494
  }
2495
2495
  const defaultResolver = {
2496
- readFile: (p) => fs$1.readFileSync(p, "utf-8"),
2496
+ readFile: (p) => syncFs.readFileSync(p, "utf-8"),
2497
2497
  readFileWithGuards: ({ includePath, resolvedPath, rootRealDir }) => readConfigIncludeFileWithGuards({
2498
2498
  includePath,
2499
2499
  resolvedPath,
2500
2500
  rootRealDir
2501
2501
  }),
2502
- parseJson: (raw) => json5.parse(raw)
2502
+ parseJson: (raw) => JSON5.parse(raw)
2503
2503
  };
2504
2504
  /**
2505
2505
  * Resolves all $include directives in a parsed config object.
@@ -4146,7 +4146,7 @@ function normalizeMatchTarget(value) {
4146
4146
  }
4147
4147
  function tryRealpath(value) {
4148
4148
  try {
4149
- return fs$1.realpathSync(value);
4149
+ return syncFs.realpathSync(value);
4150
4150
  } catch {
4151
4151
  return null;
4152
4152
  }
@@ -4699,8 +4699,8 @@ function resolveWindowsExecutableExtensions(executable, env) {
4699
4699
  }
4700
4700
  function isExecutableFile(filePath) {
4701
4701
  try {
4702
- if (!fs$1.statSync(filePath).isFile()) return false;
4703
- if (process.platform !== "win32") fs$1.accessSync(filePath, fs$1.constants.X_OK);
4702
+ if (!syncFs.statSync(filePath).isFile()) return false;
4703
+ if (process.platform !== "win32") syncFs.accessSync(filePath, syncFs.constants.X_OK);
4704
4704
  return true;
4705
4705
  } catch {
4706
4706
  return false;
@@ -4739,7 +4739,7 @@ const DEFAULT_SAFE_BINS = [
4739
4739
  function tryResolveRealpath(filePath) {
4740
4740
  if (!filePath) return;
4741
4741
  try {
4742
- return fs$1.realpathSync(filePath);
4742
+ return syncFs.realpathSync(filePath);
4743
4743
  } catch {
4744
4744
  return;
4745
4745
  }
@@ -5614,7 +5614,7 @@ function listWritableExplicitTrustedSafeBinDirs(entries) {
5614
5614
  for (const dir of resolved) {
5615
5615
  let stat;
5616
5616
  try {
5617
- stat = fs$1.statSync(dir);
5617
+ stat = syncFs.statSync(dir);
5618
5618
  } catch {
5619
5619
  continue;
5620
5620
  }
@@ -6683,13 +6683,13 @@ function resolveBundledPluginsDir() {
6683
6683
  try {
6684
6684
  const execDir = path.dirname(process.execPath);
6685
6685
  const sibling = path.join(execDir, "extensions");
6686
- if (fs$1.existsSync(sibling)) return sibling;
6686
+ if (syncFs.existsSync(sibling)) return sibling;
6687
6687
  } catch {}
6688
6688
  try {
6689
6689
  let cursor = path.dirname(fileURLToPath(import.meta.url));
6690
6690
  for (let i = 0; i < 6; i += 1) {
6691
6691
  const candidate = path.join(cursor, "extensions");
6692
- if (fs$1.existsSync(candidate)) return candidate;
6692
+ if (syncFs.existsSync(candidate)) return candidate;
6693
6693
  const parent = path.dirname(cursor);
6694
6694
  if (parent === cursor) break;
6695
6695
  cursor = parent;
@@ -6708,7 +6708,7 @@ function normalizeStringList(value) {
6708
6708
  function resolvePluginManifestPath(rootDir) {
6709
6709
  for (const filename of PLUGIN_MANIFEST_FILENAMES) {
6710
6710
  const candidate = path.join(rootDir, filename);
6711
- if (fs$1.existsSync(candidate)) return candidate;
6711
+ if (syncFs.existsSync(candidate)) return candidate;
6712
6712
  }
6713
6713
  return path.join(rootDir, PLUGIN_MANIFEST_FILENAME);
6714
6714
  }
@@ -6734,7 +6734,7 @@ function loadPluginManifest(rootDir, rejectHardlinks = true) {
6734
6734
  }
6735
6735
  let raw;
6736
6736
  try {
6737
- raw = JSON.parse(fs$1.readFileSync(opened.fd, "utf-8"));
6737
+ raw = JSON.parse(syncFs.readFileSync(opened.fd, "utf-8"));
6738
6738
  } catch (err) {
6739
6739
  return {
6740
6740
  ok: false,
@@ -6742,7 +6742,7 @@ function loadPluginManifest(rootDir, rejectHardlinks = true) {
6742
6742
  manifestPath
6743
6743
  };
6744
6744
  } finally {
6745
- fs$1.closeSync(opened.fd);
6745
+ syncFs.closeSync(opened.fd);
6746
6746
  }
6747
6747
  if (!isRecord$3(raw)) return {
6748
6748
  ok: false,
@@ -6823,7 +6823,7 @@ function safeRealpathSync(targetPath, cache) {
6823
6823
  const cached = cache?.get(targetPath);
6824
6824
  if (cached) return cached;
6825
6825
  try {
6826
- const resolved = fs$1.realpathSync(targetPath);
6826
+ const resolved = syncFs.realpathSync(targetPath);
6827
6827
  cache?.set(targetPath, resolved);
6828
6828
  return resolved;
6829
6829
  } catch {
@@ -6832,7 +6832,7 @@ function safeRealpathSync(targetPath, cache) {
6832
6832
  }
6833
6833
  function safeStatSync(targetPath) {
6834
6834
  try {
6835
- return fs$1.statSync(targetPath);
6835
+ return syncFs.statSync(targetPath);
6836
6836
  } catch {
6837
6837
  return null;
6838
6838
  }
@@ -6961,12 +6961,12 @@ function readPackageManifest(dir, rejectHardlinks = true) {
6961
6961
  });
6962
6962
  if (!opened.ok) return null;
6963
6963
  try {
6964
- const raw = fs$1.readFileSync(opened.fd, "utf-8");
6964
+ const raw = syncFs.readFileSync(opened.fd, "utf-8");
6965
6965
  return JSON.parse(raw);
6966
6966
  } catch {
6967
6967
  return null;
6968
6968
  } finally {
6969
- fs$1.closeSync(opened.fd);
6969
+ syncFs.closeSync(opened.fd);
6970
6970
  }
6971
6971
  }
6972
6972
  function deriveIdHint(params) {
@@ -7019,14 +7019,14 @@ function resolvePackageEntrySource(params) {
7019
7019
  return null;
7020
7020
  }
7021
7021
  const safeSource = opened.path;
7022
- fs$1.closeSync(opened.fd);
7022
+ syncFs.closeSync(opened.fd);
7023
7023
  return safeSource;
7024
7024
  }
7025
7025
  function discoverInDirectory(params) {
7026
- if (!fs$1.existsSync(params.dir)) return;
7026
+ if (!syncFs.existsSync(params.dir)) return;
7027
7027
  let entries = [];
7028
7028
  try {
7029
- entries = fs$1.readdirSync(params.dir, { withFileTypes: true });
7029
+ entries = syncFs.readdirSync(params.dir, { withFileTypes: true });
7030
7030
  } catch (err) {
7031
7031
  params.diagnostics.push({
7032
7032
  level: "warn",
@@ -7087,7 +7087,7 @@ function discoverInDirectory(params) {
7087
7087
  }
7088
7088
  continue;
7089
7089
  }
7090
- const indexFile = [...DEFAULT_PLUGIN_ENTRY_CANDIDATES].map((candidate) => path.join(fullPath, candidate)).find((candidate) => fs$1.existsSync(candidate));
7090
+ const indexFile = [...DEFAULT_PLUGIN_ENTRY_CANDIDATES].map((candidate) => path.join(fullPath, candidate)).find((candidate) => syncFs.existsSync(candidate));
7091
7091
  if (indexFile && isExtensionFile(indexFile)) addCandidate({
7092
7092
  candidates: params.candidates,
7093
7093
  diagnostics: params.diagnostics,
@@ -7105,7 +7105,7 @@ function discoverInDirectory(params) {
7105
7105
  }
7106
7106
  function discoverFromPath(params) {
7107
7107
  const resolved = resolveUserPath(params.rawPath);
7108
- if (!fs$1.existsSync(resolved)) {
7108
+ if (!syncFs.existsSync(resolved)) {
7109
7109
  params.diagnostics.push({
7110
7110
  level: "error",
7111
7111
  message: `plugin path not found: ${resolved}`,
@@ -7113,7 +7113,7 @@ function discoverFromPath(params) {
7113
7113
  });
7114
7114
  return;
7115
7115
  }
7116
- const stat = fs$1.statSync(resolved);
7116
+ const stat = syncFs.statSync(resolved);
7117
7117
  if (stat.isFile()) {
7118
7118
  if (!isExtensionFile(resolved)) {
7119
7119
  params.diagnostics.push({
@@ -7171,7 +7171,7 @@ function discoverFromPath(params) {
7171
7171
  }
7172
7172
  return;
7173
7173
  }
7174
- const indexFile = [...DEFAULT_PLUGIN_ENTRY_CANDIDATES].map((candidate) => path.join(resolved, candidate)).find((candidate) => fs$1.existsSync(candidate));
7174
+ const indexFile = [...DEFAULT_PLUGIN_ENTRY_CANDIDATES].map((candidate) => path.join(resolved, candidate)).find((candidate) => syncFs.existsSync(candidate));
7175
7175
  if (indexFile && isExtensionFile(indexFile)) {
7176
7176
  addCandidate({
7177
7177
  candidates: params.candidates,
@@ -7285,7 +7285,7 @@ function buildCacheKey$1(params) {
7285
7285
  }
7286
7286
  function safeStatMtimeMs(filePath) {
7287
7287
  try {
7288
- return fs$1.statSync(filePath).mtimeMs;
7288
+ return syncFs.statSync(filePath).mtimeMs;
7289
7289
  } catch {
7290
7290
  return null;
7291
7291
  }
@@ -12347,8 +12347,8 @@ function resolveConfigPathForDeps(deps) {
12347
12347
  }
12348
12348
  function normalizeDeps(overrides = {}) {
12349
12349
  return {
12350
- fs: overrides.fs ?? fs$1,
12351
- json5: overrides.json5 ?? json5,
12350
+ fs: overrides.fs ?? syncFs,
12351
+ json5: overrides.json5 ?? JSON5,
12352
12352
  env: overrides.env ?? process.env,
12353
12353
  homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
12354
12354
  configPath: overrides.configPath ?? "",
@@ -12359,11 +12359,11 @@ function maybeLoadDotEnvForConfig(env) {
12359
12359
  if (env !== process.env) return;
12360
12360
  loadDotEnv({ quiet: true });
12361
12361
  }
12362
- function parseConfigJson5(raw, json5$1 = json5) {
12362
+ function parseConfigJson5(raw, json5 = JSON5) {
12363
12363
  try {
12364
12364
  return {
12365
12365
  ok: true,
12366
- parsed: json5$1.parse(raw)
12366
+ parsed: json5.parse(raw)
12367
12367
  };
12368
12368
  } catch (err) {
12369
12369
  return {
@@ -8,10 +8,10 @@ import { t as assertSupportedRuntime } from "./runtime-guard-CxmMRXpH.js";
8
8
  import { t as WizardCancelledError } from "./prompts-B1yi9mCM.js";
9
9
  import { t as createClackPrompter } from "./clack-prompter-BlGLxxZu.js";
10
10
  import { t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Dgg-ogyc.js";
11
- import { t as runOnboardingWizard } from "./onboarding-DR-2kdRy.js";
11
+ import { t as runOnboardingWizard } from "./onboarding-BjkMcLV3.js";
12
12
  import { n as logConfigUpdated } from "./logging-C9DZ91kl.js";
13
13
  import { i as normalizeLegacyOnboardAuthChoice, r as isDeprecatedAuthChoice, t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-Bjhg0RRG.js";
14
- import { t as applyOnboardingLocalWorkspaceConfig } from "./onboard-config-DWnlWcjI.js";
14
+ import { t as applyOnboardingLocalWorkspaceConfig } from "./onboard-config-C06y4K2b.js";
15
15
 
16
16
  //#region src/commands/onboard-interactive.ts
17
17
  async function runInteractiveOnboarding(opts, runtime = defaultRuntime) {
@@ -8,10 +8,10 @@ import { t as WizardCancelledError } from "./prompts-DpRhAM21.js";
8
8
  import { t as createClackPrompter } from "./clack-prompter-C4bd12RJ.js";
9
9
  import { t as assertSupportedRuntime } from "./runtime-guard-FQfkfkx0.js";
10
10
  import { t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-ClLXlv9g.js";
11
- import { t as runOnboardingWizard } from "./onboarding-BY3YZMkn.js";
11
+ import { t as runOnboardingWizard } from "./onboarding-Dl2vyZrH.js";
12
12
  import { n as logConfigUpdated } from "./logging-4zSchJ5n.js";
13
13
  import { i as normalizeLegacyOnboardAuthChoice, r as isDeprecatedAuthChoice, t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-BlYkJpb7.js";
14
- import { t as applyOnboardingLocalWorkspaceConfig } from "./onboard-config-oUKoFfFB.js";
14
+ import { t as applyOnboardingLocalWorkspaceConfig } from "./onboard-config-DzpTyHer.js";
15
15
 
16
16
  //#region src/commands/onboard-interactive.ts
17
17
  async function runInteractiveOnboarding(opts, runtime = defaultRuntime) {
@@ -7,7 +7,7 @@ var onboard_config_exports = /* @__PURE__ */ __exportAll({
7
7
  applyOnboardingLocalWorkspaceConfig: () => applyOnboardingLocalWorkspaceConfig
8
8
  });
9
9
  const ONBOARDING_DEFAULT_DM_SCOPE = "per-channel-peer";
10
- const ONBOARDING_DEFAULT_TOOLS_PROFILE = "messaging";
10
+ const ONBOARDING_DEFAULT_TOOLS_PROFILE = "coding";
11
11
  function applyOnboardingLocalWorkspaceConfig(baseConfig, workspaceDir) {
12
12
  return {
13
13
  ...baseConfig,
@@ -7,7 +7,7 @@ var onboard_config_exports = /* @__PURE__ */ __exportAll({
7
7
  applyOnboardingLocalWorkspaceConfig: () => applyOnboardingLocalWorkspaceConfig
8
8
  });
9
9
  const ONBOARDING_DEFAULT_DM_SCOPE = "per-channel-peer";
10
- const ONBOARDING_DEFAULT_TOOLS_PROFILE = "messaging";
10
+ const ONBOARDING_DEFAULT_TOOLS_PROFILE = "coding";
11
11
  function applyOnboardingLocalWorkspaceConfig(baseConfig, workspaceDir) {
12
12
  return {
13
13
  ...baseConfig,
@@ -240,7 +240,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
240
240
  message: "Workspace directory",
241
241
  initialValue: baseConfig.agents?.defaults?.workspace ?? onboardHelpers.DEFAULT_WORKSPACE
242
242
  }))).trim() || onboardHelpers.DEFAULT_WORKSPACE);
243
- const { applyOnboardingLocalWorkspaceConfig } = await import("./onboard-config-DWnlWcjI.js").then((n) => n.n);
243
+ const { applyOnboardingLocalWorkspaceConfig } = await import("./onboard-config-C06y4K2b.js").then((n) => n.n);
244
244
  let nextConfig = applyOnboardingLocalWorkspaceConfig(baseConfig, workspaceDir);
245
245
  const { ensureAuthProfileStore } = await import("./model-selection-BNYB2YKL.js").then((n) => n.ht);
246
246
  const { promptAuthChoiceGrouped } = await import("./auth-choice-prompt-BYy_VPJU.js").then((n) => n.t);
@@ -391,7 +391,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
391
391
  mode
392
392
  });
393
393
  await writeConfigFile(nextConfig);
394
- const { finalizeOnboardingWizard } = await import("./onboarding.finalize-CEgugO0l.js");
394
+ const { finalizeOnboardingWizard } = await import("./onboarding.finalize-DPeb5UKU.js");
395
395
  const { launchedTui } = await finalizeOnboardingWizard({
396
396
  flow,
397
397
  opts,
@@ -240,7 +240,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
240
240
  message: "Workspace directory",
241
241
  initialValue: baseConfig.agents?.defaults?.workspace ?? onboardHelpers.DEFAULT_WORKSPACE
242
242
  }))).trim() || onboardHelpers.DEFAULT_WORKSPACE);
243
- const { applyOnboardingLocalWorkspaceConfig } = await import("./onboard-config-oUKoFfFB.js").then((n) => n.n);
243
+ const { applyOnboardingLocalWorkspaceConfig } = await import("./onboard-config-DzpTyHer.js").then((n) => n.n);
244
244
  let nextConfig = applyOnboardingLocalWorkspaceConfig(baseConfig, workspaceDir);
245
245
  const { ensureAuthProfileStore } = await import("./auth-profiles-Dhb7Y6H5.js").then((n) => n.t);
246
246
  const { promptAuthChoiceGrouped } = await import("./auth-choice-prompt-BFv49hiE.js").then((n) => n.t);
@@ -391,7 +391,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
391
391
  mode
392
392
  });
393
393
  await writeConfigFile(nextConfig);
394
- const { finalizeOnboardingWizard } = await import("./onboarding.finalize-B_gI9SXJ.js");
394
+ const { finalizeOnboardingWizard } = await import("./onboarding.finalize-D5Wmhsa1.js");
395
395
  const { launchedTui } = await finalizeOnboardingWizard({
396
396
  flow,
397
397
  opts,
@@ -113,9 +113,9 @@ import "./cli-utils-BAoBKJmP.js";
113
113
  import "./help-format-B7MhJztF.js";
114
114
  import "./progress-BdIQDPeC.js";
115
115
  import "./note-51HX9rr7.js";
116
- import { r as installCompletion } from "./completion-cli-FP9HAEQ3.js";
117
- import "./register.subclis-Cm8zQPce.js";
118
- import "./command-registry-CBfNNhgy.js";
116
+ import { r as installCompletion } from "./completion-cli-BxbU_lYn.js";
117
+ import "./register.subclis-Cjl06Zry.js";
118
+ import "./command-registry-BEFHpoCL.js";
119
119
  import "./program-context-BwKunb5X.js";
120
120
  import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-DoeVkj6M.js";
121
121
  import "./runtime-guard-FQfkfkx0.js";
@@ -126,7 +126,7 @@ import { r as healthCommand } from "./health-DD6PJgN8.js";
126
126
  import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-C08JRwwL.js";
127
127
  import { t as resolveOnboardingSecretInputString } from "./onboarding.secret-input-B92nv1e5.js";
128
128
  import { t as formatHealthCheckFailure } from "./health-format-GTeknL_T.js";
129
- import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-CCNHTpp9.js";
129
+ import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion--S9fsNQo.js";
130
130
  import { t as runTui } from "./tui-CRYLJSVD.js";
131
131
  import os from "node:os";
132
132
  import path from "node:path";
@@ -112,9 +112,9 @@ import "./progress-DBV-o6Lq.js";
112
112
  import "./server-lifecycle-DzdQa-qA.js";
113
113
  import "./stagger-RKJcYQbS.js";
114
114
  import "./runtime-guard-CxmMRXpH.js";
115
- import "./program-context-BfnHzkXT.js";
115
+ import "./program-context-CqbW3Ozx.js";
116
116
  import "./note-CaYZpgbP.js";
117
- import { r as installCompletion } from "./completion-cli-Bai3pUlw.js";
117
+ import { r as installCompletion } from "./completion-cli-rNt-qwSw.js";
118
118
  import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-DEnwl2jx.js";
119
119
  import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Dgg-ogyc.js";
120
120
  import { r as isSystemdUserServiceAvailable } from "./systemd-D5fH7kIo.js";
@@ -123,7 +123,7 @@ import { r as healthCommand } from "./health-DL7YyJbv.js";
123
123
  import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-C-HAB1VB.js";
124
124
  import { t as resolveOnboardingSecretInputString } from "./onboarding.secret-input-CcXojTI0.js";
125
125
  import { t as formatHealthCheckFailure } from "./health-format-Dbc6Wesr.js";
126
- import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-BQBZQyQq.js";
126
+ import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-BAJbdzsD.js";
127
127
  import { t as runTui } from "./tui-xjh85VPX.js";
128
128
  import os from "node:os";
129
129
  import path from "node:path";
@@ -1,11 +1,11 @@
1
- import { t as createSubsystemLogger, y as getChildLogger } from "./subsystem-CEiApUN8.js";
2
- import { o as escapeRegExp, x as toWhatsappJid } from "./utils-BFS4zK3g.js";
3
- import { X as loadConfig } from "./model-selection-BiqOlgFe.js";
1
+ import { t as createSubsystemLogger, y as getChildLogger } from "./subsystem-W834z9Wa.js";
2
+ import { o as escapeRegExp, x as toWhatsappJid } from "./utils-D2oM4XHm.js";
3
+ import { X as loadConfig } from "./model-selection-e9hodq0l.js";
4
4
  import { n as generateSecureUuid } from "./secure-random-xpZo1jCG.js";
5
- import { a as loadWebMedia, s as resolveMarkdownTableMode } from "./ir-B7IR3m4T.js";
5
+ import { a as loadWebMedia, s as resolveMarkdownTableMode } from "./ir-Dpg87zYv.js";
6
6
  import { n as normalizePollInput } from "./polls-CVGKOEN8.js";
7
- import { t as convertMarkdownTables } from "./tables-DTb5mzup.js";
8
- import { i as redactIdentifier, n as requireActiveWebListener } from "./active-listener-ClXqZUsD.js";
7
+ import { t as convertMarkdownTables } from "./tables-XtcH-BaF.js";
8
+ import { i as redactIdentifier, n as requireActiveWebListener } from "./active-listener-D9FARjMd.js";
9
9
 
10
10
  //#region src/markdown/whatsapp.ts
11
11
  /**
@@ -1,5 +1,5 @@
1
- import { i as saveMediaBuffer } from "./store-DcxsUE2f.js";
2
- import { a as loadWebMedia } from "./ir-B7IR3m4T.js";
1
+ import { i as saveMediaBuffer } from "./store-BNhebBGr.js";
2
+ import { a as loadWebMedia } from "./ir-Dpg87zYv.js";
3
3
  import { t as buildOutboundMediaLoadOptions } from "./load-options-BXqJ6gxm.js";
4
4
 
5
5
  //#region src/media/outbound-attachment.ts
@@ -1,4 +1,4 @@
1
- import { C as BOUNDARY_PATH_ALIAS_POLICIES, D as isNotFoundPathError, w as resolveBoundaryPath } from "./workspace-D6GL2anS.js";
1
+ import { C as BOUNDARY_PATH_ALIAS_POLICIES, D as isNotFoundPathError, w as resolveBoundaryPath } from "./workspace-ZgWjBCAm.js";
2
2
  import fs from "node:fs/promises";
3
3
  import os from "node:os";
4
4
 
@@ -1,6 +1,6 @@
1
1
  import os from "node:os";
2
2
  import path from "node:path";
3
- import fs from "node:fs";
3
+ import syncFs from "node:fs";
4
4
 
5
5
  //#region src/infra/home-dir.ts
6
6
  function normalize(value) {
@@ -94,10 +94,10 @@ function resolveStateDir(env = process.env, homedir = envHomedir(env)) {
94
94
  const newDir = newStateDir(effectiveHomedir);
95
95
  if (env.OPENCLAW_TEST_FAST === "1") return newDir;
96
96
  const legacyDirs = legacyStateDirs(effectiveHomedir);
97
- if (fs.existsSync(newDir)) return newDir;
97
+ if (syncFs.existsSync(newDir)) return newDir;
98
98
  const existingLegacy = legacyDirs.find((dir) => {
99
99
  try {
100
- return fs.existsSync(dir);
100
+ return syncFs.existsSync(dir);
101
101
  } catch {
102
102
  return false;
103
103
  }
@@ -137,7 +137,7 @@ function resolveConfigPathCandidate(env = process.env, homedir = envHomedir(env)
137
137
  if (env.OPENCLAW_TEST_FAST === "1") return resolveCanonicalConfigPath(env, resolveStateDir(env, homedir));
138
138
  const existing = resolveDefaultConfigCandidates(env, homedir).find((candidate) => {
139
139
  try {
140
- return fs.existsSync(candidate);
140
+ return syncFs.existsSync(candidate);
141
141
  } catch {
142
142
  return false;
143
143
  }
@@ -155,7 +155,7 @@ function resolveConfigPath(env = process.env, stateDir = resolveStateDir(env, en
155
155
  const stateOverride = env.OPENCLAW_STATE_DIR?.trim();
156
156
  const existing = [path.join(stateDir, CONFIG_FILENAME), ...LEGACY_CONFIG_FILENAMES.map((name) => path.join(stateDir, name))].find((candidate) => {
157
157
  try {
158
- return fs.existsSync(candidate);
158
+ return syncFs.existsSync(candidate);
159
159
  } catch {
160
160
  return false;
161
161
  }
@@ -1,8 +1,8 @@
1
- import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix } from "./paths-Cvc9EM8Y.js";
1
+ import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix } from "./paths-C6TxBCvO.js";
2
2
  import { c as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-DgdmD4k7.js";
3
3
  import os from "node:os";
4
4
  import path from "node:path";
5
- import fs from "node:fs";
5
+ import syncFs from "node:fs";
6
6
 
7
7
  //#region src/config/sessions/paths.ts
8
8
  function resolveAgentSessionsDir(agentId, env = process.env, homedir = () => resolveRequiredHomeDir(env, os.homedir)) {
@@ -88,7 +88,7 @@ function resolveStructuralSessionFallbackPath(candidateAbsPath, expectedAgentId)
88
88
  }
89
89
  function safeRealpathSync(filePath) {
90
90
  try {
91
- return fs.realpathSync(filePath);
91
+ return syncFs.realpathSync(filePath);
92
92
  } catch {
93
93
  return;
94
94
  }