@wirecat/zoom-cli 0.65.0 → 0.66.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/bin/zm.js +2 -2
- package/dist/bin/zm.js.map +1 -1
- package/dist/bundle/{all-profiles-SKMLZJSY.js → all-profiles-D5CFH2OK.js} +8 -5
- package/dist/bundle/answer-policy-YAYMKRRD.js +101 -0
- package/dist/bundle/{anthropic-TVHK7CY2.js → anthropic-K2E2JS4S.js} +6 -3
- package/dist/bundle/{app-server-44ASFH47.js → app-server-TVXDG6HZ.js} +60 -54
- package/dist/bundle/{bun-sqlite-NS32GMM4.js → bun-sqlite-HGBEHQI3.js} +5 -2
- package/dist/bundle/{chunk-CVCRQW3A.js → chunk-2T5BOLBS.js} +1 -1
- package/dist/bundle/{chunk-XJQB47IL.js → chunk-2VPHQFO5.js} +5 -5
- package/dist/bundle/{chunk-MRWIXUYT.js → chunk-2YLNUZ3T.js} +5 -3
- package/dist/bundle/{chunk-SQWRZZOQ.js → chunk-3B7L2UX4.js} +2 -2
- package/dist/bundle/{chunk-ZREFYKUB.js → chunk-3WTKZ2ZS.js} +9 -7
- package/dist/bundle/{chunk-GBZF4IIP.js → chunk-3Y2F65AY.js} +2 -2
- package/dist/bundle/{chunk-25IDWPEN.js → chunk-5A26IBAR.js} +19 -15
- package/dist/bundle/{chunk-5NGOP4EZ.js → chunk-5GD2XZ6X.js} +21 -19
- package/dist/bundle/{chunk-OXUHTKO2.js → chunk-5HPALDUO.js} +1 -1
- package/dist/bundle/{chunk-QI7BZS2G.js → chunk-62GOOZO3.js} +3 -3
- package/dist/bundle/{chunk-UMHJZWZU.js → chunk-67RNZGAG.js} +6 -4
- package/dist/bundle/{chunk-Z5424QL6.js → chunk-6GSJLNP4.js} +1 -1
- package/dist/bundle/{chunk-ERPRAYA7.js → chunk-6TIKPRVQ.js} +8 -4
- package/dist/bundle/{chunk-UPJXN2CO.js → chunk-756RS4PH.js} +146 -138
- package/dist/bundle/{chunk-KYLS5QGC.js → chunk-7JMBEPW2.js} +1 -1
- package/dist/bundle/{chunk-MZ6U6HNJ.js → chunk-7KCTPGOF.js} +1 -1
- package/dist/bundle/{chunk-VJTGYBJJ.js → chunk-7PF56S6U.js} +21 -15
- package/dist/bundle/{chunk-6CS7ETBK.js → chunk-A2SCXNA7.js} +48 -42
- package/dist/bundle/{chunk-AMMD6YCJ.js → chunk-AU4JHT3R.js} +1 -1
- package/dist/bundle/{chunk-T3KICUOK.js → chunk-AZ7ICKIA.js} +4 -4
- package/dist/bundle/{chunk-EA63UGWE.js → chunk-BXSAROQP.js} +2 -2
- package/dist/bundle/{chunk-MPKKIL3U.js → chunk-CAW6IMFZ.js} +19 -15
- package/dist/bundle/{chunk-DNCKH7CO.js → chunk-CR4CXOLX.js} +6 -6
- package/dist/bundle/{chunk-QLCYAQ66.js → chunk-CZ4KLUJG.js} +1 -1
- package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-BNXH73OU.js → chunk-EXXM4RNI.js} +10 -8
- package/dist/bundle/{chunk-24F7JBLY.js → chunk-FWFFQV4D.js} +2 -2
- package/dist/bundle/{chunk-ZOGYTDHG.js → chunk-GHAPWKG2.js} +4 -2
- package/dist/bundle/{chunk-GEX4V5TM.js → chunk-GI6QVSCW.js} +3 -3
- package/dist/bundle/{chunk-MH7AWCB4.js → chunk-GKXFL35E.js} +40 -36
- package/dist/bundle/{chunk-ZFNM3FNI.js → chunk-GNGBG5BT.js} +17 -13
- package/dist/bundle/{chunk-BWRBALXG.js → chunk-H5ZVZAOD.js} +1 -1
- package/dist/bundle/{chunk-TUIEDVI6.js → chunk-HKQWV3KT.js} +4 -2
- package/dist/bundle/chunk-IDWHJ35K.js +166 -0
- package/dist/bundle/{chunk-GXCNCMUY.js → chunk-IKQ73INC.js} +45 -41
- package/dist/bundle/chunk-ILHTNOIV.js +23 -0
- package/dist/bundle/{chunk-KZE3G4ZT.js → chunk-J4EZL6HY.js} +49 -45
- package/dist/bundle/{chunk-VW2SW7ME.js → chunk-JX3V35A5.js} +2 -2
- package/dist/bundle/{chunk-RZLNHNSS.js → chunk-K5CIN4JP.js} +1 -1
- package/dist/bundle/{chunk-ZXGRK44F.js → chunk-KDKFGQWG.js} +9 -7
- package/dist/bundle/{chunk-A6OA2EH2.js → chunk-L7IK4FOA.js} +1 -1
- package/dist/bundle/{chunk-TC7PD3LH.js → chunk-LN2S3RA3.js} +1 -1
- package/dist/bundle/{chunk-LOL6JYYN.js → chunk-N5JRRBEG.js} +5 -3
- package/dist/bundle/chunk-N67BLTBV.js +2443 -0
- package/dist/bundle/{chunk-2H5SXK7K.js → chunk-N6JMJN5A.js} +10 -8
- package/dist/bundle/{chunk-FYJL276J.js → chunk-NMQUCHTX.js} +2 -2
- package/dist/bundle/{chunk-C6BG57FA.js → chunk-O5FKJV3T.js} +13 -11
- package/dist/bundle/{chunk-PV3UDPCI.js → chunk-P2G4KGTR.js} +15 -9
- package/dist/bundle/{chunk-VH4F2EK4.js → chunk-P2SYZNM4.js} +1 -1
- package/dist/bundle/{chunk-U5ASRBBF.js → chunk-P3XVLHIQ.js} +2 -2
- package/dist/bundle/chunk-PQLBPYJR.js +46 -0
- package/dist/bundle/{chunk-GMTXCFI7.js → chunk-Q47C3QZW.js} +9 -5
- package/dist/bundle/{chunk-CNEE6TPE.js → chunk-QAPU2JNO.js} +1 -1
- package/dist/bundle/{chunk-3CZIWGZ6.js → chunk-QJHRYUMJ.js} +1 -1
- package/dist/bundle/{chunk-FYM27FCG.js → chunk-QV5ZGRK3.js} +10 -4
- package/dist/bundle/{chunk-UKU6MYUI.js → chunk-RMKHYUHK.js} +8 -19
- package/dist/bundle/{chunk-M6IDHQ7N.js → chunk-RO44LANT.js} +85 -79
- package/dist/bundle/chunk-S6S3KVJI.js +45 -0
- package/dist/bundle/{chunk-ZH743WNV.js → chunk-SU4WPBQE.js} +5 -3
- package/dist/bundle/{chunk-JF7ZEUXU.js → chunk-TFDVFD4N.js} +72 -2535
- package/dist/bundle/{chunk-NNNEVWFF.js → chunk-TMVKZMDO.js} +22 -18
- package/dist/bundle/{chunk-R5BAF5XE.js → chunk-TN7K66PU.js} +1 -1
- package/dist/bundle/{chunk-MIB5X2XW.js → chunk-TUEEXECZ.js} +4 -4
- package/dist/bundle/{chunk-K6ATTKQR.js → chunk-UOIXBEFR.js} +4 -4
- package/dist/bundle/chunk-UYV2JGLQ.js +34 -0
- package/dist/bundle/{chunk-NJSIHMAE.js → chunk-XFUID5NY.js} +3 -3
- package/dist/bundle/{chunk-266WOOB3.js → chunk-XWDSEJWP.js} +3 -3
- package/dist/bundle/{chunk-37PHGASE.js → chunk-YLEQN6PB.js} +5 -3
- package/dist/bundle/{chunk-WLSF3GCC.js → chunk-Z6U3MEGJ.js} +1 -1
- package/dist/bundle/{chunk-DYJXAY7Q.js → chunk-ZKTXUDSR.js} +31 -27
- package/dist/bundle/{chunk-H7762LDA.js → chunk-ZNFPDTQM.js} +1 -1
- package/dist/bundle/{chunk-IPTI3Y2E.js → chunk-ZTL7ANSG.js} +6 -4
- package/dist/bundle/{cli-FDO6CP6R.js → cli-HWQIL2AC.js} +71 -66
- package/dist/bundle/command-contract-CQFJXWX6.js +40 -0
- package/dist/bundle/config-R2Y6ZVQS.js +83 -0
- package/dist/bundle/{decode-7SZI3TGZ.js → decode-XPAPPUGE.js} +6 -3
- package/dist/bundle/dispatch-AKVJGP2S.js +412 -0
- package/dist/bundle/{dist-5GWUXW27.js → dist-LDIUQBM7.js} +18 -15
- package/dist/bundle/{embed-24YSXHLP.js → embed-LK45GRQ7.js} +7 -4
- package/dist/bundle/{embedder-MEXN2TFB.js → embedder-QPBC5XBY.js} +9 -6
- package/dist/bundle/failure-7OULAOWQ.js +25 -0
- package/dist/bundle/first-run-J5FG773Q.js +28 -0
- package/dist/bundle/first-screen-MULOBUHN.js +38 -0
- package/dist/bundle/{folders-DBAAMU26.js → folders-RHPUVMDI.js} +5 -2
- package/dist/bundle/{main-EIUCXXDW.js → main-FJHE5YHU.js} +28 -23
- package/dist/bundle/{mcp-FUSDPAOL.js → mcp-MNI62HHE.js} +4 -2
- package/dist/bundle/{meetings-JDTRGXZJ.js → meetings-MYIDGYGW.js} +6 -3
- package/dist/bundle/{node-sqlite-O4BAODFR.js → node-sqlite-SYZUTVPC.js} +5 -2
- package/dist/bundle/{oauth-3YLHXGUW.js → oauth-QPS5VTN6.js} +7 -4
- package/dist/bundle/{open-QGRMSNM2.js → open-OVCASRSJ.js} +5 -2
- package/dist/bundle/openai-VEVT7D7L.js +25 -0
- package/dist/bundle/{output-file-J26UQKRA.js → output-file-K5JEL33Z.js} +7 -4
- package/dist/bundle/{program-47DT7SHE.js → program-A546WC4F.js} +106 -98
- package/dist/bundle/{prompt-IUD7HCDC.js → prompt-CYBKP7S5.js} +6 -3
- package/dist/bundle/{recognize-DMJJHHXF.js → recognize-3H3YDCFI.js} +5 -2
- package/dist/bundle/{remote-5WFSOVVB.js → remote-VAYVTJBS.js} +8 -5
- package/dist/bundle/{rerank-UKQ65ECH.js → rerank-XA4GA5PS.js} +7 -4
- package/dist/bundle/{run-log-UGYL6NW2.js → run-log-XAFHMI3F.js} +53 -48
- package/dist/bundle/{serve-WAOSED3I.js → serve-KGHEDUHB.js} +13 -10
- package/dist/bundle/server-IDNSJXF3.js +71 -0
- package/dist/bundle/{server-NWZFNXC5.js → server-ZYTSMDTP.js} +41 -36
- package/dist/bundle/{services-VPANRE72.js → services-ZHMZC2OQ.js} +30 -25
- package/dist/bundle/{speech-O6UNUDRW.js → speech-7CJEFKM3.js} +14 -11
- package/dist/bundle/{state-BNE7I65A.js → state-U6KSYVOH.js} +6 -3
- package/dist/bundle/{store-QQH4FJXJ.js → store-DJE3LAEG.js} +14 -11
- package/dist/bundle/{store-4IIVSCJ4.js → store-WS4CQGYU.js} +16 -13
- package/dist/bundle/store-connection-T5WGOOPH.js +81 -0
- package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +61 -0
- package/dist/bundle/{streaming-S4EZB6P2.js → streaming-QMHH7L6N.js} +7 -4
- package/dist/bundle/{tokens-VCXIH7WZ.js → tokens-PWQ56OXO.js} +7 -4
- package/dist/bundle/zm.js +150 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- package/dist/bundle/answer-policy-BHDNSJWX.js +0 -96
- package/dist/bundle/command-contract-O4FDXM4U.js +0 -37
- package/dist/bundle/config-UBHKZG3J.js +0 -78
- package/dist/bundle/first-run-OCVEJH63.js +0 -23
- package/dist/bundle/first-screen-KJIU25MH.js +0 -35
- package/dist/bundle/openai-7PSCSTH7.js +0 -22
- package/dist/bundle/server-HAXN772R.js +0 -66
- package/dist/bundle/store-connection-PPEQK2K3.js +0 -76
- package/dist/bundle/store-maintenance-command-JZXCT6NY.js +0 -56
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE,
|
|
5
5
|
throughWrapper
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RO44LANT.js";
|
|
7
7
|
import {
|
|
8
8
|
Command,
|
|
9
9
|
InvalidArgumentError,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
renderAnswer,
|
|
17
17
|
sharedCommand,
|
|
18
18
|
snakeKeys
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-A2SCXNA7.js";
|
|
20
20
|
import {
|
|
21
21
|
readOnlyLockOf
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Z6U3MEGJ.js";
|
|
23
23
|
import {
|
|
24
24
|
formatReference
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-N5JRRBEG.js";
|
|
26
26
|
import {
|
|
27
27
|
EVENT_QUERY,
|
|
28
28
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
readMeetingProjectEvidence,
|
|
46
46
|
validateMeetingHitSearch,
|
|
47
47
|
validateMeetingPassage
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-Q47C3QZW.js";
|
|
49
49
|
import {
|
|
50
50
|
OPERATORS_BY_TYPE,
|
|
51
51
|
QUERY_LIMITS,
|
|
@@ -60,9 +60,8 @@ import {
|
|
|
60
60
|
timezoneOf,
|
|
61
61
|
validateQuery,
|
|
62
62
|
zonedMoment
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-SU4WPBQE.js";
|
|
64
64
|
import {
|
|
65
|
-
CliError,
|
|
66
65
|
array,
|
|
67
66
|
boolean,
|
|
68
67
|
check,
|
|
@@ -74,7 +73,10 @@ import {
|
|
|
74
73
|
safeParse,
|
|
75
74
|
strictObject,
|
|
76
75
|
string
|
|
77
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-N67BLTBV.js";
|
|
77
|
+
import {
|
|
78
|
+
CliError
|
|
79
|
+
} from "./chunk-S6S3KVJI.js";
|
|
78
80
|
import {
|
|
79
81
|
__name
|
|
80
82
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AZ7ICKIA.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S6S3KVJI.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
installerOf,
|
|
5
4
|
updateCommand
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RMKHYUHK.js";
|
|
7
6
|
import {
|
|
8
7
|
QUESTIONS,
|
|
9
8
|
readSetupAnswers,
|
|
10
9
|
unanswered,
|
|
11
10
|
writeSetupAnswers
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GI6QVSCW.js";
|
|
13
12
|
import {
|
|
14
13
|
DEFAULT_STEMMERS,
|
|
15
14
|
LANGUAGES
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-K5CIN4JP.js";
|
|
17
16
|
import {
|
|
18
17
|
sharedConfigPath
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6TIKPRVQ.js";
|
|
20
19
|
import {
|
|
21
20
|
storePath
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-L7IK4FOA.js";
|
|
22
|
+
import {
|
|
23
|
+
installerOf
|
|
24
|
+
} from "./chunk-ILHTNOIV.js";
|
|
23
25
|
import {
|
|
24
26
|
__name
|
|
25
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -82,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
82
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
83
85
|
}, "suggested");
|
|
84
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
85
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-DJE3LAEG.js");
|
|
86
88
|
const store = await openStore({ env });
|
|
87
89
|
let rebuild = false;
|
|
88
90
|
try {
|
|
@@ -111,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
111
113
|
if (!rebuild)
|
|
112
114
|
return;
|
|
113
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
114
|
-
import("./open-
|
|
115
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-OVCASRSJ.js"),
|
|
117
|
+
import("./store-maintenance-command-5CBQCEQQ.js")
|
|
116
118
|
]);
|
|
117
119
|
const database = await openCache(storePath(env));
|
|
118
120
|
try {
|
|
@@ -124,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
124
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
125
127
|
const { command, env, io } = run;
|
|
126
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
127
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-MULOBUHN.js");
|
|
128
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
129
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
130
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -197,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
197
199
|
contentLanguages: start.contentLanguages,
|
|
198
200
|
all: start.path[0] === "setup",
|
|
199
201
|
io: {
|
|
200
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-CYBKP7S5.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
201
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
202
204
|
`), "say")
|
|
203
205
|
}
|
|
@@ -2,15 +2,18 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5HPALDUO.js";
|
|
6
6
|
import {
|
|
7
7
|
looksLikeReference,
|
|
8
8
|
parseReference,
|
|
9
9
|
providerLabel,
|
|
10
10
|
providerNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-N5JRRBEG.js";
|
|
12
|
+
import {
|
|
13
|
+
resolvePaths,
|
|
14
|
+
writeSecurely
|
|
15
|
+
} from "./chunk-TFDVFD4N.js";
|
|
12
16
|
import {
|
|
13
|
-
CliError,
|
|
14
17
|
array,
|
|
15
18
|
getDotPath,
|
|
16
19
|
integer,
|
|
@@ -23,16 +26,19 @@ import {
|
|
|
23
26
|
pipe,
|
|
24
27
|
record,
|
|
25
28
|
regex,
|
|
26
|
-
resolvePaths,
|
|
27
29
|
safeParse,
|
|
28
|
-
singleLine,
|
|
29
30
|
strictObject,
|
|
30
31
|
string,
|
|
31
32
|
transform,
|
|
32
|
-
unknown
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
unknown
|
|
34
|
+
} from "./chunk-N67BLTBV.js";
|
|
35
|
+
import {
|
|
36
|
+
CliError
|
|
37
|
+
} from "./chunk-S6S3KVJI.js";
|
|
38
|
+
import {
|
|
39
|
+
singleLine,
|
|
40
|
+
visibleControls
|
|
41
|
+
} from "./chunk-UYV2JGLQ.js";
|
|
36
42
|
import {
|
|
37
43
|
__name
|
|
38
44
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7IK4FOA.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S6S3KVJI.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// 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/executable.js
|
|
8
|
+
import { existsSync } from "node:fs";
|
|
9
|
+
import { win32 } from "node:path";
|
|
10
|
+
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
11
|
+
var executableOnPath = /* @__PURE__ */ __name((command, env, platform = process.platform, exists = existsSync) => {
|
|
12
|
+
if (platform !== "win32" || win32.isAbsolute(command))
|
|
13
|
+
return command;
|
|
14
|
+
if (/[\\/]/.test(command))
|
|
15
|
+
return command;
|
|
16
|
+
const extensions = win32.extname(command) ? [""] : (variable(env, "PATHEXT") ?? ".EXE;.COM;.CMD;.BAT").split(";").filter((ext) => /^\.[a-z0-9]+$/i.test(ext));
|
|
17
|
+
for (const entry of (variable(env, "PATH") ?? "").split(";")) {
|
|
18
|
+
const directory = entry.replace(/^"(.*)"$/, "$1");
|
|
19
|
+
for (const extension of extensions) {
|
|
20
|
+
const candidate = win32.join(directory, command + extension);
|
|
21
|
+
if (exists(candidate))
|
|
22
|
+
return candidate;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return command;
|
|
26
|
+
}, "executableOnPath");
|
|
27
|
+
var executableEnvironment = /* @__PURE__ */ __name((env, platform = process.platform) => {
|
|
28
|
+
if (platform !== "win32")
|
|
29
|
+
return env;
|
|
30
|
+
const configured = variable(env, "COMSPEC");
|
|
31
|
+
const system = variable(env, "SYSTEMROOT");
|
|
32
|
+
const shell = configured ? configured : system && win32.isAbsolute(system) ? win32.join(system, "System32", "cmd.exe") : void 0;
|
|
33
|
+
if (!shell)
|
|
34
|
+
return env;
|
|
35
|
+
const result = { ...env };
|
|
36
|
+
for (const key of Object.keys(result))
|
|
37
|
+
if (key.toUpperCase() === "COMSPEC")
|
|
38
|
+
delete result[key];
|
|
39
|
+
result.comspec = shell;
|
|
40
|
+
return result;
|
|
41
|
+
}, "executableEnvironment");
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
executableOnPath,
|
|
45
|
+
executableEnvironment
|
|
46
|
+
};
|
|
@@ -8,9 +8,8 @@ import {
|
|
|
8
8
|
queryFieldsOf,
|
|
9
9
|
timezoneOf,
|
|
10
10
|
validateQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SU4WPBQE.js";
|
|
12
12
|
import {
|
|
13
|
-
CliError,
|
|
14
13
|
STEPS,
|
|
15
14
|
array,
|
|
16
15
|
boolean,
|
|
@@ -29,13 +28,18 @@ import {
|
|
|
29
28
|
pipe,
|
|
30
29
|
reference,
|
|
31
30
|
safeParse,
|
|
32
|
-
singleLine,
|
|
33
31
|
stepOf,
|
|
34
32
|
strictObject,
|
|
35
33
|
string,
|
|
36
|
-
union
|
|
34
|
+
union
|
|
35
|
+
} from "./chunk-N67BLTBV.js";
|
|
36
|
+
import {
|
|
37
|
+
CliError
|
|
38
|
+
} from "./chunk-S6S3KVJI.js";
|
|
39
|
+
import {
|
|
40
|
+
singleLine,
|
|
37
41
|
visibleControls
|
|
38
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-UYV2JGLQ.js";
|
|
39
43
|
import {
|
|
40
44
|
__name
|
|
41
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
COMPACT_FLAG,
|
|
5
|
-
CliError,
|
|
6
4
|
createRenderer,
|
|
7
5
|
fieldsOf,
|
|
8
6
|
processStreams,
|
|
9
|
-
projectFields
|
|
7
|
+
projectFields
|
|
8
|
+
} from "./chunk-TFDVFD4N.js";
|
|
9
|
+
import {
|
|
10
|
+
COMPACT_FLAG
|
|
11
|
+
} from "./chunk-N67BLTBV.js";
|
|
12
|
+
import {
|
|
13
|
+
CliError
|
|
14
|
+
} from "./chunk-S6S3KVJI.js";
|
|
15
|
+
import {
|
|
10
16
|
singleLine
|
|
11
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UYV2JGLQ.js";
|
|
12
18
|
import {
|
|
13
19
|
__name
|
|
14
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,36 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
|
-
executableOnPath
|
|
5
|
+
executableOnPath
|
|
6
|
+
} from "./chunk-PQLBPYJR.js";
|
|
7
|
+
import {
|
|
6
8
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D72URWJE.js";
|
|
8
10
|
import {
|
|
9
11
|
loadConfigFile,
|
|
12
|
+
saveConfigFile
|
|
13
|
+
} from "./chunk-TFDVFD4N.js";
|
|
14
|
+
import {
|
|
10
15
|
number,
|
|
11
16
|
object,
|
|
12
17
|
optional,
|
|
13
|
-
saveConfigFile,
|
|
14
18
|
string
|
|
15
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N67BLTBV.js";
|
|
16
20
|
import {
|
|
17
21
|
__name,
|
|
18
22
|
__toESM
|
|
19
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
24
|
|
|
21
|
-
// 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/installer.js
|
|
22
|
-
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
23
|
-
const path = scriptPath.replaceAll("\\", "/");
|
|
24
|
-
if (path.includes("/_npx/"))
|
|
25
|
-
return "npx";
|
|
26
|
-
if (path.includes("/install/global/node_modules/"))
|
|
27
|
-
return "bun";
|
|
28
|
-
if (/\/\.?pnpm\//.test(path))
|
|
29
|
-
return "pnpm";
|
|
30
|
-
if (path.includes("/node_modules/"))
|
|
31
|
-
return "npm";
|
|
32
|
-
return path.includes("/dist/") ? "checkout" : "unknown";
|
|
33
|
-
}, "installerOf");
|
|
34
|
-
|
|
35
25
|
// 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/update/index.js
|
|
36
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
37
27
|
import { existsSync } from "node:fs";
|
|
@@ -141,7 +131,6 @@ var commandWords = /* @__PURE__ */ __name((argv) => {
|
|
|
141
131
|
}, "commandWords");
|
|
142
132
|
|
|
143
133
|
export {
|
|
144
|
-
installerOf,
|
|
145
134
|
updateCommand,
|
|
146
135
|
isNewer,
|
|
147
136
|
latestVersion,
|
|
@@ -8,7 +8,29 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QAPU2JNO.js";
|
|
12
|
+
import {
|
|
13
|
+
isNewer,
|
|
14
|
+
updateCommand
|
|
15
|
+
} from "./chunk-RMKHYUHK.js";
|
|
16
|
+
import {
|
|
17
|
+
MAX_ACTIONS,
|
|
18
|
+
ModerationRules,
|
|
19
|
+
act,
|
|
20
|
+
chatReferenceOf,
|
|
21
|
+
defaultRules,
|
|
22
|
+
ensureAccount,
|
|
23
|
+
gather,
|
|
24
|
+
isId,
|
|
25
|
+
judge,
|
|
26
|
+
moderationPathFor,
|
|
27
|
+
nextPoint,
|
|
28
|
+
pickChat,
|
|
29
|
+
pickPerson,
|
|
30
|
+
someUndone,
|
|
31
|
+
validateFormattedText,
|
|
32
|
+
visibleFormattedText
|
|
33
|
+
} from "./chunk-P2G4KGTR.js";
|
|
12
34
|
import {
|
|
13
35
|
DEFAULT_IMAGE_MODEL,
|
|
14
36
|
DEFAULT_RERANK_MODEL,
|
|
@@ -36,56 +58,10 @@ import {
|
|
|
36
58
|
typedCommand,
|
|
37
59
|
vectorModelKey,
|
|
38
60
|
withAttempt
|
|
39
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-5A26IBAR.js";
|
|
40
62
|
import {
|
|
41
63
|
isCliFailure
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import {
|
|
44
|
-
isNewer,
|
|
45
|
-
updateCommand
|
|
46
|
-
} from "./chunk-UKU6MYUI.js";
|
|
47
|
-
import {
|
|
48
|
-
MAX_ACTIONS,
|
|
49
|
-
ModerationRules,
|
|
50
|
-
act,
|
|
51
|
-
chatReferenceOf,
|
|
52
|
-
defaultRules,
|
|
53
|
-
ensureAccount,
|
|
54
|
-
gather,
|
|
55
|
-
isId,
|
|
56
|
-
judge,
|
|
57
|
-
moderationPathFor,
|
|
58
|
-
nextPoint,
|
|
59
|
-
pickChat,
|
|
60
|
-
pickPerson,
|
|
61
|
-
someUndone,
|
|
62
|
-
validateFormattedText,
|
|
63
|
-
visibleFormattedText
|
|
64
|
-
} from "./chunk-PV3UDPCI.js";
|
|
65
|
-
import {
|
|
66
|
-
MAX_MODEL_IMAGE_BYTES
|
|
67
|
-
} from "./chunk-QLCYAQ66.js";
|
|
68
|
-
import {
|
|
69
|
-
OPENAI_URL,
|
|
70
|
-
openRemote,
|
|
71
|
-
remoteKey,
|
|
72
|
-
remoteModel
|
|
73
|
-
} from "./chunk-FYJL276J.js";
|
|
74
|
-
import {
|
|
75
|
-
Unzip,
|
|
76
|
-
UnzipInflate,
|
|
77
|
-
defaultThreads,
|
|
78
|
-
installNativeRuntime,
|
|
79
|
-
isTextModelInstalled,
|
|
80
|
-
openEmbedder,
|
|
81
|
-
placedText,
|
|
82
|
-
runEmbedders,
|
|
83
|
-
textModelsDirectory
|
|
84
|
-
} from "./chunk-T3KICUOK.js";
|
|
85
|
-
import {
|
|
86
|
-
installFiles,
|
|
87
|
-
megabytes
|
|
88
|
-
} from "./chunk-U5ASRBBF.js";
|
|
64
|
+
} from "./chunk-6GSJLNP4.js";
|
|
89
65
|
import {
|
|
90
66
|
AGENDA_COLUMNS,
|
|
91
67
|
CHAT_COLUMNS,
|
|
@@ -151,24 +127,13 @@ import {
|
|
|
151
127
|
threadConversation,
|
|
152
128
|
validateAst,
|
|
153
129
|
validateFields
|
|
154
|
-
} from "./chunk-
|
|
155
|
-
import {
|
|
156
|
-
TASK_KINDS,
|
|
157
|
-
TASK_ORIGINS,
|
|
158
|
-
TASK_STATES,
|
|
159
|
-
createTaskService,
|
|
160
|
-
isClosedState
|
|
161
|
-
} from "./chunk-AMMD6YCJ.js";
|
|
130
|
+
} from "./chunk-IKQ73INC.js";
|
|
162
131
|
import {
|
|
163
132
|
DEFAULT_STEMMERS,
|
|
164
133
|
createStemmer,
|
|
165
134
|
fold,
|
|
166
135
|
normalize
|
|
167
|
-
} from "./chunk-
|
|
168
|
-
import {
|
|
169
|
-
DEFAULT_TASK_CATEGORIES,
|
|
170
|
-
FALLBACK_CATEGORY
|
|
171
|
-
} from "./chunk-ERPRAYA7.js";
|
|
136
|
+
} from "./chunk-K5CIN4JP.js";
|
|
172
137
|
import {
|
|
173
138
|
COUNTER_FIELDS,
|
|
174
139
|
INTERNAL_NOTES,
|
|
@@ -187,14 +152,49 @@ import {
|
|
|
187
152
|
parseReference,
|
|
188
153
|
providerNamed,
|
|
189
154
|
rankingOptions
|
|
190
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-N5JRRBEG.js";
|
|
156
|
+
import {
|
|
157
|
+
TASK_KINDS,
|
|
158
|
+
TASK_ORIGINS,
|
|
159
|
+
TASK_STATES,
|
|
160
|
+
createTaskService,
|
|
161
|
+
isClosedState
|
|
162
|
+
} from "./chunk-AU4JHT3R.js";
|
|
163
|
+
import {
|
|
164
|
+
DEFAULT_TASK_CATEGORIES,
|
|
165
|
+
FALLBACK_CATEGORY
|
|
166
|
+
} from "./chunk-6TIKPRVQ.js";
|
|
191
167
|
import {
|
|
192
168
|
normalizeTag
|
|
193
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-HKQWV3KT.js";
|
|
170
|
+
import {
|
|
171
|
+
MAX_MODEL_IMAGE_BYTES
|
|
172
|
+
} from "./chunk-CZ4KLUJG.js";
|
|
173
|
+
import {
|
|
174
|
+
OPENAI_URL,
|
|
175
|
+
openRemote,
|
|
176
|
+
remoteKey,
|
|
177
|
+
remoteModel
|
|
178
|
+
} from "./chunk-NMQUCHTX.js";
|
|
179
|
+
import {
|
|
180
|
+
Unzip,
|
|
181
|
+
UnzipInflate,
|
|
182
|
+
defaultThreads,
|
|
183
|
+
installNativeRuntime,
|
|
184
|
+
isTextModelInstalled,
|
|
185
|
+
openEmbedder,
|
|
186
|
+
placedText,
|
|
187
|
+
runEmbedders,
|
|
188
|
+
textModelsDirectory
|
|
189
|
+
} from "./chunk-AZ7ICKIA.js";
|
|
190
|
+
import {
|
|
191
|
+
installFiles,
|
|
192
|
+
megabytes
|
|
193
|
+
} from "./chunk-P3XVLHIQ.js";
|
|
194
194
|
import {
|
|
195
195
|
storePath,
|
|
196
196
|
wirecatDirectory
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-L7IK4FOA.js";
|
|
198
198
|
import {
|
|
199
199
|
MEETING_FINDINGS_KIND,
|
|
200
200
|
canonicalMeetingReference,
|
|
@@ -213,7 +213,7 @@ import {
|
|
|
213
213
|
validateMeetingHitSearch,
|
|
214
214
|
validateMeetingPassage,
|
|
215
215
|
validateMeetingSeriesHistory
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-Q47C3QZW.js";
|
|
217
217
|
import {
|
|
218
218
|
dateRange,
|
|
219
219
|
implicitTextTerms,
|
|
@@ -223,11 +223,12 @@ import {
|
|
|
223
223
|
timezoneOf,
|
|
224
224
|
validateQuery,
|
|
225
225
|
walkQuery
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-SU4WPBQE.js";
|
|
227
|
+
import {
|
|
228
|
+
resolvePaths
|
|
229
|
+
} from "./chunk-TFDVFD4N.js";
|
|
227
230
|
import {
|
|
228
|
-
CliError,
|
|
229
231
|
array,
|
|
230
|
-
isCliError,
|
|
231
232
|
maxLength,
|
|
232
233
|
minLength,
|
|
233
234
|
minValue,
|
|
@@ -235,17 +236,22 @@ import {
|
|
|
235
236
|
optional,
|
|
236
237
|
pipe,
|
|
237
238
|
regex,
|
|
238
|
-
resolvePaths,
|
|
239
239
|
safeInteger,
|
|
240
240
|
safeParse,
|
|
241
|
-
singleLine,
|
|
242
241
|
strictObject,
|
|
243
242
|
string
|
|
244
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-N67BLTBV.js";
|
|
245
244
|
import {
|
|
246
245
|
importFrom,
|
|
247
246
|
resolveFrom
|
|
248
247
|
} from "./chunk-Y5E2WNWB.js";
|
|
248
|
+
import {
|
|
249
|
+
CliError,
|
|
250
|
+
isCliError
|
|
251
|
+
} from "./chunk-S6S3KVJI.js";
|
|
252
|
+
import {
|
|
253
|
+
singleLine
|
|
254
|
+
} from "./chunk-UYV2JGLQ.js";
|
|
249
255
|
import {
|
|
250
256
|
__commonJS,
|
|
251
257
|
__name,
|
|
@@ -21397,7 +21403,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
21397
21403
|
}
|
|
21398
21404
|
await nativeRuntime({ env, progress });
|
|
21399
21405
|
progress(`${model.id}: loading it once to check it works`);
|
|
21400
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
21406
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-LK45GRQ7.js");
|
|
21401
21407
|
const embedder = await openEmbedder2(model, directory2);
|
|
21402
21408
|
try {
|
|
21403
21409
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -21418,7 +21424,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
21418
21424
|
}
|
|
21419
21425
|
await nativeRuntime({ env, progress });
|
|
21420
21426
|
progress(`${model.id}: loading it once to check it works`);
|
|
21421
|
-
const { openReranker } = await import("./rerank-
|
|
21427
|
+
const { openReranker } = await import("./rerank-XA4GA5PS.js");
|
|
21422
21428
|
const reranker = await openReranker(model, directory2);
|
|
21423
21429
|
try {
|
|
21424
21430
|
await reranker.score("check", ["check"]);
|
|
@@ -21436,7 +21442,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
21436
21442
|
await installFiles(placedImage(model, directory2), { progress });
|
|
21437
21443
|
}
|
|
21438
21444
|
progress(`${model.id}: loading it once to check it works`);
|
|
21439
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
21445
|
+
const { openPictureEmbedder } = await import("./embedder-QPBC5XBY.js");
|
|
21440
21446
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
21441
21447
|
try {
|
|
21442
21448
|
const vector = await embedder.embedQuery("check");
|
|
@@ -23902,7 +23908,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
23902
23908
|
price: remote.price,
|
|
23903
23909
|
installed: true,
|
|
23904
23910
|
perBatch: PER_REQUEST * concurrency,
|
|
23905
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
23911
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-VAYVTJBS.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
23906
23912
|
};
|
|
23907
23913
|
}
|
|
23908
23914
|
const model = textModel(choice);
|
|
@@ -30623,7 +30629,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
30623
30629
|
const directory2 = imageModelsDirectory(deps.env);
|
|
30624
30630
|
if (!isImageModelInstalled(model2, directory2))
|
|
30625
30631
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
30626
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
30632
|
+
const { openPictureEmbedder } = await import("./embedder-QPBC5XBY.js");
|
|
30627
30633
|
return openPictureEmbedder(model2, directory2);
|
|
30628
30634
|
}, "open");
|
|
30629
30635
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -30883,7 +30889,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
30883
30889
|
const warm = deps.embedders;
|
|
30884
30890
|
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-HQZOTT6U.js")).openRerankerProcess(model, directory2, {
|
|
30885
30891
|
threads: defaultThreads()
|
|
30886
|
-
})) : await (await import("./rerank-
|
|
30892
|
+
})) : await (await import("./rerank-XA4GA5PS.js")).openReranker(model, directory2);
|
|
30887
30893
|
return {
|
|
30888
30894
|
model: model.id,
|
|
30889
30895
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -30911,7 +30917,7 @@ var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}
|
|
|
30911
30917
|
const directory2 = imageModelsDirectory(env);
|
|
30912
30918
|
if (!isImageModelInstalled(model, directory2))
|
|
30913
30919
|
throw new CliError("not_found", `the picture model is not downloaded \u2014 ${command === void 0 ? "install it with a WireCat CLI that has `images models download` (tg, max or wa); they share the model folder" : `\`${command} images models download ${model.id}\` fetches it`}`, { reason: "model.not-downloaded", model: model.id });
|
|
30914
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
30920
|
+
const { openPictureEmbedder } = await import("./embedder-QPBC5XBY.js");
|
|
30915
30921
|
return openPictureEmbedder(model, directory2);
|
|
30916
30922
|
}, "openPictureEmbedderFor");
|
|
30917
30923
|
var savePicture = /* @__PURE__ */ __name(async (store, target2, bytes2, options = {}) => {
|