@wirecat/zoom-cli 0.80.0 → 0.82.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 (201) hide show
  1. package/contracts/wirecat.json +71 -3
  2. package/dist/answers.d.ts +100 -0
  3. package/dist/answers.d.ts.map +1 -1
  4. package/dist/bin/zm.js +2 -2
  5. package/dist/bundle/agent-F4TRJWWS.js +46 -0
  6. package/dist/bundle/{all-profiles-5GOKWOT4.js → all-profiles-RULEKTDQ.js} +64 -22
  7. package/dist/bundle/answer-policy-6XC57AEZ.js +131 -0
  8. package/dist/bundle/{anthropic-NHXMOFYS.js → anthropic-4NAQBZFL.js} +6 -6
  9. package/dist/bundle/{app-server-HFW5Z5PI.js → app-server-VLR42U5L.js} +92 -80
  10. package/dist/bundle/{bun-M5IGY2TG.js → bun-OPDGMZZQ.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-MTP5JJQ2.js → bun-sqlite-HC6X4AOX.js} +7 -7
  12. package/dist/bundle/{chunk-TNL3YQ33.js → chunk-274SLQNW.js} +2 -2
  13. package/dist/bundle/{chunk-5CJ6AAUI.js → chunk-2CI2OEZQ.js} +4 -4
  14. package/dist/bundle/{chunk-GVKZZT7E.js → chunk-2DBF2IIC.js} +7 -78
  15. package/dist/bundle/{chunk-NRVMK5H3.js → chunk-2GP573Q4.js} +15748 -11939
  16. package/dist/bundle/{chunk-4OAR7BGU.js → chunk-2JHVQMVC.js} +1 -1
  17. package/dist/bundle/{chunk-XKLU5KV2.js → chunk-2SWKQ7C4.js} +1 -1
  18. package/dist/bundle/{chunk-W3GZ7JUO.js → chunk-2XBDILVW.js} +1 -1
  19. package/dist/bundle/{chunk-3UONR5HW.js → chunk-3HC5F3P7.js} +1 -1
  20. package/dist/bundle/{chunk-VN7TKMOW.js → chunk-3YM4B2GT.js} +1 -1
  21. package/dist/bundle/{chunk-PCPOO5FS.js → chunk-434YFJAE.js} +2 -2
  22. package/dist/bundle/{chunk-CW6CPQHI.js → chunk-4HLQ2JGK.js} +4 -4
  23. package/dist/bundle/{chunk-RT7C3SSJ.js → chunk-4N7PP76S.js} +1 -1
  24. package/dist/bundle/{chunk-JJX4HKDV.js → chunk-52Y4ETKU.js} +4 -4
  25. package/dist/bundle/{chunk-BIKHHFD2.js → chunk-5HAUK3I4.js} +2166 -2760
  26. package/dist/bundle/{chunk-W2QDYMAM.js → chunk-5KYQ53EF.js} +13 -9
  27. package/dist/bundle/{chunk-BW5JEOBE.js → chunk-5TU7Y5UW.js} +12 -12
  28. package/dist/bundle/{chunk-P2JTVRGU.js → chunk-66ALX4ZI.js} +168 -168
  29. package/dist/bundle/{chunk-EPIA2UUM.js → chunk-676C2LE6.js} +12 -12
  30. package/dist/bundle/{chunk-BNEJKGG7.js → chunk-6CWL5BKG.js} +78 -76
  31. package/dist/bundle/{chunk-TDBVM2SS.js → chunk-6QYZP4E2.js} +3 -3
  32. package/dist/bundle/{chunk-JXSEH64A.js → chunk-6VK332XS.js} +3 -3
  33. package/dist/bundle/{chunk-W7M4JYEE.js → chunk-73MOMNLL.js} +1 -1
  34. package/dist/bundle/{chunk-K672XJ2P.js → chunk-7QPIUMUG.js} +12 -12
  35. package/dist/bundle/{chunk-CWCDCNXA.js → chunk-7UVDPRFK.js} +6 -6
  36. package/dist/bundle/{chunk-RMX2WPWS.js → chunk-A6EZK5RG.js} +4 -4
  37. package/dist/bundle/{chunk-ONJPUFLX.js → chunk-AC6VJNMJ.js} +1 -1
  38. package/dist/bundle/{chunk-QIK2IBJ4.js → chunk-ACI4YIEH.js} +23 -7
  39. package/dist/bundle/{chunk-UX4JZMA4.js → chunk-AIKFOBDO.js} +278 -59
  40. package/dist/bundle/{chunk-GCPO7T2X.js → chunk-ASBDFXLS.js} +3 -3
  41. package/dist/bundle/{chunk-O4ZBFATF.js → chunk-B32KZRQM.js} +12 -12
  42. package/dist/bundle/{chunk-5RVXXDN7.js → chunk-BBGJQMRI.js} +1 -1
  43. package/dist/bundle/chunk-BDKVOU3I.js +52 -0
  44. package/dist/bundle/{chunk-GCUOZ2OA.js → chunk-BP4FYANF.js} +6 -6
  45. package/dist/bundle/{chunk-XTCAWNBP.js → chunk-DCYFT3FR.js} +4 -4
  46. package/dist/bundle/{chunk-FPUGMDJV.js → chunk-DNCLQPOM.js} +1 -1
  47. package/dist/bundle/{chunk-PKW3TPNP.js → chunk-DSZYABYL.js} +38 -19
  48. package/dist/bundle/{chunk-6MDL2LZA.js → chunk-E745WZKY.js} +8 -8
  49. package/dist/bundle/chunk-EGTCQKHV.js +340 -0
  50. package/dist/bundle/chunk-EQG3PIH2.js +108 -0
  51. package/dist/bundle/{chunk-ZPZT46O6.js → chunk-ESN3W2MZ.js} +48 -12
  52. package/dist/bundle/{chunk-7U5X37TE.js → chunk-G46WJ7YO.js} +6 -6
  53. package/dist/bundle/{chunk-L6FM5RQY.js → chunk-G6PETRMV.js} +3 -3
  54. package/dist/bundle/chunk-GBHMT2IU.js +755 -0
  55. package/dist/bundle/{chunk-6QCBTBDA.js → chunk-GGMAIIVE.js} +1 -1
  56. package/dist/bundle/{chunk-6I4C4ZFT.js → chunk-GTKPMYK7.js} +2 -2
  57. package/dist/bundle/{chunk-N5YUHN6S.js → chunk-GWGHH56B.js} +12 -12
  58. package/dist/bundle/{chunk-5XO2AY6D.js → chunk-HC6VN5CO.js} +10 -10
  59. package/dist/bundle/{chunk-ARL2TTPZ.js → chunk-HP7A2ZOP.js} +9 -9
  60. package/dist/bundle/chunk-HZENBDW2.js +209 -0
  61. package/dist/bundle/{chunk-ST3ZB7LS.js → chunk-IANKXHSE.js} +1 -1
  62. package/dist/bundle/{chunk-GGKEQQME.js → chunk-ICPJT672.js} +13 -9
  63. package/dist/bundle/chunk-JQ54DYAQ.js +80 -0
  64. package/dist/bundle/chunk-K5JGJIV2.js +640 -0
  65. package/dist/bundle/{chunk-DYRISFHZ.js → chunk-KJ6USQDZ.js} +19 -9
  66. package/dist/bundle/{chunk-TMYZKDQ7.js → chunk-KKFY23AK.js} +65 -65
  67. package/dist/bundle/chunk-KQPUVXKX.js +84 -0
  68. package/dist/bundle/{chunk-BPSURRAD.js → chunk-KVJ3I7UL.js} +43 -64
  69. package/dist/bundle/{chunk-NXFKZFTC.js → chunk-KWU46LNK.js} +3 -3
  70. package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
  71. package/dist/bundle/{chunk-YAA2D6RP.js → chunk-L75SMSJR.js} +5 -5
  72. package/dist/bundle/{chunk-OXPHJEJ2.js → chunk-LAYYO4WD.js} +3 -3
  73. package/dist/bundle/{chunk-6PIXP5IH.js → chunk-LEKKTJKK.js} +40 -26
  74. package/dist/bundle/{chunk-3AOESMW6.js → chunk-M7H4MCAX.js} +18 -259
  75. package/dist/bundle/{chunk-DZ6H3YJH.js → chunk-MAJJ4PG3.js} +19 -16
  76. package/dist/bundle/{chunk-G5VH4WUF.js → chunk-MQLPZBMQ.js} +2 -2
  77. package/dist/bundle/{chunk-3Z7CFQTI.js → chunk-N3JLO63O.js} +1 -1
  78. package/dist/bundle/{chunk-NMETTKCV.js → chunk-N46F72AF.js} +14 -14
  79. package/dist/bundle/{chunk-A3TUG2DP.js → chunk-NB7EOAUZ.js} +36 -1
  80. package/dist/bundle/{chunk-BRMV33MO.js → chunk-NEMX3UNN.js} +4 -4
  81. package/dist/bundle/{chunk-6CDMGT6Q.js → chunk-OBXQLFT5.js} +2 -2
  82. package/dist/bundle/{chunk-HH7GR6TN.js → chunk-OGNO35A2.js} +6 -6
  83. package/dist/bundle/{chunk-Q6MISDKJ.js → chunk-OIPYBF43.js} +3 -3
  84. package/dist/bundle/{chunk-6LY4LBSD.js → chunk-OO4TRVPB.js} +7 -7
  85. package/dist/bundle/{chunk-CHEHK6IW.js → chunk-OQFQ77AY.js} +214 -118
  86. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  87. package/dist/bundle/{chunk-Q5LUGY2V.js → chunk-PMUPN6JW.js} +9 -9
  88. package/dist/bundle/chunk-PSKTMMCO.js +561 -0
  89. package/dist/bundle/{chunk-U5N2PKKM.js → chunk-PWVJUIDQ.js} +2 -2
  90. package/dist/bundle/{chunk-475P3LWG.js → chunk-Q7ICVP25.js} +1 -1
  91. package/dist/bundle/{chunk-JGSVWLL2.js → chunk-QG6PILDO.js} +2 -2
  92. package/dist/bundle/{chunk-5K54M6RD.js → chunk-QPHBK63S.js} +1 -1
  93. package/dist/bundle/{chunk-RFXJLG5V.js → chunk-QVSL5WJ7.js} +5173 -3077
  94. package/dist/bundle/{chunk-IQWBGMCR.js → chunk-QVYAV7F2.js} +4 -4
  95. package/dist/bundle/{chunk-XIHENZW6.js → chunk-R2B6PUVI.js} +4 -4
  96. package/dist/bundle/{chunk-MH4L5LL6.js → chunk-RQOZBTNI.js} +16 -3
  97. package/dist/bundle/{chunk-FSLR2YGR.js → chunk-T7IAWEBU.js} +7 -7
  98. package/dist/bundle/{chunk-D4HKTC2T.js → chunk-TKNM22OH.js} +2 -2
  99. package/dist/bundle/{chunk-EI37UXDR.js → chunk-TKVBFJ5C.js} +1 -1
  100. package/dist/bundle/{chunk-O3DYRCIT.js → chunk-TXDR6YSF.js} +1 -1
  101. package/dist/bundle/{chunk-CWXOXIWS.js → chunk-TY7NDMFY.js} +1 -1
  102. package/dist/bundle/{chunk-Z3CPZ4I4.js → chunk-UAWSINMC.js} +306 -306
  103. package/dist/bundle/{chunk-4F7Q5CET.js → chunk-UKAAAOPC.js} +31 -180
  104. package/dist/bundle/{chunk-XL4ND7CZ.js → chunk-UL2PXLKT.js} +26 -26
  105. package/dist/bundle/{chunk-GRYXOSN6.js → chunk-UQCTXZEP.js} +10 -10
  106. package/dist/bundle/{chunk-E3JVLVVB.js → chunk-UR5DBODY.js} +37 -30
  107. package/dist/bundle/{chunk-SUG6YGAF.js → chunk-V5EJSF2B.js} +237 -167
  108. package/dist/bundle/{chunk-HGSBLY6M.js → chunk-VB72LTSZ.js} +12 -12
  109. package/dist/bundle/{chunk-2XZ2YKW4.js → chunk-VB7FZOYX.js} +2 -100
  110. package/dist/bundle/{chunk-PMO2Z6DQ.js → chunk-VS6WURLX.js} +3 -3
  111. package/dist/bundle/{chunk-5QXQIZJY.js → chunk-VZ5PPYDG.js} +3 -4
  112. package/dist/bundle/{chunk-YR5TRWT2.js → chunk-W5QHB53X.js} +287 -580
  113. package/dist/bundle/{chunk-2P6MQH4V.js → chunk-WMANRJR5.js} +6 -6
  114. package/dist/bundle/chunk-WOPVBRPV.js +29 -0
  115. package/dist/bundle/{chunk-W32HK7KG.js → chunk-XQ2WL3HB.js} +2 -2
  116. package/dist/bundle/{chunk-FIJREKLA.js → chunk-XQQVMECZ.js} +3 -3
  117. package/dist/bundle/{chunk-75JW7X2W.js → chunk-Y6PVS55U.js} +71 -61
  118. package/dist/bundle/{chunk-EMYRUJCV.js → chunk-YJXJJ2XP.js} +8 -8
  119. package/dist/bundle/{chunk-L2TURFT6.js → chunk-YY7XKHDY.js} +10 -3
  120. package/dist/bundle/chunk-ZED2CJW5.js +353 -0
  121. package/dist/bundle/chunk-ZOYOXWJB.js +746 -0
  122. package/dist/bundle/{cli-QNBYDOKV.js → cli-U4O5XB7J.js} +171 -124
  123. package/dist/bundle/command-contract-FBTK6GQX.js +45 -0
  124. package/dist/bundle/{command-server-entry-WMA4SWJ5.js → command-server-entry-KKH6ZWJV.js} +35 -35
  125. package/dist/bundle/config-FRJSIZNN.js +118 -0
  126. package/dist/bundle/{decode-7PXUXNIP.js → decode-TPCNXEK4.js} +6 -6
  127. package/dist/bundle/{dispatch-AWDROXWN.js → dispatch-FKMIPCPQ.js} +9 -9
  128. package/dist/bundle/{dist-TSBH4FOU.js → dist-7CLBCYZN.js} +23 -21
  129. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  130. package/dist/bundle/{echarts-WIDIUEO6.js → echarts-O3TNDAXJ.js} +2 -2
  131. package/dist/bundle/{embed-EIRVQF5E.js → embed-WCJSFVSK.js} +7 -7
  132. package/dist/bundle/{embedder-MXPM6OXK.js → embedder-TBBUPXBX.js} +10 -10
  133. package/dist/bundle/{failure-JZW73RP7.js → failure-XTWBYI2A.js} +3 -3
  134. package/dist/bundle/first-run-ELEMFW42.js +29 -0
  135. package/dist/bundle/first-screen-DIOBWMKP.js +46 -0
  136. package/dist/bundle/{folders-TGFOE7DY.js → folders-LXOL4N4S.js} +5 -5
  137. package/dist/bundle/{instructions-D5LNE6NJ.js → instructions-AMH5RWVJ.js} +1 -1
  138. package/dist/bundle/{main-OHW5Z56X.js → main-YAA7WQ23.js} +24 -24
  139. package/dist/bundle/{mcp-RGNRW77S.js → mcp-5HFPWC3W.js} +2 -2
  140. package/dist/bundle/meeting-combined-UXCF4SJ3.js +26 -0
  141. package/dist/bundle/meeting-model-3BZJ3EQP.js +26 -0
  142. package/dist/bundle/{meeting-semantic-FYOVY4S2.js → meeting-semantic-3HU7I2SJ.js} +8 -8
  143. package/dist/bundle/{meetings-WI4SXPBJ.js → meetings-XWMB6FOH.js} +7 -7
  144. package/dist/bundle/{node-UEWUFR7N.js → node-EGMCBAO7.js} +2 -2
  145. package/dist/bundle/{node-sqlite-FJWKJHYU.js → node-sqlite-IJBWENFX.js} +8 -8
  146. package/dist/bundle/oauth-SZDDAP7A.js +20 -0
  147. package/dist/bundle/{open-EFYTWUGC.js → open-NS3TMKZX.js} +6 -6
  148. package/dist/bundle/openai-4DN6WI3B.js +28 -0
  149. package/dist/bundle/{output-file-J4SU6X4I.js → output-file-2UB5JP3R.js} +6 -6
  150. package/dist/bundle/{process-U5PLNIDC.js → process-SGHEN6MQ.js} +1 -1
  151. package/dist/bundle/{program-3JICCSA6.js → program-GVCGZP27.js} +170 -160
  152. package/dist/bundle/{prompt-YPDMSOKC.js → prompt-HJFMPFVC.js} +6 -6
  153. package/dist/bundle/public-C2ZB2AGQ.js +198 -0
  154. package/dist/bundle/{recognize-Z2SSWUKH.js → recognize-2SEI5PPM.js} +5 -5
  155. package/dist/bundle/{remote-R5HMDHOG.js → remote-2DMS74XE.js} +11 -11
  156. package/dist/bundle/{rerank-6NGBEMQ2.js → rerank-H6GCYVIA.js} +8 -8
  157. package/dist/bundle/run-log-QU26SUZP.js +145 -0
  158. package/dist/bundle/{serve-CU3RMWU7.js → serve-ODVRPFJO.js} +11 -11
  159. package/dist/bundle/server-NBPF6IDZ.js +95 -0
  160. package/dist/bundle/{server-SOQSVX2Q.js → server-PCLIO24L.js} +82 -69
  161. package/dist/bundle/{services-LROZ3RDT.js → services-4QAPXBLO.js} +60 -54
  162. package/dist/bundle/{speech-AS77HFIF.js → speech-MA6ZT3WE.js} +28 -28
  163. package/dist/bundle/{sqlite-runtime-U25NS6BK.js → sqlite-runtime-PVMAUXRN.js} +7 -7
  164. package/dist/bundle/{state-CPEVKK66.js → state-QFMTYUME.js} +7 -7
  165. package/dist/bundle/{store-6CHRMJM7.js → store-25OTAQC3.js} +31 -24
  166. package/dist/bundle/{store-QKHCZOYR.js → store-F724QIKJ.js} +34 -26
  167. package/dist/bundle/store-connection-OGPXANGB.js +111 -0
  168. package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +83 -0
  169. package/dist/bundle/{streaming-VDJOYGMO.js → streaming-S22C4DG5.js} +7 -7
  170. package/dist/bundle/surface-7PXHWCF6.js +81 -0
  171. package/dist/bundle/{tokens-JBN2OHQB.js → tokens-NLUHA2DW.js} +11 -10
  172. package/dist/bundle/zm.js +9 -9
  173. package/dist/bundle/{zoom-app-Q4IKYNG3.js → zoom-app-YWFB367P.js} +8 -8
  174. package/dist/commands.d.ts +1 -0
  175. package/dist/commands.d.ts.map +1 -1
  176. package/dist/commands.js +8 -2
  177. package/dist/commands.js.map +1 -1
  178. package/dist/setup-commands.d.ts +1 -1
  179. package/dist/setup-commands.d.ts.map +1 -1
  180. package/dist/setup-commands.js +31 -5
  181. package/dist/setup-commands.js.map +1 -1
  182. package/dist/version.d.ts +1 -1
  183. package/dist/version.js +1 -1
  184. package/dist/zoom-api/types.d.ts +5 -0
  185. package/dist/zoom-api/types.d.ts.map +1 -1
  186. package/package.json +3 -3
  187. package/dist/bundle/answer-policy-7PYXHK2I.js +0 -122
  188. package/dist/bundle/chunk-3BTRJYIT.js +0 -729
  189. package/dist/bundle/chunk-M4LAF627.js +0 -719
  190. package/dist/bundle/command-contract-CT6MV6YG.js +0 -45
  191. package/dist/bundle/config-ZFQFDEVL.js +0 -109
  192. package/dist/bundle/first-run-K6EHRAIM.js +0 -29
  193. package/dist/bundle/first-screen-C6AF4KT4.js +0 -45
  194. package/dist/bundle/meeting-combined-3OKFXZNA.js +0 -26
  195. package/dist/bundle/meeting-model-4XNF725D.js +0 -26
  196. package/dist/bundle/oauth-KOONTGLW.js +0 -20
  197. package/dist/bundle/openai-6Y2JRDNY.js +0 -28
  198. package/dist/bundle/run-log-LG3TI3WI.js +0 -136
  199. package/dist/bundle/server-X7JYRMKX.js +0 -85
  200. package/dist/bundle/store-connection-FCDVOPWB.js +0 -102
  201. package/dist/bundle/store-maintenance-command-6HVOAHOZ.js +0 -77
