@bitseek/claw 1.3.6 → 1.3.8-beta.1

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 (180) hide show
  1. package/dist/{accounts-CX1yOBOk.js → accounts-BTexwKe8.js} +1 -1
  2. package/dist/{accounts-Bwq1wvds.js → accounts-DMvETf-t.js} +1 -1
  3. package/dist/{accounts-CaiECgq3.js → accounts-ubG6irXZ.js} +16 -16
  4. package/dist/{active-listener-neKWQsOO.js → active-listener-Hd9sOu9T.js} +1 -1
  5. package/dist/{agent-scope-CTbRzU1C.js → agent-scope-C6hps0r3.js} +4 -4
  6. package/dist/{agents-BqONdWNu.js → agents-4yiCX5vO.js} +4 -4
  7. package/dist/{agents.config-2cTTTDPj.js → agents.config-C26BMyOA.js} +1 -1
  8. package/dist/{agents.config-DhIvFsFv.js → agents.config-C4xJzUcO.js} +1 -1
  9. package/dist/{api-key-rotation-BbZD-rsQ.js → api-key-rotation-Cv5_SG_o.js} +2 -2
  10. package/dist/{audio-preflight-C5Crv38h.js → audio-preflight-C2pZmbnM.js} +39 -39
  11. package/dist/{audio-transcription-runner-eVtEKUPC.js → audio-transcription-runner-CQ4BMvGX.js} +11 -11
  12. package/dist/{auth-choice-D6WGnKQk.js → auth-choice-Cpai95xS.js} +1 -1
  13. package/dist/{auth-choice-lhaABxGx.js → auth-choice-D9W2yx7x.js} +1 -1
  14. package/dist/{banner-CMCfl-_K.js → banner-DtaJorEc.js} +1 -1
  15. package/dist/{bindings-Daa-Etag.js → bindings-CsIiIjqN.js} +2 -2
  16. package/dist/build-info.json +2 -2
  17. package/dist/bundled/boot-md/handler.js +65 -65
  18. package/dist/bundled/bootstrap-extra-files/handler.js +7 -7
  19. package/dist/bundled/command-logger/handler.js +2 -2
  20. package/dist/bundled/session-memory/handler.js +65 -65
  21. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  22. package/dist/{channel-activity-D0BHmeoE.js → channel-activity-Dwc2BBvs.js} +3 -3
  23. package/dist/{channel-options-gDhT85r4.js → channel-options-D3Ck-1W2.js} +1 -1
  24. package/dist/{channel-options-Didnr81h.js → channel-options-DffMDeTp.js} +1 -1
  25. package/dist/{channel-web-C45x6ahP.js → channel-web-BB66exAr.js} +1 -1
  26. package/dist/{channel-web-rP0VBNIt.js → channel-web-zni8DLt7.js} +1 -1
  27. package/dist/{channels-cli-CZQbGl-H.js → channels-cli-D_gj850i.js} +6 -6
  28. package/dist/{channels-cli-BpiA2BQE.js → channels-cli-IQCAixeN.js} +6 -6
  29. package/dist/{chrome-BRjY_MCc.js → chrome-DWfXErGH.js} +26 -26
  30. package/dist/{chunk-Dfkbh8wX.js → chunk-2ZxftpDd.js} +1 -1
  31. package/dist/{cli-Cvdtw0CY.js → cli-BlPS7kZ9.js} +1 -1
  32. package/dist/{cli-D5yg1LCm.js → cli-CrgfzbyT.js} +1 -1
  33. package/dist/{command-registry-BSN6zVlZ.js → command-registry-CjTwwZuF.js} +11 -11
  34. package/dist/{commands-registry-NyRDVN7s.js → commands-registry-CTkboeeC.js} +5 -5
  35. package/dist/{completion-cli-BDeiV4p9.js → completion-cli-CgjnsXtn.js} +1 -1
  36. package/dist/{completion-cli-lZ6S6oKA.js → completion-cli-Clj1_156.js} +2 -2
  37. package/dist/{config-cli-C-yIXgGr.js → config-cli-CE1eTqAM.js} +1 -1
  38. package/dist/{config-cli-BtvOIDkG.js → config-cli-DwKVeQtE.js} +1 -1
  39. package/dist/{configure-DflayaB2.js → configure-BCUvl2Zf.js} +3 -3
  40. package/dist/{configure-CgbTpfrx.js → configure-D2KyFnr8.js} +3 -3
  41. package/dist/{deliver-DlLNT2iR.js → deliver-zrYSWfQ5.js} +22 -22
  42. package/dist/{diagnostic-DpOlXoSr.js → diagnostic-BO1GQJJf.js} +2 -2
  43. package/dist/{dock-DXlPVrMo.js → dock-Bm23mfim.js} +6 -6
  44. package/dist/{doctor-completion-BKCOmkBi.js → doctor-completion-BoZbJ2cC.js} +1 -1
  45. package/dist/{doctor-completion-Bim4XRFT.js → doctor-completion-CACrVkvp.js} +1 -1
  46. package/dist/entry.js +2 -2
  47. package/dist/{env-Bn6pmvjK.js → env-DNMZEG57.js} +2 -2
  48. package/dist/{errors-Ct2kCLWx.js → errors-B11yhRo6.js} +1 -1
  49. package/dist/extensionAPI.js +1 -1
  50. package/dist/{fetch-2cO0rj7X.js → fetch-4RonjgqX.js} +5 -5
  51. package/dist/{fetch-guard-iigSYt3Q.js → fetch-guard-B1EGEHan.js} +2 -2
  52. package/dist/{frontmatter-rlCI8Hmw.js → frontmatter-D6vByAHn.js} +2 -2
  53. package/dist/{fs-safe-CM9EhGvi.js → fs-safe-C77EShMC.js} +4 -4
  54. package/dist/{gateway-cli-CDgld1qp.js → gateway-cli-BUFxEad5.js} +8 -8
  55. package/dist/{gateway-cli-8DmbQc9V.js → gateway-cli-D9mIlXNc.js} +8 -8
  56. package/dist/{github-copilot-token-CPjAmbfr.js → github-copilot-token-DLGN-8YS.js} +7 -7
  57. package/dist/{health-Gkd0akfz.js → health-Cjj_F37M.js} +1 -1
  58. package/dist/{health-DaN3xECS.js → health-CpbNiL9A.js} +1 -1
  59. package/dist/{hooks-cli-gRM8FMyG.js → hooks-cli-C0lC4Kj0.js} +2 -2
  60. package/dist/{hooks-cli-n5Weiheq.js → hooks-cli-DRkHJxMs.js} +2 -2
  61. package/dist/{image-BWlmyhr-.js → image-DnxYCkHO.js} +6 -6
  62. package/dist/{image-ops-jvmQoiyw.js → image-ops-DCpyia_K.js} +1 -1
  63. package/dist/index.js +6 -6
  64. package/dist/{internal-hooks-oLQ2m8YT.js → internal-hooks-yQe6H47q.js} +1 -1
  65. package/dist/{ir-pR36nI-3.js → ir-DcDVAFj3.js} +6 -6
  66. package/dist/llm-slug-generator.js +65 -65
  67. package/dist/{logger-DelEB7MK.js → logger-BlH5MJiV.js} +1 -1
  68. package/dist/{login-Cm2zDfEU.js → login-CgEHUE7h.js} +6 -6
  69. package/dist/{login-qr-iS1jPDpP.js → login-qr-DUJfhbUe.js} +13 -13
  70. package/dist/{manager-BX3KtavU.js → manager-tozHviEd.js} +15 -15
  71. package/dist/{markdown-tables-pfs_NCNh.js → markdown-tables-BHONoo6S.js} +1 -1
  72. package/dist/{message-channel-DB68nc40.js → message-channel-pbgFFUNm.js} +1 -1
  73. package/dist/{model-selection-DfZMxaX3.js → model-selection-D_Si2Ict.js} +44 -44
  74. package/dist/{models-CJodAVSF.js → models-De_qVfBK.js} +2 -2
  75. package/dist/{models-cli-B1Dwj01V.js → models-cli-By7lFchJ.js} +2 -2
  76. package/dist/{models-cli-Ceb37L0t.js → models-cli-aJswKT_o.js} +3 -3
  77. package/dist/{npm-resolution-B5fqS6mO.js → npm-resolution-BiJCUhct.js} +1 -1
  78. package/dist/{npm-resolution-dNC8uD0I.js → npm-resolution-Ez_78UD2.js} +1 -1
  79. package/dist/{onboard-sKY5jwsH.js → onboard-CIrRD9vz.js} +2 -2
  80. package/dist/{onboard-BcaFvsav.js → onboard-DQJ6ZB5N.js} +2 -2
  81. package/dist/{onboard-channels-DPIysHDh.js → onboard-channels-AbBziYo3.js} +1 -1
  82. package/dist/{onboard-channels-DQ1rkv4c.js → onboard-channels-yslMqzIm.js} +1 -1
  83. package/dist/{onboarding-BRfS3PSa.js → onboarding-CIsQzEx6.js} +3 -3
  84. package/dist/{onboarding-JNyox6ZE.js → onboarding-exdNo-8e.js} +3 -3
  85. package/dist/{onboarding.finalize-CG9tTRyw.js → onboarding.finalize-BqpH39L7.js} +5 -5
  86. package/dist/{onboarding.finalize-hBg4b8IC.js → onboarding.finalize-spYqvVP0.js} +6 -6
  87. package/dist/{outbound-N9_vLIGT.js → outbound-9rXkgGZM.js} +7 -7
  88. package/dist/{outbound-attachment-CEt49GWZ.js → outbound-attachment-Cy8rvvJE.js} +2 -2
  89. package/dist/{path-alias-guards-xY_GOJVd.js → path-alias-guards-Cpb5gMG6.js} +1 -1
  90. package/dist/{paths-Bi8MJ8NM.js → paths-BHEVctLd.js} +3 -3
  91. package/dist/{paths-DKuX7-1L.js → paths-aGRLvQx9.js} +5 -5
  92. package/dist/{pi-embedded-cmJctBve.js → pi-embedded-BW8O-Z_R.js} +109 -15
  93. package/dist/{pi-embedded-CDXssetE.js → pi-embedded-DLrpQftt.js} +292 -198
  94. package/dist/{pi-embedded-helpers-DSPiPpLM.js → pi-embedded-helpers-Bo7e-QzJ.js} +29 -29
  95. package/dist/{pi-model-discovery-N7o4F93J.js → pi-model-discovery-DA46fxhD.js} +7 -7
  96. package/dist/{plugin-registry-NaHPDM1s.js → plugin-registry-CgjiDSJy.js} +1 -1
  97. package/dist/{plugin-registry-2CmN8Jv2.js → plugin-registry-DXEjCmXY.js} +1 -1
  98. package/dist/plugin-sdk/agents/pi-tools.read.d.ts +1 -0
  99. package/dist/plugin-sdk/{channel-web-Dn5fneOY.js → channel-web-BhgjzJX5.js} +1 -1
  100. package/dist/plugin-sdk/index.js +2 -2
  101. package/dist/plugin-sdk/{reply-rsLB0nJs.js → reply-CLQkx08P.js} +107 -13
  102. package/dist/plugin-sdk/{web-RBob4uU1.js → web-D5yQYvYF.js} +2 -2
  103. package/dist/{plugins-D63QYxW6.js → plugins-CJoaoIHc.js} +11 -11
  104. package/dist/{plugins-cli-DwKgp7q7.js → plugins-cli-CpSINdz-.js} +2 -2
  105. package/dist/{plugins-cli-o6KJO4Qe.js → plugins-cli-DKIC54hQ.js} +2 -2
  106. package/dist/{program-B_-eFyJE.js → program-R4eCXcVV.js} +7 -7
  107. package/dist/{program-context-BJQXRZ1w.js → program-context-XIBDpYkH.js} +19 -19
  108. package/dist/{prompt-select-styled-QH4mD93d.js → prompt-select-styled-CSGsMtmW.js} +4 -4
  109. package/dist/{prompt-select-styled-asxoqY78.js → prompt-select-styled-CxcE42jh.js} +4 -4
  110. package/dist/{provider-auth-helpers-hI1pbI9r.js → provider-auth-helpers-BPwzCB_M.js} +1 -1
  111. package/dist/{provider-auth-helpers-CzSm0FSu.js → provider-auth-helpers-BqRZaAgE.js} +1 -1
  112. package/dist/{proxy-jINniQBi.js → proxy-DfJJLvch.js} +1 -1
  113. package/dist/{proxy-env-Drg9J503.js → proxy-env-ynOWOBHx.js} +1 -1
  114. package/dist/{proxy-fetch-AvkSvetA.js → proxy-fetch-xlbVQYN_.js} +1 -1
  115. package/dist/{push-apns-DZ0qaSFA.js → push-apns-BFPYim-z.js} +1 -1
  116. package/dist/{push-apns-DMeB2M_b.js → push-apns-D_JirvZj.js} +1 -1
  117. package/dist/{pw-ai-gDXxKGzT.js → pw-ai-Cu3cnNF0.js} +17 -17
  118. package/dist/{qmd-manager-DXbV8CPG.js → qmd-manager-n4jauq3A.js} +11 -11
  119. package/dist/{query-expansion-C0A4WwZX.js → query-expansion-CdDUaBcQ.js} +5 -5
  120. package/dist/{redact-BC9R18Uw.js → redact-CaZQhKzI.js} +1 -1
  121. package/dist/{register.agent-D9rmYCMS.js → register.agent-Cls5qjTc.js} +6 -6
  122. package/dist/{register.agent-BBOmACUM.js → register.agent-rU2v36L0.js} +7 -7
  123. package/dist/{register.configure-CZF2XAPO.js → register.configure-BMDzBahu.js} +7 -7
  124. package/dist/{register.configure-BJ7l1h-A.js → register.configure-BUhyYBGQ.js} +7 -7
  125. package/dist/{register.init-BdPckTb9.js → register.init-CFdcOH88.js} +1 -0
  126. package/dist/{register.init-CNKrbvCo.js → register.init-pWy0PRza.js} +1 -0
  127. package/dist/{register.maintenance-B0nZqqML.js → register.maintenance-CofdyNUx.js} +7 -7
  128. package/dist/{register.maintenance-DvWoKstb.js → register.maintenance-Cy17SXVH.js} +8 -8
  129. package/dist/{register.message-BME4m1Jr.js → register.message-3BQdcipC.js} +2 -2
  130. package/dist/{register.message-Cs0mwtTw.js → register.message-Ce33qQCZ.js} +2 -2
  131. package/dist/{register.onboard-DOhvWYV7.js → register.onboard-BlcK7F0u.js} +2 -2
  132. package/dist/{register.onboard-B1-O21vU.js → register.onboard-ESEjBMtx.js} +2 -2
  133. package/dist/{register.setup-ixDBzvTR.js → register.setup-CUxHFPRL.js} +2 -2
  134. package/dist/{register.setup-KPZYo_I1.js → register.setup-N8V5bjG1.js} +2 -2
  135. package/dist/{register.start-Df91ZVJJ.js → register.start-CI8ol0Mk.js} +1 -1
  136. package/dist/{register.start-DErNT3nQ.js → register.start-D5trBtN0.js} +1 -1
  137. package/dist/{register.status-health-sessions-Czq26k6E.js → register.status-health-sessions-BKFS62CW.js} +3 -3
  138. package/dist/{register.status-health-sessions-wp3A615j.js → register.status-health-sessions-Bj4rUQRe.js} +3 -3
  139. package/dist/{register.subclis-BSGvOwqU.js → register.subclis-lEqV1Knw.js} +9 -9
  140. package/dist/{registry-C2GEGa2t.js → registry-CJCkqTms.js} +3 -3
  141. package/dist/{replies-B6I1tT5t.js → replies-D6zARd6r.js} +3 -3
  142. package/dist/{reply-OEcNPoWd.js → reply-CAA6gLtt.js} +109 -15
  143. package/dist/{reply-prefix-9mzt89Cf.js → reply-prefix-DK1i6bCJ.js} +1 -1
  144. package/dist/{resolve-route-BNElrVxR.js → resolve-route-C5hVstLo.js} +4 -4
  145. package/dist/{retry-Ayb7e4XG.js → retry-DTeP7C3h.js} +1 -1
  146. package/dist/{run-main-CdI1kXKr.js → run-main-BTmP3wme.js} +14 -14
  147. package/dist/{send-BMzVXosN.js → send--Gq-Uh-l.js} +7 -7
  148. package/dist/{send-DC_e_Iev.js → send-BpyiQEov.js} +6 -6
  149. package/dist/{send-B6QQ8XfC.js → send-CcQZM0c7.js} +8 -8
  150. package/dist/{send-Buidj_8L.js → send-D2zYssqK.js} +27 -27
  151. package/dist/{send-BQETStDl.js → send-DcL81tZr.js} +10 -10
  152. package/dist/{server-node-events-BE-B31Iv.js → server-node-events-CD_Wo8L4.js} +2 -2
  153. package/dist/{server-node-events-h5NyibKC.js → server-node-events-ap09x8RZ.js} +2 -2
  154. package/dist/{session-meta-DAMj6ZRX.js → session-meta-BbCwXniv.js} +2 -2
  155. package/dist/{session-TVb8hgJP.js → session-xKPVUYQP.js} +9 -9
  156. package/dist/{sessions-Ck4ZR4dY.js → sessions-D7EjW0sG.js} +31 -31
  157. package/dist/{skill-commands-KesfMtZ9.js → skill-commands-Cea3CZFF.js} +9 -9
  158. package/dist/{skills-BYmEoxNo.js → skills-BttlqUXr.js} +22 -22
  159. package/dist/{status-CmNVuywF.js → status-CB2Fs5iL.js} +2 -2
  160. package/dist/{status-D_I-fLJF.js → status-DCtLhxlh.js} +2 -2
  161. package/dist/{store-KLMMBnKE.js → store-B7PaqfvZ.js} +2 -2
  162. package/dist/{subagent-registry-D4xGq2uc.js → subagent-registry-B4xJjOu2.js} +109 -15
  163. package/dist/{subsystem-CAatx5oo.js → subsystem-BRjuJbbM.js} +14 -14
  164. package/dist/{tables-DqechQWF.js → tables-BJ0XAman.js} +1 -1
  165. package/dist/{target-errors-C-KolUyX.js → target-errors-Dad0aUFR.js} +2 -2
  166. package/dist/{tokens-BvzZdrVJ.js → tokens-B9EDT4jv.js} +1 -1
  167. package/dist/{tool-images-DiKIlElg.js → tool-images-ArXzv82F.js} +2 -2
  168. package/dist/{tool-loop-detection-C4V990MS.js → tool-loop-detection-CLoYKYIq.js} +3 -3
  169. package/dist/{update-cli-CfeiDzYx.js → update-cli-BIMys5Ua.js} +7 -7
  170. package/dist/{update-cli-DKmrzt8l.js → update-cli-BuVnlit7.js} +8 -8
  171. package/dist/{update-runner-D5vyQGte.js → update-runner-C4bLqctv.js} +1 -1
  172. package/dist/{update-runner-BUth8QlB.js → update-runner-DGqZqXVF.js} +1 -1
  173. package/dist/{utils-Bo1RFF0l.js → utils-BFZnl-5N.js} +6 -6
  174. package/dist/{web-CQqnJkMB.js → web-BCpNE4aE.js} +2 -2
  175. package/dist/{web-BYeS4JNp.js → web-BJQKWHqO.js} +1 -1
  176. package/dist/{web-BPI4HIht.js → web-Bun-T89j.js} +69 -69
  177. package/dist/{web-Bc1AWW4q.js → web-Cb4sindp.js} +2 -2
  178. package/dist/{whatsapp-actions-Bf61u88d.js → whatsapp-actions-Be9uvUUL.js} +28 -28
  179. package/dist/{workspace-CswOYN9T.js → workspace-D6mrCnXi.js} +21 -21
  180. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { h as pathExists } from "./utils-CP51tiAi.js";
