@wirecat/tg-cli 0.118.0 → 0.119.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 +7621 -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-NEQQOANM.js} +47 -48
  7. package/dist/bundle/{all-profiles-MIQDYAGO.js → all-profiles-QFT46FTF.js} +10 -10
  8. package/dist/bundle/{anthropic-NTASPJYE.js → anthropic-UJ4RYCWU.js} +10 -8
  9. package/dist/bundle/{app-server-UJZBJ2SK.js → app-server-NE3EL5IK.js} +43 -43
  10. package/dist/bundle/{bot-api-JZAD4L3N.js → bot-api-D4H5SCP5.js} +49 -49
  11. package/dist/bundle/{bot-history-OUDHH3NU.js → bot-history-KF2PUMWA.js} +18 -18
  12. package/dist/bundle/{bun-EC4HDIRD.js → bun-F7MH5YKA.js} +2 -2
  13. package/dist/bundle/{bun-sqlite-A4HJR6KO.js → bun-sqlite-FYDJXUHF.js} +5 -5
  14. package/dist/bundle/{chunk-I4TI5HDJ.js → chunk-23JGV5FQ.js} +11 -11
  15. package/dist/bundle/{chunk-MBH7IKLT.js → chunk-2BAJ6ORN.js} +1 -1
  16. package/dist/bundle/{chunk-EPXVRJAX.js → chunk-3EQ7USKJ.js} +2 -2
  17. package/dist/bundle/{chunk-MZNOASAW.js → chunk-3K65KTXD.js} +16 -3
  18. package/dist/bundle/{chunk-EQJ6NLF5.js → chunk-4AACB23H.js} +13 -13
  19. package/dist/bundle/{chunk-NUCDEOFC.js → chunk-5EHJWIW4.js} +2 -2
  20. package/dist/bundle/{chunk-VW6BF6M7.js → chunk-5FEEFXJA.js} +1 -1
  21. package/dist/bundle/{chunk-6RI4TEIC.js → chunk-65BWMPCI.js} +2 -2
  22. package/dist/bundle/{chunk-PB252TT3.js → chunk-6ERQJRL2.js} +2 -2
  23. package/dist/bundle/{chunk-G3RT2EQI.js → chunk-6K5R3YPN.js} +2 -2
  24. package/dist/bundle/{chunk-OTQDJUES.js → chunk-6OE5I3PR.js} +6 -6
  25. package/dist/bundle/{chunk-FHMK6OK4.js → chunk-72QLHHSO.js} +93 -29
  26. package/dist/bundle/{chunk-YEOSV6JC.js → chunk-7C6POLLO.js} +1 -1
  27. package/dist/bundle/{chunk-JPVFYMSQ.js → chunk-7VUNJDYU.js} +4 -4
  28. package/dist/bundle/{chunk-57LKX6N2.js → chunk-BXIPT2BO.js} +1 -1
  29. package/dist/bundle/{chunk-NKFTZVQU.js → chunk-CIDFV3IT.js} +1 -1
  30. package/dist/bundle/{chunk-4BV4UMBB.js → chunk-CX2WCEQU.js} +264 -195
  31. package/dist/bundle/{chunk-H6S3C3MH.js → chunk-D4Y2KL5V.js} +4 -4
  32. package/dist/bundle/{chunk-YPRUWRKE.js → chunk-D6YTBJY6.js} +1 -1
  33. package/dist/bundle/{chunk-PW3HFIJA.js → chunk-DQELQ7BL.js} +365 -192
  34. package/dist/bundle/{chunk-5IIU7X4S.js → chunk-F223KYWG.js} +1 -1
  35. package/dist/bundle/{chunk-TMTEWOQS.js → chunk-FJKP6MMP.js} +5 -3
  36. package/dist/bundle/{chunk-NMT2VGEI.js → chunk-FQ3C6DFV.js} +3 -3
  37. package/dist/bundle/{chunk-6ZMTEUVU.js → chunk-FQZSS3AB.js} +6 -6
  38. package/dist/bundle/{chunk-CEY43D3A.js → chunk-FRW3CWC7.js} +29 -29
  39. package/dist/bundle/{chunk-65XV5PPI.js → chunk-G3MQOH6Z.js} +3 -3
  40. package/dist/bundle/{chunk-6AXUEJGL.js → chunk-HGMMRT4G.js} +2 -2
  41. package/dist/bundle/{chunk-GLRRCKP6.js → chunk-HPQQ76WF.js} +23 -5
  42. package/dist/bundle/{chunk-RG2E7ZQZ.js → chunk-HV5YYAJX.js} +50 -15
  43. package/dist/bundle/{chunk-3MQOLYAN.js → chunk-IAGX5VFL.js} +4 -4
  44. package/dist/bundle/{chunk-BNEP5EOV.js → chunk-JKKEMVW3.js} +4 -4
  45. package/dist/bundle/{chunk-P3ASN72F.js → chunk-KBHK5UGL.js} +1 -1
  46. package/dist/bundle/{chunk-EPCFXKTX.js → chunk-KC4MQRAB.js} +34 -8
  47. package/dist/bundle/{chunk-GXCJ47SJ.js → chunk-L33G5ARH.js} +2664 -670
  48. package/dist/bundle/{chunk-PO74BDER.js → chunk-MDLSI3EN.js} +23 -23
  49. package/dist/bundle/chunk-NDSRND3E.js +138 -0
  50. package/dist/bundle/{chunk-2KQHUBTV.js → chunk-OG2CG2GS.js} +12 -12
  51. package/dist/bundle/{chunk-JZETEZHC.js → chunk-QD27C3BG.js} +7 -7
  52. package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-QG5U6HCI.js} +61 -21
  53. package/dist/bundle/{chunk-GI4MTNA2.js → chunk-QQ3QZFFD.js} +8 -8
  54. package/dist/bundle/{chunk-76EKXFX2.js → chunk-QTFXYR5W.js} +24 -2
  55. package/dist/bundle/{chunk-ZXXTJF4Z.js → chunk-RGU2G3KL.js} +4 -4
  56. package/dist/bundle/{chunk-JWPSVS6C.js → chunk-ROOUBFUW.js} +2304 -1442
  57. package/dist/bundle/{chunk-5QYU7B27.js → chunk-RUNFFBJU.js} +656 -461
  58. package/dist/bundle/{chunk-DKFC5ZZ3.js → chunk-S3HAFJVC.js} +4 -4
  59. package/dist/bundle/{chunk-BXTDAGM4.js → chunk-SMHLQEE2.js} +2 -2
  60. package/dist/bundle/{chunk-JWIUK3SK.js → chunk-TEZKCH5B.js} +2 -2
  61. package/dist/bundle/{chunk-HJNRIK5X.js → chunk-TKHEVAEG.js} +9 -8
  62. package/dist/bundle/{chunk-JLJKGKU2.js → chunk-TT4CIXVH.js} +6 -6
  63. package/dist/bundle/{chunk-ZMUC3UQO.js → chunk-UBCLVM7C.js} +3 -3
  64. package/dist/bundle/{chunk-YHZFGUAP.js → chunk-V5Z2JO6X.js} +19 -19
  65. package/dist/bundle/{chunk-2NA5KVP6.js → chunk-W2BIBPRU.js} +234 -38
  66. package/dist/bundle/{chunk-PWCQC56A.js → chunk-X5PDWCG7.js} +1 -1
  67. package/dist/bundle/{chunk-GIM37COQ.js → chunk-XDMJVWWR.js} +3 -3
  68. package/dist/bundle/{chunk-KEDHX6XG.js → chunk-XM3P7LLT.js} +2 -2
  69. package/dist/bundle/{chunk-DSZJREEO.js → chunk-YMWPRHXG.js} +1285 -750
  70. package/dist/bundle/{chunk-5LDWBEWU.js → chunk-Z4CGZAFQ.js} +45 -27
  71. package/dist/bundle/{chunk-Y64SI2RO.js → chunk-ZEQ7ONPZ.js} +3 -3
  72. package/dist/bundle/command-contract-7TGMZRBE.js +33 -0
  73. package/dist/bundle/{decode-NMNPLKNR.js → decode-5N4ERCHC.js} +5 -5
  74. package/dist/bundle/{dispatch-OP27MWX5.js → dispatch-TBGXBDHE.js} +10 -10
  75. package/dist/bundle/{echarts-S46LEIPS.js → echarts-YDEBAMXT.js} +2 -2
  76. package/dist/bundle/{embed-I5ZYHGYC.js → embed-T7H62XFR.js} +6 -6
  77. package/dist/bundle/{embedder-LTJI67N2.js → embedder-AW3O2TR3.js} +9 -9
  78. package/dist/bundle/{entry-O6BUPXF7.js → entry-L2LJ2VPY.js} +7 -7
  79. package/dist/bundle/{failure-4JUQFXJT.js → failure-AWHPW2HE.js} +2 -2
  80. package/dist/bundle/{first-run-PMZNCDGD.js → first-run-6PBZSRZU.js} +11 -11
  81. package/dist/bundle/first-screen-UKCD7D2R.js +31 -0
  82. package/dist/bundle/{instructions-AUEGY3VO.js → instructions-C3NJERO7.js} +1 -1
  83. package/dist/bundle/{mcp-M4QN2E7R.js → mcp-CWLASTLV.js} +2 -2
  84. package/dist/bundle/{node-XRA7RBCQ.js → node-P3CIIYWU.js} +2 -2
  85. package/dist/bundle/{node-sqlite-DEZO6LRS.js → node-sqlite-YVHMNRVA.js} +6 -6
  86. package/dist/bundle/{oauth-DAVC7WCD.js → oauth-5OQYA2SV.js} +7 -7
  87. package/dist/bundle/{open-DE2YO4T7.js → open-YGWUVSU7.js} +5 -5
  88. package/dist/bundle/{openai-5BKGAULH.js → openai-U45JBQ6F.js} +16 -37
  89. package/dist/bundle/{process-4ZHPNUIQ.js → process-DCYX5EDG.js} +1 -1
  90. package/dist/bundle/{program-EGTKSNB4.js → program-UZBFH2EZ.js} +55 -52
  91. package/dist/bundle/{prompt-HWCWHHPE.js → prompt-HPVTPTFI.js} +7 -5
  92. package/dist/bundle/{proxy-transport-4DPZB2W2.js → proxy-transport-D7MCHGSV.js} +5 -5
  93. package/dist/bundle/{recognize-NG6RXNGF.js → recognize-IJCPFJ76.js} +4 -4
  94. package/dist/bundle/{remote-ZKXIIGYH.js → remote-MWDYQWFW.js} +7 -7
  95. package/dist/bundle/{rerank-TX5QFURV.js → rerank-SXG64475.js} +7 -7
  96. package/dist/bundle/{serve-XAS6DECW.js → serve-KJQENHEH.js} +9 -9
  97. package/dist/bundle/{server-CNPIWBYU.js → server-MXVXZWN6.js} +35 -35
  98. package/dist/bundle/server-RTMCRKQF.js +60 -0
  99. package/dist/bundle/{state-3HTUETTS.js → state-CKKJWH27.js} +6 -6
  100. package/dist/bundle/{store-B5VZWJHN.js → store-R3BE4V56.js} +36 -13
  101. package/dist/bundle/store-maintenance-command-KDGBSBNU.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-DWX4DE2I.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-HV5YYAJX.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-KEDHX6XG.js";
