@wirecat/zoom-cli 0.72.0 → 0.74.0

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 (199) hide show
  1. package/contracts/wirecat.json +1478 -0
  2. package/dist/account-removal.d.ts.map +1 -1
  3. package/dist/account-removal.js +0 -2
  4. package/dist/account-removal.js.map +1 -1
  5. package/dist/answers.d.ts +1 -3
  6. package/dist/answers.d.ts.map +1 -1
  7. package/dist/answers.js +0 -3
  8. package/dist/answers.js.map +1 -1
  9. package/dist/bin/main.js +13 -5
  10. package/dist/bin/main.js.map +1 -1
  11. package/dist/bin/zm.js +2 -2
  12. package/dist/bundle/{all-profiles-XFIPF4GF.js → all-profiles-SDOAABLC.js} +12 -12
  13. package/dist/bundle/answer-policy-RHS74QYY.js +110 -0
  14. package/dist/bundle/{anthropic-SSUBR3BC.js → anthropic-HCVY2PIN.js} +7 -7
  15. package/dist/bundle/{app-server-7DJHHF2F.js → app-server-V64VS6KN.js} +65 -61
  16. package/dist/bundle/{bun-6HBYWQIX.js → bun-EBQHHLKR.js} +2 -2
  17. package/dist/bundle/{bun-sqlite-4L3Q55NB.js → bun-sqlite-PVMXO2JB.js} +7 -7
  18. package/dist/bundle/chunk-2PNG76LV.js +707 -0
  19. package/dist/bundle/chunk-2PYZTRRC.js +84 -0
  20. package/dist/bundle/{chunk-63QXCE5Z.js → chunk-3HTJBGNP.js} +10 -10
  21. package/dist/bundle/{chunk-5X4IY5JH.js → chunk-3ROL6MBJ.js} +1763 -762
  22. package/dist/bundle/{chunk-N4QNYWWG.js → chunk-3TYNBHBK.js} +2 -2
  23. package/dist/bundle/{chunk-7SUWPMZG.js → chunk-4ELLWJT4.js} +8 -8
  24. package/dist/bundle/{chunk-PJWSGXOB.js → chunk-4EZKR6Q4.js} +7 -7
  25. package/dist/bundle/{chunk-UVZLK3M4.js → chunk-4RJL32PF.js} +25 -10
  26. package/dist/bundle/{chunk-LTWJM3ED.js → chunk-5KDBLEUF.js} +17 -17
  27. package/dist/bundle/{chunk-7IFO43Q5.js → chunk-5R6EBM5Z.js} +2 -2
  28. package/dist/bundle/{chunk-OHCLQJOV.js → chunk-6EMOZGSN.js} +3 -3
  29. package/dist/bundle/{chunk-D24OQAHM.js → chunk-6GPBDVQ2.js} +4 -4
  30. package/dist/bundle/chunk-7NE3LB7A.js +25 -0
  31. package/dist/bundle/{chunk-VIV64MQM.js → chunk-7R4UU65O.js} +26 -17
  32. package/dist/bundle/{chunk-4XQWF3U2.js → chunk-7W23N2YW.js} +6 -6
  33. package/dist/bundle/{chunk-RN5SU2RN.js → chunk-AFUHT7F7.js} +6 -6
  34. package/dist/bundle/{chunk-SXZGCD6E.js → chunk-APLV37JA.js} +3 -3
  35. package/dist/bundle/{chunk-LLUNHAZ7.js → chunk-BKMC4ETU.js} +4 -4
  36. package/dist/bundle/{chunk-IACWKZWS.js → chunk-BOGGQOVO.js} +1 -1
  37. package/dist/bundle/{chunk-U3NJBGLA.js → chunk-DSRG5NRF.js} +185 -34
  38. package/dist/bundle/{chunk-X2MP634F.js → chunk-DXZN3DU6.js} +4 -4
  39. package/dist/bundle/{chunk-ELJUBPY4.js → chunk-EA2OB75T.js} +1 -1
  40. package/dist/bundle/{chunk-ZVFYGTGJ.js → chunk-F6PUM6ZK.js} +17 -17
  41. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
  42. package/dist/bundle/{chunk-WOAYHCM2.js → chunk-FL2TKSZY.js} +1 -1
  43. package/dist/bundle/{chunk-RZUJMAMK.js → chunk-FT7X74RT.js} +4 -4
  44. package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
  45. package/dist/bundle/{chunk-I7CUMZD6.js → chunk-FY2X6U6O.js} +3 -3
  46. package/dist/bundle/{chunk-W3YTVEWV.js → chunk-GPGIU3OG.js} +9 -9
  47. package/dist/bundle/{chunk-6DCLZLGX.js → chunk-HCZYJMBP.js} +1 -1
  48. package/dist/bundle/{chunk-IU4DUUB3.js → chunk-HGUYJUNO.js} +325 -14
  49. package/dist/bundle/{chunk-S7SXSHRC.js → chunk-HNWDEDMU.js} +61 -30
  50. package/dist/bundle/{chunk-NMZQTYKJ.js → chunk-HZUUVNWC.js} +1 -1
  51. package/dist/bundle/{chunk-7S4D5SM2.js → chunk-I2D4ZZOD.js} +31 -32
  52. package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-IJCUAKR5.js} +4 -4
  53. package/dist/bundle/{chunk-QQUY4MZY.js → chunk-IJONJTST.js} +1 -1
  54. package/dist/bundle/chunk-IS6FUZCP.js +73 -0
  55. package/dist/bundle/{chunk-ZW5KHKMA.js → chunk-IZUOL4Q6.js} +5 -5
  56. package/dist/bundle/{chunk-H53WFZBN.js → chunk-KBRIMLVN.js} +12 -12
  57. package/dist/bundle/{chunk-2MIBRVSV.js → chunk-KCPRTZBZ.js} +2 -2
  58. package/dist/bundle/chunk-KYL5FYOW.js +13 -0
  59. package/dist/bundle/{chunk-4SY67IUA.js → chunk-LHPYSVGP.js} +26 -35
  60. package/dist/bundle/{chunk-JG4MNYG2.js → chunk-LN2LWPN2.js} +1 -1
  61. package/dist/bundle/{chunk-CW46FWKW.js → chunk-LQR4V5EY.js} +14 -12
  62. package/dist/bundle/{chunk-B3SILJBU.js → chunk-LUBG5GKK.js} +30 -22
  63. package/dist/bundle/{chunk-3KRTEX5M.js → chunk-LZ4AVHBS.js} +3 -2
  64. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
  65. package/dist/bundle/{chunk-FSCPQQS5.js → chunk-MAE5UGRQ.js} +150 -93
  66. package/dist/bundle/{chunk-KPIQXFNB.js → chunk-N7KCNMKL.js} +16 -15
  67. package/dist/bundle/{chunk-RLCVPECY.js → chunk-NKBMLSWK.js} +110 -64
  68. package/dist/bundle/{chunk-T27IMG6X.js → chunk-NV2REPY6.js} +1 -1
  69. package/dist/bundle/{chunk-EFF2XBHP.js → chunk-OP6HK2QL.js} +2 -2
  70. package/dist/bundle/{chunk-WLVG4RBZ.js → chunk-OPUGV7VW.js} +15 -2
  71. package/dist/bundle/{chunk-5AELTC52.js → chunk-P53CLAXD.js} +103 -102
  72. package/dist/bundle/{chunk-KWURWGGB.js → chunk-PKM2UKAZ.js} +32 -9
  73. package/dist/bundle/{chunk-7JYMGXLI.js → chunk-PMHMKZEJ.js} +47 -43
  74. package/dist/bundle/{chunk-23J2ANZ7.js → chunk-QAGSAOYS.js} +2 -2
  75. package/dist/bundle/{chunk-JZ4XNNL7.js → chunk-QLKCKTM4.js} +1 -1
  76. package/dist/bundle/{chunk-OP5PGE2N.js → chunk-QSWR7VDA.js} +4 -4
  77. package/dist/bundle/{chunk-LA6QUVGQ.js → chunk-R35YGFKQ.js} +163 -16
  78. package/dist/bundle/{chunk-CANRIRNZ.js → chunk-R4J4DLJV.js} +1792 -1205
  79. package/dist/bundle/{chunk-QW7YTRV2.js → chunk-RJJ4OYNH.js} +3 -3
  80. package/dist/bundle/{chunk-DOCVEKP2.js → chunk-RQJ2RXFO.js} +37 -35
  81. package/dist/bundle/{chunk-TF2WKPNW.js → chunk-RRW54FK6.js} +17 -17
  82. package/dist/bundle/{chunk-KFZL67JP.js → chunk-SKDQNYKA.js} +129 -48
  83. package/dist/bundle/{chunk-7GLJSJ7M.js → chunk-SPWKGRTO.js} +1 -1
  84. package/dist/bundle/{chunk-MSQHSW4C.js → chunk-SY4MIIWF.js} +2 -2
  85. package/dist/bundle/{chunk-ZHA56THL.js → chunk-TKPIDOW5.js} +927 -904
  86. package/dist/bundle/{chunk-WXTYYWZI.js → chunk-TLNZUPGU.js} +115 -113
  87. package/dist/bundle/{chunk-WZGKHTA4.js → chunk-TMCXUWTY.js} +8 -2
  88. package/dist/bundle/{chunk-7OD3522V.js → chunk-TN2YUZBF.js} +1192 -496
  89. package/dist/bundle/{chunk-JFPUYQSP.js → chunk-UGLNVUFX.js} +5 -5
  90. package/dist/bundle/{chunk-IFBIXU6C.js → chunk-UVWNUY3W.js} +2 -2
  91. package/dist/bundle/{chunk-5MGICK47.js → chunk-UW3BB2XW.js} +26 -26
  92. package/dist/bundle/{chunk-24OFZNRC.js → chunk-UXSTXFZQ.js} +5168 -4245
  93. package/dist/bundle/{chunk-U32VL3MA.js → chunk-WRRGO246.js} +3 -2
  94. package/dist/bundle/{chunk-QA6KIL7Q.js → chunk-WYV5IITK.js} +11 -8
  95. package/dist/bundle/{chunk-D5EUMWD5.js → chunk-X2FILY5F.js} +3 -3
  96. package/dist/bundle/{chunk-4YIGXTBP.js → chunk-XCC7R47Z.js} +3 -3
  97. package/dist/bundle/{chunk-37NF5CBJ.js → chunk-XFT3YIHU.js} +6 -8
  98. package/dist/bundle/{chunk-IXO4SCKE.js → chunk-XGEPAJBY.js} +1 -1
  99. package/dist/bundle/chunk-XWBPP2HX.js +2 -0
  100. package/dist/bundle/{chunk-RJTGENHZ.js → chunk-Y4KWWPIO.js} +4 -7
  101. package/dist/bundle/{chunk-DEPXZJ2V.js → chunk-YFLTHGB3.js} +17 -13
  102. package/dist/bundle/{chunk-JRCH4YZP.js → chunk-YM6ZATEK.js} +17 -121
  103. package/dist/bundle/{chunk-ADKMBXY4.js → chunk-YNI57LTZ.js} +1 -1
  104. package/dist/bundle/{chunk-ERJYJ36F.js → chunk-ZMHZ6CQS.js} +2 -2
  105. package/dist/bundle/{chunk-M3DMXDX6.js → chunk-ZYMTS3CI.js} +6 -6
  106. package/dist/bundle/{cli-IYYI7GAM.js → cli-5ALOQCAC.js} +152 -123
  107. package/dist/bundle/command-contract-WO5QJVLZ.js +41 -0
  108. package/dist/bundle/{command-server-entry-FXX4LJWF.js → command-server-entry-ICOMIJIH.js} +33 -33
  109. package/dist/bundle/config-YQA5TJ7Y.js +97 -0
  110. package/dist/bundle/{decode-SRGOOGBW.js → decode-7LFOROWF.js} +6 -6
  111. package/dist/bundle/{dispatch-OUHRPFUL.js → dispatch-EU67WGME.js} +9 -9
  112. package/dist/bundle/{dist-UZLNLAIO.js → dist-KJOOYNCP.js} +25 -22
  113. package/dist/bundle/{echarts-7CM2MCMW.js → echarts-EJXBKCJT.js} +2 -2
  114. package/dist/bundle/{embed-VEE56BOB.js → embed-TOZCKRRO.js} +7 -7
  115. package/dist/bundle/{embedder-SZFYR543.js → embedder-QKEKUCS5.js} +10 -10
  116. package/dist/bundle/{failure-MZBNM7M5.js → failure-CTJLEB2R.js} +3 -3
  117. package/dist/bundle/first-run-S7CQVGK6.js +29 -0
  118. package/dist/bundle/first-screen-6GW6FD6S.js +39 -0
  119. package/dist/bundle/folders-MSBTAPAG.js +24 -0
  120. package/dist/bundle/{instructions-R7OHVAWH.js → instructions-Z7GVGWXS.js} +1 -1
  121. package/dist/bundle/{main-EFUN2O3K.js → main-RL3GC4OX.js} +39 -26
  122. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
  123. package/dist/bundle/{meetings-5I2BDNTA.js → meetings-JCMLE5AO.js} +9 -7
  124. package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
  125. package/dist/bundle/{node-3N2JGZ7V.js → node-L2PVEW3N.js} +2 -2
  126. package/dist/bundle/{node-sqlite-2UVEE2WM.js → node-sqlite-4YW3W4XI.js} +10 -10
  127. package/dist/bundle/{oauth-AYGD7UU3.js → oauth-NNHWAT6A.js} +8 -8
  128. package/dist/bundle/{open-3GUVDLGD.js → open-PF2JHJIY.js} +6 -6
  129. package/dist/bundle/openai-C72ADYMD.js +28 -0
  130. package/dist/bundle/{output-file-72JFXVHQ.js → output-file-VDOCYH2G.js} +6 -6
  131. package/dist/bundle/{process-YAHHUFR5.js → process-MNZTQ2DA.js} +1 -1
  132. package/dist/bundle/{program-OSZROCTK.js → program-FOCBZZZS.js} +146 -151
  133. package/dist/bundle/{prompt-HMCW4XQJ.js → prompt-RBSUKMV7.js} +6 -6
  134. package/dist/bundle/{recognize-VF5CA7EM.js → recognize-RM6TQKK3.js} +5 -5
  135. package/dist/bundle/{remote-5C6VTPR2.js → remote-UKHTU3YR.js} +11 -10
  136. package/dist/bundle/{rerank-ER7NEDOI.js → rerank-3LBRVESU.js} +8 -8
  137. package/dist/bundle/run-log-UXINNGKA.js +124 -0
  138. package/dist/bundle/{serve-QJWXJOM7.js → serve-OOZFTW3W.js} +10 -10
  139. package/dist/bundle/server-DM5ZPFZB.js +75 -0
  140. package/dist/bundle/{server-KCIK3Y2P.js → server-YNQPNIJD.js} +52 -50
  141. package/dist/bundle/{services-LQMYJQG3.js → services-SLEOMN4B.js} +61 -44
  142. package/dist/bundle/{speech-74GJQNQH.js → speech-FZZ6QVGU.js} +20 -20
  143. package/dist/bundle/sqlite-runtime-WUR4PWYB.js +20 -0
  144. package/dist/bundle/{state-4XDGCHDF.js → state-ET36L4TY.js} +7 -7
  145. package/dist/bundle/{store-5Y5HK2L2.js → store-DI6OUBXA.js} +20 -20
  146. package/dist/bundle/{store-Y56AHJ2Y.js → store-SQB2DOVJ.js} +34 -28
  147. package/dist/bundle/store-connection-M6LVRAZ5.js +90 -0
  148. package/dist/bundle/store-maintenance-command-B66KWG6K.js +65 -0
  149. package/dist/bundle/{streaming-E5CR6HSR.js → streaming-PQEXKTE5.js} +7 -7
  150. package/dist/bundle/tokens-SUHRRQ25.js +24 -0
  151. package/dist/bundle/zm.js +9 -9
  152. package/dist/bundle/{zoom-app-NVL7HEAX.js → zoom-app-GE4SSHOP.js} +9 -8
  153. package/dist/folders.d.ts +12 -2
  154. package/dist/folders.d.ts.map +1 -1
  155. package/dist/folders.js +81 -3
  156. package/dist/folders.js.map +1 -1
  157. package/dist/identity.d.ts +5 -0
  158. package/dist/identity.d.ts.map +1 -1
  159. package/dist/identity.js +14 -0
  160. package/dist/identity.js.map +1 -1
  161. package/dist/recording-schedule-setup.d.ts.map +1 -1
  162. package/dist/recording-schedule-setup.js +4 -7
  163. package/dist/recording-schedule-setup.js.map +1 -1
  164. package/dist/remote-http.d.ts +1 -1
  165. package/dist/remote-http.d.ts.map +1 -1
  166. package/dist/remote-http.js +21 -23
  167. package/dist/remote-http.js.map +1 -1
  168. package/dist/setup-commands.d.ts.map +1 -1
  169. package/dist/setup-commands.js +2 -4
  170. package/dist/setup-commands.js.map +1 -1
  171. package/dist/tokens.d.ts +17 -2
  172. package/dist/tokens.d.ts.map +1 -1
  173. package/dist/tokens.js +109 -29
  174. package/dist/tokens.js.map +1 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/dist/wcat.d.ts +3 -0
  178. package/dist/wcat.d.ts.map +1 -0
  179. package/dist/wcat.js +4 -0
  180. package/dist/wcat.js.map +1 -0
  181. package/package.json +15 -14
  182. package/dist/bundle/answer-policy-AT6CDEE5.js +0 -110
  183. package/dist/bundle/chunk-EG25AY4L.js +0 -17
  184. package/dist/bundle/chunk-JAEPK457.js +0 -997
  185. package/dist/bundle/chunk-K6HR6HCO.js +0 -32
  186. package/dist/bundle/chunk-OY6N2ABP.js +0 -1239
  187. package/dist/bundle/chunk-YVVJ6Y5C.js +0 -153
  188. package/dist/bundle/command-contract-TX7NSUBM.js +0 -42
  189. package/dist/bundle/config-YKNM33J7.js +0 -96
  190. package/dist/bundle/first-run-KWC7RKF2.js +0 -29
  191. package/dist/bundle/first-screen-DWKMNSEI.js +0 -40
  192. package/dist/bundle/folders-UQXRSDJJ.js +0 -16
  193. package/dist/bundle/openai-NHCDLWWY.js +0 -28
  194. package/dist/bundle/run-log-JKTLKXSK.js +0 -124
  195. package/dist/bundle/server-LLGFDLLJ.js +0 -75
  196. package/dist/bundle/store-connection-4WI32AYU.js +0 -89
  197. package/dist/bundle/store-maintenance-command-PCXO5AH4.js +0 -65
  198. package/dist/bundle/tokens-E2QNVC4F.js +0 -20
  199. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-7O7XM37N.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/runs/secrets.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/runs/secrets.js
