@wirecat/mail-cli 0.14.0 → 0.16.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 (163) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +5 -4
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-O7HQNZOF.js → all-profiles-TUDREUUW.js} +10 -10
  5. package/dist/bundle/{anthropic-SNA6PTVO.js → anthropic-KQOVSP6C.js} +6 -6
  6. package/dist/bundle/{app-server-LBKMJMKN.js → app-server-QK7PKVT7.js} +47 -47
  7. package/dist/bundle/{bun-KF5QK2YN.js → bun-2NMWL5YB.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-2DKMM2PT.js → bun-sqlite-Y4FP6SDX.js} +5 -5
  9. package/dist/bundle/{chunk-UJEO3VWA.js → chunk-3CVDHJER.js} +1 -1
  10. package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-3ZJE5TIG.js} +2 -2
  11. package/dist/bundle/{chunk-UHHARH5X.js → chunk-4IEDXIUN.js} +308 -236
  12. package/dist/bundle/{chunk-KBFIKUCA.js → chunk-4IIH5PXR.js} +28 -28
  13. package/dist/bundle/{chunk-ZCPUKUST.js → chunk-5FPQGUJA.js} +1 -1
  14. package/dist/bundle/{chunk-DPKHVBP3.js → chunk-6DVPPLAN.js} +5 -5
  15. package/dist/bundle/{chunk-XRJIQC6P.js → chunk-7LMTWOTP.js} +2 -2
  16. package/dist/bundle/{chunk-H2ZURG7Q.js → chunk-ANFIIXBL.js} +2 -2
  17. package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-ARDUJR5Z.js} +1 -1
  18. package/dist/bundle/{chunk-AOVOIXGR.js → chunk-B2NDDA2W.js} +10 -10
  19. package/dist/bundle/{chunk-MQK2UNG4.js → chunk-CGH6UH3T.js} +8 -8
  20. package/dist/bundle/{chunk-BP3TZ4EY.js → chunk-CRYWPLJP.js} +1 -1
  21. package/dist/bundle/{chunk-Q5EYTU3Q.js → chunk-CT2MIWXY.js} +3 -3
  22. package/dist/bundle/{chunk-7LDC275M.js → chunk-DDQXDX4U.js} +7 -7
  23. package/dist/bundle/{chunk-2KVR7FF3.js → chunk-DKIAHQRN.js} +9 -9
  24. package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
  25. package/dist/bundle/{chunk-MXG4L7NH.js → chunk-EBEYU7RW.js} +10 -10
  26. package/dist/bundle/{chunk-2F7D6YMB.js → chunk-EDJQDR5X.js} +4 -4
  27. package/dist/bundle/{chunk-E7BTD4P6.js → chunk-EZIJPXDZ.js} +6 -6
  28. package/dist/bundle/{chunk-RE5SEGSR.js → chunk-FHY664YS.js} +4 -4
  29. package/dist/bundle/{chunk-B5XAETYU.js → chunk-FROWEHK7.js} +2 -2
  30. package/dist/bundle/{chunk-IVDUR5Y4.js → chunk-G6RG2AZV.js} +15 -8
  31. package/dist/bundle/{chunk-P547HU26.js → chunk-GAYW2JRW.js} +10 -10
  32. package/dist/bundle/{chunk-2A4BAMNF.js → chunk-GIKNAOER.js} +4 -4
  33. package/dist/bundle/{chunk-UMWR5PKA.js → chunk-HN3EDDVX.js} +13 -13
  34. package/dist/bundle/{chunk-7GSE57K3.js → chunk-HVAXTTOT.js} +3 -3
  35. package/dist/bundle/{chunk-G53HRGTK.js → chunk-I3K6JG4I.js} +17 -17
  36. package/dist/bundle/{chunk-YG4OI3HJ.js → chunk-IJYYD2JU.js} +383 -204
  37. package/dist/bundle/{chunk-M2YIJDBL.js → chunk-K2OQCQ2N.js} +6 -6
  38. package/dist/bundle/{chunk-P62Z3Q35.js → chunk-KJV3BI7S.js} +14 -14
  39. package/dist/bundle/{chunk-DIP3ENSY.js → chunk-KMZRXGTF.js} +1 -1
  40. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
  41. package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-LMN7SYX4.js} +1 -1
  42. package/dist/bundle/{chunk-I7EWIIBC.js → chunk-M24BGP7M.js} +2 -3
  43. package/dist/bundle/{chunk-V5ZID7KC.js → chunk-M6O4DH5F.js} +1 -1
  44. package/dist/bundle/{chunk-WVWNKZI4.js → chunk-MLWN27HF.js} +465 -280
  45. package/dist/bundle/{chunk-VA3JKERH.js → chunk-N7DLDEFU.js} +2 -2
  46. package/dist/bundle/{chunk-QZXHMQCM.js → chunk-OYB3FUYQ.js} +1 -1
  47. package/dist/bundle/{chunk-I62OTHDE.js → chunk-POS35G6D.js} +3 -3
  48. package/dist/bundle/{chunk-5C74F7XX.js → chunk-PWTEWT4M.js} +4 -4
  49. package/dist/bundle/{chunk-NVQUK2DH.js → chunk-PYX6K527.js} +47 -47
  50. package/dist/bundle/{chunk-VERSKGJV.js → chunk-Q4T2HBZP.js} +2 -2
  51. package/dist/bundle/{chunk-3EAAEF5U.js → chunk-QCNK3YUZ.js} +95 -36
  52. package/dist/bundle/{chunk-OGK7LMYT.js → chunk-R6SBRHVG.js} +6 -6
  53. package/dist/bundle/{chunk-WBJQEB6E.js → chunk-RPEW7E3S.js} +12 -12
  54. package/dist/bundle/{chunk-X5XIFNTI.js → chunk-TTOKDZQX.js} +2 -2
  55. package/dist/bundle/{chunk-NGZW2JPK.js → chunk-UBLFUQ7O.js} +7 -7
  56. package/dist/bundle/{chunk-W643XZIR.js → chunk-VD6GZ3W2.js} +2 -2
  57. package/dist/bundle/{chunk-6CZQJ5XR.js → chunk-VP5FL5JQ.js} +8 -8
  58. package/dist/bundle/{chunk-XPREXN3W.js → chunk-VTJ5TMGN.js} +3 -3
  59. package/dist/bundle/{chunk-IPKXRW6W.js → chunk-WKHHCCJE.js} +26 -25
  60. package/dist/bundle/{chunk-KLLKDOO2.js → chunk-X7EBOXBY.js} +485 -309
  61. package/dist/bundle/{chunk-H7OQ4YZV.js → chunk-XAANQN4R.js} +47 -28
  62. package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
  63. package/dist/bundle/{chunk-3YGYB3LJ.js → chunk-XEIGKPYU.js} +27 -6
  64. package/dist/bundle/{chunk-FTGCXIQA.js → chunk-YGJO5VNR.js} +47 -33
  65. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
  66. package/dist/bundle/{chunk-ER6PJAPK.js → chunk-ZNW4E3SG.js} +3 -3
  67. package/dist/bundle/{chunk-F5SZVO3A.js → chunk-ZS6YKNYS.js} +4 -4
  68. package/dist/bundle/command-contract-GVNLRXWS.js +34 -0
  69. package/dist/bundle/{decode-X7Y2VSYZ.js → decode-WCS4KOHV.js} +5 -5
  70. package/dist/bundle/{dispatch-OWNO2CMC.js → dispatch-3ILCYZ4Q.js} +8 -8
  71. package/dist/bundle/{dist-L7FNC74Q.js → dist-FL422DTA.js} +14 -14
  72. package/dist/bundle/{echarts-5AB3LFVD.js → echarts-45D6USAX.js} +2 -2
  73. package/dist/bundle/{embed-VBS5LRCE.js → embed-4B4ATLCN.js} +6 -6
  74. package/dist/bundle/{embedder-VFSYBDKK.js → embedder-ASWGJXNV.js} +9 -9
  75. package/dist/bundle/{failure-E534GZDF.js → failure-UDL5QZRZ.js} +2 -2
  76. package/dist/bundle/{first-run-NO2ODH2W.js → first-run-5K3UD4BU.js} +11 -11
  77. package/dist/bundle/first-screen-NNX54MYC.js +32 -0
  78. package/dist/bundle/{instructions-52W6ZQTU.js → instructions-6EFSPC7C.js} +1 -1
  79. package/dist/bundle/mail.js +12 -12
  80. package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
  81. package/dist/bundle/{node-TL2PBNKO.js → node-OXC26QXO.js} +2 -2
  82. package/dist/bundle/{node-sqlite-757HNQAD.js → node-sqlite-PXHZAG7Y.js} +6 -6
  83. package/dist/bundle/{oauth-VDRNJ7KN.js → oauth-YK2QLC7U.js} +7 -7
  84. package/dist/bundle/{open-NUWYOKPO.js → open-SABDXZ4B.js} +5 -5
  85. package/dist/bundle/{openai-YLBFVK5X.js → openai-DPURPXEU.js} +14 -14
  86. package/dist/bundle/{process-PWAGP6YY.js → process-YWPAOI6G.js} +1 -1
  87. package/dist/bundle/{program-PPUPVL7O.js → program-L43S7DRF.js} +12245 -11133
  88. package/dist/bundle/{prompt-M5U66RVJ.js → prompt-GKVNFGFE.js} +5 -5
  89. package/dist/bundle/{recognize-DCMDZA2U.js → recognize-344YDSLX.js} +4 -4
  90. package/dist/bundle/{remote-4SHI5WJG.js → remote-53UZUJJU.js} +7 -7
  91. package/dist/bundle/{rerank-DYMZMNPQ.js → rerank-PAIRND6R.js} +7 -7
  92. package/dist/bundle/{serve-HO3WME4G.js → serve-DZSO7LJK.js} +9 -9
  93. package/dist/bundle/{server-R3TIPRZN.js → server-EGG3V67I.js} +39 -39
  94. package/dist/bundle/server-SGGMRV2K.js +64 -0
  95. package/dist/bundle/{sqlite-runtime-DWRITUIH.js → sqlite-runtime-ZQ6F3VYZ.js} +6 -6
  96. package/dist/bundle/{state-QOMUDOGF.js → state-LXPOWLZ5.js} +6 -6
  97. package/dist/bundle/{store-RGO6IABA.js → store-4ZMSK5R5.js} +15 -15
  98. package/dist/bundle/{store-LHHMOE5V.js → store-PHT75I6S.js} +21 -19
  99. package/dist/bundle/store-maintenance-command-C6ONZNRX.js +54 -0
  100. package/dist/commands/account.d.ts.map +1 -1
  101. package/dist/commands/account.js +149 -3
  102. package/dist/commands/account.js.map +1 -1
  103. package/dist/commands/context.d.ts +3 -0
  104. package/dist/commands/context.d.ts.map +1 -1
  105. package/dist/commands/context.js +2 -2
  106. package/dist/commands/context.js.map +1 -1
  107. package/dist/commands/import.d.ts +3 -0
  108. package/dist/commands/import.d.ts.map +1 -0
  109. package/dist/commands/import.js +92 -0
  110. package/dist/commands/import.js.map +1 -0
  111. package/dist/commands/read.d.ts.map +1 -1
  112. package/dist/commands/read.js +29 -3
  113. package/dist/commands/read.js.map +1 -1
  114. package/dist/commands/session-start.d.ts.map +1 -1
  115. package/dist/commands/session-start.js +9 -7
  116. package/dist/commands/session-start.js.map +1 -1
  117. package/dist/commands/stats.d.ts.map +1 -1
  118. package/dist/commands/stats.js +49 -2
  119. package/dist/commands/stats.js.map +1 -1
  120. package/dist/commands/sync.d.ts +2 -0
  121. package/dist/commands/sync.d.ts.map +1 -1
  122. package/dist/commands/sync.js +38 -4
  123. package/dist/commands/sync.js.map +1 -1
  124. package/dist/config.d.ts +12 -1
  125. package/dist/config.d.ts.map +1 -1
  126. package/dist/config.js +30 -1
  127. package/dist/config.js.map +1 -1
  128. package/dist/mail/doctor.d.ts +3 -2
  129. package/dist/mail/doctor.d.ts.map +1 -1
  130. package/dist/mail/doctor.js +14 -16
  131. package/dist/mail/doctor.js.map +1 -1
  132. package/dist/mail/domain-age.d.ts +29 -0
  133. package/dist/mail/domain-age.d.ts.map +1 -0
  134. package/dist/mail/domain-age.js +157 -0
  135. package/dist/mail/domain-age.js.map +1 -0
  136. package/dist/mail/mbox.d.ts +9 -0
  137. package/dist/mail/mbox.d.ts.map +1 -0
  138. package/dist/mail/mbox.js +230 -0
  139. package/dist/mail/mbox.js.map +1 -0
  140. package/dist/oauth.d.ts +13 -9
  141. package/dist/oauth.d.ts.map +1 -1
  142. package/dist/oauth.js +12 -25
  143. package/dist/oauth.js.map +1 -1
  144. package/dist/profile.d.ts +4 -1
  145. package/dist/profile.d.ts.map +1 -1
  146. package/dist/profile.js +6 -1
  147. package/dist/profile.js.map +1 -1
  148. package/dist/program.d.ts.map +1 -1
  149. package/dist/program.js +15 -2
  150. package/dist/program.js.map +1 -1
  151. package/dist/reasons.d.ts +1 -1
  152. package/dist/reasons.d.ts.map +1 -1
  153. package/dist/reasons.js +0 -1
  154. package/dist/reasons.js.map +1 -1
  155. package/dist/version.d.ts +1 -1
  156. package/dist/version.js +1 -1
  157. package/package.json +4 -4
  158. package/skills/mail-cli/SKILL.md +2 -0
  159. package/dist/bundle/command-contract-B3OGAIDB.js +0 -34
  160. package/dist/bundle/first-screen-7VJLGMJJ.js +0 -32
  161. package/dist/bundle/server-244FHPY4.js +0 -64
  162. package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +0 -54
  163. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
