@wirecat/cli-memo 0.131.50 → 0.131.52

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 (144) hide show
  1. package/dist/author.d.ts +6 -3
  2. package/dist/author.d.ts.map +1 -1
  3. package/dist/author.js +9 -4
  4. package/dist/author.js.map +1 -1
  5. package/dist/bin/memo.js +2 -2
  6. package/dist/bundle/{all-profiles-3HADTQZA.js → all-profiles-ZFVBLT2D.js} +9 -9
  7. package/dist/bundle/{anthropic-RI4DWC3G.js → anthropic-UG2YHOT7.js} +6 -6
  8. package/dist/bundle/{app-server-6EKWAYJI.js → app-server-AQYA4TB6.js} +42 -42
  9. package/dist/bundle/auto-2AY6K6DI.js +86 -0
  10. package/dist/bundle/{bun-HUHQD76Z.js → bun-QJUFWKEZ.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-RPSKGB4O.js → bun-sqlite-GWVRHYF4.js} +5 -5
  12. package/dist/bundle/{chunk-N6IHOYMT.js → chunk-2CBOPOC7.js} +165 -37
  13. package/dist/bundle/{chunk-6N6BVPVX.js → chunk-2GEV2TXW.js} +4 -4
  14. package/dist/bundle/{chunk-2OIGV355.js → chunk-3O46NA2H.js} +105 -63
  15. package/dist/bundle/{chunk-UDJTRFRV.js → chunk-4ISZPK6D.js} +1 -1
  16. package/dist/bundle/{chunk-BXTDAGM4.js → chunk-4ZW6ZJ2V.js} +2 -2
  17. package/dist/bundle/{chunk-ZDHNEYKO.js → chunk-55GFDV24.js} +8 -8
  18. package/dist/bundle/{chunk-NJDGZRF5.js → chunk-5WT6SEXS.js} +30 -14
  19. package/dist/bundle/{chunk-EBNNONF5.js → chunk-64JCY7XJ.js} +8 -8
  20. package/dist/bundle/{chunk-LZWXGO3G.js → chunk-65576OCE.js} +2 -2
  21. package/dist/bundle/{chunk-57LMWEDK.js → chunk-6BVWU2UM.js} +3 -3
  22. package/dist/bundle/{chunk-VW6BF6M7.js → chunk-6G53ZFUT.js} +1 -1
  23. package/dist/bundle/{chunk-DVA6MQWK.js → chunk-6GF4TIVM.js} +1 -1
  24. package/dist/bundle/{chunk-LUPJB7ZD.js → chunk-6PQIXQFD.js} +9 -9
  25. package/dist/bundle/{chunk-S7F4ZDFU.js → chunk-6ZQK3L35.js} +3 -3
  26. package/dist/bundle/{chunk-SSPSNSC5.js → chunk-7SVHEGRO.js} +1 -1
  27. package/dist/bundle/{chunk-PUTGTW6W.js → chunk-A36ASW3I.js} +1 -1
  28. package/dist/bundle/{chunk-5TWUUDKP.js → chunk-A7DXLOMS.js} +2 -2
  29. package/dist/bundle/{chunk-UAR6UMFL.js → chunk-AGOUP5AH.js} +5 -5
  30. package/dist/bundle/{chunk-P2LMXIHL.js → chunk-AU5GAMGM.js} +415 -359
  31. package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-EBDX6DNB.js} +61 -21
  32. package/dist/bundle/{chunk-ND6D4A6H.js → chunk-EEEZGK2J.js} +3 -3
  33. package/dist/bundle/{chunk-XZZFHQGM.js → chunk-EKQNL6VJ.js} +25 -23
  34. package/dist/bundle/{chunk-7ZLOZGIC.js → chunk-EQUPZVV6.js} +6 -6
  35. package/dist/bundle/{chunk-RKFKRCOH.js → chunk-ERZBEQAY.js} +276 -268
  36. package/dist/bundle/{chunk-D5KGXYG6.js → chunk-ETYAJPIT.js} +22 -22
  37. package/dist/bundle/{chunk-PYRHU35W.js → chunk-FWCFEJWD.js} +179 -159
  38. package/dist/bundle/{chunk-IXXBPSXO.js → chunk-G4Z4WSIG.js} +2 -2
  39. package/dist/bundle/{chunk-OT23U5LT.js → chunk-G52Y3KOO.js} +2 -2
  40. package/dist/bundle/{chunk-KVOHC4ZM.js → chunk-G7K4J3NS.js} +4 -4
  41. package/dist/bundle/{chunk-UJLYVXP6.js → chunk-GJWNHWG7.js} +34 -34
  42. package/dist/bundle/{chunk-2HPYP3ZT.js → chunk-I4LXP4HQ.js} +4 -4
  43. package/dist/bundle/{chunk-PEYCLVIO.js → chunk-IALGFO44.js} +2 -2
  44. package/dist/bundle/{chunk-P3ASN72F.js → chunk-IK6KH3RE.js} +1 -1
  45. package/dist/bundle/{chunk-FOM7WE2C.js → chunk-IKG2OPHU.js} +8 -16
  46. package/dist/bundle/{chunk-HCMXUHHF.js → chunk-KGPD3OCD.js} +180 -67
  47. package/dist/bundle/{chunk-2MFBZ2UM.js → chunk-LUHMRW3P.js} +9 -6
  48. package/dist/bundle/{chunk-SLIF5EMS.js → chunk-LX65W7IK.js} +7 -7
  49. package/dist/bundle/{chunk-DJRBSOWH.js → chunk-M64NVDB4.js} +4 -4
  50. package/dist/bundle/{chunk-QCPUC3HW.js → chunk-MICF3K6S.js} +13 -13
  51. package/dist/bundle/{chunk-7RNHFNHX.js → chunk-MZMJALJT.js} +4 -4
  52. package/dist/bundle/{chunk-PJMGQJAX.js → chunk-N5J6GT7C.js} +7 -7
  53. package/dist/bundle/{chunk-Y6VH7IRN.js → chunk-NIUWQP7F.js} +32 -30
  54. package/dist/bundle/{chunk-355PHJYX.js → chunk-NNUP36UQ.js} +1 -1
  55. package/dist/bundle/{chunk-GV6XJMUW.js → chunk-NOEXRGYH.js} +12 -12
  56. package/dist/bundle/{chunk-RYMYE5PF.js → chunk-NUQ3N3V3.js} +8 -8
  57. package/dist/bundle/{chunk-O3KOW7RG.js → chunk-NZKDNBYE.js} +8 -8
  58. package/dist/bundle/{chunk-AKD62EUH.js → chunk-OIPJYDLZ.js} +2 -2
  59. package/dist/bundle/{chunk-ZA7FKGB7.js → chunk-OWS67HTV.js} +2 -2
  60. package/dist/bundle/{chunk-GIDZGGAD.js → chunk-PBM5GH7S.js} +4 -4
  61. package/dist/bundle/{chunk-EJDV5IIF.js → chunk-PKVXZZTM.js} +58 -1
  62. package/dist/bundle/{chunk-5JVA43HX.js → chunk-RYY4YRKQ.js} +6 -6
  63. package/dist/bundle/{chunk-W6JQNNJ5.js → chunk-S7X5ZMQN.js} +3 -3
  64. package/dist/bundle/{chunk-P2TISY3R.js → chunk-TM6R3Z45.js} +1 -1
  65. package/dist/bundle/{chunk-4VQPPX47.js → chunk-TQS6ZKC3.js} +487 -406
  66. package/dist/bundle/{chunk-TSUNLSIN.js → chunk-U4ZD5SYO.js} +2 -2
  67. package/dist/bundle/{chunk-XXGBXCBQ.js → chunk-U6E3BGHO.js} +11 -11
  68. package/dist/bundle/{chunk-HXOAPH47.js → chunk-VOWEZBOJ.js} +1 -1
  69. package/dist/bundle/{chunk-O3ZOYXH3.js → chunk-WLKDS65F.js} +20 -20
  70. package/dist/bundle/{chunk-NTQUBSIJ.js → chunk-X6XIW76O.js} +6 -6
  71. package/dist/bundle/{chunk-5RVL7GYA.js → chunk-XIHQOSCT.js} +2 -2
  72. package/dist/bundle/{chunk-XH6K2B5L.js → chunk-ZKXIZD4C.js} +4 -4
  73. package/dist/bundle/{chunk-V2DMJ6ES.js → chunk-ZVJAZXME.js} +6 -6
  74. package/dist/bundle/{chunk-3BG5VYMV.js → chunk-ZVR6S4XB.js} +10 -10
  75. package/dist/bundle/{chunk-QCRJNWJZ.js → chunk-ZYQEWB6P.js} +3 -3
  76. package/dist/bundle/command-contract-7AADJ3UC.js +32 -0
  77. package/dist/bundle/{decode-IYWZ3X7X.js → decode-XMIBTI5O.js} +5 -5
  78. package/dist/bundle/{dispatch-HCRXCPCF.js → dispatch-W4ZVXTJT.js} +10 -10
  79. package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-W7DPDJA5.js} +2 -2
  80. package/dist/bundle/{embed-EGY2R4FN.js → embed-EP3KKO6Y.js} +6 -6
  81. package/dist/bundle/{embedder-K2BGPWNX.js → embedder-ENGCALJ7.js} +9 -9
  82. package/dist/bundle/{entry-NMAZNDNU.js → entry-BGSKREOS.js} +7 -7
  83. package/dist/bundle/{failure-G4DCTWFD.js → failure-GQHAQVGH.js} +2 -2
  84. package/dist/bundle/failure-ZKQVXWAB.js +66 -0
  85. package/dist/bundle/{first-run-QDCSWX3N.js → first-run-4EBMV2EM.js} +11 -11
  86. package/dist/bundle/first-screen-2TM3BF2Y.js +30 -0
  87. package/dist/bundle/{instructions-P72XX4AK.js → instructions-A42XETMK.js} +1 -1
  88. package/dist/bundle/mcp-5LAWRSJK.js +90 -0
  89. package/dist/bundle/{mcp-M4QN2E7R.js → mcp-RKJG22KM.js} +2 -2
  90. package/dist/bundle/memo.js +41 -17
  91. package/dist/bundle/{node-ZB4RNICS.js → node-IRL66JK2.js} +2 -2
  92. package/dist/bundle/{node-sqlite-7XJ4J4E5.js → node-sqlite-SOGTH72B.js} +6 -6
  93. package/dist/bundle/{oauth-FMH3JIPT.js → oauth-RB5W3AC7.js} +7 -7
  94. package/dist/bundle/{open-PRCTOHHL.js → open-552EJ4JC.js} +5 -5
  95. package/dist/bundle/{openai-VW4W6SIO.js → openai-ZLOHEEDH.js} +10 -10
  96. package/dist/bundle/{process-XNN4WG6N.js → process-46SUXGWW.js} +1 -1
  97. package/dist/bundle/{program-TVT22XUQ.js → program-ZLWKMT65.js} +72 -65
  98. package/dist/bundle/{prompt-RT55UZGB.js → prompt-2NHJSYKX.js} +5 -5
  99. package/dist/bundle/{recognize-AQ2UXUC2.js → recognize-2LDM6KHL.js} +4 -4
  100. package/dist/bundle/{remote-T3P5OWRR.js → remote-DBYHHENF.js} +7 -7
  101. package/dist/bundle/{rerank-743T3675.js → rerank-N5T2TIIY.js} +7 -7
  102. package/dist/bundle/{serve-BSKOU4FJ.js → serve-S6B54R2F.js} +9 -9
  103. package/dist/bundle/server-KZZHFPTZ.js +61 -0
  104. package/dist/bundle/{server-ECOTCYJ3.js → server-QH6AKPRV.js} +58 -58
  105. package/dist/bundle/server-WAIPBBM7.js +48 -0
  106. package/dist/bundle/{state-MDMI3I2Z.js → state-ZXZGIIJW.js} +6 -6
  107. package/dist/bundle/{store-I3DIZALN.js → store-PNJNDMQ4.js} +13 -13
  108. package/dist/bundle/store-maintenance-command-2ZVV3DGA.js +48 -0
  109. package/dist/bundle/update-6HXLLGTQ.js +69 -0
  110. package/dist/doctor/command.d.ts +30 -0
  111. package/dist/doctor/command.d.ts.map +1 -1
  112. package/dist/doctor/command.js +1 -1
  113. package/dist/doctor/command.js.map +1 -1
  114. package/dist/failure.js +2 -2
  115. package/dist/failure.js.map +1 -1
  116. package/dist/knowledge/relationships-scan.d.ts.map +1 -1
  117. package/dist/knowledge/relationships-scan.js +4 -3
  118. package/dist/knowledge/relationships-scan.js.map +1 -1
  119. package/dist/mcp/catalogue.js +1 -1
  120. package/dist/mcp/catalogue.js.map +1 -1
  121. package/dist/people/command.d.ts.map +1 -1
  122. package/dist/people/command.js +3 -1
  123. package/dist/people/command.js.map +1 -1
  124. package/dist/run/import.d.ts.map +1 -1
  125. package/dist/run/import.js +3 -2
  126. package/dist/run/import.js.map +1 -1
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +4 -4
  130. package/skills/cli-memo/SKILL.md +1 -1
  131. package/skills/cli-memo/topics/proposals.md +2 -2
  132. package/skills/mail-triage/SKILL.md +1 -1
  133. package/skills/morning-digest/SKILL.md +1 -1
  134. package/dist/bundle/auto-C7G3WVRU.js +0 -86
  135. package/dist/bundle/command-contract-MRLLZQ4M.js +0 -32
  136. package/dist/bundle/failure-FW4NJI7G.js +0 -66
  137. package/dist/bundle/first-screen-YABO6OZ7.js +0 -30
  138. package/dist/bundle/mcp-QRZ2HSON.js +0 -90
  139. package/dist/bundle/server-VMWVYGK7.js +0 -48
  140. package/dist/bundle/server-ZFHSK6TT.js +0 -61
  141. package/dist/bundle/store-maintenance-command-HZPQPOK7.js +0 -48
  142. package/dist/bundle/update-ZIZAU5RE.js +0 -69
  143. /package/dist/bundle/{chunk-CDFNOKPG.js → chunk-DPRGC5YX.js} +0 -0
  144. /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-SW6C6WH5.js} +0 -0
