@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.
- package/README.md +1 -1
- package/dist/bin/zm.js +35 -5
- package/dist/bundle/all-profiles-EKHWTGOY.js +25 -0
- package/dist/bundle/answer-policy-KH2IFXPN.js +96 -0
- package/dist/bundle/anthropic-VL54IUGF.js +70 -0
- package/dist/bundle/bun-ADJVI4HY.js +169 -0
- package/dist/bundle/bun-sqlite-2SDA3YOT.js +69 -0
- package/dist/bundle/chunk-2IKY7VBH.js +9 -0
- package/dist/bundle/chunk-2WOGZDZG.js +431 -0
- package/dist/bundle/chunk-4R7HYNZS.js +73 -0
- package/dist/bundle/chunk-4VCA7QU3.js +538 -0
- package/dist/bundle/chunk-4YLS4YLS.js +29 -0
- package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
- package/dist/bundle/chunk-5F7IOESV.js +281 -0
- package/dist/bundle/chunk-5QESMCQK.js +122 -0
- package/dist/bundle/chunk-6M6FJV5D.js +138 -0
- package/dist/bundle/chunk-6MX5T6AQ.js +17 -0
- package/dist/bundle/chunk-6P3YHT54.js +385 -0
- package/dist/bundle/chunk-7A6PZUDR.js +938 -0
- package/dist/bundle/chunk-7GUG6UZS.js +884 -0
- package/dist/bundle/chunk-7JZJMHQY.js +487 -0
- package/dist/bundle/chunk-A4ETXPMZ.js +98 -0
- package/dist/bundle/chunk-ADLS6FVG.js +24600 -0
- package/dist/bundle/chunk-AE4BOXH7.js +5292 -0
- package/dist/bundle/chunk-AN3GVZTU.js +76 -0
- package/dist/bundle/chunk-BAYNCCNM.js +215 -0
- package/dist/bundle/chunk-BW2WPOXP.js +166 -0
- package/dist/bundle/chunk-BW52AJ4R.js +3387 -0
- package/dist/bundle/chunk-CB5UTASG.js +18 -0
- package/dist/bundle/chunk-CLMXBW53.js +1028 -0
- package/dist/bundle/chunk-DCTXOMOR.js +35 -0
- package/dist/bundle/chunk-DFDN6AUB.js +21 -0
- package/dist/bundle/chunk-EOQFWJJD.js +1095 -0
- package/dist/bundle/chunk-G4R4ZIGD.js +3569 -0
- package/dist/bundle/chunk-G4VZDINN.js +161 -0
- package/dist/bundle/chunk-GARCOIB6.js +409 -0
- package/dist/bundle/chunk-GKMGS7G5.js +1938 -0
- package/dist/bundle/chunk-HCNMFFG3.js +82 -0
- package/dist/bundle/chunk-HG5KRV55.js +1970 -0
- package/dist/bundle/chunk-HKYLSIZ2.js +82 -0
- package/dist/bundle/chunk-HTQTIKWP.js +928 -0
- package/dist/bundle/chunk-I4VQDXFR.js +100 -0
- package/dist/bundle/chunk-ICSKEDPI.js +36139 -0
- package/dist/bundle/chunk-IP4OK7RQ.js +24 -0
- package/dist/bundle/chunk-IVQ6342B.js +2 -0
- package/dist/bundle/chunk-K72SEMYI.js +160 -0
- package/dist/bundle/chunk-LHRCJYFC.js +19 -0
- package/dist/bundle/chunk-LPTIQLDW.js +192 -0
- package/dist/bundle/chunk-LQ3T2ZIX.js +124 -0
- package/dist/bundle/chunk-LSVI3A5X.js +836 -0
- package/dist/bundle/chunk-LW2G4U6W.js +570 -0
- package/dist/bundle/chunk-LXB6ONWC.js +3517 -0
- package/dist/bundle/chunk-LY26NW3I.js +6848 -0
- package/dist/bundle/chunk-MAEFLDHG.js +6092 -0
- package/dist/bundle/chunk-MZH4GDR4.js +45 -0
- package/dist/bundle/chunk-NN5B24KP.js +1109 -0
- package/dist/bundle/chunk-NO7CJEYV.js +22 -0
- package/dist/bundle/chunk-NTDWAAGL.js +18435 -0
- package/dist/bundle/chunk-NW3X3G5X.js +264 -0
- package/dist/bundle/chunk-O66V2WHK.js +48 -0
- package/dist/bundle/chunk-OCGPZHXW.js +25 -0
- package/dist/bundle/chunk-OIHDCGV4.js +151 -0
- package/dist/bundle/chunk-OVSWVPXL.js +8190 -0
- package/dist/bundle/chunk-PIN5RZ3D.js +63 -0
- package/dist/bundle/chunk-QLIB3PEC.js +1146 -0
- package/dist/bundle/chunk-QTR6D5HT.js +58 -0
- package/dist/bundle/chunk-QUJPQMHJ.js +2315 -0
- package/dist/bundle/chunk-R3HPOCZD.js +188 -0
- package/dist/bundle/chunk-RMV4C2YL.js +482 -0
- package/dist/bundle/chunk-RRRBMQ2E.js +844 -0
- package/dist/bundle/chunk-S4S7E54J.js +60 -0
- package/dist/bundle/chunk-SB6WOSHG.js +1109 -0
- package/dist/bundle/chunk-SE75DPBY.js +31 -0
- package/dist/bundle/chunk-SQJ7EH2D.js +97 -0
- package/dist/bundle/chunk-TKCHUT2H.js +422 -0
- package/dist/bundle/chunk-TLQUKHEM.js +193 -0
- package/dist/bundle/chunk-TZ2MKETI.js +100 -0
- package/dist/bundle/chunk-UC44ZMQV.js +78 -0
- package/dist/bundle/chunk-UI5UTMSZ.js +275 -0
- package/dist/bundle/chunk-VPPYYWOH.js +630 -0
- package/dist/bundle/chunk-WJHK5D7Z.js +35612 -0
- package/dist/bundle/chunk-WQ24UC44.js +239 -0
- package/dist/bundle/chunk-X5DFDGWS.js +2 -0
- package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
- package/dist/bundle/chunk-YB4DMKYX.js +119 -0
- package/dist/bundle/chunk-Z4TZ6TAF.js +288 -0
- package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
- package/dist/bundle/cli-72EQATJF.js +825 -0
- package/dist/bundle/command-contract-4MHSZUN3.js +38 -0
- package/dist/bundle/config-GFIJK6G2.js +79 -0
- package/dist/bundle/dist-IBNHCQXT.js +136 -0
- package/dist/bundle/dist-XUFQCJXW.js +7577 -0
- package/dist/bundle/echarts-RFTK737T.js +42501 -0
- package/dist/bundle/embed-7QYA2ZZE.js +35 -0
- package/dist/bundle/embedder-YNN6PCHG.js +108 -0
- package/dist/bundle/first-run-EVSRQKZJ.js +23 -0
- package/dist/bundle/first-screen-RG4GUKW7.js +36 -0
- package/dist/bundle/folders-JEPOMYM4.js +13 -0
- package/dist/bundle/instructions-FHNL7CMW.js +9 -0
- package/dist/bundle/main-NYGJXPH7.js +130 -0
- package/dist/bundle/mcp-IXFC2VVR.js +165 -0
- package/dist/bundle/mcp-VGSZDCKK.js +189 -0
- package/dist/bundle/mcp-XKP2PXLS.js +92 -0
- package/dist/bundle/meetings-IBPI4MM4.js +215 -0
- package/dist/bundle/node-P4E63KXA.js +2340 -0
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/node-ZMCACJVS.js +176 -0
- package/dist/bundle/node-sqlite-ZNGOBA5Q.js +45 -0
- package/dist/bundle/oauth-Q6LKF7DB.js +17 -0
- package/dist/bundle/open-LJ332Y5O.js +19 -0
- package/dist/bundle/output-file-RYQZ3RTE.js +63 -0
- package/dist/bundle/process-ZPTLNVQS.js +91 -0
- package/dist/bundle/program-IBRQBQ6W.js +5845 -0
- package/dist/bundle/prompt-RT7GUUXH.js +12 -0
- package/dist/bundle/recognize-QXGE7YJH.js +190 -0
- package/dist/bundle/remote-FD4MZQV3.js +26 -0
- package/dist/bundle/rerank-V6AVV755.js +49 -0
- package/dist/bundle/run-log-RE2EI3UU.js +111 -0
- package/dist/bundle/serve-HIJTFAW7.js +19 -0
- package/dist/bundle/server-3QOXOYYL.js +53 -0
- package/dist/bundle/server-WLJCU7KK.js +812 -0
- package/dist/bundle/services-KC5KQFBS.js +330 -0
- package/dist/bundle/speech-5JOXLYDA.js +44 -0
- package/dist/bundle/state-PPGRB3T6.js +33 -0
- package/dist/bundle/store-LODVDPK3.js +141 -0
- package/dist/bundle/store-WB5BICTG.js +124 -0
- package/dist/bundle/store-connection-EG6Z5ITP.js +76 -0
- package/dist/bundle/store-maintenance-command-Q5WMFUZ2.js +54 -0
- package/dist/bundle/streaming-UGFFNOXL.js +15 -0
- package/dist/bundle/tokens-AF5CPY2F.js +17 -0
- package/dist/bundle/zm.js +8 -0
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +18 -16
- package/dist/contract-overrides.js.map +1 -1
- package/dist/mcp-command.d.ts +3 -2
- package/dist/mcp-command.d.ts.map +1 -1
- package/dist/mcp-command.js +62 -10
- package/dist/mcp-command.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +1 -0
- package/dist/program-bindings.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +7 -5
- package/skills/zoom-cli/SKILL.md +2 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
VAD,
|
|
5
|
+
isInstalled,
|
|
6
|
+
modelPath,
|
|
7
|
+
modelsDirectory,
|
|
8
|
+
speechModel,
|
|
9
|
+
vadPath
|
|
10
|
+
} from "./chunk-NW3X3G5X.js";
|
|
11
|
+
import {
|
|
12
|
+
CliError
|
|
13
|
+
} from "./chunk-AE4BOXH7.js";
|
|
14
|
+
import {
|
|
15
|
+
__name
|
|
16
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
17
|
+
|
|
18
|
+
// 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/local.js
|
|
19
|
+
import { createHash } from "node:crypto";
|
|
20
|
+
import { isAbsolute } from "node:path";
|
|
21
|
+
import { setImmediate } from "node:timers/promises";
|
|
22
|
+
var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
23
|
+
if (!signal?.aborted)
|
|
24
|
+
return;
|
|
25
|
+
if (signal.reason instanceof CliError)
|
|
26
|
+
throw signal.reason;
|
|
27
|
+
const timeout = signal.reason instanceof Error && signal.reason.name === "TimeoutError";
|
|
28
|
+
throw new CliError(timeout ? "timeout" : "cancelled", "local speech recognition was interrupted");
|
|
29
|
+
}, "cancelled");
|
|
30
|
+
var localSpeechRecognitionModel = /* @__PURE__ */ __name((id) => {
|
|
31
|
+
const model = speechModel(id);
|
|
32
|
+
const version = createHash("sha256").update(JSON.stringify({
|
|
33
|
+
format: "pcm-window-v1",
|
|
34
|
+
files: model.files.map((file) => [file.name, file.sha256]),
|
|
35
|
+
vad: VAD.sha256,
|
|
36
|
+
featureDim: model.featureDim
|
|
37
|
+
})).digest("hex");
|
|
38
|
+
return Object.freeze({ engine: "sherpa-onnx", model: model.id, version, sampleRate: 16e3, maxChunkSamples: 48e4 });
|
|
39
|
+
}, "localSpeechRecognitionModel");
|
|
40
|
+
var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) => {
|
|
41
|
+
const options = { ...input };
|
|
42
|
+
const description = localSpeechRecognitionModel(id);
|
|
43
|
+
const model = speechModel(description.model);
|
|
44
|
+
const directory = options.directory ?? modelsDirectory(options.env);
|
|
45
|
+
const maxTextBytes = options.maxTextBytes ?? 65536;
|
|
46
|
+
if (typeof directory !== "string" || !isAbsolute(directory) || /[\0\r\n]/.test(directory) || !Number.isSafeInteger(maxTextBytes) || maxTextBytes < 1 || maxTextBytes > 4 * 1024 ** 2)
|
|
47
|
+
throw new CliError("validation_error", "local speech requires an absolute model directory and bounded output bytes");
|
|
48
|
+
cancelled(options.signal);
|
|
49
|
+
if (!isInstalled(model, directory))
|
|
50
|
+
throw new CliError("not_found", `speech model ${description.model} is not installed; download it explicitly with a WireCat messenger's models download command`, { reason: "model.not-downloaded", model: description.model });
|
|
51
|
+
const { openRecognizer, toModelRate } = await import("./recognize-QXGE7YJH.js");
|
|
52
|
+
cancelled(options.signal);
|
|
53
|
+
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
54
|
+
let closing = false;
|
|
55
|
+
let active;
|
|
56
|
+
let closed;
|
|
57
|
+
return {
|
|
58
|
+
...description,
|
|
59
|
+
async recognize(pcm, request = {}) {
|
|
60
|
+
if (closing)
|
|
61
|
+
throw new CliError("configuration_error", "local speech recognizer is closed");
|
|
62
|
+
if (active)
|
|
63
|
+
throw new CliError("configuration_error", "local speech recognizer accepts one window at a time");
|
|
64
|
+
const signal = options.signal && request.signal ? AbortSignal.any([options.signal, request.signal]) : options.signal ?? request.signal;
|
|
65
|
+
cancelled(signal);
|
|
66
|
+
if (!(pcm instanceof Float32Array) || pcm.length < 1 || pcm.length > description.maxChunkSamples)
|
|
67
|
+
throw new CliError("validation_error", "speech recognition requires at most 30 seconds of mono 16 kHz PCM");
|
|
68
|
+
const samples = new Float32Array(pcm);
|
|
69
|
+
if (samples.some((value) => !Number.isFinite(value) || Math.abs(value) > 1))
|
|
70
|
+
throw new CliError("validation_error", "speech PCM samples must be finite and normalized");
|
|
71
|
+
active = (async () => {
|
|
72
|
+
await setImmediate();
|
|
73
|
+
cancelled(signal);
|
|
74
|
+
const text = engine.recognize(toModelRate(samples, description.sampleRate));
|
|
75
|
+
cancelled(signal);
|
|
76
|
+
if (typeof text !== "string" || text.includes("\0") || text.length > maxTextBytes || new TextEncoder().encode(text).byteLength > maxTextBytes)
|
|
77
|
+
throw new CliError("invalid_response", "local speech output exceeds its text budget or is invalid");
|
|
78
|
+
return text.trim();
|
|
79
|
+
})();
|
|
80
|
+
try {
|
|
81
|
+
return await active;
|
|
82
|
+
} finally {
|
|
83
|
+
active = void 0;
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
close() {
|
|
87
|
+
closing = true;
|
|
88
|
+
closed ??= (async () => {
|
|
89
|
+
await active?.catch(() => void 0);
|
|
90
|
+
engine.free();
|
|
91
|
+
})();
|
|
92
|
+
return closed;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}, "openLocalSpeechRecognizer");
|
|
96
|
+
|
|
97
|
+
export {
|
|
98
|
+
localSpeechRecognitionModel,
|
|
99
|
+
openLocalSpeechRecognizer
|
|
100
|
+
};
|