@wirecat/zoom-cli 0.80.0 → 0.81.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 (197) hide show
  1. package/contracts/wirecat.json +71 -3
  2. package/dist/answers.d.ts +44 -0
  3. package/dist/answers.d.ts.map +1 -1
  4. package/dist/bin/zm.js +2 -2
  5. package/dist/bundle/agent-VYAJCJLE.js +45 -0
  6. package/dist/bundle/{all-profiles-5GOKWOT4.js → all-profiles-3ASMN35R.js} +64 -22
  7. package/dist/bundle/answer-policy-PTH4F2DW.js +129 -0
  8. package/dist/bundle/{anthropic-NHXMOFYS.js → anthropic-XXI53VNI.js} +6 -6
  9. package/dist/bundle/{app-server-HFW5Z5PI.js → app-server-B7WLNZNQ.js} +90 -80
  10. package/dist/bundle/{bun-M5IGY2TG.js → bun-2FLR4IV4.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-MTP5JJQ2.js → bun-sqlite-3NNHTOGM.js} +7 -7
  12. package/dist/bundle/{chunk-P2JTVRGU.js → chunk-2ELGSNX3.js} +17 -17
  13. package/dist/bundle/{chunk-5RVXXDN7.js → chunk-2GNGR265.js} +1 -1
  14. package/dist/bundle/{chunk-W2QDYMAM.js → chunk-2RFWRJFK.js} +7 -7
  15. package/dist/bundle/{chunk-4OAR7BGU.js → chunk-2Z7UOXFC.js} +1 -1
  16. package/dist/bundle/chunk-337ALCXQ.js +640 -0
  17. package/dist/bundle/{chunk-4F7Q5CET.js → chunk-35FVYRH5.js} +20 -18
  18. package/dist/bundle/{chunk-HH7GR6TN.js → chunk-3M436OO2.js} +6 -6
  19. package/dist/bundle/{chunk-5QXQIZJY.js → chunk-3UX4VJWD.js} +1 -1
  20. package/dist/bundle/{chunk-NRVMK5H3.js → chunk-437DLSB3.js} +1211 -615
  21. package/dist/bundle/{chunk-L2TURFT6.js → chunk-46EF6P2J.js} +3 -3
  22. package/dist/bundle/{chunk-GVKZZT7E.js → chunk-4B335BCJ.js} +7 -78
  23. package/dist/bundle/chunk-4BU3LRTB.js +561 -0
  24. package/dist/bundle/{chunk-W32HK7KG.js → chunk-4BXLHSXY.js} +2 -2
  25. package/dist/bundle/{chunk-JGSVWLL2.js → chunk-4FSH7K6N.js} +2 -2
  26. package/dist/bundle/{chunk-GCUOZ2OA.js → chunk-4VOCXLMJ.js} +6 -6
  27. package/dist/bundle/{chunk-XL4ND7CZ.js → chunk-4ZXJ4AZW.js} +26 -26
  28. package/dist/bundle/{chunk-6CDMGT6Q.js → chunk-5EWYDHBH.js} +2 -2
  29. package/dist/bundle/{chunk-HGSBLY6M.js → chunk-5SEBLX6B.js} +12 -12
  30. package/dist/bundle/{chunk-TDBVM2SS.js → chunk-77TJ3AJH.js} +3 -3
  31. package/dist/bundle/{chunk-5XO2AY6D.js → chunk-7JWVPJIP.js} +10 -10
  32. package/dist/bundle/{chunk-FPUGMDJV.js → chunk-AV2ZJ4WX.js} +1 -1
  33. package/dist/bundle/{chunk-PCPOO5FS.js → chunk-AWJQ6FAX.js} +2 -2
  34. package/dist/bundle/{chunk-N5YUHN6S.js → chunk-B2WBWKYN.js} +12 -12
  35. package/dist/bundle/{chunk-W7M4JYEE.js → chunk-BQBC2WIG.js} +1 -1
  36. package/dist/bundle/{chunk-NXFKZFTC.js → chunk-BZXHJKKI.js} +3 -3
  37. package/dist/bundle/{chunk-BPSURRAD.js → chunk-C4BBCSGK.js} +43 -64
  38. package/dist/bundle/{chunk-CWXOXIWS.js → chunk-CFQQTDSA.js} +1 -1
  39. package/dist/bundle/{chunk-2P6MQH4V.js → chunk-D26K6756.js} +6 -6
  40. package/dist/bundle/{chunk-XKLU5KV2.js → chunk-D7CDHBDX.js} +1 -1
  41. package/dist/bundle/{chunk-6LY4LBSD.js → chunk-DMJLJVD3.js} +7 -7
  42. package/dist/bundle/{chunk-K672XJ2P.js → chunk-EEBSKMEA.js} +12 -12
  43. package/dist/bundle/{chunk-SUG6YGAF.js → chunk-EPASOAEI.js} +166 -161
  44. package/dist/bundle/{chunk-M4LAF627.js → chunk-EWEQ7AXL.js} +19 -19
  45. package/dist/bundle/{chunk-ARL2TTPZ.js → chunk-F2J2FQUB.js} +9 -9
  46. package/dist/bundle/{chunk-RT7C3SSJ.js → chunk-F5ZAN7OC.js} +1 -1
  47. package/dist/bundle/{chunk-6QCBTBDA.js → chunk-FMMYBVCH.js} +1 -1
  48. package/dist/bundle/{chunk-EI37UXDR.js → chunk-FXCR4DGU.js} +1 -1
  49. package/dist/bundle/{chunk-D4HKTC2T.js → chunk-FXZPAGHT.js} +2 -2
  50. package/dist/bundle/{chunk-CW6CPQHI.js → chunk-G3DWMG7Y.js} +4 -4
  51. package/dist/bundle/{chunk-W3GZ7JUO.js → chunk-GCAJW4SR.js} +1 -1
  52. package/dist/bundle/chunk-GDRFVBCB.js +108 -0
  53. package/dist/bundle/{chunk-A3TUG2DP.js → chunk-GPRJXJC7.js} +15 -1
  54. package/dist/bundle/chunk-GW2A2FJH.js +209 -0
  55. package/dist/bundle/{chunk-3Z7CFQTI.js → chunk-HHQROAJQ.js} +1 -1
  56. package/dist/bundle/{chunk-BRMV33MO.js → chunk-HIFPHARA.js} +4 -4
  57. package/dist/bundle/{chunk-O3DYRCIT.js → chunk-HVXOA4FO.js} +1 -1
  58. package/dist/bundle/{chunk-ONJPUFLX.js → chunk-IBYGNUO7.js} +1 -1
  59. package/dist/bundle/{chunk-GGKEQQME.js → chunk-IDUKCXL7.js} +8 -8
  60. package/dist/bundle/{chunk-5CJ6AAUI.js → chunk-IFM4G4MT.js} +4 -4
  61. package/dist/bundle/chunk-IVZACJ6X.js +52 -0
  62. package/dist/bundle/{chunk-XIHENZW6.js → chunk-IYNICUCC.js} +4 -4
  63. package/dist/bundle/chunk-J5EHZBO5.js +68 -0
  64. package/dist/bundle/{chunk-FIJREKLA.js → chunk-JK24A3RP.js} +3 -3
  65. package/dist/bundle/{chunk-TNL3YQ33.js → chunk-JKEMW6E4.js} +2 -2
  66. package/dist/bundle/{chunk-3AOESMW6.js → chunk-K7CTCDYX.js} +18 -259
  67. package/dist/bundle/{chunk-OXPHJEJ2.js → chunk-KZ3B6HW5.js} +3 -3
  68. package/dist/bundle/{chunk-E3JVLVVB.js → chunk-L2ERFXB7.js} +30 -28
  69. package/dist/bundle/{chunk-DZ6H3YJH.js → chunk-L54I45OX.js} +19 -16
  70. package/dist/bundle/{chunk-475P3LWG.js → chunk-LECMHK2F.js} +1 -1
  71. package/dist/bundle/{chunk-6PIXP5IH.js → chunk-LGESUPKO.js} +20 -20
  72. package/dist/bundle/{chunk-75JW7X2W.js → chunk-LVCCZI5A.js} +71 -61
  73. package/dist/bundle/chunk-M7OYEMLI.js +340 -0
  74. package/dist/bundle/{chunk-O4ZBFATF.js → chunk-MA4UJNUI.js} +12 -12
  75. package/dist/bundle/{chunk-RFXJLG5V.js → chunk-MBBR7QHI.js} +3377 -2720
  76. package/dist/bundle/{chunk-BNEJKGG7.js → chunk-N5ROXGY4.js} +78 -76
  77. package/dist/bundle/{chunk-BW5JEOBE.js → chunk-N62P5FY4.js} +12 -12
  78. package/dist/bundle/{chunk-5K54M6RD.js → chunk-NM5XMKWO.js} +1 -1
  79. package/dist/bundle/{chunk-EMYRUJCV.js → chunk-NQGGTO3B.js} +8 -8
  80. package/dist/bundle/{chunk-7U5X37TE.js → chunk-NS3JWBDR.js} +6 -6
  81. package/dist/bundle/{chunk-QIK2IBJ4.js → chunk-NX3BLISW.js} +23 -7
  82. package/dist/bundle/{chunk-2XZ2YKW4.js → chunk-OEQNP56V.js} +2 -100
  83. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  84. package/dist/bundle/{chunk-GCPO7T2X.js → chunk-PS7HQ5LQ.js} +3 -3
  85. package/dist/bundle/{chunk-MH4L5LL6.js → chunk-Q26UFIH4.js} +3 -3
  86. package/dist/bundle/{chunk-JXSEH64A.js → chunk-QFK52FG6.js} +3 -3
  87. package/dist/bundle/chunk-QNG27PGH.js +751 -0
  88. package/dist/bundle/{chunk-YR5TRWT2.js → chunk-R4CXFYQN.js} +139 -574
  89. package/dist/bundle/{chunk-YAA2D6RP.js → chunk-R6HP2XKD.js} +5 -5
  90. package/dist/bundle/{chunk-CHEHK6IW.js → chunk-RQFRXUI4.js} +77 -67
  91. package/dist/bundle/{chunk-CWCDCNXA.js → chunk-RRYHLP3A.js} +6 -6
  92. package/dist/bundle/{chunk-EPIA2UUM.js → chunk-SRUAUMBL.js} +12 -12
  93. package/dist/bundle/{chunk-TMYZKDQ7.js → chunk-T2BHIC37.js} +65 -65
  94. package/dist/bundle/{chunk-FSLR2YGR.js → chunk-T7QPZYRZ.js} +7 -7
  95. package/dist/bundle/{chunk-PKW3TPNP.js → chunk-TI4WJOEX.js} +13 -13
  96. package/dist/bundle/{chunk-ST3ZB7LS.js → chunk-UHMJSSQO.js} +1 -1
  97. package/dist/bundle/{chunk-GRYXOSN6.js → chunk-UMPUY77T.js} +10 -10
  98. package/dist/bundle/{chunk-Q5LUGY2V.js → chunk-UPR2S5IE.js} +9 -9
  99. package/dist/bundle/chunk-UUVWAVKN.js +80 -0
  100. package/dist/bundle/{chunk-DYRISFHZ.js → chunk-V3ZTAAJ6.js} +19 -9
  101. package/dist/bundle/{chunk-Q6MISDKJ.js → chunk-VAW7QGJA.js} +3 -3
  102. package/dist/bundle/{chunk-L6FM5RQY.js → chunk-VQTYJ6XH.js} +3 -3
  103. package/dist/bundle/{chunk-BIKHHFD2.js → chunk-VXD65V67.js} +1395 -1529
  104. package/dist/bundle/{chunk-XTCAWNBP.js → chunk-WHXYPLUE.js} +4 -4
  105. package/dist/bundle/chunk-WIX6BFRF.js +353 -0
  106. package/dist/bundle/{chunk-JJX4HKDV.js → chunk-WKNYNK7W.js} +4 -4
  107. package/dist/bundle/{chunk-NMETTKCV.js → chunk-XWKUGAG6.js} +14 -14
  108. package/dist/bundle/{chunk-3UONR5HW.js → chunk-XYQVVW4R.js} +1 -1
  109. package/dist/bundle/{chunk-RMX2WPWS.js → chunk-Y7XJA4EW.js} +4 -4
  110. package/dist/bundle/{chunk-Z3CPZ4I4.js → chunk-YIIGF643.js} +306 -306
  111. package/dist/bundle/{chunk-PMO2Z6DQ.js → chunk-YISJJNXT.js} +3 -3
  112. package/dist/bundle/{chunk-UX4JZMA4.js → chunk-YJKXCINQ.js} +28 -3
  113. package/dist/bundle/{chunk-U5N2PKKM.js → chunk-YNWBRDBX.js} +2 -2
  114. package/dist/bundle/{chunk-ZPZT46O6.js → chunk-YRDQ54G5.js} +33 -10
  115. package/dist/bundle/{chunk-VN7TKMOW.js → chunk-YUDVRFXN.js} +1 -1
  116. package/dist/bundle/{chunk-6I4C4ZFT.js → chunk-ZFRYFDZN.js} +2 -2
  117. package/dist/bundle/{chunk-IQWBGMCR.js → chunk-ZLYICF6A.js} +4 -4
  118. package/dist/bundle/{chunk-G5VH4WUF.js → chunk-ZMAPXIGC.js} +2 -2
  119. package/dist/bundle/{chunk-6MDL2LZA.js → chunk-ZNAX7GUV.js} +8 -8
  120. package/dist/bundle/{cli-QNBYDOKV.js → cli-WTGAGSXV.js} +142 -97
  121. package/dist/bundle/command-contract-3IKVWPDL.js +45 -0
  122. package/dist/bundle/{command-server-entry-WMA4SWJ5.js → command-server-entry-47CAYN3E.js} +35 -35
  123. package/dist/bundle/config-ZOGOKGTU.js +116 -0
  124. package/dist/bundle/{decode-7PXUXNIP.js → decode-2G7QS5IQ.js} +6 -6
  125. package/dist/bundle/{dispatch-AWDROXWN.js → dispatch-ZAP3KBVJ.js} +9 -9
  126. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  127. package/dist/bundle/{dist-TSBH4FOU.js → dist-WY6R3WH7.js} +21 -21
  128. package/dist/bundle/{echarts-WIDIUEO6.js → echarts-YRRVLEX3.js} +2 -2
  129. package/dist/bundle/{embed-EIRVQF5E.js → embed-B5H3OW2O.js} +7 -7
  130. package/dist/bundle/{embedder-MXPM6OXK.js → embedder-3O73SP6Y.js} +10 -10
  131. package/dist/bundle/{failure-JZW73RP7.js → failure-EYGW7JMC.js} +3 -3
  132. package/dist/bundle/first-run-MPKMDEMA.js +29 -0
  133. package/dist/bundle/first-screen-AIAAC3KF.js +45 -0
  134. package/dist/bundle/{folders-TGFOE7DY.js → folders-4CGFWM6H.js} +5 -5
  135. package/dist/bundle/{instructions-D5LNE6NJ.js → instructions-AG7SRWTR.js} +1 -1
  136. package/dist/bundle/{main-OHW5Z56X.js → main-DOGY6FJP.js} +24 -24
  137. package/dist/bundle/{mcp-RGNRW77S.js → mcp-YGOAUNC3.js} +2 -2
  138. package/dist/bundle/meeting-combined-YKPKTKGA.js +26 -0
  139. package/dist/bundle/meeting-model-HTXSGHNM.js +26 -0
  140. package/dist/bundle/{meeting-semantic-FYOVY4S2.js → meeting-semantic-FOEBWV3P.js} +8 -8
  141. package/dist/bundle/{meetings-WI4SXPBJ.js → meetings-PVE4C2NF.js} +7 -7
  142. package/dist/bundle/{node-UEWUFR7N.js → node-GJQYN4FT.js} +2 -2
  143. package/dist/bundle/{node-sqlite-FJWKJHYU.js → node-sqlite-MLRYKVCQ.js} +8 -8
  144. package/dist/bundle/oauth-AC55C6SG.js +20 -0
  145. package/dist/bundle/{open-EFYTWUGC.js → open-3LGTYP6M.js} +6 -6
  146. package/dist/bundle/openai-E2MSLVIX.js +28 -0
  147. package/dist/bundle/{output-file-J4SU6X4I.js → output-file-FXMTTLOI.js} +6 -6
  148. package/dist/bundle/{process-U5PLNIDC.js → process-MEKCZMX3.js} +1 -1
  149. package/dist/bundle/{program-3JICCSA6.js → program-E5BSSIGY.js} +164 -155
  150. package/dist/bundle/{prompt-YPDMSOKC.js → prompt-AIA6QSZK.js} +6 -6
  151. package/dist/bundle/{recognize-Z2SSWUKH.js → recognize-M57VNTEV.js} +5 -5
  152. package/dist/bundle/{remote-R5HMDHOG.js → remote-3OTENZ7Z.js} +11 -11
  153. package/dist/bundle/{rerank-6NGBEMQ2.js → rerank-P5WHDFDU.js} +8 -8
  154. package/dist/bundle/run-log-EOQ4EQDS.js +143 -0
  155. package/dist/bundle/{serve-CU3RMWU7.js → serve-BRLC2QVV.js} +11 -11
  156. package/dist/bundle/{server-SOQSVX2Q.js → server-25NF7DMS.js} +80 -69
  157. package/dist/bundle/server-EW2RL2EL.js +93 -0
  158. package/dist/bundle/{services-LROZ3RDT.js → services-MJE43OGD.js} +54 -52
  159. package/dist/bundle/{speech-AS77HFIF.js → speech-4AVCWTQH.js} +28 -28
  160. package/dist/bundle/{sqlite-runtime-U25NS6BK.js → sqlite-runtime-U4TQXWMC.js} +7 -7
  161. package/dist/bundle/{state-CPEVKK66.js → state-GNUGVMY7.js} +7 -7
  162. package/dist/bundle/{store-6CHRMJM7.js → store-KBFZVQWF.js} +31 -24
  163. package/dist/bundle/{store-QKHCZOYR.js → store-MHVBFUBB.js} +27 -26
  164. package/dist/bundle/store-connection-SKRUAI4L.js +109 -0
  165. package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +81 -0
  166. package/dist/bundle/{streaming-VDJOYGMO.js → streaming-6F7AFEHD.js} +7 -7
  167. package/dist/bundle/surface-DWEWB5RG.js +79 -0
  168. package/dist/bundle/{tokens-JBN2OHQB.js → tokens-BB4MQBLH.js} +11 -10
  169. package/dist/bundle/zm.js +9 -9
  170. package/dist/bundle/{zoom-app-Q4IKYNG3.js → zoom-app-YTGOZ2FS.js} +8 -8
  171. package/dist/commands.d.ts +1 -0
  172. package/dist/commands.d.ts.map +1 -1
  173. package/dist/commands.js +8 -2
  174. package/dist/commands.js.map +1 -1
  175. package/dist/setup-commands.d.ts +1 -1
  176. package/dist/setup-commands.d.ts.map +1 -1
  177. package/dist/setup-commands.js +31 -5
  178. package/dist/setup-commands.js.map +1 -1
  179. package/dist/version.d.ts +1 -1
  180. package/dist/version.js +1 -1
  181. package/dist/zoom-api/types.d.ts +5 -0
  182. package/dist/zoom-api/types.d.ts.map +1 -1
  183. package/package.json +3 -3
  184. package/dist/bundle/answer-policy-7PYXHK2I.js +0 -122
  185. package/dist/bundle/chunk-3BTRJYIT.js +0 -729
  186. package/dist/bundle/command-contract-CT6MV6YG.js +0 -45
  187. package/dist/bundle/config-ZFQFDEVL.js +0 -109
  188. package/dist/bundle/first-run-K6EHRAIM.js +0 -29
  189. package/dist/bundle/first-screen-C6AF4KT4.js +0 -45
  190. package/dist/bundle/meeting-combined-3OKFXZNA.js +0 -26
  191. package/dist/bundle/meeting-model-4XNF725D.js +0 -26
  192. package/dist/bundle/oauth-KOONTGLW.js +0 -20
  193. package/dist/bundle/openai-6Y2JRDNY.js +0 -28
  194. package/dist/bundle/run-log-LG3TI3WI.js +0 -136
  195. package/dist/bundle/server-X7JYRMKX.js +0 -85
  196. package/dist/bundle/store-connection-FCDVOPWB.js +0 -102
  197. package/dist/bundle/store-maintenance-command-6HVOAHOZ.js +0 -77
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-MH4L5LL6.js";
8
+ } from "./chunk-Q26UFIH4.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
@@ -0,0 +1,353 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ AUDIT_MIN_SCORE
5
+ } from "./chunk-MBBR7QHI.js";
6
+ import {
7
+ LIST_QUERY_GUIDE,
8
+ nativeTerms
9
+ } from "./chunk-QNG27PGH.js";
10
+ import {
11
+ DEFAULT_CONFIG,
12
+ environmentOf,
13
+ itemOf,
14
+ listOf,
15
+ nextStep,
16
+ renderAnswer,
17
+ snakeKeys,
18
+ withAgentLevels
19
+ } from "./chunk-EPASOAEI.js";
20
+ import {
21
+ formatReference
22
+ } from "./chunk-TI4WJOEX.js";
23
+ import {
24
+ queryError
25
+ } from "./chunk-YIIGF643.js";
26
+ import {
27
+ CliError
28
+ } from "./chunk-UHMJSSQO.js";
29
+ import {
30
+ __name
31
+ } from "./chunk-ZVVMGPBJ.js";
32
+
33
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/paging.js
34
+ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
35
+ if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
36
+ throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
37
+ return Number(value);
38
+ }, "positiveCount");
39
+ var configuredLimit = /* @__PURE__ */ __name((command, most = Number.POSITIVE_INFINITY) => {
40
+ const { resolveSettings, env } = environmentOf(command);
41
+ const { limit: _typed, ...flags } = command.optsWithGlobals();
42
+ const configured = resolveSettings?.(flags, { needsProfile: false, ...env ? { env } : {} }).limit ?? DEFAULT_CONFIG.defaults.limit;
43
+ return Math.min(configured, most);
44
+ }, "configuredLimit");
45
+ var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
46
+ var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
47
+ var pagingOf = /* @__PURE__ */ __name((command) => {
48
+ const environment = environmentOf(command);
49
+ const flags = command.optsWithGlobals();
50
+ if (!environment.resolveSettings)
51
+ return { limit: flags.limit ?? DEFAULT_CONFIG.defaults.limit, page: flags.page ?? 1 };
52
+ const { limit, page } = environment.resolveSettings(withAgentLevels(command, command.optsWithGlobals()), {
53
+ env: environment.env ?? process.env,
54
+ needsProfile: false,
55
+ readOnly: true
56
+ });
57
+ return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
58
+ }, "pagingOf");
59
+
60
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
61
+ var defined = /* @__PURE__ */ __name((record) => Object.fromEntries(Object.entries(record).filter(([, value]) => value !== void 0)), "defined");
62
+ var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
63
+ var settingsOf = /* @__PURE__ */ __name((settings) => defined({
64
+ all_can_pin: settings.allCanPin,
65
+ only_admins_add: settings.onlyAdminsAdd,
66
+ only_admins_call: settings.onlyAdminsCall,
67
+ only_owner_edits_info: settings.onlyOwnerEditsInfo,
68
+ members_see_link: settings.membersSeeLink,
69
+ join_approval: settings.joinApproval,
70
+ only_admins_send: settings.onlyAdminsSend,
71
+ only_admins_edit_info: settings.onlyAdminsEditInfo,
72
+ disappearing_seconds: settings.disappearingSeconds
73
+ }), "settingsOf");
74
+ var chatAnswer = /* @__PURE__ */ __name((account, chat) => defined({
75
+ ref: chatRef(account, chat.id),
76
+ id: chat.id,
77
+ title: chat.title,
78
+ kind: chat.kind,
79
+ unread_count: chat.unreadCount,
80
+ unread_mentions: chat.unreadMentions,
81
+ last_message_at: chat.lastMessageAt,
82
+ participants_count: chat.participantsCount,
83
+ muted: chat.muted,
84
+ muted_until: chat.mutedUntil ?? void 0,
85
+ archived: chat.archived,
86
+ marked_unread: chat.markedUnread,
87
+ membership_state: chat.membershipState,
88
+ parent_chat_id: chat.parentChatId ?? void 0,
89
+ scope: chat.scope,
90
+ provider_metadata: chat.providerMetadata,
91
+ description: chat.description,
92
+ invite_link: chat.link,
93
+ settings: chat.settings ? settingsOf(chat.settings) : void 0,
94
+ members: chat.members?.map(memberAnswer)
95
+ }), "chatAnswer");
96
+ var memberAnswer = /* @__PURE__ */ __name((member) => {
97
+ const group = member;
98
+ return defined({
99
+ id: member.id,
100
+ name: member.name,
101
+ username: member.username,
102
+ role: group.role,
103
+ last_seen_at: group.lastSeenAt,
104
+ registered_at: group.registeredAt,
105
+ joined_at: group.joinedAt,
106
+ invited_by: group.invitedBy,
107
+ is_bot: group.isBot,
108
+ deleted: group.deleted,
109
+ flagged: group.flagged,
110
+ has_photo: group.hasPhoto,
111
+ score: group.score,
112
+ reasons: group.reasons,
113
+ check: group.check ? snakeKeys(group.check) : void 0
114
+ });
115
+ }, "memberAnswer");
116
+ var contactRef = /* @__PURE__ */ __name((provider, id) => formatReference({ type: "contact", provider, id }), "contactRef");
117
+ var contactAnswer = /* @__PURE__ */ __name((account, contact) => {
118
+ const card = contact;
119
+ return defined({
120
+ ref: contactRef(account.provider, contact.id),
121
+ id: contact.id,
122
+ name: contact.name,
123
+ username: contact.username,
124
+ alias: contact.alias,
125
+ display_name: contact.displayName,
126
+ description: contact.description,
127
+ last_messaged_at: contact.lastMessagedAt,
128
+ chats: card.chats?.map((chat) => ({
129
+ ref: chatRef(account, chat.id),
130
+ id: chat.id,
131
+ title: chat.title,
132
+ kind: chat.kind,
133
+ last_message_at: chat.lastMessageAt
134
+ })),
135
+ notes: card.notes?.map(({ id, text, revision, createdAt, updatedAt }) => ({
136
+ id,
137
+ text,
138
+ revision,
139
+ created_at: createdAt,
140
+ updated_at: updatedAt
141
+ }))
142
+ });
143
+ }, "contactAnswer");
144
+ var contactShown = /* @__PURE__ */ __name((account, card, profile) => {
145
+ const { id: _id, name: _name, bio, chats, ...facts } = profile;
146
+ const listed = new Map(card.chats.map((chat) => [chat.id, chat]));
147
+ const active = new Set(chats.map(({ id }) => id));
148
+ const shared = [
149
+ ...chats.map((chat) => ({
150
+ ref: chatRef(account, chat.id),
151
+ id: chat.id,
152
+ title: chat.title,
153
+ kind: chat.kind,
154
+ last_message_at: listed.get(chat.id)?.lastMessageAt ?? chat.lastAt,
155
+ their_messages: chat.theirMessages,
156
+ first_at: chat.firstAt,
157
+ last_at: chat.lastAt,
158
+ complete: chat.complete
159
+ })),
160
+ ...card.chats.filter(({ id }) => !active.has(id)).map((chat) => ({
161
+ ref: chatRef(account, chat.id),
162
+ id: chat.id,
163
+ title: chat.title,
164
+ kind: chat.kind,
165
+ last_message_at: chat.lastMessageAt
166
+ }))
167
+ ];
168
+ const answer = contactAnswer(account, card);
169
+ return {
170
+ ...answer,
171
+ ...snakeKeys(facts),
172
+ description: answer.description ?? bio,
173
+ chats: shared
174
+ };
175
+ }, "contactShown");
176
+ var chatEventAnswer = /* @__PURE__ */ __name((chatId, event) => defined({
177
+ chat_id: chatId,
178
+ time: event.timestamp,
179
+ type: event.event,
180
+ message_id: event.messageId,
181
+ by: event.by,
182
+ people: event.people,
183
+ title: event.title
184
+ }), "chatEventAnswer");
185
+ var HISTORY_TYPES = { joined: "join", left: "leave", changed: "profile" };
186
+ var memberEventAnswer = /* @__PURE__ */ __name((chatId, event) => defined({
187
+ chat_id: chatId,
188
+ time: event.at,
189
+ type: HISTORY_TYPES[event.event],
190
+ by: event.invitedBy === void 0 ? void 0 : { id: event.invitedBy, name: null },
191
+ people: [{ id: event.id, name: event.name, username: event.username }],
192
+ before: event.before ? { name: event.before.name, username: event.before.username } : void 0
193
+ }), "memberEventAnswer");
194
+ var inviteLinkAnswer = /* @__PURE__ */ __name((link) => defined({
195
+ link: link.link,
196
+ approval: link.approval,
197
+ expires_at: link.expiresAt,
198
+ max_uses: link.maxUses,
199
+ primary: link.primary,
200
+ revoked: link.revoked,
201
+ pending_count: link.pending,
202
+ joined_count: link.joined
203
+ }), "inviteLinkAnswer");
204
+ var joinRequestAnswer = /* @__PURE__ */ __name((request) => defined({
205
+ person_id: request.person.id,
206
+ name: request.person.name,
207
+ username: request.person.username,
208
+ requested_at: request.requestedAt,
209
+ about: request.about
210
+ }), "joinRequestAnswer");
211
+ var pollVoteAnswer = /* @__PURE__ */ __name((vote) => ({
212
+ person_id: vote.person.id,
213
+ name: vote.person.name,
214
+ username: vote.person.username,
215
+ answers: vote.answers,
216
+ voted_at: vote.votedAt
217
+ }), "pollVoteAnswer");
218
+ var reactorAnswer = /* @__PURE__ */ __name((reactor) => ({
219
+ person: { id: reactor.person.id, name: reactor.person.name, username: reactor.person.username },
220
+ reaction: reactor.reaction,
221
+ reacted_at: reactor.reactedAt
222
+ }), "reactorAnswer");
223
+ var topicAnswer = /* @__PURE__ */ __name((topic) => defined({
224
+ id: topic.id,
225
+ title: topic.title,
226
+ closed: topic.closed,
227
+ pinned: topic.pinned,
228
+ hidden: topic.hidden,
229
+ unread_count: topic.unreadCount,
230
+ last_message_at: topic.lastMessageAt,
231
+ created_at: topic.createdAt,
232
+ untrusted: ["title"]
233
+ }), "topicAnswer");
234
+ var folderAnswer = /* @__PURE__ */ __name((folder) => {
235
+ const shown = "chats" in folder ? folder : void 0;
236
+ const listed = shown ? void 0 : folder;
237
+ return defined({
238
+ id: folder.id,
239
+ title: folder.title,
240
+ chat_ids: listed ? listed.chatIds : shown?.chats.map((chat) => chat.id) ?? [],
241
+ emoji: folder.emoji,
242
+ include: folder.include,
243
+ skip: folder.skip,
244
+ excluded_chat_ids: listed?.excludedChatIds ?? shown?.excluded.map((chat) => chat.id),
245
+ pinned_chat_ids: listed?.pinnedChatIds ?? shown?.pinned.map((chat) => chat.id),
246
+ chats: shown?.chats,
247
+ pinned_chats: shown?.pinned,
248
+ excluded_chats: shown?.excluded
249
+ });
250
+ }, "folderAnswer");
251
+ var lines = /* @__PURE__ */ __name((line) => (body) => (body.items ?? (body.item === void 0 ? [] : [body.item])).map((item) => `${line(item).trimEnd()}
252
+ `).join(""), "lines");
253
+ var pageOf = /* @__PURE__ */ __name(({ limit, page, all }, { items, hasMore }) => all ? { limit: Math.max(1, items.length), has_more: false, page: 1 } : { limit, has_more: hasMore, page }, "pageOf");
254
+ var wholeList = /* @__PURE__ */ __name((command, items, extra = {}) => listOf(command, { items, limit: Math.max(1, items.length), has_more: false, ...extra }), "wholeList");
255
+ var chatShown = /* @__PURE__ */ __name((account, card) => {
256
+ const listed = card.members?.length;
257
+ const short = listed !== void 0 && card.participantsCount !== null && listed < card.participantsCount;
258
+ return itemOf(chatAnswer(account, card), short ? {
259
+ missing: [
260
+ {
261
+ field: "members",
262
+ why: `${listed} listed; the chat reports ${card.participantsCount} \u2014 the list may omit your account or be partial`,
263
+ step: "chats.members"
264
+ }
265
+ ],
266
+ next: [nextStep("chats.members", { args: { chat: card.id } })]
267
+ } : {});
268
+ }, "chatShown");
269
+ var scoreFloor = /* @__PURE__ */ __name((ast) => {
270
+ const term = nativeTerms(ast, "chats members check").get("score");
271
+ if (!term)
272
+ return AUDIT_MIN_SCORE;
273
+ const upper = term.operator === "range" ? term.upper ?? "*" : term.value;
274
+ if (term.operator !== "range" || upper !== "*")
275
+ queryError("query.unsupported-operator", term.span, "score takes a lower bound: score>=3", {
276
+ command: "chats members check",
277
+ guide: LIST_QUERY_GUIDE
278
+ });
279
+ const floor = Number(term.value);
280
+ return Math.ceil(term.lower_inclusive === false ? floor + 1 : floor);
281
+ }, "scoreFloor");
282
+ var auditAnswer = /* @__PURE__ */ __name((audit) => wholeList("chats members check", audit.items.map(memberAnswer), {
283
+ ...audit.more ? { meta: { truncated: true } } : {},
284
+ ...audit.completeness && audit.completeness.state !== "complete" ? {
285
+ missing: [
286
+ {
287
+ field: "reasons",
288
+ why: "never_wrote counts only stored messages, and the store does not hold the chat whole",
289
+ ...audit.fetch ? { step: "messages.sync" } : {}
290
+ }
291
+ ],
292
+ ...audit.fetch ? { next: [nextStep("messages.sync", { args: { chat: audit.chatId } })] } : {}
293
+ } : {}
294
+ }), "auditAnswer");
295
+ var renderItem = /* @__PURE__ */ __name((command, output, value, next = []) => renderAnswer(command, output, itemOf(snakeKeys(value), { next })), "renderItem");
296
+ var withPage = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")), "withPage");
297
+ var documentLinkAnswer = /* @__PURE__ */ __name(({ url, documentId, title, inStore, locator, sentAt, sender }) => ({
298
+ url,
299
+ document_id: documentId,
300
+ title,
301
+ in_store: inStore,
302
+ ref: locator,
303
+ sent_at: sentAt,
304
+ sender
305
+ }), "documentLinkAnswer");
306
+ var accountAnswer = /* @__PURE__ */ __name((provider, { id, name, username, phone }) => ({
307
+ provider,
308
+ id,
309
+ name,
310
+ username,
311
+ ...phone === void 0 ? {} : { phone }
312
+ }), "accountAnswer");
313
+ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location, lastActiveAt, createdAt }) => ({
314
+ current,
315
+ client,
316
+ device,
317
+ location,
318
+ last_active_at: lastActiveAt,
319
+ ...createdAt === void 0 ? {} : { created_at: createdAt }
320
+ }), "sessionAnswer");
321
+
322
+ export {
323
+ positiveCount,
324
+ configuredLimit,
325
+ withPaging,
326
+ window,
327
+ pagingOf,
328
+ chatRef,
329
+ chatAnswer,
330
+ memberAnswer,
331
+ contactRef,
332
+ contactAnswer,
333
+ contactShown,
334
+ chatEventAnswer,
335
+ memberEventAnswer,
336
+ inviteLinkAnswer,
337
+ joinRequestAnswer,
338
+ pollVoteAnswer,
339
+ reactorAnswer,
340
+ topicAnswer,
341
+ folderAnswer,
342
+ lines,
343
+ pageOf,
344
+ wholeList,
345
+ chatShown,
346
+ scoreFloor,
347
+ auditAnswer,
348
+ renderItem,
349
+ withPage,
350
+ documentLinkAnswer,
351
+ accountAnswer,
352
+ sessionAnswer
353
+ };
@@ -5,15 +5,15 @@ import {
5
5
  } from "./chunk-Y5E2WNWB.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-ST3ZB7LS.js";
