@wirecat/zoom-cli 0.67.0 → 0.69.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 (180) hide show
  1. package/dist/answer-entities.d.ts +18 -0
  2. package/dist/answer-entities.d.ts.map +1 -1
  3. package/dist/answer-entities.js +12 -0
  4. package/dist/answer-entities.js.map +1 -1
  5. package/dist/answer-policy.d.ts.map +1 -1
  6. package/dist/answer-policy.js +2 -1
  7. package/dist/answer-policy.js.map +1 -1
  8. package/dist/bin/zm.js +2 -2
  9. package/dist/bundle/{all-profiles-SEW2VL76.js → all-profiles-ZQWPCJEK.js} +12 -12
  10. package/dist/bundle/answer-policy-VBDYLUXI.js +104 -0
  11. package/dist/bundle/{anthropic-FSNASJML.js → anthropic-7FUQ2HYJ.js} +7 -7
  12. package/dist/bundle/{app-server-EVSRYJ3H.js → app-server-DNPE2EQB.js} +61 -58
  13. package/dist/bundle/{bun-DACL5SVO.js → bun-ZVQFCFCC.js} +2 -2
  14. package/dist/bundle/{bun-sqlite-HQ2KOXSI.js → bun-sqlite-EB2UMUPJ.js} +6 -6
  15. package/dist/bundle/{chunk-4ZR5DJ26.js → chunk-2SYWVIQJ.js} +3 -3
  16. package/dist/bundle/chunk-37B7A4RP.js +66 -0
  17. package/dist/bundle/{chunk-WHQ4ZCJI.js → chunk-3TPRYZUW.js} +214 -86
  18. package/dist/bundle/{chunk-L6CAUVMU.js → chunk-4APZQYCH.js} +5 -5
  19. package/dist/bundle/{chunk-ASCHAVNW.js → chunk-52DCABMU.js} +27 -27
  20. package/dist/bundle/{chunk-LM26DJOK.js → chunk-5GOE6PQK.js} +6 -6
  21. package/dist/bundle/{chunk-QX2MAT6I.js → chunk-5H6VTEEC.js} +3 -3
  22. package/dist/bundle/{chunk-V33VGWT3.js → chunk-5ZF6QVMC.js} +16 -6
  23. package/dist/bundle/{chunk-GP4NSYDU.js → chunk-5ZJXKASF.js} +254 -13
  24. package/dist/bundle/chunk-6AMMTXEA.js +12473 -0
  25. package/dist/bundle/{chunk-Q65SDEFN.js → chunk-6KMTQX3D.js} +2 -2
  26. package/dist/bundle/{chunk-TBRG2DPE.js → chunk-6N2D6JGX.js} +2 -2
  27. package/dist/bundle/{chunk-X67YD3QI.js → chunk-6TICX3MN.js} +2 -2
  28. package/dist/bundle/{chunk-4GCKDO2H.js → chunk-7AUP2WT3.js} +3 -3
  29. package/dist/bundle/{chunk-JVCHGI7W.js → chunk-B5D7NZI7.js} +1 -1
  30. package/dist/bundle/{chunk-AAZFLJSH.js → chunk-B6JMVB6R.js} +10 -10
  31. package/dist/bundle/{chunk-CRLBTNC4.js → chunk-BL36NSV5.js} +3 -3
  32. package/dist/bundle/{chunk-4UVT2QCO.js → chunk-BOAMDYLY.js} +4 -4
  33. package/dist/bundle/{chunk-VQTAU4DV.js → chunk-C6TEYKXV.js} +8 -8
  34. package/dist/bundle/{chunk-6AJDVJVZ.js → chunk-CKK6JOC4.js} +2 -2
  35. package/dist/bundle/{chunk-4U2555EQ.js → chunk-CUZHKYC2.js} +30 -28
  36. package/dist/bundle/{chunk-7LLUUXJB.js → chunk-DHD25JII.js} +1 -1
  37. package/dist/bundle/{chunk-RYKG6AEH.js → chunk-EPPSMCEV.js} +4 -2
  38. package/dist/bundle/chunk-F5DYBWH7.js +299 -0
  39. package/dist/bundle/{chunk-KIJLM5UL.js → chunk-FBLUKCIR.js} +1 -1
  40. package/dist/bundle/{chunk-WZ5XK74U.js → chunk-FEM2JQN2.js} +1 -1
  41. package/dist/bundle/{chunk-SSXCOUP3.js → chunk-G6IX2MD2.js} +500 -227
  42. package/dist/bundle/{chunk-OTMGAKUM.js → chunk-GR3QDHBU.js} +7 -7
  43. package/dist/bundle/{chunk-QEI55M2F.js → chunk-GXDOTUUO.js} +10 -10
  44. package/dist/bundle/chunk-H3MFBYTQ.js +261 -0
  45. package/dist/bundle/{chunk-DFUPETW7.js → chunk-HC56J5LB.js} +135 -76
  46. package/dist/bundle/{chunk-D6OXI2NV.js → chunk-HSI7YOYK.js} +229 -67
  47. package/dist/bundle/{chunk-FGTPREAZ.js → chunk-HW5QTRFF.js} +35 -35
  48. package/dist/bundle/{chunk-VNIBTNV4.js → chunk-IEC4E65G.js} +2 -2
  49. package/dist/bundle/{chunk-EUPZSR2G.js → chunk-IPBZKUC3.js} +4 -4
  50. package/dist/bundle/{chunk-EQ7XRRKV.js → chunk-JHFP3Z5S.js} +11 -11
  51. package/dist/bundle/{chunk-3GO3KME7.js → chunk-JX5JJZC3.js} +3 -3
  52. package/dist/bundle/{chunk-7HAIM7GV.js → chunk-JZ4YOAHA.js} +963 -622
  53. package/dist/bundle/{chunk-B3KWAULD.js → chunk-KAPJQGHE.js} +2 -2
  54. package/dist/bundle/{chunk-T6CZWSHF.js → chunk-KNE6VFHZ.js} +21 -21
  55. package/dist/bundle/{chunk-I7SOXH64.js → chunk-KX5MZVPX.js} +66 -39
  56. package/dist/bundle/chunk-L62EJDNZ.js +64 -0
  57. package/dist/bundle/{chunk-EPDRF66S.js → chunk-LDRQ5NAP.js} +22 -14
  58. package/dist/bundle/{chunk-7VU5UGRR.js → chunk-LEA4BGK7.js} +16 -16
  59. package/dist/bundle/{chunk-ZMPTO2WB.js → chunk-LQX74VKG.js} +1 -1
  60. package/dist/bundle/{chunk-LKJXTACE.js → chunk-MJMVIFSC.js} +7 -7
  61. package/dist/bundle/{chunk-KWRSC6O6.js → chunk-MNOVYS43.js} +18 -4
  62. package/dist/bundle/{chunk-M43MBWJX.js → chunk-MOTKS7XG.js} +20741 -14882
  63. package/dist/bundle/{chunk-MWEOVTIF.js → chunk-MSDCZ6GT.js} +4 -4
  64. package/dist/bundle/{chunk-SOZVC3SV.js → chunk-MVDPZRFE.js} +1 -1
  65. package/dist/bundle/{chunk-NTZDM5SJ.js → chunk-NRRI37NJ.js} +9 -9
  66. package/dist/bundle/{chunk-BKY4XVB4.js → chunk-O7L44JK2.js} +2632 -1870
  67. package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-OE7EIP5L.js} +1 -1
  68. package/dist/bundle/{chunk-RAMPYIO2.js → chunk-OSBHEM2A.js} +11 -11
  69. package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
  70. package/dist/bundle/{chunk-DG4DWAU7.js → chunk-QLGG7S6F.js} +3 -3
  71. package/dist/bundle/{chunk-6UFWFKFH.js → chunk-QW5VPZEH.js} +2 -2
  72. package/dist/bundle/{chunk-C6UKW7JO.js → chunk-QXM7S3Y3.js} +6 -6
  73. package/dist/bundle/{chunk-ESFMHBHH.js → chunk-R2ULMWB4.js} +62 -53
  74. package/dist/bundle/{chunk-L6WUAGPN.js → chunk-R3JYPY3J.js} +3 -3
  75. package/dist/bundle/{chunk-2UW533HQ.js → chunk-RGJ7OWHU.js} +4 -4
  76. package/dist/bundle/{chunk-7K5TDTZY.js → chunk-RPQ3JOD3.js} +7 -7
  77. package/dist/bundle/{chunk-L643D4RJ.js → chunk-S2EAGDS7.js} +12 -12
  78. package/dist/bundle/{chunk-4KDZ22RA.js → chunk-SQT47CFW.js} +1 -1
  79. package/dist/bundle/{chunk-CLEZE65P.js → chunk-SZ3Z4ZNO.js} +1 -1
  80. package/dist/bundle/chunk-T5X4LGXE.js +380 -0
  81. package/dist/bundle/{chunk-SMVO5R3T.js → chunk-TFFEFEG2.js} +39 -26
  82. package/dist/bundle/{chunk-LFQ73UFK.js → chunk-TKXLWFM2.js} +3 -3
  83. package/dist/bundle/{chunk-SCFFCIIP.js → chunk-TN77LX6W.js} +2 -2
  84. package/dist/bundle/{chunk-VFIEYRYD.js → chunk-TWIC6JJG.js} +8 -8
  85. package/dist/bundle/{chunk-FXQPK742.js → chunk-UEZ6URJR.js} +29 -15
  86. package/dist/bundle/{chunk-OZEYFJX2.js → chunk-V4MM6GST.js} +1 -1
  87. package/dist/bundle/chunk-V74QFMSL.js +31 -0
  88. package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
  89. package/dist/bundle/{chunk-6TZF2JP7.js → chunk-WY4NYPPS.js} +13 -13
  90. package/dist/bundle/{chunk-B5Z4XPVS.js → chunk-XITUFTON.js} +2 -2
  91. package/dist/bundle/{chunk-FWU3ZYHE.js → chunk-XJBYGMZ4.js} +776 -134
  92. package/dist/bundle/{chunk-KANH7GBB.js → chunk-XRZDYWF6.js} +2 -2
  93. package/dist/bundle/{chunk-ZRMZBMOF.js → chunk-Z6TTGTMU.js} +156 -9
  94. package/dist/bundle/{chunk-IFDO3YPJ.js → chunk-ZRHMB3LQ.js} +1 -1
  95. package/dist/bundle/{cli-YUATSOLA.js → cli-P3BZUE6S.js} +106 -64
  96. package/dist/bundle/command-contract-TOLB32NJ.js +41 -0
  97. package/dist/bundle/config-4KLLIADY.js +90 -0
  98. package/dist/bundle/{decode-IL44LNC3.js → decode-QWOQXM7M.js} +6 -6
  99. package/dist/bundle/{dispatch-3BGIXSJR.js → dispatch-5MGDLOK4.js} +9 -9
  100. package/dist/bundle/{dist-3W27UQ2S.js → dist-OUE4MF37.js} +108 -28
  101. package/dist/bundle/{echarts-CO4D26JF.js → echarts-65IMPY43.js} +2 -2
  102. package/dist/bundle/{embed-XH2X4DFM.js → embed-4IULBCKL.js} +7 -7
  103. package/dist/bundle/{embedder-WTFWDXBJ.js → embedder-JW4W6IZI.js} +10 -10
  104. package/dist/bundle/{failure-HTIS3NLS.js → failure-CR64C4XA.js} +3 -3
  105. package/dist/bundle/{first-run-5RBH7FDO.js → first-run-CH6C674R.js} +12 -12
  106. package/dist/bundle/first-screen-OCAW5ZN6.js +39 -0
  107. package/dist/bundle/{folders-F4DNQPIY.js → folders-VU4IN35Y.js} +5 -5
  108. package/dist/bundle/{instructions-EPPBL6TT.js → instructions-G5QIH2TM.js} +1 -1
  109. package/dist/bundle/{main-LVQTCDZS.js → main-O4ZJIEWP.js} +21 -23
  110. package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
  111. package/dist/bundle/{meetings-BMELXRTR.js → meetings-77CCAVYD.js} +13 -7
  112. package/dist/bundle/{node-CQVMWVIG.js → node-E6VQHU4Y.js} +2 -2
  113. package/dist/bundle/{node-sqlite-QQEX7LZT.js → node-sqlite-RJZ4PGLD.js} +7 -7
  114. package/dist/bundle/{oauth-AYGX7CQS.js → oauth-F4JKNRW4.js} +8 -8
  115. package/dist/bundle/{open-MIL2TOT6.js → open-NYOGMIAA.js} +6 -6
  116. package/dist/bundle/openai-5U6EQTFQ.js +25 -0
  117. package/dist/bundle/{output-file-4XADZPYH.js → output-file-6COFGPUL.js} +6 -6
  118. package/dist/bundle/{process-NJVQK6GB.js → process-OBWUKBMX.js} +1 -1
  119. package/dist/bundle/{program-WUYRS6H7.js → program-MU7DEJTO.js} +115 -187
  120. package/dist/bundle/{prompt-J4QPFLEA.js → prompt-2QWQTHWT.js} +6 -6
  121. package/dist/bundle/{recognize-OLJZVNWW.js → recognize-SNUNTUC3.js} +5 -5
  122. package/dist/bundle/{remote-JPUXNYLV.js → remote-2CTCIQGF.js} +8 -8
  123. package/dist/bundle/{rerank-XVV3X5TT.js → rerank-XDA7NJNH.js} +8 -8
  124. package/dist/bundle/{run-log-DJXBEVS5.js → run-log-NSG3DJVX.js} +59 -59
  125. package/dist/bundle/{serve-NYYUO3MR.js → serve-TWQFHOV2.js} +10 -10
  126. package/dist/bundle/{server-4Z5E4YTT.js → server-RIQ6HMH2.js} +47 -47
  127. package/dist/bundle/server-XO6XQQTJ.js +72 -0
  128. package/dist/bundle/{services-EKWM76HP.js → services-NKZQJQIV.js} +49 -33
  129. package/dist/bundle/{speech-WFJ44ACJ.js → speech-ZOB76SXA.js} +14 -14
  130. package/dist/bundle/{state-VIRCT4VW.js → state-7YYEIXQ5.js} +7 -7
  131. package/dist/bundle/{store-ZTDZ6UY5.js → store-E6RTSSNR.js} +29 -18
  132. package/dist/bundle/{store-2Q4GEZJS.js → store-OX4HRBLO.js} +80 -29
  133. package/dist/bundle/store-connection-55QPNUDS.js +83 -0
  134. package/dist/bundle/store-maintenance-command-Q5MSU6OK.js +62 -0
  135. package/dist/bundle/{streaming-7BPKIGAS.js → streaming-O53PIORL.js} +7 -7
  136. package/dist/bundle/{tokens-CQHMMKNX.js → tokens-QKNEP2GJ.js} +7 -7
  137. package/dist/bundle/zm.js +9 -10
  138. package/dist/bundle/zoom-app-TSI2MGVK.js +41 -0
  139. package/dist/commands.d.ts.map +1 -1
  140. package/dist/commands.js +1 -0
  141. package/dist/commands.js.map +1 -1
  142. package/dist/config.d.ts.map +1 -1
  143. package/dist/config.js +2 -3
  144. package/dist/config.js.map +1 -1
  145. package/dist/identity.d.ts +1 -0
  146. package/dist/identity.d.ts.map +1 -1
  147. package/dist/identity.js +11 -0
  148. package/dist/identity.js.map +1 -1
  149. package/dist/program-bindings.d.ts.map +1 -1
  150. package/dist/program-bindings.js +7 -2
  151. package/dist/program-bindings.js.map +1 -1
  152. package/dist/setup-commands.d.ts +6 -0
  153. package/dist/setup-commands.d.ts.map +1 -1
  154. package/dist/setup-commands.js +24 -9
  155. package/dist/setup-commands.js.map +1 -1
  156. package/dist/version.d.ts +1 -1
  157. package/dist/version.js +1 -1
  158. package/dist/zoom-app.d.ts +32 -0
  159. package/dist/zoom-app.d.ts.map +1 -1
  160. package/dist/zoom-app.js +61 -0
  161. package/dist/zoom-app.js.map +1 -1
  162. package/package.json +3 -3
  163. package/dist/bundle/answer-policy-5OYUL6UF.js +0 -103
  164. package/dist/bundle/chunk-3ZIHUSMM.js +0 -22
  165. package/dist/bundle/chunk-54RTMQL6.js +0 -132
  166. package/dist/bundle/chunk-6VFORXL3.js +0 -101
  167. package/dist/bundle/chunk-D4KBD63W.js +0 -19
  168. package/dist/bundle/chunk-J3ZBEWQY.js +0 -880
  169. package/dist/bundle/chunk-SXFODCYK.js +0 -9
  170. package/dist/bundle/chunk-YRNZT4GQ.js +0 -176
  171. package/dist/bundle/chunk-Z3WXI4DK.js +0 -31
  172. package/dist/bundle/command-contract-UWHY55UE.js +0 -41
  173. package/dist/bundle/config-TGF6E6ZD.js +0 -89
  174. package/dist/bundle/first-screen-PGFIXJAX.js +0 -39
  175. package/dist/bundle/openai-7QZZXQW5.js +0 -25
  176. package/dist/bundle/server-VW5UVCH7.js +0 -72
  177. package/dist/bundle/store-connection-FKVVQLEF.js +0 -83
  178. package/dist/bundle/store-maintenance-command-AU73UVUQ.js +0 -62
  179. package/dist/bundle/zoom-app-OEKFMJS6.js +0 -25
  180. /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-VOXIGICJ.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-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