8
8
  var SECRET_WORDS = /* @__PURE__ */ new Set([
9
9
  "authorization",
10
10
  "cookie",
@@ -47,6 +47,7 @@ var KNOWN_TOKENS = new RegExp(`${[
47
47
  "npm_[A-Za-z0-9]{36}",
48
48
  "eyJ[A-Za-z0-9_-]{5,}\\.eyJ[A-Za-z0-9_-]{5,}\\.[A-Za-z0-9_-]*"
49
49
  ].map((pattern) => `${START}${pattern}${END}`).join("|")}|(?<!\\d)\\d{8,10}:[A-Za-z0-9_-]{35}${END}`, "g");
50
+ var WEBHOOK_PATH = /(\/rest\/\d+\/)[^/\s?#"']+/g;
50
51
  var PRIVATE_KEY = /-----BEGIN[A-Z ]* PRIVATE KEY-----[\s\S]*?(?:-----END[A-Z ]* PRIVATE KEY-----|$)/g;
51
52
  var SCHEME = /(?<![A-Za-z])(Bearer|Basic)(\s+)(?![A-Z]?[a-z]+(?![A-Za-z0-9]))[A-Za-z0-9._~+/=-]{8,}/g;
52
53
  var NAMED_PAIR = /(?<![\p{L}\p{N}])([\p{L}\p{N}_.-]*(?:token|pass|pwd|pin|otp|2fa|secret|credential|cookie|authorization|key|contrase|clave|пароль|пин|код)[\p{L}\p{N}_.-]*)(["']?\s*(?:=>|[:=])\s*["']?|\s+(?![\p{L}]+(?![\p{L}\p{N}])))((?:Bearer\s+|Basic\s+)?)([^\s"'&,;]+)/giu;
@@ -79,7 +80,7 @@ var entropy = /* @__PURE__ */ __name((text) => {
79
80
  bits -= count / text.length * Math.log2(count / text.length);
80
81
  return bits;
81
82
  }, "entropy");
82
- var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.replace(PRIVATE_KEY, mark).replace(KNOWN_TOKENS, mark).replace(SCHEME, `$1$2${mark}`).replace(NAMED_PAIR, (whole, name, separator, scheme) => secretNamed(name) ? `${name}${separator}${scheme}${mark}` : whole).replace(/[!-~]{20,}/g, (token) => (
83
+ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.replace(WEBHOOK_PATH, `$1${mark}`).replace(PRIVATE_KEY, mark).replace(KNOWN_TOKENS, mark).replace(SCHEME, `$1$2${mark}`).replace(NAMED_PAIR, (whole, name, separator, scheme) => secretNamed(name) ? `${name}${separator}${scheme}${mark}` : whole).replace(/[!-~]{20,}/g, (token) => (
83
84
  // A URL or a path is somebody's address, not a key; a credential in one is caught by the rules above.
84
85
  token.includes("://") || /^(?:\/|~\/|\.\.?\/)/.test(token) ? token : token.replace(RUN, (run) => looksRandom(run) ? mark : run.replace(HEX, (hex) => entropy(hex) >= 3 ? mark : hex))
85
86
  )), "withoutSecrets");
@@ -2,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure
5
- } from "./chunk-WZGKHTA4.js";
5
+ } from "./chunk-TMCXUWTY.js";
6
6
  import {
7
7
  secretNamed,
8
8
  withoutSecrets
9
- } from "./chunk-U32VL3MA.js";
9
+ } from "./chunk-WRRGO246.js";
10
10
  import {
11
11
  isContentKey
12
- } from "./chunk-S7SXSHRC.js";
12
+ } from "./chunk-HNWDEDMU.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/runs/events.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/runs/events.js
18
18
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
19
19
  var renderEvent = /* @__PURE__ */ __name((event) => {
20
20
  if (event.event === "store")
@@ -66,11 +66,11 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
66
66
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
67
67
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
68
68
 
69
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/runs/run-context.js
69
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/runs/run-context.js
70
70
  import { AsyncLocalStorage } from "node:async_hooks";
71
71
  import { createHash } from "node:crypto";
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
74
74
  import { homedir } from "node:os";
75
75
  var MESSAGE_AT_MOST = 500;
76
76
  var CAUSES_AT_MOST = 5;
@@ -157,9 +157,12 @@ var endpointTemplate = /* @__PURE__ */ __name((raw) => {
157
157
  const origin = /^[a-z][a-z0-9+.-]*:\/\/(?:[^@/]*@)?([^/]*)/i.exec(trimmed);
158
158
  const path = origin ? trimmed.slice(origin[0].length) : trimmed;
159
159
  const scheme = origin ? `${trimmed.slice(0, trimmed.indexOf("://"))}://${origin[1]}` : "";
160
- const segments = path.split("/").map((segment) => {
160
+ const parts = path.split("/");
161
+ const segments = parts.map((segment, at) => {
161
162
  if (segment === "" || /^[:{].+/.test(segment))
162
163
  return segment;
164
+ if (at >= 2 && parts[at - 2] === "rest" && /^\d+$/.test(parts[at - 1] ?? ""))
165
+ return ":token";
163
166
  if (/^bot\d+:/.test(segment) || /^\d{6,}:[\w-]{20,}$/.test(segment))
164
167
  return ":token";
165
168
  if (/^-?\d+$/.test(segment) || /^[0-9a-f-]{16,}$/i.test(segment))
@@ -180,7 +183,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
180
183
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
181
184
  }, "redactText");
182
185
 
183
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/runs/run-context.js
186
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/runs/run-context.js
184
187
  var REDACTED = "[redacted]";
185
188
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
186
189
  if (!record)
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  checkCancelled
5
- } from "./chunk-ERJYJ36F.js";
5
+ } from "./chunk-ZMHZ6CQS.js";
6
6
  import {
7
7
  createOutputBuffer
8
- } from "./chunk-S7SXSHRC.js";
8
+ } from "./chunk-HNWDEDMU.js";
9
9
  import {
10
10
  CliError
11
- } from "./chunk-ELJUBPY4.js";
11
+ } from "./chunk-EA2OB75T.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openOrdinaryFile
5
- } from "./chunk-WXTYYWZI.js";
5
+ } from "./chunk-TLNZUPGU.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-ELJUBPY4.js";
8
+ } from "./chunk-EA2OB75T.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/speech/wav.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/speech/wav.js
14
14
  import { createHash } from "node:crypto";
