@wirecat/zoom-cli 0.66.0 → 0.68.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 (207) hide show
  1. package/README.md +2 -1
  2. package/constants.json +7 -0
  3. package/dist/answer-entities.d.ts +18 -0
  4. package/dist/answer-entities.d.ts.map +1 -1
  5. package/dist/answer-entities.js +12 -0
  6. package/dist/answer-entities.js.map +1 -1
  7. package/dist/answer-policy.d.ts.map +1 -1
  8. package/dist/answer-policy.js +2 -1
  9. package/dist/answer-policy.js.map +1 -1
  10. package/dist/answers.d.ts +4 -4
  11. package/dist/bin/main.js +3 -2
  12. package/dist/bin/main.js.map +1 -1
  13. package/dist/bin/zm.js +2 -2
  14. package/dist/bundle/{all-profiles-D5CFH2OK.js → all-profiles-R66UM3HM.js} +12 -11
  15. package/dist/bundle/answer-policy-UCGUO53A.js +104 -0
  16. package/dist/bundle/{anthropic-K2E2JS4S.js → anthropic-4ZI2BPLG.js} +7 -7
  17. package/dist/bundle/{app-server-TVXDG6HZ.js → app-server-64O5IQI5.js} +61 -57
  18. package/dist/bundle/{bun-O4WHGL2F.js → bun-HUHQD76Z.js} +2 -2
  19. package/dist/bundle/{bun-sqlite-HGBEHQI3.js → bun-sqlite-VOVHPTIF.js} +6 -6
  20. package/dist/bundle/{chunk-N6JMJN5A.js → chunk-2OSBCYJT.js} +39 -26
  21. package/dist/bundle/{chunk-7JMBEPW2.js → chunk-2T6XHWDX.js} +2 -2
  22. package/dist/bundle/chunk-32FPA7P2.js +35 -0
  23. package/dist/bundle/{chunk-NO24PJNW.js → chunk-355PHJYX.js} +1 -1
  24. package/dist/bundle/{chunk-NMQUCHTX.js → chunk-3BRV2YU2.js} +3 -3
  25. package/dist/bundle/{chunk-GNGBG5BT.js → chunk-474WF55M.js} +95 -48
  26. package/dist/bundle/{chunk-O5FKJV3T.js → chunk-4TLPOY22.js} +12 -12
  27. package/dist/bundle/{chunk-CR4CXOLX.js → chunk-4YFJYSSK.js} +205 -59
  28. package/dist/bundle/chunk-5JAYUG3X.js +261 -0
  29. package/dist/bundle/{chunk-5HPALDUO.js → chunk-65T3PU75.js} +3 -2
  30. package/dist/bundle/{chunk-QAPU2JNO.js → chunk-6CJ7NHIP.js} +13 -13
  31. package/dist/bundle/{chunk-LN2S3RA3.js → chunk-6T3P226D.js} +4 -4
  32. package/dist/bundle/{chunk-P3XVLHIQ.js → chunk-6TJ62LZQ.js} +22 -14
  33. package/dist/bundle/{chunk-FWFFQV4D.js → chunk-6XO7RTJY.js} +129 -9
  34. package/dist/bundle/{chunk-K5CIN4JP.js → chunk-77I67HWF.js} +8 -8
  35. package/dist/bundle/{chunk-3B7L2UX4.js → chunk-77KFLU5F.js} +3 -3
  36. package/dist/bundle/{chunk-2YLNUZ3T.js → chunk-7AUP2WT3.js} +3 -3
  37. package/dist/bundle/{chunk-7PF56S6U.js → chunk-7DUYFITC.js} +25 -23
  38. package/dist/bundle/{chunk-ZKTXUDSR.js → chunk-7QNJICKZ.js} +30 -26
  39. package/dist/bundle/{chunk-XWDSEJWP.js → chunk-A63ZFOQJ.js} +18 -4
  40. package/dist/bundle/{chunk-A2SCXNA7.js → chunk-AJ7CMUGD.js} +1396 -326
  41. package/dist/bundle/{chunk-Z6U3MEGJ.js → chunk-AVEIQMHZ.js} +4 -2
  42. package/dist/bundle/chunk-AYEVBAGO.js +178 -0
  43. package/dist/bundle/{chunk-SU4WPBQE.js → chunk-B6JMVB6R.js} +22 -23
  44. package/dist/bundle/{chunk-YLEQN6PB.js → chunk-BL36NSV5.js} +3 -3
  45. package/dist/bundle/{chunk-RMKHYUHK.js → chunk-BOAMDYLY.js} +4 -4
  46. package/dist/bundle/chunk-BSM43OMN.js +31 -0
  47. package/dist/bundle/{chunk-67RNZGAG.js → chunk-DGNPJGD3.js} +16 -10
  48. package/dist/bundle/{chunk-Y3EIK4XW.js → chunk-DVA6MQWK.js} +1 -1
  49. package/dist/bundle/{chunk-AU4JHT3R.js → chunk-DWSUSWAX.js} +98 -13
  50. package/dist/bundle/{chunk-H5ZVZAOD.js → chunk-EH5QGQFR.js} +3 -3
  51. package/dist/bundle/chunk-EJDV5IIF.js +93 -0
  52. package/dist/bundle/{chunk-3WTKZ2ZS.js → chunk-EWIBLDQQ.js} +8 -8
  53. package/dist/bundle/{chunk-GHAPWKG2.js → chunk-EZRPSZJS.js} +3 -3
  54. package/dist/bundle/{chunk-QJHRYUMJ.js → chunk-FBLUKCIR.js} +1 -1
  55. package/dist/bundle/{chunk-S6S3KVJI.js → chunk-FEM2JQN2.js} +2 -1
  56. package/dist/bundle/{chunk-P2G4KGTR.js → chunk-FMQS7HCC.js} +12 -12
  57. package/dist/bundle/{chunk-ZNFPDTQM.js → chunk-FNQASORM.js} +2 -2
  58. package/dist/bundle/{chunk-GKXFL35E.js → chunk-GOXDBCDM.js} +728 -130
  59. package/dist/bundle/{chunk-U3ZUT557.js → chunk-HXOAPH47.js} +1 -1
  60. package/dist/bundle/{chunk-QV5ZGRK3.js → chunk-JO4YADNV.js} +7 -7
  61. package/dist/bundle/{chunk-5A26IBAR.js → chunk-JRCYFCPL.js} +30 -28
  62. package/dist/bundle/{chunk-ZTL7ANSG.js → chunk-K67V24AT.js} +5 -5
  63. package/dist/bundle/{chunk-BXSAROQP.js → chunk-KAPJQGHE.js} +2 -2
  64. package/dist/bundle/{chunk-TFDVFD4N.js → chunk-KNE6VFHZ.js} +97 -38
  65. package/dist/bundle/{chunk-AZ7ICKIA.js → chunk-KUB2U5NT.js} +6 -6
  66. package/dist/bundle/{chunk-GI6QVSCW.js → chunk-L4WVLRXM.js} +4 -4
  67. package/dist/bundle/{chunk-756RS4PH.js → chunk-LBOSTBAY.js} +2541 -1355
  68. package/dist/bundle/{chunk-62GOOZO3.js → chunk-LV7QRR5S.js} +6 -6
  69. package/dist/bundle/{chunk-J4EZL6HY.js → chunk-LYWUG43B.js} +33 -33
  70. package/dist/bundle/{chunk-N67BLTBV.js → chunk-NRRI37NJ.js} +28 -9
  71. package/dist/bundle/{chunk-N5JRRBEG.js → chunk-NUJMJQXV.js} +281 -10
  72. package/dist/bundle/{chunk-UYV2JGLQ.js → chunk-OE7EIP5L.js} +1 -1
  73. package/dist/bundle/{chunk-U4RVOSX3.js → chunk-P2TISY3R.js} +1 -1
  74. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-P3ASN72F.js} +1 -1
  75. package/dist/bundle/{chunk-UOIXBEFR.js → chunk-PIHBD3YS.js} +16 -6
  76. package/dist/bundle/{chunk-BLT3LR3U.js → chunk-PUTGTW6W.js} +4 -2
  77. package/dist/bundle/{chunk-TUEEXECZ.js → chunk-QXTREL2M.js} +3 -3
  78. package/dist/bundle/{chunk-2VPHQFO5.js → chunk-R7LFGEDE.js} +2 -2
  79. package/dist/bundle/{chunk-IDWHJ35K.js → chunk-RGJ7OWHU.js} +4 -4
  80. package/dist/bundle/{chunk-3Y2F65AY.js → chunk-RP3U3J53.js} +10 -89
  81. package/dist/bundle/{chunk-JX3V35A5.js → chunk-RRYUD2EF.js} +3 -3
  82. package/dist/bundle/{chunk-XFUID5NY.js → chunk-SRP6SFFD.js} +2 -2
  83. package/dist/bundle/{chunk-7SQJCKR6.js → chunk-SSPSNSC5.js} +1 -1
  84. package/dist/bundle/{chunk-Q47C3QZW.js → chunk-TDGZMC6K.js} +510 -318
  85. package/dist/bundle/{chunk-EXXM4RNI.js → chunk-TN3FH2GQ.js} +11 -11
  86. package/dist/bundle/chunk-TUNQ6NE2.js +64 -0
  87. package/dist/bundle/{chunk-CAW6IMFZ.js → chunk-TZUKDM72.js} +72 -20
  88. package/dist/bundle/{chunk-S4GDDO5S.js → chunk-UDJTRFRV.js} +1 -1
  89. package/dist/bundle/{chunk-5GD2XZ6X.js → chunk-US5C3WAY.js} +63 -53
  90. package/dist/bundle/{chunk-7KCTPGOF.js → chunk-UU5PLDRA.js} +2 -2
  91. package/dist/bundle/{chunk-6TIKPRVQ.js → chunk-VLD7Y4SY.js} +7 -7
  92. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-VW6BF6M7.js} +1 -1
  93. package/dist/bundle/chunk-W42BJ65M.js +37 -0
  94. package/dist/bundle/{chunk-KDKFGQWG.js → chunk-Y5LP5SHV.js} +15 -12
  95. package/dist/bundle/{chunk-TMVKZMDO.js → chunk-YJY3W2ZT.js} +232 -88
  96. package/dist/bundle/{chunk-6GSJLNP4.js → chunk-YOAEZSDG.js} +2 -2
  97. package/dist/bundle/{chunk-IKQ73INC.js → chunk-YQRNFG2E.js} +15849 -1674
  98. package/dist/bundle/{chunk-RO44LANT.js → chunk-YTF2WPV4.js} +1880 -778
  99. package/dist/bundle/{chunk-CZ4KLUJG.js → chunk-ZRD3NDOX.js} +2 -2
  100. package/dist/bundle/{cli-HWQIL2AC.js → cli-VQJ7ZRYR.js} +124 -69
  101. package/dist/bundle/command-contract-JPUWWYIV.js +41 -0
  102. package/dist/bundle/config-YGLLR77A.js +90 -0
  103. package/dist/bundle/{decode-XPAPPUGE.js → decode-L3ENO2XH.js} +6 -6
  104. package/dist/bundle/{dispatch-AKVJGP2S.js → dispatch-5MGDLOK4.js} +9 -9
  105. package/dist/bundle/{dist-LDIUQBM7.js → dist-WQLS7U23.js} +66 -17
  106. package/dist/bundle/{echarts-FMACRZQC.js → echarts-5LLJ6JXC.js} +2 -2
  107. package/dist/bundle/{embed-LK45GRQ7.js → embed-37MYTCU7.js} +7 -7
  108. package/dist/bundle/{embedder-QPBC5XBY.js → embedder-GNGHVJAO.js} +10 -10
  109. package/dist/bundle/{failure-7OULAOWQ.js → failure-CR64C4XA.js} +3 -3
  110. package/dist/bundle/{first-run-J5FG773Q.js → first-run-NR5JKYP3.js} +12 -12
  111. package/dist/bundle/first-screen-RCR7ATO2.js +39 -0
  112. package/dist/bundle/{folders-RHPUVMDI.js → folders-VU4IN35Y.js} +5 -5
  113. package/dist/bundle/{instructions-E5FXYCWF.js → instructions-P72XX4AK.js} +1 -1
  114. package/dist/bundle/{main-FJHE5YHU.js → main-QYFCYSTW.js} +23 -24
  115. package/dist/bundle/{mcp-MNI62HHE.js → mcp-M4QN2E7R.js} +2 -2
  116. package/dist/bundle/{meetings-MYIDGYGW.js → meetings-66UQINKI.js} +37 -7
  117. package/dist/bundle/{node-4SNKUPXT.js → node-ZB4RNICS.js} +2 -2
  118. package/dist/bundle/{node-sqlite-SYZUTVPC.js → node-sqlite-XPRKBDF3.js} +7 -7
  119. package/dist/bundle/{oauth-QPS5VTN6.js → oauth-WJRDUU5J.js} +8 -8
  120. package/dist/bundle/{open-OVCASRSJ.js → open-S2YSIEOW.js} +6 -6
  121. package/dist/bundle/openai-CRNZFNZD.js +25 -0
  122. package/dist/bundle/{output-file-K5JEL33Z.js → output-file-6COFGPUL.js} +6 -6
  123. package/dist/bundle/{process-HQZOTT6U.js → process-XNN4WG6N.js} +1 -1
  124. package/dist/bundle/{program-A546WC4F.js → program-BRPJKRCX.js} +181 -205
  125. package/dist/bundle/{prompt-CYBKP7S5.js → prompt-7RQOL25I.js} +6 -6
  126. package/dist/bundle/{recognize-3H3YDCFI.js → recognize-N5WADGQB.js} +5 -5
  127. package/dist/bundle/{remote-VAYVTJBS.js → remote-WHYV35IF.js} +8 -8
  128. package/dist/bundle/{rerank-XA4GA5PS.js → rerank-FBMZVWSH.js} +8 -8
  129. package/dist/bundle/{run-log-XAFHMI3F.js → run-log-TOCHREH2.js} +59 -57
  130. package/dist/bundle/{serve-KGHEDUHB.js → serve-4BABX4WS.js} +10 -10
  131. package/dist/bundle/{server-ZYTSMDTP.js → server-CDVI6LOB.js} +47 -46
  132. package/dist/bundle/server-XOFQKFVO.js +72 -0
  133. package/dist/bundle/{services-ZHMZC2OQ.js → services-PIY33I7R.js} +59 -32
  134. package/dist/bundle/{speech-7CJEFKM3.js → speech-LS5Q4FL2.js} +14 -14
  135. package/dist/bundle/{state-U6KSYVOH.js → state-YUX5R2R7.js} +7 -7
  136. package/dist/bundle/{store-DJE3LAEG.js → store-BD7HAXAA.js} +22 -17
  137. package/dist/bundle/{store-WS4CQGYU.js → store-ERMGBF2B.js} +59 -30
  138. package/dist/bundle/store-connection-JBR6CMTJ.js +83 -0
  139. package/dist/bundle/store-maintenance-command-I5DUSO2C.js +62 -0
  140. package/dist/bundle/{streaming-QMHH7L6N.js → streaming-O53PIORL.js} +7 -7
  141. package/dist/bundle/{tokens-PWQ56OXO.js → tokens-QKNEP2GJ.js} +7 -7
  142. package/dist/bundle/zm.js +9 -10
  143. package/dist/bundle/zoom-app-XJXZ4ZBX.js +41 -0
  144. package/dist/commands.d.ts.map +1 -1
  145. package/dist/commands.js +1 -0
  146. package/dist/commands.js.map +1 -1
  147. package/dist/config.d.ts +9 -0
  148. package/dist/config.d.ts.map +1 -1
  149. package/dist/config.js +48 -10
  150. package/dist/config.js.map +1 -1
  151. package/dist/identity.d.ts +1 -0
  152. package/dist/identity.d.ts.map +1 -1
  153. package/dist/identity.js +11 -0
  154. package/dist/identity.js.map +1 -1
  155. package/dist/meeting-source.d.ts.map +1 -1
  156. package/dist/meeting-source.js +2 -1
  157. package/dist/meeting-source.js.map +1 -1
  158. package/dist/meeting-stats-commands.d.ts +4 -2
  159. package/dist/meeting-stats-commands.d.ts.map +1 -1
  160. package/dist/meeting-stats-commands.js +27 -2
  161. package/dist/meeting-stats-commands.js.map +1 -1
  162. package/dist/program-bindings.d.ts.map +1 -1
  163. package/dist/program-bindings.js +10 -4
  164. package/dist/program-bindings.js.map +1 -1
  165. package/dist/recording-schedule-setup.d.ts.map +1 -1
  166. package/dist/recording-schedule-setup.js +5 -5
  167. package/dist/recording-schedule-setup.js.map +1 -1
  168. package/dist/run.d.ts.map +1 -1
  169. package/dist/run.js +2 -6
  170. package/dist/run.js.map +1 -1
  171. package/dist/setup-commands.d.ts +7 -1
  172. package/dist/setup-commands.d.ts.map +1 -1
  173. package/dist/setup-commands.js +45 -8
  174. package/dist/setup-commands.js.map +1 -1
  175. package/dist/store-commands.d.ts.map +1 -1
  176. package/dist/store-commands.js +6 -0
  177. package/dist/store-commands.js.map +1 -1
  178. package/dist/store-connection.d.ts +2 -1
  179. package/dist/store-connection.d.ts.map +1 -1
  180. package/dist/store-connection.js +4 -0
  181. package/dist/store-connection.js.map +1 -1
  182. package/dist/version.d.ts +1 -1
  183. package/dist/version.js +1 -1
  184. package/dist/watch-service.d.ts +1 -1
  185. package/dist/watch-service.d.ts.map +1 -1
  186. package/dist/watch-service.js +5 -3
  187. package/dist/watch-service.js.map +1 -1
  188. package/dist/zoom-app.d.ts +49 -0
  189. package/dist/zoom-app.d.ts.map +1 -0
  190. package/dist/zoom-app.js +83 -0
  191. package/dist/zoom-app.js.map +1 -0
  192. package/package.json +4 -3
  193. package/skills/zoom-cli/SKILL.md +4 -1
  194. package/dist/bundle/answer-policy-YAYMKRRD.js +0 -101
  195. package/dist/bundle/chunk-2T5BOLBS.js +0 -132
  196. package/dist/bundle/chunk-HKQWV3KT.js +0 -31
  197. package/dist/bundle/chunk-L7IK4FOA.js +0 -18
  198. package/dist/bundle/chunk-P2SYZNM4.js +0 -19
  199. package/dist/bundle/chunk-TN7K66PU.js +0 -9
  200. package/dist/bundle/command-contract-CQFJXWX6.js +0 -40
  201. package/dist/bundle/config-R2Y6ZVQS.js +0 -83
  202. package/dist/bundle/first-screen-MULOBUHN.js +0 -38
  203. package/dist/bundle/openai-VEVT7D7L.js +0 -25
  204. package/dist/bundle/server-IDNSJXF3.js +0 -71
  205. package/dist/bundle/store-connection-T5WGOOPH.js +0 -81
  206. package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +0 -61
  207. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-VOXIGICJ.js} +0 -0
