@wirecat/zoom-cli 0.75.0 → 0.77.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 (217) hide show
  1. package/README.md +12 -11
  2. package/contracts/wirecat.json +53 -105
  3. package/dist/answer-entities.d.ts +1 -141
  4. package/dist/answer-entities.d.ts.map +1 -1
  5. package/dist/answer-entities.js +0 -31
  6. package/dist/answer-entities.js.map +1 -1
  7. package/dist/api.d.ts +18 -1
  8. package/dist/api.d.ts.map +1 -1
  9. package/dist/api.js +179 -54
  10. package/dist/api.js.map +1 -1
  11. package/dist/archive-commands.d.ts +0 -3
  12. package/dist/archive-commands.d.ts.map +1 -1
  13. package/dist/archive-commands.js +1 -54
  14. package/dist/archive-commands.js.map +1 -1
  15. package/dist/bin/zm.js +2 -2
  16. package/dist/bundle/{all-profiles-WFLKFKJC.js → all-profiles-PMCFNDMA.js} +11 -11
  17. package/dist/bundle/answer-policy-XU7KEW2V.js +121 -0
  18. package/dist/bundle/{anthropic-H45W4P22.js → anthropic-TGJOKLUS.js} +6 -6
  19. package/dist/bundle/{app-server-I4FPLBIX.js → app-server-OAODUFM3.js} +73 -63
  20. package/dist/bundle/{bun-V5QLYBZU.js → bun-HJHVHJJV.js} +2 -2
  21. package/dist/bundle/{bun-sqlite-X2YZPHDS.js → bun-sqlite-PLBOY6FP.js} +7 -7
  22. package/dist/bundle/{chunk-P6MQ6FS4.js → chunk-2QDD6S2R.js} +8 -8
  23. package/dist/bundle/{chunk-ZMHZ6CQS.js → chunk-2QRGJSKO.js} +2 -2
  24. package/dist/bundle/{chunk-DQBLDZ7M.js → chunk-36SI35XZ.js} +5 -5
  25. package/dist/bundle/{chunk-HKPNQL52.js → chunk-375BH5OD.js} +4 -4
  26. package/dist/bundle/{chunk-T4FMXDDV.js → chunk-3TLQF3DN.js} +3 -3
  27. package/dist/bundle/{chunk-EA2OB75T.js → chunk-4QNW4NK6.js} +1 -1
  28. package/dist/bundle/{chunk-4XDWV6VJ.js → chunk-4Z4VOQRR.js} +17 -17
  29. package/dist/bundle/{chunk-VLK3X53X.js → chunk-5A5W322G.js} +6 -2
  30. package/dist/bundle/chunk-5C5UEKUJ.js +170 -0
  31. package/dist/bundle/chunk-5C6CRSEM.js +389 -0
  32. package/dist/bundle/{chunk-3YKAFLXY.js → chunk-5KHCFIWI.js} +2 -2
  33. package/dist/bundle/{chunk-NQQVNLO6.js → chunk-635GRAO5.js} +12 -12
  34. package/dist/bundle/{chunk-RKI4BGWG.js → chunk-6JRBMNRN.js} +3 -3
  35. package/dist/bundle/{chunk-Y5J5CAG2.js → chunk-6YCFDDRO.js} +1 -1
  36. package/dist/bundle/{chunk-ZVVRRMLW.js → chunk-77JQIY2V.js} +3 -3
  37. package/dist/bundle/{chunk-IW245Q5B.js → chunk-7AFYZOHU.js} +36 -32
  38. package/dist/bundle/{chunk-V3UK6E5B.js → chunk-7CMYNW3W.js} +4 -4
  39. package/dist/bundle/chunk-7DTU7QZP.js +72 -0
  40. package/dist/bundle/chunk-7ILGYNWX.js +773 -0
  41. package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-7S3N5CTA.js} +1 -1
  42. package/dist/bundle/chunk-7SNU7RFU.js +229 -0
  43. package/dist/bundle/{chunk-4YNUQGDP.js → chunk-A6LK2W5J.js} +1 -1
  44. package/dist/bundle/{chunk-MHXZ62CU.js → chunk-ADJIYY33.js} +1 -1
  45. package/dist/bundle/{chunk-WUWF4EXZ.js → chunk-B7XFDMFV.js} +22 -12
  46. package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-BOJCRTQW.js} +2 -2
  47. package/dist/bundle/{chunk-GPVSGZ4R.js → chunk-CJL5GHTQ.js} +1010 -617
  48. package/dist/bundle/{chunk-BY2YPKZZ.js → chunk-CL6QAZGT.js} +39 -67
  49. package/dist/bundle/{chunk-GU4FVTJV.js → chunk-CUJJZJ4R.js} +44 -9
  50. package/dist/bundle/{chunk-FBYGBR4Q.js → chunk-CZ6OO66B.js} +4 -4
  51. package/dist/bundle/chunk-DCEQIKFD.js +259 -0
  52. package/dist/bundle/{chunk-QBKKTTA3.js → chunk-DDUNPLET.js} +279 -588
  53. package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-DYIRJINE.js} +1 -1
  54. package/dist/bundle/{chunk-L5UILROP.js → chunk-E3UPMPUV.js} +8 -8
  55. package/dist/bundle/{chunk-F6RB5FHZ.js → chunk-ECRFXQHA.js} +1 -1
  56. package/dist/bundle/{chunk-AVCYD4WQ.js → chunk-F4ROWGLU.js} +68 -38
  57. package/dist/bundle/{chunk-6XNTELM5.js → chunk-FDQE2CLT.js} +1 -1
  58. package/dist/bundle/{chunk-PCJRHC5Y.js → chunk-FRC5QIPQ.js} +8 -8
  59. package/dist/bundle/{chunk-4RJL32PF.js → chunk-FS5HPXQN.js} +26 -9
  60. package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-GHBDYYPO.js} +2 -2
  61. package/dist/bundle/{chunk-OUM4ZO53.js → chunk-H2EVYY5Z.js} +1 -1
  62. package/dist/bundle/{chunk-VPSQZ2YR.js → chunk-I3QMPQYD.js} +49 -49
  63. package/dist/bundle/{chunk-3U3W6YY5.js → chunk-ICZVSVTW.js} +71 -252
  64. package/dist/bundle/{chunk-QEO3XTIE.js → chunk-IJTBB23F.js} +32 -33
  65. package/dist/bundle/{chunk-FT7X74RT.js → chunk-IS6MUPN2.js} +4 -4
  66. package/dist/bundle/{chunk-NL6AZ6S2.js → chunk-IUOKIZZN.js} +2 -2
  67. package/dist/bundle/{chunk-3HTJBGNP.js → chunk-IZMRQ3MV.js} +21 -16
  68. package/dist/bundle/{chunk-X2FILY5F.js → chunk-JFVZVPRW.js} +3 -3
  69. package/dist/bundle/{chunk-MNVT7EJS.js → chunk-JMU3E2WA.js} +2 -2
  70. package/dist/bundle/{chunk-T25PR26L.js → chunk-JQUYHPQD.js} +7 -7
  71. package/dist/bundle/{chunk-JDTZCZ5K.js → chunk-KHBSQROH.js} +5 -5
  72. package/dist/bundle/{chunk-HCZYJMBP.js → chunk-KYKW2W6X.js} +1 -1
  73. package/dist/bundle/chunk-LMZUC4CS.js +101 -0
  74. package/dist/bundle/{chunk-PPM7UTCT.js → chunk-LUAS73NT.js} +18 -18
  75. package/dist/bundle/{chunk-P4ZQQLZF.js → chunk-LWMDLXEO.js} +2384 -3000
  76. package/dist/bundle/{chunk-W2AC2RAG.js → chunk-LYVHQ6DJ.js} +14 -14
  77. package/dist/bundle/{chunk-DUPFAY35.js → chunk-MCLZ74II.js} +7 -7
  78. package/dist/bundle/chunk-MIG4RLDB.js +555 -0
  79. package/dist/bundle/{chunk-3URYKAJP.js → chunk-MMAZUJBO.js} +1 -1
  80. package/dist/bundle/{chunk-B6Q53CVA.js → chunk-MTH3JJHF.js} +24 -22
  81. package/dist/bundle/{chunk-7ZVWV33Z.js → chunk-NJJEUG4C.js} +35 -13
  82. package/dist/bundle/{chunk-SEJBS7SI.js → chunk-NKKVVPL5.js} +1 -1
  83. package/dist/bundle/{chunk-TSHUBGN4.js → chunk-NOF6LABG.js} +6 -6
  84. package/dist/bundle/{chunk-F7K2V6OA.js → chunk-NPDPD2H3.js} +12 -12
  85. package/dist/bundle/{chunk-2PYZTRRC.js → chunk-NPIVV52M.js} +1 -1
  86. package/dist/bundle/{chunk-WQOGHND4.js → chunk-OOIU36FA.js} +1 -1
  87. package/dist/bundle/{chunk-XCJGDPMN.js → chunk-OXXJW3A5.js} +22320 -22886
  88. package/dist/bundle/chunk-PM3MB3E7.js +295 -0
  89. package/dist/bundle/{chunk-VUPWDCYV.js → chunk-PO4RZ4XZ.js} +1 -1
  90. package/dist/bundle/{chunk-K5E5MB4C.js → chunk-Q7ZW7XAX.js} +31 -87
  91. package/dist/bundle/{chunk-HNWDEDMU.js → chunk-QAGECFHL.js} +22 -22
  92. package/dist/bundle/{chunk-JTYWSXJG.js → chunk-QE4L2QQZ.js} +9 -9
  93. package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-QKNO3JTG.js} +2 -2
  94. package/dist/bundle/{chunk-IMDTC4MD.js → chunk-QUGESVOE.js} +22 -35
  95. package/dist/bundle/{chunk-ELD5AC7Q.js → chunk-RQS3W4P6.js} +7 -6
  96. package/dist/bundle/{chunk-A3Q3PG54.js → chunk-SFPUSEOT.js} +2 -2
  97. package/dist/bundle/{chunk-SR5X7YKB.js → chunk-SP5OMHOO.js} +3 -3
  98. package/dist/bundle/chunk-STNZQBY4.js +335 -0
  99. package/dist/bundle/{chunk-EOZAJGB4.js → chunk-SVJQRG5N.js} +16 -16
  100. package/dist/bundle/{chunk-IDGWBKMH.js → chunk-SY5NGYKA.js} +12 -12
  101. package/dist/bundle/{chunk-NE4GYKQA.js → chunk-T4CI3YXW.js} +6 -6
  102. package/dist/bundle/{chunk-3YRPDNWK.js → chunk-T6RSYDFA.js} +1075 -443
  103. package/dist/bundle/{chunk-QXQUANWE.js → chunk-TY4FFK2P.js} +6 -6
  104. package/dist/bundle/chunk-UGRGYLEI.js +224 -0
  105. package/dist/bundle/{chunk-C5WQ57AB.js → chunk-VGERRRDC.js} +1 -1
  106. package/dist/bundle/{chunk-NQLL4KRN.js → chunk-VJ2TLU7R.js} +6 -6
  107. package/dist/bundle/{chunk-PX4IMYVB.js → chunk-W7UCN7MF.js} +3 -3
  108. package/dist/bundle/{chunk-RBYVQE3S.js → chunk-WD5OL5JB.js} +81 -5
  109. package/dist/bundle/{chunk-LRCSDAYK.js → chunk-XC3MWABM.js} +4 -4
  110. package/dist/bundle/{chunk-MAE5UGRQ.js → chunk-XCA5N63N.js} +6 -6
  111. package/dist/bundle/chunk-XVHDT4CO.js +31 -0
  112. package/dist/bundle/{chunk-532H3KT3.js → chunk-YFN5A7OP.js} +4 -4
  113. package/dist/bundle/{chunk-IJCUAKR5.js → chunk-YJIGGUPI.js} +4 -4
  114. package/dist/bundle/{chunk-FIVFP53N.js → chunk-YVI5SQPY.js} +1 -1
  115. package/dist/bundle/{chunk-IO3BQ6JU.js → chunk-ZRNNMBPC.js} +31 -577
  116. package/dist/bundle/{chunk-RABCFGT3.js → chunk-ZUMKZOHR.js} +3 -3
  117. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-ZZ32DXTH.js} +1 -1
  118. package/dist/bundle/{cli-NPRYCWFH.js → cli-Y27PHKBV.js} +105 -84
  119. package/dist/bundle/command-contract-GB7YA3KW.js +45 -0
  120. package/dist/bundle/{command-server-entry-BV4SUPUI.js → command-server-entry-AXQSW2X6.js} +35 -31
  121. package/dist/bundle/config-2OOABHR7.js +108 -0
  122. package/dist/bundle/{decode-PRMKCHHC.js → decode-ZRNOOTUZ.js} +16 -8
  123. package/dist/bundle/{dispatch-EU67WGME.js → dispatch-2GHGPAYH.js} +9 -9
  124. package/dist/bundle/{dist-HGLDGKUW.js → dist-MUFVAMKB.js} +25 -22
  125. package/dist/bundle/{echarts-QIXLXS3G.js → echarts-F4PHDYET.js} +2 -2
  126. package/dist/bundle/{embed-OZN2BIJY.js → embed-KWHCKPCV.js} +7 -7
  127. package/dist/bundle/{embedder-RBDHO6Z6.js → embedder-U3R3RY54.js} +10 -10
  128. package/dist/bundle/{failure-CTJLEB2R.js → failure-S2YXEN4A.js} +3 -3
  129. package/dist/bundle/first-run-F4YR2E2C.js +29 -0
  130. package/dist/bundle/first-screen-HPRHD3VK.js +43 -0
  131. package/dist/bundle/{folders-MSBTAPAG.js → folders-DVTRFQKW.js} +5 -5
  132. package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-JU4YW6QY.js} +1 -1
  133. package/dist/bundle/{main-FPMCCRIQ.js → main-5UCRPACH.js} +24 -24
  134. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-O6ACR2DX.js} +2 -2
  135. package/dist/bundle/meeting-combined-IWU5SPAH.js +26 -0
  136. package/dist/bundle/meeting-model-ILIUJECZ.js +26 -0
  137. package/dist/bundle/meeting-semantic-5DKRGZFS.js +23 -0
  138. package/dist/bundle/{meetings-WYCVHAIP.js → meetings-T2UY35DV.js} +43 -7
  139. package/dist/bundle/{node-IEVT2FSJ.js → node-MAVRAF4M.js} +2 -2
  140. package/dist/bundle/{node-sqlite-O4C6IWSM.js → node-sqlite-TFBQ5NDI.js} +8 -8
  141. package/dist/bundle/{oauth-6VXOUXSE.js → oauth-7IG5HWSY.js} +8 -8
  142. package/dist/bundle/{open-AMUIWV3Y.js → open-3R3N7L3X.js} +6 -6
  143. package/dist/bundle/openai-DD5I3DWC.js +28 -0
  144. package/dist/bundle/{output-file-VDOCYH2G.js → output-file-KKHHAYWF.js} +6 -6
  145. package/dist/bundle/{process-6Q23D3TO.js → process-OIO254NR.js} +1 -1
  146. package/dist/bundle/{program-CF2NKA2A.js → program-IBYRU76H.js} +428 -250
  147. package/dist/bundle/{prompt-N3UZE4ZR.js → prompt-LNEOO7PN.js} +6 -6
  148. package/dist/bundle/{recognize-I5F3K3CZ.js → recognize-2WYLT3PC.js} +5 -5
  149. package/dist/bundle/{remote-CJF5KMMY.js → remote-7EAJEIV7.js} +11 -11
  150. package/dist/bundle/{rerank-6WLY6MKY.js → rerank-DZBZ744F.js} +8 -8
  151. package/dist/bundle/run-log-CCIVRSHP.js +135 -0
  152. package/dist/bundle/{serve-FOQJ3WMX.js → serve-T3KQV5SS.js} +15 -15
  153. package/dist/bundle/{server-OEEGRSQD.js → server-2QQAQZ2J.js} +59 -49
  154. package/dist/bundle/server-OJQMPF2R.js +84 -0
  155. package/dist/bundle/{services-Q6SFESMS.js → services-DETAKMC3.js} +80 -54
  156. package/dist/bundle/{speech-PBVEIG4N.js → speech-HD57JNTK.js} +34 -18
  157. package/dist/bundle/{sqlite-runtime-IWR65V6I.js → sqlite-runtime-OCETZSEZ.js} +7 -7
  158. package/dist/bundle/{state-G54C2N6U.js → state-ZKVQ4DBI.js} +7 -7
  159. package/dist/bundle/{store-D5OLXIFW.js → store-7IZ2WMHF.js} +24 -20
  160. package/dist/bundle/{store-7EWMPTTW.js → store-GEAQ7V5R.js} +26 -22
  161. package/dist/bundle/store-connection-BALCZW7P.js +101 -0
  162. package/dist/bundle/store-maintenance-command-SBT4LDSI.js +76 -0
  163. package/dist/bundle/{streaming-PQEXKTE5.js → streaming-CLBAO3MG.js} +7 -7
  164. package/dist/bundle/{tokens-J7TFHLEG.js → tokens-WH73ZWFI.js} +10 -10
  165. package/dist/bundle/zm.js +9 -9
  166. package/dist/bundle/{zoom-app-SULPMVN4.js → zoom-app-ZDTYMJET.js} +8 -8
  167. package/dist/commands.d.ts.map +1 -1
  168. package/dist/commands.js +3 -0
  169. package/dist/commands.js.map +1 -1
  170. package/dist/first-screen.d.ts.map +1 -1
  171. package/dist/first-screen.js +3 -5
  172. package/dist/first-screen.js.map +1 -1
  173. package/dist/meeting-integration-commands.d.ts.map +1 -1
  174. package/dist/meeting-integration-commands.js +46 -28
  175. package/dist/meeting-integration-commands.js.map +1 -1
  176. package/dist/meeting-search-commands.d.ts.map +1 -1
  177. package/dist/meeting-search-commands.js +6 -5
  178. package/dist/meeting-search-commands.js.map +1 -1
  179. package/dist/meeting-source.d.ts.map +1 -1
  180. package/dist/meeting-source.js +15 -1
  181. package/dist/meeting-source.js.map +1 -1
  182. package/dist/permissions.d.ts +8 -4
  183. package/dist/permissions.d.ts.map +1 -1
  184. package/dist/permissions.js +25 -24
  185. package/dist/permissions.js.map +1 -1
  186. package/dist/program-bindings.d.ts.map +1 -1
  187. package/dist/program-bindings.js +10 -6
  188. package/dist/program-bindings.js.map +1 -1
  189. package/dist/program.d.ts +2 -1
  190. package/dist/program.d.ts.map +1 -1
  191. package/dist/program.js.map +1 -1
  192. package/dist/remote-meetings.d.ts +38 -8
  193. package/dist/remote-meetings.d.ts.map +1 -1
  194. package/dist/remote-meetings.js +52 -29
  195. package/dist/remote-meetings.js.map +1 -1
  196. package/dist/run.d.ts.map +1 -1
  197. package/dist/run.js +4 -2
  198. package/dist/run.js.map +1 -1
  199. package/dist/version.d.ts +1 -1
  200. package/dist/version.js +1 -1
  201. package/dist/zoom-app.d.ts.map +1 -1
  202. package/dist/zoom-app.js +1 -0
  203. package/dist/zoom-app.js.map +1 -1
  204. package/package.json +3 -3
  205. package/skills/zoom-cli/SKILL.md +2 -2
  206. package/dist/bundle/answer-policy-XCKC2LLN.js +0 -110
  207. package/dist/bundle/chunk-NU4FSSMN.js +0 -161
  208. package/dist/bundle/command-contract-OJYRKQHR.js +0 -41
  209. package/dist/bundle/config-UMEV24OE.js +0 -97
  210. package/dist/bundle/first-run-HNCD7U3B.js +0 -29
  211. package/dist/bundle/first-screen-374BBMO6.js +0 -39
  212. package/dist/bundle/openai-MEDN6FSK.js +0 -28
  213. package/dist/bundle/run-log-FKF4ZX4M.js +0 -124
  214. package/dist/bundle/server-BAGY5HEZ.js +0 -74
  215. package/dist/bundle/store-connection-34747SCC.js +0 -90
  216. package/dist/bundle/store-maintenance-command-QBO67F7Z.js +0 -65
  217. /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-VKE77B3F.js} +0 -0