15
15
  import { basename, resolve } from "node:path";
16
16
  var prepared = /* @__PURE__ */ new WeakMap();
@@ -4,18 +4,18 @@ import {
4
4
  readSharedSection,
5
5
  sharedConfigPath,
6
6
  writeSharedSection
7
- } from "./chunk-IU4DUUB3.js";
7
+ } from "./chunk-HGUYJUNO.js";
8
8
  import {
9
9
  storePath
10
- } from "./chunk-3KRTEX5M.js";
10
+ } from "./chunk-LZ4AVHBS.js";
11
11
  import {
12
12
  CliError
13
- } from "./chunk-ELJUBPY4.js";
13
+ } from "./chunk-EA2OB75T.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
19
19
  var PERMISSION_ANSWERS = ["readonly", "allow"];
20
20
  var QUESTIONS = ["languages", "tools", "permissions"];
21
21
  var SECTION = "setup";
@@ -40,13 +40,11 @@ var writeSetupAnswers = /* @__PURE__ */ __name((path, answers) => {
40
40
  writeSharedSection(path, SECTION, { ...kept, ...answers });
41
41
  }, "writeSetupAnswers");
42
42
  var permissionCeiling = /* @__PURE__ */ __name((path) => {
43
- let answer;
44
43
  try {
45
- answer = readSetupAnswers(path).permissions;
44
+ return readSetupAnswers(path).permissions === "readonly" ? "readonly" : void 0;
46
45
  } catch {
47
- return "readonly";
46
+ return void 0;
48
47
  }
49
- return answer === "allow" ? void 0 : answer;
50
48
  }, "permissionCeiling");