13
+ } from "./chunk-XM3P7LLT.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-YMWPRHXG.js";
22
22
  import {
23
23
  DEFAULT_OUTPUT_BYTES,
24
24
  ENTITIES,
@@ -42,26 +42,26 @@ import {
42
42
  sealed,
43
43
  startRecording,
44
44
  traceOf
45
- } from "./chunk-PW3HFIJA.js";
45
+ } from "./chunk-DQELQ7BL.js";
46
46
  import {
47
47
  currentCaller,
48
48
  keepsSuccess,
49
49
  runContextOf,
50
50
  withCaller
51
- } from "./chunk-JZETEZHC.js";
51
+ } from "./chunk-QD27C3BG.js";
52
52
  import {
53
53
  queryDescription
54
- } from "./chunk-4BV4UMBB.js";
54
+ } from "./chunk-CX2WCEQU.js";
55
55
  import {
56
56
  storeDamaged
57
- } from "./chunk-Y64SI2RO.js";
57
+ } from "./chunk-ZEQ7ONPZ.js";
58
58
  import {
59
59
  MAX_BUFFERED_INPUT
60
- } from "./chunk-6AXUEJGL.js";
60
+ } from "./chunk-HGMMRT4G.js";
61
61
  import {
62
62
  captureStreams,
63
63
  traceIdOf
64
- } from "./chunk-YHZFGUAP.js";
64
+ } from "./chunk-V5Z2JO6X.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-KC4MQRAB.js";
104
104
  import {
105
105
  CliError,
106
106
  errorCodes
107
- } from "./chunk-BXTDAGM4.js";
107
+ } from "./chunk-SMHLQEE2.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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/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.87.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.87.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.87.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.87.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.87.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.87.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,119 @@ 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: "--opening-balance",
600
+ value: "<decimal>",
601
+ role: "value",
602
+ type: "string",
603
+ meaning: "the money it held on --opening-date, as a decimal such as 1500.50; later movements count from it"
604
+ },
605
+ {
606
+ name: "--opening-date",
607
+ value: "<date>",
608
+ role: "value",
609
+ type: "time",
610
+ meaning: "the day of the opening balance, YYYY-MM-DD"
611
+ },
612
+ {
613
+ name: "--institution",
614
+ value: "<text>",
615
+ role: "value",
616
+ type: "string",
617
+ meaning: "the bank or other company that holds it, by name"
618
+ },
619
+ {
620
+ name: "--unit",
621
+ value: "<text>",
622
+ role: "value",
623
+ type: "string",
624
+ meaning: "what one of it is counted in, such as hour or piece"
625
+ },
626
+ { name: "--sku", value: "<code>", role: "value", type: "string", meaning: "the stock code the seller gives it" },
627
+ {
628
+ name: "--archived",
629
+ value: "<on|off>",
630
+ role: "value",
631
+ type: "choice",
632
+ meaning: "set it aside as no longer in use, or bring it back; what points at it keeps pointing at it"
509
633
  }