@@ -7,13 +7,15 @@ import {
7
7
  queryError,
8
8
  queryFieldsOf,
9
9
  timezoneOf,
10
- validateQuery
11
- } from "./chunk-3HTJBGNP.js";
10
+ validateQuery,
11
+ walkQuery
12
+ } from "./chunk-IZMRQ3MV.js";
12
13
  import {
13
14
  STEPS,
14
15
  array,
15
16
  boolean,
16
17
  defineSteps,
18
+ exactOptional,
17
19
  integer,
18
20
  isoTime,
19
21
  literal,
@@ -26,25 +28,26 @@ import {
26
28
  pageSchema,
27
29
  picklist,
28
30
  pipe,
31
+ record,
29
32
  reference,
30
33
  safeParse,
31
34
  stepOf,
32
35
  strictObject,
33
36
  string,
34
37
  union
35
- } from "./chunk-4RJL32PF.js";
38
+ } from "./chunk-FS5HPXQN.js";
36
39
  import {
37
40
  CliError
38
- } from "./chunk-EA2OB75T.js";
41
+ } from "./chunk-4QNW4NK6.js";
39
42
  import {
40
43
  singleLine,
41
44
  visibleControls
42
- } from "./chunk-HCZYJMBP.js";
45
+ } from "./chunk-KYKW2W6X.js";
43
46
  import {
44
47
  __name
45
48
  } from "./chunk-ZVVMGPBJ.js";
46
49
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/service-query.js
50
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/search/service-query.js
48
51
  var BACKENDS = ["archive", "server", "both"];
49
52
  var MAX_BRANCHES = 64;
50
53
  var some = /* @__PURE__ */ __name((value) => value === void 0 ? [] : [value], "some");
@@ -79,8 +82,11 @@ var windowOf = /* @__PURE__ */ __name(({ lower, upper, lower_inclusive, upper_in
79
82
  ...lower === void 0 ? {} : { from: lower_inclusive ? lower : lower + 1 },
80
83
  ...upper === void 0 ? {} : { to: upper_inclusive ? upper : upper - 1 }
81
84
  }), "windowOf");
85
+ var RELATIVE_TIME = /^\d+[mhd]$/i;
86
+ var OFFSET = /(?:Z|[+-]\d{2}:?\d{2})$/i;
87
+ var readsZone = /* @__PURE__ */ __name((ast, times) => walkQuery(ast.root).some((term) => times.has(term.field) && [term.value, term.upper].some((value) => value !== void 0 && value !== "*" && !RELATIVE_TIME.test(value) && !OFFSET.test(value))), "readsZone");
82
88
 
83
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/reference.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/reference.js
84
90
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
85
91
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
86
92
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -98,8 +104,8 @@ var formatMeetingReference = /* @__PURE__ */ __name((reference2) => {
98
104
  }
99
105
  return `meeting:${parts.join("/")}`;
100
106
  }, "formatMeetingReference");
