@wirecat/zoom-cli 0.65.0 → 0.67.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 (194) hide show
  1. package/README.md +2 -1
  2. package/constants.json +7 -0
  3. package/dist/answers.d.ts +4 -4
  4. package/dist/bin/main.js +3 -2
  5. package/dist/bin/main.js.map +1 -1
  6. package/dist/bin/zm.js +2 -2
  7. package/dist/bin/zm.js.map +1 -1
  8. package/dist/bundle/{all-profiles-SKMLZJSY.js → all-profiles-SEW2VL76.js} +12 -8
  9. package/dist/bundle/answer-policy-5OYUL6UF.js +103 -0
  10. package/dist/bundle/{anthropic-TVHK7CY2.js → anthropic-FSNASJML.js} +7 -4
  11. package/dist/bundle/{app-server-44ASFH47.js → app-server-EVSRYJ3H.js} +66 -59
  12. package/dist/bundle/{bun-O4WHGL2F.js → bun-DACL5SVO.js} +2 -2
  13. package/dist/bundle/{bun-sqlite-NS32GMM4.js → bun-sqlite-HQ2KOXSI.js} +6 -3
  14. package/dist/bundle/chunk-2UW533HQ.js +166 -0
  15. package/dist/bundle/{chunk-FYJL276J.js → chunk-3GO3KME7.js} +3 -3
  16. package/dist/bundle/{chunk-Z5424QL6.js → chunk-3ZIHUSMM.js} +2 -2
  17. package/dist/bundle/{chunk-MRWIXUYT.js → chunk-4GCKDO2H.js} +5 -3
  18. package/dist/bundle/{chunk-7SQJCKR6.js → chunk-4KDZ22RA.js} +1 -1
  19. package/dist/bundle/{chunk-25IDWPEN.js → chunk-4U2555EQ.js} +35 -31
  20. package/dist/bundle/{chunk-UKU6MYUI.js → chunk-4UVT2QCO.js} +9 -20
  21. package/dist/bundle/{chunk-ZOGYTDHG.js → chunk-4ZR5DJ26.js} +5 -3
  22. package/dist/bundle/{chunk-CVCRQW3A.js → chunk-54RTMQL6.js} +4 -4
  23. package/dist/bundle/chunk-6AJDVJVZ.js +35 -0
  24. package/dist/bundle/chunk-6IBM4Z3V.js +34 -0
  25. package/dist/bundle/{chunk-CNEE6TPE.js → chunk-6TZF2JP7.js} +13 -13
  26. package/dist/bundle/{chunk-QLCYAQ66.js → chunk-6UFWFKFH.js} +2 -2
  27. package/dist/bundle/chunk-6VFORXL3.js +101 -0
  28. package/dist/bundle/{chunk-M6IDHQ7N.js → chunk-7HAIM7GV.js} +1633 -683
  29. package/dist/bundle/{chunk-FYM27FCG.js → chunk-7K5TDTZY.js} +13 -7
  30. package/dist/bundle/{chunk-NO24PJNW.js → chunk-7LLUUXJB.js} +1 -1
  31. package/dist/bundle/{chunk-VJTGYBJJ.js → chunk-7VU5UGRR.js} +37 -29
  32. package/dist/bundle/{chunk-ZH743WNV.js → chunk-AAZFLJSH.js} +25 -24
  33. package/dist/bundle/{chunk-DYJXAY7Q.js → chunk-ASCHAVNW.js} +35 -27
  34. package/dist/bundle/{chunk-EA63UGWE.js → chunk-B3KWAULD.js} +2 -2
  35. package/dist/bundle/{chunk-H7762LDA.js → chunk-B5Z4XPVS.js} +2 -2
  36. package/dist/bundle/{chunk-UPJXN2CO.js → chunk-BKY4XVB4.js} +1787 -1224
  37. package/dist/bundle/{chunk-QI7BZS2G.js → chunk-C6UKW7JO.js} +6 -6
  38. package/dist/bundle/{chunk-U3ZUT557.js → chunk-CLEZE65P.js} +1 -1
  39. package/dist/bundle/{chunk-37PHGASE.js → chunk-CRLBTNC4.js} +5 -3
  40. package/dist/bundle/{chunk-VH4F2EK4.js → chunk-D4KBD63W.js} +1 -1
  41. package/dist/bundle/{chunk-DNCKH7CO.js → chunk-D6OXI2NV.js} +17 -17
  42. package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
  43. package/dist/bundle/{chunk-GMTXCFI7.js → chunk-DFUPETW7.js} +449 -308
  44. package/dist/bundle/{chunk-VW2SW7ME.js → chunk-DG4DWAU7.js} +3 -3
  45. package/dist/bundle/{chunk-U5ASRBBF.js → chunk-EPDRF66S.js} +4 -4
  46. package/dist/bundle/{chunk-BNXH73OU.js → chunk-EQ7XRRKV.js} +14 -12
  47. package/dist/bundle/{chunk-5NGOP4EZ.js → chunk-ESFMHBHH.js} +38 -35
  48. package/dist/bundle/{chunk-GEX4V5TM.js → chunk-EUPZSR2G.js} +4 -4
  49. package/dist/bundle/{chunk-KZE3G4ZT.js → chunk-FGTPREAZ.js} +58 -54
  50. package/dist/bundle/{chunk-MH7AWCB4.js → chunk-FWU3ZYHE.js} +68 -64
  51. package/dist/bundle/{chunk-MPKKIL3U.js → chunk-FXQPK742.js} +63 -21
  52. package/dist/bundle/{chunk-PV3UDPCI.js → chunk-GP4NSYDU.js} +20 -14
  53. package/dist/bundle/{chunk-ZFNM3FNI.js → chunk-I7SOXH64.js} +75 -38
  54. package/dist/bundle/{chunk-S4GDDO5S.js → chunk-IFDO3YPJ.js} +1 -1
  55. package/dist/bundle/{chunk-LOL6JYYN.js → chunk-J3ZBEWQY.js} +375 -9
  56. package/dist/bundle/chunk-JVCHGI7W.js +37 -0
  57. package/dist/bundle/{chunk-MZ6U6HNJ.js → chunk-KANH7GBB.js} +2 -2
  58. package/dist/bundle/{chunk-3CZIWGZ6.js → chunk-KIJLM5UL.js} +1 -1
  59. package/dist/bundle/chunk-KV4267S4.js +23 -0
  60. package/dist/bundle/{chunk-266WOOB3.js → chunk-KWRSC6O6.js} +6 -6
  61. package/dist/bundle/{chunk-C6BG57FA.js → chunk-L643D4RJ.js} +14 -12
  62. package/dist/bundle/{chunk-IPTI3Y2E.js → chunk-L6CAUVMU.js} +7 -5
  63. package/dist/bundle/{chunk-MIB5X2XW.js → chunk-L6WUAGPN.js} +5 -5
  64. package/dist/bundle/{chunk-BWRBALXG.js → chunk-LFQ73UFK.js} +3 -3
  65. package/dist/bundle/{chunk-GBZF4IIP.js → chunk-LKJXTACE.js} +10 -89
  66. package/dist/bundle/{chunk-T3KICUOK.js → chunk-LM26DJOK.js} +8 -8
  67. package/dist/bundle/{chunk-GXCNCMUY.js → chunk-M43MBWJX.js} +3260 -1263
  68. package/dist/bundle/{chunk-TC7PD3LH.js → chunk-MWEOVTIF.js} +4 -4
  69. package/dist/bundle/chunk-NTZDM5SJ.js +2462 -0
  70. package/dist/bundle/{chunk-ERPRAYA7.js → chunk-OTMGAKUM.js} +11 -7
  71. package/dist/bundle/chunk-OZEYFJX2.js +93 -0
  72. package/dist/bundle/{chunk-NJSIHMAE.js → chunk-Q65SDEFN.js} +4 -4
  73. package/dist/bundle/{chunk-UMHJZWZU.js → chunk-QEI55M2F.js} +12 -10
  74. package/dist/bundle/{chunk-SQWRZZOQ.js → chunk-QX2MAT6I.js} +3 -3
  75. package/dist/bundle/{chunk-ZXGRK44F.js → chunk-RAMPYIO2.js} +17 -12
  76. package/dist/bundle/{chunk-BLT3LR3U.js → chunk-RYKG6AEH.js} +1 -1
  77. package/dist/bundle/{chunk-WLSF3GCC.js → chunk-SCFFCIIP.js} +4 -2
  78. package/dist/bundle/{chunk-2H5SXK7K.js → chunk-SMVO5R3T.js} +21 -19
  79. package/dist/bundle/{chunk-Y3EIK4XW.js → chunk-SOZVC3SV.js} +1 -1
  80. package/dist/bundle/{chunk-6CS7ETBK.js → chunk-SSXCOUP3.js} +1114 -282
  81. package/dist/bundle/{chunk-R5BAF5XE.js → chunk-SXFODCYK.js} +1 -1
  82. package/dist/bundle/{chunk-JF7ZEUXU.js → chunk-T6CZWSHF.js} +136 -2540
  83. package/dist/bundle/{chunk-KYLS5QGC.js → chunk-TBRG2DPE.js} +2 -2
  84. package/dist/bundle/{chunk-K6ATTKQR.js → chunk-V33VGWT3.js} +5 -5
  85. package/dist/bundle/{chunk-RZLNHNSS.js → chunk-VFIEYRYD.js} +8 -8
  86. package/dist/bundle/{chunk-OXUHTKO2.js → chunk-VNIBTNV4.js} +3 -2
  87. package/dist/bundle/{chunk-ZREFYKUB.js → chunk-VQTAU4DV.js} +13 -11
  88. package/dist/bundle/{chunk-NNNEVWFF.js → chunk-WHQ4ZCJI.js} +57 -34
  89. package/dist/bundle/chunk-WZ5XK74U.js +46 -0
  90. package/dist/bundle/{chunk-XJQB47IL.js → chunk-X67YD3QI.js} +6 -6
  91. package/dist/bundle/chunk-YPF6OS37.js +46 -0
  92. package/dist/bundle/{chunk-AMMD6YCJ.js → chunk-YRNZT4GQ.js} +7 -7
  93. package/dist/bundle/{chunk-TUIEDVI6.js → chunk-Z3WXI4DK.js} +5 -3
  94. package/dist/bundle/{chunk-U4RVOSX3.js → chunk-ZMPTO2WB.js} +1 -1
  95. package/dist/bundle/{chunk-24F7JBLY.js → chunk-ZRMZBMOF.js} +69 -9
  96. package/dist/bundle/{cli-FDO6CP6R.js → cli-YUATSOLA.js} +113 -81
  97. package/dist/bundle/command-contract-UWHY55UE.js +41 -0
  98. package/dist/bundle/config-TGF6E6ZD.js +89 -0
  99. package/dist/bundle/{decode-7SZI3TGZ.js → decode-IL44LNC3.js} +6 -3
  100. package/dist/bundle/dispatch-3BGIXSJR.js +412 -0
  101. package/dist/bundle/{dist-5GWUXW27.js → dist-3W27UQ2S.js} +48 -16
  102. package/dist/bundle/{echarts-FMACRZQC.js → echarts-CO4D26JF.js} +2 -2
  103. package/dist/bundle/{embed-24YSXHLP.js → embed-XH2X4DFM.js} +7 -4
  104. package/dist/bundle/{embedder-MEXN2TFB.js → embedder-WTFWDXBJ.js} +12 -9
  105. package/dist/bundle/failure-HTIS3NLS.js +25 -0
  106. package/dist/bundle/first-run-5RBH7FDO.js +28 -0
  107. package/dist/bundle/first-screen-PGFIXJAX.js +39 -0
  108. package/dist/bundle/{folders-DBAAMU26.js → folders-F4DNQPIY.js} +5 -2
  109. package/dist/bundle/{instructions-E5FXYCWF.js → instructions-EPPBL6TT.js} +1 -1
  110. package/dist/bundle/{main-EIUCXXDW.js → main-LVQTCDZS.js} +31 -25
  111. package/dist/bundle/{mcp-FUSDPAOL.js → mcp-PPVOM4SE.js} +5 -3
  112. package/dist/bundle/{meetings-JDTRGXZJ.js → meetings-BMELXRTR.js} +31 -4
  113. package/dist/bundle/{node-4SNKUPXT.js → node-CQVMWVIG.js} +2 -2
  114. package/dist/bundle/{node-sqlite-O4BAODFR.js → node-sqlite-QQEX7LZT.js} +7 -4
  115. package/dist/bundle/{oauth-3YLHXGUW.js → oauth-AYGX7CQS.js} +8 -5
  116. package/dist/bundle/{open-QGRMSNM2.js → open-MIL2TOT6.js} +6 -3
  117. package/dist/bundle/openai-7QZZXQW5.js +25 -0
  118. package/dist/bundle/{output-file-J26UQKRA.js → output-file-4XADZPYH.js} +7 -4
  119. package/dist/bundle/{process-HQZOTT6U.js → process-NJVQK6GB.js} +1 -1
  120. package/dist/bundle/{program-47DT7SHE.js → program-WUYRS6H7.js} +191 -135
  121. package/dist/bundle/{prompt-IUD7HCDC.js → prompt-J4QPFLEA.js} +6 -3
  122. package/dist/bundle/{recognize-DMJJHHXF.js → recognize-OLJZVNWW.js} +5 -2
  123. package/dist/bundle/{remote-5WFSOVVB.js → remote-JPUXNYLV.js} +8 -5
  124. package/dist/bundle/{rerank-UKQ65ECH.js → rerank-XVV3X5TT.js} +8 -5
  125. package/dist/bundle/run-log-DJXBEVS5.js +118 -0
  126. package/dist/bundle/{serve-WAOSED3I.js → serve-NYYUO3MR.js} +16 -13
  127. package/dist/bundle/{server-NWZFNXC5.js → server-4Z5E4YTT.js} +48 -42
  128. package/dist/bundle/server-VW5UVCH7.js +72 -0
  129. package/dist/bundle/{services-VPANRE72.js → services-EKWM76HP.js} +50 -28
  130. package/dist/bundle/{speech-O6UNUDRW.js → speech-WFJ44ACJ.js} +14 -11
  131. package/dist/bundle/{state-BNE7I65A.js → state-VIRCT4VW.js} +7 -4
  132. package/dist/bundle/{store-4IIVSCJ4.js → store-2Q4GEZJS.js} +30 -18
  133. package/dist/bundle/{store-QQH4FJXJ.js → store-ZTDZ6UY5.js} +20 -14
  134. package/dist/bundle/store-connection-FKVVQLEF.js +83 -0
  135. package/dist/bundle/store-maintenance-command-AU73UVUQ.js +62 -0
  136. package/dist/bundle/{streaming-S4EZB6P2.js → streaming-7BPKIGAS.js} +7 -4
  137. package/dist/bundle/{tokens-VCXIH7WZ.js → tokens-CQHMMKNX.js} +7 -4
  138. package/dist/bundle/zm.js +150 -1
  139. package/dist/bundle/zoom-app-OEKFMJS6.js +25 -0
  140. package/dist/config.d.ts +9 -0
  141. package/dist/config.d.ts.map +1 -1
  142. package/dist/config.js +46 -7
  143. package/dist/config.js.map +1 -1
  144. package/dist/meeting-source.d.ts.map +1 -1
  145. package/dist/meeting-source.js +2 -1
  146. package/dist/meeting-source.js.map +1 -1
  147. package/dist/meeting-stats-commands.d.ts +4 -2
  148. package/dist/meeting-stats-commands.d.ts.map +1 -1
  149. package/dist/meeting-stats-commands.js +27 -2
  150. package/dist/meeting-stats-commands.js.map +1 -1
  151. package/dist/program-bindings.d.ts.map +1 -1
  152. package/dist/program-bindings.js +3 -2
  153. package/dist/program-bindings.js.map +1 -1
  154. package/dist/recording-schedule-setup.d.ts.map +1 -1
  155. package/dist/recording-schedule-setup.js +5 -5
  156. package/dist/recording-schedule-setup.js.map +1 -1
  157. package/dist/run.d.ts.map +1 -1
  158. package/dist/run.js +2 -6
  159. package/dist/run.js.map +1 -1
  160. package/dist/setup-commands.d.ts +1 -1
  161. package/dist/setup-commands.d.ts.map +1 -1
  162. package/dist/setup-commands.js +30 -8
  163. package/dist/setup-commands.js.map +1 -1
  164. package/dist/store-commands.d.ts.map +1 -1
  165. package/dist/store-commands.js +6 -0
  166. package/dist/store-commands.js.map +1 -1
  167. package/dist/store-connection.d.ts +2 -1
  168. package/dist/store-connection.d.ts.map +1 -1
  169. package/dist/store-connection.js +4 -0
  170. package/dist/store-connection.js.map +1 -1
  171. package/dist/version.d.ts +1 -1
  172. package/dist/version.js +1 -1
  173. package/dist/watch-service.d.ts +1 -1
  174. package/dist/watch-service.d.ts.map +1 -1
  175. package/dist/watch-service.js +5 -3
  176. package/dist/watch-service.js.map +1 -1
  177. package/dist/zoom-app.d.ts +17 -0
  178. package/dist/zoom-app.d.ts.map +1 -0
  179. package/dist/zoom-app.js +22 -0
  180. package/dist/zoom-app.js.map +1 -0
  181. package/package.json +6 -4
  182. package/skills/zoom-cli/SKILL.md +4 -1
  183. package/dist/bundle/answer-policy-BHDNSJWX.js +0 -96
  184. package/dist/bundle/chunk-A6OA2EH2.js +0 -18
  185. package/dist/bundle/command-contract-O4FDXM4U.js +0 -37
  186. package/dist/bundle/config-UBHKZG3J.js +0 -78
  187. package/dist/bundle/first-run-OCVEJH63.js +0 -23
  188. package/dist/bundle/first-screen-KJIU25MH.js +0 -35
  189. package/dist/bundle/openai-7PSCSTH7.js +0 -22
  190. package/dist/bundle/run-log-UGYL6NW2.js +0 -111
  191. package/dist/bundle/server-HAXN772R.js +0 -66
  192. package/dist/bundle/store-connection-PPEQK2K3.js +0 -76
  193. package/dist/bundle/store-maintenance-command-JZXCT6NY.js +0 -56
  194. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
