@wirecat/zoom-cli 0.56.0 → 0.57.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 (145) hide show
  1. package/README.md +1 -1
  2. package/dist/bin/zm.js +35 -5
  3. package/dist/bundle/all-profiles-EKHWTGOY.js +25 -0
  4. package/dist/bundle/answer-policy-KH2IFXPN.js +96 -0
  5. package/dist/bundle/anthropic-VL54IUGF.js +70 -0
  6. package/dist/bundle/bun-ADJVI4HY.js +169 -0
  7. package/dist/bundle/bun-sqlite-2SDA3YOT.js +69 -0
  8. package/dist/bundle/chunk-2IKY7VBH.js +9 -0
  9. package/dist/bundle/chunk-2WOGZDZG.js +431 -0
  10. package/dist/bundle/chunk-4R7HYNZS.js +73 -0
  11. package/dist/bundle/chunk-4VCA7QU3.js +538 -0
  12. package/dist/bundle/chunk-4YLS4YLS.js +29 -0
  13. package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
  14. package/dist/bundle/chunk-5F7IOESV.js +281 -0
  15. package/dist/bundle/chunk-5QESMCQK.js +122 -0
  16. package/dist/bundle/chunk-6M6FJV5D.js +138 -0
  17. package/dist/bundle/chunk-6MX5T6AQ.js +17 -0
  18. package/dist/bundle/chunk-6P3YHT54.js +385 -0
  19. package/dist/bundle/chunk-7A6PZUDR.js +938 -0
  20. package/dist/bundle/chunk-7GUG6UZS.js +884 -0
  21. package/dist/bundle/chunk-7JZJMHQY.js +487 -0
  22. package/dist/bundle/chunk-A4ETXPMZ.js +98 -0
  23. package/dist/bundle/chunk-ADLS6FVG.js +24600 -0
  24. package/dist/bundle/chunk-AE4BOXH7.js +5292 -0
  25. package/dist/bundle/chunk-AN3GVZTU.js +76 -0
  26. package/dist/bundle/chunk-BAYNCCNM.js +215 -0
  27. package/dist/bundle/chunk-BW2WPOXP.js +166 -0
  28. package/dist/bundle/chunk-BW52AJ4R.js +3387 -0
  29. package/dist/bundle/chunk-CB5UTASG.js +18 -0
  30. package/dist/bundle/chunk-CLMXBW53.js +1028 -0
  31. package/dist/bundle/chunk-DCTXOMOR.js +35 -0
  32. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  33. package/dist/bundle/chunk-EOQFWJJD.js +1095 -0
  34. package/dist/bundle/chunk-G4R4ZIGD.js +3569 -0
  35. package/dist/bundle/chunk-G4VZDINN.js +161 -0
  36. package/dist/bundle/chunk-GARCOIB6.js +409 -0
  37. package/dist/bundle/chunk-GKMGS7G5.js +1938 -0
  38. package/dist/bundle/chunk-HCNMFFG3.js +82 -0
  39. package/dist/bundle/chunk-HG5KRV55.js +1970 -0
  40. package/dist/bundle/chunk-HKYLSIZ2.js +82 -0
  41. package/dist/bundle/chunk-HTQTIKWP.js +928 -0
  42. package/dist/bundle/chunk-I4VQDXFR.js +100 -0
  43. package/dist/bundle/chunk-ICSKEDPI.js +36139 -0
  44. package/dist/bundle/chunk-IP4OK7RQ.js +24 -0
  45. package/dist/bundle/chunk-IVQ6342B.js +2 -0
  46. package/dist/bundle/chunk-K72SEMYI.js +160 -0
  47. package/dist/bundle/chunk-LHRCJYFC.js +19 -0
  48. package/dist/bundle/chunk-LPTIQLDW.js +192 -0
  49. package/dist/bundle/chunk-LQ3T2ZIX.js +124 -0
  50. package/dist/bundle/chunk-LSVI3A5X.js +836 -0
  51. package/dist/bundle/chunk-LW2G4U6W.js +570 -0
  52. package/dist/bundle/chunk-LXB6ONWC.js +3517 -0
  53. package/dist/bundle/chunk-LY26NW3I.js +6848 -0
  54. package/dist/bundle/chunk-MAEFLDHG.js +6092 -0
  55. package/dist/bundle/chunk-MZH4GDR4.js +45 -0
  56. package/dist/bundle/chunk-NN5B24KP.js +1109 -0
  57. package/dist/bundle/chunk-NO7CJEYV.js +22 -0
  58. package/dist/bundle/chunk-NTDWAAGL.js +18435 -0
  59. package/dist/bundle/chunk-NW3X3G5X.js +264 -0
  60. package/dist/bundle/chunk-O66V2WHK.js +48 -0
  61. package/dist/bundle/chunk-OCGPZHXW.js +25 -0
  62. package/dist/bundle/chunk-OIHDCGV4.js +151 -0
  63. package/dist/bundle/chunk-OVSWVPXL.js +8190 -0
  64. package/dist/bundle/chunk-PIN5RZ3D.js +63 -0
  65. package/dist/bundle/chunk-QLIB3PEC.js +1146 -0
  66. package/dist/bundle/chunk-QTR6D5HT.js +58 -0
  67. package/dist/bundle/chunk-QUJPQMHJ.js +2315 -0
  68. package/dist/bundle/chunk-R3HPOCZD.js +188 -0
  69. package/dist/bundle/chunk-RMV4C2YL.js +482 -0
  70. package/dist/bundle/chunk-RRRBMQ2E.js +844 -0
  71. package/dist/bundle/chunk-S4S7E54J.js +60 -0
  72. package/dist/bundle/chunk-SB6WOSHG.js +1109 -0
  73. package/dist/bundle/chunk-SE75DPBY.js +31 -0
  74. package/dist/bundle/chunk-SQJ7EH2D.js +97 -0
  75. package/dist/bundle/chunk-TKCHUT2H.js +422 -0
  76. package/dist/bundle/chunk-TLQUKHEM.js +193 -0
  77. package/dist/bundle/chunk-TZ2MKETI.js +100 -0
  78. package/dist/bundle/chunk-UC44ZMQV.js +78 -0
  79. package/dist/bundle/chunk-UI5UTMSZ.js +275 -0
  80. package/dist/bundle/chunk-VPPYYWOH.js +630 -0
  81. package/dist/bundle/chunk-WJHK5D7Z.js +35612 -0
  82. package/dist/bundle/chunk-WQ24UC44.js +239 -0
  83. package/dist/bundle/chunk-X5DFDGWS.js +2 -0
  84. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  85. package/dist/bundle/chunk-YB4DMKYX.js +119 -0
  86. package/dist/bundle/chunk-Z4TZ6TAF.js +288 -0
  87. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  88. package/dist/bundle/cli-72EQATJF.js +825 -0
  89. package/dist/bundle/command-contract-4MHSZUN3.js +38 -0
  90. package/dist/bundle/config-GFIJK6G2.js +79 -0
  91. package/dist/bundle/dist-IBNHCQXT.js +136 -0
  92. package/dist/bundle/dist-XUFQCJXW.js +7577 -0
  93. package/dist/bundle/echarts-RFTK737T.js +42501 -0
  94. package/dist/bundle/embed-7QYA2ZZE.js +35 -0
  95. package/dist/bundle/embedder-YNN6PCHG.js +108 -0
  96. package/dist/bundle/first-run-EVSRQKZJ.js +23 -0
  97. package/dist/bundle/first-screen-RG4GUKW7.js +36 -0
  98. package/dist/bundle/folders-JEPOMYM4.js +13 -0
  99. package/dist/bundle/instructions-FHNL7CMW.js +9 -0
  100. package/dist/bundle/main-NYGJXPH7.js +130 -0
  101. package/dist/bundle/mcp-IXFC2VVR.js +165 -0
  102. package/dist/bundle/mcp-VGSZDCKK.js +189 -0
  103. package/dist/bundle/mcp-XKP2PXLS.js +92 -0
  104. package/dist/bundle/meetings-IBPI4MM4.js +215 -0
  105. package/dist/bundle/node-P4E63KXA.js +2340 -0
  106. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  107. package/dist/bundle/node-ZMCACJVS.js +176 -0
  108. package/dist/bundle/node-sqlite-ZNGOBA5Q.js +45 -0
  109. package/dist/bundle/oauth-Q6LKF7DB.js +17 -0
  110. package/dist/bundle/open-LJ332Y5O.js +19 -0
  111. package/dist/bundle/output-file-RYQZ3RTE.js +63 -0
  112. package/dist/bundle/process-ZPTLNVQS.js +91 -0
  113. package/dist/bundle/program-IBRQBQ6W.js +5845 -0
  114. package/dist/bundle/prompt-RT7GUUXH.js +12 -0
  115. package/dist/bundle/recognize-QXGE7YJH.js +190 -0
  116. package/dist/bundle/remote-FD4MZQV3.js +26 -0
  117. package/dist/bundle/rerank-V6AVV755.js +49 -0
  118. package/dist/bundle/run-log-RE2EI3UU.js +111 -0
  119. package/dist/bundle/serve-HIJTFAW7.js +19 -0
  120. package/dist/bundle/server-3QOXOYYL.js +53 -0
  121. package/dist/bundle/server-WLJCU7KK.js +812 -0
  122. package/dist/bundle/services-KC5KQFBS.js +330 -0
  123. package/dist/bundle/speech-5JOXLYDA.js +44 -0
  124. package/dist/bundle/state-PPGRB3T6.js +33 -0
  125. package/dist/bundle/store-LODVDPK3.js +141 -0
  126. package/dist/bundle/store-WB5BICTG.js +124 -0
  127. package/dist/bundle/store-connection-EG6Z5ITP.js +76 -0
  128. package/dist/bundle/store-maintenance-command-Q5WMFUZ2.js +54 -0
  129. package/dist/bundle/streaming-UGFFNOXL.js +15 -0
  130. package/dist/bundle/tokens-AF5CPY2F.js +17 -0
  131. package/dist/bundle/zm.js +8 -0
  132. package/dist/contract-overrides.d.ts.map +1 -1
  133. package/dist/contract-overrides.js +18 -16
  134. package/dist/contract-overrides.js.map +1 -1
  135. package/dist/mcp-command.d.ts +3 -2
  136. package/dist/mcp-command.d.ts.map +1 -1
  137. package/dist/mcp-command.js +62 -10
  138. package/dist/mcp-command.js.map +1 -1
  139. package/dist/program-bindings.d.ts.map +1 -1
  140. package/dist/program-bindings.js +1 -0
  141. package/dist/program-bindings.js.map +1 -1
  142. package/dist/version.d.ts +1 -1
  143. package/dist/version.js +1 -1
  144. package/package.json +7 -5
  145. 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-HKYLSIZ2.js";