101
- var parseMeetingReference = /* @__PURE__ */ __name((text8) => {
102
- const value = text8.trim();
107
+ var parseMeetingReference = /* @__PURE__ */ __name((text9) => {
108
+ const value = text9.trim();
103
109
  if (!value.startsWith("meeting:"))
104
110
  throw invalid();
105
111
  const parts = value.slice(8).split("/");
@@ -115,9 +121,9 @@ var parseMeetingReference = /* @__PURE__ */ __name((text8) => {
115
121
  };
116
122
  return reference2;
117
123
  }, "parseMeetingReference");
118
- var canonicalMeetingReference = /* @__PURE__ */ __name((text8) => formatMeetingReference(parseMeetingReference(text8)), "canonicalMeetingReference");
124
+ var canonicalMeetingReference = /* @__PURE__ */ __name((text9) => formatMeetingReference(parseMeetingReference(text9)), "canonicalMeetingReference");
119
125
 
120
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/item.js
126
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/item.js
121
127
  var text = string();
122
128
  var count = pipe(number(), integer(), minValue(0));
123
129
  var MEETING_ISSUES = ["time_without_zone"];
@@ -156,7 +162,7 @@ var meetingEntries = {
156
162
  };
157
163
  var meeting = strictObject(meetingEntries);
158
164
  var MEETING_UNTRUSTED = ["title", "description", "location"];
159
- var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
165
+ var iso = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
160
166
  var meetingItem = /* @__PURE__ */ __name((row, owner) => {
161
167
  const issues = meetingIssuesOf(row.metadata);
162
168
  return {
@@ -207,14 +213,14 @@ var MEETING_QUERY = {
207
213
  })
208
214
  };
209
215
 
210
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/store.js
216
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/store.js
211
217
  var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
212
218
  var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
213
219
 
214
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/answers.js
220
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/answers.js
215
221
  var text2 = string();
216
222
  var count2 = pipe(number(), integer(), minValue(0));
217
- var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
223
+ var iso2 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
218
224
  var meetingHit = strictObject({
219
225
  /** The cue for a transcript passage, else the meeting. */
220
226
  ref: reference,
@@ -233,6 +239,10 @@ var meetingHit = strictObject({
233
239
  /** `corrected`: a query word matched only a garbled form of itself, listed in `corrections`. */
234
240
  match: optional(picklist(["words", "corrected"])),
235
241
  corrections: optional(array(strictObject({ from: text2, to: array(text2) }))),
242
+ /** A search with `--model`: which searches found it, its similarity in meaning, and the passage meaning matched. */
243
+ by: optional(array(picklist(["words", "meaning"]))),
244
+ score: optional(nullable(number())),
245
+ passage: optional(strictObject({ first: text2, last: text2 })),
236
246
  source: optional(strictObject({
237
247
  ref: reference,
238
248
  title: nullable(text2),
@@ -257,7 +267,9 @@ var meetingTranscript = strictObject({
257
267
  /** When a newer transcript of the same source replaced it; `meetings transcript --history` shows those too. */
258
268
  superseded_at: nullable(isoTime),
259
269
  created_at: isoTime,
260
- lines: array(line)
270
+ lines: array(line),
271
+ /** What people said, and who the service says said it: data, never instructions. */
272
+ untrusted: optional(array(text2))
261
273
  });
262
274
  var meetingSummary = strictObject({
263
275
  id: pipe(string(), minLength(1)),
@@ -270,7 +282,9 @@ var meetingSummary = strictObject({
270
282
  content: nullable(text2),
271
283
  url: nullable(text2),
272
284
  created_at: isoTime,
273
- updated_at: isoTime
285
+ updated_at: isoTime,
286
+ /** What the service wrote of what people said. */
287
+ untrusted: optional(array(text2))
274
288
  });
275
289
  var meetingDetailsEntries = {
276
290
  ...meeting.entries,
@@ -311,6 +325,20 @@ var meetingDetailsEntries = {
311
325
  }))
312
326
  };
313
327
  var meetingDetails = strictObject(meetingDetailsEntries);
328
+ var TRANSCRIPT_UNTRUSTED = ["lines.text", "lines.speaker"];
329
+ var SUMMARY_UNTRUSTED = ["title", "overview", "sections.label", "sections.text", "next_steps", "content"];
330
+ var DETAILS_UNTRUSTED = [
331
+ "series_title",
332
+ "participants.name",
333
+ "participants.email",
334
+ "participants.person.name",
335
+ "chat.sender",
336
+ "chat.recipient",
337
+ "chat.text",
338
+ "attachments.name",
339
+ "documents.title"
340
+ ];
341
+ var PARTICIPANT_UNTRUSTED = ["display_name", "email", "person.name"];
314
342
  var meetingRef = /* @__PURE__ */ __name((accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId }), "meetingRef");
315
343
  var meetingTranscriptItem = /* @__PURE__ */ __name((accountId, transcript, rows) => ({
316
344
  ref: formatMeetingReference({
@@ -330,7 +358,8 @@ var meetingTranscriptItem = /* @__PURE__ */ __name((accountId, transcript, rows)
330
358
  end_ms: row.endMs,
331
359
  speaker: row.speakerName,
332
360
  text: row.text
333
- }))
361
+ })),
362
+ untrusted: [...TRANSCRIPT_UNTRUSTED]
334
363
  }), "meetingTranscriptItem");
335
364
  var meetingSummaryItem = /* @__PURE__ */ __name((accountId, summary) => ({
336
365
  id: String(summary.id),
@@ -338,17 +367,20 @@ var meetingSummaryItem = /* @__PURE__ */ __name((accountId, summary) => ({
338
367
  source: summary.source,
339
368
  title: summary.title,
340
369
  overview: summary.overview,
341
- sections: summary.sections.map(({ label: label2, text: text8 }) => ({ label: label2, text: text8 })),
370
+ sections: summary.sections.map(({ label: label2, text: text9 }) => ({ label: label2, text: text9 })),
342
371
  next_steps: summary.nextSteps,
343
372
  content: summary.content,
344
373
  url: summary.docUrl,
345
374
  created_at: new Date(summary.externalCreatedAt ?? summary.createdAt).toISOString(),
346
- updated_at: new Date(summary.externalUpdatedAt ?? summary.updatedAt).toISOString()
375
+ updated_at: new Date(summary.externalUpdatedAt ?? summary.updatedAt).toISOString(),
376
+ untrusted: [...SUMMARY_UNTRUSTED]
347
377
  }), "meetingSummaryItem");
348
378
  var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
349
379
  const { accountId } = details.meeting;
380
+ const item = meetingItem(details.meeting, owner);
350
381
  return {
351
- ...meetingItem(details.meeting, owner),
382
+ ...item,
383
+ untrusted: [...item.untrusted ?? [], ...DETAILS_UNTRUSTED],
352
384
  event_id: details.meeting.eventId === null ? null : String(details.meeting.eventId),
353
385
  series_id: details.meeting.meetingSeriesId === null ? null : String(details.meeting.meetingSeriesId),
354
386
  series_title: details.series?.title ?? null,
@@ -466,7 +498,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
466
498
  };
467
499
  }, "meetingHitsList");
468
500
 
469
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
501
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
470
502
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
471
503
  const parsed = urlOf(url);
472
504
  if (!parsed)
@@ -500,15 +532,15 @@ var urlOf = /* @__PURE__ */ __name((url) => {
500
532
  }
501
533
  }, "urlOf");
502
534
 
503
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
535
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
504
536
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
505
537
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
506
538
  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");
507
- var withoutLinkQueries = /* @__PURE__ */ __name((text8) => text8.replace(/https?:\/\/[^\s<>"')\]]+/giu, (url) => joinUrlWithoutQuery(url) ?? ""), "withoutLinkQueries");
508
- var calendarText = /* @__PURE__ */ __name((text8, { dropSecretLines = true } = {}) => {
509
- if (!text8)
539
+ var withoutLinkQueries = /* @__PURE__ */ __name((text9) => text9.replace(/https?:\/\/[^\s<>"')\]]+/giu, (url) => joinUrlWithoutQuery(url) ?? ""), "withoutLinkQueries");
540
+ var calendarText = /* @__PURE__ */ __name((text9, { dropSecretLines = true } = {}) => {
541
+ if (!text9)
510
542
  return null;
511
- const kept = htmlToText(text8).split(/\r?\n/u).map((line2) => withoutLinkQueries(line2).replace(/[ \t]+/gu, " ").trim()).filter((line2) => !dropSecretLines || !SECRET_LINE.test(line2));
543
+ const kept = htmlToText(text9).split(/\r?\n/u).map((line2) => withoutLinkQueries(line2).replace(/[ \t]+/gu, " ").trim()).filter((line2) => !dropSecretLines || !SECRET_LINE.test(line2));
512
544
  const joined = kept.join("\n").replace(/\n{3,}/gu, "\n\n").trim();
513
545
  return joined || null;
514
546
  }, "calendarText");
@@ -537,7 +569,564 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
537
569
  return kept;
538
570
  }, "entryMetadata");
539
571
 
540
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
572
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/calls.js
573
+ var CALL_DIRECTIONS = ["incoming", "outgoing", "internal"];
574
+ var CALL_OUTCOMES = ["answered", "voicemail", "busy", "no_answer", "failed"];
575
+ var MISSED_OUTCOMES = ["voicemail", "busy", "no_answer"];
576
+ var isRecord = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRecord");
577
+ var milliseconds = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0 ? Math.round(value) : null, "milliseconds");
578
+ var word = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim() ? value.trim() : null, "word");
579
+ var DIRECTION_WORDS = {
580
+ incoming: "incoming",
581
+ inbound: "incoming",
582
+ outgoing: "outgoing",
583
+ outbound: "outgoing",
584
+ internal: "internal"
585
+ };
586
+ var directionOf = /* @__PURE__ */ __name((value) => {
587
+ const found = word(value)?.toLowerCase();
588
+ return found === void 0 ? null : DIRECTION_WORDS[found] ?? null;
589
+ }, "directionOf");
590
+ var outcomeOf = /* @__PURE__ */ __name((value) => {
591
+ const found = word(value);
592
+ return found && CALL_OUTCOMES.includes(found) ? found : null;
593
+ }, "outcomeOf");
594
+ var numbers = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.map(word).filter((one) => one !== null) : [], "numbers");
595
+ var callOf = /* @__PURE__ */ __name((stored) => {
596
+ const metadata = isRecord(stored.metadata) ? stored.metadata : {};
597
+ const direction = directionOf(metadata.direction);
598
+ const outcome = outcomeOf(metadata.outcome);
599
+ const clientParticipant = stored.participants.find((one) => one.role === "client");
600
+ if (direction === null && outcome === null && !clientParticipant)
601
+ return null;
602
+ const managers = stored.participants.filter((one) => one.role === "manager");
603
+ const byExtension = /* @__PURE__ */ __name((number2) => {
604
+ const found = managers.find((one) => one.externalId === number2);
605
+ return {
606
+ key: `extension:${number2}`,
607
+ name: found?.name ?? null,
608
+ identityId: found?.identityId ?? null,
609
+ extension: number2
610
+ };
611
+ }, "byExtension");
612
+ const placed = word(metadata.placedBy);
613
+ const answeredBy = numbers(metadata.answeredBy).map(byExtension);
614
+ const rang = numbers(metadata.rang).map(byExtension);
615
+ const placedBy = placed === null ? null : byExtension(placed);
616
+ const named = [placedBy, ...answeredBy, ...rang].filter((one) => one !== null);
617
+ const listed2 = managers.filter((one) => !named.some((employee2) => employee2.identityId === one.identityId)).map((one) => ({
618
+ key: `identity:${one.identityId}`,
619
+ name: one.name,
620
+ identityId: one.identityId,
621
+ extension: one.externalId
622
+ }));
623
+ const employees = [...new Map([...named, ...listed2].map((one) => [one.key, one])).values()];
624
+ return {
625
+ meetingId: stored.meetingId,
626
+ startedAt: stored.startedAt,
627
+ direction,
628
+ outcome,
629
+ waitMs: milliseconds(metadata.waitMs),
630
+ talkMs: milliseconds(metadata.talkMs),
631
+ durationMs: milliseconds(metadata.durationMs) ?? milliseconds(stored.durationMs),
632
+ client: clientParticipant ? { key: clientParticipant.identityKey, name: clientParticipant.name, identityId: clientParticipant.identityId } : null,
633
+ placedBy,
634
+ roles: ["placedBy", "answeredBy", "rang"].some((key) => key in metadata),
635
+ answeredBy,
636
+ rang,
637
+ employees
638
+ };
639
+ }, "callOf");
640
+
641
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/call-answers.js
642
+ var count3 = pipe(number(), integer(), minValue(0));
643
+ var ms = count3;
644
+ var id = pipe(number(), integer(), minValue(1));
645
+ var counts = /* @__PURE__ */ __name((keys) => strictObject(Object.fromEntries([...keys, "unknown"].map((key) => [key, count3]))), "counts");
646
+ var maybe = exactOptional;
647
+ var employee = strictObject({
648
+ /** `extension:<number>`, or `identity:<id>` where the provider names no extension. */
649
+ key: string(),
650
+ name: nullable(string()),
651
+ identity_id: nullable(id),
652
+ extension: nullable(string()),
653
+ calls: count3,
654
+ incoming: count3,
655
+ outgoing: count3,
656
+ internal: count3,
657
+ placed: maybe(count3),
658
+ answered: maybe(count3),
659
+ rang_not_answered: maybe(count3),
660
+ talk_ms: maybe(ms),
661
+ mean_talk_ms: maybe(nullable(ms)),
662
+ mean_wait_ms: maybe(nullable(ms)),
663
+ max_wait_ms: maybe(nullable(ms))
664
+ });
665
+ var periodFields = {
666
+ calls: count3,
667
+ incoming: count3,
668
+ outgoing: count3,
669
+ internal: count3,
670
+ answered: maybe(count3),
671
+ missed: maybe(count3),
672
+ talk_ms: maybe(ms)
673
+ };
674
+ var callRef = strictObject({ ref: reference, meeting_id: id, started_at: nullable(isoTime) });
675
+ var callStatsSchema = strictObject({
676
+ time_zone: string(),
677
+ callback_within_ms: ms,
678
+ short_call_under_ms: ms,
679
+ calls: count3,
680
+ /** Selected meetings that are not calls. */
681
+ not_calls: count3,
682
+ /** How many calls give each field; `roles` says who placed, answered and rang. */
683
+ known: strictObject({
684
+ direction: count3,
685
+ outcome: count3,
686
+ wait_ms: count3,
687
+ talk_ms: count3,
688
+ duration_ms: count3,
689
+ roles: count3
690
+ }),
691
+ by_direction: maybe(counts(CALL_DIRECTIONS)),
692
+ by_outcome: maybe(counts(CALL_OUTCOMES)),
693
+ talk_ms: maybe(ms),
694
+ mean_talk_ms: maybe(ms),
695
+ duration_ms: maybe(ms),
696
+ mean_wait_ms: maybe(nullable(ms)),
697
+ max_wait_ms: maybe(nullable(ms)),
698
+ short_calls: maybe(count3),
699
+ employees: array(employee),
700
+ /** Hours 0–23 in `time_zone`. */
701
+ hours: array(strictObject({ hour: pipe(count3, maxValue(23)), ...periodFields })),
702
+ /** `YYYY-MM-DD` in `time_zone`, the days with a call. */
703
+ days: array(strictObject({ date: string(), ...periodFields })),
704
+ missed: maybe(strictObject({
705
+ calls: count3,
706
+ called_back: count3,
707
+ not_called_back: count3,
708
+ unknown_callback: count3,
709
+ unknown_outcome: count3,
710
+ /** Newest first. */
711
+ items: array(strictObject({
712
+ ...callRef.entries,
713
+ outcome: picklist(["voicemail", "busy", "no_answer"]),
714
+ client: nullable(strictObject({ key: string(), name: nullable(string()) })),
715
+ rang: array(string()),
716
+ called_back: maybe(boolean()),
717
+ callback: maybe(nullable(strictObject({ ...callRef.entries, after_ms: ms, direction: picklist(["outgoing", "incoming"]) })))
718
+ })),
719
+ has_more: boolean()
720
+ }))
721
+ });
722
+ var callStats = callStatsSchema;
723
+ var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
724
+ var has = /* @__PURE__ */ __name((key, value) => value === void 0 ? {} : { [key]: value }, "has");
725
+ var periodItem = /* @__PURE__ */ __name((row) => ({
726
+ calls: row.calls,
727
+ incoming: row.incoming,
728
+ outgoing: row.outgoing,
729
+ internal: row.internal,
730
+ ...has("answered", row.answered),
731
+ ...has("missed", row.missed),
732
+ ...has("talk_ms", row.talkMs)
733
+ }), "periodItem");
734
+ var callStatsItem = /* @__PURE__ */ __name((found) => {
735
+ const refOf = /* @__PURE__ */ __name((meetingId, startedAt) => ({
736
+ ref: formatMeetingReference({ type: "meeting", accountId: found.accountId, meetingId }),
737
+ meeting_id: meetingId,
738
+ started_at: iso3(startedAt)
739
+ }), "refOf");
740
+ return {
741
+ time_zone: found.timeZone,
742
+ callback_within_ms: found.callbackWithinMs,
743
+ short_call_under_ms: found.shortCallUnderMs,
744
+ calls: found.calls,
745
+ not_calls: found.notCalls,
746
+ known: {
747
+ direction: found.known.direction,
748
+ outcome: found.known.outcome,
749
+ wait_ms: found.known.waitMs,
750
+ talk_ms: found.known.talkMs,
751
+ duration_ms: found.known.durationMs,
752
+ roles: found.known.roles
753
+ },
754
+ ...has("by_direction", found.byDirection),
755
+ ...has("by_outcome", found.byOutcome),
756
+ ...has("talk_ms", found.talkMs),
757
+ ...has("mean_talk_ms", found.meanTalkMs),
758
+ ...has("duration_ms", found.durationMs),
759
+ ...has("mean_wait_ms", found.meanWaitMs),
760
+ ...has("max_wait_ms", found.maxWaitMs),
761
+ ...has("short_calls", found.shortCalls),
762
+ employees: found.employees.map((one) => ({
763
+ key: one.key,
764
+ name: one.name,
765
+ identity_id: one.identityId,
766
+ extension: one.extension,
767
+ calls: one.calls,
768
+ incoming: one.incoming,
769
+ outgoing: one.outgoing,
770
+ internal: one.internal,
771
+ ...has("placed", one.placed),
772
+ ...has("answered", one.answered),
773
+ ...has("rang_not_answered", one.rangNotAnswered),
774
+ ...has("talk_ms", one.talkMs),
775
+ ...has("mean_talk_ms", one.meanTalkMs),
776
+ ...has("mean_wait_ms", one.meanWaitMs),
777
+ ...has("max_wait_ms", one.maxWaitMs)
778
+ })),
779
+ hours: found.hours.map((row) => ({ hour: row.hour, ...periodItem(row) })),
780
+ days: found.days.map((row) => ({ date: row.date, ...periodItem(row) })),
781
+ ...has("missed", found.missed && {
782
+ calls: found.missed.calls,
783
+ called_back: found.missed.calledBack,
784
+ not_called_back: found.missed.notCalledBack,
785
+ unknown_callback: found.missed.unknownCallback,
786
+ unknown_outcome: found.missed.unknownOutcome,
787
+ items: found.missed.items.map((one) => ({
788
+ ...refOf(one.meetingId, one.startedAt),
789
+ outcome: one.outcome,
790
+ client: one.client,
791
+ rang: one.rang,
792
+ ...has("called_back", one.calledBack),
793
+ ...has("callback", one.callback === void 0 ? void 0 : one.callback && {
794
+ ...refOf(one.callback.meetingId, one.callback.startedAt),
795
+ after_ms: one.callback.afterMs,
796
+ direction: one.callback.direction
797
+ })
798
+ })),
799
+ has_more: found.missed.hasMore
800
+ })
801
+ };
802
+ }, "callStatsItem");
803
+
804
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/stats.js
805
+ var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
806
+ var zoneOf = /* @__PURE__ */ __name((timeZone) => {
807
+ const zone = timeZone ?? "UTC";
808
+ try {
809
+ new Intl.DateTimeFormat("en", { timeZone: zone });
810
+ } catch {
811
+ throw new CliError("validation_error", "expected an IANA time zone such as Europe/Madrid");
812
+ }
813
+ return zone;
814
+ }, "zoneOf");
815
+ var DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
816
+ var weekStart = /* @__PURE__ */ __name((at, format) => {
817
+ const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
818
+ const day2 = Date.UTC(Number(parts.year), Number(parts.month) - 1, Number(parts.day));
819
+ return new Date(day2 - DAYS.indexOf(parts.weekday ?? "Mon") * 864e5).toISOString().slice(0, 10);
820
+ }, "weekStart");
821
+ var dayKey = /* @__PURE__ */ __name((at, format) => {
822
+ const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
823
+ return `${parts.year}-${parts.month}-${parts.day}`;
824
+ }, "dayKey");
825
+ var zoneFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", {
826
+ timeZone: zone,
827
+ year: "numeric",
828
+ month: "2-digit",
829
+ day: "2-digit",
830
+ weekday: "short"
831
+ }), "zoneFormat");
832
+ var NO_SERIES = "no-series";
833
+ var MOST_COUNT_ROWS = 100;
834
+ var minutesOf = /* @__PURE__ */ __name((ms2) => Math.round(ms2 / 6e4), "minutesOf");
835
+ var meanOf = /* @__PURE__ */ __name((ms2, timed) => timed === 0 ? null : Math.round(ms2 / timed / 6e3) / 10, "meanOf");
836
+ var aggregateMeetingCounts = /* @__PURE__ */ __name((meetings, by, timeZone, limit = MOST_COUNT_ROWS) => {
837
+ if (!MEETING_COUNTS_GROUPINGS.includes(by))
838
+ throw new CliError("validation_error", `--by takes ${MEETING_COUNTS_GROUPINGS.join(", ")}`);
839
+ if (!Number.isSafeInteger(limit) || limit < 1)
840
+ throw new CliError("validation_error", "--limit is a positive number");
841
+ const zone = zoneOf(timeZone);
842
+ const format = zoneFormat(zone);
843
+ const sum = /* @__PURE__ */ __name(() => ({ meetings: 0, ms: 0, timed: 0, transcripts: 0 }), "sum");
844
+ const add = /* @__PURE__ */ __name((into, meeting2) => {
845
+ into.meetings += 1;
846
+ if (meeting2.durationMs !== null) {
847
+ into.ms += Math.max(0, meeting2.durationMs);
848
+ into.timed += 1;
849
+ }
850
+ if (meeting2.transcribed)
851
+ into.transcripts += 1;
852
+ }, "add");
853
+ const total = { ...sum(), name: null };
854
+ const groups = /* @__PURE__ */ new Map();
855
+ for (const meeting2 of meetings) {
856
+ add(total, meeting2);
857
+ 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);
858
+ if (key === null)
859
+ continue;
860
+ const group = groups.get(key) ?? { ...sum(), name: by === "series" ? meeting2.seriesTitle : null };
861
+ add(group, meeting2);
862
+ groups.set(key, group);
863
+ }
864
+ 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));
865
+ const kept = ordered.slice(0, limit);
866
+ if (by !== "series")
867
+ kept.reverse();
868
+ const counted = /* @__PURE__ */ __name(({ meetings: count7, ms: ms2, timed, transcripts }) => ({
869
+ meetings: count7,
870
+ minutes: minutesOf(ms2),
871
+ meanMinutes: meanOf(ms2, timed),
872
+ transcripts
873
+ }), "counted");
874
+ return {
875
+ by,
876
+ timeZone: zone,
877
+ ...counted(total),
878
+ rows: kept.map(([key, group]) => ({ key, name: group.name, ...counted(group) })),
879
+ hasMore: ordered.length > limit
880
+ };
881
+ }, "aggregateMeetingCounts");
882
+ var UNKNOWN_SPEAKER = "unknown";
883
+ 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");
884
+ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
885
+ const zone = zoneOf(timeZone);
886
+ const format = zoneFormat(zone);
887
+ const speakers = /* @__PURE__ */ new Map();
888
+ const weeks = /* @__PURE__ */ new Map();
889
+ const meetings = /* @__PURE__ */ new Set();
890
+ let lines = 0;
891
+ let words2 = 0;
892
+ let talkMs = 0;
893
+ for (const row of rows) {
894
+ const talk = Math.max(0, row.endMs - row.startMs);
895
+ meetings.add(row.meetingId);
896
+ lines += 1;
897
+ words2 += row.words;
898
+ talkMs += talk;
899
+ const who = speakerOf(row);
900
+ const held = speakers.get(who.key) ?? {
901
+ key: who.key,
902
+ name: who.name ?? null,
903
+ personId: row.personId,
904
+ identityId: row.personId === null ? row.identityId : null,
905
+ meetings: 0,
906
+ lines: 0,
907
+ words: 0,
908
+ talkMs: 0,
909
+ share: 0,
910
+ seen: /* @__PURE__ */ new Set()
911
+ };
912
+ held.seen.add(row.meetingId);
913
+ held.lines += 1;
914
+ held.words += row.words;
915
+ held.talkMs += talk;
916
+ speakers.set(who.key, held);
917
+ if (row.startedAt !== null) {
918
+ const week = weeks.get(weekStart(row.startedAt, format)) ?? { meetings: /* @__PURE__ */ new Set(), talkMs: 0 };
919
+ week.meetings.add(row.meetingId);
920
+ week.talkMs += talk;
921
+ weeks.set(weekStart(row.startedAt, format), week);
922
+ }
923
+ }
924
+ return {
925
+ timeZone: zone,
926
+ meetings: meetings.size,
927
+ lines,
928
+ words: words2,
929
+ talkMs,
930
+ speakers: [...speakers.values()].map(({ seen, ...speaker }) => ({
931
+ ...speaker,
932
+ meetings: seen.size,
933
+ share: talkMs === 0 ? 0 : Math.round(speaker.talkMs / talkMs * 1e3) / 1e3
934
+ })).sort((a, b) => b.talkMs - a.talkMs || a.key.localeCompare(b.key)),
935
+ weeks: [...weeks.entries()].map(([start, week]) => ({ weekStart: start, meetings: week.meetings.size, talkMs: week.talkMs })).sort((a, b) => a.weekStart.localeCompare(b.weekStart))
936
+ };
937
+ }, "aggregateMeetingStats");
938
+
939
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/call-stats.js
940
+ var CALLBACK_WITHIN_MS = 24 * 60 * 60 * 1e3;
941
+ var SHORT_CALL_UNDER_MS = 3e4;
942
+ var MOST_MISSED = 100;
943
+ var countsOf = /* @__PURE__ */ __name((keys) => Object.fromEntries([...keys, "unknown"].map((key) => [key, 0])), "countsOf");
944
+ var isMissed = /* @__PURE__ */ __name((call) => call.direction === "incoming" && call.outcome !== null && MISSED_OUTCOMES.includes(call.outcome), "isMissed");
945
+ var mean = /* @__PURE__ */ __name((sum, count7) => count7 === 0 ? null : Math.round(sum / count7), "mean");
946
+ var positiveMs = /* @__PURE__ */ __name((value, fallback, name) => {
947
+ const ms2 = value ?? fallback;
948
+ if (!Number.isSafeInteger(ms2) || ms2 < 1)
949
+ throw new CliError("validation_error", `${name} is a positive duration`);
950
+ return ms2;
951
+ }, "positiveMs");
952
+ var hourFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", { timeZone: zone, hour: "2-digit", hourCycle: "h23" }), "hourFormat");
953
+ var answersMissed = /* @__PURE__ */ __name((missed, later, within2) => missed.startedAt !== null && later.startedAt !== null && later.startedAt > missed.startedAt && later.startedAt - missed.startedAt <= within2 && (later.direction === "outgoing" || later.direction === "incoming" && later.outcome === "answered"), "answersMissed");
954
+ var when = /* @__PURE__ */ __name((present, value) => present ? value : {}, "when");
955
+ var period = /* @__PURE__ */ __name(() => ({ calls: 0, incoming: 0, outgoing: 0, internal: 0, answered: 0, missed: 0, talkMs: 0 }), "period");
956
+ var aggregateCallStats = /* @__PURE__ */ __name((calls, options = {}) => {
957
+ const zone = zoneOf(options.timeZone);
958
+ const within2 = positiveMs(options.callbackWithinMs, CALLBACK_WITHIN_MS, "--within");
959
+ const short = positiveMs(options.shortCallUnderMs, SHORT_CALL_UNDER_MS, "the short-call threshold");
960
+ const limit = options.missedLimit ?? MOST_MISSED;
961
+ if (!Number.isSafeInteger(limit) || limit < 0)
962
+ throw new CliError("validation_error", "--limit is a positive number");
963
+ const known = {
964
+ direction: calls.filter((call) => call.direction !== null).length,
965
+ outcome: calls.filter((call) => call.outcome !== null).length,
966
+ waitMs: calls.filter((call) => call.waitMs !== null).length,
967
+ talkMs: calls.filter((call) => call.talkMs !== null).length,
968
+ durationMs: calls.filter((call) => call.durationMs !== null).length,
969
+ roles: calls.filter((call) => call.roles).length
970
+ };
971
+ const has2 = { outcome: known.outcome > 0, talk: known.talkMs > 0, wait: known.waitMs > 0, roles: known.roles > 0 };
972
+ const days = zoneFormat(zone);
973
+ const hourOf = hourFormat(zone);
974
+ const byDirection = countsOf(CALL_DIRECTIONS);
975
+ const byOutcome = countsOf(CALL_OUTCOMES);
976
+ let talk = 0;
977
+ let duration = 0;
978
+ let wait = { sum: 0, count: 0, max: null };
979
+ let shortCalls = 0;
980
+ const employees = /* @__PURE__ */ new Map();
981
+ const hours = Array.from({ length: 24 }, period);
982
+ const dayRows = /* @__PURE__ */ new Map();
983
+ const employee2 = /* @__PURE__ */ __name((one) => {
984
+ const held = employees.get(one.key) ?? {
985
+ ...one,
986
+ ...period(),
987
+ placed: 0,
988
+ rangNotAnswered: 0,
989
+ talks: 0,
990
+ waits: 0,
991
+ waitSum: 0,
992
+ maxWaitMs: null
993
+ };
994
+ held.name ??= one.name;
995
+ held.identityId ??= one.identityId;
996
+ employees.set(one.key, held);
997
+ return held;
998
+ }, "employee");
999
+ const addTo = /* @__PURE__ */ __name((row, call) => {
1000
+ row.calls += 1;
1001
+ if (call.direction)
1002
+ row[call.direction] += 1;
1003
+ if (call.outcome === "answered")
1004
+ row.answered += 1;
1005
+ if (isMissed(call))
1006
+ row.missed += 1;
1007
+ row.talkMs += call.talkMs ?? 0;
1008
+ }, "addTo");
1009
+ for (const call of calls) {
1010
+ byDirection[call.direction ?? "unknown"] += 1;
1011
+ byOutcome[call.outcome ?? "unknown"] += 1;
1012
+ talk += call.talkMs ?? 0;
1013
+ duration += call.durationMs ?? 0;
1014
+ if (call.outcome === "answered" && call.talkMs !== null && call.talkMs < short)
1015
+ shortCalls += 1;
1016
+ if (call.direction === "incoming" && call.outcome === "answered" && call.waitMs !== null)
1017
+ wait = { sum: wait.sum + call.waitMs, count: wait.count + 1, max: Math.max(wait.max ?? 0, call.waitMs) };
1018
+ const talkers = /* @__PURE__ */ new Set([
1019
+ ...call.answeredBy.map(({ key }) => key),
1020
+ ...call.placedBy && call.outcome === "answered" ? [call.placedBy.key] : []
1021
+ ]);
1022
+ for (const one of call.employees) {
1023
+ const held = employee2(one);
1024
+ held.calls += 1;
1025
+ if (call.direction)
1026
+ held[call.direction] += 1;
1027
+ if (call.placedBy?.key === one.key)
1028
+ held.placed += 1;
1029
+ if (call.answeredBy.some(({ key }) => key === one.key))
1030
+ held.answered += 1;
1031
+ if (call.rang.some(({ key }) => key === one.key))
1032
+ held.rangNotAnswered += 1;
1033
+ if (talkers.has(one.key) && call.talkMs !== null) {
1034
+ held.talkMs += call.talkMs;
1035
+ held.talks += 1;
1036
+ }
1037
+ if (call.direction === "incoming" && call.answeredBy[0]?.key === one.key && call.waitMs !== null) {
1038
+ held.waits += 1;
1039
+ held.waitSum += call.waitMs;
1040
+ held.maxWaitMs = Math.max(held.maxWaitMs ?? 0, call.waitMs);
1041
+ }
1042
+ }
1043
+ if (call.startedAt !== null) {
1044
+ const hour = hours[Number(hourOf.format(new Date(call.startedAt))) % 24];
1045
+ if (hour)
1046
+ addTo(hour, call);
1047
+ const date2 = dayKey(call.startedAt, days);
1048
+ const row = dayRows.get(date2) ?? period();
1049
+ addTo(row, call);
1050
+ dayRows.set(date2, row);
1051
+ }
1052
+ }
1053
+ const periodOf = /* @__PURE__ */ __name(({ answered, missed, talkMs, ...row }) => ({
1054
+ ...row,
1055
+ ...when(has2.outcome, { answered, missed }),
1056
+ ...when(has2.talk, { talkMs })
1057
+ }), "periodOf");
1058
+ const byClient = /* @__PURE__ */ new Map();
1059
+ for (const call of [...calls, ...options.later ?? []]) {
1060
+ if (!call.client)
1061
+ continue;
1062
+ const list = byClient.get(call.client.key) ?? [];
1063
+ list.push(call);
1064
+ byClient.set(call.client.key, list);
1065
+ }
1066
+ for (const list of byClient.values())
1067
+ list.sort((a, b) => (a.startedAt ?? 0) - (b.startedAt ?? 0));
1068
+ const missedCalls = calls.filter(isMissed).sort((a, b) => (b.startedAt ?? 0) - (a.startedAt ?? 0)).map((call) => {
1069
+ const { client, startedAt } = call;
1070
+ const found = client ? byClient.get(client.key)?.find((one) => answersMissed(call, one, within2)) : void 0;
1071
+ return {
1072
+ meetingId: call.meetingId,
1073
+ startedAt,
1074
+ outcome: call.outcome,
1075
+ client: client ? { key: client.key, name: client.name } : null,
1076
+ rang: call.rang.map(({ key }) => key),
1077
+ ...when(client !== null && startedAt !== null, {
1078
+ calledBack: found !== void 0,
1079
+ callback: found && found.startedAt !== null && startedAt !== null ? {
1080
+ meetingId: found.meetingId,
1081
+ startedAt: found.startedAt,
1082
+ afterMs: found.startedAt - startedAt,
1083
+ direction: found.direction
1084
+ } : null
1085
+ })
1086
+ };
1087
+ });
1088
+ return {
1089
+ timeZone: zone,
1090
+ callbackWithinMs: within2,
1091
+ shortCallUnderMs: short,
1092
+ calls: calls.length,
1093
+ known,
1094
+ ...when(known.direction > 0, { byDirection }),
1095
+ ...when(has2.outcome, { byOutcome }),
1096
+ ...when(has2.talk, { talkMs: talk, meanTalkMs: Math.round(talk / known.talkMs) }),
1097
+ ...when(known.durationMs > 0, { durationMs: duration }),
1098
+ ...when(has2.wait, { meanWaitMs: mean(wait.sum, wait.count), maxWaitMs: wait.max }),
1099
+ ...when(has2.outcome && has2.talk, { shortCalls }),
1100
+ employees: [...employees.values()].map(({ talks, waits, waitSum, placed, answered, rangNotAnswered, talkMs, maxWaitMs, missed: _, ...one }) => ({
1101
+ key: one.key,
1102
+ name: one.name,
1103
+ identityId: one.identityId,
1104
+ extension: one.extension,
1105
+ calls: one.calls,
1106
+ incoming: one.incoming,
1107
+ outgoing: one.outgoing,
1108
+ internal: one.internal,
1109
+ ...when(has2.roles, { placed, answered, rangNotAnswered }),
1110
+ ...when(has2.roles && has2.talk, { talkMs, meanTalkMs: mean(talkMs, talks) }),
1111
+ ...when(has2.roles && has2.wait, { meanWaitMs: mean(waitSum, waits), maxWaitMs })
1112
+ })).sort((a, b) => b.calls - a.calls || a.key.localeCompare(b.key)),
1113
+ hours: hours.map((row, hour) => ({ hour, ...periodOf(row) })),
1114
+ days: [...dayRows.entries()].sort(([a], [b]) => a.localeCompare(b)).map(([date2, row]) => ({ date: date2, ...periodOf(row) })),
1115
+ ...when(has2.outcome, {
1116
+ missed: {
1117
+ calls: missedCalls.length,
1118
+ calledBack: missedCalls.filter((one) => one.calledBack === true).length,
1119
+ notCalledBack: missedCalls.filter((one) => one.calledBack === false).length,
1120
+ unknownCallback: missedCalls.filter((one) => one.calledBack === void 0).length,
1121
+ unknownOutcome: calls.filter((call) => call.direction === "incoming" && call.outcome === null).length,
1122
+ items: missedCalls.slice(0, limit),
1123
+ hasMore: missedCalls.length > limit
1124
+ }
1125
+ })
1126
+ };
1127
+ }, "aggregateCallStats");
1128
+
1129
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
541
1130
  import { createHash } from "node:crypto";
542
1131
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
543
1132
  reference: cue2.reference,
@@ -551,7 +1140,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
551
1140
  text: cue2.text
552
1141
  })).digest("hex"), "meetingCueFingerprint");