@@ -5,19 +5,19 @@ import {
5
5
  aiOrigin,
6
6
  aiSettingPath,
7
7
  readAiSetting
8
- } from "./chunk-GGKEQQME.js";
8
+ } from "./chunk-ICPJT672.js";
9
9
  import {
10
10
  OPENAI_URL,
11
11
  localOnly,
12
12
  localOnlyRefusal
13
- } from "./chunk-ARL2TTPZ.js";
13
+ } from "./chunk-HP7A2ZOP.js";
14
14
  import {
15
15
  readOnlyLockOf,
16
16
  readOnlyRefusal
17
- } from "./chunk-D4HKTC2T.js";
17
+ } from "./chunk-TKNM22OH.js";
18
18
  import {
19
19
  onThisComputer
20
- } from "./chunk-TDBVM2SS.js";
20
+ } from "./chunk-6QYZP4E2.js";
21
21
  import {
22
22
  OPENAI_TRANSCRIBE_MODEL,
23
23
  VAD,
@@ -26,18 +26,18 @@ import {
26
26
  modelsDirectory,
27
27
  speechModel,
28
28
  vadPath
29
- } from "./chunk-CW6CPQHI.js";
29
+ } from "./chunk-4HLQ2JGK.js";
30
30
  import {
31
31
  typedCommand
32
- } from "./chunk-2P6MQH4V.js";
32
+ } from "./chunk-WMANRJR5.js";
33
33
  import {
34
34
  CliError
35
- } from "./chunk-ST3ZB7LS.js";
35
+ } from "./chunk-IANKXHSE.js";
36
36
  import {
37
37
  __name
38
38
  } from "./chunk-ZVVMGPBJ.js";