@@ -30,18 +30,18 @@ import {
30
30
  string,
31
31
  union,
32
32
  variant
33
- } from "./chunk-IVDUR5Y4.js";
33
+ } from "./chunk-G6RG2AZV.js";
34
34
  import {
35
35
  CliError,
36
36
  isCliError,
37
37
  singleLine,
38
38
  visibleControls
39
- } from "./chunk-CCHHEMPM.js";
39
+ } from "./chunk-EB2IULWB.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
43
43
 
44
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/reference.js
44
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/reference.js
45
45
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
46
46
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
47
47
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -59,8 +59,8 @@ var formatMeetingReference = /* @__PURE__ */ __name((reference2) => {
59
59
  }
60
60
  return `meeting:${parts.join("/")}`;
61
61
  }, "formatMeetingReference");
62
- var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
63
- const value = text6.trim();
62
+ var parseMeetingReference = /* @__PURE__ */ __name((text5) => {
63
+ const value = text5.trim();
64
64
  if (!value.startsWith("meeting:"))
65
65
  throw invalid();
66
66
  const parts = value.slice(8).split("/");
@@ -76,9 +76,9 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
76
76
  };
77
77
  return reference2;
78
78
  }, "parseMeetingReference");
79
- var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
79
+ var canonicalMeetingReference = /* @__PURE__ */ __name((text5) => formatMeetingReference(parseMeetingReference(text5)), "canonicalMeetingReference");
80
80
 
81
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/payment.js
81
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/payment.js
82
82
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
83
83
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
84
84
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
@@ -172,7 +172,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
172
172
  return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
173
173
  }, "paymentTitle");
174
174
 
