@wirecat/zoom-cli 0.74.0 → 0.76.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 +5 -4
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-SDOAABLC.js → all-profiles-AAMFP7IN.js} +22 -32
- package/dist/bundle/answer-policy-ETAELI4A.js +110 -0
- package/dist/bundle/{anthropic-HCVY2PIN.js → anthropic-6KIS53QB.js} +6 -6
- package/dist/bundle/{app-server-V64VS6KN.js → app-server-6QYNNYEU.js} +59 -74
- package/dist/bundle/{bun-EBQHHLKR.js → bun-QVVCH4MJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-PVMXO2JB.js → bun-sqlite-Y2ZFMNQ3.js} +7 -7
- package/dist/bundle/{chunk-3ROL6MBJ.js → chunk-25GMFXPF.js} +949 -772
- package/dist/bundle/{chunk-APLV37JA.js → chunk-2HKUQ7DR.js} +3 -3
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-35AH33VJ.js} +1 -1
- package/dist/bundle/{chunk-4RJL32PF.js → chunk-3D5PETD2.js} +26 -9
- package/dist/bundle/{chunk-QLKCKTM4.js → chunk-4ERYXY4Y.js} +1 -1
- package/dist/bundle/{chunk-XFT3YIHU.js → chunk-4JPOELCT.js} +4 -4
- package/dist/bundle/{chunk-TN2YUZBF.js → chunk-55SWKR6Y.js} +189 -160
- package/dist/bundle/{chunk-2PYZTRRC.js → chunk-5EII5RIL.js} +1 -1
- package/dist/bundle/{chunk-OPUGV7VW.js → chunk-5T7TBK5Y.js} +1 -1
- package/dist/bundle/{chunk-6EMOZGSN.js → chunk-64N7MY3I.js} +3 -3
- package/dist/bundle/{chunk-DXZN3DU6.js → chunk-65VRWNDP.js} +4 -4
- package/dist/bundle/{chunk-4EZKR6Q4.js → chunk-6SXCGS3A.js} +7 -7
- package/dist/bundle/{chunk-FL2TKSZY.js → chunk-6VCQ4CTK.js} +1 -1
- package/dist/bundle/{chunk-Y4KWWPIO.js → chunk-7RORMNKP.js} +2 -2
- package/dist/bundle/{chunk-N7KCNMKL.js → chunk-B7ZREOBD.js} +12 -12
- package/dist/bundle/{chunk-QSWR7VDA.js → chunk-CE5Y7PQU.js} +4 -4
- package/dist/bundle/{chunk-LHPYSVGP.js → chunk-CPOFLYPU.js} +33 -29
- package/dist/bundle/{chunk-HNWDEDMU.js → chunk-CS62FET6.js} +21 -21
- package/dist/bundle/{chunk-WYV5IITK.js → chunk-CXHUOPN5.js} +7 -7
- package/dist/bundle/{chunk-IZUOL4Q6.js → chunk-D2TGXSHQ.js} +5 -5
- package/dist/bundle/{chunk-ZYMTS3CI.js → chunk-DQHS336B.js} +6 -6
- package/dist/bundle/{chunk-WRRGO246.js → chunk-EBIK5Q73.js} +1 -1
- package/dist/bundle/{chunk-NKBMLSWK.js → chunk-ELW3LMJZ.js} +1281 -435
- package/dist/bundle/{chunk-HCZYJMBP.js → chunk-EPPE6ZTS.js} +1 -1
- package/dist/bundle/{chunk-TKPIDOW5.js → chunk-EZJSAYWZ.js} +21 -21
- package/dist/bundle/{chunk-2PNG76LV.js → chunk-EZXW3ZCR.js} +35 -13
- package/dist/bundle/{chunk-UW3BB2XW.js → chunk-FBVJGJDM.js} +29 -28
- package/dist/bundle/{chunk-ZMHZ6CQS.js → chunk-FGRFIXG2.js} +2 -2
- package/dist/bundle/{chunk-3HTJBGNP.js → chunk-FMJ4QSSU.js} +21 -16
- package/dist/bundle/{chunk-7W23N2YW.js → chunk-GB5LI5RM.js} +6 -6
- package/dist/bundle/{chunk-TLNZUPGU.js → chunk-GPIQY4YB.js} +14 -14
- package/dist/bundle/{chunk-OP6HK2QL.js → chunk-GYTAHH5Y.js} +2 -2
- package/dist/bundle/{chunk-LN2LWPN2.js → chunk-GZYICXO4.js} +1 -1
- package/dist/bundle/{chunk-R4J4DLJV.js → chunk-HUHH25AG.js} +833 -625
- package/dist/bundle/{chunk-X2FILY5F.js → chunk-HWYSJ4SL.js} +3 -3
- package/dist/bundle/{chunk-UXSTXFZQ.js → chunk-IUSY4ZJK.js} +6170 -6003
- package/dist/bundle/{chunk-UGLNVUFX.js → chunk-IVFNHIU4.js} +5 -5
- package/dist/bundle/{chunk-BKMC4ETU.js → chunk-IXPBSDKB.js} +4 -4
- package/dist/bundle/{chunk-XGEPAJBY.js → chunk-JADBHKBP.js} +1 -1
- package/dist/bundle/{chunk-KBRIMLVN.js → chunk-JWMOHEDL.js} +22 -12
- package/dist/bundle/{chunk-EA2OB75T.js → chunk-K3K3WKDB.js} +1 -1
- package/dist/bundle/{chunk-LQR4V5EY.js → chunk-KEFDP6NL.js} +12 -12
- package/dist/bundle/{chunk-5KDBLEUF.js → chunk-LEVOI6Z3.js} +12 -12
- package/dist/bundle/{chunk-QAGSAOYS.js → chunk-LGBLYFKI.js} +2 -2
- package/dist/bundle/{chunk-SKDQNYKA.js → chunk-LOEK6IFQ.js} +48 -39
- package/dist/bundle/{chunk-4ELLWJT4.js → chunk-M7WYBGQT.js} +8 -8
- package/dist/bundle/{chunk-DSRG5NRF.js → chunk-MDTEAKA5.js} +5 -5
- package/dist/bundle/{chunk-PKM2UKAZ.js → chunk-NQ356ERO.js} +15 -4
- package/dist/bundle/{chunk-FY2X6U6O.js → chunk-OFODCJ2A.js} +3 -3
- package/dist/bundle/{chunk-6GPBDVQ2.js → chunk-OINDAHXC.js} +4 -4
- package/dist/bundle/{chunk-NV2REPY6.js → chunk-OOYIPK4F.js} +1 -1
- package/dist/bundle/{chunk-5R6EBM5Z.js → chunk-ORM73DZO.js} +2 -2
- package/dist/bundle/{chunk-R35YGFKQ.js → chunk-OWZETMRE.js} +34 -9
- package/dist/bundle/{chunk-PMHMKZEJ.js → chunk-PFLJJQWW.js} +46 -54
- package/dist/bundle/{chunk-UVWNUY3W.js → chunk-QLUU3BV2.js} +2 -2
- package/dist/bundle/{chunk-3TYNBHBK.js → chunk-QY6GE7CL.js} +2 -2
- package/dist/bundle/{chunk-RQJ2RXFO.js → chunk-R47GYLNN.js} +37 -30
- package/dist/bundle/{chunk-LUBG5GKK.js → chunk-RJK5ADMH.js} +18 -19
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-RXUVXAMM.js} +1 -1
- package/dist/bundle/{chunk-RRW54FK6.js → chunk-T2QVWRJF.js} +13 -13
- package/dist/bundle/{chunk-SPWKGRTO.js → chunk-TK77DCE5.js} +1 -1
- package/dist/bundle/{chunk-7R4UU65O.js → chunk-TYAFL66K.js} +43 -26
- package/dist/bundle/{chunk-HZUUVNWC.js → chunk-UAV74EY4.js} +1 -1
- package/dist/bundle/{chunk-BOGGQOVO.js → chunk-UG2QDGAH.js} +1 -1
- package/dist/bundle/{chunk-YNI57LTZ.js → chunk-UYZDH5LK.js} +1 -1
- package/dist/bundle/{chunk-YFLTHGB3.js → chunk-VABYJQYE.js} +10 -10
- package/dist/bundle/{chunk-IJCUAKR5.js → chunk-VCFSUGPE.js} +4 -4
- package/dist/bundle/{chunk-TMCXUWTY.js → chunk-VG63EXRC.js} +2 -2
- package/dist/bundle/{chunk-XCC7R47Z.js → chunk-VJANMYEC.js} +3 -3
- package/dist/bundle/{chunk-KCPRTZBZ.js → chunk-VRA4RVQU.js} +98 -6
- package/dist/bundle/{chunk-HGUYJUNO.js → chunk-WKT5RPSY.js} +8 -8
- package/dist/bundle/{chunk-GPGIU3OG.js → chunk-WNXC42IU.js} +9 -9
- package/dist/bundle/{chunk-FT7X74RT.js → chunk-WZJ7ZYR4.js} +4 -4
- package/dist/bundle/{chunk-I2D4ZZOD.js → chunk-X73YEFQE.js} +21 -18
- package/dist/bundle/{chunk-7NE3LB7A.js → chunk-XC4V6YCS.js} +1 -1
- package/dist/bundle/{chunk-LZ4AVHBS.js → chunk-XHVFX74L.js} +2 -2
- package/dist/bundle/{chunk-AFUHT7F7.js → chunk-XRH2NKW4.js} +6 -6
- package/dist/bundle/{chunk-P53CLAXD.js → chunk-XWQKRKMT.js} +63 -60
- package/dist/bundle/{chunk-RJJ4OYNH.js → chunk-Y2BGABXP.js} +3 -3
- package/dist/bundle/{chunk-KYL5FYOW.js → chunk-Y4WEAWU7.js} +1 -1
- package/dist/bundle/{chunk-F6PUM6ZK.js → chunk-YEBWRWE3.js} +17 -17
- package/dist/bundle/{chunk-SY4MIIWF.js → chunk-YESHGC3M.js} +2 -2
- package/dist/bundle/{chunk-IS6FUZCP.js → chunk-YGKM2ZWF.js} +3 -3
- package/dist/bundle/{chunk-YM6ZATEK.js → chunk-ZETM63M6.js} +6 -6
- package/dist/bundle/{chunk-MAE5UGRQ.js → chunk-ZFYNJERV.js} +6 -6
- package/dist/bundle/{cli-5ALOQCAC.js → cli-FHMLYHUZ.js} +78 -66
- package/dist/bundle/command-contract-HUZ4I23S.js +41 -0
- package/dist/bundle/{command-server-entry-ICOMIJIH.js → command-server-entry-YEZM52R5.js} +31 -31
- package/dist/bundle/config-KVTWN7QZ.js +97 -0
- package/dist/bundle/{decode-7LFOROWF.js → decode-SIYRMJOK.js} +6 -6
- package/dist/bundle/{dispatch-EU67WGME.js → dispatch-SMER3WDX.js} +9 -9
- package/dist/bundle/{dist-KJOOYNCP.js → dist-BSJETSFE.js} +24 -20
- package/dist/bundle/{echarts-EJXBKCJT.js → echarts-UZJ6AREV.js} +2 -2
- package/dist/bundle/{embed-TOZCKRRO.js → embed-A7DSHVI7.js} +7 -7
- package/dist/bundle/{embedder-QKEKUCS5.js → embedder-WQBR4UGS.js} +10 -10
- package/dist/bundle/{failure-CTJLEB2R.js → failure-73UQXQTW.js} +3 -3
- package/dist/bundle/first-run-SY6XSUZ3.js +29 -0
- package/dist/bundle/first-screen-ZDMODGWS.js +39 -0
- package/dist/bundle/{folders-MSBTAPAG.js → folders-BH4SV6SI.js} +5 -5
- package/dist/bundle/{instructions-Z7GVGWXS.js → instructions-SDDUBGH4.js} +1 -1
- package/dist/bundle/{main-RL3GC4OX.js → main-KL4FN5F3.js} +24 -24
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-GN4FTJX5.js} +2 -2
- package/dist/bundle/{meetings-JCMLE5AO.js → meetings-URPXBHV7.js} +41 -7
- package/dist/bundle/{node-L2PVEW3N.js → node-ELCNUOCE.js} +2 -2
- package/dist/bundle/{node-sqlite-4YW3W4XI.js → node-sqlite-QLSNHZBM.js} +8 -8
- package/dist/bundle/{oauth-NNHWAT6A.js → oauth-LZ64S7Y3.js} +8 -8
- package/dist/bundle/{open-PF2JHJIY.js → open-WB4HUPQT.js} +6 -6
- package/dist/bundle/openai-KN6JE4QU.js +28 -0
- package/dist/bundle/{output-file-VDOCYH2G.js → output-file-AHPQA5LR.js} +6 -6
- package/dist/bundle/{process-MNZTQ2DA.js → process-67DAKAAQ.js} +1 -1
- package/dist/bundle/{program-FOCBZZZS.js → program-CIMACIBE.js} +90 -83
- package/dist/bundle/{prompt-RBSUKMV7.js → prompt-GG53UBDJ.js} +6 -6
- package/dist/bundle/{recognize-RM6TQKK3.js → recognize-CFJ3CAEH.js} +5 -5
- package/dist/bundle/{remote-UKHTU3YR.js → remote-BLEM7C3Q.js} +11 -11
- package/dist/bundle/{rerank-3LBRVESU.js → rerank-ERN6PC66.js} +8 -8
- package/dist/bundle/run-log-S67YPJF6.js +124 -0
- package/dist/bundle/{serve-OOZFTW3W.js → serve-FJPPTJXH.js} +10 -10
- package/dist/bundle/{server-YNQPNIJD.js → server-FLUSDUGM.js} +57 -55
- package/dist/bundle/server-UNJY3TSJ.js +74 -0
- package/dist/bundle/{services-SLEOMN4B.js → services-LXC6DVUQ.js} +43 -41
- package/dist/bundle/{speech-FZZ6QVGU.js → speech-WFEZTKXA.js} +17 -17
- package/dist/bundle/{sqlite-runtime-WUR4PWYB.js → sqlite-runtime-KN33VSP7.js} +7 -7
- package/dist/bundle/{state-ET36L4TY.js → state-TXS4ZHIT.js} +7 -7
- package/dist/bundle/{store-SQB2DOVJ.js → store-MUOXLVL4.js} +22 -22
- package/dist/bundle/{store-DI6OUBXA.js → store-ZUREZYZB.js} +20 -20
- package/dist/bundle/store-connection-NRNEBUPU.js +90 -0
- package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +65 -0
- package/dist/bundle/{streaming-PQEXKTE5.js → streaming-ZSCHRC5S.js} +7 -7
- package/dist/bundle/{tokens-SUHRRQ25.js → tokens-YVDOY4EV.js} +10 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-GE4SSHOP.js → zoom-app-O6GIMB7Y.js} +8 -8
- package/dist/meeting-search-commands.d.ts.map +1 -1
- package/dist/meeting-search-commands.js +6 -5
- package/dist/meeting-search-commands.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -1
- package/dist/program-bindings.js.map +1 -1
- package/dist/recording-schedule-commands.d.ts.map +1 -1
- package/dist/recording-schedule-commands.js +2 -2
- package/dist/recording-schedule-commands.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +3 -1
- package/dist/run.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-RHS74QYY.js +0 -110
- package/dist/bundle/chunk-IJONJTST.js +0 -76
- package/dist/bundle/command-contract-WO5QJVLZ.js +0 -41
- package/dist/bundle/config-YQA5TJ7Y.js +0 -97
- package/dist/bundle/first-run-S7CQVGK6.js +0 -29
- package/dist/bundle/first-screen-6GW6FD6S.js +0 -39
- package/dist/bundle/openai-C72ADYMD.js +0 -28
- package/dist/bundle/run-log-UXINNGKA.js +0 -124
- package/dist/bundle/server-DM5ZPFZB.js +0 -75
- package/dist/bundle/store-connection-M6LVRAZ5.js +0 -90
- package/dist/bundle/store-maintenance-command-B66KWG6K.js +0 -65
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-BDCC2J2Z.js} +0 -0
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
modelsDirectory,
|
|
8
8
|
speechModel,
|
|
9
9
|
vadPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OINDAHXC.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-K3K3WKDB.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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/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";
|
|
@@ -50,7 +50,7 @@ var recognizeLocalPieces = /* @__PURE__ */ __name(async (id, audio, options = {}
|
|
|
50
50
|
const directory = options.directory ?? modelsDirectory(options.env);
|
|
51
51
|
if (!isInstalled(model, directory))
|
|
52
52
|
throw notInstalled(model.id);
|
|
53
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
53
|
+
const { openRecognizer, toModelRate } = await import("./recognize-CFJ3CAEH.js");
|
|
54
54
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
55
55
|
try {
|
|
56
56
|
if (!engine.pieces)
|
|
@@ -81,7 +81,7 @@ var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) =>
|
|
|
81
81
|
cancelled(options.signal);
|
|
82
82
|
if (!isInstalled(model, directory))
|
|
83
83
|
throw notInstalled(description.model);
|
|
84
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
84
|
+
const { openRecognizer, toModelRate } = await import("./recognize-CFJ3CAEH.js");
|
|
85
85
|
cancelled(options.signal);
|
|
86
86
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
87
87
|
let closing = false;
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2HKUQ7DR.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -2,15 +2,15 @@ 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-OWZETMRE.js";
|
|
6
6
|
import {
|
|
7
7
|
WORD_BODY,
|
|
8
8
|
e164Of
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EZJSAYWZ.js";
|
|
10
10
|
import {
|
|
11
11
|
resolvePaths,
|
|
12
12
|
writeSecurely
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CS62FET6.js";
|
|
14
14
|
import {
|
|
15
15
|
array,
|
|
16
16
|
getDotPath,
|
|
@@ -29,18 +29,18 @@ import {
|
|
|
29
29
|
string,
|
|
30
30
|
transform,
|
|
31
31
|
unknown
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3D5PETD2.js";
|
|
33
33
|
import {
|
|
34
34
|
CliError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-K3K3WKDB.js";
|
|
36
36
|
import {
|
|
37
37
|
visibleControls
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-EPPE6ZTS.js";
|
|
39
39
|
import {
|
|
40
40
|
__name
|
|
41
41
|
} from "./chunk-ZVVMGPBJ.js";
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
44
44
|
import { createHash } from "node:crypto";
|
|
45
45
|
var MAX_ID = 512;
|
|
46
46
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -271,7 +271,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId
|
|
|
271
271
|
};
|
|
272
272
|
}, "envelopeOfVcard");
|
|
273
273
|
|
|
274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
275
275
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
276
276
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
277
277
|
const { text, spans } = formatted;
|
|
@@ -331,7 +331,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
331
331
|
};
|
|
332
332
|
}, "visibleFormattedText");
|
|
333
333
|
|
|
334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
335
335
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
336
336
|
var LINK = /https?:\/\/\S+/i;
|
|
337
337
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -519,8 +519,8 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
519
519
|
}, "nextPoint");
|
|
520
520
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
521
521
|
|
|
522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
523
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
523
|
+
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
524
524
|
import { join } from "node:path";
|
|
525
525
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
526
526
|
var OLD_LEVELS = { forbid: "deny", flag: "ask", confirm: "ask", allow: "allow" };
|
|
@@ -588,7 +588,16 @@ var KEYS = {
|
|
|
588
588
|
"consent.remove": { help: LEVELS.join("|"), parse: String }
|
|
589
589
|
};
|
|
590
590
|
var RULE_KEYS = Object.keys(KEYS);
|
|
591
|
-
var
|
|
591
|
+
var stateFolder = /* @__PURE__ */ __name((app, env, folder) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, folder), "stateFolder");
|
|
592
|
+
var profilesFolder = /* @__PURE__ */ __name((app, env) => stateFolder(app, env, "profiles"), "profilesFolder");
|
|
593
|
+
var moderationPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join(profilesFolder(app, env), `${profile}.moderation.json`), "moderationPathFor");
|
|
594
|
+
var namesIn = /* @__PURE__ */ __name((folder, suffix) => existsSync(folder) ? readdirSync(folder).filter((name) => name.endsWith(suffix)).map((name) => name.slice(0, -suffix.length)) : [], "namesIn");
|
|
595
|
+
var moderationProfiles = /* @__PURE__ */ __name((app, env = process.env) => [
|
|
596
|
+
.../* @__PURE__ */ new Set([
|
|
597
|
+
...namesIn(stateFolder(app, env, "accounts"), ".json"),
|
|
598
|
+
...namesIn(profilesFolder(app, env), ".moderation.json")
|
|
599
|
+
])
|
|
600
|
+
].sort(), "moderationProfiles");
|
|
592
601
|
var ModerationRules = class {
|
|
593
602
|
static {
|
|
594
603
|
__name(this, "ModerationRules");
|
|
@@ -678,5 +687,6 @@ export {
|
|
|
678
687
|
defaultRules,
|
|
679
688
|
RULE_KEYS,
|
|
680
689
|
moderationPathFor,
|
|
690
|
+
moderationProfiles,
|
|
681
691
|
ModerationRules
|
|
682
692
|
};
|
|
@@ -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.100.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
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|
|
@@ -2,28 +2,28 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCommandServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Y4WEAWU7.js";
|
|
6
6
|
import {
|
|
7
7
|
envName,
|
|
8
8
|
readOnlyLockOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QY6GE7CL.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureSqlite
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7RORMNKP.js";
|
|
13
13
|
import {
|
|
14
14
|
catchCrashes
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3D5PETD2.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-K3K3WKDB.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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
24
24
|
import { spawn } from "node:child_process";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
27
27
|
import { appendFileSync } from "node:fs";
|
|
28
28
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
29
29
|
const words = [];
|
|
@@ -47,7 +47,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
47
47
|
`);
|
|
48
48
|
}, "logVersion");
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
51
51
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
52
52
|
argv: process.argv,
|
|
53
53
|
env: process.env,
|
|
@@ -67,7 +67,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
67
67
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
|
|
68
68
|
return printVersion(entry.app, io);
|
|
69
69
|
if (isCommandServer(args)) {
|
|
70
|
-
const { serveEntry } = await import("./command-server-entry-
|
|
70
|
+
const { serveEntry } = await import("./command-server-entry-YEZM52R5.js");
|
|
71
71
|
return serveEntry(entry, io, { firstRunAt, commanderExit });
|
|
72
72
|
}
|
|
73
73
|
const tty = io.stdout.isTTY === true;
|
|
@@ -105,7 +105,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
105
105
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
106
106
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
107
107
|
return false;
|
|
108
|
-
const { readSecret } = await import("./prompt-
|
|
108
|
+
const { readSecret } = await import("./prompt-GG53UBDJ.js");
|
|
109
109
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
110
110
|
input: io.stdin,
|
|
111
111
|
output: io.stderr,
|
|
@@ -148,8 +148,8 @@ var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command)
|
|
|
148
148
|
if (command.optsWithGlobals().dryRun === true)
|
|
149
149
|
return;
|
|
150
150
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
151
|
-
import("./first-run-
|
|
152
|
-
import("./command-contract-
|
|
151
|
+
import("./first-run-SY6XSUZ3.js"),
|
|
152
|
+
import("./command-contract-HUZ4I23S.js")
|
|
153
153
|
]);
|
|
154
154
|
await setupAtStart({
|
|
155
155
|
command: entry.app.command,
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WZJ7ZYR4.js";
|
|
6
6
|
import {
|
|
7
7
|
QUESTIONS,
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4JPOELCT.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-M7WYBGQT.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WKT5RPSY.js";
|
|
19
19
|
import {
|
|
20
20
|
installerOf
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-35AH33VJ.js";
|
|
22
22
|
import {
|
|
23
23
|
storePath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XHVFX74L.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-ZUREZYZB.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-WB4HUPQT.js"),
|
|
117
|
+
import("./store-maintenance-command-OBOPYFZ5.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-ZDMODGWS.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-GG53UBDJ.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
parseReference
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TYAFL66K.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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/links.js
|
|
11
11
|
var LINK_VERSION = "v1";
|
|
12
12
|
var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
|
|
13
13
|
var APP_PREFIX = "wirecat://open";
|
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RJK5ADMH.js";
|
|
10
10
|
import {
|
|
11
11
|
callerOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VRA4RVQU.js";
|
|
13
13
|
import {
|
|
14
14
|
lentConnection,
|
|
15
15
|
refuseLacking
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EZXW3ZCR.js";
|
|
17
17
|
import {
|
|
18
18
|
failureContext
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NQ356ERO.js";
|
|
20
20
|
import {
|
|
21
21
|
QUERY_ARGUMENT,
|
|
22
22
|
onlineDeps,
|
|
23
23
|
servicesFor,
|
|
24
24
|
storeModeDeps
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-25GMFXPF.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_OUTPUT_BYTES,
|
|
28
28
|
ENTITIES,
|
|
@@ -37,39 +37,40 @@ import {
|
|
|
37
37
|
refuseStoreChange,
|
|
38
38
|
sealed,
|
|
39
39
|
startRecording
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-55SWKR6Y.js";
|
|
41
41
|
import {
|
|
42
42
|
currentCaller,
|
|
43
43
|
keepsSuccess,
|
|
44
44
|
runContextOf,
|
|
45
45
|
withCaller
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-CXHUOPN5.js";
|
|
47
47
|
import {
|
|
48
48
|
authorityAllowed,
|
|
49
49
|
botApiAllowed,
|
|
50
|
+
fetchesAt,
|
|
50
51
|
keyForCommand,
|
|
51
52
|
levelFor,
|
|
52
53
|
readKeysForCommand
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-OWZETMRE.js";
|
|
54
55
|
import {
|
|
55
56
|
MAX_BUFFERED_INPUT
|
|
56
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-GYTAHH5Y.js";
|
|
57
58
|
import {
|
|
58
59
|
enclosingTraceId,
|
|
59
60
|
inRun,
|
|
60
61
|
newRunId,
|
|
61
62
|
traceOf
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-FBVJGJDM.js";
|
|
63
64
|
import {
|
|
64
65
|
storeDamaged
|
|
65
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-VG63EXRC.js";
|
|
66
67
|
import {
|
|
67
68
|
queryDescription
|
|
68
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-FMJ4QSSU.js";
|
|
69
70
|
import {
|
|
70
71
|
captureStreams,
|
|
71
72
|
traceIdOf
|
|
72
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-CS62FET6.js";
|
|
73
74
|
import {
|
|
74
75
|
COMPACT_FLAG,
|
|
75
76
|
SNAKE_CASE,
|
|
@@ -108,19 +109,19 @@ import {
|
|
|
108
109
|
unknown,
|
|
109
110
|
word,
|
|
110
111
|
writes
|
|
111
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-3D5PETD2.js";
|
|
112
113
|
import {
|
|
113
114
|
CliError,
|
|
114
115
|
errorCodes
|
|
115
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-K3K3WKDB.js";
|
|
116
117
|
import {
|
|
117
118
|
__name
|
|
118
119
|
} from "./chunk-ZVVMGPBJ.js";
|
|
119
120
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
121
122
|
import { Readable } from "node:stream";
|
|
122
123
|
|
|
123
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
124
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
124
125
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
125
126
|
var lintRuleSchema = strictObject({
|
|
126
127
|
id: word,
|
|
@@ -266,7 +267,7 @@ var overrideSchema = strictObject({
|
|
|
266
267
|
});
|
|
267
268
|
var overridesSchema = array(overrideSchema);
|
|
268
269
|
|
|
269
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
270
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
270
271
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
271
272
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
272
273
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -395,11 +396,12 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
395
396
|
covers: ["commands", "upgrade", "notes", "meetings"],
|
|
396
397
|
differences: FAMILY_SINCE_0_98
|
|
397
398
|
},
|
|
398
|
-
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's meetings take call
|
|
399
|
-
// zoom-cli's:
|
|
399
|
+
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's and asterisk-cli's meetings take call
|
|
400
|
+
// recordings, not zoom-cli's: they are compared on the root commands every CLI shares, the way gcal and mail are.
|
|
401
|
+
// notion-cli joins here until its documents commands ship; then it moves next to drive.
|
|
400
402
|
{
|
|
401
403
|
name: "shared-roots",
|
|
402
|
-
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
|
|
404
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline", "pbx", "notion"],
|
|
403
405
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
404
406
|
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
405
407
|
}
|
|
@@ -415,7 +417,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
415
417
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
416
418
|
]);
|
|
417
419
|
|
|
418
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
420
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
419
421
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
420
422
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
421
423
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -431,7 +433,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
431
433
|
}
|
|
432
434
|
]);
|
|
433
435
|
|
|
434
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
436
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
435
437
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
436
438
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
437
439
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -453,7 +455,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
453
455
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
454
456
|
]);
|
|
455
457
|
|
|
456
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
458
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-account.js
|
|
457
459
|
var ACCOUNT_FLAGS = [
|
|
458
460
|
{
|
|
459
461
|
name: "--client-id",
|
|
@@ -490,7 +492,7 @@ var ACCOUNT_FLAGS = [
|
|
|
490
492
|
{ name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
|
|
491
493
|
];
|
|
492
494
|
|
|
493
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
495
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
494
496
|
var CALENDAR_FLAGS = [
|
|
495
497
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
496
498
|
{
|
|
@@ -515,6 +517,13 @@ var CALENDAR_FLAGS = [
|
|
|
515
517
|
type: "string",
|
|
516
518
|
meaning: "a person invited to the event, by email address; repeat it for more"
|
|
517
519
|
},
|
|
520
|
+
{
|
|
521
|
+
name: "--setting",
|
|
522
|
+
value: "<name=value>",
|
|
523
|
+
role: "value",
|
|
524
|
+
type: "string",
|
|
525
|
+
meaning: "one of the service's own settings, such as a meeting's waiting room; repeat it for more"
|
|
526
|
+
},
|
|
518
527
|
{
|
|
519
528
|
name: "--id",
|
|
520
529
|
value: "<id>",
|
|
@@ -564,7 +573,7 @@ var CALENDAR_FLAGS = [
|
|
|
564
573
|
}
|
|
565
574
|
];
|
|
566
575
|
|
|
567
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
576
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
|
|
568
577
|
var CRM_FLAGS = [
|
|
569
578
|
{
|
|
570
579
|
name: "--pipeline",
|
|
@@ -714,7 +723,7 @@ var CRM_FLAGS = [
|
|
|
714
723
|
}
|
|
715
724
|
];
|
|
716
725
|
|
|
717
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
726
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
718
727
|
var HOW_FLAGS = [
|
|
719
728
|
{
|
|
720
729
|
name: "--limit",
|
|
@@ -1711,7 +1720,7 @@ var HOW_FLAGS = [
|
|
|
1711
1720
|
}
|
|
1712
1721
|
];
|
|
1713
1722
|
|
|
1714
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1723
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
|
|
1715
1724
|
var KNOWLEDGE_FLAGS = [
|
|
1716
1725
|
{
|
|
1717
1726
|
name: "--accept-terms",
|
|
@@ -1749,7 +1758,7 @@ var KNOWLEDGE_FLAGS = [
|
|
|
1749
1758
|
}
|
|
1750
1759
|
];
|
|
1751
1760
|
|
|
1752
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1761
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1753
1762
|
var MAIL_FLAGS = [
|
|
1754
1763
|
{
|
|
1755
1764
|
name: "--cc",
|
|
@@ -1779,7 +1788,7 @@ var MAIL_FLAGS = [
|
|
|
1779
1788
|
}
|
|
1780
1789
|
];
|
|
1781
1790
|
|
|
1782
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1791
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
|
|
1783
1792
|
var PRIVACY_FLAGS = [
|
|
1784
1793
|
{
|
|
1785
1794
|
name: "--about-text",
|
|
@@ -1840,7 +1849,7 @@ var PRIVACY_FLAGS = [
|
|
|
1840
1849
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1841
1850
|
];
|
|
1842
1851
|
|
|
1843
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1852
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
|
|
1844
1853
|
var SCHEDULE_FLAGS = [
|
|
1845
1854
|
{
|
|
1846
1855
|
name: "--locale",
|
|
@@ -1873,7 +1882,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1873
1882
|
}
|
|
1874
1883
|
];
|
|
1875
1884
|
|
|
1876
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1885
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1877
1886
|
var WHAT_FLAGS = [
|
|
1878
1887
|
{
|
|
1879
1888
|
name: "--analysis-provider",
|
|
@@ -2870,7 +2879,7 @@ var WHAT_FLAGS = [
|
|
|
2870
2879
|
}
|
|
2871
2880
|
];
|
|
2872
2881
|
|
|
2873
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2882
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2874
2883
|
var FLAG_TYPES = [
|
|
2875
2884
|
"switch",
|
|
2876
2885
|
"count",
|
|
@@ -3289,7 +3298,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3289
3298
|
]
|
|
3290
3299
|
});
|
|
3291
3300
|
|
|
3292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3293
3302
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3294
3303
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3295
3304
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3516,7 +3525,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3516
3525
|
}
|
|
3517
3526
|
}, "runCommandForAgent");
|
|
3518
3527
|
|
|
3519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3520
3529
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3521
3530
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3522
3531
|
var message = pipe(
|
|
@@ -3570,8 +3579,8 @@ var toolKey = /* @__PURE__ */ __name((name, definition) => definition.key !== vo
|
|
|
3570
3579
|
var inputOf = /* @__PURE__ */ __name((definition, syncAllowed) => strictObject(syncAllowed || !("sync_first" in definition.input.entries) ? definition.input.entries : Object.fromEntries(Object.entries(definition.input.entries).filter(([name]) => !["sync_first", "sync_time", "max_chats", "max_messages"].includes(name)))), "inputOf");
|
|
3571
3580
|
var syncAllowedFor = /* @__PURE__ */ __name((key2, defaults) => {
|
|
3572
3581
|
const permissions = defaults.settings.permissions ?? {};
|
|
3573
|
-
const shared = defaults.syncAllowed ?? levelFor(permissions, "messages.sync-first").level
|
|
3574
|
-
return shared && (!key2.startsWith("stats_") || levelFor(permissions, `${key2.replaceAll("_", ".")}.sync-first`).level
|
|
3582
|
+
const shared = defaults.syncAllowed ?? fetchesAt(levelFor(permissions, "messages.sync-first").level);
|
|
3583
|
+
return shared && (!key2.startsWith("stats_") || fetchesAt(levelFor(permissions, `${key2.replaceAll("_", ".")}.sync-first`).level));
|
|
3575
3584
|
}, "syncAllowedFor");
|
|
3576
3585
|
var entryRunner = /* @__PURE__ */ __name((registration) => {
|
|
3577
3586
|
const run = callRunner(registration);
|
|
@@ -3734,7 +3743,7 @@ var BinaryResource = class {
|
|
|
3734
3743
|
};
|
|
3735
3744
|
var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES, targets) => {
|
|
3736
3745
|
const bounded = /* @__PURE__ */ __name((result) => {
|
|
3737
|
-
if (maxBytes !== 0 && Buffer.byteLength(JSON.stringify(result)) > maxBytes)
|
|
3746
|
+
if (maxBytes !== 0 && Buffer.byteLength(JSON.stringify(result.content)) > maxBytes)
|
|
3738
3747
|
throw new CliError("invalid_response", "tool output exceeds its byte limit \u2014 reduce limit or use a narrower request", { reason: "output.too-large", max_bytes: maxBytes, retryable: false });
|
|
3739
3748
|
return result;
|
|
3740
3749
|
}, "bounded");
|
|
@@ -3775,7 +3784,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3775
3784
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3776
3785
|
}, "failed");
|
|
3777
3786
|
|
|
3778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3779
3788
|
import { randomUUID } from "node:crypto";
|
|
3780
3789
|
var MATCHES = 8;
|
|
3781
3790
|
var ANSWER = answerSchema();
|