553
1142
 
554
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1143
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
555
1144
  var EVENT_QUERY = defineQuery({
556
1145
  entity: "event",
557
1146
  backend: "sql",
@@ -567,7 +1156,8 @@ var EVENT_QUERY = defineQuery({
567
1156
  ]
568
1157
  });
569
1158
 
570
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1159
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1160
+ var PARTICIPANT_RESPONSES = ["needs-action", "accepted", "tentative", "declined", "delegated"];
571
1161
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
572
1162
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
573
1163
  if (entry.recurrenceEndsAt !== null)
@@ -617,7 +1207,7 @@ var eventChange = /* @__PURE__ */ __name((event2, entries, revisions, since) =>
617
1207
  return null;
618
1208
  }, "eventChange");
619
1209
 
620
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/events.js
1210
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/events.js
621
1211
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
622
1212
  const current = await store.meeting(details.meeting.id);
623
1213
  if (!current)
@@ -632,7 +1222,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
632
1222
  endsAt: meeting2.endedAt ?? meeting2.startedAt
633
1223
  });
634
1224
  if (candidates.length > 1) {
635
- await store.reviewMeetingLink?.(meeting2.id, candidates.map(({ id: id4 }) => id4), now);
1225
+ await store.reviewMeetingLink?.(meeting2.id, candidates.map(({ id: id5 }) => id5), now);
636
1226
  return null;
637
1227
  }
638
1228
  let event2 = candidates[0];
@@ -662,8 +1252,8 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
662
1252
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
663
1253
  }, "linkEvent");
664
1254
 
665
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
666
- var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text8) => text8.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1255
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1256
+ var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text9) => text9.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
667
1257
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
668
1258
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
669
1259
  throw new CliError("validation_error", "participant query must contain 1\u2013500 characters without NUL");
@@ -686,7 +1276,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
686
1276
  };
687
1277
  }, "validateMeetingParticipantSearch");
688
1278
 