175
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
175
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
176
176
  var QUERY_LIMITS = {
177
177
  bytes: 8192,
178
178
  depth: 32,
@@ -216,7 +216,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
216
216
  __name(queryError, "queryError");
217
217
  var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
218
218
 
219
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
219
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
220
220
  var timezoneOf = /* @__PURE__ */ __name((given) => {
221
221
  const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
222
222
  try {
@@ -361,8 +361,8 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
361
361
  };
362
362
  }, "dateRange");
363
363
 
364
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
365
- var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
364
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
365
+ var wordsOf = /* @__PURE__ */ __name((text5) => text5.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
366
366
  var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
367
367
  var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
368
368
  var matchOne = /* @__PURE__ */ __name((field, node, value, options) => {
@@ -370,10 +370,10 @@ var matchOne = /* @__PURE__ */ __name((field, node, value, options) => {
370
370
  return false;
371
371
  if (node.operator === "wildcard" && node.value === "*")
372
372
  return true;
373
- const text6 = String(value);
373
+ const text5 = String(value);
374
374
  switch (field.type) {
375
375
  case "txt": {
376
- const words2 = wordsOf(text6);
376
+ const words2 = wordsOf(text5);
377
377
  if (node.operator === "wildcard")
378
378
  return words2.some((word) => pattern(node.value).test(word));
379
379
  const wanted = wordsOf(node.value);
@@ -387,13 +387,13 @@ var matchOne = /* @__PURE__ */ __name((field, node, value, options) => {
387
387
  return (lower === "*" || (lowerInclusive ? number2 >= Number(lower) : number2 > Number(lower))) && (upper === "*" || (upperInclusive ? number2 <= Number(upper) : number2 < Number(upper)));
388
388
  }
389
389
  case "time": {
390
- const time = Date.parse(text6);
390
+ const time = Date.parse(text5);
391
391
  const [lower, upper, lowerInclusive, upperInclusive] = node.operator === "range" ? [node.value, node.upper ?? "*", node.lower_inclusive ?? true, node.upper_inclusive ?? true] : [node.value, node.value, true, true];
392
392
  const range = dateRange(lower, upper, lowerInclusive, upperInclusive, options.zone ?? "UTC", node.span, options.now);
393
393
  return (range.lower === void 0 || (range.lower_inclusive ? time >= range.lower : time > range.lower)) && (range.upper === void 0 || (range.upper_inclusive ? time <= range.upper : time < range.upper));
394
394
  }
395
395
  default:
396
- return node.operator === "wildcard" ? pattern(node.value).test(text6) : text6.toLowerCase() === node.value.toLowerCase();
396
+ return node.operator === "wildcard" ? pattern(node.value).test(text5) : text5.toLowerCase() === node.value.toLowerCase();
397
397
  }
398
398
  }, "matchOne");
399
399
  var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
@@ -414,9 +414,9 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
414
414
  const value = item[node.field];
415
415
  return Array.isArray(value) ? value.some((one) => matchOne(field, node, one, options)) : matchOne(field, node, value, options);
416
416
  }, "matches");
417
- var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
417
+ var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
418
418
 
419
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
419
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
420
420
  var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
421
421
  var OPERATORS_BY_TYPE = {
422
422
  kw: ["term", "phrase", "wildcard"],
@@ -495,22 +495,17 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
495
495
  return [...own, ...relations, ...states];
496
496
  }, "queryFieldsOf");
497
497
 
498
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
499
- var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
498
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
500
499
  var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
501
- var leftOut = /* @__PURE__ */ __name((fields2) => fields2.filter((field) => field.negatable).map((field) => field.name), "leftOut");
502
- var has = /* @__PURE__ */ __name((fields2, operator) => fields2.some((field) => field.operators.includes(operator)), "has");
503
- var syntaxOf = /* @__PURE__ */ __name((shown, backend) => {
504
- if (backend !== "native")
505
- return QUERY_SYNTAX;
506
- return [
507
- "field:value",
508
- ...has(shown, "phrase") ? ['"a phrase"'] : [],
509
- ...has(shown, "wildcard") ? ["word*"] : [],
510
- "terms joined by AND",
511
- ...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
512
- ].join(" \xB7 ");
513
- }, "syntaxOf");
500
+ var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
501
+ var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
502
+ var syntaxOf = /* @__PURE__ */ __name((shown, backend) => [
503
+ "field:value",
504
+ ...has(shown, "phrase") ? ['"a phrase"'] : [],
505
+ ...has(shown, "wildcard") ? ["word*"] : [],
506
+ ...backend === "native" ? ["terms joined by AND"] : ["AND OR NOT", "( )"],
507
+ ...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
508
+ ].join(" \xB7 "), "syntaxOf");
514
509
  var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
515
510
  var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
516
511
  const shown = shownOf(registry);
@@ -531,13 +526,13 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
531
526
  if (shown.length === 0)
532
527
  return "field:value terms; this list filters by none yet, so any term is refused";
533
528
  const negatable = leftOut(shown);
534
- const terms = registry.backend === "native" ? `field:value terms joined by AND that narrow the list${negatable.length > 0 ? `; -field:value or NOT field:value leaves out what matches, for ${negatable.join(", ")} only` : ""}` : "field:value terms that narrow the list (Lucene: AND OR NOT, -field:value, [a TO b], > <)";
535
- const fields2 = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
529
+ const terms = registry.backend === "native" ? `field:value terms joined by AND that narrow the list${negatable.length > 0 ? `; -field:value or NOT field:value leaves out what matches, for ${negatable.join(", ")} only` : ""}` : `field:value terms that narrow the list (Lucene: AND OR NOT, -field:value${has(shown, "range") ? ", [a TO b], > <" : ""})`;
530
+ const fields = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
536
531
  const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
537
- return `${terms}; fields: ${fields2.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
532
+ return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
538
533
  }, "queryDescription");
539
534
 
540
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
535
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
541
536
  var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
542
537
  var reserved = /* @__PURE__ */ new Set([
543
538
  "+",
@@ -580,13 +575,13 @@ var decodeEscapes = /* @__PURE__ */ __name((raw, span, fail) => {
580
575
  }
581
576
  return out;
582
577
  }, "decodeEscapes");
583
- var tokensOf = /* @__PURE__ */ __name((text6, fail = queryError) => {
578
+ var tokensOf = /* @__PURE__ */ __name((text5, fail = queryError) => {
584
579
  const tokens = [];
585
580
  let at = 0;
586
581
  let range = false;
587
- while (at < text6.length) {
582
+ while (at < text5.length) {
588
583
  const start = at;
589
- const c = text6[at] ?? "";
584
+ const c = text5[at] ?? "";
590
585
  if (whitespace(c)) {
591
586
  at++;
592
587
  continue;
@@ -594,30 +589,30 @@ var tokensOf = /* @__PURE__ */ __name((text6, fail = queryError) => {
594
589
  let kind = c;
595
590
  if (c === '"' || !range && c === "/") {
596
591
  at++;
597
- while (at < text6.length && text6[at] !== c) {
598
- if (text6[at] === "\\" && (c === '"' || text6[at + 1] === "/"))
592
+ while (at < text5.length && text5[at] !== c) {
593
+ if (text5[at] === "\\" && (c === '"' || text5[at + 1] === "/"))
599
594
  at++;
600
595
  at++;
601
596
  }
602
- if (at >= text6.length)
603
- fail("query.unclosed-literal", { start, end: at }, c === "/" ? regexHint(text6, start) : void 0);
597
+ if (at >= text5.length)
598
+ fail("query.unclosed-literal", { start, end: at }, c === "/" ? regexHint(text5, start) : void 0);
604
599
  at++;
605
- if (c === "/" && /^[dgimsuvy]+(?:$|[ \t\n\r)])/.test(text6.slice(at)))
600
+ if (c === "/" && /^[dgimsuvy]+(?:$|[ \t\n\r)])/.test(text5.slice(at)))
606
601
  fail("query.unsupported-regex-flags", { start: at, end: at + 1 }, "Lucene regex does not take JavaScript flags");
607
602
  kind = c === '"' ? "quoted" : "regex";
608
603
  } else if (range && c !== "]" && c !== "}") {
609
- while (at < text6.length && !whitespace(text6[at] ?? "") && !["]", "}"].includes(text6[at] ?? ""))
604
+ while (at < text5.length && !whitespace(text5[at] ?? "") && !["]", "}"].includes(text5[at] ?? ""))
610
605
  at++;
611
606
  kind = "rangeValue";
612
607
  } else if (reserved.has(c)) {
613
608
  if (c === "\\") {
614
609
  at += 2;
615
- while (at < text6.length && !whitespace(text6[at] ?? "") && (!reserved.has(text6[at] ?? "") || ["+", "-"].includes(text6[at] ?? "")))
610
+ while (at < text5.length && !whitespace(text5[at] ?? "") && (!reserved.has(text5[at] ?? "") || ["+", "-"].includes(text5[at] ?? "")))
616
611
  at++;
617
612
  kind = "term";
618
613
  } else {
619
614
  at++;
620
- if ((c === "<" || c === ">") && text6[at] === "=") {
615
+ if ((c === "<" || c === ">") && text5[at] === "=") {
621
616
  at++;
622
617
  kind += "=";
623
618
  }
@@ -628,15 +623,15 @@ var tokensOf = /* @__PURE__ */ __name((text6, fail = queryError) => {
628
623
  }
629
624
  } else {
630
625
  at++;
631
- while (at < text6.length) {
632
- const next = text6[at] ?? "";
626
+ while (at < text5.length) {
627
+ const next = text5[at] ?? "";
633
628
  if (next === "\\") {
634
- if (at + 1 >= text6.length)
629
+ if (at + 1 >= text5.length)
635
630
  fail("query.invalid-escape", { start: at, end: at + 1 });
636
631
  at += 2;
637
632
  continue;
638
633
  }
639
- if (next === "@" && new RegExp("^@(?:\\p{L}|[\\p{L}\\p{N}][^\\s@]*\\.[\\p{L}\\p{N}])", "u").test(text6.slice(at))) {
634
+ if (next === "@" && new RegExp("^@(?:\\p{L}|[\\p{L}\\p{N}][^\\s@]*\\.[\\p{L}\\p{N}])", "u").test(text5.slice(at))) {
640
635
  at++;
641
636
  continue;
642
637
  }
@@ -644,16 +639,20 @@ var tokensOf = /* @__PURE__ */ __name((text6, fail = queryError) => {
644
639
  break;
645
640
  at++;
646
641
  }
647
- const raw = text6.slice(start, at);
642
+ const [field, colon] = tokens.slice(-2);
643
+ if (field?.kind === "term" && colon?.kind === ":" && colon.span.end === start && text5[at] === ":" && /^[a-z][a-z_-]*$/u.test(text5.slice(start, at)) && /^:[^\s()"]/u.test(text5.slice(at)))
644
+ while (at < text5.length && !whitespace(text5[at] ?? "") && !["(", ")", '"'].includes(text5[at] ?? ""))
645
+ at++;
646
+ const raw = text5.slice(start, at);
648
647
  kind = { AND: "AND", OR: "OR", NOT: "NOT", "&&": "AND", "||": "OR" }[raw] ?? (/^\d+(?:\.\d+)?$/u.test(raw) ? "number" : "term");
649
648
  }
650
- tokens.push({ kind, raw: text6.slice(start, at), span: { start, end: at } });
649
+ tokens.push({ kind, raw: text5.slice(start, at), span: { start, end: at } });
651
650
  }
652
651
  tokens.push({ kind: "EOF", raw: "", span: { start: at, end: at } });
653
652
  return tokens;
654
653
  }, "tokensOf");
655
- var quoteHint = /* @__PURE__ */ __name((text6, at) => {
656
- for (const match of text6.matchAll(/(?<=^|[\s(])([\p{L}\p{N}_.-]+):([^\s"()]+)/gu)) {
654
+ var quoteHint = /* @__PURE__ */ __name((text5, at) => {
655
+ for (const match of text5.matchAll(/(?<=^|[\s(])([\p{L}\p{N}_.-]+):([^\s"()]+)/gu)) {
657
656
  const [whole, field, value = ""] = match;
658
657
  if (at < match.index || at > match.index + whole.length)
659
658
  continue;
@@ -661,15 +660,15 @@ var quoteHint = /* @__PURE__ */ __name((text6, at) => {
661
660
  }
662
661
  return void 0;
663
662
  }, "quoteHint");
664
- var regexHint = /* @__PURE__ */ __name((text6, at) => {
665
- const word = `${/[^\s()"]*$/u.exec(text6.slice(0, at))?.[0] ?? ""}${/^[^\s()"]*/u.exec(text6.slice(at))?.[0] ?? ""}`;
666
- return quoteHint(text6, at) ?? `/ starts a regular expression; put the value in quotes: "${word}"`;
663
+ var regexHint = /* @__PURE__ */ __name((text5, at) => {
664
+ const word = `${/[^\s()"]*$/u.exec(text5.slice(0, at))?.[0] ?? ""}${/^[^\s()"]*/u.exec(text5.slice(at))?.[0] ?? ""}`;
665
+ return quoteHint(text5, at) ?? `/ starts a regular expression; put the value in quotes: "${word}"`;
667
666
  }, "regexHint");
668
- var parseLucene = /* @__PURE__ */ __name((text6, { defaultField = "text", proximity = false, ...context3 } = {}) => {
669
- const fail = /* @__PURE__ */ __name((reason, span, alternative) => queryError(reason, span, alternative ?? quoteHint(text6, span.start), context3), "fail");
670
- if (text6.length > QUERY_LIMITS.bytes || new TextEncoder().encode(text6).length > QUERY_LIMITS.bytes)
671
- fail("query.too-large", { start: 0, end: text6.length });
672
- const tokens = tokensOf(text6, fail);
667
+ var parseLucene = /* @__PURE__ */ __name((text5, { defaultField = "text", proximity = false, ...context3 } = {}) => {
668
+ const fail = /* @__PURE__ */ __name((reason, span, alternative) => queryError(reason, span, alternative ?? quoteHint(text5, span.start), context3), "fail");
669
+ if (text5.length > QUERY_LIMITS.bytes || new TextEncoder().encode(text5).length > QUERY_LIMITS.bytes)
670
+ fail("query.too-large", { start: 0, end: text5.length });
671
+ const tokens = tokensOf(text5, fail);
673
672
  let at = 0;
674
673
  let count6 = 0;
675
674
  let depth = 0;
@@ -835,14 +834,14 @@ var parseLucene = /* @__PURE__ */ __name((text6, { defaultField = "text", proxim
835
834
  }
836
835
  return { version: 1, language: "lucene-v1", root };
837
836
  }, "parseLucene");
838
- var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
839
- const tokens = tokensOf(text6);
837
+ var implicitTextTerms = /* @__PURE__ */ __name((text5) => {
838
+ const tokens = tokensOf(text5);
840
839
  if (tokens.some(({ kind }) => ["AND", "OR", "NOT", "+", "-", "!", "(", ")"].includes(kind)))
841
840
  return /* @__PURE__ */ new Set();
842
841
  return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
843
842
  }, "implicitTextTerms");
844
843
 
845
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
844
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
846
845
  var inContext = /* @__PURE__ */ __name((context3, run2) => {
847
846
  try {
848
847
  run2();
@@ -917,7 +916,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
917
916
  }, "validateQuery");
918
917
  var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
919
918
 
920
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
919
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
921
920
  var describeQuery = /* @__PURE__ */ __name((registry) => ({
922
921
  entity: registry.entity,
923
922
  backend: registry.backend,
@@ -926,14 +925,14 @@ var describeQuery = /* @__PURE__ */ __name((registry) => ({
926
925
  }), "describeQuery");
927
926
  var exampleProblems = /* @__PURE__ */ __name((registry) => {
928
927
  const syntaxOnly = { ...registry, backend: "sql" };
929
- const problem = /* @__PURE__ */ __name((text6, field) => {
928
+ const problem = /* @__PURE__ */ __name((text5, field) => {
930
929
  try {
931
- const named = walkQuery(validateQuery(parseLucene(text6, { defaultField: "none" }), syntaxOnly).root);
932
- return named.every((node) => node.field === field) ? void 0 : `"${text6}" does not name ${field}`;
930
+ const named = walkQuery(validateQuery(parseLucene(text5, { defaultField: "none" }), syntaxOnly).root);
931
+ return named.every((node) => node.field === field) ? void 0 : `"${text5}" does not name ${field}`;
933
932
  } catch (failure) {
934
933
  if (!isCliError(failure))
935
934
  throw failure;
936
- return `"${text6}": ${failure.message}`;
935
+ return `"${text5}": ${failure.message}`;
937
936
  }
938
937
  }, "problem");
939
938
  const defaults = (registry.defaults ?? []).map((term) => {
@@ -988,7 +987,7 @@ var QUERY_REASONS = defineReasons([
988
987
  details: [...SPAN, ...details]
989
988
  })));
990
989
 
991
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/item.js
990
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/item.js
992
991
  var text = string();
993
992
  var count = pipe(number(), integer(), minValue(0));
994
993
  var MEETING_ISSUES = ["time_without_zone"];
@@ -1053,7 +1052,7 @@ var MEETING_QUERY = {
1053
1052
  })
1054
1053
  };
1055
1054
 
1056
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1055
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1057
1056
  var text2 = string();
1058
1057
  var count2 = pipe(number(), integer(), minValue(0));
1059
1058
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -1167,7 +1166,7 @@ var meetingSummaryItem = /* @__PURE__ */ __name((accountId, summary) => ({
1167
1166
  source: summary.source,
1168
1167
  title: summary.title,
1169
1168
  overview: summary.overview,
1170
- sections: summary.sections.map(({ label, text: text6 }) => ({ label, text: text6 })),
1169
+ sections: summary.sections.map(({ label, text: text5 }) => ({ label, text: text5 })),
1171
1170
  next_steps: summary.nextSteps,
1172
1171
  content: summary.content,
1173
1172
  url: summary.docUrl,
@@ -1288,7 +1287,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
1288
1287
  };
1289
1288
  }, "meetingHitsList");
1290
1289
 
1291
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1290
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1292
1291
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
1293
1292
  const parsed = urlOf(url);
1294
1293
  if (!parsed)
@@ -1322,15 +1321,15 @@ var urlOf = /* @__PURE__ */ __name((url) => {
1322
1321
  }
1323
1322
  }, "urlOf");
1324
1323
 
1325
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1324
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1326
1325
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
1327
1326
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
1328
1327
  var htmlToText = /* @__PURE__ */ __name((html) => html.replace(/<\s*br\s*\/?>/giu, "\n").replace(/<\/\s*(p|div|li|tr|h[1-6])\s*>/giu, "\n").replace(/<a\s[^>]*href\s*=\s*"([^"]*)"[^>]*>/giu, " $1 ").replace(/<[^>]+>/gu, "").replace(/&(amp|lt|gt|quot|#39|apos|nbsp);/gu, (_, name) => ENTITIES[name] ?? ""), "htmlToText");
1329
- var withoutLinkQueries = /* @__PURE__ */ __name((text6) => text6.replace(/https?:\/\/[^\s<>"')\]]+/giu, (url) => joinUrlWithoutQuery(url) ?? ""), "withoutLinkQueries");
1330
- var calendarText = /* @__PURE__ */ __name((text6, { dropSecretLines = true } = {}) => {
1331
- if (!text6)
1328
+ var withoutLinkQueries = /* @__PURE__ */ __name((text5) => text5.replace(/https?:\/\/[^\s<>"')\]]+/giu, (url) => joinUrlWithoutQuery(url) ?? ""), "withoutLinkQueries");
1329
+ var calendarText = /* @__PURE__ */ __name((text5, { dropSecretLines = true } = {}) => {
1330
+ if (!text5)
1332
1331
  return null;
1333
- const kept = htmlToText(text6).split(/\r?\n/u).map((line2) => withoutLinkQueries(line2).replace(/[ \t]+/gu, " ").trim()).filter((line2) => !dropSecretLines || !SECRET_LINE.test(line2));
1332
+ const kept = htmlToText(text5).split(/\r?\n/u).map((line2) => withoutLinkQueries(line2).replace(/[ \t]+/gu, " ").trim()).filter((line2) => !dropSecretLines || !SECRET_LINE.test(line2));
1334
1333
  const joined = kept.join("\n").replace(/\n{3,}/gu, "\n\n").trim();
1335
1334
  return joined || null;
1336
1335
  }, "calendarText");
@@ -1355,7 +1354,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
1355
1354
  return kept;
1356
1355
  }, "entryMetadata");
1357
1356
 
1358
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1357
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1359
1358
  import { createHash } from "node:crypto";
1360
1359
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
1361
1360
  reference: cue2.reference,
@@ -1369,7 +1368,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
1369
1368
  text: cue2.text
1370
1369
  })).digest("hex"), "meetingCueFingerprint");
1371
1370
 
1372
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1371
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1373
1372
  var EVENT_QUERY = defineQuery({
1374
1373
  entity: "event",
1375
1374
  backend: "sql",
@@ -1385,7 +1384,7 @@ var EVENT_QUERY = defineQuery({
1385
1384
  ]
1386
1385
  });
1387
1386
 
1388
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1387
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1389
1388
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
1390
1389
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
1391
1390
  if (entry.recurrenceEndsAt !== null)
@@ -1408,7 +1407,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
1408
1407
  return Math.max(entry.endsAt ?? start, start + 1) > window.from;
1409
1408
  }, "entryInWindow");
1410
1409
 
1411
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/events.js
1410
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/events.js
1412
1411
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
1413
1412
  const current = await store.meeting(details.meeting.id);
1414
1413
  if (!current)
@@ -1451,8 +1450,8 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
1451
1450
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
1452
1451
  }, "linkEvent");
1453
1452
 
1454
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1455
- var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1453
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1454
+ var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text5) => text5.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1456
1455
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
1457
1456
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
1458
1457
  throw new CliError("validation_error", "participant query must contain 1\u2013500 characters without NUL");
@@ -1475,7 +1474,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
1475
1474
  };
1476
1475
  }, "validateMeetingParticipantSearch");
1477
1476
 
1478
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1477
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1479
1478
  var MeetingError = class extends CliError {
1480
1479
  static {
1481
1480
  __name(this, "MeetingError");
@@ -1579,11 +1578,11 @@ var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}, page = 1) =
1579
1578
  } : {}
1580
1579
  };
1581
1580
  }, "meetingsList");
1582
- var meetingsQuery = /* @__PURE__ */ __name((text6) => {
1583
- if (text6 === void 0 || text6.trim() === "")
1581
+ var meetingsQuery = /* @__PURE__ */ __name((text5) => {
1582
+ if (text5 === void 0 || text5.trim() === "")
1584
1583
  return void 0;
1585
1584
  const context3 = { command: "meetings list", guide: MEETING_QUERY_GUIDE };
1586
- const query = parseLucene(text6, { defaultField: "none", ...context3 });
1585
+ const query = parseLucene(text5, { defaultField: "none", ...context3 });
1587
1586
  validateQuery(query, MEETING_QUERY, context3);
1588
1587
  return query;
1589
1588
  }, "meetingsQuery");
@@ -1607,7 +1606,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
1607
1606
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
1608
1607
  }, "meetingSummaryAnswer");
1609
1608
 
1610
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/export.js
1609
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/export.js
1611
1610
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
1612
1611
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
1613
1612
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -1616,10 +1615,10 @@ var timestamp = /* @__PURE__ */ __name((milliseconds) => {
1616
1615
  const seconds = Math.floor(milliseconds % 6e4 / 1e3);
1617
1616
  return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${String(milliseconds % 1e3).padStart(3, "0")}`;
1618
1617
  }, "timestamp");
1619
- var vttText = /* @__PURE__ */ __name((text6) => {
1620
- if (visibleControls(text6) !== text6 || /\n\s*\n/.test(text6))
1618
+ var vttText = /* @__PURE__ */ __name((text5) => {
1619
+ if (visibleControls(text5) !== text5 || /\n\s*\n/.test(text5))
1621
1620
  throw new MeetingError("validation_error", "cue paragraphs or control characters require Markdown export");
1622
- return text6.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
1621
+ return text5.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
1623
1622
  }, "vttText");
1624
1623
  var serializeVtt = /* @__PURE__ */ __name((lines) => `WEBVTT
1625
1624
 
@@ -1637,9 +1636,9 @@ ${speaker}${vttText(line2.text)}
1637
1636
 
1638
1637
  `;
1639
1638
  }).join("")}`, "serializeVtt");
1640
- var markdown = /* @__PURE__ */ __name((text6) => visibleControls(text6).replace(/[\\`*_{}[\]()<>#+.!|~]/g, "\\$&"), "markdown");
1641
- var heading = /* @__PURE__ */ __name((text6) => markdown(singleLine(text6)), "heading");
1642
- var quote = /* @__PURE__ */ __name((text6) => markdown(text6).split(/\r\n|\r|\n/).map((line2) => `> ${line2}`).join("\n"), "quote");
1639
+ var markdown = /* @__PURE__ */ __name((text5) => visibleControls(text5).replace(/[\\`*_{}[\]()<>#+.!|~]/g, "\\$&"), "markdown");
1640
+ var heading = /* @__PURE__ */ __name((text5) => markdown(singleLine(text5)), "heading");
1641
+ var quote = /* @__PURE__ */ __name((text5) => markdown(text5).split(/\r\n|\r|\n/).map((line2) => `> ${line2}`).join("\n"), "quote");
1643
1642
  var transcriptsOf = /* @__PURE__ */ __name((details, transcriptId) => {
1644
1643
  if (transcriptId !== void 0) {
1645
1644
  positiveInteger(transcriptId);
@@ -1703,10 +1702,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
1703
1702
  };
1704
1703
  }, "exportMeeting");
1705
1704
 
1706
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1705
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1707
1706
  import { createHash as createHash2 } from "node:crypto";
1708
1707
 
1709
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1708
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1710
1709
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1711
1710
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
1712
1711
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
@@ -1717,21 +1716,21 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1717
1716
  return new Date(value).toISOString();
1718
1717
  }, "meetingTimestamp");
1719
1718
 
1720
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1719
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1721
1720
  var TASK_TYPES = ["bug", "feature", "chore"];
1722
1721
  var invalid3 = /* @__PURE__ */ __name((message) => {
1723
1722
  throw new CliError("validation_error", message);
1724
1723
  }, "invalid");
1725
- var text3 = /* @__PURE__ */ __name((value, limit) => {
1724
+ var findingText = /* @__PURE__ */ __name((value, limit) => {
1726
1725
  if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > limit)
1727
1726
  return invalid3(`finding text must contain 1\u2013${limit} characters without NUL`);
1728
1727
  return value.trim();
1729
- }, "text");
1728
+ }, "findingText");
1730
1729
  var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
1731
- var fields = /* @__PURE__ */ __name((value, allowed, noun) => {
1730
+ var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => {
1732
1731
  if (Object.keys(value).some((key) => !allowed.includes(key)))
1733
1732
  invalid3(`unknown ${noun} field`);
1734
- }, "fields");
1733
+ }, "findingFields");
1735
1734
  var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
1736
1735
  var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
1737
1736
  if (!Array.isArray(raw) || raw.length < 1 || raw.length > 8)
@@ -1739,7 +1738,7 @@ var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
1739
1738
  const evidence = raw.map((item) => {
1740
1739
  if (!item || typeof item !== "object")
1741
1740
  return invalid3("finding evidence is a reference and fingerprint");
1742
- fields(item, ["reference", "fingerprint"], rules.singular);
1741
+ findingFields(item, ["reference", "fingerprint"], rules.singular);
1743
1742
  if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
1744
1743
  return invalid3("evidence requires a reference and fingerprint");
1745
1744
  const reference2 = rules.reference(item.reference);
@@ -1762,10 +1761,10 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1762
1761
  if (!finding || typeof finding !== "object")
1763
1762
  return invalid3("a finding is an object");
1764
1763
  const id3 = findingId(finding.id, ids2);
1765
- const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
1764
+ const project = finding.project === void 0 && rules.anySubject ? void 0 : findingText(finding.project, 64);
1766
1765
  if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
1767
1766
  return invalid3("a finding names a project reference");
1768
- if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
1767
+ if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(findingText(finding.subject, 80))))
1769
1768
  return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
1770
1769
  if (finding.kind === "task" && project === void 0 && !rules.inboxTasks)
1771
1770
  return invalid3("a task finding names the project the task goes in");
@@ -1777,15 +1776,15 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1777
1776
  evidence
1778
1777
  };
1779
1778
  if (finding.kind === "fact") {
1780
- fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
1779
+ findingFields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
1781
1780
  if (finding.type === "payment")
1782
1781
  return invalid3("a payment is a finding of kind payment; money is a payments row, not a fact");
1783
1782
  if (!FACT_TYPES.includes(finding.type))
1784
1783
  return invalid3("unknown fact finding type");
1785
- return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
1784
+ return { ...base, kind: "fact", type: finding.type, statement: findingText(finding.statement, 2e3) };
1786
1785
  }
1787
1786
  if (finding.kind === "payment" && rules.payments) {
1788
- fields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
1787
+ findingFields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
1789
1788
  if (finding.supersedes !== void 0 && !/^invoice:[1-9]\d*$/.test(String(finding.supersedes)))
1790
1789
  return invalid3("a payment finding supersedes an invoice: reference, the expected payment it settles or voids");
1791
1790
  const payment = validatePayment(finding.payment);
@@ -1798,14 +1797,14 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1798
1797
  return {
1799
1798
  ...base,
1800
1799
  kind: "payment",
1801
- ...finding.statement === void 0 ? {} : { statement: text3(finding.statement, 2e3) },
1800
+ ...finding.statement === void 0 ? {} : { statement: findingText(finding.statement, 2e3) },
1802
1801
  payment,
1803
1802
  ...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
1804
1803
  };
1805
1804
  }
1806
1805
  if (finding.kind !== "task")
1807
1806
  return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
1808
- fields(finding, [
1807
+ findingFields(finding, [
1809
1808
  "id",
1810
1809
  "project",
1811
1810
  "evidence",
@@ -1831,8 +1830,8 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1831
1830
  ...base,
1832
1831
  kind: "task",
1833
1832
  type: finding.type,
1834
- title: text3(finding.title, 300),
1835
- reason: text3(finding.reason, 2e3),
1833
+ title: findingText(finding.title, 300),
1834
+ reason: findingText(finding.reason, 2e3),
1836
1835
  commitment: finding.commitment,
1837
1836
  ...finding.dueAt === void 0 ? {} : {
1838
1837
  dueAt: meetingTimestamp(finding.dueAt, "finding due date"),
@@ -1849,22 +1848,20 @@ var support = /* @__PURE__ */ __name((value, evidence) => {
1849
1848
  var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
1850
1849
  if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
1851
1850
  return invalid3(`${rules.plural} take at most 65536 UTF-8 bytes`);
1852
- fields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
1851
+ findingFields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
1853
1852
  if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > most)
1854
1853
  return invalid3(`schemaVersion 1 takes 1\u2013${most} ${rules.plural}`);
1855
- const key = text3(input.key, 64);
1854
+ const key = findingText(input.key, 64);
1856
1855
  if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(key))
1857
1856
  return invalid3("a findings key uses letters, digits, dot, colon, underscore or hyphen");
1858
1857
  const ids2 = /* @__PURE__ */ new Set();
1859
1858
  const findings = input.findings.map((finding) => one(finding, ids2));
1860
- return { schemaVersion: 1, key, extractor: text3(input.extractor, 200), findings };
1859
+ return { schemaVersion: 1, key, extractor: findingText(input.extractor, 200), findings };
1861
1860
  }, "validateBatch");
1862
1861
  var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1863
- var findingText = /* @__PURE__ */ __name((value, limit) => text3(value, limit), "findingText");
1864
- var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => fields(value, allowed, noun), "findingFields");
1865
1862
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1866
1863
 
1867
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1864
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1868
1865
  var MEETING_FINDINGS_KIND = "meeting_findings";
1869
1866
  var cue = /* @__PURE__ */ __name((raw) => {
1870
1867
  const reference2 = canonicalMeetingReference(raw);
@@ -1875,7 +1872,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1875
1872
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1876
1873
  var meetingFindingFingerprint = findingFingerprint;
1877
1874
 
1878
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1875
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1879
1876
  var context = {
1880
1877
  command: "search meetings",
1881
1878
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1938,7 +1935,7 @@ var MEETING_FIELDS = defineQuery({
1938
1935
  });
1939
1936
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
1940
1937
 
1941
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/language.js
1938
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/language.js
1942
1939
  var LATIN_WORDS = {
1943
1940
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
1944
1941
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -1953,11 +1950,11 @@ var CYRILLIC = new RegExp("\\p{Script=Cyrillic}", "gu");
1953
1950
  var LATIN = new RegExp("\\p{Script=Latin}", "gu");
1954
1951
  var MIN_LETTERS = 20;
1955
1952
  var DOMINANT = 0.75;
1956
- var countOf = /* @__PURE__ */ __name((text6, pattern2) => text6.match(pattern2)?.length ?? 0, "countOf");
1953
+ var countOf = /* @__PURE__ */ __name((text5, pattern2) => text5.match(pattern2)?.length ?? 0, "countOf");
1957
1954
  var latinLanguage = /* @__PURE__ */ __name((texts) => {
1958
1955
  const votes = /* @__PURE__ */ new Map();
1959
- for (const text6 of texts)
1960
- for (const word of text6.toLowerCase().split(/[^\p{L}]+/u)) {
1956
+ for (const text5 of texts)
1957
+ for (const word of text5.toLowerCase().split(/[^\p{L}]+/u)) {
1961
1958
  const language = LATIN_LANGUAGE.get(word);
1962
1959
  if (language)
1963
1960
  votes.set(language, (votes.get(language) ?? 0) + 1);
@@ -1972,10 +1969,10 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1972
1969
  let cyrillic = 0;
1973
1970
  let latin = 0;
1974
1971
  let ukrainian = 0;
1975
- for (const text6 of all) {
1976
- cyrillic += countOf(text6, CYRILLIC);
1977
- latin += countOf(text6, LATIN);
1978
- ukrainian += countOf(text6, UKRAINIAN);
1972
+ for (const text5 of all) {
1973
+ cyrillic += countOf(text5, CYRILLIC);
1974
+ latin += countOf(text5, LATIN);
1975
+ ukrainian += countOf(text5, UKRAINIAN);
1979
1976
  }
1980
1977
  const letters = cyrillic + latin;
1981
1978
  if (letters < MIN_LETTERS)
@@ -1987,9 +1984,9 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1987
1984
  return null;
1988
1985
  }, "transcriptLanguage");
1989
1986
 
1990
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1991
- var contentHash = /* @__PURE__ */ __name(async (text6) => {
1992
- const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
1987
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1988
+ var contentHash = /* @__PURE__ */ __name(async (text5) => {
1989
+ const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text5));
1993
1990
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
1994
1991
  }, "contentHash");
1995
1992
  var speakerPosition = /* @__PURE__ */ __name((name, participants) => {
@@ -2024,7 +2021,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
2024
2021
  return time;
2025
2022
  }, "timestamp");
2026
2023
 
2027
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2024
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2028
2025
  var TranscriptTextError = class extends Error {
2029
2026
  static {
2030
2027
  __name(this, "TranscriptTextError");
@@ -2041,10 +2038,10 @@ var LINE = /^\[(\d{2,}):([0-5]\d):([0-5]\d)\]\s*(?:([^:\n]{1,60}):\s*)?([\s\S]*)
2041
2038
  var RULE = /^[—–-]{10,}[^\n]*(?:\n|$)/;
2042
2039
  var EMPTY = /* @__PURE__ */ new Set(["", "\u2014", "-"]);
2043
2040
  var parseTranscriptText = /* @__PURE__ */ __name((input) => {
2044
- const text6 = input.replace(/^/, "").replace(/\r\n?/g, "\n");
2041
+ const text5 = input.replace(/^/, "").replace(/\r\n?/g, "\n");
2045
2042
  const header = { title: null, date: null, meetingId: null, speakers: [] };
2046
2043
  let sawHeader = false;
2047
- for (const line2 of text6.split("\n")) {
2044
+ for (const line2 of text5.split("\n")) {
2048
2045
  if (!line2.trim())
2049
2046
  break;
2050
2047
  for (const [prefix, key] of Object.entries(HEADER)) {
@@ -2061,7 +2058,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
2061
2058
  if (!sawHeader)
2062
2059
  throw new TranscriptTextError('a text transcript starts with a header such as "\u0412\u0441\u0442\u0440\u0435\u0447\u0430: \u2026"');
2063
2060
  const found = [];
2064
- for (const block of text6.split(/\n\s*\n/)) {
2061
+ for (const block of text5.split(/\n\s*\n/)) {
2065
2062
  const match = LINE.exec(block.trim().replace(RULE, ""));
2066
2063
  if (!match)
2067
2064
  continue;
@@ -2079,7 +2076,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
2079
2076
  return { header, lines };
2080
2077
  }, "parseTranscriptText");
2081
2078
 
2082
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2079
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2083
2080
  var VttError = class extends Error {
2084
2081
  static {
2085
2082
  __name(this, "VttError");
@@ -2095,12 +2092,12 @@ var millis = /* @__PURE__ */ __name((stamp, lineNo) => {
2095
2092
  const [, hours = "0", minutes = "0", seconds = "0", ms = "0"] = match;
2096
2093
  return ((Number(hours) * 60 + Number(minutes)) * 60 + Number(seconds)) * 1e3 + Number(ms);
2097
2094
  }, "millis");
2098
- var splitSpeaker = /* @__PURE__ */ __name((text6) => {
2099
- const firstLine = text6.split("\n", 1)[0] ?? "";
2095
+ var splitSpeaker = /* @__PURE__ */ __name((text5) => {
2096
+ const firstLine = text5.split("\n", 1)[0] ?? "";
2100
2097
  const at = firstLine.indexOf(": ");
2101
2098
  if (at <= 0)
2102
- return { speaker: null, text: text6 };
2103
- return { speaker: firstLine.slice(0, at).trim(), text: text6.slice(at + 2) };
2099
+ return { speaker: null, text: text5 };
2100
+ return { speaker: firstLine.slice(0, at).trim(), text: text5.slice(at + 2) };
2104
2101
  }, "splitSpeaker");
2105
2102
  var parseVtt = /* @__PURE__ */ __name((input) => {
2106
2103
  const lines = input.replace(/^/, "").split(/\r\n|\r|\n/);
@@ -2125,13 +2122,13 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
2125
2122
  const lineNo = start + timingAt + 1;
2126
2123
  const [from = "", rest = ""] = (block[timingAt] ?? "").split("-->");
2127
2124
  const to = rest.trim().split(/\s+/)[0] ?? "";
2128
- const text6 = block.slice(timingAt + 1).join("\n").trim();
2129
- cues.push({ startMs: millis(from.trim(), lineNo), endMs: millis(to, lineNo), ...splitSpeaker(text6) });
2125
+ const text5 = block.slice(timingAt + 1).join("\n").trim();
2126
+ cues.push({ startMs: millis(from.trim(), lineNo), endMs: millis(to, lineNo), ...splitSpeaker(text5) });
2130
2127
  }
2131
2128
  return cues;
2132
2129
  }, "parseVtt");
2133
2130
 
2134
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/import.js
2131
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/import.js
2135
2132
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
2136
2133
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2137
2134
  for (const file of files) {
@@ -2164,10 +2161,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
2164
2161
  return report;
2165
2162
  }, "importFiles");
2166
2163
 
2167
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/links.js
2164
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/links.js
2168
2165
  var CHAT_MESSAGES_READ = 1e5;
2169
2166
 
2170
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2167
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2171
2168
  var nonempty = /* @__PURE__ */ __name((value, name) => {
2172
2169
  if (typeof value !== "string" || !value.trim())
2173
2170
  throw new CliError("validation_error", `${name} must be nonempty`);
@@ -2218,7 +2215,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
2218
2215
  return Object.freeze(result);
2219
2216
  }, "validateMeetingChange");
2220
2217
 
2221
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2218
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2222
2219
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
2223
2220
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
2224
2221
  if (![before, after].every((value) => Number.isSafeInteger(value) && value >= 0) || before + after > 999 || !Number.isSafeInteger(bytes) || bytes < 2 || bytes > 4194304 || !Number.isSafeInteger(max_read_bytes) || max_read_bytes < 1 || max_read_bytes > 67108864 || expected_fingerprint !== void 0 && (typeof expected_fingerprint !== "string" || !/^[a-f0-9]{64}$/.test(expected_fingerprint)))
@@ -2231,7 +2228,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
2231
2228
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
2232
2229
  }, "validateMeetingPassage");
2233
2230
 
2234
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2231
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2235
2232
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2236
2233
  if (!original || typeof original !== "object" || Array.isArray(original))
2237
2234
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -2256,7 +2253,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2256
2253
  return { ...input, limit, maxReadBytes };
2257
2254
  }, "validateMeetingPreparationContext");
2258
2255
 
2259
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2256
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2260
2257
  var count3 = pipe(number(), integer(), minValue(0));
2261
2258
  var id = pipe(string(), minLength(1));
2262
2259
  var meetingProjectEvidence = strictObject({
@@ -2377,7 +2374,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
2377
2374
  };
2378
2375
  }, "meetingProjectEvidenceAnswer");
2379
2376
 
2380
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2377
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2381
2378
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2382
2379
  const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
2383
2380
  if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer3(options.limit ?? 100, 1, 1e3) || !integer3(options.maxReadBytes ?? 4194304, 1, 67108864) || [
@@ -2397,7 +2394,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2397
2394
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
2398
2395
  }, "validateMeetingHitSearch");
2399
2396
 
2400
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2397
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2401
2398
  var ids = {
2402
2399
  meeting_id: "meetingId",
2403
2400
  identity_id: "participantIdentityId",
@@ -2488,7 +2485,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
2488
2485
  return { project: project.trim(), options, query: frozen.join(" AND ") };
2489
2486
  }, "prepareMeetingProjectEvidence");
2490
2487
 
2491
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2488
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2492
2489
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
2493
2490
  const prepared = prepareMeetingProjectEvidence(project, request, now);
2494
2491
  const page = await read(prepared.project, prepared.options);
@@ -2496,12 +2493,12 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
2496
2493
  return meetingProjectEvidenceAnswer(page, prepared);
2497
2494
  }, "readMeetingProjectEvidence");
2498
2495
 
2499
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2496
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2500
2497
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2501
- const { identityExternalId, ...fields2 } = p;
2498
+ const { identityExternalId, ...fields } = p;
2502
2499
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
2503
2500
  return {
2504
- ...fields2,
2501
+ ...fields,
2505
2502
  identity: {
2506
2503
  provider,
2507
2504
  externalId,
@@ -2635,47 +2632,47 @@ unlinked`, format)],
2635
2632
  return report;
2636
2633
  }, "pull");
