@wirecat/mail-cli 0.24.0 → 0.26.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/CHANGELOG.md +48 -0
- package/README.md +3 -0
- package/contracts/wirecat.json +1325 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bin/mail.js.map +1 -1
- package/dist/bundle/{all-profiles-VS7P6DJY.js → all-profiles-6NXVQLUQ.js} +11 -11
- package/dist/bundle/{anthropic-C5JXKGBS.js → anthropic-OLNFE2CL.js} +17 -10
- package/dist/bundle/{app-server-HU3LVU42.js → app-server-J76N6XIK.js} +60 -49
- package/dist/bundle/{bun-QLFX47WZ.js → bun-6PYDHXNR.js} +2 -2
- package/dist/bundle/{bun-sqlite-W4PGAKVY.js → bun-sqlite-QD5PFHPS.js} +9 -5
- package/dist/bundle/{chunk-WOX7FZJP.js → chunk-2E2EV4HD.js} +130 -77
- package/dist/bundle/{chunk-A6J4MPTI.js → chunk-2TCS4PLJ.js} +1 -1
- package/dist/bundle/{chunk-QI3PXUOJ.js → chunk-3J2UJFBJ.js} +39 -32
- package/dist/bundle/{chunk-LVGX7VTD.js → chunk-3RY4HC4V.js} +63 -5
- package/dist/bundle/chunk-3XTKQ5EM.js +54 -0
- package/dist/bundle/{chunk-ZO4MQWIK.js → chunk-4Q6KAV4O.js} +8 -8
- package/dist/bundle/{chunk-JOQGJUFT.js → chunk-52M5BAEG.js} +1 -1
- package/dist/bundle/{chunk-Q4OKEN3B.js → chunk-5WROIMUV.js} +12 -7
- package/dist/bundle/{chunk-VVL4MKYH.js → chunk-66C66FNK.js} +1 -1
- package/dist/bundle/{chunk-O373QEAJ.js → chunk-76EKZSDK.js} +27 -27
- package/dist/bundle/{chunk-AUTX2MLF.js → chunk-76VSHS5Y.js} +15 -10
- package/dist/bundle/{chunk-HBZAJINU.js → chunk-7C6FGWDH.js} +4 -4
- package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-FNLUKODV.js → chunk-7MEVD5PI.js} +57 -28
- package/dist/bundle/chunk-A3EBRXOQ.js +16 -0
- package/dist/bundle/{chunk-C3NYJW6B.js → chunk-A6XETABW.js} +852 -278
- package/dist/bundle/{chunk-VNKWSCN7.js → chunk-AJ5K74X6.js} +17 -17
- package/dist/bundle/{chunk-BFQQV22T.js → chunk-BDYQQ6G2.js} +1 -1
- package/dist/bundle/{chunk-ZR2BDNGG.js → chunk-BMGRDZM3.js} +1 -1
- package/dist/bundle/{chunk-TLEBSMC7.js → chunk-CFBIPM7T.js} +4109 -3575
- package/dist/bundle/{chunk-IRUN4XOV.js → chunk-CZI45AQM.js} +2 -2
- package/dist/bundle/{chunk-QVMOEB3I.js → chunk-DKIVYAXW.js} +18 -17
- package/dist/bundle/{chunk-X7J3TTDO.js → chunk-ECZSYLSL.js} +48 -9
- package/dist/bundle/{chunk-EKGRNFYQ.js → chunk-EDWJ7IYH.js} +1 -1
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-5X3GU5LI.js → chunk-GIG7F6UW.js} +6 -6
- package/dist/bundle/{chunk-RN7OI5KL.js → chunk-H2IJQH5X.js} +20 -112
- package/dist/bundle/{chunk-NWKKPDZV.js → chunk-HI5XUETY.js} +2 -2
- package/dist/bundle/{chunk-YBQ5AYLZ.js → chunk-HNSBXC6U.js} +3 -3
- package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-PT6MF2VU.js → chunk-JNKXU7AE.js} +340 -108
- package/dist/bundle/{chunk-64ZG5ERD.js → chunk-JVJG54QK.js} +40 -2
- package/dist/bundle/{chunk-KGOVFEWZ.js → chunk-KXASCNOV.js} +3 -3
- package/dist/bundle/{chunk-5NLHDK7P.js → chunk-LMTQMYUF.js} +31 -31
- package/dist/bundle/{chunk-Q6K2XUGU.js → chunk-LTZGLOKE.js} +3 -2
- package/dist/bundle/{chunk-RLQZFZLK.js → chunk-M2LATBP2.js} +84 -10
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-H5FJTHVA.js → chunk-M4Y33SJJ.js} +2 -2
- package/dist/bundle/{chunk-SWKQ6IAR.js → chunk-M7ECSGSN.js} +3 -3
- package/dist/bundle/{chunk-MTO6YVMN.js → chunk-M7RHPCXM.js} +3 -3
- package/dist/bundle/{chunk-PRQ2U7HF.js → chunk-MIWSCTLG.js} +2 -2
- package/dist/bundle/{chunk-NSIN5IM4.js → chunk-NBJU6MBU.js} +10 -15
- package/dist/bundle/{chunk-JWMLMAHP.js → chunk-NMFPK3MU.js} +14 -5
- package/dist/bundle/{chunk-4QNHAM3J.js → chunk-OGE7YG4J.js} +2 -2
- package/dist/bundle/{chunk-XBEO472U.js → chunk-PJ6YMNJG.js} +26515 -24466
- package/dist/bundle/{chunk-RUASZW3M.js → chunk-PY2IOVUN.js} +5 -5
- package/dist/bundle/{chunk-OQW6GHUA.js → chunk-QI6EXKSH.js} +1 -1
- package/dist/bundle/{chunk-KV4VTKF3.js → chunk-QJGG6QYV.js} +69 -6
- package/dist/bundle/{chunk-JMLIKXFO.js → chunk-RXKIP2ML.js} +2 -2
- package/dist/bundle/{chunk-6VV7J2TN.js → chunk-T7SHPALQ.js} +35 -28
- package/dist/bundle/{chunk-YI544LHI.js → chunk-UE2NKPA4.js} +9 -9
- package/dist/bundle/{chunk-X47BL4M5.js → chunk-UNJUCK5R.js} +13 -13
- package/dist/bundle/{chunk-C5BMCLCQ.js → chunk-V32L23NN.js} +4 -4
- package/dist/bundle/{chunk-DW3F6DUW.js → chunk-V4PFD25P.js} +1 -1
- package/dist/bundle/{chunk-U6MMQNNK.js → chunk-VA4V73SL.js} +6 -6
- package/dist/bundle/{chunk-3KSK5BBB.js → chunk-VJPLIXV4.js} +8 -2
- package/dist/bundle/{chunk-YA45XV6G.js → chunk-VWRT57QU.js} +4 -4
- package/dist/bundle/{chunk-FKWUUCX2.js → chunk-XELZCDWE.js} +427 -189
- package/dist/bundle/{chunk-3FD3IATT.js → chunk-XUJEZ5YF.js} +6 -6
- package/dist/bundle/{chunk-TI7ZIPA2.js → chunk-XZ7CQ6NA.js} +4 -4
- package/dist/bundle/{chunk-NCRSE647.js → chunk-YM345236.js} +159 -46
- package/dist/bundle/{chunk-6PWCQKMD.js → chunk-YXGHC3NP.js} +14 -14
- package/dist/bundle/{chunk-RNZKQMFY.js → chunk-ZZSZN4CJ.js} +22 -15
- package/dist/bundle/command-contract-NNEXHZW5.js +36 -0
- package/dist/bundle/{command-server-entry-5E3PPDE5.js → command-server-entry-AIBWNC5D.js} +25 -24
- package/dist/bundle/{decode-AVWV7SVZ.js → decode-H7KLRD33.js} +5 -5
- package/dist/bundle/{dispatch-BXPHSNK5.js → dispatch-DSVN7MNG.js} +8 -8
- package/dist/bundle/{dist-PIOOKBWT.js → dist-YYSP43J3.js} +29 -18
- package/dist/bundle/{echarts-7K6YQV52.js → echarts-VSD3LS6D.js} +2 -2
- package/dist/bundle/{embed-4NT76GJK.js → embed-UENZ5HN3.js} +6 -6
- package/dist/bundle/{embedder-ITQFF7EN.js → embedder-MJMGOJT7.js} +9 -9
- package/dist/bundle/{failure-3Q65JOPD.js → failure-COTPFUP4.js} +2 -2
- package/dist/bundle/{first-run-PM74YU4X.js → first-run-HYALREFN.js} +12 -11
- package/dist/bundle/first-screen-GPF5RHBX.js +34 -0
- package/dist/bundle/{instructions-JDSITYHV.js → instructions-WOHRYOLN.js} +1 -1
- package/dist/bundle/mail.js +15 -20
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-D6YIJOJI.js → node-4BRWJJCE.js} +2 -2
- package/dist/bundle/{node-sqlite-PJOHHB4X.js → node-sqlite-D3QESEYQ.js} +10 -6
- package/dist/bundle/{oauth-BOWJ3IBT.js → oauth-T7TTOBIZ.js} +7 -7
- package/dist/bundle/{open-FIAKKZMW.js → open-6P6627QB.js} +5 -5
- package/dist/bundle/{openai-QL54VVLC.js → openai-FIMCJGAP.js} +24 -19
- package/dist/bundle/{process-AYHK7WRC.js → process-35IH3WHC.js} +1 -1
- package/dist/bundle/{program-6FKWOTBK.js → program-IEXB72IK.js} +6685 -5463
- package/dist/bundle/{prompt-XJZCBELC.js → prompt-HFBCPMVL.js} +5 -5
- package/dist/bundle/{recognize-OQKWAHBY.js → recognize-CNL4HJ7Z.js} +4 -4
- package/dist/bundle/{remote-NLVUZ5WK.js → remote-AYGZI7HT.js} +9 -7
- package/dist/bundle/{rerank-NRPZDTJ7.js → rerank-5C2OZZXD.js} +7 -7
- package/dist/bundle/{serve-O4YUI7F6.js → serve-S6OYBDIB.js} +9 -9
- package/dist/bundle/{server-WAL3M4OO.js → server-VKO6E6PI.js} +42 -40
- package/dist/bundle/server-WXSHVDME.js +68 -0
- package/dist/bundle/{sqlite-runtime-5YHGI4D4.js → sqlite-runtime-DBTGNTVE.js} +6 -6
- package/dist/bundle/{state-WYYOJ7KK.js → state-ZQG6AL2Y.js} +6 -6
- package/dist/bundle/{store-X72GOJHD.js → store-B7BXWILZ.js} +25 -18
- package/dist/bundle/{store-6BJO3F2J.js → store-LY4QKTOO.js} +19 -16
- package/dist/bundle/store-maintenance-command-UR6NQDVV.js +58 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +57 -19
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -12
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +7 -2
- package/dist/discovery.js.map +1 -1
- package/dist/identity.d.ts +2 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +34 -0
- package/dist/identity.js.map +1 -1
- package/dist/mail/domain-age.d.ts +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +9 -3
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/rules/file.d.ts.map +1 -1
- package/dist/mail/rules/file.js +4 -1
- package/dist/mail/rules/file.js.map +1 -1
- package/dist/mail/rules/query.d.ts +2 -1
- package/dist/mail/rules/query.d.ts.map +1 -1
- package/dist/mail/rules/query.js +16 -3
- package/dist/mail/rules/query.js.map +1 -1
- package/dist/oauth.d.ts +3 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +48 -34
- package/dist/oauth.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -21
- package/dist/store.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 +10 -9
- package/dist/bundle/chunk-B72343TK.js +0 -35
- package/dist/bundle/command-contract-ERYYPAD2.js +0 -35
- package/dist/bundle/first-screen-WBVGVSMY.js +0 -33
- package/dist/bundle/server-6OT5ZEWL.js +0 -66
- package/dist/bundle/store-maintenance-command-ASS7RBYC.js +0 -54
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3XTKQ5EM.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7MEVD5PI.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
singleLine
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7KCBPAQS.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3XTKQ5EM.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7KCBPAQS.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZZSZN4CJ.js";
|
|
10
10
|
import {
|
|
11
11
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M2LATBP2.js";
|
|
13
13
|
import {
|
|
14
14
|
callerOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-M4Y33SJJ.js";
|
|
16
16
|
import {
|
|
17
17
|
QUERY_ARGUMENT,
|
|
18
18
|
lentConnection,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
refuseLacking,
|
|
21
21
|
servicesFor,
|
|
22
22
|
storeModeDeps
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CFBIPM7T.js";
|
|
24
24
|
import {
|
|
25
25
|
MAX_BUFFERED_INPUT
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HI5XUETY.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_OUTPUT_BYTES,
|
|
29
29
|
ENTITIES,
|
|
@@ -38,36 +38,36 @@ import {
|
|
|
38
38
|
refuseStoreChange,
|
|
39
39
|
sealed,
|
|
40
40
|
startRecording
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XELZCDWE.js";
|
|
42
42
|
import {
|
|
43
43
|
authorityAllowed,
|
|
44
44
|
botApiAllowed,
|
|
45
45
|
keyForCommand,
|
|
46
46
|
levelFor,
|
|
47
47
|
readKeysForCommand
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-5WROIMUV.js";
|
|
49
49
|
import {
|
|
50
50
|
currentCaller,
|
|
51
51
|
keepsSuccess,
|
|
52
52
|
runContextOf,
|
|
53
53
|
withCaller
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-76VSHS5Y.js";
|
|
55
55
|
import {
|
|
56
56
|
enclosingTraceId,
|
|
57
57
|
inRun,
|
|
58
58
|
newRunId,
|
|
59
59
|
traceOf
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-76EKZSDK.js";
|
|
61
61
|
import {
|
|
62
62
|
queryDescription
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-2E2EV4HD.js";
|
|
64
64
|
import {
|
|
65
65
|
storeDamaged
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-VJPLIXV4.js";
|
|
67
67
|
import {
|
|
68
68
|
captureStreams,
|
|
69
69
|
traceIdOf
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-7MEVD5PI.js";
|
|
71
71
|
import {
|
|
72
72
|
COMPACT_FLAG,
|
|
73
73
|
SNAKE_CASE,
|
|
@@ -106,25 +106,25 @@ import {
|
|
|
106
106
|
unknown,
|
|
107
107
|
word,
|
|
108
108
|
writes
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-ECZSYLSL.js";
|
|
110
110
|
import {
|
|
111
111
|
CliError,
|
|
112
112
|
errorCodes
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-7KCBPAQS.js";
|
|
114
114
|
import {
|
|
115
115
|
__name
|
|
116
116
|
} from "./chunk-ZVVMGPBJ.js";
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
119
119
|
import { Readable } from "node:stream";
|
|
120
120
|
|
|
121
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
121
|
+
// 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
|
|
122
122
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
123
123
|
var lintRuleSchema = strictObject({
|
|
124
124
|
id: word,
|
|
125
125
|
severity: picklist(LINT_SEVERITIES),
|
|
126
126
|
/** What the rule looks at; a violation's target names one of these. */
|
|
127
|
-
scope: picklist(["command", "group", "argument", "option", "flag", "key", "source"]),
|
|
127
|
+
scope: picklist(["command", "group", "argument", "option", "flag", "key", "source", "type"]),
|
|
128
128
|
summary: text
|
|
129
129
|
});
|
|
130
130
|
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");
|
|
@@ -162,7 +162,7 @@ var LINT_RULES = defineLintRules([
|
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
id: "command-example-count",
|
|
165
|
-
severity: "
|
|
165
|
+
severity: "low",
|
|
166
166
|
scope: "command",
|
|
167
167
|
summary: "a leaf command has one to three examples; generated commands are exempt"
|
|
168
168
|
},
|
|
@@ -245,6 +245,12 @@ var LINT_RULES = defineLintRules([
|
|
|
245
245
|
severity: "medium",
|
|
246
246
|
scope: "source",
|
|
247
247
|
summary: "every `http(s)://` host in the CLI's own source is in the manifest's `network.hosts`"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
id: "result-shape",
|
|
251
|
+
severity: "medium",
|
|
252
|
+
scope: "type",
|
|
253
|
+
summary: "a list or search in the published TypeScript API returns `{ items, hasMore, nextOffset?, total? }`: no bare array, no `hits` or `has_more`"
|
|
248
254
|
}
|
|
249
255
|
]);
|
|
250
256
|
var baselineSchema = array(text);
|
|
@@ -258,7 +264,7 @@ var overrideSchema = strictObject({
|
|
|
258
264
|
});
|
|
259
265
|
var overridesSchema = array(overrideSchema);
|
|
260
266
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
267
|
+
// 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
|
|
262
268
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
263
269
|
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");
|
|
264
270
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -303,14 +309,19 @@ var parityGroupSchema = strictObject({
|
|
|
303
309
|
/** Permanent differences, each with its reason; they count against the override budget of the group. */
|
|
304
310
|
differences: array(strictObject({
|
|
305
311
|
rule: word,
|
|
306
|
-
/**
|
|
312
|
+
/**
|
|
313
|
+
* `<clis> <path> <flag>`; with `absent` or `only`, only `<path> <flag>`: the CLI list is whoever else was compared.
|
|
314
|
+
* same-entity-schema and same-error-reason name no CLI list either: `entity hit`, `reason profile.unknown: code`.
|
|
315
|
+
*/
|
|
307
316
|
target: text,
|
|
308
317
|
expected: optional(text),
|
|
309
318
|
/** The CLI that lacks the path or flag by design; the rest must agree, so other CLIs joining do not stale it. */
|
|
310
319
|
absent: optional(word),
|
|
311
320
|
/** The one CLI that has the path or flag by design; every other CLI compared must lack it. */
|
|
312
321
|
only: optional(word),
|
|
313
|
-
reason: pipe(text, minLength(10, "say why, in a sentence"))
|
|
322
|
+
reason: pipe(text, minLength(10, "say why, in a sentence")),
|
|
323
|
+
/** Warns from 14 days before and fails 14 days after, as a lint override does. */
|
|
324
|
+
review_after: optional(pipe(string(), isoDate("a date, YYYY-MM-DD")))
|
|
314
325
|
}))
|
|
315
326
|
});
|
|
316
327
|
var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity groups", array(parityGroupSchema), input, (groups) => [
|
|
@@ -339,8 +350,26 @@ var MEMO_DOCTOR_DEEP = {
|
|
|
339
350
|
only: "memo",
|
|
340
351
|
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"
|
|
341
352
|
};
|
|
353
|
+
var review = /* @__PURE__ */ __name((rule, target, reason) => ({ rule, target, reason, review_after: "2026-11-27" }), "review");
|
|
354
|
+
var ENTITY = "same-entity-schema";
|
|
355
|
+
var REASON = "same-error-reason";
|
|
356
|
+
var MESSENGERS_SINCE_0_98 = [
|
|
357
|
+
review(ENTITY, "entity contact_context", "max, tg and wa print it in different schemas (measured 2026-11-13)"),
|
|
358
|
+
review(ENTITY, "entity contact_preparation", "max, tg and wa print it in different schemas (measured 2026-11-13)"),
|
|
359
|
+
review(ENTITY, "entity linked_person", "max, tg and wa print it in different schemas (measured 2026-11-13)")
|
|
360
|
+
];
|
|
361
|
+
var FAMILY_SINCE_0_98 = [
|
|
362
|
+
review(ENTITY, "entity api_method", "b24's schema differs from drive and gcal's (measured 2026-11-13)"),
|
|
363
|
+
review(ENTITY, "entity scheduled_job", "three schemas: b24, mail, memo / gcal / max, tg (measured 2026-11-13)"),
|
|
364
|
+
review(ENTITY, "entity hit", "three schemas: b24, memo, zm / gcal / max, tg, wa (measured 2026-11-13)"),
|
|
365
|
+
review(ENTITY, "entity deal", "b24's CRM deal and memo's differ (measured 2026-11-13)"),
|
|
366
|
+
review(ENTITY, "entity lead", "b24's CRM lead and memo's differ (measured 2026-11-13)"),
|
|
367
|
+
review(ENTITY, "entity product", "b24's CRM product and memo's differ (measured 2026-11-13)"),
|
|
368
|
+
review(REASON, "reason ai.address-refused=model.address-refused", "one failure under two names; cli-core 0.650.0 keeps one"),
|
|
369
|
+
review(REASON, "reason profile.unknown: code", "b24 gives it not_found, drive validation_error (measured 2026-11-13)")
|
|
370
|
+
];
|
|
342
371
|
var PARITY_GROUPS = defineParityGroups([
|
|
343
|
-
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences:
|
|
372
|
+
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: MESSENGERS_SINCE_0_98 },
|
|
344
373
|
{
|
|
345
374
|
name: "all",
|
|
346
375
|
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
@@ -362,7 +391,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
362
391
|
name: "gcal-shared",
|
|
363
392
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "gcal"],
|
|
364
393
|
covers: ["commands", "upgrade", "notes", "meetings"],
|
|
365
|
-
differences:
|
|
394
|
+
differences: FAMILY_SINCE_0_98
|
|
366
395
|
},
|
|
367
396
|
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's meetings take call recordings, not
|
|
368
397
|
// zoom-cli's: both are compared on the root commands every CLI shares, the way gcal and mail are on theirs.
|
|
@@ -384,7 +413,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
384
413
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
385
414
|
]);
|
|
386
415
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
416
|
+
// 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
|
|
388
417
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
389
418
|
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");
|
|
390
419
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -400,7 +429,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
400
429
|
}
|
|
401
430
|
]);
|
|
402
431
|
|
|
403
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
432
|
+
// 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
|
|
404
433
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
405
434
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
406
435
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -422,7 +451,44 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
422
451
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
423
452
|
]);
|
|
424
453
|
|
|
425
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
454
|
+
// 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
|
|
455
|
+
var ACCOUNT_FLAGS = [
|
|
456
|
+
{
|
|
457
|
+
name: "--client-id",
|
|
458
|
+
value: "<id>",
|
|
459
|
+
role: "mode",
|
|
460
|
+
type: "id",
|
|
461
|
+
meaning: "sign in through the owner's own OAuth app with this client ID instead of WireCat's (WC-SECR-25)"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
name: "--client-file",
|
|
465
|
+
value: "<file>",
|
|
466
|
+
role: "mode",
|
|
467
|
+
type: "path",
|
|
468
|
+
meaning: "sign in through the owner's own OAuth app read from this client JSON instead of WireCat's (WC-SECR-25)"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
name: "--keep-data",
|
|
472
|
+
role: "mode",
|
|
473
|
+
type: "switch",
|
|
474
|
+
meaning: "remove the account but leave what the store holds of it, still searchable"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
name: "--delete-data",
|
|
478
|
+
role: "mode",
|
|
479
|
+
type: "switch",
|
|
480
|
+
meaning: "remove the account and delete what the store and the tool's files hold of it"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: "--answer-stdin",
|
|
484
|
+
role: "mode",
|
|
485
|
+
type: "switch",
|
|
486
|
+
meaning: "a sign-in step asks its question as a JSON line and reads the answer from stdin"
|
|
487
|
+
},
|
|
488
|
+
{ name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
|
|
489
|
+
];
|
|
490
|
+
|
|
491
|
+
// 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
|
|
426
492
|
var CALENDAR_FLAGS = [
|
|
427
493
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
428
494
|
{
|
|
@@ -496,7 +562,7 @@ var CALENDAR_FLAGS = [
|
|
|
496
562
|
}
|
|
497
563
|
];
|
|
498
564
|
|
|
499
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
565
|
+
// 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
|
|
500
566
|
var CRM_FLAGS = [
|
|
501
567
|
{
|
|
502
568
|
name: "--pipeline",
|
|
@@ -646,7 +712,7 @@ var CRM_FLAGS = [
|
|
|
646
712
|
}
|
|
647
713
|
];
|
|
648
714
|
|
|
649
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
715
|
+
// 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
|
|
650
716
|
var HOW_FLAGS = [
|
|
651
717
|
{
|
|
652
718
|
name: "--limit",
|
|
@@ -873,7 +939,6 @@ var HOW_FLAGS = [
|
|
|
873
939
|
meaning: "expose meeting preparation tools, including their remote schedule reads"
|
|
874
940
|
},
|
|
875
941
|
{ name: "--dry-run", role: "mode", type: "switch", meaning: "judge and plan; do nothing", replaces: ["--estimate"] },
|
|
876
|
-
{ name: "--accept-terms", role: "mode", type: "switch", meaning: "accept the model's licence terms" },
|
|
877
942
|
{
|
|
878
943
|
name: "--as-owner",
|
|
879
944
|
role: "mode",
|
|
@@ -1644,8 +1709,14 @@ var HOW_FLAGS = [
|
|
|
1644
1709
|
}
|
|
1645
1710
|
];
|
|
1646
1711
|
|
|
1647
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1712
|
+
// 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
|
|
1648
1713
|
var KNOWLEDGE_FLAGS = [
|
|
1714
|
+
{
|
|
1715
|
+
name: "--accept-terms",
|
|
1716
|
+
role: "mode",
|
|
1717
|
+
type: "switch",
|
|
1718
|
+
meaning: "no longer needed; kept so older scripts still run"
|
|
1719
|
+
},
|
|
1649
1720
|
{
|
|
1650
1721
|
name: "--quote",
|
|
1651
1722
|
value: "<ref=words...>",
|
|
@@ -1676,7 +1747,7 @@ var KNOWLEDGE_FLAGS = [
|
|
|
1676
1747
|
}
|
|
1677
1748
|
];
|
|
1678
1749
|
|
|
1679
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1750
|
+
// 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
|
|
1680
1751
|
var MAIL_FLAGS = [
|
|
1681
1752
|
{
|
|
1682
1753
|
name: "--cc",
|
|
@@ -1706,7 +1777,7 @@ var MAIL_FLAGS = [
|
|
|
1706
1777
|
}
|
|
1707
1778
|
];
|
|
1708
1779
|
|
|
1709
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1780
|
+
// 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
|
|
1710
1781
|
var PRIVACY_FLAGS = [
|
|
1711
1782
|
{
|
|
1712
1783
|
name: "--about-text",
|
|
@@ -1767,7 +1838,7 @@ var PRIVACY_FLAGS = [
|
|
|
1767
1838
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1768
1839
|
];
|
|
1769
1840
|
|
|
1770
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1841
|
+
// 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
|
|
1771
1842
|
var SCHEDULE_FLAGS = [
|
|
1772
1843
|
{
|
|
1773
1844
|
name: "--locale",
|
|
@@ -1800,7 +1871,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1800
1871
|
}
|
|
1801
1872
|
];
|
|
1802
1873
|
|
|
1803
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1874
|
+
// 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
|
|
1804
1875
|
var WHAT_FLAGS = [
|
|
1805
1876
|
{
|
|
1806
1877
|
name: "--analysis-provider",
|
|
@@ -2116,6 +2187,13 @@ var WHAT_FLAGS = [
|
|
|
2116
2187
|
type: "list",
|
|
2117
2188
|
meaning: "the agents to install for, comma-separated"
|
|
2118
2189
|
},
|
|
2190
|
+
{
|
|
2191
|
+
name: "--from",
|
|
2192
|
+
value: "<person>",
|
|
2193
|
+
role: "target",
|
|
2194
|
+
type: "id",
|
|
2195
|
+
meaning: "a person: the one identities leave, or the one who sent it; a search takes it repeated for any of several"
|
|
2196
|
+
},
|
|
2119
2197
|
{
|
|
2120
2198
|
name: "--from-dir",
|
|
2121
2199
|
value: "<dir>",
|
|
@@ -2790,7 +2868,7 @@ var WHAT_FLAGS = [
|
|
|
2790
2868
|
}
|
|
2791
2869
|
];
|
|
2792
2870
|
|
|
2793
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2871
|
+
// 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
|
|
2794
2872
|
var FLAG_TYPES = [
|
|
2795
2873
|
"switch",
|
|
2796
2874
|
"count",
|
|
@@ -2944,6 +3022,7 @@ var verbs = [
|
|
|
2944
3022
|
"look at a source before taking anything from it: a chat link without joining, a mailbox without importing"
|
|
2945
3023
|
],
|
|
2946
3024
|
["send", "send a message"],
|
|
3025
|
+
["call", "call one provider API method by its own name, generated from the provider's method list"],
|
|
2947
3026
|
["edit", "change a sent message"],
|
|
2948
3027
|
["forward", "send an existing message on to another chat"],
|
|
2949
3028
|
["pin", "pin a message or chat"],
|
|
@@ -3150,6 +3229,7 @@ var views = [
|
|
|
3150
3229
|
["categories", "the categories a thing takes, with what each means"],
|
|
3151
3230
|
["domains", "the internet domains links point to, most linked first"],
|
|
3152
3231
|
["places", "the street addresses confirmed as places, most mentioned first"],
|
|
3232
|
+
["mentions", "the people and organizations named in a selected thing's text"],
|
|
3153
3233
|
["comments", "replies attached to a selected source item"],
|
|
3154
3234
|
["links", "links held for a selected thing"],
|
|
3155
3235
|
["voters", "people whose recorded votes are visible for a selected poll"],
|
|
@@ -3198,6 +3278,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3198
3278
|
...HOW_FLAGS,
|
|
3199
3279
|
...WHAT_FLAGS,
|
|
3200
3280
|
...PRIVACY_FLAGS,
|
|
3281
|
+
...ACCOUNT_FLAGS,
|
|
3201
3282
|
...CALENDAR_FLAGS,
|
|
3202
3283
|
...MAIL_FLAGS,
|
|
3203
3284
|
...KNOWLEDGE_FLAGS,
|
|
@@ -3206,7 +3287,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3206
3287
|
]
|
|
3207
3288
|
});
|
|
3208
3289
|
|
|
3209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3210
3291
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3211
3292
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3212
3293
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3316,6 +3397,9 @@ var fieldsOf = /* @__PURE__ */ __name((info, { omit = [], offline = false, stdin
|
|
|
3316
3397
|
}, "fieldsOf");
|
|
3317
3398
|
var schemaOf = /* @__PURE__ */ __name((fields) => object(Object.fromEntries(fields.map((field) => [field.name, field.required ? field.schema : optional(field.schema)]))), "schemaOf");
|
|
3318
3399
|
var startsWith = /* @__PURE__ */ __name((path, prefix) => prefix.every((word2, at) => path[at] === word2), "startsWith");
|
|
3400
|
+
var keywordsOf = /* @__PURE__ */ __name((examples) => [
|
|
3401
|
+
...new Set(examples.flatMap((example) => example.split(/\s+/u).filter((word2) => word2 !== "" && !word2.startsWith("-"))))
|
|
3402
|
+
], "keywordsOf");
|
|
3319
3403
|
var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
|
|
3320
3404
|
const { root = [], exclude = [], levels, keyOf, authority, readOnly = false, permissions } = options;
|
|
3321
3405
|
return flatten(commands).filter((info) => (
|
|
@@ -3327,6 +3411,7 @@ var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
|
|
|
3327
3411
|
path: info.path,
|
|
3328
3412
|
title: info.summary ?? info.description,
|
|
3329
3413
|
description: info.description,
|
|
3414
|
+
...info.examples?.length ? { keywords: keywordsOf(info.examples) } : {},
|
|
3330
3415
|
writes: writes(info.effects) && options.fetchOnly?.(info.path) !== true,
|
|
3331
3416
|
input: schemaOf(fieldsOf(info, options)),
|
|
3332
3417
|
...info.output ? { output: info.output } : {}
|
|
@@ -3429,7 +3514,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3429
3514
|
}
|
|
3430
3515
|
}, "runCommandForAgent");
|
|
3431
3516
|
|
|
3432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3433
3518
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3434
3519
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3435
3520
|
var message = pipe(
|
|
@@ -3688,7 +3773,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3688
3773
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3689
3774
|
}, "failed");
|
|
3690
3775
|
|
|
3691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3692
3777
|
import { randomUUID } from "node:crypto";
|
|
3693
3778
|
var MATCHES = 8;
|
|
3694
3779
|
var ANSWER = answerSchema();
|
|
@@ -3710,15 +3795,43 @@ var listedAs = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
|
3710
3795
|
return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
|
|
3711
3796
|
}, "listedAs");
|
|
3712
3797
|
var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
|
|
3713
|
-
var
|
|
3798
|
+
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(" "));
|
|
3799
|
+
var wordsOf = /* @__PURE__ */ __name((text3) => text3.toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), "wordsOf");
|
|
3800
|
+
var stem = /* @__PURE__ */ __name((word2) => {
|
|
3801
|
+
const bare = word2.replace(/'s$/u, "");
|
|
3802
|
+
if (bare.length > 4 && bare.endsWith("ies"))
|
|
3803
|
+
return `${bare.slice(0, -3)}y`;
|
|
3804
|
+
for (const ending of ["ing", "ed", "es", "s"])
|
|
3805
|
+
if (bare.length - ending.length >= 3 && bare.endsWith(ending))
|
|
3806
|
+
return bare.slice(0, -ending.length);
|
|
3807
|
+
return bare;
|
|
3808
|
+
}, "stem");
|
|
3809
|
+
var sameWord = /* @__PURE__ */ __name((asked, known) => {
|
|
3810
|
+
if (asked === known)
|
|
3811
|
+
return true;
|
|
3812
|
+
const [short, long] = asked.length <= known.length ? [asked, known] : [known, asked];
|
|
3813
|
+
return short.length >= 3 && long.startsWith(short);
|
|
3814
|
+
}, "sameWord");
|
|
3815
|
+
var fieldsOf2 = /* @__PURE__ */ __name((command, one) => [
|
|
3816
|
+
[4, [...wordsOf(command), ...(one.aliases ?? []).flatMap(wordsOf)]],
|
|
3817
|
+
[2, wordsOf(one.title)],
|
|
3818
|
+
[1, [...wordsOf(one.description), ...(one.keywords ?? []).flatMap(wordsOf), ...Object.keys(one.input.entries)]]
|
|
3819
|
+
].map(([weight, words]) => [weight, [...new Set(words.map(stem))]]), "fieldsOf");
|
|
3714
3820
|
var search = /* @__PURE__ */ __name((commands, query) => {
|
|
3715
|
-
const
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3821
|
+
const named = normal(query);
|
|
3822
|
+
const all = Object.entries(commands);
|
|
3823
|
+
if (!named)
|
|
3824
|
+
return all.map((entry) => entry).sort((a, b) => a[0].localeCompare(b[0]));
|
|
3825
|
+
const words = [
|
|
3826
|
+
...new Set(wordsOf(query).filter((word2) => word2.length > 1 && !STOP_WORDS.has(word2)).map(stem))
|
|
3827
|
+
];
|
|
3828
|
+
return all.map((entry) => {
|
|
3829
|
+
const fields = fieldsOf2(entry[0], entry[1]);
|
|
3830
|
+
const weights = words.map((word2) => fields.reduce((best, [weight, known]) => known.some((one) => sameWord(word2, one)) ? Math.max(best, weight) : best, 0));
|
|
3831
|
+
const matched = weights.filter((weight) => weight > 0).length;
|
|
3832
|
+
const exact = normal(entry[0]) === named || (entry[1].aliases ?? []).some((alias) => normal(alias) === named);
|
|
3833
|
+
return { entry, matched, rank: (exact ? 1e3 : 0) + matched * 10 + weights.reduce((a, b) => a + b, 0) };
|
|
3834
|
+
}).filter(({ matched, rank }) => matched > 0 || rank >= 1e3).sort((a, b) => b.rank - a.rank || a.entry[0].localeCompare(b.entry[0])).map(({ entry }) => entry);
|
|
3722
3835
|
}, "search");
|
|
3723
3836
|
var nearest = /* @__PURE__ */ __name((commands, asked) => {
|
|
3724
3837
|
const words = normal(asked).split(" ");
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7C6FGWDH.js";
|
|
6
6
|
import {
|
|
7
7
|
QUESTIONS,
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-M7ECSGSN.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NBJU6MBU.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
storePath
|
|
21
|
-
} from "./chunk-B72343TK.js";
|
|
18
|
+
} from "./chunk-XUJEZ5YF.js";
|
|
22
19
|
import {
|
|
23
20
|
installerOf
|
|
24
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-M4OP5ASJ.js";
|
|
22
|
+
import {
|
|
23
|
+
storePath
|
|
24
|
+
} from "./chunk-3XTKQ5EM.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-LY4QKTOO.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-6P6627QB.js"),
|
|
117
|
+
import("./store-maintenance-command-UR6NQDVV.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-GPF5RHBX.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-HFBCPMVL.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|