@@ -8,9 +8,8 @@ import {
8
8
  queryFieldsOf,
9
9
  timezoneOf,
10
10
  validateQuery
11
- } from "./chunk-ZH743WNV.js";
11
+ } from "./chunk-AAZFLJSH.js";
12
12
  import {
13
- CliError,
14
13
  STEPS,
15
14
  array,
16
15
  boolean,
@@ -29,18 +28,23 @@ import {
29
28
  pipe,
30
29
  reference,
31
30
  safeParse,
32
- singleLine,
33
31
  stepOf,
34
32
  strictObject,
35
33
  string,
36
- union,
34
+ union
35
+ } from "./chunk-NTZDM5SJ.js";
36
+ import {
37
+ CliError
38
+ } from "./chunk-WZ5XK74U.js";
39
+ import {
40
+ singleLine,
37
41
  visibleControls
38
- } from "./chunk-JF7ZEUXU.js";
42
+ } from "./chunk-6IBM4Z3V.js";
39
43
  import {
40
44
  __name
41
45
  } from "./chunk-ZVVMGPBJ.js";
42
46
 
43
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/reference.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/reference.js
44
48
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
45
49
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
46
50
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -58,8 +62,8 @@ var formatMeetingReference = /* @__PURE__ */ __name((reference2) => {
58
62
  }
59
63
  return `meeting:${parts.join("/")}`;
60
64
  }, "formatMeetingReference");
61
- var parseMeetingReference = /* @__PURE__ */ __name((text9) => {
62
- const value = text9.trim();
65
+ var parseMeetingReference = /* @__PURE__ */ __name((text8) => {
66
+ const value = text8.trim();
63
67
  if (!value.startsWith("meeting:"))
64
68
  throw invalid();
65
69
  const parts = value.slice(8).split("/");
@@ -75,9 +79,9 @@ var parseMeetingReference = /* @__PURE__ */ __name((text9) => {
75
79
  };
76
80
  return reference2;
77
81
  }, "parseMeetingReference");
78
- var canonicalMeetingReference = /* @__PURE__ */ __name((text9) => formatMeetingReference(parseMeetingReference(text9)), "canonicalMeetingReference");
82
+ var canonicalMeetingReference = /* @__PURE__ */ __name((text8) => formatMeetingReference(parseMeetingReference(text8)), "canonicalMeetingReference");
79
83
 
80
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/item.js
84
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/item.js
81
85
  var text = string();
82
86
  var count = pipe(number(), integer(), minValue(0));
83
87
  var MEETING_ISSUES = ["time_without_zone"];
@@ -142,7 +146,7 @@ var MEETING_QUERY = {
142
146
  })
143
147
  };
144
148
 
145
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/answers.js
149
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/answers.js
146
150
  var text2 = string();
147
151
  var count2 = pipe(number(), integer(), minValue(0));
148
152
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -256,7 +260,7 @@ var meetingSummaryItem = /* @__PURE__ */ __name((accountId, summary) => ({
256
260
  source: summary.source,
257
261
  title: summary.title,
258
262
  overview: summary.overview,
259
- sections: summary.sections.map(({ label: label2, text: text9 }) => ({ label: label2, text: text9 })),
263
+ sections: summary.sections.map(({ label: label2, text: text8 }) => ({ label: label2, text: text8 })),
260
264
  next_steps: summary.nextSteps,
261
265
  content: summary.content,
262
266
  url: summary.docUrl,
@@ -377,7 +381,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
377
381
  };
378
382
  }, "meetingHitsList");
379
383
 
380
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
384
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
381
385
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
382
386
  const parsed = urlOf(url);
383
387
  if (!parsed)
@@ -411,15 +415,15 @@ var urlOf = /* @__PURE__ */ __name((url) => {
411
415
  }
412
416
  }, "urlOf");
413
417
 
414
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
418
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
415
419
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
416
420
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
417
421
  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");
418
- var withoutLinkQueries = /* @__PURE__ */ __name((text9) => text9.replace(/https?:\/\/[^\s<>"')\]]+/giu, (url) => joinUrlWithoutQuery(url) ?? ""), "withoutLinkQueries");
419
- var calendarText = /* @__PURE__ */ __name((text9, { dropSecretLines = true } = {}) => {
420
- if (!text9)
422
+ var withoutLinkQueries = /* @__PURE__ */ __name((text8) => text8.replace(/https?:\/\/[^\s<>"')\]]+/giu, (url) => joinUrlWithoutQuery(url) ?? ""), "withoutLinkQueries");
423
+ var calendarText = /* @__PURE__ */ __name((text8, { dropSecretLines = true } = {}) => {
424
+ if (!text8)
421
425
  return null;
422
- const kept = htmlToText(text9).split(/\r?\n/u).map((line2) => withoutLinkQueries(line2).replace(/[ \t]+/gu, " ").trim()).filter((line2) => !dropSecretLines || !SECRET_LINE.test(line2));
426
+ const kept = htmlToText(text8).split(/\r?\n/u).map((line2) => withoutLinkQueries(line2).replace(/[ \t]+/gu, " ").trim()).filter((line2) => !dropSecretLines || !SECRET_LINE.test(line2));
423
427
  const joined = kept.join("\n").replace(/\n{3,}/gu, "\n\n").trim();
424
428
  return joined || null;
425
429
  }, "calendarText");
@@ -444,7 +448,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
444
448
  return kept;
445
449
  }, "entryMetadata");
446
450
 
447
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
451
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
448
452
  import { createHash } from "node:crypto";
449
453
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
450
454
  reference: cue2.reference,
@@ -458,7 +462,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
458
462
  text: cue2.text
459
463
  })).digest("hex"), "meetingCueFingerprint");
460
464
 
461
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
465
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
462
466
  var EVENT_QUERY = defineQuery({
463
467
  entity: "event",
464
468
  backend: "sql",
@@ -474,7 +478,7 @@ var EVENT_QUERY = defineQuery({
474
478
  ]
475
479
  });
476
480
 
477
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
481
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
478
482
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
479
483
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
480
484
  if (entry.recurrenceEndsAt !== null)
@@ -524,7 +528,7 @@ var eventChange = /* @__PURE__ */ __name((event2, entries, revisions, since) =>
524
528
  return null;
525
529
  }, "eventChange");
526
530
 
527
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/events.js
531
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/events.js
528
532
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
529
533
  const current = await store.meeting(details.meeting.id);
530
534
  if (!current)
@@ -567,8 +571,8 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
567
571
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
568
572
  }, "linkEvent");
569
573
 
570
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
571
- var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text9) => text9.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
574
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
575
+ var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text8) => text8.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
572
576
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
573
577
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
574
578
  throw new CliError("validation_error", "participant query must contain 1\u2013500 characters without NUL");
@@ -591,7 +595,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
591
595
  };
592
596
  }, "validateMeetingParticipantSearch");
593
597
 
594
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/reads.js
598
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/reads.js
595
599
  var MeetingError = class extends CliError {
596
600
  static {
597
601
  __name(this, "MeetingError");
@@ -695,11 +699,11 @@ var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}, page = 1) =
695
699
  } : {}