689
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1279
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/reads.js
690
1280
  var MeetingError = class extends CliError {
691
1281
  static {
692
1282
  __name(this, "MeetingError");
@@ -713,8 +1303,8 @@ var validateFilter = /* @__PURE__ */ __name((filter) => {
713
1303
  if (value !== void 0 && (!Number.isSafeInteger(value) || value < 0))
714
1304
  throw new MeetingError("validation_error", "expected a nonnegative integer");
715
1305
  }, "validateFilter");
716
- var meetingShow = /* @__PURE__ */ __name(async (store, id4, accountId) => {
717
- const details = await store.meeting(positiveInteger(id4));
1306
+ var meetingShow = /* @__PURE__ */ __name(async (store, id5, accountId) => {
1307
+ const details = await store.meeting(positiveInteger(id5));
718
1308
  if (!details || accountId !== void 0 && details.meeting.accountId !== accountId)
719
1309
  throw new MeetingError("not_found", "meeting not found");
720
1310
  return details;
@@ -738,6 +1328,7 @@ var meetingPeople = /* @__PURE__ */ __name(async (store, query, accountId, optio
738
1328
  });
739
1329
  return {
740
1330
  ...packet,
1331
+ items: packet.items.map((one) => ({ ...one, untrusted: [...PARTICIPANT_UNTRUSTED] })),
741
1332
  page: { mode: "cursor", limit, has_more, ...next_cursor ? { next_cursor } : {} },
742
1333
  ...next_cursor ? {
743
1334
  next: [
@@ -758,7 +1349,7 @@ var meetingPeople = /* @__PURE__ */ __name(async (store, query, accountId, optio
758
1349
  }
759
1350
  if (Object.values(options).some((value) => value !== void 0))
760
1351
  throw new MeetingError("configuration_error", "bounded participant lookup needs a selected account and capable store");
761
- return listed(await store.participants(query, accountId));
1352
+ return listed((await store.participants(query, accountId)).map((one) => ({ ...one, untrusted: [...PARTICIPANT_UNTRUSTED] })));
762
1353
  }, "meetingPeople");
763
1354
  var PAGE_NEXT2 = STEPS.find((step) => step.id === "page.next");
764
1355
  var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}) => {
@@ -790,11 +1381,11 @@ var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}) => {
790
1381
  } : {}
791
1382
  };
792
1383
  }, "meetingsList");
793
- var meetingsQuery = /* @__PURE__ */ __name((text8) => {
794
- if (text8 === void 0 || text8.trim() === "")
1384
+ var meetingsQuery = /* @__PURE__ */ __name((text9) => {
1385
+ if (text9 === void 0 || text9.trim() === "")
795
1386
  return void 0;
796
1387
  const context3 = { command: "meetings list", guide: MEETING_QUERY_GUIDE };
797
- const query = parseLucene(text8, { defaultField: "none", ...context3 });
1388
+ const query = parseLucene(text9, { defaultField: "none", ...context3 });
798
1389
  validateQuery(query, MEETING_QUERY, context3);
799
1390
  return query;
800
1391
  }, "meetingsQuery");
@@ -805,34 +1396,34 @@ var ownerOf = /* @__PURE__ */ __name(async (store, accountId) => {
805
1396
  throw new MeetingError("not_found", `meeting account ${accountId} is not in the store`);
806
1397
  return owner;
807
1398
  }, "ownerOf");
808
- var meetingDetailsAnswer = /* @__PURE__ */ __name(async (store, id4, accountId) => {
809
- return meetingDetailsBody(store, await meetingShow(store, id4, accountId));
1399
+ var meetingDetailsAnswer = /* @__PURE__ */ __name(async (store, id5, accountId) => {
1400
+ return meetingDetailsBody(store, await meetingShow(store, id5, accountId));
810
1401
  }, "meetingDetailsAnswer");
811
1402
  var meetingDetailsBody = /* @__PURE__ */ __name(async (store, details) => ({
812
1403
  item: meetingDetailsItem(details, await ownerOf(store, details.meeting.accountId))
813
1404
  }), "meetingDetailsBody");
814
- var meetingTranscriptAnswer = /* @__PURE__ */ __name(async (store, id4, accountId, options = {}) => {
815
- const details = await meetingShow(store, id4, accountId);
1405
+ var meetingTranscriptAnswer = /* @__PURE__ */ __name(async (store, id5, accountId, options = {}) => {
1406
+ const details = await meetingShow(store, id5, accountId);
816
1407
  return wholeList(details.transcripts.filter((t) => (options.history || t.transcript.supersededAt === null) && t.transcript.deletedAt === null).map((t) => meetingTranscriptItem(details.meeting.accountId, t.transcript, t.rows)));
817
1408
  }, "meetingTranscriptAnswer");
818
- var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId) => {
819
- const details = await meetingShow(store, id4, accountId);
1409
+ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId) => {
1410
+ const details = await meetingShow(store, id5, accountId);
820
1411
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
821
1412
  }, "meetingSummaryAnswer");
822
1413
 
823
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/export.js
824
- var timestamp = /* @__PURE__ */ __name((milliseconds) => {
825
- if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
1414
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/export.js
1415
+ var timestamp = /* @__PURE__ */ __name((milliseconds2) => {
1416
+ if (!Number.isSafeInteger(milliseconds2) || milliseconds2 < 0)
826
1417
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
827
- const hours = Math.floor(milliseconds / 36e5);
828
- const minutes = Math.floor(milliseconds % 36e5 / 6e4);
829
- const seconds = Math.floor(milliseconds % 6e4 / 1e3);
830
- return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${String(milliseconds % 1e3).padStart(3, "0")}`;
1418
+ const hours = Math.floor(milliseconds2 / 36e5);
1419
+ const minutes = Math.floor(milliseconds2 % 36e5 / 6e4);
1420
+ const seconds = Math.floor(milliseconds2 % 6e4 / 1e3);
1421
+ return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${String(milliseconds2 % 1e3).padStart(3, "0")}`;
831
1422
  }, "timestamp");
832
- var vttText = /* @__PURE__ */ __name((text8) => {
833
- if (visibleControls(text8) !== text8 || /\n\s*\n/.test(text8))
1423
+ var vttText = /* @__PURE__ */ __name((text9) => {
1424
+ if (visibleControls(text9) !== text9 || /\n\s*\n/.test(text9))
834
1425
  throw new MeetingError("validation_error", "cue paragraphs or control characters require Markdown export");
835
- return text8.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
1426
+ return text9.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
836
1427
  }, "vttText");
837
1428
  var serializeVtt = /* @__PURE__ */ __name((lines) => `WEBVTT
838
1429
 
@@ -850,9 +1441,9 @@ ${speaker}${vttText(line2.text)}
850
1441
 
851
1442
  `;
852
1443
  }).join("")}`, "serializeVtt");
853
- var markdown = /* @__PURE__ */ __name((text8) => visibleControls(text8).replace(/[\\`*_{}[\]()<>#+.!|~]/g, "\\$&"), "markdown");
854
- var heading = /* @__PURE__ */ __name((text8) => markdown(singleLine(text8)), "heading");
855
- var quote = /* @__PURE__ */ __name((text8) => markdown(text8).split(/\r\n|\r|\n/).map((line2) => `> ${line2}`).join("\n"), "quote");
1444
+ var markdown = /* @__PURE__ */ __name((text9) => visibleControls(text9).replace(/[\\`*_{}[\]()<>#+.!|~]/g, "\\$&"), "markdown");
1445
+ var heading = /* @__PURE__ */ __name((text9) => markdown(singleLine(text9)), "heading");
1446
+ var quote = /* @__PURE__ */ __name((text9) => markdown(text9).split(/\r\n|\r|\n/).map((line2) => `> ${line2}`).join("\n"), "quote");
856
1447
  var transcriptsOf = /* @__PURE__ */ __name((details, transcriptId) => {
857
1448
  if (transcriptId !== void 0) {
858
1449
  positiveInteger(transcriptId);
@@ -863,10 +1454,10 @@ var transcriptsOf = /* @__PURE__ */ __name((details, transcriptId) => {
863
1454
  }
864
1455
  return details.transcripts.filter((part) => part.transcript.supersededAt === null && part.transcript.deletedAt === null);
865
1456
  }, "transcriptsOf");
866
- var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
1457
+ var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
867
1458
  if (options.format !== "markdown" && options.format !== "vtt")
868
1459
  throw new MeetingError("validation_error", "export format must be markdown or vtt");
869
- const details = await meetingShow(store, id4, options.accountId);
1460
+ const details = await meetingShow(store, id5, options.accountId);
870
1461
  const transcripts = transcriptsOf(details, options.transcriptId);
871
1462
  let content;
872
1463
  if (options.format === "vtt") {
@@ -912,14 +1503,15 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
912
1503
  meetingId: details.meeting.id,
913
1504
  format: options.format,
914
1505
  filename: `meeting-${details.meeting.id}${options.transcriptId === void 0 ? "" : `-transcript-${options.transcriptId}`}.${options.format === "markdown" ? "md" : "vtt"}`,
915
- content
1506
+ content,
1507
+ untrusted: ["content"]
916
1508
  };
917
1509
  }, "exportMeeting");
918
1510
 
919
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1511
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
920
1512
  import { createHash as createHash2 } from "node:crypto";
921
1513
 
922
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/payment.js
1514
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/payment.js
923
1515
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
924
1516
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
925
1517
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
@@ -1013,7 +1605,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
1013
1605
  return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
1014
1606
  }, "paymentTitle");
1015
1607
 
1016
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1608
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1017
1609
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1018
1610
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
1019
1611
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
@@ -1024,7 +1616,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1024
1616
  return new Date(value).toISOString();
1025
1617
  }, "meetingTimestamp");
1026
1618
 
1027
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1619
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1028
1620
  var TASK_TYPES = ["bug", "feature", "chore"];
1029
1621
  var invalid3 = /* @__PURE__ */ __name((message) => {
1030
1622
  throw new CliError("validation_error", message);
@@ -1037,11 +1629,11 @@ var findingText = /* @__PURE__ */ __name((value, limit) => {
1037
1629
  var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
1038
1630
  var snakeCase = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snakeCase");
1039
1631
  var findingWhere = /* @__PURE__ */ __name((of) => {
1040
- const id4 = typeof of.id === "string" ? of.id : null;
1632
+ const id5 = typeof of.id === "string" ? of.id : null;
1041
1633
  const kind2 = typeof of.kind === "string" ? of.kind : null;
1042
1634
  return {
1043
- where: id4 || kind2 ? ` in ${[id4, kind2 && `(${kind2})`].filter(Boolean).join(" ")}` : "",
1044
- named: { ...id4 ? { finding: id4 } : {}, ...kind2 ? { kind: kind2 } : {} }
1635
+ where: id5 || kind2 ? ` in ${[id5, kind2 && `(${kind2})`].filter(Boolean).join(" ")}` : "",
1636
+ named: { ...id5 ? { finding: id5 } : {}, ...kind2 ? { kind: kind2 } : {} }
1045
1637
  };
1046
1638
  }, "findingWhere");
1047
1639
  var findingFields = /* @__PURE__ */ __name((value, allowed, noun, of = value) => {
@@ -1084,16 +1676,16 @@ var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
1084
1676
  return evidence;
1085
1677
  }, "validEvidence");
1086
1678
  var findingId = /* @__PURE__ */ __name((raw, ids2) => {
1087
- const id4 = findingText(raw, 64);
1088
- if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id4) || ids2.has(id4))
1679
+ const id5 = findingText(raw, 64);
1680
+ if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id5) || ids2.has(id5))
1089
1681
  return invalid3("finding IDs must be unique simple keys");
1090
- ids2.add(id4);
1091
- return id4;
1682
+ ids2.add(id5);
1683
+ return id5;
1092
1684
  }, "findingId");
1093
1685
  var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1094
1686
  if (!finding || typeof finding !== "object")
1095
1687
  return invalid3("a finding is an object");
1096
- const id4 = findingId(finding.id, ids2);
1688
+ const id5 = findingId(finding.id, ids2);
1097
1689
  const project = finding.project === void 0 && rules.anySubject ? void 0 : findingText(finding.project, 64);
1098
1690
  if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
1099
1691
  return invalid3("a finding names a project reference");
@@ -1103,7 +1695,7 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1103
1695
  return invalid3("a task finding names the project the task goes in");
1104
1696
  const evidence = validEvidence(finding.evidence, rules);
1105
1697
  const base = {
1106
- id: id4,
1698
+ id: id5,
1107
1699
  ...project === void 0 ? {} : { project },
1108
1700
  ...finding.subject === void 0 ? {} : { subject: finding.subject },
1109
1701
  evidence
@@ -1179,7 +1771,7 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1179
1771
  };
1180
1772
  }, "validateFinding");
1181
1773
  var support = /* @__PURE__ */ __name((value, evidence, field) => {
1182
- if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
1774
+ if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref2) => typeof ref2 !== "string" || !evidence.some((item) => item.reference === ref2)))
1183
1775
  return invalid3(`${field} lists 1\u20138 references this finding's evidence cites, as plain strings such as ["<reference>"], not evidence objects`);
1184
1776
  return [...new Set(value)].sort();
1185
1777
  }, "support");
@@ -1199,7 +1791,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
1199
1791
  var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1200
1792
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1201
1793
 
1202
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1794
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1203
1795
  var MEETING_FINDINGS_KIND = "meeting_findings";
1204
1796
  var cue = /* @__PURE__ */ __name((raw) => {
1205
1797
  const reference2 = canonicalMeetingReference(raw);
@@ -1210,7 +1802,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1210
1802
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1211
1803
  var meetingFindingFingerprint = findingFingerprint;
1212
1804
 
1213
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1805
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1214
1806
  var context = {
1215
1807
  command: "search meetings",
1216
1808
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1321,9 +1913,9 @@ var liftMeetingFields = /* @__PURE__ */ __name((query, request, now, timezone) =
1321
1913
  return { query: rest, request: next };
1322
1914
  }, "liftMeetingFields");
1323
1915
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
1324
- var meetingWordsQuery = /* @__PURE__ */ __name((text8) => {
1325
- const found = text8.match(/[\p{L}\p{N}\p{M}]+/gu) ?? [];
1326
- const span = { start: 0, end: text8.length };
1916
+ var meetingWordsQuery = /* @__PURE__ */ __name((text9) => {
1917
+ const found = text9.match(/[\p{L}\p{N}\p{M}]+/gu) ?? [];
1918
+ const span = { start: 0, end: text9.length };
1327
1919
  const clauses = found.map((value) => ({
1328
1920
  occur: "must",
1329
1921
  node: { kind: "predicate", field: "text", operator: "term", value, span }
@@ -1332,7 +1924,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text8) => {
1332
1924
  return { version: 1, language: "lucene-v1", root };
1333
1925
  }, "meetingWordsQuery");
1334
1926
 
1335
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/language.js
1927
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/language.js
1336
1928
  var LATIN_WORDS = {
1337
1929
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
1338
1930
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -1341,18 +1933,18 @@ var LATIN_WORDS = {
1341
1933
  it: ["gli", "della", "sono", "perch\xE9", "anche", "questo", "molto", "che", "di", "\xE8"],
1342
1934
  pt: ["n\xE3o", "voc\xEA", "isso", "muito", "ent\xE3o", "com", "uma", "tamb\xE9m", "mas", "eu"]
1343
1935
  };
1344
- var LATIN_LANGUAGE = new Map(Object.entries(LATIN_WORDS).flatMap(([language, words2]) => words2.map((word) => [word, language])));
1936
+ var LATIN_LANGUAGE = new Map(Object.entries(LATIN_WORDS).flatMap(([language, words2]) => words2.map((word2) => [word2, language])));
1345
1937
  var UKRAINIAN = /[іїєґ]/giu;
1346
1938
  var CYRILLIC = new RegExp("\\p{Script=Cyrillic}", "gu");
1347
1939
  var LATIN = new RegExp("\\p{Script=Latin}", "gu");
1348
1940
  var MIN_LETTERS = 20;
1349
1941
  var DOMINANT = 0.75;
1350
- var countOf = /* @__PURE__ */ __name((text8, pattern) => text8.match(pattern)?.length ?? 0, "countOf");
1942
+ var countOf = /* @__PURE__ */ __name((text9, pattern) => text9.match(pattern)?.length ?? 0, "countOf");
1351
1943
  var latinLanguage = /* @__PURE__ */ __name((texts) => {
1352
1944
  const votes = /* @__PURE__ */ new Map();
1353
- for (const text8 of texts)
1354
- for (const word of text8.toLowerCase().split(/[^\p{L}]+/u)) {
1355
- const language = LATIN_LANGUAGE.get(word);
1945
+ for (const text9 of texts)
1946
+ for (const word2 of text9.toLowerCase().split(/[^\p{L}]+/u)) {
1947
+ const language = LATIN_LANGUAGE.get(word2);
1356
1948
  if (language)
1357
1949
  votes.set(language, (votes.get(language) ?? 0) + 1);
1358
1950
  }
@@ -1366,10 +1958,10 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1366
1958
  let cyrillic = 0;
1367
1959
  let latin = 0;
1368
1960
  let ukrainian = 0;
1369
- for (const text8 of all) {
1370
- cyrillic += countOf(text8, CYRILLIC);
1371
- latin += countOf(text8, LATIN);
1372
- ukrainian += countOf(text8, UKRAINIAN);
1961
+ for (const text9 of all) {
1962
+ cyrillic += countOf(text9, CYRILLIC);
1963
+ latin += countOf(text9, LATIN);
1964
+ ukrainian += countOf(text9, UKRAINIAN);
1373
1965
  }
1374
1966
  const letters = cyrillic + latin;
1375
1967
  if (letters < MIN_LETTERS)
@@ -1381,9 +1973,9 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1381
1973
  return null;
1382
1974
  }, "transcriptLanguage");
1383
1975
 
1384
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1385
- var contentHash = /* @__PURE__ */ __name(async (text8) => {
1386
- const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text8));
1976
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1977
+ var contentHash = /* @__PURE__ */ __name(async (text9) => {
1978
+ const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text9));
1387
1979
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
1388
1980
  }, "contentHash");
1389
1981
  var speakerPosition = /* @__PURE__ */ __name((name, participants) => {
@@ -1418,7 +2010,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
1418
2010
  return time;
1419
2011
  }, "timestamp");
1420
2012
 
1421
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2013
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
1422
2014
  var TranscriptTextError = class extends Error {
1423
2015
  static {
1424
2016
  __name(this, "TranscriptTextError");
@@ -1435,10 +2027,10 @@ var LINE = /^\[(\d{2,}):([0-5]\d):([0-5]\d)\]\s*(?:([^:\n]{1,60}):\s*)?([\s\S]*)
1435
2027
  var RULE = /^[—–-]{10,}[^\n]*(?:\n|$)/;
1436
2028
  var EMPTY = /* @__PURE__ */ new Set(["", "\u2014", "-"]);
1437
2029
  var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1438
- const text8 = input.replace(/^/, "").replace(/\r\n?/g, "\n");
2030
+ const text9 = input.replace(/^/, "").replace(/\r\n?/g, "\n");
1439
2031
  const header = { title: null, date: null, meetingId: null, speakers: [] };
1440
2032
  let sawHeader = false;
1441
- for (const line2 of text8.split("\n")) {
2033
+ for (const line2 of text9.split("\n")) {
1442
2034
  if (!line2.trim())
1443
2035
  break;
1444
2036
  for (const [prefix, key] of Object.entries(HEADER)) {
@@ -1455,7 +2047,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1455
2047
  if (!sawHeader)
1456
2048
  throw new TranscriptTextError('a text transcript starts with a header such as "\u0412\u0441\u0442\u0440\u0435\u0447\u0430: \u2026"');
1457
2049
  const found = [];
1458
- for (const block of text8.split(/\n\s*\n/)) {
2050
+ for (const block of text9.split(/\n\s*\n/)) {
1459
2051
  const match = LINE.exec(block.trim().replace(RULE, ""));
1460
2052
  if (!match)
1461
2053
  continue;
@@ -1473,7 +2065,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1473
2065
  return { header, lines };
1474
2066
  }, "parseTranscriptText");
1475
2067
 
1476
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2068
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
1477
2069
  var VttError = class extends Error {
1478
2070
  static {
1479
2071
  __name(this, "VttError");
@@ -1486,15 +2078,15 @@ var millis = /* @__PURE__ */ __name((stamp, lineNo) => {
1486
2078
  const match = TIMESTAMP.exec(stamp);
1487
2079
  if (!match)
1488
2080
  throw new VttError(`line ${lineNo}: "${stamp}" is not a WebVTT timestamp`);
1489
- const [, hours = "0", minutes = "0", seconds = "0", ms = "0"] = match;
1490
- return ((Number(hours) * 60 + Number(minutes)) * 60 + Number(seconds)) * 1e3 + Number(ms);
2081
+ const [, hours = "0", minutes = "0", seconds = "0", ms2 = "0"] = match;
2082
+ return ((Number(hours) * 60 + Number(minutes)) * 60 + Number(seconds)) * 1e3 + Number(ms2);
1491
2083
  }, "millis");
1492
- var splitSpeaker = /* @__PURE__ */ __name((text8) => {
1493
- const firstLine = text8.split("\n", 1)[0] ?? "";
2084
+ var splitSpeaker = /* @__PURE__ */ __name((text9) => {
2085
+ const firstLine = text9.split("\n", 1)[0] ?? "";
1494
2086
  const at = firstLine.indexOf(": ");
1495
2087
  if (at <= 0)
1496
- return { speaker: null, text: text8 };
1497
- return { speaker: firstLine.slice(0, at).trim(), text: text8.slice(at + 2) };
2088
+ return { speaker: null, text: text9 };
2089
+ return { speaker: firstLine.slice(0, at).trim(), text: text9.slice(at + 2) };
1498
2090
  }, "splitSpeaker");
1499
2091
  var parseVtt = /* @__PURE__ */ __name((input) => {
1500
2092
  const lines = input.replace(/^/, "").split(/\r\n|\r|\n/);
@@ -1519,13 +2111,13 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
1519
2111
  const lineNo = start + timingAt + 1;
1520
2112
  const [from = "", rest = ""] = (block[timingAt] ?? "").split("-->");
1521
2113
  const to = rest.trim().split(/\s+/)[0] ?? "";
1522
- const text8 = block.slice(timingAt + 1).join("\n").trim();
1523
- cues.push({ startMs: millis(from.trim(), lineNo), endMs: millis(to, lineNo), ...splitSpeaker(text8) });
2114
+ const text9 = block.slice(timingAt + 1).join("\n").trim();
2115
+ cues.push({ startMs: millis(from.trim(), lineNo), endMs: millis(to, lineNo), ...splitSpeaker(text9) });
1524
2116
  }
1525
2117
  return cues;
1526
2118
  }, "parseVtt");
1527
2119
 
1528
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/import.js
2120
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/import.js
1529
2121
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
1530
2122
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
1531
2123
  for (const file of files) {
@@ -1558,10 +2150,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
1558
2150
  return report;
1559
2151
  }, "importFiles");
1560
2152
 
1561
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/links.js
2153
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/links.js
1562
2154
  var CHAT_MESSAGES_READ = 1e5;
1563
2155
 
1564
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/provider.js
2156
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/provider.js
1565
2157
  var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
1566
2158
  const provider = scope3?.provider;
1567
2159
  const account = scope3?.account;
@@ -1570,20 +2162,99 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
1570
2162
  return Object.freeze({ provider, account });
1571
2163
  }, "snapshotMeetingScope");
1572
2164
 
1573
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2165
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2166
+ var MEETING_FIELD_KEYS = Object.freeze({
2167
+ title: "title",
2168
+ kind: "kind",
2169
+ startTime: "start_time",
2170
+ durationMinutes: "duration_minutes",
2171
+ timezone: "timezone",
2172
+ agenda: "agenda"
2173
+ });
2174
+ var MEETING_FIELDS2 = Object.freeze(Object.keys(MEETING_FIELD_KEYS));
2175
+ var meetingFieldFlag = /* @__PURE__ */ __name((field) => `--${MEETING_FIELD_KEYS[field].replaceAll("_", "-")}`, "meetingFieldFlag");
1574
2176
  var nonempty = /* @__PURE__ */ __name((value, name) => {
1575
2177
  if (typeof value !== "string" || !value.trim())
1576
2178
  throw new CliError("validation_error", `${name} must be nonempty`);
1577
2179
  return value;
1578
2180
  }, "nonempty");
1579
- var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
1580
- if (!change || typeof change !== "object" || Array.isArray(change) || Object.keys(change).some((key) => !["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].includes(key)))
1581
- throw new CliError("validation_error", "unsupported meeting change field");
2181
+ var SNAKE_CASE = /^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/;
2182
+ var isField = /* @__PURE__ */ __name((key) => Object.hasOwn(MEETING_FIELD_KEYS, key), "isField");
2183
+ var declareMeetingFields = /* @__PURE__ */ __name((declared = {}, action = "create") => {
2184
+ const wrong = /* @__PURE__ */ __name((why) => new CliError("configuration_error", `meeting fields: ${why}`), "wrong");
2185
+ const fields2 = declared.fields ?? MEETING_FIELDS2;
2186
+ for (const field of fields2)
2187
+ if (!isField(String(field)))
2188
+ throw wrong(`unknown field ${String(field)}`);
2189
+ if (action === "create" && fields2.includes("kind") && !fields2.includes("startTime"))
2190
+ throw wrong("create declares kind without startTime, so a scheduled meeting could never get its start");
2191
+ const names = /* @__PURE__ */ new Set();
2192
+ const settings = (declared.settings ?? []).map((setting) => {
2193
+ const name = setting?.name;
2194
+ if (typeof name !== "string" || !SNAKE_CASE.test(name))
2195
+ throw wrong(`setting name ${String(name)} is not snake_case`);
2196
+ if (names.has(name))
2197
+ throw wrong(`setting ${name} is declared twice`);
2198
+ names.add(name);
2199
+ if (typeof setting.description !== "string" || !setting.description.trim())
2200
+ throw wrong(`setting ${name} has no description`);
2201
+ if (setting.type === "choice") {
2202
+ const values = setting.values;
2203
+ if (!Array.isArray(values) || !values.length || values.some((value) => typeof value !== "string" || !value))
2204
+ throw wrong(`setting ${name} lists no values`);
2205
+ return Object.freeze({ ...setting, values: Object.freeze([...new Set(values)]) });
2206
+ }
2207
+ if (setting.type !== "boolean" && setting.type !== "text")
2208
+ throw wrong(`setting ${name} has an unknown type`);
2209
+ return Object.freeze({ ...setting });
2210
+ });
2211
+ return Object.freeze({ fields: Object.freeze([...new Set(fields2)]), settings: Object.freeze(settings) });
2212
+ }, "declareMeetingFields");
2213
+ var settingNamed = /* @__PURE__ */ __name((declared, name) => declared.settings.find((setting) => setting.name === name), "settingNamed");
2214
+ var supportedList = /* @__PURE__ */ __name((declared) => {
2215
+ const all = [
2216
+ ...declared.fields.map(meetingFieldFlag),
2217
+ ...declared.settings.map((setting) => `--setting ${setting.name}`)
2218
+ ];
2219
+ return all.length ? all.join(", ") : "nothing";
2220
+ }, "supportedList");
2221
+ var settingValue = /* @__PURE__ */ __name((setting, value) => {
2222
+ const refuse = /* @__PURE__ */ __name((expected) => new CliError("validation_error", `meeting setting ${setting.name} must be ${expected}`), "refuse");
2223
+ if (setting.type === "boolean") {
2224
+ if (typeof value === "boolean")
2225
+ return value;
2226
+ if (value === "true" || value === "false")
2227
+ return value === "true";
2228
+ throw refuse("true or false");
2229
+ }
2230
+ if (typeof value !== "string")
2231
+ throw refuse(setting.type === "choice" ? setting.values.join(", ") : "text");
2232
+ if (setting.type === "choice" && !setting.values.includes(value))
2233
+ throw refuse(`one of ${setting.values.join(", ")}`);
2234
+ if (setting.type === "text" && !value.trim()) {
2235
+ if (!setting.clearable)
2236
+ throw refuse("nonempty text: this service cannot clear it");
2237
+ return "";
2238
+ }
2239
+ return value;
2240
+ }, "settingValue");
2241
+ var validateMeetingChange = /* @__PURE__ */ __name((change, create, rules = {}) => {
2242
+ const declared = rules.declared ?? declareMeetingFields();
2243
+ const action = create ? "create" : "update";
2244
+ if (!change || typeof change !== "object" || Array.isArray(change))
2245
+ throw new CliError("validation_error", "a meeting change must be an object");
2246
+ const undeclared = Object.keys(change).flatMap((key) => change[key] === void 0 || key === "settings" ? [] : isField(key) ? declared.fields.includes(key) ? [] : [meetingFieldFlag(key)] : [key]);
2247
+ const given = change.settings ?? {};
2248
+ if (typeof given !== "object" || Array.isArray(given) || given === null)
2249
+ throw new CliError("validation_error", "meeting settings must be an object of name and value");
2250
+ for (const name of Object.keys(given))
2251
+ if (!settingNamed(declared, name))
2252
+ undeclared.push(`--setting ${name}`);
2253
+ if (undeclared.length)
2254
+ throw new CliError("validation_error", `this service does not take ${undeclared.join(", ")} on ${action}; it takes ${supportedList(declared)}`);
1582
2255
  const result = {};
1583
2256
  if (change.title !== void 0)
1584
2257
  result.title = nonempty(change.title, "meeting title");
1585
- if (create && result.title === void 0)
1586
- throw new CliError("validation_error", "meeting title is required");
1587
2258
  if (change.kind !== void 0) {
1588
2259
  if (change.kind !== "instant" && change.kind !== "scheduled")
1589
2260
  throw new CliError("validation_error", "only instant or scheduled meeting kinds are supported");
@@ -1612,10 +2283,16 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
1612
2283
  throw new CliError("validation_error", "meeting agenda must be text");
1613
2284
  result.agenda = change.agenda;
1614
2285
  }
2286
+ const settings = Object.entries(given).map(([name, value]) => [name, settingValue(settingNamed(declared, name), value)]);
2287
+ if (settings.length)
2288
+ result.settings = Object.freeze(Object.fromEntries(settings));
1615
2289
  if (create) {
1616
- result.kind ??= "scheduled";
2290
+ const schedules = declared.fields.includes("startTime");
2291
+ result.kind ??= result.startTime !== void 0 ? "scheduled" : schedules ? void 0 : "instant";
2292
+ if (result.kind === void 0)
2293
+ throw new CliError("validation_error", declared.fields.includes("kind") ? "give --start-time, or --kind instant for a meeting that starts now" : "give --start-time: this service has no meeting that starts now");
1617
2294
  if (result.kind === "scheduled" && result.startTime === void 0)
1618
- throw new CliError("validation_error", "scheduled meeting start is required");
2295
+ throw new CliError("validation_error", "a scheduled meeting needs --start-time");
1619
2296
  } else if (!Object.keys(result).length)
1620
2297
  throw new CliError("validation_error", "at least one meeting change is required");
1621
2298
  return Object.freeze(result);
@@ -1629,14 +2306,23 @@ var checkCancelled = /* @__PURE__ */ __name((signal) => {
1629
2306
  throw new CliError(timeout ? "timeout" : "cancelled", timeout ? "meeting operation timed out" : "meeting operation cancelled");
1630
2307
  }, "checkCancelled");
1631
2308
  var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) => {
1632
- const { apply, dryRun, signal } = options;
2309
+ const { apply, dryRun, signal, confirm } = options;
1633
2310
  checkCancelled(signal);
1634
2311
  if (apply !== true || dryRun)
1635
2312
  return { applied: false };
2313
+ if (confirm) {
2314
+ await confirm();
2315
+ checkCancelled(signal);
2316
+ }
1636
2317
  return { applied: true, value: await dispatch(signal) };
1637
2318
  }, "dispatchMeetingMutation");
1638
- var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports) => {
2319
+ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports, options = {}) => {
1639
2320
  const fixed = snapshotMeetingScope(scope3);
2321
+ const fields2 = Object.freeze({
2322
+ create: declareMeetingFields(ports.fields?.create, "create"),
2323
+ update: declareMeetingFields(ports.fields?.update, "update")
2324
+ });
2325
+ const now = options.now ?? Date.now;
1640
2326
  const capabilities = {};
1641
2327
  for (const name of ["list", "get", "invitation", "create", "update", "cancel"]) {
1642
2328
  const port = ports[name];
@@ -1644,8 +2330,8 @@ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports) => {
1644
2330
  Object.defineProperty(capabilities, name, { value: port.bind(ports), enumerable: true });
1645
2331
  }
1646
2332
  Object.freeze(capabilities);
1647
- const context3 = /* @__PURE__ */ __name((options) => {
1648
- const signal = options.signal;
2333
+ const context3 = /* @__PURE__ */ __name((options2) => {
2334
+ const signal = options2.signal;
1649
2335
  checkCancelled(signal);
1650
2336
  return Object.freeze({ scope: fixed, ...signal ? { signal } : {} });
1651
2337
  }, "context");
@@ -1657,43 +2343,50 @@ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports) => {
1657
2343
  }, "capability");
1658
2344
  return {
1659
2345
  scope: fixed,
2346
+ /** What `create` and `update` take, with the defaults filled in. */
2347
+ fields: fields2,
1660
2348
  capabilities: Object.freeze(Object.keys(capabilities).filter((name) => typeof capabilities[name] === "function")),
1661
- list(options = {}) {
1662
- return capability("list")(context3(options));
2349
+ list(options2 = {}) {
2350
+ return capability("list")(context3(options2));
1663
2351
  },
1664
- get(id4, options = {}) {
1665
- return capability("get")(nonempty(id4, "meeting id"), context3(options));
2352
+ get(id5, options2 = {}) {
2353
+ return capability("get")(nonempty(id5, "meeting id"), context3(options2));
1666
2354
  },
1667
- invitation(id4, options = {}) {
1668
- return capability("invitation")(nonempty(id4, "meeting id"), context3(options));
2355
+ invitation(id5, options2 = {}) {
2356
+ return capability("invitation")(nonempty(id5, "meeting id"), context3(options2));
1669
2357
  },
1670
- async create(change, options = {}) {
2358
+ async create(change, options2 = {}) {
1671
2359
  const port = capability("create");
1672
- const validated = validateMeetingChange(change, true);
1673
- const ctx = context3(options);
1674
- const outcome = await dispatchMeetingMutation(options, () => port(validated, ctx));
2360
+ const validated = validateMeetingChange(change, true, { declared: fields2.create });
2361
+ const ctx = context3(options2);
2362
+ let sent = validated;
2363
+ const outcome = await dispatchMeetingMutation(options2, () => {
2364
+ if (sent.startTime === void 0)
2365
+ sent = Object.freeze({ ...validated, startTime: new Date(now()).toISOString() });
2366
+ return port(sent, ctx);
2367
+ });
1675
2368
  return {
1676
2369
  action: "create",
1677
2370
  scope: fixed,
1678
- change: validated,
2371
+ change: sent,
1679
2372
  applied: outcome.applied,
1680
2373
  ...outcome.value ? { meeting: outcome.value } : {}
1681
2374
  };
1682
2375
  },
1683
- async update(id4, change, options = {}) {
2376
+ async update(id5, change, options2 = {}) {
1684
2377
  const port = capability("update");
1685
- const validatedId = nonempty(id4, "meeting id");
1686
- const validated = validateMeetingChange(change, false);
1687
- const ctx = context3(options);
1688
- const outcome = await dispatchMeetingMutation(options, () => port(validatedId, validated, ctx));
2378
+ const validatedId = nonempty(id5, "meeting id");
2379
+ const validated = validateMeetingChange(change, false, { declared: fields2.update });
2380
+ const ctx = context3(options2);
2381
+ const outcome = await dispatchMeetingMutation(options2, () => port(validatedId, validated, ctx));
1689
2382
  return { action: "update", scope: fixed, id: validatedId, change: validated, applied: outcome.applied };
1690
2383
  },
1691
- async cancel(id4, options = {}) {
2384
+ async cancel(id5, options2 = {}) {
1692
2385
  const port = capability("cancel");
1693
- const validatedId = nonempty(id4, "meeting id");
1694
- const occurrenceId2 = options.occurrenceId === void 0 ? void 0 : nonempty(options.occurrenceId, "occurrence id");
1695
- const ctx = { ...context3(options), ...occurrenceId2 === void 0 ? {} : { occurrenceId: occurrenceId2 } };
1696
- const outcome = await dispatchMeetingMutation(options, () => port(validatedId, ctx));
2386
+ const validatedId = nonempty(id5, "meeting id");
2387
+ const occurrenceId2 = options2.occurrenceId === void 0 ? void 0 : nonempty(options2.occurrenceId, "occurrence id");
2388
+ const ctx = { ...context3(options2), ...occurrenceId2 === void 0 ? {} : { occurrenceId: occurrenceId2 } };
2389
+ const outcome = await dispatchMeetingMutation(options2, () => port(validatedId, ctx));
1697
2390
  return {
1698
2391
  action: "cancel",
1699
2392
  scope: fixed,
@@ -1705,8 +2398,8 @@ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports) => {
1705
2398
  };
1706
2399
  }, "createMeetingManagement");
1707
2400
 
1708
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
1709
- var id = /* @__PURE__ */ __name((value) => {
2401
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
2402
+ var id2 = /* @__PURE__ */ __name((value) => {
1710
2403
  if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
1711
2404
  throw new CliError("validation_error", "meeting context identifiers must be positive integers");
1712
2405
  return value;
@@ -1722,9 +2415,9 @@ var uid = /* @__PURE__ */ __name((value) => {
1722
2415
  throw new CliError("validation_error", "person UID must be a positive integer");
1723
2416
  return result;
1724
2417
  }, "uid");
1725
- var strings = /* @__PURE__ */ __name((value, count6, length) => {
1726
- if (!Array.isArray(value) || value.length < 1 || value.length > count6)
1727
- throw new CliError("validation_error", `meeting context list must contain 1\u2013${count6} entries`);
2418
+ var strings = /* @__PURE__ */ __name((value, count7, length) => {
2419
+ if (!Array.isArray(value) || value.length < 1 || value.length > count7)
2420
+ throw new CliError("validation_error", `meeting context list must contain 1\u2013${count7} entries`);
1728
2421
  return Object.freeze([...new Set(value.map((entry) => text3(entry, length)))]);
1729
2422
  }, "strings");
1730
2423
  var fields = {
@@ -1776,8 +2469,8 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1776
2469
  case "event.link":
1777
2470
  return Object.freeze({
1778
2471
  action: change.action,
1779
- eventId: change.eventId === null ? null : id(change.eventId),
1780
- ...change.expectedEventId === void 0 ? {} : { expectedEventId: change.expectedEventId === null ? null : id(change.expectedEventId) }
2472
+ eventId: change.eventId === null ? null : id2(change.eventId),
2473
+ ...change.expectedEventId === void 0 ? {} : { expectedEventId: change.expectedEventId === null ? null : id2(change.expectedEventId) }
1781
2474
  });
1782
2475
  case "person.link": {
1783
2476
  const targets = change.targetAccountIds;
@@ -1785,9 +2478,9 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1785
2478
  throw new CliError("validation_error", "target accounts must contain 1\u20131000 identifiers");
1786
2479
  return Object.freeze({
1787
2480
  action: change.action,
1788
- participantId: id(change.participantId),
2481
+ participantId: id2(change.participantId),
1789
2482
  personUid: uid(change.personUid),
1790
- ...targets === void 0 ? {} : { targetAccountIds: Object.freeze([...new Set(targets.map(id))]) },
2483
+ ...targets === void 0 ? {} : { targetAccountIds: Object.freeze([...new Set(targets.map(id2))]) },
1791
2484
  ...change.expectedPersonUid === void 0 ? {} : { expectedPersonUid: change.expectedPersonUid === null ? null : uid(change.expectedPersonUid) }
1792
2485
  });
1793
2486
  }
@@ -1795,7 +2488,7 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1795
2488
  }, "validateMeetingContextChange");
1796
2489
  var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) => {
1797
2490
  const fixed = snapshotMeetingScope(scope3);
1798
- const account = id(accountId);
2491
+ const account = id2(accountId);
1799
2492
  const actions = Object.freeze([...new Set(ports.actions)]);
1800
2493
  if (actions.some((action) => !Object.hasOwn(fields, action)))
1801
2494
  throw new CliError("validation_error", "unsupported meeting context capability");
@@ -1805,7 +2498,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) =>
1805
2498
  accountId: account,
1806
2499
  actions,
1807
2500
  async change(meetingId, input, options = {}) {
1808
- const target = id(meetingId);
2501
+ const target = id2(meetingId);
1809
2502
  const change = validateMeetingContextChange(input);
1810
2503
  if (!actions.includes(change.action))
1811
2504
  throw new CliError("provider_unavailable", `meeting context does not support ${change.action}`);
@@ -1827,7 +2520,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) =>
1827
2520
  };
1828
2521
  }, "createMeetingContext");
1829
2522
 
1830
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2523
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/passage.js
1831
2524
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
1832
2525
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
1833
2526
  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)))
@@ -1840,7 +2533,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
1840
2533
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
1841
2534
  }, "validateMeetingPassage");
1842
2535
 
1843
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2536
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
1844
2537
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
1845
2538
  if (!original || typeof original !== "object" || Array.isArray(original))
1846
2539
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -1865,43 +2558,43 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
1865
2558
  return { ...input, limit, maxReadBytes };
1866
2559
  }, "validateMeetingPreparationContext");
1867
2560
 
1868
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
1869
- var count3 = pipe(number(), integer(), minValue(0));
1870
- var id2 = pipe(string(), minLength(1));
2561
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2562
+ var count4 = pipe(number(), integer(), minValue(0));
2563
+ var id3 = pipe(string(), minLength(1));
1871
2564
  var meetingProjectEvidence = strictObject({
1872
2565
  schema_version: literal(1),
1873
2566
  kind: literal("meeting_project_evidence"),
1874
- account_id: id2,
2567
+ account_id: id3,
1875
2568
  query: string(),
1876
- project: strictObject({ id: id2, name: string(), key: nullable(string()) }),
2569
+ project: strictObject({ id: id3, name: string(), key: nullable(string()) }),
1877
2570
  term: strictObject({
1878
2571
  name: string(),
1879
2572
  kind: picklist(["canonical", "key", "alias"]),
1880
- alias_id: optional(id2)
2573
+ alias_id: optional(id3)
1881
2574
  }),
1882
2575
  hits: array(meetingHit),
1883
2576
  association: literal("unconfirmed-word-evidence"),
1884
- vocabulary_fingerprint: id2,
2577
+ vocabulary_fingerprint: id3,
1885
2578
  selection: strictObject({
1886
- meeting_id: optional(id2),
1887
- identity_id: optional(id2),
1888
- person_id: optional(id2),
1889
- tag_id: optional(id2),
1890
- event_id: optional(id2),
1891
- series_id: optional(id2),
2579
+ meeting_id: optional(id3),
2580
+ identity_id: optional(id3),
2581
+ person_id: optional(id3),
2582
+ tag_id: optional(id3),
2583
+ event_id: optional(id3),
2584
+ series_id: optional(id3),
1892
2585
  since: optional(isoTime),
1893
2586
  until: optional(isoTime)
1894
2587
  }),
1895
- limits: strictObject({ limit: count3, max_read_bytes: count3, max_vocabulary_read_bytes: count3, max_terms: count3 }),
2588
+ limits: strictObject({ limit: count4, max_read_bytes: count4, max_vocabulary_read_bytes: count4, max_terms: count4 }),
1896
2589
  page: pageSchema,
1897
2590
  coverage: strictObject({
1898
2591
  archive_completeness: literal("unknown"),
1899
2592
  current_revisions: literal(true),
1900
2593
  indexing: picklist(["ready", "pending"]),
1901
2594
  index_completeness: literal("unknown"),
1902
- term_index: count3,
1903
- terms_total: count3,
1904
- remaining_terms: count3,
2595
+ term_index: count4,
2596
+ terms_total: count4,
2597
+ remaining_terms: count4,
1905
2598
  duplicates: literal("may-repeat-between-terms")
1906
2599
  })
1907
2600
  });
@@ -1986,7 +2679,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
1986
2679
  };
1987
2680
  }, "meetingProjectEvidenceAnswer");
1988
2681
 
1989
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2682
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
1990
2683
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
1991
2684
  const integer5 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
1992
2685
  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) || [
@@ -2006,7 +2699,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2006
2699
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
2007
2700
  }, "validateMeetingHitSearch");
2008
2701
 
2009
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2702
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2010
2703
  var ids = {
2011
2704
  meeting_id: "meetingId",
2012
2705
  identity_id: "participantIdentityId",
@@ -2097,7 +2790,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
2097
2790
  return { project: project.trim(), options, query: frozen.join(" AND ") };
2098
2791
  }, "prepareMeetingProjectEvidence");
2099
2792
 
2100
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2793
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2101
2794
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
2102
2795
  const prepared = prepareMeetingProjectEvidence(project, request, now);
2103
2796
  const page = await read(prepared.project, prepared.options);
@@ -2105,7 +2798,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
2105
2798
  return meetingProjectEvidenceAnswer(page, prepared);
2106
2799
  }, "readMeetingProjectEvidence");
2107
2800
 
2108
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2801
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2109
2802
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2110
2803
  const { identityExternalId, phone, ...fields2 } = p;
2111
2804
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
@@ -2129,7 +2822,7 @@ var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount
2129
2822
  throw new Error("Meeting ends before it starts");
2130
2823
  const keptEnd = kept?.endedAt ?? null;
2131
2824
  const endedAt = given ?? (keptEnd !== null && keptEnd >= startedAt ? keptEnd : null);
2132
- const count6 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
2825
+ const count7 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
2133
2826
  const metadata = kept?.metadata && m.metadata ? { ...kept.metadata, ...m.metadata } : m.metadata ?? kept?.metadata ?? null;
2134
2827
  const meeting2 = {
2135
2828
  accountId,
@@ -2143,7 +2836,7 @@ var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount
2143
2836
  durationMs: endedAt === null ? null : endedAt - startedAt,
2144
2837
  timezone: m.timezone ?? kept?.timezone ?? null,
2145
2838
  hostIdentityId: kept?.hostIdentityId ?? null,
2146
- ...count6 === void 0 ? {} : { participantsCount: count6 },
2839
+ ...count7 === void 0 ? {} : { participantsCount: count7 },
2147
2840
  metadata,
2148
2841
  deletedAt: null
2149
2842
  };
@@ -2162,9 +2855,9 @@ var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount
2162
2855
  return meeting2;
2163
2856
  }, "sourceMeetingInput");
2164
2857
  var saveSourceMeeting = /* @__PURE__ */ __name(async (source, store, m, parts, { accountId, now, kept }) => {
2165
- const id4 = m.occurrence.id;
2858
+ const id5 = m.occurrence.id;
2166
2859
  const { participants: sourceParticipants, transcript: lines, chat, summary } = parts;
2167
- const participants = participantInputs(source.provider, id4, sourceParticipants ?? [], accountId);
2860
+ const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], accountId);
2168
2861
  const meeting2 = sourceMeetingInput(m, accountId, sourceParticipants === void 0 ? void 0 : sourceParticipants?.length ?? null, kept);
2169
2862
  const linked = sourceParticipants !== void 0;
2170
2863
  const format = source.transcriptFormat ?? null;
@@ -2214,11 +2907,11 @@ var startOf = /* @__PURE__ */ __name((m) => {
2214
2907
  }, "startOf");
2215
2908
  var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2216
2909
  const now = options.now ?? Date.now();
2217
- for (const [name, ms] of [
2910
+ for (const [name, ms2] of [
2218
2911
  ["lookbackMs", options.lookbackMs ?? 0],
2219
2912
  ["overlapMs", source.overlapMs ?? 0]
2220
2913
  ])
2221
- if (!Number.isSafeInteger(ms) || ms < 0 || ms > 31 * 864e5)
2914
+ if (!Number.isSafeInteger(ms2) || ms2 < 0 || ms2 > 31 * 864e5)
2222
2915
  throw new Error(`${name} must be an integer from 0 through 31 days`);
2223
2916
  const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
2224
2917
  const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
@@ -2253,7 +2946,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2253
2946
  await linkCallers();
2254
2947
  return report;
2255
2948
  }
2256
- const id4 = m.occurrence.id;
2949
+ const id5 = m.occurrence.id;
2257
2950
  const failedHere = /* @__PURE__ */ __name(() => {
2258
2951
  failed = true;
2259
2952
  firstFailed ??= startOf(m);
@@ -2264,13 +2957,13 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2264
2957
  } catch (error) {
2265
2958
  failedHere();
2266
2959
  const message = error instanceof Error ? error.message : "could not be read";
2267
- report.warnings.push({ externalId: id4, message: `${part}: ${message}` });
2960
+ report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
2268
2961
  return void 0;
2269
2962
  }
2270
2963
  }, "read");
2271
2964
  try {
2272
- const sourceParticipants = await read("participants", () => source.participants(id4));
2273
- const participants = participantInputs(source.provider, id4, sourceParticipants ?? [], options.accountId);
2965
+ const sourceParticipants = await read("participants", () => source.participants(id5));
2966
+ const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], options.accountId);
2274
2967
  const names = /* @__PURE__ */ new Map();
2275
2968
  for (const p of participants)
2276
2969
  if (p.displayName !== null) {
@@ -2279,13 +2972,13 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2279
2972
  names.set(p.displayName, identities);
2280
2973
  }
2281
2974
  if ([...names.values()].some((ids2) => ids2.size > 1))
2282
- report.warnings.push({ externalId: id4, message: "Participant names are ambiguous" });
2283
- const lines = await read("transcript", () => source.transcript(id4));
2284
- const chat = await read("chat", () => source.chat(id4));
2285
- const summary = await read("summary", () => source.summary(id4));
2286
- const attachments = await read("files", () => source.files(id4));
2975
+ report.warnings.push({ externalId: id5, message: "Participant names are ambiguous" });
2976
+ const lines = await read("transcript", () => source.transcript(id5));
2977
+ const chat = await read("chat", () => source.chat(id5));
2978
+ const summary = await read("summary", () => source.summary(id5));
2979
+ const attachments = await read("files", () => source.files(id5));
2287
2980
  const listDocuments = source.documents?.bind(source);
2288
- const documents = listDocuments ? await read("documents", () => listDocuments(id4)) : void 0;
2981
+ const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
2289
2982
  await saveSourceMeeting(source, store, m, { participants: sourceParticipants, transcript: lines, chat, summary, files: attachments, documents }, { accountId: options.accountId, now });
2290
2983
  for (const p of participants)
2291
2984
  if (p.identity.phone)
@@ -2296,7 +2989,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2296
2989
  report.summaries += summary ? 1 : 0;
2297
2990
  } catch (error) {
2298
2991
  failedHere();
2299
- report.warnings.push({ externalId: id4, message: error instanceof Error ? error.message : "Meeting pull failed" });
2992
+ report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
2300
2993
  }
2301
2994
  }
2302
2995
  await linkCallers();
@@ -2305,24 +2998,24 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2305
2998
  return report;
2306
2999
  }, "pull");
2307
3000
 
2308
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
3001
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2309
3002
  var text4 = string();
2310
- var count4 = pipe(number(), integer(), minValue(0));
2311
- var id3 = pipe(number(), integer(), minValue(1));
2312
- var iso3 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
3003
+ var count5 = pipe(number(), integer(), minValue(0));
3004
+ var id4 = pipe(number(), integer(), minValue(1));
3005
+ var iso4 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
2313
3006
  var meetingRef2 = /* @__PURE__ */ __name((accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId }), "meetingRef");
2314
3007
  var meetingReview = strictObject({
2315
3008
  ref: reference,
2316
3009
  id: pipe(string(), minLength(1)),
2317
3010
  title: nullable(text4),
2318
3011
  started_at: nullable(isoTime),
2319
- duration_ms: nullable(count4),
2320
- participants_count: nullable(count4),
3012
+ duration_ms: nullable(count5),
3013
+ participants_count: nullable(count5),
2321
3014
  projects: array(text4),
2322
3015
  /** Null when the meeting has no current transcript. */
2323
- transcript: nullable(strictObject({ lines: count4, words: count4 })),
3016
+ transcript: nullable(strictObject({ lines: count5, words: count5 })),
2324
3017
  /** The three who talked longest. */
2325
- speakers: array(strictObject({ name: nullable(text4), talk_ms: count4 })),
3018
+ speakers: array(strictObject({ name: nullable(text4), talk_ms: count5 })),
2326
3019
  /** The newest stored summary; null when there is none. */
2327
3020
  summary: nullable(strictObject({
2328
3021
  source: text4,
@@ -2336,7 +3029,7 @@ var meetingReviewItem = /* @__PURE__ */ __name((one) => ({
2336
3029
  ref: meetingRef2(one.accountId, one.meetingId),
2337
3030
  id: String(one.meetingId),
2338
3031
  title: one.title,
2339
- started_at: iso3(one.startedAt),
3032
+ started_at: iso4(one.startedAt),
2340
3033
  duration_ms: one.durationMs,
2341
3034
  participants_count: one.participantsCount,
2342
3035
  projects: one.projects,
@@ -2355,7 +3048,7 @@ var meetingLink = strictObject({
2355
3048
  domain: nullable(text4),
2356
3049
  /** The Google Docs, Sheets, Slides, Forms or Drive file it names. */
2357
3050
  document_id: nullable(text4),
2358
- count: count4,
3051
+ count: count5,
2359
3052
  first_at: isoTime,
2360
3053
  last_at: isoTime,
2361
3054
  senders: array(text4),
@@ -2375,12 +3068,12 @@ var meetingSpeaker = strictObject({
2375
3068
  /** `person:<id>`, `identity:<id>`, `name:<lowercased name>` or `unknown`. */
2376
3069
  key: text4,
2377
3070
  name: nullable(text4),
2378
- person_id: nullable(id3),
2379
- identity_id: nullable(id3),
2380
- meetings: count4,
2381
- lines: count4,
2382
- words: count4,
2383
- talk_ms: count4,
3071
+ person_id: nullable(id4),
3072
+ identity_id: nullable(id4),
3073
+ meetings: count5,
3074
+ lines: count5,
3075
+ words: count5,
3076
+ talk_ms: count5,
2384
3077
  /** This speaker's part of all talk time, 0–1. */
2385
3078
  share: pipe(number(), minValue(0), maxValue(1))
2386
3079
  });
@@ -2397,12 +3090,12 @@ var meetingSpeakerItem = /* @__PURE__ */ __name((one) => ({
2397
3090
  }), "meetingSpeakerItem");
2398
3091
  var meetingStats = strictObject({
2399
3092
  time_zone: text4,
2400
- meetings: count4,
2401
- lines: count4,
2402
- words: count4,
2403
- talk_ms: count4,
3093
+ meetings: count5,
3094
+ lines: count5,
3095
+ words: count5,
3096
+ talk_ms: count5,
2404
3097
  /** `week_start` is the Monday, as a date in `time_zone`. */
2405
- weeks: array(strictObject({ week_start: text4, meetings: count4, talk_ms: count4 })),
3098
+ weeks: array(strictObject({ week_start: text4, meetings: count5, talk_ms: count5 })),
2406
3099
  top_speakers: array(meetingSpeaker)
2407
3100
  });
2408
3101
  var meetingStatsItem = /* @__PURE__ */ __name((found, top = 10) => ({
@@ -2417,17 +3110,17 @@ var meetingStatsItem = /* @__PURE__ */ __name((found, top = 10) => ({
2417
3110
  var meetingCountsRow = strictObject({
2418
3111
  key: text4,
2419
3112
  name: nullable(text4),
2420
- meetings: count4,
2421
- minutes: count4,
3113
+ meetings: count5,
3114
+ minutes: count5,
2422
3115
  mean_minutes: nullable(number()),
2423
- transcripts: count4
3116
+ transcripts: count5
2424
3117
  });
2425
3118
  var meetingCounts = strictObject({
2426
3119
  by: picklist(["day", "week", "series"]),
2427
- meetings: count4,
2428
- minutes: count4,
3120
+ meetings: count5,
3121
+ minutes: count5,
2429
3122
  mean_minutes: nullable(number()),
2430
- transcripts: count4,
3123
+ transcripts: count5,
2431
3124
  rows: array(meetingCountsRow),
2432
3125
  has_more: boolean()
2433
3126
  });
@@ -2452,27 +3145,28 @@ var truncated = /* @__PURE__ */ __name((...why) => nullable(picklist(why)), "tru
2452
3145
  var meetingParticipants = strictObject({
2453
3146
  schema_version: literal(1),
2454
3147
  kind: literal("meeting_participants"),
2455
- account_id: id3,
3148
+ account_id: id4,
2456
3149
  query: text4,
2457
3150
  items: array(strictObject({
2458
- participant_id: id3,
2459
- meeting_id: id3,
2460
- identity_id: id3,
3151
+ participant_id: id4,
3152
+ meeting_id: id4,
3153
+ identity_id: id4,
2461
3154
  display_name: nullable(text4),
2462
3155
  email: nullable(text4),
2463
- person: nullable(strictObject({ ref: text4, name: nullable(text4) }))
3156
+ person: nullable(strictObject({ ref: text4, name: nullable(text4) })),
3157
+ untrusted: optional(array(text4))
2464
3158
  })),
2465
3159
  /** Several identities on one page are observations, never speaker attribution or person links. */
2466
- ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id3) }),
3160
+ ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id4) }),
2467
3161
  coverage: strictObject({
2468
- scanned: count4,
2469
- read_bytes: count4,
3162
+ scanned: count5,
3163
+ read_bytes: count5,
2470
3164
  archive_completeness: literal("unknown"),
2471
3165
  truncated_by: truncated("limit", "scan_limit", "read_bytes")
2472
3166
  }),
2473
3167
  page: strictObject({
2474
3168
  mode: literal("cursor"),
2475
- limit: count4,
3169
+ limit: count5,
2476
3170
  has_more: boolean(),
2477
3171
  next_cursor: optional(text4)
2478
3172
  })
@@ -2486,12 +3180,12 @@ var meetingPassage = strictObject({
2486
3180
  target_fingerprint: text4,
2487
3181
  fingerprint: text4,
2488
3182
  revision,
2489
- limits: strictObject({ before: count4, after: count4, bytes: count4, max_read_bytes: count4 }),
2490
- content_bytes: count4,
3183
+ limits: strictObject({ before: count5, after: count5, bytes: count5, max_read_bytes: count5 }),
3184
+ content_bytes: count5,
2491
3185
  coverage: strictObject({
2492
- included: count4,
2493
- before: count4,
2494
- after: count4,
3186
+ included: count5,
3187
+ before: count5,
3188
+ after: count5,
2495
3189
  has_before: boolean(),
2496
3190
  has_after: boolean(),
2497
3191
  truncated_by: truncated("bytes"),
@@ -2504,12 +3198,12 @@ var meetingPassage = strictObject({
2504
3198
  items: array(strictObject({
2505
3199
  ref: reference,
2506
3200
  fingerprint: text4,
2507
- transcript_id: id3,
3201
+ transcript_id: id4,
2508
3202
  content_hash: nullable(text4),
2509
- position: count4,
2510
- start_ms: count4,
2511
- end_ms: count4,
2512
- speaker_participant_id: nullable(id3),
3203
+ position: count5,
3204
+ start_ms: count5,
3205
+ end_ms: count5,
3206
+ speaker_participant_id: nullable(id4),
2513
3207
  speaker_name: nullable(text4),
2514
3208
  text: text4,
2515
3209
  revision
@@ -2554,19 +3248,19 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2554
3248
  title: one.title,
2555
3249
  description: one.description,
2556
3250
  location: one.location,
2557
- starts_at: iso3(one.startsAt),
2558
- ends_at: iso3(one.endsAt),
3251
+ starts_at: iso4(one.startsAt),
3252
+ ends_at: iso4(one.endsAt),
2559
3253
  timezone: one.timezone,
2560
3254
  origin: one.origin,
2561
3255
  status: one.status ?? null,
2562
3256
  all_day: one.allDay === true,
2563
- source_deleted_at: iso3(one.sourceDeletedAt ?? null),
2564
- deleted_at: iso3(one.deletedAt),
3257
+ source_deleted_at: iso4(one.sourceDeletedAt ?? null),
3258
+ deleted_at: iso4(one.deletedAt),
2565
3259
  created_at: new Date(one.createdAt).toISOString(),
2566
3260
  updated_at: new Date(one.updatedAt).toISOString()
2567
3261
  }), "eventItem");
2568
3262
 
2569
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/read-through.js
3263
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/read-through.js
2570
3264
  var MEETING_SERVER_BOUNDS = { calls: 3, pages: 2 };
2571
3265
  var ISSUES = {
2572
3266
  offline: ["permission_error", "meetings.server-offline"],
@@ -2758,6 +3452,13 @@ var askServerForList = /* @__PURE__ */ __name(async (source, store, accountId, q
2758
3452
  return step;
2759
3453
  }, "askServerForList");
2760
3454
  var meetingsListThrough = /* @__PURE__ */ __name(async (source, store, filter, access) => {
3455
+ const listed2 = await listThrough(source, store, filter, access);
3456
+ if (!filter.query || !readsZone(filter.query, MEETING_TIMES))
3457
+ return listed2;
3458
+ return { ...listed2, meta: { ...listed2.meta, timezone: timezoneOf(access.timezone) } };
3459
+ }, "meetingsListThrough");
3460
+ var MEETING_TIMES = new Set(MEETING_QUERY.fields.filter(({ type }) => type === "time").map(({ name }) => name));
3461
+ var listThrough = /* @__PURE__ */ __name(async (source, store, filter, access) => {
2761
3462
  const now = access.now ?? Date.now();
2762
3463
  const zoned = { ...filter, timezone: timezoneOf(access.timezone), now };
2763
3464
  const step = await askServerForList(source, store, filter.accountId, filter.query, { ...access, now });
@@ -2777,22 +3478,22 @@ var meetingsListThrough = /* @__PURE__ */ __name(async (source, store, filter, a
2777
3478
  items: list.items.map((item) => ({ ...item, found_in: step.found.get(Number(item.id)) ?? "archive" })),
2778
3479
  ...extras
2779
3480
  };
2780
- }, "meetingsListThrough");
3481
+ }, "listThrough");
2781
3482
  var storedMeeting = /* @__PURE__ */ __name(async (store, accountId, meeting2) => {
2782
- const text8 = meeting2.trim();
3483
+ const text9 = meeting2.trim();
2783
3484
  const own = /* @__PURE__ */ __name((details) => details?.meeting.accountId === accountId ? details : null, "own");
2784
- if (/^[1-9]\d*$/.test(text8) && Number.isSafeInteger(Number(text8))) {
2785
- const byNumber = own(await store.meeting(Number(text8)));
3485
+ if (/^[1-9]\d*$/.test(text9) && Number.isSafeInteger(Number(text9))) {
3486
+ const byNumber = own(await store.meeting(Number(text9)));
2786
3487
  if (byNumber)
2787
3488
  return byNumber;
2788
3489
  }
2789
- if (text8.startsWith("meeting:")) {
2790
- const reference2 = parseMeetingReference(text8);
3490
+ if (text9.startsWith("meeting:")) {
3491
+ const reference2 = parseMeetingReference(text9);
2791
3492
  if (reference2.accountId !== accountId)
2792
3493
  throw new MeetingError("not_found", "meeting not found");
2793
3494
  return own(await store.meeting(reference2.meetingId));
2794
3495
  }
2795
- return store.meetingByExternalId ? own(await store.meetingByExternalId(accountId, text8)) : null;
3496
+ return store.meetingByExternalId ? own(await store.meetingByExternalId(accountId, text9)) : null;
2796
3497
  }, "storedMeeting");
2797
3498
  var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId, meeting2, access) => {
2798
3499
  if (!meeting2.trim())
@@ -2847,10 +3548,10 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
2847
3548
  return { details: fresh, foundIn: step.found.get(details.meeting.id) ?? "server", server: step.report };
2848
3549
  }, "meetingShowThrough");
2849
3550
 
2850
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
3551
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
2851
3552
  import { createHash as createHash3 } from "node:crypto";
2852
3553
 
2853
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/recording-sync.js
3554
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/recording-sync.js
2854
3555
  var RecordingSyncError = class extends CliError {
2855
3556
  static {
2856
3557
  __name(this, "RecordingSyncError");
@@ -3171,7 +3872,7 @@ async function* syncRecordingArchive(catalog, input) {
3171
3872
  }
3172
3873
  __name(syncRecordingArchive, "syncRecordingArchive");
3173
3874
 
3174
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
3875
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
3175
3876
  var fail2 = /* @__PURE__ */ __name((message) => {
3176
3877
  throw new CliError("validation_error", message);
3177
3878
  }, "fail");
@@ -3278,7 +3979,7 @@ var installRecordingArchiveSchedule = /* @__PURE__ */ __name(async (scheduler, v
3278
3979
  return { applied: true, backend, schedule };
3279
3980
  }, "installRecordingArchiveSchedule");
3280
3981
 
3281
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
3982
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
3282
3983
  var RecordingTransferError = class extends CliError {
3283
3984
  static {
3284
3985
  __name(this, "RecordingTransferError");
@@ -3443,7 +4144,7 @@ var transferRecording = /* @__PURE__ */ __name(async (source, storage, options)
3443
4144
  }
3444
4145
  }, "transferRecording");
3445
4146
 
3446
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
4147
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
3447
4148
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
3448
4149
  if (!original || typeof original !== "object" || Array.isArray(original))
3449
4150
  throw new CliError("validation_error", "related history request is required");
@@ -3454,7 +4155,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
3454
4155
  const positive = /* @__PURE__ */ __name((value) => Number.isSafeInteger(value) && value > 0, "positive");
3455
4156
  if (!positive(input.accountId) || !positive(input.seriesId))
3456
4157
  throw new CliError("validation_error", "accountId and seriesId must be positive safe integers");
3457
- if (!Array.isArray(input.anchorIds) || input.anchorIds.length > 20 || input.anchorIds.some((id4) => !positive(id4)))
4158
+ if (!Array.isArray(input.anchorIds) || input.anchorIds.length > 20 || input.anchorIds.some((id5) => !positive(id5)))
3458
4159
  throw new CliError("validation_error", "anchorIds must contain at most 20 positive safe integers");
3459
4160
  for (const key of ["after", "before"])
3460
4161
  if (!Number.isSafeInteger(input[key]) || Math.abs(input[key]) > 864e13)
@@ -3473,23 +4174,29 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
3473
4174
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
3474
4175
  }, "validateMeetingRelatedHistory");
3475
4176
 
3476
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
4177
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
3477
4178
  var text7 = string();
3478
4179
  var identifier = pipe(text7, minLength(1));
3479
4180
  var nullableText2 = nullable(text7);
3480
- var count5 = pipe(number(), integer(), minValue(0));
4181
+ var count6 = pipe(number(), integer(), minValue(0));
3481
4182
  var flag = boolean();
3482
4183
  var scope2 = strictObject({ provider: text7, account: text7 });
3483
4184
  var run = strictObject({
3484
- meetings: count5,
3485
- participants: count5,
3486
- transcript_rows: count5,
3487
- summaries: count5,
4185
+ meetings: count6,
4186
+ participants: count6,
4187
+ transcript_rows: count6,
4188
+ summaries: count6,
3488
4189
  warnings: array(strictObject({ external_id: text7, message: text7 })),
3489
4190
  timezone: optional(text7)
3490
4191
  });
3491
4192
  var exported = union([
3492
- strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text7, content: text7 }),
4193
+ strictObject({
4194
+ meeting_id: identifier,
4195
+ format: picklist(["markdown", "vtt"]),
4196
+ filename: text7,
4197
+ content: text7,
4198
+ untrusted: optional(array(text7))
4199
+ }),
3493
4200
  strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text7 })
3494
4201
  ]);
3495
4202
  var eventChange2 = strictObject({
@@ -3537,15 +4244,15 @@ var transcription = union([
3537
4244
  applied: literal(false),
3538
4245
  account_id: identifier,
3539
4246
  external_id: text7,
3540
- segments: count5,
4247
+ segments: count6,
3541
4248
  media: strictObject({
3542
4249
  id: text7,
3543
4250
  content_hash: text7,
3544
- size: count5,
3545
- duration_ms: count5,
4251
+ size: count6,
4252
+ duration_ms: count6,
3546
4253
  format: text7,
3547
- sample_rate: count5,
3548
- channels: count5,
4254
+ sample_rate: count6,
4255
+ channels: count6,
3549
4256
  recognition
3550
4257
  })
3551
4258
  }),
@@ -3555,10 +4262,10 @@ var transcription = union([
3555
4262
  external_id: text7,
3556
4263
  meeting_id: identifier,
3557
4264
  created: flag,
3558
- inserted_transcripts: count5,
3559
- replayed_transcripts: count5,
3560
- superseded_transcripts: count5,
3561
- segments: count5,
4265
+ inserted_transcripts: count6,
4266
+ replayed_transcripts: count6,
4267
+ superseded_transcripts: count6,
4268
+ segments: count6,
3562
4269
  media_sha256: text7,
3563
4270
  engine: text7,
3564
4271
  model: text7,
@@ -3566,12 +4273,12 @@ var transcription = union([
3566
4273
  timing: picklist(["fixed-windows", "recognition-segments"])
3567
4274
  })
3568
4275
  ]);
3569
- var embeddingModel = strictObject({ key: text7, dims: count5, kind: picklist(["local", "remote"]), model: text7 });
4276
+ var embeddingModel = strictObject({ key: text7, dims: count6, kind: picklist(["local", "remote"]), model: text7 });
3570
4277
  var embedding = union([
3571
4278
  strictObject({
3572
4279
  account_id: identifier,
3573
4280
  model: embeddingModel,
3574
- status: strictObject({ chunks: count5, embedded: count5 }),
4281
+ status: strictObject({ chunks: count6, embedded: count6 }),
3575
4282
  applied: literal(false),
3576
4283
  scope: literal("existing-current-chunks"),
3577
4284
  rebuild_required: literal("explicit")
@@ -3579,14 +4286,14 @@ var embedding = union([
3579
4286
  strictObject({
3580
4287
  account_id: identifier,
3581
4288
  model: embeddingModel,
3582
- saved: count5,
3583
- skipped: count5,
4289
+ saved: count6,
4290
+ skipped: count6,
3584
4291
  has_more: flag,
3585
4292
  next_hash: optional(text7),
3586
4293
  applied: literal(true),
3587
4294
  rebuild: strictObject({
3588
- transcripts: count5,
3589
- chunks: count5,
4295
+ transcripts: count6,
4296
+ chunks: count6,
3590
4297
  has_more: flag,
3591
4298
  next_transcript_id: optional(identifier)
3592
4299
  })
@@ -3595,8 +4302,8 @@ var embedding = union([
3595
4302
  var repair = strictObject({
3596
4303
  account_id: identifier,
3597
4304
  applied: flag,
3598
- transcripts: count5,
3599
- languages: array(strictObject({ language: nullableText2, transcripts: count5 }))
4305
+ transcripts: count6,
4306
+ languages: array(strictObject({ language: nullableText2, transcripts: count6 }))
3600
4307
  });
3601
4308
  var kind = picklist(["instant", "scheduled"]);
3602
4309
  var managedChange = strictObject({
@@ -3609,9 +4316,10 @@ var managedChange = strictObject({
3609
4316
  title: optional(text7),
3610
4317
  kind: optional(kind),
3611
4318
  start_time: optional(text7),
3612
- duration_minutes: optional(count5),
4319
+ duration_minutes: optional(count6),
3613
4320
  timezone: optional(text7),
3614
- agenda: optional(text7)
4321
+ agenda: optional(text7),
4322
+ settings: optional(record(text7, union([text7, flag])))
3615
4323
  })),
3616
4324
  applied: flag,
3617
4325
  meeting: optional(strictObject({
@@ -3619,11 +4327,12 @@ var managedChange = strictObject({
3619
4327
  title: nullableText2,
3620
4328
  kind: nullable(kind),
3621
4329
  start_time: nullableText2,
3622
- duration_minutes: nullable(count5),
4330
+ duration_minutes: nullable(count6),
3623
4331
  timezone: nullableText2,
3624
4332
  agenda: nullableText2,
3625
4333
  join_url: nullableText2
3626
- }))
4334
+ })),
4335
+ untrusted: optional(array(text7))
3627
4336
  });
3628
4337
  var invitation = strictObject({ id: identifier, invitation: text7, untrusted: optional(array(text7)) });
3629
4338
  var MEETING_RESULT_ENTITIES = {
@@ -3637,15 +4346,15 @@ var MEETING_RESULT_ENTITIES = {
3637
4346
  meeting_repair: repair
3638
4347
  };
3639
4348
 
3640
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/review.js
4349
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/review.js
3641
4350
  var REVIEW_LIMIT = { default: 50, most: 200 };
3642
4351
 
3643
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
4352
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3644
4353
  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.";
3645
4354
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
3646
4355
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
3647
4356
 
3648
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
4357
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3649
4358
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3650
4359
  input.signal?.throwIfAborted();
3651
4360
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -3666,10 +4375,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3666
4375
  return { ...input, limit, maxReadBytes };
3667
4376
  }, "validateMeetingSeriesHistory");
3668
4377
 
3669
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
4378
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3670
4379
  import { createHash as createHash4 } from "node:crypto";
3671
4380
 
3672
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
4381
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3673
4382
  var invalid4 = /* @__PURE__ */ __name((field) => {
3674
4383
  throw new CliError("invalid_response", `meeting occurrence ${field} is invalid`);
3675
4384
  }, "invalid");
@@ -3738,7 +4447,7 @@ var readOccurrenceSchedule = /* @__PURE__ */ __name((input, meetingId, limit, ma
3738
4447
  return result;
3739
4448
  }, "readOccurrenceSchedule");
3740
4449
 
3741
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
4450
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3742
4451
  var inventoryHash = /* @__PURE__ */ __name((value) => createHash4("sha256").update(JSON.stringify(value)).digest("hex"), "inventoryHash");
3743
4452
  var inventorySize = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "inventorySize");
3744
4453
  function invalid5(field, response = false) {
@@ -3826,7 +4535,7 @@ var inventoryPage = /* @__PURE__ */ __name((scope3, request, page) => {
3826
4535
  return { items, selection: page.coverage.selection, partial: page.coverage.partial, nextCursor: page.nextCursor };
3827
4536
  }, "inventoryPage");
3828
4537
 
3829
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/series-inventory.js
4538
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/series-inventory.js
3830
4539
  var cancelled3 = /* @__PURE__ */ __name((signal) => {
3831
4540
  if (signal?.aborted)
3832
4541
  throw new CliError("cancelled", "meeting inventory reading was cancelled");
@@ -3882,142 +4591,45 @@ var createMeetingSeriesInventoryReader = /* @__PURE__ */ __name((scope3, port) =
3882
4591
  };
3883
4592
  }, "createMeetingSeriesInventoryReader");
3884
4593
 
3885
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3886
- var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
3887
- var zoneOf = /* @__PURE__ */ __name((timeZone) => {
3888
- const zone = timeZone ?? "UTC";
3889
- try {
3890
- new Intl.DateTimeFormat("en", { timeZone: zone });
3891
- } catch {
3892
- throw new CliError("validation_error", "expected an IANA time zone such as Europe/Madrid");
3893
- }
3894
- return zone;
3895
- }, "zoneOf");
3896
- var DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
3897
- var weekStart = /* @__PURE__ */ __name((at, format) => {
3898
- const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
3899
- const day2 = Date.UTC(Number(parts.year), Number(parts.month) - 1, Number(parts.day));
3900
- return new Date(day2 - DAYS.indexOf(parts.weekday ?? "Mon") * 864e5).toISOString().slice(0, 10);
3901
- }, "weekStart");
3902
- var dayKey = /* @__PURE__ */ __name((at, format) => {
3903
- const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
3904
- return `${parts.year}-${parts.month}-${parts.day}`;
3905
- }, "dayKey");
3906
- var zoneFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", {
3907
- timeZone: zone,
3908
- year: "numeric",
3909
- month: "2-digit",
3910
- day: "2-digit",
3911
- weekday: "short"
3912
- }), "zoneFormat");
3913
- var NO_SERIES = "no-series";
3914
- var MOST_COUNT_ROWS = 100;
3915
- var minutesOf = /* @__PURE__ */ __name((ms) => Math.round(ms / 6e4), "minutesOf");
3916
- var meanOf = /* @__PURE__ */ __name((ms, timed) => timed === 0 ? null : Math.round(ms / timed / 6e3) / 10, "meanOf");
3917
- var aggregateMeetingCounts = /* @__PURE__ */ __name((meetings, by, timeZone, limit = MOST_COUNT_ROWS) => {
3918
- if (!MEETING_COUNTS_GROUPINGS.includes(by))
3919
- throw new CliError("validation_error", `--by takes ${MEETING_COUNTS_GROUPINGS.join(", ")}`);
3920
- if (!Number.isSafeInteger(limit) || limit < 1)
3921
- throw new CliError("validation_error", "--limit is a positive number");
3922
- const zone = zoneOf(timeZone);
3923
- const format = zoneFormat(zone);
3924
- const sum = /* @__PURE__ */ __name(() => ({ meetings: 0, ms: 0, timed: 0, transcripts: 0 }), "sum");
3925
- const add = /* @__PURE__ */ __name((into, meeting2) => {
3926
- into.meetings += 1;
3927
- if (meeting2.durationMs !== null) {
3928
- into.ms += Math.max(0, meeting2.durationMs);
3929
- into.timed += 1;
3930
- }
3931
- if (meeting2.transcribed)
3932
- into.transcripts += 1;
3933
- }, "add");
3934
- const total = { ...sum(), name: null };
3935
- const groups = /* @__PURE__ */ new Map();
3936
- for (const meeting2 of meetings) {
3937
- add(total, meeting2);
3938
- 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);
3939
- if (key === null)
3940
- continue;
3941
- const group = groups.get(key) ?? { ...sum(), name: by === "series" ? meeting2.seriesTitle : null };
3942
- add(group, meeting2);
3943
- groups.set(key, group);
3944
- }
3945
- 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));
3946
- const kept = ordered.slice(0, limit);
3947
- if (by !== "series")
3948
- kept.reverse();
3949
- const counted = /* @__PURE__ */ __name(({ meetings: count6, ms, timed, transcripts }) => ({
3950
- meetings: count6,
3951
- minutes: minutesOf(ms),
3952
- meanMinutes: meanOf(ms, timed),
3953
- transcripts
3954
- }), "counted");
3955
- return {
3956
- by,
3957
- timeZone: zone,
3958
- ...counted(total),
3959
- rows: kept.map(([key, group]) => ({ key, name: group.name, ...counted(group) })),
3960
- hasMore: ordered.length > limit
3961
- };
3962
- }, "aggregateMeetingCounts");
3963
- var UNKNOWN_SPEAKER = "unknown";
3964
- 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");
3965
- var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3966
- const zone = zoneOf(timeZone);
3967
- const format = zoneFormat(zone);
3968
- const speakers = /* @__PURE__ */ new Map();
3969
- const weeks = /* @__PURE__ */ new Map();
3970
- const meetings = /* @__PURE__ */ new Set();
3971
- let lines = 0;
3972
- let words2 = 0;
3973
- let talkMs = 0;
3974
- for (const row of rows) {
3975
- const talk = Math.max(0, row.endMs - row.startMs);
3976
- meetings.add(row.meetingId);
3977
- lines += 1;
3978
- words2 += row.words;
3979
- talkMs += talk;
3980
- const who = speakerOf(row);
3981
- const held = speakers.get(who.key) ?? {
3982
- key: who.key,
3983
- name: who.name ?? null,
3984
- personId: row.personId,
3985
- identityId: row.personId === null ? row.identityId : null,
3986
- meetings: 0,
3987
- lines: 0,
3988
- words: 0,
3989
- talkMs: 0,
3990
- share: 0,
3991
- seen: /* @__PURE__ */ new Set()
3992
- };
3993
- held.seen.add(row.meetingId);
3994
- held.lines += 1;
3995
- held.words += row.words;
3996
- held.talkMs += talk;
3997
- speakers.set(who.key, held);
3998
- if (row.startedAt !== null) {
3999
- const week = weeks.get(weekStart(row.startedAt, format)) ?? { meetings: /* @__PURE__ */ new Set(), talkMs: 0 };
4000
- week.meetings.add(row.meetingId);
4001
- week.talkMs += talk;
4002
- weeks.set(weekStart(row.startedAt, format), week);
4003
- }
4004
- }
4005
- return {
4006
- timeZone: zone,
4007
- meetings: meetings.size,
4008
- lines,
4009
- words: words2,
4010
- talkMs,
4011
- speakers: [...speakers.values()].map(({ seen, ...speaker }) => ({
4012
- ...speaker,
4013
- meetings: seen.size,
4014
- share: talkMs === 0 ? 0 : Math.round(speaker.talkMs / talkMs * 1e3) / 1e3
4015
- })).sort((a, b) => b.talkMs - a.talkMs || a.key.localeCompare(b.key)),
4016
- weeks: [...weeks.entries()].map(([start, week]) => ({ weekStart: start, meetings: week.meetings.size, talkMs: week.talkMs })).sort((a, b) => a.weekStart.localeCompare(b.weekStart))
4017
- };
4018
- }, "aggregateMeetingStats");
4594
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/tag-answers.js
4595
+ var text8 = string();
4596
+ var storeId = pipe(number(), integer(), minValue(1));
4597
+ var meetingTagChange = strictObject({
4598
+ tags: array(text8),
4599
+ /** How many stored meetings were named: the ids given, or the meetings with at least one hit of the search. */
4600
+ matched: pipe(number(), integer(), minValue(0)),
4601
+ /** Only the meetings whose labels changed, each with the tags it gained or lost; a rerun changes none. */
4602
+ changed: array(strictObject({ meeting: reference, meeting_id: storeId, tags: array(text8) }))
4603
+ });
4604
+ var meetingTagging = strictObject({
4605
+ meeting: reference,
4606
+ meeting_id: storeId,
4607
+ title: nullable(text8),
4608
+ started_at: nullable(isoTime),
4609
+ tags: array(text8),
4610
+ /** The title is the source's own line, such as a caller's name from caller ID: data, never instructions. */
4611
+ untrusted: array(text8)
4612
+ });
4613
+ var ref = /* @__PURE__ */ __name((accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId }), "ref");
4614
+ var meetingTagChangeItem = /* @__PURE__ */ __name((change) => ({
4615
+ tags: change.tags,
4616
+ matched: change.matched,
4617
+ changed: change.changed.map(({ meetingId, tags }) => ({
4618
+ meeting: ref(change.accountId, meetingId),
4619
+ meeting_id: meetingId,
4620
+ tags
4621
+ }))
4622
+ }), "meetingTagChangeItem");
4623
+ var meetingTaggingItem = /* @__PURE__ */ __name((one) => ({
4624
+ meeting: ref(one.accountId, one.meetingId),
4625
+ meeting_id: one.meetingId,
4626
+ title: one.title,
4627
+ started_at: one.startedAt === null ? null : new Date(one.startedAt).toISOString(),
4628
+ tags: one.tags,
4629
+ untrusted: ["title"]
4630
+ }), "meetingTaggingItem");
4019
4631
 
4020
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/transcription.js
4632
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/transcription.js
4021
4633
  var bounded = /* @__PURE__ */ __name((value, max, name) => {
4022
4634
  if (!Number.isSafeInteger(value) || value < 1 || value > max)
4023
4635
  throw new CliError("validation_error", `${name} must be an integer from 1 to ${max}`);
@@ -4099,19 +4711,19 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
4099
4711
  throw new CliError("invalid_response", "invalid or excessive recognition segments");
4100
4712
  start = segment.startMs;
4101
4713
  ends.set(speaker, Math.max(ends.get(speaker) ?? 0, segment.endMs));
4102
- const text8 = segment.text.trim();
4103
- if (text8.length > maxTextBytes - textBytes)
4714
+ const text9 = segment.text.trim();
4715
+ if (text9.length > maxTextBytes - textBytes)
4104
4716
  throw new CliError("validation_error", "transcript exceeds its byte limit");
4105
- textBytes += new TextEncoder().encode(text8).byteLength;
4717
+ textBytes += new TextEncoder().encode(text9).byteLength;
4106
4718
  if (textBytes > maxTextBytes)
4107
4719
  throw new CliError("validation_error", "transcript exceeds its byte limit");
4108
- if (text8)
4720
+ if (text9)
4109
4721
  rows.push({
4110
4722
  position: rows.length,
4111
4723
  startMs: segment.startMs,
4112
4724
  endMs: segment.endMs,
4113
4725
  speakerName: speaker ?? null,
4114
- text: text8,
4726
+ text: text9,
4115
4727
  normalizedText: null,
4116
4728
  metadata: null
4117
4729
  });
@@ -4153,7 +4765,7 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
4153
4765
  let valid = false;
4154
4766
  try {
4155
4767
  const meeting2 = append?.meeting?.meeting;
4156
- valid = meeting2?.accountId === accountId && meeting2.externalId === externalId && meeting2.deletedAt === null && Number.isSafeInteger(meeting2.id) && meeting2.id > 0 && append.created === false && [append.insertedTranscripts, append.replayedTranscripts, append.supersededTranscripts].every((count6) => Number.isSafeInteger(count6) && count6 >= 0) && append.insertedTranscripts + append.replayedTranscripts === 1;
4768
+ valid = meeting2?.accountId === accountId && meeting2.externalId === externalId && meeting2.deletedAt === null && Number.isSafeInteger(meeting2.id) && meeting2.id > 0 && append.created === false && [append.insertedTranscripts, append.replayedTranscripts, append.supersededTranscripts].every((count7) => Number.isSafeInteger(count7) && count7 >= 0) && append.insertedTranscripts + append.replayedTranscripts === 1;
4157
4769
  } catch {
4158
4770
  valid = false;
4159
4771
  }
@@ -4171,7 +4783,7 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
4171
4783
  };
4172
4784
  }, "transcribeMeeting");
4173
4785
 
4174
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
4786
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
4175
4787
  var cancelled5 = /* @__PURE__ */ __name((signal) => {
4176
4788
  if (!signal?.aborted)
4177
4789
  return;
@@ -4241,14 +4853,14 @@ var createUpcomingMeetingReader = /* @__PURE__ */ __name((scope3, port) => {
4241
4853
  };
4242
4854
  }, "createUpcomingMeetingReader");
4243
4855
 
4244
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/watch.js
4245
- var sleep = /* @__PURE__ */ __name((milliseconds, signal) => new Promise((resolve) => {
4856
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/meetings/watch.js
4857
+ var sleep = /* @__PURE__ */ __name((milliseconds2, signal) => new Promise((resolve) => {
4246
4858
  const finish = /* @__PURE__ */ __name(() => {
4247
4859
  clearTimeout(timer);
4248
4860
  signal.removeEventListener("abort", finish);
4249
4861
  resolve();
4250
4862
  }, "finish");
4251
- const timer = setTimeout(finish, milliseconds);
4863
+ const timer = setTimeout(finish, milliseconds2);
4252
4864
  signal.addEventListener("abort", finish, { once: true });
4253
4865
  }), "sleep");
4254
4866
  var isCancellation = /* @__PURE__ */ __name((error, signal) => {
@@ -4290,6 +4902,7 @@ export {
4290
4902
  serviceCallsOf,
4291
4903
  rangeOf,
4292
4904
  windowOf,
4905
+ readsZone,
4293
4906
  formatMeetingReference,
4294
4907
  parseMeetingReference,
4295
4908
  canonicalMeetingReference,
@@ -4312,8 +4925,22 @@ export {
4312
4925
  calendarText,
4313
4926
  ENTRY_METADATA_KEYS,
4314
4927
  entryMetadata,
4928
+ CALL_DIRECTIONS,
4929
+ CALL_OUTCOMES,
4930
+ MISSED_OUTCOMES,
4931
+ callOf,
4932
+ callStats,
4933
+ callStatsItem,
4934
+ MEETING_COUNTS_GROUPINGS,
4935
+ NO_SERIES,
4936
+ aggregateMeetingCounts,
4937
+ aggregateMeetingStats,
4938
+ CALLBACK_WITHIN_MS,
4939
+ SHORT_CALL_UNDER_MS,
4940
+ aggregateCallStats,
4315
4941
  meetingCueFingerprint,
4316
4942
  EVENT_QUERY,
4943
+ PARTICIPANT_RESPONSES,
4317
4944
  entryInWindow,
4318
4945
  eventChange,
4319
4946
  linkEvent,
@@ -4363,6 +4990,11 @@ export {
4363
4990
  importFiles,
4364
4991
  CHAT_MESSAGES_READ,
4365
4992
  snapshotMeetingScope,
4993
+ MEETING_FIELD_KEYS,
4994
+ MEETING_FIELDS2 as MEETING_FIELDS,
4995
+ meetingFieldFlag,
4996
+ SNAKE_CASE,
4997
+ declareMeetingFields,
4366
4998
  validateMeetingChange,
4367
4999
  dispatchMeetingMutation,
4368
5000
  createMeetingManagement,
@@ -4417,10 +5049,10 @@ export {
4417
5049
  validateMeetingSeriesHistory,
4418
5050
  validateMeetingSeriesInventoryCursor,
4419
5051
  createMeetingSeriesInventoryReader,
4420
- MEETING_COUNTS_GROUPINGS,
4421
- NO_SERIES,
4422
- aggregateMeetingCounts,
4423
- aggregateMeetingStats,
5052
+ meetingTagChange,
5053
+ meetingTagging,
5054
+ meetingTagChangeItem,
5055
+ meetingTaggingItem,
4424
5056
  transcribeMeeting,
4425
5057
  createUpcomingMeetingReader,
4426
5058
  watchMeetingIngestion