51
49
  var setupPermissionCeiling = /* @__PURE__ */ __name((env = process.env) => permissionCeiling(sharedConfigPath(storePath(env), env)), "setupPermissionCeiling");
52
50
 
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -0,0 +1,2 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-RN5SU2RN.js";
6
+ } from "./chunk-AFUHT7F7.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";
@@ -99,11 +99,8 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
99
99
  });
100
100
  }), "relay");
101
101
 
102
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
103
- var COMMAND_SERVER_ARGV = ["commands", "--serve"];
104
- var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
105
-
106
102
  export {
107
103
  ensureSqlite,
108
- isCommandServer
104
+ nodeRuntime,
105
+ relay
109
106
  };
@@ -2,37 +2,40 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  encodeWav
5
- } from "./chunk-4YIGXTBP.js";
6
- import {
7
- providerWaitMs
8
- } from "./chunk-FSCPQQS5.js";
5
+ } from "./chunk-XCC7R47Z.js";
9
6
  import {
10
7
  SAMPLE_RATE,
11
8
  toModelRate
12
- } from "./chunk-OP5PGE2N.js";
9
+ } from "./chunk-QSWR7VDA.js";
13
10
  import {
14
11
  OPENAI_URL,
15
12
  refuseModelAddress
16
- } from "./chunk-W3YTVEWV.js";
13
+ } from "./chunk-GPGIU3OG.js";
14
+ import {
15
+ endpointFetch
16
+ } from "./chunk-IS6FUZCP.js";
17
+ import {
18
+ providerWaitMs
19
+ } from "./chunk-MAE5UGRQ.js";
17
20
  import {
18
21
  OPENAI_TRANSCRIBE_MODEL,
19
22
  VAD,
20
23
  filesPresent,
21
24
  modelsDirectory,
22
25
  vadPath
23
- } from "./chunk-D24OQAHM.js";
26
+ } from "./chunk-6GPBDVQ2.js";
24
27
  import {
25
28
  DEFAULT_RETRY,
26
29
  backoffMs
27
- } from "./chunk-S7SXSHRC.js";
30
+ } from "./chunk-HNWDEDMU.js";
28
31
  import {
29
32
  CliError
30
- } from "./chunk-ELJUBPY4.js";
33
+ } from "./chunk-EA2OB75T.js";
31
34
  import {
32
35
  __name
33
36
  } from "./chunk-ZVVMGPBJ.js";