@@ -7,10 +7,10 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-NJDGZRF5.js";
10
+ } from "./chunk-5WT6SEXS.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-PEYCLVIO.js";
13
+ } from "./chunk-IALGFO44.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-4VQPPX47.js";
21
+ } from "./chunk-TQS6ZKC3.js";
22
22
  import {
23
23
  DEFAULT_OUTPUT_BYTES,
24
24
  ENTITIES,
@@ -42,23 +42,26 @@ import {
42
42
  sealed,
43
43
  startRecording,
44
44
  traceOf
45
- } from "./chunk-PYRHU35W.js";
45
+ } from "./chunk-FWCFEJWD.js";
46
46
  import {
47
47
  currentCaller,
48
48
  keepsSuccess,
49
49
  runContextOf,
50
50
  withCaller
51
- } from "./chunk-FOM7WE2C.js";
51
+ } from "./chunk-IKG2OPHU.js";
52
52
  import {
53
53
  queryDescription
54
- } from "./chunk-HCMXUHHF.js";
54
+ } from "./chunk-KGPD3OCD.js";
55
+ import {
56
+ storeDamaged
57
+ } from "./chunk-PKVXZZTM.js";
55
58
  import {
56
59
  MAX_BUFFERED_INPUT
57
- } from "./chunk-AKD62EUH.js";
60
+ } from "./chunk-OIPJYDLZ.js";
58
61
  import {
59
62
  captureStreams,
60
63
  traceIdOf
61
- } from "./chunk-O3ZOYXH3.js";
64
+ } from "./chunk-WLKDS65F.js";
62
65
  import {
63
66
  COMPACT_FLAG,
64
67
  SNAKE_CASE,
@@ -97,19 +100,19 @@ import {
97
100
  unknown,
98
101
  word,
99
102
  writes
100
- } from "./chunk-EBNNONF5.js";
103
+ } from "./chunk-64JCY7XJ.js";
101
104
  import {
102
105
  CliError,
103
106
  errorCodes
104
- } from "./chunk-BXTDAGM4.js";
107
+ } from "./chunk-4ZW6ZJ2V.js";
105
108
  import {
106
109
  __name
107
110
  } from "./chunk-ZVVMGPBJ.js";