@@ -8,7 +8,7 @@ import {
8
8
  queryFieldsOf,
9
9
  timezoneOf,
10
10
  validateQuery
11
- } from "./chunk-SU4WPBQE.js";
11
+ } from "./chunk-B6JMVB6R.js";
12
12
  import {
13
13
  STEPS,
14
14
  array,
@@ -32,19 +32,19 @@ import {
32
32
  strictObject,
33
33
  string,
34
34
  union
35
- } from "./chunk-N67BLTBV.js";
35
+ } from "./chunk-NRRI37NJ.js";
36
36
  import {
37
37
  CliError
38
- } from "./chunk-S6S3KVJI.js";
38
+ } from "./chunk-FEM2JQN2.js";
39
39
  import {
40
40
  singleLine,
41
41
  visibleControls
42
- } from "./chunk-UYV2JGLQ.js";
42
+ } from "./chunk-OE7EIP5L.js";
43
43
  import {
44
44
  __name
45
45
  } from "./chunk-ZVVMGPBJ.js";
46
46
 
47
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/reference.js
48
48
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
49
49
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
50
50
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -62,8 +62,8 @@ var formatMeetingReference = /* @__PURE__ */ __name((reference2) => {
62
62
  }
63
63
  return `meeting:${parts.join("/")}`;
64
64
  }, "formatMeetingReference");
65
- var parseMeetingReference = /* @__PURE__ */ __name((text9) => {
66
- const value = text9.trim();
65
+ var parseMeetingReference = /* @__PURE__ */ __name((text8) => {
66
+ const value = text8.trim();
67
67
  if (!value.startsWith("meeting:"))
68
68
  throw invalid();
69
69
  const parts = value.slice(8).split("/");
@@ -79,9 +79,9 @@ var parseMeetingReference = /* @__PURE__ */ __name((text9) => {
79
79
  };
80
80
  return reference2;
81
81
  }, "parseMeetingReference");
82
- var canonicalMeetingReference = /* @__PURE__ */ __name((text9) => formatMeetingReference(parseMeetingReference(text9)), "canonicalMeetingReference");
82
+ var canonicalMeetingReference = /* @__PURE__ */ __name((text8) => formatMeetingReference(parseMeetingReference(text8)), "canonicalMeetingReference");
83
83
 
84
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/item.js
85
85
  var text = string();
86
86
  var count = pipe(number(), integer(), minValue(0));
87
87
  var MEETING_ISSUES = ["time_without_zone"];
@@ -146,7 +146,7 @@ var MEETING_QUERY = {
146
146
  })
147
147
  };
148
148
 
149
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/answers.js
150
150
  var text2 = string();
151
151
  var count2 = pipe(number(), integer(), minValue(0));
152
152
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -260,7 +260,7 @@ var meetingSummaryItem = /* @__PURE__ */ __name((accountId, summary) => ({
260
260
  source: summary.source,
261
261
  title: summary.title,
262
262
  overview: summary.overview,
263
- 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 })),
264
264
  next_steps: summary.nextSteps,
265
265
  content: summary.content,
266
266
  url: summary.docUrl,
@@ -381,7 +381,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
381
381
  };
382
382
  }, "meetingHitsList");
383
383
 
384
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
385
385
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
386
386
  const parsed = urlOf(url);
387
387
  if (!parsed)
@@ -415,15 +415,15 @@ var urlOf = /* @__PURE__ */ __name((url) => {
415
415
  }
416
416
  }, "urlOf");
417
417
 
418
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
419
419
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
420
420
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
421
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");
422
- var withoutLinkQueries = /* @__PURE__ */ __name((text9) => text9.replace(/https?:\/\/[^\s<>"')\]]+/giu, (url) => joinUrlWithoutQuery(url) ?? ""), "withoutLinkQueries");
423
- var calendarText = /* @__PURE__ */ __name((text9, { dropSecretLines = true } = {}) => {
424
- 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)
425
425
  return null;
426
- 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));
427
427
  const joined = kept.join("\n").replace(/\n{3,}/gu, "\n\n").trim();
428
428
  return joined || null;
429
429
  }, "calendarText");
@@ -448,7 +448,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
448
448
  return kept;
449
449
  }, "entryMetadata");
450
450
 
451
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
452
452
  import { createHash } from "node:crypto";
453
453
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
454
454
  reference: cue2.reference,
@@ -462,7 +462,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
462
462
  text: cue2.text
463
463
  })).digest("hex"), "meetingCueFingerprint");
464
464
 
465
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
466
466
  var EVENT_QUERY = defineQuery({
467
467
  entity: "event",
468
468
  backend: "sql",
@@ -478,7 +478,7 @@ var EVENT_QUERY = defineQuery({
478
478
  ]
479
479
  });
480
480
 
481
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
482
482
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
483
483
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
484
484
  if (entry.recurrenceEndsAt !== null)
@@ -528,7 +528,7 @@ var eventChange = /* @__PURE__ */ __name((event2, entries, revisions, since) =>
528
528
  return null;
529
529
  }, "eventChange");
530
530
 
531
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/events.js
532
532
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
533
533
  const current = await store.meeting(details.meeting.id);
534
534
  if (!current)
@@ -571,8 +571,8 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
571
571
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
572
572
  }, "linkEvent");
573
573
 
574
- // 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
575
- var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text9) => text9.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
574
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
575
+ var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text8) => text8.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
576
576
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
577
577
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
578
578
  throw new CliError("validation_error", "participant query must contain 1\u2013500 characters without NUL");
@@ -595,7 +595,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
595
595
  };
596
596
  }, "validateMeetingParticipantSearch");
597
597
 
598
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/reads.js
599
599
  var MeetingError = class extends CliError {
600
600
  static {
601
601
  __name(this, "MeetingError");
@@ -699,11 +699,11 @@ var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}, page = 1) =
699
699
  } : {}
700
700
  };
701
701
  }, "meetingsList");
702
- var meetingsQuery = /* @__PURE__ */ __name((text9) => {
703
- if (text9 === void 0 || text9.trim() === "")
702
+ var meetingsQuery = /* @__PURE__ */ __name((text8) => {
703
+ if (text8 === void 0 || text8.trim() === "")
704
704
  return void 0;
705
705
  const context3 = { command: "meetings list", guide: MEETING_QUERY_GUIDE };
706
- const query = parseLucene(text9, { defaultField: "none", ...context3 });
706
+ const query = parseLucene(text8, { defaultField: "none", ...context3 });
707
707
  validateQuery(query, MEETING_QUERY, context3);
708
708
  return query;
709
709
  }, "meetingsQuery");
@@ -727,7 +727,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
727
727
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
728
728
  }, "meetingSummaryAnswer");