510
634
  ];
511
635
 
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
636
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
637
  var HOW_FLAGS = [
514
638
  {
515
639
  name: "--limit",
@@ -743,6 +867,7 @@ var HOW_FLAGS = [
743
867
  type: "switch",
744
868
  meaning: "record the action as the owner's although an agent's terminal runs the tool"
745
869
  },
870
+ { name: "--from-app", role: "mode", type: "switch", meaning: "the owner acted in the app; its word, not a check" },
746
871
  {
747
872
  name: "--allow-any-file",
748
873
  role: "mode",
@@ -1504,7 +1629,39 @@ var HOW_FLAGS = [
1504
1629
  }
1505
1630
  ];
1506
1631
 
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
1632
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
1633
+ var KNOWLEDGE_FLAGS = [
1634
+ {
1635
+ name: "--quote",
1636
+ value: "<ref=words...>",
1637
+ role: "value",
1638
+ type: "list",
1639
+ meaning: "the words an --evidence reference says that a record rests on, as <ref>=<words>, one per reference"
1640
+ },
1641
+ {
1642
+ name: "--suggest",
1643
+ value: "<text>",
1644
+ role: "value",
1645
+ type: "string",
1646
+ meaning: "wording offered for the owner to take or leave; it decides nothing"
1647
+ },
1648
+ {
1649
+ name: "--keep-copy",
1650
+ role: "mode",
1651
+ type: "switch",
1652
+ meaning: "keep a copy of the original file as well as its text"
1653
+ },
1654
+ {
1655
+ name: "--max-chars",
1656
+ value: "<n>",
1657
+ role: "budget",
1658
+ type: "count",
1659
+ meaning: "at most this many characters read",
1660
+ unit: "characters"
1661
+ }
1662
+ ];
1663
+
1664
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
1665
  var MAIL_FLAGS = [
1509
1666
  {
1510
1667
  name: "--cc",
@@ -1534,7 +1691,7 @@ var MAIL_FLAGS = [
1534
1691
  }
1535
1692
  ];
1536
1693
 
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
1694
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
1695
  var PRIVACY_FLAGS = [
1539
1696
  {
1540
1697
  name: "--about-text",
@@ -1595,7 +1752,7 @@ var PRIVACY_FLAGS = [
1595
1752
  { name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
1596
1753
  ];
1597
1754
 
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
1755
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
1756
  var SCHEDULE_FLAGS = [
1600
1757
  {
1601
1758
  name: "--notify-on",
@@ -1621,7 +1778,7 @@ var SCHEDULE_FLAGS = [
1621
1778
  }
1622
1779
  ];
1623
1780
 
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
1781
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
1782
  var WHAT_FLAGS = [
1626
1783
  {
1627
1784
  name: "--analysis-provider",
@@ -2347,7 +2504,14 @@ var WHAT_FLAGS = [
2347
2504
  type: "id",
2348
2505
  meaning: "the stored calendar event it is linked to, or none to unlink"
2349
2506
  },
2350
- { name: "--every", value: "<duration>", role: "value", type: "duration", meaning: "repeat this often" },
2507
+ {
2508
+ name: "--every",
2509
+ value: "<duration>",
2510
+ role: "value",
2511
+ type: "duration",
2512
+ otherValues: ["count-unit"],
2513
+ meaning: "repeat this often: a length of time for a timer (<duration>), a count and a calendar unit for a charge, such as 1-month (<count-unit>)"
2514
+ },
2351
2515
  {
2352
2516
  name: "--evidence",
2353
2517
  value: "<ref...>",
@@ -2418,7 +2582,15 @@ var WHAT_FLAGS = [
2418
2582
  meaning: "what kind of thing it is; the command lists the kinds"
2419
2583
  },
2420
2584
  { name: "--name", value: "<name>", role: "value", type: "string", meaning: "the name to give it" },
2585
+ {
2586
+ name: "--button",
2587
+ value: "<text=data>",
2588
+ role: "value",
2589
+ type: "string",
2590
+ meaning: "an inline button under a message: its text, then the data a press sends back; repeat for more in one row"
2591
+ },
2421
2592
  { name: "--no-approval", role: "value", type: "switch", meaning: "anyone with the link joins at once" },
2593
+ { name: "--no-buttons", role: "value", type: "switch", meaning: "take the buttons off the message" },
2422
2594
  {
2423
2595
  name: "--notification",
2424
2596
  value: "<text>",
@@ -2453,6 +2625,13 @@ var WHAT_FLAGS = [
2453
2625
  },
2454
2626
  { name: "--remind-time", value: "<time>", role: "value", type: "time", meaning: "when to look at it again" },
2455
2627
  { name: "--role", value: "<role>", role: "value", type: "string", meaning: "the part it plays, in a word or two" },
2628
+ {
2629
+ name: "--label",
2630
+ value: "<label>",
2631
+ role: "value",
2632
+ type: "string",
2633
+ meaning: "a human-readable label for an id, such as the name shown for a custom relationship role"
2634
+ },
2456
2635
  {
2457
2636
  name: "--scope",
2458
2637
  value: "<scope>",
@@ -2583,7 +2762,7 @@ var WHAT_FLAGS = [
2583
2762
  }
2584
2763
  ];
2585
2764
 
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
2765
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
2766
  var FLAG_TYPES = [
2588
2767
  "switch",
2589
2768
  "count",
@@ -2671,6 +2850,7 @@ var defineVocabulary = /* @__PURE__ */ __name((input) => parseRegistry("vocabula
2671
2850
  var verbs = [
2672
2851
  ["list", "show many"],
2673
2852
  ["show", "show one"],
2853
+ ["browse", "list one level of a remote hierarchy, such as a provider's folders, to choose from; reads only"],
2674
2854
  ["search", "find by text; the description says where it looks"],
2675
2855
  ["prepare", "assemble bounded cited context for a selected upcoming activity without applying findings"],
2676
2856
  ["related", "what is nearest in meaning to one thing, without a query"],
@@ -2701,7 +2881,7 @@ var verbs = [
2701
2881
  ["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
2702
2882
  ["install", "install a system unit"],
2703
2883
  ["uninstall", "remove a system unit"],
2704
- ["cancel", "stop a job or a pending thing"],
2884
+ ["cancel", "stop a job, a pending thing or a subscription"],
2705
2885
  [
2706
2886
  "sync",
2707
2887
  "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 +2904,10 @@ var verbs = [
2724
2904
  // Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
2725
2905
  ["link", "record that two identities are one person"],
2726
2906
  ["unlink", "undo a link"],
2907
+ [
2908
+ "match",
2909
+ "link each waiting record to the thing its identifiers name, such as a person by e-mail address; a name alone never matches"
2910
+ ],
2727
2911
  ["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
2728
2912
  ["lookup", "ask the messenger who is behind a phone number"],
2729
2913
  [
@@ -2760,6 +2944,7 @@ var verbs = [
2760
2944
  ["assign", "name the person responsible for work, with their task role"],
2761
2945
  ["reverse", "record that an accepted decision no longer holds, without replacing it"],
2762
2946
  ["invalidate", "mark a derived record whose supporting evidence no longer holds"],
2947
+ ["challenge", "say a record no longer holds, citing what contradicts it; it only proposes, and the owner decides"],
2763
2948
  ["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
2764
2949
  ["confirm", "the owner accepts what an agent proposed"],
2765
2950
  ["reject", "the owner refuses what an agent proposed"],
@@ -2809,6 +2994,7 @@ var collections = [
2809
2994
  ["topics", "forum topics in a group"],
2810
2995
  ["models", "local or remote models"],
2811
2996
  ["tags", "labels the owner puts on things"],
2997
+ ["groups", "account groups: the accounts a run in a group reads, such as work and personal (WC-ACCT-13)"],
2812
2998
  ["searches", "the owner's saved searches"],
2813
2999
  ["copies", "tables kept aside by a repair"],
2814
3000
  ["tables", "the tables of the local store, with their kind, row count and size"],
@@ -2819,6 +3005,7 @@ var collections = [
2819
3005
  ["tracking", "the chats whose member lists are fetched daily"],
2820
3006
  ["documents", "files imported from Google Drive or Docs, or linked in a chat"],
2821
3007
  ["notes", "text the owner writes, or files from a notes folder"],
3008
+ ["sources", "what the owner adds by hand to read from: a file, a web page or a pasted text, kept as its text"],
2822
3009
  ["projects", "the owner's work units with a task key"],
2823
3010
  [
2824
3011
  "annotations",
@@ -2836,7 +3023,14 @@ var collections = [
2836
3023
  ["leads", "possible customers not yet qualified into a deal"],
2837
3024
  ["pipelines", "ordered sets of stages a deal moves through"],
2838
3025
  ["stages", "steps of a pipeline, each open, won or lost"],
2839
- ["products", "goods and services the owner sells, with their prices"],
3026
+ ["products", "goods and services the owner sells or buys, with their prices"],
3027
+ ["lines", "the rows of an order or an invoice: what, how many and at what price"],
3028
+ ["contracts", "agreements the owner is a party to, with their terms, dates and renewal"],
3029
+ ["subscriptions", "charges that repeat on a schedule, which the owner pays or is paid, with their price history"],
3030
+ ["prices", "what a thing costs over time, each price from its start date"],
3031
+ ["wallets", "places that hold the owner's money, such as a bank account, a card or cash"],
3032
+ ["transactions", "money that moved in or out of a wallet, as the bank or the owner recorded it"],
3033
+ ["splits", "parts of one transaction, each with its own amount and category"],
2840
3034
  ["users", "people who work in the owner's account at a service, such as a CRM's employees"],
2841
3035
  ["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
2842
3036
  [
@@ -2846,6 +3040,7 @@ var collections = [
2846
3040
  ["facts", "what happened, with evidence"],
2847
3041
  ["memories", "what an agent concluded, with evidence and scope"],
2848
3042
  ["relationships", "confirmed or suggested links between people, organizations and projects"],
3043
+ ["roles", "the parts a person plays in a relationship, built in or the owner's own"],
2849
3044
  ["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
2850
3045
  ["files", "files in the source, such as Google Drive, read and changed there"],
2851
3046
  ["comments", "comments people left on a thing in the source: a channel post or a file"],
@@ -2976,12 +3171,13 @@ var VOCABULARY = defineVocabulary({
2976
3171
  ...PRIVACY_FLAGS,
2977
3172
  ...CALENDAR_FLAGS,
2978
3173
  ...MAIL_FLAGS,
3174
+ ...KNOWLEDGE_FLAGS,
2979
3175
  ...CRM_FLAGS,
2980
3176
  ...SCHEDULE_FLAGS
2981
3177
  ]
2982
3178
  });
2983
3179
 
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
3180
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2985
3181
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2986
3182
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2987
3183
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3204,7 +3400,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3204
3400
  }
3205
3401
  }, "runCommandForAgent");
3206
3402
 
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
3403
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3208
3404
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3209
3405
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3210
3406
  var message = pipe(
@@ -3463,7 +3659,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3463
3659
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3464
3660
  }, "failed");
3465
3661
 
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
3662
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3467
3663
  import { randomUUID } from "node:crypto";
3468
3664
  var MATCHES = 8;
3469
3665
  var ANSWER = answerSchema();
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // 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/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-YPRUWRKE.js";
5
+ } from "./chunk-D6YTBJY6.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-YHZFGUAP.js";
9
+ } from "./chunk-V5Z2JO6X.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // 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/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-JZETEZHC.js";
32
+ } from "./chunk-QD27C3BG.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // 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/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")