@wirecat/zoom-cli 0.77.0 → 0.79.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 (186) hide show
  1. package/dist/bin/zm.js +2 -2
  2. package/dist/bundle/{all-profiles-PMCFNDMA.js → all-profiles-LDSHUH5W.js} +11 -11
  3. package/dist/bundle/answer-policy-VJK4ID2F.js +122 -0
  4. package/dist/bundle/{anthropic-TGJOKLUS.js → anthropic-UH3QWA3F.js} +6 -6
  5. package/dist/bundle/{app-server-OAODUFM3.js → app-server-LFANTLAJ.js} +72 -72
  6. package/dist/bundle/{bun-HJHVHJJV.js → bun-M3J2QTR3.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-PLBOY6FP.js → bun-sqlite-NYP5UH23.js} +7 -7
  8. package/dist/bundle/{chunk-NOF6LABG.js → chunk-2GI63IPV.js} +2 -2
  9. package/dist/bundle/{chunk-CL6QAZGT.js → chunk-2IPIBDXI.js} +13 -13
  10. package/dist/bundle/{chunk-635GRAO5.js → chunk-2LJARGNG.js} +14 -13
  11. package/dist/bundle/{chunk-7S3N5CTA.js → chunk-2N57GL4L.js} +1 -1
  12. package/dist/bundle/{chunk-2QDD6S2R.js → chunk-2OTETB4A.js} +8 -8
  13. package/dist/bundle/{chunk-LUAS73NT.js → chunk-2PUMYKGV.js} +20 -118
  14. package/dist/bundle/{chunk-UGRGYLEI.js → chunk-2W6QGFHF.js} +8 -8
  15. package/dist/bundle/{chunk-NJJEUG4C.js → chunk-3AFZ6Q5N.js} +12 -12
  16. package/dist/bundle/{chunk-T4CI3YXW.js → chunk-3QPAD6YI.js} +6 -6
  17. package/dist/bundle/{chunk-77JQIY2V.js → chunk-4BQN5IFQ.js} +3 -3
  18. package/dist/bundle/{chunk-LWMDLXEO.js → chunk-4S7RUA3U.js} +3397 -3088
  19. package/dist/bundle/{chunk-QE4L2QQZ.js → chunk-4T3J4NCF.js} +9 -9
  20. package/dist/bundle/{chunk-ZUMKZOHR.js → chunk-525BI32C.js} +3 -3
  21. package/dist/bundle/{chunk-PO4RZ4XZ.js → chunk-52ZQ72HL.js} +1 -1
  22. package/dist/bundle/{chunk-CZ6OO66B.js → chunk-5KEOCHBZ.js} +4 -4
  23. package/dist/bundle/{chunk-KYKW2W6X.js → chunk-5RVXXDN7.js} +1 -1
  24. package/dist/bundle/{chunk-XVHDT4CO.js → chunk-63WT3HCY.js} +3 -3
  25. package/dist/bundle/{chunk-6YCFDDRO.js → chunk-65DOVVHQ.js} +1 -1
  26. package/dist/bundle/{chunk-SFPUSEOT.js → chunk-73L5R7AS.js} +2 -2
  27. package/dist/bundle/{chunk-QKNO3JTG.js → chunk-7DTWT7BN.js} +2 -2
  28. package/dist/bundle/{chunk-PM3MB3E7.js → chunk-AWLZZTPW.js} +3 -3
  29. package/dist/bundle/{chunk-CUJJZJ4R.js → chunk-AZB6QXZU.js} +38 -5
  30. package/dist/bundle/{chunk-QAGECFHL.js → chunk-BNEJKGG7.js} +31 -22
  31. package/dist/bundle/{chunk-MTH3JJHF.js → chunk-BOVYOUB3.js} +10 -10
  32. package/dist/bundle/{chunk-DCEQIKFD.js → chunk-BTFPDS52.js} +6 -6
  33. package/dist/bundle/{chunk-YVI5SQPY.js → chunk-CWXOXIWS.js} +1 -1
  34. package/dist/bundle/{chunk-7CMYNW3W.js → chunk-D264RGZ4.js} +4 -4
  35. package/dist/bundle/{chunk-H2EVYY5Z.js → chunk-DFCHHR5M.js} +1 -1
  36. package/dist/bundle/{chunk-ECRFXQHA.js → chunk-DI5JX4SD.js} +1 -1
  37. package/dist/bundle/{chunk-DDUNPLET.js → chunk-DQVCCO7G.js} +261 -177
  38. package/dist/bundle/{chunk-FDQE2CLT.js → chunk-E5WLE7BM.js} +1 -1
  39. package/dist/bundle/{chunk-JFVZVPRW.js → chunk-FIJREKLA.js} +3 -3
  40. package/dist/bundle/{chunk-DYIRJINE.js → chunk-FKA7DOCK.js} +1 -1
  41. package/dist/bundle/{chunk-TY4FFK2P.js → chunk-FMT4CIGN.js} +9 -60
  42. package/dist/bundle/{chunk-LMZUC4CS.js → chunk-FO5UNFFN.js} +4 -4
  43. package/dist/bundle/chunk-FPUGMDJV.js +7 -0
  44. package/dist/bundle/{chunk-ICZVSVTW.js → chunk-GTUBQQU2.js} +64 -61
  45. package/dist/bundle/{chunk-7SNU7RFU.js → chunk-HOXBHGP2.js} +12 -12
  46. package/dist/bundle/{chunk-SP5OMHOO.js → chunk-HVQVCGME.js} +3 -3
  47. package/dist/bundle/{chunk-A6LK2W5J.js → chunk-HZRQLAHO.js} +1 -1
  48. package/dist/bundle/{chunk-B7XFDMFV.js → chunk-I6VDTYML.js} +10 -10
  49. package/dist/bundle/{chunk-7DTU7QZP.js → chunk-I75KOOUD.js} +3 -3
  50. package/dist/bundle/{chunk-JMU3E2WA.js → chunk-IIFRJV3A.js} +2 -2
  51. package/dist/bundle/{chunk-W7UCN7MF.js → chunk-J62BQBVG.js} +3 -3
  52. package/dist/bundle/{chunk-MCLZ74II.js → chunk-JJGUHWLB.js} +7 -7
  53. package/dist/bundle/{chunk-NPDPD2H3.js → chunk-LCCVEX4R.js} +12 -12
  54. package/dist/bundle/{chunk-5A5W322G.js → chunk-LITZ7KPO.js} +2 -2
  55. package/dist/bundle/{chunk-YFN5A7OP.js → chunk-M4RXPZ6K.js} +4 -4
  56. package/dist/bundle/{chunk-GHBDYYPO.js → chunk-M5FW654Z.js} +2 -2
  57. package/dist/bundle/{chunk-6JRBMNRN.js → chunk-N5O3XVX3.js} +3 -3
  58. package/dist/bundle/{chunk-5KHCFIWI.js → chunk-ND7TBQKO.js} +2 -2
  59. package/dist/bundle/{chunk-QUGESVOE.js → chunk-NI7UYGTF.js} +13 -13
  60. package/dist/bundle/{chunk-5C6CRSEM.js → chunk-NKFEEY5M.js} +14 -29
  61. package/dist/bundle/{chunk-Q7ZW7XAX.js → chunk-NQMHYLZO.js} +20 -20
  62. package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-O3DYRCIT.js} +1 -1
  63. package/dist/bundle/{chunk-MIG4RLDB.js → chunk-OLMEJNL4.js} +6 -6
  64. package/dist/bundle/{chunk-NPIVV52M.js → chunk-ONJPUFLX.js} +1 -1
  65. package/dist/bundle/{chunk-36SI35XZ.js → chunk-OZQSTX4J.js} +5 -5
  66. package/dist/bundle/{chunk-OXXJW3A5.js → chunk-P4MZOAPC.js} +2843 -1647
  67. package/dist/bundle/{chunk-XC3MWABM.js → chunk-P4WHDL2F.js} +4 -4
  68. package/dist/bundle/{chunk-2QRGJSKO.js → chunk-PCPOO5FS.js} +2 -2
  69. package/dist/bundle/{chunk-LYVHQ6DJ.js → chunk-PJFVE7UH.js} +14 -14
  70. package/dist/bundle/{chunk-SVJQRG5N.js → chunk-PP6SZLCY.js} +103 -42
  71. package/dist/bundle/{chunk-XCA5N63N.js → chunk-QIK2IBJ4.js} +21 -7
  72. package/dist/bundle/{chunk-5C5UEKUJ.js → chunk-QRKSASGP.js} +3 -3
  73. package/dist/bundle/{chunk-3TLQF3DN.js → chunk-QX3PO5UE.js} +3 -3
  74. package/dist/bundle/{chunk-T6RSYDFA.js → chunk-RJ5JAYNZ.js} +361 -270
  75. package/dist/bundle/{chunk-4Z4VOQRR.js → chunk-RMQ7EALU.js} +17 -17
  76. package/dist/bundle/{chunk-IS6MUPN2.js → chunk-RMX2WPWS.js} +4 -4
  77. package/dist/bundle/{chunk-ZRNNMBPC.js → chunk-RUE3WP7K.js} +19 -19
  78. package/dist/bundle/{chunk-I3QMPQYD.js → chunk-SGFNQFP4.js} +38 -39
  79. package/dist/bundle/{chunk-4QNW4NK6.js → chunk-ST3ZB7LS.js} +1 -1
  80. package/dist/bundle/{chunk-F4ROWGLU.js → chunk-T6LA664Z.js} +65 -34
  81. package/dist/bundle/{chunk-7AFYZOHU.js → chunk-TLO62ROR.js} +26 -26
  82. package/dist/bundle/{chunk-MMAZUJBO.js → chunk-TP7GDWVF.js} +1 -1
  83. package/dist/bundle/{chunk-IUOKIZZN.js → chunk-TUECY6LV.js} +2 -2
  84. package/dist/bundle/{chunk-7ILGYNWX.js → chunk-U7QXC75C.js} +8 -8
  85. package/dist/bundle/{chunk-WD5OL5JB.js → chunk-UQKVZFIX.js} +12 -12
  86. package/dist/bundle/{chunk-SY5NGYKA.js → chunk-VX6ZSKXM.js} +12 -12
  87. package/dist/bundle/{chunk-OOIU36FA.js → chunk-W53EJOFQ.js} +1 -1
  88. package/dist/bundle/{chunk-VJ2TLU7R.js → chunk-W5HRTC6X.js} +6 -6
  89. package/dist/bundle/{chunk-STNZQBY4.js → chunk-W656MRJD.js} +6 -6
  90. package/dist/bundle/{chunk-NKKVVPL5.js → chunk-W7HM2VGO.js} +1 -1
  91. package/dist/bundle/chunk-WE4UFASG.js +88 -0
  92. package/dist/bundle/{chunk-ADJIYY33.js → chunk-X2M6NIQG.js} +1 -1
  93. package/dist/bundle/{chunk-VGERRRDC.js → chunk-XAOSZGTD.js} +1 -1
  94. package/dist/bundle/{chunk-IJTBB23F.js → chunk-XDBGGOE2.js} +27 -27
  95. package/dist/bundle/{chunk-375BH5OD.js → chunk-XEIL6VNA.js} +4 -4
  96. package/dist/bundle/{chunk-BOJCRTQW.js → chunk-XFMVDQ6J.js} +2 -2
  97. package/dist/bundle/{chunk-YJIGGUPI.js → chunk-XIHENZW6.js} +4 -4
  98. package/dist/bundle/{chunk-KHBSQROH.js → chunk-XOYMIEAZ.js} +9 -6
  99. package/dist/bundle/{chunk-JQUYHPQD.js → chunk-Y4UDPQ3L.js} +7 -7
  100. package/dist/bundle/{chunk-RQS3W4P6.js → chunk-Y64L7A7E.js} +6 -6
  101. package/dist/bundle/{chunk-CJL5GHTQ.js → chunk-YCW422X7.js} +3175 -1791
  102. package/dist/bundle/{chunk-FRC5QIPQ.js → chunk-YOBTKYIX.js} +8 -8
  103. package/dist/bundle/{chunk-IZMRQ3MV.js → chunk-Z3CPZ4I4.js} +10 -10
  104. package/dist/bundle/{chunk-E3UPMPUV.js → chunk-ZKVYV25H.js} +8 -8
  105. package/dist/bundle/{chunk-FS5HPXQN.js → chunk-ZPZT46O6.js} +35 -9
  106. package/dist/bundle/{cli-Y27PHKBV.js → cli-AVQU63FT.js} +123 -77
  107. package/dist/bundle/command-contract-MCWBL5VS.js +45 -0
  108. package/dist/bundle/{command-server-entry-AXQSW2X6.js → command-server-entry-JZP7Y73G.js} +35 -35
  109. package/dist/bundle/config-G3C54VH6.js +109 -0
  110. package/dist/bundle/{decode-ZRNOOTUZ.js → decode-JLAYH7GC.js} +6 -6
  111. package/dist/bundle/{dispatch-2GHGPAYH.js → dispatch-AWDROXWN.js} +9 -9
  112. package/dist/bundle/{dist-MUFVAMKB.js → dist-TBLTUL5M.js} +21 -21
  113. package/dist/bundle/{echarts-F4PHDYET.js → echarts-FVTUDXDU.js} +2 -2
  114. package/dist/bundle/{embed-KWHCKPCV.js → embed-CJRENDF7.js} +7 -7
  115. package/dist/bundle/{embedder-U3R3RY54.js → embedder-RPE67QJD.js} +10 -10
  116. package/dist/bundle/{failure-S2YXEN4A.js → failure-JZW73RP7.js} +3 -3
  117. package/dist/bundle/first-run-QEASX5J5.js +29 -0
  118. package/dist/bundle/first-screen-NGCQD3CU.js +45 -0
  119. package/dist/bundle/{folders-DVTRFQKW.js → folders-TGFOE7DY.js} +5 -5
  120. package/dist/bundle/{instructions-JU4YW6QY.js → instructions-HET7BCYK.js} +1 -1
  121. package/dist/bundle/{main-5UCRPACH.js → main-QRJ6NRCD.js} +24 -24
  122. package/dist/bundle/{mcp-O6ACR2DX.js → mcp-RGNRW77S.js} +2 -2
  123. package/dist/bundle/meeting-combined-AZXCDXCV.js +26 -0
  124. package/dist/bundle/meeting-model-7HNQ4I3J.js +26 -0
  125. package/dist/bundle/{meeting-semantic-5DKRGZFS.js → meeting-semantic-4MURLQCA.js} +8 -8
  126. package/dist/bundle/{meetings-T2UY35DV.js → meetings-QFZWKHI4.js} +21 -7
  127. package/dist/bundle/{node-MAVRAF4M.js → node-CXZIFHZC.js} +2 -2
  128. package/dist/bundle/{node-sqlite-TFBQ5NDI.js → node-sqlite-CZPYFROO.js} +8 -8
  129. package/dist/bundle/{oauth-7IG5HWSY.js → oauth-T45MPIZF.js} +8 -8
  130. package/dist/bundle/{open-3R3N7L3X.js → open-3AONZFET.js} +6 -6
  131. package/dist/bundle/openai-LHWUXEBO.js +28 -0
  132. package/dist/bundle/{output-file-KKHHAYWF.js → output-file-J4SU6X4I.js} +6 -6
  133. package/dist/bundle/{process-OIO254NR.js → process-5RUXWGYS.js} +1 -1
  134. package/dist/bundle/{program-IBYRU76H.js → program-2O4YSRWY.js} +96 -93
  135. package/dist/bundle/{prompt-LNEOO7PN.js → prompt-NDLUFCJV.js} +6 -6
  136. package/dist/bundle/{recognize-2WYLT3PC.js → recognize-CZOIAJQX.js} +5 -5
  137. package/dist/bundle/{remote-7EAJEIV7.js → remote-O3CE4Q3B.js} +11 -11
  138. package/dist/bundle/{rerank-DZBZ744F.js → rerank-MZOL746K.js} +8 -8
  139. package/dist/bundle/run-log-GX6LNMWY.js +136 -0
  140. package/dist/bundle/{serve-T3KQV5SS.js → serve-43IBHMFM.js} +10 -10
  141. package/dist/bundle/server-3E2PJGYK.js +85 -0
  142. package/dist/bundle/{server-2QQAQZ2J.js → server-6LTMPPTO.js} +64 -64
  143. package/dist/bundle/{services-DETAKMC3.js → services-UIRD5PHE.js} +60 -53
  144. package/dist/bundle/{speech-HD57JNTK.js → speech-6QVKIJVR.js} +25 -25
  145. package/dist/bundle/{sqlite-runtime-OCETZSEZ.js → sqlite-runtime-PKCIBVHZ.js} +7 -7
  146. package/dist/bundle/{state-ZKVQ4DBI.js → state-AC55V3IE.js} +7 -7
  147. package/dist/bundle/{store-7IZ2WMHF.js → store-OAGA2ZK3.js} +28 -24
  148. package/dist/bundle/{store-GEAQ7V5R.js → store-QOCYJNKX.js} +30 -26
  149. package/dist/bundle/store-connection-PBZMFY56.js +102 -0
  150. package/dist/bundle/store-maintenance-command-VBCHEOGI.js +77 -0
  151. package/dist/bundle/{streaming-CLBAO3MG.js → streaming-VDJOYGMO.js} +7 -7
  152. package/dist/bundle/{tokens-WH73ZWFI.js → tokens-LN442AO6.js} +10 -10
  153. package/dist/bundle/zm.js +9 -9
  154. package/dist/bundle/{zoom-app-ZDTYMJET.js → zoom-app-TOCQ7LB5.js} +8 -8
  155. package/dist/program-bindings.d.ts.map +1 -1
  156. package/dist/program-bindings.js +1 -0
  157. package/dist/program-bindings.js.map +1 -1
  158. package/dist/store-commands.d.ts.map +1 -1
  159. package/dist/store-commands.js +2 -2
  160. package/dist/store-commands.js.map +1 -1
  161. package/dist/tokens.d.ts.map +1 -1
  162. package/dist/tokens.js +3 -0
  163. package/dist/tokens.js.map +1 -1
  164. package/dist/version.d.ts +1 -1
  165. package/dist/version.js +1 -1
  166. package/package.json +6 -4
  167. package/skills/zoom-cli/SKILL.md +88 -236
  168. package/skills/zoom-cli/references/archive.md +59 -0
  169. package/skills/zoom-cli/references/people-and-projects.md +51 -0
  170. package/skills/zoom-cli/references/prepare.md +78 -0
  171. package/skills/zoom-cli/references/search.md +71 -0
  172. package/skills/zoom-cli/references/setup.md +31 -0
  173. package/skills/zoom-cli/references/zoom-live.md +27 -0
  174. package/dist/bundle/answer-policy-XU7KEW2V.js +0 -121
  175. package/dist/bundle/chunk-VKE77B3F.js +0 -2
  176. package/dist/bundle/command-contract-GB7YA3KW.js +0 -45
  177. package/dist/bundle/config-2OOABHR7.js +0 -108
  178. package/dist/bundle/first-run-F4YR2E2C.js +0 -29
  179. package/dist/bundle/first-screen-HPRHD3VK.js +0 -43
  180. package/dist/bundle/meeting-combined-IWU5SPAH.js +0 -26
  181. package/dist/bundle/meeting-model-ILIUJECZ.js +0 -26
  182. package/dist/bundle/openai-DD5I3DWC.js +0 -28
  183. package/dist/bundle/run-log-CCIVRSHP.js +0 -135
  184. package/dist/bundle/server-OJQMPF2R.js +0 -84
  185. package/dist/bundle/store-connection-BALCZW7P.js +0 -101
  186. package/dist/bundle/store-maintenance-command-SBT4LDSI.js +0 -76