696
700
  };
697
701
  }, "meetingsList");
698
- var meetingsQuery = /* @__PURE__ */ __name((text9) => {
699
- if (text9 === void 0 || text9.trim() === "")
702
+ var meetingsQuery = /* @__PURE__ */ __name((text8) => {
703
+ if (text8 === void 0 || text8.trim() === "")
700
704
  return void 0;
701
705
  const context3 = { command: "meetings list", guide: MEETING_QUERY_GUIDE };
702
- const query = parseLucene(text9, { defaultField: "none", ...context3 });
706
+ const query = parseLucene(text8, { defaultField: "none", ...context3 });
703
707
  validateQuery(query, MEETING_QUERY, context3);
704
708
  return query;
705
709
  }, "meetingsQuery");
@@ -723,7 +727,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
723
727
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
724
728
  }, "meetingSummaryAnswer");
725
729
 
726
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/export.js
730
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/export.js
727
731
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
728
732
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
729
733
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -732,10 +736,10 @@ var timestamp = /* @__PURE__ */ __name((milliseconds) => {
732
736
  const seconds = Math.floor(milliseconds % 6e4 / 1e3);
733
737
  return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${String(milliseconds % 1e3).padStart(3, "0")}`;
734
738
  }, "timestamp");
735
- var vttText = /* @__PURE__ */ __name((text9) => {
736
- if (visibleControls(text9) !== text9 || /\n\s*\n/.test(text9))
739
+ var vttText = /* @__PURE__ */ __name((text8) => {
740
+ if (visibleControls(text8) !== text8 || /\n\s*\n/.test(text8))
737
741
  throw new MeetingError("validation_error", "cue paragraphs or control characters require Markdown export");
738
- return text9.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
742
+ return text8.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
739
743
  }, "vttText");
740
744
  var serializeVtt = /* @__PURE__ */ __name((lines) => `WEBVTT
741
745
 
@@ -753,9 +757,9 @@ ${speaker}${vttText(line2.text)}
753
757
 
754
758
  `;
755
759
  }).join("")}`, "serializeVtt");
756
- var markdown = /* @__PURE__ */ __name((text9) => visibleControls(text9).replace(/[\\`*_{}[\]()<>#+.!|~]/g, "\\$&"), "markdown");
757
- var heading = /* @__PURE__ */ __name((text9) => markdown(singleLine(text9)), "heading");
758
- var quote = /* @__PURE__ */ __name((text9) => markdown(text9).split(/\r\n|\r|\n/).map((line2) => `> ${line2}`).join("\n"), "quote");
760
+ var markdown = /* @__PURE__ */ __name((text8) => visibleControls(text8).replace(/[\\`*_{}[\]()<>#+.!|~]/g, "\\$&"), "markdown");
761
+ var heading = /* @__PURE__ */ __name((text8) => markdown(singleLine(text8)), "heading");
762
+ var quote = /* @__PURE__ */ __name((text8) => markdown(text8).split(/\r\n|\r|\n/).map((line2) => `> ${line2}`).join("\n"), "quote");
759
763
  var transcriptsOf = /* @__PURE__ */ __name((details, transcriptId) => {
760
764
  if (transcriptId !== void 0) {
761
765
  positiveInteger(transcriptId);
@@ -819,11 +823,11 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
819
823
  };
820
824
  }, "exportMeeting");
821
825
 
822
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
826
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
823
827
  import { createHash as createHash2 } from "node:crypto";
824
828
 
825
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/payment.js
826
- var FACT_TYPES = ["fact", "statement", "question", "decision", "promise", "payment"];
829
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/payment.js
830
+ var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
827
831
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
828
832
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
829
833
  var invalid2 = /* @__PURE__ */ __name((message) => {
@@ -844,7 +848,7 @@ var amountOf = /* @__PURE__ */ __name((value) => {
844
848
  var dateOf = /* @__PURE__ */ __name((value) => {
845
849
  const date2 = typeof value === "string" ? value.trim() : "";
846
850
  if (!/^\d{4}-\d{2}-\d{2}$/.test(date2) || (/* @__PURE__ */ new Date(`${date2}T00:00:00Z`)).toISOString().slice(0, 10) !== date2)
847
- return invalid2("a payment's due date is an ISO date, such as 2026-10-31");
851
+ return invalid2("a payment's dates are ISO dates, such as 2026-10-31");
848
852
  return date2;
849
853
  }, "dateOf");
850
854
  var optionalText = /* @__PURE__ */ __name((value, what, limit) => {
@@ -859,7 +863,17 @@ var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
859
863
  return invalid2(`a payment's ${what} is one of ${allowed.join(", ")}`);
860
864
  return value;
861
865
  }, "oneOf");
862
- var FIELDS = ["amount", "currency", "direction", "counterparty", "counterparty_name", "due_at", "state", "item"];
866
+ var FIELDS = [
867
+ "amount",
868
+ "currency",
869
+ "direction",
870
+ "counterparty",
871
+ "counterparty_name",
872
+ "due_at",
873
+ "state",
874
+ "item",
875
+ "paid_at"
876
+ ];
863
877
  var validatePayment = /* @__PURE__ */ __name((input) => {
864
878
  if (!input || typeof input !== "object" || Array.isArray(input))
865
879
  return invalid2("a payment is an object");
@@ -873,6 +887,9 @@ var validatePayment = /* @__PURE__ */ __name((input) => {
873
887
  const counterparty = optionalText(raw.counterparty, "counterparty", 80);
874
888
  if (counterparty !== null && !COUNTERPARTY.test(counterparty))
875
889
  return invalid2("a payment's counterparty is a person:, organization: or project: reference");
890
+ const state = oneOf(raw.state, PAYMENT_STATES, "state");
891
+ if (raw.paid_at != null && state !== "paid")
892
+ return invalid2("only a paid payment has paid_at");
876
893
  return {
877
894
  amount: amountOf(raw.amount),
878
895
  currency,
@@ -880,8 +897,10 @@ var validatePayment = /* @__PURE__ */ __name((input) => {
880
897
  counterparty,
881
898
  counterparty_name: optionalText(raw.counterparty_name, "counterparty name", 200),
882
899
  due_at: raw.due_at === void 0 || raw.due_at === null ? null : dateOf(raw.due_at),
883
- state: oneOf(raw.state, PAYMENT_STATES, "state"),
884
- item: optionalText(raw.item, "item", 200)
900
+ state,
901
+ item: optionalText(raw.item, "item", 200),
902
+ // Left out when absent, so a finding staged before the field keeps its fingerprint.
903
+ ...raw.paid_at == null ? {} : { paid_at: dateOf(raw.paid_at) }
885
904
  };
886
905
  }, "validatePayment");
887
906
  var grouped = /* @__PURE__ */ __name((amount) => {
@@ -901,7 +920,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
901
920
  return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
902
921
  }, "paymentTitle");
903
922
 
904
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
923
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
905
924
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
906
925
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
907
926
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
@@ -912,132 +931,152 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
912
931
  return new Date(value).toISOString();
913
932
  }, "meetingTimestamp");
914
933
 
915
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
934
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
916
935
  var TASK_TYPES = ["bug", "feature", "chore"];
917
936
  var invalid3 = /* @__PURE__ */ __name((message) => {
918
937
  throw new CliError("validation_error", message);
919
938
  }, "invalid");
920
- var text3 = /* @__PURE__ */ __name((value, limit) => {
939
+ var findingText = /* @__PURE__ */ __name((value, limit) => {
921
940
  if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > limit)
922
941
  return invalid3(`finding text must contain 1\u2013${limit} characters without NUL`);
923
942
  return value.trim();
924
- }, "text");
943
+ }, "findingText");
925
944
  var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
926
- var fields = /* @__PURE__ */ __name((value, allowed, noun) => {
945
+ var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => {
927
946
  if (Object.keys(value).some((key) => !allowed.includes(key)))
928
947
  invalid3(`unknown ${noun} field`);
929
- }, "fields");
948
+ }, "findingFields");
930
949
  var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
931
- var validateFindings = /* @__PURE__ */ __name((input, rules) => {
950
+ var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
951
+ if (!Array.isArray(raw) || raw.length < 1 || raw.length > 8)
952
+ return invalid3(`a finding requires 1\u20138 cited ${rules.cited}s`);
953
+ const evidence = raw.map((item) => {
954
+ if (!item || typeof item !== "object")
955
+ return invalid3("finding evidence is a reference and fingerprint");
956
+ findingFields(item, ["reference", "fingerprint"], rules.singular);
957
+ if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
958
+ return invalid3("evidence requires a reference and fingerprint");
959
+ const reference2 = rules.reference(item.reference);
960
+ if (!/^[a-f0-9]{64}$/.test(item.fingerprint))
961
+ return invalid3(`finding evidence requires exact ${rules.cited} references and fingerprints`);
962
+ return { reference: reference2, fingerprint: item.fingerprint };
963
+ }).sort((a, b) => a.reference.localeCompare(b.reference));
964
+ if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
965
+ return invalid3(`duplicate evidence ${rules.cited}`);
966
+ return evidence;
967
+ }, "validEvidence");
968
+ var findingId = /* @__PURE__ */ __name((raw, ids2) => {
969
+ const id4 = findingText(raw, 64);
970
+ if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id4) || ids2.has(id4))
971
+ return invalid3("finding IDs must be unique simple keys");
972
+ ids2.add(id4);
973
+ return id4;
974
+ }, "findingId");
975
+ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
976
+ if (!finding || typeof finding !== "object")
977
+ return invalid3("a finding is an object");
978
+ const id4 = findingId(finding.id, ids2);
979
+ const project = finding.project === void 0 && rules.anySubject ? void 0 : findingText(finding.project, 64);
980
+ if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
981
+ return invalid3("a finding names a project reference");
982
+ if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(findingText(finding.subject, 80))))
983
+ return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
984
+ if (finding.kind === "task" && project === void 0 && !rules.inboxTasks)
985
+ return invalid3("a task finding names the project the task goes in");
986
+ const evidence = validEvidence(finding.evidence, rules);
987
+ const base = {
988
+ id: id4,
989
+ ...project === void 0 ? {} : { project },
990
+ ...finding.subject === void 0 ? {} : { subject: finding.subject },
991
+ evidence
992
+ };
993
+ if (finding.kind === "fact") {
994
+ findingFields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
995
+ if (finding.type === "payment")
996
+ return invalid3("a payment is a finding of kind payment; money is a payments row, not a fact");
997
+ if (!FACT_TYPES.includes(finding.type))
998
+ return invalid3("unknown fact finding type");
999
+ return { ...base, kind: "fact", type: finding.type, statement: findingText(finding.statement, 2e3) };
1000
+ }
1001
+ if (finding.kind === "payment" && rules.payments) {
1002
+ findingFields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
1003
+ if (finding.supersedes !== void 0 && !/^invoice:[1-9]\d*$/.test(String(finding.supersedes)))
1004
+ return invalid3("a payment finding supersedes an invoice: reference, the expected payment it settles or voids");
1005
+ const payment = validatePayment(finding.payment);
1006
+ if (payment.state === "expected" && finding.supersedes !== void 0)
1007
+ return invalid3("an expected payment supersedes nothing; a paid or cancelled one supersedes its invoice");
1008
+ if (payment.state === "cancelled" && finding.supersedes === void 0)
1009
+ return invalid3("a cancelled payment names the invoice: it cancels in supersedes");
1010
+ if (payment.state === "expected" && !/^(person|organization):/.test(payment.counterparty ?? ""))
1011
+ return invalid3("an expected payment becomes an invoice, which names its counterparty as a person: or organization:");
1012
+ return {
1013
+ ...base,
1014
+ kind: "payment",
1015
+ ...finding.statement === void 0 ? {} : { statement: findingText(finding.statement, 2e3) },
1016
+ payment,
1017
+ ...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
1018
+ };
1019
+ }
1020
+ if (finding.kind !== "task")
1021
+ return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
1022
+ findingFields(finding, [
1023
+ "id",
1024
+ "project",
1025
+ "evidence",
1026
+ "kind",
1027
+ "type",
1028
+ "title",
1029
+ "reason",
1030
+ "commitment",
1031
+ "dueAt",
1032
+ "dueEvidence",
1033
+ "assignee",
1034
+ "assigneeEvidence"
1035
+ ], rules.singular);
1036
+ if (!TASK_TYPES.includes(finding.type))
1037
+ return invalid3("a task finding type is bug, chore or feature");
1038
+ if (!["explicit", "inferred"].includes(finding.commitment))
1039
+ return invalid3("task commitment must be explicit or inferred");
1040
+ if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1041
+ return invalid3("optional dates and assignees require their supporting evidence");
1042
+ if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
1043
+ return invalid3("an assignee must be a person reference");
1044
+ return {
1045
+ ...base,
1046
+ kind: "task",
1047
+ type: finding.type,
1048
+ title: findingText(finding.title, 300),
1049
+ reason: findingText(finding.reason, 2e3),
1050
+ commitment: finding.commitment,
1051
+ ...finding.dueAt === void 0 ? {} : {
1052
+ dueAt: meetingTimestamp(finding.dueAt, "finding due date"),
1053
+ dueEvidence: support(finding.dueEvidence, evidence)
1054
+ },
1055
+ ...finding.assignee === void 0 ? {} : { assignee: finding.assignee, assigneeEvidence: support(finding.assigneeEvidence, evidence) }
1056
+ };
1057
+ }, "validateFinding");
1058
+ var support = /* @__PURE__ */ __name((value, evidence) => {
1059
+ if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
1060
+ return invalid3("date and assignee support must cite the finding's evidence");
1061
+ return [...new Set(value)].sort();
1062
+ }, "support");
1063
+ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
932
1064
  if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
933
1065
  return invalid3(`${rules.plural} take at most 65536 UTF-8 bytes`);
934
- fields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
935
- if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > 16)
936
- return invalid3(`schemaVersion 1 takes 1\u201316 ${rules.plural}`);
937
- const key = text3(input.key, 64);
1066
+ findingFields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
1067
+ if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > most)
1068
+ return invalid3(`schemaVersion 1 takes 1\u2013${most} ${rules.plural}`);
1069
+ const key = findingText(input.key, 64);
938
1070
  if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(key))