2
- import { G as trimLogTail } from "./reply-OEcNPoWd.js";
2
+ import { G as trimLogTail } from "./reply-CAA6gLtt.js";
3
3
  import { t as runCommandWithTimeout } from "./exec-BdDcFm8M.js";
4
4
  import { p as resolveStableNodePath } from "./daemon-install-helpers-BM1DaOy4.js";
5
5
  import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-Cj27cPhO.js";
@@ -1,6 +1,6 @@
1
1
  import { m as pathExists } from "./utils-DIzy5B5o.js";
2
2
  import { t as runCommandWithTimeout } from "./exec-CEAvKSx9.js";
3
- import { Nt as trimLogTail } from "./subagent-registry-D4xGq2uc.js";
3
+ import { Nt as trimLogTail } from "./subagent-registry-B4xJjOu2.js";
4
4
  import { p as resolveStableNodePath } from "./daemon-install-helpers-DJg83rPu.js";
5
5
  import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-CTp_YbTN.js";
6
6
  import { d as channelToNpmTag, l as DEFAULT_PACKAGE_CHANNEL, m as isStableTag, p as isBetaTag, r as compareSemverStrings, s as detectPackageManager$1, u as DEV_BRANCH } from "./channel-account-context-DSofwLgp.js";
@@ -1,8 +1,8 @@
1
- import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir, u as resolveEffectiveHomeDir } from "./paths-DKuX7-1L.js";
2
- import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-CAatx5oo.js";
1
+ import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir, u as resolveEffectiveHomeDir } from "./paths-aGRLvQx9.js";
2
+ import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-BRjuJbbM.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/infra/plain-object.ts
8
8
  /**
@@ -15,14 +15,14 @@ function isPlainObject(value) {
15
15
  //#endregion
16
16
  //#region src/utils.ts
17
17
  async function ensureDir(dir) {
18
- await fs.promises.mkdir(dir, { recursive: true });
18
+ await syncFs.promises.mkdir(dir, { recursive: true });
19
19
  }
20
20
  /**
21
21
  * Check if a file or directory exists at the given path.
22
22
  */