@@ -9,7 +9,7 @@ import {
9
9
  timezoneOf,
10
10
  validateQuery,
11
11
  walkQuery
12
- } from "./chunk-IZMRQ3MV.js";
12
+ } from "./chunk-Z3CPZ4I4.js";
13
13
  import {
14
14
  STEPS,
15
15
  array,
@@ -35,19 +35,19 @@ import {
35
35
  strictObject,
36
36
  string,
37
37
  union
38
- } from "./chunk-FS5HPXQN.js";
38
+ } from "./chunk-ZPZT46O6.js";
39
39
  import {
40
40
  CliError
41
- } from "./chunk-4QNW4NK6.js";
41
+ } from "./chunk-ST3ZB7LS.js";
42
42
  import {
43
43
  singleLine,
44
44
  visibleControls
45
- } from "./chunk-KYKW2W6X.js";
45
+ } from "./chunk-5RVXXDN7.js";
46
46
  import {
47
47
  __name
48
48
  } from "./chunk-ZVVMGPBJ.js";
49
49
 
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
50
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/search/service-query.js
51
51
  var BACKENDS = ["archive", "server", "both"];
52
52
  var MAX_BRANCHES = 64;
53
53
  var some = /* @__PURE__ */ __name((value) => value === void 0 ? [] : [value], "some");
