@wirecat/tg-cli 0.118.0 → 0.120.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.
Files changed (137) hide show
  1. package/contracts/wirecat.json +7623 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bot/transport.d.ts.map +1 -1
  4. package/dist/bot/transport.js +15 -8
  5. package/dist/bot/transport.js.map +1 -1
  6. package/dist/bundle/{adapter-4YNP6VCO.js → adapter-OJKHXGBC.js} +49 -50
  7. package/dist/bundle/{all-profiles-MIQDYAGO.js → all-profiles-URIWNL23.js} +10 -10
  8. package/dist/bundle/{anthropic-NTASPJYE.js → anthropic-YUKNB63B.js} +10 -8
  9. package/dist/bundle/{app-server-UJZBJ2SK.js → app-server-H5QNHGH4.js} +43 -43
  10. package/dist/bundle/{bot-api-JZAD4L3N.js → bot-api-27GN4Y3D.js} +49 -49
  11. package/dist/bundle/{bot-history-OUDHH3NU.js → bot-history-VVSWLVZM.js} +18 -18
  12. package/dist/bundle/{bun-EC4HDIRD.js → bun-PAAJX3GU.js} +2 -2
  13. package/dist/bundle/{bun-sqlite-A4HJR6KO.js → bun-sqlite-TPEBWFZH.js} +5 -5
  14. package/dist/bundle/{chunk-KEDHX6XG.js → chunk-34DSPJNN.js} +2 -2
  15. package/dist/bundle/{chunk-JZETEZHC.js → chunk-3FPFRDG2.js} +10 -8
  16. package/dist/bundle/{chunk-2KQHUBTV.js → chunk-3GLLWDM6.js} +12 -12
  17. package/dist/bundle/{chunk-NMT2VGEI.js → chunk-3SANNNWS.js} +3 -3
  18. package/dist/bundle/{chunk-65XV5PPI.js → chunk-4JATS2J5.js} +3 -3
  19. package/dist/bundle/{chunk-OTQDJUES.js → chunk-4OWY7QBE.js} +6 -6
  20. package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-4W4EVVL4.js} +61 -21
  21. package/dist/bundle/{chunk-BNEP5EOV.js → chunk-6XHZV7AQ.js} +4 -4
  22. package/dist/bundle/{chunk-3MQOLYAN.js → chunk-7DPWVKYS.js} +4 -4
  23. package/dist/bundle/{chunk-NUCDEOFC.js → chunk-7I6YVQHW.js} +2 -2
  24. package/dist/bundle/{chunk-HJNRIK5X.js → chunk-7N4IUEX3.js} +9 -8
  25. package/dist/bundle/{chunk-RG2E7ZQZ.js → chunk-7VNV426X.js} +85 -17
  26. package/dist/bundle/{chunk-DSZJREEO.js → chunk-7WS3ULOO.js} +2205 -911
  27. package/dist/bundle/{chunk-TMTEWOQS.js → chunk-B7B65ZLU.js} +5 -3
  28. package/dist/bundle/{chunk-EPXVRJAX.js → chunk-CGUDXNJE.js} +2 -2
  29. package/dist/bundle/{chunk-EQJ6NLF5.js → chunk-CLTMVPGT.js} +13 -13
  30. package/dist/bundle/{chunk-6ZMTEUVU.js → chunk-CLURRDNU.js} +6 -6
  31. package/dist/bundle/{chunk-ZXXTJF4Z.js → chunk-CYWV2RLN.js} +4 -4
  32. package/dist/bundle/{chunk-5IIU7X4S.js → chunk-D2WNQJUQ.js} +1 -1
  33. package/dist/bundle/{chunk-PB252TT3.js → chunk-DDKFAUQD.js} +2 -2
  34. package/dist/bundle/{chunk-5LDWBEWU.js → chunk-DE7QIEUP.js} +53 -35
  35. package/dist/bundle/{chunk-JPVFYMSQ.js → chunk-DH7VKHTZ.js} +4 -4
  36. package/dist/bundle/{chunk-GXCJ47SJ.js → chunk-DQTQO6PB.js} +3265 -1034
  37. package/dist/bundle/{chunk-JWIUK3SK.js → chunk-FATTEYZH.js} +2 -2
  38. package/dist/bundle/{chunk-I4TI5HDJ.js → chunk-FPWXG53C.js} +11 -11
  39. package/dist/bundle/{chunk-PO74BDER.js → chunk-H5XC2WYO.js} +35 -589
  40. package/dist/bundle/{chunk-ZMUC3UQO.js → chunk-HDSKBXAF.js} +3 -3
  41. package/dist/bundle/{chunk-PWCQC56A.js → chunk-HIBYYKGO.js} +1 -1
  42. package/dist/bundle/{chunk-GLRRCKP6.js → chunk-JJY3TQTM.js} +23 -5
  43. package/dist/bundle/{chunk-YPRUWRKE.js → chunk-JQLGS3SG.js} +1 -1
  44. package/dist/bundle/{chunk-MBH7IKLT.js → chunk-JSEIT2WO.js} +1 -1
  45. package/dist/bundle/{chunk-57LKX6N2.js → chunk-KLHOQ6XQ.js} +1 -1
  46. package/dist/bundle/{chunk-4BV4UMBB.js → chunk-KP26Y5OA.js} +1628 -367
  47. package/dist/bundle/{chunk-MZNOASAW.js → chunk-KRCMKFUV.js} +16 -3
  48. package/dist/bundle/{chunk-6AXUEJGL.js → chunk-KTV5Y5EX.js} +2 -2
  49. package/dist/bundle/{chunk-YEOSV6JC.js → chunk-KW6JZGG3.js} +1 -1
  50. package/dist/bundle/{chunk-H6S3C3MH.js → chunk-LLCGOZ44.js} +4 -4
  51. package/dist/bundle/{chunk-CEY43D3A.js → chunk-LS72R7DN.js} +34 -34
  52. package/dist/bundle/chunk-LVGX7VTD.js +138 -0
  53. package/dist/bundle/{chunk-VW6BF6M7.js → chunk-MCPOZNWG.js} +1 -1
  54. package/dist/bundle/{chunk-G3RT2EQI.js → chunk-MMPISXSU.js} +2 -2
  55. package/dist/bundle/{chunk-6RI4TEIC.js → chunk-MTD6WZKV.js} +2 -2
  56. package/dist/bundle/{chunk-JLJKGKU2.js → chunk-PDYTNTQI.js} +6 -6
  57. package/dist/bundle/{chunk-P3ASN72F.js → chunk-RX5CJ55S.js} +1 -1
  58. package/dist/bundle/{chunk-76EKXFX2.js → chunk-S6OC367D.js} +24 -2
  59. package/dist/bundle/{chunk-PW3HFIJA.js → chunk-THJHYMFR.js} +1489 -1548
  60. package/dist/bundle/{chunk-5QYU7B27.js → chunk-U2TPRUWK.js} +689 -482
  61. package/dist/bundle/{chunk-YHZFGUAP.js → chunk-U6HEZPCR.js} +19 -19
  62. package/dist/bundle/{chunk-BXTDAGM4.js → chunk-VUBZFMGP.js} +2 -2
  63. package/dist/bundle/{chunk-2NA5KVP6.js → chunk-VUUR2SRS.js} +264 -45
  64. package/dist/bundle/{chunk-EPCFXKTX.js → chunk-WGGSFGNZ.js} +34 -8
  65. package/dist/bundle/{chunk-Y64SI2RO.js → chunk-WLBPNLDF.js} +3 -3
  66. package/dist/bundle/{chunk-GI4MTNA2.js → chunk-WQ55F4Y3.js} +8 -8
  67. package/dist/bundle/{chunk-FHMK6OK4.js → chunk-YBOVL25O.js} +96 -30
  68. package/dist/bundle/{chunk-DKFC5ZZ3.js → chunk-YDROJG2Y.js} +86 -29
  69. package/dist/bundle/{chunk-NKFTZVQU.js → chunk-YQKEPT22.js} +1 -1
  70. package/dist/bundle/{chunk-GIM37COQ.js → chunk-ZON7K5QE.js} +3 -3
  71. package/dist/bundle/{chunk-JWPSVS6C.js → chunk-ZRRZTPSB.js} +19059 -17055
  72. package/dist/bundle/command-contract-KW6FNOJO.js +33 -0
  73. package/dist/bundle/{decode-NMNPLKNR.js → decode-RVWSCZW4.js} +5 -5
  74. package/dist/bundle/{dispatch-OP27MWX5.js → dispatch-U2DW6UI7.js} +10 -10
  75. package/dist/bundle/{echarts-S46LEIPS.js → echarts-6VNUD3JF.js} +2 -2
  76. package/dist/bundle/{embed-I5ZYHGYC.js → embed-LWLCQKIK.js} +6 -6
  77. package/dist/bundle/{embedder-LTJI67N2.js → embedder-CXKHLRJT.js} +9 -9
  78. package/dist/bundle/{entry-O6BUPXF7.js → entry-HV4NSX3Z.js} +7 -7
  79. package/dist/bundle/{failure-4JUQFXJT.js → failure-HJD7S5UA.js} +2 -2
  80. package/dist/bundle/{first-run-PMZNCDGD.js → first-run-OPI6NIWQ.js} +11 -11
  81. package/dist/bundle/first-screen-BVQLF4LN.js +31 -0
  82. package/dist/bundle/{instructions-AUEGY3VO.js → instructions-TK4HXL3A.js} +1 -1
  83. package/dist/bundle/{mcp-M4QN2E7R.js → mcp-7KQUJNFN.js} +2 -2
  84. package/dist/bundle/{node-XRA7RBCQ.js → node-WFPNBUCU.js} +2 -2
  85. package/dist/bundle/{node-sqlite-DEZO6LRS.js → node-sqlite-L5BRGJLK.js} +6 -6
  86. package/dist/bundle/{oauth-DAVC7WCD.js → oauth-CGVWL35B.js} +7 -7
  87. package/dist/bundle/{open-DE2YO4T7.js → open-HLL55C5S.js} +5 -5
  88. package/dist/bundle/{openai-5BKGAULH.js → openai-YFCNXIJ4.js} +16 -37
  89. package/dist/bundle/{process-4ZHPNUIQ.js → process-4A5JP5LO.js} +1 -1
  90. package/dist/bundle/{program-EGTKSNB4.js → program-IFGQGSUF.js} +56 -53
  91. package/dist/bundle/{prompt-HWCWHHPE.js → prompt-B5FYE2DQ.js} +7 -5
  92. package/dist/bundle/{proxy-transport-4DPZB2W2.js → proxy-transport-ENU2SJYT.js} +5 -5
  93. package/dist/bundle/{recognize-NG6RXNGF.js → recognize-ZHMHGIV3.js} +4 -4
  94. package/dist/bundle/{remote-ZKXIIGYH.js → remote-A3W5HE52.js} +7 -7
  95. package/dist/bundle/{rerank-TX5QFURV.js → rerank-HWJAQOZM.js} +7 -7
  96. package/dist/bundle/{serve-XAS6DECW.js → serve-PP326Q2F.js} +9 -9
  97. package/dist/bundle/{server-CNPIWBYU.js → server-MV6CL63L.js} +35 -35
  98. package/dist/bundle/server-TZGGOJ26.js +60 -0
  99. package/dist/bundle/{state-3HTUETTS.js → state-Y3RJ7ZXB.js} +6 -6
  100. package/dist/bundle/{store-B5VZWJHN.js → store-EVNI2MHZ.js} +36 -13
  101. package/dist/bundle/store-maintenance-command-XPQE47RE.js +49 -0
  102. package/dist/bundle/tg.js +38 -14
  103. package/dist/commands/account-removal.d.ts +3 -0
  104. package/dist/commands/account-removal.d.ts.map +1 -0
  105. package/dist/commands/account-removal.js +57 -0
  106. package/dist/commands/account-removal.js.map +1 -0
  107. package/dist/commands/context.d.ts.map +1 -1
  108. package/dist/commands/context.js +2 -0
  109. package/dist/commands/context.js.map +1 -1
  110. package/dist/http.d.ts +6 -0
  111. package/dist/http.d.ts.map +1 -0
  112. package/dist/http.js +8 -0
  113. package/dist/http.js.map +1 -0
  114. package/dist/identity.d.ts +4 -0
  115. package/dist/identity.d.ts.map +1 -1
  116. package/dist/identity.js +14 -0
  117. package/dist/identity.js.map +1 -1
  118. package/dist/telegram/map.d.ts.map +1 -1
  119. package/dist/telegram/map.js +3 -0
  120. package/dist/telegram/map.js.map +1 -1
  121. package/dist/telegram/registration.d.ts +1 -1
  122. package/dist/telegram/registration.d.ts.map +1 -1
  123. package/dist/telegram/registration.js +4 -1
  124. package/dist/telegram/registration.js.map +1 -1
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/dist/wcat.d.ts +3 -0
  128. package/dist/wcat.d.ts.map +1 -0
  129. package/dist/wcat.js +4 -0
  130. package/dist/wcat.js.map +1 -0
  131. package/package.json +7 -6
  132. package/dist/bundle/chunk-TSTEZNSX.js +0 -33
  133. package/dist/bundle/command-contract-7GZ6HAA6.js +0 -33
  134. package/dist/bundle/first-screen-BGML5DSO.js +0 -31
  135. package/dist/bundle/server-FRTKLHZF.js +0 -60
  136. package/dist/bundle/store-maintenance-command-VG3CLELA.js +0 -50
  137. /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-YVNHQFLC.js} +0 -0