2637
2634
 
2638
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2639
- var text4 = string();
2635
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2636
+ var text3 = string();
2640
2637
  var count4 = pipe(number(), integer(), minValue(0));
2641
2638
  var id2 = pipe(number(), integer(), minValue(1));
2642
2639
  var iso3 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
2643
2640
  var meetingReview = strictObject({
2644
2641
  ref: reference,
2645
2642
  id: pipe(string(), minLength(1)),
2646
- title: nullable(text4),
2643
+ title: nullable(text3),
2647
2644
  started_at: nullable(isoTime),
2648
2645
  duration_ms: nullable(count4),
2649
2646
  participants_count: nullable(count4),
2650
- projects: array(text4),
2647
+ projects: array(text3),
2651
2648
  /** Null when the meeting has no current transcript. */
2652
2649
  transcript: nullable(strictObject({ lines: count4, words: count4 })),
2653
2650
  /** The three who talked longest. */
2654
- speakers: array(strictObject({ name: nullable(text4), talk_ms: count4 })),
2651
+ speakers: array(strictObject({ name: nullable(text3), talk_ms: count4 })),
2655
2652
  /** The newest stored summary; null when there is none. */
2656
2653
  summary: nullable(strictObject({
2657
- source: text4,
2658
- title: nullable(text4),
2659
- overview: nullable(text4),
2660
- next_steps: array(text4),
2661
- url: nullable(text4)
2654
+ source: text3,
2655
+ title: nullable(text3),
2656
+ overview: nullable(text3),
2657
+ next_steps: array(text3),
2658
+ url: nullable(text3)
2662
2659
  }))
2663
2660
  });
2664
2661
  var meetingLink = strictObject({
2665
- url: text4,
2666
- domain: nullable(text4),
2662
+ url: text3,
2663
+ domain: nullable(text3),
2667
2664
  /** The Google Docs, Sheets, Slides, Forms or Drive file it names. */
2668
- document_id: nullable(text4),
2665
+ document_id: nullable(text3),
2669
2666
  count: count4,
2670
2667
  first_at: isoTime,
2671
2668
  last_at: isoTime,
2672
- senders: array(text4),
2673
- meetings: array(strictObject({ ref: reference, title: nullable(text4) }))
2669
+ senders: array(text3),
2670
+ meetings: array(strictObject({ ref: reference, title: nullable(text3) }))
2674
2671
  });
2675
2672
  var meetingSpeaker = strictObject({
2676
2673
  /** `person:<id>`, `identity:<id>`, `name:<lowercased name>` or `unknown`. */
2677
- key: text4,
2678
- name: nullable(text4),
2674
+ key: text3,
2675
+ name: nullable(text3),
2679
2676
  person_id: nullable(id2),
2680
2677
  identity_id: nullable(id2),
2681
2678
  meetings: count4,
@@ -2686,27 +2683,44 @@ var meetingSpeaker = strictObject({
2686
2683
  share: pipe(number(), minValue(0), maxValue(1))
2687
2684
  });
2688
2685
  var meetingStats = strictObject({
2689
- time_zone: text4,
2686
+ time_zone: text3,
2690
2687
  meetings: count4,
2691
2688
  lines: count4,
2692
2689
  words: count4,
2693
2690
  talk_ms: count4,
2694
2691
  /** `week_start` is the Monday, as a date in `time_zone`. */
2695
- weeks: array(strictObject({ week_start: text4, meetings: count4, talk_ms: count4 })),
2692
+ weeks: array(strictObject({ week_start: text3, meetings: count4, talk_ms: count4 })),
2696
2693
  top_speakers: array(meetingSpeaker)
2697
2694
  });
2695
+ var meetingCountsRow = strictObject({
2696
+ key: text3,
2697
+ name: nullable(text3),
2698
+ meetings: count4,
2699
+ minutes: count4,
2700
+ mean_minutes: nullable(number()),
2701
+ transcripts: count4
2702
+ });
2703
+ var meetingCounts = strictObject({
2704
+ by: picklist(["day", "week", "series"]),
2705
+ meetings: count4,
2706
+ minutes: count4,
2707
+ mean_minutes: nullable(number()),
2708
+ transcripts: count4,
2709
+ rows: array(meetingCountsRow),
2710
+ has_more: boolean()
2711
+ });
2698
2712
  var truncated = /* @__PURE__ */ __name((...why) => nullable(picklist(why)), "truncated");
2699
2713
  var meetingParticipants = strictObject({
2700
2714
  schema_version: literal(1),
2701
2715
  kind: literal("meeting_participants"),
2702
2716
  account_id: id2,
2703
- query: text4,
2717
+ query: text3,
2704
2718
  items: array(strictObject({
2705
2719
  participant_id: id2,
2706
2720
  meeting_id: id2,
2707
2721
  identity_id: id2,
2708
- display_name: nullable(text4),
2709
- email: nullable(text4)
2722
+ display_name: nullable(text3),
2723
+ email: nullable(text3)
2710
2724
  })),
2711
2725
  /** Several identities on one page are observations, never speaker attribution or person links. */
2712
2726
  ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id2) }),
@@ -2720,7 +2734,7 @@ var meetingParticipants = strictObject({
2720
2734
  mode: literal("cursor"),
2721
2735
  limit: count4,
2722
2736
  has_more: boolean(),
2723
- next_cursor: optional(text4)
2737
+ next_cursor: optional(text3)
2724
2738
  })
2725
2739
  });
2726
2740
  var revision = picklist(["current", "superseded"]);
@@ -2729,8 +2743,8 @@ var meetingPassage = strictObject({
2729
2743
  kind: literal("meeting_context"),
2730
2744
  source: reference,
2731
2745
  target_ref: reference,
2732
- target_fingerprint: text4,
2733
- fingerprint: text4,
2746
+ target_fingerprint: text3,
2747
+ fingerprint: text3,
2734
2748
  revision,
2735
2749
  limits: strictObject({ before: count4, after: count4, bytes: count4, max_read_bytes: count4 }),
2736
2750
  content_bytes: count4,
@@ -2749,30 +2763,30 @@ var meetingPassage = strictObject({
2749
2763
  }),
2750
2764
  items: array(strictObject({
2751
2765
  ref: reference,
2752
- fingerprint: text4,
2766
+ fingerprint: text3,
2753
2767
  transcript_id: id2,
2754
- content_hash: nullable(text4),
2768
+ content_hash: nullable(text3),
2755
2769
  position: count4,
2756
2770
  start_ms: count4,
2757
2771
  end_ms: count4,
2758
2772
  speaker_participant_id: nullable(id2),
2759
- speaker_name: nullable(text4),
2760
- text: text4,
2773
+ speaker_name: nullable(text3),
2774
+ text: text3,
2761
2775
  revision
2762
2776
  }))
2763
2777
  });
2764
2778
  var event = strictObject({
2765
2779
  id: pipe(string(), minLength(1)),
2766
- event_series_id: nullable(text4),
2767
- title: nullable(text4),
2768
- description: nullable(text4),
2769
- location: nullable(text4),
2780
+ event_series_id: nullable(text3),
2781
+ title: nullable(text3),
2782
+ description: nullable(text3),
2783
+ location: nullable(text3),
2770
2784
  starts_at: nullable(isoTime),
2771
2785
  ends_at: nullable(isoTime),
2772
- timezone: nullable(text4),
2786
+ timezone: nullable(text3),
2773
2787
  /** `auto`: made from a meeting; `owner`: made by hand; `calendar`: from a calendar's entries. */
2774
2788
  origin: picklist(["auto", "owner", "calendar"]),
2775
- status: nullable(text4),
2789
+ status: nullable(text3),
2776
2790
  all_day: boolean(),
2777
2791
  /** When its calendar deleted it: shown as "deleted in Google", kept as history. */
2778
2792
  source_deleted_at: nullable(isoTime),
@@ -2780,7 +2794,7 @@ var event = strictObject({
2780
2794
  created_at: isoTime,
2781
2795
  updated_at: isoTime,
2782
2796
  /** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
2783
- untrusted: optional(array(text4)),
2797
+ untrusted: optional(array(text3)),
2784
2798
  /** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
2785
2799
  change: optional(picklist(["new", "moved", "cancelled"])),
2786
2800
  changed_at: optional(nullable(isoTime)),
@@ -2792,7 +2806,7 @@ var event = strictObject({
2792
2806
  */
2793
2807
  overlapping: optional(boolean()),
2794
2808
  /** With `overlapping:true`: the events it overlaps, as `event:<id>`. */
2795
- overlaps: optional(array(text4))
2809
+ overlaps: optional(array(text3))
2796
2810
  });
2797
2811
  var eventItem = /* @__PURE__ */ __name((one) => ({
2798
2812
  id: String(one.id),
@@ -2812,10 +2826,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2812
2826
  updated_at: new Date(one.updatedAt).toISOString()
2813
2827
  }), "eventItem");
2814
2828
 
2815
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2829
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2816
2830
  var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
2817
2831
 
2818
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2832
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2819
2833
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2820
2834
  if (!original || typeof original !== "object" || Array.isArray(original))
2821
2835
  throw new CliError("validation_error", "related history request is required");
@@ -2845,24 +2859,24 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2845
2859
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2846
2860
  }, "validateMeetingRelatedHistory");
2847
2861
 
2848
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2849
- var text5 = string();
2850
- var identifier = pipe(text5, minLength(1));
2851
- var nullableText = nullable(text5);
2862
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2863
+ var text4 = string();
2864
+ var identifier = pipe(text4, minLength(1));
2865
+ var nullableText = nullable(text4);
2852
2866
  var count5 = pipe(number(), integer(), minValue(0));
2853
2867
  var flag = boolean();
2854
- var scope = strictObject({ provider: text5, account: text5 });
2868
+ var scope = strictObject({ provider: text4, account: text4 });
2855
2869
  var run = strictObject({
2856
2870
  meetings: count5,
2857
2871
  participants: count5,
2858
2872
  transcript_rows: count5,
2859
2873
  summaries: count5,
2860
- warnings: array(strictObject({ external_id: text5, message: text5 })),
2861
- timezone: optional(text5)
2874
+ warnings: array(strictObject({ external_id: text4, message: text4 })),
2875
+ timezone: optional(text4)
2862
2876
  });
2863
2877
  var exported = union([
2864
- strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text5, content: text5 }),
2865
- strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text5 })
2878
+ strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text4, content: text4 }),
2879
+ strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text4 })
2866
2880
  ]);