@@ -86,7 +86,10 @@ var RELATIVE_TIME = /^\d+[mhd]$/i;
86
86
  var OFFSET = /(?:Z|[+-]\d{2}:?\d{2})$/i;
87
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");
88
88
 
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
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/model.js
90
+ var MEETING_CALL_DIRECTIONS = ["in", "out"];
91
+
92
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/reference.js
90
93
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
91
94
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
92
95
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -123,7 +126,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text9) => {
123
126
  }, "parseMeetingReference");
124
127
  var canonicalMeetingReference = /* @__PURE__ */ __name((text9) => formatMeetingReference(parseMeetingReference(text9)), "canonicalMeetingReference");
125
128
 
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
129
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/item.js
127
130
  var text = string();
128
131
  var count = pipe(number(), integer(), minValue(0));
129
132
  var MEETING_ISSUES = ["time_without_zone"];
@@ -131,6 +134,12 @@ var meetingIssuesOf = /* @__PURE__ */ __name((metadata) => {
131
134
  const listed2 = metadata?.issues;
132
135
  return Array.isArray(listed2) ? MEETING_ISSUES.filter((issue) => listed2.includes(issue)) : [];
133
136
  }, "meetingIssuesOf");
137
+ var meetingCall = strictObject({
138
+ direction: nullable(picklist(MEETING_CALL_DIRECTIONS)),
139
+ manager: nullable(strictObject({ name: nullable(text), person: nullable(reference) })),
140
+ client_phone: nullable(text)
141
+ });
142
+ var meetingCallItem = /* @__PURE__ */ __name((row) => row.direction == null && row.clientPhone == null ? void 0 : { direction: row.direction ?? null, manager: row.manager ?? null, client_phone: row.clientPhone ?? null }, "meetingCallItem");
134
143
  var meetingEntries = {
135
144
  ref: reference,
136
145
  id: pipe(string(), minLength(1)),
@@ -148,6 +157,8 @@ var meetingEntries = {
148
157
  duration_ms: nullable(count),
149
158
  timezone: optional(nullable(text)),
150
159
  participants_count: nullable(count),
160
+ /** Present only on a phone call. */
161
+ call: optional(meetingCall),
151
162
  /** Present only when something about this meeting is doubtful. */
152
163
  issues: optional(array(picklist(MEETING_ISSUES))),
153
164
  /**
@@ -165,6 +176,7 @@ var MEETING_UNTRUSTED = ["title", "description", "location"];
165
176
  var iso = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
166
177
  var meetingItem = /* @__PURE__ */ __name((row, owner) => {
167
178
  const issues = meetingIssuesOf(row.metadata);
179
+ const call = meetingCallItem(row);
168
180
  return {
169
181
  ref: formatMeetingReference({ type: "meeting", accountId: row.accountId, meetingId: row.id }),
170
182
  id: String(row.id),
@@ -180,6 +192,7 @@ var meetingItem = /* @__PURE__ */ __name((row, owner) => {
180
192
  duration_ms: row.durationMs,
181
193
  timezone: row.timezone,
182
194
  participants_count: row.participantsCount,
195
+ ...call ? { call } : {},
183
196
  ...issues.length ? { issues } : {},
184
197
  untrusted: [...MEETING_UNTRUSTED],
185
198
  created_at: new Date(row.createdAt).toISOString(),
@@ -213,11 +226,19 @@ var MEETING_QUERY = {
213
226
  })
214
227
  };
215
228
 
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
229
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/store.js
217
230
  var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
231
+ var TRANSCRIPT_WORDS = [
232
+ "Transcript",
233
+ "Notes by Gemini",
234
+ "\u0422\u0440\u0430\u043D\u0441\u043A\u0440\u0438\u043F\u0442",
235
+ "\u0417\u0430\u043C\u0435\u0442\u043A\u0438 Gemini",
236
+ "Transcripci\xF3n",
237
+ "Notas de Gemini"
238
+ ];
218
239
  var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
219
240
 
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
241
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/answers.js
221
242
  var text2 = string();
222
243
  var count2 = pipe(number(), integer(), minValue(0));
223
244
  var iso2 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
@@ -311,7 +332,9 @@ var meetingDetailsEntries = {
311
332
  name: nullable(text2),
312
333
  mime: nullable(text2),
313
334
  size: nullable(count2),
314
- url: nullable(text2)
335
+ url: nullable(text2),
336
+ /** The file on this computer; `null` when it stays on the service or the phone system (pbx over SFTP). */
337
+ local_path: nullable(text2)
315
338
  })),
316
339
  /**
317
340
  * The Drive files the meeting service saved for it, by role. `document` is the stored document (`document:<id>`) once
@@ -417,7 +440,8 @@ var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
417
440
  name: one.name ?? one.title,
418
441
  mime: one.mime,
419
442
  size: one.size,
420
- url: one.url
443
+ url: one.url,
444
+ local_path: one.localPath
421
445
  })),
422
446
  documents: (details.documents ?? []).map((one) => ({
423
447
  file_id: one.fileId,
@@ -498,7 +522,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
498
522
  };
499
523
  }, "meetingHitsList");
500
524
 
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
525
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
502
526
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
503
527
  const parsed = urlOf(url);
504
528
  if (!parsed)
@@ -532,7 +556,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
532
556
  }
533
557
  }, "urlOf");
534
558
 
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
559
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
536
560
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
537
561
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
538
562
  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");
@@ -569,7 +593,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
569
593
  return kept;
570
594
  }, "entryMetadata");
571
595
 
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
596
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/calls.js
573
597
  var CALL_DIRECTIONS = ["incoming", "outgoing", "internal"];
574
598
  var CALL_OUTCOMES = ["answered", "voicemail", "busy", "no_answer", "failed"];
575
599
  var MISSED_OUTCOMES = ["voicemail", "busy", "no_answer"];
@@ -638,7 +662,7 @@ var callOf = /* @__PURE__ */ __name((stored) => {
638
662
  };
639
663
  }, "callOf");
640
664
 
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
665
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/call-answers.js
642
666
  var count3 = pipe(number(), integer(), minValue(0));
643
667
  var ms = count3;
644
668
  var id = pipe(number(), integer(), minValue(1));
@@ -801,7 +825,7 @@ var callStatsItem = /* @__PURE__ */ __name((found) => {
801
825
  };
802
826
  }, "callStatsItem");
803
827
 
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
828
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/stats.js
805
829
  var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
806
830
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
807
831
  const zone = timeZone ?? "UTC";
@@ -936,7 +960,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
936
960
  };