34
37
 
35
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/speech/openai.js
38
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/speech/openai.js
36
39
  import { setTimeout as wait } from "node:timers/promises";
37
40
  var LONGEST_REQUEST_SECONDS = 600;
38
41
  var JOINED_SECONDS = 0.2;
@@ -81,12 +84,13 @@ var failureOf = /* @__PURE__ */ __name(async (response) => {
81
84
  return {};
82
85
  }
83
86
  }, "failureOf");
87
+ var TRANSCRIPTION_TIMEOUT_MS = 6e5;
84
88
  var send = /* @__PURE__ */ __name(async (wav, options) => {
85
- const post = options.fetch ?? fetch;
89
+ const url = `${(options.baseUrl ?? OPENAI_URL).replace(/\/+$/, "")}/audio/transcriptions`;
90
+ const post = options.fetch ?? endpointFetch(url, TRANSCRIPTION_TIMEOUT_MS);
86
91
  const retry = options.retry ?? RETRY;
87
92
  const sleep = options.sleep ?? sleeping;
88
93
  const random = options.random ?? Math.random;
89
- const url = `${(options.baseUrl ?? OPENAI_URL).replace(/\/+$/, "")}/audio/transcriptions`;
90
94
  for (let attempt = 1; ; attempt++) {
91
95
  interrupted(options.signal);
92
96
  let response;
@@ -155,7 +159,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
155
159
  return pieces;
156
160
  }, "piecesOf");
157
161
  var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
158
- const { openSpeechCutter } = await import("./recognize-VF5CA7EM.js");
162
+ const { openSpeechCutter } = await import("./recognize-RM6TQKK3.js");
159
163
  return openSpeechCutter(vadModel);
160
164
  }, "openCutter");
