openclaw-multi-auto 1.1.6 → 1.1.8

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 (198) hide show
  1. package/dist/{accounts-L9ByEpnP.js → accounts-C9HcPI9h.js} +2 -2
  2. package/dist/{accounts-BOzyfwW4.js → accounts-C_lW3Ag9.js} +2 -2
  3. package/dist/{accounts-yfBeCZtS.js → accounts-Tgelvk0C.js} +17 -17
  4. package/dist/{active-listener-D1yqT1cw.js → active-listener-BEdprTkn.js} +2 -2
  5. package/dist/{api-key-rotation-DtsNS2Nb.js → api-key-rotation-BJpKWXy0.js} +2 -2
  6. package/dist/{audio-preflight-DpxQCpsA.js → audio-preflight-BMvgEQ5j.js} +32 -32
  7. package/dist/{audio-transcription-runner-28fcRNNi.js → audio-transcription-runner-gLFfz8fr.js} +12 -12
  8. package/dist/{audit-membership-runtime-DWyHWAHM.js → audit-membership-runtime-Dntemq07.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-xHOMiarp.js → channel-activity-BDnjYF7B.js} +3 -3
  16. package/dist/{chrome-DwizpzOC.js → chrome-DxxEKrY7.js} +18 -18
  17. package/dist/{commands-registry-V1zZ5pPC.js → commands-registry-D5qXbFJn.js} +4 -4
  18. package/dist/{deliver-D4o6VIur.js → deliver-DbdywYJE.js} +21 -21
  19. package/dist/deliver-runtime-BFs7iAZF.js +36 -0
  20. package/dist/deps-send-discord.runtime-DZUccI6Z.js +26 -0
  21. package/dist/deps-send-imessage.runtime-CF3OpoqY.js +25 -0
  22. package/dist/deps-send-signal.runtime-Cw4-ozeO.js +24 -0
  23. package/dist/deps-send-slack.runtime-BDsDhS1P.js +22 -0
  24. package/dist/deps-send-telegram.runtime-D_4xVasO.js +27 -0
  25. package/dist/deps-send-whatsapp.runtime-DK8jqd14.js +60 -0
  26. package/dist/{diagnostic-Bn4PZjMZ.js → diagnostic-Co6Kghr-.js} +2 -2
  27. package/dist/{errors-CCLeFWAg.js → errors-xt401nuk.js} +1 -1
  28. package/dist/{fetch-BlJWzEP6.js → fetch-DuraYswo.js} +5 -5
  29. package/dist/{fetch-guard-ChYBwfiy.js → fetch-guard-DWr0d00H.js} +2 -2
  30. package/dist/{frontmatter-CvaMP376.js → frontmatter-BkTfEZ93.js} +3 -3
  31. package/dist/{fs-safe-0jAo_Whb.js → fs-safe-CTYUrIgQ.js} +4 -4
  32. package/dist/{github-copilot-token-D13V9YBz.js → github-copilot-token-BDioPmd6.js} +7 -7
  33. package/dist/{image-Bbn53mzj.js → image-eT7Y-nP5.js} +6 -6
  34. package/dist/{image-ops-CehkHxmW.js → image-ops-BuUnEOE0.js} +2 -2
  35. package/dist/image-runtime-BcAK3n8a.js +29 -0
  36. package/dist/{ir-DAP-B-Xw.js → ir-B83looB-.js} +8 -8
  37. package/dist/{legacy-names-TyzbVqa_.js → legacy-names-DOC03BkU.js} +1 -1
  38. package/dist/llm-slug-generator.js +51 -51
  39. package/dist/{logger-DMZQQtxK.js → logger-BfjWMCSD.js} +7 -7
  40. package/dist/{login-DiCctRo1.js → login-CrIwcrVI.js} +5 -5
  41. package/dist/{login-qr-MUbXgjtd.js → login-qr-BpPDZdl_.js} +10 -10
  42. package/dist/{manager-BW_NSIMl.js → manager-1bvuGrNR.js} +13 -13
  43. package/dist/manager-runtime-FO1Sx3W8.js +18 -0
  44. package/dist/{model-selection-idoqPmw0.js → model-selection-Dna0Gz1k.js} +43 -43
  45. package/dist/{outbound-C2kanETZ.js → outbound-ChDjtuD6.js} +6 -6
  46. package/dist/{outbound-attachment-DBrYWX8h.js → outbound-attachment-DqHlD21U.js} +2 -2
  47. package/dist/{path-alias-guards-DqXRZmsL.js → path-alias-guards-BzvdLvTI.js} +1 -1
  48. package/dist/{paths-CCxysrzL.js → paths-Bkr-BCxW.js} +4 -4
  49. package/dist/{paths-C6TxBCvO.js → paths-Cvc9EM8Y.js} +5 -5
  50. package/dist/{pi-embedded-BaGj07T0.js → pi-embedded-BQQa91aA.js} +158 -158
  51. package/dist/{pi-embedded-helpers-wy0DZvx1.js → pi-embedded-helpers-CLXm10bV.js} +52 -52
  52. package/dist/{pi-model-discovery-BGgOlX8N.js → pi-model-discovery-Dymwdjt0.js} +7 -7
  53. package/dist/pi-model-discovery-runtime-BeY4EUPp.js +11 -0
  54. package/dist/{pi-tools.before-tool-call.runtime-BuLxSyx9.js → pi-tools.before-tool-call.runtime-Cwab_5W1.js} +9 -9
  55. package/dist/plugin-sdk/{accounts-C3m65--E.js → accounts-BJAXxY46.js} +2 -2
  56. package/dist/plugin-sdk/{accounts-CNCCkdEF.js → accounts-C1j7HSL0.js} +3 -3
  57. package/dist/plugin-sdk/{accounts-BslAlVYS.js → accounts-DyFCXtHv.js} +2 -2
  58. package/dist/plugin-sdk/{active-listener-CkPnMUkB.js → active-listener-CftX5jLD.js} +2 -2
  59. package/dist/plugin-sdk/{api-key-rotation-BXnNsojA.js → api-key-rotation-8nyyt1kx.js} +2 -2
  60. package/dist/plugin-sdk/{audio-preflight-CtO4fFvp.js → audio-preflight-C_aSAPR1.js} +26 -26
  61. package/dist/plugin-sdk/{audio-transcription-runner-DnxvOS1-.js → audio-transcription-runner-CB53F7_7.js} +11 -11
  62. package/dist/plugin-sdk/{audit-membership-runtime-BpfoSk8M.js → audit-membership-runtime-BXndI4LG.js} +2 -2
  63. package/dist/plugin-sdk/{channel-activity-WJYxcJ3S.js → channel-activity-C5y8AgAV.js} +3 -3
  64. package/dist/plugin-sdk/{channel-web-dO5k3ubM.js → channel-web-DBTRO03V.js} +18 -18
  65. package/dist/plugin-sdk/{chrome-CjNTuJML.js → chrome-f00sZkDX.js} +6 -6
  66. package/dist/plugin-sdk/{commands-registry-CdYjoI0i.js → commands-registry-BJ_NxG2F.js} +4 -4
  67. package/dist/plugin-sdk/{common-oYc5vPFl.js → common-Cf27Jwxu.js} +2 -2
  68. package/dist/plugin-sdk/{config-B1z-UxQ3.js → config-CHQrpx-Q.js} +7 -7
  69. package/dist/plugin-sdk/{deliver-D5_6T567.js → deliver-DNEuetST.js} +10 -10
  70. package/dist/plugin-sdk/deliver-runtime-BFdqklJM.js +32 -0
  71. package/dist/plugin-sdk/deps-send-discord.runtime-DuqpYwU0.js +23 -0
  72. package/dist/plugin-sdk/deps-send-imessage.runtime-CZ2rS8Lb.js +22 -0
  73. package/dist/plugin-sdk/deps-send-signal.runtime-BdqiWhIh.js +21 -0
  74. package/dist/plugin-sdk/deps-send-slack.runtime-04s36qiC.js +19 -0
  75. package/dist/plugin-sdk/deps-send-telegram.runtime-LE5tkPvr.js +24 -0
  76. package/dist/plugin-sdk/deps-send-whatsapp.runtime-Bz57lobC.js +57 -0
  77. package/dist/plugin-sdk/{diagnostic-Bxxu0ig-.js → diagnostic-LYUUmjJ5.js} +2 -2
  78. package/dist/plugin-sdk/{errors-B3cHyZZA.js → errors-CtMWwS2Z.js} +1 -1
  79. package/dist/plugin-sdk/{fetch-guard-Dcgod0tg.js → fetch-guard-CxYB5Kg6.js} +2 -2
  80. package/dist/plugin-sdk/{fs-safe-BaKqI3G4.js → fs-safe-DtfhxbrI.js} +3 -3
  81. package/dist/plugin-sdk/{image-B2mQW9Rb.js → image-BwjYjRHx.js} +6 -6
  82. package/dist/plugin-sdk/{image-ops-Cbzr4U9l.js → image-ops-BnZKcbd6.js} +2 -2
  83. package/dist/plugin-sdk/image-runtime-B8twoubs.js +25 -0
  84. package/dist/plugin-sdk/{ir-ZEmrTr4J.js → ir-Z4hX67TJ.js} +7 -7
  85. package/dist/plugin-sdk/{local-roots-CIPRxA-4.js → local-roots-KhjQw04O.js} +4 -4
  86. package/dist/plugin-sdk/{logger-CvPFVOgT.js → logger-DHIIvMxj.js} +2 -2
  87. package/dist/plugin-sdk/{login-CCTew9bt.js → login-C31642Ld.js} +4 -4
  88. package/dist/plugin-sdk/{login-qr-BI3Vi_wJ.js → login-qr--y2SG_Ue.js} +5 -5
  89. package/dist/plugin-sdk/{manager-BEoYPn7R.js → manager-2UZBMCc7.js} +8 -8
  90. package/dist/plugin-sdk/manager-runtime-CMeLwose.js +15 -0
  91. package/dist/plugin-sdk/mattermost.js +3 -3
  92. package/dist/plugin-sdk/{outbound-ByOw1K6W.js → outbound-Ba0QUI5h.js} +5 -5
  93. package/dist/plugin-sdk/{outbound-attachment-BzVhxRRw.js → outbound-attachment-B1Laso-8.js} +2 -2
  94. package/dist/plugin-sdk/{path-alias-guards-sWayacde.js → path-alias-guards-C7Vm5DZ1.js} +1 -1
  95. package/dist/plugin-sdk/{paths-Dpg3qxcl.js → paths-DopV9PQG.js} +1 -1
  96. package/dist/plugin-sdk/{pi-embedded-helpers-DIxXkGJf.js → pi-embedded-helpers-DnA_OCzP.js} +16 -16
  97. package/dist/plugin-sdk/{pi-model-discovery-DM_2uFtj.js → pi-model-discovery-DdPqXk8f.js} +1 -1
  98. package/dist/plugin-sdk/pi-model-discovery-runtime-D8CJhtJY.js +8 -0
  99. package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-w1dqL_ty.js → pi-tools.before-tool-call.runtime-DxFHiLUE.js} +4 -4
  100. package/dist/plugin-sdk/{plugins-C4USiH29.js → plugins-CbCt4osF.js} +4 -4
  101. package/dist/plugin-sdk/{proxy-env-ET-rp8eg.js → proxy-env-C63mMdas.js} +1 -1
  102. package/dist/{proxy-fetch-CCjEYbFm.js → plugin-sdk/proxy-fetch-Ch95c_Y2.js} +1 -1
  103. package/dist/plugin-sdk/{pw-ai-CyOt3RDA.js → pw-ai-DpJk62D4.js} +9 -9
  104. package/dist/plugin-sdk/{qmd-manager-BySdoVR7.js → qmd-manager-Ca-iSfEE.js} +7 -7
  105. package/dist/plugin-sdk/{query-expansion-C6uS-7lj.js → query-expansion-B_Xe41Ab.js} +4 -4
  106. package/dist/plugin-sdk/{redact-Bvxt1T_Q.js → redact-hp9TOulW.js} +1 -1
  107. package/dist/plugin-sdk/{reply-CTCSeQqW.js → reply-CovBlFea.js} +73 -73
  108. package/dist/plugin-sdk/{resolve-outbound-target-Bw8YNANu.js → resolve-outbound-target-BbrHgyUk.js} +2 -2
  109. package/dist/plugin-sdk/{run-with-concurrency-C_KCHwvf.js → run-with-concurrency-BR1DXa8T.js} +1 -1
  110. package/dist/plugin-sdk/runtime-whatsapp-login.runtime-SkO91TZH.js +10 -0
  111. package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-B0VWK5hm.js +19 -0
  112. package/dist/plugin-sdk/{send-C0w6xP2x.js → send-BTztm3D2.js} +6 -6
  113. package/dist/plugin-sdk/{send-qPyNGSe4.js → send-BXpXBwM_.js} +13 -13
  114. package/dist/plugin-sdk/{send-BZ6nYFZr.js → send-BvAtLLPl.js} +5 -5
  115. package/dist/plugin-sdk/{send-CFf-1V89.js → send-CWJUuG0i.js} +8 -8
  116. package/dist/plugin-sdk/{send-CY-Qfwia.js → send-EcglC4cG.js} +7 -7
  117. package/dist/plugin-sdk/{session-COrvpvUQ.js → session-k256LJZT.js} +3 -3
  118. package/dist/plugin-sdk/{skill-commands-DZqhtmiv.js → skill-commands-DoRqLzxm.js} +4 -4
  119. package/dist/plugin-sdk/{skills-Cw_vXEJb.js → skills-QudILG6e.js} +6 -6
  120. package/dist/plugin-sdk/slash-commands.runtime-DS6vCNSL.js +13 -0
  121. package/dist/plugin-sdk/slash-dispatch.runtime-BXrxb2wd.js +52 -0
  122. package/dist/plugin-sdk/slash-skill-commands.runtime-Bd6qQ2oT.js +16 -0
  123. package/dist/plugin-sdk/{store-CMHj6IIw.js → store-BbDQw3g6.js} +2 -2
  124. package/dist/plugin-sdk/subagent-registry-runtime-1uwQbuXj.js +52 -0
  125. package/dist/plugin-sdk/{tables-CSqrHsKL.js → tables-BhvloMKN.js} +1 -1
  126. package/dist/plugin-sdk/{thinking-DOnsR_A8.js → thinking-URzkT-3p.js} +7 -7
  127. package/dist/plugin-sdk/{tokens-BDr0Z9o3.js → tokens-B1PW5Ayy.js} +1 -1
  128. package/dist/plugin-sdk/{tool-images-eEfOVkzf.js → tool-images-xpqbP6RR.js} +2 -2
  129. package/dist/plugin-sdk/web-B74yhL2N.js +56 -0
  130. package/dist/plugin-sdk/{whatsapp-actions-xcleMoMv.js → whatsapp-actions-RcZ6vp61.js} +17 -17
  131. package/dist/plugin-sdk/whatsapp.js +50 -50
  132. package/dist/{plugins-CWkRQYDj.js → plugins-4Rj4OjLY.js} +11 -11
  133. package/dist/{proxy-env-Cq5gdrbj.js → proxy-env-DlmzDx8x.js} +1 -1
  134. package/dist/{plugin-sdk/proxy-fetch-uDXGKG3Z.js → proxy-fetch-B2pEfjbR.js} +1 -1
  135. package/dist/{pw-ai-Cl1Lc7RC.js → pw-ai-DNMjFMqH.js} +14 -14
  136. package/dist/{qmd-manager-BsYsO9Ii.js → qmd-manager-BtIKUaO9.js} +10 -10
  137. package/dist/{query-expansion-DtLc3wjL.js → query-expansion-CX-1fS52.js} +6 -6
  138. package/dist/{redact-ClbcYG1J.js → redact-COik8ET1.js} +1 -1
  139. package/dist/{run-with-concurrency-D_ZpbgEG.js → run-with-concurrency-BgYfgkXT.js} +4 -4
  140. package/dist/runtime-whatsapp-login.runtime-DUb55byQ.js +13 -0
  141. package/dist/runtime-whatsapp-outbound.runtime-Bii_xSfI.js +22 -0
  142. package/dist/{send-Dx2RkUOZ.js → send-6lz6rNVP.js} +6 -6
  143. package/dist/{send-vmONuVgL.js → send-BHTiZcH3.js} +26 -26
  144. package/dist/{send-Bj776ESJ.js → send-L7gRiwyd.js} +7 -7
  145. package/dist/{send-DcxmcFi_.js → send-PE6cwoTe.js} +8 -8
  146. package/dist/{send-BQERFNyo.js → send-dfu6_rgf.js} +5 -5
  147. package/dist/{session-A4QhBRvH.js → session-D8ImowSs.js} +8 -8
  148. package/dist/{skill-commands-CMzBZKG2.js → skill-commands-DNqJ-kwn.js} +9 -9
  149. package/dist/{skills-CE_iqvM5.js → skills-7ODkHQYp.js} +22 -22
  150. package/dist/slash-commands.runtime-CVw6566g.js +16 -0
  151. package/dist/slash-dispatch.runtime-B9Ygtzi4.js +56 -0
  152. package/dist/slash-skill-commands.runtime-DxZ4z5h6.js +20 -0
  153. package/dist/{store--eR1R_UX.js → store-D89wDcz9.js} +2 -2
  154. package/dist/subagent-registry-runtime-DL1Wv7nA.js +56 -0
  155. package/dist/{subsystem-Di1z8l0Z.js → subsystem-B45WV3qB.js} +14 -14
  156. package/dist/{tables-d739Y1xW.js → tables-mE4cJBN2.js} +1 -1
  157. package/dist/{target-errors-CBI2Ga0y.js → target-errors-mnlwhAjP.js} +2 -2
  158. package/dist/{thinking-DXYisHiZ.js → thinking-BeGmb5k6.js} +7 -7
  159. package/dist/{tokens-DxnY9ui_.js → tokens-q32vI39c.js} +1 -1
  160. package/dist/{tool-images-2cBx1W8h.js → tool-images-RZdHiZcG.js} +2 -2
  161. package/dist/{web-CzWRVmFt.js → web-Btj-e8kN.js} +55 -55
  162. package/dist/{whatsapp-actions-iEArE_Ez.js → whatsapp-actions-BHbJJyqw.js} +21 -21
  163. package/dist/{workspace-CUVC6GX1.js → workspace-U-DyR64O.js} +20 -20
  164. package/package.json +1 -1
  165. package/scripts/npm_publish.sh +57 -20
  166. package/dist/deliver-runtime-P-G3bPjW.js +0 -36
  167. package/dist/deps-send-discord.runtime-DnbhTFX9.js +0 -26
  168. package/dist/deps-send-imessage.runtime-BOiQ6mDx.js +0 -25
  169. package/dist/deps-send-signal.runtime-CTcl388M.js +0 -24
  170. package/dist/deps-send-slack.runtime-CCqBz4Kg.js +0 -22
  171. package/dist/deps-send-telegram.runtime-DGSKTCpH.js +0 -27
  172. package/dist/deps-send-whatsapp.runtime-CJkTHkah.js +0 -60
  173. package/dist/image-runtime-CVv2ra9J.js +0 -29
  174. package/dist/manager-runtime-BN6VevdC.js +0 -18
  175. package/dist/pi-model-discovery-runtime-Bwmi4Ev8.js +0 -11
  176. package/dist/plugin-sdk/deliver-runtime-C5dgvvga.js +0 -32
  177. package/dist/plugin-sdk/deps-send-discord.runtime-Dg4N7PHJ.js +0 -23
  178. package/dist/plugin-sdk/deps-send-imessage.runtime-0OEwzMQm.js +0 -22
  179. package/dist/plugin-sdk/deps-send-signal.runtime-BM1jRt3G.js +0 -21
  180. package/dist/plugin-sdk/deps-send-slack.runtime-1E3BYRdF.js +0 -19
  181. package/dist/plugin-sdk/deps-send-telegram.runtime-DNCxIflA.js +0 -24
  182. package/dist/plugin-sdk/deps-send-whatsapp.runtime-OLwr-9c8.js +0 -57
  183. package/dist/plugin-sdk/image-runtime-BFm45j49.js +0 -25
  184. package/dist/plugin-sdk/manager-runtime-DxclHQ4U.js +0 -15
  185. package/dist/plugin-sdk/pi-model-discovery-runtime-BuzvkvNR.js +0 -8
  186. package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxgRDkhc.js +0 -10
  187. package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-elOqrkfg.js +0 -19
  188. package/dist/plugin-sdk/slash-commands.runtime-D67JLweo.js +0 -13
  189. package/dist/plugin-sdk/slash-dispatch.runtime-DvcpvCJ0.js +0 -52
  190. package/dist/plugin-sdk/slash-skill-commands.runtime-BM1x3azR.js +0 -16
  191. package/dist/plugin-sdk/subagent-registry-runtime-1lbDyRzz.js +0 -52
  192. package/dist/plugin-sdk/web-BLyT64pW.js +0 -56
  193. package/dist/runtime-whatsapp-login.runtime-IeylZEl4.js +0 -13
  194. package/dist/runtime-whatsapp-outbound.runtime-ClBRuLsq.js +0 -22
  195. package/dist/slash-commands.runtime-Cpn2tYW4.js +0 -16
  196. package/dist/slash-dispatch.runtime-DoBAQBU5.js +0 -56
  197. package/dist/slash-skill-commands.runtime-DKMvvdDW.js +0 -20
  198. package/dist/subagent-registry-runtime-ppWS3tVu.js +0 -56