937
961
  }, "aggregateMeetingStats");
938
962
 
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
963
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/call-stats.js
940
964
  var CALLBACK_WITHIN_MS = 24 * 60 * 60 * 1e3;
941
965
  var SHORT_CALL_UNDER_MS = 3e4;
942
966
  var MOST_MISSED = 100;
@@ -1126,7 +1150,7 @@ var aggregateCallStats = /* @__PURE__ */ __name((calls, options = {}) => {
1126
1150
  };
1127
1151
  }, "aggregateCallStats");
1128
1152
 
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
1153
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1130
1154
  import { createHash } from "node:crypto";
1131
1155
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
1132
1156
  reference: cue2.reference,
@@ -1140,7 +1164,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
1140
1164
  text: cue2.text
1141
1165
  })).digest("hex"), "meetingCueFingerprint");
1142
1166
 
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
1167
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1144
1168
  var EVENT_QUERY = defineQuery({
1145
1169
  entity: "event",
1146
1170
  backend: "sql",
@@ -1156,7 +1180,7 @@ var EVENT_QUERY = defineQuery({
1156
1180
  ]
1157
1181
  });
1158
1182
 
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
1183
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1160
1184
  var PARTICIPANT_RESPONSES = ["needs-action", "accepted", "tentative", "declined", "delegated"];
1161
1185
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
1162
1186
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
@@ -1207,7 +1231,7 @@ var eventChange = /* @__PURE__ */ __name((event2, entries, revisions, since) =>
1207
1231
  return null;
1208
1232
  }, "eventChange");
1209
1233
 
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
1234
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/events.js
1211
1235
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
1212
1236
  const current = await store.meeting(details.meeting.id);
1213
1237
  if (!current)
@@ -1252,7 +1276,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
1252
1276
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
1253
1277
  }, "linkEvent");
1254
1278
 
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
1279
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1256
1280
  var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text9) => text9.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1257
1281
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
1258
1282
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
@@ -1276,7 +1300,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
1276
1300
  };
1277
1301
  }, "validateMeetingParticipantSearch");
1278
1302
 
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
1303
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1280
1304
  var MeetingError = class extends CliError {
1281
1305
  static {
1282
1306
  __name(this, "MeetingError");
@@ -1349,7 +1373,14 @@ var meetingPeople = /* @__PURE__ */ __name(async (store, query, accountId, optio
1349
1373
  }
1350
1374
  if (Object.values(options).some((value) => value !== void 0))
1351
1375
  throw new MeetingError("configuration_error", "bounded participant lookup needs a selected account and capable store");
1352
- return listed((await store.participants(query, accountId)).map((one) => ({ ...one, untrusted: [...PARTICIPANT_UNTRUSTED] })));
1376
+ return listed((await store.participants(query, accountId)).map((one) => ({
1377
+ participant_id: one.id,
1378
+ meeting_id: one.meetingId,
1379
+ identity_id: one.identityId,
1380
+ display_name: one.displayName,
1381
+ email: one.email,
1382
+ untrusted: [...PARTICIPANT_UNTRUSTED]
1383
+ })));
1353
1384
  }, "meetingPeople");
1354
1385
  var PAGE_NEXT2 = STEPS.find((step) => step.id === "page.next");
1355
1386
  var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}) => {
@@ -1411,7 +1442,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId)
1411
1442
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
1412
1443
  }, "meetingSummaryAnswer");
1413
1444
 
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
1445
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/export.js
1415
1446
  var timestamp = /* @__PURE__ */ __name((milliseconds2) => {
1416
1447
  if (!Number.isSafeInteger(milliseconds2) || milliseconds2 < 0)
1417
1448
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -1508,10 +1539,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
1508
1539
  };
1509
1540
  }, "exportMeeting");
1510
1541
 
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
1542
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1512
1543
  import { createHash as createHash2 } from "node:crypto";
1513
1544
 
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
1545
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/payment.js
1515
1546
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
1516
1547
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
1517
1548
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
@@ -1605,7 +1636,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
1605
1636
  return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
1606
1637
  }, "paymentTitle");
1607
1638
 
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
1639
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1609
1640
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1610
1641
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
1611
1642
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
@@ -1616,7 +1647,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1616
1647
  return new Date(value).toISOString();
1617
1648
  }, "meetingTimestamp");
1618
1649
 
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
1650
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1620
1651
  var TASK_TYPES = ["bug", "feature", "chore"];
1621
1652
  var invalid3 = /* @__PURE__ */ __name((message) => {
1622
1653
  throw new CliError("validation_error", message);
@@ -1791,7 +1822,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
1791
1822
  var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1792
1823
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1793
1824
 
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
1825
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1795
1826
  var MEETING_FINDINGS_KIND = "meeting_findings";
1796
1827
  var cue = /* @__PURE__ */ __name((raw) => {
1797
1828
  const reference2 = canonicalMeetingReference(raw);
@@ -1802,7 +1833,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1802
1833
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1803
1834
  var meetingFindingFingerprint = findingFingerprint;
1804
1835
 
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
1836
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1806
1837
  var context = {
1807
1838
  command: "search meetings",
1808
1839
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1924,7 +1955,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text9) => {
1924
1955
  return { version: 1, language: "lucene-v1", root };
1925
1956
  }, "meetingWordsQuery");
1926
1957
 
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
1958
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/language.js
1928
1959
  var LATIN_WORDS = {
1929
1960
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
1930
1961
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -1973,7 +2004,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1973
2004
  return null;
1974
2005
  }, "transcriptLanguage");
1975
2006
 
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
2007
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1977
2008
  var contentHash = /* @__PURE__ */ __name(async (text9) => {
1978
2009
  const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text9));
1979
2010
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -2010,7 +2041,240 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
2010
2041
  return time;
2011
2042
  }, "timestamp");