8
8
  var CONTROL = (
9
9
  // biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
10
10
  /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
@@ -3,28 +3,28 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  envName,
5
5
  readOnlyLockOf
6
- } from "./chunk-SCFFCIIP.js";
6
+ } from "./chunk-TN77LX6W.js";
7
7
  import {
8
8
  CAPABILITY_STATEMENTS,
9
9
  storeCapable
10
- } from "./chunk-C6UKW7JO.js";
10
+ } from "./chunk-QXM7S3Y3.js";
11
11
  import {
12
12
  catchCrashes
13
- } from "./chunk-NTZDM5SJ.js";
13
+ } from "./chunk-NRRI37NJ.js";
14
14
  import {
15
15
  importFrom
16
16
  } from "./chunk-Y5E2WNWB.js";
17
17
  import {
18
18
  CliError
19
- } from "./chunk-WZ5XK74U.js";
19
+ } from "./chunk-FEM2JQN2.js";
20
20
  import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/entry.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/entry.js
25
25
  import { spawn as spawn2 } from "node:child_process";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
28
28
  import { spawn, spawnSync } from "node:child_process";
29
29
  import { readFileSync } from "node:fs";
30
30
  import { dirname } from "node:path";
@@ -112,7 +112,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
112
112
  });
113
113
  }), "relay");