108
111
 
109
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mcp/agent.js
112
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/mcp/agent.js
110
113
  import { Readable } from "node:stream";
111
114
 
112
- // 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.82.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
113
116
  var LINT_SEVERITIES = ["high", "medium", "low"];
114
117
  var lintRuleSchema = strictObject({
115
118
  id: word,
@@ -237,7 +240,7 @@ var overrideSchema = strictObject({
237
240
  });
238
241
  var overridesSchema = array(overrideSchema);
239
242
 
240
- // 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
243
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
241
244
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
242
245
  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");
243
246
  var AUDIT_RULES = defineAuditRules([
@@ -282,11 +285,13 @@ var parityGroupSchema = strictObject({
282
285
  /** Permanent differences, each with its reason; they count against the override budget of the group. */
283
286
  differences: array(strictObject({
284
287
  rule: word,
285
- /** `<clis> <path> <flag>`; with `absent`, only `<path> <flag>`: the CLI list is whoever else has it. */
288
+ /** `<clis> <path> <flag>`; with `absent` or `only`, only `<path> <flag>`: the CLI list is whoever else was compared. */
286
289
  target: text,
287
290
  expected: optional(text),
288
291
  /** The CLI that lacks the path or flag by design; the rest must agree, so other CLIs joining do not stale it. */
289
292
  absent: optional(word),
293
+ /** The one CLI that has the path or flag by design; every other CLI compared must lack it. */
294
+ only: optional(word),
290
295
  reason: pipe(text, minLength(10, "say why, in a sentence"))
291
296
  }))
292
297
  });
@@ -294,7 +299,8 @@ var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity
294
299
  ...duplicates(groups.map((group) => group.name)).map((name) => `"${name}" is listed twice`),
295
300
  ...groups.flatMap((group) => [
296
301
  ...duplicates(group.differences.map((entry) => `${entry.rule} ${entry.target}`)).map((both) => `${group.name}: "${both}" is listed twice`),
297
- ...group.differences.filter((entry) => entry.absent && entry.expected).map((entry) => `${group.name}: "${entry.target}" has \`absent\`, which measures the values itself; drop \`expected\``)
302
+ ...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\``),
303
+ ...group.differences.filter((entry) => entry.absent && entry.only).map((entry) => `${group.name}: "${entry.target}" has both \`absent\` and \`only\`; keep one`)
298
304
  ])
299
305
  ]), "defineParityGroups");