2012
2043
 
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
2044
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/search-store.js
2045
+ var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
2046
+ let before = Number.POSITIVE_INFINITY;
2047
+ for (; ; ) {
2048
+ signal?.throwIfAborted();
2049
+ const { indexed, remaining } = await meetings.indexSearch({
2050
+ accountId,
2051
+ limit: 1e3,
2052
+ maxReadBytes: 64 * 1024 ** 2,
2053
+ signal
2054
+ });
2055
+ if (remaining === 0 || indexed === 0 || remaining >= before)
2056
+ return;
2057
+ before = remaining;
2058
+ }
2059
+ }, "refreshMeetingIndex");
2060
+
2061
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2062
+ var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2063
+ const { identityExternalId, phone, ...fields2 } = p;
2064
+ const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
2065
+ return {
2066
+ ...fields2,
2067
+ identity: {
2068
+ provider,
2069
+ externalId,
2070
+ name: p.displayName,
2071
+ ...phone?.trim() ? { phone } : {},
2072
+ metadata: p.metadata,
2073
+ associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
2074
+ }
2075
+ };
2076
+ }, "participantInput");
2077
+ var participantInputs = /* @__PURE__ */ __name((provider, occurrenceId2, list, accountId) => list.map((p, i) => participantInput(p, provider, occurrenceId2, i, accountId)), "participantInputs");
2078
+ var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount, kept) => {
2079
+ const startedAt = timestamp2(m.occurrence.startedAt);
2080
+ const given = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
2081
+ if (given !== null && given < startedAt)
2082
+ throw new Error("Meeting ends before it starts");
2083
+ const keptEnd = kept?.endedAt ?? null;
2084
+ const endedAt = given ?? (keptEnd !== null && keptEnd >= startedAt ? keptEnd : null);
2085
+ const count7 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
2086
+ const metadata = kept?.metadata && m.metadata ? { ...kept.metadata, ...m.metadata } : m.metadata ?? kept?.metadata ?? null;
2087
+ const meeting2 = {
2088
+ accountId,
2089
+ externalId: m.occurrence.id,
2090
+ title: m.occurrence.title,
2091
+ description: m.description ?? kept?.description ?? null,
2092
+ location: m.location ?? kept?.location ?? null,
2093
+ joinUrl: m.joinUrl ?? m.series?.joinUrl ?? kept?.joinUrl ?? null,
2094
+ startedAt,
2095
+ endedAt,
2096
+ durationMs: endedAt === null ? null : endedAt - startedAt,
2097
+ timezone: m.timezone ?? kept?.timezone ?? null,
2098
+ hostIdentityId: kept?.hostIdentityId ?? null,
2099
+ ...count7 === void 0 ? {} : { participantsCount: count7 },
2100
+ ...m.call ? { direction: m.call.direction ?? null, clientPhone: m.call.clientPhone ?? null } : {},
2101
+ metadata,
2102
+ deletedAt: null
2103
+ };
2104
+ if (m.series)
2105
+ meeting2.series = {
2106
+ externalId: m.series.id,
2107
+ title: m.series.title,
2108
+ description: null,
2109
+ kind: m.series.kind ?? null,
2110
+ recurrence: m.series.recurrence ?? null,
2111
+ hostIdentityId: null,
2112
+ joinUrl: m.series.joinUrl ?? null,
2113
+ metadata: null,
2114
+ deletedAt: null
2115
+ };
2116
+ return meeting2;
2117
+ }, "sourceMeetingInput");
2118
+ var saveSourceMeeting = /* @__PURE__ */ __name(async (source, store, m, parts, { accountId, now, kept }) => {
2119
+ const id5 = m.occurrence.id;
2120
+ const { participants: sourceParticipants, transcript: lines, chat, summary } = parts;
2121
+ const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], accountId);
2122
+ const meeting2 = sourceMeetingInput(m, accountId, sourceParticipants === void 0 ? void 0 : sourceParticipants?.length ?? null, kept);
2123
+ const linked = sourceParticipants !== void 0;
2124
+ const format = source.transcriptFormat ?? null;
2125
+ const transcripts = lines && linked ? [await transcriptInput(lines, participants, source.name, void 0, format)] : void 0;
2126
+ const details = await store.saveMeeting({
2127
+ meeting: meeting2,
2128
+ participants: sourceParticipants ? participants : void 0,
2129
+ transcripts,
2130
+ chat: chat?.map((line2) => ({
2131
+ externalId: null,
2132
+ sentAt: timestamp2(line2.sentAt),
2133
+ senderParticipantPosition: speakerPosition(line2.sender, participants),
2134
+ senderName: line2.sender,
2135
+ recipient: null,
2136
+ text: line2.text,
2137
+ normalizedText: null,
2138
+ metadata: null
2139
+ })),
2140
+ summaries: summary ? [
2141
+ {
2142
+ ...summary,
2143
+ source: summary.source ?? source.name,
2144
+ content: summary.content ?? null,
2145
+ docUrl: summary.docUrl ?? null,
2146
+ externalCreatedAt: summary.externalCreatedAt ?? null,
2147
+ externalUpdatedAt: summary.externalUpdatedAt ?? null,
2148
+ metadata: summary.metadata ?? null
2149
+ }
2150
+ ] : void 0,
2151
+ attachments: parts.files ?? void 0,
2152
+ documents: parts.documents ?? void 0,
2153
+ now
2154
+ });
2155
+ if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
2156
+ await store.saveMeeting({
2157
+ meeting: meeting2,
2158
+ transcripts: [await transcriptInput(lines, [], source.name, `${JSON.stringify(lines)}
2159
+ unlinked`, format)],
2160
+ now
2161
+ });
2162
+ await linkEvent(store, details, now, { create: source.createsEvents !== false });
2163
+ return details;
2164
+ }, "saveSourceMeeting");
2165
+ var startOf = /* @__PURE__ */ __name((m) => {
2166
+ const at = Date.parse(m.occurrence.startedAt);
2167
+ return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
2168
+ }, "startOf");
2169
+ var indexSaved = /* @__PURE__ */ __name(async (store, accountIds, report) => {
2170
+ const indexSearch = store.indexSearch?.bind(store);
2171
+ if (!indexSearch || report.meetings === 0)
2172
+ return;
2173
+ for (const accountId of new Set(accountIds))
2174
+ try {
2175
+ await refreshMeetingIndex({ indexSearch }, accountId);
2176
+ } catch (error) {
2177
+ report.warnings.push({
2178
+ externalId: String(accountId),
2179
+ message: `search index not updated: ${error instanceof Error ? error.message : "failed"}`
2180
+ });
2181
+ }
2182
+ }, "indexSaved");
2183
+ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2184
+ const now = options.now ?? Date.now();
2185
+ for (const [name, ms2] of [
2186
+ ["lookbackMs", options.lookbackMs ?? 0],
2187
+ ["overlapMs", source.overlapMs ?? 0]
2188
+ ])
2189
+ if (!Number.isSafeInteger(ms2) || ms2 < 0 || ms2 > 31 * 864e5)
2190
+ throw new Error(`${name} must be an integer from 0 through 31 days`);
2191
+ const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
2192
+ const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
2193
+ const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
2194
+ timestamp2(since);
2195
+ const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2196
+ let failed = false;
2197
+ let firstFailed;
2198
+ const callers = /* @__PURE__ */ new Set();
2199
+ const linkCallers = /* @__PURE__ */ __name(async () => {
2200
+ if (callers.size === 0 || !store.linkCallers)
2201
+ return;
2202
+ try {
2203
+ await store.linkCallers(source.provider, [...callers]);
2204
+ } catch (error) {
2205
+ report.warnings.push({
2206
+ externalId: source.provider,
2207
+ message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
2208
+ });
2209
+ }
2210
+ }, "linkCallers");
2211
+ const from = timestamp2(since) - lookbackMs;
2212
+ const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
2213
+ for (const [index, m] of meetings.entries()) {
2214
+ const stop = options.budget?.take() ?? null;
2215
+ if (stop) {
2216
+ report.stopped = stop;
2217
+ report.remaining = meetings.length - index;
2218
+ const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
2219
+ if (Number.isFinite(reached) && reached > timestamp2(since))
2220
+ await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
2221
+ await linkCallers();
2222
+ return report;
2223
+ }
2224
+ const id5 = m.occurrence.id;
2225
+ const failedHere = /* @__PURE__ */ __name(() => {
2226
+ failed = true;
2227
+ firstFailed ??= startOf(m);
2228
+ }, "failedHere");
2229
+ const read = /* @__PURE__ */ __name(async (part, call) => {
2230
+ try {
2231
+ return await call();
2232
+ } catch (error) {
2233
+ failedHere();
2234
+ const message = error instanceof Error ? error.message : "could not be read";
2235
+ report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
2236
+ return void 0;
2237
+ }
2238
+ }, "read");
2239
+ try {
2240
+ const sourceParticipants = await read("participants", () => source.participants(id5));
2241
+ const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], options.accountId);
2242
+ const names = /* @__PURE__ */ new Map();
2243
+ for (const p of participants)
2244
+ if (p.displayName !== null) {
2245
+ const identities = names.get(p.displayName) ?? /* @__PURE__ */ new Set();
2246
+ identities.add(p.identity.externalId);
2247
+ names.set(p.displayName, identities);
2248
+ }
2249
+ if ([...names.values()].some((ids2) => ids2.size > 1))
2250
+ report.warnings.push({ externalId: id5, message: "Participant names are ambiguous" });
2251
+ const lines = await read("transcript", () => source.transcript(id5));
2252
+ const chat = await read("chat", () => source.chat(id5));
2253
+ const summary = await read("summary", () => source.summary(id5));
2254
+ const attachments = await read("files", () => source.files(id5));
2255
+ const listDocuments = source.documents?.bind(source);
2256
+ const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
2257
+ await saveSourceMeeting(source, store, m, { participants: sourceParticipants, transcript: lines, chat, summary, files: attachments, documents }, { accountId: options.accountId, now });
2258
+ for (const p of participants)
2259
+ if (p.identity.phone)
2260
+ callers.add(p.identity.externalId);
2261
+ report.meetings++;
2262
+ report.participants += participants.length;
2263
+ report.transcriptRows += lines?.length ?? 0;
2264
+ report.summaries += summary ? 1 : 0;
2265
+ } catch (error) {
2266
+ failedHere();
2267
+ report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
2268
+ }
2269
+ }
2270
+ await linkCallers();
2271
+ await indexSaved(store, [options.accountId], report);
2272
+ if (!failed)
2273
+ await store.setCursor(options.accountId, new Date(now).toISOString(), now);
2274
+ return report;
2275
+ }, "pull");
2276
+
2277
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2014
2278
  var TranscriptTextError = class extends Error {
2015
2279
  static {
2016
2280
  __name(this, "TranscriptTextError");
@@ -2065,7 +2329,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
2065
2329
  return { header, lines };
2066
2330
  }, "parseTranscriptText");