39
39
 
40
- // 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/cloud.js
40
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/speech/cloud.js
41
41
  var addressOf = /* @__PURE__ */ __name((env) => {
42
42
  const setting = readAiSetting(aiSettingPath(env));
43
43
  return setting?.provider === "openai" && setting.base_url ? setting.base_url : OPENAI_URL;
@@ -73,7 +73,7 @@ var cloudSpeech = /* @__PURE__ */ __name((deps) => {
73
73
  told = true;
74
74
  deps.notify(leavesComputer ? `the recordings' audio leaves this computer: it goes to ${host} (${model}) to be transcribed` : `the recordings' audio goes to ${host} on this computer (${model}) to be transcribed`);
75
75
  }
76
- const { transcribeOpenAI: transcribeOpenAI2 } = await import("./openai-6Y2JRDNY.js");
76
+ const { transcribeOpenAI: transcribeOpenAI2 } = await import("./openai-4DN6WI3B.js");
77
77
  return transcribeOpenAI2(audio, {
78
78
  apiKey: apiKey ?? "",
79
79
  model,
@@ -90,7 +90,7 @@ var cloudSpeech = /* @__PURE__ */ __name((deps) => {
90
90
  };
91
91
  }, "cloudSpeech");
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/speech/local.js
93
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/speech/local.js
94
94
  import { createHash } from "node:crypto";
95
95
  import { isAbsolute } from "node:path";
96
96
  import { setImmediate } from "node:timers/promises";
@@ -125,7 +125,7 @@ var recognizeLocalPieces = /* @__PURE__ */ __name(async (id, audio, options = {}
125
125
  const directory = options.directory ?? modelsDirectory(options.env);
126
126
  if (!isInstalled(model, directory))
127
127
  throw notInstalled(model.id);
128
- const { openRecognizer, toModelRate } = await import("./recognize-Z2SSWUKH.js");
128
+ const { openRecognizer, toModelRate } = await import("./recognize-2SEI5PPM.js");
129
129
  const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
130
130
  try {
131
131
  if (!engine.pieces)
@@ -156,7 +156,7 @@ var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) =>
156
156
  cancelled(options.signal);
157
157
  if (!isInstalled(model, directory))
158
158
  throw notInstalled(description.model);
159
- const { openRecognizer, toModelRate } = await import("./recognize-Z2SSWUKH.js");
159
+ const { openRecognizer, toModelRate } = await import("./recognize-2SEI5PPM.js");
160
160
  cancelled(options.signal);
161
161
  const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
162
162
  let closing = false;
@@ -1,7 +1,6 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- CLIENT_INFO_META_KEY,
5
4
  DEFAULT_MAX_SUBSCRIPTIONS,
6
5
  McpServer,
7
6
  ProtocolErrorCode,
@@ -24,12 +23,7 @@ import {
24
23
  serverIdentityOf,
25
24
  setNegotiatedProtocolVersion,
26
25
  validateEnvelopeMeta
27
- } from "./chunk-5D4AEUVA.js";
28
- import {
29
- agentOf,
30
- clientHash,
31
- currentCaller
32
- } from "./chunk-FSLR2YGR.js";
26
+ } from "./chunk-PL5P7UKW.js";
33
27
  import {
34
28
  __name
35
29
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,95 +535,7 @@ function toError(value) {
541
535
  }
542
536
  __name(toError, "toError");
543
537
 
544
- // 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/caller.js
545
- var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
- const client = caller?.agent?.client?.name;
547
- if (client && client !== "unknown")
548
- return client;
549
- const kind = caller?.agent?.kind;
550
- return kind && kind !== "mcp-client" ? kind : fallback;
551
- }, "callingAgent");
552
- var CALLER_META_KEY = "wirecat.dev/caller";
553
- var PROXY_CLIENT_NAME = "all-profiles";
554
- var NAME = /^[\w .@()/+-]{1,64}$/;
555
- var plain = /* @__PURE__ */ __name((value) => typeof value === "string" && NAME.test(value.trim()) ? value.trim() : void 0, "plain");
556
- var clientFrom = /* @__PURE__ */ __name((value) => {
557
- if (!value || typeof value !== "object")
558
- return void 0;
559
- const { name, version } = value;
560
- const named = plain(name);
561
- if (!named)
562
- return void 0;
563
- const versioned = plain(version);
564
- return { name: named, ...versioned ? { version: versioned } : {} };
565
- }, "clientFrom");
566
- var callerOf = /* @__PURE__ */ __name((ctx, tool, source) => {
567
- const meta = ctx?.mcpReq?._meta;
568
- const requestId = ctx?.mcpReq?.id;
569
- const initialized = source.client?.();
570
- const proxied = initialized?.name === PROXY_CLIENT_NAME && !ctx?.http ? passedOn(meta?.[CALLER_META_KEY], tool) : void 0;
571
- if (proxied)
572
- return proxied;
573
- const client = clientFrom(meta?.[CLIENT_INFO_META_KEY]) ?? clientFrom(initialized);
574
- const mcp = /* @__PURE__ */ __name((connection) => ({
575
- tool,
576
- ...requestId === void 0 ? {} : { request_id: String(requestId) },
577
- ...connection ? { connection_id: connection } : {}
578
- }), "mcp");
579
- const auth = ctx?.http?.authInfo;
580
- if (auth) {
581
- const registered = plain(auth.extra?.clientName);
582
- return {
583
- via: "mcp-http",
584
- agent: {
585
- kind: "mcp-client",
586
- session_id: ctx?.sessionId ?? null,
587
- client: {
588
- name: registered ?? client?.name ?? "unknown",
589
- ...client?.version ? { version: client.version } : {},
590
- id: clientHash(auth.clientId)
591
- }
592
- },
593
- mcp: mcp(ctx?.sessionId)
594
- };
595
- }
596
- const agent = agentOf(source.env) ?? { kind: "mcp-client", session_id: null };
597
- return { via: "mcp-stdio", agent: { ...agent, ...client ? { client } : {} }, mcp: mcp(source.connectionId) };
598
- }, "callerOf");
599
- var passedOn = /* @__PURE__ */ __name((value, tool) => {
600
- if (!value || typeof value !== "object")
601
- return void 0;
602
- const { via, agent, mcp } = value;
603
- if (via !== "mcp-stdio" && via !== "mcp-http")
604
- return void 0;
605
- const a = agent && typeof agent === "object" ? agent : void 0;
606
- const kind = plain(a?.kind);
607
- const session = typeof a?.session_id === "string" && /^[A-Za-z0-9._:-]{1,128}$/.test(a.session_id) ? a.session_id : null;
608
- const client = clientFrom(a?.client);
609
- const id = a?.client && typeof a.client === "object" ? a.client.id : void 0;
610
- const m = mcp && typeof mcp === "object" ? mcp : {};
611
- const request = plain(m.request_id);
612
- const connection = typeof m.connection_id === "string" && /^[\w-]{1,128}$/.test(m.connection_id) ? m.connection_id : void 0;
613
- return {
614
- via,
615
- ...kind ? {
616
- agent: {
617
- kind,
618
- session_id: session,
619
- ...a?.from_chat === true ? { from_chat: true } : {},
620
- ...client ? { client: { ...client, ...typeof id === "string" && /^[0-9a-f]{8}$/.test(id) ? { id } : {} } } : {}
621
- }
622
- } : {},
623
- mcp: {
624
- tool,
625
- ...request ? { request_id: request } : {},
626
- ...connection ? { connection_id: connection } : {},
627
- proxied: true
628
- }
629
- };
630
- }, "passedOn");
631
-
632
- // 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/stdio-wire.js
538
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
633
539
  import { PassThrough, Writable } from "node:stream";
634
540
  var lineReader = /* @__PURE__ */ __name((onMessage) => {
635
541
  let rest = "";
@@ -723,9 +629,5 @@ var answeredWire = /* @__PURE__ */ __name((source, sink) => {
723
629
  export {
724
630
  StdioServerTransport,
725
631
  serveStdio,
726
- callingAgent,
727
- CALLER_META_KEY,
728
- PROXY_CLIENT_NAME,
729
- callerOf,
730
632
  answeredWire
731
633
  };
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openOrdinaryFile
5
- } from "./chunk-NMETTKCV.js";
5
+ } from "./chunk-N46F72AF.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-ST3ZB7LS.js";
8
+ } from "./chunk-IANKXHSE.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/wav.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/speech/wav.js
14
14
  import { createHash } from "node:crypto";
15
15
  import { basename, resolve } from "node:path";
16
16
  var prepared = /* @__PURE__ */ new WeakMap();
@@ -4,9 +4,9 @@ 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/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
- import { Readable } from "node:stream";
9
+ import { pipeline, Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
11
11
  var TooLarge = class extends Error {
12
12
  static {
@@ -49,8 +49,7 @@ var send = /* @__PURE__ */ __name(async (response, outgoing) => {
49
49
  if (!response.body)
50
50
  return void outgoing.end();
51
51
  const body = Readable.fromWeb(response.body);
52
- outgoing.once("close", () => body.destroy());
53
- body.pipe(outgoing);
52
+ pipeline(body, outgoing, () => void 0);
54
53
  }, "send");
55
54
  var listen = /* @__PURE__ */ __name((handle, { host, port, maxBody = MAX_BODY }) => new Promise((resolve, reject) => {
56
55
  const server = createServer((incoming, outgoing) => {