300
306
  var MEMO_HAS_NO_PROFILES = [
@@ -309,13 +315,19 @@ var MEMO_HAS_NO_PROFILES = [
309
315
  absent: "memo",
310
316
  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)"
311
317
  }));
318
+ var MEMO_DOCTOR_DEEP = {
319
+ rule: "same-path-contract",
320
+ target: "doctor --deep",
321
+ only: "memo",
322
+ 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"
323
+ };
312
324
  var PARITY_GROUPS = defineParityGroups([
313
325
  { name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
314
326
  {
315
327
  name: "all",
316
328
  members: ["tg", "max", "memo", "drive", "zm", "wa"],
317
329
  covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
318
- differences: MEMO_HAS_NO_PROFILES
330
+ differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
319
331
  },
320
332
  // mail's `search messages` is cli-core's mail search, not the messengers' command: --complete took their 20-odd
321
333
  // differences as inherited (https://github.com/WireCatLabs/cli-base/issues/390). mail is compared everywhere else
@@ -324,7 +336,7 @@ var PARITY_GROUPS = defineParityGroups([
324
336
  name: "mail-shared",
325
337
  members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
326
338
  covers: ["commands", "doctor", "skill", "mcp", "upgrade", "notes", "meetings"],
327
- differences: MEMO_HAS_NO_PROFILES
339
+ differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
328
340
  },
329
341
  // gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
330
342
  // CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
@@ -340,7 +352,7 @@ var PARITY_GROUPS = defineParityGroups([
340
352
  name: "shared-roots",
341
353
  members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
342
354
  covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
343
- differences: MEMO_HAS_NO_PROFILES
355
+ differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
344
356
  }
345
357
  ]);
346
358
  var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
@@ -354,7 +366,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
354
366
  { path: ["upgrade"], meaning: "updates the CLI" }
355
367
  ]);
356
368
 
357
- // 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
369
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
358
370
  var fieldRuleSchema = strictObject({ id: word, rule: text });
359
371
  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");
360
372
  var FIELD_RULES = defineFieldRules([
@@ -370,7 +382,7 @@ var FIELD_RULES = defineFieldRules([
370
382
  }
371
383
  ]);
372
384
 
373
- // 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
385
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
374
386
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
375
387
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
376
388
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -392,7 +404,7 @@ var IDENTIFIERS = defineIdentifiers([
392
404
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
393
405
  ]);
394
406
 
395
- // 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
407
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
396
408
  var CALENDAR_FLAGS = [
397
409
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
398
410
  {
@@ -400,14 +412,14 @@ var CALENDAR_FLAGS = [
400
412
  value: "<date>",
401
413
  role: "value",
402
414
  type: "time",
403
- meaning: "the first day of something that lasts whole days, such as an all-day event"
415
+ meaning: "the first day of something that lasts whole days, such as an all-day event or a contract"
404
416
  },
405
417
  {
406
418
  name: "--end-date",
407
419
  value: "<date>",
408
420
  role: "value",
409
421
  type: "time",
410
- meaning: "the last day of something that lasts whole days, such as an all-day event"
422
+ meaning: "the last day of something that lasts whole days, such as an all-day event or a contract"
411
423
  },
412
424
  { name: "--location", value: "<text>", role: "value", type: "string", meaning: "where it takes place" },
413
425
  {
@@ -466,7 +478,7 @@ var CALENDAR_FLAGS = [
466
478
  }
467
479
  ];
468
480
 
469
- // 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
481
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
470
482
  var CRM_FLAGS = [
471
483
  {
472
484
  name: "--pipeline",
@@ -503,10 +515,106 @@ var CRM_FLAGS = [
503
515
  role: "value",
504
516
  type: "id",
505
517
  meaning: "the CRM user a record is assigned to, by the CRM's id"
518
+ },
519
+ {
520
+ name: "--status",
521
+ value: "<state>",
522
+ role: "value",
523
+ type: "choice",
524
+ meaning: "the state to put it in; the command lists the states"
525
+ },
526
+ {
527
+ name: "--product",
528
+ value: "<product>",
529
+ role: "value",
530
+ type: "string",
531
+ meaning: "a product or service the owner sells or buys: product:<id>"
532
+ },
533
+ { name: "--contract", value: "<contract>", role: "value", type: "string", meaning: "a contract: contract:<id>" },
534
+ { name: "--payment", value: "<payment>", role: "value", type: "string", meaning: "a payment: payment:<id>" },
535
+ {
536
+ name: "--refund-of",
537
+ value: "<payment>",
538
+ role: "value",
539
+ type: "string",
540
+ meaning: "the payment this one gives money back for: payment:<id>"
541
+ },
542
+ { name: "--wallet", value: "<wallet>", role: "value", type: "string", meaning: "a wallet: wallet:<id>" },
543
+ {
544
+ name: "--supplier",
545
+ value: "<party>",
546
+ role: "value",
547
+ type: "string",
548
+ meaning: "who supplies it: person:<uid> or organization:<id>"
549
+ },
550
+ {
551
+ name: "--customer",
552
+ value: "<party>",
553
+ role: "value",
554
+ type: "string",
555
+ meaning: "who receives it and pays for it: person:<uid> or organization:<id>"
556
+ },
557
+ {
558
+ name: "--trial-end-date",
559
+ value: "<date>",
560
+ role: "value",
561
+ type: "time",
562
+ meaning: "the day a free trial ends, YYYY-MM-DD"
563
+ },
564
+ {
565
+ name: "--notice-days",
566
+ value: "<days>",
567
+ role: "value",
568
+ type: "count",
569
+ meaning: "how many days before its end a party must say it will not go on",
570
+ unit: "days"
571
+ },
572
+ {
573
+ name: "--auto-renew",
574
+ value: "<on|off>",
575
+ role: "value",
576
+ type: "choice",
577
+ meaning: "it renews by itself at its end, or it does not"
578
+ },
579
+ {
580
+ name: "--opening-balance",
581
+ value: "<decimal>",
582
+ role: "value",
583
+ type: "string",
584
+ meaning: "the money it held on --opening-date, as a decimal such as 1500.50; later movements count from it"
585
+ },
586
+ {
587
+ name: "--opening-date",
588
+ value: "<date>",
589
+ role: "value",
590
+ type: "time",
591
+ meaning: "the day of the opening balance, YYYY-MM-DD"
592
+ },
593
+ {
594
+ name: "--institution",
595
+ value: "<text>",
596
+ role: "value",
597
+ type: "string",
598
+ meaning: "the bank or other company that holds it, by name"
599
+ },
600
+ {
601
+ name: "--unit",
602
+ value: "<text>",
603
+ role: "value",
604
+ type: "string",
605
+ meaning: "what one of it is counted in, such as hour or piece"
606
+ },
607
+ { name: "--sku", value: "<code>", role: "value", type: "string", meaning: "the stock code the seller gives it" },
608
+ {
609
+ name: "--archived",
610
+ value: "<on|off>",
611
+ role: "value",
612
+ type: "choice",
613
+ meaning: "set it aside as no longer in use, or bring it back; what points at it keeps pointing at it"
506
614
  }
507
615
  ];
508
616
 
509
- // 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
617
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
510
618
  var HOW_FLAGS = [
511
619
  {
512
620
  name: "--limit",
@@ -740,6 +848,7 @@ var HOW_FLAGS = [
740
848
  type: "switch",
741
849
  meaning: "record the action as the owner's although an agent's terminal runs the tool"
742
850
  },
851
+ { name: "--from-app", role: "mode", type: "switch", meaning: "the owner acted in the app; its word, not a check" },
743
852
  {
744
853
  name: "--allow-any-file",
745
854
  role: "mode",
@@ -1501,7 +1610,7 @@ var HOW_FLAGS = [
1501
1610
  }
1502
1611
  ];
1503
1612
 
1504
- // 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
1613
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
1505
1614
  var MAIL_FLAGS = [
1506
1615
  {
1507
1616
  name: "--cc",
@@ -1531,7 +1640,7 @@ var MAIL_FLAGS = [
1531
1640
  }
1532
1641
  ];
1533
1642
 
1534
- // 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
1643
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
1535
1644
  var PRIVACY_FLAGS = [
1536
1645
  {
1537
1646
  name: "--about-text",
@@ -1592,7 +1701,7 @@ var PRIVACY_FLAGS = [
1592
1701
  { name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
1593
1702
  ];
1594
1703
 
1595
- // 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
1704
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
1596
1705
  var SCHEDULE_FLAGS = [
1597
1706
  {
1598
1707
  name: "--notify-on",
@@ -1618,7 +1727,7 @@ var SCHEDULE_FLAGS = [
1618
1727
  }
1619
1728
  ];
1620
1729
 
1621
- // 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
1730
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
1622
1731
  var WHAT_FLAGS = [
1623
1732
  {
1624
1733
  name: "--analysis-provider",
@@ -2344,7 +2453,14 @@ var WHAT_FLAGS = [
2344
2453
  type: "id",
2345
2454
  meaning: "the stored calendar event it is linked to, or none to unlink"
2346
2455
  },
2347
- { name: "--every", value: "<duration>", role: "value", type: "duration", meaning: "repeat this often" },
2456
+ {
2457
+ name: "--every",
2458
+ value: "<duration>",
2459
+ role: "value",
2460
+ type: "duration",
2461
+ otherValues: ["count-unit"],
2462
+ 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>)"
2463
+ },
2348
2464
  {
2349
2465
  name: "--evidence",
2350
2466
  value: "<ref...>",
@@ -2580,7 +2696,7 @@ var WHAT_FLAGS = [
2580
2696
  }
2581
2697
  ];
2582
2698
 
2583
- // 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
2699
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.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
2584
2700
  var FLAG_TYPES = [
2585
2701
  "switch",
2586
2702
  "count",
@@ -2668,6 +2784,7 @@ var defineVocabulary = /* @__PURE__ */ __name((input) => parseRegistry("vocabula
2668
2784
  var verbs = [
2669
2785
  ["list", "show many"],
2670
2786
  ["show", "show one"],
2787
+ ["browse", "list one level of a remote hierarchy, such as a provider's folders, to choose from; reads only"],
2671
2788
  ["search", "find by text; the description says where it looks"],
2672
2789
  ["prepare", "assemble bounded cited context for a selected upcoming activity without applying findings"],
2673
2790
  ["related", "what is nearest in meaning to one thing, without a query"],
@@ -2698,7 +2815,7 @@ var verbs = [
2698
2815
  ["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
2699
2816
  ["install", "install a system unit"],
2700
2817
  ["uninstall", "remove a system unit"],
2701
- ["cancel", "stop a job or a pending thing"],
2818
+ ["cancel", "stop a job, a pending thing or a subscription"],
2702
2819
  [
2703
2820
  "sync",
2704
2821
  "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"
@@ -2721,6 +2838,10 @@ var verbs = [
2721
2838
  // Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
2722
2839
  ["link", "record that two identities are one person"],
2723
2840
  ["unlink", "undo a link"],
2841
+ [
2842
+ "match",
2843
+ "link each waiting record to the thing its identifiers name, such as a person by e-mail address; a name alone never matches"
2844
+ ],
2724
2845
  ["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
2725
2846
  ["lookup", "ask the messenger who is behind a phone number"],
2726
2847
  [
@@ -2833,7 +2954,14 @@ var collections = [
2833
2954
  ["leads", "possible customers not yet qualified into a deal"],
2834
2955
  ["pipelines", "ordered sets of stages a deal moves through"],
2835
2956
  ["stages", "steps of a pipeline, each open, won or lost"],
2836
- ["products", "goods and services the owner sells, with their prices"],
2957
+ ["products", "goods and services the owner sells or buys, with their prices"],
2958
+ ["lines", "the rows of an order or an invoice: what, how many and at what price"],
2959
+ ["contracts", "agreements the owner is a party to, with their terms, dates and renewal"],
2960
+ ["subscriptions", "charges that repeat on a schedule, which the owner pays or is paid, with their price history"],
2961
+ ["prices", "what a thing costs over time, each price from its start date"],
2962
+ ["wallets", "places that hold the owner's money, such as a bank account, a card or cash"],
2963
+ ["transactions", "money that moved in or out of a wallet, as the bank or the owner recorded it"],
2964
+ ["splits", "parts of one transaction, each with its own amount and category"],
2837
2965
  ["users", "people who work in the owner's account at a service, such as a CRM's employees"],
2838
2966
  ["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
2839
2967
  [
@@ -2978,7 +3106,7 @@ var VOCABULARY = defineVocabulary({
2978
3106
  ]
2979
3107
  });
2980
3108
 
2981
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3109
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2982
3110
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2983
3111
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2984
3112
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3201,7 +3329,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3201
3329
  }
3202
3330
  }, "runCommandForAgent");
3203
3331
 
3204
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3332
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3205
3333
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3206
3334
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3207
3335
  var message = pipe(
@@ -3457,10 +3585,10 @@ var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES,
3457
3585
  var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3458
3586
  const judged = judgedEffects(effects);
3459
3587
  const context = { ...failureContext(errors), ...judged ? { effects: judged } : {} };
3460
- return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3588
+ return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3461
3589
  }, "failed");
3462
3590
 
3463
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3591
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3464
3592
  import { randomUUID } from "node:crypto";
3465
3593
  var MATCHES = 8;
3466
3594
  var ANSWER = answerSchema();
@@ -5,15 +5,15 @@ import {
5
5
  } from "./chunk-Y5E2WNWB.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-BXTDAGM4.js";
8
+ } from "./chunk-4ZW6ZJ2V.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/speech/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {