@wirecat/zoom-cli 0.64.0 → 0.65.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/dist/answer-entities.d.ts +13 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +5 -0
- package/dist/answer-entities.js.map +1 -1
- package/dist/answers.d.ts +8 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/archive-import.d.ts +1 -1
- package/dist/archive-import.d.ts.map +1 -1
- package/dist/archive-import.js +2 -1
- package/dist/archive-import.js.map +1 -1
- package/dist/bin/zm.js +6 -2
- package/dist/bundle/{all-profiles-W2OVBZ7S.js → all-profiles-SKMLZJSY.js} +8 -8
- package/dist/bundle/answer-policy-BHDNSJWX.js +96 -0
- package/dist/bundle/{anthropic-P4BKQNBO.js → anthropic-TVHK7CY2.js} +4 -4
- package/dist/bundle/{app-server-AYUW45ND.js → app-server-44ASFH47.js} +53 -52
- package/dist/bundle/{bun-MNGPTYDQ.js → bun-O4WHGL2F.js} +2 -2
- package/dist/bundle/{bun-sqlite-PTPUSXAO.js → bun-sqlite-NS32GMM4.js} +3 -3
- package/dist/bundle/{chunk-CZKV4USJ.js → chunk-24F7JBLY.js} +59 -4
- package/dist/bundle/{chunk-A2FOW3ZC.js → chunk-25IDWPEN.js} +148 -97
- package/dist/bundle/{chunk-BMYZWBAX.js → chunk-266WOOB3.js} +4 -4
- package/dist/bundle/{chunk-23LOMA2I.js → chunk-2H5SXK7K.js} +45 -25
- package/dist/bundle/{chunk-24WCZURP.js → chunk-37PHGASE.js} +2 -2
- package/dist/bundle/{chunk-WFIJOFS5.js → chunk-3CZIWGZ6.js} +1 -1
- package/dist/bundle/{chunk-BO5YVG3X.js → chunk-5NGOP4EZ.js} +125 -35
- package/dist/bundle/{chunk-BWPKSUXW.js → chunk-6CS7ETBK.js} +4496 -386
- package/dist/bundle/{chunk-LEQCRVPD.js → chunk-7SQJCKR6.js} +1 -1
- package/dist/bundle/{chunk-RK3JBC4U.js → chunk-A6OA2EH2.js} +2 -2
- package/dist/bundle/{chunk-QK54GOGE.js → chunk-AMMD6YCJ.js} +7 -9
- package/dist/bundle/chunk-BLT3LR3U.js +34 -0
- package/dist/bundle/{chunk-X6M5DK66.js → chunk-BNXH73OU.js} +10 -10
- package/dist/bundle/{chunk-RJLNVHIU.js → chunk-BWRBALXG.js} +3 -3
- package/dist/bundle/{chunk-UFI5SX3F.js → chunk-C6BG57FA.js} +11 -11
- package/dist/bundle/{chunk-IIGXCYEL.js → chunk-CNEE6TPE.js} +13 -13
- package/dist/bundle/{chunk-TYKZCJD7.js → chunk-CVCRQW3A.js} +35 -35
- package/dist/bundle/{chunk-UCPL55YP.js → chunk-DNCKH7CO.js} +17 -17
- package/dist/bundle/{chunk-L4JGVSBN.js → chunk-DYJXAY7Q.js} +26 -25
- package/dist/bundle/{chunk-UABUBDYB.js → chunk-EA63UGWE.js} +2 -2
- package/dist/bundle/{chunk-UNO4G5NX.js → chunk-ERPRAYA7.js} +5 -5
- package/dist/bundle/{chunk-CZFV6XTW.js → chunk-FYJL276J.js} +3 -3
- package/dist/bundle/{chunk-YNYMWXXH.js → chunk-FYM27FCG.js} +32 -9
- package/dist/bundle/{chunk-H65B6A7Y.js → chunk-GBZF4IIP.js} +8 -8
- package/dist/bundle/{chunk-JRPYHDCO.js → chunk-GEX4V5TM.js} +4 -4
- package/dist/bundle/{chunk-5BCNJB2A.js → chunk-GMTXCFI7.js} +668 -504
- package/dist/bundle/{chunk-JM43EKTY.js → chunk-GXCNCMUY.js} +1896 -651
- package/dist/bundle/{chunk-FSYO3PUW.js → chunk-H7762LDA.js} +2 -2
- package/dist/bundle/{chunk-C3RRIJ5C.js → chunk-IPTI3Y2E.js} +6 -41
- package/dist/bundle/{chunk-7NDSBTKR.js → chunk-JF7ZEUXU.js} +34 -26
- package/dist/bundle/{chunk-5YLR24D5.js → chunk-K6ATTKQR.js} +13 -6
- package/dist/bundle/{chunk-R4NTPYXZ.js → chunk-KYLS5QGC.js} +2 -2
- package/dist/bundle/{chunk-OPP5CWAX.js → chunk-KZE3G4ZT.js} +34 -33
- package/dist/bundle/{chunk-I5QX2HAT.js → chunk-LOL6JYYN.js} +211 -106
- package/dist/bundle/{chunk-COTC7HF3.js → chunk-LPUFOWL3.js} +1 -1
- package/dist/bundle/{chunk-AF4HONAZ.js → chunk-M6IDHQ7N.js} +6402 -4395
- package/dist/bundle/{chunk-Y7TWNMTW.js → chunk-MH7AWCB4.js} +178 -49
- package/dist/bundle/{chunk-ZW4N73FO.js → chunk-MIB5X2XW.js} +3 -3
- package/dist/bundle/{chunk-Q3EDUZ5R.js → chunk-MPKKIL3U.js} +15 -12
- package/dist/bundle/{chunk-JMSKDW5G.js → chunk-MRWIXUYT.js} +2 -2
- package/dist/bundle/{chunk-HIGFBTEI.js → chunk-MZ6U6HNJ.js} +2 -2
- package/dist/bundle/{chunk-7SWNZ44U.js → chunk-NJSIHMAE.js} +2 -2
- package/dist/bundle/{chunk-HQHYPKSU.js → chunk-NNNEVWFF.js} +44 -31
- package/dist/bundle/{chunk-TJH5IQVZ.js → chunk-NO24PJNW.js} +1 -1
- package/dist/bundle/{chunk-7D56BQZL.js → chunk-OXUHTKO2.js} +2 -2
- package/dist/bundle/{chunk-IIP4J3PD.js → chunk-PV3UDPCI.js} +82 -6
- package/dist/bundle/{chunk-5FN4Q5H5.js → chunk-QI7BZS2G.js} +8 -13
- package/dist/bundle/{chunk-SMT6SFBK.js → chunk-QLCYAQ66.js} +2 -2
- package/dist/bundle/{chunk-PBJY5VR6.js → chunk-R5BAF5XE.js} +1 -1
- package/dist/bundle/{chunk-7VJIKJNW.js → chunk-RZLNHNSS.js} +8 -8
- package/dist/bundle/{chunk-3DGQJASQ.js → chunk-S4GDDO5S.js} +1 -1
- package/dist/bundle/{chunk-AAC6VNSL.js → chunk-SQWRZZOQ.js} +3 -3
- package/dist/bundle/{chunk-63MRRNDL.js → chunk-T3KICUOK.js} +6 -6
- package/dist/bundle/{chunk-7EOW47PV.js → chunk-TC7PD3LH.js} +4 -4
- package/dist/bundle/{chunk-XZSQLVED.js → chunk-TUIEDVI6.js} +2 -2
- package/dist/bundle/{chunk-H5LLZ5XA.js → chunk-U3ZUT557.js} +1 -1
- package/dist/bundle/{chunk-4XVRA6P5.js → chunk-U4RVOSX3.js} +1 -1
- package/dist/bundle/{chunk-EQYPTGCT.js → chunk-U5ASRBBF.js} +6 -4
- package/dist/bundle/{chunk-3IMEAZIM.js → chunk-UKU6MYUI.js} +4 -4
- package/dist/bundle/{chunk-J25UNZIL.js → chunk-UMHJZWZU.js} +9 -9
- package/dist/bundle/{chunk-HQHUPTZR.js → chunk-UPJXN2CO.js} +1308 -635
- package/dist/bundle/{chunk-OWXMQVVN.js → chunk-VH4F2EK4.js} +1 -1
- package/dist/bundle/{chunk-TJODNJKE.js → chunk-VJTGYBJJ.js} +18 -13
- package/dist/bundle/{chunk-54UEJGYB.js → chunk-VW2SW7ME.js} +3 -3
- package/dist/bundle/{chunk-2UONVSJQ.js → chunk-WLSF3GCC.js} +2 -2
- package/dist/bundle/{chunk-H3DMYF3W.js → chunk-XJQB47IL.js} +4 -4
- package/dist/bundle/{chunk-JZKNHA44.js → chunk-Y3EIK4XW.js} +1 -1
- package/dist/bundle/{chunk-3AAO5N4L.js → chunk-Z5424QL6.js} +2 -2
- package/dist/bundle/{chunk-K6OSD6DG.js → chunk-ZFNM3FNI.js} +75 -33
- package/dist/bundle/{chunk-SJIBJQJN.js → chunk-ZH743WNV.js} +40 -12
- package/dist/bundle/{chunk-JJZAGKUK.js → chunk-ZOGYTDHG.js} +2 -2
- package/dist/bundle/{chunk-6NBQJJT6.js → chunk-ZREFYKUB.js} +7 -7
- package/dist/bundle/{chunk-KJCCT3QY.js → chunk-ZXGRK44F.js} +14 -13
- package/dist/bundle/{cli-Y2ZO3D5U.js → cli-FDO6CP6R.js} +105 -59
- package/dist/bundle/command-contract-O4FDXM4U.js +37 -0
- package/dist/bundle/config-UBHKZG3J.js +78 -0
- package/dist/bundle/{decode-GO6GAYH2.js → decode-7SZI3TGZ.js} +3 -3
- package/dist/bundle/{dist-MIJKAGXW.js → dist-5GWUXW27.js} +18 -14
- package/dist/bundle/{echarts-NWK7LALR.js → echarts-FMACRZQC.js} +2 -2
- package/dist/bundle/{embed-2DOSN4DV.js → embed-24YSXHLP.js} +4 -4
- package/dist/bundle/{embedder-3Q3C2WKC.js → embedder-MEXN2TFB.js} +7 -7
- package/dist/bundle/{first-run-S75VKIT3.js → first-run-OCVEJH63.js} +8 -8
- package/dist/bundle/first-screen-KJIU25MH.js +35 -0
- package/dist/bundle/{folders-RSWEBHDZ.js → folders-DBAAMU26.js} +2 -2
- package/dist/bundle/{instructions-M3FZPQVI.js → instructions-E5FXYCWF.js} +1 -1
- package/dist/bundle/{main-R77BPRRS.js → main-EIUCXXDW.js} +17 -16
- package/dist/bundle/{mcp-YJEQYYTR.js → mcp-FUSDPAOL.js} +2 -2
- package/dist/bundle/{meetings-IV4Y4WRH.js → meetings-JDTRGXZJ.js} +16 -6
- package/dist/bundle/{node-I3GEHYGL.js → node-4SNKUPXT.js} +2 -2
- package/dist/bundle/{node-sqlite-W6MR2TVQ.js → node-sqlite-O4BAODFR.js} +9 -3
- package/dist/bundle/{oauth-M6YL4QXP.js → oauth-3YLHXGUW.js} +5 -5
- package/dist/bundle/{open-2VITLJAN.js → open-QGRMSNM2.js} +3 -2
- package/dist/bundle/{openai-OG6B3JCU.js → openai-7PSCSTH7.js} +9 -9
- package/dist/bundle/{output-file-XJJ3XMLQ.js → output-file-J26UQKRA.js} +3 -3
- package/dist/bundle/{process-UBA4L4B2.js → process-HQZOTT6U.js} +1 -1
- package/dist/bundle/{program-5R5MRXUM.js → program-47DT7SHE.js} +75 -75
- package/dist/bundle/{prompt-AVIXIM7Z.js → prompt-IUD7HCDC.js} +3 -3
- package/dist/bundle/{recognize-DJKTJOYU.js → recognize-DMJJHHXF.js} +2 -2
- package/dist/bundle/{remote-S3DTNYRP.js → remote-5WFSOVVB.js} +5 -5
- package/dist/bundle/{rerank-FMCDP6VF.js → rerank-UKQ65ECH.js} +5 -5
- package/dist/bundle/{run-log-T4MV2VEH.js → run-log-UGYL6NW2.js} +53 -53
- package/dist/bundle/{serve-5SGFJFMC.js → serve-WAOSED3I.js} +9 -8
- package/dist/bundle/server-HAXN772R.js +66 -0
- package/dist/bundle/{server-PCMCY7WK.js → server-NWZFNXC5.js} +42 -42
- package/dist/bundle/{services-SKRQ2POT.js → services-VPANRE72.js} +101 -28
- package/dist/bundle/{speech-FSDICIKO.js → speech-O6UNUDRW.js} +11 -11
- package/dist/bundle/{state-KPUSPWO6.js → state-BNE7I65A.js} +4 -4
- package/dist/bundle/{store-7MP2ZGQ7.js → store-4IIVSCJ4.js} +37 -18
- package/dist/bundle/{store-W7LFPKG2.js → store-QQH4FJXJ.js} +14 -13
- package/dist/bundle/store-connection-PPEQK2K3.js +76 -0
- package/dist/bundle/store-maintenance-command-JZXCT6NY.js +56 -0
- package/dist/bundle/{streaming-Q44ESD3E.js → streaming-S4EZB6P2.js} +4 -4
- package/dist/bundle/{tokens-TAFCHANI.js → tokens-VCXIH7WZ.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +1 -0
- package/dist/local-transcription.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-HOA43GNA.js +0 -96
- package/dist/bundle/chunk-JRPAZ2WD.js +0 -3635
- package/dist/bundle/command-contract-DGTZIH2F.js +0 -38
- package/dist/bundle/config-N2UHDKGG.js +0 -78
- package/dist/bundle/first-screen-DQNRT6GH.js +0 -36
- package/dist/bundle/server-EYGZLKKQ.js +0 -66
- package/dist/bundle/store-connection-3HNZFJC4.js +0 -76
- package/dist/bundle/store-maintenance-command-6WBLTUZP.js +0 -55
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
singleLine,
|
|
9
9
|
visibleControls
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
16
16
|
import { styleText } from "node:util";
|
|
17
17
|
var TIME_WIDTH = 8;
|
|
18
18
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -1,56 +1,24 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
annotate,
|
|
4
|
+
answerEntitySchema,
|
|
5
|
+
answerProjectionSchema,
|
|
8
6
|
answerSchema,
|
|
9
7
|
describeOptions,
|
|
10
8
|
metaOf
|
|
11
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6CS7ETBK.js";
|
|
12
10
|
import {
|
|
13
11
|
keyForCommand
|
|
14
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OXUHTKO2.js";
|
|
15
13
|
import {
|
|
16
14
|
CliError,
|
|
17
15
|
jsonSchemaOf
|
|
18
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
19
17
|
import {
|
|
20
18
|
__name
|
|
21
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
20
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
-
var schemas = /* @__PURE__ */ new WeakMap();
|
|
25
|
-
var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
|
|
26
|
-
if (Object.hasOwn(ENTITIES, name))
|
|
27
|
-
throw new Error(`${name} is a shared entity; use its existing schema`);
|
|
28
|
-
if (!/^[a-z][a-z0-9_]*$/.test(name))
|
|
29
|
-
throw new Error("an answer entity needs a lowercase name");
|
|
30
|
-
if (!("entries" in schema) && schema.type !== "union")
|
|
31
|
-
throw new Error("an answer entity needs an object schema or a union of object schemas");
|
|
32
|
-
if (options.project && !("entries" in options.project) && options.project.type !== "union")
|
|
33
|
-
throw new Error("projection needs an object schema or a union of object schemas");
|
|
34
|
-
schemas.set(command, { name, schema, ...options });
|
|
35
|
-
return annotate(command, { output: { entity: name } });
|
|
36
|
-
}, "answerEntity");
|
|
37
|
-
var answerEntitySchema = /* @__PURE__ */ __name((command) => {
|
|
38
|
-
const output = command && metaOf(command).output;
|
|
39
|
-
if (!output)
|
|
40
|
-
return void 0;
|
|
41
|
-
const name = output.view ? `${output.entity}.${output.view}` : output.entity;
|
|
42
|
-
const shared = ENTITIES[name];
|
|
43
|
-
if (shared)
|
|
44
|
-
return shared;
|
|
45
|
-
const own = schemas.get(command);
|
|
46
|
-
return own?.name === name ? own.schema : void 0;
|
|
47
|
-
}, "answerEntitySchema");
|
|
48
|
-
var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
|
|
49
|
-
const own = command && schemas.get(command);
|
|
50
|
-
return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
|
|
51
|
-
}, "answerProjectionSchema");
|
|
52
|
-
|
|
53
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
54
22
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
55
23
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
56
24
|
const entity = answerEntitySchema(command);
|
|
@@ -155,9 +123,6 @@ var commandContract = /* @__PURE__ */ __name((command) => {
|
|
|
155
123
|
}, "commandContract");
|
|
156
124
|
|
|
157
125
|
export {
|
|
158
|
-
answerEntity,
|
|
159
|
-
answerEntitySchema,
|
|
160
|
-
answerProjectionSchema,
|
|
161
126
|
SCHEMA_DIALECT,
|
|
162
127
|
outputOf,
|
|
163
128
|
commandPathOf,
|
|
@@ -1872,7 +1872,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1872
1872
|
}
|
|
1873
1873
|
});
|
|
1874
1874
|
|
|
1875
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1875
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
1876
1876
|
var errorCodes = [
|
|
1877
1877
|
"validation_error",
|
|
1878
1878
|
"configuration_error",
|
|
@@ -3769,7 +3769,7 @@ function toStandardJsonSchema(schema) {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
3771
3771
|
|
|
3772
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3772
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
3773
3773
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
3774
3774
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
3775
3775
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -3811,7 +3811,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
3811
3811
|
return String(value);
|
|
3812
3812
|
}), "fill");
|
|
3813
3813
|
|
|
3814
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3814
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
3815
3815
|
var EXIT_CODES = {
|
|
3816
3816
|
validation_error: 2,
|
|
3817
3817
|
configuration_error: 3,
|
|
@@ -3831,7 +3831,7 @@ var EXIT_CODES = {
|
|
|
3831
3831
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
3832
3832
|
var GENERIC_FAILURE = 1;
|
|
3833
3833
|
|
|
3834
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3834
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
3835
3835
|
var CONTROL = (
|
|
3836
3836
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
3837
3837
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -3855,7 +3855,7 @@ var visibleControls = /* @__PURE__ */ __name((text2) => {
|
|
|
3855
3855
|
}, "visibleControls");
|
|
3856
3856
|
var singleLine = /* @__PURE__ */ __name((text2) => visibleControls(text2).replace(LINE_BREAKS, escaped), "singleLine");
|
|
3857
3857
|
|
|
3858
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3858
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
3859
3859
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
3860
3860
|
var effectsSchema = strictObject({
|
|
3861
3861
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -3863,9 +3863,11 @@ var effectsSchema = strictObject({
|
|
|
3863
3863
|
});
|
|
3864
3864
|
var writes = /* @__PURE__ */ __name((effects) => effects === void 0 || effects.remote === "write" || effects.local === "write", "writes");
|
|
3865
3865
|
|
|
3866
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3866
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
3867
3867
|
var MAX_NEXT_STEPS = 2;
|
|
3868
|
+
var COMPACT_FLAG = "--compact";
|
|
3868
3869
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
3870
|
+
var localTime = pipe(string(), regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}[+-]\d{2}:\d{2}$/, "an ISO 8601 time with its offset"));
|
|
3869
3871
|
var reference = pipe(string(), regex(/^[a-z]+:\S+$/, "a reference such as `note:42`"));
|
|
3870
3872
|
var nextStepSchema = variant("kind", [
|
|
3871
3873
|
strictObject({
|
|
@@ -3932,6 +3934,9 @@ var metaSchema = strictObject({
|
|
|
3932
3934
|
issues: optional(array(issueSchema)),
|
|
3933
3935
|
truncated: optional(boolean()),
|
|
3934
3936
|
timezone: optional(text),
|
|
3937
|
+
/** When the command answered, for an agent that plans from "now" (WC-TIME-7); `timezone` names the zone of `now_local`. */
|
|
3938
|
+
now: optional(isoTime),
|
|
3939
|
+
now_local: optional(localTime),
|
|
3935
3940
|
window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) }))
|
|
3936
3941
|
});
|
|
3937
3942
|
var nextSteps = optional(pipe(array(nextStepSchema), maxLength(MAX_NEXT_STEPS)));
|
|
@@ -3959,7 +3964,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
3959
3964
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
3960
3965
|
].join("\n"), "jsonlOf");
|
|
3961
3966
|
|
|
3962
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3967
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
3963
3968
|
var CRASH_CODE = "internal_error";
|
|
3964
3969
|
var CRASH_REASON = "command.crashed";
|
|
3965
3970
|
var errorObjectSchema = strictObject({
|
|
@@ -4046,7 +4051,7 @@ var BASE_REASONS = defineReasons([
|
|
|
4046
4051
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
4047
4052
|
]);
|
|
4048
4053
|
|
|
4049
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4054
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
4050
4055
|
var SAME_COMMAND = "*";
|
|
4051
4056
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
4052
4057
|
var stepSchema = union([
|
|
@@ -4125,7 +4130,7 @@ var STEPS = defineSteps([
|
|
|
4125
4130
|
}
|
|
4126
4131
|
]);
|
|
4127
4132
|
|
|
4128
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4133
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
4129
4134
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
4130
4135
|
if (isCliError(failure))
|
|
4131
4136
|
return failure;
|
|
@@ -4272,7 +4277,7 @@ var catchCrashes = /* @__PURE__ */ __name((options) => {
|
|
|
4272
4277
|
};
|
|
4273
4278
|
}, "catchCrashes");
|
|
4274
4279
|
|
|
4275
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4280
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
4276
4281
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
4277
4282
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
4278
4283
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -4337,7 +4342,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
4337
4342
|
return project(value, fields);
|
|
4338
4343
|
}, "projectFields");
|
|
4339
4344
|
|
|
4340
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4345
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
4341
4346
|
var BATCH_LIMITS = Object.freeze({
|
|
4342
4347
|
requests: 32,
|
|
4343
4348
|
input_bytes: 262144,
|
|
@@ -4484,7 +4489,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
4484
4489
|
};
|
|
4485
4490
|
}, "runBatch");
|
|
4486
4491
|
|
|
4487
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4492
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
4488
4493
|
import { randomBytes } from "node:crypto";
|
|
4489
4494
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
4490
4495
|
import { dirname, join } from "node:path";
|
|
@@ -4528,7 +4533,7 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
4528
4533
|
`, 384);
|
|
4529
4534
|
}, "saveConfigFile");
|
|
4530
4535
|
|
|
4531
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4536
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
4532
4537
|
import { createRequire } from "node:module";
|
|
4533
4538
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
4534
4539
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -4548,7 +4553,7 @@ var systemKeyring = {
|
|
|
4548
4553
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
4549
4554
|
};
|
|
4550
4555
|
|
|
4551
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4556
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
4552
4557
|
import { homedir, userInfo } from "node:os";
|
|
4553
4558
|
import { join as join2, posix, win32 } from "node:path";
|
|
4554
4559
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -4597,9 +4602,10 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
4597
4602
|
const owners = defaultPaths({ appName, env: { HOME: home, USERPROFILE: home }, platform });
|
|
4598
4603
|
return PATH_KINDS.some((kind) => actual[kind] !== owners[kind]);
|
|
4599
4604
|
}, "homeIsMoved");
|
|
4605
|
+
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
4600
4606
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join2(configDir, fileName), "configFilePath");
|
|
4601
4607
|
|
|
4602
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4608
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
4603
4609
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
4604
4610
|
import { join as join3, resolve } from "node:path";
|
|
4605
4611
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
@@ -4736,10 +4742,10 @@ var Credentials = class {
|
|
|
4736
4742
|
}
|
|
4737
4743
|
};
|
|
4738
4744
|
|
|
4739
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4745
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
4740
4746
|
import { appendFileSync } from "node:fs";
|
|
4741
4747
|
|
|
4742
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4748
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
4743
4749
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
4744
4750
|
var logRecordSchema = strictObject({
|
|
4745
4751
|
time: isoTime,
|
|
@@ -4817,7 +4823,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
4817
4823
|
return traceId;
|
|
4818
4824
|
}, "traceIdOf");
|
|
4819
4825
|
|
|
4820
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4826
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
4821
4827
|
var REDACTED_FIELDS = [
|
|
4822
4828
|
"authorization",
|
|
4823
4829
|
"Authorization",
|
|
@@ -4911,7 +4917,7 @@ var silent = {
|
|
|
4911
4917
|
}, "error")
|
|
4912
4918
|
};
|
|
4913
4919
|
|
|
4914
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4920
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/output-buffer.js
|
|
4915
4921
|
var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1024, fields, format } = {}) => {
|
|
4916
4922
|
if (!Number.isSafeInteger(maxOutputBytes) || maxOutputBytes < 0)
|
|
4917
4923
|
throw new CliError("validation_error", "maxOutputBytes must be a nonnegative whole byte count");
|
|
@@ -4972,7 +4978,7 @@ var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1
|
|
|
4972
4978
|
};
|
|
4973
4979
|
}, "createOutputBuffer");
|
|
4974
4980
|
|
|
4975
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4981
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
4976
4982
|
var DEFAULT_RETRY = {
|
|
4977
4983
|
retries: 1,
|
|
4978
4984
|
baseDelayMs: 250,
|
|
@@ -4984,7 +4990,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
4984
4990
|
return Math.round(random() * ceiling);
|
|
4985
4991
|
}, "backoffMs");
|
|
4986
4992
|
|
|
4987
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4993
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
4988
4994
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
4989
4995
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
4990
4996
|
if (signal?.aborted) {
|
|
@@ -4998,7 +5004,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
4998
5004
|
}, { once: true });
|
|
4999
5005
|
}), "realSleep");
|
|
5000
5006
|
|
|
5001
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5007
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/deadline.js
|
|
5002
5008
|
var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSleep } = {}) => {
|
|
5003
5009
|
if (timeoutMs !== void 0 && (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0 || timeoutMs > 2147483647))
|
|
5004
5010
|
throw new CliError("validation_error", "timeoutMs must be an integer from zero through 2147483647");
|
|
@@ -5082,7 +5088,7 @@ var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSl
|
|
|
5082
5088
|
};
|
|
5083
5089
|
}, "createDeadline");
|
|
5084
5090
|
|
|
5085
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5091
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
5086
5092
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
5087
5093
|
import { styleText } from "node:util";
|
|
5088
5094
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -5157,7 +5163,7 @@ var BORDERLESS = {
|
|
|
5157
5163
|
middle: ""
|
|
5158
5164
|
};
|
|
5159
5165
|
|
|
5160
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5166
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
5161
5167
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
5162
5168
|
if (signal?.aborted)
|
|
5163
5169
|
return Promise.reject(signal.reason);
|
|
@@ -5185,7 +5191,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
5185
5191
|
});
|
|
5186
5192
|
}, "waitForDrain");
|
|
5187
5193
|
|
|
5188
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5194
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
5189
5195
|
var processStreams = {
|
|
5190
5196
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
5191
5197
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -5214,7 +5220,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
5214
5220
|
};
|
|
5215
5221
|
}, "captureStreams");
|
|
5216
5222
|
|
|
5217
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5223
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
5218
5224
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
5219
5225
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
5220
5226
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -5316,6 +5322,7 @@ export {
|
|
|
5316
5322
|
duplicates,
|
|
5317
5323
|
jsonSchemaOf,
|
|
5318
5324
|
MAX_NEXT_STEPS,
|
|
5325
|
+
COMPACT_FLAG,
|
|
5319
5326
|
isoTime,
|
|
5320
5327
|
reference,
|
|
5321
5328
|
pageSchema,
|
|
@@ -5347,6 +5354,7 @@ export {
|
|
|
5347
5354
|
systemKeyring,
|
|
5348
5355
|
resolvePaths,
|
|
5349
5356
|
pathsAreOverridden,
|
|
5357
|
+
isMovedRun,
|
|
5350
5358
|
configFilePath,
|
|
5351
5359
|
Credentials,
|
|
5352
5360
|
realSleep,
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
modelsDirectory,
|
|
8
8
|
speechModel,
|
|
9
9
|
vadPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U5ASRBBF.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/speech/local.js
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
import { isAbsolute } from "node:path";
|
|
21
21
|
import { setImmediate } from "node:timers/promises";
|
|
@@ -35,7 +35,14 @@ var localSpeechRecognitionModel = /* @__PURE__ */ __name((id) => {
|
|
|
35
35
|
vad: VAD.sha256,
|
|
36
36
|
featureDim: model.featureDim
|
|
37
37
|
})).digest("hex");
|
|
38
|
-
return Object.freeze({
|
|
38
|
+
return Object.freeze({
|
|
39
|
+
engine: "sherpa-onnx",
|
|
40
|
+
model: model.id,
|
|
41
|
+
version,
|
|
42
|
+
...model.language === void 0 ? {} : { language: model.language },
|
|
43
|
+
sampleRate: 16e3,
|
|
44
|
+
maxChunkSamples: 48e4
|
|
45
|
+
});
|
|
39
46
|
}, "localSpeechRecognitionModel");
|
|
40
47
|
var notInstalled = /* @__PURE__ */ __name((id) => new CliError("not_found", `speech model ${id} is not installed; download it explicitly with a WireCat messenger's models download command`, { reason: "model.not-downloaded", model: id }), "notInstalled");
|
|
41
48
|
var recognizeLocalPieces = /* @__PURE__ */ __name(async (id, audio, options = {}) => {
|
|
@@ -43,7 +50,7 @@ var recognizeLocalPieces = /* @__PURE__ */ __name(async (id, audio, options = {}
|
|
|
43
50
|
const directory = options.directory ?? modelsDirectory(options.env);
|
|
44
51
|
if (!isInstalled(model, directory))
|
|
45
52
|
throw notInstalled(model.id);
|
|
46
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
53
|
+
const { openRecognizer, toModelRate } = await import("./recognize-DMJJHHXF.js");
|
|
47
54
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
48
55
|
try {
|
|
49
56
|
if (!engine.pieces)
|
|
@@ -64,7 +71,7 @@ var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) =>
|
|
|
64
71
|
cancelled(options.signal);
|
|
65
72
|
if (!isInstalled(model, directory))
|
|
66
73
|
throw notInstalled(description.model);
|
|
67
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
74
|
+
const { openRecognizer, toModelRate } = await import("./recognize-DMJJHHXF.js");
|
|
68
75
|
cancelled(options.signal);
|
|
69
76
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
70
77
|
let closing = false;
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NNNEVWFF.js";
|
|
24
24
|
import {
|
|
25
25
|
CHART_KINDS,
|
|
26
26
|
CHART_SIZE,
|
|
@@ -34,26 +34,26 @@ import {
|
|
|
34
34
|
registerPrompts,
|
|
35
35
|
stdinFieldOf,
|
|
36
36
|
syncsFirst
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ZFNM3FNI.js";
|
|
38
38
|
import {
|
|
39
39
|
agentJson,
|
|
40
40
|
skillResource
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-VJTGYBJJ.js";
|
|
42
42
|
import {
|
|
43
43
|
instructions
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-S4GDDO5S.js";
|
|
45
45
|
import {
|
|
46
46
|
mcpHttpMarker
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TC7PD3LH.js";
|
|
48
48
|
import {
|
|
49
49
|
answeredWire
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-U3ZUT557.js";
|
|
51
51
|
import {
|
|
52
52
|
StdioServerTransport,
|
|
53
53
|
callerOf,
|
|
54
54
|
callingAgent,
|
|
55
55
|
serveStdio
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-MZ6U6HNJ.js";
|
|
57
57
|
import {
|
|
58
58
|
McpServer,
|
|
59
59
|
ResourceTemplate
|
|
@@ -61,60 +61,60 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
connectedFor,
|
|
63
63
|
guardFor
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-5NGOP4EZ.js";
|
|
65
65
|
import {
|
|
66
66
|
lackedNeed,
|
|
67
67
|
wholeList
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-2H5SXK7K.js";
|
|
69
69
|
import {
|
|
70
70
|
capability,
|
|
71
71
|
dateWindow,
|
|
72
72
|
imageSize,
|
|
73
73
|
servicesFor,
|
|
74
74
|
storedDeps
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-M6IDHQ7N.js";
|
|
76
76
|
import {
|
|
77
77
|
findCommand
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-IPTI3Y2E.js";
|
|
79
79
|
import {
|
|
80
80
|
DEFAULT_OUTPUT_BYTES,
|
|
81
81
|
changesAuthorityAt,
|
|
82
82
|
describeProgram,
|
|
83
83
|
environmentOf,
|
|
84
|
-
fetchesOnlyAt,
|
|
85
84
|
itemOf,
|
|
86
85
|
judgedTargets,
|
|
86
|
+
readsOverMcpAt,
|
|
87
87
|
recalledAccount,
|
|
88
88
|
rootOf2 as rootOf,
|
|
89
89
|
sealed,
|
|
90
90
|
snakeKeys
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-6CS7ETBK.js";
|
|
92
92
|
import {
|
|
93
93
|
readOnlyLockOf
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-WLSF3GCC.js";
|
|
95
95
|
import {
|
|
96
96
|
withCaller
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-GBZF4IIP.js";
|
|
98
98
|
import {
|
|
99
99
|
typedCommand
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-25IDWPEN.js";
|
|
101
101
|
import {
|
|
102
102
|
isCliFailure
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-Z5424QL6.js";
|
|
104
104
|
import {
|
|
105
105
|
levelFor,
|
|
106
106
|
readKeysForCommand
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-OXUHTKO2.js";
|
|
108
108
|
import {
|
|
109
109
|
warmEmbedders
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-T3KICUOK.js";
|
|
111
111
|
import {
|
|
112
112
|
openStore,
|
|
113
113
|
pdfPreviewLimits
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-GXCNCMUY.js";
|
|
115
115
|
import {
|
|
116
116
|
timezoneOf
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-ZH743WNV.js";
|
|
118
118
|
import {
|
|
119
119
|
CliError,
|
|
120
120
|
description,
|
|
@@ -132,15 +132,15 @@ import {
|
|
|
132
132
|
strictObject,
|
|
133
133
|
string,
|
|
134
134
|
visibleControls
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
136
136
|
import {
|
|
137
137
|
__name
|
|
138
138
|
} from "./chunk-ZVVMGPBJ.js";
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
141
141
|
import { randomUUID } from "node:crypto";
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
144
144
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
145
145
|
let held;
|
|
146
146
|
return {
|
|
@@ -159,7 +159,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
159
159
|
};
|
|
160
160
|
}, "agentLog");
|
|
161
161
|
|
|
162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
163
163
|
var LISTED = 100;
|
|
164
164
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
165
165
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -197,7 +197,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
197
197
|
});
|
|
198
198
|
}, "registerResources");
|
|
199
199
|
|
|
200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
201
201
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
202
202
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
203
203
|
var MessengerSession = class {
|
|
@@ -272,7 +272,7 @@ var MessengerSession = class {
|
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
276
276
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
277
277
|
const _command = messenger.app.command;
|
|
278
278
|
return {
|
|
@@ -326,7 +326,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
326
326
|
};
|
|
327
327
|
}, "attachmentsTools");
|
|
328
328
|
|
|
329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
330
330
|
var PHOTO_LIMIT = 512 * 1024;
|
|
331
331
|
var IMAGE_TYPES = [
|
|
332
332
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -380,7 +380,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
380
380
|
return new Uint8Array(Buffer.concat(chunks));
|
|
381
381
|
}, "readUpTo");
|
|
382
382
|
|
|
383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
384
384
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
385
385
|
stats_charts: tool({
|
|
386
386
|
title: "A chart from a chat's statistics",
|
|
@@ -417,14 +417,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
417
417
|
})
|
|
418
418
|
}), "statsTools");
|
|
419
419
|
|
|
420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
421
421
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
422
422
|
...messagesPhotoTools(messenger),
|
|
423
423
|
...attachmentsTools(messenger),
|
|
424
424
|
...statsTools(messenger)
|
|
425
425
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
426
426
|
|
|
427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
428
428
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
429
429
|
"streams",
|
|
430
430
|
"stdin",
|
|
@@ -494,7 +494,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
494
494
|
readOnly: readOnlyLockOf(app, context.env) !== void 0,
|
|
495
495
|
keyOf,
|
|
496
496
|
authority,
|
|
497
|
-
fetchOnly:
|
|
497
|
+
fetchOnly: readsOverMcpAt(root),
|
|
498
498
|
offline: true,
|
|
499
499
|
stdin
|
|
500
500
|
}).map((one) => "sync_first" in one.input.entries && !syncAllowed(one.path) ? {
|
|
@@ -748,12 +748,13 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
748
748
|
}, "serveOverStdio");
|
|
749
749
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
750
750
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
751
|
-
const { serveOverHttp } = await import("./serve-
|
|
751
|
+
const { serveOverHttp } = await import("./serve-WAOSED3I.js");
|
|
752
752
|
const appName = messenger.app.command;
|
|
753
753
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
754
754
|
const listening = await serveOverHttp(build, {
|
|
755
755
|
...http,
|
|
756
756
|
appName,
|
|
757
|
+
reaches: "your messages",
|
|
757
758
|
// In the background its log is a file; the code goes only to the lock that `mcp server status` reads.
|
|
758
759
|
onCode: /* @__PURE__ */ __name((code, expires) => context.renderer.note(context.env[mcpHttpMarker(appEnvPrefix)] === void 0 ? `login code for a new browser app: ${code} (until ${expires.toTimeString().slice(0, 5)}; a new one after each login)` : `a new login code for a browser app: \`${appName} ${context.settings.profile} mcp server status\``), "onCode"),
|
|
759
760
|
onError: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onError")
|