@@ -7,10 +7,10 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-RG2E7ZQZ.js";
10
+ } from "./chunk-7VNV426X.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-KEDHX6XG.js";
13
+ } from "./chunk-34DSPJNN.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
@@ -18,7 +18,7 @@ import {
18
18
  refuseLacking,
19
19
  servicesFor,
20
20
  storeModeDeps
21
- } from "./chunk-DSZJREEO.js";
21
+ } from "./chunk-7WS3ULOO.js";
22
22
  import {
23
23
  DEFAULT_OUTPUT_BYTES,
24
24
  ENTITIES,
@@ -28,40 +28,40 @@ import {
28
28
  authorityAllowed,
29
29
  botApiAllowed,
30
30
  changesMessenger,
31
- enclosingTraceId,
32
31
  flatten,
33
- inRun,
34
32
  judgedAnswer,
35
33
  judgedEffects,
36
34
  keyForCommand,
37
35
  levelFor,
38
36
  listOf,
39
- newRunId,
40
37
  readKeysForCommand,
41
38
  refuseStoreChange,
42
39
  sealed,
43
- startRecording,
44
- traceOf
45
- } from "./chunk-PW3HFIJA.js";
40
+ startRecording
41
+ } from "./chunk-THJHYMFR.js";
46
42
  import {
47
43
  currentCaller,
48
44
  keepsSuccess,
49
45
  runContextOf,
50
46
  withCaller
51
- } from "./chunk-JZETEZHC.js";
47
+ } from "./chunk-3FPFRDG2.js";
52
48
  import {
53
- queryDescription
54
- } from "./chunk-4BV4UMBB.js";
49
+ enclosingTraceId,
50
+ inRun,
51
+ newRunId,
52
+ queryDescription,
53
+ traceOf
54
+ } from "./chunk-KP26Y5OA.js";
55
55
  import {
56
56
  storeDamaged
57
- } from "./chunk-Y64SI2RO.js";
57
+ } from "./chunk-WLBPNLDF.js";
58
58
  import {
59
59
  MAX_BUFFERED_INPUT
60
- } from "./chunk-6AXUEJGL.js";
60
+ } from "./chunk-KTV5Y5EX.js";
61
61
  import {
62
62
  captureStreams,
63
63
  traceIdOf
64
- } from "./chunk-YHZFGUAP.js";
64
+ } from "./chunk-U6HEZPCR.js";
65
65
  import {
66
66
  COMPACT_FLAG,
67
67
  SNAKE_CASE,
@@ -100,25 +100,25 @@ import {
100
100
  unknown,
101
101
  word,
102
102
  writes
103
- } from "./chunk-EPCFXKTX.js";
103
+ } from "./chunk-WGGSFGNZ.js";
104
104
  import {
105
105
  CliError,
106
106
  errorCodes
107
- } from "./chunk-BXTDAGM4.js";
107
+ } from "./chunk-VUBZFMGP.js";
108
108
  import {
109
109
  __name
110
110
  } from "./chunk-ZVVMGPBJ.js";
111
111
 
112
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/agent.js
112
+ // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/mcp/agent.js
113
113
  import { Readable } from "node:stream";
114
114
 
115
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
115
+ // 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
116
116
  var LINT_SEVERITIES = ["high", "medium", "low"];
117
117
  var lintRuleSchema = strictObject({
118
118
  id: word,
119
119
  severity: picklist(LINT_SEVERITIES),
120
120
  /** What the rule looks at; a violation's target names one of these. */
121
- scope: picklist(["command", "group", "argument", "option", "flag", "key"]),
121
+ scope: picklist(["command", "group", "argument", "option", "flag", "key", "source"]),
122
122
  summary: text
123
123
  });
124
124
  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");
@@ -227,6 +227,18 @@ var LINT_RULES = defineLintRules([
227
227
  severity: "high",
228
228
  scope: "group",
229
229
  summary: "the CLI keeps a failed run and reads it back: `runs list`, `runs show`, global `--record` and `--no-record`"
230
+ },
231
+ {
232
+ id: "raw-network",
233
+ severity: "high",
234
+ scope: "source",
235
+ 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`"
236
+ },
237
+ {
238
+ id: "undeclared-host",
239
+ severity: "medium",
240
+ scope: "source",
241
+ summary: "every `http(s)://` host in the CLI's own source is in the manifest's `network.hosts`"
230
242
  }
231
243
  ]);