2067
2331
 
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
2332
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2069
2333
  var VttError = class extends Error {
2070
2334
  static {
2071
2335
  __name(this, "VttError");
@@ -2117,7 +2381,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
2117
2381
  return cues;
2118
2382
  }, "parseVtt");
2119
2383
 
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
2384
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/import.js
2121
2385
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
2122
2386
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2123
2387
  for (const file of files) {
@@ -2143,6 +2407,7 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
2143
2407
  });
2144
2408
  }
2145
2409
  }
2410
+ await indexSaved(store, files.map((file) => file.meeting.accountId), report);
2146
2411
  const zones = new Set(files.map((file) => file.meeting.timezone).filter((zone2) => zone2 !== null && zone2 !== void 0));
2147
2412
  const [zone] = zones;
2148
2413
  if (zones.size === 1 && zone)
@@ -2150,10 +2415,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
2150
2415
  return report;
2151
2416
  }, "importFiles");
2152
2417
 
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
2418
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/links.js
2154
2419
  var CHAT_MESSAGES_READ = 1e5;
2155
2420
 
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
2421
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/provider.js
2157
2422
  var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
2158
2423
  const provider = scope3?.provider;
2159
2424
  const account = scope3?.account;
@@ -2162,7 +2427,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
2162
2427
  return Object.freeze({ provider, account });
2163
2428
  }, "snapshotMeetingScope");
2164
2429
 
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
2430
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2166
2431
  var MEETING_FIELD_KEYS = Object.freeze({
2167
2432
  title: "title",
2168
2433
  kind: "kind",
@@ -2398,7 +2663,7 @@ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports, options = {
2398
2663
  };
2399
2664
  }, "createMeetingManagement");
2400
2665
 
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
2666
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
2402
2667
  var id2 = /* @__PURE__ */ __name((value) => {
2403
2668
  if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
2404
2669
  throw new CliError("validation_error", "meeting context identifiers must be positive integers");
@@ -2520,20 +2785,28 @@ var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) =>
2520
2785
  };
2521
2786
  }, "createMeetingContext");
2522
2787
 
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
2788
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2524
2789
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
2525
2790
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
2526
2791
  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)))
2527
2792
  throw new CliError("validation_error", "context takes 0\u2013999 surrounding cues, 2\u20134194304 output bytes and a bounded read budget");
2528
2793
  return { before, after, bytes, max_read_bytes };
2529
2794
  }, "meetingHitContextLimits");
2795
+ var MEETING_CUE_UNTRUSTED = ["speaker_name", "text"];
2796
+ var markedPassage = /* @__PURE__ */ __name((result) => ({
2797
+ ...result,
2798
+ packet: {
2799
+ ...result.packet,
2800
+ items: result.packet.items.map((cue2) => ({ ...cue2, untrusted: [...MEETING_CUE_UNTRUSTED] }))
2801
+ }
2802
+ }), "markedPassage");
2530
2803
  var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
2531
2804
  meetingHitContextLimits(options);
2532
2805
  if (typeof reference2 !== "string" || !reference2.trim() || reference2.length > 200 || options.format !== void 0 && !["json", "text", "markdown"].includes(options.format))
2533
2806
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
2534
2807
  }, "validateMeetingPassage");
2535
2808
 
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
2809
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2537
2810
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2538
2811
  if (!original || typeof original !== "object" || Array.isArray(original))
2539
2812
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -2558,7 +2831,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2558
2831
  return { ...input, limit, maxReadBytes };
2559
2832
  }, "validateMeetingPreparationContext");
2560
2833
 
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
2834
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2562
2835
  var count4 = pipe(number(), integer(), minValue(0));
2563
2836
  var id3 = pipe(string(), minLength(1));
2564
2837
  var meetingProjectEvidence = strictObject({
@@ -2679,7 +2952,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
2679
2952
  };
2680
2953
  }, "meetingProjectEvidenceAnswer");
2681
2954
 
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
2955
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2683
2956
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2684
2957
  const integer5 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
2685
2958
  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) || [
@@ -2699,7 +2972,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2699
2972
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
2700
2973
  }, "validateMeetingHitSearch");
2701
2974
 
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
2975
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2703
2976
  var ids = {
2704
2977
  meeting_id: "meetingId",
2705
2978
  identity_id: "participantIdentityId",
@@ -2790,7 +3063,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
2790
3063
  return { project: project.trim(), options, query: frozen.join(" AND ") };
2791
3064
  }, "prepareMeetingProjectEvidence");
2792
3065
 
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
3066
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2794
3067
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
2795
3068
  const prepared = prepareMeetingProjectEvidence(project, request, now);
2796
3069
  const page = await read(prepared.project, prepared.options);
@@ -2798,207 +3071,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
2798
3071
  return meetingProjectEvidenceAnswer(page, prepared);
2799
3072
  }, "readMeetingProjectEvidence");
2800
3073
 
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
2802
- var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2803
- const { identityExternalId, phone, ...fields2 } = p;
2804
- const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
2805
- return {
2806
- ...fields2,
2807
- identity: {
2808
- provider,
2809
- externalId,
2810
- name: p.displayName,
2811
- ...phone?.trim() ? { phone } : {},
2812
- metadata: p.metadata,
2813
- associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
2814
- }
2815
- };
2816
- }, "participantInput");
2817
- var participantInputs = /* @__PURE__ */ __name((provider, occurrenceId2, list, accountId) => list.map((p, i) => participantInput(p, provider, occurrenceId2, i, accountId)), "participantInputs");
2818
- var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount, kept) => {
2819
- const startedAt = timestamp2(m.occurrence.startedAt);
2820
- const given = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
2821
- if (given !== null && given < startedAt)
2822
- throw new Error("Meeting ends before it starts");
2823
- const keptEnd = kept?.endedAt ?? null;
2824
- const endedAt = given ?? (keptEnd !== null && keptEnd >= startedAt ? keptEnd : null);
2825
- const count7 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
2826
- const metadata = kept?.metadata && m.metadata ? { ...kept.metadata, ...m.metadata } : m.metadata ?? kept?.metadata ?? null;
2827
- const meeting2 = {
2828
- accountId,
2829
- externalId: m.occurrence.id,
2830
- title: m.occurrence.title,
2831
- description: m.description ?? kept?.description ?? null,
2832
- location: m.location ?? kept?.location ?? null,
2833
- joinUrl: m.joinUrl ?? m.series?.joinUrl ?? kept?.joinUrl ?? null,
2834
- startedAt,
2835
- endedAt,
2836
- durationMs: endedAt === null ? null : endedAt - startedAt,
2837
- timezone: m.timezone ?? kept?.timezone ?? null,
2838
- hostIdentityId: kept?.hostIdentityId ?? null,
2839
- ...count7 === void 0 ? {} : { participantsCount: count7 },
2840
- metadata,
2841
- deletedAt: null
2842
- };
2843
- if (m.series)
2844
- meeting2.series = {
2845
- externalId: m.series.id,
2846
- title: m.series.title,
2847
- description: null,
2848
- kind: m.series.kind ?? null,
2849
- recurrence: m.series.recurrence ?? null,
2850
- hostIdentityId: null,
2851
- joinUrl: m.series.joinUrl ?? null,
2852
- metadata: null,
2853
- deletedAt: null
2854
- };
2855
- return meeting2;
2856
- }, "sourceMeetingInput");
2857
- var saveSourceMeeting = /* @__PURE__ */ __name(async (source, store, m, parts, { accountId, now, kept }) => {
2858
- const id5 = m.occurrence.id;
2859
- const { participants: sourceParticipants, transcript: lines, chat, summary } = parts;
2860
- const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], accountId);
2861
- const meeting2 = sourceMeetingInput(m, accountId, sourceParticipants === void 0 ? void 0 : sourceParticipants?.length ?? null, kept);
2862
- const linked = sourceParticipants !== void 0;
2863
- const format = source.transcriptFormat ?? null;
2864
- const transcripts = lines && linked ? [await transcriptInput(lines, participants, source.name, void 0, format)] : void 0;
2865
- const details = await store.saveMeeting({
2866
- meeting: meeting2,
2867
- participants: sourceParticipants ? participants : void 0,
2868
- transcripts,
2869
- chat: chat?.map((line2) => ({
2870
- externalId: null,
2871
- sentAt: timestamp2(line2.sentAt),
2872
- senderParticipantPosition: speakerPosition(line2.sender, participants),
2873
- senderName: line2.sender,
2874
- recipient: null,
2875
- text: line2.text,
2876
- normalizedText: null,
2877
- metadata: null
2878
- })),
2879
- summaries: summary ? [
2880
- {
2881
- ...summary,
2882
- source: summary.source ?? source.name,
2883
- content: summary.content ?? null,
2884
- docUrl: summary.docUrl ?? null,
2885
- externalCreatedAt: summary.externalCreatedAt ?? null,
2886
- externalUpdatedAt: summary.externalUpdatedAt ?? null,
2887
- metadata: summary.metadata ?? null
2888
- }
2889
- ] : void 0,
2890
- attachments: parts.files ?? void 0,
2891
- documents: parts.documents ?? void 0,
2892
- now
2893
- });
2894
- if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
2895
- await store.saveMeeting({
2896
- meeting: meeting2,
2897
- transcripts: [await transcriptInput(lines, [], source.name, `${JSON.stringify(lines)}
2898
- unlinked`, format)],
2899
- now
2900
- });
2901
- await linkEvent(store, details, now, { create: source.createsEvents !== false });
2902
- return details;
2903
- }, "saveSourceMeeting");
2904
- var startOf = /* @__PURE__ */ __name((m) => {
2905
- const at = Date.parse(m.occurrence.startedAt);
2906
- return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
2907
- }, "startOf");
2908
- var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2909
- const now = options.now ?? Date.now();
2910
- for (const [name, ms2] of [
2911
- ["lookbackMs", options.lookbackMs ?? 0],
2912
- ["overlapMs", source.overlapMs ?? 0]
2913
- ])
2914
- if (!Number.isSafeInteger(ms2) || ms2 < 0 || ms2 > 31 * 864e5)
2915
- throw new Error(`${name} must be an integer from 0 through 31 days`);
2916
- const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
2917
- const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
2918
- const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
2919
- timestamp2(since);
2920
- const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2921
- let failed = false;
2922
- let firstFailed;
2923
- const callers = /* @__PURE__ */ new Set();
2924
- const linkCallers = /* @__PURE__ */ __name(async () => {
2925
- if (callers.size === 0 || !store.linkCallers)
2926
- return;
2927
- try {
2928
- await store.linkCallers(source.provider, [...callers]);
2929
- } catch (error) {
2930
- report.warnings.push({
2931
- externalId: source.provider,
2932
- message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
2933
- });
2934
- }
2935
- }, "linkCallers");
2936
- const from = timestamp2(since) - lookbackMs;
2937
- const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
2938
- for (const [index, m] of meetings.entries()) {
2939
- const stop = options.budget?.take() ?? null;
2940
- if (stop) {
2941
- report.stopped = stop;
2942
- report.remaining = meetings.length - index;
2943
- const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
2944
- if (Number.isFinite(reached) && reached > timestamp2(since))
2945
- await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
2946
- await linkCallers();
2947
- return report;
2948
- }
2949
- const id5 = m.occurrence.id;
2950
- const failedHere = /* @__PURE__ */ __name(() => {
2951
- failed = true;
2952
- firstFailed ??= startOf(m);
2953
- }, "failedHere");
2954
- const read = /* @__PURE__ */ __name(async (part, call) => {
2955
- try {
2956
- return await call();
2957
- } catch (error) {
2958
- failedHere();
2959
- const message = error instanceof Error ? error.message : "could not be read";
2960
- report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
2961
- return void 0;
2962
- }
2963
- }, "read");
2964
- try {
2965
- const sourceParticipants = await read("participants", () => source.participants(id5));
2966
- const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], options.accountId);
2967
- const names = /* @__PURE__ */ new Map();
2968
- for (const p of participants)
2969
- if (p.displayName !== null) {
2970
- const identities = names.get(p.displayName) ?? /* @__PURE__ */ new Set();
2971
- identities.add(p.identity.externalId);
2972
- names.set(p.displayName, identities);
2973
- }
2974
- if ([...names.values()].some((ids2) => ids2.size > 1))
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));
2980
- const listDocuments = source.documents?.bind(source);
2981
- const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
2982
- await saveSourceMeeting(source, store, m, { participants: sourceParticipants, transcript: lines, chat, summary, files: attachments, documents }, { accountId: options.accountId, now });
2983
- for (const p of participants)
2984
- if (p.identity.phone)
2985
- callers.add(p.identity.externalId);
2986
- report.meetings++;
2987
- report.participants += participants.length;
2988
- report.transcriptRows += lines?.length ?? 0;
2989
- report.summaries += summary ? 1 : 0;
2990
- } catch (error) {
2991
- failedHere();
2992
- report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
2993
- }
2994
- }
2995
- await linkCallers();
2996
- if (!failed)
2997
- await store.setCursor(options.accountId, new Date(now).toISOString(), now);
2998
- return report;
2999
- }, "pull");
3000
-
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
3074
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
3002
3075
  var text4 = string();
3003
3076
  var count5 = pipe(number(), integer(), minValue(0));
3004
3077
  var id4 = pipe(number(), integer(), minValue(1));
@@ -3206,7 +3279,9 @@ var meetingPassage = strictObject({
3206
3279
  speaker_participant_id: nullable(id4),
3207
3280
  speaker_name: nullable(text4),
3208
3281
  text: text4,
3209
- revision
3282
+ revision,
3283
+ /** What people said: `speaker_name` and `text`. */
3284
+ untrusted: optional(array(text4))
3210
3285
  }))
3211
3286
  });
3212
3287
  var event = strictObject({
@@ -3260,13 +3335,14 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
3260
3335
  updated_at: new Date(one.updatedAt).toISOString()
3261
3336
  }), "eventItem");
3262
3337
 
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
3338
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/read-through.js
3264
3339
  var MEETING_SERVER_BOUNDS = { calls: 3, pages: 2 };
3265
3340
  var ISSUES = {
3266
3341
  offline: ["permission_error", "meetings.server-offline"],
3267
3342
  unreachable: ["network_error", "meetings.server-unreachable"],
3268
3343
  not_signed_in: ["authentication_error", "meetings.server-signed-out"],
3269
3344
  refused: ["permission_error", "meetings.server-refused"],
3345
+ rate_limited: ["rate_limited", "meetings.server-rate-limited"],
3270
3346
  failed: ["provider_error", "meetings.server-failed"]
3271
3347
  };
3272
3348
  var metaOf = /* @__PURE__ */ __name((reason, provider) => {
@@ -3279,6 +3355,7 @@ var WHY = {
3279
3355
  unreachable: /* @__PURE__ */ __name((provider) => `${provider} could not be reached \u2014 the answer is the store's`, "unreachable"),
3280
3356
  not_signed_in: /* @__PURE__ */ __name((provider) => `not signed in to ${provider} \u2014 the answer is the store's`, "not_signed_in"),
3281
3357
  refused: /* @__PURE__ */ __name((provider) => `${provider} refused the request \u2014 the answer is the store's`, "refused"),
3358
+ rate_limited: /* @__PURE__ */ __name((provider) => `${provider} asked to wait before more requests \u2014 the answer is the store's`, "rate_limited"),
3282
3359
  failed: /* @__PURE__ */ __name((provider) => `${provider} could not be read \u2014 the answer is the store's`, "failed"),
3283
3360
  no_upcoming: /* @__PURE__ */ __name((provider) => `${provider} lists no meeting before it starts \u2014 upcoming ones are not in the answer`, "no_upcoming")
3284
3361
  };
@@ -3290,6 +3367,8 @@ var reasonOf = /* @__PURE__ */ __name((error) => {
3290
3367
  return "refused";
3291
3368
  if (code === "network_error")
3292
3369
  return "unreachable";
3370
+ if (code === "rate_limited")
3371
+ return "rate_limited";
3293
3372
  return "failed";
3294
3373
  }, "reasonOf");
3295
3374
  var refusal = /* @__PURE__ */ __name((reason, provider, error) => error ?? new CliError("validation_error", `--backend server: ${WHY[reason](provider).replace(/ — .*$/, "")}; use --backend archive or both`, { reason }), "refusal");
@@ -3399,14 +3478,17 @@ var askServerForList = /* @__PURE__ */ __name(async (source, store, accountId, q
3399
3478
  for (const call of asked) {
3400
3479
  let cursor = null;
3401
3480
  for (let page = 0; page < MEETING_SERVER_BOUNDS.pages; page++) {
3481
+ access.signal?.throwIfAborted();
3402
3482
  step.report.calls += 1;
3403
3483
  let answer;
3404
3484
  try {
3405
- answer = await source.find(call.window, call.terms, cursor);
3485
+ answer = await source.find(call.window, call.terms, cursor, access.signal);
3406
3486
  } catch (error) {
3487
+ access.signal?.throwIfAborted();
3407
3488
  return skip(reasonOf(error), error);
3408
3489
  }
3409
3490
  for (const found of answer.meetings) {
3491
+ access.signal?.throwIfAborted();
3410
3492
  if (seen.has(found.meeting.occurrence.id))
3411
3493
  continue;
3412
3494
  seen.add(found.meeting.occurrence.id);
@@ -3531,11 +3613,13 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
3531
3613
  return fromStore("unsupported");
3532
3614
  if (access.offline)
3533
3615
  return fromStore("offline");
3616
+ access.signal?.throwIfAborted();
3534
3617
  step.report.calls = 1;
3535
3618
  let full;
3536
3619
  try {
3537
- full = await source.get(providerId);
3620
+ full = await source.get(providerId, access.signal);
3538
3621
  } catch (error) {
3622
+ access.signal?.throwIfAborted();
3539
3623
  return fromStore(reasonOf(error), error);
3540
3624
  }
3541
3625
  if (!full) {
@@ -3548,10 +3632,10 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
3548
3632
  return { details: fresh, foundIn: step.found.get(details.meeting.id) ?? "server", server: step.report };
3549
3633
  }, "meetingShowThrough");
3550
3634
 
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
3635
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
3552
3636
  import { createHash as createHash3 } from "node:crypto";
3553
3637
 
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
3638
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/recording-sync.js
3555
3639
  var RecordingSyncError = class extends CliError {
3556
3640
  static {
3557
3641
  __name(this, "RecordingSyncError");
@@ -3872,7 +3956,7 @@ async function* syncRecordingArchive(catalog, input) {
3872
3956
  }
3873
3957
  __name(syncRecordingArchive, "syncRecordingArchive");
3874
3958
 
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
3959
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
3876
3960
  var fail2 = /* @__PURE__ */ __name((message) => {
3877
3961
  throw new CliError("validation_error", message);
3878
3962
  }, "fail");
@@ -3979,7 +4063,7 @@ var installRecordingArchiveSchedule = /* @__PURE__ */ __name(async (scheduler, v
3979
4063
  return { applied: true, backend, schedule };
3980
4064
  }, "installRecordingArchiveSchedule");
3981
4065
 
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
4066
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
3983
4067
  var RecordingTransferError = class extends CliError {
3984
4068
  static {
3985
4069
  __name(this, "RecordingTransferError");
@@ -4144,7 +4228,7 @@ var transferRecording = /* @__PURE__ */ __name(async (source, storage, options)
4144
4228
  }
4145
4229
  }, "transferRecording");
4146
4230
 
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
4231
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
4148
4232
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
4149
4233
  if (!original || typeof original !== "object" || Array.isArray(original))
4150
4234
  throw new CliError("validation_error", "related history request is required");
@@ -4174,7 +4258,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
4174
4258
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
4175
4259
  }, "validateMeetingRelatedHistory");
4176
4260
 
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
4261
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
4178
4262
  var text7 = string();
4179
4263
  var identifier = pipe(text7, minLength(1));
4180
4264
  var nullableText2 = nullable(text7);
@@ -4346,15 +4430,15 @@ var MEETING_RESULT_ENTITIES = {
4346
4430
  meeting_repair: repair
4347
4431
  };
4348
4432
 
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
4433
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/review.js
4350
4434
  var REVIEW_LIMIT = { default: 50, most: 200 };
4351
4435
 
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
4436
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
4353
4437
  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.";
4354
4438
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
4355
4439
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
4356
4440
 
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
4441
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
4358
4442
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
4359
4443
  input.signal?.throwIfAborted();
4360
4444
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -4375,10 +4459,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
4375
4459
  return { ...input, limit, maxReadBytes };
4376
4460
  }, "validateMeetingSeriesHistory");
4377
4461
 
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
4462
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
4379
4463
  import { createHash as createHash4 } from "node:crypto";
4380
4464
 
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
4465
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
4382
4466
  var invalid4 = /* @__PURE__ */ __name((field) => {
4383
4467
  throw new CliError("invalid_response", `meeting occurrence ${field} is invalid`);
4384
4468
  }, "invalid");
@@ -4447,7 +4531,7 @@ var readOccurrenceSchedule = /* @__PURE__ */ __name((input, meetingId, limit, ma
4447
4531
  return result;
4448
4532
  }, "readOccurrenceSchedule");
4449
4533
 
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
4534
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
4451
4535
  var inventoryHash = /* @__PURE__ */ __name((value) => createHash4("sha256").update(JSON.stringify(value)).digest("hex"), "inventoryHash");
4452
4536
  var inventorySize = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "inventorySize");
4453
4537
  function invalid5(field, response = false) {
@@ -4535,7 +4619,7 @@ var inventoryPage = /* @__PURE__ */ __name((scope3, request, page) => {
4535
4619
  return { items, selection: page.coverage.selection, partial: page.coverage.partial, nextCursor: page.nextCursor };
4536
4620
  }, "inventoryPage");
4537
4621
 
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
4622
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/series-inventory.js
4539
4623
  var cancelled3 = /* @__PURE__ */ __name((signal) => {
4540
4624
  if (signal?.aborted)
4541
4625
  throw new CliError("cancelled", "meeting inventory reading was cancelled");
@@ -4591,7 +4675,7 @@ var createMeetingSeriesInventoryReader = /* @__PURE__ */ __name((scope3, port) =
4591
4675
  };
4592
4676
  }, "createMeetingSeriesInventoryReader");
4593
4677
 
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
4678
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/tag-answers.js
4595
4679
  var text8 = string();
4596
4680
  var storeId = pipe(number(), integer(), minValue(1));
4597
4681
  var meetingTagChange = strictObject({
@@ -4629,7 +4713,7 @@ var meetingTaggingItem = /* @__PURE__ */ __name((one) => ({
4629
4713
  untrusted: ["title"]
4630
4714
  }), "meetingTaggingItem");
4631
4715
 
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
4716
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/transcription.js
4633
4717
  var bounded = /* @__PURE__ */ __name((value, max, name) => {
4634
4718
  if (!Number.isSafeInteger(value) || value < 1 || value > max)
4635
4719
  throw new CliError("validation_error", `${name} must be an integer from 1 to ${max}`);
@@ -4783,7 +4867,7 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
4783
4867
  };
4784
4868
  }, "transcribeMeeting");
4785
4869
 
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
4870
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
4787
4871
  var cancelled5 = /* @__PURE__ */ __name((signal) => {
4788
4872
  if (!signal?.aborted)
4789
4873
  return;
@@ -4853,7 +4937,7 @@ var createUpcomingMeetingReader = /* @__PURE__ */ __name((scope3, port) => {
4853
4937
  };
4854
4938
  }, "createUpcomingMeetingReader");
4855
4939
 
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
4940
+ // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/watch.js
4857
4941
  var sleep = /* @__PURE__ */ __name((milliseconds2, signal) => new Promise((resolve) => {
4858
4942
  const finish = /* @__PURE__ */ __name(() => {
4859
4943
  clearTimeout(timer);
@@ -4903,15 +4987,19 @@ export {
4903
4987
  rangeOf,
4904
4988
  windowOf,
4905
4989
  readsZone,
4990
+ MEETING_CALL_DIRECTIONS,
4906
4991
  formatMeetingReference,
4907
4992
  parseMeetingReference,
4908
4993
  canonicalMeetingReference,
4909
4994
  MEETING_ISSUES,
4910
4995
  meetingIssuesOf,
4996
+ meetingCall,
4997
+ meetingCallItem,
4911
4998
  meeting,
4912
4999
  meetingItem,
4913
5000
  MEETING_QUERY,
4914
5001
  MEETING_DOCUMENT_ROLES,
5002
+ TRANSCRIPT_WORDS,
4915
5003
  READ_BUDGET_EXCEEDED,
4916
5004
  meetingHit,
4917
5005
  meetingTranscript,
@@ -4983,6 +5071,9 @@ export {
4983
5071
  parseMeetingQuery,
4984
5072
  meetingWordsQuery,
4985
5073
  transcriptLanguage,
5074
+ refreshMeetingIndex,
5075
+ saveSourceMeeting,
5076
+ pull,
4986
5077
  TranscriptTextError,
4987
5078
  parseTranscriptText,
4988
5079
  VttError,
@@ -5001,6 +5092,8 @@ export {
5001
5092
  validateMeetingContextChange,
5002
5093
  createMeetingContext,
5003
5094
  meetingHitContextLimits,
5095
+ MEETING_CUE_UNTRUSTED,
5096
+ markedPassage,
5004
5097
  validateMeetingPassage,
5005
5098
  validateMeetingPreparationContext,
5006
5099
  meetingProjectEvidence,
@@ -5009,8 +5102,6 @@ export {
5009
5102
  MEETING_PROJECT_EVIDENCE_QUERY,
5010
5103
  prepareMeetingProjectEvidence,
5011
5104
  readMeetingProjectEvidence,
5012
- saveSourceMeeting,
5013
- pull,
5014
5105
  meetingReview,
5015
5106
  meetingReviewItem,
5016
5107
  meetingLink,