729
729
 
730
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/export.js
731
731
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
732
732
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
733
733
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -736,10 +736,10 @@ var timestamp = /* @__PURE__ */ __name((milliseconds) => {
736
736
  const seconds = Math.floor(milliseconds % 6e4 / 1e3);
737
737
  return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${String(milliseconds % 1e3).padStart(3, "0")}`;
738
738
  }, "timestamp");
739
- var vttText = /* @__PURE__ */ __name((text9) => {
740
- 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))
741
741
  throw new MeetingError("validation_error", "cue paragraphs or control characters require Markdown export");
742
- return text9.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
742
+ return text8.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
743
743
  }, "vttText");
744
744
  var serializeVtt = /* @__PURE__ */ __name((lines) => `WEBVTT
745
745
 
@@ -757,9 +757,9 @@ ${speaker}${vttText(line2.text)}
757
757
 
758
758
  `;
759
759
  }).join("")}`, "serializeVtt");
760
- var markdown = /* @__PURE__ */ __name((text9) => visibleControls(text9).replace(/[\\`*_{}[\]()<>#+.!|~]/g, "\\$&"), "markdown");
761
- var heading = /* @__PURE__ */ __name((text9) => markdown(singleLine(text9)), "heading");
762
- 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");
763
763
  var transcriptsOf = /* @__PURE__ */ __name((details, transcriptId) => {
764
764
  if (transcriptId !== void 0) {
765
765
  positiveInteger(transcriptId);
@@ -823,11 +823,11 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
823
823
  };
824
824
  }, "exportMeeting");
825
825
 
826
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
827
827
  import { createHash as createHash2 } from "node:crypto";
828
828
 
829
- // 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
830
- var FACT_TYPES = ["fact", "statement", "question", "decision", "promise", "payment"];
829
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/payment.js
830
+ var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
831
831
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
832
832
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
833
833
  var invalid2 = /* @__PURE__ */ __name((message) => {
@@ -848,7 +848,7 @@ var amountOf = /* @__PURE__ */ __name((value) => {
848
848
  var dateOf = /* @__PURE__ */ __name((value) => {
849
849
  const date2 = typeof value === "string" ? value.trim() : "";
850
850
  if (!/^\d{4}-\d{2}-\d{2}$/.test(date2) || (/* @__PURE__ */ new Date(`${date2}T00:00:00Z`)).toISOString().slice(0, 10) !== date2)
851
- 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");
852
852
  return date2;
853
853
  }, "dateOf");
854
854
  var optionalText = /* @__PURE__ */ __name((value, what, limit) => {
@@ -863,7 +863,17 @@ var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
863
863
  return invalid2(`a payment's ${what} is one of ${allowed.join(", ")}`);
864
864
  return value;
865
865
  }, "oneOf");
866
- 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
+ ];
867
877
  var validatePayment = /* @__PURE__ */ __name((input) => {
868
878
  if (!input || typeof input !== "object" || Array.isArray(input))
869
879
  return invalid2("a payment is an object");
@@ -877,6 +887,9 @@ var validatePayment = /* @__PURE__ */ __name((input) => {
877
887
  const counterparty = optionalText(raw.counterparty, "counterparty", 80);
878
888
  if (counterparty !== null && !COUNTERPARTY.test(counterparty))
879
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");
880
893
  return {
881
894
  amount: amountOf(raw.amount),
882
895
  currency,
@@ -884,8 +897,10 @@ var validatePayment = /* @__PURE__ */ __name((input) => {
884
897
  counterparty,
885
898
  counterparty_name: optionalText(raw.counterparty_name, "counterparty name", 200),
886
899
  due_at: raw.due_at === void 0 || raw.due_at === null ? null : dateOf(raw.due_at),
887
- state: oneOf(raw.state, PAYMENT_STATES, "state"),
888
- 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) }
889
904
  };
890
905
  }, "validatePayment");
891
906
  var grouped = /* @__PURE__ */ __name((amount) => {
@@ -905,10 +920,10 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
905
920
  return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
906
921
  }, "paymentTitle");
907
922
 
908
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
909
924
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
910
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)))
911
- throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
926
+ throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
912
927
  const date2 = value.slice(0, 10);
913
928
  const instant = Date.parse(`${date2}T00:00:00Z`);
914
929
  if (!Number.isFinite(instant) || new Date(instant).toISOString().slice(0, 10) !== date2)
@@ -916,132 +931,180 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
916
931
  return new Date(value).toISOString();
917
932
  }, "meetingTimestamp");
918
933
 
919
- // 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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
920
935
  var TASK_TYPES = ["bug", "feature", "chore"];
921
936
  var invalid3 = /* @__PURE__ */ __name((message) => {
922
937
  throw new CliError("validation_error", message);
923
938
  }, "invalid");
924
- var text3 = /* @__PURE__ */ __name((value, limit) => {
939
+ var findingText = /* @__PURE__ */ __name((value, limit) => {
925
940
  if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > limit)
926
941
  return invalid3(`finding text must contain 1\u2013${limit} characters without NUL`);
927
942
  return value.trim();
928
- }, "text");
943
+ }, "findingText");
929
944
  var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
930
- var fields = /* @__PURE__ */ __name((value, allowed, noun) => {
931
- if (Object.keys(value).some((key) => !allowed.includes(key)))
932
- invalid3(`unknown ${noun} field`);
933
- }, "fields");
945
+ var snakeCase = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snakeCase");
946
+ var findingWhere = /* @__PURE__ */ __name((of) => {
947
+ const id4 = typeof of.id === "string" ? of.id : null;
948
+ const kind = typeof of.kind === "string" ? of.kind : null;
949
+ return {
950
+ where: id4 || kind ? ` in ${[id4, kind && `(${kind})`].filter(Boolean).join(" ")}` : "",
951
+ named: { ...id4 ? { finding: id4 } : {}, ...kind ? { kind } : {} }
952
+ };
953
+ }, "findingWhere");
954
+ var findingFields = /* @__PURE__ */ __name((value, allowed, noun, of = value) => {
955
+ const unknown = Object.keys(value).filter((key) => !allowed.includes(key));
956
+ if (!unknown.length)
957
+ return;
958
+ const fields2 = unknown.map(snakeCase);
959
+ const takes = allowed.map(snakeCase);
960
+ const { where, named } = findingWhere(of);
961
+ throw new CliError("validation_error", `unknown ${noun} field${fields2.length > 1 ? "s" : ""} ${fields2.join(", ")}${where}; it takes ${takes.join(", ")}`, { reason: "finding.unknown-field", fields: fields2, allowed: takes, ...named });
962
+ }, "findingFields");
963
+ var findingNeeds = /* @__PURE__ */ __name((value, needed, noun) => {
964
+ const missing = needed.filter((key) => value[key] === void 0);
965
+ if (!missing.length)
966
+ return;
967
+ const fields2 = missing.map(snakeCase);
968
+ const needs = needed.map(snakeCase);
969
+ const { where, named } = findingWhere(value);
970
+ throw new CliError("validation_error", `missing ${noun} field${fields2.length > 1 ? "s" : ""} ${fields2.join(", ")}${where}; it needs ${needs.join(", ")}`, { reason: "finding.missing-field", fields: fields2, needs, ...named });
971
+ }, "findingNeeds");
934
972
  var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
935
- var validateFindings = /* @__PURE__ */ __name((input, rules) => {
973
+ var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
974
+ if (!Array.isArray(raw) || raw.length < 1 || raw.length > 8)
975
+ return invalid3(`a finding requires 1\u20138 cited ${rules.cited}s`);
976
+ const evidence = raw.map((item) => {
977
+ if (!item || typeof item !== "object")
978
+ return invalid3("finding evidence is a reference and fingerprint");
979
+ findingFields(item, ["reference", "fingerprint"], rules.singular);
980
+ if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
981
+ return invalid3("evidence requires a reference and fingerprint");
982
+ const reference2 = rules.reference(item.reference);
983
+ if (!/^[a-f0-9]{64}$/.test(item.fingerprint))
984
+ return invalid3(`finding evidence requires exact ${rules.cited} references and fingerprints`);
985
+ return { reference: reference2, fingerprint: item.fingerprint };
986
+ }).sort((a, b) => a.reference.localeCompare(b.reference));
987
+ if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
988
+ return invalid3(`duplicate evidence ${rules.cited}`);
989
+ return evidence;
990
+ }, "validEvidence");
991
+ var findingId = /* @__PURE__ */ __name((raw, ids2) => {
992
+ const id4 = findingText(raw, 64);
993
+ if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id4) || ids2.has(id4))
994
+ return invalid3("finding IDs must be unique simple keys");
995
+ ids2.add(id4);
996
+ return id4;
997
+ }, "findingId");
998
+ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
999
+ if (!finding || typeof finding !== "object")
1000
+ return invalid3("a finding is an object");
1001
+ const id4 = findingId(finding.id, ids2);
1002
+ const project = finding.project === void 0 && rules.anySubject ? void 0 : findingText(finding.project, 64);
1003
+ if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
1004
+ return invalid3("a finding names a project reference");
1005
+ if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(findingText(finding.subject, 80))))
1006
+ return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
1007
+ if (finding.kind === "task" && project === void 0 && !rules.inboxTasks)
1008
+ return invalid3("a task finding names the project the task goes in");
1009
+ const evidence = validEvidence(finding.evidence, rules);
1010
+ const base = {
1011
+ id: id4,
1012
+ ...project === void 0 ? {} : { project },
1013
+ ...finding.subject === void 0 ? {} : { subject: finding.subject },
1014
+ evidence
1015
+ };
1016
+ if (finding.kind === "fact") {
1017
+ findingFields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
1018
+ if (finding.type === "payment")
1019
+ return invalid3("a payment is a finding of kind payment; money is a payments row, not a fact");
1020
+ if (!FACT_TYPES.includes(finding.type))
1021
+ return invalid3("unknown fact finding type");
1022
+ return { ...base, kind: "fact", type: finding.type, statement: findingText(finding.statement, 2e3) };
1023
+ }
1024
+ if (finding.kind === "payment" && rules.payments) {
1025
+ findingFields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
1026
+ if (finding.supersedes !== void 0 && !/^invoice:[1-9]\d*$/.test(String(finding.supersedes)))
1027
+ return invalid3("a payment finding supersedes an invoice: reference, the expected payment it settles or voids");
1028
+ const payment = validatePayment(finding.payment);
1029
+ if (payment.state === "expected" && finding.supersedes !== void 0)
1030
+ return invalid3("an expected payment supersedes nothing; a paid or cancelled one supersedes its invoice");
1031
+ if (payment.state === "cancelled" && finding.supersedes === void 0)
1032
+ return invalid3("a cancelled payment names the invoice: it cancels in supersedes");
1033
+ if (payment.state === "expected" && !/^(person|organization):/.test(payment.counterparty ?? ""))
1034
+ return invalid3("an expected payment becomes an invoice, which names its counterparty as a person: or organization:");
1035
+ return {
1036
+ ...base,
1037
+ kind: "payment",
1038
+ ...finding.statement === void 0 ? {} : { statement: findingText(finding.statement, 2e3) },
1039
+ payment,
1040
+ ...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
1041
+ };
1042
+ }
1043
+ if (finding.kind !== "task")
1044
+ return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
1045
+ findingFields(finding, [
1046
+ "id",
1047
+ "project",
1048
+ "evidence",
1049
+ "kind",
1050
+ "type",
1051
+ "title",
1052
+ "reason",
1053
+ "commitment",
1054
+ "dueAt",
1055
+ "dueEvidence",
1056
+ "assignee",
1057
+ "assigneeEvidence"
1058
+ ], rules.singular);
1059
+ if (!TASK_TYPES.includes(finding.type))
1060
+ return invalid3("a task finding type is bug, chore or feature");
1061
+ if (!["explicit", "inferred"].includes(finding.commitment))
1062
+ return invalid3("task commitment must be explicit or inferred");
1063
+ if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0))
1064
+ return invalid3(`due_at comes with due_evidence: the ${rules.cited} references of this finding's evidence that give the date, as a list of strings such as ["<reference>"]`);
1065
+ if (finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1066
+ return invalid3(`assignee comes with assignee_evidence: the ${rules.cited} references of this finding's evidence that name them, as a list of strings such as ["<reference>"]`);
1067
+ if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
1068
+ return invalid3("an assignee must be a person reference");
1069
+ return {
1070
+ ...base,
1071
+ kind: "task",
1072
+ type: finding.type,
1073
+ title: findingText(finding.title, 300),
1074
+ reason: findingText(finding.reason, 2e3),
1075
+ commitment: finding.commitment,
1076
+ ...finding.dueAt === void 0 ? {} : {
1077
+ dueAt: meetingTimestamp(finding.dueAt, "a task's due_at"),
1078
+ dueEvidence: support(finding.dueEvidence, evidence, "due_evidence")
1079
+ },
1080
+ ...finding.assignee === void 0 ? {} : {
1081
+ assignee: finding.assignee,
1082
+ assigneeEvidence: support(finding.assigneeEvidence, evidence, "assignee_evidence")
1083
+ }
1084
+ };
1085
+ }, "validateFinding");
1086
+ var support = /* @__PURE__ */ __name((value, evidence, field) => {
1087
+ if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
1088
+ return invalid3(`${field} lists 1\u20138 references this finding's evidence cites, as plain strings such as ["<reference>"], not evidence objects`);
1089
+ return [...new Set(value)].sort();
1090
+ }, "support");
1091
+ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
936
1092
  if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