232
244
  var baselineSchema = array(text);
@@ -240,7 +252,7 @@ var overrideSchema = strictObject({
240
252
  });
241
253
  var overridesSchema = array(overrideSchema);
242
254
 
243
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
255
+ // 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
244
256
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
245
257
  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");
246
258
  var AUDIT_RULES = defineAuditRules([
@@ -285,11 +297,13 @@ var parityGroupSchema = strictObject({
285
297
  /** Permanent differences, each with its reason; they count against the override budget of the group. */
286
298
  differences: array(strictObject({
287
299
  rule: word,
288
- /** `<clis> <path> <flag>`; with `absent`, only `<path> <flag>`: the CLI list is whoever else has it. */
300
+ /** `<clis> <path> <flag>`; with `absent` or `only`, only `<path> <flag>`: the CLI list is whoever else was compared. */
289
301
  target: text,
290
302
  expected: optional(text),
291
303
  /** The CLI that lacks the path or flag by design; the rest must agree, so other CLIs joining do not stale it. */
292
304
  absent: optional(word),
305
+ /** The one CLI that has the path or flag by design; every other CLI compared must lack it. */
306
+ only: optional(word),
293
307
  reason: pipe(text, minLength(10, "say why, in a sentence"))
294
308
  }))
295
309
  });
@@ -297,7 +311,8 @@ var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity
297
311
  ...duplicates(groups.map((group) => group.name)).map((name) => `"${name}" is listed twice`),
298
312
  ...groups.flatMap((group) => [
299
313
  ...duplicates(group.differences.map((entry) => `${entry.rule} ${entry.target}`)).map((both) => `${group.name}: "${both}" is listed twice`),
300
- ...group.differences.filter((entry) => entry.absent && entry.expected).map((entry) => `${group.name}: "${entry.target}" has \`absent\`, which measures the values itself; drop \`expected\``)
314
+ ...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\``),
315
+ ...group.differences.filter((entry) => entry.absent && entry.only).map((entry) => `${group.name}: "${entry.target}" has both \`absent\` and \`only\`; keep one`)
301
316
  ])
302
317
  ]), "defineParityGroups");
303
318
  var MEMO_HAS_NO_PROFILES = [
@@ -312,13 +327,19 @@ var MEMO_HAS_NO_PROFILES = [
312
327
  absent: "memo",
313
328
  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)"
314
329
  }));