23
23
  async function pathExists(targetPath) {
24
24
  try {
25
- await fs.promises.access(targetPath);
25
+ await syncFs.promises.access(targetPath);
26
26
  return true;
27
27
  } catch {
28
28
  return false;
@@ -105,7 +105,7 @@ function readLidReverseMapping(lid, opts) {
105
105
  for (const dir of mappingDirs) {
106
106
  const mappingPath = path.join(dir, mappingFilename);
107
107
  try {
108
- const data = fs.readFileSync(mappingPath, "utf8");
108
+ const data = syncFs.readFileSync(mappingPath, "utf8");
109
109
  const phone = JSON.parse(data);
110
110
  if (phone === null || phone === void 0) continue;
111
111
  return normalizeE164(String(phone));
@@ -30,7 +30,7 @@ import "./accounts-C0g5--0e.js";
30
30
  import "./bindings-C2tByF8e.js";
31
31
  import "./send-BaweV9LV.js";
32
32
  import "./send-aCOVuBQ6.js";
33
- import "./subagent-registry-D4xGq2uc.js";
33
+ import "./subagent-registry-B4xJjOu2.js";
34
34
  import "./paths-CFzDnbY4.js";
35
35
  import "./chat-envelope-AUuZAcrC.js";
36
36
  import "./client-D3Y8sx9i.js";
@@ -120,7 +120,7 @@ import "./progress-BkZzF3Qm.js";
120
120
  import "./constants-D1Q8yQ1_.js";
121
121
  import "./context-window-guard-BqrKjiIm.js";
122
122
  import { n as sendMessageWhatsApp } from "./outbound-DP_Pdp7e.js";
123
- import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-C45x6ahP.js";
123
+ import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-BB66exAr.js";
124
124
  import { i as waitForWaConnection, t as createWaSocket } from "./session-BilXyYPK.js";
125
125
  import { t as loginWeb } from "./login-CUi8T8WR.js";
126
126
 
@@ -11,7 +11,7 @@ import { r as formatCliCommand } from "./env-zky96nK6.js";
11
11
  import "./registry-BOq-EU8K.js";
12
12
  import { a as resolveChannelGroupRequireMention, i as resolveChannelGroupPolicy } from "./dock-BbAcYCr3.js";
13
13
  import "./tokens-2c_yMaYC.js";
14
- import { A as shouldComputeCommandAuthorized, C as createDedupeCache, D as formatDurationPrecise, E as parseActivationCommand, M as normalizeMentionText, O as enqueueSystemEvent, S as formatInboundEnvelope, T as normalizeGroupActivation, _ as shouldAckReactionForWhatsApp, a as buildPairingReply, b as createInboundDebouncer, c as buildHistoryContextFromEntries, d as resolveOpenProviderRuntimeGroupPolicy, f as warnMissingProviderGroupPolicyFallbackOnce, g as resolvePinnedMainDmOwnerFromAllowlist, h as resolveDmGroupAccessWithLists, i as sleepWithAbort, j as buildMentionRegexes, k as hasControlCommand, l as recordPendingHistoryEntryIfEnabled, m as resolveDmGroupAccessWithCommandGate, n as resolveInboundSessionEnvelopeContext, o as resolveMentionGating, p as readStoreAllowFromForDmPolicy, r as computeBackoff, s as DEFAULT_GROUP_HISTORY_LIMIT, u as resolveDefaultGroupPolicy, v as dispatchReplyWithBufferedBlockDispatcher, w as getReplyFromConfig, x as resolveInboundDebounceMs } from "./pi-embedded-cmJctBve.js";
14
+ import { A as shouldComputeCommandAuthorized, C as createDedupeCache, D as formatDurationPrecise, E as parseActivationCommand, M as normalizeMentionText, O as enqueueSystemEvent, S as formatInboundEnvelope, T as normalizeGroupActivation, _ as shouldAckReactionForWhatsApp, a as buildPairingReply, b as createInboundDebouncer, c as buildHistoryContextFromEntries, d as resolveOpenProviderRuntimeGroupPolicy, f as warnMissingProviderGroupPolicyFallbackOnce, g as resolvePinnedMainDmOwnerFromAllowlist, h as resolveDmGroupAccessWithLists, i as sleepWithAbort, j as buildMentionRegexes, k as hasControlCommand, l as recordPendingHistoryEntryIfEnabled, m as resolveDmGroupAccessWithCommandGate, n as resolveInboundSessionEnvelopeContext, o as resolveMentionGating, p as readStoreAllowFromForDmPolicy, r as computeBackoff, s as DEFAULT_GROUP_HISTORY_LIMIT, u as resolveDefaultGroupPolicy, v as dispatchReplyWithBufferedBlockDispatcher, w as getReplyFromConfig, x as resolveInboundDebounceMs } from "./pi-embedded-BW8O-Z_R.js";
15
15
  import "./plugins-BuQyooWr.js";
16
16
  import { a as logWebSelfId, c as pickWebChannel, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, r as WA_WEB_AUTH_DIR, u as readWebSelfId } from "./accounts-DYfFud2l.js";
17
17
  import "./bindings-Cn3Pwuys.js";
@@ -1,79 +1,79 @@
1
- import "./agent-scope-CTbRzU1C.js";
2
- import "./paths-DKuX7-1L.js";
3
- import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-CAatx5oo.js";
1
+ import "./agent-scope-C6hps0r3.js";
2
+ import "./paths-aGRLvQx9.js";
3
+ import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-BRjuJbbM.js";
4
4
  import { a as buildGroupHistoryKey, c as normalizeAgentId, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey } from "./session-key-a6av96Fj.js";
5
- import { d as normalizeE164, l as isSelfChatMode, m as resolveJidToE164, n as clamp, u as jidToE164, x as toWhatsappJid, y as sleep } from "./utils-Bo1RFF0l.js";
6
- import "./workspace-CswOYN9T.js";
7
- import "./logger-DelEB7MK.js";
8
- import { H as loadConfig } from "./model-selection-DfZMxaX3.js";
9
- import "./github-copilot-token-CPjAmbfr.js";
10
- import { n as formatCliCommand } from "./env-Bn6pmvjK.js";
5
+ import { d as normalizeE164, l as isSelfChatMode, m as resolveJidToE164, n as clamp, u as jidToE164, x as toWhatsappJid, y as sleep } from "./utils-BFZnl-5N.js";
6
+ import "./workspace-D6mrCnXi.js";
7
+ import "./logger-BlH5MJiV.js";
8
+ import { H as loadConfig } from "./model-selection-D_Si2Ict.js";
9
+ import "./github-copilot-token-DLGN-8YS.js";
10
+ import { n as formatCliCommand } from "./env-DNMZEG57.js";
11
11
  import "./boolean-mcn6kL0s.js";
12
- import "./internal-hooks-oLQ2m8YT.js";
13
- import "./registry-C2GEGa2t.js";
14
- import { a as resolveChannelGroupRequireMention, i as resolveChannelGroupPolicy } from "./dock-DXlPVrMo.js";
15
- import "./tokens-BvzZdrVJ.js";
16
- import { A as enqueueSystemEvent, C as resolveInboundDebounceMs, D as normalizeGroupActivation, E as getReplyFromConfig, M as shouldComputeCommandAuthorized, N as buildMentionRegexes, O as parseActivationCommand, P as normalizeMentionText, S as createInboundDebouncer, T as createDedupeCache, _ as resolveDmGroupAccessWithLists, b as dispatchReplyWithBufferedBlockDispatcher, c as resolveMentionGating, d as recordPendingHistoryEntryIfEnabled, f as resolveDefaultGroupPolicy, g as resolveDmGroupAccessWithCommandGate, h as readStoreAllowFromForDmPolicy, i as sleepWithAbort, j as hasControlCommand, k as formatDurationPrecise, l as DEFAULT_GROUP_HISTORY_LIMIT, m as warnMissingProviderGroupPolicyFallbackOnce, n as resolveInboundSessionEnvelopeContext, p as resolveOpenProviderRuntimeGroupPolicy, r as computeBackoff, s as buildPairingReply, u as buildHistoryContextFromEntries, v as resolvePinnedMainDmOwnerFromAllowlist, w as formatInboundEnvelope, y as shouldAckReactionForWhatsApp } from "./pi-embedded-CDXssetE.js";
17
- import "./plugins-D63QYxW6.js";
18
- import { a as logWebSelfId, c as pickWebChannel, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, r as WA_WEB_AUTH_DIR, u as readWebSelfId } from "./accounts-CaiECgq3.js";
19
- import "./bindings-Daa-Etag.js";
20
- import "./send-B6QQ8XfC.js";
21
- import "./send-BQETStDl.js";
22
- import "./deliver-DlLNT2iR.js";
23
- import "./diagnostic-DpOlXoSr.js";
12
+ import "./internal-hooks-yQe6H47q.js";
13
+ import "./registry-CJCkqTms.js";
14
+ import { a as resolveChannelGroupRequireMention, i as resolveChannelGroupPolicy } from "./dock-Bm23mfim.js";
15
+ import "./tokens-B9EDT4jv.js";
16
+ import { A as enqueueSystemEvent, C as resolveInboundDebounceMs, D as normalizeGroupActivation, E as getReplyFromConfig, M as shouldComputeCommandAuthorized, N as buildMentionRegexes, O as parseActivationCommand, P as normalizeMentionText, S as createInboundDebouncer, T as createDedupeCache, _ as resolveDmGroupAccessWithLists, b as dispatchReplyWithBufferedBlockDispatcher, c as resolveMentionGating, d as recordPendingHistoryEntryIfEnabled, f as resolveDefaultGroupPolicy, g as resolveDmGroupAccessWithCommandGate, h as readStoreAllowFromForDmPolicy, i as sleepWithAbort, j as hasControlCommand, k as formatDurationPrecise, l as DEFAULT_GROUP_HISTORY_LIMIT, m as warnMissingProviderGroupPolicyFallbackOnce, n as resolveInboundSessionEnvelopeContext, p as resolveOpenProviderRuntimeGroupPolicy, r as computeBackoff, s as buildPairingReply, u as buildHistoryContextFromEntries, v as resolvePinnedMainDmOwnerFromAllowlist, w as formatInboundEnvelope, y as shouldAckReactionForWhatsApp } from "./pi-embedded-DLrpQftt.js";
17
+ import "./plugins-CJoaoIHc.js";
18
+ import { a as logWebSelfId, c as pickWebChannel, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, r as WA_WEB_AUTH_DIR, u as readWebSelfId } from "./accounts-ubG6irXZ.js";
19
+ import "./bindings-CsIiIjqN.js";
20
+ import "./send-CcQZM0c7.js";
21
+ import "./send-DcL81tZr.js";
22
+ import "./deliver-zrYSWfQ5.js";
23
+ import "./diagnostic-BO1GQJJf.js";
24
24
  import "./diagnostic-session-state-DBPrVBk3.js";
25
- import "./accounts-CX1yOBOk.js";
26
- import { X as formatLocationText, Z as toLocationContext, tt as upsertChannelPairingRequest } from "./send-Buidj_8L.js";
27
- import "./image-ops-jvmQoiyw.js";
28
- import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-eVtEKUPC.js";
29
- import "./pi-model-discovery-N7o4F93J.js";
30
- import "./message-channel-DB68nc40.js";
31
- import "./pi-embedded-helpers-DSPiPpLM.js";
32
- import "./chrome-BRjY_MCc.js";
33
- import "./frontmatter-rlCI8Hmw.js";
34
- import "./skills-BYmEoxNo.js";
35
- import "./path-alias-guards-xY_GOJVd.js";
36
- import "./redact-BC9R18Uw.js";
37
- import "./errors-Ct2kCLWx.js";
38
- import "./fs-safe-CM9EhGvi.js";
39
- import "./proxy-env-Drg9J503.js";
40
- import { i as saveMediaBuffer } from "./store-KLMMBnKE.js";
41
- import { G as resolveGroupSessionKey, c as recordSessionMetaFromInbound, l as updateLastRoute, o as loadSessionStore } from "./sessions-Ck4ZR4dY.js";
42
- import "./accounts-Bwq1wvds.js";
43
- import { s as resolveStorePath } from "./paths-Bi8MJ8NM.js";
44
- import "./tool-images-DiKIlElg.js";
25
+ import "./accounts-BTexwKe8.js";
26
+ import { X as formatLocationText, Z as toLocationContext, tt as upsertChannelPairingRequest } from "./send-D2zYssqK.js";
27
+ import "./image-ops-DCpyia_K.js";
28
+ import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-CQ4BMvGX.js";
29
+ import "./pi-model-discovery-DA46fxhD.js";
30
+ import "./message-channel-pbgFFUNm.js";
31
+ import "./pi-embedded-helpers-Bo7e-QzJ.js";
32
+ import "./chrome-DWfXErGH.js";
33
+ import "./frontmatter-D6vByAHn.js";
34
+ import "./skills-BttlqUXr.js";
35
+ import "./path-alias-guards-Cpb5gMG6.js";
36
+ import "./redact-CaZQhKzI.js";
37
+ import "./errors-B11yhRo6.js";
38
+ import "./fs-safe-C77EShMC.js";
39
+ import "./proxy-env-ynOWOBHx.js";
40
+ import { i as saveMediaBuffer } from "./store-B7PaqfvZ.js";
41
+ import { G as resolveGroupSessionKey, c as recordSessionMetaFromInbound, l as updateLastRoute, o as loadSessionStore } from "./sessions-D7EjW0sG.js";
42
+ import "./accounts-DMvETf-t.js";
43
+ import { s as resolveStorePath } from "./paths-BHEVctLd.js";
44
+ import "./tool-images-ArXzv82F.js";
45
45
  import "./thinking-BcOnJa2q.js";
46
- import "./image-BWlmyhr-.js";
47
- import { i as getAgentScopedMediaLocalRoots } from "./fetch-2cO0rj7X.js";
48
- import "./fetch-guard-iigSYt3Q.js";
49
- import "./api-key-rotation-BbZD-rsQ.js";
50
- import "./proxy-fetch-AvkSvetA.js";
51
- import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-9mzt89Cf.js";
52
- import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-Dfkbh8wX.js";
53
- import { n as resolveMarkdownTableMode } from "./markdown-tables-pfs_NCNh.js";
54
- import { a as loadWebMedia } from "./ir-pR36nI-3.js";
46
+ import "./image-DnxYCkHO.js";
47
+ import { i as getAgentScopedMediaLocalRoots } from "./fetch-4RonjgqX.js";
48
+ import "./fetch-guard-B1EGEHan.js";
49
+ import "./api-key-rotation-Cv5_SG_o.js";
50
+ import "./proxy-fetch-xlbVQYN_.js";
51
+ import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-DK1i6bCJ.js";
52
+ import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-2ZxftpDd.js";
53
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
54
+ import { a as loadWebMedia } from "./ir-DcDVAFj3.js";
55
55
  import "./render-flG67HhW.js";
56
- import "./target-errors-C-KolUyX.js";
57
- import "./commands-registry-NyRDVN7s.js";
58
- import "./skill-commands-KesfMtZ9.js";
56
+ import "./target-errors-Dad0aUFR.js";
57
+ import "./commands-registry-CTkboeeC.js";
58
+ import "./skill-commands-Cea3CZFF.js";
59
59
  import { t as finalizeInboundContext } from "./inbound-context-CTd41MBO.js";
60
60
  import "./fetch-CIXnD4u2.js";
61
- import "./retry-Ayb7e4XG.js";
62
- import { n as recordChannelActivity } from "./channel-activity-D0BHmeoE.js";
63
- import { t as convertMarkdownTables } from "./tables-DqechQWF.js";
64
- import "./send-DC_e_Iev.js";
65
- import "./outbound-attachment-CEt49GWZ.js";
66
- import "./send-BMzVXosN.js";
67
- import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-BNElrVxR.js";
68
- import { r as setActiveWebListener } from "./active-listener-neKWQsOO.js";
69
- import "./proxy-jINniQBi.js";
70
- import "./replies-B6I1tT5t.js";
71
- import "./session-meta-DAMj6ZRX.js";
72
- import "./manager-BX3KtavU.js";
73
- import "./query-expansion-C0A4WwZX.js";
74
- import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-N9_vLIGT.js";
75
- import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-TVb8hgJP.js";
76
- import { t as loginWeb } from "./login-Cm2zDfEU.js";
61
+ import "./retry-DTeP7C3h.js";
62
+ import { n as recordChannelActivity } from "./channel-activity-Dwc2BBvs.js";
63
+ import { t as convertMarkdownTables } from "./tables-BJ0XAman.js";
64
+ import "./send-BpyiQEov.js";
65
+ import "./outbound-attachment-Cy8rvvJE.js";
66
+ import "./send--Gq-Uh-l.js";
67
+ import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-C5hVstLo.js";
68
+ import { r as setActiveWebListener } from "./active-listener-Hd9sOu9T.js";
69
+ import "./proxy-DfJJLvch.js";
70
+ import "./replies-D6zARd6r.js";
71
+ import "./session-meta-BbCwXniv.js";
72
+ import "./manager-tozHviEd.js";
73
+ import "./query-expansion-CdDUaBcQ.js";
74
+ import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-9rXkgGZM.js";
75
+ import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-xKPVUYQP.js";
76
+ import { t as loginWeb } from "./login-CgEHUE7h.js";
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
79
79
 
@@ -2,7 +2,7 @@ import "./paths-BYr-iJJ9.js";
2
2
  import "./globals-uLeGcRW1.js";
3
3
  import "./utils-CP51tiAi.js";
4
4
  import "./thinking-44rmAw5o.js";
5
- import "./reply-OEcNPoWd.js";
5
+ import "./reply-CAA6gLtt.js";
6
6
  import "./agent-scope-CiBV1K6b.js";
7
7
  import "./subsystem-BT74-yyS.js";
8
8
  import "./workspace-CRdln__H.js";
@@ -118,7 +118,7 @@ import "./server-lifecycle-Dn1WcypX.js";
118
118
  import "./stagger-BIZMWR_z.js";
119
119
  import "./constants-BJMtcGm_.js";
120
120
  import "./context-window-guard-DfLcl4Sl.js";
121
- import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-rP0VBNIt.js";
121
+ import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-zni8DLt7.js";
122
122
  import { n as sendMessageWhatsApp } from "./outbound-CtZPRYPg.js";
123
123
  import { i as waitForWaConnection, t as createWaSocket } from "./session-BHs5exRb.js";
124
124
  import { t as loginWeb } from "./login-D9H_vUK_.js";
@@ -1,33 +1,33 @@
1
- import "./agent-scope-CTbRzU1C.js";
2
- import "./paths-DKuX7-1L.js";
3
- import "./subsystem-CAatx5oo.js";
4
- import "./utils-Bo1RFF0l.js";
5
- import "./workspace-CswOYN9T.js";
6
- import "./logger-DelEB7MK.js";
7
- import "./model-selection-DfZMxaX3.js";
8
- import "./github-copilot-token-CPjAmbfr.js";
9
- import "./env-Bn6pmvjK.js";
1
+ import "./agent-scope-C6hps0r3.js";
2
+ import "./paths-aGRLvQx9.js";
3
+ import "./subsystem-BRjuJbbM.js";
4
+ import "./utils-BFZnl-5N.js";
5
+ import "./workspace-D6mrCnXi.js";
6
+ import "./logger-BlH5MJiV.js";
7
+ import "./model-selection-D_Si2Ict.js";
8
+ import "./github-copilot-token-DLGN-8YS.js";
9
+ import "./env-DNMZEG57.js";
10
10
  import "./boolean-mcn6kL0s.js";
11
- import "./internal-hooks-oLQ2m8YT.js";
12
- import "./registry-C2GEGa2t.js";
13
- import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-D63QYxW6.js";
14
- import { n as resolveWhatsAppAccount } from "./accounts-CaiECgq3.js";
15
- import "./bindings-Daa-Etag.js";
16
- import "./image-ops-jvmQoiyw.js";
17
- import "./message-channel-DB68nc40.js";
18
- import "./path-alias-guards-xY_GOJVd.js";
19
- import "./fs-safe-CM9EhGvi.js";
20
- import "./proxy-env-Drg9J503.js";
21
- import "./tool-images-DiKIlElg.js";
22
- import "./fetch-2cO0rj7X.js";
23
- import "./fetch-guard-iigSYt3Q.js";
24
- import "./chunk-Dfkbh8wX.js";
25
- import "./markdown-tables-pfs_NCNh.js";
26
- import "./ir-pR36nI-3.js";
11
+ import "./internal-hooks-yQe6H47q.js";
12
+ import "./registry-CJCkqTms.js";
13
+ import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-CJoaoIHc.js";
14
+ import { n as resolveWhatsAppAccount } from "./accounts-ubG6irXZ.js";
15
+ import "./bindings-CsIiIjqN.js";
16
+ import "./image-ops-DCpyia_K.js";
17
+ import "./message-channel-pbgFFUNm.js";
18
+ import "./path-alias-guards-Cpb5gMG6.js";
19
+ import "./fs-safe-C77EShMC.js";
20
+ import "./proxy-env-ynOWOBHx.js";
21
+ import "./tool-images-ArXzv82F.js";
22
+ import "./fetch-4RonjgqX.js";
23
+ import "./fetch-guard-B1EGEHan.js";
24
+ import "./chunk-2ZxftpDd.js";
25
+ import "./markdown-tables-BHONoo6S.js";
26
+ import "./ir-DcDVAFj3.js";
27
27
  import "./render-flG67HhW.js";
28
- import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-C-KolUyX.js";
29
- import "./tables-DqechQWF.js";
30
- import { r as sendReactionWhatsApp } from "./outbound-N9_vLIGT.js";
28
+ import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-Dad0aUFR.js";
29
+ import "./tables-BJ0XAman.js";
30
+ import { r as sendReactionWhatsApp } from "./outbound-9rXkgGZM.js";
31
31
 
32
32
  //#region src/whatsapp/resolve-outbound-target.ts
33
33
  function resolveWhatsAppOutboundTarget(params) {
@@ -1,12 +1,12 @@
1
- import { c as resolveStateDir } from "./paths-DKuX7-1L.js";
2
- import { c as danger, p as shouldLogVerbose } from "./subsystem-CAatx5oo.js";
1
+ import { c as resolveStateDir } from "./paths-aGRLvQx9.js";
2
+ import { c as danger, p as shouldLogVerbose } from "./subsystem-BRjuJbbM.js";
3
3
  import { b as isCronSessionKey, x as isSubagentSessionKey } from "./session-key-a6av96Fj.js";
4
- import { f as pathExists$1, h as resolveUserPath } from "./utils-Bo1RFF0l.js";
5
- import { n as logError, t as logDebug } from "./logger-DelEB7MK.js";
4
+ import { f as pathExists$1, h as resolveUserPath } from "./utils-BFZnl-5N.js";
5
+ import { n as logError, t as logDebug } from "./logger-BlH5MJiV.js";
6
6
  import fs from "node:fs/promises";
7
7
  import os from "node:os";
8
8
  import path from "node:path";
9
- import fs$1 from "node:fs";
9
+ import syncFs from "node:fs";
10
10
  import { promisify } from "node:util";
11
11
  import { execFile, spawn } from "node:child_process";
12
12
  import process$1 from "node:process";
@@ -314,7 +314,7 @@ function resolveBoundaryPathLexicalSync(params) {
314
314
  rootCanonicalPath: params.rootCanonicalPath,
315
315
  resolveParams: params.params,
316
316
  absolutePath: params.absolutePath,
317
- read: (cursor) => fs$1.lstatSync(cursor)
317
+ read: (cursor) => syncFs.lstatSync(cursor)
318
318
  });
319
319
  if (isPromiseLike(maybeStat)) throw new Error("Unexpected async lexical stat");
320
320
  const stat = maybeStat;
@@ -460,15 +460,15 @@ function resolvePathViaExistingAncestorSync(targetPath) {
460
460
  const normalized = path.resolve(targetPath);
461
461
  let cursor = normalized;
462
462
  const missingSuffix = [];
463
- while (!isFilesystemRoot(cursor) && !fs$1.existsSync(cursor)) {
463
+ while (!isFilesystemRoot(cursor) && !syncFs.existsSync(cursor)) {
464
464
  missingSuffix.unshift(path.basename(cursor));
465
465
  const parent = path.dirname(cursor);
466
466
  if (parent === cursor) break;
467
467
  cursor = parent;
468
468
  }
469
- if (!fs$1.existsSync(cursor)) return normalized;
469
+ if (!syncFs.existsSync(cursor)) return normalized;
470
470
  try {
471
- const resolvedAncestor = path.resolve(fs$1.realpathSync(cursor));
471
+ const resolvedAncestor = path.resolve(syncFs.realpathSync(cursor));
472
472
  if (missingSuffix.length === 0) return resolvedAncestor;
473
473
  return path.resolve(resolvedAncestor, ...missingSuffix);
474
474
  } catch {
@@ -493,7 +493,7 @@ function getPathKindSync(absolutePath, preserveFinalSymlink) {
493
493
  try {
494
494
  return {
495
495
  exists: true,
496
- kind: toResolvedKind(preserveFinalSymlink ? fs$1.lstatSync(absolutePath) : fs$1.statSync(absolutePath))
496
+ kind: toResolvedKind(preserveFinalSymlink ? syncFs.lstatSync(absolutePath) : syncFs.statSync(absolutePath))
497
497
  };
498
498
  } catch (error) {
499
499
  if (isNotFoundPathError(error)) return {
@@ -553,10 +553,10 @@ async function resolveSymlinkHopPath(symlinkPath) {
553
553
  }
554
554
  function resolveSymlinkHopPathSync(symlinkPath) {
555
555
  try {
556
- return path.resolve(fs$1.realpathSync(symlinkPath));
556
+ return path.resolve(syncFs.realpathSync(symlinkPath));
557
557
  } catch (error) {
558
558
  if (!isNotFoundPathError(error)) throw error;
559
- const linkTarget = fs$1.readlinkSync(symlinkPath);
559
+ const linkTarget = syncFs.readlinkSync(symlinkPath);
560
560
  return resolvePathViaExistingAncestorSync(path.resolve(path.dirname(symlinkPath), linkTarget));
561
561
  }
562
562
  }
@@ -582,7 +582,7 @@ function sameFileIdentity(left, right) {
582
582
  return sameFileIdentity$1(left, right);
583
583
  }
584
584
  function openVerifiedFileSync(params) {
585
- const ioFs = params.ioFs ?? fs$1;
585
+ const ioFs = params.ioFs ?? syncFs;
586
586
  const allowedType = params.allowedType ?? "file";
587
587
  const openReadFlags = ioFs.constants.O_RDONLY | (typeof ioFs.constants.O_NOFOLLOW === "number" ? ioFs.constants.O_NOFOLLOW : 0);
588
588
  let fd = null;
@@ -659,7 +659,7 @@ function canUseBoundaryFileOpen(ioFs) {
659
659
  return typeof ioFs.openSync === "function" && typeof ioFs.closeSync === "function" && typeof ioFs.fstatSync === "function" && typeof ioFs.lstatSync === "function" && typeof ioFs.realpathSync === "function" && typeof ioFs.readFileSync === "function" && typeof ioFs.constants === "object" && ioFs.constants !== null;
660
660
  }
661
661
  function openBoundaryFileSync(params) {
662
- const ioFs = params.ioFs ?? fs$1;
662
+ const ioFs = params.ioFs ?? syncFs;
663
663
  const resolved = resolveBoundaryFilePathGeneric({
664
664
  absolutePath: params.absolutePath,
665
665
  resolve: (absolutePath) => resolveBoundaryPathSync({
@@ -710,7 +710,7 @@ function finalizeBoundaryFileOpen(params) {
710
710
  });
711
711
  }
712
712
  async function openBoundaryFile(params) {
713
- const ioFs = params.ioFs ?? fs$1;
713
+ const ioFs = params.ioFs ?? syncFs;
714
714
  const maybeResolved = resolveBoundaryFilePathGeneric({
715
715
  absolutePath: params.absolutePath,
716
716
  resolve: (absolutePath) => resolveBoundaryPath({
@@ -859,7 +859,7 @@ function resolveNpmArgvForWindows(argv) {
859
859
  if (!cliName) return null;
860
860
  const nodeDir = path.dirname(process$1.execPath);
861
861
  const cliPath = path.join(nodeDir, "node_modules", "npm", "bin", cliName);
862
- if (!fs$1.existsSync(cliPath)) return null;
862
+ if (!syncFs.existsSync(cliPath)) return null;
863
863
  return [
864
864
  process$1.execPath,
865
865
  cliPath,
@@ -1065,7 +1065,7 @@ async function readPackageName(dir) {
1065
1065
  }
1066
1066
  function readPackageNameSync(dir) {
1067
1067
  try {
1068
- const raw = fs$1.readFileSync(path.join(dir, "package.json"), "utf-8");
1068
+ const raw = syncFs.readFileSync(path.join(dir, "package.json"), "utf-8");
1069
1069
  const parsed = JSON.parse(raw);
1070
1070
  return typeof parsed.name === "string" ? parsed.name : null;
1071
1071
  } catch {
@@ -1099,7 +1099,7 @@ function candidateDirsFromArgv1(argv1) {
1099
1099
  const normalized = path.resolve(argv1);
1100
1100
  const candidates = [path.dirname(normalized)];
1101
1101
  try {
1102
- const resolved = fs$1.realpathSync(normalized);
1102
+ const resolved = syncFs.realpathSync(normalized);
1103
1103
  if (resolved !== normalized) candidates.push(path.dirname(resolved));
1104
1104
  } catch {}
1105
1105
  const parts = normalized.split(path.sep);
@@ -1208,14 +1208,14 @@ async function readWorkspaceFileWithGuards(params) {
1208
1208
  const identity = workspaceFileIdentity(opened.stat, opened.path);
1209
1209
  const cached = workspaceFileCache.get(params.filePath);
1210
1210
  if (cached && cached.identity === identity) {
1211
- fs$1.closeSync(opened.fd);
1211
+ syncFs.closeSync(opened.fd);
1212
1212
  return {
1213
1213
  ok: true,
1214
1214
  content: cached.content
1215
1215
  };
1216
1216
  }
1217
1217
  try {
1218
- const content = fs$1.readFileSync(opened.fd, "utf-8");
1218
+ const content = syncFs.readFileSync(opened.fd, "utf-8");
1219
1219
  workspaceFileCache.set(params.filePath, {
1220
1220
  content,
1221
1221
  identity
@@ -1232,7 +1232,7 @@ async function readWorkspaceFileWithGuards(params) {
1232
1232
  error
1233
1233
  };
1234
1234
  } finally {
1235
- fs$1.closeSync(opened.fd);
1235
+ syncFs.closeSync(opened.fd);
1236
1236
  }
1237
1237
  }
1238
1238
  function stripFrontMatter(content) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitseek/claw",
3
- "version": "1.3.6",
3
+ "version": "1.3.8-beta.1",
4
4
  "description": "BitSeek-branded OpenClaw distribution with a multi-channel AI gateway",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/adv-org/bitseek-claw#readme",