937
1093
  return invalid3(`${rules.plural} take at most 65536 UTF-8 bytes`);
938
- fields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
939
- if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > 16)
940
- return invalid3(`schemaVersion 1 takes 1\u201316 ${rules.plural}`);
941
- const key = text3(input.key, 64);
1094
+ findingFields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
1095
+ if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > most)
1096
+ return invalid3(`schemaVersion 1 takes 1\u2013${most} ${rules.plural}`);
1097
+ const key = findingText(input.key, 64);
942
1098
  if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(key))
943
1099
  return invalid3("a findings key uses letters, digits, dot, colon, underscore or hyphen");
944
1100
  const ids2 = /* @__PURE__ */ new Set();
945
- const findings = input.findings.map((finding) => {
946
- if (!finding || typeof finding !== "object")
947
- return invalid3("a finding is an object");
948
- const id4 = text3(finding.id, 64);
949
- if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id4) || ids2.has(id4))
950
- return invalid3("finding IDs must be unique simple keys");
951
- ids2.add(id4);
952
- const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
953
- if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
954
- return invalid3("a finding names a project reference");
955
- if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
956
- return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
957
- if (finding.kind === "task" && project === void 0)
958
- return invalid3("a task finding names the project the task goes in");
959
- if (!Array.isArray(finding.evidence) || finding.evidence.length < 1 || finding.evidence.length > 8)
960
- return invalid3(`a finding requires 1\u20138 cited ${rules.cited}s`);
961
- const evidence = finding.evidence.map((item) => {
962
- if (!item || typeof item !== "object")
963
- return invalid3("finding evidence is a reference and fingerprint");
964
- fields(item, ["reference", "fingerprint"], rules.singular);
965
- if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
966
- return invalid3("evidence requires a reference and fingerprint");
967
- const reference2 = rules.reference(item.reference);
968
- if (!/^[a-f0-9]{64}$/.test(item.fingerprint))
969
- return invalid3(`finding evidence requires exact ${rules.cited} references and fingerprints`);
970
- return { reference: reference2, fingerprint: item.fingerprint };
971
- }).sort((a, b) => a.reference.localeCompare(b.reference));
972
- if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
973
- return invalid3(`duplicate evidence ${rules.cited}`);
974
- const base = {
975
- id: id4,
976
- ...project === void 0 ? {} : { project },
977
- ...finding.subject === void 0 ? {} : { subject: finding.subject },
978
- evidence
979
- };
980
- if (finding.kind === "fact") {
981
- fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
982
- if (finding.type === "payment")
983
- return invalid3("a payment is a finding of kind payment");
984
- if (!FACT_TYPES.includes(finding.type))
985
- return invalid3("unknown fact finding type");
986
- return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
987
- }
988
- if (finding.kind === "payment" && rules.payments) {
989
- fields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
990
- if (finding.supersedes !== void 0 && !/^fact:[1-9]\d*$/.test(String(finding.supersedes)))
991
- return invalid3("a payment finding supersedes a fact: reference");
992
- return {
993
- ...base,
994
- kind: "payment",
995
- ...finding.statement === void 0 ? {} : { statement: text3(finding.statement, 2e3) },
996
- payment: validatePayment(finding.payment),
997
- ...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
998
- };
999
- }
1000
- if (finding.kind !== "task")
1001
- return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
1002
- fields(finding, [
1003
- "id",
1004
- "project",
1005
- "evidence",
1006
- "kind",
1007
- "type",
1008
- "title",
1009
- "reason",
1010
- "commitment",
1011
- "dueAt",
1012
- "dueEvidence",
1013
- "assignee",
1014
- "assigneeEvidence"
1015
- ], rules.singular);
1016
- if (!TASK_TYPES.includes(finding.type))
1017
- return invalid3("a task finding type is bug, chore or feature");
1018
- if (!["explicit", "inferred"].includes(finding.commitment))
1019
- return invalid3("task commitment must be explicit or inferred");
1020
- const support = /* @__PURE__ */ __name((value) => {
1021
- if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
1022
- return invalid3("date and assignee support must cite the finding's evidence");
1023
- return [...new Set(value)].sort();
1024
- }, "support");
1025
- if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1026
- return invalid3("optional dates and assignees require their supporting evidence");
1027
- if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
1028
- return invalid3("an assignee must be a person reference");
1029
- return {
1030
- ...base,
1031
- kind: "task",
1032
- type: finding.type,
1033
- title: text3(finding.title, 300),
1034
- reason: text3(finding.reason, 2e3),
1035
- commitment: finding.commitment,
1036
- ...finding.dueAt === void 0 ? {} : { dueAt: meetingTimestamp(finding.dueAt, "finding due date"), dueEvidence: support(finding.dueEvidence) },
1037
- ...finding.assignee === void 0 ? {} : { assignee: finding.assignee, assigneeEvidence: support(finding.assigneeEvidence) }
1038
- };
1039
- });
1040
- return { schemaVersion: 1, key, extractor: text3(input.extractor, 200), findings };
1041
- }, "validateFindings");
1101
+ const findings = input.findings.map((finding) => one(finding, ids2));
1102
+ return { schemaVersion: 1, key, extractor: findingText(input.extractor, 200), findings };
1103
+ }, "validateBatch");
1104
+ var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1042
1105
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1043
1106
 
1044
- // 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
1107
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1045
1108
  var MEETING_FINDINGS_KIND = "meeting_findings";