8
+ } from "./chunk-UHMJSSQO.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/speech/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
@@ -2,29 +2,29 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-ST3ZB7LS.js";
5
+ } from "./chunk-UHMJSSQO.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/lock.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/lock.js
11
11
  import { mkdir as mkdir2 } from "node:fs/promises";
12
12
  import { basename, dirname } from "node:path";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
15
15
  import { randomUUID } from "node:crypto";
16
16
  import { lstat as lstat3, mkdir, open as open2, realpath as realpath2, rmdir as rmdir2, unlink as unlink3 } from "node:fs/promises";
17
17
  import { hostname as hostname2 } from "node:os";
18
18
  import { join as join2 } from "node:path";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
21
21
  import { lstat as lstat2, readdir, realpath, unlink } from "node:fs/promises";
22
22
  import { join } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
25
25
  import { hostname } from "node:os";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
28
28
  import { constants } from "node:fs";
29
29
  import { lstat, open } from "node:fs/promises";
30
30
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -90,7 +90,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
90
90
  }
91
91
  }, "syncDirectory");
92
92
 
93
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
93
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
94
94
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
95
95
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
96
96
  signal?.throwIfAborted();
@@ -134,7 +134,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
134
134
  }
135
135
  }, "leaseOwnerStatus");
136
136
 