939
1071
  return invalid3("a findings key uses letters, digits, dot, colon, underscore or hyphen");
940
1072
  const ids2 = /* @__PURE__ */ new Set();
941
- const findings = input.findings.map((finding) => {
942
- if (!finding || typeof finding !== "object")
943
- return invalid3("a finding is an object");
944
- const id4 = text3(finding.id, 64);
945
- if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id4) || ids2.has(id4))
946
- return invalid3("finding IDs must be unique simple keys");
947
- ids2.add(id4);
948
- const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
949
- if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
950
- return invalid3("a finding names a project reference");
951
- if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
952
- return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
953
- if (finding.kind === "task" && project === void 0)
954
- return invalid3("a task finding names the project the task goes in");
955
- if (!Array.isArray(finding.evidence) || finding.evidence.length < 1 || finding.evidence.length > 8)
956
- return invalid3(`a finding requires 1\u20138 cited ${rules.cited}s`);
957
- const evidence = finding.evidence.map((item) => {
958
- if (!item || typeof item !== "object")
959
- return invalid3("finding evidence is a reference and fingerprint");
960
- fields(item, ["reference", "fingerprint"], rules.singular);
961
- if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
962
- return invalid3("evidence requires a reference and fingerprint");
963
- const reference2 = rules.reference(item.reference);
964
- if (!/^[a-f0-9]{64}$/.test(item.fingerprint))
965
- return invalid3(`finding evidence requires exact ${rules.cited} references and fingerprints`);
966
- return { reference: reference2, fingerprint: item.fingerprint };
967
- }).sort((a, b) => a.reference.localeCompare(b.reference));
968
- if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
969
- return invalid3(`duplicate evidence ${rules.cited}`);
970
- const base = {
971
- id: id4,
972
- ...project === void 0 ? {} : { project },
973
- ...finding.subject === void 0 ? {} : { subject: finding.subject },
974
- evidence
975
- };
976
- if (finding.kind === "fact") {
977
- fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
978
- if (finding.type === "payment")
979
- return invalid3("a payment is a finding of kind payment");
980
- if (!FACT_TYPES.includes(finding.type))
981
- return invalid3("unknown fact finding type");
982
- return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
983
- }
984
- if (finding.kind === "payment" && rules.payments) {
985
- fields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
986
- if (finding.supersedes !== void 0 && !/^fact:[1-9]\d*$/.test(String(finding.supersedes)))
987
- return invalid3("a payment finding supersedes a fact: reference");
988
- return {
989
- ...base,
990
- kind: "payment",
991
- ...finding.statement === void 0 ? {} : { statement: text3(finding.statement, 2e3) },
992
- payment: validatePayment(finding.payment),
993
- ...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
994
- };
995
- }
996
- if (finding.kind !== "task")
997
- return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
998
- fields(finding, [
999
- "id",
1000
- "project",
1001
- "evidence",
1002
- "kind",
1003
- "type",
1004
- "title",
1005
- "reason",
1006
- "commitment",
1007
- "dueAt",
1008
- "dueEvidence",
1009
- "assignee",
1010
- "assigneeEvidence"
1011
- ], rules.singular);
1012
- if (!TASK_TYPES.includes(finding.type))
1013
- return invalid3("a task finding type is bug, chore or feature");
1014
- if (!["explicit", "inferred"].includes(finding.commitment))
1015
- return invalid3("task commitment must be explicit or inferred");
1016
- const support = /* @__PURE__ */ __name((value) => {
1017
- if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
1018
- return invalid3("date and assignee support must cite the finding's evidence");
1019
- return [...new Set(value)].sort();
1020
- }, "support");
1021
- if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1022
- return invalid3("optional dates and assignees require their supporting evidence");
1023
- if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
1024
- return invalid3("an assignee must be a person reference");
1025
- return {
1026
- ...base,
1027
- kind: "task",
1028
- type: finding.type,
1029
- title: text3(finding.title, 300),
1030
- reason: text3(finding.reason, 2e3),
1031
- commitment: finding.commitment,
1032
- ...finding.dueAt === void 0 ? {} : { dueAt: meetingTimestamp(finding.dueAt, "finding due date"), dueEvidence: support(finding.dueEvidence) },
1033
- ...finding.assignee === void 0 ? {} : { assignee: finding.assignee, assigneeEvidence: support(finding.assigneeEvidence) }
1034
- };
1035
- });
1036
- return { schemaVersion: 1, key, extractor: text3(input.extractor, 200), findings };
1037
- }, "validateFindings");
1073
+ const findings = input.findings.map((finding) => one(finding, ids2));
1074
+ return { schemaVersion: 1, key, extractor: findingText(input.extractor, 200), findings };
1075
+ }, "validateBatch");
1076
+ var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1038
1077
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1039
1078
 
1040
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1079
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1041
1080
  var MEETING_FINDINGS_KIND = "meeting_findings";