1046
1109
  var cue = /* @__PURE__ */ __name((raw) => {
1047
1110
  const reference2 = canonicalMeetingReference(raw);
@@ -1052,7 +1115,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1052
1115
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1053
1116
  var meetingFindingFingerprint = findingFingerprint;
1054
1117
 
1055
- // 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
1118
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1056
1119
  var context = {
1057
1120
  command: "search meetings",
1058
1121
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1114,6 +1177,7 @@ var MEETING_FIELDS = defineQuery({
1114
1177
  ]
1115
1178
  });
1116
1179
  var LIFTED = /* @__PURE__ */ new Set(["date", "project", "tag", "topic"]);
1180
+ var MEETING_FIELD_NAMES = new Set(MEETING_FIELDS.fields.map(({ name }) => name));
1117
1181
  var liftMeetingFields = /* @__PURE__ */ __name((query, request, now) => {
1118
1182
  let ast;
1119
1183
  try {
@@ -1160,9 +1224,9 @@ var liftMeetingFields = /* @__PURE__ */ __name((query, request, now) => {
1160
1224
  return { query: rest, request: next };
1161
1225
  }, "liftMeetingFields");
1162
1226
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
1163
- var meetingWordsQuery = /* @__PURE__ */ __name((text9) => {
1164
- const found = text9.match(/[\p{L}\p{N}\p{M}]+/gu) ?? [];
1165
- const span = { start: 0, end: text9.length };
1227
+ var meetingWordsQuery = /* @__PURE__ */ __name((text8) => {
1228
+ const found = text8.match(/[\p{L}\p{N}\p{M}]+/gu) ?? [];
1229
+ const span = { start: 0, end: text8.length };
1166
1230
  const clauses = found.map((value) => ({
1167
1231
  occur: "must",
1168
1232
  node: { kind: "predicate", field: "text", operator: "term", value, span }
@@ -1171,7 +1235,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text9) => {
1171
1235
  return { version: 1, language: "lucene-v1", root };
1172
1236
  }, "meetingWordsQuery");
1173
1237
 
1174
- // 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
1238
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/language.js
1175
1239
  var LATIN_WORDS = {
1176
1240
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
1177
1241
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -1186,11 +1250,11 @@ var CYRILLIC = new RegExp("\\p{Script=Cyrillic}", "gu");
1186
1250
  var LATIN = new RegExp("\\p{Script=Latin}", "gu");
1187
1251
  var MIN_LETTERS = 20;
1188
1252
  var DOMINANT = 0.75;
1189
- var countOf = /* @__PURE__ */ __name((text9, pattern) => text9.match(pattern)?.length ?? 0, "countOf");
1253
+ var countOf = /* @__PURE__ */ __name((text8, pattern) => text8.match(pattern)?.length ?? 0, "countOf");
1190
1254
  var latinLanguage = /* @__PURE__ */ __name((texts) => {
1191
1255
  const votes = /* @__PURE__ */ new Map();
1192
- for (const text9 of texts)
1193
- for (const word of text9.toLowerCase().split(/[^\p{L}]+/u)) {
1256
+ for (const text8 of texts)
1257
+ for (const word of text8.toLowerCase().split(/[^\p{L}]+/u)) {
1194
1258
  const language = LATIN_LANGUAGE.get(word);
1195
1259
  if (language)
1196
1260
  votes.set(language, (votes.get(language) ?? 0) + 1);
@@ -1205,10 +1269,10 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1205
1269
  let cyrillic = 0;
1206
1270
  let latin = 0;
1207
1271
  let ukrainian = 0;
1208
- for (const text9 of all) {
1209
- cyrillic += countOf(text9, CYRILLIC);
1210
- latin += countOf(text9, LATIN);
1211
- ukrainian += countOf(text9, UKRAINIAN);
1272
+ for (const text8 of all) {
1273
+ cyrillic += countOf(text8, CYRILLIC);
1274
+ latin += countOf(text8, LATIN);
1275
+ ukrainian += countOf(text8, UKRAINIAN);
1212
1276
  }
1213
1277
  const letters = cyrillic + latin;
1214
1278
  if (letters < MIN_LETTERS)
@@ -1220,9 +1284,9 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1220
1284
  return null;
1221
1285
  }, "transcriptLanguage");
1222
1286
 
1223
- // 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
1224
- var contentHash = /* @__PURE__ */ __name(async (text9) => {
1225
- const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text9));
1287
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1288
+ var contentHash = /* @__PURE__ */ __name(async (text8) => {
1289
+ const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text8));
1226
1290
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
1227
1291
  }, "contentHash");
1228
1292
  var speakerPosition = /* @__PURE__ */ __name((name, participants) => {
@@ -1257,7 +1321,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
1257
1321
  return time;
1258
1322
  }, "timestamp");
1259
1323
 
1260
- // 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
1324
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
1261
1325
  var TranscriptTextError = class extends Error {
1262
1326
  static {
1263
1327
  __name(this, "TranscriptTextError");
@@ -1274,10 +1338,10 @@ var LINE = /^\[(\d{2,}):([0-5]\d):([0-5]\d)\]\s*(?:([^:\n]{1,60}):\s*)?([\s\S]*)
1274
1338
  var RULE = /^[—–-]{10,}[^\n]*(?:\n|$)/;
1275
1339
  var EMPTY = /* @__PURE__ */ new Set(["", "\u2014", "-"]);
1276
1340
  var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1277
- const text9 = input.replace(/^/, "").replace(/\r\n?/g, "\n");
1341
+ const text8 = input.replace(/^/, "").replace(/\r\n?/g, "\n");
1278
1342
  const header = { title: null, date: null, meetingId: null, speakers: [] };
1279
1343
  let sawHeader = false;
1280
- for (const line2 of text9.split("\n")) {
1344
+ for (const line2 of text8.split("\n")) {
1281
1345
  if (!line2.trim())
1282
1346
  break;
1283
1347
  for (const [prefix, key] of Object.entries(HEADER)) {
@@ -1294,7 +1358,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1294
1358
  if (!sawHeader)
1295
1359
  throw new TranscriptTextError('a text transcript starts with a header such as "\u0412\u0441\u0442\u0440\u0435\u0447\u0430: \u2026"');
1296
1360
  const found = [];
1297
- for (const block of text9.split(/\n\s*\n/)) {
1361
+ for (const block of text8.split(/\n\s*\n/)) {
1298
1362
  const match = LINE.exec(block.trim().replace(RULE, ""));
1299
1363
  if (!match)
1300
1364
  continue;
@@ -1312,7 +1376,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1312
1376
  return { header, lines };
1313
1377
  }, "parseTranscriptText");
1314
1378
 
1315
- // 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
1379
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
1316
1380
  var VttError = class extends Error {
1317
1381
  static {
1318
1382
  __name(this, "VttError");
@@ -1328,12 +1392,12 @@ var millis = /* @__PURE__ */ __name((stamp, lineNo) => {
1328
1392
  const [, hours = "0", minutes = "0", seconds = "0", ms = "0"] = match;
1329
1393
  return ((Number(hours) * 60 + Number(minutes)) * 60 + Number(seconds)) * 1e3 + Number(ms);
1330
1394
  }, "millis");
1331
- var splitSpeaker = /* @__PURE__ */ __name((text9) => {
1332
- const firstLine = text9.split("\n", 1)[0] ?? "";
1395
+ var splitSpeaker = /* @__PURE__ */ __name((text8) => {
1396
+ const firstLine = text8.split("\n", 1)[0] ?? "";
1333
1397
  const at = firstLine.indexOf(": ");
1334
1398
  if (at <= 0)
1335
- return { speaker: null, text: text9 };
1336
- return { speaker: firstLine.slice(0, at).trim(), text: text9.slice(at + 2) };
1399
+ return { speaker: null, text: text8 };
1400
+ return { speaker: firstLine.slice(0, at).trim(), text: text8.slice(at + 2) };
1337
1401
  }, "splitSpeaker");
1338
1402
  var parseVtt = /* @__PURE__ */ __name((input) => {
1339
1403
  const lines = input.replace(/^/, "").split(/\r\n|\r|\n/);
@@ -1358,13 +1422,13 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
1358
1422
  const lineNo = start + timingAt + 1;
1359
1423
  const [from = "", rest = ""] = (block[timingAt] ?? "").split("-->");
1360
1424
  const to = rest.trim().split(/\s+/)[0] ?? "";
1361
- const text9 = block.slice(timingAt + 1).join("\n").trim();
1362
- cues.push({ startMs: millis(from.trim(), lineNo), endMs: millis(to, lineNo), ...splitSpeaker(text9) });
1425
+ const text8 = block.slice(timingAt + 1).join("\n").trim();
1426
+ cues.push({ startMs: millis(from.trim(), lineNo), endMs: millis(to, lineNo), ...splitSpeaker(text8) });
1363
1427
  }
1364
1428
  return cues;
1365
1429
  }, "parseVtt");
1366
1430
 
1367
- // 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
1431
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/import.js
1368
1432
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
1369
1433
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
1370
1434
  for (const file of files) {
@@ -1397,10 +1461,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
1397
1461
  return report;
1398
1462
  }, "importFiles");
1399
1463
 
1400
- // 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
1464
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/links.js
1401
1465
  var CHAT_MESSAGES_READ = 1e5;
1402
1466
 
1403
- // 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
1467
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/provider.js
1404
1468
  var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
1405
1469
  const provider = scope3?.provider;
1406
1470
  const account = scope3?.account;
@@ -1409,7 +1473,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
1409
1473
  return Object.freeze({ provider, account });
1410
1474
  }, "snapshotMeetingScope");
1411
1475
 
1412
- // 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
1476
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
1413
1477
  var nonempty = /* @__PURE__ */ __name((value, name) => {
1414
1478
  if (typeof value !== "string" || !value.trim())
1415
1479
  throw new CliError("validation_error", `${name} must be nonempty`);
@@ -1544,19 +1608,19 @@ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports) => {
1544
1608
  };
1545
1609
  }, "createMeetingManagement");
1546
1610
 
1547
- // 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
1611
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
1548
1612
  var id = /* @__PURE__ */ __name((value) => {
1549
1613
  if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
1550
1614
  throw new CliError("validation_error", "meeting context identifiers must be positive integers");
1551
1615
  return value;
1552
1616
  }, "id");
1553
- var text4 = /* @__PURE__ */ __name((value, max) => {
1617
+ var text3 = /* @__PURE__ */ __name((value, max) => {
1554
1618
  if (typeof value !== "string" || !value.trim() || value.length > max || value.includes("\0"))
1555
1619
  throw new CliError("validation_error", `meeting context text must contain 1\u2013${max} characters without NUL`);
1556
1620
  return value.trim();
1557
1621
  }, "text");
1558
1622
  var uid = /* @__PURE__ */ __name((value) => {
1559
- const result = text4(value, 100);
1623
+ const result = text3(value, 100);
1560
1624
  if (!/^[1-9]\d*$/.test(result) || !Number.isSafeInteger(Number(result)))
1561
1625
  throw new CliError("validation_error", "person UID must be a positive integer");
1562
1626
  return result;
@@ -1564,9 +1628,9 @@ var uid = /* @__PURE__ */ __name((value) => {
1564
1628
  var strings = /* @__PURE__ */ __name((value, count6, length) => {
1565
1629
  if (!Array.isArray(value) || value.length < 1 || value.length > count6)
1566
1630
  throw new CliError("validation_error", `meeting context list must contain 1\u2013${count6} entries`);
1567
- return Object.freeze([...new Set(value.map((entry) => text4(entry, length)))]);
1631
+ return Object.freeze([...new Set(value.map((entry) => text3(entry, length)))]);
1568
1632
  }, "strings");
1569
- var fields2 = {
1633
+ var fields = {
1570
1634
  "note.add": ["text", "title"],
1571
1635
  "tags.add": ["tags"],
1572
1636
  "tags.remove": ["tags"],
@@ -1576,14 +1640,14 @@ var fields2 = {
1576
1640
  "person.link": ["participantId", "personUid", "targetAccountIds", "expectedPersonUid"]
1577
1641
  };
1578
1642
  var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1579
- 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)))
1643
+ 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)))
1580
1644
  throw new CliError("validation_error", "unsupported meeting context change");
1581
1645
  switch (change.action) {
1582
1646
  case "note.add":
1583
1647
  return Object.freeze({
1584
1648
  action: change.action,
1585
- text: text4(change.text, 1e5),
1586
- ...change.title === void 0 ? {} : { title: text4(change.title, 500) }
1649
+ text: text3(change.text, 1e5),
1650
+ ...change.title === void 0 ? {} : { title: text3(change.title, 500) }
1587
1651
  });
1588
1652
  case "tags.add":
1589
1653
  case "tags.remove":
@@ -1593,11 +1657,11 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1593
1657
  throw new CliError("validation_error", "memory kind and explicit personal/work scope are required");
1594
1658
  return Object.freeze({
1595
1659
  action: change.action,
1596
- body: text4(change.body, 2e4),
1660
+ body: text3(change.body, 2e4),
1597
1661
  kind: change.kind,
1598
1662
  scope: change.scope,
1599
1663
  evidence: strings(change.evidence, 100, 4e3),
1600
- ...change.subject === void 0 ? {} : { subject: text4(change.subject, 4e3) }
1664
+ ...change.subject === void 0 ? {} : { subject: text3(change.subject, 4e3) }
1601
1665
  });
1602
1666
  }
1603
1667
  case "fact.add": {
@@ -1605,11 +1669,11 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1605
1669
  throw new CliError("validation_error", `fact type (${FACT_TYPES.join(", ")}) and explicit personal/work scope are required`);
1606
1670
  return Object.freeze({
1607
1671
  action: change.action,
1608
- statement: text4(change.statement, 2e4),
1672
+ statement: text3(change.statement, 2e4),
1609
1673
  type: change.type,
1610
1674
  scope: change.scope,
1611
1675
  evidence: strings(change.evidence, 100, 4e3),
1612
- ...change.subject === void 0 ? {} : { subject: text4(change.subject, 4e3) }
1676
+ ...change.subject === void 0 ? {} : { subject: text3(change.subject, 4e3) }
1613
1677
  });
1614
1678
  }
1615
1679
  case "event.link":
@@ -1636,7 +1700,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) =>
1636
1700
  const fixed = snapshotMeetingScope(scope3);
1637
1701
  const account = id(accountId);
1638
1702
  const actions = Object.freeze([...new Set(ports.actions)]);
1639
- if (actions.some((action) => !Object.hasOwn(fields2, action)))
1703
+ if (actions.some((action) => !Object.hasOwn(fields, action)))
1640
1704
  throw new CliError("validation_error", "unsupported meeting context capability");
1641
1705
  const apply = ports.apply.bind(ports);
1642
1706
  return {
@@ -1666,7 +1730,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) =>
1666
1730
  };
1667
1731
  }, "createMeetingContext");
1668
1732
 
1669
- // 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
1733
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/passage.js
1670
1734
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
1671
1735
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
1672
1736
  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)))
@@ -1679,7 +1743,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
1679
1743
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
1680
1744
  }, "validateMeetingPassage");
1681
1745
 
1682
- // 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
1746
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
1683
1747
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
1684
1748
  if (!original || typeof original !== "object" || Array.isArray(original))
1685
1749
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -1704,7 +1768,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
1704
1768
  return { ...input, limit, maxReadBytes };
1705
1769
  }, "validateMeetingPreparationContext");
1706
1770
 
1707
- // 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
1771
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
1708
1772
  var count3 = pipe(number(), integer(), minValue(0));
1709
1773
  var id2 = pipe(string(), minLength(1));
1710
1774
  var meetingProjectEvidence = strictObject({
@@ -1825,7 +1889,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
1825
1889
  };
1826
1890
  }, "meetingProjectEvidenceAnswer");
1827
1891
 
1828
- // 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
1892
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
1829
1893
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
1830
1894
  const integer5 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
1831
1895
  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) || [
@@ -1845,7 +1909,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
1845
1909
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
1846
1910
  }, "validateMeetingHitSearch");
1847
1911
 
1848
- // 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
1912
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
1849
1913
  var ids = {
1850
1914
  meeting_id: "meetingId",
1851
1915
  identity_id: "participantIdentityId",
@@ -1936,7 +2000,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
1936
2000
  return { project: project.trim(), options, query: frozen.join(" AND ") };
1937
2001
  }, "prepareMeetingProjectEvidence");
1938
2002
 
1939
- // 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
2003
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
1940
2004
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
1941
2005
  const prepared = prepareMeetingProjectEvidence(project, request, now);
1942
2006
  const page = await read(prepared.project, prepared.options);
@@ -1944,12 +2008,12 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
1944
2008
  return meetingProjectEvidenceAnswer(page, prepared);
1945
2009
  }, "readMeetingProjectEvidence");
1946
2010
 
1947
- // 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
2011
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/pull.js
1948
2012
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
1949
- const { identityExternalId, ...fields3 } = p;
2013
+ const { identityExternalId, ...fields2 } = p;
1950
2014
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
1951
2015
  return {
1952
- ...fields3,
2016
+ ...fields2,
1953
2017
  identity: {
1954
2018
  provider,
1955
2019
  externalId,
@@ -1959,24 +2023,47 @@ var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, posit
1959
2023
  }
1960
2024
  };
1961
2025
  }, "participantInput");