330
+ var MEMO_DOCTOR_DEEP = {
331
+ rule: "same-path-contract",
332
+ target: "doctor --deep",
333
+ only: "memo",
334
+ 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"
335
+ };
315
336
  var PARITY_GROUPS = defineParityGroups([
316
337
  { name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
317
338
  {
318
339
  name: "all",
319
340
  members: ["tg", "max", "memo", "drive", "zm", "wa"],
320
341
  covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
321
- differences: MEMO_HAS_NO_PROFILES
342
+ differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
322
343
  },
323
344
  // mail's `search messages` is cli-core's mail search, not the messengers' command: --complete took their 20-odd
324
345
  // differences as inherited (https://github.com/WireCatLabs/cli-base/issues/390). mail is compared everywhere else
@@ -327,7 +348,7 @@ var PARITY_GROUPS = defineParityGroups([
327
348
  name: "mail-shared",
328
349
  members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
329
350
  covers: ["commands", "doctor", "skill", "mcp", "upgrade", "notes", "meetings"],
330
- differences: MEMO_HAS_NO_PROFILES
351
+ differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
331
352
  },
332
353
  // gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
333
354
  // CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
@@ -343,7 +364,7 @@ var PARITY_GROUPS = defineParityGroups([
343
364
  name: "shared-roots",
344
365
  members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
345
366
  covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
346
- differences: MEMO_HAS_NO_PROFILES
367
+ differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
347
368
  }
348
369
  ]);
349
370
  var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
@@ -357,7 +378,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
357
378
  { path: ["upgrade"], meaning: "updates the CLI" }
358
379
  ]);
359
380
 
360
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
381
+ // 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
361
382
  var fieldRuleSchema = strictObject({ id: word, rule: text });
362
383
  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");
363
384
  var FIELD_RULES = defineFieldRules([
@@ -373,7 +394,7 @@ var FIELD_RULES = defineFieldRules([
373
394
  }
374
395
  ]);
375
396
 
376
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
397
+ // 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
377
398
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
378
399
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
379
400
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -395,7 +416,7 @@ var IDENTIFIERS = defineIdentifiers([
395
416
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
396
417
  ]);
397
418
 
398
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
419
+ // 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
399
420
  var CALENDAR_FLAGS = [
400
421
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
401
422
  {
@@ -403,14 +424,14 @@ var CALENDAR_FLAGS = [
403
424
  value: "<date>",
404
425
  role: "value",
405
426
  type: "time",
406
- meaning: "the first day of something that lasts whole days, such as an all-day event"
427
+ meaning: "the first day of something that lasts whole days, such as an all-day event or a contract"
407
428
  },
408
429
  {
409
430
  name: "--end-date",
410
431
  value: "<date>",
411
432
  role: "value",
412
433
  type: "time",
413
- meaning: "the last day of something that lasts whole days, such as an all-day event"
434
+ meaning: "the last day of something that lasts whole days, such as an all-day event or a contract"
414
435
  },
415
436
  { name: "--location", value: "<text>", role: "value", type: "string", meaning: "where it takes place" },
416
437
  {
@@ -469,7 +490,7 @@ var CALENDAR_FLAGS = [
469
490
  }
470
491
  ];
471
492
 
472
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
493
+ // 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
473
494
  var CRM_FLAGS = [
474
495
  {
475
496
  name: "--pipeline",
@@ -500,16 +521,126 @@ var CRM_FLAGS = [
500
521
  type: "time",
501
522
  meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
502
523
  },
524
+ {
525
+ name: "--position",
526
+ value: "<title>",
527
+ role: "value",
528
+ type: "string",
529
+ meaning: "a person's job title on a relationship, stored as position; never the role"
530
+ },
503
531
  {
504
532
  name: "--owner",
505
533
  value: "<user>",
506
534
  role: "value",
507
535
  type: "id",
508
536
  meaning: "the CRM user a record is assigned to, by the CRM's id"
537
+ },
538
+ {
539
+ name: "--status",
540
+ value: "<state>",
541
+ role: "value",
542
+ type: "choice",
543
+ meaning: "the state to put it in; the command lists the states"
544
+ },
545
+ {
546
+ name: "--product",
547
+ value: "<product>",
548
+ role: "value",
549
+ type: "string",
550
+ meaning: "a product or service the owner sells or buys: product:<id>"
551
+ },
552
+ { name: "--contract", value: "<contract>", role: "value", type: "string", meaning: "a contract: contract:<id>" },
553
+ { name: "--payment", value: "<payment>", role: "value", type: "string", meaning: "a payment: payment:<id>" },
554
+ {
555
+ name: "--refund-of",
556
+ value: "<payment>",
557
+ role: "value",
558
+ type: "string",
559
+ meaning: "the payment this one gives money back for: payment:<id>"
560
+ },
561
+ { name: "--wallet", value: "<wallet>", role: "value", type: "string", meaning: "a wallet: wallet:<id>" },
562
+ {
563
+ name: "--supplier",
564
+ value: "<party>",
565
+ role: "value",
566
+ type: "string",
567
+ meaning: "who supplies it: person:<uid> or organization:<id>"
568
+ },
569
+ {
570
+ name: "--customer",
571
+ value: "<party>",
572
+ role: "value",
573
+ type: "string",
574
+ meaning: "who receives it and pays for it: person:<uid> or organization:<id>"
575
+ },
576
+ {
577
+ name: "--trial-end-date",
578
+ value: "<date>",
579
+ role: "value",
580
+ type: "time",
581
+ meaning: "the day a free trial ends, YYYY-MM-DD"
582
+ },
583
+ {
584
+ name: "--notice-days",
585
+ value: "<days>",
586
+ role: "value",
587
+ type: "count",
588
+ meaning: "how many days before its end a party must say it will not go on",
589
+ unit: "days"
590
+ },
591
+ {
592
+ name: "--auto-renew",
593
+ value: "<on|off>",
594
+ role: "value",
595
+ type: "choice",
596
+ meaning: "it renews by itself at its end, or it does not"
597
+ },
598
+ {
599
+ name: "--period",
600
+ value: "<count-unit>",
601
+ role: "value",
602
+ type: "duration",
603
+ meaning: "how often a charge repeats: a count and a calendar unit, such as 1-month"
604
+ },
605
+ {
606
+ name: "--opening-balance",
607
+ value: "<decimal>",
608
+ role: "value",
609
+ type: "string",
610
+ meaning: "the money it held on --opening-date, as a decimal such as 1500.50; later movements count from it"
611
+ },
612
+ {
613
+ name: "--opening-date",
614
+ value: "<date>",
615
+ role: "value",
616
+ type: "time",
617
+ meaning: "the day of the opening balance, YYYY-MM-DD"
618
+ },
619
+ {
620
+ name: "--institution",
621
+ value: "<text>",
622
+ role: "value",
623
+ type: "string",
624
+ meaning: "the bank or other company that holds it, by name"
625
+ },
626
+ {
627
+ name: "--unit",
628
+ value: "<text>",
629
+ role: "value",
630
+ type: "string",
631
+ meaning: "what one of it is counted in, such as hour or piece"
632
+ },
633
+ { name: "--sku", value: "<code>", role: "value", type: "string", meaning: "the stock code the seller gives it" },
634
+ {
635
+ name: "--archived",
636
+ value: "<on|off>",
637
+ role: "value",
638
+ type: "choice",
639
+ meaning: "set it aside as no longer in use, or bring it back; what points at it keeps pointing at it"
509
640
  }
510
641
  ];
511
642
 
512
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
643
+ // 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
513
644
  var HOW_FLAGS = [
514
645
  {
515
646
  name: "--limit",
@@ -743,6 +874,7 @@ var HOW_FLAGS = [
743
874
  type: "switch",
744
875
  meaning: "record the action as the owner's although an agent's terminal runs the tool"
745
876
  },
877
+ { name: "--from-app", role: "mode", type: "switch", meaning: "the owner acted in the app; its word, not a check" },
746
878
  {
747
879
  name: "--allow-any-file",
748
880
  role: "mode",
@@ -794,6 +926,7 @@ var HOW_FLAGS = [
794
926
  replaces: ["--expected"]
795
927
  },
796
928
  { name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
929
+ { name: "--with-muted", role: "mode", type: "switch", meaning: "also read the chats the owner muted" },
797
930
  {
798
931
  name: "--for-everyone",
799
932
  role: "mode",
@@ -1086,6 +1219,7 @@ var HOW_FLAGS = [
1086
1219
  { name: "--retract", role: "action", type: "switch", meaning: "take the owner's vote back" },
1087
1220
  { name: "--revoke", role: "action", type: "switch", meaning: "forget every login given to a browser app" },
1088
1221
  { name: "--track", role: "action", type: "switch", meaning: "also do it daily while serve runs" },
1222
+ { name: "--undo", role: "mode", type: "switch", meaning: "put back what the last change replaced, not a new value" },
1089
1223
  {
1090
1224
  name: "--transcribe",
1091
1225
  role: "action",
@@ -1504,7 +1638,39 @@ var HOW_FLAGS = [
1504
1638
  }
1505
1639
  ];
1506
1640
 
1507
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
1641
+ // 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
1642
+ var KNOWLEDGE_FLAGS = [
1643
+ {
1644
+ name: "--quote",
1645
+ value: "<ref=words...>",
1646
+ role: "value",
1647
+ type: "list",
1648
+ meaning: "the words an --evidence reference says that a record rests on, as <ref>=<words>, one per reference"
1649
+ },
1650
+ {
1651
+ name: "--suggest",
1652
+ value: "<text>",
1653
+ role: "value",
1654
+ type: "string",
1655
+ meaning: "wording offered for the owner to take or leave; it decides nothing"
1656
+ },
1657
+ {
1658
+ name: "--keep-copy",
1659
+ role: "mode",
1660
+ type: "switch",
1661
+ meaning: "keep a copy of the original file as well as its text"
1662
+ },
1663
+ {
1664
+ name: "--max-chars",
1665
+ value: "<n>",
1666
+ role: "budget",
1667
+ type: "count",
1668
+ meaning: "at most this many characters read",
1669
+ unit: "characters"
1670
+ }
1671
+ ];
1672
+
1673
+ // 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
1508
1674
  var MAIL_FLAGS = [
1509
1675
  {
1510
1676
  name: "--cc",
@@ -1534,7 +1700,7 @@ var MAIL_FLAGS = [
1534
1700
  }
1535
1701
  ];
1536
1702
 
1537
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
1703
+ // 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
1538
1704
  var PRIVACY_FLAGS = [
1539
1705
  {
1540
1706
  name: "--about-text",
@@ -1595,8 +1761,15 @@ var PRIVACY_FLAGS = [
1595
1761
  { name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
1596
1762
  ];
1597
1763
 
1598
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
1764
+ // 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
1599
1765
  var SCHEDULE_FLAGS = [
1766
+ {
1767
+ name: "--locale",
1768
+ value: "<code>",
1769
+ role: "target",
1770
+ type: "string",
1771
+ meaning: "a human language, as an ISO 639-1 code such as en or ru: which language's version it acts on"
1772
+ },
1600
1773
  {
1601
1774
  name: "--notify-on",
1602
1775
  value: "<when>",
@@ -1621,7 +1794,7 @@ var SCHEDULE_FLAGS = [
1621
1794
  }
1622
1795
  ];
1623
1796
 
1624
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
1797
+ // 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
1625
1798
  var WHAT_FLAGS = [
1626
1799
  {
1627
1800
  name: "--analysis-provider",
@@ -1637,6 +1810,13 @@ var WHAT_FLAGS = [
1637
1810
  type: "choice",
1638
1811
  meaning: "who computes embeddings: a local model or a configured remote model service"
1639
1812
  },
1813
+ {
1814
+ name: "--region",
1815
+ value: "<country>",
1816
+ role: "mode",
1817
+ type: "string",
1818
+ meaning: "the two-letter country code, such as ru, that phone numbers written without + are read in"
1819
+ },
1640
1820
  {
1641
1821
  name: "--consent-provider",
1642
1822
  value: "<identity>",
@@ -2165,7 +2345,13 @@ var WHAT_FLAGS = [
2165
2345
  meaning: "who joins by the link asks first, and an admin lets them in"
2166
2346
  },
2167
2347
  { name: "--can", value: "<rights>", role: "value", type: "list", meaning: "what an admin may do, comma-separated" },
2168
- { name: "--channel", role: "value", type: "switch", meaning: "a channel instead of a group" },
2348
+ {
2349
+ name: "--channel",
2350
+ role: "value",
2351
+ type: "switch",
2352
+ otherValues: ["channel"],
2353
+ meaning: "a channel instead of a group (a switch), or what a message is written for (<channel>), such as email"
2354
+ },
2169
2355
  {
2170
2356
  name: "--certainty",
2171
2357
  value: "<n>",
@@ -2374,7 +2560,7 @@ var WHAT_FLAGS = [
2374
2560
  value: "<file>",
2375
2561
  role: "value",
2376
2562
  type: "path",
2377
- meaning: "a file to send with the message; the text becomes its caption"
2563
+ meaning: "a file it reads: one to send with a message, the text its caption, or the new text of a write"
2378
2564
  },
2379
2565
  {
2380
2566
  name: "--filename",
@@ -2418,7 +2604,15 @@ var WHAT_FLAGS = [
2418
2604
  meaning: "what kind of thing it is; the command lists the kinds"
2419
2605
  },
2420
2606
  { name: "--name", value: "<name>", role: "value", type: "string", meaning: "the name to give it" },
2607
+ {
2608
+ name: "--button",
2609
+ value: "<text=data>",
2610
+ role: "value",
2611
+ type: "string",
2612
+ meaning: "an inline button under a message: its text, then the data a press sends back; repeat for more in one row"
2613
+ },
2421
2614
  { name: "--no-approval", role: "value", type: "switch", meaning: "anyone with the link joins at once" },
2615
+ { name: "--no-buttons", role: "value", type: "switch", meaning: "take the buttons off the message" },
2422
2616
  {
2423
2617
  name: "--notification",
2424
2618
  value: "<text>",
@@ -2453,6 +2647,13 @@ var WHAT_FLAGS = [
2453
2647
  },
2454
2648
  { name: "--remind-time", value: "<time>", role: "value", type: "time", meaning: "when to look at it again" },
2455
2649
  { name: "--role", value: "<role>", role: "value", type: "string", meaning: "the part it plays, in a word or two" },
2650
+ {
2651
+ name: "--label",
2652
+ value: "<label>",
2653
+ role: "value",
2654
+ type: "string",
2655
+ meaning: "a human-readable label for an id, such as the name shown for a custom relationship role"
2656
+ },
2456
2657
  {
2457
2658
  name: "--scope",
2458
2659
  value: "<scope>",
@@ -2583,7 +2784,7 @@ var WHAT_FLAGS = [
2583
2784
  }
2584
2785
  ];
2585
2786
 
2586
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
2787
+ // 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
2587
2788
  var FLAG_TYPES = [
2588
2789
  "switch",
2589
2790
  "count",
@@ -2671,6 +2872,7 @@ var defineVocabulary = /* @__PURE__ */ __name((input) => parseRegistry("vocabula
2671
2872
  var verbs = [
2672
2873
  ["list", "show many"],
2673
2874
  ["show", "show one"],
2875
+ ["browse", "list one level of a remote hierarchy, such as a provider's folders, to choose from; reads only"],
2674
2876
  ["search", "find by text; the description says where it looks"],
2675
2877
  ["prepare", "assemble bounded cited context for a selected upcoming activity without applying findings"],
2676
2878
  ["related", "what is nearest in meaning to one thing, without a query"],
@@ -2678,6 +2880,7 @@ var verbs = [
2678
2880
  ["status", "how a thing stands right now"],
2679
2881
  ["check", "verify, and change nothing; the answer says what is wrong and how to fix it"],
2680
2882
  ["test", "run rules over what is already stored and say what they would have done, doing none of it"],
2883
+ ["preview", "render what would be sent or written, from what is stored or a draft; sends and saves nothing"],
2681
2884
  ["apply", "run the owner's saved rules over what is already stored and change what they match; dry run unless --yes"],
2682
2885
  ["scan", "read stored messages for what a rule finds, such as tasks, and list it; records it only with --yes"],
2683
2886
  ["pause", "stop what a running process does for a profile, without stopping the process"],
@@ -2701,7 +2904,7 @@ var verbs = [
2701
2904
  ["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
2702
2905
  ["install", "install a system unit"],
2703
2906
  ["uninstall", "remove a system unit"],
2704
- ["cancel", "stop a job or a pending thing"],
2907
+ ["cancel", "stop a job, a pending thing or a subscription"],
2705
2908
  [
2706
2909
  "sync",
2707
2910
  "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"
@@ -2724,6 +2927,10 @@ var verbs = [
2724
2927
  // Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
2725
2928
  ["link", "record that two identities are one person"],
2726
2929
  ["unlink", "undo a link"],
2930
+ [
2931
+ "match",
2932
+ "link each waiting record to the thing its identifiers name, such as a person by e-mail address; a name alone never matches"
2933
+ ],
2727
2934
  ["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
2728
2935
  ["lookup", "ask the messenger who is behind a phone number"],
2729
2936
  [
@@ -2760,6 +2967,7 @@ var verbs = [
2760
2967
  ["assign", "name the person responsible for work, with their task role"],
2761
2968
  ["reverse", "record that an accepted decision no longer holds, without replacing it"],
2762
2969
  ["invalidate", "mark a derived record whose supporting evidence no longer holds"],
2970
+ ["challenge", "say a record no longer holds, citing what contradicts it; it only proposes, and the owner decides"],
2763
2971
  ["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
2764
2972
  ["confirm", "the owner accepts what an agent proposed"],
2765
2973
  ["reject", "the owner refuses what an agent proposed"],
@@ -2809,6 +3017,7 @@ var collections = [
2809
3017
  ["topics", "forum topics in a group"],
2810
3018
  ["models", "local or remote models"],
2811
3019
  ["tags", "labels the owner puts on things"],
3020
+ ["groups", "account groups: the accounts a run in a group reads, such as work and personal (WC-ACCT-13)"],
2812
3021
  ["searches", "the owner's saved searches"],
2813
3022
  ["copies", "tables kept aside by a repair"],
2814
3023
  ["tables", "the tables of the local store, with their kind, row count and size"],
@@ -2819,6 +3028,7 @@ var collections = [
2819
3028
  ["tracking", "the chats whose member lists are fetched daily"],
2820
3029
  ["documents", "files imported from Google Drive or Docs, or linked in a chat"],
2821
3030
  ["notes", "text the owner writes, or files from a notes folder"],
3031
+ ["sources", "what the owner adds by hand to read from: a file, a web page or a pasted text, kept as its text"],
2822
3032
  ["projects", "the owner's work units with a task key"],
2823
3033
  [
2824
3034
  "annotations",
@@ -2836,7 +3046,14 @@ var collections = [
2836
3046
  ["leads", "possible customers not yet qualified into a deal"],
2837
3047
  ["pipelines", "ordered sets of stages a deal moves through"],
2838
3048
  ["stages", "steps of a pipeline, each open, won or lost"],
2839
- ["products", "goods and services the owner sells, with their prices"],
3049
+ ["products", "goods and services the owner sells or buys, with their prices"],
3050
+ ["lines", "the rows of an order or an invoice: what, how many and at what price"],
3051
+ ["contracts", "agreements the owner is a party to, with their terms, dates and renewal"],
3052
+ ["subscriptions", "charges that repeat on a schedule, which the owner pays or is paid, with their price history"],
3053
+ ["prices", "what a thing costs over time, each price from its start date"],
3054
+ ["wallets", "places that hold the owner's money, such as a bank account, a card or cash"],
3055
+ ["transactions", "money that moved in or out of a wallet, as the bank or the owner recorded it"],
3056
+ ["splits", "parts of one transaction, each with its own amount and category"],
2840
3057
  ["users", "people who work in the owner's account at a service, such as a CRM's employees"],
2841
3058
  ["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
2842
3059
  [
@@ -2846,6 +3063,7 @@ var collections = [
2846
3063
  ["facts", "what happened, with evidence"],
2847
3064
  ["memories", "what an agent concluded, with evidence and scope"],
2848
3065
  ["relationships", "confirmed or suggested links between people, organizations and projects"],
3066
+ ["roles", "the parts a person plays in a relationship, built in or the owner's own"],
2849
3067
  ["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
2850
3068
  ["files", "files in the source, such as Google Drive, read and changed there"],
2851
3069
  ["comments", "comments people left on a thing in the source: a channel post or a file"],
@@ -2976,12 +3194,13 @@ var VOCABULARY = defineVocabulary({
2976
3194
  ...PRIVACY_FLAGS,
2977
3195
  ...CALENDAR_FLAGS,
2978
3196
  ...MAIL_FLAGS,
3197
+ ...KNOWLEDGE_FLAGS,
2979
3198
  ...CRM_FLAGS,
2980
3199
  ...SCHEDULE_FLAGS
2981
3200
  ]
2982
3201
  });
2983
3202
 
2984
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3203
+ // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2985
3204
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2986
3205
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2987
3206
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3204,7 +3423,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3204
3423
  }
3205
3424
  }, "runCommandForAgent");
3206
3425
 
3207
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3426
+ // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3208
3427
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3209
3428
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3210
3429
  var message = pipe(
@@ -3463,7 +3682,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3463
3682
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3464
3683
  }, "failed");
3465
3684
 
3466
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3685
+ // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3467
3686
  import { randomUUID } from "node:crypto";
3468
3687
  var MATCHES = 8;
3469
3688
  var ANSWER = answerSchema();