@wirecat/mail-cli 0.23.0 → 0.24.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 +29 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-CI32WFEV.js → all-profiles-VS7P6DJY.js} +11 -11
- package/dist/bundle/{anthropic-ICSOMJIN.js → anthropic-C5JXKGBS.js} +16 -7
- package/dist/bundle/{app-server-3F4ZB7DH.js → app-server-HU3LVU42.js} +51 -50
- package/dist/bundle/{bun-7AHNFZMZ.js → bun-QLFX47WZ.js} +2 -2
- package/dist/bundle/{bun-sqlite-UIWRS4HI.js → bun-sqlite-W4PGAKVY.js} +5 -5
- package/dist/bundle/{chunk-ETIUB2DF.js → chunk-3FD3IATT.js} +6 -6
- package/dist/bundle/{chunk-6FSLEARF.js → chunk-3KSK5BBB.js} +2 -2
- package/dist/bundle/{chunk-I3YNNSGB.js → chunk-4QNHAM3J.js} +2 -2
- package/dist/bundle/{chunk-7SWWVDEZ.js → chunk-4W4EVVL4.js} +61 -21
- package/dist/bundle/{chunk-JDKC7EXM.js → chunk-5NLHDK7P.js} +50 -46
- package/dist/bundle/{chunk-AHRHP2H2.js → chunk-5X3GU5LI.js} +6 -6
- package/dist/bundle/{chunk-KNRONMVG.js → chunk-64ZG5ERD.js} +2 -2
- package/dist/bundle/{chunk-RIAZTS6C.js → chunk-6PWCQKMD.js} +12 -12
- package/dist/bundle/{chunk-4PNIZUEC.js → chunk-6VV7J2TN.js} +36 -57
- package/dist/bundle/{chunk-5AS5N7V5.js → chunk-A6J4MPTI.js} +3 -1
- package/dist/bundle/{chunk-ZYHBMDNU.js → chunk-AUTX2MLF.js} +11 -9
- package/dist/bundle/{chunk-5Y2WRUYP.js → chunk-B72343TK.js} +2 -2
- package/dist/bundle/{chunk-7SIWMF77.js → chunk-BFQQV22T.js} +1 -1
- package/dist/bundle/chunk-C3NYJW6B.js +1542 -0
- package/dist/bundle/{chunk-7ZDH2XEY.js → chunk-C5BMCLCQ.js} +4 -4
- package/dist/bundle/{chunk-JO4BJYVE.js → chunk-DW3F6DUW.js} +1 -1
- package/dist/bundle/chunk-EKGRNFYQ.js +18 -0
- package/dist/bundle/{chunk-4YTX5YAU.js → chunk-FKWUUCX2.js} +1361 -1539
- package/dist/bundle/{chunk-LLYVBO3R.js → chunk-FNLUKODV.js} +19 -19
- package/dist/bundle/{chunk-HGV7DSSA.js → chunk-H5FJTHVA.js} +2 -2
- package/dist/bundle/{chunk-3QVGB2CI.js → chunk-HBZAJINU.js} +4 -4
- package/dist/bundle/{chunk-BT7UUI6E.js → chunk-IRUN4XOV.js} +2 -2
- package/dist/bundle/{chunk-4TKQIXND.js → chunk-JMLIKXFO.js} +2 -2
- package/dist/bundle/{chunk-XV3M3NAN.js → chunk-JOQGJUFT.js} +1 -1
- package/dist/bundle/{chunk-NEDYKKJJ.js → chunk-JWMLMAHP.js} +4 -4
- package/dist/bundle/{chunk-5QQOUYNA.js → chunk-KGOVFEWZ.js} +3 -3
- package/dist/bundle/{chunk-NKDYHAHP.js → chunk-KV4VTKF3.js} +3 -3
- package/dist/bundle/chunk-LVGX7VTD.js +138 -0
- package/dist/bundle/{chunk-3DQYO7FB.js → chunk-MCPOZNWG.js} +1 -1
- package/dist/bundle/{chunk-SCH3NC5X.js → chunk-MTO6YVMN.js} +3 -3
- package/dist/bundle/{chunk-R4RAWEMV.js → chunk-NCRSE647.js} +286 -48
- package/dist/bundle/{chunk-UTLJQG6Q.js → chunk-NSIN5IM4.js} +8 -8
- package/dist/bundle/{chunk-IMIY7HQB.js → chunk-NWKKPDZV.js} +2 -2
- package/dist/bundle/chunk-O373QEAJ.js +1243 -0
- package/dist/bundle/{chunk-OMW37FXK.js → chunk-OQW6GHUA.js} +1 -1
- package/dist/bundle/{chunk-D6WTKSRA.js → chunk-PRQ2U7HF.js} +2 -2
- package/dist/bundle/{chunk-HRIYU2HJ.js → chunk-PT6MF2VU.js} +469 -120
- package/dist/bundle/{chunk-B6GITVDX.js → chunk-Q4OKEN3B.js} +7 -7
- package/dist/bundle/{chunk-ELGEHZK2.js → chunk-Q6K2XUGU.js} +1 -1
- package/dist/bundle/{chunk-CNYQ3TTZ.js → chunk-QI3PXUOJ.js} +43 -595
- package/dist/bundle/{chunk-SGMENSI6.js → chunk-QVMOEB3I.js} +391 -16
- package/dist/bundle/{chunk-S2U5BXWS.js → chunk-RLQZFZLK.js} +80 -5
- package/dist/bundle/{chunk-SETCGPFG.js → chunk-RN7OI5KL.js} +9 -8
- package/dist/bundle/{chunk-5J4WNTTM.js → chunk-RNZKQMFY.js} +14 -14
- package/dist/bundle/{chunk-WQRX4RQS.js → chunk-RUASZW3M.js} +5 -5
- package/dist/bundle/{chunk-UHC5I3JV.js → chunk-RX5CJ55S.js} +1 -1
- package/dist/bundle/{chunk-FHCOGR7S.js → chunk-SWKQ6IAR.js} +3 -3
- package/dist/bundle/{chunk-KJQZXCNK.js → chunk-TI7ZIPA2.js} +4 -4
- package/dist/bundle/{chunk-7DFWXIY5.js → chunk-TLEBSMC7.js} +1997 -768
- package/dist/bundle/{chunk-5Z7LZAVP.js → chunk-U6MMQNNK.js} +6 -6
- package/dist/bundle/{chunk-HN6PB7F5.js → chunk-VNKWSCN7.js} +99 -42
- package/dist/bundle/{chunk-DALBYUPC.js → chunk-VUBZFMGP.js} +2 -2
- package/dist/bundle/{chunk-XP5FBDIG.js → chunk-VVL4MKYH.js} +1 -1
- package/dist/bundle/{chunk-TEL2OMS5.js → chunk-WOX7FZJP.js} +686 -220
- package/dist/bundle/{chunk-2BAO4T4Z.js → chunk-X47BL4M5.js} +13 -13
- package/dist/bundle/{chunk-GOMJNH56.js → chunk-X7J3TTDO.js} +8 -8
- package/dist/bundle/{chunk-FVKZ55I2.js → chunk-XBEO472U.js} +29976 -16640
- package/dist/bundle/{chunk-UA4BOLIY.js → chunk-YA45XV6G.js} +4 -4
- package/dist/bundle/{chunk-FIZWQTUC.js → chunk-YBQ5AYLZ.js} +3 -3
- package/dist/bundle/{chunk-AFPETMXZ.js → chunk-YI544LHI.js} +13 -136
- package/dist/bundle/chunk-ZO4MQWIK.js +188 -0
- package/dist/bundle/{chunk-7OVVX4F4.js → chunk-ZR2BDNGG.js} +1 -1
- package/dist/bundle/command-contract-ERYYPAD2.js +35 -0
- package/dist/bundle/command-server-entry-5E3PPDE5.js +164 -0
- package/dist/bundle/{decode-BJXABRAN.js → decode-AVWV7SVZ.js} +5 -5
- package/dist/bundle/{dispatch-G4CYFWQ2.js → dispatch-BXPHSNK5.js} +10 -10
- package/dist/bundle/{dist-LLEA6R4V.js → dist-PIOOKBWT.js} +78 -44
- package/dist/bundle/{echarts-YPTKBOZV.js → echarts-7K6YQV52.js} +2 -2
- package/dist/bundle/{embed-DMROTI5M.js → embed-4NT76GJK.js} +6 -6
- package/dist/bundle/{embedder-DWMHXCHJ.js → embedder-ITQFF7EN.js} +9 -9
- package/dist/bundle/{failure-FFPK2WYB.js → failure-3Q65JOPD.js} +2 -2
- package/dist/bundle/{first-run-FQOEF2IO.js → first-run-PM74YU4X.js} +11 -11
- package/dist/bundle/first-screen-WBVGVSMY.js +33 -0
- package/dist/bundle/{instructions-OGKMROLD.js → instructions-JDSITYHV.js} +1 -1
- package/dist/bundle/mail.js +37 -13
- package/dist/bundle/{mcp-CFVG2OUS.js → mcp-7KQUJNFN.js} +2 -2
- package/dist/bundle/{node-HIKYE546.js → node-D6YIJOJI.js} +2 -2
- package/dist/bundle/{node-sqlite-3GJAG7VO.js → node-sqlite-PJOHHB4X.js} +6 -6
- package/dist/bundle/{oauth-H3DB6IHI.js → oauth-BOWJ3IBT.js} +7 -7
- package/dist/bundle/{open-DJ2PRG74.js → open-FIAKKZMW.js} +5 -5
- package/dist/bundle/{openai-MDBRYB55.js → openai-QL54VVLC.js} +16 -37
- package/dist/bundle/{process-4LBD72JH.js → process-AYHK7WRC.js} +1 -1
- package/dist/bundle/{program-F6WK6RX4.js → program-6FKWOTBK.js} +3206 -1603
- package/dist/bundle/{prompt-UNPUG6SO.js → prompt-XJZCBELC.js} +5 -5
- package/dist/bundle/{recognize-DMIO4PDB.js → recognize-OQKWAHBY.js} +4 -4
- package/dist/bundle/{remote-24HJA72D.js → remote-NLVUZ5WK.js} +7 -7
- package/dist/bundle/{rerank-PTNCHHIU.js → rerank-NRPZDTJ7.js} +7 -7
- package/dist/bundle/{serve-T6JHM2YD.js → serve-O4YUI7F6.js} +9 -9
- package/dist/bundle/server-6OT5ZEWL.js +66 -0
- package/dist/bundle/{server-BWEYRUR3.js → server-WAL3M4OO.js} +40 -40
- package/dist/bundle/{sqlite-runtime-ZJ4EH5ZM.js → sqlite-runtime-5YHGI4D4.js} +6 -6
- package/dist/bundle/{state-KSN4OFYW.js → state-WYYOJ7KK.js} +6 -6
- package/dist/bundle/{store-OIEZJEA7.js → store-6BJO3F2J.js} +22 -16
- package/dist/bundle/{store-GVBW2ZFK.js → store-X72GOJHD.js} +50 -22
- package/dist/bundle/store-maintenance-command-ASS7RBYC.js +54 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +29 -7
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/sync.d.ts +0 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +8 -2
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunk-5AQ4S4TZ.js +0 -12172
- package/dist/bundle/chunk-B4MWHI2V.js +0 -380
- package/dist/bundle/command-contract-UIRWJVEY.js +0 -35
- package/dist/bundle/first-screen-B6LF5464.js +0 -33
- package/dist/bundle/server-VUQNR5ZD.js +0 -65
- package/dist/bundle/store-maintenance-command-KJ54HLUQ.js +0 -54
- /package/dist/bundle/{chunk-QZLK2ISN.js → chunk-YVNHQFLC.js} +0 -0
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RNZKQMFY.js";
|
|
10
10
|
import {
|
|
11
11
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RLQZFZLK.js";
|
|
13
13
|
import {
|
|
14
14
|
callerOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H5FJTHVA.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-TLEBSMC7.js";
|
|
24
24
|
import {
|
|
25
25
|
MAX_BUFFERED_INPUT
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NWKKPDZV.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_OUTPUT_BYTES,
|
|
29
29
|
ENTITIES,
|
|
@@ -31,41 +31,43 @@ import {
|
|
|
31
31
|
REMOTE_WRITE,
|
|
32
32
|
answerSchema,
|
|
33
33
|
changesMessenger,
|
|
34
|
-
enclosingTraceId,
|
|
35
34
|
flatten,
|
|
36
|
-
inRun,
|
|
37
35
|
judgedAnswer,
|
|
38
36
|
judgedEffects,
|
|
39
37
|
listOf,
|
|
40
|
-
newRunId,
|
|
41
38
|
refuseStoreChange,
|
|
42
39
|
sealed,
|
|
43
|
-
startRecording
|
|
44
|
-
|
|
45
|
-
} from "./chunk-4YTX5YAU.js";
|
|
40
|
+
startRecording
|
|
41
|
+
} from "./chunk-FKWUUCX2.js";
|
|
46
42
|
import {
|
|
47
43
|
authorityAllowed,
|
|
48
44
|
botApiAllowed,
|
|
49
45
|
keyForCommand,
|
|
50
46
|
levelFor,
|
|
51
47
|
readKeysForCommand
|
|
52
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-Q4OKEN3B.js";
|
|
53
49
|
import {
|
|
54
50
|
currentCaller,
|
|
55
51
|
keepsSuccess,
|
|
56
52
|
runContextOf,
|
|
57
53
|
withCaller
|
|
58
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-AUTX2MLF.js";
|
|
55
|
+
import {
|
|
56
|
+
enclosingTraceId,
|
|
57
|
+
inRun,
|
|
58
|
+
newRunId,
|
|
59
|
+
traceOf
|
|
60
|
+
} from "./chunk-O373QEAJ.js";
|
|
59
61
|
import {
|
|
60
62
|
queryDescription
|
|
61
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-WOX7FZJP.js";
|
|
62
64
|
import {
|
|
63
65
|
storeDamaged
|
|
64
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-3KSK5BBB.js";
|
|
65
67
|
import {
|
|
66
68
|
captureStreams,
|
|
67
69
|
traceIdOf
|
|
68
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-FNLUKODV.js";
|
|
69
71
|
import {
|
|
70
72
|
COMPACT_FLAG,
|
|
71
73
|
SNAKE_CASE,
|
|
@@ -104,25 +106,25 @@ import {
|
|
|
104
106
|
unknown,
|
|
105
107
|
word,
|
|
106
108
|
writes
|
|
107
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-X7J3TTDO.js";
|
|
108
110
|
import {
|
|
109
111
|
CliError,
|
|
110
112
|
errorCodes
|
|
111
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-VUBZFMGP.js";
|
|
112
114
|
import {
|
|
113
115
|
__name
|
|
114
116
|
} from "./chunk-ZVVMGPBJ.js";
|
|
115
117
|
|
|
116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
117
119
|
import { Readable } from "node:stream";
|
|
118
120
|
|
|
119
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
121
|
+
// 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
|
|
120
122
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
121
123
|
var lintRuleSchema = strictObject({
|
|
122
124
|
id: word,
|
|
123
125
|
severity: picklist(LINT_SEVERITIES),
|
|
124
126
|
/** What the rule looks at; a violation's target names one of these. */
|
|
125
|
-
scope: picklist(["command", "group", "argument", "option", "flag", "key"]),
|
|
127
|
+
scope: picklist(["command", "group", "argument", "option", "flag", "key", "source"]),
|
|
126
128
|
summary: text
|
|
127
129
|
});
|
|
128
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");
|
|
@@ -231,6 +233,18 @@ var LINT_RULES = defineLintRules([
|
|
|
231
233
|
severity: "high",
|
|
232
234
|
scope: "group",
|
|
233
235
|
summary: "the CLI keeps a failed run and reads it back: `runs list`, `runs show`, global `--record` and `--no-record`"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: "raw-network",
|
|
239
|
+
severity: "high",
|
|
240
|
+
scope: "source",
|
|
241
|
+
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`"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
id: "undeclared-host",
|
|
245
|
+
severity: "medium",
|
|
246
|
+
scope: "source",
|
|
247
|
+
summary: "every `http(s)://` host in the CLI's own source is in the manifest's `network.hosts`"
|
|
234
248
|
}
|
|
235
249
|
]);
|
|
236
250
|
var baselineSchema = array(text);
|
|
@@ -244,7 +258,7 @@ var overrideSchema = strictObject({
|
|
|
244
258
|
});
|
|
245
259
|
var overridesSchema = array(overrideSchema);
|
|
246
260
|
|
|
247
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
261
|
+
// 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
|
|
248
262
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
249
263
|
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");
|
|
250
264
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -289,11 +303,13 @@ var parityGroupSchema = strictObject({
|
|
|
289
303
|
/** Permanent differences, each with its reason; they count against the override budget of the group. */
|
|
290
304
|
differences: array(strictObject({
|
|
291
305
|
rule: word,
|
|
292
|
-
/** `<clis> <path> <flag>`; with `absent`, only `<path> <flag>`: the CLI list is whoever else
|
|
306
|
+
/** `<clis> <path> <flag>`; with `absent` or `only`, only `<path> <flag>`: the CLI list is whoever else was compared. */
|
|
293
307
|
target: text,
|
|
294
308
|
expected: optional(text),
|
|
295
309
|
/** The CLI that lacks the path or flag by design; the rest must agree, so other CLIs joining do not stale it. */
|
|
296
310
|
absent: optional(word),
|
|
311
|
+
/** The one CLI that has the path or flag by design; every other CLI compared must lack it. */
|
|
312
|
+
only: optional(word),
|
|
297
313
|
reason: pipe(text, minLength(10, "say why, in a sentence"))
|
|
298
314
|
}))
|
|
299
315
|
});
|
|
@@ -301,7 +317,8 @@ var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity
|
|
|
301
317
|
...duplicates(groups.map((group) => group.name)).map((name) => `"${name}" is listed twice`),
|
|
302
318
|
...groups.flatMap((group) => [
|
|
303
319
|
...duplicates(group.differences.map((entry) => `${entry.rule} ${entry.target}`)).map((both) => `${group.name}: "${both}" is listed twice`),
|
|
304
|
-
...group.differences.filter((entry) => entry.absent && entry.expected).map((entry) => `${group.name}: "${entry.target}" has
|
|
320
|
+
...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\``),
|
|
321
|
+
...group.differences.filter((entry) => entry.absent && entry.only).map((entry) => `${group.name}: "${entry.target}" has both \`absent\` and \`only\`; keep one`)
|
|
305
322
|
])
|
|
306
323
|
]), "defineParityGroups");
|
|
307
324
|
var MEMO_HAS_NO_PROFILES = [
|
|
@@ -316,13 +333,19 @@ var MEMO_HAS_NO_PROFILES = [
|
|
|
316
333
|
absent: "memo",
|
|
317
334
|
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)"
|
|
318
335
|
}));
|
|
336
|
+
var MEMO_DOCTOR_DEEP = {
|
|
337
|
+
rule: "same-path-contract",
|
|
338
|
+
target: "doctor --deep",
|
|
339
|
+
only: "memo",
|
|
340
|
+
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
|
+
};
|
|
319
342
|
var PARITY_GROUPS = defineParityGroups([
|
|
320
343
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
|
|
321
344
|
{
|
|
322
345
|
name: "all",
|
|
323
346
|
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
324
347
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
|
|
325
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
348
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
326
349
|
},
|
|
327
350
|
// mail's `search messages` is cli-core's mail search, not the messengers' command: --complete took their 20-odd
|
|
328
351
|
// differences as inherited (https://github.com/WireCatLabs/cli-base/issues/390). mail is compared everywhere else
|
|
@@ -331,7 +354,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
331
354
|
name: "mail-shared",
|
|
332
355
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
|
|
333
356
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "notes", "meetings"],
|
|
334
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
357
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
335
358
|
},
|
|
336
359
|
// gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
|
|
337
360
|
// CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
|
|
@@ -347,7 +370,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
347
370
|
name: "shared-roots",
|
|
348
371
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
|
|
349
372
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
350
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
373
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
351
374
|
}
|
|
352
375
|
]);
|
|
353
376
|
var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
|
|
@@ -361,7 +384,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
361
384
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
362
385
|
]);
|
|
363
386
|
|
|
364
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
387
|
+
// 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
|
|
365
388
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
366
389
|
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");
|
|
367
390
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -377,7 +400,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
377
400
|
}
|
|
378
401
|
]);
|
|
379
402
|
|
|
380
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
403
|
+
// 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
|
|
381
404
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
382
405
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
383
406
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -399,7 +422,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
399
422
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
400
423
|
]);
|
|
401
424
|
|
|
402
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
425
|
+
// 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
|
|
403
426
|
var CALENDAR_FLAGS = [
|
|
404
427
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
405
428
|
{
|
|
@@ -407,14 +430,14 @@ var CALENDAR_FLAGS = [
|
|
|
407
430
|
value: "<date>",
|
|
408
431
|
role: "value",
|
|
409
432
|
type: "time",
|
|
410
|
-
meaning: "the first day of something that lasts whole days, such as an all-day event"
|
|
433
|
+
meaning: "the first day of something that lasts whole days, such as an all-day event or a contract"
|
|
411
434
|
},
|
|
412
435
|
{
|
|
413
436
|
name: "--end-date",
|
|
414
437
|
value: "<date>",
|
|
415
438
|
role: "value",
|
|
416
439
|
type: "time",
|
|
417
|
-
meaning: "the last day of something that lasts whole days, such as an all-day event"
|
|
440
|
+
meaning: "the last day of something that lasts whole days, such as an all-day event or a contract"
|
|
418
441
|
},
|
|
419
442
|
{ name: "--location", value: "<text>", role: "value", type: "string", meaning: "where it takes place" },
|
|
420
443
|
{
|
|
@@ -473,7 +496,7 @@ var CALENDAR_FLAGS = [
|
|
|
473
496
|
}
|
|
474
497
|
];
|
|
475
498
|
|
|
476
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
499
|
+
// 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
|
|
477
500
|
var CRM_FLAGS = [
|
|
478
501
|
{
|
|
479
502
|
name: "--pipeline",
|
|
@@ -504,16 +527,126 @@ var CRM_FLAGS = [
|
|
|
504
527
|
type: "time",
|
|
505
528
|
meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
|
|
506
529
|
},
|
|
530
|
+
{
|
|
531
|
+
name: "--position",
|
|
532
|
+
value: "<title>",
|
|
533
|
+
role: "value",
|
|
534
|
+
type: "string",
|
|
535
|
+
meaning: "a person's job title on a relationship, stored as position; never the role"
|
|
536
|
+
},
|
|
507
537
|
{
|
|
508
538
|
name: "--owner",
|
|
509
539
|
value: "<user>",
|
|
510
540
|
role: "value",
|
|
511
541
|
type: "id",
|
|
512
542
|
meaning: "the CRM user a record is assigned to, by the CRM's id"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
name: "--status",
|
|
546
|
+
value: "<state>",
|
|
547
|
+
role: "value",
|
|
548
|
+
type: "choice",
|
|
549
|
+
meaning: "the state to put it in; the command lists the states"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
name: "--product",
|
|
553
|
+
value: "<product>",
|
|
554
|
+
role: "value",
|
|
555
|
+
type: "string",
|
|
556
|
+
meaning: "a product or service the owner sells or buys: product:<id>"
|
|
557
|
+
},
|
|
558
|
+
{ name: "--contract", value: "<contract>", role: "value", type: "string", meaning: "a contract: contract:<id>" },
|
|
559
|
+
{ name: "--payment", value: "<payment>", role: "value", type: "string", meaning: "a payment: payment:<id>" },
|
|
560
|
+
{
|
|
561
|
+
name: "--refund-of",
|
|
562
|
+
value: "<payment>",
|
|
563
|
+
role: "value",
|
|
564
|
+
type: "string",
|
|
565
|
+
meaning: "the payment this one gives money back for: payment:<id>"
|
|
566
|
+
},
|
|
567
|
+
{ name: "--wallet", value: "<wallet>", role: "value", type: "string", meaning: "a wallet: wallet:<id>" },
|
|
568
|
+
{
|
|
569
|
+
name: "--supplier",
|
|
570
|
+
value: "<party>",
|
|
571
|
+
role: "value",
|
|
572
|
+
type: "string",
|
|
573
|
+
meaning: "who supplies it: person:<uid> or organization:<id>"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
name: "--customer",
|
|
577
|
+
value: "<party>",
|
|
578
|
+
role: "value",
|
|
579
|
+
type: "string",
|
|
580
|
+
meaning: "who receives it and pays for it: person:<uid> or organization:<id>"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
name: "--trial-end-date",
|
|
584
|
+
value: "<date>",
|
|
585
|
+
role: "value",
|
|
586
|
+
type: "time",
|
|
587
|
+
meaning: "the day a free trial ends, YYYY-MM-DD"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
name: "--notice-days",
|
|
591
|
+
value: "<days>",
|
|
592
|
+
role: "value",
|
|
593
|
+
type: "count",
|
|
594
|
+
meaning: "how many days before its end a party must say it will not go on",
|
|
595
|
+
unit: "days"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
name: "--auto-renew",
|
|
599
|
+
value: "<on|off>",
|
|
600
|
+
role: "value",
|
|
601
|
+
type: "choice",
|
|
602
|
+
meaning: "it renews by itself at its end, or it does not"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
name: "--period",
|
|
606
|
+
value: "<count-unit>",
|
|
607
|
+
role: "value",
|
|
608
|
+
type: "duration",
|
|
609
|
+
meaning: "how often a charge repeats: a count and a calendar unit, such as 1-month"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
name: "--opening-balance",
|
|
613
|
+
value: "<decimal>",
|
|
614
|
+
role: "value",
|
|
615
|
+
type: "string",
|
|
616
|
+
meaning: "the money it held on --opening-date, as a decimal such as 1500.50; later movements count from it"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
name: "--opening-date",
|
|
620
|
+
value: "<date>",
|
|
621
|
+
role: "value",
|
|
622
|
+
type: "time",
|
|
623
|
+
meaning: "the day of the opening balance, YYYY-MM-DD"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
name: "--institution",
|
|
627
|
+
value: "<text>",
|
|
628
|
+
role: "value",
|
|
629
|
+
type: "string",
|
|
630
|
+
meaning: "the bank or other company that holds it, by name"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: "--unit",
|
|
634
|
+
value: "<text>",
|
|
635
|
+
role: "value",
|
|
636
|
+
type: "string",
|
|
637
|
+
meaning: "what one of it is counted in, such as hour or piece"
|
|
638
|
+
},
|
|
639
|
+
{ name: "--sku", value: "<code>", role: "value", type: "string", meaning: "the stock code the seller gives it" },
|
|
640
|
+
{
|
|
641
|
+
name: "--archived",
|
|
642
|
+
value: "<on|off>",
|
|
643
|
+
role: "value",
|
|
644
|
+
type: "choice",
|
|
645
|
+
meaning: "set it aside as no longer in use, or bring it back; what points at it keeps pointing at it"
|
|
513
646
|
}
|
|
514
647
|
];
|
|
515
648
|
|
|
516
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
649
|
+
// 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
|
|
517
650
|
var HOW_FLAGS = [
|
|
518
651
|
{
|
|
519
652
|
name: "--limit",
|
|
@@ -747,6 +880,7 @@ var HOW_FLAGS = [
|
|
|
747
880
|
type: "switch",
|
|
748
881
|
meaning: "record the action as the owner's although an agent's terminal runs the tool"
|
|
749
882
|
},
|
|
883
|
+
{ name: "--from-app", role: "mode", type: "switch", meaning: "the owner acted in the app; its word, not a check" },
|
|
750
884
|
{
|
|
751
885
|
name: "--allow-any-file",
|
|
752
886
|
role: "mode",
|
|
@@ -798,6 +932,7 @@ var HOW_FLAGS = [
|
|
|
798
932
|
replaces: ["--expected"]
|
|
799
933
|
},
|
|
800
934
|
{ name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
|
|
935
|
+
{ name: "--with-muted", role: "mode", type: "switch", meaning: "also read the chats the owner muted" },
|
|
801
936
|
{
|
|
802
937
|
name: "--for-everyone",
|
|
803
938
|
role: "mode",
|
|
@@ -1090,6 +1225,7 @@ var HOW_FLAGS = [
|
|
|
1090
1225
|
{ name: "--retract", role: "action", type: "switch", meaning: "take the owner's vote back" },
|
|
1091
1226
|
{ name: "--revoke", role: "action", type: "switch", meaning: "forget every login given to a browser app" },
|
|
1092
1227
|
{ name: "--track", role: "action", type: "switch", meaning: "also do it daily while serve runs" },
|
|
1228
|
+
{ name: "--undo", role: "mode", type: "switch", meaning: "put back what the last change replaced, not a new value" },
|
|
1093
1229
|
{
|
|
1094
1230
|
name: "--transcribe",
|
|
1095
1231
|
role: "action",
|
|
@@ -1508,7 +1644,39 @@ var HOW_FLAGS = [
|
|
|
1508
1644
|
}
|
|
1509
1645
|
];
|
|
1510
1646
|
|
|
1511
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1647
|
+
// 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
|
|
1648
|
+
var KNOWLEDGE_FLAGS = [
|
|
1649
|
+
{
|
|
1650
|
+
name: "--quote",
|
|
1651
|
+
value: "<ref=words...>",
|
|
1652
|
+
role: "value",
|
|
1653
|
+
type: "list",
|
|
1654
|
+
meaning: "the words an --evidence reference says that a record rests on, as <ref>=<words>, one per reference"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
name: "--suggest",
|
|
1658
|
+
value: "<text>",
|
|
1659
|
+
role: "value",
|
|
1660
|
+
type: "string",
|
|
1661
|
+
meaning: "wording offered for the owner to take or leave; it decides nothing"
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
name: "--keep-copy",
|
|
1665
|
+
role: "mode",
|
|
1666
|
+
type: "switch",
|
|
1667
|
+
meaning: "keep a copy of the original file as well as its text"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
name: "--max-chars",
|
|
1671
|
+
value: "<n>",
|
|
1672
|
+
role: "budget",
|
|
1673
|
+
type: "count",
|
|
1674
|
+
meaning: "at most this many characters read",
|
|
1675
|
+
unit: "characters"
|
|
1676
|
+
}
|
|
1677
|
+
];
|
|
1678
|
+
|
|
1679
|
+
// 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
|
|
1512
1680
|
var MAIL_FLAGS = [
|
|
1513
1681
|
{
|
|
1514
1682
|
name: "--cc",
|
|
@@ -1538,7 +1706,7 @@ var MAIL_FLAGS = [
|
|
|
1538
1706
|
}
|
|
1539
1707
|
];
|
|
1540
1708
|
|
|
1541
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1709
|
+
// 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
|
|
1542
1710
|
var PRIVACY_FLAGS = [
|
|
1543
1711
|
{
|
|
1544
1712
|
name: "--about-text",
|
|
@@ -1599,8 +1767,15 @@ var PRIVACY_FLAGS = [
|
|
|
1599
1767
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1600
1768
|
];
|
|
1601
1769
|
|
|
1602
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1770
|
+
// 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
|
|
1603
1771
|
var SCHEDULE_FLAGS = [
|
|
1772
|
+
{
|
|
1773
|
+
name: "--locale",
|
|
1774
|
+
value: "<code>",
|
|
1775
|
+
role: "target",
|
|
1776
|
+
type: "string",
|
|
1777
|
+
meaning: "a human language, as an ISO 639-1 code such as en or ru: which language's version it acts on"
|
|
1778
|
+
},
|
|
1604
1779
|
{
|
|
1605
1780
|
name: "--notify-on",
|
|
1606
1781
|
value: "<when>",
|
|
@@ -1625,7 +1800,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1625
1800
|
}
|
|
1626
1801
|
];
|
|
1627
1802
|
|
|
1628
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1803
|
+
// 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
|
|
1629
1804
|
var WHAT_FLAGS = [
|
|
1630
1805
|
{
|
|
1631
1806
|
name: "--analysis-provider",
|
|
@@ -1641,6 +1816,13 @@ var WHAT_FLAGS = [
|
|
|
1641
1816
|
type: "choice",
|
|
1642
1817
|
meaning: "who computes embeddings: a local model or a configured remote model service"
|
|
1643
1818
|
},
|
|
1819
|
+
{
|
|
1820
|
+
name: "--region",
|
|
1821
|
+
value: "<country>",
|
|
1822
|
+
role: "mode",
|
|
1823
|
+
type: "string",
|
|
1824
|
+
meaning: "the two-letter country code, such as ru, that phone numbers written without + are read in"
|
|
1825
|
+
},
|
|
1644
1826
|
{
|
|
1645
1827
|
name: "--consent-provider",
|
|
1646
1828
|
value: "<identity>",
|
|
@@ -2169,7 +2351,13 @@ var WHAT_FLAGS = [
|
|
|
2169
2351
|
meaning: "who joins by the link asks first, and an admin lets them in"
|
|
2170
2352
|
},
|
|
2171
2353
|
{ name: "--can", value: "<rights>", role: "value", type: "list", meaning: "what an admin may do, comma-separated" },
|
|
2172
|
-
{
|
|
2354
|
+
{
|
|
2355
|
+
name: "--channel",
|
|
2356
|
+
role: "value",
|
|
2357
|
+
type: "switch",
|
|
2358
|
+
otherValues: ["channel"],
|
|
2359
|
+
meaning: "a channel instead of a group (a switch), or what a message is written for (<channel>), such as email"
|
|
2360
|
+
},
|
|
2173
2361
|
{
|
|
2174
2362
|
name: "--certainty",
|
|
2175
2363
|
value: "<n>",
|
|
@@ -2378,7 +2566,7 @@ var WHAT_FLAGS = [
|
|
|
2378
2566
|
value: "<file>",
|
|
2379
2567
|
role: "value",
|
|
2380
2568
|
type: "path",
|
|
2381
|
-
meaning: "a file to send with
|
|
2569
|
+
meaning: "a file it reads: one to send with a message, the text its caption, or the new text of a write"
|
|
2382
2570
|
},
|
|
2383
2571
|
{
|
|
2384
2572
|
name: "--filename",
|
|
@@ -2422,7 +2610,15 @@ var WHAT_FLAGS = [
|
|
|
2422
2610
|
meaning: "what kind of thing it is; the command lists the kinds"
|
|
2423
2611
|
},
|
|
2424
2612
|
{ name: "--name", value: "<name>", role: "value", type: "string", meaning: "the name to give it" },
|
|
2613
|
+
{
|
|
2614
|
+
name: "--button",
|
|
2615
|
+
value: "<text=data>",
|
|
2616
|
+
role: "value",
|
|
2617
|
+
type: "string",
|
|
2618
|
+
meaning: "an inline button under a message: its text, then the data a press sends back; repeat for more in one row"
|
|
2619
|
+
},
|
|
2425
2620
|
{ name: "--no-approval", role: "value", type: "switch", meaning: "anyone with the link joins at once" },
|
|
2621
|
+
{ name: "--no-buttons", role: "value", type: "switch", meaning: "take the buttons off the message" },
|
|
2426
2622
|
{
|
|
2427
2623
|
name: "--notification",
|
|
2428
2624
|
value: "<text>",
|
|
@@ -2457,6 +2653,13 @@ var WHAT_FLAGS = [
|
|
|
2457
2653
|
},
|
|
2458
2654
|
{ name: "--remind-time", value: "<time>", role: "value", type: "time", meaning: "when to look at it again" },
|
|
2459
2655
|
{ name: "--role", value: "<role>", role: "value", type: "string", meaning: "the part it plays, in a word or two" },
|
|
2656
|
+
{
|
|
2657
|
+
name: "--label",
|
|
2658
|
+
value: "<label>",
|
|
2659
|
+
role: "value",
|
|
2660
|
+
type: "string",
|
|
2661
|
+
meaning: "a human-readable label for an id, such as the name shown for a custom relationship role"
|
|
2662
|
+
},
|
|
2460
2663
|
{
|
|
2461
2664
|
name: "--scope",
|
|
2462
2665
|
value: "<scope>",
|
|
@@ -2587,7 +2790,7 @@ var WHAT_FLAGS = [
|
|
|
2587
2790
|
}
|
|
2588
2791
|
];
|
|
2589
2792
|
|
|
2590
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2793
|
+
// 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
|
|
2591
2794
|
var FLAG_TYPES = [
|
|
2592
2795
|
"switch",
|
|
2593
2796
|
"count",
|
|
@@ -2675,6 +2878,7 @@ var defineVocabulary = /* @__PURE__ */ __name((input) => parseRegistry("vocabula
|
|
|
2675
2878
|
var verbs = [
|
|
2676
2879
|
["list", "show many"],
|
|
2677
2880
|
["show", "show one"],
|
|
2881
|
+
["browse", "list one level of a remote hierarchy, such as a provider's folders, to choose from; reads only"],
|
|
2678
2882
|
["search", "find by text; the description says where it looks"],
|
|
2679
2883
|
["prepare", "assemble bounded cited context for a selected upcoming activity without applying findings"],
|
|
2680
2884
|
["related", "what is nearest in meaning to one thing, without a query"],
|
|
@@ -2682,6 +2886,7 @@ var verbs = [
|
|
|
2682
2886
|
["status", "how a thing stands right now"],
|
|
2683
2887
|
["check", "verify, and change nothing; the answer says what is wrong and how to fix it"],
|
|
2684
2888
|
["test", "run rules over what is already stored and say what they would have done, doing none of it"],
|
|
2889
|
+
["preview", "render what would be sent or written, from what is stored or a draft; sends and saves nothing"],
|
|
2685
2890
|
["apply", "run the owner's saved rules over what is already stored and change what they match; dry run unless --yes"],
|
|
2686
2891
|
["scan", "read stored messages for what a rule finds, such as tasks, and list it; records it only with --yes"],
|
|
2687
2892
|
["pause", "stop what a running process does for a profile, without stopping the process"],
|
|
@@ -2705,7 +2910,7 @@ var verbs = [
|
|
|
2705
2910
|
["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
|
|
2706
2911
|
["install", "install a system unit"],
|
|
2707
2912
|
["uninstall", "remove a system unit"],
|
|
2708
|
-
["cancel", "stop a job
|
|
2913
|
+
["cancel", "stop a job, a pending thing or a subscription"],
|
|
2709
2914
|
[
|
|
2710
2915
|
"sync",
|
|
2711
2916
|
"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"
|
|
@@ -2728,6 +2933,10 @@ var verbs = [
|
|
|
2728
2933
|
// Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
|
|
2729
2934
|
["link", "record that two identities are one person"],
|
|
2730
2935
|
["unlink", "undo a link"],
|
|
2936
|
+
[
|
|
2937
|
+
"match",
|
|
2938
|
+
"link each waiting record to the thing its identifiers name, such as a person by e-mail address; a name alone never matches"
|
|
2939
|
+
],
|
|
2731
2940
|
["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
|
|
2732
2941
|
["lookup", "ask the messenger who is behind a phone number"],
|
|
2733
2942
|
[
|
|
@@ -2764,6 +2973,7 @@ var verbs = [
|
|
|
2764
2973
|
["assign", "name the person responsible for work, with their task role"],
|
|
2765
2974
|
["reverse", "record that an accepted decision no longer holds, without replacing it"],
|
|
2766
2975
|
["invalidate", "mark a derived record whose supporting evidence no longer holds"],
|
|
2976
|
+
["challenge", "say a record no longer holds, citing what contradicts it; it only proposes, and the owner decides"],
|
|
2767
2977
|
["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
|
|
2768
2978
|
["confirm", "the owner accepts what an agent proposed"],
|
|
2769
2979
|
["reject", "the owner refuses what an agent proposed"],
|
|
@@ -2813,6 +3023,7 @@ var collections = [
|
|
|
2813
3023
|
["topics", "forum topics in a group"],
|
|
2814
3024
|
["models", "local or remote models"],
|
|
2815
3025
|
["tags", "labels the owner puts on things"],
|
|
3026
|
+
["groups", "account groups: the accounts a run in a group reads, such as work and personal (WC-ACCT-13)"],
|
|
2816
3027
|
["searches", "the owner's saved searches"],
|
|
2817
3028
|
["copies", "tables kept aside by a repair"],
|
|
2818
3029
|
["tables", "the tables of the local store, with their kind, row count and size"],
|
|
@@ -2823,6 +3034,7 @@ var collections = [
|
|
|
2823
3034
|
["tracking", "the chats whose member lists are fetched daily"],
|
|
2824
3035
|
["documents", "files imported from Google Drive or Docs, or linked in a chat"],
|
|
2825
3036
|
["notes", "text the owner writes, or files from a notes folder"],
|
|
3037
|
+
["sources", "what the owner adds by hand to read from: a file, a web page or a pasted text, kept as its text"],
|
|
2826
3038
|
["projects", "the owner's work units with a task key"],
|
|
2827
3039
|
[
|
|
2828
3040
|
"annotations",
|
|
@@ -2840,7 +3052,14 @@ var collections = [
|
|
|
2840
3052
|
["leads", "possible customers not yet qualified into a deal"],
|
|
2841
3053
|
["pipelines", "ordered sets of stages a deal moves through"],
|
|
2842
3054
|
["stages", "steps of a pipeline, each open, won or lost"],
|
|
2843
|
-
["products", "goods and services the owner sells, with their prices"],
|
|
3055
|
+
["products", "goods and services the owner sells or buys, with their prices"],
|
|
3056
|
+
["lines", "the rows of an order or an invoice: what, how many and at what price"],
|
|
3057
|
+
["contracts", "agreements the owner is a party to, with their terms, dates and renewal"],
|
|
3058
|
+
["subscriptions", "charges that repeat on a schedule, which the owner pays or is paid, with their price history"],
|
|
3059
|
+
["prices", "what a thing costs over time, each price from its start date"],
|
|
3060
|
+
["wallets", "places that hold the owner's money, such as a bank account, a card or cash"],
|
|
3061
|
+
["transactions", "money that moved in or out of a wallet, as the bank or the owner recorded it"],
|
|
3062
|
+
["splits", "parts of one transaction, each with its own amount and category"],
|
|
2844
3063
|
["users", "people who work in the owner's account at a service, such as a CRM's employees"],
|
|
2845
3064
|
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
2846
3065
|
[
|
|
@@ -2850,6 +3069,7 @@ var collections = [
|
|
|
2850
3069
|
["facts", "what happened, with evidence"],
|
|
2851
3070
|
["memories", "what an agent concluded, with evidence and scope"],
|
|
2852
3071
|
["relationships", "confirmed or suggested links between people, organizations and projects"],
|
|
3072
|
+
["roles", "the parts a person plays in a relationship, built in or the owner's own"],
|
|
2853
3073
|
["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
|
|
2854
3074
|
["files", "files in the source, such as Google Drive, read and changed there"],
|
|
2855
3075
|
["comments", "comments people left on a thing in the source: a channel post or a file"],
|
|
@@ -2980,12 +3200,13 @@ var VOCABULARY = defineVocabulary({
|
|
|
2980
3200
|
...PRIVACY_FLAGS,
|
|
2981
3201
|
...CALENDAR_FLAGS,
|
|
2982
3202
|
...MAIL_FLAGS,
|
|
3203
|
+
...KNOWLEDGE_FLAGS,
|
|
2983
3204
|
...CRM_FLAGS,
|
|
2984
3205
|
...SCHEDULE_FLAGS
|
|
2985
3206
|
]
|
|
2986
3207
|
});
|
|
2987
3208
|
|
|
2988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2989
3210
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2990
3211
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2991
3212
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3208,7 +3429,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3208
3429
|
}
|
|
3209
3430
|
}, "runCommandForAgent");
|
|
3210
3431
|
|
|
3211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3212
3433
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3213
3434
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3214
3435
|
var message = pipe(
|
|
@@ -3467,10 +3688,27 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3467
3688
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3468
3689
|
}, "failed");
|
|
3469
3690
|
|
|
3470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3471
3692
|
import { randomUUID } from "node:crypto";
|
|
3472
3693
|
var MATCHES = 8;
|
|
3473
3694
|
var ANSWER = answerSchema();
|
|
3695
|
+
var agentAnswer = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
3696
|
+
const meta = pipe(looseObject({}), description(`run facts; ${prefix}_tools_search shows the full answer`));
|
|
3697
|
+
const next = optional(pipe(array(looseObject({})), description("steps to run next: command and args")));
|
|
3698
|
+
return looseObject(writes2 ? { item: optional(unknown()), next, meta } : {
|
|
3699
|
+
items: optional(array(unknown())),
|
|
3700
|
+
item: optional(unknown()),
|
|
3701
|
+
page: optional(looseObject({ has_more: boolean() })),
|
|
3702
|
+
next,
|
|
3703
|
+
missing: optional(array(looseObject({ field: string(), why: string() }))),
|
|
3704
|
+
meta
|
|
3705
|
+
});
|
|
3706
|
+
}, "agentAnswer");
|
|
3707
|
+
var listedAs = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
3708
|
+
const checked = toStandardJsonSchema(ANSWER);
|
|
3709
|
+
const shown = toStandardJsonSchema(agentAnswer(prefix, writes2))["~standard"].jsonSchema;
|
|
3710
|
+
return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
|
|
3711
|
+
}, "listedAs");
|
|
3474
3712
|
var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
|
|
3475
3713
|
var haystack = /* @__PURE__ */ __name((command, one) => [command, one.title, one.description, ...Object.keys(one.input.entries)].join(" ").toLowerCase(), "haystack");
|
|
3476
3714
|
var search = /* @__PURE__ */ __name((commands, query) => {
|
|
@@ -3575,7 +3813,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3575
3813
|
arguments: optional(pipe(record(string(), unknown()), description("that command's arguments")))
|
|
3576
3814
|
});
|
|
3577
3815
|
server.registerTool(`${prefix}_read`, {
|
|
3578
|
-
outputSchema:
|
|
3816
|
+
outputSchema: listedAs(prefix, false),
|
|
3579
3817
|
title: "Run a reading command",
|
|
3580
3818
|
description: `Run one command that only reads, with the arguments ${prefix}_tools_search showed. ${untrusted}`,
|
|
3581
3819
|
inputSchema: toStandardJsonSchema(call),
|
|
@@ -3583,7 +3821,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3583
3821
|
}, runner(false));
|
|
3584
3822
|
if (Object.values(commands).some((one) => one.writes))
|
|
3585
3823
|
server.registerTool(`${prefix}_write`, {
|
|
3586
|
-
outputSchema:
|
|
3824
|
+
outputSchema: listedAs(prefix, true),
|
|
3587
3825
|
title: "Run a writing command",
|
|
3588
3826
|
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}`,
|
|
3589
3827
|
inputSchema: toStandardJsonSchema(call),
|