@wirecat/zoom-cli 0.71.0 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/answers.d.ts +56 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-O4YNVPZX.js → all-profiles-XFIPF4GF.js} +12 -12
- package/dist/bundle/answer-policy-AT6CDEE5.js +110 -0
- package/dist/bundle/{anthropic-7GGRX3RX.js → anthropic-SSUBR3BC.js} +18 -11
- package/dist/bundle/{app-server-CPMKM3HI.js → app-server-7DJHHF2F.js} +68 -56
- package/dist/bundle/{bun-POHZKEPV.js → bun-6HBYWQIX.js} +2 -2
- package/dist/bundle/{bun-sqlite-PGYMBPEL.js → bun-sqlite-4L3Q55NB.js} +10 -6
- package/dist/bundle/{chunk-Q2SUFGSH.js → chunk-23J2ANZ7.js} +2 -2
- package/dist/bundle/{chunk-FSHCAWZS.js → chunk-24OFZNRC.js} +13119 -10386
- package/dist/bundle/{chunk-LE7MDAQG.js → chunk-2MIBRVSV.js} +2 -2
- package/dist/bundle/{chunk-DIQLXAAZ.js → chunk-37NF5CBJ.js} +4 -4
- package/dist/bundle/chunk-3KRTEX5M.js +53 -0
- package/dist/bundle/{chunk-IED3NS7G.js → chunk-4SY67IUA.js} +30 -30
- package/dist/bundle/{chunk-CKPCVEXU.js → chunk-4XQWF3U2.js} +6 -6
- package/dist/bundle/{chunk-CT4WVR4N.js → chunk-4YIGXTBP.js} +3 -3
- package/dist/bundle/{chunk-YPO2U2YB.js → chunk-5AELTC52.js} +388 -143
- package/dist/bundle/{chunk-USQ23X5V.js → chunk-5MGICK47.js} +750 -734
- package/dist/bundle/{chunk-DK6ICIGL.js → chunk-5X4IY5JH.js} +2025 -1302
- package/dist/bundle/{chunk-EOSVN2ER.js → chunk-63QXCE5Z.js} +242 -242
- package/dist/bundle/{chunk-OE7EIP5L.js → chunk-6DCLZLGX.js} +1 -1
- package/dist/bundle/chunk-7GLJSJ7M.js +16 -0
- package/dist/bundle/{chunk-X3ZDN3U7.js → chunk-7IFO43Q5.js} +2 -2
- package/dist/bundle/{chunk-YD2RYVMK.js → chunk-7JYMGXLI.js} +41 -39
- package/dist/bundle/{chunk-DSVZEXYJ.js → chunk-7OD3522V.js} +3541 -3346
- package/dist/bundle/{chunk-2FV5JUQU.js → chunk-7S4D5SM2.js} +41 -35
- package/dist/bundle/{chunk-VRH7VRTK.js → chunk-7SUWPMZG.js} +10 -15
- package/dist/bundle/{chunk-4QPQ7MDA.js → chunk-ADKMBXY4.js} +1 -1
- package/dist/bundle/{chunk-MRI6QMZ3.js → chunk-B3SILJBU.js} +18 -18
- package/dist/bundle/{chunk-7ROXXRGG.js → chunk-CANRIRNZ.js} +6678 -5185
- package/dist/bundle/{chunk-DRBQDCDU.js → chunk-CW46FWKW.js} +38 -123
- package/dist/bundle/{chunk-GXF5HFFP.js → chunk-D24OQAHM.js} +4 -4
- package/dist/bundle/{chunk-ZBKWRYRS.js → chunk-D5EUMWD5.js} +3 -3
- package/dist/bundle/{chunk-QVSLSWAL.js → chunk-DEPXZJ2V.js} +21 -150
- package/dist/bundle/{chunk-TM4JSVGQ.js → chunk-DOCVEKP2.js} +39 -44
- package/dist/bundle/{chunk-BBTQIVFP.js → chunk-EFF2XBHP.js} +2 -2
- package/dist/bundle/{chunk-XRFHQGOD.js → chunk-EG25AY4L.js} +1 -1
- package/dist/bundle/{chunk-FEM2JQN2.js → chunk-ELJUBPY4.js} +1 -1
- package/dist/bundle/{chunk-2U6SER67.js → chunk-ERJYJ36F.js} +2 -2
- package/dist/bundle/chunk-FSCPQQS5.js +244 -0
- package/dist/bundle/{chunk-P3XC6EDU.js → chunk-H53WFZBN.js} +11 -130
- package/dist/bundle/{chunk-RN4EHCC5.js → chunk-I7CUMZD6.js} +3 -3
- package/dist/bundle/{chunk-ALIT5QFT.js → chunk-IACWKZWS.js} +1 -1
- package/dist/bundle/{chunk-MW4EGDDV.js → chunk-IFBIXU6C.js} +2 -2
- package/dist/bundle/{chunk-5K7OGPGA.js → chunk-IU4DUUB3.js} +7 -7
- package/dist/bundle/{chunk-INVTDIF6.js → chunk-IXO4SCKE.js} +1 -1
- package/dist/bundle/{chunk-OHWMIUCT.js → chunk-JAEPK457.js} +244 -245
- package/dist/bundle/{chunk-HB6XJQ3Y.js → chunk-JFPUYQSP.js} +5 -5
- package/dist/bundle/{chunk-IAV5BG3I.js → chunk-JG4MNYG2.js} +1 -1
- package/dist/bundle/{chunk-ZBFL5JPT.js → chunk-JRCH4YZP.js} +16 -10
- package/dist/bundle/{chunk-M76MXMLY.js → chunk-JZ4XNNL7.js} +1 -1
- package/dist/bundle/chunk-K6HR6HCO.js +32 -0
- package/dist/bundle/{chunk-DHWBSXG3.js → chunk-KFZL67JP.js} +323 -55
- package/dist/bundle/{chunk-X4GWR6GO.js → chunk-KPIQXFNB.js} +375 -10
- package/dist/bundle/{chunk-OWEBWDHV.js → chunk-KWURWGGB.js} +80 -5
- package/dist/bundle/{chunk-Q5PI72CR.js → chunk-LA6QUVGQ.js} +3 -2
- package/dist/bundle/{chunk-5J4AMBMM.js → chunk-LLUNHAZ7.js} +4 -4
- package/dist/bundle/{chunk-2RUAMDVV.js → chunk-LTWJM3ED.js} +17 -17
- package/dist/bundle/{chunk-2U27KIKU.js → chunk-M3DMXDX6.js} +6 -6
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-MCPOZNWG.js} +1 -1
- package/dist/bundle/{chunk-CRFOGYDG.js → chunk-MSQHSW4C.js} +2 -2
- package/dist/bundle/chunk-N4QNYWWG.js +71 -0
- package/dist/bundle/chunk-NMZQTYKJ.js +18 -0
- package/dist/bundle/{chunk-2KESWII5.js → chunk-OHCLQJOV.js} +3 -3
- package/dist/bundle/{chunk-4QUFFB2U.js → chunk-OP5PGE2N.js} +4 -4
- package/dist/bundle/{chunk-Q3XLZIY3.js → chunk-OY6N2ABP.js} +29 -23
- package/dist/bundle/chunk-PJWSGXOB.js +185 -0
- package/dist/bundle/{chunk-633QXP57.js → chunk-QA6KIL7Q.js} +10 -8
- package/dist/bundle/{chunk-N2FNMION.js → chunk-QQUY4MZY.js} +1 -1
- package/dist/bundle/{chunk-X277FBTF.js → chunk-QW7YTRV2.js} +3 -3
- package/dist/bundle/chunk-RJTGENHZ.js +109 -0
- package/dist/bundle/{chunk-ULDXZ6LH.js → chunk-RLCVPECY.js} +63 -63
- package/dist/bundle/{chunk-BGTEVIW4.js → chunk-RN5SU2RN.js} +6 -6
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-RX5CJ55S.js} +1 -1
- package/dist/bundle/{chunk-7QC4M4HS.js → chunk-RZUJMAMK.js} +4 -4
- package/dist/bundle/{chunk-OORMSM6O.js → chunk-S7SXSHRC.js} +21 -21
- package/dist/bundle/{chunk-GGS6D4W4.js → chunk-SXZGCD6E.js} +3 -3
- package/dist/bundle/{chunk-64ZHF6PJ.js → chunk-T27IMG6X.js} +3 -1
- package/dist/bundle/{chunk-VJXHIUFP.js → chunk-TF2WKPNW.js} +15 -15
- package/dist/bundle/{chunk-QTHIU7CO.js → chunk-U32VL3MA.js} +1 -1
- package/dist/bundle/{chunk-RQG5VOGH.js → chunk-U3NJBGLA.js} +3 -3
- package/dist/bundle/{chunk-WOIHSQAL.js → chunk-UVZLK3M4.js} +33 -9
- package/dist/bundle/{chunk-XI3VIQKW.js → chunk-VIV64MQM.js} +560 -537
- package/dist/bundle/{chunk-CFQF6IGY.js → chunk-W3YTVEWV.js} +69 -6
- package/dist/bundle/{chunk-54YDWBYG.js → chunk-WLVG4RBZ.js} +1 -1
- package/dist/bundle/{chunk-77TCCHMP.js → chunk-WOAYHCM2.js} +1 -1
- package/dist/bundle/{chunk-5LJTU4LY.js → chunk-WXTYYWZI.js} +13 -13
- package/dist/bundle/{chunk-MEED7YFG.js → chunk-WZGKHTA4.js} +2 -2
- package/dist/bundle/{chunk-I4DFFR7F.js → chunk-X2MP634F.js} +14 -5
- package/dist/bundle/{chunk-RGJ7OWHU.js → chunk-XPWZSW6Y.js} +61 -21
- package/dist/bundle/{chunk-SELXER2Q.js → chunk-YVVJ6Y5C.js} +7 -7
- package/dist/bundle/{chunk-4LAQDZXU.js → chunk-ZHA56THL.js} +790 -70
- package/dist/bundle/{chunk-ZVI6TFQR.js → chunk-ZVFYGTGJ.js} +17 -17
- package/dist/bundle/{chunk-GL3MYFMX.js → chunk-ZW5KHKMA.js} +5 -5
- package/dist/bundle/{cli-KHMEUXNG.js → cli-IYYI7GAM.js} +158 -96
- package/dist/bundle/command-contract-TX7NSUBM.js +42 -0
- package/dist/bundle/command-server-entry-FXX4LJWF.js +171 -0
- package/dist/bundle/config-YKNM33J7.js +96 -0
- package/dist/bundle/{decode-7RP4HSVE.js → decode-SRGOOGBW.js} +6 -6
- package/dist/bundle/{dispatch-IZCAK47P.js → dispatch-OUHRPFUL.js} +11 -11
- package/dist/bundle/{dist-BFT2SUBV.js → dist-UZLNLAIO.js} +52 -31
- package/dist/bundle/{echarts-T2BSQ2YV.js → echarts-7CM2MCMW.js} +2 -2
- package/dist/bundle/{embed-BAS6YPDT.js → embed-VEE56BOB.js} +7 -7
- package/dist/bundle/{embedder-5XD5FCAO.js → embedder-SZFYR543.js} +10 -10
- package/dist/bundle/{failure-R2OIHCE5.js → failure-MZBNM7M5.js} +3 -3
- package/dist/bundle/first-run-KWC7RKF2.js +29 -0
- package/dist/bundle/first-screen-DWKMNSEI.js +40 -0
- package/dist/bundle/{folders-ZXTOFY4T.js → folders-UQXRSDJJ.js} +5 -5
- package/dist/bundle/{instructions-XZPROPKY.js → instructions-R7OHVAWH.js} +1 -1
- package/dist/bundle/{main-TZXKGL3L.js → main-EFUN2O3K.js} +21 -20
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-7KQUJNFN.js} +2 -2
- package/dist/bundle/{meetings-JB2ISPND.js → meetings-5I2BDNTA.js} +7 -7
- package/dist/bundle/{node-A3B3MJWX.js → node-3N2JGZ7V.js} +2 -2
- package/dist/bundle/{node-sqlite-QVWDLGDX.js → node-sqlite-2UVEE2WM.js} +11 -7
- package/dist/bundle/{oauth-YA6IYV4O.js → oauth-AYGD7UU3.js} +8 -8
- package/dist/bundle/{open-SY7TXJBS.js → open-3GUVDLGD.js} +6 -6
- package/dist/bundle/openai-NHCDLWWY.js +28 -0
- package/dist/bundle/{output-file-YGQYZCBJ.js → output-file-72JFXVHQ.js} +6 -6
- package/dist/bundle/{process-6HNBTJIY.js → process-YAHHUFR5.js} +1 -1
- package/dist/bundle/{program-77BUCJ4H.js → program-OSZROCTK.js} +97 -91
- package/dist/bundle/{prompt-YDG73YDS.js → prompt-HMCW4XQJ.js} +6 -6
- package/dist/bundle/{recognize-ECXDGTB7.js → recognize-VF5CA7EM.js} +5 -5
- package/dist/bundle/{remote-K4JHGBVJ.js → remote-5C6VTPR2.js} +10 -8
- package/dist/bundle/{rerank-IU2YYD4T.js → rerank-ER7NEDOI.js} +8 -8
- package/dist/bundle/run-log-JKTLKXSK.js +124 -0
- package/dist/bundle/{serve-3XWIF3HI.js → serve-QJWXJOM7.js} +10 -10
- package/dist/bundle/{server-56VYOHWP.js → server-KCIK3Y2P.js} +50 -48
- package/dist/bundle/server-LLGFDLLJ.js +75 -0
- package/dist/bundle/{services-X7IPEGQ5.js → services-LQMYJQG3.js} +62 -45
- package/dist/bundle/{speech-E2OBQWYA.js → speech-74GJQNQH.js} +20 -17
- package/dist/bundle/{state-4GMJYK4H.js → state-4XDGCHDF.js} +7 -7
- package/dist/bundle/{store-LA4TV4DM.js → store-5Y5HK2L2.js} +22 -19
- package/dist/bundle/{store-KPI7GB5Y.js → store-Y56AHJ2Y.js} +42 -27
- package/dist/bundle/store-connection-4WI32AYU.js +89 -0
- package/dist/bundle/store-maintenance-command-PCXO5AH4.js +65 -0
- package/dist/bundle/{streaming-EJ3NM2C2.js → streaming-E5CR6HSR.js} +7 -7
- package/dist/bundle/{tokens-BE6CJMR5.js → tokens-E2QNVC4F.js} +7 -7
- package/dist/bundle/zm.js +34 -10
- package/dist/bundle/{zoom-app-QEJBTIJ4.js → zoom-app-NVL7HEAX.js} +8 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- 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/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/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/{chunk-VOXIGICJ.js → chunk-YVNHQFLC.js} +0 -0
|
@@ -6,23 +6,26 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B3SILJBU.js";
|
|
10
10
|
import {
|
|
11
11
|
callerOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2MIBRVSV.js";
|
|
13
13
|
import {
|
|
14
14
|
failureContext
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KWURWGGB.js";
|
|
16
16
|
import {
|
|
17
17
|
QUERY_ARGUMENT,
|
|
18
18
|
lentConnection,
|
|
19
19
|
refuseLacking
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OY6N2ABP.js";
|
|
21
21
|
import {
|
|
22
22
|
onlineDeps,
|
|
23
23
|
servicesFor,
|
|
24
24
|
storeModeDeps
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5X4IY5JH.js";
|
|
26
|
+
import {
|
|
27
|
+
MAX_BUFFERED_INPUT
|
|
28
|
+
} from "./chunk-EFF2XBHP.js";
|
|
26
29
|
import {
|
|
27
30
|
DEFAULT_OUTPUT_BYTES,
|
|
28
31
|
ENTITIES,
|
|
@@ -37,39 +40,36 @@ import {
|
|
|
37
40
|
refuseStoreChange,
|
|
38
41
|
sealed,
|
|
39
42
|
startRecording
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-7OD3522V.js";
|
|
41
44
|
import {
|
|
42
45
|
currentCaller,
|
|
43
46
|
keepsSuccess,
|
|
44
47
|
runContextOf,
|
|
45
48
|
withCaller
|
|
46
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-QA6KIL7Q.js";
|
|
47
50
|
import {
|
|
48
51
|
authorityAllowed,
|
|
49
52
|
botApiAllowed,
|
|
50
53
|
keyForCommand,
|
|
51
54
|
levelFor,
|
|
52
55
|
readKeysForCommand
|
|
53
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-LA6QUVGQ.js";
|
|
54
57
|
import {
|
|
55
58
|
enclosingTraceId,
|
|
56
59
|
inRun,
|
|
57
60
|
newRunId,
|
|
58
61
|
traceOf
|
|
59
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-5MGICK47.js";
|
|
60
63
|
import {
|
|
61
64
|
storeDamaged
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import {
|
|
64
|
-
MAX_BUFFERED_INPUT
|
|
65
|
-
} from "./chunk-BBTQIVFP.js";
|
|
65
|
+
} from "./chunk-WZGKHTA4.js";
|
|
66
66
|
import {
|
|
67
67
|
queryDescription
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-63QXCE5Z.js";
|
|
69
69
|
import {
|
|
70
70
|
captureStreams,
|
|
71
71
|
traceIdOf
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-S7SXSHRC.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-UVZLK3M4.js";
|
|
112
112
|
import {
|
|
113
113
|
CliError,
|
|
114
114
|
errorCodes
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-ELJUBPY4.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.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/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.93.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"]),
|
|
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");
|
|
@@ -235,6 +235,18 @@ 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`"
|
|
238
250
|
}
|
|
239
251
|
]);
|
|
240
252
|
var baselineSchema = array(text);
|
|
@@ -248,7 +260,7 @@ var overrideSchema = strictObject({
|
|
|
248
260
|
});
|
|
249
261
|
var overridesSchema = array(overrideSchema);
|
|
250
262
|
|
|
251
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
263
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
264
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
253
265
|
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
266
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -293,11 +305,13 @@ var parityGroupSchema = strictObject({
|
|
|
293
305
|
/** Permanent differences, each with its reason; they count against the override budget of the group. */
|
|
294
306
|
differences: array(strictObject({
|
|
295
307
|
rule: word,
|
|
296
|
-
/** `<clis> <path> <flag>`; with `absent`, only `<path> <flag>`: the CLI list is whoever else
|
|
308
|
+
/** `<clis> <path> <flag>`; with `absent` or `only`, only `<path> <flag>`: the CLI list is whoever else was compared. */
|
|
297
309
|
target: text,
|
|
298
310
|
expected: optional(text),
|
|
299
311
|
/** The CLI that lacks the path or flag by design; the rest must agree, so other CLIs joining do not stale it. */
|
|
300
312
|
absent: optional(word),
|
|
313
|
+
/** The one CLI that has the path or flag by design; every other CLI compared must lack it. */
|
|
314
|
+
only: optional(word),
|
|
301
315
|
reason: pipe(text, minLength(10, "say why, in a sentence"))
|
|
302
316
|
}))
|
|
303
317
|
});
|
|
@@ -305,7 +319,8 @@ var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity
|
|
|
305
319
|
...duplicates(groups.map((group) => group.name)).map((name) => `"${name}" is listed twice`),
|
|
306
320
|
...groups.flatMap((group) => [
|
|
307
321
|
...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
|
|
322
|
+
...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\``),
|
|
323
|
+
...group.differences.filter((entry) => entry.absent && entry.only).map((entry) => `${group.name}: "${entry.target}" has both \`absent\` and \`only\`; keep one`)
|
|
309
324
|
])
|
|
310
325
|
]), "defineParityGroups");
|
|
311
326
|
var MEMO_HAS_NO_PROFILES = [
|
|
@@ -320,13 +335,19 @@ var MEMO_HAS_NO_PROFILES = [
|
|
|
320
335
|
absent: "memo",
|
|
321
336
|
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
337
|
}));
|
|
338
|
+
var MEMO_DOCTOR_DEEP = {
|
|
339
|
+
rule: "same-path-contract",
|
|
340
|
+
target: "doctor --deep",
|
|
341
|
+
only: "memo",
|
|
342
|
+
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"
|
|
343
|
+
};
|
|
323
344
|
var PARITY_GROUPS = defineParityGroups([
|
|
324
345
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
|
|
325
346
|
{
|
|
326
347
|
name: "all",
|
|
327
348
|
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
328
349
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
|
|
329
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
350
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
330
351
|
},
|
|
331
352
|
// mail's `search messages` is cli-core's mail search, not the messengers' command: --complete took their 20-odd
|
|
332
353
|
// differences as inherited (https://github.com/WireCatLabs/cli-base/issues/390). mail is compared everywhere else
|
|
@@ -335,7 +356,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
335
356
|
name: "mail-shared",
|
|
336
357
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
|
|
337
358
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "notes", "meetings"],
|
|
338
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
359
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
339
360
|
},
|
|
340
361
|
// gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
|
|
341
362
|
// CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
|
|
@@ -351,7 +372,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
351
372
|
name: "shared-roots",
|
|
352
373
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
|
|
353
374
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
354
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
375
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
355
376
|
}
|
|
356
377
|
]);
|
|
357
378
|
var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
|
|
@@ -365,7 +386,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
365
386
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
366
387
|
]);
|
|
367
388
|
|
|
368
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
389
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
390
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
370
391
|
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
392
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -381,7 +402,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
381
402
|
}
|
|
382
403
|
]);
|
|
383
404
|
|
|
384
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
405
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
406
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
386
407
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
387
408
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -403,7 +424,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
403
424
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
404
425
|
]);
|
|
405
426
|
|
|
406
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
427
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
428
|
var CALENDAR_FLAGS = [
|
|
408
429
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
409
430
|
{
|
|
@@ -411,14 +432,14 @@ var CALENDAR_FLAGS = [
|
|
|
411
432
|
value: "<date>",
|
|
412
433
|
role: "value",
|
|
413
434
|
type: "time",
|
|
414
|
-
meaning: "the first day of something that lasts whole days, such as an all-day event"
|
|
435
|
+
meaning: "the first day of something that lasts whole days, such as an all-day event or a contract"
|
|
415
436
|
},
|
|
416
437
|
{
|
|
417
438
|
name: "--end-date",
|
|
418
439
|
value: "<date>",
|
|
419
440
|
role: "value",
|
|
420
441
|
type: "time",
|
|
421
|
-
meaning: "the last day of something that lasts whole days, such as an all-day event"
|
|
442
|
+
meaning: "the last day of something that lasts whole days, such as an all-day event or a contract"
|
|
422
443
|
},
|
|
423
444
|
{ name: "--location", value: "<text>", role: "value", type: "string", meaning: "where it takes place" },
|
|
424
445
|
{
|
|
@@ -477,7 +498,7 @@ var CALENDAR_FLAGS = [
|
|
|
477
498
|
}
|
|
478
499
|
];
|
|
479
500
|
|
|
480
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
501
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
502
|
var CRM_FLAGS = [
|
|
482
503
|
{
|
|
483
504
|
name: "--pipeline",
|
|
@@ -508,16 +529,126 @@ var CRM_FLAGS = [
|
|
|
508
529
|
type: "time",
|
|
509
530
|
meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
|
|
510
531
|
},
|
|
532
|
+
{
|
|
533
|
+
name: "--position",
|
|
534
|
+
value: "<title>",
|
|
535
|
+
role: "value",
|
|
536
|
+
type: "string",
|
|
537
|
+
meaning: "a person's job title on a relationship, stored as position; never the role"
|
|
538
|
+
},
|
|
511
539
|
{
|
|
512
540
|
name: "--owner",
|
|
513
541
|
value: "<user>",
|
|
514
542
|
role: "value",
|
|
515
543
|
type: "id",
|
|
516
544
|
meaning: "the CRM user a record is assigned to, by the CRM's id"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
name: "--status",
|
|
548
|
+
value: "<state>",
|
|
549
|
+
role: "value",
|
|
550
|
+
type: "choice",
|
|
551
|
+
meaning: "the state to put it in; the command lists the states"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
name: "--product",
|
|
555
|
+
value: "<product>",
|
|
556
|
+
role: "value",
|
|
557
|
+
type: "string",
|
|
558
|
+
meaning: "a product or service the owner sells or buys: product:<id>"
|
|
559
|
+
},
|
|
560
|
+
{ name: "--contract", value: "<contract>", role: "value", type: "string", meaning: "a contract: contract:<id>" },
|
|
561
|
+
{ name: "--payment", value: "<payment>", role: "value", type: "string", meaning: "a payment: payment:<id>" },
|
|
562
|
+
{
|
|
563
|
+
name: "--refund-of",
|
|
564
|
+
value: "<payment>",
|
|
565
|
+
role: "value",
|
|
566
|
+
type: "string",
|
|
567
|
+
meaning: "the payment this one gives money back for: payment:<id>"
|
|
568
|
+
},
|
|
569
|
+
{ name: "--wallet", value: "<wallet>", role: "value", type: "string", meaning: "a wallet: wallet:<id>" },
|
|
570
|
+
{
|
|
571
|
+
name: "--supplier",
|
|
572
|
+
value: "<party>",
|
|
573
|
+
role: "value",
|
|
574
|
+
type: "string",
|
|
575
|
+
meaning: "who supplies it: person:<uid> or organization:<id>"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
name: "--customer",
|
|
579
|
+
value: "<party>",
|
|
580
|
+
role: "value",
|
|
581
|
+
type: "string",
|
|
582
|
+
meaning: "who receives it and pays for it: person:<uid> or organization:<id>"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
name: "--trial-end-date",
|
|
586
|
+
value: "<date>",
|
|
587
|
+
role: "value",
|
|
588
|
+
type: "time",
|
|
589
|
+
meaning: "the day a free trial ends, YYYY-MM-DD"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
name: "--notice-days",
|
|
593
|
+
value: "<days>",
|
|
594
|
+
role: "value",
|
|
595
|
+
type: "count",
|
|
596
|
+
meaning: "how many days before its end a party must say it will not go on",
|
|
597
|
+
unit: "days"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
name: "--auto-renew",
|
|
601
|
+
value: "<on|off>",
|
|
602
|
+
role: "value",
|
|
603
|
+
type: "choice",
|
|
604
|
+
meaning: "it renews by itself at its end, or it does not"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
name: "--period",
|
|
608
|
+
value: "<count-unit>",
|
|
609
|
+
role: "value",
|
|
610
|
+
type: "duration",
|
|
611
|
+
meaning: "how often a charge repeats: a count and a calendar unit, such as 1-month"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
name: "--opening-balance",
|
|
615
|
+
value: "<decimal>",
|
|
616
|
+
role: "value",
|
|
617
|
+
type: "string",
|
|
618
|
+
meaning: "the money it held on --opening-date, as a decimal such as 1500.50; later movements count from it"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
name: "--opening-date",
|
|
622
|
+
value: "<date>",
|
|
623
|
+
role: "value",
|
|
624
|
+
type: "time",
|
|
625
|
+
meaning: "the day of the opening balance, YYYY-MM-DD"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
name: "--institution",
|
|
629
|
+
value: "<text>",
|
|
630
|
+
role: "value",
|
|
631
|
+
type: "string",
|
|
632
|
+
meaning: "the bank or other company that holds it, by name"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
name: "--unit",
|
|
636
|
+
value: "<text>",
|
|
637
|
+
role: "value",
|
|
638
|
+
type: "string",
|
|
639
|
+
meaning: "what one of it is counted in, such as hour or piece"
|
|
640
|
+
},
|
|
641
|
+
{ name: "--sku", value: "<code>", role: "value", type: "string", meaning: "the stock code the seller gives it" },
|
|
642
|
+
{
|
|
643
|
+
name: "--archived",
|
|
644
|
+
value: "<on|off>",
|
|
645
|
+
role: "value",
|
|
646
|
+
type: "choice",
|
|
647
|
+
meaning: "set it aside as no longer in use, or bring it back; what points at it keeps pointing at it"
|
|
517
648
|
}
|
|
518
649
|
];
|
|
519
650
|
|
|
520
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
651
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
652
|
var HOW_FLAGS = [
|
|
522
653
|
{
|
|
523
654
|
name: "--limit",
|
|
@@ -751,6 +882,7 @@ var HOW_FLAGS = [
|
|
|
751
882
|
type: "switch",
|
|
752
883
|
meaning: "record the action as the owner's although an agent's terminal runs the tool"
|
|
753
884
|
},
|
|
885
|
+
{ name: "--from-app", role: "mode", type: "switch", meaning: "the owner acted in the app; its word, not a check" },
|
|
754
886
|
{
|
|
755
887
|
name: "--allow-any-file",
|
|
756
888
|
role: "mode",
|
|
@@ -802,6 +934,7 @@ var HOW_FLAGS = [
|
|
|
802
934
|
replaces: ["--expected"]
|
|
803
935
|
},
|
|
804
936
|
{ name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
|
|
937
|
+
{ name: "--with-muted", role: "mode", type: "switch", meaning: "also read the chats the owner muted" },
|
|
805
938
|
{
|
|
806
939
|
name: "--for-everyone",
|
|
807
940
|
role: "mode",
|
|
@@ -1094,6 +1227,7 @@ var HOW_FLAGS = [
|
|
|
1094
1227
|
{ name: "--retract", role: "action", type: "switch", meaning: "take the owner's vote back" },
|
|
1095
1228
|
{ name: "--revoke", role: "action", type: "switch", meaning: "forget every login given to a browser app" },
|
|
1096
1229
|
{ name: "--track", role: "action", type: "switch", meaning: "also do it daily while serve runs" },
|
|
1230
|
+
{ name: "--undo", role: "mode", type: "switch", meaning: "put back what the last change replaced, not a new value" },
|
|
1097
1231
|
{
|
|
1098
1232
|
name: "--transcribe",
|
|
1099
1233
|
role: "action",
|
|
@@ -1512,7 +1646,39 @@ var HOW_FLAGS = [
|
|
|
1512
1646
|
}
|
|
1513
1647
|
];
|
|
1514
1648
|
|
|
1515
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1649
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
|
|
1650
|
+
var KNOWLEDGE_FLAGS = [
|
|
1651
|
+
{
|
|
1652
|
+
name: "--quote",
|
|
1653
|
+
value: "<ref=words...>",
|
|
1654
|
+
role: "value",
|
|
1655
|
+
type: "list",
|
|
1656
|
+
meaning: "the words an --evidence reference says that a record rests on, as <ref>=<words>, one per reference"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
name: "--suggest",
|
|
1660
|
+
value: "<text>",
|
|
1661
|
+
role: "value",
|
|
1662
|
+
type: "string",
|
|
1663
|
+
meaning: "wording offered for the owner to take or leave; it decides nothing"
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
name: "--keep-copy",
|
|
1667
|
+
role: "mode",
|
|
1668
|
+
type: "switch",
|
|
1669
|
+
meaning: "keep a copy of the original file as well as its text"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
name: "--max-chars",
|
|
1673
|
+
value: "<n>",
|
|
1674
|
+
role: "budget",
|
|
1675
|
+
type: "count",
|
|
1676
|
+
meaning: "at most this many characters read",
|
|
1677
|
+
unit: "characters"
|
|
1678
|
+
}
|
|
1679
|
+
];
|
|
1680
|
+
|
|
1681
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
1682
|
var MAIL_FLAGS = [
|
|
1517
1683
|
{
|
|
1518
1684
|
name: "--cc",
|
|
@@ -1542,7 +1708,7 @@ var MAIL_FLAGS = [
|
|
|
1542
1708
|
}
|
|
1543
1709
|
];
|
|
1544
1710
|
|
|
1545
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1711
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
1712
|
var PRIVACY_FLAGS = [
|
|
1547
1713
|
{
|
|
1548
1714
|
name: "--about-text",
|
|
@@ -1603,8 +1769,15 @@ var PRIVACY_FLAGS = [
|
|
|
1603
1769
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1604
1770
|
];
|
|
1605
1771
|
|
|
1606
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1772
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
1773
|
var SCHEDULE_FLAGS = [
|
|
1774
|
+
{
|
|
1775
|
+
name: "--locale",
|
|
1776
|
+
value: "<code>",
|
|
1777
|
+
role: "target",
|
|
1778
|
+
type: "string",
|
|
1779
|
+
meaning: "a human language, as an ISO 639-1 code such as en or ru: which language's version it acts on"
|
|
1780
|
+
},
|
|
1608
1781
|
{
|
|
1609
1782
|
name: "--notify-on",
|
|
1610
1783
|
value: "<when>",
|
|
@@ -1629,7 +1802,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1629
1802
|
}
|
|
1630
1803
|
];
|
|
1631
1804
|
|
|
1632
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1805
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
1806
|
var WHAT_FLAGS = [
|
|
1634
1807
|
{
|
|
1635
1808
|
name: "--analysis-provider",
|
|
@@ -1645,6 +1818,13 @@ var WHAT_FLAGS = [
|
|
|
1645
1818
|
type: "choice",
|
|
1646
1819
|
meaning: "who computes embeddings: a local model or a configured remote model service"
|
|
1647
1820
|
},
|
|
1821
|
+
{
|
|
1822
|
+
name: "--region",
|
|
1823
|
+
value: "<country>",
|
|
1824
|
+
role: "mode",
|
|
1825
|
+
type: "string",
|
|
1826
|
+
meaning: "the two-letter country code, such as ru, that phone numbers written without + are read in"
|
|
1827
|
+
},
|
|
1648
1828
|
{
|
|
1649
1829
|
name: "--consent-provider",
|
|
1650
1830
|
value: "<identity>",
|
|
@@ -2173,7 +2353,13 @@ var WHAT_FLAGS = [
|
|
|
2173
2353
|
meaning: "who joins by the link asks first, and an admin lets them in"
|
|
2174
2354
|
},
|
|
2175
2355
|
{ name: "--can", value: "<rights>", role: "value", type: "list", meaning: "what an admin may do, comma-separated" },
|
|
2176
|
-
{
|
|
2356
|
+
{
|
|
2357
|
+
name: "--channel",
|
|
2358
|
+
role: "value",
|
|
2359
|
+
type: "switch",
|
|
2360
|
+
otherValues: ["channel"],
|
|
2361
|
+
meaning: "a channel instead of a group (a switch), or what a message is written for (<channel>), such as email"
|
|
2362
|
+
},
|
|
2177
2363
|
{
|
|
2178
2364
|
name: "--certainty",
|
|
2179
2365
|
value: "<n>",
|
|
@@ -2382,7 +2568,7 @@ var WHAT_FLAGS = [
|
|
|
2382
2568
|
value: "<file>",
|
|
2383
2569
|
role: "value",
|
|
2384
2570
|
type: "path",
|
|
2385
|
-
meaning: "a file to send with
|
|
2571
|
+
meaning: "a file it reads: one to send with a message, the text its caption, or the new text of a write"
|
|
2386
2572
|
},
|
|
2387
2573
|
{
|
|
2388
2574
|
name: "--filename",
|
|
@@ -2426,7 +2612,15 @@ var WHAT_FLAGS = [
|
|
|
2426
2612
|
meaning: "what kind of thing it is; the command lists the kinds"
|
|
2427
2613
|
},
|
|
2428
2614
|
{ name: "--name", value: "<name>", role: "value", type: "string", meaning: "the name to give it" },
|
|
2615
|
+
{
|
|
2616
|
+
name: "--button",
|
|
2617
|
+
value: "<text=data>",
|
|
2618
|
+
role: "value",
|
|
2619
|
+
type: "string",
|
|
2620
|
+
meaning: "an inline button under a message: its text, then the data a press sends back; repeat for more in one row"
|
|
2621
|
+
},
|
|
2429
2622
|
{ name: "--no-approval", role: "value", type: "switch", meaning: "anyone with the link joins at once" },
|
|
2623
|
+
{ name: "--no-buttons", role: "value", type: "switch", meaning: "take the buttons off the message" },
|
|
2430
2624
|
{
|
|
2431
2625
|
name: "--notification",
|
|
2432
2626
|
value: "<text>",
|
|
@@ -2461,6 +2655,13 @@ var WHAT_FLAGS = [
|
|
|
2461
2655
|
},
|
|
2462
2656
|
{ name: "--remind-time", value: "<time>", role: "value", type: "time", meaning: "when to look at it again" },
|
|
2463
2657
|
{ name: "--role", value: "<role>", role: "value", type: "string", meaning: "the part it plays, in a word or two" },
|
|
2658
|
+
{
|
|
2659
|
+
name: "--label",
|
|
2660
|
+
value: "<label>",
|
|
2661
|
+
role: "value",
|
|
2662
|
+
type: "string",
|
|
2663
|
+
meaning: "a human-readable label for an id, such as the name shown for a custom relationship role"
|
|
2664
|
+
},
|
|
2464
2665
|
{
|
|
2465
2666
|
name: "--scope",
|
|
2466
2667
|
value: "<scope>",
|
|
@@ -2591,7 +2792,7 @@ var WHAT_FLAGS = [
|
|
|
2591
2792
|
}
|
|
2592
2793
|
];
|
|
2593
2794
|
|
|
2594
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2795
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
2796
|
var FLAG_TYPES = [
|
|
2596
2797
|
"switch",
|
|
2597
2798
|
"count",
|
|
@@ -2679,6 +2880,7 @@ var defineVocabulary = /* @__PURE__ */ __name((input) => parseRegistry("vocabula
|
|
|
2679
2880
|
var verbs = [
|
|
2680
2881
|
["list", "show many"],
|
|
2681
2882
|
["show", "show one"],
|
|
2883
|
+
["browse", "list one level of a remote hierarchy, such as a provider's folders, to choose from; reads only"],
|
|
2682
2884
|
["search", "find by text; the description says where it looks"],
|
|
2683
2885
|
["prepare", "assemble bounded cited context for a selected upcoming activity without applying findings"],
|
|
2684
2886
|
["related", "what is nearest in meaning to one thing, without a query"],
|
|
@@ -2686,6 +2888,7 @@ var verbs = [
|
|
|
2686
2888
|
["status", "how a thing stands right now"],
|
|
2687
2889
|
["check", "verify, and change nothing; the answer says what is wrong and how to fix it"],
|
|
2688
2890
|
["test", "run rules over what is already stored and say what they would have done, doing none of it"],
|
|
2891
|
+
["preview", "render what would be sent or written, from what is stored or a draft; sends and saves nothing"],
|
|
2689
2892
|
["apply", "run the owner's saved rules over what is already stored and change what they match; dry run unless --yes"],
|
|
2690
2893
|
["scan", "read stored messages for what a rule finds, such as tasks, and list it; records it only with --yes"],
|
|
2691
2894
|
["pause", "stop what a running process does for a profile, without stopping the process"],
|
|
@@ -2709,7 +2912,7 @@ var verbs = [
|
|
|
2709
2912
|
["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
|
|
2710
2913
|
["install", "install a system unit"],
|
|
2711
2914
|
["uninstall", "remove a system unit"],
|
|
2712
|
-
["cancel", "stop a job
|
|
2915
|
+
["cancel", "stop a job, a pending thing or a subscription"],
|
|
2713
2916
|
[
|
|
2714
2917
|
"sync",
|
|
2715
2918
|
"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 +2935,10 @@ var verbs = [
|
|
|
2732
2935
|
// Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
|
|
2733
2936
|
["link", "record that two identities are one person"],
|
|
2734
2937
|
["unlink", "undo a link"],
|
|
2938
|
+
[
|
|
2939
|
+
"match",
|
|
2940
|
+
"link each waiting record to the thing its identifiers name, such as a person by e-mail address; a name alone never matches"
|
|
2941
|
+
],
|
|
2735
2942
|
["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
|
|
2736
2943
|
["lookup", "ask the messenger who is behind a phone number"],
|
|
2737
2944
|
[
|
|
@@ -2768,6 +2975,7 @@ var verbs = [
|
|
|
2768
2975
|
["assign", "name the person responsible for work, with their task role"],
|
|
2769
2976
|
["reverse", "record that an accepted decision no longer holds, without replacing it"],
|
|
2770
2977
|
["invalidate", "mark a derived record whose supporting evidence no longer holds"],
|
|
2978
|
+
["challenge", "say a record no longer holds, citing what contradicts it; it only proposes, and the owner decides"],
|
|
2771
2979
|
["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
|
|
2772
2980
|
["confirm", "the owner accepts what an agent proposed"],
|
|
2773
2981
|
["reject", "the owner refuses what an agent proposed"],
|
|
@@ -2817,6 +3025,7 @@ var collections = [
|
|
|
2817
3025
|
["topics", "forum topics in a group"],
|
|
2818
3026
|
["models", "local or remote models"],
|
|
2819
3027
|
["tags", "labels the owner puts on things"],
|
|
3028
|
+
["groups", "account groups: the accounts a run in a group reads, such as work and personal (WC-ACCT-13)"],
|
|
2820
3029
|
["searches", "the owner's saved searches"],
|
|
2821
3030
|
["copies", "tables kept aside by a repair"],
|
|
2822
3031
|
["tables", "the tables of the local store, with their kind, row count and size"],
|
|
@@ -2827,6 +3036,7 @@ var collections = [
|
|
|
2827
3036
|
["tracking", "the chats whose member lists are fetched daily"],
|
|
2828
3037
|
["documents", "files imported from Google Drive or Docs, or linked in a chat"],
|
|
2829
3038
|
["notes", "text the owner writes, or files from a notes folder"],
|
|
3039
|
+
["sources", "what the owner adds by hand to read from: a file, a web page or a pasted text, kept as its text"],
|
|
2830
3040
|
["projects", "the owner's work units with a task key"],
|
|
2831
3041
|
[
|
|
2832
3042
|
"annotations",
|
|
@@ -2844,7 +3054,14 @@ var collections = [
|
|
|
2844
3054
|
["leads", "possible customers not yet qualified into a deal"],
|
|
2845
3055
|
["pipelines", "ordered sets of stages a deal moves through"],
|
|
2846
3056
|
["stages", "steps of a pipeline, each open, won or lost"],
|
|
2847
|
-
["products", "goods and services the owner sells, with their prices"],
|
|
3057
|
+
["products", "goods and services the owner sells or buys, with their prices"],
|
|
3058
|
+
["lines", "the rows of an order or an invoice: what, how many and at what price"],
|
|
3059
|
+
["contracts", "agreements the owner is a party to, with their terms, dates and renewal"],
|
|
3060
|
+
["subscriptions", "charges that repeat on a schedule, which the owner pays or is paid, with their price history"],
|
|
3061
|
+
["prices", "what a thing costs over time, each price from its start date"],
|
|
3062
|
+
["wallets", "places that hold the owner's money, such as a bank account, a card or cash"],
|
|
3063
|
+
["transactions", "money that moved in or out of a wallet, as the bank or the owner recorded it"],
|
|
3064
|
+
["splits", "parts of one transaction, each with its own amount and category"],
|
|
2848
3065
|
["users", "people who work in the owner's account at a service, such as a CRM's employees"],
|
|
2849
3066
|
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
2850
3067
|
[
|
|
@@ -2854,6 +3071,7 @@ var collections = [
|
|
|
2854
3071
|
["facts", "what happened, with evidence"],
|
|
2855
3072
|
["memories", "what an agent concluded, with evidence and scope"],
|
|
2856
3073
|
["relationships", "confirmed or suggested links between people, organizations and projects"],
|
|
3074
|
+
["roles", "the parts a person plays in a relationship, built in or the owner's own"],
|
|
2857
3075
|
["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
|
|
2858
3076
|
["files", "files in the source, such as Google Drive, read and changed there"],
|
|
2859
3077
|
["comments", "comments people left on a thing in the source: a channel post or a file"],
|
|
@@ -2984,12 +3202,13 @@ var VOCABULARY = defineVocabulary({
|
|
|
2984
3202
|
...PRIVACY_FLAGS,
|
|
2985
3203
|
...CALENDAR_FLAGS,
|
|
2986
3204
|
...MAIL_FLAGS,
|
|
3205
|
+
...KNOWLEDGE_FLAGS,
|
|
2987
3206
|
...CRM_FLAGS,
|
|
2988
3207
|
...SCHEDULE_FLAGS
|
|
2989
3208
|
]
|
|
2990
3209
|
});
|
|
2991
3210
|
|
|
2992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2993
3212
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2994
3213
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2995
3214
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3099,6 +3318,9 @@ var fieldsOf = /* @__PURE__ */ __name((info, { omit = [], offline = false, stdin
|
|
|
3099
3318
|
}, "fieldsOf");
|
|
3100
3319
|
var schemaOf = /* @__PURE__ */ __name((fields) => object(Object.fromEntries(fields.map((field) => [field.name, field.required ? field.schema : optional(field.schema)]))), "schemaOf");
|
|
3101
3320
|
var startsWith = /* @__PURE__ */ __name((path, prefix) => prefix.every((word2, at) => path[at] === word2), "startsWith");
|
|
3321
|
+
var keywordsOf = /* @__PURE__ */ __name((examples) => [
|
|
3322
|
+
...new Set(examples.flatMap((example) => example.split(/\s+/u).filter((word2) => word2 !== "" && !word2.startsWith("-"))))
|
|
3323
|
+
], "keywordsOf");
|
|
3102
3324
|
var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
|
|
3103
3325
|
const { root = [], exclude = [], levels, keyOf, authority, readOnly = false, permissions } = options;
|
|
3104
3326
|
return flatten(commands).filter((info) => (
|
|
@@ -3110,6 +3332,7 @@ var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
|
|
|
3110
3332
|
path: info.path,
|
|
3111
3333
|
title: info.summary ?? info.description,
|
|
3112
3334
|
description: info.description,
|
|
3335
|
+
...info.examples?.length ? { keywords: keywordsOf(info.examples) } : {},
|
|
3113
3336
|
writes: writes(info.effects) && options.fetchOnly?.(info.path) !== true,
|
|
3114
3337
|
input: schemaOf(fieldsOf(info, options)),
|
|
3115
3338
|
...info.output ? { output: info.output } : {}
|
|
@@ -3212,7 +3435,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3212
3435
|
}
|
|
3213
3436
|
}, "runCommandForAgent");
|
|
3214
3437
|
|
|
3215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3216
3439
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3217
3440
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3218
3441
|
var message = pipe(
|
|
@@ -3471,20 +3694,65 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3471
3694
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3472
3695
|
}, "failed");
|
|
3473
3696
|
|
|
3474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3475
3698
|
import { randomUUID } from "node:crypto";
|
|
3476
3699
|
var MATCHES = 8;
|
|
3477
3700
|
var ANSWER = answerSchema();
|
|
3701
|
+
var agentAnswer = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
3702
|
+
const meta = pipe(looseObject({}), description(`run facts; ${prefix}_tools_search shows the full answer`));
|
|
3703
|
+
const next = optional(pipe(array(looseObject({})), description("steps to run next: command and args")));
|
|
3704
|
+
return looseObject(writes2 ? { item: optional(unknown()), next, meta } : {
|
|
3705
|
+
items: optional(array(unknown())),
|
|
3706
|
+
item: optional(unknown()),
|
|
3707
|
+
page: optional(looseObject({ has_more: boolean() })),
|
|
3708
|
+
next,
|
|
3709
|
+
missing: optional(array(looseObject({ field: string(), why: string() }))),
|
|
3710
|
+
meta
|
|
3711
|
+
});
|
|
3712
|
+
}, "agentAnswer");
|
|
3713
|
+
var listedAs = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
3714
|
+
const checked = toStandardJsonSchema(ANSWER);
|
|
3715
|
+
const shown = toStandardJsonSchema(agentAnswer(prefix, writes2))["~standard"].jsonSchema;
|
|
3716
|
+
return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
|
|
3717
|
+
}, "listedAs");
|
|
3478
3718
|
var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
|
|
3479
|
-
var
|
|
3719
|
+
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(" "));
|
|
3720
|
+
var wordsOf = /* @__PURE__ */ __name((text3) => text3.toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), "wordsOf");
|
|
3721
|
+
var stem = /* @__PURE__ */ __name((word2) => {
|
|
3722
|
+
const bare = word2.replace(/'s$/u, "");
|
|
3723
|
+
if (bare.length > 4 && bare.endsWith("ies"))
|
|
3724
|
+
return `${bare.slice(0, -3)}y`;
|
|
3725
|
+
for (const ending of ["ing", "ed", "es", "s"])
|
|
3726
|
+
if (bare.length - ending.length >= 3 && bare.endsWith(ending))
|
|
3727
|
+
return bare.slice(0, -ending.length);
|
|
3728
|
+
return bare;
|
|
3729
|
+
}, "stem");
|
|
3730
|
+
var sameWord = /* @__PURE__ */ __name((asked, known) => {
|
|
3731
|
+
if (asked === known)
|
|
3732
|
+
return true;
|
|
3733
|
+
const [short, long] = asked.length <= known.length ? [asked, known] : [known, asked];
|
|
3734
|
+
return short.length >= 3 && long.startsWith(short);
|
|
3735
|
+
}, "sameWord");
|
|
3736
|
+
var fieldsOf2 = /* @__PURE__ */ __name((command, one) => [
|
|
3737
|
+
[4, [...wordsOf(command), ...(one.aliases ?? []).flatMap(wordsOf)]],
|
|
3738
|
+
[2, wordsOf(one.title)],
|
|
3739
|
+
[1, [...wordsOf(one.description), ...(one.keywords ?? []).flatMap(wordsOf), ...Object.keys(one.input.entries)]]
|
|
3740
|
+
].map(([weight, words]) => [weight, [...new Set(words.map(stem))]]), "fieldsOf");
|
|
3480
3741
|
var search = /* @__PURE__ */ __name((commands, query) => {
|
|
3481
|
-
const
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3742
|
+
const named = normal(query);
|
|
3743
|
+
const all = Object.entries(commands);
|
|
3744
|
+
if (!named)
|
|
3745
|
+
return all.map((entry) => entry).sort((a, b) => a[0].localeCompare(b[0]));
|
|
3746
|
+
const words = [
|
|
3747
|
+
...new Set(wordsOf(query).filter((word2) => word2.length > 1 && !STOP_WORDS.has(word2)).map(stem))
|
|
3748
|
+
];
|
|
3749
|
+
return all.map((entry) => {
|
|
3750
|
+
const fields = fieldsOf2(entry[0], entry[1]);
|
|
3751
|
+
const weights = words.map((word2) => fields.reduce((best, [weight, known]) => known.some((one) => sameWord(word2, one)) ? Math.max(best, weight) : best, 0));
|
|
3752
|
+
const matched = weights.filter((weight) => weight > 0).length;
|
|
3753
|
+
const exact = normal(entry[0]) === named || (entry[1].aliases ?? []).some((alias) => normal(alias) === named);
|
|
3754
|
+
return { entry, matched, rank: (exact ? 1e3 : 0) + matched * 10 + weights.reduce((a, b) => a + b, 0) };
|
|
3755
|
+
}).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
3756
|
}, "search");
|
|
3489
3757
|
var nearest = /* @__PURE__ */ __name((commands, asked) => {
|
|
3490
3758
|
const words = normal(asked).split(" ");
|
|
@@ -3579,7 +3847,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3579
3847
|
arguments: optional(pipe(record(string(), unknown()), description("that command's arguments")))
|
|
3580
3848
|
});
|
|
3581
3849
|
server.registerTool(`${prefix}_read`, {
|
|
3582
|
-
outputSchema:
|
|
3850
|
+
outputSchema: listedAs(prefix, false),
|
|
3583
3851
|
title: "Run a reading command",
|
|
3584
3852
|
description: `Run one command that only reads, with the arguments ${prefix}_tools_search showed. ${untrusted}`,
|
|
3585
3853
|
inputSchema: toStandardJsonSchema(call),
|
|
@@ -3587,7 +3855,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3587
3855
|
}, runner(false));
|
|
3588
3856
|
if (Object.values(commands).some((one) => one.writes))
|
|
3589
3857
|
server.registerTool(`${prefix}_write`, {
|
|
3590
|
-
outputSchema:
|
|
3858
|
+
outputSchema: listedAs(prefix, true),
|
|
3591
3859
|
title: "Run a writing command",
|
|
3592
3860
|
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
3861
|
inputSchema: toStandardJsonSchema(call),
|