6
+ import "./chunk-HCNMFFG3.js";
7
+ import "./chunk-AE4BOXH7.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-AE4BOXH7.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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
+ import { createRequire } from "node:module";
15
+
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/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-5QESMCQK.js";
12
+ import "./chunk-CLMXBW53.js";
13
+ import "./chunk-NW3X3G5X.js";
14
+ import "./chunk-CB5UTASG.js";
15
+ import "./chunk-AE4BOXH7.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-CLMXBW53.js";
8
+ import "./chunk-NW3X3G5X.js";
9
+ import "./chunk-CB5UTASG.js";
10
+ import "./chunk-AE4BOXH7.js";
11
+ import "./chunk-Y5E2WNWB.js";
12
+ import {
13
+ __name
14
+ } from "./chunk-ZVVMGPBJ.js";
15
+
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/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-NTDWAAGL.js";
4
+ import "./chunk-UI5UTMSZ.js";
5
+ import "./chunk-IP4OK7RQ.js";
6
+ import "./chunk-UC44ZMQV.js";
7
+ import "./chunk-SB6WOSHG.js";
8
+ import "./chunk-O66V2WHK.js";
9
+ import "./chunk-4VCA7QU3.js";
10
+ import "./chunk-G4VZDINN.js";
11
+ import "./chunk-OVSWVPXL.js";
12
+ import "./chunk-GKMGS7G5.js";
13
+ import "./chunk-QLIB3PEC.js";
14
+ import "./chunk-4R7HYNZS.js";
15
+ import "./chunk-ICSKEDPI.js";
16
+ import "./chunk-RRRBMQ2E.js";
17
+ import "./chunk-7JZJMHQY.js";
18
+ import "./chunk-BW2WPOXP.js";
19
+ import "./chunk-G4R4ZIGD.js";
20
+ import "./chunk-MAEFLDHG.js";
21
+ import "./chunk-OCGPZHXW.js";
22
+ import "./chunk-PIN5RZ3D.js";
23
+ import "./chunk-2WOGZDZG.js";
24
+ import {
25
+ startRun
26
+ } from "./chunk-EOQFWJJD.js";
27
+ import "./chunk-NO7CJEYV.js";
28
+ import "./chunk-YB4DMKYX.js";
29
+ import "./chunk-BAYNCCNM.js";
30
+ import "./chunk-OIHDCGV4.js";
31
+ import "./chunk-LW2G4U6W.js";
32
+ import "./chunk-S4S7E54J.js";
33
+ import "./chunk-WQ24UC44.js";
34
+ import "./chunk-LPTIQLDW.js";
35
+ import "./chunk-RMV4C2YL.js";
36
+ import "./chunk-HTQTIKWP.js";
37
+ import "./chunk-LQ3T2ZIX.js";
38
+ import "./chunk-TKCHUT2H.js";
39
+ import "./chunk-HKYLSIZ2.js";
40
+ import "./chunk-HCNMFFG3.js";
41
+ import "./chunk-SE75DPBY.js";
42
+ import "./chunk-MZH4GDR4.js";
43
+ import "./chunk-5QESMCQK.js";
44
+ import "./chunk-CLMXBW53.js";
45
+ import "./chunk-NW3X3G5X.js";
46
+ import "./chunk-WJHK5D7Z.js";
47
+ import "./chunk-6M6FJV5D.js";
48
+ import "./chunk-QUJPQMHJ.js";
49
+ import "./chunk-7GUG6UZS.js";
50
+ import "./chunk-GARCOIB6.js";
51
+ import "./chunk-4YLS4YLS.js";
52
+ import "./chunk-CB5UTASG.js";
53
+ import "./chunk-TZ2MKETI.js";
54
+ import "./chunk-LXB6ONWC.js";
55
+ import "./chunk-LSVI3A5X.js";
56
+ import "./chunk-IVQ6342B.js";
57
+ import {
58
+ createRecordLog
59
+ } from "./chunk-AE4BOXH7.js";
60
+ import "./chunk-Y5E2WNWB.js";
61
+ import "./chunk-LY26NW3I.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-TLQUKHEM.js";
7
+ import "./chunk-UC44ZMQV.js";
8
+ import "./chunk-Z4TZ6TAF.js";
9
+ import "./chunk-G4VZDINN.js";
10
+ import "./chunk-5D4AEUVA.js";
11
+ import "./chunk-4R7HYNZS.js";
12
+ import "./chunk-PIN5RZ3D.js";
13
+ import "./chunk-AE4BOXH7.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-K72SEMYI.js";
7
+ import "./chunk-IP4OK7RQ.js";
8
+ import "./chunk-BW52AJ4R.js";
9
+ import "./chunk-4VCA7QU3.js";
10
+ import "./chunk-VPPYYWOH.js";
11
+ import "./chunk-5D4AEUVA.js";
12
+ import "./chunk-QLIB3PEC.js";
13
+ import "./chunk-ICSKEDPI.js";
14
+ import "./chunk-RRRBMQ2E.js";
15
+ import "./chunk-G4R4ZIGD.js";
16
+ import "./chunk-MAEFLDHG.js";
17
+ import "./chunk-OCGPZHXW.js";
18
+ import "./chunk-PIN5RZ3D.js";
19
+ import "./chunk-2WOGZDZG.js";
20
+ import "./chunk-EOQFWJJD.js";
21
+ import "./chunk-NO7CJEYV.js";
22
+ import "./chunk-YB4DMKYX.js";
23
+ import "./chunk-OIHDCGV4.js";
24
+ import "./chunk-LW2G4U6W.js";
25
+ import "./chunk-S4S7E54J.js";
26
+ import "./chunk-WQ24UC44.js";
27
+ import "./chunk-RMV4C2YL.js";
28
+ import "./chunk-LQ3T2ZIX.js";
29
+ import "./chunk-TKCHUT2H.js";
30
+ import "./chunk-HCNMFFG3.js";
31
+ import "./chunk-MZH4GDR4.js";
32
+ import "./chunk-5QESMCQK.js";
33
+ import "./chunk-CLMXBW53.js";
34
+ import "./chunk-NW3X3G5X.js";
35
+ import "./chunk-WJHK5D7Z.js";
36
+ import "./chunk-6M6FJV5D.js";
37
+ import "./chunk-QUJPQMHJ.js";
38
+ import "./chunk-7GUG6UZS.js";
39
+ import "./chunk-GARCOIB6.js";
40
+ import "./chunk-4YLS4YLS.js";
41
+ import "./chunk-CB5UTASG.js";
42
+ import "./chunk-TZ2MKETI.js";
43
+ import "./chunk-LXB6ONWC.js";
44
+ import "./chunk-LSVI3A5X.js";
45
+ import "./chunk-IVQ6342B.js";
46
+ import "./chunk-AE4BOXH7.js";
47
+ import "./chunk-Y5E2WNWB.js";
48
+ import "./chunk-LY26NW3I.js";
49
+ import "./chunk-ZVVMGPBJ.js";
50
+ export {
51
+ createBotServer,
52
+ serveBotOverStdio
53
+ };