114
114
 
115
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
115
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
116
116
  import { appendFileSync } from "node:fs";
117
117
  var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
118
118
  const words = [];
@@ -136,7 +136,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
136
136
  `);
137
137
  }, "logVersion");
138
138
 
139
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/entry.js
139
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/entry.js
140
140
  var processIo = /* @__PURE__ */ __name(() => ({
141
141
  argv: process.argv,
142
142
  env: process.env,
@@ -190,8 +190,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
190
190
  if (command.optsWithGlobals().dryRun === true)
191
191
  return;
192
192
  const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
193
- import("./first-run-5RBH7FDO.js"),
194
- import("./command-contract-UWHY55UE.js")
193
+ import("./first-run-CH6C674R.js"),
194
+ import("./command-contract-TOLB32NJ.js")
195
195
  ]);
196
196
  await setupAtStart({
197
197
  command: entry.app.command,
@@ -206,7 +206,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
206
206
  ask: /* @__PURE__ */ __name(async (question, command) => {
207
207
  if (headless(command) || io.stdin.isTTY !== true)
208
208
  return false;
209
- const { readSecret } = await import("./prompt-J4QPFLEA.js");
209
+ const { readSecret } = await import("./prompt-2QWQTHWT.js");
210
210
  const answer = await readSecret(`${question} [y/N] `, {
211
211
  input: io.stdin,
212
212
  output: io.stderr,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
8
8
  var installerOf = /* @__PURE__ */ __name((scriptPath) => {
9
9
  const path = scriptPath.replaceAll("\\", "/");
10
10
  if (path.includes("/_npx/"))
@@ -4,15 +4,15 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-TBRG2DPE.js";
7
+ } from "./chunk-6N2D6JGX.js";
8
8
  import {
9
9
  CliError
10
- } from "./chunk-WZ5XK74U.js";
10
+ } from "./chunk-FEM2JQN2.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
16
16
  import { createInterface } from "node:readline";
17
17
  import { Writable } from "node:stream";
18
18
  var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-WZ5XK74U.js";
5
+ } from "./chunk-FEM2JQN2.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/models/types.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/models/types.js
11
11
  var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
12
12
  var validateImages = /* @__PURE__ */ __name((images) => {
13
13
  if (images === void 0)
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PRAGMAS
5
- } from "./chunk-RYKG6AEH.js";
5
+ } from "./chunk-EPPSMCEV.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-WZ5XK74U.js";
8
+ } from "./chunk-FEM2JQN2.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
14
14
  var SQLITE_WARNING = "SQLite is an experimental feature";
15
15
  var quieted = /* @__PURE__ */ new WeakSet();
16
16
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
31
31
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
32
32
  }, "isSqliteWarning");
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/open.js
35
35
  var openCache = /* @__PURE__ */ __name(async (path) => {
36
36
  const database = await openFile(path);
37
37
  try {
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
44
44
  }, "openCache");
45
45
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
46
46
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
47
- const { openWithBunSqlite } = await import("./bun-sqlite-HQ2KOXSI.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-EB2UMUPJ.js");
48
48
  return await openWithBunSqlite(path);
49
49
  }, "openUnderBun");
50
50
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
51
51
  quietSqliteWarning();
52
- const { openWithNodeSqlite } = await import("./node-sqlite-QQEX7LZT.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-RJZ4PGLD.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  refuseLacking
5
- } from "./chunk-SMVO5R3T.js";
5
+ } from "./chunk-TFFEFEG2.js";
6
6
  import {
7
7
  servingProfiles
8
- } from "./chunk-LFQ73UFK.js";
8
+ } from "./chunk-TKXLWFM2.js";
9
9
  import {
10
10
  OFFLINE,
11
11
  capability,
@@ -13,14 +13,14 @@ import {
13
13
  profilesOnAccount,
14
14
  servicesFor,
15
15
  throughWrapper
16
- } from "./chunk-7HAIM7GV.js";
16
+ } from "./chunk-JZ4YOAHA.js";
17
17
  import {
18
18
  chatReferenceOf,
19
19
  ensureAccount,
20
20
  foldName,
21
21
  isId,
22
22
  pickPerson
23
- } from "./chunk-GP4NSYDU.js";
23
+ } from "./chunk-5ZJXKASF.js";
24
24
  import {
25
25
  asFirstWord,
26
26
  baseContext,
@@ -31,14 +31,14 @@ import {
31
31
  recalledAccount,
32
32
  rememberAccount,
33
33
  rootOf2 as rootOf
34
- } from "./chunk-SSXCOUP3.js";
34
+ } from "./chunk-G6IX2MD2.js";
35
35
  import {
36
36
  MESSENGER_CHANGE_REFUSAL,
37
37
  readOnlyRefusal
38
- } from "./chunk-SCFFCIIP.js";
38
+ } from "./chunk-TN77LX6W.js";
39
39
  import {
40
40
  providerErrorKey
41
- } from "./chunk-LKJXTACE.js";
41
+ } from "./chunk-MJMVIFSC.js";
42
42
  import {
43
43
  LOG_ATTRIBUTES,
44
44
  codeOf,
@@ -47,10 +47,7 @@ import {
47
47
  fromLogAttributes,
48
48
  limitBatch,
49
49
  logAttributes
50
- } from "./chunk-4U2555EQ.js";
51
- import {
52
- isCliFailure
53
- } from "./chunk-3ZIHUSMM.js";
50
+ } from "./chunk-CUZHKYC2.js";
54
51
  import {
55
52
  AUTHORITY_KEY,
56
53
  CEILING_KEY,
@@ -61,24 +58,27 @@ import {
61
58
  levelFor,
62
59
  readKeysForCommand,
63
60
  skipFlagFor
64
- } from "./chunk-VNIBTNV4.js";
61
+ } from "./chunk-IEC4E65G.js";
65
62
  import {
66
63
  openStore
67
- } from "./chunk-M43MBWJX.js";
64
+ } from "./chunk-MOTKS7XG.js";
65
+ import {
66
+ isCliFailure
67
+ } from "./chunk-37B7A4RP.js";
68
68
  import {
69
69
  logRecordOf,
70
70
  realSleep,
71
71
  resolvePaths,
72
72
  writeSecurely
73
- } from "./chunk-T6CZWSHF.js";
73
+ } from "./chunk-KNE6VFHZ.js";
74
74
  import {
75
75
  CliError
76
- } from "./chunk-WZ5XK74U.js";
76
+ } from "./chunk-FEM2JQN2.js";
77
77
  import {
78
78
  __name
79
79
  } from "./chunk-ZVVMGPBJ.js";
80
80
 
81
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
81
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
82
82
  import { openSync } from "node:fs";
83
83
  import { createInterface } from "node:readline";
84
84
  import { ReadStream } from "node:tty";
@@ -133,10 +133,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
133
133
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
134
134
  }, "terminalAsker");
135
135
 
136
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sends/guard.js
136
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/sends/guard.js
137
137
  import { randomUUID } from "node:crypto";
138
138
 
139
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sends/flood.js
139
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/sends/flood.js
140
140
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
141
141
  import { dirname, join } from "node:path";
142
142
  var MOST_DEADLINES = 50;
@@ -220,11 +220,11 @@ var FloodMemory = class {
220
220
  }
221
221
  };
222
222
 
223
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sends/journal.js
223
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/sends/journal.js
224
224
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
225
225
  import { dirname as dirname3, join as join2 } from "node:path";
226
226
 
227
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
227
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
228
228
  import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
229
229
  import { dirname as dirname2 } from "node:path";
230
230
  var LOCK_WAIT_MS = 5e3;
@@ -291,7 +291,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
291
291
  }
292
292
  }, "lockTime");
293
293
 
294
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sends/journal.js
294
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/sends/journal.js
295
295
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
296
296
  var SendJournal = class {
297
297
  static {
@@ -368,7 +368,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
368
368
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
369
369
  }, "withSendId");
370
370
 
371
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sends/recipients.js
371
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/sends/recipients.js
372
372
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
373
373
  import { join as join3 } from "node:path";
374
374
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -480,7 +480,7 @@ var RecipientList = class {
480
480
  }
481
481
  };
482
482
 
483
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sends/guard.js
483
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/sends/guard.js
484
484
  var HOUR_MS = 60 * 60 * 1e3;
485
485
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
486
486
  "attachments.extract",
@@ -673,7 +673,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
673
673
  }), "guardFor");
674
674
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
675
675
 
676
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
676
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
677
677
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
678
678
  "help",
679
679
  "guide",
@@ -753,7 +753,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
753
753
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
754
754
  }, "refuseUnknownPermissionKeys");
755
755
 
756
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
756
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
757
757
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
758
758
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
759
759
  let warned = false;
@@ -1329,7 +1329,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1329
1329
  }
1330
1330
  }, "keep");
1331
1331
 
1332
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sends/pace.js
1332
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/sends/pace.js
1333
1333
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
1334
1334
  import { join as join4 } from "node:path";
1335
1335
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -1387,13 +1387,42 @@ var Pacer = class {
1387
1387
  renameSync2(temporary, this.path);
1388
1388
  }
1389
1389
  };
1390
+ var ANNOUNCE_WAIT_MS = 5e3;
1391
+ var LONGEST_PACE_WAIT_MS = 5 * 6e4;
1392
+ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
1393
+ const { name, operation, warn } = options;
1394
+ const now = options.now ?? Date.now;
1395
+ let at = now();
1396
+ try {
1397
+ at = await pacer.reserve();
1398
+ } catch (error) {
1399
+ warn?.(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
1400
+ event: "warning",
1401
+ code: "wait_not_remembered",
1402
+ operation
1403
+ });
1404
+ }
1405
+ const waitMs = at - now();
1406
+ if (waitMs <= 0)
1407
+ return;
1408
+ if (waitMs > LONGEST_PACE_WAIT_MS)
1409
+ throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
1410
+ if (waitMs >= ANNOUNCE_WAIT_MS) {
1411
+ const seconds = Math.ceil(waitMs / 1e3);
1412
+ warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
1413
+ event: "warning",
1414
+ code: "pace_wait",
1415
+ operation,
1416
+ counts: { seconds }
1417
+ });
1418
+ }
1419
+ await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
1420
+ }, "waitForTurn");
1390
1421
 
1391
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
1422
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
1392
1423
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
1393
1424
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
1394
1425
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
1395
- var ANNOUNCE_WAIT_MS = 5e3;
1396
- var LONGEST_PACE_WAIT_MS = 5 * 6e4;
1397
1426
  var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
1398
1427
  var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
1399
1428
  const kept = /* @__PURE__ */ __name(async (operation, what2) => {
@@ -1449,28 +1478,8 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
1449
1478
  await kept(operation, () => pacer.holdFor(waitMs));
1450
1479
  }, "noted");
1451
1480
  const turn = /* @__PURE__ */ __name(async (operation) => {
1452
- if (!pacer)
1453
- return;
1454
- let at = Date.now();
1455
- await kept(operation, async () => {
1456
- at = await pacer.reserve();
1457
- });
1458
- const waitMs = at - Date.now();
1459
- if (waitMs <= 0)
1460
- return;
1461
- if (waitMs > LONGEST_PACE_WAIT_MS) {
1462
- throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
1463
- }
1464
- if (waitMs >= ANNOUNCE_WAIT_MS) {
1465
- const seconds = Math.ceil(waitMs / 1e3);
1466
- warn(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
1467
- event: "warning",
1468
- code: "pace_wait",
1469
- operation,
1470
- counts: { seconds }
1471
- });
1472
- }
1473
- await new Promise((resolve) => setTimeout(resolve, waitMs));
1481
+ if (pacer)
1482
+ await waitForTurn(pacer, { name, operation, warn });
1474
1483
  }, "turn");
1475
1484
  return throughWrapper(messenger, {}, (operation, call) => {
1476
1485
  if (LONG_LIVED.has(operation))
@@ -1507,7 +1516,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
1507
1516
  });
1508
1517
  }, "flooded");
1509
1518
 
1510
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
1519
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
1511
1520
  var observed = /* @__PURE__ */ __name((messenger, events) => {
1512
1521
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
1513
1522
  const write = currentOperation();
@@ -1606,7 +1615,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1606
1615
  counts[part] = (counts[part] ?? 0) + items.length;
1607
1616
  }, "byPart");
1608
1617
 
1609
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1618
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1610
1619
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1611
1620
  let opened;
1612
1621
  return {
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  decodeOgg
6
- } from "./chunk-KWRSC6O6.js";
6
+ } from "./chunk-MNOVYS43.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
10
10
  import {
11
11
  CliError
12
- } from "./chunk-WZ5XK74U.js";
12
+ } from "./chunk-FEM2JQN2.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/speech/decode.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/speech/decode.js
18
18
  import { spawn } from "node:child_process";
19
19
  import { mkdtemp, rm, writeFile } from "node:fs/promises";
20
20
  import { createRequire } from "node:module";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine
5
- } from "./chunk-6IBM4Z3V.js";
5
+ } from "./chunk-OE7EIP5L.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
10
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
11
11
  var FIRST_PARTY_TOOLS = [
12
12
  { name: "tg", package: "@wirecat/tg-cli" },
13
13
  { name: "max", package: "@wirecat/max-cli" },
@@ -30,7 +30,7 @@ var PROGRAM_PREFIX = "wcat-";
30
30
  var DESCRIBE_FLAG = "--wcat-describe";
31
31
  var DISPATCH_FLAG = "--wcat-dispatch";
32
32
 
33
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
33
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
34
34
  var DESCRIBE_FORMAT = 1;
35
35
  var describeAnswer = /* @__PURE__ */ __name((tool) => ({
36
36
  wcat_describe: DESCRIBE_FORMAT,
@@ -59,7 +59,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
59
59
  };
60
60
  }, "parseDescribe");
61
61
 
62
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
62
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
63
63
  import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
64
64
  import { join } from "node:path";
65
65
  var SHIM_FORMAT = 1;
@@ -5,21 +5,21 @@ import {
5
5
  fieldsOf,
6
6
  processStreams,
7
7
  projectFields
8
- } from "./chunk-T6CZWSHF.js";
8
+ } from "./chunk-KNE6VFHZ.js";
9
9
  import {
10
10
  COMPACT_FLAG
11
- } from "./chunk-NTZDM5SJ.js";
11
+ } from "./chunk-NRRI37NJ.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-WZ5XK74U.js";
14
+ } from "./chunk-FEM2JQN2.js";
15
15
  import {
16
16
  singleLine
17
- } from "./chunk-6IBM4Z3V.js";
17
+ } from "./chunk-OE7EIP5L.js";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
23
23
  var named = /* @__PURE__ */ __name((work) => {
24
24
  try {
25
25
  return work();
@@ -46,7 +46,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
46
46
  return projectFields(value, fields);
47
47
  }), "projectFields");
48
48
 
49
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/output-detail.js
49
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/output-detail.js
50
50
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
51
51
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
52
52
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -82,7 +82,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
82
82
  return value;
83
83
  }, "atDetail");
84
84
 
85
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/output.js
85
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/output.js
86
86
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
87
87
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
88
88
  if (other)
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  updateCommand
5
- } from "./chunk-4UVT2QCO.js";
5
+ } from "./chunk-BOAMDYLY.js";
6
6
  import {
7
7
  QUESTIONS,
8
8
  readSetupAnswers,
9
9
  unanswered,
10
10
  writeSetupAnswers
11
- } from "./chunk-EUPZSR2G.js";
11
+ } from "./chunk-IPBZKUC3.js";
12
12
  import {
13
13
  DEFAULT_STEMMERS,
14
14
  LANGUAGES
15
- } from "./chunk-VFIEYRYD.js";
15
+ } from "./chunk-TWIC6JJG.js";
16
16
  import {
17
17
  sharedConfigPath
18
- } from "./chunk-OTMGAKUM.js";
18
+ } from "./chunk-GR3QDHBU.js";
19
19
  import {
20
20
  storePath
21
- } from "./chunk-6AJDVJVZ.js";
21
+ } from "./chunk-CKK6JOC4.js";
22
22
  import {
23
23
  installerOf
24
- } from "./chunk-KV4267S4.js";
24
+ } from "./chunk-P3ASN72F.js";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/first-run.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/first-run.js
30
30
  import { spawnSync } from "node:child_process";
31
31
  import { accessSync, constants, realpathSync } from "node:fs";
32
32
  import { delimiter, join } from "node:path";
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
84
84
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
85
85
  }, "suggested");
86
86
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
87
- const { openStore } = await import("./store-ZTDZ6UY5.js");
87
+ const { openStore } = await import("./store-E6RTSSNR.js");
88
88
  const store = await openStore({ env });
89
89
  let rebuild = false;
90
90
  try {
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
113
113
  if (!rebuild)
114
114
  return;
115
115
  const [{ openCache }, { buildStems }] = await Promise.all([
116
- import("./open-MIL2TOT6.js"),
117
- import("./store-maintenance-command-AU73UVUQ.js")
116
+ import("./open-NYOGMIAA.js"),
117
+ import("./store-maintenance-command-Q5MSU6OK.js")
118
118
  ]);
119
119
  const database = await openCache(storePath(env));
120
120
  try {
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
126
126
  var askTools = /* @__PURE__ */ __name(async (run) => {
127
127
  const { command, env, io } = run;
128
128
  const installed = run.installed ?? ((name) => onPath(name, env));
129
- const { WIRECAT_TOOLS } = await import("./first-screen-PGFIXJAX.js");
129
+ const { WIRECAT_TOOLS } = await import("./first-screen-OCAW5ZN6.js");
130
130
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
131
131
  const missing = others.filter((tool) => !installed(tool.command));
132
132
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
199
199
  contentLanguages: start.contentLanguages,
200
200
  all: start.path[0] === "setup",
201
201
  io: {
202
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-J4QPFLEA.js")).readSecret(prompt, { input, echo: true }), "ask"),
202
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-2QWQTHWT.js")).readSecret(prompt, { input, echo: true }), "ask"),
203
203
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
204
204
  `), "say")
205
205
  }
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/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;