@wirecat/zoom-cli 0.56.0 → 0.58.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 (147) hide show
  1. package/README.md +1 -1
  2. package/dist/bin/zm.js +35 -5
  3. package/dist/bundle/all-profiles-RS5IWIGR.js +25 -0
  4. package/dist/bundle/answer-policy-R7VZMCGE.js +96 -0
  5. package/dist/bundle/anthropic-5QHQR4WF.js +70 -0
  6. package/dist/bundle/app-server-7LANSZGE.js +232 -0
  7. package/dist/bundle/bun-O6RL6LRQ.js +169 -0
  8. package/dist/bundle/bun-sqlite-PEJM6CS4.js +69 -0
  9. package/dist/bundle/chunk-24DLFGES.js +97 -0
  10. package/dist/bundle/chunk-27P22POE.js +1109 -0
  11. package/dist/bundle/chunk-3SCTDFNO.js +3398 -0
  12. package/dist/bundle/chunk-3SERIWJD.js +36139 -0
  13. package/dist/bundle/chunk-4AURKUDZ.js +60 -0
  14. package/dist/bundle/chunk-4NGLRHWO.js +24 -0
  15. package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
  16. package/dist/bundle/chunk-5DVW77VC.js +789 -0
  17. package/dist/bundle/chunk-6CYLVFXM.js +9 -0
  18. package/dist/bundle/chunk-6FL25KC5.js +264 -0
  19. package/dist/bundle/chunk-7D2CD3E3.js +193 -0
  20. package/dist/bundle/chunk-7GVNQOV6.js +17 -0
  21. package/dist/bundle/chunk-7H3ZRDLW.js +630 -0
  22. package/dist/bundle/chunk-7Z4ANTAK.js +1095 -0
  23. package/dist/bundle/chunk-A6323R5P.js +22 -0
  24. package/dist/bundle/chunk-ADLS6FVG.js +24600 -0
  25. package/dist/bundle/chunk-AIXLOMH4.js +63 -0
  26. package/dist/bundle/chunk-AQDWGJZT.js +188 -0
  27. package/dist/bundle/chunk-B32SF7J3.js +18 -0
  28. package/dist/bundle/chunk-BAQLQIMI.js +1938 -0
  29. package/dist/bundle/chunk-BGILD4CI.js +1109 -0
  30. package/dist/bundle/chunk-BXZ6WSVF.js +100 -0
  31. package/dist/bundle/chunk-CTGI4ES2.js +138 -0
  32. package/dist/bundle/chunk-CVIKKIGE.js +76 -0
  33. package/dist/bundle/chunk-DDYR6DYL.js +78 -0
  34. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  35. package/dist/bundle/chunk-DP5DX45H.js +151 -0
  36. package/dist/bundle/chunk-DXKVEOSS.js +53 -0
  37. package/dist/bundle/chunk-DXZTLB24.js +120 -0
  38. package/dist/bundle/chunk-G27MRA24.js +82 -0
  39. package/dist/bundle/chunk-HTQTIKWP.js +928 -0
  40. package/dist/bundle/chunk-IYAGQXED.js +433 -0
  41. package/dist/bundle/chunk-K76WFW4I.js +124 -0
  42. package/dist/bundle/chunk-KVHRHBLY.js +884 -0
  43. package/dist/bundle/chunk-L2UIJDWB.js +31 -0
  44. package/dist/bundle/chunk-L3VS3H34.js +482 -0
  45. package/dist/bundle/chunk-MBT7GP7K.js +1970 -0
  46. package/dist/bundle/chunk-MFS52LTZ.js +570 -0
  47. package/dist/bundle/chunk-MMT46EN4.js +29 -0
  48. package/dist/bundle/chunk-MNUTWGSA.js +6094 -0
  49. package/dist/bundle/chunk-N7GAQ27N.js +82 -0
  50. package/dist/bundle/chunk-NDXAZB5Z.js +409 -0
  51. package/dist/bundle/chunk-NOKFJJPA.js +1028 -0
  52. package/dist/bundle/chunk-NW7IMGRR.js +6848 -0
  53. package/dist/bundle/chunk-O5EHUB2V.js +2 -0
  54. package/dist/bundle/chunk-OBZWUNO4.js +160 -0
  55. package/dist/bundle/chunk-PACC5N6T.js +240 -0
  56. package/dist/bundle/chunk-PF25S7L4.js +422 -0
  57. package/dist/bundle/chunk-PKTFZAXG.js +48 -0
  58. package/dist/bundle/chunk-PNBEREOU.js +35626 -0
  59. package/dist/bundle/chunk-POOGFSRA.js +385 -0
  60. package/dist/bundle/chunk-PP3JGQQE.js +3517 -0
  61. package/dist/bundle/chunk-Q2Z3VCM4.js +2 -0
  62. package/dist/bundle/chunk-QCFHL4ES.js +45 -0
  63. package/dist/bundle/chunk-QFGBMS67.js +492 -0
  64. package/dist/bundle/chunk-RUP467ZX.js +948 -0
  65. package/dist/bundle/chunk-RXDIG23Z.js +166 -0
  66. package/dist/bundle/chunk-SIA7HJE2.js +8192 -0
  67. package/dist/bundle/chunk-SL3SXQZ5.js +100 -0
  68. package/dist/bundle/chunk-SV5L36WK.js +19 -0
  69. package/dist/bundle/chunk-T6AAM7UT.js +846 -0
  70. package/dist/bundle/chunk-U6QW67SU.js +18673 -0
  71. package/dist/bundle/chunk-UKR7KH3H.js +288 -0
  72. package/dist/bundle/chunk-UOFOMU3T.js +836 -0
  73. package/dist/bundle/chunk-URO44C5T.js +3570 -0
  74. package/dist/bundle/chunk-UXM7I35J.js +281 -0
  75. package/dist/bundle/chunk-UYJUTZTT.js +73 -0
  76. package/dist/bundle/chunk-VOAVOK4I.js +1146 -0
  77. package/dist/bundle/chunk-VSUY7PDW.js +192 -0
  78. package/dist/bundle/chunk-VYUSEJE4.js +98 -0
  79. package/dist/bundle/chunk-XFCSPOLZ.js +25 -0
  80. package/dist/bundle/chunk-XT7XVPEM.js +538 -0
  81. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  82. package/dist/bundle/chunk-YIFIY7ZE.js +58 -0
  83. package/dist/bundle/chunk-YIMI6O7R.js +5292 -0
  84. package/dist/bundle/chunk-YJRMMZI5.js +275 -0
  85. package/dist/bundle/chunk-YSHSCBPM.js +2315 -0
  86. package/dist/bundle/chunk-ZC5UXEIH.js +215 -0
  87. package/dist/bundle/chunk-ZHXIXDH5.js +161 -0
  88. package/dist/bundle/chunk-ZTOAAYFV.js +122 -0
  89. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  90. package/dist/bundle/cli-IQTASP44.js +831 -0
  91. package/dist/bundle/command-contract-WHZPF7NA.js +38 -0
  92. package/dist/bundle/config-IP5SGHKN.js +79 -0
  93. package/dist/bundle/dist-WT73DF46.js +136 -0
  94. package/dist/bundle/dist-XUFQCJXW.js +7577 -0
  95. package/dist/bundle/echarts-LD3AI55P.js +42501 -0
  96. package/dist/bundle/embed-XEMH4LNX.js +35 -0
  97. package/dist/bundle/embedder-ZCYKSKAE.js +108 -0
  98. package/dist/bundle/first-run-LGYDLIUM.js +23 -0
  99. package/dist/bundle/first-screen-LYQKPNF4.js +36 -0
  100. package/dist/bundle/folders-5ZBUQHAM.js +13 -0
  101. package/dist/bundle/instructions-RZMSW3OC.js +11 -0
  102. package/dist/bundle/main-NKY3JGXY.js +130 -0
  103. package/dist/bundle/mcp-7OXUHLTO.js +189 -0
  104. package/dist/bundle/mcp-OQBZXELQ.js +165 -0
  105. package/dist/bundle/mcp-VISEXTVC.js +92 -0
  106. package/dist/bundle/meetings-XPBHVZAU.js +215 -0
  107. package/dist/bundle/node-P4E63KXA.js +2340 -0
  108. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  109. package/dist/bundle/node-ZRLYQL7J.js +176 -0
  110. package/dist/bundle/node-sqlite-BBEDYBWO.js +45 -0
  111. package/dist/bundle/oauth-UHVRGKZU.js +17 -0
  112. package/dist/bundle/open-J4FCAUAJ.js +19 -0
  113. package/dist/bundle/output-file-SXV2ANW7.js +63 -0
  114. package/dist/bundle/process-LL77573L.js +91 -0
  115. package/dist/bundle/program-EPMIJCGA.js +5845 -0
  116. package/dist/bundle/prompt-LUUMQTMY.js +12 -0
  117. package/dist/bundle/recognize-EMHQX4XF.js +190 -0
  118. package/dist/bundle/remote-ZXS6D7VB.js +26 -0
  119. package/dist/bundle/rerank-WP7RKZNB.js +49 -0
  120. package/dist/bundle/run-log-GS2L66G6.js +111 -0
  121. package/dist/bundle/serve-L6KLLXK2.js +19 -0
  122. package/dist/bundle/server-NOFYENP5.js +53 -0
  123. package/dist/bundle/server-P5TXAPBY.js +66 -0
  124. package/dist/bundle/services-SPOEWVK3.js +330 -0
  125. package/dist/bundle/speech-6OBAKMND.js +44 -0
  126. package/dist/bundle/state-HN5EJKXQ.js +33 -0
  127. package/dist/bundle/store-LEU3M6IN.js +124 -0
  128. package/dist/bundle/store-ZP2URKET.js +141 -0
  129. package/dist/bundle/store-connection-I53XZ2TS.js +76 -0
  130. package/dist/bundle/store-maintenance-command-PSCHEHHY.js +54 -0
  131. package/dist/bundle/streaming-AK6Q2ZGQ.js +15 -0
  132. package/dist/bundle/tokens-CCM3D4ZT.js +17 -0
  133. package/dist/bundle/zm.js +8 -0
  134. package/dist/contract-overrides.d.ts.map +1 -1
  135. package/dist/contract-overrides.js +29 -17
  136. package/dist/contract-overrides.js.map +1 -1
  137. package/dist/mcp-command.d.ts +3 -2
  138. package/dist/mcp-command.d.ts.map +1 -1
  139. package/dist/mcp-command.js +62 -10
  140. package/dist/mcp-command.js.map +1 -1
  141. package/dist/program-bindings.d.ts.map +1 -1
  142. package/dist/program-bindings.js +1 -0
  143. package/dist/program-bindings.js.map +1 -1
  144. package/dist/version.d.ts +1 -1
  145. package/dist/version.js +1 -1
  146. package/package.json +7 -5
  147. package/skills/zoom-cli/SKILL.md +2 -0
