@wirecat/zoom-cli 0.86.4 → 0.86.6
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/contracts/wirecat.json +2 -1
- package/dist/answers.d.ts +8 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/bin/zm.js +3 -3
- package/dist/bundle/{answer-policy-GIN32ISS.js → answer-policy-4Z6R3LUD.js} +1 -1
- package/dist/bundle/{chunk-654T46TN.js → chunk-3U2PDJ5Q.js} +40 -6
- package/dist/bundle/{chunk-S5FBIWGA.js → chunk-I26AE4GY.js} +45 -10
- package/dist/bundle/{chunk-EDOBQJKW.js → chunk-I3SXY7RX.js} +1 -1
- package/dist/bundle/{chunk-WU72EMMV.js → chunk-NDBJHB6Q.js} +16 -1
- package/dist/bundle/{chunk-LQCLG26U.js → chunk-OTB6Q32K.js} +3 -2
- package/dist/bundle/{config-EPXUXAZN.js → config-4WPGSRVG.js} +4 -4
- package/dist/bundle/{main-HGBOQN6P.js → main-CYRBWYVQ.js} +7 -7
- package/dist/bundle/{program-E6CUUDE4.js → program-ZYRTVD3A.js} +250 -212
- package/dist/bundle/{store-connection-FBUVWLRA.js → store-connection-GZ4GVIRZ.js} +5 -5
- package/dist/bundle/{tokens-PFLQAHIK.js → tokens-RAINS22C.js} +2 -2
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-B3IBR2EY.js → zoom-app-CYJ2GE4O.js} +3 -3
- package/dist/config.d.ts +9 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +38 -4
- package/dist/config.js.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -1
- package/dist/identity.js.map +1 -1
- package/dist/local-transcription-commands.d.ts +15 -1
- package/dist/local-transcription-commands.d.ts.map +1 -1
- package/dist/local-transcription-commands.js +49 -9
- package/dist/local-transcription-commands.js.map +1 -1
- package/dist/local-transcription.d.ts +4 -1
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +45 -3
- package/dist/local-transcription.js.map +1 -1
- package/dist/media-decode.d.ts.map +1 -1
- package/dist/media-decode.js +4 -2
- package/dist/media-decode.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -0
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +3 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +7 -2
- package/dist/setup-commands.js.map +1 -1
- package/dist/store-commands.d.ts +3 -1
- package/dist/store-commands.d.ts.map +1 -1
- package/dist/store-commands.js +2 -1
- package/dist/store-commands.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/zoom-cli/SKILL.md +2 -0
package/README.md
CHANGED
|
@@ -151,7 +151,7 @@ More: [compared with other tools](https://github.com/WireCatLabs/zoom-cli/blob/m
|
|
|
151
151
|
| Evidence and people | `meetings passage <reference>`, `meetings evidence <reference>`, `meetings context <person>`, `meetings link <reference>`, `meetings task-proposal <reference> --type <type>` |
|
|
152
152
|
| Several reads at once | `batch <file>` runs bounded `search meetings` and `meetings passage` requests from a JSON file |
|
|
153
153
|
| Search by meaning | `search meetings <query> --model <model>`, `meetings embeddings --model <model>` |
|
|
154
|
-
| Local transcription | `meetings transcribe <meeting> <file> --model <model
|
|
154
|
+
| Local transcription | `meetings transcribe <meeting> <file> --model <model>`, or your own service with `transcribe_engine openai` |
|
|
155
155
|
| Cloud recordings | `recordings list`, `recordings show <meeting>`, `recordings download <meeting> --output-dir <dir>`, `recordings download --since-time <date> --until-time <date> --output-dir <dir> --jsonl`, `recordings schedule create\|list\|show\|run\|disable` |
|
|
156
156
|
| Local archive | `recordings archive show\|check\|locks\|recover <directory>`, `recordings archive transcript\|import <directory>`, `search recordings <directory> <query>` |
|
|
157
157
|
| Zoom meetings | `meetings invitation <meeting>`, `meetings create\|update\|cancel` |
|
package/contracts/wirecat.json
CHANGED
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
"meetings",
|
|
520
520
|
"transcribe"
|
|
521
521
|
],
|
|
522
|
-
"summary": "preview transcribing a recording on this machine; --yes adds the transcript",
|
|
522
|
+
"summary": "preview transcribing a recording, on this machine or, when the profile sets transcribe_engine openai, by your own service; --yes adds the transcript",
|
|
523
523
|
"effects": {
|
|
524
524
|
"remote": "none",
|
|
525
525
|
"local": "write"
|
|
@@ -1309,6 +1309,7 @@
|
|
|
1309
1309
|
"*.zoom.us",
|
|
1310
1310
|
"zoom.com",
|
|
1311
1311
|
"*.zoom.com",
|
|
1312
|
+
"api.openai.com",
|
|
1312
1313
|
"registry.npmjs.org",
|
|
1313
1314
|
"huggingface.co",
|
|
1314
1315
|
"*.huggingface.co",
|
package/dist/answers.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ export declare const answerSchema: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
74
74
|
readonly since: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
75
75
|
readonly until: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
76
76
|
}, undefined>, undefined>;
|
|
77
|
+
readonly as_of: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
78
|
+
readonly stale: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
77
79
|
readonly ranking: v.OptionalSchema<v.StrictObjectSchema<{
|
|
78
80
|
readonly applied: v.BooleanSchema<undefined>;
|
|
79
81
|
readonly reason_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "dotted lower-case words, such as `page.next`">]>, undefined>;
|
|
@@ -168,6 +170,8 @@ export declare const answerSchema: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
168
170
|
readonly since: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
169
171
|
readonly until: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
170
172
|
}, undefined>, undefined>;
|
|
173
|
+
readonly as_of: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
174
|
+
readonly stale: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
171
175
|
readonly ranking: v.OptionalSchema<v.StrictObjectSchema<{
|
|
172
176
|
readonly applied: v.BooleanSchema<undefined>;
|
|
173
177
|
readonly reason_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "dotted lower-case words, such as `page.next`">]>, undefined>;
|
|
@@ -271,6 +275,8 @@ export declare const toolAnswer: (value: unknown, meta: Meta, registry?: Command
|
|
|
271
275
|
since?: string | undefined;
|
|
272
276
|
until?: string | undefined;
|
|
273
277
|
} | undefined;
|
|
278
|
+
as_of?: string | undefined;
|
|
279
|
+
stale?: boolean | undefined;
|
|
274
280
|
ranking?: {
|
|
275
281
|
applied: boolean;
|
|
276
282
|
reason_id?: string | undefined;
|
|
@@ -352,6 +358,8 @@ export declare const toolAnswer: (value: unknown, meta: Meta, registry?: Command
|
|
|
352
358
|
since?: string | undefined;
|
|
353
359
|
until?: string | undefined;
|
|
354
360
|
} | undefined;
|
|
361
|
+
as_of?: string | undefined;
|
|
362
|
+
stale?: boolean | undefined;
|
|
355
363
|
ranking?: {
|
|
356
364
|
applied: boolean;
|
|
357
365
|
reason_id?: string | undefined;
|
package/dist/answers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"answers.d.ts","sourceRoot":"","sources":["../src/answers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAEvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"answers.d.ts","sourceRoot":"","sources":["../src/answers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAEvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAuB,CAAA;AAEhD,eAAO,MAAM,YAAY,SAAS,MAAM,MAAM,UAAoB,MAAM,KAAkB,CAAC,MAAM,IAAI,CAGpG,CAAA;AAED,8GAA8G;AAC9G,eAAO,MAAM,UAAU,UAAW,OAAO,QAAQ,IAAI,aAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAexE,CAAA"}
|
package/dist/bin/zm.js
CHANGED
|
@@ -9,10 +9,10 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.86.
|
|
12
|
+
process.stdout.write("0.86.6\n")
|
|
13
13
|
try {
|
|
14
14
|
const { wcatStart } = await import("@wirecat/cli-base/wcat/start")
|
|
15
|
-
await wcatStart({ command: "zm", version: "0.86.
|
|
15
|
+
await wcatStart({ command: "zm", version: "0.86.6" })
|
|
16
16
|
} catch {}
|
|
17
17
|
} else {
|
|
18
18
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
@@ -30,7 +30,7 @@ if (
|
|
|
30
30
|
: next(specifier, context),
|
|
31
31
|
})
|
|
32
32
|
}
|
|
33
|
-
const chunks = ["../bundle/answer-policy-
|
|
33
|
+
const chunks = ["../bundle/answer-policy-4Z6R3LUD.js","../bundle/config-4WPGSRVG.js","../bundle/folders-B2GKJOC2.js","../bundle/main-CYRBWYVQ.js","../bundle/output-file-PKA7MJEP.js","../bundle/program-ZYRTVD3A.js","../bundle/run-log-ML7ZCWXD.js","../bundle/store-connection-GZ4GVIRZ.js","../bundle/streaming-PRGWGNHY.js","../bundle/tokens-RAINS22C.js","../bundle/zoom-app-CYJ2GE4O.js"]
|
|
34
34
|
const preload = () =>
|
|
35
35
|
Promise.allSettled([
|
|
36
36
|
...chunks.map((chunk) => import(chunk)),
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
integer,
|
|
10
10
|
literal,
|
|
11
11
|
maxLength,
|
|
12
|
+
minLength,
|
|
12
13
|
minValue,
|
|
13
14
|
nullable,
|
|
14
15
|
number,
|
|
@@ -21,11 +22,12 @@ import {
|
|
|
21
22
|
safeParse,
|
|
22
23
|
strictObject,
|
|
23
24
|
string,
|
|
25
|
+
trim,
|
|
24
26
|
union
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NDBJHB6Q.js";
|
|
26
28
|
import {
|
|
27
29
|
ZM
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OTB6Q32K.js";
|
|
29
31
|
import {
|
|
30
32
|
__name
|
|
31
33
|
} from "./chunk-AEWYRB6F.js";
|
|
@@ -33,7 +35,7 @@ import {
|
|
|
33
35
|
// dist/config.js
|
|
34
36
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
35
37
|
import { CliError as CliError5, saveConfigFile } from "@wirecat/cli-base";
|
|
36
|
-
import { issueMessage, KEEP_RUNS_FOR_DAYS, KEEP_SUCCESSFUL_RUNS_FOR_DAYS, LEVELS as LEVELS2, RUNS_SIZE_LIMIT_MB, withSettingDefaults } from "@wirecat/cli-core";
|
|
38
|
+
import { issueMessage, KEEP_RUNS_FOR_DAYS, KEEP_SUCCESSFUL_RUNS_FOR_DAYS, LEVELS as LEVELS2, RUNS_SIZE_LIMIT_MB, TRANSCRIBE_ENGINES, withSettingDefaults } from "@wirecat/cli-core";
|
|
37
39
|
|
|
38
40
|
// dist/config-issues.js
|
|
39
41
|
import { checkConfigText } from "@wirecat/cli-core";
|
|
@@ -417,8 +419,11 @@ var guardCommand = /* @__PURE__ */ __name((command, env, context, confirm) => {
|
|
|
417
419
|
}, "guardCommand");
|
|
418
420
|
|
|
419
421
|
// dist/config.js
|
|
422
|
+
var SPEECH_MODEL = pipe(string(), trim(), minLength(1), maxLength(200), regex(/^[^\0\r\n]+$/));
|
|
420
423
|
var ProfileEntry = strictObject({
|
|
421
|
-
permissions: optional(record(pipe(string(), regex(/^[a-z][a-z.-]*$/)), picklist(LEVELS2)))
|
|
424
|
+
permissions: optional(record(pipe(string(), regex(/^[a-z][a-z.-]*$/)), picklist(LEVELS2))),
|
|
425
|
+
transcribe_engine: optional(picklist(TRANSCRIBE_ENGINES, "has to be local or openai")),
|
|
426
|
+
transcribe_model: optional(SPEECH_MODEL)
|
|
422
427
|
});
|
|
423
428
|
var ConfigFile = strictObject({
|
|
424
429
|
client_id: optional(nullable(pipe(string(), check((id) => id.trim() !== "" && !/\s/.test(id), "has to be a Zoom client ID, without spaces")))),
|
|
@@ -472,6 +477,15 @@ var configOf = /* @__PURE__ */ __name((file) => ({
|
|
|
472
477
|
filesTimezone: file.files_timezone ?? null,
|
|
473
478
|
profiles: Object.keys(file.profiles ?? {}).sort(),
|
|
474
479
|
permissions: Object.fromEntries(Object.entries(file.profiles ?? {}).flatMap(([name, entry]) => entry.permissions ? [[name, entry.permissions]] : [])),
|
|
480
|
+
transcription: Object.fromEntries(Object.entries(file.profiles ?? {}).flatMap(([name, { transcribe_engine, transcribe_model }]) => transcribe_engine || transcribe_model ? [
|
|
481
|
+
[
|
|
482
|
+
name,
|
|
483
|
+
{
|
|
484
|
+
...transcribe_engine ? { transcribe_engine } : {},
|
|
485
|
+
...transcribe_model ? { transcribe_model } : {}
|
|
486
|
+
}
|
|
487
|
+
]
|
|
488
|
+
] : [])),
|
|
475
489
|
...file.context_sources === void 0 ? {} : { contextSources: file.context_sources },
|
|
476
490
|
...file.record === void 0 ? {} : { record: file.record },
|
|
477
491
|
...file.keep_runs_for_days === void 0 ? {} : { keepRunsForDays: file.keep_runs_for_days },
|
|
@@ -541,6 +555,25 @@ var setConfig = /* @__PURE__ */ __name((path, key, value, profile, permissionKey
|
|
|
541
555
|
profileEntry(raw, name).permissions = parsePermissions(value, permissionKeys2 ?? /* @__PURE__ */ new Set());
|
|
542
556
|
return;
|
|
543
557
|
}
|
|
558
|
+
case "transcribe_engine": {
|
|
559
|
+
const name = profile?.();
|
|
560
|
+
if (!name)
|
|
561
|
+
throw new CliError5("validation_error", "name a profile: `zm <profile> config set transcribe_engine \u2026`");
|
|
562
|
+
if (!TRANSCRIBE_ENGINES.includes(value))
|
|
563
|
+
throw new CliError5("validation_error", "transcribe_engine has to be local or openai");
|
|
564
|
+
profileEntry(raw, name).transcribe_engine = value;
|
|
565
|
+
return;
|
|
566
|
+
}
|
|
567
|
+
case "transcribe_model": {
|
|
568
|
+
const name = profile?.();
|
|
569
|
+
if (!name)
|
|
570
|
+
throw new CliError5("validation_error", "name a profile: `zm <profile> config set transcribe_model \u2026`");
|
|
571
|
+
const model = safeParse(SPEECH_MODEL, value);
|
|
572
|
+
if (!model.success)
|
|
573
|
+
throw new CliError5("validation_error", "transcribe_model has to be the service's speech model, one line");
|
|
574
|
+
profileEntry(raw, name).transcribe_model = model.output;
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
544
577
|
case "context.sources": {
|
|
545
578
|
const broken = issues.find((issue) => issue.at[0] === "context_sources");
|
|
546
579
|
if (broken)
|
|
@@ -613,12 +646,13 @@ var unsetConfig = /* @__PURE__ */ __name((path, key, profile, permissionKeys2) =
|
|
|
613
646
|
}
|
|
614
647
|
return at.join(".");
|
|
615
648
|
}), "unsetConfig");
|
|
649
|
+
var PROFILE_SETTINGS = /* @__PURE__ */ new Set(["permissions", "transcribe_engine", "transcribe_model"]);
|
|
616
650
|
var profileSettingAt = /* @__PURE__ */ __name((key, profile) => {
|
|
617
|
-
if (key
|
|
651
|
+
if (!PROFILE_SETTINGS.has(key) && !key.startsWith("permissions."))
|
|
618
652
|
throw new CliError5("validation_error", "unknown config key");
|
|
619
653
|
if (!profile)
|
|
620
654
|
throw new CliError5("validation_error", `name a profile: \`zm <profile> config unset ${key}\``);
|
|
621
|
-
return key
|
|
655
|
+
return PROFILE_SETTINGS.has(key) ? ["profiles", profile, key] : ["profiles", profile, "permissions", key.slice("permissions.".length)];
|
|
622
656
|
}, "profileSettingAt");
|
|
623
657
|
var addProfile = /* @__PURE__ */ __name((path, profile) => {
|
|
624
658
|
if (readConfig(path).profiles.includes(profile))
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
pathOf,
|
|
5
5
|
profileAccountKey,
|
|
6
6
|
profilePattern
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3U2PDJ5Q.js";
|
|
8
8
|
import {
|
|
9
9
|
array,
|
|
10
10
|
boolean,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
strictObject,
|
|
24
24
|
string,
|
|
25
25
|
union
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NDBJHB6Q.js";
|
|
27
27
|
import {
|
|
28
28
|
checkCancelled
|
|
29
29
|
} from "./chunk-WSGD5Q6L.js";
|
|
@@ -84,10 +84,12 @@ var wavFor = /* @__PURE__ */ __name(async (file, options = {}) => {
|
|
|
84
84
|
if (!error)
|
|
85
85
|
return resolve();
|
|
86
86
|
if (error.code === "ENOENT")
|
|
87
|
-
return reject(new CliError("configuration_error", "decoding a recording that is not WAV needs ffmpeg on PATH; zm does not install it"));
|
|
87
|
+
return reject(new CliError("configuration_error", "decoding a recording that is not WAV needs ffmpeg on PATH; zm does not install it", { reason: "audio.needs-ffmpeg" }));
|
|
88
88
|
if (options.signal?.aborted)
|
|
89
89
|
return reject(new CliError("cancelled", "decoding was cancelled"));
|
|
90
|
-
reject(new CliError("validation_error", `ffmpeg could not decode the file: ${String(err).trim().slice(0, 300)}
|
|
90
|
+
reject(new CliError("validation_error", `ffmpeg could not decode the file: ${String(err).trim().slice(0, 300)}`, {
|
|
91
|
+
reason: "audio.unreadable"
|
|
92
|
+
}));
|
|
91
93
|
}));
|
|
92
94
|
return { path, decoded: true, release };
|
|
93
95
|
} catch (error) {
|
|
@@ -98,9 +100,9 @@ var wavFor = /* @__PURE__ */ __name(async (file, options = {}) => {
|
|
|
98
100
|
|
|
99
101
|
// dist/local-transcription.js
|
|
100
102
|
var validateLocalTranscriptionOptions = /* @__PURE__ */ __name((input) => {
|
|
101
|
-
const options =
|
|
103
|
+
const { engine, ...options } = input;
|
|
102
104
|
if (typeof options.model !== "string" || !options.model.trim() || options.model.length > 200 || /[\0\r\n]/.test(options.model))
|
|
103
|
-
throw new CliError2("validation_error", "local transcription requires an explicit speech model");
|
|
105
|
+
throw new CliError2("validation_error", "local transcription requires an explicit speech model: --model <model> (see zm models list), or the profile's own service with transcribe_engine openai");
|
|
104
106
|
if (options.modelsDirectory !== void 0 && (typeof options.modelsDirectory !== "string" || !isAbsolute(options.modelsDirectory) || options.modelsDirectory.length > 4096 || /[\0\r\n]/.test(options.modelsDirectory)))
|
|
105
107
|
throw new CliError2("validation_error", "speech model directory must be an absolute bounded path");
|
|
106
108
|
for (const [value, max, label] of [
|
|
@@ -114,7 +116,7 @@ var validateLocalTranscriptionOptions = /* @__PURE__ */ __name((input) => {
|
|
|
114
116
|
for (const value of [options.apply, options.dryRun])
|
|
115
117
|
if (value !== void 0 && typeof value !== "boolean")
|
|
116
118
|
throw new CliError2("validation_error", "transcription apply and dry-run options must be booleans");
|
|
117
|
-
return options;
|
|
119
|
+
return engine ? { ...options, engine } : options;
|
|
118
120
|
}, "validateLocalTranscriptionOptions");
|
|
119
121
|
var compactLocalTranscriptionReceipt = /* @__PURE__ */ __name((receipt) => {
|
|
120
122
|
const append = receipt.append;
|
|
@@ -151,6 +153,8 @@ var loadSpeech = /* @__PURE__ */ __name(async () => {
|
|
|
151
153
|
return { describe: speech.localSpeechRecognitionModel, open: speech.openLocalSpeechRecognizer };
|
|
152
154
|
}, "loadSpeech");
|
|
153
155
|
var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
|
|
156
|
+
if (options.engine)
|
|
157
|
+
return serviceTranscriptionSource(file, options.engine);
|
|
154
158
|
const selected = { ...options, ...options.env ? { env: { ...options.env } } : {} };
|
|
155
159
|
let plan;
|
|
156
160
|
let recognition;
|
|
@@ -205,6 +209,36 @@ var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
|
|
|
205
209
|
}
|
|
206
210
|
};
|
|
207
211
|
}, "createWavTranscriptionSource");
|
|
212
|
+
var serviceTranscriptionSource = /* @__PURE__ */ __name((file, engine) => {
|
|
213
|
+
let plan;
|
|
214
|
+
const recognition = Object.freeze({
|
|
215
|
+
engine: engine.recognition.engine,
|
|
216
|
+
model: engine.recognition.model,
|
|
217
|
+
timing: "fixed-windows"
|
|
218
|
+
});
|
|
219
|
+
return {
|
|
220
|
+
async describe(context) {
|
|
221
|
+
checkCancelled(context.signal);
|
|
222
|
+
plan = await preflightWavAudio(file, context);
|
|
223
|
+
return Object.freeze({ ...plan.media, recognition });
|
|
224
|
+
},
|
|
225
|
+
async *segments(media, context) {
|
|
226
|
+
if (!plan || media.contentHash !== plan.media.contentHash || media.id !== plan.media.id || media.size !== plan.media.size || media.durationMs !== plan.media.durationMs || media.recognition.engine !== recognition.engine || media.recognition.model !== recognition.model)
|
|
227
|
+
throw new CliError2("validation_error", "transcription media descriptor does not match its prepared audio");
|
|
228
|
+
const audio = await openWavAudio(plan, context);
|
|
229
|
+
try {
|
|
230
|
+
for await (const window of audio.windows()) {
|
|
231
|
+
checkCancelled(context.signal);
|
|
232
|
+
const heard = await engine.recognize({ samples: window.samples, rate: 16e3 });
|
|
233
|
+
checkCancelled(context.signal);
|
|
234
|
+
yield { startMs: window.startMs, endMs: window.endMs, text: heard.map(({ text: text2 }) => text2).join(" ") };
|
|
235
|
+
}
|
|
236
|
+
} finally {
|
|
237
|
+
await audio.close();
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
}, "serviceTranscriptionSource");
|
|
208
242
|
var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input = {}) => {
|
|
209
243
|
const accountId = store.accountId;
|
|
210
244
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
@@ -231,7 +265,8 @@ var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input
|
|
|
231
265
|
model: request.model,
|
|
232
266
|
modelsDirectory: request.modelsDirectory,
|
|
233
267
|
env: options.env,
|
|
234
|
-
speech: options.speech
|
|
268
|
+
speech: options.speech,
|
|
269
|
+
...request.engine ? { engine: request.engine } : {}
|
|
235
270
|
});
|
|
236
271
|
const { transcribeMeeting } = await import("@wirecat/cli-core");
|
|
237
272
|
return await transcribeMeeting(source, {
|
|
@@ -1183,10 +1218,10 @@ export {
|
|
|
1183
1218
|
runsLong,
|
|
1184
1219
|
commandDeadline,
|
|
1185
1220
|
sharedExecution,
|
|
1186
|
-
validateUnifiedSearch,
|
|
1187
|
-
runUnifiedSearch,
|
|
1188
1221
|
validateLocalTranscriptionOptions,
|
|
1189
1222
|
compactLocalTranscriptionReceipt,
|
|
1223
|
+
validateUnifiedSearch,
|
|
1224
|
+
runUnifiedSearch,
|
|
1190
1225
|
validateEvidenceOptions,
|
|
1191
1226
|
validatePersonContext,
|
|
1192
1227
|
validateTaskKind,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
REDIRECT
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I3SXY7RX.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-AEWYRB6F.js";
|
|
@@ -246,6 +246,20 @@ function regex(requirement, message$1) {
|
|
|
246
246
|
}
|
|
247
247
|
__name(regex, "regex");
|
|
248
248
|
// @__NO_SIDE_EFFECTS__
|
|
249
|
+
function trim() {
|
|
250
|
+
return {
|
|
251
|
+
kind: "transformation",
|
|
252
|
+
type: "trim",
|
|
253
|
+
reference: trim,
|
|
254
|
+
async: false,
|
|
255
|
+
"~run"(dataset) {
|
|
256
|
+
dataset.value = dataset.value.trim();
|
|
257
|
+
return dataset;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
__name(trim, "trim");
|
|
262
|
+
// @__NO_SIDE_EFFECTS__
|
|
249
263
|
function getFallback(schema2, dataset, config$1) {
|
|
250
264
|
return typeof schema2.fallback === "function" ? schema2.fallback(dataset, config$1) : schema2.fallback;
|
|
251
265
|
}
|
|
@@ -890,6 +904,7 @@ export {
|
|
|
890
904
|
minLength,
|
|
891
905
|
minValue,
|
|
892
906
|
regex,
|
|
907
|
+
trim,
|
|
893
908
|
array,
|
|
894
909
|
boolean,
|
|
895
910
|
custom,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
|
|
4
4
|
// dist/version.js
|
|
5
|
-
var VERSION = "0.86.
|
|
5
|
+
var VERSION = "0.86.6";
|
|
6
6
|
|
|
7
7
|
// dist/identity.js
|
|
8
8
|
var CLIENT_ID_MISSING = "zoom.client-id-missing";
|
|
@@ -27,7 +27,8 @@ var ZOOM_HOSTS = ["zoom.us", "*.zoom.us", "zoom.com", "*.zoom.com"];
|
|
|
27
27
|
var DESKTOP = {
|
|
28
28
|
...ZM,
|
|
29
29
|
docs: "https://wirecat.dev/en/docs/zm",
|
|
30
|
-
|
|
30
|
+
// api.openai.com only when a profile sets transcribe_engine openai, through cli-core's speech code.
|
|
31
|
+
hosts: [...ZOOM_HOSTS, "api.openai.com"],
|
|
31
32
|
// One port per WireCat tool, so two servers never collide (wirecat-desktop docs/dev/cli-registry.md).
|
|
32
33
|
mcpPort: 8752,
|
|
33
34
|
tagline: "Zoom transcripts and recordings, searchable",
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
readConfig,
|
|
11
11
|
setConfig,
|
|
12
12
|
unsetConfig
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-3U2PDJ5Q.js";
|
|
14
|
+
import "./chunk-NDBJHB6Q.js";
|
|
15
15
|
import "./chunk-7O7XM37N.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-I3SXY7RX.js";
|
|
17
|
+
import "./chunk-OTB6Q32K.js";
|
|
18
18
|
import "./chunk-AEWYRB6F.js";
|
|
19
19
|
export {
|
|
20
20
|
ZOOM_SETTINGS,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
VERSION,
|
|
9
9
|
ZM,
|
|
10
10
|
ZOOM_HOSTS
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OTB6Q32K.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-AEWYRB6F.js";
|
|
@@ -26,19 +26,19 @@ dropOwnFolderOverrides();
|
|
|
26
26
|
await startCli({
|
|
27
27
|
app: ZM,
|
|
28
28
|
run: /* @__PURE__ */ __name(async (entry) => {
|
|
29
|
-
answerPolicy = await import("./answer-policy-
|
|
29
|
+
answerPolicy = await import("./answer-policy-4Z6R3LUD.js");
|
|
30
30
|
const [{ runsDirFor }, { readConfig }, { isMovedZmRun, legacyLoginService, moveLegacyFolders, zmPaths }, { writeExportFile }, { run }, { lazyRunLog }, { createStoreConnector }, { writeStream }, { TOKEN_LOG_ALLOW }, { TokenManager }, { zoomClientId }] = await Promise.all([
|
|
31
31
|
import("@wirecat/cli-core"),
|
|
32
|
-
import("./config-
|
|
32
|
+
import("./config-4WPGSRVG.js"),
|
|
33
33
|
import("./folders-B2GKJOC2.js"),
|
|
34
34
|
import("./output-file-PKA7MJEP.js"),
|
|
35
|
-
import("./program-
|
|
35
|
+
import("./program-ZYRTVD3A.js"),
|
|
36
36
|
import("./run-log-ML7ZCWXD.js"),
|
|
37
|
-
import("./store-connection-
|
|
37
|
+
import("./store-connection-GZ4GVIRZ.js"),
|
|
38
38
|
import("./streaming-PRGWGNHY.js"),
|
|
39
39
|
import("@wirecat/cli-core"),
|
|
40
|
-
import("./tokens-
|
|
41
|
-
import("./zoom-app-
|
|
40
|
+
import("./tokens-RAINS22C.js"),
|
|
41
|
+
import("./zoom-app-CYJ2GE4O.js")
|
|
42
42
|
]);
|
|
43
43
|
moveLegacyFolders();
|
|
44
44
|
const paths = zmPaths();
|