2867
2881
  var eventChange = strictObject({
2868
2882
  action: literal("event.link"),
@@ -2872,7 +2886,7 @@ var eventChange = strictObject({
2872
2886
  var personChange = strictObject({
2873
2887
  action: literal("person.link"),
2874
2888
  participant_id: identifier,
2875
- person_uid: text5,
2889
+ person_uid: text4,
2876
2890
  expected_person_uid: optional(nullableText),
2877
2891
  target_account_ids: optional(array(identifier))
2878
2892
  });
@@ -2885,7 +2899,7 @@ var eventResult = strictObject({
2885
2899
  var personResult = strictObject({
2886
2900
  meeting_id: identifier,
2887
2901
  participant_id: identifier,
2888
- person_uid: text5,
2902
+ person_uid: text4,
2889
2903
  previous_person_uid: nullableText,
2890
2904
  changed: flag
2891
2905
  });
@@ -2898,23 +2912,23 @@ var meetingChange = strictObject({
2898
2912
  result: optional(union([eventResult, personResult]))
2899
2913
  });
2900
2914
  var recognition = strictObject({
2901
- engine: text5,
2902
- model: text5,
2903
- version: optional(text5),
2915
+ engine: text4,
2916
+ model: text4,
2917
+ version: optional(text4),
2904
2918
  timing: optional(picklist(["fixed-windows", "recognition-segments"]))
2905
2919
  });
2906
2920
  var transcription = union([
2907
2921
  strictObject({
2908
2922
  applied: literal(false),
2909
2923
  account_id: identifier,
2910
- external_id: text5,
2924
+ external_id: text4,
2911
2925
  segments: count5,
2912
2926
  media: strictObject({
2913
- id: text5,
2914
- content_hash: text5,
2927
+ id: text4,
2928
+ content_hash: text4,
2915
2929
  size: count5,
2916
2930
  duration_ms: count5,
2917
- format: text5,
2931
+ format: text4,
2918
2932
  sample_rate: count5,
2919
2933
  channels: count5,
2920
2934
  recognition
@@ -2923,21 +2937,21 @@ var transcription = union([
2923
2937
  strictObject({
2924
2938
  applied: literal(true),
2925
2939
  account_id: identifier,
2926
- external_id: text5,
2940
+ external_id: text4,
2927
2941
  meeting_id: identifier,
2928
2942
  created: flag,
2929
2943
  inserted_transcripts: count5,
2930
2944
  replayed_transcripts: count5,
2931
2945
  superseded_transcripts: count5,
2932
2946
  segments: count5,
2933
- media_sha256: text5,
2934
- engine: text5,
2935
- model: text5,
2947
+ media_sha256: text4,
2948
+ engine: text4,
2949
+ model: text4,
2936
2950
  model_version: nullableText,
2937
2951
  timing: picklist(["fixed-windows", "recognition-segments"])
2938
2952
  })
2939
2953
  ]);
2940
- var embeddingModel = strictObject({ key: text5, dims: count5, kind: picklist(["local", "remote"]), model: text5 });
2954
+ var embeddingModel = strictObject({ key: text4, dims: count5, kind: picklist(["local", "remote"]), model: text4 });
2941
2955
  var embedding = union([
2942
2956
  strictObject({
2943
2957
  account_id: identifier,
@@ -2953,7 +2967,7 @@ var embedding = union([
2953
2967
  saved: count5,
2954
2968
  skipped: count5,
2955
2969
  has_more: flag,
2956
- next_hash: optional(text5),
2970
+ next_hash: optional(text4),
2957
2971
  applied: literal(true),
2958
2972
  rebuild: strictObject({
2959
2973
  transcripts: count5,
@@ -2978,14 +2992,14 @@ var MEETING_RESULT_ENTITIES = {
2978
2992
  meeting_repair: repair
2979
2993
  };
2980
2994
 
2981
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/review.js
2995
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/review.js
2982
2996
  var REVIEW_LIMIT = { default: 50, most: 200 };
2983
2997
 
2984
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2998
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2985
2999
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
2986
3000
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
2987
3001
 
2988
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3002
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
2989
3003
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2990
3004
  input.signal?.throwIfAborted();
2991
3005
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -3006,19 +3020,19 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3006
3020
  return { ...input, limit, maxReadBytes };
3007
3021
  }, "validateMeetingSeriesHistory");
3008
3022
 
3009
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3023
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3010
3024
  var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
3011
3025
 
3012
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3026
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3013
3027
  function invalid4(field, response = false) {
3014
3028
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
3015
3029
  }
3016
3030
  __name(invalid4, "invalid");
3017
- var object2 = /* @__PURE__ */ __name((value, fields2, field, response = false) => {
3031
+ var object2 = /* @__PURE__ */ __name((value, fields, field, response = false) => {
3018
3032
  if (!value || typeof value !== "object" || Array.isArray(value))
3019
3033
  invalid4(field, response);
3020
3034
  for (const key of Object.keys(value))
3021
- if (!fields2.includes(key))
3035
+ if (!fields.includes(key))
3022
3036
  invalid4(`${field}.${key}`, response);
3023
3037
  }, "object");
3024
3038
  var cursorDetails = /* @__PURE__ */ __name((value) => {
@@ -3038,7 +3052,8 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
3038
3052
  cursorDetails(value);
3039
3053
  }, "validateMeetingSeriesInventoryCursor");
3040
3054
 
3041
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3055
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3056
+ var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
3042
3057
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
3043
3058
  const zone = timeZone ?? "UTC";
3044
3059
  try {
@@ -3054,17 +3069,72 @@ var weekStart = /* @__PURE__ */ __name((at, format) => {
3054
3069
  const day = Date.UTC(Number(parts.year), Number(parts.month) - 1, Number(parts.day));
3055
3070
  return new Date(day - DAYS.indexOf(parts.weekday ?? "Mon") * 864e5).toISOString().slice(0, 10);
3056
3071
  }, "weekStart");
3072
+ var dayKey = /* @__PURE__ */ __name((at, format) => {
3073
+ const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
3074
+ return `${parts.year}-${parts.month}-${parts.day}`;
3075
+ }, "dayKey");
3076
+ var zoneFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", {
3077
+ timeZone: zone,
3078
+ year: "numeric",
3079
+ month: "2-digit",
3080
+ day: "2-digit",
3081
+ weekday: "short"
3082
+ }), "zoneFormat");
3083
+ var NO_SERIES = "no-series";
3084
+ var MOST_COUNT_ROWS = 100;
3085
+ var minutesOf = /* @__PURE__ */ __name((ms) => Math.round(ms / 6e4), "minutesOf");
3086
+ var meanOf = /* @__PURE__ */ __name((ms, timed) => timed === 0 ? null : Math.round(ms / timed / 6e3) / 10, "meanOf");
3087
+ var aggregateMeetingCounts = /* @__PURE__ */ __name((meetings, by, timeZone, limit = MOST_COUNT_ROWS) => {
3088
+ if (!MEETING_COUNTS_GROUPINGS.includes(by))
3089
+ throw new CliError("validation_error", `--by takes ${MEETING_COUNTS_GROUPINGS.join(", ")}`);
3090
+ if (!Number.isSafeInteger(limit) || limit < 1)
3091
+ throw new CliError("validation_error", "--limit is a positive number");
3092
+ const zone = zoneOf(timeZone);
3093
+ const format = zoneFormat(zone);
3094
+ const sum = /* @__PURE__ */ __name(() => ({ meetings: 0, ms: 0, timed: 0, transcripts: 0 }), "sum");
3095
+ const add = /* @__PURE__ */ __name((into, meeting2) => {
3096
+ into.meetings += 1;
3097
+ if (meeting2.durationMs !== null) {
3098
+ into.ms += Math.max(0, meeting2.durationMs);
3099
+ into.timed += 1;
3100
+ }
3101
+ if (meeting2.transcribed)
3102
+ into.transcripts += 1;
3103
+ }, "add");
3104
+ const total = { ...sum(), name: null };
3105
+ const groups = /* @__PURE__ */ new Map();
3106
+ for (const meeting2 of meetings) {
3107
+ add(total, meeting2);
3108
+ const key = by === "series" ? meeting2.seriesKey === null ? NO_SERIES : `series:${meeting2.seriesKey}` : meeting2.startedAt === null ? null : by === "day" ? dayKey(meeting2.startedAt, format) : weekStart(meeting2.startedAt, format);
3109
+ if (key === null)
3110
+ continue;
3111
+ const group = groups.get(key) ?? { ...sum(), name: by === "series" ? meeting2.seriesTitle : null };
3112
+ add(group, meeting2);
3113
+ groups.set(key, group);
3114
+ }
3115
+ const ordered = [...groups.entries()].sort(([a, one], [b, other]) => by === "series" ? other.ms - one.ms || other.meetings - one.meetings || a.localeCompare(b) : b.localeCompare(a));
3116
+ const kept = ordered.slice(0, limit);
3117
+ if (by !== "series")
3118
+ kept.reverse();
3119
+ const counted = /* @__PURE__ */ __name(({ meetings: count6, ms, timed, transcripts }) => ({
3120
+ meetings: count6,
3121
+ minutes: minutesOf(ms),
3122
+ meanMinutes: meanOf(ms, timed),
3123
+ transcripts
3124
+ }), "counted");
3125
+ return {
3126
+ by,
3127
+ timeZone: zone,
3128
+ ...counted(total),
3129
+ rows: kept.map(([key, group]) => ({ key, name: group.name, ...counted(group) })),
3130
+ hasMore: ordered.length > limit
3131
+ };
3132
+ }, "aggregateMeetingCounts");
3057
3133
  var UNKNOWN_SPEAKER = "unknown";
3058
3134
  var speakerOf = /* @__PURE__ */ __name((row) => row.personId !== null ? { key: `person:${row.personId}`, name: row.personName ?? row.identityName ?? row.speakerName } : row.identityId !== null ? { key: `identity:${row.identityId}`, name: row.identityName ?? row.speakerName } : row.speakerName?.trim() ? { key: `name:${row.speakerName.trim().toLowerCase()}`, name: row.speakerName.trim() } : { key: UNKNOWN_SPEAKER, name: null }, "speakerOf");
3059
3135
  var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3060
3136
  const zone = zoneOf(timeZone);
3061
- const format = new Intl.DateTimeFormat("en-US", {
3062
- timeZone: zone,
3063
- year: "numeric",
3064
- month: "2-digit",
3065
- day: "2-digit",
3066
- weekday: "short"
3067
- });
3137
+ const format = zoneFormat(zone);
3068
3138
  const speakers = /* @__PURE__ */ new Map();
3069
3139
  const weeks = /* @__PURE__ */ new Map();
3070
3140
  const meetings = /* @__PURE__ */ new Set();
@@ -3117,7 +3187,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3117
3187
  };
3118
3188
  }, "aggregateMeetingStats");
3119
3189
 
3120
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/tags.js
3190
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/tags.js
3121
3191
  var TAG_TYPES = ["chat", "contact", "message", "task"];
3122
3192
  var TAG = /^[a-z0-9-]{1,32}$/;
3123
3193
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -3189,14 +3259,14 @@ export {
3189
3259
  validatePayment,
3190
3260
  paymentTitle,
3191
3261
  meetingTimestamp,
3262
+ findingText,
3192
3263
  findingHash,
3264
+ findingFields,
3193
3265
  validEvidence,
3194
3266
  findingId,
3195
3267
  validateFinding,
3196
3268
  validateBatch,
3197
3269
  validateFindings,
3198
- findingText,
3199
- findingFields,
3200
3270
  findingFingerprint,
3201
3271
  MEETING_FINDINGS_KIND,
3202
3272
  validateMeetingFindings,
@@ -3219,6 +3289,7 @@ export {
3219
3289
  meetingLink,
3220
3290
  meetingSpeaker,
3221
3291
  meetingStats,
3292
+ meetingCounts,
3222
3293
  meetingParticipants,
3223
3294
  meetingPassage,
3224
3295
  event,
@@ -3230,6 +3301,7 @@ export {
3230
3301
  SAVE_HELP,
3231
3302
  validateMeetingSeriesHistory,
3232
3303
  validateMeetingSeriesInventoryCursor,
3304
+ aggregateMeetingCounts,
3233
3305
  aggregateMeetingStats,
3234
3306
  TAG_TYPES,
3235
3307
  tagOf,