@wirecat/zoom-cli 0.71.0 → 0.73.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/contracts/wirecat.json +1478 -0
- package/dist/account-removal.d.ts.map +1 -1
- package/dist/account-removal.js +0 -2
- package/dist/account-removal.js.map +1 -1
- package/dist/answers.d.ts +57 -3
- package/dist/answers.d.ts.map +1 -1
- package/dist/answers.js +0 -3
- package/dist/answers.js.map +1 -1
- package/dist/bin/main.js +13 -5
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-O4YNVPZX.js → all-profiles-V47CUJFK.js} +12 -12
- package/dist/bundle/answer-policy-W6H72X2R.js +112 -0
- package/dist/bundle/{anthropic-7GGRX3RX.js → anthropic-SID7Z3QN.js} +19 -12
- package/dist/bundle/{app-server-CPMKM3HI.js → app-server-KCMUSY4A.js} +75 -57
- package/dist/bundle/{bun-POHZKEPV.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-PGYMBPEL.js → bun-sqlite-3TLKUN5A.js} +10 -6
- package/dist/bundle/{chunk-Q3XLZIY3.js → chunk-2BAZRRJP.js} +29 -23
- package/dist/bundle/{chunk-OWEBWDHV.js → chunk-2NQPB6MT.js} +103 -9
- package/dist/bundle/chunk-2PYZTRRC.js +84 -0
- package/dist/bundle/chunk-2VYEGKQ3.js +13 -0
- package/dist/bundle/{chunk-I4DFFR7F.js → chunk-35CYSRGJ.js} +14 -5
- package/dist/bundle/{chunk-GGS6D4W4.js → chunk-3ADFJ3UP.js} +3 -3
- package/dist/bundle/{chunk-EOSVN2ER.js → chunk-3HTJBGNP.js} +242 -242
- package/dist/bundle/{chunk-2KESWII5.js → chunk-44YVZIA4.js} +3 -3
- package/dist/bundle/{chunk-GXF5HFFP.js → chunk-4LFFDUUW.js} +4 -4
- package/dist/bundle/{chunk-WOIHSQAL.js → chunk-4RJL32PF.js} +49 -10
- package/dist/bundle/{chunk-7ROXXRGG.js → chunk-6AO2RSYH.js} +7031 -5279
- package/dist/bundle/{chunk-DIQLXAAZ.js → chunk-6NI4FE5G.js} +6 -8
- package/dist/bundle/{chunk-X277FBTF.js → chunk-6WUTUCKH.js} +3 -3
- package/dist/bundle/{chunk-77TCCHMP.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-MRI6QMZ3.js → chunk-CIUJEQH4.js} +27 -19
- package/dist/bundle/{chunk-CRFOGYDG.js → chunk-CMWFYZ45.js} +2 -2
- package/dist/bundle/{chunk-LE7MDAQG.js → chunk-CQBLPBZU.js} +2 -2
- package/dist/bundle/{chunk-RQG5VOGH.js → chunk-DPSTOVKC.js} +185 -34
- package/dist/bundle/{chunk-4QUFFB2U.js → chunk-DYLYH7VE.js} +4 -4
- package/dist/bundle/{chunk-FEM2JQN2.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/chunk-ERQRY6WZ.js +54 -0
- package/dist/bundle/{chunk-P3XC6EDU.js → chunk-ETQNHS3A.js} +10 -129
- package/dist/bundle/{chunk-IAV5BG3I.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-DSVZEXYJ.js → chunk-FJMRDRPN.js} +3573 -3347
- package/dist/bundle/{chunk-7QC4M4HS.js → chunk-FT7X74RT.js} +4 -4
- package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
- package/dist/bundle/{chunk-ZBFL5JPT.js → chunk-FZLJ2G7A.js} +22 -120
- package/dist/bundle/{chunk-GL3MYFMX.js → chunk-G2TSDMTA.js} +5 -5
- package/dist/bundle/{chunk-2FV5JUQU.js → chunk-G3SIY4MQ.js} +47 -40
- package/dist/bundle/{chunk-2U27KIKU.js → chunk-GCZMYDKU.js} +6 -6
- package/dist/bundle/{chunk-CKPCVEXU.js → chunk-HAMDPWEZ.js} +6 -6
- package/dist/bundle/{chunk-OE7EIP5L.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-OORMSM6O.js → chunk-HNWDEDMU.js} +61 -30
- package/dist/bundle/{chunk-FSHCAWZS.js → chunk-HO3GBTIT.js} +13464 -10422
- package/dist/bundle/chunk-IE7YBRUO.js +25 -0
- package/dist/bundle/{chunk-RGJ7OWHU.js → chunk-IJCUAKR5.js} +61 -21
- package/dist/bundle/{chunk-ULDXZ6LH.js → chunk-IKNOTHG2.js} +116 -70
- package/dist/bundle/{chunk-633QXP57.js → chunk-ILDGZBZD.js} +14 -9
- package/dist/bundle/{chunk-CFQF6IGY.js → chunk-JIS34MLC.js} +69 -6
- package/dist/bundle/{chunk-DHWBSXG3.js → chunk-JQF4LM3V.js} +415 -66
- package/dist/bundle/{chunk-4LAQDZXU.js → chunk-K5JFX5TK.js} +953 -210
- package/dist/bundle/{chunk-5LJTU4LY.js → chunk-K7EMVFJ7.js} +115 -113
- package/dist/bundle/chunk-KHBZ4OEP.js +16 -0
- package/dist/bundle/chunk-KK2IVZUQ.js +185 -0
- package/dist/bundle/{chunk-SELXER2Q.js → chunk-KQD4ZVNC.js} +7 -7
- package/dist/bundle/{chunk-VJXHIUFP.js → chunk-KSNJK4QM.js} +13 -13
- package/dist/bundle/{chunk-X4GWR6GO.js → chunk-KUL7S5Y3.js} +376 -10
- package/dist/bundle/{chunk-M76MXMLY.js → chunk-L6YSKCC3.js} +1 -1
- package/dist/bundle/chunk-LQYMN36C.js +73 -0
- package/dist/bundle/{chunk-USQ23X5V.js → chunk-LSVQCI6V.js} +751 -735
- package/dist/bundle/{chunk-DRBQDCDU.js → chunk-LVDTSCIN.js} +39 -122
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/chunk-MAE5UGRQ.js +301 -0
- package/dist/bundle/{chunk-CT4WVR4N.js → chunk-MG2CCAVG.js} +3 -3
- package/dist/bundle/chunk-MOKEB656.js +71 -0
- package/dist/bundle/{chunk-BGTEVIW4.js → chunk-N3SOTKXC.js} +6 -6
- package/dist/bundle/{chunk-VRH7VRTK.js → chunk-NBA2V6LB.js} +10 -15
- package/dist/bundle/{chunk-5J4AMBMM.js → chunk-OFA22L4G.js} +4 -4
- package/dist/bundle/chunk-OKOJEBHK.js +106 -0
- package/dist/bundle/{chunk-Q5PI72CR.js → chunk-OMLVWOEF.js} +7 -2
- package/dist/bundle/{chunk-DK6ICIGL.js → chunk-OU5OXA6Q.js} +2150 -1312
- package/dist/bundle/{chunk-QVSLSWAL.js → chunk-P4FU6R3Z.js} +27 -152
- package/dist/bundle/{chunk-YPO2U2YB.js → chunk-PACLT6IW.js} +363 -115
- package/dist/bundle/{chunk-BBTQIVFP.js → chunk-PGPHEC2X.js} +2 -2
- package/dist/bundle/chunk-PJ3FKBXG.js +18 -0
- package/dist/bundle/{chunk-X3ZDN3U7.js → chunk-PKON63JH.js} +2 -2
- package/dist/bundle/{chunk-Q2SUFGSH.js → chunk-Q43KX56Z.js} +2 -2
- package/dist/bundle/{chunk-XI3VIQKW.js → chunk-QS6DWXDB.js} +569 -537
- package/dist/bundle/{chunk-INVTDIF6.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-QTHIU7CO.js → chunk-QWGEOQHA.js} +3 -2
- package/dist/bundle/{chunk-N2FNMION.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-MW4EGDDV.js → chunk-SO52EJ2W.js} +2 -2
- package/dist/bundle/{chunk-HB6XJQ3Y.js → chunk-SYIOT45G.js} +5 -5
- package/dist/bundle/{chunk-4QPQ7MDA.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-ALIT5QFT.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-OHWMIUCT.js → chunk-USIMMGWS.js} +244 -245
- package/dist/bundle/{chunk-MEED7YFG.js → chunk-UYBLNGZ2.js} +8 -2
- package/dist/bundle/{chunk-IED3NS7G.js → chunk-V5Q2QKYM.js} +29 -36
- package/dist/bundle/{chunk-54YDWBYG.js → chunk-VJVYGTPM.js} +15 -2
- package/dist/bundle/{chunk-5K7OGPGA.js → chunk-VPPNYUQM.js} +8 -8
- package/dist/bundle/{chunk-ZBKWRYRS.js → chunk-X2FILY5F.js} +3 -3
- package/dist/bundle/{chunk-2RUAMDVV.js → chunk-XLY7V2LB.js} +14 -14
- package/dist/bundle/chunk-XWBPP2HX.js +2 -0
- package/dist/bundle/{chunk-ZVI6TFQR.js → chunk-Y3IH7EZC.js} +17 -17
- package/dist/bundle/{chunk-YD2RYVMK.js → chunk-Z5XCU4S7.js} +46 -40
- package/dist/bundle/{chunk-RN4EHCC5.js → chunk-ZAIE3G5I.js} +3 -3
- package/dist/bundle/{chunk-2U6SER67.js → chunk-ZMHZ6CQS.js} +2 -2
- package/dist/bundle/{chunk-64ZHF6PJ.js → chunk-ZVQDOKDY.js} +3 -1
- package/dist/bundle/{chunk-TM4JSVGQ.js → chunk-ZX4QWTMQ.js} +42 -43
- package/dist/bundle/{cli-KHMEUXNG.js → cli-4ZYJ6OZE.js} +158 -88
- package/dist/bundle/command-contract-FJDDCHYP.js +43 -0
- package/dist/bundle/command-server-entry-CASONRIJ.js +173 -0
- package/dist/bundle/config-4DZHX2WX.js +99 -0
- package/dist/bundle/{decode-7RP4HSVE.js → decode-KEFCVGEB.js} +6 -6
- package/dist/bundle/{dispatch-IZCAK47P.js → dispatch-EU67WGME.js} +11 -11
- package/dist/bundle/{dist-BFT2SUBV.js → dist-GCQ7KCKN.js} +55 -30
- package/dist/bundle/{echarts-T2BSQ2YV.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-BAS6YPDT.js → embed-43VJEPM6.js} +7 -7
- package/dist/bundle/{embedder-5XD5FCAO.js → embedder-Q4ZHAGRP.js} +10 -10
- package/dist/bundle/{failure-R2OIHCE5.js → failure-CTJLEB2R.js} +3 -3
- package/dist/bundle/first-run-CPOLQVNA.js +29 -0
- package/dist/bundle/first-screen-XYESRGWW.js +41 -0
- package/dist/bundle/folders-MSBTAPAG.js +24 -0
- package/dist/bundle/{instructions-XZPROPKY.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{main-TZXKGL3L.js → main-NA3QVPXS.js} +39 -25
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{meetings-JB2ISPND.js → meetings-7CVIQJTA.js} +9 -7
- package/dist/bundle/{node-A3B3MJWX.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
- package/dist/bundle/{node-sqlite-QVWDLGDX.js → node-sqlite-QHGB23B4.js} +11 -7
- package/dist/bundle/{oauth-YA6IYV4O.js → oauth-BMEMCM2I.js} +8 -8
- package/dist/bundle/{open-SY7TXJBS.js → open-JGU2NRJP.js} +6 -6
- package/dist/bundle/openai-VTXXFNCS.js +28 -0
- package/dist/bundle/{output-file-YGQYZCBJ.js → output-file-VDOCYH2G.js} +6 -6
- package/dist/bundle/{process-6HNBTJIY.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-77BUCJ4H.js → program-XM6CDIJ2.js} +134 -129
- package/dist/bundle/{prompt-YDG73YDS.js → prompt-2IPFXJ4B.js} +6 -6
- package/dist/bundle/{recognize-ECXDGTB7.js → recognize-672E2RIB.js} +5 -5
- package/dist/bundle/{remote-K4JHGBVJ.js → remote-YLHRVPDS.js} +11 -8
- package/dist/bundle/{rerank-IU2YYD4T.js → rerank-NBXQG3OS.js} +8 -8
- package/dist/bundle/run-log-3WITBT2F.js +126 -0
- package/dist/bundle/{serve-3XWIF3HI.js → serve-FNLOUMYP.js} +10 -10
- package/dist/bundle/{server-56VYOHWP.js → server-7ZB5AK5H.js} +53 -47
- package/dist/bundle/server-GGRGD4SH.js +77 -0
- package/dist/bundle/{services-X7IPEGQ5.js → services-Z4UWN64R.js} +56 -37
- package/dist/bundle/{speech-E2OBQWYA.js → speech-XSYVCKR3.js} +17 -14
- package/dist/bundle/sqlite-runtime-GAPXJNWU.js +20 -0
- package/dist/bundle/{state-4GMJYK4H.js → state-QSA53EF5.js} +7 -7
- package/dist/bundle/{store-LA4TV4DM.js → store-EKI4OAJH.js} +22 -19
- package/dist/bundle/{store-KPI7GB5Y.js → store-NOF5EYUC.js} +38 -21
- package/dist/bundle/store-connection-2OZQGEIO.js +92 -0
- package/dist/bundle/store-maintenance-command-GNX3SOZ6.js +67 -0
- package/dist/bundle/{streaming-EJ3NM2C2.js → streaming-PQEXKTE5.js} +7 -7
- package/dist/bundle/tokens-WJQYQ3FK.js +24 -0
- package/dist/bundle/zm.js +34 -10
- package/dist/bundle/{zoom-app-QEJBTIJ4.js → zoom-app-Y7RMWLVU.js} +9 -8
- package/dist/folders.d.ts +12 -2
- package/dist/folders.d.ts.map +1 -1
- package/dist/folders.js +81 -3
- package/dist/folders.js.map +1 -1
- package/dist/identity.d.ts +5 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +14 -0
- package/dist/identity.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +4 -7
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/remote-http.d.ts +1 -1
- package/dist/remote-http.d.ts.map +1 -1
- package/dist/remote-http.js +21 -23
- package/dist/remote-http.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +2 -4
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +17 -2
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +109 -29
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +15 -14
- package/dist/bundle/answer-policy-PPSPMCLH.js +0 -104
- package/dist/bundle/chunk-KMV7GZB6.js +0 -35
- package/dist/bundle/chunk-UG447QY2.js +0 -27
- package/dist/bundle/chunk-XRFHQGOD.js +0 -17
- package/dist/bundle/command-contract-4K6XXZYE.js +0 -41
- package/dist/bundle/config-EEDB632I.js +0 -90
- package/dist/bundle/first-run-23WWZ2PW.js +0 -28
- package/dist/bundle/first-screen-6HFUYVFR.js +0 -39
- package/dist/bundle/folders-ZXTOFY4T.js +0 -16
- package/dist/bundle/openai-2AU24NRN.js +0 -25
- package/dist/bundle/run-log-LFEXNZ74.js +0 -118
- package/dist/bundle/server-YSTMUZ22.js +0 -72
- package/dist/bundle/store-connection-AZTIF6IH.js +0 -83
- package/dist/bundle/store-maintenance-command-LR572PS4.js +0 -61
- package/dist/bundle/tokens-BE6CJMR5.js +0 -20
- /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-7O7XM37N.js} +0 -0
|
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FIVFP53N.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HNWDEDMU.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4RJL32PF.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.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
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -9424,7 +9424,7 @@ var EnvironmentWorker = /* @__PURE__ */ (() => {
|
|
|
9424
9424
|
const ctrl = new AbortController();
|
|
9425
9425
|
const detachExternal = linkAbort(externalSignal, ctrl);
|
|
9426
9426
|
const lease = new Lease(ctrl);
|
|
9427
|
-
const agentToolset = await import("./node-
|
|
9427
|
+
const agentToolset = await import("./node-KM3CUABH.js");
|
|
9428
9428
|
let leaseTtlMs;
|
|
9429
9429
|
let runner;
|
|
9430
9430
|
const heartbeatPromise = heartbeatLoop(sessionClient, work, lease, log, this.requestOptions, (ttlMs) => {
|
|
@@ -5,9 +5,8 @@ import {
|
|
|
5
5
|
} from "./chunk-HTQTIKWP.js";
|
|
6
6
|
import {
|
|
7
7
|
commandPathOf,
|
|
8
|
-
findCommand,
|
|
9
8
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-G2TSDMTA.js";
|
|
11
10
|
import {
|
|
12
11
|
Command,
|
|
13
12
|
Help,
|
|
@@ -18,123 +17,18 @@ import {
|
|
|
18
17
|
environmentOf,
|
|
19
18
|
metaOf,
|
|
20
19
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FJMRDRPN.js";
|
|
22
21
|
import {
|
|
23
22
|
writes
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4RJL32PF.js";
|
|
25
24
|
import {
|
|
26
25
|
CliError
|
|
27
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EA2OB75T.js";
|
|
28
27
|
import {
|
|
29
28
|
__name
|
|
30
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
30
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
-
var SECTIONS = {
|
|
34
|
-
read: "Read",
|
|
35
|
-
write: "Write",
|
|
36
|
-
organise: "Organise",
|
|
37
|
-
automate: "Automate",
|
|
38
|
-
setup: "Set up",
|
|
39
|
-
other: "Other"
|
|
40
|
-
};
|
|
41
|
-
var sections = /* @__PURE__ */ new WeakMap();
|
|
42
|
-
var inSection = /* @__PURE__ */ __name((command, section) => {
|
|
43
|
-
sections.set(command, section);
|
|
44
|
-
return command;
|
|
45
|
-
}, "inSection");
|
|
46
|
-
var sectionOf = /* @__PURE__ */ __name((command) => {
|
|
47
|
-
for (let at = command; at; at = at.parent) {
|
|
48
|
-
const section = sections.get(at) ?? (at.parent && !at.parent.parent ? CORE_SECTIONS[at.name()] : void 0);
|
|
49
|
-
if (section)
|
|
50
|
-
return section;
|
|
51
|
-
}
|
|
52
|
-
return "other";
|
|
53
|
-
}, "sectionOf");
|
|
54
|
-
var CORE_SECTIONS = {
|
|
55
|
-
attachments: "read",
|
|
56
|
-
chats: "read",
|
|
57
|
-
contacts: "read",
|
|
58
|
-
conversations: "read",
|
|
59
|
-
images: "read",
|
|
60
|
-
inbox: "read",
|
|
61
|
-
meetings: "read",
|
|
62
|
-
mentions: "read",
|
|
63
|
-
messages: "read",
|
|
64
|
-
review: "read",
|
|
65
|
-
search: "read",
|
|
66
|
-
stats: "read",
|
|
67
|
-
topics: "read",
|
|
68
|
-
watch: "read",
|
|
69
|
-
flood: "write",
|
|
70
|
-
polls: "write",
|
|
71
|
-
reactions: "write",
|
|
72
|
-
recipients: "write",
|
|
73
|
-
sends: "write",
|
|
74
|
-
metadata: "organise",
|
|
75
|
-
searches: "organise",
|
|
76
|
-
tags: "organise",
|
|
77
|
-
tasks: "organise",
|
|
78
|
-
bot: "automate",
|
|
79
|
-
mcp: "automate",
|
|
80
|
-
replies: "automate",
|
|
81
|
-
runs: "automate",
|
|
82
|
-
schedule: "automate",
|
|
83
|
-
templates: "automate",
|
|
84
|
-
serve: "automate",
|
|
85
|
-
server: "automate",
|
|
86
|
-
account: "setup",
|
|
87
|
-
commands: "setup",
|
|
88
|
-
complete: "setup",
|
|
89
|
-
config: "setup",
|
|
90
|
-
doctor: "setup",
|
|
91
|
-
guide: "setup",
|
|
92
|
-
models: "setup",
|
|
93
|
-
skill: "setup",
|
|
94
|
-
store: "setup",
|
|
95
|
-
upgrade: "setup"
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
99
|
-
var DESCRIPTION = 90;
|
|
100
|
-
var COLUMN = 52;
|
|
101
|
-
var short = /* @__PURE__ */ __name((text) => {
|
|
102
|
-
const line = text.replace(/\s+/g, " ").trim();
|
|
103
|
-
if (line.length <= DESCRIPTION)
|
|
104
|
-
return line;
|
|
105
|
-
const cut = line.slice(0, DESCRIPTION);
|
|
106
|
-
return `${cut.slice(0, Math.max(cut.lastIndexOf(" "), DESCRIPTION / 2))}\u2026`;
|
|
107
|
-
}, "short");
|
|
108
|
-
var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
109
|
-
const cli = root.name();
|
|
110
|
-
const runs = /* @__PURE__ */ __name((info) => [
|
|
111
|
-
...info.commands.length === 0 || info.runnable ? [info] : [],
|
|
112
|
-
...info.commands.flatMap(runs)
|
|
113
|
-
], "runs");
|
|
114
|
-
const bySection = new Map(Object.keys(SECTIONS).map((key) => [key, []]));
|
|
115
|
-
for (const info of commands.flatMap(runs))
|
|
116
|
-
bySection.get(sectionOf(findCommand(root, info.path)))?.push(info);
|
|
117
|
-
const where = scope ? `${cli} ${scope.join(" ")}` : cli;
|
|
118
|
-
const lines = [
|
|
119
|
-
`${where} commands, by section. One command's arguments and options: ${cli} <command> --help.`,
|
|
120
|
-
`As JSON: ${cli} commands${scope ? ` ${scope.join(" ")}` : ""} --json. (writes) marks a command that changes something.`
|
|
121
|
-
];
|
|
122
|
-
for (const [section, infos] of bySection) {
|
|
123
|
-
if (infos.length === 0)
|
|
124
|
-
continue;
|
|
125
|
-
lines.push("", SECTIONS[section]);
|
|
126
|
-
for (const { usage, summary, description, effects, availability } of infos) {
|
|
127
|
-
const what = short(summary ?? description);
|
|
128
|
-
const mark = effects === void 0 || writes(effects) ? " (writes)" : "";
|
|
129
|
-
const access = availability?.available === false ? ` [unavailable: ${availability.reason}]` : "";
|
|
130
|
-
lines.push(` ${usage.padEnd(COLUMN)} ${what}${mark}${access}`.trimEnd());
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
return `${lines.join("\n")}
|
|
134
|
-
`;
|
|
135
|
-
}, "commandsText");
|
|
136
|
-
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
138
32
|
var ARGUMENT_KINDS = {
|
|
139
33
|
chat: "chat",
|
|
140
34
|
chats: "chat",
|
|
@@ -212,7 +106,8 @@ var nextUsually = /* @__PURE__ */ __name((command, choice) => {
|
|
|
212
106
|
return command;
|
|
213
107
|
}, "nextUsually");
|
|
214
108
|
var kindOfArgument = /* @__PURE__ */ __name((argument) => ARGUMENT_KINDS[argument.name()], "kindOfArgument");
|
|
215
|
-
var
|
|
109
|
+
var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || Boolean(command._actionHandler), "runs");
|
|
110
|
+
var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child._hidden).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
|
|
216
111
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
217
112
|
let at = command;
|
|
218
113
|
while (at.parent)
|
|
@@ -235,7 +130,7 @@ var returnsOf = /* @__PURE__ */ __name((command) => {
|
|
|
235
130
|
const output = metaOf(command).output;
|
|
236
131
|
const { item, coverage } = outputOf(command);
|
|
237
132
|
if (!output || coverage !== "declared-entity")
|
|
238
|
-
return
|
|
133
|
+
return "";
|
|
239
134
|
const fields = [...new Set(fieldsOf(item))];
|
|
240
135
|
const noun = (output.view ? `${output.entity} ${output.view}` : output.entity).replaceAll("_", " ");
|
|
241
136
|
const more = fields.length > 8 ? `, and ${fields.length - 8} more` : "";
|
|
@@ -317,7 +212,7 @@ var commandHelpText = /* @__PURE__ */ __name((command) => {
|
|
|
317
212
|
return [
|
|
318
213
|
"",
|
|
319
214
|
...access,
|
|
320
|
-
...rows("Returns:", [returns]),
|
|
215
|
+
...rows("Returns:", returns ? [returns] : []),
|
|
321
216
|
...rows("Next usually:", next),
|
|
322
217
|
...rows("Example:", examples),
|
|
323
218
|
""
|
|
@@ -325,12 +220,12 @@ var commandHelpText = /* @__PURE__ */ __name((command) => {
|
|
|
325
220
|
}, "commandHelpText");
|
|
326
221
|
var commandHelpMarkdown = /* @__PURE__ */ __name((root, path) => {
|
|
327
222
|
const command = commandAt(root, path.join(" "));
|
|
328
|
-
if (!command || command
|
|
223
|
+
if (!command || !runs(command))
|
|
329
224
|
return [];
|
|
330
225
|
const { returns, next, examples } = commandHelp(command);
|
|
331
226
|
const code = /* @__PURE__ */ __name((values) => values.map((value) => `\`${value}\``).join(", "), "code");
|
|
332
227
|
return [
|
|
333
|
-
`**Returns:** ${returns}
|
|
228
|
+
...returns ? [`**Returns:** ${returns}`] : [],
|
|
334
229
|
...next.length > 0 ? [`**Next usually:** ${code(next)}`] : [],
|
|
335
230
|
`**Example:** ${code(examples)}`
|
|
336
231
|
];
|
|
@@ -355,7 +250,7 @@ var exampleReport = /* @__PURE__ */ __name((program) => {
|
|
|
355
250
|
return { written, generated, text };
|
|
356
251
|
}, "exampleReport");
|
|
357
252
|
|
|
358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
359
254
|
var WIRECAT_TOOLS = [
|
|
360
255
|
{
|
|
361
256
|
command: "tg",
|
|
@@ -397,6 +292,16 @@ var WIRECAT_TOOLS = [
|
|
|
397
292
|
command: "mail",
|
|
398
293
|
package: "@wirecat/mail-cli",
|
|
399
294
|
does: "IMAP mail in the same local store: search your mailbox offline, next to your other WireCat data"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
command: "b24",
|
|
298
|
+
package: "@wirecat/bitrix24-cli",
|
|
299
|
+
does: "Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
command: "pbx",
|
|
303
|
+
package: "@wirecat/asterisk-cli",
|
|
304
|
+
does: "Asterisk PBX calls and recordings, searchable with your other WireCat data"
|
|
400
305
|
}
|
|
401
306
|
];
|
|
402
307
|
var WIDTH = 100;
|
|
@@ -488,9 +393,6 @@ var installHelp = /* @__PURE__ */ __name((program, screen = {}) => {
|
|
|
488
393
|
}, "installHelp");
|
|
489
394
|
|
|
490
395
|
export {
|
|
491
|
-
SECTIONS,
|
|
492
|
-
inSection,
|
|
493
|
-
commandsText,
|
|
494
396
|
nextUsually,
|
|
495
397
|
commandHelp,
|
|
496
398
|
commandHelpText,
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
answerSchema,
|
|
7
7
|
describeOptions,
|
|
8
8
|
metaOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FJMRDRPN.js";
|
|
10
10
|
import {
|
|
11
11
|
keyForCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OMLVWOEF.js";
|
|
13
13
|
import {
|
|
14
14
|
jsonSchemaOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4RJL32PF.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EA2OB75T.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
24
24
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
25
25
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
26
26
|
const entity = answerEntitySchema(command);
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
refuseLacking
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2BAZRRJP.js";
|
|
6
6
|
import {
|
|
7
7
|
servingProfiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3ADFJ3UP.js";
|
|
9
9
|
import {
|
|
10
10
|
FloodMemory,
|
|
11
11
|
OFFLINE,
|
|
@@ -21,14 +21,7 @@ import {
|
|
|
21
21
|
servicesFor,
|
|
22
22
|
throughWrapper,
|
|
23
23
|
withFileLockAsync
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
chatReferenceOf,
|
|
27
|
-
ensureAccount,
|
|
28
|
-
foldName,
|
|
29
|
-
isId,
|
|
30
|
-
pickPerson
|
|
31
|
-
} from "./chunk-P3XC6EDU.js";
|
|
24
|
+
} from "./chunk-OU5OXA6Q.js";
|
|
32
25
|
import {
|
|
33
26
|
asFirstWord,
|
|
34
27
|
baseContext,
|
|
@@ -39,42 +32,50 @@ import {
|
|
|
39
32
|
recalledAccount,
|
|
40
33
|
rememberAccount,
|
|
41
34
|
rootOf2 as rootOf
|
|
42
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FJMRDRPN.js";
|
|
43
36
|
import {
|
|
44
37
|
providerErrorKey
|
|
45
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ILDGZBZD.js";
|
|
46
39
|
import {
|
|
47
40
|
codeOf,
|
|
48
41
|
currentOperation,
|
|
49
42
|
limitBatch
|
|
50
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-USIMMGWS.js";
|
|
51
44
|
import {
|
|
52
45
|
AUTHORITY_KEY,
|
|
53
46
|
CEILING_KEY,
|
|
54
47
|
DEFAULT_PERMISSIONS,
|
|
48
|
+
KEYED_UNDER_HOUSEKEEPING,
|
|
55
49
|
WRITE_KEYS,
|
|
56
50
|
keyForCommand,
|
|
57
51
|
levelFor,
|
|
58
52
|
readKeysForCommand,
|
|
59
53
|
skipFlagFor
|
|
60
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-OMLVWOEF.js";
|
|
61
55
|
import {
|
|
62
56
|
openStore
|
|
63
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-HO3GBTIT.js";
|
|
58
|
+
import {
|
|
59
|
+
chatReferenceOf,
|
|
60
|
+
ensureAccount,
|
|
61
|
+
foldName,
|
|
62
|
+
isId,
|
|
63
|
+
pickPerson
|
|
64
|
+
} from "./chunk-K5JFX5TK.js";
|
|
64
65
|
import {
|
|
65
66
|
isCliFailure
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-UYBLNGZ2.js";
|
|
67
68
|
import {
|
|
68
69
|
resolvePaths
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-HNWDEDMU.js";
|
|
70
71
|
import {
|
|
71
72
|
CliError
|
|
72
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-EA2OB75T.js";
|
|
73
74
|
import {
|
|
74
75
|
__name
|
|
75
76
|
} from "./chunk-ZVVMGPBJ.js";
|
|
76
77
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
78
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
78
79
|
import { openSync } from "node:fs";
|
|
79
80
|
import { createInterface } from "node:readline";
|
|
80
81
|
import { ReadStream } from "node:tty";
|
|
@@ -129,7 +130,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
129
130
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
130
131
|
}, "terminalAsker");
|
|
131
132
|
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
133
134
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
134
135
|
"help",
|
|
135
136
|
"guide",
|
|
@@ -143,7 +144,7 @@ var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
|
143
144
|
"mcp",
|
|
144
145
|
"runs"
|
|
145
146
|
]);
|
|
146
|
-
var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) ? null : path.join("."), "commandPathKey");
|
|
147
|
+
var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) && !KEYED_UNDER_HOUSEKEEPING.has(path.join(".")) ? null : path.join("."), "commandPathKey");
|
|
147
148
|
var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {}, alsoChecks } = {}) => ({
|
|
148
149
|
keyOf,
|
|
149
150
|
extra: [AUTHORITY_KEY, ...extra],
|
|
@@ -209,7 +210,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
209
210
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
210
211
|
}, "refuseUnknownPermissionKeys");
|
|
211
212
|
|
|
212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
213
214
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
214
215
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
215
216
|
let warned = false;
|
|
@@ -785,7 +786,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
785
786
|
}
|
|
786
787
|
}, "keep");
|
|
787
788
|
|
|
788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
789
790
|
import { readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
790
791
|
import { join } from "node:path";
|
|
791
792
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -807,12 +808,12 @@ var Pacer = class {
|
|
|
807
808
|
}
|
|
808
809
|
/** When this call may go; reserved at once, so the next caller in any process lines up behind it. */
|
|
809
810
|
async reserve() {
|
|
810
|
-
const now = this.now();
|
|
811
811
|
if (this.interval === 0)
|
|
812
|
-
return now;
|
|
812
|
+
return this.now();
|
|
813
813
|
return withFileLockAsync(this.path, "the request pace", () => {
|
|
814
|
-
const
|
|
815
|
-
|
|
814
|
+
const now = this.now();
|
|
815
|
+
const tat = Math.max(this.read(now), now);
|
|
816
|
+
this.write(tat + this.interval, now);
|
|
816
817
|
return Math.max(now, tat - this.rate.burst * this.interval);
|
|
817
818
|
});
|
|
818
819
|
}
|
|
@@ -821,25 +822,30 @@ var Pacer = class {
|
|
|
821
822
|
if (this.interval === 0)
|
|
822
823
|
return;
|
|
823
824
|
await withFileLockAsync(this.path, "the request pace", () => {
|
|
824
|
-
const
|
|
825
|
-
this.
|
|
825
|
+
const now = this.now();
|
|
826
|
+
const hold = now + waitMs + this.rate.burst * this.interval;
|
|
827
|
+
this.write(Math.max(this.read(now), hold), now);
|
|
826
828
|
});
|
|
827
829
|
}
|
|
828
830
|
/** The owner's `flood clear`: every process may go again at once. */
|
|
829
831
|
async reset() {
|
|
830
|
-
await withFileLockAsync(this.path, "the request pace", () => this.write(0));
|
|
832
|
+
await withFileLockAsync(this.path, "the request pace", () => this.write(0, this.now()));
|
|
831
833
|
}
|
|
832
|
-
read() {
|
|
834
|
+
read(now) {
|
|
833
835
|
try {
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
+
const file = JSON.parse(readFileSync(this.path, "utf8"));
|
|
837
|
+
const tat = Number(file.tat);
|
|
838
|
+
if (!Number.isFinite(tat))
|
|
839
|
+
return 0;
|
|
840
|
+
const at = Number(file.at);
|
|
841
|
+
return Number.isFinite(at) && at > now ? now + Math.max(0, tat - at) : tat;
|
|
836
842
|
} catch {
|
|
837
843
|
return 0;
|
|
838
844
|
}
|
|
839
845
|
}
|
|
840
|
-
write(tat) {
|
|
846
|
+
write(tat, at) {
|
|
841
847
|
const temporary = `${this.path}.${process.pid}.tmp`;
|
|
842
|
-
writeFileSync(temporary, JSON.stringify({ tat }), { mode: 384 });
|
|
848
|
+
writeFileSync(temporary, JSON.stringify({ tat, at }), { mode: 384 });
|
|
843
849
|
renameSync(temporary, this.path);
|
|
844
850
|
}
|
|
845
851
|
};
|
|
@@ -861,8 +867,8 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
861
867
|
const waitMs = at - now();
|
|
862
868
|
if (waitMs <= 0)
|
|
863
869
|
return;
|
|
864
|
-
if (waitMs > LONGEST_PACE_WAIT_MS)
|
|
865
|
-
throw new CliError("rate_limited",
|
|
870
|
+
if (waitMs > (options.longestWaitMs ?? LONGEST_PACE_WAIT_MS))
|
|
871
|
+
throw new CliError("rate_limited", `this profile's next request to ${name} has to wait ${Math.ceil(waitMs / 1e3)} s more \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
|
|
866
872
|
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
867
873
|
const seconds = Math.ceil(waitMs / 1e3);
|
|
868
874
|
warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
@@ -875,7 +881,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
875
881
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
876
882
|
}, "waitForTurn");
|
|
877
883
|
|
|
878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
879
885
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
880
886
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
881
887
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -972,7 +978,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
972
978
|
});
|
|
973
979
|
}, "flooded");
|
|
974
980
|
|
|
975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
976
982
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
977
983
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
978
984
|
const write = currentOperation();
|
|
@@ -1071,7 +1077,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1071
1077
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1072
1078
|
}, "byPart");
|
|
1073
1079
|
|
|
1074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1075
1081
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1076
1082
|
let opened;
|
|
1077
1083
|
return {
|
|
@@ -1483,6 +1489,7 @@ export {
|
|
|
1483
1489
|
unknownPermissionIssues,
|
|
1484
1490
|
refuseUnknownPermissionKeys,
|
|
1485
1491
|
stored,
|
|
1492
|
+
fill,
|
|
1486
1493
|
connectFor,
|
|
1487
1494
|
connectedFor,
|
|
1488
1495
|
refuseLocalWrite,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
checkCancelled
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZMHZ6CQS.js";
|
|
6
6
|
import {
|
|
7
7
|
BASE_CONSTANTS,
|
|
8
8
|
baseConstantsSchema,
|
|
9
9
|
loadConstants
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HNWDEDMU.js";
|
|
11
11
|
import {
|
|
12
12
|
nonEmpty,
|
|
13
13
|
object,
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
pipe,
|
|
16
16
|
string,
|
|
17
17
|
transform
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4RJL32PF.js";
|
|
19
19
|
import {
|
|
20
20
|
CliError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EA2OB75T.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/constants/obscure.js
|
|
27
27
|
import { createDecipheriv } from "node:crypto";
|
|
28
28
|
var KEY = Buffer.from("d43012779aa2dded3e98092a3dbcf5d8980c564172f5ce0a5fd0574e5f740339", "hex");
|
|
29
29
|
var reveal = /* @__PURE__ */ __name((obscured) => {
|
|
@@ -32,7 +32,7 @@ var reveal = /* @__PURE__ */ __name((obscured) => {
|
|
|
32
32
|
return Buffer.concat([decipher.update(bytes.subarray(16)), decipher.final()]).toString("utf8");
|
|
33
33
|
}, "reveal");
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/constants/index.js
|
|
36
36
|
var CORE_CONSTANTS = new URL("../../constants.json", new URL("constants/index.js", import.meta.resolve("@wirecat/cli-core")).href);
|
|
37
37
|
var constantsSchema = object({
|
|
38
38
|
...baseConstantsSchema.entries,
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4LFFDUUW.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EA2OB75T.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.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
|
|
8
8
|
var CONTROL = (
|
|
9
9
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
10
10
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|