@@ -1,7 +1,7 @@
1
- import { r as resolveConfigPath } from "./paths-C6TxBCvO.js";
1
+ import { r as resolveConfigPath } from "./paths-Cvc9EM8Y.js";
2
2
  import os from "node:os";
3
3
  import path from "node:path";
4
- import syncFs from "node:fs";
4
+ import fs from "node:fs";
5
5
  import chalk, { Chalk } from "chalk";
6
6
  import { Logger } from "tslog";
7
7
  import JSON5 from "json5";
@@ -54,15 +54,15 @@ function getCommandPathInternal(argv, depth, opts) {
54
54
  //#endregion
55
55
  //#region src/infra/tmp-openclaw-dir.ts
56
56
  const POSIX_OPENCLAW_TMP_DIR = process.env.OPENCLAW_TMP_DIR ?? "/tmp/openclaw";
57
- const TMP_DIR_ACCESS_MODE = syncFs.constants.W_OK | syncFs.constants.X_OK;
57
+ const TMP_DIR_ACCESS_MODE = fs.constants.W_OK | fs.constants.X_OK;
58
58
  function isNodeErrorWithCode(err, code) {
59
59
  return typeof err === "object" && err !== null && "code" in err && err.code === code;
60
60
  }
61
61
  function resolvePreferredOpenClawTmpDir(options = {}) {
62
- const accessSync = options.accessSync ?? syncFs.accessSync;
63
- const chmodSync = options.chmodSync ?? syncFs.chmodSync;
64
- const lstatSync = options.lstatSync ?? syncFs.lstatSync;
65
- const mkdirSync = options.mkdirSync ?? syncFs.mkdirSync;
62
+ const accessSync = options.accessSync ?? fs.accessSync;
63
+ const chmodSync = options.chmodSync ?? fs.chmodSync;
64
+ const lstatSync = options.lstatSync ?? fs.lstatSync;
65
+ const mkdirSync = options.mkdirSync ?? fs.mkdirSync;
66
66
  const warn = options.warn ?? ((message) => console.warn(message));
67
67
  const getuid = options.getuid ?? (() => {
68
68
  try {
@@ -155,8 +155,8 @@ function resolvePreferredOpenClawTmpDir(options = {}) {
155
155
  function readLoggingConfig() {
156
156
  const configPath = resolveConfigPath();
157
157
  try {
158
- if (!syncFs.existsSync(configPath)) return;
159
- const raw = syncFs.readFileSync(configPath, "utf-8");
158
+ if (!fs.existsSync(configPath)) return;
159
+ const raw = fs.readFileSync(configPath, "utf-8");
160
160
  const logging = JSON5.parse(raw)?.logging;
161
161
  if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
162
162
  return logging;
@@ -344,7 +344,7 @@ function buildLogger(settings) {
344
344
  for (const transport of externalTransports) attachExternalTransport(logger, transport);
345
345
  return logger;
346
346
  }
347
- syncFs.mkdirSync(path.dirname(settings.file), { recursive: true });
347
+ fs.mkdirSync(path.dirname(settings.file), { recursive: true });
348
348
  if (isRollingPath(settings.file)) pruneOldRollingLogs(path.dirname(settings.file));
349
349
  let currentFileBytes = getCurrentLogFileBytes(settings.file);
350
350
  let warnedAboutSizeCap = false;
@@ -383,14 +383,14 @@ function resolveMaxLogFileBytes(raw) {
383
383
  }
384
384
  function getCurrentLogFileBytes(file) {
385
385
  try {
386
- return syncFs.statSync(file).size;
386
+ return fs.statSync(file).size;
387
387
  } catch {
388
388
  return 0;
389
389
  }
390
390
  }
391
391
  function appendLogLine(file, line) {
392
392
  try {
393
- syncFs.appendFileSync(file, line, { encoding: "utf8" });
393
+ fs.appendFileSync(file, line, { encoding: "utf8" });
394
394
  return true;
395
395
  } catch {
396
396
  return false;
@@ -442,14 +442,14 @@ function isRollingPath(file) {
442
442
  }
443
443
  function pruneOldRollingLogs(dir) {
444
444
  try {
445
- const entries = syncFs.readdirSync(dir, { withFileTypes: true });
445
+ const entries = fs.readdirSync(dir, { withFileTypes: true });
446
446
  const cutoff = Date.now() - MAX_LOG_AGE_MS;
447
447
  for (const entry of entries) {
448
448
  if (!entry.isFile()) continue;
449
449
  if (!entry.name.startsWith(`${LOG_PREFIX}-`) || !entry.name.endsWith(LOG_SUFFIX)) continue;
450
450
  const fullPath = path.join(dir, entry.name);
451
451
  try {
452
- if (syncFs.statSync(fullPath).mtimeMs < cutoff) syncFs.rmSync(fullPath, { force: true });
452
+ if (fs.statSync(fullPath).mtimeMs < cutoff) fs.rmSync(fullPath, { force: true });
453
453
  } catch {}
454
454
  }
455
455
  } catch {}
@@ -1,4 +1,4 @@
1
- import { r as markdownToIRWithMeta } from "./ir-DAP-B-Xw.js";
1
+ import { r as markdownToIRWithMeta } from "./ir-B83looB-.js";
2
2
  import { t as renderMarkdownWithMarkers } from "./render-DW7AcFdD.js";
3
3
 
4
4
  //#region src/markdown/tables.ts
@@ -1,5 +1,5 @@
1
- import { b as detectMime } from "./image-ops-CehkHxmW.js";
2
- import { r as sanitizeToolResultImages } from "./tool-images-2cBx1W8h.js";
1
+ import { b as detectMime } from "./image-ops-BuUnEOE0.js";
2
+ import { r as sanitizeToolResultImages } from "./tool-images-RZdHiZcG.js";
3
3
  import fs from "node:fs/promises";
4
4
 
5
5
  //#region src/agents/tools/common.ts
@@ -1,10 +1,10 @@
1
- import { G as normalizeAccountId } from "./workspace-CUVC6GX1.js";
2
- import { h as normalizeE164, u as escapeRegExp } from "./logger-DMZQQtxK.js";
3
- import { Ht as CHAT_CHANNEL_ORDER, Ut as getChatChannelMeta, Zt as requireActivePluginRegistry } from "./model-selection-idoqPmw0.js";
4
- import { a as normalizeWhatsAppTarget, b as resolveDiscordAccount, l as resolveTelegramAccount, m as resolveSlackReplyToMode, p as resolveSlackAccount } from "./plugins-CWkRQYDj.js";
5
- import { h as resolveAccountEntry, n as resolveWhatsAppAccount } from "./accounts-yfBeCZtS.js";
6
- import { n as resolveSignalAccount } from "./accounts-L9ByEpnP.js";
7
- import { t as resolveIMessageAccount } from "./accounts-BOzyfwW4.js";
1
+ import { G as normalizeAccountId } from "./workspace-U-DyR64O.js";
2
+ import { h as normalizeE164, u as escapeRegExp } from "./logger-BfjWMCSD.js";
3
+ import { Ht as CHAT_CHANNEL_ORDER, Ut as getChatChannelMeta, Zt as requireActivePluginRegistry } from "./model-selection-Dna0Gz1k.js";
4
+ import { a as normalizeWhatsAppTarget, b as resolveDiscordAccount, l as resolveTelegramAccount, m as resolveSlackReplyToMode, p as resolveSlackAccount } from "./plugins-4Rj4OjLY.js";
5
+ import { h as resolveAccountEntry, n as resolveWhatsAppAccount } from "./accounts-Tgelvk0C.js";
6
+ import { n as resolveSignalAccount } from "./accounts-C9HcPI9h.js";
7
+ import { t as resolveIMessageAccount } from "./accounts-C_lW3Ag9.js";
8
8
 
9
9
  //#region src/config/types.tools.ts
10
10
  const TOOLS_BY_SENDER_KEY_TYPES = [
@@ -1,4 +1,4 @@
1
- import { u as escapeRegExp } from "./logger-DMZQQtxK.js";
1
+ import { u as escapeRegExp } from "./logger-BfjWMCSD.js";
2
2
 
3
3
  //#region src/auto-reply/tokens.ts
4
4
  const HEARTBEAT_TOKEN = "HEARTBEAT_OK";
@@ -1,5 +1,5 @@
1
- import { t as createSubsystemLogger } from "./subsystem-Di1z8l0Z.js";
2
- import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-CehkHxmW.js";
1
+ import { t as createSubsystemLogger } from "./subsystem-B45WV3qB.js";
2
+ import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-BuUnEOE0.js";
3
3
 
4
4
  //#region src/media/base64.ts
5
5
  function estimateBase64DecodedBytes(base64) {
@@ -1,61 +1,61 @@
1
- import "./run-with-concurrency-D_ZpbgEG.js";
2
- import "./paths-C6TxBCvO.js";
3
- import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-Di1z8l0Z.js";
4
- import { F as buildGroupHistoryKey, M as DEFAULT_MAIN_KEY, N as buildAgentMainSessionKey, R as normalizeAgentId } from "./workspace-CUVC6GX1.js";
5
- import { C as sleep, T as toWhatsappJid, h as normalizeE164, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164 } from "./logger-DMZQQtxK.js";
6
- import { X as loadConfig, lr as formatCliCommand } from "./model-selection-idoqPmw0.js";
7
- import "./github-copilot-token-D13V9YBz.js";
8
- import "./legacy-names-TyzbVqa_.js";
9
- import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy } from "./thinking-DXYisHiZ.js";
10
- import "./tokens-DxnY9ui_.js";
11
- import { A as normalizeGroupActivation, B as normalizeMentionText, C as createInboundDebouncer, D as getReplyFromConfig, E as createDedupeCache, F as enqueueSystemEvent, I as finalizeInboundContext, K as resolveIdentityNamePrefix, L as hasControlCommand, M as computeBackoff, N as sleepWithAbort, O as buildAgentSessionKey, P as formatDurationPrecise, R as shouldComputeCommandAuthorized, T as formatInboundEnvelope, _ as resolveDmGroupAccessWithCommandGate, b as shouldAckReactionForWhatsApp, c as buildPairingReply, d as buildHistoryContextFromEntries, f as recordPendingHistoryEntryIfEnabled, g as readStoreAllowFromForDmPolicy, h as warnMissingProviderGroupPolicyFallbackOnce, i as resolveInboundSessionEnvelopeContext, j as parseActivationCommand, k as resolveAgentRoute, l as resolveMentionGating, m as resolveOpenProviderRuntimeGroupPolicy, p as resolveDefaultGroupPolicy, q as resolveMessagePrefix, s as createReplyPrefixOptions, u as DEFAULT_GROUP_HISTORY_LIMIT, v as resolveDmGroupAccessWithLists, w as resolveInboundDebounceMs, x as dispatchReplyWithBufferedBlockDispatcher, y as resolvePinnedMainDmOwnerFromAllowlist, z as buildMentionRegexes } from "./pi-embedded-BaGj07T0.js";
12
- import "./plugins-CWkRQYDj.js";
13
- 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-yfBeCZtS.js";
14
- import "./send-Dx2RkUOZ.js";
15
- import "./send-DcxmcFi_.js";
16
- import "./deliver-D4o6VIur.js";
17
- import "./diagnostic-Bn4PZjMZ.js";
18
- import "./accounts-L9ByEpnP.js";
19
- import "./image-ops-CehkHxmW.js";
20
- import { X as toLocationContext, Y as formatLocationText, et as upsertChannelPairingRequest } from "./send-vmONuVgL.js";
21
- import "./pi-model-discovery-BGgOlX8N.js";
22
- import { At as resolveGroupSessionKey, K as recordSessionMetaFromInbound, W as loadSessionStore, q as updateLastRoute } from "./pi-embedded-helpers-wy0DZvx1.js";
23
- import "./chrome-DwizpzOC.js";
24
- import "./frontmatter-CvaMP376.js";
25
- import "./skills-CE_iqvM5.js";
26
- import "./path-alias-guards-DqXRZmsL.js";
27
- import "./redact-ClbcYG1J.js";
28
- import "./errors-CCLeFWAg.js";
29
- import "./fs-safe-0jAo_Whb.js";
30
- import "./proxy-env-Cq5gdrbj.js";
31
- import { i as saveMediaBuffer } from "./store--eR1R_UX.js";
32
- import "./accounts-BOzyfwW4.js";
33
- import { s as resolveStorePath } from "./paths-CCxysrzL.js";
34
- import "./tool-images-2cBx1W8h.js";
35
- import "./image-Bbn53mzj.js";
36
- import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-28fcRNNi.js";
37
- import { i as getAgentScopedMediaLocalRoots } from "./fetch-BlJWzEP6.js";
38
- import "./fetch-guard-ChYBwfiy.js";
39
- import "./api-key-rotation-DtsNS2Nb.js";
40
- import "./proxy-fetch-CCjEYbFm.js";
41
- import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-DAP-B-Xw.js";
1
+ import "./run-with-concurrency-BgYfgkXT.js";
2
+ import "./paths-Cvc9EM8Y.js";
3
+ import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-B45WV3qB.js";
4
+ import { F as buildGroupHistoryKey, M as DEFAULT_MAIN_KEY, N as buildAgentMainSessionKey, R as normalizeAgentId } from "./workspace-U-DyR64O.js";
5
+ import { C as sleep, T as toWhatsappJid, h as normalizeE164, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164 } from "./logger-BfjWMCSD.js";
6
+ import { X as loadConfig, lr as formatCliCommand } from "./model-selection-Dna0Gz1k.js";
7
+ import "./github-copilot-token-BDioPmd6.js";
8
+ import "./legacy-names-DOC03BkU.js";
9
+ import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy } from "./thinking-BeGmb5k6.js";
10
+ import "./tokens-q32vI39c.js";
11
+ import { A as normalizeGroupActivation, B as normalizeMentionText, C as createInboundDebouncer, D as getReplyFromConfig, E as createDedupeCache, F as enqueueSystemEvent, I as finalizeInboundContext, K as resolveIdentityNamePrefix, L as hasControlCommand, M as computeBackoff, N as sleepWithAbort, O as buildAgentSessionKey, P as formatDurationPrecise, R as shouldComputeCommandAuthorized, T as formatInboundEnvelope, _ as resolveDmGroupAccessWithCommandGate, b as shouldAckReactionForWhatsApp, c as buildPairingReply, d as buildHistoryContextFromEntries, f as recordPendingHistoryEntryIfEnabled, g as readStoreAllowFromForDmPolicy, h as warnMissingProviderGroupPolicyFallbackOnce, i as resolveInboundSessionEnvelopeContext, j as parseActivationCommand, k as resolveAgentRoute, l as resolveMentionGating, m as resolveOpenProviderRuntimeGroupPolicy, p as resolveDefaultGroupPolicy, q as resolveMessagePrefix, s as createReplyPrefixOptions, u as DEFAULT_GROUP_HISTORY_LIMIT, v as resolveDmGroupAccessWithLists, w as resolveInboundDebounceMs, x as dispatchReplyWithBufferedBlockDispatcher, y as resolvePinnedMainDmOwnerFromAllowlist, z as buildMentionRegexes } from "./pi-embedded-BQQa91aA.js";
12
+ import "./plugins-4Rj4OjLY.js";
13
+ 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-Tgelvk0C.js";
14
+ import "./send-6lz6rNVP.js";
15
+ import "./send-PE6cwoTe.js";
16
+ import "./deliver-DbdywYJE.js";
17
+ import "./diagnostic-Co6Kghr-.js";
18
+ import "./accounts-C9HcPI9h.js";
19
+ import "./image-ops-BuUnEOE0.js";
20
+ import { X as toLocationContext, Y as formatLocationText, et as upsertChannelPairingRequest } from "./send-BHTiZcH3.js";
21
+ import "./pi-model-discovery-Dymwdjt0.js";
22
+ import { At as resolveGroupSessionKey, K as recordSessionMetaFromInbound, W as loadSessionStore, q as updateLastRoute } from "./pi-embedded-helpers-CLXm10bV.js";
23
+ import "./chrome-DxxEKrY7.js";
24
+ import "./frontmatter-BkTfEZ93.js";
25
+ import "./skills-7ODkHQYp.js";
26
+ import "./path-alias-guards-BzvdLvTI.js";
27
+ import "./redact-COik8ET1.js";
28
+ import "./errors-xt401nuk.js";
29
+ import "./fs-safe-CTYUrIgQ.js";
30
+ import "./proxy-env-DlmzDx8x.js";
31
+ import { i as saveMediaBuffer } from "./store-D89wDcz9.js";
32
+ import "./accounts-C_lW3Ag9.js";
33
+ import { s as resolveStorePath } from "./paths-Bkr-BCxW.js";
34
+ import "./tool-images-RZdHiZcG.js";
35
+ import "./image-eT7Y-nP5.js";
36
+ import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-gLFfz8fr.js";
37
+ import { i as getAgentScopedMediaLocalRoots } from "./fetch-DuraYswo.js";
38
+ import "./fetch-guard-DWr0d00H.js";
39
+ import "./api-key-rotation-BJpKWXy0.js";
40
+ import "./proxy-fetch-B2pEfjbR.js";
41
+ import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-B83looB-.js";
42
42
  import "./render-DW7AcFdD.js";
43
- import "./target-errors-CBI2Ga0y.js";
44
- import "./commands-registry-V1zZ5pPC.js";
45
- import "./skill-commands-CMzBZKG2.js";
43
+ import "./target-errors-mnlwhAjP.js";
44
+ import "./commands-registry-D5qXbFJn.js";
45
+ import "./skill-commands-DNqJ-kwn.js";
46
46
  import "./fetch-BfuG8uZ8.js";
47
- import { n as recordChannelActivity } from "./channel-activity-xHOMiarp.js";
48
- import { t as convertMarkdownTables } from "./tables-d739Y1xW.js";
49
- import "./send-BQERFNyo.js";
50
- import "./outbound-attachment-DBrYWX8h.js";
51
- import "./send-Bj776ESJ.js";
52
- import { r as setActiveWebListener } from "./active-listener-D1yqT1cw.js";
47
+ import { n as recordChannelActivity } from "./channel-activity-BDnjYF7B.js";
48
+ import { t as convertMarkdownTables } from "./tables-mE4cJBN2.js";
49
+ import "./send-dfu6_rgf.js";
50
+ import "./outbound-attachment-DqHlD21U.js";
51
+ import "./send-L7gRiwyd.js";
52
+ import { r as setActiveWebListener } from "./active-listener-BEdprTkn.js";
53
53
  import "./proxy-CecQTx_Z.js";
54
- import "./manager-BW_NSIMl.js";
55
- import "./query-expansion-DtLc3wjL.js";
56
- import { i as markdownToWhatsApp, r as sendReactionWhatsApp, t as sendMessageWhatsApp } from "./outbound-C2kanETZ.js";
57
- import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-A4QhBRvH.js";
58
- import { t as loginWeb } from "./login-DiCctRo1.js";
54
+ import "./manager-1bvuGrNR.js";
55
+ import "./query-expansion-CX-1fS52.js";
56
+ import { i as markdownToWhatsApp, r as sendReactionWhatsApp, t as sendMessageWhatsApp } from "./outbound-ChDjtuD6.js";
57
+ import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-D8ImowSs.js";
58
+ import { t as loginWeb } from "./login-CrIwcrVI.js";
59
59
  import { randomUUID } from "node:crypto";
60
60
  import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
61
61
 
@@ -1,25 +1,25 @@
1
- import "./run-with-concurrency-D_ZpbgEG.js";
2
- import "./paths-C6TxBCvO.js";
3
- import "./subsystem-Di1z8l0Z.js";
4
- import "./workspace-CUVC6GX1.js";
5
- import "./logger-DMZQQtxK.js";
6
- import "./model-selection-idoqPmw0.js";
7
- import "./github-copilot-token-D13V9YBz.js";
8
- import "./legacy-names-TyzbVqa_.js";
9
- import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-CWkRQYDj.js";
10
- import { n as resolveWhatsAppAccount } from "./accounts-yfBeCZtS.js";
11
- import "./image-ops-CehkHxmW.js";
12
- import "./path-alias-guards-DqXRZmsL.js";
13
- import "./fs-safe-0jAo_Whb.js";
14
- import "./proxy-env-Cq5gdrbj.js";
15
- import "./tool-images-2cBx1W8h.js";
16
- import "./fetch-BlJWzEP6.js";
17
- import "./fetch-guard-ChYBwfiy.js";
18
- import "./ir-DAP-B-Xw.js";
1
+ import "./run-with-concurrency-BgYfgkXT.js";
2
+ import "./paths-Cvc9EM8Y.js";
3
+ import "./subsystem-B45WV3qB.js";
4
+ import "./workspace-U-DyR64O.js";
5
+ import "./logger-BfjWMCSD.js";
6
+ import "./model-selection-Dna0Gz1k.js";
7
+ import "./github-copilot-token-BDioPmd6.js";
8
+ import "./legacy-names-DOC03BkU.js";
9
+ import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-4Rj4OjLY.js";
10
+ import { n as resolveWhatsAppAccount } from "./accounts-Tgelvk0C.js";
11
+ import "./image-ops-BuUnEOE0.js";
12
+ import "./path-alias-guards-BzvdLvTI.js";
13
+ import "./fs-safe-CTYUrIgQ.js";
14
+ import "./proxy-env-DlmzDx8x.js";
15
+ import "./tool-images-RZdHiZcG.js";
16
+ import "./fetch-DuraYswo.js";
17
+ import "./fetch-guard-DWr0d00H.js";
18
+ import "./ir-B83looB-.js";
19
19
  import "./render-DW7AcFdD.js";
20
- import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-CBI2Ga0y.js";
21
- import "./tables-d739Y1xW.js";
22
- import { r as sendReactionWhatsApp } from "./outbound-C2kanETZ.js";
20
+ import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-mnlwhAjP.js";
21
+ import "./tables-mE4cJBN2.js";
22
+ import { r as sendReactionWhatsApp } from "./outbound-ChDjtuD6.js";
23
23
 
24
24
  //#region src/whatsapp/resolve-outbound-target.ts
25
25
  function resolveWhatsAppOutboundTarget(params) {
@@ -1,10 +1,10 @@
1
- import { d as resolveRequiredHomeDir } from "./paths-C6TxBCvO.js";
2
- import { c as danger, p as shouldLogVerbose } from "./subsystem-Di1z8l0Z.js";
3
- import { g as pathExists$1, n as logError, t as logDebug, y as resolveUserPath } from "./logger-DMZQQtxK.js";
1
+ import { d as resolveRequiredHomeDir } from "./paths-Cvc9EM8Y.js";
2
+ import { c as danger, p as shouldLogVerbose } from "./subsystem-B45WV3qB.js";
3
+ import { g as pathExists$1, n as logError, t as logDebug, y as resolveUserPath } from "./logger-BfjWMCSD.js";
4
4
  import fs from "node:fs/promises";
5
5
  import os from "node:os";
6
6
  import path from "node:path";
7
- import syncFs from "node:fs";
7
+ import fs$1 from "node:fs";
8
8
  import { promisify } from "node:util";
9
9
  import { execFile, spawn } from "node:child_process";
10
10
  import process$1 from "node:process";
@@ -560,7 +560,7 @@ function resolveBoundaryPathLexicalSync(params) {
560
560
  rootCanonicalPath: params.rootCanonicalPath,
561
561
  resolveParams: params.params,
562
562
  absolutePath: params.absolutePath,
563
- read: (cursor) => syncFs.lstatSync(cursor)
563
+ read: (cursor) => fs$1.lstatSync(cursor)
564
564
  });
565
565
  if (isPromiseLike(maybeStat)) throw new Error("Unexpected async lexical stat");
566
566
  const stat = maybeStat;
@@ -706,15 +706,15 @@ function resolvePathViaExistingAncestorSync(targetPath) {
706
706
  const normalized = path.resolve(targetPath);
707
707
  let cursor = normalized;
708
708
  const missingSuffix = [];
709
- while (!isFilesystemRoot(cursor) && !syncFs.existsSync(cursor)) {
709
+ while (!isFilesystemRoot(cursor) && !fs$1.existsSync(cursor)) {
710
710
  missingSuffix.unshift(path.basename(cursor));
711
711
  const parent = path.dirname(cursor);
712
712
  if (parent === cursor) break;
713
713
  cursor = parent;
714
714
  }
715
- if (!syncFs.existsSync(cursor)) return normalized;
715
+ if (!fs$1.existsSync(cursor)) return normalized;
716
716
  try {
717
- const resolvedAncestor = path.resolve(syncFs.realpathSync(cursor));
717
+ const resolvedAncestor = path.resolve(fs$1.realpathSync(cursor));
718
718
  if (missingSuffix.length === 0) return resolvedAncestor;
719
719
  return path.resolve(resolvedAncestor, ...missingSuffix);
720
720
  } catch {
@@ -739,7 +739,7 @@ function getPathKindSync(absolutePath, preserveFinalSymlink) {
739
739
  try {
740
740
  return {
741
741
  exists: true,
742
- kind: toResolvedKind(preserveFinalSymlink ? syncFs.lstatSync(absolutePath) : syncFs.statSync(absolutePath))
742
+ kind: toResolvedKind(preserveFinalSymlink ? fs$1.lstatSync(absolutePath) : fs$1.statSync(absolutePath))
743
743
  };
744
744
  } catch (error) {
745
745
  if (isNotFoundPathError(error)) return {
@@ -799,10 +799,10 @@ async function resolveSymlinkHopPath(symlinkPath) {
799
799
  }
800
800
  function resolveSymlinkHopPathSync(symlinkPath) {
801
801
  try {
802
- return path.resolve(syncFs.realpathSync(symlinkPath));
802
+ return path.resolve(fs$1.realpathSync(symlinkPath));
803
803
  } catch (error) {
804
804
  if (!isNotFoundPathError(error)) throw error;
805
- const linkTarget = syncFs.readlinkSync(symlinkPath);
805
+ const linkTarget = fs$1.readlinkSync(symlinkPath);
806
806
  return resolvePathViaExistingAncestorSync(path.resolve(path.dirname(symlinkPath), linkTarget));
807
807
  }
808
808
  }
@@ -828,7 +828,7 @@ function sameFileIdentity(left, right) {
828
828
  return sameFileIdentity$1(left, right);
829
829
  }
830
830
  function openVerifiedFileSync(params) {
831
- const ioFs = params.ioFs ?? syncFs;
831
+ const ioFs = params.ioFs ?? fs$1;
832
832
  const allowedType = params.allowedType ?? "file";
833
833
  const openReadFlags = ioFs.constants.O_RDONLY | (typeof ioFs.constants.O_NOFOLLOW === "number" ? ioFs.constants.O_NOFOLLOW : 0);
834
834
  let fd = null;
@@ -905,7 +905,7 @@ function canUseBoundaryFileOpen(ioFs) {
905
905
  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;
906
906
  }
907
907
  function openBoundaryFileSync(params) {
908
- const ioFs = params.ioFs ?? syncFs;
908
+ const ioFs = params.ioFs ?? fs$1;
909
909
  const resolved = resolveBoundaryFilePathGeneric({
910
910
  absolutePath: params.absolutePath,
911
911
  resolve: (absolutePath) => resolveBoundaryPathSync({
@@ -956,7 +956,7 @@ function finalizeBoundaryFileOpen(params) {
956
956
  });
957
957
  }
958
958
  async function openBoundaryFile(params) {
959
- const ioFs = params.ioFs ?? syncFs;
959
+ const ioFs = params.ioFs ?? fs$1;
960
960
  const maybeResolved = resolveBoundaryFilePathGeneric({
961
961
  absolutePath: params.absolutePath,
962
962
  resolve: (absolutePath) => resolveBoundaryPath({
@@ -1105,7 +1105,7 @@ function resolveNpmArgvForWindows(argv) {
1105
1105
  if (!cliName) return null;
1106
1106
  const nodeDir = path.dirname(process$1.execPath);
1107
1107
  const cliPath = path.join(nodeDir, "node_modules", "npm", "bin", cliName);
1108
- if (!syncFs.existsSync(cliPath)) return null;
1108
+ if (!fs$1.existsSync(cliPath)) return null;
1109
1109
  return [
1110
1110
  process$1.execPath,
1111
1111
  cliPath,
@@ -1307,7 +1307,7 @@ async function readPackageName(dir) {
1307
1307
  }
1308
1308
  function readPackageNameSync(dir) {
1309
1309
  try {
1310
- const raw = syncFs.readFileSync(path.join(dir, "package.json"), "utf-8");
1310
+ const raw = fs$1.readFileSync(path.join(dir, "package.json"), "utf-8");
1311
1311
  const parsed = JSON.parse(raw);
1312
1312
  return typeof parsed.name === "string" ? parsed.name : null;
1313
1313
  } catch {
@@ -1341,7 +1341,7 @@ function candidateDirsFromArgv1(argv1) {
1341
1341
  const normalized = path.resolve(argv1);
1342
1342
  const candidates = [path.dirname(normalized)];
1343
1343
  try {
1344
- const resolved = syncFs.realpathSync(normalized);
1344
+ const resolved = fs$1.realpathSync(normalized);
1345
1345
  if (resolved !== normalized) candidates.push(path.dirname(resolved));
1346
1346
  } catch {}
1347
1347
  const parts = normalized.split(path.sep);
@@ -1453,14 +1453,14 @@ async function readWorkspaceFileWithGuards(params) {
1453
1453
  const identity = workspaceFileIdentity(opened.stat, opened.path);
1454
1454
  const cached = workspaceFileCache.get(params.filePath);
1455
1455
  if (cached && cached.identity === identity) {
1456
- syncFs.closeSync(opened.fd);
1456
+ fs$1.closeSync(opened.fd);
1457
1457
  return {
1458
1458
  ok: true,
1459
1459
  content: cached.content
1460
1460
  };
1461
1461
  }
1462
1462
  try {
1463
- const content = syncFs.readFileSync(opened.fd, "utf-8");
1463
+ const content = fs$1.readFileSync(opened.fd, "utf-8");
1464
1464
  workspaceFileCache.set(params.filePath, {
1465
1465
  content,
1466
1466
  identity
@@ -1477,7 +1477,7 @@ async function readWorkspaceFileWithGuards(params) {
1477
1477
  error
1478
1478
  };
1479
1479
  } finally {
1480
- syncFs.closeSync(opened.fd);
1480
+ fs$1.closeSync(opened.fd);
1481
1481
  }
1482
1482
  }
1483
1483
  function stripFrontMatter(content) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-multi-auto",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Multi-channel AI gateway with extensible messaging integrations",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/openclaw/openclaw#readme",
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # =================================================================
3
- # OpenClaw 开发者发布工具 (publish-npm.sh)
3
+ # OpenClaw 开发者发布工具 (publish-npm.sh) - 增强版
4
4
  # 功能:清理 -> 编译 -> 完整性校验 -> 发布 -> 镜像预热
5
5
  # =================================================================
6
6
 
@@ -15,16 +15,23 @@ NC='\033[0m'
15
15
 
16
16
  echo -e "${BLUE}==== 开始发布流程 ====${NC}"
17
17
 
18
- # 0. 确保依赖已安装
18
+ # 0. 检查 npm 登录状态
19
+ echo -e "${YELLOW}🔑 检查 npm 登录状态...${NC}"
20
+ npm whoami > /dev/null 2>&1 || {
21
+ echo -e "${RED}❌ 未登录 npm,请先执行 npm login${NC}"
22
+ exit 1
23
+ }
24
+
25
+ # 1. 确保依赖已安装
19
26
  echo -e "${YELLOW}📦 检查依赖并安装...${NC}"
20
27
  pnpm install
21
28
 
22
- # 1. 清理旧产物
23
- echo -e "${YELLOW}🧹 清理旧产物...${NC}"
24
- rm -rf dist/
29
+ # 2. 清理旧产物和缓存
30
+ echo -e "${YELLOW}🧹 清理旧产物和缓存...${NC}"
31
+ rm -rf dist node_modules/.cache .tsdown-cache
25
32
 
26
- # 2. 编译 TypeScript 及相关资源
27
- echo -e "${YELLOW}🛠️ 正在编译 TypeScript 并生成产物...${NC}"
33
+ # 3. 执行完整构建(建议使用项目已有的 build 命令,如果没有则保留原步骤)
34
+ echo -e "${YELLOW}🛠️ 正在构建...${NC}"
28
35
  pnpm canvas:a2ui:bundle
29
36
  npx tsdown
30
37
  node scripts/copy-plugin-sdk-root-alias.mjs
@@ -37,40 +44,70 @@ node --import tsx scripts/write-build-info.ts
37
44
  node --import tsx scripts/write-cli-startup-metadata.ts
38
45
  node --import tsx scripts/write-cli-compat.ts
39
46
 
40
- # 3. 完整性校验:确保 dist/index.js 中引用的所有文件都存在
41
- echo -e "${YELLOW}🔍 正在校验构建产物完整性...${NC}"
42
- if [ ! -f "dist/index.js" ]; then
43
- echo -e "${RED}❌ 错误:dist/index.js 未生成${NC}"
44
- exit 1
45
- fi
47
+ # 4. 列出 dist 目录所有文件(便于调试)
48
+ echo -e "${YELLOW}📋 dist 目录文件列表:${NC}"
49
+ ls -la dist/
46
50
 
51
+ # 5. 提取 index.js 中引用的所有本地模块文件
52
+ echo -e "${YELLOW}🔍 正在提取 index.js 中引用的所有本地模块...${NC}"
53
+ REF_FILES=$(node -e "
54
+ const fs = require('fs');
55
+ const content = fs.readFileSync('dist/index.js', 'utf8');
56
+ const regex = /(?:require|import)\\(?['\"](\\.\\/[^'\"]+\\.js)['\"]\\)?|from\\s+['\"](\\.\\/[^'\"]+\\.js)['\"]/g;
57
+ let match;
58
+ const files = new Set();
59
+ while ((match = regex.exec(content)) !== null) {
60
+ const file = match[1] || match[2];
61
+ if (file) files.add(file.replace(/^\\.\\//, ''));
62
+ }
63
+ Array.from(files).forEach(f => console.log(f));
64
+ ")
65
+ echo -e "${GREEN}引用文件列表:${NC}"
66
+ echo "$REF_FILES"
67
+
68
+ # 6. 校验所有引用文件是否存在
69
+ echo -e "${YELLOW}🔍 正在校验构建产物完整性...${NC}"
47
70
  MISSING_COUNT=0
48
- for file in $(grep -oE '"[a-zA-Z0-9_-]+\.js"' dist/index.js | sed 's/"//g' | sort -u); do
71
+ while IFS= read -r file; do
49
72
  if [ ! -f "dist/$file" ]; then
50
73
  echo -e "${RED}❌ 缺失模块: dist/$file${NC}"
51
74
  MISSING_COUNT=$((MISSING_COUNT+1))
52
75
  fi
53
- done
76
+ done <<< "$REF_FILES"
54
77
 
55
78
  if [ $MISSING_COUNT -gt 0 ]; then
56
79
  echo -e "${RED}❌ 构建产物不完整,共缺失 $MISSING_COUNT 个模块,请检查构建过程${NC}"
57
80
  exit 1
58
81
  fi
59
- echo -e "${GREEN}✅ 构建产物完整性校验通过${NC}"
82
+ echo -e "${GREEN}✅ 所有引用文件均已存在${NC}"
60
83
 
61
- # 4. 版本校验(可选,防止忘记升版本)
84
+ # 7. 模拟安装测试(可选)
85
+ # echo -e "${YELLOW}📦 模拟安装测试...${NC}"
86
+ # TMP_DIR=$(mktemp -d)
87
+ # cp -r dist package.json "$TMP_DIR"
88
+ # cd "$TMP_DIR"
89
+ # npm install --production --no-package-lock > /dev/null 2>&1
90
+ # if node -e "require('./dist/index.js')" 2>/dev/null; then
91
+ # echo -e "${GREEN}✅ 模拟加载成功${NC}"
92
+ # else
93
+ # echo -e "${RED}❌ 模拟加载失败,请检查产物${NC}"
94
+ # exit 1
95
+ # fi
96
+ # cd - > /dev/null
97
+ # rm -rf "$TMP_DIR"
98
+
99
+ # 8. 版本校验
62
100
  CUR_VERSION=$(node -e "console.log(require('./package.json').version)")
63
101
  echo -e "${GREEN}📦 当前准备发布版本: v${CUR_VERSION}${NC}"
64
102
 
65
- # 5. 发布到 NPM 官方镜像
103
+ # 9. 发布到 NPM 官方镜像
66
104
  echo -e "${YELLOW}🚀 正在发布至 NPM 官方仓库...${NC}"
67
105
  npm publish --registry=https://registry.npmjs.org --access public
68
106
 
69
- # 6. 立即触发淘宝镜像 (npmmirror) 同步
107
+ # 10. 触发淘宝镜像同步
70
108
  echo -e "${YELLOW}🔄 正在通知淘宝镜像同步 (npmmirror)...${NC}"
71
109
  SYNC_URL="https://registry-direct.npmmirror.com/openclaw-multi-auto/sync?publish=true"
72
110
  SYNC_RES=$(curl -s -X PUT "$SYNC_URL")
73
-
74
111
  if [[ $SYNC_RES == *"\"ok\":true"* ]]; then
75
112
  echo -e "${GREEN}✅ 淘宝镜像同步请求成功!${NC}"
76
113
  else
@@ -1,36 +0,0 @@
1
- import "./run-with-concurrency-D_ZpbgEG.js";
2
- import "./paths-C6TxBCvO.js";
3
- import "./subsystem-Di1z8l0Z.js";
4
- import "./workspace-CUVC6GX1.js";
5
- import "./logger-DMZQQtxK.js";
6
- import "./model-selection-idoqPmw0.js";
7
- import "./github-copilot-token-D13V9YBz.js";
8
- import "./legacy-names-TyzbVqa_.js";
9
- import "./thinking-DXYisHiZ.js";
10
- import "./tokens-DxnY9ui_.js";
11
- import "./plugins-CWkRQYDj.js";
12
- import "./accounts-yfBeCZtS.js";
13
- import { t as deliverOutboundPayloads } from "./deliver-D4o6VIur.js";
14
- import "./accounts-L9ByEpnP.js";
15
- import "./image-ops-CehkHxmW.js";
16
- import "./pi-embedded-helpers-wy0DZvx1.js";
17
- import "./chrome-DwizpzOC.js";
18
- import "./frontmatter-CvaMP376.js";
19
- import "./skills-CE_iqvM5.js";
20
- import "./path-alias-guards-DqXRZmsL.js";
21
- import "./redact-ClbcYG1J.js";
22
- import "./errors-CCLeFWAg.js";
23
- import "./fs-safe-0jAo_Whb.js";
24
- import "./proxy-env-Cq5gdrbj.js";
25
- import "./store--eR1R_UX.js";
26
- import "./accounts-BOzyfwW4.js";
27
- import "./paths-CCxysrzL.js";
28
- import "./tool-images-2cBx1W8h.js";
29
- import "./fetch-BlJWzEP6.js";
30
- import "./fetch-guard-ChYBwfiy.js";
31
- import "./ir-DAP-B-Xw.js";
32
- import "./fetch-BfuG8uZ8.js";
33
- import "./send-BQERFNyo.js";
34
- import "./outbound-attachment-DBrYWX8h.js";
35
-
36
- export { deliverOutboundPayloads };