1042
1081
  var cue = /* @__PURE__ */ __name((raw) => {
1043
1082
  const reference2 = canonicalMeetingReference(raw);
@@ -1048,7 +1087,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1048
1087
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1049
1088
  var meetingFindingFingerprint = findingFingerprint;
1050
1089
 
1051
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1090
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1052
1091
  var context = {
1053
1092
  command: "search meetings",
1054
1093
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1156,9 +1195,9 @@ var liftMeetingFields = /* @__PURE__ */ __name((query, request, now) => {
1156
1195
  return { query: rest, request: next };
1157
1196
  }, "liftMeetingFields");
1158
1197
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
1159
- var meetingWordsQuery = /* @__PURE__ */ __name((text9) => {
1160
- const found = text9.match(/[\p{L}\p{N}\p{M}]+/gu) ?? [];
1161
- const span = { start: 0, end: text9.length };
1198
+ var meetingWordsQuery = /* @__PURE__ */ __name((text8) => {
1199
+ const found = text8.match(/[\p{L}\p{N}\p{M}]+/gu) ?? [];
1200
+ const span = { start: 0, end: text8.length };
1162
1201
  const clauses = found.map((value) => ({
1163
1202
  occur: "must",
1164
1203
  node: { kind: "predicate", field: "text", operator: "term", value, span }
@@ -1167,7 +1206,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text9) => {
1167
1206
  return { version: 1, language: "lucene-v1", root };
1168
1207
  }, "meetingWordsQuery");
1169
1208
 
1170
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/language.js
1209
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/language.js
1171
1210
  var LATIN_WORDS = {
1172
1211
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
1173
1212
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -1182,11 +1221,11 @@ var CYRILLIC = new RegExp("\\p{Script=Cyrillic}", "gu");
1182
1221
  var LATIN = new RegExp("\\p{Script=Latin}", "gu");
1183
1222
  var MIN_LETTERS = 20;
1184
1223
  var DOMINANT = 0.75;
1185
- var countOf = /* @__PURE__ */ __name((text9, pattern) => text9.match(pattern)?.length ?? 0, "countOf");
1224
+ var countOf = /* @__PURE__ */ __name((text8, pattern) => text8.match(pattern)?.length ?? 0, "countOf");
1186
1225
  var latinLanguage = /* @__PURE__ */ __name((texts) => {
1187
1226
  const votes = /* @__PURE__ */ new Map();
1188
- for (const text9 of texts)
1189
- for (const word of text9.toLowerCase().split(/[^\p{L}]+/u)) {
1227
+ for (const text8 of texts)
1228
+ for (const word of text8.toLowerCase().split(/[^\p{L}]+/u)) {
1190
1229
  const language = LATIN_LANGUAGE.get(word);
1191
1230
  if (language)
1192
1231
  votes.set(language, (votes.get(language) ?? 0) + 1);
@@ -1201,10 +1240,10 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1201
1240
  let cyrillic = 0;
1202
1241
  let latin = 0;
1203
1242
  let ukrainian = 0;
1204
- for (const text9 of all) {
1205
- cyrillic += countOf(text9, CYRILLIC);
1206
- latin += countOf(text9, LATIN);
1207
- ukrainian += countOf(text9, UKRAINIAN);
1243
+ for (const text8 of all) {
1244
+ cyrillic += countOf(text8, CYRILLIC);
1245
+ latin += countOf(text8, LATIN);
1246
+ ukrainian += countOf(text8, UKRAINIAN);
1208
1247
  }
1209
1248
  const letters = cyrillic + latin;
1210
1249
  if (letters < MIN_LETTERS)
@@ -1216,9 +1255,9 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1216
1255
  return null;
1217
1256
  }, "transcriptLanguage");
1218
1257
 
1219
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1220
- var contentHash = /* @__PURE__ */ __name(async (text9) => {
1221
- const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text9));
1258
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1259
+ var contentHash = /* @__PURE__ */ __name(async (text8) => {
1260
+ const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text8));
1222
1261
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
1223
1262
  }, "contentHash");
1224
1263
  var speakerPosition = /* @__PURE__ */ __name((name, participants) => {
@@ -1253,7 +1292,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
1253
1292
  return time;
1254
1293
  }, "timestamp");
1255
1294
 
1256
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
1295
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
1257
1296
  var TranscriptTextError = class extends Error {
1258
1297
  static {
1259
1298
  __name(this, "TranscriptTextError");
@@ -1270,10 +1309,10 @@ var LINE = /^\[(\d{2,}):([0-5]\d):([0-5]\d)\]\s*(?:([^:\n]{1,60}):\s*)?([\s\S]*)
1270
1309
  var RULE = /^[—–-]{10,}[^\n]*(?:\n|$)/;
1271
1310
  var EMPTY = /* @__PURE__ */ new Set(["", "\u2014", "-"]);
1272
1311
  var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1273
- const text9 = input.replace(/^/, "").replace(/\r\n?/g, "\n");
1312
+ const text8 = input.replace(/^/, "").replace(/\r\n?/g, "\n");
1274
1313
  const header = { title: null, date: null, meetingId: null, speakers: [] };
1275
1314
  let sawHeader = false;
1276
- for (const line2 of text9.split("\n")) {
1315
+ for (const line2 of text8.split("\n")) {
1277
1316
  if (!line2.trim())
1278
1317
  break;
1279
1318
  for (const [prefix, key] of Object.entries(HEADER)) {
@@ -1290,7 +1329,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1290
1329
  if (!sawHeader)
1291
1330
  throw new TranscriptTextError('a text transcript starts with a header such as "\u0412\u0441\u0442\u0440\u0435\u0447\u0430: \u2026"');
1292
1331
  const found = [];
1293
- for (const block of text9.split(/\n\s*\n/)) {
1332
+ for (const block of text8.split(/\n\s*\n/)) {
1294
1333
  const match = LINE.exec(block.trim().replace(RULE, ""));
1295
1334
  if (!match)
1296
1335
  continue;
@@ -1308,7 +1347,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1308
1347
  return { header, lines };
1309
1348
  }, "parseTranscriptText");
1310
1349
 
1311
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
1350
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
1312
1351
  var VttError = class extends Error {
1313
1352
  static {
1314
1353
  __name(this, "VttError");
@@ -1324,12 +1363,12 @@ var millis = /* @__PURE__ */ __name((stamp, lineNo) => {
1324
1363
  const [, hours = "0", minutes = "0", seconds = "0", ms = "0"] = match;
1325
1364
  return ((Number(hours) * 60 + Number(minutes)) * 60 + Number(seconds)) * 1e3 + Number(ms);
1326
1365
  }, "millis");
1327
- var splitSpeaker = /* @__PURE__ */ __name((text9) => {
1328
- const firstLine = text9.split("\n", 1)[0] ?? "";
1366
+ var splitSpeaker = /* @__PURE__ */ __name((text8) => {
1367
+ const firstLine = text8.split("\n", 1)[0] ?? "";
1329
1368
  const at = firstLine.indexOf(": ");
1330
1369
  if (at <= 0)
1331
- return { speaker: null, text: text9 };
1332
- return { speaker: firstLine.slice(0, at).trim(), text: text9.slice(at + 2) };
1370
+ return { speaker: null, text: text8 };
1371
+ return { speaker: firstLine.slice(0, at).trim(), text: text8.slice(at + 2) };
1333
1372
  }, "splitSpeaker");
1334
1373
  var parseVtt = /* @__PURE__ */ __name((input) => {
1335
1374
  const lines = input.replace(/^/, "").split(/\r\n|\r|\n/);
@@ -1354,13 +1393,13 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
1354
1393
  const lineNo = start + timingAt + 1;
1355
1394
  const [from = "", rest = ""] = (block[timingAt] ?? "").split("-->");
1356
1395
  const to = rest.trim().split(/\s+/)[0] ?? "";
1357
- const text9 = block.slice(timingAt + 1).join("\n").trim();
1358
- cues.push({ startMs: millis(from.trim(), lineNo), endMs: millis(to, lineNo), ...splitSpeaker(text9) });
1396
+ const text8 = block.slice(timingAt + 1).join("\n").trim();
1397
+ cues.push({ startMs: millis(from.trim(), lineNo), endMs: millis(to, lineNo), ...splitSpeaker(text8) });
1359
1398
  }
1360
1399
  return cues;
1361
1400
  }, "parseVtt");
1362
1401
 
1363
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/import.js
1402
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/import.js
1364
1403
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
1365
1404
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
1366
1405
  for (const file of files) {
@@ -1393,10 +1432,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
1393
1432
  return report;
1394
1433
  }, "importFiles");
1395
1434
 
1396
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/links.js
1435
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/links.js
1397
1436
  var CHAT_MESSAGES_READ = 1e5;
1398
1437
 
1399
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/provider.js
1438
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/provider.js
1400
1439
  var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
1401
1440
  const provider = scope3?.provider;
1402
1441
  const account = scope3?.account;
@@ -1405,7 +1444,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
1405
1444
  return Object.freeze({ provider, account });
1406
1445
  }, "snapshotMeetingScope");
1407
1446
 
1408
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
1447
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
1409
1448
  var nonempty = /* @__PURE__ */ __name((value, name) => {
1410
1449
  if (typeof value !== "string" || !value.trim())
1411
1450
  throw new CliError("validation_error", `${name} must be nonempty`);
@@ -1540,19 +1579,19 @@ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports) => {
1540
1579
  };
1541
1580
  }, "createMeetingManagement");
1542
1581
 
1543
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
1582
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
1544
1583
  var id = /* @__PURE__ */ __name((value) => {
1545
1584
  if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
1546
1585
  throw new CliError("validation_error", "meeting context identifiers must be positive integers");
1547
1586
  return value;
1548
1587
  }, "id");
1549
- var text4 = /* @__PURE__ */ __name((value, max) => {
1588
+ var text3 = /* @__PURE__ */ __name((value, max) => {
1550
1589
  if (typeof value !== "string" || !value.trim() || value.length > max || value.includes("\0"))
1551
1590
  throw new CliError("validation_error", `meeting context text must contain 1\u2013${max} characters without NUL`);
1552
1591
  return value.trim();
1553
1592
  }, "text");
1554
1593
  var uid = /* @__PURE__ */ __name((value) => {
1555
- const result = text4(value, 100);
1594
+ const result = text3(value, 100);
1556
1595
  if (!/^[1-9]\d*$/.test(result) || !Number.isSafeInteger(Number(result)))
1557
1596
  throw new CliError("validation_error", "person UID must be a positive integer");
1558
1597
  return result;
@@ -1560,9 +1599,9 @@ var uid = /* @__PURE__ */ __name((value) => {
1560
1599
  var strings = /* @__PURE__ */ __name((value, count6, length) => {
1561
1600
  if (!Array.isArray(value) || value.length < 1 || value.length > count6)
1562
1601
  throw new CliError("validation_error", `meeting context list must contain 1\u2013${count6} entries`);
1563
- return Object.freeze([...new Set(value.map((entry) => text4(entry, length)))]);
1602
+ return Object.freeze([...new Set(value.map((entry) => text3(entry, length)))]);
1564
1603
  }, "strings");
1565
- var fields2 = {
1604
+ var fields = {
1566
1605
  "note.add": ["text", "title"],
1567
1606
  "tags.add": ["tags"],
1568
1607
  "tags.remove": ["tags"],
@@ -1572,14 +1611,14 @@ var fields2 = {
1572
1611
  "person.link": ["participantId", "personUid", "targetAccountIds", "expectedPersonUid"]
1573
1612
  };
1574
1613
  var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1575
- if (!change || typeof change !== "object" || Array.isArray(change) || !Object.hasOwn(fields2, change.action) || Object.keys(change).some((key) => key !== "action" && !fields2[change.action].includes(key)))
1614
+ if (!change || typeof change !== "object" || Array.isArray(change) || !Object.hasOwn(fields, change.action) || Object.keys(change).some((key) => key !== "action" && !fields[change.action].includes(key)))
1576
1615
  throw new CliError("validation_error", "unsupported meeting context change");
1577
1616
  switch (change.action) {
1578
1617
  case "note.add":
1579
1618
  return Object.freeze({
1580
1619
  action: change.action,
1581
- text: text4(change.text, 1e5),
1582
- ...change.title === void 0 ? {} : { title: text4(change.title, 500) }
1620
+ text: text3(change.text, 1e5),
1621
+ ...change.title === void 0 ? {} : { title: text3(change.title, 500) }
1583
1622
  });
1584
1623
  case "tags.add":
1585
1624
  case "tags.remove":
@@ -1589,11 +1628,11 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1589
1628
  throw new CliError("validation_error", "memory kind and explicit personal/work scope are required");
1590
1629
  return Object.freeze({
1591
1630
  action: change.action,
1592
- body: text4(change.body, 2e4),
1631
+ body: text3(change.body, 2e4),
1593
1632
  kind: change.kind,
1594
1633
  scope: change.scope,
1595
1634
  evidence: strings(change.evidence, 100, 4e3),
1596
- ...change.subject === void 0 ? {} : { subject: text4(change.subject, 4e3) }
1635
+ ...change.subject === void 0 ? {} : { subject: text3(change.subject, 4e3) }
1597
1636
  });
1598
1637
  }
1599
1638
  case "fact.add": {
@@ -1601,11 +1640,11 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1601
1640
  throw new CliError("validation_error", `fact type (${FACT_TYPES.join(", ")}) and explicit personal/work scope are required`);
1602
1641
  return Object.freeze({
1603
1642
  action: change.action,
1604
- statement: text4(change.statement, 2e4),
1643
+ statement: text3(change.statement, 2e4),
1605
1644
  type: change.type,
1606
1645
  scope: change.scope,
1607
1646
  evidence: strings(change.evidence, 100, 4e3),
1608
- ...change.subject === void 0 ? {} : { subject: text4(change.subject, 4e3) }
1647
+ ...change.subject === void 0 ? {} : { subject: text3(change.subject, 4e3) }
1609
1648
  });
1610
1649
  }
1611
1650
  case "event.link":
@@ -1632,7 +1671,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) =>
1632
1671
  const fixed = snapshotMeetingScope(scope3);
1633
1672
  const account = id(accountId);
1634
1673
  const actions = Object.freeze([...new Set(ports.actions)]);
1635
- if (actions.some((action) => !Object.hasOwn(fields2, action)))
1674
+ if (actions.some((action) => !Object.hasOwn(fields, action)))
1636
1675
  throw new CliError("validation_error", "unsupported meeting context capability");
1637
1676
  const apply = ports.apply.bind(ports);
1638
1677
  return {
@@ -1662,7 +1701,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) =>
1662
1701
  };
1663
1702
  }, "createMeetingContext");
1664
1703
 
1665
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/passage.js
1704
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/passage.js
1666
1705
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
1667
1706
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
1668
1707
  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)))
@@ -1675,7 +1714,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
1675
1714
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
1676
1715
  }, "validateMeetingPassage");
1677
1716
 
1678
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
1717
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
1679
1718
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
1680
1719
  if (!original || typeof original !== "object" || Array.isArray(original))
1681
1720
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -1700,7 +1739,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
1700
1739
  return { ...input, limit, maxReadBytes };
1701
1740
  }, "validateMeetingPreparationContext");
1702
1741
 
1703
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
1742
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
1704
1743
  var count3 = pipe(number(), integer(), minValue(0));
1705
1744
  var id2 = pipe(string(), minLength(1));
1706
1745
  var meetingProjectEvidence = strictObject({
@@ -1821,7 +1860,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
1821
1860
  };
1822
1861
  }, "meetingProjectEvidenceAnswer");
1823
1862
 
1824
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
1863
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
1825
1864
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
1826
1865
  const integer5 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
1827
1866
  if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer5(options.limit ?? 100, 1, 1e3) || !integer5(options.maxReadBytes ?? 4194304, 1, 67108864) || [
@@ -1841,7 +1880,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
1841
1880
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
1842
1881
  }, "validateMeetingHitSearch");
1843
1882
 
1844
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
1883
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
1845
1884
  var ids = {
1846
1885
  meeting_id: "meetingId",
1847
1886
  identity_id: "participantIdentityId",
@@ -1932,7 +1971,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
1932
1971
  return { project: project.trim(), options, query: frozen.join(" AND ") };
1933
1972
  }, "prepareMeetingProjectEvidence");
1934
1973
 
1935
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
1974
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
1936
1975
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
1937
1976
  const prepared = prepareMeetingProjectEvidence(project, request, now);
1938
1977
  const page = await read(prepared.project, prepared.options);
@@ -1940,12 +1979,12 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
1940
1979
  return meetingProjectEvidenceAnswer(page, prepared);
1941
1980
  }, "readMeetingProjectEvidence");
1942
1981
 
1943
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/pull.js
1982
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/pull.js
1944
1983
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
1945
- const { identityExternalId, ...fields3 } = p;
1984
+ const { identityExternalId, ...fields2 } = p;
1946
1985
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
1947
1986
  return {
1948
- ...fields3,
1987
+ ...fields2,
1949
1988
  identity: {
1950
1989
  provider,
1951
1990
  externalId,
@@ -2079,8 +2118,8 @@ unlinked`, format)],
2079
2118
  return report;
2080
2119
  }, "pull");
2081
2120
 
2082
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2083
- var text5 = string();
2121
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2122
+ var text4 = string();
2084
2123
  var count4 = pipe(number(), integer(), minValue(0));
2085
2124
  var id3 = pipe(number(), integer(), minValue(1));
2086
2125
  var iso3 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -2088,22 +2127,22 @@ var meetingRef2 = /* @__PURE__ */ __name((accountId, meetingId) => formatMeeting
2088
2127
  var meetingReview = strictObject({
2089
2128
  ref: reference,
2090
2129
  id: pipe(string(), minLength(1)),
2091
- title: nullable(text5),
2130
+ title: nullable(text4),
2092
2131
  started_at: nullable(isoTime),
2093
2132
  duration_ms: nullable(count4),
2094
2133
  participants_count: nullable(count4),
2095
- projects: array(text5),
2134
+ projects: array(text4),
2096
2135
  /** Null when the meeting has no current transcript. */
2097
2136
  transcript: nullable(strictObject({ lines: count4, words: count4 })),
2098
2137
  /** The three who talked longest. */
2099
- speakers: array(strictObject({ name: nullable(text5), talk_ms: count4 })),
2138
+ speakers: array(strictObject({ name: nullable(text4), talk_ms: count4 })),
2100
2139
  /** The newest stored summary; null when there is none. */
2101
2140
  summary: nullable(strictObject({
2102
- source: text5,
2103
- title: nullable(text5),
2104
- overview: nullable(text5),
2105
- next_steps: array(text5),
2106
- url: nullable(text5)
2141
+ source: text4,
2142
+ title: nullable(text4),
2143
+ overview: nullable(text4),
2144
+ next_steps: array(text4),
2145
+ url: nullable(text4)
2107
2146
  }))
2108
2147
  });
2109
2148
  var meetingReviewItem = /* @__PURE__ */ __name((one) => ({
@@ -2125,15 +2164,15 @@ var meetingReviewItem = /* @__PURE__ */ __name((one) => ({
2125
2164
  }
2126
2165
  }), "meetingReviewItem");
2127
2166
  var meetingLink = strictObject({
2128
- url: text5,
2129
- domain: nullable(text5),
2167
+ url: text4,
2168
+ domain: nullable(text4),
2130
2169
  /** The Google Docs, Sheets, Slides, Forms or Drive file it names. */
2131
- document_id: nullable(text5),
2170
+ document_id: nullable(text4),
2132
2171
  count: count4,
2133
2172
  first_at: isoTime,
2134
2173
  last_at: isoTime,
2135
- senders: array(text5),
2136
- meetings: array(strictObject({ ref: reference, title: nullable(text5) }))
2174
+ senders: array(text4),
2175
+ meetings: array(strictObject({ ref: reference, title: nullable(text4) }))
2137
2176
  });
2138
2177
  var meetingLinkItem = /* @__PURE__ */ __name((link) => ({
2139
2178
  url: link.url,
@@ -2147,8 +2186,8 @@ var meetingLinkItem = /* @__PURE__ */ __name((link) => ({
2147
2186
  }), "meetingLinkItem");
2148
2187
  var meetingSpeaker = strictObject({
2149
2188
  /** `person:<id>`, `identity:<id>`, `name:<lowercased name>` or `unknown`. */
2150
- key: text5,
2151
- name: nullable(text5),
2189
+ key: text4,
2190
+ name: nullable(text4),
2152
2191
  person_id: nullable(id3),
2153
2192
  identity_id: nullable(id3),
2154
2193
  meetings: count4,
@@ -2170,13 +2209,13 @@ var meetingSpeakerItem = /* @__PURE__ */ __name((one) => ({
2170
2209
  share: one.share
2171
2210
  }), "meetingSpeakerItem");
2172
2211
  var meetingStats = strictObject({
2173
- time_zone: text5,
2212
+ time_zone: text4,
2174
2213
  meetings: count4,
2175
2214
  lines: count4,
2176
2215
  words: count4,
2177
2216
  talk_ms: count4,
2178
2217
  /** `week_start` is the Monday, as a date in `time_zone`. */
2179
- weeks: array(strictObject({ week_start: text5, meetings: count4, talk_ms: count4 })),
2218
+ weeks: array(strictObject({ week_start: text4, meetings: count4, talk_ms: count4 })),
2180
2219
  top_speakers: array(meetingSpeaker)
2181
2220
  });
2182
2221
  var meetingStatsItem = /* @__PURE__ */ __name((found, top = 10) => ({
@@ -2188,18 +2227,52 @@ var meetingStatsItem = /* @__PURE__ */ __name((found, top = 10) => ({
2188
2227
  weeks: found.weeks.map((week) => ({ week_start: week.weekStart, meetings: week.meetings, talk_ms: week.talkMs })),
2189
2228
  top_speakers: found.speakers.slice(0, top).map(meetingSpeakerItem)
2190
2229
  }), "meetingStatsItem");
2230
+ var meetingCountsRow = strictObject({
2231
+ key: text4,
2232
+ name: nullable(text4),
2233
+ meetings: count4,
2234
+ minutes: count4,
2235
+ mean_minutes: nullable(number()),
2236
+ transcripts: count4
2237
+ });
2238
+ var meetingCounts = strictObject({
2239
+ by: picklist(["day", "week", "series"]),
2240
+ meetings: count4,
2241
+ minutes: count4,
2242
+ mean_minutes: nullable(number()),
2243
+ transcripts: count4,
2244
+ rows: array(meetingCountsRow),
2245
+ has_more: boolean()
2246
+ });
2247
+ var countsRowItem = /* @__PURE__ */ __name((row) => ({
2248
+ key: row.key,
2249
+ name: row.name,
2250
+ meetings: row.meetings,
2251
+ minutes: row.minutes,
2252
+ mean_minutes: row.meanMinutes,
2253
+ transcripts: row.transcripts
2254
+ }), "countsRowItem");
2255
+ var meetingCountsItem = /* @__PURE__ */ __name((found) => ({
2256
+ by: found.by,
2257
+ meetings: found.meetings,
2258
+ minutes: found.minutes,
2259
+ mean_minutes: found.meanMinutes,
2260
+ transcripts: found.transcripts,
2261
+ rows: found.rows.map(countsRowItem),
2262
+ has_more: found.hasMore
2263
+ }), "meetingCountsItem");
2191
2264
  var truncated = /* @__PURE__ */ __name((...why) => nullable(picklist(why)), "truncated");
2192
2265
  var meetingParticipants = strictObject({
2193
2266
  schema_version: literal(1),
2194
2267
  kind: literal("meeting_participants"),
2195
2268
  account_id: id3,
2196
- query: text5,
2269
+ query: text4,
2197
2270
  items: array(strictObject({
2198
2271
  participant_id: id3,
2199
2272
  meeting_id: id3,
2200
2273
  identity_id: id3,
2201
- display_name: nullable(text5),
2202
- email: nullable(text5)
2274
+ display_name: nullable(text4),
2275
+ email: nullable(text4)
2203
2276
  })),
2204
2277
  /** Several identities on one page are observations, never speaker attribution or person links. */
2205
2278
  ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id3) }),
@@ -2213,7 +2286,7 @@ var meetingParticipants = strictObject({
2213
2286
  mode: literal("cursor"),
2214
2287
  limit: count4,
2215
2288
  has_more: boolean(),
2216
- next_cursor: optional(text5)
2289
+ next_cursor: optional(text4)
2217
2290
  })
2218
2291
  });
2219
2292
  var revision = picklist(["current", "superseded"]);
@@ -2222,8 +2295,8 @@ var meetingPassage = strictObject({
2222
2295
  kind: literal("meeting_context"),
2223
2296
  source: reference,
2224
2297
  target_ref: reference,
2225
- target_fingerprint: text5,
2226
- fingerprint: text5,
2298
+ target_fingerprint: text4,
2299
+ fingerprint: text4,
2227
2300
  revision,
2228
2301
  limits: strictObject({ before: count4, after: count4, bytes: count4, max_read_bytes: count4 }),
2229
2302
  content_bytes: count4,
@@ -2242,30 +2315,30 @@ var meetingPassage = strictObject({
2242
2315
  }),
2243
2316
  items: array(strictObject({
2244
2317
  ref: reference,
2245
- fingerprint: text5,
2318
+ fingerprint: text4,
2246
2319
  transcript_id: id3,
2247
- content_hash: nullable(text5),
2320
+ content_hash: nullable(text4),
2248
2321
  position: count4,
2249
2322
  start_ms: count4,
2250
2323
  end_ms: count4,
2251
2324
  speaker_participant_id: nullable(id3),
2252
- speaker_name: nullable(text5),
2253
- text: text5,
2325
+ speaker_name: nullable(text4),
2326
+ text: text4,
2254
2327
  revision
2255
2328
  }))
2256
2329
  });
2257
2330
  var event = strictObject({
2258
2331
  id: pipe(string(), minLength(1)),
2259
- event_series_id: nullable(text5),
2260
- title: nullable(text5),
2261
- description: nullable(text5),
2262
- location: nullable(text5),
2332
+ event_series_id: nullable(text4),
2333
+ title: nullable(text4),
2334
+ description: nullable(text4),
2335
+ location: nullable(text4),
2263
2336
  starts_at: nullable(isoTime),
2264
2337
  ends_at: nullable(isoTime),
2265
- timezone: nullable(text5),
2338
+ timezone: nullable(text4),
2266
2339
  /** `auto`: made from a meeting; `owner`: made by hand; `calendar`: from a calendar's entries. */
2267
2340
  origin: picklist(["auto", "owner", "calendar"]),
2268
- status: nullable(text5),
2341
+ status: nullable(text4),
2269
2342
  all_day: boolean(),
2270
2343
  /** When its calendar deleted it: shown as "deleted in Google", kept as history. */
2271
2344
  source_deleted_at: nullable(isoTime),
@@ -2273,7 +2346,7 @@ var event = strictObject({
2273
2346
  created_at: isoTime,
2274
2347
  updated_at: isoTime,
2275
2348
  /** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
2276
- untrusted: optional(array(text5)),
2349
+ untrusted: optional(array(text4)),
2277
2350
  /** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
2278
2351
  change: optional(picklist(["new", "moved", "cancelled"])),
2279
2352
  changed_at: optional(nullable(isoTime)),
@@ -2285,7 +2358,7 @@ var event = strictObject({
2285
2358
  */
2286
2359
  overlapping: optional(boolean()),
2287
2360
  /** With `overlapping:true`: the events it overlaps, as `event:<id>`. */
2288
- overlaps: optional(array(text5))
2361
+ overlaps: optional(array(text4))
2289
2362
  });
2290
2363
  var eventItem = /* @__PURE__ */ __name((one) => ({
2291
2364
  id: String(one.id),
@@ -2305,10 +2378,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2305
2378
  updated_at: new Date(one.updatedAt).toISOString()
2306
2379
  }), "eventItem");
2307
2380
 
2308
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
2381
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
2309
2382
  import { createHash as createHash3 } from "node:crypto";
2310
2383
 
2311
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/recording-sync.js
2384
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/recording-sync.js
2312
2385
  var RecordingSyncError = class extends CliError {
2313
2386
  static {
2314
2387
  __name(this, "RecordingSyncError");
@@ -2321,7 +2394,7 @@ var RecordingSyncError = class extends CliError {
2321
2394
  var fail = /* @__PURE__ */ __name((message, code = "validation_error") => {
2322
2395
  throw new RecordingSyncError(code, message);
2323
2396
  }, "fail");
2324
- var text6 = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 4096, "text");
2397
+ var text5 = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 4096, "text");
2325
2398
  var integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && Number(value) >= low && Number(value) <= high, "integer");
2326
2399
  var date = /* @__PURE__ */ __name((value) => {
2327
2400
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}$/.test(value))
@@ -2366,7 +2439,7 @@ var object = /* @__PURE__ */ __name((value) => {
2366
2439
  }, "object");
2367
2440
  var scope = /* @__PURE__ */ __name((value) => {
2368
2441
  const row = object(value);
2369
- if (!text6(row.provider) || !text6(row.account))
2442
+ if (!text5(row.provider) || !text5(row.account))
2370
2443
  return fail("archive provider and account are required");
2371
2444
  try {
2372
2445
  return snapshotMeetingScope({ provider: row.provider, account: row.account });
@@ -2382,10 +2455,10 @@ var window = /* @__PURE__ */ __name((value) => {
2382
2455
  return fail("invalid archive checkpoint window", "invalid_response");
2383
2456
  return { from, to };
2384
2457
  }, "window");
2385
- var nullableText = /* @__PURE__ */ __name((value) => value === null || text6(value), "nullableText");
2458
+ var nullableText = /* @__PURE__ */ __name((value) => value === null || text5(value), "nullableText");
2386
2459
  var asset = /* @__PURE__ */ __name((value) => {
2387
2460
  const row = object(value);
2388
- if (!nullableText(row.id) || !text6(row.type) || !nullableText(row.format) || !text6(row.status) || typeof row.available !== "boolean" || !(row.size === null || integer3(row.size, 0, Number.MAX_SAFE_INTEGER)) || !nullableText(row.startedAt) || !nullableText(row.endedAt))
2461
+ if (!nullableText(row.id) || !text5(row.type) || !nullableText(row.format) || !text5(row.status) || typeof row.available !== "boolean" || !(row.size === null || integer3(row.size, 0, Number.MAX_SAFE_INTEGER)) || !nullableText(row.startedAt) || !nullableText(row.endedAt))
2389
2462
  return fail("invalid recording asset metadata", "invalid_response");
2390
2463
  for (const value2 of [row.startedAt, row.endedAt])
2391
2464
  if (value2 !== null && !Number.isFinite(Date.parse(value2)))
@@ -2420,14 +2493,14 @@ function parseRecordingSyncCheckpoint(value, maxEntries = 1e4) {
2420
2493
  if (!integer3(maxEntries, 1, 1e4))
2421
2494
  return fail("archive entry limit must be between 1 and 10000");
2422
2495
  const row = object(value);
2423
- if (row.version !== 1 || !text6(row.configKey) || !integer3(row.revision, 1, Number.MAX_SAFE_INTEGER) || !integer3(row.updatedAt, 0, Number.MAX_SAFE_INTEGER) || !Array.isArray(row.windows) || row.windows.length > 1e3 || !Array.isArray(row.pendingWindows) || row.pendingWindows.length > 1e3 || !Array.isArray(row.entries) || row.entries.length > maxEntries)
2496
+ if (row.version !== 1 || !text5(row.configKey) || !integer3(row.revision, 1, Number.MAX_SAFE_INTEGER) || !integer3(row.updatedAt, 0, Number.MAX_SAFE_INTEGER) || !Array.isArray(row.windows) || row.windows.length > 1e3 || !Array.isArray(row.pendingWindows) || row.pendingWindows.length > 1e3 || !Array.isArray(row.entries) || row.entries.length > maxEntries)
2424
2497
  return fail("unsupported or oversized archive checkpoint", "invalid_response");
2425
2498
  const windows = row.windows.map(window);
2426
2499
  const pendingWindows = row.pendingWindows.map(window);
2427
2500
  let metadataBytes = 0;
2428
2501
  const entries = row.entries.map((value2) => {
2429
2502
  const entry = object(value2);
2430
- if (!text6(entry.externalId) || !Array.isArray(entry.acknowledged) || entry.acknowledged.length > 1e3 || entry.acknowledged.some((value3) => typeof value3 !== "string" || value3.length > 65536))
2503
+ if (!text5(entry.externalId) || !Array.isArray(entry.acknowledged) || entry.acknowledged.length > 1e3 || entry.acknowledged.some((value3) => typeof value3 !== "string" || value3.length > 65536))
2431
2504
  return fail("invalid archive checkpoint entry", "invalid_response");
2432
2505
  const metadata = assets(entry.assets);
2433
2506
  const acknowledged = entry.acknowledged;
@@ -2476,10 +2549,10 @@ var compactWindows = /* @__PURE__ */ __name((windows, from) => {
2476
2549
  }, "compactWindows");
2477
2550
  var pending = /* @__PURE__ */ __name((entry) => entry.assets.length === 0 || entry.assets.some((item) => !item.available || !entry.acknowledged.includes(recordingAssetFingerprint(item))), "pending");
2478
2551
  var acknowledgedAssets = /* @__PURE__ */ __name((occurrence, result) => {
2479
- if (result.externalId !== occurrence.externalId || !text6(result.manifestPath) || !Array.isArray(result.downloaded) || !Array.isArray(result.skipped) || !Array.isArray(result.unavailable) || result.downloaded.length + result.skipped.length > 1e3)
2552
+ if (result.externalId !== occurrence.externalId || !text5(result.manifestPath) || !Array.isArray(result.downloaded) || !Array.isArray(result.skipped) || !Array.isArray(result.unavailable) || result.downloaded.length + result.skipped.length > 1e3)
2480
2553
  return fail("archive returned an invalid occurrence acknowledgement", "invalid_response");
2481
2554
  const completed = [...result.downloaded, ...result.skipped];
2482
- return occurrence.assets.filter((item) => item.available && completed.some((file) => file.id === item.id && file.remoteSize === item.size && file.type === item.type && file.format === item.format && file.startedAt === item.startedAt && file.endedAt === item.endedAt && text6(file.path) && integer3(file.size, 0, Number.MAX_SAFE_INTEGER) && (item.size === null || file.size === item.size) && /^[a-f0-9]{64}$/.test(file.sha256))).map(recordingAssetFingerprint);
2555
+ return occurrence.assets.filter((item) => item.available && completed.some((file) => file.id === item.id && file.remoteSize === item.size && file.type === item.type && file.format === item.format && file.startedAt === item.startedAt && file.endedAt === item.endedAt && text5(file.path) && integer3(file.size, 0, Number.MAX_SAFE_INTEGER) && (item.size === null || file.size === item.size) && /^[a-f0-9]{64}$/.test(file.sha256))).map(recordingAssetFingerprint);
2483
2556
  }, "acknowledgedAssets");
2484
2557
  async function* syncRecordingArchive(catalog, input) {
2485
2558
  const options = {
@@ -2496,7 +2569,7 @@ async function* syncRecordingArchive(catalog, input) {
2496
2569
  if (options.recheckFrom !== void 0)
2497
2570
  date(options.recheckFrom);
2498
2571
  const checkpoint = options.checkpoint;
2499
- if (checkpoint && (!text6(checkpoint.jobId) || !text6(checkpoint.configKey)))
2572
+ if (checkpoint && (!text5(checkpoint.jobId) || !text5(checkpoint.configKey)))
2500
2573
  return fail("archive checkpoint job and configuration key are required");
2501
2574
  const clock2 = /* @__PURE__ */ __name(() => {
2502
2575
  const now = options.now();
@@ -2556,11 +2629,11 @@ async function* syncRecordingArchive(catalog, input) {
2556
2629
  ...options.signal ? { signal: options.signal } : {}
2557
2630
  });
2558
2631
  cancelled(options.signal);
2559
- if (!Array.isArray(page.items) || page.items.length > 1e3 || !(page.nextCursor === null || text6(page.nextCursor)))
2632
+ if (!Array.isArray(page.items) || page.items.length > 1e3 || !(page.nextCursor === null || text5(page.nextCursor)))
2560
2633
  return fail("provider returned an invalid recording page", "invalid_response");
2561
2634
  for (const raw of page.items) {
2562
2635
  cancelled(options.signal);
2563
- if (!text6(raw.id) || !text6(raw.externalId) || !nullableText(raw.title) || !nullableText(raw.startedAt))
2636
+ if (!text5(raw.id) || !text5(raw.externalId) || !nullableText(raw.title) || !nullableText(raw.startedAt))
2564
2637
  return fail("provider returned an invalid recording occurrence", "invalid_response");
2565
2638
  const occurrence = {
2566
2639
  id: raw.id,
@@ -2629,11 +2702,11 @@ async function* syncRecordingArchive(catalog, input) {
2629
2702
  }
2630
2703
  __name(syncRecordingArchive, "syncRecordingArchive");
2631
2704
 
2632
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
2705
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
2633
2706
  var fail2 = /* @__PURE__ */ __name((message) => {
2634
2707
  throw new CliError("validation_error", message);
2635
2708
  }, "fail");
2636
- var text7 = /* @__PURE__ */ __name((value, maximum) => typeof value === "string" && !!value.trim() && value.length <= maximum && !/[\0\r\n]/.test(value), "text");
2709
+ var text6 = /* @__PURE__ */ __name((value, maximum) => typeof value === "string" && !!value.trim() && value.length <= maximum && !/[\0\r\n]/.test(value), "text");
2637
2710
  var clock = /* @__PURE__ */ __name((now) => {
2638
2711
  if (!Number.isSafeInteger(now) || now < 0 || now > 253402300799999)
2639
2712
  fail2("invalid archive schedule clock");
@@ -2645,11 +2718,11 @@ var identity = /* @__PURE__ */ __name((schedule) => createHash3("sha256").update
2645
2718
  var planRecordingArchiveSchedule = /* @__PURE__ */ __name((input, options) => {
2646
2719
  const now = clock(options.now);
2647
2720
  const scope3 = snapshotMeetingScope(input.scope);
2648
- if (!text7(input.name, 200) || !text7(input.destination, 4096))
2721
+ if (!text6(input.name, 200) || !text6(input.destination, 4096))
2649
2722
  fail2("archive schedule name and destination are required");
2650
2723
  if (typeof input.dailyAt !== "string" || !/^(?:[01]\d|2[0-3]):[0-5]\d$/.test(input.dailyAt))
2651
2724
  fail2("archive schedule time must be HH:mm");
2652
- if (!text7(input.timeZone, 200))
2725
+ if (!text6(input.timeZone, 200))
2653
2726
  fail2("archive schedule requires a time zone");
2654
2727
  try {
2655
2728
  new Intl.DateTimeFormat("en", { timeZone: input.timeZone });
@@ -2736,7 +2809,7 @@ var installRecordingArchiveSchedule = /* @__PURE__ */ __name(async (scheduler, v
2736
2809
  return { applied: true, backend, schedule };
2737
2810
  }, "installRecordingArchiveSchedule");
2738
2811
 
2739
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2812
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2740
2813
  var RecordingTransferError = class extends CliError {
2741
2814
  static {
2742
2815
  __name(this, "RecordingTransferError");
@@ -2901,7 +2974,7 @@ var transferRecording = /* @__PURE__ */ __name(async (source, storage, options)
2901
2974
  }
2902
2975
  }, "transferRecording");
2903
2976
 
2904
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2977
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2905
2978
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2906
2979
  if (!original || typeof original !== "object" || Array.isArray(original))
2907
2980
  throw new CliError("validation_error", "related history request is required");
@@ -2931,24 +3004,24 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2931
3004
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2932
3005
  }, "validateMeetingRelatedHistory");
2933
3006
 
2934
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2935
- var text8 = string();
2936
- var identifier = pipe(text8, minLength(1));
2937
- var nullableText2 = nullable(text8);
3007
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
3008
+ var text7 = string();
3009
+ var identifier = pipe(text7, minLength(1));
3010
+ var nullableText2 = nullable(text7);
2938
3011
  var count5 = pipe(number(), integer(), minValue(0));
2939
3012
  var flag = boolean();
2940
- var scope2 = strictObject({ provider: text8, account: text8 });
3013
+ var scope2 = strictObject({ provider: text7, account: text7 });
2941
3014
  var run = strictObject({
2942
3015
  meetings: count5,
2943
3016
  participants: count5,
2944
3017
  transcript_rows: count5,
2945
3018
  summaries: count5,
2946
- warnings: array(strictObject({ external_id: text8, message: text8 })),
2947
- timezone: optional(text8)
3019
+ warnings: array(strictObject({ external_id: text7, message: text7 })),
3020
+ timezone: optional(text7)
2948
3021
  });
2949
3022
  var exported = union([
2950
- strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text8, content: text8 }),
2951
- strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text8 })
3023
+ strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text7, content: text7 }),
3024
+ strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text7 })
2952
3025
  ]);
2953
3026
  var eventChange2 = strictObject({
2954
3027
  action: literal("event.link"),
@@ -2958,7 +3031,7 @@ var eventChange2 = strictObject({
2958
3031
  var personChange = strictObject({
2959
3032
  action: literal("person.link"),
2960
3033
  participant_id: identifier,
2961
- person_uid: text8,
3034
+ person_uid: text7,
2962
3035
  expected_person_uid: optional(nullableText2),
2963
3036
  target_account_ids: optional(array(identifier))
2964
3037
  });
@@ -2971,7 +3044,7 @@ var eventResult = strictObject({
2971
3044
  var personResult = strictObject({
2972
3045
  meeting_id: identifier,
2973
3046
  participant_id: identifier,
2974
- person_uid: text8,
3047
+ person_uid: text7,
2975
3048
  previous_person_uid: nullableText2,
2976
3049
  changed: flag
2977
3050
  });
@@ -2984,23 +3057,23 @@ var meetingChange = strictObject({
2984
3057
  result: optional(union([eventResult, personResult]))
2985
3058
  });
2986
3059
  var recognition = strictObject({
2987
- engine: text8,
2988
- model: text8,
2989
- version: optional(text8),
3060
+ engine: text7,
3061
+ model: text7,
3062
+ version: optional(text7),
2990
3063
  timing: optional(picklist(["fixed-windows", "recognition-segments"]))
2991
3064
  });
2992
3065
  var transcription = union([
2993
3066
  strictObject({
2994
3067
  applied: literal(false),
2995
3068
  account_id: identifier,
2996
- external_id: text8,
3069
+ external_id: text7,
2997
3070
  segments: count5,
2998
3071
  media: strictObject({
2999
- id: text8,
3000
- content_hash: text8,
3072
+ id: text7,
3073
+ content_hash: text7,
3001
3074
  size: count5,
3002
3075
  duration_ms: count5,
3003
- format: text8,
3076
+ format: text7,
3004
3077
  sample_rate: count5,
3005
3078
  channels: count5,
3006
3079
  recognition
@@ -3009,21 +3082,21 @@ var transcription = union([
3009
3082
  strictObject({
3010
3083
  applied: literal(true),
3011
3084
  account_id: identifier,
3012
- external_id: text8,
3085
+ external_id: text7,
3013
3086
  meeting_id: identifier,
3014
3087
  created: flag,
3015
3088
  inserted_transcripts: count5,
3016
3089
  replayed_transcripts: count5,
3017
3090
  superseded_transcripts: count5,
3018
3091
  segments: count5,
3019
- media_sha256: text8,
3020
- engine: text8,
3021
- model: text8,
3092
+ media_sha256: text7,
3093
+ engine: text7,
3094
+ model: text7,
3022
3095
  model_version: nullableText2,
3023
3096
  timing: picklist(["fixed-windows", "recognition-segments"])
3024
3097
  })
3025
3098
  ]);
3026
- var embeddingModel = strictObject({ key: text8, dims: count5, kind: picklist(["local", "remote"]), model: text8 });
3099
+ var embeddingModel = strictObject({ key: text7, dims: count5, kind: picklist(["local", "remote"]), model: text7 });
3027
3100
  var embedding = union([
3028
3101
  strictObject({
3029
3102
  account_id: identifier,
@@ -3039,7 +3112,7 @@ var embedding = union([
3039
3112
  saved: count5,
3040
3113
  skipped: count5,
3041
3114
  has_more: flag,
3042
- next_hash: optional(text8),
3115
+ next_hash: optional(text7),
3043
3116
  applied: literal(true),
3044
3117
  rebuild: strictObject({
3045
3118
  transcripts: count5,
@@ -3064,15 +3137,15 @@ var MEETING_RESULT_ENTITIES = {
3064
3137
  meeting_repair: repair
3065
3138
  };
3066
3139
 
3067
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/review.js
3140
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/review.js
3068
3141
  var REVIEW_LIMIT = { default: 50, most: 200 };
3069
3142
 
3070
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3143
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3071
3144
  var SAVE_INSTRUCTION = "If this shows something worth keeping \u2014 a decision, a promise, a preference \u2014 and memo's server is connected, propose it with facts_add or memories_add, citing the msg: locator or meeting: reference. Otherwise skip this.";
3072
3145
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
3073
3146
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
3074
3147
 
3075
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3148
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3076
3149
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3077
3150
  input.signal?.throwIfAborted();
3078
3151
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -3093,10 +3166,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3093
3166
  return { ...input, limit, maxReadBytes };
3094
3167
  }, "validateMeetingSeriesHistory");
3095
3168
 
3096
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3169
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3097
3170
  import { createHash as createHash4 } from "node:crypto";
3098
3171
 
3099
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3172
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3100
3173
  var invalid4 = /* @__PURE__ */ __name((field) => {
3101
3174
  throw new CliError("invalid_response", `meeting occurrence ${field} is invalid`);
3102
3175
  }, "invalid");
@@ -3165,18 +3238,18 @@ var readOccurrenceSchedule = /* @__PURE__ */ __name((input, meetingId, limit, ma
3165
3238
  return result;
3166
3239
  }, "readOccurrenceSchedule");
3167
3240
 
3168
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3241
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3169
3242
  var inventoryHash = /* @__PURE__ */ __name((value) => createHash4("sha256").update(JSON.stringify(value)).digest("hex"), "inventoryHash");
3170
3243
  var inventorySize = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "inventorySize");
3171
3244
  function invalid5(field, response = false) {
3172
3245
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
3173
3246
  }
3174
3247
  __name(invalid5, "invalid");
3175
- var object2 = /* @__PURE__ */ __name((value, fields3, field, response = false) => {
3248
+ var object2 = /* @__PURE__ */ __name((value, fields2, field, response = false) => {
3176
3249
  if (!value || typeof value !== "object" || Array.isArray(value))
3177
3250
  invalid5(field, response);
3178
3251
  for (const key of Object.keys(value))
3179
- if (!fields3.includes(key))
3252
+ if (!fields2.includes(key))
3180
3253
  invalid5(`${field}.${key}`, response);
3181
3254
  }, "object");
3182
3255
  var cursorDetails = /* @__PURE__ */ __name((value) => {
@@ -3253,7 +3326,7 @@ var inventoryPage = /* @__PURE__ */ __name((scope3, request, page) => {
3253
3326
  return { items, selection: page.coverage.selection, partial: page.coverage.partial, nextCursor: page.nextCursor };
3254
3327
  }, "inventoryPage");
3255
3328
 
3256
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/series-inventory.js
3329
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/series-inventory.js
3257
3330
  var cancelled3 = /* @__PURE__ */ __name((signal) => {
3258
3331
  if (signal?.aborted)
3259
3332
  throw new CliError("cancelled", "meeting inventory reading was cancelled");
@@ -3309,7 +3382,8 @@ var createMeetingSeriesInventoryReader = /* @__PURE__ */ __name((scope3, port) =
3309
3382
  };
3310
3383
  }, "createMeetingSeriesInventoryReader");
3311
3384
 
3312
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3385
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3386
+ var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
3313
3387
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
3314
3388
  const zone = timeZone ?? "UTC";
3315
3389
  try {
@@ -3325,17 +3399,72 @@ var weekStart = /* @__PURE__ */ __name((at, format) => {
3325
3399
  const day2 = Date.UTC(Number(parts.year), Number(parts.month) - 1, Number(parts.day));
3326
3400
  return new Date(day2 - DAYS.indexOf(parts.weekday ?? "Mon") * 864e5).toISOString().slice(0, 10);
3327
3401
  }, "weekStart");
3402
+ var dayKey = /* @__PURE__ */ __name((at, format) => {
3403
+ const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
3404
+ return `${parts.year}-${parts.month}-${parts.day}`;
3405
+ }, "dayKey");
3406
+ var zoneFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", {
3407
+ timeZone: zone,
3408
+ year: "numeric",
3409
+ month: "2-digit",
3410
+ day: "2-digit",
3411
+ weekday: "short"
3412
+ }), "zoneFormat");
3413
+ var NO_SERIES = "no-series";
3414
+ var MOST_COUNT_ROWS = 100;
3415
+ var minutesOf = /* @__PURE__ */ __name((ms) => Math.round(ms / 6e4), "minutesOf");
3416
+ var meanOf = /* @__PURE__ */ __name((ms, timed) => timed === 0 ? null : Math.round(ms / timed / 6e3) / 10, "meanOf");
3417
+ var aggregateMeetingCounts = /* @__PURE__ */ __name((meetings, by, timeZone, limit = MOST_COUNT_ROWS) => {
3418
+ if (!MEETING_COUNTS_GROUPINGS.includes(by))
3419
+ throw new CliError("validation_error", `--by takes ${MEETING_COUNTS_GROUPINGS.join(", ")}`);
3420
+ if (!Number.isSafeInteger(limit) || limit < 1)
3421
+ throw new CliError("validation_error", "--limit is a positive number");
3422
+ const zone = zoneOf(timeZone);
3423
+ const format = zoneFormat(zone);
3424
+ const sum = /* @__PURE__ */ __name(() => ({ meetings: 0, ms: 0, timed: 0, transcripts: 0 }), "sum");
3425
+ const add = /* @__PURE__ */ __name((into, meeting2) => {
3426
+ into.meetings += 1;
3427
+ if (meeting2.durationMs !== null) {
3428
+ into.ms += Math.max(0, meeting2.durationMs);
3429
+ into.timed += 1;
3430
+ }
3431
+ if (meeting2.transcribed)
3432
+ into.transcripts += 1;
3433
+ }, "add");
3434
+ const total = { ...sum(), name: null };
3435
+ const groups = /* @__PURE__ */ new Map();
3436
+ for (const meeting2 of meetings) {
3437
+ add(total, meeting2);
3438
+ 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);
3439
+ if (key === null)
3440
+ continue;
3441
+ const group = groups.get(key) ?? { ...sum(), name: by === "series" ? meeting2.seriesTitle : null };
3442
+ add(group, meeting2);
3443
+ groups.set(key, group);
3444
+ }
3445
+ 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));
3446
+ const kept = ordered.slice(0, limit);
3447
+ if (by !== "series")
3448
+ kept.reverse();
3449
+ const counted = /* @__PURE__ */ __name(({ meetings: count6, ms, timed, transcripts }) => ({
3450
+ meetings: count6,
3451
+ minutes: minutesOf(ms),
3452
+ meanMinutes: meanOf(ms, timed),
3453
+ transcripts
3454
+ }), "counted");
3455
+ return {
3456
+ by,
3457
+ timeZone: zone,
3458
+ ...counted(total),
3459
+ rows: kept.map(([key, group]) => ({ key, name: group.name, ...counted(group) })),
3460
+ hasMore: ordered.length > limit
3461
+ };
3462
+ }, "aggregateMeetingCounts");
3328
3463
  var UNKNOWN_SPEAKER = "unknown";
3329
3464
  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");
3330
3465
  var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3331
3466
  const zone = zoneOf(timeZone);
3332
- const format = new Intl.DateTimeFormat("en-US", {
3333
- timeZone: zone,
3334
- year: "numeric",
3335
- month: "2-digit",
3336
- day: "2-digit",
3337
- weekday: "short"
3338
- });
3467
+ const format = zoneFormat(zone);
3339
3468
  const speakers = /* @__PURE__ */ new Map();
3340
3469
  const weeks = /* @__PURE__ */ new Map();
3341
3470
  const meetings = /* @__PURE__ */ new Set();
@@ -3388,7 +3517,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3388
3517
  };
3389
3518
  }, "aggregateMeetingStats");
3390
3519
 
3391
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/transcription.js
3520
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/transcription.js
3392
3521
  var bounded = /* @__PURE__ */ __name((value, max, name) => {
3393
3522
  if (!Number.isSafeInteger(value) || value < 1 || value > max)
3394
3523
  throw new CliError("validation_error", `${name} must be an integer from 1 to ${max}`);
@@ -3470,19 +3599,19 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
3470
3599
  throw new CliError("invalid_response", "invalid or excessive recognition segments");
3471
3600
  start = segment.startMs;
3472
3601
  ends.set(speaker, Math.max(ends.get(speaker) ?? 0, segment.endMs));
3473
- const text9 = segment.text.trim();
3474
- if (text9.length > maxTextBytes - textBytes)
3602
+ const text8 = segment.text.trim();
3603
+ if (text8.length > maxTextBytes - textBytes)
3475
3604
  throw new CliError("validation_error", "transcript exceeds its byte limit");
3476
- textBytes += new TextEncoder().encode(text9).byteLength;
3605
+ textBytes += new TextEncoder().encode(text8).byteLength;
3477
3606
  if (textBytes > maxTextBytes)
3478
3607
  throw new CliError("validation_error", "transcript exceeds its byte limit");
3479
- if (text9)
3608
+ if (text8)
3480
3609
  rows.push({
3481
3610
  position: rows.length,
3482
3611
  startMs: segment.startMs,
3483
3612
  endMs: segment.endMs,
3484
3613
  speakerName: speaker ?? null,
3485
- text: text9,
3614
+ text: text8,
3486
3615
  normalizedText: null,
3487
3616
  metadata: null
3488
3617
  });
@@ -3542,7 +3671,7 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
3542
3671
  };
3543
3672
  }, "transcribeMeeting");
3544
3673
 
3545
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
3674
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
3546
3675
  var cancelled5 = /* @__PURE__ */ __name((signal) => {
3547
3676
  if (!signal?.aborted)
3548
3677
  return;
@@ -3612,7 +3741,7 @@ var createUpcomingMeetingReader = /* @__PURE__ */ __name((scope3, port) => {
3612
3741
  };
3613
3742
  }, "createUpcomingMeetingReader");
3614
3743
 
3615
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/watch.js
3744
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/watch.js
3616
3745
  var sleep = /* @__PURE__ */ __name((milliseconds, signal) => new Promise((resolve) => {
3617
3746
  const finish = /* @__PURE__ */ __name(() => {
3618
3747
  clearTimeout(timer);
@@ -3700,7 +3829,14 @@ export {
3700
3829
  PAYMENT_STATES,
3701
3830
  validatePayment,
3702
3831
  paymentTitle,
3832
+ meetingTimestamp,
3833
+ findingText,
3703
3834
  findingHash,
3835
+ findingFields,
3836
+ validEvidence,
3837
+ findingId,
3838
+ validateFinding,
3839
+ validateBatch,
3704
3840
  validateFindings,
3705
3841
  findingFingerprint,
3706
3842
  MEETING_FINDINGS_KIND,
@@ -3741,6 +3877,8 @@ export {
3741
3877
  meetingSpeakerItem,
3742
3878
  meetingStats,
3743
3879
  meetingStatsItem,
3880
+ meetingCounts,
3881
+ meetingCountsItem,
3744
3882
  meetingParticipants,
3745
3883
  meetingPassage,
3746
3884
  event,
@@ -3765,6 +3903,9 @@ export {
3765
3903
  validateMeetingSeriesHistory,
3766
3904
  validateMeetingSeriesInventoryCursor,
3767
3905
  createMeetingSeriesInventoryReader,
3906
+ MEETING_COUNTS_GROUPINGS,
3907
+ NO_SERIES,
3908
+ aggregateMeetingCounts,
3768
3909
  aggregateMeetingStats,
3769
3910
  transcribeMeeting,
3770
3911
  createUpcomingMeetingReader,