@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
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
normalize
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TK77DCE5.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-K3K3WKDB.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/search/languages.js
|
|
14
14
|
var LANGUAGES = [
|
|
15
15
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
16
16
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -18,7 +18,7 @@ var LANGUAGES = [
|
|
|
18
18
|
];
|
|
19
19
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// 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/search/snowball/base-stemmer.js
|
|
22
22
|
var BaseStemmer = class {
|
|
23
23
|
static {
|
|
24
24
|
__name(this, "BaseStemmer");
|
|
@@ -393,7 +393,7 @@ var BaseStemmer = class {
|
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
396
|
+
// 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/search/snowball/english-stemmer.js
|
|
397
397
|
var a_0 = [
|
|
398
398
|
["arsen", -1],
|
|
399
399
|
["commun", -1],
|
|
@@ -1094,7 +1094,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1094
1094
|
stemWord = this.stem;
|
|
1095
1095
|
};
|
|
1096
1096
|
|
|
1097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1097
|
+
// 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/search/snowball/russian-stemmer.js
|
|
1098
1098
|
var a_02 = [
|
|
1099
1099
|
["\u0432", 1],
|
|
1100
1100
|
["\u0438\u0432", 2, 1],
|
|
@@ -1517,7 +1517,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1517
1517
|
stemWord = this.stem;
|
|
1518
1518
|
};
|
|
1519
1519
|
|
|
1520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1520
|
+
// 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/search/snowball/spanish-stemmer.js
|
|
1521
1521
|
var a_03 = [
|
|
1522
1522
|
["", 6],
|
|
1523
1523
|
["\xE1", 1, 1],
|
|
@@ -2193,7 +2193,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2193
2193
|
stemWord = this.stem;
|
|
2194
2194
|
};
|
|
2195
2195
|
|
|
2196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2196
|
+
// 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/search/stem.js
|
|
2197
2197
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2198
2198
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2199
2199
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|
|
@@ -3,17 +3,17 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
checkCancelled,
|
|
5
5
|
object
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FGRFIXG2.js";
|
|
7
7
|
import {
|
|
8
8
|
acquireLock
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GPIQY4YB.js";
|
|
10
10
|
import {
|
|
11
11
|
Credentials
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CS62FET6.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
isCliError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-K3K3WKDB.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -23,7 +23,7 @@ import { createHash } from "node:crypto";
|
|
|
23
23
|
import { join } from "node:path";
|
|
24
24
|
import { setTimeout as delay } from "node:timers/promises";
|
|
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/oauth/storage.js
|
|
27
27
|
var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
|
|
28
28
|
var parse = /* @__PURE__ */ __name((raw) => {
|
|
29
29
|
let value;
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FMJ4QSSU.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3D5PETD2.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/errors/reasons.js
|
|
14
14
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
15
|
var QUERY = [
|
|
16
16
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -63,6 +63,8 @@ var PROVIDER_API = [
|
|
|
63
63
|
validation("api.unknown-method", "the provider has no method by this name"),
|
|
64
64
|
["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
|
|
65
65
|
["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
|
|
66
|
+
["access.denied", "permission_error", "the provider refused this account access to the item"],
|
|
67
|
+
["item.not-found", "not_found", "the provider has no item by this id, or this account cannot see it"],
|
|
66
68
|
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
67
69
|
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
68
70
|
["file.denied", "permission_error", "the file cannot be opened: permission denied"]
|
|
@@ -245,6 +247,16 @@ var OTHERS = [
|
|
|
245
247
|
["calendar.no-upcoming", "not_found", "no upcoming meeting with other attendees is stored for this account"],
|
|
246
248
|
["chat.not-read", "not_found", "a chat shared with this person is not held whole in the store"],
|
|
247
249
|
["meetings.index-pending", "not_found", "some stored meetings are not indexed by person yet"],
|
|
250
|
+
["meetings.server-offline", "permission_error", "meetings list and show ask the service; --offline was given"],
|
|
251
|
+
["meetings.server-unreachable", "network_error", "the meetings service could not be reached"],
|
|
252
|
+
["meetings.server-signed-out", "authentication_error", "the meetings service needs a sign-in"],
|
|
253
|
+
["meetings.server-refused", "permission_error", "the meetings service refused the request"],
|
|
254
|
+
["meetings.server-failed", "provider_error", "the meetings service could not be read, or what it returned kept"],
|
|
255
|
+
[
|
|
256
|
+
"meetings.server-capped",
|
|
257
|
+
"outcome_unknown",
|
|
258
|
+
"the meetings service may hold more matches than the calls and pages one list asks"
|
|
259
|
+
],
|
|
248
260
|
["profile.locked", "permission_error", "a profile lock pins this process to its own account"],
|
|
249
261
|
["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
|
|
250
262
|
["busy.unanswered", "provider_error", "the provider gave no busy times for a calendar or person that was asked"],
|
|
@@ -306,7 +318,6 @@ var OTHERS = [
|
|
|
306
318
|
],
|
|
307
319
|
["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
|
|
308
320
|
validation("store.vector-invalid", "a vector to store had a non-finite value"),
|
|
309
|
-
validation("catalog.scope-limit", "the selected catalog exceeds its entry limit"),
|
|
310
321
|
validation("evidence.quote-length", "a quote from the evidence is empty or over 500 characters"),
|
|
311
322
|
validation("evidence.quote-not-found", "the cited source does not say the quoted words"),
|
|
312
323
|
validation("evidence.row-too-large", "one evidence row is over its size limit"),
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GYTAHH5Y.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K3K3WKDB.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var EMPTY_TRIES = 3;
|
|
@@ -2,15 +2,15 @@ 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-XHVFX74L.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-K3K3WKDB.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/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// 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/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -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/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
singleLine,
|
|
9
9
|
visibleControls
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EPPE6ZTS.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
16
16
|
import { styleText } from "node:util";
|
|
17
17
|
var TIME_WIDTH = 8;
|
|
18
18
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CS62FET6.js";
|
|
9
9
|
import {
|
|
10
10
|
COMPACT_FLAG
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3D5PETD2.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K3K3WKDB.js";
|
|
15
15
|
import {
|
|
16
16
|
singleLine
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EPPE6ZTS.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// 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/sends/permissions.js
|
|
23
23
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
24
24
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
25
25
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -58,7 +58,11 @@ var DEFAULT_PERMISSIONS = {
|
|
|
58
58
|
"images.models.download": "ask",
|
|
59
59
|
"schedule.run": "ask",
|
|
60
60
|
"schedule.exec": "ask",
|
|
61
|
-
"doctor.reports.create": "ask"
|
|
61
|
+
"doctor.reports.create": "ask",
|
|
62
|
+
// A meeting changed on the service reaches its invitees: asked first, as zoom's `remote-meetings` was.
|
|
63
|
+
"meetings.create": "ask",
|
|
64
|
+
"meetings.update": "ask",
|
|
65
|
+
"meetings.cancel": "ask"
|
|
62
66
|
};
|
|
63
67
|
var KEYED_UNDER_HOUSEKEEPING = new Set(Object.keys(DEFAULT_PERMISSIONS).filter((key) => /^(store|server|models|images|schedule|doctor)\./.test(key)));
|
|
64
68
|
var AUTHORITY_KEY = "mcp.authority";
|
|
@@ -115,6 +119,23 @@ var layerPermissions = /* @__PURE__ */ __name((layers) => {
|
|
|
115
119
|
return { levels, sources };
|
|
116
120
|
}, "layerPermissions");
|
|
117
121
|
var CEILING_KEY = "*";
|
|
122
|
+
var STORE_ONLY_KEYS = /* @__PURE__ */ new Set([
|
|
123
|
+
"attachments.extract",
|
|
124
|
+
"conversations.embeddings",
|
|
125
|
+
"conversations.links",
|
|
126
|
+
"messages.server-search",
|
|
127
|
+
"messages.sync-first",
|
|
128
|
+
"metadata.sync",
|
|
129
|
+
"stats.contacts.top.sync-first",
|
|
130
|
+
"stats.messages.counters.sync",
|
|
131
|
+
"stats.messages.show.sync-first",
|
|
132
|
+
"stats.messages.top.sync-first",
|
|
133
|
+
"store.gaps.repair"
|
|
134
|
+
]);
|
|
135
|
+
var FETCH_KEYS = new Set([...STORE_ONLY_KEYS].filter((key) => !["attachments.extract", "conversations.embeddings", "conversations.links"].includes(key)));
|
|
136
|
+
var fetchesUnder = /* @__PURE__ */ __name((level, key) => level === "readonly" && FETCH_KEYS.has(key), "fetchesUnder");
|
|
137
|
+
var fetchesAt = /* @__PURE__ */ __name((level) => level === "allow" || level === "readonly", "fetchesAt");
|
|
138
|
+
var stops = /* @__PURE__ */ __name((level, key) => level === "deny" || level === "readonly" && !FETCH_KEYS.has(key), "stops");
|
|
118
139
|
var ALLOWED = { level: "allow", key: null };
|
|
119
140
|
var ORDER = { deny: 0, readonly: 1, ask: 2, allow: 3 };
|
|
120
141
|
var nearest = /* @__PURE__ */ __name((levels, key) => {
|
|
@@ -424,7 +445,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
424
445
|
}
|
|
425
446
|
}, "assertRetentionEvidenceRead");
|
|
426
447
|
|
|
427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
448
|
+
// 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/result-fields.js
|
|
428
449
|
var named = /* @__PURE__ */ __name((work) => {
|
|
429
450
|
try {
|
|
430
451
|
return work();
|
|
@@ -451,7 +472,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
451
472
|
return projectFields(value, fields);
|
|
452
473
|
}), "projectFields");
|
|
453
474
|
|
|
454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
475
|
+
// 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/output-detail.js
|
|
455
476
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
456
477
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
457
478
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -487,7 +508,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
487
508
|
return value;
|
|
488
509
|
}, "atDetail");
|
|
489
510
|
|
|
490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
511
|
+
// 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/output.js
|
|
491
512
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
492
513
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
493
514
|
if (other)
|
|
@@ -564,6 +585,10 @@ export {
|
|
|
564
585
|
RESOURCES,
|
|
565
586
|
layerPermissions,
|
|
566
587
|
CEILING_KEY,
|
|
588
|
+
STORE_ONLY_KEYS,
|
|
589
|
+
fetchesUnder,
|
|
590
|
+
fetchesAt,
|
|
591
|
+
stops,
|
|
567
592
|
levelFor,
|
|
568
593
|
keyForWrite,
|
|
569
594
|
writeOfKey,
|
|
@@ -12,10 +12,7 @@ import {
|
|
|
12
12
|
refuseWriteBeforeConnecting,
|
|
13
13
|
registerPrompts,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
answeredWire
|
|
18
|
-
} from "./chunk-IJONJTST.js";
|
|
15
|
+
} from "./chunk-R47GYLNN.js";
|
|
19
16
|
import {
|
|
20
17
|
BinaryResource,
|
|
21
18
|
Picture,
|
|
@@ -36,34 +33,35 @@ import {
|
|
|
36
33
|
tool,
|
|
37
34
|
toolKey,
|
|
38
35
|
toolsFromCommands
|
|
39
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LOEK6IFQ.js";
|
|
40
37
|
import {
|
|
41
38
|
agentJson,
|
|
42
39
|
skillResource
|
|
43
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-RJK5ADMH.js";
|
|
44
41
|
import {
|
|
45
42
|
StdioServerTransport,
|
|
43
|
+
answeredWire,
|
|
46
44
|
callerOf,
|
|
47
45
|
callingAgent,
|
|
48
46
|
serveStdio
|
|
49
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-VRA4RVQU.js";
|
|
50
48
|
import {
|
|
51
49
|
McpServer,
|
|
52
50
|
ResourceTemplate
|
|
53
51
|
} from "./chunk-5D4AEUVA.js";
|
|
54
52
|
import {
|
|
55
53
|
connectedFor
|
|
56
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-X73YEFQE.js";
|
|
57
55
|
import {
|
|
58
56
|
lackedNeed,
|
|
59
57
|
wholeList
|
|
60
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-EZXW3ZCR.js";
|
|
61
59
|
import {
|
|
62
60
|
mcpHttpMarker
|
|
63
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-IXPBSDKB.js";
|
|
64
62
|
import {
|
|
65
63
|
instructions
|
|
66
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-6VCQ4CTK.js";
|
|
67
65
|
import {
|
|
68
66
|
capability,
|
|
69
67
|
dateWindow,
|
|
@@ -71,16 +69,16 @@ import {
|
|
|
71
69
|
imageSize,
|
|
72
70
|
servicesFor,
|
|
73
71
|
storedDeps
|
|
74
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-25GMFXPF.js";
|
|
75
73
|
import {
|
|
76
74
|
warmEmbedders
|
|
77
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-GB5LI5RM.js";
|
|
78
76
|
import {
|
|
79
77
|
stdinFieldOf
|
|
80
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-UAV74EY4.js";
|
|
81
79
|
import {
|
|
82
80
|
findCommand
|
|
83
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-D2TGXSHQ.js";
|
|
84
82
|
import {
|
|
85
83
|
DEFAULT_OUTPUT_BYTES,
|
|
86
84
|
changesAuthorityAt,
|
|
@@ -94,32 +92,34 @@ import {
|
|
|
94
92
|
rootOf2 as rootOf,
|
|
95
93
|
sealed,
|
|
96
94
|
snakeKeys
|
|
97
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-55SWKR6Y.js";
|
|
98
96
|
import {
|
|
99
97
|
readOnlyLockOf
|
|
100
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-QY6GE7CL.js";
|
|
101
99
|
import {
|
|
102
100
|
withCaller
|
|
103
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-CXHUOPN5.js";
|
|
104
102
|
import {
|
|
103
|
+
fetchesAt,
|
|
105
104
|
levelFor,
|
|
106
105
|
readKeysForCommand
|
|
107
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-OWZETMRE.js";
|
|
108
107
|
import {
|
|
109
108
|
openStore,
|
|
110
109
|
pdfPreviewLimits
|
|
111
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-IUSY4ZJK.js";
|
|
112
111
|
import {
|
|
113
112
|
typedCommand
|
|
114
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-FBVJGJDM.js";
|
|
115
114
|
import {
|
|
116
115
|
isCliFailure
|
|
117
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-VG63EXRC.js";
|
|
118
117
|
import {
|
|
119
118
|
timezoneOf
|
|
120
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-FMJ4QSSU.js";
|
|
121
120
|
import {
|
|
122
121
|
description,
|
|
122
|
+
errorObjectOf,
|
|
123
123
|
integer,
|
|
124
124
|
maxValue,
|
|
125
125
|
mcpErrorResult,
|
|
@@ -133,21 +133,21 @@ import {
|
|
|
133
133
|
regex,
|
|
134
134
|
strictObject,
|
|
135
135
|
string
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-3D5PETD2.js";
|
|
137
137
|
import {
|
|
138
138
|
CliError
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-K3K3WKDB.js";
|
|
140
140
|
import {
|
|
141
141
|
visibleControls
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-EPPE6ZTS.js";
|
|
143
143
|
import {
|
|
144
144
|
__name
|
|
145
145
|
} from "./chunk-ZVVMGPBJ.js";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// 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/server.js
|
|
148
148
|
import { randomUUID } from "node:crypto";
|
|
149
149
|
|
|
150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// 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-log.js
|
|
151
151
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
152
152
|
let held;
|
|
153
153
|
return {
|
|
@@ -166,7 +166,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
166
166
|
};
|
|
167
167
|
}, "agentLog");
|
|
168
168
|
|
|
169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
169
|
+
// 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/resources.js
|
|
170
170
|
var LISTED = 100;
|
|
171
171
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
172
172
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -204,7 +204,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
204
204
|
});
|
|
205
205
|
}, "registerResources");
|
|
206
206
|
|
|
207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
207
|
+
// 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/session.js
|
|
208
208
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
209
209
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
210
210
|
var MessengerSession = class {
|
|
@@ -279,7 +279,7 @@ var MessengerSession = class {
|
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
282
|
+
// 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/tools/attachments.js
|
|
283
283
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
284
284
|
const _command = messenger.app.command;
|
|
285
285
|
return {
|
|
@@ -333,7 +333,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
333
333
|
};
|
|
334
334
|
}, "attachmentsTools");
|
|
335
335
|
|
|
336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
336
|
+
// 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/tools/messages-photo.js
|
|
337
337
|
var PHOTO_LIMIT = 512 * 1024;
|
|
338
338
|
var IMAGE_TYPES = [
|
|
339
339
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -349,14 +349,16 @@ var messagesPhotoTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
349
349
|
input: object({
|
|
350
350
|
chat: chatOf(messenger),
|
|
351
351
|
message,
|
|
352
|
-
|
|
352
|
+
attachment: optional(pipe(number(), integer(), minValue(1), description("which file of the message, from 1; omit for the first photo")))
|
|
353
353
|
}),
|
|
354
354
|
annotations: READ,
|
|
355
355
|
online: /* @__PURE__ */ __name(async (adapter, args, defaults) => {
|
|
356
356
|
const { id: chatId } = await adapter.resolve(args.chat);
|
|
357
357
|
const saveIt = `the owner can save it with \`${typedCommand(messenger.app.command, `messages download ${chatId} ${args.message}`)}\``;
|
|
358
358
|
const { files } = await capability(adapter, "download", "download attachments")(chatId, args.message);
|
|
359
|
-
|
|
359
|
+
if (args.attachment !== void 0 && args.attachment > files.length)
|
|
360
|
+
throw new CliError("not_found", `message ${args.message} has ${files.length} file${files.length === 1 ? "" : "s"}, no file ${args.attachment}`);
|
|
361
|
+
const photo = args.attachment === void 0 ? files.find((file) => file.kind === "photo") : files[args.attachment - 1];
|
|
360
362
|
if (!photo) {
|
|
361
363
|
const kinds = files.map((file) => file.kind).join(", ");
|
|
362
364
|
throw new CliError(files.length === 0 ? "not_found" : "validation_error", files.length === 0 ? `message ${args.message} has no photo` : `the message has a ${kinds}, not a photo \u2014 ${saveIt}`);
|
|
@@ -387,7 +389,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
387
389
|
return new Uint8Array(Buffer.concat(chunks));
|
|
388
390
|
}, "readUpTo");
|
|
389
391
|
|
|
390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
392
|
+
// 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/tools/stats.js
|
|
391
393
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
392
394
|
stats_charts: tool({
|
|
393
395
|
title: "A chart from a chat's statistics",
|
|
@@ -424,14 +426,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
424
426
|
})
|
|
425
427
|
}), "statsTools");
|
|
426
428
|
|
|
427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
429
|
+
// 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/tools.js
|
|
428
430
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
429
431
|
...messagesPhotoTools(messenger),
|
|
430
432
|
...attachmentsTools(messenger),
|
|
431
433
|
...statsTools(messenger)
|
|
432
434
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
433
435
|
|
|
434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
436
|
+
// 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/server.js
|
|
435
437
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
436
438
|
"streams",
|
|
437
439
|
"stdin",
|
|
@@ -490,7 +492,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
490
492
|
return void 0;
|
|
491
493
|
}
|
|
492
494
|
}, "stdin");
|
|
493
|
-
const syncAllowed = /* @__PURE__ */ __name((path) => syncsFirst(messenger) && levelOf("messages.sync-first")
|
|
495
|
+
const syncAllowed = /* @__PURE__ */ __name((path) => syncsFirst(messenger) && fetchesAt(levelOf("messages.sync-first")) && (path[0] !== "stats" || fetchesAt(levelOf(`${path.join(".")}.sync-first`))), "syncAllowed");
|
|
494
496
|
const generated = toolsFromCommands(program.commands, {
|
|
495
497
|
includeUnavailable: true,
|
|
496
498
|
exclude: [["bot"]],
|
|
@@ -596,8 +598,8 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
596
598
|
});
|
|
597
599
|
}), "invoke");
|
|
598
600
|
let queue = Promise.resolve();
|
|
599
|
-
const queued = /* @__PURE__ */ __name((one, input, env, caller) => {
|
|
600
|
-
const next = queue.then(() => invoke(one, input, env, caller));
|
|
601
|
+
const queued = /* @__PURE__ */ __name((one, input, env, caller, signal) => {
|
|
602
|
+
const next = queue.then(() => signal?.aborted ? { error: errorObjectOf(new CliError("cancelled", `${one.command} was cancelled before it started`)) } : invoke(one, input, env, caller));
|
|
601
603
|
queue = next.catch(() => void 0);
|
|
602
604
|
return next;
|
|
603
605
|
}, "queued");
|
|
@@ -613,7 +615,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
613
615
|
const traceparent = ctx?.mcpReq?._meta?.traceparent;
|
|
614
616
|
const env = typeof traceparent === "string" ? { ...context.env, TRACEPARENT: traceparent } : context.env;
|
|
615
617
|
const caller = callerOf(ctx, keyOfCommand(one.command), source);
|
|
616
|
-
const answer = await withCaller(caller, () => queued(one, args, env, caller));
|
|
618
|
+
const answer = await withCaller(caller, () => queued(one, args, env, caller, ctx?.mcpReq?.signal));
|
|
617
619
|
const result = "error" in answer ? mcpErrorResult(JSON.parse(agentJson(answer.error))) : (() => {
|
|
618
620
|
try {
|
|
619
621
|
return answered(envelope(one.command, answer.result), DEFAULT_OUTPUT_BYTES, targets);
|
|
@@ -669,7 +671,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
669
671
|
spawnJob: sessionOptions.spawnJob,
|
|
670
672
|
limit: settings.limit,
|
|
671
673
|
get syncAllowed() {
|
|
672
|
-
return syncsFirst(messenger) && levelOf("messages.sync-first")
|
|
674
|
+
return syncsFirst(messenger) && fetchesAt(levelOf("messages.sync-first"));
|
|
673
675
|
},
|
|
674
676
|
guard,
|
|
675
677
|
settings,
|
|
@@ -736,18 +738,8 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
736
738
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
737
739
|
onerror: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onerror")
|
|
738
740
|
});
|
|
739
|
-
|
|
740
|
-
wire.ended.then(() => resolve("input"));
|
|
741
|
-
if (own)
|
|
742
|
-
signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
743
|
-
else {
|
|
744
|
-
process.once("SIGINT", () => resolve("stopped"));
|
|
745
|
-
process.once("SIGTERM", () => resolve("stopped"));
|
|
746
|
-
}
|
|
747
|
-
});
|
|
741
|
+
await wire.finished(own ? signal : void 0);
|
|
748
742
|
try {
|
|
749
|
-
if (ended === "input")
|
|
750
|
-
await wire.answered();
|
|
751
743
|
wire.release();
|
|
752
744
|
await handle.close();
|
|
753
745
|
await session.close();
|
|
@@ -758,7 +750,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
758
750
|
}, "serveOverStdio");
|
|
759
751
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
760
752
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
761
|
-
const { serveOverHttp } = await import("./serve-
|
|
753
|
+
const { serveOverHttp } = await import("./serve-FJPPTJXH.js");
|
|
762
754
|
const appName = messenger.app.command;
|
|
763
755
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
764
756
|
const listening = await serveOverHttp(build, {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IXPBSDKB.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
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/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|