137
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
138
138
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
139
139
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
140
140
  options.signal?.throwIfAborted();
@@ -193,7 +193,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
193
193
  return { inspect, recover };
194
194
  }, "leaseInspection");
195
195
 
196
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
196
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
197
197
  import { rmdir, unlink as unlink2 } from "node:fs/promises";
198
198
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
199
199
  let releasing;
@@ -218,7 +218,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
218
218
  };
219
219
  }, "ownedNativeLease");
220
220
 
221
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
221
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
222
222
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
223
223
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
224
224
  const { markerDirectory, legacyMarker } = layout;
@@ -289,7 +289,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  };
290
290
  }, "nativeWriterLeaseStore");
291
291
 
292
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/lock.js
292
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/lock.js
293
293
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
294
294
  const folder = dirname(path);
295
295
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -304,7 +304,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
304
304
  });
305
305
  }, "acquireLock");
306
306
 
307
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
307
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
308
308
  import { randomUUID as randomUUID2 } from "node:crypto";
309
309
  import { constants as constants2 } from "node:fs";
310
310
  import { link, open as open3, realpath as realpath3, rename, unlink as unlink4 } from "node:fs/promises";
@@ -342,7 +342,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
342
342
  }
343
343
  }, "writeFileAtomic");
344
344
 
345
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
345
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
346
346
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
347
347
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
348
348
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -371,7 +371,7 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
371
371
  }
372
372
  }, "readBoundedUtf8File");
373
373
 
374
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/safe-name.js
374
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/safe-name.js
375
375
  import { basename as basename3, extname } from "node:path";
376
376
  var MOST_NAME_BYTES = 200;
377
377
  var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
5
  executableOnPath
6
- } from "./chunk-CWXOXIWS.js";
6
+ } from "./chunk-CFQQTDSA.js";
7
7
  import {
8
8
  require_cross_spawn
9
9
  } from "./chunk-D72URWJE.js";
10
10
  import {
11
11
  loadConfigFile,
12
12
  saveConfigFile
13
- } from "./chunk-BNEJKGG7.js";
13
+ } from "./chunk-N5ROXGY4.js";
14
14
  import {
15
15
  number,
16
16
  object,
17
17
  optional,
18
18
  string
19
- } from "./chunk-ZPZT46O6.js";
19
+ } from "./chunk-YRDQ54G5.js";
20
20
  import {
21
21
  __name,
22
22
  __toESM
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // node_modules/.pnpm/@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
25
+ // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
26
26
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
27
27
  import { existsSync } from "node:fs";
28
28
  var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {