@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
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CIUJEQH4.js";
|
|
10
10
|
import {
|
|
11
11
|
callerOf
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
failureContext
|
|
15
|
-
} from "./chunk-OWEBWDHV.js";
|
|
12
|
+
} from "./chunk-CQBLPBZU.js";
|
|
16
13
|
import {
|
|
17
14
|
QUERY_ARGUMENT,
|
|
18
15
|
lentConnection,
|
|
19
16
|
refuseLacking
|
|
20
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2BAZRRJP.js";
|
|
18
|
+
import {
|
|
19
|
+
failureContext
|
|
20
|
+
} from "./chunk-2NQPB6MT.js";
|
|
21
21
|
import {
|
|
22
22
|
onlineDeps,
|
|
23
23
|
servicesFor,
|
|
24
24
|
storeModeDeps
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OU5OXA6Q.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_OUTPUT_BYTES,
|
|
28
28
|
ENTITIES,
|
|
@@ -37,39 +37,39 @@ import {
|
|
|
37
37
|
refuseStoreChange,
|
|
38
38
|
sealed,
|
|
39
39
|
startRecording
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FJMRDRPN.js";
|
|
41
41
|
import {
|
|
42
42
|
currentCaller,
|
|
43
43
|
keepsSuccess,
|
|
44
44
|
runContextOf,
|
|
45
45
|
withCaller
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ILDGZBZD.js";
|
|
47
47
|
import {
|
|
48
48
|
authorityAllowed,
|
|
49
49
|
botApiAllowed,
|
|
50
50
|
keyForCommand,
|
|
51
51
|
levelFor,
|
|
52
52
|
readKeysForCommand
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-OMLVWOEF.js";
|
|
54
|
+
import {
|
|
55
|
+
MAX_BUFFERED_INPUT
|
|
56
|
+
} from "./chunk-PGPHEC2X.js";
|
|
54
57
|
import {
|
|
55
58
|
enclosingTraceId,
|
|
56
59
|
inRun,
|
|
57
60
|
newRunId,
|
|
58
61
|
traceOf
|
|
59
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-LSVQCI6V.js";
|
|
60
63
|
import {
|
|
61
64
|
storeDamaged
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import {
|
|
64
|
-
MAX_BUFFERED_INPUT
|
|
65
|
-
} from "./chunk-BBTQIVFP.js";
|
|
65
|
+
} from "./chunk-UYBLNGZ2.js";
|
|
66
66
|
import {
|
|
67
67
|
queryDescription
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-3HTJBGNP.js";
|
|
69
69
|
import {
|
|
70
70
|
captureStreams,
|
|
71
71
|
traceIdOf
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-HNWDEDMU.js";
|
|
73
73
|
import {
|
|
74
74
|
COMPACT_FLAG,
|
|
75
75
|
SNAKE_CASE,
|
|
@@ -108,25 +108,25 @@ import {
|
|
|
108
108
|
unknown,
|
|
109
109
|
word,
|
|
110
110
|
writes
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-4RJL32PF.js";
|
|
112
112
|
import {
|
|
113
113
|
CliError,
|
|
114
114
|
errorCodes
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-EA2OB75T.js";
|
|
116
116
|
import {
|
|
117
117
|
__name
|
|
118
118
|
} from "./chunk-ZVVMGPBJ.js";
|
|
119
119
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
120
|
+
// 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/mcp/agent.js
|
|
121
121
|
import { Readable } from "node:stream";
|
|
122
122
|
|
|
123
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
123
|
+
// 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/standards/lint.js
|
|
124
124
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
125
125
|
var lintRuleSchema = strictObject({
|
|
126
126
|
id: word,
|
|
127
127
|
severity: picklist(LINT_SEVERITIES),
|
|
128
128
|
/** What the rule looks at; a violation's target names one of these. */
|
|
129
|
-
scope: picklist(["command", "group", "argument", "option", "flag", "key"]),
|
|
129
|
+
scope: picklist(["command", "group", "argument", "option", "flag", "key", "source", "type"]),
|
|
130
130
|
summary: text
|
|
131
131
|
});
|
|
132
132
|
var defineLintRules = /* @__PURE__ */ __name((input) => parseRegistry("lint rules", array(lintRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineLintRules");
|
|
@@ -164,7 +164,7 @@ var LINT_RULES = defineLintRules([
|
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
id: "command-example-count",
|
|
167
|
-
severity: "
|
|
167
|
+
severity: "low",
|
|
168
168
|
scope: "command",
|
|
169
169
|
summary: "a leaf command has one to three examples; generated commands are exempt"
|
|
170
170
|
},
|
|
@@ -235,6 +235,24 @@ var LINT_RULES = defineLintRules([
|
|
|
235
235
|
severity: "high",
|
|
236
236
|
scope: "group",
|
|
237
237
|
summary: "the CLI keeps a failed run and reads it back: `runs list`, `runs show`, global `--record` and `--no-record`"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
id: "raw-network",
|
|
241
|
+
severity: "high",
|
|
242
|
+
scope: "source",
|
|
243
|
+
summary: "the CLI's own source reaches the network only through `hostFetch`: no `node:http`, `https`, `net`, `tls`, `undici`, `axios`, `got`, `node-fetch` or `ws`, no global `fetch`"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
id: "undeclared-host",
|
|
247
|
+
severity: "medium",
|
|
248
|
+
scope: "source",
|
|
249
|
+
summary: "every `http(s)://` host in the CLI's own source is in the manifest's `network.hosts`"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
id: "result-shape",
|
|
253
|
+
severity: "medium",
|
|
254
|
+
scope: "type",
|
|
255
|
+
summary: "a list or search in the published TypeScript API returns `{ items, hasMore, nextOffset?, total? }`: no bare array, no `hits` or `has_more`"
|
|
238
256
|
}
|
|
239
257
|
]);
|
|
240
258
|
var baselineSchema = array(text);
|
|
@@ -248,7 +266,7 @@ var overrideSchema = strictObject({
|
|
|
248
266
|
});
|
|
249
267
|
var overridesSchema = array(overrideSchema);
|
|
250
268
|
|
|
251
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
269
|
+
// 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/standards/audit.js
|
|
252
270
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
253
271
|
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");
|
|
254
272
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -293,19 +311,27 @@ var parityGroupSchema = strictObject({
|
|
|
293
311
|
/** Permanent differences, each with its reason; they count against the override budget of the group. */
|
|
294
312
|
differences: array(strictObject({
|
|
295
313
|
rule: word,
|
|
296
|
-
/**
|
|
314
|
+
/**
|
|
315
|
+
* `<clis> <path> <flag>`; with `absent` or `only`, only `<path> <flag>`: the CLI list is whoever else was compared.
|
|
316
|
+
* same-entity-schema and same-error-reason name no CLI list either: `entity hit`, `reason profile.unknown: code`.
|
|
317
|
+
*/
|
|
297
318
|
target: text,
|
|
298
319
|
expected: optional(text),
|
|
299
320
|
/** The CLI that lacks the path or flag by design; the rest must agree, so other CLIs joining do not stale it. */
|
|
300
321
|
absent: optional(word),
|
|
301
|
-
|
|
322
|
+
/** The one CLI that has the path or flag by design; every other CLI compared must lack it. */
|
|
323
|
+
only: optional(word),
|
|
324
|
+
reason: pipe(text, minLength(10, "say why, in a sentence")),
|
|
325
|
+
/** Warns from 14 days before and fails 14 days after, as a lint override does. */
|
|
326
|
+
review_after: optional(pipe(string(), isoDate("a date, YYYY-MM-DD")))
|
|
302
327
|
}))
|
|
303
328
|
});
|
|
304
329
|
var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity groups", array(parityGroupSchema), input, (groups) => [
|
|
305
330
|
...duplicates(groups.map((group) => group.name)).map((name) => `"${name}" is listed twice`),
|
|
306
331
|
...groups.flatMap((group) => [
|
|
307
332
|
...duplicates(group.differences.map((entry) => `${entry.rule} ${entry.target}`)).map((both) => `${group.name}: "${both}" is listed twice`),
|
|
308
|
-
...group.differences.filter((entry) => entry.absent && entry.expected).map((entry) => `${group.name}: "${entry.target}" has
|
|
333
|
+
...group.differences.filter((entry) => (entry.absent || entry.only) && entry.expected).map((entry) => `${group.name}: "${entry.target}" has \`${entry.absent ? "absent" : "only"}\`, which measures the values itself; drop \`expected\``),
|
|
334
|
+
...group.differences.filter((entry) => entry.absent && entry.only).map((entry) => `${group.name}: "${entry.target}" has both \`absent\` and \`only\`; keep one`)
|
|
309
335
|
])
|
|
310
336
|
]), "defineParityGroups");
|
|
311
337
|
var MEMO_HAS_NO_PROFILES = [
|
|
@@ -320,13 +346,37 @@ var MEMO_HAS_NO_PROFILES = [
|
|
|
320
346
|
absent: "memo",
|
|
321
347
|
reason: "memo has no profiles: it reads other CLIs' stores and selects their accounts with --source and --account (https://github.com/WireCatLabs/cli-base/issues/390)"
|
|
322
348
|
}));
|
|
349
|
+
var MEMO_DOCTOR_DEEP = {
|
|
350
|
+
rule: "same-path-contract",
|
|
351
|
+
target: "doctor --deep",
|
|
352
|
+
only: "memo",
|
|
353
|
+
reason: "memo's doctor --deep also checks its own store (cli-memo #672); cli-core's shared doctor leaves --deep to each CLI, and no other CLI has one"
|
|
354
|
+
};
|
|
355
|
+
var review = /* @__PURE__ */ __name((rule, target, reason) => ({ rule, target, reason, review_after: "2026-11-27" }), "review");
|
|
356
|
+
var ENTITY = "same-entity-schema";
|
|
357
|
+
var REASON = "same-error-reason";
|
|
358
|
+
var MESSENGERS_SINCE_0_98 = [
|
|
359
|
+
review(ENTITY, "entity contact_context", "max, tg and wa print it in different schemas (measured 2026-11-13)"),
|
|
360
|
+
review(ENTITY, "entity contact_preparation", "max, tg and wa print it in different schemas (measured 2026-11-13)"),
|
|
361
|
+
review(ENTITY, "entity linked_person", "max, tg and wa print it in different schemas (measured 2026-11-13)")
|
|
362
|
+
];
|
|
363
|
+
var FAMILY_SINCE_0_98 = [
|
|
364
|
+
review(ENTITY, "entity api_method", "b24's schema differs from drive and gcal's (measured 2026-11-13)"),
|
|
365
|
+
review(ENTITY, "entity scheduled_job", "three schemas: b24, mail, memo / gcal / max, tg (measured 2026-11-13)"),
|
|
366
|
+
review(ENTITY, "entity hit", "three schemas: b24, memo, zm / gcal / max, tg, wa (measured 2026-11-13)"),
|
|
367
|
+
review(ENTITY, "entity deal", "b24's CRM deal and memo's differ (measured 2026-11-13)"),
|
|
368
|
+
review(ENTITY, "entity lead", "b24's CRM lead and memo's differ (measured 2026-11-13)"),
|
|
369
|
+
review(ENTITY, "entity product", "b24's CRM product and memo's differ (measured 2026-11-13)"),
|
|
370
|
+
review(REASON, "reason ai.address-refused=model.address-refused", "one failure under two names; cli-core 0.650.0 keeps one"),
|
|
371
|
+
review(REASON, "reason profile.unknown: code", "b24 gives it not_found, drive validation_error (measured 2026-11-13)")
|
|
372
|
+
];
|
|
323
373
|
var PARITY_GROUPS = defineParityGroups([
|
|
324
|
-
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences:
|
|
374
|
+
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: MESSENGERS_SINCE_0_98 },
|
|
325
375
|
{
|
|
326
376
|
name: "all",
|
|
327
377
|
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
328
378
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
|
|
329
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
379
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
330
380
|
},
|
|
331
381
|
// mail's `search messages` is cli-core's mail search, not the messengers' command: --complete took their 20-odd
|
|
332
382
|
// differences as inherited (https://github.com/WireCatLabs/cli-base/issues/390). mail is compared everywhere else
|
|
@@ -335,7 +385,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
335
385
|
name: "mail-shared",
|
|
336
386
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
|
|
337
387
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "notes", "meetings"],
|
|
338
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
388
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
339
389
|
},
|
|
340
390
|
// gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
|
|
341
391
|
// CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
|
|
@@ -343,7 +393,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
343
393
|
name: "gcal-shared",
|
|
344
394
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "gcal"],
|
|
345
395
|
covers: ["commands", "upgrade", "notes", "meetings"],
|
|
346
|
-
differences:
|
|
396
|
+
differences: FAMILY_SINCE_0_98
|
|
347
397
|
},
|
|
348
398
|
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's meetings take call recordings, not
|
|
349
399
|
// zoom-cli's: both are compared on the root commands every CLI shares, the way gcal and mail are on theirs.
|
|
@@ -351,7 +401,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
351
401
|
name: "shared-roots",
|
|
352
402
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
|
|
353
403
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
354
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
404
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
355
405
|
}
|
|
356
406
|
]);
|
|
357
407
|
var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
|
|
@@ -365,7 +415,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
365
415
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
366
416
|
]);
|
|
367
417
|
|
|
368
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
418
|
+
// 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/standards/fields.js
|
|
369
419
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
370
420
|
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");
|
|
371
421
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -381,7 +431,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
381
431
|
}
|
|
382
432
|
]);
|
|
383
433
|
|
|
384
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
434
|
+
// 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/standards/identifiers.js
|
|
385
435
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
386
436
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
387
437
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -403,7 +453,44 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
403
453
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
404
454
|
]);
|
|
405
455
|
|
|
406
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
456
|
+
// 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/standards/flags-account.js
|
|
457
|
+
var ACCOUNT_FLAGS = [
|
|
458
|
+
{
|
|
459
|
+
name: "--client-id",
|
|
460
|
+
value: "<id>",
|
|
461
|
+
role: "mode",
|
|
462
|
+
type: "id",
|
|
463
|
+
meaning: "sign in through the owner's own OAuth app with this client ID instead of WireCat's (WC-SECR-25)"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
name: "--client-file",
|
|
467
|
+
value: "<file>",
|
|
468
|
+
role: "mode",
|
|
469
|
+
type: "path",
|
|
470
|
+
meaning: "sign in through the owner's own OAuth app read from this client JSON instead of WireCat's (WC-SECR-25)"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: "--keep-data",
|
|
474
|
+
role: "mode",
|
|
475
|
+
type: "switch",
|
|
476
|
+
meaning: "remove the account but leave what the store holds of it, still searchable"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
name: "--delete-data",
|
|
480
|
+
role: "mode",
|
|
481
|
+
type: "switch",
|
|
482
|
+
meaning: "remove the account and delete what the store and the tool's files hold of it"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
name: "--answer-stdin",
|
|
486
|
+
role: "mode",
|
|
487
|
+
type: "switch",
|
|
488
|
+
meaning: "a sign-in step asks its question as a JSON line and reads the answer from stdin"
|
|
489
|
+
},
|
|
490
|
+
{ name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
|
|
491
|
+
];
|
|
492
|
+
|
|
493
|
+
// 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/standards/flags-calendar.js
|
|
407
494
|
var CALENDAR_FLAGS = [
|
|
408
495
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
409
496
|
{
|
|
@@ -411,14 +498,14 @@ var CALENDAR_FLAGS = [
|
|
|
411
498
|
value: "<date>",
|
|
412
499
|
role: "value",
|
|
413
500
|
type: "time",
|
|
414
|
-
meaning: "the first day of something that lasts whole days, such as an all-day event"
|
|
501
|
+
meaning: "the first day of something that lasts whole days, such as an all-day event or a contract"
|
|
415
502
|
},
|
|
416
503
|
{
|
|
417
504
|
name: "--end-date",
|
|
418
505
|
value: "<date>",
|
|
419
506
|
role: "value",
|
|
420
507
|
type: "time",
|
|
421
|
-
meaning: "the last day of something that lasts whole days, such as an all-day event"
|
|
508
|
+
meaning: "the last day of something that lasts whole days, such as an all-day event or a contract"
|
|
422
509
|
},
|
|
423
510
|
{ name: "--location", value: "<text>", role: "value", type: "string", meaning: "where it takes place" },
|
|
424
511
|
{
|
|
@@ -477,7 +564,7 @@ var CALENDAR_FLAGS = [
|
|
|
477
564
|
}
|
|
478
565
|
];
|
|
479
566
|
|
|
480
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
567
|
+
// 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/standards/flags-crm.js
|
|
481
568
|
var CRM_FLAGS = [
|
|
482
569
|
{
|
|
483
570
|
name: "--pipeline",
|
|
@@ -508,16 +595,126 @@ var CRM_FLAGS = [
|
|
|
508
595
|
type: "time",
|
|
509
596
|
meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
|
|
510
597
|
},
|
|
598
|
+
{
|
|
599
|
+
name: "--position",
|
|
600
|
+
value: "<title>",
|
|
601
|
+
role: "value",
|
|
602
|
+
type: "string",
|
|
603
|
+
meaning: "a person's job title on a relationship, stored as position; never the role"
|
|
604
|
+
},
|
|
511
605
|
{
|
|
512
606
|
name: "--owner",
|
|
513
607
|
value: "<user>",
|
|
514
608
|
role: "value",
|
|
515
609
|
type: "id",
|
|
516
610
|
meaning: "the CRM user a record is assigned to, by the CRM's id"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: "--status",
|
|
614
|
+
value: "<state>",
|
|
615
|
+
role: "value",
|
|
616
|
+
type: "choice",
|
|
617
|
+
meaning: "the state to put it in; the command lists the states"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
name: "--product",
|
|
621
|
+
value: "<product>",
|
|
622
|
+
role: "value",
|
|
623
|
+
type: "string",
|
|
624
|
+
meaning: "a product or service the owner sells or buys: product:<id>"
|
|
625
|
+
},
|
|
626
|
+
{ name: "--contract", value: "<contract>", role: "value", type: "string", meaning: "a contract: contract:<id>" },
|
|
627
|
+
{ name: "--payment", value: "<payment>", role: "value", type: "string", meaning: "a payment: payment:<id>" },
|
|
628
|
+
{
|
|
629
|
+
name: "--refund-of",
|
|
630
|
+
value: "<payment>",
|
|
631
|
+
role: "value",
|
|
632
|
+
type: "string",
|
|
633
|
+
meaning: "the payment this one gives money back for: payment:<id>"
|
|
634
|
+
},
|
|
635
|
+
{ name: "--wallet", value: "<wallet>", role: "value", type: "string", meaning: "a wallet: wallet:<id>" },
|
|
636
|
+
{
|
|
637
|
+
name: "--supplier",
|
|
638
|
+
value: "<party>",
|
|
639
|
+
role: "value",
|
|
640
|
+
type: "string",
|
|
641
|
+
meaning: "who supplies it: person:<uid> or organization:<id>"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
name: "--customer",
|
|
645
|
+
value: "<party>",
|
|
646
|
+
role: "value",
|
|
647
|
+
type: "string",
|
|
648
|
+
meaning: "who receives it and pays for it: person:<uid> or organization:<id>"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
name: "--trial-end-date",
|
|
652
|
+
value: "<date>",
|
|
653
|
+
role: "value",
|
|
654
|
+
type: "time",
|
|
655
|
+
meaning: "the day a free trial ends, YYYY-MM-DD"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
name: "--notice-days",
|
|
659
|
+
value: "<days>",
|
|
660
|
+
role: "value",
|
|
661
|
+
type: "count",
|
|
662
|
+
meaning: "how many days before its end a party must say it will not go on",
|
|
663
|
+
unit: "days"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
name: "--auto-renew",
|
|
667
|
+
value: "<on|off>",
|
|
668
|
+
role: "value",
|
|
669
|
+
type: "choice",
|
|
670
|
+
meaning: "it renews by itself at its end, or it does not"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
name: "--period",
|
|
674
|
+
value: "<count-unit>",
|
|
675
|
+
role: "value",
|
|
676
|
+
type: "duration",
|
|
677
|
+
meaning: "how often a charge repeats: a count and a calendar unit, such as 1-month"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
name: "--opening-balance",
|
|
681
|
+
value: "<decimal>",
|
|
682
|
+
role: "value",
|
|
683
|
+
type: "string",
|
|
684
|
+
meaning: "the money it held on --opening-date, as a decimal such as 1500.50; later movements count from it"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
name: "--opening-date",
|
|
688
|
+
value: "<date>",
|
|
689
|
+
role: "value",
|
|
690
|
+
type: "time",
|
|
691
|
+
meaning: "the day of the opening balance, YYYY-MM-DD"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
name: "--institution",
|
|
695
|
+
value: "<text>",
|
|
696
|
+
role: "value",
|
|
697
|
+
type: "string",
|
|
698
|
+
meaning: "the bank or other company that holds it, by name"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
name: "--unit",
|
|
702
|
+
value: "<text>",
|
|
703
|
+
role: "value",
|
|
704
|
+
type: "string",
|
|
705
|
+
meaning: "what one of it is counted in, such as hour or piece"
|
|
706
|
+
},
|
|
707
|
+
{ name: "--sku", value: "<code>", role: "value", type: "string", meaning: "the stock code the seller gives it" },
|
|
708
|
+
{
|
|
709
|
+
name: "--archived",
|
|
710
|
+
value: "<on|off>",
|
|
711
|
+
role: "value",
|
|
712
|
+
type: "choice",
|
|
713
|
+
meaning: "set it aside as no longer in use, or bring it back; what points at it keeps pointing at it"
|
|
517
714
|
}
|
|
518
715
|
];
|
|
519
716
|
|
|
520
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
717
|
+
// 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/standards/flags-how.js
|
|
521
718
|
var HOW_FLAGS = [
|
|
522
719
|
{
|
|
523
720
|
name: "--limit",
|
|
@@ -744,13 +941,13 @@ var HOW_FLAGS = [
|
|
|
744
941
|
meaning: "expose meeting preparation tools, including their remote schedule reads"
|
|
745
942
|
},
|
|
746
943
|
{ name: "--dry-run", role: "mode", type: "switch", meaning: "judge and plan; do nothing", replaces: ["--estimate"] },
|
|
747
|
-
{ name: "--accept-terms", role: "mode", type: "switch", meaning: "accept the model's licence terms" },
|
|
748
944
|
{
|
|
749
945
|
name: "--as-owner",
|
|
750
946
|
role: "mode",
|
|
751
947
|
type: "switch",
|
|
752
948
|
meaning: "record the action as the owner's although an agent's terminal runs the tool"
|
|
753
949
|
},
|
|
950
|
+
{ name: "--from-app", role: "mode", type: "switch", meaning: "the owner acted in the app; its word, not a check" },
|
|
754
951
|
{
|
|
755
952
|
name: "--allow-any-file",
|
|
756
953
|
role: "mode",
|
|
@@ -802,6 +999,7 @@ var HOW_FLAGS = [
|
|
|
802
999
|
replaces: ["--expected"]
|
|
803
1000
|
},
|
|
804
1001
|
{ name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
|
|
1002
|
+
{ name: "--with-muted", role: "mode", type: "switch", meaning: "also read the chats the owner muted" },
|
|
805
1003
|
{
|
|
806
1004
|
name: "--for-everyone",
|
|
807
1005
|
role: "mode",
|
|
@@ -1094,6 +1292,7 @@ var HOW_FLAGS = [
|
|
|
1094
1292
|
{ name: "--retract", role: "action", type: "switch", meaning: "take the owner's vote back" },
|
|
1095
1293
|
{ name: "--revoke", role: "action", type: "switch", meaning: "forget every login given to a browser app" },
|
|
1096
1294
|
{ name: "--track", role: "action", type: "switch", meaning: "also do it daily while serve runs" },
|
|
1295
|
+
{ name: "--undo", role: "mode", type: "switch", meaning: "put back what the last change replaced, not a new value" },
|
|
1097
1296
|
{
|
|
1098
1297
|
name: "--transcribe",
|
|
1099
1298
|
role: "action",
|
|
@@ -1512,7 +1711,45 @@ var HOW_FLAGS = [
|
|
|
1512
1711
|
}
|
|
1513
1712
|
];
|
|
1514
1713
|
|
|
1515
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1714
|
+
// 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/standards/flags-knowledge.js
|
|
1715
|
+
var KNOWLEDGE_FLAGS = [
|
|
1716
|
+
{
|
|
1717
|
+
name: "--accept-terms",
|
|
1718
|
+
role: "mode",
|
|
1719
|
+
type: "switch",
|
|
1720
|
+
meaning: "no longer needed; kept so older scripts still run"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
name: "--quote",
|
|
1724
|
+
value: "<ref=words...>",
|
|
1725
|
+
role: "value",
|
|
1726
|
+
type: "list",
|
|
1727
|
+
meaning: "the words an --evidence reference says that a record rests on, as <ref>=<words>, one per reference"
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
name: "--suggest",
|
|
1731
|
+
value: "<text>",
|
|
1732
|
+
role: "value",
|
|
1733
|
+
type: "string",
|
|
1734
|
+
meaning: "wording offered for the owner to take or leave; it decides nothing"
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
name: "--keep-copy",
|
|
1738
|
+
role: "mode",
|
|
1739
|
+
type: "switch",
|
|
1740
|
+
meaning: "keep a copy of the original file as well as its text"
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
name: "--max-chars",
|
|
1744
|
+
value: "<n>",
|
|
1745
|
+
role: "budget",
|
|
1746
|
+
type: "count",
|
|
1747
|
+
meaning: "at most this many characters read",
|
|
1748
|
+
unit: "characters"
|
|
1749
|
+
}
|
|
1750
|
+
];
|
|
1751
|
+
|
|
1752
|
+
// 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/standards/flags-mail.js
|
|
1516
1753
|
var MAIL_FLAGS = [
|
|
1517
1754
|
{
|
|
1518
1755
|
name: "--cc",
|
|
@@ -1542,7 +1779,7 @@ var MAIL_FLAGS = [
|
|
|
1542
1779
|
}
|
|
1543
1780
|
];
|
|
1544
1781
|
|
|
1545
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1782
|
+
// 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/standards/flags-privacy.js
|
|
1546
1783
|
var PRIVACY_FLAGS = [
|
|
1547
1784
|
{
|
|
1548
1785
|
name: "--about-text",
|
|
@@ -1603,8 +1840,15 @@ var PRIVACY_FLAGS = [
|
|
|
1603
1840
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1604
1841
|
];
|
|
1605
1842
|
|
|
1606
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1843
|
+
// 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/standards/flags-schedule.js
|
|
1607
1844
|
var SCHEDULE_FLAGS = [
|
|
1845
|
+
{
|
|
1846
|
+
name: "--locale",
|
|
1847
|
+
value: "<code>",
|
|
1848
|
+
role: "target",
|
|
1849
|
+
type: "string",
|
|
1850
|
+
meaning: "a human language, as an ISO 639-1 code such as en or ru: which language's version it acts on"
|
|
1851
|
+
},
|
|
1608
1852
|
{
|
|
1609
1853
|
name: "--notify-on",
|
|
1610
1854
|
value: "<when>",
|
|
@@ -1629,7 +1873,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1629
1873
|
}
|
|
1630
1874
|
];
|
|
1631
1875
|
|
|
1632
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1876
|
+
// 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/standards/flags-what.js
|
|
1633
1877
|
var WHAT_FLAGS = [
|
|
1634
1878
|
{
|
|
1635
1879
|
name: "--analysis-provider",
|
|
@@ -1645,6 +1889,13 @@ var WHAT_FLAGS = [
|
|
|
1645
1889
|
type: "choice",
|
|
1646
1890
|
meaning: "who computes embeddings: a local model or a configured remote model service"
|
|
1647
1891
|
},
|
|
1892
|
+
{
|
|
1893
|
+
name: "--region",
|
|
1894
|
+
value: "<country>",
|
|
1895
|
+
role: "mode",
|
|
1896
|
+
type: "string",
|
|
1897
|
+
meaning: "the two-letter country code, such as ru, that phone numbers written without + are read in"
|
|
1898
|
+
},
|
|
1648
1899
|
{
|
|
1649
1900
|
name: "--consent-provider",
|
|
1650
1901
|
value: "<identity>",
|
|
@@ -1938,6 +2189,13 @@ var WHAT_FLAGS = [
|
|
|
1938
2189
|
type: "list",
|
|
1939
2190
|
meaning: "the agents to install for, comma-separated"
|
|
1940
2191
|
},
|
|
2192
|
+
{
|
|
2193
|
+
name: "--from",
|
|
2194
|
+
value: "<person>",
|
|
2195
|
+
role: "target",
|
|
2196
|
+
type: "id",
|
|
2197
|
+
meaning: "a person: the one identities leave, or the one who sent it; a search takes it repeated for any of several"
|
|
2198
|
+
},
|
|
1941
2199
|
{
|
|
1942
2200
|
name: "--from-dir",
|
|
1943
2201
|
value: "<dir>",
|
|
@@ -2173,7 +2431,13 @@ var WHAT_FLAGS = [
|
|
|
2173
2431
|
meaning: "who joins by the link asks first, and an admin lets them in"
|
|
2174
2432
|
},
|
|
2175
2433
|
{ name: "--can", value: "<rights>", role: "value", type: "list", meaning: "what an admin may do, comma-separated" },
|
|
2176
|
-
{
|
|
2434
|
+
{
|
|
2435
|
+
name: "--channel",
|
|
2436
|
+
role: "value",
|
|
2437
|
+
type: "switch",
|
|
2438
|
+
otherValues: ["channel"],
|
|
2439
|
+
meaning: "a channel instead of a group (a switch), or what a message is written for (<channel>), such as email"
|
|
2440
|
+
},
|
|
2177
2441
|
{
|
|
2178
2442
|
name: "--certainty",
|
|
2179
2443
|
value: "<n>",
|
|
@@ -2382,7 +2646,7 @@ var WHAT_FLAGS = [
|
|
|
2382
2646
|
value: "<file>",
|
|
2383
2647
|
role: "value",
|
|
2384
2648
|
type: "path",
|
|
2385
|
-
meaning: "a file to send with
|
|
2649
|
+
meaning: "a file it reads: one to send with a message, the text its caption, or the new text of a write"
|
|
2386
2650
|
},
|
|
2387
2651
|
{
|
|
2388
2652
|
name: "--filename",
|
|
@@ -2426,7 +2690,15 @@ var WHAT_FLAGS = [
|
|
|
2426
2690
|
meaning: "what kind of thing it is; the command lists the kinds"
|
|
2427
2691
|
},
|
|
2428
2692
|
{ name: "--name", value: "<name>", role: "value", type: "string", meaning: "the name to give it" },
|
|
2693
|
+
{
|
|
2694
|
+
name: "--button",
|
|
2695
|
+
value: "<text=data>",
|
|
2696
|
+
role: "value",
|
|
2697
|
+
type: "string",
|
|
2698
|
+
meaning: "an inline button under a message: its text, then the data a press sends back; repeat for more in one row"
|
|
2699
|
+
},
|
|
2429
2700
|
{ name: "--no-approval", role: "value", type: "switch", meaning: "anyone with the link joins at once" },
|
|
2701
|
+
{ name: "--no-buttons", role: "value", type: "switch", meaning: "take the buttons off the message" },
|
|
2430
2702
|
{
|
|
2431
2703
|
name: "--notification",
|
|
2432
2704
|
value: "<text>",
|
|
@@ -2461,6 +2733,13 @@ var WHAT_FLAGS = [
|
|
|
2461
2733
|
},
|
|
2462
2734
|
{ name: "--remind-time", value: "<time>", role: "value", type: "time", meaning: "when to look at it again" },
|
|
2463
2735
|
{ name: "--role", value: "<role>", role: "value", type: "string", meaning: "the part it plays, in a word or two" },
|
|
2736
|
+
{
|
|
2737
|
+
name: "--label",
|
|
2738
|
+
value: "<label>",
|
|
2739
|
+
role: "value",
|
|
2740
|
+
type: "string",
|
|
2741
|
+
meaning: "a human-readable label for an id, such as the name shown for a custom relationship role"
|
|
2742
|
+
},
|
|
2464
2743
|
{
|
|
2465
2744
|
name: "--scope",
|
|
2466
2745
|
value: "<scope>",
|
|
@@ -2591,7 +2870,7 @@ var WHAT_FLAGS = [
|
|
|
2591
2870
|
}
|
|
2592
2871
|
];
|
|
2593
2872
|
|
|
2594
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2873
|
+
// 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/standards/vocabulary.js
|
|
2595
2874
|
var FLAG_TYPES = [
|
|
2596
2875
|
"switch",
|
|
2597
2876
|
"count",
|
|
@@ -2679,6 +2958,7 @@ var defineVocabulary = /* @__PURE__ */ __name((input) => parseRegistry("vocabula
|
|
|
2679
2958
|
var verbs = [
|
|
2680
2959
|
["list", "show many"],
|
|
2681
2960
|
["show", "show one"],
|
|
2961
|
+
["browse", "list one level of a remote hierarchy, such as a provider's folders, to choose from; reads only"],
|
|
2682
2962
|
["search", "find by text; the description says where it looks"],
|
|
2683
2963
|
["prepare", "assemble bounded cited context for a selected upcoming activity without applying findings"],
|
|
2684
2964
|
["related", "what is nearest in meaning to one thing, without a query"],
|
|
@@ -2686,6 +2966,7 @@ var verbs = [
|
|
|
2686
2966
|
["status", "how a thing stands right now"],
|
|
2687
2967
|
["check", "verify, and change nothing; the answer says what is wrong and how to fix it"],
|
|
2688
2968
|
["test", "run rules over what is already stored and say what they would have done, doing none of it"],
|
|
2969
|
+
["preview", "render what would be sent or written, from what is stored or a draft; sends and saves nothing"],
|
|
2689
2970
|
["apply", "run the owner's saved rules over what is already stored and change what they match; dry run unless --yes"],
|
|
2690
2971
|
["scan", "read stored messages for what a rule finds, such as tasks, and list it; records it only with --yes"],
|
|
2691
2972
|
["pause", "stop what a running process does for a profile, without stopping the process"],
|
|
@@ -2709,7 +2990,7 @@ var verbs = [
|
|
|
2709
2990
|
["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
|
|
2710
2991
|
["install", "install a system unit"],
|
|
2711
2992
|
["uninstall", "remove a system unit"],
|
|
2712
|
-
["cancel", "stop a job
|
|
2993
|
+
["cancel", "stop a job, a pending thing or a subscription"],
|
|
2713
2994
|
[
|
|
2714
2995
|
"sync",
|
|
2715
2996
|
"bring the local store up to date from the source: only what changed, or the whole list where the source cannot say; a mirror syncs both ways"
|
|
@@ -2732,6 +3013,10 @@ var verbs = [
|
|
|
2732
3013
|
// Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
|
|
2733
3014
|
["link", "record that two identities are one person"],
|
|
2734
3015
|
["unlink", "undo a link"],
|
|
3016
|
+
[
|
|
3017
|
+
"match",
|
|
3018
|
+
"link each waiting record to the thing its identifiers name, such as a person by e-mail address; a name alone never matches"
|
|
3019
|
+
],
|
|
2735
3020
|
["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
|
|
2736
3021
|
["lookup", "ask the messenger who is behind a phone number"],
|
|
2737
3022
|
[
|
|
@@ -2739,6 +3024,7 @@ var verbs = [
|
|
|
2739
3024
|
"look at a source before taking anything from it: a chat link without joining, a mailbox without importing"
|
|
2740
3025
|
],
|
|
2741
3026
|
["send", "send a message"],
|
|
3027
|
+
["call", "call one provider API method by its own name, generated from the provider's method list"],
|
|
2742
3028
|
["edit", "change a sent message"],
|
|
2743
3029
|
["forward", "send an existing message on to another chat"],
|
|
2744
3030
|
["pin", "pin a message or chat"],
|
|
@@ -2768,6 +3054,7 @@ var verbs = [
|
|
|
2768
3054
|
["assign", "name the person responsible for work, with their task role"],
|
|
2769
3055
|
["reverse", "record that an accepted decision no longer holds, without replacing it"],
|
|
2770
3056
|
["invalidate", "mark a derived record whose supporting evidence no longer holds"],
|
|
3057
|
+
["challenge", "say a record no longer holds, citing what contradicts it; it only proposes, and the owner decides"],
|
|
2771
3058
|
["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
|
|
2772
3059
|
["confirm", "the owner accepts what an agent proposed"],
|
|
2773
3060
|
["reject", "the owner refuses what an agent proposed"],
|
|
@@ -2817,6 +3104,7 @@ var collections = [
|
|
|
2817
3104
|
["topics", "forum topics in a group"],
|
|
2818
3105
|
["models", "local or remote models"],
|
|
2819
3106
|
["tags", "labels the owner puts on things"],
|
|
3107
|
+
["groups", "account groups: the accounts a run in a group reads, such as work and personal (WC-ACCT-13)"],
|
|
2820
3108
|
["searches", "the owner's saved searches"],
|
|
2821
3109
|
["copies", "tables kept aside by a repair"],
|
|
2822
3110
|
["tables", "the tables of the local store, with their kind, row count and size"],
|
|
@@ -2827,6 +3115,7 @@ var collections = [
|
|
|
2827
3115
|
["tracking", "the chats whose member lists are fetched daily"],
|
|
2828
3116
|
["documents", "files imported from Google Drive or Docs, or linked in a chat"],
|
|
2829
3117
|
["notes", "text the owner writes, or files from a notes folder"],
|
|
3118
|
+
["sources", "what the owner adds by hand to read from: a file, a web page or a pasted text, kept as its text"],
|
|
2830
3119
|
["projects", "the owner's work units with a task key"],
|
|
2831
3120
|
[
|
|
2832
3121
|
"annotations",
|
|
@@ -2844,7 +3133,14 @@ var collections = [
|
|
|
2844
3133
|
["leads", "possible customers not yet qualified into a deal"],
|
|
2845
3134
|
["pipelines", "ordered sets of stages a deal moves through"],
|
|
2846
3135
|
["stages", "steps of a pipeline, each open, won or lost"],
|
|
2847
|
-
["products", "goods and services the owner sells, with their prices"],
|
|
3136
|
+
["products", "goods and services the owner sells or buys, with their prices"],
|
|
3137
|
+
["lines", "the rows of an order or an invoice: what, how many and at what price"],
|
|
3138
|
+
["contracts", "agreements the owner is a party to, with their terms, dates and renewal"],
|
|
3139
|
+
["subscriptions", "charges that repeat on a schedule, which the owner pays or is paid, with their price history"],
|
|
3140
|
+
["prices", "what a thing costs over time, each price from its start date"],
|
|
3141
|
+
["wallets", "places that hold the owner's money, such as a bank account, a card or cash"],
|
|
3142
|
+
["transactions", "money that moved in or out of a wallet, as the bank or the owner recorded it"],
|
|
3143
|
+
["splits", "parts of one transaction, each with its own amount and category"],
|
|
2848
3144
|
["users", "people who work in the owner's account at a service, such as a CRM's employees"],
|
|
2849
3145
|
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
2850
3146
|
[
|
|
@@ -2854,6 +3150,7 @@ var collections = [
|
|
|
2854
3150
|
["facts", "what happened, with evidence"],
|
|
2855
3151
|
["memories", "what an agent concluded, with evidence and scope"],
|
|
2856
3152
|
["relationships", "confirmed or suggested links between people, organizations and projects"],
|
|
3153
|
+
["roles", "the parts a person plays in a relationship, built in or the owner's own"],
|
|
2857
3154
|
["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
|
|
2858
3155
|
["files", "files in the source, such as Google Drive, read and changed there"],
|
|
2859
3156
|
["comments", "comments people left on a thing in the source: a channel post or a file"],
|
|
@@ -2934,6 +3231,7 @@ var views = [
|
|
|
2934
3231
|
["categories", "the categories a thing takes, with what each means"],
|
|
2935
3232
|
["domains", "the internet domains links point to, most linked first"],
|
|
2936
3233
|
["places", "the street addresses confirmed as places, most mentioned first"],
|
|
3234
|
+
["mentions", "the people and organizations named in a selected thing's text"],
|
|
2937
3235
|
["comments", "replies attached to a selected source item"],
|
|
2938
3236
|
["links", "links held for a selected thing"],
|
|
2939
3237
|
["voters", "people whose recorded votes are visible for a selected poll"],
|
|
@@ -2982,14 +3280,16 @@ var VOCABULARY = defineVocabulary({
|
|
|
2982
3280
|
...HOW_FLAGS,
|
|
2983
3281
|
...WHAT_FLAGS,
|
|
2984
3282
|
...PRIVACY_FLAGS,
|
|
3283
|
+
...ACCOUNT_FLAGS,
|
|
2985
3284
|
...CALENDAR_FLAGS,
|
|
2986
3285
|
...MAIL_FLAGS,
|
|
3286
|
+
...KNOWLEDGE_FLAGS,
|
|
2987
3287
|
...CRM_FLAGS,
|
|
2988
3288
|
...SCHEDULE_FLAGS
|
|
2989
3289
|
]
|
|
2990
3290
|
});
|
|
2991
3291
|
|
|
2992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3292
|
+
// 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/mcp/agent.js
|
|
2993
3293
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2994
3294
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2995
3295
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3099,17 +3399,21 @@ var fieldsOf = /* @__PURE__ */ __name((info, { omit = [], offline = false, stdin
|
|
|
3099
3399
|
}, "fieldsOf");
|
|
3100
3400
|
var schemaOf = /* @__PURE__ */ __name((fields) => object(Object.fromEntries(fields.map((field) => [field.name, field.required ? field.schema : optional(field.schema)]))), "schemaOf");
|
|
3101
3401
|
var startsWith = /* @__PURE__ */ __name((path, prefix) => prefix.every((word2, at) => path[at] === word2), "startsWith");
|
|
3402
|
+
var keywordsOf = /* @__PURE__ */ __name((examples) => [
|
|
3403
|
+
...new Set(examples.flatMap((example) => example.split(/\s+/u).filter((word2) => word2 !== "" && !word2.startsWith("-"))))
|
|
3404
|
+
], "keywordsOf");
|
|
3102
3405
|
var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
|
|
3103
|
-
const { root = [], exclude = [], levels, keyOf, authority, readOnly = false, permissions } = options;
|
|
3406
|
+
const { root = [], exclude = [], levels, keyOf, authority, readOnly = false, permissions, fetches } = options;
|
|
3104
3407
|
return flatten(commands).filter((info) => (
|
|
3105
3408
|
// A group is offered only when it runs on its own; without an action it only prints its help.
|
|
3106
|
-
(info.commands.length === 0 || info.runnable === true) && info.path.length > root.length && startsWith(info.path, root) && !exclude.some((skipped) => startsWith(info.path.slice(root.length), skipped)) && info.mcp !== false && info.lifetime === void 0 && (options.includeUnavailable === true || !(readOnly && (changesMessenger(info) || authority?.(info.path))) && (levels === void 0 && !(readOnly && permissions) ? true : commandAvailability(info, levels ?? {}, keyOf, authority, readOnly, true, permissions).available))
|
|
3409
|
+
(info.commands.length === 0 || info.runnable === true) && info.path.length > root.length && startsWith(info.path, root) && !exclude.some((skipped) => startsWith(info.path.slice(root.length), skipped)) && info.mcp !== false && info.lifetime === void 0 && (options.includeUnavailable === true || !(readOnly && (changesMessenger(info) || authority?.(info.path))) && (levels === void 0 && !(readOnly && permissions) ? true : commandAvailability(info, levels ?? {}, keyOf, authority, readOnly, true, permissions, fetches).available))
|
|
3107
3410
|
)).map((info) => ({
|
|
3108
|
-
availability: /* @__PURE__ */ __name(() => commandAvailability(info, options.currentLevels?.() ?? levels ?? {}, keyOf, authority, readOnly, true, permissions), "availability"),
|
|
3411
|
+
availability: /* @__PURE__ */ __name(() => commandAvailability(info, options.currentLevels?.() ?? levels ?? {}, keyOf, authority, readOnly, true, permissions, fetches), "availability"),
|
|
3109
3412
|
command: info.path.slice(root.length).join(" "),
|
|
3110
3413
|
path: info.path,
|
|
3111
3414
|
title: info.summary ?? info.description,
|
|
3112
3415
|
description: info.description,
|
|
3416
|
+
...info.examples?.length ? { keywords: keywordsOf(info.examples) } : {},
|
|
3113
3417
|
writes: writes(info.effects) && options.fetchOnly?.(info.path) !== true,
|
|
3114
3418
|
input: schemaOf(fieldsOf(info, options)),
|
|
3115
3419
|
...info.output ? { output: info.output } : {}
|
|
@@ -3147,7 +3451,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3147
3451
|
if (info.lifetime)
|
|
3148
3452
|
throw new CliError("validation_error", `"${path.join(" ")}" runs until it is stopped; an agent call must return`);
|
|
3149
3453
|
const levels = ctx.levels?.();
|
|
3150
|
-
const availability = (levels || ctx.readOnly || ctx.permissions) && commandAvailability(info, levels ?? {}, ctx.keyOf, ctx.authority, ctx.readOnly, true, ctx.permissions);
|
|
3454
|
+
const availability = (levels || ctx.readOnly || ctx.permissions) && commandAvailability(info, levels ?? {}, ctx.keyOf, ctx.authority, ctx.readOnly, true, ctx.permissions, ctx.fetches);
|
|
3151
3455
|
if (availability && !availability.available)
|
|
3152
3456
|
throw new CliError("permission_error", `${path.join(" ")}: ${availability.reason}`, {
|
|
3153
3457
|
sent: false,
|
|
@@ -3212,7 +3516,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3212
3516
|
}
|
|
3213
3517
|
}, "runCommandForAgent");
|
|
3214
3518
|
|
|
3215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3519
|
+
// 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/mcp/tool.js
|
|
3216
3520
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3217
3521
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3218
3522
|
var message = pipe(
|
|
@@ -3471,20 +3775,65 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3471
3775
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3472
3776
|
}, "failed");
|
|
3473
3777
|
|
|
3474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3778
|
+
// 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/mcp/surface.js
|
|
3475
3779
|
import { randomUUID } from "node:crypto";
|
|
3476
3780
|
var MATCHES = 8;
|
|
3477
3781
|
var ANSWER = answerSchema();
|
|
3782
|
+
var agentAnswer = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
3783
|
+
const meta = pipe(looseObject({}), description(`run facts; ${prefix}_tools_search shows the full answer`));
|
|
3784
|
+
const next = optional(pipe(array(looseObject({})), description("steps to run next: command and args")));
|
|
3785
|
+
return looseObject(writes2 ? { item: optional(unknown()), next, meta } : {
|
|
3786
|
+
items: optional(array(unknown())),
|
|
3787
|
+
item: optional(unknown()),
|
|
3788
|
+
page: optional(looseObject({ has_more: boolean() })),
|
|
3789
|
+
next,
|
|
3790
|
+
missing: optional(array(looseObject({ field: string(), why: string() }))),
|
|
3791
|
+
meta
|
|
3792
|
+
});
|
|
3793
|
+
}, "agentAnswer");
|
|
3794
|
+
var listedAs = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
3795
|
+
const checked = toStandardJsonSchema(ANSWER);
|
|
3796
|
+
const shown = toStandardJsonSchema(agentAnswer(prefix, writes2))["~standard"].jsonSchema;
|
|
3797
|
+
return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
|
|
3798
|
+
}, "listedAs");
|
|
3478
3799
|
var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
|
|
3479
|
-
var
|
|
3800
|
+
var STOP_WORDS = new Set("a an the to of in on at by for from with into out about and or but is are be been was were it its this that these those which who whom whose what when where how do does did can could should would will my our your their his her them they we you i one some any all each every another other".split(" "));
|
|
3801
|
+
var wordsOf = /* @__PURE__ */ __name((text3) => text3.toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), "wordsOf");
|
|
3802
|
+
var stem = /* @__PURE__ */ __name((word2) => {
|
|
3803
|
+
const bare = word2.replace(/'s$/u, "");
|
|
3804
|
+
if (bare.length > 4 && bare.endsWith("ies"))
|
|
3805
|
+
return `${bare.slice(0, -3)}y`;
|
|
3806
|
+
for (const ending of ["ing", "ed", "es", "s"])
|
|
3807
|
+
if (bare.length - ending.length >= 3 && bare.endsWith(ending))
|
|
3808
|
+
return bare.slice(0, -ending.length);
|
|
3809
|
+
return bare;
|
|
3810
|
+
}, "stem");
|
|
3811
|
+
var sameWord = /* @__PURE__ */ __name((asked, known) => {
|
|
3812
|
+
if (asked === known)
|
|
3813
|
+
return true;
|
|
3814
|
+
const [short, long] = asked.length <= known.length ? [asked, known] : [known, asked];
|
|
3815
|
+
return short.length >= 3 && long.startsWith(short);
|
|
3816
|
+
}, "sameWord");
|
|
3817
|
+
var fieldsOf2 = /* @__PURE__ */ __name((command, one) => [
|
|
3818
|
+
[4, [...wordsOf(command), ...(one.aliases ?? []).flatMap(wordsOf)]],
|
|
3819
|
+
[2, wordsOf(one.title)],
|
|
3820
|
+
[1, [...wordsOf(one.description), ...(one.keywords ?? []).flatMap(wordsOf), ...Object.keys(one.input.entries)]]
|
|
3821
|
+
].map(([weight, words]) => [weight, [...new Set(words.map(stem))]]), "fieldsOf");
|
|
3480
3822
|
var search = /* @__PURE__ */ __name((commands, query) => {
|
|
3481
|
-
const
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3823
|
+
const named = normal(query);
|
|
3824
|
+
const all = Object.entries(commands);
|
|
3825
|
+
if (!named)
|
|
3826
|
+
return all.map((entry) => entry).sort((a, b) => a[0].localeCompare(b[0]));
|
|
3827
|
+
const words = [
|
|
3828
|
+
...new Set(wordsOf(query).filter((word2) => word2.length > 1 && !STOP_WORDS.has(word2)).map(stem))
|
|
3829
|
+
];
|
|
3830
|
+
return all.map((entry) => {
|
|
3831
|
+
const fields = fieldsOf2(entry[0], entry[1]);
|
|
3832
|
+
const weights = words.map((word2) => fields.reduce((best, [weight, known]) => known.some((one) => sameWord(word2, one)) ? Math.max(best, weight) : best, 0));
|
|
3833
|
+
const matched = weights.filter((weight) => weight > 0).length;
|
|
3834
|
+
const exact = normal(entry[0]) === named || (entry[1].aliases ?? []).some((alias) => normal(alias) === named);
|
|
3835
|
+
return { entry, matched, rank: (exact ? 1e3 : 0) + matched * 10 + weights.reduce((a, b) => a + b, 0) };
|
|
3836
|
+
}).filter(({ matched, rank }) => matched > 0 || rank >= 1e3).sort((a, b) => b.rank - a.rank || a.entry[0].localeCompare(b.entry[0])).map(({ entry }) => entry);
|
|
3488
3837
|
}, "search");
|
|
3489
3838
|
var nearest = /* @__PURE__ */ __name((commands, asked) => {
|
|
3490
3839
|
const words = normal(asked).split(" ");
|
|
@@ -3579,7 +3928,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3579
3928
|
arguments: optional(pipe(record(string(), unknown()), description("that command's arguments")))
|
|
3580
3929
|
});
|
|
3581
3930
|
server.registerTool(`${prefix}_read`, {
|
|
3582
|
-
outputSchema:
|
|
3931
|
+
outputSchema: listedAs(prefix, false),
|
|
3583
3932
|
title: "Run a reading command",
|
|
3584
3933
|
description: `Run one command that only reads, with the arguments ${prefix}_tools_search showed. ${untrusted}`,
|
|
3585
3934
|
inputSchema: toStandardJsonSchema(call),
|
|
@@ -3587,7 +3936,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3587
3936
|
}, runner(false));
|
|
3588
3937
|
if (Object.values(commands).some((one) => one.writes))
|
|
3589
3938
|
server.registerTool(`${prefix}_write`, {
|
|
3590
|
-
outputSchema:
|
|
3939
|
+
outputSchema: listedAs(prefix, true),
|
|
3591
3940
|
title: "Run a writing command",
|
|
3592
3941
|
description: `Run one command that changes something \u2014 ${messenger ? "sends, edits, deletes, joins" : "creates, edits, deletes"} \u2014 with the arguments ${prefix}_tools_search showed. ${untrusted}`,
|
|
3593
3942
|
inputSchema: toStandardJsonSchema(call),
|