2026
+ var startOf = /* @__PURE__ */ __name((m) => {
2027
+ const at = Date.parse(m.occurrence.startedAt);
2028
+ return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
2029
+ }, "startOf");
1962
2030
  var pull = /* @__PURE__ */ __name(async (source, store, options) => {
1963
2031
  const now = options.now ?? Date.now();
1964
- const lookbackMs = options.lookbackMs ?? 0;
1965
- if (!Number.isSafeInteger(lookbackMs) || lookbackMs < 0 || lookbackMs > 31 * 864e5)
1966
- throw new Error("lookbackMs must be an integer from 0 through 31 days");
1967
- const since = options.since ?? await store.cursor(options.accountId) ?? new Date(now - 30 * 864e5).toISOString();
2032
+ for (const [name, ms] of [
2033
+ ["lookbackMs", options.lookbackMs ?? 0],
2034
+ ["overlapMs", source.overlapMs ?? 0]
2035
+ ])
2036
+ if (!Number.isSafeInteger(ms) || ms < 0 || ms > 31 * 864e5)
2037
+ throw new Error(`${name} must be an integer from 0 through 31 days`);
2038
+ const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
2039
+ const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
2040
+ const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
1968
2041
  timestamp2(since);
1969
2042
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
1970
2043
  let failed = false;
2044
+ let firstFailed;
1971
2045
  const from = timestamp2(since) - lookbackMs;
1972
- const meetings = await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString());
1973
- for (const m of meetings) {
2046
+ const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
2047
+ for (const [index, m] of meetings.entries()) {
2048
+ const stop = options.budget?.take() ?? null;
2049
+ if (stop) {
2050
+ report.stopped = stop;
2051
+ report.remaining = meetings.length - index;
2052
+ const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
2053
+ if (Number.isFinite(reached) && reached > timestamp2(since))
2054
+ await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
2055
+ return report;
2056
+ }
1974
2057
  const id4 = m.occurrence.id;
2058
+ const failedHere = /* @__PURE__ */ __name(() => {
2059
+ failed = true;
2060
+ firstFailed ??= startOf(m);
2061
+ }, "failedHere");
1975
2062
  const read = /* @__PURE__ */ __name(async (part, call) => {
1976
2063
  try {
1977
2064
  return await call();
1978
2065
  } catch (error) {
1979
- failed = true;
2066
+ failedHere();
1980
2067
  const message = error instanceof Error ? error.message : "could not be read";
1981
2068
  report.warnings.push({ externalId: id4, message: `${part}: ${message}` });
1982
2069
  return void 0;
@@ -2074,7 +2161,7 @@ unlinked`, format)],
2074
2161
  report.transcriptRows += lines?.length ?? 0;
2075
2162
  report.summaries += summary ? 1 : 0;
2076
2163
  } catch (error) {
2077
- failed = true;
2164
+ failedHere();
2078
2165
  report.warnings.push({ externalId: id4, message: error instanceof Error ? error.message : "Meeting pull failed" });
2079
2166
  }
2080
2167
  }
@@ -2083,8 +2170,8 @@ unlinked`, format)],
2083
2170
  return report;
2084
2171
  }, "pull");
2085
2172
 
2086
- // 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
2087
- var text5 = string();
2173
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2174
+ var text4 = string();
2088
2175
  var count4 = pipe(number(), integer(), minValue(0));
2089
2176
  var id3 = pipe(number(), integer(), minValue(1));
2090
2177
  var iso3 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -2092,22 +2179,22 @@ var meetingRef2 = /* @__PURE__ */ __name((accountId, meetingId) => formatMeeting
2092
2179
  var meetingReview = strictObject({
2093
2180
  ref: reference,
2094
2181
  id: pipe(string(), minLength(1)),
2095
- title: nullable(text5),
2182
+ title: nullable(text4),
2096
2183
  started_at: nullable(isoTime),
2097
2184
  duration_ms: nullable(count4),
2098
2185
  participants_count: nullable(count4),
2099
- projects: array(text5),
2186
+ projects: array(text4),
2100
2187
  /** Null when the meeting has no current transcript. */
2101
2188
  transcript: nullable(strictObject({ lines: count4, words: count4 })),
2102
2189
  /** The three who talked longest. */
2103
- speakers: array(strictObject({ name: nullable(text5), talk_ms: count4 })),
2190
+ speakers: array(strictObject({ name: nullable(text4), talk_ms: count4 })),
2104
2191
  /** The newest stored summary; null when there is none. */
2105
2192
  summary: nullable(strictObject({
2106
- source: text5,
2107
- title: nullable(text5),
2108
- overview: nullable(text5),
2109
- next_steps: array(text5),
2110
- url: nullable(text5)
2193
+ source: text4,
2194
+ title: nullable(text4),
2195
+ overview: nullable(text4),
2196
+ next_steps: array(text4),
2197
+ url: nullable(text4)
2111
2198
  }))
2112
2199
  });
2113
2200
  var meetingReviewItem = /* @__PURE__ */ __name((one) => ({
@@ -2129,15 +2216,15 @@ var meetingReviewItem = /* @__PURE__ */ __name((one) => ({
2129
2216
  }
2130
2217
  }), "meetingReviewItem");
2131
2218
  var meetingLink = strictObject({
2132
- url: text5,
2133
- domain: nullable(text5),
2219
+ url: text4,
2220
+ domain: nullable(text4),
2134
2221
  /** The Google Docs, Sheets, Slides, Forms or Drive file it names. */
2135
- document_id: nullable(text5),
2222
+ document_id: nullable(text4),
2136
2223
  count: count4,
2137
2224
  first_at: isoTime,
2138
2225
  last_at: isoTime,
2139
- senders: array(text5),
2140
- meetings: array(strictObject({ ref: reference, title: nullable(text5) }))
2226
+ senders: array(text4),
2227
+ meetings: array(strictObject({ ref: reference, title: nullable(text4) }))
2141
2228
  });
2142
2229
  var meetingLinkItem = /* @__PURE__ */ __name((link) => ({
2143
2230
  url: link.url,
@@ -2151,8 +2238,8 @@ var meetingLinkItem = /* @__PURE__ */ __name((link) => ({
2151
2238
  }), "meetingLinkItem");
2152
2239
  var meetingSpeaker = strictObject({
2153
2240
  /** `person:<id>`, `identity:<id>`, `name:<lowercased name>` or `unknown`. */
2154
- key: text5,
2155
- name: nullable(text5),
2241
+ key: text4,
2242
+ name: nullable(text4),
2156
2243
  person_id: nullable(id3),
2157
2244
  identity_id: nullable(id3),
2158
2245
  meetings: count4,
@@ -2174,13 +2261,13 @@ var meetingSpeakerItem = /* @__PURE__ */ __name((one) => ({
2174
2261
  share: one.share
2175
2262
  }), "meetingSpeakerItem");
2176
2263
  var meetingStats = strictObject({
2177
- time_zone: text5,
2264
+ time_zone: text4,
2178
2265
  meetings: count4,
2179
2266
  lines: count4,
2180
2267
  words: count4,
2181
2268
  talk_ms: count4,
2182
2269
  /** `week_start` is the Monday, as a date in `time_zone`. */
2183
- weeks: array(strictObject({ week_start: text5, meetings: count4, talk_ms: count4 })),
2270
+ weeks: array(strictObject({ week_start: text4, meetings: count4, talk_ms: count4 })),
2184
2271
  top_speakers: array(meetingSpeaker)
2185
2272
  });
2186
2273
  var meetingStatsItem = /* @__PURE__ */ __name((found, top = 10) => ({
@@ -2192,18 +2279,52 @@ var meetingStatsItem = /* @__PURE__ */ __name((found, top = 10) => ({
2192
2279
  weeks: found.weeks.map((week) => ({ week_start: week.weekStart, meetings: week.meetings, talk_ms: week.talkMs })),
2193
2280
  top_speakers: found.speakers.slice(0, top).map(meetingSpeakerItem)
2194
2281
  }), "meetingStatsItem");
2282
+ var meetingCountsRow = strictObject({
2283
+ key: text4,
2284
+ name: nullable(text4),
2285
+ meetings: count4,
2286
+ minutes: count4,
2287
+ mean_minutes: nullable(number()),
2288
+ transcripts: count4
2289
+ });
2290
+ var meetingCounts = strictObject({
2291
+ by: picklist(["day", "week", "series"]),
2292
+ meetings: count4,
2293
+ minutes: count4,
2294
+ mean_minutes: nullable(number()),
2295
+ transcripts: count4,
2296
+ rows: array(meetingCountsRow),
2297
+ has_more: boolean()
2298
+ });
2299
+ var countsRowItem = /* @__PURE__ */ __name((row) => ({
2300
+ key: row.key,
2301
+ name: row.name,
2302
+ meetings: row.meetings,
2303
+ minutes: row.minutes,
2304
+ mean_minutes: row.meanMinutes,
2305
+ transcripts: row.transcripts
2306
+ }), "countsRowItem");
2307
+ var meetingCountsItem = /* @__PURE__ */ __name((found) => ({
2308
+ by: found.by,
2309
+ meetings: found.meetings,
2310
+ minutes: found.minutes,
2311
+ mean_minutes: found.meanMinutes,
2312
+ transcripts: found.transcripts,
2313
+ rows: found.rows.map(countsRowItem),
2314
+ has_more: found.hasMore
2315
+ }), "meetingCountsItem");
2195
2316
  var truncated = /* @__PURE__ */ __name((...why) => nullable(picklist(why)), "truncated");
2196
2317
  var meetingParticipants = strictObject({
2197
2318
  schema_version: literal(1),
2198
2319
  kind: literal("meeting_participants"),
2199
2320
  account_id: id3,
2200
- query: text5,
2321
+ query: text4,
2201
2322
  items: array(strictObject({
2202
2323
  participant_id: id3,
2203
2324
  meeting_id: id3,
2204
2325
  identity_id: id3,
2205
- display_name: nullable(text5),
2206
- email: nullable(text5)
2326
+ display_name: nullable(text4),
2327
+ email: nullable(text4)
2207
2328
  })),
2208
2329
  /** Several identities on one page are observations, never speaker attribution or person links. */
2209
2330
  ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id3) }),
@@ -2217,7 +2338,7 @@ var meetingParticipants = strictObject({
2217
2338
  mode: literal("cursor"),
2218
2339
  limit: count4,
2219
2340
  has_more: boolean(),
2220
- next_cursor: optional(text5)
2341
+ next_cursor: optional(text4)
2221
2342
  })
2222
2343
  });
2223
2344
  var revision = picklist(["current", "superseded"]);
@@ -2226,8 +2347,8 @@ var meetingPassage = strictObject({
2226
2347
  kind: literal("meeting_context"),
2227
2348
  source: reference,
2228
2349
  target_ref: reference,
2229
- target_fingerprint: text5,
2230
- fingerprint: text5,
2350
+ target_fingerprint: text4,
2351
+ fingerprint: text4,
2231
2352
  revision,
2232
2353
  limits: strictObject({ before: count4, after: count4, bytes: count4, max_read_bytes: count4 }),
2233
2354
  content_bytes: count4,
@@ -2246,30 +2367,30 @@ var meetingPassage = strictObject({
2246
2367
  }),
2247
2368
  items: array(strictObject({
2248
2369
  ref: reference,
2249
- fingerprint: text5,
2370
+ fingerprint: text4,
2250
2371
  transcript_id: id3,
2251
- content_hash: nullable(text5),
2372
+ content_hash: nullable(text4),
2252
2373
  position: count4,
2253
2374
  start_ms: count4,
2254
2375
  end_ms: count4,
2255
2376
  speaker_participant_id: nullable(id3),
2256
- speaker_name: nullable(text5),
2257
- text: text5,
2377
+ speaker_name: nullable(text4),
2378
+ text: text4,
2258
2379
  revision
2259
2380
  }))
2260
2381
  });
2261
2382
  var event = strictObject({
2262
2383
  id: pipe(string(), minLength(1)),
2263
- event_series_id: nullable(text5),
2264
- title: nullable(text5),
2265
- description: nullable(text5),
2266
- location: nullable(text5),
2384
+ event_series_id: nullable(text4),
2385
+ title: nullable(text4),
2386
+ description: nullable(text4),
2387
+ location: nullable(text4),
2267
2388
  starts_at: nullable(isoTime),
2268
2389
  ends_at: nullable(isoTime),
2269
- timezone: nullable(text5),
2390
+ timezone: nullable(text4),
2270
2391
  /** `auto`: made from a meeting; `owner`: made by hand; `calendar`: from a calendar's entries. */
2271
2392
  origin: picklist(["auto", "owner", "calendar"]),
2272
- status: nullable(text5),
2393
+ status: nullable(text4),
2273
2394
  all_day: boolean(),
2274
2395
  /** When its calendar deleted it: shown as "deleted in Google", kept as history. */
2275
2396
  source_deleted_at: nullable(isoTime),
@@ -2277,7 +2398,7 @@ var event = strictObject({
2277
2398
  created_at: isoTime,
2278
2399
  updated_at: isoTime,
2279
2400
  /** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
2280
- untrusted: optional(array(text5)),
2401
+ untrusted: optional(array(text4)),
2281
2402
  /** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
2282
2403
  change: optional(picklist(["new", "moved", "cancelled"])),
2283
2404
  changed_at: optional(nullable(isoTime)),
@@ -2289,7 +2410,7 @@ var event = strictObject({
2289
2410
  */
2290
2411
  overlapping: optional(boolean()),
2291
2412
  /** With `overlapping:true`: the events it overlaps, as `event:<id>`. */
2292
- overlaps: optional(array(text5))
2413
+ overlaps: optional(array(text4))
2293
2414
  });
2294
2415
  var eventItem = /* @__PURE__ */ __name((one) => ({
2295
2416
  id: String(one.id),
@@ -2309,10 +2430,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2309
2430
  updated_at: new Date(one.updatedAt).toISOString()
2310
2431
  }), "eventItem");
2311
2432
 
2312
- // 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
2433
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
2313
2434
  import { createHash as createHash3 } from "node:crypto";
2314
2435
 
2315
- // 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
2436
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/recording-sync.js
2316
2437
  var RecordingSyncError = class extends CliError {
2317
2438
  static {
2318
2439
  __name(this, "RecordingSyncError");
@@ -2325,7 +2446,7 @@ var RecordingSyncError = class extends CliError {
2325
2446
  var fail = /* @__PURE__ */ __name((message, code = "validation_error") => {
2326
2447
  throw new RecordingSyncError(code, message);
2327
2448
  }, "fail");
2328
- var text6 = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 4096, "text");
2449
+ var text5 = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 4096, "text");
2329
2450
  var integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && Number(value) >= low && Number(value) <= high, "integer");
2330
2451
  var date = /* @__PURE__ */ __name((value) => {
2331
2452
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}$/.test(value))
@@ -2370,7 +2491,7 @@ var object = /* @__PURE__ */ __name((value) => {
2370
2491
  }, "object");
2371
2492
  var scope = /* @__PURE__ */ __name((value) => {
2372
2493
  const row = object(value);
2373
- if (!text6(row.provider) || !text6(row.account))
2494
+ if (!text5(row.provider) || !text5(row.account))
2374
2495
  return fail("archive provider and account are required");
2375
2496
  try {
2376
2497
  return snapshotMeetingScope({ provider: row.provider, account: row.account });
@@ -2386,10 +2507,10 @@ var window = /* @__PURE__ */ __name((value) => {
2386
2507
  return fail("invalid archive checkpoint window", "invalid_response");
2387
2508
  return { from, to };
2388
2509
  }, "window");
2389
- var nullableText = /* @__PURE__ */ __name((value) => value === null || text6(value), "nullableText");
2510
+ var nullableText = /* @__PURE__ */ __name((value) => value === null || text5(value), "nullableText");
2390
2511
  var asset = /* @__PURE__ */ __name((value) => {
2391
2512
  const row = object(value);
2392
- 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))
2513
+ 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))
2393
2514
  return fail("invalid recording asset metadata", "invalid_response");
2394
2515
  for (const value2 of [row.startedAt, row.endedAt])
2395
2516
  if (value2 !== null && !Number.isFinite(Date.parse(value2)))
@@ -2424,14 +2545,14 @@ function parseRecordingSyncCheckpoint(value, maxEntries = 1e4) {
2424
2545
  if (!integer3(maxEntries, 1, 1e4))
2425
2546
  return fail("archive entry limit must be between 1 and 10000");
2426
2547
  const row = object(value);
2427
- 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)
2548
+ 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)
2428
2549
  return fail("unsupported or oversized archive checkpoint", "invalid_response");
2429
2550
  const windows = row.windows.map(window);
2430
2551
  const pendingWindows = row.pendingWindows.map(window);
2431
2552
  let metadataBytes = 0;
2432
2553
  const entries = row.entries.map((value2) => {
2433
2554
  const entry = object(value2);
2434
- if (!text6(entry.externalId) || !Array.isArray(entry.acknowledged) || entry.acknowledged.length > 1e3 || entry.acknowledged.some((value3) => typeof value3 !== "string" || value3.length > 65536))
2555
+ if (!text5(entry.externalId) || !Array.isArray(entry.acknowledged) || entry.acknowledged.length > 1e3 || entry.acknowledged.some((value3) => typeof value3 !== "string" || value3.length > 65536))
2435
2556
  return fail("invalid archive checkpoint entry", "invalid_response");
2436
2557
  const metadata = assets(entry.assets);
2437
2558
  const acknowledged = entry.acknowledged;
@@ -2480,10 +2601,10 @@ var compactWindows = /* @__PURE__ */ __name((windows, from) => {
2480
2601
  }, "compactWindows");
2481
2602
  var pending = /* @__PURE__ */ __name((entry) => entry.assets.length === 0 || entry.assets.some((item) => !item.available || !entry.acknowledged.includes(recordingAssetFingerprint(item))), "pending");
2482
2603
  var acknowledgedAssets = /* @__PURE__ */ __name((occurrence, result) => {
2483
- 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)
2604
+ 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)
2484
2605
  return fail("archive returned an invalid occurrence acknowledgement", "invalid_response");
2485
2606
  const completed = [...result.downloaded, ...result.skipped];
2486
- 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);
2607
+ 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);
2487
2608
  }, "acknowledgedAssets");
2488
2609
  async function* syncRecordingArchive(catalog, input) {
2489
2610
  const options = {
@@ -2500,7 +2621,7 @@ async function* syncRecordingArchive(catalog, input) {
2500
2621
  if (options.recheckFrom !== void 0)
2501
2622
  date(options.recheckFrom);
2502
2623
  const checkpoint = options.checkpoint;
2503
- if (checkpoint && (!text6(checkpoint.jobId) || !text6(checkpoint.configKey)))
2624
+ if (checkpoint && (!text5(checkpoint.jobId) || !text5(checkpoint.configKey)))
2504
2625
  return fail("archive checkpoint job and configuration key are required");
2505
2626
  const clock2 = /* @__PURE__ */ __name(() => {
2506
2627
  const now = options.now();
@@ -2560,11 +2681,11 @@ async function* syncRecordingArchive(catalog, input) {
2560
2681
  ...options.signal ? { signal: options.signal } : {}
2561
2682
  });
2562
2683
  cancelled(options.signal);
2563
- if (!Array.isArray(page.items) || page.items.length > 1e3 || !(page.nextCursor === null || text6(page.nextCursor)))
2684
+ if (!Array.isArray(page.items) || page.items.length > 1e3 || !(page.nextCursor === null || text5(page.nextCursor)))
2564
2685
  return fail("provider returned an invalid recording page", "invalid_response");
2565
2686
  for (const raw of page.items) {
2566
2687
  cancelled(options.signal);
2567
- if (!text6(raw.id) || !text6(raw.externalId) || !nullableText(raw.title) || !nullableText(raw.startedAt))
2688
+ if (!text5(raw.id) || !text5(raw.externalId) || !nullableText(raw.title) || !nullableText(raw.startedAt))
2568
2689
  return fail("provider returned an invalid recording occurrence", "invalid_response");
2569
2690
  const occurrence = {
2570
2691
  id: raw.id,
@@ -2633,11 +2754,11 @@ async function* syncRecordingArchive(catalog, input) {
2633
2754
  }
2634
2755
  __name(syncRecordingArchive, "syncRecordingArchive");
2635
2756
 
2636
- // 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
2757
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
2637
2758
  var fail2 = /* @__PURE__ */ __name((message) => {
2638
2759
  throw new CliError("validation_error", message);
2639
2760
  }, "fail");
2640
- var text7 = /* @__PURE__ */ __name((value, maximum) => typeof value === "string" && !!value.trim() && value.length <= maximum && !/[\0\r\n]/.test(value), "text");
2761
+ var text6 = /* @__PURE__ */ __name((value, maximum) => typeof value === "string" && !!value.trim() && value.length <= maximum && !/[\0\r\n]/.test(value), "text");
2641
2762
  var clock = /* @__PURE__ */ __name((now) => {
2642
2763
  if (!Number.isSafeInteger(now) || now < 0 || now > 253402300799999)
2643
2764
  fail2("invalid archive schedule clock");
@@ -2649,11 +2770,11 @@ var identity = /* @__PURE__ */ __name((schedule) => createHash3("sha256").update
2649
2770
  var planRecordingArchiveSchedule = /* @__PURE__ */ __name((input, options) => {
2650
2771
  const now = clock(options.now);
2651
2772
  const scope3 = snapshotMeetingScope(input.scope);
2652
- if (!text7(input.name, 200) || !text7(input.destination, 4096))
2773
+ if (!text6(input.name, 200) || !text6(input.destination, 4096))
2653
2774
  fail2("archive schedule name and destination are required");
2654
2775
  if (typeof input.dailyAt !== "string" || !/^(?:[01]\d|2[0-3]):[0-5]\d$/.test(input.dailyAt))
2655
2776
  fail2("archive schedule time must be HH:mm");
2656
- if (!text7(input.timeZone, 200))
2777
+ if (!text6(input.timeZone, 200))
2657
2778
  fail2("archive schedule requires a time zone");
2658
2779
  try {
2659
2780
  new Intl.DateTimeFormat("en", { timeZone: input.timeZone });
@@ -2740,7 +2861,7 @@ var installRecordingArchiveSchedule = /* @__PURE__ */ __name(async (scheduler, v
2740
2861
  return { applied: true, backend, schedule };
2741
2862
  }, "installRecordingArchiveSchedule");
2742
2863
 
2743
- // 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
2864
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2744
2865
  var RecordingTransferError = class extends CliError {
2745
2866
  static {
2746
2867
  __name(this, "RecordingTransferError");
@@ -2905,7 +3026,7 @@ var transferRecording = /* @__PURE__ */ __name(async (source, storage, options)
2905
3026
  }
2906
3027
  }, "transferRecording");
2907
3028
 
2908
- // 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
3029
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2909
3030
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2910
3031
  if (!original || typeof original !== "object" || Array.isArray(original))
2911
3032
  throw new CliError("validation_error", "related history request is required");
@@ -2935,24 +3056,24 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2935
3056
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2936
3057
  }, "validateMeetingRelatedHistory");
2937
3058
 
2938
- // 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
2939
- var text8 = string();
2940
- var identifier = pipe(text8, minLength(1));
2941
- var nullableText2 = nullable(text8);
3059
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
3060
+ var text7 = string();
3061
+ var identifier = pipe(text7, minLength(1));
3062
+ var nullableText2 = nullable(text7);
2942
3063
  var count5 = pipe(number(), integer(), minValue(0));
2943
3064
  var flag = boolean();
2944
- var scope2 = strictObject({ provider: text8, account: text8 });
3065
+ var scope2 = strictObject({ provider: text7, account: text7 });
2945
3066
  var run = strictObject({
2946
3067
  meetings: count5,
2947
3068
  participants: count5,
2948
3069
  transcript_rows: count5,
2949
3070
  summaries: count5,
2950
- warnings: array(strictObject({ external_id: text8, message: text8 })),
2951
- timezone: optional(text8)
3071
+ warnings: array(strictObject({ external_id: text7, message: text7 })),
3072
+ timezone: optional(text7)
2952
3073
  });
2953
3074
  var exported = union([
2954
- strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text8, content: text8 }),
2955
- strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text8 })
3075
+ strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text7, content: text7 }),
3076
+ strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text7 })
2956
3077
  ]);
2957
3078
  var eventChange2 = strictObject({
2958
3079
  action: literal("event.link"),
@@ -2962,7 +3083,7 @@ var eventChange2 = strictObject({
2962
3083
  var personChange = strictObject({
2963
3084
  action: literal("person.link"),
2964
3085
  participant_id: identifier,
2965
- person_uid: text8,
3086
+ person_uid: text7,
2966
3087
  expected_person_uid: optional(nullableText2),
2967
3088
  target_account_ids: optional(array(identifier))
2968
3089
  });
@@ -2975,7 +3096,7 @@ var eventResult = strictObject({
2975
3096
  var personResult = strictObject({
2976
3097
  meeting_id: identifier,
2977
3098
  participant_id: identifier,
2978
- person_uid: text8,
3099
+ person_uid: text7,
2979
3100
  previous_person_uid: nullableText2,
2980
3101
  changed: flag
2981
3102
  });
@@ -2988,23 +3109,23 @@ var meetingChange = strictObject({
2988
3109
  result: optional(union([eventResult, personResult]))
2989
3110
  });
2990
3111
  var recognition = strictObject({
2991
- engine: text8,
2992
- model: text8,
2993
- version: optional(text8),
3112
+ engine: text7,
3113
+ model: text7,
3114
+ version: optional(text7),
2994
3115
  timing: optional(picklist(["fixed-windows", "recognition-segments"]))
2995
3116
  });
2996
3117
  var transcription = union([
2997
3118
  strictObject({
2998
3119
  applied: literal(false),
2999
3120
  account_id: identifier,
3000
- external_id: text8,
3121
+ external_id: text7,
3001
3122
  segments: count5,
3002
3123
  media: strictObject({
3003
- id: text8,
3004
- content_hash: text8,
3124
+ id: text7,
3125
+ content_hash: text7,
3005
3126
  size: count5,
3006
3127
  duration_ms: count5,
3007
- format: text8,
3128
+ format: text7,
3008
3129
  sample_rate: count5,
3009
3130
  channels: count5,
3010
3131
  recognition
@@ -3013,21 +3134,21 @@ var transcription = union([
3013
3134
  strictObject({
3014
3135
  applied: literal(true),
3015
3136
  account_id: identifier,
3016
- external_id: text8,
3137
+ external_id: text7,
3017
3138
  meeting_id: identifier,
3018
3139
  created: flag,
3019
3140
  inserted_transcripts: count5,
3020
3141
  replayed_transcripts: count5,
3021
3142
  superseded_transcripts: count5,
3022
3143
  segments: count5,
3023
- media_sha256: text8,
3024
- engine: text8,
3025
- model: text8,
3144
+ media_sha256: text7,
3145
+ engine: text7,
3146
+ model: text7,
3026
3147
  model_version: nullableText2,
3027
3148
  timing: picklist(["fixed-windows", "recognition-segments"])
3028
3149
  })
3029
3150
  ]);
3030
- var embeddingModel = strictObject({ key: text8, dims: count5, kind: picklist(["local", "remote"]), model: text8 });
3151
+ var embeddingModel = strictObject({ key: text7, dims: count5, kind: picklist(["local", "remote"]), model: text7 });
3031
3152
  var embedding = union([
3032
3153
  strictObject({
3033
3154
  account_id: identifier,
@@ -3043,7 +3164,7 @@ var embedding = union([
3043
3164
  saved: count5,
3044
3165
  skipped: count5,
3045
3166
  has_more: flag,
3046
- next_hash: optional(text8),
3167
+ next_hash: optional(text7),
3047
3168
  applied: literal(true),
3048
3169
  rebuild: strictObject({
3049
3170
  transcripts: count5,
@@ -3068,15 +3189,15 @@ var MEETING_RESULT_ENTITIES = {
3068
3189
  meeting_repair: repair
3069
3190
  };
3070
3191
 
3071
- // 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
3192
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/review.js
3072
3193
  var REVIEW_LIMIT = { default: 50, most: 200 };
3073
3194
 
3074
- // 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
3195
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3075
3196
  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.";
3076
3197
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
3077
3198
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
3078
3199
 
3079
- // 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
3200
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3080
3201
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3081
3202
  input.signal?.throwIfAborted();
3082
3203
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -3097,10 +3218,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3097
3218
  return { ...input, limit, maxReadBytes };
3098
3219
  }, "validateMeetingSeriesHistory");
3099
3220
 
3100
- // 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
3221
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3101
3222
  import { createHash as createHash4 } from "node:crypto";
3102
3223
 
3103
- // 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
3224
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3104
3225
  var invalid4 = /* @__PURE__ */ __name((field) => {
3105
3226
  throw new CliError("invalid_response", `meeting occurrence ${field} is invalid`);
3106
3227
  }, "invalid");
@@ -3169,18 +3290,18 @@ var readOccurrenceSchedule = /* @__PURE__ */ __name((input, meetingId, limit, ma
3169
3290
  return result;
3170
3291
  }, "readOccurrenceSchedule");
3171
3292
 
3172
- // 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
3293
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3173
3294
  var inventoryHash = /* @__PURE__ */ __name((value) => createHash4("sha256").update(JSON.stringify(value)).digest("hex"), "inventoryHash");
3174
3295
  var inventorySize = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "inventorySize");
3175
3296
  function invalid5(field, response = false) {
3176
3297
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
3177
3298
  }
3178
3299
  __name(invalid5, "invalid");
3179
- var object2 = /* @__PURE__ */ __name((value, fields3, field, response = false) => {
3300
+ var object2 = /* @__PURE__ */ __name((value, fields2, field, response = false) => {
3180
3301
  if (!value || typeof value !== "object" || Array.isArray(value))
3181
3302
  invalid5(field, response);
3182
3303
  for (const key of Object.keys(value))
3183
- if (!fields3.includes(key))
3304
+ if (!fields2.includes(key))
3184
3305
  invalid5(`${field}.${key}`, response);
3185
3306
  }, "object");
3186
3307
  var cursorDetails = /* @__PURE__ */ __name((value) => {
@@ -3257,7 +3378,7 @@ var inventoryPage = /* @__PURE__ */ __name((scope3, request, page) => {
3257
3378
  return { items, selection: page.coverage.selection, partial: page.coverage.partial, nextCursor: page.nextCursor };
3258
3379
  }, "inventoryPage");
3259
3380
 
3260
- // 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
3381
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/series-inventory.js
3261
3382
  var cancelled3 = /* @__PURE__ */ __name((signal) => {
3262
3383
  if (signal?.aborted)
3263
3384
  throw new CliError("cancelled", "meeting inventory reading was cancelled");
@@ -3313,7 +3434,8 @@ var createMeetingSeriesInventoryReader = /* @__PURE__ */ __name((scope3, port) =
3313
3434
  };
3314
3435
  }, "createMeetingSeriesInventoryReader");
3315
3436
 
3316
- // 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
3437
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3438
+ var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
3317
3439
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
3318
3440
  const zone = timeZone ?? "UTC";
3319
3441
  try {
@@ -3329,17 +3451,72 @@ var weekStart = /* @__PURE__ */ __name((at, format) => {
3329
3451
  const day2 = Date.UTC(Number(parts.year), Number(parts.month) - 1, Number(parts.day));
3330
3452
  return new Date(day2 - DAYS.indexOf(parts.weekday ?? "Mon") * 864e5).toISOString().slice(0, 10);
3331
3453
  }, "weekStart");
3454
+ var dayKey = /* @__PURE__ */ __name((at, format) => {
3455
+ const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
3456
+ return `${parts.year}-${parts.month}-${parts.day}`;
3457
+ }, "dayKey");
3458
+ var zoneFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", {
3459
+ timeZone: zone,
3460
+ year: "numeric",
3461
+ month: "2-digit",
3462
+ day: "2-digit",
3463
+ weekday: "short"
3464
+ }), "zoneFormat");
3465
+ var NO_SERIES = "no-series";
3466
+ var MOST_COUNT_ROWS = 100;
3467
+ var minutesOf = /* @__PURE__ */ __name((ms) => Math.round(ms / 6e4), "minutesOf");
3468
+ var meanOf = /* @__PURE__ */ __name((ms, timed) => timed === 0 ? null : Math.round(ms / timed / 6e3) / 10, "meanOf");
3469
+ var aggregateMeetingCounts = /* @__PURE__ */ __name((meetings, by, timeZone, limit = MOST_COUNT_ROWS) => {
3470
+ if (!MEETING_COUNTS_GROUPINGS.includes(by))
3471
+ throw new CliError("validation_error", `--by takes ${MEETING_COUNTS_GROUPINGS.join(", ")}`);
3472
+ if (!Number.isSafeInteger(limit) || limit < 1)
3473
+ throw new CliError("validation_error", "--limit is a positive number");
3474
+ const zone = zoneOf(timeZone);
3475
+ const format = zoneFormat(zone);
3476
+ const sum = /* @__PURE__ */ __name(() => ({ meetings: 0, ms: 0, timed: 0, transcripts: 0 }), "sum");
3477
+ const add = /* @__PURE__ */ __name((into, meeting2) => {
3478
+ into.meetings += 1;
3479
+ if (meeting2.durationMs !== null) {
3480
+ into.ms += Math.max(0, meeting2.durationMs);
3481
+ into.timed += 1;
3482
+ }
3483
+ if (meeting2.transcribed)
3484
+ into.transcripts += 1;
3485
+ }, "add");
3486
+ const total = { ...sum(), name: null };
3487
+ const groups = /* @__PURE__ */ new Map();
3488
+ for (const meeting2 of meetings) {
3489
+ add(total, meeting2);
3490
+ 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);
3491
+ if (key === null)
3492
+ continue;
3493
+ const group = groups.get(key) ?? { ...sum(), name: by === "series" ? meeting2.seriesTitle : null };
3494
+ add(group, meeting2);
3495
+ groups.set(key, group);
3496
+ }
3497
+ 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));
3498
+ const kept = ordered.slice(0, limit);
3499
+ if (by !== "series")
3500
+ kept.reverse();
3501
+ const counted = /* @__PURE__ */ __name(({ meetings: count6, ms, timed, transcripts }) => ({
3502
+ meetings: count6,
3503
+ minutes: minutesOf(ms),
3504
+ meanMinutes: meanOf(ms, timed),
3505
+ transcripts
3506
+ }), "counted");
3507
+ return {
3508
+ by,
3509
+ timeZone: zone,
3510
+ ...counted(total),
3511
+ rows: kept.map(([key, group]) => ({ key, name: group.name, ...counted(group) })),
3512
+ hasMore: ordered.length > limit
3513
+ };
3514
+ }, "aggregateMeetingCounts");
3332
3515
  var UNKNOWN_SPEAKER = "unknown";
3333
3516
  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");
3334
3517
  var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3335
3518
  const zone = zoneOf(timeZone);
3336
- const format = new Intl.DateTimeFormat("en-US", {
3337
- timeZone: zone,
3338
- year: "numeric",
3339
- month: "2-digit",
3340
- day: "2-digit",
3341
- weekday: "short"
3342
- });
3519
+ const format = zoneFormat(zone);
3343
3520
  const speakers = /* @__PURE__ */ new Map();
3344
3521
  const weeks = /* @__PURE__ */ new Map();
3345
3522
  const meetings = /* @__PURE__ */ new Set();
@@ -3392,7 +3569,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3392
3569
  };
3393
3570
  }, "aggregateMeetingStats");
3394
3571
 
3395
- // 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
3572
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/transcription.js
3396
3573
  var bounded = /* @__PURE__ */ __name((value, max, name) => {
3397
3574
  if (!Number.isSafeInteger(value) || value < 1 || value > max)
3398
3575
  throw new CliError("validation_error", `${name} must be an integer from 1 to ${max}`);
@@ -3474,19 +3651,19 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
3474
3651
  throw new CliError("invalid_response", "invalid or excessive recognition segments");
3475
3652
  start = segment.startMs;
3476
3653
  ends.set(speaker, Math.max(ends.get(speaker) ?? 0, segment.endMs));
3477
- const text9 = segment.text.trim();
3478
- if (text9.length > maxTextBytes - textBytes)
3654
+ const text8 = segment.text.trim();
3655
+ if (text8.length > maxTextBytes - textBytes)
3479
3656
  throw new CliError("validation_error", "transcript exceeds its byte limit");
3480
- textBytes += new TextEncoder().encode(text9).byteLength;
3657
+ textBytes += new TextEncoder().encode(text8).byteLength;
3481
3658
  if (textBytes > maxTextBytes)
3482
3659
  throw new CliError("validation_error", "transcript exceeds its byte limit");
3483
- if (text9)
3660
+ if (text8)
3484
3661
  rows.push({
3485
3662
  position: rows.length,
3486
3663
  startMs: segment.startMs,
3487
3664
  endMs: segment.endMs,
3488
3665
  speakerName: speaker ?? null,
3489
- text: text9,
3666
+ text: text8,
3490
3667
  normalizedText: null,
3491
3668
  metadata: null
3492
3669
  });
@@ -3546,7 +3723,7 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
3546
3723
  };
3547
3724
  }, "transcribeMeeting");
3548
3725
 
3549
- // 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
3726
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
3550
3727
  var cancelled5 = /* @__PURE__ */ __name((signal) => {
3551
3728
  if (!signal?.aborted)
3552
3729
  return;
@@ -3616,7 +3793,7 @@ var createUpcomingMeetingReader = /* @__PURE__ */ __name((scope3, port) => {
3616
3793
  };
3617
3794
  }, "createUpcomingMeetingReader");
3618
3795
 
3619
- // 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
3796
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/meetings/watch.js
3620
3797
  var sleep = /* @__PURE__ */ __name((milliseconds, signal) => new Promise((resolve) => {
3621
3798
  const finish = /* @__PURE__ */ __name(() => {
3622
3799
  clearTimeout(timer);
@@ -3704,13 +3881,23 @@ export {
3704
3881
  PAYMENT_STATES,
3705
3882
  validatePayment,
3706
3883
  paymentTitle,
3884
+ meetingTimestamp,
3885
+ findingText,
3707
3886
  findingHash,
3887
+ snakeCase,
3888
+ findingFields,
3889
+ findingNeeds,
3890
+ validEvidence,
3891
+ findingId,
3892
+ validateFinding,
3893
+ validateBatch,
3708
3894
  validateFindings,
3709
3895
  findingFingerprint,
3710
3896
  MEETING_FINDINGS_KIND,
3711
3897
  validateMeetingFindings,
3712
3898
  meetingFindingFingerprint,
3713
3899
  MEETING_HIT_QUERY,
3900
+ MEETING_FIELD_NAMES,
3714
3901
  liftMeetingFields,
3715
3902
  parseMeetingQuery,
3716
3903
  meetingWordsQuery,
@@ -3745,6 +3932,8 @@ export {
3745
3932
  meetingSpeakerItem,
3746
3933
  meetingStats,
3747
3934
  meetingStatsItem,
3935
+ meetingCounts,
3936
+ meetingCountsItem,
3748
3937
  meetingParticipants,
3749
3938
  meetingPassage,
3750
3939
  event,
@@ -3769,6 +3958,9 @@ export {
3769
3958
  validateMeetingSeriesHistory,
3770
3959
  validateMeetingSeriesInventoryCursor,
3771
3960
  createMeetingSeriesInventoryReader,
3961
+ MEETING_COUNTS_GROUPINGS,
3962
+ NO_SERIES,
3963
+ aggregateMeetingCounts,
3772
3964
  aggregateMeetingStats,
3773
3965
  transcribeMeeting,
3774
3966
  createUpcomingMeetingReader,