@@ -0,0 +1,12 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ readSecret
5
+ } from "./chunk-N7GAQ27N.js";
6
+ import "./chunk-G27MRA24.js";
7
+ import "./chunk-YIMI6O7R.js";
8
+ import "./chunk-Y5E2WNWB.js";
9
+ import "./chunk-ZVVMGPBJ.js";
10
+ export {
11
+ readSecret
12
+ };
@@ -0,0 +1,190 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ CliError
5
+ } from "./chunk-YIMI6O7R.js";
6
+ import {
7
+ importFrom
8
+ } from "./chunk-Y5E2WNWB.js";
9
+ import {
10
+ __name
11
+ } from "./chunk-ZVVMGPBJ.js";
12
+
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
+ import { createRequire } from "node:module";
15
+
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
17
+ var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
+ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
20
+ let offset = 0;
21
+ let serial;
22
+ let packet = 0;
23
+ let length = 0;
24
+ const prefix = [];
25
+ while (offset < bytes.length) {
26
+ if (offset + 27 > bytes.length || view.getUint32(offset, false) !== 1332176723 || bytes[offset + 4] !== 0)
27
+ throw invalid();
28
+ const stream = view.getUint32(offset + 14, true);
29
+ if (serial !== void 0 && serial !== stream)
30
+ throw invalid();
31
+ serial = stream;
32
+ const segments = bytes[offset + 26] ?? 0;
33
+ let data = offset + 27 + segments;
34
+ if (data > bytes.length || Boolean((bytes[offset + 5] ?? 0) & 1) !== length > 0)
35
+ throw invalid();
36
+ for (let index = 0; index < segments; index++) {
37
+ const size = bytes[offset + 27 + index] ?? 0;
38
+ if (data + size > bytes.length)
39
+ throw invalid();
40
+ const take = Math.min(size, 19 - prefix.length);
41
+ for (let i = 0; i < take; i++)
42
+ prefix.push(bytes[data + i] ?? 0);
43
+ length += size;
44
+ data += size;
45
+ if (size === 255)
46
+ continue;
47
+ if (packet === 0) {
48
+ if (length < 19 || String.fromCharCode(...prefix.slice(0, 8)) !== "OpusHead" || ![1, 2].includes(prefix[9] ?? 0) || prefix[18] !== 0)
49
+ throw invalid();
50
+ } else if (packet === 1) {
51
+ if (length < 8 || String.fromCharCode(...prefix.slice(0, 8)) !== "OpusTags")
52
+ throw invalid();
53
+ } else {
54
+ if (length < 1)
55
+ throw invalid();
56
+ const toc = prefix[0] ?? 0;
57
+ const config = toc >> 3;
58
+ const frame = config >= 16 ? 120 << (config & 3) : config >= 12 ? 480 << (config & 1) : (config & 3) === 3 ? 2880 : 480 << (config & 3);
59
+ const count = (toc & 3) === 0 ? 1 : (toc & 3) === 3 ? length >= 2 ? (prefix[1] ?? 0) & 63 : 0 : 2;
60
+ if (count < 1 || frame * count > 5760)
61
+ throw invalid();
62
+ }
63
+ packet++;
64
+ length = 0;
65
+ prefix.length = 0;
66
+ }
67
+ offset = data;
68
+ }
69
+ if (length !== 0 || packet < 3)
70
+ throw invalid();
71
+ }, "checkOggDuration");
72
+
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/speech/recognize.js
74
+ var SAMPLE_RATE = 16e3;
75
+ var LEAD = SAMPLE_RATE / 2;
76
+ var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
77
+ const step = rate / SAMPLE_RATE;
78
+ const length = Math.floor(samples.length / step);
79
+ const pcm = new Float32Array(LEAD + length);
80
+ for (let i = 0; i < length; i++) {
81
+ const from = Math.floor(i * step);
82
+ const to = Math.max(from + 1, Math.floor((i + 1) * step));
83
+ let sum = 0;
84
+ for (let j = from; j < to; j++)
85
+ sum += samples[j] ?? 0;
86
+ pcm[LEAD + i] = sum / (to - from);
87
+ }
88
+ return pcm;
89
+ }, "toModelRate");
90
+ var decodeOgg = /* @__PURE__ */ __name(async (bytes) => {
91
+ checkOggDuration(bytes);
92
+ const { OggOpusDecoder } = await importFrom(new URL("speech/recognize.js", import.meta.resolve("@wirecat/cli-core")).href, "ogg-opus-decoder");
93
+ const decoder = new OggOpusDecoder();
94
+ await decoder.ready;
95
+ try {
96
+ const { channelData, sampleRate, samplesDecoded } = await decoder.decodeFile(bytes);
97
+ const samples = channelData[0];
98
+ if (!samples || samplesDecoded === 0)
99
+ throw new Error("no Ogg Opus audio in it");
100
+ return { samples, rate: sampleRate };
101
+ } finally {
102
+ decoder.free();
103
+ }
104
+ }, "decodeOgg");
105
+ var WINDOW = 512;
106
+ var detector = /* @__PURE__ */ __name((vadModel) => ({
107
+ sileroVad: {
108
+ model: vadModel,
109
+ // At the default 0.5 a quietly spoken stretch in the middle of a voice message never counted as
110
+ // speech and was lost; 0.3 keeps it for both models and changes nothing on clear speech (126508, 2026-09-30).
111
+ threshold: 0.3,
112
+ minSilenceDuration: 0.5,
113
+ minSpeechDuration: 0.25,
114
+ maxSpeechDuration: 20,
115
+ windowSize: WINDOW
116
+ },
117
+ sampleRate: SAMPLE_RATE,
118
+ numThreads: 1,
119
+ provider: "cpu",
120
+ debug: 0,
121
+ bufferSizeInSeconds: 30
122
+ }), "detector");
123
+ var loaded;
124
+ var loadSherpa = /* @__PURE__ */ __name(() => {
125
+ if (loaded)
126
+ return loaded;
127
+ const load = createRequire(new URL("speech/recognize.js", import.meta.resolve("@wirecat/cli-core")).href);
128
+ const wasm = {};
129
+ load("sherpa-onnx/sherpa-onnx-wasm-nodejs.js")(wasm);
130
+ const stdout = wasm.FS?.getStream(1);
131
+ if (stdout)
132
+ stdout.nfd = 2;
133
+ const asr = load("sherpa-onnx/sherpa-onnx-asr.js");
134
+ const vad = load("sherpa-onnx/sherpa-onnx-vad.js");
135
+ loaded = {
136
+ createOfflineRecognizer: /* @__PURE__ */ __name((config) => new asr.OfflineRecognizer(config, wasm), "createOfflineRecognizer"),
137
+ createVad: /* @__PURE__ */ __name((config) => vad.createVad(wasm, config), "createVad")
138
+ };
139
+ return loaded;
140
+ }, "loadSherpa");
141
+ var openRecognizer = /* @__PURE__ */ __name((model, path, vadModel) => {
142
+ const sherpa = loadSherpa();
143
+ const engine = sherpa.createOfflineRecognizer({
144
+ featConfig: { sampleRate: SAMPLE_RATE, featureDim: model.featureDim },
145
+ modelConfig: { ...model.config(path), numThreads: 1, provider: "cpu", debug: 0 },
146
+ decodingMethod: "greedy_search"
147
+ });
148
+ const vad = sherpa.createVad(detector(vadModel));
149
+ const piece = /* @__PURE__ */ __name((samples) => {
150
+ const stream = engine.createStream();
151
+ try {
152
+ stream.acceptWaveform(SAMPLE_RATE, samples);
153
+ engine.decode(stream);
154
+ return engine.getResult(stream).text.trim();
155
+ } finally {
156
+ stream.free();
157
+ }
158
+ }, "piece");
159
+ return {
160
+ recognize: /* @__PURE__ */ __name((pcm) => {
161
+ vad.reset();
162
+ const parts = [];
163
+ const drain = /* @__PURE__ */ __name(() => {
164
+ while (!vad.isEmpty()) {
165
+ parts.push(piece(vad.front().samples));
166
+ vad.pop();
167
+ }
168
+ }, "drain");
169
+ for (let i = 0; i + WINDOW <= pcm.length; i += WINDOW) {
170
+ vad.acceptWaveform(pcm.subarray(i, i + WINDOW));
171
+ drain();
172
+ }
173
+ vad.flush();
174
+ drain();
175
+ return parts.filter(Boolean).join(" ");
176
+ }, "recognize"),
177
+ free: /* @__PURE__ */ __name(() => {
178
+ vad.free();
179
+ engine.free();
180
+ }, "free")
181
+ };
182
+ }, "openRecognizer");
183
+ export {
184
+ SAMPLE_RATE,
185
+ decodeOgg,
186
+ detector,
187
+ loadSherpa,
188
+ openRecognizer,
189
+ toModelRate
190
+ };
@@ -0,0 +1,26 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ DEFAULT_OPENAI_MODEL,
5
+ OPENAI_MODELS,
6
+ OPENAI_URL,
7
+ isLocal,
8
+ openRemote,
9
+ remoteKey,
10
+ remoteModel
11
+ } from "./chunk-ZTOAAYFV.js";
12
+ import "./chunk-NOKFJJPA.js";
13
+ import "./chunk-6FL25KC5.js";
14
+ import "./chunk-B32SF7J3.js";
15
+ import "./chunk-YIMI6O7R.js";
16
+ import "./chunk-Y5E2WNWB.js";
17
+ import "./chunk-ZVVMGPBJ.js";
18
+ export {
19
+ DEFAULT_OPENAI_MODEL,
20
+ OPENAI_MODELS,
21
+ OPENAI_URL,
22
+ isLocal,
23
+ openRemote,
24
+ remoteKey,
25
+ remoteModel
26
+ };
@@ -0,0 +1,49 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ defaultThreads,
5
+ loadModel,
6
+ truncated
7
+ } from "./chunk-NOKFJJPA.js";
8
+ import "./chunk-6FL25KC5.js";
9
+ import "./chunk-B32SF7J3.js";
10
+ import "./chunk-YIMI6O7R.js";
11
+ import "./chunk-Y5E2WNWB.js";
12
+ import {
13
+ __name
14
+ } from "./chunk-ZVVMGPBJ.js";
15
+
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
17
+ var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
18
+ const { ort, tokenizer, session } = await loadModel(model, directory, threads);
19
+ const typeIds = session.inputNames.includes("token_type_ids");
20
+ const output = session.outputNames[0];
21
+ const one = /* @__PURE__ */ __name(async (question, passage) => {
22
+ const encoded = tokenizer.encode(question, { text_pair: passage, return_token_type_ids: true });
23
+ const ids = truncated(encoded.ids, model.maxTokens);
24
+ const shape = [1, ids.length];
25
+ const feeds = {
26
+ input_ids: new ort.Tensor("int64", BigInt64Array.from(ids, BigInt), shape),
27
+ attention_mask: new ort.Tensor("int64", new BigInt64Array(ids.length).fill(1n), shape)
28
+ };
29
+ if (typeIds)
30
+ feeds.token_type_ids = new ort.Tensor("int64", BigInt64Array.from(truncated(encoded.token_type_ids, model.maxTokens), BigInt), shape);
31
+ const logit = (await session.run(feeds))[output]?.data[0];
32
+ if (typeof logit !== "number" || !Number.isFinite(logit))
33
+ throw new Error(`${model.id} gave no score`);
34
+ return logit;
35
+ }, "one");
36
+ return {
37
+ model,
38
+ score: /* @__PURE__ */ __name(async (question, passages) => {
39
+ const scores = [];
40
+ for (const passage of passages)
41
+ scores.push(await one(question, passage));
42
+ return scores;
43
+ }, "score"),
44
+ close: /* @__PURE__ */ __name(() => session.release(), "close")
45
+ };
46
+ }, "openReranker");
47
+ export {
48
+ openReranker
49
+ };
@@ -0,0 +1,111 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import "./chunk-U6QW67SU.js";
4
+ import "./chunk-YJRMMZI5.js";
5
+ import "./chunk-4NGLRHWO.js";
6
+ import "./chunk-DDYR6DYL.js";
7
+ import "./chunk-27P22POE.js";
8
+ import "./chunk-PKTFZAXG.js";
9
+ import "./chunk-XT7XVPEM.js";
10
+ import "./chunk-ZHXIXDH5.js";
11
+ import "./chunk-SIA7HJE2.js";
12
+ import "./chunk-BAQLQIMI.js";
13
+ import "./chunk-VOAVOK4I.js";
14
+ import "./chunk-UYJUTZTT.js";
15
+ import "./chunk-3SERIWJD.js";
16
+ import "./chunk-T6AAM7UT.js";
17
+ import "./chunk-QFGBMS67.js";
18
+ import "./chunk-RXDIG23Z.js";
19
+ import "./chunk-URO44C5T.js";
20
+ import "./chunk-MNUTWGSA.js";
21
+ import "./chunk-XFCSPOLZ.js";
22
+ import "./chunk-AIXLOMH4.js";
23
+ import "./chunk-IYAGQXED.js";
24
+ import {
25
+ startRun
26
+ } from "./chunk-7Z4ANTAK.js";
27
+ import "./chunk-A6323R5P.js";
28
+ import "./chunk-DXZTLB24.js";
29
+ import "./chunk-ZC5UXEIH.js";
30
+ import "./chunk-DP5DX45H.js";
31
+ import "./chunk-MFS52LTZ.js";
32
+ import "./chunk-4AURKUDZ.js";
33
+ import "./chunk-PACC5N6T.js";
34
+ import "./chunk-VSUY7PDW.js";
35
+ import "./chunk-L3VS3H34.js";
36
+ import "./chunk-HTQTIKWP.js";
37
+ import "./chunk-K76WFW4I.js";
38
+ import "./chunk-PF25S7L4.js";
39
+ import "./chunk-N7GAQ27N.js";
40
+ import "./chunk-G27MRA24.js";
41
+ import "./chunk-L2UIJDWB.js";
42
+ import "./chunk-QCFHL4ES.js";
43
+ import "./chunk-ZTOAAYFV.js";
44
+ import "./chunk-NOKFJJPA.js";
45
+ import "./chunk-6FL25KC5.js";
46
+ import "./chunk-PNBEREOU.js";
47
+ import "./chunk-CTGI4ES2.js";
48
+ import "./chunk-YSHSCBPM.js";
49
+ import "./chunk-KVHRHBLY.js";
50
+ import "./chunk-NDXAZB5Z.js";
51
+ import "./chunk-MMT46EN4.js";
52
+ import "./chunk-B32SF7J3.js";
53
+ import "./chunk-SL3SXQZ5.js";
54
+ import "./chunk-PP3JGQQE.js";
55
+ import "./chunk-UOFOMU3T.js";
56
+ import "./chunk-O5EHUB2V.js";
57
+ import {
58
+ createRecordLog
59
+ } from "./chunk-YIMI6O7R.js";
60
+ import "./chunk-Y5E2WNWB.js";
61
+ import "./chunk-NW7IMGRR.js";
62
+ import {
63
+ __name
64
+ } from "./chunk-ZVVMGPBJ.js";
65
+
66
+ // dist/run-log.js
67
+ import { join } from "node:path";
68
+ var lazyRunLog = /* @__PURE__ */ __name((options) => {
69
+ let opened;
70
+ let failed = false;
71
+ const open = /* @__PURE__ */ __name(() => {
72
+ if (failed)
73
+ return void 0;
74
+ try {
75
+ if (!opened) {
76
+ const resource = { service: "zm", version: options.version };
77
+ const run = startRun({
78
+ runsDir: options.runsDir,
79
+ command: options.command,
80
+ service: resource.service,
81
+ cliVersion: options.version,
82
+ ...options.onError ? { onError: options.onError } : {}
83
+ });
84
+ const log = createRecordLog({
85
+ to: join(run.dir, "events.jsonl"),
86
+ runId: run.id,
87
+ command: options.command,
88
+ resource,
89
+ allow: options.allow,
90
+ ...options.onError ? { onError: options.onError } : {}
91
+ });
92
+ opened = { finish: /* @__PURE__ */ __name((status) => run.finish(status), "finish"), log };
93
+ }
94
+ return opened.log;
95
+ } catch (error) {
96
+ failed = true;
97
+ options.onError?.(error instanceof Error ? error : new Error("could not open the run log"));
98
+ return void 0;
99
+ }
100
+ }, "open");
101
+ const at = /* @__PURE__ */ __name((level) => (event) => open()?.[level](event), "at");
102
+ return {
103
+ log: { debug: at("debug"), info: at("info"), warn: at("warn"), error: at("error") },
104
+ finish: /* @__PURE__ */ __name(async (status) => {
105
+ await opened?.finish(status);
106
+ }, "finish")
107
+ };
108
+ }, "lazyRunLog");
109
+ export {
110
+ lazyRunLog
111
+ };
@@ -0,0 +1,19 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ MCP_PATH,
5
+ serveOverHttp
6
+ } from "./chunk-7D2CD3E3.js";
7
+ import "./chunk-DDYR6DYL.js";
8
+ import "./chunk-UKR7KH3H.js";
9
+ import "./chunk-ZHXIXDH5.js";
10
+ import "./chunk-5D4AEUVA.js";
11
+ import "./chunk-UYJUTZTT.js";
12
+ import "./chunk-AIXLOMH4.js";
13
+ import "./chunk-YIMI6O7R.js";
14
+ import "./chunk-Y5E2WNWB.js";
15
+ import "./chunk-ZVVMGPBJ.js";
16
+ export {
17
+ MCP_PATH,
18
+ serveOverHttp
19
+ };
@@ -0,0 +1,53 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ createBotServer,
5
+ serveBotOverStdio
6
+ } from "./chunk-OBZWUNO4.js";
7
+ import "./chunk-4NGLRHWO.js";
8
+ import "./chunk-3SCTDFNO.js";
9
+ import "./chunk-XT7XVPEM.js";
10
+ import "./chunk-7H3ZRDLW.js";
11
+ import "./chunk-5D4AEUVA.js";
12
+ import "./chunk-VOAVOK4I.js";
13
+ import "./chunk-3SERIWJD.js";
14
+ import "./chunk-T6AAM7UT.js";
15
+ import "./chunk-URO44C5T.js";
16
+ import "./chunk-MNUTWGSA.js";
17
+ import "./chunk-XFCSPOLZ.js";
18
+ import "./chunk-AIXLOMH4.js";
19
+ import "./chunk-IYAGQXED.js";
20
+ import "./chunk-7Z4ANTAK.js";
21
+ import "./chunk-A6323R5P.js";
22
+ import "./chunk-DXZTLB24.js";
23
+ import "./chunk-DP5DX45H.js";
24
+ import "./chunk-MFS52LTZ.js";
25
+ import "./chunk-4AURKUDZ.js";
26
+ import "./chunk-PACC5N6T.js";
27
+ import "./chunk-L3VS3H34.js";
28
+ import "./chunk-K76WFW4I.js";
29
+ import "./chunk-PF25S7L4.js";
30
+ import "./chunk-G27MRA24.js";
31
+ import "./chunk-QCFHL4ES.js";
32
+ import "./chunk-ZTOAAYFV.js";
33
+ import "./chunk-NOKFJJPA.js";
34
+ import "./chunk-6FL25KC5.js";
35
+ import "./chunk-PNBEREOU.js";
36
+ import "./chunk-CTGI4ES2.js";
37
+ import "./chunk-YSHSCBPM.js";
38
+ import "./chunk-KVHRHBLY.js";
39
+ import "./chunk-NDXAZB5Z.js";
40
+ import "./chunk-MMT46EN4.js";
41
+ import "./chunk-B32SF7J3.js";
42
+ import "./chunk-SL3SXQZ5.js";
43
+ import "./chunk-PP3JGQQE.js";
44
+ import "./chunk-UOFOMU3T.js";
45
+ import "./chunk-O5EHUB2V.js";
46
+ import "./chunk-YIMI6O7R.js";
47
+ import "./chunk-Y5E2WNWB.js";
48
+ import "./chunk-NW7IMGRR.js";
49
+ import "./chunk-ZVVMGPBJ.js";
50
+ export {
51
+ createBotServer,
52
+ serveBotOverStdio
53
+ };
@@ -0,0 +1,66 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ PER_RUN,
5
+ createServer,
6
+ envelope,
7
+ serveOverHttpUntilStopped,
8
+ serveOverStdio
9
+ } from "./chunk-5DVW77VC.js";
10
+ import "./chunk-3SCTDFNO.js";
11
+ import "./chunk-27P22POE.js";
12
+ import "./chunk-PKTFZAXG.js";
13
+ import "./chunk-XT7XVPEM.js";
14
+ import "./chunk-DXKVEOSS.js";
15
+ import "./chunk-ZHXIXDH5.js";
16
+ import "./chunk-CVIKKIGE.js";
17
+ import "./chunk-7H3ZRDLW.js";
18
+ import "./chunk-5D4AEUVA.js";
19
+ import "./chunk-BAQLQIMI.js";
20
+ import "./chunk-VOAVOK4I.js";
21
+ import "./chunk-UYJUTZTT.js";
22
+ import "./chunk-3SERIWJD.js";
23
+ import "./chunk-T6AAM7UT.js";
24
+ import "./chunk-RXDIG23Z.js";
25
+ import "./chunk-URO44C5T.js";
26
+ import "./chunk-MNUTWGSA.js";
27
+ import "./chunk-XFCSPOLZ.js";
28
+ import "./chunk-AIXLOMH4.js";
29
+ import "./chunk-IYAGQXED.js";
30
+ import "./chunk-7Z4ANTAK.js";
31
+ import "./chunk-A6323R5P.js";
32
+ import "./chunk-DXZTLB24.js";
33
+ import "./chunk-DP5DX45H.js";
34
+ import "./chunk-MFS52LTZ.js";
35
+ import "./chunk-4AURKUDZ.js";
36
+ import "./chunk-PACC5N6T.js";
37
+ import "./chunk-L3VS3H34.js";
38
+ import "./chunk-K76WFW4I.js";
39
+ import "./chunk-PF25S7L4.js";
40
+ import "./chunk-G27MRA24.js";
41
+ import "./chunk-QCFHL4ES.js";
42
+ import "./chunk-ZTOAAYFV.js";
43
+ import "./chunk-NOKFJJPA.js";
44
+ import "./chunk-6FL25KC5.js";
45
+ import "./chunk-PNBEREOU.js";
46
+ import "./chunk-CTGI4ES2.js";
47
+ import "./chunk-YSHSCBPM.js";
48
+ import "./chunk-KVHRHBLY.js";
49
+ import "./chunk-NDXAZB5Z.js";
50
+ import "./chunk-MMT46EN4.js";
51
+ import "./chunk-B32SF7J3.js";
52
+ import "./chunk-SL3SXQZ5.js";
53
+ import "./chunk-PP3JGQQE.js";
54
+ import "./chunk-UOFOMU3T.js";
55
+ import "./chunk-O5EHUB2V.js";
56
+ import "./chunk-YIMI6O7R.js";
57
+ import "./chunk-Y5E2WNWB.js";
58
+ import "./chunk-NW7IMGRR.js";
59
+ import "./chunk-ZVVMGPBJ.js";
60
+ export {
61
+ PER_RUN,
62
+ createServer,
63
+ envelope,
64
+ serveOverHttpUntilStopped,
65
+ serveOverStdio
66
+ };