161
165
  var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
@@ -5,9 +5,8 @@ import {
5
5
  } from "./chunk-HTQTIKWP.js";
6
6
  import {
7
7
  commandPathOf,
8
- findCommand,
9
8
  outputOf
10
- } from "./chunk-ZW5KHKMA.js";
9
+ } from "./chunk-IZUOL4Q6.js";
11
10
  import {
12
11
  Command,
13
12
  Help,
@@ -18,123 +17,18 @@ import {
18
17
  environmentOf,
19
18
  metaOf,
20
19
  takesProfile
21
- } from "./chunk-7OD3522V.js";
20
+ } from "./chunk-TN2YUZBF.js";
22
21
  import {
23
22
  writes
24
- } from "./chunk-UVZLK3M4.js";
23
+ } from "./chunk-4RJL32PF.js";
25
24
  import {
26
25
  CliError
27
- } from "./chunk-ELJUBPY4.js";
26
+ } from "./chunk-EA2OB75T.js";
28
27
  import {
29
28
  __name
30
29
  } from "./chunk-ZVVMGPBJ.js";
31
30
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
- var SECTIONS = {
34
- read: "Read",
35
- write: "Write",
36
- organise: "Organise",
37
- automate: "Automate",
38
- setup: "Set up",
39
- other: "Other"
40
- };
41
- var sections = /* @__PURE__ */ new WeakMap();
42
- var inSection = /* @__PURE__ */ __name((command, section) => {
43
- sections.set(command, section);
44
- return command;
45
- }, "inSection");
46
- var sectionOf = /* @__PURE__ */ __name((command) => {
47
- for (let at = command; at; at = at.parent) {
48
- const section = sections.get(at) ?? (at.parent && !at.parent.parent ? CORE_SECTIONS[at.name()] : void 0);
49
- if (section)
50
- return section;
51
- }
52
- return "other";
53
- }, "sectionOf");
54
- var CORE_SECTIONS = {
55
- attachments: "read",
56
- chats: "read",
57
- contacts: "read",
58
- conversations: "read",
59
- images: "read",
60
- inbox: "read",
61
- meetings: "read",
62
- mentions: "read",
63
- messages: "read",
64
- review: "read",
65
- search: "read",
66
- stats: "read",
67
- topics: "read",
68
- watch: "read",
69
- flood: "write",
70
- polls: "write",
71
- reactions: "write",
72
- recipients: "write",
73
- sends: "write",
74
- metadata: "organise",
75
- searches: "organise",
76
- tags: "organise",
77
- tasks: "organise",
78
- bot: "automate",
79
- mcp: "automate",
80
- replies: "automate",
81
- runs: "automate",
82
- schedule: "automate",
83
- templates: "automate",
84
- serve: "automate",
85
- server: "automate",
86
- account: "setup",
87
- commands: "setup",
88
- complete: "setup",
89
- config: "setup",
90
- doctor: "setup",
91
- guide: "setup",
92
- models: "setup",
93
- skill: "setup",
94
- store: "setup",
95
- upgrade: "setup"
96
- };
97
-
98
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
99
- var DESCRIPTION = 90;
100
- var COLUMN = 52;
101
- var short = /* @__PURE__ */ __name((text) => {
102
- const line = text.replace(/\s+/g, " ").trim();
103
- if (line.length <= DESCRIPTION)
104
- return line;
105
- const cut = line.slice(0, DESCRIPTION);
106
- return `${cut.slice(0, Math.max(cut.lastIndexOf(" "), DESCRIPTION / 2))}\u2026`;
107
- }, "short");
108
- var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
109
- const cli = root.name();
110
- const runs = /* @__PURE__ */ __name((info) => [
111
- ...info.commands.length === 0 || info.runnable ? [info] : [],
112
- ...info.commands.flatMap(runs)
113
- ], "runs");
114
- const bySection = new Map(Object.keys(SECTIONS).map((key) => [key, []]));
115
- for (const info of commands.flatMap(runs))
116
- bySection.get(sectionOf(findCommand(root, info.path)))?.push(info);
117
- const where = scope ? `${cli} ${scope.join(" ")}` : cli;
118
- const lines = [
119
- `${where} commands, by section. One command's arguments and options: ${cli} <command> --help.`,
120
- `As JSON: ${cli} commands${scope ? ` ${scope.join(" ")}` : ""} --json. (writes) marks a command that changes something.`
121
- ];
122
- for (const [section, infos] of bySection) {
123
- if (infos.length === 0)
124
- continue;
125
- lines.push("", SECTIONS[section]);
126
- for (const { usage, summary, description, effects, availability } of infos) {
127
- const what = short(summary ?? description);
128
- const mark = effects === void 0 || writes(effects) ? " (writes)" : "";
129
- const access = availability?.available === false ? ` [unavailable: ${availability.reason}]` : "";
130
- lines.push(` ${usage.padEnd(COLUMN)} ${what}${mark}${access}`.trimEnd());
131
- }
132
- }
133
- return `${lines.join("\n")}
134
- `;
135
- }, "commandsText");
136
-
137
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
138
32
  var ARGUMENT_KINDS = {
139
33
  chat: "chat",
140
34
  chats: "chat",
@@ -212,8 +106,8 @@ var nextUsually = /* @__PURE__ */ __name((command, choice) => {
212
106
  return command;
213
107
  }, "nextUsually");
214
108
  var kindOfArgument = /* @__PURE__ */ __name((argument) => ARGUMENT_KINDS[argument.name()], "kindOfArgument");
215
- var runsItself = /* @__PURE__ */ __name((command) => command._actionHandler != null, "runsItself");
216
- var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child._hidden).flatMap((child) => child.commands.length === 0 ? [child] : [...runsItself(child) ? [child] : [], ...leaves(child)]), "leaves");
109
+ var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || Boolean(command._actionHandler), "runs");
110
+ var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child._hidden).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
217
111
  var rootOf = /* @__PURE__ */ __name((command) => {
218
112
  let at = command;
219
113
  while (at.parent)
@@ -236,7 +130,7 @@ var returnsOf = /* @__PURE__ */ __name((command) => {
236
130
  const output = metaOf(command).output;
237
131
  const { item, coverage } = outputOf(command);
238
132
  if (!output || coverage !== "declared-entity")
239
- return short(command.summary() || command.description()) || "not declared";
133
+ return "";
240
134
  const fields = [...new Set(fieldsOf(item))];
241
135
  const noun = (output.view ? `${output.entity} ${output.view}` : output.entity).replaceAll("_", " ");
242
136
  const more = fields.length > 8 ? `, and ${fields.length - 8} more` : "";
@@ -318,7 +212,7 @@ var commandHelpText = /* @__PURE__ */ __name((command) => {
318
212
  return [
319
213
  "",
320
214
  ...access,
321
- ...rows("Returns:", [returns]),
215
+ ...rows("Returns:", returns ? [returns] : []),
322
216
  ...rows("Next usually:", next),
323
217
  ...rows("Example:", examples),
324
218
  ""
@@ -326,12 +220,12 @@ var commandHelpText = /* @__PURE__ */ __name((command) => {
326
220
  }, "commandHelpText");
327
221
  var commandHelpMarkdown = /* @__PURE__ */ __name((root, path) => {
328
222
  const command = commandAt(root, path.join(" "));
329
- if (!command || command.commands.length > 0 && !runsItself(command))
223
+ if (!command || !runs(command))
330
224
  return [];
331
225
  const { returns, next, examples } = commandHelp(command);
332
226
  const code = /* @__PURE__ */ __name((values) => values.map((value) => `\`${value}\``).join(", "), "code");
333
227
  return [
334
- `**Returns:** ${returns}`,
228
+ ...returns ? [`**Returns:** ${returns}`] : [],
335
229
  ...next.length > 0 ? [`**Next usually:** ${code(next)}`] : [],
336
230
  `**Example:** ${code(examples)}`
337
231
  ];
@@ -356,7 +250,7 @@ var exampleReport = /* @__PURE__ */ __name((program) => {
356
250
  return { written, generated, text };
357
251
  }, "exampleReport");
358
252
 
359
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
253
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
360
254
  var WIRECAT_TOOLS = [
361
255
  {
362
256
  command: "tg",
@@ -403,6 +297,11 @@ var WIRECAT_TOOLS = [
403
297
  command: "b24",
404
298
  package: "@wirecat/bitrix24-cli",
405
299
  does: "Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data"
300
+ },
301
+ {
302
+ command: "pbx",
303
+ package: "@wirecat/asterisk-cli",
304
+ does: "Asterisk PBX calls and recordings, searchable with your other WireCat data"
406
305
  }
407
306
  ];
408
307
  var WIDTH = 100;
@@ -494,9 +393,6 @@ var installHelp = /* @__PURE__ */ __name((program, screen = {}) => {
494
393
  }, "installHelp");
495
394
 
496
395
  export {
497
- SECTIONS,
498
- inSection,
499
- commandsText,
500
396
  nextUsually,
501
397
  commandHelp,
502
398
  commandHelpText,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  timezoneOf,
5
5
  wallTime
6
- } from "./chunk-63QXCE5Z.js";
6
+ } from "./chunk-3HTJBGNP.js";
7
7
  import {
8
8
  CliError,
9
9
  isCliError
10
- } from "./chunk-ELJUBPY4.js";
10
+ } from "./chunk-EA2OB75T.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  checkCancelled
5
- } from "./chunk-ERJYJ36F.js";
5
+ } from "./chunk-ZMHZ6CQS.js";
6
6
  import {
7
7
  BASE_CONSTANTS,
8
8
  baseConstantsSchema,
9
9
  loadConstants
10
- } from "./chunk-S7SXSHRC.js";
10
+ } from "./chunk-HNWDEDMU.js";
11
11
  import {
12
12
  nonEmpty,
13
13
  object,
@@ -15,15 +15,15 @@ import {
15
15
  pipe,
16
16
  string,
17
17
  transform
18
- } from "./chunk-UVZLK3M4.js";
18
+ } from "./chunk-4RJL32PF.js";
19
19
  import {
20
20
  CliError
21
- } from "./chunk-ELJUBPY4.js";
21
+ } from "./chunk-EA2OB75T.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/constants/obscure.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/constants/obscure.js
27
27
  import { createDecipheriv } from "node:crypto";
28
28
  var KEY = Buffer.from("d43012779aa2dded3e98092a3dbcf5d8980c564172f5ce0a5fd0574e5f740339", "hex");
29
29
  var reveal = /* @__PURE__ */ __name((obscured) => {
@@ -32,7 +32,7 @@ var reveal = /* @__PURE__ */ __name((obscured) => {
32
32
  return Buffer.concat([decipher.update(bytes.subarray(16)), decipher.final()]).toString("utf8");
33
33
  }, "reveal");
34
34
 
35
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/constants/index.js
35
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/constants/index.js
36
36
  var CORE_CONSTANTS = new URL("../../constants.json", new URL("constants/index.js", import.meta.resolve("@wirecat/cli-core")).href);
37
37
  var constantsSchema = object({
38
38
  ...baseConstantsSchema.entries,